(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6335],{4530:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,h:()=>c,i:()=>r,s:()=>a});var l=n(17573),i=n(56053);let o="finuslugi-header-height-change",a=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let l=document.getElementById("mainHomeBanner"),i=!1,a=0,s=0,r=window.innerWidth<768,c=()=>window.scrollY||document.documentElement.scrollTop,d=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,s=0)},p=function(){let o=c(),r=document.getElementById("headerNotice");if((null==r?void 0:r.getAttribute("data-opening"))==="true")return;s||(()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));s=Number.isNaN(t)?0:t,a=c()}})();let u=o<s,p=o<((null==l?void 0:l.clientHeight)||0);if(n&&p||u){i=!1,e(!1),t(!0),d(`${s}px`);return}e(i=o>a),i&&setTimeout(()=>t(!1),50),d(i?"0px":`${s}px`),a=o<=0?0:o},h=()=>{s=0,p()};return window.addEventListener("scroll",p),window.addEventListener("resize",u),window.addEventListener(o,h),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",u),window.removeEventListener(o,h)}},s=(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}`},r=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{let e;(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})())&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&s("utm_params",e,90),e&&s("utm_last",e,90)}catch(e){console.error("UTM tracking error:",e)}},0)},c=(e,t,n)=>(0,l.h)({eventCategory:i.H,eventActionType:e,eventActionText:t,eventLabel:n})},8755:()=>{},9056:()=>{},11412:()=>{},12989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var l=n(95155),i=n(29722),o=n(83640);n(11412);let a=(0,o.g)("card"),s={card:a,variants:{primary:`${a}--primary`,secondary:`${a}--secondary`}},r=({as:e,className:t,style:n,children:o,variant:a="primary",dataQa:r,dataId:c,...d})=>(0,l.jsx)(e||"div",{className:(0,i.A)(t,s.card,s.variants[a]),style:n,...d,"data-id":c,"data-qa":r,children:o});r.displayName="Card"},17194:(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,"_")},17281:(e,t,n)=>{"use strict";n.d(t,{N:()=>y,s:()=>b});var l=n(95155),i=n(12115),o=n(29722),a=n(17573),s=n(4530),r=n(7596);let c={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},d={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},u=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 p({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...c,...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(u,{viewBox:"0 0 24 24",style:d}))}p.displayName="IconFdsDotsVerticalO";let h=(0,r.g)("navigation-chips","sc"),m=Object.freeze({wrapper:`${h}__wrapper`,gray:`${h}__variantGray`,white:`${h}__variantWhite`,container:`${h}__container`,chip:`${h}__chip`,more:`${h}__chip--more`,active:`${h}__chip--active`,icon:`${h}__icon`,label:`${h}__label`,hidden:`${h}__hidden`}),f={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},v={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},g=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 w({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...f,...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(g,{viewBox:"0 0 24 24",style:v}))}w.displayName="IconFdsArrowUpRightSmallO";let x=(0,r.g)("navigation-content","sc"),b=Object.freeze({contentWrapper:`${x}__content-wrapper`,content:`${x}__content`,contentOpen:`${x}__content--open`,contentHeader:`${x}__content-header`,contentTitle:`${x}__content-title`,contentTitleUrl:`${x}__content-title--url`,contentTitleLink:`${x}__content-title--link`,contentTitleNew:`${x}__content-title--new`,new:`${x}__new`,newInline:`${x}__new-inline`,vip:`${x}__vip`,arrowIcon:`${x}__arrow-icon`,links:`${x}__links`,linksColumns:`${x}__links--columns`,linksTitleless:`${x}__links--titleless`,removed:`${x}__removed`,hidden:`${x}__content--hidden`}),_=({chip:e,hidden:t,onClick:n,refCallback:i,activeChipId:r})=>{let c=!!n,d=()=>{if(c)return null==n?void 0:n(e.url);(0,s.h)(a.D.chip,e.title,`${e.title}_${e.url}`)},u=(0,l.jsxs)(l.Fragment,{children:[e.icon&&(0,l.jsx)("span",{className:m.icon,"aria-hidden":"true",children:e.icon}),(0,l.jsx)("span",{className:m.label,children:e.title}),e.arrow&&(0,l.jsx)(w,{size:24})]}),p=(0,o.A)(m.chip,{[m.hidden]:t,[b.new]:!!e.new,[b.vip]:!!e.vip,[m.active]:e.url===r});return c?(0,l.jsx)("button",{type:"button",className:p,onClick:d,ref:i,children:u}):(0,l.jsx)("a",{href:e.url,className:p,onClick:d,ref:i,children:u})},y=({items:e=[],maxNumberOfLines:t,variant:n,className:r,activeChipId:c,onClick:d,moreButtonOptions:u})=>{let h=(0,i.useRef)(null),f=(0,i.useRef)(null),v=(0,i.useRef)({}),g=(null==u?void 0:u.label)??"Еще",w="Еще",x=(null==u?void 0:u.showIcon)??!0,b=(0,o.A)(m.chip,m.more,null==u?void 0:u.className),[y,C]=(0,i.useState)(!1),[$,k]=(0,i.useState)(e.length),[N,j]=(0,i.useState)(!1);(0,i.useMemo)(()=>{let t=v.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 S=(0,i.useCallback)(()=>{let n=h.current;if(!n)return;let l=e=>e?e.getBoundingClientRect().width:0,i=l(n),o=Math.max(Number(t)||0,0),a=()=>{k(e.length),j(!1)};if(y||0===o||i<=0)return void a();let s=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),r=l(f.current),c=e.map(e=>l(v.current[e.url]));if(c.some(e=>0===e))return void a();let d=1,u=0,p=0;for(let e of c){let t=d===o?r+s:0,n=0===u?e:u+s+e;if(n+t<=i-.5)u=n,p++;else{if(++d>o)break;u=e,p++}}j(p<e.length),k(p)},[y,e,t]);(0,i.useLayoutEffect)(()=>{let e=h.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(S)});return t.observe(e),requestAnimationFrame(S),()=>{t.disconnect()}},[S]),(0,i.useEffect)(()=>{requestAnimationFrame(S)},[S]);let E=y||(t??0)<=0||!N;return(0,l.jsx)("div",{className:(0,o.A)(r,m.wrapper,{[m.gray]:"gray"===n,[m.white]:"white"===n}),children:(0,l.jsxs)("div",{ref:h,className:m.container,children:[e.map((e,t)=>(0,l.jsx)(_,{chip:e,hidden:!E&&t>=$,activeChipId:c,onClick:d,refCallback:t=>{v.current[e.url]=t}},e.url)),!E&&N&&(0,l.jsxs)("button",{type:"button",ref:f,className:b,"aria-label":w,onClick:()=>{(0,s.h)(a.D.chip,w),C(!0)},children:[x&&(0,l.jsx)(p,{size:20}),(0,l.jsx)("span",{className:m.label,children:g})]}),(E||!N)&&(0,l.jsxs)("button",{type:"button",ref:f,className:(0,o.A)(b,m.hidden),tabIndex:-1,"aria-hidden":"true",children:[x&&(0,l.jsx)(p,{size:20}),(0,l.jsx)("span",{className:m.label,children:g})]})]})})}},17573:(e,t,n)=>{"use strict";let l;n.d(t,{D:()=>a,h:()=>r});var i=n(17194),o=n(56853),a=((l=a||{}).icon="icon",l.chip="chip",l.accordion="accordion",l.button="button",l.checkbox="checkbox",l.radio="radio",l.select="select",l.toggle="toggle",l.tooltip="tooltip",l.link="link",l.banner="banner",l.tag="tag",l.date="date",l.field="field",l.offer="offer",l.tab="tab",l.submitButton="submitButton",l.popup="popup",l.block="block",l);let s={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_"},r=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:l})=>{let a={event:"data-event",eventCategory:e,eventAction:s[t]+(0,i.t)(n)};void 0!==l&&(a.eventLabel=(0,i.t)("string"==typeof l?l:l.toString())),(e=>{if(typeof window>"u")return;let t=sessionStorage.getItem("pushedEvents"),n=t?JSON.parse(t):[];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"),n.find(t=>t.eventCategory===e.eventCategory&&t.eventAction===e.eventAction&&t.eventLabel===e.eventLabel&&!1);(0,o.Fj)(e)})(a)}},25032:(e,t,n)=>{"use strict";n.d(t,{C:()=>d});var l=n(95155),i=n(12115),o=n(29722),a=n(92681),s=n(83640);n(49735);let r=(0,s.g)("chips"),c=Object.freeze({chips:r,chip:`${r}__item`,icon:`${r}__icon`,iconLeft:`${r}__icon-left`,iconRight:`${r}__icon-right`,label:`${r}__label`,variants:{primary:`${r}--primary`,secondary:`${r}--secondary`,tertiary:`${r}--tertiary`},activeVariants:{primary:`${r}--active-primary`,secondary:`${r}--active-secondary`},sizes:{s:`${r}--s`,m:`${r}--m`,l:`${r}--l`},selected:`${r}--selected`,indicator:`${r}__indicator`,indicatorVariant:{red:`${r}__indicator--red`,orange:`${r}__indicator--orange`,green:`${r}__indicator--green`,purple:`${r}__indicator--purple`,purpleSecondary:`${r}__indicator--purple-secondary`,blue:`${r}__indicator--blue`,pink:`${r}__indicator--pink`}}),d=(0,i.forwardRef)(({chips:e,value:t,variant:n="primary",activeVariant:s="primary",multiple:r,clearable:d,size:u="m",className:p,style:h,dataQa:m,dataId:f,onChipClick:v,...g},w)=>{let[x,b]=(0,i.useState)(r?[]:void 0),_=(0,i.useRef)(null);(0,i.useImperativeHandle)(w,()=>({getRoot:()=>_.current,getSelectedChips:()=>x})),(0,i.useEffect)(()=>{r?b(Array.isArray(t)?t:[]):b(t)},[t,r]);let y=r||d,C=e=>r&&Array.isArray(x)?x.includes(e):x===e,$=(e,t,n)=>{b(n),null==v||v(e,t,n)},k=(e,t)=>{if(r&&Array.isArray(x))if(C(e)){let n=x.filter(t=>t!==e);$(e,t,n)}else $(e,t,[...x,e]);else{let n=d&&C(e)?void 0:e;$(e,t,n)}};return(0,l.jsx)("div",{ref:_,className:(0,o.A)(p,c.chips),style:h,...g,"data-id":f,"data-qa":m,children:e.map((e,t)=>(({id:e,label:t,iconLeft:i,iconRight:r,indicator:d},p)=>{let h=C(e);return(0,l.jsxs)("div",{className:(0,o.A)(c.chip,c.sizes[u],c.activeVariants[s],c.variants[n],[{[c.selected]:h}]),role:y?"checkbox":"radio","aria-checked":h,"aria-label":t,tabIndex:0,"data-qa":(0,a.g)(`${m}-item-${++p}`,!!m),onClick:t=>{k(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),k(e,t))},children:[i&&(0,l.jsx)("span",{className:(0,o.A)(c.icon,c.iconLeft),"aria-hidden":"true",children:i}),(0,l.jsx)("span",{className:(0,o.A)(c.label),children:t}),d&&(0,l.jsx)("div",{className:(0,o.A)(c.indicator,c.indicatorVariant[d])}),r&&(0,l.jsx)("span",{className:(0,o.A)(c.icon,c.iconRight),"aria-hidden":"true",children:r})]},e)})(e,t))})});d.displayName="Chips"},39041:()=>{},43780:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var l=n(95155),i=n(29722),o=n(86253),a=n(83640);n(8755);let s=Object.freeze({text:(0,a.g)("text")});function r({as:e,className:t,style:n,children:a,size:c,weight:d,lineClamp:u,dataQa:p,dataId:h,...m}){return(0,l.jsx)(e||"span",{className:(0,i.A)(s.text,t),style:{...c&&{fontSize:`var(--font-size-${c})`,lineHeight:`var(--font-line-height-${c})`},...d&&{fontWeight:`var(--font-weight-${d})`},...u&&{WebkitLineClamp:u,lineClamp:u,...o.l},...n},...m,"data-id":h,"data-qa":p,children:a})}r.displayName="Text"},49735:()=>{},53730:(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})}}},56053:(e,t,n)=>{"use strict";n.d(t,{F:()=>d,H:()=>s,U:()=>o,a:()=>c,b:()=>r,c:()=>a,s:()=>i});let l=(0,n(7596).g)("header","sc"),i=Object.freeze({header:`${l}`,fixed:`${l}__fixed`,hidden:`${l}__fixed--hidden`,transparent:`${l}--transparent`,navigationOpen:`${l}__navigation-open`,container:`${l}__container`,leftRow:`${l}__left-row`,logo:`${l}__logo`,menuItems:`${l}__menu-items`,menuItemActive:`${l}__menu-item-active`,tabletMenuButton:`${l}__tablet-menu-button`,buttonGroup:`${l}__button-group`,chips:`${l}__chips`,menuButton:`${l}__menu-button`,moreButtons:`${l}__more-buttons`,auth:`${l}__auth`,whiteIcons:`${l}__white-icons`,close:`${l}__close`,removed:`${l}__removed`,overlay:`${l}__overlay`,overlayOpening:`${l}__overlay--opening`,overlayClosing:`${l}__overlay--closing`}),o="user_region",a="user_town",s="cb-header",r=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],c=r.reduce((e,t)=>(e[t.id]=t.label,e),{}),d=Object.freeze({mobile:56,desktop:80})},58015:(e,t,n)=>{"use strict";n.d(t,{L:()=>te,Y9:()=>t3,om:()=>e9}),n(9056);var l=n(95155),i=n(12115),o=n(24691),a=n(66216),s=n(29722),r=n(17806),c=n(17573),d=n(75420),u=n(4530),p=n(56053),h=n(7596),m=n(68990),f=n(14347),v=n(25032),g=n(73302),w=n(53730);let x={userRegion:p.U,userTown:p.c,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},b={userRegion:p.U,userTown:p.c,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},_=(e=!1)=>e?b:x,y=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},C=(e,t,n=!1)=>{if(typeof document>"u")return;let l=_(n);if(!e&&!t){w.a.removeItem(l.userRegion),w.a.removeItem(l.userTown);return}w.a.setItem(l.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),w.a.setItem(l.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},$=e=>{if(typeof document>"u")return null;let t=w.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},k=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},N=(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=k(_(e).allRegions)||[];return y(n,e),n},j=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),S=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]),[])},E=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,z=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},I=(e,t=!1)=>{if(e.length<1)return;let n=_(t);y(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},O=(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}},A=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),R=async()=>{let e=await z("https://finuslugi.ru/money_data/Root.json?short=1"),t=Array.isArray(null==e?void 0:e.regions)?e.regions:[];return I(t),t},T=async e=>{let t,n,[l,i]=await Promise.all([z(E(e,"/sc/api/v1/cities?all=true&isActive=true")),z(E(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==l?void 0:l.content)||!Array.isArray(null==i?void 0:i.content))return[];let o=l.content,a=(n=(t=i.content.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:+!!e.isActive,fiasId:e.fiasId,towns:[]}))).reduce((e,t)=>(e[t.id]=t,e),{}),o.forEach(e=>{let t=n[e.geoRegionId];t&&t.towns.push({id:e.legacyId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,main:+!!e.isRegionalCenter,newId:e.id,fiasId:e.fiasId})}),t);return j(a)?(I(a,!0),a):[]},L=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?T(e):R(),B=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},P=(e,t,n)=>{(0,c.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})};var M=n(24548),F=n(12989),H=n(17281);let U={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},D={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function W(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let V=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 q({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&W(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(V,{viewBox:"0 0 24 24",style:D}))}q.displayName="IconFdsChatDotsCircleO";let G=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 Y({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&W(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(G,{viewBox:"0 0 24 24",style:D}))}Y.displayName="IconFdsChatDotsSquareAddO";let J=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 Q({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&W(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(J,{viewBox:"0 0 24 24",style:D}))}Q.displayName="IconFdsChevronDownO";let K=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 Z({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&W(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(K,{viewBox:"0 0 24 24",style:D}))}Z.displayName="IconFdsCloseO";let X=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 ee({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&W(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(X,{viewBox:"0 0 24 24",style:D}))}ee.displayName="IconFdsMenuSkewedO";let et=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 en({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...U,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&W(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(et,{viewBox:"0 0 24 24",style:D}))}en.displayName="IconFdsUserO";let el=()=>{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 ea(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let es=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 er({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ei,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ea(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(es,{viewBox:"0 0 24 24",style:eo}))}er.displayName="IconFdsChevronRightSmallO";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 ed({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ei,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ea(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(ec,{viewBox:"0 0 24 24",style:eo}))}ed.displayName="IconFdsCloseO";let eu=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__a",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),i.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),i.createElement("path",{d:"M22.24 14.656v.042c0 .03 0 .072-.021.082v.042c-.031.404-.063.653-.063.674 0 .03 0 .072-.01.114v.031c-.01.062-.031.135-.041.207-.01.01-.01.021-.01.031-.177.84-.643 1.763-1.223 2.458-.229.27-.467.508-.716.695l-.766.55c-.7.48-1.416.936-2.146 1.368-1.523.892-2.89 1.524-3.067 1.607 0 .01-.01.01-.01.01a4.655 4.655 0 01-1.42.353c-.104.01-.207.02-.31.02-.094.011-.187.011-.28.011h-.146c-.704-.02-1.368-.155-1.875-.383-.073-.042-1.347-.623-2.83-1.473a2.051 2.051 0 01-.258-.145 36.043 36.043 0 01-2.912-1.918 4.527 4.527 0 01-1.068-1.141c-.072-.103-.072-.373.239-.373h.787c.342 0 .425.207.809.487.424.311 1.253.944 2.797 1.846.84.493 1.701.95 2.58 1.369h.011c.021.01.031.01.042.02.01 0 .02.01.03.01.01 0 .01.011.021.011.01.01.021.01.031.02.01.011.032.011.042.021.135.063.207.094.207.094.353.166.85.26 1.378.27h.207c.156 0 .311-.01.457-.032a3.65 3.65 0 00.85-.207c.02-.01.051-.02.072-.031l.041-.02a33.402 33.402 0 004.995-2.863c.446-.31.715-.518.726-.518.196-.145.393-.342.58-.58.466-.602.85-1.421.912-2.054 0 0 .031-.26.062-.684.01-.02.01-.052.01-.083v-.063c0-.041.01-.072.01-.114v-.04c.011-.022.011-.042.011-.074 0-.051.01-.103.01-.155.01-.031.01-.062.01-.093v-.021c.011-.042.011-.073.011-.114v-.083c.07-1.237.07-2.476 0-3.712v-.083c-.01-.042-.01-.073-.01-.114v-.021c-.01-.031-.01-.062-.01-.093 0-.052-.01-.104-.01-.156-.011-.02-.011-.052-.011-.072v-.042c0-.041-.01-.073-.01-.114v-.062c-.011-.031-.011-.052-.011-.083-.031-.425-.062-.674-.062-.685-.062-.632-.446-1.451-.912-2.053a3.411 3.411 0 00-.58-.58 33.42 33.42 0 00-5.762-3.401c-.02-.01-.052-.021-.073-.031a3.19 3.19 0 00-.85-.208 3.37 3.37 0 00-.456-.03h-.207c-.528.01-1.025.113-1.378.269 0 0-.083.03-.207.093-.01 0-.02.01-.031.01 0 0-.01.01-.02.01 0 .011-.011.011-.011.011 0 .01-.01.01-.01.01-.011 0-.021.01-.032.01a37.17 37.17 0 00-2.642 1.4c-1.534.913-2.373 1.535-2.798 1.846-.383.28-.466.488-.808.488h-.798c-.311 0-.311-.27-.239-.384.322-.477.674-.85 1.068-1.14a37.769 37.769 0 012.912-1.93l.062-.03a34.228 34.228 0 013.026-1.576c.518-.239 1.17-.373 1.886-.384h.145c.093 0 .186.01.28.01.103 0 .207.01.31.021a4.745 4.745 0 011.42.353s0 .01.01.01c.177.083 1.545.705 3.068 1.607a33.005 33.005 0 012.912 1.918c.248.187.487.426.715.695.58.695 1.047 1.618 1.223 2.458.01.01.01.02.01.03.019.069.033.138.041.208v.031c0 .031.01.073.01.114.011.021.032.27.063.674v.042c0 .041.01.072.01.114v.041c.01.021.01.052.01.073l.073 1.39v.04c.01.364.021.758.021 1.162l-.02 1.162v.04c-.021.54-.042 1.007-.073 1.39-.01.021-.01.052-.01.073zM9.865 10.218a.022.022 0 00-.02-.02h-.032a2.295 2.295 0 01-.673.103c-.466 0-.684-.124-.684-.83 0-.57.062-.83.684-.83.176 0 .332.022.539.084.02 0 .03 0 .041-.02l.27-.54v-.031a.022.022 0 00-.02-.02 3.125 3.125 0 00-.882-.136c-.964 0-1.399.456-1.399 1.483 0 1.037.435 1.504 1.399 1.504.238 0 .725-.052.954-.146.02-.01.03-.03.02-.052l-.197-.549zm-3.99-2.23c-.953 0-1.326.415-1.326 1.463 0 1.068.373 1.483 1.327 1.483.963 0 1.336-.415 1.336-1.483 0-1.048-.373-1.462-1.336-1.462zm-3.492.084a.044.044 0 00-.041.041v2.727c0 .021.02.042.041.042h.664c.02 0 .041-.021.041-.042V8.725h1.026c.01 0 .031-.01.031-.02.083-.187.156-.385.238-.581v-.032c-.01-.01-.02-.02-.03-.02h-1.97zm3.493 2.26c-.435 0-.57-.114-.57-.86 0-.788.145-.861.57-.861.435 0 .58.072.58.86 0 .737-.135.861-.58.861zm1.627 3.992a.022.022 0 00-.02-.02h-.032a2.295 2.295 0 01-.674.103c-.466 0-.684-.124-.684-.83 0-.57.073-.829.684-.829.176 0 .332.02.54.083.02 0 .03 0 .04-.02l.27-.54v-.03a.022.022 0 00-.007-.015 3.126 3.126 0 00-.895-.141c-.963 0-1.399.456-1.399 1.482 0 1.037.436 1.504 1.4 1.504.238 0 .725-.052.953-.145.02-.01.03-.032.02-.052l-.196-.55zm3.046-2.146H8.52c-.02 0-.031.01-.041.031A11.895 11.895 0 018 14.926c0 .01 0 .02.01.03.01.011.021.011.031.011h.695c.02 0 .03-.01.03-.02a10.7 10.7 0 00.415-2.116h.664v2.105c0 .02.02.041.041.041h.663c.021 0 .042-.02.042-.041v-2.727c0-.01-.021-.031-.042-.031zm5.752 0h-1.959a.044.044 0 00-.041.041v2.727c0 .021.02.042.041.042h.663c.02 0 .042-.02.042-.042v-2.115h1.025c.01 0 .032-.01.032-.02.083-.187.155-.384.238-.581v-.032c-.02-.01-.031-.02-.041-.02zm2.839 0h-.663a.045.045 0 00-.042.041v2.105c-.145.042-.29.062-.456.062-.435 0-.539-.134-.539-.715v-1.452a.045.045 0 00-.041-.041h-.663a.045.045 0 00-.041.041v1.525c0 .953.32 1.316 1.14 1.316.466 0 .994-.124 1.305-.238.01-.01.02-.02.02-.031v-2.572c.021-.02 0-.04-.02-.04v-.001zm-14.052.01h-.674c-.02 0-.03.01-.03.031-.104.415-.322 1.12-.612 1.856L3.1 12.21c-.011-.01-.021-.02-.032-.02h-.684c-.01 0-.02.01-.03.02-.011.01-.011.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.458 4.458 0 00-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .03-.01.03-.02.154-.3.295-.603.426-.913.435-1.016.777-1.97 1.036-2.84 0-.011 0-.022-.01-.032-.021-.02-.031-.02-.042-.02zm8.726 0h-.674c-.02 0-.031.01-.031.031-.104.425-.321 1.12-.612 1.856l-.673-1.866c-.01-.01-.02-.02-.031-.02h-.684c-.01 0-.02.01-.031.02-.01.01-.01.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.444 4.444 0 00-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .031-.01.031-.02.153-.3.295-.603.425-.913a28.78 28.78 0 001.036-2.84c0-.011 0-.022-.01-.032-.02-.02-.031-.02-.041-.02z",clipRule:"evenodd",fill:"url(#fds-gosuslugi-colored-o_svg__a)",fillRule:"evenodd"}));function ep({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ei,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ea(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(eu,{viewBox:"0 0 24 24",style:eo}))}ep.displayName="IconFdsGosuslugiColoredO";let eh=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 em({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ei,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&ea(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(eh,{viewBox:"0 0 24 24",style:eo}))}em.displayName="IconFdsShieldCheckO";let ef={"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"},ev=(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 eg(){return(0,i.useContext)(ev)}let ew=e=>{let[t,n]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[s,r]=(0,i.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:p,isChatLoading:h}=(()=>{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(ef,e)?ef[e]:ef["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,s)=>{var r,c;let d,u;o.current?s(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()},r=e,c=n,(d=document.createElement("link")).rel="stylesheet",d.type="text/css",d.href=`${r}/assets/css/${c}`,document.head.appendChild(d),(u=document.createElement("script")).src=`${r}/get-bootstrap/${c}`,u.defer=!0,document.body.appendChild(u))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,l;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(l=null==(n=window.supportWidget)?void 0:n.craftTalk)||l.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:n}})(),[m,f]=(0,i.useState)(null),[v,g]=(0,i.useState)(null),[w,x]=(0,i.useState)(!1),[b,_]=(0,i.useState)(!1),[y,C]=(0,i.useState)(!1),$=(0,i.useRef)(null),k=(0,d.u)(w),N=(0,i.useRef)(null),j=(0,i.useRef)(null),S=(0,i.useRef)(null),E=(0,i.useRef)(null),z=(0,i.useCallback)(()=>{k.current&&k.current.scrollTo({top:0})},[k]),I=(0,i.useCallback)(e=>{g(e),z()},[z]),O=(0,i.useCallback)(e=>{N.current&&clearTimeout(N.current),e&&_(!0),e||(N.current=setTimeout(()=>{_(!1),I(null)},300))},[I]),A=(0,i.useCallback)((e,t,n)=>{if(t&&I(t),!n&&e===m||!e){O(!w),x(!w);return}f(e),O(!0),x(!0)},[m,I,w,O]),R=(0,i.useCallback)(()=>{j.current&&clearTimeout(j.current),C(!0),j.current=setTimeout(()=>{C(!1)},650)},[]);return(0,i.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,u.s)(a,r,e.isMainBannerPage);return(0,u.i)(),t},[]),(0,l.jsx)("header",{children:(0,l.jsx)(ev.Provider,{value:{isAuth:t,isHeaderHidden:o,isHeaderTransparent:s,openedBlock:m,setOpenedBlock:A,openedSection:v,setOpenedSection:I,isNavigationOpen:w,isNavigationMounted:b,navMenuItemsRef:$,navigationRef:k,ignoreClicks:y,setIgnoreClicks:R,isChatModalOpen:c,setIsChatModalOpen:p,isChatLoading:h,fixedContainerRef:S,headerRef:E},children:e.children})})},ex=(0,h.g)("certificates-warning-banner","sc"),eb=(0,h.g)("certificates-warning-popup","sc"),e_=Object.freeze({wrapper:`${ex}`,container:`${ex}__container`,content:`${ex}__content`,info:`${ex}__info`,image:`${ex}__image`,text:`${ex}__text`,title:`${ex}__title`,description:`${ex}__description`,details:`${ex}__details`,buttons:`${ex}__buttons`,button:`${ex}__button`,closeButton:`${ex}__close-button`,mobileActivator:`${ex}__mobile-activator`}),ey=Object.freeze({modal:`${eb}__modal`,desktopCloseButton:`${eb}__desktop-close-button`,mobilePopup:`${eb}__mobile-popup`,mobileContentContainer:`${eb}__mobile-content-container`,mobileCloseButton:`${eb}__mobile-close-button`,mobileDialog:`${eb}__mobile-dialog`,content:`${eb}__content`,image:`${eb}__image`,text:`${eb}__text`,title:`${eb}__title`,description:`${eb}__description`,actions:`${eb}__actions`,button:`${eb}__button`,gosuslugiButton:`${eb}__gosuslugi-button`,gosuslugiIcon:`${eb}__gosuslugi-icon`}),eC="fu_certificates_access_confirmed",e$="fu_certificates_banner_dismissed",ek="fu_external_link_warning_shown",eN=["--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"],ej=({onDismiss:e,onClosed:t,onOpenDetails:n,onOpenCertificatesPage:s,onOpenYandexBrowserPage:r})=>{let{fixedContainerRef:c,headerRef:d}=eg(),h=(0,i.useRef)(null),m=(0,i.useRef)(!1),[f,v]=(0,i.useState)(!1),[g,w]=(0,i.useState)(!1),x=(0,i.useCallback)(()=>{let e=h.current,t=c.current;if(!e||!t)return;let n=e.getBoundingClientRect().height,l=n+(window.innerWidth<768?p.F.mobile:p.F.desktop),i=document.documentElement.style;i.setProperty("--banner-header-height",`${n}px`),i.setProperty("--fixed-header-height",`${l}px`),i.setProperty("--new-header-height-desktop",`${l}px`),i.setProperty("--new-header-height-mobile",`${l}px`),i.setProperty("--static-new-header-height-mobile",`${l}px`),i.setProperty("--static-new-header-height-desktop",`${l}px`),i.setProperty("--header-height",`${n+108}px`),t.style.transform=m.current?"translateY(0)":`translateY(-${n}px)`,window.dispatchEvent(new Event(u.H))},[c]),b=(0,i.useCallback)(()=>{let e=c.current;eN.forEach(e=>document.documentElement.style.removeProperty(e)),e&&(e.style.transform=""),window.dispatchEvent(new Event(u.H))},[c]),_=(0,i.useCallback)(()=>{let e=c.current;if(!e)return;let t=window.innerWidth<768?p.F.mobile:p.F.desktop,n=document.documentElement.style;n.setProperty("--fixed-header-height",`${t}px`),n.setProperty("--new-header-height-desktop",`${t}px`),n.setProperty("--new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-desktop",`${t}px`),n.setProperty("--header-height","108px"),e.style.transform="",window.dispatchEvent(new Event(u.H))},[c]);return(0,i.useEffect)(()=>{let e=d.current;if(!e)return;let n=()=>{w(!1),f&&t()};return e.addEventListener("transitionend",n),()=>e.removeEventListener("transitionend",n)},[d,f,t]),(0,i.useLayoutEffect)(()=>{var e;let t=h.current;if(!t)return;x();let n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=null;n?(m.current=!0,null==(e=c.current)||e.style.setProperty("transform","translateY(0)")):l=window.requestAnimationFrame(()=>{var e;m.current=!0,null==(e=c.current)||e.style.setProperty("transform","translateY(0)"),w(!0)});let i=new ResizeObserver(x);return i.observe(t),window.addEventListener("resize",x),()=>{null!==l&&window.cancelAnimationFrame(l),i.disconnect(),window.removeEventListener("resize",x),b()}},[b,x]),(0,l.jsxs)("div",{id:"headerNotice",ref:h,role:"region","aria-label":"Сертификаты Минцифры","data-opening":g,className:e_.wrapper,children:[(0,l.jsx)("button",{className:e_.mobileActivator,type:"button","aria-label":"Подробнее о сертификатах Минцифры",onClick:n}),(0,l.jsx)(a.m,{children:(0,l.jsxs)("div",{className:e_.container,children:[(0,l.jsxs)("div",{className:e_.content,children:[(0,l.jsxs)("div",{className:e_.info,children:[(0,l.jsx)("div",{className:e_.image,children:(0,l.jsx)(em,{size:32})}),(0,l.jsxs)("div",{className:e_.text,children:[(0,l.jsx)("h2",{className:e_.title,children:"Для работы российских сайтов нужны сертификаты Минцифры"}),(0,l.jsx)("p",{className:e_.description,children:"Установите их, чтобы пользоваться всеми функциями сайта и оплачивать услуги без сбоев. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"}),(0,l.jsxs)("span",{className:e_.details,children:["Подробнее",(0,l.jsx)(er,{size:16})]})]})]}),(0,l.jsxs)("div",{className:e_.buttons,children:[(0,l.jsx)(o.$,{className:e_.button,label:"Установить сертификаты",iconLeft:(0,l.jsx)(ep,{size:16}),size:"xs",variant:"white",onClick:s}),(0,l.jsx)(o.$,{className:e_.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:r})]})]}),(0,l.jsx)("button",{className:e_.closeButton,type:"button","aria-label":"Закрыть",onClick:()=>{if(e(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){b(),t();return}_(),v(!0)},children:(0,l.jsx)(ed,{size:24})})]})})]})},eS={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eE={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ez=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 eI({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eS,...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(ez,{viewBox:"0 0 24 24",style:eE}))}eI.displayName="IconFdsCloseO";let eO={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eA={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eR(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let eT=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__a",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),i.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),i.createElement("path",{d:"M22.24 14.656v.042c0 .03 0 .072-.021.082v.042c-.031.404-.063.653-.063.674 0 .03 0 .072-.01.114v.031c-.01.062-.031.135-.041.207-.01.01-.01.021-.01.031-.177.84-.643 1.763-1.223 2.458-.229.27-.467.508-.716.695l-.766.55c-.7.48-1.416.936-2.146 1.368-1.523.892-2.89 1.524-3.067 1.607 0 .01-.01.01-.01.01a4.655 4.655 0 01-1.42.353c-.104.01-.207.02-.31.02-.094.011-.187.011-.28.011h-.146c-.704-.02-1.368-.155-1.875-.383-.073-.042-1.347-.623-2.83-1.473a2.051 2.051 0 01-.258-.145 36.043 36.043 0 01-2.912-1.918 4.527 4.527 0 01-1.068-1.141c-.072-.103-.072-.373.239-.373h.787c.342 0 .425.207.809.487.424.311 1.253.944 2.797 1.846.84.493 1.701.95 2.58 1.369h.011c.021.01.031.01.042.02.01 0 .02.01.03.01.01 0 .01.011.021.011.01.01.021.01.031.02.01.011.032.011.042.021.135.063.207.094.207.094.353.166.85.26 1.378.27h.207c.156 0 .311-.01.457-.032a3.65 3.65 0 00.85-.207c.02-.01.051-.02.072-.031l.041-.02a33.402 33.402 0 004.995-2.863c.446-.31.715-.518.726-.518.196-.145.393-.342.58-.58.466-.602.85-1.421.912-2.054 0 0 .031-.26.062-.684.01-.02.01-.052.01-.083v-.063c0-.041.01-.072.01-.114v-.04c.011-.022.011-.042.011-.074 0-.051.01-.103.01-.155.01-.031.01-.062.01-.093v-.021c.011-.042.011-.073.011-.114v-.083c.07-1.237.07-2.476 0-3.712v-.083c-.01-.042-.01-.073-.01-.114v-.021c-.01-.031-.01-.062-.01-.093 0-.052-.01-.104-.01-.156-.011-.02-.011-.052-.011-.072v-.042c0-.041-.01-.073-.01-.114v-.062c-.011-.031-.011-.052-.011-.083-.031-.425-.062-.674-.062-.685-.062-.632-.446-1.451-.912-2.053a3.411 3.411 0 00-.58-.58 33.42 33.42 0 00-5.762-3.401c-.02-.01-.052-.021-.073-.031a3.19 3.19 0 00-.85-.208 3.37 3.37 0 00-.456-.03h-.207c-.528.01-1.025.113-1.378.269 0 0-.083.03-.207.093-.01 0-.02.01-.031.01 0 0-.01.01-.02.01 0 .011-.011.011-.011.011 0 .01-.01.01-.01.01-.011 0-.021.01-.032.01a37.17 37.17 0 00-2.642 1.4c-1.534.913-2.373 1.535-2.798 1.846-.383.28-.466.488-.808.488h-.798c-.311 0-.311-.27-.239-.384.322-.477.674-.85 1.068-1.14a37.769 37.769 0 012.912-1.93l.062-.03a34.228 34.228 0 013.026-1.576c.518-.239 1.17-.373 1.886-.384h.145c.093 0 .186.01.28.01.103 0 .207.01.31.021a4.745 4.745 0 011.42.353s0 .01.01.01c.177.083 1.545.705 3.068 1.607a33.005 33.005 0 012.912 1.918c.248.187.487.426.715.695.58.695 1.047 1.618 1.223 2.458.01.01.01.02.01.03.019.069.033.138.041.208v.031c0 .031.01.073.01.114.011.021.032.27.063.674v.042c0 .041.01.072.01.114v.041c.01.021.01.052.01.073l.073 1.39v.04c.01.364.021.758.021 1.162l-.02 1.162v.04c-.021.54-.042 1.007-.073 1.39-.01.021-.01.052-.01.073zM9.865 10.218a.022.022 0 00-.02-.02h-.032a2.295 2.295 0 01-.673.103c-.466 0-.684-.124-.684-.83 0-.57.062-.83.684-.83.176 0 .332.022.539.084.02 0 .03 0 .041-.02l.27-.54v-.031a.022.022 0 00-.02-.02 3.125 3.125 0 00-.882-.136c-.964 0-1.399.456-1.399 1.483 0 1.037.435 1.504 1.399 1.504.238 0 .725-.052.954-.146.02-.01.03-.03.02-.052l-.197-.549zm-3.99-2.23c-.953 0-1.326.415-1.326 1.463 0 1.068.373 1.483 1.327 1.483.963 0 1.336-.415 1.336-1.483 0-1.048-.373-1.462-1.336-1.462zm-3.492.084a.044.044 0 00-.041.041v2.727c0 .021.02.042.041.042h.664c.02 0 .041-.021.041-.042V8.725h1.026c.01 0 .031-.01.031-.02.083-.187.156-.385.238-.581v-.032c-.01-.01-.02-.02-.03-.02h-1.97zm3.493 2.26c-.435 0-.57-.114-.57-.86 0-.788.145-.861.57-.861.435 0 .58.072.58.86 0 .737-.135.861-.58.861zm1.627 3.992a.022.022 0 00-.02-.02h-.032a2.295 2.295 0 01-.674.103c-.466 0-.684-.124-.684-.83 0-.57.073-.829.684-.829.176 0 .332.02.54.083.02 0 .03 0 .04-.02l.27-.54v-.03a.022.022 0 00-.007-.015 3.126 3.126 0 00-.895-.141c-.963 0-1.399.456-1.399 1.482 0 1.037.436 1.504 1.4 1.504.238 0 .725-.052.953-.145.02-.01.03-.032.02-.052l-.196-.55zm3.046-2.146H8.52c-.02 0-.031.01-.041.031A11.895 11.895 0 018 14.926c0 .01 0 .02.01.03.01.011.021.011.031.011h.695c.02 0 .03-.01.03-.02a10.7 10.7 0 00.415-2.116h.664v2.105c0 .02.02.041.041.041h.663c.021 0 .042-.02.042-.041v-2.727c0-.01-.021-.031-.042-.031zm5.752 0h-1.959a.044.044 0 00-.041.041v2.727c0 .021.02.042.041.042h.663c.02 0 .042-.02.042-.042v-2.115h1.025c.01 0 .032-.01.032-.02.083-.187.155-.384.238-.581v-.032c-.02-.01-.031-.02-.041-.02zm2.839 0h-.663a.045.045 0 00-.042.041v2.105c-.145.042-.29.062-.456.062-.435 0-.539-.134-.539-.715v-1.452a.045.045 0 00-.041-.041h-.663a.045.045 0 00-.041.041v1.525c0 .953.32 1.316 1.14 1.316.466 0 .994-.124 1.305-.238.01-.01.02-.02.02-.031v-2.572c.021-.02 0-.04-.02-.04v-.001zm-14.052.01h-.674c-.02 0-.03.01-.03.031-.104.415-.322 1.12-.612 1.856L3.1 12.21c-.011-.01-.021-.02-.032-.02h-.684c-.01 0-.02.01-.03.02-.011.01-.011.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.458 4.458 0 00-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .03-.01.03-.02.154-.3.295-.603.426-.913.435-1.016.777-1.97 1.036-2.84 0-.011 0-.022-.01-.032-.021-.02-.031-.02-.042-.02zm8.726 0h-.674c-.02 0-.031.01-.031.031-.104.425-.321 1.12-.612 1.856l-.673-1.866c-.01-.01-.02-.02-.031-.02h-.684c-.01 0-.02.01-.031.02-.01.01-.01.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.444 4.444 0 00-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .031-.01.031-.02.153-.3.295-.603.425-.913a28.78 28.78 0 001.036-2.84c0-.011 0-.022-.01-.032-.02-.02-.031-.02-.041-.02z",clipRule:"evenodd",fill:"url(#fds-gosuslugi-colored-o_svg__a)",fillRule:"evenodd"}));function eL({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eO,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&eR(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(eT,{viewBox:"0 0 24 24",style:eA}))}eL.displayName="IconFdsGosuslugiColoredO";let eB=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 eP({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eO,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&eR(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(eB,{viewBox:"0 0 24 24",style:eA}))}eP.displayName="IconFdsShieldCheckO";let eM=({onOpenCertificatesPage:e,onOpenYandexBrowserPage:t})=>{let n=(0,i.useRef)(null),a=`certificates-warning-gosuslugi-${(0,i.useId)().replaceAll(":","")}`;return(0,i.useLayoutEffect)(()=>{var e,t;let l=null==(e=n.current)?void 0:e.querySelector("linearGradient"),i=null==(t=n.current)?void 0:t.querySelector('path[fill^="url("]');l&&i&&(l.id=a,i.setAttribute("fill",`url(#${a})`))},[a]),(0,l.jsxs)("div",{className:ey.content,children:[(0,l.jsx)("div",{className:ey.image,children:(0,l.jsx)(eP,{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.jsx)(o.$,{className:`${ey.button} ${ey.gosuslugiButton}`,label:"Установить сертификаты",iconLeft:(0,l.jsx)("span",{ref:n,className:ey.gosuslugiIcon,children:(0,l.jsx)(eL,{size:20})}),size:"s",stretch:!0,onClick:e}),(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:"s",stretch:!0,variant:"secondary",onClick:t})]})]})},eF=({isOpen:e,onClose:t,onOpenCertificatesPage:n,onOpenYandexBrowserPage:o})=>{let a=(0,f.qF)("l"),s=(0,i.useRef)(null),r=(0,l.jsx)(eM,{onOpenCertificatesPage:n,onOpenYandexBrowserPage:o});return(0,i.useEffect)(()=>{if(!e)return;let n=document.activeElement instanceof HTMLElement?document.activeElement:null,l=window.setTimeout(()=>{var e;if(!a){null==(e=s.current)||e.focus();return}let t=document.querySelector(`.${ey.desktopCloseButton}`);null==t||t.focus()},120),i=e=>{a||"Escape"===e.key&&t()};return document.addEventListener("keydown",i),()=>{window.clearTimeout(l),document.removeEventListener("keydown",i),null==n||n.focus()}},[a,e,t]),a?(0,l.jsxs)(m.a,{className:ey.modal,open:e,size:"m",noPadding:!0,header:{withoutCloseBtn:!0},"aria-label":"Установите сертификаты Минцифры",onClose:t,children:[(0,l.jsx)("button",{className:ey.desktopCloseButton,type:"button","aria-label":"Закрыть",onClick:t,children:(0,l.jsx)(eI,{size:24})}),r]}):(0,l.jsx)(d.P,{children:(0,l.jsx)(d.U,{className:ey.mobilePopup,contentClassName:ey.mobileContentContainer,isOpen:e,isSmallPopup:!0,onClose:t,closeButton:(0,l.jsx)("button",{className:ey.mobileCloseButton,type:"button","aria-label":"Закрыть",onClick:t,children:(0,l.jsx)(eI,{size:24})}),children:(0,l.jsx)("div",{ref:s,className:ey.mobileDialog,role:"dialog","aria-modal":"true","aria-label":"Установите сертификаты Минцифры",tabIndex:-1,children:r})})})},eH=new Map,eU=e=>{if(typeof window>"u")return"1"===eH.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===eH.get(e)}catch{return"1"===eH.get(e)}},eD=e=>{if(eH.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch{}},eW=(e,t)=>{if(!e)return null;try{let n,l,i=new URL(e.toString(),t.href);return"http:"!==i.protocol&&"https:"!==i.protocol||(n=i.hostname,l=t.hostname,n===l||"finuslugi.ru"===n||n.endsWith(".finuslugi.ru"))?null:i}catch{return null}},eV=async(e,t,n)=>{let l=new AbortController,i=()=>l.abort(),o=window.setTimeout(i,t);null==n||n.addEventListener("abort",i,{once:!0});try{return await fetch(e,{method:"HEAD",mode:"no-cors",cache:"no-store",credentials:"omit",referrerPolicy:"no-referrer",signal:l.signal}),!0}catch{return!1}finally{window.clearTimeout(o),null==n||n.removeEventListener("abort",i)}},eq={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eG={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eY=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 eJ({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eq,...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(eY,{viewBox:"0 0 24 24",style:eG}))}eJ.displayName="IconFdsLocationO";let eQ={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eK={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eZ(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}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-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 e0({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eQ,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&eZ(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(eX,{viewBox:"0 0 24 24",style:eK}))}e0.displayName="IconFdsCloseCircleO";let e1=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 e2({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eQ,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&eZ(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(e1,{viewBox:"0 0 24 24",style:eK}))}e2.displayName="IconFdsQuestionCircleO";let e3=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 e4({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...eQ,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&eZ(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(e3,{viewBox:"0 0 24 24",style:eK}))}e4.displayName="IconFdsSearchO";let e7=N(),e5=S(e7),e6={regions:e7,towns:e5,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},e8=(0,i.createContext)(e6);function e9(){return(0,i.useContext)(e8)}let te=({children:e,initialRegion:t,initialTown:n,showStartGeoPopup:o=!0,lastRegionsUpdateUnixTimestamp:a,dadataUrl:s="https://finuslugi.ru/backend/money/dadata",showcaseUrl:r="",useNewCitiesApi:d=!1})=>{let u=_(d),p=Number(k(u.lastRegionsUpdateUnixTimestamp)||0),h=Number(a||0)>p,[m,f]=(0,i.useState)(N(d)),v=(0,i.useRef)(m),[{startRegion:g,startTown:w},x]=(0,i.useState)({startRegion:e6.startRegion,startTown:e6.startTown}),b=t??e6.region,y=n??e6.town,[{region:E,town:z},I]=(0,i.useState)({region:b,town:y}),[R,T]=(0,i.useState)(e6.startPopupVisible),[M,F]=(0,i.useState)(e6.popupVisible),H=(0,i.useRef)(""),U=(0,i.useRef)(!1),D=(0,i.useMemo)(()=>S(m),[m]);(0,i.useEffect)(()=>{v.current=m},[m]);let W=(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)||""),T(!0),x({startRegion:e,startTown:t})},[T,x]),V=(0,i.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||W(e,t)},[W]),q=(0,i.useCallback)(()=>{if(H.current&&!E&&!z){let e=D.find(e=>e.name===H.current)??null;return V(m.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}V(E,z)},[E,z,D,m,V]),G=(0,i.useCallback)(e=>{F(e)},[F]),Y=(0,i.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(u.allRussiaSelected,"1"),window.localStorage.setItem(u.userRegion,""),window.localStorage.setItem(u.userTown,""),C(null,null,d);return}window.localStorage.setItem(u.allRussiaSelected,"0"),window.localStorage.setItem(u.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(u.userTown,JSON.stringify(t)||""),C(e||null,t||null,d)},[u,d]),J=(0,i.useCallback)(e=>{e?P(c.D.icon,"location"):P(c.D.button,(null==z?void 0:z.name)||"Вся Россия"),!o||window.sessionStorage.getItem("start_popup_opened")?G(!0):q()},[o,z,G,q]),Q=(0,i.useCallback)((e,t)=>{Y(e,t),I({region:e||null,town:t||null}),T(!1),G(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[G,Y]),K=()=>{let e=$(u.userRegion)??k(u.userRegion),t=$(u.userTown)??k(u.userTown),n=O(v.current,e,t),l=d&&(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId);l&&(U.current=!0),l&&A(n.region,n.town)&&(Y(n.region,n.town),U.current=!1),I(n);let i=async({coords:{latitude:e,longitude:t}})=>{let n=`${s}?lat=${e}&lon=${t}`,l=await B(n);null!=l&&l.location&&(H.current=l.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&o)try{navigator.geolocation.getCurrentPosition(i,()=>null)}catch{}};return(0,i.useEffect)(()=>{(!((e,t=!1)=>!(e.length<1)&&(!t||j(e)))(m,d)||h)&&L({showcaseUrl:r,useNewCitiesApi:d}).then(e=>{e.length<1||f(e)})},[]),(0,i.useEffect)(()=>{if(!d)return;let e=O(m,E,z);U.current&&A(e.region,e.town)&&(Y(e.region,e.town),U.current=!1),I(e)},[m,E,Y,z,d]),(0,i.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{K(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{K()},0)},[]),(0,l.jsx)(e8.Provider,{value:{regions:m,towns:D,region:E,town:z,startPopupVisible:R,setStartPopupVisible:T,popupVisible:M,handleToggleModal:G,selectCity:Q,handleButtonClick:J,startRegion:g,startTown:w},children:e})},tt=(0,h.g)("city-select-modal-body","sc"),tn=Object.freeze({wrapper:`${tt}__wrapper`,subtitle:`${tt}__subtitle`,hintWrapper:`${tt}__hint-wrapper`,hintText:`${tt}__hint-text`,input:`${tt}__input`,chips:`${tt}__chips`,townsListWrapper:`${tt}__towns-list-wrapper`,townsList:`${tt}__towns-list`,townsGroup:`${tt}__towns-group`,townsGroupLabel:`${tt}__towns-group-label`,townsGroupList:`${tt}__towns-group-list`,townsName:`${tt}__towns-name`,regionName:`${tt}__region-name`}),tl=({groupedTowns:e,chips:t,query:n,setQuery:o,isDrawer:a})=>{var s;let r=e9(),d=(0,i.useRef)(null),[u,p]=(0,i.useState)("10000px");(0,i.useEffect)(()=>{if(!a||!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 s=Math.max(...i.map(e));return s>=l?l:t(i,s)};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{l=0}l>0&&p(`${l}px`)}).observe(d.current)},[]);let h=e=>{if(P(c.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return r.selectCity();let t=r.regions.find(t=>t.id===Number(e.parentId))||null;r.selectCity(t,e)};return(0,l.jsxs)("div",{className:tn.wrapper,children:[(0,l.jsxs)("div",{className:tn.subtitle,children:["Покажем предложения рядом с вами",(0,l.jsxs)("div",{className:tn.hintWrapper,children:[(0,l.jsx)(e2,{size:24}),(0,l.jsx)("div",{className:tn.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,l.jsx)(g.O,{className:tn.input,value:n,onChange:o,size:"s",placeholder:"Введите название города",icon:n?(0,l.jsx)(e0,{size:24,onClick:()=>o("")}):(0,l.jsx)(e4,{size:24})}),(0,l.jsx)(v.C,{className:tn.chips,chips:t,value:(null==(s=r.town)?void 0:s.id)||0,onChipClick:e=>{h(r.towns.find(t=>t.id===e))}}),(0,l.jsx)("div",{className:tn.townsListWrapper,children:(0,l.jsx)("div",{ref:d,className:tn.townsList,style:{maxHeight:u},children:e.map(e=>(0,l.jsxs)("div",{className:tn.townsGroup,children:[(0,l.jsx)("div",{className:tn.townsGroupLabel,children:e.letter}),(0,l.jsx)("div",{className:tn.townsGroupList,children:e.towns.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>h(e),children:[(0,l.jsx)("div",{className:tn.townsName,children:e.name}),(0,l.jsx)("div",{className:tn.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},ti=[1095,1096,134,720,189,180],to=()=>{var e;let t=e9(),n=(0,f.qF)("l"),[o,a]=(0,i.useState)(""),s=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,r=(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]),u=(0,i.useMemo)(()=>[{id:0,label:"Вся Россия"},...ti.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]),p=()=>{P(c.D.button,"close"),t.handleToggleModal(!1)};return(0,l.jsxs)(d.P,{children:[!n&&(0,l.jsx)(d.U,{title:s,isOpen:t.popupVisible,onClose:p,full:!0,children:(0,l.jsx)(tl,{groupedTowns:r,chips:u,query:o,setQuery:a})}),n&&(0,l.jsx)(d.D,{title:s,isOpen:t.popupVisible,onClose:p,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,l.jsx)(tl,{groupedTowns:r,chips:u,query:o,setQuery:a,isDrawer:!0})})]})},ta=({label:e,onClick:t,eventActionText:n,eventLabel:i,...a})=>(0,l.jsx)(o.$,{label:e,onClick:e=>{null==t||t(e),(0,c.h)({eventCategory:p.H,eventActionType:c.D.button,eventActionText:n||"",eventLabel:i||""})},...a}),ts={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tr={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tc=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 td({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...ts,...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(tc,{viewBox:"0 0 24 24",style:tr}))}td.displayName="IconFdsCloseO";let tu=(0,h.g)("header-popup","sc"),tp=Object.freeze({popup:`${tu}__popup`,popupHeader:`${tu}__popup-header`,popupClose:`${tu}__popup-close`,body:`${tu}__body`}),th=({isOpen:e,onClose:t,children:n,title:i})=>{let o=(0,f.qF)("l");return(0,l.jsxs)(d.P,{children:[!o&&(0,l.jsx)(d.U,{title:i,isOpen:e,onClose:t,children:n}),o&&e&&(0,l.jsxs)("div",{className:tp.popup,children:[(0,l.jsxs)("div",{className:tp.popupHeader,children:[i,(0,l.jsx)(ta,{className:tp.popupClose,iconLeft:(0,l.jsx)(td,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,l.jsx)("div",{className:tp.body,children:n})]})]})},tm=(0,h.g)("start-choice-popup","sc"),tf=Object.freeze({top:`${tm}__top`,progress:`${tm}__progress`,innerCircle:`${tm}__inner-circle`,title:`${tm}__title`,subtitle:`${tm}__subtitle`,actions:`${tm}__actions`}),tv=()=>{var e,t;let n=e9(),[o,a]=(0,i.useState)(10),[s,r]=(0,i.useState)(0),d=(0,i.useRef)(void 0),u=()=>{P(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)(()=>{let e,t,l,i;n.startPopupVisible?(t=1e3*(e=Number((" "+o).slice(1)))/100,l=0,i=0,d.current=setInterval(()=>{l++,i+=t,r(3.6*l);let n=e-Math.floor(i/1e3);n<o&&a(n),100===l&&(clearInterval(d.current),u())},t)):(clearInterval(d.current),a(10),r(0))},[n.startPopupVisible]),(0,l.jsxs)(th,{isOpen:n.startPopupVisible,onClose:u,title:(0,l.jsx)("button",{type:"button",className:tf.progress,style:{background:`conic-gradient(#ff0508 ${s}deg, #e3e7ec 0deg)`},onClick:u,children:(0,l.jsx)("div",{className:tf.innerCircle,children:o})}),children:[(0,l.jsxs)("div",{className:tf.top,children:[(0,l.jsxs)("div",{className:tf.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,l.jsx)("div",{className:tf.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,l.jsxs)("div",{className:tf.actions,children:[(0,l.jsx)(ta,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{P(c.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,l.jsx)(ta,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{P(c.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},tg=(0,h.g)("city-select","sc"),tw=Object.freeze({button:`${tg}__button`,minimal:`${tg}__minimal`,full:`${tg}__full`}),tx=({initialTown:e})=>{var t;let n=e9(),a=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:r,isChatModalOpen:c}=eg(),{startPopupVisible:d,setStartPopupVisible:u,popupVisible:p}=n,h=(0,i.useRef)();(0,i.useEffect)(()=>{p&&(h.current="popup")},[p]),(0,i.useEffect)(()=>{c&&(h.current="chat")},[c]),(0,i.useEffect)(()=>{d&&(h.current="startPopup")},[d]),(0,i.useEffect)(()=>{h.current&&("chat"===h.current&&d?u(!1):["startPopup","popup"].includes(h.current)&&c&&r(!1))},[p,c,d,u,r]);let m={appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,l.jsx)(eJ,{size:24})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.$,{...m,className:(0,s.A)(tw.button,tw.full),label:a}),(0,l.jsx)(o.$,{...m,className:(0,s.A)(tw.button,tw.minimal),shape:"icon"}),(0,l.jsx)(to,{}),(0,l.jsx)(tv,{})]})},tb=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:i,...o})=>(0,l.jsx)(M.N,{onClick:l=>{null==e||e(l),(0,c.h)({eventCategory:p.H,eventActionType:t||c.D.link,eventActionText:n||"",eventLabel:i||""})},...o}),t_={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ty={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tC=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 t$({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...t_,...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(tC,{viewBox:"0 0 24 24",style:ty}))}t$.displayName="IconFdsCloseO";let tk=(0,h.g)("header-mobile-app-banner","sc"),tN=Object.freeze({wrapper:`${tk}__wrapper`,container:`${tk}__container`,closeButton:`${tk}__close-button`,innerWrapper:`${tk}__inner-wrapper`,imageWrapper:`${tk}__image-wrapper`,image:`${tk}__image`,title:`${tk}__title`,description:`${tk}__description`,callToAction:`${tk}__call-to-action`,scanQr:`${tk}__scan-qr`}),tj=Object.freeze({mobile:56,desktop:68}),tS="headerBannerShownAt",tE=({minioUrl:e,className:t,mobileAppUrl:n})=>{let{fixedContainerRef:d,headerRef:h}=eg(),[m,f]=(0,i.useState)(!1),[v,g]=(0,i.useState)(!1),[w,x]=(0,i.useState)(!1),b=(0,i.useCallback)((e="desktop")=>{let t=d.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${tj[e]+p.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${tj.desktop+p.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${tj.mobile+p.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${tj.mobile+p.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${tj.desktop+p.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${tj[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=h.current;if(!e)return;let t=()=>{v&&f(!1),x(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[v]),(0,i.useEffect)(()=>{let e;(!(e=(()=>{let e=localStorage.getItem(tS);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t})())||Math.floor((e.getTime()-new Date().getTime())/864e5)>5)&&f(!0)},[]),(0,i.useEffect)(()=>{let e=window.innerWidth<768;m&&(b(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?f(!0):x(!0));let t=()=>{if(!m)return null;b(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{_(),window.removeEventListener("resize",t)}},[m,b,_]),m?(0,l.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":w,className:(0,s.A)(tN.wrapper,t),children:(0,l.jsx)(a.m,{children:(0,l.jsxs)("div",{className:tN.container,children:[(0,l.jsxs)("div",{className:tN.innerWrapper,children:[(0,l.jsxs)("picture",{className:tN.imageWrapper,children:[(0,l.jsx)("source",{srcSet:(0,r.oq)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,l.jsx)("img",{className:tN.image,src:(0,r.oq)(e,"/logo/finuslugi/default-regular.svg"),loading:"lazy"})]}),(0,l.jsxs)("div",{className:tN.scanQr,children:[(0,l.jsx)("div",{className:tN.title,children:"Скачайте приложение Финуслуги"}),(0,l.jsx)("div",{className:tN.description,children:"Сканируйте QR-код"})]}),(0,l.jsxs)("div",{className:tN.callToAction,children:[(0,l.jsxs)("div",{children:["Приложение",(0,l.jsx)("br",{}),"Финуслуги"]}),(0,l.jsx)(o.$,{onClick:()=>{(0,u.h)(c.D.button,"skachat_mob_prilozheniye_fu"),window.open(n,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,l.jsx)("div",{"aria-label":"Закрыть",role:"button",className:tN.closeButton,onClick:()=>{localStorage.setItem(tS,new Date().toISOString()),_(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?f(!1):g(!0)},children:(0,l.jsx)(t$,{size:"100%"})})]})})}):null},tz={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tI={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tO(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tA=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 tR({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...tz,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tO(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(tA,{viewBox:"0 0 24 24",style:tI}))}tR.displayName="IconFdsChevronLeftO";let tT=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 tL({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...tz,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tO(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(tT,{viewBox:"0 0 24 24",style:tI}))}tL.displayName="IconFdsChevronRightSmallO";let tB=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 tP({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...tz,...o&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...n&&tO(n),...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},i.createElement(tB,{viewBox:"0 0 24 24",style:tI}))}tP.displayName="IconFdsLocationO";let tM=(0,h.g)("header-chat-modal-body","sc"),tF=Object.freeze({wrapper:`${tM}__wrapper`,cardButton:`${tM}__card-button`,card:`${tM}__card`,cardTitle:`${tM}__card-title`,cardSubtitle:`${tM}__card-subtitle`,button:`${tM}__button`}),tH=()=>{let e=eg();return(0,l.jsxs)("div",{className:tF.wrapper,children:[(0,l.jsx)(ta,{className:tF.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)(F.Z,{className:tF.card,variant:"secondary",children:[(0,l.jsxs)("div",{className:tF.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:tF.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,l.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},tU={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tD={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tW=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 tV({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...tU,...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(tW,{viewBox:"0 0 24 24",style:tD}))}tV.displayName="IconFdsArrowUpRightSmallO";let tq=({data:e,isMobile:t})=>{let n=eg();return(0,l.jsx)("div",{className:H.s.contentWrapper,children:e.map(e=>(0,l.jsx)(i.Fragment,{children:e.sections.map(e=>{var i;return(0,l.jsxs)("div",{className:(0,s.A)(H.s.content,{[H.s.hidden]:n.openedSection!==e.id,[H.s.contentOpen]:!!n.openedSection}),children:[(0,l.jsx)("div",{className:H.s.contentHeader,children:(0,l.jsx)("label",{children:e.title})}),null==(i=e.content)?void 0:i.map((n,i)=>{var o,a;return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:(0,l.jsx)("a",{className:(0,s.A)(H.s.contentTitle,{[H.s.removed]:!n.title,[H.s.contentTitleUrl]:!!n.url,[H.s.contentTitleLink]:!!e.isSeeAllLinkAvailable,[H.s.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,l.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,l.jsx)("div",{className:H.s.arrowIcon,children:(0,l.jsx)(tV,{})}),n.title]})})}),!(null!=(o=n.links)&&o.length)&&(0,l.jsx)(H.N,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(a=n.links)&&a.length)&&(0,l.jsx)("div",{className:(0,s.A)(H.s.links,{[H.s.linksColumns]:!!n.columns,[H.s.linksTitleless]:!n.title}),children:n.links.map(e=>(0,l.jsxs)("a",{href:e.url,onClick:()=>(0,u.h)(c.D.link,e.title,`${e.title}_${e.url}`),children:[(0,l.jsx)("div",{className:H.s.arrowIcon,children:(0,l.jsx)(tV,{})}),(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{children:e.title}),!!e.new&&(0,l.jsx)("span",{className:(0,s.A)({[H.s.newInline]:!!e.new})})]})]},e.url))})]},`${n.url}_${i}`)})]},e.id)})},e.id))})},tG=(0,h.g)("navigation-section-icon","sc"),tY=Object.freeze({icon:`${tG}`}),tJ=()=>n.e(367).then(n.bind(n,30367)),tQ={IconFdsAcademicCapO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsAcademicCapO),IconFdsBankO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsBankO),IconFdsBookOpenO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsBookOpenO),IconFdsCalculatorO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsCalculatorO),IconFdsCardO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsCardO),IconFdsChatDotsCircleO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsChatDotsCircleO),IconFdsCoinMultipleO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsCoinMultipleO),IconFdsDotsHorizontalO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsDotsHorizontalO),IconFdsFlashO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsFlashO),IconFdsGraphO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsGraphO),IconFdsLayoutHorizontalO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsLayoutHorizontalO),IconFdsPortfolioO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsPortfolioO),IconFdsRubleCircleO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsRubleCircleO),IconFdsSafeO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsSafeO),IconFdsShieldCheckO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsShieldCheckO),IconFdsWalletO:()=>tJ().then(({navigationSectionIcons:e})=>e.IconFdsWalletO)},tK=e=>Object.prototype.hasOwnProperty.call(tQ,e),tZ=({name:e,background:t})=>{let[n,o]=(0,i.useState)(null);if((0,i.useEffect)(()=>{if(!e||!tK(e))return void o(null);let t=!0;return tQ[e]().then(n=>{t&&o({name:e,component:n})}).catch(()=>{t&&o(null)}),()=>{t=!1}},[e]),!e||!tK(e))return null;let a=(null==n?void 0:n.name)===e?n.component:null;return(0,l.jsx)("div",{className:tY.icon,style:{background:t},children:a&&(0,l.jsx)(a,{})})},tX=(0,h.g)("navigation","sc"),t0=Object.freeze({navigation:`${tX}`,navigationOpening:`${tX}--opening`,navigationClosing:`${tX}--closing`,wrapper:`${tX}__wrapper`,container:`${tX}__container`,containerOpen:`${tX}__container--open`,sections:`${tX}__sections`,sectionsOpen:`${tX}__sections--open`,citySelectButton:`${tX}__city-select-button`,sectionsTitle:`${tX}__sections-title`,sectionsWrapper:`${tX}__sections-wrapper`,section:`${tX}__section`,sectionArrow:`${tX}__section-arrow`,sectionExtra:`${tX}__section--extra`,sectionActive:`${tX}__section--active`,sectionTitle:`${tX}__section-title`,chatWrapper:`${tX}__chat-wrapper`,chatHeader:`${tX}__chat-header`,backButton:`${tX}__back-button`,useful:`${tX}__useful`,usefulOpen:`${tX}__useful--open`,usefulTitle:`${tX}__useful-title`,usefulGrid:`${tX}__useful-grid`,removed:`${tX}__removed`}),t1=({data:e})=>{var t;let n=eg(),r=e9(),d=(0,f.nu)("m"),[h,m]=(0,i.useState)(!0);(0,i.useEffect)(()=>{m(d)},[d]);let v=(0,i.useRef)(null),g=(0,i.useCallback)(()=>{v.current&&clearTimeout(v.current),v.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),w=(0,i.useRef)(!1),x=(0,i.useRef)(null),b=(0,i.useCallback)(()=>{h&&(w.current=!0,x.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,h]),_=(0,i.useCallback)(()=>{w.current=!1,window.onpopstate=x.current,window.history.go(-1)},[]),y=(0,i.useRef)(null),C=(0,i.useCallback)(e=>{if(h||!n.navMenuItemsRef.current||!n.navigationRef.current)return;let t=e.target,l=!n.navMenuItemsRef.current.contains(t)&&!n.navigationRef.current.contains(t);if(l&&!y.current){n.setIgnoreClicks(),y.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!l&&y.current&&(clearTimeout(y.current),y.current=null)},[h,n]),$=(0,i.useRef)(null),k=(0,i.useCallback)(e=>{typeof window>"u"||(e?($.current=C,window.addEventListener("mousemove",$.current)):$.current&&window.removeEventListener("mousemove",$.current))},[C]);(0,i.useEffect)(()=>{k(n.isNavigationOpen),n.isNavigationOpen&&!w.current&&b(),!n.isNavigationOpen&&w.current&&_()},[n.isNavigationOpen]);let N=(e,t)=>()=>{(0,u.h)(c.D.button,t),n.setOpenedSection(e)},{start:j,clear:S}=el(),E=()=>{h||S()};return(0,l.jsx)("div",{ref:n.navigationRef,className:(0,s.A)(t0.navigation,{[t0.removed]:!n.isNavigationMounted,[t0.navigationOpening]:n.isNavigationOpen,[t0.navigationClosing]:!n.isNavigationOpen}),children:(0,l.jsx)("div",{className:t0.wrapper,children:(0,l.jsxs)(a.m,{className:(0,s.A)(t0.container,{[t0.containerOpen]:!!n.openedSection}),children:[(0,l.jsxs)("div",{className:(0,s.A)(t0.sections,{[t0.sectionsOpen]:!!n.openedSection}),children:[(0,l.jsx)(o.$,{className:t0.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>r.handleButtonClick(!1),iconLeft:(0,l.jsx)(tP,{size:24}),label:(null==(t=r.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,l.jsxs)("ul",{className:(0,s.A)(t0.sectionsWrapper,{[t0.removed]:n.openedBlock!==e.id&&!h}),children:[(0,l.jsx)("div",{className:t0.sectionsTitle,children:p.a[e.id]}),e.sections.map(e=>{let t,i;return(0,l.jsxs)("li",{className:(0,s.A)(t0.section,{[t0.sectionExtra]:!!e.extra,[t0.sectionActive]:n.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:(t=e.id,i=e.title,()=>{h||j(N(t,i),150)}),onMouseLeave:E,children:[n.isNavigationMounted&&(0,l.jsx)(tZ,{name:e.uikitIcon,background:e.uikitIconBg}),(0,l.jsx)("span",{className:t0.sectionTitle,children:e.title}),(0,l.jsx)("div",{className:t0.sectionArrow,children:(0,l.jsx)(tL,{size:24})})]},e.id)})]},e.id)),(0,l.jsxs)("div",{className:t0.chatWrapper,children:[(0,l.jsx)("div",{className:t0.chatHeader,children:"Нужна помощь?"}),(0,l.jsx)(tH,{})]})]}),(0,l.jsxs)("button",{type:"button",className:(0,s.A)(t0.backButton,{[t0.removed]:!n.openedSection}),onClick:()=>{(0,u.h)(c.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,l.jsx)(tR,{size:24}),(0,l.jsx)("span",{children:"Назад"})]}),(0,l.jsx)(tq,{data:e,isMobile:h}),(0,l.jsxs)("div",{className:(0,s.A)(t0.useful,{[t0.usefulOpen]:!!n.openedSection}),children:[(0,l.jsx)("div",{className:t0.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,l.jsx)(i.Fragment,{children:e.sections.map(e=>{var t;return(0,l.jsx)("div",{className:(0,s.A)(t0.usefulGrid,{[t0.removed]:n.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,l.jsxs)("a",{href:e.url,onClick:()=>(0,u.h)(c.D.link,e.title,`${e.title}_${e.url}`),children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${t}`))},e.id)})},e.id))]})]})})})},t2=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:d="https://lk.finuslugi.ru/registration",initialTown:h,isMainBannerPage:m,enableAppHeaderBanner:f=!1,enableCertificatesBanner:v=!1,enableExternalLinkWarning:g=!1,news:w,className:x})=>{let b=eg(),_=(0,i.useMemo)(()=>((e,t,n)=>{var l,i,o,a,s,c,d;let u=(null==(i=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l.findIndex)?void 0:i.call(l,({id:e})=>"news"===e))||-1,p=(null==(a=null==(o=null==e?void 0:e.NAVIGATOR)?void 0:o[u])?void 0:a.content)||[];if(null!=(d=null==(c=null==(s=null==e?void 0:e.NAVIGATOR)?void 0:s[u])?void 0:c.content)&&d[0]&&Array.isArray(n)&&p.length){let l=n.map(({title:e,url:n})=>({title:e,url:(0,r.oq)(t||"",n),new:0}));e.NAVIGATOR[u].content[0].links=l}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]})(e,t,w),[e,t,w]),y=null==e?void 0:e.config,C=!!e&&v&&!!m,$=(({enableCertificatesBanner:e,enableExternalLinkWarning:t,isMainBannerPage:n})=>{let[l,o]=(0,i.useState)("checking"),[a,s]=(0,i.useState)(!1),[r,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),p=(0,i.useRef)(),h=(0,i.useRef)(!1),m=(0,i.useRef)(!1),f=(0,i.useRef)(null),v=(0,i.useRef)(null),g=e&&n,w=g||t,x=(0,i.useCallback)(e=>{let t=p.current;t?t.call(window,e,"_blank","noopener,noreferrer"):window.open(e,"_blank","noopener,noreferrer")},[]),b=(0,i.useCallback)(()=>{s(!1),v.current=null},[]),_=(0,i.useCallback)(e=>{eD(ek),m.current=!0,v.current=e,s(!0)},[]),y=(0,i.useCallback)(()=>!h.current&&("external"===v.current||!m.current),[]),C=(0,i.useCallback)(()=>{"external"!==v.current&&_("external")},[_]);return(0,i.useEffect)(()=>{p.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");e&&eD(eC),h.current=e||eU(eC),m.current=eU(ek),u(h.current),c(!0)},[]),(0,i.useEffect)(()=>{if(r){if(!g)return void o("skipped");o(e=>"shown"===e||"closing"===e||"dismissed"===e?e:d||eU(e$)?"skipped":"shown")}},[d,g,r]),(0,i.useEffect)(()=>{if(!r||!w||h.current)return;let e=new AbortController;return f.current=e,eV("https://www.sberbank.ru/common_static/favicon.ico",1800,e.signal).then(t=>{f.current===e&&(f.current=null,t&&(eD(eC),h.current=!0,u(!0),"external"===v.current&&((e=>{if(eH.delete(e),!(typeof window>"u"))try{window.localStorage.removeItem(e)}catch{}})(ek),m.current=!1),v.current&&b()))}),()=>{e.abort(),f.current===e&&(f.current=null)}},[b,w,r]),(0,i.useEffect)(()=>{if(!r||!t)return;let e=p.current;if(!e)return;let n=!0,l=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let t=e.target.closest("a[href]");t&&!e.defaultPrevented&&eW(t.href,window.location)&&y()&&(e.preventDefault(),queueMicrotask(()=>{n&&y()&&C()}))},i=(t,n="_blank",l)=>eW(t,window.location)&&y()?(C(),null):e.call(window,t,n,l);return window.open=i,document.addEventListener("click",l,!0),document.addEventListener("auxclick",l,!0),()=>{n=!1,document.removeEventListener("click",l,!0),document.removeEventListener("auxclick",l,!0),window.open===i&&(window.open=e)}},[t,r,y,C]),(0,i.useEffect)(()=>{t||"external"===v.current&&b()},[b,t]),(0,i.useEffect)(()=>{g||"banner"===v.current&&b()},[b,g]),(0,i.useEffect)(()=>{w||b()},[b,w]),{bannerStatus:l,isPopupOpen:a,dismissBanner:(0,i.useCallback)(()=>{eD(e$),o("closing")},[]),finishBannerClosing:(0,i.useCallback)(()=>{o("dismissed")},[]),openPopupFromBanner:(0,i.useCallback)(()=>{_("banner")},[_]),closePopup:b,openCertificatesPage:(0,i.useCallback)(()=>{x("https://www.gosuslugi.ru/crt")},[x]),openYandexBrowserPage:(0,i.useCallback)(()=>{x("https://browser.yandex.ru/")},[x])}})({enableCertificatesBanner:C,enableExternalLinkWarning:g,isMainBannerPage:!!m}),k="shown"===$.bannerStatus||"closing"===$.bannerStatus,N=!C||"skipped"===$.bannerStatus,j=(0,i.useMemo)(()=>_.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[_]),S=b.isAuth?"Личный кабинет":"Войти",E=m&&b.isHeaderTransparent,z=(e,t,n,l)=>()=>{e!==b.openedBlock?(0,u.h)(c.D.toggle,t,"on"):(0,u.h)(c.D.button,"menu_close","on");let i=n?j[e]:"";b.setOpenedBlock(e,i,!!l)},{start:I,clear:O}=el(),A=e=>()=>{b.ignoreClicks||e()},R=(0,l.jsx)(eF,{isOpen:$.isPopupOpen,onClose:$.closePopup,onOpenCertificatesPage:$.openCertificatesPage,onOpenYandexBrowserPage:$.openYandexBrowserPage});return e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:b.headerRef,className:(0,s.A)(p.s.header,x,{[p.s.transparent]:E}),children:(0,l.jsxs)("div",{ref:b.fixedContainerRef,className:(0,s.A)(p.s.fixed,{[p.s.hidden]:b.isHeaderHidden,[p.s.navigationOpen]:b.isNavigationOpen}),children:[k&&(0,l.jsx)(ej,{onDismiss:$.dismissBanner,onClosed:$.finishBannerClosing,onOpenDetails:$.openPopupFromBanner,onOpenCertificatesPage:$.openCertificatesPage,onOpenYandexBrowserPage:$.openYandexBrowserPage}),N&&!!(null!=y&&y.appBannerUrl)&&f&&(0,l.jsx)(tE,{mobileAppUrl:y.appBannerUrl,minioUrl:n}),(0,l.jsxs)(a.m,{className:p.s.container,children:[(0,l.jsxs)("div",{className:p.s.leftRow,children:[(0,l.jsx)(tb,{className:p.s.logo,href:t,eventActionType:c.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,l.jsxs)("picture",{children:[(0,l.jsx)("source",{srcSet:(0,r.oq)(n,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,l.jsx)("img",{src:(0,r.oq)(n,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,l.jsx)("nav",{ref:b.navMenuItemsRef,className:p.s.menuItems,children:(0,l.jsx)("ul",{children:p.b.map(({id:e,label:t})=>(0,l.jsx)("li",{children:(0,l.jsx)(o.$,{className:(0,s.A)({[p.s.menuItemActive]:b.openedBlock===e&&b.isNavigationOpen}),label:t,variant:"white",size:"xs",onClick:A(z(e,t,!0)),onMouseEnter:()=>{b.isNavigationOpen&&e===b.openedBlock||b.setIgnoreClicks(),I(z(e,t,!0,!0),200)},onMouseLeave:O})},e))})}),(0,l.jsx)(ta,{className:(0,s.A)(p.s.tabletMenuButton,{[p.s.menuItemActive]:b.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,l.jsx)(Q,{size:24}),onClick:z("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,l.jsxs)("div",{className:(0,s.A)(p.s.buttonGroup,{[p.s.whiteIcons]:(null==y?void 0:y.iconColorOnMobileMainBanner)==="white"}),children:[(0,l.jsxs)("div",{className:p.s.chips,children:[(0,l.jsx)(ta,{as:"a",href:d,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${d}`,iconLeft:(0,l.jsx)(en,{size:20})}),(0,l.jsx)(ta,{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)(q,{size:24})})]}),(0,l.jsx)(ta,{className:p.s.menuButton,size:"xs",shape:E?"icon":"default",appearance:E?"ghost":"fill",label:"Меню",onClick:z("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,l.jsx)(ee,{size:24})}),(0,l.jsxs)("div",{className:p.s.moreButtons,children:[(0,l.jsx)(tx,{initialTown:h}),(0,l.jsx)(ta,{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)(Y,{size:24}),children:"Онлайн чат"}),(0,l.jsx)(ta,{as:"a",href:d,size:"xs",eventActionText:S,eventLabel:`${S}_${d}`,label:S})]})]}),(0,l.jsxs)(tb,{className:p.s.auth,href:d,eventActionText:S,eventLabel:`${S}_${d}`,children:[(0,l.jsx)(ta,{size:"xs",shape:"circle-icon",iconLeft:(0,l.jsx)(en,{}),eventActionText:S,eventLabel:`${S}_${d}`}),(0,l.jsx)("p",{children:S})]}),(0,l.jsx)("div",{className:p.s.close,children:(0,l.jsx)(ta,{className:p.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,l.jsx)(Z,{}),onClick:()=>b.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,l.jsx)("div",{className:(0,s.A)(p.s.overlay,{[p.s.removed]:!b.isNavigationMounted,[p.s.overlayOpening]:b.isNavigationOpen,[p.s.overlayClosing]:!b.isNavigationOpen}),onClick:A(()=>b.setOpenedBlock(null))}),(0,l.jsx)(t1,{data:_,minioUrl:n}),R]}):g?R:null},t3=e=>(0,l.jsx)(ew,{isMainBannerPage:e.isMainBannerPage,children:(0,l.jsx)(t2,{...e})})},68990:(e,t,n)=>{"use strict";n.d(t,{a:()=>w});var l=n(95155),i=n(12115),o=n(76701),a=n(29722),s=n(37370),r=n(92681),c=n(83640),d=n(31271),u=n(78012),p=n(62849),h=n(26048);n(39041);let m=(0,c.g)("modal"),f=Object.freeze({modal:m,overlay:`${m}__overlay`,withoutFooter:`${m}--without-footer`,noContent:`${m}--no-content`,open:`${m}--open`,overlayOpen:`${m}__overlay--open`,height:{medium:`${m}--height-medium`,full:`${m}--height-full`},size:{s:`${m}--s`,m:`${m}--m`,l:`${m}--l`,xl:`${m}--xl`},header:`${m}__header`,headerText:`${m}__header-text`,headerTitle:`${m}__header-title`,headerSubtitle:`${m}__header-subtitle`,closeIcon:`${m}__close-icon`,backButton:`${m}__back-button`,backButtonText:`${m}__back-button-text`,headerStates:{centered:`${m}__header--centered`,withLongBtn:`${m}__header--with-long-btn`,defaultHeight:`${m}__header--default-height`},content:`${m}__content`,withoutPadding:`${m}__content--without-padding`,withScroll:`${m}__content--with-scroll`,footer:`${m}__footer`,footerContainer:`${m}__footer-container`,footerBtn:`${m}__footer-btn`,footerDescription:`${m}__footer-description`,divider:`${m}__divider`,dividerTop:`${m}__divider--top`,dividerBottom:`${m}__divider--bottom`}),v=({primaryBtnText:e,onPrimary:t,secondaryBtnText:n,onSecondary:i,thirdBtnText:o,onThird:s,description:c,children:u,noContent:p,dataQa:h})=>(0,l.jsxs)("div",{"data-qa":(0,r.g)(`${h}-footer`,!!h),className:(0,a.A)(f.footer,{[f.noContent]:p}),children:[!p&&(0,l.jsx)("div",{className:(0,a.A)(f.divider,f.dividerTop)}),u||(0,l.jsxs)("div",{className:f.footerContainer,children:[o&&(0,l.jsx)(d.B,{dataQa:(0,r.g)(`${h}-footer-third-btn`,!!h),label:o,variant:"secondary",size:"s",className:f.footerBtn,onClick:s}),n&&(0,l.jsx)(d.B,{dataQa:(0,r.g)(`${h}-footer-secondary-btn`,!!h),label:n,variant:"secondary",size:"s",className:f.footerBtn,onClick:i}),e&&(0,l.jsx)(d.B,{dataQa:(0,r.g)(`${h}-footer-primary-btn`,!!h),label:e,size:"s",className:f.footerBtn,onClick:t})]}),c&&(0,l.jsx)("span",{"data-qa":(0,r.g)(`${h}-footer-description`,!!h),className:f.footerDescription,children:c})]}),g=({text:e,title:t,subtitle:n,align:i="left",backBtnVariant:o,onBack:s,onClose:c,noContent:d,dataQa:m,withoutCloseBtn:v=!1})=>(0,l.jsxs)("div",{"data-qa":(0,r.g)(`${m}-header`,!!m),className:(0,a.A)(f.header,{[f.headerStates.centered]:"center"===i||!!o,[f.headerStates.withLongBtn]:"long"===o,[f.headerStates.defaultHeight]:!e&&!t&&!n}),children:[e&&(0,l.jsx)("span",{"data-qa":(0,r.g)(`${m}-header-text`,!!m),className:f.headerText,children:e}),t&&(0,l.jsx)("span",{"data-qa":(0,r.g)(`${m}-header-title`,!!m),className:f.headerTitle,children:t}),n&&(0,l.jsx)("span",{"data-qa":(0,r.g)(`${m}-header-subtitle`,!!m),className:f.headerSubtitle,children:n}),!v&&(0,l.jsx)("button",{"data-qa":(0,r.g)(`${m}-header-close`,!!m),type:"button",className:f.closeIcon,onClick:c,children:(0,l.jsx)(h.P,{children:(0,l.jsx)(p.S,{})})}),o&&(0,l.jsxs)("button",{"data-qa":(0,r.g)(`${m}-header-back`,!!m),type:"button",className:f.backButton,onClick:s,children:[(0,l.jsx)(h.P,{children:(0,l.jsx)(u.S,{})}),"long"===o&&(0,l.jsx)("span",{className:f.backButtonText,children:"Назад"})]}),!d&&(0,l.jsx)("div",{className:(0,a.A)(f.divider,f.dividerBottom)})]}),w=(0,i.forwardRef)(({header:e,footer:t,open:n=!1,size:c="m",noPadding:d=!1,height:u="full",onClose:p,children:h,className:m,style:w,dataQa:x,dataId:b,dismissDisabled:_=!1,...y},C)=>{let[$,k]=(0,i.useState)(!1),[N,j]=(0,i.useState)(!1),S=(0,i.useRef)(null);(0,i.useEffect)(()=>()=>{S.current&&cancelAnimationFrame(S.current)},[]),(0,i.useEffect)(()=>{if(S.current&&cancelAnimationFrame(S.current),n)return k(!0),S.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{j(!0)})}),()=>{S.current&&cancelAnimationFrame(S.current)};{j(!1);let e=setTimeout(()=>{k(!1)},300);return()=>{clearTimeout(e),S.current&&cancelAnimationFrame(S.current)}}},[n]);let E=()=>{j(!1);let e=setTimeout(()=>{null==p||p(),k(!1)},300);return()=>clearTimeout(e)},{context:z}=(0,o.we)({open:$,onOpenChange:e=>{e||E()}}),I=(0,o.s9)(z,{outsidePressEvent:"mousedown",outsidePress:!_,escapeKey:!_}),O=(0,o.It)(z,{role:"dialog"}),{getFloatingProps:A}=(0,o.bv)([I,O]),[R,T]=(0,i.useState)(!1),L=(0,i.useCallback)(e=>{e&&new ResizeObserver(()=>{T(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return $?(0,l.jsx)(o.XF,{id:s.M,children:(0,l.jsx)(o.zR,{lockScroll:!0,className:(0,a.A)(f.overlay,{[f.overlayOpen]:N}),children:(0,l.jsx)(o.s3,{context:z,children:(0,l.jsxs)("div",{ref:C,className:(0,a.A)(f.modal,f.size[c],f.height[u],{[f.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[f.open]:N},m),style:w,...A(),...y,"data-id":b,"data-qa":x,children:[(0,l.jsx)(g,{...e,dataQa:x,noContent:!h,onClose:E}),h&&(0,l.jsx)("div",{"data-qa":(0,r.g)(`${x}-content`,!!x),ref:L,className:(0,a.A)(f.content,{[f.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[f.withoutPadding]:d,[f.withScroll]:R}),children:h}),((null==t?void 0:t.primaryBtnText)||(null==t?void 0:t.children))&&(0,l.jsx)(v,{...t,dataQa:x,noContent:!h})]})})})}):null});w.displayName="Modal"},75420:(e,t,n)=>{"use strict";n.d(t,{D:()=>I,P:()=>D,U:()=>U,u:()=>g});var l=n(95155),i=n(12115),o=n(29722),a=n(7596),s=n(47650);let r=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)},r)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}},d=(0,a.g)("click-outside","sc"),u=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),p=({onClose:e,onToucheMove:t,isOpen:n,delay:a=r})=>{let s=(0,i.useRef)(null),c=(0,i.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},a))},[a,e]),d=(0,i.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,i.useEffect)(()=>(n&&window.addEventListener("keydown",d),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",d)}),[n,d]),(0,l.jsx)("div",{className:(0,o.A)(u.overlay,{[u.open]:n,[u.close]:!n}),onTouchStart:t,onClick:c})},h=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},m=(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)},v=()=>document.querySelectorAll("[data-portal]").length>1,g=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;if(e&&a>0)i.style.top||(window.prevScrollPosition=window.scrollY),o.style.setProperty("overflow-y","scroll"),i.classList.toggle("scroll-disable-windows",!0),i.style.setProperty("width",`calc(100vw - ${a}px)`),i.style.setProperty("top",`-${window.prevScrollPosition}px`),h(l,!0);else if(e)i.style.setProperty("overflow","hidden"),i.style.setProperty("height","100vh"),h(l,!0);else{let e=!v();e&&m(i,o),e&&f(),h(l,!1)}return()=>{let e=!v();e&&m(i,o),e&&f()}},[e]),t},w={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:{...w,...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`}),$=({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}),k=(0,a.g)("drawer-content","sc"),N=Object.freeze({container:`${k}__container`,open:`${k}--open`,close:`${k}--close`,header:`${k}__header`,rowHeader:`${k}__header--row`,title:`${k}__title`,center:`${k}__title--center`,left:`${k}__title--left`,right:`${k}__title--right`,controlContainer:`${k}__control-container`,content:`${k}__content`,footer:`${k}__footer`}),j=({onClose:e,onContentClick:t,children:n,title:a,rowTitle:s,titleAlign:r,isCloseable:c,footer:d,closeButton:u,isOpen:p,contentClassName:h,footerClassName:m,contentStyle:f,width:v})=>{let g=(0,i.useRef)(null),w=(0,i.useRef)(null),[x,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;if(!w.current||!g.current)return;let t=(null==(e=null==w?void 0:w.current)?void 0:e.getBoundingClientRect().top)||0,n=null==g?void 0:g.current,l=()=>{let e=null==w?void 0:w.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",l,!1),()=>{null==n||n.removeEventListener("scroll",l,!1)}},[]);let y=f||v?{width:v,...f||{}}:void 0;return(0,l.jsxs)("div",{ref:g,style:y,className:(0,o.A)(N.container,{[N.open]:p,[N.close]:!p},h),children:[a||c?(0,l.jsxs)("div",{className:(0,o.A)(N.header,{[N.rowHeader]:s}),children:[c?u?"function"==typeof u?u():u:(0,l.jsx)("button",{type:"button",className:N.controlContainer,onClick:e,children:(0,l.jsx)(_,{size:24})}):null,a?(0,l.jsx)("h3",{className:(0,o.A)(N.title,{[N[r]]:!0}),children:a}):null]}):null,(0,l.jsx)("div",{ref:w,className:N.content,onClick:t,children:n}),d&&(0,l.jsx)($,{className:(0,o.A)(N.footer,m),footer:d,hasScroll:x})]})},S=(0,a.g)("drawer-layout","sc"),E=Object.freeze({window:`${S}__window`}),z=({onClose:e,isOpen:t,children:n,withDisabledScroll:a,className:s,...r})=>{let c=(0,i.useCallback)(e=>e.stopPropagation(),[]);return g(t&&a),(0,l.jsxs)("div",{"data-portal":!0,className:(0,o.A)(E.window,s),children:[(0,l.jsx)(p,{onClose:e,isOpen:t,delay:0}),(0,l.jsx)(j,{onContentClick:c,onClose:e,isOpen:t,...r,children:n})]})},I=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:i=!0,withDisabledScroll:o=!0,...a})=>{let{mounted:s}=c({opened:e});return s?(0,l.jsx)(z,{titleAlign:n,isCloseable:i,isOpen:e,withDisabledScroll:o,...a,children:t}):null};I.displayName="Drawer";let O={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},A={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},R=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 T({className:e,style:t,boxSize:n,size:l,onClick:o}){return i.createElement("span",{className:e,style:{...O,...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(R,{viewBox:"0 0 24 24",style:A}))}T.displayName="IconFdsCloseO";let L=(0,a.g)("mobile-modal-footer","sc"),B=Object.freeze({footer:`${L}__footer`,footerWithoutShadow:`${L}__footer--without-shadow`}),P=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,l.jsx)("div",{className:(0,o.A)(B.footer,t&&B.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`}),H=({children:e,footer:t,isOpen:n,isSmallPopup:a,onClose:s,hasCloseButton:r=!0,full:c,touchDistance:d=100,withDisabledScroll:u=!0,contentClassName:h,className:m,title:f,closeButton:v,footerClassName:w})=>{let[x,b]=(0,i.useState)(!1),[_,y]=(0,i.useState)(!1),[C,$]=(0,i.useState)(!0),[k,N]=(0,i.useState)("120%"),j=(0,i.useRef)(null),S=(0,i.useRef)(0),E=(0,i.useRef)(!1),z=e=>{var t,n,l;let i=null==(t=j.current)?void 0:t.offsetTop,o=null==(n=j.current)?void 0:n.offsetHeight;if(E.current=!0,$(!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),N(`${n}px`),S.current=n}},I=()=>{E.current&&(S.current>d&&s?null==s||s():N("0"),$(!0),E.current=!1),window.removeEventListener("touchmove",z),window.removeEventListener("touchend",I)};return(0,i.useEffect)(()=>{n&&setTimeout(()=>{b(!0),y(!0),N("0")},100),!n&&_&&(N("120%"),b(!1),y(!1))},[_,n]),g(n&&u),(0,l.jsxs)("div",{"data-portal":!0,className:(0,o.A)(F.mobilePopup,_&&F.mobilePopupOpen,m),children:[(0,l.jsx)(p,{onClose:()=>{n&&(null==s||s())},onToucheMove:()=>{n&&(b(!1),window.addEventListener("touchmove",z),window.addEventListener("touchend",I))},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:j,style:{transform:`translateY(${k})`},children:[(0,l.jsx)("div",{className:F.contentLine}),(0,l.jsxs)("div",{className:(0,o.A)(F.contentContainer,a&&F.smallContentContainer,{[F.min]:!f&&!r},h),children:[!!f&&(0,l.jsx)("div",{className:F.title,children:f}),r?(0,l.jsx)("div",{className:F.closeContainer,children:r?v?"function"==typeof v?v():v:(0,l.jsx)("button",{onClick:s,className:F.closeButton,children:(0,l.jsx)(T,{size:24})}):null}):null,e]}),t&&(0,l.jsx)(P,{footerClassName:w,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)(H,{isSmallPopup:t,isOpen:n,...i,children:e}):null};U.displayName="UiMobilePopup";let D=({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,s.createPortal)(e,n):null}}}]);