(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[114],{3559:function(e,t,n){Promise.resolve().then(n.bind(n,2778)),Promise.resolve().then(n.bind(n,1258))},7493:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});let o=300},6153:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var o=n(7437),i=n(2265),s=n(1994),r=n(7493),l=n(8582),a=n.n(l);let c=e=>{let{onClose:t,onToucheMove:n,isOpen:l,delay:c=r.z}=e,u=(0,i.useRef)(null),d=(0,i.useCallback)(()=>{t&&(u.current=setTimeout(()=>{t()},c))},[c,t]),p=(0,i.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,i.useEffect)(()=>(l&&window.addEventListener("keydown",p),()=>{u.current&&clearTimeout(u.current),window.removeEventListener("keydown",p)}),[l,p]),(0,o.jsx)("div",{className:(0,s.Z)(a().overlay,{[a().open]:l,[a().close]:!l}),onTouchStart:n,onClick:d})}},9689:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var o=n(7437),i=n(2265),s=n(1994),r=n(6153),l=n(3582),a=n.n(l);let c=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:i}=e;return(0,o.jsx)("div",{className:(0,s.Z)(a().footer,n&&a().footerWithoutShadow,i),children:"function"==typeof t?t():t})};var u=n(7868),d=n(3564),p=n(6565),m=n.n(p);let v=e=>{let{children:t,footer:n,isOpen:l,isSmallPopup:a,onClose:d,hasCloseButton:p=!0,full:v,touchDistance:f=100,withDisabledScroll:_=!0,contentClassName:h,className:y,title:g,closeButton:b,footerClassName:x}=e,[C,w]=(0,i.useState)(!1),[j,S]=(0,i.useState)(!1),[k,T]=(0,i.useState)(!0),[N,R]=(0,i.useState)("120%"),P=(0,i.useRef)(null),B=(0,i.useRef)(0),L=(0,i.useRef)(!1),F=e=>{var t,n,o;let i=null===(t=P.current)||void 0===t?void 0:t.offsetTop,s=null===(n=P.current)||void 0===n?void 0:n.offsetHeight;if(L.current=!0,T(!1),i&&s){let t=(null==e?void 0:null===(o=e.touches[0])||void 0===o?void 0:o.clientY)-i,n=0;t>=0&&t<=s+30&&(n=t),t>s+30&&(n=s+30),R("".concat(n,"px")),B.current=n}},O=()=>{L.current&&(B.current>f&&d?null==d||d():R("0"),T(!0),L.current=!1),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",O)};return(0,i.useEffect)(()=>{l&&setTimeout(()=>{w(!0),S(!0),R("0")},100),!l&&j&&(R("120%"),w(!1),S(!1))},[j,l]),(0,u.o)(l&&_),(0,o.jsxs)("div",{"data-portal":!0,className:(0,s.Z)(m().mobilePopup,j&&m().mobilePopupOpen,y),children:[(0,o.jsx)(r.L,{onClose:()=>{l&&(null==d||d())},onToucheMove:()=>{l&&(w(!1),window.addEventListener("touchmove",F),window.addEventListener("touchend",O))},isOpen:l,delay:0}),(0,o.jsxs)("div",{className:(0,s.Z)(m().content,v&&m().contentFull,k&&m().contentTransition,k&&C&&m().contentTransitionOpen),ref:P,style:{transform:"translateY(".concat(N,")")},children:[(0,o.jsx)("div",{className:m().contentLine}),(0,o.jsxs)("div",{className:(0,s.Z)(m().contentContainer,a&&m().smallContentContainer,{[m().min]:!g&&!p},h),children:[!!g&&(0,o.jsx)("div",{className:m().title,children:g}),p?(0,o.jsx)("div",{className:m().closeContainer,children:(0,o.jsx)("div",{className:m().closeContainer,children:p?b?"function"==typeof b?b():b:(0,o.jsx)("button",{onClick:d,className:m().closeButton,children:(0,o.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null})}):null,t]}),n&&(0,o.jsx)(c,{footerClassName:x,isSmallPopup:a,footer:n})]})]})},f=e=>{let{children:t,isSmallPopup:n=!1,isOpen:i=!1,...s}=e,{mounted:r}=(0,d.b)({opened:i});return r?(0,o.jsx)(v,{isSmallPopup:n,isOpen:i,...s,children:t}):null};f.displayName="UiMobilePopup"},3466:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var o=n(2265),i=n(4887);let s=e=>{let{children:t,id:n="portal-root"}=e,[s,r]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=document.getElementById(n);if(e){r(e);return}let t=document.createElement("div");return t.id=n,document.body.appendChild(t),r(t),()=>{document.body.removeChild(t)}},[n]),s?(0,i.createPortal)(t,s):null}},7868:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var o=n(2265);let i=e=>{let t=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let n=t.current,o=window.innerWidth-document.documentElement.clientWidth;e&&o&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),e&&o&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width","calc(100vw - ".concat(o,"px)")),document.body.style.setProperty("top","-".concat(window.prevScrollPosition,"px"))),e&&!o&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),e&&n&&n.setAttribute("data-portal","");let i=document.querySelectorAll("[data-portal]").length>1;return e||i||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),e||i||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!e&&n&&n.removeAttribute("data-portal"),()=>{document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)}},[e]),t}},3564:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var o=n(2265),i=n(7493);let s=e=>{let{opened:t}=e,[n,s]=(0,o.useState)(!1),r=(0,o.useRef)(null),l=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(t&&!l.current?(l.current=!0,s(!0)):!t&&l.current&&(r.current=setTimeout(()=>{l.current=!1,s(!1)},i.z)),()=>{r.current&&clearTimeout(r.current)}),[t]),{mounted:n}}},1258:function(e,t,n){"use strict";n.d(t,{default:function(){return et}});var o=n(7437),i=n(2265),s=n(166),r=n(9090),l=n(5563),a=n(5461),c=n(1511),u=n(6295),d=n(7730),p=n(9306);let m=async e=>{var t;let n=(null==e?void 0:e.sort)||"POPULAR",o=(null==e?void 0:e.orderDesc)?"DESC":"ASC",i=(null==e?void 0:null===(t=e.formOfBusiness)||void 0===t?void 0:t.value)||"BOTH";return(await (0,p.t)({url:"/api/v1/offers/grouped?sortBy=".concat(n,"&sortDirection=").concat(o,"&businessForm=").concat(i),options:{isHeadlessCMS:!0}})).data||null};var v=n(9464),f=n(5074),_=n(7337);let h=e=>{let{h1:t,description:n,current:s,offers:r}=e,{NEXT_PUBLIC_S3_ASSETS:l}=(0,u.S)(),a=(0,_.xn)(l,"mp-assets","widgets","footer","finuslugi_base_logo.svg"),c=r.map(e=>e.cost||0),d=Math.min(...c),p=Math.max(...c),m=(0,i.useMemo)(()=>JSON.stringify({"@context":"https://schema.org","@type":"Product",name:t,description:n,image:{url:a,"@type":"ImageObject"},offers:{"@type":"AggregateOffer",offerCount:"".concat(s),lowPrice:"".concat(d),highPrice:"".concat(p),offeredBy:{name:"Финансовый маркетплейс Финуслуги","@type":"BankOrCreditUnion",image:{url:a,"@type":"ImageObject"},address:{"@type":"PostalAddress",postalCode:"125009",streetAddress:"Большой Кисловский переулок, дом 13",addressCountry:"Россия",addressLocality:"Москва"},telephone:"8 (800) 505-32-32",priceRange:"0-5000"},itemCondition:[t],priceCurrency:"RUB"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.7",reviewCount:"574",bestRating:"5",worstRating:"1"}}),[t,n,s,d,p,a]);return(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:m}})};var y=n(5864),g=n.n(y);let b=e=>{let{page:t=1,totalPage:n=1,url:i}=e,{NEXT_PUBLIC_BASE_URL:s}=(0,u.S)();return(0,o.jsxs)("div",{className:g().pagination,children:[t>1&&(0,o.jsxs)("a",{href:"".concat(s).concat(i,"?page=").concat(t-1),children:["Предыдущая страница - ",t-1]}),t<n&&(0,o.jsxs)("a",{className:g().paginationNext,href:"".concat(s).concat(i,"?page=").concat(t+1),children:["Следующая страница - ",t+1]})]})};var x=n(684),C=n(1994),w=n(3466),j=n(1483),S=n.n(j);let k=e=>{let{onChangeSort:t,isIncreaseSort:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{className:S().sortTypeHead,children:[(0,o.jsx)("button",{className:S().sortTypeButton,onClick:t,children:n?(0,o.jsx)(x.IconFdsSortDescendingO,{}):(0,o.jsx)(x.IconFdsSortAscendingO,{})}),"Сортировать"]}),(0,o.jsx)("div",{className:S().divider})]})},T=(0,i.memo)(e=>{let{onChangeSort:t,isIncreaseSort:n,onChangeSortType:i,sortTypeItems:s,sortTypeValue:r}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:S().sortTypeContainer,onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(k,{onChangeSort:t,isIncreaseSort:n}),s.map(e=>(0,o.jsx)("div",{"data-qa":"".concat(e.value,"_radio"),className:(0,C.Z)(S().sortType,{[S().checked]:e.value===r}),children:(0,o.jsx)(a.XZ,{onChange:()=>{i(e.value)},name:"".concat(e.value,"_radio"),label:e.label,value:e.value===r})},e.value))]})})});T.displayName="SortRadios";var N=n(9689);let R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}},P=e=>{let{length:t,isActive:n=!0,gap:o=12,rows:s=1}=e,[r,l]=(0,i.useState)(!1),a=(0,i.useRef)([]),c=(0,i.useRef)(null),u=(0,i.useRef)(null),d=(0,i.useRef)(()=>null),p=(0,i.useRef)(0),[m,v]=(0,i.useState)(t),f=(0,i.useRef)(R(700)),_=(0,i.useCallback)(()=>{l(!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,r=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+o;if(n>=i&&(n=i),(c+=n)>=i*r){if(r>=s){c-=n;break}c>i*r&&(c+=i*r-(c-n)),r++}d++}l(t>d),v(d),p.current=c})},[o,t,s]);return(0,i.useEffect)(()=>{if(window.removeEventListener("resize",d.current),n)return d.current=()=>f.current(_),d.current(),window.addEventListener("resize",d.current),()=>window.removeEventListener("resize",d.current)},[_,n]),(0,i.useEffect)(()=>{if(r){var e,t,n,i;let r=(null!==(n=null===(e=u.current)||void 0===e?void 0:e.getBoundingClientRect().width)&&void 0!==n?n:0)*s,l=(null!==(i=null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==i?i:0)+p.current-r;l>0&&v(e=>{let t=0;for(let n=e;n>=0;n--){let e=a.current[n],i=null==e?void 0:e.getBoundingClientRect().width;if(e&&i&&(t++,(l-=i+o)<=0))break}return e-t})}},[o,r,s]),{isOverflow:r,minLength:m,chipsRef:a,buttonRef:c,containerRef:u,handleCompute:_}};var B=n(4737),L=n.n(B);let F=(0,i.memo)(e=>{let{isClose:t,chips:n,onClickParams:s,isIncreaseSort:r,onChangeIncreaseSort:c,sortTypeItems:u,sortTypeValue:d,onChangeSortType:p,isFixed:m,portalId:v,onClickChip:f,className:_,hideParamsButton:h}=e,y=(0,a.aF)("m"),{containerRef:g,isOverflow:b,minLength:j,handleCompute:S}=P({length:n.length,isActive:!y}),[k,R]=(0,i.useState)(!1),B=y?j:4,F=y?b:k,[O,M]=(0,i.useState)(!1),[E,I]=(0,i.useState)(!1),[D,A]=(0,i.useState)(!1),z=n.length-B,Z=(0,i.useMemo)(()=>[{id:"overflow",label:"".concat(O?"Скрыть":"Ещё"," ").concat(z)}],[O,z]),W=(0,i.useCallback)(()=>{if(y){I(e=>!e);return}M(e=>!e)},[y]),H=(0,i.useRef)(void 0);(0,i.useEffect)(()=>{let e=H.current;if(void 0===t)return;let n=y?E:O;if(!n||e===t){H.current=t;return}(e!==t||n)&&(W(),H.current=t)},[W,t,y,E,O]);let q=(0,i.useCallback)(()=>{I(!1),setTimeout(()=>null==s?void 0:s(),300)},[s]),K=()=>A(e=>!e),U=(0,i.useCallback)(()=>null==c?void 0:c(!r),[r,c]);(0,i.useEffect)(()=>{y&&(R(!1),R(n.length>4))},[n.length,y]),(0,i.useEffect)(()=>{S()},[S,m]);let J=u.find(e=>e.value===d);return(0,o.jsxs)("div",{className:(0,C.Z)(L().filter,m&&L().stuck,_),children:[(0,o.jsx)(l.W2,{className:L().mainContainer,children:(0,o.jsxs)("div",{className:L().container,children:[(0,o.jsxs)("div",{className:(0,C.Z)(L().chipsContainer,!O&&L().chipsContainerClosed),ref:g,children:[(0,o.jsx)(a.cL,{size:"l",onChipClick:e=>null==f?void 0:f(e),className:L().chips,variant:"secondary",chips:n.slice(0,y||O||!F?n.length:B)}),!y&&b&&z>0&&(0,o.jsx)(a.cL,{size:"l",className:L().chips,variant:"secondary",chips:Z,onChipClick:W})]}),(0,o.jsx)("div",{className:L().actionsWrapper,children:(0,o.jsxs)(o.Fragment,{children:[!h&&(0,o.jsxs)("button",{className:(0,C.Z)(L().action,L().actionButton),onClick:s,children:[(0,o.jsx)(x.IconFilter,{size:22,className:L().icon}),(0,o.jsx)("span",{className:L().actionText,children:"Все параметры"})]}),(0,o.jsxs)("div",{className:L().action,children:[(0,o.jsx)("button",{className:(0,C.Z)(L().icon,L().iconButton),onClick:y&&m?K:U,children:r?(0,o.jsx)(x.IconFdsSortDescendingO,{size:22}):(0,o.jsx)(x.IconFdsSortAscendingO,{size:22})}),(0,o.jsxs)(a.Lt,{opened:D,placement:"bottom-end",onToggle:K,children:[(0,o.jsx)(a.WA,{children:(0,o.jsx)("span",{className:(0,C.Z)(L().actionText,L().actionButton),"data-qa":"".concat(d,"_order"),children:(null==J?void 0:J.shortLabel)||(null==J?void 0:J.label)||"Сортировка"})}),(0,o.jsx)(a.Nv,{children:(0,o.jsx)(T,{isIncreaseSort:r,onChangeSort:U,onChangeSortType:p,sortTypeItems:u,sortTypeValue:d,portalId:v})})]})]})]})})]})}),(0,o.jsx)(w.h,{id:v,children:(0,o.jsx)(N.j,{footer:(0,o.jsx)(a.zx,{className:L().modalButton,onClick:q,label:"Изменить параметры"}),className:L().modal,isOpen:E,onClose:W,children:(0,o.jsx)("div",{className:L().chipsContainerModal,children:(0,o.jsx)(a.cL,{chips:n,className:L().chips,size:"l",variant:"secondary",onChipClick:q})})})})]})});F.displayName="ListFilter";var O=n(5763),M=n(5843),E=n(7375),I=n(1577),D=n.n(I);let A=e=>{let{filter:t,onShow:n}=e;return(0,o.jsxs)("div",{className:D().filter,children:[(0,o.jsx)("div",{className:D().selectors,children:(0,o.jsx)(a.Ph,{className:D().input,size:"m",label:"Форма бизнеса",options:M.K0,value:t.formOfBusiness,onChange:e=>{(0,E.Q)({eventCategory:M.wm,eventActionType:E.i.select,eventActionText:"Форма бизнеса",eventLabel:(null==e?void 0:e.label)||""}),t.setFormOfBusiness(e)}})}),(0,o.jsx)("div",{className:D().buttons,children:(0,o.jsx)(a.zx,{className:D().showButton,size:"s",label:"Показать",onClick:n})})]})},z=()=>{let[e,t]=(0,i.useState)(null),[n,o]=(0,i.useState)(void 0),[s,r]=(0,i.useState)(void 0),[l,a]=(0,i.useState)(void 0),[c,u]=(0,i.useState)(void 0),[d,p]=(0,i.useState)(void 0),[m,v]=(0,i.useState)("POPULAR"),[f,_]=(0,i.useState)(!1);return{formOfBusiness:e,setFormOfBusiness:t,monthlyCashInjection:n,setMonthlyCashInjection:o,monthlyCashWithdrawals:s,setMonthlyCashWithdrawals:r,monthlyPaymentsToOtherBanks:l,setMonthlyPaymentsToOtherBanks:a,paymentsFromCounterparties:c,setPaymentsFromCounterparties:u,monthlyPaymentsToIndividuals:d,setMonthlyPaymentsToIndividuals:p,sort:m,setSort:v,orderDesc:f,setOrderDesc:_,resetState:()=>{t(null),o(void 0),r(void 0),a(void 0),u(void 0),p(void 0),v(null),_(!1)}}};var Z=n(7603),W=n(692);let H=e=>e.reduce((e,t)=>e+(t.offers.length||0),0),q=e=>e?e.replace(/(<span[^>]*>₽<\/span>)|₽/g,(e,t)=>t||"<span style='font-family: var(--font-family-primary)'>₽</span>"):"",K=e=>(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:q(e)}}),U=e=>{var t,n;let o=[],i=[];return o.push({name:"service_cost",label:"Обслуживание",value:K(e.attributes.tariff.serviceCost.serviceShortDetail),tooltip:q(e.attributes.tariff.serviceCost.serviceDetail)}),o.push({name:"fee",label:"Комиссия за перевод ФЛ",value:K(e.attributes.tariff.commission.commissionDescription),tooltip:q(e.attributes.tariff.commission.commissionDetail)}),o.push({name:"payments_legal_entity",label:"Платежи ЮЛ",value:K((null===(t=e.attributes.tariff.payments)||void 0===t?void 0:t.paymentsShortDetail)||"-"),tooltip:q(null===(n=e.attributes.tariff.payments)||void 0===n?void 0:n.paymentsDetail)}),e.attributes.tariff.offerUrl||i.push({text:"Онлайн-заявка",style:{background:"var(--color-purple-200)"}}),{fields:o,chips:i}},J=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"h6",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"p";return q("<".concat(n,">").concat(e,"</").concat(n,">").concat(t?"<".concat(o,">").concat(t,"</").concat(o,">"):""))},Q=e=>{var t,n,o,i;let s=[],{serviceCost:r,differentBankPaymentsCount:l,cashWithdrawal:a,cashDeposit:c,benefits:u,name:d}=e.attributes.tariff;return s.push({title:"Обслуживание",text:J(r.serviceShortDetail,r.serviceDetail,"p","i")}),s.push({title:"Комиссия за перевод ФЛ",text:J(e.attributes.tariff.commission.commissionDescription,e.attributes.tariff.commission.commissionDetail,"p","i")}),(null===(t=e.attributes.tariff.payments)||void 0===t?void 0:t.paymentsShortDetail)&&s.push({title:"Платежи ЮЛ",text:J(null===(n=e.attributes.tariff.payments)||void 0===n?void 0:n.paymentsShortDetail,null===(o=e.attributes.tariff.payments)||void 0===o?void 0:o.paymentsDetail,"p","i")}),(null===(i=e.attributes.tariff.payments)||void 0===i?void 0:i.paymentsShortDetail)||!l||s.push({title:"Платежи ЮЛ",text:J(l,"","p","i")}),s.push({title:"Поступления от контрагентов ",text:J(e.attributes.tariff.counterpartReceipts.description,void 0,"p","i")}),a&&s.push({title:"Снятие наличных",text:J(a,"","p","i")}),c&&s.push({title:"Внесение наличных",text:J(c,"","p","i")}),(null==u?void 0:u.length)&&s.push({title:"Преимущества",text:J(u,"","p","i")}),{params:{title:"",rows:[]},terms:{title:"Условия тарифа ".concat(d),rows:s},aboutBank:{title:"",rows:[]},actualInfo:""}},Y=e=>Array.isArray(e)&&0!==e.length?e.map(e=>{let{fields:t,chips:n}=U(e),o=Q(e);return{id:e.attributes.order,title:e.name,fields:t,chips:n,url:"/rko/".concat(e.attributes.tariff.url),fkId:e.attributes.bank.id,fkName:e.attributes.bank.name,bic:e.provider.bic,modalData:o,formType:e.attributes.bank.onlineIndicator,link:e.attributes.tariff.offerUrl,fkLogo:"",channelID:e.attributes.bank.channelId,tariffID:e.attributes.tariff.id,cost:0,altLogo:e.attributes.bank.logo}}):[],G=e=>Array.isArray(e)&&0!==e.length?e.reduce((e,t)=>{let n=Y(t.offers),o=n[0];if(!o)return e;let i=n.slice(1);return e.push({...o,subOffers:i}),e},[]):[];var V=n(9487),X=n(1811),$=n.n(X);let ee=(0,s.default)(()=>Promise.all([n.e(155),n.e(277)]).then(n.bind(n,2502)).then(e=>e.FormModal),{loadableGenerated:{webpack:()=>[2502]},ssr:!1});var et=e=>{var t,n,s,p,_,y,g,x;let{ssrOffers:C,total:w,initialPage:j,banksCount:S,highlightedOfferId:k,faqBlockData:T,supportBlockData:N}=e,[R,P]=(0,i.useState)(null),{region:B,town:L}=(0,O.S)({initialRegion:null,initialTown:null}),I=z(),D=R?H((null==R?void 0:R.items)||[]):w,[q,K]=(0,i.useState)(j),[U,J]=(0,i.useState)(!1),[Q,Y]=(0,i.useState)(null),X=(0,i.useRef)(null),et=[I.formOfBusiness,I.sort,I.orderDesc],en=(0,i.useRef)(JSON.stringify(et)),eo=(0,i.useRef)(null),ei=()=>{m(I).then(e=>{e&&P(e)})};(0,i.useEffect)(()=>{ei()},[]),(0,i.useEffect)(()=>{let e=JSON.stringify(et);en.current!==e&&(en.current=e,ei())},et),(0,i.useEffect)(()=>{let e=()=>{if(!eo.current)return;let{top:e}=eo.current.getBoundingClientRect();J(e<=81)};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]);let es=String(function(e,t){let{format:n="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,Z.Z)(new Date(e),n,{locale:W.Z});return(0,Z.Z)(e,n,{locale:W.Z})}catch(t){return e}}(new Date,{format:"dd.MM.yyyy"})),er=(null==R?void 0:null===(t=R.items)||void 0===t?void 0:t.slice(0,10*q))||[],el=R?G(er):C,ea=(0,r._6)(D,M.bt),{NEXT_PUBLIC_S3_ASSETS:ec}=(0,u.S)(),eu="".concat(ec,"/mp-assets/images/sc/rko/"),ed=!R||((null==R?void 0:null===(n=R.items)||void 0===n?void 0:n.length)||0)>er.length,ep=el.map(e=>e.cost||0),em=Math.ceil(((null==R?void 0:null===(s=R.items)||void 0===s?void 0:s.length)||S||0)/10),ev=(null==T?void 0:null===(_=T.value)||void 0===_?void 0:null===(p=_.blocks)||void 0===p?void 0:p[0])||null,ef="Открыть расчетный счет",e_="Выберите лучший из ".concat(D," тарифов от ").concat(S," банков с минимальной стоимостью обслуживания от ").concat(Math.min(...ep)," рублей. Откройте расчетный счет через официальный сайт Финуслуги. Все условия и предложения обновлены ").concat(es,".");return(0,o.jsxs)("div",{className:$().page,children:[(0,o.jsx)(f.g,{}),(0,o.jsx)(h,{h1:ef,description:e_,current:D,offers:el}),(0,o.jsxs)(l.W2,{children:[(0,o.jsxs)("div",{className:$().topBannerSection,children:[(0,o.jsxs)("div",{className:$().left,children:[(0,o.jsx)(a.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"РКО"}]}),(0,o.jsxs)("div",{className:$().text,children:[(0,o.jsx)("h1",{className:$().title,children:ef}),(0,o.jsx)("div",{className:$().subtitle,children:e_})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("img",{className:$().topBannerImg,src:"".concat(eu,"main_d.png"),srcSet:"".concat(eu,"main_d.png, ").concat(eu,"main_d2.png 2x"),alt:"banner",fetchPriority:"high"}),(0,o.jsx)("img",{className:$().topBannerImgM,src:"".concat(eu,"main_m.png"),srcSet:"".concat(eu,"main_m.png, ").concat(eu,"main_m2.png 2x"),alt:"banner",fetchPriority:"high"})]})]}),(0,o.jsx)(A,{filter:I,onShow:()=>{var e;(0,E.Q)({eventCategory:M.wm,eventActionType:E.i.button,eventActionText:"Показать"}),null===(e=X.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})}})]}),!!Q&&(0,o.jsx)(ee,{offer:Q,isOpen:!!Q,onClose:()=>Y(null),region:B,town:L}),(0,o.jsx)("div",{ref:X}),(0,o.jsxs)("div",{className:$().content,children:[(0,o.jsx)(l.W2,{children:(0,o.jsxs)("h2",{className:$().contentTitle,children:["Найдено ",(0,o.jsx)("span",{className:"mobileOnly",children:D}),(0,o.jsx)("span",{className:"desktopOnly",children:ea})," из ",w]})}),(0,o.jsx)("div",{ref:eo,className:$().filter,children:(0,o.jsx)(F,{chips:[{id:"1",label:"Тип юр. лица: ".concat((null===(y=I.formOfBusiness)||void 0===y?void 0:y.label)||"Все")}],onChangeIncreaseSort:I.setOrderDesc,onChangeSortType:I.setSort,onClickChip:()=>window.scrollTo({top:0,behavior:"smooth"}),sortTypeItems:M.aP,sortTypeValue:I.sort||"",isIncreaseSort:I.orderDesc,isFixed:U,className:$().listFilter,hideParamsButton:!0})}),(0,o.jsxs)(l.W2,{className:$().offersContainer,children:[(0,o.jsx)(v.N,{offers:el,handleButtonClick:e=>{window.open(e.url,"_blank")},handlePrimaryButtonClick:e=>{setTimeout(()=>{e.link?window.open(e.link,"_blank"):Y(e)},500)},eventCategory:M.wm,highlightedOfferId:k}),ed&&(0,o.jsx)("div",{className:$().pagination,children:(0,o.jsx)(a.zx,{label:"Показать еще предложения",variant:"secondary",onClick:()=>{(0,E.Q)({eventCategory:M.wm,eventActionType:E.i.button,eventActionText:"Показать еще предложения"}),K(e=>e+1)}})}),(0,o.jsx)(b,{page:q,totalPage:em,url:"/rko"})]})]}),(0,o.jsx)(c.C,{sectionTitle:(null==ev?void 0:ev.title)||"",questions:(null==ev?void 0:ev.faqs)||[],dataLayerPush:V.l,eventCategory:"adresa",href:(null==ev?void 0:null===(g=ev.readAllText)||void 0===g?void 0:g.link)||"",checkAllText:(null==ev?void 0:null===(x=ev.readAllText)||void 0===x?void 0:x.text)||""}),N&&(0,o.jsx)(d.B,{...N,s3Assets:ec})]})}},8582:function(e){e.exports={overlay:"ClickOutside_overlay__YQi9L",open:"ClickOutside_open__bmtsz",fade:"ClickOutside_fade__io1xj",close:"ClickOutside_close__AC078","fade-out":"ClickOutside_fade-out__wJ_pJ"}},4737:function(e){e.exports={filter:"ListFilter_filter__E5PHL",container:"ListFilter_container__Molcd",modal:"ListFilter_modal__0Q3R9",modalButton:"ListFilter_modalButton__0Q3M3",chipsContainerModal:"ListFilter_chipsContainerModal__h_MAJ",chipsContainer:"ListFilter_chipsContainer__jKEfP",chipsContainerClosed:"ListFilter_chipsContainerClosed__RmbSt",chips:"ListFilter_chips__bWY2z",actionsWrapper:"ListFilter_actionsWrapper__87DPh",action:"ListFilter_action__AVlfa",actionText:"ListFilter_actionText__6vJqS",iconButton:"ListFilter_iconButton__nt1oX",actionButton:"ListFilter_actionButton__hRj9y",icon:"ListFilter_icon__G3naU",stuck:"ListFilter_stuck__CJKpN",mainContainer:"ListFilter_mainContainer__13FFs",chip:"ListFilter_chip__QBtZg"}},1483:function(e){e.exports={sortTypeContainer:"SortRadios_sortTypeContainer__rw38k",divider:"SortRadios_divider__lEkM5",sortType:"SortRadios_sortType__Qj4aq",sortTypeRadio:"SortRadios_sortTypeRadio__xtm9_",sortTypeTooltip:"SortRadios_sortTypeTooltip__Mroph",sortTypeTrigger:"SortRadios_sortTypeTrigger__rCqZy",sortTypeHead:"SortRadios_sortTypeHead__1jHka",sortTypeButton:"SortRadios_sortTypeButton__O_Kyq",checked:"SortRadios_checked__OjUkE"}},6565:function(e){e.exports={mobilePopup:"MobilePopup_mobilePopup__NCFCK",content:"MobilePopup_content__B5iF0",contentFull:"MobilePopup_contentFull__DBrvo",contentLine:"MobilePopup_contentLine__eykLy",contentContainer:"MobilePopup_contentContainer___ZbOq",min:"MobilePopup_min__D0Hml",contentTransition:"MobilePopup_contentTransition__7_kGL",contentTransitionOpen:"MobilePopup_contentTransitionOpen__GDGpr",title:"MobilePopup_title__IEYZk",closeContainer:"MobilePopup_closeContainer__HSRUL",closeButton:"MobilePopup_closeButton__Bse_M",smallContentContainer:"MobilePopup_smallContentContainer__8jHeS"}},3582:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},5864:function(e){e.exports={pagination:"SeoPagination_pagination__dKYUO"}},1811:function(e){e.exports={page:"Rko_page__lnWb5",topBannerSection:"Rko_topBannerSection__LXXQJ",left:"Rko_left__YCHED",text:"Rko_text__SQa71",title:"Rko_title__CY2a7",subtitle:"Rko_subtitle__3SS13",topBannerImg:"Rko_topBannerImg__sswO7",topBannerImgM:"Rko_topBannerImgM__OvSCq",content:"Rko_content__ZvTDX",contentTitle:"Rko_contentTitle__9zKab",filter:"Rko_filter__F_IDA",listFilter:"Rko_listFilter__FBCS4",offersContainer:"Rko_offersContainer__Kp0ZZ",pagination:"Rko_pagination__m1bJI"}},1577:function(e){e.exports={filter:"RkoFilter_filter__uK1ON",selectors:"RkoFilter_selectors__ED17T",buttons:"RkoFilter_buttons__X6AxW",showButton:"RkoFilter_showButton__xGiWM",allParametersButton:"RkoFilter_allParametersButton__Cprt2",input:"RkoFilter_input__Wu4Hz"}}},function(e){e.O(0,[94,155,544,501,207,226,754,603,167,961,971,117,744],function(){return e(e.s=3559)}),_N_E=e.O()}]);