(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2040],{52446:function(e,t,o){"use strict";var n,a,i=o(52846);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",l({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=i.createElement("rect",{width:28,height:28,rx:14,fill:"#F80"})),a||(a=i.createElement("path",{d:"M13.984 4.163a5.025 5.025 0 1 0 0 10.05 5.025 5.025 0 0 0 0-10.05Zm0 7.102a2.077 2.077 0 1 1 0-4.154 2.077 2.077 0 0 1 0 4.154ZM15.758 18.21c2.012-.409 3.217-1.362 3.281-1.413a1.366 1.366 0 1 0-1.71-2.132c-.012.01-1.297.997-3.413.998-2.115-.001-3.428-.988-3.44-.998a1.366 1.366 0 0 0-1.71 2.132c.065.052 1.32 1.03 3.388 1.43l-2.882 3.012a1.366 1.366 0 1 0 1.967 1.896l2.677-2.852 2.948 2.87a1.366 1.366 0 1 0 1.93-1.933l-3.036-3.01ZM13.916 15.663c-.003 0 .003 0 0 0s.003 0 0 0Z",fill:"#fff"})))}},60916:function(e,t,o){"use strict";var n,a,i,l,r=o(52846);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",c({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=r.createElement("rect",{width:28,height:28,rx:14,fill:"#20A0E1"})),a||(a=r.createElement("path",{d:"m9.477 15.023 1.66 4.598s.208.43.43.43c.223 0 3.53-3.44 3.53-3.44l3.678-7.105-9.239 4.33-.06 1.187Z",fill:"#E3E7EC"})),i||(i=r.createElement("path",{d:"m11.679 16.202-.319 3.39s-.133 1.038.905 0c1.038-1.04 2.032-1.84 2.032-1.84",fill:"#C2C2C6"})),l||(l=r.createElement("path",{d:"M9.507 15.187 6.09 14.074s-.408-.165-.277-.541c.027-.078.082-.143.245-.257.757-.527 14.012-5.292 14.012-5.292s.375-.126.596-.042a.323.323 0 0 1 .22.24c.023.098.033.2.03.301-.002.088-.013.17-.02.297-.081 1.303-2.497 11.024-2.497 11.024s-.145.569-.663.588a.948.948 0 0 1-.691-.267c-1.016-.874-4.529-3.235-5.305-3.754a.148.148 0 0 1-.064-.105c-.01-.055.049-.122.049-.122s6.116-5.437 6.279-6.008c.013-.044-.035-.066-.099-.046-.406.149-7.448 4.596-8.226 5.087a.373.373 0 0 1-.172.01Z",fill:"#fff"})))}},92853:function(e,t,o){"use strict";var n,a,i=o(52846);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",l({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=i.createElement("rect",{width:28,height:28,rx:14,fill:"#4A76A8"})),a||(a=i.createElement("path",{d:"M15.099 19.367a.453.453 0 0 1-.304.437c-2.578.861-6.39-1.142-8.85-5.39-.76-1.315-1.486-2.83-1.934-4.552 0-.065-.003-.126-.006-.184-.023-.454-.034-.675 1.511-.675 1.152 0 1.586-.04 1.83.151.303.238.311.835 1.046 2.313 1.495 3.012 2.835 4.188 3.085 3.59a.306.306 0 0 0 .02-.123c-.004-.418-.025-2.832-.025-3.717 0-.603-.271-.977-.575-1.277-.457-.451-.184-.937.466-.937h2.289c1.392 0 1.447.069 1.444.651h.003v4.388c.017.084.047.14.087.182a.316.316 0 0 0 .217.091c.503.02 1.31-.652 2.69-3.035.326-.564.533-1 .69-1.33.195-.412.311-.656.48-.77.212-.142.45-.141 1.265-.138h.41c1.26 0 1.508 0 1.62.28.061.151.046.32-.007.473-.438 1.269-1.564 2.87-2.468 4.154l-.383.546c-.17.244-.186.54.014.762.184.204.444.466.737.762 1.36 1.374 3.45 3.485 2.128 3.923a.753.753 0 0 1-.233.032h-2.282c-.503.035-1.04-.558-1.617-1.196-.131-.145-.264-.291-.4-.434l-.312-.292c-.664-.627-1.325-1.25-2.074-1.346a.591.591 0 0 0-.282.03c-.133.05-.206.115-.246.208l-.032.073-.002.006v2.345Z",fill:"#fff"})))}},72040:function(e,t,o){"use strict";o.d(t,{F:function(){return F}});var n,a,i=o(57437),l=o(7301),r=o(34734),c=o(20703),s=o(8792),_=o(20564),m=o(2265),h=o(54328),u=o(48292),d=o(88776),p=o(52305),w=o(69182),v=o(71060),x=o(88662);(n=a||(a={})).addToList="addToList",n.like="like",n.share="share",n.chart="chart",n.arrow="arrow",n.arrowBack="arrowBack";let b={[a.addToList]:u.Z,[a.like]:v.Z,[a.share]:x.Z,[a.chart]:w.Z,[a.arrow]:d.Z,[a.arrowBack]:p.Z};var f=o(29705),g=o.n(f);let C=(0,m.memo)(e=>{let{icon:t,alt:o,iconClassName:n,className:a,href:l,onClick:_,name:m,...h}=e,u=(0,i.jsx)(c.default,{className:(0,r.Z)(g().icon,n),src:b[t],alt:o}),d=(0,r.Z)(g().action,a),p=()=>null==_?void 0:_(m);return l?(0,i.jsx)(s.default,{className:d,href:l,onClick:p,...h,children:u}):(0,i.jsx)("button",{className:d,onClick:p,...h,children:u})});C.displayName="Action";var j=o(30),P=o.n(j);let k=(0,m.memo)(e=>{let{list:t,isMobile:o,onClickChild:n,onClickItem:l,className:c}=e,[s,_]=(0,m.useState)(null),u=(e,t)=>()=>{t&&_(t=>e===t?null:e),l(e)};return(0,m.useEffect)(()=>{_(null)},[o]),(0,i.jsx)("div",{className:(0,r.Z)(P().container,c),children:t.map(e=>(0,i.jsxs)(m.Fragment,{children:[e.childList&&(0,i.jsxs)(h.u,{isOpen:s===e.name,direction:"horizontal",className:(0,r.Z)(P().childContainer,o&&P().childContainerMobile),children:[e.childList.map(t=>(0,i.jsx)("button",{title:t.name,onClick:()=>n(e.name,t.name),className:(0,r.Z)(P().action,P().actionSocial),children:t.icon},t.name)),o&&(0,i.jsx)(C,{onClick:()=>_(null),alt:"close",icon:a.arrow,name:"share",className:(0,r.Z)(P().action,P().actionArrow),iconClassName:P().actionArrowIcon})]}),(0,i.jsx)(C,{onClick:u(e.name,!!e.childList),name:e.name,alt:e.name,icon:s!==e.name||o?e.icon:a.arrow,className:(0,r.Z)(P().action,s===e.name&&!o&&P().actionArrow),iconClassName:(0,r.Z)(s===e.name&&!o&&P().actionArrowIcon),title:e.title})]},e.name))})});k.displayName="Actions";let A=e=>e.length?e[0].toUpperCase()+e.slice(1):"";var N=o(53881),Z=o(16243),S=o(93880),M=o(11370),E=o(79976),y={src:"/deposits/_next/static/media/warning-cat.19d38374.svg",height:329,width:348,blurWidth:0,blurHeight:0},T=o(36816),L=o(38865),O=o.n(L);let B=e=>{let{onClose:t,text:o,title:n}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)(c.default,{className:O().image,src:y,alt:"warning cat",width:347.46,height:328}),(0,i.jsx)("h5",{className:O().title,children:n}),(0,i.jsx)("p",{className:O().text,children:o}),(0,i.jsx)(l.zx,{onClick:t,size:"s",className:O().button,children:"Понятно, спасибо"})]})},I=(0,m.memo)(e=>(0,i.jsxs)(T.h,{children:[!e.isMobile&&(0,i.jsx)(l.dy,{contentClassName:O().drawer,isOpen:e.isOpen,onClose:e.onClose,children:(0,i.jsx)(B,{...e})}),e.isMobile&&(0,i.jsx)(l.jr,{className:O().mobilePopup,isOpen:e.isOpen,onClose:e.onClose,children:(0,i.jsx)(B,{...e})})]}));I.displayName="PromoStubModal";var H=o(24866),R=o(52446),z=o(60916),Q=o(92853);let U=e=>{let{dataUrl:t,pageUrl:o,title:n}=e,l=(0,H.xn)((0,_.OB)("NEXT_PUBLIC_BASE_URL")||"",o,t),r=[{icon:(0,i.jsx)(Q.Z,{}),url:"https://vk.com/share.php?url=".concat(l,"&title=").concat(n),name:"vk"},{icon:(0,i.jsx)(R.Z,{}),url:"https://connect.ok.ru/offer?url=".concat(l,"&title=").concat(n),name:"Ok"},{icon:(0,i.jsx)(z.Z,{}),url:"https://telegram.me/share/url?url=".concat(l,"&text=").concat(n),name:"telegram"}];return[{name:"share",icon:a.share,title:"Поделиться",childList:r}]};var D=o(79161),W=o.n(D);let G=(0,_.OB)("NEXT_PUBLIC_BASE_URL"),F=(0,m.memo)(e=>{let{className:t,data:o,bank:n,isArchive:a,pageUrl:_,titlePromo:h,title:u,scrollBlockId:d,isMobile:p,isSmall:w,tagTheme:v="orange",moreAboutLinkText:x="",withNewMarkup:b,eventCategory:f="",hideShareLinks:g=!1,isTag:C=!0}=e,{id:j}=o,P=(0,m.useRef)({title:"",text:""}),[y,T]=(0,m.useState)(!1),L=(0,m.useMemo)(()=>U({dataUrl:o.url,pageUrl:_,title:u}),[o.url,_,u]),O=(0,M.Z)(),B=(0,m.useCallback)(e=>{switch(e){case"share":(0,Z.lQ)({eventCategory:f,eventAction:b?"click_share":"show_pop_up_share",eventLabel:b?String(j):void 0});break;case"compare":P.current={title:"Скоро заработает",text:"Мы уже заканчиваем работу над разделом. Скоро вы сможете сравнивать предложения и выбирать выгодные условия по кредиту"},T(!0);break;case"like":P.current={title:"\xabИзбранное\xbb скоро заработает",text:"Мы уже доделываем этот раздел и скоро представим его вам. Вы сможете добавлять в него лучшие предложения"},T(!0)}},[f,j,b]),H=(0,m.useCallback)((e,t)=>{if("share"===e){var o;let e=null===(o=L.find(e=>"share"===e.name))||void 0===o?void 0:o.childList,n=null==e?void 0:e.find(e=>e.name===t);n&&((0,Z.lQ)({eventCategory:f,eventAction:b?"click_share_"+n.name:"click_button_share",eventLabel:b?String(j):void 0,url:b?void 0:n.url}),window.open(n.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300"))}},[L,b,f,j]),R=(0,m.useCallback)(()=>{(0,N.D)({eventCategory:_,eventAction:N.i.popup,eventActionText:"warning"}),T(!1)},[_]),z=(0,m.useCallback)(()=>d?(0,l.ld)(d,{offset:O,position:"top"}):null,[d,O]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:(0,r.Z)(W().wrapper,{[W().wrapperArchive]:a,[W().wrapperSmall]:a||w,[W().wrapperHideShareLinks]:g},t),children:[(0,i.jsxs)(l.W2,{className:(0,r.Z)(W().company,w&&W().companySmall),children:[(0,i.jsx)("div",{children:(0,i.jsxs)("h1",{className:W().title,children:[u,(0,i.jsxs)("span",{className:(0,r.Z)(W().subTitle,a&&W().subTitleArchive),children:[!w&&(0,i.jsx)(l.$,{className:(0,r.Z)(W().chip,W().chipDesc),text:A(h),color:v})," ",(0,i.jsxs)("span",{className:W().subTitleText,children:["\xab",o.title,"\xbb"]})]})]})}),(null==n?void 0:n.logoMob)&&(0,i.jsx)(s.default,{href:"".concat(G,"/banki/").concat(n.url,"/").concat(_),className:(0,r.Z)(W().logoContainer,(a||w)&&W().logoContainerArchive,!n.url&&W().disabled),target:"_self",onClick:()=>{(null==n?void 0:n.name)&&(0,Z.lQ)({eventCategory:"vklady",eventAction:b?"click_company_logo_"+(0,S.b)(n.name):"click_link"+n.name,eventLabel:b?String(j):void 0,url:b?void 0:"".concat(G,"/banki/").concat(n.url)})},children:(0,i.jsx)(c.default,{className:W().logo,src:n.logoMob,alt:"логотип банка",width:48,height:48})})]}),(0,i.jsxs)(l.W2,{className:(0,r.Z)(W().actionsContainer,w&&W().actionsContainerSmall),children:[(0,i.jsxs)("div",{className:W().actions,children:[C&&(0,i.jsx)(l.$,{className:(0,r.Z)(W().chip,(!w||p)&&W().chipMob),text:A(h),color:v}),!a&&!g&&(0,i.jsx)(k,{isMobile:p||w,list:L,onClickItem:B,onClickChild:H})]}),!a&&!!(null==x?void 0:x.length)&&(0,i.jsx)(E.j,{offPadding:!0,text:x,iconColor:"light",mainPageUrl:_,className:W().link,onClick:z})]})]}),(0,i.jsx)(I,{isMobile:p,onClose:R,text:P.current.text,title:P.current.title,isOpen:y})]})});F.displayName="Promo"},79161:function(e){e.exports={title:"Promo_title__eC3ED",wrapper:"Promo_wrapper__vgwxR",wrapperArchive:"Promo_wrapperArchive__3KLxe",wrapperSmall:"Promo_wrapperSmall__TKQ1G",wrapperHideShareLinks:"Promo_wrapperHideShareLinks__6_vt9",company:"Promo_company__zx2_S",companySmall:"Promo_companySmall__gHEn_",subTitle:"Promo_subTitle__irHjT",subTitleArchive:"Promo_subTitleArchive__ROtWb",subTitleText:"Promo_subTitleText__jiWkv",chip:"Promo_chip__bmI_G",chipDesc:"Promo_chipDesc__Iz92I",chipMob:"Promo_chipMob___jeRS",actionsContainer:"Promo_actionsContainer__wjB_T",actionsContainerSmall:"Promo_actionsContainerSmall__VUz8S",actions:"Promo_actions__TDZMq",action:"Promo_action__AnAZl",actionArrow:"Promo_actionArrow__kHdxS",actionMobile:"Promo_actionMobile__ZEfBz",actionArrowIcon:"Promo_actionArrowIcon__ftM5n",actionSocial:"Promo_actionSocial___3l_t",link:"Promo_link__P1bNh",logo:"Promo_logo__9YwGQ",logoContainer:"Promo_logoContainer__RACcr",logoContainerArchive:"Promo_logoContainerArchive__CYoB0",disabled:"Promo_disabled__P6gN4"}},29705:function(e){e.exports={action:"Action_action__NPK0s",icon:"Action_icon__Luo_o"}},30:function(e){e.exports={container:"Actions_container__QDQi6",childContainer:"Actions_childContainer__yB_gN",actionArrow:"Actions_actionArrow__424PL",childContainerMobile:"Actions_childContainerMobile__o4Srw",action:"Actions_action__jKVRm",actionArrowIcon:"Actions_actionArrowIcon__2EJQ6",actionSocial:"Actions_actionSocial___y87Y"}},38865:function(e){e.exports={drawer:"PromoStubModal_drawer__5jHrh",mobilePopup:"PromoStubModal_mobilePopup__PvuVf",image:"PromoStubModal_image__H5G_m",title:"PromoStubModal_title__2vWJm",text:"PromoStubModal_text__RrSGC",button:"PromoStubModal_button__wlHv7"}}}]);