(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 X}});var i,a,o=n(57437),l=n(35515),r=n(61994),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 S={[a.addToList]:v.Z,[a.like]:g.Z,[a.share]:b.Z,[a.chart]:h.Z,[a.arrow]:_.Z,[a.arrowBack]:f.Z};var x=n(66558),y=n.n(x);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:S[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),M=n(48034),L=n(81486),O=n(66187),D={src:"/deposits/_next/static/media/warning-cat.19d38374.svg",height:329,width:348,blurWidth:0,blurHeight:0},R=n(38050),Z=n(93033),Y=n(82158),F=n.n(Y);let B=e=>{let{onClose:t,text:n,title:i}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)(s.default,{className:F().image,src:D,alt:"warning cat",width:347.46,height:328}),(0,o.jsx)("h5",{className:F().title,children:i}),(0,o.jsx)("p",{className:F().text,children:n}),(0,o.jsx)(O.z,{onClick:t,size:"s",className:F().button,children:"Понятно, спасибо"})]})},z=(0,d.memo)(e=>(0,o.jsxs)(R.h,{children:[!e.isMobile&&(0,o.jsx)(Z.dy,{contentClassName:F().drawer,isOpen:e.isOpen,onClose:e.onClose,children:(0,o.jsx)(B,{...e})}),e.isMobile&&(0,o.jsx)(Z.jr,{className:F().mobilePopup,isOpen:e.isOpen,onClose:e.onClose,children:(0,o.jsx)(B,{...e})})]}));z.displayName="PromoStubModal";var V=n(77337),U=n(25464),H=n(94731),Q=n(94406);let K=e=>{let{dataUrl:t,pageUrl:n,title:i}=e,l=(0,V.xn)((0,u.env)("NEXT_PUBLIC_BASE_URL")||"",n,t),r=[{icon:(0,o.jsx)(Q.Z,{}),url:"https://vk.com/share.php?url=".concat(l,"&title=").concat(i),name:"vk"},{icon:(0,o.jsx)(U.Z,{}),url:"https://connect.ok.ru/offer?url=".concat(l,"&title=").concat(i),name:"Ok"},{icon:(0,o.jsx)(H.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 G=n(32207),W=n.n(G);let q=(0,u.env)("NEXT_PUBLIC_BASE_URL"),J={white:"primary",blue:"primary",green:"green",yellow:"primary",orange:"orange",purple:"purple",lightPurple:"purple",pink:"primary"},X=(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:S,eventCategory:x="",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)(()=>K({dataUrl:n.url,pageUrl:u,title:v}),[n.url,u,v]),Y=(0,M.Z)(),F=(0,d.useCallback)(e=>{switch(e){case"share":(0,j.lQ)({eventCategory:x,eventAction:S?"click_share":"show_pop_up_share",eventLabel:S?String(A):void 0});break;case"compare":O.current={title:"Скоро заработает",text:"Мы уже заканчиваем работу над разделом. Скоро вы сможете сравнивать предложения и выбирать выгодные условия по кредиту"},R(!0);break;case"like":O.current={title:"\xabИзбранное\xbb скоро заработает",text:"Мы уже доделываем этот раздел и скоро представим его вам. Вы сможете добавлять в него лучшие предложения"},R(!0)}},[x,A,S]),B=(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:x,eventAction:S?"click_share_"+i.name:"click_button_share",eventLabel:S?String(A):void 0,url:S?void 0:i.url}),window.open(i.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300"))}},[Z,S,x,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)(W().wrapper,{[W().wrapperArchive]:a,[W().wrapperSmall]:a||h,[W().wrapperHideShareLinks]:y},t),children:[(0,o.jsxs)(m.t,{className:(0,r.Z)(W().company,h&&W().companySmall),children:[(0,o.jsx)("div",{children:(0,o.jsxs)("h1",{className:W().title,children:[v,(0,o.jsxs)("span",{className:(0,r.Z)(W().subTitle,a&&W().subTitleArchive),children:[!h&&(0,o.jsx)(l.V,{className:(0,r.Z)(W().chip,W().chipDesc),label:(0,T.Y)(p),variant:J[g]})," ",(0,o.jsxs)("span",{className:W().subTitleText,children:["\xab",n.title,"\xbb"]})]})]})}),(null==i?void 0:i.logoMob)&&(0,o.jsx)(c.default,{href:"".concat(q,"/banki/").concat(i.url,"/").concat(u),className:(0,r.Z)(W().logoContainer,(a||h)&&W().logoContainerArchive,!i.url&&W().disabled),target:"_self",onClick:()=>{(null==i?void 0:i.name)&&(0,j.lQ)({eventCategory:"vklady",eventAction:S?"click_company_logo_"+(0,I.b)(i.name):"click_link"+i.name,eventLabel:S?String(A):void 0,url:S?void 0:"".concat(q,"/banki/").concat(i.url)})},children:(0,o.jsx)(s.default,{className:W().logo,src:(0,E.B)(n.bic),alt:"логотип банка",width:48,height:48})})]}),(0,o.jsxs)(m.t,{className:(0,r.Z)(W().actionsContainer,h&&W().actionsContainerSmall),children:[(0,o.jsxs)("div",{className:W().actions,children:[N&&(0,o.jsx)(l.V,{className:(0,r.Z)(W().chip,(!h||f)&&W().chipMob),label:(0,T.Y)(p),variant:J[g]}),!a&&!y&&(0,o.jsx)(k,{isMobile:f||h,list:Z,onClickItem:F,onClickChild:B,isOldUser:C})]}),!a&&!!(null==b?void 0:b.length)&&(0,o.jsx)(L.j,{offPadding:!0,text:b,iconColor:"light",mainPageUrl:u,className:W().link,onClick:U})]})]}),(0,o.jsx)(z,{isMobile:f,onClose:V,text:O.current.text,title:O.current.title,isOpen:D})]})});X.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 J}});var i=n(57437),a=n(61209),o=n(67880),l=n(81237),r=n(34698),s=n(39524),c=n(61994),u=n(21652),d=n.n(u),m=n(50666),p=n(2265),v=n(82619),_=n(24186),f=n(13114),h=n(23468),g=n(11359),b=n(65716),S=n(69589),x=n(37162),y=n(69393),N=n(62359),C=n(68595),A=n(63661),k=n(39402),T=n(96742),E=n(2493),w=n(72151),j=n(40780),P=n(31219),I=n(55953),M=n(14441),L=n(50487),O=n(48034),D=n(32523),R=n(72096),Z=n(96024),Y=n.n(Z),F=n(13922);let B=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 z=n(70104),V=n(36578);let U=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальная сумма - ".concat((0,z.Y4)(e)," ₽");if(+n>t)return"Максимальная сумма - ".concat((0,z.Y4)(t)," ₽")}},H=(e,t,n)=>{if(void 0!==n){if(+n<e)return"Минимальный срок - ".concat((0,z.Y4)(e)," ").concat((0,V._6)(e,"день","дня","дней"));if(+n>t)return"Максимальный срок - ".concat((0,z.Y4)(t)," ").concat((0,V._6)(t,"день","дня","дней"))}};var Q=n(59475);let K=(e,t,n)=>e<t?t:e>n?n:e,G=(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),W=(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===G(e,t));if(o)return(0,Q.S6)(o);a.sort((e,n)=>G(e,t)-G(n,t));let l=a[0];return l&&(0,Q.S6)(l)},q=e=>Math.round(+e/30.4375),J=e=>{var t,n,u,Z,z,V,G,J,X;let{isMobile:$,data:ee,depositType:et,onChangeData:en,discount:ei,isOldUser:ea,isPlusFiveBonus:eo,company:el,extraInfo:er,isShowDepositTip:es,asModal:ec=!1,className:eu,titleClassName:ed,initialAmount:em,initialIsCapitalization:ep,initialOptionId:ev,initialPaymentFrequency:e_,initialTermInMonths:ef,initialTermInDays:eh,customActions:eg,shortChipsList:eb=!1,firstDepositBonusTitle:eS=!1,pageUrl:ex="vklady",isHidePromo:ey=!1,promoClassName:eN,calculatorClassName:eC,computeClassName:eA,inputSize:ek="s",withChart:eT=!0,collapseChevronSrc:eE,tipIcon:ew,tagIcon:ej,customTagTitle:eP,hideShareLinks:eI=!1,hideExternalLinks:eM=!1,amountInputLabel:eL="",isPromoTag:eO=!0,computeHeader:eD,computeTag:eR,withNewMarkup:eZ,eventCategory:eY,amount:eF,term:eB,localCalculations:ez=!1}=e,{asPath:eV,hash:eU}=(0,M.P)(),[eH,eQ]=(0,p.useState)(!1),eK=(0,p.useRef)(null),eG=(0,p.useRef)(null),eW=(0,p.useRef)(null),[eq,eJ]=(0,p.useState)(!1),[eX,e$]=(0,p.useState)(null),[e0,e1]=(0,p.useState)(),[e3,e2]=(0,p.useState)(()=>{var e,t;if((null===(e=er.algo)||void 0===e?void 0:e.id)!=="mkb-nakop")return;let{expenseChips:n,defaultExpenseChip:i}=er.algo;return null!==(t=n.find(e=>e.id===i))&&void 0!==t?t:n.at(-1)}),[e4,e6]=(0,p.useState)(()=>{var e;return(null===(e=er.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&er.algo.salaryToggleDefaultValue}),e5=(0,O.Z)(),e8=(0,T.z)(ee.currency_id),{events:e7,value:e9,formattedValue:te,handleChange:tt}=(0,L.G)({type:"float",format:"currency",unit:e8.unit,defaultValue:String(ee.amount.from),maxLength:20,maxFractionalLength:2}),{events:tn,value:ti,formattedValue:ta,handleChange:to}=(0,L.G)({type:"int",unit:"day",maxLength:10,defaultValue:()=>{var e;return(null===(e=er.algo)||void 0===e?void 0:e.id)==="mkb-nakop"?String(er.algo.defaultTermDays):"1"}}),{floatingRate:tl}=(0,A.a)(null!==(z=ee.floatingRateInformations)&&void 0!==z?z:[]),[tr,ts]=(0,p.useState)(tl),{isFixedTerms:tc,termChips:tu,minSum:td,maxSum:tm,minTerm:tp,maxTerm:tv}=(0,p.useMemo)(()=>{var e;let t=(0,Q.TE)(ee,Number(e9),tr);return(null===(e=er.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&(t.maxSum=er.algo.maxAmount,t.minSum=er.algo.minAmount),t},[ee,er.algo,e9,tr]),t_=et===S.P.isArchiveDeposit,tf=!er.algo&&tc&&e0?e0.value:ti,th=!!ee.type.saving_account,tg=(0,p.useMemo)(()=>{let e=[];return tc&&e0&&!Array.isArray(e0)&&e.push(e0),!tc&&ti&&e.push({label:ta,id:"term"}),e9&&e.push({label:te,id:"amount"}),e},[tc,e0,te,e9,ta,ti]),tb=(0,p.useMemo)(()=>{var e;let t=ee.interest_rate.rates.filter(e=>{let t=0===e.amount_from||null===e.amount_from?td:e.amount_from,n=e.amount_to&&e.amount_to>0?e.amount_to:tm,i=e.term_to>0?e.term_to:tv;return+tf>=e.term_from&&(th||+tf<=i)&&+e9>=t&&+e9<=n});return ev&&(null==e0?void 0:e0.optionId)&&null!==(e=t.find(e=>e.optionId===e0.optionId))&&void 0!==e?e:t[0]},[tf,ee.interest_rate.rates,ev,th,tm,tv,td,null==e0?void 0:e0.optionId,e9]),tS=(0,p.useMemo)(()=>{if(er.algo){if("mkb-nakop"===er.algo.id&&e3)return e4?e3.rateWithSalary:e3.rate}else if(tb)return tb.rate;return 0},[tb,er.algo,e4,e3]),tx=(0,p.useMemo)(()=>{var e;if(!(tc?null==e0?void 0:e0.value:ti))return;let t=ee.interest_rate.rates.sort((e,t)=>{var n,i;return(null!==(n=e.amount_from)&&void 0!==n?n:td)-(null!==(i=t.amount_from)&&void 0!==i?i:tm)}),n=null===(e=t.find(e=>(null==tb?void 0:tb.amount_from)&&e.amount_from&&e.amount_from>tb.amount_from))||void 0===e?void 0:e.amount_from;return t.find(e=>tb&&e.amount_from===n&&e.term_from===tb.term_from)},[tb,ee,tc,tm,td,e0,ti]),ty=(0,p.useMemo)(()=>tb&&eX&&tb.amount_from?{difference:tb.rate-eX.rate,minAmount:tb.amount_from}:tx&&tb&&tx.amount_from?{difference:tx.rate-tb.rate,minAmount:tx.amount_from}:void 0,[tx,tb,eX]),{urlFirst:tN,urlSecond:tC}=(0,k._)({asPath:eV,productId:ee.id,optionId:null==tb?void 0:tb.optionId,amount:+e9,durationValue:ee.asSavingAccount?void 0:tf,firstBaseUrl:null!==(V=(0,m.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==V?V:"",secondBaseUrl:null==tb?void 0:null===(t=tb.mp)||void 0===t?void 0:t.url}),tA=B({data:ee,currentRate:tb,urlFirst:tN,urlSecond:tC}),tk=U(td,tm,e9),tT=tk||0===tv?void 0:H(tp,tv,ti),tE=(0,p.useCallback)(()=>{e$(null),eJ(!1)},[]),tw=(0,p.useCallback)(e=>{tt(null!=e?e:""),tE()},[tt,tE]),tj=(0,p.useCallback)(e=>{to(null!=e?e:""),tE()},[to,tE]),tP=(0,p.useCallback)(()=>{var e;$&&eK.current&&(eQ(!0),eK.current&&(0,j.l)(eK.current,{offset:e5,position:"top",delay:300})),$||null===(e=eG.current)||void 0===e||e.focus()},[$,e5]),tI=(0,p.useCallback)(e=>{let t=tu.find(t=>t.id===e);if(t){let e=(0,P.b)(t.label);(0,w.lQ)({event:"data-event",eventAction:eZ?"click_srok_"+e:"click_button_".concat(e),eventCategory:eZ?eY:ex,eventLabel:ee.id}),e1(t)}tE()},[ee.id,eY,ex,tE,tu,eZ]),tM=(0,p.useCallback)(e=>{e&&tx&&tx.amount_from?(tb&&e$(tb),tt(tx.amount_from),tc?e1((0,Q.S6)(tx,tr)):to(tx.term_from),eJ(!0)):e||((null==eX?void 0:eX.amount_from)&&(tt(eX.amount_from),tc?e1((0,Q.S6)(eX,tr)):to(eX.term_from),e$(null)),eJ(!1))},[tx,tb,tt,tc,tr,to,eX]);(0,p.useEffect)(()=>{if(d()(eW.current,eU))return;let e={amount:null!=em?em:String(td),period:null!=ef?ef:null,d_period:null!=eh?eh:0,...eU},t=(0,N.X)(e,er.algo),n=K(+e.amount,td,tm);tt(n),e1(W(n,t,ee.interest_rate.rates,ev)),to(t),eW.current=eU},[ee.interest_rate.rates,er.algo,tt,to,eU,em,ev,eh,ef,tm,td]),(0,p.useEffect)(()=>{eW.current&&e1(e=>{let t=tu.find(t=>ev&&(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=tu.find(t=>t.value===(null==e?void 0:e.value));return null!=n?n:tu[0]})},[ev,tu]),(0,p.useEffect)(()=>{eW.current&&isFinite(tp)&&to(e=>+e>tv?tv:+e<tp?tp:e)},[to,tv,tp]),(0,p.useEffect)(()=>{en({amount:+e9,term:+tf,optionId:null==tb?void 0:tb.optionId,appUrl:tA})},[tA,null==tb?void 0:tb.optionId,tf,en,e9]);let tL=e=>{var t,n;return(0,i.jsx)(f.F,{data:{url:ee.url,title:ee.title,id:ee.id,bic:ee.bic||(null==ee?void 0:null===(t=ee.provider)||void 0===t?void 0:t.bic)||""},bank:{logoMob:null==el?void 0:el.logo_mob,url:null==el?void 0:el.url,name:null!==(n=null==el?void 0:el.name)&&void 0!==n?n:ee.bank_name},pageUrl:b.N9.VKLADY,titlePromo:th?" Накопительный счёт":" Вклад",tagTheme:th?"blue":"orange",title:ee.bank_name,archiveText:" Этот вклад уже нельзя открыть. Посмотрите свежие предложения на нашей витрине",isMobile:$,isArchive:t_,isSmall:e,className:(0,c.Z)(eN,!t_&&Y().promo),withNewMarkup:eZ,eventCategory:eY,hideShareLinks:eI,isTag:eO,isOldUser:ea})},tO=(0,p.useCallback)(()=>{eZ&&(0,w.lQ)({eventAction:"input_form_amount_"+e9,eventCategory:eY,eventLabel:String(ee.id)}),e7.onBlur()},[ee.id,eY,e7,e9,eZ]),tD=(0,p.useCallback)(()=>{eZ&&(0,w.lQ)({eventAction:"input_form_term_"+(0,P.b)(ta),eventCategory:eY,eventLabel:String(ee.id)}),tn.onBlur()},[ee.id,eY,tn,ta,eZ]),tR=(0,p.useCallback)(e=>{ts(e)},[]),tZ=tr+tS,tY=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.R,{caption:tk,className:(0,c.Z)(Y().input,tk&&Y().inputError),decimalsCount:2,label:eL,onBlur:tO,onChange:tw,onFocus:e7.onFocus,onKeyDown:E._,placeholder:"Сумма",ref:eG,size:ek,state:tk?"error":void 0,unit:e8.unit,value:e9?Number(e9):void 0,withoutControls:!0}),!er.algo&&(0,i.jsxs)(i.Fragment,{children:[tc&&(0,i.jsx)(a.c,{activeVariant:"secondary",chips:tu,className:Y().chipsForm,onChipClick:tI,size:"m",value:null==e0?void 0:e0.id}),!tc&&(0,i.jsx)(l.R,{caption:tT,className:(0,c.Z)(Y().input,tT&&Y().inputError),decimals:"never",decimalsCount:0,disabled:!!tk,onBlur:tD,onChange:tj,onFocus:tn.onFocus,onKeyDown:E._,placeholder:"Срок",size:ek,state:tT?"error":void 0,unit:(0,s._6)(Number(ti),...y.mB.DAY),value:ti?Number(ti):void 0,withoutControls:!0}),ee.floatingRateInformations&&(0,i.jsx)(C.Y,{data:ee.floatingRateInformations,handleMainRate:tR})]}),(null===(X=er.algo)||void 0===X?void 0:X.id)==="mkb-nakop"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,c.Z)(Y().input,Y().inputRange),children:(0,i.jsx)(r.O,{label:"Срок",max:36,min:1,step:1,value:q(tf),ticks:[{value:1,label:(0,i.jsx)("span",{className:Y().legend,children:"1 мес"})},{value:36,label:(0,i.jsx)("span",{className:Y().legend,children:"36 мес"})}],decimals:"never",decimalsCount:0,size:ek,unit:"мес",onChange:e=>{to(Math.round((null!=e?e:1)*30))}})}),(0,i.jsx)("div",{className:Y().expenseHead,children:(0,i.jsxs)("div",{style:{display:"flex"},children:["Траты по карте в месяц",(0,i.jsx)(g.C,{text:(0,i.jsx)(i.Fragment,{children:"При определении суммы операций учитываются суммы, списанные со счета карты с последнего дня предыдущего месяца по предпоследний день текущего месяца (включительно). Не учитываются операции из списка исключений по учету сумм операций по оплате товаров и услуг, с которыми можно ознакомиться в разделе \xabДокументы\xbb на сайте МКБ"}),iconClassName:Y().infoIcon})]})}),(0,i.jsx)("div",{className:Y().expenseSub,children:"От них зависит ставка накопительного счета"}),(0,i.jsx)(a.c,{chips:er.algo.expenseChips,activeVariant:"secondary",className:Y().chipsForm,size:"m",value:null==e3?void 0:e3.id,onChipClick:e=>{var t,n,i;e2(null!==(i=null===(t=er.algo)||void 0===t?void 0:t.expenseChips.find(t=>t.id===e))&&void 0!==i?i:null===(n=er.algo)||void 0===n?void 0:n.expenseChips[0])}})]})]}),tF=(0,p.useMemo)(()=>"".concat(e9,"_").concat(tf,"_").concat(null==tb?void 0:tb.rate,"%_").concat((0,P.b)(ee.title),"_").concat((0,P.b)(ee.bank_name),"_").concat(ee.id),[null==tb?void 0:tb.rate,tf,ee.bank_name,ee.id,ee.title,e9]),tB=void 0===tb&&t_,{isCapitalization:tz,paymentFrequency:tV}=(0,p.useMemo)(()=>{let e=(null==e0?void 0:e0.optionId)===ev;return(0,Q.im)(ee,e0,{isCapitalization:e?ep:void 0,paymentFrequency:e?e_:void 0,preferSelectedOption:!!ev})},[ee,ep,ev,e_,e0]),tU=et===S.P.isPlatformDeposit&&!!ei,{incomeData:tH,isLoading:tQ}=(0,I.P)({amount:eF,term:eB,hasError:!!tk||!!tT,isCapitalization:tz,isDiscount:tU,rate:tZ,interestPaymentPeriod:tV,trackInterestPaymentPeriod:!!ev,disabled:ez,isNewCustomer:!ea});return(0,i.jsxs)(o.W,{className:(0,c.Z)(Y().container,!t_&&Y().containerFull,eu),children:[!t_&&!ey&&tL(),(0,i.jsxs)("div",{className:Y().left,ref:eK,children:[t_&&(0,i.jsx)(h.M,{title:"Вклад в архиве",url:b.N9.VKLADY,text:"Его уже нельзя открыть. Но мы можем подобрать для Вас другие предложения от разных банков"}),!t_&&(0,i.jsx)(v.y,{isMobile:!!$,title:"Настройки ".concat(th?"счета":"вклада"),pageUrl:ex,infoLink:{isShow:!ec,text:"Подробнее о ".concat(th?"счете":"вкладе"),idScrollBlock:x.p6,offPadding:!0,widthMaxContent:!0},isSavingAccount:th,chips:tg,isShowChips:$&&!!(null==tg?void 0:tg.length)&&!eH,isExpandSettings:eH,onToggleSettings:$?()=>{eQ(e=>!e),(0,w.lQ)({event:"data-event",eventAction:eZ?"click__button__params__nastroyki_vklada":"click_button_nastroyki_vklada",eventCategory:eY,eventLabel:ee.id})}:void 0,content:tY,titleClassName:ed,calculatorClassName:eC,chevronSrc:eE,withNewMarkup:eZ,eventCategory:eY,productId:String(ee.id)}),!ec&&!tB&&(0,i.jsx)(_.h2,{href:null==ei?void 0:ei.link,isMobile:$,isPlusFiveBonus:eo,isOldUser:ea,className:(0,c.Z)(Y().qrDesc),withNewMarkup:eZ,eventCategory:eY,bannerText:null==ei?void 0:ei.bannerText})]}),(0,i.jsxs)("div",{className:Y().right,children:[t_&&!ey&&tL(!0),!tB&&(0,i.jsx)(D.n,{rate:tZ,sum:Number(e9),term:Number(tf),productId:null!==(G=null==tb?void 0:null===(n=tb.mp)||void 0===n?void 0:n.product_id)&&void 0!==G?G:ee.id,tag:null==e0?void 0:e0.tag,isMobile:$,onEdit:tP,appUrl:null!=tA?tA:ee.online_application.url,depositType:et,onSwitchRate:tM,isRateSwitched:eq,switchRate:ty,isCapitalization:tz,refillSum:"",percentType:R.kJ[0].value,period:(0,F.n)(ee).value,refillType:R.k5[0].value,unit:e8.unit,tags:ee.tags,discount:ei,isSavingAccount:th,extraInfo:er,salaryToggle:e4,setSalaryToggle:e6,isShowDepositTip:es,isHideButtons:ec||!!eg,paymentFrequency:(0,Q.sI)(tV),customActions:eg,shortChipsList:eb,firstDepositBonusTitle:eS,scrollOffset:e5,computeClassName:eA,withChart:eT,tipIcon:ew,tagIcon:ej,customTagTitle:eP,hideExternalLinks:eM,computeHeader:eD,computeTag:eR,withNewMarkup:eZ,eventCategory:eY,totalValues:tF,integrationType:null===(u=ee.external)||void 0===u?void 0:u.integrationType,calculatedBonus:null==tH?void 0:tH.bonusIncome,calculatedEffectiveRate:null!==(J=null===(Z=ee.efficientRate)||void 0===Z?void 0:Z.maximumRate)&&void 0!==J?J:null==tH?void 0:tH.effectiveRate,calculatedProfit:null==tH?void 0:tH.profit,calculatedTotalProfit:null==tH?void 0:tH.totalProfit,calculatedEndingDate:null==tH?void 0:tH.endOfTerm,isLoading:tQ})]}),tB&&(0,i.jsx)(_.h2,{href:null==ei?void 0:ei.link,isMobile:$,isPlusFiveBonus:eo,isOldUser:ea,className:(0,c.Z)(Y().qrDesc,Y().wide),withNewMarkup:eZ,eventCategory:eY,bannerText:null==ei?void 0:ei.bannerText})]})}},95361:function(e,t,n){"use strict";n.d(t,{Y:function(){return f}});var i=n(57437),a=n(80684),o=n(61209),l=n(33502),r=n(88614),s=n(37076),c=n(61994),u=n(2265),d=n(63661),m=n(70104),p=n(53474),v=n.n(p);let _=(e,t,n)=>{if(1===n.length)switch(!1){case"maximumSumSpending"in t:return"от ".concat((0,m.Y4)(t.minimumSumSpending)," ₽");case"minimumSumSpending"in t:return"до ".concat((0,m.Y4)(t.maximumSumSpending)," ₽");default:return"".concat((0,m.Y4)(t.minimumSumSpending)," ₽ - ").concat((0,m.Y4)(t.maximumSumSpending)," ₽")}switch(e){case 0:return"до ".concat((0,m.Y4)(t.maximumSumSpending)," ₽");case n.length-1:return"от ".concat((0,m.Y4)(t.minimumSumSpending)," ₽");default:return"".concat((0,m.Y4)(t.minimumSumSpending)," ₽ - ").concat((0,m.Y4)(t.maximumSumSpending)," ₽")}},f=e=>{let{data:t,handleMainRate:n}=e,[p,f]=(0,u.useState)(!0),{salaryOfPerson:h,spending:g,maxRateSpending:b}=(0,d.a)(t),S=g.map((e,t,n)=>{var i,a;return{label:_(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}}),x=S.map(e=>({id:e.bonus,label:e.label})),[y,N]=(0,u.useState)(b),C=(0,u.useMemo)(()=>{var e,t;return null!==(t=null===(e=S.find(e=>e.bonus===y))||void 0===e?void 0:e.hint)&&void 0!==t?t:""},[S,y]),A=(0,u.useCallback)(e=>{var t;N(Number(e)),n((p&&null!==(t=null==h?void 0:h.bonusPercentageValue)&&void 0!==t?t:0)+Number(e))},[n,p,null==h?void 0:h.bonusPercentageValue]),k=(0,u.useCallback)(e=>{var t;f(e),n((e&&null!==(t=null==h?void 0:h.bonusPercentageValue)&&void 0!==t?t:0)+y)},[n,null==h?void 0:h.bonusPercentageValue,y]);return(0,i.jsxs)("div",{className:v().wrapper,children:[h&&(0,i.jsxs)("div",{className:v().item,children:[(0,i.jsx)("div",{className:v().label,children:(0,i.jsxs)(r.x,{className:v().text,size:"16",children:["Траты по карте или подписка \xabПросто\xbb",(0,i.jsx)(l.k,{dataId:"salary-toggle",className:v().hint,text:h.influenceEventHintText,children:(0,i.jsx)(a.faL,{size:24,style:{color:"var(--color-gray-800)"}})})]})}),(0,i.jsx)("div",{className:v().splitter}),(0,i.jsx)("div",{className:v().controll,children:(0,i.jsx)(s.Z,{value:p,style:{color:"var(--color-purple-600)"},flipped:!0,label:"+".concat((0,m.Y4)(h.bonusPercentageValue,2)," %"),onChange:k})})]}),!!S.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,c.Z)(v().item,v().spending),children:[(0,i.jsxs)("div",{className:v().label,children:[(0,i.jsxs)(r.x,{className:v().text,size:"16",children:["Траты по карте в месяц",(0,i.jsx)(l.k,{className:v().hint,text:C,children:(0,i.jsx)(a.faL,{size:24,style:{color:"#6C6D78"}})})]}),(0,i.jsx)("div",{className:v().spendingPercent,children:"+".concat((0,m.Y4)(y,2)," %")})]}),(0,i.jsx)(r.x,{className:v().tip,size:"16",children:"От них зависит ставка по вкладу"})]}),(0,i.jsx)(o.c,{value:y,className:v().chips,activeVariant:"secondary",chips:x,onChipClick:A})]})]})};t.Z=(0,u.memo)(f)},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(89694),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,isOldPage:g}=e,b=(0,i.s4)(),[S,x]=(0,a.useState)(),[y,N]=(0,a.useState)(),C=(0,a.useRef)(null),A=(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:C.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}};C.current=e,A(e)}let k=(0,a.useMemo)(()=>!h&&S,[h,S]),{data:T,isLoading:E}=(0,s.d)(["deposit-income",S],()=>(0,l.VJ)(S,t),{disabled:!k||h});return(0,a.useEffect)(()=>{var e,t;if(h||E||!(null==T?void 0:T.data))return;let{data:n}=T,i=g?0:n.bonusIncome;N({profit:n.income,totalProfit:n.income+(null!==(t=null===(e=C.current)||void 0===e?void 0:e.amount)&&void 0!==t?t:0)+i,effectiveRate:n.effectiveRate,endOfTerm:new Date(n.endOfTerm),bonusIncome:n.bonusIncome,bonusRate:null==n?void 0:n.bonusRate})},[h,g,T,E]),{incomeData:y,isLoading:E||!(null==T?void 0:T.data)&&b&&!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"}}}]);