(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6978],{1404:e=>{e.exports={wrapper:"offer-info-block_wrapper__6BCk7",titleWrapper:"offer-info-block_titleWrapper__JZSTw",title:"offer-info-block_title__axudX",text:"offer-info-block_text__HHa_5"}},10280:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(12771);async function i(){return s.getOrUpdate()}let s=new(a(73584)).B4(n);async function n(){return(await (0,l.aB)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},13394:(e,t,a)=>{"use strict";a.d(t,{u:()=>b});var l=a(37876),i=a(14232),s=a(20988),n=a(49995),o=a(3010),r=a(74356),c=a(37105),d=a(31257),_=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 u=a(87087),f=a(16416),h=a(83024),v=a(83918),g=a.n(v);let x=e=>e.loading?(0,l.jsx)("div",{className:g().cards_list,children:Array.from({length:24},(e,t)=>(0,l.jsx)(r.E,{className:(0,n.A)(g().card,g().skeletonCard)},t))}):e?(0,l.jsxs)("div",{className:g().content,children:[!!e.paramsRows.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:g().listTitle,children:e.paramsTitle}),(0,l.jsx)("ul",{className:g().list,children:e.paramsRows})]}),!!e.termsRows.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:g().listTitle,children:e.termsTitle}),(0,l.jsx)("ul",{className:g().list,children:e.termsRows})]}),!!e.requirementsVehicleRows.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:g().listTitle,children:e.requirementsVehicleTitle}),(0,l.jsx)("ul",{className:g().list,children:e.requirementsVehicleRows})]}),!!e.companyRows.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:g().listTitle,children:e.companyTitle}),(0,l.jsx)("ul",{className:g().list,children:e.companyRows})]}),(0,l.jsx)(f.n,{className:g().actualDate,pageUrl:e.mainPageUrl,offerDate:e.updateDate})]}):null,b=e=>{var t,a,n,r,f,v,b;let k="кредиту";e.mainPageUrl===c.h.AUTOCREDIT?k="автокредиту":e.mainPageUrl===c.h.KARTY&&(k="карте");let C="Все условия по ".concat(k),j=(0,h.fH)(),N=(0,i.useMemo)(()=>(e=>{let t={paramsTitle:"",termsTitle:"",companyTitle:"",requirementsVehicleTitle:"",paramsRows:[],termsRows:[],companyRows:[],requirementsVehicleRows:[]};if(!e)return t;let{data:a,cardTypes:s,contactlessCardTypes:n,mainPageUrl:o}=e;if(!a)return t;let r=[],d=[],u=[],f=[];if(t.paramsTitle="Параметры ".concat(p.filter(e=>e.id===o)[0].name),t.termsTitle="Условия по ".concat(p.filter(e=>e.id===o)[0].name_p),t.requirementsVehicleTitle="Требования к ТС",t.companyTitle="О банке",c.h.AUTOCREDIT===o){let{params:e,terms:t,company:l,requirementsVehicle:i}=(0,m.v)(a);r=e,d=t,u=l,f=i}if(c.h.IPOTEKA===o){let{params:e,terms:t,company:l}=(0,m.tf)(a);r=e,d=t,u=l}if(c.h.KARTY===o&&s&&n){let{params:e,company:t}=(0,m.N9)(a,s,n);r=e,u=t}if([c.h.POTREBITELSKIE,c.h.CALCULATOR].includes(o)){let{params:e,terms:t,company:l}=(0,m.pw)(a);r=e,d=t,u=l}return t.paramsRows=r.map(e=>(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(_.o,{...e})},e.label)),t.termsRows=d.map(e=>(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(_.o,{...e})},e.label)),t.companyRows=u.map(e=>(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(_.o,{...e})},e.label)),t.requirementsVehicleRows=f.map(e=>(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(_.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]),y=t=>{var a;(0,d._)({customerId:j,eventAction:d.y.link,eventActionText:t,eventCategory:e.mainPageUrl,eventLabel:null==(a=e.data)?void 0:a.id})};(0,i.useEffect)(()=>{var t,a,l,i;(null==(t=e.data)?void 0:t.bankName)&&(null==(a=e.data)?void 0:a.id)&&e.isOpen&&(0,d._)({customerId:j,eventAction:d.y.popup,eventActionText:null==(l=e.data)?void 0:l.bankName,eventCategory:e.mainPageUrl,eventLabel:null==(i=e.data)?void 0:i.id})},[e.isOpen,e.mainPageUrl,null==(t=e.data)?void 0:t.bankName,null==(a=e.data)?void 0:a.id,j]);let T=(0,l.jsxs)("div",{className:g().buttons,children:[(0,l.jsx)(s.$n,{as:"a",onClick:()=>y(C),target:"_blank",href:null==(n=e.data)?void 0:n.detailUrl,variant:"secondary",className:g().button,children:"Все ".concat(null==N?void 0:N.termsTitle)}),(0,l.jsx)(s.$n,{as:"a",onClick:()=>y((0,u.y)("Подать заявку")),target:"_blank",href:null==(r=e.data)?void 0:r.url,className:g().button,children:"Подать заявку"})]});return(0,l.jsx)(o.Z,{children:(0,l.jsx)(s.aF,{className:g().mobilePopup,open:e.isOpen,onClose:e.onClose,footer:{children:T},header:{title:null!=(b=null==(f=e.data)?void 0:f.bankName)?b:""},size:"l",children:(0,l.jsx)("div",{className:g().container,children:(0,l.jsx)(x,{...N,loading:e.loading,mainPageUrl:e.mainPageUrl,updateDate:null==(v=e.data)?void 0:v.m_updated_at})})})})}},31257:(e,t,a)=>{"use strict";a.d(t,{_:()=>n,y:()=>s});var l=a(91063),i=a(87087),s=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 n=e=>{let t,a,{eventCategory:s,eventAction:n,eventActionText:o="",eventLabel:r,eventValue:c,url:d,customerId:_}=e;t="boolean"==typeof c?c?"on":"off":c,a="filter_catalog"!==n?/[а-я]/i.test(o.toLowerCase()):"string"!=typeof r||/[а-я]/i.test(r.toLowerCase());let m="filter_catalog"!==n?{event:"data-event",eventCategory:null!=s?s:"",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"})[n]+(0,i.y)(o.toLowerCase().replaceAll(" ","_")),eventLabel:r,eventValue:t,url:d,customer_id:_}:{event:"data-event",eventAction:null!=s?s:"",eventCategory:n,eventLabel:function(e,t){return"string"==typeof e?t?e:(0,i.y)(e):e}(r,a),eventValue:t,url:d,customer_id:_};(0,l.o)(m)}},34833:e=>{e.exports={plate:"offer-list-item_plate__1l4Bc","plate--primary":"offer-list-item_plate--primary__JTA5a","plate--secondary":"offer-list-item_plate--secondary__tG_Xe",detailButton:"offer-list-item_detailButton__UE6yU",title:"offer-list-item_title__uXjFN",productName:"offer-list-item_productName__x1VU_",advantagesList:"offer-list-item_advantagesList__3kiVs",advantageItem:"offer-list-item_advantageItem__7UTNI",advantageItemCaption:"offer-list-item_advantageItemCaption__D5yGz",body:"offer-list-item_body__eDWM8",left:"offer-list-item_left__VI40X",right:"offer-list-item_right__83YGn",header:"offer-list-item_header__7bkId",tagsList:"offer-list-item_tagsList__hoJzG",tag:"offer-list-item_tag__97QiO",titleWrapper:"offer-list-item_titleWrapper__FruiX",logoIcon:"offer-list-item_logoIcon__IPZ5v",noneCircle:"offer-list-item_noneCircle__3ViHs",companyName:"offer-list-item_companyName__vt18w",iconClassName:"offer-list-item_iconClassName__ZqeRo",advantageItemTitle:"offer-list-item_advantageItemTitle__5bPNK",longItem:"offer-list-item_longItem__PrDkv",buttonsWrapper:"offer-list-item_buttonsWrapper__fl_EI",block:"offer-list-item_block__cE5xX",dopButtonsBlock:"offer-list-item_dopButtonsBlock__0g3kY",desktopBlock:"offer-list-item_desktopBlock__DXjEK",mobileBlock:"offer-list-item_mobileBlock__4Mkl_",dopButton:"offer-list-item_dopButton__phj42",dopIcon:"offer-list-item_dopIcon__d3Zl9",iconCompare:"offer-list-item_iconCompare__B7tXm",iconButton:"offer-list-item_iconButton__fiB2J",icon:"offer-list-item_icon__iPXC_",detailIcon:"offer-list-item_detailIcon__3Jof8",desktop:"offer-list-item_desktop__A5lI_",mobile:"offer-list-item_mobile__gQ2qP",appButton:"offer-list-item_appButton__yHQ7k",button:"offer-list-item_button__XDet1",footer:"offer-list-item_footer__fMs65",expandButton:"offer-list-item_expandButton__zxW8_",expandIcon:"offer-list-item_expandIcon___N9hv",advertising:"offer-list-item_advertising__muCIZ",noneMargin:"offer-list-item_noneMargin__bt9p6",relative:"offer-list-item_relative__lkN0q",cornerIcon:"offer-list-item_cornerIcon__zbStP"}},37105:(e,t,a)=>{"use strict";a.d(t,{h:()=>l});var l=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}({})},44694:(e,t,a)=>{"use strict";a.d(t,{M:()=>v});var l=a(37876),i=a(14232),s=a(54587),n=a.n(s),o=a(25904),r=a(20988),c=a(49995),d=a(37071),_=a(72278);let m={src:"/kredity/assets/_next/static/media/corner.2e0a9e26.svg",height:40,width:40,blurWidth:0,blurHeight:0},p={src:"/kredity/assets/_next/static/media/detail.05fbe660.svg",height:24,width:24,blurWidth:0,blurHeight:0};var u=function(e){return e.button="button",e.detail="detail",e.compare="compare",e.favorites="favorites",e.share="share",e}({}),f=a(34833),h=a.n(f);let v=e=>{let{icon:t,buttonText:a="Подробнее",buttonUrl:s,companyName:p,productName:f,productUrl:v,advantageAmountFrom:x,advantageBonus:b,advantageAmountTo:k,tags:C,advertising:j,className:N,expandButton:y,onDetailInfoClick:T,onExpandClick:w,onButtonClick:I,variant:L="primary",license:A}=e,B=void 0===A||d.MI.includes(A)?void 0:"Лиц. №".concat(A),R=[x,b,k].filter(e=>"string"==typeof(null==e?void 0:e.text)?null==e?void 0:e.text.length:null==e?void 0:e.text),[P,U]=(0,i.useState)(!1),E=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),U(!0),null==w||w()},[w]),M=(0,i.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return a=>{switch(t&&(a.preventDefault(),a.stopPropagation()),e){case u.detail:return null==T?void 0:T(u.detail);case u.button:return null==I?void 0:I(u.button)}}},[I,T]),O=!!y&&!P,D=!!(null==j?void 0:j.length)&&(0,l.jsx)("div",{className:(0,c.A)(h().advertising,{[h().noneMargin]:!O,[h().relative]:!O}),children:j});return(0,l.jsxs)("div",{className:(0,c.A)(N,h().plate,h()["plate--".concat(L)]),onClick:()=>{window.open(s,"_blank")},children:[(0,l.jsxs)("div",{className:h().body,children:[(0,l.jsxs)("div",{className:h().left,children:[(0,l.jsxs)("div",{className:h().header,children:[(0,l.jsxs)("div",{className:h().titleWrapper,children:[(0,l.jsx)("div",{className:(0,c.A)(h().logoIcon,{[h().noneCircle]:(null==t?void 0:t.type)==="rectangle"}),children:"element"in t?t.element:t}),(0,l.jsxs)("div",{className:h().title,children:[(0,l.jsx)("p",{className:h().productName,title:f,children:(0,l.jsx)(r.N_,{href:v,target:"_blank",children:f})}),(0,l.jsx)("p",{className:h().companyName,title:p,children:(0,l.jsx)("span",{children:p})})]})]}),!!(null==R?void 0:R.length)&&(0,l.jsx)("div",{className:h().advantagesList,children:R.map((e,t)=>(0,l.jsx)("div",{className:(0,c.A)(h().advantageItem,{[h().longItem]:R.length<3}),children:(0,l.jsx)(_.U,{caption:e.caption,text:e.text,tooltipText:e.tooltipText})},t))}),(0,l.jsx)(g,{isMobile:!0,handleButtonClick:M})]}),(0,l.jsx)("div",{className:h().tagsList,children:C.map((e,t)=>(0,l.jsx)(r.vw,{className:h().tag,label:e.label,variant:e.variant,rounded:!0},t))})]}),(0,l.jsx)("div",{className:h().right,children:(0,l.jsxs)("div",{className:h().buttonsWrapper,children:[(0,l.jsxs)("div",{className:h().block,children:[(0,l.jsx)(g,{isMobile:!1,handleButtonClick:M}),(0,l.jsx)(r.$n,{rel:"nofollow sponsored",as:"a",size:"s",href:s,target:"_blank",className:(0,c.A)(h().button,h().appButton),onClick:M(u.button,!1),"data-value":B,children:a})]}),!O&&D]})})]}),(O||!!j)&&(0,l.jsxs)("div",{className:h().footer,children:[D,O&&(0,l.jsxs)("button",{className:h().expandButton,onClick:E,children:[y,(0,l.jsx)(o.IconFdsMoreO,{})]})]}),O&&(0,l.jsx)(n(),{className:h().cornerIcon,src:m,alt:""})]})},g=e=>{let{isMobile:t,handleButtonClick:a}=e;return(0,l.jsx)("button",{className:(0,c.A)(h().button,h().iconButton,h().detailButton,{[h().mobile]:t,[h().desktop]:!t}),onClick:a(u.detail),children:(0,l.jsx)(n(),{src:p,alt:"иконка",width:"24",height:"24",className:(0,c.A)(h().icon,h().detailIcon)})})}},60650:(e,t,a)=>{"use strict";a.d(t,{v:()=>l});let l=e=>{let t=String(e);return(e<11||e>20)&&["2","3","4"].includes(t[t.length-1])?"предложения":"1"===t[t.length-1]&&"1"!==t[t.length-2]?"предложение":"предложений"}},70894:e=>{e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}},72278:(e,t,a)=>{"use strict";a.d(t,{U:()=>c});var l=a(37876),i=a(25904),s=a(20988),n=a(49995),o=a(1404),r=a.n(o);function c(e){let{caption:t,text:a,tooltipText:o,className:c,Icon:d=i.IconFdsQuestionCircleO}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column"},className:(0,n.A)(r().wrapper,c),children:[(0,l.jsxs)("div",{className:r().titleWrapper,children:[(0,l.jsx)("span",{className:r().title,children:t}),void 0!==o&&(0,l.jsx)(s.m_,{text:o,withoutTail:!0,position:"right",zIndex:200,children:(0,l.jsx)(d,{size:20,onClick:e=>null==e?void 0:e.stopPropagation()})})]}),(0,l.jsx)("span",{className:r().text,children:a})]})}},74356:(e,t,a)=>{"use strict";a.d(t,{E:()=>r});var l=a(37876),i=a(14232),s=a(49995),n=a(70894),o=a.n(n);let r=(0,i.memo)(e=>{let{className:t}=e;return(0,l.jsx)("div",{className:(0,s.A)(o().skeleton,t)})});r.displayName="Skeleton"},83918:e=>{e.exports={listTitle:"CreditsListModal_listTitle__hforG",container:"CreditsListModal_container__K77Ct",content:"CreditsListModal_content__Gz5jC",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:()=>i});let l={а:"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"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();if(t in l){let a=l[t];return t===e?a:a.charAt(0).toUpperCase()+a.slice(1)}return e})},91063:(e,t,a)=>{"use strict";a.d(t,{o:()=>i});var l=a(35656);function i(e){e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),e.eventLabel&&"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),(0,l.Fj)(e)}}}]);