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