(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3570],{60041:function(e,t,n){"use strict";var r,i=n(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:13.266,height:12,fill:"none",viewBox:"0 0 13.266 12"},e),r||(r=i.createElement("path",{fill:"#000",d:"m6.59 3.29-.94.95-1.69-1.69v8.78H2.63V2.55L.94 4.24 0 3.29 3.29 0zm6.67 5.41L9.96 12l-3.3-3.3.94-.95 1.7 1.69L9.29.66h1.34v8.78l1.69-1.69z"})))}},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}},45392:function(e,t,n){"use strict";n.d(t,{n:function(){return g}});var r=n(85893),i=n(34588),s=n(25675),l=n.n(s),o=n(41664),a=n.n(o),c=n(67294),u={src:"/kredity/assets/_next/static/media/background-image.343f2236.svg",height:270,width:435,blurWidth:0,blurHeight:0},d={src:"/kredity/assets/_next/static/media/hand-image.f4773fa4.svg",height:295,width:242,blurWidth:0,blurHeight:0},_=n(54663),f=n(39918),h=n(94020),v=n(12261),b=n(30748),p=n.n(b);let g=(0,c.memo)(e=>{let{url:t,text:n,mainPageUrl:s}=e,o=!(0,h.V)("lg"),c=(0,v.sD)(t);return(0,r.jsx)("section",{id:_.dM,className:p().wrapper,children:(0,r.jsxs)("div",{className:p().container,children:[(0,r.jsxs)("div",{className:p().content,children:[(0,r.jsx)("h3",{className:p().title,children:"Не подходит предложение?"}),(0,r.jsxs)("div",{className:p().textBlock,children:[(0,r.jsx)("p",{className:p().text,children:n}),c?(0,r.jsx)(i.zx,{rel:"nofollow",as:"a",className:p().button,variant:"purple",href:t,target:"_blank",onClick:()=>(0,f.D)({eventCategory:s,eventAction:f.i.button,eventActionText:"Подробнее",eventLabel:t}),children:"Подробнее"}):(0,r.jsx)(a(),{href:t,children:(0,r.jsx)(i.zx,{className:p().button,variant:"purple",onClick:()=>(0,f.D)({eventCategory:s,eventAction:f.i.button,eventActionText:"Подробнее",eventLabel:t}),children:"Подробнее"})})]}),!o&&(0,r.jsx)(l(),{className:p().icon,width:242,height:295,alt:"иконка",src:d})]}),(0,r.jsx)(l(),{className:p().backgroundImage,width:436,height:o?270:468,alt:"иконка",src:u})]})})});g.displayName="RedirectToLogin"},65618:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=null;return n=>{t&&clearInterval(t),t=setTimeout(n,e)}}},63781:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});let r=e=>["а","е","ё","и","о","у","ы","э","ю","я"].indexOf(e)>=0,i=e=>e&&e.length?"в"!==e[0].toLowerCase()&&"ф"!==e[0].toLowerCase()||r(e[1])?"в":"во":""},86605:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(67294);let i=()=>{let[e,t]=(0,r.useState)(null);return(0,r.useEffect)(()=>{document.referrer.length&&t(document.referrer)},[]),e};var s=n(54228);function l(e){let{bannersTitle:t,queryParams:n,stores:r}=e,l=(0,s.S0)(),o=i(),a=(o?[...n,"referer=".concat(o)]:n).join("&");return t.reduce((e,t)=>{let n=null==r?void 0:r.find(e=>e.title===t);return n?{...e,[t]:(l?null==n?void 0:n.url_mobile:null==n?void 0:n.url_desktop)+(a.length?"?"+a:"")}:e},{})}},24178:function(e,t,n){"use strict";n.d(t,{i:function(){return w}});var r,i=n(85893),s=n(86010),l=n(67294),o=n(59457),a=n(39918),c=n(40741),u=n(41664),d=n.n(u),_=n(68103),f=n.n(_);function h(e){let{config:t,hidden:n,useLink:r,iconOnly:l}=e,{value:o,label:a,color:c,icon:u,onChipClick:_}=t,h=()=>u?l?(0,i.jsx)(u,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u,{})," ",a]}):a,v=e=>(0,i.jsx)("div",{className:(0,s.Z)(f().button,f()[c],e),onClick:_?()=>_(o):void 0,children:(0,i.jsx)("div",{className:f().label,children:h()})}),b=(0,s.Z)({[f().hidden]:n});return r?(0,i.jsx)(d(),{className:(0,s.Z)(f().link,b),href:o,onClick:e=>e.preventDefault(),children:v()}):v(b)}var v=n(54228);function b(e){let{items:t,visibleCount:n,useLinks:r,iconsOnly:s}=e,l=(0,v.cb)();return(0,i.jsx)(i.Fragment,{children:t.map((e,t)=>{var o;return(0,i.jsx)(h,{config:e,useLink:null!==(o=e.useLink)&&void 0!==o?o:r,iconOnly:!l&&s,hidden:t>n},e.label)})})}let p=e=>{let[t,n]=(0,l.useState)(0),[r,i]=(0,l.useState)(0),s=(0,l.useRef)(null),o=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0];if(t){let{width:e}=t.contentRect,l=0,a=0,c=Array.from(t.target.children);for(let t=0;t<c.length;t++){var r,s;if((l+=c[t].offsetWidth+12)<=e-(null!==(s=null===(r=o.current)||void 0===r?void 0:r.offsetWidth)&&void 0!==s?s:0))i(t),a=t;else{n(a);break}}}});return t.observe(e),()=>{t.unobserve(e)}},[t,r,e]),[r,t,s,o,12]};var g=n(41753),x=n.n(g);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var j=function(e){return l.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:12,height:6,fill:"none",viewBox:"0 0 12 6"},e),r||(r=l.createElement("path",{fill:"currentColor",d:"M11.663.28a1.25 1.25 0 0 0-.802-.28c-.301 0-.59.1-.803.28l-4.086 3.4-4.03-3.4A1.25 1.25 0 0 0 1.139 0C.84 0 .55.1.337.28a1 1 0 0 0-.25.312.83.83 0 0 0 0 .739 1 1 0 0 0 .25.312l4.826 4.073q.161.136.37.21a1.32 1.32 0 0 0 .876 0 1.2 1.2 0 0 0 .37-.21l4.884-4.073a1 1 0 0 0 .25-.312.83.83 0 0 0 0-.74 1 1 0 0 0-.25-.312"})))};function w(e){let{chips:t,useLinkChips:n=!1,iconsOnly:r=!1,onParamsClick:u}=e,d=(0,v.cb)(),[_,f]=(0,l.useState)(!1),h=[{value:"filter",label:"Все фильтры",color:"default",icon:o.Z,useLink:!1,onChipClick:u},...t],g=_?"Свернуть":"Ещё",[m,w,y,k,N]=p(h.length);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:y,className:(0,s.Z)(x().row,{[x().open]:d&&_}),style:{gap:N},children:[(0,i.jsx)(b,{items:h,visibleCount:d&&!_?m:h.length-1,iconsOnly:r,useLinks:n}),d&&!!w&&w<h.length-1&&(0,i.jsxs)("div",{ref:k,className:(0,s.Z)(x().toggle,{[x().open]:_}),onClick:()=>{(0,a.D)({eventAction:a.i.button,eventActionText:(0,c.b)(g)}),f(e=>!e)},children:[g," ",(0,i.jsx)(j,{})]})]})})}},22584:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(85893),i=n(86010),s=n(24178),l=n(19813),o=n.n(l);function a(e){let{chips:t,onParamsClick:n}=e;return(0,r.jsx)("div",{className:(0,i.Z)(o().wrap,o().newLayout),children:(0,r.jsx)("div",{className:o().top_row,children:(0,r.jsx)("div",{className:o().chips_row,children:(0,r.jsx)(s.i,{chips:t,onParamsClick:n,iconsOnly:!0})})})})}a.displayName="SmallFilter"},62637:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(67294);function i(){let e=(0,r.useRef)(null),[t,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e.current)return;let t=new IntersectionObserver(e=>{let[t]=e;n(!t.isIntersecting)},{threshold:[.01],rootMargin:"-3px 0px 100% 0px"});return t.observe(e.current),()=>t.disconnect()},[]),{ref:e,isSticky:t}}},84452:function(e,t,n){"use strict";function r(e){let{offers:t,getBankKey:n,getAmount:r,getRate:i}=e,s=new Map;for(let e=0;e<t.length;e++){let l=t[e],o=n(l),a=s.get(o);if(!a){s.set(o,l);continue}let c=r(a),u=r(l);if(u>c){s.set(o,l);continue}if(u<c)continue;let d=i(a);i(l)<d&&s.set(o,l)}return Array.from(s.values())}n.d(t,{V:function(){return r}})},60730:function(e,t,n){"use strict";function r(e,t,n,r){return void 0===t?e:[...e].sort((e,i)=>{let s=r(e,t),l=r(i,t);return void 0===s&&void 0===l?0:void 0===s?1:void 0===l?-1:"number"==typeof s&&"number"==typeof l?"asc"===n?s-l:l-s:"asc"===n?String(s).localeCompare(String(l)):String(l).localeCompare(String(s))})}n.d(t,{k:function(){return r}})},76063:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(85893),i=n(59194),s=n(86010),l=n(46463),o=n(72194),a=n.n(o);function c(e){let{rows:t,columns:n,className:o,sort:c,sortOrder:u="asc",onSortChange:d}=e,_=e=>{null==d||d(e,c!==e?"asc":"asc"===u?"desc":"asc")};return(0,r.jsx)("div",{className:(0,s.Z)(a().container,o),children:(0,r.jsxs)("table",{className:a().table,children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:n.map(e=>{let t=!!e.value,n=e.value===c;return(0,r.jsx)("th",{children:(0,r.jsxs)("div",{className:a().headerCell,children:[(0,r.jsx)("span",{className:a().headerTitle,children:e.title}),(0,r.jsx)("span",{className:(0,s.Z)(a().sortIcon,n&&"desc"===u&&a().desc),onClick:()=>t&&_(e.value),children:(0,r.jsx)(i.IconFdsArrowDownBigO,{})})]})},e.value)})})}),(0,r.jsx)("tbody",{children:t.map(e=>{let{id:t,logo:n,name:i,cells:s}=e;return(0,r.jsxs)("tr",{children:[(0,r.jsxs)("td",{children:[(0,r.jsx)(l.D,{url:n,size:25,mobileSize:20,alt:i,rounded:!0}),i]}),s.map((e,t)=>(0,r.jsx)("td",{children:e},t))]},t)})})]})})}},38919:function(e,t,n){"use strict";function r(e,t){return e.reduce((e,n)=>(e[n[t]]=n,e),{})}n.d(t,{g:function(){return r}})},27480:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(85893),i=n(19438),s=n(45959),l=n.n(s);function o(e){let{steps:t,variant:n="primary"}=e;return(0,r.jsxs)(i.t,{className:"primary"===n?void 0:l().aboutContainer,children:[(0,r.jsx)("div",{className:l().aboutTitle,children:"Как работает сервис"}),(0,r.jsx)("div",{className:l().about,children:t.map((e,t)=>(0,r.jsxs)("div",{className:l().aboutStep,children:[(0,r.jsxs)("div",{className:l().aboutStepHeader,children:["Шаг ",t+1]}),(0,r.jsx)("div",{className:l().aboutStepContent,children:e})]},t))})]})}},30748:function(e){e.exports={content:"RedirectToLogin_content__LP3oF",title:"RedirectToLogin_title__giAmT",wrapper:"RedirectToLogin_wrapper__sp_aL",container:"RedirectToLogin_container__oRs3Q",backgroundImage:"RedirectToLogin_backgroundImage__k5_j2",textBlock:"RedirectToLogin_textBlock__EONov",text:"RedirectToLogin_text__OW6mv",button:"RedirectToLogin_button__jN7fd",icon:"RedirectToLogin_icon__NbFJA"}},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"}},68103:function(e){e.exports={link:"styles_link__IVNhF",button:"styles_button__8Y7Nb",black:"styles_black__AeSKw",label:"styles_label__XyMU_",hidden:"styles_hidden__JUJEp"}},41753:function(e){e.exports={row:"styles_row__foNTI",open:"styles_open__8DaSQ",firstRow:"styles_firstRow__ytbon",toggle:"styles_toggle__3Zn8B",filter_icon:"styles_filter_icon__5eS34"}},19813:function(e){e.exports={wrap:"styles_wrap__At5cj",newLayout:"styles_newLayout__pIG1W",top_row:"styles_top_row__Ua6iT",chips_row:"styles_chips_row__gSGJd",top_row_content:"styles_top_row_content__hy0rr"}},72194:function(e){e.exports={container:"faq-offers_container__na7MQ",table:"faq-offers_table__1Wp3v",headerCell:"faq-offers_headerCell___ER4M",headerTitle:"faq-offers_headerTitle__jdLzc",sortIcon:"faq-offers_sortIcon__Hsc6x",desc:"faq-offers_desc__A_IfI"}},45959:function(e){e.exports={aboutTitle:"about_aboutTitle__Lhak6",about:"about_about__lE0dL",aboutContainer:"about_aboutContainer__EMq_m",aboutStep:"about_aboutStep__kFAO5",aboutStepHeader:"about_aboutStepHeader__1cijY",aboutStepContent:"about_aboutStepContent__3dj7t"}}}]);