{"version":3,"sources":["webpack:///./src/services/modules/area.ts","webpack:///./src/composition/areas.ts","webpack:///./src/services/modules/property.ts","webpack:///./src/composition/servicePaginated.ts","webpack:///./src/components/PropertyListFilters.vue?5d96","webpack:///./src/components/PropertyListFilters.vue?3f0c","webpack:///./src/views/admin/PropertyList.vue?e184","webpack:///./src/views/admin/PropertyList.vue","webpack:///./src/views/admin/PropertyList.vue?74b7","webpack:///./src/views/admin/PropertyList.vue?5edb","webpack:///./src/composition/currency.ts","webpack:///./src/components/PropertyListFilters.vue?a42c","webpack:///./src/components/PropertyListFilters.vue","webpack:///./src/components/PropertyListFilters.vue?4c28","webpack:///./src/components/PropertyListFilters.vue?0cf4","webpack:///./src/services/modules/exchangeRate.ts","webpack:///./src/composition/exchangeRate.ts","webpack:///./src/composition/service.ts","webpack:///./src/composition/properties.ts","webpack:///./src/services/modules/type.ts","webpack:///./src/composition/types.ts"],"names":["controller","createAreaService","client","params","get","action","areaService","base","useAreas","model","request","languageId","value","guid","createPropertyService","data","config","post","propertyService","PropertyCategoryId","defaultSettings","onSuccess","onError","onCancel","watchOptions","deep","immediate","useServicePaginated","getKey","fetcher","settings","serviceSettings","totalItems","isLoading","error","CancelToken","a","cancel","async","response","cancelToken","c","items","e","isCancel","module","exports","Component","options","__i18n","push","_Ctor","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","searchByLabel","searchByPlaceholder","callback","$$v","internalSearchBy","expression","categoryLabel","categories","getCategoryLabel","internalCategory","statusLabel","statuses","getStatusLabel","internalStatus","boostLabel","boosts","getBoostLabel","internalBoost","pageNumber","bathroom","bedroom","minPrice","maxPrice","orderBy","propertyTypeList","propertyAreaList","enabled","perPage","rowsPerPage","rows","columns","on","onPageChange","onPerPageChange","scopedSlots","_u","key","fn","ref","column","formattedRow","row","field","getPropertyRouteTo","_v","_s","propertyKey","propertyImageList","imageId","_e","title","categoryViewModel","toneViewModel","name","tagViewModel","isRecommendation","isFeatureListing","toString","agentViewModel","agentId","image","firstName","isDeleted","staticRenderFns","components","PropertyListFilters","query","Number","parseInt","searchBy","category","status","boost","list","routeList","Array","isArray","item","getBoosts","newValue","val","boostList","includes","length","every","v","router","undefined","catch","getCategory","getStatus","minPrice2","maxPrice2","id","categoryId","getCategoryIdValue","getIsDeletedValue","allLabel","i18n","t","recommendedLabel","featuredLabel","label","salesLabel","rentalsLabel","ForSale","Rentals","activeLabel","inactiveLabel","formattedPrice","price","currency","currencyViewModel","isRental","formattedPrice2","price2","typeViewModel","property","newParams","currentPage","currentPerPage","component","exchangeKey","pesosExchangeRateAmount","amount","isDisplayMxCurrency","Boolean","locale","convertFromUsdToMxn","Math","ceil","convertFromMxnToUsd","getUsdPrice","useCurrency","computedLocale","Object","values","find","language","currencyCode","code","shouldConvertToMexicanPeso","parseFloat","currencySuffix","toLocaleString","minimumFractionDigits","maximumFractionDigits","orderByValue","orderByPlaceholder","orderByOptions","onOrderByChange","propertyTypeListValue","propertyTypeListPlaceholder","propertyTypeListOptions","isLoadingPropertyTypeListOptions","onPropertyTypeListChange","propertyAreaListValue","propertyAreaListPlaceholder","propertyAreaListOptions","isLoadingPropertyAreaListOptions","onPropertyAreaListChange","class","bathroomRef","onBathroomDecrement","onBathroomIncrement","bedroomRef","onBedroomDecrement","onBedroomIncrement","minPriceRef","minPricePlaceholder","onMinPriceChange","maxPriceRef","maxPricePlaceholder","onMaxPriceChange","isRentals","minPrice2Ref","minPrice2Placeholder","onMinPrice2Change","maxPrice2Ref","maxPrice2Placeholder","onMaxPrice2Change","resetFiltersExceptSearchByRouteTo","applyFilters","props","type","default","String","orderByRef","propertyTypeListRef","propertyAreaListRef","propertyTypeListArrRef","arr","map","propertyAreaListArrRef","queryRef","propertyTypeListIds","typeId","propertyAreaListIds","areaId","entries","option","onBathroomChange","onBedroomChange","newBathroom","newBedroom","newMinPrice","newMinPrice2","newMaxPrice","newMaxPrice2","newOrderBy","newPropTypeList","newPropAreaList","createExchangeRateService","exchangeRateService","PESOS_EXCHANGE_KEY","useExchange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4995.js","sourcesContent":["import { AxiosInstance } from 'axios'\nimport { api } from '../client'\nimport { serviceUrl } from '../utils'\n\nconst controller = serviceUrl('area')\n\nfunction createAreaService(client: AxiosInstance) {\n return {\n get(params: AreaModel) {\n return client.get(controller.action('get'), {\n params,\n })\n },\n }\n}\n\nexport const areaService = createAreaService(api.base)\n\nexport interface AreaModel {\n languageId?: string\n}\n\nexport interface AreaViewModel {\n areaId: string\n areaKey: number\n name: string\n}\n\nexport interface AreaGetViewModel {\n areaId: string\n areaKey: number\n areaName: string\n areaDescription: string\n cityId: string\n cityKey: number\n cityName: string\n stateId: string\n stateKey: number\n stateName: string\n countryId: string\n countryKey: number\n countryName: string\n}\n","import { AreaModel, areaService } from '@/services/modules/area'\nimport { currentLanguage } from '@/utils/language'\nimport { computed, ComputedRef, isRef } from '@vue/composition-api'\nimport { useService } from './service'\n\nexport function useAreas(model?: ComputedRef | AreaModel) {\n const request = computed(() => ({\n languageId: currentLanguage.value.guid,\n ...(isRef(model) ? model.value : model),\n }))\n return useService(request, () => areaService.get(request.value))\n}\n","import { Color } from '@/design/system/helpers'\nimport { AxiosInstance, AxiosRequestConfig } from 'axios'\nimport { api } from '../client'\nimport {\n GuidIdTableType,\n IdReturnViewModel,\n IntIdTableType,\n PaginationList,\n PaginationSelectModel,\n serviceUrl,\n} from '../utils'\nimport { AgentViewModel } from './agent'\nimport { AreaViewModel } from './area'\nimport { CategoryViewModel } from './category'\nimport { TagViewModel } from './tag'\nimport { TypeViewModel } from './type'\nimport { CurrencyViewModel } from './currency'\n\nconst controller = serviceUrl('property')\n\nfunction createPropertyService(client: AxiosInstance) {\n return {\n get(data: PropertyModel, config?: AxiosRequestConfig) {\n return client.post(\n controller.action('get'),\n data,\n config\n )\n },\n\n insert(data: PropertyInsertModel) {\n return client.post(controller.action('insert'), data)\n },\n\n update(data: PropertyUpdateModel) {\n return client.post(controller.action('update'), data)\n },\n }\n}\n\nexport const propertyService = createPropertyService(api.base)\n\nexport type PropertyGetViewModel = PaginationList\n\nexport interface PropertyModel extends PaginationSelectModel {\n languageId?: string\n isRecommendation?: boolean\n isFeatureListing?: boolean\n isDeleted?: boolean\n bottomLatitude?: string\n topLatitude?: string\n leftLongitude?: string\n rightLongitude?: string\n propertyKey?: number\n categoryId?: string\n agentKey?: number\n bathroom?: number\n bedroom?: number\n minPrice?: number\n minPrice2?: number\n maxPrice?: number\n maxPrice2?: number\n orderBy?: string\n excludePropertyKey?: number\n propertyTypeList?: GuidIdTableType[]\n propertyAreaList?: GuidIdTableType[]\n propertyKeyList?: IntIdTableType[]\n AvailableRentalStartingDate?: Date\n AvailableRentalEndingDate?: Date\n}\n\nexport interface PropertyViewModel {\n propertyId: string\n propertyKey: number\n mlsPropertyId: string\n price: number\n price2: number\n cleaningFee: number\n bathroom: number\n bedroom: number\n isRecommendation: boolean\n isFeatureListing: boolean\n isDeleted: boolean\n virtualTour: string\n displayOrder: number\n title: string\n description: string\n addressViewModel: AddressViewModel\n areaViewModel: AreaViewModel\n cityViewModel: CityViewModel\n stateViewModel: StateViewModel\n countryViewModel: CountryViewModel\n agentViewModel: AgentViewModel\n typeViewModel: TypeViewModel\n categoryViewModel: CategoryViewModel\n tagViewModel: TagViewModel | null\n currencyViewModel: CurrencyViewModel\n propertyImageList: PropertyImageViewModel[]\n propertyGroupList: PropertyGroupViewModel[]\n calendarList: CalendarViewModel[]\n}\n\nexport interface AddressViewModel {\n addressId: string\n addressKey: number\n name: string\n lineOne: string\n lineTwo: string\n postalCode: string\n latitude: string\n longitude: string\n}\n\nexport interface CityViewModel {\n cityId: string\n cityKey: number\n name: string\n}\n\nexport interface StateViewModel {\n stateId: string\n stateKey: number\n name: string\n}\n\nexport interface CountryViewModel {\n countryId: string\n countryKey: number\n name: string\n}\n\nexport interface ToneViewModel {\n toneId: string\n toneKey: number\n name: Color\n}\n\nexport interface PropertyImageViewModel {\n imageId: string\n imageKey: number\n propertyId: string\n name: string\n description: string | null\n path: string\n displayOrder: number\n}\n\nexport interface PropertyGroupViewModel {\n groupId: string\n groupKey: number\n name: string\n title: string\n description: string\n detailList: PropertyDetailViewModel[]\n}\n\nexport interface PropertyDetailViewModel {\n detailId: string\n detailKey: number\n name: string\n description: string\n propertyDetailTitle: string\n propertyDetailDescription: string\n value: string\n groupId: string\n propertyId: string\n}\n\nexport enum PropertyCategoryId {\n ForSale = '74e39077-4d67-eb11-9ffe-00155e010303',\n Rentals = '75e39077-4d67-eb11-9ffe-00155e010303',\n}\n\nexport interface PropertyInsertModel {\n areaId?: string\n agentId?: string\n typeId?: string\n categoryId?: string\n tagId?: string\n currencyId?: string\n addressName: string\n addressLineOne: string\n addressLineTwo: string\n addressPostalCode: string\n addressLatitude: string\n addressLongitude: string\n mlsPropertyId: string\n price?: number\n price2?: number\n cleaningFee?: number\n bathroom?: number\n bedroom?: number\n isRecommendation?: boolean\n isFeatureListing?: boolean\n isDeleted?: boolean\n virtualTour: string\n displayOrder?: number\n detailValueTableType: DetailValueTableType[]\n propertyTextTableType: PropertyTextTableType[]\n calendarTableType: CalendarTableType[]\n fileTableType: FileTableType[]\n}\n\nexport interface PropertyUpdateModel {\n propertyId: string\n areaId?: string\n agentId?: string\n typeId?: string\n categoryId?: string\n tagId?: string\n currencyId?: string\n addressId?: string\n addressName: string\n addressLineOne: string\n addressLineTwo: string\n addressPostalCode: string\n addressLatitude: string\n addressLongitude: string\n mlsPropertyId: string\n price?: number\n price2?: number\n cleaningFee?: number\n bathroom?: number\n bedroom?: number\n isRecommendation?: boolean\n isFeatureListing?: boolean\n isDeleted?: boolean\n virtualTour: string\n displayOrder?: number\n detailValueTableType: DetailValueTableType[]\n propertyTextTableType: PropertyTextTableType[]\n calendarTableType: CalendarTableType[]\n fileTableType: FileTableType[]\n fileListToDelete: FileTableType[]\n}\n\nexport interface DetailValueTableType {\n detailId: string\n languageId: string\n value: string\n}\n\nexport interface PropertyTextTableType {\n propertyId: string\n languageId: string\n title: string\n description: string\n}\n\nexport interface FileTableType {\n dataUrl: string\n name: string\n description: string\n extension: string\n path: string\n displayOrder: number\n}\n\nexport interface CalendarTableType {\n startingDate: Date\n endingDate: Date\n}\n\nexport interface CalendarViewModel {\n propertyId: string\n startingDate: string\n endingDate: string\n}\n","import { PaginationList, PaginationSelectModel } from '@/services/utils'\nimport {\n Ref,\n ref,\n watch,\n WatchOptions,\n WatchSource,\n} from '@vue/composition-api'\nimport axios, { AxiosRequestConfig, AxiosResponse, Canceler } from 'axios'\n\nexport interface ServicePaginatedSettings {\n onSuccess?: () => void\n onError?: () => void\n onCancel?: () => void\n watchOptions?: WatchOptions\n}\n\nconst defaultSettings = {\n onSuccess: () => {},\n onError: () => {},\n onCancel: () => {},\n watchOptions: {\n deep: true,\n immediate: true,\n },\n}\n\nexport function useServicePaginated(\n getKey: WatchSource,\n fetcher: (\n config?: AxiosRequestConfig\n ) => Promise>>,\n settings?: ServicePaginatedSettings\n) {\n const serviceSettings = {\n ...defaultSettings,\n ...settings,\n }\n\n const data = ref([]) as Ref\n const totalItems = ref(0)\n const isLoading = ref(false)\n const error = ref(null)\n\n const CancelToken = axios.CancelToken\n const cancel = ref(null)\n\n watch(\n getKey,\n async () => {\n try {\n if (cancel.value) {\n cancel.value()\n }\n isLoading.value = true\n const response = await fetcher({\n cancelToken: new CancelToken((c) => {\n cancel.value = c\n }),\n })\n data.value = response.data.items\n totalItems.value = response.data.totalItems\n } catch (e) {\n error.value = e\n if (axios.isCancel(e)) {\n serviceSettings.onCancel()\n } else {\n serviceSettings.onError()\n }\n } finally {\n isLoading.value = false\n cancel.value = null\n }\n },\n serviceSettings.watchOptions\n )\n\n return {\n data,\n totalItems,\n isLoading,\n error,\n }\n}\n","module.exports = function (Component) {\n Component.options.__i18n = Component.options.__i18n || []\n Component.options.__i18n.push('{\"en-US\":{\"cta\":{\"clear\":\"Clear\",\"apply\":\"Apply\"}},\"es-MX\":{\"cta\":{\"clear\":\"Limpiar\",\"apply\":\"Aplicar\"}}}')\n delete Component.options._Ctor\n}\n","import mod from \"-!../../node_modules/@intlify/vue-i18n-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertyListFilters.vue?vue&type=custom&index=0&blockType=i18n&lang=json\"; export default mod; export * from \"-!../../node_modules/@intlify/vue-i18n-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertyListFilters.vue?vue&type=custom&index=0&blockType=i18n&lang=json\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('BaseBox',{staticClass:\"grid gap-4\"},[_c('BaseBox',{staticClass:\"flex justify-end\"},[_c('BaseLink',{attrs:{\"name\":\"PropertyCreate\",\"variant\":\"solid\",\"tone\":\"tertiary\"}},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"routes.propertyCreate\"}})],1)],1),_c('BaseBox',{staticClass:\"grid gap-4 bg-white dark:bg-gray-800 shadow rounded-md p-6\"},[_c('BaseBox',{staticClass:\"grid gap-4 lg:grid-cols-6\"},[_c('BaseBox',{staticClass:\"lg:col-span-3\"},[_c('BaseFieldLabel',{attrs:{\"label\":_vm.searchByLabel,\"html-for\":\"searchBy\"}}),_c('BaseInputText',{attrs:{\"id\":\"searchBy\",\"type\":\"search\",\"placeholder\":_vm.searchByPlaceholder},model:{value:(_vm.internalSearchBy),callback:function ($$v) {_vm.internalSearchBy=$$v},expression:\"internalSearchBy\"}})],1),_c('BaseBox',[_c('BaseFieldLabel',{attrs:{\"label\":_vm.categoryLabel,\"html-for\":\"category\"}}),_c('BaseSelect',{attrs:{\"id\":\"category\",\"options\":_vm.categories,\"custom-label\":_vm.getCategoryLabel,\"show-labels\":false,\"allow-empty\":false},model:{value:(_vm.internalCategory),callback:function ($$v) {_vm.internalCategory=$$v},expression:\"internalCategory\"}})],1),_c('BaseBox',[_c('BaseFieldLabel',{attrs:{\"label\":_vm.statusLabel,\"html-for\":\"status\"}}),_c('BaseSelect',{attrs:{\"id\":\"status\",\"options\":_vm.statuses,\"custom-label\":_vm.getStatusLabel,\"show-labels\":false,\"allow-empty\":false},model:{value:(_vm.internalStatus),callback:function ($$v) {_vm.internalStatus=$$v},expression:\"internalStatus\"}})],1),_c('BaseBox',[_c('BaseFieldLabel',{attrs:{\"label\":_vm.boostLabel,\"html-for\":\"boost\"}}),_c('BaseSelect',{attrs:{\"id\":\"boost\",\"options\":_vm.boosts,\"custom-label\":_vm.getBoostLabel,\"show-labels\":false,\"multiple\":true},model:{value:(_vm.internalBoost),callback:function ($$v) {_vm.internalBoost=$$v},expression:\"internalBoost\"}})],1)],1),_c('BaseBox',{staticClass:\"hidden sm:block\",attrs:{\"aria-hidden\":\"true\"}},[_c('BaseBox',{staticClass:\"border-t border-gray-300\"})],1),_c('PropertyListFilters',{attrs:{\"page-number\":_vm.pageNumber,\"bathroom\":_vm.bathroom,\"bedroom\":_vm.bedroom,\"min-price\":_vm.minPrice,\"max-price\":_vm.maxPrice,\"order-by\":_vm.orderBy,\"property-type-list\":_vm.propertyTypeList,\"property-area-list\":_vm.propertyAreaList}})],1),_c('BaseBox',{staticClass:\"grid gap-4 bg-white dark:bg-gray-800 shadow rounded-md p-6\"},[_c('BaseTable',{attrs:{\"mode\":\"remote\",\"total-rows\":_vm.totalItems,\"is-loading\":_vm.isLoading,\"pagination-options\":{\n enabled: true,\n perPage: _vm.model.rowsPerPage,\n },\"sort-options\":{\n enabled: false,\n },\"rows\":_vm.rows,\"columns\":_vm.columns,\"style-class\":\"vgt-table striped\"},on:{\"on-page-change\":_vm.onPageChange,\"on-per-page-change\":_vm.onPerPageChange},scopedSlots:_vm._u([{key:\"table-row\",fn:function(ref){\n var column = ref.column;\n var formattedRow = ref.formattedRow;\n var row = ref.row;\nreturn [(column.field === 'propertyKey')?[_c('BaseLink',{staticClass:\"text-tertiary hover:underline\",attrs:{\"to\":_vm.getPropertyRouteTo(row)}},[_vm._v(\" \"+_vm._s(row.propertyKey)+\" \")])]:(column.field === 'title')?[_c('BaseBox',{staticClass:\"flex space-x-2 items-start\"},[_c('BaseBox',{staticClass:\"w-28\"},[(row.propertyImageList[0])?_c('BaseBox',{staticClass:\"\\n relative\\n bg-gray-200\\n aspect-w-16 aspect-h-9\\n rounded-lg\\n overflow-hidden\\n \"},[_c('BaseImage',{key:row.propertyImageList[0].imageId,staticClass:\"absolute w-full h-full object-cover\",attrs:{\"src\":((row.propertyImageList[0].path) + \"/\" + (row.propertyImageList[0].name)),\"size\":\"sm\",\"alt\":\"\",\"loading\":\"lazy\",\"decoding\":\"async\"}})],1):_vm._e()],1),_c('BaseBox',{staticClass:\"flex-1 grid gap-1 justify-items-start\"},[_c('BaseText',{staticClass:\"text-lg\"},[_vm._v(\" \"+_vm._s(row.title)+\" \")]),_c('BaseBox',{staticClass:\"flex space-x-2\"},[_c('BaseBadge',{attrs:{\"tone\":row.categoryViewModel.toneViewModel.name}},[_vm._v(\" \"+_vm._s(row.categoryViewModel.title)+\" \")]),(row.tagViewModel)?_c('BaseBadge',{attrs:{\"tone\":row.tagViewModel.toneViewModel.name}},[_vm._v(\" \"+_vm._s(row.tagViewModel.title)+\" \")]):_vm._e()],1),(row.isRecommendation || row.isFeatureListing)?_c('BaseBox',{staticClass:\"flex space-x-2\"},[(row.isRecommendation)?_c('BaseBadge',{attrs:{\"tone\":\"promote\"}},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"isRecommendation\"}})],1):_vm._e(),(row.isFeatureListing)?_c('BaseBadge',{attrs:{\"tone\":\"promote\"}},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"isFeatureListing\"}})],1):_vm._e()],1):_vm._e()],1)],1)]:(column.field === 'propertyId')?[_c('BaseLink',{attrs:{\"to\":{\n name: 'PropertyUpdate',\n params: {\n propertyKey: row.propertyKey.toString(),\n },\n },\"variant\":\"soft\",\"tone\":\"tertiary\"}},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"edit\"}})],1)]:(column.field === 'agentViewModel')?[_c('BaseBox',{staticClass:\"\\n relative\\n w-10\\n h-10\\n rounded-full\\n bg-gray-200\\n overflow-hidden\\n \",attrs:{\"title\":((row.agentViewModel.firstName) + \" \" + (row.agentViewModel.lastName))}},[_c('BaseImage',{key:row.agentViewModel.agentId,staticClass:\"absolute w-full h-full object-cover\",attrs:{\"src\":row.agentViewModel.image,\"alt\":row.agentViewModel.firstName,\"loading\":\"lazy\",\"decoding\":\"async\"}})],1)]:(column.field === 'isDeleted')?[_c('BaseIcon',{attrs:{\"name\":row.isDeleted ? 'times-circle' : 'check-circle',\"tone\":row.isDeleted ? 'neutral' : 'positive'}})]:[_vm._v(\" \"+_vm._s(formattedRow[column.field])+\" \")]]}}])})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport PropertyListFilters from '@/components/PropertyListFilters.vue'\nimport { useProperties } from '@/composition/properties'\nimport {\n PropertyCategoryId,\n PropertyModel,\n PropertyViewModel,\n} from '@/services/modules/property'\nimport { GuidIdTableType } from '@/services/utils'\nimport { getUsdPrice, useCurrency } from '@/composition/currency'\nimport { getPropertyRouteTo } from '@/utils/property'\nimport i18n from '@/setup/i18n'\nimport {\n VueGoodTableColumn,\n VueGoodTablePageChangeEvent,\n VueGoodTablePerPageChangeEvent,\n} from '@/setup/vue-good-table'\nimport router, { currentRoute } from '@/router'\nimport { computed, defineComponent, ref, watch } from '@vue/composition-api'\n\nconst statuses = ['all', 'active', 'inactive'] as const\ntype Status = typeof statuses[number]\n\nconst categories = ['all', 'sales', 'rentals'] as const\ntype Category = typeof categories[number]\n\nconst boosts = ['recommended', 'featured'] as const\ntype Boost = typeof boosts[number]\n\nexport default defineComponent({\n name: 'PropertyList',\n\n components: {\n PropertyListFilters,\n },\n\n setup() {\n const pageNumber = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.pageNumber &&\n typeof currentRoute.value.query.pageNumber === 'string'\n ? Number.parseInt(currentRoute.value.query.pageNumber)\n : 1\n )\n\n const rowsPerPage = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.pageNumber &&\n typeof currentRoute.value.query.rowsPerPage === 'string'\n ? Number.parseInt(currentRoute.value.query.rowsPerPage)\n : 30\n )\n\n const searchBy = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.searchBy &&\n typeof currentRoute.value.query.searchBy === 'string'\n ? currentRoute.value.query.searchBy\n : ''\n )\n\n const category = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.category &&\n typeof currentRoute.value.query.category === 'string'\n ? currentRoute.value.query.category\n : ''\n )\n\n const status = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.status &&\n typeof currentRoute.value.query.status === 'string'\n ? currentRoute.value.query.status\n : ''\n )\n\n const boost = computed(() => {\n let list = []\n\n if (currentRoute.value && currentRoute.value.query.boost) {\n const routeList = Array.isArray(currentRoute.value.query.boost)\n ? currentRoute.value.query.boost\n : [currentRoute.value.query.boost]\n for (const item of routeList) {\n if (!item) continue\n list.push(item)\n }\n }\n return list\n })\n\n const internalBoost = ref(getBoosts(boost.value))\n\n watch(\n () => boost.value,\n (newValue) => {\n if (\n newValue.length === internalBoost.value.length &&\n newValue.every((v) => internalBoost.value.includes(v as Boost))\n )\n return\n internalBoost.value = getBoosts(newValue)\n }\n )\n\n function getBoosts(newValue: string[]) {\n let val: Boost[] = []\n const boostList = newValue as Boost[]\n for (const item of boostList) {\n if (boosts.includes(item)) {\n val.push(item)\n }\n }\n return val\n }\n\n watch(\n () => internalBoost.value,\n (newValue) => {\n if (\n newValue.length === boost.value.length &&\n newValue.every((v) => boost.value.includes(v))\n )\n return\n router\n .push({\n query: {\n ...currentRoute.value?.query,\n ...(pageNumber.value > 1 ? { pageNumber: '1' } : undefined),\n boost: newValue.length > 0 ? newValue : undefined,\n },\n })\n .catch(() => {})\n }\n )\n\n const internalSearchBy = ref(searchBy.value)\n\n watch(\n () => searchBy.value,\n (newValue) => {\n if (newValue === internalSearchBy.value) return\n internalSearchBy.value = newValue\n }\n )\n\n watch(\n () => internalSearchBy.value,\n (newValue) => {\n if (newValue === searchBy.value) return\n router\n .push({\n query: {\n ...currentRoute.value?.query,\n ...(pageNumber.value > 1 ? { pageNumber: '1' } : undefined),\n searchBy: newValue || undefined,\n },\n })\n .catch(() => {})\n }\n )\n\n const internalCategory = ref(getCategory(category.value))\n\n watch(\n () => category.value,\n (newValue) => {\n if (newValue === internalCategory.value) return\n internalCategory.value = getCategory(newValue)\n }\n )\n\n function getCategory(newValue: string) {\n let val: Category = 'all'\n const category = newValue as Category\n if (categories.includes(category)) {\n val = category\n }\n return val\n }\n\n watch(\n () => internalCategory.value,\n (newValue) => {\n if (newValue === category.value) return\n router\n .push({\n query: {\n ...currentRoute.value?.query,\n ...(pageNumber.value > 1 ? { pageNumber: '1' } : undefined),\n category: newValue,\n },\n })\n .catch(() => {})\n }\n )\n\n const internalStatus = ref(getStatus(status.value))\n\n watch(\n () => status.value,\n (newValue) => {\n if (newValue === internalStatus.value) return\n internalStatus.value = getStatus(newValue)\n }\n )\n\n function getStatus(newValue: string) {\n let val: Status = 'all'\n const status = newValue as Status\n if (statuses.includes(status)) {\n val = status\n }\n return val\n }\n\n watch(\n () => internalStatus.value,\n (newValue) => {\n if (newValue === status.value) return\n router\n .push({\n query: {\n ...currentRoute.value?.query,\n ...(pageNumber.value > 1 ? { pageNumber: '1' } : undefined),\n status: newValue,\n },\n })\n .catch(() => {})\n }\n )\n\n const bathroom = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.bathroom &&\n typeof currentRoute.value.query.bathroom === 'string'\n ? Number.parseInt(currentRoute.value.query.bathroom)\n : undefined\n )\n\n const bedroom = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.bedroom &&\n typeof currentRoute.value.query.bedroom === 'string'\n ? Number.parseInt(currentRoute.value.query.bedroom)\n : undefined\n )\n\n const minPrice = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.minPrice &&\n typeof currentRoute.value.query.minPrice === 'string'\n ? Number.parseInt(currentRoute.value.query.minPrice)\n : undefined\n )\n\n const maxPrice = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.maxPrice &&\n typeof currentRoute.value.query.maxPrice === 'string'\n ? Number.parseInt(currentRoute.value.query.maxPrice)\n : undefined\n )\n\n const minPrice2 = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.minPrice2 &&\n typeof currentRoute.value.query.minPrice2 === 'string'\n ? Number.parseInt(currentRoute.value.query.minPrice2)\n : undefined\n )\n\n const maxPrice2 = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.maxPrice2 &&\n typeof currentRoute.value.query.maxPrice2 === 'string'\n ? Number.parseInt(currentRoute.value.query.maxPrice2)\n : undefined\n )\n\n const orderBy = computed(() =>\n currentRoute.value &&\n currentRoute.value.query.orderBy &&\n typeof currentRoute.value.query.orderBy === 'string'\n ? currentRoute.value.query.orderBy\n : undefined\n )\n\n const propertyTypeList = computed(() => {\n let list: GuidIdTableType[] = []\n\n if (currentRoute.value && currentRoute.value.query.propertyTypeList) {\n const routeList = Array.isArray(\n currentRoute.value.query.propertyTypeList\n )\n ? currentRoute.value.query.propertyTypeList\n : [currentRoute.value.query.propertyTypeList]\n for (const item of routeList) {\n if (!item) continue\n list.push({ id: item })\n }\n }\n return list\n })\n\n const propertyAreaList = computed(() => {\n let list: GuidIdTableType[] = []\n\n if (currentRoute.value && currentRoute.value.query.propertyAreaList) {\n const routeList = Array.isArray(\n currentRoute.value.query.propertyAreaList\n )\n ? currentRoute.value.query.propertyAreaList\n : [currentRoute.value.query.propertyAreaList]\n for (const item of routeList) {\n if (!item) continue\n list.push({ id: item })\n }\n }\n return list\n })\n\n const isRecommendation = computed(\n () => internalBoost.value.includes('recommended') || undefined\n )\n const isFeatureListing = computed(\n () => internalBoost.value.includes('featured') || undefined\n )\n\n const model = computed(() => ({\n pageNumber: pageNumber.value,\n rowsPerPage: rowsPerPage.value,\n searchBy: searchBy.value,\n isRecommendation: isRecommendation.value,\n isFeatureListing: isFeatureListing.value,\n categoryId: getCategoryIdValue(category.value as Category),\n bathroom: bathroom.value,\n bedroom: bedroom.value,\n minPrice: getUsdPrice(minPrice.value),\n minPrice2: getUsdPrice(minPrice2.value),\n maxPrice: getUsdPrice(maxPrice.value),\n maxPrice2: getUsdPrice(maxPrice2.value),\n orderBy: orderBy.value,\n propertyTypeList: propertyTypeList.value,\n propertyAreaList: propertyAreaList.value,\n isDeleted: getIsDeletedValue(status.value as Status),\n }))\n\n const allLabel = computed(() => i18n.t('all') as string)\n\n const boostLabel = computed(() => i18n.t('boosted') as string)\n const recommendedLabel = computed(() => i18n.t('recommended') as string)\n const featuredLabel = computed(() => i18n.t('featured') as string)\n\n function getBoostLabel(item: Boost) {\n let label = ''\n switch (item) {\n case 'recommended':\n label = recommendedLabel.value\n break\n case 'featured':\n label = featuredLabel.value\n break\n default:\n break\n }\n return label\n }\n\n const categoryLabel = computed(() => i18n.t('category') as string)\n const salesLabel = computed(() => i18n.t('sales') as string)\n const rentalsLabel = computed(() => i18n.t('rentals') as string)\n\n function getCategoryIdValue(category: Category) {\n let value\n\n if (category === 'sales') {\n value = PropertyCategoryId.ForSale\n } else if (category === 'rentals') {\n value = PropertyCategoryId.Rentals\n }\n\n return value\n }\n\n function getCategoryLabel(category: Category) {\n let label = ''\n switch (category) {\n case 'all':\n label = allLabel.value\n break\n case 'sales':\n label = salesLabel.value\n break\n case 'rentals':\n label = rentalsLabel.value\n break\n default:\n break\n }\n return label\n }\n\n const statusLabel = computed(() => i18n.t('status') as string)\n const activeLabel = computed(() => i18n.t('active') as string)\n const inactiveLabel = computed(() => i18n.t('inactive') as string)\n\n function getIsDeletedValue(status: Status) {\n let value\n\n if (status === 'active') {\n value = false\n } else if (status === 'inactive') {\n value = true\n }\n\n return value\n }\n\n function getStatusLabel(status: Status) {\n let label = ''\n switch (status) {\n case 'all':\n label = allLabel.value\n break\n case 'active':\n label = activeLabel.value\n break\n case 'inactive':\n label = inactiveLabel.value\n break\n default:\n break\n }\n return label\n }\n\n const searchByLabel = computed(\n () => i18n.t('propertyListSearchByLabel') as string\n )\n\n const searchByPlaceholder = computed(\n () => i18n.t('propertyListSearchByPlaceholder') as string\n )\n\n const { data: rows, isLoading, totalItems, error } = useProperties(model)\n\n const columns = computed[]>(() => [\n {\n label: i18n.t('id') as string,\n field: 'propertyKey',\n },\n {\n label: i18n.t('mls') as string,\n field: 'mlsPropertyId',\n },\n {\n label: i18n.t('status') as string,\n field: 'isDeleted',\n },\n {\n label: i18n.t('agent') as string,\n field: 'agentViewModel',\n },\n {\n label: i18n.t('title') as string,\n field: 'title',\n },\n {\n label: i18n.t('price') as string,\n field: (row) => {\n const formattedPrice = useCurrency({\n value: row.price,\n currency: row.currencyViewModel,\n }).value\n if (isRental(row)) {\n return row.price ? `${formattedPrice} ${i18n.t('perNight')}` : ''\n }\n return formattedPrice\n },\n },\n {\n label: i18n.t('price2') as string,\n field: (row) => {\n const formattedPrice2 = useCurrency({\n value: row.price2,\n currency: row.currencyViewModel,\n }).value\n if (isRental(row)) {\n return row.price2 ? `${formattedPrice2} ${i18n.t('perMonth')}` : ''\n }\n return row.price2 ? formattedPrice2 : ''\n },\n },\n {\n label: i18n.t('type') as string,\n field: (row) => row.typeViewModel.title,\n },\n {\n label: i18n.t('actions') as string,\n field: 'propertyId',\n },\n ])\n\n function isRental(property: PropertyViewModel) {\n return (\n property.categoryViewModel.categoryId === PropertyCategoryId.Rentals\n )\n }\n\n function onPageChange(newParams: VueGoodTablePageChangeEvent) {\n router\n .push({\n query: {\n ...currentRoute.value?.query,\n pageNumber: newParams.currentPage.toString(),\n },\n })\n .catch(() => {})\n }\n\n function onPerPageChange(newParams: VueGoodTablePerPageChangeEvent) {\n router\n .push({\n query: {\n ...currentRoute.value?.query,\n ...(pageNumber.value > 1 ? { pageNumber: '1' } : undefined),\n rowsPerPage: newParams.currentPerPage.toString(),\n },\n })\n .catch(() => {})\n }\n\n return {\n model,\n pageNumber,\n internalSearchBy,\n internalStatus,\n statuses,\n getStatusLabel,\n statusLabel,\n internalCategory,\n categories,\n getCategoryLabel,\n categoryLabel,\n internalBoost,\n boosts,\n getBoostLabel,\n boostLabel,\n searchByLabel,\n searchByPlaceholder,\n bathroom,\n bedroom,\n minPrice,\n maxPrice,\n orderBy,\n propertyTypeList,\n propertyAreaList,\n rows,\n columns,\n isLoading,\n totalItems,\n error,\n onPageChange,\n onPerPageChange,\n getPropertyRouteTo,\n }\n },\n})\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertyList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertyList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PropertyList.vue?vue&type=template&id=5db115bb&\"\nimport script from \"./PropertyList.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertyList.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { PESOS_EXCHANGE_KEY } from '@/services/modules/exchangeRate'\nimport i18n from '@/setup/i18n'\nimport { esMx, languages } from '@/utils/language'\nimport { computed } from '@vue/composition-api'\nimport { useExchangeRate } from './exchangeRate'\nimport { CurrencyViewModel } from '@/services/modules/currency'\n\nconst { data } = useExchangeRate({ exchangeKey: PESOS_EXCHANGE_KEY })\n\nexport const pesosExchangeRateAmount = computed(() => data.value[0]?.amount)\n\nexport const isDisplayMxCurrency = computed(() =>\n Boolean(i18n.locale === esMx.locale && pesosExchangeRateAmount.value)\n)\n\nexport function convertFromUsdToMxn(value: number) {\n return Math.ceil(value * pesosExchangeRateAmount.value)\n}\n\nexport function convertFromMxnToUsd(value: number) {\n return Math.ceil(value / pesosExchangeRateAmount.value)\n}\n\nexport function getLocalizedPrice(value: number | undefined) {\n return isDisplayMxCurrency.value && value ? convertFromUsdToMxn(value) : value\n}\n\nexport function getUsdPrice(value: number | undefined) {\n return isDisplayMxCurrency.value && value ? convertFromMxnToUsd(value) : value\n}\n\nexport interface UseCurrencyOptions {\n value: number | string\n locale?: string\n currency?: CurrencyViewModel\n}\n\nexport function useCurrency({\n value,\n locale = i18n.locale,\n currency,\n}: UseCurrencyOptions) {\n return computed(() => {\n const computedLocale = currency\n ? Object.values(languages).find(\n (language) => language.currencyCode === currency?.code\n )?.locale ?? locale\n : locale\n const shouldConvertToMexicanPeso =\n !currency &&\n Boolean(locale === esMx.locale && pesosExchangeRateAmount.value)\n let amount = typeof value === 'string' ? Number.parseFloat(value) : value\n const currencySuffix = shouldConvertToMexicanPeso\n ? 'MXN'\n : currency?.code || 'USD'\n\n if (shouldConvertToMexicanPeso) {\n amount = convertFromUsdToMxn(amount)\n }\n\n return `$${amount.toLocaleString(computedLocale, {\n minimumFractionDigits: 0,\n maximumFractionDigits: 2,\n })} ${currencySuffix}`\n })\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('BaseBox',[_c('BaseBox',{staticClass:\"\\n flex flex-col\\n space-y-4\\n 2xl:items-center 2xl:flex-row 2xl:space-y-0 2xl:space-x-4\\n p-4\\n \"},[_c('BaseSelect',{staticClass:\"flex-1\",attrs:{\"value\":_vm.orderByValue,\"placeholder\":_vm.orderByPlaceholder,\"options\":_vm.orderByOptions,\"show-labels\":false,\"track-by\":\"value\",\"label\":\"label\"},on:{\"input\":_vm.onOrderByChange}}),_c('BaseSelect',{staticClass:\"flex-1\",attrs:{\"value\":_vm.propertyTypeListValue,\"placeholder\":_vm.propertyTypeListPlaceholder,\"options\":_vm.propertyTypeListOptions,\"loading\":_vm.isLoadingPropertyTypeListOptions,\"multiple\":true,\"show-labels\":false,\"track-by\":\"typeId\",\"label\":\"title\"},on:{\"input\":_vm.onPropertyTypeListChange}}),_c('BaseSelect',{staticClass:\"flex-1\",attrs:{\"value\":_vm.propertyAreaListValue,\"placeholder\":_vm.propertyAreaListPlaceholder,\"options\":_vm.propertyAreaListOptions,\"loading\":_vm.isLoadingPropertyAreaListOptions,\"multiple\":true,\"show-labels\":false,\"track-by\":\"areaId\",\"label\":\"areaName\"},on:{\"input\":_vm.onPropertyAreaListChange}}),_c('BaseBox',{staticClass:\"grid grid-cols-2 gap-4\"},[_c('BaseBox',{staticClass:\"flex items-center space-x-6 bg-white rounded-lg py-2 px-4\"},[_c('BaseBox',[_c('BaseIcon',{staticClass:\"text-xl\",attrs:{\"name\":\"bathroom\",\"source\":\"custom\"}})],1),_c('BaseBox',{staticClass:\"flex items-center space-x-3 text-lg\"},[_c('BaseBox',[_c('button',{class:[\n 'focus:outline-none focus-visible:ring-2 rounded-full',\n !_vm.bathroomRef ? 'opacity-50' : '' ],attrs:{\"disabled\":!_vm.bathroomRef},on:{\"click\":_vm.onBathroomDecrement}},[_c('BaseIcon',{attrs:{\"name\":\"minus\",\"source\":\"custom\"}})],1)]),_c('BaseBox',[_c('BaseText',[_vm._v(\" \"+_vm._s(_vm.bathroomRef ? _vm.bathroomRef : 0)+\" \")])],1),_c('BaseBox',[_c('button',{staticClass:\"focus:outline-none focus-visible:ring-2 rounded-full\",on:{\"click\":_vm.onBathroomIncrement}},[_c('BaseIcon',{attrs:{\"name\":\"plus\",\"source\":\"custom\"}})],1)])],1)],1),_c('BaseBox',{staticClass:\"flex items-center space-x-6 bg-white rounded-lg py-2 px-4\"},[_c('BaseBox',[_c('BaseIcon',{staticClass:\"text-xl\",attrs:{\"name\":\"double-bed\",\"source\":\"custom\"}})],1),_c('BaseBox',{staticClass:\"flex items-center space-x-3 text-lg\"},[_c('BaseBox',[_c('button',{class:[\n 'focus:outline-none focus-visible:ring-2 rounded-full',\n !_vm.bedroomRef ? 'opacity-50' : '' ],attrs:{\"disabled\":!_vm.bedroomRef},on:{\"click\":_vm.onBedroomDecrement}},[_c('BaseIcon',{attrs:{\"name\":\"minus\",\"source\":\"custom\"}})],1)]),_c('BaseText',[_vm._v(\" \"+_vm._s(_vm.bedroomRef ? _vm.bedroomRef : 0)+\" \")]),_c('BaseBox',[_c('button',{staticClass:\"focus:outline-none focus-visible:ring-2 rounded-full\",on:{\"click\":_vm.onBedroomIncrement}},[_c('BaseIcon',{attrs:{\"name\":\"plus\",\"source\":\"custom\"}})],1)])],1)],1)],1),_c('BaseBox',{staticClass:\"grid grid-cols-2 gap-4\"},[_c('BaseBox',[_c('BaseInputText',{attrs:{\"id\":\"minPrice\",\"value\":_vm.minPriceRef || undefined,\"placeholder\":_vm.minPricePlaceholder,\"type\":\"number\",\"min\":\"0\"},on:{\"update\":_vm.onMinPriceChange}})],1),_c('BaseBox',[_c('BaseInputText',{attrs:{\"id\":\"maxPrice\",\"value\":_vm.maxPriceRef || undefined,\"placeholder\":_vm.maxPricePlaceholder,\"min\":_vm.minPrice || 0,\"type\":\"number\"},on:{\"update\":_vm.onMaxPriceChange}})],1),(!_vm.category || _vm.isRentals)?[_c('BaseBox',[_c('BaseInputText',{attrs:{\"id\":\"minPrice2\",\"value\":_vm.minPrice2Ref || undefined,\"placeholder\":_vm.minPrice2Placeholder,\"type\":\"number\",\"min\":\"0\"},on:{\"update\":_vm.onMinPrice2Change}})],1),_c('BaseBox',[_c('BaseInputText',{attrs:{\"id\":\"maxPrice2\",\"value\":_vm.maxPrice2Ref || undefined,\"placeholder\":_vm.maxPrice2Placeholder,\"min\":_vm.minPrice2 || 0,\"type\":\"number\"},on:{\"update\":_vm.onMaxPrice2Change}})],1)]:_vm._e()],2)],1),_c('BaseBox',{staticClass:\"bg-gray-200 rounded-b-lg p-4\"},[_c('BaseBox',{staticClass:\"flex flex-row justify-end\"},[_c('BaseLink',{staticClass:\"mr-2\",attrs:{\"variant\":\"solid\",\"tone\":\"tertiary\",\"to\":_vm.resetFiltersExceptSearchByRouteTo}},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"cta.clear\"}})],1),_c('BaseLink',{attrs:{\"variant\":\"solid\",\"tone\":\"tertiary\",\"to\":_vm.applyFilters}},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"cta.apply\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { useAreas } from '@/composition/areas'\nimport { useTypes } from '@/composition/types'\nimport { currentRoute } from '@/router'\nimport { Location } from 'vue-router'\nimport { AreaGetViewModel } from '@/services/modules/area'\nimport { TypeViewModel } from '@/services/modules/type'\nimport { GuidIdTableType } from '@/services/utils'\nimport i18n from '@/setup/i18n'\nimport { propertyOrderByConfig } from '@/utils/property'\nimport {\n computed,\n defineComponent,\n PropType,\n ref,\n watch,\n} from '@vue/composition-api'\n\ninterface OrderByOption {\n label: string\n value: string\n}\n\nexport default defineComponent({\n name: 'PropertyListFilters',\n\n props: {\n pageNumber: {\n type: Number,\n default: 1,\n },\n\n bathroom: {\n type: Number,\n default: 0,\n },\n\n bedroom: {\n type: Number,\n default: 0,\n },\n\n minPrice: {\n type: Number,\n default: null,\n },\n\n maxPrice: {\n type: Number,\n default: null,\n },\n\n minPrice2: {\n type: Number,\n default: null,\n },\n\n maxPrice2: {\n type: Number,\n default: null,\n },\n\n propertyTypeList: {\n type: Array as PropType,\n default: () => [],\n },\n\n propertyAreaList: {\n type: Array as PropType,\n default: () => [],\n },\n\n orderBy: {\n type: String,\n default: null,\n },\n\n category: {\n type: String,\n default: '',\n },\n },\n\n setup(props) {\n const bathroomRef = ref(props.bathroom)\n const bedroomRef = ref(props.bedroom)\n const minPriceRef = ref(props.minPrice)\n const minPrice2Ref = ref(props.minPrice2)\n const maxPriceRef = ref(props.maxPrice)\n const maxPrice2Ref = ref(props.maxPrice2)\n const orderByRef = ref(props.orderBy)\n const propertyTypeListRef = ref(props.propertyTypeList)\n const propertyAreaListRef = ref(props.propertyAreaList)\n\n const propertyTypeListArrRef = computed(() => {\n if (propertyTypeListRef.value.length > 0) {\n let arr = propertyTypeListRef.value.map((item) => item.id)\n return arr\n } else {\n return []\n }\n })\n\n const propertyAreaListArrRef = computed(() => {\n if (propertyAreaListRef.value.length > 0) {\n let arr = propertyAreaListRef.value.map((item) => item.id)\n return arr\n } else {\n return []\n }\n })\n\n const queryRef = computed(() => ({\n bathroom:\n bathroomRef.value !== undefined && bathroomRef.value > 0\n ? bathroomRef.value?.toString()\n : undefined,\n bedroom:\n bedroomRef.value !== undefined && bedroomRef.value > 0\n ? bedroomRef.value?.toString()\n : undefined,\n minPrice: minPriceRef.value?.toString(),\n minPrice2: minPrice2Ref.value?.toString(),\n maxPrice: maxPriceRef.value?.toString(),\n maxPrice2: maxPrice2Ref.value?.toString(),\n orderBy: orderByRef.value?.toString(),\n propertyTypeList: propertyTypeListArrRef.value,\n propertyAreaList: propertyAreaListArrRef.value,\n }))\n\n const {\n data: propertyTypeListOptions,\n isLoading: isLoadingPropertyTypeListOptions,\n } = useTypes()\n\n const propertyTypeListIds = computed(() =>\n propertyTypeListRef.value.map((item) => item.id)\n )\n\n const propertyTypeListValue = computed(() => {\n let list: TypeViewModel[] = []\n\n for (const item of propertyTypeListOptions.value) {\n if (!propertyTypeListIds.value.includes(item.typeId)) continue\n list.push(item)\n }\n\n return list\n })\n\n const propertyTypeListPlaceholder = computed(\n () => i18n.t('propertyTypeListPlaceholder') as string\n )\n\n function onPropertyTypeListChange(newValue: TypeViewModel[]) {\n if (newValue.length > 0) {\n let arr = newValue.map((item) => item.typeId)\n let list = []\n for (const item of arr) {\n if (!item) continue\n list.push({ id: item })\n }\n propertyTypeListRef.value = list\n } else {\n propertyTypeListRef.value = []\n }\n }\n\n const {\n data: propertyAreaListOptions,\n isLoading: isLoadingPropertyAreaListOptions,\n } = useAreas()\n\n const propertyAreaListIds = computed(() =>\n propertyAreaListRef.value.map((item) => item.id)\n )\n\n const propertyAreaListValue = computed(() => {\n let list: AreaGetViewModel[] = []\n\n for (const item of propertyAreaListOptions.value) {\n if (!propertyAreaListIds.value.includes(item.areaId)) continue\n list.push(item)\n }\n\n return list\n })\n\n const propertyAreaListPlaceholder = computed(\n () => i18n.t('propertyAreaListPlaceholder') as string\n )\n\n const isRentals = computed(() =>\n Boolean(props.category && props.category === 'rentals')\n )\n\n const minPricePlaceholder = computed(\n () => i18n.t(isRentals.value ? 'minPricePerNight' : 'minPrice') as string\n )\n\n const maxPricePlaceholder = computed(\n () => i18n.t(isRentals.value ? 'maxPricePerNight' : 'maxPrice') as string\n )\n\n const minPrice2Placeholder = computed(\n () => i18n.t('minPricePerMonth') as string\n )\n\n const maxPrice2Placeholder = computed(\n () => i18n.t('maxPricePerMonth') as string\n )\n\n const orderByPlaceholder = computed(() => i18n.t('orderBy') as string)\n\n const orderByOptions = computed(() => {\n let options: OrderByOption[] = []\n\n for (const [key, item] of Object.entries(propertyOrderByConfig)) {\n if (props.category && !item.categories.includes(props.category))\n continue\n options.push({\n label: i18n.t(`orderByOptions.${key}`) as string,\n value: item.value,\n })\n }\n return options\n })\n\n const orderByValue = computed(() =>\n orderByOptions.value.find((option) => option.value === orderByRef.value)\n )\n\n function onOrderByChange(newValue: OrderByOption | null) {\n orderByRef.value = (newValue && newValue.value) || undefined\n }\n\n function onPropertyAreaListChange(newValue: AreaGetViewModel[]) {\n if (newValue.length > 0) {\n let arr = newValue.map((item) => item.areaId)\n let list = []\n for (const item of arr) {\n if (!item) continue\n list.push({ id: item })\n }\n propertyAreaListRef.value = list\n } else {\n propertyAreaListRef.value = []\n }\n }\n\n function onBathroomDecrement() {\n let value = bathroomRef.value ? bathroomRef.value - 1 : null\n onBathroomChange(value)\n }\n\n function onBathroomIncrement() {\n let value = bathroomRef.value ? bathroomRef.value + 1 : 1\n onBathroomChange(value)\n }\n\n function onBathroomChange(newValue: number | null) {\n bathroomRef.value = newValue ? newValue : undefined\n }\n\n function onBedroomDecrement() {\n let value = bedroomRef.value ? bedroomRef.value - 1 : null\n onBedroomChange(value)\n }\n\n function onBedroomIncrement() {\n let value = bedroomRef.value ? bedroomRef.value + 1 : 1\n onBedroomChange(value)\n }\n\n function onBedroomChange(newValue: number | null) {\n bedroomRef.value = newValue ? newValue : undefined\n }\n\n function onMinPriceChange(newValue: string): void {\n let minPrice = Number.parseFloat(newValue)\n\n if (props.maxPrice && minPrice > props.maxPrice) {\n return\n }\n\n minPriceRef.value = minPrice ? minPrice : undefined\n }\n\n function onMinPrice2Change(newValue: string): void {\n let minPrice2 = Number.parseFloat(newValue)\n\n if (props.maxPrice2 && minPrice2 > props.maxPrice2) {\n return\n }\n\n minPrice2Ref.value = minPrice2 ? minPrice2 : undefined\n }\n\n function onMaxPriceChange(newValue: string): void {\n let maxPrice = Number.parseFloat(newValue)\n\n if (props.minPrice && props.minPrice > maxPrice) {\n return\n }\n\n maxPriceRef.value = maxPrice ? maxPrice : undefined\n }\n\n function onMaxPrice2Change(newValue: string): void {\n let maxPrice2 = Number.parseFloat(newValue)\n\n if (props.minPrice2 && props.minPrice2 > maxPrice2) {\n return\n }\n\n maxPrice2Ref.value = maxPrice2 ? maxPrice2 : undefined\n }\n\n const applyFilters = computed(() => ({\n query: {\n ...currentRoute.value?.query,\n ...queryRef.value,\n ...(props.pageNumber > 1 ? { pageNumber: '1' } : undefined),\n },\n }))\n\n const resetFiltersExceptSearchByRouteTo = computed(() => ({\n query: {\n searchBy:\n currentRoute.value &&\n currentRoute.value.query.searchBy &&\n typeof currentRoute.value.query.searchBy === 'string'\n ? currentRoute.value.query.searchBy\n : undefined,\n },\n }))\n\n watch(\n () => [\n props.bathroom,\n props.bedroom,\n props.minPrice,\n props.minPrice2,\n props.maxPrice,\n props.maxPrice2,\n ],\n ([\n newBathroom,\n newBedroom,\n newMinPrice,\n newMinPrice2,\n newMaxPrice,\n newMaxPrice2,\n ]) => {\n bathroomRef.value = newBathroom\n bedroomRef.value = newBedroom\n minPriceRef.value = newMinPrice\n minPrice2Ref.value = newMinPrice2\n maxPriceRef.value = newMaxPrice\n maxPrice2Ref.value = newMaxPrice2\n maxPrice2Ref.value = newMaxPrice2\n maxPrice2Ref.value = newMaxPrice2\n }\n )\n\n watch(\n () => props.orderBy,\n (newOrderBy) => (orderByRef.value = newOrderBy)\n )\n\n watch(\n () => [props.propertyTypeList, props.propertyAreaList],\n ([newPropTypeList, newPropAreaList]) => {\n propertyTypeListRef.value = newPropTypeList\n propertyAreaListRef.value = newPropAreaList\n }\n )\n\n return {\n propertyTypeListValue,\n propertyTypeListPlaceholder,\n propertyTypeListOptions,\n isLoadingPropertyTypeListOptions,\n onPropertyTypeListChange,\n propertyAreaListValue,\n propertyAreaListPlaceholder,\n propertyAreaListOptions,\n isLoadingPropertyAreaListOptions,\n onPropertyAreaListChange,\n isRentals,\n orderByValue,\n orderByPlaceholder,\n orderByOptions,\n onOrderByChange,\n minPricePlaceholder,\n maxPricePlaceholder,\n minPrice2Placeholder,\n maxPrice2Placeholder,\n onMinPriceChange,\n onMinPrice2Change,\n onMaxPriceChange,\n onMaxPrice2Change,\n onBathroomDecrement,\n onBathroomIncrement,\n onBedroomDecrement,\n onBedroomIncrement,\n applyFilters,\n resetFiltersExceptSearchByRouteTo,\n bathroomRef,\n bedroomRef,\n minPriceRef,\n minPrice2Ref,\n maxPriceRef,\n maxPrice2Ref,\n }\n },\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertyListFilters.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PropertyListFilters.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PropertyListFilters.vue?vue&type=template&id=29c269d6&\"\nimport script from \"./PropertyListFilters.vue?vue&type=script&lang=ts&\"\nexport * from \"./PropertyListFilters.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* custom blocks */\nimport block0 from \"./PropertyListFilters.vue?vue&type=custom&index=0&blockType=i18n&lang=json\"\nif (typeof block0 === 'function') block0(component)\n\nexport default component.exports","import { AxiosInstance } from 'axios'\nimport { api } from '../client'\nimport { Audit, serviceUrl } from '../utils'\n\nconst controller = serviceUrl('exchange')\n\nfunction createExchangeRateService(client: AxiosInstance) {\n return {\n get(params: ExchangeModel) {\n return client.get(controller.action('get'), {\n params,\n })\n },\n\n update(model: ExchangeUpdateModel) {\n return client.post(controller.action('update'), model)\n },\n }\n}\n\nexport const exchangeRateService = createExchangeRateService(api.base)\n\nexport interface ExchangeModel {\n exchangeKey?: number\n}\n\nexport interface ExchangeUpdateModel {\n exchangeId: string\n amount: number\n}\n\nexport interface ExchangeViewModel extends Audit {\n exchangeId: string\n exchangeKey: number\n name: string\n abbreviation: string\n amount: number\n isDeleted: boolean\n}\n\nexport const PESOS_EXCHANGE_KEY = 1\n","import {\n ExchangeModel,\n exchangeRateService,\n} from '@/services/modules/exchangeRate'\nimport { computed } from '@vue/composition-api'\nimport { useService } from './service'\n\nexport function useExchangeRate(model?: ExchangeModel) {\n const request = computed(() => ({\n ...model,\n }))\n\n return useService(request, () => exchangeRateService.get(request.value))\n}\n","import { Ref, ref, watch, WatchSource } from '@vue/composition-api'\nimport { AxiosResponse } from 'axios'\n\nexport function useService(\n getKey: WatchSource,\n fetcher: (...args: any) => Promise>\n) {\n const data = ref([]) as Ref\n const isLoading = ref(false)\n const error = ref(null)\n\n watch(getKey, getFn, {\n deep: true,\n immediate: true,\n })\n\n async function getFn() {\n try {\n isLoading.value = true\n const response = await fetcher()\n data.value = Array.isArray(response.data)\n ? response.data\n : [response.data]\n } catch (e) {\n error.value = e\n } finally {\n isLoading.value = false\n }\n }\n\n async function retry() {\n await getFn()\n }\n\n return {\n data,\n isLoading,\n error,\n retry,\n }\n}\n","import { PropertyModel, propertyService } from '@/services/modules/property'\nimport { currentLanguage } from '@/utils/language'\nimport { computed, ComputedRef, isRef } from '@vue/composition-api'\nimport { AxiosRequestConfig } from 'axios'\nimport { useServicePaginated } from './servicePaginated'\n\nexport function useProperties(\n model: ComputedRef | PropertyModel\n) {\n const request = computed(() => ({\n languageId: currentLanguage.value.guid,\n ...(isRef(model) ? model.value : model),\n }))\n return useServicePaginated(request, (config?: AxiosRequestConfig) =>\n propertyService.get(request.value, config)\n )\n}\n","import { AxiosInstance } from 'axios'\nimport { api } from '../client'\nimport { serviceUrl } from '../utils'\n\nconst controller = serviceUrl('type')\n\nfunction createTypeService(client: AxiosInstance) {\n return {\n get(params: TypeModel) {\n return client.get(controller.action('get'), {\n params,\n })\n },\n }\n}\n\nexport const typeService = createTypeService(api.base)\n\nexport interface TypeModel {\n languageId?: string\n}\n\nexport interface TypeViewModel {\n typeId: string\n typeKey: number\n name: string\n title: string\n description: string\n}\n","import { TypeModel, typeService } from '@/services/modules/type'\nimport { currentLanguage } from '@/utils/language'\nimport { computed, ComputedRef, isRef } from '@vue/composition-api'\nimport { useService } from './service'\n\nexport function useTypes(model?: ComputedRef | TypeModel) {\n const request = computed(() => ({\n languageId: currentLanguage.value.guid,\n ...(isRef(model) ? model.value : model),\n }))\n return useService(request, () => typeService.get(request.value))\n}\n"],"sourceRoot":""}