(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2985],{18487:function(e,t,n){Promise.resolve().then(n.bind(n,53417)),Promise.resolve().then(n.bind(n,69767)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,15037)),Promise.resolve().then(n.bind(n,27885))},97793:function(e,t,n){"use strict";n.d(t,{Lp:function(){return m},VJ:function(){return _},X4:function(){return o},ID:function(){return u},iT:function(){return s},PT:function(){return l},qB:function(){return p},Cc:function(){return d},vI:function(){return c},rl:function(){return v}});var a=n(77337),i=n(90716);let r=e=>e?Object.keys(e).filter(t=>e[t]).map(t=>"".concat(t,"=").concat(e[t])).join("&"):"",o=e=>{let t=r(e);return(0,i.t9)("/money_data/Deposits.json".concat(t?"?".concat(t):""))},s=async e=>{var t;return null!==(t=(await (0,i.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:[]},l=async e=>{var t;let n=(0,a.xn)("/api/v1/products/tags",e);return null!==(t=(await (0,i.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],r=(0,a.jb)((0,a.xn)("/api/".concat(n?"v2":"v1","/deposits"),e),null!=t?t:{});return(0,i.t9)(r,null,{isNewApi:!0})},u=()=>{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.t9)(e,{method:"GET"},{isProdCatApi:!0})},d=e=>{let t=(0,a.jb)("/api/v1/deposits/ids",{ids:e});return(0,i.t9)(t,{method:"GET"},{isNewApi:!0})},m=e=>(0,i.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,i.t9)("/api/".concat(t?"v2":"v1","/deposits/no-auth/showcase"),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0})},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,i.t9)("/api/".concat(t?"v2":"v1","/deposits/active/income"),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},{isNewApi:!0})},v=async e=>(0,i.t9)("/api/v1/deposits/terms/active",{method:"POST",body:JSON.stringify({customerId:e,useStandartTerms:!0})},{isNewApi:!0})},75609:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(69589);function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{online_application:n,archive:i,active_to:r}=e,{commercial:o,type:s}=n,l=!r||new Date(r)>=new Date;return(0===i||t)&&l?0===o&&3===s?a.P.isPlatformDeposit:1===o?a.P.isLidgenDeposit:a.P.isNonPlatformDeposit:a.P.isArchiveDeposit}},28819:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var a=n(57437),i=n(54365),r=n(41315),o=n.n(r);let s=e=>{let{children:t,className:n}=e;return(0,a.jsx)("div",{className:(0,i.Z)(o().mainContainer,n),children:t})};s.displayName="MainContainer"},21301:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var a=n(57437),i=n(54365),r=n(44587),o=n(11359),s=n(281),l=n.n(s);let c=e=>{let{className:t,text:n,tooltipText:s,theme:c="primary",tipIcon:u,onTooltipOpen:d}=e;return(0,a.jsx)("div",{className:(0,i.Z)(l().tag,{[l().tagPrimary]:"primary"===c,[l().tagSecondary]:"secondary"===c,[l().tagPink]:"pink"===c,[l().tagYellow]:"yellow"===c},t),children:s&&(0,a.jsx)(o.C,{className:l().detail,iconSrc:r.Z,text:s,iconClassName:l().detailIcon,icon:u,onOpen:()=>null==d?void 0:d(n),children:(0,a.jsx)("span",{className:l().text,children:n})})})}},27885:function(e,t,n){"use strict";n.d(t,{ComboDepositDetail:function(){return ef}});var a,i,r=n(57437),o=n(5426),s=n(50666),l=n(2265),c=n(77337),u=n(30754),d=n(3156),m=n(28819),p=n(65716),_=n(69589),v=n(68026),h=n(58580),f=n(39402),g=n(84456),x=n(72151),b=n(14441),j=n(49394),k=n(36204),y=n(57977),N=n(37466),C=n(21891),w=n(69430),D=n(91358),T=n(31365),A=n.n(T),S=n(54365),P=n(92449),I=n(75609),L=n(72096),E=n(13922),O=n(32523),B=n(16161),R=n(34482),U=n(31219),$=n(48034),M=n(19612),Z=n(75109);let H=(e,t,n,a,i,r)=>{let o=!("finuslugiBonusAllowed"in e)||!!e.finuslugiBonusAllowed,s=(0,M.p)({isPlusFiveBonus:r,isOldUser:i,terms:a,finuslugiBonusAllowed:o,currentAmount:n,finuslugiBonusPromotion:e.finuslugiBonusPromotion}),l=i?(0,Z.pW)(e.finuslugiBonusPromotion):t.find(e=>"five_procent"===e.unique_key);return s?l:void 0},z=(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),K=(e,t,n)=>n.filter(t=>{var n,a;return e>=(null!==(n=t.amount_from)&&void 0!==n?n:0)&&e<=(null!==(a=t.amount_to)&&void 0!==a?a:1/0)}).sort((e,n)=>z(e,t)-z(n,t))[0];var Y=n(41654),V=n.n(Y),W=n(69393),F=n(70104),Q=n(36578),G=n(55665),q=n.n(G);let X=(0,l.memo)(e=>{let{isAllowed:t,amount:n,term:a,rate:i,num:s,isPrimary:l,onOpen:c}=e;return(0,r.jsxs)(o.W2,{className:q().wrapper,children:[(0,r.jsxs)("div",{className:q().header,children:[(0,r.jsx)("div",{className:q().num,children:"Вклад ".concat(s)}),l&&(0,r.jsx)(o.$,{text:"Откройте этот вклад первым",color:"orange"})]}),(0,r.jsxs)("div",{className:q().content,children:[(0,r.jsxs)("div",{className:q().tags,children:[(0,r.jsx)(o.$,{className:q().tag,text:"Сумма — ".concat((0,F.Y4)(n,2),"\xa0₽")}),(0,r.jsx)(o.$,{className:q().tag,text:"".concat((0,Q.PY)(a.value,W.mB[a.type])," — ").concat((0,F.Y4)(i,2),"%")})]}),(0,r.jsx)(o.zx,{label:"Открыть",disabled:!t,onClick:c,size:"xs"})]})]})});X.displayName="ComboDepositConfirm";var J=n(33145),ee=n(27648),et=n(54328),en=n(38292),ea=n.n(en);let ei=(0,s.env)("NEXT_PUBLIC_BASE_URL"),er=(0,l.memo)(e=>{let{bic:t,bankUrl:n,bankName:a,depositName:i}=e;return(0,r.jsxs)("div",{className:ea().wrapper,children:[(0,r.jsx)(ee.default,{className:ea().link,href:"".concat(ei,"/banki/").concat(n),target:"_self",children:(0,r.jsx)(J.default,{className:ea().logo,src:(0,et.B)(t),width:40,height:40,alt:"логотип банка"})}),(0,r.jsxs)("div",{className:ea().container,children:[(0,r.jsx)("div",{className:ea().depositName,children:i}),(0,r.jsx)("div",{className:ea().bankName,children:a})]})]})});er.displayName="ComboDepositHeader";var eo=n(23163),es=n.n(eo);let el=(0,l.memo)(e=>{let{totalAmount:t,averageRate:n,totalProfit:a,maxAmount:i}=e,[s,c]=(0,l.useState)(!1),u=(0,l.useRef)(null),d=(0,l.useRef)(null),m=(0,o._m)("l"),p=[{label:"Сумма",value:"".concat((0,F.Y4)(t,2),"\xa0₽"),id:1},{label:"Средняя ставка",value:"".concat((0,F.Y4)(n,2),"%"),id:2},{label:"Общий доход",value:"".concat((0,F.Y4)(a,2),"\xa0₽"),id:3}];return(0,r.jsxs)("div",{className:es().wrapper,children:[(0,r.jsxs)(o.W2,{className:es().paramsContainer,children:[(0,r.jsxs)("div",{className:es().leftParams,children:[(0,r.jsx)("div",{className:es().title,children:"Два вклада выгоднее"}),(0,r.jsx)("div",{className:es().params,children:p.map(e=>{let{label:t,value:n,id:a}=e;return(0,r.jsxs)("div",{className:es().param,children:[(0,r.jsx)("div",{className:es().label,children:t}),(0,r.jsx)("div",{className:es().value,children:n})]},a)})})]}),(0,r.jsxs)("div",{className:(0,S.Z)(es().rightParams,s&&es().opened),children:[(0,r.jsxs)("div",{className:es().title,onClick:()=>{if(m)return;let e=!s,t=u.current;t&&(c(e),d.current&&clearTimeout(d.current),e?t.style.whiteSpace="initial":d.current=setTimeout(()=>{t.style.whiteSpace="nowrap"},300))},children:["Почему два вклада, а не один?",!m&&(0,r.jsx)(o.ax,{className:es().icon,name:"finkit:down-arrow-finkit"})]}),(0,r.jsx)("div",{ref:u,className:es().text,children:"Для того чтобы вы получили максимальный доход, мы предлагаем открыть два вклада.\n              У первого — самая выгодная ставка и есть лимит вложений от банка: ".concat((0,F.D$)(i),"\xa0₽.\n              Второй вклад — следующий по выгоде.\n              Если откроете оба, средняя ставка составит ").concat((0,F.Y4)(n,2),"%")})]})]}),(0,r.jsxs)(o.W2,{className:es().stepsContainer,children:[(0,r.jsx)("div",{className:es().title,children:"Как работает комбо?"}),(0,r.jsx)("ol",{className:es().steps,children:["Откройте первым Вклад 1, чтобы получить максимальную ставку","После того как Вклад 1 откроется, отправьте заявку на Вклад 2","Управляйте вкладами в личном кабинете Финуслуг"].map(e=>(0,r.jsx)("li",{className:es().step,children:e},e.replace(" ","_")))})]})]})});el.displayName="ComboHeader";let ec=null!==(a=(0,s.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==a?a:"",eu=(e,t)=>{var n,a,i,r;return{bic:e.bic,bankUrl:null!==(n=t.url)&&void 0!==n?n:"",bankName:null!==(i=null!==(a=t.name)&&void 0!==a?a:e.bank_name)&&void 0!==i?i:"",depositName:null!==(r=e.title)&&void 0!==r?r:""}},ed=(e,t,n,a,i)=>({amount:a,isAllowed:!0,term:n.term,rate:n.rate,onOpen:()=>i(e,t,n)}),em=e=>{let{deposit:t,comboDeposit:n,questions:a,company:i,extraInfo:r,isOldUser:o,isPlusFiveBonus:s,isDesktop:l,eventCategory:c,discount:u,rate:d}=e;return{questions:a,company:i,extraInfo:r,eventCategory:c,isPlusFiveBonus:s,isOldUser:o,discount:u,data:t,isMobile:!l,optionId:null==d?void 0:d.optionId,amount:n.amount,withNewMarkup:!0,isCollapsible:!0,isCombo:!0,isOpened:!l}},ep=e=>{var t,n,a,i;let{deposit:r,extraInfo:s,isDesktop:l,eventCategory:c,sum:u,term:d,isShowDepositTip:m,scrollOffset:p,discount:_,rate:v,calculatedProfit:h,calculatedTotalProfit:f,calculatedEffectiveRate:g,calculatedBonus:x}=e,b=(null===(t=r.interest_capitalization)||void 0===t?void 0:t.has)===1&&0===r.partial_withdrawal.has&&(null===(n=r.refill)||void 0===n?void 0:n.has)===0,j=(0,o.zC)(null==r?void 0:r.currency_id),k=(0,R.Z)(r.interest_payment),y="".concat(u,"_").concat(d,"_").concat(null==v?void 0:v.rate,"%_").concat((0,U.b)(r.title),"_").concat((0,U.b)(r.bank_name),"_").concat(r.id),N=(0,I.Z)(r)||void 0,[C]=L.kJ,[w]=L.k5;return{depositType:N,discount:_,extraInfo:s,isShowDepositTip:m,isCapitalization:b,scrollOffset:p,totalValues:y,eventCategory:c,rate:0,sum:u,term:d,productId:null!==(i=null==v?void 0:null===(a=v.mp)||void 0===a?void 0:a.product_id)&&void 0!==i?i:r.id,isMobile:!l,refillSum:"",percentType:C.value,refillType:w.value,period:(0,E.n)(r).value,unit:j.unit,tags:r.tags,salaryToggle:!1,isHideButtons:!0,paymentFrequency:k,shortChipsList:!1,firstDepositBonusTitle:!1,withChart:!0,hideExternalLinks:!1,withNewMarkup:!0,isEditable:!1,isCombo:!0,calculatedProfit:h,calculatedTotalProfit:f,calculatedEffectiveRate:g,calculatedBonus:x}},e_=e=>{let{opens:t,isAllowed:n,deposits:a,comboDeposits:i,companies:r,extraInfos:o,bonuses:s,questions:c,eventCategory:u,scrollOffset:d,isShowDepositTip:m,isDesktop:p,isOldUser:_,isPlusFiveBonus:v,isAnimationDisabled:h,onOpen:f,onCollapseOpen:x}=e;return(0,l.useMemo)(()=>a&&i&&r?[{className:V().left,confirm:{num:1}},{className:V().right,confirm:{isAllowed:n,num:2}}].map((e,n)=>{var l;let b=a[n],j=r[n],k=i.deposits[n],y=o[n];if(!b||!j||!k||!y)return null;let N=k.amount,C=(0,g.I)(k.term),w=k.bonusRate?H(b,s,N,k.term.value,_,v):void 0,D=K(N,C,b.interest_rate.rates),T=null===(l=b.tags)||void 0===l?void 0:l.find(e=>{let{tag:t}=e;return"disable_promo"===t}),A=k.profit-k.amount,S=k.profit,P=k.rate,I=k.bonusRate;return{...e,id:b.id,header:eu(b,j),confirm:{...ed(n,b,k,N,f),...e.confirm,isPrimary:(!!w||!!T)&&1===e.confirm.num},params:em({deposit:b,comboDeposit:k,questions:c,company:j,extraInfo:y,isOldUser:_,isPlusFiveBonus:v,isDesktop:p,eventCategory:u,discount:w,rate:D}),compute:{...ep({deposit:b,extraInfo:y,isDesktop:p,eventCategory:u,sum:N,term:C,isShowDepositTip:m,scrollOffset:d,discount:w,rate:D,calculatedProfit:A,calculatedTotalProfit:S,calculatedEffectiveRate:P,calculatedBonus:I}),tag:null==D?void 0:D.tag,computeClassName:V().compute},collapse:{className:V().collapse,isMobile:!p,isMoreVisible:!0,isOpen:t[n],isAnimationDisabled:h,onOpen:()=>x(n)}}}).filter(e=>!!e):[],[t,a,r,s,c,o,u,n,p,_,v,h,m,d,i,f,x])},ev=(0,l.memo)(e=>{var t,n,a,i,s;let{companies:c,deposits:u,comboDeposits:d,questions:p,extraInfos:_,eventCategory:v,bonuses:h,isPlusFiveBonus:j,isOldUser:k,isShowDepositTip:y}=e,N=(0,$.Z)(),{asPath:C}=(0,b.P)(),w=(0,o._m)("l"),[D,T]=(0,l.useState)(!1),[A,I]=(0,l.useState)(!0),[L,E]=(0,l.useState)([!0,!0]);(0,l.useEffect)(()=>{E(w?[!0,!0]:[!1,!1]),setTimeout(()=>{I(!1)},100)},[w]);let R=(0,l.useCallback)(e=>{E(()=>{let t=[...L];return t[e]=!t[e],t})},[L,E]),U=(0,l.useCallback)((e,t,n)=>{var a,i;let r=t.id,o=n.amount,s=n.term.value,l=K(o,(0,g.I)(n.term),t.interest_rate.rates),{urlFirst:c,urlSecond:u}=(0,f._)({asPath:C,productId:r,amount:o,durationValue:s,optionId:null==l?void 0:l.optionId,firstBaseUrl:ec,secondBaseUrl:null==l?void 0:null===(a=l.mp)||void 0===a?void 0:a.url,passCombo:!0});window.open(null!==(i=(null==l?void 0:l.optionId)?c:u)&&void 0!==i?i:t.online_application.url),T(!D),(0,x.lQ)({eventCategory:v,eventLabel:"".concat(r,"_").concat(o,"_").concat(null==l?void 0:l.rate),eventAction:"click_vklad".concat(e+1)})},[C,D,v]),M=e_({opens:L,isAllowed:D,deposits:u,comboDeposits:d,companies:c,extraInfos:_,bonuses:h,questions:p,eventCategory:v,scrollOffset:N,isShowDepositTip:y,isDesktop:w,isOldUser:k,isPlusFiveBonus:j,isAnimationDisabled:A,onOpen:U,onCollapseOpen:R});if(!u||!d||!c)return null;let Z=null!==(n=d.averageRate)&&void 0!==n?n:0,H=null!==(a=d.totalProfit)&&void 0!==a?a:0,z=null!==(i=d.deposits.reduce((e,t)=>e+t.amount,0))&&void 0!==i?i:0,Y=null!==(s=null===(t=u.at(0))||void 0===t?void 0:t.amount.to)&&void 0!==s?s:0;return(0,r.jsxs)(m.t,{className:V().wrapper,children:[(0,r.jsx)(el,{averageRate:Z,totalProfit:H,totalAmount:z,maxAmount:Y}),M.map(e=>e&&(0,r.jsxs)("div",{className:(0,S.Z)(V().combo,e.className),children:[(0,r.jsx)(er,{...e.header}),(0,r.jsx)(X,{...e.confirm}),(0,r.jsxs)(P.u,{...e.collapse,children:[(0,r.jsx)(O.n,{...e.compute}),(0,r.jsx)(B.c,{...e.params})]})]},e.id))]})});ev.displayName="ComboDepositCalculator";let eh=null!==(i=(0,s.env)("NEXT_PUBLIC_MOEX_AD_URI"))&&void 0!==i?i:"",ef=e=>{var t;let{stores:n,questions:a,posts:i,postCategories:s,discounts:T,extraInfos:S,eventCategory:P,deposits:I,companies:L,comboDeposits:E,isOldPage:O}=e,{asPath:B}=(0,b.P)(),R=(0,o._m)("l"),{bonuses:U,isPlusFiveBonus:$,isOldUser:M}=(0,j.Z)(T),{region:Z,town:H}=(0,v.k)(),z=(0,y.a)(p.tE),Y=(0,k.K)({bannersTitle:[p.N9.DEPOSITS_DETAIL],queryParams:z,stores:n});(0,l.useEffect)(()=>{(0,x.lQ)({eventCategory:P,eventAction:"view_combo_page"})},[]);let V=(0,l.useMemo)(()=>O?"/".concat(h.a.VKLADY_OLD):"/".concat(h.a.VKLADY),[O]),W="/reg_".concat(null==Z?void 0:Z.url),F="/".concat(null==H?void 0:H.url),Q=(0,c.xn)(V,"".concat((null==Z?void 0:Z.url)?W:"").concat((null==H?void 0:H.url)?F:"")),G=I.at(0),q=null==E?void 0:E.deposits.at(0);if(!G||!q)return null;let X=K(q.amount,(0,g.I)(q.term),G.interest_rate.rates),{urlFirst:J,urlSecond:ee}=(0,f._)({asPath:null!=B?B:"",productId:G.id,amount:q.amount,durationValue:q.term.value,optionId:null==X?void 0:X.optionId,firstBaseUrl:eh,secondBaseUrl:null==X?void 0:null===(t=X.mp)||void 0===t?void 0:t.url}),et=(null==X?void 0:X.optionId)?J:ee;return(0,r.jsxs)("main",{className:A().wrapper,children:[(0,r.jsx)(m.t,{children:(0,r.jsx)(u.Z,{backwardLabel:"Назад",backwardHref:Q})}),(0,r.jsx)(ev,{companies:L,deposits:I,comboDeposits:E,questions:a,extraInfos:S,eventCategory:P,bonuses:U,isPlusFiveBonus:$,isOldUser:M,isShowDepositTip:!M}),!M&&(0,r.jsx)(w.V,{eventCategory:P,productId:String(G.id),withNewMarkup:!0}),!M&&(0,r.jsx)(N.i,{isMobile:!R,pageType:_.P.isPlatformDeposit,bannerUrl:Y[p.N9.DEPOSITS_DETAIL],appUrl:et,bankUrl:G.online_application.url,eventCategory:P,productId:String(G.id)}),(0,r.jsx)(D.k,{productId:String(G.id),eventCategory:P,basePath:V}),(0,r.jsx)(d.S,{posts:i,categories:s,pageUrl:"combo"}),(0,r.jsx)(C.m,{className:A().disclaimer})]})}},72096:function(e,t,n){"use strict";n.d(t,{$k:function(){return i},k5:function(){return r},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"}],r=[{label:"Не предусмотрено",value:"0"},{label:"Раз в месяц",value:"1"},{label:"Раз в 2 месяца",value:"2"},{label:"Раз в квартал",value:"3"},{label:"Раз в 4 месяца",value:"4"},{label:"Раз в полгода",value:"6"},{label:"Раз в год",value:"12"}]},13922:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var a=n(72096);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]}},32523:function(e,t,n){"use strict";n.d(t,{n:function(){return F}});var a=n(57437);n(38068);var i=n(13801),r=n(5426),o=n(54365),s=n(2265),l=n(21301),c=n(69589),u=n(14862),d=n(44579),m=n(35563),p=n(32817),_=n.n(p);function v(e){let{loading:t}=e;return(0,a.jsxs)("div",{className:(0,o.Z)(_().skeletonContainer,t&&_().visible),children:[(0,a.jsx)(m.Od,{className:_().skeletonDate}),(0,a.jsx)(m.Od,{className:_().skeletonProfit})]})}var h=n(27648),f=n(11359),g=n(87566),x=n(23e3),b=n.n(x);function j(e){let{rowCount:t,loading:n}=e;return(0,a.jsx)("div",{className:(0,o.Z)(b().skeletonContainer,n&&b().visible),children:Array.from(Array(t).keys()).map(e=>(0,a.jsx)(m.Od,{className:b().skeleton},e))})}var k=n(70104),y=n(72151),N=n(31219),C=n(90297),w=n.n(C);function D(e){var t;let{withNewMarkup:n,rate:i,effectiveRate:o,hideExternalLinks:l,profit:c,unit:u,extraInfo:d,isSavingAccount:m,salaryToggle:p,setSalaryToggle:_,discount:v,bonus:x,firstDepositBonusTitle:b,tipIcon:C,switchRate:D,onSwitchRate:T,isRateSwitched:A,eventCategory:S,productId:P,isCombo:I=!1,isLoading:L}=e,E=(0,s.useCallback)(()=>{T&&(T(!A),(0,y.lQ)({event:"data-event",eventAction:"click_button_perekluchit_stavku",eventCategory:S,eventLabel:P}))},[T,A,S,P]),O=(0,s.useCallback)(e=>()=>{(0,y.lQ)({event:"data-event",eventAction:"click_link_".concat((0,N.b)(e)),eventCategory:S,eventLabel:P})},[S,P]),B=(0,s.useMemo)(()=>{var e;let t=[{label:"Доход от банка",value:"".concat((0,k.Y4)(c,2)," ").concat(u)}];if((null===(e=d.algo)||void 0===e?void 0:e.id)==="mkb-nakop"&&t.push({label:"Открытие дебетовой карты",value:"Да",description:m&&null!=d.karta?d.karta.label:"Открывая счет, Вы соглашаетесь на оформление дебетовой карты банка"},{label:"Действие счета",value:"Бессрочно"},{label:"Зарплата или пенсия на карту МКБ",value:(0,a.jsx)(r.jw,{checked:p,className:w().singleToggle,onChange:()=>null==_?void 0:_(!p)}),description:(0,a.jsx)(a.Fragment,{children:"Процентная ставка применяется при условии зачисления заработной платы от юридических лиц и индивидуальных предпринимателей на картсчет Клиента, открытый в Банке или суммы пенсий от Фонда пенсионного и социального страхования Российской Федерации или иных органов (учреждений) на любой счет Клиента, открытый в Банке, поступивших в течение 60 календарных дней до каждой даты начисления процентов по счету."})}),i&&t.unshift({label:"Ставка",value:"".concat((0,k.Y4)(i,2),"%")}),o&&t.unshift({label:"Эффективная ставка",value:"".concat((0,k.Y4)(o,2),"%"),description:(0,a.jsxs)(a.Fragment,{children:["Иногда у вклада есть особенности — капитализация процентов, возможность пополнения или акция от банка. Дополнительные параметры меняют доход в большую или меньшую сторону, поэтому процент по эффективной ставке отличается от банковской. Он отражает доход корректнее."," ",!l&&(0,a.jsx)(h.default,{className:w().tooltipLink,target:"_self",onClick:O("Подробнее о том, как считать сложный процент"),href:"".concat(g._n,"/navigator/nakopit-i-sohranit/stat_chto_takoe_slozhnyj_procent_po_vkladu_i_kak_ego_poschitat?ysclid=lfmam3zaig67098551%22"),children:"Подробнее о том, как считать сложный процент"})]})}),v&&x){let e=I?"%":" ".concat(u);t.push({label:b?"Бонус за первый вклад":"Бонус от Финуслуг",value:"".concat((0,k.Y4)(x,2)).concat(e),description:(null==v?void 0:v.terms)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:null==v?void 0:v.terms}),v.link&&v.linkLabel&&(0,a.jsx)("a",{href:v.link,target:"_blank",children:v.linkLabel})]}):null})}return t},[x,v,o,null===(t=d.algo)||void 0===t?void 0:t.id,d.karta,b,O,l,m,c,i,p,_,u,I]),R=!!D&&(null==D?void 0:D.difference)>0,U=R?"+".concat((0,k.Y4)(D.difference,1),"% к ставке"):null,$=(0,s.useCallback)(e=>{(0,y.lQ)({eventAction:"click_question_".concat((0,N.b)(e)),eventCategory:S,eventLabel:P})},[S,P]);return(0,a.jsxs)("ul",{className:w().values,children:[(0,a.jsx)(j,{loading:L,rowCount:B.length}),B.map(e=>(0,a.jsxs)("li",{className:w().value,children:[(0,a.jsx)("div",{children:e.label}),e.description&&(0,a.jsx)(f.C,{text:e.description,className:w().detail,onOpen:()=>n&&$(e.label),icon:C}),(0,a.jsx)("div",{className:w().valueDash}),(0,a.jsx)("div",{children:e.value})]},e.label)),R&&U&&(0,a.jsxs)("li",{className:w().value,children:[(0,a.jsx)("div",{children:U}),(0,a.jsx)(f.C,{text:"При сумме вклада от ".concat((0,k.Y4)(D.minAmount)," ₽"),className:w().detail,icon:C,onOpen:()=>n&&$(U)}),(0,a.jsx)(r.jw,{onChange:E,checked:A,className:w().toggle,size:"small"})]})]})}var T=n(37162);let A=e=>{let{depositType:t,isHideButtons:n,isShowDepositTip:a,isSavingAccount:i}=e,r=t===c.P.isPlatformDeposit?"Как открыть вклад":"Где открыть вклад",o=t===c.P.isPlatformDeposit?"Как открыть накопительный счет":"Где открыть накопительный счет";return{helpButtonLabel:i?o:r,blockId:t===c.P.isPlatformDeposit?T.a6:T.VT,isShowMainButton:!n&&t===c.P.isPlatformDeposit||t===c.P.isLidgenDeposit,isShowHelpButton:t!==c.P.isArchiveDeposit&&a&&!n,isOfferText:t===c.P.isPlatformDeposit||t===c.P.isLidgenDeposit}};var S=n(2674),P=n(53931),I=n(84948),L=n(32443),E=n(50017),O=n(33145),B={src:"/deposits/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0},R=n(45198),U=n(97291),$=n(35041),M=n(56924),Z=n(28734),H=n.n(Z);function z(e){let{term:t,totalProfit:n,withChart:i,isChartOpen:r,isEditable:o=!0,endingDate:l,onEditButtonClick:c,onToggleChart:u}=e,d=(0,k.Y4)(n,2).split(","),m=(0,s.useMemo)(()=>l?(0,U.f)(l):function(e){let t=new Date;return(0,U.f)(R.Z.day(t,e))}(t),[l,t]);return(0,a.jsxs)("div",{className:H().head,children:[(0,a.jsxs)("h4",{className:H().title,children:["Накопите к ",m]}),(0,a.jsxs)("h5",{className:H().result,children:[(0,a.jsxs)("span",{className:H().resultText,children:[d[0],d[1]?(0,a.jsxs)(a.Fragment,{children:[",",(0,a.jsxs)("span",{className:H().resultTextFloat,children:[d[1]," ₽"]})]}):" ₽"]}),o&&(0,a.jsx)("button",{className:H().resultButton,onClick:c,children:(0,a.jsx)(O.default,{className:H().resultIcon,src:B,alt:"edit"})})]}),i&&(0,a.jsx)($.W,{onClick:u,className:H().chartButton,icon:r?M.d.arrowBack:M.d.chart,alt:"chart"})]})}var K=n(56257),Y=n.n(K);let V=(0,s.memo)(e=>{let{href:t,id:n,pageType:i,eventCategory:o,withNewMarkup:s,eventLabel:l}=e;return(0,a.jsx)(r.zx,{as:"a",className:Y().button,target:"_blank",href:t,size:"s",disabled:!t,onClick:()=>{(0,y.lQ)({event:"data-event",eventLabel:l,eventCategory:o,eventAction:s?"click_button_open_online":"open_in_bank_product",eventValue:null!=n?n:""})},children:i===c.P.isPlatformDeposit?"Открыть онлайн":"Перейти на сайт банка"})});V.displayName="MainButton";let W={highlights:null,title:null,description:null,variant:"secondary",primaryAuthProviders:["ALFA","SBER","TINKOFF","VTB","MTS","SOVCOM","PHONE"],additionalAuthProviders:[],extraAuthProviders:[],primaryTextOverride:"Открыть вклад"},F=(0,s.memo)(e=>{var t,n;let{onEdit:c,isMobile:m,rate:p,sum:_,term:h,tag:f,appUrl:g,discount:x,isRateSwitched:b,onSwitchRate:j,switchRate:k,isCapitalization:C,depositType:w,productId:T,unit:O,tags:B,isSavingAccount:R,extraInfo:U,salaryToggle:$,setSalaryToggle:M,isShowDepositTip:Z,isHideButtons:H=!1,paymentFrequency:K,customActions:F,shortChipsList:Q=!1,firstDepositBonusTitle:G=!1,scrollOffset:q,computeClassName:X,withChart:J,tipIcon:ee,tagIcon:et,customTagTitle:en,hideExternalLinks:ea=!1,computeHeader:ei,computeTag:er,eventCategory:eo,withNewMarkup:es,totalValues:el,isEditable:ec=!0,isCombo:eu=!1,calculatedProfit:ed,calculatedTotalProfit:em,calculatedEffectiveRate:ep,calculatedBonus:e_,integrationType:ev,calculatedEndingDate:eh,isLoading:ef=!1}=e,[eg,ex]=(0,s.useState)(!1),eb=new Date;eb.setDate(eb.getDate()+h);let{total:ej,bonus:ek,effectiveRate:ey,profit:eN}=(0,I.Z)({depositSum:_,term:h,rate:p,isCapitalization:C,discount:x,period:d.Z.Day,paymentFrequency:K}),eC=ed||eN,ew=em||ej,eD=e_||ek,eT=function(e){let{integrationType:t}=e,{toggles:{FEATURE_TOGGLE_INTERNAL_REFERAL_LOGIN_ENABLED:n}}=(0,S.ND)(),a=(0,s.useMemo)(()=>(0,P.$1)(),[]),i=(null==a?void 0:a["auth.gtm_customer_id"])||null;return n&&"INTERNAL_REFERAL"===t&&!i}({integrationType:ev}),{helpButtonLabel:eA,blockId:eS,isShowMainButton:eP,isShowHelpButton:eI,isOfferText:eL}=A({depositType:w,isHideButtons:H,isShowDepositTip:Z,isSavingAccount:R}),eE=(0,s.useCallback)(()=>{(0,y.lQ)({event:"data-event",eventAction:es?"click_button_how_to_open":"click_button_".concat((0,N.b)(eA)),eventCategory:eo,eventLabel:T}),(0,r.ld)(eS,{offset:q,position:"top"})},[eS,eo,eA,T,q,es]),eO=(0,s.useCallback)(()=>{ex(e=>!e),(0,y.lQ)({event:"data-event",eventAction:"click_icon_diagramma",eventCategory:eo,eventLabel:T})},[eo,T]),eB=(0,s.useCallback)(()=>{c&&(c(),(0,y.lQ)({event:"data-event",eventAction:es?"click_pencil":"click_icon_redactirovanie",eventCategory:eo,eventLabel:T}))},[eo,c,T,es]),eR=(0,s.useCallback)(e=>{(0,y.lQ)({eventCategory:eo,eventLabel:T,eventAction:"click_chips_".concat((0,N.b)(e))})},[eo,T]),eU=(0,s.useCallback)(()=>{var e;return f&&f.title?null!==(e=null==er?void 0:er(f))&&void 0!==e?e:(0,a.jsx)(l.V,{className:Y().tag,text:null!=en?en:f.title,tooltipText:f.description,tipIcon:et,onTooltipOpen:e=>es&&eR(e)}):null},[er,en,eR,f,et,es]),{widgetConfig:e$,isWidgetDataLoading:eM}=(0,L.B)({disabled:!eT}),eZ=(0,s.useCallback)(()=>{if(eP)return eT&&(e$||eM)?(0,a.jsx)(i.U,{entryPointId:"deposit-detail",baseUrl:u.m.LK_URL,s3AssetsUrl:u.m.ASSETS_URL,skeleton:(0,a.jsx)(r.zx,{pending:!0,className:Y().button,size:"s",label:"Открыть вклад",disabled:!0}),className:(0,o.Z)(Y().button,Y().loginWidget),serverConfig:e$?{...e$,consents:[],legalInfo:null}:void 0,config:W,scenarioParams:{targetUri:g},isSilent:!0}):(0,a.jsx)(V,{href:g,id:T,pageType:w,eventCategory:eo,withNewMarkup:es,eventLabel:el})},[eP,eT,e$,eM,g,T,w,eo,es,el]);return(0,a.jsxs)(r.W2,{className:(0,o.Z)(Y().container,eg&&Y().containerChart,X),children:[null!==(n=null==ei?void 0:ei(ew,eB))&&void 0!==n?n:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{loading:ef}),(0,a.jsx)(z,{term:h,totalProfit:ew,withChart:J&&!eu,isChartOpen:eg,isEditable:ec,endingDate:eh,onEditButtonClick:eB,onToggleChart:eO})]}),(0,a.jsxs)("div",{className:Y().info,children:[(0,a.jsx)(E.H,{isMobile:m,className:(0,o.Z)(Y().chart,eg&&Y().chartVisible),sum:_,bonus:ek,profit:eC}),(0,a.jsxs)("div",{className:Y().tags,children:[!Q&&(null==B?void 0:B.map(e=>{let{title:t,description:n}=e;return(0,a.jsx)(l.V,{className:Y().tag,text:t,tooltipText:n,theme:"pink",onTooltipOpen:eR},t)})),eU(),!Q&&(null===(t=U.algo)||void 0===t?void 0:t.id)==="mkb-nakop"&&U.algo.extraTag&&(0,a.jsx)(l.V,{className:Y().tag,...U.algo.extraTag,onTooltipOpen:eR})]}),(0,a.jsx)(D,{withNewMarkup:es,rate:p,effectiveRate:ep||ey,hideExternalLinks:ea,profit:eC,unit:O,extraInfo:U,isSavingAccount:R,salaryToggle:$,setSalaryToggle:M,discount:x,bonus:eD,firstDepositBonusTitle:G,tipIcon:ee,switchRate:k,onSwitchRate:j,isRateSwitched:b,eventCategory:eo,productId:T,isCombo:eu,isLoading:ef}),null==F?void 0:F(h),eZ(),eI&&(0,a.jsx)(r.zx,{onClick:eE,className:Y().button,size:"s",variant:"secondary",children:eA}),eL&&(0,a.jsx)("h3",{className:Y().disclaimer,children:"Предварительный расчет. Не является офертой"})]})]})});F.displayName="DepositDetailCompute"},68026:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},k:function(){return d}});var a=n(57437),i=n(72857),r=n(5426),o=n(2265);let s=(0,o.createContext)(void 0);function l(){}let c={region:r.A7.getItem("user_region"),town:r.A7.getItem("user_town"),handleToggleModal:l,handleSetRegion:l,handleSetTown:l};function u(e){let{children:t}=e,[n,l]=(0,o.useState)(()=>r.A7.getItem("user_region")),[u,d]=(0,o.useState)(()=>r.A7.getItem("user_town")),[m,p]=(0,o.useState)(c),_=(0,i.u)(),v=(0,o.useCallback)(()=>{_.handleToggleModal(!0)},[_]),h=(0,o.useCallback)(e=>{m.handleSetRegion(e),l(e),_.selectCity(e,r.A7.getItem("user_town"))},[m,_]),f=(0,o.useCallback)(e=>{m.handleSetTown(e),d(e),_.selectCity(r.A7.getItem("user_region"),e)},[m,_]);(0,o.useEffect)(()=>{function e(e){l(e.detail.region),d(e.detail.town)}return document.addEventListener("onRegionChange",e),()=>document.removeEventListener("onRegionChange",e)},[]),(0,o.useEffect)(()=>{p(c),void 0!==c.region&&l(c.region),void 0!==c.town&&d(c.town)},[]);let g=(0,o.useMemo)(()=>({region:n,town:u,handleToggleModal:v,handleSetRegion:h,handleSetTown:f}),[h,f,v,n,u]);return(0,a.jsx)(s.Provider,{value:g,children:t})}function d(){let e=(0,o.useContext)(s);if(!e)throw Error("Out of context");return e}},75217:function(e,t,n){"use strict";var a=n(2265);t.default=(0,a.createContext)(void 0)},60341:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var a=n(57437),i=n(2265),r=n(75217);function o(e){let{children:t,siteConfig:n}=e,[o]=(0,i.useState)(n);return(0,a.jsx)(r.default.Provider,{value:o,children:t})}},2674:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l.default},ND:function(){return s}}),(a=i||(i={})).Beeline="beeline",a.T2="t2",a.Megafon="megafon",i.Beeline,i.T2,i.Megafon,i.T2,i.Beeline,i.Megafon,i.T2,i.Beeline,i.Megafon;var a,i,r=n(2265),o=n(75217);function s(){let e=(0,r.useContext)(o.default);if(!e)throw Error("Site config was used out of context");return e}var l=n(60341)},58580:function(e,t,n){"use strict";var a,i;n.d(t,{a:function(){return a}}),(i=a||(a={})).VKLADY="vklady",i.VKLADY_OLD="vklady/old",i.DEPOSIT_CALCULATOR="depozitnyj-kalkulyator",i.BANK_DEPOSIT_CALCULATOR="kalkulyator-vkladov",i.DEPOSIT_PICKER="depozitnyj-podborshik",i.PARTNERS_SHOWCASE="vklady/partners",i.COMBO="combo",i.OLD_COMBO="old/combo",i.SAVING_ACCOUNTS="saving-accounts"},45198:function(e,t,n){"use strict";var a=n(92668),i=n(44579);let r={[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=r},84948:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var a=n(69775),i=n(89981),r=n(92668),o=n(85873),s=n(53970),l=n(52603),c=n(40309),u=n(44579),d=n(45198);function m(e){let{nPerYear:t,amount:n,rate:a,termInDays:i}=e,r=n*Math.pow(1+a/t,i/365*t)-n;return{profit:r,effectiveRate:r/n/i*36500}}function p(e){let{capitalization:t,paymentFrequency:n,termByYears:a,amount:i,averageRate:r,termInDays:o}=e;if(t){let e=r/100;if(n===c.Z.EveryDay){let t=a.reduce((t,n)=>t*Math.pow(1+e/n.daysInYear,n.daysInInterval),i)-i,n=t/i/o*36500;return{profit:t,effectiveRate:n}}if(n===c.Z.Weekly)return m({nPerYear:52,termInDays:o,amount:i,rate:e});if(n===c.Z.OnceAMonth||n===c.Z.InTheEnd)return m({nPerYear:12,termInDays:o,amount:i,rate:e});if(n===c.Z.Quarterly)return m({nPerYear:4,termInDays:o,amount:i,rate:e});if(n===c.Z.Semiannually)return m({nPerYear:2,termInDays:o,amount:i,rate:e});if(n===c.Z.Annually)return m({nPerYear:1,termInDays:o,amount:i,rate:e})}let s=a.reduce((e,t)=>e+r/100*i/t.daysInYear*t.daysInInterval,0);if(!o||!i)return{profit:s,effectiveRate:r};let l=s/i/o*36500;return{profit:s,effectiveRate:l}}function _(e){let{depositSum:t,term:n,rate:c,isCapitalization:m=!1,discount:_,period:v,paymentFrequency:h,dateStart:f=new Date}=e,g=d.Z[v](f,n),x=v===u.Z.Day?n:(0,s.w)(g,f),b=function(e,t,n){let c=(0,a.k)({start:e,end:t});return c.reduce((a,u,d)=>{let m=0===d?e:u,p=d===c.length-1?t:(0,i.u)((0,r.I)(m,{days:n}),{start:m,end:(0,r.I)((0,o.w)(u),{days:1})}),_=(0,s.w)(p,m);return 0===_?a:[...a,{daysInYear:(0,l.y)(u),daysInInterval:_}]},[])}(f,g,x),j={amount:t,paymentFrequency:h,dateEnd:g,dateStart:f,capitalization:m,termByYears:b,termInDays:x,averageRate:c},{profit:k,effectiveRate:y}=p(j),{bonus:N,bonusRate:C}=function(e,t){if(!t||!t.rate)return{bonus:0,bonusRate:0};let n=t.rate;if("fixedBonusAmount"in t&&t.fixedBonusAmount)return{bonus:t.fixedBonusAmount,bonusRate:n};if(!t.sum)return{bonus:0,bonusRate:0};let{profit:a}=p({...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}}(j,_);return{total:t+k+N,bonus:N,profit:k,effectiveRate:y,bonusRate:C,endOfTerm:g}}},19612:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var a=n(14862);class i{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,r;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!==(r=e.maxTermInDays)&&void 0!==r?r:0,this.terms=t.terms,this.currentAmount=t.currentAmount,this.amountKeys=["minAmount","maxAmount"],this.termsKeys=["minTermInDays","maxTermInDays"]}}let r=e=>{let{currentAmount:t,finuslugiBonusAllowed:n,isPlusFiveBonus:r,isOldUser:o,terms:s,finuslugiBonusPromotion:l,firstDepositPromotionAllowed:c,repeatDepositPromotionAllowed:u}=e;if(a.m.FEATURE_TOGGLE_NEW_BONUS_API_ENABLED)return!!(c&&!o||u&&o);if(!n)return!1;if(r)return!0;if(!l||!o)return!1;let d=new i(l,{terms:s,currentAmount:+t});return!d.hasAmountKeys&&!d.hasTermsKeys||(d.terms&&d.currentAmount||!d.hasKeysExistsEvery?!!(d.terms&&d.hasKeysExistsSome&&d.getDiscountByTerms())&&!!(d.currentAmount&&d.hasKeysExistsSome&&d.getDiscountByAmount()):d.getDiscountByTerms()&&d.getDiscountByAmount())}},39402:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var a=n(91220);function i(e){let{asPath:t,firstBaseUrl:n,productId:i,optionId:o,amount:s,durationValue:l,secondBaseUrl:c,passAggregatorId:u=!1,passCombo:d=!1}=e,{utm_campaign:m,utm_medium:p,utm_source:_,utm_term:v,aggregator_id:h}=(0,a.p)(t,"#"),{partner_id:f}=(0,a.p)(t,"?"),g=u?h:f;return{urlFirst:r(new URL("/add-product",n),{aggregatorId:null!=g?g:"moex-mp-new-sc",productId:i,optionId:o,amount:s,durationValue:l,utm_campaign:m,utm_medium:p,utm_source:_,utm_term:v,...d?{from:"combo"}:null}).toString(),urlSecond:c&&r(new URL(c),{amount:s,durationValue:l,utm_campaign:m,utm_medium:p,utm_source:_,utm_term:v,...d?{from:"combo"}:null}).toString()}}function r(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}},54328:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var a=n(77337),i=n(14862);let r=e=>(0,a.xn)(i.m.ASSETS_URL,"mp-assets/images/bank/logo-brandmark-bank-".concat(e,".svg"))},75109:function(e,t,n){"use strict";n.d(t,{D:function(){return i},pW:function(){return a},qL:function(){return r}});let a=e=>e&&{fixedBonusAmount:e.fixedBonusAmount,sum:e.maxBonusAmount,rate:e.annualPercentBonusValue,description:e.productsBonusTooltip,terms:e.productDetailBonusTooltip,link:e.helpfulLink},i=(e,t,n,i,r)=>i?r?n:void 0:e?a(t):n;function r(e,t){return!t}},34482:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(40309);function i(e){let{daily:t,monthly:n}=e;return 1===t?a.Z.EveryDay:1===n?a.Z.OnceAMonth:a.Z.InTheEnd}},89911:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var a=n(75461),i=n(2265),r=n(2938);function o(e,t,n){let{disabled:o=!1,separateLoaders:s=!1,ssrLoader:l=!1,...c}=null!=n?n:{},u=(0,a.s4)(),d=(0,r.ZP)(o?null:e,t,{revalidateOnFocus:!1,...c}),{isLoading:m,isValidating:p}=d,_=m||!!l&&!u&&!o,v=_||p;return(0,i.useMemo)(()=>({...d,isLoading:s?_:v,isValidating:s?p:v}),[v,_,p,s,d])}},32443:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var a=n(67356),i=n(14862),r=n(89911);function o(e){let{disabled:t}=null!=e?e:{},{data:n,isLoading:o}=(0,r.d)("login-widget",()=>(0,a.g)(i.m.LK_API),{disabled:t});return{widgetConfig:n,isWidgetDataLoading:o}}},49394:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(2265),i=n(7006),r=n(26876),o=n(53931);function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=(0,o.$1)(),l=(null==s?void 0:s["auth.gtm_customer_id"])||null,[c]=(0,a.useState)(n&&null!=e?e:[]),[u,d]=(0,a.useState)(!1),[m,p]=(0,a.useState)(!0),[_,v]=(0,a.useState)(!1),[h,f]=(0,a.useState)(t&&!!l);return(0,a.useEffect)(()=>{l&&n&&(f(!0),(0,i.M)(l).then(e=>{let{data:t}=e;(!t||(null==t?void 0:t.features))&&t&&!t.features.includes(r.n.SHOW_ADDITIONAL_PERCENT_BONUS)&&(p(!1),v(!0),d(!0))}).finally(()=>{f(!1)}))},[l,n]),{customerId:l,isOldUser:_,isPlusFiveBonus:m,isHiddenPromo:u,isDiscountsLoading:h,bonuses:c}}},41315:function(e){e.exports={mainContainer:"MainContainer_mainContainer__i0H2X"}},281: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"}},31365:function(e){e.exports={wrapper:"ComboDepositDetail_wrapper__r9SSq"}},41654:function(e){e.exports={wrapper:"ComboDepositCalculator_wrapper__m5vSQ",combo:"ComboDepositCalculator_combo__8YfsV",left:"ComboDepositCalculator_left__Z6XHD",right:"ComboDepositCalculator_right__uULju",collapse:"ComboDepositCalculator_collapse__ImeUT",compute:"ComboDepositCalculator_compute__oFnck"}},55665:function(e){e.exports={wrapper:"ComboDepositConfirm_wrapper__HCmjE",header:"ComboDepositConfirm_header__LENoU",num:"ComboDepositConfirm_num__p1_E5",content:"ComboDepositConfirm_content__d2Cne",tags:"ComboDepositConfirm_tags__k2in8",tag:"ComboDepositConfirm_tag__j3XXf"}},38292:function(e){e.exports={wrapper:"ComboDepositHeader_wrapper__eP83d",link:"ComboDepositHeader_link__b7pEo",container:"ComboDepositHeader_container__IH2Pe",depositName:"ComboDepositHeader_depositName__ay492",bankName:"ComboDepositHeader_bankName__pGknq"}},23163:function(e){e.exports={wrapper:"ComboHeader_wrapper__hja3J",paramsContainer:"ComboHeader_paramsContainer___nzTE",title:"ComboHeader_title__19shK",text:"ComboHeader_text__BJv6p",leftParams:"ComboHeader_leftParams__qYTIc",params:"ComboHeader_params__VIKpd",param:"ComboHeader_param__Vv9ge",label:"ComboHeader_label__2r1S2",value:"ComboHeader_value__9SQv6",rightParams:"ComboHeader_rightParams__kwWlv",opened:"ComboHeader_opened__qVjz1",icon:"ComboHeader_icon__RivRj",stepsContainer:"ComboHeader_stepsContainer__u7AUI",steps:"ComboHeader_steps__0XqkN",step:"ComboHeader_step__h2_fg"}},56257: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"}},28734: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"}},32817:function(e){e.exports={skeletonContainer:"HeaderSkeleton_skeletonContainer___dhhJ",visible:"HeaderSkeleton_visible__arkXP",skeletonProfit:"HeaderSkeleton_skeletonProfit__PGN7g",skeletonDate:"HeaderSkeleton_skeletonDate__QrnJO"}},23e3:function(e){e.exports={skeletonContainer:"ProfitSkeleton_skeletonContainer__33exZ",visible:"ProfitSkeleton_visible__StSgI",skeleton:"ProfitSkeleton_skeleton___lU6r"}},90297:function(e){e.exports={values:"ValueList_values__mGunQ",value:"ValueList_value__RRvlg",valueDash:"ValueList_valueDash__mwitD",detail:"ValueList_detail__6tgWx",toggle:"ValueList_toggle__tin7w"}},44587:function(e,t){"use strict";t.Z={src:"/deposits/_next/static/media/detailed.37f1b990.svg",height:16,width:16,blurWidth:0,blurHeight:0}},52848:function(e,t,n){"use strict";let a;n.d(t,{F:function(){return F}});var i=n(57437),r=n(35563),o=n(54365),s=n(77337),l=n(52074),c=n(75461),u=n(6554),d=n(80684),m=n(2265),p=n(94246);let _=(0,l.g)("footer-contacts-block","sc"),v=Object.freeze({contactsWrapper:`${_}__contacts-wrapper`,gray:`${_}__gray`,phones:`${_}__phones`,contactsButtons:`${_}__contacts-buttons`,vkIcon:`${_}__vk-icon`,tgIcon:`${_}__tg-icon`,dzenIcon:`${_}__dzen-icon`,maxIcon:`${_}__max-icon`,link:`${_}__link`}),h=(0,l.g)("footer","sc"),f=Object.freeze({wrapper:`${h}__wrapper`,section:`${h}__section`,container:`${h}__container`,top:`${h}__top`,main:`${h}__main`,links:`${h}__links`,disclaimer:`${h}__disclaimer`,bottom:`${h}__bottom`,bottomLinks:`${h}__bottom-links`,bottomDisclaimer:`${h}__bottom-disclaimer`,compact:`${h}__wrapper--compact`,white:`${h}__wrapper--white`}),g="finkit-widgets-sc-footer",x=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"8 (800) 700-64-94",url:"tel:88007006494"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"},{title:"+7 (495) 787-64-94",url:"tel:+74957876494"}],b=[...x,{title:"Онлайн чат",url:void 0}],j=[{type:"vk",className:v.vkIcon,iconName:"vk"},{type:"telegramChannel",className:v.tgIcon,iconName:"telegram"},{type:"dzen",className:v.dzenIcon,iconName:"dzen"},{type:"max",className:v.maxIcon,iconName:"max"}],k=(0,i.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО \xabМБ Маркетплейс\xbb, организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ \xabО совершении финансовых сделок с использованием финансовой платформы\xbb. Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой \xabОткрытие онлайн на Финуслугах\xbb. Иная информация на сайте www.finuslugi.ru считается размещенной ООО \xabМБ Маркетплейс\xbb, если иное явно не следует из существа размещаемой информации. ООО \xabМБ Маркетплейс\xbb входит в Группу \xabМосковская Биржа\xbb.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),y=({onClick:e,eventActionText:t,eventLabel:n,...a})=>(0,i.jsx)(c.zx,{onClick:a=>{null==e||e(a),(0,u.h)({eventCategory:g,eventActionType:u.D.button,eventActionText:t||"",eventLabel:n})},...a}),N=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:a,chat:r,...o})=>(0,i.jsx)(c.rU,{onClick:i=>{var o,s,l;null==e||e(i),r&&(null==i||i.preventDefault(),null==(l=null==(s=null==(o=null==window?void 0:window.supportWidget)?void 0:o.craftTalk)?void 0:s.open)||l.call(s)),(0,u.h)({eventCategory:g,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:a})},...o}),C=({minioUrl:e,blogs:t})=>(0,i.jsxs)("div",{className:v.contactsWrapper,children:[(0,i.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,i.jsx)("div",{className:v.phones,children:b.map(({title:e,url:t})=>(0,i.jsx)(N,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,i.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,i.jsx)("div",{className:v.contactsButtons,children:j.map(({type:n,className:a,iconName:r})=>(0,i.jsx)(y,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:a,iconRight:(0,i.jsx)("img",{width:24,height:24,src:(0,s.xn)(e,`/widgets/footer/${r}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,i.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,i.jsx)("div",{className:v.contactsButtons,children:(0,i.jsxs)(N,{href:null==t?void 0:t.investTg,target:"_blank",className:v.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,i.jsx)(y,{className:v.tgIcon,iconRight:(0,i.jsx)("img",{width:24,height:24,src:(0,s.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),w=(0,l.g)("footer-disclaimer","sc"),D=Object.freeze({disclaimer:`${w}`}),T=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,u.h)({eventCategory:g,eventActionType:u.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,i.jsx)("div",{className:(0,o.Z)(e.className,D.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,i.jsx)("div",{className:(0,o.Z)(e.className,D.disclaimer),onClick:t,children:e.children})},A=()=>{let e=new URL(window.location.href),t=new URLSearchParams;return e.searchParams.forEach((e,n)=>{/^utm_/i.test(n)&&t.set(n,e)}),t},S=(e="")=>{let[t,n]=(0,m.useState)(e);return(0,m.useEffect)(()=>{let t=A();if(!t||0===t.size)return;let[a,i=""]=e.split("?"),r=new URLSearchParams(i);t.forEach((e,t)=>{r.has(t)||r.set(t,e)});let o=r.toString();n(o?`${a}?${o}`:a)},[e]),t},P=(0,l.g)("footer-modal-body","sc"),I=Object.freeze({wrapper:`${P}__wrapper`,title:`${P}__title`,item:`${P}__item`,label:`${P}__label`,button:`${P}__button`,description:`${P}__description`}),L=({directions:e})=>(0,i.jsxs)("div",{className:I.wrapper,children:[(0,i.jsx)("div",{className:I.title,children:"Направления"}),e.map(e=>(0,i.jsxs)(N,{className:I.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,i.jsxs)("div",{className:I.label,children:[(0,i.jsx)("span",{children:e.name}),(0,i.jsx)(y,{className:I.button,iconRight:(0,i.jsx)(d.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,i.jsx)("p",{className:I.description,children:e.description})]},e.url))]}),E=(0,l.g)("footer-popup","sc"),O=Object.freeze({wrapper:`${E}__wrapper`,button:`${E}__button`,icon:`${E}__icon`,buttonWrapper:`${E}__button-wrapper`}),B=({directions:e})=>{let t=(0,c._m)("l"),[n,a]=(0,m.useState)(!1),r=()=>{a(!1)};return(0,i.jsxs)("div",{className:O.wrapper,children:[(0,i.jsx)("div",{className:O.buttonWrapper,children:(0,i.jsx)(y,{className:O.button,appearance:"ghost",variant:"white",onClick:()=>{a(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,i.jsx)("div",{className:O.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,i.jsx)("div",{},e))})})}),(0,i.jsxs)(p.P,{children:[!t&&(0,i.jsx)(p.U,{isOpen:n,onClose:r,full:!0,children:(0,i.jsx)(L,{directions:e})}),t&&(0,i.jsx)(p.D,{isOpen:n,onClose:r,width:"804px",children:(0,i.jsx)(L,{directions:e})})]})]})},R=(0,l.g)("footer-left-column","sc"),U=Object.freeze({leftColumn:`${R}__left-column`,logoWrapper:`${R}__logo-wrapper`,banner:`${R}__banner`,mobAppLink:`${R}__mob-app-link`,br:`${R}__br`}),$=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:a})=>{let o=S(a);return(0,i.jsxs)("div",{className:U.leftColumn,children:[(0,i.jsx)(N,{className:U.logoWrapper,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,i.jsx)("img",{src:(0,s.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,i.jsx)(B,{directions:n??[]}),(0,i.jsx)(N,{href:o,target:"_blank",eventActionType:u.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:o,className:U.mobAppLink,children:(0,i.jsxs)(r.Zb,{className:U.banner,children:[(0,i.jsxs)(r.xv,{weight:"medium",children:["Управляйте финансами",(0,i.jsx)("br",{}),"через приложение",(0,i.jsx)("br",{className:U.br})," Финуслуг"]}),(0,i.jsx)(y,{iconRight:(0,i.jsx)(d.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,s.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,i.jsx)("img",{src:(0,s.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},M=(0,l.g)("footer-logo","sc"),Z=Object.freeze({wrapper:`${M}__wrapper`,link:`${M}__link`,fromMoex:`${M}__from-moex`,logo:`${M}__logo`,white:`${M}__wrapper--white`}),H=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,i.jsx)("div",{className:(0,o.Z)(Z.wrapper,{[Z.white]:n}),children:(0,i.jsxs)(N,{className:Z.link,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,i.jsx)("img",{className:Z.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,i.jsx)("img",{className:Z.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var z=((a=z||{}).BLACK="black",a.GRAY="gray",a);let K=(0,l.g)("footer-warning","sc"),Y=Object.freeze({reservedSpace:`${K}__reserved-space`,wrapper:`${K}__wrapper`,wrapperGray:`${K}__wrapper--gray`,fixed:`${K}__wrapper--fixed`,container:`${K}__container`,text:`${K}__text`,invisibleText:`${K}__text--invisible`}),V=({text:e,variant:t,fixed:n,isPlaceholder:a})=>(0,i.jsx)("div",{className:(0,o.Z)(Y.wrapper,{[Y.wrapperGray]:"gray"===t,[Y.fixed]:n&&!a}),children:(0,i.jsx)(r.W2,{className:Y.container,children:(0,i.jsx)("div",{className:(0,o.Z)(Y.text,{[Y.invisibleText]:a}),dangerouslySetInnerHTML:{__html:e}})})}),W=({warning:e})=>{let t="string"==typeof e?{text:e}:e,n={text:t.text,fixed:t.fixed??!0,variant:t.variant??z.BLACK};return(0,i.jsxs)("div",{className:Y.reservedSpace,children:[(0,i.jsx)(V,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,i.jsx)(V,{...n,fixed:!0})]})},F=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:a,variant:s="default",className:l})=>{var c,u;let d=!a&&null!=e&&e.disclaimer?e.disclaimer:void 0,m=s.includes("compact"),p=s.includes("white"),_=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(m?x:[]),v=e&&"warning"in e?e.warning:void 0;return e?(0,i.jsx)("footer",{className:(0,o.Z)(f.wrapper,l,{[f.compact]:m,[f.white]:p}),children:(0,i.jsxs)("section",{className:f.section,children:[(0,i.jsxs)(r.W2,{className:f.container,children:[!m&&(0,i.jsx)($,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,i.jsx)("div",{className:f.wrapper,children:(0,i.jsxs)("div",{className:f.top,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:f.main,children:[!m&&(0,i.jsx)("div",{className:f.links,children:null==(u=null==e?void 0:e.top)?void 0:u.map(e=>(0,i.jsx)(N,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),m&&(0,i.jsx)(H,{showcaseUrl:t,minioUrl:n,isWhite:p}),(0,i.jsx)(T,{className:f.disclaimer,disclaimer:d,children:a||k})]}),(0,i.jsxs)("div",{className:f.bottom,children:[(0,i.jsx)("div",{className:f.bottomLinks,children:null==_?void 0:_.map(e=>(0,i.jsx)(N,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,i.jsx)(T,{className:f.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!m&&(0,i.jsx)(C,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),m&&!!v&&(0,i.jsx)(W,{warning:v})]})}):null}},16715:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var a=n(57437),i=n(2265),r=n(80684),o=n(54365),s=n(55487);let l=(0,n(52074).g)("cookies-plate","sc"),c=Object.freeze({wrapper:"".concat(l,"__wrapper"),contentWrapper:"".concat(l,"__content-wrapper"),visible:"".concat(l,"--visible"),hidden:"".concat(l,"--hidden"),content:"".concat(l,"__content"),text:"".concat(l,"__text"),link:"".concat(l,"__link"),button:"".concat(l,"__button")}),u=e=>{let{className:t,mountDelay:n=3e3,href:l="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",children:u,closeIcon:d,onMount:m,onLinkClick:p,onClose:_,mountAfterScroll:v=!0}=e,[h,f]=(0,i.useState)(!1),[g,x]=(0,i.useState)(!1),[b,j]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),s.a.getItem("Allow-Cookie")||(j(!0),setTimeout(()=>{f(!0),null==m||m()},n))};return v?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let k=(0,i.useCallback)(()=>{s.a.setItem("Allow-Cookie","1"),x(!0),null==_||_(),setTimeout(()=>j(!1),1e3)},[_]);return b?(0,a.jsx)("div",{className:c.wrapper,children:(0,a.jsx)("div",{className:(0,o.Z)(c.contentWrapper,{[c.visible]:h,[c.hidden]:g}),children:(0,a.jsxs)("div",{className:(0,o.Z)(t,c.content),children:[u||(0,a.jsxs)("p",{className:c.text,children:["Мы используем"," ",(0,a.jsx)("a",{className:c.link,href:l,target:"_blank",rel:"noreferrer",onClick:p,children:"cookie"})," ","для лучшей работы сайта"]}),(0,a.jsx)("button",{className:c.button,onClick:k,children:d||(0,a.jsx)(r.IconFdsCloseO,{})})]})})}):(0,a.jsx)(a.Fragment,{})}},30660:function(e,t,n){"use strict";n.d(t,{SV:function(){return o}});var a=n(2265);let i=(0,a.createContext)(null),r={didCatch:!1,error:null};class o extends a.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){for(var e,t,n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];let{error:o}=this.state;null!==o&&(null===(e=(t=this.props).onReset)||void 0===e||e.call(t,{args:a,reason:"imperative-api"}),this.setState(r))}componentDidCatch(e,t){var n,a;null===(n=(a=this.props).onError)||void 0===n||n.call(a,e,t)}componentDidUpdate(e,t){var n,a;let{didCatch:i}=this.state,{resetKeys:o}=this.props;i&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,o)&&(null===(n=(a=this.props).onReset)||void 0===n||n.call(a,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(r))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:s}=this.state,l=e;if(o){let e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)l=t(e);else if(n)l=(0,a.createElement)(n,e);else if(void 0!==r)l=r;else throw s}return(0,a.createElement)(i.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},l)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=r}}}},function(e){e.O(0,[1142,6746,5291,3219,6497,1160,5899,7254,2273,4766,1573,7024,3558,779,2106,4223,1082,393,6697,680,2987,5893,7492,5501,207,5458,3544,3646,6670,5346,6293,666,4900,3145,2188,2938,8665,2541,9442,1196,4764,2971,2117,1744],function(){return e(e.s=18487)}),_N_E=e.O()}]);