"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[591],{5668:function(e,t,n){n.d(t,{D:function(){return L},P:function(){return I},U:function(){return D},u:function(){return b}});var o=n(7437),l=n(7042),i=n(2265),r=n(629),s=n(950),c=n(4887);let a=300,d=({opened:e})=>{let[t,n]=(0,i.useState)(!1),o=(0,i.useRef)(null),l=(0,i.useRef)(!1);return(0,i.useEffect)(()=>(e&&!l.current?(l.current=!0,n(!0)):!e&&l.current&&(o.current=setTimeout(()=>{l.current=!1,n(!1)},a)),()=>{o.current&&clearTimeout(o.current)}),[e]),{mounted:t}},u=(0,s.g)("click-outside","sc"),p=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:r=a})=>{let s=(0,i.useRef)(null),c=(0,i.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},r))},[r,e]),d=(0,i.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,i.useEffect)(()=>(n&&window.addEventListener("keydown",d),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",d)}),[n,d]),(0,o.jsx)("div",{className:(0,l.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:c})},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`)},f=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vw")},x=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,i.useRef)(null),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(n.current===e)return;n.current=e;let o=t.current,l=document.body,i=document.documentElement,r=window.innerWidth-i.clientWidth,s=r>0;if(e&&s)v(l),_(l,i,r),h(o,!0);else if(e)f(l),h(o,!0);else{let e=!w();e&&x(l),e&&g(),h(o,!1)}return()=>{let e=!w();e&&x(l),e&&g()}},[e]),t},j=(0,s.g)("drawer-footer","sc"),$=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),N=({footer:e,hasScroll:t,className:n})=>(0,o.jsx)("div",{className:(0,l.Z)($.footer,{[$.hasScroll]:t},n),children:"function"==typeof e?e():e}),y=(0,s.g)("drawer-content","sc"),k=Object.freeze({container:`${y}__container`,open:`${y}--open`,close:`${y}--close`,header:`${y}__header`,rowHeader:`${y}__header--row`,title:`${y}__title`,center:`${y}__title--center`,left:`${y}__title--left`,right:`${y}__title--right`,controlContainer:`${y}__control-container`,content:`${y}__content`,footer:`${y}__footer`}),C=({onClose:e,onContentClick:t,children:n,title:s,rowTitle:c,titleAlign:a,isCloseable:d,footer:u,closeButton:p,isOpen:m,contentClassName:h,footerClassName:v,contentStyle:_,width:f})=>{let x=(0,i.useRef)(null),g=(0,i.useRef)(null),[w,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;if(!g.current||!x.current)return;let t=(null==(e=null==g?void 0:g.current)?void 0:e.getBoundingClientRect().top)||0,n=null==x?void 0:x.current,o=()=>{let e=null==g?void 0:g.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let j=_||f?{width:f,..._||{}}:void 0;return(0,o.jsxs)("div",{ref:x,style:j,className:(0,l.Z)(k.container,{[k.open]:m,[k.close]:!m},h),children:[s||d?(0,o.jsxs)("div",{className:(0,l.Z)(k.header,{[k.rowHeader]:c}),children:[d?p?"function"==typeof p?p():p:(0,o.jsx)("button",{type:"button",className:k.controlContainer,onClick:e,children:(0,o.jsx)(r.IconFdsCloseO,{size:24})}):null,s?(0,o.jsx)("h3",{className:(0,l.Z)(k.title,{[k[a]]:!0}),children:s}):null]}):null,(0,o.jsx)("div",{ref:g,className:k.content,onClick:t,children:n}),u&&(0,o.jsx)(N,{className:(0,l.Z)(k.footer,v),footer:u,hasScroll:w})]})},A=(0,s.g)("drawer-layout","sc"),S=Object.freeze({window:`${A}__window`}),T=({onClose:e,isOpen:t,children:n,withDisabledScroll:r,className:s,...c})=>{let a=(0,i.useCallback)(e=>e.stopPropagation(),[]);return b(t&&r),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(S.window,s),children:[(0,o.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,o.jsx)(C,{onContentClick:a,onClose:e,isOpen:t,...c,children:n})]})},L=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:i=!0,...r})=>{let{mounted:s}=d({opened:e});return s?(0,o.jsx)(T,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:i,...r,children:t}):null};L.displayName="Drawer";let O=(0,s.g)("mobile-modal-footer","sc"),z=Object.freeze({footer:`${O}__footer`,footerWithoutShadow:`${O}__footer--without-shadow`}),P=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,o.jsx)("div",{className:(0,l.Z)(z.footer,t&&z.footerWithoutShadow,n),children:"function"==typeof e?e():e}),E=(0,s.g)("mobile-popup","sc"),U=Object.freeze({mobilePopup:`${E}`,mobilePopupOpen:`${E}--open`,content:`${E}__content`,contentFull:`${E}__content--full`,contentTransition:`${E}__content--transition`,contentTransitionOpen:`${E}__content--transition-open`,contentLine:`${E}__content-line`,contentContainer:`${E}__content-container`,smallContentContainer:`${E}__content-container--small`,min:`${E}__content-container--min`,title:`${E}__title`,closeContainer:`${E}__close-container`,closeButton:`${E}__close-button`}),R=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:c,hasCloseButton:a=!0,full:d,touchDistance:u=100,withDisabledScroll:p=!0,contentClassName:h,className:v,title:_,closeButton:f,footerClassName:x})=>{let[g,w]=(0,i.useState)(!1),[j,$]=(0,i.useState)(!1),[N,y]=(0,i.useState)(!0),[k,C]=(0,i.useState)("120%"),A=(0,i.useRef)(null),S=(0,i.useRef)(0),T=(0,i.useRef)(!1),L=e=>{var t,n,o;let l=null==(t=A.current)?void 0:t.offsetTop,i=null==(n=A.current)?void 0:n.offsetHeight;if(T.current=!0,y(!1),l&&i){let t=(null==(o=null==e?void 0:e.touches[0])?void 0:o.clientY)-l,n=0;t>=0&&t<=i+30&&(n=t),t>i+30&&(n=i+30),C(`${n}px`),S.current=n}},O=()=>{T.current&&(S.current>u&&c?null==c||c():C("0"),y(!0),T.current=!1),window.removeEventListener("touchmove",L),window.removeEventListener("touchend",O)};return(0,i.useEffect)(()=>{n&&setTimeout(()=>{w(!0),$(!0),C("0")},100),!n&&j&&(C("120%"),w(!1),$(!1))},[j,n]),b(n&&p),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(U.mobilePopup,j&&U.mobilePopupOpen,v),children:[(0,o.jsx)(m,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",L),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,o.jsxs)("div",{className:(0,l.Z)(U.content,d&&U.contentFull,N&&U.contentTransition,N&&g&&U.contentTransitionOpen),ref:A,style:{transform:`translateY(${k})`},children:[(0,o.jsx)("div",{className:U.contentLine}),(0,o.jsxs)("div",{className:(0,l.Z)(U.contentContainer,s&&U.smallContentContainer,{[U.min]:!_&&!a},h),children:[!!_&&(0,o.jsx)("div",{className:U.title,children:_}),a?(0,o.jsx)("div",{className:U.closeContainer,children:a?f?"function"==typeof f?f():f:(0,o.jsx)("button",{onClick:c,className:U.closeButton,children:(0,o.jsx)(r.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,o.jsx)(P,{footerClassName:x,isSmallPopup:s,footer:t})]})]})},D=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:i}=d({opened:n});return i?(0,o.jsx)(R,{isSmallPopup:t,isOpen:n,...l,children:e}):null};D.displayName="UiMobilePopup";let I=({children:e,id:t="portal-root"})=>{let[n,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e=document.getElementById(t);if(e){o(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),o(n),()=>{document.body.removeChild(n)}},[t]),n?(0,c.createPortal)(e,n):null}},2406:function(e,t,n){n.d(t,{D:function(){return s},h:function(){return a}});var o,l=n(7162),i=n(2067);let r=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),o=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let l=o.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!l){if(t){let t={...e};t.url=window.location.pathname,o.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(o))}(0,i.AB)(e)}};var s=((o=s||{}).icon="icon",o.chip="chip",o.accordion="accordion",o.button="button",o.checkbox="checkbox",o.radio="radio",o.select="select",o.toggle="toggle",o.tooltip="tooltip",o.link="link",o.banner="banner",o.tag="tag",o.date="date",o.field="field",o.offer="offer",o.tab="tab",o.submitButton="submitButton",o.popup="popup",o.block="block",o);let c={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},a=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:o})=>{let i={event:"data-event",eventCategory:e,eventAction:c[t]+(0,l.t)(n)};void 0!==o&&(i.eventLabel=(0,l.t)("string"==typeof o?o:o.toString())),r(i)}},7162:function(e,t,n){n.d(t,{t:function(){return l}});let o={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},l=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in o?o[t]:e}).replaceAll(/[ \u00A0]/g,"_")},6591:function(e,t,n){n.d(t,{$:function(){return Y}});var o=n(7437),l=n(3915),i=n(7042),r=n(5950),s=n(950),c=n(1518),a=n(2406),d=n(629),u=n(2265),p=n(5668);let m=(0,s.g)("footer-contacts-block","sc"),h=Object.freeze({contactsWrapper:`${m}__contacts-wrapper`,gray:`${m}__gray`,phones:`${m}__phones`,contactsButtons:`${m}__contacts-buttons`,vkIcon:`${m}__vk-icon`,tgIcon:`${m}__tg-icon`,dzenIcon:`${m}__dzen-icon`,maxIcon:`${m}__max-icon`,link:`${m}__link`}),v=(0,s.g)("footer","sc"),_=Object.freeze({wrapper:`${v}__wrapper`,section:`${v}__section`,container:`${v}__container`,top:`${v}__top`,main:`${v}__main`,links:`${v}__links`,disclaimer:`${v}__disclaimer`,bottom:`${v}__bottom`,bottomLinks:`${v}__bottom-links`,bottomDisclaimer:`${v}__bottom-disclaimer`,compact:`${v}__wrapper--compact`,white:`${v}__wrapper--white`}),f="finkit-widgets-sc-footer",x=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"}],g=[...x,{title:"Онлайн чат",url:void 0}],w=[{type:"vk",className:h.vkIcon,iconName:"vk"},{type:"telegramChannel",className:h.tgIcon,iconName:"telegram"},{type:"dzen",className:h.dzenIcon,iconName:"dzen"},{type:"max",className:h.maxIcon,iconName:"max"}],b=(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 - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),j=({onClick:e,eventActionText:t,eventLabel:n,...l})=>(0,o.jsx)(c.zx,{onClick:o=>{null==e||e(o),(0,a.h)({eventCategory:f,eventActionType:a.D.button,eventActionText:t||"",eventLabel:n})},...l}),$=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:l,chat:i,...r})=>(0,o.jsx)(c.rU,{onClick:o=>{var r,s,c;null==e||e(o),i&&(null==o||o.preventDefault(),null==(c=null==(s=null==(r=null==window?void 0:window.supportWidget)?void 0:r.craftTalk)?void 0:s.open)||c.call(s)),(0,a.h)({eventCategory:f,eventActionType:t||a.D.link,eventActionText:n||"",eventLabel:l})},...r}),N=({minioUrl:e,blogs:t})=>(0,o.jsxs)("div",{className:h.contactsWrapper,children:[(0,o.jsx)(l.xv,{className:h.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,o.jsx)("div",{className:h.phones,children:g.map(({title:e,url:t})=>(0,o.jsx)($,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,o.jsx)(l.xv,{className:h.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:h.contactsButtons,children:w.map(({type:n,className:l,iconName:i})=>(0,o.jsx)(j,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:l,iconRight:(0,o.jsx)("img",{src:(0,r.xn)(e,`/widgets/footer/${i}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,o.jsx)(l.xv,{className:h.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:h.contactsButtons,children:(0,o.jsxs)($,{href:null==t?void 0:t.investTg,target:"_blank",className:h.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,o.jsx)(j,{className:h.tgIcon,iconRight:(0,o.jsx)("img",{src:(0,r.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),y=(0,s.g)("footer-disclaimer","sc"),k=Object.freeze({disclaimer:`${y}`}),C=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,a.h)({eventCategory:f,eventActionType:a.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,o.jsx)("div",{className:(0,i.Z)(e.className,k.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,i.Z)(e.className,k.disclaimer),onClick:t,children:e.children})},A=()=>{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},S=(e="")=>{let[t,n]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let t=A();if(!t||0===t.size)return;let[o,l=""]=e.split("?"),i=new URLSearchParams(l);t.forEach((e,t)=>{i.has(t)||i.set(t,e)});let r=i.toString();n(r?`${o}?${r}`:o)},[e]),t},T=(0,s.g)("footer-modal-body","sc"),L=Object.freeze({wrapper:`${T}__wrapper`,title:`${T}__title`,item:`${T}__item`,label:`${T}__label`,button:`${T}__button`,description:`${T}__description`}),O=({directions:e})=>(0,o.jsxs)("div",{className:L.wrapper,children:[(0,o.jsx)("div",{className:L.title,children:"Направления"}),e.map(e=>(0,o.jsxs)($,{className:L.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,o.jsxs)("div",{className:L.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)(j,{className:L.button,iconRight:(0,o.jsx)(d.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:L.description,children:e.description})]},e.url))]}),z=(0,s.g)("footer-popup","sc"),P=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,u.useState)(!1),i=()=>{l(!1)};return(0,o.jsxs)("div",{className:P.wrapper,children:[(0,o.jsx)("div",{className:P.buttonWrapper,children:(0,o.jsx)(j,{className:P.button,appearance:"ghost",variant:"white",onClick:()=>{l(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,o.jsx)("div",{className:P.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:i,full:!0,children:(0,o.jsx)(O,{directions:e})}),t&&(0,o.jsx)(p.D,{isOpen:n,onClose:i,width:"804px",children:(0,o.jsx)(O,{directions:e})})]})]})},U=(0,s.g)("footer-left-column","sc"),R=Object.freeze({leftColumn:`${U}__left-column`,logoWrapper:`${U}__logo-wrapper`,banner:`${U}__banner`}),D=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:i})=>{let s=S(i);return(0,o.jsxs)("div",{className:R.leftColumn,children:[(0,o.jsx)($,{className:R.logoWrapper,href:e,eventActionType:a.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,o.jsx)("img",{src:(0,r.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:s,target:"_blank",eventActionType:a.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:s,children:(0,o.jsxs)(l.Zb,{className:R.banner,children:[(0,o.jsxs)(l.xv,{weight:"medium",children:["Управляйте финансами",(0,o.jsx)("br",{}),"через приложение Финуслуг"]}),(0,o.jsx)(j,{iconRight:(0,o.jsx)(d.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcSet:(0,r.xn)(t,"/pl-common-blocks-renderer/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,r.xn)(t,"/pl-common-blocks-renderer/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},I=(0,s.g)("footer-logo","sc"),Z=Object.freeze({wrapper:`${I}__wrapper`,link:`${I}__link`,fromMoex:`${I}__from-moex`,logo:`${I}__logo`,white:`${I}__wrapper--white`}),B=({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:a.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`})]})}),W=(0,s.g)("footer-warning","sc"),F=Object.freeze({reservedSpace:`${W}__reserved-space`,wrapper:`${W}__wrapper`,fixed:`${W}__wrapper--fixed`,container:`${W}__container`}),M=({text:e,fixed:t})=>(0,o.jsx)("div",{className:(0,i.Z)(F.wrapper,{[F.fixed]:t}),children:(0,o.jsx)(l.W2,{className:F.container,children:e})}),H=({text:e})=>(0,o.jsxs)("div",{className:F.reservedSpace,children:[(0,o.jsx)(M,{text:e}),(0,o.jsx)(M,{text:e,fixed:!0})]}),Y=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:r,variant:s="default"})=>{var c,a;let d=!r&&null!=e&&e.disclaimer?e.disclaimer:void 0,u=s.includes("compact"),p=s.includes("white"),m=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(u?x:[]),h="warning"in e?e.warning:void 0;return(0,o.jsx)("footer",{className:(0,i.Z)(_.wrapper,{[_.compact]:u,[_.white]:p}),children:(0,o.jsxs)("section",{className:_.section,children:[(0,o.jsxs)(l.W2,{className:_.container,children:[!u&&(0,o.jsx)(D,{showcaseUrl:t,minioUrl:n,directions:e.directions,mobAppUrl:e.mobAppUrl}),(0,o.jsx)("div",{className:_.wrapper,children:(0,o.jsxs)("div",{className:_.top,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:_.main,children:[!u&&(0,o.jsx)("div",{className:_.links,children:null==(a=null==e?void 0:e.top)?void 0:a.map(e=>(0,o.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),u&&(0,o.jsx)(B,{showcaseUrl:t,minioUrl:n,isWhite:p}),(0,o.jsx)(C,{className:_.disclaimer,disclaimer:d,children:r||b})]}),(0,o.jsxs)("div",{className:_.bottom,children:[(0,o.jsx)("div",{className:_.bottomLinks,children:null==m?void 0:m.map(e=>(0,o.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,o.jsx)(C,{className:_.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!u&&(0,o.jsx)(N,{minioUrl:n,blogs:e.blogs})]})})]}),u&&!!h&&(0,o.jsx)(H,{text:h})]})})}}}]);