(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[13290],{111349:(e,t,r)=>{var a=r(308645),i=r(260278)(a);i.push([e.id,'@keyframes aTEaz{0%{background-position:150%}to{background-position:-50%}}.bbd_q{position:relative}.aSI4V{position:absolute;top:50%;z-index:3}.aSI4V.Zod20{right:0;transform:translate(50%,-50%)}.aSI4V.rNy7o{left:0;transform:translate(-50%,-50%)}.BewXI{position:relative;z-index:1}.xFrf5{left:0;right:0}.xFrf5,.xFrf5:after,.xFrf5:before{bottom:0;pointer-events:none;position:absolute;top:0}.xFrf5:after,.xFrf5:before{content:"";width:36px;z-index:2}.xFrf5.rNy7o:before{background:linear-gradient(270deg,transparent,currentColor);left:0}.xFrf5.Zod20:after{background:linear-gradient(270deg,currentColor,transparent);right:0}.j6sWS{-webkit-margin-before:unset;-webkit-margin-after:unset;-webkit-padding-start:unset;-ms-overflow-style:none;display:flex;list-style-type:none;margin-block-end:unset;margin-block-start:unset;overflow-x:auto;overflow:-moz-scrollbars-none;padding-inline-start:unset;scrollbar-width:none}.j6sWS::-webkit-scrollbar{display:none}',""]),i.locals={root:"bbd_q",arrow:"aSI4V",right:"Zod20",left:"rNy7o",content:"BewXI",fade:"xFrf5",carousel:"j6sWS",loading:"aTEaz"},e.exports=i},899919:(e,t,r)=>{var a=r(308645),i=r(260278)(a);i.push([e.id,"@keyframes LbxMM{0%{background-position:150%}to{background-position:-50%}}.r96Gq:last-child{margin-right:0!important}._SMwB{white-space:nowrap}",""]),i.locals={noLastMargin:"r96Gq",noWrap:"_SMwB",loading:"LbxMM"},e.exports=i},511702:(e,t,r)=>{var a=r(308645),i=r(260278)(a);i.push([e.id,'@keyframes h0DH_{0%{background-position:150%}to{background-position:-50%}}.brwxS{box-shadow:inset 0 -.0625rem 0 #d2d2d2;margin:0 auto;max-width:75.125rem}.ZktF9{display:flex}.yOvS2{font-size:.875rem;line-height:1.5rem;padding:.75rem;text-align:center}._1l3dB{color:#4f4f4f;cursor:pointer;text-decoration:none;transition:color .2s}._1l3dB:hover{border-bottom:.125rem solid #faa88e;color:#333}.I4vci{border-bottom:.125rem solid #f15044;color:#333;cursor:default;font-weight:500;z-index:2}.aSqFX{position:relative}.aSqFX:after{animation:zpd4I .9s steps(4) infinite;content:"\\2026";overflow:hidden;position:absolute;right:0;top:50%;transform:translateY(-50%);width:0}@keyframes zpd4I{to{width:1.25em}}',""]),i.locals={root:"brwxS",rootTabs:"ZktF9",rootTab:"yOvS2",rootTabAnalog:"_1l3dB",rootTabDefault:"I4vci",rootCountLoading:"aSqFX",ellipsis:"zpd4I",loading:"h0DH_"},e.exports=i},316411:(e,t,r)=>{"use strict";r.d(t,{A:()=>F});var a=r(233010),i=(r(244962),r(582367),r(63696)),o=r(471633),n=r.n(o),s=r(146638),l=r(140527),d=r(637727);const c=i.createContext({});r(820518),r(696054);var m=e=>({left:!!e&&e.scrollLeft>0,right:!!e&&e.scrollWidth>e.scrollLeft+e.offsetWidth}),u=e=>Array.from(e).map((e=>(e=>{var t=e.currentStyle||window.getComputedStyle(e);return(parseInt(t.marginLeft,10)||0)+e.getBoundingClientRect().width+(parseInt(t.marginRight,10)||0)})(e))),_=(e,t)=>{var r=0,a=0;return e.some((e=>r+(a=e)>=t||(r+=a,!1))),[r,a]},f=(e,t)=>{var{clientWidth:r,scrollLeft:a}=e,i=r+a,[o]=_(t,i);return o},p=(e,t)=>{var{clientWidth:r,scrollLeft:a}=e,[i,o]=_(t,a),n=a+(o-(a-i))-r;return n>0?n:0},g=(e,t)=>{var r=u(e.children),a=(null==r?void 0:r.slice(0,t)).reduce(((e,t)=>e+t),0);e.scrollLeft=a},v=r(268102),w=r(708257),h=r.n(w);const x=e=>{var{children:t,className:r="",noLastMargin:a,hasItemGap:o=!0,noWrapItems:l=!0}=e,{aboveTheFold:d,gap:m}=(0,i.useContext)(c);return(0,s.A)(h(),d),i.createElement("li",(0,v.A)({className:n()(r,{[h().noWrap]:l,[h().noLastMargin]:a})},o?{style:{marginRight:m}}:{}),t)};var b=r(811707),y=r.n(b),A="scrolling_carousel_left_arrow",k="scrolling_carousel_right_arrow",C=e=>{var{aboveTheFold:t=!1,as:r="nav",carouselClassName:o="",compensateAgrid:_=!1,hideArrows:v=!1,gap:w="4px",checkedItemIndex:h,showCheckedItem:x,arrowsDisabled:b,children:C,onScroll:F,onScrollLeft:L,onScrollRight:q,fadeColor:I,onTouchEnd:N,className:S,contentClassName:T,withArrows:z=!0}=e;(0,s.A)(y(),t);var E=(0,i.useMemo)((()=>({aboveTheFold:t,gap:w})),[t,w]),D=(0,i.useRef)(null),[H,M]=(0,i.useState)(m(D)),[W,j]=(0,i.useState)([]),B=(0,i.useCallback)((e=>{var t;null!==e&&(Object.defineProperty(D,"current",{value:e}),j(u(null===(t=D.current)||void 0===t?void 0:t.children)),x?((e,t)=>{var r=e.children[t];if(r){var a=r.offsetWidth+r.offsetLeft-(e.offsetWidth+e.scrollLeft);a>0&&(e.scrollLeft+=a+1);var i=e.scrollLeft-r.offsetLeft;i>0&&(e.scrollLeft-=i)}})(D.current,h):h&&g(D.current,h))}),[D,h]);(0,i.useEffect)((()=>{var e=D.current,t=()=>{M(m(D.current)),null==F||F()},r=()=>{M(m(D.current))};return M(m(D.current)),e.addEventListener("scroll",t),window.addEventListener("resize",r),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",r)}}),[F]);var P=(0,i.useCallback)((()=>{var e;j(u(null===(e=D.current)||void 0===e?void 0:e.children)),M(m(D.current)),h&&!x&&g(D.current,h)}),[h,x]);(0,l.A)(D.current,P);var O=(0,i.useCallback)(((e,t)=>{((e,t,r,a)=>{for(var i,o,n=e[a],s=["ms","moz","webkit","o"],l=0;l<s.length&&!window.requestAnimationFrame;++l)window.requestAnimationFrame=window[s[l]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[s[l]+"CancelAnimationFrame"]||window[s[l]+"CancelRequestAnimationFrame"];var d=t-n,c=s=>{void 0===i&&(i=s);var l=s-i,m=(e=>1-(1-e)**4)(l/r),u=n+d*Math.min(m,1);e[a]=u,e[a]!==t?l<r&&(o=requestAnimationFrame(c)):cancelAnimationFrame(o)};o=requestAnimationFrame(c)})(e,t(e,W),500,"scrollLeft")}),[W]),R=(0,i.useCallback)((()=>{O(D.current,p),null==L||L()}),[O,L]),V=(0,i.useCallback)((()=>{O(D.current,f),null==q||q()}),[O,q]);return(0,a.A)(c.Provider,{value:E},void 0,(0,a.A)("div",{"data-testid":"scrolling_carousel",className:n()(y().root,S),onTouchEnd:N},void 0,z&&i.createElement(i.Fragment,null,(0,a.A)("div",{className:n()(y().arrow,y().left,{"visually-hidden":v||!(null!=H&&H.left)})},void 0,(0,a.A)(d.A,{dataTestIdValue:A,onClick:b?()=>{}:R,direction:"left",size:"s",disabled:b||!(null!=H&&H.left),"aria-label":"Предыдущий"})),(0,a.A)("div",{className:n()(y().arrow,y().right,{"visually-hidden":v||!(null!=H&&H.right)})},void 0,(0,a.A)(d.A,{dataTestIdValue:k,onClick:b?()=>{}:V,direction:"right",size:"s",disabled:b||!(null!=H&&H.right),"aria-label":"Следующий"}))),(0,a.A)("div",{className:n()(y().content,T)},void 0,!!I&&(0,a.A)("div",{"aria-hidden":"true",style:{color:I},className:n()({[y().fade]:(null==H?void 0:H.left)||(null==H?void 0:H.right),[y().left]:null==H?void 0:H.left,[y().right]:null==H?void 0:H.right})}),i.createElement(r,{ref:B,"aria-live":"polite",className:n()(y().carousel,{agrid_compensator:_},o)},C))))};C.displayName="ScrollingCarousel",C.Item=x;const F=C},938919:(e,t,r)=>{"use strict";r.d(t,{I:()=>a.A});var a=r(316411)},84623:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var a=r(233010),i=r(63696),o=r(471633),n=r.n(o),s=r(450449),l=r(853624),d=r(608367),c=r(146638),m=r(219616),u=r(516756),_=r(334977),f=r(354581),p=r(516791),g=r(533036),v=r(938919),w=r(182076),h=r.n(w);const x=e=>{var t,r,{defaultText:o,excludeTab:w}=e;(0,c.A)(h());var x=(0,m.A)(),b=(0,d.A)(),y=(0,u.A)();(0,i.useEffect)((()=>{"flats"!==w&&b("analoguesFlats"),"newHouses"!==w&&b("analoguesNewHouses"),"cottages"!==w&&b("analoguesCottages"),"newcottages"!==w&&b("analoguesNewcottages"),"commerce"!==w&&b("analoguesCommerceNewHouses")}),[]);var A=(0,s.d4)((e=>e.lists.get("realtySellClasses"))),k=(0,s.d4)((e=>e.objects.getIn(["filterrules","withNewCottagesLink"]))),C=(0,s.d4)((e=>e.filters.getIn([w,"newcottages"===w||"newHouses"===w?"fullCount":"count"])))||0,F=(null===(t=(0,s.d4)((e=>e.filters.getIn([w,"querySerializedObject"]))))||void 0===t?void 0:t.toJS())||"",L={flats:(0,s.d4)((e=>e.filters.get("analoguesFlats"))),newHouses:(0,s.d4)((e=>e.filters.get("analoguesNewHouses"))),cottages:(0,s.d4)((e=>e.filters.get("analoguesCottages"))),townhouses:(0,s.d4)((e=>e.filters.get("analoguesTownhouses"))),newcottages:(0,s.d4)((e=>e.filters.get("analoguesNewcottages"))),commerceNewhouses:(0,s.d4)((e=>e.filters.get("analoguesCommerceNewHouses")))};return i.createElement(i.Fragment,null,(0,a.A)("div",{className:h().root},void 0,(0,a.A)(v.I,{aboveTheFold:!0,gap:"4px"},void 0,o&&(0,a.A)(v.I.Item,{},"default",(0,a.A)("div",{className:n()(h().rootTab,h().rootTabDefault)},void 0,(0,a.A)("div",{},void 0,o+" ("+(0,p.NF)(C)+")"))),null===(r=(e=>[{type:"flats",page:"realty",event:"flats/realty",title:e?"apartments":"secondary_property",desc:e?"":"apartments_for_the_same_price",textDecl:["flat","flats","of_flats"],link:"/realty/",addLink:"?",allowedFilterParams:{cottages:{price_min:"price_min",price_max:"price_max",area_land_min:"square_min",area_land_max:"square_max",district_id:"district_id"},newHouses:{price_min:"price_min",price_max:"price_max",square_min:"square_min",square_max:"square_max",district_id:"district_id",street_id:"street_id",newcomplex_id:"newcomplex_id",rooms:"rooms",studio:"studio"},newcottages:{price_min:"price_min",price_max:"price_max",area_land_min:"square_min",area_land_max:"square_max",district_id:"district_id"}}},{type:"newHouses",page:"zastr",event:"flats/zastr",title:e?"new_buildings_from_builder":"newhouses",desc:e?"new_buildings_for_the_same_price":"",textDecl:["flat","flats","of_flats"],link:"/zastr/",addLink:"?",allowedFilterParams:{cottages:{price_min:"price_min",price_max:"price_max",area_land_min:"square_min",area_land_max:"square_max",district_id:"district_id"},flats:{price_min:"price_min",price_max:"price_max",square_min:"square_min",square_max:"square_max",district_id:"district_id",street_id:"street_id",newcomplex_id:"newcomplex_id",rooms:"rooms",studio:"studio"},newcottages:{price_min:"price_min",price_max:"price_max",area_land_min:"square_min",area_land_max:"square_max",district_id:"district_id"}}},{type:"cottages",page:"realty_out",event:"houseland/realty",title:"houses_and_parcels",desc:"homes_for_the_same_price",textDecl:["house","of_house","of_houses"],link:"/realty_out/?type[]=house&type[]=cottage&type[]=garden&type[]=land&type[]=townhouse",addLink:"&",allowedFilterParams:{flats:{price_min:"price_min",price_max:"price_max",square_min:"area_land_min",square_max:"area_land_max",district_id:"district_id"},newHouses:{price_min:"price_min",price_max:"price_max",square_min:"area_house_min",square_max:"area_house_max",district_id:"district_id"},newcottages:{price_min:"price_min",price_max:"price_max",area_land_min:"area_land_min",area_land_max:"area_land_max",trakt_id:"trakt_id"}}},{type:"newcottages",page:"newcottages",event:"cottages/newcottages",title:"new_cottage_settlements",desc:"land_and_houses_in_newcottages_for_same_price",textDecl:["plot","of_plot","plots"],link:"/newcottages/",addLink:"?",allowedFilterParams:{cottages:{price_min:"price_min",price_max:"price_max",area_land_min:"area_land_min",area_land_max:"area_land_max",district_id:"district_id",trakt_id:"trakt_id"}}},{type:"commerceNewhouses",page:"commerce",event:"newHouses/commerce",title:"commerce_newhouses",desc:"new_commerce_for_the_same_price",textDecl:["offer","offers","of_offers"],link:"/commerce/?type[]=office_newhouses",addLink:"?",allowedFilterParams:{newHouses:{price_min:"price_min",price_max:"price_max",square_min:"square_min",square_max:"square_max",district_id:"district_id",street_id:"street_id",floor_min:"floor_min",floor_max:"floor_max",floors_min:"floors_min",floors_max:"floors_max",geo_polygon:"geo_polygon","media->>'photos'":"media->>'photos'","media->>'layouts'":"media->>'layouts'","media->>'videos'":"media->>'videos'"}}}].filter(Boolean))(y).filter((e=>e.type!==w&&((null==A?void 0:A.find((t=>t.get("buttonId")===e.page)))||"newcottages"===e.type&&k))))||void 0===r?void 0:r.map(((e,t)=>{var r=L[e.type]||new l.Map,i=r.get("isLoading"),o=r.get("count"),s=(0,p.NF)(null!=o?o:0);if(!o&&!i)return null;var d=r.get("querySerialized");d||(d=F&&Object.getOwnPropertyNames(F).map((t=>{var r=e.allowedFilterParams[w];if(r&&t in r){var a=F[t],i=e.allowedFilterParams[w][t];return Array.isArray(a)?a.map((e=>i+"[]="+e)).join("&"):i+"="+a}return null})).filter((e=>!!e)).join("&"));var c=e.textDecl.map((e=>x(e,"l")));return(0,a.A)(v.I.Item,{},t,(0,a.A)(g.A,{href:e.link+(d?""+e.addLink+d:"")},void 0,(0,a.A)("div",{className:n()(h().rootTab,h().rootTabAnalog),onClick:()=>{return t=e.event,(0,f.Fj)("united_vydacha",{type_tab_united_vydacha:t});var t}},void 0,(0,a.A)("div",{className:n()({[h().rootCountLoading]:i}),title:x(e.desc)+" "+(i?"...":"("+s+" "+(0,_.A)(o,c)+")")},void 0,x(e.title)," ",!i&&"("+s+")"))))})))))}},608367:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(63696),i=r(450449),o=r(258162);const n=()=>{var e=(0,i.wA)(),t=(0,i.Pj)();return(0,a.useCallback)((function(r,a){if(void 0===a&&(a=null),r){var{settings:{datamodels:i},lists:n,filters:s}=t.getState();(Array.isArray(r)?r:[r]).forEach((t=>{var r=a||i[t];n.get(t)||s.hasIn([t,"count"])||s.hasIn([t,"isError"])||s.getIn([t,"isLoading"])||!r||r.autoLoad||setTimeout((()=>e((0,o.c$)([t],r))),0)}))}}),[e,t])}},811707:(e,t,r)=>{var a=r(111349),i=r(484940),o="string"==typeof a?[[e.id,a,""]]:a;(t=e.exports=a.locals||{})._getContent=function(){return o},t._getCss=function(){return""+a},t._insertCss=function(e){return i(o,e)}},708257:(e,t,r)=>{var a=r(899919),i=r(484940),o="string"==typeof a?[[e.id,a,""]]:a;(t=e.exports=a.locals||{})._getContent=function(){return o},t._getCss=function(){return""+a},t._insertCss=function(e){return i(o,e)}},182076:(e,t,r)=>{var a=r(511702),i=r(484940),o="string"==typeof a?[[e.id,a,""]]:a;(t=e.exports=a.locals||{})._getContent=function(){return o},t._getCss=function(){return""+a},t._insertCss=function(e){return i(o,e)}}}]);