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