(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90],{7907:function(e,t,n){"use strict";var o=n(5313);n.o(o,"usePathname")&&n.d(t,{usePathname:function(){return o.usePathname}}),n.o(o,"useRouter")&&n.d(t,{useRouter:function(){return o.useRouter}})},4983:function(e,t,n){"use strict";n.d(t,{default:function(){return l.a}});var o=n(5935),l=n.n(o)},5601:function(e,t){"use strict";function n(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3313:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return o},isEqualNode:function(){return i},default:function(){return r}});let o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function l(e){let{type:t,props:n}=e,l=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let i=o[e]||e.toLowerCase();"script"===t&&("async"===i||"defer"===i||"noModule"===i)?l[i]=!!n[e]:l.setAttribute(i,n[e])}let{children:i,dangerouslySetInnerHTML:r}=n;return r?l.innerHTML=r.__html||"":i&&(l.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):""),l}function i(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let o=t.cloneNode(!0);return o.setAttribute("nonce",""),o.nonce=n,n===e.nonce&&e.isEqualNode(o)}}return e.isEqualNode(t)}function r(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let o=t.title?t.title[0]:null,l="";if(o){let{children:e}=o.props;l="string"==typeof e?e:Array.isArray(e)?e.join(""):""}l!==document.title&&(document.title=l),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],o=n.querySelector("meta[name=next-head-count]"),r=Number(o.content),s=[];for(let t=0,n=o.previousElementSibling;t<r;t++,n=(null==n?void 0:n.previousElementSibling)||null){var c;(null==n?void 0:null==(c=n.tagName)?void 0:c.toLowerCase())===e&&s.push(n)}let a=t.map(l).filter(e=>{for(let t=0,n=s.length;t<n;t++)if(i(s[t],e))return s.splice(t,1),!1;return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),a.forEach(e=>n.insertBefore(e,o)),o.content=(r-s.length+a.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2185:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return o}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5935:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{handleClientScriptLoad:function(){return v},initScriptLoader:function(){return g},default:function(){return w}});let o=n(6921),l=n(1884),i=n(7437),r=o._(n(4887)),s=l._(n(2265)),c=n(7484),a=n(3313),u=n(2185),d=new Map,p=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=e=>{if(r.default.preinit){e.forEach(e=>{r.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},f=e=>{let{src:t,id:n,onLoad:o=()=>{},onReady:l=null,dangerouslySetInnerHTML:i,children:r="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,f=n||t;if(f&&p.has(f))return;if(d.has(t)){p.add(f),d.get(t).then(o,c);return}let v=()=>{l&&l(),p.add(f)},g=document.createElement("script"),_=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),o&&o.call(this,t),v()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});for(let[n,o]of(i?(g.innerHTML=i.__html||"",v()):r?(g.textContent="string"==typeof r?r:Array.isArray(r)?r.join(""):"",v()):t&&(g.src=t,d.set(t,_)),Object.entries(e))){if(void 0===o||h.includes(n))continue;let e=a.DOMAttributeNames[n]||n.toLowerCase();g.setAttribute(e,o)}"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),u&&m(u),document.body.appendChild(g)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>f(e))}):f(e)}function g(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function _(e){let{id:t,src:n="",onLoad:o=()=>{},onReady:l=null,strategy:a="afterInteractive",onError:d,stylesheets:h,...m}=e,{updateScripts:v,scripts:g,getIsSsr:_,appDir:w,nonce:x}=(0,s.useContext)(c.HeadManagerContext),b=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||n;b.current||(l&&e&&p.has(e)&&l(),b.current=!0)},[l,t,n]);let j=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!j.current&&("afterInteractive"===a?f(e):"lazyOnload"===a&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>f(e))})),j.current=!0)},[e,a]),("beforeInteractive"===a||"worker"===a)&&(v?(g[a]=(g[a]||[]).concat([{id:t,src:n,onLoad:o,onReady:l,onError:d,...m}]),v(g)):_&&_()?p.add(t||n):_&&!_()&&f(e)),w){if(h&&h.forEach(e=>{r.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)return n?(r.default.preload(n,m.integrity?{as:"script",integrity:m.integrity}:{as:"script"}),(0,i.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...m,id:t}])+")"}})):(m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:t}])+")"}}));"afterInteractive"===a&&n&&r.default.preload(n,m.integrity?{as:"script",integrity:m.integrity}:{as:"script"})}return null}Object.defineProperty(_,"__nextScript",{value:!0});let w=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4380:function(){},5530:function(){},9030:function(){},8150:function(){},915:function(e,t,n){"use strict";function o(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"))}n.d(t,{AB:function(){return o}})},682:function(e,t,n){"use strict";n.d(t,{D:function(){return I},P:function(){return z},U:function(){return P},u:function(){return b}});var o=n(7437),l=n(3167),i=n(2265),r=n(6094),s=n(3919),c=n(4887);let a=300,u=({opened:e})=>{let[t,n]=(0,i.useState)(!1),o=(0,i.useRef)(null),l=(0,i.useRef)(!1);return(0,i.useEffect)(()=>(e&&!l.current?(l.current=!0,n(!0)):!e&&l.current&&(o.current=setTimeout(()=>{l.current=!1,n(!1)},a)),()=>{o.current&&clearTimeout(o.current)}),[e]),{mounted:t}},d=(0,s.g)("click-outside","sc"),p=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),h=({onClose:e,onToucheMove:t,isOpen:n,delay:r=a})=>{let s=(0,i.useRef)(null),c=(0,i.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},r))},[r,e]),u=(0,i.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,i.useEffect)(()=>(n&&window.addEventListener("keydown",u),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",u)}),[n,u]),(0,o.jsx)("div",{className:(0,l.Z)(p.overlay,{[p.open]:n,[p.close]:!n}),onTouchStart:t,onClick:c})},m=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},f=e=>{e.style.top||(window.prevScrollPosition=window.scrollY)},v=(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,i.useRef)(null),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(n.current===e)return;n.current=e;let o=t.current,l=document.body,i=document.documentElement,r=window.innerWidth-i.clientWidth,s=r>0;if(e&&s)f(l),v(l,i,r),m(o,!0);else if(e)g(l),m(o,!0);else{let e=!x();e&&_(l),e&&w(),m(o,!1)}return()=>{let e=!x();e&&_(l),e&&w()}},[e]),t},j=(0,s.g)("drawer-footer","sc"),y=Object.freeze({footer:`${j}__footer`,hasScroll:`${j}__footer--has-scroll`}),k=({footer:e,hasScroll:t,className:n})=>(0,o.jsx)("div",{className:(0,l.Z)(y.footer,{[y.hasScroll]:t},n),children:"function"==typeof e?e():e}),C=(0,s.g)("drawer-content","sc"),N=Object.freeze({container:`${C}__container`,open:`${C}--open`,close:`${C}--close`,header:`${C}__header`,rowHeader:`${C}__header--row`,title:`${C}__title`,center:`${C}__title--center`,left:`${C}__title--left`,right:`${C}__title--right`,controlContainer:`${C}__control-container`,content:`${C}__content`,footer:`${C}__footer`}),O=({onClose:e,onContentClick:t,children:n,title:s,rowTitle:c,titleAlign:a,isCloseable:u,footer:d,closeButton:p,isOpen:h,contentClassName:m,footerClassName:f,contentStyle:v,width:g})=>{let _=(0,i.useRef)(null),w=(0,i.useRef)(null),[x,b]=(0,i.useState)(!1);(0,i.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,o=()=>{let e=null==w?void 0:w.current;e&&b(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let j=v||g?{width:g,...v||{}}:void 0;return(0,o.jsxs)("div",{ref:_,style:j,className:(0,l.Z)(N.container,{[N.open]:h,[N.close]:!h},m),children:[s||u?(0,o.jsxs)("div",{className:(0,l.Z)(N.header,{[N.rowHeader]:c}),children:[u?p?"function"==typeof p?p():p:(0,o.jsx)("button",{type:"button",className:N.controlContainer,onClick:e,children:(0,o.jsx)(r.IconFdsCloseO,{size:24})}):null,s?(0,o.jsx)("h3",{className:(0,l.Z)(N.title,{[N[a]]:!0}),children:s}):null]}):null,(0,o.jsx)("div",{ref:w,className:N.content,onClick:t,children:n}),d&&(0,o.jsx)(k,{className:(0,l.Z)(N.footer,f),footer:d,hasScroll:x})]})},T=(0,s.g)("drawer-layout","sc"),S=Object.freeze({window:`${T}__window`}),A=({onClose:e,isOpen:t,children:n,withDisabledScroll:r,className:s,...c})=>{let a=(0,i.useCallback)(e=>e.stopPropagation(),[]);return b(t&&r),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(S.window,s),children:[(0,o.jsx)(h,{onClose:e,isOpen:t,delay:0}),(0,o.jsx)(O,{onContentClick:a,onClose:e,isOpen:t,...c,children:n})]})},I=({isOpen:e=!1,children:t,titleAlign:n="center",isCloseable:l=!0,withDisabledScroll:i=!0,...r})=>{let{mounted:s}=u({opened:e});return s?(0,o.jsx)(A,{titleAlign:n,isCloseable:l,isOpen:e,withDisabledScroll:i,...r,children:t}):null};I.displayName="Drawer";let L=(0,s.g)("mobile-modal-footer","sc"),M=Object.freeze({footer:`${L}__footer`,footerWithoutShadow:`${L}__footer--without-shadow`}),R=({footer:e,isSmallPopup:t=!1,footerClassName:n})=>(0,o.jsx)("div",{className:(0,l.Z)(M.footer,t&&M.footerWithoutShadow,n),children:"function"==typeof e?e():e}),E=(0,s.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`}),$=({children:e,footer:t,isOpen:n,isSmallPopup:s,onClose:c,hasCloseButton:a=!0,full:u,touchDistance:d=100,withDisabledScroll:p=!0,contentClassName:m,className:f,title:v,closeButton:g,footerClassName:_})=>{let[w,x]=(0,i.useState)(!1),[j,y]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!0),[N,O]=(0,i.useState)("120%"),T=(0,i.useRef)(null),S=(0,i.useRef)(0),A=(0,i.useRef)(!1),I=e=>{var t,n,o;let l=null==(t=T.current)?void 0:t.offsetTop,i=null==(n=T.current)?void 0:n.offsetHeight;if(A.current=!0,C(!1),l&&i){let t=(null==(o=null==e?void 0:e.touches[0])?void 0:o.clientY)-l,n=0;t>=0&&t<=i+30&&(n=t),t>i+30&&(n=i+30),O(`${n}px`),S.current=n}},L=()=>{A.current&&(S.current>d&&c?null==c||c():O("0"),C(!0),A.current=!1),window.removeEventListener("touchmove",I),window.removeEventListener("touchend",L)};return(0,i.useEffect)(()=>{n&&setTimeout(()=>{x(!0),y(!0),O("0")},100),!n&&j&&(O("120%"),x(!1),y(!1))},[j,n]),b(n&&p),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(Z.mobilePopup,j&&Z.mobilePopupOpen,f),children:[(0,o.jsx)(h,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(x(!1),window.addEventListener("touchmove",I),window.addEventListener("touchend",L))},isOpen:n,delay:0}),(0,o.jsxs)("div",{className:(0,l.Z)(Z.content,u&&Z.contentFull,k&&Z.contentTransition,k&&w&&Z.contentTransitionOpen),ref:T,style:{transform:`translateY(${N})`},children:[(0,o.jsx)("div",{className:Z.contentLine}),(0,o.jsxs)("div",{className:(0,l.Z)(Z.contentContainer,s&&Z.smallContentContainer,{[Z.min]:!v&&!a},m),children:[!!v&&(0,o.jsx)("div",{className:Z.title,children:v}),a?(0,o.jsx)("div",{className:Z.closeContainer,children:a?g?"function"==typeof g?g():g:(0,o.jsx)("button",{onClick:c,className:Z.closeButton,children:(0,o.jsx)(r.IconFdsCloseO,{size:24})}):null}):null,e]}),t&&(0,o.jsx)(R,{footerClassName:_,isSmallPopup:s,footer:t})]})]})},P=({children:e,isSmallPopup:t=!1,isOpen:n=!1,...l})=>{let{mounted:i}=u({opened:n});return i?(0,o.jsx)($,{isSmallPopup:t,isOpen:n,...l,children:e}):null};P.displayName="UiMobilePopup";let z=({children:e,id:t="portal-root"})=>{let[n,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e=document.getElementById(t);if(e){o(e);return}let n=document.createElement("div");return n.id=t,document.body.appendChild(n),o(n),()=>{document.body.removeChild(n)}},[t]),n?(0,c.createPortal)(e,n):null}},3919:function(e,t,n){"use strict";function o(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return o}})},3455:function(e,t,n){"use strict";n.d(t,{D:function(){return c},h:function(){return u}});var o,l=n(915);let i={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},r=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(/[ \u00A0]/g,"_"),s=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),o=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 i=o.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||!i){if(t){let t={...e};t.url=window.location.pathname,o.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(o))}(0,l.AB)(e)}};var c=((o=c||{}).icon="icon",o.chip="chip",o.accordion="accordion",o.button="button",o.checkbox="checkbox",o.radio="radio",o.select="select",o.toggle="toggle",o.tooltip="tooltip",o.link="link",o.banner="banner",o.tag="tag",o.date="date",o.field="field",o.offer="offer",o.tab="tab",o.submitButton="submitButton",o.popup="popup",o.block="block",o);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_"},u=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:o})=>{let l={event:"data-event",eventCategory:e,eventAction:a[t]+r(n)};void 0!==o&&(l.eventLabel=r("string"==typeof o?o:o.toString())),s(l)}},2116:function(e,t,n){"use strict";n.r(t),n.d(t,{CookiesPlate:function(){return d}});var o=n(7437),l=n(6094),i=n(3167),r=n(2265),s=n(3919);let c={getItem:e=>{var t;if(typeof document>"u")return null;let n=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return n&&null!==(t=n.split("=")[1])&&void 0!==t?t:null},setItem:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(typeof document>"u")return;(n={path:"/",...n}).expires instanceof Date&&(n.expires=n.expires.toUTCString());let o="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t));for(let e in n){if(!n.hasOwnProperty(e))continue;o+="; ".concat(e);let t=n[e];!0!==t&&(o+="=".concat(t))}document.cookie=o},removeItem:e=>{c.setItem(e,"",{"max-age":-1})}},a=(0,s.g)("cookies-plate","sc"),u=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")}),d=e=>{let{className:t,mountDelay:n=3e3,href:s="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",children:a,closeIcon:d,onMount:p,onLinkClick:h,onClose:m,mountAfterScroll:f=!0}=e,[v,g]=(0,r.useState)(!1),[_,w]=(0,r.useState)(!1),[x,b]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),c.getItem("Allow-Cookie")||(b(!0),setTimeout(()=>{g(!0),null==p||p()},n))};return f?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let j=(0,r.useCallback)(()=>{c.setItem("Allow-Cookie","1"),w(!0),null==m||m(),setTimeout(()=>b(!1),1e3)},[m]);return x?(0,o.jsx)("div",{className:u.wrapper,children:(0,o.jsx)("div",{className:(0,i.Z)(u.contentWrapper,{[u.visible]:v,[u.hidden]:_}),children:(0,o.jsxs)("div",{className:(0,i.Z)(t,u.content),children:[a||(0,o.jsxs)("p",{className:u.text,children:["Мы используем"," ",(0,o.jsx)("a",{className:u.link,href:s,target:"_blank",rel:"noreferrer",onClick:h,children:"cookie"})," ","для лучшей работы сайта"]}),(0,o.jsx)("button",{className:u.button,onClick:j,children:d||(0,o.jsx)(l.IconFdsCloseO,{})})]})})}):(0,o.jsx)(o.Fragment,{})}},9623:function(e,t,n){"use strict";n.r(t),n.d(t,{Footer:function(){return H}});var o=n(7437),l=n(2833),i=n(3167),r=n(4866),s=n(6094),c=n(3919),a=n(1810),u=n(3455),d=n(2265),p=n(682);let h=(0,c.g)("footer-contacts-block","sc"),m=Object.freeze({contactsWrapper:"".concat(h,"__contacts-wrapper"),gray:"".concat(h,"__gray"),phones:"".concat(h,"__phones"),contactsButtons:"".concat(h,"__contacts-buttons"),vkIcon:"".concat(h,"__vk-icon"),tgIcon:"".concat(h,"__tg-icon"),dzenIcon:"".concat(h,"__dzen-icon"),ytIcon:"".concat(h,"__yt-icon"),link:"".concat(h,"__link")}),f=(0,c.g)("footer","sc"),v=Object.freeze({wrapper:"".concat(f,"__wrapper"),section:"".concat(f,"__section"),container:"".concat(f,"__container"),top:"".concat(f,"__top"),main:"".concat(f,"__main"),links:"".concat(f,"__links"),disclaimer:"".concat(f,"__disclaimer"),bottom:"".concat(f,"__bottom"),bottomLinks:"".concat(f,"__bottom-links"),bottomDisclaimer:"".concat(f,"__bottom-disclaimer"),compact:"".concat(f,"__wrapper--compact"),white:"".concat(f,"__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,o.jsx)(s.IconFdsYoutubeF,{})}],b=(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 - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),j=e=>{let{onClick:t,eventActionText:n,eventLabel:l,...i}=e;return(0,o.jsx)(a.Button,{onClick:e=>{null==t||t(e),(0,u.h)({eventCategory:g,eventActionType:u.D.button,eventActionText:n||"",eventLabel:l||""})},...i})},y=e=>{let{onClick:t,eventActionType:n,eventActionText:l,eventLabel:i,chat:r,...s}=e;return(0,o.jsx)(a.Link,{onClick:e=>{var o,s,c;null==t||t(e),r&&(null==e||e.preventDefault(),null==(c=null==(s=null==(o=null==window?void 0:window.supportWidget)?void 0:o.craftTalk)?void 0:s.open)||c.call(s)),(0,u.h)({eventCategory:g,eventActionType:n||u.D.link,eventActionText:l||"",eventLabel:i||""})},...s})},k=e=>{let{minioUrl:t,blogs:n}=e;return(0,o.jsxs)("div",{className:m.contactsWrapper,children:[(0,o.jsx)(l.xv,{className:m.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,o.jsx)("div",{className:m.phones,children:w.map(e=>{let{title:t,url:n}=e;return(0,o.jsx)(y,{href:n,eventActionText:t,chat:!n,children:t},t)})}),(0,o.jsx)(l.xv,{className:m.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,o.jsx)("div",{className:m.contactsButtons,children:x.map(e=>{let{type:l,className:i,iconName:s,icon:c}=e;return(0,o.jsx)(j,{as:"a",href:null==n?void 0:n[l],target:"_blank",className:i,iconRight:c||(0,o.jsx)("img",{src:(0,r.xn)(t,"/pl-common-blocks-renderer/footer/".concat(s,".svg")),alt:l,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:l,eventLabel:"".concat(l,"_").concat(null==n?void 0:n[l])},l)})}),(0,o.jsx)(l.xv,{className:m.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,o.jsx)("div",{className:m.contactsButtons,children:(0,o.jsxs)(y,{href:null==n?void 0:n.investTg,target:"_blank",className:m.link,eventActionText:"telegram",eventLabel:"telegram_".concat(null==n?void 0:n.investTg),children:[(0,o.jsx)(j,{className:m.tgIcon,iconRight:(0,o.jsx)("img",{src:(0,r.xn)(t,"/pl-common-blocks-renderer/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:"telegram_".concat(null==n?void 0:n.investTg)}),"Финуслуги Инвест"]})})]})},C=(0,c.g)("footer-disclaimer","sc"),N=Object.freeze({disclaimer:"".concat(C)}),O=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,u.h)({eventCategory:g,eventActionType:u.D.link,eventActionText:e.target.textContent||"",eventLabel:"".concat(e.target.textContent,"_").concat(e.target.href)})};return e.disclaimer?(0,o.jsx)("div",{className:(0,i.Z)(e.className,N.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,o.jsx)("div",{className:(0,i.Z)(e.className,N.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},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,d.useState)(e);return(0,d.useEffect)(()=>{let t=T();if(!t||0===t.size)return;let[o,l=""]=e.split("?"),i=new URLSearchParams(l);t.forEach((e,t)=>{i.has(t)||i.set(t,e)});let r=i.toString();n(r?"".concat(o,"?").concat(r):o)},[e]),t},A=(0,c.g)("footer-modal-body","sc"),I=Object.freeze({wrapper:"".concat(A,"__wrapper"),title:"".concat(A,"__title"),item:"".concat(A,"__item"),label:"".concat(A,"__label"),button:"".concat(A,"__button"),description:"".concat(A,"__description")}),L=e=>{let{directions:t}=e;return(0,o.jsxs)("div",{className:I.wrapper,children:[(0,o.jsx)("div",{className:I.title,children:"Направления"}),t.map(e=>(0,o.jsxs)(y,{className:I.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:"".concat(e.name,"_").concat(e.url),children:[(0,o.jsxs)("div",{className:I.label,children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)(j,{className:I.button,iconRight:(0,o.jsx)(s.IconFdsArrowUpRightSmallO,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,o.jsx)("p",{className:I.description,children:e.description})]},e.url))]})},M=(0,c.g)("footer-popup","sc"),R=Object.freeze({wrapper:"".concat(M,"__wrapper"),button:"".concat(M,"__button"),icon:"".concat(M,"__icon"),buttonWrapper:"".concat(M,"__button-wrapper")}),E=e=>{let{directions:t}=e,n=(0,a.useBreakpointUp)("l"),[l,i]=(0,d.useState)(!1),r=()=>{i(!1)};return(0,o.jsxs)("div",{className:R.wrapper,children:[(0,o.jsx)("div",{className:R.buttonWrapper,children:(0,o.jsx)(j,{className:R.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,o.jsx)("div",{className:R.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,o.jsx)("div",{},e))})})}),(0,o.jsxs)(p.P,{children:[!n&&(0,o.jsx)(p.U,{isOpen:l,onClose:r,full:!0,children:(0,o.jsx)(L,{directions:t})}),n&&(0,o.jsx)(p.D,{isOpen:l,onClose:r,width:"804px",children:(0,o.jsx)(L,{directions:t})})]})]})},Z=(0,c.g)("footer-left-column","sc"),$=Object.freeze({leftColumn:"".concat(Z,"__left-column"),logoWrapper:"".concat(Z,"__logo-wrapper"),banner:"".concat(Z,"__banner")}),P=e=>{let{showcaseUrl:t,minioUrl:n,directions:i,mobAppUrl:c}=e,a=S(c);return(0,o.jsxs)("div",{className:$.leftColumn,children:[(0,o.jsx)(y,{className:$.logoWrapper,href:t,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:(0,o.jsx)("img",{src:(0,r.xn)(n,"/pl-common-blocks-renderer/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,o.jsx)(E,{directions:null!=i?i:[]}),(0,o.jsx)(y,{href:a,target:"_blank",eventActionType:u.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:"Управляйте финансами через приложение Финуслуг_".concat(a),children:(0,o.jsxs)(l.Zb,{className:$.banner,children:[(0,o.jsxs)(l.xv,{weight:"medium",children:["Управляйте финансами",(0,o.jsx)("br",{}),"через приложение Финуслуг"]}),(0,o.jsx)(j,{iconRight:(0,o.jsx)(s.IconFdsArrowUpRightSmallO,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcSet:(0,r.xn)(n,"/pl-common-blocks-renderer/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,o.jsx)("img",{src:(0,r.xn)(n,"/pl-common-blocks-renderer/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},z=(0,c.g)("footer-logo","sc"),B=Object.freeze({wrapper:"".concat(z,"__wrapper"),link:"".concat(z,"__link"),fromMoex:"".concat(z,"__from-moex"),logo:"".concat(z,"__logo"),white:"".concat(z,"__wrapper--white")}),F=e=>{let{showcaseUrl:t,minioUrl:n,isWhite:l}=e;return(0,o.jsx)("div",{className:(0,i.Z)(B.wrapper,{[B.white]:l}),children:(0,o.jsxs)(y,{className:B.link,href:t,eventActionType:u.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(t),children:[(0,o.jsx)("img",{className:B.logo,src:"".concat(n,"/images/logo-brandmark-common-finuslugi.svg")}),(0,o.jsx)("img",{className:B.fromMoex,src:"".concat(n,"/images/fromMoex.svg")})]})})},U=(0,c.g)("footer-warning","sc"),D=Object.freeze({reservedSpace:"".concat(U,"__reserved-space"),wrapper:"".concat(U,"__wrapper"),fixed:"".concat(U,"__wrapper--fixed"),container:"".concat(U,"__container")}),V=e=>{let{text:t,fixed:n}=e;return(0,o.jsx)("div",{className:(0,i.Z)(D.wrapper,{[D.fixed]:n}),children:(0,o.jsx)(l.W2,{className:D.container,children:t})})},W=e=>{let{text:t}=e;return(0,o.jsxs)("div",{className:D.reservedSpace,children:[(0,o.jsx)(V,{text:t}),(0,o.jsx)(V,{text:t,fixed:!0})]})},H=e=>{var t,n;let{data:r,showcaseUrl:s="https://finuslugi.ru",minioUrl:c="https://assets.finuslugi.ru/mp-assets",customDisclaimer:a,variant:u="default"}=e,d=!a&&null!=r&&r.disclaimer?r.disclaimer:void 0,p=u.includes("compact"),h=u.includes("white"),m=null==(t=null==r?void 0:r.bottom)?void 0:t.concat(p?_:[]),f="warning"in r?r.warning:void 0;return(0,o.jsx)("footer",{className:(0,i.Z)(v.wrapper,{[v.compact]:p,[v.white]:h}),children:(0,o.jsxs)("section",{className:v.section,children:[(0,o.jsxs)(l.W2,{className:v.container,children:[!p&&(0,o.jsx)(P,{showcaseUrl:s,minioUrl:c,directions:r.directions,mobAppUrl:r.mobAppUrl}),(0,o.jsx)("div",{className:v.wrapper,children:(0,o.jsxs)("div",{className:v.top,children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:v.main,children:[!p&&(0,o.jsx)("div",{className:v.links,children:null==(n=null==r?void 0:r.top)?void 0:n.map(e=>(0,o.jsx)(y,{href:e.url,eventActionText:e.title,eventLabel:"".concat(e.title,"_").concat(e.url),children:e.title},e.url))}),p&&(0,o.jsx)(F,{showcaseUrl:s,minioUrl:c,isWhite:h}),(0,o.jsx)(O,{className:v.disclaimer,disclaimer:d,children:a||b})]}),(0,o.jsxs)("div",{className:v.bottom,children:[(0,o.jsx)("div",{className:v.bottomLinks,children:null==m?void 0:m.map(e=>(0,o.jsx)(y,{href:e.url,eventActionText:e.title,eventLabel:"".concat(e.title,"_").concat(e.url),children:e.title},e.url))}),(0,o.jsx)(O,{className:v.bottomDisclaimer,disclaimer:null==r?void 0:r.bottomDisclaimer})]})]}),!p&&(0,o.jsx)(k,{minioUrl:c,blogs:r.blogs})]})})]}),p&&!!f&&(0,o.jsx)(W,{text:f})]})})}},8818:function(e,t,n){"use strict";n.r(t),n.d(t,{CitySelectProvider:function(){return R},Header:function(){return eM},useCitySelectContext:function(){return M}});var o=n(7437),l=n(2265),i=n(3455),r=n(6094),s=n(2833),c=n(3167),a=n(1810),u=n(682),d=n(3919);let p=(0,d.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,i.h)({eventCategory:"finkit-widgets-sc-navigation",eventActionType:e,eventActionText:t,eventLabel:n})},f=(0,d.g)("navigation-chips","sc"),v=Object.freeze({wrapper:`${f}__wrapper`,gray:`${f}__variantGray`,white:`${f}__variantWhite`,container:`${f}__container`,chip:`${f}__chip`,more:`${f}__chip--more`,active:`${f}__chip--active`,label:`${f}__label`,hidden:`${f}__hidden`}),g=(0,d.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:s})=>{let a=!!n,u=()=>{if(a)return null==n?void 0:n(e.url);m(i.D.chip,e.title,`${e.title}_${e.url}`)},d=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:v.label,children:e.title}),e.arrow&&(0,o.jsx)(r.IconFdsArrowUpRightSmallO,{size:24})]}),p=(0,c.Z)(v.chip,{[v.hidden]:t,[_.new]:!!e.new,[_.vip]:!!e.vip,[v.active]:e.url===s});return a?(0,o.jsx)("button",{type:"button",className:p,onClick:u,ref:l,children:d}):(0,o.jsx)("a",{href:e.url,className:p,onClick:u,ref:l,children:d})},x=({items:e=[],maxNumberOfLines:t,variant:n,className:s,activeChipId:a,onClick:u})=>{let d=(0,l.useRef)(null),p=(0,l.useRef)(null),h=(0,l.useRef)({}),[f,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 y=(0,l.useCallback)(()=>{let n=d.current;if(!n)return;let o=e=>e?e.getBoundingClientRect().width:0,l=o(n),i=Math.max(Number(t)||0,0),r=()=>{x(e.length),j(!1)};if(f||0===i||l<=0){r();return}let s=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),c=o(p.current),a=e.map(e=>o(h.current[e.url]));if(a.some(e=>0===e)){r();return}let u=1,m=0,v=0;for(let e of a){let t=u===i?c+s:0,n=0===m?e:m+s+e;if(n+t<=l-.5)m=n,v++;else{if(++u>i)break;m=e,v++}}j(v<e.length),x(v)},[f,e,t]);(0,l.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(y)});return t.observe(e),requestAnimationFrame(y),()=>{t.disconnect()}},[y]),(0,l.useEffect)(()=>{requestAnimationFrame(y)},[y]);let k=f||(t??0)<=0||!b;return(0,o.jsx)("div",{className:(0,c.Z)(s,v.wrapper,{[v.gray]:"gray"===n,[v.white]:"white"===n}),children:(0,o.jsxs)("div",{ref:d,className:v.container,children:[e.map((e,t)=>(0,o.jsx)(w,{chip:e,hidden:!k&&t>=_,activeChipId:a,onClick:u,refCallback:t=>{h.current[e.url]=t}},e.url)),!k&&b&&(0,o.jsxs)("button",{type:"button",ref:p,className:(0,c.Z)(v.chip,v.more),onClick:()=>{m(i.D.chip,"Еще"),g(!0)},children:[(0,o.jsx)(r.IconFdsDotsVerticalO,{size:20}),(0,o.jsx)("span",{className:v.label,children:"Еще"})]}),(k||!b)&&(0,o.jsxs)("button",{type:"button",ref:p,className:(0,c.Z)(v.chip,v.more,v.hidden),tabIndex:-1,"aria-hidden":"true",children:[(0,o.jsx)(r.IconFdsDotsVerticalO,{size:20}),(0,o.jsx)("span",{className:v.label,children:"Еще"})]})]})})};var b=n(4866);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 "'.concat(e,'": ').concat(t))}return null},y=()=>{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},k=e=>{let t={};return e.map(e=>{let{id:n,name:o,towns:l}=e;return l.forEach(e=>{e.parentId=n,t[e.name]=t[e.name]||{},t[e.name][e.id]=o}),l}).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},C=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("".concat(e),{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},O=(e,t,n)=>{(0,i.h)({eventCategory:I,eventActionType:e,eventActionText:t,eventLabel:n})},T=y(),S=k(T),A={regions:T,towns:S,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},I="finkit-widgets-sc-city-select",L=(0,l.createContext)(A);function M(){return(0,l.useContext)(L)}let R=e=>{let{children:t,showStartGeoPopup:n=!0,lastRegionsUpdateUnixTimestamp:r,dadataUrl:s="https://finuslugi.ru/backend/money/dadata"}=e,c=Number(j("lastRegionsUpdateUnixTimestamp")||0),a=Number(r||0)>c,[u,d]=(0,l.useState)(y()),[{startRegion:p,startTown:h},m]=(0,l.useState)({startRegion:A.startRegion,startTown:A.startTown}),[{region:f,town:v},g]=(0,l.useState)({region:A.region,town:A.town}),[_,w]=(0,l.useState)(A.startPopupVisible),[x,b]=(0,l.useState)(A.popupVisible),T=(0,l.useRef)(""),S=(0,l.useMemo)(()=>k(u),[u.length]),I=(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)||""),w(!0),m({startRegion:e,startTown:t})},[w,m]),M=(0,l.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||I(e,t)},[I]),R=(0,l.useCallback)(()=>{if(T.current&&!f&&!v){var e,t;let n=null!==(e=S.find(e=>e.name===T.current))&&void 0!==e?e:null;return M(null!==(t=u.find(e=>e.id===(null==n?void 0:n.parentId)))&&void 0!==t?t:null,n)}M(f,v)},[f,v,S,u,M]),E=(0,l.useCallback)(e=>{b(e)},[b]),Z=(0,l.useCallback)(e=>{e?O(i.D.icon,"location"):O(i.D.button,(null==v?void 0:v.name)||"Вся Россия"),!n||window.sessionStorage.getItem("start_popup_opened")?E(!0):R()},[n,v,E,R]),$=(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","")),g({region:e||null,town:t||null}),w(!1),E(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[E]),P=()=>{g({region:j("user_region"),town:j("user_town")});let e=async e=>{let{coords:{latitude:t,longitude:n}}=e,o="".concat(s,"?lat=").concat(t,"&lon=").concat(n),l=await N(o);null!=l&&l.location&&(T.current=l.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&n)try{navigator.geolocation.getCurrentPosition(e,()=>null)}catch(e){}};return(0,l.useEffect)(()=>{if((u.length<1||a)&&C().then(e=>d(e)),window.innerWidth<1024){let e=()=>{P(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{P()},0)},[]),(0,o.jsx)(L.Provider,{value:{regions:u,towns:S,region:f,town:v,startPopupVisible:_,setStartPopupVisible:w,popupVisible:x,handleToggleModal:E,selectCity:$,handleButtonClick:Z,startRegion:p,startTown:h},children:t})},E=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"})),$=()=>{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}},P=(0,d.g)("city-select-modal-body","sc"),z=Object.freeze({wrapper:"".concat(P,"__wrapper"),subtitle:"".concat(P,"__subtitle"),hintWrapper:"".concat(P,"__hint-wrapper"),hintText:"".concat(P,"__hint-text"),input:"".concat(P,"__input"),chips:"".concat(P,"__chips"),townsListWrapper:"".concat(P,"__towns-list-wrapper"),townsList:"".concat(P,"__towns-list"),townsGroup:"".concat(P,"__towns-group"),townsGroupLabel:"".concat(P,"__towns-group-label"),townsGroupList:"".concat(P,"__towns-group-list"),townsName:"".concat(P,"__towns-name"),regionName:"".concat(P,"__region-name")}),B=e=>{var t;let{groupedTowns:n,chips:s,query:c,setQuery:u,isDrawer:d}=e,p=M(),h=(0,l.useRef)(null),[m,f]=(0,l.useState)("10000px");(0,l.useEffect)(()=>{if(!d||!h.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,o)=>{let l=n.map(e=>[...e]),i=l.map(e),r=i.reduce((e,t,n)=>t<i[e]?n:e,0);0===r&&l[0].push(l[1].shift()),2===r&&l[2].unshift(l[1].pop()),1===r&&i[0]>i[2]&&l[1].unshift(l[0].pop()),1===r&&i[0]<i[2]&&l[1].push(l[2].shift());let s=Math.max(...l.map(e));return s>=o?o:t(l,s)};new ResizeObserver(()=>{var e;if(!(null!=(e=h.current)&&e.children))return;let n=Array.from(h.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let o=0;try{o=t([[],n,[]],1/0)}catch(e){o=0}o>0&&f("".concat(o,"px"))}).observe(h.current)},[]);let v=e=>{if(O(i.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return p.selectCity();let t=p.regions.find(t=>t.id===Number(e.parentId))||null;p.selectCity(t,e)};return(0,o.jsxs)("div",{className:z.wrapper,children:[(0,o.jsxs)("div",{className:z.subtitle,children:["Покажем предложения рядом с вами",(0,o.jsxs)("div",{className:z.hintWrapper,children:[(0,o.jsx)(r.IconFdsQuestionCircleO,{size:24}),(0,o.jsx)("div",{className:z.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,o.jsx)(a.InputBase,{className:z.input,value:c,onChange:u,size:"s",placeholder:"Введите название города",icon:c?(0,o.jsx)(r.IconFdsCloseCircleO,{size:24,onClick:()=>u("")}):(0,o.jsx)(r.IconFdsSearchO,{size:24})}),(0,o.jsx)(a.Chips,{className:z.chips,chips:s,value:(null==(t=p.town)?void 0:t.id)||0,onChipClick:e=>{v(p.towns.find(t=>t.id===e))}}),(0,o.jsx)("div",{className:z.townsListWrapper,children:(0,o.jsx)("div",{ref:h,className:z.townsList,style:{maxHeight:m},children:n.map(e=>(0,o.jsxs)("div",{className:z.townsGroup,children:[(0,o.jsx)("div",{className:z.townsGroupLabel,children:e.letter}),(0,o.jsx)("div",{className:z.townsGroupList,children:e.towns.map(e=>(0,o.jsxs)("button",{type:"button",onClick:()=>v(e),children:[(0,o.jsx)("div",{className:z.townsName,children:e.name}),(0,o.jsx)("div",{className:z.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},F=[1095,1096,134,720,189,180],U=()=>{var e;let t=M(),n=(0,a.useBreakpointUp)("l"),[r,s]=(0,l.useState)(""),c="Ваш выбор: ".concat((null==(e=t.town)?void 0:e.name)||"Вся Россия"),d=(0,l.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,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=()=>{O(i.D.button,"close"),t.handleToggleModal(!1)};return(0,o.jsxs)(u.P,{children:[!n&&(0,o.jsx)(u.U,{title:c,isOpen:t.popupVisible,onClose:h,full:!0,children:(0,o.jsx)(B,{groupedTowns:d,chips:p,query:r,setQuery:s})}),n&&(0,o.jsx)(u.D,{title:c,isOpen:t.popupVisible,onClose:h,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,o.jsx)(B,{groupedTowns:d,chips:p,query:r,setQuery:s,isDrawer:!0})})]})},D=(0,d.g)("header","sc"),V=Object.freeze({header:"".concat(D),fixed:"".concat(D,"__fixed"),hidden:"".concat(D,"__fixed--hidden"),transparent:"".concat(D,"--transparent"),navigationOpen:"".concat(D,"__navigation-open"),container:"".concat(D,"__container"),leftRow:"".concat(D,"__left-row"),logo:"".concat(D,"__logo"),logoMobile:"".concat(D,"__logo-mobile"),logoDesk:"".concat(D,"__logo-desk"),menuItems:"".concat(D,"__menu-items"),menuItemActive:"".concat(D,"__menu-item-active"),tabletMenuButton:"".concat(D,"__tablet-menu-button"),buttonGroup:"".concat(D,"__button-group"),chips:"".concat(D,"__chips"),menuButton:"".concat(D,"__menu-button"),moreButtons:"".concat(D,"__more-buttons"),auth:"".concat(D,"__auth"),close:"".concat(D,"__close"),removed:"".concat(D,"__removed"),overlay:"".concat(D,"__overlay"),overlayOpening:"".concat(D,"__overlay--opening"),overlayClosing:"".concat(D,"__overlay--closing")}),W="finkit-widgets-sc-header",H=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],q=H.reduce((e,t)=>(e[t.id]=t.label,e),{}),G=e=>{let{label:t,onClick:n,eventActionText:l,eventLabel:r,...s}=e;return(0,o.jsx)(a.Button,{label:t,onClick:e=>{null==n||n(e),(0,i.h)({eventCategory:W,eventActionType:i.D.button,eventActionText:l||"",eventLabel:r||""})},...s})},J=(0,d.g)("header-popup","sc"),Y=Object.freeze({popup:"".concat(J,"__popup"),popupHeader:"".concat(J,"__popup-header"),popupClose:"".concat(J,"__popup-close"),body:"".concat(J,"__body")}),Q=e=>{let{isOpen:t,onClose:n,children:l,title:i}=e,s=(0,a.useBreakpointUp)("l");return(0,o.jsxs)(u.P,{children:[!s&&(0,o.jsx)(u.U,{title:i,isOpen:t,onClose:n,children:l}),s&&t&&(0,o.jsxs)("div",{className:Y.popup,children:[(0,o.jsxs)("div",{className:Y.popupHeader,children:[i,(0,o.jsx)(G,{className:Y.popupClose,iconLeft:(0,o.jsx)(r.IconFdsCloseO,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:n,eventActionText:"IconFdsCloseO"})]}),(0,o.jsx)("div",{className:Y.body,children:l})]})]})},K=(0,d.g)("start-choice-popup","sc"),X=Object.freeze({top:"".concat(K,"__top"),progress:"".concat(K,"__progress"),innerCircle:"".concat(K,"__inner-circle"),title:"".concat(K,"__title"),subtitle:"".concat(K,"__subtitle"),actions:"".concat(K,"__actions")}),ee=()=>{var e,t;let n=M(),[r,s]=(0,l.useState)(10),[c,a]=(0,l.useState)(0),u=(0,l.useRef)(void 0),d=()=>{O(i.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((" "+r).slice(1)),t=1e3*e/100,n=0,o=0;u.current=setInterval(()=>{n++,o+=t,a(3.6*n);let l=e-Math.floor(o/1e3);l<r&&s(l),100===n&&(clearInterval(u.current),d())},t)})():(clearInterval(u.current),s(10),a(0))},[n.startPopupVisible]),(0,o.jsxs)(Q,{isOpen:n.startPopupVisible,onClose:d,title:(0,o.jsx)("button",{type:"button",className:X.progress,style:{background:"conic-gradient(#ff0508 ".concat(c,"deg, #e3e7ec 0deg)")},onClick:d,children:(0,o.jsx)("div",{className:X.innerCircle,children:r})}),children:[(0,o.jsxs)("div",{className:X.top,children:[(0,o.jsxs)("div",{className:X.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,o.jsx)("div",{className:X.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,o.jsxs)("div",{className:X.actions,children:[(0,o.jsx)(G,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{O(i.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,o.jsx)(G,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{O(i.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},et=(0,d.g)("city-select","sc"),en=Object.freeze({button:"".concat(et,"__button")}),eo=e=>{var t;let{initialTown:n}=e,l=M(),i=(null==(t=l.town)?void 0:t.name)||n||"Вся Россия";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Button,{className:en.button,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>l.handleButtonClick(!1),iconLeft:(0,o.jsx)(r.IconFdsLocationO,{size:16}),label:i}),(0,o.jsx)(U,{}),(0,o.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"},ei=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(el,e)?el[e]:el["finuslugi.ru"]},er=(e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="".concat(e,"/assets/css/").concat(t),document.head.appendChild(n);let o=document.createElement("script");o.src="".concat(e,"/get-bootstrap/").concat(t),o.defer=!0,document.body.appendChild(o)},es=()=>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)}})}),ec=()=>{let[e,t]=(0,l.useState)(!1),[n,o]=(0,l.useState)(!1),i=(0,l.useRef)(!1),r=e=>{i.current=e,o(e)};return(0,l.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 o=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((l,s)=>{if(i.current){s(Error("chat is already opened"));return}o?(o.openWidget(),t(!1),l()):(r(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;o=e;let i=document.querySelector(".webchat");i&&es().observe(i,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=o.closeWidget),null==o||o.openWidget(),r(!1),t(!1),l()},er(e,n))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,o;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(o=null==(n=window.supportWidget)?void 0:n.craftTalk)||o.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:n}},ea=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let o=document.getElementById("mainHomeBanner"),l=!1,i=0;window.addEventListener("scroll",function(){let r=window.scrollY||document.documentElement.scrollTop,s=window.innerWidth<768?55:80,c=r<((null==o?void 0:o.clientHeight)||0);if(n&&c||r<s){l=!1,e(!1),t(!0);return}l=r>i,e(r>i),l&&setTimeout(()=>t(!1),50);let a=l?"0px":"";document.documentElement.style.setProperty("--new-header-height-desktop",a),document.documentElement.style.setProperty("--new-header-height-mobile",a),i=r<=0?0:r})},eu=()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,o]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=o);return Object.keys(t).length>0?t:null},ed=()=>document.cookie.split(";").some(e=>e.trim().startsWith("utm_params=")),ep=(e,t)=>{let n=new Date;n.setTime(n.getTime()+864e5*t);let o=encodeURIComponent(JSON.stringify(e));document.cookie="utm_params=".concat(o,";expires=").concat(n.toUTCString(),";path=/;SameSite=Lax")},eh=()=>{if(ed())return;let e=eu();e&&ep(e,90)},em=()=>{setTimeout(()=>{if(!(typeof document>"u"||!document.cookie))try{eh()}catch(e){console.error("UTM tracking error:",e)}},0)},ef=(e,t,n)=>(0,i.h)({eventCategory:W,eventActionType:e,eventActionText:t,eventLabel:n}),ev=(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)(ev)}let e_=e=>{let[t,n]=(0,l.useState)(!1),[i,r]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!!e.isMainBannerPage),{isChatModalOpen:a,setIsChatModalOpen:d,isChatLoading:p}=ec(),[h,m]=(0,l.useState)(null),[f,v]=(0,l.useState)(null),[g,_]=(0,l.useState)(!1),[w,x]=(0,l.useState)(!1),[b,j]=(0,l.useState)(!1),y=(0,l.useRef)(null),k=(0,u.u)(g),C=(0,l.useRef)(null),N=(0,l.useRef)(null),O=(0,l.useCallback)(()=>{k.current&&k.current.scrollTo({top:0})},[k]),T=(0,l.useCallback)(e=>{v(e),O()},[O]),S=(0,l.useCallback)(e=>{C.current&&clearTimeout(C.current),e&&x(!0),e||(C.current=setTimeout(()=>{x(!1),T(null)},300))},[T]),A=(0,l.useCallback)((e,t,n)=>{if(t&&T(t),!n&&e===h||!e){S(!g),_(!g);return}m(e),S(!0),_(!0)},[h,T,g,S]),I=(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")),ea(r,c,e.isMainBannerPage),em()},[]),(0,o.jsx)("div",{children:(0,o.jsx)(ev.Provider,{value:{isAuth:t,isHeaderHidden:i,isHeaderTransparent:s,openedBlock:h,setOpenedBlock:A,openedSection:f,setOpenedSection:T,isNavigationOpen:g,isNavigationMounted:w,navMenuItemsRef:y,navigationRef:k,ignoreClicks:b,setIgnoreClicks:I,isChatModalOpen:a,setIsChatModalOpen:d,isChatLoading:p},children:e.children})})},ew=(0,d.g)("header-chat-modal-body","sc"),ex=Object.freeze({wrapper:"".concat(ew,"__wrapper"),cardButton:"".concat(ew,"__card-button"),card:"".concat(ew,"__card"),cardTitle:"".concat(ew,"__card-title"),cardSubtitle:"".concat(ew,"__card-subtitle"),button:"".concat(ew,"__button")}),eb=()=>{let e=eg();return(0,o.jsxs)("div",{className:ex.wrapper,children:[(0,o.jsx)(G,{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,o.jsxs)(s.Zb,{className:ex.card,variant:"secondary",children:[(0,o.jsxs)("div",{className:ex.cardTitle,children:[(0,o.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat"}),"Напишите в чат"]}),(0,o.jsxs)("p",{className:ex.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,o.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),(0,o.jsx)(G,{as:"a",href:"https://finuslugi.ru/landing/fingpt",target:"_blank",className:ex.button,variant:"secondary",size:"s",iconLeft:(0,o.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/robot_icon_hover.svg",alt:"robot"}),eventActionText:"Новости от ФинGPT",children:"Новости от ФинGPT"})]})},ej=(0,d.g)("header-chat-modal","sc"),ey=Object.freeze({wrapper:"".concat(ej,"__wrapper")}),ek=()=>{let e=eg();return(0,o.jsx)(u.P,{children:(0,o.jsx)(Q,{isOpen:e.isChatModalOpen,onClose:()=>e.setIsChatModalOpen(!1),title:"Нужна помощь?",children:(0,o.jsx)("div",{className:ey.wrapper,children:(0,o.jsx)(eb,{})})})})},eC=e=>{let{onClick:t,eventActionType:n,eventActionText:l,eventLabel:r,...s}=e;return(0,o.jsx)(a.Link,{onClick:e=>{null==t||t(e),(0,i.h)({eventCategory:W,eventActionType:n||i.D.link,eventActionText:l||"",eventLabel:r||""})},...s})},eN=e=>{let{data:t,isMobile:n}=e,s=eg();return(0,o.jsx)("div",{className:_.contentWrapper,children:t.map(e=>(0,o.jsx)(l.Fragment,{children:e.sections.map(e=>(0,o.jsxs)("div",{className:(0,c.Z)(_.content,{[_.hidden]:s.openedSection!==e.id,[_.contentOpen]:!!s.openedSection}),children:[(0,o.jsx)("div",{className:_.contentHeader,children:(0,o.jsx)("label",{children:e.title})}),e.content.map((t,l)=>{var s,a;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{children:(0,o.jsx)("a",{className:(0,c.Z)(_.contentTitle,{[_.removed]:!t.title,[_.contentTitleUrl]:!!t.url,[_.contentTitleLink]:!!e.isSeeAllLinkAvailable,[_.contentTitleNew]:!!t.new}),href:e.isSeeAllLinkAvailable?t.url:void 0,children:(0,o.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,o.jsx)("div",{className:_.arrowIcon,children:(0,o.jsx)(r.IconFdsArrowUpRightSmallO,{})}),t.title]})})}),!(null!=(s=t.links)&&s.length)&&(0,o.jsx)(x,{items:t.chips||[],maxNumberOfLines:e.content.length<=1?99:n?3:2}),!!(null!=(a=t.links)&&a.length)&&(0,o.jsx)("div",{className:(0,c.Z)(_.links,{[_.linksColumns]:!!t.columns,[_.linksTitleless]:!t.title}),children:t.links.map(e=>(0,o.jsxs)("a",{href:e.url,className:(0,c.Z)({[_.new]:!!e.new}),onClick:()=>m(i.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,o.jsx)("div",{className:_.arrowIcon,children:(0,o.jsx)(r.IconFdsArrowUpRightSmallO,{})}),(0,o.jsx)("span",{children:e.title})]},e.url))})]},"".concat(t.url,"_").concat(l))})]},e.id))},e.id))})},eO=(0,d.g)("navigation-section-icon","sc"),eT=Object.freeze({icon:"".concat(eO)}),eS=e=>{let{name:t,background:n}=e,i=(0,l.useMemo)(()=>t&&r[t]||null,[t]);return t&&i?(0,o.jsx)("div",{className:eT.icon,style:{background:n},children:(0,o.jsx)(i,{})}):null},eA=e=>{var t;let{data:n}=e,u=eg(),d=M(),p=(0,a.useBreakpointDown)("m"),[f,v]=(0,l.useState)(!0);(0,l.useEffect)(()=>{v(p)},[p]);let g=(0,l.useRef)(null),_=(0,l.useCallback)(()=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>u.openedSection?u.setOpenedSection(null):u.isNavigationOpen?u.setOpenedBlock(null):void 0,50)},[u]),w=(0,l.useRef)(!1),x=(0,l.useRef)(null),b=(0,l.useCallback)(()=>{f&&(w.current=!0,x.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),_()},window.history.pushState(null,"",window.location.href))},[_,f]),j=(0,l.useCallback)(()=>{w.current=!1,window.onpopstate=x.current,window.history.go(-1)},[]),y=(0,l.useRef)(null),k=(0,l.useCallback)(e=>{if(f||!u.navMenuItemsRef.current||!u.navigationRef.current)return;let t=e.target,n=!u.navMenuItemsRef.current.contains(t)&&!u.navigationRef.current.contains(t);if(n&&!y.current){u.setIgnoreClicks(),y.current=setTimeout(()=>u.setOpenedBlock(null),300);return}!n&&y.current&&(clearTimeout(y.current),y.current=null)},[f,u]),C=(0,l.useRef)(null),N=(0,l.useCallback)(e=>{typeof window>"u"||(e?(C.current=k,window.addEventListener("mousemove",C.current)):C.current&&window.removeEventListener("mousemove",C.current))},[k]);(0,l.useEffect)(()=>{N(u.isNavigationOpen),u.isNavigationOpen&&!w.current&&b(),!u.isNavigationOpen&&w.current&&j()},[u.isNavigationOpen]);let O=(e,t)=>()=>{m(i.D.button,t),u.setOpenedSection(e)},{start:T,clear:S}=$(),A=(e,t)=>()=>{f||T(O(e,t),200)},I=()=>{f||S()};return(0,o.jsx)("div",{ref:u.navigationRef,className:(0,c.Z)(h.navigation,{[h.removed]:!u.isNavigationMounted,[h.navigationOpening]:u.isNavigationOpen,[h.navigationClosing]:!u.isNavigationOpen}),children:(0,o.jsx)("div",{className:h.wrapper,children:(0,o.jsxs)(s.W2,{className:(0,c.Z)(h.container,{[h.containerOpen]:!!u.openedSection}),children:[(0,o.jsxs)("div",{className:(0,c.Z)(h.sections,{[h.sectionsOpen]:!!u.openedSection}),children:[(0,o.jsx)(a.Button,{className:h.citySelectButton,variant:"purple",appearance:"ghost",size:"xs",onClick:()=>d.handleButtonClick(!1),iconLeft:(0,o.jsx)(r.IconFdsLocationO,{size:24}),label:(null==(t=d.town)?void 0:t.name)||"Вся Россия"}),n.map(e=>(0,o.jsxs)("ul",{className:(0,c.Z)(h.sectionsWrapper,{[h.removed]:u.openedBlock!==e.id&&!f}),children:[(0,o.jsx)("div",{className:h.sectionsTitle,children:q[e.id]}),e.sections.map(e=>(0,o.jsxs)("li",{className:(0,c.Z)(h.section,{[h.sectionExtra]:!!e.extra,[h.sectionActive]:u.openedSection===e.id}),onClick:O(e.id,e.title),onMouseEnter:A(e.id,e.title),onMouseLeave:I,children:[(0,o.jsx)(eS,{name:e.uikitIcon,background:e.uikitIconBg}),(0,o.jsx)("span",{className:h.sectionTitle,children:e.title}),(0,o.jsx)("div",{className:h.sectionArrow,children:(0,o.jsx)(r.IconFdsChevronRightSmallO,{size:24})})]},e.id))]},e.id)),(0,o.jsxs)("div",{className:h.chatWrapper,children:[(0,o.jsx)("div",{className:h.chatHeader,children:"Нужна помощь?"}),(0,o.jsx)(eb,{})]})]}),(0,o.jsxs)("button",{type:"button",className:(0,c.Z)(h.backButton,{[h.removed]:!u.openedSection}),onClick:()=>{m(i.D.button,"Назад"),u.setOpenedSection(null)},children:[(0,o.jsx)(r.IconFdsChevronLeftO,{size:24}),(0,o.jsx)("span",{children:"Назад"})]}),(0,o.jsx)(eN,{data:n,isMobile:f}),(0,o.jsxs)("div",{className:(0,c.Z)(h.useful,{[h.usefulOpen]:!!u.openedSection}),children:[(0,o.jsx)("div",{className:h.usefulTitle,children:"Полезное на Финуслугах"}),n.map(e=>(0,o.jsx)(l.Fragment,{children:e.sections.map(e=>(0,o.jsx)("div",{className:(0,c.Z)(h.usefulGrid,{[h.removed]:u.openedSection!==e.id}),children:e.useful.map((e,t)=>(0,o.jsxs)("a",{href:e.url,onClick:()=>m(i.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,o.jsx)("div",{children:(0,o.jsx)("img",{src:e.icon,srcSet:e.icon2?"".concat(e.icon,", ").concat(e.icon2," 2x"):void 0,alt:"icon",loading:"lazy"})}),(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},"".concat(e.title,"_").concat(t)))},e.id))},e.id))]})]})})})},eI=(e,t,n)=>{var o,l,i;let r=(null==(o=null==e?void 0:e.NAVIGATOR)?void 0:o.findIndex(e=>{let{id:t}=e;return"news"===t}))||-1,s=(null==(i=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l[r])?void 0:i.content)||[];if(e&&Array.isArray(n)&&s.length){let o=n.map(e=>{let{title:n,url:o}=e;return{title:n,url:(0,b.xn)(t||"",o),new:0}});e.NAVIGATOR[r].content[0].links=o}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)||[]}]},eL=e=>{let{data:t,showcaseUrl:n="https://finuslugi.ru",minioUrl:a="https://assets.finuslugi.ru/mp-assets",lkUrl:u="https://lk.finuslugi.ru/registration",initialTown:d,isMainBannerPage:p,news:h}=e,m=eg(),f=eI(t,n,h),v=(0,l.useMemo)(()=>f.reduce((e,t)=>(e[t.id]=t.sections[0].id,e),{}),[f]),g=m.isAuth?"Личный кабинет":"Войти",_=p&&m.isHeaderTransparent,w=(e,t,n,o)=>()=>{ef(i.D.toggle,t,String(e!==m.openedBlock));let l=n?v[e]:"";m.setOpenedBlock(e,l,!!o)},{start:x,clear:b}=$(),j=(e,t,n,o)=>()=>{m.isNavigationOpen&&e===m.openedBlock||m.setIgnoreClicks(),x(w(e,t,n,o),200)},y=e=>()=>{m.ignoreClicks||e()},k=e=>m.openedBlock===e&&m.isNavigationOpen;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("header",{className:(0,c.Z)(V.header,{[V.transparent]:_}),children:(0,o.jsx)("div",{className:(0,c.Z)(V.fixed,{[V.hidden]:m.isHeaderHidden,[V.navigationOpen]:m.isNavigationOpen}),children:(0,o.jsxs)(s.W2,{className:V.container,children:[(0,o.jsxs)("div",{className:V.leftRow,children:[(0,o.jsxs)(eC,{className:V.logo,href:n,eventActionType:i.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(n),children:[(0,o.jsx)(Z,{className:V.logoMobile}),(0,o.jsx)(E,{className:V.logoDesk})]}),(0,o.jsx)("nav",{ref:m.navMenuItemsRef,className:V.menuItems,children:(0,o.jsx)("ul",{children:H.map(e=>{let{id:t,label:n}=e;return(0,o.jsx)("li",{children:(0,o.jsx)(G,{className:(0,c.Z)({[V.menuItemActive]:k(t)}),label:n,eventActionText:n,variant:"white",size:"xs",onClick:y(w(t,n,!0)),onMouseEnter:j(t,n,!0,!0),onMouseLeave:b})},t)})})}),(0,o.jsx)(G,{className:(0,c.Z)(V.tabletMenuButton,{[V.menuItemActive]:m.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,o.jsx)(r.IconFdsChevronDownO,{size:24}),onClick:w("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,o.jsxs)("div",{className:V.buttonGroup,children:[(0,o.jsxs)("div",{className:V.chips,children:[(0,o.jsx)(G,{onClick:()=>m.setIsChatModalOpen(!m.isChatModalOpen),size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,o.jsx)(r.IconFdsChatDotsCircleO,{size:24})}),(0,o.jsx)(G,{as:"a",href:u,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:"profile_".concat(u),iconLeft:(0,o.jsx)(r.IconFdsUserO,{size:24})})]}),(0,o.jsx)(G,{className:V.menuButton,size:"xs",shape:_?"icon":"default",appearance:_?"ghost":"fill",label:"Меню",onClick:w("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,o.jsx)(r.IconFdsMenuSkewedO,{size:24})}),(0,o.jsxs)("div",{className:V.moreButtons,children:[(0,o.jsx)(eo,{initialTown:d}),(0,o.jsx)(ek,{}),(0,o.jsx)(G,{onClick:()=>m.setIsChatModalOpen(!m.isChatModalOpen),size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,o.jsx)(r.IconFdsChatDotsCircleO,{size:24})}),(0,o.jsx)(G,{as:"a",href:u,size:"xs",eventActionText:g,eventLabel:"".concat(g,"_").concat(u),label:g})]})]}),(0,o.jsxs)(eC,{className:V.auth,href:u,eventActionText:g,eventLabel:"".concat(g,"_").concat(u),children:[(0,o.jsx)(G,{size:"xs",shape:"circle-icon",iconLeft:(0,o.jsx)(r.IconFdsUserO,{}),eventActionText:g,eventLabel:"".concat(g,"_").concat(u)}),(0,o.jsx)("p",{children:g})]}),(0,o.jsx)("div",{className:V.close,children:(0,o.jsx)(G,{className:V.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,o.jsx)(r.IconFdsCloseO,{}),onClick:()=>m.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})})}),(0,o.jsx)("div",{className:(0,c.Z)(V.overlay,{[V.removed]:!m.isNavigationMounted,[V.overlayOpening]:m.isNavigationOpen,[V.overlayClosing]:!m.isNavigationOpen}),onClick:y(()=>m.setOpenedBlock(null))}),(0,o.jsx)(eA,{data:f,minioUrl:a})]})},eM=e=>(0,o.jsx)(e_,{isMainBannerPage:e.isMainBannerPage,children:(0,o.jsx)(eL,{...e})})},4866:function(e,t,n){"use strict";n.d(t,{xn:function(){return l}});let o=/^\.?\//;function l(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(o,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}Symbol.for("ufo:protocolRelative")}}]);