(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7586],{17207:e=>{e.exports={faqBlock:"FAQBlock_faqBlock__cWLG2",title:"FAQBlock_title__ZHM6E",accordion:"FAQBlock_accordion__Q0LXh","accordion--default":"FAQBlock_accordion--default__wR261","accordion--secondary":"FAQBlock_accordion--secondary__vpWgf",content:"FAQBlock_content__bfX78",link:"FAQBlock_link___SWxz"}},23857:(e,n,t)=>{"use strict";t.d(n,{P:()=>v});var r=t(37876),l=t(30783),o=t(69241),a=t(3010),c=t(47593),i=t(81078),s=t(78511),d=t(33126),u=t(92666);function _(e){var n;let{className:t,data:l}=e,o=(0,d.UK)(),{region:a,town:c}=(0,u.z)(),i=null!=(n=null==c?void 0:c.name)?n:null==a?void 0:a.name;return(0,r.jsx)("div",{className:t,children:(0,r.jsx)(s.Y9,{data:l,showcaseUrl:o.mainBaseUrl,lkUrl:o.lkBaseUrl,initialTown:i,enableExternalLinkWarning:o.isExternalLinkWarningEnabled})})}var h=t(33965),p=t.n(h);function v(e){let{children:n,data:t,withoutDisclaimer:s=!1}=e;return(0,r.jsxs)("div",{className:(0,o.A)(p().layout,{[p().layoutPaddingTop]:void 0===t.header,[p().noPadding]:void 0!==t.header}),children:[void 0!==t.header&&(0,r.jsx)(_,{data:t.header}),n,void 0!==t.footer&&(0,r.jsx)(i.w,{className:p().footer,data:t.footer}),!s&&(0,r.jsx)(c.B,{}),(0,r.jsx)(a.Z,{children:(0,r.jsx)(l.S,{})})]})}},25632:(e,n,t)=>{"use strict";t.d(n,{X:()=>o});var r=t(37397),l=t(28131);async function o(e){let{data:n,error:t}=await (0,r.Q)("/money_data/Root.json?short=1&region_url=".concat(encodeURIComponent(e)));if(t)throw Error(t);if((null==n?void 0:n.regions.length)!==1)throw new l.m_("Region not found: ".concat(e));return n.regions[0]}},33528:e=>{e.exports={accordion:"Accordion_accordion__jiZSo",body:"Accordion_body__UCEKf",opened:"Accordion_opened___mIgV",arrow:"Accordion_arrow__MxD3n",wrapper:"Accordion_wrapper__wl1jd",heading:"Accordion_heading__c1Nty",text:"Accordion_text__ytimm",title:"Accordion_title__TW0s9",icon:"Accordion_icon__4ER_k",hidden:"Accordion_hidden__waLzM",content:"Accordion_content__cvCsV",caption:"Accordion_caption__AHtDb",uiCaption:"Accordion_uiCaption__yK3dA",error:"Accordion_error__lDkkc"}},33965:e=>{e.exports={layout:"layout_layout__iXzDO",layoutPaddingTop:"layout_layoutPaddingTop__JFFLK",noPadding:"layout_noPadding__tZ4w4",mobileNavigation:"layout_mobileNavigation__CR6bw",footer:"layout_footer__3IlnK"}},36612:(e,n,t)=>{"use strict";t.d(n,{K:()=>c,k:()=>i});var r=t(37876),l=t(78511),o=t(14232),a=t(92666);function c(e){let{children:n}=e,t=i();return(0,r.jsx)(a.d,{location:t,children:n})}function i(){let{region:e,town:n}=(0,l.om)();return function(e,n){let t=(0,o.useRef)(!1);return(0,o.useMemo)(()=>{if(t.current)return e();t.current=!0},n)}(()=>null!==e?{region:e,town:null!=n?n:void 0}:{},[e,n])}},40087:e=>{e.exports={checkAllWrapper:"CheckAllLink_checkAllWrapper__5qaKf",link:"CheckAllLink_link___9cvw",icon:"CheckAllLink_icon__rFVbv"}},44837:(e,n,t)=>{"use strict";t.d(n,{B:()=>o});var r=t(73584),l=t(12771);async function o(){return a.getOrUpdate()}let a=new r.B4(c);async function c(){try{let{custom:{redirects:e}}=await (0,l.aB)("sc-page/".concat("redirects-credits"));for(let[n,t]of Object.entries(e))n.startsWith("/")&&(e[n.slice(1)]=t,delete e[n]);return e}catch(e){return}}},44860:(e,n,t)=>{"use strict";t.d(n,{On:()=>l}),t(25632),t(28131),t(44837),t(84883),t(2510);let r=new Set(["moskva","sankt-peterburg","sevastopol"]);function l(e,n){return e===n&&r.has(n)}},75428:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var r,l,o=t(14232);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}let c=function(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),r||(r=o.createElement("rect",{width:24,height:24,x:.5,fill:"#F3F4F6",rx:12})),l||(l=o.createElement("path",{fill:"#525BBB",d:"m15.024 10.152-4.888-1.31a.667.667 0 0 1 .345-1.287l6.44 1.725a.667.667 0 0 1 .471.816l-1.725 6.44a.667.667 0 0 1-1.288-.345l1.31-4.887-6.771 3.914a.666.666 0 0 1-.914-.245.666.666 0 0 1 .245-.914z"})))}},82883:(e,n,t)=>{"use strict";t.d(n,{T:()=>o});var r=t(37876),l=t(69241);let o=e=>{let{children:n,className:t,style:o,...a}=e;return(0,r.jsx)("span",{className:(0,l.A)(t,"private-icon"),style:o,...a,children:n})};o.displayName="PrivateIcon"},84883:(e,n,t)=>{"use strict";t.d(n,{I:()=>o});var r=t(37105),l=t(12771);async function o(){return a.getOrUpdate()}let a=new(t(73584)).B4(c);async function c(){let{redirects:{urlRedirects:e,regionRedirects:n}}=await (0,l.zy)("Redirects.json"),t={},o=new Set([r.h.POTREBITELSKIE,r.h.KARTY,r.h.MICROZAJMY,r.h.AUTOCREDIT,r.h.IPOTEKA]);return e.forEach(e=>{let n=e.url.slice(0,e.url.indexOf("/"));o.has(n)&&(t[e.url]=e.redirect)}),n.forEach(e=>{t[e.url]=e.redirect}),t}},92666:(e,n,t)=>{"use strict";t.d(n,{d:()=>c,z:()=>i});var r=t(37876),l=t(14232),o=t(44860);let a=(0,l.createContext)(void 0);function c(e){let{children:n,location:t}=e,{region:c,town:i}=null!=t?t:{},s=(0,l.useMemo)(()=>void 0!==c?{region:c,town:(null==i?void 0:i.url)===void 0||(0,o.On)(c.url,i.url)?void 0:i}:{},[null==c?void 0:c.url,null==i?void 0:i.url]);return(0,r.jsx)(a.Provider,{value:s,children:n})}function i(){let e=(0,l.useContext)(a);if(!e)throw Error("The context of the location is used outside of the provider");return e}},93915:e=>{e.exports={supportSection:"FAQBlock_supportSection__nBh6q",noPadding:"FAQBlock_noPadding__G1pWN","supportSection--default":"FAQBlock_supportSection--default__OsjCA",title:"FAQBlock_title__GDPgx","supportSection--secondary":"FAQBlock_supportSection--secondary__pvSti"}},99275:(e,n,t)=>{"use strict";t.d(n,{m:()=>B});var r,l=t(37876),o=t(14232),a=t(40317),c=t(69241),i=t(16891),s=t(83024),d=t(82883),u=t(33528),_=t.n(u);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(null,arguments)}let p=function(e){return o.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r||(r=o.createElement("path",{fill:"#1F242E",d:"M7.466 19.551A1.48 1.48 0 0 1 7 18.481c0-.401.167-.786.466-1.07l5.667-5.449L7.466 6.59A1.48 1.48 0 0 1 7 5.52c0-.401.167-.786.466-1.07.148-.142.325-.255.52-.332a1.68 1.68 0 0 1 1.232 0c.195.077.372.19.52.332l6.788 6.435c.15.141.27.31.35.494a1.45 1.45 0 0 1 0 1.168c-.08.185-.2.353-.35.494L9.74 19.55a1.6 1.6 0 0 1-.521.332 1.68 1.68 0 0 1-1.232 0 1.6 1.6 0 0 1-.52-.332"})))},v=e=>{let{className:n,opened:t=!1,onChange:r=()=>null,title:a="",children:i,caption:s="",icon:u,state:h,message:v=""}=e,f=(0,o.useRef)(null),m=t&&f.current?{height:"".concat(f.current.scrollHeight,"px")}:{};return(0,l.jsxs)("div",{className:(0,c.A)(_().accordion,n),children:[(0,l.jsxs)("div",{className:(0,c.A)(_().body,{[_().opened]:t}),children:[(0,l.jsxs)("div",{role:"button",tabIndex:0,className:_().heading,onClick:r,children:[u&&(0,l.jsx)("span",{className:_().icon,children:(0,l.jsx)(d.T,{children:u})}),(0,l.jsxs)("span",{className:_().text,children:[(0,l.jsx)("h3",{className:_().title,children:a}),(0,l.jsx)("span",{className:_().caption,children:s})]}),(0,l.jsx)(d.T,{className:_().arrow,children:(0,l.jsx)(p,{className:_().icon})})]}),(0,l.jsx)("div",{ref:f,role:"region",className:(0,c.A)(_().wrapper,{[_().hidden]:!t}),style:m,children:(0,l.jsx)("div",{className:_().content,children:i})})]}),v&&(0,l.jsx)("div",{className:_().uiCaption,children:(0,l.jsx)("div",{className:(0,c.A)({[_().error]:"error"===h}),children:v})})]})};v.displayName="UiAccordion";let f=e=>{let{className:n,children:t,values:r,onChange:a}=e;return(0,l.jsx)("div",{className:(0,c.A)(n),children:o.Children.map(t,e=>{let n=e.props.value,t=r.includes(n);return(0,o.cloneElement)(e,{opened:t,onChange:()=>{a({values:t?r.filter(e=>e!==n):[...r,n],value:n,opened:t})}})})})};var m=t(40087),x=t.n(m),A=t(75428);let k=e=>{let{children:n,className:t,event:r,Link:o,href:a,dataLayerPush:i}=e;return(0,l.jsx)("div",{className:(0,c.A)(x().checkAllWrapper,t),onClick:()=>{r&&i(r)},children:(0,l.jsxs)(o,{className:x().link,href:a,children:[n,(0,l.jsx)(d.T,{className:x().icon,children:(0,l.jsx)(A.A,{})})]})})};k.displayName="CheckAllLink";var g=t(17207),j=t.n(g);let y=e=>{let{questions:n=[],eventCategory:t="common",checkAllText:r,dataLayerPush:a,Link:i,href:d,sectionTitle:u,isExpanded:_=!1,isAllExpanded:h=!1,variant:p="default",expandedQuantity:m=0}=e,x=(0,s.fH)(),A=(0,o.useCallback)(()=>{if(h)return n.map(e=>e.title);if(_){var e;return[null==(e=n[0])?void 0:e.title]}return m>0?n.slice(0,m).map(e=>e.title):[]},[h,_,m,n]),[g,y]=(0,o.useState)(A);return((0,o.useEffect)(()=>{y(A())},[A]),n.length)?(0,l.jsxs)("div",{className:j().faqBlock,children:[u&&(0,l.jsx)("h2",{className:j().title,children:u}),(0,l.jsx)(f,{values:g,onChange:e=>{let{values:n,value:r,opened:l}=e;a({event:"data-event",eventCategory:t,eventAction:"click_on_faq_question_".concat(l?"collapse":"expand"),eventLabel:"faq_block",eventValue:r,customer_id:x}),y(n)},children:n.map(e=>{let{title:n,text:t}=e;return(0,l.jsx)(v,{className:(0,c.A)(j().accordion,j()["accordion--".concat(p)]),title:n,value:n,children:"string"==typeof t?(0,l.jsx)("div",{className:j().content,dangerouslySetInnerHTML:{__html:t}}):(0,l.jsx)("div",{className:j().content,children:t})},n)})}),i&&d&&r&&(0,l.jsx)(k,{className:j().link,href:d,event:{event:"data-event",eventCategory:t,eventAction:"click_on_read_all_questions_button",eventLabel:"faq_block",customer_id:x},dataLayerPush:a,Link:i,children:r||"Читать все вопросы"})]}):null};var w=t(93915),N=t.n(w);let B=(0,o.memo)(e=>{let{newContainer:n=!1,sectionTitle:t="Частые вопросы",faqBlockTitle:r="Частые вопросы",idFAQBlock:o,questions:s=[],dataLayerPush:d,eventCategory:u,checkAllText:_,Link:h,href:p,isExpanded:v,isAllExpanded:f,variant:m="default",className:x,expandedQuantity:A}=e,k=n?a.m:i.J;return(0,l.jsx)("section",{className:(0,c.A)(N().supportSection,N()["supportSection--".concat(m)],x),id:o,children:(0,l.jsxs)(k,{className:n?void 0:N().noPadding,children:[t&&(0,l.jsx)("h2",{className:N().title,children:t}),(0,l.jsx)(y,{sectionTitle:r,questions:s,eventCategory:u,checkAllText:_,dataLayerPush:d,Link:h,href:p,isExpanded:v,isAllExpanded:f,variant:m,expandedQuantity:A})]})})});B.displayName="UiFAQBlock"}}]);