(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1653],{162:(e,t,n)=>{"use strict";n.d(t,{Zs:()=>l});var c=n(12771),a=n(14731);async function r(e){return(await (0,c.aB)("quotes?quoteUrl=".concat(encodeURIComponent(e),"&published=true"))).content}async function l(e){var t;return null!=(t=await (0,c.pY)("showcases/expert-quote?".concat(e)))?t:void 0}async function i(e){let t=await r(e);if(void 0!==t)return(0,a.X)(t)}new(n(73584)).AP(i)},9837:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var c=n(37876),a=n(27116);function r(e){let{questions:t}=e;return 0===t.length?null:(0,c.jsx)(a.S,{schema:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(e=>({"@type":"Question",name:e.title,acceptedAnswer:{"@type":"Answer",text:e.plainText}}))}})}},14731:(e,t,n)=>{"use strict";function c(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function a(e){let t=Math.floor(Math.random()*e.length);return e[t]}n.d(t,{$:()=>c,X:()=>a})},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"}},27116:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var c=n(37876),a=n(77328),r=n.n(a);function l(e){let{schema:t}=e;return(0,c.jsx)(r(),{children:(0,c.jsx)("script",{type:"application/ld+json","data-testid":"schema-script",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})}},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"}},40087:e=>{e.exports={checkAllWrapper:"CheckAllLink_checkAllWrapper__5qaKf",link:"CheckAllLink_link___9cvw",icon:"CheckAllLink_icon__rFVbv"}},48673:(e,t,n)=>{"use strict";n.d(t,{aK:()=>l,qb:()=>r,w5:()=>a});var c=n(14232);let a=(e,t)=>{let n=(0,c.useRef)(!1);(0,c.useEffect)(()=>{n.current?e():n.current=!0},t)};function r(e){let t=(0,c.useRef)(e);return t.current=e,t}let l=c.memo},66460:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var c=n(37876),a=n(14232),r=n(33126),l=n(27116);let i=(0,a.memo)(()=>(0,c.jsx)(l.S,{schema:function(){let{mainBaseUrl:e,basePath:t}=(0,r.UK)();return{"@context":"https://schema.org","@type":"Organization",name:"finuslugi.ru",legalName:"ПАО \xabМосковская Биржа\xbb",url:e,logo:"".concat(e).concat(t,"/images/logo-1200x630.jpg"),sameAs:["https://vk.com/finuslugiru","https://t.me/MoexFinuslugi","https://zen.yandex.ru/finuslugi"],address:{"@type":"PostalAddress",addressLocality:"Москва",streetAddress:"Большой Кисловский переулок, дом 13",postalCode:"125009",addressCountry:"RU"},contactPoint:[{"@type":"ContactPoint",email:"service@finuslugi.ru",telephone:"+74951453232",contactType:"customer service",areaServed:"RU",availableLanguage:"Russian"}]}}()}));i.displayName="OrganizationSchema"},75428:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var c,a,r=n(14232);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)({}).hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(null,arguments)}let i=function(e){return r.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),c||(c=r.createElement("rect",{width:24,height:24,x:.5,fill:"#F3F4F6",rx:12})),a||(a=r.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,t,n)=>{"use strict";n.d(t,{T:()=>r});var c=n(37876),a=n(49995);let r=e=>{let{children:t,className:n,style:r,...l}=e;return(0,c.jsx)("span",{className:(0,a.A)(n,"private-icon"),style:r,...l,children:t})};r.displayName="PrivateIcon"},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,t,n)=>{"use strict";n.d(t,{m:()=>b});var c,a=n(37876),r=n(14232),l=n(25972),i=n(49995),o=n(16891),s=n(83024),d=n(82883),u=n(33528),_=n.n(u);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)({}).hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(null,arguments)}let h=function(e){return r.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),c||(c=r.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"})))},m=e=>{let{className:t,opened:n=!1,onChange:c=()=>null,title:l="",children:o,caption:s="",icon:u,state:p,message:m=""}=e,v=(0,r.useRef)(null),x=n&&v.current?{height:"".concat(v.current.scrollHeight,"px")}:{};return(0,a.jsxs)("div",{className:(0,i.A)(_().accordion,t),children:[(0,a.jsxs)("div",{className:(0,i.A)(_().body,{[_().opened]:n}),children:[(0,a.jsxs)("div",{role:"button",tabIndex:0,className:_().heading,onClick:c,children:[u&&(0,a.jsx)("span",{className:_().icon,children:(0,a.jsx)(d.T,{children:u})}),(0,a.jsxs)("span",{className:_().text,children:[(0,a.jsx)("h3",{className:_().title,children:l}),(0,a.jsx)("span",{className:_().caption,children:s})]}),(0,a.jsx)(d.T,{className:_().arrow,children:(0,a.jsx)(h,{className:_().icon})})]}),(0,a.jsx)("div",{ref:v,role:"region",className:(0,i.A)(_().wrapper,{[_().hidden]:!n}),style:x,children:(0,a.jsx)("div",{className:_().content,children:o})})]}),m&&(0,a.jsx)("div",{className:_().uiCaption,children:(0,a.jsx)("div",{className:(0,i.A)({[_().error]:"error"===p}),children:m})})]})};m.displayName="UiAccordion";let v=e=>{let{className:t,children:n,values:c,onChange:l}=e;return(0,a.jsx)("div",{className:(0,i.A)(t),children:r.Children.map(n,e=>{let t=e.props.value,n=c.includes(t);return(0,r.cloneElement)(e,{opened:n,onChange:()=>{l({values:n?c.filter(e=>e!==t):[...c,t],value:t,opened:n})}})})})};var x=n(40087),f=n.n(x),A=n(75428);let g=e=>{let{children:t,className:n,event:c,Link:r,href:l,dataLayerPush:o}=e;return(0,a.jsx)("div",{className:(0,i.A)(f().checkAllWrapper,n),onClick:()=>{c&&o(c)},children:(0,a.jsxs)(r,{className:f().link,href:l,children:[t,(0,a.jsx)(d.T,{className:f().icon,children:(0,a.jsx)(A.A,{})})]})})};g.displayName="CheckAllLink";var k=n(17207),y=n.n(k);let j=e=>{let{questions:t=[],eventCategory:n="common",checkAllText:c,dataLayerPush:l,Link:o,href:d,sectionTitle:u,isExpanded:_=!1,isAllExpanded:p=!1,variant:h="default",expandedQuantity:x=0}=e,f=(0,s.fH)(),A=(0,r.useCallback)(()=>{if(p)return t.map(e=>e.title);if(_){var e;return[null==(e=t[0])?void 0:e.title]}return x>0?t.slice(0,x).map(e=>e.title):[]},[p,_,x,t]),[k,j]=(0,r.useState)(A);return((0,r.useEffect)(()=>{j(A())},[A]),t.length)?(0,a.jsxs)("div",{className:y().faqBlock,children:[u&&(0,a.jsx)("h2",{className:y().title,children:u}),(0,a.jsx)(v,{values:k,onChange:e=>{let{values:t,value:c,opened:a}=e;l({event:"data-event",eventCategory:n,eventAction:"click_on_faq_question_".concat(a?"collapse":"expand"),eventLabel:"faq_block",eventValue:c,customer_id:f}),j(t)},children:t.map(e=>{let{title:t,text:n}=e;return(0,a.jsx)(m,{className:(0,i.A)(y().accordion,y()["accordion--".concat(h)]),title:t,value:t,children:"string"==typeof n?(0,a.jsx)("div",{className:y().content,dangerouslySetInnerHTML:{__html:n}}):(0,a.jsx)("div",{className:y().content,children:n})},t)})}),o&&d&&c&&(0,a.jsx)(g,{className:y().link,href:d,event:{event:"data-event",eventCategory:n,eventAction:"click_on_read_all_questions_button",eventLabel:"faq_block",customer_id:f},dataLayerPush:l,Link:o,children:c||"Читать все вопросы"})]}):null};var N=n(93915),w=n.n(N);let b=(0,r.memo)(e=>{let{newContainer:t=!1,sectionTitle:n="Частые вопросы",faqBlockTitle:c="Частые вопросы",idFAQBlock:r,questions:s=[],dataLayerPush:d,eventCategory:u,checkAllText:_,Link:p,href:h,isExpanded:m,isAllExpanded:v,variant:x="default",className:f,expandedQuantity:A}=e,g=t?l.mc:o.J;return(0,a.jsx)("section",{className:(0,i.A)(w().supportSection,w()["supportSection--".concat(x)],f),id:r,children:(0,a.jsxs)(g,{className:t?void 0:w().noPadding,children:[n&&(0,a.jsx)("h2",{className:w().title,children:n}),(0,a.jsx)(j,{sectionTitle:c,questions:s,eventCategory:u,checkAllText:_,dataLayerPush:d,Link:p,href:h,isExpanded:m,isAllExpanded:v,variant:x,expandedQuantity:A})]})})});b.displayName="UiFAQBlock"}}]);