(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[495],{95572:function(e,r,t){"use strict";t.d(r,{B:function(){return a},e:function(){return n}});var n="map-search-frontend",a="newbuilding-mortgage-calculator-frontend"},90711:function(e,r,t){"use strict";t.d(r,{i:function(){return E},r:function(){return H}});var n=t(68034),a=t(68664),i=t(2057),o=t(13237),c=t(15591),s=t(4390),u=t(10851),l=t(944),f=t(78685),d=function(e){var r=e.headerLinks,t=e.wrapped,n=e.children,a=t?s.C:i.Fragment;return(0,f.jsx)(a,{"data-name":"InfrastructureWrapper",children:(0,f.jsxs)("section",{className:l.wrapper,id:u.jU,children:[(0,f.jsxs)("div",{className:l.header,children:[(0,f.jsx)(c.St,{as:"h1",fontWeight:"bold",children:"Расположение"}),(0,f.jsx)("div",{className:l.links,children:r})]}),n]})})},p=t(42084),h=t(40578),m=t(66988),v=function(e){var r=e.retry;return(0,f.jsxs)("div",{"data-name":"InfrastructureError",className:m.wrapper,children:[(0,f.jsx)("div",{className:m.icon,children:(0,f.jsx)(p._,{src:"data:image/svg+xml,%3csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg filter='url(%23s2941f8__a)'%3e%3crect width='100' height='100' rx='50' fill='%23F2F5FB'/%3e%3c/g%3e%3cg filter='url(%23s2941f8__b)'%3e%3cmask id='s2941f8__d' fill='white'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M48.876 71.454a6.376 6.376 0 1 0 0 12.752 6.376 6.376 0 0 0 0-12.752ZM48.766 10a6.267 6.267 0 0 0-6.267 6.267V57a6.267 6.267 0 0 0 12.534 0V16.267A6.267 6.267 0 0 0 48.766 10Z'/%3e%3c/mask%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M48.876 71.454a6.376 6.376 0 1 0 0 12.752 6.376 6.376 0 0 0 0-12.752ZM48.766 10a6.267 6.267 0 0 0-6.267 6.267V57a6.267 6.267 0 0 0 12.534 0V16.267A6.267 6.267 0 0 0 48.766 10Z' fill='white'/%3e%3cpath d='M42.5 16.267h1.698H42.5ZM42.5 57h-1.7 1.7Zm12.533 0h1.699-1.7Zm0-40.734h1.699-1.7ZM44.198 77.83a4.677 4.677 0 0 1 4.678-4.677v-3.398A8.075 8.075 0 0 0 40.8 77.83h3.397Zm4.678 4.678a4.677 4.677 0 0 1-4.678-4.678h-3.397a8.075 8.075 0 0 0 8.075 8.075v-3.397Zm4.677-4.678a4.677 4.677 0 0 1-4.677 4.678v3.397a8.075 8.075 0 0 0 8.075-8.075h-3.398Zm-4.677-4.677a4.677 4.677 0 0 1 4.677 4.677h3.398a8.075 8.075 0 0 0-8.075-8.075v3.398Zm-4.678-56.886a4.568 4.568 0 0 1 4.568-4.568V8.3a7.966 7.966 0 0 0-7.965 7.966h3.397Zm0 40.734V16.267h-3.397V57h3.397Zm4.568 4.568A4.568 4.568 0 0 1 44.198 57h-3.397a7.965 7.965 0 0 0 7.965 7.965V61.57ZM53.334 57a4.568 4.568 0 0 1-4.568 4.568v3.397c4.4 0 7.966-3.566 7.966-7.965h-3.398Zm0-40.734V57h3.398V16.267h-3.398Zm-4.568-4.568a4.568 4.568 0 0 1 4.568 4.568h3.398c0-4.4-3.567-7.966-7.966-7.966v3.4Z' fill='url(%23s2941f8__c)' mask='url(%23s2941f8__d)'/%3e%3c/g%3e%3cdefs%3e%3cfilter id='s2941f8__a' x='-25' y='-25' width='125' height='128.397' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeBlend in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur stdDeviation='5'/%3e%3cfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3e%3cfeColorMatrix values='0 0 0 0 0.825 0 0 0 0 0.879091 0 0 0 0 1 0 0 0 1 0'/%3e%3cfeBlend in2='shape' result='effect1_innerShadow_1197_127676'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dx='-3.397' dy='3.397'/%3e%3cfeGaussianBlur stdDeviation='105.321'/%3e%3cfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3e%3cfeColorMatrix values='0 0 0 0 0.5125 0 0 0 0 0.663182 0 0 0 0 1 0 0 0 0.25 0'/%3e%3cfeBlend in2='effect1_innerShadow_1197_127676' result='effect2_innerShadow_1197_127676'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dx='-25' dy='-25'/%3e%3cfeGaussianBlur stdDeviation='12.5'/%3e%3cfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3e%3cfeColorMatrix values='0 0 0 0 0.642552 0 0 0 0 0.726911 0 0 0 0 0.9125 0 0 0 0.5 0'/%3e%3cfeBlend in2='effect2_innerShadow_1197_127676' result='effect3_innerShadow_1197_127676'/%3e%3c/filter%3e%3cfilter id='s2941f8__b' x='37.403' y='3.205' width='34.836' height='94.591' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dx='6.795' dy='3.397'/%3e%3cfeGaussianBlur stdDeviation='5.096'/%3e%3cfeColorMatrix values='0 0 0 0 0.455 0 0 0 0 0.602179 0 0 0 0 0.933333 0 0 0 1 0'/%3e%3cfeBlend in2='BackgroundImageFix' result='effect1_dropShadow_1197_127676'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dx='1.699' dy='1.699'/%3e%3cfeGaussianBlur stdDeviation='3.397'/%3e%3cfeColorMatrix values='0 0 0 0 0.0275868 0 0 0 0 0.393422 0 0 0 0 0.945833 0 0 0 0.4 0'/%3e%3cfeBlend in2='effect1_dropShadow_1197_127676' result='effect2_dropShadow_1197_127676'/%3e%3cfeBlend in='SourceGraphic' in2='effect2_dropShadow_1197_127676' result='shape'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dx='-3.397' dy='-3.397'/%3e%3cfeGaussianBlur stdDeviation='5.096'/%3e%3cfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3e%3cfeColorMatrix values='0 0 0 0 0.588403 0 0 0 0 0.698713 0 0 0 0 0.954167 0 0 0 1 0'/%3e%3cfeBlend in2='shape' result='effect3_innerShadow_1197_127676'/%3e%3cfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dy='8.494'/%3e%3cfeGaussianBlur stdDeviation='3.397'/%3e%3cfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3e%3cfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0'/%3e%3cfeBlend in2='effect3_innerShadow_1197_127676' result='effect4_innerShadow_1197_127676'/%3e%3c/filter%3e%3clinearGradient id='s2941f8__c' x1='55.252' y1='84.206' x2='30.25' y2='80.659' gradientUnits='userSpaceOnUse'%3e%3cstop offset='.286' stop-color='white' stop-opacity='.2'/%3e%3cstop offset='1' stop-color='%23B4C9F9' stop-opacity='.2'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",width:100,height:100})}),(0,f.jsxs)("div",{className:m.message,children:[(0,f.jsx)("div",{className:m.title,children:(0,f.jsx)(c.Z7,{textAlign:"center",children:"Что-то пошло не так"})}),(0,f.jsx)(c.Zq,{textAlign:"center",color:"gray60_100",children:"Попробуйте загрузить информацию снова"})]}),(0,f.jsx)(h.$,{size:"L",theme:"fill_primary",onClick:r,children:"Обновить"})]})},b=t(48373),g=t(26942),y=function(){return(0,f.jsx)("div",{"data-name":"InfrastructureLoader",className:g.wrapper,children:(0,f.jsx)(b.y,{size:40})})},_=t(17200),x=t(32983),j=t(66242),w=t(50746),A=t(83007),S=t.n(A),O=t(95572),k=(0,t(69045).f)("pageData");function C(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function B(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?C(Object(t),!0).forEach((function(r){(0,n.A)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var M={apiType:"public",assertStatusCodes:[200,400],method:"GET",microserviceName:"map-search-frontend",pathApi:"/v1/get-infrastructure-microfrontend/",hostType:"api"};function D(e){return B(B({},M),{},{parameters:e})}function Z(e){return N.apply(this,arguments)}function N(){return(N=(0,j.A)(S().mark((function e(r){var t,n,a,i,o,c,s;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.httpApi,n=r.config,a=r.mappers,i=r.parameters,e.next=3,t.fetch(D(i),n);case 3:if(o=e.sent,c=o.response,s=o.statusCode,!a||!(s in a)){e.next=9;break}if(200!==s){e.next=9;break}return e.abrupt("return",a[200](c.manifest));case 9:return e.abrupt("return",{response:c,statusCode:s});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,r){return P.apply(this,arguments)}function P(){return(P=(0,j.A)(S().mark((function e(r,t){var n,a,i,o;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.httpApi,a=r.logger,i=r.telemetry,e.prev=1,e.next=4,Z({httpApi:n,parameters:t});case 4:return o=e.sent,e.abrupt("return",o.response.manifest);case 8:return e.prev=8,e.t0=e.catch(1),a.warning(e.t0,{domain:"getInfrastructureMicrofrontendManifest",message:"Ошибка получения манифеста микрофронта инфраструктуры"}),i.increment("infrastructure-microfrontend-fetch-error"),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function G(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?L(Object(t),!0).forEach((function(r){(0,n.A)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var E=function(e){return e.Newbuilding="newbuilding",e.Suburban="suburban",e.DailyRent="daily",e.Urban="secondary",e}({}),T=(0,n.A)((0,n.A)((0,n.A)((0,n.A)({},E.Newbuilding,u.KZ),E.DailyRent,u.KZ),E.Suburban,u.KZ),E.Urban,u.KZ),I=(0,n.A)((0,n.A)((0,n.A)((0,n.A)({},E.Newbuilding,u.$j),E.DailyRent,u.$j),E.Suburban,u.$j),E.Urban,u.$j),U=u.KZ,V=u.$j;function H(e){var r=e.headerLinks,t=e.wrapped,n=e.profile,c=(0,_.X)().config,s=function(){var e=(0,o.d4)(k),r=(0,_.X)(),t=(0,i.useState)(null),n=(0,w.A)(t,2),a=n[0],c=n[1],s=(0,i.useState)("loading"),u=(0,w.A)(s,2),l=u[0],f=u[1],d=(0,i.useCallback)((0,j.A)(S().mark((function t(){var n;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f("loading"),t.next=3,F(r,e);case 3:null!==(n=t.sent)&&(r.microfrontendsRegistry.register(n),f("success")),f("error");case 6:case"end":return t.stop()}}),t)}))),[r,e]);return(0,i.useEffect)((function(){var e=r.config.get("microfrontendManifests.".concat(O.e));e?(c(e),f("success")):d()}),[r.config,d]),{manifest:a,fetchManifest:d,status:l}}(),u=s.manifest,l=s.fetchManifest,p=s.status,h=(0,o.d4)(x.R),m=i.useMemo((function(){var e=n?T[n]:U;return c.get(e)}),[n,c]),b=i.useMemo((function(){var e=n?I[n]:V;return c.get(e)}),[n,c]),g=i.useMemo((function(){return G(G(G({},m?{yandexApiKey:m}:{}),b?{yandexSuggestApiKey:b}:{}),n?{profile:n}:{})}),[m,b,n]);return h?(0,f.jsxs)(d,{"data-name":"InfrastructureMicrofrontendContainer",wrapped:t,headerLinks:r,children:["loading"===p&&(0,f.jsx)(y,{}),"error"===p&&(0,f.jsx)(v,{retry:l}),"success"===p&&u&&(0,f.jsx)(a.Microfrontend,{name:u.microfrontendName,image:u.imageVersion,runtime:u.runtimeName,parameters:g})]}):null}},43279:function(e,r,t){"use strict";t.d(r,{F:function(){return F},D:function(){return N}});var n=t(46916),a=t(89912),i=t(2057),o=t(13237),c=t(4390),s=t(82585),u=t(97024),l=t(40578),f=t(68034),d=t(70986),p=t(40225),h=(0,f.A)((0,f.A)((0,f.A)((0,f.A)({},p.W3.Asap,"Asap"),p.W3.Hourly,"Hourly"),p.W3.Daily,"Daily"),p.W3.Weekly,"Weekly");var m=t(6608),v=t(43076),b=["/cat.php","/kupit-","/snyat-"];function g(){var e=(0,p.O_)(),r=e.onOpen,t=e.setParams,n=(0,o.d4)(m.QZ),a=i.useMemo((function(){return n.geo.address.map((function(e){return e.shortName})).join(", ")}),[n.geo.address]),c=i.useMemo((function(){return function(e){if("undefined"==typeof document)return null;var r=document.referrer,t=e.dealType,n=e.offerType,a=e.geo.address.find((function(e){return"house"===e.type})),i={_type:"".concat(n).concat(t),engine_version:{type:"term",value:2},geo:{type:"geo",value:[{type:"house",id:a&&a.id}]}};if("rent"===t&&Object.assign(i,{for_day:{type:"term",value:e.category&&e.category.includes("daily")?"1":"!1"}}),r&&b.some((function(e){return r.includes(e)})))try{var o=JSON.parse(localStorage.getItem("__serp_jsonQuery__"));o.room&&Object.assign(i,{room:o.room})}catch(e){}return i}(n)}),[n]),s=(0,o.d4)(v.Yw);return i.useCallback((function(){var e={title:a,modalTitle:"Добавить дом в избранное",submitButtonText:"Добавить дом в избранное",jsonQuery:c,analyticsParams:{pageType:"Card",queryString:s,offerId:n.id,isFromBanner:!1}};t(e),r()}),[a,c,n.id,s,r,t])}var y=t(78685),_=function(e){!function(e){var r=e.frequency,t=e.subscribeToNews,n="From_card_save";n+="/".concat(h[r]),(0,d.ca)("event",{name:"oldevent",category:"subscription",action:"Send",label:n}),t&&(0,d.ca)("eventSite",{name:"oldevent",action:"Send",category:"subscription",label:"news_From_cat_save"})}({frequency:e.frequency,subscribeToNews:e.subscribeToNews}),window.__reloadHeader__&&window.__reloadHeader__()},x=function(){var e=g();return(0,p.cZ)(_),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.$,{"data-name":"SubscribeButtonContainer",size:"XS",theme:"fill_secondary",onClick:e,children:"Подписаться на дом"}),(0,y.jsx)(p.tD,{})]})};x.displayName="SubscribeButtonContainer";var j=function(e){return e.BargainTerms="bargainTerms",e.AboutFlat="aboutFlat",e.AboutBuilding="aboutBuilding",e.AboutSuburbanBuilding="aboutSuburbanBuilding",e.AboutLand="aboutLand",e.Commercial="commercial",e.Communications="communications",e}({}),w=t(10938),A=function(e){var r=(0,o.d4)(m.QZ),t=(0,w.HW)(r),n=(0,w.vc)(t),a=(null==e?void 0:e.id)===j.AboutBuilding;return n&&a},S=t(98791),O=t(71583),k=["houseSale","houseShareSale","cottageSale","townhouseSale"],C=t(33084),B=t(35638),M=function(){(0,d.ca)("eventSite",{name:"oldevent",category:"card",action:"click",label:"application_ts",useLastProducts:!0})},D=t(17200),Z=function(){var e=(0,D.X)().config.get("headerFrontend.suburbanTechInspectionLink");return e?(0,y.jsx)(B.z,{"data-name":"SuburbanTechInspectionButtonContainer",href:e,target:"_blank",theme:"stroke_primary",size:"XS",onClick:M,children:"Проверить состояние"}):null},N=function(){var e,r,t,i,l,f,d=(0,o.d4)(m.et)||[],p=(0,n.A)(d),h=p[0],v=p[1],b=p.slice(2),g=(e=h,r=(0,o.d4)(m.QZ),t=(0,O.W)(r),i=k.includes(r.category),l=(null==e?void 0:e.id)===j.AboutSuburbanBuilding,f=(0,o.d4)((0,m.Le)([S.GL.Moscow,S.GL.MoscowArea])),i&&!t&&l&&f),_=A(v);return h?(0,y.jsx)(a.P,{"data-name":"OfferSummaryInfoNewV2",callback:C.p,children:(0,y.jsxs)(c.C,{children:[(0,y.jsxs)(s.bn,{children:[(0,y.jsx)(s.ef,{header:h.title,actionButton:g?(0,y.jsx)(Z,{}):null,children:h.features.map((function(e,r){var t=e.label,n=e.value;return(0,y.jsx)(s.EF,{name:t,value:n},t+r)}))}),v&&(0,y.jsx)(s.ef,{header:v.title,actionButton:_?(0,y.jsx)(x,{}):null,rightGroup:!0,children:v.features.map((function(e,r){var t=e.label,n=e.value;return(0,y.jsx)(s.EF,{name:t,value:n},t+r)}))})]}),(0,y.jsx)(u.e,{}),!(null==b||!b.length)&&(0,y.jsx)(s.bn,{children:b.map((function(e,r){var t=e.title,n=e.features;return(0,y.jsx)(s.ef,{header:t,children:n.map((function(e,r){var t=e.label,n=e.value;return(0,y.jsx)(s.EF,{name:t,value:n},t+r)}))},t+r)}))})]})}):null},F=function(){var e=(0,o.d4)(m.et)||[],r=(0,n.A)(e),t=r[0],i=r[1],l=r.slice(2),f=A(i);return t?(0,y.jsx)(a.P,{"data-name":"OfferSummaryInfoDailyRent",callback:C.p,children:(0,y.jsxs)(c.C,{children:[(0,y.jsx)(u.e,{}),(0,y.jsxs)(s.bn,{children:[(0,y.jsx)(s.ef,{header:t.title,children:t.features.map((function(e,r){var t=e.label,n=e.value;return(0,y.jsx)(s.EF,{name:t,value:n},t+r)}))}),i&&(0,y.jsx)(s.ef,{header:i.title,actionButton:f?(0,y.jsx)(x,{}):null,rightGroup:!0,children:i.features.map((function(e,r){var t=e.label,n=e.value;return(0,y.jsx)(s.EF,{name:t,value:n},t+r)}))})]}),!(null==l||!l.length)&&(0,y.jsx)(s.bn,{children:l.map((function(e,r){var t=e.title,n=e.features;return(0,y.jsx)(s.ef,{header:t,children:n.map((function(e,r){var t=e.label,n=e.value;return(0,y.jsx)(s.EF,{name:t,value:n},t+r)}))},t+r)}))})]})}):null}},85871:function(e,r,t){"use strict";t.d(r,{N:function(){return f}});var n=t(79893),a=t(2057),i=t(13237);function o(e){return e.offerData.offer.isUnique||!1}var c=t(70986);var s=t(29710),u=t(78685),l="https://www.cian.ru/legal-documents/tolko_na_cian_0";function f(){var e=(0,i.d4)(o),r=a.useCallback((function(){(0,c.ca)("eventSite",{name:"oldevent",category:"card",action:"hover",label:"unique_content_popup",useLastProducts:!0})}),[]);return e?(0,u.jsx)(s.b,{"data-name":"OnlyCianLabelNewContainer",labelText:"Только на Циан",tooltipTitle:"Только на Циан",tooltipText:"За последние сутки мы не нашли этот объект в открытом доступе на других агрегаторах",color:"primary_100",backgroundColor:"primary_10",icon:(0,u.jsx)(n.e,{color:"primary_100"}),link:l,onOpen:r}):null}},66988:function(e){e.exports={wrapper:"a10a3f92e9--wrapper--je9uq",icon:"a10a3f92e9--icon--q_vp8",title:"a10a3f92e9--title--zyDrK",message:"a10a3f92e9--message--LGHd_"}},26942:function(e){e.exports={wrapper:"a10a3f92e9--wrapper--rluIM"}},944:function(e){e.exports={wrapper:"a10a3f92e9--wrapper--Yxj5f",header:"a10a3f92e9--header--yidEH",links:"a10a3f92e9--links--p0Nb1"}}}]);
//# sourceMappingURL=chunk.1413210239a10a7f848e.js.map