(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5695],{531:(e,t,n)=>{"use strict";n.d(t,{TagManagerNoscript:()=>a,TagManagerScript:()=>l});var i=n(65596),o=n(12115);function l(e){let{mtmURL:t,mtmID:n,ytmID:l,autoInit:a=!0,isolated:r=!1}=e;return o.createElement(o.Fragment,null,o.createElement("meta",{name:"ytm-v2",id:"analytics-ytm-meta"}),o.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:"\n    (function(w) {\n  /*! @script-version 1.0.0 */\n  /*! js-cookie v3.0.5 | MIT */\n  !function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){\"use strict\";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if(\"undefined\"!=typeof document){\"number\"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c=\"\";for(var u in i)i[u]&&(c+=\"; \"+u,!0!==i[u]&&(c+=\"=\"+i[u].split(\";\")[0]));return document.cookie=t+\"=\"+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if(\"undefined\"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split(\"; \"):[],o={},r=0;r<t.length;r++){var i=t[r].split(\"=\"),c=i.slice(1).join(\"=\");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,\"\",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'\"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:\"/\"});return t}));\n  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}\n  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}\n  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n  var browserId=Cookies.get('browserId')||w.browserId||(function(){\n    try{return w.localStorage.getItem('browserId');}catch(e){return null;}\n  })()||uuidv4();\n  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){\n    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}\n  })()||uuidv4();\n  if(!browserId.match(uuidv4re)){browserId=uuidv4();}\n  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}\n  w.browserId=browserId;\n  w.browserSessionId=sessionId;\n  try{\n    w.localStorage.setItem('browserId', browserId);\n    w.sessionStorage.setItem('browserId', sessionId);\n    w.sessionStorage.setItem('browserSessionId', sessionId);\n  }catch(e){}\n  var domain=normalizeDomain(w.location.hostname);\n  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};\n  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));\n  Cookies.set('browserSessionId',sessionId,cookieOptions);\n  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];\n  w.dataLayer.push({event:'set-vars-event',browser_id:browserId,session_id:sessionId});\n  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});\n})(window);\n  "}}),o.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function(e){let{mtmURL:t,mtmID:n}=e;return"\n    (function(w,l,d){\n      w._mtm_initialized=false;\n      w[l]=w[l]||[];\n      w[l].push({...(w._session||{})});\n      w._init_mtm=function(){\n        if(w._mtm_initialized)return;\n        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});\n        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];\n        g.type='text/javascript';\n        g.async=true;\n        g.src='".concat(t,"/js/container_").concat(n,".js';\n        s.parentNode.insertBefore(g,s);\n        g.onload=function(){\n          w._mtm_initialized=true;\n        };\n      }\n    })(window,'_mtm',document);\n  ")}({mtmURL:t,mtmID:n})}}),!r&&o.createElement("script",{id:"analytics-ytm-script",dangerouslySetInnerHTML:{__html:function(e){let{ytmID:t,isolated:n=!1}=e;return"\n    (function(w,l,d, isolated){\n    w._ytm_initialized=false;\n      w[l]=w[l]||function(){(w[l].a=w[l].a||[]).push(arguments)};\n      w[l].l=1*new Date();\n      w._init_ytm=function(){\n        if(w._ytm_initialized)return;\n        var j;\n        for(j=0;j<d.scripts.length;j++){\n          if(d.scripts[j].src==='https://mc.yandex.ru/metrika/tag.js?id=".concat(t,"'){\n            return;\n          }\n        }\n        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];\n        g.type='text/javascript';\n        g.async=true;\n        g.src='https://mc.yandex.ru/metrika/tag.js?id=").concat(t,"';\n        s.parentNode.insertBefore(g,s);\n        g.onload = function () {\n        w._ytm_initialized=true;\n        if(isolated)return;\n          w.ym('").concat(t,"', 'init', {\n            ssr: true,\n            webvisor: true,\n            clickmap: true,\n            ecommerce: 'dataLayer',\n            referrer: d.referrer,\n            url: d.location.href,\n            accurateTrackBounce: true,\n            trackLinks: true,\n          });\n        };\n      }\n    })(window,'ym',document, ").concat(n,");\n  ")}({ytmID:l})}}),a&&o.createElement(i.default,{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:"\n    (function(w,m,y){\n      if(typeof w[m]==='function')w[m]();\n      if(typeof w[y]==='function')w[y]();\n    })(window,'_init_mtm','_init_ytm');\n  "}}))}function a(e){let{mtmURL:t,mtmID:n,ytmID:i,isolated:l=!1}=e;return o.createElement(o.Fragment,null,o.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function(e){let{mtmURL:t,mtmID:n}=e;return'<img src="'.concat(t,"/matomo.php?idsite=").concat(n,'&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />')}({mtmURL:t,mtmID:n})}}),!l&&o.createElement("noscript",{id:"analytics-ytm-noscript",dangerouslySetInnerHTML:{__html:function(e){let{ytmID:t}=e;return'<img src="https://mc.yandex.ru/watch/'.concat(t,'" style="position:absolute; left:-9999px;" alt="" />')}({ytmID:i})}}))}},3498:()=>{},8755:()=>{},9056:()=>{},10620:()=>{},11412:()=>{},12989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(95155),o=n(29722),l=n(83640);n(11412);let a=(0,l.g)("card"),r={card:a,variants:{primary:`${a}--primary`,secondary:`${a}--secondary`}},s=({as:e,className:t,style:n,children:l,variant:a="primary",dataQa:s,dataId:c,...u})=>(0,i.jsx)(e||"div",{className:(0,o.A)(t,r.card,r.variants[a]),style:n,...u,"data-id":c,"data-qa":s,children:l});s.displayName="Card"},16311:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var i=n(12115);let o={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},l={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:r,onClick:s}){return i.createElement("span",{className:e,style:{...o,...s&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:l}))}r.displayName="IconFdsCloseO"},17966:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var i=n(12115);let o=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},l=(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,d=u>0;if(e&&d)s.style.top||(window.prevScrollPosition=window.scrollY),((e,t,n)=>{t.style.setProperty("overflow-y","scroll"),e.classList.toggle("scroll-disable-windows",!0),e.style.setProperty("width",`calc(100vw - ${n}px)`),e.style.setProperty("top",`-${window.prevScrollPosition}px`)})(s,c,u),o(i,!0);else if(e)(e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")})(s),o(i,!0);else{let e=!r();e&&l(s,c),e&&a(),o(i,!1)}return()=>{let e=!r();e&&l(s,c),e&&a()}},[e]),t}},21957:(e,t,n)=>{"use strict";function i(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return i}}),n(95155),n(47650),n(5214),n(2451)},34477:(e,t,n)=>{"use strict";n.d(t,{Footer:()=>ee}),n(3498);var i=n(95155),o=n(66216),l=n(29722),a=n(86253),r=n(83640);n(8755);let s=Object.freeze({text:(0,r.g)("text")});function c({as:e,className:t,style:n,children:o,size:r,weight:c,lineClamp:u,dataQa:d,dataId:p,...m}){return(0,i.jsx)(e||"span",{className:(0,l.A)(s.text,t),style:{...r&&{fontSize:`var(--font-size-${r})`,lineHeight:`var(--font-line-height-${r})`},...c&&{fontWeight:`var(--font-weight-${c})`},...u&&{WebkitLineClamp:u,lineClamp:u,...a.l},...n},...m,"data-id":p,"data-qa":d,children:o})}c.displayName="Text";var u=n(17806),d=n(7596),p=n(24691),m=n(20197),h=n(55727),f=n(57349),g=n(12989),w=n(12115),v=n(14347),_=n(72004),x=n(63114);let b=(0,d.g)("footer-contacts-block","sc"),y=Object.freeze({contactsWrapper:"".concat(b,"__contacts-wrapper"),gray:"".concat(b,"__gray"),phones:"".concat(b,"__phones"),contactsButtons:"".concat(b,"__contacts-buttons"),vkIcon:"".concat(b,"__vk-icon"),tgIcon:"".concat(b,"__tg-icon"),dzenIcon:"".concat(b,"__dzen-icon"),maxIcon:"".concat(b,"__max-icon"),link:"".concat(b,"__link")}),C=(0,d.g)("footer","sc"),j=Object.freeze({wrapper:"".concat(C,"__wrapper"),section:"".concat(C,"__section"),container:"".concat(C,"__container"),top:"".concat(C,"__top"),main:"".concat(C,"__main"),links:"".concat(C,"__links"),disclaimer:"".concat(C,"__disclaimer"),bottom:"".concat(C,"__bottom"),bottomLinks:"".concat(C,"__bottom-links"),bottomDisclaimer:"".concat(C,"__bottom-disclaimer"),compact:"".concat(C,"__wrapper--compact"),white:"".concat(C,"__wrapper--white")}),k="finkit-widgets-sc-footer",N=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"8 (800) 700-64-94",url:"tel:88007006494"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"},{title:"+7 (495) 787-64-94",url:"tel:+74957876494"}],I=[...N,{title:"Онлайн чат",url:void 0}],S=[{type:"vk",className:y.vkIcon,iconName:"vk"},{type:"telegramChannel",className:y.tgIcon,iconName:"telegram"},{type:"dzen",className:y.dzenIcon,iconName:"dzen"},{type:"max",className:y.maxIcon,iconName:"max"}],O=(0,i.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО \xabМБ Маркетплейс\xbb, организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ \xabО совершении финансовых сделок с использованием финансовой платформы\xbb. Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой \xabОткрытие онлайн на Финуслугах\xbb. Иная информация на сайте www.finuslugi.ru считается размещенной ООО \xabМБ Маркетплейс\xbb, если иное явно не следует из существа размещаемой информации. ООО \xabМБ Маркетплейс\xbb входит в Группу \xabМосковская Биржа\xbb.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),A=e=>{let{onClick:t,eventActionText:n,eventLabel:o,...l}=e;return(0,i.jsx)(p.$,{onClick:e=>{null==t||t(e),(0,m.h)({eventCategory:k,eventActionType:m.D.button,eventActionText:n||"",eventLabel:o})},...l})},T=e=>{let{onClick:t,eventActionType:n,eventActionText:o,eventLabel:l,chat:a,...r}=e;return(0,i.jsx)(h.N,{onClick:e=>{var i,r,s;null==t||t(e),a&&(null==e||e.preventDefault(),null==(s=null==(r=null==(i=null==window?void 0:window.supportWidget)?void 0:i.craftTalk)?void 0:r.open)||s.call(r)),(0,m.h)({eventCategory:k,eventActionType:n||m.D.link,eventActionText:o||"",eventLabel:l})},...r})},R=e=>{let{minioUrl:t,blogs:n}=e;return(0,i.jsxs)("div",{className:y.contactsWrapper,children:[(0,i.jsx)(c,{className:y.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,i.jsx)("div",{className:y.phones,children:I.map(e=>{let{title:t,url:n}=e;return(0,i.jsx)(T,{href:n,eventActionText:t,chat:!n,children:t},t)})}),(0,i.jsx)(c,{className:y.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,i.jsx)("div",{className:y.contactsButtons,children:S.map(e=>{let{type:o,className:l,iconName:a}=e;return(0,i.jsx)(A,{as:"a",href:null==n?void 0:n[o],target:"_blank",className:l,iconRight:(0,i.jsx)("img",{width:24,height:24,src:(0,u.oq)(t,"/widgets/footer/".concat(a,".svg")),alt:o,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:o,eventLabel:null==n?void 0:n[o]},o)})}),(0,i.jsx)(c,{className:y.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,i.jsx)("div",{className:y.contactsButtons,children:(0,i.jsxs)(T,{href:null==n?void 0:n.investTg,target:"_blank",className:y.link,eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg,children:[(0,i.jsx)(A,{className:y.tgIcon,iconRight:(0,i.jsx)("img",{width:24,height:24,src:(0,u.oq)(t,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==n?void 0:n.investTg}),"Финуслуги Инвест"]})})]})},E=(0,d.g)("footer-disclaimer","sc"),z=Object.freeze({disclaimer:"".concat(E)}),$=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,m.h)({eventCategory:k,eventActionType:m.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,i.jsx)("div",{className:(0,l.A)(e.className,z.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,i.jsx)("div",{className:(0,l.A)(e.className,z.disclaimer),onClick:t,children:e.children})},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,w.useState)(e);return(0,w.useEffect)(()=>{let t=(()=>{let e=new URL(window.location.href),t=new URLSearchParams;return e.searchParams.forEach((e,n)=>{/^utm_/i.test(n)&&t.set(n,e)}),t})();if(!t||0===t.size)return;let[i,o=""]=e.split("?"),l=new URLSearchParams(o);t.forEach((e,t)=>{l.has(t)||l.set(t,e)});let a=l.toString();n(a?"".concat(i,"?").concat(a):i)},[e]),t},P=(0,d.g)("footer-modal-body","sc"),B=Object.freeze({wrapper:"".concat(P,"__wrapper"),title:"".concat(P,"__title"),item:"".concat(P,"__item"),label:"".concat(P,"__label"),button:"".concat(P,"__button"),description:"".concat(P,"__description")}),M=e=>{let{directions:t}=e;return(0,i.jsxs)("div",{className:B.wrapper,children:[(0,i.jsx)("div",{className:B.title,children:"Направления"}),t.map(e=>(0,i.jsxs)(T,{className:B.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:"".concat(e.name,"_").concat(e.url),children:[(0,i.jsxs)("div",{className:B.label,children:[(0,i.jsx)("span",{children:e.name}),(0,i.jsx)(A,{className:B.button,iconRight:(0,i.jsx)(f.K,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,i.jsx)("p",{className:B.description,children:e.description})]},e.url))]})},U=(0,d.g)("footer-popup","sc"),F=Object.freeze({wrapper:"".concat(U,"__wrapper"),button:"".concat(U,"__button"),icon:"".concat(U,"__icon"),buttonWrapper:"".concat(U,"__button-wrapper")}),D=e=>{let{directions:t}=e,n=(0,v.qF)("l"),[o,l]=(0,w.useState)(!1),a=()=>{l(!1)};return(0,i.jsxs)("div",{className:F.wrapper,children:[(0,i.jsx)("div",{className:F.buttonWrapper,children:(0,i.jsx)(A,{className:F.button,appearance:"ghost",variant:"white",onClick:()=>{l(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,i.jsx)("div",{className:F.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,i.jsx)("div",{},e))})})}),(0,i.jsxs)(x.P,{children:[!n&&(0,i.jsx)(x.U,{isOpen:o,onClose:a,full:!0,children:(0,i.jsx)(M,{directions:t})}),n&&(0,i.jsx)(_.D,{isOpen:o,onClose:a,width:"804px",children:(0,i.jsx)(M,{directions:t})})]})]})},W=(0,d.g)("footer-left-column","sc"),H=Object.freeze({leftColumn:"".concat(W,"__left-column"),logoWrapper:"".concat(W,"__logo-wrapper"),banner:"".concat(W,"__banner"),mobAppLink:"".concat(W,"__mob-app-link"),br:"".concat(W,"__br")}),V=e=>{let{showcaseUrl:t,minioUrl:n,directions:o,mobAppUrl:l}=e,a=L(l);return(0,i.jsxs)("div",{className:H.leftColumn,children:[(0,i.jsx)(T,{className:H.logoWrapper,href:t,eventActionType:m.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:(0,i.jsx)("img",{src:(0,u.oq)(n,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,i.jsx)(D,{directions:null!=o?o:[]}),(0,i.jsx)(T,{href:a,target:"_blank",eventActionType:m.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:a,className:H.mobAppLink,children:(0,i.jsxs)(g.Z,{className:H.banner,children:[(0,i.jsxs)(c,{weight:"medium",children:["Управляйте финансами",(0,i.jsx)("br",{}),"через приложение",(0,i.jsx)("br",{className:H.br})," Финуслуг"]}),(0,i.jsx)(A,{iconRight:(0,i.jsx)(f.K,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,u.oq)(n,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,i.jsx)("img",{src:(0,u.oq)(n,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},G=(0,d.g)("footer-logo","sc"),q=Object.freeze({wrapper:"".concat(G,"__wrapper"),link:"".concat(G,"__link"),fromMoex:"".concat(G,"__from-moex"),logo:"".concat(G,"__logo"),white:"".concat(G,"__wrapper--white")}),J=e=>{let{showcaseUrl:t,minioUrl:n,isWhite:o}=e;return(0,i.jsx)("div",{className:(0,l.A)(q.wrapper,{[q.white]:o}),children:(0,i.jsxs)(T,{className:q.link,href:t,eventActionType:m.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:[(0,i.jsx)("img",{className:q.logo,src:"".concat(n,"/images/logo-brandmark-common-finuslugi.svg"),loading:"lazy"}),(0,i.jsx)("img",{className:q.fromMoex,src:"".concat(n,"/images/fromMoex.svg"),loading:"lazy"})]})})};var Y=(e=>(e.BLACK="black",e.GRAY="gray",e))(Y||{});let K=(0,d.g)("footer-warning","sc"),Z=Object.freeze({reservedSpace:"".concat(K,"__reserved-space"),wrapper:"".concat(K,"__wrapper"),wrapperGray:"".concat(K,"__wrapper--gray"),fixed:"".concat(K,"__wrapper--fixed"),container:"".concat(K,"__container"),text:"".concat(K,"__text"),invisibleText:"".concat(K,"__text--invisible")}),Q=e=>{let{text:t,variant:n,fixed:a,isPlaceholder:r}=e;return(0,i.jsx)("div",{className:(0,l.A)(Z.wrapper,{[Z.wrapperGray]:"gray"===n,[Z.fixed]:a&&!r}),children:(0,i.jsx)(o.m,{className:Z.container,children:(0,i.jsx)("div",{className:(0,l.A)(Z.text,{[Z.invisibleText]:r}),dangerouslySetInnerHTML:{__html:t}})})})},X=e=>{var t,n;let{warning:o}=e,l="string"==typeof o?{text:o}:o,a={text:l.text,fixed:null==(t=l.fixed)||t,variant:null!=(n=l.variant)?n:Y.BLACK};return(0,i.jsxs)("div",{className:Z.reservedSpace,children:[(0,i.jsx)(Q,{...a,isPlaceholder:a.fixed}),a.fixed&&(0,i.jsx)(Q,{...a,fixed:!0})]})},ee=e=>{var t,n;let{data:a,showcaseUrl:r="https://finuslugi.ru",minioUrl:s="https://assets.finuslugi.ru/mp-assets",customDisclaimer:c,variant:u="default",className:d}=e,p=!c&&null!=a&&a.disclaimer?a.disclaimer:void 0,m=u.includes("compact"),h=u.includes("white"),f=null==(t=null==a?void 0:a.bottom)?void 0:t.concat(m?N:[]),g=a&&"warning"in a?a.warning:void 0;return a?(0,i.jsx)("footer",{className:(0,l.A)(j.wrapper,d,{[j.compact]:m,[j.white]:h}),children:(0,i.jsxs)("section",{className:j.section,children:[(0,i.jsxs)(o.m,{className:j.container,children:[!m&&(0,i.jsx)(V,{showcaseUrl:r,minioUrl:s,directions:null==a?void 0:a.directions,mobAppUrl:null==a?void 0:a.mobAppUrl}),(0,i.jsx)("div",{className:j.wrapper,children:(0,i.jsxs)("div",{className:j.top,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:j.main,children:[!m&&(0,i.jsx)("div",{className:j.links,children:null==(n=null==a?void 0:a.top)?void 0:n.map(e=>(0,i.jsx)(T,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),m&&(0,i.jsx)(J,{showcaseUrl:r,minioUrl:s,isWhite:h}),(0,i.jsx)($,{className:j.disclaimer,disclaimer:p,children:c||O})]}),(0,i.jsxs)("div",{className:j.bottom,children:[(0,i.jsx)("div",{className:j.bottomLinks,children:null==f?void 0:f.map(e=>(0,i.jsx)(T,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,i.jsx)($,{className:j.bottomDisclaimer,disclaimer:null==a?void 0:a.bottomDisclaimer})]})]}),!m&&(0,i.jsx)(R,{minioUrl:s,blogs:null==a?void 0:a.blogs})]})})]}),m&&!!g&&(0,i.jsx)(X,{warning:g})]})}):null}},41112:(e,t,n)=>{"use strict";function i(e){let{reason:t,children:n}=e;return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}}),n(1980)},41504:(e,t,n)=>{"use strict";n.d(t,{CookiesPlate:()=>u}),n(91265);var i=n(95155),o=n(12115),l=n(16311),a=n(29722),r=n(53730);let s=(0,n(7596).g)("cookies-plate","sc"),c=Object.freeze({wrapper:"".concat(s,"__wrapper"),contentWrapper:"".concat(s,"__content-wrapper"),visible:"".concat(s,"--visible"),hidden:"".concat(s,"--hidden"),content:"".concat(s,"__content"),text:"".concat(s,"__text"),link:"".concat(s,"__link"),button:"".concat(s,"__button")}),u=e=>{let{className:t,mountDelay:n=3e3,href:s="https://assets.finuslugi.ru/mp-assets/pravila-ispolzovanija-cookie-pao-moskovskaja-birzh.doc",children:u,closeIcon:d,onMount:p,onLinkClick:m,onClose:h,mountAfterScroll:f=!0}=e,[g,w]=(0,o.useState)(!1),[v,_]=(0,o.useState)(!1),[x,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),r.a.getItem("Allow-Cookie")||(b(!0),setTimeout(()=>{w(!0),null==p||p()},n))};return f?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let y=(0,o.useCallback)(()=>{r.a.setItem("Allow-Cookie","1"),_(!0),null==h||h(),setTimeout(()=>b(!1),1e3)},[h]);return x?(0,i.jsx)("div",{className:c.wrapper,children:(0,i.jsx)("div",{className:(0,a.A)(c.contentWrapper,{[c.visible]:g,[c.hidden]:v}),children:(0,i.jsxs)("div",{className:(0,a.A)(t,c.content),children:[u||(0,i.jsxs)("p",{className:c.text,children:["Мы используем"," ",(0,i.jsx)("a",{className:c.link,href:s,target:"_blank",rel:"noreferrer",onClick:m,children:"cookie"})," ","для лучшей работы сайта"]}),(0,i.jsx)("button",{className:c.button,onClick:y,children:d||(0,i.jsx)(l.a,{})})]})})}):(0,i.jsx)(i.Fragment,{})}},46089:(e,t,n)=>{"use strict";n.d(t,{H:()=>l,h:()=>c,i:()=>s,s:()=>a});var i=n(20197),o=n(56053);let l="finuslugi-header-height-change",a=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),o=!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 l=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=l<r,p=l<((null==i?void 0:i.clientHeight)||0);if(n&&p||d){o=!1,e(!1),t(!0),u(`${r}px`);return}e(o=l>a),o&&setTimeout(()=>t(!1),50),u(o?"0px":`${r}px`),a=l<=0?0:l},m=()=>{r=0,p()};return window.addEventListener("scroll",p),window.addEventListener("resize",d),window.addEventListener(l,m),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",d),window.removeEventListener(l,m)}},r=(e,t,n)=>{let i=new Date;i.setTime(i.getTime()+864e5*n);let o=encodeURIComponent(JSON.stringify(t)),l=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${o};expires=${i.toUTCString()};path=/;SameSite=Lax${l}`},s=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{(()=>{let 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})();e&&!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:o.H,eventActionType:e,eventActionText:t,eventLabel:n})},47125:(e,t,n)=>{"use strict";n.d(t,{a:()=>g,b:()=>b,c:()=>C,d:()=>v,e:()=>s,f:()=>d,g:()=>m,h:()=>S,i:()=>f,j:()=>y,k:()=>I,l:()=>N,p:()=>p,s:()=>u});var i=n(53730),o=n(20197),l=n(56053);let a={userRegion:l.U,userTown:l.c,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},r={userRegion:l.U,userTown:l.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 o=s(n);if(!e&&!t){i.a.removeItem(o.userRegion),i.a.removeItem(o.userTown);return}i.a.setItem(o.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),i.a.setItem(o.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},m=(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},h=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),f=(e,t=!1)=>!(e.length<1)&&(!t||h(e)),g=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),_=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},x=(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()))},b=(e,t,n)=>{let i=null,o=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(i=e,o=t,!0)});let l=t?e.find(e=>e.id===t.id)??null:null;return{region:i??l??t,town:o??n}},y=(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),C=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),j=async e=>{let t=await _(v(e,"/money_data/Root.json?short=1")),n=Array.isArray(null==t?void 0:t.regions)?t.regions:[];return x(n),n},k=async e=>{let[t,n]=await Promise.all([_(w(e,"/sc/api/v1/cities?all=true&isActive=true")),_(w(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==t?void 0:t.content)||!Array.isArray(null==n?void 0:n.content))return[];let i=((e,t)=>{let n=t.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:+!!e.isActive,fiasId:e.fiasId,towns:[]})),i=n.reduce((e,t)=>(e[t.id]=t,e),{});return e.forEach(e=>{let t=i[e.geoRegionId];t&&t.towns.push({id:e.legacyId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,main:+!!e.isRegionalCenter,newId:e.id,fiasId:e.fiasId})}),n})(t.content,n.content);return h(i)?(x(i,!0),i):[]},N=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?k(e):j(e),I=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},S=(e,t,n)=>{(0,o.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})}},48085:()=>{},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})}}},55898:(e,t,n)=>{"use strict";n.d(t,{CitySelectProvider:()=>ev,H:()=>eS,Header:()=>eZ,b:()=>ee,p:()=>et,u:()=>eb,o:()=>ew}),n(9056);var i=n(95155),o=n(12115),l=n(75707),a=n.n(l),r=n(66806);let s={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},c={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},u=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.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 d({className:e,style:t,boxSize:n,size:i,onClick:l}){return o.createElement("span",{className:e,style:{...s,...l&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...l?{role:"button",tabIndex:"0",onClick:l}:{}},o.createElement(u,{viewBox:"0 0 24 24",style:c}))}d.displayName="IconFdsChevronDownO";var p=n(16311);let m={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},h={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},f=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.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:l}){return o.createElement("span",{className:e,style:{...m,...l&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...l?{role:"button",tabIndex:"0",onClick:l}:{}},o.createElement(f,{viewBox:"0 0 24 24",style:h}))}g.displayName="IconFdsUserO";var w=n(24691),v=n(66216),_=n(29722),x=n(17806),b=n(20197),y=n(7596),C=n(47125),j=n(17966),k=n(46089),N=n(56053),I=n(55727),S=n(94344),O=n(14347),A=n(12989),T=n(57349);let R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},E={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},z=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.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 $({className:e,style:t,boxSize:n,size:i,onClick:l}){return o.createElement("span",{className:e,style:{...R,...l&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...l?{role:"button",tabIndex:"0",onClick:l}:{}},o.createElement(z,{viewBox:"0 0 24 24",style:E}))}$.displayName="IconFdsDotsVerticalO";let L=(0,y.g)("navigation-chips","sc"),P=Object.freeze({wrapper:`${L}__wrapper`,gray:`${L}__variantGray`,white:`${L}__variantWhite`,container:`${L}__container`,chip:`${L}__chip`,more:`${L}__chip--more`,active:`${L}__chip--active`,icon:`${L}__icon`,label:`${L}__label`,hidden:`${L}__hidden`}),B=(0,y.g)("navigation-content","sc"),M=Object.freeze({contentWrapper:`${B}__content-wrapper`,content:`${B}__content`,contentOpen:`${B}__content--open`,contentHeader:`${B}__content-header`,contentTitle:`${B}__content-title`,contentTitleUrl:`${B}__content-title--url`,contentTitleLink:`${B}__content-title--link`,contentTitleNew:`${B}__content-title--new`,new:`${B}__new`,newInline:`${B}__new-inline`,vip:`${B}__vip`,arrowIcon:`${B}__arrow-icon`,links:`${B}__links`,linksColumns:`${B}__links--columns`,linksTitleless:`${B}__links--titleless`,removed:`${B}__removed`,hidden:`${B}__content--hidden`}),U=({chip:e,hidden:t,onClick:n,refCallback:o,activeChipId:l})=>{let a=!!n,r=()=>{if(a)return null==n?void 0:n(e.url);(0,k.h)(b.D.chip,e.title,`${e.title}_${e.url}`)},s=(0,i.jsxs)(i.Fragment,{children:[e.icon&&(0,i.jsx)("span",{className:P.icon,"aria-hidden":"true",children:e.icon}),(0,i.jsx)("span",{className:P.label,children:e.title}),e.arrow&&(0,i.jsx)(T.K,{size:24})]}),c=(0,_.A)(P.chip,{[P.hidden]:t,[M.new]:!!e.new,[M.vip]:!!e.vip,[P.active]:e.url===l});return a?(0,i.jsx)("button",{type:"button",className:c,onClick:r,ref:o,children:s}):(0,i.jsx)("a",{href:e.url,className:c,onClick:r,ref:o,children:s})},F=({items:e=[],maxNumberOfLines:t,variant:n,className:l,activeChipId:a,onClick:r,moreButtonOptions:s})=>{let c=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)([]),p=(null==s?void 0:s.label)??"Еще",m="Еще",h=(null==s?void 0:s.showIcon)??!0,f=(0,_.A)(P.chip,P.more,null==s?void 0:s.className),[g,w]=(0,o.useState)(!1),[v,x]=(0,o.useState)(e.length),[y,C]=(0,o.useState)(!1),j=(0,o.useCallback)(()=>{let n=c.current;if(!n)return;let i=e=>e?e.getBoundingClientRect().width:0,o=i(n),l=Math.max(Number(t)||0,0),a=()=>{x(e.length),C(!1)};if(g||0===l||o<=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(u.current),p=e.map((e,t)=>i(d.current[t]));if(p.some(e=>0===e))return void a();let m=1,h=0,f=0;for(let e of p){let t=m===l?s+r:0,n=0===h?e:h+r+e;if(n+t<=o-.5)h=n,f++;else{if(++m>l)break;h=e,f++}}C(f<e.length),x(f)},[g,e,t]);(0,o.useLayoutEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(j)});return t.observe(e),requestAnimationFrame(j),()=>{t.disconnect()}},[j]),(0,o.useEffect)(()=>{requestAnimationFrame(j)},[j]);let N=g||(t??0)<=0||!y;return(0,i.jsx)("div",{className:(0,_.A)(l,P.wrapper,{[P.gray]:"gray"===n,[P.white]:"white"===n}),children:(0,i.jsxs)("div",{ref:c,className:P.container,children:[e.map((e,t)=>(0,i.jsx)(U,{chip:e,hidden:!N&&t>=v,activeChipId:a,onClick:r,refCallback:e=>{d.current[t]=e}},`${e.url}_${t}`)),!N&&y&&(0,i.jsxs)("button",{type:"button",ref:u,className:f,"aria-label":m,onClick:()=>{(0,k.h)(b.D.chip,m),w(!0)},children:[h&&(0,i.jsx)($,{size:20}),(0,i.jsx)("span",{className:P.label,children:p})]}),(N||!y)&&(0,i.jsxs)("button",{type:"button",ref:u,className:(0,_.A)(f,P.hidden),tabIndex:-1,"aria-hidden":"true",children:[h&&(0,i.jsx)($,{size:20}),(0,i.jsx)("span",{className:P.label,children:p})]})]})})},D={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},W={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},H=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("defs",null,o.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},o.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),o.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},o.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 V(e){let{className:t,style:n,boxSize:i,size:l,onClick:a}=e;return o.createElement("span",{className:t,style:{...D,...a&&{cursor:"pointer"},...l&&{fontSize:"".concat(l,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},o.createElement(H,{viewBox:"0 0 24 24",style:W}))}V.displayName="IconFdsChatDotsSquareAddO";let G={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},q={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},J=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("defs",null,o.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},o.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),o.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},o.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 Y(e){let{className:t,style:n,boxSize:i,size:l,onClick:a}=e;return o.createElement("span",{className:t,style:{...G,...a&&{cursor:"pointer"},...l&&{fontSize:"".concat(l,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},o.createElement(J,{viewBox:"0 0 24 24",style:q}))}Y.displayName="IconFdsMenuSkewedO";let K=e=>{let[t,n]=(0,o.useState)(e);return(0,o.useEffect)(()=>{e&&n(!0)},[e]),e||t},Z=()=>{let e=(0,o.useRef)(null),t=(0,o.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,o.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,o.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},Q=(0,y.g)("certificates-warning-banner","sc"),X=(0,y.g)("certificates-warning-popup","sc"),ee=Object.freeze({wrapper:"".concat(Q),container:"".concat(Q,"__container"),content:"".concat(Q,"__content"),info:"".concat(Q,"__info"),image:"".concat(Q,"__image"),text:"".concat(Q,"__text"),title:"".concat(Q,"__title"),description:"".concat(Q,"__description"),details:"".concat(Q,"__details"),buttons:"".concat(Q,"__buttons"),button:"".concat(Q,"__button"),closeButton:"".concat(Q,"__close-button"),mobileActivator:"".concat(Q,"__mobile-activator")}),et=Object.freeze({modal:"".concat(X,"__modal"),desktopCloseButton:"".concat(X,"__desktop-close-button"),mobilePopup:"".concat(X,"__mobile-popup"),mobileContentContainer:"".concat(X,"__mobile-content-container"),mobileCloseButton:"".concat(X,"__mobile-close-button"),mobileDialog:"".concat(X,"__mobile-dialog"),content:"".concat(X,"__content"),image:"".concat(X,"__image"),text:"".concat(X,"__text"),title:"".concat(X,"__title"),description:"".concat(X,"__description"),actions:"".concat(X,"__actions"),primaryActions:"".concat(X,"__primary-actions"),divider:"".concat(X,"__divider"),explanation:"".concat(X,"__explanation"),button:"".concat(X,"__button"),gosuslugiButton:"".concat(X,"__gosuslugi-button"),gosuslugiIcon:"".concat(X,"__gosuslugi-icon")}),en="fu_certificates_access_confirmed",ei="fu_certificates_banner_dismissed",eo="fu_external_link_warning_shown",el=new Map,ea=e=>{if(typeof window>"u")return"1"===el.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===el.get(e)}catch(t){return"1"===el.get(e)}},er=e=>{if(el.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch(e){}},es=(e,t)=>{if(!e)return null;try{let n=new URL(e.toString(),t.href);return"http:"!==n.protocol&&"https:"!==n.protocol||((e,t)=>e===t||"finuslugi.ru"===e||e.endsWith(".finuslugi.ru"))(n.hostname,t.hostname)?null:n}catch(e){return null}},ec={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eu={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ed=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.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 ep(e){let{className:t,style:n,boxSize:i,size:l,onClick:a}=e;return o.createElement("span",{className:t,style:{...ec,...a&&{cursor:"pointer"},...l&&{fontSize:"".concat(l,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},o.createElement(ed,{viewBox:"0 0 24 24",style:eu}))}ep.displayName="IconFdsLocationO";let em=(0,C.g)(),eh=(0,C.a)(em),ef={regions:em,towns:eh,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},eg=(0,o.createContext)(ef);function ew(){return(0,o.useContext)(eg)}let ev=e=>{let{children:t,initialRegion:n,initialTown:l,showStartGeoPopup:a=!0,lastRegionsUpdateUnixTimestamp:r,showcaseUrl:s="",dadataUrl:c=(0,C.d)(s,"/backend/money/dadata"),useNewCitiesApi:u=!1}=e,d=(0,C.e)(u),p=Number((0,C.p)(d.lastRegionsUpdateUnixTimestamp)||0),m=Number(r||0)>p,[h,f]=(0,o.useState)((0,C.g)(u)),g=(0,o.useRef)(h),[{startRegion:w,startTown:v},_]=(0,o.useState)({startRegion:ef.startRegion,startTown:ef.startTown}),x=null!=n?n:ef.region,y=null!=l?l:ef.town,[{region:j,town:k},N]=(0,o.useState)({region:x,town:y}),[I,S]=(0,o.useState)(ef.startPopupVisible),[O,A]=(0,o.useState)(ef.popupVisible),T=(0,o.useRef)(""),R=(0,o.useRef)(!1),E=(0,o.useMemo)(()=>(0,C.a)(h),[h]);(0,o.useEffect)(()=>{g.current=h},[h]);let z=(0,o.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),_({startRegion:e,startTown:t})},[S,_]),$=(0,o.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||z(e,t)},[z]),L=(0,o.useCallback)(()=>{if(T.current&&!j&&!k){var e,t;let n=null!=(e=E.find(e=>e.name===T.current))?e:null;return $(null!=(t=h.find(e=>e.id===(null==n?void 0:n.parentId)))?t:null,n)}$(j,k)},[j,k,E,h,$]),P=(0,o.useCallback)(e=>{A(e)},[A]),B=(0,o.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(d.allRussiaSelected,"1"),window.localStorage.setItem(d.userRegion,""),window.localStorage.setItem(d.userTown,""),(0,C.s)(null,null,u);return}window.localStorage.setItem(d.allRussiaSelected,"0"),window.localStorage.setItem(d.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(d.userTown,JSON.stringify(t)||""),(0,C.s)(e||null,t||null,u)},[d,u]),M=(0,o.useCallback)(e=>{e?(0,C.h)(b.D.icon,"location"):(0,C.h)(b.D.button,(null==k?void 0:k.name)||"Вся Россия"),!a||window.sessionStorage.getItem("start_popup_opened")?P(!0):L()},[a,k,P,L]),U=(0,o.useCallback)((e,t)=>{B(e,t),N({region:e||null,town:t||null}),S(!1),P(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[P,B]),F=()=>{var e,t;let n=null!=(e=(0,C.f)(d.userRegion))?e:(0,C.p)(d.userRegion),i=null!=(t=(0,C.f)(d.userTown))?t:(0,C.p)(d.userTown),o=(0,C.b)(g.current,n,i),l=u&&(0,C.j)(n,i);l&&(R.current=!0),l&&(0,C.c)(o.region,o.town)&&(B(o.region,o.town),R.current=!1),N(o);let r=async e=>{let{coords:{latitude:t,longitude:n}}=e,i="".concat(c,"?lat=").concat(t,"&lon=").concat(n),o=await (0,C.k)(i);null!=o&&o.location&&(T.current=o.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&a)try{navigator.geolocation.getCurrentPosition(r,()=>null)}catch(e){}};return(0,o.useEffect)(()=>{(!(0,C.i)(h,u)||m)&&(0,C.l)({showcaseUrl:s,useNewCitiesApi:u}).then(e=>{e.length<1||f(e)})},[]),(0,o.useEffect)(()=>{if(!u)return;let e=(0,C.b)(h,j,k);R.current&&(0,C.c)(e.region,e.town)&&(B(e.region,e.town),R.current=!1),N(e)},[h,j,B,k,u]),(0,o.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{F(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{F()},0)},[]),(0,i.jsx)(eg.Provider,{value:{regions:h,towns:E,region:j,town:k,startPopupVisible:I,setStartPopupVisible:S,popupVisible:O,handleToggleModal:P,selectCity:U,handleButtonClick:M,startRegion:w,startTown:v},children:t})},e_={"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"},ex=(0,o.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 eb(){return(0,o.useContext)(ex)}let ey=e=>{let[t,n]=(0,o.useState)(!1),[l,a]=(0,o.useState)(!1),[r,s]=(0,o.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:d}=(()=>{let[e,t]=(0,o.useState)(!1),[n,i]=(0,o.useState)(!1),l=(0,o.useRef)(!1),a=e=>{l.current=e,i(e)};return(0,o.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(e_,e)?e_[e]:e_["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((o,r)=>{if(l.current)return void r(Error("chat is already opened"));i?(i.openWidget(),t(!1),o()):(a(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let l=document.querySelector(".webchat");l&&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(l,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),a(!1),t(!1),o()},((e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="".concat(e,"/assets/css/").concat(t),document.head.appendChild(n);let i=document.createElement("script");i.src="".concat(e,"/get-bootstrap/").concat(t),i.defer=!0,document.body.appendChild(i)})(e,n))}),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,m]=(0,o.useState)(null),[h,f]=(0,o.useState)(null),[g,w]=(0,o.useState)(!1),[v,_]=(0,o.useState)(!1),[x,b]=(0,o.useState)(!1),y=(0,o.useRef)(null),C=(0,j.u)(g),N=(0,o.useRef)(null),I=(0,o.useRef)(null),S=(0,o.useRef)(null),O=(0,o.useRef)(null),A=(0,o.useCallback)(()=>{C.current&&C.current.scrollTo({top:0})},[C]),T=(0,o.useCallback)(e=>{f(e),A()},[A]),R=(0,o.useCallback)(e=>{N.current&&clearTimeout(N.current),e&&_(!0),e||(N.current=setTimeout(()=>{_(!1),T(null)},300))},[T]),E=(0,o.useCallback)((e,t,n)=>{if(t&&T(t),!n&&e===p||!e){R(!g),w(!g);return}m(e),R(!0),w(!0)},[p,T,g,R]),z=(0,o.useCallback)(()=>{I.current&&clearTimeout(I.current),b(!0),I.current=setTimeout(()=>{b(!1)},650)},[]);return(0,o.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,k.s)(a,s,e.isMainBannerPage);return(0,k.i)(),t},[]),(0,i.jsx)("header",{children:(0,i.jsx)(ex.Provider,{value:{isAuth:t,isHeaderHidden:l,isHeaderTransparent:r,openedBlock:p,setOpenedBlock:E,openedSection:h,setOpenedSection:T,isNavigationOpen:g,isNavigationMounted:v,navMenuItemsRef:y,navigationRef:C,ignoreClicks:x,setIgnoreClicks:z,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:d,fixedContainerRef:S,headerRef:O},children:e.children})})},eC=(0,y.g)("city-select","sc"),ej=Object.freeze({button:"".concat(eC,"__button"),minimal:"".concat(eC,"__minimal"),full:"".concat(eC,"__full")}),ek=a()(()=>Promise.all([n.e(7150),n.e(6817),n.e(3552),n.e(2545),n.e(7186),n.e(423)]).then(n.bind(n,60423)).then(e=>e.CitySelectModal),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/CitySelectModal-Dhl388Tz.mjs")]},ssr:!1}),eN=a()(()=>n.e(8054).then(n.bind(n,98054)).then(e=>e.StartChoicePopup),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/StartChoicePopup-mFyQ4g8Y.mjs")]},ssr:!1}),eI=e=>{var t;let{initialTown:n}=e,l=ew(),a=(null==(t=l.town)?void 0:t.name)||n||"Вся Россия",{setIsChatModalOpen:r,isChatModalOpen:s}=eb(),{startPopupVisible:c,setStartPopupVisible:u,popupVisible:d}=l,p=K(d),m=K(c),h=(0,o.useRef)();(0,o.useEffect)(()=>{d&&(h.current="popup")},[d]),(0,o.useEffect)(()=>{s&&(h.current="chat")},[s]),(0,o.useEffect)(()=>{c&&(h.current="startPopup")},[c]),(0,o.useEffect)(()=>{h.current&&("chat"===h.current&&c?u(!1):["startPopup","popup"].includes(h.current)&&s&&r(!1))},[d,s,c,u,r]);let f={appearance:"ghost",size:"xs",onClick:()=>l.handleButtonClick(!1),iconLeft:(0,i.jsx)(ep,{size:24})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.$,{...f,className:(0,_.A)(ej.button,ej.full),label:a}),(0,i.jsx)(w.$,{...f,className:(0,_.A)(ej.button,ej.minimal),shape:"icon"}),p&&(0,i.jsx)(ek,{}),m&&(0,i.jsx)(eN,{})]})},eS=e=>{let{label:t,onClick:n,eventActionText:o,eventLabel:l,...a}=e;return(0,i.jsx)(w.$,{label:t,onClick:e=>{null==n||n(e),(0,b.h)({eventCategory:N.H,eventActionType:b.D.button,eventActionText:o||"",eventLabel:l||""})},...a})},eO=e=>{let{onClick:t,eventActionType:n,eventActionText:o,eventLabel:l,...a}=e;return(0,i.jsx)(I.N,{onClick:e=>{null==t||t(e),(0,b.h)({eventCategory:N.H,eventActionType:n||b.D.link,eventActionText:o||"",eventLabel:l||""})},...a})},eA={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eT={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eR=e=>o.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.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 eE(e){let{className:t,style:n,boxSize:i,size:l,onClick:a}=e;return o.createElement("span",{className:t,style:{...eA,...a&&{cursor:"pointer"},...l&&{fontSize:"".concat(l,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},o.createElement(eR,{viewBox:"0 0 24 24",style:eT}))}eE.displayName="IconFdsChevronLeftO";let ez=(0,y.g)("header-chat-modal-body","sc"),e$=Object.freeze({wrapper:"".concat(ez,"__wrapper"),cardButton:"".concat(ez,"__card-button"),card:"".concat(ez,"__card"),cardTitle:"".concat(ez,"__card-title"),cardSubtitle:"".concat(ez,"__card-subtitle"),button:"".concat(ez,"__button")}),eL=()=>{let e=eb();return(0,i.jsxs)("div",{className:e$.wrapper,children:[(0,i.jsx)(eS,{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)(A.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]})},eP=e=>{let{data:t,isMobile:n}=e,l=eb();return(0,i.jsx)("div",{className:M.contentWrapper,children:t.map(e=>(0,i.jsx)(o.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsxs)("div",{className:(0,_.A)(M.content,{[M.hidden]:l.openedSection!==e.id,[M.contentOpen]:!!l.openedSection}),children:[(0,i.jsx)("div",{className:M.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),null==(t=e.content)?void 0:t.map((t,o)=>{var l,a;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,_.A)(M.contentTitle,{[M.removed]:!t.title,[M.contentTitleUrl]:!!t.url,[M.contentTitleLink]:!!e.isSeeAllLinkAvailable,[M.contentTitleNew]:!!t.new}),href:e.isSeeAllLinkAvailable?t.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:M.arrowIcon,children:(0,i.jsx)(T.K,{})}),t.title]})})}),!(null!=(l=t.links)&&l.length)&&(0,i.jsx)(F,{items:t.chips||[],maxNumberOfLines:e.content.length<=1?99:n?3:2}),!!(null!=(a=t.links)&&a.length)&&(0,i.jsx)("div",{className:(0,_.A)(M.links,{[M.linksColumns]:!!t.columns,[M.linksTitleless]:!t.title}),children:t.links.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,k.h)(b.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,i.jsx)("div",{className:M.arrowIcon,children:(0,i.jsx)(T.K,{})}),(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:e.title}),!!e.new&&(0,i.jsx)("span",{className:(0,_.A)({[M.newInline]:!!e.new})})]})]},"".concat(e.url,"_").concat(t)))})]},"".concat(t.url,"_").concat(o))})]},e.id)})},e.id))})},eB=(0,y.g)("navigation-section-icon","sc"),eM=Object.freeze({icon:"".concat(eB)}),eU=()=>n.e(1564).then(n.bind(n,19183)),eF={IconFdsAcademicCapO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsAcademicCapO}),IconFdsBankO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsBankO}),IconFdsBookOpenO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsBookOpenO}),IconFdsCalculatorO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCalculatorO}),IconFdsCardO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCardO}),IconFdsChatDotsCircleO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsChatDotsCircleO}),IconFdsCoinMultipleO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCoinMultipleO}),IconFdsDotsHorizontalO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsDotsHorizontalO}),IconFdsFlashO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsFlashO}),IconFdsGraphO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsGraphO}),IconFdsLayoutHorizontalO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsLayoutHorizontalO}),IconFdsPortfolioO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsPortfolioO}),IconFdsRubleCircleO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsRubleCircleO}),IconFdsSafeO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsSafeO}),IconFdsShieldCheckO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsShieldCheckO}),IconFdsWalletO:()=>eU().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsWalletO})},eD=e=>Object.prototype.hasOwnProperty.call(eF,e),eW=e=>{let{name:t,background:n}=e,[l,a]=(0,o.useState)(null);if((0,o.useEffect)(()=>{if(!t||!eD(t))return void a(null);let e=!0;return eF[t]().then(n=>{e&&a({name:t,component:n})}).catch(()=>{e&&a(null)}),()=>{e=!1}},[t]),!t||!eD(t))return null;let r=(null==l?void 0:l.name)===t?l.component:null;return(0,i.jsx)("div",{className:eM.icon,style:{background:n},children:r&&(0,i.jsx)(r,{})})},eH=(0,y.g)("navigation","sc"),eV=Object.freeze({navigation:"".concat(eH),navigationOpening:"".concat(eH,"--opening"),navigationClosing:"".concat(eH,"--closing"),wrapper:"".concat(eH,"__wrapper"),container:"".concat(eH,"__container"),containerOpen:"".concat(eH,"__container--open"),sections:"".concat(eH,"__sections"),sectionsOpen:"".concat(eH,"__sections--open"),citySelectButton:"".concat(eH,"__city-select-button"),sectionsTitle:"".concat(eH,"__sections-title"),sectionsWrapper:"".concat(eH,"__sections-wrapper"),section:"".concat(eH,"__section"),sectionArrow:"".concat(eH,"__section-arrow"),sectionExtra:"".concat(eH,"__section--extra"),sectionActive:"".concat(eH,"__section--active"),sectionTitle:"".concat(eH,"__section-title"),chatWrapper:"".concat(eH,"__chat-wrapper"),chatHeader:"".concat(eH,"__chat-header"),backButton:"".concat(eH,"__back-button"),useful:"".concat(eH,"__useful"),usefulOpen:"".concat(eH,"__useful--open"),usefulTitle:"".concat(eH,"__useful-title"),usefulGrid:"".concat(eH,"__useful-grid"),removed:"".concat(eH,"__removed")}),eG=e=>{var t;let{data:n}=e,l=eb(),a=ew(),r=(0,O.nu)("m"),[s,c]=(0,o.useState)(!0);(0,o.useEffect)(()=>{c(r)},[r]);let u=(0,o.useRef)(null),d=(0,o.useCallback)(()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>l.openedSection?l.setOpenedSection(null):l.isNavigationOpen?l.setOpenedBlock(null):void 0,50)},[l]),p=(0,o.useRef)(!1),m=(0,o.useRef)(null),h=(0,o.useCallback)(()=>{s&&(p.current=!0,m.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),d()},window.history.pushState(null,"",window.location.href))},[d,s]),f=(0,o.useCallback)(()=>{p.current=!1,window.onpopstate=m.current,window.history.go(-1)},[]),g=(0,o.useRef)(null),x=(0,o.useCallback)(e=>{if(s||!l.navMenuItemsRef.current||!l.navigationRef.current)return;let t=e.target,n=!l.navMenuItemsRef.current.contains(t)&&!l.navigationRef.current.contains(t);if(n&&!g.current){l.setIgnoreClicks(),g.current=setTimeout(()=>l.setOpenedBlock(null),300);return}!n&&g.current&&(clearTimeout(g.current),g.current=null)},[s,l]),y=(0,o.useRef)(null),C=(0,o.useCallback)(e=>{typeof window>"u"||(e?(y.current=x,window.addEventListener("mousemove",y.current)):y.current&&window.removeEventListener("mousemove",y.current))},[x]);(0,o.useEffect)(()=>{C(l.isNavigationOpen),l.isNavigationOpen&&!p.current&&h(),!l.isNavigationOpen&&p.current&&f()},[l.isNavigationOpen]);let j=(e,t)=>()=>{(0,k.h)(b.D.button,t),l.setOpenedSection(e)},{start:I,clear:A}=Z(),T=()=>{s||A()};return(0,i.jsx)("div",{ref:l.navigationRef,className:(0,_.A)(eV.navigation,{[eV.removed]:!l.isNavigationMounted,[eV.navigationOpening]:l.isNavigationOpen,[eV.navigationClosing]:!l.isNavigationOpen}),children:(0,i.jsx)("div",{className:eV.wrapper,children:(0,i.jsxs)(v.m,{className:(0,_.A)(eV.container,{[eV.containerOpen]:!!l.openedSection}),children:[(0,i.jsxs)("div",{className:(0,_.A)(eV.sections,{[eV.sectionsOpen]:!!l.openedSection}),children:[(0,i.jsx)(w.$,{className:eV.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>a.handleButtonClick(!1),iconLeft:(0,i.jsx)(ep,{size:24}),label:(null==(t=a.town)?void 0:t.name)||"Вся Россия"}),n.map(e=>(0,i.jsxs)("ul",{className:(0,_.A)(eV.sectionsWrapper,{[eV.removed]:l.openedBlock!==e.id&&!s}),children:[(0,i.jsx)("div",{className:eV.sectionsTitle,children:N.a[e.id]}),e.sections.map(e=>{let t,n;return(0,i.jsxs)("li",{className:(0,_.A)(eV.section,{[eV.sectionExtra]:!!e.extra,[eV.sectionActive]:l.openedSection===e.id}),onClick:j(e.id,e.title),onMouseEnter:(t=e.id,n=e.title,()=>{s||I(j(t,n),150)}),onMouseLeave:T,children:[l.isNavigationMounted&&(0,i.jsx)(eW,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:eV.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:eV.sectionArrow,children:(0,i.jsx)(S._,{size:24})})]},e.id)})]},e.id)),(0,i.jsxs)("div",{className:eV.chatWrapper,children:[(0,i.jsx)("div",{className:eV.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(eL,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,_.A)(eV.backButton,{[eV.removed]:!l.openedSection}),onClick:()=>{(0,k.h)(b.D.button,"Назад"),l.setOpenedSection(null)},children:[(0,i.jsx)(eE,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(eP,{data:n,isMobile:s}),(0,i.jsxs)("div",{className:(0,_.A)(eV.useful,{[eV.usefulOpen]:!!l.openedSection}),children:[(0,i.jsx)("div",{className:eV.usefulTitle,children:"Полезное на Финуслугах"}),n.map(e=>(0,i.jsx)(o.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsx)("div",{className:(0,_.A)(eV.usefulGrid,{[eV.removed]:l.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>(0,k.h)(b.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:e.icon,srcSet:e.icon2?"".concat(e.icon,", ").concat(e.icon2," 2x"):void 0,alt:e.title,loading:"lazy"})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},"".concat(e.title,"_").concat(t)))},e.id)})},e.id))]})]})})})},eq=a()(()=>n.e(2230).then(n.bind(n,42230)).then(e=>e.CertificatesWarningBanner),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/CertificatesWarningBanner-BPl0-f-t.mjs")]},ssr:!1}),eJ=a()(()=>Promise.all([n.e(8547),n.e(2545),n.e(7186),n.e(3583)]).then(n.bind(n,33583)).then(e=>e.CertificatesWarningPopup),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/CertificatesWarningPopup-CeN5nBOR.mjs")]},ssr:!1}),eY=a()(()=>n.e(7068).then(n.bind(n,97068)).then(e=>e.HeaderMobileAppBanner),{loadableGenerated:{webpack:()=>[require.resolveWeak("../chunks/HeaderMobileAppBanner-C6MgJm_-.mjs")]},ssr:!1}),eK=e=>{let{data:t,showcaseUrl:n="https://finuslugi.ru",minioUrl:l="https://assets.finuslugi.ru/mp-assets",lkUrl:a="https://lk.finuslugi.ru/registration",initialTown:s,isMainBannerPage:c,enableAppHeaderBanner:u=!1,enableCertificatesBanner:m=!1,enableExternalLinkWarning:h=!1,certificatesWarningProduct:f,news:y,className:C}=e,j=eb(),I=(0,o.useMemo)(()=>((e,t,n)=>{var i,o,l,a,r,s,c,u;let d=null!=(u=null==(o=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:o.call(i,e=>{let{id:t}=e;return"news"===t}))?u:-1,p=(null==(a=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l[d])?void 0:a.content)||[];if(null!=(c=null==(s=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[d])?void 0:s.content)&&c[0]&&Array.isArray(n)&&p.length){let i=n.map(e=>{let{title:n,url:i}=e;return{title:n,url:(0,x.oq)(t||"",i),new:0}});e.NAVIGATOR[d].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:[]}]})(t,n,y),[t,n,y]),S=null==t?void 0:t.config,O=!!t&&m&&!!c,A=(e=>{let{enableCertificatesBanner:t,enableExternalLinkWarning:n,isMainBannerPage:i}=e,[l,a]=(0,o.useState)("checking"),[r,s]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(!1),f=(0,o.useRef)(),g=(0,o.useRef)(!1),w=(0,o.useRef)(!1),v=(0,o.useRef)(!1);(0,o.useRef)(null);let _=(0,o.useRef)(null),x=(0,o.useRef)(null),b=(0,o.useRef)(null),y=t&&i,C=y||n,j=(0,o.useCallback)(e=>{let t=f.current;if(t)return void t.call(window,e,"_blank","noopener,noreferrer");window.open(e,"_blank","noopener,noreferrer")},[]),k=(0,o.useCallback)(()=>{s(!1),v.current=!1,_.current=null,x.current=null,b.current=null,h(!1)},[]),N=(0,o.useCallback)(e=>{er(eo),w.current=!0,v.current=!1,_.current=e,h("external"===e&&null!==x.current),s(!0)},[]),I=(0,o.useCallback)(()=>!g.current&&("external"===_.current&&!v.current||!w.current),[]),S=(0,o.useCallback)(()=>{"external"!==_.current&&N("external")},[N]);(0,o.useEffect)(()=>{f.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&er(en),g.current=e||ea(en),w.current=ea(eo),p(g.current),u(!0),()=>{x.current=null,b.current=null}},[]),(0,o.useEffect)(()=>{if(c){if(!y)return void a("skipped");a(e=>"shown"===e||"closing"===e||"dismissed"===e?e:d||ea(ei)?"skipped":"shown")}},[d,y,c]),(0,o.useEffect)(()=>{},[k,C,c]),(0,o.useEffect)(()=>{if(!c||!n)return;let e=f.current;if(!e)return;let t=!0,i=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let n=e.target.closest("a[href]");if(!n||e.defaultPrevented)return;let i=es(n.href,window.location);if(!i||!I())return;e.preventDefault(),null===x.current&&(x.current=i.href,b.current={source:"external_anchor",host:i.hostname});let o=x.current;queueMicrotask(()=>{t&&I()&&x.current===o&&S()})},o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",i=arguments.length>2?arguments[2]:void 0,o=es(t,window.location);return o&&I()?(null===x.current&&(x.current=o.href,b.current={source:"external_window_open",host:o.hostname}),S(),null):e.call(window,t,n,i)};return window.open=o,document.addEventListener("click",i,!0),document.addEventListener("auxclick",i,!0),()=>{t=!1,document.removeEventListener("click",i,!0),document.removeEventListener("auxclick",i,!0),window.open===o&&(window.open=e)}},[n,c,I,S]),(0,o.useEffect)(()=>{var e;n||(x.current=null,(null==(e=b.current)?void 0:e.source)!=="banner"&&(b.current=null),h(!1),"external"===_.current&&k())},[k,n]),(0,o.useEffect)(()=>{y||"banner"===_.current&&k()},[k,y]),(0,o.useEffect)(()=>{C||k()},[k,C]);let O=(0,o.useCallback)(()=>{er(ei),a("closing")},[]),A=(0,o.useCallback)(()=>{a("dismissed")},[]),T=(0,o.useCallback)(()=>{x.current=null,b.current={source:"banner"},N("banner")},[N]),R=(0,o.useCallback)(()=>{j("https://www.gosuslugi.ru/crt")},[j]),E=(0,o.useCallback)(()=>{j("https://browser.yandex.ru/")},[j]),z=(0,o.useCallback)(()=>{let e=x.current;e&&(er(eo),w.current=!0,v.current=!0,j(e))},[j]);return{bannerStatus:l,isPopupOpen:r,popupAnalyticsContext:b.current,dismissBanner:O,finishBannerClosing:A,openPopupFromBanner:T,closePopup:k,openCertificatesPage:R,openYandexBrowserPage:E,continueToExternalPage:m?z:void 0}})({enableCertificatesBanner:O,enableExternalLinkWarning:h,isMainBannerPage:!!c}),T="shown"===A.bannerStatus||"closing"===A.bannerStatus,R=!O||"skipped"===A.bannerStatus,E=K(A.isPopupOpen),z=(0,o.useMemo)(()=>I.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[I]),$=j.isAuth?"Личный кабинет":"Войти",L=c&&j.isHeaderTransparent,P=(e,t,n,i)=>()=>{e!==j.openedBlock?(0,k.h)(b.D.toggle,t,"on"):(0,k.h)(b.D.button,"menu_close","on");let o=n?z[e]:"";j.setOpenedBlock(e,o,!!i)},{start:B,clear:M}=Z(),U=e=>()=>{j.ignoreClicks||e()},F=E?(0,i.jsx)(eJ,{isOpen:A.isPopupOpen,analyticsContext:A.popupAnalyticsContext,certificatesWarningProduct:f,onClose:A.closePopup,onOpenCertificatesPage:A.openCertificatesPage,onOpenYandexBrowserPage:A.openYandexBrowserPage,onContinue:A.continueToExternalPage}):null;return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:j.headerRef,className:(0,_.A)(N.s.header,C,{[N.s.transparent]:L}),children:(0,i.jsxs)("div",{ref:j.fixedContainerRef,className:(0,_.A)(N.s.fixed,{[N.s.hidden]:j.isHeaderHidden,[N.s.navigationOpen]:j.isNavigationOpen}),children:[T&&(0,i.jsx)(eq,{onDismiss:A.dismissBanner,onClosed:A.finishBannerClosing,onOpenDetails:A.openPopupFromBanner,onOpenCertificatesPage:A.openCertificatesPage,onOpenYandexBrowserPage:A.openYandexBrowserPage}),R&&!!(null!=S&&S.appBannerUrl)&&u&&(0,i.jsx)(eY,{mobileAppUrl:S.appBannerUrl,minioUrl:l}),(0,i.jsxs)(v.m,{className:N.s.container,children:[(0,i.jsxs)("div",{className:N.s.leftRow,children:[(0,i.jsx)(eO,{className:N.s.logo,href:n,eventActionType:b.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(n),children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,x.oq)(l,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{src:(0,x.oq)(l,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,i.jsx)("nav",{ref:j.navMenuItemsRef,className:N.s.menuItems,children:(0,i.jsx)("ul",{children:N.b.map(e=>{let{id:t,label:n}=e;return(0,i.jsx)("li",{children:(0,i.jsx)(w.$,{className:(0,_.A)({[N.s.menuItemActive]:j.openedBlock===t&&j.isNavigationOpen}),label:n,variant:"white",size:"xs",onClick:U(P(t,n,!0)),onMouseEnter:((e,t,n,i)=>()=>{j.isNavigationOpen&&e===j.openedBlock||j.setIgnoreClicks(),B(P(e,t,n,i),200)})(t,n,!0,!0),onMouseLeave:M})},t)})})}),(0,i.jsx)(eS,{className:(0,_.A)(N.s.tabletMenuButton,{[N.s.menuItemActive]:j.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(d,{size:24}),onClick:P("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:(0,_.A)(N.s.buttonGroup,{[N.s.whiteIcons]:(null==S?void 0:S.iconColorOnMobileMainBanner)==="white"}),children:[(0,i.jsxs)("div",{className:N.s.chips,children:[(0,i.jsx)(eS,{as:"a",href:a,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:"profile_".concat(a),iconLeft:(0,i.jsx)(g,{size:20}),"aria-label":$}),(0,i.jsx)(eS,{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)(r.G,{size:24}),"aria-label":"Онлайн чат"})]}),(0,i.jsx)(eS,{className:N.s.menuButton,size:"xs",shape:L?"icon":"default",appearance:L?"ghost":"fill",label:"Меню",onClick:P("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(Y,{size:24})}),(0,i.jsxs)("div",{className:N.s.moreButtons,children:[(0,i.jsx)(eI,{initialTown:s}),(0,i.jsx)(eS,{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)(V,{size:24}),children:"Онлайн чат"}),(0,i.jsx)(eS,{as:"a",href:a,size:"xs",eventActionText:$,eventLabel:"".concat($,"_").concat(a),label:$})]})]}),(0,i.jsxs)(eO,{className:N.s.auth,href:a,eventActionText:$,eventLabel:"".concat($,"_").concat(a),children:[(0,i.jsx)(eS,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(g,{}),eventActionText:$,eventLabel:"".concat($,"_").concat(a)}),(0,i.jsx)("p",{children:$})]}),(0,i.jsx)("div",{className:N.s.close,children:(0,i.jsx)(eS,{className:N.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(p.a,{}),onClick:()=>j.setOpenedBlock(null),eventActionText:"IconFdsCloseO","aria-label":"Закрыть"})})]})]})}),(0,i.jsx)("div",{className:(0,_.A)(N.s.overlay,{[N.s.removed]:!j.isNavigationMounted,[N.s.overlayOpening]:j.isNavigationOpen,[N.s.overlayClosing]:!j.isNavigationOpen}),onClick:U(()=>j.setOpenedBlock(null))}),(0,i.jsx)(eG,{data:I,minioUrl:l}),F]}):h?F:null},eZ=e=>(0,i.jsx)(ey,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(eK,{...e})})},56053:(e,t,n)=>{"use strict";n.d(t,{F:()=>u,H:()=>r,U:()=>l,a:()=>c,b:()=>s,c:()=>a,s:()=>o});let i=(0,n(7596).g)("header","sc"),o=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`}),l="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})},56207:()=>{},63114:(e,t,n)=>{"use strict";n.d(t,{C:()=>h,P:()=>j,U:()=>b,u:()=>d});var i=n(95155),o=n(12115),l=n(16311),a=n(29722),r=n(17966),s=n(7596),c=n(47650);let u=300,d=({opened:e})=>{let[t,n]=(0,o.useState)(!1),i=(0,o.useRef)(null),l=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(e&&!l.current?(l.current=!0,n(!0)):!e&&l.current&&(i.current=setTimeout(()=>{l.current=!1,n(!1)},u)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},p=(0,s.g)("click-outside","sc"),m=Object.freeze({overlay:`${p}__overlay`,open:`${p}--open`,close:`${p}--close`}),h=({onClose:e,onToucheMove:t,isOpen:n,delay:l=u})=>{let r=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{e&&(r.current=setTimeout(()=>{e()},l))},[l,e]),c=(0,o.useCallback)(e=>{"Escape"===e.key&&s()},[s]);return(0,o.useEffect)(()=>(n&&window.addEventListener("keydown",c),()=>{r.current&&clearTimeout(r.current),window.removeEventListener("keydown",c)}),[n,c]),(0,i.jsx)("div",{className:(0,a.A)(m.overlay,{[m.open]:n,[m.close]:!n}),onTouchStart:t,onClick:s})},f=(0,s.g)("mobile-modal-footer","sc"),g=Object.freeze({footer:`${f}__footer`,footerWithoutShadow:`${f}__footer--without-shadow`}),w=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,i.jsx)("div",{className:(0,a.A)(g.footer,t&&g.footerWithoutShadow,n),children:"function"==typeof e?e():e}),v=(0,s.g)("mobile-popup","sc"),_=Object.freeze({mobilePopup:`${v}`,mobilePopupOpen:`${v}--open`,content:`${v}__content`,contentFull:`${v}__content--full`,contentTransition:`${v}__content--transition`,contentTransitionOpen:`${v}__content--transition-open`,contentLine:`${v}__content-line`,contentContainer:`${v}__content-container`,smallContentContainer:`${v}__content-container--small`,min:`${v}__content-container--min`,title:`${v}__title`,closeContainer:`${v}__close-container`,closeButton:`${v}__close-button`}),x=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:c,hasCloseButton:u=!0,full:d,touchDistance:p=100,withDisabledScroll:m=!0,contentClassName:f,className:g,title:v,closeButton:x,footerClassName:b})=>{let[y,C]=(0,o.useState)(!1),[j,k]=(0,o.useState)(!1),[N,I]=(0,o.useState)(!0),[S,O]=(0,o.useState)("120%"),A=(0,o.useRef)(null),T=(0,o.useRef)(0),R=(0,o.useRef)(!1),E=e=>{var t,n,i;let o=null==(t=A.current)?void 0:t.offsetTop,l=null==(n=A.current)?void 0:n.offsetHeight;if(R.current=!0,I(!1),o&&l){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-o,n=0;t>=0&&t<=l+30&&(n=t),t>l+30&&(n=l+30),O(`${n}px`),T.current=n}},z=()=>{R.current&&(T.current>p&&c?null==c||c():O("0"),I(!0),R.current=!1),window.removeEventListener("touchmove",E),window.removeEventListener("touchend",z)};return(0,o.useEffect)(()=>{n&&setTimeout(()=>{C(!0),k(!0),O("0")},100),!n&&j&&(O("120%"),C(!1),k(!1))},[j,n]),(0,r.u)(n&&m),(0,i.jsxs)("div",{"data-portal":!0,className:(0,a.A)(_.mobilePopup,j&&_.mobilePopupOpen,g),children:[(0,i.jsx)(h,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(C(!1),window.addEventListener("touchmove",E),window.addEventListener("touchend",z))},isOpen:n,delay:0}),(0,i.jsxs)("div",{className:(0,a.A)(_.content,d&&_.contentFull,N&&_.contentTransition,N&&y&&_.contentTransitionOpen),ref:A,style:{transform:`translateY(${S})`},children:[(0,i.jsx)("div",{className:_.contentLine}),(0,i.jsxs)("div",{className:(0,a.A)(_.contentContainer,s&&_.smallContentContainer,{[_.min]:!v&&!u},f),children:[!!v&&(0,i.jsx)("div",{className:_.title,children:v}),u?(0,i.jsx)("div",{className:_.closeContainer,children:u?x?"function"==typeof x?x():x:(0,i.jsx)("button",{onClick:c,className:_.closeButton,children:(0,i.jsx)(l.a,{size:24})}):null}):null,e]}),t&&(0,i.jsx)(w,{footerClassName:b,isSmallPopup:s,footer:t})]})]})},b=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...o})=>{let{mounted:l}=d({opened:n});return l?(0,i.jsx)(x,{isSmallPopup:t,isOpen:n,...o,children:e}):null};b.displayName="UiMobilePopup";let y="data-portal-users",C=e=>Number(e.getAttribute(y)??0),j=({children:e,id:t="portal-root"})=>{let[n,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=document.getElementById(t);if(e&&!e.hasAttribute(y))return void i(e);let n=e??document.body.appendChild(document.createElement("div"));return n.id=t,n.setAttribute(y,String(C(n)+1)),i(n),()=>{let e=C(n)-1;n.setAttribute(y,String(e)),e>0||n.remove()}},[t]),n?(0,c.createPortal)(e,n):null}},63938:()=>{},66806:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var i=n(12115);let o={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},l={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:r,onClick:s}){return i.createElement("span",{className:e,style:{...o,...s&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:l}))}r.displayName="IconFdsChatDotsCircleO"},68635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let i=n(95155),o=n(12115),l=n(41112);function a(e){return{default:e&&"default"in e?e.default:e}}n(21957);let r={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},s=function(e){let t={...r,...e},n=(0,o.lazy)(()=>t.loader().then(a)),s=t.loading;function c(e){let a=s?(0,i.jsx)(s,{isLoading:!0,pastDelay:!0,error:null}):null,r=!t.ssr||!!t.loading,c=r?o.Suspense:o.Fragment,u=t.ssr?(0,i.jsxs)(i.Fragment,{children:[null,(0,i.jsx)(n,{...e})]}):(0,i.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,i.jsx)(n,{...e})});return(0,i.jsx)(c,{...r?{fallback:a}:{},children:u})}return c.displayName="LoadableComponent",c}},72004:(e,t,n)=>{"use strict";n.d(t,{D:()=>_});var i=n(95155),o=n(63114),l=n(12115),a=n(29722),r=n(17966),s=n(16311),c=n(7596);let u=(0,c.g)("drawer-footer","sc"),d=Object.freeze({footer:`${u}__footer`,hasScroll:`${u}__footer--has-scroll`}),p=({footer:e,hasScroll:t,className:n})=>(0,i.jsx)("div",{className:(0,a.A)(d.footer,{[d.hasScroll]:t},n),children:"function"==typeof e?e():e}),m=(0,c.g)("drawer-content","sc"),h=Object.freeze({container:`${m}__container`,open:`${m}--open`,close:`${m}--close`,header:`${m}__header`,rowHeader:`${m}__header--row`,title:`${m}__title`,center:`${m}__title--center`,left:`${m}__title--left`,right:`${m}__title--right`,controlContainer:`${m}__control-container`,content:`${m}__content`,footer:`${m}__footer`}),f=({onClose:e,onContentClick:t,children:n,title:o,rowTitle:r,titleAlign:c,isCloseable:u,footer:d,closeButton:m,isOpen:f,contentClassName:g,footerClassName:w,contentStyle:v,width:_})=>{let x=(0,l.useRef)(null),b=(0,l.useRef)(null),[y,C]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e;if(!b.current||!x.current)return;let t=(null==(e=null==b?void 0:b.current)?void 0:e.getBoundingClientRect().top)||0,n=null==x?void 0:x.current,i=()=>{let e=null==b?void 0:b.current;e&&C(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",i,!1),()=>{null==n||n.removeEventListener("scroll",i,!1)}},[]);let j=v||_?{width:_,...v||{}}:void 0;return(0,i.jsxs)("div",{ref:x,style:j,className:(0,a.A)(h.container,{[h.open]:f,[h.close]:!f},g),children:[o||u?(0,i.jsxs)("div",{className:(0,a.A)(h.header,{[h.rowHeader]:r}),children:[u?m?"function"==typeof m?m():m:(0,i.jsx)("button",{type:"button",className:h.controlContainer,onClick:e,children:(0,i.jsx)(s.a,{size:24})}):null,o?(0,i.jsx)("h3",{className:(0,a.A)(h.title,{[h[c]]:!0}),children:o}):null]}):null,(0,i.jsx)("div",{ref:b,className:h.content,onClick:t,children:n}),d&&(0,i.jsx)(p,{className:(0,a.A)(h.footer,w),footer:d,hasScroll:y})]})},g=(0,c.g)("drawer-layout","sc"),w=Object.freeze({window:`${g}__window`}),v=({onClose:e,isOpen:t,children:n,withDisabledScroll:s,className:c,...u})=>{let d=(0,l.useCallback)(e=>e.stopPropagation(),[]);return(0,r.u)(t&&s),(0,i.jsxs)("div",{"data-portal":!0,className:(0,a.A)(w.window,c),children:[(0,i.jsx)(o.C,{onClose:e,isOpen:t,delay:0}),(0,i.jsx)(f,{onContentClick:d,onClose:e,isOpen:t,...u,children:n})]})},_=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:a=!0,...r})=>{let{mounted:s}=(0,o.u)({opened:e});return s?(0,i.jsx)(v,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:a,...r,children:t}):null};_.displayName="Drawer"},73321:(e,t,n)=>{"use strict";var i=n(74645);n.o(i,"usePathname")&&n.d(t,{usePathname:function(){return i.usePathname}}),n.o(i,"useSearchParams")&&n.d(t,{useSearchParams:function(){return i.useSearchParams}})},75707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let i=n(73623)._(n(68635));function o(e,t){var n;let o={};"function"==typeof e&&(o.loader=e);let l={...o,...t};return(0,i.default)({...l,modules:null==(n=l.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91265:()=>{},94344:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var i=n(12115);let o={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},l={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:r,onClick:s}){return i.createElement("span",{className:e,style:{...o,...s&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.createElement(a,{viewBox:"0 0 24 24",style:l}))}r.displayName="IconFdsChevronRightSmallO"}}]);