(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[147],{6115:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n(57437),l=n(2265),r=n(33145);function i(e){let{src:t,alt:n,fallbackSrc:i,...a}=e,[s,c]=(0,l.useState)(t);return(0,o.jsx)(r.default,{...a,src:s,alt:n,onError:()=>c(i)})}},87017:function(e,t,n){"use strict";n.d(t,{i:function(){return j}});var o=n(57437),l=n(75461),r=n(13466),i=n(2265),a=n(54365),s=n(66153),c=n(80684),d=n(5426),u=n(71380),_=n.n(u);let p=e=>{let{footer:t,hasScroll:n,className:l}=e;return(0,o.jsx)("div",{className:(0,a.Z)(_().footer,{[_().hasScroll]:n},l),children:"function"==typeof t?t():t})};var A=n(47171),v=n.n(A);let m=e=>{let{onClose:t,onContentClick:n,children:l,title:r,rowTitle:s,titleAlign:u,isCloseable:_,footer:A,closeButton:m,isOpen:h,contentClassName:f,footerClassName:b,contentStyle:w,width:x}=e,C=(0,i.useRef)(null),g=(0,i.useRef)(null),[y,D]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;if(!g.current||!C.current)return;let t=(null==g?void 0:null===(e=g.current)||void 0===e?void 0:e.getBoundingClientRect().top)||0,n=null==C?void 0:C.current,o=()=>{let e=null==g?void 0:g.current;e&&D(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let j=w||x?{width:x,...w||{}}:void 0;return(0,o.jsxs)("div",{ref:C,style:j,className:(0,a.Z)(v().container,{[v().open]:h,[v().close]:!h},f),children:[!!(r||_)&&(0,o.jsxs)("div",{className:(0,a.Z)(v().header,{[v().rowHeader]:s}),children:[_?m?"function"==typeof m?m():m:(0,o.jsx)(d.zx,{size:"xs",variant:"secondary",shape:"icon",className:v().controlContainer,onClick:t,iconLeft:(0,o.jsx)(c.IconFdsCloseO,{})}):null,!!r&&(0,o.jsx)("h3",{className:(0,a.Z)(v().title,!!u&&v()[u]),children:r})]}),(0,o.jsx)("div",{ref:g,className:v().content,onClick:n,children:l}),A&&(0,o.jsx)(p,{className:(0,a.Z)(v().footer,b),footer:A,hasScroll:y})]})};var h=n(17868),f=n(61753),b=n.n(f);let w=e=>{let{onClose:t,isOpen:n,children:l,withDisabledScroll:r,className:c,...d}=e,u=(0,i.useCallback)(e=>e.stopPropagation(),[]);return(0,h.o)(n&&r),(0,o.jsxs)("div",{"data-portal":!0,className:(0,a.Z)(b().window,c),children:[(0,o.jsx)(s.L,{onClose:t,isOpen:n,delay:0}),(0,o.jsx)(m,{onContentClick:u,onClose:t,isOpen:n,...d,children:l})]})};var x=n(73564);let C=e=>{let{isOpen:t=!1,children:n,titleAlign:l="center",isCloseable:r=!0,withDisabledScroll:i=!0,...a}=e,{mounted:s}=(0,x.b)({opened:t});return s?(0,o.jsx)(w,{titleAlign:l,isCloseable:r,isOpen:t,withDisabledScroll:i,...a,children:n}):null};C.displayName="Drawer";var g=n(49689),y=n(43051),D=n.n(y);let j=e=>{let{footer:t,children:n,onClose:i,isOpen:a,title:s,drawerProps:c}=e,d=(0,l.aF)("m");return(0,o.jsx)(r.h,{children:d?(0,o.jsx)(g.j,{isOpen:a,onClose:i,footer:t,title:s,children:n}):(0,o.jsx)(C,{isOpen:a,onClose:i,title:s,contentClassName:D().content,titleAlign:"center",rowTitle:!0,footer:t,width:"600px",...c,children:n})})}},77493:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});let o=300},66153:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var o=n(57437),l=n(2265),r=n(54365),i=n(77493),a=n(78582),s=n.n(a);let c=e=>{let{onClose:t,onToucheMove:n,isOpen:a,delay:c=i.z}=e,d=(0,l.useRef)(null),u=(0,l.useCallback)(()=>{t&&(d.current=setTimeout(()=>{t()},c))},[c,t]),_=(0,l.useCallback)(e=>{"Escape"===e.key&&u()},[u]);return(0,l.useEffect)(()=>(a&&window.addEventListener("keydown",_),()=>{d.current&&clearTimeout(d.current),window.removeEventListener("keydown",_)}),[a,_]),(0,o.jsx)("div",{className:(0,r.Z)(s().overlay,{[s().open]:a,[s().close]:!a}),onTouchStart:n,onClick:u})}},49689:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});var o=n(57437),l=n(2265),r=n(54365),i=n(66153),a=n(53582),s=n.n(a);let c=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:l}=e;return(0,o.jsx)("div",{className:(0,r.Z)(s().footer,n&&s().footerWithoutShadow,l),children:"function"==typeof t?t():t})};var d=n(17868),u=n(73564),_=n(16565),p=n.n(_);let A=e=>{let{children:t,footer:n,isOpen:a,isSmallPopup:s,onClose:u,hasCloseButton:_=!0,full:A,touchDistance:v=100,withDisabledScroll:m=!0,contentClassName:h,className:f,title:b,closeButton:w,footerClassName:x}=e,[C,g]=(0,l.useState)(!1),[y,D]=(0,l.useState)(!1),[j,T]=(0,l.useState)(!0),[N,k]=(0,l.useState)("120%"),E=(0,l.useRef)(null),O=(0,l.useRef)(0),S=(0,l.useRef)(!1),L=e=>{var t,n,o;let l=null===(t=E.current)||void 0===t?void 0:t.offsetTop,r=null===(n=E.current)||void 0===n?void 0:n.offsetHeight;if(S.current=!0,T(!1),l&&r){let t=(null==e?void 0:null===(o=e.touches[0])||void 0===o?void 0:o.clientY)-l,n=0;t>=0&&t<=r+30&&(n=t),t>r+30&&(n=r+30),k("".concat(n,"px")),O.current=n}},B=()=>{S.current&&(O.current>v&&u?null==u||u():k("0"),T(!0),S.current=!1),window.removeEventListener("touchmove",L),window.removeEventListener("touchend",B)};return(0,l.useEffect)(()=>{a&&setTimeout(()=>{g(!0),D(!0),k("0")},100),!a&&y&&(k("120%"),g(!1),D(!1))},[y,a]),(0,d.o)(a&&m),(0,o.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(p().mobilePopup,y&&p().mobilePopupOpen,f),children:[(0,o.jsx)(i.L,{onClose:()=>{a&&(null==u||u())},onToucheMove:()=>{a&&(g(!1),window.addEventListener("touchmove",L),window.addEventListener("touchend",B))},isOpen:a,delay:0}),(0,o.jsxs)("div",{className:(0,r.Z)(p().content,A&&p().contentFull,j&&p().contentTransition,j&&C&&p().contentTransitionOpen),ref:E,style:{transform:"translateY(".concat(N,")")},children:[(0,o.jsx)("div",{className:p().contentLine}),(0,o.jsxs)("div",{className:(0,r.Z)(p().contentContainer,s&&p().smallContentContainer,{[p().min]:!b&&!_},h),children:[!!b&&(0,o.jsx)("div",{className:p().title,children:b}),_?(0,o.jsx)("div",{className:p().closeContainer,children:_?w?"function"==typeof w?w():w:(0,o.jsx)("button",{onClick:u,className:p().closeButton,children:(0,o.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null}):null,t]}),n&&(0,o.jsx)(c,{footerClassName:x,isSmallPopup:s,footer:n})]})]})},v=e=>{let{children:t,isSmallPopup:n=!1,isOpen:l=!1,...r}=e,{mounted:i}=(0,u.b)({opened:l});return i?(0,o.jsx)(A,{isSmallPopup:n,isOpen:l,...r,children:t}):null};v.displayName="UiMobilePopup"},67494:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var o=n(57437),l=n(27648),r=n(80684),i=n(75461),a=n(54365),s=n(6115),c=n(52460),d=n(74530),u=n(2265),_=n(33145),p=n(3922),A=n(87017),v=n(57287),m=n(67410),h=n(96396),f=n.n(h);let b=e=>{let{data:t,bank:n,url:l,className:s}=e,[c,h]=(0,u.useState)(!1),{full:b,short:w,fullMeta:x}=t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.zx,{"aria-label":"Подробная информация",title:"Подробная информация",className:(0,a.Z)(s),size:"xs",shape:"icon",variant:"secondary",appearance:"ghost",iconLeft:(0,o.jsx)(r.IconFdsInfoCircleO,{size:24}),onClick:e=>{e.stopPropagation(),e.preventDefault(),h(!0),d.iJ.debit.clickDebitCardInfoButton({id:t.id,url:l,title:t.short.name})}}),(0,o.jsx)(A.i,{footer:(0,o.jsxs)("div",{className:f().buttons,children:[(0,o.jsx)(i.zx,{as:"a",href:l,className:f().button,variant:"secondary",size:"s",children:"Все условия"}),!!w.commercialLink&&(0,o.jsx)(i.zx,{as:"a",href:w.commercialLink,className:f().button,variant:"primary",size:"s",children:"Оформить"})]}),drawerProps:{titleAlign:"left",width:"800px"},title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:f().titleDesktop,children:[(0,o.jsx)("div",{className:f().logoContainer,children:!!n.logo&&(0,o.jsx)(_.default,{className:f().logo,unoptimized:!0,width:50,height:50,src:n.logo,alt:"Лого ".concat(n.name)})}),(0,o.jsx)("span",{children:n.name})]}),(0,o.jsx)("div",{className:f().titleMobile,children:"Условия оформления карты"})]}),isOpen:c,onClose:()=>{h(!1)},children:(0,o.jsxs)("div",{children:[b.map((e,t)=>e&&"object"==typeof e&&"rows"in e?(0,o.jsxs)(u.Fragment,{children:[(0,o.jsx)("h3",{className:f().contentTitle,children:e.title}),(0,o.jsx)(p.c,{rows:e.rows})]},e.title):(0,o.jsx)(m.m,{conditions:null==x?void 0:x.loyaltyConditions,loyalty:e,children:(0,o.jsx)("h3",{className:f().contentTitle,children:"Программа лояльности"})},t)),!!n.details.length&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{className:f().contentTitle,children:"О банке"}),(0,o.jsx)(p.c,{rows:n.details})]}),(0,o.jsx)(v.m,{data:t})]})})]})};var w=n(85151),x=n.n(w),C=n(64881);let g=e=>(0,o.jsx)("span",{className:x().tooltipText,dangerouslySetInnerHTML:{__html:e||""}}),y=e=>{var t,n;let{data:u,subOfferIndex:_,isSubOffer:p,bank:A,showLoadMore:v,isFetching:m,buttonText:h,onLoadMore:f,activeTerms:w,urlPrefix:y=""}=e,{short:D}=u,j="".concat(y,"/").concat([c.y.DEBIT_CARDS,u.short.url].join("/"));return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{style:{"--subOfferIndex":_},className:(0,a.Z)(x().wrapper,{[x().subOffer]:p}),onClick:()=>{d.iJ.debit.clickDebitCard({id:u.id,url:j,title:u.short.name})},children:[(0,o.jsx)(l.default,{"aria-label":"Подробнее ".concat(u.short.name),prefetch:!1,href:j,className:x().wrapperLinkOverlay}),(0,o.jsxs)("div",{className:x().inner,children:[(0,o.jsx)("div",{className:x().imageWrapper,children:(0,o.jsx)(s.T,{fill:!0,className:x().image,unoptimized:!0,src:null!==(n=D.image)&&void 0!==n?n:"",fallbackSrc:C.Z.src,alt:"logo"})}),(0,o.jsxs)("div",{className:x().headWrapper,children:[(0,o.jsxs)("div",{className:x().head,children:[(0,o.jsxs)("div",{className:x().titleWrapper,children:[!!D.promotion&&(0,o.jsxs)("div",{className:x().condition,children:[(0,o.jsx)(r.IconFdsGiftF,{size:16}),(0,o.jsx)("div",{className:x().conditionInner,children:D.promotion})]}),(0,o.jsxs)("div",{className:x().title,children:[(0,o.jsx)("div",{className:x().productName,children:D.name}),(0,o.jsx)("div",{className:x().bankName,children:A.name})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(b,{className:x().interactiveElem,url:j,data:u,bank:A})})]}),!!D.chips&&(0,o.jsx)("div",{className:x().tagWrapper,children:null===(t=D.chips)||void 0===t?void 0:t.map((e,t)=>(0,o.jsx)(i.Vp,{className:x().tag,variant:0===t?"purple":"secondary",label:e,size:"m"},e))}),(0,o.jsxs)("div",{className:x().footer,children:[(0,o.jsx)("div",{className:x().terms,children:[{t:[D.cost,"в год"].join(" "),className:x().termService,d:"Обслуживание",comment:D.costComment},(()=>{let e=void 0!==D.cashback,t=void 0!==D.miles,n=void 0!==D.points;return(null==w?void 0:w.includes("cashback"))&&e?{t:D.cashback,d:"Кэшбэк"}:(null==w?void 0:w.includes("mile"))&&t?{t:D.miles,d:"Мили"}:(null==w?void 0:w.includes("points"))&&n?{t:D.points,d:"Баллы"}:e?{t:D.cashback,d:"Кэшбэк"}:t?{t:D.miles,d:"Мили"}:n?{t:D.points,d:"Баллы"}:{t:"Нет",d:"Бонусы"}})(),{t:D.savingPercent,d:"Процент на остаток"},{t:D.deposit,d:"Накопительный счет"}].map(e=>(0,o.jsxs)("div",{className:(0,a.Z)(x().term,e.className),children:[(0,o.jsxs)("div",{className:x().termTitle,children:[e.t||"Нет",e.comment&&(0,o.jsx)("div",{className:(0,a.Z)(x().termTooltip),children:(0,o.jsx)(i.u,{moveToBody:!0,boundaryPadding:{top:150},className:x().tooltip,text:g(e.comment),children:(0,o.jsx)(r.IconFdsQuestionCircleO,{className:(0,a.Z)(x().tooltipIcon,x().interactiveElem)})})})]}),(0,o.jsx)("div",{className:x().termDescription,children:e.d})]},e.d))}),(0,o.jsxs)("div",{className:x().desktopActions,children:[(0,o.jsx)(i.zx,{as:"a",href:j,size:"xs",variant:"secondary",children:"Подробнее"}),!!D.commercialLink&&(0,o.jsx)(i.zx,{as:"a",href:D.commercialLink,size:"xs",variant:"primary",children:"Оформить"})]})]})]}),v&&(0,o.jsx)("div",{className:x().lastOfferCornerGradient})]}),(0,o.jsxs)("div",{className:x().mobileActions,children:[!!D.commercialLink&&(0,o.jsx)(i.zx,{as:"a",href:D.commercialLink,size:"xs",variant:"primary",children:"Оформить"}),(0,o.jsx)(i.zx,{as:"a",href:j,size:"xs",variant:"secondary",children:"Подробнее"})]}),v&&(0,o.jsx)("div",{className:x().showMoreWrapper,children:(0,o.jsx)(i.zx,{className:x().showMoreButton,variant:"purple",appearance:"ghost",size:"xs",disabled:m,label:h,onClick:f,iconRight:(0,o.jsx)(r.IconFdsChevronDownSmallO,{className:x().showMoreIcon,size:20})})})]})})}},57287:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var o=n(57437),l=n(75461);let r=e=>e<10?"0"+e:e.toString(),i=(e,t)=>{if(!e)return"";let n=new Date(e).getDate(),o=new Date(e).getMonth()+1,l=new Date(e).getFullYear(),i=t?"":"".concat(r(n),".").concat(r(o),".").concat(l);return((null==t?void 0:t.hasDay)&&(i="".concat(r(n))),(null==t?void 0:t.hasMonth)&&(i="".concat(i.length?i+".":"").concat(r(o))),null==t?void 0:t.hasYear)?"".concat(i.length?i+".":"").concat(l):i};var a=n(80383),s=n.n(a);let c=e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:s().actualWrapper,children:[(0,o.jsxs)("div",{children:["Информация о дебетовой карте актуальна на ",i(t.short.updatedAt||new Date)]}),(0,o.jsx)(l.rU,{className:s().linkSupport,href:"mailto:content-tariffs@finuslugi.ru",children:"Сообщить об ошибке"})]})}},67410:function(e,t,n){"use strict";n.d(t,{m:function(){return _}});var o=n(57437),l=n(2265),r=n(80684),i=n(75461),a=n(54365),s=n(3922),c=n(91638),d=n(91872),u=n.n(d);let _=e=>{let{loyalty:t,conditions:n,children:d,withDividers:_,noTopMargin:p}=e,[A,v]=(0,l.useState)(()=>{var e,n,o,l,r,i;return(null===(n=t.cashback)||void 0===n?void 0:null===(e=n.rows)||void 0===e?void 0:e.length)?"cashback":(null===(l=t.miles)||void 0===l?void 0:null===(o=l.rows)||void 0===o?void 0:o.length)?"miles":(null===(i=t.points)||void 0===i?void 0:null===(r=i.rows)||void 0===r?void 0:r.length)?"points":"cashback"}),[m,h]=(0,l.useState)(0),f=(0,l.useMemo)(()=>{let e=[];return t.cashback&&t.cashback.rows.length&&e.push({id:"cashback",label:"Кэшбэк"}),t.miles&&t.miles.rows.length&&e.push({id:"miles",label:"Мили"}),t.points&&t.points.rows.length&&e.push({id:"points",label:"Бонусы"}),e},[t]),{programs:b,currentRows:w}=(0,l.useMemo)(()=>{var e,n;let o=(null===(e=t[A])||void 0===e?void 0:e.rows)||[],l=[],r=null;o.forEach(e=>{if("Название программы"===e.title){var t,n;r&&l.push(r),r={name:(null===(n=e.cells)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.type)===c.e.TEXT&&"string"==typeof e.cells[0].value?e.cells[0].value:"Без названия",rows:[]}}else r&&r.rows.push(e)}),r&&l.push(r);let i=(null===(n=l[m])||void 0===n?void 0:n.rows)||[];return{programs:l,currentRows:i}},[t,A,m]),x=(0,l.useMemo)(()=>b.length<1?null:b.length<2?{title:"Название программы",cells:[{type:c.e.TEXT,value:b[0].name||"",variant:"text"}]}:{title:"Название программы",cells:[{type:c.e.CUSTOM,value:(0,o.jsx)("div",{style:{padding:"16px 0"},children:b.map((e,t)=>(0,o.jsx)(i.Y8,{checked:m===t,label:e.name,name:"loyalty-program",onChange:()=>h(t),size:"m",value:t,variant:"primary"},e.name))})}]},[b,m]),C=(0,l.useMemo)(()=>x?[x,...w]:w,[x,w]);return x?(0,o.jsxs)(o.Fragment,{children:[d,!!n&&(0,o.jsxs)("div",{className:(0,a.Z)(u().alert,p&&u().noTopMarginAlert),children:[(0,o.jsx)("div",{className:u().alertIcon,children:(0,o.jsx)(r.IconFdsInfoCircleO,{})}),(0,o.jsx)("div",{children:n})]}),(0,o.jsx)(i.cL,{value:A,chips:f,onChipClick:e=>{v(e),h(0)},size:"m",variant:"primary"}),(0,o.jsx)(s.c,{withDividers:_,rows:C})]}):null}},94147:function(e,t,n){"use strict";n.d(t,{FG:function(){return r.F},mD:function(){return o.m},mc:function(){return l.m}});var o=n(57287),l=n(67410),r=n(67494)},3922:function(e,t,n){"use strict";n.d(t,{c:function(){return N}});var o=n(57437),l=n(54365),r=n(91638),i=n(47748),a=n.n(i);let s=e=>{let{cell:t}=e;return(0,o.jsx)("div",{className:a().wrapper,children:t.value?t.truthy:t.falsy})},c=e=>{let{cell:t}=e;return(0,o.jsx)("div",{style:{height:t.value+"px"}})};var d=n(75461);let u=e=>{let{cell:t}=e;return(0,o.jsx)(d.rU,{href:t.href,children:t.value})};var _=n(54398),p=n.n(_);let A=e=>{let{cell:t}=e;return(0,o.jsx)("ul",{className:p().wrapper,children:t.value.map(e=>(0,o.jsx)("li",{children:e},e))})};var v=n(2265),m=n(33114),h=n.n(m);let f=e=>{let{maxHeight:t=300,className:n,style:r,children:i,...a}=e,[s,c]=(0,v.useState)(t),[d,u]=(0,v.useState)(!1),_=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=()=>{_.current&&_.current.scrollHeight>t&&u(!0)};return e(),window&&window.addEventListener("resize",e),window.removeEventListener("resize",e)},[t]),(0,o.jsxs)("div",{...a,ref:_,className:(0,l.Z)(h().container,{[h().containerOverflow]:d,[h().containerOpen]:d&&s===t},n),style:{height:d?s:"auto",...r},children:[i,d&&(0,o.jsx)("button",{className:h().button,onClick:()=>{c(e=>e===t?"auto":t)},children:s===t?"Показать ещё":"Скрыть"})]})};var b=n(14950),w=n.n(b);let x=e=>{let{cell:t}=e;return(0,o.jsx)(f,{"data-overflow":!0,children:(0,o.jsx)("div",{className:(0,l.Z)(w().wrapper,{[w()[t.variant]]:!0}),dangerouslySetInnerHTML:{__html:t.value}})})},C=e=>{let{cell:t}=e;return t.type===r.e.TEXT?(0,o.jsx)(x,{cell:t}):t.type===r.e.BOOLEAN?(0,o.jsx)(s,{cell:t}):t.type===r.e.GAP?(0,o.jsx)(c,{cell:t}):t.type===r.e.LINK?(0,o.jsx)(u,{cell:t}):t.type===r.e.LIST?(0,o.jsx)(A,{cell:t}):t.type===r.e.CUSTOM?t.value:null};var g=n(16868),y=n.n(g);let D=e=>{let{row:t,withDividers:n}=e;return(0,o.jsxs)("div",{className:(0,l.Z)(y().row,n&&y().withDividers),children:[(0,o.jsx)("div",{className:y().columnTitle,children:t.title}),(0,o.jsx)("div",{className:y().columnValue,children:t.cells.map((e,t)=>(0,o.jsx)(C,{cell:e},t))})]})};var j=n(4946),T=n.n(j);let N=e=>{let{rows:t,withDividers:n}=e;return(0,o.jsx)("div",{className:(0,l.Z)(T().table,n&&T().withDividers),children:t.map((e,t)=>(0,o.jsx)(D,{withDividers:n,row:e},t))})}},13466:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var o=n(57437),l=n(2265),r=n(54887);let i=e=>{let{children:t,id:n="portal-root"}=e,[i,a]=(0,l.useState)(null);return(0,l.useEffect)(()=>{var e,t,o;let l=null===(e=document)||void 0===e?void 0:e.getElementById(n);if(l)a(l);else{let e=null===(t=document)||void 0===t?void 0:t.createElement("div");return null===(o=document)||void 0===o||o.body.appendChild(e),a(e),()=>{var t;null===(t=document)||void 0===t||t.body.removeChild(e)}}},[]),(0,o.jsx)(o.Fragment,{children:i&&(0,r.createPortal)(t,i)})}},17868:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var o=n(2265);let l=e=>{let t=(0,o.useRef)(null),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(n.current===e)return;n.current=e;let o=t.current,l=window.innerWidth-document.documentElement.clientWidth;e&&l&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),e&&l&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width","calc(100vw - ".concat(l,"px)")),document.body.style.setProperty("top","-".concat(window.prevScrollPosition,"px"))),e&&!l&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),e&&o&&o.setAttribute("data-portal","");let r=document.querySelectorAll("[data-portal]").length>1;return e||r||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),e||r||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!e&&o&&o.removeAttribute("data-portal"),()=>{document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)}},[e]),t}},73564:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var o=n(2265),l=n(77493);let r=e=>{let{opened:t}=e,[n,r]=(0,o.useState)(!1),i=(0,o.useRef)(null),a=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(t&&!a.current?(a.current=!0,r(!0)):!t&&a.current&&(i.current=setTimeout(()=>{a.current=!1,r(!1)},l.z)),()=>{i.current&&clearTimeout(i.current)}),[t]),{mounted:n}}},91638:function(e,t,n){"use strict";var o,l;n.d(t,{e:function(){return o}}),(l=o||(o={})).TEXT="text",l.BOOLEAN="boolean",l.GAP="gap",l.LINK="link",l.LIST="list",l.CUSTOM="custom"},52460:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});let o={DEBIT_CARDS:"debetovye_karty"}},74530:function(e,t,n){"use strict";n.d(t,{iJ:function(){return d}});var o,l,r=n(52460),i=n(83583),a=n(27669);(o=l||(l={})).link="link",o.button="button",o.popup="popup",o.filterCatalog="filter_catalog",o.utm="utm";let s=e=>{let{eventCategory:t,eventAction:n,eventActionText:o="",eventLabel:l,eventValue:r,url:s}=e,c="boolean"==typeof r?r?"on":"off":r,d="filter_catalog"!==n?/[а-я]/i.test(o.toLowerCase()):"string"!=typeof l||/[а-я]/i.test(l.toLowerCase()),u="filter_catalog"!==n?{event:"data-event",eventCategory:t,eventAction:({link:"click_link",button:"click_button_",popup:"show_pop_up_",utm:"save_utm"})[n]+(d?o:(0,a.b)(o)),eventLabel:l,eventValue:c,url:s}:{event:"data-event",eventAction:t,eventCategory:n,eventLabel:"string"==typeof l?d?l:(0,a.b)(l):l,eventValue:c,url:s};(0,i.lQ)(u)},c=e=>{if(null==e)return"";if("string"==typeof e)return e;if("number"==typeof e)return String(e);if("object"==typeof e){if("label"in e&&e.label)return String(e.label);if("title"in e&&e.title)return String(e.title);if("value"in e&&void 0!==e.value)return String(e.value);if("id"in e&&void 0!==e.id)return String(e.id)}return""},d={debit:{pushFilterDataLayer:(e,t)=>{(0,i.lQ)({event:"data-event",eventAction:r.y.DEBIT_CARDS,eventCategory:"filter_catalog",eventLabel:(0,a.b)(e),eventValue:t})},clickButtonDataLayer:(e,t)=>{let n=null!=t?t:"";if("string"==typeof e)n=e;else{var o;n=null!==(o=e.currentTarget.textContent)&&void 0!==o?o:""}(0,i.lQ)({event:"data-event",eventAction:"click_button_".concat((0,a.b)(n)),eventCategory:r.y.DEBIT_CARDS})},clickDebitCardInfoButton:e=>{s({eventCategory:r.y.DEBIT_CARDS,eventAction:"popup",eventActionText:null==e?void 0:e.title,eventLabel:String(null==e?void 0:e.id)})},clickDebitCard:e=>{s({eventCategory:r.y.DEBIT_CARDS,eventAction:"link",eventActionText:null==e?void 0:e.title,eventLabel:String(null==e?void 0:e.id),url:e.url})}},details:{clickOpenDebitCardInBank:e=>{s({eventCategory:r.y.DEBIT_CARDS,eventAction:"link",eventActionText:e.currentTarget.textContent||""})},clickMenuTabDetailsTable:e=>{s({eventCategory:r.y.DEBIT_CARDS,eventAction:"link",eventLabel:e,eventValue:e})}},getOptionsLabels:e=>null==e?"":Array.isArray(e)?e.map(e=>c(e)).filter(Boolean).join(","):c(e)}},83583:function(e,t,n){"use strict";n.d(t,{lQ:function(){return l}});var o=n(30631);let l=(e,t)=>{let n=sessionStorage.getItem("pushedEvents"),l=n?JSON.parse(n):[];e.event=e.event?e.event:"data-event",e.eventValue=e.eventValue?e.eventValue:null,e.eventAction=e.eventAction&&"string"==typeof e.eventAction?e.eventAction.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"",e.eventLabel=e.eventLabel&&"string"==typeof e.eventLabel?e.eventLabel.toLowerCase().replaceAll(/[ \xa0]/g,"_"):"";let r=l.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!r){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,o.AB)(e)}}},27669:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});let o={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},l=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();if(t in o){let n=o[t];return t===e?n:n.charAt(0).toUpperCase()+n.slice(1)}return e})},43051:function(e){e.exports={content:"AdaptiveDrawer_content__lEIyk",mobilePopup:"AdaptiveDrawer_mobilePopup__UuhES",contentInner:"AdaptiveDrawer_contentInner__9Nsfj"}},78582:function(e){e.exports={overlay:"ClickOutside_overlay__YQi9L",open:"ClickOutside_open__bmtsz",fade:"ClickOutside_fade__io1xj",close:"ClickOutside_close__AC078","fade-out":"ClickOutside_fade-out__wJ_pJ"}},47171:function(e){e.exports={container:"DrawerContent_container__rR8LI",open:"DrawerContent_open__M84fe","slide-up":"DrawerContent_slide-up__PxR16",close:"DrawerContent_close__Cyxv9","slide-out":"DrawerContent_slide-out__U3MRA",header:"DrawerContent_header__Ur_YT",rowHeader:"DrawerContent_rowHeader__2Z3R3",title:"DrawerContent_title__QG5Cm",center:"DrawerContent_center__k_OfP",right:"DrawerContent_right__5FHfz",left:"DrawerContent_left__J0wEA",controlContainer:"DrawerContent_controlContainer__FAnIq",content:"DrawerContent_content__ECzp5",footer:"DrawerContent_footer__SVPa7"}},71380:function(e){e.exports={footer:"DrawerFooter_footer__0AgTl",hasScroll:"DrawerFooter_hasScroll__Qk185"}},61753:function(e){e.exports={window:"DrawerLayout_window__wpjeD"}},16565:function(e){e.exports={mobilePopup:"MobilePopup_mobilePopup__NCFCK",content:"MobilePopup_content__B5iF0",contentFull:"MobilePopup_contentFull__DBrvo",contentLine:"MobilePopup_contentLine__eykLy",contentContainer:"MobilePopup_contentContainer___ZbOq",min:"MobilePopup_min__D0Hml",contentTransition:"MobilePopup_contentTransition__7_kGL",contentTransitionOpen:"MobilePopup_contentTransitionOpen__GDGpr",title:"MobilePopup_title__IEYZk",closeContainer:"MobilePopup_closeContainer__HSRUL",closeButton:"MobilePopup_closeButton__Bse_M",smallContentContainer:"MobilePopup_smallContentContainer__8jHeS"}},53582:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},85151:function(e){e.exports={wrapper:"DebitCard_wrapper__2KZvv",imageWrapper:"DebitCard_imageWrapper__qNJta",inner:"DebitCard_inner___2M3H",wrapperLinkOverlay:"DebitCard_wrapperLinkOverlay__6hGNl",headWrapper:"DebitCard_headWrapper__O23jQ",image:"DebitCard_image__pXG2e",condition:"DebitCard_condition__Oal3b",conditionInner:"DebitCard_conditionInner__tYp_1",head:"DebitCard_head__C1a_6",hint:"DebitCard_hint__ORpbk",titleWrapper:"DebitCard_titleWrapper__zh5A_",productName:"DebitCard_productName__sNxN_",bankName:"DebitCard_bankName__srPAs",tagWrapper:"DebitCard_tagWrapper__sOEFi",tag:"DebitCard_tag__C3JmT",termTitle:"DebitCard_termTitle__ayXkj",termDescription:"DebitCard_termDescription__S0651",terms:"DebitCard_terms__s0XCl",footer:"DebitCard_footer__7ql_t",showMoreWrapper:"DebitCard_showMoreWrapper__aevwv",showMoreButton:"DebitCard_showMoreButton__zaNJk",showMoreIcon:"DebitCard_showMoreIcon__hVrmr",lastOfferCornerGradient:"DebitCard_lastOfferCornerGradient__Wlvoq",desktopActions:"DebitCard_desktopActions__i5R6g",mobileActions:"DebitCard_mobileActions__wmJie",subOffer:"DebitCard_subOffer__JuL_n",cardEntrance:"DebitCard_cardEntrance__TptGs",interactiveElem:"DebitCard_interactiveElem__5dvAS",tooltipIcon:"DebitCard_tooltipIcon__cnu96",termTooltip:"DebitCard_termTooltip__sbXRI",tooltip:"DebitCard_tooltip__lzNqS",tooltipText:"DebitCard_tooltipText__1Xzgw"}},96396:function(e){e.exports={titleMobile:"InfoDebitCardsModal_titleMobile__0X6_F",titleDesktop:"InfoDebitCardsModal_titleDesktop__SHq6m",contentTitle:"InfoDebitCardsModal_contentTitle__cFO7X",logoContainer:"InfoDebitCardsModal_logoContainer__gdm6n",row:"InfoDebitCardsModal_row__2KDgw",valueText:"InfoDebitCardsModal_valueText__9DWBb",columnTitle:"InfoDebitCardsModal_columnTitle__CRysN",columnValue:"InfoDebitCardsModal_columnValue__r8jSb",buttons:"InfoDebitCardsModal_buttons__x40Q3",button:"InfoDebitCardsModal_button__y3QdO"}},80383:function(e){e.exports={actualWrapper:"ActualLabelDebitCard_actualWrapper__BTV3_",linkSupport:"ActualLabelDebitCard_linkSupport__IVtbY"}},91872:function(e){e.exports={alert:"LoyaltyInfoDebitCardsItem_alert__CFelS",alertIcon:"LoyaltyInfoDebitCardsItem_alertIcon__WIQ3U",noTopMarginAlert:"LoyaltyInfoDebitCardsItem_noTopMarginAlert__17J_R"}},4946:function(e){e.exports={titleMobile:"DetailsTable_titleMobile__we1_e",titleDesktop:"DetailsTable_titleDesktop__2AaM8",contentTitle:"DetailsTable_contentTitle__O0hJ7",logoContainer:"DetailsTable_logoContainer__qhNWT",columnTitle:"DetailsTable_columnTitle__2N28I",columnValue:"DetailsTable_columnValue__ffnVk"}},47748:function(e){e.exports={wrapper:"BooleanCellDetailsTableView_wrapper__Lxkn3"}},54398:function(e){e.exports={wrapper:"ListCellDetailsTableView_wrapper__LnEjR"}},14950:function(e){e.exports={wrapper:"TextCellDetailsTableView_wrapper__sY0Lp",comment:"TextCellDetailsTableView_comment__8JHGn"}},16868:function(e){e.exports={titleMobile:"RowDetailsTableView_titleMobile__Ybzkz",titleDesktop:"RowDetailsTableView_titleDesktop__CQJCk",contentTitle:"RowDetailsTableView_contentTitle__xMEYh",logoContainer:"RowDetailsTableView_logoContainer__ZeNsz",row:"RowDetailsTableView_row__ypX_Q",withDividers:"RowDetailsTableView_withDividers__fVpUO",columnTitle:"RowDetailsTableView_columnTitle__76qlA",columnValue:"RowDetailsTableView_columnValue__0_A65"}},33114:function(e){e.exports={container:"TextOverflow_container__puWoy",containerOverflow:"TextOverflow_containerOverflow__m3OAq",containerOpen:"TextOverflow_containerOpen__PcOja",button:"TextOverflow_button__a720J"}},64881:function(e,t){"use strict";t.Z={src:"/debit-cards/_next/static/media/debitCard.031523cb.jpg",height:214,width:340,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAFAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAVAQEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEAMQAAABpwn/xAAVEAEBAAAAAAAAAAAAAAAAAAABMf/aAAgBAQABBQKH/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPwF//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPwF//8QAFBABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAGPwJ//8QAFhABAQEAAAAAAAAAAAAAAAAAAQAR/9oACAEBAAE/IV0v/9oADAMBAAIAAwAAABD3/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAwEBPxB//8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgEBPxB//8QAFxABAQEBAAAAAAAAAAAAAAAAAREAIf/aAAgBAQABPxBkCsr1u//Z",blurWidth:8,blurHeight:5}}}]);