(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9407],{32525:function(e,l,t){"use strict";t.d(l,{Z:function(){return m}});var a=t(57437),o=t(5426),i=t(54365),n=t(33145),s=t(2265),r=t(72151),c=t(70538),d=t(3546),u=t.n(d);function m(e){let{logo:l,bankName:t,caption:d,eventCategory:m,depositUrl:_,bankNameR:p,isMobile:v,onClose:h}=e,f=(0,s.useCallback)(()=>{(0,r.lQ)({event:"data-event",eventCategory:m,eventAction:"click_share_"})},[m]),x=(0,s.useCallback)(e=>{(0,r.lQ)({event:"data-event",eventCategory:m,eventAction:"click_share_".concat(e.name)}),window.open(e.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300")},[m]),b=v?48:56;return v?(0,a.jsx)("div",{className:(0,i.Z)(u().plate,u().fullwidth),children:(0,a.jsxs)("section",{className:u().columns,children:[(0,a.jsxs)("div",{className:u().column,children:[(0,a.jsxs)("div",{className:u().row,children:[(0,a.jsx)("div",{className:u().plateIcon,children:l&&(0,a.jsx)(n.default,{width:b,height:b,src:l,alt:"logo"})}),(0,a.jsxs)("div",{className:u().plateLabel,children:[(0,a.jsx)(o.X6,{type:"h3",children:t}),d&&(0,a.jsx)("span",{className:u().caption,children:d})]})]}),(0,a.jsx)(c.N,{isMobile:v,onClickItem:f,onClickChild:x,url:_,titleActionsList:"Вклад \xab".concat(d,"\xbb от ").concat(p)})]}),(0,a.jsx)("div",{role:"close-button",className:u().column,children:(0,a.jsx)("button",{className:u().closeButton,onClick:h,children:(0,a.jsx)(o.ax,{name:"finuslugi:cross"})})})]})}):(0,a.jsxs)("section",{className:u().row,children:[(0,a.jsxs)("div",{className:(0,i.Z)(u().plate,u().fullwidth),children:[(0,a.jsx)("div",{className:u().plateIcon,children:l&&(0,a.jsx)(n.default,{width:56,height:56,src:l,alt:"logo"})}),(0,a.jsxs)("div",{className:u().plateLabel,children:[(0,a.jsx)(o.X6,{type:"h3",children:t}),d&&(0,a.jsx)("span",{className:u().caption,children:d})]})]}),(0,a.jsx)("div",{className:u().plate,children:(0,a.jsx)(c.N,{isMobile:v,onClickItem:f,onClickChild:x,url:_,titleActionsList:"Вклад \xab".concat(d,"\xbb от ").concat(p)})}),(0,a.jsx)("div",{className:u().plate,children:(0,a.jsx)("button",{role:"close-button",className:u().closeButton,onClick:h,children:(0,a.jsx)(o.ax,{name:"finuslugi:cross"})})})]})}},39297:function(e,l,t){"use strict";t.d(l,{Z:function(){return b}});var a,o=t(57437),i=t(5426),n=t(54365),s=t(50666),r=t(2265),c=t(77337),d=t(91627),u=t(58580),m=t(72151),_=t(15984),p=t.n(_);let v=null!==(a=(0,s.env)("NEXT_PUBLIC_BASE_URL"))&&void 0!==a?a:"";function h(e){let{depositUrl:l,depositParams:t,eventCategory:a,isSavingAccount:s}=e,{amount:_,term:h,appUrl:f}=null!=t?t:{},x=(0,r.useMemo)(()=>s?(0,c.jb)((0,c.xn)(v,u.a.SAVING_ACCOUNTS,l),{amount:_,period:h}):(0,c.iU)((0,c.xn)(v,u.a.VKLADY,l),(0,c.Oh)({amount:_,period:h&&Math.round(h/d.F)})),[_,l,s,h]);return(0,o.jsxs)("section",{className:(0,n.Z)(p().plate,s&&p().noBg),children:[(0,o.jsx)(i.zx,{as:"a",className:p().button,href:f,disabled:!f,onClick:function(){(0,m.lQ)({eventCategory:a,eventAction:"click_button_open_online",event:"data_event"})},size:"s",children:"Открыть онлайн"}),(0,o.jsx)(i.zx,{as:"a",className:p().button,variant:"secondary",href:x,onClick:function(){(0,m.lQ)({eventCategory:a,eventAction:s?"click_button_podrobnee_o_schete":"click_button_podrobnee_o_vklade",event:"data_event"})},size:"s",children:s?"Подробнее о счете":"Подробнее о вкладе"})]})}var f=t(88087),x=t.n(f);function b(e){let{children:l,isOpen:t,isMobile:a,depositParams:s,depositUrl:r,eventCategory:c,isSavingAccount:d=!1,onClose:u}=e;return a?(0,o.jsx)(i.jr,{isOpen:t,onClose:u,hasCloseButton:!1,className:(0,n.Z)(x().mobilePopup,d&&x().compactFooter),contentClassName:x().mobilePopupContent,footer:(0,o.jsx)(h,{depositParams:s,depositUrl:r,eventCategory:c,isSavingAccount:d}),children:l}):(0,o.jsx)(i.dy,{isOpen:t,onClose:u,isCloseable:!1,className:(0,n.Z)(x().drawer,d&&x().compactFooter),contentClassName:x().drawerContent,footer:(0,o.jsx)(h,{depositParams:s,depositUrl:r,eventCategory:c,isSavingAccount:d}),children:l})}},75609:function(e,l,t){"use strict";t.d(l,{Z:function(){return o}});var a=t(69589);function o(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{online_application:t,archive:o,active_to:i}=e,{commercial:n,type:s}=t,r=!i||new Date(i)>=new Date;return(0===o||l)&&r?0===n&&3===s?a.P.isPlatformDeposit:1===n?a.P.isLidgenDeposit:a.P.isNonPlatformDeposit:a.P.isArchiveDeposit}},84213:function(e,l,t){"use strict";t.d(l,{Z:function(){return X}});var a=t(57437),o=t(5426),i=t(33145),n=t(50666),s=t(2265),r=t(54365),c=t(11359),d=t(47823),u=t.n(d);let m=(0,s.memo)(e=>{let{rows:l,className:t}=e;return(0,a.jsx)("ul",{className:(0,r.Z)(u().table,t),children:l.map(e=>e.isComment?(0,a.jsx)("div",{className:u().descriptionText,dangerouslySetInnerHTML:{__html:String(e.value)}},e.label):(0,a.jsxs)("li",{className:u().item,children:[(0,a.jsxs)("span",{className:u().label,children:[e.label,e.description&&(0,a.jsx)(c.C,{text:e.description,className:u().detailed})]}),(0,a.jsxs)("span",{className:u().value,children:[!e.valueDescription&&(0,a.jsx)("span",{className:u().text,title:String(e.value),children:e.value}),e.valueDescription&&(0,a.jsx)(c.C,{text:e.valueDescription,className:u().valueTip,iconSrc:null,children:e.value})]})]},e.label))})});m.displayName="DepositDetailTable";var _=t(38050);let p=(e,l)=>{let t=e[0],a=Math.abs(e[0]-l);for(let o=1;o<e.length;o++){let i=Math.abs(e[o]-l);i<a&&(a=i,t=e[o])}return t};var v=t(74142),h=t(75109),f=t(68538),x=t(70104),b=t(72151),N=t(6314),j=t.n(N);let D=e=>{let l=0;return l=e.includes("мес")?31:365,Number(e.split(" ")[0])*l},C=e=>{var l;let{data:t}=e,o=(0,s.useMemo)(()=>(0,v.z)(null==t?void 0:t.another),[null==t?void 0:t.another]),i=(0,s.useMemo)(()=>(0,v.P)(null==t?void 0:t.platform),[null==t?void 0:t.platform]);if(!t)return null;let{platform:n,another:r,isPlatform:c}=t,d=(0,f.d)(null!=n?n:r,null,c),u=o.length?o:i,_=!(null===(l=t.platform)||void 0===l?void 0:l.asSavingAccount);return(0,a.jsxs)("div",{className:j().content,children:[_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:j().blockTitle,children:"Параметры вклада"}),(0,a.jsxs)("div",{className:j().paramsTable,children:[(0,a.jsx)("div",{className:j().tableTitle,children:(0,a.jsxs)("ul",{className:j().tableList,children:[(0,a.jsx)("li",{children:"Сумма вклада"}),u[0].rates.map(e=>(0,a.jsx)("li",{children:e.label},e.id))]})}),(0,a.jsx)("div",{className:j().tableBody,children:u.map(e=>(0,a.jsxs)("ul",{className:j().tableList,children:[(0,a.jsx)("li",{children:e.label},e.id),e.rates.map(e=>(0,a.jsx)("li",{children:(null==e?void 0:e.value)?(0,x.$1)(Number(null==e?void 0:e.value))+"%":"-"},e.id))]},e.id))})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:j().blockTitle,children:"Условия"}),(0,a.jsx)(m,{rows:d})]})]})},g=e=>{var l,t,r,c,d,u,m;let{data:f,depositSumm:x,depositTerm:N,discount:g,isOpen:k,onClose:M,isOldUser:w}=e,A=(0,o._m)("l"),P=(0,s.useMemo)(()=>(0,v.P)(null==f?void 0:f.platform),[null==f?void 0:f.platform]),T=(0,s.useMemo)(()=>{var e;return w?(0,h.pW)(null==f?void 0:null===(e=f.platform)||void 0===e?void 0:e.finuslugiBonusPromotion):g},[w,null==f?void 0:null===(l=f.platform)||void 0===l?void 0:l.finuslugiBonusPromotion,g]),y=(null==f?void 0:f.isPlatform)?p(P[0].rates.map(e=>Number(e.label.split(" ")[0])),D(N)):null,S=y&&(null==f?void 0:null===(r=f.platform)||void 0===r?void 0:null===(t=r.options.find(e=>{let{duration:l}=e;return y>=l.minimum&&y<=l.maximum}))||void 0===t?void 0:t.id),I=(null==f?void 0:f.isPlatform)?"".concat((0,n.env)("NEXT_PUBLIC_MOEX_AD_URI"),"/add-product?aggregatorId=moex-mp-new-sc&productId=").concat(null==f?void 0:null===(c=f.platform)||void 0===c?void 0:c.internalUrl.split("-").reverse()[0],"&optionId=").concat(S,"&amount=").concat(x,"&durationValue=").concat(y):null==f?void 0:null===(d=f.another)||void 0===d?void 0:d.online_application.url,O=(0,a.jsxs)("div",{className:j().buttonActions,children:[(0,a.jsx)(o.zx,{as:"a",href:null==f?void 0:f.href,target:"_self",size:"s",className:j().button,variant:"secondary",onClick:()=>{var e,l,t;(0,b.lQ)({event:"data-event",eventLabel:null!==(t=null==f?void 0:null===(e=f.platform)||void 0===e?void 0:e.providerId)&&void 0!==t?t:null==f?void 0:null===(l=f.another)||void 0===l?void 0:l.id,eventCategory:"vklady",eventAction:"learn_more_catalog"}),M()},children:"Подробнее"}),!(null==f?void 0:f.isMass)&&(0,a.jsx)(o.zx,{as:"a",href:I,target:"_blank",size:"s",className:j().button,onClick:()=>{var e,l,t;(0,b.lQ)({event:"data-event",eventLabel:null!==(t=null==f?void 0:null===(e=f.platform)||void 0===e?void 0:e.providerId)&&void 0!==t?t:null==f?void 0:null===(l=f.another)||void 0===l?void 0:l.id,eventCategory:"vklady",eventAction:(null==f?void 0:f.isPlatform)?"add_to_cart_catalog":"open_in_bank_catalog"}),M()},children:(null==f?void 0:f.isPlatform)?"Открыть онлайн":"Отправить заявку"})]});return(0,a.jsx)(_.h,{children:(0,a.jsx)("div",{"data-testid":"another-deposit-detail-modal",children:A?(0,a.jsx)(o.dy,{title:(0,a.jsxs)("div",{className:j().plate,children:[(0,a.jsx)("div",{className:j().plateIcon,children:(null==f?void 0:f.bank.logo_mob)&&(0,a.jsx)(i.default,{width:56,height:56,src:null==f?void 0:f.bank.logo_mob,alt:"logo"})}),(0,a.jsxs)("div",{className:j().plateLabel,children:[(0,a.jsx)("h3",{children:null==f?void 0:f.bank.name}),(0,a.jsx)("span",{className:j().caption,children:(null==f?void 0:f.isPlatform)?null==f?void 0:null===(u=f.platform)||void 0===u?void 0:u.name:null==f?void 0:null===(m=f.another)||void 0===m?void 0:m.title})]})]}),footer:O,titleAlign:"left",rowTitle:!0,className:j().drawer,contentClassName:j().container,isOpen:k,onClose:M,children:(0,a.jsx)(C,{data:f,discount:T,depositSumm:x,depositTerm:N,onClose:M})}):(0,a.jsx)(o.jr,{className:j().mobilePopup,footer:O,contentClassName:j().container,isOpen:k,onClose:M,children:(0,a.jsx)(C,{data:f,discount:T,depositSumm:x,depositTerm:N,isMobile:!0,onClose:M})})})})};var k=t(77337),M=t(97793),w=t(3286),A=t(65716),P=t(69589),T=t(14862),y=t(6149),S=t(16161),I=t(19612),O=t(94441);let L=e=>{var l,t,a,o,i,n;let{deposit:s,bank:r,oldDeposit:c}=e,d=null!=c?c:(0,O.MP)(s.asSavingAccount),u=s.options[0],m=(0,O.I7)(r),{rates:_,amountFrom:p,amountTo:v,termFrom:h,termTo:f}=(0,O.HP)(s.options,null==s?void 0:s.isLadderDeposit);return{...d,...s,id:parseInt(s.id),url:s.internalUrl,title:s.name,fin_exclusive:+s.exclusive,active_to:s.activeTo,bank_id:Number(null==r?void 0:r.id),bank_name:null!==(a=null==r?void 0:r.name)&&void 0!==a?a:"",bank_url:null!==(o=null==r?void 0:r.url)&&void 0!==o?o:"",logo_mob:null!==(i=null==r?void 0:r.logo_mob)&&void 0!==i?i:"",legal_name:m,interest_rate:{...null==c?void 0:c.interest_rate,rates:_.length?_:null!==(n=null===(l=d.interest_rate)||void 0===l?void 0:l.rates)&&void 0!==n?n:[]},amount:{...d.amount,from:p,to:v},archive:s.archive?1:0,m_updated_at:null===(t=s.updatedAt)||void 0===t?void 0:t.slice(0,10),term:{...d.term,from:h,to:f},partial_withdrawal:{...d.partial_withdrawal,has:(0,O.Nx)(u),text:(0,O.UD)(u)},interest_payment:{...d.interest_payment,text:"IN_THE_END"===u.interestPayments[0].periods[0].type?"В конце срока":"Ежемесячно",monthly:"MONTHLY"===u.interestPayments[0].periods[0].type?1:0,end:"IN_THE_END"===u.interestPayments[0].periods[0].type?1:0},refill:{...d.refill,has:(0,O.u0)(u),text:(0,O.VV)(u)},interest_capitalization:{...d.interest_capitalization,has:(0,O.xV)(u),text:(0,O.vc)(u)},preferential_termination:{...d.preferential_termination,has:(0,O.vf)(u),text:(0,O.f1)(u)},prolongation:{text:u.prolongations?"Предусмотрена":"Не предусмотрена"},external:{active:s.active}}};var B=t(89911),Z=t(24186),U=t(32525),H=t(39297),z=t(39934),E=t.n(z),F=t(75609);let Q=e=>!!e&&"rate"in e,R=e=>{let{deposit:l,isOldUser:t,isPlusFiveBonus:a,amount:o,term:i}=e;return!!l&&(Q(l)?l.finuslugiBonusAllowed&&!t&&a:(0,I.p)({currentAmount:null!=o?o:0,terms:null!=i?i:0,finuslugiBonusAllowed:(null==l?void 0:l.finuslugiBonusAllowed)===void 0||l.finuslugiBonusAllowed,isPlusFiveBonus:a,isOldUser:t,finuslugiBonusPromotion:l.finuslugiBonusPromotion}))},V=e=>{let{deposit:l,termInMonths:t,amount:a}=e;return Q(l)?{termInMonths:void 0,termInDays:t>0&&a>0?l.profitTerm:l.minimumTermInDays}:{termInMonths:t,termInDays:void 0}},W=e=>{var l,t;let{data:i,discount:n,isOpen:c,isPlusFiveBonus:d,extraInfo:u,questions:m,isOldUser:p=!1,initialAmount:v,initialTermInMonths:f,eventCategory:x,onClose:b}=e,{bank:N,platform:j,another:D,isPlatform:C}=i,g=(0,o._m)("l"),[I,O]=(0,s.useState)(),z=Q(j),{termInDays:W,termInMonths:X}=V({deposit:i.platform,termInMonths:f,amount:v}),Y=(0,s.useMemo)(()=>R({deposit:i.platform,isOldUser:p,isPlusFiveBonus:d,amount:null==I?void 0:I.amount,term:null==I?void 0:I.term}),[i.platform,null==I?void 0:I.amount,null==I?void 0:I.term,p,d]),q=(0,s.useMemo)(()=>p&&!z?(0,h.pW)(null==j?void 0:j.finuslugiBonusPromotion):n,[n,z,p,j]),J=Y?q:void 0,G=p?void 0:null==J?void 0:J.promo_code,{data:K,isLoading:$}=(0,B.d)([null==j?void 0:j.id,"deposit-detail"],()=>(0,M.vI)(String(null==j?void 0:j.id)),{disabled:!z,errorRetryCount:2,onError:e=>{console.error(e),b()}}),ee=C?z?!$&&(null==K?void 0:K.data)?L({deposit:K.data.deposit,bank:N}):void 0:L({deposit:j,bank:N}):D,el=C?j.internalUrl:D.url,et=ee?(0,F.Z)(ee):P.P.isArchiveDeposit,ea=u&&u[el]||{};return(0,a.jsx)(_.h,{children:(0,a.jsx)(H.Z,{isOpen:c,onClose:b,isMobile:!g,depositParams:I,depositUrl:el,eventCategory:x,children:ee?(0,a.jsxs)("div",{"data-testid":"platform-deposit-detail-modal",children:[(0,a.jsx)(U.Z,{depositUrl:(0,k.xn)(T.m.BASE_URL,A.N9.VKLADY,el),bankNameR:null!==(l=null==N?void 0:N.name_r)&&void 0!==l?l:"",bankName:N.name,logo:N.logo_mob,caption:C?j.name:D.title,onClose:b,isMobile:!g,eventCategory:x}),(0,a.jsx)(Z.h2,{href:null==J?void 0:J.link,isMobile:!g,isPlusFiveBonus:d,isOldUser:p,className:(0,r.Z)(E().depositAd,!p&&E().fivePercent),promoCode:G,eventCategory:x,withNewMarkup:!0}),(0,a.jsx)(y.O,{data:ee,isMobile:!g,discount:null!=J?J:void 0,company:N,isOldUser:p,isPlusFiveBonus:d,isShowDepositTip:!1,extraInfo:ea,onChangeData:O,className:E().calculator,titleClassName:E().calculatorTitle,depositType:et,asModal:!0,initialAmount:v,initialTermInMonths:X,initialTermInDays:W,isHidePromo:!0,eventCategory:x,withNewMarkup:!0,amount:null==I?void 0:I.amount,term:null==I?void 0:I.term}),(0,a.jsx)(S.c,{isMobile:!g,questions:m,data:ee,company:N,className:E().detailParams,amount:null!==(t=null==I?void 0:I.amount)&&void 0!==t?t:0,optionId:null==I?void 0:I.optionId,discount:null!=J?J:void 0,isPlusFiveBonus:d,isOldUser:p,extraInfo:ea,wrapperClassName:E().detailParamsWrapper,isCollapsible:!0,asModal:!0,eventCategory:x,withNewMarkup:!0})]}):(0,a.jsx)(w.Z,{hideBonuses:!0})})})};function X(e){let{data:{isPlatform:l=!1}}=e;return l?(0,a.jsx)(W,{...e}):(0,a.jsx)(g,{...e})}},3286:function(e,l,t){"use strict";t.d(l,{Z:function(){return s}});var a=t(57437),o=t(35563),i=t(59608),n=t.n(i);function s(e){let{hideBonuses:l=!1}=e;return(0,a.jsxs)("div",{className:n().container,children:[(0,a.jsx)(o.Od,{className:n().header}),(0,a.jsxs)("div",{className:n().row,children:[(0,a.jsxs)("div",{className:n().column,children:[(0,a.jsx)(o.Od,{className:n().settings}),!l&&(0,a.jsx)(o.Od,{className:n().bonuses})]}),(0,a.jsx)("div",{className:n().column,children:(0,a.jsx)(o.Od,{className:n().profit})})]}),(0,a.jsx)(o.Od,{className:n().params})]})}},70538:function(e,l,t){"use strict";t.d(l,{N:function(){return C}});var a,o,i=t(57437),n=t(54365),s=t(33145),r=t(2265),c=t(76670),d=t(52547),u=t(24584),m=t(35774),_=t.n(m);(a=o||(o={})).share="share",a.arrow="arrow",a.arrowBack="arrowBack";let p={[o.share]:u.Z,[o.arrow]:c.Z,[o.arrowBack]:d.Z},v=(0,r.memo)(e=>{let{icon:l,alt:t,iconClassName:a,className:o,onClick:r,name:c,role:d,...u}=e,m=(0,i.jsx)(s.default,{className:(0,n.Z)(_().icon,a),src:p[l],alt:t}),v=(0,n.Z)(_().action,o);return(0,i.jsx)("button",{role:d,className:v,onClick:()=>null==r?void 0:r(c),...u,children:m})});v.displayName="Action";var h=t(92449),f=t(25464),x=t(94731),b=t(94406);let N=e=>{let{url:l,titleActionsList:t}=e,a=[{icon:(0,i.jsx)(b.Z,{}),url:"https://vk.com/share.php?url=".concat(l,"&title=").concat(t),name:"vk"},{icon:(0,i.jsx)(f.Z,{}),url:"https://connect.ok.ru/offer?url=".concat(l,"&title=").concat(t),name:"Ok"},{icon:(0,i.jsx)(x.Z,{}),url:"https://telegram.me/share/url?url=".concat(l,"&text=").concat(t),name:"telegram"}];return{name:"share",icon:o.share,title:"Поделиться",childList:a}};var j=t(56489),D=t.n(j);let C=(0,r.memo)(e=>{let{url:l,titleActionsList:t,isMobile:a,className:s,onClickChild:c,onClickItem:d}=e,[u,m]=(0,r.useState)(null),_=(0,r.useMemo)(()=>N({url:l,titleActionsList:t}),[t,l]),p=(0,r.useCallback)((e,l)=>()=>{l?m(l=>e===l?null:e):d(e)},[d]);(0,r.useEffect)(()=>{m(null)},[a]);let f=(0,r.useCallback)(()=>{m(null)},[]);return(0,i.jsx)("div",{className:(0,n.Z)(D().container,s),children:(0,i.jsxs)(r.Fragment,{children:[_.childList&&(0,i.jsxs)(h.u,{isOpen:u===_.name,direction:"horizontal",className:(0,n.Z)(D().childContainer,a&&D().childContainerMobile),children:[_.childList.map(e=>(0,i.jsx)("button",{role:"share-action",title:e.name,onClick:()=>c(e),className:(0,n.Z)(D().action,D().actionSocial),children:e.icon},e.name)),a&&(0,i.jsx)(v,{role:"close-action",onClick:f,alt:"close",icon:o.arrow,name:"share",className:(0,n.Z)(D().action,D().actionArrow),iconClassName:D().actionArrowIcon})]}),(0,i.jsx)(v,{role:"open-action",onClick:p(_.name,!!_.childList),name:_.name,alt:_.name,icon:u!==_.name||a?_.icon:o.arrow,className:(0,n.Z)(D().action,u===_.name&&!a&&D().actionArrow),iconClassName:(0,n.Z)(u===_.name&&!a&&D().actionArrowIcon),title:_.title})]},_.name)})});C.displayName="ShareActions"},41506:function(e,l,t){"use strict";t.d(l,{j:function(){return o}});var a=t(2265);let o=e=>{let{banks:l,anotherDeposits:t,platformDeposits:o,newPlatformDeposits:i}=e,[n,s]=(0,a.useState)(null),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)(e=>{var a,n,r,d;let{depositItem:u,isPlatform:m,href:_}=e,p=null,v=null,h=null,f=!u.exclusive&&!m&&!u.isCommercial;m?(p=null!==(a=(i.length>0?i:o).find(e=>e.internalUrl===u.url))&&void 0!==a?a:null,h=null!==(n=l.find(e=>Number(e.bic)===Number(null==p?void 0:p.bic)))&&void 0!==n?n:null,p&&h&&(s({platform:p,another:v,bank:h,href:_,isPlatform:m,isMass:f}),c(!0))):(v=null!==(r=t.find(e=>e.url===u.url))&&void 0!==r?r:null,h=null!==(d=l.find(e=>Number(e.id)===Number(null==v?void 0:v.bank_id)))&&void 0!==d?d:null,v&&h&&(s({platform:p,another:v,bank:h,href:_,isPlatform:m,isMass:f}),c(!0)))},[i,o,l,t]),u=(0,a.useCallback)(()=>{c(!1)},[]);return(0,a.useMemo)(()=>({depositData:n,openModal:r,handleOpen:d,handleClose:u}),[n,r,d,u])}},39934:function(e){e.exports={calculator:"DepositDetailOfferModal_calculator__Z3YE8",calculatorTitle:"DepositDetailOfferModal_calculatorTitle__qIg_N",detailParams:"DepositDetailOfferModal_detailParams__uXZ8y",detailParamsWrapper:"DepositDetailOfferModal_detailParamsWrapper__fvX__",depositAd:"DepositDetailOfferModal_depositAd__CyxJ7",fivePercent:"DepositDetailOfferModal_fivePercent__Na_OH"}},3546:function(e){e.exports={row:"Header_row__G5E4t",columns:"Header_columns__W7W_5",column:"Header_column__LRNA6",plate:"Header_plate__Jqzjn",fullwidth:"Header_fullwidth__UTBxD",plateIcon:"Header_plateIcon__Kce8n",plateLabel:"Header_plateLabel__r_Zhi",caption:"Header_caption__mx7uf",closeButton:"Header_closeButton__S5L5m"}},88087:function(e){e.exports={drawer:"Layout_drawer__gXHfq",compactFooter:"Layout_compactFooter__PiChi",drawerContent:"Layout_drawerContent__mcyAp",mobilePopup:"Layout_mobilePopup__7l7hy"}},15984:function(e){e.exports={plate:"Footer_plate__cHI7H",noBg:"Footer_noBg__bZPjU",button:"Footer_button__hUQ0U"}},47823:function(e){e.exports={table:"DepositDetailTable_table__rSId5",item:"DepositDetailTable_item__eASY8",label:"DepositDetailTable_label__rvBz7",value:"DepositDetailTable_value__lYQCF",valueTip:"DepositDetailTable_valueTip__DC_V_",text:"DepositDetailTable_text__FRMTv",textTip:"DepositDetailTable_textTip__bcho8",detailed:"DepositDetailTable_detailed__MRWJd",descriptionText:"DepositDetailTable_descriptionText___NggJ"}},59608:function(e){e.exports={container:"DetailModalSkeleton_container__ml95j",column:"DetailModalSkeleton_column__DMS8m",row:"DetailModalSkeleton_row__9baTj",header:"DetailModalSkeleton_header__2h855",settings:"DetailModalSkeleton_settings__axyGV",bonuses:"DetailModalSkeleton_bonuses__kclvP",profit:"DetailModalSkeleton_profit__dTSTz",params:"DetailModalSkeleton_params__3eblD"}},56489:function(e){e.exports={container:"ShareActions_container__pGqY_",childContainer:"ShareActions_childContainer__OQ_ZR",actionArrow:"ShareActions_actionArrow__dCmqT",childContainerMobile:"ShareActions_childContainerMobile__0vt9_",action:"ShareActions_action__07ZKz",actionArrowIcon:"ShareActions_actionArrowIcon__QeDSJ",actionSocial:"ShareActions_actionSocial__uWxWu"}},35774:function(e){e.exports={action:"Action_action__v7BY_",icon:"Action_icon__LnjB2"}},6314:function(e){e.exports={container:"DepositDetailOfferModal_container__JU8tV",mobilePopup:"DepositDetailOfferModal_mobilePopup__XhL0c",content:"DepositDetailOfferModal_content__GK6Ln",plate:"DepositDetailOfferModal_plate__PrPzh",plateIcon:"DepositDetailOfferModal_plateIcon__4mHU_",plateLabel:"DepositDetailOfferModal_plateLabel__gb0gs",caption:"DepositDetailOfferModal_caption__e_PIR",blockTitle:"DepositDetailOfferModal_blockTitle__3F9h3",paramsTable:"DepositDetailOfferModal_paramsTable__PLy4c",tableTitle:"DepositDetailOfferModal_tableTitle___Yllo",tableBody:"DepositDetailOfferModal_tableBody__oDmc1",tableList:"DepositDetailOfferModal_tableList___Cq6B",buttonActions:"DepositDetailOfferModal_buttonActions__gRShD",button:"DepositDetailOfferModal_button__u_k4J",descriptionText:"DepositDetailOfferModal_descriptionText__dE8Qq"}}}]);