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oBvQ,EAAEwQ,UAAYyC,YAAYzC,WAGhD,GAAG0C,QAAS,IAAItoC,OAASsoC,QAAQ3C,oBAClC,CAEA,IADGyC,4BAA4BA,2BAA2B3oC,MACrD8jB,EAAI0iB,SAAS5lC,OAAQkjB,IACzB2kB,QAAUjC,SAAS1iB,GAChBoiB,oBAAoBpjB,EAAE0lB,gBAAiBC,UAAYD,gBAAgBC,UACrED,gBAAgBC,SAAS,KAE1BD,gBAAgBC,SAAW,EAE5B,OAAOvC,oBAAoBK,EAAEhmC,OAAO,EAGjCwoC,mBAAqB/pC,KAAqB,eAAIA,KAAqB,gBAAK,GAC5E+pC,mBAAmB56B,QAAQu6B,qBAAqBM,KAAK,KAAM,IAC3DD,mBAAmBpmC,KAAO+lC,qBAAqBM,KAAK,KAAMD,mBAAmBpmC,KAAKqmC,KAAKD,oB,KChDvF,IAAIE,oBAAsB/C,oBAAoBK,OAAExrB,EAAW,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAOmrB,oBAAoB,S,OAC5H+C,oBAAsB/C,oBAAoBK,EAAE0C,oB","sources":["webpack://hm/webpack/universalModuleDefinition","webpack://hm/webpack/runtime/chunk loaded","webpack://hm/webpack/runtime/create fake namespace object","webpack://hm/./wwwroot/js/components/filter/search-filter.js","webpack://hm/./wwwroot/js/components/ga-tracking.js","webpack://hm/./wwwroot/js/components/inputs/custom-inputs-models.js","webpack://hm/./wwwroot/js/components/inputs/editable-input.js","webpack://hm/./wwwroot/js/components/map/autocomplete.js","webpack://hm/./wwwroot/js/components/map/google-map-models.js","webpack://hm/./wwwroot/js/components/map/map-models.js","webpack://hm/./wwwroot/js/components/mortgage-calculator.js","webpack://hm/./wwwroot/js/components/open-hours.js","webpack://hm/./wwwroot/js/components/socials/socials-init.js","webpack://hm/./wwwroot/js/components/map/map-marker.js","webpack://hm/./wwwroot/js/pages/search/search.js","webpack://hm/./wwwroot/js/shared/emit-events.js","webpack://hm/./wwwroot/js/shared/index.js","webpack://hm/./wwwroot/js/shared/utils.js","webpack://hm/./wwwroot/js/shared/vue/create-app.js","webpack://hm/./wwwroot/js/shared/vue/openPreviewMixin.js","webpack://hm/webpack/bootstrap","webpack://hm/webpack/runtime/compat get default export","webpack://hm/webpack/runtime/define property getters","webpack://hm/webpack/runtime/global","webpack://hm/webpack/runtime/hasOwnProperty shorthand","webpack://hm/webpack/runtime/make namespace object","webpack://hm/webpack/runtime/node module decorator","webpack://hm/webpack/runtime/jsonp chunk loading","webpack://hm/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"hm\"] = factory();\n\telse\n\t\troot[\"hm\"] = factory();\n})(self, () => {\nreturn ","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","import {globalActions} from '../../store/global-actions';\nimport {disableHtmlScrollMixin} from '../mixins/component-mixins';\n\nfunction initSearchFilterComponent(app) {\n app.component('search-filter', {\n template: '#search-filter',\n props: {\n mainFilters: {},\n basicFilters: {},\n extendedFilters: {},\n hiddenFilters: {},\n backgroundId: {},\n isActive: {},\n },\n mixins: [disableHtmlScrollMixin],\n data() {\n return {\n isExpanded: this.isActive,\n };\n },\n computed: {\n tags() {\n return this.mainFilters\n .concat(this.basicFilters)\n .concat(this.extendedFilters)\n .concat(this.hiddenFilters)\n .reduce(function(result, filter) {\n if (filter.isValueSet()) {\n result = result.concat(filter.getTags());\n }\n\n return result;\n }, []);\n },\n hasFilters() {\n return this.tags && this.tags.length > 0;\n },\n },\n watch: {\n isActive(val) {\n this.isExpanded = val;\n },\n isExpanded(val) {\n this.$emit('update:isActive', val);\n },\n },\n methods: {\n clearFilter(filter, value) {\n filter.clear(value);\n globalActions.triggerFilterDeepUpdate(filter._filterKey);\n },\n\n toggleMore() {\n this.isExpanded = !this.isExpanded;\n },\n },\n });\n}\n\nexport default initSearchFilterComponent;\n","import {Cookies} from '../shared/cookies-extended';\n\nfunction initGaTrackerComponent(app) {\n const gaEventTracker = {\n props: {\n category: {},\n action: {},\n label: {},\n value: {},\n isNeedToTrack: {},\n isConversion: {},\n },\n watch: {\n isNeedToTrack: {\n handler(newVal, oldVal) {\n if (newVal && newVal !== oldVal) {\n this._trackEvent();\n }\n },\n\n immediate: true,\n },\n },\n methods: {\n _trackEvent() {\n const gaTrack = window.ga;\n const defaultEventValue = 1;\n const value = this.value || defaultEventValue;\n if (gaTrack) {\n gaTrack('send', {\n hitType: 'event',\n eventCategory: this.category,\n eventAction: this.action,\n eventLabel: this.label,\n eventValue: value,\n });\n }\n\n if (this.isConversion) {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n event: 'Conversion',\n category: this.category,\n action: this.action,\n label: this.label,\n value: value,\n });\n }\n },\n },\n render() {\n return null;\n },\n };\n\n\n app.component('ga-event-track', {extends: gaEventTracker});\n\n app.component('ga-event-track-cookie-state', {\n extends: gaEventTracker,\n props: {\n cookieName: {type: String},\n cookieValue: {type: String},\n },\n watch: {\n cookieValue: {\n handler(val) {\n if (JSON.parse(val) === true) {\n const that = this;\n this._readCookieValue().then((oldValue) => {\n if (val !== oldValue) {\n that._trackEvent();\n that._setCookieValue().then(that._onCookiesSet).catch(that._onCookiesSet);\n }\n });\n }\n },\n immediate: true,\n },\n },\n\n methods: {\n _onCookiesSet() {\n // no actions required\n },\n\n _readCookieValue() {\n return Cookies.getWithBackupCheckAsync(this.cookieName);\n },\n\n _setCookieValue() {\n const extraLongExpiration = 365000;\n return Cookies.setWithBackupAsync(this.cookieName, `${this.cookieValue}`, {expires: extraLongExpiration});\n },\n },\n });\n}\n\nexport default initGaTrackerComponent;\n","import {store} from '../../store/global-store';\nimport _get from 'lodash/get';\nimport _u from '../../shared/utils';\n\nclass InputMeta {\n constructor(type, params) {\n this.type = type;\n this.label = params.label;\n this.options = params.options;\n this._filterKey = params.filterKey;\n }\n\n get id() {\n return this._filterKey;\n }\n\n get value() {\n return this.filterValue;\n }\n\n set value(newValue) {\n this.applyFilter({key: this._filterKey, value: newValue});\n }\n\n get filterKey() {\n return this._filterKey;\n }\n\n get filterValue() {\n return this._getFilterValue(this._filterKey);\n }\n\n _getFilterValue(filterKey) {\n return _get(store.getters.filter, filterKey);\n }\n\n isValueSet() {\n return this.value != null;\n }\n\n applyFilter(keyValue) {\n store.dispatch('applyFilter', keyValue);\n }\n\n getSummaryLabel(noValueLabel, withPrefix) {\n let summaryLabel = this._getSummaryLabel() || noValueLabel;\n\n if (summaryLabel && withPrefix) {\n summaryLabel = `${this.label}: ${summaryLabel}`;\n }\n\n return summaryLabel || this.label;\n }\n\n getTags() {\n return [\n {\n label: this.getSummaryLabel('', true),\n value: this.value,\n input: this,\n },\n ];\n }\n\n clear() {\n // overriden in inherited classes\n }\n\n _getSummaryLabel() {\n return '';\n }\n}\n\nclass CheckboxInputMeta extends InputMeta {\n constructor(params) {\n super('check-input', params);\n }\n\n isValueSet() {\n return this.value;\n }\n\n clear() {\n this.value = false;\n }\n\n _getSummaryLabel() {\n return this.value ? this.value.label : null;\n }\n}\n\nclass SelectInputMeta extends InputMeta {\n constructor(params) {\n super('select-input', params);\n this._hasPrefix = params.hasPrefix ?? true;\n }\n\n get value() {\n const selectedValue = this.filterValue;\n return this.options.find((option) => option.value === selectedValue);\n }\n\n set value(selectedOption) {\n this.applyFilter({key: this._filterKey, value: selectedOption ? selectedOption.value : null});\n }\n\n isValueSet() {\n return this.value && this.value.value != null;\n }\n\n clear() {\n this.value = null;\n }\n\n _getSummaryLabel() {\n return this.value ? this.value.label : null;\n }\n\n getTags() {\n return [\n {\n label: this.getSummaryLabel('', this._hasPrefix),\n value: this.value,\n input: this,\n },\n ];\n }\n}\n\nclass NoInputMeta extends InputMeta {\n constructor(params) {\n super('filter-without-input', params);\n }\n\n clear() {\n this.value = null;\n }\n}\n\nclass MultiselectInputMeta extends InputMeta {\n constructor(params) {\n super('multiselect-input', params);\n }\n\n get value() {\n const selectedValues = this.filterValue;\n\n if (!selectedValues) {\n return [];\n }\n\n return this.options.filter((option) => selectedValues.includes(option.value));\n }\n\n set value(selectedOptions) {\n const selectedValues = selectedOptions.map((option) => option.value);\n this.applyFilter({key: this._filterKey, value: selectedValues});\n }\n\n isValueSet() {\n return this.value && this.value.length > 0;\n }\n\n clear(option) {\n if (option) {\n this.value = this.value.filter((v) => v.value !== option.value);\n } else {\n this.value = [];\n }\n }\n\n getTags() {\n return this.value.map((option) => {\n return {\n label: option.label,\n value: option,\n input: this,\n };\n });\n }\n\n _getSummaryLabel() {\n return this.value && this.value.length > 0 ? this.value.map((v) => v.label).join(', ') : null;\n }\n}\n\nclass RangeInputMeta extends InputMeta {\n constructor(params) {\n super('range-input', params);\n this._filterKey = params.filterKey;\n this._filterMinKey = params.filterMinKey;\n this._filterMaxKey = params.filterMaxKey;\n this._toLabel = params.toLabel;\n this._fromLabel = params.fromLabel;\n this.formatter = params.formatter;\n }\n\n get id() {\n return this._filterKey ? this._filterKey : this._filterMinKey;\n }\n\n get value() {\n const minSelected = this.options.find((option) => option.value === this.minValue);\n const maxSelected = this.options.find((option) => option.value === this.maxValue);\n return {min: minSelected, max: maxSelected};\n }\n\n set value(newValue) {\n const min = newValue && newValue.min ? newValue.min.value : null;\n const max = newValue && newValue.max ? newValue.max.value : null;\n this.applyFilter({key: this._filterMinKey, value: min});\n this.applyFilter({key: this._filterMaxKey, value: max});\n }\n\n get minValue() {\n return this._getFilterValue(this._filterMinKey);\n }\n\n get maxValue() {\n return this._getFilterValue(this._filterMaxKey);\n }\n\n get filterMinKey() {\n return this._filterMinKey;\n }\n\n get filterMaxKey() {\n return this._filterMaxKey;\n }\n\n isValueSet() {\n return this.minValue != null || this.maxValue != null;\n }\n\n clear() {\n this.value = null;\n }\n\n _formatRange(min, max) {\n let result = null;\n\n if (min && max) {\n if (min === max) {\n result = `${min.label}`;\n } else if (!min.value) {\n result = `${this._toLabel} ${max.label}`;\n } else if (!max.value) {\n result = `${this._fromLabel} ${min.label}`;\n } else {\n result = `${min.label} - ${max.label}`;\n }\n } else if (min) {\n result = min.label.includes('+') ? min.label : `${min.label}+`;\n } else if (max) {\n result = !max.value ? max.label : `${this._fromLabel} ${max.label}`;\n }\n\n if (this.formatter) {\n result = this.formatter(result);\n }\n\n return result;\n }\n\n _getSummaryLabel() {\n return this._formatRange(this.value.min, this.value.max);\n }\n}\n\nclass TwoSidesRangeInputMeta extends InputMeta {\n constructor(params) {\n super('range-input', params);\n this._filterKey = params.filterKey;\n this._filterMinKey = params.filterMinKey;\n this._filterMaxKey = params.filterMaxKey;\n this._leftSideLabel = params.leftSideLabel;\n this._rightSideLabel = params.rightSideLabel;\n }\n\n get minValue() {\n return this._getFilterValue(this._filterMinKey);\n }\n\n get maxValue() {\n return this._getFilterValue(this._filterMaxKey);\n }\n\n get value() {\n return {min: this.minValue, max: this.maxValue};\n }\n\n set value(newValue) {\n if (!newValue) {\n this.applyFilter({key: this._filterKey, value: null});\n return;\n }\n\n const min = newValue && newValue.min ? newValue.min.value : null;\n const max = newValue && newValue.max ? newValue.max.value : null;\n this.applyFilter({key: this._filterMinKey, value: min});\n this.applyFilter({key: this._filterMaxKey, value: max});\n }\n\n isValueSet() {\n return this.minValue != null || this.maxValue != null;\n }\n\n clear() {\n this.value = null;\n }\n\n _getSummaryLabel() {\n if (this.minValue) {\n return this._rightSideLabel;\n } else {\n return this._leftSideLabel;\n }\n }\n\n getTags() {\n return [\n {\n label: this.getSummaryLabel('', false),\n value: this.value,\n input: this,\n },\n ];\n }\n}\n\nclass CheckGroupInputMeta extends InputMeta {\n constructor(params) {\n super('check-group-input', params);\n }\n\n get value() {\n return this.filterValue;\n }\n\n set value(newValue) {\n this.applyFilter({key: this._filterKey, value: newValue});\n }\n\n isValueSet() {\n return this.value && Object.values(this.value).find((v) => v);\n }\n\n getTags() {\n return Object.keys(this.value)\n .filter((key) => this.value[key])\n .map((key) => {\n return {\n label: this.options[key],\n value: key,\n input: this,\n };\n });\n }\n\n clear(key) {\n if (key) {\n this.value[key] = false;\n } else {\n Object.keys(this.value).map((k) => this.value[k] = false);\n }\n }\n\n _getSummaryLabel() {\n const selected = Object.keys(this.value).filter((key) => this.value[key]);\n return selected.length > 0 ? `(${selected.length})` : null;\n }\n}\n\nclass AddressInputMeta extends InputMeta {\n constructor(params) {\n super('address-input', params);\n this.error = params.error;\n }\n\n get value() {\n return this.filterValue;\n }\n\n set value(newValue) {\n // do nothing, filter will be set in autocomplete callback\n }\n\n isValueSet() {\n return false;\n }\n}\n\nconst dynamicMetaMapping = {\n 'Input': InputMeta,\n 'Checkbox': CheckboxInputMeta,\n 'Dropdown': SelectInputMeta,\n 'Range': RangeInputMeta,\n};\n\nconst DynamicInputMetaFactory = {\n createInputMeta(uiControl, params) {\n const MetaClass = dynamicMetaMapping[uiControl];\n\n if (!MetaClass) {\n console.error(`Unsupported uiControl '${uiControl}'. Unable to create input meta.`);\n return;\n }\n\n if (MetaClass == RangeInputMeta) {\n const propertyName = _u.capitalizeFirstLetter(params.filterKey);\n params.filterMinKey = `${params.filterKeyPrefix}.min${propertyName}`;\n params.filterMaxKey = `${params.filterKeyPrefix}.max${propertyName}`;\n } else if (params.filterKeyPrefix) {\n params.filterKey = `${params.filterKeyPrefix}.${params.filterKey}`;\n }\n\n return new MetaClass(params);\n },\n};\n\n\nexport {AddressInputMeta, SelectInputMeta, MultiselectInputMeta, CheckGroupInputMeta, RangeInputMeta,\n InputMeta, CheckboxInputMeta, DynamicInputMetaFactory, NoInputMeta, TwoSidesRangeInputMeta};\n\n","import {updateModelValueEmit} from './currency-price';\n\nfunction initEditableInputComponent(app) {\n app.component('editableInput',\n {\n template: '#editable-input',\n inheritAttrs: false,\n props: {\n editOkLabel: {required: false},\n editCancelLabel: {required: false},\n editLabel: {required: false},\n showIcons: {default: true},\n modelValue: {required: true},\n inputClass: {required: false},\n isSubmittable: {default: false},\n submitAction: {default: ''},\n inputType: {default: 'text'},\n isRequired: {default: false},\n hasCancel: {default: true},\n onSave: {},\n forceTextMode: {\n required: false,\n type: Boolean,\n default: false,\n },\n haveAdditionalBorderButton: {\n required: false,\n type: Boolean,\n default: false,\n },\n },\n emits: [updateModelValueEmit, 'start-edit', 'cancel', 'save-edit'],\n data() {\n return {\n isEditMode: false,\n initialValue: this.modelValue,\n newValue: this.modelValue,\n isTextMode: this.forceTextMode,\n };\n },\n computed: {\n classObject() {\n return {\n 'input-group_borderless': this.forceTextMode,\n 'input-group_text-inline': this.forceTextMode,\n };\n },\n },\n watch: {\n newValue(val) {\n this.$emit(updateModelValueEmit, val);\n },\n },\n methods: {\n startEdit() {\n this.isEditMode = !this.isEditMode;\n this.$emit('start-edit');\n\n this.$nextTick(() => {\n if (this.$refs.editInput) {\n this.$refs.editInput.focus();\n }\n });\n },\n saveEdit() {\n this.isEditMode = false;\n this.$emit('save-edit');\n if (this.onSave) {\n this.onSave();\n }\n },\n cancelEdit() {\n this.$emit(updateModelValueEmit, this.initialValue);\n this.newValue = this.initialValue;\n this.isEditMode = !this.isEditMode;\n this.$emit('cancel', this.initialValue);\n },\n },\n });\n}\n\nexport default initEditableInputComponent;\n","import {nextTick} from 'vue';\nimport axios from 'axios';\nimport {globalActions} from '../../store/global-actions';\n\nfunction initAutocompleteComponent(app) {\n app.component('autocomplete', {\n template: '#autocomplete',\n props: {\n modelValue: {\n type: String,\n },\n placeholder: {\n type: String,\n },\n autocompleteUrl: {\n type: String,\n required: true,\n },\n placeDetailsUrl: {\n type: String,\n required: true,\n },\n hasSearchButton: {\n type: Boolean,\n default: false,\n },\n },\n emits: ['update:modelValue'],\n data() {\n return {\n address: this.modelValue,\n addresses: [],\n showAutocompleteResults: false,\n selectedAddressIndex: 0,\n };\n },\n watch: {\n modelValue(val) {\n this.address = val;\n },\n },\n methods: {\n checkClickTarget(event) {\n if (event.target !== this.$refs.input && event.target !== this.$refs.list) {\n this.blurAutocomplete();\n }\n },\n input(event) {\n this.address = event.target.value;\n this.$emit('update:modelValue', this.address);\n this._setAddresses();\n },\n blurAutocomplete() {\n this._changeAutocompleteListIsOpened(false);\n this.selectedAddressIndex = 0;\n },\n focusInput() {\n this._setAddresses();\n this.$refs.input.focus();\n },\n selectAddress(index) {\n if (this.addresses[index]) {\n const url = `${this.placeDetailsUrl}/${this.addresses[index].placeId}`;\n axios.get(url)\n .then((res) => globalActions.autocompleteCallback(res.data))\n .catch(() => globalActions.autocompleteCallback(null));\n\n this.blurAutocomplete();\n } else {\n globalActions.autocompleteCallback(null);\n }\n },\n focusPrevAddress() {\n if (this.selectedAddressIndex > 0) {\n --this.selectedAddressIndex;\n }\n },\n focusNextAddress() {\n if (this.selectedAddressIndex < this.addresses.length - 1) {\n ++this.selectedAddressIndex;\n }\n },\n _setAddresses() {\n if (this.address === '') {\n this.addresses = [];\n this._changeAutocompleteListIsOpened(false);\n }\n if (this.address) {\n this._getAutocompleteResults();\n }\n },\n _getAutocompleteResults() {\n const googleQueryDelay = 100;\n const currentAddress = this.address;\n setTimeout(() => {\n if (currentAddress === this.address) {\n const url = `${this.autocompleteUrl}?input=${this.address}`;\n axios.get(url)\n .then((res) => {\n this.addresses = res.data;\n this._changeAutocompleteListIsOpened(this.addresses.length > 0);\n })\n .catch(() => globalActions.autocompleteCallback(null));\n }\n }, googleQueryDelay);\n },\n _changeAutocompleteListIsOpened(state) {\n this.showAutocompleteResults = state;\n },\n },\n });\n\n\n app.component('autocomplete-list', {\n template: '#autocomplete-list',\n props: {\n addresses: {\n type: Array,\n default() {\n return [];\n },\n },\n isActive: {\n type: Boolean,\n default: false,\n },\n selectedAddressIndex: {\n type: Number,\n required: true,\n },\n },\n computed: {\n formattedAddresses() {\n nextTick(() => {\n this.adjustHeight();\n });\n return this.addresses.map((address) => {\n const formattedAddress = {\n main: address.mainAddressPart,\n secondary: ` ${address.secondaryAddressPart}`,\n };\n address.matchingSubstrings.forEach((matchedSubstring) => {\n formattedAddress.main = this._formatMatchedPart(address.mainAddressPart,\n matchedSubstring.offset, matchedSubstring.length);\n });\n return formattedAddress;\n });\n },\n },\n methods: {\n select(index) {\n this.$emit('select-address', index);\n },\n adjustHeight() {\n const autocompleteItems = this.$refs.addresses;\n if (autocompleteItems && autocompleteItems[0]) {\n const rect = autocompleteItems[0].getBoundingClientRect();\n this.$el.style.maxHeight = `${window.innerHeight - rect.top}px`;\n }\n },\n _formatMatchedPart(address, offset, length) {\n const matchedWrapperStart = '';\n const matchedWrapperEnd = '';\n\n return `${address.substring(0, offset)}${matchedWrapperStart}${address.substring(offset, offset + length)}\\\n${matchedWrapperEnd}${address.substring(offset + length)}`;\n },\n },\n });\n}\n\nexport default initAutocompleteComponent;\n","import {BaseCircle, BaseMap, BaseMarker} from './map-models';\n\nclass GoogleMap extends BaseMap {\n constructor(el, options, headers) {\n super(el, options);\n this.initCommonMapOptions(options);\n if (allowRenderMap(headers)) {\n this._map = new google.maps.Map(el, options);\n } else {\n this._map = new BaseMap();\n }\n }\n\n initCommonMapOptions(options) {\n const noPoiStyle = [{\n featureType: 'poi',\n stylers: [{ visibility: 'off' }],\n }];\n\n Object.assign(options, {\n styles: noPoiStyle,\n clickableIcons: false,\n fullscreenControl: false,\n streetViewControl: false,\n cameraControl: false,\n zoomControl: true,\n scrollWheel: true,\n gestureHandling: 'greedy',\n });\n }\n\n // TODO: should be removed in future, used for marker clusterer\n getInternalMap() {\n return this._map;\n }\n\n clearListeners(eventName) {\n google.maps.event.clearListeners(this._map, eventName);\n }\n\n addListener(eventName, handler) {\n this._map.addListener(eventName, handler);\n }\n\n getCenter() {\n return this._map.getCenter();\n }\n\n setCenter(location) {\n this._map.setCenter(location);\n }\n\n getBounds() {\n return this._map.getBounds();\n }\n\n getBoundsArray() {\n const bounds = this._map.getBounds();\n return bounds ? Object.values(bounds.toJSON()) : null;\n }\n\n fitBounds(viewPort) {\n this._map.fitBounds(viewPort, 0);\n }\n\n getZoom() {\n return this._map.getZoom();\n }\n\n setZoom(zoom) {\n this._map.setZoom(zoom);\n }\n\n createMarker(markerOptions) {\n return new GoogleMarker(this._map, markerOptions);\n }\n\n createCircle(marker, circleOptions) {\n return new GoogleCircle(this._map, marker, circleOptions);\n }\n\n setMapToMarker(marker) {\n marker.setMap(this._map);\n }\n\n getViewPort(boundsArray) {\n if (boundsArray && boundsArray.length === 4) {\n const sw = new google.maps.LatLng(boundsArray[0], boundsArray[1]);\n const ne = new google.maps.LatLng(boundsArray[2], boundsArray[3]);\n return new google.maps.LatLngBounds(sw, ne);\n }\n\n return null;\n }\n}\n\nclass GoogleMarker extends BaseMarker {\n constructor(map, options) {\n super(map, options);\n if (map instanceof BaseMap) {\n this._marker = new BaseMarker();\n } else {\n options = Object.assign({}, options, {map});\n this._marker = new google.maps.Marker(options);\n }\n }\n\n setMap(map) {\n this._marker.setMap(map);\n }\n\n resetMap() {\n this.setMap(null);\n }\n\n getPosition() {\n return this._marker.getPosition();\n }\n\n setPosition(location) {\n this._marker.setPosition(location);\n }\n\n addListener(eventName, handler) {\n this._marker.addListener(eventName, handler);\n }\n\n setAnimation(animation) {\n this._marker.setAnimation(animation);\n }\n}\n\nclass GoogleCircle extends BaseCircle {\n constructor(map, marker, options) {\n super(map, marker, options);\n this._marker = marker;\n if (marker instanceof BaseMarker) {\n this._circle = new BaseCircle();\n } else {\n options = Object.assign({}, options, {map});\n this._circle = new google.maps.Circle(options);\n }\n }\n\n bindTo(center, position) {\n this._circle.bindTo(center, this._marker, position);\n }\n\n setRadius(circleRadius) {\n this._circle.setRadius(circleRadius);\n }\n\n getBounds() {\n return this._circle.getBounds();\n }\n}\n\nconst allowRenderMap = (headers) => {\n return !window.navigator.userAgent.includes('cypress') || (headers != null && headers['Force-Map-Load'] != null);\n};\n\nexport {GoogleMap, GoogleMarker, allowRenderMap};\n","class BaseMap {\n constructor(el, options) { }\n addListener(eventName, handler) { }\n clearListeners(eventName) {}\n getCenter() { }\n setCenter(location) { }\n getBounds() { }\n fitBounds(viewPort) { }\n getZoom() { }\n setZoom(zoom) { }\n createMarker(markerOptions) { }\n createCircle(marker, circleOptions) { }\n getViewPort() { }\n}\n\nclass LatLng {\n constructor(lat, lng) {\n this._lat = lat;\n this._lng = lng;\n }\n}\n\nclass BaseMarker {\n constructor(map, options) { }\n\n setMap(map) { }\n\n getPosition() { }\n\n setPosition(location) { }\n\n addListener(eventName, handler) { }\n\n setAnimation(animation) { }\n\n resetMap() { }\n}\n\nclass BaseCircle {\n constructor(map, marker, options) { }\n\n bindTo(center, position) { }\n\n setRadius(circleRadius) { }\n\n getBounds() { }\n}\n\n\nexport {BaseMap, LatLng, BaseMarker, BaseCircle};\n","import VueMultiselectExtended from './inputs/multiselect';\nimport {Field, defineRule} from 'vee-validate';\nimport {regex} from '@vee-validate/rules';\nimport utils from '../shared/utils';\n\ndefineRule('regex', regex);\n\nfunction initMortgageCalculator(app) {\n import('moment').then(({default: moment}) => {\n app.component('mortgageCalculator',\n {\n template: '#mortgage-calculator',\n props: {\n propertyPrice: {},\n defaultInterestRate: {},\n labels: {},\n currency: {},\n paymentFrequencies: {},\n },\n components: {\n Multiselect: VueMultiselectExtended,\n ValidationField: Field,\n },\n data() {\n return {\n loanTerm: 30,\n deposit: null,\n interestRate: this.defaultInterestRate || 5,\n defaultPaymentFrequency: 30,\n selectedFrequency: null,\n loanValue: null,\n localStorageId: 'mortgage-calculator',\n termsList: [],\n maxTermInYears: 30,\n currencySign: this.currency || '$',\n debounceTime: 500,\n modalOpened: false,\n };\n },\n methods: {\n initCalc() {\n this.termsList = Array.from({length: this.maxTermInYears}, (v, k) => k + 1);\n this.loanValue = Math.round(this.toNumber(this.propertyPrice));\n this.setPaymentFrequency(this.defaultPaymentFrequency);\n },\n\n setPaymentFrequency(frequency) {\n if (!frequency || frequency <= 0) {\n frequency = this.defaultPaymentFrequency;\n }\n\n this.selectedFrequency = this.paymentFrequencies.find((f) => f.term == frequency);\n },\n\n toNumber(value) {\n return value != null ? utils.parseNumber(value) : null;\n },\n\n getYearLabel(year) {\n return moment.duration(year, 'years').humanize();\n },\n\n loadSavedCalculatorSettings() {\n try {\n const itemString = localStorage.getItem(this.localStorageId);\n\n if (itemString) {\n Object.assign(this, JSON.parse(itemString));\n this.setPaymentFrequency(this.savedPaymentFrequency);\n }\n } catch (ex) {\n\n }\n },\n\n saveCalculatorSettings() {\n const settings = {\n loanTerm: this.loanTerm,\n deposit: this.deposit,\n interestRate: this.interestRate,\n savedPaymentFrequency: this.selectedFrequency.term,\n };\n\n localStorage.setItem(this.localStorageId, JSON.stringify(settings));\n },\n\n getTermsCountPerYear() {\n const paymentFrequency = this.selectedFrequency.term;\n\n if (paymentFrequency === this.defaultPaymentFrequency) {\n return 12;\n }\n\n return 365.25 / paymentFrequency;\n },\n containsNumber(str) {\n const globalizedDecimalWithSpaces = new RegExp(/^(\\b\\d+([,\\s.]\\d+)*\\b)$/);\n return globalizedDecimalWithSpaces.test(str);\n },\n },\n computed: {\n validateInputs() {\n const isValidDeposit = this.containsNumber(this.deposit) && this.toNumber(this.deposit) > 0;\n const isValidLoanValue = this.containsNumber(this.loanValue) && this.toNumber(this.loanValue) > 0;\n const isValidDepositLoanValueDependency = (this.deposit == null || this.deposit === '' || this.toNumber(this.loanValue) > this.toNumber(this.deposit) );\n\n return this.interestRate &&\n this.interestRate > 0 &&\n this.selectedFrequency &&\n this.selectedFrequency.term &&\n isValidLoanValue &&\n isValidDeposit &&\n isValidDepositLoanValueDependency;\n },\n\n termPayments() {\n if (this.validateInputs) {\n const termsCountPerYear = this.getTermsCountPerYear();\n const termInterestRate = this.interestRate / (termsCountPerYear * 100);\n const termsCount = this.loanTerm * termsCountPerYear;\n const x = 1 - Math.pow(1 + termInterestRate, -termsCount);\n const sum = utils.parseNumber(this.loanValue) - (utils.parseNumber(this.deposit) || 0);\n\n return sum * termInterestRate / x;\n }\n\n return null;\n },\n totalCost() {\n if (this.validateInputs && this.termPayments) {\n const termsCountPerYear = this.getTermsCountPerYear();\n\n if (termsCountPerYear) {\n this.saveCalculatorSettings();\n return termsCountPerYear * this.loanTerm * this.termPayments;\n }\n }\n\n return null;\n },\n totalInterest() {\n if (this.validateInputs && this.totalCost) {\n const sum = utils.parseNumber(this.loanValue) - (utils.parseNumber(this.deposit) || 0);\n return this.totalCost - sum;\n }\n\n return null;\n },\n },\n mounted() {\n this.initCalc();\n this.loadSavedCalculatorSettings();\n },\n });\n });\n}\n\nexport default initMortgageCalculator;\n","function initOpenHoursComponent(app) {\n app.component('preview-open-hours', {\n template: '#preview-open-hours',\n props: {\n date: String,\n startTime: String,\n endTime: String,\n },\n });\n}\n\nexport default initOpenHoursComponent;\n","import $ from 'jquery';\nimport 'jssocials';\nimport ClipboardJS from 'clipboard';\nimport utils from '../../shared/utils';\n\nconst jsSocials = window.jsSocials;\n\nfunction initSocials(settings) {\n const {referrerId, descriptionText} = settings;\n\n const cssDefaults = {\n elementClass: 'js-scls',\n sharesClass: 'js-scls-shares',\n shareClass: 'js-scls-share',\n shareButtonClass: 'js-scls-share-button',\n shareLinkClass: 'js-scls-share-link',\n shareLogoClass: 'js-scls-share-logo',\n shareLabelClass: 'js-scls-share-label',\n shareLinkCountClass: 'js-scls-share-link-count',\n shareCountBoxClass: 'js-scls-share-count-box',\n shareCountClass: 'js-scls-share-count',\n shareZeroCountClass: 'js-scls-share-no-count',\n };\n\n jsSocials.setDefaults(cssDefaults);\n\n jsSocials.Socials.prototype._renderShare = function(share) {\n let $share;\n\n if ($.isFunction(share.renderer)) {\n $share = $(share.renderer());\n } else {\n $share = this._createShare(share);\n }\n\n $share.addClass(this.shareClass)\n .addClass(share.share ? `js-scls-share-${share.share}` : '')\n .addClass(share.css)\n .appendTo(this._$shares);\n\n const id = `${settings.shareActionButtonPrefix}${utils.genUid()}`;\n $share[0].setAttribute('id', id);\n };\n\n jsSocials.shares.facebook = {\n share: 'facebook',\n descriptionText,\n shareUrl: 'https://facebook.com/sharer/sharer.php?u={url}{referrerSource}{referrerId}"e={descriptionText}',\n referrerSource: '?rs=fb',\n referrerId,\n logo: 'fab fa-facebook',\n countUrl: 'https://graph.facebook.com/?id={url}{referrerSource}{referrerId}',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.twitter = {\n share: 'twitter',\n shareUrl: 'https://twitter.com/share?url={url}{referrerSource}{referrerId}&text={text}&via={via}&hashtags={hashtags}',\n referrerSource: '?rs=tw',\n referrerId,\n logo: 'fab fa-twitter',\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.email = {\n share: 'email',\n shareUrl: 'mailto:{to}?subject={text}&body={url}{referrerSource}{referrerId}',\n referrerSource: '?rs=eml',\n referrerId,\n logo: 'fa fa-envelope',\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.vkontakte = {\n label: 'vkontakte',\n logo: 'fab fa-vk',\n descriptionText,\n shareUrl: 'https://vk.com/share.php?url={url}{referrerSource}{referrerId}&image={imageUrl}&title={text}&description={descriptionText}',\n referrerSource: '?rs=vk',\n referrerId,\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.odnoklassniki = {\n label: 'odnoklassniki',\n logo: 'fab fa-odnoklassniki',\n descriptionText,\n shareUrl: 'https://connect.ok.ru/offer?url={url}{referrerSource}{referrerId}&imageUrl={imageUrl}&title={text}&description={descriptionText}',\n referrerSource: '?rs=ok',\n referrerId,\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n\n jsSocials.shares.copy = {\n label: 'Copy link',\n logo: 'fa fa-link',\n shareUrl: 'javascript: (function(){ })()',\n countUrl: '',\n shareIn: 'self',\n };\n}\n\nfunction initCopyToClipboard(shareUrl, container, linkCopiedMessage, shareDropdown, referrerId = '') {\n const referrerSource = '?rs=lnk';\n const copyLinkClass = 'js-scls-share-copy';\n const copyContainerClass = 'js-scl__copy-url';\n const copyUrlContainer = `.${copyContainerClass}`;\n\n const shareUrlCopy = `${shareUrl}${referrerSource}${referrerId}`;\n\n const copyUrlLayout = `
\n \n
`;\n const urlCopiedAlertLayout = `
\n \n ${linkCopiedMessage}\n
`;\n\n const shareContainer = $(container);\n const selector = shareContainer[0].classList.length ? `.${Array.from(shareContainer[0].classList).join('.')}` : '';\n const clickSelector = shareDropdown ? `.${copyLinkClass}` : `${selector} .${copyLinkClass}`;\n\n function appendCopyInfo(copySelector) {\n new ClipboardJS(document.querySelectorAll('.js-scls-share-copy i'), {text: () => shareUrlCopy}); // NOSONAR\n\n $(copySelector).click((e) => {\n // stopPropagation() to prevent dropdown close\n e.stopPropagation();\n\n shareContainer.find(copyUrlContainer).remove();\n shareContainer.append(copyUrlLayout);\n shareContainer.find(copyUrlContainer).prepend(urlCopiedAlertLayout);\n shareContainer.find('.js-scl__copy-url-input').select();\n });\n }\n\n if (shareDropdown) {\n $(shareDropdown).click(() => {\n appendCopyInfo(clickSelector);\n });\n\n $(shareDropdown).on('hidden.bs.dropdown',\n () => {\n shareContainer.find(copyUrlContainer).remove();\n });\n } else {\n $(document).ready(() => {\n appendCopyInfo(clickSelector);\n });\n\n $(document).click(function(e) {\n const targets = $(e.target).parents().addBack();\n const isLinkOrDropdownClicked = targets\n .filter((index, el) => $(el).hasClass(copyLinkClass) || $(el).hasClass(copyContainerClass)).length;\n if (!isLinkOrDropdownClicked) {\n shareContainer.find(copyUrlContainer).remove();\n }\n });\n }\n}\n\nexport {initCopyToClipboard, initSocials};\n","class CustomMarker extends google.maps.OverlayView {\n constructor(latLng, el, cache) {\n super();\n this._latLng = new google.maps.LatLng(latLng.lat, latLng.lng);\n this._el = el;\n this._cache = cache;\n this._point = null;\n }\n\n draw() {\n this.resetPos();\n }\n\n onAdd() {\n const panes = this.getPanes();\n panes.overlayImage.appendChild(this._el);\n }\n\n onRemove() {\n this.removeFromDOM();\n this.removeFromCache();\n }\n\n removeFromDOM() {\n if (this._el && this._el.parentNode) {\n this._el.parentNode.removeChild(this._el);\n }\n }\n\n getPosition() {\n return this._latLng;\n }\n\n resetPos(coord) {\n if (coord) {\n this._latLng = coord;\n }\n\n if (!this.map) {\n this.hide();\n return;\n }\n\n let point = this.getProjection().fromLatLngToDivPixel(this._latLng);\n\n if (point) {\n point = {x: Math.floor(point.x), y: Math.floor(point.y)};\n\n this.removeFromCache();\n this._cache.add(this.getLabel(point));\n this._point = point;\n this._el.style.left = `${point.x}px`;\n this._el.style.top = `${point.y}px`;\n\n this.show();\n }\n }\n\n getLabel(point) {\n return point ? `${point.x}|${point.y}` : '';\n }\n\n isPointsNearly(p1, p2) {\n const gap = 20; // magic number extracted from some practical playing with google coordinates computation logic\n return (Math.abs(p1.x - p2.x) < gap) && (Math.abs(p1.y - p2.y) < gap);\n }\n\n removeFromCache() {\n if (this._point) {\n this._cache.delete(this.getLabel(this._point));\n }\n }\n\n getMaxZIndex() {\n return google.maps.Marker.MAX_ZINDEX;\n }\n\n hide() {\n if (this._el) {\n this._el.style.visibility = 'hidden';\n }\n }\n\n show() {\n if (this._el) {\n this._el.style.visibility = 'visible';\n }\n }\n}\n\nfunction initMapMakerComponent(app) {\n app.component('map-marker', {\n template: '#map-marker',\n props: {\n map: {},\n redrawNeeded: {},\n cache: {},\n markerInfo: {},\n },\n data() {\n return {\n marker: null,\n };\n },\n beforeUnmount() {\n if (this.marker) {\n this.marker.removeFromCache();\n }\n },\n watch: {\n redrawNeeded(val) {\n if (val > 0) {\n const latLng = {lat: this.markerInfo.latitude, lng: this.markerInfo.longitude};\n\n this.marker = new CustomMarker(latLng, this.$el, this.cache);\n }\n },\n 'markerInfo.listing.mouseOver'(val) {\n this.focusMarker(val);\n },\n },\n\n methods: {\n focusMarker(focus) {\n if (this.$el.parentElement) {\n this.$el.parentElement.style.zIndex = focus && this.marker ? this.marker.getMaxZIndex() : 0;\n }\n },\n },\n });\n}\n\nexport default initMapMakerComponent;\n","import {nextTick} from 'vue';\nimport createVueApp from '../../shared/vue/create-app';\nimport _u from '../../shared/utils';\nimport $ from 'jquery';\n\nimport '../../components';\n// TODO:remove imports??\nimport '../../components/map/markerclusterer';\nimport '../../components/map/map-marker';\nimport {initListingCardComponent} from '../../components/card/listing-card';\nimport {\n AddressInputMeta,\n CheckboxInputMeta,\n CheckGroupInputMeta,\n DynamicInputMetaFactory,\n MultiselectInputMeta,\n NoInputMeta,\n RangeInputMeta,\n SelectInputMeta,\n TwoSidesRangeInputMeta,\n} from '../../components/inputs/custom-inputs-models';\n\nimport {allowRenderMap, GoogleMap} from '../../components/map/google-map-models';\nimport transform from 'lodash/transform';\nimport isEqual from 'lodash/isEqual';\nimport isObject from 'lodash/isObject';\nimport deepClone from 'lodash/cloneDeep';\nimport debounce from 'lodash/debounce';\nimport {store} from '../../store/global-store';\nimport {globalActions} from '../../store/global-actions';\nimport {BaseMap} from '../../components/map/map-models';\nimport initCustomControls from '../../components/custom-controls';\nimport initSearchFilterComponent from '../../components/filter/search-filter';\nimport initMapMakerComponent from '../../components/map/map-marker';\nimport initCustomInputsComponents from '../../components/inputs/custom-inputs';\nimport initFavoriteSwitchComponent from '../../components/favorite-switch';\nimport {initCurrencyPriceComponents} from '../../components/inputs/currency-price';\nimport initListingExtraDetailsComponent from '../../components/card/listing-extra-details';\nimport initListingContactForm from '../../components/listing-contact-form';\nimport initAutocompleteComponent from '../../components/map/autocomplete';\nimport initCommentsComponents from '../../components/comments';\nimport initGaTrackerComponent from '../../components/ga-tracking';\nimport initSocialsComponent from '../../components/socials/jssocials';\nimport initListReviewComponents from '../../components/listing-review';\nimport initPriceHistoryChartComponent from '../../components/price-history-chart';\nimport initListingStatisticsComponent from '../../components/listing-statistics';\nimport initStarRatingComponent from '../../components/star-rating';\nimport initMortgageCalculator from '../../components/mortgage-calculator';\nimport initMarkdownViewerComponent from '../../components/markdown/markdown-viewer';\nimport initOpenHoursComponent from '../../components/open-hours';\nimport openPreviewMixin from '../../shared/vue/openPreviewMixin';\nimport VueMultiselectExtended from '../../components/inputs/multiselect';\nimport initAdvertPreviewComponent from '../../components/advert-preview';\nimport {initGAComponents} from '../../components';\nimport initCreateOneClickInquiry from '../../components/create-one-click-inquiry';\n\nconst initSearchPage = (settings) => {\n $(document).ready(() => {\n const app = createVueApp({\n store,\n mixins: [openPreviewMixin],\n components: {\n Multiselect: VueMultiselectExtended,\n },\n data() {\n this.initFilter(settings.searchResult.filter);\n const isSmallScreen = window.matchMedia('(max-width: 560px)').matches;\n\n return Object.assign({\n map: null,\n redrawNeeded: 0,\n mapView: false,\n markerCluster: null,\n _markerCache: null,\n needUpdateMarkerCluster: false,\n mapMinZoom: settings.mapSettings.minZoom,\n mapMaxZoom: settings.mapSettings.maxZoom,\n bigCityZoom: settings.mapSettings.bigCityZoom,\n regionZoom: settings.mapSettings.regionZoom,\n showListingZoom: settings.mapSettings.addressZoom,\n currentDataRequest: null,\n filterTemplate: settings.filterTemplate,\n sortOptions: settings.sortOptions,\n needRenderMap: !isSmallScreen && allowRenderMap(settings.headers),\n isSmallScreen,\n measurementUnit: settings.measurementUnit,\n labels: settings.labels,\n searchResults: settings.searchResult.results,\n markerSearchResults: settings.searchResult.results.map(this.getMarkerInfo),\n filterOptions: this.initFilterOptions(settings.searchResult.opts),\n cityName: this.extractCityNameFromSearchResult(settings.searchResult),\n opts: settings.searchResult.opts,\n showUpdatedModal: false,\n resultsLoading: true,\n showBoostModal: false,\n firstLoading: true,\n showContactButton: settings.matchingItemId != '',\n previewId: settings.searchResult.filter.previewId,\n fewResultsCount: settings.fewResultsCount,\n searchPreviewUrl: '',\n createOrderUrl: '',\n isBuyLocationMode: settings.isBuyLocationMode,\n isMobileDevice: settings.isMobileDevice,\n titleFromServer: '',\n isNewDataSearched: false,\n isPreviewPage: null,\n });\n },\n watch: {\n filter: {\n handler: debounce(function(newVal) {\n // eslint-disable-next-line no-invalid-this\n this.updateUrlFilter(newVal);\n // eslint-disable-next-line no-invalid-this\n this.renderMap();\n },\n 100, {\n 'leading': true,\n 'trailing': false,\n }),\n deep: true,\n immediate: true,\n },\n },\n emits: ['mouseover', 'mouseleave'],\n computed: {\n filter: {\n get() {\n return store.getters.filter;\n },\n set(val) {\n store.commit('initFilter', val);\n },\n },\n defaultSortOption() {\n return this.sortOptions.find((o) => o.isDefault);\n },\n sortedSearchResults() {\n if (!this.searchResults.length) {\n return this.searchResults;\n }\n\n return this.sortItems(this.searchResults);\n },\n selectedSortOption: {\n get() {\n return this.sortOptions.find((o) => o.optionId === this.filter.sortOptionId) || this.defaultSortOption;\n },\n set(sortOption) {\n this.updateFilter('sortOptionId', sortOption.optionId);\n },\n },\n pricePickerMin() {\n return this.opts.priceOptions[0].value;\n },\n pricePickerMax() {\n return this.opts.priceOptions[this.opts.priceOptions.length - 1].value ||\n this.opts.priceOptions[this.opts.priceOptions.length - 2].value;\n },\n isPriceNotFiltered() {\n return !(this.filter.minPrice || this.filter.maxPrice) ||\n (!this.filter.minPrice && this.filter.maxPrice === this.pricePickerMax) ||\n (this.filter.minPrice === this.pricePickerMin && !this.filter.maxPrice) ||\n (this.filter.minPrice === this.pricePickerMin && this.filter.maxPrice === this.pricePickerMax);\n },\n isMaxPriceSpecified() {\n return this.filter.maxPrice;\n },\n minPrice() {\n return !this.filter.minPrice ?\n settings.labels.zeroPrice :\n this.opts.priceOptions.find((i) => i.value === this.filter.minPrice).label;\n },\n maxPrice() {\n return !this.filter.maxPrice ?\n settings.labels.maxPrice :\n this.opts.priceOptions.find((i) => i.value === this.filter.maxPrice).label;\n },\n priceRangeLabel() {\n let res;\n if (this.isPriceNotFiltered) {\n res = settings.labels.anyPrice;\n } else {\n const min = this.minPrice;\n const max = this.maxPrice;\n\n if (this.filter.minPrice === this.pricePickerMax) {\n res = `${min} - ${settings.labels.maxPrice}`;\n } else {\n res = `${min} - ${max}`;\n }\n }\n return res;\n },\n noItemsFound() {\n return this.searchResults.length === 0;\n },\n fewResultsFound() {\n return !this.noItemsFound && this.searchResults.length <= this.fewResultsCount;\n },\n searchText: {\n get() {\n return this.filter.text;\n },\n set: () => {\n // to mute vue.js complains\n },\n },\n previewSrc() {\n if (this.previewId) {\n return `${settings.urls.previewUrl}/${this.previewId}`;\n }\n return null;\n },\n\n previewState() {\n // NOTE: new previewState object is created every time new preview is opened\n // 'previewState' is used as temporary initial data object for preview component\n // (rendered inside async - component based on previewScr)\n if (this.previewId) {\n return {\n isCompactActionsMode: false,\n currentPage: location.pathname + location.search + location.hash,\n switchCompactActionsMode(val) {\n this.isCompactActionsMode = val;\n },\n shouldReplaceHistory: false,\n };\n }\n\n return null;\n },\n\n hasPreviewNext() {\n if (this.previewId && this.searchResults.length > 1) {\n const index = this.getPreviewListingIndex();\n return index >= 0 && this.searchResults.length > index + 1;\n }\n\n return false;\n },\n\n hasPreviewPrev() {\n if (this.previewId && this.searchResults.length > 1) {\n const index = this.getPreviewListingIndex();\n return index > 0 && this.searchResults.length > index - 1;\n }\n\n return false;\n },\n\n showFilteredViews() {\n return this.needFilterViews && this.filteredViewsData;\n },\n\n formattedCityName() {\n return _u.changeWordForm(this.cityName);\n },\n\n previewPayload() {\n return {\n listingId: this.previewId,\n listingType: this.opts.listingType,\n previewUrl: this.searchPreviewUrl,\n };\n },\n },\n updated() {\n if (this.needUpdateMarkerCluster) {\n nextTick(() => {\n this.updateMarkerClusters();\n this.scrollToTop();\n });\n }\n },\n methods: {\n initFilter() {\n store.commit('initFilter', settings.searchResult.filter);\n store.subscribeAction((action) => {\n if (action.type === 'applyFilter') {\n this.applyFilter();\n }\n });\n },\n updateFilter(key, value) {\n store.commit('updateFilter', {key, value});\n },\n\n updateUrlFilter(filterNewVal) {\n if (!this.isUrlFilterChecked) {\n this.subscribeUrlHashChange();\n\n const filterFromUrl = _u.getHashLocationObject(this.filterTemplate);\n\n if (filterFromUrl) {\n this.filter = filterFromUrl;\n }\n\n if (this.previewId) { // do not load map until first preview is closed\n this.needRenderMap = false;\n }\n\n if (!this.needRenderMap) {\n this.applyFilter();\n }\n\n this.isUrlFilterChecked = true;\n } else {\n if (window.location.hash.startsWith('#comment')) {\n window.location = window.location.hash;\n }\n\n _u.updateHashLocation(filterNewVal);\n }\n },\n\n updatePageTitle() {\n if (settings.titleTemplate && this.titleAddress) {\n document.title = this.isNewDataSearched || this.isPreviewPage ?\n _u.formatString(settings.titleTemplate, this.titleAddress) : this.titleFromServer;\n }\n },\n\n initPageTitle() {\n this.titleFromServer = document.title;\n this.titleAddress = this._extractTitleAddressFromGeoData(settings.searchResult.locationGeoData);\n },\n _getDifference(object, base) {\n function changes(object, base) {\n return transform(object,\n function(result, value, key) {\n if (!isEqual(value, base[key])) {\n result[key] =\n (isObject(value) && isObject(base[key])) ?\n changes(value, base[key]) :\n value;\n }\n });\n }\n\n return changes(object, base);\n },\n\n subscribeUrlHashChange() {\n window.addEventListener('popstate',\n debounce(() => {\n const filterFromUrl = _u.getHashLocationObject(this.filterTemplate);\n\n if (filterFromUrl) {\n if (this.filter.uid !== filterFromUrl.uid) {\n this.filter = filterFromUrl;\n this.resetMapCenter();\n }\n } else {\n if (!window.location.hash.startsWith('#comment')) {\n const id = this.checkPreviewUrl(document.location.href);\n if (id) {\n const radix = 10;\n this.preview(parseInt(id, radix));\n } else {\n document.location.reload();\n }\n }\n }\n },\n 100));\n },\n\n renderMap() {\n if (!this.map && this.needRenderMap) {\n nextTick(() => {\n this.map = new GoogleMap(document.getElementById('map'), {\n center: {\n lat: this.filter.lat,\n lng: this.filter.lon,\n },\n zoom: this.filter.zoom,\n minZoom: this.mapMinZoom,\n maxZoom: this.mapMaxZoom,\n zoomControlOptions: {\n position: google.maps.ControlPosition.RIGHT_CENTER,\n },\n }, settings.headers);\n\n this.map.addListener('idle',\n () => {\n this.applyFilter();\n this.clearMapIdleListener();\n this.addMapIdleListener();\n });\n\n this.map.addListener('zoom_changed', () => {\n this.updateFilter('zoom', this.map.getZoom());\n });\n });\n\n return true;\n }\n\n return false;\n },\n\n addMapIdleListener() {\n if (this.map) {\n this.map.addListener('idle', this.applyFilter);\n }\n },\n\n clearMapIdleListener() {\n if (this.map) {\n this.map.clearListeners('idle');\n }\n },\n\n applyFilter() {\n if (!this._applyFilter) {\n this._applyFilter = debounce(this.requestDataUpdate, this.opts.debounceTime);\n }\n\n this._applyFilter();\n },\n\n requestDataUpdate() {\n this.updateFilterLocation();\n\n let param = Object.assign({}, this.filter);\n\n param = JSON.stringify(param);\n this.sendSearchRequest(settings.urls.dataRequestUrl, param, this.updateItems);\n },\n\n updateFilterLocation() {\n if (this.needRenderMap) {\n const center = this.map.getCenter();\n if (center != null && (this.filter.lat !== center.lat() || this.filter.lon !== center.lng())) {\n this.updateFilter('lat', center.lat());\n this.updateFilter('lon', center.lng());\n }\n\n this.updateFilter('bounds', this.map.getBoundsArray());\n }\n },\n\n resetMapCenter() {\n if (this.needRenderMap) {\n const center = this.map.getCenter();\n if (center != null && (this.filter.lat !== center.lat() || this.filter.lon !== center.lng())) {\n this.map.setCenter({lat: this.filter.lat, lng: this.filter.lon});\n }\n }\n },\n\n sendSearchRequest(url, requestData, callback) {\n this.currentDataRequest = $.ajax({\n type: 'POST',\n url,\n contentType: 'application/json',\n data: requestData,\n context: this,\n beforeSend() {\n if (this.currentDataRequest != null) {\n this.currentDataRequest.abort();\n }\n setTimeout(() => {\n if (this.currentDataRequest) {\n this.resultsLoading = true;\n }\n }, 500);\n },\n complete() {\n this.currentDataRequest = null;\n this.resultsLoading = false;\n this.firstLoading = false;\n },\n })\n .done(callback);\n },\n\n filterUpdated(kayValue) {\n this.updateFilter(kayValue.key, kayValue.val);\n this.applyFilter();\n },\n\n moreOptionSelected() {\n this.applyFilter();\n },\n\n scrollToTop() {\n const scrollContainer = document.getElementById('search-results-container');\n\n if (scrollContainer) {\n scrollContainer.scrollTop = 0;\n }\n },\n\n updateItems(newerItems) {\n this.clearMarkerCache();\n this.markerSearchResults = newerItems.map(this.getMarkerInfo);\n this.searchResults = newerItems;\n\n nextTick(() => {\n nextTick(() => {\n this.redrawNeeded++;\n this.needUpdateMarkerCluster = true;\n this.tryShowOnMap();\n });\n });\n },\n\n repositionMap() {\n if (!this.needRenderMap) {\n this.applyFilter();\n }\n\n if (this.map) {\n this.map.setCenter({lat: this.filter.lat, lng: this.filter.lon});\n this.fitMapToBounds(this.filter.bounds);\n }\n },\n\n fitMapToBounds(boundsArray) {\n if (boundsArray && boundsArray.length) {\n const viewPort = this.map.getViewPort(boundsArray);\n this.map.fitBounds(viewPort);\n\n this.zoomInMapIfTooSmall();\n }\n },\n\n zoomInMapIfTooSmall(zoom) {\n zoom = zoom ? zoom : this.regionZoom;\n\n if (this.needRenderMap && this.map && this.map.getZoom() < zoom) {\n this.map.setZoom(zoom);\n }\n\n if (!this.needRenderMap) {\n this.updateFilter('zoom', zoom);\n }\n },\n\n zoomOutMapIfTooBig(zoom) {\n zoom = zoom ? zoom : this.regionZoom;\n\n if (this.needRenderMap && this.map.getZoom() > zoom) {\n this.map.setZoom(zoom);\n }\n\n if (!this.needRenderMap) {\n this.updateFilter('zoom', zoom);\n }\n },\n\n preview(listingId) {\n this.previewId = listingId;\n\n this.isPreviewPage = this.isPreviewPage ?? false;\n const index = this.getPreviewListingIndex();\n if (this.hasListingInSearchResults(index)) {\n this.searchPreviewUrl = this.getListingPreviewUrlByIndex(index);\n }\n },\n\n hasListingInSearchResults(index) {\n return index >= 0;\n },\n\n getListingPreviewUrlByIndex(index) {\n const listing = this.searchResults[index];\n return listing?.previewUrl;\n },\n\n closePreview(event) {\n this.isPreviewPage = this.isPreviewPage ?? true;\n this.updatePageTitle();\n\n if (this.previewId) {\n this.previewId = null;\n\n this.resetPageUrl(event);\n }\n\n if (!this.needRenderMap && !this.isSmallScreen) {\n this.needRenderMap = true; // render map after first preview is closed on desktop\n this.renderMap();\n }\n\n if (this.isMobileDevice) {\n globalActions.showFeedbackButton();\n }\n },\n\n resetPageUrl(closeEvent) {\n if (closeEvent && closeEvent.closeOnBack) {\n return;\n }\n\n const searchPageUrl = this.getSearchPageUrl(this.opts.listingSearchType, this.filter);\n if (this.getCurrentLocation() !== searchPageUrl && searchPageUrl) {\n window.history.pushState({}, document.title, searchPageUrl);\n }\n\n _u.updateHashLocation(this.filter);\n },\n\n previewNext() {\n if (this.hasPreviewNext) {\n const index = this.getPreviewListingIndex() + 1;\n const listing = this.searchResults[index];\n this.searchPreviewUrl = listing?.previewUrl;\n this.preview(listing.id);\n\n globalActions.markAsViewed(listing.id);\n }\n },\n\n previewPrev() {\n if (this.hasPreviewPrev) {\n const index = this.getPreviewListingIndex() - 1;\n const listing = this.searchResults[index];\n this.searchPreviewUrl = listing?.previewUrl;\n this.preview(listing.id);\n\n globalActions.markAsViewed(listing.id);\n }\n },\n\n getCurrentLocation() {\n return location.pathname + location.search + location.hash;\n },\n\n getPreviewListingIndex() {\n return this.searchResults.findIndex((l) => l.id === this.previewId);\n },\n\n getPreviewListing() {\n return this.searchResults.find((l) => l.id === this.previewId);\n },\n\n toggleFavoriteUrl(listing) {\n if (this.isOwner(listing)) {\n return null;\n }\n\n return `${settings.urls.toggleFavoriteUrl}/${listing.id}`;\n },\n\n loadPhoneUrl(listing) {\n return this.buildListingUrl(settings.urls.loadPhoneUrl, listing);\n },\n\n buildListingUrl(url, listing) {\n return url.replace(0, listing.id);\n },\n\n checkPreviewUrl(url) {\n const previewPattern = new RegExp(`(\\\\${settings.urls.detailsUrl}\\\\/\\\\d+)$`);\n const matches = url.match(previewPattern);\n return matches && matches.length > 0 ? matches[0].split('/')[2] : null;\n },\n\n priceAvailable(listing) {\n return !listing.hidePrice;\n },\n\n askForPriceAvailable(listing) {\n return listing && !this.isOwner(listing) && listing.status === settings.listedPropertyStatus;\n },\n\n isOwner(listing) {\n return listing.userId === settings.currentUserId;\n },\n\n toggleSearchView() {\n this.needRenderMap = true;\n this.mapView = !this.mapView;\n\n this.mapView ? this.addMapIdleListener() : this.clearMapIdleListener();\n this.renderMap();\n nextTick(() => this.setInitialMapBounds());\n },\n\n hoverListing(listing) {\n listing['mouseOver'] = true;\n },\n\n overListingHover(listing) {\n listing['mouseOver'] = false;\n },\n\n changeListingType(listingType) {\n const filterParam = Object.assign({}, this.filter);\n\n filterParam.sortOptionId = this.defaultSortOption.optionId;\n filterParam.matchingItemId = null;\n filterParam.bounds = this.getCurrentBounds();\n filterParam.maxPrice = null;\n filterParam.minPrice = null;\n filterParam.offerType = listingType % 2; // TODO: pass offer type in nice way\n\n const searchPageUrl = this.getSearchPageUrl(listingType, filterParam);\n window.location.href = `${searchPageUrl}#${JSON.stringify(filterParam)}`;\n },\n\n getSearchPageUrl(listingType, filter) {\n const locParamName = settings.searchUrlsParams[0];\n const latParamName = settings.searchUrlsParams[1];\n const lonParamName = settings.searchUrlsParams[2];\n\n return `${settings.searchUrls[listingType]}?${locParamName}=${filter.text}&${latParamName}=${filter.lat}&${lonParamName}=${filter.lon}`;\n },\n\n sortItems(items) {\n const that = this;\n\n items.sort(function(a, b) {\n let sortOption = that.selectedSortOption;\n\n if (a[sortOption.field] === null && b[sortOption.field] === null) {\n sortOption = that.defaultSortOption;\n }\n const aValue = a[sortOption.field] === null ? -1 : a[sortOption.field];\n const bValue = b[sortOption.field] === null ? -1 : b[sortOption.field];\n\n const result = sortOption.isDate ?\n Date.parse(aValue) - Date.parse(bValue) :\n aValue - bValue;\n\n return sortOption.isAscending || sortOption.isDefault ? result : -1 * result;\n });\n\n return items;\n },\n\n saveInquiry() {\n this.updateFilter('bounds', this.getCurrentBounds());\n const param = Object.assign({}, this.filter);\n\n this.sendPostRequest(settings.urls.saveInquiryUrl, param)\n .done((result) => {\n if (!result.error) {\n window.location.href = result.redirectUrl;\n } else {\n globalActions.openInfoModal(settings.labels.filterNotSaved, result.error);\n }\n });\n },\n\n redirectPropertyCreation() {\n window.location.href = settings.urls.propertyCreateUrl;\n },\n\n updateMarkerClusters() {\n const markers = this.getRenderedMarkers();\n\n if (this.markerCluster && markers.length === 0) {\n this.markerCluster.clearMarkers();\n\n if (this.markerSearchResults.length === 0) {\n this.needUpdateMarkerCluster = false;\n }\n\n return;\n }\n\n if (markers.length) {\n this.needUpdateMarkerCluster = false;\n\n if (this.markerCluster) {\n this.markerCluster.clearMarkers();\n this.markerCluster.addMarkers(markers);\n } else if (this.map && !(this.map.getInternalMap() instanceof BaseMap)) {\n this.markerCluster = new MarkerClusterer(this.map.getInternalMap(),\n markers, {\n zoomOnClick: true,\n gridSize: 20, // default is 60, set bigger to make clusters bigger\n styles: this.getClustersStyles(),\n maxZoom: this.mapMaxZoom - 1,\n });\n }\n }\n },\n\n getRenderedMarkers() {\n return this.$refs.markerItems ? this.$refs.markerItems.map((i) => i.marker).filter((i) => i != null) : [];\n },\n\n getListing(listingId) {\n return this.searchResults.find((l) => l.id === listingId);\n },\n\n getMarkerCache() {\n if (!this._markerCache) {\n this._markerCache = new Set();\n }\n\n return this._markerCache;\n },\n\n clearMarkerCache() {\n if (this._markerCache) {\n this._markerCache.clear();\n }\n },\n\n getMarkerInfo(listing) {\n return {\n text: listing.priceText || listing.priceTypeText,\n textSuffix: listing.pricePeriodShortText,\n latitude: listing.address.latitude,\n longitude: listing.address.longitude,\n previewUrl: listing.previewUrl,\n favoriteUrl: this.toggleFavoriteUrl(listing),\n listing,\n };\n },\n\n getClustersStyles() {\n const clusterImgUrl = '/static/marker/cluster.svg';\n return [{\n textColor: 'white',\n url: clusterImgUrl,\n height: 45,\n width: 45,\n }, {\n textColor: 'white',\n url: clusterImgUrl,\n height: 52,\n width: 52,\n }, {\n textColor: 'white',\n url: clusterImgUrl,\n height: 62,\n width: 62,\n }, {\n textColor: 'white',\n url: clusterImgUrl,\n height: 75,\n width: 75,\n }, {\n textColor: 'white',\n url: clusterImgUrl,\n height: 90,\n width: 90,\n }];\n },\n\n setInitialMapBounds() {\n if (this.map && this.filter.bounds && this.filter.bounds.length) {\n this.fitMapToBounds(this.filter.bounds);\n }\n },\n\n needRenderSampleImage(listing, index) {\n const maxFullyVisibleItems = 9;\n return listing.media && listing.media.coverPhoto && listing.media.coverPhoto.sampleHRef &&\n index >= maxFullyVisibleItems;\n },\n\n centerToListing(listingId) {\n const listing = this.getListing(listingId);\n\n if (listing && this.needRenderMap && this.map) {\n this.map.setCenter({lat: listing.address.latitude, lng: listing.address.longitude});\n } else if (listing) {\n this.updateFilter('lat', listing.address.latitude);\n this.updateFilter('lon', listing.address.longitude);\n }\n },\n\n increaseSearchArea() {\n const newZoom = this.filter.zoom > this.bigCityZoom ? this.bigCityZoom : this.mapMinZoom;\n this.updateFilter('zoom', newZoom);\n this.$nextTick(this.applyFilter);\n\n if (this.needRenderMap) {\n this.map.setZoom(newZoom);\n this.updateFilter('bounds', this.getCurrentBounds());\n this.$nextTick(this.applyFilter);\n } else {\n this.approximatelyIncreaseBounds();\n }\n },\n\n approximatelyIncreaseBounds() {\n if (this.filter.bounds && this.filter.bounds.length) {\n const bounds = this.filter.bounds;\n\n const swLat = bounds[0];\n const swLng = bounds[1];\n const neLat = bounds[2];\n const neLng = bounds[3];\n const increaseCoef = 3; // 300%\n const latAdjustment = (neLat - swLat) * increaseCoef;\n const lngAdjustment = (neLng - swLng) * increaseCoef;\n const newBounds = [swLat - latAdjustment, swLng - lngAdjustment, neLat + latAdjustment, neLng + lngAdjustment];\n\n this.updateFilter('bounds', newBounds);\n this.$nextTick(this.applyFilter);\n }\n },\n\n clearFilter() {\n const filterBase = {\n bounds: this.filter.bounds,\n lat: this.filter.lat,\n lon: this.filter.lon,\n offerType: this.filter.offerType,\n text: this.filter.text,\n };\n\n const template = deepClone(this.filterTemplate);\n this.filter = Object.assign(template, filterBase);\n\n nextTick(() => {\n nextTick(() => {\n this.requestDataUpdate();\n });\n });\n },\n\n showMoreListings(listingId) {\n this.closePreview();\n this.centerToListing(listingId);\n this.zoomOutMapIfTooBig();\n },\n\n findSimilarListings(listingId) {\n this.closePreview();\n this.centerToListing(listingId);\n const bounds = this.getCurrentBounds();\n const url = `${settings.urls.findSimilarUrl}/${listingId}`;\n\n this.sendPostRequest(url, bounds).done((result) => {\n if (result) {\n Object.assign(this.filter, result);\n this.zoomOutMapIfTooBig();\n }\n });\n },\n\n showListingPreview(listingId) {\n this.preview(listingId);\n this.centerToListing(listingId);\n },\n\n showOnMap(listingId, url = null) {\n this.closePreview();\n const googleAnalyticParameter = `src=${settings.googleAnalyticMapParameter}`;\n if (url && url.match(googleAnalyticParameter)) {\n const newUrl = _u.addQueryParam('src', settings.googleAnalyticMapParameter);\n history.replaceState(window.location.state, document.title, `${newUrl}`);\n }\n if (this.isSmallScreen && !this.mapView) {\n this.toggleSearchView();\n }\n nextTick(() => {\n this.centerToListing(listingId);\n this.zoomInMapIfTooSmall(this.showListingZoom);\n });\n },\n\n tryShowOnMap() {\n if (this.filter.focusListingId) {\n this.showOnMap(this.filter.focusListingId);\n this.filter.focusListingId = null;\n }\n },\n\n sendPostRequest(url, obj) {\n return $.ajax({\n type: 'POST',\n url,\n contentType: 'application/json',\n data: JSON.stringify(obj),\n });\n },\n\n getCurrentBounds() {\n return this.needRenderMap ? this.map.getBoundsArray() : this.filter.bounds;\n },\n\n getFormattedPrice(listing) {\n return (!listing.hidePrice && listing.priceText) ? `${listing.priceText}` : listing.priceTypeText;\n },\n\n initPriceBounds() {\n const isPriceOutOfMinBound = (price) => (price > 0) && (price < this.pricePickerMin);\n const isPriceOutOfMaxBound = (price) => price > this.pricePickerMax;\n\n if (isPriceOutOfMinBound(this.filter.minPrice)) {\n this.filter.minPrice = 0;\n }\n if (isPriceOutOfMaxBound(this.filter.minPrice)) {\n this.filter.minPrice = this.pricePickerMax;\n }\n\n if (isPriceOutOfMinBound(this.filter.maxPrice)) {\n this.filter.maxPrice = this.pricePickerMin;\n }\n if (isPriceOutOfMaxBound(this.filter.maxPrice)) {\n this.filter.maxPrice = null;\n }\n },\n\n initAreaBounds() {\n const isAreaNotInOptions = (area, options) => !options.map((o) => o.value).includes(area);\n\n if (isAreaNotInOptions(this.filter.floorAreaMin, this.opts.areaOptions)) {\n this.filter.floorAreaMin = null;\n }\n if (isAreaNotInOptions(this.filter.floorAreaMax, this.opts.areaOptions)) {\n this.filter.floorAreaMax = null;\n }\n\n if (isAreaNotInOptions(this.filter.landAreaMin, this.opts.landAreaOptions)) {\n this.filter.landAreaMin = null;\n }\n if (isAreaNotInOptions(this.filter.landAreaMax, this.opts.landAreaOptions)) {\n this.filter.landAreaMax = null;\n }\n },\n\n closeFilterOptions() {\n this.filterOptions.isActive = false;\n },\n\n getDynamicFiltersMetadata(dynamicFilters, filterKeyPrefix) {\n return dynamicFilters.map((filter) => {\n return DynamicInputMetaFactory.createInputMeta(filter.filterControl, {\n label: filter.displayName,\n options: filter.validValuesList,\n filterKey: filter.propertyName,\n filterKeyPrefix: filterKeyPrefix,\n });\n });\n },\n\n initFilterOptions(searchOptions) {\n let filters = {\n address: new AddressInputMeta({label: settings.labels.addressInputPlaceholder, filterKey: 'text'}),\n propertyType: new MultiselectInputMeta({\n label: settings.labels.propertyType,\n options: searchOptions.propertyTypes,\n filterKey: 'selectedPropertyTypes',\n }),\n ownerType: new MultiselectInputMeta({\n label: settings.labels.ownerType,\n options: searchOptions.ownerTypes,\n filterKey: 'selectedOwnerTypes',\n }),\n price: new RangeInputMeta({\n label: settings.labels.price,\n fromLabel: settings.labels.fromLabel,\n toLabel: settings.labels.toLabel,\n options: searchOptions.priceOptions,\n filterKey: 'price',\n filterMinKey: 'minPrice',\n filterMaxKey: 'maxPrice',\n formatter: (text) => this.$filters['formatPrice'](text, 'short'),\n }),\n beds: new SelectInputMeta({\n label: settings.labels.beds,\n options: searchOptions.bedrooms,\n filterKey: 'selectedBedrooms',\n }),\n baths: new SelectInputMeta({\n label: settings.labels.baths,\n options: searchOptions.bathrooms,\n filterKey: 'selectedBathrooms',\n }),\n floorArea: new RangeInputMeta({\n label: settings.labels.floorArea,\n fromLabel: settings.labels.fromLabel,\n toLabel: settings.labels.toLabel,\n options: searchOptions.areaOptions,\n filterMinKey: 'floorAreaMin',\n filterMaxKey: 'floorAreaMax',\n }),\n landArea: new RangeInputMeta({\n label: settings.labels.landArea,\n fromLabel: settings.labels.fromLabel,\n toLabel: settings.labels.toLabel,\n options: searchOptions.landAreaOptions,\n filterMinKey: 'landAreaMin',\n filterMaxKey: 'landAreaMax',\n }),\n matchingItem: new NoInputMeta({label: settings.labels.matchingListing, filterKey: 'matchingItemId'}),\n aroundFeatures: new CheckGroupInputMeta({\n label: settings.labels.aroundFeatures,\n options: searchOptions.aroundFeatures,\n filterKey: settings.isCommercial ? 'features.around' : 'aroundFeatures',\n }),\n publicationDate: new NoInputMeta({label: settings.labels.latestListings, filterKey: 'publicationDate'}),\n viewsCount: new NoInputMeta({label: settings.labels.popularListings, filterKey: 'viewsCountRange'}),\n pricePerArea: new TwoSidesRangeInputMeta({\n leftSideLabel: settings.labels.budgetFriendly,\n rightSideLabel: settings.isCommercial ? settings.labels.premium : settings.labels.elite,\n filterKey: 'pricePerArea',\n filterMinKey: 'pricePerArea.minimum',\n filterMaxKey: 'pricePerArea.maximum',\n }),\n ecoFriendly: new CheckboxInputMeta({\n label: settings.labels.ecoFriendly, filterKey: 'isEcoFriendly',\n }),\n containsVideo: new CheckboxInputMeta({\n label: settings.labels.containsVideo, filterKey: 'containsVideo',\n }),\n containsPhoto: new CheckboxInputMeta({\n label: settings.labels.containsPhoto, filterKey: 'containsPhoto',\n }),\n };\n\n if (settings.showSolidarity) {\n filters = {\n solidarity: new CheckboxInputMeta({label: settings.labels.solidarityLabel, filterKey: 'solidarity'}),\n ...filters,\n };\n }\n\n let combinedFilters = {};\n\n if (settings.isCommercial) {\n const mainFeatures = this.getDynamicFiltersMetadata(searchOptions.mainFeatures, 'features');\n const extendedFeatures = this.getDynamicFiltersMetadata(searchOptions.extendedFeatures, 'features');\n\n combinedFilters = {\n mainFilters: [filters.address, filters.propertyType, filters.price, filters.floorArea],\n basicFilters: [filters.ownerType, ...mainFeatures],\n extendedFilters: [filters.aroundFeatures, filters.landArea, ...extendedFeatures],\n hiddenFilters: [],\n isActive: false,\n };\n } else {\n const indoorFeatures = new CheckGroupInputMeta({\n label: settings.labels.indoorFeatures,\n options: searchOptions.indoorFeatures,\n filterKey: 'indoorPropertyFeatures',\n });\n const outdoorFeatures = new CheckGroupInputMeta({\n label: settings.labels.outdoorFeatures,\n options: searchOptions.outdoorFeatures,\n filterKey: 'outdoorPropertyFeatures',\n });\n const environmentalFeatures = new CheckGroupInputMeta({\n label: settings.labels.environmentalFriendliness,\n options: searchOptions.environmentalFeatures,\n filterKey: 'environmentalFriendliness',\n });\n const areaPerRoom = new TwoSidesRangeInputMeta({\n leftSideLabel: settings.labels.small,\n rightSideLabel: settings.labels.spacious,\n filterKey: 'areaPerRoom',\n filterMinKey: 'areaPerRoom.minimum',\n filterMaxKey: 'areaPerRoom.maximum',\n });\n const buildingFeatures = this.getDynamicFiltersMetadata(searchOptions.buildingFeatures, 'buildingFeatures');\n const specificFeatures = new SelectInputMeta({\n options: searchOptions.specificFeatures,\n filterKey: 'specificFeatures',\n hasPrefix: false,\n });\n\n combinedFilters = {\n mainFilters: [filters.address, filters.propertyType, filters.price, filters.beds],\n basicFilters: [filters.baths, filters.floorArea, filters.landArea, filters.ownerType],\n extendedFilters: [indoorFeatures, outdoorFeatures, filters.aroundFeatures, environmentalFeatures,\n ...buildingFeatures],\n hiddenFilters: [areaPerRoom, specificFeatures],\n isActive: false,\n };\n\n if (settings.isRent && settings.showSolidarity) {\n combinedFilters.extendedFilters.push(filters.solidarity);\n }\n }\n\n if (settings.matchingItemId) {\n combinedFilters.extendedFilters.push(filters.matchingItem);\n }\n\n combinedFilters.hiddenFilters = [...combinedFilters.hiddenFilters, filters.publicationDate, filters.viewsCount,\n filters.pricePerArea, filters.ecoFriendly, filters.containsVideo, filters.containsPhoto,\n ];\n\n return combinedFilters;\n },\n\n extractCityNameFromSearchResult(searchResult) {\n let city;\n\n if (searchResult.filter.previewId && settings.searchResult.results.length) {\n city = settings.searchResult.results[0].address.city;\n }\n\n if (!city) {\n city = this.extractCityFromAddress(searchResult.filter.text);\n }\n\n return city;\n },\n\n extractCityFromAddress(address) {\n if (!address) {\n return address;\n }\n\n try {\n const matches = address.match(/([^(,\\d)]+)/g).filter((m) => {\n const match = m.trim();\n return match !== '' && match !== '-';\n });\n if (matches.length > 1) {\n return matches[matches.length - 1].trim();\n }\n } catch (ex) {\n console.log(`failed to extract city from address${address}\\n${ex}`);\n }\n\n return address;\n },\n\n openReportModal(listingId, reportType, listingType) {\n globalActions.openReportModal({targetId: listingId, reportType, listingType});\n },\n\n raiseRelevance(raiseRelevanceUrl, orderUrl) {\n $.post(raiseRelevanceUrl)\n .then(() => {\n this.showUpdatedModal = true;\n this.createOrderUrl = orderUrl;\n })\n .fail(globalActions.handleAjaxErrors);\n },\n\n subscribeOpenModals() {\n store.subscribe((mutation) => {\n if (mutation.type === 'openBoostModal') {\n this.showBoostModal = true;\n }\n });\n },\n\n // override method from openPreviewMixin\n subscribeOpenPreview() {\n store.subscribe((mutation) => {\n if (mutation.type === 'openPreview') {\n this.searchPreviewUrl = mutation.payload.previewUrl;\n if (mutation.payload.listingType !== this.opts.listingType || store.state.shared.chatOpened) {\n this._openPreview(mutation.payload.previewUrl);\n } else {\n this.preview(mutation.payload.listingId);\n }\n }\n });\n },\n\n _autocompleteCallback(result) {\n const addressInputMeta = this.filterOptions.mainFilters.find((opt) => opt instanceof AddressInputMeta);\n\n if (result) {\n this.titleAddress = this._extractTitleAddressFromGeoData(result);\n this.isNewDataSearched = true;\n this.updatePageTitle();\n\n this.updateFilter('text', result.formatted);\n this.updateFilter('lat', result.latitude);\n this.updateFilter('lon', result.longitude);\n this.updateFilter('bounds', result.bounds);\n this.cityName = result.city || this.extractCityFromAddress(result.formatted);\n addressInputMeta.error = null;\n this.repositionMap();\n } else {\n addressInputMeta.error = this.labels.addressInputUnrecognized;\n }\n },\n\n _initAutocomplete() {\n store.subscribe((mutation) => {\n if (mutation.type === 'autocompleteCallback') {\n this._autocompleteCallback(mutation.payload);\n }\n });\n },\n\n isShowRelevanceModalNeeded() {\n return window.location.href.includes('showRelevanceModal=True');\n },\n\n showRelevanceModal() {\n this.showUpdatedModal = true;\n },\n\n _extractTitleAddressFromGeoData(geoData) {\n try {\n const gMapData = JSON.parse(geoData.jsonSerializedGMapData);\n\n if (!gMapData) {\n return geoData.formatted;\n }\n\n const geoDataResult = gMapData.result ?? gMapData.results[0];\n\n let titleAddress = geoDataResult.address_components\n .filter((x) => x.types.includes('route') || x.types.includes('locality'))\n .map((x) => x.short_name)\n .join(', ');\n\n if (!titleAddress) {\n titleAddress = geoDataResult.formatted_address;\n }\n\n return titleAddress;\n } catch {\n return this.searchText;\n }\n },\n },\n\n mounted() {\n this._initAutocomplete();\n this.subscribeOpenModals();\n nextTick(() => this.setInitialMapBounds());\n\n if (this.isShowRelevanceModalNeeded()) {\n this.showRelevanceModal();\n }\n\n this.initPageTitle();\n },\n\n created() {\n this.initPriceBounds();\n this.initAreaBounds();\n },\n });\n\n initListingCardComponent(app);\n initCustomControls(app);\n initSearchFilterComponent(app);\n initMapMakerComponent(app);\n initCustomInputsComponents(app);\n initFavoriteSwitchComponent(app);\n initCurrencyPriceComponents(app);\n initListingExtraDetailsComponent(app);\n initListingContactForm(app);\n initGAComponents(app);\n initAutocompleteComponent(app);\n initCommentsComponents(app);\n initGaTrackerComponent(app);\n initSocialsComponent(app);\n initListReviewComponents(app);\n initPriceHistoryChartComponent(app);\n initListingStatisticsComponent(app);\n initStarRatingComponent(app);\n initMortgageCalculator(app);\n initMarkdownViewerComponent(app);\n initOpenHoursComponent(app);\n initAdvertPreviewComponent(app);\n initCreateOneClickInquiry(app);\n\n app.mount(settings.el);\n\n return app;\n });\n};\n\nexport {initSearchPage};\n","const emitEvents = {\n confirmationCodeComplete: 'confirmationCodeComplete',\n};\n\nexport {emitEvents};\n","import './smart-script-executor';\nimport './globalize/init-globalize';\nimport jQuery from 'jquery';\nimport {initCookies} from '../shared/cookies-extended';\nimport initFeedback from '../components/feedback';\nimport initClientUserLocationGetter from './ask-geolocation';\nimport {initCopyToClipboard, initSocials} from '../components/socials/socials-init';\nimport utils from './utils';\nimport '../components/chat';\nimport {initFAQPage} from '../pages/simple-pages/faq';\nimport '../components/regional-settings/currency-selector';\nimport {setRegionalSettings} from '../store/regional-settings-store';\nimport {setDefaultCurrencyForPriceFormatting} from './vue/filters';\nimport {initVueGlobalComponents} from '../components/global-vue-components';\nimport {initAdvertModals} from '../components/modals/global-advert-modals';\nimport {initFormattedPriceComponent} from '../components/inputs/currency-price';\nimport './validation';\nimport './vue/init-for-tests';\nimport '../components/star-rating';\nimport '../components/cookie-based-timer';\nimport '../pages/preview-advert/preview-imports';\nimport {initValidationLocalization} from './validation-localization/localization';\nimport {initServicesPage, initContactUsPage} from '../pages/simple-pages/services';\nimport {initServicePlansPage} from '../pages/services/service-plans';\nimport openPreviewMixin from './vue/openPreviewMixin';\n\nwindow.jQuery = jQuery;\n\nexport default {\n utils,\n initCookies,\n initFeedback,\n initClientUserLocationGetter,\n initCopyToClipboard,\n initSocials,\n initFAQPage,\n setDefaultCurrencyForPriceFormatting,\n initFormattedPriceComponent,\n setRegionalSettings,\n initVueGlobalComponents,\n initAdvertModals,\n initValidationLocalization,\n initServicesPage,\n initContactUsPage,\n initServicePlansPage,\n openPreviewMixin,\n};\n","import $ from 'jquery';\nimport defaultsDeep from 'lodash/defaultsDeep';\nimport invokeSmartScripts from './smart-script';\nimport Globalize from 'globalize';\n\nconst utils = {\n confirmAction: [],\n\n getFormAsJson: ($form, stringify) => {\n const data = $form.serializeArray().reduce((res, item) => {\n if (!(item.name in res)) {\n res[item.name] = item.value;\n }\n return res;\n },\n {});\n\n const unFlat = (obj) => {\n const nameDelim = '.';\n const multilevel = Object.keys(obj).filter((key) => key.indexOf(nameDelim) >= 0);\n\n const newKeys = [];\n for (let i = 0; i < multilevel.length; i++) {\n const itm = multilevel[i];\n const delimPos = itm.indexOf(nameDelim);\n const name = itm.substr(0, delimPos);\n if (!(name in obj)) {\n obj[name] = {};\n newKeys.push(name);\n }\n obj[name][itm.substr(delimPos + 1, itm.length)] = obj[itm];\n delete obj[itm];\n }\n newKeys.forEach((k) => {\n unFlat(obj[k]);\n makeArrays(obj[k]);\n });\n };\n\n // Convert item[0] to array\n\n\n const makeArrays = (data) => {\n const propertiesToDelete = [];\n const itemsToGroup = [];\n\n $.each(data,\n (key, value) => {\n const regexp = /^([a-zA-Z0-9_]+)\\[(\\d+)\\]/g;\n const matches = regexp.exec(key);\n if (!matches) {\n return;\n }\n itemsToGroup.push({\n arrayName: matches[1],\n arrayIndex: matches[2],\n value,\n });\n propertiesToDelete.push(key);\n });\n\n const arrays = itemsToGroup.reduce(function(rv, x) {\n (rv[x['arrayName']] = rv[x['arrayName']] || []).push(x);\n return rv;\n },\n {});\n $.each(arrays,\n (key, value) => {\n const resultedArray = new Array(Math.max.apply(null, value.map((elt) => elt.arrayIndex)) + 1);\n const radix = 10;\n value.forEach((v) => {\n resultedArray[parseInt(v.arrayIndex, radix)] = v.value;\n });\n data[key] = resultedArray;\n });\n\n propertiesToDelete.forEach((property) => delete data[property]);\n };\n\n unFlat(data);\n makeArrays(data);\n return stringify === true ? JSON.stringify(data) : data;\n },\n\n getHashLocation: () => {\n let hash = window.location.hash;\n\n // fixing facebook callback hash junk\n if (hash === '#_=_') {\n hash = '';\n }\n\n if (hash) {\n hash = hash.substr(1);\n }\n hash = decodeURI(hash);\n return hash;\n },\n\n getHashLocationObject: (templateObj) => { // templateObj is passed to restore null and false properties\n const hashLocation = utils.getHashLocation();\n if (hashLocation) {\n try {\n const obj = JSON.parse(hashLocation);\n return templateObj === null ? obj : defaultsDeep(obj, templateObj);\n } catch (e) {\n return null;\n }\n }\n\n return null;\n },\n\n updateHashLocation(obj) {\n const stringifyReplacer = (key, value) => { // stringifyReplacer removes null and false properties\n if (value !== null && value !== false) {\n return value;\n }\n };\n\n const newLocation = JSON.stringify(obj, stringifyReplacer);\n\n if (utils.getHashLocation() !== newLocation) {\n obj.uid = utils.genUid();\n history.replaceState(window.location.state, document.title, `#${encodeURI(JSON.stringify(obj, stringifyReplacer))}`);\n }\n },\n\n genUid: () => {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,\n function(c) {\n const r = Math.random() * 16 | 0; const v = c == 'x' ? r : (r & 0x3 | 0x8);\n return v.toString(16);\n });\n },\n\n random: (min, max) => {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n },\n\n subscribeModalConfirm(actionSelectors, modalSelector) {\n if (!utils.confirmAction) {\n utils.confirmAction = [];\n }\n\n const modalItem = $(modalSelector);\n\n for (const selector of actionSelectors) {\n if (!utils.confirmAction[selector]) {\n utils.confirmAction[selector] = function(actionElement, onActionConfirmed) {\n const confirmHandler = (e) => {\n modalItem.find('.confirm-action').off('click').on('click',\n () => {\n if (onActionConfirmed) {\n onActionConfirmed(e.currentTarget);\n }\n\n modalItem.modal('hide');\n // alert('hide')\n });\n\n modalItem.modal('show');\n e.stopPropagation();\n // alert('show')\n return false;\n };\n\n $(actionElement).click(confirmHandler);\n };\n }\n }\n },\n\n subscribeModalClose(buttonCloseSelector, modalSelector) {\n $(buttonCloseSelector).click(function() {\n $(modalSelector).modal('hide');\n });\n },\n\n parseNumber(value) {\n if (value == null || value == 0) {\n return value;\n }\n\n let parsedValue = Globalize.parseNumber(value.toString(), {maximumFractionDigits: 2});\n\n if (isNaN(parsedValue)) {\n parsedValue = parseFloat(value.toString().replace(/[\\s\\xA0,]/g, ''));\n }\n\n return !isNaN(parsedValue) ? parsedValue : null;\n },\n\n formatNumber(value) {\n const parsedValue = utils.parseNumber(value);\n\n if (parsedValue != null) {\n return Globalize.formatNumber(parsedValue, {maximumFractionDigits: 2});\n }\n\n return null;\n },\n\n formatString(format, ...args) {\n const argArr = Array.from(args);\n return format.replace(/{(\\d+)}/g, function(match, number) {\n return typeof argArr[number] != 'undefined' ?\n argArr[number] :\n match\n ;\n });\n },\n\n // todo: remove after rebrand, this logic should be in components\n formatNumberInput(target) {\n const input = $(target);\n input.val(utils.formatNumber(input.val()));\n\n if (input[0] && input[0].form) {\n input.valid();\n }\n },\n\n addInputRemainingCharactersCounter(inputSelector, labelText) {\n const input = $(inputSelector);\n if (input.length) {\n const maxLength = input.attr('maxLength') || input.data('val-length-max');\n const textRemaining = maxLength - input.val().length;\n\n if (maxLength) {\n const counter = $(`
${textRemaining} ${labelText}
`);\n input.after(counter);\n\n $(inputSelector).keyup((e) => {\n const textRemaining = maxLength - input.val().length;\n\n if (textRemaining >= 0) {\n counter.html(`${textRemaining} ${labelText}`);\n } else {\n counter.html(`0 ${labelText}`);\n input.val(input.val().substring(0, maxLength));\n }\n });\n }\n }\n },\n\n focusOnAnchor(anchor) {\n const scrollTimeoutInMillis = 1000;\n const scrollEasingFunction = 'swing';\n const focusingClass = 'focused';\n\n if (!anchor) {\n const parsedHash = this.getHashLocationObject();\n if (parsedHash) {\n anchor = parsedHash.scrollAnchor;\n }\n }\n\n if (anchor) {\n const anchorId = `#${anchor}`;\n $(document).ready(function() {\n focusOnAnchorAnimation($(anchorId));\n });\n }\n\n function focusOnAnchorAnimation(anchorElem) {\n $('html').animate(\n {scrollTop: getScrollPositionForElement(anchorElem)},\n scrollTimeoutInMillis,\n scrollEasingFunction,\n function() {\n highlightElement(anchorElem);\n },\n );\n }\n\n function getScrollPositionForElement(element) {\n return element.offset().top - getScrollingGapBeforeElement(element);\n }\n\n function getScrollingGapBeforeElement(element) {\n return (window.innerHeight - element.height()) / 2;\n }\n\n function highlightElement(element) {\n element.addClass(focusingClass);\n }\n },\n\n addConversationAction(actionType, actionFunc) {\n if (!window.conversationActions) {\n window.conversationActions = {};\n }\n\n window.conversationActions[actionType] = actionFunc;\n },\n\n doConversationAction(actionType, conv, param) {\n if (window.conversationActions && window.conversationActions[actionType]) {\n window.conversationActions[actionType](conv, param);\n }\n },\n\n showModal(modalSelector, html, modalBodySelector, modalCloseSelector, onPreviewClosed) {\n const modalContainer = $(modalSelector);\n const bodyContainer = modalContainer.find(modalBodySelector || '.modal-body')[0];\n\n utils.insertMarkupWithScripts(bodyContainer, html);\n modalContainer.modal('show');\n modalContainer\n .off('hidden.bs.modal')\n .on('hidden.bs.modal', function(e) {\n if ($.isFunction(onPreviewClosed)) {\n onPreviewClosed();\n }\n e.stopPropagation();\n });\n\n setTimeout(() => {\n $(window).trigger('resize');\n }, 100);\n\n modalContainer.find(modalCloseSelector || '.close')\n .off('click')\n .on('click', (e) => {\n modalContainer.modal('hide');\n e.stopPropagation();\n });\n },\n\n checkOpenHoursValue: (value) => typeof value === 'object' && value !== null &&\n typeof value.advanced === 'boolean' &&\n value.advancedText !== undefined &&\n ['daysOfWeek', 'interval'].every((key) => typeof value[key] === 'object' && value[key] !== null) &&\n ['from', 'to'].every((key) => typeof value.interval[key] === 'object' && value.interval[key] !== null) &&\n ['from', 'to'].every(\n (keyEx) => ['hours', 'minutes'].every((keyIn) => typeof value.interval[keyEx][keyIn] ===\n 'number')),\n\n isObjectEmpty: (obj) => Object.keys(obj).length === 0 && obj.constructor === Object,\n\n insertMarkupWithScripts: (element, html) => {\n element.innerHTML = html;\n invokeSmartScripts(element);\n },\n\n isNumber: (value) => !value.match(/^\\s*$/) && !isNaN(value),\n\n // TODO: implement good solution for russian word forms\n // The same method exists in C# code\n changeWordForm(word) {\n if (!word) {\n return word;\n }\n\n switch (word) {\n // Warn: keep this code the same in c# and js, use copy/paste when change\n case 'Квартира': return 'Квартиру';\n case 'Дача': return 'Дачу';\n case 'Торговая площадь': return 'Торговую площадь';\n case 'Комната': return 'Комнату';\n case 'Москва': return 'в Москве';\n case 'Санкт-Петербург': return 'в Санкт-Петербурге';\n case 'Екатеринбург': return 'в Екатеринбурге';\n case 'Новосибирск': return 'в Новосибирске';\n case 'Нижний Новгород': return 'в Нижнем Новгороде';\n case 'Уфа': return 'в Уфе';\n case 'Казани': return 'в Казани';\n case 'Минск': return 'в Минске';\n case 'Брест': return 'в Бресте';\n case 'Витебск': return 'в Витебске';\n case 'Гомель': return 'в Гомеле';\n case 'Гродно': return 'в Гродно';\n case 'Могилев': return 'в Могилеве';\n case 'Бобруйск': return 'в Бобруйске';\n case 'Нью Йорк': return 'в Нью Йорке';\n case 'Лос Анджелес': return 'в Лос Анджелесе';\n case 'Чикаго': return 'в Чикаго';\n case 'Вашингтон': return 'в Вашингтоне';\n case 'Хьюстон': return 'в Хьюстоне';\n case 'Сан-Франциско': return 'в Сан-Франциско';\n case 'Сиэтл': return 'в Сиэтле';\n }\n\n return word;\n },\n\n changeToPlural(word) {\n if (!word) {\n return word;\n }\n\n switch (word) {\n case 'Apartment': return 'Apartments';\n case 'Unit': return 'Units';\n case 'Townhouse': return 'Townhouses';\n case 'House': return 'Houses';\n case 'Land only': return 'Lands only';\n case 'Room': return 'Rooms';\n case 'Lifestyle property': return 'Lifestyle properties';\n case 'Квартира': return 'Квартиры';\n case 'Часть дома': return 'Части дома';\n case 'Таунхаус': return 'Таунхаусы';\n case 'Дом': return 'Дома';\n case 'Участок': return 'Участки';\n case 'Комната': return 'Комнаты';\n case 'Дача': return 'Дачи';\n }\n\n return word;\n },\n\n sendPostRequest(url, obj) {\n return $.ajax({\n type: 'POST',\n url,\n contentType: 'application/json',\n data: JSON.stringify(obj),\n });\n },\n\n getCurrentUrl() {\n return `${location.pathname}${location.search}${location.hash}`;\n },\n lowerFirstLetter(str) {\n if (!str || !str.length) {\n return str;\n }\n\n return str[0].toLowerCase() + str.slice(1);\n },\n capitalizeFirstLetter(str) {\n if (!str || !str.length) {\n return str;\n }\n\n return str[0].toUpperCase() + str.slice(1);\n },\n isFullVisibilityExpected(el, considerSize) {\n if (!el) {\n return false;\n }\n\n try {\n if (this.isElementHidden(el)) {\n return false;\n }\n\n const rect = el.getBoundingClientRect();\n\n return ((rect.width > 0 && rect.height > 0) || !considerSize) &&\n this.areBordersInViewport(rect);\n } catch (error) {\n console.error(error);\n return false;\n }\n },\n\n areBordersInViewport(rect) {\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth));\n },\n\n isElementHidden(el) {\n if (!el || el.nodeType != Node.ELEMENT_NODE) {\n return true;\n }\n\n const styles = window.getComputedStyle(el);\n\n if (styles.getPropertyValue('opacity') == 0 ||\n styles.getPropertyValue('display') == 'none' ||\n styles.getPropertyValue('visibility') == 'hidden') {\n return true;\n }\n\n return false;\n },\n\n getLabelByCount(count, labelSingle, labelLessThanFive, labelMoreThanFive) {\n const lastDigit = count % 10;\n const twoLastDigints = count % 100;\n\n return lastDigit === 1 && twoLastDigints !== 11 ?\n labelSingle :\n lastDigit > 1 && lastDigit < 5 && (twoLastDigints < 10 || twoLastDigints >= 20) ?\n labelLessThanFive :\n labelMoreThanFive;\n },\n\n createRequestConfig(antiforgeryToken) {\n const requestConfig = {\n headers: {\n RequestVerificationToken: antiforgeryToken,\n },\n };\n return requestConfig;\n },\n\n createFormRequestConfig(antiforgeryToken) {\n const requestConfig = {\n headers: {\n 'RequestVerificationToken': antiforgeryToken,\n 'Content-Type': 'multipart/form-data',\n },\n };\n return requestConfig;\n },\n\n addQueryParam(key, value) {\n const url = new URL(window.location.href);\n const params = new URLSearchParams(url.search);\n params.append(key, value);\n url.search = params.toString();\n return url.href;\n },\n\n addQueryParamForUrl(incomeUrl, key, value) {\n const urlContainsParams = incomeUrl.includes('?');\n const initialUrl = urlContainsParams ? incomeUrl : `${incomeUrl}?`;\n const urlParts = initialUrl.split('?');\n const params = new URLSearchParams(urlParts[1]);\n params.append(key, value);\n return `${urlParts[0]}?${params.toString()}`;\n },\n\n containAnyLetters(testString) {\n const regExp = /[a-zA-Z]/g;\n return regExp.test(testString);\n },\n\n containsOnlyDigits(testString) {\n const regexp = new RegExp(`^\\\\d{${testString.length}}`);\n return regexp.test(testString);\n },\n\n // can be use with async\n sleep(delayInMilliseconds) {\n return new Promise((resolve) => setTimeout(resolve, delayInMilliseconds));\n },\n};\n\nexport default utils;\n","import {createApp} from 'vue';\nimport initForTests from './init-for-tests';\nimport initDirectives from './vue-directives';\nimport {initVuex} from '../../store/global-store';\nimport {initModalsComponent} from '../../components';\nimport {registerFilters} from './filters';\n\nconst createVueApp = (rootComponent, rootProps) => {\n const app = createApp(rootComponent, rootProps);\n\n app.config.compilerOptions.isCustomElement = (tag) => {\n return tag === 'smart-script';\n };\n\n initForTests(app);\n initDirectives(app);\n initVuex(app);\n initModalsComponent(app);\n registerFilters(app);\n\n return app;\n};\n\nexport default createVueApp;\n","import {store} from '../../store/global-store';\n\nconst openPreviewMixin = {\n methods: {\n subscribeOpenPreview() {\n store.subscribe((mutation) => {\n if (mutation.type === 'openPreview') {\n this._openPreview(mutation.payload.previewUrl);\n }\n });\n },\n\n _openPreview(url) {\n location.href = url;\n },\n },\n\n mounted() {\n this.subscribeOpenPreview();\n },\n};\n\nexport default openPreviewMixin;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t464: 0,\n\t435: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkhm\"] = self[\"webpackChunkhm\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [148,954,444,837,600,200,518,719,16], () => (__webpack_require__(70545)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["root","factory","exports","module","define","amd","self","deferred","leafPrototypes","getProto","app","component","template","props","mainFilters","basicFilters","extendedFilters","hiddenFilters","backgroundId","isActive","mixins","disableHtmlScrollMixin","data","isExpanded","this","computed","tags","concat","reduce","result","filter","isValueSet","getTags","hasFilters","length","watch","val","$emit","methods","clearFilter","value","clear","globalActions","_filterKey","toggleMore","gaEventTracker","category","action","label","isNeedToTrack","isConversion","handler","newVal","oldVal","_trackEvent","immediate","gaTrack","window","ga","hitType","eventCategory","eventAction","eventLabel","eventValue","dataLayer","push","event","render","extends","cookieName","type","String","cookieValue","JSON","parse","that","_readCookieValue","then","oldValue","_setCookieValue","_onCookiesSet","catch","Cookies","expires","InputMeta","params","_classCallCheck","options","filterKey","_createClass","key","_get","store","keyValue","noValueLabel","withPrefix","summaryLabel","_getSummaryLabel","getSummaryLabel","input","get","filterValue","set","newValue","applyFilter","_getFilterValue","CheckboxInputMeta","_InputMeta","_possibleConstructorReturn","_getPrototypeOf","call","_inherits","SelectInputMeta","_InputMeta2","_this","_hasPrefix","hasPrefix","selectedValue","find","option","selectedOption","NoInputMeta","_InputMeta3","MultiselectInputMeta","_InputMeta4","v","_this2","map","join","selectedValues","includes","selectedOptions","RangeInputMeta","_InputMeta5","_this3","_filterMinKey","filterMinKey","_filterMaxKey","filterMaxKey","_toLabel","toLabel","_fromLabel","fromLabel","formatter","minValue","maxValue","min","max","_formatRange","_this4","TwoSidesRangeInputMeta","_InputMeta6","_this5","_leftSideLabel","leftSideLabel","_rightSideLabel","rightSideLabel","CheckGroupInputMeta","_InputMeta7","Object","values","_this6","keys","_this7","k","_this8","selected","AddressInputMeta","_InputMeta8","_this9","error","dynamicMetaMapping","DynamicInputMetaFactory","createInputMeta","uiControl","MetaClass","propertyName","_u","filterKeyPrefix","console","inheritAttrs","editOkLabel","required","editCancelLabel","editLabel","showIcons","default","modelValue","inputClass","isSubmittable","submitAction","inputType","isRequired","hasCancel","onSave","forceTextMode","Boolean","haveAdditionalBorderButton","emits","updateModelValueEmit","isEditMode","initialValue","isTextMode","classObject","startEdit","$nextTick","$refs","editInput","focus","saveEdit","cancelEdit","placeholder","autocompleteUrl","placeDetailsUrl","hasSearchButton","address","addresses","showAutocompleteResults","selectedAddressIndex","checkClickTarget","target","list","blurAutocomplete","_setAddresses","_changeAutocompleteListIsOpened","focusInput","selectAddress","index","url","placeId","axios","res","focusPrevAddress","focusNextAddress","_getAutocompleteResults","currentAddress","setTimeout","state","Array","Number","formattedAddresses","nextTick","adjustHeight","formattedAddress","main","mainAddressPart","secondary","secondaryAddressPart","matchingSubstrings","forEach","matchedSubstring","_formatMatchedPart","offset","select","autocompleteItems","rect","getBoundingClientRect","$el","style","maxHeight","innerHeight","top","substring","GoogleMap","_BaseMap","el","headers","initCommonMapOptions","allowRenderMap","_map","google","maps","Map","BaseMap","assign","styles","featureType","stylers","visibility","clickableIcons","fullscreenControl","streetViewControl","cameraControl","zoomControl","scrollWheel","gestureHandling","eventName","clearListeners","addListener","getCenter","location","setCenter","getBounds","bounds","toJSON","viewPort","fitBounds","getZoom","zoom","setZoom","markerOptions","GoogleMarker","marker","circleOptions","GoogleCircle","setMap","boundsArray","sw","LatLng","ne","LatLngBounds","_BaseMarker","_marker","BaseMarker","Marker","getPosition","setPosition","animation","setAnimation","_BaseCircle","_circle","BaseCircle","Circle","center","position","bindTo","circleRadius","setRadius","navigator","userAgent","defineRule","regex","_ref","moment","propertyPrice","defaultInterestRate","labels","currency","paymentFrequencies","components","Multiselect","VueMultiselectExtended","ValidationField","Field","loanTerm","deposit","interestRate","defaultPaymentFrequency","selectedFrequency","loanValue","localStorageId","termsList","maxTermInYears","currencySign","debounceTime","modalOpened","initCalc","from","Math","round","toNumber","setPaymentFrequency","frequency","f","term","utils","getYearLabel","year","duration","humanize","loadSavedCalculatorSettings","itemString","localStorage","getItem","savedPaymentFrequency","ex","saveCalculatorSettings","settings","setItem","stringify","getTermsCountPerYear","paymentFrequency","containsNumber","str","RegExp","test","validateInputs","isValidDeposit","isValidLoanValue","isValidDepositLoanValueDependency","termPayments","termsCountPerYear","termInterestRate","termsCount","x","pow","totalCost","totalInterest","sum","mounted","date","startTime","endTime","jsSocials","initSocials","referrerId","descriptionText","setDefaults","elementClass","sharesClass","shareClass","shareButtonClass","shareLinkClass","shareLogoClass","shareLabelClass","shareLinkCountClass","shareCountBoxClass","shareCountClass","shareZeroCountClass","Socials","prototype","_renderShare","share","$share","$","renderer","_createShare","addClass","css","appendTo","_$shares","id","shareActionButtonPrefix","setAttribute","shares","facebook","shareUrl","referrerSource","logo","countUrl","getCount","count","twitter","email","vkontakte","odnoklassniki","copy","shareIn","initCopyToClipboard","container","linkCopiedMessage","shareDropdown","arguments","undefined","copyLinkClass","copyContainerClass","copyUrlContainer","shareUrlCopy","copyUrlLayout","urlCopiedAlertLayout","shareContainer","selector","classList","clickSelector","appendCopyInfo","copySelector","ClipboardJS","document","querySelectorAll","text","click","e","stopPropagation","remove","append","prepend","on","ready","parents","addBack","hasClass","CustomMarker","_google$maps$OverlayV","latLng","cache","_latLng","lat","lng","_el","_cache","_point","OverlayView","resetPos","getPanes","overlayImage","appendChild","removeFromDOM","removeFromCache","parentNode","removeChild","coord","point","getProjection","fromLatLngToDivPixel","floor","y","add","getLabel","left","show","hide","p1","p2","abs","delete","MAX_ZINDEX","redrawNeeded","markerInfo","beforeUnmount","latitude","longitude","focusMarker","parentElement","zIndex","getMaxZIndex","initSearchPage","createVueApp","openPreviewMixin","initFilter","searchResult","isSmallScreen","matchMedia","matches","mapView","markerCluster","_markerCache","needUpdateMarkerCluster","mapMinZoom","mapSettings","minZoom","mapMaxZoom","maxZoom","bigCityZoom","regionZoom","showListingZoom","addressZoom","currentDataRequest","filterTemplate","sortOptions","needRenderMap","measurementUnit","searchResults","results","markerSearchResults","getMarkerInfo","filterOptions","initFilterOptions","opts","cityName","extractCityNameFromSearchResult","showUpdatedModal","resultsLoading","showBoostModal","firstLoading","showContactButton","matchingItemId","previewId","fewResultsCount","searchPreviewUrl","createOrderUrl","isBuyLocationMode","isMobileDevice","titleFromServer","isNewDataSearched","isPreviewPage","debounce","updateUrlFilter","renderMap","deep","defaultSortOption","o","isDefault","sortedSearchResults","sortItems","selectedSortOption","optionId","sortOptionId","sortOption","updateFilter","pricePickerMin","priceOptions","pricePickerMax","isPriceNotFiltered","minPrice","maxPrice","isMaxPriceSpecified","i","zeroPrice","priceRangeLabel","anyPrice","noItemsFound","fewResultsFound","searchText","previewSrc","urls","previewUrl","previewState","isCompactActionsMode","currentPage","pathname","search","hash","switchCompactActionsMode","shouldReplaceHistory","hasPreviewNext","getPreviewListingIndex","hasPreviewPrev","showFilteredViews","needFilterViews","filteredViewsData","formattedCityName","previewPayload","listingId","listingType","updated","updateMarkerClusters","scrollToTop","filterNewVal","isUrlFilterChecked","startsWith","subscribeUrlHashChange","filterFromUrl","updatePageTitle","titleTemplate","titleAddress","title","initPageTitle","_extractTitleAddressFromGeoData","locationGeoData","_getDifference","object","base","changes","transform","isEqual","isObject","addEventListener","uid","resetMapCenter","checkPreviewUrl","href","preview","parseInt","reload","getElementById","lon","zoomControlOptions","ControlPosition","RIGHT_CENTER","clearMapIdleListener","addMapIdleListener","_applyFilter","requestDataUpdate","updateFilterLocation","param","sendSearchRequest","dataRequestUrl","updateItems","getBoundsArray","requestData","callback","contentType","context","beforeSend","abort","complete","done","filterUpdated","kayValue","moreOptionSelected","scrollContainer","scrollTop","newerItems","clearMarkerCache","tryShowOnMap","repositionMap","fitMapToBounds","getViewPort","zoomInMapIfTooSmall","zoomOutMapIfTooBig","hasListingInSearchResults","getListingPreviewUrlByIndex","closePreview","resetPageUrl","closeEvent","closeOnBack","searchPageUrl","getSearchPageUrl","listingSearchType","getCurrentLocation","history","pushState","previewNext","listing","previewPrev","_this10","findIndex","l","getPreviewListing","_this11","toggleFavoriteUrl","isOwner","loadPhoneUrl","buildListingUrl","replace","previewPattern","detailsUrl","match","split","priceAvailable","hidePrice","askForPriceAvailable","status","listedPropertyStatus","userId","currentUserId","toggleSearchView","_this12","setInitialMapBounds","hoverListing","overListingHover","changeListingType","filterParam","getCurrentBounds","offerType","locParamName","searchUrlsParams","latParamName","lonParamName","searchUrls","items","sort","a","b","field","aValue","bValue","isDate","Date","isAscending","saveInquiry","sendPostRequest","saveInquiryUrl","filterNotSaved","redirectUrl","redirectPropertyCreation","propertyCreateUrl","markers","getRenderedMarkers","clearMarkers","addMarkers","getInternalMap","MarkerClusterer","zoomOnClick","gridSize","getClustersStyles","markerItems","getListing","getMarkerCache","Set","priceText","priceTypeText","textSuffix","pricePeriodShortText","favoriteUrl","clusterImgUrl","textColor","height","width","needRenderSampleImage","media","coverPhoto","sampleHRef","centerToListing","increaseSearchArea","newZoom","approximatelyIncreaseBounds","swLat","swLng","neLat","neLng","latAdjustment","lngAdjustment","newBounds","_this13","filterBase","deepClone","showMoreListings","findSimilarListings","_this14","findSimilarUrl","showListingPreview","showOnMap","_this15","googleAnalyticParameter","googleAnalyticMapParameter","newUrl","replaceState","focusListingId","obj","getFormattedPrice","initPriceBounds","_this16","isPriceOutOfMinBound","price","isPriceOutOfMaxBound","initAreaBounds","isAreaNotInOptions","area","floorAreaMin","areaOptions","floorAreaMax","landAreaMin","landAreaOptions","landAreaMax","closeFilterOptions","getDynamicFiltersMetadata","dynamicFilters","filterControl","displayName","validValuesList","searchOptions","_this17","filters","addressInputPlaceholder","propertyType","propertyTypes","ownerType","ownerTypes","$filters","beds","bedrooms","baths","bathrooms","floorArea","landArea","matchingItem","matchingListing","aroundFeatures","isCommercial","publicationDate","latestListings","viewsCount","popularListings","pricePerArea","budgetFriendly","premium","elite","ecoFriendly","containsVideo","containsPhoto","showSolidarity","_objectSpread","solidarity","solidarityLabel","combinedFilters","mainFeatures","extendedFeatures","_toConsumableArray","indoorFeatures","outdoorFeatures","environmentalFeatures","environmentalFriendliness","areaPerRoom","small","spacious","buildingFeatures","specificFeatures","isRent","city","extractCityFromAddress","m","trim","log","openReportModal","reportType","targetId","raiseRelevance","raiseRelevanceUrl","orderUrl","_this18","fail","subscribeOpenModals","_this19","mutation","subscribeOpenPreview","_this20","payload","_openPreview","_autocompleteCallback","addressInputMeta","opt","formatted","addressInputUnrecognized","_initAutocomplete","_this21","isShowRelevanceModalNeeded","showRelevanceModal","geoData","gMapData","jsonSerializedGMapData","geoDataResult","address_components","types","short_name","formatted_address","_unused","_this22","created","initListingCardComponent","initCustomControls","initSearchFilterComponent","initMapMakerComponent","initCustomInputsComponents","initFavoriteSwitchComponent","initCurrencyPriceComponents","initListingExtraDetailsComponent","initListingContactForm","initGAComponents","initAutocompleteComponent","initCommentsComponents","initGaTrackerComponent","initSocialsComponent","initListReviewComponents","initPriceHistoryChartComponent","initListingStatisticsComponent","initStarRatingComponent","initMortgageCalculator","initMarkdownViewerComponent","initOpenHoursComponent","initAdvertPreviewComponent","initCreateOneClickInquiry","mount","emitEvents","confirmationCodeComplete","jQuery","initCookies","initFeedback","initClientUserLocationGetter","initFAQPage","setDefaultCurrencyForPriceFormatting","initFormattedPriceComponent","setRegionalSettings","initVueGlobalComponents","initAdvertModals","initValidationLocalization","initServicesPage","initContactUsPage","initServicePlansPage","confirmAction","getFormAsJson","$form","serializeArray","item","name","makeArrays","propertiesToDelete","itemsToGroup","exec","arrayName","arrayIndex","arrays","rv","resultedArray","apply","elt","property","unFlat","multilevel","indexOf","newKeys","itm","delimPos","substr","getHashLocation","decodeURI","getHashLocationObject","templateObj","hashLocation","defaultsDeep","updateHashLocation","stringifyReplacer","newLocation","genUid","encodeURI","c","r","random","toString","subscribeModalConfirm","actionSelectors","modalSelector","modalItem","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","Symbol","iterator","next","actionElement","onActionConfirmed","off","currentTarget","modal","err","return","subscribeModalClose","buttonCloseSelector","parseNumber","parsedValue","Globalize","maximumFractionDigits","isNaN","parseFloat","formatNumber","formatString","format","_len","args","_key","argArr","number","formatNumberInput","form","valid","addInputRemainingCharactersCounter","inputSelector","labelText","maxLength","attr","textRemaining","counter","after","keyup","html","focusOnAnchor","anchor","parsedHash","scrollAnchor","anchorId","anchorElem","animate","getScrollPositionForElement","element","getScrollingGapBeforeElement","addConversationAction","actionType","actionFunc","conversationActions","doConversationAction","conv","showModal","modalBodySelector","modalCloseSelector","onPreviewClosed","modalContainer","bodyContainer","insertMarkupWithScripts","trigger","checkOpenHoursValue","_typeof","advanced","advancedText","every","interval","keyEx","keyIn","isObjectEmpty","constructor","innerHTML","invokeSmartScripts","isNumber","changeWordForm","word","changeToPlural","getCurrentUrl","lowerFirstLetter","toLowerCase","slice","capitalizeFirstLetter","toUpperCase","isFullVisibilityExpected","considerSize","isElementHidden","areBordersInViewport","bottom","documentElement","clientHeight","right","innerWidth","clientWidth","nodeType","Node","ELEMENT_NODE","getComputedStyle","getPropertyValue","getLabelByCount","labelSingle","labelLessThanFive","labelMoreThanFive","lastDigit","twoLastDigints","createRequestConfig","antiforgeryToken","RequestVerificationToken","createFormRequestConfig","addQueryParam","URL","URLSearchParams","addQueryParamForUrl","incomeUrl","urlParts","containAnyLetters","testString","containsOnlyDigits","sleep","delayInMilliseconds","Promise","resolve","rootComponent","rootProps","createApp","config","compilerOptions","isCustomElement","tag","initForTests","initDirectives","initVuex","initModalsComponent","registerFilters","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","splice","n","getter","__esModule","d","getPrototypeOf","t","mode","ns","create","def","current","getOwnPropertyNames","definition","defineProperty","enumerable","g","globalThis","Function","prop","hasOwnProperty","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","bind","__webpack_exports__"],"sourceRoot":""}