(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1567],{3067:(e,t,a)=>{"use strict";function l(e){return e.map(e=>{var t;return i({url:(t=e).url,title:t.title,publicDate:t.public_date},t)})}function n(e){return e.map(e=>{var t;return i({url:(t=e).url,title:t.title,publicDate:t.publ_date.substring(0,19)},t)})}function i(e,t){let a=t.img;return null!==a&&(e.imageUrl=a.file),e}a.d(t,{G:()=>n,n:()=>l})},10280:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(12771);async function n(){return i.getOrUpdate()}let i=new(a(73584)).B4(r);async function r(){return(await (0,l.aB)("data/page-data?scLayoutName=PageFooter&scPageUrl=homepage")).value}},13394:(e,t,a)=>{"use strict";a.d(t,{u:()=>T});var l=a(37876),n=a(14232),i=a(13636),r=a(42195),s=a(69241),o=a(3010),c=a(74356),d=a(37105),u=a(31257),p=a(16196),_=a(5153);let m=[{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(16416),b=a(83024),y=a(83918),g=a.n(y);let f=e=>e.loading?(0,l.jsx)("div",{className:g().cards_list,children:Array.from({length:24},(e,t)=>(0,l.jsx)(c.E,{className:(0,s.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)(h.n,{className:g().actualDate,pageUrl:e.mainPageUrl,offerDate:e.updateDate})]}):null,T=e=>{var t,a,s,c,h,y,T;let x="кредиту";e.mainPageUrl===d.h.AUTOCREDIT?x="автокредиту":e.mainPageUrl===d.h.KARTY&&(x="карте");let w="Все условия по ".concat(x),C=(0,b.fH)(),R=(0,n.useMemo)(()=>(e=>{let t={paramsTitle:"",termsTitle:"",companyTitle:"",requirementsVehicleTitle:"",paramsRows:[],termsRows:[],companyRows:[],requirementsVehicleRows:[]};if(!e)return t;let{data:a,cardTypes:i,contactlessCardTypes:r,mainPageUrl:s}=e;if(!a)return t;let o=[],c=[],u=[],v=[];if(t.paramsTitle="Параметры ".concat(m.filter(e=>e.id===s)[0].name),t.termsTitle="Условия по ".concat(m.filter(e=>e.id===s)[0].name_p),t.requirementsVehicleTitle="Требования к ТС",t.companyTitle="О банке",d.h.AUTOCREDIT===s){let{params:e,terms:t,company:l,requirementsVehicle:n}=(0,_.v)(a);o=e,c=t,u=l,v=n}if(d.h.IPOTEKA===s){let{params:e,terms:t,company:l}=(0,_.tf)(a);o=e,c=t,u=l}if(d.h.KARTY===s&&i&&r){let{params:e,company:t}=(0,_.N9)(a,i,r);o=e,u=t}if([d.h.POTREBITELSKIE,d.h.CALCULATOR].includes(s)){let{params:e,terms:t,company:l}=(0,_.pw)(a);o=e,c=t,u=l}return t.paramsRows=o.map(e=>(0,l.jsx)(n.Fragment,{children:(0,l.jsx)(p.o,{...e})},e.label)),t.termsRows=c.map(e=>(0,l.jsx)(n.Fragment,{children:(0,l.jsx)(p.o,{...e})},e.label)),t.companyRows=u.map(e=>(0,l.jsx)(n.Fragment,{children:(0,l.jsx)(p.o,{...e})},e.label)),t.requirementsVehicleRows=v.map(e=>(0,l.jsx)(n.Fragment,{children:(0,l.jsx)(p.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]),j=t=>{var a;(0,u._)({customerId:C,eventAction:u.y.link,eventActionText:t,eventCategory:e.mainPageUrl,eventLabel:null==(a=e.data)?void 0:a.id})};(0,n.useEffect)(()=>{var t,a,l,n;(null==(t=e.data)?void 0:t.bankName)&&(null==(a=e.data)?void 0:a.id)&&e.isOpen&&(0,u._)({customerId:C,eventAction:u.y.popup,eventActionText:null==(l=e.data)?void 0:l.bankName,eventCategory:e.mainPageUrl,eventLabel:null==(n=e.data)?void 0:n.id})},[e.isOpen,e.mainPageUrl,null==(t=e.data)?void 0:t.bankName,null==(a=e.data)?void 0:a.id,C]);let N=(0,l.jsxs)("div",{className:g().buttons,children:[(0,l.jsx)(i.$,{as:"a",onClick:()=>j(w),target:"_blank",href:null==(s=e.data)?void 0:s.detailUrl,variant:"secondary",className:g().button,children:"Все ".concat(null==R?void 0:R.termsTitle)}),(0,l.jsx)(i.$,{as:"a",onClick:()=>j((0,v.y)("Подать заявку")),target:"_blank",href:null==(c=e.data)?void 0:c.url,className:g().button,children:"Подать заявку"})]});return(0,l.jsx)(o.Z,{children:(0,l.jsx)(r.a,{className:g().mobilePopup,open:e.isOpen,onClose:e.onClose,footer:{children:N},header:{title:null!=(T=null==(h=e.data)?void 0:h.bankName)?T:""},size:"l",children:(0,l.jsx)("div",{className:g().container,children:(0,l.jsx)(f,{...R,loading:e.loading,mainPageUrl:e.mainPageUrl,updateDate:null==(y=e.data)?void 0:y.m_updated_at})})})})}},27964:(e,t,a)=>{"use strict";function l(e){let{name:t,description:a,image:l,aggregateRating:n,offers:i}=e;return{"@context":"https://schema.org","@type":"Product",name:t,description:a,image:l,aggregateRating:n,offers:i}}a.d(t,{Z:()=>l})},31257:(e,t,a)=>{"use strict";a.d(t,{_:()=>r,y:()=>i});var l=a(91063),n=a(87087),i=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 r=e=>{let t,a,{eventCategory:i,eventAction:r,eventActionText:s="",eventLabel:o,eventValue:c,url:d,customerId:u}=e;t="boolean"==typeof c?c?"on":"off":c,a="filter_catalog"!==r?/[а-я]/i.test(s.toLowerCase()):"string"!=typeof o||/[а-я]/i.test(o.toLowerCase());let p="filter_catalog"!==r?{event:"data-event",eventCategory:null!=i?i:"",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"})[r]+(0,n.y)(s.toLowerCase().replaceAll(" ","_")),eventLabel:o,eventValue:t,url:d,customer_id:u}:{event:"data-event",eventAction:null!=i?i:"",eventCategory:r,eventLabel:function(e,t){return"string"==typeof e?t?e:(0,n.y)(e):e}(o,a),eventValue:t,url:d,customer_id:u};(0,l.o)(p)}},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}({})},40818:(e,t,a)=>{"use strict";a.d(t,{Be:()=>n,PA:()=>d,So:()=>l,ZA:()=>s,eb:()=>_,fy:()=>p,l5:()=>c,mr:()=>r,ni:()=>u,s:()=>o,v_:()=>i});let l="Ежемесячный платеж до",n="Сумма кредита",i=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"},o=[{label:"По популярности",field:"order"},{label:"По ставке",field:"rate"},{label:"По платежу",field:"payment"}],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:"Иное"}],u=[{value:"not_required",label:"Не требуется"},{value:"pledge",label:"Залог"},{value:"guarantee",label:"Поручительство"},{value:"full",label:"Залог и поручительство"}],p=[{value:"to_account",label:"На счет в вашем банке"},{value:"to_custom_account",label:"На счет в стороннем банке"},{value:"to_card",label:"На карту"},{value:"cash",label:"Наличными"}],_=[{value:"not_required",label:"Не требуется"},{value:"ndfl",label:"Справка 2-НДФЛ"},{value:"bank_form",label:"Справка по форме банка"},{value:"custom_form",label:"Альтернативные формы"}]},41329:(e,t,a)=>{"use strict";function l(e){let{url:t,priceCurrency:a,offers:l,getLowPrice:n,getHighPrice:i,offerCount:r}=e,{lowPrice:s,highPrice:o}=function(e,t,a){let l=e.reduce((e,l)=>{e.lowPrice=Math.min(e.lowPrice,t(l));let n=a(l);return void 0!==n&&(e.highPrice=Math.max(e.highPrice,n)),e},{lowPrice:1/0,highPrice:-1/0});return{...Number.isFinite(l.lowPrice)&&{lowPrice:l.lowPrice},...Number.isFinite(l.highPrice)&&{highPrice:l.highPrice}}}(l,n,i);return{"@type":"AggregateOffer",url:t,priceCurrency:a,lowPrice:s,highPrice:o,offerCount:r}}a.d(t,{l:()=>l})},43736: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"}},53244:(e,t,a)=>{"use strict";a.d(t,{q:()=>p});var l=a(37876),n=a(14232),i=a(48230),r=a.n(i),s=a(69241),o=a(81202),c=a(33126),d=a(55754),u=a.n(d);let p=(0,n.memo)(e=>{let{type:t,className:a}=e;return({[o.w.annuity]:(0,l.jsxs)("p",{className:(0,s.A)(u().typeDescription,a),children:["Тип погашения, при котором ваш обязательный платеж банку остается неизменным в течение всего срока кредита. Подробнее о типах платежей"," ",(0,l.jsx)(r(),{target:"_blank",href:"".concat((0,c.UK)().mainBaseUrl,"/navigator/kredity/stat_chto_vybrat_annuitetnye_ili_differencirovannye_platezhi?ysclid=lm0hhclslg385431421"),children:"написали здесь"})]}),[o.w.differentiated]:(0,l.jsxs)("p",{className:(0,s.A)(u().typeDescription,a),children:["Тип погашения, при котором ваш обязательный платеж банку остается неизменным в течение всего срока кредита. Подробнее о типах платежей"," ",(0,l.jsx)(r(),{target:"_blank",href:"".concat((0,c.UK)().mainBaseUrl,"/navigator/kredity/stat_chto_vybrat_annuitetnye_ili_differencirovannye_platezhi?ysclid=lm0hhclslg385431421"),children:"написали здесь"})]})})[t]});p.displayName="CreditPaymentDescription"},54926:(e,t,a)=>{"use strict";function l(e){let{ratingValue:t,reviewCount:a,bestRating:l,worstRating:n}=e;return{"@type":"AggregateRating",ratingValue:t,reviewCount:a,bestRating:l,worstRating:n}}a.d(t,{E:()=>l})},55754:e=>{e.exports={typeDescription:"CreditPaymentDescription_typeDescription__ksshX"}},56420:(e,t,a)=>{"use strict";a.d(t,{v:()=>l});let l=e=>{let t=Number(e.split(" ")[0]);return e&&!Number.isNaN(t)?t:0}},62728:(e,t,a)=>{"use strict";function l(e){return"object"==typeof e&&null!==e?!!(e.comment||e.text):!!e}function n(e){return"number"==typeof e||(Array.isArray(e)?e.some(e=>l(e)):l(e))}a.d(t,{a:()=>n})},63396: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",chipsContainer:"ListFilter_chipsContainer__tfgri",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",chipsContainerClosed:"ListFilter_chipsContainerClosed__TNa0t"}},67221:(e,t,a)=>{"use strict";a.d(t,{e:()=>i,s:()=>n});var l=a(14232);let n=(e,t,a)=>{(0,l.useEffect)(()=>{let t=setTimeout(()=>{e()},a);return()=>{clearTimeout(t)}},t)},i=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,[n,i]=(0,l.useState)(a),[r,s]=(0,l.useState)(!1),[o,c]=(0,l.useState)(null);return(0,l.useEffect)(()=>{s(!0),e().then(i).catch(c).then(()=>{s(!1)})},t),[n,r,o]}},80010:(e,t,a)=>{"use strict";a.d(t,{r:()=>l});let l=(e,t)=>(t>0&&!Number.isInteger(e)&&!Number.isNaN(e)&&String(e).split(".")[1].length>t&&(e=+e.toFixed(t)),e)},82734:e=>{e.exports={wrap:"Dropdown_wrap__22_5K",newSortRadioWrap:"Dropdown_newSortRadioWrap__N83gl",content:"Dropdown_content__zkeB8"}},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:()=>n});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"},n=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})},88508:(e,t,a)=>{"use strict";a.d(t,{x:()=>j});var l,n,i=a(37876),r=a(14232),s=a(29589),o=a(69241),c=a(82734),d=a.n(c);let u=e=>{let{content:t,children:a,disabled:l,isNewSortRadios:n}=e,[s,c]=(0,r.useState)(!1),u=(0,r.useCallback)(()=>c(!0),[c]),p=(0,r.useCallback)(()=>c(!1),[c]);return(0,i.jsxs)("div",{className:(0,o.A)(d().wrap,n&&d().newSortRadioWrap),onClick:u,ref:(e=>{let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let a=a=>{var l;let{target:n}=a;n instanceof HTMLElement&&!(null==(l=t.current)?void 0:l.contains(n))&&e()};return window.addEventListener("click",a),()=>{window.removeEventListener("click",a)}},[e]),t})(p),children:[a,s&&!l&&(0,i.jsx)("div",{className:d().content,children:t})]})};var p=a(86933),_=a(28346),m=a(43736),v=a.n(m);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let b=function(e){return r.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),l||(l=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"})))};function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(null,arguments)}let g=function(e){return r.createElement("svg",y({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"})))},f=e=>{let{isNewSortRadios:t,isMobile:a,onChangeSort:l,isIncreaseSort:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:(0,o.A)(v().sortTypeHead,t&&v().newSortRadioSortTypeHead),children:[(0,i.jsx)("button",{style:{marginLeft:"0px",marginRight:a?"0px":"8px"},className:(0,o.A)(v().sortTypeButton,t&&v().newSortRadioSortTypeButton),onClick:l,children:(0,i.jsx)(g,{className:(0,o.A)(!n&&v().iconInverted)})}),"Сортировать"]}),t&&(0,i.jsx)("div",{className:v().divider})]})},T=(0,r.memo)(e=>{let{isMobile:t,onChangeSort:a,isIncreaseSort:l,onChangeSortType:n,sortTypeItems:r,sortTypeValue:s,isNewSortRadios:c}=e;return(0,i.jsxs)(i.Fragment,{children:[!c&&t&&(0,i.jsx)(f,{onChangeSort:a,isMobile:t,isIncreaseSort:l,isNewSortRadios:c}),(0,i.jsxs)("div",{className:(0,o.A)(v().sortTypeContainer,c&&v().newSortRadioSortTypeContainer),onClick:e=>e.stopPropagation(),children:[c&&(0,i.jsx)(f,{onChangeSort:a,isMobile:t,isIncreaseSort:l,isNewSortRadios:c}),r.map(e=>(0,i.jsxs)("div",{"data-qa":"".concat(e.value,"_radio"),className:v().sortType,children:[c?(0,i.jsx)(p.s,{name:e.value,value:s,checked:e.value===s,label:e.label,onChange:()=>n(e.value)}):(0,i.jsx)(p.s,{name:e.value,label:e.label,checked:e.value===s,className:v().sortTypeRadio,value:e.value,onChange:()=>n(e.value)}),e.description&&(0,i.jsx)(_.m,{text:e.description,className:(0,o.A)(v().sortTypeButton,c&&v().newSortRadioSortTypeButton),children:(0,i.jsx)(b,{})})]},e.value))]})]})});T.displayName="SortRadios";var x=a(16891),w=a(63396),C=a.n(w),R=a(19497);let j=(0,r.memo)(e=>{let{chips:t,onClickParams:a,isIncreaseSort:l,onChangeIncreaseSort:n,sortTypeItems:c,sortTypeValue:d,onChangeSortType:p,isMobile:_,isFixed:m,portalId:v,onClickChip:h,className:b,onClickSortType:y,isNewSortRadios:f}=e,w=(0,r.useCallback)(()=>null==n?void 0:n(!l),[l,n]),j=(0,i.jsx)("div",{style:{padding:"8px",borderRadius:f?"20px":"8px",background:"white"},className:(0,o.A)(!_&&f&&C().sortTypeDesktop),children:(0,i.jsx)(T,{isMobile:_,isIncreaseSort:l,onChangeSort:w,onChangeSortType:p,sortTypeItems:c,sortTypeValue:d,isNewSortRadios:f,portalId:v})}),N=c.find(e=>e.value===d);return(0,i.jsx)("div",{className:(0,o.A)(C().filter,f&&C().newSortRadiosFilter,m&&C().stuck,b),children:(0,i.jsx)(x.J,{className:C().mainContainer,children:(0,i.jsxs)("div",{className:C().container,children:[(0,i.jsx)(s.C,{className:C().chipsContainer,chips:t,value:t.map(e=>e.id),multiple:!0,activeVariant:"secondary",onChipClick:h}),(0,i.jsxs)("div",{className:C().actionsWrapper,children:[(0,i.jsxs)("button",{className:(0,o.A)(C().action,C().actionButton),onClick:a,children:[(0,i.jsx)(R.A,{className:C().icon}),(0,i.jsx)("span",{className:C().actionText,children:"Все параметры"})]}),(0,i.jsxs)("div",{className:C().action,children:[(0,i.jsx)("button",{className:(0,o.A)(C().icon,C().iconButton,!l&&C().iconInverted),onClick:w,children:(0,i.jsx)(g,{})}),(0,i.jsx)(u,{content:j,disabled:_,isNewSortRadios:f,children:(0,i.jsx)("button",{onClick:y,className:(0,o.A)(C().actionText,C().actionButton),"data-qa":"".concat(d,"_order"),children:(null==N?void 0:N.shortLabel)||(null==N?void 0:N.label)||"Сортировка"})})]})]})]})})})});j.displayName="ListFilter"},91063:(e,t,a)=>{"use strict";a.d(t,{o:()=>n});var l=a(70728);function n(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)}}}]);