"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1974],{77607:function(e,t,n){n.d(t,{AB:function(){return i}});function i(e){typeof window>"u"||(Array.isArray(window.dataLayer)?window.dataLayer.push(e):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}},66535:function(e,t,n){n.d(t,{W2:function(){return _},X6:function(){return y},Zb:function(){return m},xv:function(){return A}});var i,l=n(67294),o=n(86010),s={exports:{}},r={};s.exports=function(){if(i)return r;i=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(t,i,l){var r,a={},c=null,d=null;for(r in void 0!==l&&(c=""+l),void 0!==i.key&&(c=""+i.key),void 0!==i.ref&&(d=i.ref),i)n.call(i,r)&&!s.hasOwnProperty(r)&&(a[r]=i[r]);if(t&&t.defaultProps)for(r in i=t.defaultProps)void 0===a[r]&&(a[r]=i[r]);return{$$typeof:e,type:t,key:c,ref:d,props:a,_owner:o.current}}return r.Fragment=t,r.jsx=a,r.jsxs=a,r}();var a=s.exports;let c={display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"};function d(e){return`finkit-${e}`}let u=d("caption");Object.freeze({caption:u,captionWithIcon:`${u}--with-icon`,content:`${u}__content`,icon:`${u}__icon`,text:`${u}__text`,states:{success:`${u}--success`,error:`${u}--error`,warning:`${u}--warning`}});let p=d("card"),h={card:p,variants:{primary:`${p}--primary`,secondary:`${p}--secondary`}},m=({as:e,className:t,style:n,children:i,variant:l="primary",dataQa:s,dataId:r,...c})=>a.jsx(e||"div",{className:(0,o.Z)(t,h.card,h.variants[l]),style:n,...c,"data-id":r,"data-qa":s,children:i});m.displayName="Card";let v=d("col");Object.freeze({col:v,state:{size:(e,t)=>!0===t?`${v}--${e}`:`${v}--${e}-${t}`,offsetLeft:(e,t)=>`${v}--${e}-offset-left-${t}`,offsetRight:(e,t)=>`${v}--${e}-offset-right-${t}`}});let f=d("container"),g=Object.freeze({container:f,states:{narrow:`${f}--narrow`}}),_=({children:e,as:t,fluid:n=!1,className:i="",...l})=>a.jsx(t||"div",{className:(0,o.Z)(g.container,i,{[g.states.narrow]:!n}),...l,children:e});_.displayName="Container";let w=d("divider");Object.freeze({divider:w,content:`${w}__content`});let x=d("form-field");Object.freeze({formField:x,labelWrapper:`${x}__label-wrapper`,label:`${x}__label`,description:`${x}__description`});let b={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},j=d("heading"),$=Object.freeze({heading:j,states:Object.freeze({display:`${j}--display`,hero:`${j}--hero`,h1:`${j}--h1`,h2:`${j}--h2`,h3:`${j}--h3`,h4:`${j}--h4`,h5:`${j}--h5`,h6:`${j}--h6`})}),y=({as:e,children:t,weight:n,type:i,lineClamp:l,className:s,style:r,dataQa:d,dataId:u,...p})=>{var h;let m=e||b[i]||"div",v=/^h[1-6]$/.test(m),f=(null==(h=i.match(/\d+/))?void 0:h[0])||1;return a.jsx(m,{className:(0,o.Z)($.heading,$.states[i],s),style:{...n?{fontWeight:`var(--font-weight-${n})`}:void 0,...l?{WebkitLineClamp:l,lineClamp:l,...c}:void 0,...r},role:v?null:"heading","aria-level":v?null:f,...p,"data-id":u,"data-qa":d,children:t})};y.displayName="Heading";let k=d("loader");Object.freeze({loader:k,variant:{primary:`${k}--primary`,purple:`${k}--purple`,accent:`${k}--accent`,white:`${k}--white`},size:{s:`${k}--s`,m:`${k}--m`,l:`${k}--l`}});let N=d("progress-bar");Object.freeze({progressBar:N,rounded:`${N}-rounded`,indicator:`${N}__indicator`,text:`${N}__text`,animationCircle:`${N}__animation-circle`});let C=d("row"),O=(e,t,n)=>`${C}--gutter-${e}-${t}-${n}`;Object.freeze({row:C,state:{reverse:`${C}--reverse`,gutter:(e,t="xs")=>Array.isArray(e)?[O(t,e[0],"h"),O(t,e[1],"v")].join(" "):O(t,e,"h")}});let T=d("skeleton");Object.freeze({skeleton:T,states:{inline:`${T}--inline`,rounded:`${T}--rounded`,inverted:`${T}--inverted`,suspend:`${T}--suspend`}});let S=Object.freeze({text:d("text")});function A({as:e,className:t,style:n,children:i,size:l,weight:s,fontFamily:r,dataQa:c,dataId:d,...u}){return a.jsx(e||"span",{className:(0,o.Z)(S.text,t),style:{...l&&{fontSize:`var(--font-size-${l})`,lineHeight:`var(--font-line-height-${l})`},...s&&{fontWeight:`var(--font-weight-${s})`},...r&&{fontFamily:`var(--font-family-${r})`},...n},...u,"data-id":d,"data-qa":c,children:i})}A.displayName="Text";let I=Object.freeze(Object.keys(Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})})));Object.freeze(I.filter(e=>"xs"!==e)),Object.freeze(I.filter(e=>"3xl"!==e))},81594:function(e,t,n){n.d(t,{D:function(){return A},P:function(){return W},U:function(){return M},u:function(){return b}});var i=n(85893),l=n(86010),o=n(67294),s=n(59194),r=n(84941),a=n(73935);let c=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)},c)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},u=(0,r.g)("click-outside","sc"),p=Object.freeze({overlay:`${u}__overlay`,open:`${u}--open`,close:`${u}--close`}),h=({onClose:e,onToucheMove:t,isOpen:n,delay:s=c})=>{let r=(0,o.useRef)(null),a=(0,o.useCallback)(()=>{e&&(r.current=setTimeout(()=>{e()},s))},[s,e]),d=(0,o.useCallback)(e=>{"Escape"===e.key&&a()},[a]);return(0,o.useEffect)(()=>(n&&window.addEventListener("keydown",d),()=>{r.current&&clearTimeout(r.current),window.removeEventListener("keydown",d)}),[n,d]),(0,i.jsx)("div",{className:(0,l.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:a})},m=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},v=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},f=(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`)},g=e=>{e.style.setProperty("overflow","hidden"),e.style.setProperty("height","100vw")},_=e=>{e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},w=()=>{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,l=document.body,o=document.documentElement,s=window.innerWidth-o.clientWidth,r=s>0;if(e&&r)v(l),f(l,o,s),m(i,!0);else if(e)g(l),m(i,!0);else{let e=!x();e&&_(l),e&&w(),m(i,!1)}return()=>{let e=!x();e&&_(l),e&&w()}},[e]),t},j=(0,r.g)("drawer-footer","sc"),$=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),y=({footer:e,hasScroll:t,className:n})=>(0,i.jsx)("div",{className:(0,l.Z)($.footer,{[$.hasScroll]:t},n),children:"function"==typeof e?e():e}),k=(0,r.g)("drawer-content","sc"),N=Object.freeze({container:`${k}__container`,open:`${k}--open`,close:`${k}--close`,header:`${k}__header`,rowHeader:`${k}__header--row`,title:`${k}__title`,center:`${k}__title--center`,left:`${k}__title--left`,right:`${k}__title--right`,controlContainer:`${k}__control-container`,content:`${k}__content`,footer:`${k}__footer`}),C=({onClose:e,onContentClick:t,children:n,title:r,rowTitle:a,titleAlign:c,isCloseable:d,footer:u,closeButton:p,isOpen:h,contentClassName:m,footerClassName:v,contentStyle:f,width:g})=>{let _=(0,o.useRef)(null),w=(0,o.useRef)(null),[x,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{var e;if(!w.current||!_.current)return;let t=(null==(e=null==w?void 0:w.current)?void 0:e.getBoundingClientRect().top)||0,n=null==_?void 0:_.current,i=()=>{let e=null==w?void 0:w.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",i,!1),()=>{null==n||n.removeEventListener("scroll",i,!1)}},[]);let j=f||g?{width:g,...f||{}}:void 0;return(0,i.jsxs)("div",{ref:_,style:j,className:(0,l.Z)(N.container,{[N.open]:h,[N.close]:!h},m),children:[r||d?(0,i.jsxs)("div",{className:(0,l.Z)(N.header,{[N.rowHeader]:a}),children:[d?p?"function"==typeof p?p():p:(0,i.jsx)("button",{type:"button",className:N.controlContainer,onClick:e,children:(0,i.jsx)(s.IconFdsCloseO,{size:24})}):null,r?(0,i.jsx)("h3",{className:(0,l.Z)(N.title,{[N[c]]:!0}),children:r}):null]}):null,(0,i.jsx)("div",{ref:w,className:N.content,onClick:t,children:n}),u&&(0,i.jsx)(y,{className:(0,l.Z)(N.footer,v),footer:u,hasScroll:x})]})},O=(0,r.g)("drawer-layout","sc"),T=Object.freeze({window:`${O}__window`}),S=({onClose:e,isOpen:t,children:n,withDisabledScroll:s,className:r,...a})=>{let c=(0,o.useCallback)(e=>e.stopPropagation(),[]);return b(t&&s),(0,i.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(T.window,r),children:[(0,i.jsx)(h,{onClose:e,isOpen:t,delay:0}),(0,i.jsx)(C,{onContentClick:c,onClose:e,isOpen:t,...a,children:n})]})},A=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:o=!0,...s})=>{let{mounted:r}=d({opened:e});return r?(0,i.jsx)(S,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:o,...s,children:t}):null};A.displayName="Drawer";let I=(0,r.g)("mobile-modal-footer","sc"),L=Object.freeze({footer:`${I}__footer`,footerWithoutShadow:`${I}__footer--without-shadow`}),z=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,i.jsx)("div",{className:(0,l.Z)(L.footer,t&&L.footerWithoutShadow,n),children:"function"==typeof e?e():e}),R=(0,r.g)("mobile-popup","sc"),Z=Object.freeze({mobilePopup:`${R}`,mobilePopupOpen:`${R}--open`,content:`${R}__content`,contentFull:`${R}__content--full`,contentTransition:`${R}__content--transition`,contentTransitionOpen:`${R}__content--transition-open`,contentLine:`${R}__content-line`,contentContainer:`${R}__content-container`,smallContentContainer:`${R}__content-container--small`,min:`${R}__content-container--min`,title:`${R}__title`,closeContainer:`${R}__close-container`,closeButton:`${R}__close-button`}),E=({children:e,footer:t,isOpen:n,isSmallPopup:r,onClose:a,hasCloseButton:c=!0,full:d,touchDistance:u=100,withDisabledScroll:p=!0,contentClassName:m,className:v,title:f,closeButton:g,footerClassName:_})=>{let[w,x]=(0,o.useState)(!1),[j,$]=(0,o.useState)(!1),[y,k]=(0,o.useState)(!0),[N,C]=(0,o.useState)("120%"),O=(0,o.useRef)(null),T=(0,o.useRef)(0),S=(0,o.useRef)(!1),A=e=>{var t,n,i;let l=null==(t=O.current)?void 0:t.offsetTop,o=null==(n=O.current)?void 0:n.offsetHeight;if(S.current=!0,k(!1),l&&o){let t=(null==(i=null==e?void 0:e.touches[0])?void 0:i.clientY)-l,n=0;t>=0&&t<=o+30&&(n=t),t>o+30&&(n=o+30),C(`${n}px`),T.current=n}},I=()=>{S.current&&(T.current>u&&a?null==a||a():C("0"),k(!0),S.current=!1),window.removeEventListener("touchmove",A),window.removeEventListener("touchend",I)};return(0,o.useEffect)(()=>{n&&setTimeout(()=>{x(!0),$(!0),C("0")},100),!n&&j&&(C("120%"),x(!1),$(!1))},[j,n]),b(n&&p),(0,i.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(Z.mobilePopup,j&&Z.mobilePopupOpen,v),children:[(0,i.jsx)(h,{onClose:()=>{n&&(null==a||a())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",A),window.addEventListener("touchend",I))},isOpen:n,delay:0}),(0,i.jsxs)("div",{className:(0,l.Z)(Z.content,d&&Z.contentFull,y&&Z.contentTransition,y&&w&&Z.contentTransitionOpen),ref:O,style:{transform:`translateY(${N})`},children:[(0,i.jsx)("div",{className:Z.contentLine}),(0,i.jsxs)("div",{className:(0,l.Z)(Z.contentContainer,r&&Z.smallContentContainer,{[Z.min]:!f&&!c},m),children:[!!f&&(0,i.jsx)("div",{className:Z.title,children:f}),c?(0,i.jsx)("div",{className:Z.closeContainer,children:c?g?"function"==typeof g?g():g:(0,i.jsx)("button",{onClick:a,className:Z.closeButton,children:(0,i.jsx)(s.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,i.jsx)(z,{footerClassName:_,isSmallPopup:r,footer:t})]})]})},M=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:o}=d({opened:n});return o?(0,i.jsx)(E,{isSmallPopup:t,isOpen:n,...l,children:e}):null};M.displayName="UiMobilePopup";let W=({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}},84941:function(e,t,n){n.d(t,{g:function(){return i}});function i(e,t){return`finkit-widgets-${t}-${e}`}},89575:function(e,t,n){let i;n.d(t,{D:function(){return a},h:function(){return d}});var l=n(77607);let o={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},s=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in o?o[t]:e}).replaceAll(/[ \u00A0]/g,"_"),r=(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(" ","_"));let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,l.AB)(e)}};var a=((i=a||{}).icon="icon",i.chip="chip",i.accordion="accordion",i.button="button",i.checkbox="checkbox",i.radio="radio",i.select="select",i.toggle="toggle",i.tooltip="tooltip",i.link="link",i.banner="banner",i.tag="tag",i.date="date",i.field="field",i.offer="offer",i.tab="tab",i.submitButton="submitButton",i.popup="popup",i.block="block",i);let c={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_"},d=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:i})=>{let l={event:"data-event",eventCategory:e,eventAction:c[t]+s(n)};void 0!==i&&(l.eventLabel=s("string"==typeof i?i:i.toString())),r(l)}},35862:function(e,t,n){n.d(t,{z:function(){return p}});var i=n(85893),l=n(59194),o=n(86010),s=n(67294),r=n(84941);let a="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",c={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=>{c.setItem(e,"",{"max-age":-1})}},d=(0,r.g)("cookies-plate","sc"),u=Object.freeze({wrapper:`${d}__wrapper`,contentWrapper:`${d}__content-wrapper`,visible:`${d}--visible`,hidden:`${d}--hidden`,content:`${d}__content`,text:`${d}__text`,link:`${d}__link`,button:`${d}__button`}),p=({className:e,mountDelay:t=3e3,href:n=a,children:r,closeIcon:d,onMount:p,onLinkClick:h,onClose:m,mountAfterScroll:v=!0})=>{let[f,g]=(0,s.useState)(!1),[_,w]=(0,s.useState)(!1),[x,b]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),c.getItem("Allow-Cookie")||(b(!0),setTimeout(()=>{g(!0),null==p||p()},t))};return v?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let j=(0,s.useCallback)(()=>{c.setItem("Allow-Cookie","1"),w(!0),null==m||m(),setTimeout(()=>b(!1),1e3)},[m]);return x?(0,i.jsx)("div",{className:u.wrapper,children:(0,i.jsx)("div",{className:(0,o.Z)(u.contentWrapper,{[u.visible]:f,[u.hidden]:_}),children:(0,i.jsxs)("div",{className:(0,o.Z)(e,u.content),children:[r||(0,i.jsxs)("p",{className:u.text,children:["Мы используем"," ",(0,i.jsx)("a",{className:u.link,href:n,target:"_blank",rel:"noreferrer",onClick:h,children:"cookie"})," ","для лучшей работы сайта"]}),(0,i.jsx)("button",{className:u.button,onClick:j,children:d||(0,i.jsx)(l.IconFdsCloseO,{})})]})})}):(0,i.jsx)(i.Fragment,{})}},16817:function(e,t,n){n.d(t,{$:function(){return H}});var i=n(85893),l=n(66535),o=n(86010),s=n(57769),r=n(59194),a=n(84941),c=n(34588),d=n(89575),u=n(67294),p=n(81594);let h=(0,a.g)("footer-contacts-block","sc"),m=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`,ytIcon:`${h}__yt-icon`,link:`${h}__link`}),v=(0,a.g)("footer","sc"),f=Object.freeze({wrapper:`${v}__wrapper`,section:`${v}__section`,container:`${v}__container`,top:`${v}__top`,main:`${v}__main`,links:`${v}__links`,disclaimer:`${v}__disclaimer`,bottom:`${v}__bottom`,bottomLinks:`${v}__bottom-links`,bottomDisclaimer:`${v}__bottom-disclaimer`,compact:`${v}__wrapper--compact`,white:`${v}__wrapper--white`}),g="finkit-widgets-sc-footer",_=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"}],w=[..._,{title:"Онлайн чат",url:void 0}],x=[{type:"vk",className:m.vkIcon,iconName:"vk"},{type:"dzen",className:m.dzenIcon,iconName:"dzen"},{type:"telegramChannel",className:m.tgIcon,iconName:"telegram"},{type:"yt",className:m.ytIcon,iconName:"",icon:(0,i.jsx)(r.IconFdsYoutubeF,{})}],b=(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 - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),j=({onClick:e,eventActionText:t,eventLabel:n,...l})=>(0,i.jsx)(c.zx,{onClick:i=>{null==e||e(i),(0,d.h)({eventCategory:g,eventActionType:d.D.button,eventActionText:t||"",eventLabel:n||""})},...l}),$=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:l,chat:o,...s})=>(0,i.jsx)(c.rU,{onClick:i=>{var s,r,a;null==e||e(i),o&&(null==i||i.preventDefault(),null==(a=null==(r=null==(s=null==window?void 0:window.supportWidget)?void 0:s.craftTalk)?void 0:r.open)||a.call(r)),(0,d.h)({eventCategory:g,eventActionType:t||d.D.link,eventActionText:n||"",eventLabel:l||""})},...s}),y=({minioUrl:e,blogs:t})=>(0,i.jsxs)("div",{className:m.contactsWrapper,children:[(0,i.jsx)(l.xv,{className:m.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,i.jsx)("div",{className:m.phones,children:w.map(({title:e,url:t})=>(0,i.jsx)($,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,i.jsx)(l.xv,{className:m.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,i.jsx)("div",{className:m.contactsButtons,children:x.map(({type:n,className:l,iconName:o,icon:r})=>(0,i.jsx)(j,{as:"a",href:null==t?void 0:t[n],target:"_blank",className:l,iconRight:r||(0,i.jsx)("img",{src:(0,s.xn)(e,`/pl-common-blocks-renderer/footer/${o}.svg`),alt:n,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:n,eventLabel:`${n}_${null==t?void 0:t[n]}`},n))}),(0,i.jsx)(l.xv,{className:m.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,i.jsx)("div",{className:m.contactsButtons,children:(0,i.jsxs)($,{href:null==t?void 0:t.investTg,target:"_blank",className:m.link,eventActionText:"telegram",eventLabel:`telegram_${null==t?void 0:t.investTg}`,children:[(0,i.jsx)(j,{className:m.tgIcon,iconRight:(0,i.jsx)("img",{src:(0,s.xn)(e,"/pl-common-blocks-renderer/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:`telegram_${null==t?void 0:t.investTg}`}),"Финуслуги Инвест"]})})]}),k=(0,a.g)("footer-disclaimer","sc"),N=Object.freeze({disclaimer:`${k}`}),C=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:g,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:`${e.target.textContent}_${e.target.href}`})};return e.disclaimer?(0,i.jsx)("div",{className:(0,o.Z)(e.className,N.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,i.jsx)("div",{className:(0,o.Z)(e.className,N.disclaimer),onClick:t,children:e.children})},O=()=>{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},T=(e="")=>{let[t,n]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let t=O();if(!t||0===t.size)return;let[i,l=""]=e.split("?"),o=new URLSearchParams(l);t.forEach((e,t)=>{o.has(t)||o.set(t,e)});let s=o.toString();n(s?`${i}?${s}`:i)},[e]),t},S=(0,a.g)("footer-modal-body","sc"),A=Object.freeze({wrapper:`${S}__wrapper`,title:`${S}__title`,item:`${S}__item`,label:`${S}__label`,button:`${S}__button`,description:`${S}__description`}),I=({directions:e})=>(0,i.jsxs)("div",{className:A.wrapper,children:[(0,i.jsx)("div",{className:A.title,children:"Направления"}),e.map(e=>(0,i.jsxs)($,{className:A.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,i.jsxs)("div",{className:A.label,children:[(0,i.jsx)("span",{children:e.name}),(0,i.jsx)(j,{className:A.button,iconRight:(0,i.jsx)(r.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,i.jsx)("p",{className:A.description,children:e.description})]},e.url))]}),L=(0,a.g)("footer-popup","sc"),z=Object.freeze({wrapper:`${L}__wrapper`,button:`${L}__button`,icon:`${L}__icon`,buttonWrapper:`${L}__button-wrapper`}),R=({directions:e})=>{let t=(0,c._m)("l"),[n,l]=(0,u.useState)(!1),o=()=>{l(!1)};return(0,i.jsxs)("div",{className:z.wrapper,children:[(0,i.jsx)("div",{className:z.buttonWrapper,children:(0,i.jsx)(j,{className:z.button,appearance:"ghost",variant:"white",onClick:()=>{l(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,i.jsx)("div",{className:z.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,i.jsx)("div",{},e))})})}),(0,i.jsxs)(p.P,{children:[!t&&(0,i.jsx)(p.U,{isOpen:n,onClose:o,full:!0,children:(0,i.jsx)(I,{directions:e})}),t&&(0,i.jsx)(p.D,{isOpen:n,onClose:o,width:"804px",children:(0,i.jsx)(I,{directions:e})})]})]})},Z=(0,a.g)("footer-left-column","sc"),E=Object.freeze({leftColumn:`${Z}__left-column`,logoWrapper:`${Z}__logo-wrapper`,banner:`${Z}__banner`}),M=({showcaseUrl:e,minioUrl:t,directions:n,mobAppUrl:o})=>{let a=T(o);return(0,i.jsxs)("div",{className:E.leftColumn,children:[(0,i.jsx)($,{className:E.logoWrapper,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,i.jsx)("img",{src:(0,s.xn)(t,"/pl-common-blocks-renderer/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,i.jsx)(R,{directions:n??[]}),(0,i.jsx)($,{href:a,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:`Управляйте финансами через приложение Финуслуг_${a}`,children:(0,i.jsxs)(l.Zb,{className:E.banner,children:[(0,i.jsxs)(l.xv,{weight:"medium",children:["Управляйте финансами",(0,i.jsx)("br",{}),"через приложение Финуслуг"]}),(0,i.jsx)(j,{iconRight:(0,i.jsx)(r.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,s.xn)(t,"/pl-common-blocks-renderer/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,i.jsx)("img",{src:(0,s.xn)(t,"/pl-common-blocks-renderer/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},W=(0,a.g)("footer-logo","sc"),P=Object.freeze({wrapper:`${W}__wrapper`,link:`${W}__link`,fromMoex:`${W}__from-moex`,logo:`${W}__logo`,white:`${W}__wrapper--white`}),F=({showcaseUrl:e,minioUrl:t,isWhite:n})=>(0,i.jsx)("div",{className:(0,o.Z)(P.wrapper,{[P.white]:n}),children:(0,i.jsxs)($,{className:P.link,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,i.jsx)("img",{className:P.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`}),(0,i.jsx)("img",{className:P.fromMoex,src:`${t}/images/fromMoex.svg`})]})}),U=(0,a.g)("footer-warning","sc"),B=Object.freeze({reservedSpace:`${U}__reserved-space`,wrapper:`${U}__wrapper`,fixed:`${U}__wrapper--fixed`,container:`${U}__container`}),D=({text:e,fixed:t})=>(0,i.jsx)("div",{className:(0,o.Z)(B.wrapper,{[B.fixed]:t}),children:(0,i.jsx)(l.W2,{className:B.container,children:e})}),V=({text:e})=>(0,i.jsxs)("div",{className:B.reservedSpace,children:[(0,i.jsx)(D,{text:e}),(0,i.jsx)(D,{text:e,fixed:!0})]}),H=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",customDisclaimer:s,variant:r="default"})=>{var a,c;let d=!s&&null!=e&&e.disclaimer?e.disclaimer:void 0,u=r.includes("compact"),p=r.includes("white"),h=null==(a=null==e?void 0:e.bottom)?void 0:a.concat(u?_:[]),m="warning"in e?e.warning:void 0;return(0,i.jsx)("footer",{className:(0,o.Z)(f.wrapper,{[f.compact]:u,[f.white]:p}),children:(0,i.jsxs)("section",{className:f.section,children:[(0,i.jsxs)(l.W2,{className:f.container,children:[!u&&(0,i.jsx)(M,{showcaseUrl:t,minioUrl:n,directions:e.directions,mobAppUrl:e.mobAppUrl}),(0,i.jsx)("div",{className:f.wrapper,children:(0,i.jsxs)("div",{className:f.top,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:f.main,children:[!u&&(0,i.jsx)("div",{className:f.links,children:null==(c=null==e?void 0:e.top)?void 0:c.map(e=>(0,i.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:`${e.title}_${e.url}`,children:e.title},e.url))}),u&&(0,i.jsx)(F,{showcaseUrl:t,minioUrl:n,isWhite:p}),(0,i.jsx)(C,{className:f.disclaimer,disclaimer:d,children:s||b})]}),(0,i.jsxs)("div",{className:f.bottom,children:[(0,i.jsx)("div",{className:f.bottomLinks,children:null==h?void 0:h.map(e=>(0,i.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:`${e.title}_${e.url}`,children:e.title},e.url))}),(0,i.jsx)(C,{className:f.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!u&&(0,i.jsx)(y,{minioUrl:n,blogs:e.blogs})]})})]}),u&&!!m&&(0,i.jsx)(V,{text:m})]})})}},80138:function(e,t,n){n.d(t,{sM:function(){return z},h4:function(){return eL},ar:function(){return L}});var i=n(85893),l=n(67294),o=n(89575),s=n(59194),r=n(66535),a=n(86010),c=n(34588),d=n(81594),u=n(84941);let p=(0,u.g)("navigation","sc"),h=Object.freeze({navigation:`${p}`,navigationOpening:`${p}--opening`,navigationClosing:`${p}--closing`,wrapper:`${p}__wrapper`,container:`${p}__container`,containerOpen:`${p}__container--open`,sections:`${p}__sections`,sectionsOpen:`${p}__sections--open`,citySelectButton:`${p}__city-select-button`,sectionsTitle:`${p}__sections-title`,sectionsWrapper:`${p}__sections-wrapper`,section:`${p}__section`,sectionArrow:`${p}__section-arrow`,sectionExtra:`${p}__section--extra`,sectionActive:`${p}__section--active`,sectionTitle:`${p}__section-title`,chatWrapper:`${p}__chat-wrapper`,chatHeader:`${p}__chat-header`,backButton:`${p}__back-button`,useful:`${p}__useful`,usefulOpen:`${p}__useful--open`,usefulTitle:`${p}__useful-title`,usefulGrid:`${p}__useful-grid`,removed:`${p}__removed`}),m=(e,t,n)=>{(0,o.h)({eventCategory:"finkit-widgets-sc-navigation",eventActionType:e,eventActionText:t,eventLabel:n})},v=(0,u.g)("navigation-chips","sc"),f=Object.freeze({wrapper:`${v}__wrapper`,gray:`${v}__variantGray`,white:`${v}__variantWhite`,container:`${v}__container`,chip:`${v}__chip`,more:`${v}__chip--more`,active:`${v}__chip--active`,label:`${v}__label`,hidden:`${v}__hidden`}),g=(0,u.g)("navigation-content","sc"),_=Object.freeze({contentWrapper:`${g}__content-wrapper`,content:`${g}__content`,contentOpen:`${g}__content--open`,contentHeader:`${g}__content-header`,contentTitle:`${g}__content-title`,contentTitleUrl:`${g}__content-title--url`,contentTitleLink:`${g}__content-title--link`,contentTitleNew:`${g}__content-title--new`,new:`${g}__new`,vip:`${g}__vip`,arrowIcon:`${g}__arrow-icon`,links:`${g}__links`,linksColumns:`${g}__links--columns`,linksTitleless:`${g}__links--titleless`,removed:`${g}__removed`,hidden:`${g}__content--hidden`}),w=({chip:e,hidden:t,onClick:n,refCallback:l,activeChipId:r})=>{let c=!!n,d=()=>{if(c)return null==n?void 0:n(e.url);m(o.D.chip,e.title,`${e.title}_${e.url}`)},u=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:f.label,children:e.title}),e.arrow&&(0,i.jsx)(s.IconFdsArrowUpRightSmallO,{size:24})]}),p=(0,a.Z)(f.chip,{[f.hidden]:t,[_.new]:!!e.new,[_.vip]:!!e.vip,[f.active]:e.url===r});return c?(0,i.jsx)("button",{type:"button",className:p,onClick:d,ref:l,children:u}):(0,i.jsx)("a",{href:e.url,className:p,onClick:d,ref:l,children:u})},x=({items:e=[],maxNumberOfLines:t,variant:n,className:r,activeChipId:c,onClick:d})=>{let u=(0,l.useRef)(null),p=(0,l.useRef)(null),h=(0,l.useRef)({}),[v,g]=(0,l.useState)(!1),[_,x]=(0,l.useState)(e.length),[b,j]=(0,l.useState)(!1);(0,l.useMemo)(()=>{let t=h.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 $=(0,l.useCallback)(()=>{let n=u.current;if(!n)return;let i=e=>e?e.getBoundingClientRect().width:0,l=i(n),o=Math.max(Number(t)||0,0),s=()=>{x(e.length),j(!1)};if(v||0===o||l<=0){s();return}let r=(()=>{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(h.current[e.url]));if(c.some(e=>0===e)){s();return}let d=1,m=0,f=0;for(let e of c){let t=d===o?a+r:0,n=0===m?e:m+r+e;if(n+t<=l-.5)m=n,f++;else{if(++d>o)break;m=e,f++}}j(f<e.length),x(f)},[v,e,t]);(0,l.useLayoutEffect)(()=>{let e=u.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame($)});return t.observe(e),requestAnimationFrame($),()=>{t.disconnect()}},[$]),(0,l.useEffect)(()=>{requestAnimationFrame($)},[$]);let y=v||(t??0)<=0||!b;return(0,i.jsx)("div",{className:(0,a.Z)(r,f.wrapper,{[f.gray]:"gray"===n,[f.white]:"white"===n}),children:(0,i.jsxs)("div",{ref:u,className:f.container,children:[e.map((e,t)=>(0,i.jsx)(w,{chip:e,hidden:!y&&t>=_,activeChipId:c,onClick:d,refCallback:t=>{h.current[e.url]=t}},e.url)),!y&&b&&(0,i.jsxs)("button",{type:"button",ref:p,className:(0,a.Z)(f.chip,f.more),onClick:()=>{m(o.D.chip,"Еще"),g(!0)},children:[(0,i.jsx)(s.IconFdsDotsVerticalO,{size:20}),(0,i.jsx)("span",{className:f.label,children:"Еще"})]}),(y||!b)&&(0,i.jsxs)("button",{type:"button",ref:p,className:(0,a.Z)(f.chip,f.more,f.hidden),tabIndex:-1,"aria-hidden":"true",children:[(0,i.jsx)(s.IconFdsDotsVerticalO,{size:20}),(0,i.jsx)("span",{className:f.label,children:"Еще"})]})]})})};var b=n(57769);let j=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},$=()=>{if(typeof window>"u")return[];if(Array.isArray(window.allRegions)&&window.allRegions.length>0)return window.allRegions;let e=j("all_regions")||[];return window.allRegions=e,e},y=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]),[])},k=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)},N=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},C=(e,t,n)=>{(0,o.h)({eventCategory:A,eventActionType:e,eventActionText:t,eventLabel:n})},O=$(),T=y(O),S={regions:O,towns:T,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},A="finkit-widgets-sc-city-select",I=(0,l.createContext)(S);function L(){return(0,l.useContext)(I)}let z=({children:e,showStartGeoPopup:t=!0,lastRegionsUpdateUnixTimestamp:n,dadataUrl:s="https://finuslugi.ru/backend/money/dadata"})=>{let r=Number(j("lastRegionsUpdateUnixTimestamp")||0),a=Number(n||0)>r,[c,d]=(0,l.useState)($()),[{startRegion:u,startTown:p},h]=(0,l.useState)({startRegion:S.startRegion,startTown:S.startTown}),[{region:m,town:v},f]=(0,l.useState)({region:S.region,town:S.town}),[g,_]=(0,l.useState)(S.startPopupVisible),[w,x]=(0,l.useState)(S.popupVisible),b=(0,l.useRef)(""),O=(0,l.useMemo)(()=>y(c),[c.length]),T=(0,l.useCallback)((e,t)=>{window.sessionStorage.setItem("start_popup_opened","1"),window.localStorage.setItem("auto_town",JSON.stringify(t)||""),window.localStorage.setItem("auto_region",JSON.stringify(e)||""),_(!0),h({startRegion:e,startTown:t})},[_,h]),A=(0,l.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||T(e,t)},[T]),L=(0,l.useCallback)(()=>{if(b.current&&!m&&!v){let e=O.find(e=>e.name===b.current)??null;return A(c.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}A(m,v)},[m,v,O,c,A]),z=(0,l.useCallback)(e=>{x(e)},[x]),R=(0,l.useCallback)(e=>{e?C(o.D.icon,"location"):C(o.D.button,(null==v?void 0:v.name)||"Вся Россия"),!t||window.sessionStorage.getItem("start_popup_opened")?z(!0):L()},[t,v,z,L]),Z=(0,l.useCallback)((e,t)=>{e||t?(window.localStorage.setItem("all_russia_selected","0"),window.localStorage.setItem("user_region",JSON.stringify(e)||""),window.localStorage.setItem("user_town",JSON.stringify(t)||"")):(window.localStorage.setItem("all_russia_selected","1"),window.localStorage.setItem("user_region",""),window.localStorage.setItem("user_town","")),f({region:e||null,town:t||null}),_(!1),z(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[z]),E=()=>{f({region:j("user_region"),town:j("user_town")});let e=async({coords:{latitude:e,longitude:t}})=>{let n=`${s}?lat=${e}&lon=${t}`,i=await N(n);null!=i&&i.location&&(b.current=i.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&t)try{navigator.geolocation.getCurrentPosition(e,()=>null)}catch{}};return(0,l.useEffect)(()=>{if((c.length<1||a)&&k().then(e=>d(e)),window.innerWidth<1024){let e=()=>{E(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{E()},0)},[]),(0,i.jsx)(I.Provider,{value:{regions:c,towns:O,region:m,town:v,startPopupVisible:g,setStartPopupVisible:_,popupVisible:w,handleToggleModal:z,selectCity:Z,handleButtonClick:R,startRegion:u,startTown:p},children:e})},R=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:186,height:48,fill:"none",...e},l.createElement("path",{fill:"#FF0508",d:"M90 0H31v21H0v27h90V0Z"}),l.createElement("path",{fill:"#FFF",d:"m44.97 9.66-.63.03c-2.44.13-3.95 1.64-3.95 4.12 0 2.41 1.48 4.08 3.95 4.21l.63.03V9.66Zm0 12.07v-1.16l-.63-.03c-4.1-.19-6.63-2.57-6.63-6.72 0-4.4 2.6-6.43 6.63-6.62l.63-.03V6h2.7v1.15l.64.03c4.13.19 6.66 2.15 6.66 6.63 0 4.15-2.53 6.53-6.66 6.72l-.64.03v1.15h-2.7v.02Zm2.69-3.67.64-.03c2.41-.12 3.97-1.86 3.97-4.21 0-2.41-1.56-3.99-3.97-4.11l-.64-.03v8.38Zm.19 21.2h1.57c.51 0 .93-.22 1.09-.64L45.9 27.59h3.02l3.11 8.52h.51l3.07-8.52h2.95l-4.2 10.16c-.95 2.32-2.33 3.89-5.03 3.89h-1.48v-2.38Zm9.39-18.4V6.8h2.79v11.52h.51L63.71 6.8h5.22v14.06h-2.78V9.31h-.52l-3.07 11.55h-5.32Zm14.03 20.78V27.58h2.79V39.1h.51l3.17-11.52H83v14.06h-2.79V30.12h-.51l-3.11 11.52h-5.32Zm-43.6-4.8 2.79.39c-.71 2.99-3.05 4.77-6.09 4.77-4.52 0-6.63-3.31-6.63-7.44 0-4.21 2.24-7.33 6.76-7.33 2.76 0 4.87 1.35 5.83 3.96l-2.66 1.19c-.61-1.45-1.63-2.57-3.3-2.57-2.78 0-3.75 2.28-3.75 4.76 0 2.51 1.02 4.86 3.88 4.86 1.7-.01 2.76-1.01 3.17-2.59Zm44.15-15.98V6.8h2.78v5.69h5.6V6.8h2.79v14.06H80.2v-5.82h-5.6v5.82h-2.78ZM31.39 41.64v-2.71h.87c1.22 0 1.66-.68 1.7-2.67l.16-8.62v-.07h9.81v14.06h-2.77V30.12h-4.42l-.13 5.95c-.1 3.89-1.31 5.57-4.04 5.57h-1.18Zm29.15 0V27.58h8.91v2.54h-6.12v11.52h-2.79ZM6.95 39.26h1.56c.52 0 .93-.22 1.09-.64L5 27.59h3.01l3.11 8.52h.51l3.07-8.52h2.95l-4.19 10.16c-.96 2.32-2.34 3.89-5.04 3.89H6.95v-2.38Z"}),l.createElement("path",{d:"M102.13 13.43c1.54 0 2.56-1.16 2.56-3.07s-1.02-3.07-2.56-3.07h-.12c-1.55 0-2.56 1.16-2.56 3.07s1.01 3.07 2.56 3.07h.12ZM102.07 6c2.36-.03 4.09 1.68 4.07 4.36.02 2.68-1.71 4.39-4.07 4.36-2.37.03-4.1-1.68-4.07-4.36-.03-2.68 1.7-4.39 4.07-4.36Zm7.45 1.42h-2.98V6.11h7.41v1.31h-2.98v7.19h-1.45V7.42Zm-1.87 12.39v8.49h-1.43v-7.03l-2.28 7.03h-1.69l-2.34-7.02v7.02h-1.43v-8.49h2.32l2.31 6.96 2.24-6.96h2.3Zm5.78 7.31c1.55 0 2.56-1.16 2.56-3.07 0-1.9-1.01-3.06-2.56-3.06h-.12c-1.54 0-2.55 1.16-2.55 3.06 0 1.91 1.01 3.07 2.55 3.07h.12Zm-.06-7.43c2.37-.03 4.09 1.69 4.07 4.36.02 2.68-1.7 4.4-4.07 4.37-2.37.03-4.1-1.69-4.07-4.37-.03-2.67 1.7-4.39 4.07-4.36Zm9.28 0c2.01-.02 3.39 1.21 3.49 2.86h-1.46c-.07-.49-.29-.86-.64-1.14-.35-.28-.79-.42-1.33-.42h-.12c-1.53-.03-2.54 1.26-2.53 3.06-.01 1.81 1 3.1 2.53 3.07h.12c.54 0 .98-.13 1.33-.41.35-.28.57-.65.64-1.15h1.46c-.1 1.68-1.48 2.88-3.49 2.86-2.5.02-4.06-1.81-4.04-4.37-.02-2.54 1.54-4.39 4.04-4.36Zm7.81 4.7-1.27 1.32v2.59h-1.46v-8.49h1.46v3.98l3.85-3.98h1.83l-3.37 3.5 3.44 4.99h-1.81l-2.67-3.91Zm8.79 2.73c1.55 0 2.56-1.16 2.56-3.07 0-1.9-1.01-3.06-2.56-3.06h-.11c-1.55 0-2.56 1.16-2.56 3.06 0 1.91 1.01 3.07 2.56 3.07h.11Zm-.05-7.43c2.36-.03 4.08 1.69 4.06 4.36.02 2.68-1.7 4.4-4.06 4.37-2.37.03-4.11-1.69-4.08-4.37-.03-2.67 1.71-4.39 4.08-4.36Zm9.33 7.31c.85 0 1.38-.42 1.38-1.19 0-.76-.53-1.18-1.38-1.18h-2.16V27h2.16Zm-.1-3.64c.81 0 1.29-.41 1.29-1.13 0-.71-.48-1.12-1.29-1.12h-2.06v2.25h2.06Zm-3.52-3.55h3.73c1.49-.02 2.56.95 2.54 2.22 0 .48-.13.9-.39 1.24-.26.35-.61.59-1.03.73.93.17 1.6.91 1.6 2.03.02 1.29-1.14 2.29-2.59 2.27h-3.86v-8.49Zm11.69-.12c2.01-.02 3.4 1.21 3.49 2.86h-1.46c-.07-.49-.29-.86-.64-1.14-.35-.28-.79-.42-1.33-.42h-.12c-1.53-.03-2.54 1.26-2.52 3.06-.02 1.81.99 3.1 2.52 3.07h.12c.54 0 .98-.13 1.34-.41.34-.28.56-.65.63-1.15h1.46c-.1 1.68-1.47 2.88-3.49 2.86-2.5.02-4.06-1.81-4.03-4.37-.03-2.54 1.53-4.39 4.03-4.36Zm7.81 4.7-1.27 1.32v2.59h-1.46v-8.49h1.46v3.98l3.85-3.98h1.83l-3.36 3.5 3.43 4.99h-1.81l-2.67-3.91Zm8.8 2.73c1.54 0 2.55-1.16 2.55-3.07 0-1.9-1.01-3.06-2.55-3.06h-.12c-1.55 0-2.56 1.16-2.56 3.06 0 1.91 1.01 3.07 2.56 3.07h.12Zm-.06-7.43c2.36-.03 4.09 1.69 4.06 4.36.03 2.68-1.7 4.4-4.06 4.37-2.37.03-4.11-1.69-4.08-4.37-.03-2.67 1.71-4.39 4.08-4.36Zm8.29-2.17c.05.47.4.71.94.71.54 0 .91-.24.96-.71h1.19c-.02 1.07-.78 1.65-2.15 1.65-1.37 0-2.11-.58-2.13-1.65h1.19Zm4.56 2.29v8.49h-1.45v-6.6l-3.86 6.6h-1.82v-8.49h1.45v6.58l3.84-6.58H186ZM102.07 40.7c.85 0 1.4-.52 1.4-1.36 0-.84-.52-1.28-1.39-1.28h-2.14v2.64h2.13Zm-3.59-7.2h5.87l.01 1.31h-4.42v1.99h2.23c1.95 0 2.75 1.1 2.75 2.47.01 1.52-.89 2.74-2.66 2.72h-3.78V33.5Zm15.12 0v8.49h-1.45v-6.6l-3.86 6.6h-1.82V33.5h1.46v6.58l3.83-6.58h1.84Zm5.66 3.96c.95 0 1.46-.49 1.46-1.33 0-.83-.51-1.32-1.46-1.32h-2.07v2.65h2.07Zm-3.53-3.96h3.72c1.6-.02 2.74 1 2.72 2.63.02 1.64-1.12 2.65-2.72 2.64h-2.26v3.22h-1.46V33.5Zm14.85 4.35-1.43 1.69v2.45h-1.41v-2.44l-1.51-1.68-2.28 4.12h-1.74l2.96-5.27-2.74-3.22h1.69l3.62 4.23V33.5h1.41v4.24l3.64-4.24h1.68l-2.8 3.26 3 5.23h-1.72l-2.37-4.14Zm12.36-4.35v8.49h-1.45v-6.6l-3.86 6.6h-1.82V33.5h1.46v6.58l3.83-6.58h1.84Z",fill:"#1F242E"})),Z=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 88 48",...e},l.createElement("path",{fill:"#FF0508",d:"M90 0H31v21H0v27h90V0Z"}),l.createElement("path",{fill:"#FFF",d:"m44.97 9.66-.63.03c-2.44.13-3.95 1.64-3.95 4.12 0 2.41 1.48 4.08 3.95 4.21l.63.03V9.66Zm0 12.07v-1.16l-.63-.03c-4.1-.19-6.63-2.57-6.63-6.72 0-4.4 2.6-6.43 6.63-6.62l.63-.03V6h2.7v1.15l.64.03c4.13.19 6.66 2.15 6.66 6.63 0 4.15-2.53 6.53-6.66 6.72l-.64.03v1.15h-2.7v.02Zm2.69-3.67.64-.03c2.41-.12 3.97-1.86 3.97-4.21 0-2.41-1.56-3.99-3.97-4.11l-.64-.03v8.38Zm.19 21.2h1.57c.51 0 .93-.22 1.09-.64L45.9 27.59h3.02l3.11 8.52h.51l3.07-8.52h2.95l-4.2 10.16c-.95 2.32-2.33 3.89-5.03 3.89h-1.48v-2.38Zm9.39-18.4V6.8h2.79v11.52h.51L63.71 6.8h5.22v14.06h-2.78V9.31h-.52l-3.07 11.55h-5.32Zm14.03 20.78V27.58h2.79V39.1h.51l3.17-11.52H83v14.06h-2.79V30.12h-.51l-3.11 11.52h-5.32Zm-43.6-4.8 2.79.39c-.71 2.99-3.05 4.77-6.09 4.77-4.52 0-6.63-3.31-6.63-7.44 0-4.21 2.24-7.33 6.76-7.33 2.76 0 4.87 1.35 5.83 3.96l-2.66 1.19c-.61-1.45-1.63-2.57-3.3-2.57-2.78 0-3.75 2.28-3.75 4.76 0 2.51 1.02 4.86 3.88 4.86 1.7-.01 2.76-1.01 3.17-2.59Zm44.15-15.98V6.8h2.78v5.69h5.6V6.8h2.79v14.06H80.2v-5.82h-5.6v5.82h-2.78ZM31.39 41.64v-2.71h.87c1.22 0 1.66-.68 1.7-2.67l.16-8.62v-.07h9.81v14.06h-2.77V30.12h-4.42l-.13 5.95c-.1 3.89-1.31 5.57-4.04 5.57h-1.18Zm29.15 0V27.58h8.91v2.54h-6.12v11.52h-2.79ZM6.95 39.26h1.56c.52 0 .93-.22 1.09-.64L5 27.59h3.01l3.11 8.52h.51l3.07-8.52h2.95l-4.19 10.16c-.96 2.32-2.34 3.89-5.04 3.89H6.95v-2.38Z"})),E=()=>{let e=(0,l.useRef)(null),t=(0,l.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),n=(0,l.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,l.useEffect)(()=>t,[t]),{start:n,clear:t,pending:!!e.current}},M=(0,u.g)("city-select-modal-body","sc"),W=Object.freeze({wrapper:`${M}__wrapper`,subtitle:`${M}__subtitle`,hintWrapper:`${M}__hint-wrapper`,hintText:`${M}__hint-text`,input:`${M}__input`,chips:`${M}__chips`,townsListWrapper:`${M}__towns-list-wrapper`,townsList:`${M}__towns-list`,townsGroup:`${M}__towns-group`,townsGroupLabel:`${M}__towns-group-label`,townsGroupList:`${M}__towns-group-list`,townsName:`${M}__towns-name`,regionName:`${M}__region-name`}),P=({groupedTowns:e,chips:t,query:n,setQuery:r,isDrawer:a})=>{var d;let u=L(),p=(0,l.useRef)(null),[h,m]=(0,l.useState)("10000px");(0,l.useEffect)(()=>{if(!a||!p.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,i)=>{let l=n.map(e=>[...e]),o=l.map(e),s=o.reduce((e,t,n)=>t<o[e]?n:e,0);0===s&&l[0].push(l[1].shift()),2===s&&l[2].unshift(l[1].pop()),1===s&&o[0]>o[2]&&l[1].unshift(l[0].pop()),1===s&&o[0]<o[2]&&l[1].push(l[2].shift());let r=Math.max(...l.map(e));return r>=i?i:t(l,r)};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&&m(`${i}px`)}).observe(p.current)},[]);let v=e=>{if(C(o.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return u.selectCity();let t=u.regions.find(t=>t.id===Number(e.parentId))||null;u.selectCity(t,e)};return(0,i.jsxs)("div",{className:W.wrapper,children:[(0,i.jsxs)("div",{className:W.subtitle,children:["Покажем предложения рядом с вами",(0,i.jsxs)("div",{className:W.hintWrapper,children:[(0,i.jsx)(s.IconFdsQuestionCircleO,{size:24}),(0,i.jsx)("div",{className:W.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,i.jsx)(c.MA,{className:W.input,value:n,onChange:r,size:"s",placeholder:"Введите название города",icon:n?(0,i.jsx)(s.IconFdsCloseCircleO,{size:24,onClick:()=>r("")}):(0,i.jsx)(s.IconFdsSearchO,{size:24})}),(0,i.jsx)(c.cL,{className:W.chips,chips:t,value:(null==(d=u.town)?void 0:d.id)||0,onChipClick:e=>{v(u.towns.find(t=>t.id===e))}}),(0,i.jsx)("div",{className:W.townsListWrapper,children:(0,i.jsx)("div",{ref:p,className:W.townsList,style:{maxHeight:h},children:e.map(e=>(0,i.jsxs)("div",{className:W.townsGroup,children:[(0,i.jsx)("div",{className:W.townsGroupLabel,children:e.letter}),(0,i.jsx)("div",{className:W.townsGroupList,children:e.towns.map(e=>(0,i.jsxs)("button",{type:"button",onClick:()=>v(e),children:[(0,i.jsx)("div",{className:W.townsName,children:e.name}),(0,i.jsx)("div",{className:W.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},F=[1095,1096,134,720,189,180],U=()=>{var e;let t=L(),n=(0,c._m)("l"),[s,r]=(0,l.useState)(""),a=`Ваш выбор: ${(null==(e=t.town)?void 0:e.name)||"Вся Россия"}`,u=(0,l.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(s.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},[]),[s,t.towns.length]),p=(0,l.useMemo)(()=>[{id:0,label:"Вся Россия"},...F.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]),h=()=>{C(o.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:h,full:!0,children:(0,i.jsx)(P,{groupedTowns:u,chips:p,query:s,setQuery:r})}),n&&(0,i.jsx)(d.D,{title:a,isOpen:t.popupVisible,onClose:h,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,i.jsx)(P,{groupedTowns:u,chips:p,query:s,setQuery:r,isDrawer:!0})})]})},B=(0,u.g)("header","sc"),D=Object.freeze({header:`${B}`,fixed:`${B}__fixed`,hidden:`${B}__fixed--hidden`,transparent:`${B}--transparent`,navigationOpen:`${B}__navigation-open`,container:`${B}__container`,leftRow:`${B}__left-row`,logo:`${B}__logo`,logoMobile:`${B}__logo-mobile`,logoDesk:`${B}__logo-desk`,menuItems:`${B}__menu-items`,menuItemActive:`${B}__menu-item-active`,tabletMenuButton:`${B}__tablet-menu-button`,buttonGroup:`${B}__button-group`,chips:`${B}__chips`,menuButton:`${B}__menu-button`,moreButtons:`${B}__more-buttons`,auth:`${B}__auth`,close:`${B}__close`,removed:`${B}__removed`,overlay:`${B}__overlay`,overlayOpening:`${B}__overlay--opening`,overlayClosing:`${B}__overlay--closing`}),V="finkit-widgets-sc-header",H=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],G=H.reduce((e,t)=>(e[t.id]=t.label,e),{}),q=({label:e,onClick:t,eventActionText:n,eventLabel:l,...s})=>(0,i.jsx)(c.zx,{label:e,onClick:e=>{null==t||t(e),(0,o.h)({eventCategory:V,eventActionType:o.D.button,eventActionText:n||"",eventLabel:l||""})},...s}),J=(0,u.g)("header-popup","sc"),Q=Object.freeze({popup:`${J}__popup`,popupHeader:`${J}__popup-header`,popupClose:`${J}__popup-close`,body:`${J}__body`}),Y=({isOpen:e,onClose:t,children:n,title:l})=>{let o=(0,c._m)("l");return(0,i.jsxs)(d.P,{children:[!o&&(0,i.jsx)(d.U,{title:l,isOpen:e,onClose:t,children:n}),o&&e&&(0,i.jsxs)("div",{className:Q.popup,children:[(0,i.jsxs)("div",{className:Q.popupHeader,children:[l,(0,i.jsx)(q,{className:Q.popupClose,iconLeft:(0,i.jsx)(s.IconFdsCloseO,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:t,eventActionText:"IconFdsCloseO"})]}),(0,i.jsx)("div",{className:Q.body,children:n})]})]})},X=(0,u.g)("start-choice-popup","sc"),K=Object.freeze({top:`${X}__top`,progress:`${X}__progress`,innerCircle:`${X}__inner-circle`,title:`${X}__title`,subtitle:`${X}__subtitle`,actions:`${X}__actions`}),ee=()=>{var e,t;let n=L(),[s,r]=(0,l.useState)(10),[a,c]=(0,l.useState)(0),d=(0,l.useRef)(void 0),u=()=>{C(o.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,l.useEffect)(()=>{n.startPopupVisible?(()=>{let e=Number((" "+s).slice(1)),t=1e3*e/100,n=0,i=0;d.current=setInterval(()=>{n++,i+=t,c(3.6*n);let l=e-Math.floor(i/1e3);l<s&&r(l),100===n&&(clearInterval(d.current),u())},t)})():(clearInterval(d.current),r(10),c(0))},[n.startPopupVisible]),(0,i.jsxs)(Y,{isOpen:n.startPopupVisible,onClose:u,title:(0,i.jsx)("button",{type:"button",className:K.progress,style:{background:`conic-gradient(#ff0508 ${a}deg, #e3e7ec 0deg)`},onClick:u,children:(0,i.jsx)("div",{className:K.innerCircle,children:s})}),children:[(0,i.jsxs)("div",{className:K.top,children:[(0,i.jsxs)("div",{className:K.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,i.jsx)("div",{className:K.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,i.jsxs)("div",{className:K.actions,children:[(0,i.jsx)(q,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{C(o.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,i.jsx)(q,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{C(o.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},et=(0,u.g)("city-select","sc"),en=Object.freeze({button:`${et}__button`}),ei=({initialTown:e})=>{var t;let n=L(),l=(null==(t=n.town)?void 0:t.name)||e||"Вся Россия";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.zx,{className:en.button,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>n.handleButtonClick(!1),iconLeft:(0,i.jsx)(s.IconFdsLocationO,{size:16}),label:l}),(0,i.jsx)(U,{}),(0,i.jsx)(ee,{})]})},el={"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"},eo=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(el,e)?el[e]:el["finuslugi.ru"]},es=(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)}})}),ea=()=>{let[e,t]=(0,l.useState)(!1),[n,i]=(0,l.useState)(!1),o=(0,l.useRef)(!1),s=e=>{o.current=e,i(e)};return(0,l.useEffect)(()=>{if(typeof window>"u")return;let e=eo(),n="webchat_main";window.supportWidget={craftTalk:{isOpened:!1,setConfig:t=>{if(t.host&&(e=t.host),t.channel&&(n=t.channel),t.user){let e="function"==typeof t.user?t.user:()=>({...t.user});window.__WebchatUserCallback=e}},open:()=>new Promise(e=>{e()}),close:()=>null,toggle:()=>null}};let i=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((l,r)=>{if(o.current){r(Error("chat is already opened"));return}i?(i.openWidget(),t(!1),l()):(s(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let o=document.querySelector(".webchat");o&&er().observe(o,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),s(!1),t(!1),l()},es(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}},ec=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),l=!1,o=0;window.addEventListener("scroll",function(){let s=window.scrollY||document.documentElement.scrollTop,r=window.innerWidth<768?55:80,a=s<((null==i?void 0:i.clientHeight)||0);if(n&&a||s<r){l=!1,e(!1),t(!0);return}l=s>o,e(s>o),l&&setTimeout(()=>t(!1),50);let c=l?"0px":"";document.documentElement.style.setProperty("--new-header-height-desktop",c),document.documentElement.style.setProperty("--new-header-height-mobile",c),o=s<=0?0:s})},ed=()=>{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},eu=()=>document.cookie.split(";").some(e=>e.trim().startsWith("utm_params=")),ep=(e,t)=>{let n=new Date;n.setTime(n.getTime()+864e5*t);let i=encodeURIComponent(JSON.stringify(e));document.cookie=`utm_params=${i};expires=${n.toUTCString()};path=/;SameSite=Lax`},eh=()=>{if(eu())return;let e=ed();e&&ep(e,90)},em=()=>{setTimeout(()=>{if(!(typeof document>"u"||!document.cookie))try{eh()}catch(e){console.error("UTM tracking error:",e)}},0)},ev=(e,t,n)=>(0,o.h)({eventCategory:V,eventActionType:e,eventActionText:t,eventLabel:n}),ef=(0,l.createContext)({isAuth:!1,isHeaderHidden:!1,isHeaderTransparent:!1,openedBlock:null,setOpenedBlock:()=>null,openedSection:null,setOpenedSection:()=>null,isNavigationOpen:!1,isNavigationMounted:!1,navMenuItemsRef:{current:null},navigationRef:{current:null},ignoreClicks:!1,setIgnoreClicks:()=>null,isChatModalOpen:!1,setIsChatModalOpen:()=>null,isChatLoading:!1});function eg(){return(0,l.useContext)(ef)}let e_=e=>{let[t,n]=(0,l.useState)(!1),[o,s]=(0,l.useState)(!1),[r,a]=(0,l.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p}=ea(),[h,m]=(0,l.useState)(null),[v,f]=(0,l.useState)(null),[g,_]=(0,l.useState)(!1),[w,x]=(0,l.useState)(!1),[b,j]=(0,l.useState)(!1),$=(0,l.useRef)(null),y=(0,d.u)(g),k=(0,l.useRef)(null),N=(0,l.useRef)(null),C=(0,l.useCallback)(()=>{y.current&&y.current.scrollTo({top:0})},[y]),O=(0,l.useCallback)(e=>{f(e),C()},[C]),T=(0,l.useCallback)(e=>{k.current&&clearTimeout(k.current),e&&x(!0),e||(k.current=setTimeout(()=>{x(!1),O(null)},300))},[O]),S=(0,l.useCallback)((e,t,n)=>{if(t&&O(t),!n&&e===h||!e){T(!g),_(!g);return}m(e),T(!0),_(!0)},[h,O,g,T]),A=(0,l.useCallback)(()=>{N.current&&clearTimeout(N.current),j(!0),N.current=setTimeout(()=>{j(!1)},650)},[]);return(0,l.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id")),ec(s,a,e.isMainBannerPage),em()},[]),(0,i.jsx)("div",{children:(0,i.jsx)(ef.Provider,{value:{isAuth:t,isHeaderHidden:o,isHeaderTransparent:r,openedBlock:h,setOpenedBlock:S,openedSection:v,setOpenedSection:O,isNavigationOpen:g,isNavigationMounted:w,navMenuItemsRef:$,navigationRef:y,ignoreClicks:b,setIgnoreClicks:A,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p},children:e.children})})},ew=(0,u.g)("header-chat-modal-body","sc"),ex=Object.freeze({wrapper:`${ew}__wrapper`,cardButton:`${ew}__card-button`,card:`${ew}__card`,cardTitle:`${ew}__card-title`,cardSubtitle:`${ew}__card-subtitle`,button:`${ew}__button`}),eb=()=>{let e=eg();return(0,i.jsxs)("div",{className:ex.wrapper,children:[(0,i.jsx)(q,{className:ex.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)(r.Zb,{className:ex.card,variant:"secondary",children:[(0,i.jsxs)("div",{className:ex.cardTitle,children:[(0,i.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat"}),"Напишите в чат"]}),(0,i.jsxs)("p",{className:ex.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,i.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),(0,i.jsx)(q,{as:"a",href:"https://finuslugi.ru/landing/fingpt",target:"_blank",className:ex.button,variant:"secondary",size:"s",iconLeft:(0,i.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/robot_icon_hover.svg",alt:"robot"}),eventActionText:"Новости от ФинGPT",children:"Новости от ФинGPT"})]})},ej=(0,u.g)("header-chat-modal","sc"),e$=Object.freeze({wrapper:`${ej}__wrapper`}),ey=()=>{let e=eg();return(0,i.jsx)(d.P,{children:(0,i.jsx)(Y,{isOpen:e.isChatModalOpen,onClose:()=>e.setIsChatModalOpen(!1),title:"Нужна помощь?",children:(0,i.jsx)("div",{className:e$.wrapper,children:(0,i.jsx)(eb,{})})})})},ek=({onClick:e,eventActionType:t,eventActionText:n,eventLabel:l,...s})=>(0,i.jsx)(c.rU,{onClick:i=>{null==e||e(i),(0,o.h)({eventCategory:V,eventActionType:t||o.D.link,eventActionText:n||"",eventLabel:l||""})},...s}),eN=({data:e,isMobile:t})=>{let n=eg();return(0,i.jsx)("div",{className:_.contentWrapper,children:e.map(e=>(0,i.jsx)(l.Fragment,{children:e.sections.map(e=>(0,i.jsxs)("div",{className:(0,a.Z)(_.content,{[_.hidden]:n.openedSection!==e.id,[_.contentOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:_.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),e.content.map((n,l)=>{var r,c;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,a.Z)(_.contentTitle,{[_.removed]:!n.title,[_.contentTitleUrl]:!!n.url,[_.contentTitleLink]:!!e.isSeeAllLinkAvailable,[_.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:_.arrowIcon,children:(0,i.jsx)(s.IconFdsArrowUpRightSmallO,{})}),n.title]})})}),!(null!=(r=n.links)&&r.length)&&(0,i.jsx)(x,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:t?3:2}),!!(null!=(c=n.links)&&c.length)&&(0,i.jsx)("div",{className:(0,a.Z)(_.links,{[_.linksColumns]:!!n.columns,[_.linksTitleless]:!n.title}),children:n.links.map(e=>(0,i.jsxs)("a",{href:e.url,className:(0,a.Z)({[_.new]:!!e.new}),onClick:()=>m(o.D.link,e.title,`${e.title}_${e.url}`),children:[(0,i.jsx)("div",{className:_.arrowIcon,children:(0,i.jsx)(s.IconFdsArrowUpRightSmallO,{})}),(0,i.jsx)("span",{children:e.title})]},e.url))})]},`${n.url}_${l}`)})]},e.id))},e.id))})},eC=(0,u.g)("navigation-section-icon","sc"),eO=Object.freeze({icon:`${eC}`}),eT=({name:e,background:t})=>{let n=(0,l.useMemo)(()=>e&&s[e]||null,[e]);return e&&n?(0,i.jsx)("div",{className:eO.icon,style:{background:t},children:(0,i.jsx)(n,{})}):null},eS=({data:e})=>{var t;let n=eg(),d=L(),u=(0,c.aF)("m"),[p,v]=(0,l.useState)(!0);(0,l.useEffect)(()=>{v(u)},[u]);let f=(0,l.useRef)(null),g=(0,l.useCallback)(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>n.openedSection?n.setOpenedSection(null):n.isNavigationOpen?n.setOpenedBlock(null):void 0,50)},[n]),_=(0,l.useRef)(!1),w=(0,l.useRef)(null),x=(0,l.useCallback)(()=>{p&&(_.current=!0,w.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,p]),b=(0,l.useCallback)(()=>{_.current=!1,window.onpopstate=w.current,window.history.go(-1)},[]),j=(0,l.useRef)(null),$=(0,l.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&&!j.current){n.setIgnoreClicks(),j.current=setTimeout(()=>n.setOpenedBlock(null),300);return}!i&&j.current&&(clearTimeout(j.current),j.current=null)},[p,n]),y=(0,l.useRef)(null),k=(0,l.useCallback)(e=>{typeof window>"u"||(e?(y.current=$,window.addEventListener("mousemove",y.current)):y.current&&window.removeEventListener("mousemove",y.current))},[$]);(0,l.useEffect)(()=>{k(n.isNavigationOpen),n.isNavigationOpen&&!_.current&&x(),!n.isNavigationOpen&&_.current&&b()},[n.isNavigationOpen]);let N=(e,t)=>()=>{m(o.D.button,t),n.setOpenedSection(e)},{start:C,clear:O}=E(),T=(e,t)=>()=>{p||C(N(e,t),200)},S=()=>{p||O()};return(0,i.jsx)("div",{ref:n.navigationRef,className:(0,a.Z)(h.navigation,{[h.removed]:!n.isNavigationMounted,[h.navigationOpening]:n.isNavigationOpen,[h.navigationClosing]:!n.isNavigationOpen}),children:(0,i.jsx)("div",{className:h.wrapper,children:(0,i.jsxs)(r.W2,{className:(0,a.Z)(h.container,{[h.containerOpen]:!!n.openedSection}),children:[(0,i.jsxs)("div",{className:(0,a.Z)(h.sections,{[h.sectionsOpen]:!!n.openedSection}),children:[(0,i.jsx)(c.zx,{className:h.citySelectButton,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>d.handleButtonClick(!1),iconLeft:(0,i.jsx)(s.IconFdsLocationO,{size:24}),label:(null==(t=d.town)?void 0:t.name)||"Вся Россия"}),e.map(e=>(0,i.jsxs)("ul",{className:(0,a.Z)(h.sectionsWrapper,{[h.removed]:n.openedBlock!==e.id&&!p}),children:[(0,i.jsx)("div",{className:h.sectionsTitle,children:G[e.id]}),e.sections.map(e=>(0,i.jsxs)("li",{className:(0,a.Z)(h.section,{[h.sectionExtra]:!!e.extra,[h.sectionActive]:n.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:T(e.id,e.title),onMouseLeave:S,children:[(0,i.jsx)(eT,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:h.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:h.sectionArrow,children:(0,i.jsx)(s.IconFdsChevronRightSmallO,{size:24})})]},e.id))]},e.id)),(0,i.jsxs)("div",{className:h.chatWrapper,children:[(0,i.jsx)("div",{className:h.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(eb,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,a.Z)(h.backButton,{[h.removed]:!n.openedSection}),onClick:()=>{m(o.D.button,"Назад"),n.setOpenedSection(null)},children:[(0,i.jsx)(s.IconFdsChevronLeftO,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(eN,{data:e,isMobile:p}),(0,i.jsxs)("div",{className:(0,a.Z)(h.useful,{[h.usefulOpen]:!!n.openedSection}),children:[(0,i.jsx)("div",{className:h.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,i.jsx)(l.Fragment,{children:e.sections.map(e=>(0,i.jsx)("div",{className:(0,a.Z)(h.usefulGrid,{[h.removed]:n.openedSection!==e.id}),children:e.useful.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>m(o.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:"icon",loading:"lazy"})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${t}`))},e.id))},e.id))]})]})})})},eA=(e,t,n)=>{var i,l,o;let s=(null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex(({id:e})=>"news"===e))||-1,r=(null==(o=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l[s])?void 0:o.content)||[];if(e&&Array.isArray(n)&&r.length){let i=n.map(({title:e,url:n})=>({title:e,url:(0,b.xn)(t||"",n),new:0}));e.NAVIGATOR[s].content[0].links=i}return[{id:"FINPRODUCTS",sections:(null==e?void 0:e.FINPRODUCTS)||[]},{id:"NAVIGATOR",sections:(null==e?void 0:e.NAVIGATOR)||[]},{id:"ABOUT",sections:(null==e?void 0:e.ABOUT)||[]}]},eI=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:n="https://assets.finuslugi.ru/mp-assets",lkUrl:c="https://lk.finuslugi.ru/registration",initialTown:d,isMainBannerPage:u,news:p})=>{let h=eg(),m=eA(e,t,p),v=(0,l.useMemo)(()=>m.reduce((e,t)=>(e[t.id]=t.sections[0].id,e),{}),[m]),f=h.isAuth?"Личный кабинет":"Войти",g=u&&h.isHeaderTransparent,_=(e,t,n,i)=>()=>{ev(o.D.toggle,t,String(e!==h.openedBlock));let l=n?v[e]:"";h.setOpenedBlock(e,l,!!i)},{start:w,clear:x}=E(),b=(e,t,n,i)=>()=>{h.isNavigationOpen&&e===h.openedBlock||h.setIgnoreClicks(),w(_(e,t,n,i),200)},j=e=>()=>{h.ignoreClicks||e()},$=e=>h.openedBlock===e&&h.isNavigationOpen;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("header",{className:(0,a.Z)(D.header,{[D.transparent]:g}),children:(0,i.jsx)("div",{className:(0,a.Z)(D.fixed,{[D.hidden]:h.isHeaderHidden,[D.navigationOpen]:h.isNavigationOpen}),children:(0,i.jsxs)(r.W2,{className:D.container,children:[(0,i.jsxs)("div",{className:D.leftRow,children:[(0,i.jsxs)(ek,{className:D.logo,href:t,eventActionType:o.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${t}`,children:[(0,i.jsx)(Z,{className:D.logoMobile}),(0,i.jsx)(R,{className:D.logoDesk})]}),(0,i.jsx)("nav",{ref:h.navMenuItemsRef,className:D.menuItems,children:(0,i.jsx)("ul",{children:H.map(({id:e,label:t})=>(0,i.jsx)("li",{children:(0,i.jsx)(q,{className:(0,a.Z)({[D.menuItemActive]:$(e)}),label:t,eventActionText:t,variant:"white",size:"xs",onClick:j(_(e,t,!0)),onMouseEnter:b(e,t,!0,!0),onMouseLeave:x})},e))})}),(0,i.jsx)(q,{className:(0,a.Z)(D.tabletMenuButton,{[D.menuItemActive]:h.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(s.IconFdsChevronDownO,{size:24}),onClick:_("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:D.buttonGroup,children:[(0,i.jsxs)("div",{className:D.chips,children:[(0,i.jsx)(q,{onClick:()=>h.setIsChatModalOpen(!h.isChatModalOpen),size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,i.jsx)(s.IconFdsChatDotsCircleO,{size:24})}),(0,i.jsx)(q,{as:"a",href:c,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${c}`,iconLeft:(0,i.jsx)(s.IconFdsUserO,{size:24})})]}),(0,i.jsx)(q,{className:D.menuButton,size:"xs",shape:g?"icon":"default",appearance:g?"ghost":"fill",label:"Меню",onClick:_("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(s.IconFdsMenuSkewedO,{size:24})}),(0,i.jsxs)("div",{className:D.moreButtons,children:[(0,i.jsx)(ei,{initialTown:d}),(0,i.jsx)(ey,{}),(0,i.jsx)(q,{onClick:()=>h.setIsChatModalOpen(!h.isChatModalOpen),size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,i.jsx)(s.IconFdsChatDotsCircleO,{size:24})}),(0,i.jsx)(q,{as:"a",href:c,size:"xs",eventActionText:f,eventLabel:`${f}_${c}`,label:f})]})]}),(0,i.jsxs)(ek,{className:D.auth,href:c,eventActionText:f,eventLabel:`${f}_${c}`,children:[(0,i.jsx)(q,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(s.IconFdsUserO,{}),eventActionText:f,eventLabel:`${f}_${c}`}),(0,i.jsx)("p",{children:f})]}),(0,i.jsx)("div",{className:D.close,children:(0,i.jsx)(q,{className:D.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(s.IconFdsCloseO,{}),onClick:()=>h.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})})}),(0,i.jsx)("div",{className:(0,a.Z)(D.overlay,{[D.removed]:!h.isNavigationMounted,[D.overlayOpening]:h.isNavigationOpen,[D.overlayClosing]:!h.isNavigationOpen}),onClick:j(()=>h.setOpenedBlock(null))}),(0,i.jsx)(eS,{data:m,minioUrl:n})]})},eL=e=>(0,i.jsx)(e_,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(eI,{...e})})},57769:function(e,t,n){n.d(t,{xn:function(){return l}});let i=/^\.?\//;function l(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(i,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}Symbol.for("ufo:protocolRelative")}}]);