(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4181],{1102:(e,t,n)=>{"use strict";n.d(t,{i:()=>f,v:()=>h});var r,l,s=n(37876),a=n(14232),o=n(54587),i=n.n(o),c=n(49995),d=n(37146),u=n.n(d);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)}let _=function(e){return a.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none"},e),r||(r=a.createElement("rect",{fill:"#f5f5f5"})),l||(l=a.createElement("path",{fill:"#919294",stroke:"#919294",strokeWidth:.1,d:"M10 28h20v2H10zm2-8h2v7h-2zm5 0h2v7h-2zm4 0h2v7h-2zm5 0h2v7h-2zm-16-5 10-5 10 5v4H10zm2 1.23V17h16v-.77l-8-4zm8-.23c-.56 0-1-.45-1-1 0-.56.44-1 1-1 .55 0 1 .44 1 1 0 .55-.45 1-1 1Z"})))};var f=function(e){return e.White="var(--color-white)",e.Gray="var(--color-gray)",e}({});function h(e){let{url:t,size:n,mobileSize:r=n,className:l,alt:a,rounded:o,backgroundColor:i="var(--color-white)"}=e,c=(0,s.jsx)(p,{url:t,size:n,mobileSize:r,className:l,alt:a});return o?(0,s.jsx)("div",{className:u().wrapper,style:{"--wrapper-size":"".concat(Math.trunc(1.625*n),"px"),"--wrapper-mobile-size":"".concat(Math.trunc(1.625*r),"px"),backgroundColor:i},children:c}):c}function p(e){let{url:t,size:n,mobileSize:r,className:l,alt:o}=e,[d,m]=(0,a.useState)(!1),f={"--image-size":"".concat(n,"px"),"--image-mobile-size":"".concat(r,"px")};return void 0===t||d?(0,s.jsx)(_,{className:(0,c.A)(l,u().image),style:f}):(0,s.jsx)(i(),{className:(0,c.A)(l,u().image),width:n,height:n,style:f,src:t,alt:o,onError:()=>m(!0)})}},2510:(e,t,n)=>{"use strict";n.d(t,{AP:()=>a,Z2:()=>r,cf:()=>l,s6:()=>s}),n(28131);let r="DEFAULT",l="teg_",s="reg_";function a(e){return e.startsWith(l)}},3010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(37876),l=n(14232),s=n(98477);let a=e=>{let{children:t,id:n="portal-root"}=e,[a,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{var e,t,r;let l=null==(e=document)?void 0:e.getElementById(n);if(l)o(l);else{let e=null==(t=document)?void 0:t.createElement("div");return null==(r=document)||r.body.appendChild(e),o(e),()=>{var t;null==(t=document)||t.body.removeChild(e)}}},[n]),(0,r.jsx)(r.Fragment,{children:a&&(0,s.createPortal)(t,a)})}},12837:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var r=n(37876),l=n(26685),s=n.n(l);function a(e){let{comment:t,text:n}=e;return void 0!==t&&void 0!==n?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}),(0,r.jsx)("div",{className:s().commentText,dangerouslySetInnerHTML:{__html:t}})]}):void 0!==n?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):void 0!==t?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}):void 0}},14022:e=>{e.exports={trigger:"Popover_trigger__8ZXEq",triggerContent:"Popover_triggerContent__yEQbS",contentWrapper:"Popover_contentWrapper__Cse_e",content:"Popover_content__QQDR1"}},16416:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(37876),l=n(14232),s=n(49995),a=n(37105);let o={[a.h.POTREBITELSKIE]:"о кредите",[a.h.AUTOCREDIT]:"об автокредите",[a.h.MICROZAJMY]:"о займе",[a.h.IPOTEKA]:"об ипотеке",[a.h.KARTY]:"о кредитной карте",[a.h.CALCULATOR]:"о кредите"};var i=n(66677),c=n.n(i);let d=(0,l.memo)(e=>{var t,n;let{pageUrl:l,offerDate:a,className:i}=e,{label:d,date:u}=(t=l,n=a,{label:"Информация ".concat(o[t]," актуальна на"),date:(e=>{if(!e)return"";let t=new Date(e).getDate(),n=new Date(e).getMonth()+1,r=new Date(e).getFullYear();return"".concat(t<10?"0"+t:t,".").concat(n<10?"0"+n:n,".").concat(r)})(n)});return""!==u?(0,r.jsx)("span",{className:(0,s.A)(c().actualDateOffer,i),children:"".concat(d," ").concat(u)}):null});d.displayName="ActualDateOffer"},18315:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var r=n(37876),l=n(14232),s=n(20988),a=n(3010),o=n(74356),i=n(16416),c=n(32266),d=n(94289),u=n.n(d);let m=(0,l.memo)(e=>{let{isOpen:t,cancelButton:n,submitButton:d,onClose:m,bankName:_,dataPoints:f,offerUpdateData:h,pageUrl:p}=e,v=(0,r.jsxs)("div",{className:u().content,children:[f.map(e=>(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)("h2",{className:u().title,children:e.sectionTitle}),(0,r.jsx)("div",{className:u().list,children:e.body.length?e.body.map((e,t)=>(0,r.jsxs)("div",{className:u().field,children:[(0,r.jsxs)("div",{className:u().titleWrapper,children:[(0,r.jsx)("h3",{className:u().fieldTitle,children:null==e?void 0:e.label}),(null==e?void 0:e.description)&&(0,r.jsx)(c.A,{triggerClassName:u().icon,content:e.description})]}),(0,r.jsx)("div",{className:u().fieldContent,children:null==e?void 0:e.value})]},t)):Array.from({length:6},(e,t)=>(0,r.jsx)(o.E,{className:u().skeletonContent},t))})]},e.sectionTitle)),(0,r.jsx)(i.n,{className:u().actualDate,pageUrl:p,offerDate:h})]}),x=(0,r.jsxs)("div",{className:u().footer,children:[void 0!==n&&(0,r.jsx)(s.$n,{variant:"secondary",onClick:n.onClick,children:n.title}),(0,r.jsx)(s.$n,{rel:"nofollow",as:"a",href:d.url,onClick:d.onClick,children:d.title})]});return(0,r.jsx)(a.Z,{children:(0,r.jsx)(s.aF,{open:t,onClose:m,footer:{children:x},header:{title:null!=_?_:""},className:u().mobilePopup,size:"l",children:(0,r.jsx)("div",{className:u().container,children:v})})})});m.displayName="OfferInfoModal"},26685:e=>{e.exports={commentText:"offer-terms_commentText__S3vmq"}},30557:(e,t,n)=>{"use strict";n.d(t,{j:()=>l,o:()=>s});var r=n(79807);function l(e){if(null!==e&&""!==e&&e){let{from:t,to:n}=e;if("string"==typeof n)return{from:"string"==typeof t?Number(t):0,to:Number(n)};if("number"==typeof n)return{from:"number"==typeof t?t:0,to:n};console.warn("Unexpected full price data: ".concat(e))}return null}function s(e){return(0,r.wf)(e.from,e.to,{minimumFractionDigits:3})}},32266:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,X:()=>d});var r=n(37876),l=n(25904),s=n(20988),a=n(49995),o=n(3010),i=n(14022),c=n.n(i);function d(e){let{className:t}=e;return(0,r.jsx)(l.IconFdsQuestionCircleO,{className:(0,a.A)(c().triggerContent,t)})}function u(e){let{children:t,triggerClassName:n,content:l,placement:i="bottom-start"}=e;return(0,r.jsxs)(s.ms,{placement:i,children:[(0,r.jsx)(s.uu,{className:(0,a.A)(c().trigger,n),children:null!=t?t:(0,r.jsx)(d,{})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)("div",{className:c().contentWrapper,children:(0,r.jsx)(s.pm,{className:c().content,children:"string"==typeof l?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:l}}):l})})})]})}u.displayName="Popover"},37146:e=>{e.exports={wrapper:"styles_wrapper__hwoSg",image:"styles_image__R0ztG"}},37397:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(33126),l=n(12771),s=n(63273),a=n(28131);async function o(e,t){var n;return i("".concat((n=(0,r.zj)().mainApiUrl,(0,s.oc)()&&window.origin!==n?"".concat((0,l.Cw)(),"/proxy").concat("/main"):n)).concat(e),t)}async function i(e,t){try{return{data:await (0,l.x6)(e,t),error:null}}catch(e){return{data:null,error:(0,a.u1)(e)}}}},47593:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(37876),l=n(90557),s=n.n(l);function a(e){let{isSticky:t}=e;return(0,r.jsx)("div",{className:s().disclaimer,style:t?{position:"sticky"}:{position:"fixed",width:"100%"},children:"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})}},66677:e=>{e.exports={actualDateOffer:"actual-date-offer_actualDateOffer__CNnEb"}},70894:e=>{e.exports={skeleton:"Skeleton_skeleton__QIS3q",move:"Skeleton_move__TZqyh"}},74356:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(37876),l=n(14232),s=n(49995),a=n(70894),o=n.n(a);let i=(0,l.memo)(e=>{let{className:t}=e;return(0,r.jsx)("div",{className:(0,s.A)(o().skeleton,t)})});i.displayName="Skeleton"},90557:e=>{e.exports={disclaimer:"advertisement-disclaimer_disclaimer__CoBa3"}},94289:e=>{e.exports={mobilePopup:"styles_mobilePopup__G3e3Z",container:"styles_container__IGo0H",list:"styles_list__eSXKF",title:"styles_title__b38Q2",content:"styles_content__44gQX",buttons:"styles_buttons__co1FZ",contentRow:"styles_contentRow__VrBta",findConfigBlock:"styles_findConfigBlock__Mv4DU",footer:"styles_footer__hi3PE",field:"styles_field__u00Wg",titleWrapper:"styles_titleWrapper___05yj",icon:"styles_icon__38Wzs",fieldTitle:"styles_fieldTitle__03wac",fieldContent:"styles_fieldContent__OnBG0",comment:"styles_comment__gnX9Y",actualDate:"styles_actualDate__sl9Yc",skeletonContent:"styles_skeletonContent__8znd2"}}}]);