(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1443],{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(13636),o=a(42195),i=a(69241),s=a(3010),c=a(74356),d=a(37105),u=a(31257),m=a(16196),p=a(5153);let _=[{id:d.h.AUTOCREDIT,name:"автокредита",name_p:"автокредиту"},{id:d.h.KARTY,name:"карты",name_p:"карте"},{id:d.h.POTREBITELSKIE,name:"кредита",name_p:"кредиту"},{id:d.h.IPOTEKA,name:"ипотеки",name_p:"ипотеки"},{id:d.h.CALCULATOR,name:"калькулятора",name_p:"калькулятору"}];var v=a(87087),h=a(90257),f=a(83024),g=a(83918),x=a.n(g);let C=e=>e.loading?(0,n.jsx)("div",{className:x().cards_list,children:Array.from({length:24},(e,t)=>(0,n.jsx)(c.E,{className:(0,i.A)(x().card,x().skeletonCard)},t))}):e?(0,n.jsxs)("div",{className:x().content,children:[!!e.paramsRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:x().listTitle,children:e.paramsTitle}),(0,n.jsx)("ul",{className:x().list,children:e.paramsRows})]}),!!e.termsRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:x().listTitle,children:e.termsTitle}),(0,n.jsx)("ul",{className:x().list,children:e.termsRows})]}),!!e.requirementsVehicleRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:x().listTitle,children:e.requirementsVehicleTitle}),(0,n.jsx)("ul",{className:x().list,children:e.requirementsVehicleRows})]}),!!e.companyRows.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:x().listTitle,children:e.companyTitle}),(0,n.jsx)("ul",{className:x().list,children:e.companyRows})]}),(0,n.jsx)(h.n,{className:x().actualDate,pageUrl:e.mainPageUrl,offerDate:e.updateDate})]}):null,y=e=>{var t,a,i,c,h,g,y;let b="кредиту";e.mainPageUrl===d.h.AUTOCREDIT?b="автокредиту":e.mainPageUrl===d.h.KARTY&&(b="карте");let T="Все условия по ".concat(b),j=(0,f.fH)(),L=(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=[],c=[],u=[],v=[];if(t.paramsTitle="Параметры ".concat(_.filter(e=>e.id===i)[0].name),t.termsTitle="Условия по ".concat(_.filter(e=>e.id===i)[0].name_p),t.requirementsVehicleTitle="Требования к ТС",t.companyTitle="О банке",d.h.AUTOCREDIT===i){let{params:e,terms:t,company:n,requirementsVehicle:r}=(0,p.v)(a);s=e,c=t,u=n,v=r}if(d.h.IPOTEKA===i){let{params:e,terms:t,company:n}=(0,p.tf)(a);s=e,c=t,u=n}if(d.h.KARTY===i&&l&&o){let{params:e,company:t}=(0,p.N9)(a,l,o);s=e,u=t}if([d.h.POTREBITELSKIE,d.h.CALCULATOR].includes(i)){let{params:e,terms:t,company:n}=(0,p.pw)(a);s=e,c=t,u=n}return t.paramsRows=s.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(m.o,{...e})},e.label)),t.termsRows=c.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(m.o,{...e})},e.label)),t.companyRows=u.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(m.o,{...e})},e.label)),t.requirementsVehicleRows=v.map(e=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(m.o,{...e})},e.label)),t})({data:e.data,cardTypes:e.cardTypes,contactlessCardTypes:e.contactlessCardTypes,mainPageUrl:e.mainPageUrl===d.h.CALCULATOR?d.h.POTREBITELSKIE:e.mainPageUrl}),[e.data,e.cardTypes,e.contactlessCardTypes,e.mainPageUrl]),k=t=>{var a;(0,u._)({customerId:j,eventAction:u.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,u._)({customerId:j,eventAction:u.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,j]);let A=(0,n.jsxs)("div",{className:x().buttons,children:[(0,n.jsx)(l.$,{as:"a",onClick:()=>k(T),target:"_blank",href:null==(i=e.data)?void 0:i.detailUrl,variant:"secondary",className:x().button,children:"Все ".concat(null==L?void 0:L.termsTitle)}),(0,n.jsx)(l.$,{as:"a",onClick:()=>k((0,v.y)("Подать заявку")),target:"_blank",href:null==(c=e.data)?void 0:c.url,className:x().button,children:"Подать заявку"})]});return(0,n.jsx)(s.Z,{children:(0,n.jsx)(o.a,{className:x().mobilePopup,open:e.isOpen,onClose:e.onClose,footer:{children:A},header:{title:null!=(y=null==(h=e.data)?void 0:h.bankName)?y:""},size:"l",children:(0,n.jsx)("div",{className:x().container,children:(0,n.jsx)(C,{...L,loading:e.loading,mainPageUrl:e.mainPageUrl,updateDate:null==(g=e.data)?void 0:g.m_updated_at})})})})}},14022:e=>{e.exports={trigger:"Popover_trigger__8ZXEq",triggerContent:"Popover_triggerContent__yEQbS",contentWrapper:"Popover_contentWrapper__Cse_e",content:"Popover_content__QQDR1"}},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),_=a(91063),v=a(79807),h=a(48673),f=a(44694),g=a(63921),x=a(83024),C=a(6510),y=a.n(C);let b=e=>Object.hasOwn(e,"payment"),T=(0,h.aK)(e=>{var t,a,l,s,c;let h,{data:C,className:j,order:L,eventCategory:k,variant:A,onDetailInfoClick:N,onClick:w}=e,E=(0,x.fH)(),R=[],U=(0,r.useRef)(null),P=(0,r.useRef)(!1),O=(0,r.useRef)(null),I=(0,g.o)(C.onlineApplicationUrl,{offerId:String(C.id),order:L}),D={text:"",caption:""},M={text:"",caption:""};if(C.isCard)D.caption="Обслуживание в год",D.text=null!=(l=null==C?void 0:C.firstYearCost)?l:"",D.tooltipText=C.yearCostTooltip,h={caption:"Кредитный лимит",text:0===C.amountFrom&&0===C.amountTo?"Индивидуально":(0,v.ej)({from:C.amountFrom,to:C.amountTo},{currency:C.currency})},M.caption="Льготный период",M.text=(0,p.d2)(C.period),R.push({label:C.typeText,variant:"purple"});else if(b(C)){h={caption:"Ежемесячный платеж",text:C.payment?"от ".concat((0,v.ZV)(C.payment)," ").concat(C.currency):""};let e=null==C?void 0:C.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=C.filterHasState)?void 0:s.period){let e="";if(C.period<12)e="".concat(C.period," мес");else{let t=C.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=C.filterHasState)?void 0:c.amount)?(0,v.RB)(C.amountTo,{currency:C.currency}):(0,v.ej)({from:C.amountFrom,to:C.amountTo},{currency:C.currency});b(C)&&C.partner&&R.push({label:"Партнер раздела"}),R.push({label:C.typeText,variant:C.typeText.toLowerCase().includes("финуслуг")?"purple":A}),C.notLoan&&R.push({label:"Без залога",variant:A}),R.push({label:C.incomeProof?"Требуется подтверждение дохода":"Без справок",variant:A})}C.tag&&R.push({label:C.tag,variant:A});let F=()=>{(0,m._)({customerId:E,eventCategory:k,eventAction:m.y.button,eventActionText:"open_modal"}),N(C)},S=(0,r.useCallback)(e=>{let[t]=e;1===t.intersectionRatio&&!P.current&&((0,_.o)({event:"data-event",eventAction:"show_in_catalog",eventCategory:k,eventLabel:C.id,customer_id:E}),P.current=!0,U.current&&O.current&&U.current.unobserve(O.current))},[C.id,k,E]);(0,r.useEffect)(()=>{U.current&&O.current&&U.current.unobserve(O.current),!P.current&&O.current&&(U.current=new IntersectionObserver(S,{root:null,threshold:[1]}),U.current.observe(O.current))},[S]);let[K,V]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:O,className:j,onClick:()=>{(0,_.o)({event:"data-event",eventAction:"click_button_podat_zayavku",eventCategory:k,eventLabel:C.id,eventValue:C.eventValue,customer_id:E}),null==w||w(C)},children:(0,n.jsx)(f.M,{icon:C.logo?(0,n.jsx)("div",{className:y().logo,children:(0,n.jsx)(o(),{width:56,height:56,src:C.logo,alt:"logo"})}):(0,n.jsx)("div",{className:y().placeholderLogo}),companyName:C.bankName,productName:C.title,productUrl:C.url,license:C.license,buttonText:"Оформить",buttonUrl:I,tags:R,expandButton:(null==(t=C.rollupCredit)?void 0:t.length)?"Еще ".concat(C.rollupCredit.length," ").concat((0,u.v)(C.rollupCredit.length)):void 0,advantageAmountFrom:D,advantageBonus:h,advantageAmountTo:M,className:y().plate,variant:A,onExpandClick:()=>{var e;return(null==(e=C.rollupCredit)?void 0:e.length)?V(!0):void 0},onDetailInfoClick:F})}),(0,n.jsx)(d,{isExpand:K,children:null==(a=C.rollupCredit)?void 0:a.map((e,t)=>(0,n.jsx)("div",{className:j,children:(0,n.jsx)(T,{eventCategory:k,data:e,order:t,onDetailInfoClick:F})},"".concat(C.id,"_").concat(e.id)))})]})});T.displayName="CreditsListItem"},28131:(e,t,a)=>{"use strict";function n(e){return e instanceof Error?e.message:"Unknown error"}a.d(t,{m_:()=>r,u1:()=>n});class r extends Error{}},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(11251),o=a(69241),i=a(3010),s=a(14022),c=a.n(s);function d(e){let{className:t}=e;return(0,n.jsx)(r.KYF,{className:(0,o.A)(c().triggerContent,t)})}function u(e){let{children:t,triggerClassName:a,contentClassName:r,content:s,placement:u="bottom-start"}=e;return(0,n.jsxs)(l.ms,{placement:u,children:[(0,n.jsx)(l.uu,{className:(0,o.A)(c().trigger,a),children:null!=t?t:(0,n.jsx)(d,{className:r})}),(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 s?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}):s})})})]})}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()}},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(69241),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})},90257:(e,t,a)=>{"use strict";a.d(t,{n:()=>u});var n=a(37876),r=a(14232),l=a(69241),o=a(37105),i=a(98547);let s={[o.h.POTREBITELSKIE]:"о кредите",[o.h.AUTOCREDIT]:"об автокредите",[o.h.MICROZAJMY]:"о займе",[o.h.IPOTEKA]:"об ипотеке",[o.h.KARTY]:"о кредитной карте",[o.h.CALCULATOR]:"о кредите"};var c=a(66677),d=a.n(c);let u=(0,r.memo)(e=>{var t,a;let{pageUrl:r,offerDate:o,className:c}=e,{label:u,date:m}=(t=r,a=o,{label:"Информация ".concat(s[t]," актуальна на"),date:(0,i.i)(a)});return""!==m?(0,n.jsx)("span",{className:(0,l.A)(d().actualDateOffer,c),children:"".concat(u," ").concat(m)}):null});u.displayName="ActualDateOffer"},90557:e=>{e.exports={disclaimer:"advertisement-disclaimer_disclaimer__CoBa3"}},91063:(e,t,a)=>{"use strict";a.d(t,{o:()=>r});var n=a(70728);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)}},98547:(e,t,a)=>{"use strict";a.d(t,{i:()=>n});let n=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)}}}]);