(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87],{4966:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/debetovye_karty/detail",function(){return a(5492)}])},5492:function(e,t,a){"use strict";let n;a.r(t),a.d(t,{__N_SSP:function(){return tJ},default:function(){return tX}});var i,l,r,o,s,c,d,u,_,m,h,p,v=a(5893),g=a(1614),b=a(9036),x=a(8380),f=a(1664),C=a.n(f),k=a(1163),j=a(7294),A=a(7769),w=a(6322),N={src:"/debit-cards/_next/static/media/bike.cc844e23.svg"},y={src:"/debit-cards/_next/static/media/car.13cbdc55.svg"},T=a(4782),S=a(2361),P=a(8055),I=a(5352),L=a(3800),M=a(7460);let D=["utm_campaign","utm_term","utm_content","agent_id","utm_medium","utm_source"];(i=r||(r={})).VKLADY="vklady",i.VKLADY_TAGS="vklady_tags",i.DEPOSITS_ADVANTAGES="deposits_advantages",i.DEPOSITS_DETAIL="deposit_detail",i.DEBIT_CARD_DETAIL="debetovye_karty_detail",i.DEBIT_CARDS="debetovye_karty";var E=a(4386);let B=[x.Xz.deposits,x.Xz.savingsAccounts,x.Xz.debitCards];var H=a(8857),R=a(3793),O=a(9617),Z=a(4096),W=a(5621);let V=()=>{let[e,t]=(0,j.useState)(null);return(0,j.useEffect)(()=>{document.referrer.length&&t(document.referrer)},[]),e};function F(e){let{asPath:t,query:a}=(0,k.useRouter)(),n=(0,j.useMemo)(()=>{if(t.includes("#")){let a=t.split("?")[1];return a?a.split("&").filter(t=>e.includes(t.split("=")[0])):[]}return e.reduce((e,t)=>{let n=a[t];return n?[...e,"".concat(t,"=").concat(a[t])]:e},[])},[t,a,e]);return n}var z=a(6010),U=a(6645);let q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return(void 0===t&&(t=e,e=0),a||t%1||e%1)?Math.min(e+Math.random()*(t-e+parseFloat("1e-14")),t):(e=Math.ceil(e),Math.floor(Math.random()*((t=Math.floor(t))-e+1))+e)};var Q=a(8244),K=a(354),G=a.n(K),Y=a(5675),J=a.n(Y),X=a(1848),$=a(3956),ee=a.n($);let et=(0,j.memo)(e=>{let{isMobile:t,pageUrl:a,bank:n}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:ee().bankInformation,"data-testid":"bank-short-info",children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{"data-testid":"bank-short-info-header",className:ee().header,children:[n.logoMobile&&(0,v.jsx)("div",{className:ee().logoWrapper,children:(0,v.jsx)(J(),{className:ee().icon,src:n.logoMobile,width:t?24:32,height:t?24:32,alt:"logo bank"})}),(0,v.jsx)("p",{className:ee().bankTitle,children:n.name})]}),(null==n?void 0:n.description)&&(0,v.jsx)("p",{className:ee().bankText,dangerouslySetInnerHTML:{__html:null==n?void 0:n.description}})]})}),(0,v.jsx)(X.j,{className:ee().bankLink,text:"Перейти к полному досье",href:"".concat(E._n,"/banki/").concat(n.url),target:"_self",iconColor:"light",mainPageUrl:a})]})});et.displayName="BankShortInfo";var ea=a(9546),en=a(6799),ei=a.n(en);let el=e=>{let{isOpenModal:t,title:a,content:n,onClose:i}=e;return(0,v.jsx)(ea.h,{children:(0,v.jsxs)(x.jr,{className:ei().mobilePopup,contentClassName:ei().content,isOpen:t,onClose:i,children:[(0,v.jsx)("h3",{className:ei().title,children:a}),(0,v.jsx)("div",{children:n})]})})};var er={src:"/debit-cards/_next/static/media/arrow.e5fbf461.svg",height:24,width:24,blurWidth:0,blurHeight:0},eo=a(2727),es=a.n(eo);let ec=(0,j.memo)(e=>{let{tabsList:t,getActiveElementClick:a}=e;return(0,v.jsx)("ul",{className:es().tabsList,children:t.map((e,t)=>(0,v.jsxs)("li",{className:es().tabItem,"data-testid":"mobile-tab-".concat(t+1),onClick:()=>a(e.id),children:[e.label,(0,v.jsx)(J(),{src:er,alt:"иконка",width:"16",height:"16",unoptimized:!0})]},e.id))})});ec.displayName="MobileTabs";let ed="aboutBank",eu={id:(n=new Date().getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=(n+q(16))%16|0;return n=Math.floor(n/16),("x"===e?t:3&t|8).toString(16)})),label:"О банке",name:ed},e_=(0,j.memo)(e=>{let{pageUrl:t,title:a,tabsList:n,tabsContent:i,bank:l,seoText:r,disclaimer:o,scrollBlockId:s,className:c}=e,d=(0,x._m)("l"),[u,_]=(0,j.useState)(n[0]),m=(0,j.useMemo)(()=>[...n,eu],[n]),h=(0,j.useMemo)(()=>({...i,[ed]:[{label:"Регистрационный номер",value:null==l?void 0:l.registrationNumber},{label:"По объему кредитов",value:(null==l?void 0:l.creditRating)?l.creditRating+" место":""},{label:"По объему чистых активов",value:(null==l?void 0:l.netAssetsPlace)?l.netAssetsPlace+" место":"",toolltip:"Показатель реальной стоимости имущества банка. Для его подсчета из стоимости всех активов банка вычитают сумму его долговых обязательств."},{label:"По объему чистой прибыли",value:(null==l?void 0:l.netProfitRating)?l.netProfitRating+" место":"",toolltip:"Показатель дохода банка после вычета расходов и налогов."}]}),[null==l?void 0:l.creditRating,null==l?void 0:l.netAssetsPlace,null==l?void 0:l.netProfitRating,null==l?void 0:l.registrationNumber,i]),[p,g]=(0,j.useState)(!1),b=e=>{let a=m.find(t=>e&&e===t.id)||m[0];_(a),(0,Q.D)({eventCategory:t,eventAction:Q.i.link,eventLabel:a.label,eventValue:a.name}),d||((0,Q.D)({eventCategory:t,eventAction:Q.i.link,eventActionText:a.label,eventLabel:a.id}),g(!0))},f=(0,v.jsx)(et,{isMobile:!d,pageUrl:t,bank:l}),C=e=>(0,v.jsxs)("ul",{className:(0,z.Z)(G().list,e!==u.name&&G().hiddenList),"data-testid":"about-product-tabs-list",children:[h[e].map(e=>e.value?(0,v.jsx)(j.Fragment,{children:(0,v.jsx)(U.a,{size:"m",containerClassName:G().listRow,...e})},e.label):null),(0,v.jsx)(j.Fragment,{children:!d&&u.name===ed&&f})]},e);return(0,v.jsxs)("section",{id:s,className:(0,z.Z)(G().container,c),children:[(0,v.jsx)("p",{className:G().title,children:a}),r&&(0,v.jsx)("p",{className:G().seotext,children:r}),d&&(0,v.jsx)(x.mQ,{tabs:m,activeTabId:u.id,onTabChange:b,className:G().tabsList}),d&&m.map(e=>{let{name:t}=e;return C(t)}),!d&&(0,v.jsx)(ec,{tabsList:m,getActiveElementClick:b}),!d&&(0,v.jsx)(el,{title:u.label,content:C(u.name),isOpenModal:p,onClose:()=>g(!1)}),d&&u.name===ed&&f,(0,v.jsx)("div",{className:G().dateTime,children:o})]})});e_.displayName="AboutProduct";var em=a(2855);let eh=e=>e<10?"0"+e:e.toString(),ep=(e,t)=>{if(!e)return"";let a=new Date(e).getDate(),n=new Date(e).getMonth()+1,i=new Date(e).getFullYear(),l=t?"":"".concat(eh(a),".").concat(eh(n),".").concat(i);return((null==t?void 0:t.hasDay)&&(l="".concat(eh(a))),(null==t?void 0:t.hasMonth)&&(l="".concat(l.length?l+".":"").concat(eh(n))),null==t?void 0:t.hasYear)?"".concat(l.length?l+".":"").concat(i):l};var ev=a(2223),eg=a(1708);let eb=e=>{let{data:t,cardTypes:a,contactlessCardTypes:n}=e,[i,l]=(0,j.useState)(eg.cz),r=(0,j.useMemo)(()=>t?(0,ev.jB)(t,a,n):{[ev.cZ.conditions]:[],[ev.cZ.requirements]:[],[ev.cZ.commissions]:[],[ev.cZ.bonuses]:[]},[t,a,n]);return(0,j.useEffect)(()=>{let e=eg.cz.filter(e=>{let{name:t}=e;return r[t].some(e=>!!e.value)});l(e)},[r]),{tabsContent:r,tabsList:i}},ex=(0,j.memo)(e=>{var t;let{data:a,pageUrl:n,cardTypes:i,contactlessCardTypes:l,bank:r}=e,{tabsContent:o,tabsList:s}=eb({data:a,cardTypes:i,contactlessCardTypes:l});return(0,v.jsx)(e_,{pageUrl:n,seoText:(null==a?void 0:a.short_description)&&(null==a?void 0:a.short_description.length)>5?null==a?void 0:a.short_description:void 0,title:"О дебетовой карте",disclaimer:"Информация о дебетовой карте актуальна на ".concat(ep((null==a?void 0:a.m_updated_at)||new Date)),bank:{logoMobile:null==r?void 0:r.logo_mob,description:null==r?void 0:r.short_description,url:null==r?void 0:r.url,name:null==r?void 0:r.name,creditRating:null==r?void 0:r.credit_rating,netAssetsPlace:null==r?void 0:null===(t=r.ratings)||void 0===t?void 0:t.net_assets_place,netProfitRating:null==r?void 0:r.net_profit_rating},tabsList:s,tabsContent:o,scrollBlockId:em.dn})});ex.displayName="DebitCardAbout";var ef={src:"/debit-cards/_next/static/media/banner-1.cbec846c.svg",height:208,width:301,blurWidth:0,blurHeight:0},eC={src:"/debit-cards/_next/static/media/banner-2.9368ea40.svg",height:218,width:318,blurWidth:0,blurHeight:0},ek={src:"/debit-cards/_next/static/media/banner-6.5d66df25.svg",height:230,width:256,blurWidth:0,blurHeight:0},ej=a(7771),eA=a(1738),ew=a.n(eA);let eN=e=>{var t,a;let{item:n,eventCategory:i,productId:l,withNewMarkup:r}=e,o=(0,j.useRef)(null),s=(0,ej.b)(null!==(a=n.buttonText)&&void 0!==a?a:"");return!function(e){let{itemRef:t,eventCategory:a,eventAction:n,eventLabel:i,disabled:l=!1}=e,r=(0,j.useRef)(null),[o,s]=(0,j.useState)(!1),c=(0,j.useCallback)(e=>{let[l]=e;1===l.intersectionRatio&&!o&&((0,W.lQ)({event:"data-event",eventLabel:i,eventCategory:a,eventAction:n,eventValue:""}),s(!0),r.current&&t.current&&r.current.unobserve(t.current))},[n,a,i,o,t]);(0,j.useEffect)(()=>{l||(r.current&&t.current&&r.current.unobserve(t.current),!o&&t.current&&(r.current=new IntersectionObserver(c,{root:null,threshold:[1]}),r.current.observe(t.current)))},[l,c,o,t]),(0,j.useCallback)(()=>{s(!1)},[])}({disabled:!r,itemRef:o,eventCategory:i,eventAction:"show_where_to_open_".concat(s),eventLabel:null!=l?l:""}),(0,v.jsxs)("div",{className:ew().card,ref:o,children:[(0,v.jsxs)("div",{className:ew().head,children:[n.title&&(0,v.jsx)("p",{className:ew().titemleHead,children:n.title}),(0,v.jsx)("p",{className:ew().text,dangerouslySetInnerHTML:{__html:n.text}})]}),(0,v.jsx)("div",{className:ew().cardImgWrapper,children:(0,v.jsx)(J(),{className:ew().cardImg,width:300,height:208,alt:"banner"+n.id,src:n.image})}),!!(null==n?void 0:null===(t=n.buttonText)||void 0===t?void 0:t.length)&&(0,v.jsx)(x.zx,{className:ew().cardButton,size:"s",variant:"purple",onClick:n.link?()=>{(0,W.lQ)({eventCategory:i,eventAction:r?"click_where_to_open_"+s:"click_button_"+n.buttonText,eventLabel:r?l:n.id,url:r?void 0:n.link}),window.open(n.link,"_self")}:void 0,children:n.buttonText})]},n.id)},ey=e=>{let{slides:t,id:a,title:n,isMobile:i,className:l,eventCategory:r,withNewMarkup:o,productId:s}=e,c=t.length>1?2:1;return i&&(c=1),(0,v.jsxs)("section",{className:(0,z.Z)(ew().container,l),id:a,children:[(0,v.jsx)("h2",{className:ew().title,children:n}),(0,v.jsx)("div",{className:ew().sliderContainer,children:(0,v.jsx)(x.Fp,{width:i?300:348,height:392,spaceBetween:i?16:32,sliderPerView:c,overflowVisible:i,hideNavigationControl:i,classSliderWrapper:(0,z.Z)(ew().sliderWrapper),isDependsOnWidth:!1,children:t.map(e=>(0,v.jsx)(eN,{item:e,eventCategory:r,productId:s,withNewMarkup:o},e.id))})})]})};var eT=a(5865);let eS=()=>{let[e]=F(["aggregator_id"]),t=e?e.split("=")[1]:null,a=(0,eT.$1)(),n=null==a?void 0:a["auth.gtm_customer_id"],i=(null==a?void 0:a.cpa_click)||'{ "payload": [] }',l={payload:[]};try{l=JSON.parse(i)}catch(e){console.error("cpa_click cookie parsing error")}let r=l.payload||[],o=r.pop()||{aggregator_id:"",create_date:""},s=new Date(new Date().getTime()-36e5),c=new Date(o.create_date)>s,d="agents"===o.aggregator_id&&c;return("agents"===t||d)&&!n};var eP=a(5991),eI=a.n(eP);let eL=e=>{let{url:t,pageUrl:a,bannerUrl:n,pageType:i,isMobile:l,className:r}=e,o=eS(),s=(0,j.useMemo)(()=>[{id:3,image:ek,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",types:[O.r.LEAD],buttonText:"Оформить на сайте банка",link:t},{id:4,image:ef,text:"Эту карту сейчас нельзя оформить через Финуслуги",types:[O.r.MASS,O.r.LEAD],buttonText:"Выбрать другую карту",link:"/".concat(a)},{id:5,image:eC,text:"Чтобы оформить карту,<br /> обратитесь в банк",types:[O.r.MASS]}].filter(e=>e.types.find(e=>e===i)&&!(e.link===n&&o)),[t,n,i,a,o]);return(0,v.jsx)("div",{className:eI().container,children:(0,v.jsx)(ey,{className:r,title:"Где оформить дебетовую карту",id:em.VT,isMobile:l,slides:s,eventCategory:a,withNewMarkup:!1})})};var eM=a(2526),eD={src:"/debit-cards/_next/static/media/edit.c0611721.svg",height:16,width:16,blurWidth:0,blurHeight:0},eE=a(4091),eB=a(9040),eH=a(4507),eR=a.n(eH);let eO=(0,j.memo)(e=>{let{value:t,isArchive:a,title:n,captionTitle:i,isMobile:l,titleImage:r,onEdit:o,onChartClick:s}=e,c=t?(0,eB.Y4)(t).split(","):null,d={width:(null==r?void 0:r.isSquare)?l?50:76:42,height:(null==r?void 0:r.isSquare)?l?32:48:42},u=!a&&c&&(0,v.jsxs)("h5",{className:eR().result,children:[(0,v.jsxs)("span",{className:eR().resultText,children:[c[0],c[1]?(0,v.jsxs)(v.Fragment,{children:[",",(0,v.jsxs)("span",{className:eR().resultTextFloat,children:[c[1]," ₽"]})]}):" ₽"]}),!a&&o&&(0,v.jsx)("button",{className:eR().resultButton,onClick:s,children:(0,v.jsx)(J(),{className:eR().resultIcon,src:eD,alt:"edit"})})]});return(0,v.jsxs)("div",{className:eR().head,children:[(0,v.jsxs)("div",{className:eR().computedTitle,children:[(0,v.jsxs)("div",{className:eR().titleWrapper,children:[i&&(0,v.jsx)("p",{className:eR().captionTitle,children:i}),n?(0,v.jsx)("h3",{className:eR().title,children:n}):u]}),n&&r&&(0,v.jsx)(eE.T,{...d,className:eR().img,unoptimized:!0,src:r.url,fallbackSrc:eM.Z.src,alt:"logo"})]}),n&&u]})});eO.displayName="ComputeHead";var eZ={src:"/debit-cards/_next/static/media/detailed.37f1b990.svg",height:16,width:16,blurWidth:0,blurHeight:0},eW=a(8221),eV=a(8634),eF=a.n(eV);let ez=e=>{let{className:t,text:a,tooltipText:n,theme:i="primary",tipIcon:l,onTooltipOpen:r}=e;return(0,v.jsx)("div",{className:(0,z.Z)(eF().tag,{[eF().tagPrimary]:"primary"===i,[eF().tagSecondary]:"secondary"===i,[eF().tagPink]:"pink"===i,[eF().tagYellow]:"yellow"===i},t),children:n&&(0,v.jsx)(eW.C,{className:eF().detail,iconSrc:eZ,text:n,iconClassName:eF().detailIcon,icon:l,onOpen:()=>null==r?void 0:r(a),children:(0,v.jsx)("span",{className:eF().text,children:a})})})};var eU=a(7940),eq=a.n(eU);let eQ=(0,j.memo)(e=>{let{className:t,sum:a,overpayment:n,isMobile:i}=e,l=[{value:a,color:"#FFE576",title:"Сумма кредита"},{value:n,color:"#6A80EF",title:"Переплата"}];return(0,v.jsxs)("div",{className:(0,z.Z)(eq().wrapper,t),children:[(0,v.jsx)("ul",{className:eq().legend,children:l.map(e=>(0,v.jsxs)("li",{className:eq().legendItem,children:[(0,v.jsx)("div",{style:{backgroundColor:e.color},className:eq().legendColor}),(0,v.jsx)("div",{className:eq().legendTitle,children:e.title}),(0,v.jsxs)("div",{className:eq().legendValue,children:[(0,eB.Y4)(e.value,2)," ₽"]})]},e.color))}),(0,v.jsxs)("div",{className:eq().chart,children:[(0,v.jsx)(x.HB,{stroke:"#fff",strokeWidth:i?2:0,items:l.map(e=>({...e,value:e.value||.01})),className:eq().chartValues}),(0,v.jsxs)("div",{className:eq().chartResult,children:[(0,eB.Y4)(a+n,2)," ₽"]})]})]})});eQ.displayName="ComputeChart";var eK=a(6066),eG=a.n(eK);let eY=(0,j.memo)(e=>{let{className:t,label:a,value:n,description:i}=e;return(0,v.jsxs)("li",{className:(0,z.Z)(eG().value,t),children:[(0,v.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),i&&(0,v.jsx)(x.qQ,{text:i,className:eG().detail,keyValue:n}),(0,v.jsx)("div",{className:eG().valueDash}),(0,v.jsx)("div",{dangerouslySetInnerHTML:{__html:String(n)}})]})});eY.displayName="ComputeRow";var eJ=a(2661),eX=a.n(eJ);let e$=(0,j.memo)(e=>{let{pageUrl:t,isArchive:a,title:n,captionTitle:i,titleImage:l,tag:r,tagTheme:o,valuesList:s,disclaimer:c,agreement:d,footerActions:u,onEdit:_,amount:m,repayment:h,isMobile:p,className:g}=e,[b,f]=(0,j.useState)(!1),C=(0,j.useCallback)(()=>{(0,Q.D)({eventCategory:t,eventAction:Q.i.popup,eventActionText:"chart"}),f(e=>!e)},[t]);return(0,v.jsxs)(x.W2,{className:(0,z.Z)(eX().container,b&&eX().containerChart,g),children:[(0,v.jsx)(eO,{isArchive:a,title:n,captionTitle:i,titleImage:l,isChartOpen:b,onChartClick:C,onEdit:_,value:m,isMobile:!!p}),(0,v.jsxs)("div",{className:eX().info,children:["number"==typeof h&&m&&m>0&&(0,v.jsx)(eQ,{isMobile:p,className:(0,z.Z)(eX().chart,b&&eX().chartVisible),sum:m,overpayment:h}),r&&!a&&(0,v.jsx)(ez,{className:eX().tag,text:r,theme:o}),(0,v.jsx)("ul",{className:eX().valueContainer,children:s.map(e=>(0,v.jsx)(eY,{description:e.description,label:e.label,value:e.value,className:eX().value},e.label))}),!a&&(null==c?void 0:c.length)&&(0,v.jsx)("p",{className:eX().disclaimer,children:c}),u&&(0,v.jsx)("div",{className:eX().footerActions,children:u}),d&&(0,v.jsx)("p",{className:eX().agreement,children:d})]})]})});e$.displayName="ComputedBlock";var e0=a(210),e1=a(9194),e2=a(8381),e3=a.n(e2);let e4=e=>{let{isOpen:t,className:a,direction:n="vertical",style:i={},scrollTo:l,isMobile:r,isMoreVisible:o=!1,isAnimationDisabled:s=!1,onOpen:c,...d}=e,u=(0,j.useRef)(()=>null),_=(0,j.useRef)(null),[m,h]=(0,j.useState)(t?"auto":0),[p,g]=(0,j.useState)(null),[b,f]=(0,j.useState)(!0);return(0,j.useEffect)(()=>{if(_.current&&clearTimeout(_.current),u.current&&window&&window.removeEventListener("resize",u.current),u.current=()=>{t&&p?(h("vertical"===n?p.scrollHeight:p.scrollWidth),_.current=setTimeout(()=>{f(!1)},300)):t||(f(!0),_.current=setTimeout(()=>{h(0)}))},u.current(),l&&t&&p&&(0,x.ld)(p,{offset:64,position:"bottom"}),window)return window.addEventListener("resize",u.current),()=>window.removeEventListener("resize",u.current)},[n,p,t,l]),(0,v.jsxs)("div",{className:(0,z.Z)(e3().wrapper,s&&e3().disableAnimation),children:[(0,v.jsx)("div",{role:"collapse-container",ref:g,className:(0,z.Z)(e3().container,(b||!t)&&e3().containerHidden,a),style:{...i,["vertical"===n?"height":"width"]:!b&&t?"auto":m},"data-testid":"collapse-container",...d}),o&&r&&(0,v.jsx)(x.zx,{className:e3().button,label:t?"Свернуть":"Подробнее",onClick:c,size:"xs",variant:"secondary",iconRight:(0,v.jsx)(e1.IconFdsChevronDownO,{className:(0,z.Z)(e3().icon,t&&e3().expanded)}),stretch:!0})]})};(l=o||(o={})).addToList="addToList",l.like="like",l.share="share",l.chart="chart",l.arrow="arrow",l.arrowBack="arrowBack";let e6={[o.addToList]:{src:"/debit-cards/_next/static/media/add-to-list.4c5b9b95.svg",height:16,width:16,blurWidth:0,blurHeight:0},[o.like]:{src:"/debit-cards/_next/static/media/like.cbfb0fe7.svg",height:16,width:16,blurWidth:0,blurHeight:0},[o.share]:{src:"/debit-cards/_next/static/media/share.eccc37fd.svg",height:16,width:16,blurWidth:0,blurHeight:0},[o.chart]:{src:"/debit-cards/_next/static/media/chart.daf7390a.svg",height:48,width:48,blurWidth:0,blurHeight:0},[o.arrow]:er,[o.arrowBack]:{src:"/debit-cards/_next/static/media/arrow-back.09de234e.svg",height:24,width:24,blurWidth:0,blurHeight:0}};var e5=a(6205),e8=a.n(e5);let e7=(0,j.memo)(e=>{let{icon:t,alt:a,iconClassName:n,className:i,href:l,onClick:r,name:o,...s}=e,c=(0,v.jsx)(J(),{className:(0,z.Z)(e8().icon,n),src:e6[t],alt:a}),d=(0,z.Z)(e8().action,i),u=()=>null==r?void 0:r(o);return l?(0,v.jsx)(C(),{className:d,href:l,onClick:u,...s,children:c}):(0,v.jsx)("button",{className:d,onClick:u,...s,children:c})});e7.displayName="Action";var e9=a(6416),te=a.n(e9);let tt=(0,j.memo)(e=>{let{list:t,isMobile:a,onClickChild:n,onClickItem:i,className:l}=e,[r,s]=(0,j.useState)(null),c=(e,t)=>()=>{t&&s(t=>e===t?null:e),i(e)};return(0,j.useEffect)(()=>{s(null)},[a]),(0,v.jsx)("div",{className:(0,z.Z)(te().container,l),children:t.map(e=>(0,v.jsxs)(j.Fragment,{children:[e.childList&&(0,v.jsxs)(e4,{isOpen:r===e.name,direction:"horizontal",className:(0,z.Z)(te().childContainer,a&&te().childContainerMobile),children:[e.childList.map(t=>(0,v.jsx)("button",{title:t.name,onClick:()=>n(e.name,t.name),className:(0,z.Z)(te().action,te().actionSocial),children:t.icon},t.name)),a&&(0,v.jsx)(e7,{onClick:()=>s(null),alt:"close",icon:o.arrow,name:"share",className:(0,z.Z)(te().action,te().actionArrow),iconClassName:te().actionArrowIcon})]}),(0,v.jsx)(e7,{onClick:c(e.name,!!e.childList),name:e.name,alt:e.name,icon:r!==e.name||a?e.icon:o.arrow,className:(0,z.Z)(te().action,r===e.name&&!a&&te().actionArrow),iconClassName:(0,z.Z)(r===e.name&&!a&&te().actionArrowIcon),title:e.title})]},e.name))})});tt.displayName="Actions";let ta=e=>e.length?e[0].toUpperCase()+e.slice(1):"";var tn=a(5882),ti={src:"/debit-cards/_next/static/media/warning-cat.19d38374.svg",height:329,width:348,blurWidth:0,blurHeight:0},tl=a(9880),tr=a.n(tl);let to=e=>{let{onClose:t,text:a,title:n}=e;return(0,v.jsxs)("div",{children:[(0,v.jsx)(J(),{className:tr().image,src:ti,alt:"warning cat",width:347.46,height:328}),(0,v.jsx)("h5",{className:tr().title,children:n}),(0,v.jsx)("p",{className:tr().text,children:a}),(0,v.jsx)(x.zx,{onClick:t,size:"s",className:tr().button,children:"Понятно, спасибо"})]})},ts=(0,j.memo)(e=>(0,v.jsxs)(ea.h,{children:[!e.isMobile&&(0,v.jsx)(x.dy,{contentClassName:tr().drawer,isOpen:e.isOpen,onClose:e.onClose,children:(0,v.jsx)(to,{...e})}),e.isMobile&&(0,v.jsx)(x.jr,{className:tr().mobilePopup,isOpen:e.isOpen,onClose:e.onClose,children:(0,v.jsx)(to,{...e})})]}));function tc(){return(tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}ts.displayName="PromoStubModal";var td=function(e){return j.createElement("svg",tc({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=j.createElement("rect",{width:28,height:28,rx:14,fill:"#F80"})),c||(c=j.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"})))};function tu(){return(tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var t_=function(e){return j.createElement("svg",tu({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),d||(d=j.createElement("rect",{width:28,height:28,rx:14,fill:"#20A0E1"})),u||(u=j.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"})),_||(_=j.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"})),m||(m=j.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"})))};function tm(){return(tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}var th=function(e){return j.createElement("svg",tm({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),h||(h=j.createElement("rect",{width:28,height:28,rx:14,fill:"#4A76A8"})),p||(p=j.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"})))};let tp=e=>{let{dataUrl:t,pageUrl:a,title:n}=e,i=(0,A.xn)((0,e0.OB)("NEXT_PUBLIC_BASE_URL")||"",a,t),l=[{icon:(0,v.jsx)(th,{}),url:"https://vk.com/share.php?url=".concat(i,"&title=").concat(n),name:"vk"},{icon:(0,v.jsx)(td,{}),url:"https://connect.ok.ru/offer?url=".concat(i,"&title=").concat(n),name:"Ok"},{icon:(0,v.jsx)(t_,{}),url:"https://telegram.me/share/url?url=".concat(i,"&text=").concat(n),name:"telegram"}],r=[{name:"share",icon:o.share,title:"Поделиться",childList:l}];return r};var tv=a(6693),tg=a.n(tv);let tb=(0,e0.OB)("NEXT_PUBLIC_BASE_URL"),tx=(0,j.memo)(e=>{let{className:t,data:a,bank:n,isArchive:i,pageUrl:l,titlePromo:r,title:o,scrollBlockId:s,isMobile:c,isSmall:d,tagTheme:u="orange",moreAboutLinkText:_="",withNewMarkup:m,eventCategory:h="",hideShareLinks:p=!1,isTag:g=!0}=e,{id:b}=a,f=(0,j.useRef)({title:"",text:""}),[k,A]=(0,j.useState)(!1),w=(0,j.useMemo)(()=>tp({dataUrl:a.url,pageUrl:l,title:o}),[a.url,l,o]),N=(0,tn.Z)(),y=(0,j.useCallback)(e=>{switch(e){case"share":(0,W.lQ)({eventCategory:h,eventAction:m?"click_share":"show_pop_up_share",eventLabel:m?String(b):void 0});break;case"compare":f.current={title:"Скоро заработает",text:"Мы уже заканчиваем работу над разделом. Скоро вы сможете сравнивать предложения и выбирать выгодные условия по кредиту"},A(!0);break;case"like":f.current={title:"\xabИзбранное\xbb скоро заработает",text:"Мы уже доделываем этот раздел и скоро представим его вам. Вы сможете добавлять в него лучшие предложения"},A(!0)}},[h,b,m]),T=(0,j.useCallback)((e,t)=>{if("share"===e){var a;let e=null===(a=w.find(e=>"share"===e.name))||void 0===a?void 0:a.childList,n=null==e?void 0:e.find(e=>e.name===t);n&&((0,W.lQ)({eventCategory:h,eventAction:m?"click_share_"+n.name:"click_button_share",eventLabel:m?String(b):void 0,url:m?void 0:n.url}),window.open(n.url,"","toolbar=0,status=0,scrollbars=1,resizable=1,width=500,height=300"))}},[w,m,h,b]),S=(0,j.useCallback)(()=>{(0,Q.D)({eventCategory:l,eventAction:Q.i.popup,eventActionText:"warning"}),A(!1)},[l]),P=(0,j.useCallback)(()=>s?(0,x.ld)(s,{offset:N,position:"top"}):null,[s,N]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("section",{className:(0,z.Z)(tg().wrapper,{[tg().wrapperArchive]:i,[tg().wrapperSmall]:i||d,[tg().wrapperHideShareLinks]:p},t),children:[(0,v.jsxs)(x.W2,{className:(0,z.Z)(tg().company,d&&tg().companySmall),children:[(0,v.jsx)("div",{children:(0,v.jsxs)("h1",{className:tg().title,children:[o,(0,v.jsxs)("span",{className:(0,z.Z)(tg().subTitle,i&&tg().subTitleArchive),children:[!d&&(0,v.jsx)(x.$,{className:(0,z.Z)(tg().chip,tg().chipDesc),text:ta(r),color:u})," ",(0,v.jsxs)("span",{className:tg().subTitleText,children:["\xab",a.title,"\xbb"]})]})]})}),(null==n?void 0:n.logoMob)&&(0,v.jsx)(C(),{href:"".concat(tb,"/banki/").concat(n.url,"/").concat(l),className:(0,z.Z)(tg().logoContainer,(i||d)&&tg().logoContainerArchive),target:"_self",onClick:()=>{(null==n?void 0:n.name)&&(0,W.lQ)({eventCategory:"vklady",eventAction:m?"click_company_logo_"+(0,ej.b)(n.name):"click_link"+n.name,eventLabel:m?String(b):void 0,url:m?void 0:"".concat(tb,"/banki/").concat(n.url)})},children:(0,v.jsx)(J(),{className:tg().logo,src:n.logoMob,alt:"логотип банка",width:48,height:48})})]}),(0,v.jsxs)(x.W2,{className:(0,z.Z)(tg().actionsContainer,d&&tg().actionsContainerSmall),children:[(0,v.jsxs)("div",{className:tg().actions,children:[g&&(0,v.jsx)(x.$,{className:(0,z.Z)(tg().chip,(!d||c)&&tg().chipMob),text:ta(r),color:u}),!i&&!p&&(0,v.jsx)(tt,{isMobile:c||d,list:w,onClickItem:y,onClickChild:T})]}),!i&&!!(null==_?void 0:_.length)&&(0,v.jsx)(X.j,{offPadding:!0,text:_,iconColor:"light",mainPageUrl:l,className:tg().link,onClick:P})]})]}),(0,v.jsx)(ts,{isMobile:c,onClose:S,text:f.current.text,title:f.current.title,isOpen:k})]})});tx.displayName="Promo";var tf=a(7208),tC=a.n(tf);let tk=(0,j.memo)(e=>{let{className:t,url:a,text:n,title:i}=e;return(0,v.jsxs)(x.W2,{className:(0,z.Z)(tC().container,t),children:[(0,v.jsx)("h3",{className:tC().title,dangerouslySetInnerHTML:{__html:i}}),(0,v.jsx)("h4",{className:tC().text,dangerouslySetInnerHTML:{__html:n}}),(0,v.jsx)(x.zx,{as:"a",variant:"purple",href:"/".concat(a),onClick:()=>{(0,Q.D)({eventCategory:a,eventAction:Q.i.button,eventActionText:"Подобрать предложение",url:"".concat((0,e0.OB)("NEXT_PUBLIC_BASE_URL"),"/").concat(a)})},className:tC().button,children:"Подобрать предложения"})]})});tk.displayName="ArchivePromo";var tj={src:"/debit-cards/_next/static/media/adv-apps.5ef11a39.png",height:132,width:210,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVR4nAGlAFr/Aebv/wAAAQAX597kXwj47/sFHirK4OP9mhMPAaozKueBAe32/wADAwAc3NXgkf3q5fo2RzuE2Nz6ChcX/+vQ2ABKAejo8wH7/gP/BQgDOgYHBvrj6/UWCAj6HxYJC8vK1f9rAdfe+AAAAP8RDg8IMA////e47vZCE/rfVEAjJIHj+wfUAfz//wDz9wA8qKWpiywqI7wnLTS69e32JQgNBs32+P0LbB9RzwJmaFIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},tA={src:"/debit-cards/_next/static/media/app-qr.cccd9ede.svg",height:256,width:256,blurWidth:0,blurHeight:0},tw=a(5563),tN=a.n(tw);let ty=(0,j.memo)(e=>{let{bannerUrl:t,className:a,isSmall:n}=e,i=eS();return i?null:(0,v.jsx)(x.KF,{className:(0,z.Z)(a,tN().qrAd),QrImage:e=>{let{className:t}=e;return(0,v.jsx)(J(),{alt:"qr",unoptimized:!0,src:tA,className:t})},Link:e=>(0,v.jsx)(C(),{...e,href:t||e.href,target:"_self"}),BgImage:e=>{let{className:t}=e;return(0,v.jsx)(J(),{alt:"qr",unoptimized:!0,src:tj,className:t})},isSmall:n})});ty.displayName="QrAd";let tT=()=>{var e,t;let a="browserId",n=(0,eT.$1)();return{browserId:(null===(e=localStorage)||void 0===e?void 0:e.getItem(a))||(null==n?void 0:n[a])||null,sessionId:null===(t=sessionStorage)||void 0===t?void 0:t.getItem(a),customerId:(null==n?void 0:n["auth.gtm_customer_id"])||null}},tS=e=>{var t,a;let n=null==e?void 0:null===(t=e.online_application)||void 0===t?void 0:t.links;if(!n||!Array.isArray(n)||0===n.length)return null;let i=["akcii_special","akcii_special1","akcii_special2","akcii_special3"].reduce((e,t)=>(window.location.href.includes(t)&&(e=t),e),"akcii5");for(let e of n)if((null===(a=e.description)||void 0===a?void 0:a.includes(i))&&e.url)return e.url;return null},tP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};{let e=new URLSearchParams(window.location.search);t=Object.fromEntries(e.entries())}let a=tT(),n=(0,eT.$1)(),i=e.includes("?")?"&":"?",l=null==n?void 0:n._ym_uid,r=t.utm_campaign?"&utm_campaign="+t.utm_campaign+"&t1="+t.utm_campaign:"",o=t.utm_source?"&utm_source="+t.utm_source+"&t2="+t.utm_source:"",s=t.utm_content?"&utm_content="+t.utm_content+"&t3="+t.utm_content:"",c=t.utm_medium?"&utm_medium="+t.utm_medium+"&t4="+t.utm_medium:"",d=t.utm_term?"&utm_term="+t.utm_term+"&t5="+t.utm_term:"",u=a.sessionId?"&t7="+a.sessionId:"",_=a.browserId?"&t8="+a.browserId:"",m=a.customerId?"&t9="+a.customerId:"";return e+i+(l?"yandex_client_id="+l:"")+r+o+s+c+d+(l?"&t6="+l:"")+u+_+m},tI=function(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=tS(e);return n?tP(n,a):tP((null===(t=e.online_application)||void 0===t?void 0:t.url)||"".concat((0,e0.OB)("NEXT_PUBLIC_BASE_URL"),"/mikrozajmy/").concat(e.url),a)};var tL=a(1779),tM=a.n(tL);let tD=e=>{var t;let{pageType:a,pageUrl:n,data:i,isMobile:l,bank:r,contactlessCardTypes:o,cardTypes:s}=e,{query:c}=(0,k.useRouter)(),d=(0,j.useRef)(""),u=(0,tn.Z)();(0,j.useEffect)(()=>{d.current=tI(i,c)},[i,c]);let _=a===O.r.ARCHIVE,m=()=>{var e;return(0,v.jsx)(tx,{data:{id:i.id,url:i.url,title:i.title},bank:{logoMob:null==r?void 0:r.logo_mob,url:null==r?void 0:r.url,name:null!==(e=null==r?void 0:r.name)&&void 0!==e?e:i.bank_name},pageUrl:n,titlePromo:" Дебетовая карта",title:i.bank_name,moreAboutLinkText:"Подробнее о карте",scrollBlockId:em.dn,isSmall:!0,tagTheme:"yellow",isMobile:l,isArchive:_,className:tM().promo,withNewMarkup:!1})},h=(0,j.useMemo)(()=>{let e=[],t=[];return i.card_type.ids.forEach(t=>{let a=s.find(e=>e.id===t);a&&e.push(a.title)}),i.card_type.custom&&e.push(i.card_type.custom),i.card_type.ids.forEach(e=>{let a=o.find(t=>t.id===e);a&&t.push(a.title)}),e.join(" / ")},[i,o,s]),p=(0,j.useMemo)(()=>{var e,t,n;let l=[{label:"Плата за выпуск",value:i.service_cost.release_cost},{label:"Тип карты",value:h},{label:"Обслуживание",value:i.service_cost.second_year_cost||i.service_cost.first_year_cost},{label:"Лимит на снятие наличных",value:(null===(e=i.cash_withdrawal_limit)||void 0===e?void 0:e.text)||(null===(t=i.cash_withdrawal_limit)||void 0===t?void 0:t.comment)||""},{label:"Процент на остаток",value:i.balance_interest_number?"".concat((0,x.$1)(+i.balance_interest_number),"%"):"Нет"},{label:"Кешбэк",value:i.cash_back.has&&((null===(n=i.cash_back.action)||void 0===n?void 0:n.toLocaleLowerCase())||i.cash_back.custom)||"Нет"},{label:"3D Secure",value:i["3d_secure"]?"Есть":"Нет"}],r=[l[0],l[1]],o=[l[2],l[0],l[4],l[5],l[1]];return a!==O.r.ARCHIVE?o:r},[h,i,a]),g=(e,t)=>{(0,Q.D)({eventCategory:n,eventAction:Q.i.button,eventActionText:e}),(0,x.ld)(t,{offset:u,position:"top"})};return(0,v.jsxs)("div",{className:(0,z.Z)(tM().container,{[tM().containerFull]:!_&&!1,[tM().containerArchive]:_}),children:[(0,v.jsxs)("div",{className:tM().left,children:[!_&&m(),_&&(0,v.jsx)(tk,{title:"Карта в архиве",url:n,text:"Ее уже нельзя открыть. Но мы можем подобрать для вас другие предложения по дебетовым картам от разных банков"}),(0,v.jsx)(ty,{isSmall:!0,className:tM().qrDesc})]}),(0,v.jsxs)("div",{className:tM().right,children:[_&&m(),(0,v.jsx)(e$,{title:"Дебетовая карта ".concat(null!==(t=null==r?void 0:r.name)&&void 0!==t?t:i.bank_name),captionTitle:_?"Карта в архиве":"",titleImage:{url:"".concat(E._n,"/img/d_cards/220/").concat(i.image),isSquare:!0},pageUrl:n,tag:i.online_application.commercial_desc,tagTheme:"yellow",footerActions:!_&&(0,v.jsxs)(v.Fragment,{children:[a===O.r.LEAD&&!!i.online_application.commercial&&(0,v.jsx)(x.zx,{as:"a",onClick:e=>{var t;(0,Q.D)({eventCategory:n,eventAction:Q.i.link,eventActionText:null!==(t=e.currentTarget.textContent)&&void 0!==t?t:""})},href:d.current,target:"_blank",className:tM().button,variant:"primary",children:"Оформить на сайте банка"}),(0,v.jsx)(x.zx,{onClick:e=>{var t;return g(null!==(t=e.currentTarget.textContent)&&void 0!==t?t:"",em.VT)},className:tM().button,variant:"secondary",children:"Где оформить карту"})]}),isArchive:_,valuesList:p}),(0,v.jsx)(ty,{isSmall:!0,className:tM().qrMob})]})]})};var tE=a(8586),tB=a(9277);let tH=e=>{let{productList:t,anotherList:a,count:n}=e;return[...t.filter(e=>3===e.online_application.type),...a.filter(e=>3!==e.online_application.type&&1===e.online_application.unplatform_banks),...a.filter(e=>3!==e.online_application.type&&1!==e.online_application.unplatform_banks&&1===e.online_application.commercial),...a.filter(e=>3!==e.online_application.type&&1!==e.online_application.unplatform_banks&&1!==e.online_application.commercial)].slice(0,n)};var tR=a(248),tO=a.n(tR),tZ=a(8712);let tW=(0,j.memo)(e=>{var t;let{pageUrl:a,bank:n,banks:i,currentCardId:l,debitCards:r,debitCardsFinuslugi:o,cardTypes:s,contactlessCardTypes:c,className:d}=e,{town:u}=(0,H.k)(),[_,m]=(0,j.useState)(null),h=(0,j.useCallback)(()=>{m(null)},[]),p=(0,j.useCallback)(e=>{(0,Q.D)({eventCategory:a,eventAction:Q.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[a]),g=(0,j.useCallback)(e=>{m(e),e&&(0,Q.D)({eventCategory:a,eventAction:Q.i.popup,eventActionText:e.title,eventLabel:e.id})},[a]),b=(0,j.useMemo)(()=>{let e=r?r.filter(e=>e.id!==l):[];return tH({productList:e,anotherList:e,count:3})},[r,l]),x=(0,j.useMemo)(()=>{let e=o||[];return tH({productList:e,anotherList:e,count:5-b.length})},[b.length,o]),f=(0,j.useMemo)(()=>({bankList:b.map(e=>(0,tZ.Q)({banks:[n],card:e})),finuslugiList:x.map(e=>(0,tZ.Q)({banks:i,card:e}))}),[n,i,b,x]),C=(0,j.useMemo)(()=>{if(!_)return;let e=[b,x];return e.reduce((e,t)=>[...e,...t],[]).find(e=>e.id===_.id)},[b,_,x]),k="".concat(E._n,"/banki/").concat(n.url,"/debetovye_karty").concat((null==u?void 0:u.url.length)?"/reg_"+u.url:"");return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("section",{id:em.Tm,className:(0,z.Z)(tO().container,d),children:[(0,v.jsx)("h3",{className:tO().title,children:"Другие предложения"}),(0,v.jsxs)(L.t,{children:[f.bankList.length?(0,v.jsxs)("section",{className:tO().offersListContainer,children:[(0,v.jsxs)("p",{className:tO().listTitle,children:["Дебетовые карты от ",n.name]}),f.bankList.map(e=>(0,v.jsx)(j.Fragment,{children:(0,v.jsx)(tE.x,{onClickDetail:g,className:tO().listItem,data:e,onClick:p,eventCategory:a,text:"Подать заявку"},e.url)},e.id)),(0,v.jsx)(X.j,{offPadding:!0,text:"Bсе предложения от банка",href:k,target:"_self",iconColor:"light",mainPageUrl:a})]}):null,f.finuslugiList.length?(0,v.jsxs)("section",{className:tO().offersListContainer,children:[(0,v.jsx)("p",{className:tO().listTitle,children:"Предложения на Финуслугах"}),f.finuslugiList.map(e=>(0,v.jsx)(j.Fragment,{children:(0,v.jsx)(tE.x,{onClickDetail:g,className:tO().listItem,data:e,onClick:p,eventCategory:a,text:"Подать заявку"},e.url)},e.id)),(0,v.jsx)(X.j,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"".concat(E._n,"/debetovye_karty"),target:"_self",iconColor:"light",mainPageUrl:a})]}):null]})]}),(0,v.jsx)(tB.G,{data:C,isOpen:!!C,onClose:h,cardTypes:s,contactlessCardTypes:c,bankName:null==_?void 0:_.bankName,logo:null==_?void 0:_.logo,url:null!==(t=null==_?void 0:_.url)&&void 0!==t?t:"",mainPageUrl:a})]})});tW.displayName="DebitCardsList";var tV=a(9906),tF=a.n(tV),tz=a(8186),tU=a(8083);let tq=()=>(0,tU.t)("/money_data/MfoShort.json"),tQ=e=>{let{bankUrl:t,pageType:a}=e,n=(0,j.useRef)(!1),i=(0,j.useRef)(t).current,[l,r]=(0,j.useState)({debitCards:[],debitCardsFinuslugi:[],mfo:[]});return(0,j.useEffect)(()=>{if(n.current||!i)return;n.current=!0;let e=async()=>{var e,t,n;let l=[],o=[],s=[],[c,d,u]=await Promise.allSettled([(0,tz.Mk)(i),(0,tz.T_)(5),a===O.r.ARCHIVE?tq():null]);"fulfilled"===c.status&&(null===(e=c.value)||void 0===e?void 0:e.data)&&(l=c.value.data.debitCards),"fulfilled"===d.status&&(null===(t=d.value)||void 0===t?void 0:t.data)&&(o=d.value.data.debitCards),(null==u?void 0:u.status)==="fulfilled"&&(null===(n=u.value)||void 0===n?void 0:n.data)&&(s=u.value.data.companies),r({debitCards:l,debitCardsFinuslugi:o,mfo:s})};return e(),()=>{n.current=!0}},[]),l},tK=e=>(0,v.jsx)(C(),{...e}),tG=e=>{var t;let{data:a,pageType:n,cardTypes:i,questions:l,advicePosts:o,contactlessCardTypes:s,stores:c,regions:d,searchTags:u,refererTag:_,banks:m,supportBlockSrc:h}=e,{asPath:p}=(0,k.useRouter)(),{toggles:g}=(0,R.ND)(),{debitCards:f,debitCardsFinuslugi:C,mfo:z}=tQ({bankUrl:a.bank_url,pageType:n}),U=(0,x._m)("l"),q=F(D),Q=function(e){let{bannersTitle:t,queryParams:a,stores:n}=e,i=(0,x._m)("l"),l=V(),r=(0,j.useMemo)(()=>{let e=l?[...a,"referer=".concat(l)]:a;return e.length?"?".concat(e.join("&")):""},[l,a]),o=(0,j.useMemo)(()=>t.reduce((e,t)=>{let a=null==n?void 0:n.find(e=>e.title===t);if(a){let n=i?a.url_desktop:a.url_mobile;e[t]=n?n+r:""}return e},{}),[t,n,i,r]);return o}({bannersTitle:[r.DEBIT_CARD_DETAIL],queryParams:q,stores:c}),{region:K,town:G}=(0,H.k)(),Y=null==m?void 0:m.find(e=>+e.id===a.bank_id);if(!Y)throw new w.d('The "'.concat(a.bank_name,'" bank not found by ID #').concat(a.bank_id));let J=l.length?null==l?void 0:l.map(e=>g.FEATURE_TOGGLE_NEW_FAQ_BLOCK?{title:e.title,content:(0,v.jsx)(S.r,{data:[{type:"html",data:{html:e.text.map(e=>e.data.html).join("")}}]})}:{title:e.title,text:e.text.map(e=>e.data.html).join("")}):[],X="Дебетовая карта ".concat(a.title," от ").concat(Y.name_r," заказать онлайн — условия обслуживания, остаток на проценты"),$="".concat(a.short_description," от ").concat(Y.name_r,": условия, требования, лимиты и комиссии, бонусы."),ee=(()=>{let e=(null==G?void 0:G.name_p)||(null==K?void 0:K.name_p)?" в ".concat((null==G?void 0:G.name_p)||(null==K?void 0:K.name_p)):"",t="".concat((null==K?void 0:K.url)?"/reg_".concat(null==K?void 0:K.url):"").concat((null==G?void 0:G.url)?"/".concat(null==G?void 0:G.url):""),n=[{label:"Дебетовые карты".concat(e),href:"/".concat(eg.kA).concat(t)}];return _&&n.push({label:"".concat(_.name).concat(e),href:"/".concat(eg.kA,"/teg_").concat(_.url).concat(t)}),n.push({label:"".concat(a.bank_name," Дебетовая карта ").concat(a.title)}),n})(),et=(0,j.useMemo)(()=>{var e,t;return JSON.stringify({"@context":"https://schema.org","@type":"BankOrCreditUnion",name:a.bank_name,url:(0,A.xn)(E._n,"banki",a.bank_url),image:a.image?(0,A.xn)(E._n,"img/d_card/220",a.image):void 0,address:{"@type":"PostalAddress",addressLocality:"Россия"},telephone:(null===(t=a.online_application)||void 0===t?void 0:null===(e=t.phones)||void 0===e?void 0:e[0])||void 0})},[a.bank_name,a.bank_url,a.image,null===(t=a.online_application)||void 0===t?void 0:t.phones]),ea=(0,j.useMemo)(()=>{var e;let{release_cost:t}=a.service_cost;return JSON.stringify({"@context":"https://schema.org","@type":"Product",name:"Дебетовая карта \xab".concat(a.title,"\xbb"),description:$,image:"".concat(E._n,"/img/d_cards/220/").concat(a.image),brand:{"@type":"Brand",name:"".concat(a.bank_name)},offers:{"@type":"Offer",price:"Бесплатно"===t?"0":t.replace(/\D/g,""),priceCurrency:(0,Z.z)(a.currency_id).code,url:"".concat(E._n,"/debetovye_karty/").concat(a.url),availability:"https://schema.org/InStock",eligibleRegion:{"@type":"Place",name:"Россия"}},additionalProperty:[{"@type":"PropertyValue",name:"Кэшбэк",value:(null===(e=a.cash_back.action)||void 0===e?void 0:e.toLocaleLowerCase())||a.cash_back.custom||""},{"@type":"PropertyValue",name:"Обслуживание",value:a.service_cost.second_year_cost||a.service_cost.first_year_cost}]})},[a.title,$,a.image,a.bank_name,a.service_cost,a.currency_id,a.url,a.cash_back]);return(0,v.jsxs)("main",{className:tF().page,children:[(0,v.jsx)(I.N,{productId:String(a.id),title:X,description:$,path:p}),(0,v.jsx)("div",{className:tF().navigationWrapper,children:(0,v.jsx)(L.t,{children:(0,v.jsx)(T.Z,{items:ee,isMobile:!U})})}),(0,v.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:et}}),(0,v.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ea}}),(0,v.jsx)(L.t,{children:(0,v.jsx)(tD,{pageType:n,pageUrl:eg.kA,data:a,bank:Y,cardTypes:i,contactlessCardTypes:s,isMobile:!U})}),(0,v.jsx)(L.t,{children:(0,v.jsx)(ex,{data:a,pageUrl:eg.kA,cardTypes:i,contactlessCardTypes:s,bank:Y})}),n===O.r.ARCHIVE&&(0,v.jsx)("section",{className:tF().pickerSection,children:(0,v.jsx)(L.t,{children:(0,v.jsx)(x.HE,{defaultIndex:2,searchTags:u,carImg:y.src,bikeImg:N.src,banks:m||[],isMobile:!U,regions:d,mfo:z,cardTypes:i,mainProducts:B})})}),n!==O.r.ARCHIVE&&(0,v.jsx)(eL,{pageUrl:eg.kA,bannerUrl:Q.debetovye_karty_detail,isMobile:!U,pageType:n,url:a.online_application.url}),n!==O.r.ARCHIVE&&Y&&(0,v.jsx)(tW,{pageUrl:eg.kA,bank:Y,banks:m||[],currentCardId:a.id,debitCards:f,debitCardsFinuslugi:C,cardTypes:i,contactlessCardTypes:s}),o&&(0,v.jsx)(P.S,{posts:o.posts,categories:o.ctgs,pageUrl:eg.kA}),(0,v.jsxs)("div",{className:tF().supportSection,children:[(0,v.jsx)(M.Z,{supportBlockSrc:h}),g.FEATURE_TOGGLE_NEW_FAQ_BLOCK?(0,v.jsx)(b.C,{Link:tK,dataLayerPush:W.lQ,questions:J,eventCategory:"cards_support_block"}):(0,v.jsx)(x.Bp,{faqBlockTitle:"",Link:tK,dataLayerPush:W.lQ,questions:J,eventCategory:"cards_support_block"})]})]})};var tY=a(5554),tJ=!0;function tX(e){var t,a;let n=(0,tY.f)(!1,{region:null,town:null});return(0,v.jsx)(g.Z,{aggregatorIds:e.aggregatorIds,headerSrc:e.header,headerDto:e.headerData,footerDto:e.footer,children:(0,v.jsx)(tG,{stores:null===(t=e.config)||void 0===t?void 0:t.stores,regions:n.regions,searchTags:null===(a=e.searchSettings)||void 0===a?void 0:a.tags,...e})})}},354:function(e){e.exports={title:"AboutProduct_title__yo_wJ",container:"AboutProduct_container__wyYAk",seotext:"AboutProduct_seotext__5xjfd",tabsList:"AboutProduct_tabsList__UoHs8",accordionGroup:"AboutProduct_accordionGroup__rYdWK",accordion:"AboutProduct_accordion__w57x6",listTitle:"AboutProduct_listTitle__fvv9H",list:"AboutProduct_list__oM8aT",hiddenList:"AboutProduct_hiddenList___vhbT",listRow:"AboutProduct_listRow__7kL_w",dateTime:"AboutProduct_dateTime__40Gnm"}},3956:function(e){e.exports={bankInformation:"BankShortInfo_bankInformation__8RRep",header:"BankShortInfo_header__vrjG3",logoWrapper:"BankShortInfo_logoWrapper__3PHge",icon:"BankShortInfo_icon__o_zuW",bankTitle:"BankShortInfo_bankTitle__kk2Uq",bankText:"BankShortInfo_bankText__6H5iD",bankLink:"BankShortInfo_bankLink__3lYry"}},6799:function(e){e.exports={title:"MobileContentModal_title__AwLsx",mobilePopup:"MobileContentModal_mobilePopup__XToel"}},2727:function(e){e.exports={tabsList:"MobileTabs_tabsList__rcFSU",tabItem:"MobileTabs_tabItem__tgnPt"}},1738:function(e){e.exports={title:"ApplyStepsSlider_title__shr3F",container:"ApplyStepsSlider_container__hErN9",sliderContainer:"ApplyStepsSlider_sliderContainer__kPWIT",sliderWrapper:"ApplyStepsSlider_sliderWrapper__WNiMM",card:"ApplyStepsSlider_card__fRiNt",head:"ApplyStepsSlider_head__wzJom",titleHead:"ApplyStepsSlider_titleHead__6HVQy",text:"ApplyStepsSlider_text__MT8rY",cardImgWrapper:"ApplyStepsSlider_cardImgWrapper__ML05d",cardImg:"ApplyStepsSlider_cardImg__krevN",cardButton:"ApplyStepsSlider_cardButton__h1q0k"}},8381:function(e){e.exports={wrapper:"CollapseContainer_wrapper__STKqz",container:"CollapseContainer_container__Em2u9",containerHidden:"CollapseContainer_containerHidden__AFhLa",disableAnimation:"CollapseContainer_disableAnimation__bHHyL",icon:"CollapseContainer_icon__2EAe0",expanded:"CollapseContainer_expanded__qF596",button:"CollapseContainer_button__acaCR"}},2661:function(e){e.exports={container:"ComputedBlock_container__AuR1c",containerChart:"ComputedBlock_containerChart__QZSst",info:"ComputedBlock_info__7Kj1H",chart:"ComputedBlock_chart__B_weV",chartVisible:"ComputedBlock_chartVisible__5nDWG",tag:"ComputedBlock_tag__0L2aP",valueContainer:"ComputedBlock_valueContainer__NiXTF",value:"ComputedBlock_value__019M2",disclaimer:"ComputedBlock_disclaimer__qA6Nw",agreement:"ComputedBlock_agreement__6hIO1",footerActions:"ComputedBlock_footerActions__Zg0Gb"}},7940:function(e){e.exports={wrapper:"ComputeChart_wrapper__dP_7K",chart:"ComputeChart_chart__HVbHH",chartValues:"ComputeChart_chartValues__7_ql4",chartResult:"ComputeChart_chartResult__r98zD",legend:"ComputeChart_legend__zejNV",legendItem:"ComputeChart_legendItem__OMTUC",legendColor:"ComputeChart_legendColor__NegVS",legendTitle:"ComputeChart_legendTitle__ugVDm",legendValue:"ComputeChart_legendValue__4hJUq"}},4507:function(e){e.exports={title:"ComputeHead_title__DoVut",head:"ComputeHead_head__Agy2p",result:"ComputeHead_result__54_0V",resultText:"ComputeHead_resultText__OhAgX",resultTextFloat:"ComputeHead_resultTextFloat__PLSj_",resultButton:"ComputeHead_resultButton__vICvv",resultIcon:"ComputeHead_resultIcon__PIy8R",chartButton:"ComputeHead_chartButton__J18cG",computedTitle:"ComputeHead_computedTitle__LQ4tD",titleWrapper:"ComputeHead_titleWrapper__aL39n",captionTitle:"ComputeHead_captionTitle__RQx8v",img:"ComputeHead_img__EtvgK"}},6066:function(e){e.exports={value:"ComputeRow_value__20Ysi",valueDash:"ComputeRow_valueDash__b37fh",detail:"ComputeRow_detail__2lMgT"}},6693: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"}},6205:function(e){e.exports={action:"Action_action__NPK0s",icon:"Action_icon__Luo_o"}},6416: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"}},7208:function(e){e.exports={title:"ArchivePromo_title__TJIJ7",container:"ArchivePromo_container__5L_r6",text:"ArchivePromo_text__nMo9K",button:"ArchivePromo_button__f_l5V"}},9880: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"}},5563:function(e){e.exports={qrAd:"QrAd_qrAd__PvxtR"}},8634: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"}},9906:function(e){e.exports={page:"DebitCardDetail_page__mBurF",supportSection:"DebitCardDetail_supportSection__i36F4",pickerSection:"DebitCardDetail_pickerSection__bjn4x"}},5991:function(e){e.exports={container:"DebitCardApplySteps_container__W2pzq"}},1779:function(e){e.exports={container:"DebitCardInfo_container__f7JuG",containerFull:"DebitCardInfo_containerFull__0KrJu",containerArchive:"DebitCardInfo_containerArchive__e1qVL",promo:"DebitCardInfo_promo__06nno",left:"DebitCardInfo_left__mK1kd",right:"DebitCardInfo_right__RJp1l",qrDesc:"DebitCardInfo_qrDesc__FJSeE",qrMob:"DebitCardInfo_qrMob__JqsNK",button:"DebitCardInfo_button__f5qI_",buttonLink:"DebitCardInfo_buttonLink__2VGh4"}},248:function(e){e.exports={title:"DebitCardsList_title__ArhR9",offersListContainer:"DebitCardsList_offersListContainer__kVwkT",listTitle:"DebitCardsList_listTitle__P2vkS",container:"DebitCardsList_container__lTEn7",listItem:"DebitCardsList_listItem__IYSqx"}}},function(e){e.O(0,[629,616,527,774,888,179],function(){return e(e.s=4966)}),_N_E=e.O()}]);