(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9289],{90199:function(e,t,n){"use strict";n.d(t,{Lp:function(){return _},VJ:function(){return p},X4:function(){return l},ID:function(){return c},iT:function(){return o},PT:function(){return r},qB:function(){return m},Cc:function(){return d},vI:function(){return u}});var a=n(24866),i=n(26719);let s=e=>e?Object.keys(e).filter(t=>e[t]).map(t=>"".concat(t,"=").concat(e[t])).join("&"):"",l=e=>{let t=s(e);return(0,i.t)("/money_data/Deposits.json".concat(t?"?".concat(t):""))},o=async e=>{var t;return null!==(t=(await (0,i.t)("/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:[]},r=async e=>{var t;let n=(0,a.xn)("/api/v1/products/tags",e);return null!==(t=(await (0,i.t)(n,null,{isMpSc:!0},!0)).data)&&void 0!==t?t:[]},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"active",t=arguments.length>1?arguments[1]:void 0,n=(0,a.jb)((0,a.xn)("/api/v1/deposits",e),null!=t?t:{});return(0,i.t)(n,null,{isNewApi:!0})},c=()=>{let e=(0,a.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,i.t)(e,{method:"GET"},{isProdCatApi:!0})},d=e=>{let t=(0,a.jb)("/api/v1/deposits/ids",{ids:e});return(0,i.t)(t,{method:"GET"},{isNewApi:!0})},_=e=>(0,i.t)("/api/v1/deposits/top/multi",{method:"POST",body:JSON.stringify(e)},{isNewApi:!0}),m=e=>(0,i.t)("/api/v1/deposits/no-auth/showcase",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0}),p=e=>(0,i.t)("/api/v1/deposits/active/income",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0})},10414:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});let a=30.416},24508:function(e,t,n){"use strict";n.d(t,{$k:function(){return i},k5:function(){return s},kJ:function(){return a}});let a=[{label:"Добавлять ко вкладу (капитализация)",value:"add"},{label:"Выплачивать",value:"dont_add"}],i=[{label:"В конце срока",value:"end"},{label:"Ежедневно",value:"daily"},{label:"Раз в месяц",value:"1"},{label:"Раз в квартал",value:"3"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}],s=[{label:"Не предусмотрено",value:"0"},{label:"Раз в месяц",value:"1"},{label:"Раз в 2 месяца",value:"2"},{label:"Раз в квартал",value:"3"},{label:"Раз в 4 месяца",value:"4"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}]},22567:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var a=n(24508);let i=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=a.$k.find(e=>n===e.value))&&void 0!==t?t:a.$k[0]}},93390:function(e,t,n){"use strict";n.d(t,{n:function(){return $}});var a=n(57437);n(51593);var i=n(56034),s=n(7301),l=n(34734),o=n(2265),r={src:"/deposits/_next/static/media/detailed.37f1b990.svg",height:16,width:16,blurWidth:0,blurHeight:0},u=n(55004),c=n(85816),d=n.n(c);let _=e=>{let{className:t,text:n,tooltipText:i,theme:s="primary",tipIcon:o,onTooltipOpen:c}=e;return(0,a.jsx)("div",{className:(0,l.Z)(d().tag,{[d().tagPrimary]:"primary"===s,[d().tagSecondary]:"secondary"===s,[d().tagPink]:"pink"===s,[d().tagYellow]:"yellow"===s},t),children:i&&(0,a.jsx)(u.C,{className:d().detail,iconSrc:r,text:i,iconClassName:d().detailIcon,icon:o,onOpen:()=>null==c?void 0:c(n),children:(0,a.jsx)("span",{className:d().text,children:n})})})};var m=n(90926),p=n(91895),h=n(24760),v=n(32833),g=n(34037),f=n.n(g);function y(e){let{loading:t}=e;return(0,a.jsxs)("div",{className:(0,l.Z)(f().skeletonContainer,t&&f().visible),children:[(0,a.jsx)(v.Od,{className:f().skeletonDate}),(0,a.jsx)(v.Od,{className:f().skeletonProfit})]})}var b=n(8792),x=n(14073),T=n(69595),k=n.n(T);function D(e){let{rowCount:t,loading:n}=e;return(0,a.jsx)("div",{className:(0,l.Z)(k().skeletonContainer,n&&k().visible),children:Array.from(Array(t).keys()).map(e=>(0,a.jsx)(v.Od,{className:k().skeleton},e))})}var E=n(15774),A=n(16243),N=n(93880),j=n(1012),C=n.n(j);function P(e){var t;let{withNewMarkup:n,rate:i,effectiveRate:l,hideExternalLinks:r,profit:c,unit:d,extraInfo:_,isSavingAccount:m,salaryToggle:p,setSalaryToggle:h,discount:v,bonus:g,firstDepositBonusTitle:f,tipIcon:y,switchRate:T,onSwitchRate:k,isRateSwitched:j,eventCategory:P,productId:O,isCombo:S=!1,isLoading:L}=e,I=(0,o.useCallback)(()=>{k&&(k(!j),(0,A.lQ)({event:"data-event",eventAction:"click_button_perekluchit_stavku",eventCategory:P,eventLabel:O}))},[k,j,P,O]),w=(0,o.useCallback)(e=>()=>{(0,A.lQ)({event:"data-event",eventAction:"click_link_".concat((0,N.b)(e)),eventCategory:P,eventLabel:O})},[P,O]),R=(0,o.useMemo)(()=>{var e;let t=[{label:"Доход от банка",value:"".concat((0,E.Y4)(c,2)," ").concat(d)}];if((null===(e=_.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&t.push({label:"Открытие дебетовой карты",value:"Да",description:m&&null!=_.karta?_.karta.label:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка"},{label:"Действие счета",value:"Бессрочно"},{label:"Зарплата или пенсия на карту МКБ",value:(0,a.jsx)(s.jw,{checked:p,className:C().singleToggle,onChange:()=>null==h?void 0:h(!p)}),description:(0,a.jsx)(a.Fragment,{children:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету."})}),i&&t.unshift({label:"Ставка",value:"".concat((0,E.Y4)(i,2),"%")}),l&&t.unshift({label:"Эффективная ставка",value:"".concat((0,E.Y4)(l,2),"%"),description:(0,a.jsxs)(a.Fragment,{children:["Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."," ",!r&&(0,a.jsx)(b.default,{className:C().tooltipLink,target:"_self",onClick:w("Подробнее о том, как считать сложный процент"),href:"".concat(x._n,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),children:"Подробнее о том, как считать сложный процент"})]})}),v&&g){let e=S?"%":" ".concat(d);t.push({label:f?"Бонус за первый вклад":"Бонус от Финуслуг",value:"".concat((0,E.Y4)(g,2)).concat(e),description:null==v?void 0:v.description})}return t},[g,v,l,null===(t=_.algo)||void 0===t?void 0:t.id,_.karta,f,w,r,m,c,i,p,h,d,S]),B=!!T&&(null==T?void 0:T.difference)>0,F=B?"+".concat((0,E.Y4)(T.difference,1),"% к ставке"):null,M=(0,o.useCallback)(e=>{(0,A.lQ)({eventAction:"click_question_".concat((0,N.b)(e)),eventCategory:P,eventLabel:O})},[P,O]);return(0,a.jsxs)("ul",{className:C().values,children:[(0,a.jsx)(D,{loading:L,rowCount:R.length}),R.map(e=>(0,a.jsxs)("li",{className:C().value,children:[(0,a.jsx)("div",{children:e.label}),e.description&&(0,a.jsx)(u.C,{text:e.description,className:C().detail,onOpen:()=>n&&M(e.label),icon:y}),(0,a.jsx)("div",{className:C().valueDash}),(0,a.jsx)("div",{children:e.value})]},e.label)),B&&F&&(0,a.jsxs)("li",{className:C().value,children:[(0,a.jsx)("div",{children:F}),(0,a.jsx)(u.C,{text:"При сумме вклада от ".concat((0,E.Y4)(T.minAmount)," ₽"),className:C().detail,icon:y,onOpen:()=>n&&M(F)}),(0,a.jsx)(s.jw,{onChange:I,checked:j,className:C().toggle,size:"small"})]})]})}var O=n(72255);let S=e=>{let{depositType:t,isHideButtons:n,isShowDepositTip:a,isSavingAccount:i}=e,s=t===m.P.isPlatformDeposit?"Как открыть вклад":"Где открыть вклад",l=t===m.P.isPlatformDeposit?"Как открыть накопительный счет":"Где открыть накопительный счет";return{helpButtonLabel:i?l:s,blockId:t===m.P.isPlatformDeposit?O.a6:O.VT,isShowMainButton:!n&&t===m.P.isPlatformDeposit||t===m.P.isLidgenDeposit,isShowHelpButton:t!==m.P.isArchiveDeposit&&a&&!n,isOfferText:t===m.P.isPlatformDeposit||t===m.P.isLidgenDeposit}};var L=n(36467),I=n(21822),w=n(59358),R=n(86081),B=n(56504),F=n(54183),M=n(20703),G={src:"/deposits/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0},U=n(82694),Z=n(62984),K=n(78386),H=n(95236),Y=n(78840),V=n.n(Y);function Q(e){let{term:t,totalProfit:n,withChart:i,isChartOpen:s,isEditable:l=!0,endingDate:r,onEditButtonClick:u,onToggleChart:c}=e,d=(0,E.Y4)(n,2).split(","),_=(0,o.useMemo)(()=>r?(0,Z.f)(r):function(e){let t=new Date;return(0,Z.f)(U.Z.day(t,e))}(t),[r,t]);return(0,a.jsxs)("div",{className:V().head,children:[(0,a.jsxs)("h4",{className:V().title,children:["Накопите к ",_]}),(0,a.jsxs)("h5",{className:V().result,children:[(0,a.jsxs)("span",{className:V().resultText,children:[d[0],d[1]?(0,a.jsxs)(a.Fragment,{children:[",",(0,a.jsxs)("span",{className:V().resultTextFloat,children:[d[1]," ₽"]})]}):" ₽"]}),l&&(0,a.jsx)("button",{className:V().resultButton,onClick:u,children:(0,a.jsx)(M.default,{className:V().resultIcon,src:G,alt:"edit"})})]}),i&&(0,a.jsx)(K.W,{onClick:c,className:V().chartButton,icon:s?H.d.arrowBack:H.d.chart,alt:"chart"})]})}var W=n(54375),z=n.n(W);let J=(0,o.memo)(e=>{let{href:t,id:n,pageType:i,eventCategory:l,withNewMarkup:o,eventLabel:r}=e;return(0,a.jsx)(s.zx,{as:"a",className:z().button,target:"_blank",href:t,size:"s",disabled:!t,onClick:()=>{(0,A.lQ)({event:"data-event",eventLabel:r,eventCategory:l,eventAction:o?"click_button_open_online":"open_in_bank_product",eventValue:null!=n?n:""})},children:i===m.P.isPlatformDeposit?"Открыть онлайн":"Перейти на сайт банка"})});J.displayName="MainButton";let q=Object.freeze({highlights:null,title:null,description:null,variant:"secondary",primaryAuthProviders:["ALFA","SBER","TINKOFF","VTB","MTS","SOVCOM","PHONE"],additionalAuthProviders:[],extraAuthProviders:[],primaryTextOverride:"Открыть вклад"}),$=(0,o.memo)(e=>{var t,n;let{onEdit:r,isMobile:u,rate:c,sum:d,term:v,tag:g,appUrl:f,discount:b,isRateSwitched:x,onSwitchRate:T,switchRate:k,isCapitalization:D,depositType:E,productId:j,unit:C,tags:O,isSavingAccount:M,extraInfo:G,salaryToggle:U,setSalaryToggle:Z,isShowDepositTip:K,isHideButtons:H=!1,paymentFrequency:Y,customActions:V,shortChipsList:W=!1,firstDepositBonusTitle:$=!1,scrollOffset:X,computeClassName:ee,withChart:et,tipIcon:en,tagIcon:ea,customTagTitle:ei,hideExternalLinks:es=!1,computeHeader:el,computeTag:eo,eventCategory:er,withNewMarkup:eu,totalValues:ec,isEditable:ed=!0,isCombo:e_=!1,calculatedProfit:em,calculatedTotalProfit:ep,calculatedEffectiveRate:eh,calculatedBonus:ev,integrationType:eg,calculatedEndingDate:ef,isLoading:ey=!1}=e,[eb,ex]=(0,o.useState)(!1),eT=new Date;eT.setDate(eT.getDate()+v);let{total:ek,bonus:eD,effectiveRate:eE,profit:eA}=(0,B.Z)({depositSum:d,term:v,rate:c,isCapitalization:D,discount:E===m.P.isPlatformDeposit?b:null,period:h.Z.Day,paymentFrequency:Y}),eN=em||eA,ej=ep||ek,eC=ev||eD,eP=function(e){let{integrationType:t}=e,{toggles:{FEATURE_TOGGLE_INTERNAL_REFERAL_LOGIN_ENABLED:n}}=(0,L.ND)(),a=(0,o.useMemo)(()=>(0,I.$1)(),[]),i=(null==a?void 0:a["auth.gtm_customer_id"])||null;return n&&"INTERNAL_REFERAL"===t&&!i}({integrationType:eg}),{helpButtonLabel:eO,blockId:eS,isShowMainButton:eL,isShowHelpButton:eI,isOfferText:ew}=S({depositType:E,isHideButtons:H,isShowDepositTip:K,isSavingAccount:M}),eR=(0,o.useCallback)(()=>{(0,A.lQ)({event:"data-event",eventAction:eu?"click_button_how_to_open":"click_button_".concat((0,N.b)(eO)),eventCategory:er,eventLabel:j}),(0,s.ld)(eS,{offset:X,position:"top"})},[eS,er,eO,j,X,eu]),eB=(0,o.useCallback)(()=>{ex(e=>!e),(0,A.lQ)({event:"data-event",eventAction:"click_icon_diagramma",eventCategory:er,eventLabel:j})},[er,j]),eF=(0,o.useCallback)(()=>{r&&(r(),(0,A.lQ)({event:"data-event",eventAction:eu?"click_pencil":"click_icon_redactirovanie",eventCategory:er,eventLabel:j}))},[er,r,j,eu]),eM=(0,o.useCallback)(e=>{(0,A.lQ)({eventCategory:er,eventLabel:j,eventAction:"click_chips_".concat((0,N.b)(e))})},[er,j]),eG=(0,o.useCallback)(()=>{var e;return g&&g.title?null!==(e=null==eo?void 0:eo(g))&&void 0!==e?e:(0,a.jsx)(_,{className:z().tag,text:null!=ei?ei:g.title,tooltipText:g.description,tipIcon:ea,onTooltipOpen:e=>eu&&eM(e)}):null},[eo,ei,eM,g,ea,eu]),{widgetConfig:eU,isWidgetDataLoading:eZ}=function(e){let{data:t,isLoading:n}=(0,R.d)("login-widget",()=>(0,w.g)(p.rH,"deposit"),{disabled:e});return{widgetConfig:t,isWidgetDataLoading:n}}(!eP),eK=(0,o.useCallback)(()=>{if(eL)return eP&&(eU||eZ)?(0,a.jsx)(i.U,{baseUrl:p._S,s3AssetsUrl:p.S$,skeleton:(0,a.jsx)(s.zx,{pending:!0,className:z().button,size:"s",label:"Открыть вклад",disabled:!0}),className:(0,l.Z)(z().button,z().loginWidget),serverConfig:eU?{...eU,consents:[],legalInfo:null}:void 0,config:q,query:{targetUri:f},isSilent:!0}):(0,a.jsx)(J,{href:f,id:j,pageType:E,eventCategory:er,withNewMarkup:eu,eventLabel:ec})},[eL,eP,eU,eZ,f,j,E,er,eu,ec]);return(0,a.jsxs)(s.W2,{className:(0,l.Z)(z().container,eb&&z().containerChart,ee),children:[null!==(n=null==el?void 0:el(ej,eF))&&void 0!==n?n:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{loading:ey}),(0,a.jsx)(Q,{term:v,totalProfit:ej,withChart:et&&!e_,isChartOpen:eb,isEditable:ed,endingDate:ef,onEditButtonClick:eF,onToggleChart:eB})]}),(0,a.jsxs)("div",{className:z().info,children:[(0,a.jsx)(F.H,{isMobile:u,className:(0,l.Z)(z().chart,eb&&z().chartVisible),sum:d,bonus:eD,profit:eN}),(0,a.jsxs)("div",{className:z().tags,children:[!W&&(null==O?void 0:O.map(e=>{let{title:t,description:n}=e;return(0,a.jsx)(_,{className:z().tag,text:t,tooltipText:n,theme:"pink",onTooltipOpen:eM},t)})),eG(),!W&&(null===(t=G.algo)||void 0===t?void 0:t.id)==="mkb-nakop"&&G.algo.extraTag&&(0,a.jsx)(_,{className:z().tag,...G.algo.extraTag,onTooltipOpen:eM})]}),(0,a.jsx)(P,{withNewMarkup:eu,rate:c,effectiveRate:eh||eE,hideExternalLinks:es,profit:eN,unit:C,extraInfo:G,isSavingAccount:M,salaryToggle:U,setSalaryToggle:Z,discount:b,bonus:eC,firstDepositBonusTitle:$,tipIcon:en,switchRate:k,onSwitchRate:T,isRateSwitched:x,eventCategory:er,productId:j,isCombo:e_,isLoading:ey}),null==V?void 0:V(v),eK(),eI&&(0,a.jsx)(s.zx,{onClick:eR,className:z().button,size:"s",variant:"secondary",children:eO}),ew&&(0,a.jsx)("h3",{className:z().disclaimer,children:"Предварительный расчет. Не является офертой"})]})]})});$.displayName="DepositDetailCompute"},58263:function(e,t,n){"use strict";n.r(t);var a=n(2265);t.default=(0,a.createContext)(void 0)},27406:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var a=n(57437),i=n(2265),s=n(58263);function l(e){let{children:t,siteConfig:n}=e,[l]=(0,i.useState)(n);return(0,a.jsx)(s.default.Provider,{value:l,children:t})}},36467:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u.default},iw:function(){return s},ND:function(){return r}}),(a=i||(i={})).Beeline="beeline",a.T2="t2",a.Megafon="megafon";var a,i,s={toggles:{FEATURE_TOGGLE_NEW_DEPOSIT_TAGS:!1,FEATURE_TOGGLE_NEW_FAQ_BLOCK:!1,FEATURE_TOGGLE_COMBO_PRODUCT_ENABLED:!1,FEATURE_TOGGLE_DISPLAY_DEPOSIT_GUIDE:!1,FEATURE_TOGGLE_NEW_DEPOSITS:!1,FEATURE_TOGGLE_NEW_BEST_DEPOSITS:!1,FEATURE_TOGGLE_INTERNAL_REFERAL_LOGIN_ENABLED:!1,FEATURE_TOGGLE_API_DEPOSITS_ENABLED:!1,FEATURE_TOGGLE_DEPOSIT_TIPS_ENABLED:!1},depositsFilter:{[i.Beeline]:{amount:3e5,term:6},[i.T2]:{amount:3e5,term:6},[i.Megafon]:{amount:0,term:0}},specialPartnersDeposits:{[i.T2]:{},[i.Beeline]:{},[i.Megafon]:{}},partnerFacetsIds:{[i.T2]:{},[i.Beeline]:{},[i.Megafon]:{}}},l=n(2265),o=n(58263);function r(){let e=(0,l.useContext)(o.default);if(!e)throw Error("Site config was used out of context");return e}var u=n(27406)},82694:function(e,t,n){"use strict";var a=n(83595),i=n(24760);let s={[i.Z.Day]:(e,t)=>(0,a.I)(e,{days:t}),[i.Z.Month]:(e,t)=>(0,a.I)(e,{months:t}),[i.Z.Year]:(e,t)=>(0,a.I)(e,{years:t})};t.Z=s},56504:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var a=n(44377),i=n(72697),s=n(83595),l=n(43807),o=n(19852),r=n(8592),u=n(10414),c=n(66653),d=n(24760),_=n(82694);function m(e){let{capitalization:t,paymentFrequency:n,dateStart:a,termByYears:i,amount:s,averageRate:l,termInDays:o}=e;if(t){let e=l/100;if(n===c.Z.OnceAMonth){let t=o/u.F,n=s*Math.pow(1+e/12,t)-s,a=n/s/t*1200;return{profit:n,effectiveRate:a}}if(n===c.Z.EveryDay){let t=i.reduce((t,n)=>t*Math.pow(1+e/n.daysInYear,n.daysInInterval),s)-s,n=t/s/o*(0,r.y)(a)*100;return{profit:t,effectiveRate:n}}}return{profit:i.reduce((e,t)=>e+l/100*s/t.daysInYear*t.daysInInterval,0),effectiveRate:l}}function p(e){let{depositSum:t,term:n,rate:u,isCapitalization:c=!1,discount:p,period:h,paymentFrequency:v,dateStart:g=new Date}=e,f=_.Z[h](g,n),y=h===d.Z.Day?n:(0,o.w)(f,g),b=function(e,t,n){let u=(0,a.k)({start:e,end:t});return u.reduce((a,c,d)=>{let _=0===d?e:c,m=d===u.length-1?t:(0,i.u)((0,s.I)(_,{days:n}),{start:_,end:(0,s.I)((0,l.w)(c),{days:1})}),p=(0,o.w)(m,_);return 0===p?a:[...a,{daysInYear:(0,r.y)(c),daysInInterval:p}]},[])}(g,f,y),x={amount:t,paymentFrequency:v,dateEnd:f,dateStart:g,capitalization:c,termByYears:b,termInDays:y,averageRate:u},{profit:T,effectiveRate:k}=m(x),{bonus:D,bonusRate:E}=function(e,t){if(!t)return{bonus:0,bonusRate:0};let n=t.rate;if("fixedBonusAmount"in t&&t.fixedBonusAmount)return{bonus:t.fixedBonusAmount,bonusRate:n};let{profit:a}=m({...e,averageRate:n,capitalization:!1});if(a<t.sum)return{bonus:a,bonusRate:n};let i=t.sum/a;return{bonus:t.sum,bonusRate:n*i}}(x,p);return{total:t+T+D,bonus:D,profit:T,effectiveRate:k,bonusRate:E}}},46749:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});class a{get hasKeysExistsSome(){return[...this.amountKeys,...this.termsKeys].some(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}get hasKeysExistsEvery(){return[...this.amountKeys,...this.termsKeys].every(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}get hasAmountKeys(){return this.amountKeys.some(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}get hasTermsKeys(){return this.termsKeys.some(e=>Object.prototype.hasOwnProperty.call(this.promotion,e))}checkMinMax(e,t,n){return(!!n||!!t)&&(n&&!t?e<=n:!n&&t?e>=t:e>=t&&e<=n)}getDiscountByAmount(){return this.checkMinMax(this.currentAmount,this.minAmount,this.maxAmount)}getDiscountByTerms(){return this.checkMinMax(this.terms,this.minTermInDays,this.maxTermInDays)}constructor(e,t){var n,a,i,s;this.promotion=e,this.minAmount=null!==(n=e.minAmount)&&void 0!==n?n:0,this.maxAmount=null!==(a=e.maxAmount)&&void 0!==a?a:0,this.minTermInDays=null!==(i=e.minTermInDays)&&void 0!==i?i:0,this.maxTermInDays=null!==(s=e.maxTermInDays)&&void 0!==s?s:0,this.terms=t.terms,this.currentAmount=t.currentAmount,this.amountKeys=["minAmount","maxAmount"],this.termsKeys=["minTermInDays","maxTermInDays"]}}let i=e=>{let{currentAmount:t,finuslugiBonusAllowed:n,isPlusFiveBonus:i,isOldUser:s,terms:l,finuslugiBonusPromotion:o}=e;if(!n)return!1;if(i)return!0;if(!o||!s)return!1;let r=new a(o,{terms:l,currentAmount:+t});return!r.hasAmountKeys&&!r.hasTermsKeys||(r.terms&&r.currentAmount||!r.hasKeysExistsEvery?!!(r.terms&&r.hasKeysExistsSome&&r.getDiscountByTerms())&&!!(r.currentAmount&&r.hasKeysExistsSome&&r.getDiscountByAmount()):r.getDiscountByTerms()&&r.getDiscountByAmount())}},45706:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var a=n(508);function i(e){let{asPath:t,firstBaseUrl:n,productId:i,optionId:l,amount:o,durationValue:r,secondBaseUrl:u,passAggregatorId:c=!1,passCombo:d=!1}=e,{utm_campaign:_,utm_medium:m,utm_source:p,utm_term:h,aggregator_id:v}=(0,a.p)(t,"#"),{partner_id:g}=(0,a.p)(t,"?"),f=c?v:g;return{urlFirst:s(new URL("/add-product",n),{aggregatorId:null!=f?f:"moex-mp-new-sc",productId:i,optionId:l,amount:o,durationValue:r,utm_campaign:_,utm_medium:m,utm_source:p,utm_term:h,...d?{from:"combo"}:null}).toString(),urlSecond:u&&s(new URL(u),{amount:o,durationValue:r,utm_campaign:_,utm_medium:m,utm_source:p,utm_term:h,...d?{from:"combo"}:null}).toString()}}function s(e,t){let n=new URL(e);return Object.entries(t).forEach(e=>{let[t,a]=e;if(null!=a){if(Array.isArray(a))return a.forEach(e=>n.searchParams.append(t,String(e)));n.searchParams.set(t,String(a))}}),n}},86081:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var a=n(2265),i=n(47212);function s(e,t,n){let{disabled:s=!1,separateLoaders:l=!1,...o}=null!=n?n:{},r=(0,i.ZP)(s?null:e,t,{revalidateOnFocus:!1,...o}),{isLoading:u,isValidating:c}=r,d=u||c;return(0,a.useMemo)(()=>({...r,isLoading:l?u:d,isValidating:l?c:d}),[d,u,c,l,r])}},85816:function(e){e.exports={tag:"Tag_tag__F7OOH",tagPrimary:"Tag_tagPrimary__avetL",tagSecondary:"Tag_tagSecondary__RMaKP",tagPink:"Tag_tagPink__YGm7U",tagYellow:"Tag_tagYellow__wh7Mz",text:"Tag_text__nOOMV",detail:"Tag_detail__xPW1b",detailIcon:"Tag_detailIcon__LNOTP"}},54375:function(e){e.exports={container:"DepositDetailCompute_container__wgV0n",containerChart:"DepositDetailCompute_containerChart__QUao0",info:"DepositDetailCompute_info___pqT7",tags:"DepositDetailCompute_tags__Le8d7",tag:"DepositDetailCompute_tag__DV451",button:"DepositDetailCompute_button__qK6jL",loginWidget:"DepositDetailCompute_loginWidget__3hRgV",detailIcon:"DepositDetailCompute_detailIcon__8lmnN",chart:"DepositDetailCompute_chart__S_HP1",chartVisible:"DepositDetailCompute_chartVisible__STX_r",tooltipLink:"DepositDetailCompute_tooltipLink__4gESn",buttonIcon:"DepositDetailCompute_buttonIcon__Zi3GE",disclaimer:"DepositDetailCompute_disclaimer__ZofBY",singleToggle:"DepositDetailCompute_singleToggle__tFiQ1"}},78840:function(e){e.exports={head:"Header_head__lMUs0",title:"Header_title__r4Wa_",result:"Header_result__SKeZv",resultText:"Header_resultText__UbYRQ",resultTextFloat:"Header_resultTextFloat__D5t0r",resultButton:"Header_resultButton__jXHD7",resultIcon:"Header_resultIcon__dJ1wD",chartButton:"Header_chartButton__AmKiY"}},34037:function(e){e.exports={skeletonContainer:"HeaderSkeleton_skeletonContainer___dhhJ",visible:"HeaderSkeleton_visible__arkXP",skeletonProfit:"HeaderSkeleton_skeletonProfit__PGN7g",skeletonDate:"HeaderSkeleton_skeletonDate__QrnJO"}},69595:function(e){e.exports={skeletonContainer:"ProfitSkeleton_skeletonContainer__33exZ",visible:"ProfitSkeleton_visible__StSgI",skeleton:"ProfitSkeleton_skeleton___lU6r"}},1012:function(e){e.exports={values:"ValueList_values__mGunQ",value:"ValueList_value__RRvlg",valueDash:"ValueList_valueDash__mwitD",detail:"ValueList_detail__6tgWx",toggle:"ValueList_toggle__tin7w"}}}]);