(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2648],{55775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let i=n(47043);n(57437),n(2265);let l=i._(n(15602));function s(e,t){var n;let i={loading:e=>{let{error:t,isLoading:n,pastDelay:i}=e;return null}};"function"==typeof e&&(i.loader=e);let s={...i,...t};return(0,l.default)({...s,modules:null==(n=s.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let i=n(18993);function l(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new i.BailoutToCSRError(t);return n}},15602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let i=n(57437),l=n(2265),s=n(81523),o=n(70049);function r(e){return{default:e&&"default"in e?e.default:e}}let a={loader:()=>Promise.resolve(r(()=>null)),loading:null,ssr:!0},c=function(e){let t={...a,...e},n=(0,l.lazy)(()=>t.loader().then(r)),c=t.loading;function d(e){let r=c?(0,i.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,a=t.ssr?(0,i.jsxs)(i.Fragment,{children:["undefined"==typeof window?(0,i.jsx)(o.PreloadCss,{moduleIds:t.modules}):null,(0,i.jsx)(n,{...e})]}):(0,i.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,i.jsx)(n,{...e})});return(0,i.jsx)(l.Suspense,{fallback:r,children:a})}return d.displayName="LoadableComponent",d}},70049:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return s}});let i=n(57437),l=n(20544);function s(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,l.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,i.jsx)(i.Fragment,{children:s.map(e=>(0,i.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},38068:function(){},76583:function(){},27565:function(){},86034:function(){},30631:function(e,t,n){"use strict";function i(){return typeof window>"u"}function l(e){i()||(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(i()){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 l},zK:function(){return s}})},82778:function(e,t,n){"use strict";n.d(t,{L:function(){return a},g:function(){return r}});var i=n(2265),l=n(30631);let s=null,o=e=>{s=e},r=()=>s,a=e=>{let{env:t}=e,n=(0,i.useRef)(!1);return n.current||(o(t),n.current=!0),(0,i.useEffect)(()=>{"production"===t.NODE_ENV&&(0,l.zK)()},[t.NODE_ENV]),null}},55487: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})}}},4966:function(e,t,n){"use strict";let i;n.d(t,{PageLayout:function(){return tA}});var l=n(57437),s=n(55775),o=n.n(s),r=n(35563),a=n(54365),c=n(77337),d=n(52074),u=n(75461),p=n(49750),m=n(80684),h=n(2265),f=n(54887);let g=300,v=({opened:e})=>{let[t,n]=(0,h.useState)(!1),i=(0,h.useRef)(null),l=(0,h.useRef)(!1);return(0,h.useEffect)(()=>(e&&!l.current?(l.current=!0,n(!0)):!e&&l.current&&(i.current=setTimeout(()=>{l.current=!1,n(!1)},g)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},w=(0,d.g)("click-outside","sc"),x=Object.freeze({overlay:`${w}__overlay`,open:`${w}--open`,close:`${w}--close`}),_=({onClose:e,onToucheMove:t,isOpen:n,delay:i=g})=>{let s=(0,h.useRef)(null),o=(0,h.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},i))},[i,e]),r=(0,h.useCallback)(e=>{"Escape"===e.key&&o()},[o]);return(0,h.useEffect)(()=>(n&&window.addEventListener("keydown",r),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",r)}),[n,r]),(0,l.jsx)("div",{className:(0,a.Z)(x.overlay,{[x.open]:n,[x.close]:!n}),onTouchStart:t,onClick:o})},b=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},j=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},y=(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`)},N=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")},C=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},$=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},k=()=>document.querySelectorAll("[data-portal]").length>1,O=e=>{let t=(0,h.useRef)(null),n=(0,h.useRef)(!1);return(0,h.useEffect)(()=>{if(n.current===e)return;n.current=e;let i=t.current,l=document.body,s=document.documentElement,o=window.innerWidth-s.clientWidth,r=o>0;if(e&&r)j(l),y(l,s,o),b(i,!0);else if(e)N(l),b(i,!0);else{let e=!k();e&&C(l),e&&$(),b(i,!1)}return()=>{let e=!k();e&&C(l),e&&$()}},[e]),t},T=(0,d.g)("drawer-footer","sc"),S=Object.freeze({footer:`${T}__footer`,hasScroll:`${T}__footer--has-scroll`}),A=({footer:e,hasScroll:t,className:n})=>(0,l.jsx)("div",{className:(0,a.Z)(S.footer,{[S.hasScroll]:t},n),children:"function"==typeof e?e():e}),I=(0,d.g)("drawer-content","sc"),R=Object.freeze({container:`${I}__container`,open:`${I}--open`,close:`${I}--close`,header:`${I}__header`,rowHeader:`${I}__header--row`,title:`${I}__title`,center:`${I}__title--center`,left:`${I}__title--left`,right:`${I}__title--right`,controlContainer:`${I}__control-container`,content:`${I}__content`,footer:`${I}__footer`}),L=({onClose:e,onContentClick:t,children:n,title:i,rowTitle:s,titleAlign:o,isCloseable:r,footer:c,closeButton:d,isOpen:u,contentClassName:p,footerClassName:f,contentStyle:g,width:v})=>{let w=(0,h.useRef)(null),x=(0,h.useRef)(null),[_,b]=(0,h.useState)(!1);(0,h.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=g||v?{width:v,...g||{}}:void 0;return(0,l.jsxs)("div",{ref:w,style:j,className:(0,a.Z)(R.container,{[R.open]:u,[R.close]:!u},p),children:[i||r?(0,l.jsxs)("div",{className:(0,a.Z)(R.header,{[R.rowHeader]:s}),children:[r?d?"function"==typeof d?d():d:(0,l.jsx)("button",{type:"button",className:R.controlContainer,onClick:e,children:(0,l.jsx)(m.IconFdsCloseO,{size:24})}):null,i?(0,l.jsx)("h3",{className:(0,a.Z)(R.title,{[R[o]]:!0}),children:i}):null]}):null,(0,l.jsx)("div",{ref:x,className:R.content,onClick:t,children:n}),c&&(0,l.jsx)(A,{className:(0,a.Z)(R.footer,f),footer:c,hasScroll:_})]})},P=(0,d.g)("drawer-layout","sc"),z=Object.freeze({window:`${P}__window`}),E=({onClose:e,isOpen:t,children:n,withDisabledScroll:i,className:s,...o})=>{let r=(0,h.useCallback)(e=>e.stopPropagation(),[]);return O(t&&i),(0,l.jsxs)("div",{"data-portal":!0,className:(0,a.Z)(z.window,s),children:[(0,l.jsx)(_,{onClose:e,isOpen:t,delay:0}),(0,l.jsx)(L,{onContentClick:r,onClose:e,isOpen:t,...o,children:n})]})},M=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:i=!0,withDisabledScroll:s=!0,...o})=>{let{mounted:r}=v({opened:e});return r?(0,l.jsx)(E,{titleAlign:n,isCloseable:i,isOpen:e,withDisabledScroll:s,...o,children:t}):null};M.displayName="Drawer";let U=(0,d.g)("mobile-modal-footer","sc"),B=Object.freeze({footer:`${U}__footer`,footerWithoutShadow:`${U}__footer--without-shadow`}),W=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,l.jsx)("div",{className:(0,a.Z)(B.footer,t&&B.footerWithoutShadow,n),children:"function"==typeof e?e():e}),D=(0,d.g)("mobile-popup","sc"),F=Object.freeze({mobilePopup:`${D}`,mobilePopupOpen:`${D}--open`,content:`${D}__content`,contentFull:`${D}__content--full`,contentTransition:`${D}__content--transition`,contentTransitionOpen:`${D}__content--transition-open`,contentLine:`${D}__content-line`,contentContainer:`${D}__content-container`,smallContentContainer:`${D}__content-container--small`,min:`${D}__content-container--min`,title:`${D}__title`,closeContainer:`${D}__close-container`,closeButton:`${D}__close-button`}),Z=({children:e,footer:t,isOpen:n,isSmallPopup:i,onClose:s,hasCloseButton:o=!0,full:r,touchDistance:c=100,withDisabledScroll:d=!0,contentClassName:u,className:p,title:f,closeButton:g,footerClassName:v})=>{let[w,x]=(0,h.useState)(!1),[b,j]=(0,h.useState)(!1),[y,N]=(0,h.useState)(!0),[C,$]=(0,h.useState)("120%"),k=(0,h.useRef)(null),T=(0,h.useRef)(0),S=(0,h.useRef)(!1),A=e=>{var t,n,i;let l=null==(t=k.current)?void 0:t.offsetTop,s=null==(n=k.current)?void 0:n.offsetHeight;if(S.current=!0,N(!1),l&&s){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-l,n=0;t>=0&&t<=s+30&&(n=t),t>s+30&&(n=s+30),$(`${n}px`),T.current=n}},I=()=>{S.current&&(T.current>c&&s?null==s||s():$("0"),N(!0),S.current=!1),window.removeEventListener("touchmove",A),window.removeEventListener("touchend",I)};return(0,h.useEffect)(()=>{n&&setTimeout(()=>{x(!0),j(!0),$("0")},100),!n&&b&&($("120%"),x(!1),j(!1))},[b,n]),O(n&&d),(0,l.jsxs)("div",{"data-portal":!0,className:(0,a.Z)(F.mobilePopup,b&&F.mobilePopupOpen,p),children:[(0,l.jsx)(_,{onClose:()=>{n&&(null==s||s())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",A),window.addEventListener("touchend",I))},isOpen:n,delay:0}),(0,l.jsxs)("div",{className:(0,a.Z)(F.content,r&&F.contentFull,y&&F.contentTransition,y&&w&&F.contentTransitionOpen),ref:k,style:{transform:`translateY(${C})`},children:[(0,l.jsx)("div",{className:F.contentLine}),(0,l.jsxs)("div",{className:(0,a.Z)(F.contentContainer,i&&F.smallContentContainer,{[F.min]:!f&&!o},u),children:[!!f&&(0,l.jsx)("div",{className:F.title,children:f}),o?(0,l.jsx)("div",{className:F.closeContainer,children:o?g?"function"==typeof g?g():g:(0,l.jsx)("button",{onClick:s,className:F.closeButton,children:(0,l.jsx)(m.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,l.jsx)(W,{footerClassName:v,isSmallPopup:i,footer:t})]})]})},G=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...i})=>{let{mounted:s}=v({opened:n});return s?(0,l.jsx)(Z,{isSmallPopup:t,isOpen:n,...i,children:e}):null};G.displayName="UiMobilePopup";let V=({children:e,id:t="portal-root"})=>{let[n,i]=(0,h.useState)(null);return(0,h.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,f.createPortal)(e,n):null},H=(0,d.g)("footer-contacts-block","sc"),q=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`}),J=(0,d.g)("footer","sc"),Q=Object.freeze({wrapper:`${J}__wrapper`,section:`${J}__section`,container:`${J}__container`,top:`${J}__top`,main:`${J}__main`,links:`${J}__links`,disclaimer:`${J}__disclaimer`,bottom:`${J}__bottom`,bottomLinks:`${J}__bottom-links`,bottomDisclaimer:`${J}__bottom-disclaimer`,compact:`${J}__wrapper--compact`,white:`${J}__wrapper--white`}),Y="finkit-widgets-sc-footer",K=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"8 (800) 700-64-94",url:"tel:88007006494"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"},{title:"+7 (495) 787-64-94",url:"tel:+74957876494"}],X=[...K,{title:"Онлайн чат",url:void 0}],ee=[{type:"vk",className:q.vkIcon,iconName:"vk"},{type:"telegramChannel",className:q.tgIcon,iconName:"telegram"},{type:"dzen",className:q.dzenIcon,iconName:"dzen"},{type:"max",className:q.maxIcon,iconName:"max"}],et=(0,l.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО \xabМБ Маркетплейс\xbb, организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ \xabО совершении финансовых сделок с использованием финансовой платформы\xbb. Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой \xabОткрытие онлайн на Финуслугах\xbb. Иная информация на сайте www.finuslugi.ru считается размещенной ООО \xabМБ Маркетплейс\xbb, если иное явно не следует из существа размещаемой информации. ООО \xabМБ Маркетплейс\xbb входит в Группу \xabМосковская Биржа\xbb.",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),en=({onClick:e,eventActionText:t,eventLabel:n,...i})=>(0,l.jsx)(u.zx,{onClick:i=>{null==e||e(i),(0,p.h)({eventCategory:Y,eventActionType:p.D.button,eventActionText:t||"",eventLabel:n})},...i}),ei=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:i,chat:s,...o})=>(0,l.jsx)(u.rU,{onClick:l=>{var o,r,a;null==e||e(l),s&&(null==l||l.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,p.h)({eventCategory:Y,eventActionType:t||p.D.link,eventActionText:n||"",eventLabel:i})},...o}),el=({minioUrl:e,blogs:t})=>(0,l.jsxs)("div",{className:q.contactsWrapper,children:[(0,l.jsx)(r.xv,{className:q.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,l.jsx)("div",{className:q.phones,children:X.map(({title:e,url:t})=>(0,l.jsx)(ei,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,l.jsx)(r.xv,{className:q.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,l.jsx)("div",{className:q.contactsButtons,children:ee.map(({type:n,className:i,iconName:s})=>(0,l.jsx)(en,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:i,iconRight:(0,l.jsx)("img",{width:24,height:24,src:(0,c.xn)(e,`/widgets/footer/${s}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,l.jsx)(r.xv,{className:q.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,l.jsx)("div",{className:q.contactsButtons,children:(0,l.jsxs)(ei,{href:null==t?void 0:t.investTg,target:"_blank",className:q.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,l.jsx)(en,{className:q.tgIcon,iconRight:(0,l.jsx)("img",{width:24,height:24,src:(0,c.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),es=(0,d.g)("footer-disclaimer","sc"),eo=Object.freeze({disclaimer:`${es}`}),er=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,p.h)({eventCategory:Y,eventActionType:p.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,l.jsx)("div",{className:(0,a.Z)(e.className,eo.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,l.jsx)("div",{className:(0,a.Z)(e.className,eo.disclaimer),onClick:t,children:e.children})},ea=()=>{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},ec=(e="")=>{let[t,n]=(0,h.useState)(e);return(0,h.useEffect)(()=>{let t=ea();if(!t||0===t.size)return;let[i,l=""]=e.split("?"),s=new URLSearchParams(l);t.forEach((e,t)=>{s.has(t)||s.set(t,e)});let o=s.toString();n(o?`${i}?${o}`:i)},[e]),t},ed=(0,d.g)("footer-modal-body","sc"),eu=Object.freeze({wrapper:`${ed}__wrapper`,title:`${ed}__title`,item:`${ed}__item`,label:`${ed}__label`,button:`${ed}__button`,description:`${ed}__description`}),ep=({directions:e})=>(0,l.jsxs)("div",{className:eu.wrapper,children:[(0,l.jsx)("div",{className:eu.title,children:"Направления"}),e.map(e=>(0,l.jsxs)(ei,{className:eu.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,l.jsxs)("div",{className:eu.label,children:[(0,l.jsx)("span",{children:e.name}),(0,l.jsx)(en,{className:eu.button,iconRight:(0,l.jsx)(m.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,l.jsx)("p",{className:eu.description,children:e.description})]},e.url))]}),em=(0,d.g)("footer-popup","sc"),eh=Object.freeze({wrapper:`${em}__wrapper`,button:`${em}__button`,icon:`${em}__icon`,buttonWrapper:`${em}__button-wrapper`}),ef=({directions:e})=>{let t=(0,u._m)("l"),[n,i]=(0,h.useState)(!1),s=()=>{i(!1)};return(0,l.jsxs)("div",{className:eh.wrapper,children:[(0,l.jsx)("div",{className:eh.buttonWrapper,children:(0,l.jsx)(en,{className:eh.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,l.jsx)("div",{className:eh.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,l.jsx)("div",{},e))})})}),(0,l.jsxs)(V,{children:[!t&&(0,l.jsx)(G,{isOpen:n,onClose:s,full:!0,children:(0,l.jsx)(ep,{directions:e})}),t&&(0,l.jsx)(M,{isOpen:n,onClose:s,width:"804px",children:(0,l.jsx)(ep,{directions:e})})]})]})},eg=(0,d.g)("footer-left-column","sc"),ev=Object.freeze({leftColumn:`${eg}__left-column`,logoWrapper:`${eg}__logo-wrapper`,banner:`${eg}__banner`,mobAppLink:`${eg}__mob-app-link`,br:`${eg}__br`}),ew=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:i})=>{let s=ec(i);return(0,l.jsxs)("div",{className:ev.leftColumn,children:[(0,l.jsx)(ei,{className:ev.logoWrapper,href:e,eventActionType:p.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,l.jsx)("img",{src:(0,c.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,l.jsx)(ef,{directions:n??[]}),(0,l.jsx)(ei,{href:s,target:"_blank",eventActionType:p.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:s,className:ev.mobAppLink,children:(0,l.jsxs)(r.Zb,{className:ev.banner,children:[(0,l.jsxs)(r.xv,{weight:"medium",children:["Управляйте финансами",(0,l.jsx)("br",{}),"через приложение",(0,l.jsx)("br",{className:ev.br})," Финуслуг"]}),(0,l.jsx)(en,{iconRight:(0,l.jsx)(m.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{srcSet:(0,c.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,l.jsx)("img",{src:(0,c.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},ex=(0,d.g)("footer-logo","sc"),e_=Object.freeze({wrapper:`${ex}__wrapper`,link:`${ex}__link`,fromMoex:`${ex}__from-moex`,logo:`${ex}__logo`,white:`${ex}__wrapper--white`}),eb=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,l.jsx)("div",{className:(0,a.Z)(e_.wrapper,{[e_.white]:n}),children:(0,l.jsxs)(ei,{className:e_.link,href:e,eventActionType:p.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,l.jsx)("img",{className:e_.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,l.jsx)("img",{className:e_.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var ej=((i=ej||{}).BLACK="black",i.GRAY="gray",i);let ey=(0,d.g)("footer-warning","sc"),eN=Object.freeze({reservedSpace:`${ey}__reserved-space`,wrapper:`${ey}__wrapper`,wrapperGray:`${ey}__wrapper--gray`,fixed:`${ey}__wrapper--fixed`,container:`${ey}__container`,text:`${ey}__text`,invisibleText:`${ey}__text--invisible`}),eC=({text:e,variant:t,fixed:n,isPlaceholder:i})=>(0,l.jsx)("div",{className:(0,a.Z)(eN.wrapper,{[eN.wrapperGray]:"gray"===t,[eN.fixed]:n&&!i}),children:(0,l.jsx)(r.W2,{className:eN.container,children:(0,l.jsx)("div",{className:(0,a.Z)(eN.text,{[eN.invisibleText]:i}),dangerouslySetInnerHTML:{__html:e}})})}),e$=({warning:e})=>{let t="string"==typeof e?{text:e}:e,n={text:t.text,fixed:t.fixed??!0,variant:t.variant??ej.BLACK};return(0,l.jsxs)("div",{className:eN.reservedSpace,children:[(0,l.jsx)(eC,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,l.jsx)(eC,{...n,fixed:!0})]})},ek=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:i,variant:s="default",className:o})=>{var c,d;let u=!i&&null!=e&&e.disclaimer?e.disclaimer:void 0,p=s.includes("compact"),m=s.includes("white"),h=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(p?K:[]),f=e&&"warning"in e?e.warning:void 0;return e?(0,l.jsx)("footer",{className:(0,a.Z)(Q.wrapper,o,{[Q.compact]:p,[Q.white]:m}),children:(0,l.jsxs)("section",{className:Q.section,children:[(0,l.jsxs)(r.W2,{className:Q.container,children:[!p&&(0,l.jsx)(ew,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,l.jsx)("div",{className:Q.wrapper,children:(0,l.jsxs)("div",{className:Q.top,children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:Q.main,children:[!p&&(0,l.jsx)("div",{className:Q.links,children:null==(d=null==e?void 0:e.top)?void 0:d.map(e=>(0,l.jsx)(ei,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,l.jsx)(eb,{showcaseUrl:t,minioUrl:n,isWhite:m}),(0,l.jsx)(er,{className:Q.disclaimer,disclaimer:u,children:i||et})]}),(0,l.jsxs)("div",{className:Q.bottom,children:[(0,l.jsx)("div",{className:Q.bottomLinks,children:null==h?void 0:h.map(e=>(0,l.jsx)(ei,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,l.jsx)(er,{className:Q.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!p&&(0,l.jsx)(el,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),p&&!!f&&(0,l.jsx)(e$,{warning:f})]})}):null};var eO=n(4267),eT=n(55487),eS=n(85241);let eA=(e,t)=>{if(!(typeof document>"u")){if(!e&&!t){eT.a.removeItem(eO.U),eT.a.removeItem(eO.a);return}eT.a.setItem(eO.U,JSON.stringify(e)||"",{"max-age":31536e3}),eT.a.setItem(eO.a,JSON.stringify(t)||"",{"max-age":31536e3})}},eI=e=>{if(typeof document>"u")return null;let t=eT.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},eR=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},eL=()=>{if(typeof window>"u")return[];if(Array.isArray(window.allRegions)&&window.allRegions.length>0)return window.allRegions;let e=eR("all_regions")||[];return window.allRegions=e,e},eP=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]),[])},ez=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)},eE=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},eM=(e,t,n)=>{(0,p.h)({eventCategory:eD,eventActionType:e,eventActionText:t,eventLabel:n})},eU=eL(),eB=eP(eU),eW={regions:eU,towns:eB,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},eD="finkit-widgets-sc-city-select",eF=(0,h.createContext)(eW);function eZ(){return(0,h.useContext)(eF)}let eG=({children:e,initialRegion:t,initialTown:n,showStartGeoPopup:i=!0,lastRegionsUpdateUnixTimestamp:s,dadataUrl:o="https://finuslugi.ru/backend/money/dadata"})=>{let r=Number(eR("lastRegionsUpdateUnixTimestamp")||0),a=Number(s||0)>r,[c,d]=(0,h.useState)(eL()),[{startRegion:u,startTown:m},f]=(0,h.useState)({startRegion:eW.startRegion,startTown:eW.startTown}),g=t??eW.region,v=n??eW.town,[{region:w,town:x},_]=(0,h.useState)({region:g,town:v}),[b,j]=(0,h.useState)(eW.startPopupVisible),[y,N]=(0,h.useState)(eW.popupVisible),C=(0,h.useRef)(""),$=(0,h.useMemo)(()=>eP(c),[c.length]),k=(0,h.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)||""),j(!0),f({startRegion:e,startTown:t})},[j,f]),O=(0,h.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||k(e,t)},[k]),T=(0,h.useCallback)(()=>{if(C.current&&!w&&!x){let e=$.find(e=>e.name===C.current)??null;return O(c.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}O(w,x)},[w,x,$,c,O]),S=(0,h.useCallback)(e=>{N(e)},[N]),A=(0,h.useCallback)(e=>{e?eM(p.D.icon,"location"):eM(p.D.button,(null==x?void 0:x.name)||"Вся Россия"),!i||window.sessionStorage.getItem("start_popup_opened")?S(!0):T()},[i,x,S,T]),I=(0,h.useCallback)((e,t)=>{e||t?(window.localStorage.setItem("all_russia_selected","0"),window.localStorage.setItem(eO.U,JSON.stringify(e)||""),window.localStorage.setItem(eO.a,JSON.stringify(t)||""),eA(e||null,t||null)):(window.localStorage.setItem("all_russia_selected","1"),window.localStorage.setItem(eO.U,""),window.localStorage.setItem(eO.a,""),eA(null,null)),_({region:e||null,town:t||null}),j(!1),S(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[S]),R=()=>{_({region:eI(eO.U)??eR(eO.U),town:eI(eO.a)??eR(eO.a)});let e=async({coords:{latitude:e,longitude:t}})=>{let n=`${o}?lat=${e}&lon=${t}`,i=await eE(n);null!=i&&i.location&&(C.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&i)try{navigator.geolocation.getCurrentPosition(e,()=>null)}catch{}};return(0,h.useEffect)(()=>{if((c.length<1||a)&&ez().then(e=>d(e)),window.innerWidth<1024){let e=()=>{R(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{R()},0)},[]),(0,l.jsx)(eF.Provider,{value:{regions:c,towns:$,region:w,town:x,startPopupVisible:b,setStartPopupVisible:j,popupVisible:y,handleToggleModal:S,selectCity:I,handleButtonClick:A,startRegion:u,startTown:m},children:e})},eV=()=>{let e=(0,h.useRef)(null),t=(0,h.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,h.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,h.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},eH=(0,d.g)("city-select-modal-body","sc"),eq=Object.freeze({wrapper:`${eH}__wrapper`,subtitle:`${eH}__subtitle`,hintWrapper:`${eH}__hint-wrapper`,hintText:`${eH}__hint-text`,input:`${eH}__input`,chips:`${eH}__chips`,townsListWrapper:`${eH}__towns-list-wrapper`,townsList:`${eH}__towns-list`,townsGroup:`${eH}__towns-group`,townsGroupLabel:`${eH}__towns-group-label`,townsGroupList:`${eH}__towns-group-list`,townsName:`${eH}__towns-name`,regionName:`${eH}__region-name`}),eJ=({groupedTowns:e,chips:t,query:n,setQuery:i,isDrawer:s})=>{var o;let r=eZ(),a=(0,h.useRef)(null),[c,d]=(0,h.useState)("10000px");(0,h.useEffect)(()=>{if(!s||!a.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,i)=>{let l=n.map(e=>[...e]),s=l.map(e),o=s.reduce((e,t,n)=>t<s[e]?n:e,0);0===o&&l[0].push(l[1].shift()),2===o&&l[2].unshift(l[1].pop()),1===o&&s[0]>s[2]&&l[1].unshift(l[0].pop()),1===o&&s[0]<s[2]&&l[1].push(l[2].shift());let r=Math.max(...l.map(e));return r>=i?i:t(l,r)};new ResizeObserver(()=>{var e;if(!(null!=(e=a.current)&&e.children))return;let n=Array.from(a.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&&d(`${i}px`)}).observe(a.current)},[]);let f=e=>{if(eM(p.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return r.selectCity();let t=r.regions.find(t=>t.id===Number(e.parentId))||null;r.selectCity(t,e)};return(0,l.jsxs)("div",{className:eq.wrapper,children:[(0,l.jsxs)("div",{className:eq.subtitle,children:["Покажем предложения рядом с вами",(0,l.jsxs)("div",{className:eq.hintWrapper,children:[(0,l.jsx)(m.IconFdsQuestionCircleO,{size:24}),(0,l.jsx)("div",{className:eq.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,l.jsx)(u.MA,{className:eq.input,value:n,onChange:i,size:"s",placeholder:"Введите название города",icon:n?(0,l.jsx)(m.IconFdsCloseCircleO,{size:24,onClick:()=>i("")}):(0,l.jsx)(m.IconFdsSearchO,{size:24})}),(0,l.jsx)(u.cL,{className:eq.chips,chips:t,value:(null==(o=r.town)?void 0:o.id)||0,onChipClick:e=>{f(r.towns.find(t=>t.id===e))}}),(0,l.jsx)("div",{className:eq.townsListWrapper,children:(0,l.jsx)("div",{ref:a,className:eq.townsList,style:{maxHeight:c},children:e.map(e=>(0,l.jsxs)("div",{className:eq.townsGroup,children:[(0,l.jsx)("div",{className:eq.townsGroupLabel,children:e.letter}),(0,l.jsx)("div",{className:eq.townsGroupList,children:e.towns.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>f(e),children:[(0,l.jsx)("div",{className:eq.townsName,children:e.name}),(0,l.jsx)("div",{className:eq.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},eQ=[1095,1096,134,720,189,180],eY=()=>{var e;let t=eZ(),n=(0,u._m)("l"),[i,s]=(0,h.useState)(""),o=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,r=(0,h.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(i.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},[]),[i,t.towns.length]),a=(0,h.useMemo)(()=>[{id:0,label:"Вся Россия"},...eQ.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]),c=()=>{eM(p.D.button,"close"),t.handleToggleModal(!1)};return(0,l.jsxs)(V,{children:[!n&&(0,l.jsx)(G,{title:o,isOpen:t.popupVisible,onClose:c,full:!0,children:(0,l.jsx)(eJ,{groupedTowns:r,chips:a,query:i,setQuery:s})}),n&&(0,l.jsx)(M,{title:o,isOpen:t.popupVisible,onClose:c,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,l.jsx)(eJ,{groupedTowns:r,chips:a,query:i,setQuery:s,isDrawer:!0})})]})},eK={"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"},eX=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(eK,e)?eK[e]:eK["finuslugi.ru"]},e0=(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)},e1=()=>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)}})}),e2=()=>{let[e,t]=(0,h.useState)(!1),[n,i]=(0,h.useState)(!1),l=(0,h.useRef)(!1),s=e=>{l.current=e,i(e)};return(0,h.useEffect)(()=>{if(typeof window>"u")return;let e=eX(),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(l.current){r(Error("chat is already opened"));return}i?(i.openWidget(),t(!1),o()):(s(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let l=document.querySelector(".webchat");l&&e1().observe(l,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),s(!1),t(!1),o()},e0(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}},e4=(0,h.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 e5(){return(0,h.useContext)(e4)}let e3=e=>{let[t,n]=(0,h.useState)(!1),[i,s]=(0,h.useState)(!1),[o,r]=(0,h.useState)(!!e.isMainBannerPage),{isChatModalOpen:a,setIsChatModalOpen:c,isChatLoading:d}=e2(),[u,p]=(0,h.useState)(null),[m,f]=(0,h.useState)(null),[g,v]=(0,h.useState)(!1),[w,x]=(0,h.useState)(!1),[_,b]=(0,h.useState)(!1),j=(0,h.useRef)(null),y=O(g),N=(0,h.useRef)(null),C=(0,h.useRef)(null),$=(0,h.useRef)(null),k=(0,h.useRef)(null),T=(0,h.useCallback)(()=>{y.current&&y.current.scrollTo({top:0})},[y]),S=(0,h.useCallback)(e=>{f(e),T()},[T]),A=(0,h.useCallback)(e=>{N.current&&clearTimeout(N.current),e&&x(!0),e||(N.current=setTimeout(()=>{x(!1),S(null)},300))},[S]),I=(0,h.useCallback)((e,t,n)=>{if(t&&S(t),!n&&e===u||!e){A(!g),v(!g);return}p(e),A(!0),v(!0)},[u,S,g,A]),R=(0,h.useCallback)(()=>{C.current&&clearTimeout(C.current),b(!0),C.current=setTimeout(()=>{b(!1)},650)},[]);return(0,h.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,eS.s)(s,r,e.isMainBannerPage);return(0,eS.i)(),t},[]),(0,l.jsx)("header",{children:(0,l.jsx)(e4.Provider,{value:{isAuth:t,isHeaderHidden:i,isHeaderTransparent:o,openedBlock:u,setOpenedBlock:I,openedSection:m,setOpenedSection:S,isNavigationOpen:g,isNavigationMounted:w,navMenuItemsRef:j,navigationRef:y,ignoreClicks:_,setIgnoreClicks:R,isChatModalOpen:a,setIsChatModalOpen:c,isChatLoading:d,fixedContainerRef:$,headerRef:k},children:e.children})})},e7=({label:e,onClick:t,eventActionText:n,eventLabel:i,...s})=>(0,l.jsx)(u.zx,{label:e,onClick:e=>{null==t||t(e),(0,p.h)({eventCategory:eO.H,eventActionType:p.D.button,eventActionText:n||"",eventLabel:i||""})},...s}),e6=(0,d.g)("header-popup","sc"),e8=Object.freeze({popup:`${e6}__popup`,popupHeader:`${e6}__popup-header`,popupClose:`${e6}__popup-close`,body:`${e6}__body`}),e9=({isOpen:e,onClose:t,children:n,title:i})=>{let s=(0,u._m)("l");return(0,l.jsxs)(V,{children:[!s&&(0,l.jsx)(G,{title:i,isOpen:e,onClose:t,children:n}),s&&e&&(0,l.jsxs)("div",{className:e8.popup,children:[(0,l.jsxs)("div",{className:e8.popupHeader,children:[i,(0,l.jsx)(e7,{className:e8.popupClose,iconLeft:(0,l.jsx)(m.IconFdsCloseO,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,l.jsx)("div",{className:e8.body,children:n})]})]})},te=(0,d.g)("start-choice-popup","sc"),tt=Object.freeze({top:`${te}__top`,progress:`${te}__progress`,innerCircle:`${te}__inner-circle`,title:`${te}__title`,subtitle:`${te}__subtitle`,actions:`${te}__actions`}),tn=()=>{var e,t;let n=eZ(),[i,s]=(0,h.useState)(10),[o,r]=(0,h.useState)(0),a=(0,h.useRef)(void 0),c=()=>{eM(p.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,h.useEffect)(()=>{n.startPopupVisible?(()=>{let e=Number((" "+i).slice(1)),t=1e3*e/100,n=0,l=0;a.current=setInterval(()=>{n++,l+=t,r(3.6*n);let o=e-Math.floor(l/1e3);o<i&&s(o),100===n&&(clearInterval(a.current),c())},t)})():(clearInterval(a.current),s(10),r(0))},[n.startPopupVisible]),(0,l.jsxs)(e9,{isOpen:n.startPopupVisible,onClose:c,title:(0,l.jsx)("button",{type:"button",className:tt.progress,style:{background:`conic-gradient(#ff0508 ${o}deg, #e3e7ec 0deg)`},onClick:c,children:(0,l.jsx)("div",{className:tt.innerCircle,children:i})}),children:[(0,l.jsxs)("div",{className:tt.top,children:[(0,l.jsxs)("div",{className:tt.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,l.jsx)("div",{className:tt.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,l.jsxs)("div",{className:tt.actions,children:[(0,l.jsx)(e7,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{eM(p.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,l.jsx)(e7,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{eM(p.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},ti=(0,d.g)("city-select","sc"),tl=Object.freeze({button:`${ti}__button`,minimal:`${ti}__minimal`,full:`${ti}__full`}),ts=({initialTown:e})=>{var t;let n=eZ(),i=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:s,isChatModalOpen:o}=e5(),{startPopupVisible:r,setStartPopupVisible:c,popupVisible:d}=n,p=(0,h.useRef)();(0,h.useEffect)(()=>{d&&(p.current="popup")},[d]),(0,h.useEffect)(()=>{o&&(p.current="chat")},[o]),(0,h.useEffect)(()=>{r&&(p.current="startPopup")},[r]),(0,h.useEffect)(()=>{p.current&&("chat"===p.current&&r?c(!1):["startPopup","popup"].includes(p.current)&&o&&s(!1))},[d,o,r,c,s]);let f={appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,l.jsx)(m.IconFdsLocationO,{size:24})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.zx,{...f,className:(0,a.Z)(tl.button,tl.full),label:i}),(0,l.jsx)(u.zx,{...f,className:(0,a.Z)(tl.button,tl.minimal),shape:"icon"}),(0,l.jsx)(eY,{}),(0,l.jsx)(tn,{})]})},to=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:i,...s})=>(0,l.jsx)(u.rU,{onClick:l=>{null==e||e(l),(0,p.h)({eventCategory:eO.H,eventActionType:t||p.D.link,eventActionText:n||"",eventLabel:i||""})},...s}),tr=(0,d.g)("header-mobile-app-banner","sc"),ta=Object.freeze({wrapper:`${tr}__wrapper`,container:`${tr}__container`,closeButton:`${tr}__close-button`,innerWrapper:`${tr}__inner-wrapper`,imageWrapper:`${tr}__image-wrapper`,image:`${tr}__image`,title:`${tr}__title`,description:`${tr}__description`,callToAction:`${tr}__call-to-action`,scanQr:`${tr}__scan-qr`}),tc=Object.freeze({mobile:56,desktop:68}),td="headerBannerShownAt",tu=()=>{let e=localStorage.getItem(td);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},tp=()=>{localStorage.setItem(td,new Date().toISOString())},tm=()=>{let e=tu();return!e||Math.floor((e.getTime()-new Date().getTime())/864e5)>5},th=({minioUrl:e,className:t,mobileAppUrl:n})=>{let{fixedContainerRef:i,headerRef:s}=e5(),[o,d]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),[v,w]=(0,h.useState)(!1),x=(0,h.useCallback)((e="desktop")=>{let t=i.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${tc[e]+eO.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${tc.desktop+eO.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${tc.mobile+eO.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${tc.mobile+eO.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${tc.desktop+eO.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${tc[e]+108}px`))},[]),_=(0,h.useCallback)(()=>{let e=i.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,h.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{f&&d(!1),w(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[f]),(0,h.useEffect)(()=>{tm()&&d(!0)},[]),(0,h.useEffect)(()=>{let e=window.innerWidth<768;o&&(x(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?d(!0):w(!0));let t=()=>{if(!o)return null;x(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{_(),window.removeEventListener("resize",t)}},[o,x,_]),o?(0,l.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":v,className:(0,a.Z)(ta.wrapper,t),children:(0,l.jsx)(r.W2,{children:(0,l.jsxs)("div",{className:ta.container,children:[(0,l.jsxs)("div",{className:ta.innerWrapper,children:[(0,l.jsxs)("picture",{className:ta.imageWrapper,children:[(0,l.jsx)("source",{srcSet:(0,c.xn)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,l.jsx)("img",{className:ta.image,src:(0,c.xn)(e,"/logo/finuslugi/default-regular.svg")})]}),(0,l.jsxs)("div",{className:ta.scanQr,children:[(0,l.jsx)("div",{className:ta.title,children:"Скачайте приложение Финуслуги"}),(0,l.jsx)("div",{className:ta.description,children:"Сканируйте QR-код"})]}),(0,l.jsxs)("div",{className:ta.callToAction,children:[(0,l.jsxs)("div",{children:["Приложение",(0,l.jsx)("br",{}),"Финуслуги"]}),(0,l.jsx)(u.zx,{onClick:()=>{(0,eS.h)(p.D.button,"skachat_mob_prilozheniye_fu"),window.open(n,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,l.jsx)("div",{"aria-label":"Закрыть",role:"button",className:ta.closeButton,onClick:()=>{tp(),_(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?d(!1):g(!0)},children:(0,l.jsx)(m.IconFdsCloseO,{size:"100%"})})]})})}):null},tf=(0,d.g)("header-chat-modal-body","sc"),tg=Object.freeze({wrapper:`${tf}__wrapper`,cardButton:`${tf}__card-button`,card:`${tf}__card`,cardTitle:`${tf}__card-title`,cardSubtitle:`${tf}__card-subtitle`,button:`${tf}__button`}),tv=()=>{let e=e5();return(0,l.jsxs)("div",{className:tg.wrapper,children:[(0,l.jsx)(e7,{className:tg.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,l.jsxs)(r.Zb,{className:tg.card,variant:"secondary",children:[(0,l.jsxs)("div",{className:tg.cardTitle,children:[(0,l.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,l.jsxs)("p",{className:tg.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,l.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},tw=({data:e,isMobile:t})=>{let n=e5();return(0,l.jsx)("div",{className:eS.a.contentWrapper,children:e.map(e=>(0,l.jsx)(h.Fragment,{children:e.sections.map(e=>(0,l.jsxs)("div",{className:(0,a.Z)(eS.a.content,{[eS.a.hidden]:n.openedSection!==e.id,[eS.a.contentOpen]:!!n.openedSection}),children:[(0,l.jsx)("div",{className:eS.a.contentHeader,children:(0,l.jsx)("label",{children:e.title})}),e.content.map((n,i)=>{var s,o;return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:(0,l.jsx)("a",{className:(0,a.Z)(eS.a.contentTitle,{[eS.a.removed]:!n.title,[eS.a.contentTitleUrl]:!!n.url,[eS.a.contentTitleLink]:!!e.isSeeAllLinkAvailable,[eS.a.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,l.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,l.jsx)("div",{className:eS.a.arrowIcon,children:(0,l.jsx)(m.IconFdsArrowUpRightSmallO,{})}),n.title]})})}),!(null!=(s=n.links)&&s.length)&&(0,l.jsx)(eS.N,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(o=n.links)&&o.length)&&(0,l.jsx)("div",{className:(0,a.Z)(eS.a.links,{[eS.a.linksColumns]:!!n.columns,[eS.a.linksTitleless]:!n.title}),children:n.links.map(e=>(0,l.jsxs)("a",{href:e.url,className:(0,a.Z)({[eS.a.new]:!!e.new}),onClick:()=>(0,eS.h)(p.D.link,e.title,`${e.title}_${e.url}`),children:[(0,l.jsx)("div",{className:eS.a.arrowIcon,children:(0,l.jsx)(m.IconFdsArrowUpRightSmallO,{})}),(0,l.jsx)("span",{children:e.title})]},e.url))})]},`${n.url}_${i}`)})]},e.id))},e.id))})},tx=(0,d.g)("navigation-section-icon","sc"),t_=Object.freeze({icon:`${tx}`}),tb=({name:e,background:t})=>{let n=(0,h.useMemo)(()=>e&&m[e]||null,[e]);return e&&n?(0,l.jsx)("div",{className:t_.icon,style:{background:t},children:(0,l.jsx)(n,{})}):null},tj=(0,d.g)("navigation","sc"),ty=Object.freeze({navigation:`${tj}`,navigationOpening:`${tj}--opening`,navigationClosing:`${tj}--closing`,wrapper:`${tj}__wrapper`,container:`${tj}__container`,containerOpen:`${tj}__container--open`,sections:`${tj}__sections`,sectionsOpen:`${tj}__sections--open`,citySelectButton:`${tj}__city-select-button`,sectionsTitle:`${tj}__sections-title`,sectionsWrapper:`${tj}__sections-wrapper`,section:`${tj}__section`,sectionArrow:`${tj}__section-arrow`,sectionExtra:`${tj}__section--extra`,sectionActive:`${tj}__section--active`,sectionTitle:`${tj}__section-title`,chatWrapper:`${tj}__chat-wrapper`,chatHeader:`${tj}__chat-header`,backButton:`${tj}__back-button`,useful:`${tj}__useful`,usefulOpen:`${tj}__useful--open`,usefulTitle:`${tj}__useful-title`,usefulGrid:`${tj}__useful-grid`,removed:`${tj}__removed`}),tN=({data:e})=>{var t;let n=e5(),i=eZ(),s=(0,u.aF)("m"),[o,c]=(0,h.useState)(!0);(0,h.useEffect)(()=>{c(s)},[s]);let d=(0,h.useRef)(null),f=(0,h.useCallback)(()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),g=(0,h.useRef)(!1),v=(0,h.useRef)(null),w=(0,h.useCallback)(()=>{o&&(g.current=!0,v.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),f()},window.history.pushState(null,"",window.location.href))},[f,o]),x=(0,h.useCallback)(()=>{g.current=!1,window.onpopstate=v.current,window.history.go(-1)},[]),_=(0,h.useRef)(null),b=(0,h.useCallback)(e=>{if(o||!n.navMenuItemsRef.current||!n.navigationRef.current)return;let t=e.target,i=!n.navMenuItemsRef.current.contains(t)&&!n.navigationRef.current.contains(t);if(i&&!_.current){n.setIgnoreClicks(),_.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!i&&_.current&&(clearTimeout(_.current),_.current=null)},[o,n]),j=(0,h.useRef)(null),y=(0,h.useCallback)(e=>{typeof window>"u"||(e?(j.current=b,window.addEventListener("mousemove",j.current)):j.current&&window.removeEventListener("mousemove",j.current))},[b]);(0,h.useEffect)(()=>{y(n.isNavigationOpen),n.isNavigationOpen&&!g.current&&w(),!n.isNavigationOpen&&g.current&&x()},[n.isNavigationOpen]);let N=(e,t)=>()=>{(0,eS.h)(p.D.button,t),n.setOpenedSection(e)},{start:C,clear:$}=eV(),k=(e,t)=>()=>{o||C(N(e,t),150)},O=()=>{o||$()};return(0,l.jsx)("div",{ref:n.navigationRef,className:(0,a.Z)(ty.navigation,{[ty.removed]:!n.isNavigationMounted,[ty.navigationOpening]:n.isNavigationOpen,[ty.navigationClosing]:!n.isNavigationOpen}),children:(0,l.jsx)("div",{className:ty.wrapper,children:(0,l.jsxs)(r.W2,{className:(0,a.Z)(ty.container,{[ty.containerOpen]:!!n.openedSection}),children:[(0,l.jsxs)("div",{className:(0,a.Z)(ty.sections,{[ty.sectionsOpen]:!!n.openedSection}),children:[(0,l.jsx)(u.zx,{className:ty.citySelectButton,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>i.handleButtonClick(!1),iconLeft:(0,l.jsx)(m.IconFdsLocationO,{size:24}),label:(null==(t=i.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,l.jsxs)("ul",{className:(0,a.Z)(ty.sectionsWrapper,{[ty.removed]:n.openedBlock!==e.id&&!o}),children:[(0,l.jsx)("div",{className:ty.sectionsTitle,children:eO.b[e.id]}),e.sections.map(e=>(0,l.jsxs)("li",{className:(0,a.Z)(ty.section,{[ty.sectionExtra]:!!e.extra,[ty.sectionActive]:n.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:k(e.id,e.title),onMouseLeave:O,children:[(0,l.jsx)(tb,{name:e.uikitIcon,background:e.uikitIconBg}),(0,l.jsx)("span",{className:ty.sectionTitle,children:e.title}),(0,l.jsx)("div",{className:ty.sectionArrow,children:(0,l.jsx)(m.IconFdsChevronRightSmallO,{size:24})})]},e.id))]},e.id)),(0,l.jsxs)("div",{className:ty.chatWrapper,children:[(0,l.jsx)("div",{className:ty.chatHeader,children:"Нужна помощь?"}),(0,l.jsx)(tv,{})]})]}),(0,l.jsxs)("button",{type:"button",className:(0,a.Z)(ty.backButton,{[ty.removed]:!n.openedSection}),onClick:()=>{(0,eS.h)(p.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,l.jsx)(m.IconFdsChevronLeftO,{size:24}),(0,l.jsx)("span",{children:"Назад"})]}),(0,l.jsx)(tw,{data:e,isMobile:o}),(0,l.jsxs)("div",{className:(0,a.Z)(ty.useful,{[ty.usefulOpen]:!!n.openedSection}),children:[(0,l.jsx)("div",{className:ty.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,l.jsx)(h.Fragment,{children:e.sections.map(e=>(0,l.jsx)("div",{className:(0,a.Z)(ty.usefulGrid,{[ty.removed]:n.openedSection!==e.id}),children:e.useful.map((e,t)=>(0,l.jsxs)("a",{href:e.url,onClick:()=>(0,eS.h)(p.D.link,e.title,`${e.title}_${e.url}`),children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${t}`))},e.id))},e.id))]})]})})})},tC=(e,t,n)=>{var i,l,s,o,r,a,d;let u=(null==(l=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:l.call(i,({id:e})=>"news"===e))||-1,p=(null==(o=null==(s=null==e?void 0:e.NAVIGATOR)?void 0:s[u])?void 0:o.content)||[];if(null!=(d=null==(a=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[u])?void 0:a.content)&&d[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[u].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:[]}]},t$=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:i="https://lk.finuslugi.ru/registration",initialTown:s,isMainBannerPage:o,enableAppHeaderBanner:d=!1,news:f,className:g})=>{let v=e5(),w=(0,h.useMemo)(()=>tC(e,t,f),[e,t,f]),x=null==e?void 0:e.config,_=(0,h.useMemo)(()=>w.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[w]),b=v.isAuth?"Личный кабинет":"Войти",j=o&&v.isHeaderTransparent,y=(e,t,n,i)=>()=>{e!==v.openedBlock?(0,eS.h)(p.D.toggle,t,"on"):(0,eS.h)(p.D.button,"menu_close","on");let l=n?_[e]:"";v.setOpenedBlock(e,l,!!i)},{start:N,clear:C}=eV(),$=(e,t,n,i)=>()=>{v.isNavigationOpen&&e===v.openedBlock||v.setIgnoreClicks(),N(y(e,t,n,i),200)},k=e=>()=>{v.ignoreClicks||e()},O=e=>v.openedBlock===e&&v.isNavigationOpen;return e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:v.headerRef,className:(0,a.Z)(eO.s.header,g,{[eO.s.transparent]:j}),children:(0,l.jsxs)("div",{ref:v.fixedContainerRef,className:(0,a.Z)(eO.s.fixed,{[eO.s.hidden]:v.isHeaderHidden,[eO.s.navigationOpen]:v.isNavigationOpen}),children:[!!(null!=x&&x.appBannerUrl)&&d&&(0,l.jsx)(th,{mobileAppUrl:x.appBannerUrl,minioUrl:n}),(0,l.jsxs)(r.W2,{className:eO.s.container,children:[(0,l.jsxs)("div",{className:eO.s.leftRow,children:[(0,l.jsx)(to,{className:eO.s.logo,href:t,eventActionType:p.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{srcSet:(0,c.xn)(n,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,l.jsx)("img",{src:(0,c.xn)(n,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,l.jsx)("nav",{ref:v.navMenuItemsRef,className:eO.s.menuItems,children:(0,l.jsx)("ul",{children:eO.c.map(({id:e,label:t})=>(0,l.jsx)("li",{children:(0,l.jsx)(u.zx,{className:(0,a.Z)({[eO.s.menuItemActive]:O(e)}),label:t,variant:"white",size:"xs",onClick:k(y(e,t,!0)),onMouseEnter:$(e,t,!0,!0),onMouseLeave:C})},e))})}),(0,l.jsx)(e7,{className:(0,a.Z)(eO.s.tabletMenuButton,{[eO.s.menuItemActive]:v.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,l.jsx)(m.IconFdsChevronDownO,{size:24}),onClick:y("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,l.jsxs)("div",{className:(0,a.Z)(eO.s.buttonGroup,{[eO.s.whiteIcons]:(null==x?void 0:x.iconColorOnMobileMainBanner)==="white"}),children:[(0,l.jsxs)("div",{className:eO.s.chips,children:[(0,l.jsx)(e7,{as:"a",href:i,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${i}`,iconLeft:(0,l.jsx)(m.IconFdsUserO,{size:20})}),(0,l.jsx)(e7,{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,l.jsx)(m.IconFdsChatDotsCircleO,{size:24})})]}),(0,l.jsx)(e7,{className:eO.s.menuButton,size:"xs",shape:j?"icon":"default",appearance:j?"ghost":"fill",label:"Меню",onClick:y("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,l.jsx)(m.IconFdsMenuSkewedO,{size:24})}),(0,l.jsxs)("div",{className:eO.s.moreButtons,children:[(0,l.jsx)(ts,{initialTown:s}),(0,l.jsx)(e7,{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,l.jsx)(m.IconFdsChatDotsSquareAddO,{size:24}),children:"Онлайн чат"}),(0,l.jsx)(e7,{as:"a",href:i,size:"xs",eventActionText:b,eventLabel:`${b}_${i}`,label:b})]})]}),(0,l.jsxs)(to,{className:eO.s.auth,href:i,eventActionText:b,eventLabel:`${b}_${i}`,children:[(0,l.jsx)(e7,{size:"xs",shape:"circle-icon",iconLeft:(0,l.jsx)(m.IconFdsUserO,{}),eventActionText:b,eventLabel:`${b}_${i}`}),(0,l.jsx)("p",{children:b})]}),(0,l.jsx)("div",{className:eO.s.close,children:(0,l.jsx)(e7,{className:eO.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,l.jsx)(m.IconFdsCloseO,{}),onClick:()=>v.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,l.jsx)("div",{className:(0,a.Z)(eO.s.overlay,{[eO.s.removed]:!v.isNavigationMounted,[eO.s.overlayOpening]:v.isNavigationOpen,[eO.s.overlayClosing]:!v.isNavigationOpen}),onClick:k(()=>v.setOpenedBlock(null))}),(0,l.jsx)(tN,{data:w,minioUrl:n})]}):null},tk=e=>(0,l.jsx)(e3,{isMainBannerPage:e.isMainBannerPage,children:(0,l.jsx)(t$,{...e})}),tO=(0,d.g)("page-layout","sc"),tT=Object.freeze({main:"".concat(tO,"__main")}),tS=o()(()=>n.e(6715).then(n.bind(n,16715)).then(e=>e.CookiesPlate),{loadableGenerated:{webpack:()=>[require.resolveWeak("../sc-cookies-plate/index.mjs")]},ssr:!1});function tA(e){let{initialGeo:t,headerData:n,footerData:i,showStartGeoPopup:s=!1,children:o}=e,{region:r,town:a}=null!=t?t:{};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(eG,{showStartGeoPopup:s,initialRegion:r,initialTown:a,children:[n&&(0,l.jsx)(tk,{...n}),(0,l.jsx)("main",{className:tT.main,children:o}),i&&(0,l.jsx)(ek,{...i})]}),(0,l.jsx)(tS,{})]})}}}]);