(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1409],{3010:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(37876),r=a(14232),l=a(98477);let o=e=>{let{children:t,id:a="portal-root"}=e,[o,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{var e,t,n;let r=null==(e=document)?void 0:e.getElementById(a);if(r)i(r);else{let e=null==(t=document)?void 0:t.createElement("div");return null==(n=document)||n.body.appendChild(e),i(e),()=>{var t;null==(t=document)||t.body.removeChild(e)}}},[a]),(0,n.jsx)(n.Fragment,{children:o&&(0,l.createPortal)(t,o)})}},6510:e=>{e.exports={logo:"CreditsListItem_logo__6JvHR",placeholderLogo:"CreditsListItem_placeholderLogo__9lJhp"}},10280:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(12771);async function r(){return l.getOrUpdate()}let l=new(a(73584)).B4(o);async function o(){return(await (0,n.aB)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},13394:(e,t,a)=>{"use strict";a.d(t,{u:()=>y});var n=a(37876),r=a(14232),l=a(20988),o=a(49995),i=a(3010),s=a(74356),c=a(37105),d=a(31257),u=a(16196),m=a(5153);let p=[{id:c.h.AUTOCREDIT,name:"автокредита",name_p:"автокредиту"},{id:c.h.KARTY,name:"карты",name_p:"карте"},{id:c.h.POTREBITELSKIE,name:"кредита",name_p:"кредиту"},{id:c.h.IPOTEKA,name:"ипотеки",name_p:"ипотеки"},{id:c.h.CALCULATOR,name:"калькулятора",name_p:"калькулятору"}];var v=a(87087),_=a(16416),h=a(83024),f=a(83918),g=a.n(f);let x=e=>e.loading?(0,n.jsx)("div",{className:g().cards_list,children:Array.from({length:24},(e,t)=>(0,n.jsx)(s.E,{className:(0,o.A)(g().card,g().skeletonCard)},t))}):e?(0,n.jsxs)("div",{className:g().content,children:[!!e.paramsRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:g().listTitle,children:e.paramsTitle}),(0,n.jsx)("ul",{className:g().list,children:e.paramsRows})]}),!!e.termsRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:g().listTitle,children:e.termsTitle}),(0,n.jsx)("ul",{className:g().list,children:e.termsRows})]}),!!e.requirementsVehicleRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:g().listTitle,children:e.requirementsVehicleTitle}),(0,n.jsx)("ul",{className:g().list,children:e.requirementsVehicleRows})]}),!!e.companyRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:g().listTitle,children:e.companyTitle}),(0,n.jsx)("ul",{className:g().list,children:e.companyRows})]}),(0,n.jsx)(_.n,{className:g().actualDate,pageUrl:e.mainPageUrl,offerDate:e.updateDate})]}):null,y=e=>{var t,a,o,s,_,f,y;let C="кредиту";e.mainPageUrl===c.h.AUTOCREDIT?C="автокредиту":e.mainPageUrl===c.h.KARTY&&(C="карте");let b="Все условия по ".concat(C),T=(0,h.fH)(),j=(0,r.useMemo)(()=>(e=>{let t={paramsTitle:"",termsTitle:"",companyTitle:"",requirementsVehicleTitle:"",paramsRows:[],termsRows:[],companyRows:[],requirementsVehicleRows:[]};if(!e)return t;let{data:a,cardTypes:l,contactlessCardTypes:o,mainPageUrl:i}=e;if(!a)return t;let s=[],d=[],v=[],_=[];if(t.paramsTitle="Параметры ".concat(p.filter(e=>e.id===i)[0].name),t.termsTitle="Условия по ".concat(p.filter(e=>e.id===i)[0].name_p),t.requirementsVehicleTitle="Требования к ТС",t.companyTitle="О банке",c.h.AUTOCREDIT===i){let{params:e,terms:t,company:n,requirementsVehicle:r}=(0,m.v)(a);s=e,d=t,v=n,_=r}if(c.h.IPOTEKA===i){let{params:e,terms:t,company:n}=(0,m.tf)(a);s=e,d=t,v=n}if(c.h.KARTY===i&&l&&o){let{params:e,company:t}=(0,m.N9)(a,l,o);s=e,v=t}if([c.h.POTREBITELSKIE,c.h.CALCULATOR].includes(i)){let{params:e,terms:t,company:n}=(0,m.pw)(a);s=e,d=t,v=n}return t.paramsRows=s.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(u.o,{...e})},e.label)),t.termsRows=d.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(u.o,{...e})},e.label)),t.companyRows=v.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(u.o,{...e})},e.label)),t.requirementsVehicleRows=_.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(u.o,{...e})},e.label)),t})({data:e.data,cardTypes:e.cardTypes,contactlessCardTypes:e.contactlessCardTypes,mainPageUrl:e.mainPageUrl===c.h.CALCULATOR?c.h.POTREBITELSKIE:e.mainPageUrl}),[e.data,e.cardTypes,e.contactlessCardTypes,e.mainPageUrl]),L=t=>{var a;(0,d._)({customerId:T,eventAction:d.y.link,eventActionText:t,eventCategory:e.mainPageUrl,eventLabel:null==(a=e.data)?void 0:a.id})};(0,r.useEffect)(()=>{var t,a,n,r;(null==(t=e.data)?void 0:t.bankName)&&(null==(a=e.data)?void 0:a.id)&&e.isOpen&&(0,d._)({customerId:T,eventAction:d.y.popup,eventActionText:null==(n=e.data)?void 0:n.bankName,eventCategory:e.mainPageUrl,eventLabel:null==(r=e.data)?void 0:r.id})},[e.isOpen,e.mainPageUrl,null==(t=e.data)?void 0:t.bankName,null==(a=e.data)?void 0:a.id,T]);let A=(0,n.jsxs)("div",{className:g().buttons,children:[(0,n.jsx)(l.$n,{as:"a",onClick:()=>L(b),target:"_blank",href:null==(o=e.data)?void 0:o.detailUrl,variant:"secondary",className:g().button,children:"Все ".concat(null==j?void 0:j.termsTitle)}),(0,n.jsx)(l.$n,{as:"a",onClick:()=>L((0,v.y)("Подать заявку")),target:"_blank",href:null==(s=e.data)?void 0:s.url,className:g().button,children:"Подать заявку"})]});return(0,n.jsx)(i.Z,{children:(0,n.jsx)(l.aF,{className:g().mobilePopup,open:e.isOpen,onClose:e.onClose,footer:{children:A},header:{title:null!=(y=null==(_=e.data)?void 0:_.bankName)?y:""},size:"l",children:(0,n.jsx)("div",{className:g().container,children:(0,n.jsx)(x,{...j,loading:e.loading,mainPageUrl:e.mainPageUrl,updateDate:null==(f=e.data)?void 0:f.m_updated_at})})})})}},14022:e=>{e.exports={trigger:"Popover_trigger__8ZXEq",triggerContent:"Popover_triggerContent__yEQbS",contentWrapper:"Popover_contentWrapper__Cse_e",content:"Popover_content__QQDR1"}},16416:(e,t,a)=>{"use strict";a.d(t,{n:()=>d});var n=a(37876),r=a(14232),l=a(49995),o=a(37105);let i={[o.h.POTREBITELSKIE]:"о кредите",[o.h.AUTOCREDIT]:"об автокредите",[o.h.MICROZAJMY]:"о займе",[o.h.IPOTEKA]:"об ипотеке",[o.h.KARTY]:"о кредитной карте",[o.h.CALCULATOR]:"о кредите"};var s=a(66677),c=a.n(s);let d=(0,r.memo)(e=>{var t,a;let{pageUrl:r,offerDate:o,className:s}=e,{label:d,date:u}=(t=r,a=o,{label:"Информация ".concat(i[t]," актуальна на"),date:(e=>{if(!e)return"";let t=new Date(e).getDate(),a=new Date(e).getMonth()+1,n=new Date(e).getFullYear();return"".concat(t<10?"0"+t:t,".").concat(a<10?"0"+a:a,".").concat(n)})(a)});return""!==u?(0,n.jsx)("span",{className:(0,l.A)(c().actualDateOffer,s),children:"".concat(d," ").concat(u)}):null});d.displayName="ActualDateOffer"},19419:(e,t,a)=>{"use strict";a.d(t,{G:()=>T});var n=a(37876),r=a(14232),l=a(54587),o=a.n(l),i=a(30557),s=a(54854),c=a.n(s);let d=(0,r.memo)(e=>{let{isExpand:t,children:a}=e;return t?(0,n.jsx)("div",{className:t?c().activeExpandList:"",children:a}):null});d.displayName="CardExpandContainer";var u=a(60650),m=a(31257),p=a(89064),v=a(91063),_=a(79807),h=a(48673),f=a(44694),g=a(63921),x=a(83024),y=a(6510),C=a.n(y);let b=e=>Object.hasOwn(e,"payment"),T=(0,h.aK)(e=>{var t,a,l,s,c;let h,{data:y,className:j,order:L,eventCategory:A,variant:w,onDetailInfoClick:k,onClick:N}=e,R=(0,x.fH)(),E=[],U=(0,r.useRef)(null),O=(0,r.useRef)(!1),P=(0,r.useRef)(null),I=(0,g.o)(y.onlineApplicationUrl,{offerId:String(y.id),order:L}),D={text:"",caption:""},M={text:"",caption:""};if(y.isCard)D.caption="Обслуживание в год",D.text=null!=(l=null==y?void 0:y.firstYearCost)?l:"",D.tooltipText=y.yearCostTooltip,h={caption:"Кредитный лимит",text:0===y.amountFrom&&0===y.amountTo?"Индивидуально":(0,_.ej)({from:y.amountFrom,to:y.amountTo},{currency:y.currency})},M.caption="Льготный период",M.text=(0,p.d2)(y.period),E.push({label:y.typeText,variant:"purple"});else if(b(y)){h={caption:"Ежемесячный платеж",text:y.payment?"от ".concat((0,_.ZV)(y.payment)," ").concat(y.currency):""};let e=null==y?void 0:y.fullPrice;if(e&&(D.caption="ПСК",D.text=(0,i.o)({from:Number(e.from),to:Number(e.to)}),D.tooltipText="ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n  Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре."),M.caption="Срок",null==(s=y.filterHasState)?void 0:s.period){let e="";if(y.period<12)e="".concat(y.period," мес");else{let t=y.period/12;e="".concat(String(t).includes(".")?t.toFixed(1):t," ").concat((0,p.vo)(t))}M.text=e.replace(".",",")}else M.caption="Сумма",M.text=(null==(c=y.filterHasState)?void 0:c.amount)?(0,_.RB)(y.amountTo,{currency:y.currency}):(0,_.ej)({from:y.amountFrom,to:y.amountTo},{currency:y.currency});b(y)&&y.partner&&E.push({label:"Партнер раздела"}),E.push({label:y.typeText,variant:y.typeText.toLowerCase().includes("финуслуг")?"purple":w}),y.notLoan&&E.push({label:"Без залога",variant:w}),E.push({label:y.incomeProof?"Требуется подтверждение дохода":"Без справок",variant:w})}y.tag&&E.push({label:y.tag,variant:w});let F=()=>{(0,m._)({customerId:R,eventCategory:A,eventAction:m.y.button,eventActionText:"open_modal"}),k(y)},S=(0,r.useCallback)(e=>{let[t]=e;1===t.intersectionRatio&&!O.current&&((0,v.o)({event:"data-event",eventAction:"show_in_catalog",eventCategory:A,eventLabel:y.id,customer_id:R}),O.current=!0,U.current&&P.current&&U.current.unobserve(P.current))},[y.id,A,R]);(0,r.useEffect)(()=>{U.current&&P.current&&U.current.unobserve(P.current),!O.current&&P.current&&(U.current=new IntersectionObserver(S,{root:null,threshold:[1]}),U.current.observe(P.current))},[S]);let[V,B]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:P,className:j,onClick:()=>{(0,v.o)({event:"data-event",eventAction:"click_button_podat_zayavku",eventCategory:A,eventLabel:y.id,eventValue:y.eventValue,customer_id:R}),null==N||N(y)},children:(0,n.jsx)(f.M,{icon:y.logo?(0,n.jsx)("div",{className:C().logo,children:(0,n.jsx)(o(),{width:56,height:56,src:y.logo,alt:"logo"})}):(0,n.jsx)("div",{className:C().placeholderLogo}),companyName:y.bankName,productName:y.title,productUrl:y.url,license:y.license,buttonText:"Оформить",buttonUrl:I,tags:E,expandButton:(null==(t=y.rollupCredit)?void 0:t.length)?"Еще ".concat(y.rollupCredit.length," ").concat((0,u.v)(y.rollupCredit.length)):void 0,advantageAmountFrom:D,advantageBonus:h,advantageAmountTo:M,className:C().plate,variant:w,onExpandClick:()=>{var e;return(null==(e=y.rollupCredit)?void 0:e.length)?B(!0):void 0},onDetailInfoClick:F})}),(0,n.jsx)(d,{isExpand:V,children:null==(a=y.rollupCredit)?void 0:a.map((e,t)=>(0,n.jsx)("div",{className:j,children:(0,n.jsx)(T,{eventCategory:A,data:e,order:t,onDetailInfoClick:F})},"".concat(y.id,"_").concat(e.id)))})]})});T.displayName="CreditsListItem"},30557:(e,t,a)=>{"use strict";a.d(t,{j:()=>r,o:()=>l});var n=a(79807);function r(e){if(null!==e&&""!==e&&e){let{from:t,to:a}=e;if("string"==typeof a)return{from:"string"==typeof t?Number(t):0,to:Number(a)};if("number"==typeof a)return{from:"number"==typeof t?t:0,to:a};console.warn("Unexpected full price data: ".concat(e))}return null}function l(e){return(0,n.wf)(e.from,e.to,{minimumFractionDigits:3})}},31257:(e,t,a)=>{"use strict";a.d(t,{_:()=>o,y:()=>l});var n=a(91063),r=a(87087),l=function(e){return e.link="link",e.button="button",e.popup="popup",e.popdown="popdown",e.filterCatalog="filter_catalog",e.utm="utm",e.banner="banner",e.noOffers="no_offers",e}({});let o=e=>{let t,a,{eventCategory:l,eventAction:o,eventActionText:i="",eventLabel:s,eventValue:c,url:d,customerId:u}=e;t="boolean"==typeof c?c?"on":"off":c,a="filter_catalog"!==o?/[а-я]/i.test(i.toLowerCase()):"string"!=typeof s||/[а-я]/i.test(s.toLowerCase());let m="filter_catalog"!==o?{event:"data-event",eventCategory:null!=l?l:"",eventAction:({link:"click_link_",button:"click_button_",popup:"show_pop_up_",popdown:"close_pop_up_",utm:"save_utm",banner:"click_banner",no_offers:"no_offers_to_show"})[o]+(0,r.y)(i.toLowerCase().replaceAll(" ","_")),eventLabel:s,eventValue:t,url:d,customer_id:u}:{event:"data-event",eventAction:null!=l?l:"",eventCategory:o,eventLabel:function(e,t){return"string"==typeof e?t?e:(0,r.y)(e):e}(s,a),eventValue:t,url:d,customer_id:u};(0,n.o)(m)}},32266:(e,t,a)=>{"use strict";a.d(t,{A:()=>u,X:()=>d});var n=a(37876),r=a(25904),l=a(20988),o=a(49995),i=a(3010),s=a(14022),c=a.n(s);function d(e){let{className:t}=e;return(0,n.jsx)(r.IconFdsQuestionCircleO,{className:(0,o.A)(c().triggerContent,t)})}function u(e){let{children:t,triggerClassName:a,content:r,placement:s="bottom-start"}=e;return(0,n.jsxs)(l.ms,{placement:s,children:[(0,n.jsx)(l.uu,{className:(0,o.A)(c().trigger,a),children:null!=t?t:(0,n.jsx)(d,{})}),(0,n.jsx)(i.Z,{children:(0,n.jsx)("div",{className:c().contentWrapper,children:(0,n.jsx)(l.pm,{className:c().content,children:"string"==typeof r?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):r})})})]})}u.displayName="Popover"},37105:(e,t,a)=>{"use strict";a.d(t,{h:()=>n});var n=function(e){return e.POTREBITELSKIE="potrebitelskie_kredity",e.KARTY="kreditnye_karty",e.MICROZAJMY="mikrozajmy",e.AUTOCREDIT="avtokredity",e.IPOTEKA="ipoteka",e.CALCULATOR="kreditniy_kalkulyator",e}({})},37264:(e,t,a)=>{"use strict";a.d(t,{D0:()=>l,WU:()=>r,Ws:()=>o});var n=a(33126);function r(){return"".concat((0,n.zj)().trackerBaseUrl,"/click.php?key=e1e8892905b84aa9bdece7c057b837c2")}function l(){return"".concat((0,n.zj)().trackerBaseUrl,"/click.php?key=6ebf335e6b8449988fc10f1060be8b73")}function o(e,t,a){let{online_application:n}=e,r=1!==n.commercial&&3!==n.type?t:n.url;if(!a)return r;let{amount:l,term:o}=a,i=new URL(r);return"0"!==l&&i.searchParams.set("amount",l),void 0!==o&&(i.searchParams.set("termType","MONTH"),i.searchParams.set("termValue",String(o))),i.toString()}},37397:(e,t,a)=>{"use strict";a.d(t,{Q:()=>i});var n=a(33126),r=a(12771),l=a(63273),o=a(28131);async function i(e,t){var a;return s("".concat((a=(0,n.zj)().mainApiUrl,(0,l.oc)()&&window.origin!==a?"".concat((0,r.Cw)(),"/proxy").concat("/main"):a)).concat(e),t)}async function s(e,t){try{return{data:await (0,r.x6)(e,t),error:null}}catch(e){return{data:null,error:(0,o.u1)(e)}}}},47593:(e,t,a)=>{"use strict";a.d(t,{B:()=>o});var n=a(37876),r=a(90557),l=a.n(r);function o(e){let{isSticky:t}=e;return(0,n.jsx)("div",{className:l().disclaimer,style:t?{position:"sticky"}:{position:"fixed",width:"100%"},children:"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})}},54854:e=>{e.exports={activeExpandList:"CardExpandContainer_activeExpandList__XzsuM",flash:"CardExpandContainer_flash__t1Inm"}},66677:e=>{e.exports={actualDateOffer:"actual-date-offer_actualDateOffer__CNnEb"}},70894:e=>{e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}},74356:(e,t,a)=>{"use strict";a.d(t,{E:()=>s});var n=a(37876),r=a(14232),l=a(49995),o=a(70894),i=a.n(o);let s=(0,r.memo)(e=>{let{className:t}=e;return(0,n.jsx)("div",{className:(0,l.A)(i().skeleton,t)})});s.displayName="Skeleton"},83918:e=>{e.exports={container:"CreditsListModal_container__K77Ct",content:"CreditsListModal_content__Gz5jC",listTitle:"CreditsListModal_listTitle__hforG",list:"CreditsListModal_list__ryMHP",valueText:"CreditsListModal_valueText__6AnBt",row:"CreditsListModal_row__OVccE",rowLabel:"CreditsListModal_rowLabel__9WsLq",rowValue:"CreditsListModal_rowValue__IGWF0",buttons:"CreditsListModal_buttons__l6SVm",button:"CreditsListModal_button__ZXh6N",actualDate:"CreditsListModal_actualDate__wpq5D",skeletonCard:"CreditsListModal_skeletonCard__xw5zQ",cards_list:"CreditsListModal_cards_list__bM3RU"}},87087:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});let n={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},r=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();if(t in n){let a=n[t];return t===e?a:a.charAt(0).toUpperCase()+a.slice(1)}return e})},90557:e=>{e.exports={disclaimer:"advertisement-disclaimer_disclaimer__CoBa3"}},91063:(e,t,a)=>{"use strict";a.d(t,{o:()=>r});var n=a(35656);function r(e){e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),e.eventLabel&&"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),(0,n.Fj)(e)}}}]);