(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9569],{9056:()=>{},11246:(e,t,n)=>{"use strict";n.d(t,{d:()=>l});var i=n(56853);let l=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),l=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=l.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,i.Fj)(e)}}},11412:()=>{},12989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(95155),l=n(29722),o=n(83640);n(11412);let a=(0,o.g)("card"),r={card:a,variants:{primary:`${a}--primary`,secondary:`${a}--secondary`}},s=({as:e,className:t,style:n,children:o,variant:a="primary",dataQa:s,dataId:c,...u})=>(0,i.jsx)(e||"div",{className:(0,l.A)(t,r.card,r.variants[a]),style:n,...u,"data-id":c,"data-qa":s,children:o});s.displayName="Card"},16311:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(12115);let l={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},o={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},a=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 r({className:e,style:t,boxSize:n,size:s,onClick:c}){return i.createElement("span",{className:e,style:{...l,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:o}))}r.displayName="IconFdsCloseO"},17194:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});let i={а:"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"},l=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(/[ \u00A0]/g,"_")},17966:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var i=n(12115);let l=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},o=(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")},a=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},r=()=>document.querySelectorAll("[data-portal]").length>1,s=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 i=t.current,s=document.body,c=document.documentElement,u=window.innerWidth-c.clientWidth;if(e&&u>0)s.style.top||(window.prevScrollPosition=window.scrollY),c.style.setProperty("overflow-y","scroll"),s.classList.toggle("scroll-disable-windows",!0),s.style.setProperty("width",`calc(100vw - ${u}px)`),s.style.setProperty("top",`-${window.prevScrollPosition}px`),l(i,!0);else if(e)s.style.setProperty("overflow","hidden"),s.style.setProperty("height","100vh"),l(i,!0);else{let e=!r();e&&o(s,c),e&&a(),l(i,!1)}return()=>{let e=!r();e&&o(s,c),e&&a()}},[e]),t}},20197:(e,t,n)=>{"use strict";let i;n.d(t,{D:()=>a,h:()=>s});var l=n(17194),o=n(11246),a=((i=a||{}).icon="icon",i.chip="chip",i.accordion="accordion",i.button="button",i.checkbox="checkbox",i.radio="radio",i.select="select",i.toggle="toggle",i.tooltip="tooltip",i.link="link",i.banner="banner",i.tag="tag",i.date="date",i.field="field",i.offer="offer",i.tab="tab",i.submitButton="submitButton",i.popup="popup",i.block="block",i.show="show",i.close="close",i);let r={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_",show:"show_",close:"close_"},s=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:i})=>{let a={event:"data-event",eventCategory:e,eventAction:r[t]+(0,l.t)(n)};void 0!==i&&(a.eventLabel=(0,l.t)("string"==typeof i?i:i.toString())),(0,o.d)(a)}},45676:(e,t,n)=>{"use strict";n.d(t,{N:()=>b,s:()=>w});var i=n(95155),l=n(12115),o=n(29722),a=n(20197),r=n(46089),s=n(7596),c=n(57349);let u={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},d={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},p=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 h({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...u,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(p,{viewBox:"0 0 24 24",style:d}))}h.displayName="IconFdsDotsVerticalO";let m=(0,s.g)("navigation-chips","sc"),g=Object.freeze({wrapper:`${m}__wrapper`,gray:`${m}__variantGray`,white:`${m}__variantWhite`,container:`${m}__container`,chip:`${m}__chip`,more:`${m}__chip--more`,active:`${m}__chip--active`,icon:`${m}__icon`,label:`${m}__label`,hidden:`${m}__hidden`}),f=(0,s.g)("navigation-content","sc"),w=Object.freeze({contentWrapper:`${f}__content-wrapper`,content:`${f}__content`,contentOpen:`${f}__content--open`,contentHeader:`${f}__content-header`,contentTitle:`${f}__content-title`,contentTitleUrl:`${f}__content-title--url`,contentTitleLink:`${f}__content-title--link`,contentTitleNew:`${f}__content-title--new`,new:`${f}__new`,newInline:`${f}__new-inline`,vip:`${f}__vip`,arrowIcon:`${f}__arrow-icon`,links:`${f}__links`,linksColumns:`${f}__links--columns`,linksTitleless:`${f}__links--titleless`,removed:`${f}__removed`,hidden:`${f}__content--hidden`}),v=({chip:e,hidden:t,onClick:n,refCallback:l,activeChipId:s})=>{let u=!!n,d=()=>{if(u)return null==n?void 0:n(e.url);(0,r.h)(a.D.chip,e.title,`${e.title}_${e.url}`)},p=(0,i.jsxs)(i.Fragment,{children:[e.icon&&(0,i.jsx)("span",{className:g.icon,"aria-hidden":"true",children:e.icon}),(0,i.jsx)("span",{className:g.label,children:e.title}),e.arrow&&(0,i.jsx)(c.K,{size:24})]}),h=(0,o.A)(g.chip,{[g.hidden]:t,[w.new]:!!e.new,[w.vip]:!!e.vip,[g.active]:e.url===s});return u?(0,i.jsx)("button",{type:"button",className:h,onClick:d,ref:l,children:p}):(0,i.jsx)("a",{href:e.url,className:h,onClick:d,ref:l,children:p})},b=({items:e=[],maxNumberOfLines:t,variant:n,className:s,activeChipId:c,onClick:u,moreButtonOptions:d})=>{let p=(0,l.useRef)(null),m=(0,l.useRef)(null),f=(0,l.useRef)([]),w=(null==d?void 0:d.label)??"Еще",b="Еще",_=(null==d?void 0:d.showIcon)??!0,x=(0,o.A)(g.chip,g.more,null==d?void 0:d.className),[y,k]=(0,l.useState)(!1),[C,$]=(0,l.useState)(e.length),[I,S]=(0,l.useState)(!1),N=(0,l.useCallback)(()=>{let n=p.current;if(!n)return;let i=e=>e?e.getBoundingClientRect().width:0,l=i(n),o=Math.max(Number(t)||0,0),a=()=>{$(e.length),S(!1)};if(y||0===o||l<=0)return void a();let r=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),s=i(m.current),c=e.map((e,t)=>i(f.current[t]));if(c.some(e=>0===e))return void a();let u=1,d=0,h=0;for(let e of c){let t=u===o?s+r:0,n=0===d?e:d+r+e;if(n+t<=l-.5)d=n,h++;else{if(++u>o)break;d=e,h++}}S(h<e.length),$(h)},[y,e,t]);(0,l.useLayoutEffect)(()=>{let e=p.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(N)});return t.observe(e),requestAnimationFrame(N),()=>{t.disconnect()}},[N]),(0,l.useEffect)(()=>{requestAnimationFrame(N)},[N]);let O=y||(t??0)<=0||!I;return(0,i.jsx)("div",{className:(0,o.A)(s,g.wrapper,{[g.gray]:"gray"===n,[g.white]:"white"===n}),children:(0,i.jsxs)("div",{ref:p,className:g.container,children:[e.map((e,t)=>(0,i.jsx)(v,{chip:e,hidden:!O&&t>=C,activeChipId:c,onClick:u,refCallback:e=>{f.current[t]=e}},`${e.url}_${t}`)),!O&&I&&(0,i.jsxs)("button",{type:"button",ref:m,className:x,"aria-label":b,onClick:()=>{(0,r.h)(a.D.chip,b),k(!0)},children:[_&&(0,i.jsx)(h,{size:20}),(0,i.jsx)("span",{className:g.label,children:w})]}),(O||!I)&&(0,i.jsxs)("button",{type:"button",ref:m,className:(0,o.A)(x,g.hidden),tabIndex:-1,"aria-hidden":"true",children:[_&&(0,i.jsx)(h,{size:20}),(0,i.jsx)("span",{className:g.label,children:w})]})]})})}},46089:(e,t,n)=>{"use strict";n.d(t,{H:()=>o,h:()=>c,i:()=>s,s:()=>a});var i=n(20197),l=n(56053);let o="finuslugi-header-height-change",a=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),l=!1,a=0,r=0,s=window.innerWidth<768,c=()=>window.scrollY||document.documentElement.scrollTop,u=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},d=()=>{let e=window.innerWidth<768;e!==s&&(s=e,r=0)},p=function(){let o=c(),s=document.getElementById("headerNotice");if((null==s?void 0:s.getAttribute("data-opening"))==="true")return;r||(()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));r=Number.isNaN(t)?0:t,a=c()}})();let d=o<r,p=o<((null==i?void 0:i.clientHeight)||0);if(n&&p||d){l=!1,e(!1),t(!0),u(`${r}px`);return}e(l=o>a),l&&setTimeout(()=>t(!1),50),u(l?"0px":`${r}px`),a=o<=0?0:o},h=()=>{r=0,p()};return window.addEventListener("scroll",p),window.addEventListener("resize",d),window.addEventListener(o,h),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",d),window.removeEventListener(o,h)}},r=(e,t,n)=>{let i=new Date;i.setTime(i.getTime()+864e5*n);let l=encodeURIComponent(JSON.stringify(t)),o=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${l};expires=${i.toUTCString()};path=/;SameSite=Lax${o}`},s=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{let e;(e=(()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,i]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=i);return Object.keys(t).length>0?t:null})())&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&r("utm_params",e,90),e&&r("utm_last",e,90)}catch(e){console.error("UTM tracking error:",e)}},0)},c=(e,t,n)=>(0,i.h)({eventCategory:l.H,eventActionType:e,eventActionText:t,eventLabel:n})},47125:(e,t,n)=>{"use strict";n.d(t,{a:()=>f,b:()=>x,c:()=>k,d:()=>v,e:()=>s,f:()=>d,g:()=>h,h:()=>N,i:()=>g,j:()=>y,k:()=>S,l:()=>I,p:()=>p,s:()=>u});var i=n(53730),l=n(20197),o=n(56053);let a={userRegion:o.U,userTown:o.c,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},r={userRegion:o.U,userTown:o.c,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},s=(e=!1)=>e?r:a,c=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},u=(e,t,n=!1)=>{if(typeof document>"u")return;let l=s(n);if(!e&&!t){i.a.removeItem(l.userRegion),i.a.removeItem(l.userTown);return}i.a.setItem(l.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),i.a.setItem(l.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},d=e=>{if(typeof document>"u")return null;let t=i.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},p=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},h=(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=p(s(e).allRegions)||[];return c(n,e),n},m=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),g=(e,t=!1)=>!(e.length<1)&&(!t||m(e)),f=e=>{let t={};return e.map(({id:e,name:n,towns:i})=>(i.forEach(i=>{i.parentId=e,t[i.name]=t[i.name]||{},t[i.name][i.id]=n}),i)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},w=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,v=(e,t)=>w(e||"https://finuslugi.ru",t),b=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},_=(e,t=!1)=>{if(e.length<1)return;let n=s(t);c(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},x=(e,t,n)=>{let i=null,l=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(i=e,l=t,!0)});let o=t?e.find(e=>e.id===t.id)??null:null;return{region:i??o??t,town:l??n}},y=(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),k=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),C=async e=>{let t=await b(v(e,"/money_data/Root.json?short=1")),n=Array.isArray(null==t?void 0:t.regions)?t.regions:[];return _(n),n},$=async e=>{let t,n,[i,l]=await Promise.all([b(w(e,"/sc/api/v1/cities?all=true&isActive=true")),b(w(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==i?void 0:i.content)||!Array.isArray(null==l?void 0:l.content))return[];let o=i.content,a=(n=(t=l.content.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:+!!e.isActive,fiasId:e.fiasId,towns:[]}))).reduce((e,t)=>(e[t.id]=t,e),{}),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 m(a)?(_(a,!0),a):[]},I=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?$(e):C(e),S=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},N=(e,t,n)=>{(0,l.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})}},49569:(e,t,n)=>{"use strict";n.d(t,{L:()=>es,H:()=>ev,Y9:()=>eU,b:()=>D,p:()=>V,u:()=>ed,om:()=>er}),n(9056);var i=n(95155),l=n(12115),o=n(37206),a=n(66806);let r={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},s={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},c=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 u({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...r,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(c,{viewBox:"0 0 24 24",style:s}))}u.displayName="IconFdsChevronDownO";var d=n(16311);let p={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},h={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},m=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 g({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...p,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(m,{viewBox:"0 0 24 24",style:h}))}g.displayName="IconFdsUserO";var f=n(24691),w=n(66216),v=n(29722),b=n(17806),_=n(20197),x=n(7596),y=n(47125),k=n(17966),C=n(46089),$=n(56053),I=n(55727),S=n(94344),N=n(14347),O=n(12989),j=n(57349),A=n(45676);let R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},T={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},E=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),l.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},l.createElement("path",{d:"M18.25 5.75V8c0 .42.33.75.75.75s.75-.33.75-.75V5.75H22c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-2.25V2c0-.42-.33-.75-.75-.75s-.75.33-.75.75v2.25H16c-.42 0-.75.33-.75.75s.33.75.75.75h2.25zm-4.546-2.23c-.259-.014-.827-.02-1.704-.02-.676 0-1.129.002-1.358.007a7.963 7.963 0 00-.779.047 7.246 7.246 0 00-2.328.689 7.204 7.204 0 00-4.028 6.4c-.005.228-.007.68-.007 1.357 0 .671.002 1.121.007 1.349.007.324.023.584.047.778.057.474.158.933.303 1.378v.001a7.17 7.17 0 001.76 2.867 7.169 7.169 0 002.92 1.777 7.436 7.436 0 002.108.341c.228.006.68.009 1.355.009.67 0 1.12-.003 1.346-.009a7.12 7.12 0 00.794-.057c.476-.05.96-.162 1.455-.333a.71.71 0 01.685.102c.662.48 1.32.829 1.976 1.047a4.85 4.85 0 001.482.264c.142.002.278-.004.41-.016a10.758 10.758 0 01-.222-.535c-.45-1.164-.676-2.305-.676-3.423a.74.74 0 01.116-.401 7.211 7.211 0 001.08-3.01c.024-.196.04-.456.047-.78.005-.228.007-.678.007-1.349 0-.214.002-.488.006-.822.003-.22.004-.376.004-.468 0-.42.33-.75.75-.75s.75.33.75.75c0 .098-.001.26-.004.486A70.38 70.38 0 0022 12c0 .682-.003 1.142-.008 1.381a9.337 9.337 0 01-.058.93 8.752 8.752 0 01-.393 1.737 8.757 8.757 0 01-.788 1.7c.026.866.217 1.757.571 2.674a8.847 8.847 0 00.6 1.249c.11.224.136.42.078.587-.057.168-.198.306-.423.416-.139.068-.32.13-.543.189a5 5 0 01-1.316.15 6.336 6.336 0 01-1.94-.34 8.598 8.598 0 01-2.064-1.035c-.471.14-.939.236-1.402.286a8.23 8.23 0 01-.93.067c-.24.006-.701.009-1.384.009-.688 0-1.152-.003-1.392-.009a8.222 8.222 0 01-.937-.067 8.672 8.672 0 01-3.989-1.538 8.707 8.707 0 01-2.077-2.078 8.705 8.705 0 01-1.597-4.927A78.972 78.972 0 012 12c0-.687.003-1.15.008-1.39.008-.376.027-.686.057-.93a8.737 8.737 0 01.832-2.806 8.69 8.69 0 013.977-3.977 8.7 8.7 0 012.803-.831c.246-.03.557-.05.933-.058C10.85 2.003 11.313 2 12 2c.902 0 1.495.007 1.779.021.42.021.732.367.712.787a.743.743 0 01-.787.711zm-5.91 9.19a1 1 0 111.412-1.414 1 1 0 01-1.413 1.415zm3.497-1.412a1 1 0 101.418 1.41 1 1 0 00-1.418-1.41zm3.502 1.413a1 1 0 111.414-1.415 1 1 0 01-1.414 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function z({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...R,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(E,{viewBox:"0 0 24 24",style:T}))}z.displayName="IconFdsChatDotsSquareAddO";let B={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},P={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},M=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),l.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},l.createElement("path",{d:"M7.75 5a.75.75 0 100 1.5h13.5a.75.75 0 100-1.5H7.75zM22 12a.75.75 0 00-.75-.75H2.75a.75.75 0 100 1.5h18.5A.75.75 0 0022 12zm-5.75 5.5a.75.75 0 110 1.5H2.75a.75.75 0 110-1.5h13.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function L({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...B,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(M,{viewBox:"0 0 24 24",style:P}))}L.displayName="IconFdsMenuSkewedO";let F=e=>{let[t,n]=(0,l.useState)(e);return(0,l.useEffect)(()=>{e&&n(!0)},[e]),e||t},U=()=>{let e=(0,l.useRef)(null),t=(0,l.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,l.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,l.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},W=(0,x.g)("certificates-warning-banner","sc"),H=(0,x.g)("certificates-warning-popup","sc"),D=Object.freeze({wrapper:`${W}`,container:`${W}__container`,content:`${W}__content`,info:`${W}__info`,image:`${W}__image`,text:`${W}__text`,title:`${W}__title`,description:`${W}__description`,details:`${W}__details`,buttons:`${W}__buttons`,button:`${W}__button`,closeButton:`${W}__close-button`,mobileActivator:`${W}__mobile-activator`}),V=Object.freeze({modal:`${H}__modal`,desktopCloseButton:`${H}__desktop-close-button`,mobilePopup:`${H}__mobile-popup`,mobileContentContainer:`${H}__mobile-content-container`,mobileCloseButton:`${H}__mobile-close-button`,mobileDialog:`${H}__mobile-dialog`,content:`${H}__content`,image:`${H}__image`,text:`${H}__text`,title:`${H}__title`,description:`${H}__description`,actions:`${H}__actions`,primaryActions:`${H}__primary-actions`,divider:`${H}__divider`,explanation:`${H}__explanation`,button:`${H}__button`,gosuslugiButton:`${H}__gosuslugi-button`,gosuslugiIcon:`${H}__gosuslugi-icon`}),G="fu_certificates_access_confirmed",q="fu_certificates_banner_dismissed",J="fu_external_link_warning_shown",Y=new Map,K=e=>{if(typeof window>"u")return"1"===Y.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===Y.get(e)}catch{return"1"===Y.get(e)}},Z=e=>{if(Y.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch{}},Q=(e,t)=>{if(!e)return null;try{let n,i,l=new URL(e.toString(),t.href);return"http:"!==l.protocol&&"https:"!==l.protocol||(n=l.hostname,i=t.hostname,n===i||"finuslugi.ru"===n||n.endsWith(".finuslugi.ru"))?null:l}catch{return null}},X={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ee={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},et=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 en({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...X,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(et,{viewBox:"0 0 24 24",style:ee}))}en.displayName="IconFdsLocationO";let ei=(0,y.g)(),el=(0,y.a)(ei),eo={regions:ei,towns:el,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},ea=(0,l.createContext)(eo);function er(){return(0,l.useContext)(ea)}let es=({children:e,initialRegion:t,initialTown:n,showStartGeoPopup:o=!0,lastRegionsUpdateUnixTimestamp:a,showcaseUrl:r="",dadataUrl:s=(0,y.d)(r,"/backend/money/dadata"),useNewCitiesApi:c=!1})=>{let u=(0,y.e)(c),d=Number((0,y.p)(u.lastRegionsUpdateUnixTimestamp)||0),p=Number(a||0)>d,[h,m]=(0,l.useState)((0,y.g)(c)),g=(0,l.useRef)(h),[{startRegion:f,startTown:w},v]=(0,l.useState)({startRegion:eo.startRegion,startTown:eo.startTown}),b=t??eo.region,x=n??eo.town,[{region:k,town:C},$]=(0,l.useState)({region:b,town:x}),[I,S]=(0,l.useState)(eo.startPopupVisible),[N,O]=(0,l.useState)(eo.popupVisible),j=(0,l.useRef)(""),A=(0,l.useRef)(!1),R=(0,l.useMemo)(()=>(0,y.a)(h),[h]);(0,l.useEffect)(()=>{g.current=h},[h]);let T=(0,l.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)||""),S(!0),v({startRegion:e,startTown:t})},[S,v]),E=(0,l.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||T(e,t)},[T]),z=(0,l.useCallback)(()=>{if(j.current&&!k&&!C){let e=R.find(e=>e.name===j.current)??null;return E(h.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}E(k,C)},[k,C,R,h,E]),B=(0,l.useCallback)(e=>{O(e)},[O]),P=(0,l.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(u.allRussiaSelected,"1"),window.localStorage.setItem(u.userRegion,""),window.localStorage.setItem(u.userTown,""),(0,y.s)(null,null,c);return}window.localStorage.setItem(u.allRussiaSelected,"0"),window.localStorage.setItem(u.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(u.userTown,JSON.stringify(t)||""),(0,y.s)(e||null,t||null,c)},[u,c]),M=(0,l.useCallback)(e=>{e?(0,y.h)(_.D.icon,"location"):(0,y.h)(_.D.button,(null==C?void 0:C.name)||"Вся Россия"),!o||window.sessionStorage.getItem("start_popup_opened")?B(!0):z()},[o,C,B,z]),L=(0,l.useCallback)((e,t)=>{P(e,t),$({region:e||null,town:t||null}),S(!1),B(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[B,P]),F=()=>{let e=(0,y.f)(u.userRegion)??(0,y.p)(u.userRegion),t=(0,y.f)(u.userTown)??(0,y.p)(u.userTown),n=(0,y.b)(g.current,e,t),i=c&&(0,y.j)(e,t);i&&(A.current=!0),i&&(0,y.c)(n.region,n.town)&&(P(n.region,n.town),A.current=!1),$(n);let l=async({coords:{latitude:e,longitude:t}})=>{let n=`${s}?lat=${e}&lon=${t}`,i=await (0,y.k)(n);null!=i&&i.location&&(j.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&o)try{navigator.geolocation.getCurrentPosition(l,()=>null)}catch{}};return(0,l.useEffect)(()=>{(!(0,y.i)(h,c)||p)&&(0,y.l)({showcaseUrl:r,useNewCitiesApi:c}).then(e=>{e.length<1||m(e)})},[]),(0,l.useEffect)(()=>{if(!c)return;let e=(0,y.b)(h,k,C);A.current&&(0,y.c)(e.region,e.town)&&(P(e.region,e.town),A.current=!1),$(e)},[h,k,P,C,c]),(0,l.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{F(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{F()},0)},[]),(0,i.jsx)(ea.Provider,{value:{regions:h,towns:R,region:k,town:C,startPopupVisible:I,setStartPopupVisible:S,popupVisible:N,handleToggleModal:B,selectCity:L,handleButtonClick:M,startRegion:f,startTown:w},children:e})},ec={"uat-mp.beta.moex.com":"//chat-marketplace.beta.moex.com","finuslugi.ru":"//chat.finuslugi.ru","dev-rc.beta.moex.com":"//dev-opbot.tech.finuslugi.ru"},eu=(0,l.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 ed(){return(0,l.useContext)(eu)}let ep=e=>{let[t,n]=(0,l.useState)(!1),[o,a]=(0,l.useState)(!1),[r,s]=(0,l.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:d}=(()=>{let[e,t]=(0,l.useState)(!1),[n,i]=(0,l.useState)(!1),o=(0,l.useRef)(!1),a=e=>{o.current=e,i(e)};return(0,l.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(ec,e)?ec[e]:ec["finuslugi.ru"]})(),n="webchat_main";window.supportWidget={craftTalk:{isOpened:!1,setConfig:t=>{if(t.host&&(e=t.host),t.channel&&(n=t.channel),t.user){let e="function"==typeof t.user?t.user:()=>({...t.user});window.__WebchatUserCallback=e}},open:()=>new Promise(e=>{e()}),close:()=>null,toggle:()=>null}};let i=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((l,r)=>{var s,c;let u,d;o.current?r(Error("chat is already opened")):i?(i.openWidget(),t(!1),l()):(a(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=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=i.closeWidget),null==i||i.openWidget(),a(!1),t(!1),l()},s=e,c=n,(u=document.createElement("link")).rel="stylesheet",u.type="text/css",u.href=`${s}/assets/css/${c}`,document.head.appendChild(u),(d=document.createElement("script")).src=`${s}/get-bootstrap/${c}`,d.defer=!0,document.body.appendChild(d))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,i;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(i=null==(n=window.supportWidget)?void 0:n.craftTalk)||i.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:n}})(),[p,h]=(0,l.useState)(null),[m,g]=(0,l.useState)(null),[f,w]=(0,l.useState)(!1),[v,b]=(0,l.useState)(!1),[_,x]=(0,l.useState)(!1),y=(0,l.useRef)(null),$=(0,k.u)(f),I=(0,l.useRef)(null),S=(0,l.useRef)(null),N=(0,l.useRef)(null),O=(0,l.useRef)(null),j=(0,l.useCallback)(()=>{$.current&&$.current.scrollTo({top:0})},[$]),A=(0,l.useCallback)(e=>{g(e),j()},[j]),R=(0,l.useCallback)(e=>{I.current&&clearTimeout(I.current),e&&b(!0),e||(I.current=setTimeout(()=>{b(!1),A(null)},300))},[A]),T=(0,l.useCallback)((e,t,n)=>{if(t&&A(t),!n&&e===p||!e){R(!f),w(!f);return}h(e),R(!0),w(!0)},[p,A,f,R]),E=(0,l.useCallback)(()=>{S.current&&clearTimeout(S.current),x(!0),S.current=setTimeout(()=>{x(!1)},650)},[]);return(0,l.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,C.s)(a,s,e.isMainBannerPage);return(0,C.i)(),t},[]),(0,i.jsx)("header",{children:(0,i.jsx)(eu.Provider,{value:{isAuth:t,isHeaderHidden:o,isHeaderTransparent:r,openedBlock:p,setOpenedBlock:T,openedSection:m,setOpenedSection:A,isNavigationOpen:f,isNavigationMounted:v,navMenuItemsRef:y,navigationRef:$,ignoreClicks:_,setIgnoreClicks:E,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:d,fixedContainerRef:N,headerRef:O},children:e.children})})},eh=(0,x.g)("city-select","sc"),em=Object.freeze({button:`${eh}__button`,minimal:`${eh}__minimal`,full:`${eh}__full`}),eg=(0,o.default)(()=>Promise.all([n.e(7150),n.e(8044),n.e(3552),n.e(2545),n.e(1546),n.e(5121)]).then(n.bind(n,75121)).then(e=>e.CitySelectModal),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/CitySelectModal-Dhl388Tz.mjs")]},ssr:!1}),ef=(0,o.default)(()=>n.e(8054).then(n.bind(n,98054)).then(e=>e.StartChoicePopup),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/StartChoicePopup-mFyQ4g8Y.mjs")]},ssr:!1}),ew=({initialTown:e})=>{var t;let n=er(),o=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:a,isChatModalOpen:r}=ed(),{startPopupVisible:s,setStartPopupVisible:c,popupVisible:u}=n,d=F(u),p=F(s),h=(0,l.useRef)();(0,l.useEffect)(()=>{u&&(h.current="popup")},[u]),(0,l.useEffect)(()=>{r&&(h.current="chat")},[r]),(0,l.useEffect)(()=>{s&&(h.current="startPopup")},[s]),(0,l.useEffect)(()=>{h.current&&("chat"===h.current&&s?c(!1):["startPopup","popup"].includes(h.current)&&r&&a(!1))},[u,r,s,c,a]);let m={appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,i.jsx)(en,{size:24})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.$,{...m,className:(0,v.A)(em.button,em.full),label:o}),(0,i.jsx)(f.$,{...m,className:(0,v.A)(em.button,em.minimal),shape:"icon"}),d&&(0,i.jsx)(eg,{}),p&&(0,i.jsx)(ef,{})]})},ev=({label:e,onClick:t,eventActionText:n,eventLabel:l,...o})=>(0,i.jsx)(f.$,{label:e,onClick:e=>{null==t||t(e),(0,_.h)({eventCategory:$.H,eventActionType:_.D.button,eventActionText:n||"",eventLabel:l||""})},...o}),eb=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:l,...o})=>(0,i.jsx)(I.N,{onClick:i=>{null==e||e(i),(0,_.h)({eventCategory:$.H,eventActionType:t||_.D.link,eventActionText:n||"",eventLabel:l||""})},...o}),e_={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ex={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ey=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 ek({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...e_,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(ey,{viewBox:"0 0 24 24",style:ex}))}ek.displayName="IconFdsChevronLeftO";let eC=(0,x.g)("header-chat-modal-body","sc"),e$=Object.freeze({wrapper:`${eC}__wrapper`,cardButton:`${eC}__card-button`,card:`${eC}__card`,cardTitle:`${eC}__card-title`,cardSubtitle:`${eC}__card-subtitle`,button:`${eC}__button`}),eI=()=>{let e=ed();return(0,i.jsxs)("div",{className:e$.wrapper,children:[(0,i.jsx)(ev,{className:e$.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,i.jsxs)(O.Z,{className:e$.card,variant:"secondary",children:[(0,i.jsxs)("div",{className:e$.cardTitle,children:[(0,i.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,i.jsxs)("p",{className:e$.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,i.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},eS=({data:e,isMobile:t})=>{let n=ed();return(0,i.jsx)("div",{className:A.s.contentWrapper,children:e.map(e=>(0,i.jsx)(l.Fragment,{children:e.sections.map(e=>{var l;return(0,i.jsxs)("div",{className:(0,v.A)(A.s.content,{[A.s.hidden]:n.openedSection!==e.id,[A.s.contentOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:A.s.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),null==(l=e.content)?void 0:l.map((n,l)=>{var o,a;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,v.A)(A.s.contentTitle,{[A.s.removed]:!n.title,[A.s.contentTitleUrl]:!!n.url,[A.s.contentTitleLink]:!!e.isSeeAllLinkAvailable,[A.s.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:A.s.arrowIcon,children:(0,i.jsx)(j.K,{})}),n.title]})})}),!(null!=(o=n.links)&&o.length)&&(0,i.jsx)(A.N,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(a=n.links)&&a.length)&&(0,i.jsx)("div",{className:(0,v.A)(A.s.links,{[A.s.linksColumns]:!!n.columns,[A.s.linksTitleless]:!n.title}),children:n.links.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,C.h)(_.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{className:A.s.arrowIcon,children:(0,i.jsx)(j.K,{})}),(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:e.title}),!!e.new&&(0,i.jsx)("span",{className:(0,v.A)({[A.s.newInline]:!!e.new})})]})]},`${e.url}_${t}`))})]},`${n.url}_${l}`)})]},e.id)})},e.id))})},eN=(0,x.g)("navigation-section-icon","sc"),eO=Object.freeze({icon:`${eN}`}),ej=()=>n.e(1564).then(n.bind(n,41564)),eA={IconFdsAcademicCapO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsAcademicCapO),IconFdsBankO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsBankO),IconFdsBookOpenO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsBookOpenO),IconFdsCalculatorO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsCalculatorO),IconFdsCardO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsCardO),IconFdsChatDotsCircleO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsChatDotsCircleO),IconFdsCoinMultipleO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsCoinMultipleO),IconFdsDotsHorizontalO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsDotsHorizontalO),IconFdsFlashO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsFlashO),IconFdsGraphO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsGraphO),IconFdsLayoutHorizontalO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsLayoutHorizontalO),IconFdsPortfolioO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsPortfolioO),IconFdsRubleCircleO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsRubleCircleO),IconFdsSafeO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsSafeO),IconFdsShieldCheckO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsShieldCheckO),IconFdsWalletO:()=>ej().then(({navigationSectionIcons:e})=>e.IconFdsWalletO)},eR=e=>Object.prototype.hasOwnProperty.call(eA,e),eT=({name:e,background:t})=>{let[n,o]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(!e||!eR(e))return void o(null);let t=!0;return eA[e]().then(n=>{t&&o({name:e,component:n})}).catch(()=>{t&&o(null)}),()=>{t=!1}},[e]),!e||!eR(e))return null;let a=(null==n?void 0:n.name)===e?n.component:null;return(0,i.jsx)("div",{className:eO.icon,style:{background:t},children:a&&(0,i.jsx)(a,{})})},eE=(0,x.g)("navigation","sc"),ez=Object.freeze({navigation:`${eE}`,navigationOpening:`${eE}--opening`,navigationClosing:`${eE}--closing`,wrapper:`${eE}__wrapper`,container:`${eE}__container`,containerOpen:`${eE}__container--open`,sections:`${eE}__sections`,sectionsOpen:`${eE}__sections--open`,citySelectButton:`${eE}__city-select-button`,sectionsTitle:`${eE}__sections-title`,sectionsWrapper:`${eE}__sections-wrapper`,section:`${eE}__section`,sectionArrow:`${eE}__section-arrow`,sectionExtra:`${eE}__section--extra`,sectionActive:`${eE}__section--active`,sectionTitle:`${eE}__section-title`,chatWrapper:`${eE}__chat-wrapper`,chatHeader:`${eE}__chat-header`,backButton:`${eE}__back-button`,useful:`${eE}__useful`,usefulOpen:`${eE}__useful--open`,usefulTitle:`${eE}__useful-title`,usefulGrid:`${eE}__useful-grid`,removed:`${eE}__removed`}),eB=({data:e})=>{var t;let n=ed(),o=er(),a=(0,N.nu)("m"),[r,s]=(0,l.useState)(!0);(0,l.useEffect)(()=>{s(a)},[a]);let c=(0,l.useRef)(null),u=(0,l.useCallback)(()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),d=(0,l.useRef)(!1),p=(0,l.useRef)(null),h=(0,l.useCallback)(()=>{r&&(d.current=!0,p.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),u()},window.history.pushState(null,"",window.location.href))},[u,r]),m=(0,l.useCallback)(()=>{d.current=!1,window.onpopstate=p.current,window.history.go(-1)},[]),g=(0,l.useRef)(null),b=(0,l.useCallback)(e=>{if(r||!n.navMenuItemsRef.current||!n.navigationRef.current)return;let t=e.target,i=!n.navMenuItemsRef.current.contains(t)&&!n.navigationRef.current.contains(t);if(i&&!g.current){n.setIgnoreClicks(),g.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!i&&g.current&&(clearTimeout(g.current),g.current=null)},[r,n]),x=(0,l.useRef)(null),y=(0,l.useCallback)(e=>{typeof window>"u"||(e?(x.current=b,window.addEventListener("mousemove",x.current)):x.current&&window.removeEventListener("mousemove",x.current))},[b]);(0,l.useEffect)(()=>{y(n.isNavigationOpen),n.isNavigationOpen&&!d.current&&h(),!n.isNavigationOpen&&d.current&&m()},[n.isNavigationOpen]);let k=(e,t)=>()=>{(0,C.h)(_.D.button,t),n.setOpenedSection(e)},{start:I,clear:O}=U(),j=()=>{r||O()};return(0,i.jsx)("div",{ref:n.navigationRef,className:(0,v.A)(ez.navigation,{[ez.removed]:!n.isNavigationMounted,[ez.navigationOpening]:n.isNavigationOpen,[ez.navigationClosing]:!n.isNavigationOpen}),children:(0,i.jsx)("div",{className:ez.wrapper,children:(0,i.jsxs)(w.m,{className:(0,v.A)(ez.container,{[ez.containerOpen]:!!n.openedSection}),children:[(0,i.jsxs)("div",{className:(0,v.A)(ez.sections,{[ez.sectionsOpen]:!!n.openedSection}),children:[(0,i.jsx)(f.$,{className:ez.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>o.handleButtonClick(!1),iconLeft:(0,i.jsx)(en,{size:24}),label:(null==(t=o.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,i.jsxs)("ul",{className:(0,v.A)(ez.sectionsWrapper,{[ez.removed]:n.openedBlock!==e.id&&!r}),children:[(0,i.jsx)("div",{className:ez.sectionsTitle,children:$.a[e.id]}),e.sections.map(e=>{let t,l;return(0,i.jsxs)("li",{className:(0,v.A)(ez.section,{[ez.sectionExtra]:!!e.extra,[ez.sectionActive]:n.openedSection===e.id}),onClick:k(e.id,e.title),onMouseEnter:(t=e.id,l=e.title,()=>{r||I(k(t,l),150)}),onMouseLeave:j,children:[n.isNavigationMounted&&(0,i.jsx)(eT,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:ez.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:ez.sectionArrow,children:(0,i.jsx)(S._,{size:24})})]},e.id)})]},e.id)),(0,i.jsxs)("div",{className:ez.chatWrapper,children:[(0,i.jsx)("div",{className:ez.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(eI,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,v.A)(ez.backButton,{[ez.removed]:!n.openedSection}),onClick:()=>{(0,C.h)(_.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,i.jsx)(ek,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(eS,{data:e,isMobile:r}),(0,i.jsxs)("div",{className:(0,v.A)(ez.useful,{[ez.usefulOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:ez.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,i.jsx)(l.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsx)("div",{className:(0,v.A)(ez.usefulGrid,{[ez.removed]:n.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,C.h)(_.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${t}`))},e.id)})},e.id))]})]})})})},eP=(0,o.default)(()=>n.e(2230).then(n.bind(n,42230)).then(e=>e.CertificatesWarningBanner),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/CertificatesWarningBanner-BPl0-f-t.mjs")]},ssr:!1}),eM=(0,o.default)(()=>Promise.all([n.e(9164),n.e(9680),n.e(2545),n.e(1546),n.e(171)]).then(n.bind(n,70171)).then(e=>e.CertificatesWarningPopup),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/CertificatesWarningPopup-CeN5nBOR.mjs")]},ssr:!1}),eL=(0,o.default)(()=>n.e(7068).then(n.bind(n,97068)).then(e=>e.HeaderMobileAppBanner),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/HeaderMobileAppBanner-C6MgJm_-.mjs")]},ssr:!1}),eF=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:o="https://lk.finuslugi.ru/registration",initialTown:r,isMainBannerPage:s,enableAppHeaderBanner:c=!1,enableCertificatesBanner:p=!1,enableExternalLinkWarning:h=!1,certificatesWarningProduct:m,news:x,className:y})=>{let k=ed(),I=(0,l.useMemo)(()=>((e,t,n)=>{var i,l,o,a,r,s,c;let u=(null==(l=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:l.call(i,({id:e})=>"news"===e))??-1,d=(null==(a=null==(o=null==e?void 0:e.NAVIGATOR)?void 0:o[u])?void 0:a.content)||[];if(null!=(c=null==(s=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[u])?void 0:s.content)&&c[0]&&Array.isArray(n)&&d.length){let i=n.map(({title:e,url:n})=>({title:e,url:(0,b.oq)(t||"",n),new:0}));e.NAVIGATOR[u].content[0].links=i}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]})(e,t,x),[e,t,x]),S=null==e?void 0:e.config,N=!!e&&p&&!!s,O=(({enableCertificatesBanner:e,enableExternalLinkWarning:t,isMainBannerPage:n})=>{let[i,o]=(0,l.useState)("checking"),[a,r]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1),[u,d]=(0,l.useState)(!1),[p,h]=(0,l.useState)(!1),m=(0,l.useRef)(),g=(0,l.useRef)(!1),f=(0,l.useRef)(!1),w=(0,l.useRef)(!1);(0,l.useRef)(null);let v=(0,l.useRef)(null),b=(0,l.useRef)(null),_=(0,l.useRef)(null),x=e&&n,y=x||t,k=(0,l.useCallback)(e=>{let t=m.current;t?t.call(window,e,"_blank","noopener,noreferrer"):window.open(e,"_blank","noopener,noreferrer")},[]),C=(0,l.useCallback)(()=>{r(!1),w.current=!1,v.current=null,b.current=null,_.current=null,h(!1)},[]),$=(0,l.useCallback)(e=>{Z(J),f.current=!0,w.current=!1,v.current=e,h("external"===e&&null!==b.current),r(!0)},[]),I=(0,l.useCallback)(()=>!g.current&&("external"===v.current&&!w.current||!f.current),[]),S=(0,l.useCallback)(()=>{"external"!==v.current&&$("external")},[$]);(0,l.useEffect)(()=>{m.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&Z(G),g.current=e||K(G),f.current=K(J),d(g.current),c(!0),()=>{b.current=null,_.current=null}},[]),(0,l.useEffect)(()=>{if(s){if(!x)return void o("skipped");o(e=>"shown"===e||"closing"===e||"dismissed"===e?e:u||K(q)?"skipped":"shown")}},[u,x,s]),(0,l.useEffect)(()=>{},[C,y,s]),(0,l.useEffect)(()=>{if(!s||!t)return;let e=m.current;if(!e)return;let n=!0,i=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let t=e.target.closest("a[href]");if(!t||e.defaultPrevented)return;let i=Q(t.href,window.location);if(!i||!I())return;e.preventDefault(),null===b.current&&(b.current=i.href,_.current={source:"external_anchor",host:i.hostname});let l=b.current;queueMicrotask(()=>{n&&I()&&b.current===l&&S()})},l=(t,n="_blank",i)=>{let l=Q(t,window.location);return l&&I()?(null===b.current&&(b.current=l.href,_.current={source:"external_window_open",host:l.hostname}),S(),null):e.call(window,t,n,i)};return window.open=l,document.addEventListener("click",i,!0),document.addEventListener("auxclick",i,!0),()=>{n=!1,document.removeEventListener("click",i,!0),document.removeEventListener("auxclick",i,!0),window.open===l&&(window.open=e)}},[t,s,I,S]),(0,l.useEffect)(()=>{var e;t||(b.current=null,(null==(e=_.current)?void 0:e.source)!=="banner"&&(_.current=null),h(!1),"external"===v.current&&C())},[C,t]),(0,l.useEffect)(()=>{x||"banner"===v.current&&C()},[C,x]),(0,l.useEffect)(()=>{y||C()},[C,y]);let N=(0,l.useCallback)(()=>{Z(q),o("closing")},[]),O=(0,l.useCallback)(()=>{o("dismissed")},[]),j=(0,l.useCallback)(()=>{b.current=null,_.current={source:"banner"},$("banner")},[$]),A=(0,l.useCallback)(()=>{k("https://www.gosuslugi.ru/crt")},[k]),R=(0,l.useCallback)(()=>{k("https://browser.yandex.ru/")},[k]),T=(0,l.useCallback)(()=>{let e=b.current;e&&(Z(J),f.current=!0,w.current=!0,k(e))},[k]);return{bannerStatus:i,isPopupOpen:a,popupAnalyticsContext:_.current,dismissBanner:N,finishBannerClosing:O,openPopupFromBanner:j,closePopup:C,openCertificatesPage:A,openYandexBrowserPage:R,continueToExternalPage:p?T:void 0}})({enableCertificatesBanner:N,enableExternalLinkWarning:h,isMainBannerPage:!!s}),j="shown"===O.bannerStatus||"closing"===O.bannerStatus,A=!N||"skipped"===O.bannerStatus,R=F(O.isPopupOpen),T=(0,l.useMemo)(()=>I.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[I]),E=k.isAuth?"Личный кабинет":"Войти",B=s&&k.isHeaderTransparent,P=(e,t,n,i)=>()=>{e!==k.openedBlock?(0,C.h)(_.D.toggle,t,"on"):(0,C.h)(_.D.button,"menu_close","on");let l=n?T[e]:"";k.setOpenedBlock(e,l,!!i)},{start:M,clear:W}=U(),H=e=>()=>{k.ignoreClicks||e()},D=R?(0,i.jsx)(eM,{isOpen:O.isPopupOpen,analyticsContext:O.popupAnalyticsContext,certificatesWarningProduct:m,onClose:O.closePopup,onOpenCertificatesPage:O.openCertificatesPage,onOpenYandexBrowserPage:O.openYandexBrowserPage,onContinue:O.continueToExternalPage}):null;return e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:k.headerRef,className:(0,v.A)($.s.header,y,{[$.s.transparent]:B}),children:(0,i.jsxs)("div",{ref:k.fixedContainerRef,className:(0,v.A)($.s.fixed,{[$.s.hidden]:k.isHeaderHidden,[$.s.navigationOpen]:k.isNavigationOpen}),children:[j&&(0,i.jsx)(eP,{onDismiss:O.dismissBanner,onClosed:O.finishBannerClosing,onOpenDetails:O.openPopupFromBanner,onOpenCertificatesPage:O.openCertificatesPage,onOpenYandexBrowserPage:O.openYandexBrowserPage}),A&&!!(null!=S&&S.appBannerUrl)&&c&&(0,i.jsx)(eL,{mobileAppUrl:S.appBannerUrl,minioUrl:n}),(0,i.jsxs)(w.m,{className:$.s.container,children:[(0,i.jsxs)("div",{className:$.s.leftRow,children:[(0,i.jsx)(eb,{className:$.s.logo,href:t,eventActionType:_.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,b.oq)(n,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{src:(0,b.oq)(n,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,i.jsx)("nav",{ref:k.navMenuItemsRef,className:$.s.menuItems,children:(0,i.jsx)("ul",{children:$.b.map(({id:e,label:t})=>(0,i.jsx)("li",{children:(0,i.jsx)(f.$,{className:(0,v.A)({[$.s.menuItemActive]:k.openedBlock===e&&k.isNavigationOpen}),label:t,variant:"white",size:"xs",onClick:H(P(e,t,!0)),onMouseEnter:()=>{k.isNavigationOpen&&e===k.openedBlock||k.setIgnoreClicks(),M(P(e,t,!0,!0),200)},onMouseLeave:W})},e))})}),(0,i.jsx)(ev,{className:(0,v.A)($.s.tabletMenuButton,{[$.s.menuItemActive]:k.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(u,{size:24}),onClick:P("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:(0,v.A)($.s.buttonGroup,{[$.s.whiteIcons]:(null==S?void 0:S.iconColorOnMobileMainBanner)==="white"}),children:[(0,i.jsxs)("div",{className:$.s.chips,children:[(0,i.jsx)(ev,{as:"a",href:o,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${o}`,iconLeft:(0,i.jsx)(g,{size:20}),"aria-label":E}),(0,i.jsx)(ev,{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,i.jsx)(a.G,{size:24}),"aria-label":"Онлайн чат"})]}),(0,i.jsx)(ev,{className:$.s.menuButton,size:"xs",shape:B?"icon":"default",appearance:B?"ghost":"fill",label:"Меню",onClick:P("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(L,{size:24})}),(0,i.jsxs)("div",{className:$.s.moreButtons,children:[(0,i.jsx)(ew,{initialTown:r}),(0,i.jsx)(ev,{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,i.jsx)(z,{size:24}),children:"Онлайн чат"}),(0,i.jsx)(ev,{as:"a",href:o,size:"xs",eventActionText:E,eventLabel:`${E}_${o}`,label:E})]})]}),(0,i.jsxs)(eb,{className:$.s.auth,href:o,eventActionText:E,eventLabel:`${E}_${o}`,children:[(0,i.jsx)(ev,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(g,{}),eventActionText:E,eventLabel:`${E}_${o}`}),(0,i.jsx)("p",{children:E})]}),(0,i.jsx)("div",{className:$.s.close,children:(0,i.jsx)(ev,{className:$.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(d.a,{}),onClick:()=>k.setOpenedBlock(null),eventActionText:"IconFdsCloseO","aria-label":"Закрыть"})})]})]})}),(0,i.jsx)("div",{className:(0,v.A)($.s.overlay,{[$.s.removed]:!k.isNavigationMounted,[$.s.overlayOpening]:k.isNavigationOpen,[$.s.overlayClosing]:!k.isNavigationOpen}),onClick:H(()=>k.setOpenedBlock(null))}),(0,i.jsx)(eB,{data:I,minioUrl:n}),D]}):h?D:null},eU=e=>(0,i.jsx)(ep,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(eF,{...e})})},53730:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});let i={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 i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in n){if(!n.hasOwnProperty(e))continue;i+=`; ${e}`;let t=n[e];!0!==t&&(i+=`=${t}`)}document.cookie=i},removeItem:e=>{i.setItem(e,"",{"max-age":-1})}}},56053:(e,t,n)=>{"use strict";n.d(t,{F:()=>u,H:()=>r,U:()=>o,a:()=>c,b:()=>s,c:()=>a,s:()=>l});let i=(0,n(7596).g)("header","sc"),l=Object.freeze({header:`${i}`,fixed:`${i}__fixed`,hidden:`${i}__fixed--hidden`,transparent:`${i}--transparent`,navigationOpen:`${i}__navigation-open`,container:`${i}__container`,leftRow:`${i}__left-row`,logo:`${i}__logo`,menuItems:`${i}__menu-items`,menuItemActive:`${i}__menu-item-active`,tabletMenuButton:`${i}__tablet-menu-button`,buttonGroup:`${i}__button-group`,chips:`${i}__chips`,menuButton:`${i}__menu-button`,moreButtons:`${i}__more-buttons`,auth:`${i}__auth`,whiteIcons:`${i}__white-icons`,close:`${i}__close`,removed:`${i}__removed`,overlay:`${i}__overlay`,overlayOpening:`${i}__overlay--opening`,overlayClosing:`${i}__overlay--closing`}),o="user_region",a="user_town",r="cb-header",s=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],c=s.reduce((e,t)=>(e[t.id]=t.label,e),{}),u=Object.freeze({mobile:56,desktop:80})},57349:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(12115);let l={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},o={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},a=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 r({className:e,style:t,boxSize:n,size:s,onClick:c}){return i.createElement("span",{className:e,style:{...l,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:o}))}r.displayName="IconFdsArrowUpRightSmallO"},66806:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(12115);let l={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},o={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},a=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 r({className:e,style:t,boxSize:n,size:s,onClick:c}){return i.createElement("span",{className:e,style:{...l,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:o}))}r.displayName="IconFdsChatDotsCircleO"},94344:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var i=n(12115);let l={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},o={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},a=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 r({className:e,style:t,boxSize:n,size:s,onClick:c}){return i.createElement("span",{className:e,style:{...l,...c&&{cursor:"pointer"},...s&&{fontSize:`${s}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...c?{role:"button",tabIndex:"0",onClick:c}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:o}))}r.displayName="IconFdsChevronRightSmallO"}}]);