(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71267,e=>{"use strict";let t;var n=e.i(43476),l=e.i(70703),i=e.i(60822),s=e.i(7670);e.i(8145);var o=e.i(13757),a=e.i(85900),r=e.i(22468);e.i(34348);var c=e.i(47611),d=e.i(63687);e.i(46401);var u=e.i(34986),p=e.i(71645),m=e.i(65019),h=e.i(71121),f=e.i(74080);let g=300,w=({opened:e})=>{let[t,n]=(0,p.useState)(!1),l=(0,p.useRef)(null),i=(0,p.useRef)(!1);return(0,p.useEffect)(()=>(e&&!i.current?(i.current=!0,n(!0)):!e&&i.current&&(l.current=setTimeout(()=>{i.current=!1,n(!1)},g)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},v=(0,r.g)("click-outside","sc"),x=Object.freeze({overlay:`${v}__overlay`,open:`${v}--open`,close:`${v}--close`}),b=({onClose:e,onToucheMove:t,isOpen:l,delay:i=g})=>{let o=(0,p.useRef)(null),a=(0,p.useCallback)(()=>{e&&(o.current=setTimeout(()=>{e()},i))},[i,e]),r=(0,p.useCallback)(e=>{"Escape"===e.key&&a()},[a]);return(0,p.useEffect)(()=>(l&&window.addEventListener("keydown",r),()=>{o.current&&clearTimeout(o.current),window.removeEventListener("keydown",r)}),[l,r]),(0,n.jsx)("div",{className:(0,s.default)(x.overlay,{[x.open]:l,[x.close]:!l}),onTouchStart:t,onClick:a})},_=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},y=(e,t)=>{t.style.removeProperty("overflow-y"),e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},C=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},j=()=>document.querySelectorAll("[data-portal]").length>1,N=e=>{let t=(0,p.useRef)(null),n=(0,p.useRef)(!1);return(0,p.useEffect)(()=>{if(n.current===e)return;n.current=e;let l=t.current,i=document.body,s=document.documentElement,o=window.innerWidth-s.clientWidth;if(e&&o>0)i.style.top||(window.prevScrollPosition=window.scrollY),s.style.setProperty("overflow-y","scroll"),i.classList.toggle("scroll-disable-windows",!0),i.style.setProperty("width",`calc(100vw - ${o}px)`),i.style.setProperty("top",`-${window.prevScrollPosition}px`),_(l,!0);else if(e)i.style.setProperty("overflow","hidden"),i.style.setProperty("height","100vh"),_(l,!0);else{let e=!j();e&&y(i,s),e&&C(),_(l,!1)}return()=>{let e=!j();e&&y(i,s),e&&C()}},[e]),t},k={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},$={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},z=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function S({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...k,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(z,{viewBox:"0 0 24 24",style:$}))}S.displayName="IconFdsCloseO";let E=(0,r.g)("drawer-footer","sc"),I=Object.freeze({footer:`${E}__footer`,hasScroll:`${E}__footer--has-scroll`}),O=({footer:e,hasScroll:t,className:l})=>(0,n.jsx)("div",{className:(0,s.default)(I.footer,{[I.hasScroll]:t},l),children:"function"==typeof e?e():e}),R=(0,r.g)("drawer-content","sc"),T=Object.freeze({container:`${R}__container`,open:`${R}--open`,close:`${R}--close`,header:`${R}__header`,rowHeader:`${R}__header--row`,title:`${R}__title`,center:`${R}__title--center`,left:`${R}__title--left`,right:`${R}__title--right`,controlContainer:`${R}__control-container`,content:`${R}__content`,footer:`${R}__footer`}),A=({onClose:e,onContentClick:t,children:l,title:i,rowTitle:o,titleAlign:a,isCloseable:r,footer:c,closeButton:d,isOpen:u,contentClassName:m,footerClassName:h,contentStyle:f,width:g})=>{let w=(0,p.useRef)(null),v=(0,p.useRef)(null),[x,b]=(0,p.useState)(!1);(0,p.useEffect)(()=>{var e;if(!v.current||!w.current)return;let t=(null==(e=null==v?void 0:v.current)?void 0:e.getBoundingClientRect().top)||0,n=null==w?void 0:w.current,l=()=>{let e=null==v?void 0:v.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",l,!1),()=>{null==n||n.removeEventListener("scroll",l,!1)}},[]);let _=f||g?{width:g,...f||{}}:void 0;return(0,n.jsxs)("div",{ref:w,style:_,className:(0,s.default)(T.container,{[T.open]:u,[T.close]:!u},m),children:[i||r?(0,n.jsxs)("div",{className:(0,s.default)(T.header,{[T.rowHeader]:o}),children:[r?d?"function"==typeof d?d():d:(0,n.jsx)("button",{type:"button",className:T.controlContainer,onClick:e,children:(0,n.jsx)(S,{size:24})}):null,i?(0,n.jsx)("h3",{className:(0,s.default)(T.title,{[T[a]]:!0}),children:i}):null]}):null,(0,n.jsx)("div",{ref:v,className:T.content,onClick:t,children:l}),c&&(0,n.jsx)(O,{className:(0,s.default)(T.footer,h),footer:c,hasScroll:x})]})},L=(0,r.g)("drawer-layout","sc"),P=Object.freeze({window:`${L}__window`}),B=({onClose:e,isOpen:t,children:l,withDisabledScroll:i,className:o,...a})=>{let r=(0,p.useCallback)(e=>e.stopPropagation(),[]);return N(t&&i),(0,n.jsxs)("div",{"data-portal":!0,className:(0,s.default)(P.window,o),children:[(0,n.jsx)(b,{onClose:e,isOpen:t,delay:0}),(0,n.jsx)(A,{onContentClick:r,onClose:e,isOpen:t,...a,children:l})]})},M=({isOpen:e=!1,children:t,titleAlign:l="center",isCloseable:i=!0,withDisabledScroll:s=!0,...o})=>{let{mounted:a}=w({opened:e});return a?(0,n.jsx)(B,{titleAlign:l,isCloseable:i,isOpen:e,withDisabledScroll:s,...o,children:t}):null};M.displayName="Drawer";let F={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},U={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},D=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function H({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...F,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(D,{viewBox:"0 0 24 24",style:U}))}H.displayName="IconFdsCloseO";let W=(0,r.g)("mobile-modal-footer","sc"),V=Object.freeze({footer:`${W}__footer`,footerWithoutShadow:`${W}__footer--without-shadow`}),G=({footer:e,isSmallPopup:t=!1,footerClassName:l})=>(0,n.jsx)("div",{className:(0,s.default)(V.footer,t&&V.footerWithoutShadow,l),children:"function"==typeof e?e():e}),Y=(0,r.g)("mobile-popup","sc"),q=Object.freeze({mobilePopup:`${Y}`,mobilePopupOpen:`${Y}--open`,content:`${Y}__content`,contentFull:`${Y}__content--full`,contentTransition:`${Y}__content--transition`,contentTransitionOpen:`${Y}__content--transition-open`,contentLine:`${Y}__content-line`,contentContainer:`${Y}__content-container`,smallContentContainer:`${Y}__content-container--small`,min:`${Y}__content-container--min`,title:`${Y}__title`,closeContainer:`${Y}__close-container`,closeButton:`${Y}__close-button`}),J=({children:e,footer:t,isOpen:l,isSmallPopup:i,onClose:o,hasCloseButton:a=!0,full:r,touchDistance:c=100,withDisabledScroll:d=!0,contentClassName:u,className:m,title:h,closeButton:f,footerClassName:g})=>{let[w,v]=(0,p.useState)(!1),[x,_]=(0,p.useState)(!1),[y,C]=(0,p.useState)(!0),[j,k]=(0,p.useState)("120%"),$=(0,p.useRef)(null),z=(0,p.useRef)(0),S=(0,p.useRef)(!1),E=e=>{var t,n,l;let i=null==(t=$.current)?void 0:t.offsetTop,s=null==(n=$.current)?void 0:n.offsetHeight;if(S.current=!0,C(!1),i&&s){let t=(null==(l=null==e?void 0:e.touches[0])?void 0:l.clientY)-i,n=0;t>=0&&t<=s+30&&(n=t),t>s+30&&(n=s+30),k(`${n}px`),z.current=n}},I=()=>{S.current&&(z.current>c&&o?null==o||o():k("0"),C(!0),S.current=!1),window.removeEventListener("touchmove",E),window.removeEventListener("touchend",I)};return(0,p.useEffect)(()=>{l&&setTimeout(()=>{v(!0),_(!0),k("0")},100),!l&&x&&(k("120%"),v(!1),_(!1))},[x,l]),N(l&&d),(0,n.jsxs)("div",{"data-portal":!0,className:(0,s.default)(q.mobilePopup,x&&q.mobilePopupOpen,m),children:[(0,n.jsx)(b,{onClose:()=>{l&&(null==o||o())},onToucheMove:()=>{l&&(v(!1),window.addEventListener("touchmove",E),window.addEventListener("touchend",I))},isOpen:l,delay:0}),(0,n.jsxs)("div",{className:(0,s.default)(q.content,r&&q.contentFull,y&&q.contentTransition,y&&w&&q.contentTransitionOpen),ref:$,style:{transform:`translateY(${j})`},children:[(0,n.jsx)("div",{className:q.contentLine}),(0,n.jsxs)("div",{className:(0,s.default)(q.contentContainer,i&&q.smallContentContainer,{[q.min]:!h&&!a},u),children:[!!h&&(0,n.jsx)("div",{className:q.title,children:h}),a?(0,n.jsx)("div",{className:q.closeContainer,children:a?f?"function"==typeof f?f():f:(0,n.jsx)("button",{onClick:o,className:q.closeButton,children:(0,n.jsx)(H,{size:24})}):null}):null,e]}),t&&(0,n.jsx)(G,{footerClassName:g,isSmallPopup:i,footer:t})]})]})},Q=({children:e,isSmallPopup:t=!1,isOpen:l=!1,...i})=>{let{mounted:s}=w({opened:l});return s?(0,n.jsx)(J,{isSmallPopup:t,isOpen:l,...i,children:e}):null};Q.displayName="UiMobilePopup";let K=({children:e,id:t="portal-root"})=>{let[n,l]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let e=document.getElementById(t);if(e)return void l(e);let n=document.createElement("div");return n.id=t,document.body.appendChild(n),l(n),()=>{document.body.removeChild(n)}},[t]),n?(0,f.createPortal)(e,n):null},X=(0,r.g)("footer-contacts-block","sc"),Z=Object.freeze({contactsWrapper:`${X}__contacts-wrapper`,gray:`${X}__gray`,phones:`${X}__phones`,contactsButtons:`${X}__contacts-buttons`,vkIcon:`${X}__vk-icon`,tgIcon:`${X}__tg-icon`,dzenIcon:`${X}__dzen-icon`,maxIcon:`${X}__max-icon`,link:`${X}__link`}),ee=(0,r.g)("footer","sc"),et=Object.freeze({wrapper:`${ee}__wrapper`,section:`${ee}__section`,container:`${ee}__container`,top:`${ee}__top`,main:`${ee}__main`,links:`${ee}__links`,disclaimer:`${ee}__disclaimer`,bottom:`${ee}__bottom`,bottomLinks:`${ee}__bottom-links`,bottomDisclaimer:`${ee}__bottom-disclaimer`,compact:`${ee}__wrapper--compact`,white:`${ee}__wrapper--white`}),en="finkit-widgets-sc-footer",el=[{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"}],ei=[...el,{title:"Онлайн чат",url:void 0}],es=[{type:"vk",className:Z.vkIcon,iconName:"vk"},{type:"telegramChannel",className:Z.tgIcon,iconName:"telegram"},{type:"dzen",className:Z.dzenIcon,iconName:"dzen"},{type:"max",className:Z.maxIcon,iconName:"max"}],eo=(0,n.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО «МБ Маркетплейс», организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ «О совершении финансовых сделок с использованием финансовой платформы». Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой «Открытие онлайн на Финуслугах». Иная информация на сайте www.finuslugi.ru считается размещенной ООО «МБ Маркетплейс», если иное явно не следует из существа размещаемой информации. ООО «МБ Маркетплейс» входит в Группу «Московская Биржа».",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Группа «Московская Биржа» - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),ea=({onClick:e,eventActionText:t,eventLabel:l,...i})=>(0,n.jsx)(c.Button,{onClick:n=>{null==e||e(n),(0,d.h)({eventCategory:en,eventActionType:d.D.button,eventActionText:t||"",eventLabel:l})},...i}),er=({onClick:e,eventActionType:t,eventActionText:l,eventLabel:i,chat:s,...o})=>(0,n.jsx)(u.Link,{onClick:n=>{var o,a,r;null==e||e(n),s&&(null==n||n.preventDefault(),null==(r=null==(a=null==(o=null==window?void 0:window.supportWidget)?void 0:o.craftTalk)?void 0:a.open)||r.call(a)),(0,d.h)({eventCategory:en,eventActionType:t||d.D.link,eventActionText:l||"",eventLabel:i})},...o}),ec=({minioUrl:e,blogs:t})=>(0,n.jsxs)("div",{className:Z.contactsWrapper,children:[(0,n.jsx)(o.Text,{className:Z.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,n.jsx)("div",{className:Z.phones,children:ei.map(({title:e,url:t})=>(0,n.jsx)(er,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,n.jsx)(o.Text,{className:Z.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,n.jsx)("div",{className:Z.contactsButtons,children:es.map(({type:l,className:i,iconName:s})=>(0,n.jsx)(ea,{as:"a",href:null==t?void 0:t[l],target:"_blank",className:i,iconRight:(0,n.jsx)("img",{width:24,height:24,src:(0,a.joinURL)(e,`/widgets/footer/${s}.svg`),alt:l,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:l,eventLabel:null==t?void 0:t[l]},l))}),(0,n.jsx)(o.Text,{className:Z.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,n.jsx)("div",{className:Z.contactsButtons,children:(0,n.jsxs)(er,{href:null==t?void 0:t.investTg,target:"_blank",className:Z.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,n.jsx)(ea,{className:Z.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}),"Финуслуги Инвест"]})})]}),ed=(0,r.g)("footer-disclaimer","sc"),eu=Object.freeze({disclaimer:`${ed}`}),ep=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:en,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,n.jsx)("div",{className:(0,s.default)(e.className,eu.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,n.jsx)("div",{className:(0,s.default)(e.className,eu.disclaimer),onClick:t,children:e.children})},em={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eh={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ef=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eg({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...em,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(ef,{viewBox:"0 0 24 24",style:eh}))}eg.displayName="IconFdsArrowUpRightSmallO";let ew={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ev={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ex=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eb({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ew,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(ex,{viewBox:"0 0 24 24",style:ev}))}eb.displayName="IconFdsArrowUpRightSmallO";let e_=(0,r.g)("footer-modal-body","sc"),ey=Object.freeze({wrapper:`${e_}__wrapper`,title:`${e_}__title`,item:`${e_}__item`,label:`${e_}__label`,button:`${e_}__button`,description:`${e_}__description`}),eC=({directions:e})=>(0,n.jsxs)("div",{className:ey.wrapper,children:[(0,n.jsx)("div",{className:ey.title,children:"Направления"}),e.map(e=>(0,n.jsxs)(er,{className:ey.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,n.jsxs)("div",{className:ey.label,children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(ea,{className:ey.button,iconRight:(0,n.jsx)(eb,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,n.jsx)("p",{className:ey.description,children:e.description})]},e.url))]}),ej=(0,r.g)("footer-popup","sc"),eN=Object.freeze({wrapper:`${ej}__wrapper`,button:`${ej}__button`,icon:`${ej}__icon`,buttonWrapper:`${ej}__button-wrapper`}),ek=({directions:e})=>{let t=(0,h.useBreakpointUp)("l"),[l,i]=(0,p.useState)(!1),s=()=>{i(!1)};return(0,n.jsxs)("div",{className:eN.wrapper,children:[(0,n.jsx)("div",{className:eN.buttonWrapper,children:(0,n.jsx)(ea,{className:eN.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,n.jsx)("div",{className:eN.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,n.jsx)("div",{},e))})})}),(0,n.jsxs)(K,{children:[!t&&(0,n.jsx)(Q,{isOpen:l,onClose:s,full:!0,children:(0,n.jsx)(eC,{directions:e})}),t&&(0,n.jsx)(M,{isOpen:l,onClose:s,width:"804px",children:(0,n.jsx)(eC,{directions:e})})]})]})},e$=(0,r.g)("footer-left-column","sc"),ez=Object.freeze({leftColumn:`${e$}__left-column`,logoWrapper:`${e$}__logo-wrapper`,banner:`${e$}__banner`,mobAppLink:`${e$}__mob-app-link`,br:`${e$}__br`}),eS=({showcaseUrl:e,minioUrl:t,directions:l,mobAppUrl:i})=>{let s=((e="")=>{let[t,n]=(0,p.useState)(e);return(0,p.useEffect)(()=>{let t,l,i=(t=new URL(window.location.href),l=new URLSearchParams,t.searchParams.forEach((e,t)=>{/^utm_/i.test(t)&&l.set(t,e)}),l);if(!i||0===i.size)return;let[s,o=""]=e.split("?"),a=new URLSearchParams(o);i.forEach((e,t)=>{a.has(t)||a.set(t,e)});let r=a.toString();n(r?`${s}?${r}`:s)},[e]),t})(i);return(0,n.jsxs)("div",{className:ez.leftColumn,children:[(0,n.jsx)(er,{className:ez.logoWrapper,href:e,eventActionType:d.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)(ek,{directions:l??[]}),(0,n.jsx)(er,{href:s,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:s,className:ez.mobAppLink,children:(0,n.jsxs)(m.Card,{className:ez.banner,children:[(0,n.jsxs)(o.Text,{weight:"medium",children:["Управляйте финансами",(0,n.jsx)("br",{}),"через приложение",(0,n.jsx)("br",{className:ez.br})," Финуслуг"]}),(0,n.jsx)(ea,{iconRight:(0,n.jsx)(eg,{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"})]})]})})]})},eE=(0,r.g)("footer-logo","sc"),eI=Object.freeze({wrapper:`${eE}__wrapper`,link:`${eE}__link`,fromMoex:`${eE}__from-moex`,logo:`${eE}__logo`,white:`${eE}__wrapper--white`}),eO=({showcaseUrl:e,minioUrl:t,isWhite:l})=>(0,n.jsx)("div",{className:(0,s.default)(eI.wrapper,{[eI.white]:l}),children:(0,n.jsxs)(er,{className:eI.link,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,n.jsx)("img",{className:eI.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`,loading:"lazy"}),(0,n.jsx)("img",{className:eI.fromMoex,src:`${t}/images/fromMoex.svg`,loading:"lazy"})]})});var eR=((t=eR||{}).BLACK="black",t.GRAY="gray",t);let eT=(0,r.g)("footer-warning","sc"),eA=Object.freeze({reservedSpace:`${eT}__reserved-space`,wrapper:`${eT}__wrapper`,wrapperGray:`${eT}__wrapper--gray`,fixed:`${eT}__wrapper--fixed`,container:`${eT}__container`,text:`${eT}__text`,invisibleText:`${eT}__text--invisible`}),eL=({text:e,variant:t,fixed:l,isPlaceholder:o})=>(0,n.jsx)("div",{className:(0,s.default)(eA.wrapper,{[eA.wrapperGray]:"gray"===t,[eA.fixed]:l&&!o}),children:(0,n.jsx)(i.Container,{className:eA.container,children:(0,n.jsx)("div",{className:(0,s.default)(eA.text,{[eA.invisibleText]:o}),dangerouslySetInnerHTML:{__html:e}})})}),eP=({warning:e})=>{let t="string"==typeof e?{text:e}:e,l={text:t.text,fixed:t.fixed??!0,variant:t.variant??eR.BLACK};return(0,n.jsxs)("div",{className:eA.reservedSpace,children:[(0,n.jsx)(eL,{...l,isPlaceholder:l.fixed}),l.fixed&&(0,n.jsx)(eL,{...l,fixed:!0})]})},eB=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:l="https://assets.finuslugi.ru/mp-assets",customDisclaimer:o,variant:a="default",className:r})=>{var c,d;let u=!o&&null!=e&&e.disclaimer?e.disclaimer:void 0,p=a.includes("compact"),m=a.includes("white"),h=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(p?el:[]),f=e&&"warning"in e?e.warning:void 0;return e?(0,n.jsx)("footer",{className:(0,s.default)(et.wrapper,r,{[et.compact]:p,[et.white]:m}),children:(0,n.jsxs)("section",{className:et.section,children:[(0,n.jsxs)(i.Container,{className:et.container,children:[!p&&(0,n.jsx)(eS,{showcaseUrl:t,minioUrl:l,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,n.jsx)("div",{className:et.wrapper,children:(0,n.jsxs)("div",{className:et.top,children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:et.main,children:[!p&&(0,n.jsx)("div",{className:et.links,children:null==(d=null==e?void 0:e.top)?void 0:d.map(e=>(0,n.jsx)(er,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,n.jsx)(eO,{showcaseUrl:t,minioUrl:l,isWhite:m}),(0,n.jsx)(ep,{className:et.disclaimer,disclaimer:u,children:o||eo})]}),(0,n.jsxs)("div",{className:et.bottom,children:[(0,n.jsx)("div",{className:et.bottomLinks,children:null==h?void 0:h.map(e=>(0,n.jsx)(er,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,n.jsx)(ep,{className:et.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!p&&(0,n.jsx)(ec,{minioUrl:l,blogs:null==e?void 0:e.blogs})]})})]}),p&&!!f&&(0,n.jsx)(eP,{warning:f})]})}):null};var eM=e.i(44437),eF=e.i(34650),eU=e.i(91784);let eD=(0,e.i(54061).g)("divider"),eH=Object.freeze({divider:eD,content:`${eD}__content`}),eW=({content:e,className:t,style:l,dataQa:i,dataId:o,...a})=>(0,n.jsx)("div",{className:(0,s.default)(eH.divider,t),style:l,...a,"data-id":o,"data-qa":i,children:e&&(0,n.jsx)("div",{className:eH.content,children:e})});eW.displayName="Divider";var eV=e.i(46381);e.i(881);var eG=e.i(43748),eY=e.i(24359);let eq={userRegion:eF.U,userTown:eF.c,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},eJ={userRegion:eF.U,userTown:eF.c,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},eQ=(e=!1)=>e?eJ:eq,eK=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},eX=(e,t,n=!1)=>{if(typeof document>"u")return;let l=eQ(n);if(!e&&!t){eY.a.removeItem(l.userRegion),eY.a.removeItem(l.userTown);return}eY.a.setItem(l.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),eY.a.setItem(l.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},eZ=e=>{if(typeof document>"u")return null;let t=eY.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},e0=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},e1=(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=e0(eQ(e).allRegions)||[];return eK(n,e),n},e2=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),e4=e=>{let t={};return e.map(({id:e,name:n,towns:l})=>(l.forEach(l=>{l.parentId=e,t[l.name]=t[l.name]||{},t[l.name][l.id]=n}),l)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},e7=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,e3=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},e5=(e,t=!1)=>{if(e.length<1)return;let n=eQ(t);eK(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},e6=(e,t,n)=>{let l=null,i=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(l=e,i=t,!0)});let s=t?e.find(e=>e.id===t.id)??null:null;return{region:l??s??t,town:i??n}},e8=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),e9=async()=>{let e=await e3("https://finuslugi.ru/money_data/Root.json?short=1"),t=Array.isArray(null==e?void 0:e.regions)?e.regions:[];return e5(t),t},te=async e=>{let t,n,[l,i]=await Promise.all([e3(e7(e,"/sc/api/v1/cities?all=true&isActive=true")),e3(e7(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==l?void 0:l.content)||!Array.isArray(null==i?void 0:i.content))return[];let s=l.content,o=(n=(t=i.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 e2(o)?(e5(o,!0),o):[]},tt=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?te(e):e9(),tn=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},tl=(e,t,n)=>{(0,d.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})};var ti=e.i(11512);let ts={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},to={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function ta(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tr=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M21.309 22.765a6.932 6.932 0 01-2.016.233c-1.156-.04-2.62-.39-3.927-1.58A9.985 9.985 0 0112 22a9.97 9.97 0 01-7.071-2.929A9.97 9.97 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.958 9.958 0 01-1.233 4.814c.07 1.607.354 2.81.617 3.606a7.784 7.784 0 00.424 1.04c.125.248.251.497.15.787-.103.296-.366.44-.65.52zM12 3.5a8.5 8.5 0 103.258 16.353.75.75 0 01.834.178c1.06 1.124 2.278 1.436 3.252 1.469.304.01.584-.007.824-.035a10.45 10.45 0 01-.208-.574c-.317-.96-.641-2.374-.7-4.237a.75.75 0 01.1-.4A8.5 8.5 0 0012 3.5zm-4.209 7.794a1 1 0 10.003-.002l-.003.002zm3.5 0a1 1 0 10.003-.002l-.003.002zm3.502 1.414a1 1 0 01-.002-1.414l.003-.002a1 1 0 110 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tc({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ts,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ta(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tr,{viewBox:"0 0 24 24",style:to}))}tc.displayName="IconFdsChatDotsCircleO";let td=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("defs",null,p.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},p.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),p.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},p.createElement("path",{d:"M18.25 5.75V8c0 .42.33.75.75.75s.75-.33.75-.75V5.75H22c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-2.25V2c0-.42-.33-.75-.75-.75s-.75.33-.75.75v2.25H16c-.42 0-.75.33-.75.75s.33.75.75.75h2.25zm-4.546-2.23c-.259-.014-.827-.02-1.704-.02-.676 0-1.129.002-1.358.007a7.963 7.963 0 00-.779.047 7.246 7.246 0 00-2.328.689 7.204 7.204 0 00-4.028 6.4c-.005.228-.007.68-.007 1.357 0 .671.002 1.121.007 1.349.007.324.023.584.047.778.057.474.158.933.303 1.378v.001a7.17 7.17 0 001.76 2.867 7.169 7.169 0 002.92 1.777 7.436 7.436 0 002.108.341c.228.006.68.009 1.355.009.67 0 1.12-.003 1.346-.009a7.12 7.12 0 00.794-.057c.476-.05.96-.162 1.455-.333a.71.71 0 01.685.102c.662.48 1.32.829 1.976 1.047a4.85 4.85 0 001.482.264c.142.002.278-.004.41-.016a10.758 10.758 0 01-.222-.535c-.45-1.164-.676-2.305-.676-3.423a.74.74 0 01.116-.401 7.211 7.211 0 001.08-3.01c.024-.196.04-.456.047-.78.005-.228.007-.678.007-1.349 0-.214.002-.488.006-.822.003-.22.004-.376.004-.468 0-.42.33-.75.75-.75s.75.33.75.75c0 .098-.001.26-.004.486A70.38 70.38 0 0022 12c0 .682-.003 1.142-.008 1.381a9.337 9.337 0 01-.058.93 8.752 8.752 0 01-.393 1.737 8.757 8.757 0 01-.788 1.7c.026.866.217 1.757.571 2.674a8.847 8.847 0 00.6 1.249c.11.224.136.42.078.587-.057.168-.198.306-.423.416-.139.068-.32.13-.543.189a5 5 0 01-1.316.15 6.336 6.336 0 01-1.94-.34 8.598 8.598 0 01-2.064-1.035c-.471.14-.939.236-1.402.286a8.23 8.23 0 01-.93.067c-.24.006-.701.009-1.384.009-.688 0-1.152-.003-1.392-.009a8.222 8.222 0 01-.937-.067 8.672 8.672 0 01-3.989-1.538 8.707 8.707 0 01-2.077-2.078 8.705 8.705 0 01-1.597-4.927A78.972 78.972 0 012 12c0-.687.003-1.15.008-1.39.008-.376.027-.686.057-.93a8.737 8.737 0 01.832-2.806 8.69 8.69 0 013.977-3.977 8.7 8.7 0 012.803-.831c.246-.03.557-.05.933-.058C10.85 2.003 11.313 2 12 2c.902 0 1.495.007 1.779.021.42.021.732.367.712.787a.743.743 0 01-.787.711zm-5.91 9.19a1 1 0 111.412-1.414 1 1 0 01-1.413 1.415zm3.497-1.412a1 1 0 101.418 1.41 1 1 0 00-1.418-1.41zm3.502 1.413a1 1 0 111.414-1.415 1 1 0 01-1.414 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function tu({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ts,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ta(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(td,{viewBox:"0 0 24 24",style:to}))}tu.displayName="IconFdsChatDotsSquareAddO";let tp=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M19.03 10.28l-6.5 6.5a.75.75 0 01-1.06 0l-6.5-6.5a.75.75 0 111.06-1.06L12 15.19l5.97-5.97a.75.75 0 111.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tm({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ts,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ta(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tp,{viewBox:"0 0 24 24",style:to}))}tm.displayName="IconFdsChevronDownO";let th=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tf({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ts,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ta(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(th,{viewBox:"0 0 24 24",style:to}))}tf.displayName="IconFdsCloseO";let tg=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("defs",null,p.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},p.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),p.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},p.createElement("path",{d:"M7.75 5a.75.75 0 100 1.5h13.5a.75.75 0 100-1.5H7.75zM22 12a.75.75 0 00-.75-.75H2.75a.75.75 0 100 1.5h18.5A.75.75 0 0022 12zm-5.75 5.5a.75.75 0 110 1.5H2.75a.75.75 0 110-1.5h13.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function tw({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ts,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ta(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tg,{viewBox:"0 0 24 24",style:to}))}tw.displayName="IconFdsMenuSkewedO";let tv=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M6.999 7a5 5 0 1110 0 5 5 0 01-10 0zm5-3.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7zM10.012 14h3.974c1.52 0 2.497 0 3.345.337a4.75 4.75 0 011.916 1.402c.579.705.875 1.636 1.335 3.085l.05.159.332 1.04a.75.75 0 11-1.43.455l-.33-1.04c-.53-1.664-.744-2.293-1.117-2.748a3.249 3.249 0 00-1.31-.959c-.547-.217-1.212-.23-2.958-.23h-3.64c-1.746 0-2.41.013-2.957.23a3.249 3.249 0 00-1.311.959c-.373.454-.587 1.084-1.116 2.748l-.331 1.04a.75.75 0 11-1.43-.455l.331-1.04.05-.159c.461-1.449.757-2.38 1.336-3.086a4.752 4.752 0 011.916-1.4C7.515 14 8.492 14 10.012 14z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tx({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ts,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ta(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tv,{viewBox:"0 0 24 24",style:to}))}tx.displayName="IconFdsUserO";let tb=()=>{let e=(0,p.useRef)(null),t=(0,p.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,p.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,p.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},t_={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ty={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tC(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tj=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tN({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...t_,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tC(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tj,{viewBox:"0 0 24 24",style:ty}))}tN.displayName="IconFdsChevronRightSmallO";let tk=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function t$({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...t_,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tC(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tk,{viewBox:"0 0 24 24",style:ty}))}t$.displayName="IconFdsCloseO";let tz=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("defs",null,p.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},p.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),p.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),p.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},p.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),p.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},p.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function tS({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...t_,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tC(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tz,{viewBox:"0 0 24 24",style:ty}))}tS.displayName="IconFdsGosuslugiColoredO";let tE=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tI({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...t_,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tC(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tE,{viewBox:"0 0 24 24",style:ty}))}tI.displayName="IconFdsShieldCheckO";let tO={"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"},tR=(0,p.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 tT(){return(0,p.useContext)(tR)}let tA=e=>{let[t,l]=(0,p.useState)(!1),[i,s]=(0,p.useState)(!1),[o,a]=(0,p.useState)(!!e.isMainBannerPage),{isChatModalOpen:r,setIsChatModalOpen:c,isChatLoading:d}=(()=>{let[e,t]=(0,p.useState)(!1),[n,l]=(0,p.useState)(!1),i=(0,p.useRef)(!1),s=e=>{i.current=e,l(e)};return(0,p.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(tO,e)?tO[e]:tO["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 l=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((o,a)=>{var r,c;let d,u;i.current?a(Error("chat is already opened")):l?(l.openWidget(),t(!1),o()):(s(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;l=e;let i=document.querySelector(".webchat");i&&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(i,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=l.closeWidget),null==l||l.openWidget(),s(!1),t(!1),o()},r=e,c=n,(d=document.createElement("link")).rel="stylesheet",d.type="text/css",d.href=`${r}/assets/css/${c}`,document.head.appendChild(d),(u=document.createElement("script")).src=`${r}/get-bootstrap/${c}`,u.defer=!0,document.body.appendChild(u))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,l;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(l=null==(n=window.supportWidget)?void 0:n.craftTalk)||l.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:n}})(),[u,m]=(0,p.useState)(null),[h,f]=(0,p.useState)(null),[g,w]=(0,p.useState)(!1),[v,x]=(0,p.useState)(!1),[b,_]=(0,p.useState)(!1),y=(0,p.useRef)(null),C=N(g),j=(0,p.useRef)(null),k=(0,p.useRef)(null),$=(0,p.useRef)(null),z=(0,p.useRef)(null),S=(0,p.useCallback)(()=>{C.current&&C.current.scrollTo({top:0})},[C]),E=(0,p.useCallback)(e=>{f(e),S()},[S]),I=(0,p.useCallback)(e=>{j.current&&clearTimeout(j.current),e&&x(!0),e||(j.current=setTimeout(()=>{x(!1),E(null)},300))},[E]),O=(0,p.useCallback)((e,t,n)=>{if(t&&E(t),!n&&e===u||!e){I(!g),w(!g);return}m(e),I(!0),w(!0)},[u,E,g,I]),R=(0,p.useCallback)(()=>{k.current&&clearTimeout(k.current),_(!0),k.current=setTimeout(()=>{_(!1)},650)},[]);return(0,p.useEffect)(()=>{l(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,eM.s)(s,a,e.isMainBannerPage);return(0,eM.i)(),t},[]),(0,n.jsx)("header",{children:(0,n.jsx)(tR.Provider,{value:{isAuth:t,isHeaderHidden:i,isHeaderTransparent:o,openedBlock:u,setOpenedBlock:O,openedSection:h,setOpenedSection:E,isNavigationOpen:g,isNavigationMounted:v,navMenuItemsRef:y,navigationRef:C,ignoreClicks:b,setIgnoreClicks:R,isChatModalOpen:r,setIsChatModalOpen:c,isChatLoading:d,fixedContainerRef:$,headerRef:z},children:e.children})})},tL=(0,r.g)("certificates-warning-banner","sc"),tP=(0,r.g)("certificates-warning-popup","sc"),tB=Object.freeze({wrapper:`${tL}`,container:`${tL}__container`,content:`${tL}__content`,info:`${tL}__info`,image:`${tL}__image`,text:`${tL}__text`,title:`${tL}__title`,description:`${tL}__description`,details:`${tL}__details`,buttons:`${tL}__buttons`,button:`${tL}__button`,closeButton:`${tL}__close-button`,mobileActivator:`${tL}__mobile-activator`}),tM=Object.freeze({modal:`${tP}__modal`,desktopCloseButton:`${tP}__desktop-close-button`,mobilePopup:`${tP}__mobile-popup`,mobileContentContainer:`${tP}__mobile-content-container`,mobileCloseButton:`${tP}__mobile-close-button`,mobileDialog:`${tP}__mobile-dialog`,content:`${tP}__content`,image:`${tP}__image`,text:`${tP}__text`,title:`${tP}__title`,description:`${tP}__description`,actions:`${tP}__actions`,primaryActions:`${tP}__primary-actions`,divider:`${tP}__divider`,explanation:`${tP}__explanation`,button:`${tP}__button`,gosuslugiButton:`${tP}__gosuslugi-button`,gosuslugiIcon:`${tP}__gosuslugi-icon`}),tF="fu_certificates_access_confirmed",tU="fu_certificates_banner_dismissed",tD="fu_external_link_warning_shown",tH={bannerShown:{eventActionType:d.D.show,eventActionText:"certificates_banner"},bannerDetails:{eventActionType:d.D.banner,eventActionText:"certificates_details"},bannerInstall:{eventActionType:d.D.button,eventActionText:"certificates_banner_install"},bannerYandex:{eventActionType:d.D.button,eventActionText:"certificates_banner_yandex"},bannerClose:{eventActionType:d.D.icon,eventActionText:"certificates_banner_close"},popupShown:{eventActionType:d.D.popup,eventActionText:"certificates_warning"},popupInstall:{eventActionType:d.D.button,eventActionText:"certificates_popup_install"},popupYandex:{eventActionType:d.D.button,eventActionText:"certificates_popup_yandex"},popupContinue:{eventActionType:d.D.button,eventActionText:"certificates_popup_continue"},popupCloseButton:{eventActionType:d.D.icon,eventActionText:"certificates_popup_close"},popupClosed:{eventActionType:d.D.close,eventActionText:"certificates_popup"}},tW=(e,t,n)=>{let l="banner"===t.source?"":`;host=${t.host}`;try{(0,d.h)({eventCategory:eF.H,...tH[e],eventLabel:`source=${t.source};layout=${n?"desktop":"mobile"}${l}`})}catch{}},tV=["--banner-header-height","--fixed-header-height","--new-header-height-desktop","--new-header-height-mobile","--static-new-header-height-mobile","--static-new-header-height-desktop","--header-height"],tG=({onDismiss:e,onClosed:t,onOpenDetails:l,onOpenCertificatesPage:s,onOpenYandexBrowserPage:o})=>{let{fixedContainerRef:a,headerRef:r}=tT(),d=(0,h.useBreakpointUp)("l"),u=(0,p.useRef)(null),m=(0,p.useRef)(!1),f=(0,p.useRef)(!1),g=(0,p.useRef)(!1),[w,v]=(0,p.useState)(!1),[x,b]=(0,p.useState)(!1);(0,p.useEffect)(()=>{f.current||(f.current=!0,tW("bannerShown",{source:"banner"},d))},[d]);let _=(e,t)=>()=>{tW(e,{source:"banner"},d),t()},y=(0,p.useCallback)(()=>{let e=u.current,t=a.current;if(!e||!t)return;let n=e.getBoundingClientRect().height,l=n+(window.innerWidth<768?eF.F.mobile:eF.F.desktop),i=document.documentElement.style;i.setProperty("--banner-header-height",`${n}px`),i.setProperty("--fixed-header-height",`${l}px`),i.setProperty("--new-header-height-desktop",`${l}px`),i.setProperty("--new-header-height-mobile",`${l}px`),i.setProperty("--static-new-header-height-mobile",`${l}px`),i.setProperty("--static-new-header-height-desktop",`${l}px`),i.setProperty("--header-height",`${n+108}px`),t.style.transform=m.current?"translateY(0)":`translateY(-${n}px)`,window.dispatchEvent(new Event(eM.H))},[a]),C=(0,p.useCallback)(()=>{let e=a.current;tV.forEach(e=>document.documentElement.style.removeProperty(e)),e&&(e.style.transform=""),window.dispatchEvent(new Event(eM.H))},[a]),j=(0,p.useCallback)(()=>{let e=a.current;if(!e)return;let t=window.innerWidth<768?eF.F.mobile:eF.F.desktop,n=document.documentElement.style;n.setProperty("--fixed-header-height",`${t}px`),n.setProperty("--new-header-height-desktop",`${t}px`),n.setProperty("--new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-desktop",`${t}px`),n.setProperty("--header-height","108px"),e.style.transform="",window.dispatchEvent(new Event(eM.H))},[a]);return(0,p.useEffect)(()=>{let e=r.current;if(!e)return;let n=()=>{b(!1),w&&t()};return e.addEventListener("transitionend",n),()=>e.removeEventListener("transitionend",n)},[r,w,t]),(0,p.useLayoutEffect)(()=>{var e;let t=u.current;if(!t)return;y();let n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=null;n?(m.current=!0,null==(e=a.current)||e.style.setProperty("transform","translateY(0)")):l=window.requestAnimationFrame(()=>{var e;m.current=!0,null==(e=a.current)||e.style.setProperty("transform","translateY(0)"),b(!0)});let i=new ResizeObserver(y);return i.observe(t),window.addEventListener("resize",y),()=>{null!==l&&window.cancelAnimationFrame(l),i.disconnect(),window.removeEventListener("resize",y),C()}},[C,y]),(0,n.jsxs)("div",{id:"headerNotice",ref:u,role:"region","aria-label":"Сертификаты Минцифры","data-opening":x,className:tB.wrapper,children:[(0,n.jsx)("button",{className:tB.mobileActivator,type:"button","aria-label":"Подробнее о сертификатах Минцифры",onClick:_("bannerDetails",l)}),(0,n.jsx)(i.Container,{children:(0,n.jsxs)("div",{className:tB.container,children:[(0,n.jsxs)("div",{className:tB.content,children:[(0,n.jsxs)("div",{className:tB.info,children:[(0,n.jsx)("div",{className:tB.image,children:(0,n.jsx)(tI,{size:32})}),(0,n.jsxs)("div",{className:tB.text,children:[(0,n.jsx)("h2",{className:tB.title,children:"Для работы российских сайтов нужны сертификаты Минцифры"}),(0,n.jsx)("p",{className:tB.description,children:"Установите их, чтобы пользоваться всеми функциями сайта и оплачивать услуги без сбоев. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"}),(0,n.jsxs)("span",{className:tB.details,children:["Подробнее",(0,n.jsx)(tN,{size:16})]})]})]}),(0,n.jsxs)("div",{className:tB.buttons,children:[(0,n.jsx)(c.Button,{className:tB.button,label:"Установить сертификаты",iconLeft:(0,n.jsx)(tS,{size:16}),size:"xs",variant:"white",onClick:_("bannerInstall",s)}),(0,n.jsx)(c.Button,{className:tB.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,n.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy"}),size:"xs",variant:"white",appearance:"outline",onClick:_("bannerYandex",o)})]})]}),(0,n.jsx)("button",{className:tB.closeButton,type:"button","aria-label":"Закрыть",onClick:()=>{if(!g.current){if(g.current=!0,tW("bannerClose",{source:"banner"},d),e(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){C(),t();return}j(),v(!0)}},children:(0,n.jsx)(t$,{size:24})})]})})]})},tY={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tq={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tJ=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tQ({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...tY,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(tJ,{viewBox:"0 0 24 24",style:tq}))}tQ.displayName="IconFdsCloseO";let tK={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tX={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tZ(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let t0=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("defs",null,p.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},p.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),p.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),p.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},p.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),p.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},p.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function t1({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...tK,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tZ(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(t0,{viewBox:"0 0 24 24",style:tX}))}t1.displayName="IconFdsGosuslugiColoredO";let t2=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function t4({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...tK,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tZ(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(t2,{viewBox:"0 0 24 24",style:tX}))}t4.displayName="IconFdsShieldCheckO";let t7=({onOpenCertificatesPage:e,onOpenYandexBrowserPage:t,onContinue:l})=>{let i=(0,p.useRef)(null),s=`certificates-warning-gosuslugi-${(0,p.useId)().replaceAll(":","")}`;return(0,p.useLayoutEffect)(()=>{var e,t;let n=null==(e=i.current)?void 0:e.querySelector("linearGradient"),l=null==(t=i.current)?void 0:t.querySelector('path[fill^="url("]');n&&l&&(n.id=s,l.setAttribute("fill",`url(#${s})`))},[s]),(0,n.jsxs)("div",{className:tM.content,children:[(0,n.jsx)("div",{className:tM.image,children:(0,n.jsx)(t4,{size:64})}),(0,n.jsxs)("div",{className:tM.text,children:[(0,n.jsx)("h2",{className:tM.title,children:"Установите сертификаты Минцифры"}),(0,n.jsx)("p",{className:tM.description,children:"Без них российские сайты и оплата услуг могут не работать. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"})]}),(0,n.jsxs)("div",{className:tM.actions,children:[(0,n.jsxs)("div",{className:tM.primaryActions,children:[(0,n.jsx)(c.Button,{className:`${tM.button} ${tM.gosuslugiButton}`,label:"Установить сертификаты",iconLeft:(0,n.jsx)("span",{ref:i,className:tM.gosuslugiIcon,children:(0,n.jsx)(t1,{size:20})}),size:"m",stretch:!0,onClick:e}),(0,n.jsx)(c.Button,{className:tM.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,n.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy",width:24,height:24}),size:"m",stretch:!0,variant:"secondary",onClick:t})]}),l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eW,{className:tM.divider}),(0,n.jsx)(c.Button,{className:tM.button,label:"Продолжить в текущем браузере",size:"m",stretch:!0,variant:"secondary",appearance:"outline",onClick:l}),(0,n.jsx)("p",{className:tM.explanation,children:"Можно продолжить и без установки. Браузер покажет предупреждение о незащищенном соединении — пропустите его и нажмите «Перейти на сайт»"})]})]})]})},t3=({isOpen:e,analyticsContext:t,onClose:l,onOpenCertificatesPage:i,onOpenYandexBrowserPage:s,onContinue:o})=>{let a=(0,h.useBreakpointUp)("l"),r=(0,p.useRef)(null),c=(0,p.useRef)(!1),d=(0,p.useRef)(!1),u=(0,p.useRef)(!1),m=(0,p.useRef)(t);(0,p.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]),(0,p.useEffect)(()=>{if(m.current=e?t:null,!e){d.current=!1,u.current=!0;return}d.current||(u.current=!1,t&&(d.current=!0,tW("popupShown",t,a)))},[t,a,e]);let f=(0,p.useCallback)(()=>c.current&&e&&!u.current&&m.current===t,[t,e]),g=(0,p.useCallback)(()=>{f()&&(u.current=!0,t&&tW("popupClosed",t,a),l())},[t,f,a,l]),w=()=>{f()&&(t&&tW("popupCloseButton",t,a),g())},v=(e,n)=>()=>{f()&&(t&&tW(e,t,a),n())},x=(0,n.jsx)(t7,{onOpenCertificatesPage:v("popupInstall",i),onOpenYandexBrowserPage:v("popupYandex",s),onContinue:o?v("popupContinue",o):void 0});return(0,p.useEffect)(()=>{if(!e)return;let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=window.setTimeout(()=>{var e;if(!a){null==(e=r.current)||e.focus();return}let t=document.querySelector(`.${tM.desktopCloseButton}`);null==t||t.focus()},120),l=e=>{a||"Escape"===e.key&&g()};return document.addEventListener("keydown",l),()=>{window.clearTimeout(n),document.removeEventListener("keydown",l),null==t||t.focus()}},[g,a,e]),a?(0,n.jsxs)(eU.Modal,{className:tM.modal,open:e,size:"m",noPadding:!0,header:{withoutCloseBtn:!0},"aria-label":"Установите сертификаты Минцифры",onClose:g,children:[(0,n.jsx)("button",{className:tM.desktopCloseButton,type:"button","aria-label":"Закрыть",onClick:w,children:(0,n.jsx)(tQ,{size:24})}),x]}):(0,n.jsx)(K,{children:(0,n.jsx)(Q,{className:tM.mobilePopup,contentClassName:tM.mobileContentContainer,isOpen:e,isSmallPopup:!0,onClose:g,closeButton:(0,n.jsx)("button",{className:tM.mobileCloseButton,type:"button","aria-label":"Закрыть",onClick:w,children:(0,n.jsx)(tQ,{size:24})}),children:(0,n.jsx)("div",{ref:r,className:tM.mobileDialog,role:"dialog","aria-modal":"true","aria-label":"Установите сертификаты Минцифры",tabIndex:-1,children:x})})})},t5=new Map,t6=e=>{if(typeof window>"u")return"1"===t5.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===t5.get(e)}catch{return"1"===t5.get(e)}},t8=e=>{if(t5.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch{}},t9=(e,t)=>{if(!e)return null;try{let n,l,i=new URL(e.toString(),t.href);return"http:"!==i.protocol&&"https:"!==i.protocol||(n=i.hostname,l=t.hostname,n===l||"finuslugi.ru"===n||n.endsWith(".finuslugi.ru"))?null:i}catch{return null}},ne={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},nt={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},nn=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nl({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ne,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(nn,{viewBox:"0 0 24 24",style:nt}))}nl.displayName="IconFdsLocationO";let ni={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ns={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function no(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let na=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("defs",null,p.createElement("clipPath",{id:"fds-close-circle-o_svg__a"},p.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),p.createElement("g",{clipPath:"url(#fds-close-circle-o_svg__a)"},p.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm1.5 0a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm12.28-2.72L13.06 12l2.72 2.72a.743.743 0 010 1.06.742.742 0 01-1.06 0L12 13.06l-2.72 2.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 8.22 9.28a.743.743 0 010-1.06.743.743 0 011.06 0L12 10.94l2.72-2.72a.743.743 0 011.06 0 .743.743 0 010 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function nr({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ni,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&no(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(na,{viewBox:"0 0 24 24",style:ns}))}nr.displayName="IconFdsCloseCircleO";let nc=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm8.872-4.977C13.657 7.18 15 8.15 15 9.761c0 .698-.179 1.238-.504 1.665-.307.401-.704.644-.98.812-.313.191-.477.293-.595.43-.083.096-.17.246-.17.584a.75.75 0 01-1.5 0c0-.66.193-1.164.531-1.558.28-.326.64-.544.89-.695l.062-.037c.287-.175.452-.29.568-.442.096-.126.198-.335.198-.759 0-.633-.532-1.158-1.309-1.252-.716-.087-1.454.236-1.717 1.2a.75.75 0 01-1.447-.394c.486-1.78 1.998-2.454 3.345-2.292zM11.999 15a1 1 0 10.002 2 1 1 0 00-.002-2z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nd({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ni,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&no(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(nc,{viewBox:"0 0 24 24",style:ns}))}nd.displayName="IconFdsQuestionCircleO";let nu=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M10.5 2a8.5 8.5 0 105.456 15.018l4.763 4.762a.75.75 0 001.06-1.06l-4.762-4.763A8.5 8.5 0 0010.5 2zm-7 8.5a7 7 0 1114 0 7 7 0 01-14 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function np({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...ni,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&no(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(nu,{viewBox:"0 0 24 24",style:ns}))}np.displayName="IconFdsSearchO";let nm=e1(),nh=e4(nm),nf={regions:nm,towns:nh,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},ng=(0,p.createContext)(nf);function nw(){return(0,p.useContext)(ng)}let nv=({children:e,initialRegion:t,initialTown:l,showStartGeoPopup:i=!0,lastRegionsUpdateUnixTimestamp:s,dadataUrl:o="https://finuslugi.ru/backend/money/dadata",showcaseUrl:a="",useNewCitiesApi:r=!1})=>{let c=eQ(r),u=Number(e0(c.lastRegionsUpdateUnixTimestamp)||0),m=Number(s||0)>u,[h,f]=(0,p.useState)(e1(r)),g=(0,p.useRef)(h),[{startRegion:w,startTown:v},x]=(0,p.useState)({startRegion:nf.startRegion,startTown:nf.startTown}),b=t??nf.region,_=l??nf.town,[{region:y,town:C},j]=(0,p.useState)({region:b,town:_}),[N,k]=(0,p.useState)(nf.startPopupVisible),[$,z]=(0,p.useState)(nf.popupVisible),S=(0,p.useRef)(""),E=(0,p.useRef)(!1),I=(0,p.useMemo)(()=>e4(h),[h]);(0,p.useEffect)(()=>{g.current=h},[h]);let O=(0,p.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)||""),k(!0),x({startRegion:e,startTown:t})},[k,x]),R=(0,p.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||O(e,t)},[O]),T=(0,p.useCallback)(()=>{if(S.current&&!y&&!C){let e=I.find(e=>e.name===S.current)??null;return R(h.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}R(y,C)},[y,C,I,h,R]),A=(0,p.useCallback)(e=>{z(e)},[z]),L=(0,p.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(c.allRussiaSelected,"1"),window.localStorage.setItem(c.userRegion,""),window.localStorage.setItem(c.userTown,""),eX(null,null,r);return}window.localStorage.setItem(c.allRussiaSelected,"0"),window.localStorage.setItem(c.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(c.userTown,JSON.stringify(t)||""),eX(e||null,t||null,r)},[c,r]),P=(0,p.useCallback)(e=>{e?tl(d.D.icon,"location"):tl(d.D.button,(null==C?void 0:C.name)||"Вся Россия"),!i||window.sessionStorage.getItem("start_popup_opened")?A(!0):T()},[i,C,A,T]),B=(0,p.useCallback)((e,t)=>{L(e,t),j({region:e||null,town:t||null}),k(!1),A(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[A,L]),M=()=>{let e=eZ(c.userRegion)??e0(c.userRegion),t=eZ(c.userTown)??e0(c.userTown),n=e6(g.current,e,t),l=r&&(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId);l&&(E.current=!0),l&&e8(n.region,n.town)&&(L(n.region,n.town),E.current=!1),j(n);let s=async({coords:{latitude:e,longitude:t}})=>{let n=`${o}?lat=${e}&lon=${t}`,l=await tn(n);null!=l&&l.location&&(S.current=l.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&i)try{navigator.geolocation.getCurrentPosition(s,()=>null)}catch{}};return(0,p.useEffect)(()=>{(!((e,t=!1)=>!(e.length<1)&&(!t||e2(e)))(h,r)||m)&&tt({showcaseUrl:a,useNewCitiesApi:r}).then(e=>{e.length<1||f(e)})},[]),(0,p.useEffect)(()=>{if(!r)return;let e=e6(h,y,C);E.current&&e8(e.region,e.town)&&(L(e.region,e.town),E.current=!1),j(e)},[h,y,L,C,r]),(0,p.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{M(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{M()},0)},[]),(0,n.jsx)(ng.Provider,{value:{regions:h,towns:I,region:y,town:C,startPopupVisible:N,setStartPopupVisible:k,popupVisible:$,handleToggleModal:A,selectCity:B,handleButtonClick:P,startRegion:w,startTown:v},children:e})},nx=(0,r.g)("city-select-modal-body","sc"),nb=Object.freeze({wrapper:`${nx}__wrapper`,subtitle:`${nx}__subtitle`,hintWrapper:`${nx}__hint-wrapper`,hintText:`${nx}__hint-text`,input:`${nx}__input`,chips:`${nx}__chips`,townsListWrapper:`${nx}__towns-list-wrapper`,townsList:`${nx}__towns-list`,townsGroup:`${nx}__towns-group`,townsGroupLabel:`${nx}__towns-group-label`,townsGroupList:`${nx}__towns-group-list`,townsName:`${nx}__towns-name`,regionName:`${nx}__region-name`}),n_=({groupedTowns:e,chips:t,query:l,setQuery:i,isDrawer:s})=>{var o;let a=nw(),r=(0,p.useRef)(null),[c,u]=(0,p.useState)("10000px");(0,p.useEffect)(()=>{if(!s||!r.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,l)=>{let i=n.map(e=>[...e]),s=i.map(e),o=s.reduce((e,t,n)=>t<s[e]?n:e,0);0===o&&i[0].push(i[1].shift()),2===o&&i[2].unshift(i[1].pop()),1===o&&s[0]>s[2]&&i[1].unshift(i[0].pop()),1===o&&s[0]<s[2]&&i[1].push(i[2].shift());let a=Math.max(...i.map(e));return a>=l?l:t(i,a)};new ResizeObserver(()=>{var e;if(!(null!=(e=r.current)&&e.children))return;let n=Array.from(r.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let l=0;try{l=t([[],n,[]],1/0)}catch{l=0}l>0&&u(`${l}px`)}).observe(r.current)},[]);let m=e=>{if(tl(d.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return a.selectCity();let t=a.regions.find(t=>t.id===Number(e.parentId))||null;a.selectCity(t,e)};return(0,n.jsxs)("div",{className:nb.wrapper,children:[(0,n.jsxs)("div",{className:nb.subtitle,children:["Покажем предложения рядом с вами",(0,n.jsxs)("div",{className:nb.hintWrapper,children:[(0,n.jsx)(nd,{size:24}),(0,n.jsx)("div",{className:nb.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,n.jsx)(eG.InputBase,{className:nb.input,value:l,onChange:i,size:"s",placeholder:"Введите название города",icon:l?(0,n.jsx)(nr,{size:24,onClick:()=>i("")}):(0,n.jsx)(np,{size:24})}),(0,n.jsx)(eV.Chips,{className:nb.chips,chips:t,value:(null==(o=a.town)?void 0:o.id)||0,onChipClick:e=>{m(a.towns.find(t=>t.id===e))}}),(0,n.jsx)("div",{className:nb.townsListWrapper,children:(0,n.jsx)("div",{ref:r,className:nb.townsList,style:{maxHeight:c},children:e.map(e=>(0,n.jsxs)("div",{className:nb.townsGroup,children:[(0,n.jsx)("div",{className:nb.townsGroupLabel,children:e.letter}),(0,n.jsx)("div",{className:nb.townsGroupList,children:e.towns.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>m(e),children:[(0,n.jsx)("div",{className:nb.townsName,children:e.name}),(0,n.jsx)("div",{className:nb.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},ny=[1095,1096,134,720,189,180],nC=()=>{var e;let t=nw(),l=(0,h.useBreakpointUp)("l"),[i,s]=(0,p.useState)(""),o=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,a=(0,p.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]),r=(0,p.useMemo)(()=>[{id:0,label:"Вся Россия"},...ny.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=()=>{tl(d.D.button,"close"),t.handleToggleModal(!1)};return(0,n.jsxs)(K,{children:[!l&&(0,n.jsx)(Q,{title:o,isOpen:t.popupVisible,onClose:c,full:!0,children:(0,n.jsx)(n_,{groupedTowns:a,chips:r,query:i,setQuery:s})}),l&&(0,n.jsx)(M,{title:o,isOpen:t.popupVisible,onClose:c,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,n.jsx)(n_,{groupedTowns:a,chips:r,query:i,setQuery:s,isDrawer:!0})})]})},nj=({label:e,onClick:t,eventActionText:l,eventLabel:i,...s})=>(0,n.jsx)(c.Button,{label:e,onClick:e=>{null==t||t(e),(0,d.h)({eventCategory:eF.H,eventActionType:d.D.button,eventActionText:l||"",eventLabel:i||""})},...s}),nN={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},nk={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},n$=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nz({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...nN,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(n$,{viewBox:"0 0 24 24",style:nk}))}nz.displayName="IconFdsCloseO";let nS=(0,r.g)("header-popup","sc"),nE=Object.freeze({popup:`${nS}__popup`,popupHeader:`${nS}__popup-header`,popupClose:`${nS}__popup-close`,body:`${nS}__body`}),nI=({isOpen:e,onClose:t,children:l,title:i})=>{let s=(0,h.useBreakpointUp)("l");return(0,n.jsxs)(K,{children:[!s&&(0,n.jsx)(Q,{title:i,isOpen:e,onClose:t,children:l}),s&&e&&(0,n.jsxs)("div",{className:nE.popup,children:[(0,n.jsxs)("div",{className:nE.popupHeader,children:[i,(0,n.jsx)(nj,{className:nE.popupClose,iconLeft:(0,n.jsx)(nz,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,n.jsx)("div",{className:nE.body,children:l})]})]})},nO=(0,r.g)("start-choice-popup","sc"),nR=Object.freeze({top:`${nO}__top`,progress:`${nO}__progress`,innerCircle:`${nO}__inner-circle`,title:`${nO}__title`,subtitle:`${nO}__subtitle`,actions:`${nO}__actions`}),nT=()=>{var e,t;let l=nw(),[i,s]=(0,p.useState)(10),[o,a]=(0,p.useState)(0),r=(0,p.useRef)(void 0),c=()=>{tl(d.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(l.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(l.startRegion)||""),l.setStartPopupVisible(!1)};return(0,p.useEffect)(()=>{let e,t,n,o;l.startPopupVisible?(t=1e3*(e=Number((" "+i).slice(1)))/100,n=0,o=0,r.current=setInterval(()=>{n++,o+=t,a(3.6*n);let l=e-Math.floor(o/1e3);l<i&&s(l),100===n&&(clearInterval(r.current),c())},t)):(clearInterval(r.current),s(10),a(0))},[l.startPopupVisible]),(0,n.jsxs)(nI,{isOpen:l.startPopupVisible,onClose:c,title:(0,n.jsx)("button",{type:"button",className:nR.progress,style:{background:`conic-gradient(#ff0508 ${o}deg, #e3e7ec 0deg)`},onClick:c,children:(0,n.jsx)("div",{className:nR.innerCircle,children:i})}),children:[(0,n.jsxs)("div",{className:nR.top,children:[(0,n.jsxs)("div",{className:nR.title,children:["Ваш город ",(null==(e=l.startTown)?void 0:e.name)||(null==(t=l.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,n.jsx)("div",{className:nR.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,n.jsxs)("div",{className:nR.actions,children:[(0,n.jsx)(nj,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{tl(d.D.button,"Да, все верно"),l.selectCity(l.startRegion,l.startTown)},children:"Да, все верно"}),(0,n.jsx)(nj,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{tl(d.D.button,"Нет, изменить"),l.setStartPopupVisible(!1),l.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},nA=(0,r.g)("city-select","sc"),nL=Object.freeze({button:`${nA}__button`,minimal:`${nA}__minimal`,full:`${nA}__full`}),nP=({initialTown:e})=>{var t;let l=nw(),i=(null==(t=l.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:o,isChatModalOpen:a}=tT(),{startPopupVisible:r,setStartPopupVisible:d,popupVisible:u}=l,m=(0,p.useRef)();(0,p.useEffect)(()=>{u&&(m.current="popup")},[u]),(0,p.useEffect)(()=>{a&&(m.current="chat")},[a]),(0,p.useEffect)(()=>{r&&(m.current="startPopup")},[r]),(0,p.useEffect)(()=>{m.current&&("chat"===m.current&&r?d(!1):["startPopup","popup"].includes(m.current)&&a&&o(!1))},[u,a,r,d,o]);let h={appearance:"ghost",size:"xs",onClick:()=>l.handleButtonClick(!1),iconLeft:(0,n.jsx)(nl,{size:24})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{...h,className:(0,s.default)(nL.button,nL.full),label:i}),(0,n.jsx)(c.Button,{...h,className:(0,s.default)(nL.button,nL.minimal),shape:"icon"}),(0,n.jsx)(nC,{}),(0,n.jsx)(nT,{})]})},nB=({onClick:e,eventActionType:t,eventActionText:l,eventLabel:i,...s})=>(0,n.jsx)(u.Link,{onClick:n=>{null==e||e(n),(0,d.h)({eventCategory:eF.H,eventActionType:t||d.D.link,eventActionText:l||"",eventLabel:i||""})},...s}),nM={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},nF={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},nU=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nD({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...nM,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(nU,{viewBox:"0 0 24 24",style:nF}))}nD.displayName="IconFdsCloseO";let nH=(0,r.g)("header-mobile-app-banner","sc"),nW=Object.freeze({wrapper:`${nH}__wrapper`,container:`${nH}__container`,closeButton:`${nH}__close-button`,innerWrapper:`${nH}__inner-wrapper`,imageWrapper:`${nH}__image-wrapper`,image:`${nH}__image`,title:`${nH}__title`,description:`${nH}__description`,callToAction:`${nH}__call-to-action`,scanQr:`${nH}__scan-qr`}),nV=Object.freeze({mobile:56,desktop:68}),nG="headerBannerShownAt",nY=({minioUrl:e,className:t,mobileAppUrl:l})=>{let{fixedContainerRef:o,headerRef:r}=tT(),[u,m]=(0,p.useState)(!1),[h,f]=(0,p.useState)(!1),[g,w]=(0,p.useState)(!1),v=(0,p.useCallback)((e="desktop")=>{let t=o.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${nV[e]+eF.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${nV.desktop+eF.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${nV.mobile+eF.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${nV.mobile+eF.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${nV.desktop+eF.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${nV[e]+108}px`))},[]),x=(0,p.useCallback)(()=>{let e=o.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,p.useEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{h&&m(!1),w(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[h]),(0,p.useEffect)(()=>{let e;(!(e=(()=>{let e=localStorage.getItem(nG);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t})())||Math.floor((e.getTime()-new Date().getTime())/864e5)>5)&&m(!0)},[]),(0,p.useEffect)(()=>{let e=window.innerWidth<768;u&&(v(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?m(!0):w(!0));let t=()=>{if(!u)return null;v(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{x(),window.removeEventListener("resize",t)}},[u,v,x]),u?(0,n.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":g,className:(0,s.default)(nW.wrapper,t),children:(0,n.jsx)(i.Container,{children:(0,n.jsxs)("div",{className:nW.container,children:[(0,n.jsxs)("div",{className:nW.innerWrapper,children:[(0,n.jsxs)("picture",{className:nW.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:nW.image,src:(0,a.joinURL)(e,"/logo/finuslugi/default-regular.svg"),loading:"lazy"})]}),(0,n.jsxs)("div",{className:nW.scanQr,children:[(0,n.jsx)("div",{className:nW.title,children:"Скачайте приложение Финуслуги"}),(0,n.jsx)("div",{className:nW.description,children:"Сканируйте QR-код"})]}),(0,n.jsxs)("div",{className:nW.callToAction,children:[(0,n.jsxs)("div",{children:["Приложение",(0,n.jsx)("br",{}),"Финуслуги"]}),(0,n.jsx)(c.Button,{onClick:()=>{(0,eM.h)(d.D.button,"skachat_mob_prilozheniye_fu"),window.open(l,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,n.jsx)("div",{"aria-label":"Закрыть",role:"button",className:nW.closeButton,onClick:()=>{localStorage.setItem(nG,new Date().toISOString()),x(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?m(!1):f(!0)},children:(0,n.jsx)(nD,{size:"100%"})})]})})}):null},nq={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},nJ={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function nQ(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let nK=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M7.22 12.53a.75.75 0 010-1.06l6.5-6.5a.75.75 0 111.06 1.06L8.81 12l5.97 5.97a.75.75 0 11-1.06 1.06l-6.5-6.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nX({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...nq,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&nQ(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(nK,{viewBox:"0 0 24 24",style:nJ}))}nX.displayName="IconFdsChevronLeftO";let nZ=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function n0({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...nq,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&nQ(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(nZ,{viewBox:"0 0 24 24",style:nJ}))}n0.displayName="IconFdsChevronRightSmallO";let n1=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function n2({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...nq,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&nQ(n),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(n1,{viewBox:"0 0 24 24",style:nJ}))}n2.displayName="IconFdsLocationO";let n4=(0,r.g)("header-chat-modal-body","sc"),n7=Object.freeze({wrapper:`${n4}__wrapper`,cardButton:`${n4}__card-button`,card:`${n4}__card`,cardTitle:`${n4}__card-title`,cardSubtitle:`${n4}__card-subtitle`,button:`${n4}__button`}),n3=()=>{let e=tT();return(0,n.jsxs)("div",{className:n7.wrapper,children:[(0,n.jsx)(nj,{className:n7.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)(m.Card,{className:n7.card,variant:"secondary",children:[(0,n.jsxs)("div",{className:n7.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:n7.cardSubtitle,children:["Виртуальный ассистент доступен 24/7, ",(0,n.jsx)("br",{}),"операторы — с 6:00 до 23:59 мск"]})]})}),!1]})},n5={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},n6={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},n8=e=>p.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function n9({className:e,style:t,boxSize:n,size:l,onClick:i}){return p.default.createElement("span",{className:e,style:{...n5,...i&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},p.default.createElement(n8,{viewBox:"0 0 24 24",style:n6}))}n9.displayName="IconFdsArrowUpRightSmallO";let le=({data:e,isMobile:t})=>{let l=tT();return(0,n.jsx)("div",{className:ti.s.contentWrapper,children:e.map(e=>(0,n.jsx)(p.Fragment,{children:e.sections.map(e=>{var i;return(0,n.jsxs)("div",{className:(0,s.default)(ti.s.content,{[ti.s.hidden]:l.openedSection!==e.id,[ti.s.contentOpen]:!!l.openedSection}),children:[(0,n.jsx)("div",{className:ti.s.contentHeader,children:(0,n.jsx)("label",{children:e.title})}),null==(i=e.content)?void 0:i.map((l,i)=>{var o,a;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:(0,n.jsx)("a",{className:(0,s.default)(ti.s.contentTitle,{[ti.s.removed]:!l.title,[ti.s.contentTitleUrl]:!!l.url,[ti.s.contentTitleLink]:!!e.isSeeAllLinkAvailable,[ti.s.contentTitleNew]:!!l.new}),href:e.isSeeAllLinkAvailable?l.url:void 0,children:(0,n.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,n.jsx)("div",{className:ti.s.arrowIcon,children:(0,n.jsx)(n9,{})}),l.title]})})}),!(null!=(o=l.links)&&o.length)&&(0,n.jsx)(ti.N,{items:l.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(a=l.links)&&a.length)&&(0,n.jsx)("div",{className:(0,s.default)(ti.s.links,{[ti.s.linksColumns]:!!l.columns,[ti.s.linksTitleless]:!l.title}),children:l.links.map(e=>(0,n.jsxs)("a",{href:e.url,onClick:()=>(0,eM.h)(d.D.link,e.title,`${e.title}_${e.url}`),children:[(0,n.jsx)("div",{className:ti.s.arrowIcon,children:(0,n.jsx)(n9,{})}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{children:e.title}),!!e.new&&(0,n.jsx)("span",{className:(0,s.default)({[ti.s.newInline]:!!e.new})})]})]},e.url))})]},`${l.url}_${i}`)})]},e.id)})},e.id))})},lt=(0,r.g)("navigation-section-icon","sc"),ln=Object.freeze({icon:`${lt}`}),ll={IconFdsAcademicCapO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsAcademicCapO),IconFdsBankO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsBankO),IconFdsBookOpenO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsBookOpenO),IconFdsCalculatorO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCalculatorO),IconFdsCardO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCardO),IconFdsChatDotsCircleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsChatDotsCircleO),IconFdsCoinMultipleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCoinMultipleO),IconFdsDotsHorizontalO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsDotsHorizontalO),IconFdsFlashO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsFlashO),IconFdsGraphO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsGraphO),IconFdsLayoutHorizontalO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsLayoutHorizontalO),IconFdsPortfolioO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsPortfolioO),IconFdsRubleCircleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsRubleCircleO),IconFdsSafeO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsSafeO),IconFdsShieldCheckO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsShieldCheckO),IconFdsWalletO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsWalletO)},li=e=>Object.prototype.hasOwnProperty.call(ll,e),ls=({name:e,background:t})=>{let[l,i]=(0,p.useState)(null);if((0,p.useEffect)(()=>{if(!e||!li(e))return void i(null);let t=!0;return ll[e]().then(n=>{t&&i({name:e,component:n})}).catch(()=>{t&&i(null)}),()=>{t=!1}},[e]),!e||!li(e))return null;let s=(null==l?void 0:l.name)===e?l.component:null;return(0,n.jsx)("div",{className:ln.icon,style:{background:t},children:s&&(0,n.jsx)(s,{})})},lo=(0,r.g)("navigation","sc"),la=Object.freeze({navigation:`${lo}`,navigationOpening:`${lo}--opening`,navigationClosing:`${lo}--closing`,wrapper:`${lo}__wrapper`,container:`${lo}__container`,containerOpen:`${lo}__container--open`,sections:`${lo}__sections`,sectionsOpen:`${lo}__sections--open`,citySelectButton:`${lo}__city-select-button`,sectionsTitle:`${lo}__sections-title`,sectionsWrapper:`${lo}__sections-wrapper`,section:`${lo}__section`,sectionArrow:`${lo}__section-arrow`,sectionExtra:`${lo}__section--extra`,sectionActive:`${lo}__section--active`,sectionTitle:`${lo}__section-title`,chatWrapper:`${lo}__chat-wrapper`,chatHeader:`${lo}__chat-header`,backButton:`${lo}__back-button`,useful:`${lo}__useful`,usefulOpen:`${lo}__useful--open`,usefulTitle:`${lo}__useful-title`,usefulGrid:`${lo}__useful-grid`,removed:`${lo}__removed`}),lr=({data:e})=>{var t;let l=tT(),o=nw(),a=(0,h.useBreakpointDown)("m"),[r,u]=(0,p.useState)(!0);(0,p.useEffect)(()=>{u(a)},[a]);let m=(0,p.useRef)(null),f=(0,p.useCallback)(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>l.openedSection?l.setOpenedSection(null):l.isNavigationOpen?l.setOpenedBlock(null):void 0,50)},[l]),g=(0,p.useRef)(!1),w=(0,p.useRef)(null),v=(0,p.useCallback)(()=>{r&&(g.current=!0,w.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),f()},window.history.pushState(null,"",window.location.href))},[f,r]),x=(0,p.useCallback)(()=>{g.current=!1,window.onpopstate=w.current,window.history.go(-1)},[]),b=(0,p.useRef)(null),_=(0,p.useCallback)(e=>{if(r||!l.navMenuItemsRef.current||!l.navigationRef.current)return;let t=e.target,n=!l.navMenuItemsRef.current.contains(t)&&!l.navigationRef.current.contains(t);if(n&&!b.current){l.setIgnoreClicks(),b.current=setTimeout(()=>l.setOpenedBlock(null),300);return}!n&&b.current&&(clearTimeout(b.current),b.current=null)},[r,l]),y=(0,p.useRef)(null),C=(0,p.useCallback)(e=>{typeof window>"u"||(e?(y.current=_,window.addEventListener("mousemove",y.current)):y.current&&window.removeEventListener("mousemove",y.current))},[_]);(0,p.useEffect)(()=>{C(l.isNavigationOpen),l.isNavigationOpen&&!g.current&&v(),!l.isNavigationOpen&&g.current&&x()},[l.isNavigationOpen]);let j=(e,t)=>()=>{(0,eM.h)(d.D.button,t),l.setOpenedSection(e)},{start:N,clear:k}=tb(),$=()=>{r||k()};return(0,n.jsx)("div",{ref:l.navigationRef,className:(0,s.default)(la.navigation,{[la.removed]:!l.isNavigationMounted,[la.navigationOpening]:l.isNavigationOpen,[la.navigationClosing]:!l.isNavigationOpen}),children:(0,n.jsx)("div",{className:la.wrapper,children:(0,n.jsxs)(i.Container,{className:(0,s.default)(la.container,{[la.containerOpen]:!!l.openedSection}),children:[(0,n.jsxs)("div",{className:(0,s.default)(la.sections,{[la.sectionsOpen]:!!l.openedSection}),children:[(0,n.jsx)(c.Button,{className:la.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>o.handleButtonClick(!1),iconLeft:(0,n.jsx)(n2,{size:24}),label:(null==(t=o.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,n.jsxs)("ul",{className:(0,s.default)(la.sectionsWrapper,{[la.removed]:l.openedBlock!==e.id&&!r}),children:[(0,n.jsx)("div",{className:la.sectionsTitle,children:eF.a[e.id]}),e.sections.map(e=>{let t,i;return(0,n.jsxs)("li",{className:(0,s.default)(la.section,{[la.sectionExtra]:!!e.extra,[la.sectionActive]:l.openedSection===e.id}),onClick:j(e.id,e.title),onMouseEnter:(t=e.id,i=e.title,()=>{r||N(j(t,i),150)}),onMouseLeave:$,children:[l.isNavigationMounted&&(0,n.jsx)(ls,{name:e.uikitIcon,background:e.uikitIconBg}),(0,n.jsx)("span",{className:la.sectionTitle,children:e.title}),(0,n.jsx)("div",{className:la.sectionArrow,children:(0,n.jsx)(n0,{size:24})})]},e.id)})]},e.id)),(0,n.jsxs)("div",{className:la.chatWrapper,children:[(0,n.jsx)("div",{className:la.chatHeader,children:"Нужна помощь?"}),(0,n.jsx)(n3,{})]})]}),(0,n.jsxs)("button",{type:"button",className:(0,s.default)(la.backButton,{[la.removed]:!l.openedSection}),onClick:()=>{(0,eM.h)(d.D.button,"Назад"),l.setOpenedSection(null)},children:[(0,n.jsx)(nX,{size:24}),(0,n.jsx)("span",{children:"Назад"})]}),(0,n.jsx)(le,{data:e,isMobile:r}),(0,n.jsxs)("div",{className:(0,s.default)(la.useful,{[la.usefulOpen]:!!l.openedSection}),children:[(0,n.jsx)("div",{className:la.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,n.jsx)(p.Fragment,{children:e.sections.map(e=>{var t;return(0,n.jsx)("div",{className:(0,s.default)(la.usefulGrid,{[la.removed]:l.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,n.jsxs)("a",{href:e.url,onClick:()=>(0,eM.h)(d.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))]})]})})})},lc=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:l="https://assets.finuslugi.ru/mp-assets",lkUrl:o="https://lk.finuslugi.ru/registration",initialTown:r,isMainBannerPage:u,enableAppHeaderBanner:m=!1,enableCertificatesBanner:h=!1,enableExternalLinkWarning:f=!1,news:g,className:w})=>{let v=tT(),x=(0,p.useMemo)(()=>((e,t,n)=>{var l,i,s,o,r,c,d;let u=(null==(i=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l.findIndex)?void 0:i.call(l,({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 l=n.map(({title:e,url:n})=>({title:e,url:(0,a.joinURL)(t||"",n),new:0}));e.NAVIGATOR[u].content[0].links=l}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]),b=null==e?void 0:e.config,_=!!e&&h&&!!u,y=(({enableCertificatesBanner:e,enableExternalLinkWarning:t,isMainBannerPage:n})=>{let[l,i]=(0,p.useState)("checking"),[s,o]=(0,p.useState)(!1),[a,r]=(0,p.useState)(!1),[c,d]=(0,p.useState)(!1),[u,m]=(0,p.useState)(!1),h=(0,p.useRef)(),f=(0,p.useRef)(!1),g=(0,p.useRef)(!1),w=(0,p.useRef)(!1);(0,p.useRef)(null);let v=(0,p.useRef)(null),x=(0,p.useRef)(null),b=(0,p.useRef)(null),_=e&&n,y=_||t,C=(0,p.useCallback)(e=>{let t=h.current;t?t.call(window,e,"_blank","noopener,noreferrer"):window.open(e,"_blank","noopener,noreferrer")},[]),j=(0,p.useCallback)(()=>{o(!1),w.current=!1,v.current=null,x.current=null,b.current=null,m(!1)},[]),N=(0,p.useCallback)(e=>{t8(tD),g.current=!0,w.current=!1,v.current=e,m("external"===e&&null!==x.current),o(!0)},[]),k=(0,p.useCallback)(()=>!f.current&&("external"===v.current&&!w.current||!g.current),[]),$=(0,p.useCallback)(()=>{"external"!==v.current&&N("external")},[N]);(0,p.useEffect)(()=>{h.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&t8(tF),f.current=e||t6(tF),g.current=t6(tD),d(f.current),r(!0),()=>{x.current=null,b.current=null}},[]),(0,p.useEffect)(()=>{if(a){if(!_)return void i("skipped");i(e=>"shown"===e||"closing"===e||"dismissed"===e?e:c||t6(tU)?"skipped":"shown")}},[c,_,a]),(0,p.useEffect)(()=>{},[j,y,a]),(0,p.useEffect)(()=>{if(!a||!t)return;let e=h.current;if(!e)return;let n=!0,l=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let t=e.target.closest("a[href]");if(!t||e.defaultPrevented)return;let l=t9(t.href,window.location);if(!l||!k())return;e.preventDefault(),null===x.current&&(x.current=l.href,b.current={source:"external_anchor",host:l.hostname});let i=x.current;queueMicrotask(()=>{n&&k()&&x.current===i&&$()})},i=(t,n="_blank",l)=>{let i=t9(t,window.location);return i&&k()?(null===x.current&&(x.current=i.href,b.current={source:"external_window_open",host:i.hostname}),$(),null):e.call(window,t,n,l)};return window.open=i,document.addEventListener("click",l,!0),document.addEventListener("auxclick",l,!0),()=>{n=!1,document.removeEventListener("click",l,!0),document.removeEventListener("auxclick",l,!0),window.open===i&&(window.open=e)}},[t,a,k,$]),(0,p.useEffect)(()=>{var e;t||(x.current=null,(null==(e=b.current)?void 0:e.source)!=="banner"&&(b.current=null),m(!1),"external"===v.current&&j())},[j,t]),(0,p.useEffect)(()=>{_||"banner"===v.current&&j()},[j,_]),(0,p.useEffect)(()=>{y||j()},[j,y]);let z=(0,p.useCallback)(()=>{t8(tU),i("closing")},[]),S=(0,p.useCallback)(()=>{i("dismissed")},[]),E=(0,p.useCallback)(()=>{x.current=null,b.current={source:"banner"},N("banner")},[N]),I=(0,p.useCallback)(()=>{C("https://www.gosuslugi.ru/crt")},[C]),O=(0,p.useCallback)(()=>{C("https://browser.yandex.ru/")},[C]),R=(0,p.useCallback)(()=>{let e=x.current;e&&(t8(tD),g.current=!0,w.current=!0,C(e))},[C]);return{bannerStatus:l,isPopupOpen:s,popupAnalyticsContext:b.current,dismissBanner:z,finishBannerClosing:S,openPopupFromBanner:E,closePopup:j,openCertificatesPage:I,openYandexBrowserPage:O,continueToExternalPage:u?R:void 0}})({enableCertificatesBanner:_,enableExternalLinkWarning:f,isMainBannerPage:!!u}),C="shown"===y.bannerStatus||"closing"===y.bannerStatus,j=!_||"skipped"===y.bannerStatus,N=(0,p.useMemo)(()=>x.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[x]),k=v.isAuth?"Личный кабинет":"Войти",$=u&&v.isHeaderTransparent,z=(e,t,n,l)=>()=>{e!==v.openedBlock?(0,eM.h)(d.D.toggle,t,"on"):(0,eM.h)(d.D.button,"menu_close","on");let i=n?N[e]:"";v.setOpenedBlock(e,i,!!l)},{start:S,clear:E}=tb(),I=e=>()=>{v.ignoreClicks||e()},O=(0,n.jsx)(t3,{isOpen:y.isPopupOpen,analyticsContext:y.popupAnalyticsContext,onClose:y.closePopup,onOpenCertificatesPage:y.openCertificatesPage,onOpenYandexBrowserPage:y.openYandexBrowserPage,onContinue:y.continueToExternalPage});return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:v.headerRef,className:(0,s.default)(eF.s.header,w,{[eF.s.transparent]:$}),children:(0,n.jsxs)("div",{ref:v.fixedContainerRef,className:(0,s.default)(eF.s.fixed,{[eF.s.hidden]:v.isHeaderHidden,[eF.s.navigationOpen]:v.isNavigationOpen}),children:[C&&(0,n.jsx)(tG,{onDismiss:y.dismissBanner,onClosed:y.finishBannerClosing,onOpenDetails:y.openPopupFromBanner,onOpenCertificatesPage:y.openCertificatesPage,onOpenYandexBrowserPage:y.openYandexBrowserPage}),j&&!!(null!=b&&b.appBannerUrl)&&m&&(0,n.jsx)(nY,{mobileAppUrl:b.appBannerUrl,minioUrl:l}),(0,n.jsxs)(i.Container,{className:eF.s.container,children:[(0,n.jsxs)("div",{className:eF.s.leftRow,children:[(0,n.jsx)(nB,{className:eF.s.logo,href:t,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:(0,a.joinURL)(l,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,n.jsx)("img",{src:(0,a.joinURL)(l,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,n.jsx)("nav",{ref:v.navMenuItemsRef,className:eF.s.menuItems,children:(0,n.jsx)("ul",{children:eF.b.map(({id:e,label:t})=>(0,n.jsx)("li",{children:(0,n.jsx)(c.Button,{className:(0,s.default)({[eF.s.menuItemActive]:v.openedBlock===e&&v.isNavigationOpen}),label:t,variant:"white",size:"xs",onClick:I(z(e,t,!0)),onMouseEnter:()=>{v.isNavigationOpen&&e===v.openedBlock||v.setIgnoreClicks(),S(z(e,t,!0,!0),200)},onMouseLeave:E})},e))})}),(0,n.jsx)(nj,{className:(0,s.default)(eF.s.tabletMenuButton,{[eF.s.menuItemActive]:v.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,n.jsx)(tm,{size:24}),onClick:z("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,n.jsxs)("div",{className:(0,s.default)(eF.s.buttonGroup,{[eF.s.whiteIcons]:(null==b?void 0:b.iconColorOnMobileMainBanner)==="white"}),children:[(0,n.jsxs)("div",{className:eF.s.chips,children:[(0,n.jsx)(nj,{as:"a",href:o,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${o}`,iconLeft:(0,n.jsx)(tx,{size:20})}),(0,n.jsx)(nj,{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)(tc,{size:24})})]}),(0,n.jsx)(nj,{className:eF.s.menuButton,size:"xs",shape:$?"icon":"default",appearance:$?"ghost":"fill",label:"Меню",onClick:z("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,n.jsx)(tw,{size:24})}),(0,n.jsxs)("div",{className:eF.s.moreButtons,children:[(0,n.jsx)(nP,{initialTown:r}),(0,n.jsx)(nj,{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)(tu,{size:24}),children:"Онлайн чат"}),(0,n.jsx)(nj,{as:"a",href:o,size:"xs",eventActionText:k,eventLabel:`${k}_${o}`,label:k})]})]}),(0,n.jsxs)(nB,{className:eF.s.auth,href:o,eventActionText:k,eventLabel:`${k}_${o}`,children:[(0,n.jsx)(nj,{size:"xs",shape:"circle-icon",iconLeft:(0,n.jsx)(tx,{}),eventActionText:k,eventLabel:`${k}_${o}`}),(0,n.jsx)("p",{children:k})]}),(0,n.jsx)("div",{className:eF.s.close,children:(0,n.jsx)(nj,{className:eF.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,n.jsx)(tf,{}),onClick:()=>v.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,n.jsx)("div",{className:(0,s.default)(eF.s.overlay,{[eF.s.removed]:!v.isNavigationMounted,[eF.s.overlayOpening]:v.isNavigationOpen,[eF.s.overlayClosing]:!v.isNavigationOpen}),onClick:I(()=>v.setOpenedBlock(null))}),(0,n.jsx)(lr,{data:x,minioUrl:l}),O]}):f?O:null},ld=e=>(0,n.jsx)(tA,{isMainBannerPage:e.isMainBannerPage,children:(0,n.jsx)(lc,{...e})}),lu=(0,r.g)("page-layout","sc"),lp=Object.freeze({main:`${lu}__main`}),lm=(0,l.default)(()=>e.A(56322).then(e=>e.CookiesPlate),{ssr:!1});e.s(["PageLayout",0,function({initialGeo:e,headerData:t,footerData:l,showStartGeoPopup:i=!1,citySelectProviderProps:s,children:o}){let{region:a,town:r}=e??{},c=(null==s?void 0:s.showcaseUrl)??"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(nv,{...s,showcaseUrl:c,showStartGeoPopup:i,initialRegion:a,initialTown:r,children:[t&&(0,n.jsx)(ld,{...t}),(0,n.jsx)("main",{className:lp.main,children:o}),l&&(0,n.jsx)(eB,{...l})]}),(0,n.jsx)(lm,{})]})}],71267)}]);