"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[745],{5668:function(e,t,n){n.d(t,{D:function(){return S},P:function(){return W},U:function(){return R},u:function(){return b}});var l=n(7437),o=n(7042),r=n(2265),i=n(629),a=n(950),s=n(4887);let c=300,d=({opened:e})=>{let[t,n]=(0,r.useState)(!1),l=(0,r.useRef)(null),o=(0,r.useRef)(!1);return(0,r.useEffect)(()=>(e&&!o.current?(o.current=!0,n(!0)):!e&&o.current&&(l.current=setTimeout(()=>{o.current=!1,n(!1)},c)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},u=(0,a.g)("click-outside","sc"),m=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),p=({onClose:e,onToucheMove:t,isOpen:n,delay:i=c})=>{let a=(0,r.useRef)(null),s=(0,r.useCallback)(()=>{e&&(a.current=setTimeout(()=>{e()},i))},[i,e]),d=(0,r.useCallback)(e=>{"Escape"===e.key&&s()},[s]);return(0,r.useEffect)(()=>(n&&window.addEventListener("keydown",d),()=>{a.current&&clearTimeout(a.current),window.removeEventListener("keydown",d)}),[n,d]),(0,l.jsx)("div",{className:(0,o.Z)(m.overlay,{[m.open]:n,[m.close]:!n}),onTouchStart:t,onClick:s})},h=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},v=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},_=(e,t,n)=>{t.style.setProperty("overflow-y","scroll"),e.classList.toggle("scroll-disable-windows",!0),e.style.setProperty("width",`calc(100vw - ${n}px)`),e.style.setProperty("top",`-${window.prevScrollPosition}px`)},x=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vw")},f=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},g=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},w=()=>document.querySelectorAll("[data-portal]").length>1,b=e=>{let t=(0,r.useRef)(null),n=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(n.current===e)return;n.current=e;let l=t.current,o=document.body,r=document.documentElement,i=window.innerWidth-r.clientWidth,a=i>0;if(e&&a)v(o),_(o,r,i),h(l,!0);else if(e)x(o),h(l,!0);else{let e=!w();e&&f(o),e&&g(),h(l,!1)}return()=>{let e=!w();e&&f(o),e&&g()}},[e]),t},j=(0,a.g)("drawer-footer","sc"),y=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),$=({footer:e,hasScroll:t,className:n})=>(0,l.jsx)("div",{className:(0,o.Z)(y.footer,{[y.hasScroll]:t},n),children:"function"==typeof e?e():e}),k=(0,a.g)("drawer-content","sc"),N=Object.freeze({container:`${k}__container`,open:`${k}--open`,close:`${k}--close`,header:`${k}__header`,rowHeader:`${k}__header--row`,title:`${k}__title`,center:`${k}__title--center`,left:`${k}__title--left`,right:`${k}__title--right`,controlContainer:`${k}__control-container`,content:`${k}__content`,footer:`${k}__footer`}),C=({onClose:e,onContentClick:t,children:n,title:a,rowTitle:s,titleAlign:c,isCloseable:d,footer:u,closeButton:m,isOpen:p,contentClassName:h,footerClassName:v,contentStyle:_,width:x})=>{let f=(0,r.useRef)(null),g=(0,r.useRef)(null),[w,b]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;if(!g.current||!f.current)return;let t=(null==(e=null==g?void 0:g.current)?void 0:e.getBoundingClientRect().top)||0,n=null==f?void 0:f.current,l=()=>{let e=null==g?void 0:g.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",l,!1),()=>{null==n||n.removeEventListener("scroll",l,!1)}},[]);let j=_||x?{width:x,..._||{}}:void 0;return(0,l.jsxs)("div",{ref:f,style:j,className:(0,o.Z)(N.container,{[N.open]:p,[N.close]:!p},h),children:[a||d?(0,l.jsxs)("div",{className:(0,o.Z)(N.header,{[N.rowHeader]:s}),children:[d?m?"function"==typeof m?m():m:(0,l.jsx)("button",{type:"button",className:N.controlContainer,onClick:e,children:(0,l.jsx)(i.IconFdsCloseO,{size:24})}):null,a?(0,l.jsx)("h3",{className:(0,o.Z)(N.title,{[N[c]]:!0}),children:a}):null]}):null,(0,l.jsx)("div",{ref:g,className:N.content,onClick:t,children:n}),u&&(0,l.jsx)($,{className:(0,o.Z)(N.footer,v),footer:u,hasScroll:w})]})},T=(0,a.g)("drawer-layout","sc"),L=Object.freeze({window:`${T}__window`}),A=({onClose:e,isOpen:t,children:n,withDisabledScroll:i,className:a,...s})=>{let c=(0,r.useCallback)(e=>e.stopPropagation(),[]);return b(t&&i),(0,l.jsxs)("div",{"data-portal":!0,className:(0,o.Z)(L.window,a),children:[(0,l.jsx)(p,{onClose:e,isOpen:t,delay:0}),(0,l.jsx)(C,{onContentClick:c,onClose:e,isOpen:t,...s,children:n})]})},S=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:o=!0,withDisabledScroll:r=!0,...i})=>{let{mounted:a}=d({opened:e});return a?(0,l.jsx)(A,{titleAlign:n,isCloseable:o,isOpen:e,withDisabledScroll:r,...i,children:t}):null};S.displayName="Drawer";let O=(0,a.g)("mobile-modal-footer","sc"),P=Object.freeze({footer:`${O}__footer`,footerWithoutShadow:`${O}__footer--without-shadow`}),z=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,l.jsx)("div",{className:(0,o.Z)(P.footer,t&&P.footerWithoutShadow,n),children:"function"==typeof e?e():e}),I=(0,a.g)("mobile-popup","sc"),E=Object.freeze({mobilePopup:`${I}`,mobilePopupOpen:`${I}--open`,content:`${I}__content`,contentFull:`${I}__content--full`,contentTransition:`${I}__content--transition`,contentTransitionOpen:`${I}__content--transition-open`,contentLine:`${I}__content-line`,contentContainer:`${I}__content-container`,smallContentContainer:`${I}__content-container--small`,min:`${I}__content-container--min`,title:`${I}__title`,closeContainer:`${I}__close-container`,closeButton:`${I}__close-button`}),U=({children:e,footer:t,isOpen:n,isSmallPopup:a,onClose:s,hasCloseButton:c=!0,full:d,touchDistance:u=100,withDisabledScroll:m=!0,contentClassName:h,className:v,title:_,closeButton:x,footerClassName:f})=>{let[g,w]=(0,r.useState)(!1),[j,y]=(0,r.useState)(!1),[$,k]=(0,r.useState)(!0),[N,C]=(0,r.useState)("120%"),T=(0,r.useRef)(null),L=(0,r.useRef)(0),A=(0,r.useRef)(!1),S=e=>{var t,n,l;let o=null==(t=T.current)?void 0:t.offsetTop,r=null==(n=T.current)?void 0:n.offsetHeight;if(A.current=!0,k(!1),o&&r){let t=(null==(l=null==e?void 0:e.touches[0])?void 0:l.clientY)-o,n=0;t>=0&&t<=r+30&&(n=t),t>r+30&&(n=r+30),C(`${n}px`),L.current=n}},O=()=>{A.current&&(L.current>u&&s?null==s||s():C("0"),k(!0),A.current=!1),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",O)};return(0,r.useEffect)(()=>{n&&setTimeout(()=>{w(!0),y(!0),C("0")},100),!n&&j&&(C("120%"),w(!1),y(!1))},[j,n]),b(n&&m),(0,l.jsxs)("div",{"data-portal":!0,className:(0,o.Z)(E.mobilePopup,j&&E.mobilePopupOpen,v),children:[(0,l.jsx)(p,{onClose:()=>{n&&(null==s||s())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",S),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,l.jsxs)("div",{className:(0,o.Z)(E.content,d&&E.contentFull,$&&E.contentTransition,$&&g&&E.contentTransitionOpen),ref:T,style:{transform:`translateY(${N})`},children:[(0,l.jsx)("div",{className:E.contentLine}),(0,l.jsxs)("div",{className:(0,o.Z)(E.contentContainer,a&&E.smallContentContainer,{[E.min]:!_&&!c},h),children:[!!_&&(0,l.jsx)("div",{className:E.title,children:_}),c?(0,l.jsx)("div",{className:E.closeContainer,children:c?x?"function"==typeof x?x():x:(0,l.jsx)("button",{onClick:s,className:E.closeButton,children:(0,l.jsx)(i.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,l.jsx)(z,{footerClassName:f,isSmallPopup:a,footer:t})]})]})},R=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...o})=>{let{mounted:r}=d({opened:n});return r?(0,l.jsx)(U,{isSmallPopup:t,isOpen:n,...o,children:e}):null};R.displayName="UiMobilePopup";let W=({children:e,id:t="portal-root"})=>{let[n,l]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.getElementById(t);if(e){l(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),l(n),()=>{document.body.removeChild(n)}},[t]),n?(0,s.createPortal)(e,n):null}},4802:function(e,t,n){n.d(t,{C:function(){return f}});var l=n(7437),o=n(3915),r=n(1518),i=n(7042),a=n(2265),s=n(7162),c=n(400),d=n(950);let u=(0,d.g)("faq-block","sc"),m=Object.freeze({faqBlock:u,titleWrapper:`${u}__title-wrapper`,title:`${u}__title`,accordionWrapper:`${u}__accordion-wrapper`,accordionItems:`${u}__accordion-items`,accordion:`${u}__accordion`,accordionItem:`${u}__accordion-item`,accordionItemContent:`${u}__accordion-item-content`,accordionActiveItemContent:`${u}__accordion-item-content--active`,accordionItemText:`${u}__accordion-item-text`,states:{primary:`${u}--primary`,secondary:`${u}--secondary`}}),p=(0,d.g)("faq-content-block","sc"),h=Object.freeze({contentBlocks:`${p}__content-blocks`,blockLink:`${p}__block-link`,keynoteWrapper:`${p}__keynote-wrapper`,keynote:`${p}__keynote`,annotation:`${p}__annotation`,contentTableWrapper:`${p}__content-table-wrapper`}),v=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},_=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,o={data:t,headerBlocksCount:0,banner:[]};v(o),v(o);let r={},i=e=>{var t,n,l,o;let i=(null==(t=e.data)?void 0:t.text)??(null==(n=e.data)?void 0:n.url)??(null==(l=e.data)?void 0:l.html)??(null!=(o=e.data)&&o.year?String(e.data.year):"");return r[e.type]=(r[e.type]??0)+1,`${e.type}-${String(i).slice(0,80)}-${r[e.type]}`};return t.forEach(t=>{let o=i(t);switch(t.type){case"header":e.push((0,l.jsx)("h2",{id:`content_header_${n}`,role:"header",children:t.data.text||""},o)),n++;break;case"sub_header":e.push((0,l.jsx)("h3",{role:"sub-header",children:t.data.text||""},o));break;case"paragraph":e.push((0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},o));break;case"link":e.push((0,l.jsx)("div",{className:h.blockLink,children:(0,l.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},o));break;case"dossier":e.push((0,l.jsxs)("div",{children:[(0,l.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},o));break;case"html":e.push((0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},o));break;case"annotation":e.push((0,l.jsx)("div",{className:h.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},o));break;case"company-annotation":e.push((0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},o));break;case"keynote":e.push((0,l.jsx)("div",{className:h.keynoteWrapper,children:(0,l.jsx)("p",{className:h.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},o));break;case"image":e.push((0,l.jsx)("img",{src:t.data.url||"",alt:"image"},o))}}),e})();return(0,l.jsx)("div",{className:(0,i.Z)(h.contentBlocks,e),role:"blocks",children:n})},x=({question:e,eventCategory:t,dataLayerPush:n,...o})=>(0,l.jsx)(r.Qd,{...o,title:e.question,outline:!1,className:(0,i.Z)(m.accordionItem),children:(0,l.jsx)("div",{className:(0,i.Z)(m.accordionItemContent,{[m.accordionActiveItemContent]:o.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,l.jsx)(_,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),f=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:d,checkAllText:u,Link:p,className:h,eventCategory:v="cb-faq",multiple:_=!1,variant:f="secondary",dataLayerPush:g})=>{let w=_?n.map(e=>e.question):[],[b,j]=(0,a.useState)(w);return(0,l.jsx)("section",{className:(0,i.Z)(m.faqBlock,m.states[f],h),children:(0,l.jsxs)(o.W2,{children:[!t&&(0,l.jsx)("div",{className:m.titleWrapper,children:(0,l.jsx)(o.X6,{as:"h2",type:"display",className:m.title,children:e})}),(0,l.jsxs)("div",{className:m.accordionWrapper,children:[t&&(0,l.jsx)(o.X6,{as:"h3",type:"h1",className:(0,i.Z)(m.title,`${m.title}--inner`),children:t}),(0,l.jsx)("div",{className:m.accordionItems,children:(0,l.jsx)(r.UQ,{className:m.accordion,activeIndex:b,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==b?void 0:b.length),n=e.filter(e=>!b.includes(e))[0]||b.filter(t=>!e.includes(t))[0];j(e),g({event:"data-event",eventCategory:v,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,s.t)(String(n))})},multiple:_,children:n.map(e=>(0,l.jsx)(x,{id:`${e.question}-${e.answer}`,question:e,dataLayerPush:g,eventCategory:v},`${e.question}-${e.answer}`))})}),d&&u&&(0,l.jsx)(c.C,{href:d,event:{event:"data-event",eventCategory:v,eventAction:"сlick_link_answer-link",eventLabel:d},dataLayerPush:g,...null!=p?{Link:p}:{},iconGrayBackground:!0,children:u||"Читать все вопросы"})]})]})})}},6591:function(e,t,n){n.d(t,{$:function(){return Y}});var l,o=n(7437),r=n(3915),i=n(7042),a=n(5950),s=n(950),c=n(1518),d=n(2406),u=n(629),m=n(2265),p=n(5668);let h=(0,s.g)("footer-contacts-block","sc"),v=Object.freeze({contactsWrapper:`${h}__contacts-wrapper`,gray:`${h}__gray`,phones:`${h}__phones`,contactsButtons:`${h}__contacts-buttons`,vkIcon:`${h}__vk-icon`,tgIcon:`${h}__tg-icon`,dzenIcon:`${h}__dzen-icon`,maxIcon:`${h}__max-icon`,link:`${h}__link`}),_=(0,s.g)("footer","sc"),x=Object.freeze({wrapper:`${_}__wrapper`,section:`${_}__section`,container:`${_}__container`,top:`${_}__top`,main:`${_}__main`,links:`${_}__links`,disclaimer:`${_}__disclaimer`,bottom:`${_}__bottom`,bottomLinks:`${_}__bottom-links`,bottomDisclaimer:`${_}__bottom-disclaimer`,compact:`${_}__wrapper--compact`,white:`${_}__wrapper--white`}),f="finkit-widgets-sc-footer",g=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"}],w=[...g,{title:"Онлайн чат",url:void 0}],b=[{type:"vk",className:v.vkIcon,iconName:"vk"},{type:"telegramChannel",className:v.tgIcon,iconName:"telegram"},{type:"dzen",className:v.dzenIcon,iconName:"dzen"},{type:"max",className:v.maxIcon,iconName:"max"}],j=(0,o.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО \xabМБ Маркетплейс\xbb, организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ \xabО совершении финансовых сделок с использованием финансовой платформы\xbb. Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой \xabОткрытие онлайн на Финуслугах\xbb. Иная информация на сайте www.finuslugi.ru считается размещенной ООО \xabМБ Маркетплейс\xbb, если иное явно не следует из существа размещаемой информации. ООО \xabМБ Маркетплейс\xbb входит в Группу \xabМосковская Биржа\xbb.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),y=({onClick:e,eventActionText:t,eventLabel:n,...l})=>(0,o.jsx)(c.zx,{onClick:l=>{null==e||e(l),(0,d.h)({eventCategory:f,eventActionType:d.D.button,eventActionText:t||"",eventLabel:n})},...l}),$=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:l,chat:r,...i})=>(0,o.jsx)(c.rU,{onClick:o=>{var i,a,s;null==e||e(o),r&&(null==o||o.preventDefault(),null==(s=null==(a=null==(i=null==window?void 0:window.supportWidget)?void 0:i.craftTalk)?void 0:a.open)||s.call(a)),(0,d.h)({eventCategory:f,eventActionType:t||d.D.link,eventActionText:n||"",eventLabel:l})},...i}),k=({minioUrl:e,blogs:t})=>(0,o.jsxs)("div",{className:v.contactsWrapper,children:[(0,o.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,o.jsx)("div",{className:v.phones,children:w.map(({title:e,url:t})=>(0,o.jsx)($,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,o.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:v.contactsButtons,children:b.map(({type:n,className:l,iconName:r})=>(0,o.jsx)(y,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:l,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,a.xn)(e,`/widgets/footer/${r}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,o.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:v.contactsButtons,children:(0,o.jsxs)($,{href:null==t?void 0:t.investTg,target:"_blank",className:v.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,o.jsx)(y,{className:v.tgIcon,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,a.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),N=(0,s.g)("footer-disclaimer","sc"),C=Object.freeze({disclaimer:`${N}`}),T=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:f,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,o.jsx)("div",{className:(0,i.Z)(e.className,C.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,i.Z)(e.className,C.disclaimer),onClick:t,children:e.children})},L=()=>{let e=new URL(window.location.href),t=new URLSearchParams;return e.searchParams.forEach((e,n)=>{/^utm_/i.test(n)&&t.set(n,e)}),t},A=(e="")=>{let[t,n]=(0,m.useState)(e);return(0,m.useEffect)(()=>{let t=L();if(!t||0===t.size)return;let[l,o=""]=e.split("?"),r=new URLSearchParams(o);t.forEach((e,t)=>{r.has(t)||r.set(t,e)});let i=r.toString();n(i?`${l}?${i}`:l)},[e]),t},S=(0,s.g)("footer-modal-body","sc"),O=Object.freeze({wrapper:`${S}__wrapper`,title:`${S}__title`,item:`${S}__item`,label:`${S}__label`,button:`${S}__button`,description:`${S}__description`}),P=({directions:e})=>(0,o.jsxs)("div",{className:O.wrapper,children:[(0,o.jsx)("div",{className:O.title,children:"Направления"}),e.map(e=>(0,o.jsxs)($,{className:O.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,o.jsxs)("div",{className:O.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)(y,{className:O.button,iconRight:(0,o.jsx)(u.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:O.description,children:e.description})]},e.url))]}),z=(0,s.g)("footer-popup","sc"),I=Object.freeze({wrapper:`${z}__wrapper`,button:`${z}__button`,icon:`${z}__icon`,buttonWrapper:`${z}__button-wrapper`}),E=({directions:e})=>{let t=(0,c._m)("l"),[n,l]=(0,m.useState)(!1),r=()=>{l(!1)};return(0,o.jsxs)("div",{className:I.wrapper,children:[(0,o.jsx)("div",{className:I.buttonWrapper,children:(0,o.jsx)(y,{className:I.button,appearance:"ghost",variant:"white",onClick:()=>{l(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,o.jsx)("div",{className:I.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,o.jsx)("div",{},e))})})}),(0,o.jsxs)(p.P,{children:[!t&&(0,o.jsx)(p.U,{isOpen:n,onClose:r,full:!0,children:(0,o.jsx)(P,{directions:e})}),t&&(0,o.jsx)(p.D,{isOpen:n,onClose:r,width:"804px",children:(0,o.jsx)(P,{directions:e})})]})]})},U=(0,s.g)("footer-left-column","sc"),R=Object.freeze({leftColumn:`${U}__left-column`,logoWrapper:`${U}__logo-wrapper`,banner:`${U}__banner`,mobAppLink:`${U}__mob-app-link`}),W=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:l})=>{let i=A(l);return(0,o.jsxs)("div",{className:R.leftColumn,children:[(0,o.jsx)($,{className:R.logoWrapper,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,o.jsx)("img",{src:(0,a.xn)(t,"/pl-common-blocks-renderer/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,o.jsx)(E,{directions:n??[]}),(0,o.jsx)($,{href:i,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:i,className:R.mobAppLink,children:(0,o.jsxs)(r.Zb,{className:R.banner,children:[(0,o.jsxs)(r.xv,{weight:"medium",children:["Управляйте финансами",(0,o.jsx)("br",{}),"через приложение Финуслуг"]}),(0,o.jsx)(y,{iconRight:(0,o.jsx)(u.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcSet:(0,a.xn)(t,"/pl-common-blocks-renderer/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,a.xn)(t,"/pl-common-blocks-renderer/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},B=(0,s.g)("footer-logo","sc"),Z=Object.freeze({wrapper:`${B}__wrapper`,link:`${B}__link`,fromMoex:`${B}__from-moex`,logo:`${B}__logo`,white:`${B}__wrapper--white`}),D=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,o.jsx)("div",{className:(0,i.Z)(Z.wrapper,{[Z.white]:n}),children:(0,o.jsxs)($,{className:Z.link,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,o.jsx)("img",{className:Z.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,o.jsx)("img",{className:Z.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var M=((l=M||{}).BLACK="black",l.GRAY="gray",l);let q=(0,s.g)("footer-warning","sc"),H=Object.freeze({reservedSpace:`${q}__reserved-space`,wrapper:`${q}__wrapper`,wrapperGray:`${q}__wrapper--gray`,fixed:`${q}__wrapper--fixed`,container:`${q}__container`,invisibleText:`${q}__invisible-text`}),F=({text:e,variant:t,fixed:n,isPlaceholder:l})=>{let a=l?(0,o.jsx)("span",{className:H.invisibleText,children:e}):e;return(0,o.jsx)("div",{className:(0,i.Z)(H.wrapper,{[H.wrapperGray]:"gray"===t,[H.fixed]:n&&!l}),children:(0,o.jsx)(r.W2,{className:H.container,children:a})})},G=({warning:e})=>{let t="string"==typeof e?{text:e}:e,n={text:t.text,fixed:t.fixed??!0,variant:t.variant??M.BLACK};return(0,o.jsxs)("div",{className:H.reservedSpace,children:[(0,o.jsx)(F,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,o.jsx)(F,{...n,fixed:!0})]})},Y=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:l,variant:a="default",className:s})=>{var c,d;let u=!l&&null!=e&&e.disclaimer?e.disclaimer:void 0,m=a.includes("compact"),p=a.includes("white"),h=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(m?g:[]),v=e&&"warning"in e?e.warning:void 0;return e?(0,o.jsx)("footer",{className:(0,i.Z)(x.wrapper,s,{[x.compact]:m,[x.white]:p}),children:(0,o.jsxs)("section",{className:x.section,children:[(0,o.jsxs)(r.W2,{className:x.container,children:[!m&&(0,o.jsx)(W,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,o.jsx)("div",{className:x.wrapper,children:(0,o.jsxs)("div",{className:x.top,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:x.main,children:[!m&&(0,o.jsx)("div",{className:x.links,children:null==(d=null==e?void 0:e.top)?void 0:d.map(e=>(0,o.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),m&&(0,o.jsx)(D,{showcaseUrl:t,minioUrl:n,isWhite:p}),(0,o.jsx)(T,{className:x.disclaimer,disclaimer:u,children:l||j})]}),(0,o.jsxs)("div",{className:x.bottom,children:[(0,o.jsx)("div",{className:x.bottomLinks,children:null==h?void 0:h.map(e=>(0,o.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,o.jsx)(T,{className:x.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!m&&(0,o.jsx)(k,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),m&&!!v&&(0,o.jsx)(G,{warning:v})]})}):null}}}]);