(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3116],{1611:(e,t,n)=>{"use strict";function l(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:()=>l})},30753:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});let l={getItem:e=>{if(typeof document>"u")return null;let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,n={})=>{if(typeof document>"u")return;(n={path:"/",...n}).expires instanceof Date&&(n.expires=n.expires.toUTCString());let l=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in n){if(!n.hasOwnProperty(e))continue;l+=`; ${e}`;let t=n[e];!0!==t&&(l+=`=${t}`)}document.cookie=l},removeItem:e=>{l.setItem(e,"",{"max-age":-1})}}},37489:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var l=n(10320);let i=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,l.Fj)(e)}}},53234:()=>{},62097:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});let l={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in l?l[t]:e}).replaceAll(/[ \u00A0]/g,"_")},75174:(e,t,n)=>{"use strict";n.d(t,{L:()=>tz,Y9:()=>ny,om:()=>tS}),n(53234);var l=n(95155),i=n(12115),o=n(53548),a=n(95633),r=n(2821),s=n(81637),c=n(93372),u=n(13860),d=n(77743),p=n(1611);let m=(0,p.g)("header","sc"),h=Object.freeze({header:`${m}`,fixed:`${m}__fixed`,hidden:`${m}__fixed--hidden`,transparent:`${m}--transparent`,navigationOpen:`${m}__navigation-open`,container:`${m}__container`,leftRow:`${m}__left-row`,logo:`${m}__logo`,menuItems:`${m}__menu-items`,menuItemActive:`${m}__menu-item-active`,tabletMenuButton:`${m}__tablet-menu-button`,buttonGroup:`${m}__button-group`,chips:`${m}__chips`,menuButton:`${m}__menu-button`,moreButtons:`${m}__more-buttons`,auth:`${m}__auth`,whiteIcons:`${m}__white-icons`,close:`${m}__close`,removed:`${m}__removed`,overlay:`${m}__overlay`,overlayOpening:`${m}__overlay--opening`,overlayClosing:`${m}__overlay--closing`}),f="user_region",g="user_town",w="cb-header",v=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],x=v.reduce((e,t)=>(e[t.id]=t.label,e),{}),b=Object.freeze({mobile:56,desktop:80}),_="finuslugi-header-height-change",y=(e,t,n)=>{let l=new Date;l.setTime(l.getTime()+864e5*n);let i=encodeURIComponent(JSON.stringify(t)),o=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${i};expires=${l.toUTCString()};path=/;SameSite=Lax${o}`},C=(e,t,n)=>(0,c.h)({eventCategory:w,eventActionType:e,eventActionText:t,eventLabel:n});var k=n(62097),N=n(37489),j=n(29971),E=n(36631),S=n(83745),z=n(76522),I=n(30753);let O={userRegion:f,userTown:g,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},R={userRegion:f,userTown:g,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},A=(e=!1)=>e?R:O,T=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},L=(e,t,n=!1)=>{if(typeof document>"u")return;let l=A(n);if(!e&&!t){I.a.removeItem(l.userRegion),I.a.removeItem(l.userTown);return}I.a.setItem(l.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),I.a.setItem(l.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},P=e=>{if(typeof document>"u")return null;let t=I.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},$=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},B=(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=$(A(e).allRegions)||[];return T(n,e),n},M=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),F=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]),[])},D=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,U=(e,t)=>D(e||"https://finuslugi.ru",t),W=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},H=(e,t=!1)=>{if(e.length<1)return;let n=A(t);T(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},V=(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 o=t?e.find(e=>e.id===t.id)??null:null;return{region:l??o??t,town:i??n}},q=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),G=async e=>{let t=await W(U(e,"/money_data/Root.json?short=1")),n=Array.isArray(null==t?void 0:t.regions)?t.regions:[];return H(n),n},Y=async e=>{let[t,n]=await Promise.all([W(D(e,"/sc/api/v1/cities?all=true&isActive=true")),W(D(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==t?void 0:t.content)||!Array.isArray(null==n?void 0:n.content))return[];let l=((e,t)=>{let n=t.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:[]})),l=n.reduce((e,t)=>(e[t.id]=t,e),{});return e.forEach(e=>{let t=l[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})}),n})(t.content,n.content);return M(l)?(H(l,!0),l):[]},J=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?Y(e):G(e),Q=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},Z=(e,t,n)=>{(0,c.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})};var K=n(42195),X=n(91482);let ee={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},et={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},en=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 el({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ee,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(en,{viewBox:"0 0 24 24",style:et}))}el.displayName="IconFdsDotsVerticalO";let ei=(0,p.g)("navigation-chips","sc"),eo=Object.freeze({wrapper:`${ei}__wrapper`,gray:`${ei}__variantGray`,white:`${ei}__variantWhite`,container:`${ei}__container`,chip:`${ei}__chip`,more:`${ei}__chip--more`,active:`${ei}__chip--active`,icon:`${ei}__icon`,label:`${ei}__label`,hidden:`${ei}__hidden`}),ea={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},er={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},es=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 ec({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ea,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(es,{viewBox:"0 0 24 24",style:er}))}ec.displayName="IconFdsArrowUpRightSmallO";let eu=(0,p.g)("navigation-content","sc"),ed=Object.freeze({contentWrapper:`${eu}__content-wrapper`,content:`${eu}__content`,contentOpen:`${eu}__content--open`,contentHeader:`${eu}__content-header`,contentTitle:`${eu}__content-title`,contentTitleUrl:`${eu}__content-title--url`,contentTitleLink:`${eu}__content-title--link`,contentTitleNew:`${eu}__content-title--new`,new:`${eu}__new`,newInline:`${eu}__new-inline`,vip:`${eu}__vip`,arrowIcon:`${eu}__arrow-icon`,links:`${eu}__links`,linksColumns:`${eu}__links--columns`,linksTitleless:`${eu}__links--titleless`,removed:`${eu}__removed`,hidden:`${eu}__content--hidden`}),ep=({chip:e,hidden:t,onClick:n,refCallback:i,activeChipId:o})=>{let a=!!n,s=()=>{if(a)return null==n?void 0:n(e.url);C(c.D.chip,e.title,`${e.title}_${e.url}`)},u=(0,l.jsxs)(l.Fragment,{children:[e.icon&&(0,l.jsx)("span",{className:eo.icon,"aria-hidden":"true",children:e.icon}),(0,l.jsx)("span",{className:eo.label,children:e.title}),e.arrow&&(0,l.jsx)(ec,{size:24})]}),d=(0,r.A)(eo.chip,{[eo.hidden]:t,[ed.new]:!!e.new,[ed.vip]:!!e.vip,[eo.active]:e.url===o});return a?(0,l.jsx)("button",{type:"button",className:d,onClick:s,ref:i,children:u}):(0,l.jsx)("a",{href:e.url,className:d,onClick:s,ref:i,children:u})},em=({items:e=[],maxNumberOfLines:t,variant:n,className:o,activeChipId:a,onClick:s,moreButtonOptions:u})=>{let d=(0,i.useRef)(null),p=(0,i.useRef)(null),m=(0,i.useRef)({}),h=(null==u?void 0:u.label)??"Еще",f="Еще",g=(null==u?void 0:u.showIcon)??!0,w=(0,r.A)(eo.chip,eo.more,null==u?void 0:u.className),[v,x]=(0,i.useState)(!1),[b,_]=(0,i.useState)(e.length),[y,k]=(0,i.useState)(!1);(0,i.useMemo)(()=>{let t=m.current;e.forEach(e=>{e.url in t||(t[e.url]=null)}),Object.keys(t).forEach(n=>{e.find(e=>String(e.url)===String(n))||delete t[n]})},[e]);let N=(0,i.useCallback)(()=>{let n=d.current;if(!n)return;let l=e=>e?e.getBoundingClientRect().width:0,i=l(n),o=Math.max(Number(t)||0,0),a=()=>{_(e.length),k(!1)};if(v||0===o||i<=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=l(p.current),c=e.map(e=>l(m.current[e.url]));if(c.some(e=>0===e))return void a();let u=1,h=0,f=0;for(let e of c){let t=u===o?s+r:0,n=0===h?e:h+r+e;if(n+t<=i-.5)h=n,f++;else{if(++u>o)break;h=e,f++}}k(f<e.length),_(f)},[v,e,t]);(0,i.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(N)});return t.observe(e),requestAnimationFrame(N),()=>{t.disconnect()}},[N]),(0,i.useEffect)(()=>{requestAnimationFrame(N)},[N]);let j=v||(t??0)<=0||!y;return(0,l.jsx)("div",{className:(0,r.A)(o,eo.wrapper,{[eo.gray]:"gray"===n,[eo.white]:"white"===n}),children:(0,l.jsxs)("div",{ref:d,className:eo.container,children:[e.map((e,t)=>(0,l.jsx)(ep,{chip:e,hidden:!j&&t>=b,activeChipId:a,onClick:s,refCallback:t=>{m.current[e.url]=t}},e.url)),!j&&y&&(0,l.jsxs)("button",{type:"button",ref:p,className:w,"aria-label":f,onClick:()=>{C(c.D.chip,f),x(!0)},children:[g&&(0,l.jsx)(el,{size:20}),(0,l.jsx)("span",{className:eo.label,children:h})]}),(j||!y)&&(0,l.jsxs)("button",{type:"button",ref:p,className:(0,r.A)(w,eo.hidden),tabIndex:-1,"aria-hidden":"true",children:[g&&(0,l.jsx)(el,{size:20}),(0,l.jsx)("span",{className:eo.label,children:h})]})]})})},eh={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ef={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eg(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let ew=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 ev(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eh,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eg(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(ew,{viewBox:"0 0 24 24",style:ef}))}ev.displayName="IconFdsChatDotsCircleO";let ex=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),i.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},i.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 eb(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eh,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eg(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(ex,{viewBox:"0 0 24 24",style:ef}))}eb.displayName="IconFdsChatDotsSquareAddO";let e_=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 ey(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eh,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eg(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(e_,{viewBox:"0 0 24 24",style:ef}))}ey.displayName="IconFdsChevronDownO";let eC=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 ek(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eh,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eg(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(eC,{viewBox:"0 0 24 24",style:ef}))}ek.displayName="IconFdsCloseO";let eN=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),i.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},i.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 ej(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eh,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eg(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(eN,{viewBox:"0 0 24 24",style:ef}))}ej.displayName="IconFdsMenuSkewedO";let eE=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 eS(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eh,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eg(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(eE,{viewBox:"0 0 24 24",style:ef}))}eS.displayName="IconFdsUserO";let ez=()=>{let e=(0,i.useRef)(null),t=(0,i.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,i.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,i.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},eI={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eO={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eR(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let eA=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 eT(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eR(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(eA,{viewBox:"0 0 24 24",style:eO}))}eT.displayName="IconFdsChevronRightSmallO";let eL=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 eP(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eR(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(eL,{viewBox:"0 0 24 24",style:eO}))}eP.displayName="IconFdsCloseO";let e$=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),i.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),i.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},i.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 eB(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eR(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(e$,{viewBox:"0 0 24 24",style:eO}))}eB.displayName="IconFdsGosuslugiColoredO";let eM=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 eF(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...eI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&eR(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(eM,{viewBox:"0 0 24 24",style:eO}))}eF.displayName="IconFdsShieldCheckO";let eD={"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"},eU=(0,i.createContext)({isAuth:!1,isHeaderHidden:!1,isHeaderTransparent:!1,openedBlock:null,setOpenedBlock:()=>null,openedSection:null,setOpenedSection:()=>null,isNavigationOpen:!1,isNavigationMounted:!1,navMenuItemsRef:{current:null},navigationRef:{current:null},ignoreClicks:!1,setIgnoreClicks:()=>null,isChatModalOpen:!1,setIsChatModalOpen:()=>null,isChatLoading:!1,fixedContainerRef:{current:null},headerRef:{current:null}});function eW(){return(0,i.useContext)(eU)}let eH=e=>{let[t,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p}=(()=>{let[e,t]=(0,i.useState)(!1),[n,l]=(0,i.useState)(!1),o=(0,i.useRef)(!1),a=e=>{o.current=e,l(e)};return(0,i.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(eD,e)?eD[e]:eD["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((i,r)=>{if(o.current)return void r(Error("chat is already opened"));l?(l.openWidget(),t(!1),i()):(a(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;l=e;let o=document.querySelector(".webchat");o&&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(o,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=l.closeWidget),null==l||l.openWidget(),a(!1),t(!1),i()},((e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="".concat(e,"/assets/css/").concat(t),document.head.appendChild(n);let l=document.createElement("script");l.src="".concat(e,"/get-bootstrap/").concat(t),l.defer=!0,document.body.appendChild(l)})(e,n))}),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}})(),[m,h]=(0,i.useState)(null),[f,g]=(0,i.useState)(null),[w,v]=(0,i.useState)(!1),[x,b]=(0,i.useState)(!1),[C,k]=(0,i.useState)(!1),N=(0,i.useRef)(null),j=(0,d.u)(w),E=(0,i.useRef)(null),S=(0,i.useRef)(null),z=(0,i.useRef)(null),I=(0,i.useRef)(null),O=(0,i.useCallback)(()=>{j.current&&j.current.scrollTo({top:0})},[j]),R=(0,i.useCallback)(e=>{g(e),O()},[O]),A=(0,i.useCallback)(e=>{E.current&&clearTimeout(E.current),e&&b(!0),e||(E.current=setTimeout(()=>{b(!1),R(null)},300))},[R]),T=(0,i.useCallback)((e,t,n)=>{if(t&&R(t),!n&&e===m||!e){A(!w),v(!w);return}h(e),A(!0),v(!0)},[m,R,w,A]),L=(0,i.useCallback)(()=>{S.current&&clearTimeout(S.current),k(!0),S.current=setTimeout(()=>{k(!1)},650)},[]);return(0,i.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=((e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let l=document.getElementById("mainHomeBanner"),i=!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 t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));a=Number.isNaN(t)?0:t,o=s()}})();let d=r<a,p=r<((null==l?void 0:l.clientHeight)||0);if(n&&p||d){i=!1,e(!1),t(!0),c(`${a}px`);return}e(i=r>o),i&&setTimeout(()=>t(!1),50),c(i?"0px":`${a}px`),o=r<=0?0:r},p=()=>{a=0,d()};return window.addEventListener("scroll",d),window.addEventListener("resize",u),window.addEventListener(_,p),()=>{window.removeEventListener("scroll",d),window.removeEventListener("resize",u),window.removeEventListener(_,p)}})(a,s,e.isMainBannerPage);return setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{(()=>{let e=(()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,l]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=l);return Object.keys(t).length>0?t:null})();e&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&y("utm_params",e,90),e&&y("utm_last",e,90)})()}catch(e){console.error("UTM tracking error:",e)}},0),t},[]),(0,l.jsx)("header",{children:(0,l.jsx)(eU.Provider,{value:{isAuth:t,isHeaderHidden:o,isHeaderTransparent:r,openedBlock:m,setOpenedBlock:T,openedSection:f,setOpenedSection:R,isNavigationOpen:w,isNavigationMounted:x,navMenuItemsRef:N,navigationRef:j,ignoreClicks:C,setIgnoreClicks:L,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p,fixedContainerRef:z,headerRef:I},children:e.children})})},eV=(0,p.g)("certificates-warning-banner","sc"),eq=(0,p.g)("certificates-warning-popup","sc"),eG=Object.freeze({wrapper:"".concat(eV),container:"".concat(eV,"__container"),content:"".concat(eV,"__content"),info:"".concat(eV,"__info"),image:"".concat(eV,"__image"),text:"".concat(eV,"__text"),title:"".concat(eV,"__title"),description:"".concat(eV,"__description"),details:"".concat(eV,"__details"),buttons:"".concat(eV,"__buttons"),button:"".concat(eV,"__button"),closeButton:"".concat(eV,"__close-button"),mobileActivator:"".concat(eV,"__mobile-activator")}),eY=Object.freeze({modal:"".concat(eq,"__modal"),desktopCloseButton:"".concat(eq,"__desktop-close-button"),mobilePopup:"".concat(eq,"__mobile-popup"),mobileContentContainer:"".concat(eq,"__mobile-content-container"),mobileCloseButton:"".concat(eq,"__mobile-close-button"),mobileDialog:"".concat(eq,"__mobile-dialog"),content:"".concat(eq,"__content"),image:"".concat(eq,"__image"),text:"".concat(eq,"__text"),title:"".concat(eq,"__title"),description:"".concat(eq,"__description"),actions:"".concat(eq,"__actions"),primaryActions:"".concat(eq,"__primary-actions"),divider:"".concat(eq,"__divider"),explanation:"".concat(eq,"__explanation"),button:"".concat(eq,"__button"),gosuslugiButton:"".concat(eq,"__gosuslugi-button"),gosuslugiIcon:"".concat(eq,"__gosuslugi-icon")}),eJ="fu_certificates_access_confirmed",eQ="fu_certificates_banner_dismissed",eZ="fu_external_link_warning_shown",eK={bannerShown:{eventActionType:c.D.show,eventActionText:"certificates_banner"},bannerDetails:{eventActionType:c.D.banner,eventActionText:"certificates_details"},bannerInstall:{eventActionType:c.D.button,eventActionText:"certificates_banner_install"},bannerYandex:{eventActionType:c.D.button,eventActionText:"certificates_banner_yandex"},bannerClose:{eventActionType:c.D.icon,eventActionText:"certificates_banner_close"}},eX={popupShown:"page_view_mintsifry",popupDismissed:"click_button_krestik",popupInstall:"click_button_ustanovit-sertifikaty",popupYandex:"click_button_otkryt-yandex",popupContinue:"click_button_prodolzhit-v-tekuschem-brauzere"},e0=(e,t,n)=>{let l="banner"===t.source?"":";host=".concat(t.host);try{(0,c.h)({eventCategory:w,...eK[e],eventLabel:"source=".concat(t.source,";layout=").concat(n?"desktop":"mobile").concat(l)})}catch(e){}},e1=(e,t)=>{try{(0,N.d)({event:"data-event",eventCategory:"ustanovka-sertifikata-mintsifr",eventAction:eX[e],eventLabel:(e=>{let t=typeof DOMParser>"u"?(e=>{let t=[],n=-1,l=0;for(let i=0;i<e.length;i+=1)"<"===e[i]&&-1===n&&(n=i),">"===e[i]&&-1!==n&&(t.push(e.slice(l,n)," "),l=i+1,n=-1);return t.push(e.slice(l)),t.join("")})(e).replace(/&nbsp;|&#160;|&#xA0;/gi," "):new DOMParser().parseFromString(e,"text/html").body.textContent??"";return(0,k.t)(t.replace(/\s+/g," ").trim()).toLowerCase()||"undefined"})(null!=t?t:""),eventNameCard:"undefined",eventUrl:"undefined"})}catch(e){}},e2=["--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"],e7=e=>{let{onDismiss:t,onClosed:n,onOpenDetails:r,onOpenCertificatesPage:s,onOpenYandexBrowserPage:c}=e,{fixedContainerRef:d,headerRef:p}=eW(),m=(0,u.qF)("l"),h=(0,i.useRef)(null),f=(0,i.useRef)(!1),g=(0,i.useRef)(!1),w=(0,i.useRef)(!1),[v,x]=(0,i.useState)(!1),[y,C]=(0,i.useState)(!1);(0,i.useEffect)(()=>{g.current||(g.current=!0,e0("bannerShown",{source:"banner"},m))},[m]);let k=(e,t)=>()=>{e0(e,{source:"banner"},m),t()},N=(0,i.useCallback)(()=>{let e=h.current,t=d.current;if(!e||!t)return;let n=e.getBoundingClientRect().height,l=n+(window.innerWidth<768?b.mobile:b.desktop),i=document.documentElement.style;i.setProperty("--banner-header-height","".concat(n,"px")),i.setProperty("--fixed-header-height","".concat(l,"px")),i.setProperty("--new-header-height-desktop","".concat(l,"px")),i.setProperty("--new-header-height-mobile","".concat(l,"px")),i.setProperty("--static-new-header-height-mobile","".concat(l,"px")),i.setProperty("--static-new-header-height-desktop","".concat(l,"px")),i.setProperty("--header-height","".concat(n+108,"px")),t.style.transform=f.current?"translateY(0)":"translateY(-".concat(n,"px)"),window.dispatchEvent(new Event(_))},[d]),j=(0,i.useCallback)(()=>{let e=d.current;e2.forEach(e=>document.documentElement.style.removeProperty(e)),e&&(e.style.transform=""),window.dispatchEvent(new Event(_))},[d]),E=(0,i.useCallback)(()=>{let e=d.current;if(!e)return;let t=window.innerWidth<768?b.mobile:b.desktop,n=document.documentElement.style;n.setProperty("--fixed-header-height","".concat(t,"px")),n.setProperty("--new-header-height-desktop","".concat(t,"px")),n.setProperty("--new-header-height-mobile","".concat(t,"px")),n.setProperty("--static-new-header-height-mobile","".concat(t,"px")),n.setProperty("--static-new-header-height-desktop","".concat(t,"px")),n.setProperty("--header-height","108px"),e.style.transform="",window.dispatchEvent(new Event(_))},[d]);return(0,i.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{C(!1),v&&n()};return e.addEventListener("transitionend",t),()=>e.removeEventListener("transitionend",t)},[p,v,n]),(0,i.useLayoutEffect)(()=>{var e;let t=h.current;if(!t)return;N();let n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=null;n?(f.current=!0,null==(e=d.current)||e.style.setProperty("transform","translateY(0)")):l=window.requestAnimationFrame(()=>{var e;f.current=!0,null==(e=d.current)||e.style.setProperty("transform","translateY(0)"),C(!0)});let i=new ResizeObserver(N);return i.observe(t),window.addEventListener("resize",N),()=>{null!==l&&window.cancelAnimationFrame(l),i.disconnect(),window.removeEventListener("resize",N),j()}},[j,N]),(0,l.jsxs)("div",{id:"headerNotice",ref:h,role:"region","aria-label":"Сертификаты Минцифры","data-opening":y,className:eG.wrapper,children:[(0,l.jsx)("button",{className:eG.mobileActivator,type:"button","aria-label":"Подробнее о сертификатах Минцифры",onClick:k("bannerDetails",r)}),(0,l.jsx)(a.m,{children:(0,l.jsxs)("div",{className:eG.container,children:[(0,l.jsxs)("div",{className:eG.content,children:[(0,l.jsxs)("div",{className:eG.info,children:[(0,l.jsx)("div",{className:eG.image,children:(0,l.jsx)(eF,{size:32})}),(0,l.jsxs)("div",{className:eG.text,children:[(0,l.jsx)("h2",{className:eG.title,children:"Для работы российских сайтов нужны сертификаты Минцифры"}),(0,l.jsx)("p",{className:eG.description,children:"Установите их, чтобы пользоваться всеми функциями сайта и оплачивать услуги без сбоев. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"}),(0,l.jsxs)("span",{className:eG.details,children:["Подробнее",(0,l.jsx)(eT,{size:16})]})]})]}),(0,l.jsxs)("div",{className:eG.buttons,children:[(0,l.jsx)(o.$,{className:eG.button,label:"Установить сертификаты",iconLeft:(0,l.jsx)(eB,{size:16}),size:"xs",variant:"white",onClick:k("bannerInstall",s)}),(0,l.jsx)(o.$,{className:eG.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,l.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy"}),size:"xs",variant:"white",appearance:"outline",onClick:k("bannerYandex",c)})]})]}),(0,l.jsx)("button",{className:eG.closeButton,type:"button","aria-label":"Закрыть",onClick:()=>{if(!w.current){if(w.current=!0,e0("bannerClose",{source:"banner"},m),t(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){j(),n();return}E(),x(!0)}},children:(0,l.jsx)(eP,{size:24})})]})})]})},e4={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},e3={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},e5=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 e6(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...e4,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&{width:"".concat(l,"px"),height:"".concat(l,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(e5,{viewBox:"0 0 24 24",style:e3}))}e6.displayName="IconFdsCloseO";let e8={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},e9={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function te(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tt=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),i.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),i.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},i.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 tn(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...e8,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&te(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tt,{viewBox:"0 0 24 24",style:e9}))}tn.displayName="IconFdsGosuslugiColoredO";let tl=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...e8,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&te(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tl,{viewBox:"0 0 24 24",style:e9}))}ti.displayName="IconFdsShieldCheckO";let to=e=>{let{onOpenCertificatesPage:t,onOpenYandexBrowserPage:n,onContinue:a}=e,r=(0,i.useRef)(null),s="certificates-warning-gosuslugi-".concat((0,i.useId)().replaceAll(":",""));return(0,i.useLayoutEffect)(()=>{var e,t;let n=null==(e=r.current)?void 0:e.querySelector("linearGradient"),l=null==(t=r.current)?void 0:t.querySelector('path[fill^="url("]');n&&l&&(n.id=s,l.setAttribute("fill","url(#".concat(s,")")))},[s]),(0,l.jsxs)("div",{className:eY.content,children:[(0,l.jsx)("div",{className:eY.image,children:(0,l.jsx)(ti,{size:64})}),(0,l.jsxs)("div",{className:eY.text,children:[(0,l.jsx)("h2",{className:eY.title,children:"Установите сертификаты Минцифры"}),(0,l.jsx)("p",{className:eY.description,children:"Без них российские сайты и оплата услуг могут не работать. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"})]}),(0,l.jsxs)("div",{className:eY.actions,children:[(0,l.jsxs)("div",{className:eY.primaryActions,children:[(0,l.jsx)(o.$,{className:"".concat(eY.button," ").concat(eY.gosuslugiButton),label:"Установить сертификаты",iconLeft:(0,l.jsx)("span",{ref:r,className:eY.gosuslugiIcon,children:(0,l.jsx)(tn,{size:20})}),size:"m",stretch:!0,onClick:t}),(0,l.jsx)(o.$,{className:eY.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,l.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:n})]}),a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(E.c,{className:eY.divider}),(0,l.jsx)(o.$,{className:eY.button,label:"Продолжить в текущем браузере",size:"m",stretch:!0,variant:"secondary",appearance:"outline",onClick:a}),(0,l.jsx)("p",{className:eY.explanation,children:"Можно продолжить и без установки. Браузер покажет предупреждение о незащищенном соединении — пропустите его и нажмите \xabПерейти на сайт\xbb"})]})]})]})},ta=e=>{let{isOpen:t,analyticsContext:n,certificatesWarningProduct:o,onClose:a,onOpenCertificatesPage:r,onOpenYandexBrowserPage:s,onContinue:c}=e,p=(0,u.qF)("l"),m=(0,i.useRef)(null),h=(0,i.useRef)(!1),f=(0,i.useRef)(!1),g=(0,i.useRef)(!1),w=(0,i.useRef)(n);(0,i.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,i.useEffect)(()=>{if(w.current=t?n:null,!t){f.current=!1,g.current=!0;return}f.current||(g.current=!1,n&&(f.current=!0,e1("popupShown",o)))},[n,o,t]);let v=(0,i.useCallback)(()=>h.current&&t&&!g.current&&w.current===n,[n,t]),x=(0,i.useCallback)(()=>{v()&&(g.current=!0,n&&e1("popupDismissed",o),a())},[n,v,o,a]),b=(e,t)=>()=>{v()&&(n&&e1(e,o),t())},_=(0,l.jsx)(to,{onOpenCertificatesPage:b("popupInstall",r),onOpenYandexBrowserPage:b("popupYandex",s),onContinue:c?b("popupContinue",c):void 0});return(0,i.useEffect)(()=>{if(!t)return;let e=document.activeElement instanceof HTMLElement?document.activeElement:null,n=window.setTimeout(()=>{var e;if(!p){null==(e=m.current)||e.focus();return}let t=document.querySelector(".".concat(eY.desktopCloseButton));null==t||t.focus()},120),l=e=>{p||"Escape"===e.key&&x()};return document.addEventListener("keydown",l),()=>{window.clearTimeout(n),document.removeEventListener("keydown",l),null==e||e.focus()}},[x,p,t]),p?(0,l.jsxs)(j.a,{className:eY.modal,open:t,size:"m",noPadding:!0,header:{withoutCloseBtn:!0},"aria-label":"Установите сертификаты Минцифры",onClose:x,children:[(0,l.jsx)("button",{className:eY.desktopCloseButton,type:"button","aria-label":"Закрыть",onClick:x,children:(0,l.jsx)(e6,{size:24})}),_]}):(0,l.jsx)(d.P,{children:(0,l.jsx)(d.U,{className:eY.mobilePopup,contentClassName:eY.mobileContentContainer,isOpen:t,isSmallPopup:!0,onClose:x,closeButton:(0,l.jsx)("button",{className:eY.mobileCloseButton,type:"button","aria-label":"Закрыть",onClick:x,children:(0,l.jsx)(e6,{size:24})}),children:(0,l.jsx)("div",{ref:m,className:eY.mobileDialog,role:"dialog","aria-modal":"true","aria-label":"Установите сертификаты Минцифры",tabIndex:-1,children:_})})})},tr=new Map,ts=e=>{if(typeof window>"u")return"1"===tr.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===tr.get(e)}catch(t){return"1"===tr.get(e)}},tc=e=>{if(tr.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch(e){}},tu=(e,t)=>{if(!e)return null;try{let n=new URL(e.toString(),t.href);return"http:"!==n.protocol&&"https:"!==n.protocol||((e,t)=>e===t||"finuslugi.ru"===e||e.endsWith(".finuslugi.ru"))(n.hostname,t.hostname)?null:n}catch(e){return null}},td={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tp={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tm=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 th(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...td,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&{width:"".concat(l,"px"),height:"".concat(l,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tm,{viewBox:"0 0 24 24",style:tp}))}th.displayName="IconFdsLocationO";let tf={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tg={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tw(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tv=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"fds-close-circle-o_svg__a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#fds-close-circle-o_svg__a)"},i.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 tx(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...tf,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&tw(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tv,{viewBox:"0 0 24 24",style:tg}))}tx.displayName="IconFdsCloseCircleO";let tb=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 t_(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...tf,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&tw(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tb,{viewBox:"0 0 24 24",style:tg}))}t_.displayName="IconFdsQuestionCircleO";let ty=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 tC(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...tf,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&tw(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(ty,{viewBox:"0 0 24 24",style:tg}))}tC.displayName="IconFdsSearchO";let tk=B(),tN=F(tk),tj={regions:tk,towns:tN,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},tE=(0,i.createContext)(tj);function tS(){return(0,i.useContext)(tE)}let tz=e=>{let{children:t,initialRegion:n,initialTown:o,showStartGeoPopup:a=!0,lastRegionsUpdateUnixTimestamp:r,showcaseUrl:s="",dadataUrl:u=U(s,"/backend/money/dadata"),useNewCitiesApi:d=!1}=e,p=A(d),m=Number($(p.lastRegionsUpdateUnixTimestamp)||0),h=Number(r||0)>m,[f,g]=(0,i.useState)(B(d)),w=(0,i.useRef)(f),[{startRegion:v,startTown:x},b]=(0,i.useState)({startRegion:tj.startRegion,startTown:tj.startTown}),_=null!=n?n:tj.region,y=null!=o?o:tj.town,[{region:C,town:k},N]=(0,i.useState)({region:_,town:y}),[j,E]=(0,i.useState)(tj.startPopupVisible),[S,z]=(0,i.useState)(tj.popupVisible),I=(0,i.useRef)(""),O=(0,i.useRef)(!1),R=(0,i.useMemo)(()=>F(f),[f]);(0,i.useEffect)(()=>{w.current=f},[f]);let T=(0,i.useCallback)((e,t)=>{window.sessionStorage.setItem("start_popup_opened","1"),window.localStorage.setItem("auto_town",JSON.stringify(t)||""),window.localStorage.setItem("auto_region",JSON.stringify(e)||""),E(!0),b({startRegion:e,startTown:t})},[E,b]),D=(0,i.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||T(e,t)},[T]),W=(0,i.useCallback)(()=>{if(I.current&&!C&&!k){var e,t;let n=null!=(e=R.find(e=>e.name===I.current))?e:null;return D(null!=(t=f.find(e=>e.id===(null==n?void 0:n.parentId)))?t:null,n)}D(C,k)},[C,k,R,f,D]),H=(0,i.useCallback)(e=>{z(e)},[z]),G=(0,i.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(p.allRussiaSelected,"1"),window.localStorage.setItem(p.userRegion,""),window.localStorage.setItem(p.userTown,""),L(null,null,d);return}window.localStorage.setItem(p.allRussiaSelected,"0"),window.localStorage.setItem(p.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(p.userTown,JSON.stringify(t)||""),L(e||null,t||null,d)},[p,d]),Y=(0,i.useCallback)(e=>{e?Z(c.D.icon,"location"):Z(c.D.button,(null==k?void 0:k.name)||"Вся Россия"),!a||window.sessionStorage.getItem("start_popup_opened")?H(!0):W()},[a,k,H,W]),K=(0,i.useCallback)((e,t)=>{G(e,t),N({region:e||null,town:t||null}),E(!1),H(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[H,G]),X=()=>{var e,t;let n=null!=(e=P(p.userRegion))?e:$(p.userRegion),l=null!=(t=P(p.userTown))?t:$(p.userTown),i=V(w.current,n,l),o=d&&((e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId))(n,l);o&&(O.current=!0),o&&q(i.region,i.town)&&(G(i.region,i.town),O.current=!1),N(i);let r=async e=>{let{coords:{latitude:t,longitude:n}}=e,l="".concat(u,"?lat=").concat(t,"&lon=").concat(n),i=await Q(l);null!=i&&i.location&&(I.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&a)try{navigator.geolocation.getCurrentPosition(r,()=>null)}catch(e){}};return(0,i.useEffect)(()=>{(!((e,t=!1)=>!(e.length<1)&&(!t||M(e)))(f,d)||h)&&J({showcaseUrl:s,useNewCitiesApi:d}).then(e=>{e.length<1||g(e)})},[]),(0,i.useEffect)(()=>{if(!d)return;let e=V(f,C,k);O.current&&q(e.region,e.town)&&(G(e.region,e.town),O.current=!1),N(e)},[f,C,G,k,d]),(0,i.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{X(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{X()},0)},[]),(0,l.jsx)(tE.Provider,{value:{regions:f,towns:R,region:C,town:k,startPopupVisible:j,setStartPopupVisible:E,popupVisible:S,handleToggleModal:H,selectCity:K,handleButtonClick:Y,startRegion:v,startTown:x},children:t})},tI=(0,p.g)("city-select-modal-body","sc"),tO=Object.freeze({wrapper:"".concat(tI,"__wrapper"),subtitle:"".concat(tI,"__subtitle"),hintWrapper:"".concat(tI,"__hint-wrapper"),hintText:"".concat(tI,"__hint-text"),input:"".concat(tI,"__input"),chips:"".concat(tI,"__chips"),townsListWrapper:"".concat(tI,"__towns-list-wrapper"),townsList:"".concat(tI,"__towns-list"),townsGroup:"".concat(tI,"__towns-group"),townsGroupLabel:"".concat(tI,"__towns-group-label"),townsGroupList:"".concat(tI,"__towns-group-list"),townsName:"".concat(tI,"__towns-name"),regionName:"".concat(tI,"__region-name")}),tR=e=>{var t;let{groupedTowns:n,chips:o,query:a,setQuery:r,isDrawer:s}=e,u=tS(),d=(0,i.useRef)(null),[p,m]=(0,i.useState)("10000px");(0,i.useEffect)(()=>{if(!s||!d.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,l)=>{let i=n.map(e=>[...e]),o=i.map(e),a=o.reduce((e,t,n)=>t<o[e]?n:e,0);0===a&&i[0].push(i[1].shift()),2===a&&i[2].unshift(i[1].pop()),1===a&&o[0]>o[2]&&i[1].unshift(i[0].pop()),1===a&&o[0]<o[2]&&i[1].push(i[2].shift());let r=Math.max(...i.map(e));return r>=l?l:t(i,r)};new ResizeObserver(()=>{var e;if(!(null!=(e=d.current)&&e.children))return;let n=Array.from(d.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let l=0;try{l=t([[],n,[]],1/0)}catch(e){l=0}l>0&&m("".concat(l,"px"))}).observe(d.current)},[]);let h=e=>{if(Z(c.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return u.selectCity();let t=u.regions.find(t=>t.id===Number(e.parentId))||null;u.selectCity(t,e)};return(0,l.jsxs)("div",{className:tO.wrapper,children:[(0,l.jsxs)("div",{className:tO.subtitle,children:["Покажем предложения рядом с вами",(0,l.jsxs)("div",{className:tO.hintWrapper,children:[(0,l.jsx)(t_,{size:24}),(0,l.jsx)("div",{className:tO.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,l.jsx)(z.I,{className:tO.input,value:a,onChange:r,size:"s",placeholder:"Введите название города",icon:a?(0,l.jsx)(tx,{size:24,onClick:()=>r("")}):(0,l.jsx)(tC,{size:24})}),(0,l.jsx)(S.C,{className:tO.chips,chips:o,value:(null==(t=u.town)?void 0:t.id)||0,onChipClick:e=>{h(u.towns.find(t=>t.id===e))}}),(0,l.jsx)("div",{className:tO.townsListWrapper,children:(0,l.jsx)("div",{ref:d,className:tO.townsList,style:{maxHeight:p},children:n.map(e=>(0,l.jsxs)("div",{className:tO.townsGroup,children:[(0,l.jsx)("div",{className:tO.townsGroupLabel,children:e.letter}),(0,l.jsx)("div",{className:tO.townsGroupList,children:e.towns.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>h(e),children:[(0,l.jsx)("div",{className:tO.townsName,children:e.name}),(0,l.jsx)("div",{className:tO.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},tA=[1095,1096,134,720,189,180],tT=()=>{var e;let t=tS(),n=(0,u.qF)("l"),[o,a]=(0,i.useState)(""),r="Ваш выбор: ".concat((null==(e=t.town)?void 0:e.name)||"Вся Россия"),s=(0,i.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(o.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},[]),[o,t.towns.length]),p=(0,i.useMemo)(()=>[{id:0,label:"Вся Россия"},...tA.map(e=>{let n=t.towns.find(t=>t.id===e);return{id:null==n?void 0:n.id,label:null==n?void 0:n.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[t.towns.length]),m=()=>{Z(c.D.button,"close"),t.handleToggleModal(!1)};return(0,l.jsxs)(d.P,{children:[!n&&(0,l.jsx)(d.U,{title:r,isOpen:t.popupVisible,onClose:m,full:!0,children:(0,l.jsx)(tR,{groupedTowns:s,chips:p,query:o,setQuery:a})}),n&&(0,l.jsx)(d.D,{title:r,isOpen:t.popupVisible,onClose:m,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,l.jsx)(tR,{groupedTowns:s,chips:p,query:o,setQuery:a,isDrawer:!0})})]})},tL=e=>{let{label:t,onClick:n,eventActionText:i,eventLabel:a,...r}=e;return(0,l.jsx)(o.$,{label:t,onClick:e=>{null==n||n(e),(0,c.h)({eventCategory:w,eventActionType:c.D.button,eventActionText:i||"",eventLabel:a||""})},...r})},tP={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},t$={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tB=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 tM(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...tP,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&{width:"".concat(l,"px"),height:"".concat(l,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tB,{viewBox:"0 0 24 24",style:t$}))}tM.displayName="IconFdsCloseO";let tF=(0,p.g)("header-popup","sc"),tD=Object.freeze({popup:"".concat(tF,"__popup"),popupHeader:"".concat(tF,"__popup-header"),popupClose:"".concat(tF,"__popup-close"),body:"".concat(tF,"__body")}),tU=e=>{let{isOpen:t,onClose:n,children:i,title:o}=e,a=(0,u.qF)("l");return(0,l.jsxs)(d.P,{children:[!a&&(0,l.jsx)(d.U,{title:o,isOpen:t,onClose:n,children:i}),a&&t&&(0,l.jsxs)("div",{className:tD.popup,children:[(0,l.jsxs)("div",{className:tD.popupHeader,children:[o,(0,l.jsx)(tL,{className:tD.popupClose,iconLeft:(0,l.jsx)(tM,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:n,eventActionText:"IconFdsCloseO"})]}),(0,l.jsx)("div",{className:tD.body,children:i})]})]})},tW=(0,p.g)("start-choice-popup","sc"),tH=Object.freeze({top:"".concat(tW,"__top"),progress:"".concat(tW,"__progress"),innerCircle:"".concat(tW,"__inner-circle"),title:"".concat(tW,"__title"),subtitle:"".concat(tW,"__subtitle"),actions:"".concat(tW,"__actions")}),tV=()=>{var e,t;let n=tS(),[o,a]=(0,i.useState)(10),[r,s]=(0,i.useState)(0),u=(0,i.useRef)(void 0),d=()=>{Z(c.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(n.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(n.startRegion)||""),n.setStartPopupVisible(!1)};return(0,i.useEffect)(()=>{n.startPopupVisible?(()=>{let e=Number((" "+o).slice(1)),t=1e3*e/100,n=0,l=0;u.current=setInterval(()=>{n++,l+=t,s(3.6*n);let i=e-Math.floor(l/1e3);i<o&&a(i),100===n&&(clearInterval(u.current),d())},t)})():(clearInterval(u.current),a(10),s(0))},[n.startPopupVisible]),(0,l.jsxs)(tU,{isOpen:n.startPopupVisible,onClose:d,title:(0,l.jsx)("button",{type:"button",className:tH.progress,style:{background:"conic-gradient(#ff0508 ".concat(r,"deg, #e3e7ec 0deg)")},onClick:d,children:(0,l.jsx)("div",{className:tH.innerCircle,children:o})}),children:[(0,l.jsxs)("div",{className:tH.top,children:[(0,l.jsxs)("div",{className:tH.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,l.jsx)("div",{className:tH.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,l.jsxs)("div",{className:tH.actions,children:[(0,l.jsx)(tL,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{Z(c.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,l.jsx)(tL,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{Z(c.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},tq=(0,p.g)("city-select","sc"),tG=Object.freeze({button:"".concat(tq,"__button"),minimal:"".concat(tq,"__minimal"),full:"".concat(tq,"__full")}),tY=e=>{var t;let{initialTown:n}=e,a=tS(),s=(null==(t=a.town)?void 0:t.name)||n||"Вся Россия",{setIsChatModalOpen:c,isChatModalOpen:u}=eW(),{startPopupVisible:d,setStartPopupVisible:p,popupVisible:m}=a,h=(0,i.useRef)();(0,i.useEffect)(()=>{m&&(h.current="popup")},[m]),(0,i.useEffect)(()=>{u&&(h.current="chat")},[u]),(0,i.useEffect)(()=>{d&&(h.current="startPopup")},[d]),(0,i.useEffect)(()=>{h.current&&("chat"===h.current&&d?p(!1):["startPopup","popup"].includes(h.current)&&u&&c(!1))},[m,u,d,p,c]);let f={appearance:"ghost",size:"xs",onClick:()=>a.handleButtonClick(!1),iconLeft:(0,l.jsx)(th,{size:24})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.$,{...f,className:(0,r.A)(tG.button,tG.full),label:s}),(0,l.jsx)(o.$,{...f,className:(0,r.A)(tG.button,tG.minimal),shape:"icon"}),(0,l.jsx)(tT,{}),(0,l.jsx)(tV,{})]})},tJ=e=>{let{onClick:t,eventActionType:n,eventActionText:i,eventLabel:o,...a}=e;return(0,l.jsx)(K.N,{onClick:e=>{null==t||t(e),(0,c.h)({eventCategory:w,eventActionType:n||c.D.link,eventActionText:i||"",eventLabel:o||""})},...a})},tQ={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tZ={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tK=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 tX(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...tQ,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&{width:"".concat(l,"px"),height:"".concat(l,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(tK,{viewBox:"0 0 24 24",style:tZ}))}tX.displayName="IconFdsCloseO";let t0=(0,p.g)("header-mobile-app-banner","sc"),t1=Object.freeze({wrapper:"".concat(t0,"__wrapper"),container:"".concat(t0,"__container"),closeButton:"".concat(t0,"__close-button"),innerWrapper:"".concat(t0,"__inner-wrapper"),imageWrapper:"".concat(t0,"__image-wrapper"),image:"".concat(t0,"__image"),title:"".concat(t0,"__title"),description:"".concat(t0,"__description"),callToAction:"".concat(t0,"__call-to-action"),scanQr:"".concat(t0,"__scan-qr")}),t2=Object.freeze({mobile:56,desktop:68}),t7="headerBannerShownAt",t4=e=>{let{minioUrl:t,className:n,mobileAppUrl:u}=e,{fixedContainerRef:d,headerRef:p}=eW(),[m,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[w,v]=(0,i.useState)(!1),x=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desktop",t=d.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height","".concat(t2[e]+b[e],"px")),document.documentElement.style.setProperty("--new-header-height-desktop","".concat(t2.desktop+b.desktop,"px")),document.documentElement.style.setProperty("--new-header-height-mobile","".concat(t2.mobile+b.mobile,"px")),document.documentElement.style.setProperty("--static-new-header-height-mobile","".concat(t2.mobile+b.mobile,"px")),document.documentElement.style.setProperty("--static-new-header-height-desktop","".concat(t2.desktop+b.desktop,"px")),document.documentElement.style.setProperty("--header-height","".concat(t2[e]+108,"px")))},[]),_=(0,i.useCallback)(()=>{let e=d.current;e&&(document.documentElement.style.removeProperty("--fixed-header-height"),document.documentElement.style.removeProperty("--new-header-height-desktop"),document.documentElement.style.removeProperty("--new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-desktop"),document.documentElement.style.removeProperty("--header-height"),e.style.transform="")},[]);return(0,i.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{f&&h(!1),v(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[f]),(0,i.useEffect)(()=>{(()=>{let e=(()=>{let e=localStorage.getItem(t7);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t})();return!e||Math.floor((e.getTime()-new Date().getTime())/864e5)>5})()&&h(!0)},[]),(0,i.useEffect)(()=>{let e=window.innerWidth<768;m&&(x(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!0):v(!0));let t=()=>{if(!m)return null;x(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{_(),window.removeEventListener("resize",t)}},[m,x,_]),m?(0,l.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":w,className:(0,r.A)(t1.wrapper,n),children:(0,l.jsx)(a.m,{children:(0,l.jsxs)("div",{className:t1.container,children:[(0,l.jsxs)("div",{className:t1.innerWrapper,children:[(0,l.jsxs)("picture",{className:t1.imageWrapper,children:[(0,l.jsx)("source",{srcSet:(0,s.oq)(t,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,l.jsx)("img",{className:t1.image,src:(0,s.oq)(t,"/logo/finuslugi/default-regular.svg"),loading:"lazy"})]}),(0,l.jsxs)("div",{className:t1.scanQr,children:[(0,l.jsx)("div",{className:t1.title,children:"Скачайте приложение Финуслуги"}),(0,l.jsx)("div",{className:t1.description,children:"Сканируйте QR-код"})]}),(0,l.jsxs)("div",{className:t1.callToAction,children:[(0,l.jsxs)("div",{children:["Приложение",(0,l.jsx)("br",{}),"Финуслуги"]}),(0,l.jsx)(o.$,{onClick:()=>{C(c.D.button,"skachat_mob_prilozheniye_fu"),window.open(u,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,l.jsx)("div",{"aria-label":"Закрыть",role:"button",className:t1.closeButton,onClick:()=>{localStorage.setItem(t7,new Date().toISOString()),_(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!1):g(!0)},children:(0,l.jsx)(tX,{size:"100%"})})]})})}):null},t3={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},t5={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function t6(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let t8=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 t9(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...t3,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&t6(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(t8,{viewBox:"0 0 24 24",style:t5}))}t9.displayName="IconFdsChevronLeftO";let ne=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 nt(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...t3,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&t6(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(ne,{viewBox:"0 0 24 24",style:t5}))}nt.displayName="IconFdsChevronRightSmallO";let nn=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...t3,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&t6(l),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(nn,{viewBox:"0 0 24 24",style:t5}))}nl.displayName="IconFdsLocationO";let ni=(0,p.g)("header-chat-modal-body","sc"),no=Object.freeze({wrapper:"".concat(ni,"__wrapper"),cardButton:"".concat(ni,"__card-button"),card:"".concat(ni,"__card"),cardTitle:"".concat(ni,"__card-title"),cardSubtitle:"".concat(ni,"__card-subtitle"),button:"".concat(ni,"__button")}),na=()=>{let e=eW();return(0,l.jsxs)("div",{className:no.wrapper,children:[(0,l.jsx)(tL,{className:no.cardButton,variant:"secondary",pending:e.isChatLoading,onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},eventActionText:"Напишите в чат",children:(0,l.jsxs)(X.Z,{className:no.card,variant:"secondary",children:[(0,l.jsxs)("div",{className:no.cardTitle,children:[(0,l.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,l.jsxs)("p",{className:no.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,l.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},nr={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ns={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},nc=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 nu(e){let{className:t,style:n,boxSize:l,size:o,onClick:a}=e;return i.createElement("span",{className:t,style:{...nr,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...l&&{width:"".concat(l,"px"),height:"".concat(l,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},i.createElement(nc,{viewBox:"0 0 24 24",style:ns}))}nu.displayName="IconFdsArrowUpRightSmallO";let nd=e=>{let{data:t,isMobile:n}=e,o=eW();return(0,l.jsx)("div",{className:ed.contentWrapper,children:t.map(e=>(0,l.jsx)(i.Fragment,{children:e.sections.map(e=>{var t;return(0,l.jsxs)("div",{className:(0,r.A)(ed.content,{[ed.hidden]:o.openedSection!==e.id,[ed.contentOpen]:!!o.openedSection}),children:[(0,l.jsx)("div",{className:ed.contentHeader,children:(0,l.jsx)("label",{children:e.title})}),null==(t=e.content)?void 0:t.map((t,i)=>{var o,a;return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:(0,l.jsx)("a",{className:(0,r.A)(ed.contentTitle,{[ed.removed]:!t.title,[ed.contentTitleUrl]:!!t.url,[ed.contentTitleLink]:!!e.isSeeAllLinkAvailable,[ed.contentTitleNew]:!!t.new}),href:e.isSeeAllLinkAvailable?t.url:void 0,children:(0,l.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,l.jsx)("div",{className:ed.arrowIcon,children:(0,l.jsx)(nu,{})}),t.title]})})}),!(null!=(o=t.links)&&o.length)&&(0,l.jsx)(em,{items:t.chips||[],maxNumberOfLines:e.content.length<=1?99:n?3:2}),!!(null!=(a=t.links)&&a.length)&&(0,l.jsx)("div",{className:(0,r.A)(ed.links,{[ed.linksColumns]:!!t.columns,[ed.linksTitleless]:!t.title}),children:t.links.map(e=>(0,l.jsxs)("a",{href:e.url,onClick:()=>C(c.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,l.jsx)("div",{className:ed.arrowIcon,children:(0,l.jsx)(nu,{})}),(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{children:e.title}),!!e.new&&(0,l.jsx)("span",{className:(0,r.A)({[ed.newInline]:!!e.new})})]})]},e.url))})]},"".concat(t.url,"_").concat(i))})]},e.id)})},e.id))})},np=(0,p.g)("navigation-section-icon","sc"),nm=Object.freeze({icon:"".concat(np)}),nh=()=>n.e(9527).then(n.bind(n,9527)),nf={IconFdsAcademicCapO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsAcademicCapO}),IconFdsBankO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsBankO}),IconFdsBookOpenO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsBookOpenO}),IconFdsCalculatorO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCalculatorO}),IconFdsCardO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCardO}),IconFdsChatDotsCircleO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsChatDotsCircleO}),IconFdsCoinMultipleO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCoinMultipleO}),IconFdsDotsHorizontalO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsDotsHorizontalO}),IconFdsFlashO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsFlashO}),IconFdsGraphO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsGraphO}),IconFdsLayoutHorizontalO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsLayoutHorizontalO}),IconFdsPortfolioO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsPortfolioO}),IconFdsRubleCircleO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsRubleCircleO}),IconFdsSafeO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsSafeO}),IconFdsShieldCheckO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsShieldCheckO}),IconFdsWalletO:()=>nh().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsWalletO})},ng=e=>Object.prototype.hasOwnProperty.call(nf,e),nw=e=>{let{name:t,background:n}=e,[o,a]=(0,i.useState)(null);if((0,i.useEffect)(()=>{if(!t||!ng(t))return void a(null);let e=!0;return nf[t]().then(n=>{e&&a({name:t,component:n})}).catch(()=>{e&&a(null)}),()=>{e=!1}},[t]),!t||!ng(t))return null;let r=(null==o?void 0:o.name)===t?o.component:null;return(0,l.jsx)("div",{className:nm.icon,style:{background:n},children:r&&(0,l.jsx)(r,{})})},nv=(0,p.g)("navigation","sc"),nx=Object.freeze({navigation:"".concat(nv),navigationOpening:"".concat(nv,"--opening"),navigationClosing:"".concat(nv,"--closing"),wrapper:"".concat(nv,"__wrapper"),container:"".concat(nv,"__container"),containerOpen:"".concat(nv,"__container--open"),sections:"".concat(nv,"__sections"),sectionsOpen:"".concat(nv,"__sections--open"),citySelectButton:"".concat(nv,"__city-select-button"),sectionsTitle:"".concat(nv,"__sections-title"),sectionsWrapper:"".concat(nv,"__sections-wrapper"),section:"".concat(nv,"__section"),sectionArrow:"".concat(nv,"__section-arrow"),sectionExtra:"".concat(nv,"__section--extra"),sectionActive:"".concat(nv,"__section--active"),sectionTitle:"".concat(nv,"__section-title"),chatWrapper:"".concat(nv,"__chat-wrapper"),chatHeader:"".concat(nv,"__chat-header"),backButton:"".concat(nv,"__back-button"),useful:"".concat(nv,"__useful"),usefulOpen:"".concat(nv,"__useful--open"),usefulTitle:"".concat(nv,"__useful-title"),usefulGrid:"".concat(nv,"__useful-grid"),removed:"".concat(nv,"__removed")}),nb=e=>{var t;let{data:n}=e,s=eW(),d=tS(),p=(0,u.nu)("m"),[m,h]=(0,i.useState)(!0);(0,i.useEffect)(()=>{h(p)},[p]);let f=(0,i.useRef)(null),g=(0,i.useCallback)(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>s.openedSection?s.setOpenedSection(null):s.isNavigationOpen?s.setOpenedBlock(null):void 0,50)},[s]),w=(0,i.useRef)(!1),v=(0,i.useRef)(null),b=(0,i.useCallback)(()=>{m&&(w.current=!0,v.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,m]),_=(0,i.useCallback)(()=>{w.current=!1,window.onpopstate=v.current,window.history.go(-1)},[]),y=(0,i.useRef)(null),k=(0,i.useCallback)(e=>{if(m||!s.navMenuItemsRef.current||!s.navigationRef.current)return;let t=e.target,n=!s.navMenuItemsRef.current.contains(t)&&!s.navigationRef.current.contains(t);if(n&&!y.current){s.setIgnoreClicks(),y.current=setTimeout(()=>s.setOpenedBlock(null),300);return}!n&&y.current&&(clearTimeout(y.current),y.current=null)},[m,s]),N=(0,i.useRef)(null),j=(0,i.useCallback)(e=>{typeof window>"u"||(e?(N.current=k,window.addEventListener("mousemove",N.current)):N.current&&window.removeEventListener("mousemove",N.current))},[k]);(0,i.useEffect)(()=>{j(s.isNavigationOpen),s.isNavigationOpen&&!w.current&&b(),!s.isNavigationOpen&&w.current&&_()},[s.isNavigationOpen]);let E=(e,t)=>()=>{C(c.D.button,t),s.setOpenedSection(e)},{start:S,clear:z}=ez(),I=()=>{m||z()};return(0,l.jsx)("div",{ref:s.navigationRef,className:(0,r.A)(nx.navigation,{[nx.removed]:!s.isNavigationMounted,[nx.navigationOpening]:s.isNavigationOpen,[nx.navigationClosing]:!s.isNavigationOpen}),children:(0,l.jsx)("div",{className:nx.wrapper,children:(0,l.jsxs)(a.m,{className:(0,r.A)(nx.container,{[nx.containerOpen]:!!s.openedSection}),children:[(0,l.jsxs)("div",{className:(0,r.A)(nx.sections,{[nx.sectionsOpen]:!!s.openedSection}),children:[(0,l.jsx)(o.$,{className:nx.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>d.handleButtonClick(!1),iconLeft:(0,l.jsx)(nl,{size:24}),label:(null==(t=d.town)?void 0:t.name)||"Вся Россия"}),n.map(e=>(0,l.jsxs)("ul",{className:(0,r.A)(nx.sectionsWrapper,{[nx.removed]:s.openedBlock!==e.id&&!m}),children:[(0,l.jsx)("div",{className:nx.sectionsTitle,children:x[e.id]}),e.sections.map(e=>{let t,n;return(0,l.jsxs)("li",{className:(0,r.A)(nx.section,{[nx.sectionExtra]:!!e.extra,[nx.sectionActive]:s.openedSection===e.id}),onClick:E(e.id,e.title),onMouseEnter:(t=e.id,n=e.title,()=>{m||S(E(t,n),150)}),onMouseLeave:I,children:[s.isNavigationMounted&&(0,l.jsx)(nw,{name:e.uikitIcon,background:e.uikitIconBg}),(0,l.jsx)("span",{className:nx.sectionTitle,children:e.title}),(0,l.jsx)("div",{className:nx.sectionArrow,children:(0,l.jsx)(nt,{size:24})})]},e.id)})]},e.id)),(0,l.jsxs)("div",{className:nx.chatWrapper,children:[(0,l.jsx)("div",{className:nx.chatHeader,children:"Нужна помощь?"}),(0,l.jsx)(na,{})]})]}),(0,l.jsxs)("button",{type:"button",className:(0,r.A)(nx.backButton,{[nx.removed]:!s.openedSection}),onClick:()=>{C(c.D.button,"Назад"),s.setOpenedSection(null)},children:[(0,l.jsx)(t9,{size:24}),(0,l.jsx)("span",{children:"Назад"})]}),(0,l.jsx)(nd,{data:n,isMobile:m}),(0,l.jsxs)("div",{className:(0,r.A)(nx.useful,{[nx.usefulOpen]:!!s.openedSection}),children:[(0,l.jsx)("div",{className:nx.usefulTitle,children:"Полезное на Финуслугах"}),n.map(e=>(0,l.jsx)(i.Fragment,{children:e.sections.map(e=>{var t;return(0,l.jsx)("div",{className:(0,r.A)(nx.usefulGrid,{[nx.removed]:s.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,l.jsxs)("a",{href:e.url,onClick:()=>C(c.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:e.icon,srcSet:e.icon2?"".concat(e.icon,", ").concat(e.icon2," 2x"):void 0,alt:e.title,loading:"lazy"})}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},"".concat(e.title,"_").concat(t)))},e.id)})},e.id))]})]})})})},n_=e=>{let{data:t,showcaseUrl:n="https://finuslugi.ru",minioUrl:u="https://assets.finuslugi.ru/mp-assets",lkUrl:d="https://lk.finuslugi.ru/registration",initialTown:p,isMainBannerPage:m,enableAppHeaderBanner:f=!1,enableCertificatesBanner:g=!1,enableExternalLinkWarning:w=!1,certificatesWarningProduct:x,news:b,className:_}=e,y=eW(),k=(0,i.useMemo)(()=>((e,t,n)=>{var l,i,o,a,r,c,u;let d=(null==(i=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l.findIndex)?void 0:i.call(l,e=>{let{id:t}=e;return"news"===t}))||-1,p=(null==(a=null==(o=null==e?void 0:e.NAVIGATOR)?void 0:o[d])?void 0:a.content)||[];if(null!=(u=null==(c=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[d])?void 0:c.content)&&u[0]&&Array.isArray(n)&&p.length){let l=n.map(e=>{let{title:n,url:l}=e;return{title:n,url:(0,s.oq)(t||"",l),new:0}});e.NAVIGATOR[d].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:[]}]})(t,n,b),[t,n,b]),N=null==t?void 0:t.config,j=!!t&&g&&!!m,E=(e=>{let{enableCertificatesBanner:t,enableExternalLinkWarning:n,isMainBannerPage:l}=e,[o,a]=(0,i.useState)("checking"),[r,s]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[d,p]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),f=(0,i.useRef)(),g=(0,i.useRef)(!1),w=(0,i.useRef)(!1),v=(0,i.useRef)(!1);(0,i.useRef)(null);let x=(0,i.useRef)(null),b=(0,i.useRef)(null),_=(0,i.useRef)(null),y=t&&l,C=y||n,k=(0,i.useCallback)(e=>{let t=f.current;if(t)return void t.call(window,e,"_blank","noopener,noreferrer");window.open(e,"_blank","noopener,noreferrer")},[]),N=(0,i.useCallback)(()=>{s(!1),v.current=!1,x.current=null,b.current=null,_.current=null,h(!1)},[]),j=(0,i.useCallback)(e=>{tc(eZ),w.current=!0,v.current=!1,x.current=e,h("external"===e&&null!==b.current),s(!0)},[]),E=(0,i.useCallback)(()=>!g.current&&("external"===x.current&&!v.current||!w.current),[]),S=(0,i.useCallback)(()=>{"external"!==x.current&&j("external")},[j]);(0,i.useEffect)(()=>{f.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&tc(eJ),g.current=e||ts(eJ),w.current=ts(eZ),p(g.current),u(!0),()=>{b.current=null,_.current=null}},[]),(0,i.useEffect)(()=>{if(c){if(!y)return void a("skipped");a(e=>"shown"===e||"closing"===e||"dismissed"===e?e:d||ts(eQ)?"skipped":"shown")}},[d,y,c]),(0,i.useEffect)(()=>{},[N,C,c]),(0,i.useEffect)(()=>{if(!c||!n)return;let e=f.current;if(!e)return;let t=!0,l=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 l=tu(n.href,window.location);if(!l||!E())return;e.preventDefault(),null===b.current&&(b.current=l.href,_.current={source:"external_anchor",host:l.hostname});let i=b.current;queueMicrotask(()=>{t&&E()&&b.current===i&&S()})},i=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",l=arguments.length>2?arguments[2]:void 0,i=tu(t,window.location);return i&&E()?(null===b.current&&(b.current=i.href,_.current={source:"external_window_open",host:i.hostname}),S(),null):e.call(window,t,n,l)};return window.open=i,document.addEventListener("click",l,!0),document.addEventListener("auxclick",l,!0),()=>{t=!1,document.removeEventListener("click",l,!0),document.removeEventListener("auxclick",l,!0),window.open===i&&(window.open=e)}},[n,c,E,S]),(0,i.useEffect)(()=>{var e;n||(b.current=null,(null==(e=_.current)?void 0:e.source)!=="banner"&&(_.current=null),h(!1),"external"===x.current&&N())},[N,n]),(0,i.useEffect)(()=>{y||"banner"===x.current&&N()},[N,y]),(0,i.useEffect)(()=>{C||N()},[N,C]);let z=(0,i.useCallback)(()=>{tc(eQ),a("closing")},[]),I=(0,i.useCallback)(()=>{a("dismissed")},[]),O=(0,i.useCallback)(()=>{b.current=null,_.current={source:"banner"},j("banner")},[j]),R=(0,i.useCallback)(()=>{k("https://www.gosuslugi.ru/crt")},[k]),A=(0,i.useCallback)(()=>{k("https://browser.yandex.ru/")},[k]),T=(0,i.useCallback)(()=>{let e=b.current;e&&(tc(eZ),w.current=!0,v.current=!0,k(e))},[k]);return{bannerStatus:o,isPopupOpen:r,popupAnalyticsContext:_.current,dismissBanner:z,finishBannerClosing:I,openPopupFromBanner:O,closePopup:N,openCertificatesPage:R,openYandexBrowserPage:A,continueToExternalPage:m?T:void 0}})({enableCertificatesBanner:j,enableExternalLinkWarning:w,isMainBannerPage:!!m}),S="shown"===E.bannerStatus||"closing"===E.bannerStatus,z=!j||"skipped"===E.bannerStatus,I=(0,i.useMemo)(()=>k.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[k]),O=y.isAuth?"Личный кабинет":"Войти",R=m&&y.isHeaderTransparent,A=(e,t,n,l)=>()=>{e!==y.openedBlock?C(c.D.toggle,t,"on"):C(c.D.button,"menu_close","on");let i=n?I[e]:"";y.setOpenedBlock(e,i,!!l)},{start:T,clear:L}=ez(),P=e=>()=>{y.ignoreClicks||e()},$=(0,l.jsx)(ta,{isOpen:E.isPopupOpen,analyticsContext:E.popupAnalyticsContext,certificatesWarningProduct:x,onClose:E.closePopup,onOpenCertificatesPage:E.openCertificatesPage,onOpenYandexBrowserPage:E.openYandexBrowserPage,onContinue:E.continueToExternalPage});return t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:y.headerRef,className:(0,r.A)(h.header,_,{[h.transparent]:R}),children:(0,l.jsxs)("div",{ref:y.fixedContainerRef,className:(0,r.A)(h.fixed,{[h.hidden]:y.isHeaderHidden,[h.navigationOpen]:y.isNavigationOpen}),children:[S&&(0,l.jsx)(e7,{onDismiss:E.dismissBanner,onClosed:E.finishBannerClosing,onOpenDetails:E.openPopupFromBanner,onOpenCertificatesPage:E.openCertificatesPage,onOpenYandexBrowserPage:E.openYandexBrowserPage}),z&&!!(null!=N&&N.appBannerUrl)&&f&&(0,l.jsx)(t4,{mobileAppUrl:N.appBannerUrl,minioUrl:u}),(0,l.jsxs)(a.m,{className:h.container,children:[(0,l.jsxs)("div",{className:h.leftRow,children:[(0,l.jsx)(tJ,{className:h.logo,href:n,eventActionType:c.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(n),children:(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{srcSet:(0,s.oq)(u,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,l.jsx)("img",{src:(0,s.oq)(u,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,l.jsx)("nav",{ref:y.navMenuItemsRef,className:h.menuItems,children:(0,l.jsx)("ul",{children:v.map(e=>{let{id:t,label:n}=e;return(0,l.jsx)("li",{children:(0,l.jsx)(o.$,{className:(0,r.A)({[h.menuItemActive]:y.openedBlock===t&&y.isNavigationOpen}),label:n,variant:"white",size:"xs",onClick:P(A(t,n,!0)),onMouseEnter:((e,t,n,l)=>()=>{y.isNavigationOpen&&e===y.openedBlock||y.setIgnoreClicks(),T(A(e,t,n,l),200)})(t,n,!0,!0),onMouseLeave:L})},t)})})}),(0,l.jsx)(tL,{className:(0,r.A)(h.tabletMenuButton,{[h.menuItemActive]:y.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,l.jsx)(ey,{size:24}),onClick:A("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,l.jsxs)("div",{className:(0,r.A)(h.buttonGroup,{[h.whiteIcons]:(null==N?void 0:N.iconColorOnMobileMainBanner)==="white"}),children:[(0,l.jsxs)("div",{className:h.chips,children:[(0,l.jsx)(tL,{as:"a",href:d,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:"profile_".concat(d),iconLeft:(0,l.jsx)(eS,{size:20})}),(0,l.jsx)(tL,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,l.jsx)(ev,{size:24})})]}),(0,l.jsx)(tL,{className:h.menuButton,size:"xs",shape:R?"icon":"default",appearance:R?"ghost":"fill",label:"Меню",onClick:A("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,l.jsx)(ej,{size:24})}),(0,l.jsxs)("div",{className:h.moreButtons,children:[(0,l.jsx)(tY,{initialTown:p}),(0,l.jsx)(tL,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",appearance:"ghost",eventActionText:"IconFdsChatDotsSquareAddO",iconLeft:(0,l.jsx)(eb,{size:24}),children:"Онлайн чат"}),(0,l.jsx)(tL,{as:"a",href:d,size:"xs",eventActionText:O,eventLabel:"".concat(O,"_").concat(d),label:O})]})]}),(0,l.jsxs)(tJ,{className:h.auth,href:d,eventActionText:O,eventLabel:"".concat(O,"_").concat(d),children:[(0,l.jsx)(tL,{size:"xs",shape:"circle-icon",iconLeft:(0,l.jsx)(eS,{}),eventActionText:O,eventLabel:"".concat(O,"_").concat(d)}),(0,l.jsx)("p",{children:O})]}),(0,l.jsx)("div",{className:h.close,children:(0,l.jsx)(tL,{className:h.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,l.jsx)(ek,{}),onClick:()=>y.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,l.jsx)("div",{className:(0,r.A)(h.overlay,{[h.removed]:!y.isNavigationMounted,[h.overlayOpening]:y.isNavigationOpen,[h.overlayClosing]:!y.isNavigationOpen}),onClick:P(()=>y.setOpenedBlock(null))}),(0,l.jsx)(nb,{data:k,minioUrl:u}),$]}):w?$:null},ny=e=>(0,l.jsx)(eH,{isMainBannerPage:e.isMainBannerPage,children:(0,l.jsx)(n_,{...e})})},77743:(e,t,n)=>{"use strict";n.d(t,{D:()=>O,P:()=>W,U:()=>U,u:()=>w});var l=n(95155),i=n(12115),o=n(2821),a=n(1611),r=n(47650);let s=300,c=({opened:e})=>{let[t,n]=(0,i.useState)(!1),l=(0,i.useRef)(null),o=(0,i.useRef)(!1);return(0,i.useEffect)(()=>(e&&!o.current?(o.current=!0,n(!0)):!e&&o.current&&(l.current=setTimeout(()=>{o.current=!1,n(!1)},s)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},u=(0,a.g)("click-outside","sc"),d=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),p=({onClose:e,onToucheMove:t,isOpen:n,delay:a=s})=>{let r=(0,i.useRef)(null),c=(0,i.useCallback)(()=>{e&&(r.current=setTimeout(()=>{e()},a))},[a,e]),u=(0,i.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,i.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{r.current&&clearTimeout(r.current),window.removeEventListener("keydown",u)}),[n,u]),(0,l.jsx)("div",{className:(0,o.A)(d.overlay,{[d.open]:n,[d.close]:!n}),onTouchStart:t,onClick:c})},m=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},h=(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")},f=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},g=()=>document.querySelectorAll("[data-portal]").length>1,w=e=>{let t=(0,i.useRef)(null),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(n.current===e)return;n.current=e;let l=t.current,i=document.body,o=document.documentElement,a=window.innerWidth-o.clientWidth,r=a>0;if(e&&r)i.style.top||(window.prevScrollPosition=window.scrollY),((e,t,n)=>{t.style.setProperty("overflow-y","scroll"),e.classList.toggle("scroll-disable-windows",!0),e.style.setProperty("width",`calc(100vw - ${n}px)`),e.style.setProperty("top",`-${window.prevScrollPosition}px`)})(i,o,a),m(l,!0);else if(e)(e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")})(i),m(l,!0);else{let e=!g();e&&h(i,o),e&&f(),m(l,!1)}return()=>{let e=!g();e&&h(i,o),e&&f()}},[e]),t},v={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},x={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},b=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 _({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...v,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(b,{viewBox:"0 0 24 24",style:x}))}_.displayName="IconFdsCloseO";let y=(0,a.g)("drawer-footer","sc"),C=Object.freeze({footer:`${y}__footer`,hasScroll:`${y}__footer--has-scroll`}),k=({footer:e,hasScroll:t,className:n})=>(0,l.jsx)("div",{className:(0,o.A)(C.footer,{[C.hasScroll]:t},n),children:"function"==typeof e?e():e}),N=(0,a.g)("drawer-content","sc"),j=Object.freeze({container:`${N}__container`,open:`${N}--open`,close:`${N}--close`,header:`${N}__header`,rowHeader:`${N}__header--row`,title:`${N}__title`,center:`${N}__title--center`,left:`${N}__title--left`,right:`${N}__title--right`,controlContainer:`${N}__control-container`,content:`${N}__content`,footer:`${N}__footer`}),E=({onClose:e,onContentClick:t,children:n,title:a,rowTitle:r,titleAlign:s,isCloseable:c,footer:u,closeButton:d,isOpen:p,contentClassName:m,footerClassName:h,contentStyle:f,width:g})=>{let w=(0,i.useRef)(null),v=(0,i.useRef)(null),[x,b]=(0,i.useState)(!1);(0,i.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 y=f||g?{width:g,...f||{}}:void 0;return(0,l.jsxs)("div",{ref:w,style:y,className:(0,o.A)(j.container,{[j.open]:p,[j.close]:!p},m),children:[a||c?(0,l.jsxs)("div",{className:(0,o.A)(j.header,{[j.rowHeader]:r}),children:[c?d?"function"==typeof d?d():d:(0,l.jsx)("button",{type:"button",className:j.controlContainer,onClick:e,children:(0,l.jsx)(_,{size:24})}):null,a?(0,l.jsx)("h3",{className:(0,o.A)(j.title,{[j[s]]:!0}),children:a}):null]}):null,(0,l.jsx)("div",{ref:v,className:j.content,onClick:t,children:n}),u&&(0,l.jsx)(k,{className:(0,o.A)(j.footer,h),footer:u,hasScroll:x})]})},S=(0,a.g)("drawer-layout","sc"),z=Object.freeze({window:`${S}__window`}),I=({onClose:e,isOpen:t,children:n,withDisabledScroll:a,className:r,...s})=>{let c=(0,i.useCallback)(e=>e.stopPropagation(),[]);return w(t&&a),(0,l.jsxs)("div",{"data-portal":!0,className:(0,o.A)(z.window,r),children:[(0,l.jsx)(p,{onClose:e,isOpen:t,delay:0}),(0,l.jsx)(E,{onContentClick:c,onClose:e,isOpen:t,...s,children:n})]})},O=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:i=!0,withDisabledScroll:o=!0,...a})=>{let{mounted:r}=c({opened:e});return r?(0,l.jsx)(I,{titleAlign:n,isCloseable:i,isOpen:e,withDisabledScroll:o,...a,children:t}):null};O.displayName="Drawer";let R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},A={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},T=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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 L({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...R,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(T,{viewBox:"0 0 24 24",style:A}))}L.displayName="IconFdsCloseO";let P=(0,a.g)("mobile-modal-footer","sc"),$=Object.freeze({footer:`${P}__footer`,footerWithoutShadow:`${P}__footer--without-shadow`}),B=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,l.jsx)("div",{className:(0,o.A)($.footer,t&&$.footerWithoutShadow,n),children:"function"==typeof e?e():e}),M=(0,a.g)("mobile-popup","sc"),F=Object.freeze({mobilePopup:`${M}`,mobilePopupOpen:`${M}--open`,content:`${M}__content`,contentFull:`${M}__content--full`,contentTransition:`${M}__content--transition`,contentTransitionOpen:`${M}__content--transition-open`,contentLine:`${M}__content-line`,contentContainer:`${M}__content-container`,smallContentContainer:`${M}__content-container--small`,min:`${M}__content-container--min`,title:`${M}__title`,closeContainer:`${M}__close-container`,closeButton:`${M}__close-button`}),D=({children:e,footer:t,isOpen:n,isSmallPopup:a,onClose:r,hasCloseButton:s=!0,full:c,touchDistance:u=100,withDisabledScroll:d=!0,contentClassName:m,className:h,title:f,closeButton:g,footerClassName:v})=>{let[x,b]=(0,i.useState)(!1),[_,y]=(0,i.useState)(!1),[C,k]=(0,i.useState)(!0),[N,j]=(0,i.useState)("120%"),E=(0,i.useRef)(null),S=(0,i.useRef)(0),z=(0,i.useRef)(!1),I=e=>{var t,n,l;let i=null==(t=E.current)?void 0:t.offsetTop,o=null==(n=E.current)?void 0:n.offsetHeight;if(z.current=!0,k(!1),i&&o){let t=(null==(l=null==e?void 0:e.touches[0])?void 0:l.clientY)-i,n=0;t>=0&&t<=o+30&&(n=t),t>o+30&&(n=o+30),j(`${n}px`),S.current=n}},O=()=>{z.current&&(S.current>u&&r?null==r||r():j("0"),k(!0),z.current=!1),window.removeEventListener("touchmove",I),window.removeEventListener("touchend",O)};return(0,i.useEffect)(()=>{n&&setTimeout(()=>{b(!0),y(!0),j("0")},100),!n&&_&&(j("120%"),b(!1),y(!1))},[_,n]),w(n&&d),(0,l.jsxs)("div",{"data-portal":!0,className:(0,o.A)(F.mobilePopup,_&&F.mobilePopupOpen,h),children:[(0,l.jsx)(p,{onClose:()=>{n&&(null==r||r())},onToucheMove:()=>{n&&(b(!1),window.addEventListener("touchmove",I),window.addEventListener("touchend",O))},isOpen:n,delay:0}),(0,l.jsxs)("div",{className:(0,o.A)(F.content,c&&F.contentFull,C&&F.contentTransition,C&&x&&F.contentTransitionOpen),ref:E,style:{transform:`translateY(${N})`},children:[(0,l.jsx)("div",{className:F.contentLine}),(0,l.jsxs)("div",{className:(0,o.A)(F.contentContainer,a&&F.smallContentContainer,{[F.min]:!f&&!s},m),children:[!!f&&(0,l.jsx)("div",{className:F.title,children:f}),s?(0,l.jsx)("div",{className:F.closeContainer,children:s?g?"function"==typeof g?g():g:(0,l.jsx)("button",{onClick:r,className:F.closeButton,children:(0,l.jsx)(L,{size:24})}):null}):null,e]}),t&&(0,l.jsx)(B,{footerClassName:v,isSmallPopup:a,footer:t})]})]})},U=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...i})=>{let{mounted:o}=c({opened:n});return o?(0,l.jsx)(D,{isSmallPopup:t,isOpen:n,...i,children:e}):null};U.displayName="UiMobilePopup";let W=({children:e,id:t="portal-root"})=>{let[n,l]=(0,i.useState)(null);return(0,i.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,r.createPortal)(e,n):null}},93372:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,h:()=>r});var l=n(62097),i=n(37489),o=(e=>(e.icon="icon",e.chip="chip",e.accordion="accordion",e.button="button",e.checkbox="checkbox",e.radio="radio",e.select="select",e.toggle="toggle",e.tooltip="tooltip",e.link="link",e.banner="banner",e.tag="tag",e.date="date",e.field="field",e.offer="offer",e.tab="tab",e.submitButton="submitButton",e.popup="popup",e.block="block",e.show="show",e.close="close",e))(o||{});let a={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_",show:"show_",close:"close_"},r=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:o})=>{let r={event:"data-event",eventCategory:e,eventAction:a[t]+(0,l.t)(n)};void 0!==o&&(r.eventLabel=(0,l.t)("string"==typeof o?o:o.toString())),(0,i.d)(r)}}}]);