(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[708],{16456:function(e,t,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n.d(t,{default:function(){return a}});var l=n(2265),o=n(69362);function a(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl-docs.vercel.app/docs/configuration#locale");return l.createElement(o.IntlProvider,i({locale:t},n))}},30166:function(e,t,n){"use strict";n.d(t,{default:function(){return l.a}});var i=n(55775),l=n.n(i)},8221: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 i},default:function(){return a},isEqualNode:function(){return o}});let i={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 o=i[e]||e.toLowerCase();"script"===t&&("async"===o||"defer"===o||"noModule"===o)?l[o]=!!n[e]:l.setAttribute(o,n[e])}let{children:o,dangerouslySetInnerHTML:a}=n;return a?l.innerHTML=a.__html||"":o&&(l.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),l}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let i=t.cloneNode(!0);return i.setAttribute("nonce",""),i.nonce=n,n===e.nonce&&e.isEqualNode(i)}}return e.isEqualNode(t)}function a(){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 i=t.title?t.title[0]:null,l="";if(i){let{children:e}=i.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],i=n.querySelector("meta[name=next-head-count]"),a=Number(i.content),r=[];for(let t=0,n=i.previousElementSibling;t<a;t++,n=(null==n?void 0:n.previousElementSibling)||null){var s;(null==n?void 0:null==(s=n.tagName)?void 0:s.toLowerCase())===e&&r.push(n)}let c=t.map(l).filter(e=>{for(let t=0,n=r.length;t<n;t++)if(o(r[t],e))return r.splice(t,1),!1;return!0});r.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),c.forEach(e=>n.insertBefore(e,i)),i.content=(a-r.length+c.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)},63515: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,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return n}});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)},i="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)},88003: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,{default:function(){return x},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return w}});let i=n(47043),l=n(53099),o=n(57437),a=i._(n(54887)),r=l._(n(2265)),s=n(48701),c=n(8221),u=n(63515),d=new Map,p=new Set,m=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=e=>{if(a.default.preinit){e.forEach(e=>{a.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:i=()=>{},onReady:l=null,dangerouslySetInnerHTML:o,children:a="",strategy:r="afterInteractive",onError:s,stylesheets:u}=e,f=n||t;if(f&&p.has(f))return;if(d.has(t)){p.add(f),d.get(t).then(i,s);return}let g=()=>{l&&l(),p.add(f)},w=document.createElement("script"),v=new Promise((e,t)=>{w.addEventListener("load",function(t){e(),i&&i.call(this,t),g()}),w.addEventListener("error",function(e){t(e)})}).catch(function(e){s&&s(e)});for(let[n,i]of(o?(w.innerHTML=o.__html||"",g()):a?(w.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",g()):t&&(w.src=t,d.set(t,v)),Object.entries(e))){if(void 0===i||m.includes(n))continue;let e=c.DOMAttributeNames[n]||n.toLowerCase();w.setAttribute(e,i)}"worker"===r&&w.setAttribute("type","text/partytown"),w.setAttribute("data-nscript",r),u&&h(u),document.body.appendChild(w)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>f(e))}):f(e)}function w(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function v(e){let{id:t,src:n="",onLoad:i=()=>{},onReady:l=null,strategy:c="afterInteractive",onError:d,stylesheets:m,...h}=e,{updateScripts:g,scripts:w,getIsSsr:v,appDir:x,nonce:b}=(0,r.useContext)(s.HeadManagerContext),y=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let e=t||n;y.current||(l&&e&&p.has(e)&&l(),y.current=!0)},[l,t,n]);let _=(0,r.useRef)(!1);if((0,r.useEffect)(()=>{!_.current&&("afterInteractive"===c?f(e):"lazyOnload"===c&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>f(e))})),_.current=!0)},[e,c]),("beforeInteractive"===c||"worker"===c)&&(g?(w[c]=(w[c]||[]).concat([{id:t,src:n,onLoad:i,onReady:l,onError:d,...h}]),g(w)):v&&v()?p.add(t||n):v&&!v()&&f(e)),x){if(m&&m.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===c)return n?(a.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin}),(0,o.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===c&&n&&a.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let x=v;("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)},55775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let i=n(47043);n(57437),n(2265);let l=i._(n(15602));function o(e,t){var n;let i={loading:e=>{let{error:t,isLoading:n,pastDelay:i}=e;return null}};"function"==typeof e&&(i.loader=e);let o={...i,...t};return(0,l.default)({...o,modules:null==(n=o.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let i=n(18993);function l(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new i.BailoutToCSRError(t);return n}},15602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let i=n(57437),l=n(2265),o=n(81523),a=n(70049);function r(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(r(()=>null)),loading:null,ssr:!0},c=function(e){let t={...s,...e},n=(0,l.lazy)(()=>t.loader().then(r)),c=t.loading;function u(e){let r=c?(0,i.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,s=t.ssr?(0,i.jsxs)(i.Fragment,{children:["undefined"==typeof window?(0,i.jsx)(a.PreloadCss,{moduleIds:t.modules}):null,(0,i.jsx)(n,{...e})]}):(0,i.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,i.jsx)(n,{...e})});return(0,i.jsx)(l.Suspense,{fallback:r,children:s})}return u.displayName="LoadableComponent",u}},70049:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let i=n(57437),l=n(20544);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,l.getExpectedRequestStore)("next/dynamic css"),o=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,i.jsx)(i.Fragment,{children:o.map(e=>(0,i.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},38068:function(){},69696:function(){},76583:function(){},27565:function(){},86034:function(){},51090:function(){},46467:function(){},2175:function(){},44717:function(){},19801:function(){},21848:function(e,t,n){"use strict";n.d(t,{TagManagerNoscript:function(){return r},TagManagerScript:function(){return a}});var i=n(88003),l=n.n(i),o=n(2265);function a(e){let{mtmURL:t,mtmID:n,ytmID:i,autoInit:a=!0,isolated:r=!1}=e;return o.createElement(o.Fragment,null,o.createElement("meta",{name:"ytm-v2",id:"analytics-ytm-meta"}),o.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:"\n    (function(w) {\n  /*! @script-version 1.0.0 */\n  /*! js-cookie v3.0.5 | MIT */\n  !function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){\"use strict\";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if(\"undefined\"!=typeof document){\"number\"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c=\"\";for(var u in i)i[u]&&(c+=\"; \"+u,!0!==i[u]&&(c+=\"=\"+i[u].split(\";\")[0]));return document.cookie=t+\"=\"+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if(\"undefined\"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split(\"; \"):[],o={},r=0;r<t.length;r++){var i=t[r].split(\"=\"),c=i.slice(1).join(\"=\");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,\"\",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'\"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:\"/\"});return t}));\n  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}\n  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}\n  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n  var browserId=Cookies.get('browserId')||w.browserId||(function(){\n    try{return w.localStorage.getItem('browserId');}catch(e){return null;}\n  })()||uuidv4();\n  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){\n    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}\n  })()||uuidv4();\n  if(!browserId.match(uuidv4re)){browserId=uuidv4();}\n  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}\n  w.browserId=browserId;\n  w.browserSessionId=sessionId;\n  try{\n    w.localStorage.setItem('browserId', browserId);\n    w.sessionStorage.setItem('browserId', sessionId);\n    w.sessionStorage.setItem('browserSessionId', sessionId);\n  }catch(e){}\n  var domain=normalizeDomain(w.location.hostname);\n  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};\n  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));\n  Cookies.set('browserSessionId',sessionId,cookieOptions);\n  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];\n  w.dataLayer.push({event:'set-vars-event',browser_id:browserId,session_id:sessionId});\n  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});\n})(window);\n  "}}),o.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function(e){let{mtmURL:t,mtmID:n}=e;return"\n    (function(w,l,d){\n      w._mtm_initialized=false;\n      w[l]=w[l]||[];\n      w[l].push({...(w._session||{})});\n      w._init_mtm=function(){\n        if(w._mtm_initialized)return;\n        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});\n        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];\n        g.type='text/javascript';\n        g.async=true;\n        g.src='".concat(t,"/js/container_").concat(n,".js';\n        s.parentNode.insertBefore(g,s);\n        g.onload=function(){\n          w._mtm_initialized=true;\n        };\n      }\n    })(window,'_mtm',document);\n  ")}({mtmURL:t,mtmID:n})}}),!r&&o.createElement("script",{id:"analytics-ytm-script",dangerouslySetInnerHTML:{__html:function(e){let{ytmID:t,isolated:n=!1}=e;return"\n    (function(w,l,d, isolated){\n    w._ytm_initialized=false;\n      w[l]=w[l]||function(){(w[l].a=w[l].a||[]).push(arguments)};\n      w[l].l=1*new Date();\n      w._init_ytm=function(){\n        if(w._ytm_initialized)return;\n        var j;\n        for(j=0;j<d.scripts.length;j++){\n          if(d.scripts[j].src==='https://mc.yandex.ru/metrika/tag.js?id=".concat(t,"'){\n            return;\n          }\n        }\n        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];\n        g.type='text/javascript';\n        g.async=true;\n        g.src='https://mc.yandex.ru/metrika/tag.js?id=").concat(t,"';\n        s.parentNode.insertBefore(g,s);\n        g.onload = function () {\n        w._ytm_initialized=true;\n        if(isolated)return;\n          w.ym('").concat(t,"', 'init', {\n            ssr: true,\n            webvisor: true,\n            clickmap: true,\n            ecommerce: 'dataLayer',\n            referrer: d.referrer,\n            url: d.location.href,\n            accurateTrackBounce: true,\n            trackLinks: true,\n          });\n        };\n      }\n    })(window,'ym',document, ").concat(n,");\n  ")}({ytmID:i})}}),a&&o.createElement(l(),{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:"\n    (function(w,m,y){\n      if(typeof w[m]==='function')w[m]();\n      if(typeof w[y]==='function')w[y]();\n    })(window,'_init_mtm','_init_ytm');\n  "}}))}function r(e){let{mtmURL:t,mtmID:n,ytmID:i,isolated:l=!1}=e;return o.createElement(o.Fragment,null,o.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function(e){let{mtmURL:t,mtmID:n}=e;return'<img src="'.concat(t,"/matomo.php?idsite=").concat(n,'&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />')}({mtmURL:t,mtmID:n})}}),!l&&o.createElement("noscript",{id:"analytics-ytm-noscript",dangerouslySetInnerHTML:{__html:function(e){let{ytmID:t}=e;return'<img src="https://mc.yandex.ru/watch/'.concat(t,'" style="position:absolute; left:-9999px;" alt="" />')}({ytmID:i})}}))}},61209:function(e,t,n){"use strict";n.d(t,{c:function(){return i.C}});var i=n(83807)},65686:function(e,t,n){"use strict";n.d(t,{i:function(){return i.D}});var i=n(22195)},15149:function(e,t,n){"use strict";n.d(t,{u:function(){return i.M}});var i=n(45544)},122:function(e,t,n){"use strict";n.d(t,{C:function(){return h}});var i=n(57437),l=n(2265),o=n(66838),a=n(61994),r=n(52074);let s={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},c={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},u=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function d({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...s,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(u,{viewBox:"0 0 24 24",style:c}))}d.displayName="IconFdsArrowUpRightSmallO";let p=(0,r.g)("check-all","sc"),m=Object.freeze({wrapper:`${p}__wrapper`,link:`${p}__link`,icon:`${p}__icon`,iconGray:`${p}__icon--gray`}),h=({children:e,className:t,linkClassName:n,iconGrayBackground:l,Link:r,event:s,href:c,dataLayerPush:u})=>{let p=r??o.r;return(0,i.jsx)("div",{className:(0,a.Z)(m.wrapper,t),onClick:()=>{s&&u(s)},children:(0,i.jsxs)(p,{className:(0,a.Z)(m.link,n),href:c,children:[e,(0,i.jsx)("span",{className:(0,a.Z)(m.icon,{[m.iconGray]:l}),children:(0,i.jsx)(d,{size:24})})]})})}},55487:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});let i={getItem:e=>{if(typeof document>"u")return null;let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,n={})=>{if(typeof document>"u")return;(n={path:"/",...n}).expires instanceof Date&&(n.expires=n.expires.toUTCString());let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in n){if(!n.hasOwnProperty(e))continue;i+=`; ${e}`;let t=n[e];!0!==t&&(i+=`=${t}`)}document.cookie=i},removeItem:e=>{i.setItem(e,"",{"max-age":-1})}}},16715:function(e,t,n){"use strict";n.d(t,{CookiesPlate:function(){return h}}),n(51090);var i=n(57437),l=n(2265),o=n(61994),a=n(55487),r=n(52074);let s={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},c={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},u=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function d(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...s,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(u,{viewBox:"0 0 24 24",style:c}))}d.displayName="IconFdsCloseO";let p=(0,r.g)("cookies-plate","sc"),m=Object.freeze({wrapper:"".concat(p,"__wrapper"),contentWrapper:"".concat(p,"__content-wrapper"),visible:"".concat(p,"--visible"),hidden:"".concat(p,"--hidden"),content:"".concat(p,"__content"),text:"".concat(p,"__text"),link:"".concat(p,"__link"),button:"".concat(p,"__button")}),h=e=>{let{className:t,mountDelay:n=3e3,href:r="https://assets.finuslugi.ru/mp-assets/user-agreement.pdf",children:s,closeIcon:c,onMount:u,onLinkClick:p,onClose:h,mountAfterScroll:f=!0}=e,[g,w]=(0,l.useState)(!1),[v,x]=(0,l.useState)(!1),[b,y]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=()=>{document.removeEventListener("scroll",e),a.a.getItem("Allow-Cookie")||(y(!0),setTimeout(()=>{w(!0),null==u||u()},n))};return f?document.addEventListener("scroll",e):e(),()=>document.removeEventListener("scroll",e)},[]);let _=(0,l.useCallback)(()=>{a.a.setItem("Allow-Cookie","1"),x(!0),null==h||h(),setTimeout(()=>y(!1),1e3)},[h]);return b?(0,i.jsx)("div",{className:m.wrapper,children:(0,i.jsx)("div",{className:(0,o.Z)(m.contentWrapper,{[m.visible]:g,[m.hidden]:v}),children:(0,i.jsxs)("div",{className:(0,o.Z)(t,m.content),children:[s||(0,i.jsxs)("p",{className:m.text,children:["Мы используем"," ",(0,i.jsx)("a",{className:m.link,href:r,target:"_blank",rel:"noreferrer",onClick:p,children:"cookie"})," ","для лучшей работы сайта"]}),(0,i.jsx)("button",{className:m.button,onClick:_,children:c||(0,i.jsx)(d,{})})]})})}):(0,i.jsx)(i.Fragment,{})}},96702:function(e,t,n){"use strict";n.d(t,{C:function(){return b}}),n(46467);var i=n(57437),l=n(2265),o=n(79619),a=n(67880),r=n(53035),s=n(61994),c=n(31620),u=n(122),d=n(52074);let p=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},m=(0,d.g)("faq-content-block","sc"),h=Object.freeze({contentBlocks:`${m}__content-blocks`,blockLink:`${m}__block-link`,keynoteWrapper:`${m}__keynote-wrapper`,keynote:`${m}__keynote`,annotation:`${m}__annotation`,contentTableWrapper:`${m}__content-table-wrapper`}),f=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,l={data:t,headerBlocksCount:0,banner:[]};p(l),p(l);let o={},a=e=>{var t,n,i,l;let a=(null==(t=e.data)?void 0:t.text)??(null==(n=e.data)?void 0:n.url)??(null==(i=e.data)?void 0:i.html)??(null!=(l=e.data)&&l.year?String(e.data.year):"");return o[e.type]=(o[e.type]??0)+1,`${e.type}-${String(a).slice(0,80)}-${o[e.type]}`};return t.forEach(t=>{let l=a(t);switch(t.type){case"header":e.push((0,i.jsx)("h2",{id:`content_header_${n}`,role:"header",children:t.data.text||""},l)),n++;break;case"sub_header":e.push((0,i.jsx)("h3",{role:"sub-header",children:t.data.text||""},l));break;case"paragraph":e.push((0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},l));break;case"link":e.push((0,i.jsx)("div",{className:h.blockLink,children:(0,i.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},l));break;case"dossier":e.push((0,i.jsxs)("div",{children:[(0,i.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},l));break;case"html":e.push((0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},l));break;case"annotation":e.push((0,i.jsx)("div",{className:h.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},l));break;case"company-annotation":e.push((0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},l));break;case"keynote":e.push((0,i.jsx)("div",{className:h.keynoteWrapper,children:(0,i.jsx)("p",{className:h.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},l));break;case"image":e.push((0,i.jsx)("img",{src:t.data.url||"",alt:"image",loading:"lazy"},l))}}),e})();return(0,i.jsx)("div",{className:(0,s.Z)(h.contentBlocks,e),role:"blocks",children:n})},g=(0,d.g)("faq-block","sc"),w=Object.freeze({faqBlock:g,titleWrapper:`${g}__title-wrapper`,title:`${g}__title`,accordionWrapper:`${g}__accordion-wrapper`,accordionItems:`${g}__accordion-items`,accordionItemGray:`${g}__accordion-item--gray`,accordionItemContent:`${g}__accordion-item-content`,accordionActiveItemContent:`${g}__accordion-item-content--active`,states:{primary:`${g}--primary`,secondary:`${g}--secondary`,gray:`${g}--gray`}}),v=({question:e,eventCategory:t,dataLayerPush:n,...l})=>(0,i.jsx)(o.a,{...l,title:e.question,children:(0,i.jsx)("div",{className:(0,s.Z)(w.accordionItemContent,{[w.accordionActiveItemContent]:l.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,i.jsx)(f,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),x=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},b=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:d,checkAllText:p,Link:m,className:h,eventCategory:f="cb-faq",multiple:g=!1,variant:b="secondary",dataLayerPush:y,tagTitle:_})=>{let C=Array.isArray(n)?n:[],k=g?C.map(e=>e.question):[],[j,N]=(0,l.useState)(k);if(!C.length)return null;let I="gray"===b;return(0,i.jsx)("section",{className:(0,s.Z)(w.faqBlock,w.states[b],h),children:(0,i.jsxs)(a.W,{children:[!t&&(0,i.jsx)("div",{className:w.titleWrapper,children:(0,i.jsx)(r.X,{as:"h2",type:"display",className:w.title,children:e})}),(0,i.jsxs)("div",{className:w.accordionWrapper,children:[t&&(0,i.jsx)(r.X,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,s.Z)(w.title,`${w.title}--inner`),children:t}),(0,i.jsx)("div",{className:w.accordionItems,children:(0,i.jsx)(o.A,{activeIndex:j,variant:I?"primary":"secondary",withoutOutline:I,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==j?void 0:j.length),n=e.filter(e=>!j.includes(e))[0]||j.filter(t=>!e.includes(t))[0];y({event:"data-event",eventCategory:f,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,c.t)(String(n))}),N(e);let i=`[data-accordion-index="${n}"]`,l=document.querySelector(i);l&&x(l)},multiple:g,children:C.map(e=>{let t=`faq-${e.question}`;return(0,i.jsx)(v,{id:t,question:e,dataLayerPush:y,eventCategory:f,className:I?w.accordionItemGray:void 0,tagTitle:_},t)})})}),d&&p&&(0,i.jsx)(u.C,{href:d,event:{event:"data-event",eventCategory:f,eventAction:"сlick_link_answer-link",eventLabel:d},dataLayerPush:y,...null!=m?{Link:m}:{},iconGrayBackground:!0,children:p||"Читать все вопросы"})]})]})})}},83261:function(e,t,n){"use strict";n.d(t,{CitySelectProvider:function(){return tD},h:function(){return nB}}),n(2175);var i=n(57437),l=n(2265),o=n(66187),a=n(67880),r=n(61994),s=n(77337),c=n(63327),u=n(89694),d=n(62379),p=n(52074);let m=(0,p.g)("header","sc"),h=Object.freeze({header:`${m}`,fixed:`${m}__fixed`,hidden:`${m}__fixed--hidden`,transparent:`${m}--transparent`,navigationOpen:`${m}__navigation-open`,container:`${m}__container`,leftRow:`${m}__left-row`,logo:`${m}__logo`,menuItems:`${m}__menu-items`,menuItemActive:`${m}__menu-item-active`,tabletMenuButton:`${m}__tablet-menu-button`,buttonGroup:`${m}__button-group`,chips:`${m}__chips`,menuButton:`${m}__menu-button`,moreButtons:`${m}__more-buttons`,auth:`${m}__auth`,whiteIcons:`${m}__white-icons`,close:`${m}__close`,removed:`${m}__removed`,overlay:`${m}__overlay`,overlayOpening:`${m}__overlay--opening`,overlayClosing:`${m}__overlay--closing`}),f="user_region",g="user_town",w="cb-header",v=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],x=v.reduce((e,t)=>(e[t.id]=t.label,e),{}),b=Object.freeze({mobile:56,desktop:80}),y="finuslugi-header-height-change",_=(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let i=document.getElementById("mainHomeBanner"),l=!1,o=0,a=0,r=()=>window.innerWidth<768,s=r(),c=()=>window.scrollY||document.documentElement.scrollTop,u=()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));a=Number.isNaN(t)?0:t,o=c()}},d=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},p=()=>{let e=r();e!==s&&(s=e,a=0)},m=function(){let r=c(),s=document.getElementById("headerNotice");if((null==s?void 0:s.getAttribute("data-opening"))==="true")return;a||u();let p=r<a,m=r<((null==i?void 0:i.clientHeight)||0);if(n&&m||p){l=!1,e(!1),t(!0),d(`${a}px`);return}e(l=r>o),l&&setTimeout(()=>t(!1),50),d(l?"0px":`${a}px`),o=r<=0?0:r},h=()=>{a=0,m()};return window.addEventListener("scroll",m),window.addEventListener("resize",p),window.addEventListener(y,h),()=>{window.removeEventListener("scroll",m),window.removeEventListener("resize",p),window.removeEventListener(y,h)}},C=()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,i]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=i);return Object.keys(t).length>0?t:null},k=()=>document.cookie.split(";").some(e=>e.trim().startsWith("utm_params=")),j=(e,t,n)=>{let i=new Date;i.setTime(i.getTime()+864e5*n);let l=encodeURIComponent(JSON.stringify(t)),o=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${l};expires=${i.toUTCString()};path=/;SameSite=Lax${o}`},N=()=>{let e=C();e&&!k()&&j("utm_params",e,90),e&&j("utm_last",e,90)},I=()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{N()}catch(e){console.error("UTM tracking error:",e)}},0)},E=(e,t,n)=>(0,c.h)({eventCategory:w,eventActionType:e,eventActionText:t,eventLabel:n});var S=n(15149),z=n(65686),O=n(61209),T=n(5451),R=n(55487);let A={userRegion:f,userTown:g,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},L={userRegion:f,userTown:g,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},M=(e=!1)=>e?L:A,P=(e=!1)=>e?window.allRegionsNewApi:window.allRegions,B=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},$=(e,t,n=!1)=>{if(typeof document>"u")return;let i=M(n);if(!e&&!t){R.a.removeItem(i.userRegion),R.a.removeItem(i.userTown);return}R.a.setItem(i.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),R.a.setItem(i.userTown,JSON.stringify(t)||"",{"max-age":31536e3})},F=e=>{if(typeof document>"u")return null;let t=R.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},D=function(e){if(typeof window>"u"||!window.localStorage)return null;let t=window.localStorage.getItem(e);if(!t||"undefined"===t)return null;try{return JSON.parse(t)}catch(t){console.warn(`Invalid object in localStorage for key "${e}": ${t}`)}return null},H=(e=!1)=>{if(typeof window>"u")return[];let t=P(e);if(Array.isArray(t)&&t.length>0)return t;let n=D(M(e).allRegions)||[];return B(n,e),n},U=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),W=(e,t=!1)=>!(e.length<1)&&(!t||U(e)),V=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]),[])},q=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,G=e=>e?1:0,Z=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},Y=(e,t=!1)=>{if(e.length<1)return;let n=M(t);B(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},J=(e,t)=>{let n=t.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:G(e.isActive),fiasId:e.fiasId,towns:[]})),i=n.reduce((e,t)=>(e[t.id]=t,e),{});return e.forEach(e=>{let t=i[e.geoRegionId];t&&t.towns.push({id:e.legacyId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,main:G(e.isRegionalCenter),newId:e.id,fiasId:e.fiasId})}),n},Q=(e,t,n)=>{let i=null,l=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(i=e,l=t,!0)});let o=t?e.find(e=>e.id===t.id)??null:null;return{region:i??o??t,town:l??n}},X=(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),K=(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),ee=async()=>{let e=await Z("https://finuslugi.ru/money_data/Root.json?short=1"),t=Array.isArray(null==e?void 0:e.regions)?e.regions:[];return Y(t),t},et=async e=>{let[t,n]=await Promise.all([Z(q(e,"/sc/api/v1/cities?all=true&isActive=true")),Z(q(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==t?void 0:t.content)||!Array.isArray(null==n?void 0:n.content))return[];let i=J(t.content,n.content);return U(i)?(Y(i,!0),i):[]},en=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?et(e):ee(),ei=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null},el=(e,t,n)=>{(0,c.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})};var eo=n(66838),ea=n(19979);let er={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},es={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ec=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0110.75 6a1.25 1.25 0 111.254 1.247zM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eu({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...er,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(ec,{viewBox:"0 0 24 24",style:es}))}eu.displayName="IconFdsDotsVerticalO";let ed=(0,p.g)("navigation-chips","sc"),ep=Object.freeze({wrapper:`${ed}__wrapper`,gray:`${ed}__variantGray`,white:`${ed}__variantWhite`,container:`${ed}__container`,chip:`${ed}__chip`,more:`${ed}__chip--more`,active:`${ed}__chip--active`,icon:`${ed}__icon`,label:`${ed}__label`,hidden:`${ed}__hidden`}),em={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eh={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ef=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eg({className:e,style:t,boxSize:n,size:i,onClick:o}){return l.createElement("span",{className:e,style:{...em,...o&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...o?{role:"button",tabIndex:"0",onClick:o}:{}},l.createElement(ef,{viewBox:"0 0 24 24",style:eh}))}eg.displayName="IconFdsArrowUpRightSmallO";let ew=(0,p.g)("navigation-content","sc"),ev=Object.freeze({contentWrapper:`${ew}__content-wrapper`,content:`${ew}__content`,contentOpen:`${ew}__content--open`,contentHeader:`${ew}__content-header`,contentTitle:`${ew}__content-title`,contentTitleUrl:`${ew}__content-title--url`,contentTitleLink:`${ew}__content-title--link`,contentTitleNew:`${ew}__content-title--new`,new:`${ew}__new`,newInline:`${ew}__new-inline`,vip:`${ew}__vip`,arrowIcon:`${ew}__arrow-icon`,links:`${ew}__links`,linksColumns:`${ew}__links--columns`,linksTitleless:`${ew}__links--titleless`,removed:`${ew}__removed`,hidden:`${ew}__content--hidden`}),ex=({chip:e,hidden:t,onClick:n,refCallback:l,activeChipId:o})=>{let a=!!n,s=()=>{if(a)return null==n?void 0:n(e.url);E(c.D.chip,e.title,`${e.title}_${e.url}`)},u=(0,i.jsxs)(i.Fragment,{children:[e.icon&&(0,i.jsx)("span",{className:ep.icon,"aria-hidden":"true",children:e.icon}),(0,i.jsx)("span",{className:ep.label,children:e.title}),e.arrow&&(0,i.jsx)(eg,{size:24})]}),d=(0,r.Z)(ep.chip,{[ep.hidden]:t,[ev.new]:!!e.new,[ev.vip]:!!e.vip,[ep.active]:e.url===o});return a?(0,i.jsx)("button",{type:"button",className:d,onClick:s,ref:l,children:u}):(0,i.jsx)("a",{href:e.url,className:d,onClick:s,ref:l,children:u})},eb=({items:e=[],maxNumberOfLines:t,variant:n,className:o,activeChipId:a,onClick:s,moreButtonOptions:u})=>{let d=(0,l.useRef)(null),p=(0,l.useRef)(null),m=(0,l.useRef)({}),h=(null==u?void 0:u.label)??"Еще",f="Еще",g=(null==u?void 0:u.showIcon)??!0,w=(0,r.Z)(ep.chip,ep.more,null==u?void 0:u.className),[v,x]=(0,l.useState)(!1),[b,y]=(0,l.useState)(e.length),[_,C]=(0,l.useState)(!1);(0,l.useMemo)(()=>{let t=m.current;e.forEach(e=>{e.url in t||(t[e.url]=null)}),Object.keys(t).forEach(n=>{e.find(e=>String(e.url)===String(n))||delete t[n]})},[e]);let k=(0,l.useCallback)(()=>{let n=d.current;if(!n)return;let i=e=>e?e.getBoundingClientRect().width:0,l=i(n),o=Math.max(Number(t)||0,0),a=()=>{y(e.length),C(!1)};if(v||0===o||l<=0){a();return}let r=(()=>{try{let e=getComputedStyle(n),t=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(t)?12:t}catch{return 12}})(),s=i(p.current),c=e.map(e=>i(m.current[e.url]));if(c.some(e=>0===e)){a();return}let u=1,h=0,f=0;for(let e of c){let t=u===o?s+r:0,n=0===h?e:h+r+e;if(n+t<=l-.5)h=n,f++;else{if(++u>o)break;h=e,f++}}C(f<e.length),y(f)},[v,e,t]);(0,l.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame(k)});return t.observe(e),requestAnimationFrame(k),()=>{t.disconnect()}},[k]),(0,l.useEffect)(()=>{requestAnimationFrame(k)},[k]);let j=v||(t??0)<=0||!_;return(0,i.jsx)("div",{className:(0,r.Z)(o,ep.wrapper,{[ep.gray]:"gray"===n,[ep.white]:"white"===n}),children:(0,i.jsxs)("div",{ref:d,className:ep.container,children:[e.map((e,t)=>(0,i.jsx)(ex,{chip:e,hidden:!j&&t>=b,activeChipId:a,onClick:s,refCallback:t=>{m.current[e.url]=t}},e.url)),!j&&_&&(0,i.jsxs)("button",{type:"button",ref:p,className:w,"aria-label":f,onClick:()=>{E(c.D.chip,f),x(!0)},children:[g&&(0,i.jsx)(eu,{size:20}),(0,i.jsx)("span",{className:ep.label,children:h})]}),(j||!_)&&(0,i.jsxs)("button",{type:"button",ref:p,className:(0,r.Z)(w,ep.hidden),tabIndex:-1,"aria-hidden":"true",children:[g&&(0,i.jsx)(eu,{size:20}),(0,i.jsx)("span",{className:ep.label,children:h})]})]})})},ey={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},e_={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eC(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let ek=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.309 22.765a6.932 6.932 0 01-2.016.233c-1.156-.04-2.62-.39-3.927-1.58A9.985 9.985 0 0112 22a9.97 9.97 0 01-7.071-2.929A9.97 9.97 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.958 9.958 0 01-1.233 4.814c.07 1.607.354 2.81.617 3.606a7.784 7.784 0 00.424 1.04c.125.248.251.497.15.787-.103.296-.366.44-.65.52zM12 3.5a8.5 8.5 0 103.258 16.353.75.75 0 01.834.178c1.06 1.124 2.278 1.436 3.252 1.469.304.01.584-.007.824-.035a10.45 10.45 0 01-.208-.574c-.317-.96-.641-2.374-.7-4.237a.75.75 0 01.1-.4A8.5 8.5 0 0012 3.5zm-4.209 7.794a1 1 0 10.003-.002l-.003.002zm3.5 0a1 1 0 10.003-.002l-.003.002zm3.502 1.414a1 1 0 01-.002-1.414l.003-.002a1 1 0 110 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ej(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ey,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&eC(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(ek,{viewBox:"0 0 24 24",style:e_}))}ej.displayName="IconFdsChatDotsCircleO";let eN=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),l.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},l.createElement("path",{d:"M18.25 5.75V8c0 .42.33.75.75.75s.75-.33.75-.75V5.75H22c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-2.25V2c0-.42-.33-.75-.75-.75s-.75.33-.75.75v2.25H16c-.42 0-.75.33-.75.75s.33.75.75.75h2.25zm-4.546-2.23c-.259-.014-.827-.02-1.704-.02-.676 0-1.129.002-1.358.007a7.963 7.963 0 00-.779.047 7.246 7.246 0 00-2.328.689 7.204 7.204 0 00-4.028 6.4c-.005.228-.007.68-.007 1.357 0 .671.002 1.121.007 1.349.007.324.023.584.047.778.057.474.158.933.303 1.378v.001a7.17 7.17 0 001.76 2.867 7.169 7.169 0 002.92 1.777 7.436 7.436 0 002.108.341c.228.006.68.009 1.355.009.67 0 1.12-.003 1.346-.009a7.12 7.12 0 00.794-.057c.476-.05.96-.162 1.455-.333a.71.71 0 01.685.102c.662.48 1.32.829 1.976 1.047a4.85 4.85 0 001.482.264c.142.002.278-.004.41-.016a10.758 10.758 0 01-.222-.535c-.45-1.164-.676-2.305-.676-3.423a.74.74 0 01.116-.401 7.211 7.211 0 001.08-3.01c.024-.196.04-.456.047-.78.005-.228.007-.678.007-1.349 0-.214.002-.488.006-.822.003-.22.004-.376.004-.468 0-.42.33-.75.75-.75s.75.33.75.75c0 .098-.001.26-.004.486A70.38 70.38 0 0022 12c0 .682-.003 1.142-.008 1.381a9.337 9.337 0 01-.058.93 8.752 8.752 0 01-.393 1.737 8.757 8.757 0 01-.788 1.7c.026.866.217 1.757.571 2.674a8.847 8.847 0 00.6 1.249c.11.224.136.42.078.587-.057.168-.198.306-.423.416-.139.068-.32.13-.543.189a5 5 0 01-1.316.15 6.336 6.336 0 01-1.94-.34 8.598 8.598 0 01-2.064-1.035c-.471.14-.939.236-1.402.286a8.23 8.23 0 01-.93.067c-.24.006-.701.009-1.384.009-.688 0-1.152-.003-1.392-.009a8.222 8.222 0 01-.937-.067 8.672 8.672 0 01-3.989-1.538 8.707 8.707 0 01-2.077-2.078 8.705 8.705 0 01-1.597-4.927A78.972 78.972 0 012 12c0-.687.003-1.15.008-1.39.008-.376.027-.686.057-.93a8.737 8.737 0 01.832-2.806 8.69 8.69 0 013.977-3.977 8.7 8.7 0 012.803-.831c.246-.03.557-.05.933-.058C10.85 2.003 11.313 2 12 2c.902 0 1.495.007 1.779.021.42.021.732.367.712.787a.743.743 0 01-.787.711zm-5.91 9.19a1 1 0 111.412-1.414 1 1 0 01-1.413 1.415zm3.497-1.412a1 1 0 101.418 1.41 1 1 0 00-1.418-1.41zm3.502 1.413a1 1 0 111.414-1.415 1 1 0 01-1.414 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function eI(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ey,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&eC(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eN,{viewBox:"0 0 24 24",style:e_}))}eI.displayName="IconFdsChatDotsSquareAddO";let eE=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.03 10.28l-6.5 6.5a.75.75 0 01-1.06 0l-6.5-6.5a.75.75 0 111.06-1.06L12 15.19l5.97-5.97a.75.75 0 111.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eS(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ey,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&eC(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eE,{viewBox:"0 0 24 24",style:e_}))}eS.displayName="IconFdsChevronDownO";let ez=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eO(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ey,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&eC(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(ez,{viewBox:"0 0 24 24",style:e_}))}eO.displayName="IconFdsCloseO";let eT=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),l.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},l.createElement("path",{d:"M7.75 5a.75.75 0 100 1.5h13.5a.75.75 0 100-1.5H7.75zM22 12a.75.75 0 00-.75-.75H2.75a.75.75 0 100 1.5h18.5A.75.75 0 0022 12zm-5.75 5.5a.75.75 0 110 1.5H2.75a.75.75 0 110-1.5h13.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function eR(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ey,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&eC(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eT,{viewBox:"0 0 24 24",style:e_}))}eR.displayName="IconFdsMenuSkewedO";let eA=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.999 7a5 5 0 1110 0 5 5 0 01-10 0zm5-3.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7zM10.012 14h3.974c1.52 0 2.497 0 3.345.337a4.75 4.75 0 011.916 1.402c.579.705.875 1.636 1.335 3.085l.05.159.332 1.04a.75.75 0 11-1.43.455l-.33-1.04c-.53-1.664-.744-2.293-1.117-2.748a3.249 3.249 0 00-1.31-.959c-.547-.217-1.212-.23-2.958-.23h-3.64c-1.746 0-2.41.013-2.957.23a3.249 3.249 0 00-1.311.959c-.373.454-.587 1.084-1.116 2.748l-.331 1.04a.75.75 0 11-1.43-.455l.331-1.04.05-.159c.461-1.449.757-2.38 1.336-3.086a4.752 4.752 0 011.916-1.4C7.515 14 8.492 14 10.012 14z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eL(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ey,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&eC(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eA,{viewBox:"0 0 24 24",style:e_}))}eL.displayName="IconFdsUserO";let eM=()=>{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}},eP={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eB={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function e$(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let eF=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eD(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...eP,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&e$(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eF,{viewBox:"0 0 24 24",style:eB}))}eD.displayName="IconFdsChevronRightSmallO";let eH=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eU(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...eP,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&e$(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eH,{viewBox:"0 0 24 24",style:eB}))}eU.displayName="IconFdsCloseO";let eW=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),l.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),l.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),l.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},l.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function eV(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...eP,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&e$(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eW,{viewBox:"0 0 24 24",style:eB}))}eV.displayName="IconFdsGosuslugiColoredO";let eq=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eG(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...eP,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&e$(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(eq,{viewBox:"0 0 24 24",style:eB}))}eG.displayName="IconFdsShieldCheckO";let eZ={"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"},eY=()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(eZ,e)?eZ[e]:eZ["finuslugi.ru"]},eJ=(e,t)=>{let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="".concat(e,"/assets/css/").concat(t),document.head.appendChild(n);let i=document.createElement("script");i.src="".concat(e,"/get-bootstrap/").concat(t),i.defer=!0,document.body.appendChild(i)},eQ=()=>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)}})}),eX=()=>{let[e,t]=(0,l.useState)(!1),[n,i]=(0,l.useState)(!1),o=(0,l.useRef)(!1),a=e=>{o.current=e,i(e)};return(0,l.useEffect)(()=>{if(typeof window>"u")return;let e=eY(),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()):(a(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;i=e;let o=document.querySelector(".webchat");o&&eQ().observe(o,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=i.closeWidget),null==i||i.openWidget(),a(!1),t(!1),l()},eJ(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}},eK=(0,l.createContext)({isAuth:!1,isHeaderHidden:!1,isHeaderTransparent:!1,openedBlock:null,setOpenedBlock:()=>null,openedSection:null,setOpenedSection:()=>null,isNavigationOpen:!1,isNavigationMounted:!1,navMenuItemsRef:{current:null},navigationRef:{current:null},ignoreClicks:!1,setIgnoreClicks:()=>null,isChatModalOpen:!1,setIsChatModalOpen:()=>null,isChatLoading:!1,fixedContainerRef:{current:null},headerRef:{current:null}});function e0(){return(0,l.useContext)(eK)}let e1=e=>{let[t,n]=(0,l.useState)(!1),[o,a]=(0,l.useState)(!1),[r,s]=(0,l.useState)(!!e.isMainBannerPage),{isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p}=eX(),[m,h]=(0,l.useState)(null),[f,g]=(0,l.useState)(null),[w,v]=(0,l.useState)(!1),[x,b]=(0,l.useState)(!1),[y,C]=(0,l.useState)(!1),k=(0,l.useRef)(null),j=(0,d.u)(w),N=(0,l.useRef)(null),E=(0,l.useRef)(null),S=(0,l.useRef)(null),z=(0,l.useRef)(null),O=(0,l.useCallback)(()=>{j.current&&j.current.scrollTo({top:0})},[j]),T=(0,l.useCallback)(e=>{g(e),O()},[O]),R=(0,l.useCallback)(e=>{N.current&&clearTimeout(N.current),e&&b(!0),e||(N.current=setTimeout(()=>{b(!1),T(null)},300))},[T]),A=(0,l.useCallback)((e,t,n)=>{if(t&&T(t),!n&&e===m||!e){R(!w),v(!w);return}h(e),R(!0),v(!0)},[m,T,w,R]),L=(0,l.useCallback)(()=>{E.current&&clearTimeout(E.current),C(!0),E.current=setTimeout(()=>{C(!1)},650)},[]);return(0,l.useEffect)(()=>{n(!!document.cookie.includes("auth.gtm_customer_id"));let t=_(a,s,e.isMainBannerPage);return I(),t},[]),(0,i.jsx)("header",{children:(0,i.jsx)(eK.Provider,{value:{isAuth:t,isHeaderHidden:o,isHeaderTransparent:r,openedBlock:m,setOpenedBlock:A,openedSection:f,setOpenedSection:T,isNavigationOpen:w,isNavigationMounted:x,navMenuItemsRef:k,navigationRef:j,ignoreClicks:y,setIgnoreClicks:L,isChatModalOpen:c,setIsChatModalOpen:u,isChatLoading:p,fixedContainerRef:S,headerRef:z},children:e.children})})},e2=(0,p.g)("certificates-warning-banner","sc"),e7=(0,p.g)("certificates-warning-popup","sc"),e4=Object.freeze({wrapper:"".concat(e2),container:"".concat(e2,"__container"),content:"".concat(e2,"__content"),info:"".concat(e2,"__info"),image:"".concat(e2,"__image"),text:"".concat(e2,"__text"),title:"".concat(e2,"__title"),description:"".concat(e2,"__description"),details:"".concat(e2,"__details"),buttons:"".concat(e2,"__buttons"),button:"".concat(e2,"__button"),closeButton:"".concat(e2,"__close-button"),mobileActivator:"".concat(e2,"__mobile-activator")}),e3=Object.freeze({modal:"".concat(e7,"__modal"),desktopCloseButton:"".concat(e7,"__desktop-close-button"),mobilePopup:"".concat(e7,"__mobile-popup"),mobileContentContainer:"".concat(e7,"__mobile-content-container"),mobileCloseButton:"".concat(e7,"__mobile-close-button"),mobileDialog:"".concat(e7,"__mobile-dialog"),content:"".concat(e7,"__content"),image:"".concat(e7,"__image"),text:"".concat(e7,"__text"),title:"".concat(e7,"__title"),description:"".concat(e7,"__description"),actions:"".concat(e7,"__actions"),primaryActions:"".concat(e7,"__primary-actions"),divider:"".concat(e7,"__divider"),explanation:"".concat(e7,"__explanation"),button:"".concat(e7,"__button"),gosuslugiButton:"".concat(e7,"__gosuslugi-button"),gosuslugiIcon:"".concat(e7,"__gosuslugi-icon")}),e5="fu_certificates_access_confirmed",e6="fu_certificates_banner_dismissed",e8="fu_external_link_warning_shown",e9={bannerShown:{eventActionType:c.D.show,eventActionText:"certificates_banner"},bannerDetails:{eventActionType:c.D.banner,eventActionText:"certificates_details"},bannerInstall:{eventActionType:c.D.button,eventActionText:"certificates_banner_install"},bannerYandex:{eventActionType:c.D.button,eventActionText:"certificates_banner_yandex"},bannerClose:{eventActionType:c.D.icon,eventActionText:"certificates_banner_close"},popupShown:{eventActionType:c.D.popup,eventActionText:"certificates_warning"},popupInstall:{eventActionType:c.D.button,eventActionText:"certificates_popup_install"},popupYandex:{eventActionType:c.D.button,eventActionText:"certificates_popup_yandex"},popupContinue:{eventActionType:c.D.button,eventActionText:"certificates_popup_continue"},popupCloseButton:{eventActionType:c.D.icon,eventActionText:"certificates_popup_close"},popupClosed:{eventActionType:c.D.close,eventActionText:"certificates_popup"}},te=(e,t,n)=>{let i="banner"===t.source?"":";host=".concat(t.host);try{(0,c.h)({eventCategory:w,...e9[e],eventLabel:"source=".concat(t.source,";layout=").concat(n?"desktop":"mobile").concat(i)})}catch(e){}},tt=["--banner-header-height","--fixed-header-height","--new-header-height-desktop","--new-header-height-mobile","--static-new-header-height-mobile","--static-new-header-height-desktop","--header-height"],tn=e=>{let{onDismiss:t,onClosed:n,onOpenDetails:r,onOpenCertificatesPage:s,onOpenYandexBrowserPage:c}=e,{fixedContainerRef:d,headerRef:p}=e0(),m=(0,u._m)("l"),h=(0,l.useRef)(null),f=(0,l.useRef)(!1),g=(0,l.useRef)(!1),w=(0,l.useRef)(!1),[v,x]=(0,l.useState)(!1),[_,C]=(0,l.useState)(!1);(0,l.useEffect)(()=>{g.current||(g.current=!0,te("bannerShown",{source:"banner"},m))},[m]);let k=(e,t)=>()=>{te(e,{source:"banner"},m),t()},j=(0,l.useCallback)(()=>{let e=h.current,t=d.current;if(!e||!t)return;let n=e.getBoundingClientRect().height,i=n+(window.innerWidth<768?b.mobile:b.desktop),l=document.documentElement.style;l.setProperty("--banner-header-height","".concat(n,"px")),l.setProperty("--fixed-header-height","".concat(i,"px")),l.setProperty("--new-header-height-desktop","".concat(i,"px")),l.setProperty("--new-header-height-mobile","".concat(i,"px")),l.setProperty("--static-new-header-height-mobile","".concat(i,"px")),l.setProperty("--static-new-header-height-desktop","".concat(i,"px")),l.setProperty("--header-height","".concat(n+108,"px")),t.style.transform=f.current?"translateY(0)":"translateY(-".concat(n,"px)"),window.dispatchEvent(new Event(y))},[d]),N=(0,l.useCallback)(()=>{let e=d.current;tt.forEach(e=>document.documentElement.style.removeProperty(e)),e&&(e.style.transform=""),window.dispatchEvent(new Event(y))},[d]),I=(0,l.useCallback)(()=>{let e=d.current;if(!e)return;let t=window.innerWidth<768?b.mobile:b.desktop,n=document.documentElement.style;n.setProperty("--fixed-header-height","".concat(t,"px")),n.setProperty("--new-header-height-desktop","".concat(t,"px")),n.setProperty("--new-header-height-mobile","".concat(t,"px")),n.setProperty("--static-new-header-height-mobile","".concat(t,"px")),n.setProperty("--static-new-header-height-desktop","".concat(t,"px")),n.setProperty("--header-height","108px"),e.style.transform="",window.dispatchEvent(new Event(y))},[d]);return(0,l.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{C(!1),v&&n()};return e.addEventListener("transitionend",t),()=>e.removeEventListener("transitionend",t)},[p,v,n]),(0,l.useLayoutEffect)(()=>{var e;let t=h.current;if(!t)return;j();let n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,i=null;n?(f.current=!0,null==(e=d.current)||e.style.setProperty("transform","translateY(0)")):i=window.requestAnimationFrame(()=>{var e;f.current=!0,null==(e=d.current)||e.style.setProperty("transform","translateY(0)"),C(!0)});let l=new ResizeObserver(j);return l.observe(t),window.addEventListener("resize",j),()=>{null!==i&&window.cancelAnimationFrame(i),l.disconnect(),window.removeEventListener("resize",j),N()}},[N,j]),(0,i.jsxs)("div",{id:"headerNotice",ref:h,role:"region","aria-label":"Сертификаты Минцифры","data-opening":_,className:e4.wrapper,children:[(0,i.jsx)("button",{className:e4.mobileActivator,type:"button","aria-label":"Подробнее о сертификатах Минцифры",onClick:k("bannerDetails",r)}),(0,i.jsx)(a.W,{children:(0,i.jsxs)("div",{className:e4.container,children:[(0,i.jsxs)("div",{className:e4.content,children:[(0,i.jsxs)("div",{className:e4.info,children:[(0,i.jsx)("div",{className:e4.image,children:(0,i.jsx)(eG,{size:32})}),(0,i.jsxs)("div",{className:e4.text,children:[(0,i.jsx)("h2",{className:e4.title,children:"Для работы российских сайтов нужны сертификаты Минцифры"}),(0,i.jsx)("p",{className:e4.description,children:"Установите их, чтобы пользоваться всеми функциями сайта и оплачивать услуги без сбоев. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"}),(0,i.jsxs)("span",{className:e4.details,children:["Подробнее",(0,i.jsx)(eD,{size:16})]})]})]}),(0,i.jsxs)("div",{className:e4.buttons,children:[(0,i.jsx)(o.z,{className:e4.button,label:"Установить сертификаты",iconLeft:(0,i.jsx)(eV,{size:16}),size:"xs",variant:"white",onClick:k("bannerInstall",s)}),(0,i.jsx)(o.z,{className:e4.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,i.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy"}),size:"xs",variant:"white",appearance:"outline",onClick:k("bannerYandex",c)})]})]}),(0,i.jsx)("button",{className:e4.closeButton,type:"button","aria-label":"Закрыть",onClick:()=>{if(!w.current){if(w.current=!0,te("bannerClose",{source:"banner"},m),t(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){N(),n();return}I(),x(!0)}},children:(0,i.jsx)(eU,{size:24})})]})})]})},ti={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tl={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},to=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ta(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...ti,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(to,{viewBox:"0 0 24 24",style:tl}))}ta.displayName="IconFdsCloseO";let tr={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},ts={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tc(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tu=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),l.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),l.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),l.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},l.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function td(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tr,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&tc(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tu,{viewBox:"0 0 24 24",style:ts}))}td.displayName="IconFdsGosuslugiColoredO";let tp=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tm(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tr,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&tc(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tp,{viewBox:"0 0 24 24",style:ts}))}tm.displayName="IconFdsShieldCheckO";let th=e=>{let{onOpenCertificatesPage:t,onOpenYandexBrowserPage:n,onContinue:a}=e,r=(0,l.useRef)(null),s="certificates-warning-gosuslugi-".concat((0,l.useId)().replaceAll(":",""));return(0,l.useLayoutEffect)(()=>{var e,t;let n=null==(e=r.current)?void 0:e.querySelector("linearGradient"),i=null==(t=r.current)?void 0:t.querySelector('path[fill^="url("]');n&&i&&(n.id=s,i.setAttribute("fill","url(#".concat(s,")")))},[s]),(0,i.jsxs)("div",{className:e3.content,children:[(0,i.jsx)("div",{className:e3.image,children:(0,i.jsx)(tm,{size:64})}),(0,i.jsxs)("div",{className:e3.text,children:[(0,i.jsx)("h2",{className:e3.title,children:"Установите сертификаты Минцифры"}),(0,i.jsx)("p",{className:e3.description,children:"Без них российские сайты и оплата услуг могут не работать. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"})]}),(0,i.jsxs)("div",{className:e3.actions,children:[(0,i.jsxs)("div",{className:e3.primaryActions,children:[(0,i.jsx)(o.z,{className:"".concat(e3.button," ").concat(e3.gosuslugiButton),label:"Установить сертификаты",iconLeft:(0,i.jsx)("span",{ref:r,className:e3.gosuslugiIcon,children:(0,i.jsx)(td,{size:20})}),size:"m",stretch:!0,onClick:t}),(0,i.jsx)(o.z,{className:e3.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,i.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy",width:24,height:24}),size:"m",stretch:!0,variant:"secondary",onClick:n})]}),a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.i,{className:e3.divider}),(0,i.jsx)(o.z,{className:e3.button,label:"Продолжить в текущем браузере",size:"m",stretch:!0,variant:"secondary",appearance:"outline",onClick:a}),(0,i.jsx)("p",{className:e3.explanation,children:"Можно продолжить и без установки. Браузер покажет предупреждение о незащищенном соединении — пропустите его и нажмите \xabПерейти на сайт\xbb"})]})]})]})},tf=e=>{let{isOpen:t,analyticsContext:n,onClose:o,onOpenCertificatesPage:a,onOpenYandexBrowserPage:r,onContinue:s}=e,c=(0,u._m)("l"),p=(0,l.useRef)(null),m=(0,l.useRef)(!1),h=(0,l.useRef)(!1),f=(0,l.useRef)(!1),g=(0,l.useRef)(n);(0,l.useEffect)(()=>(m.current=!0,()=>{m.current=!1}),[]),(0,l.useEffect)(()=>{if(g.current=t?n:null,!t){h.current=!1,f.current=!0;return}h.current||(f.current=!1,n&&(h.current=!0,te("popupShown",n,c)))},[n,c,t]);let w=(0,l.useCallback)(()=>m.current&&t&&!f.current&&g.current===n,[n,t]),v=(0,l.useCallback)(()=>{w()&&(f.current=!0,n&&te("popupClosed",n,c),o())},[n,w,c,o]),x=()=>{w()&&(n&&te("popupCloseButton",n,c),v())},b=(e,t)=>()=>{w()&&(n&&te(e,n,c),t())},y=(0,i.jsx)(th,{onOpenCertificatesPage:b("popupInstall",a),onOpenYandexBrowserPage:b("popupYandex",r),onContinue:s?b("popupContinue",s):void 0});return(0,l.useEffect)(()=>{if(!t)return;let e=document.activeElement instanceof HTMLElement?document.activeElement:null,n=window.setTimeout(()=>{var e;if(!c){null==(e=p.current)||e.focus();return}let t=document.querySelector(".".concat(e3.desktopCloseButton));null==t||t.focus()},120),i=e=>{c||"Escape"===e.key&&v()};return document.addEventListener("keydown",i),()=>{window.clearTimeout(n),document.removeEventListener("keydown",i),null==e||e.focus()}},[v,c,t]),c?(0,i.jsxs)(S.u,{className:e3.modal,open:t,size:"m",noPadding:!0,header:{withoutCloseBtn:!0},"aria-label":"Установите сертификаты Минцифры",onClose:v,children:[(0,i.jsx)("button",{className:e3.desktopCloseButton,type:"button","aria-label":"Закрыть",onClick:x,children:(0,i.jsx)(ta,{size:24})}),y]}):(0,i.jsx)(d.P,{children:(0,i.jsx)(d.U,{className:e3.mobilePopup,contentClassName:e3.mobileContentContainer,isOpen:t,isSmallPopup:!0,onClose:v,closeButton:(0,i.jsx)("button",{className:e3.mobileCloseButton,type:"button","aria-label":"Закрыть",onClick:x,children:(0,i.jsx)(ta,{size:24})}),children:(0,i.jsx)("div",{ref:p,className:e3.mobileDialog,role:"dialog","aria-modal":"true","aria-label":"Установите сертификаты Минцифры",tabIndex:-1,children:y})})})},tg=new Map,tw=e=>{if(typeof window>"u")return"1"===tg.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===tg.get(e)}catch(t){return"1"===tg.get(e)}},tv=e=>{if(tg.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch(e){}},tx=e=>e.includes("YaBrowser/"),tb=(e,t)=>e===t||"finuslugi.ru"===e||e.endsWith(".finuslugi.ru"),ty=(e,t)=>{if(!e)return null;try{let n=new URL(e.toString(),t.href);return"http:"!==n.protocol&&"https:"!==n.protocol||tb(n.hostname,t.hostname)?null:n}catch(e){return null}},t_=e=>{let{enableCertificatesBanner:t,enableExternalLinkWarning:n,isMainBannerPage:i}=e,[o,a]=(0,l.useState)("checking"),[r,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)(!1),[d,p]=(0,l.useState)(!1),[m,h]=(0,l.useState)(!1),f=(0,l.useRef)(),g=(0,l.useRef)(!1),w=(0,l.useRef)(!1),v=(0,l.useRef)(!1);(0,l.useRef)(null);let x=(0,l.useRef)(null),b=(0,l.useRef)(null),y=(0,l.useRef)(null),_=t&&i,C=_||n,k=(0,l.useCallback)(e=>{let t=f.current;if(t){t.call(window,e,"_blank","noopener,noreferrer");return}window.open(e,"_blank","noopener,noreferrer")},[]),j=(0,l.useCallback)(()=>{s(!1),v.current=!1,x.current=null,b.current=null,y.current=null,h(!1)},[]),N=(0,l.useCallback)(e=>{tv(e8),w.current=!0,v.current=!1,x.current=e,h("external"===e&&null!==b.current),s(!0)},[]),I=(0,l.useCallback)(()=>!g.current&&("external"===x.current&&!v.current||!w.current),[]),E=(0,l.useCallback)(()=>{"external"!==x.current&&N("external")},[N]);(0,l.useEffect)(()=>{f.current=window.open;let e=tx(window.navigator.userAgent);return e&&tv(e5),g.current=e||tw(e5),w.current=tw(e8),p(g.current),u(!0),()=>{b.current=null,y.current=null}},[]),(0,l.useEffect)(()=>{if(c){if(!_){a("skipped");return}a(e=>"shown"===e||"closing"===e||"dismissed"===e?e:d||tw(e6)?"skipped":"shown")}},[d,_,c]),(0,l.useEffect)(()=>{},[j,C,c]),(0,l.useEffect)(()=>{if(!c||!n)return;let e=f.current;if(!e)return;let t=!0,i=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let n=e.target.closest("a[href]");if(!n||e.defaultPrevented)return;let i=ty(n.href,window.location);if(!i||!I())return;e.preventDefault(),null===b.current&&(b.current=i.href,y.current={source:"external_anchor",host:i.hostname});let l=b.current;queueMicrotask(()=>{t&&I()&&b.current===l&&E()})},l=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",i=arguments.length>2?arguments[2]:void 0,l=ty(t,window.location);return l&&I()?(null===b.current&&(b.current=l.href,y.current={source:"external_window_open",host:l.hostname}),E(),null):e.call(window,t,n,i)};return window.open=l,document.addEventListener("click",i,!0),document.addEventListener("auxclick",i,!0),()=>{t=!1,document.removeEventListener("click",i,!0),document.removeEventListener("auxclick",i,!0),window.open===l&&(window.open=e)}},[n,c,I,E]),(0,l.useEffect)(()=>{var e;n||(b.current=null,(null==(e=y.current)?void 0:e.source)!=="banner"&&(y.current=null),h(!1),"external"===x.current&&j())},[j,n]),(0,l.useEffect)(()=>{_||"banner"===x.current&&j()},[j,_]),(0,l.useEffect)(()=>{C||j()},[j,C]);let S=(0,l.useCallback)(()=>{tv(e6),a("closing")},[]),z=(0,l.useCallback)(()=>{a("dismissed")},[]),O=(0,l.useCallback)(()=>{b.current=null,y.current={source:"banner"},N("banner")},[N]),T=(0,l.useCallback)(()=>{k("https://www.gosuslugi.ru/crt")},[k]),R=(0,l.useCallback)(()=>{k("https://browser.yandex.ru/")},[k]),A=(0,l.useCallback)(()=>{let e=b.current;e&&(tv(e8),w.current=!0,v.current=!0,k(e))},[k]);return{bannerStatus:o,isPopupOpen:r,popupAnalyticsContext:y.current,dismissBanner:S,finishBannerClosing:z,openPopupFromBanner:O,closePopup:j,openCertificatesPage:T,openYandexBrowserPage:R,continueToExternalPage:m?A:void 0}},tC={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tk={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tj=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tN(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tC,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tj,{viewBox:"0 0 24 24",style:tk}))}tN.displayName="IconFdsLocationO";let tI={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tE={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function tS(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tz=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"fds-close-circle-o_svg__a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),l.createElement("g",{clipPath:"url(#fds-close-circle-o_svg__a)"},l.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm1.5 0a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm12.28-2.72L13.06 12l2.72 2.72a.743.743 0 010 1.06.742.742 0 01-1.06 0L12 13.06l-2.72 2.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 8.22 9.28a.743.743 0 010-1.06.743.743 0 011.06 0L12 10.94l2.72-2.72a.743.743 0 011.06 0 .743.743 0 010 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function tO(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&tS(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tz,{viewBox:"0 0 24 24",style:tE}))}tO.displayName="IconFdsCloseCircleO";let tT=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm8.872-4.977C13.657 7.18 15 8.15 15 9.761c0 .698-.179 1.238-.504 1.665-.307.401-.704.644-.98.812-.313.191-.477.293-.595.43-.083.096-.17.246-.17.584a.75.75 0 01-1.5 0c0-.66.193-1.164.531-1.558.28-.326.64-.544.89-.695l.062-.037c.287-.175.452-.29.568-.442.096-.126.198-.335.198-.759 0-.633-.532-1.158-1.309-1.252-.716-.087-1.454.236-1.717 1.2a.75.75 0 01-1.447-.394c.486-1.78 1.998-2.454 3.345-2.292zM11.999 15a1 1 0 10.002 2 1 1 0 00-.002-2z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tR(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&tS(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tT,{viewBox:"0 0 24 24",style:tE}))}tR.displayName="IconFdsQuestionCircleO";let tA=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.5 2a8.5 8.5 0 105.456 15.018l4.763 4.762a.75.75 0 001.06-1.06l-4.762-4.763A8.5 8.5 0 0010.5 2zm-7 8.5a7 7 0 1114 0 7 7 0 01-14 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tL(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tI,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&tS(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tA,{viewBox:"0 0 24 24",style:tE}))}tL.displayName="IconFdsSearchO";let tM=H(),tP=V(tM),tB={regions:tM,towns:tP,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},t$=(0,l.createContext)(tB);function tF(){return(0,l.useContext)(t$)}let tD=e=>{let{children:t,initialRegion:n,initialTown:o,showStartGeoPopup:a=!0,lastRegionsUpdateUnixTimestamp:r,dadataUrl:s="https://finuslugi.ru/backend/money/dadata",showcaseUrl:u="",useNewCitiesApi:d=!1}=e,p=M(d),m=Number(D(p.lastRegionsUpdateUnixTimestamp)||0),h=Number(r||0)>m,[f,g]=(0,l.useState)(H(d)),w=(0,l.useRef)(f),[{startRegion:v,startTown:x},b]=(0,l.useState)({startRegion:tB.startRegion,startTown:tB.startTown}),y=null!=n?n:tB.region,_=null!=o?o:tB.town,[{region:C,town:k},j]=(0,l.useState)({region:y,town:_}),[N,I]=(0,l.useState)(tB.startPopupVisible),[E,S]=(0,l.useState)(tB.popupVisible),z=(0,l.useRef)(""),O=(0,l.useRef)(!1),T=(0,l.useMemo)(()=>V(f),[f]);(0,l.useEffect)(()=>{w.current=f},[f]);let R=(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)||""),I(!0),b({startRegion:e,startTown:t})},[I,b]),A=(0,l.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||R(e,t)},[R]),L=(0,l.useCallback)(()=>{if(z.current&&!C&&!k){var e,t;let n=null!==(e=T.find(e=>e.name===z.current))&&void 0!==e?e:null;return A(null!==(t=f.find(e=>e.id===(null==n?void 0:n.parentId)))&&void 0!==t?t:null,n)}A(C,k)},[C,k,T,f,A]),P=(0,l.useCallback)(e=>{S(e)},[S]),B=(0,l.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(p.allRussiaSelected,"1"),window.localStorage.setItem(p.userRegion,""),window.localStorage.setItem(p.userTown,""),$(null,null,d);return}window.localStorage.setItem(p.allRussiaSelected,"0"),window.localStorage.setItem(p.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(p.userTown,JSON.stringify(t)||""),$(e||null,t||null,d)},[p,d]),U=(0,l.useCallback)(e=>{e?el(c.D.icon,"location"):el(c.D.button,(null==k?void 0:k.name)||"Вся Россия"),!a||window.sessionStorage.getItem("start_popup_opened")?P(!0):L()},[a,k,P,L]),q=(0,l.useCallback)((e,t)=>{B(e,t),j({region:e||null,town:t||null}),I(!1),P(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[P,B]),G=()=>{var e,t;let n=null!==(e=F(p.userRegion))&&void 0!==e?e:D(p.userRegion),i=null!==(t=F(p.userTown))&&void 0!==t?t:D(p.userTown),l=Q(w.current,n,i),o=d&&X(n,i);o&&(O.current=!0),o&&K(l.region,l.town)&&(B(l.region,l.town),O.current=!1),j(l);let r=async e=>{let{coords:{latitude:t,longitude:n}}=e,i="".concat(s,"?lat=").concat(t,"&lon=").concat(n),l=await ei(i);null!=l&&l.location&&(z.current=l.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&a)try{navigator.geolocation.getCurrentPosition(r,()=>null)}catch(e){}};return(0,l.useEffect)(()=>{(!W(f,d)||h)&&en({showcaseUrl:u,useNewCitiesApi:d}).then(e=>{e.length<1||g(e)})},[]),(0,l.useEffect)(()=>{if(!d)return;let e=Q(f,C,k);O.current&&K(e.region,e.town)&&(B(e.region,e.town),O.current=!1),j(e)},[f,C,B,k,d]),(0,l.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{G(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{G()},0)},[]),(0,i.jsx)(t$.Provider,{value:{regions:f,towns:T,region:C,town:k,startPopupVisible:N,setStartPopupVisible:I,popupVisible:E,handleToggleModal:P,selectCity:q,handleButtonClick:U,startRegion:v,startTown:x},children:t})},tH=(0,p.g)("city-select-modal-body","sc"),tU=Object.freeze({wrapper:"".concat(tH,"__wrapper"),subtitle:"".concat(tH,"__subtitle"),hintWrapper:"".concat(tH,"__hint-wrapper"),hintText:"".concat(tH,"__hint-text"),input:"".concat(tH,"__input"),chips:"".concat(tH,"__chips"),townsListWrapper:"".concat(tH,"__towns-list-wrapper"),townsList:"".concat(tH,"__towns-list"),townsGroup:"".concat(tH,"__towns-group"),townsGroupLabel:"".concat(tH,"__towns-group-label"),townsGroupList:"".concat(tH,"__towns-group-list"),townsName:"".concat(tH,"__towns-name"),regionName:"".concat(tH,"__region-name")}),tW=e=>{var t;let{groupedTowns:n,chips:o,query:a,setQuery:r,isDrawer:s}=e,u=tF(),d=(0,l.useRef)(null),[p,m]=(0,l.useState)("10000px");(0,l.useEffect)(()=>{if(!s||!d.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),a=o.reduce((e,t,n)=>t<o[e]?n:e,0);0===a&&l[0].push(l[1].shift()),2===a&&l[2].unshift(l[1].pop()),1===a&&o[0]>o[2]&&l[1].unshift(l[0].pop()),1===a&&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=d.current)&&e.children))return;let n=Array.from(d.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let i=0;try{i=t([[],n,[]],1/0)}catch(e){i=0}i>0&&m("".concat(i,"px"))}).observe(d.current)},[]);let h=e=>{if(el(c.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:tU.wrapper,children:[(0,i.jsxs)("div",{className:tU.subtitle,children:["Покажем предложения рядом с вами",(0,i.jsxs)("div",{className:tU.hintWrapper,children:[(0,i.jsx)(tR,{size:24}),(0,i.jsx)("div",{className:tU.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,i.jsx)(T.I,{className:tU.input,value:a,onChange:r,size:"s",placeholder:"Введите название города",icon:a?(0,i.jsx)(tO,{size:24,onClick:()=>r("")}):(0,i.jsx)(tL,{size:24})}),(0,i.jsx)(O.c,{className:tU.chips,chips:o,value:(null==(t=u.town)?void 0:t.id)||0,onChipClick:e=>{h(u.towns.find(t=>t.id===e))}}),(0,i.jsx)("div",{className:tU.townsListWrapper,children:(0,i.jsx)("div",{ref:d,className:tU.townsList,style:{maxHeight:p},children:n.map(e=>(0,i.jsxs)("div",{className:tU.townsGroup,children:[(0,i.jsx)("div",{className:tU.townsGroupLabel,children:e.letter}),(0,i.jsx)("div",{className:tU.townsGroupList,children:e.towns.map(e=>(0,i.jsxs)("button",{type:"button",onClick:()=>h(e),children:[(0,i.jsx)("div",{className:tU.townsName,children:e.name}),(0,i.jsx)("div",{className:tU.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},tV=[1095,1096,134,720,189,180],tq=()=>{var e;let t=tF(),n=(0,u._m)("l"),[o,a]=(0,l.useState)(""),r="Ваш выбор: ".concat((null==(e=t.town)?void 0:e.name)||"Вся Россия"),s=(0,l.useMemo)(()=>t.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(o.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},[]),[o,t.towns.length]),p=(0,l.useMemo)(()=>[{id:0,label:"Вся Россия"},...tV.map(e=>{let n=t.towns.find(t=>t.id===e);return{id:null==n?void 0:n.id,label:null==n?void 0:n.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[t.towns.length]),m=()=>{el(c.D.button,"close"),t.handleToggleModal(!1)};return(0,i.jsxs)(d.P,{children:[!n&&(0,i.jsx)(d.U,{title:r,isOpen:t.popupVisible,onClose:m,full:!0,children:(0,i.jsx)(tW,{groupedTowns:s,chips:p,query:o,setQuery:a})}),n&&(0,i.jsx)(d.D,{title:r,isOpen:t.popupVisible,onClose:m,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,i.jsx)(tW,{groupedTowns:s,chips:p,query:o,setQuery:a,isDrawer:!0})})]})},tG=e=>{let{label:t,onClick:n,eventActionText:l,eventLabel:a,...r}=e;return(0,i.jsx)(o.z,{label:t,onClick:e=>{null==n||n(e),(0,c.h)({eventCategory:w,eventActionType:c.D.button,eventActionText:l||"",eventLabel:a||""})},...r})},tZ={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tY={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tJ=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tQ(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...tZ,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(tJ,{viewBox:"0 0 24 24",style:tY}))}tQ.displayName="IconFdsCloseO";let tX=(0,p.g)("header-popup","sc"),tK=Object.freeze({popup:"".concat(tX,"__popup"),popupHeader:"".concat(tX,"__popup-header"),popupClose:"".concat(tX,"__popup-close"),body:"".concat(tX,"__body")}),t0=e=>{let{isOpen:t,onClose:n,children:l,title:o}=e,a=(0,u._m)("l");return(0,i.jsxs)(d.P,{children:[!a&&(0,i.jsx)(d.U,{title:o,isOpen:t,onClose:n,children:l}),a&&t&&(0,i.jsxs)("div",{className:tK.popup,children:[(0,i.jsxs)("div",{className:tK.popupHeader,children:[o,(0,i.jsx)(tG,{className:tK.popupClose,iconLeft:(0,i.jsx)(tQ,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:n,eventActionText:"IconFdsCloseO"})]}),(0,i.jsx)("div",{className:tK.body,children:l})]})]})},t1=(0,p.g)("start-choice-popup","sc"),t2=Object.freeze({top:"".concat(t1,"__top"),progress:"".concat(t1,"__progress"),innerCircle:"".concat(t1,"__inner-circle"),title:"".concat(t1,"__title"),subtitle:"".concat(t1,"__subtitle"),actions:"".concat(t1,"__actions")}),t7=()=>{var e,t;let n=tF(),[o,a]=(0,l.useState)(10),[r,s]=(0,l.useState)(0),u=(0,l.useRef)(void 0),d=()=>{el(c.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((" "+o).slice(1)),t=1e3*e/100,n=0,i=0;u.current=setInterval(()=>{n++,i+=t,s(3.6*n);let l=e-Math.floor(i/1e3);l<o&&a(l),100===n&&(clearInterval(u.current),d())},t)})():(clearInterval(u.current),a(10),s(0))},[n.startPopupVisible]),(0,i.jsxs)(t0,{isOpen:n.startPopupVisible,onClose:d,title:(0,i.jsx)("button",{type:"button",className:t2.progress,style:{background:"conic-gradient(#ff0508 ".concat(r,"deg, #e3e7ec 0deg)")},onClick:d,children:(0,i.jsx)("div",{className:t2.innerCircle,children:o})}),children:[(0,i.jsxs)("div",{className:t2.top,children:[(0,i.jsxs)("div",{className:t2.title,children:["Ваш город ",(null==(e=n.startTown)?void 0:e.name)||(null==(t=n.startRegion)?void 0:t.name)||"Вся Россия","?"]}),(0,i.jsx)("div",{className:t2.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,i.jsxs)("div",{className:t2.actions,children:[(0,i.jsx)(tG,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{el(c.D.button,"Да, все верно"),n.selectCity(n.startRegion,n.startTown)},children:"Да, все верно"}),(0,i.jsx)(tG,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{el(c.D.button,"Нет, изменить"),n.setStartPopupVisible(!1),n.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},t4=(0,p.g)("city-select","sc"),t3=Object.freeze({button:"".concat(t4,"__button"),minimal:"".concat(t4,"__minimal"),full:"".concat(t4,"__full")}),t5=e=>{var t;let{initialTown:n}=e,a=tF(),s=(null==(t=a.town)?void 0:t.name)||n||"Вся Россия",{setIsChatModalOpen:c,isChatModalOpen:u}=e0(),{startPopupVisible:d,setStartPopupVisible:p,popupVisible:m}=a,h=(0,l.useRef)();(0,l.useEffect)(()=>{m&&(h.current="popup")},[m]),(0,l.useEffect)(()=>{u&&(h.current="chat")},[u]),(0,l.useEffect)(()=>{d&&(h.current="startPopup")},[d]),(0,l.useEffect)(()=>{h.current&&("chat"===h.current&&d?p(!1):["startPopup","popup"].includes(h.current)&&u&&c(!1))},[m,u,d,p,c]);let f={appearance:"ghost",size:"xs",onClick:()=>a.handleButtonClick(!1),iconLeft:(0,i.jsx)(tN,{size:24})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.z,{...f,className:(0,r.Z)(t3.button,t3.full),label:s}),(0,i.jsx)(o.z,{...f,className:(0,r.Z)(t3.button,t3.minimal),shape:"icon"}),(0,i.jsx)(tq,{}),(0,i.jsx)(t7,{})]})},t6=e=>{let{onClick:t,eventActionType:n,eventActionText:l,eventLabel:o,...a}=e;return(0,i.jsx)(eo.r,{onClick:e=>{null==t||t(e),(0,c.h)({eventCategory:w,eventActionType:n||c.D.link,eventActionText:l||"",eventLabel:o||""})},...a})},t8={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},t9={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ne=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nt(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...t8,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(ne,{viewBox:"0 0 24 24",style:t9}))}nt.displayName="IconFdsCloseO";let nn=(0,p.g)("header-mobile-app-banner","sc"),ni=Object.freeze({wrapper:"".concat(nn,"__wrapper"),container:"".concat(nn,"__container"),closeButton:"".concat(nn,"__close-button"),innerWrapper:"".concat(nn,"__inner-wrapper"),imageWrapper:"".concat(nn,"__image-wrapper"),image:"".concat(nn,"__image"),title:"".concat(nn,"__title"),description:"".concat(nn,"__description"),callToAction:"".concat(nn,"__call-to-action"),scanQr:"".concat(nn,"__scan-qr")}),nl=Object.freeze({mobile:56,desktop:68}),no="headerBannerShownAt",na=()=>{let e=localStorage.getItem(no);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},nr=()=>{localStorage.setItem(no,new Date().toISOString())},ns=()=>{let e=na();return!e||Math.floor((e.getTime()-new Date().getTime())/864e5)>5},nc=e=>{let{minioUrl:t,className:n,mobileAppUrl:u}=e,{fixedContainerRef:d,headerRef:p}=e0(),[m,h]=(0,l.useState)(!1),[f,g]=(0,l.useState)(!1),[w,v]=(0,l.useState)(!1),x=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desktop",t=d.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height","".concat(nl[e]+b[e],"px")),document.documentElement.style.setProperty("--new-header-height-desktop","".concat(nl.desktop+b.desktop,"px")),document.documentElement.style.setProperty("--new-header-height-mobile","".concat(nl.mobile+b.mobile,"px")),document.documentElement.style.setProperty("--static-new-header-height-mobile","".concat(nl.mobile+b.mobile,"px")),document.documentElement.style.setProperty("--static-new-header-height-desktop","".concat(nl.desktop+b.desktop,"px")),document.documentElement.style.setProperty("--header-height","".concat(nl[e]+108,"px")))},[]),y=(0,l.useCallback)(()=>{let e=d.current;e&&(document.documentElement.style.removeProperty("--fixed-header-height"),document.documentElement.style.removeProperty("--new-header-height-desktop"),document.documentElement.style.removeProperty("--new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-desktop"),document.documentElement.style.removeProperty("--header-height"),e.style.transform="")},[]);return(0,l.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{f&&h(!1),v(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[f]),(0,l.useEffect)(()=>{ns()&&h(!0)},[]),(0,l.useEffect)(()=>{let e=window.innerWidth<768;m&&(x(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!0):v(!0));let t=()=>{if(!m)return null;x(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{y(),window.removeEventListener("resize",t)}},[m,x,y]),m?(0,i.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":w,className:(0,r.Z)(ni.wrapper,n),children:(0,i.jsx)(a.W,{children:(0,i.jsxs)("div",{className:ni.container,children:[(0,i.jsxs)("div",{className:ni.innerWrapper,children:[(0,i.jsxs)("picture",{className:ni.imageWrapper,children:[(0,i.jsx)("source",{srcSet:(0,s.xn)(t,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{className:ni.image,src:(0,s.xn)(t,"/logo/finuslugi/default-regular.svg"),loading:"lazy"})]}),(0,i.jsxs)("div",{className:ni.scanQr,children:[(0,i.jsx)("div",{className:ni.title,children:"Скачайте приложение Финуслуги"}),(0,i.jsx)("div",{className:ni.description,children:"Сканируйте QR-код"})]}),(0,i.jsxs)("div",{className:ni.callToAction,children:[(0,i.jsxs)("div",{children:["Приложение",(0,i.jsx)("br",{}),"Финуслуги"]}),(0,i.jsx)(o.z,{onClick:()=>{E(c.D.button,"skachat_mob_prilozheniye_fu"),window.open(u,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,i.jsx)("div",{"aria-label":"Закрыть",role:"button",className:ni.closeButton,onClick:()=>{nr(),y(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!1):g(!0)},children:(0,i.jsx)(nt,{size:"100%"})})]})})}):null},nu={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},nd={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function np(e){return{width:"".concat(e,"px"),height:"".concat(e,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"}}let nm=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M7.22 12.53a.75.75 0 010-1.06l6.5-6.5a.75.75 0 111.06 1.06L8.81 12l5.97 5.97a.75.75 0 11-1.06 1.06l-6.5-6.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nh(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...nu,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&np(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(nm,{viewBox:"0 0 24 24",style:nd}))}nh.displayName="IconFdsChevronLeftO";let nf=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ng(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...nu,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&np(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(nf,{viewBox:"0 0 24 24",style:nd}))}ng.displayName="IconFdsChevronRightSmallO";let nw=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nv(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...nu,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&np(i),...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(nw,{viewBox:"0 0 24 24",style:nd}))}nv.displayName="IconFdsLocationO";let nx=(0,p.g)("header-chat-modal-body","sc"),nb=Object.freeze({wrapper:"".concat(nx,"__wrapper"),cardButton:"".concat(nx,"__card-button"),card:"".concat(nx,"__card"),cardTitle:"".concat(nx,"__card-title"),cardSubtitle:"".concat(nx,"__card-subtitle"),button:"".concat(nx,"__button")}),ny=()=>{let e=e0();return(0,i.jsxs)("div",{className:nb.wrapper,children:[(0,i.jsx)(tG,{className:nb.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)(ea.Z,{className:nb.card,variant:"secondary",children:[(0,i.jsxs)("div",{className:nb.cardTitle,children:[(0,i.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,i.jsxs)("p",{className:nb.cardSubtitle,children:["Виртуальный ассистент доступен\xa024/7, ",(0,i.jsx)("br",{}),"операторы\xa0—\xa0с\xa06:00 до\xa023:59\xa0мск"]})]})}),!1]})},n_={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},nC={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},nk=e=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function nj(e){let{className:t,style:n,boxSize:i,size:o,onClick:a}=e;return l.createElement("span",{className:t,style:{...n_,...a&&{cursor:"pointer"},...o&&{fontSize:"".concat(o,"px")},...i&&{width:"".concat(i,"px"),height:"".concat(i,"px"),display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...a?{role:"button",tabIndex:"0",onClick:a}:{}},l.createElement(nk,{viewBox:"0 0 24 24",style:nC}))}nj.displayName="IconFdsArrowUpRightSmallO";let nN=e=>{let{data:t,isMobile:n}=e,o=e0();return(0,i.jsx)("div",{className:ev.contentWrapper,children:t.map(e=>(0,i.jsx)(l.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsxs)("div",{className:(0,r.Z)(ev.content,{[ev.hidden]:o.openedSection!==e.id,[ev.contentOpen]:!!o.openedSection}),children:[(0,i.jsx)("div",{className:ev.contentHeader,children:(0,i.jsx)("label",{children:e.title})}),null==(t=e.content)?void 0:t.map((t,l)=>{var o,a;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:(0,r.Z)(ev.contentTitle,{[ev.removed]:!t.title,[ev.contentTitleUrl]:!!t.url,[ev.contentTitleLink]:!!e.isSeeAllLinkAvailable,[ev.contentTitleNew]:!!t.new}),href:e.isSeeAllLinkAvailable?t.url:void 0,children:(0,i.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,i.jsx)("div",{className:ev.arrowIcon,children:(0,i.jsx)(nj,{})}),t.title]})})}),!(null!=(o=t.links)&&o.length)&&(0,i.jsx)(eb,{items:t.chips||[],maxNumberOfLines:e.content.length<=1?99:n?3:2}),!!(null!=(a=t.links)&&a.length)&&(0,i.jsx)("div",{className:(0,r.Z)(ev.links,{[ev.linksColumns]:!!t.columns,[ev.linksTitleless]:!t.title}),children:t.links.map(e=>(0,i.jsxs)("a",{href:e.url,onClick:()=>E(c.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,i.jsx)("div",{className:ev.arrowIcon,children:(0,i.jsx)(nj,{})}),(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:e.title}),!!e.new&&(0,i.jsx)("span",{className:(0,r.Z)({[ev.newInline]:!!e.new})})]})]},e.url))})]},"".concat(t.url,"_").concat(l))})]},e.id)})},e.id))})},nI=(0,p.g)("navigation-section-icon","sc"),nE=Object.freeze({icon:"".concat(nI)}),nS=()=>n.e(3375).then(n.bind(n,93375)),nz={IconFdsAcademicCapO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsAcademicCapO}),IconFdsBankO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsBankO}),IconFdsBookOpenO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsBookOpenO}),IconFdsCalculatorO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCalculatorO}),IconFdsCardO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCardO}),IconFdsChatDotsCircleO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsChatDotsCircleO}),IconFdsCoinMultipleO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsCoinMultipleO}),IconFdsDotsHorizontalO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsDotsHorizontalO}),IconFdsFlashO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsFlashO}),IconFdsGraphO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsGraphO}),IconFdsLayoutHorizontalO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsLayoutHorizontalO}),IconFdsPortfolioO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsPortfolioO}),IconFdsRubleCircleO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsRubleCircleO}),IconFdsSafeO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsSafeO}),IconFdsShieldCheckO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsShieldCheckO}),IconFdsWalletO:()=>nS().then(e=>{let{navigationSectionIcons:t}=e;return t.IconFdsWalletO})},nO=e=>Object.prototype.hasOwnProperty.call(nz,e),nT=e=>{let{name:t,background:n}=e,[o,a]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(!t||!nO(t)){a(null);return}let e=!0;return nz[t]().then(n=>{e&&a({name:t,component:n})}).catch(()=>{e&&a(null)}),()=>{e=!1}},[t]),!t||!nO(t))return null;let r=(null==o?void 0:o.name)===t?o.component:null;return(0,i.jsx)("div",{className:nE.icon,style:{background:n},children:r&&(0,i.jsx)(r,{})})},nR=(0,p.g)("navigation","sc"),nA=Object.freeze({navigation:"".concat(nR),navigationOpening:"".concat(nR,"--opening"),navigationClosing:"".concat(nR,"--closing"),wrapper:"".concat(nR,"__wrapper"),container:"".concat(nR,"__container"),containerOpen:"".concat(nR,"__container--open"),sections:"".concat(nR,"__sections"),sectionsOpen:"".concat(nR,"__sections--open"),citySelectButton:"".concat(nR,"__city-select-button"),sectionsTitle:"".concat(nR,"__sections-title"),sectionsWrapper:"".concat(nR,"__sections-wrapper"),section:"".concat(nR,"__section"),sectionArrow:"".concat(nR,"__section-arrow"),sectionExtra:"".concat(nR,"__section--extra"),sectionActive:"".concat(nR,"__section--active"),sectionTitle:"".concat(nR,"__section-title"),chatWrapper:"".concat(nR,"__chat-wrapper"),chatHeader:"".concat(nR,"__chat-header"),backButton:"".concat(nR,"__back-button"),useful:"".concat(nR,"__useful"),usefulOpen:"".concat(nR,"__useful--open"),usefulTitle:"".concat(nR,"__useful-title"),usefulGrid:"".concat(nR,"__useful-grid"),removed:"".concat(nR,"__removed")}),nL=e=>{var t;let{data:n}=e,s=e0(),d=tF(),p=(0,u.aF)("m"),[m,h]=(0,l.useState)(!0);(0,l.useEffect)(()=>{h(p)},[p]);let f=(0,l.useRef)(null),g=(0,l.useCallback)(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>s.openedSection?s.setOpenedSection(null):s.isNavigationOpen?s.setOpenedBlock(null):void 0,50)},[s]),w=(0,l.useRef)(!1),v=(0,l.useRef)(null),b=(0,l.useCallback)(()=>{m&&(w.current=!0,v.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,m]),y=(0,l.useCallback)(()=>{w.current=!1,window.onpopstate=v.current,window.history.go(-1)},[]),_=(0,l.useRef)(null),C=(0,l.useCallback)(e=>{if(m||!s.navMenuItemsRef.current||!s.navigationRef.current)return;let t=e.target,n=!s.navMenuItemsRef.current.contains(t)&&!s.navigationRef.current.contains(t);if(n&&!_.current){s.setIgnoreClicks(),_.current=setTimeout(()=>s.setOpenedBlock(null),300);return}!n&&_.current&&(clearTimeout(_.current),_.current=null)},[m,s]),k=(0,l.useRef)(null),j=(0,l.useCallback)(e=>{typeof window>"u"||(e?(k.current=C,window.addEventListener("mousemove",k.current)):k.current&&window.removeEventListener("mousemove",k.current))},[C]);(0,l.useEffect)(()=>{j(s.isNavigationOpen),s.isNavigationOpen&&!w.current&&b(),!s.isNavigationOpen&&w.current&&y()},[s.isNavigationOpen]);let N=(e,t)=>()=>{E(c.D.button,t),s.setOpenedSection(e)},{start:I,clear:S}=eM(),z=(e,t)=>()=>{m||I(N(e,t),150)},O=()=>{m||S()};return(0,i.jsx)("div",{ref:s.navigationRef,className:(0,r.Z)(nA.navigation,{[nA.removed]:!s.isNavigationMounted,[nA.navigationOpening]:s.isNavigationOpen,[nA.navigationClosing]:!s.isNavigationOpen}),children:(0,i.jsx)("div",{className:nA.wrapper,children:(0,i.jsxs)(a.W,{className:(0,r.Z)(nA.container,{[nA.containerOpen]:!!s.openedSection}),children:[(0,i.jsxs)("div",{className:(0,r.Z)(nA.sections,{[nA.sectionsOpen]:!!s.openedSection}),children:[(0,i.jsx)(o.z,{className:nA.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>d.handleButtonClick(!1),iconLeft:(0,i.jsx)(nv,{size:24}),label:(null==(t=d.town)?void 0:t.name)||"Вся Россия"}),n.map(e=>(0,i.jsxs)("ul",{className:(0,r.Z)(nA.sectionsWrapper,{[nA.removed]:s.openedBlock!==e.id&&!m}),children:[(0,i.jsx)("div",{className:nA.sectionsTitle,children:x[e.id]}),e.sections.map(e=>(0,i.jsxs)("li",{className:(0,r.Z)(nA.section,{[nA.sectionExtra]:!!e.extra,[nA.sectionActive]:s.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:z(e.id,e.title),onMouseLeave:O,children:[s.isNavigationMounted&&(0,i.jsx)(nT,{name:e.uikitIcon,background:e.uikitIconBg}),(0,i.jsx)("span",{className:nA.sectionTitle,children:e.title}),(0,i.jsx)("div",{className:nA.sectionArrow,children:(0,i.jsx)(ng,{size:24})})]},e.id))]},e.id)),(0,i.jsxs)("div",{className:nA.chatWrapper,children:[(0,i.jsx)("div",{className:nA.chatHeader,children:"Нужна помощь?"}),(0,i.jsx)(ny,{})]})]}),(0,i.jsxs)("button",{type:"button",className:(0,r.Z)(nA.backButton,{[nA.removed]:!s.openedSection}),onClick:()=>{E(c.D.button,"Назад"),s.setOpenedSection(null)},children:[(0,i.jsx)(nh,{size:24}),(0,i.jsx)("span",{children:"Назад"})]}),(0,i.jsx)(nN,{data:n,isMobile:m}),(0,i.jsxs)("div",{className:(0,r.Z)(nA.useful,{[nA.usefulOpen]:!!s.openedSection}),children:[(0,i.jsx)("div",{className:nA.usefulTitle,children:"Полезное на Финуслугах"}),n.map(e=>(0,i.jsx)(l.Fragment,{children:e.sections.map(e=>{var t;return(0,i.jsx)("div",{className:(0,r.Z)(nA.usefulGrid,{[nA.removed]:s.openedSection!==e.id}),children:null==(t=e.useful)?void 0:t.map((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:()=>E(c.D.link,e.title,"".concat(e.title,"_").concat(e.url)),children:[(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:e.icon,srcSet:e.icon2?"".concat(e.icon,", ").concat(e.icon2," 2x"):void 0,alt:e.title,loading:"lazy"})}),(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},"".concat(e.title,"_").concat(t)))},e.id)})},e.id))]})]})})})},nM=(e,t,n)=>{var i,l,o,a,r,c,u;let d=(null==(l=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i.findIndex)?void 0:l.call(i,e=>{let{id:t}=e;return"news"===t}))||-1,p=(null==(a=null==(o=null==e?void 0:e.NAVIGATOR)?void 0:o[d])?void 0:a.content)||[];if(null!=(u=null==(c=null==(r=null==e?void 0:e.NAVIGATOR)?void 0:r[d])?void 0:c.content)&&u[0]&&Array.isArray(n)&&p.length){let i=n.map(e=>{let{title:n,url:i}=e;return{title:n,url:(0,s.xn)(t||"",i),new:0}});e.NAVIGATOR[d].content[0].links=i}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]},nP=e=>{let{data:t,showcaseUrl:n="https://finuslugi.ru",minioUrl:u="https://assets.finuslugi.ru/mp-assets",lkUrl:d="https://lk.finuslugi.ru/registration",initialTown:p,isMainBannerPage:m,enableAppHeaderBanner:f=!1,enableCertificatesBanner:g=!1,enableExternalLinkWarning:w=!1,news:x,className:b}=e,y=e0(),_=(0,l.useMemo)(()=>nM(t,n,x),[t,n,x]),C=null==t?void 0:t.config,k=!!t&&g&&!!m,j=t_({enableCertificatesBanner:k,enableExternalLinkWarning:w,isMainBannerPage:!!m}),N="shown"===j.bannerStatus||"closing"===j.bannerStatus,I=!k||"skipped"===j.bannerStatus,S=(0,l.useMemo)(()=>_.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[_]),z=y.isAuth?"Личный кабинет":"Войти",O=m&&y.isHeaderTransparent,T=(e,t,n,i)=>()=>{e!==y.openedBlock?E(c.D.toggle,t,"on"):E(c.D.button,"menu_close","on");let l=n?S[e]:"";y.setOpenedBlock(e,l,!!i)},{start:R,clear:A}=eM(),L=(e,t,n,i)=>()=>{y.isNavigationOpen&&e===y.openedBlock||y.setIgnoreClicks(),R(T(e,t,n,i),200)},M=e=>()=>{y.ignoreClicks||e()},P=e=>y.openedBlock===e&&y.isNavigationOpen,B=(0,i.jsx)(tf,{isOpen:j.isPopupOpen,analyticsContext:j.popupAnalyticsContext,onClose:j.closePopup,onOpenCertificatesPage:j.openCertificatesPage,onOpenYandexBrowserPage:j.openYandexBrowserPage,onContinue:j.continueToExternalPage});return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:y.headerRef,className:(0,r.Z)(h.header,b,{[h.transparent]:O}),children:(0,i.jsxs)("div",{ref:y.fixedContainerRef,className:(0,r.Z)(h.fixed,{[h.hidden]:y.isHeaderHidden,[h.navigationOpen]:y.isNavigationOpen}),children:[N&&(0,i.jsx)(tn,{onDismiss:j.dismissBanner,onClosed:j.finishBannerClosing,onOpenDetails:j.openPopupFromBanner,onOpenCertificatesPage:j.openCertificatesPage,onOpenYandexBrowserPage:j.openYandexBrowserPage}),I&&!!(null!=C&&C.appBannerUrl)&&f&&(0,i.jsx)(nc,{mobileAppUrl:C.appBannerUrl,minioUrl:u}),(0,i.jsxs)(a.W,{className:h.container,children:[(0,i.jsxs)("div",{className:h.leftRow,children:[(0,i.jsx)(t6,{className:h.logo,href:n,eventActionType:c.D.icon,eventActionText:"finuslugi_logo",eventLabel:"finuslugi_logo_".concat(n),children:(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:(0,s.xn)(u,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,i.jsx)("img",{src:(0,s.xn)(u,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,i.jsx)("nav",{ref:y.navMenuItemsRef,className:h.menuItems,children:(0,i.jsx)("ul",{children:v.map(e=>{let{id:t,label:n}=e;return(0,i.jsx)("li",{children:(0,i.jsx)(o.z,{className:(0,r.Z)({[h.menuItemActive]:P(t)}),label:n,variant:"white",size:"xs",onClick:M(T(t,n,!0)),onMouseEnter:L(t,n,!0,!0),onMouseLeave:A})},t)})})}),(0,i.jsx)(tG,{className:(0,r.Z)(h.tabletMenuButton,{[h.menuItemActive]:y.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,i.jsx)(eS,{size:24}),onClick:T("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,i.jsxs)("div",{className:(0,r.Z)(h.buttonGroup,{[h.whiteIcons]:(null==C?void 0:C.iconColorOnMobileMainBanner)==="white"}),children:[(0,i.jsxs)("div",{className:h.chips,children:[(0,i.jsx)(tG,{as:"a",href:d,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:"profile_".concat(d),iconLeft:(0,i.jsx)(eL,{size:20})}),(0,i.jsx)(tG,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,i.jsx)(ej,{size:24})})]}),(0,i.jsx)(tG,{className:h.menuButton,size:"xs",shape:O?"icon":"default",appearance:O?"ghost":"fill",label:"Меню",onClick:T("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,i.jsx)(eR,{size:24})}),(0,i.jsxs)("div",{className:h.moreButtons,children:[(0,i.jsx)(t5,{initialTown:p}),(0,i.jsx)(tG,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",appearance:"ghost",eventActionText:"IconFdsChatDotsSquareAddO",iconLeft:(0,i.jsx)(eI,{size:24}),children:"Онлайн чат"}),(0,i.jsx)(tG,{as:"a",href:d,size:"xs",eventActionText:z,eventLabel:"".concat(z,"_").concat(d),label:z})]})]}),(0,i.jsxs)(t6,{className:h.auth,href:d,eventActionText:z,eventLabel:"".concat(z,"_").concat(d),children:[(0,i.jsx)(tG,{size:"xs",shape:"circle-icon",iconLeft:(0,i.jsx)(eL,{}),eventActionText:z,eventLabel:"".concat(z,"_").concat(d)}),(0,i.jsx)("p",{children:z})]}),(0,i.jsx)("div",{className:h.close,children:(0,i.jsx)(tG,{className:h.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,i.jsx)(eO,{}),onClick:()=>y.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,i.jsx)("div",{className:(0,r.Z)(h.overlay,{[h.removed]:!y.isNavigationMounted,[h.overlayOpening]:y.isNavigationOpen,[h.overlayClosing]:!y.isNavigationOpen}),onClick:M(()=>y.setOpenedBlock(null))}),(0,i.jsx)(nL,{data:_,minioUrl:u}),B]}):w?B:null},nB=e=>(0,i.jsx)(e1,{isMainBannerPage:e.isMainBannerPage,children:(0,i.jsx)(nP,{...e})})},17730:function(e,t,n){"use strict";n.d(t,{B:function(){return N}}),n(44717);var i=n(57437),l=n(67880),o=n(53035),a=n(61994),r=n(2265),s=n(66187),c=n(89694),u=n(63327),d=n(52074);let p={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},m={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},h=e=>r.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function f({className:e,style:t,boxSize:n,size:i,onClick:l}){return r.createElement("span",{className:e,style:{...p,...l&&{cursor:"pointer"},...i&&{fontSize:`${i}px`},...n&&{width:`${n}px`,height:`${n}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...l?{role:"button",tabIndex:"0",onClick:l}:{}},r.createElement(h,{viewBox:"0 0 24 24",style:m}))}f.displayName="IconFdsArrowUpRightSmallO";let g=(0,d.g)("support","sc"),w=Object.freeze({support:g,title:`${g}__title`,cardsContainer:`${g}__cards-container`}),v="cb-support",x=(0,d.g)("support-app-card","sc"),b=Object.freeze({supportAppCard:x,textWrapper:`${x}__text-wrapper`,imageContainer:`${x}__image-container`,title:`${x}__title`,description:`${x}__description`,button:`${x}__button`,imageWrapper:`${x}__image-wrapper`,image:`${x}__image`}),y=({title:e,linkUrl:t,s3Assets:n,description:l})=>{let o=(0,c.aF)("s");return(0,i.jsxs)("div",{className:b.supportAppCard,onClick:()=>{o&&((0,u.h)({eventCategory:v,eventActionType:u.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,i.jsx)(s.z,{className:b.button,iconLeft:(0,i.jsx)(f,{size:24}),shape:"circle-icon",size:"xs"}),(0,i.jsxs)("div",{className:b.textWrapper,children:[(0,i.jsx)("div",{className:b.title,children:e}),!!l&&(0,i.jsx)("div",{className:b.description,children:l})]}),(0,i.jsx)("div",{className:b.imageContainer,children:(0,i.jsxs)("picture",{className:b.imageWrapper,children:[(0,i.jsx)("source",{media:"(max-width: 767px)",srcSet:`${n}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${n}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,i.jsx)("img",{className:b.image,loading:"lazy",src:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},_=(0,d.g)("support-phone-card","sc"),C=Object.freeze({supportPhoneCard:_,contacts:`${_}__contacts`,contactsExtra:`${_}__contacts-extra`,phone:`${_}__phone`,phonesExtra:`${_}__phones-extra`,phoneExtra:`${_}__phone-extra`,chat:`${_}__chat`,text:`${_}__text`,image:`${_}__image`}),k=({phones:e,phonesExtra:t,description:n,s3Assets:l})=>{let o=(0,r.useCallback)(()=>{var e,t,n;null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||n.call(t),(0,u.h)({eventCategory:v,eventActionType:u.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),a=e=>{let t=e.replace(/[\s-]/g,"");(0,u.h)({eventCategory:v,eventActionType:u.D.link,eventActionText:"phone",eventLabel:t})};return(0,i.jsxs)("div",{className:C.supportPhoneCard,children:[(0,i.jsxs)("div",{className:C.contacts,children:[e.map(e=>(0,i.jsx)("a",{className:C.phone,href:e.href,onClick:()=>a(e.label),children:e.label},e.label)),(0,i.jsx)("span",{className:C.chat,onClick:o,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,i.jsxs)("div",{className:C.contactsExtra,children:[(0,i.jsx)("p",{className:C.text,children:"Дополнительные телефоны"}),(0,i.jsx)("div",{className:C.phonesExtra,children:t.map(e=>(0,i.jsx)("a",{className:C.phoneExtra,href:e.href,onClick:()=>a(e.label),children:e.label},e.label))})]}),(0,i.jsx)("p",{className:C.text,children:n}),(0,i.jsx)("img",{className:C.image,src:`${l}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`,loading:"lazy"})]})},j=({className:e,phoneCard:t,appCard:n,s3Assets:r})=>t&&n?(0,i.jsx)("section",{className:(0,a.Z)(w.support,e),children:(0,i.jsxs)(l.W,{children:[(0,i.jsx)(o.X,{as:"h2",type:"display",weight:"bold",className:w.title,children:"Поддержка"}),(0,i.jsxs)("div",{className:w.cardsContainer,children:[(0,i.jsx)(k,{s3Assets:r,...t}),(0,i.jsx)(y,{s3Assets:r,...n})]})]})}):null;j.displayName="Support";let N=j}}]);