"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[623],{682:function(e,t,n){n.d(t,{D:function(){return $},P:function(){return I},U:function(){return D},u:function(){return b}});var o=n(7437),l=n(3167),c=n(2265),i=n(6094),r=n(3919),s=n(4887);let a=300,d=({opened:e})=>{let[t,n]=(0,c.useState)(!1),o=(0,c.useRef)(null),l=(0,c.useRef)(!1);return(0,c.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,r.g)("click-outside","sc"),p=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:i=a})=>{let r=(0,c.useRef)(null),s=(0,c.useCallback)(()=>{e&&(r.current=setTimeout(()=>{e()},i))},[i,e]),d=(0,c.useCallback)(e=>{"Escape"===e.key&&s()},[s]);return(0,c.useEffect)(()=>(n&&window.addEventListener("keydown",d),()=>{r.current&&clearTimeout(r.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: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`)},f=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vw")},g=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},x=()=>{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,c.useRef)(null),n=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{if(n.current===e)return;n.current=e;let o=t.current,l=document.body,c=document.documentElement,i=window.innerWidth-c.clientWidth,r=i>0;if(e&&r)v(l),_(l,c,i),h(o,!0);else if(e)f(l),h(o,!0);else{let e=!w();e&&g(l),e&&x(),h(o,!1)}return()=>{let e=!w();e&&g(l),e&&x()}},[e]),t},j=(0,r.g)("drawer-footer","sc"),N=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),y=({footer:e,hasScroll:t,className:n})=>(0,o.jsx)("div",{className:(0,l.Z)(N.footer,{[N.hasScroll]:t},n),children:"function"==typeof e?e():e}),k=(0,r.g)("drawer-content","sc"),C=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`}),A=({onClose:e,onContentClick:t,children:n,title:r,rowTitle:s,titleAlign:a,isCloseable:d,footer:u,closeButton:p,isOpen:m,contentClassName:h,footerClassName:v,contentStyle:_,width:f})=>{let g=(0,c.useRef)(null),x=(0,c.useRef)(null),[w,b]=(0,c.useState)(!1);(0,c.useEffect)(()=>{var e;if(!x.current||!g.current)return;let t=(null==(e=null==x?void 0:x.current)?void 0:e.getBoundingClientRect().top)||0,n=null==g?void 0:g.current,o=()=>{let e=null==x?void 0:x.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:g,style:j,className:(0,l.Z)(C.container,{[C.open]:m,[C.close]:!m},h),children:[r||d?(0,o.jsxs)("div",{className:(0,l.Z)(C.header,{[C.rowHeader]:s}),children:[d?p?"function"==typeof p?p():p:(0,o.jsx)("button",{type:"button",className:C.controlContainer,onClick:e,children:(0,o.jsx)(i.IconFdsCloseO,{size:24})}):null,r?(0,o.jsx)("h3",{className:(0,l.Z)(C.title,{[C[a]]:!0}),children:r}):null]}):null,(0,o.jsx)("div",{ref:x,className:C.content,onClick:t,children:n}),u&&(0,o.jsx)(y,{className:(0,l.Z)(C.footer,v),footer:u,hasScroll:w})]})},S=(0,r.g)("drawer-layout","sc"),T=Object.freeze({window:`${S}__window`}),L=({onClose:e,isOpen:t,children:n,withDisabledScroll:i,className:r,...s})=>{let a=(0,c.useCallback)(e=>e.stopPropagation(),[]);return b(t&&i),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(T.window,r),children:[(0,o.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,o.jsx)(A,{onContentClick:a,onClose:e,isOpen:t,...s,children:n})]})},$=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:c=!0,...i})=>{let{mounted:r}=d({opened:e});return r?(0,o.jsx)(L,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:c,...i,children:t}):null};$.displayName="Drawer";let O=(0,r.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,r.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:r,onClose:s,hasCloseButton:a=!0,full:d,touchDistance:u=100,withDisabledScroll:p=!0,contentClassName:h,className:v,title:_,closeButton:f,footerClassName:g})=>{let[x,w]=(0,c.useState)(!1),[j,N]=(0,c.useState)(!1),[y,k]=(0,c.useState)(!0),[C,A]=(0,c.useState)("120%"),S=(0,c.useRef)(null),T=(0,c.useRef)(0),L=(0,c.useRef)(!1),$=e=>{var t,n,o;let l=null==(t=S.current)?void 0:t.offsetTop,c=null==(n=S.current)?void 0:n.offsetHeight;if(L.current=!0,k(!1),l&&c){let t=(null==(o=null==e?void 0:e.touches[0])?void 0:o.clientY)-l,n=0;t>=0&&t<=c+30&&(n=t),t>c+30&&(n=c+30),A(`${n}px`),T.current=n}},O=()=>{L.current&&(T.current>u&&s?null==s||s():A("0"),k(!0),L.current=!1),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",O)};return(0,c.useEffect)(()=>{n&&setTimeout(()=>{w(!0),N(!0),A("0")},100),!n&&j&&(A("120%"),w(!1),N(!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==s||s())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",$),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,o.jsxs)("div",{className:(0,l.Z)(U.content,d&&U.contentFull,y&&U.contentTransition,y&&x&&U.contentTransitionOpen),ref:S,style:{transform:`translateY(${C})`},children:[(0,o.jsx)("div",{className:U.contentLine}),(0,o.jsxs)("div",{className:(0,l.Z)(U.contentContainer,r&&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:s,className:U.closeButton,children:(0,o.jsx)(i.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,o.jsx)(P,{footerClassName:g,isSmallPopup:r,footer:t})]})]})},D=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:c}=d({opened:n});return c?(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,c.useState)(null);return(0,c.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,s.createPortal)(e,n):null}},3919:function(e,t,n){n.d(t,{g:function(){return o}});function o(e,t){return`finkit-widgets-${t}-${e}`}},5745:function(e,t,n){n.d(t,{D:function(){return r},h:function(){return a}});var o,l=n(7816),c=n(915);let i=(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,c.AB)(e)}};var r=((o=r||{}).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 s={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 c={event:"data-event",eventCategory:e,eventAction:s[t]+(0,l.t)(n)};void 0!==o&&(c.eventLabel=(0,l.t)("string"==typeof o?o:o.toString())),i(c)}},7816: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,"_")},9623:function(e,t,n){n.d(t,{$:function(){return Y}});var o=n(7437),l=n(2833),c=n(3167),i=n(4866),r=n(3919),s=n(1810),a=n(5745),d=n(6094),u=n(2265),p=n(682);let m=(0,r.g)("footer-contacts-block","sc"),h=Object.freeze({contactsWrapper:"".concat(m,"__contacts-wrapper"),gray:"".concat(m,"__gray"),phones:"".concat(m,"__phones"),contactsButtons:"".concat(m,"__contacts-buttons"),vkIcon:"".concat(m,"__vk-icon"),tgIcon:"".concat(m,"__tg-icon"),dzenIcon:"".concat(m,"__dzen-icon"),maxIcon:"".concat(m,"__max-icon"),link:"".concat(m,"__link")}),v=(0,r.g)("footer","sc"),_=Object.freeze({wrapper:"".concat(v,"__wrapper"),section:"".concat(v,"__section"),container:"".concat(v,"__container"),top:"".concat(v,"__top"),main:"".concat(v,"__main"),links:"".concat(v,"__links"),disclaimer:"".concat(v,"__disclaimer"),bottom:"".concat(v,"__bottom"),bottomLinks:"".concat(v,"__bottom-links"),bottomDisclaimer:"".concat(v,"__bottom-disclaimer"),compact:"".concat(v,"__wrapper--compact"),white:"".concat(v,"__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"}],x=[...g,{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=e=>{let{onClick:t,eventActionText:n,eventLabel:l,...c}=e;return(0,o.jsx)(s.zx,{onClick:e=>{null==t||t(e),(0,a.h)({eventCategory:f,eventActionType:a.D.button,eventActionText:n||"",eventLabel:l})},...c})},N=e=>{let{onClick:t,eventActionType:n,eventActionText:l,eventLabel:c,chat:i,...r}=e;return(0,o.jsx)(s.rU,{onClick:e=>{var o,r,s;null==t||t(e),i&&(null==e||e.preventDefault(),null==(s=null==(r=null==(o=null==window?void 0:window.supportWidget)?void 0:o.craftTalk)?void 0:r.open)||s.call(r)),(0,a.h)({eventCategory:f,eventActionType:n||a.D.link,eventActionText:l||"",eventLabel:c})},...r})},y=e=>{let{minioUrl:t,blogs:n}=e;return(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:x.map(e=>{let{title:t,url:n}=e;return(0,o.jsx)(N,{href:n,eventActionText:t,chat:!n,children:t},t)})}),(0,o.jsx)(l.xv,{className:h.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:h.contactsButtons,children:w.map(e=>{let{type:l,className:c,iconName:r}=e;return(0,o.jsx)(j,{as:"a",href:null==n?void 0:n[l],target:"_blank",className:c,iconRight:(0,o.jsx)("img",{src:(0,i.xn)(t,"/widgets/footer/".concat(r,".svg")),alt:l,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:l,eventLabel:null==n?void 0:n[l]},l)})}),(0,o.jsx)(l.xv,{className:h.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:h.contactsButtons,children:(0,o.jsxs)(N,{href:null==n?void 0:n.investTg,target:"_blank",className:h.link,eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg,children:[(0,o.jsx)(j,{className:h.tgIcon,iconRight:(0,o.jsx)("img",{src:(0,i.xn)(t,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg}),"Финуслуги Инвест"]})})]})},k=(0,r.g)("footer-disclaimer","sc"),C=Object.freeze({disclaimer:"".concat(k)}),A=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,c.Z)(e.className,C.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,c.Z)(e.className,C.disclaimer),onClick:t,children:e.children})},S=()=>{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},T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let t=S();if(!t||0===t.size)return;let[o,l=""]=e.split("?"),c=new URLSearchParams(l);t.forEach((e,t)=>{c.has(t)||c.set(t,e)});let i=c.toString();n(i?"".concat(o,"?").concat(i):o)},[e]),t},L=(0,r.g)("footer-modal-body","sc"),$=Object.freeze({wrapper:"".concat(L,"__wrapper"),title:"".concat(L,"__title"),item:"".concat(L,"__item"),label:"".concat(L,"__label"),button:"".concat(L,"__button"),description:"".concat(L,"__description")}),O=e=>{let{directions:t}=e;return(0,o.jsxs)("div",{className:$.wrapper,children:[(0,o.jsx)("div",{className:$.title,children:"Направления"}),t.map(e=>(0,o.jsxs)(N,{className:$.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:"".concat(e.name,"_").concat(e.url),children:[(0,o.jsxs)("div",{className:$.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)(j,{className:$.button,iconRight:(0,o.jsx)(d.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:$.description,children:e.description})]},e.url))]})},z=(0,r.g)("footer-popup","sc"),P=Object.freeze({wrapper:"".concat(z,"__wrapper"),button:"".concat(z,"__button"),icon:"".concat(z,"__icon"),buttonWrapper:"".concat(z,"__button-wrapper")}),E=e=>{let{directions:t}=e,n=(0,s._m)("l"),[l,c]=(0,u.useState)(!1),i=()=>{c(!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:()=>{c(!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:[!n&&(0,o.jsx)(p.U,{isOpen:l,onClose:i,full:!0,children:(0,o.jsx)(O,{directions:t})}),n&&(0,o.jsx)(p.D,{isOpen:l,onClose:i,width:"804px",children:(0,o.jsx)(O,{directions:t})})]})]})},U=(0,r.g)("footer-left-column","sc"),R=Object.freeze({leftColumn:"".concat(U,"__left-column"),logoWrapper:"".concat(U,"__logo-wrapper"),banner:"".concat(U,"__banner")}),D=e=>{let{showcaseUrl:t,minioUrl:n,directions:c,mobAppUrl:r}=e,s=T(r);return(0,o.jsxs)("div",{className:R.leftColumn,children:[(0,o.jsx)(N,{className:R.logoWrapper,href:t,eventActionType:a.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:(0,o.jsx)("img",{src:(0,i.xn)(n,"/pl-common-blocks-renderer/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,o.jsx)(E,{directions:null!=c?c:[]}),(0,o.jsx)(N,{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,i.xn)(n,"/pl-common-blocks-renderer/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,i.xn)(n,"/pl-common-blocks-renderer/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},I=(0,r.g)("footer-logo","sc"),Z=Object.freeze({wrapper:"".concat(I,"__wrapper"),link:"".concat(I,"__link"),fromMoex:"".concat(I,"__from-moex"),logo:"".concat(I,"__logo"),white:"".concat(I,"__wrapper--white")}),B=e=>{let{showcaseUrl:t,minioUrl:n,isWhite:l}=e;return(0,o.jsx)("div",{className:(0,c.Z)(Z.wrapper,{[Z.white]:l}),children:(0,o.jsxs)(N,{className:Z.link,href:t,eventActionType:a.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:[(0,o.jsx)("img",{className:Z.logo,src:"".concat(n,"/images/logo-brandmark-common-finuslugi.svg")}),(0,o.jsx)("img",{className:Z.fromMoex,src:"".concat(n,"/images/fromMoex.svg")})]})})},W=(0,r.g)("footer-warning","sc"),F=Object.freeze({reservedSpace:"".concat(W,"__reserved-space"),wrapper:"".concat(W,"__wrapper"),fixed:"".concat(W,"__wrapper--fixed"),container:"".concat(W,"__container")}),M=e=>{let{text:t,fixed:n}=e;return(0,o.jsx)("div",{className:(0,c.Z)(F.wrapper,{[F.fixed]:n}),children:(0,o.jsx)(l.W2,{className:F.container,children:t})})},H=e=>{let{text:t}=e;return(0,o.jsxs)("div",{className:F.reservedSpace,children:[(0,o.jsx)(M,{text:t}),(0,o.jsx)(M,{text:t,fixed:!0})]})},Y=e=>{var t,n;let{data:i,showcaseUrl:r="https://finuslugi.ru",minioUrl:s="https://assets.finuslugi.ru/mp-assets",customDisclaimer:a,variant:d="default"}=e,u=!a&&null!=i&&i.disclaimer?i.disclaimer:void 0,p=d.includes("compact"),m=d.includes("white"),h=null==(t=null==i?void 0:i.bottom)?void 0:t.concat(p?g:[]),v="warning"in i?i.warning:void 0;return(0,o.jsx)("footer",{className:(0,c.Z)(_.wrapper,{[_.compact]:p,[_.white]:m}),children:(0,o.jsxs)("section",{className:_.section,children:[(0,o.jsxs)(l.W2,{className:_.container,children:[!p&&(0,o.jsx)(D,{showcaseUrl:r,minioUrl:s,directions:i.directions,mobAppUrl:i.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:[!p&&(0,o.jsx)("div",{className:_.links,children:null==(n=null==i?void 0:i.top)?void 0:n.map(e=>(0,o.jsx)(N,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,o.jsx)(B,{showcaseUrl:r,minioUrl:s,isWhite:m}),(0,o.jsx)(A,{className:_.disclaimer,disclaimer:u,children:a||b})]}),(0,o.jsxs)("div",{className:_.bottom,children:[(0,o.jsx)("div",{className:_.bottomLinks,children:null==h?void 0:h.map(e=>(0,o.jsx)(N,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,o.jsx)(A,{className:_.bottomDisclaimer,disclaimer:null==i?void 0:i.bottomDisclaimer})]})]}),!p&&(0,o.jsx)(y,{minioUrl:s,blogs:i.blogs})]})})]}),p&&!!v&&(0,o.jsx)(H,{text:v})]})})}}}]);