(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2069],{75347:function(){},31777:function(){},34017:function(){},59905:function(){},98541:function(e,t,i){Promise.resolve().then(i.bind(i,66281)),Promise.resolve().then(i.bind(i,81460)),Promise.resolve().then(i.bind(i,58263)),Promise.resolve().then(i.bind(i,27406))},40966:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}}),i(70156),i(57102),i(26719);let n=i(36467).iw;function l(){return n}},96326:function(e,t,i){"use strict";var n,l;i.d(t,{e:function(){return n}}),(l=n||(n={})).DAY="DAY",l.MONTH="MONTH",l.TERMLESS="TERMLESS",l.YEAR="YEAR"},43421:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var n=i(57437),l=i(61810),o=i(7301),a=i(34734),r=i(2265),s=i(37341),u=i.n(s);let c=(e,t)=>{if(!e.length)return[];let i=[{label:"Главная",href:"/"},...e];return t&&(i[i.length-1].href=void 0),i};var d=(0,r.memo)(function(e){let{items:t=[],isMobile:i,className:s,disableLastHref:d=!0,...m}=e,M=(0,o._m)("l"),v=(0,r.useMemo)(()=>c(t,d),[t,d]);return(0,n.jsx)(l.Oo,{items:v,className:(0,a.Z)(u().breadcrumbs,s),isMobile:null!=i?i:!M,...m})})},57785:function(e,t,i){"use strict";i.d(t,{Z:function(){return z}});var n,l,o,a=i(57437),r=i(7301),s=i(34734),u=i(20703),c=i(2265),d=i(16243),m=i(54328),M=i(88776),v=i(52305),p=i(88662),_=i(41914),D=i.n(_);(n=l||(l={})).share="share",n.arrow="arrow",n.arrowBack="arrowBack";let f={[l.share]:p.Z,[l.arrow]:M.Z,[l.arrowBack]:v.Z},N=(0,c.memo)(e=>{let{icon:t,alt:i,iconClassName:n,className:l,onClick:o,name:r,role:c,...d}=e,m=(0,a.jsx)(u.default,{className:(0,s.Z)(D().icon,n),src:f[t],alt:i}),M=(0,s.Z)(D().action,l);return(0,a.jsx)("button",{role:c,className:M,onClick:()=>null==o?void 0:o(r),...d,children:m})});N.displayName="Action";var T=i(28874),g=i.n(T);let h=(0,c.memo)(e=>{let{actionData:t,isMobile:i,onClickChild:n,onClickItem:o,className:r}=e,[u,d]=(0,c.useState)(null),M=(0,c.useCallback)((e,t)=>()=>{t?d(t=>e===t?null:e):o(e)},[o]);(0,c.useEffect)(()=>{d(null)},[i]);let v=(0,c.useCallback)(()=>{d(null)},[]);return(0,a.jsx)("div",{className:(0,s.Z)(g().container,r),children:(0,a.jsxs)(c.Fragment,{children:[t.childList&&(0,a.jsxs)(m.u,{isOpen:u===t.name,direction:"horizontal",className:(0,s.Z)(g().childContainer,i&&g().childContainerMobile),children:[t.childList.map(e=>(0,a.jsx)("button",{role:"share-action",title:e.name,onClick:()=>n(t.name,e.name),className:(0,s.Z)(g().action,g().actionSocial),children:e.icon},e.name)),i&&(0,a.jsx)(N,{role:"close-action",onClick:v,alt:"close",icon:l.arrow,name:"share",className:(0,s.Z)(g().action,g().actionArrow),iconClassName:g().actionArrowIcon})]}),(0,a.jsx)(N,{role:"open-action",onClick:M(t.name,!!t.childList),name:t.name,alt:t.name,icon:u!==t.name||i?t.icon:l.arrow,className:(0,s.Z)(g().action,u===t.name&&!i&&g().actionArrow),iconClassName:(0,s.Z)(u===t.name&&!i&&g().actionArrowIcon),title:t.title})]},t.name)})});h.displayName="Actions";var j=i(2215),x=i.n(j),A=i(20564),y=i(24866),w=i(52446),b=i(60916),k=i(92853);let O=null!==(o=(0,A.OB)("NEXT_PUBLIC_BASE_URL"))&&void 0!==o?o:"",L=e=>{let{dataUrl:t,pageUrl:i,titleActionsList:n}=e,o=(0,y.xn)(O,i,t),r=[{icon:(0,a.jsx)(k.Z,{}),url:"https://vk.com/share.php?url=".concat(o,"&title=").concat(n),name:"vk"},{icon:(0,a.jsx)(w.Z,{}),url:"https://connect.ok.ru/offer?url=".concat(o,"&title=").concat(n),name:"Ok"},{icon:(0,a.jsx)(b.Z,{}),url:"https://telegram.me/share/url?url=".concat(o,"&text=").concat(n),name:"telegram"}];return{name:"share",icon:l.share,title:"Поделиться",childList:r}};function z(e){let{logo:t,bankName:i,caption:n,eventCategory:l,pageUrl:o,depositUrl:m,bankNameR:M,isMobile:v,onClose:p}=e,_=(0,c.useMemo)(()=>L({dataUrl:m,pageUrl:o,titleActionsList:"Вклад \xab".concat(n,"\xbb от ").concat(M)}),[n,M,m,o]),D=(0,c.useCallback)(()=>{(0,d.lQ)({event:"data-event",eventCategory:l,eventAction:"click_share_"})},[l]),f=(0,c.useCallback)((e,t)=>{if("share"===e){var i;let e=null===(i=_.childList)||void 0===i?void 0:i.find(e=>e.name===t);e&&((0,d.lQ)({event:"data-event",eventCategory:l,eventAction:"click_share_".concat(e.name)}),window.open(e.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300"))}},[_.childList,l]),N=v?48:56;return v?(0,a.jsx)("div",{className:(0,s.Z)(x().plate,x().fullwidth),children:(0,a.jsxs)("section",{className:x().columns,children:[(0,a.jsxs)("div",{className:x().column,children:[(0,a.jsxs)("div",{className:x().row,children:[(0,a.jsx)("div",{className:x().plateIcon,children:t&&(0,a.jsx)(u.default,{width:N,height:N,src:t,alt:"logo"})}),(0,a.jsxs)("div",{className:x().plateLabel,children:[(0,a.jsx)(r.X6,{type:"h3",children:i}),n&&(0,a.jsx)("span",{className:x().caption,children:n})]})]}),(0,a.jsx)(h,{isMobile:v,actionData:_,onClickItem:D,onClickChild:f})]}),(0,a.jsx)("div",{role:"close-button",className:x().column,children:(0,a.jsx)("button",{className:x().closeButton,onClick:p,children:(0,a.jsx)(r.ax,{name:"finuslugi:cross"})})})]})}):(0,a.jsxs)("section",{className:x().row,children:[(0,a.jsxs)("div",{className:(0,s.Z)(x().plate,x().fullwidth),children:[(0,a.jsx)("div",{className:x().plateIcon,children:t&&(0,a.jsx)(u.default,{width:56,height:56,src:t,alt:"logo"})}),(0,a.jsxs)("div",{className:x().plateLabel,children:[(0,a.jsx)(r.X6,{type:"h3",children:i}),n&&(0,a.jsx)("span",{className:x().caption,children:n})]})]}),(0,a.jsx)("div",{className:x().plate,children:(0,a.jsx)(h,{isMobile:v,actionData:_,onClickItem:D,onClickChild:f})}),(0,a.jsx)("div",{className:x().plate,children:(0,a.jsx)("button",{role:"close-button",className:x().closeButton,onClick:p,children:(0,a.jsx)(r.ax,{name:"finuslugi:cross"})})})]})}},49845:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n,l=i(57437),o=i(7301),a=i(34734),r=i(20564),s=i(2265),u=i(24866),c=i(10414),d=i(48899),m=i(16243),M=i(35047),v=i.n(M);let p=null!==(n=(0,r.OB)("NEXT_PUBLIC_BASE_URL"))&&void 0!==n?n:"";function _(e){let{depositUrl:t,depositParams:i,eventCategory:n,isSavingAccount:r}=e,{amount:M,term:_,appUrl:D}=null!=i?i:{},f=(0,s.useMemo)(()=>r?(0,u.jb)((0,u.xn)(p,d.a.SAVING_ACCOUNTS,t),{amount:M,period:_}):(0,u.iU)((0,u.xn)(p,d.a.VKLADY,t),(0,u.Oh)({amount:M,period:_&&Math.round(_/c.F)})),[M,t,r,_]);return(0,l.jsxs)("section",{className:(0,a.Z)(v().plate,r&&v().noBg),children:[(0,l.jsx)(o.zx,{as:"a",className:v().button,href:D,disabled:!D,onClick:function(){(0,m.lQ)({eventCategory:n,eventAction:"click_button_open_online",event:"data_event"})},size:"s",children:"Открыть онлайн"}),(0,l.jsx)(o.zx,{as:"a",className:v().button,variant:"secondary",href:f,onClick:function(){(0,m.lQ)({eventCategory:n,eventAction:r?"click_button_podrobnee_o_schete":"click_button_podrobnee_o_vklade",event:"data_event"})},size:"s",children:r?"Подробнее о счете":"Подробнее о вкладе"})]})}var D=i(67853),f=i.n(D);function N(e){let{children:t,isOpen:i,isMobile:n,depositParams:r,depositUrl:s,eventCategory:u,isSavingAccount:c=!1,onClose:d}=e;return n?(0,l.jsx)(o.jr,{isOpen:i,onClose:d,hasCloseButton:!1,className:(0,a.Z)(f().mobilePopup,c&&f().compactFooter),contentClassName:f().mobilePopupContent,footer:(0,l.jsx)(_,{depositParams:r,depositUrl:s,eventCategory:u,isSavingAccount:c}),children:t}):(0,l.jsx)(o.dy,{isOpen:i,onClose:d,isCloseable:!1,className:(0,a.Z)(f().drawer,c&&f().compactFooter),contentClassName:f().drawerContent,footer:(0,l.jsx)(_,{depositParams:r,depositUrl:s,eventCategory:u,isSavingAccount:c}),children:t})}},13012:function(e,t,i){"use strict";i.d(t,{Z:function(){return V}});var n=i(57437),l=i(7301),o=i(20703),a=i(20564),r=i(2265),s=i(34734),u=i(55004),c=i(58550),d=i.n(c);let m=(0,r.memo)(e=>{let{rows:t,className:i}=e;return(0,n.jsx)("ul",{className:(0,s.Z)(d().table,i),children:t.map(e=>e.isComment?(0,n.jsx)("div",{className:d().descriptionText,dangerouslySetInnerHTML:{__html:String(e.value)}},e.label):(0,n.jsxs)("li",{className:d().item,children:[(0,n.jsxs)("span",{className:d().label,children:[e.label,e.description&&(0,n.jsx)(u.C,{text:e.description,className:d().detailed})]}),(0,n.jsxs)("span",{className:d().value,children:[!e.valueDescription&&(0,n.jsx)("span",{className:d().text,title:String(e.value),children:e.value}),e.valueDescription&&(0,n.jsx)(u.C,{text:e.valueDescription,className:d().valueTip,iconSrc:null,children:e.value})]})]},e.label))})});m.displayName="DepositDetailTable";var M=i(36816);let v=(e,t)=>{let i=e[0],n=Math.abs(e[0]-t);for(let l=1;l<e.length;l++){let o=Math.abs(e[l]-t);o<n&&(n=o,i=e[l])}return i};var p=i(1917),_=i(65169),D=i(500),f=i(15774),N=i(16243),T={src:"/deposits/_next/static/media/banner-desktop.d3435e86.png",height:160,width:988,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAYAAADjAO9DAAAAKklEQVR4nGNcsvDfX0YmBqafPxgYdPX+MMgJf2E4coyL4ct/dgZmxv//AN2xDUPxp0mJAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:1},g={src:"/deposits/_next/static/media/banner-mobile.d3efc51e.png",height:284,width:686,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAYAAACuyE5IAAAAYElEQVR4nCXMuw2DQBRFwXNB3hTJdkAFlhOK5tMGJSB6IIYAAsQC+xYkpoBRXVqQSLiFIPL85Ps2xn5hcpmpqSyCkCLei6LY+f925mGj7T48AyTxbtIYODy8HLgsZV2wCzniJLql0BJdAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3},h=i(97202),j=i.n(h);let x=e=>{let t=0;return t=e.includes("мес")?31:365,Number(e.split(" ")[0])*t},A=e=>{var t,i;let{data:a,isMobile:s=!1,discount:u}=e,c=(0,r.useMemo)(()=>(0,p.z)(null==a?void 0:a.another),[null==a?void 0:a.another]),d=(0,r.useMemo)(()=>(0,p.P)(null==a?void 0:a.platform),[null==a?void 0:a.platform]);if(!a)return null;let{platform:M,another:v,isPlatform:_}=a,N=(0,D.d)(null!=M?M:v,null,_),h=c.length?c:d,x=!(null===(t=a.platform)||void 0===t?void 0:t.asSavingAccount);return(0,n.jsxs)("div",{className:j().content,children:[x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:j().blockTitle,children:"Параметры вклада"}),(0,n.jsxs)("div",{className:j().paramsTable,children:[(0,n.jsx)("div",{className:j().tableTitle,children:(0,n.jsxs)("ul",{className:j().tableList,children:[(0,n.jsx)("li",{children:"Сумма вклада"}),h[0].rates.map(e=>(0,n.jsx)("li",{children:e.label},e.id))]})}),(0,n.jsx)("div",{className:j().tableBody,children:h.map(e=>(0,n.jsxs)("ul",{className:j().tableList,children:[(0,n.jsx)("li",{children:e.label},e.id),e.rates.map(e=>(0,n.jsx)("li",{children:(null==e?void 0:e.value)?(0,f.$1)(Number(null==e?void 0:e.value))+"%":"-"},e.id))]},e.id))})]})]}),(0,n.jsxs)("div",{className:j().conditions,children:[(0,n.jsx)("p",{className:j().blockTitle,children:"Условия"}),(0,n.jsxs)("div",{className:j().offerPlate,children:[(0,n.jsx)(o.default,{className:j().offerPlateIcon,height:s?172:110,src:s?g:T,alt:"logo",unoptimized:!0}),(0,n.jsxs)("div",{className:j().plateContent,children:[(0,n.jsx)("div",{className:j().text,children:null!==(i=null==u?void 0:u.name)&&void 0!==i?i:""}),(0,n.jsx)(l.zx,{as:"a",href:null==u?void 0:u.link,target:"_self",size:"xs",children:"Подробнее"})]})]}),(0,n.jsx)(m,{rows:N})]})]})},y=e=>{var t,i,s,u,c,d,m;let{data:D,depositSumm:f,depositTerm:T,discount:g,isOpen:h,onClose:y,isOldUser:w}=e,b=(0,l._m)("l"),k=(0,r.useMemo)(()=>(0,p.P)(null==D?void 0:D.platform),[null==D?void 0:D.platform]),O=(0,r.useMemo)(()=>{var e;return w?(0,_.pW)(null==D?void 0:null===(e=D.platform)||void 0===e?void 0:e.finuslugiBonusPromotion):g},[w,null==D?void 0:null===(t=D.platform)||void 0===t?void 0:t.finuslugiBonusPromotion,g]),L=(null==D?void 0:D.isPlatform)?v(k[0].rates.map(e=>Number(e.label.split(" ")[0])),x(T)):null,z=L&&(null==D?void 0:null===(s=D.platform)||void 0===s?void 0:null===(i=s.options.find(e=>{let{duration:t}=e;return L>=t.minimum&&L<=t.maximum}))||void 0===i?void 0:i.id),C=(null==D?void 0:D.isPlatform)?"".concat((0,a.OB)("NEXT_PUBLIC_MOEX_AD_URI"),"/add-product?aggregatorId=moex-mp-new-sc&productId=").concat(null==D?void 0:null===(u=D.platform)||void 0===u?void 0:u.internalUrl.split("-").reverse()[0],"&optionId=").concat(z,"&amount=").concat(f,"&durationValue=").concat(L):null==D?void 0:null===(c=D.another)||void 0===c?void 0:c.online_application.url,I=(0,n.jsxs)("div",{className:j().buttonActions,children:[(0,n.jsx)(l.zx,{as:"a",href:null==D?void 0:D.href,target:"_self",size:"s",className:j().button,variant:"secondary",onClick:()=>{var e,t,i;(0,N.lQ)({event:"data-event",eventLabel:null!==(i=null==D?void 0:null===(e=D.platform)||void 0===e?void 0:e.providerId)&&void 0!==i?i:null==D?void 0:null===(t=D.another)||void 0===t?void 0:t.id,eventCategory:"vklady",eventAction:"learn_more_catalog"}),y()},children:"Подробнее"}),!(null==D?void 0:D.isMass)&&(0,n.jsx)(l.zx,{as:"a",href:C,target:"_blank",size:"s",className:j().button,onClick:()=>{var e,t,i;(0,N.lQ)({event:"data-event",eventLabel:null!==(i=null==D?void 0:null===(e=D.platform)||void 0===e?void 0:e.providerId)&&void 0!==i?i:null==D?void 0:null===(t=D.another)||void 0===t?void 0:t.id,eventCategory:"vklady",eventAction:(null==D?void 0:D.isPlatform)?"add_to_cart_catalog":"open_in_bank_catalog"}),y()},children:(null==D?void 0:D.isPlatform)?"Открыть онлайн":"Отправить заявку"})]});return(0,n.jsx)(M.h,{children:(0,n.jsx)("div",{"data-testid":"another-deposit-detail-modal",children:b?(0,n.jsx)(l.dy,{title:(0,n.jsxs)("div",{className:j().plate,children:[(0,n.jsx)("div",{className:j().plateIcon,children:(null==D?void 0:D.bank.logo_mob)&&(0,n.jsx)(o.default,{width:56,height:56,src:null==D?void 0:D.bank.logo_mob,alt:"logo"})}),(0,n.jsxs)("div",{className:j().plateLabel,children:[(0,n.jsx)("h3",{children:null==D?void 0:D.bank.name}),(0,n.jsx)("span",{className:j().caption,children:(null==D?void 0:D.isPlatform)?null==D?void 0:null===(d=D.platform)||void 0===d?void 0:d.name:null==D?void 0:null===(m=D.another)||void 0===m?void 0:m.title})]})]}),footer:I,titleAlign:"left",rowTitle:!0,className:j().drawer,contentClassName:j().container,isOpen:h,onClose:y,children:(0,n.jsx)(A,{data:D,discount:O,depositSumm:f,depositTerm:T,onClose:y})}):(0,n.jsx)(l.jr,{className:j().mobilePopup,footer:I,contentClassName:j().container,isOpen:h,onClose:y,children:(0,n.jsx)(A,{data:D,discount:O,depositSumm:f,depositTerm:T,isMobile:!0,onClose:y})})})})};var w=i(90199),b=i(41320),k=i(90926),O=i(60383),L=i(50111),z=i(36467),C=i(48899),I=i(46749),E=i(43892);let P=e=>{var t,i,n,l,o,a;let{deposit:r,bank:s,oldDeposit:u}=e,c=null!=u?u:(0,E.MP)(r.asSavingAccount),d=r.options[0],m=(0,E.I7)(s),{rates:M,amountFrom:v,amountTo:p,termFrom:_,termTo:D}=(0,E.HP)(r.options);return{...c,...r,id:parseInt(r.id),url:r.internalUrl,title:r.name,fin_exclusive:+r.exclusive,active_to:r.activeTo,bank_id:Number(null==s?void 0:s.id),bank_name:null!==(n=null==s?void 0:s.name)&&void 0!==n?n:"",bank_url:null!==(l=null==s?void 0:s.url)&&void 0!==l?l:"",logo_mob:null!==(o=null==s?void 0:s.logo_mob)&&void 0!==o?o:"",legal_name:m,interest_rate:{...null==u?void 0:u.interest_rate,rates:M.length?M:null!==(a=null===(t=c.interest_rate)||void 0===t?void 0:t.rates)&&void 0!==a?a:[]},amount:{...c.amount,from:v,to:p},archive:r.archive?1:0,m_updated_at:null===(i=r.updatedAt)||void 0===i?void 0:i.slice(0,10),term:{...c.term,from:_,to:D},partial_withdrawal:{...c.partial_withdrawal,has:(0,E.Nx)(d),text:(0,E.UD)(d)},interest_payment:{...c.interest_payment,text:"IN_THE_END"===d.interestPayments[0].periods[0].type?"В конце срока":"Ежемесячно",monthly:"MONTHLY"===d.interestPayments[0].periods[0].type?1:0,end:"IN_THE_END"===d.interestPayments[0].periods[0].type?1:0},refill:{...c.refill,has:(0,E.u0)(d),text:(0,E.VV)(d)},interest_capitalization:{...c.interest_capitalization,has:(0,E.xV)(d),text:(0,E.vc)(d)},preferential_termination:{...c.preferential_termination,has:(0,E.vf)(d),text:(0,E.f1)(d)},prolongation:{text:d.prolongations?"Предусмотрена":"Не предусмотрена"},external:{active:r.active}}};var S=i(77693),U=i(54417),Y=i(57785),Q=i(49845),B=i(2051),R=i.n(B),Z=i(55472);let F=e=>!!e&&"rate"in e,W=e=>{let{deposit:t,isOldUser:i,isPlusFiveBonus:n,amount:l,term:o}=e;return!!t&&(F(t)?t.finuslugiBonusAllowed&&!i&&n:(0,I.p)({currentAmount:null!=l?l:0,terms:null!=o?o:0,finuslugiBonusAllowed:(null==t?void 0:t.finuslugiBonusAllowed)===void 0||t.finuslugiBonusAllowed,isPlusFiveBonus:n,isOldUser:i,finuslugiBonusPromotion:t.finuslugiBonusPromotion}))},G=e=>{let{deposit:t,isToggle:i,termInMonths:n,amount:l}=e,o=F(t);return i&&o?{termInMonths:void 0,termInDays:n>0&&l>0?t.profitTerm:t.minimumTermInDays}:{termInMonths:n,termInDays:void 0}},H=e=>{var t,i;let{data:o,discount:a,isOpen:u,isPlusFiveBonus:c,extraInfo:d,questions:m,isOldUser:v=!1,initialAmount:p,initialTermInMonths:D,eventCategory:f,onClose:N}=e,{toggles:{FEATURE_TOGGLE_API_DEPOSITS_ENABLED:T}}=(0,z.ND)(),{bank:g,platform:h,another:j,isPlatform:x}=o,A=(0,l._m)("l"),[y,I]=(0,r.useState)(),E=F(h),{termInDays:B,termInMonths:H}=G({deposit:o.platform,isToggle:T,termInMonths:D,amount:p}),V=(0,r.useMemo)(()=>W({deposit:o.platform,isOldUser:v,isPlusFiveBonus:c,amount:null==y?void 0:y.amount,term:null==y?void 0:y.term}),[o.platform,null==y?void 0:y.amount,null==y?void 0:y.term,v,c]),J=(0,r.useMemo)(()=>v&&!E?(0,_.pW)(null==h?void 0:h.finuslugiBonusPromotion):a,[a,E,v,h]),X=V?J:void 0,K=v?void 0:null==X?void 0:X.promo_code,{data:q,isLoading:$}=(0,S.d)([null==h?void 0:h.id,"deposit-detail"],()=>(0,w.vI)(String(null==h?void 0:h.id)),{disabled:!E,errorRetryCount:2,onError:e=>{console.error(e),N()}}),ee=x?E?!$&&(null==q?void 0:q.data)?P({deposit:q.data.deposit,bank:g}):void 0:P({deposit:h,bank:g}):j,et=x?h.internalUrl:j.url,ei=ee?(0,Z.Z)(ee):k.P.isArchiveDeposit,en=d&&d[et]||{};return(0,n.jsx)(M.h,{children:(0,n.jsx)(Q.Z,{isOpen:u,onClose:N,isMobile:!A,depositParams:y,depositUrl:et,eventCategory:f,children:ee?(0,n.jsxs)("div",{"data-testid":"platform-deposit-detail-modal",children:[(0,n.jsx)(Y.Z,{pageUrl:C.a.VKLADY,depositUrl:et,bankNameR:null!==(t=null==g?void 0:g.name_r)&&void 0!==t?t:"",bankName:g.name,logo:g.logo_mob,caption:x?h.name:j.title,onClose:N,isMobile:!A,eventCategory:f}),(0,n.jsx)(U.h2,{href:null==X?void 0:X.link,isMobile:!A,isPlusFiveBonus:c,isOldUser:v,className:(0,s.Z)(R().depositAd,!v&&R().fivePercent),promoCode:K,eventCategory:f,withNewMarkup:!0}),(0,n.jsx)(O.O,{data:ee,isMobile:!A,discount:null!=X?X:void 0,company:g,isOldUser:v,isPlusFiveBonus:c,isShowDepositTip:!1,extraInfo:en,onChangeData:I,className:R().calculator,titleClassName:R().calculatorTitle,depositType:ei,asModal:!0,initialAmount:p,initialTermInMonths:H,initialTermInDays:B,isHidePromo:!0,eventCategory:f,withNewMarkup:!0,amount:null==y?void 0:y.amount,term:null==y?void 0:y.term}),(0,n.jsx)(L.c,{isMobile:!A,questions:m,data:ee,company:g,className:R().detailParams,amount:null!==(i=null==y?void 0:y.amount)&&void 0!==i?i:0,optionId:null==y?void 0:y.optionId,discount:null!=X?X:void 0,isPlusFiveBonus:c,isOldUser:v,extraInfo:en,wrapperClassName:R().detailParamsWrapper,isCollapsible:!0,asModal:!0,eventCategory:f,withNewMarkup:!0})]}):(0,n.jsx)(b.Z,{hideBonuses:!0})})})};function V(e){let{data:{isPlatform:t=!1}}=e;return t?(0,n.jsx)(H,{...e}):(0,n.jsx)(y,{...e})}},41320:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(57437),l=i(32833),o=i(31694),a=i.n(o);function r(e){let{hideBonuses:t=!1}=e;return(0,n.jsxs)("div",{className:a().container,children:[(0,n.jsx)(l.Od,{className:a().header}),(0,n.jsxs)("div",{className:a().row,children:[(0,n.jsxs)("div",{className:a().column,children:[(0,n.jsx)(l.Od,{className:a().settings}),!t&&(0,n.jsx)(l.Od,{className:a().bonuses})]}),(0,n.jsx)("div",{className:a().column,children:(0,n.jsx)(l.Od,{className:a().profit})})]}),(0,n.jsx)(l.Od,{className:a().params})]})}},64154:function(e,t,i){"use strict";i.d(t,{N:function(){return o}});var n=i(57437),l=i(20564);let o=(0,i(2265).memo)(e=>{let{title:t,description:i,productId:o,path:a,noIndex:r}=e,s=a;a.includes("?")&&(a=a.split("?")[0]),(0===a.indexOf("/debetovye_karty")||0===a.indexOf("/vklady")||0===a.indexOf("/depozitnyj-kalkulyator"))&&(s=a.split("&")[0]);let u=(0,l.OB)("NEXT_PUBLIC_BASE_URL");return(0,n.jsxs)("head",{children:[(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"},"viewport"),(0,n.jsx)("link",{rel:"icon",href:"".concat(u,"/icons/favicon/favicon-32x32.png")},"icon"),t&&(0,n.jsx)("title",{children:t},"title"),i&&(0,n.jsx)("meta",{name:"description",content:i},"description"),o&&(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:"dataLayer = [{'view_product_id': '".concat(o,"'}];")}},"viewProduct"),r&&(0,n.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,n.jsx)("meta",{property:"og:url",content:"".concat(u).concat(a||"")},"og:url"),(0,n.jsx)("meta",{property:"og:title",content:t},"og:title"),(0,n.jsx)("meta",{property:"og:description",content:i},"og:description"),(0,n.jsx)("meta",{property:"og:site_name",content:"Финуслуги"},"og:site_name"),(0,n.jsx)("meta",{property:"og:image",content:"".concat(u,"/icons/favicon/favicon-32x32.png")},"og:image"),(0,n.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,n.jsx)("link",{rel:"canonical",href:"".concat(u).concat(s)},"canonical"),(0,n.jsx)("link",{rel:"preload",href:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aW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4xODA5OTk4LDEuMTE3NTk5NSwyLjE4MDk5OTgsMi41NjIwOTk1DQoJcy0wLjY5NDAwMDIsMi41NTgxMDE3LTIuMTgwOTk5OCwyLjU1ODEwMTdWMzguMDQwNjk5eiBNMTA5LjY5MDAwMjQsMzEuNjQwMTk5Nw0KCWMtMi4yMzc5OTksMC0zLjU0MDAwMDksMS41NDM1MDA5LTMuNTQwMDAwOSwzLjgwODU5OTVjMCwyLjI2NDk5OTQsMS4zMDIwMDIsMy44NjY4MDIyLDMuNTQwMDAwOSwzLjg2NjgwMjINCglzMy41NDAwMDA5LTEuNjAwNDAyOCwzLjU0MDAwMDktMy44NjY4MDIyYzAtMi4yNjY0OTg2LTEuMzAyMDAyLTMuODEzOTk5Mi0zLjU0MDAwMDktMy44MTM5OTkyVjMxLjY0MDE5OTd6IE0xMTkuODYyOTk5LDM5LjEzMTE5ODkNCgloMS40MTYwMDA0bDEuNTg1OTk4NS0yLjg4ODk5OTlsMS43MDAwMDQ2LDIuODg4OTk5OWgxLjQxMDk5NTVsLTIuMjY2OTk4My0zLjgyODg5OTRsMi4xMjQwMDA1LTMuNDgzMDk5aC0xLjQxNjAwMDQNCglsLTEuNDkxOTk2OCwyLjYwNTUwMTJsLTEuNTE0OTk5NC0yLjYwNTUwMTJIMTIwbDIuMDMzOTk2NiwzLjQ0MUwxMTkuODYyOTk5LDM5LjEzMTE5ODl6Ii8+DQo8L3N2Zz4NCg==",as:"image",type:"image/svg+xml"},"logoPreload")]})});o.displayName="HeadMeta"},66281:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return j}});var n=i(57437),l=i(52116),o=i(99623),a=i(4479),r=i(2265),s=i(40195),u=i.n(s);function c(e){let{html:t,as:i="div",suppressHydrationWarning:n=!1,...l}=e,o=(0,r.useRef)(null),a=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(!t||!a.current||!o.current)return;a.current=!1;let e=u()(t,{allowedAttributes:!1,allowedTags:!1}),i=document.createRange().createContextualFragment(e);o.current.appendChild(i)},[t]),t?(0,r.createElement)(i,{...l,ref:o,suppressHydrationWarning:n}):null}var d=i(91895),m=i(21822),M=i(508);let v=e=>(0,M.p)(e);var p=i(16243);let _=(e,t)=>{let i=v(e);if(i&&i.aggregator_id){let e={...i,create_date:new Date().toISOString()},l={payload:[]};try{var n;l=JSON.parse((null===(n=(0,m.$1)())||void 0===n?void 0:n.cpa_click)||"{}")}catch(e){return}l.payload||(l.payload=[]),l.payload.push(e);let o={event:"data-event",eventCategory:String(i.aggregator_id),eventAction:"CPA_click",eventLabel:window.location.pathname,eventValue:String(i.utm_term||i.click_id),utm_source:String(i.utm_source),utm_campaign:String(i.utm_campaign),utm_medium:String(i.utm_medium)};t[String(i.aggregator_id)]&&((0,m.LM)("cpa_click",l,30),(0,p.lQ)(o))}};var D=i(13107),f=i(54983);let N=(0,i(20564).OB)("NEXT_PUBLIC_ASSETS_BASE_URL");function T(){return(0,n.jsx)(f.default,{crossOrigin:"use-credentials",type:"module",src:"".concat(N,"/mp-assets/widgets/support/index-D2xclPDV.js")})}var g=i(36816);let h="".concat(d.S$,"/mp-assets");function j(e){let{children:t,aggregatorIds:i,headerSrc:r,headerData:s,footerData:u,ssr:m=!0}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{aggregatorIds:i}),m?(0,n.jsxs)(n.Fragment,{children:[r&&!d.S_&&(0,n.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r}}),s&&d.S_&&(0,n.jsx)(a.h4,{data:s,showcaseUrl:d._n,minioUrl:h,lkUrl:d._S}),t,u&&(0,n.jsx)(o.$,{data:u,showcaseUrl:d._n,minioUrl:h})]}):(0,n.jsxs)(n.Fragment,{children:[!d.S_&&(0,n.jsx)(c,{html:r,suppressHydrationWarning:!0}),s&&d.S_&&(0,n.jsx)(a.h4,{data:s,showcaseUrl:d._n,minioUrl:h,lkUrl:d._S}),t,u&&(0,n.jsx)(o.$,{data:u,showcaseUrl:d._n,minioUrl:h})]}),(0,n.jsxs)(g.h,{children:[(0,n.jsx)(l.z,{}),!d.S_&&(0,n.jsx)(T,{})]})]})}function x(e){return!function(e){let{asPath:t}=(0,D.P)();(0,r.useEffect)(()=>{(0,p.yr)(t),_(t,e)},[e,t])}(e.aggregatorIds),null}},18862:function(e,t,i){"use strict";i.d(t,{O:function(){return s}});var n=i(57437),l=i(34734),o=i(2265),a=i(82490),r=i.n(a);let s=(0,o.memo)(e=>{let{className:t}=e;return(0,n.jsx)("div",{className:(0,l.Z)(r().skeleton,t)})});s.displayName="Skeleton"},60364:function(e,t,i){"use strict";i.d(t,{H:function(){return o},s:function(){return l}});var n=i(3821);let l=Object.freeze({[n._.MIN_BALANCE]:"На минимальный остаток",[n._.AVG_BALANCE]:"На средний остаток",[n._.DAILY_BALANCE]:"На ежедневный остаток"}),o=Object.freeze({DAILY:"Ежедневно",MONTHLY:"Ежемесячно"})},3821:function(e,t,i){"use strict";var n,l,o,a;i.d(t,{B:function(){return l},_:function(){return n}}),(o=n||(n={})).MIN_BALANCE="MIN_BALANCE",o.AVG_BALANCE="AVG_BALANCE",o.DAILY_BALANCE="DAILY_BALANCE",(a=l||(l={})).SpendingRange="SPENDING_RANGE",a.ServicePackage="SERVICE_PACKAGE"},61366:function(e,t,i){"use strict";var n,l,o,a,r,s;i.d(t,{ER:function(){return n},kv:function(){return o},mr:function(){return l}}),(a=n||(n={})).RatePlusBonus="rate+bonus",a.Rate="rate",a.Profit="profit",(r=l||(l={})).Asc="asc",r.Desc="desc",(s=o||(o={})).Deposit="deposit",s.SavingAccount="savingAccount",s.Bond="bond"},67168:function(e,t,i){"use strict";i.d(t,{B:function(){return G}});var n,l,o=i(57437),a=i(26094),r=i(20703),s=i(2265),u=i(55004),c=i(61810),d=i(7301),m=i(34734),M=i(87021),v=i.n(M);function p(){}(n=l||(l={})).button="button",n.detail="detail",n.compare="compare",n.favorites="favorites",n.share="share",n.open="open";let _=e=>{let{icon:t,href:i,target:n,title:a,titleCaption:r,advantageAmountFrom:u,advantageBonus:M,advantageAmountTo:_,advantageInterestAccrual:N,tags:T,className:g,onOpenDetailModal:h,onDetailClick:j,onButtonClick:x,onOpenClick:A,buttonText:y="Подробнее",wide:w=!1,lkUrl:b}=e,k=[u,M,_,N].filter(e=>"string"==typeof(null==e?void 0:e.name)?null==e?void 0:e.name.length:null==e?void 0:e.name),O=(0,s.useCallback)(e=>{let{children:t}=e;return(null==i?void 0:i.length)?(0,o.jsx)(c.rU,{href:i||"",target:n,className:(0,m.Z)(v().plate,g),children:t}):(0,o.jsx)("div",{className:(0,m.Z)(v().plate,g),children:t})},[g,i,n]),L=(0,s.useCallback)(e=>{h&&(e.preventDefault(),e.stopPropagation(),h(l.detail))},[h]),z=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return i=>{switch(t&&(i.preventDefault(),i.stopPropagation()),e){case l.detail:return null==j?void 0:j(l.detail);case l.button:return null==x?void 0:x(l.button);case l.open:return null==A?void 0:A(l.open)}}},[x,j,A]);return(0,o.jsx)(O,{children:(0,o.jsxs)("div",{className:v().body,children:[(0,o.jsxs)("div",{className:v().left,children:[(0,o.jsxs)("div",{className:v().header,children:[(0,o.jsxs)("div",{className:v().titleWrapper,children:[(0,o.jsx)("div",{className:(0,m.Z)(v().logoIcon),children:t}),(0,o.jsxs)("div",{className:(0,m.Z)(v().title,{[v().noneCaption]:!(null==r?void 0:r.length)}),children:[!!(null==r?void 0:r.length)&&(0,o.jsx)("button",{title:r,onClick:L,className:(0,m.Z)(v().caption,{[v().clickable]:h}),children:r}),(0,o.jsx)("p",{className:v().logoTitle,title:a,children:a})]})]}),!!(null==k?void 0:k.length)&&(0,o.jsx)("div",{className:(0,m.Z)(v().advantagesList,{[v().wide]:w,[v().shortList]:w&&k.length<3}),children:k.map(e=>(0,o.jsxs)("div",{className:(0,m.Z)(v().advantageItem,{[v().longItem]:k.length<3}),children:[(null==e?void 0:e.tooltipText)?(0,o.jsx)(d.qQ,{text:e.tooltipText,keyValue:(null==e?void 0:e.caption)+(null==e?void 0:e.name),iconClassName:v().iconClassName,children:(0,o.jsx)("span",{className:v().advantageItemCaption,children:null==e?void 0:e.caption})}):(0,o.jsx)("span",{className:v().advantageItemCaption,children:null==e?void 0:e.caption}),(0,o.jsx)("div",{className:v().advantageItemTitle,children:e.name})]},e.caption))}),(0,o.jsx)(D,{isMobile:!0,handleButtonClick:z})]}),(0,o.jsx)("div",{className:v().tagsList,children:T.map(e=>{let t="left"===e.position?{iconLeft:e.icon}:{iconRight:e.icon},i=0===e.text.trim().length;return(0,o.jsx)(c.Vp,{className:(0,m.Z)(v().tag,e.backGround&&v()[e.backGround]),label:e.text,onIconRightClick:i?p:void 0,rounded:!0,...t},e.text)})})]}),(0,o.jsx)("div",{className:v().right,children:(0,o.jsx)("div",{className:v().buttonsWrapper,children:(0,o.jsxs)("div",{className:v().block,children:[(0,o.jsx)(D,{isMobile:!1,handleButtonClick:z}),(0,o.jsxs)("div",{className:v().column,children:[(0,o.jsx)(c.zx,{className:(0,m.Z)(v().button,v().appButton,{[v().wide]:w}),size:"xs",onClick:()=>z(l.button,!1),children:y}),b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f,{href:b,onClick:z}),(0,o.jsx)(f,{href:b,isMobile:!0,onClick:z})]})]})]})})})]})})},D=e=>{let{isMobile:t,handleButtonClick:i}=e;return(0,o.jsx)(c.zx,{className:(0,m.Z)(v().button,v().detailButton,{[v().mobile]:t,[v().desktop]:!t}),onClick:i(l.detail),iconLeft:(0,o.jsx)(a.IconFdsInfoCircleO,{}),shape:"icon",variant:"secondary",size:"xs"})},f=e=>{let{isMobile:t,href:i,onClick:n}=e;return(0,o.jsx)(c.zx,{as:"a",href:i,target:"_blank",size:"xs",variant:t?"secondary":"white",className:(0,m.Z)(v().openButton,t?v().mobile:v().desktop),onClick:n(l.open),children:"Оформить сейчас"})};_.displayName="Plate";var N=i(11124),T=i(36467),g=i(60364),h=i(15774),j=i(55961),x=i(51066),A=i.n(x);let y=e=>{var t,i;let{data:n,discount:l}=e;return(0,o.jsxs)("div",{className:A().tooltipText,children:[(0,o.jsxs)("ul",{className:A().tooltipList,children:[(0,o.jsxs)("li",{className:A().listItem,children:["доход от банка:"," ",(0,o.jsxs)("span",{children:[(0,h.Y4)((null==n?void 0:null===(t=n.computeData)||void 0===t?void 0:t.profit)||0,2)," ",n.currencyUnit]})]}),(0,o.jsxs)("li",{className:A().listItem,children:["бонус от Финуслуг:"," ",(0,o.jsxs)("span",{children:[(0,h.Y4)((null==n?void 0:null===(i=n.computeData)||void 0===i?void 0:i.bonus)||0,2)," ",n.currencyUnit]})]})]}),(0,o.jsx)("p",{className:A().description,dangerouslySetInnerHTML:{__html:(null==l?void 0:l.terms)||""}})]})},w=e=>!e.isNotAmount&&!e.isTermEmpty,b=e=>{if(w(e)||"savingAccount"!==e.type||!e.rateType){if(w(e)){if(e.computeData&&!e.isNotAmount){let{termDays:t,bonus:i,profit:n}=e.computeData,l="Доход за ".concat((0,j.PY)(t,["день","дня","дней"]));i&&(l+=" + бонус");let o="".concat((0,h.Y4)(n+i,2),"  ").concat(e.currencyUnit);return("savingAccount"===e.type||e.isFloating)&&(o="до ".concat(o)),{caption:l,name:o}}}else{var t;return{caption:"Сумма",name:(e.isNotAmount?"от ":"")+"".concat((0,h.Y4)(null!==(t=e.rateAmount)&&void 0!==t?t:1)," ").concat(e.currencyUnit)}}}},k=e=>{let{data:t,discountState:i,hideBonusTooltip:n}=e;if(t.computeData){let e,l=t.isBound?"Доходность":"Ставка",a=(0,h.Y4)(t.computeData.effectiveRate,2);return i&&(t.computeData.bonus||t.computeData.bonusRate)&&(l+=" + бонус",a+=" + ".concat((0,h.Y4)(t.computeData.bonusRate,2)),e=n?void 0:(0,o.jsx)(y,{data:t,discount:i})),"savingAccount"===t.type&&(a=(null==t?void 0:t.rateType)==="FIXED"?a:"до ".concat(a)),t.isFloating&&(a="до ".concat(a)),{caption:l,name:a+=" %",tooltipText:e}}},O=e=>{if(!e.rateType&&e.isTermEmpty){let t="";if("savingAccount"===e.type)t="Бессрочно";else if(e.term){let i=+e.term%12,n=Math.floor(+e.term/12),l=["от"];n&&l.push((0,j.PY)(n,["года","лет","лет"])),i&&l.push("".concat(i," мес")),t=l.join(" ")}else t="от 1 дня";return{caption:"Срок",name:t}}},L=e=>{if(e.interestAccrual)return{caption:"Начисление процентов",name:g.s[e.interestAccrual]}},z=(e,t,i)=>{e?t():i()};var C=i(65169),I=i(2082),E=i(16243);let P=(e,t,i)=>{(0,E.lQ)({event:"data-event",eventLabel:e,eventCategory:t,eventAction:i})};var S=i(13107),U=i(64502),Y=i(24866),Q=i(91895);let B=e=>{let{productId:t,optionId:i,amount:n,durationValue:l,passAggregatorId:o=!1,passCombo:a=!1}=e,{query:{utm_campaign:r,utm_medium:u,utm_source:c,utm_term:d,aggregator_id:m},hash:{partner_id:M}}=(0,S.P)(),v=o?m:M;return(0,s.useMemo)(()=>(0,Y.jb)((0,Y.xn)(Q._S,"/add-product"),{aggregatorId:null!=v?v:"moex-mp-new-sc",productId:t,optionId:i,amount:n,durationValue:l,utm_campaign:r,utm_medium:u,utm_source:c,utm_term:d,...a?{from:"combo"}:null}),[v,n,l,i,a,t,r,u,c,d])};var R=i(24562),Z=i.n(R);let F=(e,t,i,n,l)=>{P(e,l?t:"deposits_details_vklady_popup",l?"click_name_deposit__".concat(i):n)},W=(e,t,i,n,l)=>{if(null==e?void 0:e.target){let l=e.target;if(l.classList.contains("finkit-button")||l.classList.contains("finkit-button__label")){P(t,i,"click__button__more__".concat(n));return}}P(t,i,l)},G=(0,s.memo)(e=>{var t,i,n,l,c;let{className:d,data:m,discount:M,isPlatform:v=!1,isPopupAVariant:p=!0,onOpenDetailModal:D,isOldUser:f,baseUrl:g="/vklady",params:h,hideBonusTooltip:j=!1,events:x={},buttonText:A="Подробнее",partnerId:y=null,wide:w=!1,paramsType:E="hash",isTermInDays:Q=!1,showOpenButton:R=!1}=e,G=v?"offers":"lidgen",{eventCategory:H="deposits_vklady",clickItemAction:V="click__card__".concat(G),showItemAction:J="show__card__".concat(G),openModalAction:X="view",clickMoreButtonAction:K}=x,q=B({productId:m.id,optionId:m.optionId,amount:null!==(l=m.rateAmount)&&void 0!==l?l:0,durationValue:(0,I.Am)(Q,null===(t=m.computeData)||void 0===t?void 0:t.termDays,null!==(c=m.term)&&void 0!==c?c:void 0),passAggregatorId:!0}),$=(0,N.p)(y),ee=null==$?void 0:null===(i=$.depositsItem)||void 0===i?void 0:i.depositUrl,{partnerFacetsIds:et}=(0,T.ND)(),ei=(0,s.useRef)(null),en=(0,s.useMemo)(()=>(0,C.D)(f,m.finuslugiBonusPromotion,M),[f,m.finuslugiBonusPromotion,M]);(0,U.Z)({itemRef:ei,eventCategory:H,eventAction:J,eventLabel:String(m.id)});let el=e=>(F(m.id,H,G,X,e),null==D?void 0:D({isPlatform:v,href:ec,depositItem:m})),eo=()=>P(m.id,H,null!=K?K:""),ea=()=>{var e;eo(),null===(e=window.open(ec,"_self"))||void 0===e||e.focus()},er=e=>z(p,()=>el(e),ea),es=(0,s.useCallback)(()=>{P("oformit_seychas",H,"click_button"),window.open(q,"_blank")},[H,q]),eu=(0,s.useMemo)(()=>(function(e){let{data:t}=e;return[b(t),k(e),O(t),L(t)]})({data:m,hideBonusTooltip:j,discountState:en}),[m,en,j]),ec=(0,s.useMemo)(()=>{var e;return ee?ee({productId:m.id}):function(e){let{params:t,depositUrl:i,amount:n,term:l,isBound:o,baseUrl:a,paramsType:r,isTermInDays:s}=e;if(o)return i;let u="hash"===r?(0,Y.iU)("/".concat(i),(0,Y.Oh)({amount:n,...s?{d_period:l}:{period:l}})):(0,Y.jb)("/".concat(i),{amount:n,period:l}),c=t?(0,Y.jb)(u,t):u;return(0,Y.xn)(a,c)}({params:h,depositUrl:m.url,amount:m.rateAmount,term:(0,I.Am)(Q,null===(e=m.computeData)||void 0===e?void 0:e.termDays,m.term),baseUrl:g,isBound:m.isBound,paramsType:E,isTermInDays:Q})},[g,ee,null===(n=m.computeData)||void 0===n?void 0:n.termDays,m.id,m.isBound,m.rateAmount,m.term,m.url,Q,h,E]),{query:ed}=(0,S.P)(),em=function(e,t,i,n){if(!t)return e;let{links:l,id:o}=n,a=Object.entries(i).reduce((e,t)=>-1!==t[0].indexOf("utm")?"".concat(e,"&").concat(t[0],"=").concat(t[1]):e,"");return((null==l?void 0:l[o])?l[o]:e)+a}(ec,y,ed,{links:y&&et[y].links||{},id:m.id}),eM=(0,s.useMemo)(()=>(function(e){let{data:t,isPlatform:i,newDesign:n=!1,renderTip:l}=e,r=[],s=function(e){let t=[];return"savingAccount"===e.type?t.push({backGround:"blue",text:"Накопительный счёт"}):"deposit"===e.type&&t.push({backGround:"orange",text:"Вклад"}),t}(t),u=function(e){let t=[];return e.isCapitalization&&"savingAccount"!==e.type&&t.push({text:"С капитализацией ",backGround:"white"}),e.isRefill&&"savingAccount"!==e.type&&t.push({text:"С пополнением ",backGround:"white"}),t}(t),c=function(e,t,i){let n=[];return!e.exclusive&&(t?e.isCommercial&&n.push({backGround:"white",text:"Заявка через сайт банка "}):n.push({backGround:"white",text:e.isCommercial?"Заявка через сайт банка ":"Открытие в банке "})),t&&(i?n.push({backGround:"white",text:"Онлайн на Финуслугах",position:"left",icon:(0,o.jsx)(a.IconFdsFlashO,{style:{color:"var(--color-purple-500)"}})}):n.push({backGround:"purple",text:"Открытие онлайн на Финуслугах "})),n}(t,i,n),d=function(e){let t=[];return e.computeData&&e.computeData.bonus&&t.push({backGround:"white",text:"+ Бонус "}),t}(t);return t.exclusive&&r.push({backGround:"white",text:"Эксклюзивный вклад "}),t.isBound&&r.push({backGround:"green",text:"Облигации "}),t.commercialDesc&&r.push({backGround:"white",text:t.commercialDesc+" "}),Array.isArray(t.tags)&&t.tags.forEach(e=>r.push({backGround:"white",text:" ",icon:(0,o.jsx)("div",{onClick:e=>{null==e||e.preventDefault(),null==e||e.stopPropagation()},children:l(e)})})),[...s,...c,...d,...u,...r]})({data:m,isPlatform:v,renderTip:e=>(0,o.jsx)(u.C,{className:Z().detail,icon:(0,o.jsx)(a.IconFdsQuestionCircleO,{size:16}),text:e.description,iconClassName:Z().detailIcon,iconPlacement:"right",asTrigger:"div",children:e.title}),newDesign:!0}),[m,v]);return eu[0]||"savingAccount"===m.type||m.rateType?(0,o.jsx)("div",{"data-testid":"deposits-item",className:d,ref:ei,onClick:e=>{W(e,m.id,H,G,V),p||el()},children:(0,o.jsx)(_,{type:"deposit",icon:m.logoMob?(0,o.jsx)("div",{className:Z().logo,children:(0,o.jsx)(r.default,{unoptimized:!0,width:56,height:56,src:m.logoMob,alt:"logo"})}):(0,o.jsx)("div",{className:Z().placeholderLogo}),title:m.bankName||m.name,titleCaption:(0,I.Am)(m.bankName,m.name,""),href:(0,I.Am)(p,em,""),onOpenDetailModal:()=>er(!0),onDetailClick:()=>er(),onButtonClick:(0,I.Am)(K||!p,()=>z(p,eo,el),void 0),tags:eM,target:"_self",advantageAmountFrom:eu[0],advantageBonus:eu[1],advantageAmountTo:eu[2],advantageInterestAccrual:eu[3],buttonText:A,wide:w,lkUrl:(0,I.Am)(R,q,void 0),onOpenClick:es})}):null});G.displayName="DepositsItem"},81460:function(e,t,i){"use strict";i.r(t),i.d(t,{DepositsPicker:function(){return ej}});var n,l,o,a=i(57437),r=i(7301),s=i(34734),u=i(68925),c=i(2265),d=i(26719);let m=e=>(0,d.t)("/api/v1/deposits/offers/comparison",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0}),M=e=>(0,d.t)("/api/v1/deposits/offers/best",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0});var v=i(43421),p=i(36360),_=i(64154),D=i(74059),f=i(83595),N=i(55004),T=i(26094),g=i(80977),h=i.n(g);let j=e=>{let{message:t,isBorder:i,theme:n}=e;return(0,a.jsxs)("div",{className:(0,s.Z)(h().card,i&&h().border),"data-testid":"deposit-picker-notify-plate",children:[(0,a.jsx)(T.IconInfoNotFilled,{className:h().icon}),(0,a.jsx)("div",{className:(0,s.Z)(h().caption,i&&h().themeBorder,"dark"===n&&h().dark),children:t})]})};(l||(l={})).Month="MONTH",(n=o||(o={})).compare="compare",n.best="best";let x=[{value:3,label:"3 месяца"},{value:6,label:"6 месяцев"},{value:12,label:"12 месяцев"}],A={3:91,6:181,12:365};var y=i(3251),w=i(39315),b=i(81874);function k(e,t){var i;let{years:n=0,months:l=0,weeks:o=0,days:a=0,hours:r=0,minutes:s=0,seconds:u=0}=t,c=(i=(0,w.z)(e,-(l+12*n)),(0,y.E)(i,-(a+7*o)));return(0,b.L)(e,c.getTime()-1e3*(u+60*(s+60*r)))}function O(e){return(0,u.WU)(e,"yyyy-MM-dd")}function L(e,t){return k(e,{days:30*Number(t)/2})}function z(e){return k(e,{days:1})}function C(e){return(0,f.I)(e,{months:1})}var I=i(15774);let E=(e,t,i)=>!i||i<e?"Минимальная ставка - ".concat((0,I.Y4)(e)," %"):i>t?"Максимальная ставка - ".concat((0,I.Y4)(t)," %"):void 0,P=(e,t,i)=>!i||i<e?"Минимальная сумма - ".concat((0,I.Y4)(e)," ₽"):i>t?"Максимальная сумма - ".concat((0,I.Y4)(t)," ₽"):void 0;var S=i(16243),U=i(93880),Y=i(62527),Q=i.n(Y);let B=e=>{let{banks:t,currentRate:i,onSubmit:n,buttonLabel:d,defaultDate:m,message:M,isPending:v,currentTab:p,pageUrl:_}=e,D=x[0],T=(0,c.useMemo)(()=>t.map(e=>({value:e.name,label:e.name})),[t]),[g,h]=(0,c.useState)(null),[y,w]=(0,c.useState)([D]),b=(0,c.useMemo)(()=>null==y?void 0:y[0].value,[y]),[k,I]=(0,c.useState)(3e5),[Y,B]=(0,c.useState)(i),[R,Z]=(0,c.useState)(m),[F,W]=(0,c.useState)(null),G=(0,c.useMemo)(()=>{var e;return e=new Date,p===o.best?C(e):p===o.compare?e:void 0},[p]),H=(0,c.useMemo)(()=>{var e,t;return b?(e=new Date,t=Number(b),p===o.compare?L(e,t):p===o.best?z(e):void 0):void 0},[b,p]),V=(0,c.useRef)(null),J=e=>{e&&(e.target.value||Z(void 0))};(0,c.useEffect)(()=>{var e;let t=null===(e=V.current)||void 0===e?void 0:e.getElementsByTagName("input")[0];return null==t||t.addEventListener("input",J),()=>{null==t||t.removeEventListener("input",J)}},[]);let X=(0,c.useCallback)(e=>!!e&&(p===o.best?e.getTime()>C(new Date).getTime():p===o.compare&&(null==e?void 0:e.getTime())>new Date().getTime()),[p]),K=(0,c.useCallback)(e=>!!e&&!!b&&(p===o.compare?(null==e?void 0:e.getTime())<L(new Date,Number(b)).getTime():p===o.best&&(null==e?void 0:e.getTime())<z(new Date).getTime()),[p,b]);(0,c.useEffect)(()=>{var e;if(!R||!(y&&(null===(e=y[0])||void 0===e?void 0:e.value)))return;let t=(0,f.I)(R,{days:A[y[0].value]});W((0,u.WU)(t,"dd.MM.yyyy"))},[R,y]);let q=(0,c.useMemo)(()=>y&&y[0].value&&R?"Дата завершения ".concat(F):"",[R,y,F]),$=(0,c.useCallback)(e=>{Z(e)},[]),ee=P(1e4,1e7,k),et=E(1,100,Y),ei=y?"":"Поле обязательно для заполнения",en=function(e,t,i){var n,l;if(!e)return"Поле обязательно для заполнения";let o=e.getTime(),a=null!==(n=null==i?void 0:i.getTime())&&void 0!==n?n:0,r=null!==(l=null==t?void 0:t.getTime())&&void 0!==l?l:0;return i&&o>a?"Дата не может быть больше "+(0,u.WU)(i,"dd.MM.yyyy"):t&&o<r?"Дата не может быть меньше "+(0,u.WU)((0,f.I)(t,{days:1}),"dd.MM.yyyy"):void 0}(R,H,G),el=(0,c.useMemo)(()=>!!ee||!!et||!!ei||!!en,[ee,et,ei,en]),eo=(0,c.useCallback)(()=>{var e,t;let i=g?(0,U.b)(g[0].label):void 0,a=y?(0,U.b)(y[0].label):void 0,r=[i,(0,u.WU)(R||m,"dd.MM.yyyy"),k,a,Y].filter(Boolean).join("__"),s=p===o.best?"click__button_form__podobrat_vklad":"click__button_form__sravnit_dohod";(0,S.lQ)({event:"data-event",eventAction:s,eventCategory:_,eventLabel:r}),n({bankName:null!==(t=null==g?void 0:null===(e=g[0])||void 0===e?void 0:e.value)&&void 0!==t?t:void 0,dateOfStart:O(null!=R?R:new Date),term:{value:y&&y[0].value||3,type:l.Month},amount:k,rate:Y})},[g,y,R,m,k,Y,p,_,n]),ea=(0,c.useCallback)(()=>{(0,S.lQ)({event:"data-event",eventCategory:_,eventAction:"click__tooltip__form__rate"})},[_]);return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mt-4 mb-8",children:(0,a.jsx)(j,{message:M})}),(0,a.jsx)("div",{className:(0,s.Z)(Q().subbtitle,"mb-4"),children:"Введите параметры вклада"}),(0,a.jsxs)(r.X2,{gutters:{xs:[4,4]},children:[(0,a.jsx)(r.JX,{size:{xs:12},children:(0,a.jsx)(r.HU,{allowClear:!0,value:g,size:"middle",label:"Банк",search:!0,options:T,disabled:v,onChange:h})}),(0,a.jsx)(r.JX,{size:{xs:12,m:6},children:(0,a.jsx)("div",{ref:V,children:(0,a.jsx)(r.ce,{allowClear:!1,titleInput:"Дата открытия вклада",isCloseAfterSelection:!0,date:R,max:X,min:K,onChange:$,state:en?"error":void 0,caption:en||q})})}),(0,a.jsxs)(r.JX,{size:{xs:12,m:6},children:[(0,a.jsx)(r.Rn,{className:(0,s.Z)(Q().input),label:"Сумма",disabled:v,withoutControls:!0,value:k,onChange:I,unit:"₽",state:ee?"error":void 0,decimalsCount:0,decimals:"never"}),ee&&(0,a.jsx)("span",{className:Q().message,children:ee})]}),(0,a.jsxs)(r.JX,{size:{xs:6,s:6},children:[(0,a.jsx)(r.HU,{label:"Срок",size:"middle",onChange:w,disabled:v,status:ei?"error":void 0,options:x.filter(e=>e.value),value:y}),ei&&(0,a.jsx)("span",{className:Q().message,children:ei})]}),(0,a.jsxs)(r.JX,{className:"mb-2",size:{xs:6,s:6},children:[(0,a.jsx)(r.Rn,{className:(0,s.Z)(Q().input),label:"Ставка",disabled:v,state:et?"error":void 0,value:Y,unit:"%",max:100,rightLabel:(0,a.jsx)(N.C,{text:"Это средняя ставка в топ-10 банков. Вы можете установить свое значение",onOpen:ea}),withoutControls:!0,decimalsCount:2,onChange:B}),et&&(0,a.jsx)("span",{className:Q().message,children:et})]}),(0,a.jsx)(r.JX,{size:{xs:12},children:(0,a.jsx)(r.zx,{pending:v,onClick:eo,disabled:el,variant:"secondary",label:d,stretch:!0})})]})]})};var R=i(94951),Z=i.n(R);let F=(0,c.memo)(e=>{let{row:t,pageUrl:i}=e,n=(0,c.useCallback)(e=>{let t=(0,U.b)(e);(0,S.lQ)({event:"data-event",eventCategory:i,eventAction:"click__tooltip__calculate",eventLabel:t})},[i]);return(0,a.jsxs)("div",{"data-testid":"row-component",children:[(0,a.jsxs)("div",{className:Z().header,children:[(0,a.jsxs)("div",{children:[" ",t.label]}),t.description&&t.label&&(0,a.jsx)(N.C,{text:t.description,className:Z().detail})]}),(0,a.jsx)("ul",{className:Z().values,children:t.value.filter(e=>{let{value:t}=e;return t}).map(e=>(0,a.jsxs)("li",{className:Z().value,children:[(0,a.jsx)("div",{className:Z().rowLabel,children:e.label}),e.description&&e.label&&(0,a.jsx)(N.C,{text:e.description,className:Z().detail,onOpen:()=>n(e.label)}),(0,a.jsx)("div",{className:Z().valueDash}),(0,a.jsxs)("div",{className:Z().profitGroup,children:[!!e.profit&&(0,a.jsx)("div",{className:Z().profit,children:e.profit}),(0,a.jsx)("div",{className:Z().label,children:e.value})]})]},e.label))})]})});F.displayName="RowComponent";let W=e=>{let{rows:t,message:i,pageUrl:n}=e,l=(0,c.useMemo)(()=>t.reduce((e,t)=>(t&&e.push((0,a.jsx)(F,{row:t,pageUrl:n})),e),[]),[n,t]);return(0,a.jsxs)("div",{"data-testid":"deposit-picker-result-row",children:[l,i&&(0,a.jsx)(j,{message:i,isBorder:!0,theme:"dark"})]})};var G=i(20703),H=i(64502),V=i(61292),J=i.n(V);let X=e=>{var t;let{isSingle:i=!0,data:n,bank:l,pageUrl:o}=e,{amount:u,bonusRate:d,rate:m,profit:M,term:v,internalUrl:p,bankName:_,depositName:D}=n,f=(0,c.useRef)(M),N=(0,c.useRef)(null),T=(0,r.s4)(),g=(0,r._m)("m"),h=(0,c.useMemo)(()=>[(0,U.b)(_),u,"".concat(v.value,"_mes"),d?"".concat(m,"+").concat(d):m,(0,U.b)(D),M].join("__"),[u,_,d,D,M,m,v.value]),{reset:j}=(0,H.Z)({itemRef:N,eventCategory:o,eventAction:"show__offer__main__offers",eventLabel:h});(0,c.useEffect)(()=>{f.current!==M&&(f.current=M,j())},[M,j]);let x=[{value:"".concat((0,I.D$)(u)," ₽"),label:"Сумма"},{value:"".concat((0,I.D$)(M)," ₽"),label:"Доход ".concat(d?" + бонус":"")},{value:d?"".concat((0,I.Y4)(m,2)," + ").concat((0,I.Y4)(d,2)," %"):"".concat((0,I.Y4)(m,2)," %"),label:"Ставка ".concat(d?" + бонус":"")},{value:"".concat(v.value," мес"),label:"Срок"}],A="/vklady/".concat(p,"#amount=").concat(u,"&period=").concat(v.value),y=()=>{(0,S.lQ)({event:"data-event",eventAction:"click__button__open__main__offers",eventCategory:o,eventLabel:h})};return(0,a.jsxs)("div",{"data-testid":"deposit-picker-plate",className:(0,s.Z)(J().card,i&&J().single),ref:N,children:[(0,a.jsxs)("div",{className:J().header,children:[(0,a.jsx)("div",{className:J().logo,children:(null==l?void 0:l.logo_mob)&&(0,a.jsx)(G.default,{"data-testid":"image-component",width:40,height:40,alt:"Bank logo",src:null!==(t=null==l?void 0:l.logo_mob)&&void 0!==t?t:""})}),(0,a.jsxs)("div",{title:D,className:J().info,children:[(0,a.jsx)("div",{className:J().title,children:_}),(0,a.jsx)("div",{className:J().caption,children:D})]})]}),i&&(0,a.jsx)(r.zx,{as:"a",className:(0,s.Z)(J().button,J().single),variant:"primary",size:"xs",onClick:y,href:A,target:"_blank",children:"Открыть"}),(0,a.jsx)("div",{className:J().properties,children:x.map((e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:(0,s.Z)(J().title,J().property),children:e.label}),(0,a.jsx)("div",{className:(0,s.Z)(J().caption,J().property),children:e.value})]},t))}),(!i||!g&&T)&&(0,a.jsx)(r.zx,{as:"a",onClick:y,href:A,target:"_blank",className:J().button,variant:"primary",size:"xs",children:"Открыть"})]})};var K=i(53599),q=i(2894),$=i.n(q);let ee=e=>{var t;let{deposits:i,banks:n,message:l,pageUrl:o}=e,r=(0,c.useCallback)(e=>{var t;return null!==(t=n.find(t=>t.bic===(0,K.g)(e.bic)))&&void 0!==t?t:null},[n]),u=(0,c.useMemo)(()=>{var e;return(null==i?void 0:null===(e=i.offer.details)||void 0===e?void 0:e.deposits.length)===1},[i]);return(0,a.jsxs)("div",{"data-testid":"deposit-picker-plate-group",children:[(0,a.jsx)("div",{className:$().title,children:"Предложение для вас"}),l&&(0,a.jsx)("div",{className:$().notify,children:(0,a.jsx)(j,{message:l,isBorder:!0,theme:"dark"})}),(0,a.jsx)("div",{className:(0,s.Z)($().container,u&&$().single),children:i&&(null===(t=i.offer.details)||void 0===t?void 0:t.deposits.map(e=>(0,a.jsx)(X,{bank:r(e),isSingle:u,data:e,pageUrl:o},e.id)))})]})};function et(e){return e?"Ваш вклад завершится ".concat((0,u.WU)(new Date(e),"dd.MM.yyyy"),". Сравнили, сколько вы заработаете по вкладу в вашем банке, а сколько к той же дате — по вкладу на Финуслугах, если откроете его сегодня"):""}let ei=e=>{if(!e)return 16;let t=(null==e?void 0:e.rates.top_10)&&Object.values(e.rates.top_10);return t&&+(t.reduce((e,t)=>e+t)/t.length).toFixed()};var en=i(72434),el=i(13107),eo=i(93644),ea=i(58315),er=i(48570),es=i(61366),eu=i(18862),ec=i(2962),ed=i(13012),em=i(67168),eM=i(55961),ev=i(30491),ep=i(15498),e_=i.n(ep);let eD=e=>{let{platformDeposits:t,banks:i,anotherDeposits:n,advantagesDepositLists:l,discount:o,isOldUser:r,term:s,amount:u,pageUrl:d,questions:m,isPlusFiveBonus:M}=e,{depositData:v,openModal:p,handleOpen:_,handleClose:D}=(0,ev.j)({banks:i,anotherDeposits:n,platformDeposits:t,newPlatformDeposits:[]}),f=(0,c.useMemo)(()=>{let e={eventCategory:d,showItemAction:"show__offer__other__offers",clickItemAction:"click__offer__other__offers",openModalAction:"click__tooltip__more__other__offers",clickMoreButtonAction:"click__button__more__other__offers"};return l.slice(0,4).map(t=>(0,a.jsx)(em.B,{className:e_().listItem,data:t,discount:o,isOldUser:r,isPlatform:!0,onOpenDetailModal:_,events:e},t.id))},[l,o,_,r,d]),N=(0,c.useMemo)(()=>{var e,t;return null!==(t=null===(e=x.find(e=>{let{value:t}=e;return t===s}))||void 0===e?void 0:e.label)&&void 0!==t?t:"Любой"},[s]);if(!f.length)return null;let T="deposits_details_".concat(d,"_popup");return(0,a.jsxs)("div",{"data-testid":"deposit-best-offers",className:e_().depostBestOffers,children:[(0,a.jsxs)("h2",{className:e_().title,children:["Вклады на ",s," ",(0,eM._6)(+s,"месяц","месяца","месяцев")]}),(0,a.jsx)("div",{className:e_().content,children:(0,a.jsx)("div",{className:e_().contentInner,children:(0,a.jsx)("div",{className:e_().list,children:f})})}),v&&(0,a.jsx)(ed.Z,{data:v,discount:o,isOldUser:r,isOpen:p,depositSumm:String(u),depositTerm:N,onClose:D,initialAmount:Number(u),initialTermInMonths:Number(s),questions:m,isPlusFiveBonus:M,eventCategory:T})]})};var ef=i(13425),eN=i.n(ef);function eT(e){let{term:t,discounts:i,anotherDeposits:n,platformDeposits:l,banks:o,depositLists:r,advantagesDepositLists:s,isOldUser:u,onChangeAdvantagesDepositsList:d,onChangeIsDiscount:m,amount:M,pageUrl:v,questions:p,isPlusFiveBonus:_}=e,f=null==i?void 0:i.find(e=>"five_procent"===e.unique_key),{handleLoad:N,isLoading:T}=(0,ec.r)();return(0,c.useEffect)(()=>{N();let e=r.platform.filter(e=>(0,eo._)(e));d(e),m(e.some(e=>e.hasDiscount))},[r,N,d,m]),(0,a.jsxs)("section",{id:"#list",className:eN().container,children:[(0,a.jsx)(D.t,{children:(0,a.jsx)("p",{className:eN().title,children:"Другие выгодные предложения"})}),(0,a.jsx)(D.t,{children:(0,a.jsxs)("div",{className:eN().content,children:[T&&Array.from({length:4},(e,t)=>(0,a.jsx)("div",{"data-testid":"skeletons",children:(0,a.jsx)(eu.O,{className:eN().listItem})},t)),!T&&(0,a.jsx)("div",{children:(0,a.jsx)(eD,{banks:o,platformDeposits:l,anotherDeposits:n,term:t,amount:M,discount:f,isOldUser:u,advantagesDepositLists:s,pageUrl:v,questions:p,isPlusFiveBonus:_})})]})})]})}var eg=i(24551),eh=i.n(eg);let ej=e=>{let{monitoring:t,initialBanks:i,currentRate:n,offer:d,initialDiscounts:f,initialAnotherDeposits:N,initialPlatformDeposits:T,bounds:g,bankTowns:h,pageUrl:j,depositsTitle:x,depositsDescription:A,questions:y}=e,{customerId:w}=(0,ea.Z)(),[b,k]=(0,c.useState)(d),[L,z]=(0,c.useState)(3),[C,E]=(0,c.useState)(3e5),{bonuses:P,isHiddenPromo:Y,isPlusFiveBonus:Q,isOldUser:R}=(0,ea.Z)(f),[Z,F]=(0,c.useState)(Q||R),G=(0,c.useMemo)(()=>({amount:String(C),currency:er.Xf,withRefill:!1,filterAdditionalSettings:[en.a.deposits],importantDeposits:[],initialSort:!0,order:es.mr.Asc,sortType:es.ER.RatePlusBonus,isDiscount:Z,term:L,withCapitalization:!1}),[Z,L,C]),H=(0,c.useMemo)(()=>({initialAnotherDeposits:N,initialPlatformDeposits:T,bounds:g,isPlusFiveBonus:Q,isOldUser:R,filter:G,discounts:P,banks:i,bankTowns:h,allExtraInfo:{}}),[N,T,g,Q,R,G,P,i,h]),{depositLists:V,advantagesDepositLists:J,handleChangeAdvantagesDepositsList:X,platformDeposits:K,anotherDeposits:q}=(0,eo.Q)(H),$=(0,c.useMemo)(()=>J.filter(e=>Y?!e.promo:e),[J,Y]),eu=(0,c.useCallback)(e=>{F(e)},[]),ec=async e=>{let t=await ef(o.compare,{...e,...w&&{customerId:w}});return z(e.term.value),E(Number(e.amount)),k(t),eD.current=new Date(e.dateOfStart),e},ed=async e=>{let t=await ef(o.best,{...e,...w&&{customerId:w}});return z(e.term.value),E(Number(e.amount)),k(t),eD.current=new Date(e.dateOfStart),e},[em,eM]=(0,c.useState)(!1),[ev,ep]=(0,c.useState)(o.compare),e_=(0,c.useMemo)(()=>new Date,[]),eD=(0,c.useRef)(e_),ef=async(e,i)=>{var n,a;eM(!0);let r=i||{dateOfStart:O(new Date),amount:3e5,term:{value:3,type:l.Month},rate:t?ei(t):16,...w&&{customerId:w}},s=e===o.compare?null===(n=await m(r))||void 0===n?void 0:n.data:null===(a=await M(r))||void 0===a?void 0:a.data;return eM(!1),s},eN=async e=>{let t=await ef(e),i=e===o.best?"podobrat":"sravnit";(0,S.lQ)({event:"data-event",eventAction:"click__tab__".concat(i),eventCategory:j}),k(t),E(3e5),3!==L&&z(3),ep(e)},eg=e=>e?"+ ".concat((0,I.Y4)(e,2)," ₽"):0,ej=e=>e?"".concat((0,I.Y4)(e,2)," ₽"):0,ex=(0,c.useMemo)(()=>{var e,t,i,n,l,o;return b?[{label:"Доход к ".concat(b.inputEndOfTerm&&(0,u.WU)(new Date(b.inputEndOfTerm),"dd.MM.yyyy")),description:et(b.inputEndOfTerm),value:[{label:"По вашим параметрам",value:ej(b.inputDepositProfit)},{label:"На Финуслугах",value:ej(null===(e=b.offer.intermediateDepositProfit)||void 0===e?void 0:e.amount),profit:eg(null===(t=b.offer.intermediateDepositProfit)||void 0===t?void 0:t.positiveDelta)}],exclude:!b.offer.intermediateDepositProfit,id:1},{label:b.offer.intermediateDepositProfit?"Доход к ".concat(b.offer.endOfTerm&&(0,u.WU)(new Date(b.offer.endOfTerm),"dd.MM.yyyy")):"",description:"Доход к дате завершения вклада на Финуслугах",value:[{label:"По вашим параметрам",description:b.offer.intermediateDepositProfit?"":et(b.inputEndOfTerm),value:b.offer.intermediateDepositProfit?0:ej(b.inputDepositProfit)},{label:"На Финуслугах",value:ej(null===(i=b.offer.fullDepositProfit)||void 0===i?void 0:i.amount),profit:eg(null===(n=b.offer.fullDepositProfit)||void 0===n?void 0:n.positiveDelta)}],exclude:!b.offer.fullDepositProfit,id:2},{label:"",description:"",exclude:!b.offer.depositProfit,id:3,value:[{label:"По вашим параметрам",value:ej(b.inputDepositProfit)},{label:"На Финуслугах",value:ej(null===(l=b.offer.depositProfit)||void 0===l?void 0:l.amount),profit:eg(null===(o=b.offer.depositProfit)||void 0===o?void 0:o.positiveDelta)}]}].filter(e=>{let{exclude:t}=e;return!t}):[]},[b]),eA=(0,c.useMemo)(()=>ev===o.compare?function(e,t){if(!e)return"";let{intermediateDepositProfit:i,fullDepositProfit:n}=e.offer;return!((null==i?void 0:i.positiveDelta)||(null==n?void 0:n.positiveDelta))||i&&!i.positiveDelta&&(null==n?void 0:n.positiveDelta)?"Сравнили ваш вклад с вкладом на Финуслугах. Сейчас переоткрывать вклад невыгодно, но\xa0вы\xa0можете открыть еще\xa0один вклад у\xa0нас\xa0онлайн":(null==i?void 0:i.positiveDelta)||(null==n?void 0:n.positiveDelta)?t.getDate()===new Date().getDate()?"Сравнили, сколько вы\xa0заработаете по вашему вкладу, а\xa0сколько — по\xa0вкладу на\xa0Финуслугах, если\xa0откроете его\xa0сегодня":"Сравнили ваш\xa0вклад с\xa0вкладом на\xa0Финуслугах. Вы\xa0можете заработать больше, если\xa0закроете свой вклад и\xa0откроете новый на\xa0Финуслугах сегодня":""}(b,eD.current):function(e){if(!e)return"";let{details:t,depositProfit:i}=e.offer;return t.deposits.length>1&&(null==i?void 0:i.positiveDelta)?"С\xa0Финуслугами вы\xa0заработаете больше. Откройте несколько вкладов и\xa0управляйте ими\xa0онлайн":!(t.deposits.length>1)||(null==i?void 0:i.positiveDelta)?(null==i?void 0:i.positiveDelta)?(null==i?void 0:i.positiveDelta)?"Нашли для\xa0вас\xa0вклад на\xa0Финуслугах, с\xa0которым вы\xa0заработаете больше. Его\xa0можно открыть онлайн":"":"Вклад по\xa0вашим параметрам выгодный, но\xa0мы\xa0нашли для\xa0вас\xa0еще\xa0предложение на\xa0Финуслугах. Депозит можно открыть онлайн":"Вклад по\xa0вашим параметрам выгодный, но\xa0мы\xa0нашли для\xa0вас\xa0еще\xa0предложение на\xa0Финуслугах. Эти депозиты можно открыть онлайн"}(b),[b,ev]),ey=(0,c.useMemo)(()=>b&&b.offer.details.deposits.length>1?"Мы нашли для вас два вклада. Для одного из них банк установил лимит вложений. Но если разместите деньги на обоих, средняя ставка будет ".concat((0,I.Y4)(b.offer.details.averageRate),"%"):"",[b]),{asPath:ew,push:eb}=(0,el.P)(),ek=(0,r._m)("l"),eO=(0,c.useCallback)((e,t)=>{var i;let n=(null==e?void 0:null===(i=e.currentTarget)||void 0===i?void 0:i.textContent)?(0,U.b)(e.currentTarget.textContent):"glavnaya";(0,S.lQ)({event:"data-event",eventAction:"click_link_".concat(n),eventCategory:j}),t&&eb(t)},[j,eb]);return(0,a.jsxs)("main",{className:eh().page,"data-testid":"deposit-picker",children:[(0,a.jsx)(_.N,{title:x,description:A,path:ew}),(0,a.jsxs)(D.t,{children:[(0,a.jsx)(v.Z,{onClick:eO,isMobile:!ek,items:[{label:"Подбор вклада"}]}),(0,a.jsx)(r.X6,{type:"h1",className:eh().heading,children:"Подбор вклада"}),(0,a.jsxs)(r.X2,{gutters:{s:[8,8]},children:[(0,a.jsxs)(r.JX,{size:{xs:12,s:12,l:6},children:[(0,a.jsxs)("div",{className:(0,s.Z)(eh().block,"p-6"),children:[(0,a.jsx)(r.sY,{className:(0,s.Z)(eh().tab,em&&eh().disabled),size:"m",activeTabId:ev,tabs:[{id:"compare",label:"Сравнить"},{id:"best",label:"Подобрать"}],onTabChange:eN}),ev===o.compare&&(0,a.jsx)(B,{message:"Введите данные своего депозита, а\xa0мы\xa0сравним его\xa0с вкладом на\xa0Финуслугах и\xa0покажем, где\xa0вы\xa0больше заработаете",onSubmit:ec,buttonLabel:"Сравнить доход",banks:i,defaultDate:e_,currentTab:ev,currentRate:n,isPending:em,pageUrl:j}),ev===o.best&&(0,a.jsx)(B,{message:"Введите параметры вклада в\xa0любом банке. Мы\xa0сравним его\xa0с\xa0вкладом на\xa0Финуслугах и\xa0покажем вам\xa0выгоду",onSubmit:ed,buttonLabel:"Подобрать вклад",banks:i,currentTab:ev,defaultDate:e_,currentRate:n,isPending:em,pageUrl:j})]}),(0,a.jsx)("div",{className:eh().bannerDesktop,children:(0,a.jsx)(p.Z,{eventCategory:j})})]}),b&&(0,a.jsxs)(r.JX,{size:{xs:12,s:12,l:6},children:[(0,a.jsxs)("div",{className:(0,s.Z)(eh().block,"p-6"),children:[(0,a.jsx)("div",{className:(0,s.Z)(eh().title,"mb-6"),children:"Расчет дохода"}),(0,a.jsx)(W,{message:eA,rows:ex,pageUrl:j})]}),(0,a.jsx)("div",{className:(0,s.Z)(eh().block,"p-6",eh().list),children:(0,a.jsx)(ee,{message:ey,deposits:b,banks:i,pageUrl:j})}),(0,a.jsx)("div",{className:eh().bannerMobile,children:(0,a.jsx)(p.Z,{eventCategory:j})})]})]})]}),(0,a.jsx)("section",{children:(0,a.jsx)(eT,{anotherDeposits:q,platformDeposits:K,banks:i,discounts:P,depositLists:V,advantagesDepositLists:$,isOldUser:R,onChangeAdvantagesDepositsList:X,onChangeIsDiscount:eu,pageUrl:j,term:L,amount:C,questions:y,isPlusFiveBonus:Q})})]})}},53599:function(e,t,i){"use strict";function n(e){return e.startsWith("0")?e.replace("0",""):e}i.d(t,{g:function(){return n}})},72434:function(e,t,i){"use strict";var n,l;i.d(t,{a:function(){return n}}),(l=n||(n={})).amount="amount",l.term="term",l.currency="currency",l.banks="banks",l.refill="refill",l.capitalization="capitalization",l.bonds="bonds",l.deposits="deposits",l.premium="premium",l.monthlyPercent="monthlyPercent",l.preferentialTermination="preferentialTermination",l.interestAccrual="interestAccrual"},43892:function(e,t,i){"use strict";i.d(t,{HP:function(){return s},I7:function(){return D},MP:function(){return f},Nx:function(){return p},UD:function(){return _},VV:function(){return v},f1:function(){return m},u0:function(){return M},vc:function(){return c},vf:function(){return d},xV:function(){return u}});var n=i(46252),l=i(45526);let o=(e,t)=>Math.min(e,t.minimumPeriod?(0,l.I)(t.minimumPeriod):0),a=(e,t)=>Math.max(e,t.maximumPeriod?(0,l.I)(t.maximumPeriod):0),r=(e,t,i)=>{var n,o,a,r,s,u;t.push({from:null,to:null,term:null,amount:null,term_from:i.minimumPeriod?(0,l.I)(i.minimumPeriod):0,term_to:i.maximumPeriod?(0,l.I)(i.maximumPeriod):0,rate:i.maximumRate,amount_from:null!==(s=i.minimumAmount)&&void 0!==s?s:null,amount_to:null!==(u=i.maximumAmount)&&void 0!==u?u:null,diff:i.topRateDelta||0,tag:{title:(null==i?void 0:null===(n=i.tags)||void 0===n?void 0:n.title)||"",description:(null==i?void 0:null===(o=i.tags)||void 0===o?void 0:o.description)||"",deeplink:(null==i?void 0:null===(a=i.tags)||void 0===a?void 0:a.deepLink)||"",url:(null==i?void 0:null===(r=i.tags)||void 0===r?void 0:r.url)||""},optionId:e.id})},s=e=>{let t=[],i=1/0,n=0,l=1/0,s=0;for(let u of e)if(null==u?void 0:u.active)for(let e of u.currencies||[])for(let c of e.rates||[])r(u,t,c),i=Math.min(i,c.minimumAmount),n=Math.max(n,c.maximumAmount),l=o(l,c),s=a(s,c);return{rates:t,amountFrom:i,amountTo:n,termFrom:l,termTo:s}},u=e=>{var t,i;return(null==e?void 0:null===(i=e.interestPayments)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.method)==="CAPITALISATION"?1:0},c=e=>u(e)?"Да":"Нет",d=e=>(null==e?void 0:e.earlyTermination)===n.Z.PreferentialRateForWholeTerm||(null==e?void 0:e.earlyTermination)===n.Z.WithoutRecalculationOfInterest?1:0,m=e=>d(e)?"Да":"Нет",M=e=>{var t,i;return(null==e?void 0:null===(i=e.replenishment)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.type)==="NO_RESTRICTIONS"?1:0},v=e=>M(e)?"Возможно":"Невозможно",p=e=>{var t,i;return(null==e?void 0:null===(i=e.partialWithdrawal)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.type)==="NO_RESTRICTIONS"?1:0},_=e=>p(e)?"Возможно":"Невозможно",D=e=>{try{var t,i;if(!e)return"";let n=e.legal_entities;if("string"==typeof n){let e=JSON.parse(n);return Array.isArray(e)&&(null===(i=e[0])||void 0===i?void 0:i.name)?e[0].name:""}if(Array.isArray(n))return(null===(t=n[0])||void 0===t?void 0:t.name)||"";return""}catch(e){return""}},f=e=>({status_custom:null,currency_id:1,fin_exclusive:0,active_to:"",archive:0,bank_id:0,bank_name:"",bank_url:"",logo_mob:"",asSavingAccount:e,interest_rate:{comment:"",rates:[]},multicurrency:0,partial_withdrawal:{comment:"",comp:"",text:"",has:0},interest_payment:{comment:"",comp:"",text:"",daily:0,monthly:0,quarterly:0,half_year:0,annually:0,end:0},refill:{comment:"",comp:"",text:"",has:0},interest_capitalization:{comment:"",comp:"",has:0,text:""},preferential_termination:{comment:"",comp:"",text:"",has:0},amount:{from:null,to:null},term:{from:0,to:"",ladder_rates:0},online_application:{type:3,url:"",commercial:0,commercial_desc:"",order:null},m_updated_at:null,promo:!1,type:{seasonal:0,charitable:0,saving_account:e?1:0,child:0,pension:0,salary:0,insurance:0,investment:0,multicurrency:0,martgage:0}})},6454:function(e,t,i){"use strict";i.d(t,{O:function(){return N}});var n=i(90199),l=i(26719);let o=e=>(0,l.t)("/api/v1/deposit-facets/filtered",{method:"POST",body:JSON.stringify({name:e}),headers:{"Content-Type":"application/json"}},{isProductTagsApi:!0});var a=i(43892);let r=(e,t)=>{var i,n,l;return null!==(l=null==t?void 0:t.logo_mob)&&void 0!==l?l:(null==e?void 0:null===(i=e.contentAttributes)||void 0===i?void 0:i.bic)?"https://assets.finuslugi.ru/mp-assets/images/bank/logo-brandmark-bank-0".concat(null==e?void 0:null===(n=e.contentAttributes)||void 0===n?void 0:n.bic,".svg"):void 0},s=e=>{var t,i,n,l,o,a,r,s;let u=(null===(i=e.contentAttributes)||void 0===i?void 0:null===(t=i.integration)||void 0===t?void 0:t.integrationType)==="REFERAL"||(null===(l=e.contentAttributes)||void 0===l?void 0:null===(n=l.integration)||void 0===n?void 0:n.integrationType)==="INTERNAL_REFERAL";return{type:u?1:0,url:null!==(s=null===(a=e.contentAttributes)||void 0===a?void 0:null===(o=a.integration)||void 0===o?void 0:o.url)&&void 0!==s?s:"",commercial:u?1:0,order:null===(r=e.contentAttributes)||void 0===r?void 0:r.order}},u=(e,t,i)=>{var n,l,o,a;return{...null==e?void 0:e.interest_rate,rates:t.length?t:null!==(o=null===(n=e.interest_rate)||void 0===n?void 0:n.rates)&&void 0!==o?o:[],comment:null!==(a=null===(l=i.contentAttributes)||void 0===l?void 0:l.ratesComment)&&void 0!==a?a:""}},c=(e,t)=>{var i,n,l,o,a,r,s,u,c,d,m,M,v,p,_,D;return{...e.interest_payment,text:"",daily:(null==t?void 0:null===(o=t.interestPayments)||void 0===o?void 0:null===(l=o[0])||void 0===l?void 0:null===(n=l.periods)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.type)==="DAILY"?1:0,monthly:(null==t?void 0:null===(u=t.interestPayments)||void 0===u?void 0:null===(s=u[0])||void 0===s?void 0:null===(r=s.periods)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a.type)==="MONTHLY"?1:0,quarterly:(null==t?void 0:null===(M=t.interestPayments)||void 0===M?void 0:null===(m=M[0])||void 0===m?void 0:null===(d=m.periods)||void 0===d?void 0:null===(c=d[0])||void 0===c?void 0:c.type)==="QUARTERLY"?1:0,end:(null==t?void 0:null===(D=t.interestPayments)||void 0===D?void 0:null===(_=D[0])||void 0===_?void 0:null===(p=_.periods)||void 0===p?void 0:null===(v=p[0])||void 0===v?void 0:v.type)==="INTEREST_AHEAD"?1:0}},d=(e,t)=>({charitable:"charitable"===e.productType?1:0,child:"child"===e.productType?1:0,insurance:"insurance"===e.productType?1:0,investment:"investment"===e.productType?1:0,martgage:"mortgage"===e.productType?1:0,multicurrency:(null==t?void 0:t.currencies.length)>1?1:0,pension:"pension"===e.productType?1:0,salary:"salary"===e.productType?1:0,saving_account:"saving_account"===e.productType?1:0,seasonal:"seasonal"===e.productType?1:0}),m=e=>{var t,i,n,l,o,m,M,v,p,_,D,f,N,T,g,h,j,x,A,y,w,b,k;let{deposit:O,bank:L,oldDeposit:z}=e,C=null!=z?z:(0,a.MP)(!!(null==O?void 0:null===(t=O.attributes)||void 0===t?void 0:t.asSavingAccount)),I=null===(n=O.attributes)||void 0===n?void 0:null===(i=n.options)||void 0===i?void 0:i[0],E=(0,a.I7)(L),{rates:P,amountFrom:S,amountTo:U,termFrom:Y,termTo:Q}=(0,a.HP)(null!==(j=null===(l=O.attributes)||void 0===l?void 0:l.options)&&void 0!==j?j:[]),B=r(O,L);return{...C,...O,id:O.id,url:null!==(x=null==O?void 0:null===(o=O.contentAttributes)||void 0===o?void 0:o.url)&&void 0!==x?x:"",title:O.name,active_to:O.visibleTo,active_from:O.visibleFrom,archive:(null===(m=O.contentAttributes)||void 0===m?void 0:m.archive)?1:0,m_updated_at:null!==(A=null===(v=O.contentAttributes)||void 0===v?void 0:null===(M=v.updatedAt)||void 0===M?void 0:M.slice(0,10))&&void 0!==A?A:"",bank_id:Number(null==L?void 0:L.id),bank_name:null!==(y=null==L?void 0:L.name)&&void 0!==y?y:"",bank_url:null!==(w=null==L?void 0:L.url)&&void 0!==w?w:"",logo:B,logo_mob:B,legal_name:E,currency_id:Number(null===(f=O.attributes.options)||void 0===f?void 0:null===(D=f[0])||void 0===D?void 0:null===(_=D.currencies)||void 0===_?void 0:null===(p=_[0])||void 0===p?void 0:p.currency),online_application:s(O),interest_rate:u(C,P,O),amount:{...C.amount,from:S,to:U},term:{...C.term,from:Y,to:Q},partial_withdrawal:{...C.partial_withdrawal,has:(0,a.Nx)(I),text:(0,a.UD)(I)},interest_payment:c(C,I),refill:{comment:"",...C.refill,has:(0,a.u0)(I),text:(0,a.VV)(I)},interest_capitalization:{comment:"",...C.interest_capitalization,has:(0,a.xV)(I),text:(0,a.vc)(I)},preferential_termination:{...C.preferential_termination,has:(0,a.vf)(I),text:(0,a.f1)(I)},type:d(O,I),prolongation:{text:(null==I?void 0:I.prolongations)?"Предусмотрена":"Не предусмотрена"},all_russia:(null===(N=O.contentAttributes)||void 0===N?void 0:N.availableAllRussia)?1:0,custom_regions:null!==(b=null===(T=O.attributes)||void 0===T?void 0:T.regions)&&void 0!==b?b:[],multicurrency:(null==I?void 0:I.currencies.length)>1?1:0,finuslugiBonusPromotion:{},fin_exclusive:O.attributes.exclusive?1:0,asSavingAccount:null!==(k=O.attributes.asSavingAccount)&&void 0!==k&&k,promo:!1,floatingRateInformations:O.floatingRateInformations,external:{integrationType:null===(h=O.contentAttributes)||void 0===h?void 0:null===(g=h.integration)||void 0===g?void 0:g.integrationType}}};async function M(e,t){let{products:i,boundaryValues:{totalPages:l}}=e,o=Array.from({length:l-1},(e,t)=>(0,n.vI)("active",{page:t+1})),a=[...i,...(await Promise.all(o)).flatMap(e=>{var t,i;return null!==(i=null===(t=e.data)||void 0===t?void 0:t.products)&&void 0!==i?i:[]})];return t?a:a.filter(e=>!e.asSavingAccount)}async function v(e){var t,i;if(!e)return null;let{data:n}=await o(e);return(null==n?void 0:n.content.length)&&null!==(i=null===(t=(await o(e)).data)||void 0===t?void 0:t.content[0])&&void 0!==i?i:null}async function p(e){if(!(null==e?void 0:e.length))return[];let t=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i})(e).map(e=>(0,n.Cc)(e));return(await Promise.all(t)).flatMap(e=>{var t,i;return null!==(i=null===(t=e.data)||void 0===t?void 0:t.products)&&void 0!==i?i:[]})}async function _(e,t){if(null==t?void 0:t.length)return await p(t);let i=await (0,n.vI)();return(null==i?void 0:i.data)?await M(i.data,e):[]}async function D(e){var t,i;let l=null!==(i=null===(t=(await (0,n.ID)()).data)||void 0===t?void 0:t.content)&&void 0!==i?i:[];return e?l.filter(t=>e.includes(t.id)):l}async function f(e,t,i){var l;let o=[];if(i&&(o=await (0,n.PT)(String(i))),!i&&(null==t?void 0:t.length)&&(o=await (0,n.iT)(t)),!(null==o?void 0:o.length))return[];let a=new Map;return null==e||e.forEach(e=>a.set(+e.bic,e)),null!==(l=null==o?void 0:o.map(e=>{var t;return m({deposit:e,bank:(null==e?void 0:null===(t=e.contentAttributes)||void 0===t?void 0:t.bic)?a.get(e.contentAttributes.bic):void 0})}))&&void 0!==l?l:[]}async function N(e){var t,i;let{withSavingAccounts:l=!1,withAnotherDeposits:o=!0,withLeadGenDeposits:a=!1,withPlatformDeposits:r=!0,facetKey:s,banks:u,tagId:c,nonPlatformProducts:d,platformProducts:m,toggles:M}=null!=e?e:{},N=await v(s);if((null==M?void 0:M.FEATURE_TOGGLE_NEW_DEPOSITS)&&(m||d)){let[e,t,i]=await Promise.all([r?p(null!=m?m:[]):[],o?f(u,d,c):[],a?D():[]]);return{platform:e,another:t,leadGen:i}}let T=await _(l,null==N?void 0:N.depositsIds),g=o?await (0,n.X4)({oa_type:"1,2"}):{data:{deposits:null}},h=a?await D(null==N?void 0:N.productsIds):[];return{platform:T,another:null!==(i=null==g?void 0:null===(t=g.data)||void 0===t?void 0:t.deposits)&&void 0!==i?i:[],leadGen:h}}},45951:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n,l,o=i(20564),a=i(24866);let r=null!==(l=null!==(n=i(49079).env.NEXT_PUBLIC_ASSETS_BASE_URL)&&void 0!==n?n:(0,o.OB)("NEXT_PUBLIC_ASSETS_BASE_URL"))&&void 0!==l?l:"",s=e=>(0,a.xn)(r,"mp-assets/images/bank/logo-brandmark-bank-".concat(e,".svg"))},31535:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var n=i(92192),l=i(10414),o=i(66653),a=i(24760),r=i(61366),s=i(27593),u=i(71675);function c(e,t,i){return t&&e<t?t:i&&e>i?i:e}function d(e){let{deposits:t,banks:i,filter:d,bankTowns:m,cityId:M,isValid:v}=e;if(!v)return{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1};let{term:p}=d,_=p*l.F,D=null==i?void 0:i.reduce((e,t)=>({...e,[Number(t.id)]:t}),{});return t.reduce((e,t)=>{let i=function(e){var t,i,d,m,M,v,p,_;let{deposit:D,normalizedBanks:f,filter:N,defaultTerm:T}=e,{amount:g,term:h,currency:j,withMonthlyPercent:x=!1,withPreferentialTermination:A=!1,withCapitalization:y,withRefill:w}=N,b=null==f?void 0:f[Number(D.bank_id)],k=(null===(t=D.interest_capitalization)||void 0===t?void 0:t.has)===1,O=(0,u.EP)(N,String(null==b?void 0:b.id)),L=(0,n.z)(D.currency_id).unit,z=(!j||L===j)&&O,{amount:C,term:I,rate:E,tag:P}=z?1===D.term.ladder_rates?function(e,t,i){var n;let o="number"!=typeof t||e&&(!e.amount.from||e.amount.from<=t)&&(!e.amount.to||e.amount.to>=t),a=!i||Math.round(e.term.from/l.F)<=i&&Math.round(+e.term.to/l.F)>=i;return{term:c(i,e.term.from,Number(e.term.to)),amount:null!==(n=null!=t?t:e.amount.from)&&void 0!==n?n:1,rate:o&&a?e.interest_rate.rates.reduce((e,t)=>e+t.rate,0)/e.interest_rate.rates.length:null,tag:null}}(D,g,h):function(e,t,i){var n,o,a;let r=[...e.interest_rate.rates].sort((e,t)=>t.rate-e.rate).find(n=>{let o="number"!=typeof t||n.amount_from&&n.amount_from<=t&&(!n.amount_to||n.amount_to>=t),a=(0,s.i)(e).isLidgenDeposit||!i||(!n.term_from||Math.round(n.term_from/l.F)<=i)&&(!n.term_to||Math.round(n.term_to/l.F)>=i);return o&&a}),u=null!==(o=null==r?void 0:r.rate)&&void 0!==o?o:null,d=null!==(a=null==r?void 0:null===(n=r.tag)||void 0===n?void 0:n.title)&&void 0!==a?a:null;return{term:c(i,null==r?void 0:r.term_from,null==r?void 0:r.term_to),amount:!t&&r?r.amount_from:t,rate:u,tag:d}}(D,g,h):{amount:null,term:0,rate:null,tag:null},S=k&&0===D.partial_withdrawal.has&&(null===(i=D.refill)||void 0===i?void 0:i.has)===0,{nextRate:U,nextAmount:Y,nextTerm:Q,nextTag:B}=function(e){let{isCorrectValues:t,calculatedAmount:i,calculatedRate:n,calculatedTag:l,calculatedTerm:o,defaultTerm:a,amount:r}=e;return t?{nextRate:n,nextAmount:i,nextTerm:o,nextTag:l}:{nextRate:null,nextAmount:r,nextTerm:a,nextTag:null}}({isCorrectValues:z,calculatedRate:E,calculatedAmount:C,amount:g,calculatedTerm:I,defaultTerm:T,calculatedTag:P}),R=Number(Q),Z=(0,u.ax)({rate:U,depositSum:Y,isCapitalization:S,term:isNaN(R)?0:R,period:a.Z.Day,paymentFrequency:o.Z.InTheEnd});if(!Z)return;let F=(0,u.PF)(D,!!(null===(d=D.refill)||void 0===d?void 0:d.has));if(!(0,u.Oh)({computedFlags:F,currentFilters:{withCapitalization:y,withMonthlyPercent:x,withPreferentialTermination:A,withRefill:w}}))return{...F};let W={legalName:D.legal_name,logoMob:null!==(p=D.logo_mob)&&void 0!==p?p:null==b?void 0:b.logo_mob,bankName:null!==(_=D.bank_name)&&void 0!==_?_:""};return{deposit:{name:D.title,url:D.url,id:D.id,isCommercial:1===D.online_application.commercial,order:D.online_application.order||null,commercialDesc:D.online_application.commercial_desc,exclusive:!1,bic:"",isNotAmount:!g,isRefill:!!(null===(m=D.refill)||void 0===m?void 0:m.has),rateAmount:Y,computeData:Z,currencyUnit:L,tag:B,isCapitalization:k,term:Math.round(Q/l.F),termPeriod:null==D?void 0:D.term,isArchived:!!D.archive,isTermEmpty:0===Q,amount:null!==(v=null!==(M=D.amount.from)&&void 0!==M?M:D.amount.to)&&void 0!==v?v:0,amountRange:null==D?void 0:D.amount,type:D.type.saving_account?r.kv.SavingAccount:r.kv.Deposit,...W},...F}}({deposit:t,normalizedBanks:D,filter:d,defaultTerm:_,bankTowns:m,cityId:M});return i&&(e.hasMonthlyPercent||(e.hasMonthlyPercent=i.hasMonthlyPercent),e.hasPreferentialTermination||(e.hasPreferentialTermination=i.hasPreferentialTermination),e.hasCapitalization||(e.hasCapitalization=i.hasCapitalization),e.hasRefill||(e.hasRefill=i.hasRefill),i.deposit&&e.items.push({...i.deposit,specialOrder:null})),e},{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1})}},71675:function(e,t,i){"use strict";i.d(t,{EP:function(){return s},Oh:function(){return c},PF:function(){return u},ax:function(){return r}});var n=i(40966),l=i(26290),o=i(46252),a=i(56504);function r(e){let{rate:t,depositSum:i,term:n,floatingRateInformations:o,...r}=e;if(!(t&&i))return null;let{rate:s,onlyBonusFloatingRate:u}=function(e,t){var i,n;if(!t)return{rate:e,onlyBonusFloatingRate:0};let o=null!==(n=null===(i=t.find(e=>e.bankInfluenceEvent===l.D1.SALARY_OR_PENSION))||void 0===i?void 0:i.bonusPercentageValue)&&void 0!==n?n:0,a=t.reduce((e,t)=>(t.bankInfluenceEvent===l.D1.SPENDING&&e.push(t.bonusPercentageValue),e),[]),r=a.length?Math.max(...a):0;return{rate:e+o+r,onlyBonusFloatingRate:o+r}}(t,o),c=(0,a.Z)({...r,rate:s,depositSum:i,term:n});return c&&{...c,result:c.total,termDays:n,onlyBonusFloatingRate:u}}function s(e,t){var i;return!!(!(null===(i=e.activeBanks)||void 0===i?void 0:i.length)||t&&e.activeBanks.find(e=>t===e))}function u(e,t){var i,n,a;let r="bank_id"in e?(null===(i=e.interest_capitalization)||void 0===i?void 0:i.has)===1:(null===(n=e.options)||void 0===n?void 0:n[0].interestPayments[0].method)==="CAPITALISATION";return{hasMonthlyPercent:"bank_id"in e?1===e.interest_payment.monthly&&!r:(null===(a=e.options)||void 0===a?void 0:a[0].interestPayments[0].periods[0].type)===l.Lg.MONTH&&!r,hasPreferentialTermination:function(e){var t;if("bank_id"in e)return 1===e.preferential_termination.has;let i=null===(t=e.options)||void 0===t?void 0:t[0].earlyTermination;return i===o.Z.PreferentialRateForWholeTerm||i===o.Z.WithoutRecalculationOfInterest}(e),hasCapitalization:r,hasRefill:t}}function c(e){let{toggles:t}=(0,n.Z)(),{computedFlags:{hasCapitalization:i,hasMonthlyPercent:l,hasPreferentialTermination:o,hasRefill:a},currentFilters:{withCapitalization:r,withMonthlyPercent:s,withPreferentialTermination:u,withRefill:c}}=e;return!!Object.values(e.currentFilters).every(e=>!e)||((null==t?void 0:t.FEATURE_TOGGLE_NEW_DEPOSITS)?!(r&&!i||s&&!l||u&&!o||c&&!a):i&&r||l&&s||o&&u||a&&c)}},9498:function(e,t,i){"use strict";i.d(t,{O:function(){return I}});var n=i(40966),l=i(72434),o=i(96326),a=i(10414),r=i(66653),s=i(24760),u=i(71675);let c=e=>{let{type:t,value:i}=e;switch(!0){case t===o.e.DAY:return Math.round(i/a.F);case t===o.e.MONTH:return i;case t===o.e.YEAR:return 12*i;default:return 0}},d=e=>{let{type:t,value:i}=e;switch(!0){case t===o.e.DAY:return i;case t===o.e.MONTH:return Math.round(i*a.F);case t===o.e.YEAR:return Math.round(365*i);default:return 0}},m=e=>{let t=e.filter(e=>e.active);if(!t.length)return null;let i=t[0].currencies[0],n=i.rates[0];return t.reduce((e,t)=>{let l=t.currencies.reduce((e,t)=>{let i=t.rates.reduce((e,t)=>{let{maximumRate:i}=t;return i>e.maximumRate?t:e},t.rates[0]);return i.maximumRate>e.rate.maximumRate?{...t,rate:i}:e},{...i,rate:n});return l.rate.maximumRate>e.currency.rate.maximumRate?{...t,currency:l}:e},{...t[0],currency:{...i,rate:n}})},M=e=>{let{deposits:t,banks:i,specialDeposits:n}=e;return t.length?t.map(e=>{var t,l,o;let{contentAttributes:a,provider:M}=e,v=null!==(l=i[a.bic])&&void 0!==l?l:i[Number(M.bic)];if(!v)return;let p=m(e.attributes.options);if(!p)return;let{currency:{rate:_}}=p,D=(0,u.ax)({rate:_.maximumRate,depositSum:_.minimumAmount,isCapitalization:!1,term:d(_.minimumPeriod),period:s.Z.Day,paymentFrequency:r.Z.InTheEnd});return{name:e.name,url:a.url,id:e.id,logoMob:v.logo_mob,order:a.order,bankName:v.name,bic:String(a.bic),rateAmount:_.minimumAmount,computeData:D,currencyUnit:"₽",isArchived:!1,amount:_.minimumAmount,type:e.attributes.asSavingAccount?"savingAccount":"deposit",specialOrder:null!==(o=null===(t=n[e.id])||void 0===t?void 0:t.order)&&void 0!==o?o:null,term:c(_.minimumPeriod),isNotAmount:!0,isTermEmpty:!0,asSavingAccount:e.attributes.asSavingAccount}}).filter(Boolean):[]};var v=i(92344),p=i(61366),_=i(26290),D=i(45951),f=i(31535);let N={0:[1,2,3,4,5,6],1:[23,24],2:[8],4:[1,8,9],5:[12],10:[6]},T={INIT_MIN_TERM_DEFAULT:1,END_WORK_DAY_UTC_HOURS:13,isWorkTime(e){return!!e&&e.getUTCHours()<this.END_WORK_DAY_UTC_HOURS},isWeekend:e=>!!e&&[0,6].includes(e.getDay()),isHoliday(e){if(!e)return!1;let t=e.getMonth(),i=e.getDate();return t in N&&N[t].includes(i)}},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Number(e).toFixed(t))},h=e=>{let t=e.bond&&e.bond.api_data&&e.bond.api_data.product||{},i=t.minCouponPaymentSizePercent,n=e.income,l=t.price?t.price.total:1e3,o=g(Math.floor(e.depositValue/l)*l),r=Math.round(e.depositPeriod*a.F);return n&&o&&r?g(n/o*365/r*100,1):i},j=e=>{let t=new Date(e);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t},x=e=>{for(T.isWorkTime(e)||e.setDate(e.getDate()+1);T.isWeekend(e)||T.isHoliday(e);)e.setDate(e.getDate()+1);return e},A=(e,t)=>{let i=e.bond&&e.bond.api_data&&e.bond.api_data.product||{},n=i.price&&i.price.base,l=i.price?i.price.total:1e3,o=Math.floor(e.depositValue/l),a=g(o*l),r=(i.eventsData&&i.eventsData.events||[]).filter(e=>"INTR"===e.type),s=r.findIndex(e=>{let i=j(e.eventDate);return i.setHours(23),i.setMinutes(59),i.setSeconds(59),i.setMilliseconds(0),t>=j(e.eventStartDate)&&t<=i}),u=0;if(s>=0){let e=r[s],i=Math.floor((t.getTime()-j(e.eventStartDate).getTime())/864e5),l=g(e.paymentSizePercent*n*i/36500);return s>=1&&(u=r.slice(0,s).reduce((e,t)=>g(e+t.paymentSize),0)),g(o*n+o*l+o*u-a)}return 0},y=e=>{let t=j(x(new Date));return t.setDate(t.getDate()+e),t},w=e=>{let t=Math.round(e.depositPeriod*a.F);return e?A(e,y(t)):0};var b=i(46749),k=i(65169),O=i(45526),L=i(30652);let z=(e,t,i)=>e.filter(e=>t.length?t.includes(String(e.id)):!!i[e.id]||!e.archive),C=(e,t)=>e.filter(e=>t.length?t.includes(String(e.id)):!e.archive);function I(e){var t,i;let{initialPlatformDeposits:o=[],initialAnotherDeposits:c=[],initialLeadGenDeposits:d=[],filter:m,region:N,town:T,discounts:j,anotherDeposits:x,platformDeposits:A,newPlatformDeposits:y,bankTowns:I,banks:E,bounds:P,allExtraInfo:S,isPlusFiveBonus:U,isOldUser:Y,anotherDepositsInCount:Q=!0,getOnlyInitialData:B=!1,specialDeposits:R={},leadGenDeposits:Z=[],initialAllDepositsLength:F,initialCurrentDepositsLength:W,calculateFilterAbilities:G=!0,withSavingAccounts:H=!1}=e,{toggles:V}=(0,n.Z)(),{amount:J,term:X,sortType:K,order:q,importantDeposits:$=[],filterAdditionalSettings:ee=[l.a.bonds,l.a.deposits]}=m;if(B)return function(e){let{initialPlatformDeposits:t,initialAnotherDeposits:i,anotherDepositsInCount:n,initialLeadGenDeposits:l,initialAllDepositsLength:o,initialCurrentDepositsLength:a}=e,r=t.length+(n?i.length:0);return{platform:t,another:i,leadGen:l,allLength:o||r,currentLength:a||r,boundsIsEmpty:!0,fitsForMonthlyPercentFilter:!0,fitsForPreferentialTerminationFilter:!0,fitsForCapitalization:!0,fitsForRefill:!0}}({initialPlatformDeposits:o,initialAnotherDeposits:c,anotherDepositsInCount:Q,initialLeadGenDeposits:d,initialAllDepositsLength:F,initialCurrentDepositsLength:W});let et=null==j?void 0:j.find(e=>"five_procent"===e.unique_key),ei={...m,amount:J?Number(J):null,term:Number(null!=X?X:0)},en=null==E?void 0:E.reduce((e,t)=>({...e,[Number(t.bic)]:t}),{}),el=function(e){let{bounds:t,filter:i,isValid:n}=e;if(!n)return[];let{amount:l,term:o,currency:a}=i;return t.reduce((e,t)=>{var i,n;let r=(t&&(null===(i=t.api_data)||void 0===i?void 0:i.product)||{}).minCouponPaymentSizePercent,s={bond:t,depositValue:null!=l?l:0,depositPeriod:o},u=w(s),c=u<=5e6?.87:.85,d=l?g(h({...s,income:u})*c):r,m=u*c;if(d<=0||m<=0)return e;let M=Math.round(30.4375*s.depositPeriod);return[...e,{name:t.name,url:t.url,id:t.id,logoMob:null!==(n=t.image_url)&&void 0!==n?n:"",rateAmount:d,computeData:{result:m,profit:m,rate:d,effectiveRate:d,bonus:0,bonusRate:0,termDays:M,onlyBonusFloatingRate:0},currencyUnit:null!=a?a:"₽",tag:t.tag,term:null!=o?o:0,isBound:!0,isArchived:!1,amount:null!=l?l:0,type:p.kv.Bond,specialOrder:null}]},[])}({bounds:$.length?P.filter(e=>$.includes(String(e.id))):P,filter:ei,isValid:ee.includes(l.a.bonds)}),eo=ee.includes(l.a.deposits),{items:ea,...er}=function(e){let{deposits:t,banks:i,allExtraInfo:n,filter:l,region:o,discount:c,isOldUser:d,isPlusFiveBonus:m,isValid:M,specialDeposits:v}=e;return M?t.reduce((e,t)=>{var M,D;let f=function(e){var t,i,n;let{deposit:l,normalizedBanks:o,filter:c,allExtraInfo:d,region:m,isOldUser:M,isPlusFiveBonus:v,discount:D}=e,{amount:f,term:N,currency:T,withMonthlyPercent:g=!1,withPreferentialTermination:h=!1,withCapitalization:j,withRefill:x}=c,A=null==o?void 0:o[Number(l.bic)],y=null,w=f,L=Math.round(N*a.F),z=null,C=!!l.options[0].replenishment||l.asSavingAccount,I=!!l.options[0].partialWithdrawal,E="CAPITALISATION"===l.options[0].interestPayments[0].method,P=l.options[0].currencies[0],S=[],U=d[l.internalUrl],Y=function(e){let{deposit:t,region:i,bankId:n,filter:l,currencyUnit:o}=e,a=!t.regions||!(null==i?void 0:i.region_id)||t.regions.includes(+i.region_id),r=(0,u.EP)(l,n);return(!o||"₽"===o)&&r&&a}({deposit:l,region:m,currencyUnit:T,filter:c,bankId:String(null==A?void 0:A.id)}),Q=!1;if(Y){let e=l.options.filter(e=>e.active);Q=e[0].rateType===_.e4.FLOATING,e.forEach(e=>{var t;null===(t=e.currencies)||void 0===t||t.forEach(t=>{let i=function(e,t){var i;if((null==t?void 0:null===(i=t.algo)||void 0===i?void 0:i.id)==="mkb-nakop"){let{algo:e}=t;return e.expenseChips.map(t=>({minimumAmount:e.minAmount,maximumAmount:e.maxAmount,minimumPeriod:{type:"DAY",value:0},maximumPeriod:{type:"DAY",value:1/0},minimumRate:t.rateWithSalary}))}return e.rates}(t,U);i.forEach(e=>S.push(e.minimumAmount));let n=[...i].sort((e,t)=>t.minimumRate-e.minimumRate).find(e=>{let t="number"!=typeof f||e.minimumAmount&&e.minimumAmount<=f&&(!e.maximumAmount||e.maximumAmount>=f),i=!N||(!e.minimumPeriod||Math.round((0,O.I)(e.minimumPeriod)/a.F)<=N)&&(!e.maximumPeriod||Math.round((0,O.I)(e.maximumPeriod)/a.F)>=N);return t&&i});if(!n||n.minimumRate<Number(y))return;let{nextRefill:l,nextPartialWithdrawal:o,nextIsCapitalization:r,nextRate:s,nextTerm:u,nextTag:c,nextAmount:d}=function(e){var t,i;let{option:n,depositRate:l,currentTerm:o,currentAmount:a}=e;return{nextRefill:!!n.replenishment,nextPartialWithdrawal:!!n.partialWithdrawal,nextIsCapitalization:!!n.interestPayments.find(e=>!e.accountFromCustomer&&"CAPITALISATION"===e.method),nextRate:l.minimumRate,nextTag:null!==(i=null===(t=l.tags)||void 0===t?void 0:t.title)&&void 0!==i?i:null,nextTerm:function(e,t){let i=e,n=t.minimumPeriod&&(0,O.I)(t.minimumPeriod),l=t.maximumPeriod&&(0,O.I)(t.maximumPeriod);return n&&e<n&&(i=n),l&&e>l&&(i=l),i}(o,l),nextAmount:a||l.minimumAmount}}({depositRate:n,option:e,currentTerm:L,currentAmount:w});C=l,I=o,E=r,y=s,z=c,L=u,w=d})})}let B=!C&&!I&&E,{finuslugiBonusAllowed:R,finuslugiBonusPromotion:Z,floatingRateInformations:F}=l,W=(0,b.p)({currentAmount:null!=f?f:0,finuslugiBonusAllowed:R,finuslugiBonusPromotion:Z,isPlusFiveBonus:v,isOldUser:M,terms:Math.round(N*a.F)}),G=W?M?(0,k.pW)(Z):D:null,H=(0,u.ax)({rate:y,depositSum:w,isCapitalization:B,discount:G,term:L,period:s.Z.Day,paymentFrequency:function(e){var t,i,n,l,o;let a=null===(o=e.options)||void 0===o?void 0:null===(l=o[0].interestPayments)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:null===(i=n.periods)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.type;return"MONTHLY"===a?r.Z.OnceAMonth:"DAILY"===a?r.Z.EveryDay:r.Z.InTheEnd}(l),floatingRateInformations:F});if(!H)return;let V=(0,u.PF)(l,C);if(!(0,u.Oh)({computedFlags:V,currentFilters:{withCapitalization:j,withMonthlyPercent:g,withPreferentialTermination:h,withRefill:x}}))return{...V};let J={legalName:function(e){if(!e)return"";if("string"==typeof e){var t;return null===(t=JSON.parse(e)[0])||void 0===t?void 0:t.name}return null==e?void 0:e[0].name}(null==A?void 0:A.legal_entities),logoMob:null!==(i=null==A?void 0:A.logo_mob)&&void 0!==i?i:"",bankName:null!==(n=null==A?void 0:A.name)&&void 0!==n?n:""};return{deposit:{name:l.name,url:l.internalUrl,id:l.id,bic:l.bic,exclusive:l.exclusive,isNotAmount:!f,isRefill:C,rateAmount:w,computeData:H,currencyUnit:T,tag:z,isCapitalization:E,term:N||Math.round(L/a.F),isArchived:!!l.archive,isTermEmpty:0===N,tags:null!==(t=l.tags)&&void 0!==t?t:[],promo:l.promo,finuslugiBonusAllowed:R,finuslugiBonusPromotion:null!=Z?Z:null,floatingRateInformations:null!=F?F:null,amount:Math.min(...S),type:l.asSavingAccount?p.kv.SavingAccount:p.kv.Deposit,hasDiscount:W,currencies:P,asSavingAccount:l.asSavingAccount,isFloating:Q,...J},...V}}({deposit:t,normalizedBanks:i,filter:l,allExtraInfo:n,region:o,isOldUser:d,isPlusFiveBonus:m,discount:c});return f&&(e.hasMonthlyPercent||(e.hasMonthlyPercent=f.hasMonthlyPercent),e.hasPreferentialTermination||(e.hasPreferentialTermination=f.hasPreferentialTermination),e.hasCapitalization||(e.hasCapitalization=f.hasCapitalization),e.hasRefill||(e.hasRefill=f.hasRefill),f.deposit&&e.items.push({...f.deposit,specialOrder:null!==(D=null===(M=v[t.id])||void 0===M?void 0:M.order)&&void 0!==D?D:null})),e},{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}):{items:[],hasMonthlyPercent:!1,hasPreferentialTermination:!1,hasCapitalization:!1,hasRefill:!1}}({deposits:z(A,$,R),isOldUser:Y,isPlusFiveBonus:U,discount:et,filter:ei,banks:en,allExtraInfo:S,region:N,isValid:eo,specialDeposits:R}),{items:es,...eu}=(0,f.Z)({deposits:C(x,$),filter:ei,banks:E,bankTowns:I,cityId:null!==(t=null==T?void 0:T.id)&&void 0!==t?t:null==N?void 0:N.id,isValid:eo}),ec={sortType:K,increaseSort:"desc"===q},ed=[...el,...ea].sort((e,t)=>(0,L.Z)({deposit1:e,deposit2:t,isLeadGen:!1,...ec})),em=[...es].sort((e,t)=>(0,L.Z)({deposit1:e,deposit2:t,isLeadGen:!0,...ec})),eM=[...M({deposits:Z,banks:en,specialDeposits:R})].sort((e,t)=>(0,L.Z)({deposit1:e,deposit2:t,isLeadGen:!1,...ec})),ev=function(e){let{deposits:t,banks:i,sum:n=0,term:l=0,withSavingAccounts:o,isPlusFiveBonus:a}=e;return t.filter(e=>!e.archive&&(!e.asSavingsAccount||o)).map(e=>{var t;let o=i[Number(e.bic)],{name:r,withCapitalization:s,withRefill:u,finuslugiBonusAllowed:c,minimumAmount:d,minimumTermInDays:m,rate:M,bonusProfit:f,bonusRate:N,baseProfit:T,tags:g,promo:h,profitTerm:j,internalUrl:x,id:A,bic:y,asSavingsAccount:w,rateType:b,optionId:k}=e;return{name:r,url:x,id:A,bic:null==o?void 0:o.bic,exclusive:e.exclusive,isNotAmount:!n,isRefill:u,rateAmount:n&&l?n:d,computeData:{result:T,bonus:f,profit:T,effectiveRate:M,bonusRate:N,termDays:j>0?j:m,onlyBonusFloatingRate:0},currencyUnit:v.rO,isCapitalization:s,term:Math.round((j>0?j:m)/30),isArchived:!!e.archive,isTermEmpty:!l,tags:null!=g?g:[],promo:h,finuslugiBonusAllowed:c,amount:n,type:w?p.kv.SavingAccount:p.kv.Deposit,hasDiscount:c&&a,asSavingAccount:w,isFloating:b===_.e4.FLOATING,logoMob:(0,D.B)(y),bankName:null!==(t=null==o?void 0:o.name)&&void 0!==t?t:"",specialOrder:null,optionId:k}})}({deposits:null!=y?y:[],banks:en,sum:Number(m.amount),term:m.term,withSavingAccounts:H,isPlusFiveBonus:U}),ep=A.length+(Q?x.length:0)+ev.length,e_=ep;return V.FEATURE_TOGGLE_NEW_DEPOSITS&&(e_=null!==(i=null!=F?F:ep)&&void 0!==i?i:0),{notInitialDeposits:!0,platform:ev.length>0?ev:ed,another:em,leadGen:eM,allLength:e_,currentLength:ed.length+(Q?em.length:0)+ev.length,boundsIsEmpty:0===el.length,fitsForMonthlyPercentFilter:!G||er.hasMonthlyPercent||eu.hasMonthlyPercent,fitsForPreferentialTerminationFilter:!G||er.hasPreferentialTermination||eu.hasPreferentialTermination,fitsForCapitalization:!G||er.hasCapitalization||eu.hasCapitalization,fitsForRefill:!G||er.hasRefill||eu.hasRefill}}},30652:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}});var n=i(61366);function l(e){let t=e.computeData;return t?+(t.effectiveRate+t.bonusRate).toFixed(2):0}function o(e){var t,i,o,a,r,s,u,c,d,m,M,v,p,_,D,f,N,T,g,h,j,x;let{deposit1:A,deposit2:y,increaseSort:w,sortType:b,isLeadGen:k}=e,O=w?A:y,L=w?y:A,z=(null!==(t=A.specialOrder)&&void 0!==t?t:99999)-(null!==(i=y.specialOrder)&&void 0!==i?i:99999),C=Number(null!==(o=y.promo)&&void 0!==o&&o)-Number(null!==(a=A.promo)&&void 0!==a&&a)||Number(null!==(r=y.isCommercial)&&void 0!==r&&r)-Number(null!==(s=A.isCommercial)&&void 0!==s&&s)||("number"==typeof A.order?A.order:99999)-("number"==typeof y.order?y.order:99999),I=k?C:0;switch(!0){case b===n.ER.RatePlusBonus:return z||C||l(O)-l(L)||L.amount-O.amount;case b===n.ER.Profit:return z||I||(null!==(M=null===(u=O.computeData)||void 0===u?void 0:u.result)&&void 0!==M?M:0)-(null!==(v=null===(c=L.computeData)||void 0===c?void 0:c.result)&&void 0!==v?v:0)||(null!==(p=null===(d=O.computeData)||void 0===d?void 0:d.termDays)&&void 0!==p?p:0)-(null!==(_=null===(m=L.computeData)||void 0===m?void 0:m.termDays)&&void 0!==_?_:0);case b===n.ER.Rate:return z||I||(null!==(g=null===(D=O.computeData)||void 0===D?void 0:D.effectiveRate)&&void 0!==g?g:0)-(null!==(h=null===(f=L.computeData)||void 0===f?void 0:f.effectiveRate)&&void 0!==h?h:0)||(null!==(j=null===(N=O.computeData)||void 0===N?void 0:N.termDays)&&void 0!==j?j:0)-(null!==(x=null===(T=L.computeData)||void 0===T?void 0:T.termDays)&&void 0!==x?x:0)||L.amount-O.amount;default:return 0}}},27593:function(e,t,i){"use strict";i.d(t,{i:function(){return l}});var n=i(90926);let l=e=>{let{online_application:t,archive:i,external:l}=e,{commercial:o,type:a}=t,r=(!e.active_to||new Date(e.active_to)>=new Date)&&(!l||void 0===l.active||l.active);return{[n.P.isPlatformDeposit]:0===o&&3===a&&0===i&&r,[n.P.isNonPlatformDeposit]:1!==o&&3!==a&&0===i&&r,[n.P.isLidgenDeposit]:1===o&&3!==a&&0===i&&r,[n.P.isArchiveDeposit]:1===i||!r}}},45526:function(e,t,i){"use strict";i.d(t,{I:function(){return l}});var n=i(10414);let l=e=>{let t=e.value;switch(e.type){case"MONTH":t=e.value*n.F;break;case"YEAR":t=365.25*e.value}return Math.round(t)}},2082:function(e,t,i){"use strict";i.d(t,{Am:function(){return a},mA:function(){return n},ur:function(){return o}});let n=e=>e&&"object"==typeof e?0===Object.keys(e).length:!e,l=e=>e&&"object"==typeof e?Object.keys(e).length>0:!!e,o=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.every(l)};function a(e,t,i){return e?t:i}},93644:function(e,t,i){"use strict";i.d(t,{Q:function(){return s},_:function(){return r}});var n=i(2265),l=i(36467),o=i(6454),a=i(9498);function r(e){return!!e.isNotAmount||!!e.isTermEmpty||!!e.computeData}function s(e){let{toggles:t}=(0,l.ND)(),{withAnotherDeposits:i=!0,withSavingAccounts:s=!1,facetKey:u,withLeadGenDeposits:c=!1,banks:d}=e,[m,M]=(0,n.useState)([]),[v,p]=(0,n.useState)([]),[_,D]=(0,n.useState)([]),[f,N]=(0,n.useState)(!0),T=(0,n.useMemo)(()=>({...e,platformDeposits:m,anotherDeposits:v,getOnlyInitialData:f,leadGenDeposits:_}),[e,m,v,f,_]),[g,h]=(0,n.useState)(()=>(0,a.O)(T)),[j,x]=(0,n.useState)(g.platform.filter(e=>r(e)));return(0,n.useEffect)(()=>{h((0,a.O)(T))},[T]),(0,n.useEffect)(()=>{(0,o.O)({withAnotherDeposits:i,withSavingAccounts:s,facetKey:u,withLeadGenDeposits:c,banks:d,toggles:t}).then(e=>{let{platform:t,another:i,leadGen:n}=e;M(t),p(i),D(n),N(!1)})},[u,i,c,s,d,t]),{platformDeposits:m,anotherDeposits:v,depositLists:g,advantagesDepositLists:j,isLoading:f,handleChangeAdvantagesDepositsList:(0,n.useCallback)(e=>{x(e)},[])}}},30491:function(e,t,i){"use strict";i.d(t,{j:function(){return l}});var n=i(2265);let l=e=>{let{banks:t,anotherDeposits:i,platformDeposits:l,newPlatformDeposits:o}=e,[a,r]=(0,n.useState)(null),[s,u]=(0,n.useState)(!1),c=(0,n.useCallback)(e=>{var n,a,s,c;let{depositItem:d,isPlatform:m,href:M}=e,v=null,p=null,_=null,D=!d.exclusive&&!m&&!d.isCommercial;m?(v=null!==(n=(o.length>0?o:l).find(e=>e.internalUrl===d.url))&&void 0!==n?n:null,_=null!==(a=t.find(e=>Number(e.bic)===Number(null==v?void 0:v.bic)))&&void 0!==a?a:null,v&&_&&(r({platform:v,another:p,bank:_,href:M,isPlatform:m,isMass:D}),u(!0))):(p=null!==(s=i.find(e=>e.url===d.url))&&void 0!==s?s:null,_=null!==(c=t.find(e=>Number(e.id)===Number(null==p?void 0:p.bank_id)))&&void 0!==c?c:null,p&&_&&(r({platform:v,another:p,bank:_,href:M,isPlatform:m,isMass:D}),u(!0)))},[o,l,t,i]),d=(0,n.useCallback)(()=>{u(!1)},[]);return(0,n.useMemo)(()=>({depositData:a,openModal:s,handleOpen:c,handleClose:d}),[a,s,c,d])}},58315:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(2265),l=i(33730),o=i(92638),a=i(21822);function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,a.$1)(),r=(null==i?void 0:i["auth.gtm_customer_id"])||null,[s]=(0,n.useState)(e||[]),[u,c]=(0,n.useState)(!1),[d,m]=(0,n.useState)(!0),[M,v]=(0,n.useState)(!1),[p,_]=(0,n.useState)(t&&!!r);return(0,n.useEffect)(()=>{r&&(_(!0),(0,l.M)(r).then(e=>{let{data:t}=e;(!t||(null==t?void 0:t.features))&&t&&!t.features.includes(o.n.SHOW_ADDITIONAL_PERCENT_BONUS)&&(m(!1),v(!0),c(!0))}).finally(()=>{_(!1)}))},[r]),{customerId:r,isOldUser:M,isPlusFiveBonus:d,isHiddenPromo:u,isDiscountsLoading:p,bonuses:s}}},7949:function(e,t,i){"use strict";i.d(t,{S:function(){return l}});var n=i(2265);function l(e){let{itemRef:t,disabled:i=!1,mode:l="entry",initialView:o=!1,onShow:a}=e,r=(0,n.useRef)(null),[s,u]=(0,n.useState)(!1),[c,d]=(0,n.useState)(o),m=(0,n.useCallback)(e=>{let[i]=e;1===i.intersectionRatio&&!s&&(u(!0),null==a||a(),"entry"===l&&r.current&&t.current&&r.current.unobserve(t.current)),d(i.intersectionRatio>0)},[s,t,l,a]);return(0,n.useEffect)(()=>{i||!t.current||r.current||(r.current=new IntersectionObserver(m,{root:null,threshold:"entry"===l?[1]:[0]}),r.current.observe(t.current))},[i,m,s,t,l]),{isShowed:s,inView:c,resetShow:(0,n.useCallback)(()=>{u(!1),r.current&&t.current&&r.current.observe(t.current)},[t])}}},64502:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(2265),l=i(16243),o=i(7949);function a(e){let{itemRef:t,eventCategory:i,eventAction:a,eventLabel:r,disabled:s=!1}=e,u=(0,n.useCallback)(()=>{(0,l.lQ)({event:"data-event",eventLabel:r,eventCategory:i,eventAction:a,eventValue:""})},[a,i,r]),{resetShow:c}=(0,o.S)({itemRef:t,disabled:s,mode:"entry",onShow:u});return{reset:c}}},2962:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(2265);let l=()=>{let[e,t]=(0,n.useState)(!1),i=(0,n.useRef)(null);return{isLoading:e,handleLoad:(0,n.useCallback)(()=>{i.current&&clearTimeout(i.current),t(!0),i.current=setTimeout(()=>{t(!1)},1e3)},[])}}},37341:function(e){e.exports={breadcrumbs:"Breadcrumbs_breadcrumbs__wgDQB"}},2051:function(e){e.exports={calculator:"DepositDetailOfferModal_calculator__Z3YE8",calculatorTitle:"DepositDetailOfferModal_calculatorTitle__qIg_N",detailParams:"DepositDetailOfferModal_detailParams__uXZ8y",detailParamsWrapper:"DepositDetailOfferModal_detailParamsWrapper__fvX__",depositAd:"DepositDetailOfferModal_depositAd__CyxJ7",fivePercent:"DepositDetailOfferModal_fivePercent__Na_OH"}},2215:function(e){e.exports={row:"Header_row__G5E4t",columns:"Header_columns__W7W_5",column:"Header_column__LRNA6",plate:"Header_plate__Jqzjn",fullwidth:"Header_fullwidth__UTBxD",plateIcon:"Header_plateIcon__Kce8n",plateLabel:"Header_plateLabel__r_Zhi",caption:"Header_caption__mx7uf",closeButton:"Header_closeButton__S5L5m"}},41914:function(e){e.exports={action:"Action_action__1J7Vk",icon:"Action_icon__Z7FCc"}},28874:function(e){e.exports={container:"Actions_container__5xfLE",childContainer:"Actions_childContainer___T9Uj",actionArrow:"Actions_actionArrow___hsWA",childContainerMobile:"Actions_childContainerMobile__leT0L",action:"Actions_action__s9stk",actionArrowIcon:"Actions_actionArrowIcon__V5h2p",actionSocial:"Actions_actionSocial__gSvBD"}},67853:function(e){e.exports={drawer:"Layout_drawer__gXHfq",compactFooter:"Layout_compactFooter__PiChi",drawerContent:"Layout_drawerContent__mcyAp",mobilePopup:"Layout_mobilePopup__7l7hy"}},35047:function(e){e.exports={plate:"Footer_plate__cHI7H",noBg:"Footer_noBg__bZPjU",button:"Footer_button__hUQ0U"}},58550:function(e){e.exports={table:"DepositDetailTable_table__rSId5",item:"DepositDetailTable_item__eASY8",label:"DepositDetailTable_label__rvBz7",value:"DepositDetailTable_value__lYQCF",valueTip:"DepositDetailTable_valueTip__DC_V_",text:"DepositDetailTable_text__FRMTv",textTip:"DepositDetailTable_textTip__bcho8",detailed:"DepositDetailTable_detailed__MRWJd",descriptionText:"DepositDetailTable_descriptionText___NggJ"}},31694:function(e){e.exports={container:"DetailModalSkeleton_container__ml95j",column:"DetailModalSkeleton_column__DMS8m",row:"DetailModalSkeleton_row__9baTj",header:"DetailModalSkeleton_header__2h855",settings:"DetailModalSkeleton_settings__axyGV",bonuses:"DetailModalSkeleton_bonuses__kclvP",profit:"DetailModalSkeleton_profit__dTSTz",params:"DetailModalSkeleton_params__3eblD"}},82490:function(e){e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}},97202:function(e){e.exports={container:"DepositDetailOfferModal_container__JU8tV",mobilePopup:"DepositDetailOfferModal_mobilePopup__XhL0c",content:"DepositDetailOfferModal_content__GK6Ln",plate:"DepositDetailOfferModal_plate__PrPzh",plateIcon:"DepositDetailOfferModal_plateIcon__4mHU_",plateLabel:"DepositDetailOfferModal_plateLabel__gb0gs",caption:"DepositDetailOfferModal_caption__e_PIR",blockTitle:"DepositDetailOfferModal_blockTitle__3F9h3",paramsTable:"DepositDetailOfferModal_paramsTable__PLy4c",tableTitle:"DepositDetailOfferModal_tableTitle___Yllo",tableBody:"DepositDetailOfferModal_tableBody__oDmc1",tableList:"DepositDetailOfferModal_tableList___Cq6B",conditions:"DepositDetailOfferModal_conditions__PhsOz",offerPlate:"DepositDetailOfferModal_offerPlate__WV1MM",offerPlateIcon:"DepositDetailOfferModal_offerPlateIcon__YqZT1",plateContent:"DepositDetailOfferModal_plateContent__mqJPS",text:"DepositDetailOfferModal_text__Qw_e_",buttonActions:"DepositDetailOfferModal_buttonActions__gRShD",button:"DepositDetailOfferModal_button__u_k4J",descriptionText:"DepositDetailOfferModal_descriptionText__dE8Qq"}},51066:function(e){e.exports={tooltipText:"DepositTooltipTemplate_tooltipText__1GAbd",tooltipList:"DepositTooltipTemplate_tooltipList__yuKb_",listItem:"DepositTooltipTemplate_listItem__5eytV",description:"DepositTooltipTemplate_description__mYtwD"}},24562:function(e){e.exports={logo:"DepositsItem_logo__iStbL",placeholderLogo:"DepositsItem_placeholderLogo__UzcOO",detailIcon:"DepositsItem_detailIcon__0dtvC",detail:"DepositsItem_detail__8JOuJ"}},87021:function(e){e.exports={plate:"Plate_plate__S_Sp7",detailButton:"Plate_detailButton__Vlnz_",body:"Plate_body__3Kcou",left:"Plate_left__kERR7",right:"Plate_right__R7QSm",header:"Plate_header__0Jio0",tagsList:"Plate_tagsList__sNF_o",tag:"Plate_tag__CXr0H",primary:"Plate_primary__2nNLK",secondary:"Plate_secondary__rmjTR",red:"Plate_red__G9aAj",green:"Plate_green__29Hcv",orange:"Plate_orange__DGBL9",purple:"Plate_purple__0iafz",blue:"Plate_blue__4EXVf",titleWrapper:"Plate_titleWrapper__J6_mn",title:"Plate_title__5Jf3b",logoIcon:"Plate_logoIcon__VDTTF",noneCaption:"Plate_noneCaption__oA2iC",caption:"Plate_caption__oESgJ",logoTitle:"Plate_logoTitle__oY9wl",clickable:"Plate_clickable__5wv6N",advantagesList:"Plate_advantagesList__4GAWx",wide:"Plate_wide__z6fFB",shortList:"Plate_shortList__r7czJ",advantageItem:"Plate_advantageItem__jlCJf",advantageItemCaption:"Plate_advantageItemCaption__xTm6L",iconClassName:"Plate_iconClassName__cQzY0",advantageItemTitle:"Plate_advantageItemTitle__i_0Gt",longItem:"Plate_longItem__BUIxH",buttonsWrapper:"Plate_buttonsWrapper__T4ELm",block:"Plate_block__HPiKB",column:"Plate_column__0xnQ7",iconButton:"Plate_iconButton__HQSXZ",desktop:"Plate_desktop__8p8d1",mobile:"Plate_mobile__3vHcn",appButton:"Plate_appButton__gTPKF",openButton:"Plate_openButton__uyU5_"}},24551:function(e){e.exports={page:"DepositsPicker_page__VdP31",heading:"DepositsPicker_heading__uFBBq",block:"DepositsPicker_block__kAamB",title:"DepositsPicker_title__EiKEM",toggle:"DepositsPicker_toggle__R0ECx",list:"DepositsPicker_list__2YZ4V",tab:"DepositsPicker_tab__mzDTq",disabled:"DepositsPicker_disabled__Gb2b7",bannerDesktop:"DepositsPicker_bannerDesktop__0LOgs",bannerMobile:"DepositsPicker_bannerMobile___6c6X"}},13425:function(e){e.exports={title:"DepositList_title__vRoIE",container:"DepositList_container__HkmxS",content:"DepositList_content__4m8VY",button:"DepositList_button__c1ZbX"}},15498:function(e){e.exports={depostBestOffers:"DepositBestOffers_depostBestOffers__Cm3hK",title:"DepositBestOffers_title__cxUBA",listItem:"DepositBestOffers_listItem__T2_s3",content:"DepositBestOffers_content__NDFFv","content-inner":"DepositBestOffers_content-inner__yLfQt",list:"DepositBestOffers_list__305FZ",card:"DepositBestOffers_card__XMBBY",captionWrapper:"DepositBestOffers_captionWrapper__oLnp_",cardHeading:"DepositBestOffers_cardHeading__0zIPB",cardHeadingContent:"DepositBestOffers_cardHeadingContent__Idh6s",cardIcon:"DepositBestOffers_cardIcon__suPiZ",cardBtn:"DepositBestOffers_cardBtn__Wx1cT",cardHeadingSubtitle:"DepositBestOffers_cardHeadingSubtitle__Ceix0",cardHeadingTitle:"DepositBestOffers_cardHeadingTitle__z6oqi",cardAdvantage:"DepositBestOffers_cardAdvantage__W9Gxp",cardAdvantageTitle:"DepositBestOffers_cardAdvantageTitle__iDOdH",cardAdvantageValue:"DepositBestOffers_cardAdvantageValue__03s8V",btnMore:"DepositBestOffers_btnMore__trsuD",btnMoreText:"DepositBestOffers_btnMoreText__EZGQi",btnMoreIcon:"DepositBestOffers_btnMoreIcon__oHnNV",tooltipIcon:"DepositBestOffers_tooltipIcon__bpt_h"}},62527:function(e){e.exports={subbtitle:"DepositsPickerForm_subbtitle__aa_S_",message:"DepositsPickerForm_message__lkHrC"}},80977:function(e){e.exports={card:"DepositsPickerNotifyPlate_card__A30ui",border:"DepositsPickerNotifyPlate_border__ftUMp",icon:"DepositsPickerNotifyPlate_icon__ITdoK",caption:"DepositsPickerNotifyPlate_caption__o7nGM",dark:"DepositsPickerNotifyPlate_dark__F7nIc",themeBorder:"DepositsPickerNotifyPlate_themeBorder__G6QZE"}},61292:function(e){e.exports={card:"DepositsPickerPlate_card__8Lq2_",single:"DepositsPickerPlate_single__iRCY0",logo:"DepositsPickerPlate_logo__exr2l",button:"DepositsPickerPlate_button__ZlIHV",title:"DepositsPickerPlate_title__IcVeb",caption:"DepositsPickerPlate_caption__KpiAu",property:"DepositsPickerPlate_property__5fOlh",header:"DepositsPickerPlate_header__BA1a7",info:"DepositsPickerPlate_info__kGBgf",properties:"DepositsPickerPlate_properties__D3Nsc"}},94951:function(e){e.exports={profit:"DepositsPickerResultRows_profit__inl_n",detail:"DepositsPickerResultRows_detail__ZB3Yz",valueDash:"DepositsPickerResultRows_valueDash__t0SYy",values:"DepositsPickerResultRows_values__ulKMS",profitGroup:"DepositsPickerResultRows_profitGroup__10g0e",value:"DepositsPickerResultRows_value__gY6ud",label:"DepositsPickerResultRows_label__ZTk0r",rowLabel:"DepositsPickerResultRows_rowLabel__2Wr6P",header:"DepositsPickerResultRows_header__pK2Sr"}},2894:function(e){e.exports={container:"DepositsPlateGroup_container__fWlQU",single:"DepositsPlateGroup_single__Tt4M4",title:"DepositsPlateGroup_title__8EsrR",notify:"DepositsPlateGroup_notify__mfrgl"}}},function(e){e.O(0,[5501,5458,207,3544,3903,5757,7540,703,4795,4479,4737,5935,195,8151,7570,1655,6599,1361,8925,3643,9289,2040,5274,1842,2971,8069,1744],function(){return e(e.s=98541)}),_N_E=e.O()}]);