(window.webpackJsonp=window.webpackJsonp||[]).push([[208,160],{1290:function(e,t,r){var content=r(1358);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(13).default)("0e57cc75",content,!0,{sourceMap:!1})},1357:function(e,t,r){"use strict";r(1290)},1358:function(e,t,r){var o=r(12)((function(i){return i[1]}));o.push([e.i,".search-mobile-filters{display:none;margin-bottom:var(--gap-xxs);width:100%}@media screen and (max-width:767px){.search-mobile-filters{display:inline-flex}.grid_search{display:block}}.grid_search .grid__column:first-child{flex:0 0 31.708%;margin-right:var(--gap-s);max-width:31.708%;min-width:3.7rem;width:31.708%}@media screen and (max-width:1023px){.grid_search .grid__column:first-child{margin-right:var(--gap-xxs);min-width:3.2rem}}.grid_search .form__group+.form__group{margin-top:var(--gap-xs)}.grid_search .form__group_twin>.form__item:first-child{width:calc(100% - 1rem)}",""]),o.locals={},e.exports=o},1415:function(e,t,r){"use strict";r.r(t);r(21),r(174),r(11);var o=r(6),n=r(48),l=r(28),c=r(8),d=(r(55),r(20),r(39),r(135),r(56),r(175),r(37),r(33),r(405),r(788),r(29),r(30),r(22),r(229),r(40),r(43),r(64),r(63),r(59),r(243),r(54),r(23),r(57),r(50),r(406),r(18)),f=r(139),v=r(91),m=r(238),h=r(1316),_=r(230),x=r(138),w=r(232),y=r(241),O=r(1226),C=r(239),k=r(1225),j=r(959);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){Object(o.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var R={name:"AppSearchFlatsPage",components:{AppFieldRangeSlider:y.default,AppFieldArea:j.default,AppSelect:w.default,AppCheckbox:x.default,AppSection:_.default,AppProducts:O.default,AppMobileOverlay:C.default,AppPagination:k.default,AppProductsChess:h.default},mixins:[v.a],layout:"AppMainLayout",asyncData:function(e){return Object(c.a)(regeneratorRuntime.mark((function t(){var r,o,c,d,v,m,h,_,x,w,y,O,C,k,j,F,$,R,S,A,H,P,I,T,L;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.route,r=e.$axios,o=e.error,e.env,t.prev=1,t.next=4,r.get("/api/estates/filtersSearchParams?type=office");case 4:return c=t.sent,d=c.data,v=d.types,m=d.estates,h=d.houses,_=d.priceFrom,x=d.priceTo,w=d.floorFrom,y=d.floorTo,O=d.squareFrom,C=d.squareTo,k=d.settling,j=d.locations,F={label:"Все",value:null},$=function(e){return{label:e.name,value:e.code}},R=function(e){return{label:e.name,value:e.id}},S=m.map((function(e){return+e.id})),A=v.map($),H=m.map(R),P=h.map((function(e){return{label:e.number,value:e.id,estateId:+e.estateId}})).filter((function(e){return S.includes(e.estateId)})).filter((function(e){return!!e.label})),I=Object.entries(k),T=I.sort((function(a,b){var e=parseInt(a[0].substring(0,4)),t=parseInt(b[0].substring(0,4)),r=parseInt(a[0].substring(4)),o=parseInt(b[0].substring(4));return e!==t?e-t:r-o})).map((function(e){var t=Object(l.a)(e,2),r=t[0],o=t[1];return{label:o.length<=7?o:"&nbsp;&nbsp;".concat(o),value:r}})),L=j.map((function(e){var t,r,o,n;return{code:e.code,value:e.name,county:null===(t=e.district)||void 0===t?void 0:t.name,district:null===(r=e.area)||void 0===r?void 0:r.name,metro:{color:null===(o=e.metro)||void 0===o?void 0:o.color,title:null===(n=e.metro)||void 0===n?void 0:n.name}}})),t.abrupt("return",{types:A,estates:[F].concat(Object(n.a)(H)),houses:[F].concat(Object(n.a)(Object(f.sortBy)(P,"label","asc"))),price:{from:+_,to:+x},floor:{from:+w,to:+y},area:{from:+O,to:+C},settlings:[F].concat(Object(n.a)(T)),locations:L});case 19:t.prev=19,t.t0=t.catch(1),o({statusCode:404,message:"Page not found"});case 22:case"end":return t.stop()}}),t,null,[[1,19]])})))()},data:function(){return{isFilterTouched:!1,view:"list",chess:{count:null,hero:null,floors:null},utm:{},types:null,estates:null,houses:null,settlings:null,price:null,area:null,floor:null,locations:null,filter:{},params:{limit:10,sortBy:"price",sortOrder:"asc"},total:0,sort:{label:"По цене - возрастание",value:"price|asc"},sortOptions:[{label:"По цене - возрастание",value:"price|asc"},{label:"По цене - убывание",value:"price|desc"},{label:"По площади - возрастание",value:"square|asc"},{label:"По площади - убывание",value:"square|desc"}],products:{count:"0 помещений",content:[]},isOfficePage:!1}},fetch:function(){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){var r,o,n,l,c,d,v,h,_,x,w,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,void 0!==e.getQueryParams().houses&&(e.view="chess"),t.next=4,e.$axios.get("/api/flats",{params:e.getQueryParams()});case 4:l=t.sent,c=l.data,d=c.list,v=c.allCount,e.total=v||0,null!==(r=e.$route.query)&&void 0!==r&&r.page&&(e.params.page=parseInt(e.$route.query.page)),h=(null===(o=Object.values(d))||void 0===o?void 0:o.map((function(e){var t=null==e?void 0:e.estateId,r=t.name,o=t.type,code=t.code,n=t.id,l=t.imageMain;t.minPrice;return{estateId:n,to:"/projects/".concat(o,"/").concat(code),image:l||"",title:r||"",footnote:"",position:{horizontal:"center",vertical:"center"}}})))||[],_=Object(f.uniqBy)(h,"estateId"),x=(null===(n=Object.values(d))||void 0===n?void 0:n.map((function(t){var r,o,n,l,c,d=[];return null!=t&&t.deadline&&d.push("заселение до ".concat(null==t?void 0:t.deadline)),{externalId:null==t?void 0:t.externalId,estateId:null===(r=t.estateId)||void 0===r?void 0:r.id,to:t.link.replace(/\/$/,""),image:(null===(o=t.planning)||void 0===o?void 0:o.image)||"",headnote:"".concat(t.floorNum," этаж · Помещение №").concat(t.number),title:"".concat(t.square," м²"),footnote:"".concat(null===(n=t.estateId)||void 0===n?void 0:n.name,", Корпус ").concat(null===(l=t.houseId)||void 0===l?void 0:l.number),tags:d,status:t.status,price:"".concat(e.priceFormat(t.price)," ₽"),mortgage:null!==(c=t.mortgage)&&void 0!==c&&c.monthPayment?{to:"#",price:"от ".concat(e.priceFormat(t.mortgage.monthPayment)," ₽ в месяц")}:null,favorite:!1}})))||[],w=Object(f.groupBy)(x,"estateId"),y=Object(m.a)(" помещение"," помещений"," помещения",e.total),e.products={count:e.priceFormat(e.total)+y,content:[]},_.forEach((function(t){e.products.content.push({hero:t,list:w[t.estateId]})})),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.$nuxt.error({statusCode:404,message:"Страница не найдена"}),console.log(t.t0);case 21:case"end":return t.stop()}}),t,null,[[0,17]])})))()},head:function(){return{title:"Выбор коммерческих помещений от застройщика в Москве и Московской области",meta:[{name:"description",content:"Поиск коммерческих помещений от застройщика в Москве и Московской области от компании Ingrad"},{name:"og:description",content:"Поиск коммерческих помещений от застройщика в Москве и Московской области от компании Ingrad"},{name:"og:title",content:"Выбор коммерческих помещений от застройщика в Москве и Московской области"},{name:"og:url",content:"https://www.ingrad.ru/search/offices"},{name:"og:type",content:"website"},{name:"og:image",content:"https://www.ingrad.ru/logo.jpg"}],link:[{rel:"canonical",href:"https://www.ingrad.ru/search/offices"}]}},computed:{isHouseSelected:function(){var e;return null!==(null===(e=this.filter)||void 0===e||null===(e=e.house)||void 0===e?void 0:e.value)},isViewChess:function(){return"list"===this.view},filteredHouses:function(){var e=this;return this.houses.filter((function(t){return e.filter.estate.value&&t.estateId===e.filter.estate.value||null===t.value})).sort((function(a,b){return("Все"===a.label?0:parseInt(a.label))-("Все"===b.label?0:parseInt(b.label))}))},queryParamsAsString:function(){var e=Object.entries(this.getQueryParams()).filter((function(e){var t=Object(l.a)(e,2);t[0];return void 0!==t[1]})).filter((function(e){return"page"!==Object(l.a)(e,1)[0]})),t=Object.fromEntries(e);if(Object.keys(this.utm).length)for(var r in this.utm)this.utm[r]&&(t[r]=this.utm[r]);return new URLSearchParams(t).toString()}},watch:{"$route.query":function(){var e;null===(e=window)||void 0===e||e.scrollTo(0,0),this.$fetch()}},mounted:function(){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){var r,o,n,l,c,d,f,v,m,h,_,x,w,y,O,C,k,j,F,$,R;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if($=function(t){var r,o;return null!==(r=e.$route.query)&&void 0!==r&&r[t]&&e[t]?e[t].find((function(r){return r.value==e.$route.query[t]}))||e[t][0]:null==e||null===(o=e[t])||void 0===o?void 0:o[0]},R=function(t){var r;return null!==(r=e.$route.query)&&void 0!==r&&r[t]?parseInt(e.$route.query[t]):void 0},e.utm={utm_source:null===(r=e.$route.query)||void 0===r?void 0:r.utm_source,utm_medium:null===(o=e.$route.query)||void 0===o?void 0:o.utm_medium,utm_term:null===(n=e.$route.query)||void 0===n?void 0:n.utm_term,utm_content:null===(l=e.$route.query)||void 0===l?void 0:l.utm_content,utm_campaign:null===(c=e.$route.query)||void 0===c?void 0:c.utm_campaign},e.filter={type:e.types.find((function(e){return"office"===e.value})),types:e.types,estate:$("estates"),estates:e.estates,house:$("houses"),houses:e.houses,settling:$("settlings"),settlings:e.settlings,reserve:"no"===(null===(d=e.$route.query)||void 0===d?void 0:d.reserve),locations:e.locations,price:[R("priceFrom")||(null===(f=e.price)||void 0===f?void 0:f.from)||0,R("priceTo")||(null===(v=e.price)||void 0===v?void 0:v.to)||0],priceConfig:{connect:!0,range:{min:(null===(m=e.price)||void 0===m?void 0:m.from)||0,max:(null===(h=e.price)||void 0===h?void 0:h.to)||0}},area:[R("squareFrom")||(null===(_=e.area)||void 0===_?void 0:_.from)||0,R("squareTo")||(null===(x=e.area)||void 0===x?void 0:x.to)||0],areaConfig:{connect:!0,range:{min:(null===(w=e.area)||void 0===w?void 0:w.from)||0,max:(null===(y=e.area)||void 0===y?void 0:y.to)||0}},floor:[R("floorFrom")||(null===(O=e.floor)||void 0===O?void 0:O.from)||0,R("floorTo")||(null===(C=e.floor)||void 0===C?void 0:C.to)||0],floorConfig:{connect:!0,range:{min:(null===(k=e.floor)||void 0===k?void 0:k.from)||0,max:(null===(j=e.floor)||void 0===j?void 0:j.to)||0}}},null===(null===(F=e.filter.house)||void 0===F?void 0:F.value)){t.next=7;break}return t.next=7,e.searchChess();case 7:e.isOfficePage=e.$route.path.includes("offices");case 8:case"end":return t.stop()}}),t)})))()},methods:$($({},Object(d.c)({openOverlay:"mobile-overlay/OPEN_OVERLAY",closeOverlay:"mobile-overlay/CLOSE_OVERLAY"})),{},{getQueryParams:function(){var e,t,r,o,n,l,c,d,f,v,m,h,_,x,w,y,O,C,k,j,F,R,S,A,H;return this.isFilterTouched?$($({},this.params),{},{page:(null===(e=this.$route.query)||void 0===e?void 0:e.page)||1,types:(null===(t=this.filter)||void 0===t||null===(t=t.type)||void 0===t?void 0:t.value)||"office",estates:(null===(r=this.filter)||void 0===r||null===(r=r.estate)||void 0===r?void 0:r.value)||void 0,houses:(null===(o=this.filter)||void 0===o||null===(o=o.house)||void 0===o?void 0:o.value)||void 0,priceFrom:(null===(n=this.filter)||void 0===n||null===(n=n.price)||void 0===n?void 0:n[0])||void 0,priceTo:(null===(l=this.filter)||void 0===l||null===(l=l.price)||void 0===l?void 0:l[1])||void 0,squareFrom:(null===(c=this.filter)||void 0===c||null===(c=c.area)||void 0===c?void 0:c[0])||void 0,squareTo:(null===(d=this.filter)||void 0===d||null===(d=d.area)||void 0===d?void 0:d[1])||void 0,floorFrom:(null===(f=this.filter)||void 0===f||null===(f=f.floor)||void 0===f?void 0:f[0])||void 0,floorTo:(null===(v=this.filter)||void 0===v||null===(v=v.floor)||void 0===v?void 0:v[1])||void 0,settlings:(null===(m=this.filter)||void 0===m||null===(m=m.settling)||void 0===m?void 0:m.value)||void 0,reserve:this.filter.reserve?"no":void 0,locations:(null===(h=this.filter.location)||void 0===h?void 0:h.code)||void 0}):$($({},this.params),{},{page:(null===(_=this.$route.query)||void 0===_?void 0:_.page)||1,types:(null===(x=this.$route.query)||void 0===x?void 0:x.types)||"office",estates:(null===(w=this.$route.query)||void 0===w?void 0:w.estates)||void 0,houses:(null===(y=this.$route.query)||void 0===y?void 0:y.houses)||void 0,priceFrom:(null===(O=this.$route.query)||void 0===O?void 0:O.priceFrom)||void 0,priceTo:(null===(C=this.$route.query)||void 0===C?void 0:C.priceTo)||void 0,squareFrom:(null===(k=this.$route.query)||void 0===k?void 0:k.squareFrom)||void 0,squareTo:(null===(j=this.$route.query)||void 0===j?void 0:j.squareTo)||void 0,floorFrom:(null===(F=this.$route.query)||void 0===F?void 0:F.floorFrom)||void 0,floorTo:(null===(R=this.$route.query)||void 0===R?void 0:R.floorTo)||void 0,settlings:(null===(S=this.$route.query)||void 0===S?void 0:S.settlings)||void 0,reserve:(null===(A=this.$route.query)||void 0===A?void 0:A.reserve)||void 0,locations:(null===(H=this.$route.query)||void 0===H?void 0:H.locations)||void 0})},onFiltersApply:function(){this.closeOverlay()},search:function(){var e=this;this.isFilterTouched=!0,this.$router.replace("?page=1&".concat(this.queryParamsAsString)),setTimeout(Object(c.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$fetch();case 2:if(null===(null===(r=e.filter.house)||void 0===r?void 0:r.value)){t.next=5;break}return t.next=5,e.searchChess();case 5:case"end":return t.stop()}}),t)}))),0)},searchChess:function(){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){var r,o,n,c,d,v,h,_;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$axios.get("api/flats",{params:$($({},e.getQueryParams()),{},{limit:void 0,page:void 0,chess:1})});case 3:r=t.sent,o=r.data,n=o.allCount,c=o.list,d=Object(f.sortBy)(c,"platformNumber"),v=d.map((function(t){var r,title="№ ".concat(t.number),o=parseInt((null==t?void 0:t.priceNoDiscount)||0)-parseInt((null==t?void 0:t.price)||0),n=Math.round(o/((null==t?void 0:t.priceNoDiscount)||0)*100),l=[];return null!=t&&t.finish&&l.push(null==t?void 0:t.finish),{id:t.id,floorNumber:+t.floorNum,platformNumber:+t.platformNumber,entrance:+t.sectionNum,rooms:t.number,title:title,area:"".concat(null==t?void 0:t.square," м²"),description:l.join(" / "),price:"".concat(e.priceFormat((null==t?void 0:t.price)||0)," ₽"),oldPrice:"".concat(e.priceFormat((null==t?void 0:t.priceNoDiscount)||0)," ₽"),discount:n>0?"-".concat(n,"%"):void 0,image:(null==t||null===(r=t.planning)||void 0===r?void 0:r.image)||"",url:null==t?void 0:t.link,isFree:"free"===(null==t?void 0:t.status),isSold:"sold"===(null==t?void 0:t.status),isDiscount:o>0,isOrder:"reserve"===(null==t?void 0:t.status),isSoon:!1,isMismatch:!(null!=t&&t.chessActive)}})),h=Object(f.groupBy)(v,"floorNumber"),_=Object.entries(h).map((function(e){var t=Object(l.a)(e,2);return{floorNumber:t[0],flats:t[1]}})),e.chess={count:"".concat(n||0," ").concat(Object(m.a)(" помещение"," помещений"," помещения",n||0)),hero:e.products.content[0].hero,floors:_},t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,14]])})))()},onLocationInputHandler:function(e){var t=this;return Object(c.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.target.value){r.next=4;break}return t.filter.location="",r.next=4,t.search();case 4:case"end":return r.stop()}}),r)})))()},onLocationSelectHandler:function(e){var t=arguments,r=this;return Object(c.a)(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=t.length>1&&void 0!==t[1]&&t[1],r.filter.location||e){o.next=3;break}return o.abrupt("return");case 3:if(r.filter.location=e,!n){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,r.search();case 8:case"end":return o.stop()}}),o)})))()},onTypeChangeHandler:function(option){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){var r,o,n,l,d,f,v,m,h,_,x,w,y,O,C;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y={},O="",Object.keys(e.utm).length){for(C in e.utm)e.utm[C]&&(y[C]=e.utm[C]);O=Object.keys(y).length?new URLSearchParams(y).toString():""}if(!["carplace","storeroom","motoplace"].includes(option.value)){t.next=8;break}return e.closeOverlay(),t.next=7,e.$router.push("/storing?type=".concat(option.value));case 7:return t.abrupt("return");case 8:if("flat"!==option.value){t.next=13;break}return e.closeOverlay(),t.next=12,e.$router.push("/search/flats");case 12:return t.abrupt("return");case 13:return e.isFilterTouched=!1,t.next=16,e.$router.replace("/search/flats?page=1&types=".concat(option.value).concat(O?"&".concat(O):""));case 16:e.products.content=[],setTimeout(Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$fetch();case 2:case"end":return t.stop()}}),t)}))),0),e.filter=$($({},e.filter),{},{type:option,estate:e.estates[0],house:e.houses[0],finishType:e.finishTypes[0],settling:e.settlings[0],rooms:e.rooms.map((function(e){return $($({},e),{},{selected:!1})})),reserve:!1,price:[(null===(r=e.price)||void 0===r?void 0:r.from)||0,(null===(o=e.price)||void 0===o?void 0:o.to)||0],priceConfig:{connect:!0,range:{min:(null===(n=e.price)||void 0===n?void 0:n.from)||0,max:(null===(l=e.price)||void 0===l?void 0:l.to)||0}},area:[(null===(d=e.area)||void 0===d?void 0:d.from)||0,(null===(f=e.area)||void 0===f?void 0:f.to)||0],areaConfig:{connect:!0,range:{min:(null===(v=e.area)||void 0===v?void 0:v.from)||0,max:(null===(m=e.area)||void 0===m?void 0:m.to)||0}},floor:[(null===(h=e.floor)||void 0===h?void 0:h.from)||0,(null===(_=e.floor)||void 0===_?void 0:_.to)||0],floorConfig:{connect:!0,range:{min:(null===(x=e.floor)||void 0===x?void 0:x.from)||0,max:(null===(w=e.floor)||void 0===w?void 0:w.to)||0}}});case 19:case"end":return t.stop()}}),t)})))()},onEstateChangeHandler:function(option){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.filter.estate=option,e.filter.house={label:"Все",value:null},e.onLocationSelectHandler("",!0),t.next=5,e.search();case 5:case"end":return t.stop()}}),t)})))()},onCorpusChangeHandler:function(option){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.filter.corpus=option,e.view="chess",null===option.value&&(e.view="list"),t.next=5,e.search();case 5:case"end":return t.stop()}}),t)})))()},onFinishTypeChangeHandler:function(option){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.filter.finishType=option,t.next=3,e.search();case 3:case"end":return t.stop()}}),t)})))()},onPriceChangeHandler:function(e){var t=this;return Object(c.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.filter.price=e,r.next=3,t.search();case 3:case"end":return r.stop()}}),r)})))()},onAreaChangeHandler:function(e){var t=this;return Object(c.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.filter.area=e,r.next=3,t.search();case 3:case"end":return r.stop()}}),r)})))()},onFloorChangeHandler:function(e){var t=this;return Object(c.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.filter.floor=e,r.next=3,t.search();case 3:case"end":return r.stop()}}),r)})))()},onRoomChangeHandler:function(e){var t=this;return Object(c.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.filter.rooms=e,r.next=3,t.search();case 3:case"end":return r.stop()}}),r)})))()},onSettlingChangeHandler:function(option){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.filter.settling=option,t.next=3,e.search();case 3:case"end":return t.stop()}}),t)})))()},onSelectSort:function(option){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){var r,o,n,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=option.value.split("|"),o=Object(l.a)(r,2),n=o[0],c=o[1],e.sort=option,e.params.sortBy=n,e.params.sortOrder=c,t.next=6,e.search();case 6:case"end":return t.stop()}}),t)})))()},onCheckboxChangeHandler:function(){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.search();case 2:case"end":return t.stop()}}),t)})))()},onSelectViewHandler:function(view){this.view=view},onFilterOpenHandler:function(){this.openOverlay({id:"filters"})}})},S=R,A=(r(1357),r(3)),component=Object(A.a)(S,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"page page_flat_search"},[t("AppSection",{attrs:{appearance:"lightest","offset-top":"s","rounded-next":!0}},[t("div",{staticClass:"grid grid_search"},[t("div",{staticClass:"grid__column"},[t("AppMobileOverlay",{attrs:{id:"filters",title:"Фильтр","control-title":"Применить"},on:{onSubmit:e.onFiltersApply}},[t("form",{staticClass:"form",attrs:{action:""}},[t("fieldset",{staticClass:"form__fieldset"},[e.filter.types?t("div",{staticClass:"form__group"},[t("div",{staticClass:"form__item"},[t("AppSelect",{attrs:{placeholder:"Купить",options:e.filter.types,size:"large",variant:"white"},on:{input:e.onTypeChangeHandler},model:{value:e.filter.type,callback:function(t){e.$set(e.filter,"type",t)},expression:"filter.type"}})],1)]):e._e(),e._v(" "),e.filter.estates?t("div",{staticClass:"form__group form__group_row form__group_twin"},[t("div",{staticClass:"form__item"},[t("AppSelect",{attrs:{placeholder:"Проект",options:e.filter.estates,size:"large",variant:"white"},on:{input:e.onEstateChangeHandler},model:{value:e.filter.estate,callback:function(t){e.$set(e.filter,"estate",t)},expression:"filter.estate"}})],1),e._v(" "),t("div",{staticClass:"form__item"},[t("AppSelect",{attrs:{size:"large",variant:"white",placeholder:"Корпус",options:e.filteredHouses},on:{input:e.onCorpusChangeHandler},model:{value:e.filter.house,callback:function(t){e.$set(e.filter,"house",t)},expression:"filter.house"}})],1)]):e._e(),e._v(" "),e.filter.price&&!e.isOfficePage?t("div",{staticClass:"form__group"},[t("div",{staticClass:"form__item"},[t("AppFieldRangeSlider",{attrs:{placeholder:"Стоимость, ₽",type:"text","mask-type":"price",variant:"white","input-size":"large",values:e.filter.price,"range-slider-config":e.filter.priceConfig},on:{accept:e.onPriceChangeHandler,sliderEnd:e.onPriceChangeHandler},model:{value:e.filter.price,callback:function(t){e.$set(e.filter,"price",t)},expression:"filter.price"}})],1)]):e._e(),e._v(" "),t("div",{staticClass:"form__group form__group_row"},[e.filter.area?t("div",{staticClass:"form__item"},[t("AppFieldRangeSlider",{attrs:{placeholder:"Площадь м²",type:"text",variant:"white",values:e.filter.area,"range-slider-config":e.filter.areaConfig},on:{accept:e.onAreaChangeHandler,sliderEnd:e.onAreaChangeHandler},model:{value:e.filter.area,callback:function(t){e.$set(e.filter,"area",t)},expression:"filter.area"}})],1):e._e(),e._v(" "),e.filter.floor?t("div",{staticClass:"form__item"},[t("AppFieldRangeSlider",{attrs:{placeholder:"Этаж",type:"text",variant:"white",values:e.filter.floor,"range-slider-config":e.filter.floorConfig},on:{accept:e.onFloorChangeHandler,sliderEnd:e.onFloorChangeHandler},model:{value:e.filter.floor,callback:function(t){e.$set(e.filter,"floor",t)},expression:"filter.floor"}})],1):e._e()]),e._v(" "),e.filter.locations&&null===e.filter.estate.value?t("div",{staticClass:"form__group"},[t("div",{staticClass:"form__item"},[t("AppFieldArea",{attrs:{list:e.filter.locations,variant:"white"},on:{input:e.onLocationInputHandler,onSelect:e.onLocationSelectHandler}})],1)]):e._e(),e._v(" "),e.filter.settling?t("div",{staticClass:"form__group"},[t("div",{staticClass:"form__item"},[t("AppSelect",{attrs:{placeholder:"Ввод объекта в эксплуатацию",options:e.filter.settlings,size:"large",variant:"white"},on:{input:e.onSettlingChangeHandler},model:{value:e.filter.settling,callback:function(t){e.$set(e.filter,"settling",t)},expression:"filter.settling"}})],1)]):e._e()]),e._v(" "),t("fieldset",{staticClass:"form__fieldset"},[t("div",{staticClass:"form__group"},[t("div",{staticClass:"form__item"},[t("AppCheckbox",{attrs:{name:"exclude"},on:{change:e.onCheckboxChangeHandler},model:{value:e.filter.reserve,callback:function(t){e.$set(e.filter,"reserve",t)},expression:"filter.reserve"}},[e._v("\n\t\t\t\t\t\t\t\t\t\t\tИсключить забронированные\n\t\t\t\t\t\t\t\t\t\t")])],1)])])])])],1),e._v(" "),t("div",{staticClass:"grid__column"},[e.isHouseSelected&&e.isViewChess&&e.chess.floors?t("AppProductsChess",{attrs:{count:e.chess.count,hero:e.chess.hero,chess:e.chess.floors},on:{onSelectView:e.onSelectViewHandler,onFilterOpen:e.onFilterOpenHandler}}):t("AppProducts",{attrs:{count:e.products.count,content:e.products.content,sort:e.sort,"sort-options":e.sortOptions,"show-view":e.isHouseSelected,"show-tabs":!1},on:{onSort:e.onSelectSort,onSelectView:e.onSelectViewHandler,onFilterOpen:e.onFilterOpenHandler}}),e._v(" "),t("AppPagination",{attrs:{current:e.params.page,"limit-per-page":e.params.limit,total:e.total}})],1)])])],1)}),[],!1,null,null,null);t.default=component.exports},737:function(e,t,r){var content=r(865);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(13).default)("3c29da76",content,!0,{sourceMap:!1})},864:function(e,t,r){"use strict";r(737)},865:function(e,t,r){var o=r(12)((function(i){return i[1]}));o.push([e.i,'.autocomplete{position:relative}.autocomplete__result{background:#fff;border-radius:16px;box-shadow:0 .02rem .04rem rgba(0,0,0,.04),0 .12rem .12rem rgba(0,0,0,.04),0 .01rem .08rem rgba(0,0,0,.1);left:0;margin-top:var(--gap-xxxs);max-height:2.56rem;overflow-y:auto;position:absolute;scrollbar-width:none;top:100%;width:4.8rem;z-index:2;-ms-overflow-style:none}.autocomplete__result::-webkit-scrollbar{display:none;height:0;width:0}@media screen and (max-width:600px){.autocomplete__result{width:100%}}.autocomplete__list{padding:var(--gap-xxxs) 0}@media screen and (max-width:600px){.autocomplete__list{padding:calc(var(--gap-xxxs)/2) 0}}.autocomplete__row{align-items:center;cursor:pointer;display:flex;flex-wrap:wrap;padding:calc(var(--gap-xxs) - .01rem) .2rem}.autocomplete__row>*{min-height:1px;min-width:1px}.autocomplete__row+.autocomplete__row{border-top:.01rem solid var(--color-secondary)}@media screen and (max-width:600px){.autocomplete__row{flex-direction:row-reverse;padding:calc(var(--gap-xs)/2) .3rem calc(var(--gap-xs)/2) var(--gap-xxs)}}.autocomplete__col:first-child{flex:none;padding-right:var(--gap-xxxs);width:.72rem}@media screen and (max-width:600px){.autocomplete__col:first-child{padding-left:var(--gap-xxxs);padding-right:0}}.autocomplete__col:nth-child(2){display:flex;flex:1;flex-wrap:wrap}.autocomplete__col:nth-child(2)>*{min-height:1px;min-width:1px}@media screen and (max-width:600px){.autocomplete__col:nth-child(2){display:block}}.autocomplete__county{color:var(--color-black-alpha-50);font-size:.12rem;font-weight:600;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media screen and (max-width:600px){.autocomplete__county{text-align:right}}.autocomplete__district{flex:none;font-size:.16rem;font-weight:600;line-height:1.5;overflow:hidden;padding-right:var(--gap-xxxs);text-overflow:ellipsis;white-space:nowrap;width:1.62rem}@media screen and (max-width:600px){.autocomplete__district{font-size:.14rem;font-weight:600;line-height:1.4285714286;padding-right:0;width:100%}}.autocomplete__metro{flex:1;padding-left:.18rem;position:relative}.autocomplete__metro:before{background-color:currentColor;border-radius:50%;content:"";display:block;height:.1rem;left:0;margin-top:-.05rem;position:absolute;top:50%;width:.1rem}.autocomplete__metro span{color:var(--base-text-color);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media screen and (max-width:600px){.autocomplete__metro{font-size:.14rem;line-height:1.4285714286;margin-top:.02rem;padding-left:var(--gap-xxs)}.autocomplete__metro:before{height:.08rem;margin-top:-.04rem;width:.08rem}}',""]),o.locals={},e.exports=o},959:function(e,t,r){"use strict";r.r(t);r(21),r(56),r(11),r(64);var o={name:"AppFieldArea",components:{AppIcon:r(15).default},props:{list:{type:Array,default:null},variant:{type:String,default:"light"},isLabelHide:{type:Boolean,default:!1},isInsideLabelHide:{type:Boolean,default:!1},size:{type:String,default:"large"}},data:function(){return{area:"",result:null,resultOpen:!1,isFocused:!1,isTouched:!1}},computed:{filteredList:function(){var e=this;return this.list.filter((function(t){return!e.area||(t.county.toLowerCase().includes(e.area.toLowerCase())||t.district.toLowerCase().includes(e.area.toLowerCase())||t.metro.title.toLowerCase().includes(e.area.toLowerCase()))}))},classNames:function(){return["field","field_icons","field_placeholder-type_float","field_size_".concat(this.size),"field_variant_".concat(this.variant),"field_appearance_base","field_icon_position_after",this.area?"field_filled":void 0,this.isFocused?"field_focused":void 0,this.isTouched?"field_touched":void 0]}},mounted:function(){var e=this;document.addEventListener("click",(function(t){var r=t.target;r.closest(".autocomplete")||r.classList.contains("autocomplete")||(e.resultOpen=!1)}))},methods:{clearArea:function(){this.area="",this.selectHandle("")},areaFocus:function(){this.resultOpen=!0,this.isFocused=!0},areaBlur:function(){this.isFocused=!1},areaInput:function(e){this.isTouched=!0,this.$emit("input",e)},selectHandle:function(e){this.resultOpen=!1,this.area=e.value,this.$emit("onSelect",e)}}},n=(r(864),r(3)),component=Object(n.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"autocomplete"},[t("div",{class:e.classNames},[e.isLabelHide?e._e():t("label",{staticClass:"field__label"},[e._v("Местоположение")]),e._v(" "),t("div",{staticClass:"field__container"},[e.isInsideLabelHide?t("div",{staticClass:"field__title"},[e._v("Местоположение")]):e._e(),e._v(" "),t("div",{class:e.isInsideLabelHide?"field__placeholder":"field__placeholder-solo"},[e._v("Округ, район, метро")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.area,expression:"area"}],staticClass:"field__input",attrs:{type:"text",placeholder:"hide"},domProps:{value:e.area},on:{focus:e.areaFocus,blur:e.areaBlur,input:[function(t){t.target.composing||(e.area=t.target.value)},e.areaInput]}}),e._v(" "),t("div",{staticClass:"field__icon"},[t("button",{staticClass:"field__button field__button_del",attrs:{type:"button"},on:{click:e.clearArea}},[t("AppIcon",{attrs:{id:"cross",width:11,height:11}})],1),e._v(" "),t("AppIcon",{attrs:{id:"marker",width:24,height:24}})],1)])]),e._v(" "),e.filteredList.length&&e.resultOpen?t("div",{staticClass:"autocomplete__result"},[t("ul",{staticClass:"list autocomplete__list"},e._l(e.filteredList,(function(r,o){return t("li",{key:o,staticClass:"list__item autocomplete__row",on:{click:function(t){return e.selectHandle(r)}}},[t("div",{staticClass:"autocomplete__col"},[t("div",{staticClass:"autocomplete__county"},[e._v(e._s(r.county))])]),e._v(" "),t("div",{staticClass:"autocomplete__col"},[t("div",{staticClass:"autocomplete__district"},[e._v(e._s(r.district))]),e._v(" "),t("div",{staticClass:"autocomplete__metro",style:{color:r.metro.color}},[t("span",[e._v(e._s(r.metro.title))])])])])})),0)]):e._e()])}),[],!1,null,null,null);t.default=component.exports}}]);