PageSourceSearch

https://www.gazprombank.ru/_next/c2e2cf5515281430d1da46b535fb5d23/…/static/chunks/37384.1bde1b62caf9489c.js

js gazprombank.ru collected 2026-10-01 10:28:09 UTC 29,753 bytes, 1 lines download raw bytes

1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6c1a685e-967c-4240-aac1-82b67fb89891",t._sentryDebugIdIdentifier="sentry-dbid-6c1a685e-967c-4240-aac1-82b67fb89891")}()}catch(t){}!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:gpb":!0})}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"edfe07338426f04fb27c8d9998ddcc7423a52ad2"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[37384,48048],{198:(t,e,l)=>{"use strict";l.d(e,{A:()=>d});var a=l(37876),r=l(89482),o=l(58103),i=l.n(o),n=l(7910),s=l(19232),u=l(15266),_=l(64105),c=l.n(_);let d=(0,r.memo)(t=>{let{field:e,setValue:l,maxLength:o,incomeValue:_=0,storageValue:d=0,onKeyDown:m=()=>{},mask:v="separateNumbers",hiddenLimits:h=!1,isWithoutIcon:p=!1,inputMode:f="numeric",integerLimitForPercentPerAnnum:C,hiddenMaxPrefix:x=!1,timeStamp:g}=t,{value:R,min:{value:b,prefix:A},max:{value:j,prefix:w},name:N,postfix:y,label:k}=e,S=d||R,[T,I]=(0,r.useState)(!1),L=(0,r.useRef)(null);(0,r.useEffect)(()=>
1{l(S)},[e]);let D=(0,r.useCallback)(t=>{var e;let a,r=null==(e=t.target)?void 0:e.value;if("percentPerAnnum"===v){let t=r.replace(/[^\d.]/g,"");if(!t.split(".").every(Boolean))return;a=t||""}else a=parseInt(r.replace(/[^0-9]/g,""),10)||"";a>j?l(j,t):l(a||" ",t)},[j,g]),B=(0,r.useCallback)(t=>{var e;let a,r=null==(e=t.target)?void 0:e.value;if("percentPerAnnum"===v){let t=(a=r.replace(/[^\d.]/g,"")||"").length;setTimeout(()=>{L.current&&L.current.setSelectionRange(t,t)},0)}else a=parseInt(r.replace(/[^0-9]/g,""),10)||"";l(a||" ",t),I(!0)},[]),M=(0,r.useCallback)(t=>{let e,{target:a}=t,r=null==a?void 0:a.value;(e="percentPerAnnum"===v?r.replace(/[^\d.]/g,"")||"":parseInt(r.replace(/[^0-9]/g,""),10)||"")&&!(e<b)||l(b),e>j&&l(j),I(!1)},[b,j]),V=w.includes("нет ограничений")?w:"".concat(w," ").concat((0,n.A)(j)).concat(y);return(0,a.jsxs)("div",{className:c().root,children:[(0,a.jsxs)("div",{className:i()(c().root__wrapper,{[c().focus]:T}),children:[(0,a.jsx)("div",{className:c().root__text,children:k}),(0,a.jsx)(u.A,{className:c().root__input,ref:L,name:N,disabled:!1,mask:v,maxLength:o,suffix:T?"":y,value:_,inputMode:f,integerLimitForPercentPerAnnum:C,onChange:D,onBlur:M,onFocus:B,onKeyDown:m}),!p&&(0,a.jsx)("div",{className:c().root__pencil,children:(0,a.jsx)(s.A,{icon:{code:"edit"}})})]}),!h&&(0,a.jsxs)("div",{className:c().root__limits,children:[(0,a.jsx)("div",{className:c().root__limits_text,children:"".concat(A," ").concat((0,n.A)(b)).concat(y)}),!x&&(0,a.jsx)("div",{className:c().root__limits_text,children:V})]})]})})},1316:(t,e,l)=>{"use strict";l.d(e,{A:()=>i});var a=l(37876),r=l(89482),o=l(25920);let i=t=>{let{children:e}=t,l=(0,o.A)().width,[i,n]=(0,r.useState)(!1),[s,u]=(0,r.useState)(null),_=(0,r.useRef)(null),c=(0,r.useCallback)(()=>{u(null),_.current&&(_.current.style.fontSize=""),n(t=>!t)},[]),d=(0,r.useCallback)(()=>new Promise(t=>{let e=_.current;if(e){let l=parseInt(window.getComputedStyle(e).lineHeight,10),a=parseInt(window.getComputedStyle(e).fontSize,10);for(;e.offsetHeight>l;)a--,e.style.fontSize="".concat(a,"px");t(a)}}),[_.current]);return(0,r.useEffect)(()=>{d().then(t=>u(t))},[i]),(0,r.useEffect)(()=>{c()},[e,l]),(0,a.jsx)("div",{ref:_,style:{fontSize:"".concat(s,"px")},children:e})}},3243:t=>{t.exports={root:"CalculatorActions_root__ZGUTd",root__cell:"CalculatorActions_root__cell__YCxOp",shimmer:"CalculatorActions_shimmer__limPN",t
1imerRotateRight:"CalculatorActions_timerRotateRight__Ixi0v",timerRotateLeft:"CalculatorActions_timerRotateLeft__IDKhd"}},4399:(t,e,l)=>{"use strict";l.d(e,{A:()=>n});var a=l(48011),r=l(79638),o=l(96600),i=l(60517);let n=(t,e)=>{let l=(0,a.wA)();(0,o.A)(()=>{l((0,i.YD)({code:t}))},()=>{l((0,i.xt)())}),(0,r.A)(()=>{l((0,i.YD)({values:e}))},500,[e])}},7910:(t,e,l)=>{"use strict";l.d(e,{A:()=>a});let a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}},7953:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(37876),r=l(89482),o=l(14942),i=l(38735),n=l.n(i);let s=(0,r.memo)(t=>{let{isMaxRate:e,rate:l,onClickHandle:r,text:i="Вы можете увеличить сумму вклада, ставка не изменится",textPrev:s="Получить максимальную ставку",prefix:u=""}=t;return(0,a.jsxs)("div",{className:n().root,children:[(0,a.jsxs)("div",{className:n().root__title,children:[e?"Ставка максимальная ":"Ставка ",(0,a.jsxs)("span",{children:[u,(0,o.A)(l),"%"]})]}),(0,a.jsx)("div",{className:n().root__description,children:e?(0,a.jsx)("div",{"data-test-id":"calculator-rate-text",className:n().root__text,children:i}):(0,a.jsx)("button",{type:"button",className:n().root__button,onClick:r,children:s})})]})})},13294:(t,e,l)=>{"use strict";l.d(e,{A:()=>u});var a=l(37876),r=l(58103),o=l.n(r),i=l(91521),n=l(71015),s=l.n(n);let u=t=>{let{description:e="",classes:l={}}=t;return e?(0,a.jsx)("div",{className:o()(s().root,null==l?void 0:l.root),children:(0,a.jsx)(i.A,{html:e})}):null}},13975:(t,e,l)=>{"use strict";l.d(e,{A:()=>i});var a=l(46045),r=l(16690),o=l(84925);let i=t=>{var e,l,i,n,s,u,_,c;let{fields:d,input:m,channel:v,sumIn:h=0,code:p="deposit_amount"}=t,f=h||m.value,C=v?null==m||null==(i=m.max)||null==(l=i.items)||null==(e=l[v])?void 0:e.value:null==m||null==(n=m.max)?void 0:n.defaultValue,x=v?null==m||null==(_=m.min)||null==(u=_.items)||null==(s=u[v])?void 0:s.value:null==m||null==(c=m.min)?void 0:c.defaultValue,g=(0,o.A)({sumIn:Number(f),min:x,max:C});return{currentFields:d.map(t=>{if(t.code===p){var e,l;return(0,r._)((0,a._)({},t),{max:(0,r._)((0,a._)({},null==m?void 0:m.max),{value:C||(null==m||null==(e=m.max)?void 0:e.defaultValue)||0}),min:(0,r._)((0,a._)({},null==m?void 0:m.min),{value:x||(null==m||null==(l=m.min)?void 0:l.defaultValue)||0}),value:g})}return t}),value:g}}},14942:(t,e,l)=>{"use strict";l.d(e,{A:()=>a});let a=t=>t.toString().replace(/\./g,",")},15266:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(46045),r=l(16690),o=l(37876),i=l(89482),n=l(68047);let s=(0,i.forwardRef)((t,e)=>(0,o.jsx)(n.A,(0,r._)((0,a._)({},t),{isDisabled:t.disabled,ref:e})))},17332:t=>{t.exports={root:"CalculatorBaseWrapper_root__TAB_o",vertical:"CalculatorBaseWrapper_vertical__AQlNi",default:"CalculatorBaseWrapper_default__VsB_x",reset:"CalculatorBaseWrapper_reset__dO117",shimmer:"CalculatorBaseWrapper_shimmer__frMYh",timerRotateRight:"CalculatorBaseWrapper_timerRotateRight__cZ9uy",timerRotateLeft:"CalculatorBaseWrapper_timerRotateLeft__yaF4F"}},18383:(t,e,l)=>{"use strict";l.d(e,{A:()=>C});var a=l(46045),r=l(16690),o=l(37876),i=l(89482),n=l(48653),s=l(27442),u=l(58103),_=l.n(u),c=l(19232),d=l(25251),m=l.n(d);let v=t=>{let{item:e,onChange:l}=t;return(0,o.jsxs)("div",{"data-test-id":"calculator-tabs-item",className:_()(m().root,{[m().hidden]:null==e?void 0:e.isHidden,[m().disabled]:null==e?void 0:e.isDisabled}),children:[(0,o.jsx)("input",{className:m().root__input,type:"radio",id:e.id,name:e.name,value:e.value,checked:e.isChecked,disabled:e.isDisabled,onChange:l}),(0,o.jsx)("label",{htmlFor:e.id,children:(0,o.jsxs)("span",{"data-test-id":"calculator-tabs-item-label","data-test-state-checked":e.isChecked,className:m().root__label,children:[(null==e?void 0:e.icon)&&(0,o.jsx)(c.A,{icon:{code:null==e?void 0:e.icon}}),(0,o.jsx)("span",{children:e.label})]})})]})};var h=l(44487),p=l.n(h);let f=t=>{let{id:e,options:l,onChange:a}=t;return l?(0,o.jsx)("div",{className:p().root,children:(t=>{let{options:e,onChange:l,id:a}=t;return(0,o.jsx)("div",{className:p().root__wrapper,children:e.map(t=>(0,o.jsx)(v,{item:t,onChange:l,id:a},t.id))})})({options:l,onChange:a,id:e})}):null},C=t=>
1{let{field:e,setTab:l,storageValue:u,title:_="",onClick:c,isShowAll:d,isUnderlineTitle:m,subtitle:v="",value:h}=t,[p,C]=(0,i.useState)(e.options||[]),x=!d&&(null==p?void 0:p.length)===1;(0,i.useEffect)(()=>{var t;l(u||(null==p||null==(t=p.find(t=>t.isChecked))?void 0:t.value)),u&&C((0,n.A)({value:u,options:p}))},[u]),(0,i.useEffect)(()=>{void 0!==h&&C(t=>(0,n.A)({value:h,options:t}))},[h]);let g=(0,i.useCallback)(t=>{C(p.map(e=>(0,r._)((0,a._)({},e),{isChecked:e.id===t.target.id}))),l(t.target.value,t)},[p]);return p?(0,o.jsx)(s.A,{title:_,subtitle:v,onClick:c,isUnderlineTitle:m,isHidden:x,children:(0,o.jsx)(f,{options:p,onChange:g,id:e.id})}):null}},24389:t=>{t.exports={root:"CalculatorColumn_root__CwlD8",default:"CalculatorColumn_default__zUuch",equal:"CalculatorColumn_equal__2iOJl",sticky:"CalculatorColumn_sticky___5LQp",reset:"CalculatorColumn_reset__7HQVE",single:"CalculatorColumn_single__gw7Ty",shimmer:"CalculatorColumn_shimmer__db4JY",timerRotateRight:"CalculatorColumn_timerRotateRight__8PTpJ",timerRotateLeft:"CalculatorColumn_timerRotateLeft__mqZUc"}},25251:t=>{t.exports={root:"CalculatorTabsItem_root__yT67Q",root__input:"CalculatorTabsItem_root__input__lXXhu",root__label:"CalculatorTabsItem_root__label__xNZBk",disabled:"CalculatorTabsItem_disabled__Z9j_P",hidden:"CalculatorTabsItem_hidden__3Qv4E",shimmer:"CalculatorTabsItem_shimmer__4HTO8",timerRotateRight:"CalculatorTabsItem_timerRotateRight__zXao1",timerRotateLeft:"CalculatorTabsItem_timerRotateLeft__h6zog"}},27442:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(37876),r=l(58103),o=l.n(r),i=l(70725),n=l.n(i);let s=t=>{let{title:e="",subtitle:l="",children:r,isHidden:i=!1,classes:s,onClick:u=()=>{},isUnderlineTitle:_,isContentGap:c=!0}=t;return(0,a.jsxs)("div",{className:o()(n().root,null==s?void 0:s.root,{[n().hidden]:i}),children:[e&&(0,a.jsx)("div",{onClick:u,children:(0,a.jsx)("div",{className:o()(n().root__title,null==s?void 0:s.title,{[n().underline]:_}),children:e})}),l&&(0,a.jsx)("p",{className:o()(n().root__subtitle,null==s?void 0:s.subtitle),children:l}),(0,a.jsx)("div",{className:o()(n().root__content,null==s?void 0:s.content,{[n().gap]:c,[n().untitled]:!e&&!l}),children:r})]})}},29659:(t,e,l)=>{"use strict";l.d(e,{A:()=>c});var a=l(37876),r=l(89482),o=l(55753);let i=/calc_orderbutton|calc_infobutton|calcbutton|infobutton/,n=function(t,e){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=l?e:(t=>{var e;switch(t){case"open_an_account_calculator":return"open_an_account_calculator";case"main":return"maincalc_orderbutton";case"additional":return"maincalc_infobutton";case null==(e=t.match(i))?void 0:e.input:return t;default:return null}})(e);(0,o.zq)({event:"formevent",eventCategory:(t=>{var e;switch(t){case"open_an_account_calculator":return"clicks";case null==(e=t.match(i))?void 0:e.input:return"forms";default:return"ux_forms"}})(e),eventAction:t,eventLabel:a})};var s=l(21810),u=l(3243),_=l.n(u);let c=t=>{let{button:e,buttonClasses:l={},additionalButton:o=null,addButtonClasses:i={},queryData:u={},buttonClickHandle:c,addButtonClickHandle:d,gtmActionTypes:m={main:"main",additional:"additional",labelWithoutTypeChecking:!1},actionsGTM:v}=t,h=(0,r.useCallback)(()=>{var t,l,a,r,o;let i=null!=(r=null!=(a=null==v||null==(t=v.main)?void 0:t.eventAction)?a:null==e?void 0:e.eventAction)?r:"";n(i,null!=(o=null==v||null==(l=v.main)?void 0:l.eventLabel)?o:m.main,!v&&m.labelWithoutTypeChecking),c&&c()},[null==e?void 0:e.eventAction,c,m.main]),p=(0,r.useCallback)(()=>{var t,e,l,a,r;let i=null!=(a=null!=(l=null==v||null==(t=v.additional)?void 0:t.eventAction)?l:null==o?void 0:o.eventAction)?a:"";n(i,null!=(r=null==v||null==(e=v.additional)?void 0:e.eventLabel)?r:m.additional,!v&&m.labelWithoutTypeChecking),d&&d()},[null==o?void 0:o.eventAction,d,m.additional]),f=(0,r.useMemo)(()=>{if((null==e?void 0:e.href)&&!(null==e?void 0:e.href.startsWith("#"))){let t=Object.keys(u).length?"?".concat(new URLSearchParams(u).toString()):"",l="",a=null==e?void 0:e.href.replace(/#.+/,t=>(l=t,""));return"".concat(a).concat(t).concat(l)}return null==e?void 0:e.href},[u]);
1return(0,a.jsxs)("div",{className:_().root,"data-test-id":"calculator-action-buttons",children:[e&&(0,a.jsx)("div",{className:_().root__cell,children:(0,a.jsx)(s.default,{href:f,target:null==e?void 0:e.target,size:"lg",block:!0,onClick:h,classes:l,"data-calc-action-btn":!0,children:null==e?void 0:e.name})}),o&&(0,a.jsx)("div",{className:_().root__cell,children:(0,a.jsx)(s.default,{href:null==o?void 0:o.href,target:null==o?void 0:o.target,variant:"tertiary",size:"lg",block:!0,onClick:p,classes:i,children:null==o?void 0:o.name})})]})}},32801:(t,e,l)=>{"use strict";l.d(e,{A:()=>a.A});var a=l(7953)},34955:(t,e,l)=>{"use strict";l.d(e,{A:()=>i});var a=l(89482),r=l(48048),o=l(80026);let i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return(0,a.useMemo)(()=>0>=(0,o.A)((0,r.default)(new Date,e),new Date(t)),[t,e])}},35798:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});var a=l(46045),r=l(16690);let o=t=>{let{fields:e,codes:l}=t;return e.reduce((t,e)=>l.includes(e.code)?(0,r._)((0,a._)({},t),{[e.code]:e}):t,{})}},37384:(t,e,l)=>{"use strict";l.r(e),l.d(e,{default:()=>M});var a=l(37876),r=l(89482),o=l(41403),i=l(49470),n=l(46045),s=l(16690),u=l(79062),_=l(35798),c=l(96432),d=l(13975);let{useStoreSelector:m}=(0,l(31289).A)((t,e)=>({term:0,rate:0,sumIn:0,channel:0,calculator:null,total:0,sumRateTotal:0,maxRate:null,isMaxRate:!1,results:[],minSumIn:0,timeStamp:0,maxRateValue:0,setSumIn:(e,l)=>t(t=>(0,s._)((0,n._)({},t),{sumIn:Number(e),timeStamp:(null==l?void 0:l.timeStamp)||0})),setTerm:e=>t(t=>(0,s._)((0,n._)({},t),{term:Number(e)})),setChannel:e=>t(t=>(0,s._)((0,n._)({},t),{channel:Number(e)})),setInitialFields:e=>t(t=>{let{deposit_rate:l,deposit_channels:a,deposit_amount:r}=(0,_.A)({fields:e.fields,codes:["deposit_rate","deposit_channels","deposit_amount"]}),o=(0,u.A)({input:a}),{currentFields:i}=(0,d.A)({channel:o,fields:e.fields,input:r});return(0,s._)((0,n._)({},t),{calculator:(0,s._)((0,n._)({},e),{fields:i}),maxRate:l.values,minSumIn:(0,c.A)({input:r,channel:o})})}),setFields:l=>{let{calculator:a,channel:r}=l;return t(t=>{let{sumIn:l,minSumIn:o}=e();if(l>=o){let{deposit_amount:e}=(0,_.A)({fields:a.fields,codes:["deposit_amount"]}),{currentFields:o,value:i}=(0,d.A)({channel:r,fields:a.fields,input:e,sumIn:l});return(0,s._)((0,n._)({},t),{calculator:(0,s._)((0,n._)({},a),{fields:o}),minSumIn:(0,c.A)({input:e,channel:r}),sumIn:i})}return(0,s._)((0,n._)({},t),{sumIn:l})})},setCalculate:l=>{let{calculator:a,channel:r,sumIn:o,maxRate:i}=l;return t(t=>{let{isMaxRate:l,minSumIn:u}=e(),{data:_}=a;if(o>=u){let e=0,a=0,u=0,c=(t=>{let{data:e,channel:l,sumIn:a}=t;return l?null==e?void 0:e.filter(t=>Number(t.channelId)===Number(l)&&t.sumMin<=a&&t.sumMax>=a):null==e?void 0:e.filter(t=>t.sumMin<=a&&t.sumMax>=a)})({data:_,sumIn:o,channel:r}),d=null==c?void 0:c.reduce((t,e)=>t+(null==e?void 0:e.rates.base),0),m=c.map(t=>{let e=l?null==i?void 0:i.rate:t.rates.base;return(0,s._)((0,n._)({},t),{total:Math.round(t.term/365*e/100*o)})}),v=c.reduce((t,e)=>e.rates.base>t?e.rates.base:t,0);return a=null==m?void 0:m.reduce((t,e)=>t+(null==e?void 0:e.total),0),e=Number((d/c.length).toFixed(2)),u=a+o,(0,s._)((0,n._)({},t),{results:c,rate:e,sumRateTotal:a,total:u,sumIn:o,maxRateValue:v,isMaxRate:!1})}return(0,n._)({},t)})},setMaxRate:()=>t(t=>{let{maxRate:l}=e();return(0,s._)((0,n._)({},t),{channel:Number(null==l?void 0:l.channelId),rate:Number(null==l?void 0:l.rate),isMaxRate:!0})})}));var v=l(7910),h=l(14942),p=l(198),f=l(32801),C=l(18383),x=l(48594),g=l(50575),R=l(32790),b=l(42456),A=l(66075),j=l(29659),w=l(13294),N=l(86250),y=l(58103),k=l.n(y),S=l(40802),T=l(99791),I=l.n(T);let L=t=>{let{table:e=[],tooltipText:l=""}=t;return(0,a.jsxs)("div",{className:I().root,children:[(0,a.jsxs)("div",{className:I().root__row,children:[(0,a.jsx)(S.A,{content:l,children:(0,a.jsx)("span",{className:k()(I().root__caption,I().tooltip),children:"Период"})}),(0,a.jsx)("div",{className:I().root__caption,children:"Ставка"})]}),null==e?void 0:e.map(t=>(0,a.jsxs)("div",{className:I().root__item,children:[(0,a.jsx)("div",{children:t.termName}),(0,a.jsxs)("div",{className:I().root__rate,children:[(0,h.A)(t.rates.base),"%"]})]},t.termName))]})};var D=l(59079),B=l.n(D);let M=t=>{var e;let{code:l,block:n}=t,{calculators:s,description:u,title:_,hash:c,button:d,incomeInformer:y,periodInformer:k,id:S}=n,T=(null==s?void 0:s[0])||[],[I,D,M,V,E,F,W,P,z,O,J,q,H,G,Q,Y,X]=m(t=>[t.rate,t.sumIn,t.setSumIn,t.setTerm,t.setChannel,t.setInitialFields,t.calculator,t.setFields,t.channel,t.setCalculate,t.sumRateTotal,t.total,t.setMaxRate,t.results,t.timeStamp,t.maxRate,t.maxRateValue]),{sumInStorage:Z,channelStorage:K}=((t,e)=>{let l=(0,r.useMemo)(()=>e,[e.sumIn,e.channel]),a=(0,i.A)(t,l);return{sumInStorage:parseInt(String((null==a?void 0:a.sumIn)||0),10),channelStorage:null==a?void 0:a.channel}})("".concat(l,"_").concat(S),{sumIn:D,channel:z});(0,o.default)(()=>{F(T)},[]),(0,r.useEffect)(()=>P({calculator:T,channel:z}),[z]),(0,r.useEffect)(()=>{O({calculator:T,channel:z,sumIn:D,maxRate:Y})},[z,D,W]);let U=null!=W?W:T;return(0,a.jsxs)(R.A,{hash:c,children:[(0,a.jsx)(N.A,{title:_,isCssVarsEnabled:!0}),(0,a.jsxs)(x.A,{children:[(0,a.jsx)(g.A,{children:(0,a.jsx)(b.A,{variant:"md",children:null==U||null==(e=U.fields)?void 0:e.map(t=>{switch(null==t?void 0:t.code){case"deposit_channels":return(0,a.jsx)(C.A,{field:t,setTab:E,title:"",storageValue:K},t.id);case"deposit_rate":var e;return(0,a.jsx)(f.A,{onClickHandle:H,rate:X,isMaxRate:(null==(e=t.values)?void 0:e.rate)===X,prefix:"до ",text:"Вы можете изменить сумму вклада. Это не повлияет на ставку"},t.id);case"deposit_amount":return(0,a.jsx)(p.A,{field:t,incomeValue:D,setValue:M,storageValue:Z,hiddenMaxPrefix:!0,timeStamp:Q},t.id);case"deposit_term":return(0,a.jsx)(C.A,{field:t,setTab:V,title:t.label,isShowAll:!0},t.id);default:return null}})})}),(0,a.jsxs)(g.A,{isSticky:!0,children:[(0,a.jsx)(A.A,{results:[{label:"Средняя ставка",value:I,getValueFormat:h.A,suffix:"%",main:!0,labelTooltip:y,classes:{label:B().root__label}},{label:"",value:"1",component:(0,a.jsx)(L,{table:G,tooltipText:k})},{label:"Доход по вкладу",value:J,getValueFormat:v.A,suffix:" ₽",classes:{label:B().root__label}},{label:"Сумма в конце срока",value:q,getValueFormat:v.A,suffix:" ₽",classes:{label:B().root__label}}]}),(0,a.jsx)(j.A,{button:d}),(0,a.jsx)(w.A,{description:u})]})]})]})}},38735:t=>{t.exports={root:"CalculatorRate_root__qxJc0",root__title:"CalculatorRate_root__title__OihkW",root__text:"CalculatorRate_root__text__39In_",root__button:"CalculatorRate_root__button__sT_qi",shimmer:"CalculatorRate_shimmer__oUM9T",timerRotateRight:"CalculatorRate_timerRotateRight__gyl9H",timerRotateLeft:"CalculatorRate_timerRotateLeft__3qQ9f"}},40867:t=>{t.exports={root__value:"CalculatorResultsRowValue_root__value__ErO9K",main:"CalculatorResultsRowValue_main__g7h6A",shimmer:"CalculatorResultsRowValue_shimmer__gWpfu",timerRotateRight:"CalculatorResultsRowValue_timerRotateRight__dpD8R",timerRotateLeft:"CalculatorResultsRowValue_timerRotateLeft__7j25o"}},41403:(t,e,l)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var a=l(89482);e.default=l(98159).isBrowser?a.useLayoutEffect:a.useEffect},42456:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(37876),r=l(58103),o=l.n(r),i=l(43094),n=l.n(i);let s=t=>{let{children:e,variant:l="sm",className:r="",isGap:i=!0,onClick:s=()=>{}}=t;return(0,a.jsx)("div",{className:o()(n().root,n()[l],r,{[n().gap]:i}),onClick:s,children:e})}},43094:t=>{t.exports={root:"CalculatorContentCard_root__e6hP4",gap:"CalculatorContentCard_gap__JK0d0",sm:"CalculatorContentCard_sm__3jvQm",md:"CalculatorContentCard_md__Vn8kG",reset:"CalculatorContentCard_reset__ueYyR",shimmer:"CalculatorContentCard_shimmer__B4yEe",timerRotateRight:"CalculatorContentCard_timerRotateRight__kC_vW",timerRotateLeft:"CalculatorContentCard_timerRotateLeft__P47jz"}},44487:t=>{t.exports={root__wrapper:"CalculatorTabsWrapper_root__wrapper__X7_0V",shimmer:"CalculatorTabsWrapper_shimmer__9XPPT",timerRotateRight:"CalculatorTabsWrapper_timerRotateRight__sy45s",timerRotateLeft:"CalculatorTabsWrapper_timerRotateLeft__oMx1Z"}},48048:(t,e,l)=>{"use strict";l.r(e),l.d(e,{default:()=>i});var a=l(23624),r=l(41235),o=l(99109);function i(t,e){(0,o.A)(2,arguments);var l=(0,r.default)(t),i=(0,a.A)(e);return isNaN(i)?new Date(NaN):(i&&l.setDate(l.getDate()+i),l)}},48594:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(37876),r=l(58103),o=l.n(r),i=l(17332),n=l.n(i);let s=t=>{let{children:e,className:l="",variant:r="default"}=t;return(0,a.jsx)("div",{className:o()(n().root,n()[r],l),"data-test-id":"calculator",children:e})}},48653:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});var a=l(46045),r=l(16690);let o=t=>{let{value:e,options:l}=t;return l.map(t=>{var l;return(0,r._)((0,a._)({},t),{isChecked:(null==(l=t.value)?void 0:l.toString())===(null==e?void 0:e.toString())})})}},48980:t=>{t.exports={root:"CalculatorResultsRow_root___IQjT",root__label:"CalculatorResultsRow_root__label__xdBah",bold:"CalculatorResultsRow_bold__XuT85",root__label_tooltip_icon:"CalculatorResultsRow_root__label_tooltip_icon__SgKfV",shimmer:"CalculatorResultsRow_shimmer__pZo4h",timerRotateRight:"CalculatorResultsRow_timerRotateRight__TdxXx",timerRotateLeft:"CalculatorResultsRow_timerRotateLeft__U1WM0"}},49470:(t,e,l)=>{"use strict";l.d(e,{A:()=>_});var a=l(46045),r=l(16690),o=l(89482),i=l(76605),n=l(94341),s=l(4399),u=l(34955);let _=(t,e)=>{let[l,_]=(0,i.A)(t),c=(0,u.A)(null==l?void 0:l.expires,7),d=(0,o.useMemo)(()=>(null==l?void 0:l.version)==="v3",[l]);return(0,s.A)(t,l||{}),(0,n.A)(()=>{let t=new Date().getTime();_((0,r._)((0,a._)({},e),{expires:t,version:"v3"}))},[e,t]),!c&&d?l:{}}},50575:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(37876),r=l(58103),o=l.n(r),i=l(24389),n=l.n(i);let s=t=>{let{children:e,isSticky:l=!1,variant:r="default",className:i=""}=t;return(0,a.jsx)("div",{className:o()(n().root,n()[r],i,{[n().sticky]:l}),"data-test-id":"calculator-column",children:e})}},59079:t=>{t.exports={root__label:"DepositCalculatorLadder_root__label__ZDxDy",shimmer:"DepositCalculatorLadder_shimmer__cgRAN",timerRotateRight:"DepositCalculatorLadder_timerRotateRight__AehwB",timerRotateLeft:"DepositCalculatorLadder_timerRotateLeft__702il"}},64105:t=>{t.exports={root:"CalculatorInput_root__qGmf5",root__wrapper:"CalculatorInput_root__wrapper__hATGn",root__limits:"CalculatorInput_root__limits__dSDgV",root__limits_text:"CalculatorInput_root__limits_text__V_nUI",root__input:"CalculatorInput_root__input__6Wt_T",focus:"CalculatorInput_focus__SvHRB",root__text:"CalculatorInput_root__text__66fa5",root__pencil:"CalculatorInput_root__pencil__OITpL",shimmer:"CalculatorInput_shimmer__1FxYC",timerRotateRight:"CalculatorInput_timerRotateRight___eisH",timerRotateLeft:"CalculatorInput_timerRotateLeft__jB5n_"}},66075:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(37876),r=l(42456),o=l(77751),i=l(79531),n=l.n(i);let s=t=>{let{results:e,variant:l="sm",classContent:i=""}=t;return(null==e?void 0:e.length)?(0,a.jsx)("div",{className:n().root,children:(0,a.jsx)(r.A,{variant:l,className:i,isGap:!1,children:(0,a.jsx)("div",{className:n().root__row,children:null==e?void 0:e.map(t=>(null==t?void 0:t.component)?(0,a.jsx)("div",{children:t.component},t.label):(0,a.jsx)(o.A,{resultsRow:t,isShrink:t.isShrink,classes:null==t?void 0:t.classes,styles:null==t?void 0:t.styles},t.label))})})}):null}},68047:(t,e,l)=>{"use strict";l.d(e,{A:()=>s});var a=l(46045),r=l(16690),o=l(37876),i=l(89482),n=l(48036);let s=(0,i.forwardRef)((t,e)=>(0,o.jsx)(n.A,(0,r._)((0,a._)({},t),{ref:e,autoComplete:"sms"===t.mask?"one-time-code":"off"})))},70725:t=>{t.exports={root:"CalculatorBlock_root__d_FFc",hidden:"CalculatorBlock_hidden__khmkL",root__title:"CalculatorBlock_root__title__OPGwQ",root__subtitle:"CalculatorBlock_root__subtitle__AT5AX",root__content:"CalculatorBlock_root__content__PzYIM",gap:"CalculatorBlock_gap__1nGg0",untitled:"CalculatorBlock_untitled__WT90u",underline:"CalculatorBlock_underline__Xh7wq",shimmer:"CalculatorBlock_shimmer__DB5Wx",timerRotateRight:"CalculatorBlock_timerRotateRight__utwe3",timerRotateLeft:"CalculatorBlock_timerRotateLeft__Sd_C
1x"}},71015:t=>{t.exports={root:"CalculatorDescription_root__SeHgK",shimmer:"CalculatorDescription_shimmer__6nv6r",timerRotateRight:"CalculatorDescription_timerRotateRight__EDaMi",timerRotateLeft:"CalculatorDescription_timerRotateLeft___scNt"}},76605:(t,e,l)=>{"use strict";var a=l(89482),r=l(98159);e.A=function(t,e,l){if(!r.isBrowser)return[e,r.noop,r.noop];if(!t)throw Error("useLocalStorage key may not be falsy");var o=l?l.raw?function(t){return t}:l.deserializer:JSON.parse,i=a.useRef(function(t){try{var a=l?l.raw?String:l.serializer:JSON.stringify,r=localStorage.getItem(t);if(null!==r)return o(r);return e&&localStorage.setItem(t,a(e)),e}catch(t){return e}}),n=a.useState(function(){return i.current(t)}),s=n[0],u=n[1];a.useLayoutEffect(function(){return u(i.current(t))},[t]);var _=a.useCallback(function(e){try{var a="function"==typeof e?e(s):e;if(void 0===a)return;var r=void 0;r=l?l.raw?"string"==typeof a?a:JSON.stringify(a):l.serializer?l.serializer(a):JSON.stringify(a):JSON.stringify(a),localStorage.setItem(t,r),u(o(r))}catch(t){}},[t,u]);return[s,_,a.useCallback(function(){try{localStorage.removeItem(t),u(void 0)}catch(t){}},[t,u])]}},77751:(t,e,l)=>{"use strict";l.d(e,{A:()=>p});var a=l(37876),r=l(58103),o=l.n(r),i=l(40802),n=l(19232),s=l(89482),u=l(78134),_=l(1316),c=l(40867),d=l.n(c);let m=t=>{let{resultsRow:{value:e,main:l,suffix:r,getValueFormat:i},isShrink:n,classes:c,styles:m}=t,v="string"==typeof e,h=n?_.A:s.Fragment;return(0,a.jsx)("span",{className:o()(d().root__value,null==c?void 0:c.root,{[d().main]:l}),style:null==m?void 0:m.root,children:v?(0,a.jsx)(a.Fragment,{children:n&&e?(0,a.jsx)(_.A,{children:e}):e}):(0,a.jsx)(a.Fragment,{children:e?(0,a.jsx)(h,{children:(0,a.jsx)(u.A,{value:e,suffix:r,getValueFormat:i})}):null})})};var v=l(48980),h=l.n(v);let p=t=>{let{resultsRow:e,isShrink:l=!1,classes:r,styles:s}=t,{label:u,labelTooltip:_,boldLabel:c,valueTooltip:d}=e;return(0,a.jsxs)("div",{className:o()(h().root,null==r?void 0:r.root),children:[(0,a.jsxs)("span",{className:o()(h().root__label,null==r?void 0:r.label,{[h().bold]:c}),children:[u,_&&(0,a.jsx)(i.A,{className:null==r?void 0:r.tooltip,content:_,children:(0,a.jsx)("span",{className:h().root__label_tooltip_icon,children:(0,a.jsx)(n.A,{icon:{code:"status-info"}})})})]}),d?(0,a.jsx)(i.A,{className:null==r?void 0:r.tooltip,content:d,children:(0,a.jsx)("div",{children:(0,a.jsx)(m,{resultsRow:e,styles:{root:null==s?void 0:s.value},classes:{root:null==r?void 0:r.value},isShrink:l},e.label)})}):(0,a.jsx)(m,{resultsRow:e,styles:{root:null==s?void 0:s.value},classes:{root:null==r?void 0:r.value},isShrink:l})]})}},78134:(t,e,l)=>{"use strict";l.d(e,{A:()=>u});var a=l(37876),r=l(89482),o=l(79638);let i=function(t,e){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return String(t).match(l?/\d+\.\d{2}/g:/\d+\.\d{1}/g)||String(e).match(l?/\d+\.\d{2}/g:/\d+\.\d{1}/g)},n=(t,e)=>0===e?parseInt(t.toFixed(e),10):parseFloat(t.toFixed(e)),s=function(t,e,l,a){if(0===a)t(l);else{let r=null,o=s=>{r||(r=s);let u=1,_=0;(String(e).match(/./g)||String(l).match(/./g))&&(i(e,l)&&(u=10,_=1),i(e,l,!0)&&(u=100,_=2));let c=Math.min((s-r)/a,1),d=Math.floor((e<l?l-e:e-l)*u*c);e<l&&t(n((e*u+d)/u,_)),e>l&&t(n((e*u-d)/u,_)),window.requestAnimationFrame(o),c>=1&&t(l)};window.requestAnimationFrame(o)}},u=t=>{let{value:e,suffix:l="",getValueFormat:i=t=>String(t),duration:n=300}=t,[u,_]=(0,r.useState)(e),[c,d]=(0,r.useState)(e);return(0,o.A)(()=>{s(d,u,e,n),_(e)},200*(0!==n),[e]),(0,a.jsx)(a.Fragment,{children:"".concat(i(c)).concat(l)})}},79062:(t,e,l)=>{"use strict";l.d(e,{A:()=>a});let a=t=>{var e,l,a;let{input:r}=t;return(null==(l=r.options)||null==(e=l.find(t=>t.isChecked))?void 0:e.value)||(null==(a=r.options)?void 0:a[0].value)||0}},79531:t=>{t.exports={root:"CalculatorResults_root__oECNo",root__row:"CalculatorResults_root__row__0mBds",shimmer:"CalculatorResults_shimmer__TC_JS",timerRotateRight:"CalculatorResults_timerRotateRight__kdbVO",timerRotateLeft:"CalculatorResults_timerRotateLeft__0Jl5T"}},80026:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});var a=l(41235),r=l(99109);function o(t,e){(0,r.A)(2,arguments);var l=(0,a.default)(t),o=(0,a.default)(e),i=l.getTime()-o.getTime();return i<0?-1:i>0?1:i}},84925:(t,e,l)=>{"use strict";l.d(e,{A:()=>a});let a=t=>{let{sumIn:e,min:l,max:a}=t;return e<=l?l:e>=a?a:e}},96432:(t,e,l)=>{"use strict";l.d(e,{A:()=>a});let a=t=>{var e,l,a,r;
1let{input:o,channel:i}=t;return(null==o||null==(a=o.min)||null==(l=a.items)||null==(e=l[i])?void 0:e.value)||(null==o||null==(r=o.min)?void 0:r.defaultValue)}},99791:t=>{t.exports={root:"DepositCalculatorLadderTable_root__Pgvca",root__item:"DepositCalculatorLadderTable_root__item__fK38o",root__row:"DepositCalculatorLadderTable_root__row__jZ3Yc",root__caption:"DepositCalculatorLadderTable_root__caption__Q6CEr",root__rate:"DepositCalculatorLadderTable_root__rate__180NP",tooltip:"DepositCalculatorLadderTable_tooltip__v_bIG",shimmer:"DepositCalculatorLadderTable_shimmer__ll6Ll",timerRotateRight:"DepositCalculatorLadderTable_timerRotateRight__aLGbh",timerRotateLeft:"DepositCalculatorLadderTable_timerRotateLeft__kz9iG"}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.