1(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{391:function(t,e,n){"use strict";n.r(e);var r=n(17),i=n(23),o=n(13),a=n(459),s=n(461),u=n(462),c={name:"teleport-replace",props:{to:{type:String,required:!0}},render:function(){return this.$slots.default({to:this.to})},beforeMount:function(){document.querySelector(this.to).innerHTML=""}},l=n(64),f=n(65),h=n(14),d={template:"#landing-index-greeting-dialog-vue-template",components:{"q-dialog-proxy":l.a,"dialog-top-bar":f.a,CloseSvg:h.CloseSvg},data:function(){return{isOpen:!1}},methods:{onDialogOpen:function(){this.isOpen=!0}},mounted:function(){"greeting-dialog"==this.$webLocation.getHashValue()&&(this.$webLocation.replaceWith({path:location.pathname}),this.onDialogOpen())}},p=n(403),m=n(463),y=n(24),b=n(66);function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O=Object(o.a)("landing/index"),w=O.mapMutations,j=O.mapGetters,P={template:"#landing-index-page-vue-template",components:{"deals-filter":a.a,"deals-collection":s.a,"articles-collection":u.a,"teleport-replace":c,"greeting-dialog":d,"demands-collection":m.a},props:{rentMonthliesPath:{type:String,required:!0},salesPath:{type:String,required:!0},dealsFilterJson:{type:String,required:!0},initH1Label:{type:String,required:!0},countriesDataJson:{type:String,required:!0}},data:function(){return{mountDealCollection:!0}
1},computed:_(_({},j(["h1Label","isEstateDemand","isEstateDeal"])),{},{isGtSmSection:function(){return this.$q.screen.gt.sm},isLtMdSection:function(){return this.$q.screen.lt.md},initialDealsFilter:function(){return JSON.parse(this.dealsFilterJson)},countries:function(){return JSON.parse(this.countriesDataJson).data.map((function(t){return new p.a(t)}))}}),methods:_({},w(["setDealsFilter","setH1Label","setResource"])),created:function(){this.setDealsFilter(JSON.parse(this.dealsFilterJson)),this.setH1Label(this.initH1Label),"estate-demand"==Object(b.getHashValue)()&&(this.setResource(y.e),Object(b.replaceWith)({hash:""}))}},S=n(165),I=n(167),k=n(166),D=n(418);function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L=Object(r.a)({name:"landing-index-app",template:"#landing-index-app-vue-template",components:{page:P}}),F=Object(i.a)({components:A(A(A(A({},S),I),k),D)});L.use(F),L.mount("#landing-index-v-app")},397:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(10),i=n(24);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(t){return t?1:0},f=function(e){return t.compact(e||[]).length},h=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._filter=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t)}var n,a,h;return n=e,a=[{key:"trim",value:function(){return t.pickBy(this._filter,(function(t){return!Object(r.e)(t)}))}},{key:"isEql",value:function(e){var n=function(e){var n=t.compact(["bounds_label",e.countPrice>0?"":"price_currency"]);return r.k.apply(void 0,[e._filter].concat(o(n)))};return JSON.stringify(n(this))==JSON.stringify(n(e))}},{key:"humanLocation",get:function(){return this._filter.bounds_label}},{key:"humanPrice",get:function(){return this._filter.price_min||this._filter.price_max?"".concat(this._humanRange(this._filter.price_min,this._filter.price_max)," ").concat(this._filter.price_currency):""}},{key:"humanM2",get:function(){return this._filter.m2_min||this._filter.m2_max?"".concat(this._humanRange(this._filter.m2_min,this._filter.m2_max)):""}},{key:"humanM2Html",get:function(){return this.humanM2?I18n.t("size.x_m2_html",{val:this.humanM2}):""}},{key:"humanFloor",get:function(){if(this._filter.floor_min||this._filter.floor_max){var t=I18n.t("activerecord.attributes.estate_record.floor");return"".concat(t," ").concat(this._humanRange(this._filter.floor_min,this._filter.floor_max))}return""}},{key:"humanFloors",get:function(){if(this._filter.floors_min||this._filter.floors_max){var t=I18n.t("activerecord.attributes.estate_record.floors_count");return"".concat(t," ").concat(this._humanRange(this._filter.floors_min,this._filter.floors_max))}return""}},{key:"humanRooms",get:function(){if(this._filter.rooms_min||this._filter.rooms_max){var t=I18n.t("activerecord.attributes.estate_record.rooms_count");return"".concat(t," ").concat(this._humanRange(this._filter.rooms_min,this._filter.rooms_max))}return""}},{key:"humanBuiltAt",get:function(){if(this._filter.built_at_min||this._filter.built_at_max){var t=I18n.t("activerecord.attributes.estate_record.built_at");return"".concat(t," ").concat(this._humanRange(this._filter.built_at_min,this._filter.built_at_max))}return""}},{key:"humanLandSize",get:function(){if(this._filter.land_size_min||this._filter.land_size_max){var t=I18n.t("activerecord.attributes.estate_record.land_size");return"".concat(t," ").concat(this._humanRange(this._filter.land_size_min,this._filter.land_size_max))}return""}},{key:"humanVehicleCount",get:function(){if(this._filter.vehicle_count_min||this._filter.vehicle_count_max){var t=I18n.t("activerecord.attributes.estate_record/parking.vehicle_count");return"".concat(t," ").concat(this._humanRange(this._filter.vehicle_count_min,this._filter.vehicle_count_max))}return""}},{key:"humanDealType",get:function(){switch(this._filter.deal_type){case i.b:return I18n.t("shared.general.rent");case i.d:return I18n.t("shared.general.sale");default:return""}}},{key:"humanDealOwnerType",get:function(){return this._filter.deal_owner_type?I18n.t("activerecord.attributes.estate_deal/owner_type.".concat(this._filter.deal_owner_type)):""}},{key:"_estateTypeSuffix",value:function(t){var e=this._filter.estate_type.split("_");return e[e.length-1]}},{key:"humanEstateType",get:function(){return this._filter.estate_type?I18n.t("activerecord.models.estate_record/".concat(this._estateTypeSuffix(this._filter.estate_type)),{count:20}):""}},{key:"humanEstateType2",get:function(){return this._filter.estate_type_2?I18n.t("activerecord.attributes.estate_record/".concat(this._estateTypeSuffix(this._filter.estate_type),"/types_2.").concat(this._filter.estate_type_2)):""}},{key:"_humanEstateRecordAttrsMultiple",value:function(t,e){var n=this,i=I18n.t("activerecord.attributes.estate_record.".concat(t));Object(r.f)(i)&&(i=I18n.t("activerecord.attributes.estate_record/".concat(this._estateTypeSuffix(this._filter.estate_type),".").concat(t)));var o=e.reduce((function(e,r){var i=I18n.t("activerecord.attributes.estate_record/".concat(n._estateTypeSuffix(n._filter.estate_type),"/").concat(t,".").concat(r));return"".concat(e?e+", ":"").concat(i)}),"");return"".concat(i,": ").concat(o)}},{key:"humanHeating",get:function(){return Object(r.e)(this._filter.heating)?"":this._humanEstateRecordAttrsMultiple("heating",this._filter.heating)}},{key:"humanWallsType",get:function(){return Object(r.e)(this._filter.walls_type)?"":this._humanEstateRecordAttrsMultiple("walls_type",this._filter.walls_type)}},{key:"humanBuildingType",get:function(){return Object(r.e)(this._filter.building_type)?"":this._humanEstateRecordAttrsMultiple("building_type",this._filter.building_type)}},{key:"humanConnections",get:function(){return Object(r.e)(this._filter.connections)?"":this._humanEstateRecordAttrsMultiple("connections",this._filter.connections)}},{key:"humanPlacement",get:function(){return Object(r.e)(this._filter.placement)?"":this._humanEstateRecordAttrsMultiple("placement",this._filter.placement)}},{key:"humanVehicleKind",get:function(){return Object(r.e)(this._filter.vehicle_kind)?"":this._humanEstateRecordAttrsMultiple("vehicle_kind",this._filter.vehicle_kind)}},{key:"humanConstructionFeatures",get:function(){}},{key:"humanCurrentState",get:function(){}},{key:"humanOnTerritory",get:function(){}},{key:"getHumanValuesLabel",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=["humanDealType","humanEstateType","humanEstateType2","humanLocation","humanPrice","humanM2Html","humanDealOwnerType","humanRooms","humanFloor","humanFloors","humanHeating","humanConnections","humanWallsType","humanBuildingType","humanBuiltAt","humanLandSize","humanVehicleCount","humanVehicleKind","humanPlacement"];return(e.length?o(e):n).reduce((function(e,n){var r=t[n];return r?"".concat(e?e+" | ":"").concat(r):e}),"")}},{key:"_humanRange",value:function(t,e){return t&&e?"".concat(Number(t),"-").concat(Number(e)):t?"".concat(I18n.t("shared.general.from")," ").concat(Number(t)):e?"".concat(I18n.t("shared.general.to")," ").concat(Number(e)):""}},{key:"countFilters",value:function(){var t=this;return["countLocation","countPrice","countM2","countFloor","countFloors","countRooms","countBuiltAt","countLandSize","countVehicleC
1ount","countDealType","countDealOwnerType","countEstateType","countEstateType2","countHeating","countWallsType","countBuildingType","countConnections","countConstructionFeatures","countCurrentState","countPlacement","countOnTerritory","countVehicleKind"].reduce((function(e,n){return e+t[n]}),0)}},{key:"countLocation",get:function(){return l(Object(r.h)(this._filter.south)&&Object(r.h)(this._filter.west)&&Object(r.h)(this._filter.north)&&Object(r.h)(this._filter.east))}},{key:"countPrice",get:function(){return l(Object(r.h)(this._filter.price_min)||Object(r.h)(this._filter.price_max))}},{key:"countM2",get:function(){return l(Object(r.h)(this._filter.m2_min)||Object(r.h)(this._filter.m2_max))}},{key:"countFloor",get:function(){return l(Object(r.h)(this._filter.floor_min)||Object(r.h)(this._filter.floor_max))}},{key:"countFloors",get:function(){return l(Object(r.h)(this._filter.floors_min)||Object(r.h)(this._filter.floors_max))}},{key:"countRooms",get:function(){return l(Object(r.h)(this._filter.rooms_min)||Object(r.h)(this._filter.rooms_max))}},{key:"countBuiltAt",get:function(){return l(Object(r.h)(this._filter.built_at_min)||Object(r.h)(this._filter.built_at_max))}},{key:"countLandSize",get:function(){return l(Object(r.h)(this._filter.land_size_min)||Object(r.h)(this._filter.land_size_max))}},{key:"countVehicleCount",get:function(){return l(Object(r.h)(this._filter.vehicle_count_min)||Object(r.h)(this._filter.vehicle_count_max))}},{key:"countDealType",get:function(){return l(Object(r.h)(this._filter.deal_type))}},{key:"countDealOwnerType",get:function(){return l(Object(r.h)(this._filter.deal_owner_type))}},{key:"countEstateType",get:function(){return l(Object(r.h)(this._filter.estate_type))}},{key:"countEstateType2",get:function(){return l(Object(r.h)(this._filter.estate_type_2))}},{key:"countHeating",get:function(){return f(this._filter.heating)}},{key:"countWallsType",get:function(){return f(this._filter.walls_type)}},{key:"countBuildingType",get:function(){return f(this._filter.building_type)}},{key:"countConnections",get:function(){return f(this._filter.connections)}},{key:"countConstructionFeatures",get:function(){return f(this._filter.construction_features)}},{key:"countCurrentState",get:function(){return f(this._filter.current_state)}},{key:"countPlacement",get:function(){return f(this._filter.placement)}},{key:"countOnTerritory",get:function(){return f(this._filter.on_territory)}},{key:"countVehicleKind",get:function(){return f(this._filter.vehicle_kind)}}],h=[{key:"default",get:function(){return{south:44.2924,west:22.137159,north:52.3793713,east:40.2204802,bounds_label:t.capitalize(I18n.t("countries.ua.name")),bounds_country:"ua"}}}],a&&c(n.prototype,a),h&&c(n,h),e}()}).call(this,n(9))},399:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}));var r=function(e){var n=e.label;return n=t.includes(["gas_station","car_service"],e.value)?t.upperCase(n):t.capitalize(n),t.assign(e,{label:n})},i=function(e,n){return t.find(e||[],(function(t){return t.value==n}))},o=function(){return{value:"",label:I18n.t("shared.estate_deals.deals_filter_template.all")}}}).call(this,n(9))},402:function(t,e,n){"use strict";(function(t){var r,i,o,a=n(404);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.a=(o='\n <q-select\n outlined=""\n v-model="cityInputVal"\n use-input=""\n behavior="default"\n hide-selected=""\n fill-input=""\n :label="label"\n :clearable="isClearable"\n input-debounce="500"\n :options="cityPredictions"\n v-on:focus="onInputFocus"\n v-on:filter="autocomplete"\n v-on:filter-abort="abortAutocomplete">\n\n <template v-if="mounted">\n <teleport :to="boundsCountryInputTeleportTo">\n <q-select\n :label="boundsCountryLabel"\n :model-value="boundsCountry"\n :options="boundsCountryInputOptions"\n map-options=""\n v-on:update:model-value="onBoundsCountryInput"\n :bg-color="$attrs[\'bg-color\']"\n outlined="">\n </q-select>\n </teleport>\n </template>\n </q-select>\n ',(i="template")in(r={template:"#shared-estate-deal-filter-input-location-input-vue-template",props:{areasCompletePath:{type:String,required:!0},locationsAutocompletePath:{type:String,required:!0},gPlaceDetailsPath:{type:String,required:!0},allCountries:{type:Array,required:!0},countries:{type:Array,default:[]},modelValue:{type:Object},boundsCountry:{type:String,required:!0},boundsCountryInputTeleportTo:{type:String,required:!0}},emits:["update:model-value","update:bounds-country","get:bounds:success"],data:function(){return{cityPredictions:[],mounted:!1}},computed:{cityInputVal:{get:function(){return this.modelValue&&this.modelValue.label==this.currentCountry.name?null:this.modelValue},set:function(t){var e=this;this.$emit("update:model-value",t);var n=function(t){e.$emit("get:bounds:success",t)};t&&t.value&&("ua"==this.boundsCountry?this.countriesAreas.getBounds(t.value,{success:n}):this.countriesAreasGoogle.getBounds(t.value,{success:n}))}},countriesAreas:function(){return new a.a({custom:{completePath:this.areasCompletePath}})},countriesAreasGoogle:function(){return new a.a({google:{autocompletePath:this.locationsAutocompletePath,placeDetailsPath:this.gPlaceDetailsPath}})},isClearable:function(){return!(!this.cityInputVal||!this.cityInputVal.label)},currentCountry:function(){var t=this;return this.allCountries.find((function(e){return e.id==t.boundsCountry}))},label:function(){var e=t.capitalize(I18n.t("shared.estate_deals.deals_filter_template.location")),n=this.currentCountry.name;return this.cityInputVal&&this.cityInputVal.label==this.currentCountry.name&&(n=""),"".concat(e," ").concat(n)},boundsCountryInputOptions:function(){return this.countries.map((function(t){return{value:t.id,label:t.name}}))},boundsCountryLabel:function(){return t.capitalize(I18n.t("activerecord.attributes.location.country",{count:1}))}},watch:{cityInputVal:function(t){t&&t.label==this.currentCountry.name&&(this.cityInputVal=null)}},methods:{autocomplete:function(t,e,n){var r=this;if(t&&t.length<2)n();else{var i=function(t,n){e((function(){r.cityPredictions=t.map((function(t){return{label:t.name,value:t.id}}))}))};"ua"==this.boundsCountry?this.countriesAreas.getNamePredictions(t,{success:i}):this.countriesAreasGoogle.getNamePredictions(t,{country:this.boundsCountry,success:i})}},abortAutocomplete:function(){},onInputFocus:function(t){var e,n;t.target.classList&&(e=t.target,n="q-focus-helper",s(e.classList).find((function(t){return t==n})))||this.cityInputVal&&this.cityInputVal.label==this.currentCountry.name&&(this.cityInputVal=null)},onBoundsCountryInput:function(t){this.$emit("update:bounds-country",t.value)}},mounted:function(){this.mounted=!0}})?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r)}).call(this,n(9))},403:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,"a",(function(){return i}));var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._data=e}var e,n,i;return e=t,(n=[{key:"id",get:function(){return this._data.id}},{key:"name",get:function(){return I18n.t("activerecord.attributes.location/country.".concat(this.id
1))}},{key:"bounds",get:function(){return this._data.attributes.bounds}},{key:"viewport",get:function(){return this._data.attributes.viewport}},{key:"center",get:function(){return this._data.attributes.center}}])&&r(e.prototype,n),i&&r(e,i),t}()},404:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(407),i=n(408);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.google,a=e.custom;switch(o(this,t),!0){case!!n:this._areaService=new r.a(n);break;case!!a:this._areaService=new i.a(a)}}var e,n,s;return e=t,n=[{key:"getNamePredictions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.areaService.getNamePredictions(t,e)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.areaService.getBounds(t,e)}},{key:"getLatLng",value:function(t,e){this.areaService.getLatLng(t,e)}},{key:"areaService",get:function(){return this._areaService}}],n&&a(e.prototype,n),s&&a(e,s),t}()},405:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(29);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(e){var n=e.endPath;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.endPath=n}var e,n,o;return e=t,(n=[{key:"complete",value:function(t){var e=this,n=t.term,i=t.country,o=t.success;(new r.a).get(this.endPath,{params:{query:{term:n,country:i,meta:{session:{id:this.sessionId,created:this.sessionCreated}}}}}).then((function(t){var n=t.data;e._sessionId=n.meta.session.id,e._sessionCreated=n.meta.session.created,o(n.data)}))}},{key:"sessionId",get:function(){return this._sessionId}},{key:"sessionCreated",get:function(){return this._sessionCreated}}])&&i(e.prototype,n),o&&i(e,o),t}()},407:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(405),i=n(29);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=function(){function e(t){var n=t.autocompletePath,i=t.placeDetailsPath;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.locationAutocomplete=new r.a({endPath:n}),this.placeDetailsPath=i}var n,a,s;return n=e,(a=[{key:"getNamePredictions",value:function(t,e){var n=this,r=e.country,i=e.success;this.locationAutocomplete.complete({term:t,country:r,success:function(t){i(n.formatPredictions(t))}})}},{key:"formatPredictions",value:function(t){return t.map((function(t){return{name:t.completion,id:t.id}}))}},{key:"getBounds",value:function(t,e){var n=this,r=e.success;(new i.a).get(this.placeDetailsPath,{params:{place_id:t}}).then((function(t){var e=t.data.data;r(n.formatToBounds(e.attributes.bounds))}))}},{key:"formatToBounds",value:function(e){var n=function(e){return e?t.round(e,7):""};return{south:n(e.south),west:n(e.west),north:n(e.north),east:n(e.east)}}}])&&o(n.prototype,a),s&&o(n,s),e}()}).call(this,n(9))},408:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(29);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function e(t){var n=t.completePath;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.completePath=n,this.queryData=null}var n,o,a;return n=e,(o=[{key:"getNamePredictions",value:function(t,e){var n=this,i=e.success;(new r.a).get(this.completePath,{params:{filter:{name:t}}}).then((function(t){var e=t.data.data;
1n.queryData=e,i(n.formatPredictions(e))}))}},{key:"formatPredictions",value:function(t){return t.map((function(t){return{name:t.attributes.name,id:t.id}}))}},{key:"getBounds",value:function(e,n){var r=n.success,i=t.find(this.queryData,(function(t){return t.id==e}));r(this.formatToBounds(i.attributes.bounds))}},{key:"formatToBounds",value:function(t){return{south:this.formatCoords(t.south),west:this.formatCoords(t.west),north:this.formatCoords(t.north),east:this.formatCoords(t.east)}}},{key:"getLatLng",value:function(e,n){var r=n.success,i=t.find(this.queryData,(function(t){return t.id==e}));r({lat:this.formatCoords(i.attributes.latitude),lng:this.formatCoords(i.attributes.longitude)})}},{key:"formatCoords",value:function(e){return e?t.round(e,7):""}}])&&i(n.prototype,o),a&&i(n,a),e}()}).call(this,n(9))},416:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return u}));var r=n(417),i=n(399);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=function(){return{value:"",label:I18n.t("shared.estate_deals.deals_filter_template.all")}},u=i.a;e.b={mixins:[r.a],props:{estateTypesOptionsJson:{type:String,required:!0},currenciesDataJson:{type:String,required:!0},areasCompletePath:{type:String,required:!1}},computed:{estateTypesOptions:function(){return[this.allOption()].concat(o(JSON.parse(this.estateTypesOptionsJson))).map(this.capitalizeLabel)},isEstateRecordApartment:function(){return"estate_record_apartment"==this.queryFilter.estate_type},isEstateRecordHouse:function(){return"estate_record_house"==this.queryFilter.estate_type},isEstateRecordCommerce:function(){return"estate_record_commerce"==this.queryFilter.estate_type},isEstateRecordLand:function(){return"estate_record_land"==this.queryFilter.estate_type},isEstateRecordParking:function(){return"estate_record_parking"==this.queryFilter.estate_type},priceRangeInputLabel:function(){var e=this,n=t.find(this.currenciesData,(function(t){return t.iso==e.priceCurrency})),r=I18n.t("activerecord.attributes.estate_deal.price");return t.capitalize("".concat(r," (").concat(n.symbol,")"))},currenciesData:function(){return JSON.parse(this.currenciesDataJson)}},methods:{getOption:function(e,n){return function(e,n){return t.find(e||[],(function(t){return t.value==n}))}(e,n)},allOption:function(){return s()},capitalizeLabel:function(t){return u(t)}}}}).call(this,n(9))},417:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.a={data:function(){return{inputPopups:{}}},methods:{onInputPopupShow:function(t){this.inputPopups=i(i({},this.inputPopups),{},o({},t,!0))},onInputPopupHide:function(t){this.inputPopups=i(i({},this.inputPopups),{},o({},t,!1))}}}},432:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return I})),n.d(e,"a",(function(){return S})),n.d(e,"e",(function(){return j})),n.d(e,"d",(function(){return y}
1)),n.d(e,"c",(function(){return b}));var r=n(10),i=n(115),o=n(29),a=n(397);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var d={estate_deal_sale:"/estate_deal_sales/count",estate_deal_rent_monthly:"/estate_deal_rent_monthlies/count"},p=Object(i.a)(),m=function(){function e(t){var n=t.raw,r=t.addedAt,i=t.syncedAt,o=t.newPublishedCount;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.raw=JSON.parse(JSON.stringify(n)),this.addedAt=r,this.syncedAt=i||r,this.newPublishedCount=o}var n,i,s;return n=e,(i=[{key:"syncedAt",get:function(){return this._syncedAt||this.addedAt},set:function(t){this._syncedAt=t}},{key:"toJSON",value:function(){return{raw:this.raw,addedAt:this.addedAt,syncedAt:this.syncedAt,newPublishedCount:this.newPublishedCount}}},{key:"isEql",value:function(t){return new a.a(this.raw).isEql(new a.a(t.raw))}},{key:"sync",value:function(){var e=this,n=new o.a,i=d[this.raw.deal_type],a={params:{filter:l(l({},t.pickBy(this.raw,(function(t){return!Object(r.e)(t)}))),{},{published_at_min:this.addedAt})}};n.get(i,a).then((function(t){var n=t.data;e.newPublishedCount=n.meta.count,e.syncedAt=(new Date).toISOString(),P(e)}))}}])&&h(n.prototype,i),s&&h(n,s),e}(),y=function(t){p.on("filters:updated",t)},b=function(t){p.off("filters:updated",t)},g="recentFiltersJson",_=function(t){var e=t.filters;t.active;localStorage.setItem(g,JSON.stringify(l(l({},v()),e?{filters:e.map((function(t){return t.toJSON()}))}:{})))},v=function(){return localStorage.getItem(g)&&JSON.parse(localStorage.getItem(g))||{}},O=function(){return(v().filters||[]).map((function(t){return new m(l({},t))}))},w=!1,j=function(){if(!w){O().forEach((function(t,e){new Date-new Date(t.syncedAt)<3e5||window.setTimeout((function(){t.sync()}),1e3*(e+1))})),w=!0}},P=function(t){var e=O().map((function(e){return e.isEql(t)?t:e}));_({filters:e}),p.emit("filters:updated")},S=function(t){if(Object(r.g)()){var e=new m({raw:t,addedAt:(new Date).toISOString(),newPublishedCount:0}),n=[e].concat(s(O().filter((function(t){return!t.isEql(e)})))).slice(0,8);_({filters:n}),p.emit("filters:updated")}},I=function(){return O().map((function(t){return t.toJSON()}))}}).call(this,n(9))},434:function(t,e,n){"use strict";e.a={template:"#estate-demands-item-vue-template",props:{record:{type:Object,required:!0},user:{type:Object,required:!0}},computed:{title:function(){return this.record.attributes.title},boundsLabel:function(){return this.record.attributes.boundsLabel},priceLabel:function(){return this.record.attributes.priceLabel},sizeLabel:function(){return this.record.attributes.sizeLabel},hasPrice:function(){return!(!this.record.attributes.priceMin&&!this.record.attributes.priceMax)},estateTypeLabel:function(){return this.record.attributes.estateTypeLabel},dealTypeLabel:function(){return this.record.attributes.dealTypeLabel},publishedBadgeLabel:function(){return this.record.attributes.isPublished?"".concat(I18n.t("shared.general.published")):"".concat(I18n.t("shared.general.not")," ").concat(I18n.t("shared.general.published"))},isPriceSizeSection:function(){return this.isPriceLabel||this.isSizeLabel},isSizeLabel:function(){return!!this.sizeLabel},isPriceLabel:function(){return!!this.priceLabel},showPath:function(){return this.record.links.showPath},userPhotoUrl:function(){return this.user.links.photoUrl},userFullName:function(){return this.user.attributes.fullName},userInitials:function(){return this.user.attributes.initials}},methods:{onClick:function(){this.$refs.targetBlankAnch.click()}}}},438:function(t,e,n){"use strict";var r=n(402),i=n(403),o=n(399);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.a={components:{"location-input":r.a},emits:["update:model-value"],props:{modelValue:{type:Object,default:{}},dataEstateRecordsTypesOptionsJson:{type:String,required:!0},dataEstateDealsTypesOptionsJson:{type:String,required:!0},countriesDataJson:{type:String,required:!0}},data:function(){return{boundsLabel:null}},computed:{value:{get:function(){return this.modelValue},set:function(t){this.$emit("update:model-value",t)}},estateRecordsTypesOptions:function(){return[Object(o.b)()].concat(c(JSON.parse(this.dataEstateRecordsTypesOptionsJson))).map(o.a)},estateDealsTypesOptions:function(){return[Object(o.b)()].concat(c(JSON.parse(this.dataEstateDealsTypesOptionsJson))).map(o.a)},countries:function(){return JSON.parse(this.countriesDataJson).data.map((function(t){return new i.a(t)}))},countriesForSelect:function(){return[this.countries.find((function(t){return"ua"==t.id}))]},boundsCountryInputVal:{get:function(){return"ua"}},cityInputVal:{get:function(){return{label:this.value.bounds_label}},set:function(t){t&&t.label?this.boundsLabel=t.label:(this.boundsLabel=null,this.onGetBounds({}))}},dealType:{get:function(){return Object(o.c)(this.estateDealsTypesOptions,this.value.deal_type||"")},set:function(t){this.value=s(s({},this.value),{},{deal_type:t.value})}},estateType:{get:function(){return Object(o.c)(this.estateRecordsTypesOptions,this.value.estate_type||"")},set:function(t){this.value=s(s({},this.value),{},{estate_type:t.value})}}},methods:{onGetBounds:function(t){this.value=s(s({},this.value),{},{south:t.south,east:t.east,north:t.north,west:t.west,bounds_label:this.boundsLabel})}}}},459:function(t,e,n){"use strict";(function(t){var r=n(29),i=n(24),o=n(402),a=n(460),s=n(397),u=n(438),c=n(432),l=n(10),f=n(13);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=Object(f.a)("landing/index"),y=m.mapGetters,b=m.mapMutations,g=function(e){return t.pick(e,["south","west","north","east"])},_={template:"#landing-index-demands-filter-input-vue-template",mixins:[u.a],props:{demandsPath:{type:String,required:!0}},computed:d(d({},y(["demandsFilter"])),{},{submitLabel:function(){return I18n.t("shared.general.search")},inputColClasses:function(){return{"q-px-xs":this.$q.screen.gt.sm,"q-py-xs":this.$q.screen.lt.md}}}),methods:{onSubmitClick:function(){var t={page:1,filter:Object(l.a)(this.demandsFilter)};this.$webLocation.assign(this.demandsPath,{params:t})}}};e.a={template:"#landing-index-deals-filter-vue-template",inject:["rootBus"],components:{"location-input":o.a,"filter-select-input"
1:a.a,"demands-filter-input":_},props:{rentMonthliesPath:{type:String,required:!0},salesPath:{type:String,required:!0},countries:{type:Array,required:!0},dealsInCountriesJson:{type:String,default:"{}"}},data:function(){return{filterRentMonthly:null,filterSale:null,xCityInputVal:{value:null,label:s.a.default.bounds_label},recentFilters:[]}},computed:d(d({},y(["dealsFilter","resource","isEstateDemand","isEstateDeal","demandsFilter"])),{},{filter:{get:function(){return this.dealsFilter},set:function(t){this.setDealsFilter(t)}},demandsFilterModel:{get:function(){return this.demandsFilter},set:function(t){this.setDemandsFilter(t)}},resourceInput:{get:function(){return this.isEstateDemand?this.resource:this.dealType},set:function(t){this.setResource(t),t!=i.e&&(this.dealType=t)}},dealType:{get:function(){return this.filter.deal_type},set:function(t){var e=null;switch(t){case i.b:e=this.filterRentMonthly;break;case i.d:e=this.filterSale}this.filter=e||d(d({},s.a.default),{},{deal_type:t})}},estateType:{get:function(){return this.filter.estate_type},set:function(t){this.filter=d(d(d({},s.a.default),g(this.filter)),{},{bounds_label:this.filter.bounds_label,bounds_country:this.filter.bounds_country,deal_type:this.filter.deal_type,estate_type:t})}},bounds:{get:function(){return g(this.filter)},set:function(t){this.filter=d(d({},this.filter),t)}},boundsCountry:{get:function(){return this.filter.bounds_country},set:function(t){var e=this.countries.find((function(e){return e.id==t}));this.filter=d(d(d({},this.filter),e.bounds),{},{bounds_country:t,bounds_label:e.name})}},cityInputVal:{get:function(){return this.xCityInputVal?{val:null,label:this.filter.bounds_label}:null},set:function(t){this.xCityInputVal=t,this.filter=d(d({},this.filter),{},{bounds_label:t&&t.label||""})}},rentMonthlyType:function(){return i.b},saleType:function(){return i.d},demandType:function(){return i.e},rentMonthlyLabel:function(){return I18n.t("shared.general.rent")},saleLabel:function(){return I18n.t("shared.general.sale")},locationInputLabel:function(){return t.capitalize(I18n.t("estate_deals.index.deals_filter_template.location"))},estateTypeInputLabel:function(){return t.capitalize(I18n.t("estate_deals.index.deals_filter_template.esate_type"))},submitLabel:function(){return I18n.t("shared.general.search")},submitPath:function(){return this.dealType==i.b?this.rentMonthliesPath:this.dealType==i.d?this.salesPath:void 0},recentFilterLabelProcessors:function(){return[function(e){return e.countDealType?t.capitalize(e.humanDealType):""},function(e){return e.countEstateType?t.capitalize(e.humanEstateType):""},function(e){return e.countEstateType2?t.capitalize(e.humanEstateType2):""},function(t){return t.countLocation?t.humanLocation.split(",")[0]:""},function(t){return(t.countPrice?t.humanPrice:"")||(t.countM2?t.humanM2Html:"")},function(t){return t.countDealOwnerType?t.humanDealOwnerType:""}]},recentFiltersPicked:function(){return this.recentFilters.slice(0,3)},isRecentFilters:function(){return Object(l.g)()&&this.recentFilters.length},dealsInCountries:function(){return JSON.parse(this.dealsInCountriesJson)},countriesForSelect:function(){var e=this,n=t.compact((this.dealsInCountries[this.dealType]||[]).map((function(t){return e.countries.find((function(e){return e.id==t}))})));return 0==n.length?this.countries:n.length>=2?n:[]},boundsCountryInputId:function(){return t.uniqueId("location-input-countries-")},boundsCountryInputTeleportTo:function(){return"#".concat(this.boundsCountryInputId)},boundsCountryInputStyleObj:function(){return d({},this.countriesForSelect.length?{}:{display:"none"})}}),watch:{filter:function(t){switch(t.deal_type){case i.b:this.filterRentMonthly=t;break;case i.d:this.filterSale=t}},dealType:function(t){this.rootBus.$emit("deals_filter:estate_type:change",t)}},methods:d(d({},b(["setDealsFilter","setH1Label","setResource","setDemandsFilter"])),{},{onSubmitClick:function(){var t={page:1,sort_rules:["published_newest"],filter:new s.a(this.filter).trim()},e="".concat(this.submitPath,"?").concat(r.a.qsStringify(t));this.$webLocation.assign(e)},onGetBoundsSuccess:function(t){this.bounds=t},onLocationInputBlur:function(){},getRecentFilters:function(){this.recentFilters=Object(c.b)()},getRecentFilterLabel:function(t){var e=new s.a(t.raw),n=0,r=this.recentFilterLabelProcessors.reduce((function(t,r){var i=r(e);return i?(n++,"".concat(t?t+", ":t).concat(i)):t}),""),i=e.countFilters()-n;return i>0?"".concat(r,",... ").concat(I18n.t("shared.general.yet_x_more",{val:i})):r},getRecentFilterNewCountLabel:function(t){return t.newPublishedCount?"+".concat(t.newPublishedCount):""},onRecentFilterClick:function(t){this.filter=t.raw,this.onSubmitClick()}}
1),mounted:function(){Object(l.g)()&&(this.getRecentFilters(),Object(c.e)(),Object(c.d)(this.getRecentFilters))},beforeUnmount:function(){Object(l.g)()&&Object(c.c)(this.getRecentFilters)}}}).call(this,n(9))},460:function(t,e,n){"use strict";var r=n(416);function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.a={props:{optsJson:{type:String},opts:{type:Array},modelValue:{type:[String,Object]},isAllOption:{type:Boolean,default:!1}},emits:["update:model-value"],computed:{options:function(){var t=this.opts||JSON.parse(this.optsJson);return(this.isAllOption?[Object(r.c)()].concat(i(t)):t).map(r.a)},value:{get:function(){return this.modelValue},set:function(t){this.$emit("update:model-value",t)}}},template:'\n <q-select\n map-options\n emit-value\n v-model="value"\n :options="options">\n </q-select>\n '}},461:function(t,e,n){"use strict";(function(t){var r=n(13),i=n(24),o=n(401),a=n(397),s=n(296);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=Object(r.a)("landing/index").mapGetters,h=Object(r.a)("account").mapGetters;e.a={template:"#landing-index-deals-collection-vue-template",inject:["rootBus"],components:{"deal-item":c(c({},o.a),{},{template:"#estate-deals-item-tile-vue-template"}),"through-account":s.a},props:{rentMonthliesPath:{type:String,required:!0},salesPath:{type:String,required:!0},defaultDisplayType:{type:String,required:!0},favoriteDealsPath:{type:String,required:!0}},data:function(){return{rentMonthlies:[],sales:[],favoriteRecords:[],displayDealsType:this.defaultDisplayType,isAddOfferPrompt:!1}},computed:c(c(c({},f(["dealsFilter"])),h({accountUser:"user"})),{},{dealsFilterTrimed:function(){return new a.a(this.dealsFilter).trim()},isDisplayRentMonthlies:function(){return this.dealsFilter.deal_type==i.b},isDisplaySales:function(){return this.dealsFilter.deal_type==i.d},items:function(){return this.isDisplayRentMonthlies?this.rentMonthlies:this.isDisplaySales?this.sales:void 0},showAllLabel:function(){return I18n.t("shared.general.show_all")},favoriteRecordsByDealIds:function(){return t.fromPairs(this.favoriteRecords.map((function(t){return[t.relationships.deal.data.id,t]})))},isItems:function(){return!!this.items.length},noOffersInCategoryLabel:function(){return I18n.t("landing.index.no_offers_in_category")},addOfferToCategoryLabel:function(){return I18n.t("landing.index.add_offer_to_category")},addOfferLabel:function(){return I18n.t("landing.index.add_offer")}}),watch:{dealsFilter:function(){this.getDisplayDeals()}},methods:{getRentMonthlies:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$newAjaxController().get(this.rentMonthliesPath,{params:e}).then((function(e){var n=e.data;t.rentMonthlies=n.data,t.isAddOfferPrompt=!t.rentMonthlies.length,t.accountUser&&t.getFavoriteRecords(t.rentMonthlies)}))},getSales:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$newAjaxController().get(this.salesPath,{params:e}).then((function(e){var n=e.data;t.sales=n.data,t.isAddOfferPrompt=!t.sales.length,t.accountUser&&t.getFavoriteRecords(t.sales)}))},getFavoriteRecords:function(t){var e=this,n=t.map((function(t){return t.id}));this.$newAjaxController().get(this.favoriteDealsPath,{params:{deal_ids:n}}).then((function(t){var n=t.data;e.favoriteRecords=n.data}))},getDisplayDeals:function(){var t={sort_rules:["published_newest"],items:this.$q.screen.gt.md?8:6,filter:this.dealsFilterTrimed};this.isDisplayRentMonthlies&&this.getRentMonthlies(t),this.isDisplaySales&&this.get
1Sales(t)},onShowAll:function(){var t={sort_rules:["published_newest"],filter:this.dealsFilterTrimed};this.isDisplayRentMonthlies&&this.$webLocation.assign(this.rentMonthliesPath,{params:t}),this.isDisplaySales&&this.$webLocation.assign(this.salesPath,{params:t})},onFavoriteChanged:function(){this.accountUser&&this.getFavoriteRecords(this.items)}},created:function(){this.getDisplayDeals()}}}).call(this,n(9))},462:function(t,e,n){"use strict";(function(t){var r=n(433);e.a={template:"#landing-index-articles-collection-vue-template",components:{"article-item":r.a},props:{path:{type:String,required:!0}},data:function(){return{items:[],itemsScrollLeft:0,isScrollLeftDisabled:!1,isScrollRightDisabled:!0}},computed:{scrollStep:function(){return 300}},watch:{itemsScrollLeft:function(t){this.isScrollLeftDisabled=t>=this.$refs.itemsSection.scrollWidth-this.$refs.itemsSection.offsetWidth,this.isScrollRightDisabled=0==t}},methods:{scrollItems:function(t){this.$refs.itemsSection.scroll({top:0,left:t,behavior:"smooth"})},onScrollLeft:function(){this.scrollItems(this.itemsScrollLeft+this.scrollStep)},onScrollRight:function(){var t=this.itemsScrollLeft-this.scrollStep;this.scrollItems(t<0?0:t)},getItems:function(){var t=this;this.$newAjaxController().get(this.path).then((function(e){var n=e.data.data;t.items=n}))}},created:function(){this.getItems()},mounted:function(){var e=this;this._onItemsScroll=t.throttle((function(t){e.itemsScrollLeft=t.target.scrollLeft}),100),this.$refs.itemsSection.addEventListener("scroll",this._onItemsScroll)},beforeUnmount:function(){this.$refs.itemsSection.removeEventListener("scroll",this._onItemsScroll)}}}).call(this,n(9))},463:function(t,e,n){"use strict";(function(t){var r=n(13),i=n(10),o=n(434),a=n(296);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=Object(r.a)("landing/index").mapGetters;e.a={template:"#landing-index-demands-collection-vue-template",components:{"demand-item":o.a,"through-account":a.a},props:{estateDemandsPath:{type:String,required:!0}},data:function(){return{records:[],included:[]}},computed:l(l({},h(["demandsFilter"])),{},{isRecords:function(){return!!this.records.length},columnsCount:function(){var t=0;switch(!0){case this.isGtSm:t=4,this.$q.screen.gt.md&&(t=5);break;case this.isLtMd:t=this.$q.screen.gt.xs?2:1}return t},recordsColumns:function(){return Object(i.j)(s(this.records),{columnsCount:this.columnsCount})},isGtSm:function(){return this.$q.screen.gt.sm},isLtMd:function(){return this.$q.screen.lt.md},showAllLabel:function(){return I18n.t("shared.general.show_all")},noOffersInCategoryLabel:function(){return I18n.t("landing.index.no_offers_in_category")},addOfferToCategoryLabel:function(){return I18n.t("landing.index.add_offer_to_category")},addOfferLabel:function(){return I18n.t("landing.index.add_offer")}}),watch:{demandsFilter:function(){this.getRecords()}},methods:{getRecords:function(){var t=this;this.$newAjaxController().get(this.estateDemandsPath,{params:{items:this.$q.screen.gt.md?10:8,filter:Object(i.a)(this.demandsFilter)}}).then((function(e){var n=e.data;t.records=n.data,t.included=n.included}))},getDemandUser:function(e){return t.find(this.included,(function(t){var n=e.relationships.user.data;return n.id==t.id&&n.type==t.type}))},onShowAll:function(){var t={page:1,filter:Object(i.a)(this.demandsFilter)};this.$webLocation.assign(this.estateDemandsPath,{params:t})}},created:function(){this.getRecords()}}}).call(this,n(9))}}]); 2//# sourceMappingURL=landing_index_app-8b4c12d7e3e29a1dbb32.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.