(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[101],{60380:function(e,t,r){Promise.resolve().then(r.bind(r,82778)),Promise.resolve().then(r.bind(r,39657))},69346:function(e,t,r){"use strict";function s(e){return"default"===e.toLowerCase()}r.d(t,{de:function(){return a}});let a={isDefaultTag:function(e){return s(e.url)||"default"===e.tagName.toLowerCase()},isDefaultTagUrl:s}},39657:function(e,t,r){"use strict";r.d(t,{DebitCards:function(){return eE}});var s=r(57437),a=r(2265),n=r(35563),i=r(75461),l=r(46295),o=r(17730),c=r(29501),d=r(68549),u=r(54365),p=r(69346);let m=()=>{let{watch:e}=(0,c.Gc)(),t=e("town"),r=e("region"),s=(null==t?void 0:t.name_p)||(null==r?void 0:r.name_p);if(s)return["в",s]};var _=r(13881),g=r.n(_);let b=e=>{let{className:t}=e,{handleToggleModal:r}=(0,d.u)(),{NEXT_PUBLIC_ASSETS_BASE_URL:a}=(0,l.S)(),{watch:n}=(0,c.Gc)(),o=n("result.subtitle"),_=n("tag"),b=m(),x=_&&!p.de.isDefaultTag(_)?_.internalName:void 0;return(0,s.jsxs)("div",{className:g().wrapper,children:[(0,s.jsxs)("div",{className:(0,u.Z)(g().titleWrapper),children:[(0,s.jsxs)("h1",{className:(0,u.Z)(g().title,t),children:[null!=x?x:"Дебетовые карты"," ",!!b&&(0,s.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[b[0],"\xa0",(0,s.jsx)(i.rU,{className:g().link,onClick:e=>{e.preventDefault(),r(!0)},children:b[1]})]})]}),(0,s.jsx)("div",{className:g().description,children:o})]}),(0,s.jsx)("div",{className:g().imageWrapper,children:(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{media:"(max-width: 767px)",srcSet:"".concat(a,"/mp-assets/mp-sc-debit-cards-ui/mobile-banner.png 1x, ").concat(a,"/mp-assets/mp-sc-debit-cards-ui/mobile-banner@2x.png 2x")}),(0,s.jsx)("img",{className:g().image,alt:"",src:"".concat(a,"/mp-assets/mp-sc-debit-cards-ui/banner.png"),srcSet:"".concat(a,"/mp-assets/mp-sc-debit-cards-ui/banner.png 1x, ").concat(a,"/mp-assets/mp-sc-debit-cards-ui/banner@2x.png 2x")})]})})]})};var x=r(99376),h=r(52460),v=r(83583),f=r(27669);let C=()=>{let{watch:e}=(0,c.Gc)(),t=(0,x.usePathname)(),{NEXT_PUBLIC_BASE_URL:r}=(0,l.S)(),a=e("tag"),n=e("region"),o=e("town"),d=m(),u=d?" "+d.join(" "):"",_="".concat((null==n?void 0:n.url)?"/reg_".concat(null==n?void 0:n.url):"").concat((null==o?void 0:o.url)?"/".concat(null==o?void 0:o.url):""),g=a&&"DEFAULT"!==a.tagName?null==a?void 0:a.internalName:"Дебетовые карты",b=(()=>{var e;let t=!!a&&!p.de.isDefaultTag(a),r=[{label:"Главная",href:"/"},{label:"Дебетовые карты".concat(u),href:t?"/".concat(h.y.DEBIT_CARDS).concat(_):void 0}];return t&&r.push({label:"".concat(null!==(e=null==a?void 0:a.tagName)&&void 0!==e?e:g).concat(u),href:void 0}),r})(),C=(()=>{let e=a&&"DEFAULT"!==a.tagName?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(g).concat(u,'","item":"').concat(r).concat(t,'"}'):"",s='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(r,'"}'),n='{"@type":"ListItem","position":2,"name":"\uD83D\uDCB3 Дебетовые карты'.concat(u,'","item":"').concat(r,"/").concat(h.y.DEBIT_CARDS).concat(_,'"}');return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(s),",").concat(n).concat(e,"]}")})();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Oo,{onClick:e=>{var t;let r=(null==e?void 0:null===(t=e.currentTarget)||void 0===t?void 0:t.textContent)?(0,f.b)(e.currentTarget.textContent):"glavnaya";(0,v.lQ)({event:"data-event",eventAction:"click_link_".concat(r),eventCategory:h.y.DEBIT_CARDS})},items:b,style:{padding:"16px 0"}}),(0,s.jsx)("script",{id:"debits-json-ld",type:"application/ld+json",dangerouslySetInnerHTML:{__html:C}})]})};var j=r(59226),w=r(58580),D=r(27351),y=r(61058),k=r(72794),N=r(84464),F=r.n(N);let L=e=>{let{className:t,data:r}=e;return r?(0,s.jsx)("div",{className:(0,u.Z)(F().contentBlocks,t),role:"blocks",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,k.$)(r)},role:"html"})}):null};var S=r(2607);let W=(e,t)=>t?e?"reg_"+t.url+(t.towns.length>1||[55,62].includes(t.region_id)?"/"+e.url:""):"reg_"+t.url:"",T=(e,t,r,s,a,n)=>{let i=e;return t&&(i=(i=(i=(i=i.replace(/{(bank|mfo)}/gim,t.name)).replace(/{(bank|mfo)_r}/gim,t.name_r)).replace(/{(bank|mfo)_p}/gim,t.name_p)).replace(/{(bank|mfo)_link}/gim,t.url)),r&&(i=i.replace(/{tag_name}/gim,r.tagName.toLowerCase())),r&&!s&&(i=(i=i.replace(/в {place_p}/gim,"во всей России")).replace(/{place}/gim,"России")),i=(i=(i=i.replace(/{banks_count}/g,(null==n?void 0:n.toString())||"0")).replace(/{banks}/g,(null==n?void 0:n.toString())||"0")).replace(/{deposits_count}/g,"0")},B=e=>{let{text:t="",banksCount:r,currencies:s,region:a,town:n,company:i,tag:l}=e,o=T(t,i,l,a,s,r),c=new Date().getFullYear();if(o=o.replace(/{year}/g,String(c)),!a)return o;let d=n?n.name:a.name,u=n?n.name_r:a.name_r,p=n?n.name_p:a.name_p,m=n?n.name:a.name,_=n?n.name_r:a.name_r,g=n?n.name_p:a.name_p,b=a.name,x=a.name_r,h=a.name_p;return(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.replace(/{place}/g,d)).replace(/{place_r}/g,u)).replace(/{place_p}/g,p)).replace(/{town}/g,m)).replace(/{town_r}/g,_)).replace(/{town_p}/g,g)).replace(/{region}/g,b)).replace(/{region_r}/g,x)).replace(/{region_p}/g,h)).replace(/{town_dub}/g,b)).replace(/{town_dub_r}/g,x)).replace(/{town_dub_p}/g,h)).replace(/{place_link}/g,W(n,a))},R=e=>{let{content:t,region:r,town:s,company:a,tag:n,currencies:i,banksCount:l}=e;return t&&t.content&&(t.content=B({text:t.content,region:r,town:s,company:a,tag:n,currencies:i,banksCount:l})),t};var I=r(7843);let E=e=>{var t;let{tag:r,region:s,town:a,path:n}=e,i="false"===(0,l.S)().FEATURE_TOGGLE_NEW_BACKEND_DEBIT_CARDS?"/new":"",o="string"==typeof n?n:"".concat(i,"/debetovye_karty"),c=null==r?void 0:null===(t=r.url)||void 0===t?void 0:t.toLowerCase(),d=I.L.toLowerCase();return o+=r&&c!==d?"/teg_"+c:"",s&&(!r||c!==d)&&(o+="/reg_"+s.url),a&&s&&76!==s.id&&77!==s.id&&85!==s.id&&(!r||r.url!==d)&&(o+="/"+a.url),o},z=e=>{let{tag:t,region:r,town:s,currencies:a,additional:n,banks:i,handlers:l,tags:o}=e,c=[];c.push(...A({tag:t,region:r,town:s,currencies:a,banksCount:(0,y.o)(i,10).length}));let d=O({tag:t,regionLinks:n.regionLinks,setRegion:(null==l?void 0:l.setRegion)||(()=>{}),itemsStr:"Дебетовые карты"});d&&c.push(d);let u=G({bankLinks:n.bankLinks});u&&c.push(u);let p=M({tags:o,activeTag:t,region:r,town:s});return p&&c.push(p),c},A=e=>{let{tag:t,region:r,town:a,currencies:n,banksCount:i}=e;if(!((null==t?void 0:t.textList)&&Array.isArray(t.textList)))return[];let l=(null==r?void 0:r.region_id)||(null==a?void 0:a.id),o=[];l&&(o=t.textList.filter(e=>{var t,s;return null!==(s=null===(t=e.regions)||void 0===t?void 0:t.some(e=>e.regionId===(null==r?void 0:r.region_id)&&(!e.cities||!(e.cities.length>0)||null==a||!a.id||e.cities.includes(a.id))))&&void 0!==s&&s}));let c=l?t.textList.filter(e=>!0===e.allRegions):[],d=t.textList.filter(e=>{var t;return!(null===(t=e.regions)||void 0===t?void 0:t.length)&&!e.allRegions}),u=[];return o.length?u=o:c.length?u=c:d.length&&(u=d),u.map(e=>{var l,o;return{question:B({text:null!==(o=e.title)&&void 0!==o?o:"",region:r,town:a}),answer:(0,s.jsx)(L,{data:(null===(l=R({content:e,region:r,town:a,tag:t,currencies:n,banksCount:i}))||void 0===l?void 0:l.content)||""})}})},O=e=>{let{tag:t,regionLinks:r,setRegion:a,itemsStr:n}=e;if((null==t?void 0:t.url)==="premium")return;let i=r.map(e=>{let{id:t,name:r,url:s}=e;return{id:t,name:r,url:s,onClick:()=>{null==a||a({id:t,name:r,url:s})},disableLink:!1}}),l=(0,s.jsx)(S.t,{data:i});return{question:"".concat(n," в других регионах"),answer:l}},G=e=>{let{bankLinks:t}=e;if(!t||0===t.length)return;let r=t.map(e=>{let{id:t,name:r,url:s}=e;return{id:t,name:r,url:s}});return{question:"Дебетовые карты в банках",answer:(0,s.jsx)(S.t,{data:r})}},M=e=>{let{tags:t,activeTag:r,region:a,town:n}=e,i=t.filter(e=>{let{url:t}=e;return!!t&&!p.de.isDefaultTagUrl(t)&&t.toLowerCase()!==(null==r?void 0:r.url.toLowerCase())}).map(e=>({id:e.id,name:e.internalName,url:E({tag:e,region:a,town:n})}));if(0!==i.length)return{question:"Виды дебетовых карт",answer:(0,s.jsx)(S.t,{data:i})}},J=e=>(0,s.jsx)(i.rU,{...e}),P=e=>{let{banks:t,additional:r,tags:n}=e,{watch:i}=(0,c.Gc)(),o=i("tag"),d=i("region"),u=i("town"),p=i("options.currencies"),_=m(),{NEXT_PUBLIC_BASE_URL:g}=(0,l.S)(),b=(0,D.W)({tagName:null==o?void 0:o.faqTitle,inRegion:(null==_?void 0:_.join(" "))||""}),x=(0,a.useMemo)(()=>r.regionDetails?z({additional:r,tag:o,region:d,town:u,currencies:p,banks:t,tags:n}):[],[r,t,o,d,u,p,n]);return(0,s.jsx)(j.C,{tagTitle:"h2",sectionTitle:b,Link:J,dataLayerPush:v.lQ,questions:x,eventCategory:"cards_support_block",href:"".concat(g,"/help/").concat(w.a.DEBIT_CARDS)})};var Z=r(21402);let q=()=>{let{watch:e,setValue:t}=(0,c.Gc)(),r=(0,a.useRef)(null),s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let a=e((e,a)=>{let{name:n}=a;("sort"===n||(null==n?void 0:n.includes("filter"))||"sortDirection"===n)&&(r.current&&clearTimeout(r.current),s.current&&s.current.abort(),s.current=new AbortController,r.current=setTimeout(async()=>{t("result.nextFrom",null),t("isLoading",!0),t("error",!1);try{var r;let a=await (0,Z.r)({from:0,filters:e.filter,sort:e.sort,sortDirection:e.sortDirection},null===(r=s.current)||void 0===r?void 0:r.signal);(null==a?void 0:a.data)?t("result",a.data):a.error.includes("signal is aborted")||t("error",!0)}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;console.error("Ошибка при загрузке дебетовых карт:",e)}finally{t("isLoading",!1)}},500))});return()=>{a.unsubscribe(),r.current&&clearTimeout(r.current),s.current&&s.current.abort()}},[e,t]),null};var K=r(80684),U=r(38809),Y=r(87017),H=r(74530),V=r(20626),Q=r.n(V);let X=()=>{let{control:e,watch:t}=(0,c.Gc)(),r=t("options.banks"),a=t("options.advantages"),n=t("options.sort"),i=t("options.currencies"),l=t("options.cardTypes"),o=t("options.bonuses"),d=t("options.customerCategory"),u=t("options.goodsCategory");return(0,s.jsxs)("div",{className:Q().wrapper,children:[(0,s.jsxs)("div",{className:Q().selectorsGrid,children:[(0,s.jsx)("div",{className:Q().selectorWrapper,children:(0,s.jsx)(U.PX,{control:e,name:"filter.bankIds",multiple:!0,search:!0,className:Q().select,size:"small",label:"Банк",options:r,saveOnlyValue:!0,onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))}})}),(0,s.jsx)("div",{className:Q().selectorWrapper,children:(0,s.jsx)(U.Ar,{multiple:!0,control:e,name:"filter.bonus",className:Q().select,size:"s",clearable:!0,label:"Бонусы",onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))},options:o})}),(0,s.jsx)("div",{className:Q().selectorWrapper,children:(0,s.jsx)(U.Ar,{control:e,name:"filter.currency",className:Q().select,size:"s",clearable:!0,label:"Валюта карты",onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))},options:i})}),!!(null==d?void 0:d.length)&&(0,s.jsx)("div",{className:Q().selectorWrapper,children:(0,s.jsx)(U.Ar,{multiple:!0,control:e,name:"filter.customerCategories",className:Q().select,size:"s",clearable:!0,label:"Категория клиентов",onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))},options:d})}),(0,s.jsx)("div",{className:Q().selectorWrapper,children:(0,s.jsx)(U.Ar,{multiple:!0,control:e,name:"filter.cardType",className:Q().select,size:"s",clearable:!0,label:"Платежная система",onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))},options:l})}),!!(null==u?void 0:u.length)&&(0,s.jsx)("div",{className:Q().selectorWrapper,children:(0,s.jsx)(U.Ar,{multiple:!0,control:e,name:"filter.goodCategories",className:Q().select,size:"s",clearable:!0,label:"Категория покупок",onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))},options:u})})]}),(0,s.jsxs)("div",{className:Q().row,children:[(0,s.jsxs)("div",{className:Q().column,children:[(0,s.jsx)("div",{className:Q().columnTitle,children:"Преимущества"}),(0,s.jsx)(U.iK,{control:e,name:"filter.advantages",options:a,onChange:e=>{H.iJ.debit.pushFilterDataLayer("Преимущества",H.iJ.getOptionsLabels(e))}})]}),(0,s.jsxs)("div",{className:Q().column,children:[(0,s.jsx)("div",{className:Q().columnTitle,children:"Сортировать"}),(0,s.jsx)(U.K3,{control:e,name:"sort",options:n})]})]})]})};var $=r(13466),ee=r(571),et=r.n(ee);let er=e=>{let{className:t,variant:r="select",beforeChange:n}=e,{watch:l,setValue:o,control:d}=(0,c.Gc)(),p=l("sortDirection"),m=l("options.sort"),_=l("sort"),g=m.find(e=>e.value===_),b="desc"===p,[x,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!x)return;let e=()=>h(!1);return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[x]);let v=(0,s.jsx)(i.zx,{onClick:()=>{null==n||n(),o("sortDirection",b?"asc":"desc")},"aria-label":"Направление сортировки",title:"Направление сортировки",appearance:"ghost",size:"s",shape:"icon",className:(0,u.Z)("minimal"===r&&et().minimalButtonSort,"minimal"===r&&et().onlyDesktop),iconRight:b?(0,s.jsx)(K.IconFdsSortDescendingArrowO,{}):(0,s.jsx)(K.IconFdsSortAscendingArrowO,{})});return"minimal"===r?(0,s.jsxs)("div",{className:(0,u.Z)(et().sortMinimalWrapper,t),children:[v,(0,s.jsxs)(i.Lt,{title:"Сортировка",placement:"bottom-end",opened:x,onToggle:()=>h(e=>!e),width:"auto",children:[(0,s.jsx)(i.WA,{asChild:!0,children:(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:(0,u.Z)(et().sortDropdownButtonText,et().onlyDesktop),children:null==g?void 0:g.label}),(0,s.jsx)(i.zx,{variant:"secondary",size:"s",shape:"icon",className:(0,u.Z)("minimal"===r&&et().onlyMobile),iconRight:(0,s.jsx)(K.IconFdsSortAscendingO,{})})]})}),(0,s.jsx)($.h,{children:(0,s.jsxs)(i.Nv,{children:[(0,s.jsx)("div",{className:(0,u.Z)(et().direction,et().onlyMobile),children:(0,s.jsx)(U.K3,{control:d,name:"sortDirection",options:[{value:"asc",label:"По возрастанию"},{value:"desc",label:"По убыванию"}],onChange:()=>{null==n||n()}})}),(0,s.jsx)(U.K3,{control:d,name:"sort",options:m,onChange:()=>{null==n||n()}})]})})]})]}):(0,s.jsxs)("div",{className:(0,u.Z)(et().sortSelectWrapper,t),children:[v,(0,s.jsx)(U.Ar,{size:"s",placeholder:"Сортировка",className:et().sortWrapper,classnameTrigger:et().sortSelect,name:"sort",control:d,options:m})]})};var es=r(92212),ea=r.n(es);let en=e=>{let{resultListRef:t}=e,r=(0,a.useRef)(null),[l,o]=(0,a.useState)(!1),{setValue:d,watch:p}=(0,c.Gc)(),m=Object.entries(p("filter")||{}).reduce((e,t)=>{let[r,s]=t;return["region","town","tag","townId","regionId"].includes(r)||(Array.isArray(s)?e+=s.length?1:0:e+=s?1:0),e},0);(0,a.useEffect)(()=>{let e=()=>{null===r.current&&(r.current=requestAnimationFrame(()=>{r.current=null;let e=null==t?void 0:t.current;if(!e)return;let s=e.getBoundingClientRect(),a=window.innerHeight,n=s.top<=0&&s.bottom>=.6*a;o(e=>e===n?e:n)}))};return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e),null!==r.current&&cancelAnimationFrame(r.current)}},[]);let _=()=>{let e=document.getElementById("debit-cards-results");if(e){let t=e.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:t-30,behavior:"smooth"})}},g=()=>{null==_||_(),d("isFilterOpen",!0)};return(0,s.jsx)("div",{className:(0,u.Z)(ea().stickyToolbar,{[ea().stickyToolbarVisible]:l}),children:(0,s.jsxs)(n.W2,{className:ea().container,children:[(0,s.jsx)(i.zx,{className:(0,u.Z)(ea().onlyDesktop),onClick:g,appearance:"ghost",size:"s",iconLeft:(0,s.jsx)(K.IconFdsParametersHorizontalO,{}),iconRight:m?(0,s.jsx)("div",{className:ea().badge,children:m}):void 0,children:"Все параметры"}),(0,s.jsx)(i.zx,{"data-badge":m,className:(0,u.Z)(ea().onlyMobile,!!m&&ea().badgeIcon),onClick:g,variant:"secondary",size:"s",shape:"icon",iconLeft:(0,s.jsx)(K.IconFdsParametersHorizontalO,{})}),(0,s.jsx)(er,{beforeChange:_,variant:"minimal",className:ea().sortButton})]})})};var ei=r(6069),el=r.n(ei);let eo=e=>{let{resultListRef:t}=e,r=(0,c.Gc)(),{watch:a,setValue:n,getValues:l,resetField:o}=r,d=a("options.advantages"),u=a("options.chipsAdvantages"),p=a("options.bonuses"),m=a("isFilterOpen"),_=r.watch("result.totalCards"),g=()=>{n("isFilterOpen",!l("isFilterOpen"))},b={size:"s",variant:"secondary",iconLeft:(0,s.jsx)(K.IconFdsParametersHorizontalO,{}),onClick:()=>{g(),H.iJ.debit.clickButtonDataLayer("Все параметры")}},x=async e=>{n("isFilterOpen",!1),setTimeout(()=>{let e=document.getElementById("debit-cards-results");if(e){let t=e.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:t-30,behavior:"smooth"})}}),H.iJ.debit.clickButtonDataLayer(e)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:el().wrapper,children:[(0,s.jsx)("div",{className:el().testTrigger}),(0,s.jsxs)("div",{className:el().filter,children:[(0,s.jsxs)("div",{className:el().selectWrapper,children:[(0,s.jsx)(U.Ar,{multiple:!0,control:r.control,name:"filter.bonus",className:el().select,size:"s",clearable:!0,label:"Бонусы",options:p,onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))}}),(0,s.jsx)(U.Ar,{multiple:!0,control:r.control,name:"filter.advantages",className:el().select,size:"s",clearable:!0,label:"Преимущества",optionValue:"id",optionLabel:"label",options:d,onChange:(e,t)=>{H.iJ.debit.pushFilterDataLayer(t,H.iJ.getOptionsLabels(e))}})]}),(0,s.jsxs)("div",{className:el().actionsWrapper,children:[(0,s.jsx)(i.zx,{...b,className:el().desktop,label:"Все параметры"}),(0,s.jsx)(i.zx,{...b,className:el().mobile,shape:"icon"}),(0,s.jsx)(i.zx,{disabled:!_,onClick:x,className:el().submit,size:"s",label:"Показать ".concat(_||"")})]})]}),(0,s.jsx)("div",{className:el().chipsWrapper,children:(0,s.jsx)(U.O$,{onChipClick:e=>{H.iJ.debit.clickButtonDataLayer(H.iJ.getOptionsLabels(e))},control:r.control,name:"filter.advantages",activeVariant:"primary",chips:u,multiple:!0,size:"m",variant:"primary"})}),(0,s.jsx)(Y.i,{footer:(0,s.jsxs)("div",{className:el().footer,children:[(0,s.jsx)(i.zx,{onClick:e=>{o("filter"),H.iJ.debit.clickButtonDataLayer(e)},stretch:!0,variant:"secondary",size:"s",children:"Сбросить параметры"}),(0,s.jsxs)(i.zx,{disabled:!_,onClick:x,className:el().showButton,stretch:!0,variant:"primary",size:"s",children:["Показать ",_||""]})]}),title:"Все параметры",isOpen:m,onClose:g,children:(0,s.jsx)(X,{})})]}),(0,s.jsx)(en,{resultListRef:t})]})};var ec=r(77337);let ed=e=>{switch(e){case 2:case"2":case"USD":return{shortName:"долл.",unit:"$",name:"долларах",code:"USD",locale:"en",num:2};case 3:case"3":case"EUR":return{shortName:"евро",unit:"€",name:"евро",code:"EUR",locale:"en",num:3};case 4:case"4":case"CNY":return{shortName:"юань",unit:"\xa5",name:"юанях",code:"CNY",locale:"zh-CN",num:4};case 5:case"5":case"CHF":return{shortName:"франк",unit:"₣",name:"франках",code:"CHF",locale:"en",num:5};case 6:case"6":case"GBP":return{shortName:"фунт",unit:"\xa3",name:"фунтах",code:"GBP",locale:"en",num:6};case 7:case"7":case"JPY":return{shortName:"иена",unit:"\xa5",name:"иенах",code:"JPY",locale:"ja-JP",num:7};default:return{shortName:"руб.",unit:"₽",name:"рублях",code:"RUB",locale:"ru",num:1}}},eu=e=>{let{currency:t,result:r}=e,{NEXT_PUBLIC_BASE_URL:n}=(0,l.S)(),i=m(),o=(0,a.useMemo)(()=>{let e=(null==r?void 0:r.list.flatMap(e=>Number(e.item.short.cost.replace(/\W|_/g,""))||0))||[],s=ed(t||0).code;return JSON.stringify({"@context":"https://schema.org","@type":"Product",image:(0,ec.xn)(n,"icons","1200x630-logo.jpg"),name:"".concat(null==r?void 0:r.title).concat(null==i?void 0:i.join(" ")),description:null==r?void 0:r.subtitle,offers:{"@type":"AggregateOffer",lowPrice:"".concat(Math.min(...e)),highPrice:"".concat(Math.max(...e)),priceCurrency:s,offerCount:"".concat(null==r?void 0:r.totalCards),offers:null==r?void 0:r.list.flatMap(e=>{let t={"@type":"BankOrCreditUnion",name:e.bank.name,url:(0,ec.xn)(n,"banki",e.bank.url),image:e.bank.logo,address:{"@type":"PostalAddress",addressLocality:e.bank.legalAddress}};return{"@type":"PaymentCard",url:(0,ec.xn)(n,h.y.DEBIT_CARDS,e.item.short.url),name:e.item.short.name,cashBack:!!e.item.short.cashback,provider:t}})},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"1276",bestRating:"5",worstRating:"1"}})},[i,t,r,n]);return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:o}})},ep=()=>{let e=(0,x.usePathname)(),{watch:t}=(0,c.Gc)(),r=t("tag"),{setValue:s}=(0,c.Gc)();return(0,a.useEffect)(()=>{let t=t=>{if(!e)return;let{region:s,town:a}=t.detail,n=e.startsWith("/new")?"/new/debetovye_karty":"/debetovye_karty";r&&!p.de.isDefaultTag(r)&&(n+="/teg_".concat(r.url)),s&&(n+="/reg_".concat(s.url),a&&a.url!==s.url&&(n+="/".concat(a.url))),window.location.replace(n)};return document.addEventListener("onRegionChange",t),()=>{document.removeEventListener("onRegionChange",t)}},[null==r?void 0:r.url,e,s]),null};var em=r(84740),e_=r(23530),eg=r(94147),eb=r(23877);let ex=e=>{let{group:t,subOfferIndex:r,isSubOffer:o,shownIds:d,activeTerms:u}=e,[p,m]=(0,a.useState)(!1),{FEATURE_TOGGLE_NEW_BACKEND_DEBIT_CARDS:_}=(0,l.S)(),{getValues:g}=(0,c.Gc)(),[b,x]=(0,a.useState)(()=>new Set([t.item.id,...null!=d?d:[]])),[h,v]=(0,a.useState)([]),{execute:f,isFetching:C}=(0,eb.K)(e_.b),j=[...t.items,...h],w=1+j.length,D=t.totalItems-w,y=D>0&&!p,k=C?"Загрузка...":"Ещё ".concat(D," ").concat((0,n._6)(D,"предложение","предложения","предложений")),N=async()=>{var e;if(C)return;let r=Array.from(b).length,s=g("sort"),a=g("filter"),n=g("sortDirection"),l=await f({from:r,bankId:String(t.bank.bic),filters:a,sort:s,sortDirection:n});if((null==l?void 0:l.error)&&!l.error.includes("signal is aborted"))return i.E.create({dataQa:"snackbar",label:"Сервис временно недоступен",state:"error",withClose:!1,caption:"попробуйте повторить операцию позже.",timer:4,withoutTimer:!1});let o=null!==(e=null==l?void 0:l.data)&&void 0!==e?e:[];v(e=>[...e,...o]),m(!0),x(e=>{let t=o.map(e=>e.id);return new Set([...Array.from(e),...t])})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eg.FG,{activeTerms:u,data:t.item,subOfferIndex:r,bank:t.bank,showLoadMore:y,isFetching:C,buttonText:k,isSubOffer:o,onLoadMore:N,urlPrefix:"false"===_?"/new":""}),!!t.totalItems&&!C&&p&&j.map((e,r)=>{let a=r===j.length-1?t.totalItems-j.length:0;return(0,s.jsx)(ex,{activeTerms:u,group:{bank:t.bank,item:e,items:[],totalItems:a},isSubOffer:!0,subOfferIndex:r,shownIds:Array.from(b)},e.id)})]})};var eh=r(63199),ev=r.n(eh);let ef=()=>{let{NEXT_PUBLIC_ASSETS_BASE_URL:e}=(0,l.S)();return(0,s.jsxs)("div",{className:ev().wrapper,children:[(0,s.jsx)("div",{className:ev().imageWrapper,children:(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{media:"(max-width: 767px)",srcSet:"".concat(e,"/mp-assets/mp-sc-debit-cards-ui/mobile-looking-cat.png 1x, ").concat(e,"/mp-assets/mp-sc-debit-cards-ui/mobile-looking-cat@2x.png 2x")}),(0,s.jsx)("img",{className:ev().image,alt:"",src:"".concat(e,"/mp-assets/mp-sc-debit-cards-ui/looking-cat.png"),srcSet:"".concat(e,"/mp-assets/mp-sc-debit-cards-ui/looking-cat.png 1x, ").concat(e,"/mp-assets/mp-sc-debit-cards-ui/looking-cat@2x.png 2x")})]})}),(0,s.jsx)("div",{className:ev().title,children:"Сервис временно недоступен, попробуйте повторить операцию позже."}),(0,s.jsx)("div",{className:ev().buttonWrapper,children:(0,s.jsx)(i.zx,{variant:"secondary",size:"s",onClick:()=>{window.location.reload()},children:"Обновить страницу"})})]})};var eC=r(80097),ej=r.n(eC);let ew=()=>{let{watch:e,setValue:t,getValues:r}=(0,c.Gc)(),a=e("result"),{isFetching:n,execute:l}=(0,eb.K)(Z.r),o=a.nextFrom;return null===o?null:(0,s.jsx)("div",{className:ej().showMoreWrapper,children:(0,s.jsx)(i.zx,{className:ej().showMoreButton,variant:"purple",appearance:"ghost",size:"xs",disabled:n,label:n?"Загрузка...":"Смотреть еще предложения",onClick:async()=>{let e=r("filter"),s=r("sort"),a=r("sortDirection"),n=await l({from:o,filters:e,sort:s,sortDirection:a},void 0);if(null==n?void 0:n.data){var c;t("result",{...null==n?void 0:n.data,list:[...r("result.list"),...(null==n?void 0:null===(c=n.data)||void 0===c?void 0:c.list)||[]]})}else(null==n?void 0:n.error.includes("signal is aborted"))||i.E.create({dataQa:"snackbar",label:"Сервис временно недоступен",state:"error",withClose:!1,caption:"попробуйте повторить операцию позже.",timer:4,withoutTimer:!1})},iconRight:(0,s.jsx)(K.IconFdsChevronDownSmallO,{className:ej().showMoreIcon,size:20})})})};var eD=r(99954),ey=r.n(eD);let ek=()=>{let e=(0,c.Gc)(),{NEXT_PUBLIC_ASSETS_BASE_URL:t}=(0,l.S)(),{setValue:r,getValues:a}=e;return(0,s.jsxs)("div",{className:ey().wrapper,children:[(0,s.jsx)("div",{className:ey().imageWrapper,children:(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{media:"(max-width: 767px)",srcSet:"".concat(t,"/mp-assets/mp-sc-debit-cards-ui/mobile-looking-cat.png 1x, ").concat(t,"/mp-assets/mp-sc-debit-cards-ui/mobile-looking-cat@2x.png 2x")}),(0,s.jsx)("img",{className:ey().image,alt:"",src:"".concat(t,"/mp-assets/mp-sc-debit-cards-ui/looking-cat.png"),srcSet:"".concat(t,"/mp-assets/mp-sc-debit-cards-ui/looking-cat.png 1x, ").concat(t,"/mp-assets/mp-sc-debit-cards-ui/looking-cat@2x.png 2x")})]})}),(0,s.jsx)("div",{className:ey().title,children:"К сожалению, мы ничего не нашли"}),(0,s.jsx)("div",{className:ey().buttonWrapper,children:(0,s.jsx)(i.zx,{variant:"secondary",size:"s",onClick:()=>{r("isFilterOpen",!a("isFilterOpen"))},children:"Изменить параметры"})})]})};var eN=r(76113),eF=r.n(eN);let eL=()=>{let e=(0,c.Gc)().watch("result.totalCards");return e?(0,s.jsxs)("div",{className:eF().wrapper,id:"debit-cards-results",children:[(0,s.jsxs)("h2",{className:eF().title,children:[e," ",(0,n._6)(e,"предложение","предложения","предложений")]}),(0,s.jsx)(er,{className:eF().sortSelectWrapper})]}):(0,s.jsx)("div",{className:eF().empty})};var eS=r(43395),eW=r.n(eS);let eT=e=>{let{resultListRef:t}=e,{watch:r}=(0,c.Gc)(),a=r("result.list"),n=r("isLoading"),i=r("error"),l=r("filter.bonus");return(0,s.jsxs)("div",{children:[!i&&(0,s.jsx)(eL,{}),n?(0,s.jsx)("div",{className:eW().list,children:Array.from({length:6},(e,t)=>(0,s.jsx)(em.O,{},t))}):i?(0,s.jsx)(ef,{}):a.length?(0,s.jsx)("div",{ref:t,className:eW().list,children:a.map(e=>(0,s.jsx)(ex,{activeTerms:l,group:e},e.item.id))}):(0,s.jsx)(ek,{}),!i&&(0,s.jsx)(ew,{})]})},eB=e=>{var t,r,n,i,l,o;let{children:d,result:u,options:p,predefined:m,tag:_,initialGeo:g}=e,b=(0,a.useMemo)(()=>p.banks.map(e=>({value:e.bic,label:e.name})),[p.banks]),x=(0,c.cI)({defaultValues:{sort:m.sort,sortDirection:"desc",filter:{currency:null==m?void 0:m.filter.currency,cardType:null!==(t=null==m?void 0:m.filter.cardType)&&void 0!==t?t:[],bonus:null!==(r=null==m?void 0:m.filter.bonus)&&void 0!==r?r:[],bankIds:null!==(n=null==m?void 0:m.filter.bankIds)&&void 0!==n?n:[],advantages:null!==(i=null==m?void 0:m.filter.advantages)&&void 0!==i?i:[],region:m.filter.region,town:m.filter.town,regionId:m.filter.regionId,townId:m.filter.townId,tag:m.filter.tag,customerCategories:null!==(l=m.filter.customerCategories)&&void 0!==l?l:[],goodCategories:null!==(o=m.filter.goodCategories)&&void 0!==o?o:[]},options:{...p,banks:b},result:u,isLoading:!1,isFilterOpen:!1,tag:_,town:g.town,region:g.region}});return(0,s.jsx)(c.RV,{...x,children:d})};var eR=r(15993),eI=r.n(eR);let eE=e=>{let{initialGeo:t,support:r,result:c,options:d,predefined:u,tag:p,tags:m,additional:_}=e,{NEXT_PUBLIC_ASSETS_BASE_URL:g}=(0,l.S)(),x=(0,a.useRef)(null);return(0,s.jsx)("div",{className:eI().page,children:(0,s.jsxs)(eB,{tag:p,initialGeo:t,predefined:u,options:d,result:c,children:[(0,s.jsxs)(n.W2,{children:[(0,s.jsx)(C,{}),(0,s.jsx)(b,{}),(0,s.jsx)(eo,{resultListRef:x}),(0,s.jsx)(eT,{resultListRef:x}),(0,s.jsx)(q,{}),(0,s.jsx)(ep,{})]}),!!r&&(0,s.jsx)(o.B,{...r,s3Assets:g||""}),(0,s.jsx)(i.A9,{position:"bottomLeft"}),(0,s.jsx)(P,{banks:[],additional:_,tags:m}),(0,s.jsx)(eu,{currency:u.filter.currency,result:c})]})})}},84464:function(e){e.exports={contentBlocks:"FaqContentBlock_contentBlocks__mK36G",annotation:"FaqContentBlock_annotation__Uorcb",contentTableWrapper:"FaqContentBlock_contentTableWrapper__j8ddj",keynoteWrapper:"FaqContentBlock_keynoteWrapper__9uVMi",keynote:"FaqContentBlock_keynote__IoZrR",blockLink:"FaqContentBlock_blockLink__9SGlK"}},15993:function(e){e.exports={page:"DebitCards_page__ZyEFb"}},13881:function(e){e.exports={title:"BannerDebitCards_title__dGhr8",wrapper:"BannerDebitCards_wrapper__n_6cp",titleWrapper:"BannerDebitCards_titleWrapper__1Wr8s",description:"BannerDebitCards_description__mkZyR",imageWrapper:"BannerDebitCards_imageWrapper__2AxIR",image:"BannerDebitCards_image__MHEBS",link:"BannerDebitCards_link__s88ZW"}},6069:function(e){e.exports={wrapper:"FilterDebitCards_wrapper__83dew",actionsWrapper:"FilterDebitCards_actionsWrapper__n4TEQ",filter:"FilterDebitCards_filter__3gpdN",selectWrapper:"FilterDebitCards_selectWrapper__31YZs",select:"FilterDebitCards_select__9gsuH",submit:"FilterDebitCards_submit__EIEnc",desktop:"FilterDebitCards_desktop__GRX1_",mobile:"FilterDebitCards_mobile__lwzqs",chipsWrapper:"FilterDebitCards_chipsWrapper__wVpJB",footer:"FilterDebitCards_footer__xCYEK",showButton:"FilterDebitCards_showButton__2bpFo"}},20626:function(e){e.exports={select:"FormDebitCardsFilter_select__GTJIY",wrapper:"FormDebitCardsFilter_wrapper__7W0vh",row:"FormDebitCardsFilter_row__w63LO",column:"FormDebitCardsFilter_column__GL22D",divider:"FormDebitCardsFilter_divider__n3DyE",columnTitle:"FormDebitCardsFilter_columnTitle__Z_DEb",selectorsGrid:"FormDebitCardsFilter_selectorsGrid__cnxeF",selectorWrapper:"FormDebitCardsFilter_selectorWrapper__08DYE"}},92212:function(e){e.exports={stickyToolbar:"StickyDebitCardsFilter_stickyToolbar__5klyL",stickyToolbarVisible:"StickyDebitCardsFilter_stickyToolbarVisible__S7LK5",tagWrapper:"StickyDebitCardsFilter_tagWrapper__NWXBg",tag:"StickyDebitCardsFilter_tag__UBGJG",container:"StickyDebitCardsFilter_container__wym2f",sortButton:"StickyDebitCardsFilter_sortButton__iJKCW",onlyDesktop:"StickyDebitCardsFilter_onlyDesktop__v7R0D",onlyMobile:"StickyDebitCardsFilter_onlyMobile__7unMF",badgeIcon:"StickyDebitCardsFilter_badgeIcon__WPiTF",badge:"StickyDebitCardsFilter_badge__TwxYr"}},43395:function(e){e.exports={totalTitle:"ResultsDebitCards_totalTitle__b8t6q",totalWrapper:"ResultsDebitCards_totalWrapper__KecZt",sortSelectWrapper:"ResultsDebitCards_sortSelectWrapper__jGqLX",sortSelect:"ResultsDebitCards_sortSelect__JeGoB",list:"ResultsDebitCards_list__nxpRG"}},63199:function(e){e.exports={title:"ErrorDebitCardsResult_title__f4KBu",wrapper:"ErrorDebitCardsResult_wrapper__z9WBR",buttonWrapper:"ErrorDebitCardsResult_buttonWrapper__ymQPW",imageWrapper:"ErrorDebitCardsResult_imageWrapper__MGRIe"}},80097:function(e){e.exports={showMoreWrapper:"LoadMoreButtonDebitCardsResults_showMoreWrapper__SCt_W",showMoreButton:"LoadMoreButtonDebitCardsResults_showMoreButton__CW5lL",showMoreIcon:"LoadMoreButtonDebitCardsResults_showMoreIcon__TDnnS"}},99954:function(e){e.exports={title:"NotFoundDebitCardsResults_title__puBCG",wrapper:"NotFoundDebitCardsResults_wrapper___YVGN",buttonWrapper:"NotFoundDebitCardsResults_buttonWrapper__iT1PI",imageWrapper:"NotFoundDebitCardsResults_imageWrapper__RldPG"}},76113:function(e){e.exports={title:"TitleDebitCardsResults_title__XY2hp",wrapper:"TitleDebitCardsResults_wrapper__mIZtg",empty:"TitleDebitCardsResults_empty__h_nsF"}},571:function(e){e.exports={sortSelectWrapper:"SortDebitCardsSelect_sortSelectWrapper__RjBtH",sortSelect:"SortDebitCardsSelect_sortSelect__LxhRb",sortWrapper:"SortDebitCardsSelect_sortWrapper__1QyX1",sortDropdownButtonText:"SortDebitCardsSelect_sortDropdownButtonText__A4KNw",minimalButtonSort:"SortDebitCardsSelect_minimalButtonSort__dDQaJ",onlyDesktop:"SortDebitCardsSelect_onlyDesktop__M6y7_",onlyMobile:"SortDebitCardsSelect_onlyMobile__xfXxo",direction:"SortDebitCardsSelect_direction__wtq6z"}}},function(e){e.O(0,[234,125,611,776,787,48,453,544,501,207,458,389,524,804,3,147,627,971,117,744],function(){return e(e.s=60380)}),_N_E=e.O()}]);