(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(35417)}])},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]})}},35417:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return am},default:function(){return af}});var n,l,i,r,o=a(85893),s=a(44076),c=a(67294);a(40847),a(89521),a(93188);var d=a(14433),u=a(34588),_=a(25675),p=a.n(_),m=a(41664),f=a.n(m),g=a(44895),v=a(73172),h=a(368),b=a(84444),x=a(19438),C=a(45392),j=a(89504),k=a(54663),A=a(72335),N=a(57696);let y=[{id:1,label:"Условия",name:N.cZ.conditions},{id:2,label:"Требования",name:N.cZ.requirements},{id:3,label:"Лимиты и комиссии",name:N.cZ.commissions},{id:4,label:"Привилегии и бонусы",name:N.cZ.bonuses}],T=e=>{let{data:t,cardTypes:a,contactlessCardTypes:n}=e,l=(0,c.useMemo)(()=>(0,N.ap)(t,a,n),[t,a,n]),i=(0,c.useMemo)(()=>y.filter(e=>l[e.name].find(e=>!!e.value)),[l]);return{tabsContent:l,tabsList:i}},w=(0,c.memo)(e=>{var t,a;let{data:n,pageUrl:l,cardTypes:i,contactlessCardTypes:r,bank:s,offerType:c}=e,{tabsContent:d,tabsList:u}=T({data:n,cardTypes:i,contactlessCardTypes:r});return(0,o.jsx)(A.z,{scrollBlockId:k.q6,pageUrl:l,seoText:(null==n?void 0:n.short_description)&&(null==n?void 0:n.short_description.length)>5?null==n?void 0:n.short_description:void 0,title:"О кредитной карте",offerType:c,offerUpdateData:null==n?void 0:n.m_updated_at,bank:{logoMobile:null==s?void 0:s.logo_mob,description:null==s?void 0:s.short_description,url:"/banki/".concat(null==s?void 0:s.url),name:null==s?void 0:s.name,creditRating:null==s?void 0:s.credit_rating,netAssetsPlace:null==s?void 0:null===(t=s.ratings)||void 0===t?void 0:t.net_assets_place,netProfitRating:null==s?void 0:s.net_profit_rating},tabsList:u,tabsContent:d,aboutCompanyLabel:"О банке",site:null!==(a=null==s?void 0:s.site.title)&&void 0!==a?a:void 0})});w.displayName="CardAbout";var L=a(17722),P=a(94781),S=a(61043),M=a(93842),R=a(7283),F=a(64062),B=a(17950),O=a(6852),I=a(66482),E=a.n(I);let Z=e=>{let{url:t,pageUrl:a,bannerUrl:n,offerType:l,isMobile:i,className:r,urlGivingCard:s}=e,d=(0,O.S)(),u=(0,c.useMemo)(()=>{let e=B.g.REFERAL?"Эту кредитную карту сейчас нельзя открыть через Финуслуги":"Эту кредитную карту сейчас нельзя открыть онлайн на Финуслугах";return[{id:1,image:S.Z,text:"Оформите кредитную карту <br /> на сайте Финуслуг",buttonText:"Оформить онлайн",link:t,types:[B.g.UNPLATFORM]},{id:2,image:R.Z,text:"В мобильном приложении <br /> Финуслуг",types:[B.g.UNPLATFORM],buttonText:"Скачать приложение",link:n},{id:3,image:M.Z,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",types:[B.g.REFERAL],buttonText:"Оформить на сайте банка",link:t},{id:4,image:L.Z,text:e,types:[B.g.REFERAL],buttonText:"Выбрать другую карту",link:"/kreditnye_karty"},{id:6,image:L.Z,text:e,types:[B.g.MASS],buttonText:"Подобрать карту",link:s},{id:5,image:P.Z,text:"Чтобы оформить карту,<br /> обратитесь в банк",types:[B.g.MASS]}].filter(e=>e.types.find(e=>e===l)&&!(e.link===n&&d))},[t,n,l,d,s]);return(0,o.jsx)("div",{className:E().container,children:(0,o.jsx)(F.B,{className:r,title:"Где оформить кредитную карту",pageUrl:a,id:k.VT,isMobile:i,slides:u,offerType:l})})};var U=a(54228),D=a(89554),V=a.n(D);let Y=[{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 /> вам сообщат как получить карту"}],W=(0,c.memo)(e=>{let{bankName:t=""}=e,a=(0,U.S0)();return(0,o.jsxs)("section",{id:k.Hf,className:V().container,children:[(0,o.jsxs)("h2",{className:V().title,children:[(0,o.jsxs)("span",{children:["Как оформить кредитную карту от ",t]})," ",(0,o.jsx)("span",{className:V().ebaniText,children:"Финуслугах"})]}),(0,o.jsx)("div",{className:V().sliderContainer,children:(0,o.jsx)(u.iR,{options:{slidesPerView:a?1:3,spaceBetween:a?16:32,centeredSlides:a},pagination:!0,children:Y.map(e=>(0,o.jsxs)(u.wI,{className:V().bannerCard,children:[(0,o.jsxs)("span",{className:V().badge,children:["Шаг ",e.id]}),(0,o.jsx)("p",{className:V().text,dangerouslySetInnerHTML:{__html:e.text}}),(0,o.jsx)(p(),{width:300,height:208,alt:"banner"+e.id,src:e.image})]},e.id))})})]})});W.displayName="CardHowApplyLoanSteps";var H=a(86010),z=a(77019),K=a(24443),G=a(28644),Q=a(90999),q=a(72798),J=a(39918),X=a(6517),$=a.n(X);let ee={[B.g.UNPLATFORM]:"Оформить онлайн",[B.g.REFERAL]:"Оформить на сайте банка",[B.g.MASS]:"Подобрать карту"},et={[B.g.UNPLATFORM]:{eventActionText:"Oformit onlayn",eventAction:J.i.link},[B.g.REFERAL]:{eventActionText:"Oformit na sayte banka",eventAction:J.i.link},[B.g.MASS]:{eventActionText:"oformit_online_seo",eventAction:J.i.button}},ea=(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}=et[t];(0,J.D)({eventCategory:n,eventAction:e,eventActionText:a,eventLabel:l})},href:a,target:"_blank",className:$().button,children:ee[t]})});ea.displayName="GetCardButton";var en=a(66566),el=a(94466),ei=a(18418),er=a(93478),eo=a(75946),es=a.n(eo);let ec=e=>{let{offerType:t,pageUrl:a,data:n,isMobile:l,bank:i,amount:r,handleAmountChange:s,urlGivingCard:d}=e,[_,p]=(0,c.useState)(!1),m=(0,c.useRef)(null),f=n.credit_limit_from,g=n.credit_limit_to,v=1!==n.installment_plan,h=(0,c.useCallback)(()=>{m.current&&m.current.focus()},[]),b=(e,t)=>{var r,s;return(0,o.jsx)(Q.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:k.q6,isSmall:t,isMobile:l,className:e?es().promo:void 0})},x=(0,c.useCallback)(()=>{p(!0)},[]);f=f<1?1:f;let C="Лимит карты от ".concat((0,el.uf)(f)," ₽ до ").concat((0,el.uf)(g)," ₽"),j=r>g?"Максимальная сумма - ".concat((0,el.uf)(g)," ₽"):null,A=r<f?"Минимальная сумма - ".concat((0,el.uf)(f)," ₽"):null,N=(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,z.W)(t),description:"ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n    Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."},{label:"Процентная ставка",value:(0,el.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]),y=t===B.g.UNPLATFORM?"Как оформить карту":"Где оформить карту",T=(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,en.$)("".concat(a,"-").concat(t,"-").concat(n)))},[]);return(0,o.jsxs)("div",{className:(0,H.Z)(es().container,{[es().containerFull]:v}),children:[v&&b(v,!1),(0,o.jsxs)("div",{className:es().left,children:[!v&&b(v,!0),v&&(0,o.jsx)(K.y,{isMobile:l,title:"Настройка лимита кредитки",pageUrl:a,infoLink:{isShow:!0,text:"Подробнее о карте",idScrollBlock:k.q6,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"moneyInput",props:{label:"Сумма",state:j||A?"error":void 0,caption:j||A?C:void 0,value:r,onChange:s,onFocus:x}}]}],isExpandSettings:_,onToggleSettings:()=>p(e=>!e)}),(0,o.jsx)(q.S,{isSmall:!0,className:es().qrDesc})]}),(0,o.jsxs)("div",{className:es().right,children:[(0,o.jsx)(G.y,{captionTitle:T,pageUrl:a,onEdit:h,amount:r,disclaimer:"Предварительные условия. Не оферта",tag:n.online_application.commercial_desc,tagTheme:"yellow",footerActions:(0,o.jsxs)(o.Fragment,{children:[(t===B.g.REFERAL||t===B.g.UNPLATFORM||t===B.g.MASS)&&(0,o.jsx)(ea,{pageUrl:a,id:n.id,href:d,offerType:t}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.zx,{onClick:()=>{let e=t===B.g.UNPLATFORM?k.Hf:k.VT;(0,J.D)({eventCategory:a,eventAction:J.i.button,eventActionText:y}),(0,er.l)(e,{offset:l?0:-100,position:"top"})},className:es().button,variant:"secondary",children:y}),(0,o.jsx)(u.zx,{className:(0,H.Z)(es().button,es().buttonLink),appearance:"ghost",iconRight:(0,o.jsx)(ei.Z,{}),label:"Не подходит предложение?",onClick:()=>{let e=k.dM;(0,J.D)({eventCategory:a,eventAction:J.i.button,eventActionText:"Не подходит предложение?"}),(0,er.l)(e,{offset:l?0:-100,position:"top"})},size:"s",variant:"purple"})]})]}),valuesList:N}),(0,o.jsx)(q.S,{isSmall:!0,className:es().qrMob})]})]})};var ed=a(13442),eu=a(23056),e_=a(84135),ep=a(32244),em=a(54826),ef=a(84053),eg=a(44735),ev=a(94347),eh=a(14866),eb=a.n(eh);let ex=(0,c.memo)(e=>{let{pageUrl:t,bank:a,banks:n,currentCardId:l,offers:i,offersFinuslugi:r,cardTypes:s,contactlessCardTypes:u,className:_}=e,{town:p,region:m}=(0,ev.T)(),[f,g]=(0,c.useState)(),v=(0,c.useCallback)(()=>{g(void 0)},[]),h=(0,c.useCallback)(e=>{(0,J.D)({eventCategory:t,eventAction:J.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[t]),b=(0,c.useMemo)(()=>{let e=i?i.filter(e=>e.id!==l):[];return(0,ep.$)({productList:e,anotherList:e,count:j.NU})},[i,l]),C=(0,c.useMemo)(()=>{let e=r||[];return(0,ep.$)({productList:e,anotherList:e,count:j.wo-b.length})},[b.length,r]),A=(0,c.useMemo)(()=>({bankList:b.map(e=>(0,em.Q)({banks:[a],card:e,isPlatform:!1})),finuslugiList:C.map(e=>(0,em.Q)({banks:n,card:e,isPlatform:!0}))}),[a,n,b,C]),N=(0,c.useCallback)(e=>{if(!e)return;let t=[b,C].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:""}}},[b,C]),y=(0,c.useCallback)(e=>{g(N(e)),e&&(0,J.D)({eventCategory:t,eventAction:J.i.popup,eventActionText:e.title,eventLabel:e.id})},[N,t]),T=(0,c.useMemo)(()=>f?(0,d.E)(f):null,[f]),w=void 0!==m?"/".concat(eg.ON).concat(m.url).concat(void 0!==p?"/".concat(p.url):""):"",L="".concat((0,ef.ZR)().mainBaseUrl,"/banki/").concat(a.url,"/kreditnye_karty").concat(w);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("section",{id:k.Tm,className:(0,H.Z)(eb().container,_),children:[(0,o.jsx)("h3",{className:eb().title,children:"Другие кредитные карты"}),(0,o.jsxs)(x.t,{children:[!!A.bankList.length&&(0,o.jsxs)("section",{className:eb().offersListContainer,children:[(0,o.jsxs)("p",{className:eb().listTitle,children:["Кредитные карты от ",a.name]}),A.bankList.map(e=>(0,o.jsx)(c.Fragment,{children:(0,o.jsx)(eu.g,{className:eb().listItem,data:e,eventCategory:t,text:"Подать заявку",onDetailInfoClick:y,onClick:h},e.url)},e.id)),(0,o.jsx)(ed.j,{offPadding:!0,text:"Bсе предложения от банка",href:L,target:"_blank",iconColor:"light",mainPageUrl:t})]}),!!A.finuslugiList.length&&(0,o.jsxs)("section",{className:eb().offersListContainer,children:[(0,o.jsx)("p",{className:eb().listTitle,children:"Кредитные карты на Финуслугах"}),A.finuslugiList.map(e=>(0,o.jsx)(c.Fragment,{children:(0,o.jsx)(eu.g,{className:eb().listItem,data:e,eventCategory:t,text:"Подать заявку",onClick:h,onDetailInfoClick:y},e.url)},e.id)),(0,o.jsx)(ed.j,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/kreditnye_karty",target:"_blank",iconColor:"light",mainPageUrl:t})]})]})]}),(0,o.jsx)(e_.h,{data:f,isOpen:!!f,onClose:v,cardTypes:s,contactlessCardTypes:u,mainPageUrl:t,offerType:T})]})});ex.displayName="CardsList";var eC=a(73897),ej=a(65737),ek=a(86605),eA=a(96462),eN=a(51469),ey=a(87994),eT=a(71276),ew=a(44215),eL=a(89519),eP=a(12389),eS=a.n(eP);function eM(e){var t,a;let{offer:n,journal:l,questions:i,cardTypes:r,contactlessCardTypes:s,offerType:d,description:_,banks:m,refererTag:A,offers:N,offersFinuslugi:y}=e,T=(0,U.S0)(),L=(0,eA.a)(j.tE),P=(0,ek.K)({bannersTitle:[j.su.CARD_DETAIL,j.su.DEBETS_CARD_DETAIL],queryParams:L}),{region:S,town:M}=(0,ev.T)(),[R,F]=(0,c.useState)(null!==(t=n.credit_limit_to)&&void 0!==t?t:0),O=(0,c.useCallback)(e=>{F(null!=e?e:0)},[]),I=(0,ey.J)(n,ey.V.CreditCard,{amount:"".concat(R)}),E=eC.u.KARTY,D=m.find(e=>+e.id===n.bank_id),V=i.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,v.MK)(e.data.html)).join("").trim()}))||[],Y="".concat("Кредитная карта"," \xab").concat(n.title,"\xbb от ").concat(null!==(a=null==D?void 0:D.name_r)&&void 0!==a?a:"");_=null!=_?_:"";let H=[B.g.PLATFORM,B.g.UNPLATFORM].includes(d);return(0,o.jsxs)("main",{className:eS().page,children:[(0,o.jsx)(b.N,{productId:String(n.id),title:Y,description:_}),(0,o.jsx)(eT.o,{}),(0,o.jsx)(eN.g,{questions:V}),(0,o.jsx)("div",{className:eS().navigationWrapper,children:(0,o.jsx)(x.t,{children:(0,o.jsx)(u.Oo,{className:eS().breadcrumbs,items:(()=>{var e;let t=(null==M?void 0:M.name_p)||(null==S?void 0:S.name_p)?" в ".concat((null==M?void 0:M.name_p)||(null==S?void 0:S.name_p)):"",a="".concat((null==S?void 0:S.url)?"/reg_".concat(null==S?void 0:S.url):"").concat((null==M?void 0:M.url)?"/".concat(null==M?void 0:M.url):""),l=[{label:"Главная",href:"/"},{label:"Кредитные карты".concat(t),href:"/".concat(E).concat(a)}];return A&&l.push({label:"".concat(A.name).concat(t),href:"/".concat(E,"/teg_").concat(A.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)(x.t,{children:(0,o.jsx)(ec,{offerType:d,pageUrl:E,data:n,bank:D,cardTypes:r,contactlessCardTypes:s,isMobile:T,bannerUrls:P,amount:R,handleAmountChange:O,urlGivingCard:I})}),(0,o.jsx)(x.t,{children:(0,o.jsx)(w,{data:n,pageUrl:E,cardTypes:r,contactlessCardTypes:s,bank:D,offerType:d})}),H&&(0,o.jsx)(W,{bankName:null==D?void 0:D.name_r}),(0,o.jsx)(Z,{pageUrl:E,bannerUrl:P.card_detail,isMobile:T,offerType:d,url:n.online_application.url,urlGivingCard:I}),D&&(0,o.jsx)(ex,{pageUrl:E,bank:D,banks:m,currentCardId:n.id,offers:N,offersFinuslugi:y,cardTypes:r,contactlessCardTypes:s}),(0,o.jsx)(C.n,{url:"/master_podbora_kredita",mainPageUrl:E,text:"Войдите на Финуслуги и заполните небольшую анкету, а мы подберем для вас несколько кредитных карт на выбор"}),(0,o.jsx)(h.S,{posts:l.posts,categories:l.ctgs,pageUrl:E}),(0,o.jsxs)("div",{className:eS().supportSection,children:[(0,o.jsx)(eL.O,{idSupport:k.Je,Image:e=>(0,o.jsx)(p(),{...e,width:555,height:344,src:g.Z,alt:"фоновое изображение"}),dataLayerPush:ej.l,eventEmitter:()=>window.supportWidget.craftTalk.open()}),(0,o.jsx)(ew.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,o.jsx)(f(),{...e}),dataLayerPush:ej.l,questions:V,eventCategory:"cards_support_block",href:"".concat((0,ef.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про кредитные карты"})]})]})}var eR=a(27003),eF=a(65709),eB=a(32368),eO=a(60007);async function eI(){return(await (0,eF.$u)("Cards.json?tags&short=1")).card_tags.reduce((e,t)=>(t.name!==eg.V4&&e.set(t.url,function(e){let{name:t,url:a,url_redirect:n}=e,l={name:t,url:a},i=(0,eO.d)(n);return void 0!==i&&(l.url_redirect=i),l}(t)),e),new Map)}new eB.$(eI);var eE=a(53850);a(51138),a(96202);var eZ=a(37171);let eU=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}=e;return(0,o.jsx)(eZ.A,{data:d,children:(0,o.jsx)(eM,{offerType:i,offer:l,cardTypes:a,contactlessCardTypes:n,journal:r,questions:s,description:c,banks:t,refererTag:u,offers:_,offersFinuslugi:p})})};a(98670);var eD=a(11163),eV=a(64596),eY=a(63231),eW=a.n(eY);function eH(e){let{inRegion:t,bestOffers:a}=e;return a.length?(0,o.jsxs)("div",{className:eW().bestOffers,children:[(0,o.jsxs)("h2",{className:eW().title,children:["Лучшие предложения по кредитным картам ",t]}),(0,o.jsx)("div",{className:eW().content,children:(0,o.jsx)("div",{className:eW().contentInner,children:(0,o.jsx)("div",{className:eW().list,children:a.map(e=>(0,o.jsx)(ez,{...e},e.id))})})})]}):null}let ez=e=>{let{url:t,logo:a,topCardAdvantage:n,bottomCardAdvantage:l,bankName:i,id:r,description:s}=e;return(0,o.jsxs)("div",{className:eW().card,children:[(0,o.jsxs)("div",{className:eW().cardHeading,children:[(0,o.jsx)("div",{className:eW().cardIcon,children:(0,o.jsx)(p(),{width:56,height:56,src:a,alt:"logo"})}),(0,o.jsxs)("div",{className:eW().cardHeadingContent,children:[(0,o.jsx)("p",{className:eW().cardHeadingSubtitle,children:i?s:""}),(0,o.jsx)("p",{className:eW().cardHeadingTitle,children:i||s})]})]}),(0,o.jsxs)("div",{className:eW().cardAdvantage,children:[(0,o.jsx)("div",{className:eW().captionWrapper,children:(0,o.jsx)("p",{className:eW().cardAdvantageTitle,children:n.title})}),(0,o.jsx)("p",{className:eW().cardAdvantageValue,children:n.value})]}),(0,o.jsxs)("div",{className:eW().cardAdvantage,children:[(0,o.jsx)("p",{className:eW().cardAdvantageTitle,children:l.title}),(0,o.jsx)("p",{className:eW().cardAdvantageValue,children:l.value})]}),(0,o.jsx)(u.zx,{as:"a",className:eW().cardBtn,href:t,children:"Подробнее"})]},r)};var eK=a(66535),eG=a(58484),eQ=a(91646),eq=a(97995);function eJ(){return(eJ=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 eX=function(e){return c.createElement("svg",eJ({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"}))))},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,er.l)(k.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,ej.l)({event:"data-event",eventAction:eC.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,ej.l)({event:"data-event",eventAction:eC.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,ej.l)({event:"data-event",eventAction:eC.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(t),eventValue:(0,e4.b)(l.join(","))})},x=()=>{_({installmentCard:!0,cardType:void 0}),(0,ej.l)({event:"data-event",eventAction:eC.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)("Карта рассрочки"),eventValue:"on"})},C=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:C("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:C("installmentCard")?{value:eq.is,label:""}:C("cardType"),onChange:e=>{if(!e)return;let{value:t,label:a}=e;if(t===eq.is){x();return}l.installmentCard?(_({installmentCard:void 0,cardType:String(t)}),(0,ej.l)({event:"data-event",eventAction:eC.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,ej.l)({event:"data-event",eventAction:eC.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,isMobile:l,isOpenModal:i,onChangeFilter:r,onClose:s,onDrop:d,onShow:_}=e,p=(0,e2.I)(),[m,f]=(0,c.useState)(),g=(0,c.useCallback)(()=>{f(void 0),s()},[s]);(0,c.useEffect)(()=>{i&&(0,ej.l)({event:"data-event",eventAction:"show_pop_up_podbor_kredita",eventCategory:eC.u.KARTY})},[i]);let v=e=>{var t;let a=null!==(t=e.currentTarget.textContent)&&void 0!==t?t:"";(0,ej.l)({event:"data-event",eventAction:"click_button_".concat((0,e4.b)(a)),eventCategory:eC.u.KARTY})},h=(0,c.useCallback)(()=>{_(),(0,er.l)(k.Tm,{offset:l?0:-140,position:"top"})},[_,l]),b=(0,o.jsxs)("div",{className:e9().footer,children:[p&&(0,o.jsx)(e8.Z,{className:e9().adfox,config:p,params:{pp:"ehod",ps:"foam",p2:"hojk"}}),(0,o.jsxs)("div",{className:e9().buttonActions,children:[(0,o.jsx)(u.zx,{className:e9().button,onClick:()=>{h(),g()},children:"Показать"}),(0,o.jsx)(u.zx,{variant:"secondary",className:e9().button,onClick:e=>{v(e),d()},children:"Сбросить параметры"})]})]});return(0,o.jsx)(e$.h,{children:(0,o.jsx)(u.u_,{className:e9().mobilePopup,open:i,onClose:g,footer:{children:b},header:{title:"Все параметры"},size:"l",children:(0,o.jsx)("div",{className:e9().content,children:(0,o.jsx)(ta,{filter:t,cards:n,isMobile:l,modalActiveField:m,banks:a,onChangeFilter:r,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,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,onFilterChange:f,onModalOpen:g,onModalClose:v}=e,h=(0,e2.I)(),{push:b}=(0,eD.useRouter)(),[x,C]=(0,c.useState)(l),j="".concat((0,ef.ZR)().trackerBaseUrl,"/click.php?key=f043af323c732a65e8e5&amount=").concat(x.cardLimit),A=(0,c.useCallback)(e=>{(0,ej.l)({event:"data-event",eventAction:e,eventCategory:eC.u.KARTY})},[]),N=(0,c.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;C(e=>{let a={...e,cardLimit:t};return tg(()=>{(0,ej.l)({event:"data-event",eventAction:eC.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(eq.zj),eventValue:t}),f(a)}),a})},[f]),y=(0,c.useRef)([]),T=(0,c.useCallback)(e=>{let t=void 0!==e&&0!==e?Math.abs(e):void 0;C(e=>{let a={...e,gracePeriod:t};return tv(()=>{(0,ej.l)({event:"data-event",eventAction:eC.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)(eq.BS),eventValue:t}),f(a)}),a})},[f]),w=(0,c.useCallback)(()=>{(0,er.l)(k.Tm,{offset:d?0:-140,position:"top"})},[d]),{ref:L,isSticky:P}=(0,td.A)(),S=(0,c.useCallback)(e=>{b(e,void 0,{shallow:!0})},[b]),M=(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]),R=(0,c.useMemo)(()=>M.map(e=>{let a=e.url_redirect||e.url,l=(null==i?void 0:i.url)===a;return{value:(0,to.h)(eC.u.KARTY,l?void 0:e,t,n),label:e.name,color:l?"black":"default",onChipClick:S}}),[M,null==i?void 0:i.url,t,n,S]),F=(0,c.useMemo)(()=>{let e=tr(x,a,p);return y.current.length===e.length&&e.every((e,t)=>e.label===y.current[t].label&&e.id===y.current[t].id)?y.current:e},[a,x,p]),B=(0,c.useMemo)(()=>F.map(e=>{let{label:t,id:a}=e;return{label:t,value:a,color:"default",onChipClick:g}}),[F,g]),O=(0,c.useCallback)(e=>{C({...x,...e})},[x]),I=(0,c.useCallback)(()=>{f({})},[f]),E=(0,c.useCallback)(()=>{f(x)},[x,f]);return(0,tu.rf)(()=>{C(l)},[l]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(eG.V,{region:t,town:n,title:m,subtitle:s,mainPageUrl:eC.u.KARTY}),(0,o.jsx)(eQ.Z,{config:h,params:eq.P3}),(0,o.jsxs)(eK.W2,{className:tp().container,children:[(0,o.jsxs)("div",{ref:L,className:tp().filter,children:[(0,o.jsxs)("div",{className:tp().fields,children:[(0,o.jsx)(e5.P,{label:eq.zj,value:x.cardLimit,onChange:N,onKeyDown:e=>(0,e3.u)(e,w)}),(0,o.jsx)(u.Rn,{value:x.gracePeriod,label:eq.BS,onChange:T,onKeyDown:e=>(0,e3.u)(e,w),withoutControls:!0})]}),d&&(0,o.jsx)("div",{className:tp().chipsRowMobile,children:(0,o.jsx)(ts.i,{chips:R,onParamsClick:g,useLinkChips:!0})}),(0,o.jsx)(u.zx,{onClick:()=>{A("anketa_click"),window.open(j,"_self")},size:"s",className:tp().fillButton,children:"Заполнить анкету"}),P&&(0,o.jsx)(tc.T,{chips:B,onParamsClick:g})]}),(0,o.jsxs)("div",{className:tp().timeCaption,children:[(0,o.jsx)(eX,{}),"Это займёт не более 5 минут"]}),!d&&(0,o.jsx)("div",{className:(0,H.Z)(tp().chipsRow),children:(0,o.jsx)(ts.i,{chips:R,onParamsClick:g,useLinkChips:!0})})]})]}),(0,o.jsx)(tn,{filter:x,banks:p,cards:a,isMobile:d,isOpenModal:_,onChangeFilter:O,onClose:v,onDrop:I,onShow:E})]})});th.displayName="CardsFilter";var tb=a(60041),tx=a(65848);let tC={pp:"h",ps:"foam",p2:"hojk"};var tj=a(38705),tk=a.n(tj),tA=a(14974),tN=a(38384),ty=a(423),tT=a(12865),tw=a.n(tT);function tL(){let e="Найдем кредитную карту именно для вас",t="Подобрать",a=eC.u.KARTY,n=(0,ty.TQ)();return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(f(),{className:tw().link,href:n,target:"_blank",onClick:()=>{(0,J.D)({eventCategory:a,eventAction:J.i.banner,eventLabel:(0,e4.b)(e),url:n})},children:(0,o.jsxs)(eK.W2,{className:tw().wrapper,children:[(0,o.jsx)(p(),{className:tw().image,src:tA.Z,alt:"woman"}),(0,o.jsx)(p(),{className:tw().mob_image,src:tN.Z,alt:"woman"}),(0,o.jsxs)("div",{className:tw().textWrapper,children:[(0,o.jsx)("h4",{className:tw().title,children:e}),(0,o.jsxs)("p",{className:tw().text,children:["Авторизуйтесь, заполните анкету ",(0,o.jsx)("br",{className:tw().br}),"и получите сразу несколько"," ",(0,o.jsx)("br",{className:tw().br}),"предложений"]})]}),(0,o.jsx)(u.zx,{className:tw().button,label:t,onClick:l=>{l.preventDefault(),l.stopPropagation(),(0,J.D)({eventCategory:a,eventAction:J.i.button,eventActionText:t,eventLabel:(0,e4.b)(e),url:n}),window.open(n,"_blank")}})]})})})}tL.displayName="CardsPersonalSelectionBanner";var tP=a(88060);let tS=(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:tk().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:tk().adFox,children:(0,o.jsx)(tL,{})}),0===a&&(0,o.jsx)(e8.Z,{className:tk().adFox,config:n,params:tC}),(0,o.jsx)(eu.g,{className:tk().listItem,data:e,eventCategory:eC.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:tk().listItem,children:(0,o.jsx)(eu.g,{className:tk().listItem,data:t,eventCategory:eC.u.KARTY,onClick:r,onDetailInfoClick:i})},"".concat(e.id,"_").concat(t.id)))]},e.id)}),l&&(0,o.jsx)(tx.O,{className:tk().listItem}),p&&(0,o.jsx)(tP.f,{page:d,loading:l,onClick:s})]})});tS.displayName="AnotherList";var tM=a(47860),tR=a(71e3),tF=a.n(tR);let tB=e=>{let{onChangeParams:t}=e;return(0,o.jsxs)("div",{className:tF().notFoundWrapper,children:[(0,o.jsx)(p(),{className:tF().infoIcon,src:tM.Z,alt:"?"}),(0,o.jsx)("p",{className:tF().notFoundText,children:"К сожалению, мы не нашли кредитов с такими параметрами"}),(0,o.jsx)(u.zx,{variant:"secondary",className:tF().changeParamsButton,onClick:t,children:"Изменить параметры"})]})};var tO=a(71147),tI=a(29023);let tE=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:_,town:p,region:m,page:f,isOffersLoading:g,originalOffers:v,handleSortChange:h,onChangePage:b,onFilterModalOpen:C}=e,[j,A]=(0,c.useState)(),N=(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:""}}},[v]),y=(0,c.useMemo)(()=>{let e=null;return j&&(e=(0,d.E)(j)),e},[j]),T=(0,c.useCallback)(()=>{A(void 0)},[]),w=(0,c.useCallback)(e=>{(0,ej.l)({event:"data-event",eventAction:"click_link_".concat((0,e4.b)(e.title)),eventCategory:eC.u.KARTY,eventLabel:e.id})},[]),L=(0,c.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&t&&(0,ej.l)({event:"data-event",eventAction:"show_pop_up_".concat((0,e4.b)(e.title)),eventCategory:eC.u.KARTY,eventLabel:e.id}),A(N(e))},[N]),P=(0,c.useCallback)(e=>{let t=tE.find(t=>t.value===e);if(t){let n=a.order;n=a.sort===e&&"asc"===n?"desc":"asc",h(e,n),(0,ej.l)({event:"data-event",eventAction:eC.u.KARTY,eventCategory:"filter_catalog",eventLabel:(0,e4.b)("Сортировать"),eventValue:(0,e4.b)(t.label)})}},[a.order,a.sort,h]),S=(0,c.useMemo)(()=>{var e;return(null!==(e=tE.find(e=>e.value===a.sort))&&void 0!==e?e:tE[0]).label},[a]);if(g&&1===f)return(0,o.jsx)("section",{className:(0,H.Z)(tk().container,t),children:(0,o.jsx)(x.t,{children:Array.from({length:12},(e,t)=>(0,o.jsx)(tx.O,{className:tk().listItem},t))})});let M=(null==m?void 0:m.name_p)!==void 0?(null==p?void 0:p.name_p)?"в ".concat(null==p?void 0:p.name_p):"в ".concat(null==m?void 0:m.name_p):null;return(0,o.jsxs)("section",{id:k.Tm,className:(0,H.Z)(tk().container,t),children:[(0,o.jsx)(x.t,{children:(0,o.jsxs)("div",{className:tk().title,children:[(0,o.jsxs)("div",{className:tk().titleCount,children:[l," ",(0,tO.s)(l)]}),(0,o.jsx)("div",{className:tk().dropdown_wrapper,children:(0,o.jsxs)(u.Lt,{placement:"bottom",children:[(0,o.jsxs)(u.WA,{children:[(0,o.jsx)(tb.Z,{})," ",(0,o.jsx)("span",{className:tk().sort_label,children:S})]}),(0,o.jsx)(u.Nv,{children:tE.map(e=>(0,o.jsx)(u.Qr,{label:e.label,onClick:()=>{P(e.value)}},e.value))})]})})]})}),0===l&&(0,o.jsx)(x.t,{children:(0,o.jsx)(tB,{onChangeParams:C})}),(0,o.jsxs)(x.t,{className:tk().listContainer,children:[n.length>0&&(0,o.jsx)(tS,{data:n,offersCount:l,isMoreLoading:g,onDetailInfoClick:L,handleClickItem:w,onLoadMoreOffers:()=>{b(f+1)},adFoxConfig:s,regionText:M,page:f}),(0,o.jsx)(tI.i,{tag:"p",className:tk().subtitle,children:_})]}),(0,o.jsx)(e_.h,{data:j,isOpen:!!j,onClose:T,cardTypes:i,contactlessCardTypes:r,mainPageUrl:eC.u.KARTY,offerType:y})]})});tZ.displayName="CardsList";var tU=a(66889);let tD=e=>e.map(e=>({id:e.id,bankName:e.bank_name,description:e.title,topCardAdvantage:{title:"Лимит",value:(0,el.dN)({from:e.credit_limit_from,to:e.credit_limit_to})},bottomCardAdvantage:{title:"Льготный период",value:"до ".concat(e.grace_period," дней")},logo:e.logo_mob,url:"".concat(eC.u.KARTY,"/").concat(e.url)}));var tV=a(61929),tY=a(63781),tW=a(93259),tH=a(29849),tz=a(76063),tK=a(60730);let tG=[{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 tq(e){let{offers:t}=e,[a,n]=(0,c.useState)("firstYearCost"),[l,i]=(0,c.useState)("asc"),r=(0,c.useMemo)(()=>(0,tK.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,el.dN)({from:r,to:i},{currency:l}),n,null!==c?(0,z.W)(c):"",(0,el.sz)(d,u)]}}),[r]);return(0,o.jsx)(tz.D,{columns:tG,rows:s,sort:a,sortOrder:l,onSortChange:(e,t)=>{n(e),i(t)}})}var tJ=a(93890),tX=a(84452),t$=a(91500);let t0=(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,tW.Q)(n.title,e,t,a),text:(0,tW.Q)(n.content.map(tV.Rp).join(""),e,t,a)})):[],t1=(e,t,a,n)=>{let l=(0,tW.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,tW.Q)(e.region_page.town_titles[i%e.region_page.town_titles.length],t,a,n):(r=n.indexOf(a.id)>=0,l+=" "+(0,tY.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,tW.Q)(e.region_page.region_titles[i%e.region_page.region_titles.length],t,a,n):l+=" "+(0,tY.k)(t.name_p)+" "+t.name_p),l};var t6=a(1557),t3=a(88572),t4=a(98216);async function t2(e){let t=await (0,eF.$u)("Cards.json?".concat("url","=").concat(encodeURIComponent(e)));if(1!==t.length)throw new eE.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 eB.n(t2);var t5=a(12261),t8=a(46079),t7=a(23652);let t9=(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,ef.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="/".concat(eC.u.KARTY,"/").concat(e.url),r="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,c=e.title,d=o(e.interest_rate_from,e.interest_rate_to),u=s(e.credit_limit_from,e.credit_limit_to,c),_=r?(0,t8.f)(r):void 0,p="".concat(i).concat(n);return{"@type":"Offer",itemOffered:{"@type":"CreditCard",name:c,url:p,feesAndCommissionsSpecification:p,category:"Кредитные карты",annualPercentageRate:d,amount:u},potentialAction:{"@type":"Action",name:"Оформить",url:(0,ey.J)(e,ey.V.CreditCard)},provider:{"@type":"BankOrCreditUnion",name:a.name,url:"".concat(i,"/banki/").concat(a.url),image:a.logo_mob,telephone:a.phone,address:_}}},d=()=>n.reduce((e,t)=>{let a=c(t);return e.lowPrice=Math.min(e.lowPrice,Number(a.itemOffered.amount.minValue)),e.highPrice=Math.max(e.highPrice,Number(a.itemOffered.amount.maxValue)),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",bestRating:5,ratingValue:4.6,worstRating:1,reviewCount:2232},offers:{"@type":"AggregateOffer",url:"".concat(i,"/kreditnye_karty"),highPrice:l,lowPrice:n,priceCurrency:"RUB",offerCount:a,offers:o}}})()}(t,a,n,l,i);return void 0===r?null:(0,o.jsx)(t7.V,{schema:r})});t9.displayName="CardOffersSchema";var ae=a(17954),at=a(27480),aa=a(39741),an=a(30975),al=a(38090),ai=a(22518),ar=a(1256),ao=a.n(ar);let as=[(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)("span",{children:"Войдите на Финуслуги с помощью"}),(0,o.jsx)(aa.i,{})]},0),(0,o.jsx)(c.Fragment,{children:"Заполните анкету, мы подберем предложения специально для вас"},1),(0,o.jsx)(c.Fragment,{children:"Выберите предложение и отправьте заявку в банк — прямо на Финуслугах"},2),(0,o.jsx)(c.Fragment,{children:"Дождитесь одобрения, банк свяжется c вами и расскажет, как получить деньги"},3)],ac=e=>{var t,a;let{tag:n,cards:l,cardRegion:i,regions:r,banks:s,townDublicates:d,tags:u,cardTypes:_,contactlessCardTypes:m,expertQuote:C,defaultFilter:j}=e,A=(0,U.S0)(),{asPath:N,query:y}=(0,eD.useRouter)(),{region:T,town:w}=(0,ev.T)(),L=(0,e2.I)();(0,t3._B)(t3.kv.CreditCard);let{mainBaseUrl:P}=(0,ef.ZR)(),[S,M]=(0,c.useState)(n),[R,F]=(0,c.useState)([]),[B,O]=(0,c.useState)(l),[I,E]=(0,c.useState)(!1),[Z,D]=(0,c.useState)(1),[V,Y]=(0,c.useState)(!1),[W,z]=(0,c.useState)(C),{segments:K}=y,G=null!==(a=null===(t=(0,ae.q)(K).find(eg.AL))||void 0===t?void 0:t.slice(eg.dZ.length))&&void 0!==a?a:eg.V4,{title:Q,subtitle:q,description:J,offers:X,count:$}=B;(0,c.useEffect)(()=>{N.includes("purpose")&&(0,er.l)(k.Tm,{offset:A?0:-100,position:"top"})},[]),(0,tu.rf)(()=>{(0,eF.m6)("cards/tag?".concat("url","=").concat(G)).then(M),(0,t4.j)()},[G]),(0,c.useEffect)(()=>{(0,eV.F)().then(e=>{let t=e.data||void 0;t&&F(tD(t))})},[]);let ee=(0,t5.iN)(N);(0,tu.rf)(()=>{(0,al.r5)(ee).then(z)},[ee]);let et=(()=>{let e={...T},t={...w},a=e.deposits_count,n=t.deposits_count,l=new Date,i=l.getDate(),r=l.getMonth()+1,o=l.getFullYear(),s=(0,en.$)("".concat(r,"-").concat(i,"-").concat(o)),c="",u=$,_=Q;if(T){let e=d.indexOf((null==w?void 0:w.id)||0)>=0;c=w?" ".concat((0,tY.k)(w.name_p)," ").concat(w.name_p).concat(e?" (".concat(T.name,")"):""):" ".concat((0,tY.k)(T.name_p)," ").concat(T.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 S?t1(S,null!=T?T:null,null!=w?w:null,d):"Кредиты".concat(c," с максимальной ставкой ").concat(14,"% годовых на сегодня ").concat(i," ").concat(s," ").concat(o,"г. ").concat(2*u," aктуальных депозитов – открыть вклад").concat(c," на Финуслуги.ру")})(),{filter:ea,setFilter:el}=function(){let{query:e,push:t}=(0,eD.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,t5.SP)(l)),"string"==typeof i&&(d.banks=(0,t5.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,t5.ln)(l)),void 0!==i&&(d.banks=(0,t5.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},[])}}(),ei=(0,c.useMemo)(()=>({...j,...S.filter,...ea}),[j,S,ea]),eo=(0,c.useMemo)(()=>(0,tU.IH)(ei,s,X),[ei,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=eC.u.KARTY,_="Карты",p="карт",m=[],f=(0,tX.V)({offers:t,getBankKey:e=>e.bankId,getAmount:e=>e.amountTo,getRate:e=>e.rateTo}).slice(0,10);f.length>2&&m.push({title:(0,tW.Q)("Рейтинг ".concat(p," ").concat(s||c?(0,tY.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)(tq,{offers:f})}),!s&&(null==r?void 0:r.default)!==1&&(null==r?void 0:r.text)&&Array.isArray(r.text)&&r.text.forEach(e=>{m.push({title:(0,tW.Q)(e.title,s,c,d),text:(0,o.jsx)(v.Ln,{data:(0,tW.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=>{m.push({title:(0,tW.Q)(e.title,s,c,d),text:(0,o.jsx)(v.Ln,{data:(0,tW.W)(e,s,c,d,void 0,r).content})})});let g=t0(s,c,d,r);g&&g.length&&g.forEach(e=>{m.push({title:(0,tW.Q)(e.title,s,c,d),text:(0,o.jsx)(v.Ln,{data:[{type:tV.yB.Html,data:{html:e.text}}]})})}),m.push(...(0,t$.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,tJ.q9)(a,t.name);e.push(n)}return e},[]);m.push({title:"Виды ".concat(p),text:(0,o.jsx)(tJ.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=>ty.VZ.includes(e.url)),l=t.filter(e=>!ty.VZ.includes(e.url)),o=(0,tH.o)(a,5),d=(0,tH.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,tY.k)(c?c.name:s.name)+" "+(c?c.name_p:s.name_p):""),n=u((0,ef.ZR)().mainBaseUrl,e);return(0,tJ.XM)(n,a)})})();return b.length>0&&m.push({title:"".concat(_," от банков"),text:(0,o.jsx)(tJ.oP,{children:b})}),(()=>{let e=new Set;return m.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:S,region:T,town:w,townDublicates:d}),[s,u,eo,T,i,r,S,w,d]),ec=(0,c.useMemo)(()=>[{id:eq.is,title:"Карта рассрочки"},..._].map(e=>({value:String(e.id),label:e.title})),[_]),ed=(null==w?void 0:w.name_p)||(null==T?void 0:T.name_p)?" в ".concat((null==w?void 0:w.name_p)||(null==T?void 0:T.name_p)):"",eu=(0,c.useCallback)(()=>{E(!0)},[]),e_=(0,c.useCallback)(()=>{E(!1)},[]),ep=null==T?void 0:T.url,em=null==w?void 0:w.url,eh=(0,c.useCallback)(async e=>{D(e),Y(!0);try{let t=await (0,eR.gJ)({tag:S.url,region:ep,town:em,page:e,pageSize:eq.BM,filter:ei});e>1?O(e=>({...e,offers:[...e.offers,...t.offers]})):O(t)}finally{Y(!1)}},[S,ep,em,ei]);(0,tu.rf)(()=>{eh(1)},[eh]);let eb=(0,c.useCallback)((e,t)=>{el({...ei,sort:e,order:t})},[el,ei]),ex="DEFAULT"!==S.tag_name?S.name:"Кредитные карты";return(0,o.jsxs)("main",{className:ao().page,children:[(0,o.jsx)(b.N,{title:et,description:null!=J?J:""}),(0,o.jsx)(t6.C,{title:ex,pageUrl:eC.u.KARTY,tag:S,inRegion:ed,pageTitle:"Кредитные карты"}),(0,o.jsx)(t9,{name:ex,description:null!=J?J:"",offersCount:$,offers:X,banks:s}),(0,o.jsx)(eT.o,{}),(0,o.jsx)(x.t,{className:ao().filterContainer,children:(0,o.jsx)(th,{region:T,cards:ec,town:w,heading:ex,subtitle:q,filter:ei,banks:s,tag:S,tags:u,isMobile:A,isOpenModal:I,onFilterChange:el,onModalOpen:eu,onModalClose:e_})}),(0,o.jsx)(at.C,{steps:as}),(0,o.jsx)(tZ,{contactlessCardTypes:m,cardTypes:_,offers:eo,originalOffers:X,offersCount:$,filter:ei,adFoxConfig:L,subtitle:q,region:T,town:w,page:Z,isOffersLoading:V,handleSortChange:eb,onChangePage:eh,onFilterModalOpen:eu}),(0,o.jsx)("section",{className:(0,H.Z)(ao().sectionWrapper,ao().whiteBackground),children:(0,o.jsx)(x.t,{children:(0,o.jsx)(eH,{bestOffers:R,inRegion:ed})})}),void 0!==W&&(0,o.jsx)(ai.c,{quote:W}),(0,o.jsx)(an.n,{type:"bank"}),(0,o.jsx)(ew.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,o.jsx)(f(),{...e}),dataLayerPush:ej.l,questions:es,eventCategory:"credits_support_block",href:"".concat(P,"/help/credits"),checkAllText:"Читать все вопросы про кредиты"}),i&&(0,o.jsx)("section",{className:(0,H.Z)(ao().sectionWrapper,ao().sectionGray),children:(0,o.jsx)(h.S,{posts:i.posts,pageUrl:eC.u.KARTY,categories:[]})}),(0,o.jsx)(eL.O,{idSupport:k.Je,Image:e=>(0,o.jsx)(p(),{...e,width:555,height:344,src:g.Z,alt:"фоновое изображение"}),dataLayerPush:ej.l,eventEmitter:()=>window.supportWidget.craftTalk.open()})]})};async function ad(){let e=await (0,eF.$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 eB.$(ad),a(35388),a(27714);let au=e=>{let{tag:t,banks:a,cards:n,cardRegion:l,tags:i,cardTypes:r,contactlessCardTypes:s,layout:c,root:d,expertQuote:u,defaultFilter:_}=e;return(0,o.jsx)(eZ.A,{data:c,withLocationConfirm:!0,children:(0,o.jsx)(ac,{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:_})})};var a_=a(28254),ap=a(80330),am=!0,af=(0,c.memo)(function(e){var t,a;return(0,o.jsx)(s.sM,{children:e.isShowcase?(0,o.jsx)(a_.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)(au,{...e})}):(0,o.jsx)(ap.M,{children:(0,o.jsx)(eU,{...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",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,[5249,2935,6832,9705,1261,7359,3996,4457,5059,386,2047,709,3570,47,1193,2888,9774,179],function(){return e(e.s=77841)}),_N_E=e.O()}]);