(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[885],{25464:function(e,t,n){"use strict";var i,a,o=n(94746);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=o.createElement("rect",{width:28,height:28,rx:14,fill:"#F80"})),a||(a=o.createElement("path",{d:"M13.984 4.163a5.025 5.025 0 1 0 0 10.05 5.025 5.025 0 0 0 0-10.05Zm0 7.102a2.077 2.077 0 1 1 0-4.154 2.077 2.077 0 0 1 0 4.154ZM15.758 18.21c2.012-.409 3.217-1.362 3.281-1.413a1.366 1.366 0 1 0-1.71-2.132c-.012.01-1.297.997-3.413.998-2.115-.001-3.428-.988-3.44-.998a1.366 1.366 0 0 0-1.71 2.132c.065.052 1.32 1.03 3.388 1.43l-2.882 3.012a1.366 1.366 0 1 0 1.967 1.896l2.677-2.852 2.948 2.87a1.366 1.366 0 1 0 1.93-1.933l-3.036-3.01ZM13.916 15.663c-.003 0 .003 0 0 0s.003 0 0 0Z",fill:"#fff"})))}},94731:function(e,t,n){"use strict";var i,a,o,l,r=n(94746);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",s({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("rect",{width:28,height:28,rx:14,fill:"#20A0E1"})),a||(a=r.createElement("path",{d:"m9.477 15.023 1.66 4.598s.208.43.43.43c.223 0 3.53-3.44 3.53-3.44l3.678-7.105-9.239 4.33-.06 1.187Z",fill:"#E3E7EC"})),o||(o=r.createElement("path",{d:"m11.679 16.202-.319 3.39s-.133 1.038.905 0c1.038-1.04 2.032-1.84 2.032-1.84",fill:"#C2C2C6"})),l||(l=r.createElement("path",{d:"M9.507 15.187 6.09 14.074s-.408-.165-.277-.541c.027-.078.082-.143.245-.257.757-.527 14.012-5.292 14.012-5.292s.375-.126.596-.042a.323.323 0 0 1 .22.24c.023.098.033.2.03.301-.002.088-.013.17-.02.297-.081 1.303-2.497 11.024-2.497 11.024s-.145.569-.663.588a.948.948 0 0 1-.691-.267c-1.016-.874-4.529-3.235-5.305-3.754a.148.148 0 0 1-.064-.105c-.01-.055.049-.122.049-.122s6.116-5.437 6.279-6.008c.013-.044-.035-.066-.099-.046-.406.149-7.448 4.596-8.226 5.087a.373.373 0 0 1-.172.01Z",fill:"#fff"})))}},94406:function(e,t,n){"use strict";var i,a,o=n(94746);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=o.createElement("rect",{width:28,height:28,rx:14,fill:"#4A76A8"})),a||(a=o.createElement("path",{d:"M15.099 19.367a.453.453 0 0 1-.304.437c-2.578.861-6.39-1.142-8.85-5.39-.76-1.315-1.486-2.83-1.934-4.552 0-.065-.003-.126-.006-.184-.023-.454-.034-.675 1.511-.675 1.152 0 1.586-.04 1.83.151.303.238.311.835 1.046 2.313 1.495 3.012 2.835 4.188 3.085 3.59a.306.306 0 0 0 .02-.123c-.004-.418-.025-2.832-.025-3.717 0-.603-.271-.977-.575-1.277-.457-.451-.184-.937.466-.937h2.289c1.392 0 1.447.069 1.444.651h.003v4.388c.017.084.047.14.087.182a.316.316 0 0 0 .217.091c.503.02 1.31-.652 2.69-3.035.326-.564.533-1 .69-1.33.195-.412.311-.656.48-.77.212-.142.45-.141 1.265-.138h.41c1.26 0 1.508 0 1.62.28.061.151.046.32-.007.473-.438 1.269-1.564 2.87-2.468 4.154l-.383.546c-.17.244-.186.54.014.762.184.204.444.466.737.762 1.36 1.374 3.45 3.485 2.128 3.923a.753.753 0 0 1-.233.032h-2.282c-.503.035-1.04-.558-1.617-1.196-.131-.145-.264-.291-.4-.434l-.312-.292c-.664-.627-1.325-1.25-2.074-1.346a.591.591 0 0 0-.282.03c-.133.05-.206.115-.246.208l-.032.073-.002.006v2.345Z",fill:"#fff"})))}},97793:function(e,t,n){"use strict";n.d(t,{Lp:function(){return m},VJ:function(){return v},X4:function(){return l},ID:function(){return u},iT:function(){return r},PT:function(){return s},qB:function(){return p},Cc:function(){return d},vI:function(){return c},rl:function(){return _}});var i=n(77337),a=n(90716);let o=e=>e?Object.keys(e).filter(t=>e[t]).map(t=>"".concat(t,"=").concat(e[t])).join("&"):"",l=e=>{let t=o(e);return(0,a.t9)("/money_data/Deposits.json".concat(t?"?".concat(t):""))},r=async e=>{var t;return null!==(t=(await (0,a.t9)("/api/v1/products/by-product-ids",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isMpSc:!0},!0)).data)&&void 0!==t?t:[]},s=async e=>{var t;let n=(0,i.xn)("/api/v1/products/tags",e);return null!==(t=(await (0,a.t9)(n,null,{isMpSc:!0},!0)).data)&&void 0!==t?t:[]},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"active",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,i.jb)((0,i.xn)("/api/".concat(n?"v2":"v1","/deposits"),e),null!=t?t:{});return(0,a.t9)(o,null,{isNewApi:!0})},u=()=>{let e=(0,i.jb)("/api/v2/products/search",{productTypes:"DEPOSIT",filtersExpression:"#contentAttributes?.url != null  and T(java.util.Arrays).asList('REFERAL').contains(#contentAttributes?.integration?.integrationType.name())"});return(0,a.t9)(e,{method:"GET"},{isProdCatApi:!0})},d=e=>{let t=(0,i.jb)("/api/v1/deposits/ids",{ids:e});return(0,a.t9)(t,{method:"GET"},{isNewApi:!0})},m=e=>(0,a.t9)("/api/v1/deposits/top/multi",{method:"POST",body:JSON.stringify(e)},{isNewApi:!0}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,a.t9)("/api/".concat(t?"v2":"v1","/deposits/no-auth/showcase"),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0})},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,a.t9)("/api/".concat(t?"v2":"v1","/deposits/active/income"),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0})},_=async e=>(0,a.t9)("/api/v1/deposits/terms/active",{method:"POST",body:JSON.stringify({customerId:e,useStandartTerms:!0})},{isNewApi:!0})},6164:function(e,t,n){"use strict";var i,a;n.d(t,{e:function(){return i}}),(a=i||(i={})).DAY="DAY",a.MONTH="MONTH",a.TERMLESS="TERMLESS",a.YEAR="YEAR"},13114:function(e,t,n){"use strict";n.d(t,{F:function(){return J}});var i,a,o=n(57437),l=n(75461),r=n(54365),s=n(33145),c=n(27648),u=n(50666),d=n(2265),m=n(28819),p=n(92449),v=n(31050),_=n(76670),f=n(52547),h=n(82659),g=n(28849),b=n(24584);(i=a||(a={})).addToList="addToList",i.like="like",i.share="share",i.chart="chart",i.arrow="arrow",i.arrowBack="arrowBack";let x={[a.addToList]:v.Z,[a.like]:g.Z,[a.share]:b.Z,[a.chart]:h.Z,[a.arrow]:_.Z,[a.arrowBack]:f.Z};var S=n(66558),y=n.n(S);let N=(0,d.memo)(e=>{let{icon:t,alt:n,iconClassName:i,className:a,href:l,onClick:u,name:d,...m}=e,p=(0,o.jsx)(s.default,{className:(0,r.Z)(y().icon,i),src:x[t],alt:n}),v=(0,r.Z)(y().action,a),_=()=>null==u?void 0:u(d);return l?(0,o.jsx)(c.default,{className:v,href:l,onClick:_,...m,children:p}):(0,o.jsx)("button",{className:v,onClick:_,...m,children:p})});N.displayName="Action";var C=n(57123),A=n.n(C);let k=(0,d.memo)(e=>{let{list:t,isMobile:n,onClickChild:i,onClickItem:l,className:s}=e,[c,u]=(0,d.useState)(null),m=(e,t)=>()=>{t&&u(t=>e===t?null:e),l(e)};return(0,d.useEffect)(()=>{u(null)},[n]),(0,o.jsx)("div",{className:(0,r.Z)(A().container,s),children:t.map(e=>(0,o.jsxs)(d.Fragment,{children:[e.childList&&(0,o.jsxs)(p.u,{isOpen:c===e.name,direction:"horizontal",className:(0,r.Z)(A().childContainer,n&&A().childContainerMobile),children:[e.childList.map(t=>(0,o.jsx)("button",{title:t.name,onClick:()=>i(e.name,t.name),className:(0,r.Z)(A().action,A().actionSocial),children:t.icon},t.name)),n&&(0,o.jsx)(N,{onClick:()=>u(null),alt:"close",icon:a.arrow,name:"share",className:(0,r.Z)(A().action,A().actionArrow),iconClassName:A().actionArrowIcon})]}),(0,o.jsx)(N,{onClick:m(e.name,!!e.childList),name:e.name,alt:e.name,icon:c!==e.name||n?e.icon:a.arrow,className:(0,r.Z)(A().action,c===e.name&&!n&&A().actionArrow),iconClassName:(0,r.Z)(c===e.name&&!n&&A().actionArrowIcon),title:e.title})]},e.name))})});k.displayName="Actions";var T=n(39666),E=n(54328),w=n(75873),j=n(72151),P=n(40780),I=n(31219),L=n(48034),M=n(81486),O={src:"/deposits/_next/static/media/warning-cat.19d38374.svg",height:329,width:348,blurWidth:0,blurHeight:0},D=n(38050),R=n(93033),Z=n(82158),Y=n.n(Z);let F=e=>{let{onClose:t,text:n,title:i}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)(s.default,{className:Y().image,src:O,alt:"warning cat",width:347.46,height:328}),(0,o.jsx)("h5",{className:Y().title,children:i}),(0,o.jsx)("p",{className:Y().text,children:n}),(0,o.jsx)(l.zx,{onClick:t,size:"s",className:Y().button,children:"Понятно, спасибо"})]})},B=(0,d.memo)(e=>(0,o.jsxs)(D.h,{children:[!e.isMobile&&(0,o.jsx)(R.dy,{contentClassName:Y().drawer,isOpen:e.isOpen,onClose:e.onClose,children:(0,o.jsx)(F,{...e})}),e.isMobile&&(0,o.jsx)(R.jr,{className:Y().mobilePopup,isOpen:e.isOpen,onClose:e.onClose,children:(0,o.jsx)(F,{...e})})]}));B.displayName="PromoStubModal";var z=n(77337),V=n(25464),U=n(94731),H=n(94406);let Q=e=>{let{dataUrl:t,pageUrl:n,title:i}=e,l=(0,z.xn)((0,u.env)("NEXT_PUBLIC_BASE_URL")||"",n,t),r=[{icon:(0,o.jsx)(H.Z,{}),url:"https://vk.com/share.php?url=".concat(l,"&title=").concat(i),name:"vk"},{icon:(0,o.jsx)(V.Z,{}),url:"https://connect.ok.ru/offer?url=".concat(l,"&title=").concat(i),name:"Ok"},{icon:(0,o.jsx)(U.Z,{}),url:"https://telegram.me/share/url?url=".concat(l,"&text=").concat(i),name:"telegram"}];return[{name:"share",icon:a.share,title:"Поделиться",childList:r}]};var W=n(32207),K=n.n(W);let G=(0,u.env)("NEXT_PUBLIC_BASE_URL"),q={white:"primary",blue:"primary",green:"green",yellow:"primary",orange:"orange",purple:"purple",lightPurple:"purple",pink:"primary"},J=(0,d.memo)(e=>{let{className:t,data:n,bank:i,isArchive:a,pageUrl:u,titlePromo:p,title:v,scrollBlockId:_,isMobile:f,isSmall:h,tagTheme:g="orange",moreAboutLinkText:b="",withNewMarkup:x,eventCategory:S="",hideShareLinks:y=!1,isTag:N=!0,isOldUser:C}=e,{id:A}=n,O=(0,d.useRef)({title:"",text:""}),[D,R]=(0,d.useState)(!1),Z=(0,d.useMemo)(()=>Q({dataUrl:n.url,pageUrl:u,title:v}),[n.url,u,v]),Y=(0,L.Z)(),F=(0,d.useCallback)(e=>{switch(e){case"share":(0,j.lQ)({eventCategory:S,eventAction:x?"click_share":"show_pop_up_share",eventLabel:x?String(A):void 0});break;case"compare":O.current={title:"Скоро заработает",text:"Мы уже заканчиваем работу над разделом. Скоро вы сможете сравнивать предложения и выбирать выгодные условия по кредиту"},R(!0);break;case"like":O.current={title:"\xabИзбранное\xbb скоро заработает",text:"Мы уже доделываем этот раздел и скоро представим его вам. Вы сможете добавлять в него лучшие предложения"},R(!0)}},[S,A,x]),z=(0,d.useCallback)((e,t)=>{if("share"===e){var n;let e=null===(n=Z.find(e=>"share"===e.name))||void 0===n?void 0:n.childList,i=null==e?void 0:e.find(e=>e.name===t);i&&((0,j.lQ)({eventCategory:S,eventAction:x?"click_share_"+i.name:"click_button_share",eventLabel:x?String(A):void 0,url:x?void 0:i.url}),window.open(i.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300"))}},[Z,x,S,A]),V=(0,d.useCallback)(()=>{(0,w.D)({eventCategory:u,eventAction:w.i.popup,eventActionText:"warning"}),R(!1)},[u]),U=(0,d.useCallback)(()=>_?(0,P.l)(_,{offset:Y,position:"top"}):null,[_,Y]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("section",{className:(0,r.Z)(K().wrapper,{[K().wrapperArchive]:a,[K().wrapperSmall]:a||h,[K().wrapperHideShareLinks]:y},t),children:[(0,o.jsxs)(m.t,{className:(0,r.Z)(K().company,h&&K().companySmall),children:[(0,o.jsx)("div",{children:(0,o.jsxs)("h1",{className:K().title,children:[v,(0,o.jsxs)("span",{className:(0,r.Z)(K().subTitle,a&&K().subTitleArchive),children:[!h&&(0,o.jsx)(l.Vp,{className:(0,r.Z)(K().chip,K().chipDesc),label:(0,T.Y)(p),variant:q[g]})," ",(0,o.jsxs)("span",{className:K().subTitleText,children:["\xab",n.title,"\xbb"]})]})]})}),(null==i?void 0:i.logoMob)&&(0,o.jsx)(c.default,{href:"".concat(G,"/banki/").concat(i.url,"/").concat(u),className:(0,r.Z)(K().logoContainer,(a||h)&&K().logoContainerArchive,!i.url&&K().disabled),target:"_self",onClick:()=>{(null==i?void 0:i.name)&&(0,j.lQ)({eventCategory:"vklady",eventAction:x?"click_company_logo_"+(0,I.b)(i.name):"click_link"+i.name,eventLabel:x?String(A):void 0,url:x?void 0:"".concat(G,"/banki/").concat(i.url)})},children:(0,o.jsx)(s.default,{className:K().logo,src:(0,E.B)(n.bic),alt:"логотип банка",width:48,height:48})})]}),(0,o.jsxs)(m.t,{className:(0,r.Z)(K().actionsContainer,h&&K().actionsContainerSmall),children:[(0,o.jsxs)("div",{className:K().actions,children:[N&&(0,o.jsx)(l.Vp,{className:(0,r.Z)(K().chip,(!h||f)&&K().chipMob),label:(0,T.Y)(p),variant:q[g]}),!a&&!y&&(0,o.jsx)(k,{isMobile:f||h,list:Z,onClickItem:F,onClickChild:z,isOldUser:C})]}),!a&&!!(null==b?void 0:b.length)&&(0,o.jsx)(M.j,{offPadding:!0,text:b,iconColor:"light",mainPageUrl:u,className:K().link,onClick:U})]})]}),(0,o.jsx)(B,{isMobile:f,onClose:V,text:O.current.text,title:O.current.title,isOpen:D})]})});J.displayName="Promo"},69393:function(e,t,n){"use strict";n.d(t,{Nu:function(){return o},VM:function(){return l},mB:function(){return a},vJ:function(){return r}});var i=n(6164);let a=Object.freeze({[i.e.DAY]:["день","дня","дней"],[i.e.MONTH]:["мес","мес","мес"],[i.e.YEAR]:["год","года","лет"],[i.e.TERMLESS]:["Бессрочно","Бессрочно","Бессрочно"]}),o=Object.freeze({[i.e.DAY]:["день","дня","дней"],[i.e.MONTH]:["месяц","месяца","месяцев"],[i.e.YEAR]:["год","года","лет"],[i.e.TERMLESS]:["Бессрочно","Бессрочно","Бессрочно"]}),l=Object.freeze({[i.e.DAY]:["дня","дней","дней"],[i.e.MONTH]:["месяца","месяцев","месяцев"],[i.e.YEAR]:["года","лет","лет"],[i.e.TERMLESS]:["Бессрочно","Бессрочно","Бессрочно"]}),r=Object.freeze({[i.e.DAY]:["дня","дней","дней"],[i.e.MONTH]:["мес","мес","мес"],[i.e.YEAR]:["года","лет","лет"],[i.e.TERMLESS]:["Бессрочно","Бессрочно","Бессрочно"]})},13922:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var i=n(72096);let a=e=>{var t;let n="end";return e.interest_payment.end&&(n="end"),e.interest_payment.annually&&(n="12"),e.interest_payment.half_year&&(n="6"),e.interest_payment.quarterly&&(n="3"),e.interest_payment.monthly&&(n="1"),e.interest_payment.daily&&(n="daily"),null!==(t=i.$k.find(e=>n===e.value))&&void 0!==t?t:i.$k[0]}},59475:function(e,t,n){"use strict";n.d(t,{S6:function(){return r},TE:function(){return s},im:function(){return u},sI:function(){return v}});var i=n(40309),a=n(38174),o=n(23769);let l=(e,t,n,i)=>e.filter(e=>{var a;let o=null!==(a=e.amount_from)&&void 0!==a?a:n,l=e.amount_to&&e.amount_to>0?e.amount_to:i;return t>=o&&t<=l}).sort((e,t)=>e.term_from-t.term_from),r=(e,t)=>{let n=String(e.rate).replace(".",",");return{tag:e.tag,id:e.term_from,value:e.term_from,label:"".concat((0,o.E)(e.term_from)," - ").concat(n,"%"),rate:e.rate+(null!=t?t:0),optionId:e.optionId}},s=(e,t,n)=>{var i;let o=null===(i=e.interest_rate.rates)||void 0===i?void 0:i[0],s=(null==o?void 0:o.term_from)===(null==o?void 0:o.term_to),c=(0,a.j)(e.currency_id),u=Number(e.amount.from||c.from),d=Number(e.amount.to||c.to),m=l(e.interest_rate.rates,t,u,d),p=m.map(e=>r(e,n)),v=m.map(e=>e.term_to);return{minSum:u,maxSum:d,isFixedTerms:s,termChips:p,minTerm:Math.min(...m.map(e=>e.term_from)),maxTerm:Math.max(...v)||3650,terms:m}},c=Object.freeze({[i.Z.EveryDay]:"DAILY",[i.Z.Weekly]:"WEEKLY",[i.Z.OnceAMonth]:"MONTHLY",[i.Z.Quarterly]:"QUARTERLY",[i.Z.Semiannually]:"SEMIANNUALLY",[i.Z.Annually]:"ANNUALLY",[i.Z.InTheEnd]:"IN_THE_END",[i.Z.SpecifiedPeriodInDays]:"SPECIFIED_PERIOD_IN_DAYS"}),u=(e,t,n)=>{var i,a,o,l;if((null==n?void 0:n.isCapitalization)!==void 0&&void 0!==n.paymentFrequency)return{isCapitalization:n.isCapitalization,paymentFrequency:c[n.paymentFrequency]};let r=(null===(i=e.interest_capitalization)||void 0===i?void 0:i.has)===1,s=m(e.interest_payment),u=t&&e.options?e.options.find(e=>e.id===t.optionId):void 0;if((null==n?void 0:n.preferSelectedOption)&&(null==u?void 0:u.interestPayments.length)){let e=null!==(o=u.interestPayments.find(e=>!e.accountFromCustomer&&"CAPITALISATION"===e.method))&&void 0!==o?o:u.interestPayments.find(e=>"CAPITALISATION"===e.method),t=null!=e?e:u.interestPayments[0];return{isCapitalization:!!e,paymentFrequency:null!==(l=null===(a=t.periods[0])||void 0===a?void 0:a.type)&&void 0!==l?l:s}}return u?u.interestPayments.reduce((e,t)=>"CAPITALISATION"===t.method?{isCapitalization:!0,paymentFrequency:s}:e,{isCapitalization:r,paymentFrequency:s}):{isCapitalization:r,paymentFrequency:s}},d=Object.freeze({daily:"DAILY",weekly:"WEEKLY",monthly:"MONTHLY",quarterly:"QUARTERLY",half_year:"SEMIANNUALLY",annually:"ANNUALLY",end:"MONTHLY",specified_period_in_days:"SPECIFIED_PERIOD_IN_DAYS"}),m=e=>Object.entries(e).reduce((e,t)=>{let[n,i]=t;return i&&(null==d?void 0:d[n])?null==d?void 0:d[n]:e},"IN_THE_END"),p=Object.freeze({DAILY:i.Z.EveryDay,WEEKLY:i.Z.Weekly,MONTHLY:i.Z.OnceAMonth,QUARTERLY:i.Z.Quarterly,SEMIANNUALLY:i.Z.Semiannually,ANNUALLY:i.Z.Annually,IN_THE_END:i.Z.OnceAMonth,INTEREST_AHEAD:i.Z.InTheEnd,SPECIFIED_PERIOD_IN_DAYS:i.Z.SpecifiedPeriodInDays}),v=e=>{var t;return null!==(t=null==p?void 0:p[e])&&void 0!==t?t:i.Z.InTheEnd}},62359:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});let i=(e,t)=>{if(e.period){let t=Number(e.period);return isNaN(t)?91:Math.round(30.4375*t)}if(e.d_period){let t=Number(e.d_period);return isNaN(t)?91:t}return(null==t?void 0:t.id)==="mkb-nakop"?t.defaultTermDays:1}},6149:function(e,t,n){"use strict";n.d(t,{O:function(){return K}});var i=n(57437),a=n(35563),o=n(75461),l=n(54365),r=n(21652),s=n.n(r),c=n(50666),u=n(2265),d=n(82619),m=n(24186),p=n(13114),v=n(23468),_=n(11359),f=n(65716),h=n(69589),g=n(37162),b=n(69393),x=n(62359),S=n(68595),y=n(63661),N=n(39402),C=n(96742),A=n(2493),k=n(72151),T=n(40780),E=n(31219),w=n(55953),j=n(14441),P=n(50487),I=n(48034),L=n(32523),M=n(72096),O=n(96024),D=n.n(O),R=n(13922);let Z=e=>{let{data:t,currentRate:n,urlFirst:i,urlSecond:a}=e;return t.online_application.commercial&&t.online_application.url?t.online_application.url:(null==n?void 0:n.optionId)?i:a};var Y=n(70104),F=n(36578);let B=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальная сумма - ".concat((0,Y.Y4)(e)," ₽");if(+n>t)return"Максимальная сумма - ".concat((0,Y.Y4)(t)," ₽")}},z=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальный срок - ".concat((0,Y.Y4)(e)," ").concat((0,F._6)(e,"день","дня","дней"));if(+n>t)return"Максимальный срок - ".concat((0,Y.Y4)(t)," ").concat((0,F._6)(t,"день","дня","дней"))}};var V=n(59475);let U=(e,t,n)=>e<t?t:e>n?n:e,H=(e,t)=>e.term_from<=t&&t<=e.term_to?0:t<e.term_from?Math.round(e.term_from-t):Math.round(t-e.term_to),Q=(e,t,n,i)=>{let a=n.filter(t=>e>=(t.amount_from?t.amount_from-5:0)&&e<=(t.amount_to?t.amount_to+5:1/0)),o=a.find(e=>e.optionId===i&&0===H(e,t));if(o)return(0,V.S6)(o);a.sort((e,n)=>H(e,t)-H(n,t));let l=a[0];return l&&(0,V.S6)(l)},W=e=>Math.round(+e/30.4375),K=e=>{var t,n,r,O,Y,F,H,K,G;let{isMobile:q,data:J,depositType:X,onChangeData:$,discount:ee,isOldUser:et,isPlusFiveBonus:en,company:ei,extraInfo:ea,isShowDepositTip:eo,asModal:el=!1,className:er,titleClassName:es,initialAmount:ec,initialIsCapitalization:eu,initialOptionId:ed,initialPaymentFrequency:em,initialTermInMonths:ep,initialTermInDays:ev,customActions:e_,shortChipsList:ef=!1,firstDepositBonusTitle:eh=!1,pageUrl:eg="vklady",isHidePromo:eb=!1,promoClassName:ex,calculatorClassName:eS,computeClassName:ey,inputSize:eN="s",withChart:eC=!0,collapseChevronSrc:eA,tipIcon:ek,tagIcon:eT,customTagTitle:eE,hideShareLinks:ew=!1,hideExternalLinks:ej=!1,amountInputLabel:eP="",isPromoTag:eI=!0,computeHeader:eL,computeTag:eM,withNewMarkup:eO,eventCategory:eD,amount:eR,term:eZ,localCalculations:eY=!1}=e,{asPath:eF,hash:eB}=(0,j.P)(),[ez,eV]=(0,u.useState)(!1),eU=(0,u.useRef)(null),eH=(0,u.useRef)(null),eQ=(0,u.useRef)(null),[eW,eK]=(0,u.useState)(!1),[eG,eq]=(0,u.useState)(null),[eJ,eX]=(0,u.useState)(),[e$,e0]=(0,u.useState)(()=>{var e,t;if((null===(e=ea.algo)||void 0===e?void 0:e.id)!=="mkb-nakop")return;let{expenseChips:n,defaultExpenseChip:i}=ea.algo;return null!==(t=n.find(e=>e.id===i))&&void 0!==t?t:n.at(-1)}),[e1,e3]=(0,u.useState)(()=>{var e;return(null===(e=ea.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&ea.algo.salaryToggleDefaultValue}),e2=(0,I.Z)(),e4=(0,C.z)(J.currency_id),{events:e6,value:e5,formattedValue:e7,handleChange:e8}=(0,P.G)({type:"float",format:"currency",unit:e4.unit,defaultValue:String(J.amount.from),maxLength:20,maxFractionalLength:2}),{events:e9,value:te,formattedValue:tt,handleChange:tn}=(0,P.G)({type:"int",unit:"day",maxLength:10,defaultValue:()=>{var e;return(null===(e=ea.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?String(ea.algo.defaultTermDays):"1"}}),{floatingRate:ti}=(0,y.a)(null!==(Y=J.floatingRateInformations)&&void 0!==Y?Y:[]),[ta,to]=(0,u.useState)(ti),{isFixedTerms:tl,termChips:tr,minSum:ts,maxSum:tc,minTerm:tu,maxTerm:td}=(0,u.useMemo)(()=>{var e;let t=(0,V.TE)(J,Number(e5),ta);return(null===(e=ea.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&(t.maxSum=ea.algo.maxAmount,t.minSum=ea.algo.minAmount),t},[J,ea.algo,e5,ta]),tm=X===h.P.isArchiveDeposit,tp=!ea.algo&&tl&&eJ?eJ.value:te,tv=!!J.type.saving_account,t_=(0,u.useMemo)(()=>{let e=[];return tl&&eJ&&!Array.isArray(eJ)&&e.push(eJ),!tl&&te&&e.push({label:tt,id:"term"}),e5&&e.push({label:e7,id:"amount"}),e},[tl,eJ,e7,e5,tt,te]),tf=(0,u.useMemo)(()=>{var e;let t=J.interest_rate.rates.filter(e=>{let t=0===e.amount_from||null===e.amount_from?ts:e.amount_from,n=e.amount_to&&e.amount_to>0?e.amount_to:tc,i=e.term_to>0?e.term_to:td;return+tp>=e.term_from&&(tv||+tp<=i)&&+e5>=t&&+e5<=n});return ed&&(null==eJ?void 0:eJ.optionId)&&null!==(e=t.find(e=>e.optionId===eJ.optionId))&&void 0!==e?e:t[0]},[tp,J.interest_rate.rates,ed,tv,tc,td,ts,null==eJ?void 0:eJ.optionId,e5]),th=(0,u.useMemo)(()=>{if(ea.algo){if("mkb-nakop"===ea.algo.id&&e$)return e1?e$.rateWithSalary:e$.rate}else if(tf)return tf.rate;return 0},[tf,ea.algo,e1,e$]),tg=(0,u.useMemo)(()=>{var e;if(!(tl?null==eJ?void 0:eJ.value:te))return;let t=J.interest_rate.rates.sort((e,t)=>{var n,i;return(null!==(n=e.amount_from)&&void 0!==n?n:ts)-(null!==(i=t.amount_from)&&void 0!==i?i:tc)}),n=null===(e=t.find(e=>(null==tf?void 0:tf.amount_from)&&e.amount_from&&e.amount_from>tf.amount_from))||void 0===e?void 0:e.amount_from;return t.find(e=>tf&&e.amount_from===n&&e.term_from===tf.term_from)},[tf,J,tl,tc,ts,eJ,te]),tb=(0,u.useMemo)(()=>tf&&eG&&tf.amount_from?{difference:tf.rate-eG.rate,minAmount:tf.amount_from}:tg&&tf&&tg.amount_from?{difference:tg.rate-tf.rate,minAmount:tg.amount_from}:void 0,[tg,tf,eG]),{urlFirst:tx,urlSecond:tS}=(0,N._)({asPath:eF,productId:J.id,optionId:null==tf?void 0:tf.optionId,amount:+e5,durationValue:J.asSavingAccount?void 0:tp,firstBaseUrl:null!==(F=(0,c.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==F?F:"",secondBaseUrl:null==tf?void 0:null===(t=tf.mp)||void 0===t?void 0:t.url}),ty=Z({data:J,currentRate:tf,urlFirst:tx,urlSecond:tS}),tN=B(ts,tc,e5),tC=tN||0===td?void 0:z(tu,td,te),tA=(0,u.useCallback)(()=>{eq(null),eK(!1)},[]),tk=(0,u.useCallback)(e=>{e8(null!=e?e:""),tA()},[e8,tA]),tT=(0,u.useCallback)(e=>{tn(null!=e?e:""),tA()},[tn,tA]),tE=(0,u.useCallback)(()=>{var e;q&&eU.current&&(eV(!0),eU.current&&(0,T.l)(eU.current,{offset:e2,position:"top",delay:300})),q||null===(e=eH.current)||void 0===e||e.focus()},[q,e2]),tw=(0,u.useCallback)(e=>{let t=tr.find(t=>t.id===e);if(t){let e=(0,E.b)(t.label);(0,k.lQ)({event:"data-event",eventAction:eO?"click_srok_"+e:"click_button_".concat(e),eventCategory:eO?eD:eg,eventLabel:J.id}),eX(t)}tA()},[J.id,eD,eg,tA,tr,eO]),tj=(0,u.useCallback)(e=>{e&&tg&&tg.amount_from?(tf&&eq(tf),e8(tg.amount_from),tl?eX((0,V.S6)(tg,ta)):tn(tg.term_from),eK(!0)):e||((null==eG?void 0:eG.amount_from)&&(e8(eG.amount_from),tl?eX((0,V.S6)(eG,ta)):tn(eG.term_from),eq(null)),eK(!1))},[tg,tf,e8,tl,ta,tn,eG]);(0,u.useEffect)(()=>{if(s()(eQ.current,eB))return;let e={amount:null!=ec?ec:String(ts),period:null!=ep?ep:null,d_period:null!=ev?ev:0,...eB},t=(0,x.X)(e,ea.algo),n=U(+e.amount,ts,tc);e8(n),eX(Q(n,t,J.interest_rate.rates,ed)),tn(t),eQ.current=eB},[J.interest_rate.rates,ea.algo,e8,tn,eB,ec,ed,ev,ep,tc,ts]),(0,u.useEffect)(()=>{eQ.current&&eX(e=>{let t=tr.find(t=>ed&&(null==e?void 0:e.optionId)?t.optionId===e.optionId&&t.value===e.value:t.label===(null==e?void 0:e.label));if(t)return t;let n=tr.find(t=>t.value===(null==e?void 0:e.value));return null!=n?n:tr[0]})},[ed,tr]),(0,u.useEffect)(()=>{eQ.current&&isFinite(tu)&&tn(e=>+e>td?td:+e<tu?tu:e)},[tn,td,tu]),(0,u.useEffect)(()=>{$({amount:+e5,term:+tp,optionId:null==tf?void 0:tf.optionId,appUrl:ty})},[ty,null==tf?void 0:tf.optionId,tp,$,e5]);let tP=e=>{var t,n;return(0,i.jsx)(p.F,{data:{url:J.url,title:J.title,id:J.id,bic:J.bic||(null==J?void 0:null===(t=J.provider)||void 0===t?void 0:t.bic)||""},bank:{logoMob:null==ei?void 0:ei.logo_mob,url:null==ei?void 0:ei.url,name:null!==(n=null==ei?void 0:ei.name)&&void 0!==n?n:J.bank_name},pageUrl:f.N9.VKLADY,titlePromo:tv?" Накопительный счёт":" Вклад",tagTheme:tv?"blue":"orange",title:J.bank_name,archiveText:" Этот вклад уже нельзя открыть. Посмотрите свежие предложения на нашей витрине",isMobile:q,isArchive:tm,isSmall:e,className:(0,l.Z)(ex,!tm&&D().promo),withNewMarkup:eO,eventCategory:eD,hideShareLinks:ew,isTag:eI,isOldUser:et})},tI=(0,u.useCallback)(()=>{eO&&(0,k.lQ)({eventAction:"input_form_amount_"+e5,eventCategory:eD,eventLabel:String(J.id)}),e6.onBlur()},[J.id,eD,e6,e5,eO]),tL=(0,u.useCallback)(()=>{eO&&(0,k.lQ)({eventAction:"input_form_term_"+(0,E.b)(tt),eventCategory:eD,eventLabel:String(J.id)}),e9.onBlur()},[J.id,eD,e9,tt,eO]),tM=(0,u.useCallback)(e=>{to(e)},[]),tO=ta+th,tD=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Rn,{caption:tN,className:(0,l.Z)(D().input,tN&&D().inputError),decimalsCount:2,label:eP,onBlur:tI,onChange:tk,onFocus:e6.onFocus,onKeyDown:A._,placeholder:"Сумма",ref:eH,size:eN,state:tN?"error":void 0,unit:e4.unit,value:e5?Number(e5):void 0,withoutControls:!0}),!ea.algo&&(0,i.jsxs)(i.Fragment,{children:[tl&&(0,i.jsx)(o.cL,{activeVariant:"secondary",chips:tr,className:D().chipsForm,onChipClick:tw,size:"m",value:null==eJ?void 0:eJ.id}),!tl&&(0,i.jsx)(o.Rn,{caption:tC,className:(0,l.Z)(D().input,tC&&D().inputError),decimals:"never",decimalsCount:0,disabled:!!tN,onBlur:tL,onChange:tT,onFocus:e9.onFocus,onKeyDown:A._,placeholder:"Срок",size:eN,state:tC?"error":void 0,unit:(0,a._6)(Number(te),...b.mB.DAY),value:te?Number(te):void 0,withoutControls:!0}),J.floatingRateInformations&&(0,i.jsx)(S.Y,{data:J.floatingRateInformations,handleMainRate:tM})]}),(null===(G=ea.algo)||void 0===G?void 0:G.id)==="mkb-nakop"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,l.Z)(D().input,D().inputRange),children:(0,i.jsx)(o.OX,{label:"Срок",max:36,min:1,step:1,value:W(tp),ticks:[{value:1,label:(0,i.jsx)("span",{className:D().legend,children:"1 мес"})},{value:36,label:(0,i.jsx)("span",{className:D().legend,children:"36 мес"})}],decimals:"never",decimalsCount:0,size:eN,unit:"мес",onChange:e=>{tn(Math.round((null!=e?e:1)*30))}})}),(0,i.jsx)("div",{className:D().expenseHead,children:(0,i.jsxs)("div",{style:{display:"flex"},children:["Траты по карте в месяц",(0,i.jsx)(_.C,{text:(0,i.jsx)(i.Fragment,{children:"При определении суммы операций учитываются суммы, списанные со счета карты с последнего дня предыдущего месяца по предпоследний день текущего месяца (включительно). Не учитываются операции из списка исключений по учету сумм операций по оплате товаров и услуг, с которыми можно ознакомиться в разделе \xabДокументы\xbb на сайте МКБ"}),iconClassName:D().infoIcon})]})}),(0,i.jsx)("div",{className:D().expenseSub,children:"От них зависит ставка накопительного счета"}),(0,i.jsx)(o.cL,{chips:ea.algo.expenseChips,activeVariant:"secondary",className:D().chipsForm,size:"m",value:null==e$?void 0:e$.id,onChipClick:e=>{var t,n,i;e0(null!==(i=null===(t=ea.algo)||void 0===t?void 0:t.expenseChips.find(t=>t.id===e))&&void 0!==i?i:null===(n=ea.algo)||void 0===n?void 0:n.expenseChips[0])}})]})]}),tR=(0,u.useMemo)(()=>"".concat(e5,"_").concat(tp,"_").concat(null==tf?void 0:tf.rate,"%_").concat((0,E.b)(J.title),"_").concat((0,E.b)(J.bank_name),"_").concat(J.id),[null==tf?void 0:tf.rate,tp,J.bank_name,J.id,J.title,e5]),tZ=void 0===tf&&tm,{isCapitalization:tY,paymentFrequency:tF}=(0,u.useMemo)(()=>{let e=(null==eJ?void 0:eJ.optionId)===ed;return(0,V.im)(J,eJ,{isCapitalization:e?eu:void 0,paymentFrequency:e?em:void 0,preferSelectedOption:!!ed})},[J,eu,ed,em,eJ]),tB=X===h.P.isPlatformDeposit&&!!ee,{incomeData:tz,isLoading:tV}=(0,w.P)({amount:eR,term:eZ,hasError:!!tN||!!tC,isCapitalization:tY,isDiscount:tB,rate:tO,interestPaymentPeriod:tF,trackInterestPaymentPeriod:!!ed,disabled:eY,isNewCustomer:!et});return(0,i.jsxs)(a.W2,{className:(0,l.Z)(D().container,!tm&&D().containerFull,er),children:[!tm&&!eb&&tP(),(0,i.jsxs)("div",{className:D().left,ref:eU,children:[tm&&(0,i.jsx)(v.M,{title:"Вклад в архиве",url:f.N9.VKLADY,text:"Его уже нельзя открыть. Но мы можем подобрать для Вас другие предложения от разных банков"}),!tm&&(0,i.jsx)(d.y,{isMobile:!!q,title:"Настройки ".concat(tv?"счета":"вклада"),pageUrl:eg,infoLink:{isShow:!el,text:"Подробнее о ".concat(tv?"счете":"вкладе"),idScrollBlock:g.p6,offPadding:!0,widthMaxContent:!0},isSavingAccount:tv,chips:t_,isShowChips:q&&!!(null==t_?void 0:t_.length)&&!ez,isExpandSettings:ez,onToggleSettings:q?()=>{eV(e=>!e),(0,k.lQ)({event:"data-event",eventAction:eO?"click__button__params__nastroyki_vklada":"click_button_nastroyki_vklada",eventCategory:eD,eventLabel:J.id})}:void 0,content:tD,titleClassName:es,calculatorClassName:eS,chevronSrc:eA,withNewMarkup:eO,eventCategory:eD,productId:String(J.id)}),!el&&!tZ&&(0,i.jsx)(m.h2,{href:null==ee?void 0:ee.link,isMobile:q,isPlusFiveBonus:en,isOldUser:et,className:(0,l.Z)(D().qrDesc),withNewMarkup:eO,eventCategory:eD,bannerText:null==ee?void 0:ee.bannerText})]}),(0,i.jsxs)("div",{className:D().right,children:[tm&&!eb&&tP(!0),!tZ&&(0,i.jsx)(L.n,{rate:tO,sum:Number(e5),term:Number(tp),productId:null!==(H=null==tf?void 0:null===(n=tf.mp)||void 0===n?void 0:n.product_id)&&void 0!==H?H:J.id,tag:null==eJ?void 0:eJ.tag,isMobile:q,onEdit:tE,appUrl:null!=ty?ty:J.online_application.url,depositType:X,onSwitchRate:tj,isRateSwitched:eW,switchRate:tb,isCapitalization:tY,refillSum:"",percentType:M.kJ[0].value,period:(0,R.n)(J).value,refillType:M.k5[0].value,unit:e4.unit,tags:J.tags,discount:ee,isSavingAccount:tv,extraInfo:ea,salaryToggle:e1,setSalaryToggle:e3,isShowDepositTip:eo,isHideButtons:el||!!e_,paymentFrequency:(0,V.sI)(tF),customActions:e_,shortChipsList:ef,firstDepositBonusTitle:eh,scrollOffset:e2,computeClassName:ey,withChart:eC,tipIcon:ek,tagIcon:eT,customTagTitle:eE,hideExternalLinks:ej,computeHeader:eL,computeTag:eM,withNewMarkup:eO,eventCategory:eD,totalValues:tR,integrationType:null===(r=J.external)||void 0===r?void 0:r.integrationType,calculatedBonus:null==tz?void 0:tz.bonusIncome,calculatedEffectiveRate:null!==(K=null===(O=J.efficientRate)||void 0===O?void 0:O.maximumRate)&&void 0!==K?K:null==tz?void 0:tz.effectiveRate,calculatedProfit:null==tz?void 0:tz.profit,calculatedTotalProfit:null==tz?void 0:tz.totalProfit,calculatedEndingDate:null==tz?void 0:tz.endOfTerm,isLoading:tV})]}),tZ&&(0,i.jsx)(m.h2,{href:null==ee?void 0:ee.link,isMobile:q,isPlusFiveBonus:en,isOldUser:et,className:(0,l.Z)(D().qrDesc,D().wide),withNewMarkup:eO,eventCategory:eD,bannerText:null==ee?void 0:ee.bannerText})]})}},95361:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var i=n(57437),a=n(80684),o=n(35563),l=n(75461),r=n(54365),s=n(2265),c=n(63661),u=n(70104),d=n(53474),m=n.n(d);let p=(e,t,n)=>{if(1===n.length)switch(!1){case"maximumSumSpending"in t:return"от ".concat((0,u.Y4)(t.minimumSumSpending)," ₽");case"minimumSumSpending"in t:return"до ".concat((0,u.Y4)(t.maximumSumSpending)," ₽");default:return"".concat((0,u.Y4)(t.minimumSumSpending)," ₽ - ").concat((0,u.Y4)(t.maximumSumSpending)," ₽")}switch(e){case 0:return"до ".concat((0,u.Y4)(t.maximumSumSpending)," ₽");case n.length-1:return"от ".concat((0,u.Y4)(t.minimumSumSpending)," ₽");default:return"".concat((0,u.Y4)(t.minimumSumSpending)," ₽ - ").concat((0,u.Y4)(t.maximumSumSpending)," ₽")}},v=e=>{let{data:t,handleMainRate:n}=e,[d,v]=(0,s.useState)(!0),{salaryOfPerson:_,spending:f,maxRateSpending:h}=(0,c.a)(t),g=f.map((e,t,n)=>{var i,a;return{label:p(t,e,n),valueMin:null!==(i=e.minimumSumSpending)&&void 0!==i?i:0,valueMAx:null!==(a=e.maximumSumSpending)&&void 0!==a?a:0,bonus:e.bonusPercentageValue,hint:e.influenceEventHintText}}),b=g.map(e=>({id:e.bonus,label:e.label})),[x,S]=(0,s.useState)(h),y=(0,s.useMemo)(()=>{var e,t;return null!==(t=null===(e=g.find(e=>e.bonus===x))||void 0===e?void 0:e.hint)&&void 0!==t?t:""},[g,x]),N=(0,s.useCallback)(e=>{var t;S(Number(e)),n((d&&null!==(t=null==_?void 0:_.bonusPercentageValue)&&void 0!==t?t:0)+Number(e))},[n,d,null==_?void 0:_.bonusPercentageValue]),C=(0,s.useCallback)(e=>{var t;v(e),n((e&&null!==(t=null==_?void 0:_.bonusPercentageValue)&&void 0!==t?t:0)+x)},[n,null==_?void 0:_.bonusPercentageValue,x]);return(0,i.jsxs)("div",{className:m().wrapper,children:[_&&(0,i.jsxs)("div",{className:m().item,children:[(0,i.jsx)("div",{className:m().label,children:(0,i.jsxs)(o.xv,{className:m().text,size:"16",children:["Траты по карте или подписка \xabПросто\xbb",(0,i.jsx)(l.kW,{dataId:"salary-toggle",className:m().hint,text:_.influenceEventHintText,children:(0,i.jsx)(a.IconFdsQuestionCircleO,{size:24,style:{color:"var(--color-gray-800)"}})})]})}),(0,i.jsx)("div",{className:m().splitter}),(0,i.jsx)("div",{className:m().controll,children:(0,i.jsx)(l.ZD,{value:d,style:{color:"var(--color-purple-600)"},flipped:!0,label:"+".concat((0,u.Y4)(_.bonusPercentageValue,2)," %"),onChange:C})})]}),!!g.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,r.Z)(m().item,m().spending),children:[(0,i.jsxs)("div",{className:m().label,children:[(0,i.jsxs)(o.xv,{className:m().text,size:"16",children:["Траты по карте в месяц",(0,i.jsx)(l.kW,{className:m().hint,text:y,children:(0,i.jsx)(a.IconFdsQuestionCircleO,{size:24,style:{color:"#6C6D78"}})})]}),(0,i.jsx)("div",{className:m().spendingPercent,children:"+".concat((0,u.Y4)(x,2)," %")})]}),(0,i.jsx)(o.xv,{className:m().tip,size:"16",children:"От них зависит ставка по вкладу"})]}),(0,i.jsx)(l.cL,{value:x,className:m().chips,activeVariant:"secondary",chips:b,onChipClick:N})]})]})};t.Z=(0,s.memo)(v)},68595:function(e,t,n){"use strict";n.d(t,{Y:function(){return i.Y}});var i=n(95361)},58580:function(e,t,n){"use strict";var i,a;n.d(t,{a:function(){return i}}),(a=i||(i={})).VKLADY="vklady",a.VKLADY_OLD="vklady/old",a.DEPOSIT_CALCULATOR="depozitnyj-kalkulyator",a.BANK_DEPOSIT_CALCULATOR="kalkulyator-vkladov",a.DEPOSIT_PICKER="depozitnyj-podborshik",a.PARTNERS_SHOWCASE="vklady/partners",a.COMBO="combo",a.OLD_COMBO="old/combo",a.SAVING_ACCOUNTS="saving-accounts"},63661:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var i=n(91586);function a(e){var t;let n=e.filter(e=>e.bankInfluenceEvent===i.D1.SALARY_OR_PENSION)[0],a=e.filter(e=>e.bankInfluenceEvent===i.D1.SPENDING).sort((e,t)=>e.minimumSumSpending-t.minimumSumSpending),o=Math.max(...a.map(e=>e.bonusPercentageValue),0),l=o+(null!==(t=null==n?void 0:n.bonusPercentageValue)&&void 0!==t?t:0);return{salaryOfPerson:n,spending:a,maxRateSpending:o,floatingRate:l}}},54328:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var i=n(77337),a=n(14862);let o=e=>(0,i.xn)(a.publicConfig.ASSETS_URL,"mp-assets/images/bank/logo-brandmark-bank-".concat(e,".svg"))},55953:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var i=n(75461),a=n(2265),o=n(71931),l=n(97793),r=n(14862),s=n(89911);function c(e){let t=r.publicConfig.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED,{amount:n,term:c,hasError:u,isCapitalization:d,isDiscount:m,rate:p,interestPaymentPeriod:v,trackInterestPaymentPeriod:_=!1,isNewCustomer:f,disabled:h}=e,g=(0,i.s4)(),[b,x]=(0,a.useState)(),[S,y]=(0,a.useState)(),N=(0,a.useRef)(null),C=(0,o.y1)(e=>x(t=>({...t,...e})),500);if(function(e){let{currentFilter:t,amount:n,term:i,isCapitalization:a,isDiscount:o,hasError:l,interestPaymentPeriod:r,trackInterestPaymentPeriod:s=!1,rate:c}=e;return!l&&!!n&&!!i&&!(c<=0)&&(!t||t.amount!==n||t.term.value!==i||t.capitalization!==a||s&&t.interestPaymentPeriod!==r||t.withBonus!==o||(null==t?void 0:t.rate)!==c)}({currentFilter:N.current,amount:n,term:c,hasError:u,isCapitalization:d,isDiscount:m,interestPaymentPeriod:v,trackInterestPaymentPeriod:_,rate:p})){let e={amount:null!=n?n:0,term:{type:"DAY",value:null!=c?c:0},rate:p,capitalization:d,interestPaymentPeriod:v,withBonus:m,...t&&{isNewCustomer:f}};N.current=e,C(e)}let A=(0,a.useMemo)(()=>!h&&b,[h,b]),{data:k,isLoading:T}=(0,s.d)(["deposit-income",b],()=>(0,l.VJ)(b,t),{disabled:!A||h});return(0,a.useEffect)(()=>{var e,t;if(h||T||!(null==k?void 0:k.data))return;let{data:n}=k;y({profit:n.income,totalProfit:n.income+(null!==(t=null===(e=N.current)||void 0===e?void 0:e.amount)&&void 0!==t?t:0)+n.bonusIncome,effectiveRate:n.effectiveRate,endOfTerm:new Date(n.endOfTerm),bonusIncome:n.bonusIncome,bonusRate:null==n?void 0:n.bonusRate})},[h,k,T]),{incomeData:S,isLoading:T||!(null==k?void 0:k.data)&&g&&!h}}},32207:function(e){e.exports={wrapper:"Promo_wrapper__vgwxR",wrapperArchive:"Promo_wrapperArchive__3KLxe",wrapperSmall:"Promo_wrapperSmall__TKQ1G",wrapperHideShareLinks:"Promo_wrapperHideShareLinks__6_vt9",company:"Promo_company__zx2_S",companySmall:"Promo_companySmall__gHEn_",title:"Promo_title__eC3ED",subTitle:"Promo_subTitle__irHjT",subTitleArchive:"Promo_subTitleArchive__ROtWb",subTitleText:"Promo_subTitleText__jiWkv",chip:"Promo_chip__bmI_G",chipDesc:"Promo_chipDesc__Iz92I",chipMob:"Promo_chipMob___jeRS",actionsContainer:"Promo_actionsContainer__wjB_T",actionsContainerSmall:"Promo_actionsContainerSmall__VUz8S",actions:"Promo_actions__TDZMq",action:"Promo_action__AnAZl",actionArrow:"Promo_actionArrow__kHdxS",actionMobile:"Promo_actionMobile__ZEfBz",actionArrowIcon:"Promo_actionArrowIcon__ftM5n",actionSocial:"Promo_actionSocial___3l_t",link:"Promo_link__P1bNh",logo:"Promo_logo__9YwGQ",logoContainer:"Promo_logoContainer__RACcr",logoContainerArchive:"Promo_logoContainerArchive__CYoB0",disabled:"Promo_disabled__P6gN4"}},66558:function(e){e.exports={action:"Action_action__NPK0s",icon:"Action_icon__Luo_o"}},57123:function(e){e.exports={container:"Actions_container__QDQi6",childContainer:"Actions_childContainer__yB_gN",actionArrow:"Actions_actionArrow__424PL",childContainerMobile:"Actions_childContainerMobile__o4Srw",action:"Actions_action__jKVRm",actionArrowIcon:"Actions_actionArrowIcon__2EJQ6",actionSocial:"Actions_actionSocial___y87Y"}},82158:function(e){e.exports={drawer:"PromoStubModal_drawer__5jHrh",mobilePopup:"PromoStubModal_mobilePopup__PvuVf",image:"PromoStubModal_image__H5G_m",title:"PromoStubModal_title__2vWJm",text:"PromoStubModal_text__RrSGC",button:"PromoStubModal_button__wlHv7"}},53474:function(e){e.exports={wrapper:"DepositFloatingRateTypeCard_wrapper__GJQK_",item:"DepositFloatingRateTypeCard_item__SEVk6",spending:"DepositFloatingRateTypeCard_spending__7kx35",label:"DepositFloatingRateTypeCard_label__bitWV",text:"DepositFloatingRateTypeCard_text__W4oqZ",splitter:"DepositFloatingRateTypeCard_splitter__Mv71D",tip:"DepositFloatingRateTypeCard_tip__VapND",hint:"DepositFloatingRateTypeCard_hint__TSTDI",spendingPercent:"DepositFloatingRateTypeCard_spendingPercent__xTmOs",chips:"DepositFloatingRateTypeCard_chips__QGw0T"}}}]);