(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[500],{16456:function(e,t,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n.d(t,{default:function(){return s}});var o=n(2265),r=n(69362);function s(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl-docs.vercel.app/docs/configuration#locale");return o.createElement(r.IntlProvider,i({locale:t},n))}},38068:function(){},69696:function(){},76583:function(){},27565:function(){},86034:function(){},97960:function(e,t,n){"use strict";n.d(t,{TagManagerNoscript:function(){return s},TagManagerScript:function(){return r}});var i=n(48667),o=n(2265);function r(e){let{mtmURL:t,mtmID:n,ytmID:r,autoInit:s=!0,isolated:l=!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})}}),!l&&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:r})}}),s&&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 s(e){let{mtmURL:t,mtmID:n,ytmID:i,isolated:r=!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})}}),!r&&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})}}))}},52848:function(e,t,n){"use strict";let i;n.d(t,{F:function(){return q}});var o=n(57437),r=n(35563),s=n(61994),l=n(77337),a=n(52074),c=n(75461),u=n(49750),d=n(80684),p=n(2265),m=n(94246);let h=(0,a.g)("footer-contacts-block","sc"),v=Object.freeze({contactsWrapper:`${h}__contacts-wrapper`,gray:`${h}__gray`,phones:`${h}__phones`,contactsButtons:`${h}__contacts-buttons`,vkIcon:`${h}__vk-icon`,tgIcon:`${h}__tg-icon`,dzenIcon:`${h}__dzen-icon`,maxIcon:`${h}__max-icon`,link:`${h}__link`}),g=(0,a.g)("footer","sc"),f=Object.freeze({wrapper:`${g}__wrapper`,section:`${g}__section`,container:`${g}__container`,top:`${g}__top`,main:`${g}__main`,links:`${g}__links`,disclaimer:`${g}__disclaimer`,bottom:`${g}__bottom`,bottomLinks:`${g}__bottom-links`,bottomDisclaimer:`${g}__bottom-disclaimer`,compact:`${g}__wrapper--compact`,white:`${g}__wrapper--white`}),w="finkit-widgets-sc-footer",_=[{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"}],x=[..._,{title:"Онлайн чат",url:void 0}],b=[{type:"vk",className:v.vkIcon,iconName:"vk"},{type:"telegramChannel",className:v.tgIcon,iconName:"telegram"},{type:"dzen",className:v.dzenIcon,iconName:"dzen"},{type:"max",className:v.maxIcon,iconName:"max"}],j=(0,o.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,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Группа \xabМосковская Биржа\xbb - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),y=({onClick:e,eventActionText:t,eventLabel:n,...i})=>(0,o.jsx)(c.zx,{onClick:i=>{null==e||e(i),(0,u.h)({eventCategory:w,eventActionType:u.D.button,eventActionText:t||"",eventLabel:n})},...i}),k=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:i,chat:r,...s})=>(0,o.jsx)(c.rU,{onClick:o=>{var s,l,a;null==e||e(o),r&&(null==o||o.preventDefault(),null==(a=null==(l=null==(s=null==window?void 0:window.supportWidget)?void 0:s.craftTalk)?void 0:l.open)||a.call(l)),(0,u.h)({eventCategory:w,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:i})},...s}),N=({minioUrl:e,blogs:t})=>(0,o.jsxs)("div",{className:v.contactsWrapper,children:[(0,o.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,o.jsx)("div",{className:v.phones,children:x.map(({title:e,url:t})=>(0,o.jsx)(k,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,o.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:v.contactsButtons,children:b.map(({type:n,className:i,iconName:r})=>(0,o.jsx)(y,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:i,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,l.xn)(e,`/widgets/footer/${r}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:null==t?void 0:t[n]},n))}),(0,o.jsx)(r.xv,{className:v.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:v.contactsButtons,children:(0,o.jsxs)(k,{href:null==t?void 0:t.investTg,target:"_blank",className:v.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,o.jsx)(y,{className:v.tgIcon,iconRight:(0,o.jsx)("img",{width:24,height:24,src:(0,l.xn)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),C=(0,a.g)("footer-disclaimer","sc"),$=Object.freeze({disclaimer:`${C}`}),S=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,u.h)({eventCategory:w,eventActionType:u.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,o.jsx)("div",{className:(0,s.Z)(e.className,$.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,s.Z)(e.className,$.disclaimer),onClick:t,children:e.children})},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},I=(e="")=>{let[t,n]=(0,p.useState)(e);return(0,p.useEffect)(()=>{let t=T();if(!t||0===t.size)return;let[i,o=""]=e.split("?"),r=new URLSearchParams(o);t.forEach((e,t)=>{r.has(t)||r.set(t,e)});let s=r.toString();n(s?`${i}?${s}`:i)},[e]),t},O=(0,a.g)("footer-modal-body","sc"),A=Object.freeze({wrapper:`${O}__wrapper`,title:`${O}__title`,item:`${O}__item`,label:`${O}__label`,button:`${O}__button`,description:`${O}__description`}),L=({directions:e})=>(0,o.jsxs)("div",{className:A.wrapper,children:[(0,o.jsx)("div",{className:A.title,children:"Направления"}),e.map(e=>(0,o.jsxs)(k,{className:A.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,o.jsxs)("div",{className:A.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)(y,{className:A.button,iconRight:(0,o.jsx)(d.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:A.description,children:e.description})]},e.url))]}),R=(0,a.g)("footer-popup","sc"),E=Object.freeze({wrapper:`${R}__wrapper`,button:`${R}__button`,icon:`${R}__icon`,buttonWrapper:`${R}__button-wrapper`}),z=({directions:e})=>{let t=(0,c._m)("l"),[n,i]=(0,p.useState)(!1),r=()=>{i(!1)};return(0,o.jsxs)("div",{className:E.wrapper,children:[(0,o.jsx)("div",{className:E.buttonWrapper,children:(0,o.jsx)(y,{className:E.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,o.jsx)("div",{className:E.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,o.jsx)("div",{},e))})})}),(0,o.jsxs)(m.P,{children:[!t&&(0,o.jsx)(m.U,{isOpen:n,onClose:r,full:!0,children:(0,o.jsx)(L,{directions:e})}),t&&(0,o.jsx)(m.D,{isOpen:n,onClose:r,width:"804px",children:(0,o.jsx)(L,{directions:e})})]})]})},P=(0,a.g)("footer-left-column","sc"),U=Object.freeze({leftColumn:`${P}__left-column`,logoWrapper:`${P}__logo-wrapper`,banner:`${P}__banner`,mobAppLink:`${P}__mob-app-link`,br:`${P}__br`}),D=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:i})=>{let s=I(i);return(0,o.jsxs)("div",{className:U.leftColumn,children:[(0,o.jsx)(k,{className:U.logoWrapper,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,o.jsx)("img",{src:(0,l.xn)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,o.jsx)(z,{directions:n??[]}),(0,o.jsx)(k,{href:s,target:"_blank",eventActionType:u.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:s,className:U.mobAppLink,children:(0,o.jsxs)(r.Zb,{className:U.banner,children:[(0,o.jsxs)(r.xv,{weight:"medium",children:["Управляйте финансами",(0,o.jsx)("br",{}),"через приложение",(0,o.jsx)("br",{className:U.br})," Финуслуг"]}),(0,o.jsx)(y,{iconRight:(0,o.jsx)(d.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcSet:(0,l.xn)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,l.xn)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},B=(0,a.g)("footer-logo","sc"),M=Object.freeze({wrapper:`${B}__wrapper`,link:`${B}__link`,fromMoex:`${B}__from-moex`,logo:`${B}__logo`,white:`${B}__wrapper--white`}),W=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,o.jsx)("div",{className:(0,s.Z)(M.wrapper,{[M.white]:n}),children:(0,o.jsxs)(k,{className:M.link,href:e,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,o.jsx)("img",{className:M.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,o.jsx)("img",{className:M.fromMoex,src:`${t}/images/fromMoex.svg`})]})});var F=((i=F||{}).BLACK="black",i.GRAY="gray",i);let Z=(0,a.g)("footer-warning","sc"),H=Object.freeze({reservedSpace:`${Z}__reserved-space`,wrapper:`${Z}__wrapper`,wrapperGray:`${Z}__wrapper--gray`,fixed:`${Z}__wrapper--fixed`,container:`${Z}__container`,text:`${Z}__text`,invisibleText:`${Z}__text--invisible`}),V=({text:e,variant:t,fixed:n,isPlaceholder:i})=>(0,o.jsx)("div",{className:(0,s.Z)(H.wrapper,{[H.wrapperGray]:"gray"===t,[H.fixed]:n&&!i}),children:(0,o.jsx)(r.W2,{className:H.container,children:(0,o.jsx)("div",{className:(0,s.Z)(H.text,{[H.invisibleText]:i}),dangerouslySetInnerHTML:{__html:e}})})}),G=({warning:e})=>{let t="string"==typeof e?{text:e}:e,n={text:t.text,fixed:t.fixed??!0,variant:t.variant??F.BLACK};return(0,o.jsxs)("div",{className:H.reservedSpace,children:[(0,o.jsx)(V,{...n,isPlaceholder:n.fixed}),n.fixed&&(0,o.jsx)(V,{...n,fixed:!0})]})},q=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:i,variant:l="default",className:a})=>{var c,u;let d=!i&&null!=e&&e.disclaimer?e.disclaimer:void 0,p=l.includes("compact"),m=l.includes("white"),h=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(p?_:[]),v=e&&"warning"in e?e.warning:void 0;return e?(0,o.jsx)("footer",{className:(0,s.Z)(f.wrapper,a,{[f.compact]:p,[f.white]:m}),children:(0,o.jsxs)("section",{className:f.section,children:[(0,o.jsxs)(r.W2,{className:f.container,children:[!p&&(0,o.jsx)(D,{showcaseUrl:t,minioUrl:n,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,o.jsx)("div",{className:f.wrapper,children:(0,o.jsxs)("div",{className:f.top,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:f.main,children:[!p&&(0,o.jsx)("div",{className:f.links,children:null==(u=null==e?void 0:e.top)?void 0:u.map(e=>(0,o.jsx)(k,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),p&&(0,o.jsx)(W,{showcaseUrl:t,minioUrl:n,isWhite:m}),(0,o.jsx)(S,{className:f.disclaimer,disclaimer:d,children:i||j})]}),(0,o.jsxs)("div",{className:f.bottom,children:[(0,o.jsx)("div",{className:f.bottomLinks,children:null==h?void 0:h.map(e=>(0,o.jsx)(k,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,o.jsx)(S,{className:f.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!p&&(0,o.jsx)(N,{minioUrl:n,blogs:null==e?void 0:e.blogs})]})})]}),p&&!!v&&(0,o.jsx)(G,{warning:v})]})}):null}},21395:function(e,t,n){"use strict";n.d(t,{C:function(){return J},H:function(){return eM}});var i=n(57437),o=n(2265),r=n(80684),s=n(35563),l=n(75461),a=n(61994),c=n(77337),u=n(49750),d=n(94246),p=n(52074);let m=(0,p.g)("header","sc"),h=Object.freeze({header:`${m}`,fixed:`${m}__fixed`,hidden:`${m}__fixed--hidden`,transparent:`${m}--transparent`,navigationOpen:`${m}__navigation-open`,container:`${m}__container`,leftRow:`${m}__left-row`,logo:`${m}__logo`,menuItems:`${m}__menu-items`,menuItemActive:`${m}__menu-item-active`,tabletMenuButton:`${m}__tablet-menu-button`,buttonGroup:`${m}__button-group`,chips:`${m}__chips`,menuButton:`${m}__menu-button`,moreButtons:`${m}__more-buttons`,auth:`${m}__auth`,whiteIcons:`${m}__white-icons`,close:`${m}__close`,removed:`${m}__removed`,overlay:`${m}__overlay`,overlayOpening:`${m}__overlay--opening`,overlayClosing:`${m}__overlay--closing`}),v="user_region",g="user_town",f="cb-header",w=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],_=w.reduce((e,t)=>(e[t.id]=t.label,e),{}),x=Object.freeze({mobile:56,desktop:80});var b=n(55487);let j=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),o=!1,r=0,s=0,l=()=>window.innerWidth<768,a=l(),c=()=>window.scrollY||document.documentElement.scrollTop,u=()=>{let e=document.querySelector(":root");e&&(s=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height")),r=c())},d=()=>{let e=l();e!==a&&(a=e,s=0)},p=function(){let l=c(),a=document.getElementById("headerNotice"),d=null==a?void 0:a.getAttribute("data-opening");if("true"===d)return;s||u();let p=l<s,m=l<((null==i?void 0:i.clientHeight)||0);if(n&&m||p){o=!1,e(!1),t(!0);return}e(o=l>r),o&&setTimeout(()=>t(!1),50);let h=o?"0px":"false"===d?`${s}px`:"";document.documentElement.style.setProperty("--new-header-height-desktop",h),document.documentElement.style.setProperty("--new-header-height-mobile",h),r=l<=0?0:l};return window.addEventListener("scroll",p),window.addEventListener("resize",d),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",d)}},y=()=>{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},k=()=>document.cookie.split(";").some(e=>e.trim().startsWith("utm_params=")),N=(e,t,n)=>{let i=new Date;i.setTime(i.getTime()+864e5*n);let o=encodeURIComponent(JSON.stringify(t)),r=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${o};expires=${i.toUTCString()};path=/;SameSite=Lax${r}`},C=()=>{let e=y();e&&!k()&&N("utm_params",e,90),e&&N("utm_last",e,90)},$=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{C()}catch(e){console.error("UTM tracking error:",e)}},0)},S=(e,t,n)=>(0,u.h)({eventCategory:f,eventActionType:e,eventActionText:t,eventLabel:n}),T=(0,p.g)("navigation-chips","sc"),I=Object.freeze({wrapper:`${T}__wrapper`,gray:`${T}__variantGray`,white:`${T}__variantWhite`,container:`${T}__container`,chip:`${T}__chip`,more:`${T}__chip--more`,active:`${T}__chip--active`,label:`${T}__label`,hidden:`${T}__hidden`}),O=(0,p.g)("navigation-content","sc"),A=Object.freeze({contentWrapper:`${O}__content-wrapper`,content:`${O}__content`,contentOpen:`${O}__content--open`,contentHeader:`${O}__content-header`,contentTitle:`${O}__content-title`,contentTitleUrl:`${O}__content-title--url`,contentTitleLink:`${O}__content-title--link`,contentTitleNew:`${O}__content-title--new`,new:`${O}__new`,vip:`${O}__vip`,arrowIcon:`${O}__arrow-icon`,links:`${O}__links`,linksColumns:`${O}__links--columns`,linksTitleless:`${O}__links--titleless`,removed:`${O}__removed`,hidden:`${O}__content--hidden`}),L=({chip:e,hidden:t,onClick:n,refCallback:o,activeChipId:s})=>{let l=!!n,c=()=>{if(l)return null==n?void 0:n(e.url);S(u.D.chip,e.title,`${e.title}_${e.url}`)},d=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:I.label,children:e.title}),e.arrow&&(0,i.jsx)(r.IconFdsArrowUpRightSmallO,{size:24})]}),p=(0,a.Z)(I.chip,{[I.hidden]:t,[A.new]:!!e.new,[A.vip]:!!e.vip,[I.active]:e.url===s});return l?(0,i.jsx)("button",{type:"button",className:p,onClick:c,ref:o,children:d}):(0,i.jsx)("a",{href:e.url,className:p,onClick:c,ref:o,children:d})},R=({items:e=[],maxNumberOfLines:t,variant:n,className:s,activeChipId:l,onClick:c})=>{let d=(0,o.useRef)(null),p=(0,o.useRef)(null),m=(0,o.useRef)({}),[h,v]=(0,o.useState)(!1),[g,f]=(0,o.useState)(e.length),[w,_]=(0,o.useState)(!1);(0,o.useMemo)(()=>{let t=m.current;e.forEach(e=>{e.url in t||(t[e.url]=null)}),Object.keys(t).forEach(n=>{e.find(e=>String(e.url)===String(n))||delete t[n]})},[e]);let x=(0,o.useCallback)(()=>{let n=d.current;if(!n)return;let i=e=>e?e.getBoundingClientRect().width:0,o=i(n),r=Math.max(Number(t)||0,0),s=()=>{f(e.length),_(!1)};if(h||0===r||o<=0){s();return}let l=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),a=i(p.current),c=e.map(e=>i(m.current[e.url]));if(c.some(e=>0===e)){s();return}let u=1,v=0,g=0;for(let e of c){let t=u===r?a+l:0,n=0===v?e:v+l+e;if(n+t<=o-.5)v=n,g++;else{if(++u>r)break;v=e,g++}}_(g<e.length),f(g)},[h,e,t]);(0,o.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(x)});return t.observe(e),requestAnimationFrame(x),()=>{t.disconnect()}},[x]),(0,o.useEffect)(()=>{requestAnimationFrame(x)},[x]);let b=h||(t??0)<=0||!w;return(0,i.jsx)("div",{className:(0,a.Z)(s,I.wrapper,{[I.gray]:"gray"===n,[I.white]:"white"===n}),children:(0,i.jsxs)("div",{ref:d,className:I.container,children:[e.map((e,t)=>(0,i.jsx)(L,{chip:e,hidden:!b&&t>=g,activeChipId:l,onClick:c,refCallback:t=>{m.current[e.url]=t}},e.url)),!b&&w&&(0,i.jsxs)("button",{type:"button",ref:p,className:(0,a.Z)(I.chip,I.more),onClick:()=>{S(u.D.chip,"Еще"),v(!0)},children:[(0,i.jsx)(r.IconFdsDotsVerticalO,{size:20}),(0,i.jsx)("span",{className:I.label,children:"Еще"})]}),(b||!w)&&(0,i.jsxs)("button",{type:"button",ref:p,className:(0,a.Z)(I.chip,I.more,I.hidden),tabIndex:-1,"aria-hidden":"true",children:[(0,i.jsx)(r.IconFdsDotsVerticalO,{size:20}),(0,i.jsx)("span",{className:I.label,children:"Еще"})]})]})})},E=(e,t)=>{if(!(typeof document>"u")){if(!e&&!t){b.a.removeItem(v),b.a.removeItem(g);return}b.a.setItem(v,JSON.stringify(e)||"",{"max-age":31536e3}),b.a.setItem(g,JSON.stringify(t)||"",{"max-age":31536e3})}},z=e=>{if(typeof document>"u")return null;let t=b.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},U=()=>{if(typeof window>"u")return[];if(Array.isArray(window.allRegions)&&window.allRegions.length>0)return window.allRegions;let e=P("all_regions")||[];return window.allRegions=e,e},D=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]),[])},B=async()=>{let e={regions:[]};try{e=await (await fetch("https://finuslugi.ru/money_data/Root.json?short=1")).json()}catch(e){console.warn(e)}let t=null!=e&&e.regions?e.regions:[];return t.length<1?[]:(window.allRegions=t,window.localStorage.setItem("all_regions",JSON.stringify(t)),window.localStorage.setItem("lastRegionsUpdateUnixTimestamp",JSON.stringify(Date.now())),t)},M=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},W=(e,t,n)=>{(0,u.h)({eventCategory:V,eventActionType:e,eventActionText:t,eventLabel:n})},F=U(),Z=D(F),H={regions:F,towns:Z,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},V="finkit-widgets-sc-city-select",G=(0,o.createContext)(H);function q(){return(0,o.useContext)(G)}let J=({children:e,initialRegion:t,initialTown:n,showStartGeoPopup:r=!0,lastRegionsUpdateUnixTimestamp:s,dadataUrl:l="https://finuslugi.ru/backend/money/dadata"})=>{let a=Number(P("lastRegionsUpdateUnixTimestamp")||0),c=Number(s||0)>a,[d,p]=(0,o.useState)(U()),[{startRegion:m,startTown:h},f]=(0,o.useState)({startRegion:H.startRegion,startTown:H.startTown}),w=t??H.region,_=n??H.town,[{region:x,town:b},j]=(0,o.useState)({region:w,town:_}),[y,k]=(0,o.useState)(H.startPopupVisible),[N,C]=(0,o.useState)(H.popupVisible),$=(0,o.useRef)(""),S=(0,o.useMemo)(()=>D(d),[d.length]),T=(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)||""),k(!0),f({startRegion:e,startTown:t})},[k,f]),I=(0,o.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||T(e,t)},[T]),O=(0,o.useCallback)(()=>{if($.current&&!x&&!b){let e=S.find(e=>e.name===$.current)??null;return I(d.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}I(x,b)},[x,b,S,d,I]),A=(0,o.useCallback)(e=>{C(e)},[C]),L=(0,o.useCallback)(e=>{e?W(u.D.icon,"location"):W(u.D.button,(null==b?void 0:b.name)||"Вся Россия"),!r||window.sessionStorage.getItem("start_popup_opened")?A(!0):O()},[r,b,A,O]),R=(0,o.useCallback)((e,t)=>{e||t?(window.localStorage.setItem("all_russia_selected","0"),window.localStorage.setItem(v,JSON.stringify(e)||""),window.localStorage.setItem(g,JSON.stringify(t)||""),E(e||null,t||null)):(window.localStorage.setItem("all_russia_selected","1"),window.localStorage.setItem(v,""),window.localStorage.setItem(g,""),E(null,null)),j({region:e||null,town:t||null}),k(!1),A(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[A]),F=()=>{j({region:z(v)??P(v),town:z(g)??P(g)});let e=async({coords:{latitude:e,longitude:t}})=>{let n=`${l}?lat=${e}&lon=${t}`,i=await M(n);null!=i&&i.location&&($.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&r)try{navigator.geolocation.getCurrentPosition(e,()=>null)}catch{}};return(0,o.useEffect)(()=>{if((d.length<1||c)&&B().then(e=>p(e)),window.innerWidth<1024){let e=()=>{F(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{F()},0)},[]),(0,i.jsx)(G.Provider,{value:{regions:d,towns:S,region:x,town:b,startPopupVisible:y,setStartPopupVisible:k,popupVisible:N,handleToggleModal:A,selectCity:R,handleButtonClick:L,startRegion:m,startTown:h},children:e})},Q=()=>{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}},Y=(0,p.g)("city-select-modal-body","sc"),K=Object.freeze({wrapper:`${Y}__wrapper`,subtitle:`${Y}__subtitle`,hintWrapper:`${Y}__hint-wrapper`,hintText:`${Y}__hint-text`,input:`${Y}__input`,chips:`${Y}__chips`,townsListWrapper:`${Y}__towns-list-wrapper`,townsList:`${Y}__towns-list`,townsGroup:`${Y}__towns-group`,townsGroupLabel:`${Y}__towns-group-label`,townsGroupList:`${Y}__towns-group-list`,townsName:`${Y}__towns-name`,regionName:`${Y}__region-name`}),X=({groupedTowns:e,chips:t,query:n,setQuery:s,isDrawer:a})=>{var c;let d=q(),p=(0,o.useRef)(null),[m,h]=(0,o.useState)("10000px");(0,o.useEffect)(()=>{if(!a||!p.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,i)=>{let o=n.map(e=>[...e]),r=o.map(e),s=r.reduce((e,t,n)=>t<r[e]?n:e,0);0===s&&o[0].push(o[1].shift()),2===s&&o[2].unshift(o[1].pop()),1===s&&r[0]>r[2]&&o[1].unshift(o[0].pop()),1===s&&r[0]<r[2]&&o[1].push(o[2].shift());let l=Math.max(...o.map(e));return l>=i?i:t(o,l)};new ResizeObserver(()=>{var e;if(!(null!=(e=p.current)&&e.children))return;let n=Array.from(p.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let i=0;try{i=t([[],n,[]],1/0)}catch{i=0}i>0&&h(`${i}px`)}).observe(p.current)},[]);let v=e=>{if(W(u.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return d.selectCity();let t=d.regions.find(t=>t.id===Number(e.parentId))||null;d.selectCity(t,e)};return(0,i.jsxs)("div",{className:K.wrapper,children:[(0,i.jsxs)("div",{className:K.subtitle,children:["Покажем предложения рядом с вами",(0,i.jsxs)("div",{className:K.hintWrapper,children:[(0,i.jsx)(r.IconFdsQuestionCircleO,{size:24}),(0,i.jsx)("div",{className:K.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,i.jsx)(l.MA,{className:K.input,value:n,onChange:s,size:"s",placeholder:"Введите название города",icon:n?(0,i.jsx)(r.IconFdsCloseCircleO,{size:24,onClick:()=>s("")}):(0,i.jsx)(r.IconFdsSearchO,{size:24})}),(0,i.jsx)(l.cL,{className:K.chips,chips:t,value:(null==(c=d.town)?void 0:c.id)||0,onChipClick:e=>{v(d.towns.find(t=>t.id===e))}}),(0,i.jsx)("div",{className:K.townsListWrapper,children:(0,i.jsx)("div",{ref:p,className:K.townsList,style:{maxHeight:m},children:e.map(e=>(0,i.jsxs)("div",{className:K.townsGroup,children:[(0,i.jsx)("div",{className:K.townsGroupLabel,children:e.letter}),(0,i.jsx)("div",{className:K.townsGroupList,children:e.towns.map(e=>(0,i.jsxs)("button",{type:"button",onClick:()=>v(e),children:[(0,i.jsx)("div",{className:K.townsName,children:e.name}),(0,i.jsx)("div",{className:K.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},ee=[1095,1096,134,720,189,180],et=()=>{var e;let t=q(),n=(0,l._m)("l"),[r,s]=(0,o.useState)(""),a=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,c=(0,o.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(r.toLocaleLowerCase())).sort((e,t)=>e.name.localeCompare(t.name)).reduce((e,t)=>{let n=e.pop();return n||(n={letter:t.name[0],towns:[]}),n.letter!==t.name[0]&&(e.push(n),n={letter:t.name[0],towns:[]}),n.towns.push(t),e.push(n),e},[]),[r,t.towns.length]),p=(0,o.useMemo)(()=>[{id:0,label:"Вся Россия"},...ee.map(e=>{let n=t.towns.find(t=>t.id===e);return{id:null==n?void 0:n.id,label:null==n?void 0:n.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[t.towns.length]),m=()=>{W(u.D.button,"close"),t.handleToggleModal(!1)};return(0,i.jsxs)(d.P,{children:[!n&&(0,i.jsx)(d.U,{title:a,isOpen:t.popupVisible,onClose:m,full:!0,children:(0,i.jsx)(X,{groupedTowns:c,chips:p,query:r,setQuery:s})}),n&&(0,i.jsx)(d.D,{title:a,isOpen:t.popupVisible,onClose:m,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,i.jsx)(X,{groupedTowns:c,chips:p,query:r,setQuery:s,isDrawer:!0})})]})},en={"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"},ei=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(en,e)?en[e]:en["finuslugi.ru"]},eo=(e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=`${e}/assets/css/${t}`,document.head.appendChild(n);let i=document.createElement("script");i.src=`${e}/get-bootstrap/${t}`,i.defer=!0,document.body.appendChild(i)},er=()=>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)}})}),es=()=>{let[e,t]=(0,o.useState)(!1),[n,i]=(0,o.useState)(!1),r=(0,o.useRef)(!1),s=e=>{r.current=e,i(e)};return(0,o.useEffect)(()=>{if(typeof window>"u")return;let e=ei(),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,l)=>{if(r.current){l(Error("chat is already opened"));return}i?(i.openWidget(),t(!1),o()):(s(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let r=document.querySelector(".webchat");r&&er().observe(r,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),s(!1),t(!1),o()},eo(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}},el=(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 ea(){return(0,o.useContext)(el)}let ec=e=>{let[t,n]=(0,o.useState)(!1),[r,s]=(0,o.useState)(!1),[l,a]=(0,o.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p}=es(),[m,h]=(0,o.useState)(null),[v,g]=(0,o.useState)(null),[f,w]=(0,o.useState)(!1),[_,x]=(0,o.useState)(!1),[b,y]=(0,o.useState)(!1),k=(0,o.useRef)(null),N=(0,d.u)(f),C=(0,o.useRef)(null),S=(0,o.useRef)(null),T=(0,o.useRef)(null),I=(0,o.useRef)(null),O=(0,o.useCallback)(()=>{N.current&&N.current.scrollTo({top:0})},[N]),A=(0,o.useCallback)(e=>{g(e),O()},[O]),L=(0,o.useCallback)(e=>{C.current&&clearTimeout(C.current),e&&x(!0),e||(C.current=setTimeout(()=>{x(!1),A(null)},300))},[A]),R=(0,o.useCallback)((e,t,n)=>{if(t&&A(t),!n&&e===m||!e){L(!f),w(!f);return}h(e),L(!0),w(!0)},[m,A,f,L]),E=(0,o.useCallback)(()=>{S.current&&clearTimeout(S.current),y(!0),S.current=setTimeout(()=>{y(!1)},650)},[]);return(0,o.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=j(s,a,e.isMainBannerPage);return $(),t},[]),(0,i.jsx)("header",{children:(0,i.jsx)(el.Provider,{value:{isAuth:t,isHeaderHidden:r,isHeaderTransparent:l,openedBlock:m,setOpenedBlock:R,openedSection:v,setOpenedSection:A,isNavigationOpen:f,isNavigationMounted:_,navMenuItemsRef:k,navigationRef:N,ignoreClicks:b,setIgnoreClicks:E,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p,fixedContainerRef:T,headerRef:I},children:e.children})})},eu=({label:e,onClick:t,eventActionText:n,eventLabel:o,...r})=>(0,i.jsx)(l.zx,{label:e,onClick:e=>{null==t||t(e),(0,u.h)({eventCategory:f,eventActionType:u.D.button,eventActionText:n||"",eventLabel:o||""})},...r}),ed=(0,p.g)("header-popup","sc"),ep=Object.freeze({popup:`${ed}__popup`,popupHeader:`${ed}__popup-header`,popupClose:`${ed}__popup-close`,body:`${ed}__body`}),em=({isOpen:e,onClose:t,children:n,title:o})=>{let s=(0,l._m)("l");return(0,i.jsxs)(d.P,{children:[!s&&(0,i.jsx)(d.U,{title:o,isOpen:e,onClose:t,children:n}),s&&e&&(0,i.jsxs)("div",{className:ep.popup,children:[(0,i.jsxs)("div",{className:ep.popupHeader,children:[o,(0,i.jsx)(eu,{className:ep.popupClose,iconLeft:(0,i.jsx)(r.IconFdsCloseO,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,i.jsx)("div",{className:ep.body,children:n})]})]})},eh=(0,p.g)("start-choice-popup","sc"),ev=Object.freeze({top:`${eh}__top`,progress:`${eh}__progress`,innerCircle:`${eh}__inner-circle`,title:`${eh}__title`,subtitle:`${eh}__subtitle`,actions:`${eh}__actions`}),eg=()=>{var e,t;let n=q(),[r,s]=(0,o.useState)(10),[l,a]=(0,o.useState)(0),c=(0,o.useRef)(void 0),d=()=>{W(u.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(n.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(n.startRegion)||""),n.setStartPopupVisible(!1)};return(0,o.useEffect)(()=>{n.startPopupVisible?(()=>{let e=Number((" "+r).slice(1)),t=1e3*e/100,n=0,i=0;c.current=setInterval(()=>{n++,i+=t,a(3.6*n);let o=e-Math.floor(i/1e3);o<r&&s(o),100===n&&(clearInterval(c.current),d())},t)})():(clearInterval(c.current),s(10),a(0))},[n.startPopupVisible]),(0,i.jsxs)(em,{isOpen:n.startPopupVisible,onClose:d,title:(0,i.jsx)("button",{type:"button",className:ev.progress,style:{background:`conic-gradient(#ff0508 ${l}deg, #e3e7ec 0deg)`},onClick:d,children:(0,i.jsx)("div",{className:ev.innerCircle,children:r})}),children:[(0,i.jsxs)("div",{className:ev.top,children:[(0,i.jsxs)("div",{className:ev.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,i.jsx)("div",{className:ev.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,i.jsxs)("div",{className:ev.actions,children:[(0,i.jsx)(eu,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{W(u.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,i.jsx)(eu,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{W(u.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},ef=(0,p.g)("city-select","sc"),ew=Object.freeze({button:`${ef}__button`,minimal:`${ef}__minimal`,full:`${ef}__full`}),e_=({initialTown:e})=>{var t;let n=q(),s=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия",{setIsChatModalOpen:c,isChatModalOpen:u}=ea(),{startPopupVisible:d,setStartPopupVisible:p,popupVisible:m}=n,h=(0,o.useRef)();(0,o.useEffect)(()=>{m&&(h.current="popup")},[m]),(0,o.useEffect)(()=>{u&&(h.current="chat")},[u]),(0,o.useEffect)(()=>{d&&(h.current="startPopup")},[d]),(0,o.useEffect)(()=>{h.current&&("chat"===h.current&&d?p(!1):["startPopup","popup"].includes(h.current)&&u&&c(!1))},[m,u,d,p,c]);let v={appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,i.jsx)(r.IconFdsLocationO,{size:24})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.zx,{...v,className:(0,a.Z)(ew.button,ew.full),label:s}),(0,i.jsx)(l.zx,{...v,className:(0,a.Z)(ew.button,ew.minimal),shape:"icon"}),(0,i.jsx)(et,{}),(0,i.jsx)(eg,{})]})},ex=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:o,...r})=>(0,i.jsx)(l.rU,{onClick:i=>{null==e||e(i),(0,u.h)({eventCategory:f,eventActionType:t||u.D.link,eventActionText:n||"",eventLabel:o||""})},...r}),eb=(0,p.g)("header-mobile-app-banner","sc"),ej=Object.freeze({wrapper:`${eb}__wrapper`,container:`${eb}__container`,closeButton:`${eb}__close-button`,innerWrapper:`${eb}__inner-wrapper`,imageWrapper:`${eb}__image-wrapper`,image:`${eb}__image`,title:`${eb}__title`,description:`${eb}__description`,callToAction:`${eb}__call-to-action`,scanQr:`${eb}__scan-qr`}),ey=Object.freeze({mobile:56,desktop:68}),ek="headerBannerShownAt",eN=()=>{let e=localStorage.getItem(ek);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},eC=()=>{localStorage.setItem(ek,new Date().toISOString())},e$=()=>{let e=eN();return!e||Math.floor((e.getTime()-new Date().getTime())/864e5)>5},eS=({minioUrl:e,className:t,mobileAppUrl:n})=>{let{fixedContainerRef:d,headerRef:p}=ea(),[m,h]=(0,o.useState)(!1),[v,g]=(0,o.useState)(!1),[f,w]=(0,o.useState)(!1),_=(0,o.useCallback)((e="desktop")=>{let t=d.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${ey[e]+x[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${ey.desktop+x.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${ey.mobile+x.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${ey.mobile+x.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${ey.desktop+x.desktop}px`),document.documentElement.style.setProperty("--header-height",`${ey[e]+108}px`))},[]),b=(0,o.useCallback)(()=>{let e=d.current;e&&(document.documentElement.style.removeProperty("--fixed-header-height"),document.documentElement.style.removeProperty("--new-header-height-desktop"),document.documentElement.style.removeProperty("--new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-desktop"),document.documentElement.style.removeProperty("--header-height"),e.style.transform="")},[]);return(0,o.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{v&&h(!1),w(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[v]),(0,o.useEffect)(()=>{e$()&&h(!0)},[]),(0,o.useEffect)(()=>{let e=window.innerWidth<768;m&&(_(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!0):w(!0));let t=()=>{if(!m)return null;_(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{b(),window.removeEventListener("resize",t)}},[m,_,b]),m?(0,i.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":f,className:(0,a.Z)(ej.wrapper,t),children:(0,i.jsx)(s.W2,{children:(0,i.jsxs)("div",{className:ej.container,children:[(0,i.jsxs)("div",{className:ej.innerWrapper,children:[(0,i.jsxs)("picture",{className:ej.imageWrapper,children:[(0,i.jsx)("source",{srcSet:(0,c.xn)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{className:ej.image,src:(0,c.xn)(e,"/logo/finuslugi/default-regular.svg")})]}),(0,i.jsxs)("div",{className:ej.scanQr,children:[(0,i.jsx)("div",{className:ej.title,children:"Скачайте приложение Финуслуги"}),(0,i.jsx)("div",{className:ej.description,children:"Сканируйте QR-код"})]}),(0,i.jsxs)("div",{className:ej.callToAction,children:[(0,i.jsxs)("div",{children:["Приложение",(0,i.jsx)("br",{}),"Финуслуги"]}),(0,i.jsx)(l.zx,{onClick:()=>{S(u.D.button,"skachat_mob_prilozheniye_fu"),window.open(n,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,i.jsx)("div",{"aria-label":"Закрыть",role:"button",className:ej.closeButton,onClick:()=>{eC(),b(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!1):g(!0)},children:(0,i.jsx)(r.IconFdsCloseO,{size:"100%"})})]})})}):null},eT=(0,p.g)("header-chat-modal-body","sc"),eI=Object.freeze({wrapper:`${eT}__wrapper`,cardButton:`${eT}__card-button`,card:`${eT}__card`,cardTitle:`${eT}__card-title`,cardSubtitle:`${eT}__card-subtitle`,button:`${eT}__button`}),eO=()=>{let e=ea();return(0,i.jsxs)("div",{className:eI.wrapper,children:[(0,i.jsx)(eu,{className:eI.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)(s.Zb,{className:eI.card,variant:"secondary",children:[(0,i.jsxs)("div",{className:eI.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:eI.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,i.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},eA=({data:e,isMobile:t})=>{let n=ea();return(0,i.jsx)("div",{className:A.contentWrapper,children:e.map(e=>(0,i.jsx)(o.Fragment,{children:e.sections.map(e=>{var o;return(0,i.jsxs)("div",{className:(0,a.Z)(A.content,{[A.hidden]:n.openedSection!==e.id,[A.contentOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:A.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),null==(o=e.content)?void 0:o.map((n,o)=>{var s,l;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,a.Z)(A.contentTitle,{[A.removed]:!n.title,[A.contentTitleUrl]:!!n.url,[A.contentTitleLink]:!!e.isSeeAllLinkAvailable,[A.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:A.arrowIcon,children:(0,i.jsx)(r.IconFdsArrowUpRightSmallO,{})}),n.title]})})}),!(null!=(s=n.links)&&s.length)&&(0,i.jsx)(R,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(l=n.links)&&l.length)&&(0,i.jsx)("div",{className:(0,a.Z)(A.links,{[A.linksColumns]:!!n.columns,[A.linksTitleless]:!n.title}),children:n.links.map(e=>(0,i.jsxs)("a",{href:e.url,className:(0,a.Z)({[A.new]:!!e.new}),onClick:()=>S(u.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{className:A.arrowIcon,children:(0,i.jsx)(r.IconFdsArrowUpRightSmallO,{})}),(0,i.jsx)("span",{children:e.title})]},e.url))})]},`${n.url}_${o}`)})]},e.id)})},e.id))})},eL=(0,p.g)("navigation-section-icon","sc"),eR=Object.freeze({icon:`${eL}`}),eE=({name:e,background:t})=>{let n=(0,o.useMemo)(()=>e&&r[e]||null,[e]);return e&&n?(0,i.jsx)("div",{className:eR.icon,style:{background:t},children:(0,i.jsx)(n,{})}):null},ez=(0,p.g)("navigation","sc"),eP=Object.freeze({navigation:`${ez}`,navigationOpening:`${ez}--opening`,navigationClosing:`${ez}--closing`,wrapper:`${ez}__wrapper`,container:`${ez}__container`,containerOpen:`${ez}__container--open`,sections:`${ez}__sections`,sectionsOpen:`${ez}__sections--open`,citySelectButton:`${ez}__city-select-button`,sectionsTitle:`${ez}__sections-title`,sectionsWrapper:`${ez}__sections-wrapper`,section:`${ez}__section`,sectionArrow:`${ez}__section-arrow`,sectionExtra:`${ez}__section--extra`,sectionActive:`${ez}__section--active`,sectionTitle:`${ez}__section-title`,chatWrapper:`${ez}__chat-wrapper`,chatHeader:`${ez}__chat-header`,backButton:`${ez}__back-button`,useful:`${ez}__useful`,usefulOpen:`${ez}__useful--open`,usefulTitle:`${ez}__useful-title`,usefulGrid:`${ez}__useful-grid`,removed:`${ez}__removed`}),eU=({data:e})=>{var t;let n=ea(),c=q(),d=(0,l.aF)("m"),[p,m]=(0,o.useState)(!0);(0,o.useEffect)(()=>{m(d)},[d]);let h=(0,o.useRef)(null),v=(0,o.useCallback)(()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),g=(0,o.useRef)(!1),f=(0,o.useRef)(null),w=(0,o.useCallback)(()=>{p&&(g.current=!0,f.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),v()},window.history.pushState(null,"",window.location.href))},[v,p]),x=(0,o.useCallback)(()=>{g.current=!1,window.onpopstate=f.current,window.history.go(-1)},[]),b=(0,o.useRef)(null),j=(0,o.useCallback)(e=>{if(p||!n.navMenuItemsRef.current||!n.navigationRef.current)return;let t=e.target,i=!n.navMenuItemsRef.current.contains(t)&&!n.navigationRef.current.contains(t);if(i&&!b.current){n.setIgnoreClicks(),b.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!i&&b.current&&(clearTimeout(b.current),b.current=null)},[p,n]),y=(0,o.useRef)(null),k=(0,o.useCallback)(e=>{typeof window>"u"||(e?(y.current=j,window.addEventListener("mousemove",y.current)):y.current&&window.removeEventListener("mousemove",y.current))},[j]);(0,o.useEffect)(()=>{k(n.isNavigationOpen),n.isNavigationOpen&&!g.current&&w(),!n.isNavigationOpen&&g.current&&x()},[n.isNavigationOpen]);let N=(e,t)=>()=>{S(u.D.button,t),n.setOpenedSection(e)},{start:C,clear:$}=Q(),T=(e,t)=>()=>{p||C(N(e,t),150)},I=()=>{p||$()};return(0,i.jsx)("div",{ref:n.navigationRef,className:(0,a.Z)(eP.navigation,{[eP.removed]:!n.isNavigationMounted,[eP.navigationOpening]:n.isNavigationOpen,[eP.navigationClosing]:!n.isNavigationOpen}),children:(0,i.jsx)("div",{className:eP.wrapper,children:(0,i.jsxs)(s.W2,{className:(0,a.Z)(eP.container,{[eP.containerOpen]:!!n.openedSection}),children:[(0,i.jsxs)("div",{className:(0,a.Z)(eP.sections,{[eP.sectionsOpen]:!!n.openedSection}),children:[(0,i.jsx)(l.zx,{className:eP.citySelectButton,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>c.handleButtonClick(!1),iconLeft:(0,i.jsx)(r.IconFdsLocationO,{size:24}),label:(null==(t=c.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,i.jsxs)("ul",{className:(0,a.Z)(eP.sectionsWrapper,{[eP.removed]:n.openedBlock!==e.id&&!p}),children:[(0,i.jsx)("div",{className:eP.sectionsTitle,children:_[e.id]}),e.sections.map(e=>(0,i.jsxs)("li",{className:(0,a.Z)(eP.section,{[eP.sectionExtra]:!!e.extra,[eP.sectionActive]:n.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:T(e.id,e.title),onMouseLeave:I,children:[(0,i.jsx)(eE,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:eP.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:eP.sectionArrow,children:(0,i.jsx)(r.IconFdsChevronRightSmallO,{size:24})})]},e.id))]},e.id)),(0,i.jsxs)("div",{className:eP.chatWrapper,children:[(0,i.jsx)("div",{className:eP.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(eO,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,a.Z)(eP.backButton,{[eP.removed]:!n.openedSection}),onClick:()=>{S(u.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,i.jsx)(r.IconFdsChevronLeftO,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(eA,{data:e,isMobile:p}),(0,i.jsxs)("div",{className:(0,a.Z)(eP.useful,{[eP.usefulOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:eP.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,i.jsx)(o.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsx)("div",{className:(0,a.Z)(eP.usefulGrid,{[eP.removed]:n.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>S(u.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))]})]})})})},eD=(e,t,n)=>{var i,o,r,s,l,a,u;let d=(null==(o=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:o.call(i,({id:e})=>"news"===e))||-1,p=(null==(s=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[d])?void 0:s.content)||[];if(null!=(u=null==(a=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l[d])?void 0:a.content)&&u[0]&&Array.isArray(n)&&p.length){let i=n.map(({title:e,url:n})=>({title:e,url:(0,c.xn)(t||"",n),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:[]}]},eB=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:d="https://lk.finuslugi.ru/registration",initialTown:p,isMainBannerPage:m,enableAppHeaderBanner:v=!1,news:g,className:f})=>{let _=ea(),x=(0,o.useMemo)(()=>eD(e,t,g),[e,t,g]),b=null==e?void 0:e.config,j=(0,o.useMemo)(()=>x.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[x]),y=_.isAuth?"Личный кабинет":"Войти",k=m&&_.isHeaderTransparent,N=(e,t,n,i)=>()=>{e!==_.openedBlock?S(u.D.toggle,t,"on"):S(u.D.button,"menu_close","on");let o=n?j[e]:"";_.setOpenedBlock(e,o,!!i)},{start:C,clear:$}=Q(),T=(e,t,n,i)=>()=>{_.isNavigationOpen&&e===_.openedBlock||_.setIgnoreClicks(),C(N(e,t,n,i),200)},I=e=>()=>{_.ignoreClicks||e()},O=e=>_.openedBlock===e&&_.isNavigationOpen;return e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:_.headerRef,className:(0,a.Z)(h.header,f,{[h.transparent]:k}),children:(0,i.jsxs)("div",{ref:_.fixedContainerRef,className:(0,a.Z)(h.fixed,{[h.hidden]:_.isHeaderHidden,[h.navigationOpen]:_.isNavigationOpen}),children:[!!(null!=b&&b.appBannerUrl)&&v&&(0,i.jsx)(eS,{mobileAppUrl:b.appBannerUrl,minioUrl:n}),(0,i.jsxs)(s.W2,{className:h.container,children:[(0,i.jsxs)("div",{className:h.leftRow,children:[(0,i.jsx)(ex,{className:h.logo,href:t,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,c.xn)(n,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{src:(0,c.xn)(n,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,i.jsx)("nav",{ref:_.navMenuItemsRef,className:h.menuItems,children:(0,i.jsx)("ul",{children:w.map(({id:e,label:t})=>(0,i.jsx)("li",{children:(0,i.jsx)(l.zx,{className:(0,a.Z)({[h.menuItemActive]:O(e)}),label:t,variant:"white",size:"xs",onClick:I(N(e,t,!0)),onMouseEnter:T(e,t,!0,!0),onMouseLeave:$})},e))})}),(0,i.jsx)(eu,{className:(0,a.Z)(h.tabletMenuButton,{[h.menuItemActive]:_.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(r.IconFdsChevronDownO,{size:24}),onClick:N("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:(0,a.Z)(h.buttonGroup,{[h.whiteIcons]:(null==b?void 0:b.iconColorOnMobileMainBanner)==="white"}),children:[(0,i.jsxs)("div",{className:h.chips,children:[(0,i.jsx)(eu,{as:"a",href:d,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${d}`,iconLeft:(0,i.jsx)(r.IconFdsUserO,{size:20})}),(0,i.jsx)(eu,{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.IconFdsChatDotsCircleO,{size:24})})]}),(0,i.jsx)(eu,{className:h.menuButton,size:"xs",shape:k?"icon":"default",appearance:k?"ghost":"fill",label:"Меню",onClick:N("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(r.IconFdsMenuSkewedO,{size:24})}),(0,i.jsxs)("div",{className:h.moreButtons,children:[(0,i.jsx)(e_,{initialTown:p}),(0,i.jsx)(eu,{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)(r.IconFdsChatDotsSquareAddO,{size:24}),children:"Онлайн чат"}),(0,i.jsx)(eu,{as:"a",href:d,size:"xs",eventActionText:y,eventLabel:`${y}_${d}`,label:y})]})]}),(0,i.jsxs)(ex,{className:h.auth,href:d,eventActionText:y,eventLabel:`${y}_${d}`,children:[(0,i.jsx)(eu,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(r.IconFdsUserO,{}),eventActionText:y,eventLabel:`${y}_${d}`}),(0,i.jsx)("p",{children:y})]}),(0,i.jsx)("div",{className:h.close,children:(0,i.jsx)(eu,{className:h.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(r.IconFdsCloseO,{}),onClick:()=>_.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,i.jsx)("div",{className:(0,a.Z)(h.overlay,{[h.removed]:!_.isNavigationMounted,[h.overlayOpening]:_.isNavigationOpen,[h.overlayClosing]:!_.isNavigationOpen}),onClick:I(()=>_.setOpenedBlock(null))}),(0,i.jsx)(eU,{data:x,minioUrl:n})]}):null},eM=e=>(0,i.jsx)(ec,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(eB,{...e})})},94246:function(e,t,n){"use strict";n.d(t,{D:function(){return O},P:function(){return D},U:function(){return U},u:function(){return b}});var i=n(57437),o=n(2265),r=n(61994),s=n(80684),l=n(52074),a=n(54887);let c=300,u=({opened:e})=>{let[t,n]=(0,o.useState)(!1),i=(0,o.useRef)(null),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(e&&!r.current?(r.current=!0,n(!0)):!e&&r.current&&(i.current=setTimeout(()=>{r.current=!1,n(!1)},c)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},d=(0,l.g)("click-outside","sc"),p=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),m=({onClose:e,onToucheMove:t,isOpen:n,delay:s=c})=>{let l=(0,o.useRef)(null),a=(0,o.useCallback)(()=>{e&&(l.current=setTimeout(()=>{e()},s))},[s,e]),u=(0,o.useCallback)(e=>{"Escape"===e.key&&a()},[a]);return(0,o.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{l.current&&clearTimeout(l.current),window.removeEventListener("keydown",u)}),[n,u]),(0,i.jsx)("div",{className:(0,r.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:a})},h=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},v=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},g=(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`)},f=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vh")},w=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},_=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},x=()=>document.querySelectorAll("[data-portal]").length>1,b=e=>{let t=(0,o.useRef)(null),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(n.current===e)return;n.current=e;let i=t.current,o=document.body,r=document.documentElement,s=window.innerWidth-r.clientWidth,l=s>0;if(e&&l)v(o),g(o,r,s),h(i,!0);else if(e)f(o),h(i,!0);else{let e=!x();e&&w(o),e&&_(),h(i,!1)}return()=>{let e=!x();e&&w(o),e&&_()}},[e]),t},j=(0,l.g)("drawer-footer","sc"),y=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),k=({footer:e,hasScroll:t,className:n})=>(0,i.jsx)("div",{className:(0,r.Z)(y.footer,{[y.hasScroll]:t},n),children:"function"==typeof e?e():e}),N=(0,l.g)("drawer-content","sc"),C=Object.freeze({container:`${N}__container`,open:`${N}--open`,close:`${N}--close`,header:`${N}__header`,rowHeader:`${N}__header--row`,title:`${N}__title`,center:`${N}__title--center`,left:`${N}__title--left`,right:`${N}__title--right`,controlContainer:`${N}__control-container`,content:`${N}__content`,footer:`${N}__footer`}),$=({onClose:e,onContentClick:t,children:n,title:l,rowTitle:a,titleAlign:c,isCloseable:u,footer:d,closeButton:p,isOpen:m,contentClassName:h,footerClassName:v,contentStyle:g,width:f})=>{let w=(0,o.useRef)(null),_=(0,o.useRef)(null),[x,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{var e;if(!_.current||!w.current)return;let t=(null==(e=null==_?void 0:_.current)?void 0:e.getBoundingClientRect().top)||0,n=null==w?void 0:w.current,i=()=>{let e=null==_?void 0:_.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",i,!1),()=>{null==n||n.removeEventListener("scroll",i,!1)}},[]);let j=g||f?{width:f,...g||{}}:void 0;return(0,i.jsxs)("div",{ref:w,style:j,className:(0,r.Z)(C.container,{[C.open]:m,[C.close]:!m},h),children:[l||u?(0,i.jsxs)("div",{className:(0,r.Z)(C.header,{[C.rowHeader]:a}),children:[u?p?"function"==typeof p?p():p:(0,i.jsx)("button",{type:"button",className:C.controlContainer,onClick:e,children:(0,i.jsx)(s.IconFdsCloseO,{size:24})}):null,l?(0,i.jsx)("h3",{className:(0,r.Z)(C.title,{[C[c]]:!0}),children:l}):null]}):null,(0,i.jsx)("div",{ref:_,className:C.content,onClick:t,children:n}),d&&(0,i.jsx)(k,{className:(0,r.Z)(C.footer,v),footer:d,hasScroll:x})]})},S=(0,l.g)("drawer-layout","sc"),T=Object.freeze({window:`${S}__window`}),I=({onClose:e,isOpen:t,children:n,withDisabledScroll:s,className:l,...a})=>{let c=(0,o.useCallback)(e=>e.stopPropagation(),[]);return b(t&&s),(0,i.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(T.window,l),children:[(0,i.jsx)(m,{onClose:e,isOpen:t,delay:0}),(0,i.jsx)($,{onContentClick:c,onClose:e,isOpen:t,...a,children:n})]})},O=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:o=!0,withDisabledScroll:r=!0,...s})=>{let{mounted:l}=u({opened:e});return l?(0,i.jsx)(I,{titleAlign:n,isCloseable:o,isOpen:e,withDisabledScroll:r,...s,children:t}):null};O.displayName="Drawer";let A=(0,l.g)("mobile-modal-footer","sc"),L=Object.freeze({footer:`${A}__footer`,footerWithoutShadow:`${A}__footer--without-shadow`}),R=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,i.jsx)("div",{className:(0,r.Z)(L.footer,t&&L.footerWithoutShadow,n),children:"function"==typeof e?e():e}),E=(0,l.g)("mobile-popup","sc"),z=Object.freeze({mobilePopup:`${E}`,mobilePopupOpen:`${E}--open`,content:`${E}__content`,contentFull:`${E}__content--full`,contentTransition:`${E}__content--transition`,contentTransitionOpen:`${E}__content--transition-open`,contentLine:`${E}__content-line`,contentContainer:`${E}__content-container`,smallContentContainer:`${E}__content-container--small`,min:`${E}__content-container--min`,title:`${E}__title`,closeContainer:`${E}__close-container`,closeButton:`${E}__close-button`}),P=({children:e,footer:t,isOpen:n,isSmallPopup:l,onClose:a,hasCloseButton:c=!0,full:u,touchDistance:d=100,withDisabledScroll:p=!0,contentClassName:h,className:v,title:g,closeButton:f,footerClassName:w})=>{let[_,x]=(0,o.useState)(!1),[j,y]=(0,o.useState)(!1),[k,N]=(0,o.useState)(!0),[C,$]=(0,o.useState)("120%"),S=(0,o.useRef)(null),T=(0,o.useRef)(0),I=(0,o.useRef)(!1),O=e=>{var t,n,i;let o=null==(t=S.current)?void 0:t.offsetTop,r=null==(n=S.current)?void 0:n.offsetHeight;if(I.current=!0,N(!1),o&&r){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-o,n=0;t>=0&&t<=r+30&&(n=t),t>r+30&&(n=r+30),$(`${n}px`),T.current=n}},A=()=>{I.current&&(T.current>d&&a?null==a||a():$("0"),N(!0),I.current=!1),window.removeEventListener("touchmove",O),window.removeEventListener("touchend",A)};return(0,o.useEffect)(()=>{n&&setTimeout(()=>{x(!0),y(!0),$("0")},100),!n&&j&&($("120%"),x(!1),y(!1))},[j,n]),b(n&&p),(0,i.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(z.mobilePopup,j&&z.mobilePopupOpen,v),children:[(0,i.jsx)(m,{onClose:()=>{n&&(null==a||a())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",O),window.addEventListener("touchend",A))},isOpen:n,delay:0}),(0,i.jsxs)("div",{className:(0,r.Z)(z.content,u&&z.contentFull,k&&z.contentTransition,k&&_&&z.contentTransitionOpen),ref:S,style:{transform:`translateY(${C})`},children:[(0,i.jsx)("div",{className:z.contentLine}),(0,i.jsxs)("div",{className:(0,r.Z)(z.contentContainer,l&&z.smallContentContainer,{[z.min]:!g&&!c},h),children:[!!g&&(0,i.jsx)("div",{className:z.title,children:g}),c?(0,i.jsx)("div",{className:z.closeContainer,children:c?f?"function"==typeof f?f():f:(0,i.jsx)("button",{onClick:a,className:z.closeButton,children:(0,i.jsx)(s.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,i.jsx)(R,{footerClassName:w,isSmallPopup:l,footer:t})]})]})},U=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...o})=>{let{mounted:r}=u({opened:n});return r?(0,i.jsx)(P,{isSmallPopup:t,isOpen:n,...o,children:e}):null};U.displayName="UiMobilePopup";let D=({children:e,id:t="portal-root"})=>{let[n,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let e=document.getElementById(t);if(e){i(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),i(n),()=>{document.body.removeChild(n)}},[t]),n?(0,a.createPortal)(e,n):null}},55487:function(e,t,n){"use strict";n.d(t,{a:function(){return 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})}}},49750:function(e,t,n){"use strict";let i;n.d(t,{D:function(){return l},h:function(){return c}});var o=n(31620),r=n(30631);let s=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,r.AB)(e)}};var l=((i=l||{}).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);let a={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},c=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:i})=>{let r={event:"data-event",eventCategory:e,eventAction:a[t]+(0,o.t)(n)};void 0!==i&&(r.eventLabel=(0,o.t)("string"==typeof i?i:i.toString())),s(r)}},16715:function(e,t,n){"use strict";n.d(t,{CookiesPlate:function(){return u}});var i=n(57437),o=n(2265),r=n(80684),s=n(61994),l=n(55487);let a=(0,n(52074).g)("cookies-plate","sc"),c=Object.freeze({wrapper:"".concat(a,"__wrapper"),contentWrapper:"".concat(a,"__content-wrapper"),visible:"".concat(a,"--visible"),hidden:"".concat(a,"--hidden"),content:"".concat(a,"__content"),text:"".concat(a,"__text"),link:"".concat(a,"__link"),button:"".concat(a,"__button")}),u=e=>{let{className:t,mountDelay:n=3e3,href:a="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",children:u,closeIcon:d,onMount:p,onLinkClick:m,onClose:h,mountAfterScroll:v=!0}=e,[g,f]=(0,o.useState)(!1),[w,_]=(0,o.useState)(!1),[x,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),l.a.getItem("Allow-Cookie")||(b(!0),setTimeout(()=>{f(!0),null==p||p()},n))};return v?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let j=(0,o.useCallback)(()=>{l.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,s.Z)(c.contentWrapper,{[c.visible]:g,[c.hidden]:w}),children:(0,i.jsxs)("div",{className:(0,s.Z)(t,c.content),children:[u||(0,i.jsxs)("p",{className:c.text,children:["Мы используем"," ",(0,i.jsx)("a",{className:c.link,href:a,target:"_blank",rel:"noreferrer",onClick:m,children:"cookie"})," ","для лучшей работы сайта"]}),(0,i.jsx)("button",{className:c.button,onClick:j,children:d||(0,i.jsx)(r.IconFdsCloseO,{})})]})})}):(0,i.jsx)(i.Fragment,{})}},44789:function(e,t,n){"use strict";n.d(t,{CitySelectProvider:function(){return i.C}});var i=n(21395)},17730:function(e,t,n){"use strict";n.d(t,{B:function(){return x}});var i=n(57437),o=n(35563),r=n(61994),s=n(80684),l=n(75461),a=n(49750),c=n(52074),u=n(2265);let d=(0,c.g)("support","sc"),p=Object.freeze({support:d,title:`${d}__title`,cardsContainer:`${d}__cards-container`}),m="cb-support",h=(0,c.g)("support-app-card","sc"),v=Object.freeze({supportAppCard:h,textWrapper:`${h}__text-wrapper`,imageContainer:`${h}__image-container`,title:`${h}__title`,description:`${h}__description`,button:`${h}__button`,imageWrapper:`${h}__image-wrapper`,image:`${h}__image`}),g=({title:e,linkUrl:t,s3Assets:n,description:o})=>{let r=(0,l.aF)("s");return(0,i.jsxs)("div",{className:v.supportAppCard,onClick:()=>{r&&((0,a.h)({eventCategory:m,eventActionType:a.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,i.jsx)(l.zx,{className:v.button,iconLeft:(0,i.jsx)(s.IconFdsArrowUpRightSmallO,{size:24}),shape:"circle-icon",size:"xs"}),(0,i.jsxs)("div",{className:v.textWrapper,children:[(0,i.jsx)("div",{className:v.title,children:e}),!!o&&(0,i.jsx)("div",{className:v.description,children:o})]}),(0,i.jsx)("div",{className:v.imageContainer,children:(0,i.jsxs)("picture",{className:v.imageWrapper,children:[(0,i.jsx)("source",{media:"(max-width: 767px)",srcSet:`${n}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${n}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,i.jsx)("img",{className:v.image,loading:"lazy",src:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},f=(0,c.g)("support-phone-card","sc"),w=Object.freeze({supportPhoneCard:f,contacts:`${f}__contacts`,contactsExtra:`${f}__contacts-extra`,phone:`${f}__phone`,phonesExtra:`${f}__phones-extra`,phoneExtra:`${f}__phone-extra`,chat:`${f}__chat`,text:`${f}__text`,image:`${f}__image`}),_=({phones:e,phonesExtra:t,description:n,s3Assets:o})=>{let r=(0,u.useCallback)(()=>{var e,t,n;null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||n.call(t),(0,a.h)({eventCategory:m,eventActionType:a.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),s=e=>{let t=e.replace(/[\s-]/g,"");(0,a.h)({eventCategory:m,eventActionType:a.D.link,eventActionText:"phone",eventLabel:t})};return(0,i.jsxs)("div",{className:w.supportPhoneCard,children:[(0,i.jsxs)("div",{className:w.contacts,children:[e.map(e=>(0,i.jsx)("a",{className:w.phone,href:e.href,onClick:()=>s(e.label),children:e.label},e.label)),(0,i.jsx)("span",{className:w.chat,onClick:r,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,i.jsxs)("div",{className:w.contactsExtra,children:[(0,i.jsx)("p",{className:w.text,children:"Дополнительные телефоны"}),(0,i.jsx)("div",{className:w.phonesExtra,children:t.map(e=>(0,i.jsx)("a",{className:w.phoneExtra,href:e.href,onClick:()=>s(e.label),children:e.label},e.label))})]}),(0,i.jsx)("p",{className:w.text,children:n}),(0,i.jsx)("img",{className:w.image,src:`${o}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},x=({className:e,phoneCard:t,appCard:n,s3Assets:s})=>(0,i.jsx)("section",{className:(0,r.Z)(p.support,e),children:(0,i.jsxs)(o.W2,{children:[(0,i.jsx)(o.X6,{as:"h2",type:"display",weight:"bold",className:p.title,children:"Поддержка"}),(0,i.jsxs)("div",{className:p.cardsContainer,children:[(0,i.jsx)(_,{s3Assets:s,...t}),(0,i.jsx)(g,{s3Assets:s,...n})]})]})});x.displayName="Support"}}]);