(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6677],{77841:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kreditnye_karty/[[...segments]]",function(){return a(22594)}])},17722:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/banner-1.cbec846c.svg",height:208,width:301,blurWidth:0,blurHeight:0}},47860:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/search.b3dc20e8.svg",height:192,width:212,blurWidth:0,blurHeight:0}},14974:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/woman-banner-desktop.181a116b.png",height:132,width:358,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAM1BMVEXj48mPZFbQakr5x42RTkOVhniFVkS+uaahYUb//NvYMyb/VEyudk5fVFRYQDvzgGLIhWaGz7JJAAAACnRSTlMC/////fz/zYZludyWqwAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxjYObnZuXlZGBg4GHiYuFjZ2BgYBNgYmRk42AAAAjRAJJNslgHAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3}},38384:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/woman-banner-mobile.5abbfbec.png",height:132,width:144,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAUVBMVEVMaXFpGhHo273///z59dhNU1H//9rq1Mn08Nf59NQfDRjceVV5WUkiEhuMRzHLw619Wk9rUkx+amF/OynX1sCOgHK/Ui+fdGGTemx3RThDQEbOGBk2AAAAD3RSTlMAOv1Y1P0OBG3+/cjB/f0b6OuTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAOklEQVR4nGNgYGBgZ+Dg5GQAATYWfiaIAD+XEEiAnUWKVxAkwCzCKiwAEuAWYBUTZGBg5OGTFBWXAAAn+gHGNhRHnwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7}},93188:function(e,t,a){"use strict";a(98670)},24443:function(e,t,a){"use strict";a.d(t,{y:function(){return x}});var n=a(85893),l=a(34588),i=a(86010),r=a(25675),o=a.n(r),s=a(67294),c=a(79553),d=a.n(c),u=a(86992);let _=e=>{switch(e.type){case"moneyInput":{let{value:t,onChange:a,onFocus:l,onBlur:i,label:r,inputRef:o}=e.props;return(0,n.jsx)("div",{children:(0,n.jsx)(u.P,{ref:o,label:r,value:t,onChange:a,onFocus:l,onBlur:i})})}case"divider":return(0,n.jsx)("div",{className:d().divider});case"inputRange":return(0,n.jsx)("div",{className:(0,i.Z)(d().field,d().fieldRange),children:(0,n.jsx)(l.OX,{...e.props})});case"select":return(0,n.jsx)(l.Ph,{...e.props,className:(0,i.Z)(d().field,e.props.className)});case"chips":return(0,n.jsx)(l.cL,{...e.props,className:(0,i.Z)(d().chipsForm,e.props.className)});default:throw Error("Dead code branch")}};var p=a(13442),m=a(46203),f=a(39918),g=a(30251),v=a(98028),h=a(8344),b=a(93478);let x=(0,s.memo)(e=>{let{title:t,pageUrl:a,infoLink:r,chips:c,items:u,additionalItems:x,additionalItemsTitle:C,isMobile:j,isShowChips:k,isExpandSettings:A,onToggleSettings:N}=e,y=e=>{(0,f.D)({eventCategory:a,eventAction:f.i.popup,eventActionText:e}),null==N||N()},T=(0,s.useCallback)(()=>r?(0,b.l)(r.idScrollBlock,{offset:j?0:-100,position:"top"}):null,[j,r]),[w,L]=(0,s.useState)(()=>u.filter(e=>!!e).reduce((e,t,a)=>t&&t.elements.length>1&&t.isCollapsedElements?{...e,[a]:!0}:e,{}));(0,s.useEffect)(()=>{u.filter(e=>!!e).forEach((e,t)=>{e&&L(a=>({...a,[t]:e.isCollapsedElements}))})},[u]);let P=(0,s.useCallback)(e=>{L(t=>({...t,[e]:!t[e]}))},[]);return(0,n.jsxs)(g.G,{className:(0,i.Z)(d().container),children:[(0,n.jsxs)("button",{className:d().title,onClick:()=>y(t),children:[t,(0,n.jsx)(o(),{className:(0,i.Z)(d().collapseArrow,A&&d().collapseArrowOpened),src:h.Z,alt:""})]}),(0,n.jsxs)(m.u,{className:d().fieldsContainer,isOpen:A||!j,children:[(0,n.jsx)("div",{className:d().fieldsWrapper,children:u.filter(e=>!!e).map((e,t)=>{if(!e)return;let{titleElements:a,elements:r,onToggle:o}=e,s=r.map((e,a)=>{if(e.isHidden)return null;let l=_(e);return(0,n.jsxs)("div",{className:d().fieldWrapper,children:[l,(null==e?void 0:e.desription)&&"inputRange"===e.type?(0,n.jsx)(v.J,{triggerClassName:d().tooltip,content:e.desription}):e.desription]},t+"."+a)});return r.length>1?(0,n.jsxs)("div",{className:d().collapseContainerWrapper,children:[(0,n.jsxs)("div",{className:(0,i.Z)(d().additionalItem,!w[t]&&d().collapsedContainer),children:[(0,n.jsxs)("div",{className:d().additionalItemName,children:[(0,n.jsx)("span",{children:a}),(0,n.jsx)(v.J,{content:"Государство выделяет деньги на поддержку семей с детьми. Эти деньги можно вложить в ипотеку"})]}),(0,n.jsx)(l.ZD,{checked:w[t],onChange:()=>{null==o||o(!w[t]),P(t)},flipped:!0})]}),(0,n.jsx)(m.u,{className:(0,i.Z)({[d().collapseContainer]:w[t]}),isOpen:w[t],children:s})]},t):s})}),x&&!!(null==x?void 0:x.length)&&(0,n.jsxs)("div",{className:d().additionalItemsWrapper,children:[!!(null==C?void 0:C.length)&&(0,n.jsx)("h3",{className:d().additionalItemsTitle,children:C}),(0,n.jsx)("ul",{className:d().additionalItemsList,children:x.map((e,t)=>(0,n.jsxs)("li",{className:d().additionalItem,children:[(0,n.jsxs)("div",{className:d().additionalItemName,children:[(0,n.jsx)("span",{children:e.name}),e.tooltip&&(0,n.jsx)(v.J,{content:e.tooltip})]}),(0,n.jsx)(l.ZD,{...e})]},t))})]}),r&&(0,n.jsx)(p.j,{offPadding:r.offPadding,widthMaxContent:r.widthMaxContent,text:r.text,iconColor:"light",mainPageUrl:a,className:d().link,onClick:T})]}),k&&c&&(0,n.jsx)(l.cL,{className:d().chips,chips:c,value:c.map(e=>e.id),activeVariant:"secondary",size:"m",multiple:!0})]})});x.displayName="Calculator"},423:function(e,t,a){"use strict";a.d(t,{TQ:function(){return i},VZ:function(){return r},jo:function(){return l},oQ:function(){return o}});var n=a(84053);function l(){return"".concat((0,n.iE)().lkBaseUrl,"/credits/new?skipName=true&productType=credit")}function i(){return"".concat((0,n.iE)().lkBaseUrl,"/credits/new?skipName=true&productType=credit_card")}let r=["sberbank","vtb24","sovcombank","rosselhozbank","gazprombank","alfabank","promsvyazbank","tinkoff","vostochnyj_express"],o="/icons/header_logo.svg"},97995:function(e,t,a){"use strict";a.d(t,{$m:function(){return o},BM:function(){return i},BS:function(){return n},P3:function(){return r},is:function(){return s},kE:function(){return d},wf:function(){return c},zj:function(){return l}});let n="Беспроцентный период не менее",l="Кредитный лимит не менее",i=20,r={pp:"edzc",ps:"foam",p2:"hojk"},o=[{label:"По популярности",field:"order"},{label:"По ставке",field:"rate"},{label:"По платежу",field:"payment"}],s="installment_plan",c=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}],d=[{value:"null",label:"Не имеет значения"},{value:"access_business_hall",label:"Доступ в бизнес-залы аэропортов и вокзалов"},{value:"travel_insurance",label:"Страховка для путешественников"},{value:"bank_vip_service",label:"VIP-обслуживание в отделении банка"},{value:"transfer",label:"Трансферы в аэропорты и на вокзалы"},{value:"concierge",label:"Бесплатный консьерж-сервис"}]},66566:function(e,t,a){"use strict";a.d(t,{$:function(){return n}});let n=(e,t)=>e?["",t?"янв":"января",t?"фев":"февраля","марта",t?"апр":"апреля","мая","июня","июля",t?"авг":"августа",t?"сент":"сентября",t?"окт":"октября",t?"нояб":"ноября",t?"дек":"декабря"][new Date(e.replace(/-/g,"/")).getMonth()+1]:""},26885:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var n=a(85893),l=a(86010),i=a(67294),r=a(49876),o=a(12321),s=a.n(o);let c=e=>{let{params:t,children:a,className:o,config:c}=e,[d,u]=(0,i.useState)(!1),[_,p]=(0,i.useState)(""),m=(0,i.useRef)(null),f=(0,i.useRef)("");return(0,i.useEffect)(()=>{f.current&&(null==c?void 0:c.yaContextCb)&&(null==c?void 0:c.Ya)&&c.yaContextCb.push(()=>{c.Ya.adfoxCode.destroy(f.current)}),p((0,r.R)())},[null==c?void 0:c.Ya,null==c?void 0:c.yaContextCb,t.pp]),(0,i.useEffect)(()=>{if(f.current===_)return;if(!c){u(!0);return}let e=()=>{var e,t;let a=null===(e=m.current)||void 0===e?void 0:e.querySelector("iframe");a?a.style.height="".concat(null===(t=a.contentWindow)||void 0===t?void 0:t.document.body.scrollHeight,"px"):console.warn("ads blocked"),u(!a)};c.yaContextCb&&c.yaContextCb.push(()=>{c.Ya.adfoxCode.create({ownerId:c.ownerId,containerId:"adfox_".concat(_),params:t,onRender:e})}),setTimeout(e,5e3),f.current=_},[_,c,t]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,l.Z)(d&&s().hide,o),ref:m,id:"adfox_".concat(_)},_),d&&a]})}},22594:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return af},default:function(){return ag}});var n,l,i,r,o=a(85893),s=a(44076),c=a(67294);a(40847),a(89521),a(93188);var d=a(17950),u=a(34588),_=a(41664),p=a.n(_),m=a(73172),f=a(84444),g=a(19438),v=a(45392),h=a(89504),b=a(72335),x=a(54663),C=a(57696);let j=[{id:1,label:"Условия",name:C.cZ.conditions},{id:2,label:"Требования",name:C.cZ.requirements},{id:3,label:"Лимиты и комиссии",name:C.cZ.commissions},{id:4,label:"Привилегии и бонусы",name:C.cZ.bonuses}],k=e=>{let{data:t,cardTypes:a,contactlessCardTypes:n}=e,l=(0,c.useMemo)(()=>(0,C.ap)(t,a,n),[t,a,n]),i=(0,c.useMemo)(()=>j.filter(e=>l[e.name].find(e=>!!e.value)),[l]);return{tabsContent:l,tabsList:i}},A=(0,c.memo)(e=>{var t,a,n;let{data:l,pageUrl:i,cardTypes:r,contactlessCardTypes:s,bank:c}=e,d={logoMobile:null==c?void 0:c.logo_mob,description:null==c?void 0:c.short_description,url:"/banki/".concat(null==c?void 0:c.url),name:null==c?void 0:c.name,creditRating:null==c?void 0:c.credit_rating,netAssetsPlace:null==c?void 0:null===(t=c.ratings)||void 0===t?void 0:t.net_assets_place,netProfitRating:null==c?void 0:c.net_profit_rating,license:null==c?void 0:c.license,licenseDate:null!==(a=null==c?void 0:c.license_date)&&void 0!==a?a:void 0},{tabsContent:u,tabsList:_}=k({data:l,cardTypes:r,contactlessCardTypes:s});return(0,o.jsx)(b.z,{scrollBlockId:x.q6,pageUrl:i,seoText:(null==l?void 0:l.short_description)&&(null==l?void 0:l.short_description.length)>5?null==l?void 0:l.short_description:void 0,title:"О кредитной карте",offerUpdateData:null==l?void 0:l.m_updated_at,bank:d,tabsList:_,tabsContent:u,aboutCompanyLabel:"О банке",site:null!==(n=null==c?void 0:c.site.title)&&void 0!==n?n:void 0})});A.displayName="CardAbout";var N=a(17722),y=a(94781),T=a(61043),w=a(93842),L=a(7283),P=a(64062),S=a(6852),R=a(66482),M=a.n(R);let F=e=>{let{url:t,pageUrl:a,bannerUrl:n,offerType:l,isMobile:i,className:r,urlGivingCard:s}=e,u=(0,S.S)(),_=(0,c.useMemo)(()=>{let e=d.g.REFERAL?"Эту кредитную карту сейчас нельзя открыть через Финуслуги":"Эту кредитную карту сейчас нельзя открыть онлайн на Финуслугах";return[{id:1,image:T.Z,text:"Оформите кредитную карту <br /> на сайте Финуслуг",buttonText:"Оформить онлайн",link:t,types:[d.g.UNPLATFORM]},{id:2,image:L.Z,text:"В мобильном приложении <br /> Финуслуг",types:[d.g.UNPLATFORM],buttonText:"Скачать приложение",link:n},{id:3,image:w.Z,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",types:[d.g.REFERAL],buttonText:"Оформить на сайте банка",link:t},{id:4,image:N.Z,text:e,types:[d.g.REFERAL],buttonText:"Выбрать другую карту",link:"/kreditnye_karty"},{id:6,image:N.Z,text:e,types:[d.g.MASS],buttonText:"Подобрать карту",link:s},{id:5,image:y.Z,text:"Чтобы оформить карту,<br /> обратитесь в банк",types:[d.g.MASS]}].filter(e=>e.types.find(e=>e===l)&&!(e.link===n&&u))},[t,n,l,u,s]);return(0,o.jsx)("div",{className:M().container,children:(0,o.jsx)(P.B,{className:r,title:"Где оформить кредитную карту",pageUrl:a,id:x.VT,isMobile:i,slides:_,offerType:l})})};var B=a(25675),O=a.n(B),I=a(54228),E=a(89554),D=a.n(E);let Z=[{id:1,image:{src:"/kredity/assets/_next/static/media/banner-1.524ed134.svg",height:208,width:300,blurWidth:0,blurHeight:0},text:"Войдите на Финуслуги <br /> по номеру телефона"},{id:2,image:{src:"/kredity/assets/_next/static/media/banner-2.9f5cd55d.svg",height:230,width:300,blurWidth:0,blurHeight:0},text:"Заполните анкету и отправьте <br /> заявку в банки"},{id:3,image:{src:"/kredity/assets/_next/static/media/banner-3.ff701cae.svg",height:208,width:300,blurWidth:0,blurHeight:0},text:"Дождитесь звонка или смс от банка,<br /> вам сообщат как получить карту"}],U=(0,c.memo)(e=>{let{bankName:t=""}=e,a=(0,I.S0)();return(0,o.jsxs)("section",{id:x.Hf,className:D().container,children:[(0,o.jsxs)("h2",{className:D().title,children:[(0,o.jsxs)("span",{children:["Как оформить кредитную карту от ",t]})," ",(0,o.jsx)("span",{className:D().ebaniText,children:"Финуслугах"})]}),(0,o.jsx)("div",{className:D().sliderContainer,children:(0,o.jsx)(u.iR,{options:{slidesPerView:a?1:3,spaceBetween:a?16:32,centeredSlides:a},pagination:!0,children:Z.map(e=>(0,o.jsxs)(u.wI,{className:D().bannerCard,children:[(0,o.jsxs)("span",{className:D().badge,children:["Шаг ",e.id]}),(0,o.jsx)("p",{className:D().text,dangerouslySetInnerHTML:{__html:e.text}}),(0,o.jsx)(O(),{width:300,height:208,alt:"banner"+e.id,src:e.image})]},e.id))})})]})});U.displayName="CardHowApplyLoanSteps";var V=a(86010),Y=a(77019),W=a(24443),H=a(28644),K=a(90999),z=a(72798),G=a(39918),Q=a(6517),q=a.n(Q);let J={[d.g.UNPLATFORM]:"Оформить онлайн",[d.g.REFERAL]:"Оформить на сайте банка",[d.g.MASS]:"Подобрать карту"},X={[d.g.UNPLATFORM]:{eventActionText:"Oformit onlayn",eventAction:G.i.link},[d.g.REFERAL]:{eventActionText:"Oformit na sayte banka",eventAction:G.i.link},[d.g.MASS]:{eventActionText:"oformit_online_seo",eventAction:G.i.button}},$=(0,c.memo)(e=>{let{offerType:t,href:a,pageUrl:n,id:l}=e;return(0,o.jsx)(u.zx,{as:"a",onClick:()=>{let{eventAction:e,eventActionText:a}=X[t];(0,G.D)({eventCategory:n,eventAction:e,eventActionText:a,eventLabel:l})},href:a,target:"_blank",className:q().button,children:J[t]})});$.displayName="GetCardButton";var ee=a(66566),et=a(94466),ea=a(18418),en=a(93478),el=a(75946),ei=a.n(el);let er=e=>{let{offerType:t,pageUrl:a,data:n,isMobile:l,bank:i,amount:r,handleAmountChange:s,urlGivingCard:_}=e,[p,m]=(0,c.useState)(!1),f=(0,c.useRef)(null),g=n.credit_limit_from,v=n.credit_limit_to,h=1!==n.installment_plan,b=(0,c.useCallback)(()=>{f.current&&f.current.focus()},[]),C=(e,t)=>{var r,s;return(0,o.jsx)(K.F,{url:n.url,bank:{logoMob:null==i?void 0:i.logo_mob,url:"/banki/".concat(null==i?void 0:i.url),name:null!==(r=null==i?void 0:i.name)&&void 0!==r?r:n.bank_name},pageUrl:a,title:"Кредитная карта \xab".concat(n.title,"\xbb от ").concat(null!==(s=null==i?void 0:i.name)&&void 0!==s?s:n.bank_name),moreAboutLinkText:e?"":t?"":"Подробнее о карте",scrollBlockId:x.q6,isSmall:t,isMobile:l,className:e?ei().promo:void 0})},j=(0,c.useCallback)(()=>{m(!0)},[]);g=g<1?1:g;let k="Лимит карты от ".concat((0,et.uf)(g)," ₽ до ").concat((0,et.uf)(v)," ₽"),A=r>v?"Максимальная сумма - ".concat((0,et.uf)(v)," ₽"):null,N=r<g?"Минимальная сумма - ".concat((0,et.uf)(g)," ₽"):null,y=(0,c.useMemo)(()=>{let e=[{label:"Льготный период",value:0===n.grace_period?"Нет":"до ".concat(n.grace_period," дней"),description:"Льготным называется период, в течение которого банк не начисляет проценты за платежи, сделанные кредиткой.<br /> <br /> Срок льготного периода определяет банк. Если погашать задолженность до окончания беспроцентного периода, пользоваться кредиткой можно бесплатно."},{label:"Комиссия за обслуживание",value:n.cost_free?"Бесплатно":"object"==typeof n.cost_c_text?n.cost_c_text.content:n.cost_c_text}],t=n.full_price;return t&&e.push({label:"ПСК",value:(0,Y.W)(t),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,et.sz)(n.interest_rate_from,n.interest_rate_to)}),e},[n.cost_c_text,n.cost_free,n.full_price,n.grace_period,n.interest_rate_from,n.interest_rate_to]),T=t===d.g.UNPLATFORM?"Как оформить карту":"Где оформить карту",w=(0,c.useMemo)(()=>{let e=new Date;e.setDate(e.getDate());let t=e.getDate(),a=e.getMonth()+1,n=e.getFullYear();return"Деньги у вас до ".concat(t," ").concat((0,ee.$)("".concat(a,"-").concat(t,"-").concat(n)))},[]);return(0,o.jsxs)("div",{className:(0,V.Z)(ei().container,{[ei().containerFull]:h}),children:[h&&C(h,!1),(0,o.jsxs)("div",{className:ei().left,children:[!h&&C(h,!0),h&&(0,o.jsx)(W.y,{isMobile:l,title:"Настройка лимита кредитки",pageUrl:a,infoLink:{isShow:!0,text:"Подробнее о карте",idScrollBlock:x.q6,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"moneyInput",props:{label:"Сумма",state:A||N?"error":void 0,caption:A||N?k:void 0,value:r,onChange:s,onFocus:j}}]}],isExpandSettings:p,onToggleSettings:()=>m(e=>!e)}),(0,o.jsx)(z.S,{isSmall:!0,className:ei().qrDesc})]}),(0,o.jsxs)("div",{className:ei().right,children:[(0,o.jsx)(H.y,{captionTitle:w,pageUrl:a,onEdit:b,amount:r,disclaimer:"Предварительные условия. Не оферта",tag:n.online_application.commercial_desc,tagTheme:"yellow",footerActions:(0,o.jsxs)(o.Fragment,{children:[(t===d.g.REFERAL||t===d.g.UNPLATFORM||t===d.g.MASS)&&(0,o.jsx)($,{pageUrl:a,id:n.id,href:_,offerType:t}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.zx,{onClick:()=>{let e=t===d.g.UNPLATFORM?x.Hf:x.VT;(0,G.D)({eventCategory:a,eventAction:G.i.button,eventActionText:T}),(0,en.l)(e,{offset:l?0:-100,position:"top"})},className:ei().button,variant:"secondary",children:T}),(0,o.jsx)(u.zx,{className:(0,V.Z)(ei().button,ei().buttonLink),appearance:"ghost",iconRight:(0,o.jsx)(ea.Z,{}),label:"Не подходит предложение?",onClick:()=>{let e=x.dM;(0,G.D)({eventCategory:a,eventAction:G.i.button,eventActionText:"Не подходит предложение?"}),(0,en.l)(e,{offset:l?0:-100,position:"top"})},size:"s",variant:"purple"})]})]}),valuesList:y}),(0,o.jsx)(z.S,{isSmall:!0,className:ei().qrMob})]})]})};var eo=a(13442),es=a(23056),ec=a(84135),ed=a(32244),eu=a(54826),e_=a(84053),ep=a(44735),em=a(94347),ef=a(14866),eg=a.n(ef);let ev=(0,c.memo)(e=>{let{pageUrl:t,bank:a,banks:n,currentCardId:l,offers:i,offersFinuslugi:r,cardTypes:s,contactlessCardTypes:d,className:u}=e,{town:_,region:p}=(0,em.T)(),[m,f]=(0,c.useState)(),v=(0,c.useCallback)(()=>{f(void 0)},[]),b=(0,c.useCallback)(e=>{(0,G.D)({eventCategory:t,eventAction:G.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[t]),C=(0,c.useMemo)(()=>{let e=i?i.filter(e=>e.id!==l):[];return(0,ed.$)({productList:e,anotherList:e,count:h.NU})},[i,l]),j=(0,c.useMemo)(()=>{let e=r||[];return(0,ed.$)({productList:e,anotherList:e,count:h.wo-C.length})},[C.length,r]),k=(0,c.useMemo)(()=>({bankList:C.map(e=>(0,eu.Q)({banks:[a],card:e,isPlatform:!1})),finuslugiList:j.map(e=>(0,eu.Q)({banks:n,card:e,isPlatform:!0}))}),[a,n,C,j]),A=(0,c.useCallback)(e=>{if(!e)return;let t=[C,j].reduce((e,t)=>[...e,...t],[]).find(t=>t.id===e.id);if(t){var a,n;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!==(a=e.detailUrl)&&void 0!==a?a:"",logo:e.logo,url:null!==(n=e.url)&&void 0!==n?n:""}}},[C,j]),N=(0,c.useCallback)(e=>{f(A(e)),e&&(0,G.D)({eventCategory:t,eventAction:G.i.popup,eventActionText:e.title,eventLabel:e.id})},[A,t]),y=void 0!==p?"/".concat(ep.ON).concat(p.url).concat(void 0!==_?"/".concat(_.url):""):"",T="".concat((0,e_.ZR)().mainBaseUrl,"/banki/").concat(a.url,"/kreditnye_karty").concat(y);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("section",{id:x.Tm,className:(0,V.Z)(eg().container,u),children:[(0,o.jsx)("h3",{className:eg().title,children:"Другие кредитные карты"}),(0,o.jsxs)(g.t,{children:[!!k.bankList.length&&(0,o.jsxs)("section",{className:eg().offersListContainer,children:[(0,o.jsxs)("p",{className:eg().listTitle,children:["Кредитные карты от ",a.name]}),k.bankList.map(e=>(0,o.jsx)(c.Fragment,{children:(0,o.jsx)(es.g,{className:eg().listItem,data:e,eventCategory:t,text:"Подать заявку",onDetailInfoClick:N,onClick:b},e.url)},e.id)),(0,o.jsx)(eo.j,{offPadding:!0,text:"Bсе предложения от банка",href:T,target:"_blank",iconColor:"light",mainPageUrl:t})]}),!!k.finuslugiList.length&&(0,o.jsxs)("section",{className:eg().offersListContainer,children:[(0,o.jsx)("p",{className:eg().listTitle,children:"Кредитные карты на Финуслугах"}),k.finuslugiList.map(e=>(0,o.jsx)(c.Fragment,{children:(0,o.jsx)(es.g,{className:eg().listItem,data:e,eventCategory:t,text:"Подать заявку",onClick:b,onDetailInfoClick:N},e.url)},e.id)),(0,o.jsx)(eo.j,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/kreditnye_karty",target:"_blank",iconColor:"light",mainPageUrl:t})]})]})]}),(0,o.jsx)(ec.h,{data:m,isOpen:!!m,onClose:v,cardTypes:s,contactlessCardTypes:d,mainPageUrl:t})]})});ev.displayName="CardsList";var eh=a(73897),eb=a(65737),ex=a(86605),eC=a(96462),ej=a(51469),ek=a(87994),eA=a(71276),eN=a(79375),ey=a(53487),eT=a(37502),ew=a(44215),eL=a(12389),eP=a.n(eL);function eS(e){var t,a;let{offer:n,journal:l,questions:i,cardTypes:r,contactlessCardTypes:s,offerType:_,description:b,banks:x,refererTag:C,offers:j,offersFinuslugi:k,support:N}=e,y=(0,I.S0)(),T=(0,eC.a)(h.tE),w=(0,ex.K)({bannersTitle:[h.su.CARD_DETAIL,h.su.DEBETS_CARD_DETAIL],queryParams:T}),{region:L,town:P}=(0,em.T)(),[S,R]=(0,c.useState)(null!==(t=n.credit_limit_to)&&void 0!==t?t:0),M=(0,c.useCallback)(e=>{R(null!=e?e:0)},[]),B=(0,ek.Jf)(n,(0,ek.vB)(),{amount:S.toString()}),O=(0,eN.h)(B),E=eh.u.KARTY,D=x.find(e=>+e.id===n.bank_id),Z=i.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,m.MK)(e.data.html)).join("").trim()}))||[],V="".concat("Кредитная карта"," \xab").concat(n.title,"\xbb от ").concat(null!==(a=null==D?void 0:D.name_r)&&void 0!==a?a:"");b=null!=b?b:"";let Y=[d.g.PLATFORM,d.g.UNPLATFORM].includes(_);return(0,o.jsxs)("main",{className:eP().page,children:[(0,o.jsx)(f.N,{productId:String(n.id),title:V,description:b}),(0,o.jsx)(eA.o,{}),(0,o.jsx)(ej.g,{questions:Z}),(0,o.jsx)("div",{className:eP().navigationWrapper,children:(0,o.jsx)(g.t,{children:(0,o.jsx)(u.Oo,{className:eP().breadcrumbs,items:(()=>{var e;let t=(null==P?void 0:P.name_p)||(null==L?void 0:L.name_p)?" в ".concat((null==P?void 0:P.name_p)||(null==L?void 0:L.name_p)):"",a="".concat((null==L?void 0:L.url)?"/reg_".concat(null==L?void 0:L.url):"").concat((null==P?void 0:P.url)?"/".concat(null==P?void 0:P.url):""),l=[{label:"Главная",href:"/"},{label:"Кредитные карты".concat(t),href:"/".concat(E).concat(a)}];return C&&l.push({label:"".concat(C.name).concat(t),href:"/".concat(E,"/teg_").concat(C.url).concat(a)}),l.push({label:"".concat(null!==(e=null==D?void 0:D.name)&&void 0!==e?e:n.bank_name," Кредитка ").concat(n.title)}),l})()})})}),(0,o.jsx)(g.t,{children:(0,o.jsx)(er,{offerType:_,pageUrl:E,data:n,bank:D,cardTypes:r,contactlessCardTypes:s,isMobile:y,bannerUrls:w,amount:S,handleAmountChange:M,urlGivingCard:O})}),(0,o.jsx)(g.t,{children:(0,o.jsx)(A,{data:n,pageUrl:E,cardTypes:r,contactlessCardTypes:s,bank:D})}),Y&&(0,o.jsx)(U,{bankName:null==D?void 0:D.name_r}),(0,o.jsx)(F,{pageUrl:E,bannerUrl:w.card_detail,isMobile:y,offerType:_,url:n.online_application.url,urlGivingCard:B}),D&&(0,o.jsx)(ev,{pageUrl:E,bank:D,banks:x,currentCardId:n.id,offers:j,offersFinuslugi:k,cardTypes:r,contactlessCardTypes:s}),(0,o.jsx)(v.n,{url:"/master_podbora_kredita",mainPageUrl:E,text:"Войдите на Финуслуги и заполните небольшую анкету, а мы подберем для вас несколько кредитных карт на выбор"}),l.length>0&&(0,o.jsx)(ey.t,{posts:l,eventCategory:E}),(0,o.jsx)("div",{className:eP().supportSection,children:(0,o.jsx)(eT.B,{value:N})}),(0,o.jsx)("div",{className:eP().faqSection,children:(0,o.jsx)(ew.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,o.jsx)(p(),{...e}),dataLayerPush:eb.l,questions:Z,eventCategory:"cards_support_block",href:"".concat((0,e_.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про кредитные карты"})})]})}var eR=a(27003),eM=a(65709),eF=a(32368),eB=a(60007);async function eO(){return(await (0,eM.$u)("Cards.json?tags&short=1")).card_tags.reduce((e,t)=>(t.name!==ep.V4&&e.set(t.url,function(e){let{name:t,url:a,url_redirect:n}=e,l={name:t,url:a},i=(0,eB.d)(n);return void 0!==i&&(l.url_redirect=i),l}(t)),e),new Map)}new eF.$(eO);var eI=a(53850);a(51138),a(21952);var eE=a(45752);a(48206);let eD=e=>{let{banks:t,cardTypes:a,contactlessPaymentTypes:n,offer:l,offerType:i,journal:r,questions:s,description:c,layout:d,refererTag:u,offers:_,offersFinuslugi:p,support:m}=e;return(0,o.jsx)(eE.A,{data:d,children:(0,o.jsx)(eS,{offerType:i,offer:l,cardTypes:a,contactlessCardTypes:n,journal:r,questions:s,description:c,banks:t,refererTag:u,offers:_,offersFinuslugi:p,support:m})})};a(98670),a(22504);var eZ=a(11163),eU=a(64596),eV=a(63231),eY=a.n(eV);function eW(e){let{inRegion:t,bestOffers:a}=e;return a.length?(0,o.jsxs)("div",{className:eY().bestOffers,children:[(0,o.jsxs)("h2",{className:eY().title,children:["Лучшие предложения по кредитным картам ",t]}),(0,o.jsx)("div",{className:eY().content,children:(0,o.jsx)("div",{className:eY().contentInner,children:(0,o.jsx)("div",{className:eY().list,children:a.map(e=>(0,o.jsx)(eH,{...e},e.id))})})})]}):null}let eH=e=>{let{url:t,logo:a,topCardAdvantage:n,bottomCardAdvantage:l,bankName:i,id:r,description:s}=e;return(0,o.jsxs)("div",{className:eY().card,children:[(0,o.jsxs)("div",{className:eY().cardHeading,children:[(0,o.jsx)("div",{className:eY().cardIcon,children:(0,o.jsx)(O(),{width:56,height:56,src:a,alt:"logo"})}),(0,o.jsxs)("div",{className:eY().cardHeadingContent,children:[(0,o.jsx)("p",{className:eY().cardHeadingSubtitle,children:i?s:""}),(0,o.jsx)("p",{className:eY().cardHeadingTitle,children:i||s})]})]}),(0,o.jsxs)("div",{className:eY().cardAdvantage,children:[(0,o.jsx)("div",{className:eY().captionWrapper,children:(0,o.jsx)("p",{className:eY().cardAdvantageTitle,children:n.title})}),(0,o.jsx)("p",{className:eY().cardAdvantageValue,children:n.value})]}),(0,o.jsxs)("div",{className:eY().cardAdvantage,children:[(0,o.jsx)("p",{className:eY().cardAdvantageTitle,children:l.title}),(0,o.jsx)("p",{className:eY().cardAdvantageValue,children:l.value})]}),(0,o.jsx)(u.zx,{as:"a",className:eY().cardBtn,href:t,children:"Подробнее"})]},r)};var eK=a(66535),ez=a(58484),eG=a(91646),eQ=a(97995);function eq(){return(eq=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 eJ=function(e){return c.createElement("svg",eq({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),l||(l=c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h16v16H0z"})))),i||(i=c.createElement("g",{clipPath:"url(#a)"},c.createElement("path",{fill:"#4C5058",d:"M8 14.66A6.66 6.66 0 0 1 1.33 8c0-3.69 2.98-6.67 6.67-6.67A6.66 6.66 0 0 1 14.66 8c0 3.68-2.98 6.66-6.66 6.66m0-1.33a5.335 5.335 0 1 0-.01-10.67A5.335 5.335 0 0 0 8 13.33M8.66 8h2.67v1.33h-4V4.66h1.33z"}))))},eX=a(7766),e$=a(56790),e0=a(78846),e1=a(65618),e6=a(77624),e3=a(26616),e4=a(40741),e2=a(23259),e5=a(86992),e8=a(26885),e7=a(35719),e9=a.n(e7);let te=(0,e1.b)(),tt=(0,e1.b)();function ta(e){var t,a,n;let{filter:l,cards:i,isMobile:r,modalActiveField:s,banks:d,onChangeFilter:_,onClose:p}=e,m=(0,c.useMemo)(()=>(0,e6.n)(d,l.banks),[d,l.banks]),f=(0,c.useCallback)(()=>{p(),(0,en.l)(x.Tm,{offset:r?0:-140,position:"top"})},[p,r]),g=(0,c.useCallback)(e=>{"Enter"===e.key&&f()},[f]),v=(0,c.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;te(()=>{(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(eQ.zj),eventValue:t})}),_({cardLimit:t})},[_]),h=(0,c.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;tt(()=>{(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(eQ.BS),eventValue:t})}),_({gracePeriod:t})},[_]),b=(e,t)=>a=>{let n=[],l=[];if(Array.isArray(a)){var i;n=null==a?void 0:a.map(e=>{let{value:t}=e;return t}),l=null!==(i=null==a?void 0:a.map(e=>{let{label:t}=e;return t}))&&void 0!==i?i:[]}else n=a.value,l=[a.label];_({[e]:n}),(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(t),eventValue:(0,e4.b)(l.join(","))})},C=()=>{_({installmentCard:!0,cardType:void 0}),(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)("Карта рассрочки"),eventValue:"on"})},j=e=>{if(l[e])return{value:l[e],label:""}};return(0,o.jsxs)("div",{onKeyDown:g,children:[(0,o.jsxs)("div",{className:e9().fields,children:[(0,o.jsx)(e5.P,{value:l.cardLimit,label:eQ.zj,onChange:v,onKeyDown:e=>(0,e3.u)(e,f)}),(0,o.jsx)(u.Rn,{value:l.gracePeriod,label:eQ.BS,onChange:h,autoFocus:s===e0.h.period,onKeyDown:e=>(0,e3.u)(e,f),withoutControls:!0}),(0,o.jsx)(u.Ph,{label:"Привилегии и бонусы для карты",value:j("vipPrivilege"),onChange:b("vipPrivilege","Привилегии и бонусы для карты"),options:eQ.kE,isOpen:s===e0.h.vipPrivilege}),(0,o.jsx)(u.Ph,{label:"Подтверждение дохода",value:null!==(n=null===(t=l.incomeProofs)||void 0===t?void 0:t.map(e=>({value:e,label:""})))&&void 0!==n?n:void 0,selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:b("incomeProofs","Подтверждение дохода"),options:eQ.wf,multiple:!0,isOpen:s===e0.h.proofIncome}),(0,o.jsx)(u.Ph,{label:"Банки",value:(null===(a=l.banks)||void 0===a?void 0:a.map(e=>({value:e,label:""})))||[],selectedValue:e=>e.length>1?"Выбрано (".concat(e.length,")"):e[0].label,onChange:b("banks","Банки"),options:m,multiple:!0,isOpen:s===e0.h.bank}),(0,o.jsx)(u.Ph,{label:"Тип продукта",value:j("installmentCard")?{value:eQ.is,label:""}:j("cardType"),onChange:e=>{if(!e)return;let{value:t,label:a}=e;if(t===eQ.is){C();return}l.installmentCard?(_({installmentCard:void 0,cardType:String(t)}),(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(a),eventValue:(0,e4.b)(a)})):b("cardType","Тип продукта")(e)},options:i,isOpen:s===e0.h.cardType})]}),(0,o.jsx)("div",{className:e9().settings,children:(0,o.jsx)("div",{className:e9().settingsLeftBlock,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h6",{className:e9().settingsTitle,children:"Сортировать"}),(0,o.jsx)("div",{className:e9().radioGroup,children:eQ.$m.map(e=>(0,o.jsx)(u.Y8,{name:e.field,onChange:()=>{_({sort:e.field}),(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)("Сортировать"),eventValue:(0,e4.b)(e.label)})},checked:e.field===l.sort,className:e9().radio,value:e.field,label:e.label},e.field))})]})})})]})}function tn(e){let{filter:t,banks:a,cards:n,offersCount:l,isMobile:i,isOpenModal:r,onChangeFilter:s,onClose:d,onDrop:u,onShow:_}=e,p=(0,e2.I)(),[m,f]=(0,c.useState)(),g=(0,c.useCallback)(()=>{f(void 0),d()},[d]);(0,c.useEffect)(()=>{r&&(0,eb.l)({event:"data-event",eventAction:"show_pop_up_podbor_kredita",eventCategory:eh.u.KARTY})},[r]);let v=(0,c.useCallback)(()=>{_(),(0,en.l)(x.Tm,{offset:i?0:-140,position:"top"})},[_,i]);return(0,o.jsx)(e$.h,{children:(0,o.jsx)(eX.D,{isMobile:i,isOpen:r,onClose:g,onCLickShow:()=>{v(),g()},onClickReset:()=>{u()},pageUrl:eh.u.KARTY,title:"Все параметры",count:l,footerContent:p&&(0,o.jsx)(e8.Z,{className:e9().adfox,config:p,params:{pp:"ehod",ps:"foam",p2:"hojk"}}),children:(0,o.jsx)("div",{className:e9().content,children:(0,o.jsx)(ta,{filter:t,count:l,cards:n,isMobile:i,modalActiveField:m,banks:a,onChangeFilter:s,onClose:g})})})})}var tl=a(15729),ti=a(6584);let tr=(e,t,a)=>{var n,l,i;let r=[],o=(0,tl.z)().unit;if(r.push({id:e0.h.amount,label:"Кредитный лимит: от ".concat(e.cardLimit||"1 ".concat(o))}),r.push({id:e0.h.period,label:"Льготный период: от ".concat(e.gracePeriod||1," ").concat((0,ti.SV)(e.gracePeriod||1))}),null===(n=e.vipPrivilege)||void 0===n?void 0:n.length){let t=e.vipPrivilege,a=eQ.kE.find(e=>e.value===t);a&&r.push({id:e0.h.vipPrivilege,label:"".concat(a.label)})}if(e.cardType){let a=t[+e.cardType];a&&r.push({id:e0.h.cardType,label:"".concat(a.label)})}if(null===(l=e.incomeProofs)||void 0===l?void 0:l.length){let t=e.incomeProofs,a=eQ.wf.find(e=>e.value===t[0]),n="";n=1===t.length&&a?"не требуется"===a.label.toLocaleLowerCase()?"Подтверждение дохода: "+a.label:a.label:"Подтверждение дохода: (".concat(t.length,")"),r.push({id:e0.h.proofIncome,label:"".concat(n)})}if(null===(i=e.banks)||void 0===i?void 0:i.length){let t=e.banks,n=a.find(e=>String(e.id)===String(t[0])),l="";l=1===t.length&&n?": ".concat(n.name):" (".concat(t.length,")"),r.push({id:e0.h.bank,label:"Банки".concat(l)})}return r};var to=a(42968),ts=a(24178),tc=a(22584),td=a(62637),tu=a(91886),t_=a(66472),tp=a.n(t_),tm=a(38919);let tf=["bez_procentov","bez_otkaza","s_plohoj_kreditnoj_istoriej","dlya_snyatiya_nalichnyh","vygodnie","bez_spravok"],tg=(0,e1.b)(),tv=(0,e1.b)(),th=(0,e1.b)(),tb=(0,c.memo)(e=>{let{region:t,cards:a,town:n,filter:l,tag:i,tags:r,subtitle:s,isMobile:d,isOpenModal:_,banks:p,heading:m,offersCount:f,onFilterChange:g,onFilterApply:v,onModalOpen:h,onModalClose:b}=e,C=(0,e2.I)(),{push:j}=(0,eZ.useRouter)(),[k,A]=(0,c.useState)(l),N="".concat((0,e_.ZR)().trackerBaseUrl,"/click.php?key=4398fd8c597a4bd2a0158dcd37673503&amount=").concat(k.cardLimit),y=(0,eN.h)(N),T=(0,c.useCallback)(e=>{(0,eb.l)({event:"data-event",eventAction:e,eventCategory:eh.u.KARTY})},[]),w=(0,c.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;A(e=>{let a={...e,cardLimit:t};return tg(()=>{(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(eQ.zj),eventValue:t}),v(a)}),a})},[v]),L=(0,c.useRef)([]),P=(0,c.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;A(e=>{let a={...e,gracePeriod:t};return tv(()=>{(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(eQ.BS),eventValue:t}),v(a)}),a})},[v]),S=(0,c.useCallback)(()=>{(0,en.l)(x.Tm,{offset:d?0:-140,position:"top"})},[d]),{ref:R,isSticky:M}=(0,td.A)(),F=(0,c.useCallback)(e=>{j(e,void 0,{shallow:!0})},[j]),B=(0,c.useMemo)(()=>{let e=(0,tm.g)(r,"url");return tf.reduce((t,a)=>{let n=e[a];return void 0!==n&&t.push(n),t},[])},[r]),O=(0,c.useMemo)(()=>B.map(e=>{let a=e.url_redirect||e.url,l=(null==i?void 0:i.url)===a;return{value:(0,to.h)(eh.u.KARTY,l?void 0:e,t,n),label:e.name,color:l?"black":"default",onChipClick:F}}),[B,null==i?void 0:i.url,t,n,F]),I=(0,c.useMemo)(()=>{let e=tr(k,a,p);return L.current.length===e.length&&e.every((e,t)=>e.label===L.current[t].label&&e.id===L.current[t].id)?L.current:e},[a,k,p]),E=(0,c.useMemo)(()=>I.map(e=>{let{label:t,id:a}=e;return{label:t,value:a,color:"default",onChipClick:h}}),[I,h]),D=(0,c.useCallback)(e=>{A(t=>{let a={...t,...e};return th(()=>{g(a)}),a})},[g]),Z=(0,c.useCallback)(()=>{A({}),v({}),g({})},[v,g]),U=(0,c.useCallback)(()=>{v(k)},[k,v]);return(0,tu.rf)(()=>{A(l)},[l]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(ez.V,{region:t,town:n,title:m,subtitle:s,mainPageUrl:eh.u.KARTY}),(0,o.jsx)(eG.Z,{config:C,params:eQ.P3}),(0,o.jsxs)(eK.W2,{className:tp().container,children:[(0,o.jsxs)("div",{ref:R,className:tp().filter,children:[(0,o.jsxs)("div",{className:tp().fields,children:[(0,o.jsx)(e5.P,{className:tp().field,label:eQ.zj,value:k.cardLimit,onChange:w,onKeyDown:e=>(0,e3.u)(e,S)}),(0,o.jsx)(u.Rn,{className:tp().field,value:k.gracePeriod,label:eQ.BS,onChange:P,onKeyDown:e=>(0,e3.u)(e,S),withoutControls:!0})]}),d&&(0,o.jsx)("div",{className:tp().chipsRowMobile,children:(0,o.jsx)(ts.i,{chips:O,onParamsClick:h,useLinkChips:!0})}),(0,o.jsx)(u.zx,{onClick:()=>{T("anketa_click"),window.open(y,"_self")},size:"s",className:tp().fillButton,children:"Заполнить анкету"}),M&&(0,o.jsx)(tc.T,{chips:E,onParamsClick:h})]}),(0,o.jsxs)("div",{className:tp().timeCaption,children:[(0,o.jsx)(eJ,{}),"Это займёт не более 5 минут"]}),!d&&(0,o.jsx)("div",{className:(0,V.Z)(tp().chipsRow),children:(0,o.jsx)(ts.i,{chips:O,onParamsClick:h,useLinkChips:!0})})]})]}),(0,o.jsx)(tn,{offersCount:f,filter:k,banks:p,cards:a,isMobile:d,isOpenModal:_,onChangeFilter:D,onClose:b,onDrop:Z,onShow:U})]})});tb.displayName="CardsFilter";var tx=a(60041),tC=a(65848);let tj={pp:"h",ps:"foam",p2:"hojk"};var tk=a(38705),tA=a.n(tk),tN=a(14974),ty=a(38384),tT=a(423),tw=a(12865),tL=a.n(tw);function tP(){let e="Найдем кредитную карту именно для вас",t="Подобрать",a=eh.u.KARTY,n=(0,tT.TQ)();return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(p(),{className:tL().link,href:n,target:"_blank",onClick:()=>{(0,G.D)({eventCategory:a,eventAction:G.i.banner,eventLabel:(0,e4.b)(e),url:n})},children:(0,o.jsxs)(eK.W2,{className:tL().wrapper,children:[(0,o.jsx)(O(),{className:tL().image,src:tN.Z,alt:"woman"}),(0,o.jsx)(O(),{className:tL().mob_image,src:ty.Z,alt:"woman"}),(0,o.jsxs)("div",{className:tL().textWrapper,children:[(0,o.jsx)("h4",{className:tL().title,children:e}),(0,o.jsxs)("p",{className:tL().text,children:["Авторизуйтесь, заполните анкету ",(0,o.jsx)("br",{className:tL().br}),"и получите сразу несколько"," ",(0,o.jsx)("br",{className:tL().br}),"предложений"]})]}),(0,o.jsx)(u.zx,{className:tL().button,label:t,onClick:l=>{l.preventDefault(),l.stopPropagation(),(0,G.D)({eventCategory:a,eventAction:G.i.button,eventActionText:t,eventLabel:(0,e4.b)(e),url:n}),window.open(n,"_blank")}})]})})})}tP.displayName="CardsPersonalSelectionBanner";var tS=a(88060);let tR=(0,c.memo)(e=>{let{data:t,offersCount:a,adFoxConfig:n,isMoreLoading:l,onDetailInfoClick:i,handleClickItem:r,onLoadMoreOffers:s,page:d}=e,[u,_]=(0,c.useState)([]),p=d*eQ.BM<a;return(0,o.jsxs)("div",{className:tA().offersListContainer,children:[t.map((e,a)=>{var l;return(0,o.jsxs)(c.Fragment,{children:[(3===a||t.length<4&&2===a)&&(0,o.jsx)("div",{className:tA().adFox,children:(0,o.jsx)(tP,{})}),0===a&&(0,o.jsx)(e8.Z,{className:tA().adFox,config:n,params:tj}),(0,o.jsx)(es.g,{className:tA().listItem,data:e,eventCategory:eh.u.KARTY,onClick:r,handleExpandClick:e=>_(t=>[...t,e]),onDetailInfoClick:i}),(null===(l=e.rollupCredit)||void 0===l?void 0:l.length)&&u.includes(String(e.id))&&e.rollupCredit.map(t=>(0,o.jsx)("div",{className:tA().listItem,children:(0,o.jsx)(es.g,{className:tA().listItem,data:t,eventCategory:eh.u.KARTY,onClick:r,onDetailInfoClick:i})},"".concat(e.id,"_").concat(t.id)))]},e.id)}),l&&(0,o.jsx)(tC.O,{className:tA().listItem}),p&&(0,o.jsx)(tS.f,{page:d,loading:l,onClick:s})]})});tR.displayName="AnotherList";var tM=a(47860),tF=a(71e3),tB=a.n(tF);let tO=e=>{let{onChangeParams:t}=e;return(0,o.jsxs)("div",{className:tB().notFoundWrapper,children:[(0,o.jsx)(O(),{className:tB().infoIcon,src:tM.Z,alt:"?"}),(0,o.jsx)("p",{className:tB().notFoundText,children:"К сожалению, мы не нашли кредитов с такими параметрами"}),(0,o.jsx)(u.zx,{variant:"secondary",className:tB().changeParamsButton,onClick:t,children:"Изменить параметры"})]})};var tI=a(71147),tE=a(29023);let tD=eQ.$m.map(e=>({label:e.label,value:e.field})),tZ=(0,c.memo)(e=>{let{className:t,filter:a,offers:n,offersCount:l,cardTypes:i,contactlessCardTypes:r,adFoxConfig:s,subtitle:d,town:_,region:p,page:m,isOffersLoading:f,originalOffers:v,handleSortChange:h,onChangePage:b,onFilterModalOpen:C}=e,[j,k]=(0,c.useState)(),A=(0,c.useCallback)(e=>{if(!e)return;let t=v.find(t=>t.id===e.id);if(t){var a,n;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!==(a=e.detailUrl)&&void 0!==a?a:"",logo:e.logo,url:null!==(n=e.url)&&void 0!==n?n:"",license:e.license,licenseDate:e.licenseDate}}},[v]),N=(0,c.useCallback)(()=>{k(void 0)},[]),y=(0,c.useCallback)(e=>{(0,eb.l)({event:"data-event",eventAction:"click_link_".concat((0,e4.b)(e.title)),eventCategory:eh.u.KARTY,eventLabel:e.id})},[]),T=(0,c.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&t&&(0,eb.l)({event:"data-event",eventAction:"show_pop_up_".concat((0,e4.b)(e.title)),eventCategory:eh.u.KARTY,eventLabel:e.id}),k(A(e))},[A]),w=(0,c.useCallback)(e=>{let t=tD.find(t=>t.value===e);if(t){let n=a.order;n=a.sort===e&&"asc"===n?"desc":"asc",h(e,n),(0,eb.l)({event:"data-event",eventAction:eh.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)("Сортировать"),eventValue:(0,e4.b)(t.label)})}},[a.order,a.sort,h]),L=(0,c.useMemo)(()=>{var e;return(null!==(e=tD.find(e=>e.value===a.sort))&&void 0!==e?e:tD[0]).label},[a]);if(f&&1===m)return(0,o.jsx)("section",{className:(0,V.Z)(tA().container,t),children:(0,o.jsx)(g.t,{children:Array.from({length:12},(e,t)=>(0,o.jsx)(tC.O,{className:tA().listItem},t))})});let P=(null==p?void 0:p.name_p)!==void 0?(null==_?void 0:_.name_p)?"в ".concat(null==_?void 0:_.name_p):"в ".concat(null==p?void 0:p.name_p):null;return(0,o.jsxs)("section",{id:x.Tm,className:(0,V.Z)(tA().container,t),children:[(0,o.jsx)(g.t,{children:(0,o.jsxs)("div",{className:tA().title,children:[(0,o.jsxs)("div",{className:tA().titleCount,children:[l," ",(0,tI.s)(l)]}),(0,o.jsx)("div",{className:tA().dropdown_wrapper,children:(0,o.jsxs)(u.Lt,{placement:"bottom",children:[(0,o.jsxs)(u.WA,{children:[(0,o.jsx)(tx.Z,{})," ",(0,o.jsx)("span",{className:tA().sort_label,children:L})]}),(0,o.jsx)(u.Nv,{children:tD.map(e=>(0,o.jsx)(u.Qr,{label:e.label,onClick:()=>{w(e.value)}},e.value))})]})})]})}),0===l&&(0,o.jsx)(g.t,{children:(0,o.jsx)(tO,{onChangeParams:C})}),(0,o.jsxs)(g.t,{className:tA().listContainer,children:[n.length>0&&(0,o.jsx)(tR,{data:n,offersCount:l,isMoreLoading:f,onDetailInfoClick:T,handleClickItem:y,onLoadMoreOffers:()=>{b(m+1)},adFoxConfig:s,regionText:P,page:m}),(0,o.jsx)(tE.i,{tag:"p",className:tA().subtitle,children:d})]}),(0,o.jsx)(ec.h,{data:j,isOpen:!!j,onClose:N,cardTypes:i,contactlessCardTypes:r,mainPageUrl:eh.u.KARTY})]})});tZ.displayName="CardsList";var tU=a(66889);let tV=e=>e.map(e=>({id:e.id,bankName:e.bank_name,description:e.title,topCardAdvantage:{title:"Лимит",value:(0,et.dN)({from:e.credit_limit_from,to:e.credit_limit_to})},bottomCardAdvantage:{title:"Льготный период",value:"до ".concat(e.grace_period," дней")},logo:e.logo_mob,url:"".concat(eh.u.KARTY,"/").concat(e.url)}));var tY=a(61929),tW=a(63781),tH=a(93259),tK=a(29849),tz=a(76063),tG=a(60730);let tQ=[{title:"Банк",value:"bankName"},{title:"Льготный период",value:"periodValue"},{title:"Кредитный лимит",value:"amountFrom"},{title:"Обслуживание",value:"firstYearCost"},{title:"ПСК",value:"fullPrice"},{title:"Ставка",value:"procentRate"}];function tq(e,t){switch(t){case"bankName":return e.bankName.toLowerCase();case"periodValue":return e.period;case"amountFrom":return e.amountTo;case"firstYearCost":{let t=e.firstYearCost;if(!t)return 0;let a=t.trim().toLowerCase().replace(",",".").match(/-?\d+(\.\d+)?/);return a?Number(a[0]):0}case"fullPrice":var a,n;return null!==(n=null===(a=e.fullPrice)||void 0===a?void 0:a.from)&&void 0!==n?n:0;case"procentRate":return e.rateFrom;default:throw Error("Dead code branch")}}function tJ(e){let{offers:t}=e,[a,n]=(0,c.useState)("firstYearCost"),[l,i]=(0,c.useState)("asc"),r=(0,c.useMemo)(()=>(0,tG.k)(t,a,l,tq),[t,a,l]),s=(0,c.useMemo)(()=>r.map(e=>{let{id:t,bankName:a,firstYearCost:n,currency:l,amountTo:i,amountFrom:r,period:o,logo:s,fullPrice:c,rateFrom:d,rateTo:u}=e,_="".concat(o?"до "+o:o," ").concat((0,ti.SV)(o)).replace(".",",");return{id:t,logo:s,name:a,cells:[_,(0,et.dN)({from:r,to:i},{currency:l}),n,null!==c?(0,Y.W)(c):"",(0,et.sz)(d,u)]}}),[r]);return(0,o.jsx)(tz.D,{caption:"Онлайн-платформа Финуслуги позволяет подобрать кредит из представленных на сервисе предложений по кредитам. Окончательные условия определяются кредитным договором. ООО \xabМБ Маркетплейс\xbb и ПАО Московская Биржа не осуществляют банковские операции. Все предложения, отображенные в рейтинге, являются лучшими исключительно по мнению экспертов Финуслуги.ру.",columns:tQ,rows:s,sort:a,sortOrder:l,onSortChange:(e,t)=>{n(e),i(t)}})}var tX=a(93890),t$=a(84452),t0=a(91500);let t1=(e,t,a,n)=>e&&n&&n.region_page&&(t||n.region_page.region_content&&n.region_page.region_content.length)&&(!t||n.region_page.town_content&&n.region_page.town_content.length)?(t?n.region_page.town_content:n.region_page.region_content).map(n=>({title:(0,tH.Q)(n.title,e,t,a),text:(0,tH.Q)(n.content.map(tY.Rp).join(""),e,t,a)})):[],t6=(e,t,a,n)=>{let l=(0,tH.Q)(e.title?e.title:e.name),i=5+(e?e.id:0)+(t?t.id:0)+(a?a.id:0),r=!1;return"DEFAULT"===e.name&&(l=l.replace(/DEFAULT/g,"Базовый")),a?e.region_page&&e.region_page.town_titles&&e.region_page.town_titles.length?l=(0,tH.Q)(e.region_page.town_titles[i%e.region_page.town_titles.length],t,a,n):(r=n.indexOf(a.id)>=0,l+=" "+(0,tW.k)(a.name_p)+" "+a.name_p+(r?" ("+(null==t?void 0:t.name)+")":"")):t&&(e.region_page&&e.region_page.region_titles&&e.region_page.region_titles.length?l=(0,tH.Q)(e.region_page.region_titles[i%e.region_page.region_titles.length],t,a,n):l+=" "+(0,tW.k)(t.name_p)+" "+t.name_p),l};var t3=a(1557),t4=a(88572),t2=a(98216);async function t5(e){let t=await (0,eM.$u)("Cards.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new eI.dR("Cards tag not found: ".concat(e));return function(e){let{id:t,url:a,title:n,name:l,tag_name:i,text:r,filter:o,disable_filter:s,default:c,region_page:d,bank_region_page:u}=e,_={id:t,url:a,title:n,name:l,tag_name:i,text:r,default:c,bank_region_page:void 0!==u};if(null===o||""===o||s||c||(_.filter=function(e){let{card_limit:t,grace_period:a,vip_privilege:n,proof_income:l,bank_ids:i,card_type_ids:r}=e,o={};if(void 0!==t){let e=Number(t);isNaN(e)?console.warn("Invalid limit of card tag filter: ".concat(t)):o.cardLimit=e}if(void 0!==a){let e=Number(a);isNaN(e)?console.warn("Invalid grace period of card tag filter: ".concat(a)):o.gracePeriod=e}let s=Object.entries(n).reduce((e,t)=>{let[a,n]=t;return 1===n&&e.push(a),e},[]);return s.length>0&&(o.vipPrivilege=s.join()),Array.isArray(l)?l.length>0&&(o.incomeProofs=l):o.incomeProofs=[l],i.length>0&&(o.banks=i.map(String)),r.length>0&&(o.cardType=r.join()),o}(o)),null!==d){let{region_titles:e,town_titles:t,region_content:a,town_content:n}=d;_.region_page={region_titles:e,town_titles:t,region_content:a,town_content:n}}return _}(t[0])}new eF.n(t5);var t8=a(12261),t7=a(46079),t9=a(23652);let ae=(0,c.memo)(e=>{let{name:t,description:a,offersCount:n,offers:l,banks:i}=e,r=function(e,t,a,n,l){let{mainBaseUrl:i,basePath:r}=(0,e_.ZR)();if(0===n.length)return;let o=(e,t)=>({"@type":"QuantitativeValue",name:"Процентная ставка",minValue:Number(e),maxValue:Number(t)}),s=(e,t,a)=>({"@type":"MonetaryAmount",name:a,minValue:e,maxValue:t,currency:"RUB"}),c=e=>{var t;let a=l.find(t=>Number(e.bank_id)===Number(t.id));if(void 0===a)throw Error("There is no bank for the credit card");let n="string"==typeof a.legal_entities?JSON.parse(a.legal_entities)[0].legal_address:null===(t=a.legal_entities[0])||void 0===t?void 0:t.address,r=e.title,c=o(e.interest_rate_from,e.interest_rate_to),d=s(e.credit_limit_from,e.credit_limit_to,r),u=n?(0,t7.f)(n):void 0,_="".concat(i,"/").concat(eh.u.KARTY,"/").concat(e.url);return{"@type":"Offer",itemOffered:{"@type":"CreditCard",name:r,url:_,feesAndCommissionsSpecification:_,category:"Кредитные карты",annualPercentageRate:c,amount:d},potentialAction:{"@type":"Action",name:"Оформить",url:(0,ek.Jf)(e,(0,ek.vB)())},provider:{"@type":"BankOrCreditUnion",name:a.name,url:"".concat(i,"/banki/").concat(a.url),image:a.logo_mob,telephone:a.phone,address:u}}},d=()=>n.reduce((e,t)=>{let a=c(t);return e.lowPrice=Math.min(e.lowPrice,t.credit_limit_from),e.highPrice=Math.max(e.highPrice,t.credit_limit_to),e.offers.push(a),e},{lowPrice:1/0,highPrice:0,offers:[]});return(()=>{let{lowPrice:n,highPrice:l,offers:o}=d();return{"@context":"https://schema.org","@type":"Product",name:e,description:t,image:"".concat(i).concat(r,"/images/logo-1200x630.jpg"),aggregateRating:{"@type":"AggregateRating",ratingValue:4.6,reviewCount:2232,bestRating:5,worstRating:1},offers:{"@type":"AggregateOffer",url:"".concat(i,"/").concat(eh.u.KARTY),highPrice:l,lowPrice:n,priceCurrency:"RUB",offerCount:a,offers:o}}})()}(t,a,n,l,i);return void 0===r?null:(0,o.jsx)(t9.V,{schema:r})});ae.displayName="CardOffersSchema";var at=a(17954),aa=a(27480),an=a(39741),al=a(30975),ai=a(38090),ar=a(78575),ao=a(1256),as=a.n(ao);let ac=[(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)("span",{children:"Войдите на Финуслуги с помощью"}),(0,o.jsx)(an.i,{})]},0),(0,o.jsx)(c.Fragment,{children:"Заполните анкету, мы подберем предложения специально для вас"},1),(0,o.jsx)(c.Fragment,{children:"Выберите предложение и отправьте заявку в банк — прямо на Финуслугах"},2),(0,o.jsx)(c.Fragment,{children:"Дождитесь одобрения, банк свяжется c вами и расскажет, как получить деньги"},3)],ad=e=>{var t,a;let{tag:n,cards:l,cardRegion:i,regions:r,banks:s,townDublicates:d,tags:u,cardTypes:_,contactlessCardTypes:v,expertQuote:h,defaultFilter:b,support:C}=e,j=(0,I.S0)(),{asPath:k,query:A}=(0,eZ.useRouter)(),{region:N,town:y}=(0,em.T)(),T=(0,e2.I)();(0,t4._B)(t4.kv.CreditCard);let{mainBaseUrl:w}=(0,e_.ZR)(),[L,P]=(0,c.useState)(n),[S,R]=(0,c.useState)([]),[M,F]=(0,c.useState)(l),[B,O]=(0,c.useState)(!1),[E,D]=(0,c.useState)(1),[Z,U]=(0,c.useState)(),[Y,W]=(0,c.useState)(!1),[H,K]=(0,c.useState)(h),{segments:z}=A,G=null!==(a=null===(t=(0,at.q)(z).find(ep.AL))||void 0===t?void 0:t.slice(ep.dZ.length))&&void 0!==a?a:ep.V4,{title:Q,subtitle:q,description:J,offers:X,count:$}=M;(0,c.useEffect)(()=>{k.includes("purpose")&&(0,en.l)(x.Tm,{offset:j?0:-100,position:"top"})},[]),(0,tu.rf)(()=>{(0,eM.m6)("cards/tag?".concat("url","=").concat(G)).then(P),(0,t2.j)()},[G]),(0,c.useEffect)(()=>{(0,eU.F)().then(e=>{let t=e.data||void 0;t&&R(tV(t))})},[]);let et=(0,t8.iN)(k);(0,tu.rf)(()=>{(0,ai.r5)(et).then(K)},[et]);let ea=(()=>{let e={...N},t={...y},a=e.deposits_count,n=t.deposits_count,l=new Date,i=l.getDate(),r=l.getMonth()+1,o=l.getFullYear(),s=(0,ee.$)("".concat(r,"-").concat(i,"-").concat(o)),c="",u=$,_=Q;if(N){let e=d.indexOf((null==y?void 0:y.id)||0)>=0;c=y?" ".concat((0,tW.k)(y.name_p)," ").concat(y.name_p).concat(e?" (".concat(N.name,")"):""):" ".concat((0,tW.k)(N.name_p)," ").concat(N.name_p),u=n||a||12500}if(_){let e={"{min_credits_rate}":"".concat(14),"{credits_count}":"".concat(2*u),"{date}":"".concat(i," ").concat(s," ").concat(o,"г.")};return Object.keys(e).forEach(t=>{_=null==_?void 0:_.replace(new RegExp(t),e[t])}),_}return L?t6(L,null!=N?N:null,null!=y?y:null,d):"Кредиты".concat(c," с максимальной ставкой ").concat(14,"% годовых на сегодня ").concat(i," ").concat(s," ").concat(o,"г. ").concat(2*u," aктуальных депозитов – открыть вклад").concat(c," на Финуслуги.ру")})(),{filter:el,setFilter:ei}=function(){let{query:e,push:t}=(0,eZ.useRouter)(),{cardLimit:a,gracePeriod:n,vipPrivilege:l,incomeProofs:i,banks:r,cardType:o,installmentCard:s,sort:d,order:u,..._}=e,p=(0,c.useMemo)(()=>(function(e){let{cardLimit:t,gracePeriod:a,vipPrivilege:n,incomeProofs:l,banks:i,cardType:r,installmentCard:o,order:s,sort:c}=e,d={};return"string"==typeof t&&(d.cardLimit=Number(t)),"string"==typeof a&&(d.gracePeriod=Number(a)),"string"==typeof n&&(d.vipPrivilege=n),"string"==typeof l&&(d.incomeProofs=(0,t8.SP)(l)),"string"==typeof i&&(d.banks=(0,t8.SP)(i)),"string"==typeof r&&(d.cardType=r),"1"===o&&(d.installmentCard=!0),"string"==typeof c&&(d.sort=c),"string"==typeof s&&(d.order=s),d})({cardLimit:a,gracePeriod:n,vipPrivilege:l,incomeProofs:i,banks:r,cardType:o,installmentCard:s,sort:d,order:u}),[a,n,l,i,r,o,s,d,u]),m=(0,c.useRef)(_),f=(0,c.useRef)(p),g=(0,c.useRef)(t);return m.current=_,f.current=p,g.current=t,{filter:p,setFilter:(0,c.useCallback)(e=>{var t,a,n,l,i,r,o,s,c;if((t=f.current).cardLimit===e.cardLimit&&t.gracePeriod===e.gracePeriod&&t.vipPrivilege===e.vipPrivilege&&(null===(a=t.incomeProofs)||void 0===a?void 0:a.length)===(null===(n=e.incomeProofs)||void 0===n?void 0:n.length)&&(null===(l=t.incomeProofs)||void 0===l?void 0:l.slice().sort().toString())===(null===(i=e.incomeProofs)||void 0===i?void 0:i.slice().sort().toString())&&(null===(r=t.banks)||void 0===r?void 0:r.length)===(null===(o=e.banks)||void 0===o?void 0:o.length)&&(null===(s=t.banks)||void 0===s?void 0:s.slice().sort().toString())===(null===(c=e.banks)||void 0===c?void 0:c.slice().sort().toString())&&t.cardType===e.cardType&&t.installmentCard===e.installmentCard&&t.sort===e.sort&&t.order===e.order)return!1;let d={...function(e){let{cardLimit:t,gracePeriod:a,vipPrivilege:n,incomeProofs:l,banks:i,cardType:r,installmentCard:o,sort:s,order:c}=e,d={};return void 0!==t&&(d.cardLimit=String(t)),void 0!==a&&(d.gracePeriod=String(a)),void 0!==n&&(d.vipPrivilege=n),void 0!==l&&(d.incomeProofs=(0,t8.ln)(l)),void 0!==i&&(d.banks=(0,t8.ln)(i)),void 0!==r&&(d.cardType=r),o&&(d.installmentCard="1"),void 0!==s&&(d.sort=s),void 0!==c&&(d.order=c),d}(e),...m.current};return g.current({query:d},void 0,{shallow:!0}),!0},[])}}(),er=(0,c.useMemo)(()=>({...b,...L.filter,...el}),[b,L,el]),eo=(0,c.useMemo)(()=>(0,tU.IH)(er,s,X),[er,s,X]),es=(0,c.useMemo)(()=>(function(e){let{cards:t,creditTags:a,creditRegion:n,regions:l,banks:i,tag:r,region:s,town:c,townDublicates:d=[]}=e,u=eh.u.KARTY,_="Карты",p="карт",f=[],g=(0,t$.V)({offers:t,getBankKey:e=>e.bankId,getAmount:e=>e.amountTo,getRate:e=>e.rateTo}).slice(0,10);g.length>2&&f.push({title:(0,tH.Q)("Рейтинг ".concat(p," ").concat(s||c?(0,tW.k)(c?c.name:null==s?void 0:s.name)+" "+(c?c.name_p:null==s?void 0:s.name_p):""," в {year} году"),s,c,d),text:(0,o.jsx)(tJ,{offers:g})}),!s&&(null==r?void 0:r.default)!==1&&(null==r?void 0:r.text)&&Array.isArray(r.text)&&r.text.forEach(e=>{f.push({title:(0,tH.Q)(e.title,s,c,d),text:(0,o.jsx)(m.Ln,{data:(0,tH.W)(e,s,c,d,void 0,r).content})})}),(null==r?void 0:r.default)===1&&(null==r?void 0:r.text)&&Array.isArray(r.text)&&r.text.forEach(e=>{f.push({title:(0,tH.Q)(e.title,s,c,d),text:(0,o.jsx)(m.Ln,{data:(0,tH.W)(e,s,c,d,void 0,r).content})})});let v=t1(s,c,d,r);v&&v.length&&v.forEach(e=>{f.push({title:(0,tH.Q)(e.title,s,c,d),text:(0,o.jsx)(m.Ln,{data:[{type:tY.yB.Html,data:{html:e.text}}]})})}),f.push(...(0,t0.a)(u,l,r,s,c,{nominativeCase:_,genitiveCase:p}));let h=a.reduce((e,t)=>{if(void 0===t.url_redirect){let a=(0,to.h)(u,t,s,c),n=(0,tX.q9)(a,t.name);e.push(n)}return e},[]);f.push({title:"Виды ".concat(p),text:(0,o.jsx)(tX.oP,{children:h})});let b=(()=>{if(0===i.length)return[];let e=n?n.card_interest_rates:[],t=i.filter(t=>e.some(e=>(e.fk_id||e.fk_id)===t.id)),a=t.filter(e=>tT.VZ.includes(e.url)),l=t.filter(e=>!tT.VZ.includes(e.url)),o=(0,tK.o)(a,5),d=(0,tK.o)(l,7),u=(e,t)=>{var a;let n=(null===(a=t.region_ids)||void 0===a?void 0:a.length)?[s,c]:[void 0,void 0],l=(0,to.h)("banki/".concat(t.url),(null==r?void 0:r.bank_region_page)?r:void 0,...n);return"".concat(e).concat(l)};return[...o,...d].map(e=>{var t;let a="".concat(r&&(null==r?void 0:r.default)!==1&&(null==r?void 0:r.bank_region_page)?r.name:_," ").concat(e.name_r," ").concat(s&&(null===(t=e.region_ids)||void 0===t?void 0:t.length)?(0,tW.k)(c?c.name:s.name)+" "+(c?c.name_p:s.name_p):""),n=u((0,e_.ZR)().mainBaseUrl,e);return(0,tX.XM)(n,a)})})();return b.length>0&&f.push({title:"".concat(_," от банков"),text:(0,o.jsx)(tX.oP,{children:b})}),(()=>{let e=new Set;return f.filter(t=>{let{title:a}=t,n=e.has(a);return n||e.add(a),!n})})()})({cards:eo,creditTags:u,creditRegion:i,regions:r,banks:s,tag:L,region:N,town:y,townDublicates:d}),[s,u,eo,N,i,r,L,y,d]),ec=(0,c.useMemo)(()=>[{id:eQ.is,title:"Карта рассрочки"},..._].map(e=>({value:String(e.id),label:e.title})),[_]),ed=(null==y?void 0:y.name_p)||(null==N?void 0:N.name_p)?" в ".concat((null==y?void 0:y.name_p)||(null==N?void 0:N.name_p)):"",eu=(0,c.useCallback)(()=>{O(!0)},[]),ef=(0,c.useCallback)(()=>{O(!1)},[]),eg=null==N?void 0:N.url,ev=null==y?void 0:y.url,ex=(0,c.useCallback)(async e=>{D(e),W(!0);try{let t=await (0,eR.gJ)({tag:L.url,region:eg,town:ev,page:e,pageSize:eQ.BM,filter:er});e>1?F(e=>({...e,offers:[...e.offers,...t.offers]})):(F(t),U(void 0))}finally{W(!1)}},[L,eg,ev,er]),eC=(0,c.useCallback)(async e=>{let{sort:t,order:a,...n}=e;U((await (0,eR.gJ)({tag:L.url,region:eg,town:ev,filter:n,pageSize:0})).count)},[L.url,eg,ev]);(0,tu.rf)(()=>{ex(1)},[ex]);let ej=(0,c.useCallback)((e,t)=>{ei({...er,sort:e,order:t})},[ei,er]),ek="DEFAULT"!==L.tag_name?L.name:"Кредитные карты";return(0,o.jsxs)("main",{className:as().page,children:[(0,o.jsx)(f.N,{title:ea,description:null!=J?J:""}),(0,o.jsx)(t3.C,{title:ek,pageUrl:eh.u.KARTY,tag:L,inRegion:ed,pageTitle:"Кредитные карты"}),(0,o.jsx)(ae,{name:ek,description:null!=J?J:"",offersCount:$,offers:X,banks:s}),(0,o.jsx)(eA.o,{}),(0,o.jsx)(g.t,{className:as().filterContainer,children:(0,o.jsx)(tb,{region:N,cards:ec,town:y,heading:ek,subtitle:q,filter:er,banks:s,tag:L,tags:u,isMobile:j,isOpenModal:B,offersCount:null!=Z?Z:$,onFilterChange:eC,onFilterApply:ei,onModalOpen:eu,onModalClose:ef})}),(0,o.jsx)(aa.C,{steps:ac}),(0,o.jsx)(tZ,{contactlessCardTypes:v,cardTypes:_,offers:eo,originalOffers:X,offersCount:$,filter:er,adFoxConfig:T,subtitle:q,region:N,town:y,page:E,isOffersLoading:Y,handleSortChange:ej,onChangePage:ex,onFilterModalOpen:eu}),(0,o.jsx)("section",{className:(0,V.Z)(as().sectionWrapper,as().whiteBackground),children:(0,o.jsx)(g.t,{children:(0,o.jsx)(eW,{bestOffers:S,inRegion:ed})})}),void 0!==H&&(0,o.jsx)(ar.c,{quote:H}),(0,o.jsx)(al.n,{type:"bank"}),(0,o.jsx)(ew.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,o.jsx)(p(),{...e}),dataLayerPush:eb.l,questions:es,eventCategory:"credits_support_block",href:"".concat(w,"/help/credits"),checkAllText:"Читать все вопросы про кредиты"}),i.posts.length>0&&(0,o.jsx)("section",{className:(0,V.Z)(as().sectionWrapper,as().sectionGray),children:(0,o.jsx)(ey.t,{posts:i.posts,eventCategory:eh.u.KARTY})}),(0,o.jsx)(eT.B,{value:C})]})};async function au(){let e=await (0,eM.$u)("CardsControl.json");if(e.cards_control.length<1)throw Error("Cards control not found");return e.cards_control.length>1&&console.warn("Cards control is invalid"),function(e){let{default_sort:t}=e;return{default_sort:"popular"!==t?t:"order"}}(e.cards_control[0])}(n=r||(r={})).Normal="0",n.Large="1",n.Small="2",new eF.$(au),a(35388),a(45522);let a_=e=>{let{tag:t,banks:a,cards:n,cardRegion:l,tags:i,cardTypes:r,contactlessCardTypes:s,layout:c,root:d,expertQuote:u,defaultFilter:_,support:p}=e;return(0,o.jsx)(eE.A,{data:c,withLocationConfirm:!0,children:(0,o.jsx)(ad,{tag:t,regions:d.regions,banks:a,townDublicates:d.town_dublicates,cards:n,cardRegion:l,tags:i,cardTypes:r,contactlessCardTypes:s,expertQuote:null!=u?u:void 0,defaultFilter:_,support:p})})};var ap=a(28254),am=a(80330),af=!0,ag=(0,c.memo)(function(e){var t,a;return(0,o.jsx)(s.sM,{children:e.isShowcase?(0,o.jsx)(ap.p,{region:null!==(t=e.region)&&void 0!==t?t:void 0,town:null!==(a=e.town)&&void 0!==a?a:void 0,children:(0,o.jsx)(a_,{...e})}):(0,o.jsx)(am.M,{children:(0,o.jsx)(eD,{...e})})})})},79553:function(e){e.exports={title:"Calculator_title__aC5Ud",container:"Calculator_container__vQuJ0",collapseArrow:"Calculator_collapseArrow__Fm8Vk",collapseArrowOpened:"Calculator_collapseArrowOpened__Fbqar",fieldsContainer:"Calculator_fieldsContainer__5Rp05",field:"Calculator_field__bwyfM",fieldRange:"Calculator_fieldRange__S3_lR",collapseContainerWrapper:"Calculator_collapseContainerWrapper__j_DVK",collapseContainer:"Calculator_collapseContainer__IoV8G",fieldWrapper:"Calculator_fieldWrapper__rsxlG",tooltip:"Calculator_tooltip__dzU9w",typeDescription:"Calculator_typeDescription__WHZqi",link:"Calculator_link__vCq4i",chips:"Calculator_chips__iGG5T",legend:"Calculator_legend__wV7NN",chipsForm:"Calculator_chipsForm__6FLk3",additionalItemsWrapper:"Calculator_additionalItemsWrapper__1sQJo",additionalItemsTitle:"Calculator_additionalItemsTitle__hVEvZ",additionalItem:"Calculator_additionalItem__lSSkX",divider:"Calculator_divider__hPQxY",additionalItemName:"Calculator_additionalItemName__CCT4N"}},12389:function(e){e.exports={page:"CardDetail_page__Psfrn",breadcrumbs:"CardDetail_breadcrumbs__tJVM3",faqSection:"CardDetail_faqSection__0TlAt",supportSection:"CardDetail_supportSection__QTey_",pickerSection:"CardDetail_pickerSection__CguFu"}},66482:function(e){e.exports={container:"CardApplySteps_container__2Xhp3"}},89554:function(e){e.exports={title:"CardHowApplyLoanSteps_title___sQd_",container:"CardHowApplyLoanSteps_container__heIEO",ebaniText:"CardHowApplyLoanSteps_ebaniText__AudVO",sliderContainer:"CardHowApplyLoanSteps_sliderContainer__P19Cl",bannerCard:"CardHowApplyLoanSteps_bannerCard__X4lgP",badge:"CardHowApplyLoanSteps_badge__NkpcY",text:"CardHowApplyLoanSteps_text__jyNZL"}},75946:function(e){e.exports={container:"CardInfo_container__Yw2_w",containerFull:"CardInfo_containerFull__I_JRI",promo:"CardInfo_promo__TbP4S",left:"CardInfo_left__FwPhu",right:"CardInfo_right__l5s_e",qrDesc:"CardInfo_qrDesc__C770I",qrMob:"CardInfo_qrMob__x4epT"}},14866:function(e){e.exports={title:"CardsList_title__JacbP",offersListContainer:"CardsList_offersListContainer__N0HS3",listTitle:"CardsList_listTitle__NsruL",container:"CardsList_container__O1yXa",listItem:"CardsList_listItem__BkR7Y"}},6517:function(e){e.exports={button:"GetCardButton_button__6zcF0",buttonLink:"GetCardButton_buttonLink__nN5D6"}},1256:function(e){e.exports={page:"Cards_page__Md3Pa",filterContainer:"Cards_filterContainer__UM6Qr",adFox:"Cards_adFox__7auDI",sectionWrapper:"Cards_sectionWrapper__67zZh",sectionGray:"Cards_sectionGray__aPWLJ",personalSelection:"Cards_personalSelection__31TJz",subtitle:"Cards_subtitle__5_4N7"}},63231:function(e){e.exports={bestOffers:"BestOffers_bestOffers__glL2I",title:"BestOffers_title__AkeWT",content:"BestOffers_content__SOgTO","content-inner":"BestOffers_content-inner__7NW6N",list:"BestOffers_list__U6COA",card:"BestOffers_card__f87Av",captionWrapper:"BestOffers_captionWrapper__m_RbR",cardHeading:"BestOffers_cardHeading__dsosc",cardIcon:"BestOffers_cardIcon__ZpdfX",cardBtn:"BestOffers_cardBtn__jgVm1",cardHeadingSubtitle:"BestOffers_cardHeadingSubtitle__vqTCH",cardHeadingTitle:"BestOffers_cardHeadingTitle__4glZX",cardAdvantage:"BestOffers_cardAdvantage__d3CtC",cardAdvantageTitle:"BestOffers_cardAdvantageTitle__bDIIt",cardAdvantageValue:"BestOffers_cardAdvantageValue__kTmOx",btnMore:"BestOffers_btnMore__YJpqB",btnMoreText:"BestOffers_btnMoreText__iw_QK",btnMoreIcon:"BestOffers_btnMoreIcon__Ym8ZI",tooltipIcon:"BestOffers_tooltipIcon__n7E5N"}},66472:function(e){e.exports={title:"CardsFilter_title__mTazg",link:"CardsFilter_link__GmpDD",fillButton:"CardsFilter_fillButton__YtISd",chipsRow:"CardsFilter_chipsRow__0thXO",timeCaption:"CardsFilter_timeCaption__lFw1x",chipsRowMobile:"CardsFilter_chipsRowMobile___ue66",container:"CardsFilter_container__ZGnOc",filter:"CardsFilter_filter__dBQI4",fields:"CardsFilter_fields__NkCs_",field:"CardsFilter_field__VvR2P",buttons:"CardsFilter_buttons__JPoOQ",filterButton:"CardsFilter_filterButton__A1AAh",modalButton:"CardsFilter_modalButton__Pk0XT",chips:"CardsFilter_chips__Diez3",checkbox:"CardsFilter_checkbox__QXkEM"}},35719:function(e){e.exports={title:"CardsFilterModal_title__iunUe",content:"CardsFilterModal_content___IKnh",fields:"CardsFilterModal_fields__xfkt7",settings:"CardsFilterModal_settings__1ycx_",settingsLeftBlock:"CardsFilterModal_settingsLeftBlock__7m2OP",settingsTitle:"CardsFilterModal_settingsTitle__9cOt_",tooltip:"CardsFilterModal_tooltip__VPsO5",iconTooltip:"CardsFilterModal_iconTooltip__vd_q1",radioGroup:"CardsFilterModal_radioGroup__rU6Rv",radio:"CardsFilterModal_radio__12bpv",buttonActions:"CardsFilterModal_buttonActions__ZtuOP",button:"CardsFilterModal_button__3DWYO",mobilePopup:"CardsFilterModal_mobilePopup__7LVro",adfox:"CardsFilterModal_adfox__frCdr"}},38705:function(e){e.exports={title:"CardsList_title__Z3i45",adFox:"CardsList_adFox__f4TPF",container:"CardsList_container__zD6fQ",titleHide:"CardsList_titleHide__tSVuE",titleCount:"CardsList_titleCount__NYsK3",sort_label:"CardsList_sort_label__DAeHG",filter:"CardsList_filter___BbhC",filterBottom:"CardsList_filterBottom__gFmKv",newLayout:"CardsList_newLayout__mf0y9",listItem:"CardsList_listItem__qlN_G",partnerList:"CardsList_partnerList__NDtZ_",listContainer:"CardsList_listContainer__IXPk0",subtitle:"CardsList_subtitle__aUm_M",ad:"CardsList_ad__lK7IP"}},71e3:function(e){e.exports={notFoundWrapper:"CardsNotFound_notFoundWrapper__Ms2xQ",searchIcon:"CardsNotFound_searchIcon__CTgBH",notFoundText:"CardsNotFound_notFoundText__Vwfpf",changeParamsButton:"CardsNotFound_changeParamsButton__1hId_"}},12865:function(e){e.exports={title:"CardsPersonalSelectionBanner_title__uWrKn",link:"CardsPersonalSelectionBanner_link__M7vq0",wrapper:"CardsPersonalSelectionBanner_wrapper__xtGEo",image:"CardsPersonalSelectionBanner_image__NZBEt",mob_image:"CardsPersonalSelectionBanner_mob_image__WPjZ0",textWrapper:"CardsPersonalSelectionBanner_textWrapper__ikcod",text:"CardsPersonalSelectionBanner_text__IKm5h",button:"CardsPersonalSelectionBanner_button__WJK1X",br:"CardsPersonalSelectionBanner_br__ukGUd"}},12321:function(e){e.exports={hide:"YaAdFoxBanner_hide__jMhj_"}}},function(e){e.O(0,[6832,5249,2935,4581,5675,1127,3996,3803,3898,1936,60,4591,6345,1193,2888,9774,179],function(){return e(e.s=77841)}),_N_E=e.O()}]);