(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58858,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}])},60822,e=>{"use strict";var t=e.i(43476),r=e.i(7670);let a=(0,e.i(54061).g)("container"),o=Object.freeze({container:a,states:{narrow:`${a}--narrow`}}),n=({children:e,as:a,fluid:n=!1,className:i="",...s})=>(0,t.jsx)(a||"div",{className:(0,r.default)(o.container,i,{[o.states.narrow]:!n}),...s,children:e});n.displayName="Container",e.s(["Container",0,n])},65019,46381,e=>{"use strict";var t=e.i(43476),r=e.i(7670),a=e.i(54061);let o=(0,a.g)("card"),n={card:o,variants:{primary:`${o}--primary`,secondary:`${o}--secondary`}},i=({as:e,className:a,style:o,children:i,variant:s="primary",dataQa:l,dataId:c,...u})=>(0,t.jsx)(e||"div",{className:(0,r.default)(a,n.card,n.variants[s]),style:o,...u,"data-id":c,"data-qa":l,children:i});i.displayName="Card",e.s(["Card",0,i],65019);var s=e.i(71645),l=e.i(14044);let c=(0,a.g)("chips"),u=Object.freeze({chips:c,chip:`${c}__item`,icon:`${c}__icon`,iconLeft:`${c}__icon-left`,iconRight:`${c}__icon-right`,label:`${c}__label`,variants:{primary:`${c}--primary`,secondary:`${c}--secondary`,tertiary:`${c}--tertiary`},activeVariants:{primary:`${c}--active-primary`,secondary:`${c}--active-secondary`},sizes:{s:`${c}--s`,m:`${c}--m`,l:`${c}--l`},selected:`${c}--selected`,indicator:`${c}__indicator`,indicatorVariant:{red:`${c}__indicator--red`,orange:`${c}__indicator--orange`,green:`${c}__indicator--green`,purple:`${c}__indicator--purple`,purpleSecondary:`${c}__indicator--purple-secondary`,blue:`${c}__indicator--blue`,pink:`${c}__indicator--pink`}}),d=(0,s.forwardRef)(({chips:e,value:a,variant:o="primary",activeVariant:n="primary",multiple:i,clearable:c,size:d="m",className:p,style:f,dataQa:h,dataId:m,onChipClick:g,...y},b)=>{let[_,v]=(0,s.useState)(i?[]:void 0),w=(0,s.useRef)(null);(0,s.useImperativeHandle)(b,()=>({getRoot:()=>w.current,getSelectedChips:()=>_})),(0,s.useEffect)(()=>{i?v(Array.isArray(a)?a:[]):v(a)},[a,i]);let $=i||c,x=e=>i&&Array.isArray(_)?_.includes(e):_===e,j=(e,t,r)=>{v(r),null==g||g(e,t,r)},E=(e,t)=>{if(i&&Array.isArray(_))if(x(e)){let r=_.filter(t=>t!==e);j(e,t,r)}else j(e,t,[..._,e]);else{let r=c&&x(e)?void 0:e;j(e,t,r)}};return(0,t.jsx)("div",{ref:w,className:(0,r.default)(p,u.chips),style:f,...y,"data-id":m,"data-qa":h,children:e.map((e,a)=>(({id:e,label:a,iconLeft:i,iconRight:s,indicator:c},p)=>{let f=x(e);return(0,t.jsxs)("div",{className:(0,r.default)(u.chip,u.sizes[d],u.activeVariants[n],u.variants[o],[{[u.selected]:f}]),role:$?"checkbox":"radio","aria-checked":f,"aria-label":a,tabIndex:0,"data-qa":(0,l.g)(`${h}-item-${++p}`,!!h),onClick:t=>{E(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),E(e,t))},children:[i&&(0,t.jsx)("span",{className:(0,r.default)(u.icon,u.iconLeft),"aria-hidden":"true",children:i}),(0,t.jsx)("span",{className:(0,r.default)(u.label),children:a}),c&&(0,t.jsx)("div",{className:(0,r.default)(u.indicator,u.indicatorVariant[c])}),s&&(0,t.jsx)("span",{className:(0,r.default)(u.icon,u.iconRight),"aria-hidden":"true",children:s})]},e)})(e,a))})});d.displayName="Chips",e.s(["Chips",0,d],46381)},79335,e=>{"use strict";e.s(["EDITORS_EMAIL",0,"editors@finuslugi.ru","KASKO_URL",0,"/kasko","LK",0,"https://lk.finuslugi.ru/registration/","OPENGRAPH_IMAGE",0,"https://finuslugi.ru/icons/1200x630-logo.jpg","OSAGO_URL",0,"/osago"])},67638,e=>{"use strict";var t=e.i(47167);e.i(43476),e.i(10679);var r=e.i(8438);let a=(0,e.i(22468).g)("root-layout","sc");Object.freeze({layout:`${a}__layout`,body:`${a}__body`}),e.s(["getEnvValue",0,()=>{if(typeof window>"u")return{...t.default.env};let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e}])},82372,e=>{"use strict";e.i(47167);let t=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,a=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function n(e,i={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let s=e.trim();if(s.length<=9)switch(s.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!a.test(e)){if(i.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(t.test(e)||r.test(e)){if(i.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(t){if(i.strict)throw t;return e}}let i=/#/g,s=/&/g,l=/\//g,c=/=/g,u=/\+/g,d=/%5e/gi,p=/%60/gi,f=/%7c/gi,h=/%20/gi;function m(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(f,"|").replace(u,"%2B").replace(h,"+").replace(i,"%23").replace(s,"%26").replace(p,"`").replace(d,"^").replace(l,"%2F")}function g(e){return m(e).replace(c,"%3D")}function y(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let b=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,v=/^([/\\]\s*){2,}[^/\\]/,w=/\/$|\/\?|\/#/,$=/^\.?\//;function x(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?b.test(e):_.test(e)||!!t.acceptRelative&&v.test(e)}let j=Symbol.for("ufo:protocolRelative");function E(e=""){let[t="",r="",a=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:a}}class T extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let S=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function N(e="GET"){return S.has(e.toUpperCase())}let A=new Set(["image/svg","application/xml","application/xhtml","application/html"]),L=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function C(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let P=new Set([408,409,425,429,500,502,503,504]),R=new Set([101,204,205,304]),O="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,k=O.fetch?(...e)=>O.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),q=function e(t={}){let{fetch:r=globalThis.fetch,Headers:a=globalThis.Headers,AbortController:o=globalThis.AbortController}=t;async function i(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!N(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):P.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),s(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",a=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(a)}`,n=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=new T(`${o}: ${n}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(i,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(i,t,{get:()=>e.response&&e.response[r]});return i}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,s),r}let s=async function(e,s={}){var l,c,d,p;let f,h,b,_={request:e,options:(l=t.defaults,b=function(e,t,r){if(!t)return new r(e);let a=new r(t);if(e)for(let[t,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))a.set(t,o);return a}(s?.headers??e?.headers,l?.headers,a),(l?.query||l?.params||s?.params||s?.query)&&(h={...l?.params,...l?.query,...s?.params,...s?.query}),{...l,...s,query:h,params:h,headers:b}),response:void 0,error:void 0};if(_.options.method&&(_.options.method=_.options.method.toUpperCase()),_.options.onRequest&&(await C(_,_.options.onRequest),_.options.headers instanceof a||(_.options.headers=new a(_.options.headers||{}))),"string"==typeof _.request){if(_.options.baseURL&&(_.request=function(e,t){var r;if(!(r=t)||"/"===r||x(e))return e;let a=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(a)){let t=e[a.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace($,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(a,e)}(_.request,_.options.baseURL)),_.options.query){let e,t,r,a,o,n,i;c=_.request,d=_.options.query,t={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let a=y(e[1].replace(u," "));if("__proto__"===a||"constructor"===a)continue;let o=y((e[2]||"").replace(u," "));void 0===t[a]?t[a]=o:Array.isArray(t[a])?t[a].push(o):t[a]=[t[a],o]}return t}((e=function e(t="",r){let a=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(a){let[,e,t=""]=a;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!x(t,{acceptRelative:!0}))return r?e(r+t):E(t);let[,o="",n,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",l=""]=i.match(/([^#/?]*)(.*)?/)||[];"file:"===o&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:u,hash:d}=E(l);return{protocol:o.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:s,pathname:c,search:u,hash:d,[j]:!o}}(c)).search),...d},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${g(e)}=${m(t)}`).join("&"):`${g(e)}=${m(r)}`:g(e)}).filter(Boolean).join("&"),r=(p=e).pathname||"",a=p.search?(p.search.startsWith("?")?"":"?")+p.search:"",o=p.hash||"",n=p.auth?p.auth+"@":"",i=p.host||"",_.request=(p.protocol||p[j]?(p.protocol||"")+"//":"")+n+i+r+a+o,delete _.options.query}"query"in _.options&&delete _.options.query,"params"in _.options&&delete _.options.params}if(_.options.body&&N(_.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(_.options.body)){let e=_.options.headers.get("content-type");"string"!=typeof _.options.body&&(_.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(_.options.body).toString():JSON.stringify(_.options.body)),e||_.options.headers.set("content-type","application/json"),_.options.headers.has("accept")||_.options.headers.set("accept","application/json")}else("pipeTo"in _.options.body&&"function"==typeof _.options.body.pipeTo||"function"==typeof _.options.body.pipe)&&!("duplex"in _.options)&&(_.options.duplex="half");if(!_.options.signal&&_.options.timeout){let e=new o;f=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},_.options.timeout),_.options.signal=e.signal}try{_.response=await r(_.request,_.options)}catch(e){return _.error=e,_.options.onRequestError&&await C(_,_.options.onRequestError),await i(_)}finally{f&&clearTimeout(f)}if((_.response.body||_.response._bodyInit)&&!R.has(_.response.status)&&"HEAD"!==_.options.method){let e=(_.options.parseResponse?"json":_.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return L.test(t)?"json":"text/event-stream"===t?"stream":A.has(t)||t.startsWith("text/")?"text":"blob"}(_.response.headers.get("content-type")||"");switch(e){case"json":{let e=await _.response.text(),t=_.options.parseResponse||n;_.response._data=t(e);break}case"stream":_.response._data=_.response.body||_.response._bodyInit;break;default:_.response._data=await _.response[e]()}}return(_.options.onResponse&&await C(_,_.options.onResponse),!_.options.ignoreResponseError&&_.response.status>=400&&_.response.status<600)?(_.options.onResponseError&&await C(_,_.options.onResponseError),await i(_)):_.response},l=async function(e,t){return(await s(e,t))._data};return l.raw=s,l.native=(...e)=>r(...e),l.create=(r={},a={})=>e({...t,...a,defaults:{...t.defaults,...a.defaults,...r}}),l}({fetch:k,Headers:O.Headers,AbortController:O.AbortController});var U=e.i(67638);let B=0,I=[],z=new Map,D=async()=>{B>=12&&await new Promise(e=>{I.push(e)}),B+=1},W=async e=>{await D();try{return await e()}finally{B=Math.max(0,B-1),I.shift()?.()}},F=(e,t)=>{let{isPageContent:r,isMpScRedirects:a,isMpScApi:o,isMpScNavigator:n}=t;return r?`${e.NEXT_PUBLIC_BASE_URL}/page-content`:o||n?`${e.NEXT_PUBLIC_BASE_URL}/sc`:e.NEXT_PUBLIC_BASE_URL},M=async({url:e,endpoint:t,method:r,config:a,env:o,tags:n})=>{let i=new AbortController,s=setTimeout(()=>i.abort(),5e3),l=()=>i.abort();a?.signal?.aborted&&i.abort(),a?.signal?.addEventListener("abort",l,{once:!0});let c=performance.now();try{let n=await q(e,{baseURL:t,method:r,headers:{...a?.headers},...a,signal:i.signal,timeout:5e3,retry:0,next:{revalidate:Number(o.REVALIDATE_REQUEST_VALUE)||1800,...{}}}),s=performance.now()-c;return s>=1e3&&console.warn(`Запрос ${t}${e} занял ${s.toFixed(2)} ms`),{data:n,error:null}}catch(r){return r.status??r.statusCode,console.error("Ошибка запроса",`${r}: ${t}${e}`),{data:null,error:r||"Unknown error"}}finally{clearTimeout(s),a?.signal?.removeEventListener("abort",l)}},H=async({url:e,options:t={},config:r})=>{let a=(0,U.getEnvValue)(),o=F(a,t),n=(r?.method||"GET").toUpperCase();if(!o)return console.error("Ошибка запроса: API endpoint не задан",e),{data:null,error:"API endpoint is not configured"};let i=()=>W(()=>M({url:e,endpoint:o,method:n,config:r,env:a,tags:t.tags}));if(r?.signal||"GET"!==n&&"HEAD"!==n)return i();var s=`${n}:${o}${e}`;let l=z.get(s);if(l)return l;let c=i().finally(()=>{z.delete(s)});return z.set(s,c),c};e.s(["callApi",0,H,"getApiEndpoint",0,F],82372)},17212,e=>{"use strict";e.s(["convertSettledData",0,function(e,t){return e?.status==="fulfilled"?e.value:t}])},1178,(e,t,r)=>{let a;{let e=e=>function(){throw Error(`\`${e}\` is only available in a Server Component.`)};a={unstable_cache:function(e){return"function"!=typeof e?e:function(){return e.apply(this,arguments)}},unstable_noStore:function(){},updateTag:e("updateTag"),revalidateTag:e("revalidateTag"),revalidatePath:e("revalidatePath"),refresh:e("refresh"),cacheLife:e("cacheLife"),cacheTag:e("cacheTag")}}let o=!1,n=!1;a.unstable_cacheLife=function(){return o||(o=!0,console.error(Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js."))),a.cacheLife.apply(this,arguments)},a.unstable_cacheTag=function(){return n||(n=!0,console.error(Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js."))),a.cacheTag.apply(this,arguments)},t.exports=a,r.unstable_cache=a.unstable_cache,r.revalidatePath=a.revalidatePath,r.revalidateTag=a.revalidateTag,r.updateTag=a.updateTag,r.unstable_noStore=a.unstable_noStore,r.cacheLife=a.cacheLife,r.unstable_cacheLife=a.unstable_cacheLife,r.cacheTag=a.cacheTag,r.unstable_cacheTag=a.unstable_cacheTag,r.refresh=a.refresh},18524,e=>{"use strict";var t=e.i(82372);e.s(["CmsService",0,{getLayoutData:async e=>(await (0,t.callApi)({url:`/api/v1/layout/${e}`,options:{isMpScApi:!0}})).data||null,async getPageData(e,r){let a=new URLSearchParams({scLayoutName:e,scPageUrl:r}).toString();return(await (0,t.callApi)({url:`/api/v1/data/page-data?${a}`,options:{isMpScApi:!0}})).data||null},getPage:async e=>(await (0,t.callApi)({url:`/api/v1/sc-page/${e}`,options:{isMpScApi:!0}})).data||null}])},24359,e=>{"use strict";let t={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,r={})=>{if(typeof document>"u")return;(r={path:"/",...r}).expires instanceof Date&&(r.expires=r.expires.toUTCString());let a=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in r){if(!r.hasOwnProperty(e))continue;a+=`; ${e}`;let t=r[e];!0!==t&&(a+=`=${t}`)}document.cookie=a},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["a",0,t])},71121,99277,e=>{"use strict";let t=Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})}),r=Object.freeze(Object.keys(t));Object.freeze(r.filter(e=>"xs"!==e)),Object.freeze(r.filter(e=>"3xl"!==e)),e.s(["BREAKPOINTS",0,t],99277);var a=e.i(71645);function o(){return"u"<typeof window}e.i(91402);let n=o()?a.useLayoutEffect:a.useEffect;function i(e,t=!1){return o()?t:window.matchMedia(e).matches}function s(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[o,l]=(0,a.useState)(()=>r?i(e,t):t??!1);function c(){l(i(e))}return n(()=>{let t=window.matchMedia(e);return c(),"function"==typeof t.addListener?t.addListener(c):t.addEventListener("change",c),()=>{"function"==typeof t.removeListener?t.removeListener(c):t.removeEventListener("change",c)}},[e]),o}e.s(["useBreakpointDown",0,function(e){let{maxWidth:r}=t[e];return s(`screen and (max-width: ${r}px)`)},"useBreakpointUp",0,function(e){let{minWidth:r}=t[e];return s(`screen and (min-width: ${r}px)`)},"useMediaQuery",0,s],71121)},91784,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(43489),o=e.i(7670),n=e.i(2753),i=e.i(14044),s=e.i(54061),l=e.i(16727),c=e.i(58858),u=e.i(21214),d=e.i(2404);let p=(0,s.g)("modal"),f=Object.freeze({modal:p,overlay:`${p}__overlay`,withoutFooter:`${p}--without-footer`,noContent:`${p}--no-content`,open:`${p}--open`,overlayOpen:`${p}__overlay--open`,height:{medium:`${p}--height-medium`,full:`${p}--height-full`},size:{s:`${p}--s`,m:`${p}--m`,l:`${p}--l`,xl:`${p}--xl`},header:`${p}__header`,headerText:`${p}__header-text`,headerTitle:`${p}__header-title`,headerSubtitle:`${p}__header-subtitle`,closeIcon:`${p}__close-icon`,backButton:`${p}__back-button`,backButtonText:`${p}__back-button-text`,headerStates:{centered:`${p}__header--centered`,withLongBtn:`${p}__header--with-long-btn`,defaultHeight:`${p}__header--default-height`},content:`${p}__content`,withoutPadding:`${p}__content--without-padding`,withScroll:`${p}__content--with-scroll`,footer:`${p}__footer`,footerContainer:`${p}__footer-container`,footerBtn:`${p}__footer-btn`,footerDescription:`${p}__footer-description`,divider:`${p}__divider`,dividerTop:`${p}__divider--top`,dividerBottom:`${p}__divider--bottom`}),h=({primaryBtnText:e,onPrimary:r,secondaryBtnText:a,onSecondary:n,thirdBtnText:s,onThird:c,description:u,children:d,noContent:p,dataQa:h})=>(0,t.jsxs)("div",{"data-qa":(0,i.g)(`${h}-footer`,!!h),className:(0,o.default)(f.footer,{[f.noContent]:p}),children:[!p&&(0,t.jsx)("div",{className:(0,o.default)(f.divider,f.dividerTop)}),d||(0,t.jsxs)("div",{className:f.footerContainer,children:[s&&(0,t.jsx)(l.a,{dataQa:(0,i.g)(`${h}-footer-third-btn`,!!h),label:s,variant:"secondary",size:"s",className:f.footerBtn,onClick:c}),a&&(0,t.jsx)(l.a,{dataQa:(0,i.g)(`${h}-footer-secondary-btn`,!!h),label:a,variant:"secondary",size:"s",className:f.footerBtn,onClick:n}),e&&(0,t.jsx)(l.a,{dataQa:(0,i.g)(`${h}-footer-primary-btn`,!!h),label:e,size:"s",className:f.footerBtn,onClick:r})]}),u&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${h}-footer-description`,!!h),className:f.footerDescription,children:u})]}),m=({text:e,title:r,subtitle:a,align:n="left",backBtnVariant:s,onBack:l,onClose:p,noContent:h,dataQa:m,withoutCloseBtn:g=!1})=>(0,t.jsxs)("div",{"data-qa":(0,i.g)(`${m}-header`,!!m),className:(0,o.default)(f.header,{[f.headerStates.centered]:"center"===n||!!s,[f.headerStates.withLongBtn]:"long"===s,[f.headerStates.defaultHeight]:!e&&!r&&!a}),children:[e&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${m}-header-text`,!!m),className:f.headerText,children:e}),r&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${m}-header-title`,!!m),className:f.headerTitle,children:r}),a&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${m}-header-subtitle`,!!m),className:f.headerSubtitle,children:a}),!g&&(0,t.jsx)("button",{"data-qa":(0,i.g)(`${m}-header-close`,!!m),type:"button",className:f.closeIcon,onClick:p,children:(0,t.jsx)(d.P,{children:(0,t.jsx)(u.S,{})})}),s&&(0,t.jsxs)("button",{"data-qa":(0,i.g)(`${m}-header-back`,!!m),type:"button",className:f.backButton,onClick:l,children:[(0,t.jsx)(d.P,{children:(0,t.jsx)(c.S,{})}),"long"===s&&(0,t.jsx)("span",{className:f.backButtonText,children:"Назад"})]}),!h&&(0,t.jsx)("div",{className:(0,o.default)(f.divider,f.dividerBottom)})]}),g=(0,r.forwardRef)(({header:e,footer:s,open:l=!1,size:c="m",noPadding:u=!1,height:d="full",onClose:p,children:g,className:y,style:b,dataQa:_,dataId:v,dismissDisabled:w=!1,...$},x)=>{let[j,E]=(0,r.useState)(!1),[T,S]=(0,r.useState)(!1),N=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),(0,r.useEffect)(()=>{if(N.current&&cancelAnimationFrame(N.current),l)return E(!0),N.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{S(!0)})}),()=>{N.current&&cancelAnimationFrame(N.current)};{S(!1);let e=setTimeout(()=>{E(!1)},300);return()=>{clearTimeout(e),N.current&&cancelAnimationFrame(N.current)}}},[l]);let A=()=>{S(!1);let e=setTimeout(()=>{null==p||p(),E(!1)},300);return()=>clearTimeout(e)},{context:L}=(0,a.useFloating)({open:j,onOpenChange:e=>{e||A()}}),C=(0,a.useDismiss)(L,{outsidePressEvent:"mousedown",outsidePress:!w,escapeKey:!w}),P=(0,a.useRole)(L,{role:"dialog"}),{getFloatingProps:R}=(0,a.useInteractions)([C,P]),[O,k]=(0,r.useState)(!1),q=(0,r.useCallback)(e=>{e&&new ResizeObserver(()=>{k(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return j?(0,t.jsx)(a.FloatingPortal,{id:n.M,children:(0,t.jsx)(a.FloatingOverlay,{lockScroll:!0,className:(0,o.default)(f.overlay,{[f.overlayOpen]:T}),children:(0,t.jsx)(a.FloatingFocusManager,{context:L,children:(0,t.jsxs)("div",{ref:x,className:(0,o.default)(f.modal,f.size[c],f.height[d],{[f.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[f.open]:T},y),style:b,...R(),...$,"data-id":v,"data-qa":_,children:[(0,t.jsx)(m,{...e,dataQa:_,noContent:!g,onClose:A}),g&&(0,t.jsx)("div",{"data-qa":(0,i.g)(`${_}-content`,!!_),ref:q,className:(0,o.default)(f.content,{[f.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[f.withoutPadding]:u,[f.withScroll]:O}),children:g}),((null==s?void 0:s.primaryBtnText)||(null==s?void 0:s.children))&&(0,t.jsx)(h,{...s,dataQa:_,noContent:!g})]})})})}):null});g.displayName="Modal",e.s(["Modal",0,g])},53693,e=>{"use strict";var t=e.i(43476);e.i(34348);var r=e.i(47611),a=e.i(60822),o=e.i(7670);let n=(0,e.i(22468).g)("error-page-widget","sc"),i=Object.freeze({errorPageWidget:`${n}`,wrapper:`${n}__wrapper`,main:`${n}__main`,picture:`${n}__picture`,img:`${n}__img`,text:`${n}__text`,button:`${n}__button`,buttonMobile:`${n}__button-mobile`});e.s(["ErrorPageWidget",0,({variant:e="404",showcaseUrl:n="https://finuslugi.ru",minioUrl:s="https://assets.finuslugi.ru/mp-assets",className:l,isHomePage:c,title:u,subtitle:d,buttonText:p})=>{let f="404"===e,h=c?"Обновить":"На Главную",m=()=>{c?window.location.reload():window.open(`${n}/`,"_self")};return(0,t.jsx)("div",{className:(0,o.default)(i.errorPageWidget,l),children:(0,t.jsx)(a.Container,{children:(0,t.jsxs)("div",{className:i.wrapper,children:[(0,t.jsxs)("div",{className:i.main,children:[(0,t.jsxs)("div",{className:i.text,children:[(0,t.jsx)("h1",{dangerouslySetInnerHTML:{__html:u??(f?"Страница не найдена":"Сервис временно<br>недоступен")}}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:d??(f?"Похоже, ссылка устарела или содержит ошибку":"Мы уже исправляем проблему  – попробуйте зайти через несколько минут или обновить страницу ")}})]}),(0,t.jsx)(r.Button,{className:i.button,label:p??h,onClick:m,size:"s"})]}),(0,t.jsxs)("picture",{className:i.picture,children:[(0,t.jsx)("source",{srcSet:`${s}/widgets/ErrorPageWidget/cat_error_d.png`,media:"(min-width: 1024px)",width:696,height:452}),(0,t.jsx)("source",{srcSet:`${s}/widgets/ErrorPageWidget/cat_error_m.png`,media:"(max-width: 1023px)",width:311,height:200}),(0,t.jsx)("img",{src:`${s}/widgets/ErrorPageWidget/cat_error_m.png`,alt:"Что-то не работает",className:i.img,loading:"eager"})]}),(0,t.jsx)(r.Button,{className:i.buttonMobile,label:p??h,onClick:m,size:"s"})]})})})}])},58298,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(53693),o=e.i(71267),n=e.i(47167),i=e.i(1178),s=e.i(67638),l=e.i(79335),c=e.i(17212),u=e.i(18524);let d=Number(n.default.env.REVALIDATE_REQUEST_VALUE)||300,p=(0,i.unstable_cache)(async()=>{let e=(0,s.getEnvValue)(),[t,r]=await Promise.allSettled([u.CmsService.getPageData("PageHeaderWidget","homepage"),u.CmsService.getPageData("PageFooter","homepage")]),a=(0,c.convertSettledData)(t,null),o=(0,c.convertSettledData)(r,null),n=o?.value,i=e.NEXT_PUBLIC_BASE_URL,d=`${e.NEXT_PUBLIC_S3_ASSETS}/mp-assets`;return{headerData:{data:a?.value,showcaseUrl:i,minioUrl:d,lkUrl:l.LK,enableExternalLinkWarning:"true"===e.NEXT_PUBLIC_ENABLE_EXTERNAL_LINK_WARNING},footerData:{data:n,showcaseUrl:i,minioUrl:d}}},["layout-header-footer"],{revalidate:d,tags:["layout"]}),f=(0,r.cache)(()=>p());e.s(["default",0,function(){let[e,n]=(0,r.useState)(null);return((0,r.useEffect)(()=>{f().then(e=>{n(e)})},[]),e)?(0,t.jsxs)(o.PageLayout,{headerData:e.headerData,footerData:e.footerData,children:[(0,t.jsx)(a.ErrorPageWidget,{variant:"503"}),";"]}):null}],58298)},44303,e=>{e.v(t=>Promise.all(["static/chunks/0mb9k_-8t1xn1.js"].map(t=>e.l(t))).then(()=>t(17750)))},56322,e=>{e.v(t=>Promise.all(["static/chunks/2d4_1j3q-zriu.css","static/chunks/1kabnzz386u0s.js"].map(t=>e.l(t))).then(()=>t(32200)))}]);