(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,7733))},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,d=(0,i.useRef)(null),u=(0,i.useCallback)(()=>{t&&(d.current=setTimeout(()=>{t()},c))},[c,t]),p=(0,i.useCallback)(e=>{"Escape"===e.key&&u()},[u]);return(0,i.useEffect)(()=>(l&&window.addEventListener("keydown",p),()=>{d.current&&clearTimeout(d.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:u})}},9689:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});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 d=n(7868),u=n(3564),p=n(6565),m=n.n(p);let _=e=>{let{children:t,footer:n,isOpen:l,isSmallPopup:a,onClose:u,hasCloseButton:p=!0,full:_,touchDistance:v=100,withDisabledScroll:f=!0,contentClassName:h,className:x,title:g,closeButton:y,footerClassName:b}=e,[j,C]=(0,i.useState)(!1),[S,w]=(0,i.useState)(!1),[k,N]=(0,i.useState)(!0),[T,R]=(0,i.useState)("120%"),L=(0,i.useRef)(null),P=(0,i.useRef)(0),F=(0,i.useRef)(!1),B=e=>{var t,n,o;let i=null===(t=L.current)||void 0===t?void 0:t.offsetTop,s=null===(n=L.current)||void 0===n?void 0:n.offsetHeight;if(F.current=!0,N(!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")),P.current=n}},O=()=>{F.current&&(P.current>v&&u?null==u||u():R("0"),N(!0),F.current=!1),window.removeEventListener("touchmove",B),window.removeEventListener("touchend",O)};return(0,i.useEffect)(()=>{l&&setTimeout(()=>{C(!0),w(!0),R("0")},100),!l&&S&&(R("120%"),C(!1),w(!1))},[S,l]),(0,d.o)(l&&f),(0,o.jsxs)("div",{"data-portal":!0,className:(0,s.Z)(m().mobilePopup,S&&m().mobilePopupOpen,x),children:[(0,o.jsx)(r.L,{onClose:()=>{l&&(null==u||u())},onToucheMove:()=>{l&&(C(!1),window.addEventListener("touchmove",B),window.addEventListener("touchend",O))},isOpen:l,delay:0}),(0,o.jsxs)("div",{className:(0,s.Z)(m().content,_&&m().contentFull,k&&m().contentTransition,k&&j&&m().contentTransitionOpen),ref:L,style:{transform:"translateY(".concat(T,")")},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?y?"function"==typeof y?y():y:(0,o.jsx)("button",{onClick:u,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:b,isSmallPopup:a,footer:n})]})]})},v=e=>{let{children:t,isSmallPopup:n=!1,isOpen:i=!1,...s}=e,{mounted:r}=(0,u.b)({opened:i});return r?(0,o.jsx)(_,{isSmallPopup:n,isOpen:i,...s,children:t}):null};v.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}}},7733:function(e,t,n){"use strict";n.d(t,{default:function(){return ej}});var o=n(7437),i=n(2265),s=n(166),r=n(9090),l=n(5563),a=n(5461),c=n(4157),d=n(1511),u=n(6295),p=n(7730),m=n(9306);let _=async function(){var e;let{tagUrl:t="/rko",filter:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null==n?void 0:n.sort)||"POPULAR",i=(null==n?void 0:n.orderDesc)?"DESC":"ASC",s=(null==n?void 0:null===(e=n.formOfBusiness)||void 0===e?void 0:e.value)||"BOTH";return(await (0,m.t)({url:"/api/v1/offers/grouped?sortBy=".concat(o,"&sortDirection=").concat(i,"&businessForm=").concat(s,"&tagUrl=").concat(t),options:{isHeadlessCMS:!0}})).data||null};var v=n(9464),f=n(5074),h=n(7648);let x=e=>/^https?:\/\//i.test(e)||e.startsWith("/")?e:"/".concat(e);var g=n(1873),y=n.n(g);let b=e=>{let{data:t}=e,n=e=>t=>{e.disableLink&&(t.preventDefault(),t.stopPropagation()),e.onClick&&e.onClick()};return(0,o.jsx)("ul",{className:y().choice,children:t.map(e=>(0,o.jsx)("li",{className:y().choiceOption,children:(0,o.jsx)(h.default,{href:x(e.url),onClick:n(e),prefetch:!1,children:e.name})},e.id))})};var j=n(7337);let C=e=>{let{h1:t,description:n,current:s,offers:r}=e,{NEXT_PUBLIC_S3_ASSETS:l}=(0,u.S)(),a=(0,j.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 S=n(5864),w=n.n(S);let k=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:w().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:w().paginationNext,href:"".concat(s).concat(i,"?page=").concat(t+1),children:["Следующая страница - ",t+1]})]})};var N=n(684),T=n(1994),R=n(7326),L=n.n(R);let P=[{iconLeft:(0,o.jsx)(N.IconFdsCoatOfArmsRussiaF,{}),label:"Наша финансовая платформа в реестре Банка России",rounded:!0},{iconLeft:(0,o.jsx)(N.IconFdsShieldCheckO,{}),label:"Данные защищены и передаются зашифровано",rounded:!0},{iconLeft:(0,o.jsx)(N.IconFdsOctostarCheckO,{}),label:"Все наши партнеры имеют лицензию ЦБ РФ",rounded:!0}];function F(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,T.Z)(L().container,t),children:[P.map(e=>(0,o.jsx)(a.Vp,{...e},e.label))," "]})}var B=n(3466),O=n(1483),M=n.n(O);let E=e=>{let{onChangeSort:t,isIncreaseSort:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{className:M().sortTypeHead,children:[(0,o.jsx)("button",{className:M().sortTypeButton,onClick:t,children:n?(0,o.jsx)(N.IconFdsSortDescendingO,{}):(0,o.jsx)(N.IconFdsSortAscendingO,{})}),"Сортировать"]}),(0,o.jsx)("div",{className:M().divider})]})},D=(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:M().sortTypeContainer,onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(E,{onChangeSort:t,isIncreaseSort:n}),s.map(e=>(0,o.jsx)("div",{"data-qa":"".concat(e.value,"_radio"),className:(0,T.Z)(M().sortType,{[M().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))]})})});D.displayName="SortRadios";var I=n(9689);let A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}},Z=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),d=(0,i.useRef)(null),u=(0,i.useRef)(()=>null),p=(0,i.useRef)(0),[m,_]=(0,i.useState)(t),v=(0,i.useRef)(A(700)),f=(0,i.useCallback)(()=>{l(!1),setTimeout(()=>{var e,n;let i=null!==(n=null===(e=d.current)||void 0===e?void 0:e.getBoundingClientRect().width)&&void 0!==n?n:0,r=1,c=0,u=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++}u++}l(t>u),_(u),p.current=c})},[o,t,s]);return(0,i.useEffect)(()=>{if(window.removeEventListener("resize",u.current),n)return u.current=()=>v.current(f),u.current(),window.addEventListener("resize",u.current),()=>window.removeEventListener("resize",u.current)},[f,n]),(0,i.useEffect)(()=>{if(r){var e,t,n,i;let r=(null!==(n=null===(e=d.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&&_(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:d,handleCompute:f}};var z=n(4737),q=n.n(z);let W=(0,i.memo)(e=>{let{isClose:t,chips:n,onClickParams:s,isIncreaseSort:r,onChangeIncreaseSort:c,sortTypeItems:d,sortTypeValue:u,onChangeSortType:p,isFixed:m,portalId:_,onClickChip:v,className:f,hideParamsButton:h}=e,x=(0,a.aF)("m"),{containerRef:g,isOverflow:y,minLength:b,handleCompute:j}=Z({length:n.length,isActive:!x}),[C,S]=(0,i.useState)(!1),w=x?b:4,k=x?y:C,[R,L]=(0,i.useState)(!1),[P,F]=(0,i.useState)(!1),[O,M]=(0,i.useState)(!1),E=n.length-w,A=(0,i.useMemo)(()=>[{id:"overflow",label:"".concat(R?"Скрыть":"Ещё"," ").concat(E)}],[R,E]),z=(0,i.useCallback)(()=>{if(x){F(e=>!e);return}L(e=>!e)},[x]),W=(0,i.useRef)(void 0);(0,i.useEffect)(()=>{let e=W.current;if(void 0===t)return;let n=x?P:R;if(!n||e===t){W.current=t;return}(e!==t||n)&&(z(),W.current=t)},[z,t,x,P,R]);let H=(0,i.useCallback)(()=>{F(!1),setTimeout(()=>null==s?void 0:s(),300)},[s]),U=()=>M(e=>!e),Q=(0,i.useCallback)(()=>null==c?void 0:c(!r),[r,c]);(0,i.useEffect)(()=>{x&&(S(!1),S(n.length>4))},[n.length,x]),(0,i.useEffect)(()=>{j()},[j,m]);let K=d.find(e=>e.value===u);return(0,o.jsxs)("div",{className:(0,T.Z)(q().filter,m&&q().stuck,f),children:[(0,o.jsx)(l.W2,{className:q().mainContainer,children:(0,o.jsxs)("div",{className:q().container,children:[(0,o.jsxs)("div",{className:(0,T.Z)(q().chipsContainer,!R&&q().chipsContainerClosed),ref:g,children:[(0,o.jsx)(a.cL,{size:"l",onChipClick:e=>null==v?void 0:v(e),className:q().chips,variant:"secondary",chips:n.slice(0,x||R||!k?n.length:w)}),!x&&y&&E>0&&(0,o.jsx)(a.cL,{size:"l",className:q().chips,variant:"secondary",chips:A,onChipClick:z})]}),(0,o.jsx)("div",{className:q().actionsWrapper,children:(0,o.jsxs)(o.Fragment,{children:[!h&&(0,o.jsxs)("button",{className:(0,T.Z)(q().action,q().actionButton),onClick:s,children:[(0,o.jsx)(N.IconFilter,{size:22,className:q().icon}),(0,o.jsx)("span",{className:q().actionText,children:"Все параметры"})]}),(0,o.jsxs)("div",{className:q().action,children:[(0,o.jsx)("button",{className:(0,T.Z)(q().icon,q().iconButton),onClick:x&&m?U:Q,children:r?(0,o.jsx)(N.IconFdsSortDescendingO,{size:22}):(0,o.jsx)(N.IconFdsSortAscendingO,{size:22})}),(0,o.jsxs)(a.Lt,{opened:O,placement:"bottom-end",onToggle:U,children:[(0,o.jsx)(a.WA,{children:(0,o.jsx)("span",{className:(0,T.Z)(q().actionText,q().actionButton),"data-qa":"".concat(u,"_order"),children:(null==K?void 0:K.shortLabel)||(null==K?void 0:K.label)||"Сортировка"})}),(0,o.jsx)(a.Nv,{children:(0,o.jsx)(D,{isIncreaseSort:r,onChangeSort:Q,onChangeSortType:p,sortTypeItems:d,sortTypeValue:u,portalId:_})})]})]})]})})]})}),(0,o.jsx)(B.h,{id:_,children:(0,o.jsx)(I.j,{footer:(0,o.jsx)(a.zx,{className:q().modalButton,onClick:H,label:"Изменить параметры"}),className:q().modal,isOpen:P,onClose:z,children:(0,o.jsx)("div",{className:q().chipsContainerModal,children:(0,o.jsx)(a.cL,{chips:n,className:q().chips,size:"l",variant:"secondary",onChipClick:H})})})})]})});W.displayName="ListFilter";var H=n(5763),U=n(5843),Q=n(7375),K=n(1577),J=n.n(K);let V=e=>{let{filter:t,onShow:n}=e;return(0,o.jsxs)("div",{className:J().filter,children:[(0,o.jsx)("div",{className:J().selectors,children:(0,o.jsx)(a.Ph,{className:J().input,size:"m",label:"Форма бизнеса",options:U.K0,value:t.formOfBusiness,onChange:e=>{(0,Q.Q)({eventCategory:U.wm,eventActionType:Q.i.select,eventActionText:"Форма бизнеса",eventLabel:(null==e?void 0:e.label)||""}),t.setFormOfBusiness(e)}})}),(0,o.jsx)("div",{className:J().buttons,children:(0,o.jsx)(a.zx,{className:J().showButton,size:"s",label:"Показать",onClick:n})})]})},Y=()=>{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,d]=(0,i.useState)(void 0),[u,p]=(0,i.useState)(void 0),[m,_]=(0,i.useState)("POPULAR"),[v,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:d,monthlyPaymentsToIndividuals:u,setMonthlyPaymentsToIndividuals:p,sort:m,setSort:_,orderDesc:v,setOrderDesc:f,resetState:()=>{t(null),o(void 0),r(void 0),a(void 0),d(void 0),p(void 0),_(null),f(!1)}}};var G=n(7603),X=n(692);let $=e=>{let{tag:t}=e,n=[{label:"Главная",href:"/"},{label:"РКО",href:"/rko"}];return t&&n.push({label:t.name,href:(0,j.xn)("/rko","/teg_".concat(t.url))}),n[n.length-1].href=void 0,n},ee=e=>e.reduce((e,t)=>e+(t.offers.length||0),0),et=(e,t)=>{let n=e.slice();return Object.keys(t).forEach(e=>{let o=RegExp("\\{".concat(e,"\\}"),"g");n=n.replace(o,String(t[e]||""))}),n},en=e=>e?e.replace(/(<span[^>]*>₽<\/span>)|₽/g,(e,t)=>t||"<span style='font-family: var(--font-family-primary)'>₽</span>"):"",eo=e=>(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:en(e)}}),ei=e=>{var t,n;let o=[],i=[];return o.push({name:"service_cost",label:"Обслуживание",value:eo(e.attributes.tariff.serviceCost.serviceShortDetail),tooltip:en(e.attributes.tariff.serviceCost.serviceDetail)}),o.push({name:"fee",label:"Комиссия за перевод ФЛ",value:eo(e.attributes.tariff.commission.commissionDescription),tooltip:en(e.attributes.tariff.commission.commissionDetail)}),o.push({name:"payments_legal_entity",label:"Платежи ЮЛ",value:eo((null===(t=e.attributes.tariff.payments)||void 0===t?void 0:t.paymentsShortDetail)||"-"),tooltip:en(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)"}}),e.attributes.tariff.benefits.forEach(e=>i.push({text:e,style:{background:"var(--color-purple-200)"}})),{fields:o,chips:i}},es=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 en("<".concat(n,">").concat(e,"</").concat(n,">").concat(t?"<".concat(o,">").concat(t,"</").concat(o,">"):""))},er=e=>{var t,n,o,i;let s=[],{serviceCost:r,differentBankPaymentsCount:l,cashWithdrawal:a,cashDeposit:c,benefits:d,name:u}=e.attributes.tariff;return s.push({title:"Обслуживание",text:es(r.serviceShortDetail,r.serviceDetail,"p","i")}),s.push({title:"Комиссия за перевод ФЛ",text:es(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:es(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:es(l,"","p","i")}),s.push({title:"Поступления от контрагентов ",text:es(e.attributes.tariff.counterpartReceipts.description,void 0,"p","i")}),a&&s.push({title:"Снятие наличных",text:es(a,"","p","i")}),c&&s.push({title:"Внесение наличных",text:es(c,"","p","i")}),(null==d?void 0:d.length)&&s.push({title:"Преимущества",text:es("— ".concat(d.join("<br/>— ")),"","p","i")}),{params:{title:"",rows:[]},terms:{title:"Условия тарифа ".concat(u),rows:s},aboutBank:{title:"",rows:[]},actualInfo:""}},el=e=>Array.isArray(e)&&0!==e.length?e.map(e=>{let{fields:t,chips:n}=ei(e),o=er(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}}):[],ea=e=>Array.isArray(e)&&0!==e.length?e.reduce((e,t)=>{let n=el(t.offers),o=n[0];if(!o)return e;let i=n.slice(1);return e.push({...o,subOffers:i}),e},[]):[];var ec=n(9487),ed=n(1123),eu=n.n(ed);let ep=e=>{let{as:t="div",className:n,...i}=e;return(0,o.jsx)(t,{className:(0,T.Z)(eu().root,n),...i})};var em=n(5228),e_=n.n(em);let ev=e=>{let{className:t,children:n,step:i,title:s}=e;return(0,o.jsxs)(ep,{className:(0,T.Z)(e_().root,t),children:[(0,o.jsxs)("div",{className:e_().head,children:[(0,o.jsxs)("div",{className:e_().info,children:[(0,o.jsx)("div",{className:e_().number,children:i}),(0,o.jsx)("div",{className:e_().step,children:"Шаг"})]}),(0,o.jsx)("div",{className:e_().dots,children:Array.from({length:6},(e,t)=>(0,o.jsx)("div",{className:e_().dot},t))})]}),(0,o.jsx)("div",{className:e_().title,children:s}),(0,o.jsx)("div",{className:e_().text,children:n})]})};var ef=n(9007),eh=n.n(ef);let ex=e=>{let{step1:t="Выберите тариф в соответствии с  потребностями вашего бизнеса.",step2:n="Оставьте заявку онлайн на сайте Финуслуг или после перехода на сайт банка.",step3:i="Банк оперативно свяжется с Вами и сообщит решение. ",step4:s="Дождитесь подключения.",stepTitle1:r,stepTitle2:l,stepTitle3:a,stepTitle4:c}=e;return(0,o.jsx)("div",{className:eh().root,children:(0,o.jsxs)("div",{className:eh().body,children:[(0,o.jsx)(ev,{className:eh().card,step:1,title:r,children:t}),(0,o.jsx)(ev,{className:eh().card,step:2,title:l,children:n}),(0,o.jsx)(ev,{className:eh().card,step:3,title:a,children:i}),(0,o.jsx)(ev,{className:eh().card,step:4,title:c,children:s})]})})};var eg=n(1811),ey=n.n(eg);let eb=(0,s.default)(()=>Promise.all([n.e(907),n.e(277)]).then(n.bind(n,2502)).then(e=>e.FormModal),{loadableGenerated:{webpack:()=>[2502]},ssr:!1});var ej=e=>{var t,n,s,m,h,x,g,y;let{ssrOffers:j,total:S,initialPage:w,banksCount:N,lastOffersUpdatedAt:T,highlightedOfferId:R,faqBlockData:L,supportBlockData:P,tag:B,quoteData:O}=e,[M,E]=(0,i.useState)(null),{region:D,town:I}=(0,H.S)({initialRegion:null,initialTown:null}),A=Y(),Z=M?ee((null==M?void 0:M.items)||[]):S,[z,q]=(0,i.useState)(w),[K,J]=(0,i.useState)(!1),[en,eo]=(0,i.useState)(null),ei=(0,i.useRef)(null),es=[A.formOfBusiness,A.sort,A.orderDesc],er=(0,i.useRef)(JSON.stringify(es)),el=(0,i.useRef)(null),ed=()=>{_({tagUrl:B?B.url:"/rko",filter:A}).then(e=>{e&&E(e)})};(0,i.useEffect)(()=>{ed()},[null==B?void 0:B.url]),(0,i.useEffect)(()=>{let e=JSON.stringify(es);er.current!==e&&(er.current=e,ed())},es),(0,i.useEffect)(()=>{let e=()=>{if(!el.current)return;let{top:e}=el.current.getBoundingClientRect();J(e<=81)};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]);let eu=String(function(e,t){let{format:n="dd.MM.yy"}=null!=t?t:{};try{if("string"==typeof e)return(0,G.Z)(new Date(e),n,{locale:X.Z});return(0,G.Z)(e,n,{locale:X.Z})}catch(t){return e}}(T||new Date,{format:"dd.MM.yyyy"})),ep=(null==M?void 0:null===(t=M.items)||void 0===t?void 0:t.slice(0,10*z))||[],em=M?ea(ep):j,e_=(0,r._6)(Z,U.bt),{NEXT_PUBLIC_S3_ASSETS:ev}=(0,u.S)(),ef="".concat(ev,"/mp-assets/images/sc/rko/"),eh=!M||((null==M?void 0:null===(n=M.items)||void 0===n?void 0:n.length)||0)>ep.length,eg=Math.min(...em.map(e=>e.cost||0)),ej=Math.ceil(((null==M?void 0:null===(s=M.items)||void 0===s?void 0:s.length)||N||0)/10),eC=(0,i.useMemo)(()=>$({tag:B}),[B]),eS=(null==L?void 0:null===(h=L.value)||void 0===h?void 0:null===(m=h.blocks)||void 0===m?void 0:m[0])||null,ew=(0,i.useMemo)(()=>B?[...B.faqs,{question:"Виды РКО",answer:(0,o.jsx)(b,{data:U.C0.filter(e=>e.id!==(null==B?void 0:B.id))})}]:[...(null==eS?void 0:eS.faqs.map(e=>{var t;return{...e,answer:null===(t=e.answer)||void 0===t?void 0:t.replace(/<\/?p>/g,e=>e.includes("/")?"</div>":"<div>")}}))||[],{question:"Виды РКО",answer:(0,o.jsx)(b,{data:U.C0})}],[null==eS?void 0:eS.faqs,B]),ek=B?B.h1:"Открыть расчетный счет",eN=(0,i.useMemo)(()=>B?et(B.subtitle,{offers:Z,currentDate:eu}):"Выберите лучший из ".concat(Z," тарифов от ").concat(N," банков с минимальной стоимостью обслуживания от ").concat(eg," рублей. Откройте расчетный счет через официальный сайт Финуслуги. Все условия и предложения обновлены ").concat(eu,"."),[N,Z,eg,B,eu]),eT=(()=>{let e="/rko";return B?B.url.includes("/reg")?e+"".concat(B?"/reg_".concat(B.id):""):e+"".concat(B?"/teg_".concat(B.id):""):e})();return(0,o.jsxs)("div",{className:ey().page,children:[(0,o.jsx)(f.g,{tag:B}),(0,o.jsx)(C,{h1:ek,description:eN,current:Z,offers:em}),(0,o.jsxs)(l.W2,{children:[(0,o.jsxs)("div",{className:ey().topBannerSection,children:[(0,o.jsxs)("div",{className:ey().left,children:[(0,o.jsx)(a.Oo,{style:{padding:"16px 0"},items:eC}),(0,o.jsxs)("div",{className:ey().text,children:[(0,o.jsx)("h1",{className:ey().title,children:ek}),(0,o.jsx)("div",{className:ey().subtitle,children:eN})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("img",{className:ey().topBannerImg,src:"".concat(ef,"main_d.png"),srcSet:"".concat(ef,"main_d.png, ").concat(ef,"main_d2.png 2x"),alt:"banner",fetchPriority:"high"}),(0,o.jsx)("img",{className:ey().topBannerImgM,src:"".concat(ef,"main_m.png"),srcSet:"".concat(ef,"main_m.png, ").concat(ef,"main_m2.png 2x"),alt:"banner",fetchPriority:"high"})]})]}),(0,o.jsx)(F,{}),(0,o.jsx)(V,{filter:A,onShow:()=>{var e;(0,Q.Q)({eventCategory:U.wm,eventActionType:Q.i.button,eventActionText:"Показать"}),null===(e=ei.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})}})]}),!!en&&(0,o.jsx)(eb,{offer:en,isOpen:!!en,onClose:()=>eo(null),region:D,town:I}),(0,o.jsx)("div",{ref:ei}),(0,o.jsxs)("div",{className:ey().content,children:[(0,o.jsx)(l.W2,{children:(0,o.jsxs)("h2",{className:ey().contentTitle,children:["Найдено ",(0,o.jsx)("span",{className:"mobileOnly",children:Z}),(0,o.jsx)("span",{className:"desktopOnly",children:e_})," из ",S]})}),(0,o.jsx)("div",{ref:el,className:ey().filter,children:(0,o.jsx)(W,{chips:[{id:"1",label:"Тип юр. лица: ".concat((null===(x=A.formOfBusiness)||void 0===x?void 0:x.label)||"Все")}],onChangeIncreaseSort:A.setOrderDesc,onChangeSortType:A.setSort,onClickChip:()=>window.scrollTo({top:0,behavior:"smooth"}),sortTypeItems:U.aP,sortTypeValue:A.sort||"",isIncreaseSort:A.orderDesc,isFixed:K,className:ey().listFilter,hideParamsButton:!0})}),(0,o.jsxs)(l.W2,{className:ey().offersContainer,children:[(0,o.jsx)(v.N,{offers:em,handleButtonClick:e=>{window.open(e.url,"_blank")},handlePrimaryButtonClick:e=>{setTimeout(()=>{e.link?window.open(e.link,"_blank"):eo(e)},500)},eventCategory:U.wm,highlightedOfferId:R}),eh&&(0,o.jsx)("div",{className:ey().pagination,children:(0,o.jsx)(a.zx,{label:"Показать еще предложения",variant:"secondary",onClick:()=>{(0,Q.Q)({eventCategory:U.wm,eventActionType:Q.i.button,eventActionText:"Показать еще предложения"}),q(e=>e+1)}})}),(0,o.jsx)(k,{page:z,totalPage:ej,url:eT}),(0,o.jsx)(ex,{}),O&&(0,o.jsx)(c.c,{quote:O})]})]}),(0,o.jsx)(d.C,{sectionTitle:(null==eS?void 0:eS.title)||"",questions:ew,dataLayerPush:ec.l,eventCategory:"adresa",href:(null==eS?void 0:null===(g=eS.readAllText)||void 0===g?void 0:g.link)||"",checkAllText:(null==eS?void 0:null===(y=eS.readAllText)||void 0===y?void 0:y.text)||""}),P&&(0,o.jsx)(p.B,{...P,s3Assets:ev})]})}},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"}},1123:function(e){e.exports={root:"ContentCard_root__GEDcl"}},1873:function(e){e.exports={container:"FaqLinksList_container__8lQcQ",choice:"FaqLinksList_choice__En28j",choiceOption:"FaqLinksList_choiceOption__yE_Vh"}},5864:function(e){e.exports={pagination:"SeoPagination_pagination__dKYUO"}},5228:function(e){e.exports={root:"StepCard_root__UNfNQ",head:"StepCard_head__y8jw_",info:"StepCard_info__bFQZy",number:"StepCard_number__wwA5M",step:"StepCard_step__mveG7",dots:"StepCard_dots__KiVV5",dot:"StepCard_dot__Sn4tp",title:"StepCard_title__O4tiZ",text:"StepCard_text__U2asD"}},7326:function(e){e.exports={container:"UtpTags_container__TN87B"}},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"}},9007:function(e){e.exports={root:"RkoSteps_root__eHz_A",title:"RkoSteps_title__nss0Q",body:"RkoSteps_body__yWwFL",card:"RkoSteps_card__qTSn9"}}},function(e){e.O(0,[976,907,544,501,207,870,323,603,389,961,971,117,744],function(){return e(e.s=3559)}),_N_E=e.O()}]);