(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1746],{53120:function(e,t,n){"use strict";n.d(t,{d:function(){return g}});var r=n(57437),o=n(61994),i=n(2265),s=n(66153),a=n(71380),l=n.n(a);let c=e=>{let{footer:t,hasScroll:n,className:i}=e;return(0,r.jsx)("div",{className:(0,o.Z)(l().footer,{[l().hasScroll]:n},i),children:"function"==typeof t?t():t})};var u=n(47171),d=n.n(u);let _=e=>{let{onClose:t,onContentClick:n,children:s,title:a,rowTitle:l,titleAlign:u,isCloseable:_,footer:p,closeButton:h,isOpen:f,contentClassName:m,footerClassName:v,contentStyle:g,width:C}=e,w=(0,i.useRef)(null),S=(0,i.useRef)(null),[x,y]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;if(!S.current||!w.current)return;let t=(null==S?void 0:null===(e=S.current)||void 0===e?void 0:e.getBoundingClientRect().top)||0,n=null==w?void 0:w.current,r=()=>{let e=null==S?void 0:S.current;e&&y(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",r,!1),()=>{null==n||n.removeEventListener("scroll",r,!1)}},[]);let j=g||C?{width:C,...g||{}}:void 0;return(0,r.jsxs)("div",{ref:w,style:j,className:(0,o.Z)(d().container,{[d().open]:f,[d().close]:!f},m),children:[a||_?(0,r.jsxs)("div",{className:(0,o.Z)(d().header,{[d().rowHeader]:l}),children:[_?h?"function"==typeof h?h():h:(0,r.jsx)("button",{className:d().controlContainer,onClick:t,children:(0,r.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null,a?(0,r.jsx)("h3",{className:(0,o.Z)(d().title,{[d().center]:"center"===u,[d().left]:"left"===u,[d().right]:"right"===u}),children:a}):null]}):null,(0,r.jsx)("div",{ref:S,className:d().content,onClick:n,children:s}),p&&(0,r.jsx)(c,{className:(0,o.Z)(d().footer,v),footer:p,hasScroll:x})]})};var p=n(17868),h=n(61753),f=n.n(h);let m=e=>{let{onClose:t,isOpen:n,children:a,withDisabledScroll:l,className:c,...u}=e,d=(0,i.useCallback)(e=>e.stopPropagation(),[]);return(0,p.o)(n&&l),(0,r.jsxs)("div",{"data-portal":!0,className:(0,o.Z)(f().window,c),children:[(0,r.jsx)(s.L,{onClose:t,isOpen:n,delay:0}),(0,r.jsx)(_,{onContentClick:d,onClose:t,isOpen:n,...u,children:a})]})};var v=n(73564);let g=e=>{let{isOpen:t=!1,children:n,titleAlign:o="center",isCloseable:i=!0,withDisabledScroll:s=!0,...a}=e,{mounted:l}=(0,v.b)({opened:t});return l?(0,r.jsx)(m,{titleAlign:o,isCloseable:i,isOpen:t,withDisabledScroll:s,...a,children:n}):null};g.displayName="Drawer"},90375:function(e,t,n){"use strict";n.d(t,{p:function(){return C}});var r=n(57437),o=n(80684),i=n(35563),s=n(75461),a=n(61994),l=n(2265),c=n(13466),u=n(55843),d=n.n(u);let _=e=>{let{isMobile:t,onChangeSort:n,isIncreaseSort:i}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("p",{className:(0,a.Z)(d().sortTypeHead),children:[(0,r.jsx)("button",{style:{marginLeft:"0px",marginRight:t?"0px":"8px"},className:(0,a.Z)(d().sortTypeButton),onClick:n,children:(0,r.jsx)(o.IconFdsSortDescendingO,{className:(0,a.Z)(!i&&d().iconInverted)})}),"Сортировать"]})})},p=(0,l.memo)(e=>{let{isMobile:t,onChangeSort:n,isIncreaseSort:o,onChangeSortType:i,sortTypeItems:l,sortTypeValue:c,isNewSortRadios:u}=e;return(0,r.jsxs)(r.Fragment,{children:[!u&&t&&(0,r.jsx)(_,{onChangeSort:n,isMobile:t,isIncreaseSort:o}),(0,r.jsxs)("div",{className:(0,a.Z)(d().sortTypeContainer,u&&d().newSortRadioSortTypeContainer),onClick:e=>e.stopPropagation(),children:[u&&(0,r.jsx)(_,{onChangeSort:n,isMobile:t,isIncreaseSort:o}),l.map(e=>(0,r.jsx)("div",{"data-qa":"".concat(e.value,"_radio"),className:d().sortType,children:(0,r.jsx)(s.Y8,{onChange:()=>{i(e.value)},name:"".concat(e.value,"_radio"),label:e.label,checked:e.value===c,className:d().sortTypeRadio,value:e.value})},e.value))]})]})});p.displayName="SortRadios";var h=n(49689);let f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}},m=e=>{let{length:t,isActive:n=!0,gap:r=12,rows:o=1}=e,[i,s]=(0,l.useState)(!1),a=(0,l.useRef)([]),c=(0,l.useRef)(null),u=(0,l.useRef)(null),d=(0,l.useRef)(()=>null),_=(0,l.useRef)(0),[p,h]=(0,l.useState)(t),m=(0,l.useRef)(f(700)),v=(0,l.useCallback)(()=>{s(!1),setTimeout(()=>{var e,n;let i=null!==(n=null===(e=u.current)||void 0===e?void 0:e.getBoundingClientRect().width)&&void 0!==n?n:0,l=1,c=0,d=0;for(let e=0;e<=a.current.length;e++){let t=a.current[e];if(!t)continue;let n=t.getBoundingClientRect().width+r;if(n>=i&&(n=i),(c+=n)>=i*l){if(l>=o){c-=n;break}c>i*l&&(c+=i*l-(c-n)),l++}d++}s(t>d),h(d),_.current=c})},[r,t,o]);return(0,l.useEffect)(()=>{if(window.removeEventListener("resize",d.current),n)return d.current=()=>m.current(v),d.current(),window.addEventListener("resize",d.current),()=>window.removeEventListener("resize",d.current)},[v,n]),(0,l.useEffect)(()=>{if(i){var e,t,n,s;let i=(null!==(n=null===(e=u.current)||void 0===e?void 0:e.getBoundingClientRect().width)&&void 0!==n?n:0)*o,l=(null!==(s=null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==s?s:0)+_.current-i;l>0&&h(e=>{let t=0;for(let n=e;n>=0;n--){let e=a.current[n],o=null==e?void 0:e.getBoundingClientRect().width;if(e&&o&&(t++,(l-=o+r)<=0))break}return e-t})}},[r,i,o]),{isOverflow:i,minLength:p,chipsRef:a,buttonRef:c,containerRef:u,handleCompute:v}};var v=n(74737),g=n.n(v);let C=(0,l.memo)(e=>{let{isClose:t,chips:n,onClickParams:u,isIncreaseSort:d,onChangeIncreaseSort:_,sortTypeItems:f,sortTypeValue:v,onChangeSortType:C,isFixed:w,portalId:S,onClickChip:x,className:y,isNewSortRadios:j}=e,R=(0,s.aF)("m"),{containerRef:N,isOverflow:T,minLength:L,handleCompute:k}=m({length:n.length,isActive:!R}),[b,F]=(0,l.useState)(!1),E=R?L:4,D=R?T:b,[I,B]=(0,l.useState)(!1),[M,Z]=(0,l.useState)(!1),[z,P]=(0,l.useState)(!1),A=n.length-E,H=(0,l.useMemo)(()=>[{id:"overflow",label:"".concat(I?"Скрыть":"Ещё"," ").concat(A)}],[I,A]),O=(0,l.useCallback)(()=>{if(R){Z(e=>!e);return}B(e=>!e)},[R]),U=(0,l.useRef)(void 0);(0,l.useEffect)(()=>{let e=U.current;if(void 0===t)return;let n=R?M:I;if(!n||e===t){U.current=t;return}(e!==t||n)&&(O(),U.current=t)},[O,t,R,M,I]);let W=(0,l.useCallback)(()=>{Z(!1),setTimeout(()=>null==u?void 0:u(),300)},[u]),q=()=>P(e=>!e),Q=(0,l.useCallback)(()=>null==_?void 0:_(!d),[d,_]);(0,l.useEffect)(()=>{R&&(F(!1),F(n.length>4))},[n.length,R]),(0,l.useEffect)(()=>{k()},[k,w]);let J=(0,r.jsx)("div",{className:(0,a.Z)(!R&&j&&g().sortTypeDesktop),children:(0,r.jsx)(p,{isMobile:R,isIncreaseSort:d,onChangeSort:Q,onChangeSortType:C,sortTypeItems:f,sortTypeValue:v,isNewSortRadios:j,portalId:S})}),K=f.find(e=>e.value===v);return(0,r.jsxs)("div",{className:(0,a.Z)(g().filter,j&&g().newSortRadiosFilter,w&&g().stuck,y),children:[(0,r.jsx)(i.W2,{className:g().mainContainer,children:(0,r.jsxs)("div",{className:g().container,children:[(0,r.jsxs)("div",{className:(0,a.Z)(g().chipsContainer,!I&&g().chipsContainerClosed),ref:N,children:[(0,r.jsx)(s.cL,{size:"l",onChipClick:e=>null==x?void 0:x(e),className:g().chips,variant:"secondary",chips:n.slice(0,R||I||!D?n.length:E)}),!R&&T&&A>0&&(0,r.jsx)(s.cL,{size:"l",className:g().chips,variant:"secondary",chips:H,onChipClick:O})]}),(0,r.jsxs)("div",{className:g().actionsWrapper,children:[(0,r.jsxs)("button",{className:(0,a.Z)(g().action,g().actionButton),onClick:u,children:[(0,r.jsx)(o.IconFilter,{size:22,className:g().icon}),(0,r.jsx)("span",{className:g().actionText,children:"Все параметры"})]}),(0,r.jsxs)("div",{className:g().action,children:[(0,r.jsx)("button",{className:(0,a.Z)(g().icon,g().iconButton,!d&&g().iconInverted),onClick:R&&w?q:Q,children:(0,r.jsx)(o.IconFdsSortDescendingO,{size:22})}),(0,r.jsxs)(s.Lt,{opened:!R&&z,placement:"bottom-end",onToggle:q,children:[(0,r.jsx)(s.WA,{children:(0,r.jsx)("span",{className:(0,a.Z)(g().actionText,g().actionButton),"data-qa":"".concat(v,"_order"),children:(null==K?void 0:K.shortLabel)||(null==K?void 0:K.label)||"Сортировка"})}),(0,r.jsx)(s.Nv,{children:J})]})]})]})]})}),(0,r.jsxs)(c.h,{id:S,children:[(0,r.jsx)(h.j,{footer:(0,r.jsx)(s.zx,{className:g().modalButton,onClick:W,label:"Изменить параметры"}),className:(0,a.Z)(g().modal,j&&g().newSortRadioModal),isOpen:M,onClose:O,children:(0,r.jsx)("div",{className:g().chipsContainerModal,children:(0,r.jsx)(s.cL,{chips:n,className:g().chips,size:"l",variant:"secondary",onChipClick:W})})}),(0,r.jsx)(h.j,{className:(0,a.Z)(g().modal,j&&g().newSortRadioModal),isSmallPopup:j,onClose:q,isOpen:!!(z&&R),footer:(0,r.jsx)(s.zx,{size:j?"s":"m",className:g().modalButton,label:"Применить",onClick:q}),children:J})]})]})});C.displayName="ListFilter"},91672:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(57437),o=n(33145),i=n(2265),s={src:"/directory/_next/static/media/bank-placeholder.d924b4ac.svg",height:108,width:108,blurWidth:0,blurHeight:0},a=n(55089),l=n(24269);let c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.$.bank,r=n===l.$.insurance?"sk":n,o="bank"===r&&"0"!==String(t)[0]?"0".concat(t):String(t);return"".concat(e,"/mp-assets/images/").concat(r,"/logo-brandmark-").concat(r,"-").concat(o,".svg")},u=e=>{let{env:t}=(0,a.k)(),n=c(t.NEXT_PUBLIC_S3_ASSETS,e.url,e.type),[l,u]=(0,i.useState)(n);return(0,i.useEffect)(()=>{u(n)},[n]),(0,r.jsx)(o.default,{className:e.className,src:l,width:e.width,height:e.height,alt:e.companyName?"Логотип ".concat(e.companyName):"logo",unoptimized:!0,onError:()=>u(s),suppressHydrationWarning:!0})}},60816:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(57437);let o=e=>{let{data:t}=e;return(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}},66617:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var r=n(57437),o=n(55089),i=n(5864),s=n.n(i);let a=e=>{let{page:t=1,totalPage:n=1,url:i}=e,{env:a}=(0,o.k)(),l=a.NEXT_PUBLIC_BASE_URL;return(0,r.jsxs)("div",{className:s().pagination,children:[t>1&&(0,r.jsxs)("a",{href:"".concat(l).concat(i,"?page=").concat(t-1),children:["Предыдущая страница - ",t-1]}),t<n&&(0,r.jsxs)("a",{className:s().paginationNext,href:"".concat(l).concat(i,"?page=").concat(t+1),children:["Следующая страница - ",t+1]})]})}},45274:function(e,t,n){"use strict";n.d(t,{EnvProvider:function(){return i},F:function(){return o}});var r=n(57437);let o=(0,n(2265).createContext)(null),i=e=>{let{children:t,env:n}=e;return(0,r.jsx)(o.Provider,{value:{env:n},children:t})}},55089:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2265),o=n(45274);let i=()=>{let e=(0,r.useContext)(o.F);if(!e)throw Error("useEnv должен быть внутри EnvProvider");return e}},31893:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(44789),o=n(2265),i=n(38856);let s=e=>{let{initialRegion:t,initialTown:n}=e,s=(0,r.a)(),[{region:a,town:l},c]=(0,o.useState)({region:t,town:n});return(0,o.useEffect)(()=>{let e=i.A.getItem("user_region"),r=i.A.getItem("user_town"),o=t||e||null,a=n||r||null;c({region:o,town:a}),s.selectCity(o,a),document.addEventListener("onRegionChange",e=>{var t,n;c({region:null==e?void 0:null===(t=e.detail)||void 0===t?void 0:t.region,town:null==e?void 0:null===(n=e.detail)||void 0===n?void 0:n.town})})},[t,n]),{region:a,town:l,handleOpenCityModal:()=>{s.handleToggleModal(!0)}}}},33346:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});let r=(e,t,n,r)=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((o,i)=>({"@type":"ListItem",position:i+1,name:"".concat(r&&2===i?"⭐ ":"").concat(o.label),item:t+(i===e.length-1?n:o.href)}))})},36773:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r=e=>"object"==typeof e&&null!==e&&"bic"in e&&e.bic?String(e.bic):null},75552:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(24269);let o=e=>{let{data:t,type:n}=e;if(!t)return[];switch(n){case r.$.mfo:return t.mfos;case r.$.insurance:return t.insurance_companies;default:return t.companies}}},38856:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=r.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch(t){console.warn("invalid object in localStorage by key: ".concat(e))}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}}},84886:function(e,t,n){"use strict";function r(e,t){let n=Date.now();return function(){Date.now()>=n+t&&(e(),n=Date.now())}}n.d(t,{P:function(){return r}})},47171:function(e){e.exports={container:"DrawerContent_container__rR8LI",open:"DrawerContent_open__M84fe","slide-up":"DrawerContent_slide-up__PxR16",close:"DrawerContent_close__Cyxv9","slide-out":"DrawerContent_slide-out__U3MRA",header:"DrawerContent_header__Ur_YT",rowHeader:"DrawerContent_rowHeader__2Z3R3",title:"DrawerContent_title__QG5Cm",center:"DrawerContent_center__k_OfP",right:"DrawerContent_right__5FHfz",left:"DrawerContent_left__J0wEA",controlContainer:"DrawerContent_controlContainer__FAnIq",content:"DrawerContent_content__ECzp5",footer:"DrawerContent_footer__SVPa7"}},71380:function(e){e.exports={footer:"DrawerFooter_footer__0AgTl",hasScroll:"DrawerFooter_hasScroll__Qk185"}},61753:function(e){e.exports={window:"DrawerLayout_window__wpjeD"}},74737:function(e){e.exports={filter:"ListFilter_filter__E5PHL",newSortRadiosFilter:"ListFilter_newSortRadiosFilter__2dflS",sortTypeDesktop:"ListFilter_sortTypeDesktop__Yef7U",container:"ListFilter_container__Molcd",modal:"ListFilter_modal__0Q3R9",newSortRadioModal:"ListFilter_newSortRadioModal__5K1jd",modalButton:"ListFilter_modalButton__0Q3M3",chipsContainerModal:"ListFilter_chipsContainerModal__h_MAJ",chipsContainer:"ListFilter_chipsContainer__jKEfP",chips:"ListFilter_chips__bWY2z",chipsContainerClosed:"ListFilter_chipsContainerClosed__RmbSt",actionsWrapper:"ListFilter_actionsWrapper__87DPh",action:"ListFilter_action__AVlfa",actionText:"ListFilter_actionText__6vJqS",iconButton:"ListFilter_iconButton__nt1oX",actionButton:"ListFilter_actionButton__hRj9y",icon:"ListFilter_icon__G3naU",iconInverted:"ListFilter_iconInverted__zfVvQ",stuck:"ListFilter_stuck__CJKpN",mainContainer:"ListFilter_mainContainer__13FFs",chip:"ListFilter_chip__QBtZg"}},55843:function(e){e.exports={sortTypeContainer:"SortRadios_sortTypeContainer__rw38k",newSortRadioSortTypeContainer:"SortRadios_newSortRadioSortTypeContainer__gAisM",divider:"SortRadios_divider__lEkM5",sortType:"SortRadios_sortType__Qj4aq",sortTypeRadio:"SortRadios_sortTypeRadio__xtm9_",sortTypeTooltip:"SortRadios_sortTypeTooltip__Mroph",sortTypeTrigger:"SortRadios_sortTypeTrigger__rCqZy",sortTypeHead:"SortRadios_sortTypeHead__1jHka",newSortRadioSortTypeHead:"SortRadios_newSortRadioSortTypeHead___pSLe",sortTypeButton:"SortRadios_sortTypeButton__O_Kyq",newSortRadioSortTypeButton:"SortRadios_newSortRadioSortTypeButton__7MmTc"}},5864:function(e){e.exports={pagination:"SeoPagination_pagination__dKYUO"}}}]);