<template lang="pug">
  .wrapper-addresses.h-full
    .flex.flex-col.gap-y-6
      base-input(
        v-model="addresses.full_address",
        placeholder="Введите адрес целиком",
        label="Полный адрес",
        outlined
      )
      .flex.items-center.justify-center.relative
        .line.absolute
        span.text-sm.separator.px-2 или
      .grid.grid-cols-2.gap-y-6.gap-x-4
        base-input(
          disabled,
          filled,
          placeholder="Введите город",
          v-model="addresses.city",
          label="Город",
          outlined
        )
        base-input(
          disabled,
          filled,
          placeholder="Введите область",
          v-model="addresses.region",
          label="Область",
          outlined
        )
        base-input(
          disabled,
          filled,
          placeholder="Введите улицу",
          v-model="addresses.street",
          label="Введите улицу",
          outlined
        )
        base-input(
          disabled,
          filled,
          placeholder="Номер дома",
          v-model="addresses.house_number",
          label="Дом",
          outlined
        )
        base-input(
          disabled,
          filled,
          placeholder="Номер квартиры",
          v-model="addresses.apartment_number",
          label="Квартира",
          outlined
        )
        base-input(
          disabled,
          filled,
          placeholder="000000",
          mask="######",
          v-model="addresses.zip_code",
          label="Индекс",
          outlined
        )
</template>

<script>
import BaseInput from "@/components/base/BaseInput";
import BaseCustomSelect from "@/components/base/BaseCustomSelect";

export default {
  name: "FormCreateAddresses",
  components: { BaseInput, BaseCustomSelect },
  props: {
    addresses: Object,
    saveClient: Function,
    saveFile: Function,
  },
};
</script>

<style lang="sass" scoped>
.wrapper-addresses
  height: 368px
  overflow-y: auto
  &::-webkit-scrollbar
    width: 4px
  &::-webkit-scrollbar-track
    background-color: rgba(211, 212, 220, 0.5)
    border-radius: 8px
  &::-webkit-scrollbar-thumb
    border-radius: 8px
    background-color: var(--btn-blue-color)

.line
  width: 570px
  height: 1px
  background-color: var(--border-light-grey-color)
  z-index: -1

.separator
  color: var(--font-dark-blue-color)
  background-color: var(--default-white)
</style>
