(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99974,8804,44437,e=>{var n=e.i(71645);let t={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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 o({className:e,style:a,boxSize:r,size:s,onClick:c}){return n.default.createElement("span",{className:e,style:{...t,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...r&&{width:`${r}px`,height:`${r}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...a},...c?{role:"button",tabIndex:"0",onClick:c}:{}},n.default.createElement(l,{viewBox:"0 0 24 24",style:i}))}o.displayName="IconFdsChevronDownO",e.s(["m",0,o],99974);let a={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},r={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},s=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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 c({className:e,style:t,boxSize:i,size:l,onClick:o}){return n.default.createElement("span",{className:e,style:{...a,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},n.default.createElement(s,{viewBox:"0 0 24 24",style:r}))}c.displayName="IconFdsUserO",e.s(["l",0,c],8804);var u=e.i(63687),d=e.i(34650);let p="finuslugi-header-height-change",f=(e,n,t)=>{let i=new Date;i.setTime(i.getTime()+864e5*t);let l=encodeURIComponent(JSON.stringify(n)),o=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${l};expires=${i.toUTCString()};path=/;SameSite=Lax${o}`};e.s(["H",0,p,"h",0,(e,n,t)=>(0,u.h)({eventCategory:d.H,eventActionType:e,eventActionText:n,eventLabel:t}),"i",0,()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{let e;(e=(()=>{let e=new URLSearchParams(window.location.search),n={};for(let[t,i]of Array.from(e.entries()))t.startsWith("utm_")&&(n[t]=i);return Object.keys(n).length>0?n:null})())&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&f("utm_params",e,90),e&&f("utm_last",e,90)}catch(e){console.error("UTM tracking error:",e)}},0)},"s",0,(e,n,t)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),l=!1,o=0,a=0,r=window.innerWidth<768,s=()=>window.scrollY||document.documentElement.scrollTop,c=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},u=()=>{let e=window.innerWidth<768;e!==r&&(r=e,a=0)},d=function(){let r=s(),u=document.getElementById("headerNotice");if((null==u?void 0:u.getAttribute("data-opening"))==="true")return;a||(()=>{let e=document.querySelector(":root");if(e){let n=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));a=Number.isNaN(n)?0:n,o=s()}})();let d=r<a,p=r<((null==i?void 0:i.clientHeight)||0);if(t&&p||d){l=!1,e(!1),n(!0),c(`${a}px`);return}e(l=r>o),l&&setTimeout(()=>n(!1),50),c(l?"0px":`${a}px`),o=r<=0?0:r},f=()=>{a=0,d()};return window.addEventListener("scroll",d),window.addEventListener("resize",u),window.addEventListener(p,f),()=>{window.removeEventListener("scroll",d),window.removeEventListener("resize",u),window.removeEventListener(p,f)}}],44437)},3366,e=>{var n=e.i(71645);let t={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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 o({className:e,style:a,boxSize:r,size:s,onClick:c}){return n.default.createElement("span",{className:e,style:{...t,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...r&&{width:`${r}px`,height:`${r}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...a},...c?{role:"button",tabIndex:"0",onClick:c}:{}},n.default.createElement(l,{viewBox:"0 0 24 24",style:i}))}o.displayName="IconFdsChevronRightSmallO",e.s(["_",0,o])},74100,e=>{var n=e.i(43476),t=e.i(71645),i=e.i(70703),l=e.i(86473),o=e.i(99974),a=e.i(30382),r=e.i(8804);e.i(34348);var s=e.i(47611),c=e.i(60822),u=e.i(7670),d=e.i(85900),p=e.i(57029),f=e.i(63687),h=e.i(22468),m=e.i(40383),v=e.i(44437),g=e.i(34650);e.i(46401);var w=e.i(34986),x=e.i(3366),b=e.i(71121),_=e.i(65019),C=e.i(93562);let k={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},y={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},j=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0110.75 6a1.25 1.25 0 111.254 1.247zM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function O({className:e,style:n,boxSize:i,size:l,onClick:o}){return t.default.createElement("span",{className:e,style:{...k,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...o?{role:"button",tabIndex:"0",onClick:o}:{}},t.default.createElement(j,{viewBox:"0 0 24 24",style:y}))}O.displayName="IconFdsDotsVerticalO";let $=(0,h.g)("navigation-chips","sc"),N=Object.freeze({wrapper:`${$}__wrapper`,gray:`${$}__variantGray`,white:`${$}__variantWhite`,container:`${$}__container`,chip:`${$}__chip`,more:`${$}__chip--more`,active:`${$}__chip--active`,icon:`${$}__icon`,label:`${$}__label`,hidden:`${$}__hidden`}),I=(0,h.g)("navigation-content","sc"),S=Object.freeze({contentWrapper:`${I}__content-wrapper`,content:`${I}__content`,contentOpen:`${I}__content--open`,contentHeader:`${I}__content-header`,contentTitle:`${I}__content-title`,contentTitleUrl:`${I}__content-title--url`,contentTitleLink:`${I}__content-title--link`,contentTitleNew:`${I}__content-title--new`,new:`${I}__new`,newInline:`${I}__new-inline`,vip:`${I}__vip`,arrowIcon:`${I}__arrow-icon`,links:`${I}__links`,linksColumns:`${I}__links--columns`,linksTitleless:`${I}__links--titleless`,removed:`${I}__removed`,hidden:`${I}__content--hidden`}),A=({chip:e,hidden:t,onClick:i,refCallback:l,activeChipId:o})=>{let a=!!i,r=()=>{if(a)return null==i?void 0:i(e.url);(0,v.h)(f.D.chip,e.title,`${e.title}_${e.url}`)},s=(0,n.jsxs)(n.Fragment,{children:[e.icon&&(0,n.jsx)("span",{className:N.icon,"aria-hidden":"true",children:e.icon}),(0,n.jsx)("span",{className:N.label,children:e.title}),e.arrow&&(0,n.jsx)(C.K,{size:24})]}),c=(0,u.f)(N.chip,{[N.hidden]:t,[S.new]:!!e.new,[S.vip]:!!e.vip,[N.active]:e.url===o});return a?(0,n.jsx)("button",{type:"button",className:c,onClick:r,ref:l,children:s}):(0,n.jsx)("a",{href:e.url,className:c,onClick:r,ref:l,children:s})},T=({items:e=[],maxNumberOfLines:i,variant:l,className:o,activeChipId:a,onClick:r,moreButtonOptions:s})=>{let c=(0,t.useRef)(null),d=(0,t.useRef)(null),p=(0,t.useRef)([]),h=(null==s?void 0:s.label)??"Еще",m="Еще",g=(null==s?void 0:s.showIcon)??!0,w=(0,u.f)(N.chip,N.more,null==s?void 0:s.className),[x,b]=(0,t.useState)(!1),[_,C]=(0,t.useState)(e.length),[k,y]=(0,t.useState)(!1),j=(0,t.useCallback)(()=>{let n=c.current;if(!n)return;let t=e=>e?e.getBoundingClientRect().width:0,l=t(n),o=Math.max(Number(i)||0,0),a=()=>{C(e.length),y(!1)};if(x||0===o||l<=0)return void a();let r=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),s=t(d.current),u=e.map((e,n)=>t(p.current[n]));if(u.some(e=>0===e))return void a();let f=1,h=0,m=0;for(let e of u){let n=f===o?s+r:0,t=0===h?e:h+r+e;if(t+n<=l-.5)h=t,m++;else{if(++f>o)break;h=e,m++}}y(m<e.length),C(m)},[x,e,i]);(0,t.useLayoutEffect)(()=>{let e=c.current;if(!e)return;let n=new ResizeObserver(()=>{requestAnimationFrame(j)});return n.observe(e),requestAnimationFrame(j),()=>{n.disconnect()}},[j]),(0,t.useEffect)(()=>{requestAnimationFrame(j)},[j]);let $=x||(i??0)<=0||!k;return(0,n.jsx)("div",{className:(0,u.f)(o,N.wrapper,{[N.gray]:"gray"===l,[N.white]:"white"===l}),children:(0,n.jsxs)("div",{ref:c,className:N.container,children:[e.map((e,t)=>(0,n.jsx)(A,{chip:e,hidden:!$&&t>=_,activeChipId:a,onClick:r,refCallback:e=>{p.current[t]=e}},`${e.url}_${t}`)),!$&&k&&(0,n.jsxs)("button",{type:"button",ref:d,className:w,"aria-label":m,onClick:()=>{(0,v.h)(f.D.chip,m),b(!0)},children:[g&&(0,n.jsx)(O,{size:20}),(0,n.jsx)("span",{className:N.label,children:h})]}),($||!k)&&(0,n.jsxs)("button",{type:"button",ref:d,className:(0,u.f)(w,N.hidden),tabIndex:-1,"aria-hidden":"true",children:[g&&(0,n.jsx)(O,{size:20}),(0,n.jsx)("span",{className:N.label,children:h})]})]})})},R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},B={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},E=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("defs",null,t.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},t.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),t.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},t.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 z({className:e,style:n,boxSize:i,size:l,onClick:o}){return t.default.createElement("span",{className:e,style:{...R,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...o?{role:"button",tabIndex:"0",onClick:o}:{}},t.default.createElement(E,{viewBox:"0 0 24 24",style:B}))}z.displayName="IconFdsChatDotsSquareAddO";let M={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},P={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},F=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("defs",null,t.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},t.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),t.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},t.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 L({className:e,style:n,boxSize:i,size:l,onClick:o}){return t.default.createElement("span",{className:e,style:{...M,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...o?{role:"button",tabIndex:"0",onClick:o}:{}},t.default.createElement(F,{viewBox:"0 0 24 24",style:P}))}L.displayName="IconFdsMenuSkewedO";let W=()=>{let e=(0,t.useRef)(null),n=(0,t.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),i=(0,t.useCallback)((n,t)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,n()},t)},[]);return(0,t.useEffect)(()=>n,[n]),{start:i,clear:n,pending:!!e.current}},H=(0,h.g)("certificates-warning-banner","sc"),D=(0,h.g)("certificates-warning-popup","sc"),U=Object.freeze({wrapper:`${H}`,container:`${H}__container`,content:`${H}__content`,info:`${H}__info`,image:`${H}__image`,text:`${H}__text`,title:`${H}__title`,description:`${H}__description`,details:`${H}__details`,buttons:`${H}__buttons`,button:`${H}__button`,closeButton:`${H}__close-button`,mobileActivator:`${H}__mobile-activator`}),V=Object.freeze({modal:`${D}__modal`,desktopCloseButton:`${D}__desktop-close-button`,mobilePopup:`${D}__mobile-popup`,mobileContentContainer:`${D}__mobile-content-container`,mobileCloseButton:`${D}__mobile-close-button`,mobileDialog:`${D}__mobile-dialog`,content:`${D}__content`,image:`${D}__image`,text:`${D}__text`,title:`${D}__title`,description:`${D}__description`,actions:`${D}__actions`,primaryActions:`${D}__primary-actions`,divider:`${D}__divider`,explanation:`${D}__explanation`,button:`${D}__button`,gosuslugiButton:`${D}__gosuslugi-button`,gosuslugiIcon:`${D}__gosuslugi-icon`}),G="fu_certificates_access_confirmed",q="fu_certificates_banner_dismissed",Y="fu_external_link_warning_shown",K=new Map,J=e=>{if(typeof window>"u")return"1"===K.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===K.get(e)}catch{return"1"===K.get(e)}},Q=e=>{if(K.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch{}},X=(e,n)=>{if(!e)return null;try{let t,i,l=new URL(e.toString(),n.href);return"http:"!==l.protocol&&"https:"!==l.protocol||(t=l.hostname,i=n.hostname,t===i||"finuslugi.ru"===t||t.endsWith(".finuslugi.ru"))?null:l}catch{return null}},Z={"uat-mp.beta.moex.com":"//chat-marketplace.beta.moex.com","finuslugi.ru":"//chat.finuslugi.ru","dev-rc.beta.moex.com":"//dev-opbot.tech.finuslugi.ru"},ee=(0,t.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 en(){return(0,t.useContext)(ee)}let et=e=>{let[i,l]=(0,t.useState)(!1),[o,a]=(0,t.useState)(!1),[r,s]=(0,t.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:d}=(()=>{let[e,n]=(0,t.useState)(!1),[i,l]=(0,t.useState)(!1),o=(0,t.useRef)(!1),a=e=>{o.current=e,l(e)};return(0,t.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(Z,e)?Z[e]:Z["finuslugi.ru"]})(),t="webchat_main";window.supportWidget={craftTalk:{isOpened:!1,setConfig:n=>{if(n.host&&(e=n.host),n.channel&&(t=n.channel),n.user){let e="function"==typeof n.user?n.user:()=>({...n.user});window.__WebchatUserCallback=e}},open:()=>new Promise(e=>{e()}),close:()=>null,toggle:()=>null}};let i=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((l,r)=>{var s,c;let u,d;o.current?r(Error("chat is already opened")):i?(i.openWidget(),n(!1),l()):(a(!0),window.getWebChatCraftTalkExternalControl=e=>{var t;i=e;let o=document.querySelector(".webchat");o&&new MutationObserver(e=>{e.forEach(e=>{if("style"===e.attributeName){let e=document.querySelector(".webchat"),n=!!e&&"none"!==e.style.display;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.isOpened=n)}})}).observe(o,{attributes:!0,attributeFilter:["style"]}),null!=(t=window.supportWidget)&&t.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),a(!1),n(!1),l()},s=e,c=t,(u=document.createElement("link")).rel="stylesheet",u.type="text/css",u.href=`${s}/assets/css/${c}`,document.head.appendChild(u),(d=document.createElement("script")).src=`${s}/get-bootstrap/${c}`,d.defer=!0,document.body.appendChild(d))}),window.supportWidget.craftTalk.toggle=()=>{var e,n,t,i;null!=(n=null==(e=window.supportWidget)?void 0:e.craftTalk)&&n.isOpened?window.supportWidget.craftTalk.close():null==(i=null==(t=window.supportWidget)?void 0:t.craftTalk)||i.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:n,isChatLoading:i}})(),[p,f]=(0,t.useState)(null),[h,g]=(0,t.useState)(null),[w,x]=(0,t.useState)(!1),[b,_]=(0,t.useState)(!1),[C,k]=(0,t.useState)(!1),y=(0,t.useRef)(null),j=(0,m.u)(w),O=(0,t.useRef)(null),$=(0,t.useRef)(null),N=(0,t.useRef)(null),I=(0,t.useRef)(null),S=(0,t.useCallback)(()=>{j.current&&j.current.scrollTo({top:0})},[j]),A=(0,t.useCallback)(e=>{g(e),S()},[S]),T=(0,t.useCallback)(e=>{O.current&&clearTimeout(O.current),e&&_(!0),e||(O.current=setTimeout(()=>{_(!1),A(null)},300))},[A]),R=(0,t.useCallback)((e,n,t)=>{if(n&&A(n),!t&&e===p||!e){T(!w),x(!w);return}f(e),T(!0),x(!0)},[p,A,w,T]),B=(0,t.useCallback)(()=>{$.current&&clearTimeout($.current),k(!0),$.current=setTimeout(()=>{k(!1)},650)},[]);return(0,t.useEffect)(()=>{l(!!document.cookie.includes("auth.gtm_customer_id"));let n=(0,v.s)(a,s,e.isMainBannerPage);return(0,v.i)(),n},[]),(0,n.jsx)("header",{children:(0,n.jsx)(ee.Provider,{value:{isAuth:i,isHeaderHidden:o,isHeaderTransparent:r,openedBlock:p,setOpenedBlock:R,openedSection:h,setOpenedSection:A,isNavigationOpen:w,isNavigationMounted:b,navMenuItemsRef:y,navigationRef:j,ignoreClicks:C,setIgnoreClicks:B,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:d,fixedContainerRef:N,headerRef:I},children:e.children})})},ei=(0,h.g)("city-select","sc"),el=Object.freeze({button:`${ei}__button`,minimal:`${ei}__minimal`,full:`${ei}__full`}),eo=(0,i.default)(()=>e.A(17410).then(e=>e.CitySelectModal),{ssr:!1}),ea=(0,i.default)(()=>e.A(63747).then(e=>e.StartChoicePopup),{ssr:!1}),er=({initialTown:e})=>{var i;let l=(0,p.u)(),o=(null==(i=l.town)?void 0:i.name)||e||"Вся Россия",{setIsChatModalOpen:a,isChatModalOpen:r}=en(),{startPopupVisible:c,setStartPopupVisible:d,popupVisible:f}=l,h=(0,p.a)(f),m=(0,p.a)(c),v=(0,t.useRef)(void 0);(0,t.useEffect)(()=>{f&&(v.current="popup")},[f]),(0,t.useEffect)(()=>{r&&(v.current="chat")},[r]),(0,t.useEffect)(()=>{c&&(v.current="startPopup")},[c]),(0,t.useEffect)(()=>{v.current&&("chat"===v.current&&c?d(!1):["startPopup","popup"].includes(v.current)&&r&&a(!1))},[f,r,c,d,a]);let g={appearance:"ghost",size:"xs",onClick:()=>l.handleButtonClick(!1),iconLeft:(0,n.jsx)(p.Y,{size:24})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.f,{...g,className:(0,u.f)(el.button,el.full),label:o}),(0,n.jsx)(s.f,{...g,className:(0,u.f)(el.button,el.minimal),shape:"icon"}),h&&(0,n.jsx)(eo,{}),m&&(0,n.jsx)(ea,{})]})},es=({label:e,onClick:t,eventActionText:i,eventLabel:l,...o})=>(0,n.jsx)(s.f,{label:e,onClick:e=>{null==t||t(e),(0,f.h)({eventCategory:g.H,eventActionType:f.D.button,eventActionText:i||"",eventLabel:l||""})},...o}),ec=({onClick:e,eventActionType:t,eventActionText:i,eventLabel:l,...o})=>(0,n.jsx)(w.f,{onClick:n=>{null==e||e(n),(0,f.h)({eventCategory:g.H,eventActionType:t||f.D.link,eventActionText:i||"",eventLabel:l||""})},...o}),eu={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ed={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ep=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.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 ef({className:e,style:n,boxSize:i,size:l,onClick:o}){return t.default.createElement("span",{className:e,style:{...eu,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...i&&{width:`${i}px`,height:`${i}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...o?{role:"button",tabIndex:"0",onClick:o}:{}},t.default.createElement(ep,{viewBox:"0 0 24 24",style:ed}))}ef.displayName="IconFdsChevronLeftO";let eh=(0,h.g)("header-chat-modal-body","sc"),em=Object.freeze({wrapper:`${eh}__wrapper`,cardButton:`${eh}__card-button`,card:`${eh}__card`,cardTitle:`${eh}__card-title`,cardSubtitle:`${eh}__card-subtitle`,button:`${eh}__button`}),ev=()=>{let e=en();return(0,n.jsxs)("div",{className:em.wrapper,children:[(0,n.jsx)(es,{className:em.cardButton,variant:"secondary",pending:e.isChatLoading,onClick:()=>{var e,n,t;return null==(t=null==(n=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:n.open)?void 0:t.call(n)},eventActionText:"Напишите в чат",children:(0,n.jsxs)(_.f,{className:em.card,variant:"secondary",children:[(0,n.jsxs)("div",{className:em.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:em.cardSubtitle,children:["Виртуальный ассистент доступен 24/7, ",(0,n.jsx)("br",{}),"операторы — с 6:00 до 23:59 мск"]})]})}),!1]})},eg=({data:e,isMobile:i})=>{let l=en();return(0,n.jsx)("div",{className:S.contentWrapper,children:e.map(e=>(0,n.jsx)(t.Fragment,{children:e.sections.map(e=>{var t;return(0,n.jsxs)("div",{className:(0,u.f)(S.content,{[S.hidden]:l.openedSection!==e.id,[S.contentOpen]:!!l.openedSection}),children:[(0,n.jsx)("div",{className:S.contentHeader,children:(0,n.jsx)("label",{children:e.title})}),null==(t=e.content)?void 0:t.map((t,l)=>{var o,a;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:(0,n.jsx)("a",{className:(0,u.f)(S.contentTitle,{[S.removed]:!t.title,[S.contentTitleUrl]:!!t.url,[S.contentTitleLink]:!!e.isSeeAllLinkAvailable,[S.contentTitleNew]:!!t.new}),href:e.isSeeAllLinkAvailable?t.url:void 0,children:(0,n.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,n.jsx)("div",{className:S.arrowIcon,children:(0,n.jsx)(C.K,{})}),t.title]})})}),!(null!=(o=t.links)&&o.length)&&(0,n.jsx)(T,{items:t.chips||[],maxNumberOfLines:e.content.length<=1?99:i?3:2}),!!(null!=(a=t.links)&&a.length)&&(0,n.jsx)("div",{className:(0,u.f)(S.links,{[S.linksColumns]:!!t.columns,[S.linksTitleless]:!t.title}),children:t.links.map((e,t)=>(0,n.jsxs)("a",{href:e.url,onClick:()=>(0,v.h)(f.D.link,e.title,`${e.title}_${e.url}`),children:[(0,n.jsx)("div",{className:S.arrowIcon,children:(0,n.jsx)(C.K,{})}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{children:e.title}),!!e.new&&(0,n.jsx)("span",{className:(0,u.f)({[S.newInline]:!!e.new})})]})]},`${e.url}_${t}`))})]},`${t.url}_${l}`)})]},e.id)})},e.id))})},ew=(0,h.g)("navigation-section-icon","sc"),ex=Object.freeze({icon:`${ew}`}),eb={IconFdsAcademicCapO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsAcademicCapO),IconFdsBankO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsBankO),IconFdsBookOpenO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsBookOpenO),IconFdsCalculatorO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsCalculatorO),IconFdsCardO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsCardO),IconFdsChatDotsCircleO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsChatDotsCircleO),IconFdsCoinMultipleO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsCoinMultipleO),IconFdsDotsHorizontalO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsDotsHorizontalO),IconFdsFlashO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsFlashO),IconFdsGraphO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsGraphO),IconFdsLayoutHorizontalO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsLayoutHorizontalO),IconFdsPortfolioO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsPortfolioO),IconFdsRubleCircleO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsRubleCircleO),IconFdsSafeO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsSafeO),IconFdsShieldCheckO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsShieldCheckO),IconFdsWalletO:()=>e.A(32424).then(({navigationSectionIcons:e})=>e.IconFdsWalletO)},e_=e=>Object.prototype.hasOwnProperty.call(eb,e),eC=({name:e,background:i})=>{let[l,o]=(0,t.useState)(null);if((0,t.useEffect)(()=>{if(!e||!e_(e))return void o(null);let n=!0;return eb[e]().then(t=>{n&&o({name:e,component:t})}).catch(()=>{n&&o(null)}),()=>{n=!1}},[e]),!e||!e_(e))return null;let a=(null==l?void 0:l.name)===e?l.component:null;return(0,n.jsx)("div",{className:ex.icon,style:{background:i},children:a&&(0,n.jsx)(a,{})})},ek=(0,h.g)("navigation","sc"),ey=Object.freeze({navigation:`${ek}`,navigationOpening:`${ek}--opening`,navigationClosing:`${ek}--closing`,wrapper:`${ek}__wrapper`,container:`${ek}__container`,containerOpen:`${ek}__container--open`,sections:`${ek}__sections`,sectionsOpen:`${ek}__sections--open`,citySelectButton:`${ek}__city-select-button`,sectionsTitle:`${ek}__sections-title`,sectionsWrapper:`${ek}__sections-wrapper`,section:`${ek}__section`,sectionArrow:`${ek}__section-arrow`,sectionExtra:`${ek}__section--extra`,sectionActive:`${ek}__section--active`,sectionTitle:`${ek}__section-title`,chatWrapper:`${ek}__chat-wrapper`,chatHeader:`${ek}__chat-header`,backButton:`${ek}__back-button`,useful:`${ek}__useful`,usefulOpen:`${ek}__useful--open`,usefulTitle:`${ek}__useful-title`,usefulGrid:`${ek}__useful-grid`,removed:`${ek}__removed`}),ej=({data:e})=>{var i;let l=en(),o=(0,p.u)(),a=(0,b.k)("m"),[r,d]=(0,t.useState)(!0);(0,t.useEffect)(()=>{d(a)},[a]);let h=(0,t.useRef)(null),m=(0,t.useCallback)(()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>l.openedSection?l.setOpenedSection(null):l.isNavigationOpen?l.setOpenedBlock(null):void 0,50)},[l]),w=(0,t.useRef)(!1),_=(0,t.useRef)(null),C=(0,t.useCallback)(()=>{r&&(w.current=!0,_.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),m()},window.history.pushState(null,"",window.location.href))},[m,r]),k=(0,t.useCallback)(()=>{w.current=!1,window.onpopstate=_.current,window.history.go(-1)},[]),y=(0,t.useRef)(null),j=(0,t.useCallback)(e=>{if(r||!l.navMenuItemsRef.current||!l.navigationRef.current)return;let n=e.target,t=!l.navMenuItemsRef.current.contains(n)&&!l.navigationRef.current.contains(n);if(t&&!y.current){l.setIgnoreClicks(),y.current=setTimeout(()=>l.setOpenedBlock(null),300);return}!t&&y.current&&(clearTimeout(y.current),y.current=null)},[r,l]),O=(0,t.useRef)(null),$=(0,t.useCallback)(e=>{typeof window>"u"||(e?(O.current=j,window.addEventListener("mousemove",O.current)):O.current&&window.removeEventListener("mousemove",O.current))},[j]);(0,t.useEffect)(()=>{$(l.isNavigationOpen),l.isNavigationOpen&&!w.current&&C(),!l.isNavigationOpen&&w.current&&k()},[l.isNavigationOpen]);let N=(e,n)=>()=>{(0,v.h)(f.D.button,n),l.setOpenedSection(e)},{start:I,clear:S}=W(),A=()=>{r||S()};return(0,n.jsx)("div",{ref:l.navigationRef,className:(0,u.f)(ey.navigation,{[ey.removed]:!l.isNavigationMounted,[ey.navigationOpening]:l.isNavigationOpen,[ey.navigationClosing]:!l.isNavigationOpen}),children:(0,n.jsx)("div",{className:ey.wrapper,children:(0,n.jsxs)(c.f,{className:(0,u.f)(ey.container,{[ey.containerOpen]:!!l.openedSection}),children:[(0,n.jsxs)("div",{className:(0,u.f)(ey.sections,{[ey.sectionsOpen]:!!l.openedSection}),children:[(0,n.jsx)(s.f,{className:ey.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>o.handleButtonClick(!1),iconLeft:(0,n.jsx)(p.Y,{size:24}),label:(null==(i=o.town)?void 0:i.name)||"Вся Россия"}),e.map(e=>(0,n.jsxs)("ul",{className:(0,u.f)(ey.sectionsWrapper,{[ey.removed]:l.openedBlock!==e.id&&!r}),children:[(0,n.jsx)("div",{className:ey.sectionsTitle,children:g.a[e.id]}),e.sections.map(e=>{let t,i;return(0,n.jsxs)("li",{className:(0,u.f)(ey.section,{[ey.sectionExtra]:!!e.extra,[ey.sectionActive]:l.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:(t=e.id,i=e.title,()=>{r||I(N(t,i),150)}),onMouseLeave:A,children:[l.isNavigationMounted&&(0,n.jsx)(eC,{name:e.uikitIcon,background:e.uikitIconBg}),(0,n.jsx)("span",{className:ey.sectionTitle,children:e.title}),(0,n.jsx)("div",{className:ey.sectionArrow,children:(0,n.jsx)(x._,{size:24})})]},e.id)})]},e.id)),(0,n.jsxs)("div",{className:ey.chatWrapper,children:[(0,n.jsx)("div",{className:ey.chatHeader,children:"Нужна помощь?"}),(0,n.jsx)(ev,{})]})]}),(0,n.jsxs)("button",{type:"button",className:(0,u.f)(ey.backButton,{[ey.removed]:!l.openedSection}),onClick:()=>{(0,v.h)(f.D.button,"Назад"),l.setOpenedSection(null)},children:[(0,n.jsx)(ef,{size:24}),(0,n.jsx)("span",{children:"Назад"})]}),(0,n.jsx)(eg,{data:e,isMobile:r}),(0,n.jsxs)("div",{className:(0,u.f)(ey.useful,{[ey.usefulOpen]:!!l.openedSection}),children:[(0,n.jsx)("div",{className:ey.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,n.jsx)(t.Fragment,{children:e.sections.map(e=>{var t;return(0,n.jsx)("div",{className:(0,u.f)(ey.usefulGrid,{[ey.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,v.h)(f.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))]})]})})})},eO=(0,i.default)(()=>e.A(5122).then(e=>e.CertificatesWarningBanner),{ssr:!1}),e$=(0,i.default)(()=>e.A(1286).then(e=>e.CertificatesWarningPopup),{ssr:!1}),eN=(0,i.default)(()=>e.A(64532).then(e=>e.HeaderMobileAppBanner),{ssr:!1}),eI=({data:e,showcaseUrl:i="https://finuslugi.ru",minioUrl:h="https://assets.finuslugi.ru/mp-assets",lkUrl:m="https://lk.finuslugi.ru/registration",initialTown:w,isMainBannerPage:x,enableAppHeaderBanner:b=!1,enableCertificatesBanner:_=!1,enableExternalLinkWarning:C=!1,certificatesWarningProduct:k,news:y,className:j})=>{let O=en(),$=(0,t.useMemo)(()=>((e,n,t)=>{var i,l,o,a,r,s,c;let u=(null==(l=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:l.call(i,({id:e})=>"news"===e))??-1,p=(null==(a=null==(o=null==e?void 0:e.NAVIGATOR)?void 0:o[u])?void 0:a.content)||[];if(null!=(c=null==(s=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[u])?void 0:s.content)&&c[0]&&Array.isArray(t)&&p.length){let i=t.map(({title:e,url:t})=>({title:e,url:(0,d.W)(n||"",t),new:0}));e.NAVIGATOR[u].content[0].links=i}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]})(e,i,y),[e,i,y]),N=null==e?void 0:e.config,I=!!e&&_&&!!x,S=(({enableCertificatesBanner:e,enableExternalLinkWarning:n,isMainBannerPage:i})=>{let[l,o]=(0,t.useState)("checking"),[a,r]=(0,t.useState)(!1),[s,c]=(0,t.useState)(!1),[u,d]=(0,t.useState)(!1),[p,f]=(0,t.useState)(!1),h=(0,t.useRef)(void 0),m=(0,t.useRef)(!1),v=(0,t.useRef)(!1),g=(0,t.useRef)(!1);(0,t.useRef)(null);let w=(0,t.useRef)(null),x=(0,t.useRef)(null),b=(0,t.useRef)(null),_=e&&i,C=_||n,k=(0,t.useCallback)(e=>{let n=h.current;n?n.call(window,e,"_blank","noopener,noreferrer"):window.open(e,"_blank","noopener,noreferrer")},[]),y=(0,t.useCallback)(()=>{r(!1),g.current=!1,w.current=null,x.current=null,b.current=null,f(!1)},[]),j=(0,t.useCallback)(e=>{Q(Y),v.current=!0,g.current=!1,w.current=e,f("external"===e&&null!==x.current),r(!0)},[]),O=(0,t.useCallback)(()=>!m.current&&("external"===w.current&&!g.current||!v.current),[]),$=(0,t.useCallback)(()=>{"external"!==w.current&&j("external")},[j]);(0,t.useEffect)(()=>{h.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&Q(G),m.current=e||J(G),v.current=J(Y),d(m.current),c(!0),()=>{x.current=null,b.current=null}},[]),(0,t.useEffect)(()=>{if(s){if(!_)return void o("skipped");o(e=>"shown"===e||"closing"===e||"dismissed"===e?e:u||J(q)?"skipped":"shown")}},[u,_,s]),(0,t.useEffect)(()=>{},[y,C,s]),(0,t.useEffect)(()=>{if(!s||!n)return;let e=h.current;if(!e)return;let t=!0,i=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let n=e.target.closest("a[href]");if(!n||e.defaultPrevented)return;let i=X(n.href,window.location);if(!i||!O())return;e.preventDefault(),null===x.current&&(x.current=i.href,b.current={source:"external_anchor",host:i.hostname});let l=x.current;queueMicrotask(()=>{t&&O()&&x.current===l&&$()})},l=(n,t="_blank",i)=>{let l=X(n,window.location);return l&&O()?(null===x.current&&(x.current=l.href,b.current={source:"external_window_open",host:l.hostname}),$(),null):e.call(window,n,t,i)};return window.open=l,document.addEventListener("click",i,!0),document.addEventListener("auxclick",i,!0),()=>{t=!1,document.removeEventListener("click",i,!0),document.removeEventListener("auxclick",i,!0),window.open===l&&(window.open=e)}},[n,s,O,$]),(0,t.useEffect)(()=>{var e;n||(x.current=null,(null==(e=b.current)?void 0:e.source)!=="banner"&&(b.current=null),f(!1),"external"===w.current&&y())},[y,n]),(0,t.useEffect)(()=>{_||"banner"===w.current&&y()},[y,_]),(0,t.useEffect)(()=>{C||y()},[y,C]);let N=(0,t.useCallback)(()=>{Q(q),o("closing")},[]),I=(0,t.useCallback)(()=>{o("dismissed")},[]),S=(0,t.useCallback)(()=>{x.current=null,b.current={source:"banner"},j("banner")},[j]),A=(0,t.useCallback)(()=>{k("https://www.gosuslugi.ru/crt")},[k]),T=(0,t.useCallback)(()=>{k("https://browser.yandex.ru/")},[k]),R=(0,t.useCallback)(()=>{let e=x.current;e&&(Q(Y),v.current=!0,g.current=!0,k(e))},[k]);return{bannerStatus:l,isPopupOpen:a,popupAnalyticsContext:b.current,dismissBanner:N,finishBannerClosing:I,openPopupFromBanner:S,closePopup:y,openCertificatesPage:A,openYandexBrowserPage:T,continueToExternalPage:p?R:void 0}})({enableCertificatesBanner:I,enableExternalLinkWarning:C,isMainBannerPage:!!x}),A="shown"===S.bannerStatus||"closing"===S.bannerStatus,T=!I||"skipped"===S.bannerStatus,R=(0,p.a)(S.isPopupOpen),B=(0,t.useMemo)(()=>$.reduce((e,n)=>{var t;return e[n.id]=null==(t=n.sections[0])?void 0:t.id,e},{}),[$]),E=O.isAuth?"Личный кабинет":"Войти",M=x&&O.isHeaderTransparent,P=(e,n,t,i)=>()=>{e!==O.openedBlock?(0,v.h)(f.D.toggle,n,"on"):(0,v.h)(f.D.button,"menu_close","on");let l=t?B[e]:"";O.setOpenedBlock(e,l,!!i)},{start:F,clear:H}=W(),D=e=>()=>{O.ignoreClicks||e()},U=R?(0,n.jsx)(e$,{isOpen:S.isPopupOpen,analyticsContext:S.popupAnalyticsContext,certificatesWarningProduct:k,onClose:S.closePopup,onOpenCertificatesPage:S.openCertificatesPage,onOpenYandexBrowserPage:S.openYandexBrowserPage,onContinue:S.continueToExternalPage}):null;return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:O.headerRef,className:(0,u.f)(g.s.header,j,{[g.s.transparent]:M}),children:(0,n.jsxs)("div",{ref:O.fixedContainerRef,className:(0,u.f)(g.s.fixed,{[g.s.hidden]:O.isHeaderHidden,[g.s.navigationOpen]:O.isNavigationOpen}),children:[A&&(0,n.jsx)(eO,{onDismiss:S.dismissBanner,onClosed:S.finishBannerClosing,onOpenDetails:S.openPopupFromBanner,onOpenCertificatesPage:S.openCertificatesPage,onOpenYandexBrowserPage:S.openYandexBrowserPage}),T&&!!(null!=N&&N.appBannerUrl)&&b&&(0,n.jsx)(eN,{mobileAppUrl:N.appBannerUrl,minioUrl:h}),(0,n.jsxs)(c.f,{className:g.s.container,children:[(0,n.jsxs)("div",{className:g.s.leftRow,children:[(0,n.jsx)(ec,{className:g.s.logo,href:i,eventActionType:f.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${i}`,children:(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:(0,d.W)(h,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,n.jsx)("img",{src:(0,d.W)(h,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,n.jsx)("nav",{ref:O.navMenuItemsRef,className:g.s.menuItems,children:(0,n.jsx)("ul",{children:g.b.map(({id:e,label:t})=>(0,n.jsx)("li",{children:(0,n.jsx)(s.f,{className:(0,u.f)({[g.s.menuItemActive]:O.openedBlock===e&&O.isNavigationOpen}),label:t,variant:"white",size:"xs",onClick:D(P(e,t,!0)),onMouseEnter:()=>{O.isNavigationOpen&&e===O.openedBlock||O.setIgnoreClicks(),F(P(e,t,!0,!0),200)},onMouseLeave:H})},e))})}),(0,n.jsx)(es,{className:(0,u.f)(g.s.tabletMenuButton,{[g.s.menuItemActive]:O.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,n.jsx)(o.m,{size:24}),onClick:P("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,n.jsxs)("div",{className:(0,u.f)(g.s.buttonGroup,{[g.s.whiteIcons]:(null==N?void 0:N.iconColorOnMobileMainBanner)==="white"}),children:[(0,n.jsxs)("div",{className:g.s.chips,children:[(0,n.jsx)(es,{as:"a",href:m,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${m}`,iconLeft:(0,n.jsx)(r.l,{size:20}),"aria-label":E}),(0,n.jsx)(es,{onClick:()=>{var e,n,t;return null==(t=null==(n=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:n.open)?void 0:t.call(n)},size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,n.jsx)(l.G,{size:24}),"aria-label":"Онлайн чат"})]}),(0,n.jsx)(es,{className:g.s.menuButton,size:"xs",shape:M?"icon":"default",appearance:M?"ghost":"fill",label:"Меню",onClick:P("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,n.jsx)(L,{size:24})}),(0,n.jsxs)("div",{className:g.s.moreButtons,children:[(0,n.jsx)(er,{initialTown:w}),(0,n.jsx)(es,{onClick:()=>{var e,n,t;return null==(t=null==(n=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:n.open)?void 0:t.call(n)},size:"xs",appearance:"ghost",eventActionText:"IconFdsChatDotsSquareAddO",iconLeft:(0,n.jsx)(z,{size:24}),children:"Онлайн чат"}),(0,n.jsx)(es,{as:"a",href:m,size:"xs",eventActionText:E,eventLabel:`${E}_${m}`,label:E})]})]}),(0,n.jsxs)(ec,{className:g.s.auth,href:m,eventActionText:E,eventLabel:`${E}_${m}`,children:[(0,n.jsx)(es,{size:"xs",shape:"circle-icon",iconLeft:(0,n.jsx)(r.l,{}),eventActionText:E,eventLabel:`${E}_${m}`}),(0,n.jsx)("p",{children:E})]}),(0,n.jsx)("div",{className:g.s.close,children:(0,n.jsx)(es,{className:g.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,n.jsx)(a.a,{}),onClick:()=>O.setOpenedBlock(null),eventActionText:"IconFdsCloseO","aria-label":"Закрыть"})})]})]})}),(0,n.jsx)("div",{className:(0,u.f)(g.s.overlay,{[g.s.removed]:!O.isNavigationMounted,[g.s.overlayOpening]:O.isNavigationOpen,[g.s.overlayClosing]:!O.isNavigationOpen}),onClick:D(()=>O.setOpenedBlock(null))}),(0,n.jsx)(ej,{data:$,minioUrl:h}),U]}):C?U:null};e.s(["H",0,es,"i",0,e=>(0,n.jsx)(et,{isMainBannerPage:e.isMainBannerPage,children:(0,n.jsx)(eI,{...e})}),"b",0,U,"p",0,V,"u",0,en],74100)},70703,(e,n,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let i=e.r(55682)._(e.r(69093));function l(e,n){let t={};"function"==typeof e&&(t.loader=e);let l={...t,...n};return(0,i.default)({...l,modules:l.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),n.exports=t.default)},9885,(e,n,t)=>{function i(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return i}})},67585,(e,n,t)=>{e.i(47167),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return a}});let i=e.r(71645),l=e.r(74080);e.r(32061);let o=e.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function a({children:e}){return(0,i.use)((0,l.browser)(o)),e}},69093,(e,n,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let i=e.r(43476),l=e.r(71645),o=e.r(67585),a=e.r(52157);function r(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(r(()=>null)),loading:null,ssr:!0},c=function(e){let n={...s,...e},t=(0,l.lazy)(()=>n.loader().then(r)),c=n.loading;function u(e){let r=c?(0,i.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,s=!n.ssr||!!n.loading,u=s?l.Suspense:l.Fragment,d=n.ssr?(0,i.jsxs)(i.Fragment,{children:["u"<typeof window?(0,i.jsx)(a.PreloadChunks,{moduleIds:n.modules}):null,(0,i.jsx)(t,{...e})]}):(0,i.jsx)(o.BailoutToCSRForNextDynamic,{children:(0,i.jsx)(t,{...e})});return(0,i.jsx)(u,{...s?{fallback:r}:{},children:d})}return u.displayName="LoadableComponent",u}},52157,(e,n,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return s}});let i=e.r(43476),l=e.r(74080),o=e.r(63599),a=e.r(9885),r=e.r(43369);function s({moduleIds:e}){if("u">typeof window)return null;let n=o.workAsyncStorage.getStore();if(void 0===n)return null;let t=[];if(n.reactLoadableManifest&&e){let i=n.reactLoadableManifest;for(let n of e){if(!i[n])continue;let e=i[n].files;t.push(...e)}}if(0===t.length)return null;let c=(0,r.getAssetTokenQuery)();return(0,i.jsx)(i.Fragment,{children:t.map(e=>{let t=`${n.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,i.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style",nonce:n.nonce},e):((0,l.preload)(t,{as:"script",fetchPriority:"low",nonce:n.nonce}),null)})})}},49354,(e,n,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var i={createReactBrowserBailoutReason:function(){return a},getReactBrowserBailoutReason:function(){return r},isNextBrowserBailoutError:function(){return s}};for(var l in i)Object.defineProperty(t,l,{enumerable:!0,get:i[l]});let o=Symbol.for("next.browser-bailout-reason");function a(e){return{$$typeof:o,reason:e}}function r(e){let n=e?.cause;return n?.$$typeof===o?n.reason:void 0}function s(e){return void 0!==r(e)}}])})();