(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7381],{1523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let i=n(8993);function s(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new i.BailoutToCSRError(t);return n}},49:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return l}});let i=n(7437),s=n(544);function l(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,s.getExpectedRequestStore)("next/dynamic css"),l=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));l.push(...t)}}return 0===l.length?null:(0,i.jsx)(i.Fragment,{children:l.map(e=>(0,i.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},6583:function(){},7565:function(){},6034:function(){},6153:function(){},4181:function(e,t,n){"use strict";n.d(t,{D:function(){return A},P:function(){return B},U:function(){return U},u:function(){return b}});var i=n(7437),s=n(4365),l=n(2265),o=n(684),r=n(2074),a=n(4887);let c=300,u=({opened:e})=>{let[t,n]=(0,l.useState)(!1),i=(0,l.useRef)(null),s=(0,l.useRef)(!1);return(0,l.useEffect)(()=>(e&&!s.current?(s.current=!0,n(!0)):!e&&s.current&&(i.current=setTimeout(()=>{s.current=!1,n(!1)},c)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},d=(0,r.g)("click-outside","sc"),p=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:o=c})=>{let r=(0,l.useRef)(null),a=(0,l.useCallback)(()=>{e&&(r.current=setTimeout(()=>{e()},o))},[o,e]),u=(0,l.useCallback)(e=>{"Escape"===e.key&&a()},[a]);return(0,l.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{r.current&&clearTimeout(r.current),window.removeEventListener("keydown",u)}),[n,u]),(0,i.jsx)("div",{className:(0,s.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:a})},h=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},v=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`)},g=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")},w=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)},_=()=>document.querySelectorAll("[data-portal]").length>1,b=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 i=t.current,s=document.body,l=document.documentElement,o=window.innerWidth-l.clientWidth,r=o>0;if(e&&r)v(s),f(s,l,o),h(i,!0);else if(e)g(s),h(i,!0);else{let e=!_();e&&w(s),e&&x(),h(i,!1)}return()=>{let e=!_();e&&w(s),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,i.jsx)("div",{className:(0,s.Z)(N.footer,{[N.hasScroll]:t},n),children:"function"==typeof e?e():e}),C=(0,r.g)("drawer-content","sc"),k=Object.freeze({container:`${C}__container`,open:`${C}--open`,close:`${C}--close`,header:`${C}__header`,rowHeader:`${C}__header--row`,title:`${C}__title`,center:`${C}__title--center`,left:`${C}__title--left`,right:`${C}__title--right`,controlContainer:`${C}__control-container`,content:`${C}__content`,footer:`${C}__footer`}),$=({onClose:e,onContentClick:t,children:n,title:r,rowTitle:a,titleAlign:c,isCloseable:u,footer:d,closeButton:p,isOpen:m,contentClassName:h,footerClassName:v,contentStyle:f,width:g})=>{let w=(0,l.useRef)(null),x=(0,l.useRef)(null),[_,b]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e;if(!x.current||!w.current)return;let t=(null==(e=null==x?void 0:x.current)?void 0:e.getBoundingClientRect().top)||0,n=null==w?void 0:w.current,i=()=>{let e=null==x?void 0:x.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",i,!1),()=>{null==n||n.removeEventListener("scroll",i,!1)}},[]);let j=f||g?{width:g,...f||{}}:void 0;return(0,i.jsxs)("div",{ref:w,style:j,className:(0,s.Z)(k.container,{[k.open]:m,[k.close]:!m},h),children:[r||u?(0,i.jsxs)("div",{className:(0,s.Z)(k.header,{[k.rowHeader]:a}),children:[u?p?"function"==typeof p?p():p:(0,i.jsx)("button",{type:"button",className:k.controlContainer,onClick:e,children:(0,i.jsx)(o.IconFdsCloseO,{size:24})}):null,r?(0,i.jsx)("h3",{className:(0,s.Z)(k.title,{[k[c]]:!0}),children:r}):null]}):null,(0,i.jsx)("div",{ref:x,className:k.content,onClick:t,children:n}),d&&(0,i.jsx)(y,{className:(0,s.Z)(k.footer,v),footer:d,hasScroll:_})]})},T=(0,r.g)("drawer-layout","sc"),O=Object.freeze({window:`${T}__window`}),S=({onClose:e,isOpen:t,children:n,withDisabledScroll:o,className:r,...a})=>{let c=(0,l.useCallback)(e=>e.stopPropagation(),[]);return b(t&&o),(0,i.jsxs)("div",{"data-portal":!0,className:(0,s.Z)(O.window,r),children:[(0,i.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,i.jsx)($,{onContentClick:c,onClose:e,isOpen:t,...a,children:n})]})},A=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:s=!0,withDisabledScroll:l=!0,...o})=>{let{mounted:r}=u({opened:e});return r?(0,i.jsx)(S,{titleAlign:n,isCloseable:s,isOpen:e,withDisabledScroll:l,...o,children:t}):null};A.displayName="Drawer";let I=(0,r.g)("mobile-modal-footer","sc"),R=Object.freeze({footer:`${I}__footer`,footerWithoutShadow:`${I}__footer--without-shadow`}),L=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,i.jsx)("div",{className:(0,s.Z)(R.footer,t&&R.footerWithoutShadow,n),children:"function"==typeof e?e():e}),P=(0,r.g)("mobile-popup","sc"),E=Object.freeze({mobilePopup:`${P}`,mobilePopupOpen:`${P}--open`,content:`${P}__content`,contentFull:`${P}__content--full`,contentTransition:`${P}__content--transition`,contentTransitionOpen:`${P}__content--transition-open`,contentLine:`${P}__content-line`,contentContainer:`${P}__content-container`,smallContentContainer:`${P}__content-container--small`,min:`${P}__content-container--min`,title:`${P}__title`,closeContainer:`${P}__close-container`,closeButton:`${P}__close-button`}),z=({children:e,footer:t,isOpen:n,isSmallPopup:r,onClose:a,hasCloseButton:c=!0,full:u,touchDistance:d=100,withDisabledScroll:p=!0,contentClassName:h,className:v,title:f,closeButton:g,footerClassName:w})=>{let[x,_]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),[y,C]=(0,l.useState)(!0),[k,$]=(0,l.useState)("120%"),T=(0,l.useRef)(null),O=(0,l.useRef)(0),S=(0,l.useRef)(!1),A=e=>{var t,n,i;let s=null==(t=T.current)?void 0:t.offsetTop,l=null==(n=T.current)?void 0:n.offsetHeight;if(S.current=!0,C(!1),s&&l){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-s,n=0;t>=0&&t<=l+30&&(n=t),t>l+30&&(n=l+30),$(`${n}px`),O.current=n}},I=()=>{S.current&&(O.current>d&&a?null==a||a():$("0"),C(!0),S.current=!1),window.removeEventListener("touchmove",A),window.removeEventListener("touchend",I)};return(0,l.useEffect)(()=>{n&&setTimeout(()=>{_(!0),N(!0),$("0")},100),!n&&j&&($("120%"),_(!1),N(!1))},[j,n]),b(n&&p),(0,i.jsxs)("div",{"data-portal":!0,className:(0,s.Z)(E.mobilePopup,j&&E.mobilePopupOpen,v),children:[(0,i.jsx)(m,{onClose:()=>{n&&(null==a||a())},onToucheMove:()=>{n&&(_(!1),window.addEventListener("touchmove",A),window.addEventListener("touchend",I))},isOpen:n,delay:0}),(0,i.jsxs)("div",{className:(0,s.Z)(E.content,u&&E.contentFull,y&&E.contentTransition,y&&x&&E.contentTransitionOpen),ref:T,style:{transform:`translateY(${k})`},children:[(0,i.jsx)("div",{className:E.contentLine}),(0,i.jsxs)("div",{className:(0,s.Z)(E.contentContainer,r&&E.smallContentContainer,{[E.min]:!f&&!c},h),children:[!!f&&(0,i.jsx)("div",{className:E.title,children:f}),c?(0,i.jsx)("div",{className:E.closeContainer,children:c?g?"function"==typeof g?g():g:(0,i.jsx)("button",{onClick:a,className:E.closeButton,children:(0,i.jsx)(o.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,i.jsx)(L,{footerClassName:w,isSmallPopup:r,footer:t})]})]})},U=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...s})=>{let{mounted:l}=u({opened:n});return l?(0,i.jsx)(z,{isSmallPopup:t,isOpen:n,...s,children:e}):null};U.displayName="UiMobilePopup";let B=({children:e,id:t="portal-root"})=>{let[n,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let e=document.getElementById(t);if(e){i(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),i(n),()=>{document.body.removeChild(n)}},[t]),n?(0,a.createPortal)(e,n):null}},5487:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});let i={getItem:e=>{if(typeof document>"u")return null;let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,n={})=>{if(typeof document>"u")return;(n={path:"/",...n}).expires instanceof Date&&(n.expires=n.expires.toUTCString());let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in n){if(!n.hasOwnProperty(e))continue;i+=`; ${e}`;let t=n[e];!0!==t&&(i+=`=${t}`)}document.cookie=i},removeItem:e=>{i.setItem(e,"",{"max-age":-1})}}},6715:function(e,t,n){"use strict";n.d(t,{CookiesPlate:function(){return u}});var i=n(7437),s=n(684),l=n(4365),o=n(2265),r=n(5487);let a=(0,n(2074).g)("cookies-plate","sc"),c=Object.freeze({wrapper:"".concat(a,"__wrapper"),contentWrapper:"".concat(a,"__content-wrapper"),visible:"".concat(a,"--visible"),hidden:"".concat(a,"--hidden"),content:"".concat(a,"__content"),text:"".concat(a,"__text"),link:"".concat(a,"__link"),button:"".concat(a,"__button")}),u=e=>{let{className:t,mountDelay:n=3e3,href:a="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",children:u,closeIcon:d,onMount:p,onLinkClick:m,onClose:h,mountAfterScroll:v=!0}=e,[f,g]=(0,o.useState)(!1),[w,x]=(0,o.useState)(!1),[_,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),r.a.getItem("Allow-Cookie")||(b(!0),setTimeout(()=>{g(!0),null==p||p()},n))};return v?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let j=(0,o.useCallback)(()=>{r.a.setItem("Allow-Cookie","1"),x(!0),null==h||h(),setTimeout(()=>b(!1),1e3)},[h]);return _?(0,i.jsx)("div",{className:c.wrapper,children:(0,i.jsx)("div",{className:(0,l.Z)(c.contentWrapper,{[c.visible]:f,[c.hidden]:w}),children:(0,i.jsxs)("div",{className:(0,l.Z)(t,c.content),children:[u||(0,i.jsxs)("p",{className:c.text,children:["Мы используем"," ",(0,i.jsx)("a",{className:c.link,href:a,target:"_blank",rel:"noreferrer",onClick:m,children:"cookie"})," ","для лучшей работы сайта"]}),(0,i.jsx)("button",{className:c.button,onClick:j,children:d||(0,i.jsx)(s.IconFdsCloseO,{})})]})})}):(0,i.jsx)(i.Fragment,{})}},7809:function(e,t,n){"use strict";let i;n.d(t,{Footer:function(){return J}});var s=n(7437),l=n(5563),o=n(4365),r=n(7337),a=n(2074),c=n(5461),u=n(992),d=n(684),p=n(2265),m=n(4181);let h=(0,a.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`}),f=(0,a.g)("footer","sc"),g=Object.freeze({wrapper:`${f}__wrapper`,section:`${f}__section`,container:`${f}__container`,top:`${f}__top`,main:`${f}__main`,links:`${f}__links`,disclaimer:`${f}__disclaimer`,bottom:`${f}__bottom`,bottomLinks:`${f}__bottom-links`,bottomDisclaimer:`${f}__bottom-disclaimer`,compact:`${f}__wrapper--compact`,white:`${f}__wrapper--white`}),w="finkit-widgets-sc-footer",x=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"}],_=[...x,{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,s.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,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),N=({onClick:e,eventActionText:t,eventLabel:n,...i})=>(0,s.jsx)(c.Button,{onClick:i=>{null==e||e(i),(0,u.h)({eventCategory:w,eventActionType:u.D.button,eventActionText:t||"",eventLabel:n})},...i}),y=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:i,chat:l,...o})=>(0,s.jsx)(c.Link,{onClick:s=>{var o,r,a;null==e||e(s),l&&(null==s||s.preventDefault(),null==(a=null==(r=null==(o=null==window?void 0:window.supportWidget)?void 0:o.craftTalk)?void 0:r.open)||a.call(r)),(0,u.h)({eventCategory:w,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:i})},...o}),C=({minioUrl:e,blogs:t})=>(0,s.jsxs)("div",{className:v.contactsWrapper,children:[(0,s.jsx)(l.xv,{className:v.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,s.jsx)("div",{className:v.phones,children:_.map(({title:e,url:t})=>(0,s.jsx)(y,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,s.jsx)(l.xv,{className:v.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,s.jsx)("div",{className:v.contactsButtons,children:b.map(({type:n,className:i,iconName:l})=>(0,s.jsx)(N,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:i,iconRight:(0,s.jsx)("img",{width:24,height:24,src:(0,r.xn)(e,`/widgets/footer/${l}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,s.jsx)(l.xv,{className:v.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,s.jsx)("div",{className:v.contactsButtons,children:(0,s.jsxs)(y,{href:null==t?void 0:t.investTg,target:"_blank",className:v.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,s.jsx)(N,{className:v.tgIcon,iconRight:(0,s.jsx)("img",{width:24,height:24,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}),"Финуслуги Инвест"]})})]}),k=(0,a.g)("footer-disclaimer","sc"),$=Object.freeze({disclaimer:`${k}`}),T=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,u.h)({eventCategory:w,eventActionType:u.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,s.jsx)("div",{className:(0,o.Z)(e.className,$.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,s.jsx)("div",{className:(0,o.Z)(e.className,$.disclaimer),onClick:t,children:e.children})},O=()=>{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,p.useState)(e);return(0,p.useEffect)(()=>{let t=O();if(!t||0===t.size)return;let[i,s=""]=e.split("?"),l=new URLSearchParams(s);t.forEach((e,t)=>{l.has(t)||l.set(t,e)});let o=l.toString();n(o?`${i}?${o}`:i)},[e]),t},A=(0,a.g)("footer-modal-body","sc"),I=Object.freeze({wrapper:`${A}__wrapper`,title:`${A}__title`,item:`${A}__item`,label:`${A}__label`,button:`${A}__button`,description:`${A}__description`}),R=({directions:e})=>(0,s.jsxs)("div",{className:I.wrapper,children:[(0,s.jsx)("div",{className:I.title,children:"Направления"}),e.map(e=>(0,s.jsxs)(y,{className:I.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,s.jsxs)("div",{className:I.label,children:[(0,s.jsx)("span",{children:e.name}),(0,s.jsx)(N,{className:I.button,iconRight:(0,s.jsx)(d.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,s.jsx)("p",{className:I.description,children:e.description})]},e.url))]}),L=(0,a.g)("footer-popup","sc"),P=Object.freeze({wrapper:`${L}__wrapper`,button:`${L}__button`,icon:`${L}__icon`,buttonWrapper:`${L}__button-wrapper`}),E=({directions:e})=>{let t=(0,c.useBreakpointUp)("l"),[n,i]=(0,p.useState)(!1),l=()=>{i(!1)};return(0,s.jsxs)("div",{className:P.wrapper,children:[(0,s.jsx)("div",{className:P.buttonWrapper,children:(0,s.jsx)(N,{className:P.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,s.jsx)("div",{className:P.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,s.jsx)("div",{},e))})})}),(0,s.jsxs)(m.P,{children:[!t&&(0,s.jsx)(m.U,{isOpen:n,onClose:l,full:!0,children:(0,s.jsx)(R,{directions:e})}),t&&(0,s.jsx)(m.D,{isOpen:n,onClose:l,width:"804px",children:(0,s.jsx)(R,{directions:e})})]})]})},z=(0,a.g)("footer-left-column","sc"),U=Object.freeze({leftColumn:`${z}__left-column`,logoWrapper:`${z}__logo-wrapper`,banner:`${z}__banner`,mobAppLink:`${z}__mob-app-link`,br:`${z}__br`}),B=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:i})=>{let o=S(i);return(0,s.jsxs)("div",{className:U.leftColumn,children:[(0,s.jsx)(y,{className:U.logoWrapper,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,s.jsx)("img",{src:(0,r.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,s.jsx)(E,{directions:n??[]}),(0,s.jsx)(y,{href:o,target:"_blank",eventActionType:u.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:o,className:U.mobAppLink,children:(0,s.jsxs)(l.Zb,{className:U.banner,children:[(0,s.jsxs)(l.xv,{weight:"medium",children:["Управляйте финансами",(0,s.jsx)("br",{}),"через приложение",(0,s.jsx)("br",{className:U.br})," Финуслуг"]}),(0,s.jsx)(N,{iconRight:(0,s.jsx)(d.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcSet:(0,r.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,s.jsx)("img",{src:(0,r.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},M=(0,a.g)("footer-logo","sc"),W=Object.freeze({wrapper:`${M}__wrapper`,link:`${M}__link`,fromMoex:`${M}__from-moex`,logo:`${M}__logo`,white:`${M}__wrapper--white`}),D=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,s.jsx)("div",{className:(0,o.Z)(W.wrapper,{[W.white]:n}),children:(0,s.jsxs)(y,{className:W.link,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,s.jsx)("img",{className:W.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,s.jsx)("img",{className:W.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var F=((i=F||{}).BLACK="black",i.GRAY="gray",i);let Z=(0,a.g)("footer-warning","sc"),H=Object.freeze({reservedSpace:`${Z}__reserved-space`,wrapper:`${Z}__wrapper`,wrapperGray:`${Z}__wrapper--gray`,fixed:`${Z}__wrapper--fixed`,container:`${Z}__container`,text:`${Z}__text`,invisibleText:`${Z}__text--invisible`}),V=({text:e,variant:t,fixed:n,isPlaceholder:i})=>(0,s.jsx)("div",{className:(0,o.Z)(H.wrapper,{[H.wrapperGray]:"gray"===t,[H.fixed]:n&&!i}),children:(0,s.jsx)(l.W2,{className:H.container,children:(0,s.jsx)("div",{className:(0,o.Z)(H.text,{[H.invisibleText]:i}),dangerouslySetInnerHTML:{__html:e}})})}),G=({warning:e})=>{let t="string"==typeof e?{text:e}:e,n={text:t.text,fixed:t.fixed??!0,variant:t.variant??F.BLACK};return(0,s.jsxs)("div",{className:H.reservedSpace,children:[(0,s.jsx)(V,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,s.jsx)(V,{...n,fixed:!0})]})},J=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:i,variant:r="default",className:a})=>{var c,u;let d=!i&&null!=e&&e.disclaimer?e.disclaimer:void 0,p=r.includes("compact"),m=r.includes("white"),h=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(p?x:[]),v=e&&"warning"in e?e.warning:void 0;return e?(0,s.jsx)("footer",{className:(0,o.Z)(g.wrapper,a,{[g.compact]:p,[g.white]:m}),children:(0,s.jsxs)("section",{className:g.section,children:[(0,s.jsxs)(l.W2,{className:g.container,children:[!p&&(0,s.jsx)(B,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,s.jsx)("div",{className:g.wrapper,children:(0,s.jsxs)("div",{className:g.top,children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:g.main,children:[!p&&(0,s.jsx)("div",{className:g.links,children:null==(u=null==e?void 0:e.top)?void 0:u.map(e=>(0,s.jsx)(y,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,s.jsx)(D,{showcaseUrl:t,minioUrl:n,isWhite:m}),(0,s.jsx)(T,{className:g.disclaimer,disclaimer:d,children:i||j})]}),(0,s.jsxs)("div",{className:g.bottom,children:[(0,s.jsx)("div",{className:g.bottomLinks,children:null==h?void 0:h.map(e=>(0,s.jsx)(y,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,s.jsx)(T,{className:g.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!p&&(0,s.jsx)(C,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),p&&!!v&&(0,s.jsx)(G,{warning:v})]})}):null}},9171:function(e,t,n){"use strict";n.d(t,{CitySelectProvider:function(){return S},Header:function(){return ej}});var i=n(7437),s=n(684),l=n(5563),o=n(5461),r=n(4365),a=n(2265),c=n(7337),u=n(992),d=n(4181),p=n(4267),m=n(5487),h=n(2074),v=n(2087);let f=(e,t)=>{if(!(typeof document>"u")){if(!e&&!t){m.a.removeItem(p.U),m.a.removeItem(p.a);return}m.a.setItem(p.U,JSON.stringify(e)||"",{"max-age":31536e3}),m.a.setItem(p.a,JSON.stringify(t)||"",{"max-age":31536e3})}},g=e=>{if(typeof document>"u")return null;let t=m.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},w=function(e){if(typeof window>"u"||!window.localStorage)return null;let t=window.localStorage.getItem(e);if(!t||"undefined"===t)return null;try{return JSON.parse(t)}catch(t){console.warn(`Invalid object in localStorage for key "${e}": ${t}`)}return null},x=()=>{if(typeof window>"u")return[];if(Array.isArray(window.allRegions)&&window.allRegions.length>0)return window.allRegions;let e=w("all_regions")||[];return window.allRegions=e,e},_=e=>{let t={};return e.map(({id:e,name:n,towns:i})=>(i.forEach(i=>{i.parentId=e,t[i.name]=t[i.name]||{},t[i.name][i.id]=n}),i)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},b=async()=>{let e={regions:[]};try{e=await (await fetch("https://finuslugi.ru/money_data/Root.json?short=1")).json()}catch(e){console.warn(e)}let t=null!=e&&e.regions?e.regions:[];return t.length<1?[]:(window.allRegions=t,window.localStorage.setItem("all_regions",JSON.stringify(t)),window.localStorage.setItem("lastRegionsUpdateUnixTimestamp",JSON.stringify(Date.now())),t)},j=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},N=(e,t,n)=>{(0,u.h)({eventCategory:$,eventActionType:e,eventActionText:t,eventLabel:n})},y=x(),C=_(y),k={regions:y,towns:C,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},$="finkit-widgets-sc-city-select",T=(0,a.createContext)(k);function O(){return(0,a.useContext)(T)}let S=({children:e,initialRegion:t,initialTown:n,showStartGeoPopup:s=!0,lastRegionsUpdateUnixTimestamp:l,dadataUrl:o="https://finuslugi.ru/backend/money/dadata"})=>{let r=Number(w("lastRegionsUpdateUnixTimestamp")||0),c=Number(l||0)>r,[d,m]=(0,a.useState)(x()),[{startRegion:h,startTown:v},y]=(0,a.useState)({startRegion:k.startRegion,startTown:k.startTown}),C=t??k.region,$=n??k.town,[{region:O,town:S},A]=(0,a.useState)({region:C,town:$}),[I,R]=(0,a.useState)(k.startPopupVisible),[L,P]=(0,a.useState)(k.popupVisible),E=(0,a.useRef)(""),z=(0,a.useMemo)(()=>_(d),[d.length]),U=(0,a.useCallback)((e,t)=>{window.sessionStorage.setItem("start_popup_opened","1"),window.localStorage.setItem("auto_town",JSON.stringify(t)||""),window.localStorage.setItem("auto_region",JSON.stringify(e)||""),R(!0),y({startRegion:e,startTown:t})},[R,y]),B=(0,a.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||U(e,t)},[U]),M=(0,a.useCallback)(()=>{if(E.current&&!O&&!S){let e=z.find(e=>e.name===E.current)??null;return B(d.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}B(O,S)},[O,S,z,d,B]),W=(0,a.useCallback)(e=>{P(e)},[P]),D=(0,a.useCallback)(e=>{e?N(u.D.icon,"location"):N(u.D.button,(null==S?void 0:S.name)||"Вся Россия"),!s||window.sessionStorage.getItem("start_popup_opened")?W(!0):M()},[s,S,W,M]),F=(0,a.useCallback)((e,t)=>{e||t?(window.localStorage.setItem("all_russia_selected","0"),window.localStorage.setItem(p.U,JSON.stringify(e)||""),window.localStorage.setItem(p.a,JSON.stringify(t)||""),f(e||null,t||null)):(window.localStorage.setItem("all_russia_selected","1"),window.localStorage.setItem(p.U,""),window.localStorage.setItem(p.a,""),f(null,null)),A({region:e||null,town:t||null}),R(!1),W(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[W]),Z=()=>{A({region:g(p.U)??w(p.U),town:g(p.a)??w(p.a)});let e=async({coords:{latitude:e,longitude:t}})=>{let n=`${o}?lat=${e}&lon=${t}`,i=await j(n);null!=i&&i.location&&(E.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&s)try{navigator.geolocation.getCurrentPosition(e,()=>null)}catch{}};return(0,a.useEffect)(()=>{if((d.length<1||c)&&b().then(e=>m(e)),window.innerWidth<1024){let e=()=>{Z(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{Z()},0)},[]),(0,i.jsx)(T.Provider,{value:{regions:d,towns:z,region:O,town:S,startPopupVisible:I,setStartPopupVisible:R,popupVisible:L,handleToggleModal:W,selectCity:F,handleButtonClick:D,startRegion:h,startTown:v},children:e})},A=()=>{let e=(0,a.useRef)(null),t=(0,a.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,a.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,a.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},I=(0,h.g)("city-select-modal-body","sc"),R=Object.freeze({wrapper:`${I}__wrapper`,subtitle:`${I}__subtitle`,hintWrapper:`${I}__hint-wrapper`,hintText:`${I}__hint-text`,input:`${I}__input`,chips:`${I}__chips`,townsListWrapper:`${I}__towns-list-wrapper`,townsList:`${I}__towns-list`,townsGroup:`${I}__towns-group`,townsGroupLabel:`${I}__towns-group-label`,townsGroupList:`${I}__towns-group-list`,townsName:`${I}__towns-name`,regionName:`${I}__region-name`}),L=({groupedTowns:e,chips:t,query:n,setQuery:l,isDrawer:r})=>{var c;let d=O(),p=(0,a.useRef)(null),[m,h]=(0,a.useState)("10000px");(0,a.useEffect)(()=>{if(!r||!p.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,i)=>{let s=n.map(e=>[...e]),l=s.map(e),o=l.reduce((e,t,n)=>t<l[e]?n:e,0);0===o&&s[0].push(s[1].shift()),2===o&&s[2].unshift(s[1].pop()),1===o&&l[0]>l[2]&&s[1].unshift(s[0].pop()),1===o&&l[0]<l[2]&&s[1].push(s[2].shift());let r=Math.max(...s.map(e));return r>=i?i:t(s,r)};new ResizeObserver(()=>{var e;if(!(null!=(e=p.current)&&e.children))return;let n=Array.from(p.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let i=0;try{i=t([[],n,[]],1/0)}catch{i=0}i>0&&h(`${i}px`)}).observe(p.current)},[]);let v=e=>{if(N(u.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return d.selectCity();let t=d.regions.find(t=>t.id===Number(e.parentId))||null;d.selectCity(t,e)};return(0,i.jsxs)("div",{className:R.wrapper,children:[(0,i.jsxs)("div",{className:R.subtitle,children:["Покажем предложения рядом с вами",(0,i.jsxs)("div",{className:R.hintWrapper,children:[(0,i.jsx)(s.IconFdsQuestionCircleO,{size:24}),(0,i.jsx)("div",{className:R.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,i.jsx)(o.InputBase,{className:R.input,value:n,onChange:l,size:"s",placeholder:"Введите название города",icon:n?(0,i.jsx)(s.IconFdsCloseCircleO,{size:24,onClick:()=>l("")}):(0,i.jsx)(s.IconFdsSearchO,{size:24})}),(0,i.jsx)(o.Chips,{className:R.chips,chips:t,value:(null==(c=d.town)?void 0:c.id)||0,onChipClick:e=>{v(d.towns.find(t=>t.id===e))}}),(0,i.jsx)("div",{className:R.townsListWrapper,children:(0,i.jsx)("div",{ref:p,className:R.townsList,style:{maxHeight:m},children:e.map(e=>(0,i.jsxs)("div",{className:R.townsGroup,children:[(0,i.jsx)("div",{className:R.townsGroupLabel,children:e.letter}),(0,i.jsx)("div",{className:R.townsGroupList,children:e.towns.map(e=>(0,i.jsxs)("button",{type:"button",onClick:()=>v(e),children:[(0,i.jsx)("div",{className:R.townsName,children:e.name}),(0,i.jsx)("div",{className:R.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},P=[1095,1096,134,720,189,180],E=()=>{var e;let t=O(),n=(0,o.useBreakpointUp)("l"),[s,l]=(0,a.useState)(""),r=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,c=(0,a.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(s.toLocaleLowerCase())).sort((e,t)=>e.name.localeCompare(t.name)).reduce((e,t)=>{let n=e.pop();return n||(n={letter:t.name[0],towns:[]}),n.letter!==t.name[0]&&(e.push(n),n={letter:t.name[0],towns:[]}),n.towns.push(t),e.push(n),e},[]),[s,t.towns.length]),p=(0,a.useMemo)(()=>[{id:0,label:"Вся Россия"},...P.map(e=>{let n=t.towns.find(t=>t.id===e);return{id:null==n?void 0:n.id,label:null==n?void 0:n.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[t.towns.length]),m=()=>{N(u.D.button,"close"),t.handleToggleModal(!1)};return(0,i.jsxs)(d.P,{children:[!n&&(0,i.jsx)(d.U,{title:r,isOpen:t.popupVisible,onClose:m,full:!0,children:(0,i.jsx)(L,{groupedTowns:c,chips:p,query:s,setQuery:l})}),n&&(0,i.jsx)(d.D,{title:r,isOpen:t.popupVisible,onClose:m,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,i.jsx)(L,{groupedTowns:c,chips:p,query:s,setQuery:l,isDrawer:!0})})]})},z={"uat-mp.beta.moex.com":"//chat-marketplace.beta.moex.com","finuslugi.ru":"//chat.finuslugi.ru","dev-rc.beta.moex.com":"//dev-opbot.tech.finuslugi.ru"},U=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(z,e)?z[e]:z["finuslugi.ru"]},B=(e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=`${e}/assets/css/${t}`,document.head.appendChild(n);let i=document.createElement("script");i.src=`${e}/get-bootstrap/${t}`,i.defer=!0,document.body.appendChild(i)},M=()=>new MutationObserver(e=>{e.forEach(e=>{if("style"===e.attributeName){let e=document.querySelector(".webchat"),t=!!e&&"none"!==e.style.display;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.isOpened=t)}})}),W=()=>{let[e,t]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),s=(0,a.useRef)(!1),l=e=>{s.current=e,i(e)};return(0,a.useEffect)(()=>{if(typeof window>"u")return;let e=U(),n="webchat_main";window.supportWidget={craftTalk:{isOpened:!1,setConfig:t=>{if(t.host&&(e=t.host),t.channel&&(n=t.channel),t.user){let e="function"==typeof t.user?t.user:()=>({...t.user});window.__WebchatUserCallback=e}},open:()=>new Promise(e=>{e()}),close:()=>null,toggle:()=>null}};let i=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((o,r)=>{if(s.current){r(Error("chat is already opened"));return}i?(i.openWidget(),t(!1),o()):(l(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let s=document.querySelector(".webchat");s&&M().observe(s,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),l(!1),t(!1),o()},B(e,n))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,i;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(i=null==(n=window.supportWidget)?void 0:n.craftTalk)||i.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:n}},D=(0,a.createContext)({isAuth:!1,isHeaderHidden:!1,isHeaderTransparent:!1,openedBlock:null,setOpenedBlock:()=>null,openedSection:null,setOpenedSection:()=>null,isNavigationOpen:!1,isNavigationMounted:!1,navMenuItemsRef:{current:null},navigationRef:{current:null},ignoreClicks:!1,setIgnoreClicks:()=>null,isChatModalOpen:!1,setIsChatModalOpen:()=>null,isChatLoading:!1,fixedContainerRef:{current:null},headerRef:{current:null}});function F(){return(0,a.useContext)(D)}let Z=e=>{let[t,n]=(0,a.useState)(!1),[s,l]=(0,a.useState)(!1),[o,r]=(0,a.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p}=W(),[m,h]=(0,a.useState)(null),[f,g]=(0,a.useState)(null),[w,x]=(0,a.useState)(!1),[_,b]=(0,a.useState)(!1),[j,N]=(0,a.useState)(!1),y=(0,a.useRef)(null),C=(0,d.u)(w),k=(0,a.useRef)(null),$=(0,a.useRef)(null),T=(0,a.useRef)(null),O=(0,a.useRef)(null),S=(0,a.useCallback)(()=>{C.current&&C.current.scrollTo({top:0})},[C]),A=(0,a.useCallback)(e=>{g(e),S()},[S]),I=(0,a.useCallback)(e=>{k.current&&clearTimeout(k.current),e&&b(!0),e||(k.current=setTimeout(()=>{b(!1),A(null)},300))},[A]),R=(0,a.useCallback)((e,t,n)=>{if(t&&A(t),!n&&e===m||!e){I(!w),x(!w);return}h(e),I(!0),x(!0)},[m,A,w,I]),L=(0,a.useCallback)(()=>{$.current&&clearTimeout($.current),N(!0),$.current=setTimeout(()=>{N(!1)},650)},[]);return(0,a.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,v.s)(l,r,e.isMainBannerPage);return(0,v.i)(),t},[]),(0,i.jsx)("header",{children:(0,i.jsx)(D.Provider,{value:{isAuth:t,isHeaderHidden:s,isHeaderTransparent:o,openedBlock:m,setOpenedBlock:R,openedSection:f,setOpenedSection:A,isNavigationOpen:w,isNavigationMounted:_,navMenuItemsRef:y,navigationRef:C,ignoreClicks:j,setIgnoreClicks:L,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p,fixedContainerRef:T,headerRef:O},children:e.children})})},H=({label:e,onClick:t,eventActionText:n,eventLabel:s,...l})=>(0,i.jsx)(o.Button,{label:e,onClick:e=>{null==t||t(e),(0,u.h)({eventCategory:p.H,eventActionType:u.D.button,eventActionText:n||"",eventLabel:s||""})},...l}),V=(0,h.g)("header-popup","sc"),G=Object.freeze({popup:`${V}__popup`,popupHeader:`${V}__popup-header`,popupClose:`${V}__popup-close`,body:`${V}__body`}),J=({isOpen:e,onClose:t,children:n,title:l})=>{let r=(0,o.useBreakpointUp)("l");return(0,i.jsxs)(d.P,{children:[!r&&(0,i.jsx)(d.U,{title:l,isOpen:e,onClose:t,children:n}),r&&e&&(0,i.jsxs)("div",{className:G.popup,children:[(0,i.jsxs)("div",{className:G.popupHeader,children:[l,(0,i.jsx)(H,{className:G.popupClose,iconLeft:(0,i.jsx)(s.IconFdsCloseO,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,i.jsx)("div",{className:G.body,children:n})]})]})},q=(0,h.g)("start-choice-popup","sc"),Q=Object.freeze({top:`${q}__top`,progress:`${q}__progress`,innerCircle:`${q}__inner-circle`,title:`${q}__title`,subtitle:`${q}__subtitle`,actions:`${q}__actions`}),Y=()=>{var e,t;let n=O(),[s,l]=(0,a.useState)(10),[o,r]=(0,a.useState)(0),c=(0,a.useRef)(void 0),d=()=>{N(u.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(n.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(n.startRegion)||""),n.setStartPopupVisible(!1)};return(0,a.useEffect)(()=>{n.startPopupVisible?(()=>{let e=Number((" "+s).slice(1)),t=1e3*e/100,n=0,i=0;c.current=setInterval(()=>{n++,i+=t,r(3.6*n);let o=e-Math.floor(i/1e3);o<s&&l(o),100===n&&(clearInterval(c.current),d())},t)})():(clearInterval(c.current),l(10),r(0))},[n.startPopupVisible]),(0,i.jsxs)(J,{isOpen:n.startPopupVisible,onClose:d,title:(0,i.jsx)("button",{type:"button",className:Q.progress,style:{background:`conic-gradient(#ff0508 ${o}deg, #e3e7ec 0deg)`},onClick:d,children:(0,i.jsx)("div",{className:Q.innerCircle,children:s})}),children:[(0,i.jsxs)("div",{className:Q.top,children:[(0,i.jsxs)("div",{className:Q.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,i.jsx)("div",{className:Q.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,i.jsxs)("div",{className:Q.actions,children:[(0,i.jsx)(H,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{N(u.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,i.jsx)(H,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{N(u.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},K=(0,h.g)("city-select","sc"),X=Object.freeze({button:`${K}__button`,minimal:`${K}__minimal`,full:`${K}__full`}),ee=({initialTown:e})=>{var t;let n=O(),l=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:c,isChatModalOpen:u}=F(),{startPopupVisible:d,setStartPopupVisible:p,popupVisible:m}=n,h=(0,a.useRef)();(0,a.useEffect)(()=>{m&&(h.current="popup")},[m]),(0,a.useEffect)(()=>{u&&(h.current="chat")},[u]),(0,a.useEffect)(()=>{d&&(h.current="startPopup")},[d]),(0,a.useEffect)(()=>{h.current&&("chat"===h.current&&d?p(!1):["startPopup","popup"].includes(h.current)&&u&&c(!1))},[m,u,d,p,c]);let v={appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,i.jsx)(s.IconFdsLocationO,{size:24})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Button,{...v,className:(0,r.Z)(X.button,X.full),label:l}),(0,i.jsx)(o.Button,{...v,className:(0,r.Z)(X.button,X.minimal),shape:"icon"}),(0,i.jsx)(E,{}),(0,i.jsx)(Y,{})]})},et=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:s,...l})=>(0,i.jsx)(o.Link,{onClick:i=>{null==e||e(i),(0,u.h)({eventCategory:p.H,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:s||""})},...l}),en=(0,h.g)("header-mobile-app-banner","sc"),ei=Object.freeze({wrapper:`${en}__wrapper`,container:`${en}__container`,closeButton:`${en}__close-button`,innerWrapper:`${en}__inner-wrapper`,imageWrapper:`${en}__image-wrapper`,image:`${en}__image`,title:`${en}__title`,description:`${en}__description`,callToAction:`${en}__call-to-action`,scanQr:`${en}__scan-qr`}),es=Object.freeze({mobile:56,desktop:68}),el="headerBannerShownAt",eo=()=>{let e=localStorage.getItem(el);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},er=()=>{localStorage.setItem(el,new Date().toISOString())},ea=()=>{let e=eo();return!e||Math.floor((e.getTime()-new Date().getTime())/864e5)>5},ec=({minioUrl:e,className:t,mobileAppUrl:n})=>{let{fixedContainerRef:d,headerRef:m}=F(),[h,f]=(0,a.useState)(!1),[g,w]=(0,a.useState)(!1),[x,_]=(0,a.useState)(!1),b=(0,a.useCallback)((e="desktop")=>{let t=d.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${es[e]+p.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${es.desktop+p.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${es.mobile+p.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${es.mobile+p.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${es.desktop+p.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${es[e]+108}px`))},[]),j=(0,a.useCallback)(()=>{let e=d.current;e&&(document.documentElement.style.removeProperty("--fixed-header-height"),document.documentElement.style.removeProperty("--new-header-height-desktop"),document.documentElement.style.removeProperty("--new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-desktop"),document.documentElement.style.removeProperty("--header-height"),e.style.transform="")},[]);return(0,a.useEffect)(()=>{let e=m.current;if(!e)return;let t=()=>{g&&f(!1),_(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[g]),(0,a.useEffect)(()=>{ea()&&f(!0)},[]),(0,a.useEffect)(()=>{let e=window.innerWidth<768;h&&(b(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?f(!0):_(!0));let t=()=>{if(!h)return null;b(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{j(),window.removeEventListener("resize",t)}},[h,b,j]),h?(0,i.jsx)("div",{id:"headerMobileBanner",role:"region","aria-label":"Мобильное приложение","data-opening":x,className:(0,r.Z)(ei.wrapper,t),children:(0,i.jsx)(l.W2,{children:(0,i.jsxs)("div",{className:ei.container,children:[(0,i.jsxs)("div",{className:ei.innerWrapper,children:[(0,i.jsxs)("picture",{className:ei.imageWrapper,children:[(0,i.jsx)("source",{srcSet:(0,c.xn)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{className:ei.image,src:(0,c.xn)(e,"/logo/finuslugi/default-regular.svg")})]}),(0,i.jsxs)("div",{className:ei.scanQr,children:[(0,i.jsx)("div",{className:ei.title,children:"Скачайте приложение Финуслуги"}),(0,i.jsx)("div",{className:ei.description,children:"Сканируйте QR-код"})]}),(0,i.jsxs)("div",{className:ei.callToAction,children:[(0,i.jsxs)("div",{children:["Приложение",(0,i.jsx)("br",{}),"Финуслуги"]}),(0,i.jsx)(o.Button,{onClick:()=>{(0,v.h)(u.D.button,"skachat_mob_prilozheniye_fu"),window.open(n,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,i.jsx)("div",{"aria-label":"Закрыть",role:"button",className:ei.closeButton,onClick:()=>{er(),j(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?f(!1):w(!0)},children:(0,i.jsx)(s.IconFdsCloseO,{size:"100%"})})]})})}):null},eu=(0,h.g)("header-chat-modal-body","sc"),ed=Object.freeze({wrapper:`${eu}__wrapper`,cardButton:`${eu}__card-button`,card:`${eu}__card`,cardTitle:`${eu}__card-title`,cardSubtitle:`${eu}__card-subtitle`,button:`${eu}__button`}),ep=()=>{let e=F();return(0,i.jsxs)("div",{className:ed.wrapper,children:[(0,i.jsx)(H,{className:ed.cardButton,variant:"secondary",pending:e.isChatLoading,onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},eventActionText:"Напишите в чат",children:(0,i.jsxs)(l.Zb,{className:ed.card,variant:"secondary",children:[(0,i.jsxs)("div",{className:ed.cardTitle,children:[(0,i.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat"}),"Напишите в чат"]}),(0,i.jsxs)("p",{className:ed.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,i.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},em=({data:e,isMobile:t})=>{let n=F();return(0,i.jsx)("div",{className:v.a.contentWrapper,children:e.map(e=>(0,i.jsx)(a.Fragment,{children:e.sections.map(e=>(0,i.jsxs)("div",{className:(0,r.Z)(v.a.content,{[v.a.hidden]:n.openedSection!==e.id,[v.a.contentOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:v.a.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),e.content.map((n,l)=>{var o,a;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,r.Z)(v.a.contentTitle,{[v.a.removed]:!n.title,[v.a.contentTitleUrl]:!!n.url,[v.a.contentTitleLink]:!!e.isSeeAllLinkAvailable,[v.a.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:v.a.arrowIcon,children:(0,i.jsx)(s.IconFdsArrowUpRightSmallO,{})}),n.title]})})}),!(null!=(o=n.links)&&o.length)&&(0,i.jsx)(v.N,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(a=n.links)&&a.length)&&(0,i.jsx)("div",{className:(0,r.Z)(v.a.links,{[v.a.linksColumns]:!!n.columns,[v.a.linksTitleless]:!n.title}),children:n.links.map(e=>(0,i.jsxs)("a",{href:e.url,className:(0,r.Z)({[v.a.new]:!!e.new}),onClick:()=>(0,v.h)(u.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{className:v.a.arrowIcon,children:(0,i.jsx)(s.IconFdsArrowUpRightSmallO,{})}),(0,i.jsx)("span",{children:e.title})]},e.url))})]},`${n.url}_${l}`)})]},e.id))},e.id))})},eh=(0,h.g)("navigation-section-icon","sc"),ev=Object.freeze({icon:`${eh}`}),ef=({name:e,background:t})=>{let n=(0,a.useMemo)(()=>e&&s[e]||null,[e]);return e&&n?(0,i.jsx)("div",{className:ev.icon,style:{background:t},children:(0,i.jsx)(n,{})}):null},eg=(0,h.g)("navigation","sc"),ew=Object.freeze({navigation:`${eg}`,navigationOpening:`${eg}--opening`,navigationClosing:`${eg}--closing`,wrapper:`${eg}__wrapper`,container:`${eg}__container`,containerOpen:`${eg}__container--open`,sections:`${eg}__sections`,sectionsOpen:`${eg}__sections--open`,citySelectButton:`${eg}__city-select-button`,sectionsTitle:`${eg}__sections-title`,sectionsWrapper:`${eg}__sections-wrapper`,section:`${eg}__section`,sectionArrow:`${eg}__section-arrow`,sectionExtra:`${eg}__section--extra`,sectionActive:`${eg}__section--active`,sectionTitle:`${eg}__section-title`,chatWrapper:`${eg}__chat-wrapper`,chatHeader:`${eg}__chat-header`,backButton:`${eg}__back-button`,useful:`${eg}__useful`,usefulOpen:`${eg}__useful--open`,usefulTitle:`${eg}__useful-title`,usefulGrid:`${eg}__useful-grid`,removed:`${eg}__removed`}),ex=({data:e})=>{var t;let n=F(),c=O(),d=(0,o.useBreakpointDown)("m"),[m,h]=(0,a.useState)(!0);(0,a.useEffect)(()=>{h(d)},[d]);let f=(0,a.useRef)(null),g=(0,a.useCallback)(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),w=(0,a.useRef)(!1),x=(0,a.useRef)(null),_=(0,a.useCallback)(()=>{m&&(w.current=!0,x.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,m]),b=(0,a.useCallback)(()=>{w.current=!1,window.onpopstate=x.current,window.history.go(-1)},[]),j=(0,a.useRef)(null),N=(0,a.useCallback)(e=>{if(m||!n.navMenuItemsRef.current||!n.navigationRef.current)return;let t=e.target,i=!n.navMenuItemsRef.current.contains(t)&&!n.navigationRef.current.contains(t);if(i&&!j.current){n.setIgnoreClicks(),j.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!i&&j.current&&(clearTimeout(j.current),j.current=null)},[m,n]),y=(0,a.useRef)(null),C=(0,a.useCallback)(e=>{typeof window>"u"||(e?(y.current=N,window.addEventListener("mousemove",y.current)):y.current&&window.removeEventListener("mousemove",y.current))},[N]);(0,a.useEffect)(()=>{C(n.isNavigationOpen),n.isNavigationOpen&&!w.current&&_(),!n.isNavigationOpen&&w.current&&b()},[n.isNavigationOpen]);let k=(e,t)=>()=>{(0,v.h)(u.D.button,t),n.setOpenedSection(e)},{start:$,clear:T}=A(),S=(e,t)=>()=>{m||$(k(e,t),150)},I=()=>{m||T()};return(0,i.jsx)("div",{ref:n.navigationRef,className:(0,r.Z)(ew.navigation,{[ew.removed]:!n.isNavigationMounted,[ew.navigationOpening]:n.isNavigationOpen,[ew.navigationClosing]:!n.isNavigationOpen}),children:(0,i.jsx)("div",{className:ew.wrapper,children:(0,i.jsxs)(l.W2,{className:(0,r.Z)(ew.container,{[ew.containerOpen]:!!n.openedSection}),children:[(0,i.jsxs)("div",{className:(0,r.Z)(ew.sections,{[ew.sectionsOpen]:!!n.openedSection}),children:[(0,i.jsx)(o.Button,{className:ew.citySelectButton,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>c.handleButtonClick(!1),iconLeft:(0,i.jsx)(s.IconFdsLocationO,{size:24}),label:(null==(t=c.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,i.jsxs)("ul",{className:(0,r.Z)(ew.sectionsWrapper,{[ew.removed]:n.openedBlock!==e.id&&!m}),children:[(0,i.jsx)("div",{className:ew.sectionsTitle,children:p.b[e.id]}),e.sections.map(e=>(0,i.jsxs)("li",{className:(0,r.Z)(ew.section,{[ew.sectionExtra]:!!e.extra,[ew.sectionActive]:n.openedSection===e.id}),onClick:k(e.id,e.title),onMouseEnter:S(e.id,e.title),onMouseLeave:I,children:[(0,i.jsx)(ef,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:ew.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:ew.sectionArrow,children:(0,i.jsx)(s.IconFdsChevronRightSmallO,{size:24})})]},e.id))]},e.id)),(0,i.jsxs)("div",{className:ew.chatWrapper,children:[(0,i.jsx)("div",{className:ew.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(ep,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,r.Z)(ew.backButton,{[ew.removed]:!n.openedSection}),onClick:()=>{(0,v.h)(u.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,i.jsx)(s.IconFdsChevronLeftO,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(em,{data:e,isMobile:m}),(0,i.jsxs)("div",{className:(0,r.Z)(ew.useful,{[ew.usefulOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:ew.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,i.jsx)(a.Fragment,{children:e.sections.map(e=>(0,i.jsx)("div",{className:(0,r.Z)(ew.usefulGrid,{[ew.removed]:n.openedSection!==e.id}),children:e.useful.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,v.h)(u.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${t}`))},e.id))},e.id))]})]})})})},e_=(e,t,n)=>{var i,s,l,o,r,a,u;let d=(null==(s=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:s.call(i,({id:e})=>"news"===e))||-1,p=(null==(o=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l[d])?void 0:o.content)||[];if(null!=(u=null==(a=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[d])?void 0:a.content)&&u[0]&&Array.isArray(n)&&p.length){let i=n.map(({title:e,url:n})=>({title:e,url:(0,c.xn)(t||"",n),new:0}));e.NAVIGATOR[d].content[0].links=i}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]},eb=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:d="https://lk.finuslugi.ru/registration",initialTown:m,isMainBannerPage:h,enableAppHeaderBanner:f=!1,news:g,className:w})=>{let x=F(),_=(0,a.useMemo)(()=>e_(e,t,g),[e,t,g]),b=null==e?void 0:e.config,j=(0,a.useMemo)(()=>_.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[_]),N=x.isAuth?"Личный кабинет":"Войти",y=h&&x.isHeaderTransparent,C=(e,t,n,i)=>()=>{e!==x.openedBlock?(0,v.h)(u.D.toggle,t,"on"):(0,v.h)(u.D.button,"menu_close","on");let s=n?j[e]:"";x.setOpenedBlock(e,s,!!i)},{start:k,clear:$}=A(),T=(e,t,n,i)=>()=>{x.isNavigationOpen&&e===x.openedBlock||x.setIgnoreClicks(),k(C(e,t,n,i),200)},O=e=>()=>{x.ignoreClicks||e()},S=e=>x.openedBlock===e&&x.isNavigationOpen;return e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:x.headerRef,className:(0,r.Z)(p.s.header,w,{[p.s.transparent]:y}),children:(0,i.jsxs)("div",{ref:x.fixedContainerRef,className:(0,r.Z)(p.s.fixed,{[p.s.hidden]:x.isHeaderHidden,[p.s.navigationOpen]:x.isNavigationOpen}),children:[!!(null!=b&&b.appBannerUrl)&&f&&(0,i.jsx)(ec,{mobileAppUrl:b.appBannerUrl,minioUrl:n}),(0,i.jsxs)(l.W2,{className:p.s.container,children:[(0,i.jsxs)("div",{className:p.s.leftRow,children:[(0,i.jsx)(et,{className:p.s.logo,href:t,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,c.xn)(n,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{src:(0,c.xn)(n,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,i.jsx)("nav",{ref:x.navMenuItemsRef,className:p.s.menuItems,children:(0,i.jsx)("ul",{children:p.c.map(({id:e,label:t})=>(0,i.jsx)("li",{children:(0,i.jsx)(o.Button,{className:(0,r.Z)({[p.s.menuItemActive]:S(e)}),label:t,variant:"white",size:"xs",onClick:O(C(e,t,!0)),onMouseEnter:T(e,t,!0,!0),onMouseLeave:$})},e))})}),(0,i.jsx)(H,{className:(0,r.Z)(p.s.tabletMenuButton,{[p.s.menuItemActive]:x.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(s.IconFdsChevronDownO,{size:24}),onClick:C("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:(0,r.Z)(p.s.buttonGroup,{[p.s.whiteIcons]:(null==b?void 0:b.iconColorOnMobileMainBanner)==="white"}),children:[(0,i.jsxs)("div",{className:p.s.chips,children:[(0,i.jsx)(H,{as:"a",href:d,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${d}`,iconLeft:(0,i.jsx)(s.IconFdsUserO,{size:20})}),(0,i.jsx)(H,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,i.jsx)(s.IconFdsChatDotsCircleO,{size:24})})]}),(0,i.jsx)(H,{className:p.s.menuButton,size:"xs",shape:y?"icon":"default",appearance:y?"ghost":"fill",label:"Меню",onClick:C("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(s.IconFdsMenuSkewedO,{size:24})}),(0,i.jsxs)("div",{className:p.s.moreButtons,children:[(0,i.jsx)(ee,{initialTown:m}),(0,i.jsx)(H,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",appearance:"ghost",eventActionText:"IconFdsChatDotsSquareAddO",iconLeft:(0,i.jsx)(s.IconFdsChatDotsSquareAddO,{size:24}),children:"Онлайн чат"}),(0,i.jsx)(H,{as:"a",href:d,size:"xs",eventActionText:N,eventLabel:`${N}_${d}`,label:N})]})]}),(0,i.jsxs)(et,{className:p.s.auth,href:d,eventActionText:N,eventLabel:`${N}_${d}`,children:[(0,i.jsx)(H,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(s.IconFdsUserO,{}),eventActionText:N,eventLabel:`${N}_${d}`}),(0,i.jsx)("p",{children:N})]}),(0,i.jsx)("div",{className:p.s.close,children:(0,i.jsx)(H,{className:p.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(s.IconFdsCloseO,{}),onClick:()=>x.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,i.jsx)("div",{className:(0,r.Z)(p.s.overlay,{[p.s.removed]:!x.isNavigationMounted,[p.s.overlayOpening]:x.isNavigationOpen,[p.s.overlayClosing]:!x.isNavigationOpen}),onClick:O(()=>x.setOpenedBlock(null))}),(0,i.jsx)(ex,{data:_,minioUrl:n})]}):null},ej=e=>(0,i.jsx)(Z,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(eb,{...e})})}}]);