(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[434],{59457:function(e,t,l){"use strict";var n,a,i=l(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),n||(n=i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h16v16H0z"})))),a||(a=i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.115 5.333a2.001 2.001 0 0 0 3.772 0h2.114a.667.667 0 0 0 0-1.333h-2.114a2.001 2.001 0 0 0-3.772 0H2a.667.667 0 0 0 0 1.333zm1.886 0a.667.667 0 1 0 0-1.333.667.667 0 0 0 0 1.333m-4 4a2 2 0 0 0-1.886 1.333H2A.667.667 0 0 0 2 12h2.114a2.001 2.001 0 0 0 3.772 0H14a.667.667 0 1 0 0-1.334H7.887a2 2 0 0 0-1.886-1.333m0 1.333a.667.667 0 1 0 0 1.334.667.667 0 0 0 0-1.334",clipRule:"evenodd"}))))}},9677:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/avtokredity/[[...segments]]",function(){return l(78696)}])},94781:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/banner-2.9368ea40.svg",height:218,width:318,blurWidth:0,blurHeight:0}},93842:function(e,t){"use strict";t.Z={src:"/kredity/assets/_next/static/media/banner-4.fc5b15be.svg",height:222,width:324,blurWidth:0,blurHeight:0}},48766:function(e,t,l){"use strict";l.d(t,{B:function(){return n}});let n=e=>{let t=Number(e.split(" ")[0]);return e&&!Number.isNaN(t)?t:0}},26024:function(e,t,l){"use strict";l.d(t,{a:function(){return p}});var n=l(85893),a=l(86010),i=l(41664),o=l.n(i),r=l(67294),s=l(17950),u=l(84053),c=l(41294),d=l.n(c);let p=(0,r.memo)(e=>{let{type:t,className:l}=e;return({[s.T.annuity]:(0,n.jsxs)("p",{className:(0,a.Z)(d().typeDescription,l),children:["Тип погашения, при котором ваш обязательный платеж банку остается неизменным в течение всего срока кредита. Подробнее о типах платежей"," ",(0,n.jsx)(o(),{target:"_blank",href:"".concat((0,u.ZR)().mainBaseUrl,"/navigator/kredity/stat_chto_vybrat_annuitetnye_ili_differencirovannye_platezhi?ysclid=lm0hhclslg385431421"),children:"написали здесь"})]}),[s.T.differentiated]:(0,n.jsxs)("p",{className:(0,a.Z)(d().typeDescription,l),children:["Тип погашения, при котором ваш обязательный платеж банку остается неизменным в течение всего срока кредита. Подробнее о типах платежей"," ",(0,n.jsx)(o(),{target:"_blank",href:"".concat((0,u.ZR)().mainBaseUrl,"/navigator/kredity/stat_chto_vybrat_annuitetnye_ili_differencirovannye_platezhi?ysclid=lm0hhclslg385431421"),children:"написали здесь"})]})})[t]});p.displayName="CreditPaymentDescription"},58484:function(e,t,l){"use strict";l.d(t,{V:function(){return p}});var n=l(85893),a=l(80138),i=l(86010),o=l(67294),r=l(65737),s=l(21308),u=l(94347),c=l(83226),d=l.n(c);let p=(0,o.memo)(e=>{let{region:t,town:l,subtitle:o,title:c,mainPageUrl:p}=e,{town:v,region:m}=(0,u.T)(),{handleToggleModal:_}=(0,a.ar)(),f=e=>{(0,r.l)({event:"data-event",eventAction:e,eventCategory:p})};return(0,n.jsxs)("div",{className:(0,i.Z)(d().titleWrapper,d().newTitle),children:[(0,n.jsxs)("h1",{className:d().title,children:[c," ",((null==v?void 0:v.name_p)||(null==l?void 0:l.name_p)||(null==m?void 0:m.name_p)||(null==t?void 0:t.name_p))&&(0,n.jsxs)(n.Fragment,{children:["в"," ",(0,n.jsx)("button",{onClick:()=>{_(!0),f("show_pop_up_city_modal")},className:d().link,children:(null==v?void 0:v.name_p)||(null==l?void 0:l.name_p)||(null==m?void 0:m.name_p)||(null==t?void 0:t.name_p)})]})]}),(0,n.jsx)(s.N,{tag:"p",className:d().subtitle,children:o})]})});p.displayName="RegionTitle"},37771:function(e,t,l){"use strict";l.d(t,{$m:function(){return d},F$:function(){return u},Ht:function(){return r},N2:function(){return p},QN:function(){return s},Z3:function(){return c},eT:function(){return i},oA:function(){return a},vw:function(){return o}});var n=l(73897);let a={amount:"amount",firstPayment:"first_payment",period:"period",loan:"loan",incomeProof:"income_proof",insuranceNeed:"insurance_need",vehicleState:"vehicle_state",vehicleType:"vehicle_type",stateCoFinancing:"state_co_financing",bank:"bank",order:"order",sort:"sort",page:"page",payment:"payment",borrower:"borrower"},i=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}];n.u.AUTOCREDIT;let o=[{value:0,label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],r=[{value:"moto",label:"Мототранспорт"},{value:"car",label:"Легковое транспорт",labelShort:"Легковое ТС"},{value:"track",label:"Грузовое транспорт",labelShort:"Грузовое ТС"},{value:"commercial",label:"Коммерческое транспорт",labelShort:"Коммерческое ТС"},{value:"water",label:"Водное транспорт",labelShort:"Водное ТС"},{value:"custom",label:"Другое"}],s=[{value:"foreign_new",label:"Иномарка с завода"},{value:"foreign_old",label:"Иномарка с пробегом"},{value:"domestic_new",label:"Отечественная с завода"},{value:"domestic_old",label:"Отечественная с пробегом"}],u=[{value:"employee_for_hire",label:"Работник по найму"},{value:"soldier",label:"Военнослужащий"},{value:"pensioner",label:"Пенсионер"},{value:"individual_entrepreneur",label:"Индивидуальный предприниматель"},{value:"civil_servant",label:"Госслужащий"},{value:"student",label:"Студент"},{value:"budgetary",label:"Бюджетник"},{value:"personal_farm_owner",label:"Владелец личного подсобного хозяйства"},{value:"nothing",label:"Иное"}],c=[{value:"not_required",label:"Не требуется"},{value:"pledge",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"full",label:"Залог и поручительство"}],d=[{label:"По ставке",value:"rate"},{label:"По первому взносу",value:"firstPayment"}],p="Указали больше чем запрашиваете кредитных денег"},45117:function(e,t,l){"use strict";l.d(t,{$m:function(){return u},BM:function(){return o},DW:function(){return c},MC:function(){return a},P3:function(){return s},Wk:function(){return i},gB:function(){return m},g_:function(){return d},qd:function(){return p},vw:function(){return r},zT:function(){return v}});var n=l(73897);let a="Ежемесячный платеж до",i="Сумма кредита",o=20,r=[{value:0,label:"Не имеет значения"},{value:1,label:"1 месяц"},{value:2,label:"2 месяца"},{value:3,label:"3 месяца"},{value:4,label:"4 месяца"},{value:5,label:"5 месяцев"},{value:6,label:"6 месяцев"},{value:9,label:"9 месяцев"},{value:12,label:"1 год"},{value:18,label:"1,5 года"},{value:24,label:"2 года"},{value:36,label:"3 года"},{value:48,label:"4 года"},{value:60,label:"5 лет"}],s={pp:"edzc",ps:"foam",p2:"hojk"},u=[{label:"По популярности",field:"order"},{label:"По ставке",field:"rate"},{label:"По платежу",field:"payment"}];n.u.POTREBITELSKIE;let c=[{value:"null",label:"Не имеет значения"},{value:"refinancing",label:"Рефинансирование"},{value:"education",label:"На образование"},{value:"treatment",label:"На лечение"},{value:"travels",label:"На путешествия"},{value:"repairs",label:"На ремонт"},{value:"other",label:"Просто деньги"}],d=[{value:"employee_for_hire",label:"Работник по найму"},{value:"soldier",label:"Военнослужащий"},{value:"pensioner",label:"Пенсионер"},{value:"individual_entrepreneur",label:"Индивидуальный предприниматель"},{value:"civil_servant",label:"Госслужащий"},{value:"student",label:"Студент"},{value:"budgetary",label:"Бюджетник"},{value:"personal_farm_owner",label:"Владелец личного подсобного хозяйства"},{value:"nothing",label:"Иное"}],p=[{value:"not_required",label:"Не требуется"},{value:"pledge",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"full",label:"Залог и поручительство"}],v=[{value:"to_account",label:"На счет в вашем банке"},{value:"to_custom_account",label:"На счет в стороннем банке"},{value:"to_card",label:"На карту"},{value:"cash",label:"Наличными"}],m=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}]},77624:function(e,t,l){"use strict";l.d(t,{n:function(){return n}});let n=(e,t)=>{var l;let n=null!==(l=null==t?void 0:t.map(e=>+e))&&void 0!==l?l:[];return[...e].sort((e,t)=>{let l=n.includes(Number(e.id)),a=n.includes(Number(t.id));return!l&&a?1:l&&!a?-1:0}).map(e=>({value:e.id,label:e.name}))}},44727:function(e,t,l){"use strict";function n(e){return"object"==typeof e&&null!==e?!!(e.comment||e.text):!!e}function a(e){return"number"==typeof e||(Array.isArray(e)?e.some(e=>n(e)):n(e))}l.d(t,{B:function(){return a}})},37220:function(e,t,l){"use strict";l.d(t,{z:function(){return n}});let n=(e,t)=>(t>0&&!Number.isInteger(e)&&!Number.isNaN(e)&&String(e).split(".")[1].length>t&&(e=+e.toFixed(t)),e)},30292:function(e,t,l){"use strict";l.d(t,{G:function(){return i},b:function(){return a}});var n=l(67294);let a=(e,t,l)=>{(0,n.useEffect)(()=>{let t=setTimeout(()=>{e()},l);return()=>{clearTimeout(t)}},t)},i=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,[a,i]=(0,n.useState)(l),[o,r]=(0,n.useState)(!1),[s,u]=(0,n.useState)(null);return(0,n.useEffect)(()=>{r(!0),e().then(i).catch(u).then(()=>{r(!1)})},t),[a,o,s]}},78696:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return t9},default:function(){return le}});var n,a,i=l(85893),o=l(80138),r=l(67294);l(89577);var s=l(79644),u=l(25675),c=l.n(u),d=l(41664),p=l.n(d),v=l(44895),m=l(73172),_=l(77868),f=l(84444),h=l(19438),b=l(54663),g=l(72335),x=l(20070),C=l(26576);let y=[{id:1,label:"Условия",name:C.cQ.conditions},{id:2,label:"Требования к заемщику",name:C.cQ.requirements},{id:3,label:"Требование к ТС",name:C.cQ.requirementsVehicles},{id:4,label:"Погашение",name:C.cQ.redemption}];var T=l(44727);let j=e=>{let{data:t}=e,l=(0,r.useMemo)(()=>(0,x.m8)(t),[t]),n=(0,r.useMemo)(()=>y.filter(e=>l[e.name].some(e=>(0,T.B)(e.value))),[l]);return{tabsContent:l,tabsList:n}},A=(0,r.memo)(e=>{var t,l;let{data:n,bank:a,offerType:o,pageUrl:r}=e,{tabsContent:s,tabsList:u}=j({data:n});return(0,i.jsx)(g.z,{scrollBlockId:b.q6,pageUrl:r,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:o,offerUpdateData:null==n?void 0:n.m_updated_at,bank:{logoMobile:null==a?void 0:a.logo_mob,description:null==a?void 0:a.short_description,url:"/banki/".concat(null==a?void 0:a.url),name:null==a?void 0:a.name,creditRating:null==a?void 0:a.credit_rating,netAssetsPlace:null==a?void 0:null===(t=a.ratings)||void 0===t?void 0:t.net_assets_place,netProfitRating:null==a?void 0:a.net_profit_rating},tabsList:u,tabsContent:s,aboutCompanyLabel:"О банке",site:null!==(l=null==a?void 0:a.site.title)&&void 0!==l?l:void 0})});A.displayName="AutoCreditAbout";var N=l(17722),k=l(94781),S=l(93842),w=l(64062),R=l(54636),L=l(73897),F=l(5753),M=l.n(F);let D=e=>{let{url:t,offerType:l,isMobile:n,className:a}=e,o=(0,r.useMemo)(()=>[{id:3,image:S.Z,text:"Перейдите на сайт банка,<br /> чтобы оформить заявку",types:[R.A.LEAD],buttonText:"Оформить на сайте банка",link:t},{id:4,image:N.Z,text:R.A.LEAD?"Этот кредит нельзя открыть через Финуслуги":"Этот автокредит сейчас нельзя открыть онлайн на Финуслугах",types:[R.A.LEAD,R.A.MASS],buttonText:"Выбрать другой автокредит",link:"/avtokredity"},{id:5,image:k.Z,text:"Чтобы оформить автокредит, обратитесь в банк",types:[R.A.MASS]}].filter(e=>e.types.find(e=>e===l)),[t,l]);return(0,i.jsx)("div",{className:M().container,children:(0,i.jsx)(w.B,{className:a,title:"Где оформить автокредит",pageUrl:L.u.AUTOCREDIT,id:b.VT,isMobile:n,slides:o})})};var E=l(86010),I=l(77019),U=l(24443),O=l(20760),P=l(48766),B=l(26024),Z=l(43944),H=l(33859),V=l(17950),W=l(41262),q=l(66566),z=l(39918),Q=l(37220),J=l(94466),G=l(21172),K=l.n(G);let $="Оформить на сайте банка",X="Где оформить автокредит",Y=e=>{var t,l,n,a;let{offerType:o,bank:u,data:c,isMobile:d,calculator:p}=e,[v,m]=(0,r.useState)(!1),_=(0,r.useRef)(null),f=(0,r.useMemo)(()=>{let{domestic_new:e,domestic_old:t,foreign_new:l,foreign_old:n}=c.vehicle_state;return!e&&!t&&l&&n?"Иномарка любая":e||t||!l||n?e||t||l||!n?e&&t&&!l&&!n?"Отечественная любая":e||!t||l||n?!e||t||l||n?e&&!t&&l&&!n?"Любое новое":!e&&t&&!l&&n?"Любое б/у":"Любое":"Отечественная новая":"Отечественная б/у":"Иномарка б/у":"Иномарка новая"},[c.vehicle_state]),g=(0,r.useCallback)(()=>{_.current&&_.current.focus()},[]),x=(0,r.useCallback)(()=>{p.amount.events.onFocus(),m(!0)},[p.amount.events]),C=(0,r.useCallback)(e=>{e&&((0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.filterCatalog,eventLabel:"Платеж",eventValue:e.map(e=>e.label).join(",")}),p.setPaymentTypeValue(e[0].value))},[p]),y=(0,W.S_)(p.period),T=(0,r.useMemo)(()=>({values:[p.period],max:p.periodMax,min:p.periodMin===p.periodMax?p.periodMin-1:p.periodMin,onChange:e=>{p.periodMin!==p.periodMax&&p.setPeriod(e[0])},step:1,legend:[p.periodMin,p.periodMax],formatValue:e=>(0,i.jsx)("span",{className:K().legend,children:(0,W.S_)(e)})}),[p]),j=(0,r.useMemo)(()=>p.paymentTypeOptions.filter(e=>e.value===p.paymentTypeValue),[p.paymentTypeOptions,p.paymentTypeValue]),A=(0,r.useMemo)(()=>[{id:1,label:(0,W.S_)(p.period)},{id:2,label:"".concat((0,J.uf)(+p.amount.value)," ₽")}],[p.amount.value,p.period]),N=(0,r.useMemo)(()=>{var e;let t=(null===(e=c.application_term.custom_text)||void 0===e?void 0:e.from)!==void 0?(0,P.B)(c.application_term.custom_text.from):0,l=new Date;l.setDate(l.getDate()+t);let n=l.getDate(),a=l.getMonth()+1,i=l.getFullYear();return"Деньги у вас до ".concat(n," ").concat((0,q.$)("".concat(a,"-").concat(n,"-").concat(i)))},[null===(t=c.application_term.custom_text)||void 0===t?void 0:t.from]),k=Number(p.amount.value),S=(0,r.useMemo)(()=>{let e=Number(p.firstPayment.value),t=p.period,l=c.vehicle_type.text,n=p.paymentTypeValue,a=[],o=Number(e)/(Number(k)/100);Number.isInteger(o)||(o=Number(o.toFixed(5)));let r=k?(0,Q.z)(o,1):0;a.push({label:"Первый взнос",value:"".concat(r,"%").replace(".",",")}),a.push({label:"Срок погашения",value:(0,W.S_)(t)});let s=c.full_price;if(s){let e=c.interest_rate;a.push({label:"Полная стоимость кредита",value:(0,I.W)(s)},{label:"Процентная ставка",value:(0,J.sz)(Number(e.from),Number(e.to))})}return a.push({label:"Тип&#160;ТС",value:l},{label:"Состояние&#160;ТС",value:f,description:"Некоторые банки указывают, что получить кредит можно только на новый автомобиль, а для других это не принципиально."}),n&&a.push({label:"Тип платежа",value:n===V.T.annuity?"Аннуитетный":"Дифференцированный",description:(0,i.jsx)("div",{className:K().tooltipContent,children:(0,i.jsx)(B.a,{type:n})})}),a},[p.firstPayment.value,p.period,p.paymentTypeValue,c.vehicle_type.text,c.full_price,c.interest_rate,f,k]);return(0,i.jsxs)(h.t,{className:(0,E.Z)(K().container,K().containerFull),children:[(0,i.jsx)(Z.F,{url:c.url,bank:{logoMob:null==u?void 0:u.logo_mob,url:"/banki/".concat(null==u?void 0:u.url),name:null!==(n=null==u?void 0:u.name)&&void 0!==n?n:c.bank_name},pageUrl:L.u.AUTOCREDIT,title:"Автокредит \xab".concat(c.title,"\xbb от ").concat(null!==(a=null==u?void 0:u.name)&&void 0!==a?a:c.bank_name),isSmall:l,isMobile:d,tagTheme:"pink",className:K().promo}),(0,i.jsxs)("div",{className:K().left,children:[(0,i.jsx)(U.y,{isMobile:d,title:"Настройка автокредита",pageUrl:L.u.AUTOCREDIT,infoLink:{isShow:!d,text:"Подробнее об автокредите",idScrollBlock:b.q6,offPadding:!0,widthMaxContent:!0},items:[{elements:[{type:"input",props:{label:"Сумма",innerRef:_,value:p.amount.isFocused?p.amount.value:p.amount.formattedValue,...p.amount.events,onFocus:x}}]},{elements:[{type:"input",props:{label:"Первый взнос",value:p.firstPayment.isFocused?p.firstPayment.value:p.firstPayment.formattedValue,...p.firstPayment.events}}]},{elements:[{type:"inputRange",props:{label:"Срок погашения",rangeProps:T,value:y}}]},{elements:[{type:"select",isHidden:!p.paymentTypeValue||p.paymentTypeOptions.length<=1,desription:p.paymentTypeValue&&(0,i.jsx)(B.a,{className:K().typeDescription,type:p.paymentTypeValue}),props:{label:"Платеж",options:p.paymentTypeOptions,onChange:C,value:j}}]}],chips:A,isShowChips:d&&!!(null==A?void 0:A.length)&&!v,isExpandSettings:v,onToggleSettings:()=>m(e=>!e)}),(0,i.jsx)(H.S,{isSmall:!0,className:K().qrDesc})]}),(0,i.jsxs)("div",{className:K().right,children:[(0,i.jsx)(O.y,{captionTitle:N,pageUrl:L.u.AUTOCREDIT,onEdit:g,amount:Number(p.amount.value),disclaimer:"Предварительные условия. Не оферта",tag:c.online_application.commercial_desc,footerActions:(0,i.jsxs)(i.Fragment,{children:[o===R.A.LEAD&&(0,i.jsx)(s.zx,{as:"a",onClick:()=>{(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.link,eventActionText:$,eventLabel:c.id})},href:c.online_application.url,target:"_blank",className:K().button,children:$}),(0,i.jsx)(s.zx,{onClick:()=>{(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.button,eventActionText:X}),(0,s.ld)(b.VT,{offset:d?0:-100,position:"top"})},className:K().button,variant:"secondary",children:X})]}),valuesList:S}),(0,i.jsx)(H.S,{isSmall:!0,className:K().qrMobile})]})]})};var ee=l(65737),et=l(40741),el=l(11083),en=l(73654),ea=l.n(en);let ei=(0,r.memo)(e=>{var t,l;let{data:n,detailData:a,className:o,onDetailInfoClick:s,onClick:u}=e,d=[],p=(0,r.useRef)(null),v=(0,r.useRef)(!1),m=(0,r.useRef)(null),_={text:"",caption:""},[f,h]=(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.online_application.commercial)===1?["Оформить",a.data.online_application.url]:["Подробнее",n.url],b=null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.full_price;b&&(_.caption="ПСК",_.text=(0,I.W)(b),_.tooltipText="ПСК (полная стоимость кредита) — это процентная ставка, отражающая все ваши затраты по кредиту за год. ПСК включает не только проценты, но и сопутствующие платежи.\n        Информация на сайте носит справочный характер. Указанные значения ПСК получены из открытых источников. Актуальная и точная информация будет содержаться в вашем кредитном договоре.");let g={text:(0,J.dN)({from:n.amountFrom,to:n.amountTo}),caption:"Сумма"},x={text:"от ".concat((0,J.uf)(n.payment),"%"),caption:"Первый взнос"};d.push({text:"Заявка через сайт банка",backGround:"white"}),n.isKascko&&d.push({text:"Потребуется каско",backGround:"white"}),n.isPermanentRegistation&&d.push({text:"Постоянная регистрация",backGround:"white"});let C=e=>{(0,ee.l)({event:"data-event",eventAction:e,eventCategory:L.u.AUTOCREDIT,eventLabel:n.id,eventValue:n.eventValue}),null==u||u(n)},y=(0,r.useCallback)(e=>{let[t]=e;1===t.intersectionRatio&&!v.current&&((0,ee.l)({event:"data-event",eventAction:"show_in_catalog",eventCategory:L.u.AUTOCREDIT,eventLabel:n.id}),v.current=!0,p.current&&m.current&&p.current.unobserve(m.current))},[n.id]);return(0,r.useEffect)(()=>{p.current&&m.current&&p.current.unobserve(m.current),!v.current&&m.current&&(p.current=new IntersectionObserver(y,{root:null,threshold:[1]}),p.current.observe(m.current))},[y]),d.map(e=>{e.text=" ".concat(e.text," ")}),(0,i.jsx)("div",{ref:m,className:o,onClick:()=>C("click_button_".concat((0,et.b)("Подать заявку"))),children:(0,i.jsx)(el.J,{icon:n.logo?(0,i.jsx)("div",{className:ea().logo,children:(0,i.jsx)(c(),{width:56,height:56,src:n.logo,alt:"logo"})}):(0,i.jsx)("div",{className:ea().placeholderLogo}),companyName:n.bankName,productName:n.title,productUrl:n.url,buttonText:f,buttonUrl:h,tags:d,advantageAmountFrom:_,advantageAmountTo:x,advantageBonus:g,onDetailInfoClick:()=>{s(n),(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.button,eventActionText:"open_modal"})},className:ea().plate})})});ei.displayName="AutoCreditListItem";var eo=l(13442),er=l(84135),es=l(89504),eu=l(32244);let ec=e=>(null==e?void 0:e.online_application.commercial)===1?R.A.LEAD:R.A.MASS,ed=e=>{var t,l,n,a,i,o;let{banks:r,autoCredit:s,period:u}=e,c="/".concat(L.u.AUTOCREDIT,"/").concat(s.url),d="",p="",v=r.find(e=>+s.bank_id==+e.id);return 1===s.online_application.commercial&&3!==s.online_application.type&&(d="Подача заявки на сайте банка",p="non_commercial"),3===s.online_application.type?(d="Открытие онлайн на Финуслугах",p="platform"):1!==s.online_application.commercial&&3!==s.online_application.type&&(d="Открытие в банке"),{id:s.id,bankName:null!==(l=null==v?void 0:v.name)&&void 0!==l?l:s.bank_name,bankId:null!==(n=null==v?void 0:v.id)&&void 0!==n?n:"",isCard:!1,logo:null!==(a=null==v?void 0:v.logo_mob)&&void 0!==a?a:"",title:s.title,url:c,legalName:(e=>{if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t[0].name;return t.name}catch(t){return e}return""})("string"==typeof(null==v?void 0:v.legal_entities)?JSON.parse(null==v?void 0:v.legal_entities)[0].name:null==v?void 0:null===(t=v.legal_entities)||void 0===t?void 0:t[0].name),isKascko:1==+s.insurance_need.need,isPermanentRegistation:1==+s.registration_address.permanent,period:u||+s.period.to,rate:+s.interest_rate.from,rateTo:+s.interest_rate.to,payment:+s.first_payment.from||0,currency:"₽",detailUrl:"/".concat(L.u.AUTOCREDIT,"/").concat(s.url),notLoan:1===s.loan.not_required,incomeProof:0===s.income_proof.not_required,typeText:d,eventValue:p,serviceTooltip:null,amountFrom:Number(s.amount.from),amountTo:Number(s.amount.to),type:ec(s),site:{title:null!==(i=null==v?void 0:v.site.title)&&void 0!==i?i:null,url:null!==(o=null==v?void 0:v.site.url)&&void 0!==o?o:null}}};var ep=l(84053),ev=l(94347),em=l(5569),e_=l.n(em);let ef=(0,r.memo)(e=>{let{bank:t,banks:l,currentCardId:n,autocredits:a,autocreditsFinuslugi:o,className:s}=e,{town:u}=(0,ev.T)(),[c,d]=(0,r.useState)(),[p,v]=(0,r.useState)(null),m=(0,r.useCallback)(()=>{d(void 0)},[]),_=(0,r.useCallback)(e=>{(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},[]),f=(0,r.useMemo)(()=>{let e=a?a.filter(e=>e.id!==n):[];return(0,eu.$)({productList:e,anotherList:e,count:es.NU})},[a,n]),b=(0,r.useMemo)(()=>{let e=o||[];return(0,eu.$)({productList:e,anotherList:e,count:es.wo-f.length})},[f.length,o]),g=(0,r.useMemo)(()=>({bankList:f.map(e=>ed({banks:[t],autoCredit:e})),finuslugiList:b.map(e=>ed({banks:l,autoCredit:e}))}),[t,l,f,b]),x=(0,r.useCallback)(e=>{if(!e)return;let t=[f,b].reduce((e,t)=>[...e,...t],[]).find(t=>t.id===e.id);if(t){var l,n;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!==(l=e.detailUrl)&&void 0!==l?l:"",logo:e.logo,url:null!==(n=e.url)&&void 0!==n?n:""}}},[f,b]),C=(0,r.useCallback)(e=>{var t;d(x(e)),v(null!==(t=null==e?void 0:e.type)&&void 0!==t?t:null),e&&(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.popup,eventActionText:e.title,eventLabel:e.id})},[x]),y="".concat((0,ep.ZR)().mainBaseUrl,"/banki/").concat(t.url,"/avtokredity").concat((null==u?void 0:u.url.length)?"/reg_"+u.url:"");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:(0,E.Z)(e_().container,s),children:[(0,i.jsx)("h3",{className:e_().title,children:"Другие автокредиты"}),(0,i.jsxs)(h.t,{children:[!!g.bankList.length&&(0,i.jsxs)("section",{className:e_().offersListContainer,children:[(0,i.jsxs)("p",{className:e_().listTitle,children:["Автокредиты от ",t.name]}),g.bankList.map(e=>(0,i.jsx)(ei,{onDetailInfoClick:C,className:e_().listItem,data:e,onClick:_,text:"Подать заявку",detailData:{data:x(e),mainPageUrl:L.u.AUTOCREDIT}},e.url)),(0,i.jsx)(eo.j,{offPadding:!0,text:"Bсе предложения от банка",href:y,target:"_blank",iconColor:"light",mainPageUrl:L.u.AUTOCREDIT})]}),!!g.finuslugiList.length&&(0,i.jsxs)("section",{className:e_().offersListContainer,children:[(0,i.jsx)("p",{className:e_().listTitle,children:"Автокредиты на Финуслугах"}),g.finuslugiList.map(e=>(0,i.jsx)(ei,{onDetailInfoClick:C,className:e_().listItem,data:e,onClick:_,text:"Подать заявку",detailData:{data:x(e),mainPageUrl:L.u.AUTOCREDIT}},e.url)),(0,i.jsx)(eo.j,{offPadding:!0,text:"Bсе предложения на Финуслугах",href:"/avtokredity",target:"_blank",iconColor:"light",mainPageUrl:L.u.AUTOCREDIT})]})]})]}),(0,i.jsx)(er.h,{data:c,isOpen:!!c,onClose:m,mainPageUrl:L.u.AUTOCREDIT,offerType:p})]})});ef.displayName="AutoCreditsList";var eh=l(11163),eb=l(82080),eg=l(1998);let ex=e=>{var t,l,n,a,i;let{asPath:o}=(0,eh.useRouter)(),s=(0,eg.G)({defaultValue:()=>e.amount.from,format:"currency",type:"int",maxLength:20,unit:"₽"}),u=(0,eg.G)({format:"currency",type:"int",maxLength:20,unit:"₽"}),[c,d]=(0,r.useState)(Number(null!==(l=e.period.to)&&void 0!==l?l:1)),p=Number(null!==(n=e.period.from)&&void 0!==n?n:1),v=Number(null!==(a=e.period.to)&&void 0!==a?a:1),m=(0,r.useMemo)(()=>{let t=[];return e.repayment_procedure.annuity&&t.push({label:"Аннуитетный",value:V.T.annuity}),e.repayment_procedure.differentiated&&t.push({label:"Дифференцированный",value:V.T.differentiated}),t},[e.repayment_procedure]),[_,f]=(0,r.useState)(null!==(i=null===(t=m[0])||void 0===t?void 0:t.value)&&void 0!==i?i:null);return(0,r.useEffect)(()=>{let e=(0,eb.p)(o,"#"),t=Array.isArray(e.amount)?e.amount[0]:e.amount,l=Array.isArray(e.first_payment)?e.first_payment[0]:e.first_payment,n=Number(Array.isArray(e.period)?e.period[0]:e.period);s.handleChange(t),u.handleChange(l),!Number.isNaN(n)&&n>=p&&n<=v&&d(n)},[]),(0,r.useMemo)(()=>({amount:s,firstPayment:u,period:c,setPeriod:d,periodMin:p,periodMax:v,paymentTypeOptions:m,paymentTypeValue:_,setPaymentTypeValue:f}),[s,u,m,_,c,v,p])};var eC=l(54228),ey=l(51469),eT=l(71276),ej=l(44215),eA=l(89519),eN=l(56381),ek=l.n(eN);function eS(e){var t,l;let{offer:n,posts:a,questions:o,description:r,banks:u,refererTag:d,offers:g,offersFinuslugi:x}=e,C=ec(n),y=(0,eC.S0)(),T=ex(n),{region:j,town:N}=(0,ev.T)(),k=u.find(e=>Number(e.id)===n.bank_id),S=(null==o?void 0:o.map(e=>({title:e.title,text:e.text.map(e=>e.data.html).join(""),plainText:e.text.map(e=>(0,m.MK)(e.data.html)).join("").trim()})))||[],w="Автокредит \xab".concat(n.title,"\xbb от ").concat(null!==(t=null==k?void 0:k.name_r)&&void 0!==t?t:""),R=(()=>{let e=(null==N?void 0:N.name_p)||(null==j?void 0:j.name_p)?" в ".concat((null==N?void 0:N.name_p)||(null==j?void 0:j.name_p)):"",t="".concat((null==j?void 0:j.url)?"/reg_".concat(null==j?void 0:j.url):"").concat((null==N?void 0:N.url)?"/".concat(null==N?void 0:N.url):""),l=[{name:"Автокредиты".concat(e),url:"/".concat(L.u.AUTOCREDIT).concat(t)}];return d&&l.push({name:"".concat(d.name).concat(e),url:"/".concat(L.u.AUTOCREDIT,"/teg_").concat(d.url).concat(t)}),l})();return(0,i.jsxs)("main",{className:ek().page,children:[(0,i.jsx)(f.N,{productId:String(n.id),title:w,description:null!=r?r:""}),(0,i.jsx)(eT.o,{}),(0,i.jsx)(ey.g,{questions:S}),(0,i.jsx)("div",{className:ek().navigationWrapper,children:(0,i.jsx)(h.t,{children:(0,i.jsx)(s.Oo,{path:R,current:"".concat(null!==(l=null==k?void 0:k.name)&&void 0!==l?l:n.bank_name," Автокредит ").concat(n.title)})})}),(0,i.jsx)(Y,{calculator:T,bank:k,offerType:C,data:n,isMobile:y}),(0,i.jsx)(h.t,{className:ek().about,children:(0,i.jsx)(A,{data:n,bank:k,offerType:C,pageUrl:L.u.AUTOCREDIT})}),(0,i.jsx)(D,{isMobile:y,offerType:C,url:n.online_application.url}),void 0!==k&&(0,i.jsx)(ef,{bank:k,banks:u,currentCardId:n.id,autocredits:g,autocreditsFinuslugi:x}),a&&(0,i.jsx)(_.S,{posts:a.posts,categories:a.ctgs,pageUrl:L.u.AUTOCREDIT}),(0,i.jsxs)("div",{className:ek().supportSection,children:[(0,i.jsx)(eA.O,{idSupport:b.Je,Image:e=>(0,i.jsx)(c(),{...e,width:555,height:344,src:v.Z,alt:"фоновое изображение"}),dataLayerPush:ee.l,eventEmitter:()=>window.supportWidget.craftTalk.open()}),(0,i.jsx)(ej.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,i.jsx)(p(),{...e}),dataLayerPush:ee.l,questions:S,eventCategory:"cards_support_block",href:"".concat((0,ep.ZR)().mainBaseUrl,"/help"),checkAllText:"Читать все вопросы про автокредиты"})]})]})}var ew=l(98670);l(93188);var eR=l(53850),eL=l(37771),eF=l(59457);function eM(){return(eM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var eD=function(e){return r.createElement("svg",eM({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=r.createElement("path",{fill:"#1F242E",fillRule:"evenodd",d:"M2 5a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1M2 12c0-.552.482-1 1.077-1h11.846c.595 0 1.077.448 1.077 1s-.482 1-1.077 1H3.077C2.482 13 2 12.552 2 12M2 19c0-.552.5-1 1-1h6c.5 0 1 .448 1 1s-.352 1-1 1H3c-.5 0-1-.448-1-1",clipRule:"evenodd"})))},eE=l(30082),eI=l.n(eE);let eU=e=>{let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let l=l=>{var n;let{target:a}=l;a instanceof HTMLElement&&!(null===(n=t.current)||void 0===n?void 0:n.contains(a))&&e()};return window.addEventListener("click",l),()=>{window.removeEventListener("click",l)}},[e]),t},eO=e=>{let{content:t,children:l,disabled:n,isNewSortRadios:a}=e,[o,s]=(0,r.useState)(!1),u=(0,r.useCallback)(()=>s(!0),[s]),c=(0,r.useCallback)(()=>s(!1),[s]);return(0,i.jsxs)("div",{className:(0,E.Z)(eI().wrap,a&&eI().newSortRadioWrap),onClick:u,ref:eU(c),children:[l,o&&!n&&(0,i.jsx)("div",{className:eI().content,children:t})]})};function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var eB=function(e){return r.createElement("svg",eP({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{fill:"#000",d:"M12 11a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1m.38-3.92a1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1.2 1.2 0 0 0-.21.33 1 1 0 0 0 .21 1.09q.147.133.33.21A1 1 0 0 0 13 8a1.05 1.05 0 0 0-.29-.71 1 1 0 0 0-.33-.21M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 18a8 8 0 1 1 0-16.001A8 8 0 0 1 12 20"})))},eZ=l(58177),eH=l.n(eZ);let eV=e=>{let{isNewSortRadios:t,isMobile:l,onChangeSort:n,isIncreaseSort:a}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:(0,E.Z)(eH().sortTypeHead,t&&eH().newSortRadioSortTypeHead),children:[(0,i.jsx)("button",{style:{marginLeft:"0px",marginRight:l?"0px":"8px"},className:(0,E.Z)(eH().sortTypeButton,t&&eH().newSortRadioSortTypeButton),onClick:n,children:(0,i.jsx)(eD,{className:(0,E.Z)(!a&&eH().iconInverted)})}),"Сортировать"]}),t&&(0,i.jsx)("div",{className:eH().divider})]})},eW=(0,r.memo)(e=>{let{isMobile:t,onChangeSort:l,isIncreaseSort:n,onChangeSortType:a,sortTypeItems:o,sortTypeValue:r,isNewSortRadios:u}=e;return(0,i.jsxs)(i.Fragment,{children:[!u&&t&&(0,i.jsx)(eV,{onChangeSort:l,isMobile:t,isIncreaseSort:n,isNewSortRadios:u}),(0,i.jsxs)("div",{className:(0,E.Z)(eH().sortTypeContainer,u&&eH().newSortRadioSortTypeContainer),onClick:e=>e.stopPropagation(),children:[u&&(0,i.jsx)(eV,{onChangeSort:l,isMobile:t,isIncreaseSort:n,isNewSortRadios:u}),o.map(e=>(0,i.jsxs)("div",{"data-qa":"".concat(e.value,"_radio"),className:eH().sortType,children:[u?(0,i.jsx)(s.Y8,{name:"radio",onChange:()=>{a(e.value)},value:r,checked:e.value===r,label:e.label}):(0,i.jsx)(s.UN,{onChange:()=>{a(e.value)},label:e.label,checked:e.value===r,className:eH().sortTypeRadio,value:e.value}),e.description&&(0,i.jsx)(s._0,{text:e.description,className:(0,E.Z)(eH().sortTypeButton,u&&eH().newSortRadioSortTypeButton),children:(0,i.jsx)(eB,{})})]},e.value))]})]})});eW.displayName="SortRadios";var eq=l(5257),ez=l.n(eq);let eQ=(0,r.memo)(e=>{let{isClose:t,chips:l,onClickParams:n,isIncreaseSort:a,onChangeIncreaseSort:o,sortTypeItems:u,sortTypeValue:c,onChangeSortType:d,isMobile:p,isFixed:v,portalId:m,onClickChip:_,className:f,onClickSortType:b,isNewSortRadios:g}=e,{buttonRef:x,chipsRef:C,containerRef:y,isOverflow:T,minLength:j,handleCompute:A}=(0,s.J$)({length:l.length,isActive:!p}),[N,k]=(0,r.useState)(!1),S=p?4:j,w=p?N:T,[R,L]=(0,r.useState)(!1),[F,M]=(0,r.useState)(!1),[D,I]=(0,r.useState)(!1),U=l.length-S,O=(0,r.useMemo)(()=>({id:"overflow",label:"".concat(R?"Скрыть":"Ещё"," ").concat(U)}),[R,U]),P=e=>t=>{C.current[e]=t},B=(0,r.useCallback)(()=>{if(p){M(e=>!e);return}L(e=>!e)},[p]),Z=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{let e=Z.current;if(void 0===t)return;let l=p?F:R;if(!l||e===t){Z.current=t;return}(e!==t||l)&&(B(),Z.current=t)},[B,R,t,p,F]);let H=(0,r.useCallback)(()=>{M(!1),setTimeout(()=>null==n?void 0:n(),300)},[n]),V=()=>I(e=>!e),W=(0,r.useCallback)(()=>null==o?void 0:o(!a),[a,o]);(0,r.useEffect)(()=>{p&&(k(!1),k(l.length>4))},[l.length,p]),(0,r.useEffect)(()=>{A()},[A,v]);let q=(0,i.jsx)("div",{style:{padding:"8px",borderRadius:g?"20px":"8px",background:"white"},className:(0,E.Z)(!p&&g&&ez().sortTypeDesktop),children:(0,i.jsx)(eW,{isMobile:p,isIncreaseSort:a,onChangeSort:W,onChangeSortType:d,sortTypeItems:u,sortTypeValue:c,isNewSortRadios:g,portalId:m})}),z=u.find(e=>e.value===c);return(0,i.jsxs)("div",{className:(0,E.Z)(ez().filter,g&&ez().newSortRadiosFilter,v&&ez().stuck,f),children:[(0,i.jsx)(h.t,{className:ez().mainContainer,children:(0,i.jsxs)("div",{className:ez().container,children:[(0,i.jsxs)("div",{className:(0,E.Z)(ez().chipsContainer,!R&&ez().chipsContainerClosed),ref:y,children:[l.slice(0,R||!w?l.length:S).map((e,t)=>(0,i.jsx)(s.uy,{selected:!0,className:ez().chip,data:e,ref:P(t),onClick:()=>null==_?void 0:_(e),theme:"secondary"},e.id)),T&&U>0&&(0,i.jsx)(s.uy,{selected:!0,className:ez().chip,onClick:B,data:O,ref:x,theme:"secondary"})]}),(0,i.jsxs)("div",{className:ez().actionsWrapper,children:[(0,i.jsxs)("button",{className:(0,E.Z)(ez().action,ez().actionButton),onClick:n,children:[(0,i.jsx)(eF.Z,{className:ez().icon}),(0,i.jsx)("span",{className:ez().actionText,children:"Все параметры"})]}),(0,i.jsxs)("div",{className:ez().action,children:[(0,i.jsx)("button",{className:(0,E.Z)(ez().icon,ez().iconButton,!a&&ez().iconInverted),onClick:p&&v?V:W,children:(0,i.jsx)(eD,{})}),(0,i.jsx)(eO,{content:q,disabled:p,isNewSortRadios:g,children:(0,i.jsx)("button",{onClick:p?V:b,className:(0,E.Z)(ez().actionText,ez().actionButton),"data-qa":"".concat(c,"_order"),children:(null==z?void 0:z.shortLabel)||(null==z?void 0:z.label)||"Сортировка"})})]})]})]})}),(0,i.jsxs)(s.h_,{id:m,children:[(0,i.jsx)(s.jr,{footer:(0,i.jsx)(s.zx,{className:ez().modalButton,onClick:H,label:"Изменить параметры"}),className:(0,E.Z)(ez().modal,g&&ez().newSortRadioModal),isOpen:F,onClose:B,children:(0,i.jsx)("div",{className:ez().chipsContainerModal,children:l.map(e=>(0,i.jsx)(s.uy,{selected:!0,className:ez().chip,data:e,onClick:H,theme:"secondary"},e.id))})}),(0,i.jsx)(s.jr,{className:(0,E.Z)(ez().modal,g&&ez().newSortRadioModal),isSmallPopup:g,onClose:V,isOpen:!!(D&&p),footer:(0,i.jsx)(s.zx,{size:g?"s":"m",className:ez().modalButton,label:"Применить",onClick:V}),children:q})]})]})});eQ.displayName="ListFilter";var eJ={src:"/kredity/assets/_next/static/media/adv-auto-desktop.6c981f82.svg",height:132,width:1110,blurWidth:0,blurHeight:0},eG={src:"/kredity/assets/_next/static/media/adv-auto-mobile.07d07b83.svg",height:132,width:343,blurWidth:0,blurHeight:0},eK=l(41172),e$=l.n(eK);let eX=(0,r.memo)(e=>{let{className:t}=e,{mainBaseUrl:l}=(0,ep.ZR)();return(0,i.jsxs)(p(),{href:"".concat(l,"/osago"),target:"_blank",className:(0,E.Z)(e$().wrapper,t),children:[(0,i.jsx)(c(),{className:(0,E.Z)(e$().bg,e$().bgDesktop),src:eJ,alt:""}),(0,i.jsx)(c(),{className:(0,E.Z)(e$().bg,e$().bgMobile),src:eG,alt:""}),(0,i.jsx)(s.zx,{className:e$().button,size:"s",children:"Оформить"})]})});eX.displayName="OsagoAd";var eY=l(65848);let e0=[],e1=(e,t)=>{let{amount:l,firstPayment:n,period:a,payment:i,incomeProof:o,vehicleType:r,vehicleState:s,banks:u,insuranceNeed:c,stateCoFinancing:d,notFirstPayment:p}=e,v=[{id:eL.oA.amount,label:"Сумма кредита: ".concat(l.value?"".concat((0,J.uf)(+l.value)," ₽"):"не имеет значения")},{id:eL.oA.firstPayment,label:"Первый взнос: ".concat(n.value?"".concat((0,J.uf)(+n.value)," ₽"):"не имеет значения")}];if("number"==typeof a){let e=eL.vw.find(e=>e.value===a);e&&v.push({id:eL.oA.period,label:0===e.value?"Срок: ".concat(e.label):e.label})}if(i.value&&v.push({id:eL.oA.payment,label:"До ".concat((0,J.uf)(+i.value)," ₽ в мес")}),o.length){let e=eL.eT.filter(e=>o.includes(e.value)),t=1===e.length?e[0].label:"Подтверждение дохода: (".concat(e.length,")");v.push({id:eL.oA.period,label:t})}if(r.length){let e=eL.Ht.filter(e=>r.includes(e.value)),t=1===e.length?e[0].label:"Тип транспорта: (".concat(e.length,")");v.push({id:eL.oA.vehicleType,label:t})}if(s.length){let e=eL.QN.filter(e=>s.includes(e.value)),t=1===e.length?e[0].label:"Состояние транспорта: (".concat(e.length,")");v.push({id:eL.oA.vehicleState,label:t})}if(s.length){let e=eL.QN.filter(e=>s.includes(e.value)),t=1===e.length?e[0].label:"Состояние транспорта: (".concat(e.length,")");v.push({id:eL.oA.vehicleState,label:t})}if(s.length){let e=eL.QN.filter(e=>s.includes(e.value)),t=1===e.length?e[0].label:"Состояние транспорта: (".concat(e.length,")");v.push({id:eL.oA.vehicleState,label:t})}if(u.length){let e=t.filter(e=>u.includes(+e.value)),l=1===e.length?e[0].label:"Банки: (".concat(e.length,")");v.push({id:eL.oA.bank,label:l})}return(c&&v.push({id:eL.oA.insuranceNeed,label:"Без каско"}),d&&v.push({id:eL.oA.stateCoFinancing,label:"С господдержкой"}),p&&v.push({id:"notFirstPayment",label:"Без первого взноса"}),e0.length===v.length&&v.every((e,t)=>e.label===e0[t].label&&e.id===e0[t].id))?e0:(e0=v,v)},e2=e=>e?56:80;var e3=l(71147),e4=l(6252),e6=l(50586),e7=l.n(e6),e8=l(75340),e5=l(29023),e9=l(88060),te=l(10034),tt=l.n(te);let tl=e=>{(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.link,eventActionText:e.title,eventLabel:e.id,url:e.url})},tn=e=>{let{filter:t,className:l,isMobile:n,bankOptions:a,banks:o,town:s,region:u}=e,c=(0,e8.lJ)(),d=(0,r.useRef)(null),p=(0,r.useRef)(()=>null),[v,m]=(0,r.useState)(!1),[_,f]=(0,r.useState)(!1),[b,g]=(0,r.useState)(null),{count:x,totalCount:C,isOpenModal:y,increaseSort:T,sort:j,handleToggleModal:A,setIncreaseSort:N,setSort:k,isPageLoading:S,handleLoadMore:w,autoCredits:R,isLoading:F,amount:M,firstPayment:D,period:I}=t,[U,O]=(0,r.useState)(),P=(0,r.useMemo)(()=>e1(t,a),[a,t]),B=(0,r.useCallback)(e=>{A(String(e.id))},[A]),Z=(0,r.useMemo)(()=>R.map(e=>{let t=ed({banks:o,autoCredit:e}),l={};M.value&&(l.amount=M.value),D.value&&(l.first_payment=D.value),I&&(l.period=I);let n=(0,e4.R)(l);return Object.keys(l).length&&(t.url="".concat(t.url,"#").concat(n)),t}),[M.value,R,o,D.value,I]),H=(0,r.useCallback)(e=>{if(!e)return;let t=R.find(t=>t.id===e.id);if(t){var l,n;return{...t,site:{...e.site},bankName:e.bankName,detailUrl:null!==(l=e.detailUrl)&&void 0!==l?l:"",logo:e.logo,url:null!==(n=e.url)&&void 0!==n?n:""}}},[R]),V=(0,r.useCallback)(()=>{O(void 0)},[]),W=(0,r.useCallback)(e=>{var t;O(H(e)),g(null!==(t=null==e?void 0:e.type)&&void 0!==t?t:null),e&&(0,z.D)({eventCategory:L.u.AUTOCREDIT,eventAction:z.i.popup,eventActionText:e.title,eventLabel:e.id})},[H]);(0,r.useEffect)(()=>{window.removeEventListener("scroll",p.current);let e=e2(n);return p.current=()=>{if(!d.current)return;let{top:t}=d.current.getBoundingClientRect();m(t<e-3),f(t<=e+1)},window.addEventListener("scroll",p.current),()=>window.removeEventListener("scroll",p.current)},[n]);let q=(null==u?void 0:u.name_p)!==void 0?(null==s?void 0:s.name_p)?"в ".concat(null==s?void 0:s.name_p):"в ".concat(null==u?void 0:u.name_p):null,Q=10*t.page<x;return(0,i.jsxs)("section",{className:(0,E.Z)(tt().section,l),children:[(0,i.jsx)(h.t,{children:(0,i.jsxs)("p",{className:tt().title,children:["Найдено ",x," ",(0,i.jsx)("span",{className:tt().titleHide,children:(0,e3.s)(x)})," ",q,x===C||0===x?"":"из ".concat(C)]})}),(0,i.jsx)("div",{ref:d,className:(0,E.Z)(tt().filter,tt().newLayout,{[tt().filterBottom]:v}),children:(0,i.jsx)(eQ,{isClose:y,chips:P,onChangeIncreaseSort:N,onChangeSortType:k,onClickChip:B,onClickParams:A,sortTypeItems:eL.$m,sortTypeValue:j,isIncreaseSort:T,isMobile:n,isFixed:_})}),(0,i.jsxs)(h.t,{children:[(0,i.jsx)("p",{className:tt().listTitle,ref:c,children:"Предложения рынка кредитов"}),(0,i.jsx)("div",{children:!F&&Z.map((e,t)=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(ei,{onDetailInfoClick:W,className:tt().listItem,data:e,onClick:tl,text:"Подать заявку",detailData:{data:H(e),mainPageUrl:L.u.AUTOCREDIT}},e.url),2===t&&(0,i.jsx)(eX,{className:tt().adv})]},e.id))}),F&&Array.from({length:6},(e,t)=>(0,i.jsx)(eY.O,{className:tt().listItem},t)),Q&&(0,i.jsx)(e9.f,{page:t.page,loading:S,onClick:w}),(0,i.jsx)(e5.i,{tag:"p",className:e7().subtitle,children:t.subtitle})]}),(0,i.jsx)(er.h,{data:U,isOpen:!!U,onClose:V,mainPageUrl:L.u.AUTOCREDIT,offerType:b})]})};function ta(e){let t=(0,I.b)(e.full_price);return{...e,full_price:t}}async function ti(e,t){let{tagUrl:l,regionUrl:n,townUrl:a,limit:i=10,...o}=e,r=function(e){let{limit:t,tagUrl:l,regionUrl:n,townUrl:a,amount:i,firstPayment:o,period:r,loan:s,incomeProof:u,insuranceNeed:c,vehicleState:d,vehicleType:p,stateCoFinancing:v,bank:m,sort:_,order:f,payment:h,page:b,borrower:g}=e,x=new URLSearchParams;return void 0!==t&&x.set("limit",String(t)),void 0!==l&&x.set("tag",l),void 0!==n&&x.set("region",n),void 0!==a&&x.set("town",a),void 0!==i&&x.set(eL.oA.amount,i),void 0!==o&&x.set(eL.oA.firstPayment,String(o)),void 0!==r&&x.set(eL.oA.period,String(r)),void 0!==s&&x.set(eL.oA.loan,s.join(",")),void 0!==u&&x.set(eL.oA.incomeProof,Array.isArray(u)?u.join(","):u),void 0!==c&&x.set(eL.oA.insuranceNeed,c?"1":"0"),void 0!==d&&x.set(eL.oA.vehicleState,d.join(",")),void 0!==p&&x.set(eL.oA.vehicleType,p.join(",")),void 0!==v&&x.set(eL.oA.stateCoFinancing,v?"1":"0"),void 0!==m&&x.set(eL.oA.bank,m.join(",")),void 0!==_&&x.set(eL.oA.sort,_),void 0!==f&&x.set(eL.oA.order,f),void 0!==h&&x.set(eL.oA.payment,h),void 0!==b&&x.set(eL.oA.page,String(b)),void 0!==g&&x.set(eL.oA.borrower,g.join(",")),x.set("archive","0"),x.toString()}({limit:i,regionUrl:n,tagUrl:l,townUrl:a,...o}),{data:s,error:u}=await (0,ew.D)("/money_data/AutoCredits.json?".concat(r),{signal:t});if(u||null===s)throw Error(null!=u?u:"Ошибка загрузки данных");return{offers:s.autoCredits.map(ta),count:s.autoCredits_count,totalCount:s.autoCredits_total_count,title:s.title,subtitle:s.subtitle,description:s.description}}l(89945),l(96202);var to=l(37171);function tr(e){let{banks:t,layout:l,refererTag:n,description:a,offer:o,posts:r,questions:s,offers:u,offersFinuslugi:c}=e;return(0,i.jsx)(to.A,{data:l,children:(0,i.jsx)(eS,{offer:o,posts:r,questions:s,description:a,banks:t,refererTag:n,offers:u,offersFinuslugi:c})})}var ts=l(423),tu={src:"/kredity/assets/_next/static/media/filter.0c02ec9e.svg",height:16,width:16,blurWidth:0,blurHeight:0},tc=l(65594),td=l.n(tc);let tp=(0,r.memo)(e=>{let{count:t,onClickParams:l,onClickShow:n,isLoading:a,className:o}=e;return(0,i.jsxs)("div",{className:(0,E.Z)(td().buttons,o),children:[(0,i.jsx)(s.zx,{variant:"secondary",size:"xs",pending:a,disabled:a,className:(0,E.Z)(td().filterButton,td().modalButton),onClick:e=>l(e),iconLeft:(0,i.jsx)(c(),{src:tu,alt:""}),children:"Все параметры"}),(0,i.jsxs)(s.zx,{size:"xs",className:td().filterButton,pending:a,disabled:a,onClick:n,children:["Показать ",t]})]})});tp.displayName="FilterActions";var tv=l(58484),tm=l(91646),t_=l(98028),tf=l(7835),th=l.n(tf);let tb=(0,r.memo)(e=>{let{checkedState:t,onChange:l,className:n}=e;return(0,i.jsxs)("ul",{className:(0,E.Z)(th().wrapper,n),children:[(0,i.jsxs)("li",{className:th().item,children:[(0,i.jsx)(s.iM,{onChange:()=>l("insuranceNeed",!t.insuranceNeed),checked:t.insuranceNeed,label:"Без каско"}),(0,i.jsx)(t_.J,{content:"По закону, каско покупать необязательно, но такая страховка компенсирует вам ущерб, даже если вы виновны в ДТП. Каско можно включить в стоимость кредита.",children:(0,i.jsx)(t_.L,{className:th().detailIcon})})]}),(0,i.jsxs)("li",{className:th().item,children:[(0,i.jsx)(s.iM,{onChange:()=>l("stateCoFinancing",!t.stateCoFinancing),checked:t.stateCoFinancing,label:"С господдержкой"}),(0,i.jsx)(t_.J,{content:"Поддержка, при которой часть средств предоставляет государство. Их можно потратить только на автомобили определенных марок.",children:(0,i.jsx)(t_.L,{className:th().detailIcon})})]}),(0,i.jsx)("li",{children:(0,i.jsx)(s.iM,{onChange:()=>l("notFirstPayment",!t.notFirstPayment),checked:t.notFirstPayment,label:"Без первого взноса"})})]})});tb.displayName="AutoCreditsFilterDops";var tg=l(4645),tx=l.n(tg);let tC=(0,r.memo)(e=>{let{activeIds:t,items:l,onChange:n,className:a}=e,o=(e,l)=>{n(l?t.filter(t=>String(e)!==t):[...t,String(e)])};return(0,i.jsx)("div",{className:(0,E.Z)(tx().tagsWrapper,a),children:l.map(e=>{var l;let n=t.some(t=>t===e.value);return(0,i.jsx)(s.zx,{className:tx().tag,variant:n?"primary":"secondary",onClick:()=>o(e.value,n),children:null!==(l=e.labelShort)&&void 0!==l?l:e.label},e.value)})})});tC.displayName="AutoCreditsTags";var ty=l(45117),tT=l(30715),tj=l.n(tT);let tA=e=>{(0,ee.l)({event:"data-event",eventAction:e,eventCategory:L.u.AUTOCREDIT})},tN=e=>{var t;let l=null!==(t=e.currentTarget.textContent)&&void 0!==t?t:"";tA("click_button_".concat((0,et.b)(l)))},tk=e=>{let{region:t,town:l,className:n,tag:a,isMobile:o,filter:u,subtitle:c,adFoxConfig:d}=e,{scrollSmooth:p}=(0,e8.vO)(),{count:v,isLoading:m,amount:_,firstPayment:f,vehicleType:h,setVehicleType:b,insuranceNeed:g,stateCoFinancing:x,notFirstPayment:C,setInsuranceNeed:y,setStateCoFinancing:T,setNotFirstPayment:j,handleToggleModal:A,firstPaymentPercent:N}=u,k=(0,r.useCallback)(e=>{tN(e),A()},[A]),S=(0,r.useCallback)(e=>{tN(e),p({offset:-90})},[p]),w=(0,r.useMemo)(()=>({insuranceNeed:g,stateCoFinancing:x,notFirstPayment:C}),[g,C,x]),R=(0,r.useCallback)((e,t)=>{switch(e){case"insuranceNeed":y(t);break;case"notFirstPayment":j(t),f.handleChange(t?"0":"");break;case"stateCoFinancing":T(t)}},[f,y,j,T]);return(0,i.jsxs)("div",{className:(0,E.Z)(n),children:[(0,i.jsxs)("div",{className:tj().pageHeadingWrap,children:[(0,i.jsx)(tv.V,{region:t,town:l,title:a&&"DEFAULT"!==a.tag_name?null==a?void 0:a.name:"Автокредиты",subtitle:c,mainPageUrl:L.u.AUTOCREDIT}),(0,i.jsx)("div",{className:tj().banner,children:(0,i.jsx)(tm.Z,{config:d,params:ty.P3})})]}),(0,i.jsxs)(s.W2,{className:tj().container,children:[(0,i.jsxs)("div",{className:tj().filter,children:[(0,i.jsxs)("div",{className:tj().fields,children:[(0,i.jsx)(s.lF,{addonAfter:(0,i.jsx)(t_.J,{content:"Укажите в поле сумму, которую хотите взять в кредит. Это может быть часть денег, которую вы прибавите к первому взносу, или полная стоимость машины. Если хотите потратить часть кредита на улучшение автомобиля или страховку каско, запрашивайте чуть больше денег",children:(0,i.jsx)(t_.L,{className:tj().fieldIcon})}),label:"Сумма кредита",className:tj().field,value:_.isFocused?_.value:_.formattedValue,..._.events}),(0,i.jsx)(s.lF,{label:"Первый взнос",className:tj().field,value:f.isFocused?f.value:f.formattedValue,...f.events,addonAfter:"".concat(N,"%").replace(".",","),message:N>100?eL.N2:void 0,status:N>100?"error":void 0})]}),!o&&(0,i.jsx)(tp,{count:v,onClickParams:k,onClickShow:S,isLoading:m})]}),(0,i.jsx)(tC,{className:tj().tagsWrapper,items:eL.Ht,activeIds:h,onChange:b}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:tj().dopsTitle,children:"Дополнительно"}),(0,i.jsx)(tb,{className:tj().dops,onChange:R,checkedState:w})]}),o&&(0,i.jsx)(tp,{count:v,onClickParams:k,onClickShow:S,isLoading:m})]})]})};var tS=l(56790),tw=l(27685),tR=l.n(tw);let tL=e=>{let{isOpen:t,pageUrl:l,title:n,onCLickShow:a,onClickReset:o,isMobile:u,onClose:c,children:d,count:p,isLoading:v}=e;(0,r.useEffect)(()=>{t&&(0,ee.l)({event:"data-event",eventAction:"show_pop_up_".concat((0,et.b)(n)),eventCategory:l})},[t,l,n]);let m=e=>{var t;let n=null!==(t=e.currentTarget.textContent)&&void 0!==t?t:"";(0,ee.l)({event:"data-event",eventAction:"click_button_".concat((0,et.b)(n)),eventCategory:l})},_=(0,i.jsxs)("div",{className:tR().buttonActions,children:[(0,i.jsxs)(s.zx,{className:tR().button,pending:v,disabled:v,onClick:e=>{m(e),a()},children:["Показать ",p]}),(0,i.jsx)(s.zx,{variant:"secondary",className:tR().button,disabled:v,onClick:e=>{m(e),o()},children:"Сбросить параметры"})]});return(0,i.jsxs)(tS.h,{children:[!u&&(0,i.jsx)(s.dy,{rowTitle:!0,titleAlign:"center",title:(0,i.jsx)("span",{className:tR().title,children:n}),contentClassName:tR().content,isOpen:t,onClose:c,footer:_,children:d}),u&&(0,i.jsxs)(s.jr,{className:tR().mobilePopup,contentClassName:tR().content,isOpen:t,onClose:c,footer:_,children:[(0,i.jsx)("h3",{className:tR().title,children:"Все параметры"}),d]})]})},tF=(e,t)=>{(0,ee.l)({event:"data-event",eventAction:L.u.AUTOCREDIT,eventCategory:"filter_catalog",eventLabel:(0,et.b)(e),eventValue:t})},tM=(e,t)=>{tF(e,(null!=t?t:[]).map(e=>e.label).join(","))};var tD=l(10622),tE=l.n(tD);let tI=e=>{let{filter:t,isMobile:l,bankOptions:n}=e,{handleToggleModal:a,resetFilter:o,amount:u,firstPayment:c,setPeriod:d,period:p,payment:v,incomeProof:m,setIncomeProof:_,vehicleType:f,setVehicleType:h,vehicleState:g,setVehicleState:x,borrower:C,setBorrower:y,loan:T,setLoan:j,banks:A,setBank:N,isLoading:k,insuranceNeed:S,stateCoFinancing:w,setInsuranceNeed:R,setStateCoFinancing:F,setSort:M,sort:D,activeField:I,notFirstPayment:U,setNotFirstPayment:O,firstPaymentPercent:P}=t,B=I&&[eL.oA.period,eL.oA.incomeProof,eL.oA.vehicleType,eL.oA.vehicleState,eL.oA.borrower,eL.oA.loan,eL.oA.bank].includes(String(I))&&l,Z=(0,r.useCallback)(()=>{B&&setTimeout(()=>{a()},300)},[a,B]),H=(0,r.useMemo)(()=>eL.vw.filter(e=>e.value===p),[p]),V=(0,r.useMemo)(()=>eL.eT.filter(e=>m.includes(e.value)),[m]),W=(0,r.useMemo)(()=>eL.Ht.filter(e=>f.includes(e.value)),[f]),q=(0,r.useMemo)(()=>eL.QN.filter(e=>g.includes(e.value)),[g]),z=(0,r.useMemo)(()=>eL.F$.filter(e=>C.includes(e.value)),[C]),Q=(0,r.useMemo)(()=>eL.Z3.filter(e=>T.includes(e.value)),[T]),J=(0,r.useMemo)(()=>n.filter(e=>A.includes(Number(e.value))),[n,A]),G=(0,r.useCallback)(()=>{a(),(0,s.ld)(b.Tm,{offset:l?0:-140,position:"top"})},[a,l]),{handleChangePeriod:K,handleChangeIncomeProf:$,handleChangeVehicleType:X,handleChangeVehicleState:Y,handleChangeBorrower:ee,handleChangeLoan:et,handleChangeBanks:el}=(0,r.useMemo)(()=>({handleChangePeriod:e=>{var t;d((null==e?void 0:e[0])&&Number(null==e?void 0:null===(t=e[0])||void 0===t?void 0:t.value)),tM("Срок",e)},handleChangeIncomeProf:e=>{var t;_(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tM("Подтверждение дохода",e)},handleChangeVehicleType:e=>{var t;h(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tM("Тип транспорта",e)},handleChangeVehicleState:e=>{var t;x(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tM("Состояние транспорта",e)},handleChangeBorrower:e=>{var t;y(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tM("Категория заемщикаа",e)},handleChangeLoan:e=>{var t;j(null!==(t=null==e?void 0:e.map(e=>String(e.value)))&&void 0!==t?t:[]),tM("Обеспечение",e)},handleChangeBanks:e=>{var t;N(null!==(t=null==e?void 0:e.map(e=>Number(e.value)))&&void 0!==t?t:[]),tM("Банки",e)}}),[N,y,_,j,d,x,h]),en=(0,r.useMemo)(()=>({insuranceNeed:S,stateCoFinancing:w,notFirstPayment:U}),[S,U,w]),ea=(0,r.useCallback)((e,t)=>{switch(e){case"insuranceNeed":R(t);break;case"notFirstPayment":O(t);break;case"stateCoFinancing":F(t)}},[R,O,F]);return(0,r.useEffect)(()=>{I===eL.oA.amount&&u.events.onFocus()},[I,u.events]),(0,r.useEffect)(()=>{I===eL.oA.firstPayment&&c.events.onFocus()},[I,c.events]),(0,r.useEffect)(()=>{I===eL.oA.payment&&v.events.onFocus()},[I,v.events]),(0,i.jsx)(tL,{count:t.count,isMobile:l,isOpen:t.isOpenModal,pageUrl:L.u.AUTOCREDIT,title:"Все параметры",onCLickShow:G,onClose:a,onClickReset:o,isLoading:k,children:(0,i.jsxs)("div",{className:tE().wrapper,children:[(0,i.jsxs)("div",{className:tE().fields,children:[(0,i.jsx)(s.lF,{label:"Сумма кредита",value:u.isFocused?u.value:u.formattedValue,...u.events,autoFocus:I===eL.oA.amount}),(0,i.jsx)(s.lF,{label:"Первый взнос",value:c.isFocused?c.value:c.formattedValue,...c.events,autoFocus:I===eL.oA.firstPayment,addonAfter:"".concat(P,"%").replace(".",","),message:P>100?eL.N2:void 0,status:P>100?"error":void 0}),(0,i.jsx)(s.HU,{isMobile:l,value:H.length>0?H:null,onChange:K,label:"Срок",options:eL.vw,defaultOpen:I===eL.oA.period,onClose:Z}),(0,i.jsx)(s.lF,{label:"Ежемесячный платеж до",value:v.isFocused?v.value:v.formattedValue,...v.events,autoFocus:I===eL.oA.payment}),(0,i.jsx)(s.HU,{isMobile:l,value:V.length>0?V:null,onChange:$,multiple:!0,label:"Подтверждение дохода",options:eL.eT,defaultOpen:I===eL.oA.incomeProof,onClose:Z}),(0,i.jsx)(s.HU,{isMobile:l,value:W.length>0?W:null,multiple:!0,onChange:X,label:"Тип транспорта",options:eL.Ht,defaultOpen:I===eL.oA.vehicleType,onClose:Z}),(0,i.jsx)(s.HU,{isMobile:l,value:q.length>0?q:null,multiple:!0,onChange:Y,label:"Состояние транспорта",options:eL.QN,defaultOpen:I===eL.oA.vehicleState,onClose:Z}),(0,i.jsx)(s.HU,{isMobile:l,value:z.length>0?z:null,multiple:!0,onChange:ee,label:"Категория заемщика",options:eL.F$,defaultOpen:I===eL.oA.borrower,onClose:Z}),(0,i.jsx)(s.HU,{isMobile:l,value:Q.length>0?Q:null,multiple:!0,onChange:et,label:"Обеспечение",options:eL.Z3,defaultOpen:I===eL.oA.loan,onClose:Z}),(0,i.jsx)(s.HU,{isMobile:l,value:J.length>0?J:null,multiple:!0,onChange:el,label:"Банки",search:!0,options:n,defaultOpen:I===eL.oA.bank,onClose:Z})]}),(0,i.jsxs)("div",{className:tE().checkboxWrapper,children:[(0,i.jsx)("p",{className:tE().title,children:"Дополнительно:"}),(0,i.jsx)(tb,{className:tE().dops,checkedState:en,onChange:ea}),(0,i.jsx)("p",{className:(0,E.Z)(tE().title,tE().titleSort),children:"Сортировать"}),eL.$m.map(e=>(0,i.jsx)(s.UN,{label:e.label,checked:D===e.value,onChange:()=>M(e.value)},e.value))]})]})})};async function tU(e,t,l){let n=new URLSearchParams;n.set("tag_url",e),void 0!==t&&n.set("region",t),void 0!==l&&n.set("town",l);let{data:a,error:i}=await (0,ew.D)("/money_data/AutoCreditRegion.json?".concat(n));if(i||null===a)throw Error(null!=i?i:"Ошибка загрузки данных");return a}var tO=l(91886),tP=l(60007);async function tB(e){let{data:t,error:l}=await (0,ew.D)("/money_data/AutoCredits.json?url=".concat(encodeURIComponent(e)));if(l)throw Error(l);if((null==t?void 0:t.length)!==1)throw new eR.dR;return(0,tP.p)(t[0])}let tZ=(e,t)=>{var l,n,a,i,o,r,s,u,c,d,p,v,m;let _=(0,eb.p)(e),{page:f}=_,h=String(null!==(n=null!==(l=_.amount)&&void 0!==l?l:null==t?void 0:t.filter.amount)&&void 0!==n?n:""),b=String(null!==(i=null!==(a=_.first_payment)&&void 0!==a?a:null==t?void 0:t.filter.first_payment)&&void 0!==i?i:""),g=String(null!==(r=null!==(o=_.period)&&void 0!==o?o:null==t?void 0:t.filter.period)&&void 0!==r?r:""),x=String(null!==(u=null!==(s=null==t?void 0:t.filter.payment)&&void 0!==s?s:_.payment)&&void 0!==u?u:"");return{amount:h&&!isNaN(+h)?h:"",firstPayment:b&&!isNaN(+b)?b:"",period:g&&!isNaN(+g)?+g:void 0,payment:_.payment&&!isNaN(+x)?x:"",vehicleType:null!==(c=null==t?void 0:t.filter.vehicle_type)&&void 0!==c?c:[],vehicleState:null!==(d=null==t?void 0:t.filter.vehicle_state)&&void 0!==d?d:[],borrower:null!==(p=null==t?void 0:t.filter.borrower)&&void 0!==p?p:[],loan:null!==(v=null==t?void 0:t.filter.loans)&&void 0!==v?v:[],insuranceNeed:(null==t?void 0:t.filter.insurance)===1,stateCoFinancing:(null==t?void 0:t.filter.state_co_financing)===1,incomeProof:null!==(m=null==t?void 0:t.filter.proof_income)&&void 0!==m?m:[],page:Number(f)||1}},tH=(e,t)=>{if(isNaN(e)||isNaN(t)||0===e||0===t)return 0;let l=Number(t)/(Number(e)/100);return Number.isInteger(l)||(l=Number(l.toFixed(5))),l};var tV=l(30292);let tW=e=>{var t,l,n,a;let{region:i,tag:o,town:s,init:u}=e,{asPath:c}=(0,eh.useRouter)(),d=(0,r.useMemo)(()=>tZ(c,o),[c,o]),p=(0,r.useRef)(null),v=(0,eg.G)({defaultValue:d.amount,format:"currency",type:"int",unit:"₽",maxLength:20}),m=(0,eg.G)({defaultValue:d.firstPayment,format:"currency",type:"int",unit:"₽",maxLength:20}),_=(0,eg.G)({defaultValue:d.payment,format:"currency",type:"int",unit:"₽",maxLength:20}),f=tH(+v.value,+m.value),h=v.value?(0,Q.z)(null!=f?f:0,1):0,{query:b}=(0,eh.useRouter)(),[g,x]=(0,r.useState)(Number(b.page)||1),[C,y]=(0,r.useState)(u.title),[T,j]=(0,r.useState)(u.subtitle),[A,N]=(0,r.useState)(u.description),[k,S]=(0,r.useState)(!1),[w,R]=(0,r.useState)(!1),[L,F]=(0,r.useState)(null!==(t=u.count)&&void 0!==t?t:0),[M,D]=(0,r.useState)(null!==(l=u.count)&&void 0!==l?l:0),[E,I]=(0,r.useState)(!1),[U,O]=(0,r.useState)(null!==(n=u.list)&&void 0!==n?n:[]),[P,B]=(0,r.useState)(d.period),[Z,H]=(0,r.useState)(d.vehicleType),[V,W]=(0,r.useState)(d.vehicleState),[q,z]=(0,r.useState)(d.borrower),[J,G]=(0,r.useState)(d.loan),[K,$]=(0,r.useState)([]),[X,Y]=(0,r.useState)(d.insuranceNeed),[ee,et]=(0,r.useState)(d.stateCoFinancing),[el,en]=(0,r.useState)(eL.$m[0].value),[ea,ei]=(0,r.useState)(""),[eo,er]=(0,r.useState)(!1),[es,eu]=(0,r.useState)(null!==(a=null==o?void 0:o.filter.proof_income)&&void 0!==a?a:[]),[ec,ed]=(0,r.useState)(!1),ep=(0,r.useRef)(!0),ev=(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";I(e=>!e),ei(e)},[]),em=(0,r.useCallback)(async e=>{var t,l,n,a,r,u;p.current&&p.current.abort(),p.current=new AbortController;let c={amount:v.value,firstPayment:v.value?f:void 0,period:P,loan:J,incomeProof:es,insuranceNeed:X,stateCoFinancing:ee,vehicleState:V,vehicleType:Z,bank:K,order:ec?"desc":"asc",sort:el,payment:_.value,borrower:q};e>1?(c.page=e,R(!0)):S(!0);let d=await ti({tagUrl:null==o?void 0:o.url,regionUrl:null==i?void 0:i.url,townUrl:null==s?void 0:s.url,...c},p.current.signal),m=null!==(t=null==d?void 0:d.offers)&&void 0!==t?t:[],h=null!==(l=null==d?void 0:d.title)&&void 0!==l?l:"",b=null!==(n=null==d?void 0:d.subtitle)&&void 0!==n?n:"",g=null!==(a=null==d?void 0:d.description)&&void 0!==a?a:"";F(null!==(r=null==d?void 0:d.count)&&void 0!==r?r:0),D(null!==(u=null==d?void 0:d.totalCount)&&void 0!==u?u:0),y(h),j(b),N(g),O(t=>e>1?[...t,...m]:m),R(!1),S(!1)},[v.value,K,q,f,es,ec,X,J,_.value,P,i,el,ee,o,s,V,Z]),e_=(0,r.useCallback)(()=>{x(e=>{let t=e+1;return em(t),t})},[em]),ef=v.handleChange,eb=m.handleChange,ex=_.handleChange;(0,r.useEffect)(()=>{ef(d.amount),eb(d.firstPayment),ex(d.payment),H(d.vehicleType),W(d.vehicleState),B(d.period),z(d.borrower),G(d.loan),Y(d.insuranceNeed),et(d.stateCoFinancing),eu(d.incomeProof)},[d.amount,d.borrower,d.firstPayment,d.incomeProof,d.insuranceNeed,d.loan,d.payment,d.period,d.stateCoFinancing,d.vehicleState,d.vehicleType,ef,eb,ex,o]),(0,r.useEffect)(()=>{er(!!(m.value&&"0"===m.value))},[m.value]);let eC=(0,r.useCallback)(()=>{v.handleChange(""),m.handleChange(""),_.handleChange(""),B(void 0),O([]),H([]),W([]),z([]),G([]),$([]),Y(!1),et(!1),eu([]),ed(!1)},[v,m,_]);return(0,tV.b)(()=>{ep.current?ep.current=!1:em(g)},[em],300),{isLoading:k,isPageLoading:w,title:C,subtitle:T,description:A,handleLoadMore:e_,autoCredits:U,count:L,totalCount:M,page:g,period:P,setPeriod:B,amount:v,firstPayment:m,isOpenModal:E,setIsOpenModal:I,vehicleType:Z,setVehicleType:H,insuranceNeed:X,stateCoFinancing:ee,setInsuranceNeed:Y,setStateCoFinancing:et,handleToggleModal:ev,resetFilter:eC,payment:_,incomeProof:es,setIncomeProof:eu,vehicleState:V,setVehicleState:W,borrower:q,setBorrower:z,loan:J,setLoan:G,banks:K,setBank:$,sort:el,setSort:en,increaseSort:ec,setIncreaseSort:ed,activeField:ea,notFirstPayment:eo,setNotFirstPayment:er,firstPaymentPercent:h}};var tq=l(61929),tz=l(77624),tQ=l(93259),tJ=l(42968),tG=l(23259),tK=l(30942),t$=l(93890),tX=l(12261),tY=l(7336),t0=l(67801),t1=l(91500),t2=l(97647),t3=l.n(t2);let t4=e=>{var t;let l=(null==e?void 0:null===(t=e.currentTarget)||void 0===t?void 0:t.textContent)?(0,et.b)(e.currentTarget.textContent):"glavnaya";(0,ee.l)({event:"data-event",eventAction:"click_link_".concat(l),eventCategory:L.u.AUTOCREDIT})},t6=e=>{var t,l,n,a,o;let{offers:u,count:d,tag:m,tags:g,townDublicates:x,posts:C,regions:y,banks:T,title:j,subtitle:A,description:N,expertQuote:k}=e,S=(0,eC.S0)(),{region:w,town:R}=(0,ev.T)(),[F,M]=(0,r.useState)(k),{asPath:D}=(0,eh.useRouter)(),I=null!==(l=null===(t=D.split("/").find(e=>e.includes("teg_")))||void 0===t?void 0:t.slice(4))&&void 0!==l?l:"DEFAULT",U=function(e,t){let[l,n]=(0,r.useState)(e);return(0,tO.r)(()=>{tB(t).then(n)},[n,t]),l}(m,I),O=function(e,t,l,n){let[a,i]=(0,r.useState)(e);return(0,tO.r)(()=>{tU(t,l,n).then(e=>{let{posts:t}=e;return i(t)})},[t,l,n]),a}(C,I,null==w?void 0:w.url,null==R?void 0:R.url),P=tW({region:w,town:R,tag:U,init:{count:d,list:u,subtitle:A,title:j,description:N}}),B=(0,tX.iN)(D);(0,tO.r)(()=>{(0,tY.b)(B).then(M)},[B]);let Z=(0,tG.I)(),H=(0,tK.U)(),V=(0,r.useMemo)(()=>(0,tz.n)(T,P.banks),[T,P.banks]),{mainBaseUrl:W}=(0,ep.ZR)(),q=(0,r.useMemo)(()=>{var e;let{autoCredits:t}=P,l=1/0,n=0;t.forEach(e=>{let{amount:t}=e;if(t){let e=t.from?+t.from:0,a=t.to?+t.to:0;l=Math.min(l,e),n=Math.max(n,a)}});let a=null!==(e=P.description)&&void 0!==e?e:"",i='"offers":{"@type":"AggregateOffer","url":"'.concat(W).concat(D,'","priceCurrency":"').concat("RUB",'","lowPrice":"').concat((0,J.uf)(l!=1/0?l:0),'","highPrice":"').concat((0,J.uf)(n),'"}');return'{"@context":"https://schema.org","@type":"Product","name":"'.concat(P.title,'","image":"').concat(W).concat(ts.oQ,'","description":"').concat(a,'",').concat(i,"}")},[P,W,D]),z=U&&"DEFAULT"!==U.tag_name?null==U?void 0:U.name:"Автокредиты",Q=(null==R?void 0:R.name_p)||(null==w?void 0:w.name_p)?" в ".concat((null==R?void 0:R.name_p)||(null==w?void 0:w.name_p)):"",G="".concat((null==w?void 0:w.url)?"/reg_".concat(null==w?void 0:w.url):"").concat((null==R?void 0:R.url)?"/".concat(null==R?void 0:R.url):""),K=(()=>{let e=U&&"DEFAULT"!==U.tag_name?',{"@type":"ListItem","position":3,"name":"&#128181 '.concat(z).concat(Q,'","item":"').concat(W).concat(D,'"}'):"",t='{"@type":"ListItem","position":1,"name":"Финуслуги","item":"'.concat(W,'"}'),l='{"@type":"ListItem","position":2,"name":"Автокредиты'.concat(Q,'","item":"').concat(W,"/").concat(L.u.AUTOCREDIT).concat(G,'"}');return"{".concat('"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":['.concat(t),",").concat(l).concat(e,"]}")})(),$=(0,r.useMemo)(()=>{let e=[];e.push(...(0,t1.a)(L.u.AUTOCREDIT,y,U,w,R,{nominativeCase:"Автокредиты",genitiveCase:"автокредитов"}));let t=g.reduce((e,t)=>{if(!1===t.url_redirect){let l=(0,tJ.h)(L.u.AUTOCREDIT,t,w,R),n=(0,t$.q9)(l,t.name);e.push(n)}return e},[]);if(e.push({title:"Виды автокредитов",text:(0,i.jsx)(t$.oP,{children:t})}),w){var l,n;e.push(...null!==(n=null===(l=U.region_page)||void 0===l?void 0:l.town_content.map(e=>({title:(0,tQ.Q)(e.title,w,R,x,void 0,U),text:(0,tQ.Q)(e.content.map(tq.Rp).join(""),w,R,x,void 0,U)})))&&void 0!==n?n:[])}else e.push(...U.text.map(e=>({title:(0,tQ.Q)(e.title,w,R,x,void 0,U),text:(0,tQ.Q)(e.content.map(tq.Rp).join(""),w,R,x,void 0,U)})));return e},[w,g,y,U,R,x]),X=O?C.map(e=>({...e,id:e.id,name:e.title,ctg_id:e.ctg})):[],Y=(()=>{let e=[{name:"Автокредиты".concat(Q),url:"/".concat(L.u.AUTOCREDIT).concat(G)}];return"DEFAULT"!==I&&e.push({name:"".concat(z).concat(Q),url:"/".concat(L.u.AUTOCREDIT,"/teg_").concat(I).concat(G)}),e.pop(),e})();return(0,i.jsxs)("main",{className:t3().page,children:[(0,i.jsx)(f.N,{title:null!==(n=P.title)&&void 0!==n?n:"",description:null!==(a=P.description)&&void 0!==a?a:""}),(0,i.jsx)(eT.o,{}),(0,i.jsx)("div",{className:(0,E.Z)(t3().background,"bg-".concat(H))}),(0,i.jsx)("div",{className:t3().navigationWrapper,children:(0,i.jsxs)(h.t,{children:[(0,i.jsx)(s.Oo,{path:Y,onClick:t4,current:"".concat(z).concat((null==U?void 0:U.default)?Q:"")}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:K}})]})}),(0,i.jsx)(h.t,{children:(0,i.jsx)(tk,{region:null!=w?w:null,town:null!=R?R:null,isMobile:S,tag:U,filter:P,subtitle:null!==(o=P.subtitle)&&void 0!==o?o:"",adFoxConfig:Z})}),(0,i.jsx)(tn,{banks:T,bankOptions:V,filter:P,isMobile:S,town:R,region:w}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:q}}),void 0!==F&&(0,i.jsx)(t0.c,{quote:F}),(0,i.jsx)(ej.B,{isAllExpanded:!0,faqBlockTitle:"",Link:e=>(0,i.jsx)(p(),{...e}),dataLayerPush:ee.l,questions:$,eventCategory:"cards_support_block",href:"".concat(W,"/help"),checkAllText:"Читать все вопросы про автокредиты"}),(0,i.jsx)(tI,{bankOptions:V,isMobile:S,filter:P}),X&&(0,i.jsx)(_.S,{posts:X,pageUrl:L.u.AUTOCREDIT,categories:[]}),(0,i.jsx)("div",{className:t3().supportSection,children:(0,i.jsx)(eA.O,{idSupport:b.Je,Image:e=>(0,i.jsx)(c(),{...e,width:555,height:344,src:v.Z,alt:"фоновое изображение"}),dataLayerPush:ee.l,eventEmitter:()=>window.supportWidget.craftTalk.open()})})]})};function t7(e){let{layout:t,root:l,banks:n,offers:a,posts:o,tags:r,tag:s,expertQuote:u}=e;return(0,i.jsx)(to.A,{data:t,withLocationConfirm:!0,children:(0,i.jsx)(t6,{regions:l.regions,townDublicates:l.town_dublicates,banks:n,posts:o,description:a.description,offers:a.offers,count:a.count,tags:r,tag:s,totalCount:a.totalCount,title:a.title,subtitle:a.subtitle,expertQuote:null!=u?u:void 0})})}l(35388),l(44735),l(27714);var t8=l(28254),t5=l(80330),t9=!0,le=(0,r.memo)(function(e){var t,l;return(0,i.jsx)(o.sM,{children:e.isShowcase?(0,i.jsx)(t8.p,{region:null!==(t=e.region)&&void 0!==t?t:void 0,town:null!==(l=e.town)&&void 0!==l?l:void 0,children:(0,i.jsx)(t7,{...e})}):(0,i.jsx)(t5.M,{children:(0,i.jsx)(tr,{...e})})})})},73654:function(e){e.exports={logo:"AutoCreditListItem_logo__KzLbz",placeholderLogo:"AutoCreditListItem_placeholderLogo__9xMXP"}},41294:function(e){e.exports={typeDescription:"CreditPaymentDescription_typeDescription__ksshX"}},65594:function(e){e.exports={buttons:"FilterActions_buttons__M1NwR",filterButton:"FilterActions_filterButton__Nlxda",modalButton:"FilterActions_modalButton__ta3GX"}},27685:function(e){e.exports={title:"FilterModal_title__2DQ0B",buttonActions:"FilterModal_buttonActions__x7_d8",button:"FilterModal_button__wUY6f",content:"FilterModal_content__0T5By",mobilePopup:"FilterModal_mobilePopup__qAuSl"}},5257:function(e){e.exports={filter:"ListFilter_filter__VuF60",newSortRadiosFilter:"ListFilter_newSortRadiosFilter__kKfmj",sortTypeDesktop:"ListFilter_sortTypeDesktop__5LQyN",container:"ListFilter_container__nvtCN",modal:"ListFilter_modal__3ZmvQ",newSortRadioModal:"ListFilter_newSortRadioModal__vNMpD",modalButton:"ListFilter_modalButton__d5V_n",chipsContainerModal:"ListFilter_chipsContainerModal__obTCR",chipsContainer:"ListFilter_chipsContainer__tfgri",chipsContainerClosed:"ListFilter_chipsContainerClosed__TNa0t",chip:"ListFilter_chip__3wvG6",actionsWrapper:"ListFilter_actionsWrapper__m04h1",action:"ListFilter_action__WggMr",actionText:"ListFilter_actionText__11VOZ",iconButton:"ListFilter_iconButton__9o3Q7",actionButton:"ListFilter_actionButton__I4ohH",icon:"ListFilter_icon__RsoyT",iconInverted:"ListFilter_iconInverted__1MkEe",stuck:"ListFilter_stuck___Ya2T",mainContainer:"ListFilter_mainContainer__Lb5um"}},30082:function(e){e.exports={wrap:"Dropdown_wrap__22_5K",newSortRadioWrap:"Dropdown_newSortRadioWrap__N83gl",content:"Dropdown_content__zkeB8"}},58177:function(e){e.exports={sortTypeContainer:"SortRadios_sortTypeContainer__8lU5M",newSortRadioSortTypeContainer:"SortRadios_newSortRadioSortTypeContainer__xY7lM",divider:"SortRadios_divider__P8JRR",sortType:"SortRadios_sortType__Ad5sp",sortTypeRadio:"SortRadios_sortTypeRadio__jVmAH",sortTypeTooltip:"SortRadios_sortTypeTooltip__JJNbc",sortTypeTrigger:"SortRadios_sortTypeTrigger__BgRzq",sortTypeHead:"SortRadios_sortTypeHead__VdaJc",newSortRadioSortTypeHead:"SortRadios_newSortRadioSortTypeHead__xKHHj",sortTypeButton:"SortRadios_sortTypeButton__UY3Mp",newSortRadioSortTypeButton:"SortRadios_newSortRadioSortTypeButton__wpRlC"}},41172:function(e){e.exports={wrapper:"OsagoAd_wrapper__MOwoz",bg:"OsagoAd_bg__m4rki",bgDesktop:"OsagoAd_bgDesktop__13CJL",bgMobile:"OsagoAd_bgMobile__4zRc9",button:"OsagoAd_button__2LK3h"}},83226:function(e){e.exports={title:"RegionTitle_title__ouhKs",link:"RegionTitle_link__r_rJV",titleWrapper:"RegionTitle_titleWrapper__yuBaG",newTitle:"RegionTitle_newTitle__SeVuV",subtitle:"RegionTitle_subtitle__T8Ha1"}},56381:function(e){e.exports={page:"AutoCreditDetail_page__jr_3y",supportSection:"AutoCreditDetail_supportSection__7506m",about:"AutoCreditDetail_about__5FUQp"}},5753:function(e){e.exports={container:"AutoCreditApplySteps_container__wmZpQ"}},21172:function(e){e.exports={container:"AutoCreditInfo_container__GOscQ",containerFull:"AutoCreditInfo_containerFull__Vw68s",promo:"AutoCreditInfo_promo__Qx6R9",left:"AutoCreditInfo_left__vBExI",right:"AutoCreditInfo_right__xYmGT",qrDesc:"AutoCreditInfo_qrDesc__u6mDR",qrMobile:"AutoCreditInfo_qrMobile__lHKp1",typeDescription:"AutoCreditInfo_typeDescription__5QoBb"}},5569:function(e){e.exports={title:"AutoCreditsList_title__kiemn",offersListContainer:"AutoCreditsList_offersListContainer__44vNc",listTitle:"AutoCreditsList_listTitle__fP1nX",container:"AutoCreditsList_container__aH3my",listItem:"AutoCreditsList_listItem__Y0xBf"}},97647:function(e){e.exports={page:"AutoCredits_page__EqZNI",sectionWrapper:"AutoCredits_sectionWrapper__QwfNp",adFox:"AutoCredits_adFox__W0ah4",background:"AutoCredits_background__EAWXM"}},30715:function(e){e.exports={pageHeadingWrap:"AutoCreditsFilter_pageHeadingWrap__HPOkm",banner:"AutoCreditsFilter_banner___JorH",container:"AutoCreditsFilter_container__TTHj_",filter:"AutoCreditsFilter_filter__Z6nkX",fields:"AutoCreditsFilter_fields__CUFW0",field:"AutoCreditsFilter_field__YsbeF",fieldIcon:"AutoCreditsFilter_fieldIcon__JjqAx",tagsWrapper:"AutoCreditsFilter_tagsWrapper__AxhCb",tag:"AutoCreditsFilter_tag__LGfem",dopsTitle:"AutoCreditsFilter_dopsTitle__SLwD5",dops:"AutoCreditsFilter_dops__31hQ1"}},7835:function(e){e.exports={wrapper:"AutoCreditsFilterDops_wrapper__8_0qa",item:"AutoCreditsFilterDops_item__GdL_E",detailIcon:"AutoCreditsFilterDops_detailIcon__lVAWv"}},10622:function(e){e.exports={fields:"AutoCreditsFilterModal_fields__bbPf2",checkboxWrapper:"AutoCreditsFilterModal_checkboxWrapper__LkTSZ",title:"AutoCreditsFilterModal_title__lcyEu",titleSort:"AutoCreditsFilterModal_titleSort__5yrZq",dops:"AutoCreditsFilterModal_dops__qbJ_a",wrapper:"AutoCreditsFilterModal_wrapper__WSPtT"}},10034:function(e){e.exports={title:"AutoCreditsList_title__FbtDC",listTitle:"AutoCreditsList_listTitle__UHGag",section:"AutoCreditsList_section__kDivH",titleHide:"AutoCreditsList_titleHide__AV_Pr",filter:"AutoCreditsList_filter__2OHf2",filterBottom:"AutoCreditsList_filterBottom__1_rnT",newLayout:"AutoCreditsList_newLayout__SXcV7",subtitle:"AutoCreditsList_subtitle__SiUJT",listItem:"AutoCreditsList_listItem__8sUMu",adv:"AutoCreditsList_adv__2T4FG",listContainer:"AutoCreditsList_listContainer__2BZk8","finkit-container--narrow":"AutoCreditsList_finkit-container--narrow__ziFs_"}},4645:function(e){e.exports={tagsWrapper:"AutoCreditsTags_tagsWrapper___62bH",tag:"AutoCreditsTags_tag__KsRe2"}},50586:function(e){e.exports={title:"styles_title__cObN3",list_wrap:"styles_list_wrap__z3_y1",content:"styles_content__tWscR",sort_content:"styles_sort_content__tPWO7",right_block:"styles_right_block__XypvM",viewed_offers_toggle:"styles_viewed_offers_toggle__C0ym7",subtitle:"styles_subtitle__RcERK",sort_label:"styles_sort_label__faPeq",dropdown_wrapper:"styles_dropdown_wrapper__Aj2XD"}}},function(e){e.O(0,[2730,3888,6832,5249,2935,5204,4466,1974,7462,6249,8276,7232,534,7153,2888,9774,179],function(){return e(e.s=9677)}),_N_E=e.O()}]);