(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1075],{6743:function(){},66187:function(e,t,n){"use strict";n.d(t,{z:function(){return o.B}});var o=n(17265)},19979:function(e,t,n){"use strict";n.d(t,{Z:function(){return o.C}});var o=n(57102)},67880:function(e,t,n){"use strict";n.d(t,{W:function(){return o.C}});var o=n(71656)},66838:function(e,t,n){"use strict";n.d(t,{r:function(){return o.L}});var o=n(469)},88614:function(e,t,n){"use strict";n.d(t,{x:function(){return o.T}});var o=n(29374)},62379:function(e,t,n){"use strict";n.d(t,{D:function(){return O},P:function(){return V},U:function(){return F},u:function(){return w}});var o=n(57437),l=n(2265),i=n(61994),r=n(52074),c=n(54887);let a=300,s=({opened:e})=>{let[t,n]=(0,l.useState)(!1),o=(0,l.useRef)(null),i=(0,l.useRef)(!1);return(0,l.useEffect)(()=>(e&&!i.current?(i.current=!0,n(!0)):!e&&i.current&&(o.current=setTimeout(()=>{i.current=!1,n(!1)},a)),()=>{o.current&&clearTimeout(o.current)}),[e]),{mounted:t}},u=(0,r.g)("click-outside","sc"),d=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),p=({onClose:e,onToucheMove:t,isOpen:n,delay:r=a})=>{let c=(0,l.useRef)(null),s=(0,l.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},r))},[r,e]),u=(0,l.useCallback)(e=>{"Escape"===e.key&&s()},[s]);return(0,l.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",u)}),[n,u]),(0,o.jsx)("div",{className:(0,i.Z)(d.overlay,{[d.open]:n,[d.close]:!n}),onTouchStart:t,onClick:s})},m=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},h=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},f=(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`)},v=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")},g=(e,t)=>{t.style.removeProperty("overflow-y"),e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},_=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},x=()=>document.querySelectorAll("[data-portal]").length>1,w=e=>{let t=(0,l.useRef)(null),n=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{if(n.current===e)return;n.current=e;let o=t.current,l=document.body,i=document.documentElement,r=window.innerWidth-i.clientWidth,c=r>0;if(e&&c)h(l),f(l,i,r),m(o,!0);else if(e)v(l),m(o,!0);else{let e=!x();e&&g(l,i),e&&_(),m(o,!1)}return()=>{let e=!x();e&&g(l,i),e&&_()}},[e]),t},b={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},y={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},j=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function N({className:e,style:t,boxSize:n,size:o,onClick:i}){return l.createElement("span",{className:e,style:{...b,...i&&{cursor:"pointer"},...o&&{fontSize:`${o}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},l.createElement(j,{viewBox:"0 0 24 24",style:y}))}N.displayName="IconFdsCloseO";let k=(0,r.g)("drawer-footer","sc"),C=Object.freeze({footer:`${k}__footer`,hasScroll:`${k}__footer--has-scroll`}),A=({footer:e,hasScroll:t,className:n})=>(0,o.jsx)("div",{className:(0,i.Z)(C.footer,{[C.hasScroll]:t},n),children:"function"==typeof e?e():e}),L=(0,r.g)("drawer-content","sc"),S=Object.freeze({container:`${L}__container`,open:`${L}--open`,close:`${L}--close`,header:`${L}__header`,rowHeader:`${L}__header--row`,title:`${L}__title`,center:`${L}__title--center`,left:`${L}__title--left`,right:`${L}__title--right`,controlContainer:`${L}__control-container`,content:`${L}__content`,footer:`${L}__footer`}),z=({onClose:e,onContentClick:t,children:n,title:r,rowTitle:c,titleAlign:a,isCloseable:s,footer:u,closeButton:d,isOpen:p,contentClassName:m,footerClassName:h,contentStyle:f,width:v})=>{let g=(0,l.useRef)(null),_=(0,l.useRef)(null),[x,w]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e;if(!_.current||!g.current)return;let t=(null==(e=null==_?void 0:_.current)?void 0:e.getBoundingClientRect().top)||0,n=null==g?void 0:g.current,o=()=>{let e=null==_?void 0:_.current;e&&w(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let b=f||v?{width:v,...f||{}}:void 0;return(0,o.jsxs)("div",{ref:g,style:b,className:(0,i.Z)(S.container,{[S.open]:p,[S.close]:!p},m),children:[r||s?(0,o.jsxs)("div",{className:(0,i.Z)(S.header,{[S.rowHeader]:c}),children:[s?d?"function"==typeof d?d():d:(0,o.jsx)("button",{type:"button",className:S.controlContainer,onClick:e,children:(0,o.jsx)(N,{size:24})}):null,r?(0,o.jsx)("h3",{className:(0,i.Z)(S.title,{[S[a]]:!0}),children:r}):null]}):null,(0,o.jsx)("div",{ref:_,className:S.content,onClick:t,children:n}),u&&(0,o.jsx)(A,{className:(0,i.Z)(S.footer,h),footer:u,hasScroll:x})]})},T=(0,r.g)("drawer-layout","sc"),$=Object.freeze({window:`${T}__window`}),E=({onClose:e,isOpen:t,children:n,withDisabledScroll:r,className:c,...a})=>{let s=(0,l.useCallback)(e=>e.stopPropagation(),[]);return w(t&&r),(0,o.jsxs)("div",{"data-portal":!0,className:(0,i.Z)($.window,c),children:[(0,o.jsx)(p,{onClose:e,isOpen:t,delay:0}),(0,o.jsx)(z,{onContentClick:s,onClose:e,isOpen:t,...a,children:n})]})},O=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:i=!0,...r})=>{let{mounted:c}=s({opened:e});return c?(0,o.jsx)(E,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:i,...r,children:t}):null};O.displayName="Drawer";let R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},P={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},I=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function U({className:e,style:t,boxSize:n,size:o,onClick:i}){return l.createElement("span",{className:e,style:{...R,...i&&{cursor:"pointer"},...o&&{fontSize:`${o}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},l.createElement(I,{viewBox:"0 0 24 24",style:P}))}U.displayName="IconFdsCloseO";let B=(0,r.g)("mobile-modal-footer","sc"),D=Object.freeze({footer:`${B}__footer`,footerWithoutShadow:`${B}__footer--without-shadow`}),Z=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,o.jsx)("div",{className:(0,i.Z)(D.footer,t&&D.footerWithoutShadow,n),children:"function"==typeof e?e():e}),M=(0,r.g)("mobile-popup","sc"),W=Object.freeze({mobilePopup:`${M}`,mobilePopupOpen:`${M}--open`,content:`${M}__content`,contentFull:`${M}__content--full`,contentTransition:`${M}__content--transition`,contentTransitionOpen:`${M}__content--transition-open`,contentLine:`${M}__content-line`,contentContainer:`${M}__content-container`,smallContentContainer:`${M}__content-container--small`,min:`${M}__content-container--min`,title:`${M}__title`,closeContainer:`${M}__close-container`,closeButton:`${M}__close-button`}),H=({children:e,footer:t,isOpen:n,isSmallPopup:r,onClose:c,hasCloseButton:a=!0,full:s,touchDistance:u=100,withDisabledScroll:d=!0,contentClassName:m,className:h,title:f,closeButton:v,footerClassName:g})=>{let[_,x]=(0,l.useState)(!1),[b,y]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!0),[k,C]=(0,l.useState)("120%"),A=(0,l.useRef)(null),L=(0,l.useRef)(0),S=(0,l.useRef)(!1),z=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(S.current=!0,N(!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`),L.current=n}},T=()=>{S.current&&(L.current>u&&c?null==c||c():C("0"),N(!0),S.current=!1),window.removeEventListener("touchmove",z),window.removeEventListener("touchend",T)};return(0,l.useEffect)(()=>{n&&setTimeout(()=>{x(!0),y(!0),C("0")},100),!n&&b&&(C("120%"),x(!1),y(!1))},[b,n]),w(n&&d),(0,o.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(W.mobilePopup,b&&W.mobilePopupOpen,h),children:[(0,o.jsx)(p,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",z),window.addEventListener("touchend",T))},isOpen:n,delay:0}),(0,o.jsxs)("div",{className:(0,i.Z)(W.content,s&&W.contentFull,j&&W.contentTransition,j&&_&&W.contentTransitionOpen),ref:A,style:{transform:`translateY(${k})`},children:[(0,o.jsx)("div",{className:W.contentLine}),(0,o.jsxs)("div",{className:(0,i.Z)(W.contentContainer,r&&W.smallContentContainer,{[W.min]:!f&&!a},m),children:[!!f&&(0,o.jsx)("div",{className:W.title,children:f}),a?(0,o.jsx)("div",{className:W.closeContainer,children:a?v?"function"==typeof v?v():v:(0,o.jsx)("button",{onClick:c,className:W.closeButton,children:(0,o.jsx)(U,{size:24})}):null}):null,e]}),t&&(0,o.jsx)(Z,{footerClassName:g,isSmallPopup:r,footer:t})]})]})},F=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:i}=s({opened:n});return i?(0,o.jsx)(H,{isSmallPopup:t,isOpen:n,...l,children:e}):null};F.displayName="UiMobilePopup";let V=({children:e,id:t="portal-root"})=>{let[n,o]=(0,l.useState)(null);return(0,l.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}},52074:function(e,t,n){"use strict";function o(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return o}})},63327:function(e,t,n){"use strict";let o;n.d(t,{D:function(){return r},h:function(){return a}});var l=n(31620),i=n(56891),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.show="show",o.close="close",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_",show:"show_",close:"close_"},a=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:o})=>{let r={event:"data-event",eventCategory:e,eventAction:c[t]+(0,l.t)(n)};void 0!==o&&(r.eventLabel=(0,l.t)("string"==typeof o?o:o.toString())),(0,i.d)(r)}},56891:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var o=n(30631);let l=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),l=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 i=l.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||!i){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,o.AB)(e)}}},31620:function(e,t,n){"use strict";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,"_")},1075:function(e,t,n){"use strict";let o;n.d(t,{Footer:function(){return ei}}),n(6743);var l=n(57437),i=n(67880),r=n(61994),c=n(88614),a=n(77337),s=n(52074),u=n(66187),d=n(63327),p=n(66838),m=n(2265),h=n(19979),f=n(89694),v=n(62379);let g=(0,s.g)("footer-contacts-block","sc"),_=Object.freeze({contactsWrapper:"".concat(g,"__contacts-wrapper"),gray:"".concat(g,"__gray"),phones:"".concat(g,"__phones"),contactsButtons:"".concat(g,"__contacts-buttons"),vkIcon:"".concat(g,"__vk-icon"),tgIcon:"".concat(g,"__tg-icon"),dzenIcon:"".concat(g,"__dzen-icon"),maxIcon:"".concat(g,"__max-icon"),link:"".concat(g,"__link")}),x=(0,s.g)("footer","sc"),w=Object.freeze({wrapper:"".concat(x,"__wrapper"),section:"".concat(x,"__section"),container:"".concat(x,"__container"),top:"".concat(x,"__top"),main:"".concat(x,"__main"),links:"".concat(x,"__links"),disclaimer:"".concat(x,"__disclaimer"),bottom:"".concat(x,"__bottom"),bottomLinks:"".concat(x,"__bottom-links"),bottomDisclaimer:"".concat(x,"__bottom-disclaimer"),compact:"".concat(x,"__wrapper--compact"),white:"".concat(x,"__wrapper--white")}),b="finkit-widgets-sc-footer",y=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"8 (800) 700-64-94",url:"tel:88007006494"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"},{title:"+7 (495) 787-64-94",url:"tel:+74957876494"}],j=[...y,{title:"Онлайн чат",url:void 0}],N=[{type:"vk",className:_.vkIcon,iconName:"vk"},{type:"telegramChannel",className:_.tgIcon,iconName:"telegram"},{type:"dzen",className:_.dzenIcon,iconName:"dzen"},{type:"max",className:_.maxIcon,iconName:"max"}],k=(0,l.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,l.jsx)("br",{}),(0,l.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),C=e=>{let{onClick:t,eventActionText:n,eventLabel:o,...i}=e;return(0,l.jsx)(u.z,{onClick:e=>{null==t||t(e),(0,d.h)({eventCategory:b,eventActionType:d.D.button,eventActionText:n||"",eventLabel:o})},...i})},A=e=>{let{onClick:t,eventActionType:n,eventActionText:o,eventLabel:i,chat:r,...c}=e;return(0,l.jsx)(p.r,{onClick:e=>{var l,c,a;null==t||t(e),r&&(null==e||e.preventDefault(),null==(a=null==(c=null==(l=null==window?void 0:window.supportWidget)?void 0:l.craftTalk)?void 0:c.open)||a.call(c)),(0,d.h)({eventCategory:b,eventActionType:n||d.D.link,eventActionText:o||"",eventLabel:i})},...c})},L=e=>{let{minioUrl:t,blogs:n}=e;return(0,l.jsxs)("div",{className:_.contactsWrapper,children:[(0,l.jsx)(c.x,{className:_.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,l.jsx)("div",{className:_.phones,children:j.map(e=>{let{title:t,url:n}=e;return(0,l.jsx)(A,{href:n,eventActionText:t,chat:!n,children:t},t)})}),(0,l.jsx)(c.x,{className:_.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,l.jsx)("div",{className:_.contactsButtons,children:N.map(e=>{let{type:o,className:i,iconName:r}=e;return(0,l.jsx)(C,{as:"a",href:null==n?void 0:n[o],target:"_blank",className:i,iconRight:(0,l.jsx)("img",{width:24,height:24,src:(0,a.xn)(t,"/widgets/footer/".concat(r,".svg")),alt:o,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:o,eventLabel:null==n?void 0:n[o]},o)})}),(0,l.jsx)(c.x,{className:_.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,l.jsx)("div",{className:_.contactsButtons,children:(0,l.jsxs)(A,{href:null==n?void 0:n.investTg,target:"_blank",className:_.link,eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg,children:[(0,l.jsx)(C,{className:_.tgIcon,iconRight:(0,l.jsx)("img",{width:24,height:24,src:(0,a.xn)(t,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg}),"Финуслуги Инвест"]})})]})},S=(0,s.g)("footer-disclaimer","sc"),z=Object.freeze({disclaimer:"".concat(S)}),T=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:b,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,l.jsx)("div",{className:(0,r.Z)(e.className,z.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,l.jsx)("div",{className:(0,r.Z)(e.className,z.disclaimer),onClick:t,children:e.children})},$={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},E={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},O=e=>m.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function R(e){let{className:t,style:n,boxSize:o,size:l,onClick:i}=e;return m.createElement("span",{className:t,style:{...$,...i&&{cursor:"pointer"},...l&&{fontSize:"".concat(l,"px")},...o&&{width:"".concat(o,"px"),height:"".concat(o,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...i?{role:"button",tabIndex:"0",onClick:i}:{}},m.createElement(O,{viewBox:"0 0 24 24",style:E}))}R.displayName="IconFdsArrowUpRightSmallO";let P=()=>{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},I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,m.useState)(e);return(0,m.useEffect)(()=>{let t=P();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?"".concat(o,"?").concat(r):o)},[e]),t},U={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},B={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},D=e=>m.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function Z(e){let{className:t,style:n,boxSize:o,size:l,onClick:i}=e;return m.createElement("span",{className:t,style:{...U,...i&&{cursor:"pointer"},...l&&{fontSize:"".concat(l,"px")},...o&&{width:"".concat(o,"px"),height:"".concat(o,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...i?{role:"button",tabIndex:"0",onClick:i}:{}},m.createElement(D,{viewBox:"0 0 24 24",style:B}))}Z.displayName="IconFdsArrowUpRightSmallO";let M=(0,s.g)("footer-modal-body","sc"),W=Object.freeze({wrapper:"".concat(M,"__wrapper"),title:"".concat(M,"__title"),item:"".concat(M,"__item"),label:"".concat(M,"__label"),button:"".concat(M,"__button"),description:"".concat(M,"__description")}),H=e=>{let{directions:t}=e;return(0,l.jsxs)("div",{className:W.wrapper,children:[(0,l.jsx)("div",{className:W.title,children:"Направления"}),t.map(e=>(0,l.jsxs)(A,{className:W.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:"".concat(e.name,"_").concat(e.url),children:[(0,l.jsxs)("div",{className:W.label,children:[(0,l.jsx)("span",{children:e.name}),(0,l.jsx)(C,{className:W.button,iconRight:(0,l.jsx)(Z,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,l.jsx)("p",{className:W.description,children:e.description})]},e.url))]})},F=(0,s.g)("footer-popup","sc"),V=Object.freeze({wrapper:"".concat(F,"__wrapper"),button:"".concat(F,"__button"),icon:"".concat(F,"__icon"),buttonWrapper:"".concat(F,"__button-wrapper")}),Y=e=>{let{directions:t}=e,n=(0,f._m)("l"),[o,i]=(0,m.useState)(!1),r=()=>{i(!1)};return(0,l.jsxs)("div",{className:V.wrapper,children:[(0,l.jsx)("div",{className:V.buttonWrapper,children:(0,l.jsx)(C,{className:V.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,l.jsx)("div",{className:V.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,l.jsx)("div",{},e))})})}),(0,l.jsxs)(v.P,{children:[!n&&(0,l.jsx)(v.U,{isOpen:o,onClose:r,full:!0,children:(0,l.jsx)(H,{directions:t})}),n&&(0,l.jsx)(v.D,{isOpen:o,onClose:r,width:"804px",children:(0,l.jsx)(H,{directions:t})})]})]})},G=(0,s.g)("footer-left-column","sc"),J=Object.freeze({leftColumn:"".concat(G,"__left-column"),logoWrapper:"".concat(G,"__logo-wrapper"),banner:"".concat(G,"__banner"),mobAppLink:"".concat(G,"__mob-app-link"),br:"".concat(G,"__br")}),K=e=>{let{showcaseUrl:t,minioUrl:n,directions:o,mobAppUrl:i}=e,r=I(i);return(0,l.jsxs)("div",{className:J.leftColumn,children:[(0,l.jsx)(A,{className:J.logoWrapper,href:t,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:(0,l.jsx)("img",{src:(0,a.xn)(n,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,l.jsx)(Y,{directions:null!=o?o:[]}),(0,l.jsx)(A,{href:r,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:r,className:J.mobAppLink,children:(0,l.jsxs)(h.Z,{className:J.banner,children:[(0,l.jsxs)(c.x,{weight:"medium",children:["Управляйте финансами",(0,l.jsx)("br",{}),"через приложение",(0,l.jsx)("br",{className:J.br})," Финуслуг"]}),(0,l.jsx)(C,{iconRight:(0,l.jsx)(R,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{srcSet:(0,a.xn)(n,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,l.jsx)("img",{src:(0,a.xn)(n,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},q=(0,s.g)("footer-logo","sc"),Q=Object.freeze({wrapper:"".concat(q,"__wrapper"),link:"".concat(q,"__link"),fromMoex:"".concat(q,"__from-moex"),logo:"".concat(q,"__logo"),white:"".concat(q,"__wrapper--white")}),X=e=>{let{showcaseUrl:t,minioUrl:n,isWhite:o}=e;return(0,l.jsx)("div",{className:(0,r.Z)(Q.wrapper,{[Q.white]:o}),children:(0,l.jsxs)(A,{className:Q.link,href:t,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:[(0,l.jsx)("img",{className:Q.logo,src:"".concat(n,"/images/logo-brandmark-common-finuslugi.svg"),loading:"lazy"}),(0,l.jsx)("img",{className:Q.fromMoex,src:"".concat(n,"/images/fromMoex.svg"),loading:"lazy"})]})})};var ee=((o=ee||{}).BLACK="black",o.GRAY="gray",o);let et=(0,s.g)("footer-warning","sc"),en=Object.freeze({reservedSpace:"".concat(et,"__reserved-space"),wrapper:"".concat(et,"__wrapper"),wrapperGray:"".concat(et,"__wrapper--gray"),fixed:"".concat(et,"__wrapper--fixed"),container:"".concat(et,"__container"),text:"".concat(et,"__text"),invisibleText:"".concat(et,"__text--invisible")}),eo=e=>{let{text:t,variant:n,fixed:o,isPlaceholder:c}=e;return(0,l.jsx)("div",{className:(0,r.Z)(en.wrapper,{[en.wrapperGray]:"gray"===n,[en.fixed]:o&&!c}),children:(0,l.jsx)(i.W,{className:en.container,children:(0,l.jsx)("div",{className:(0,r.Z)(en.text,{[en.invisibleText]:c}),dangerouslySetInnerHTML:{__html:t}})})})},el=e=>{var t,n;let{warning:o}=e,i="string"==typeof o?{text:o}:o,r={text:i.text,fixed:null===(t=i.fixed)||void 0===t||t,variant:null!==(n=i.variant)&&void 0!==n?n:ee.BLACK};return(0,l.jsxs)("div",{className:en.reservedSpace,children:[(0,l.jsx)(eo,{...r,isPlaceholder:r.fixed}),r.fixed&&(0,l.jsx)(eo,{...r,fixed:!0})]})},ei=e=>{var t,n;let{data:o,showcaseUrl:c="https://finuslugi.ru",minioUrl:a="https://assets.finuslugi.ru/mp-assets",customDisclaimer:s,variant:u="default",className:d}=e,p=!s&&null!=o&&o.disclaimer?o.disclaimer:void 0,m=u.includes("compact"),h=u.includes("white"),f=null==(t=null==o?void 0:o.bottom)?void 0:t.concat(m?y:[]),v=o&&"warning"in o?o.warning:void 0;return o?(0,l.jsx)("footer",{className:(0,r.Z)(w.wrapper,d,{[w.compact]:m,[w.white]:h}),children:(0,l.jsxs)("section",{className:w.section,children:[(0,l.jsxs)(i.W,{className:w.container,children:[!m&&(0,l.jsx)(K,{showcaseUrl:c,minioUrl:a,directions:null==o?void 0:o.directions,mobAppUrl:null==o?void 0:o.mobAppUrl}),(0,l.jsx)("div",{className:w.wrapper,children:(0,l.jsxs)("div",{className:w.top,children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:w.main,children:[!m&&(0,l.jsx)("div",{className:w.links,children:null==(n=null==o?void 0:o.top)?void 0:n.map(e=>(0,l.jsx)(A,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),m&&(0,l.jsx)(X,{showcaseUrl:c,minioUrl:a,isWhite:h}),(0,l.jsx)(T,{className:w.disclaimer,disclaimer:p,children:s||k})]}),(0,l.jsxs)("div",{className:w.bottom,children:[(0,l.jsx)("div",{className:w.bottomLinks,children:null==f?void 0:f.map(e=>(0,l.jsx)(A,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,l.jsx)(T,{className:w.bottomDisclaimer,disclaimer:null==o?void 0:o.bottomDisclaimer})]})]}),!m&&(0,l.jsx)(L,{minioUrl:a,blogs:null==o?void 0:o.blogs})]})})]}),m&&!!v&&(0,l.jsx)(el,{warning:v})]})}):null}},77337:function(e,t,n){"use strict";n.d(t,{jb:function(){return x},xn:function(){return w}});let o=/#/g,l=/&/g,i=/\//g,r=/=/g,c=/\+/g,a=/%5e/gi,s=/%60/gi,u=/%7c/gi,d=/%20/gi;function p(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(u,"|").replace(c,"%2B").replace(d,"+").replace(o,"%23").replace(l,"%26").replace(s,"`").replace(a,"^").replace(i,"%2F")}function m(e){return p(e).replace(r,"%3D")}function h(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let f=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,v=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,g=/^([/\\]\s*){2,}[^/\\]/,_=/^\.?\//;function x(e,t){let n=function e(t="",n){let o=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(o){let[,e,t=""]=o;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!function(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?f.test(e):v.test(e)||!!t.acceptRelative&&g.test(e)}(t,{acceptRelative:!0}))return n?e(n+t):y(t);let[,l="",i,r=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,c="",a=""]=r.match(/([^#/?]*)(.*)?/)||[],{pathname:s,search:u,hash:d}=y(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:l.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:c,pathname:s,search:u,hash:d,[b]:!l}}(e),o={...function(e=""){let t={};for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let o=h(e[1].replace(c," "));if("__proto__"===o||"constructor"===o)continue;let l=h((e[2]||"").replace(c," "));void 0===t[o]?t[o]=l:Array.isArray(t[o])?t[o].push(l):t[o]=[t[o],l]}return t}(n.search),...t};return n.search=Object.keys(o).filter(e=>void 0!==o[e]).map(e=>{var t;return(("number"==typeof(t=o[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${m(e)}=${p(t)}`).join("&"):`${m(e)}=${p(t)}`:m(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",o=e.hash||"",l=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[b]?(e.protocol||"")+"//":"")+l+i+t+n+o}(n)}function w(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(_,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}let b=Symbol.for("ufo:protocolRelative");function y(e=""){let[t="",n="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:o}}}}]);