(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),a=e.i(7670);let i=(0,e.i(54061).g)("container"),r=Object.freeze({container:i,states:{narrow:`${i}--narrow`}}),n=({children:e,as:i,fluid:n=!1,className:s="",...o})=>(0,t.jsx)(i||"div",{className:(0,a.default)(r.container,s,{[r.states.narrow]:!n}),...o,children:e});n.displayName="Container",e.s(["Container",0,n])},65019,46381,e=>{"use strict";var t=e.i(43476),a=e.i(7670),i=e.i(54061);let r=(0,i.g)("card"),n={card:r,variants:{primary:`${r}--primary`,secondary:`${r}--secondary`}},s=({as:e,className:i,style:r,children:s,variant:o="primary",dataQa:l,dataId:d,...c})=>(0,t.jsx)(e||"div",{className:(0,a.default)(i,n.card,n.variants[o]),style:r,...c,"data-id":d,"data-qa":l,children:s});s.displayName="Card",e.s(["Card",0,s],65019);var o=e.i(71645),l=e.i(14044);let d=(0,i.g)("chips"),c=Object.freeze({chips:d,chip:`${d}__item`,icon:`${d}__icon`,iconLeft:`${d}__icon-left`,iconRight:`${d}__icon-right`,label:`${d}__label`,variants:{primary:`${d}--primary`,secondary:`${d}--secondary`,tertiary:`${d}--tertiary`},activeVariants:{primary:`${d}--active-primary`,secondary:`${d}--active-secondary`},sizes:{s:`${d}--s`,m:`${d}--m`,l:`${d}--l`},selected:`${d}--selected`,indicator:`${d}__indicator`,indicatorVariant:{red:`${d}__indicator--red`,orange:`${d}__indicator--orange`,green:`${d}__indicator--green`,purple:`${d}__indicator--purple`,purpleSecondary:`${d}__indicator--purple-secondary`,blue:`${d}__indicator--blue`,pink:`${d}__indicator--pink`}}),u=(0,o.forwardRef)(({chips:e,value:i,variant:r="primary",activeVariant:n="primary",multiple:s,clearable:d,size:u="m",className:m,style:h,dataQa:f,dataId:p,onChipClick:_,...g},x)=>{let[$,v]=(0,o.useState)(s?[]:void 0),b=(0,o.useRef)(null);(0,o.useImperativeHandle)(x,()=>({getRoot:()=>b.current,getSelectedChips:()=>$})),(0,o.useEffect)(()=>{s?v(Array.isArray(i)?i:[]):v(i)},[i,s]);let j=s||d,y=e=>s&&Array.isArray($)?$.includes(e):$===e,w=(e,t,a)=>{v(a),null==_||_(e,t,a)},N=(e,t)=>{if(s&&Array.isArray($))if(y(e)){let a=$.filter(t=>t!==e);w(e,t,a)}else w(e,t,[...$,e]);else{let a=d&&y(e)?void 0:e;w(e,t,a)}};return(0,t.jsx)("div",{ref:b,className:(0,a.default)(m,c.chips),style:h,...g,"data-id":p,"data-qa":f,children:e.map((e,i)=>(({id:e,label:i,iconLeft:s,iconRight:o,indicator:d},m)=>{let h=y(e);return(0,t.jsxs)("div",{className:(0,a.default)(c.chip,c.sizes[u],c.activeVariants[n],c.variants[r],[{[c.selected]:h}]),role:j?"checkbox":"radio","aria-checked":h,"aria-label":i,tabIndex:0,"data-qa":(0,l.g)(`${f}-item-${++m}`,!!f),onClick:t=>{N(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),N(e,t))},children:[s&&(0,t.jsx)("span",{className:(0,a.default)(c.icon,c.iconLeft),"aria-hidden":"true",children:s}),(0,t.jsx)("span",{className:(0,a.default)(c.label),children:i}),d&&(0,t.jsx)("div",{className:(0,a.default)(c.indicator,c.indicatorVariant[d])}),o&&(0,t.jsx)("span",{className:(0,a.default)(c.icon,c.iconRight),"aria-hidden":"true",children:o})]},e)})(e,i))})});u.displayName="Chips",e.s(["Chips",0,u],46381)},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,a={})=>{if(typeof document>"u")return;(a={path:"/",...a}).expires instanceof Date&&(a.expires=a.expires.toUTCString());let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in a){if(!a.hasOwnProperty(e))continue;i+=`; ${e}`;let t=a[e];!0!==t&&(i+=`=${t}`)}document.cookie=i},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["a",0,t])},71121,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})}),a=Object.freeze(Object.keys(t));Object.freeze(a.filter(e=>"xs"!==e)),Object.freeze(a.filter(e=>"3xl"!==e));var i=e.i(71645);function r(){return"u"<typeof window}e.i(91402);let n=r()?i.useLayoutEffect:i.useEffect;function s(e,t=!1){return r()?t:window.matchMedia(e).matches}function o(e,{defaultValue:t=!1,initializeWithValue:a=!0}={}){let[r,l]=(0,i.useState)(()=>a?s(e,t):t??!1);function d(){l(s(e))}return n(()=>{let t=window.matchMedia(e);return d(),"function"==typeof t.addListener?t.addListener(d):t.addEventListener("change",d),()=>{"function"==typeof t.removeListener?t.removeListener(d):t.removeEventListener("change",d)}},[e]),r}e.s(["useBreakpointDown",0,function(e){let{maxWidth:a}=t[e];return o(`screen and (max-width: ${a}px)`)},"useBreakpointUp",0,function(e){let{minWidth:a}=t[e];return o(`screen and (min-width: ${a}px)`)}],71121)},91784,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(43489),r=e.i(7670),n=e.i(2753),s=e.i(14044),o=e.i(54061),l=e.i(16727),d=e.i(58858),c=e.i(21214),u=e.i(2404);let m=(0,o.g)("modal"),h=Object.freeze({modal:m,overlay:`${m}__overlay`,withoutFooter:`${m}--without-footer`,noContent:`${m}--no-content`,open:`${m}--open`,overlayOpen:`${m}__overlay--open`,height:{medium:`${m}--height-medium`,full:`${m}--height-full`},size:{s:`${m}--s`,m:`${m}--m`,l:`${m}--l`,xl:`${m}--xl`},header:`${m}__header`,headerText:`${m}__header-text`,headerTitle:`${m}__header-title`,headerSubtitle:`${m}__header-subtitle`,closeIcon:`${m}__close-icon`,backButton:`${m}__back-button`,backButtonText:`${m}__back-button-text`,headerStates:{centered:`${m}__header--centered`,withLongBtn:`${m}__header--with-long-btn`,defaultHeight:`${m}__header--default-height`},content:`${m}__content`,withoutPadding:`${m}__content--without-padding`,withScroll:`${m}__content--with-scroll`,footer:`${m}__footer`,footerContainer:`${m}__footer-container`,footerBtn:`${m}__footer-btn`,footerDescription:`${m}__footer-description`,divider:`${m}__divider`,dividerTop:`${m}__divider--top`,dividerBottom:`${m}__divider--bottom`}),f=({primaryBtnText:e,onPrimary:a,secondaryBtnText:i,onSecondary:n,thirdBtnText:o,onThird:d,description:c,children:u,noContent:m,dataQa:f})=>(0,t.jsxs)("div",{"data-qa":(0,s.g)(`${f}-footer`,!!f),className:(0,r.default)(h.footer,{[h.noContent]:m}),children:[!m&&(0,t.jsx)("div",{className:(0,r.default)(h.divider,h.dividerTop)}),u||(0,t.jsxs)("div",{className:h.footerContainer,children:[o&&(0,t.jsx)(l.a,{dataQa:(0,s.g)(`${f}-footer-third-btn`,!!f),label:o,variant:"secondary",size:"s",className:h.footerBtn,onClick:d}),i&&(0,t.jsx)(l.a,{dataQa:(0,s.g)(`${f}-footer-secondary-btn`,!!f),label:i,variant:"secondary",size:"s",className:h.footerBtn,onClick:n}),e&&(0,t.jsx)(l.a,{dataQa:(0,s.g)(`${f}-footer-primary-btn`,!!f),label:e,size:"s",className:h.footerBtn,onClick:a})]}),c&&(0,t.jsx)("span",{"data-qa":(0,s.g)(`${f}-footer-description`,!!f),className:h.footerDescription,children:c})]}),p=({text:e,title:a,subtitle:i,align:n="left",backBtnVariant:o,onBack:l,onClose:m,noContent:f,dataQa:p,withoutCloseBtn:_=!1})=>(0,t.jsxs)("div",{"data-qa":(0,s.g)(`${p}-header`,!!p),className:(0,r.default)(h.header,{[h.headerStates.centered]:"center"===n||!!o,[h.headerStates.withLongBtn]:"long"===o,[h.headerStates.defaultHeight]:!e&&!a&&!i}),children:[e&&(0,t.jsx)("span",{"data-qa":(0,s.g)(`${p}-header-text`,!!p),className:h.headerText,children:e}),a&&(0,t.jsx)("span",{"data-qa":(0,s.g)(`${p}-header-title`,!!p),className:h.headerTitle,children:a}),i&&(0,t.jsx)("span",{"data-qa":(0,s.g)(`${p}-header-subtitle`,!!p),className:h.headerSubtitle,children:i}),!_&&(0,t.jsx)("button",{"data-qa":(0,s.g)(`${p}-header-close`,!!p),type:"button",className:h.closeIcon,onClick:m,children:(0,t.jsx)(u.P,{children:(0,t.jsx)(c.S,{})})}),o&&(0,t.jsxs)("button",{"data-qa":(0,s.g)(`${p}-header-back`,!!p),type:"button",className:h.backButton,onClick:l,children:[(0,t.jsx)(u.P,{children:(0,t.jsx)(d.S,{})}),"long"===o&&(0,t.jsx)("span",{className:h.backButtonText,children:"Назад"})]}),!f&&(0,t.jsx)("div",{className:(0,r.default)(h.divider,h.dividerBottom)})]}),_=(0,a.forwardRef)(({header:e,footer:o,open:l=!1,size:d="m",noPadding:c=!1,height:u="full",onClose:m,children:_,className:g,style:x,dataQa:$,dataId:v,dismissDisabled:b=!1,...j},y)=>{let[w,N]=(0,a.useState)(!1),[k,C]=(0,a.useState)(!1),z=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{z.current&&cancelAnimationFrame(z.current)},[]),(0,a.useEffect)(()=>{if(z.current&&cancelAnimationFrame(z.current),l)return N(!0),z.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(!0)})}),()=>{z.current&&cancelAnimationFrame(z.current)};{C(!1);let e=setTimeout(()=>{N(!1)},300);return()=>{clearTimeout(e),z.current&&cancelAnimationFrame(z.current)}}},[l]);let S=()=>{C(!1);let e=setTimeout(()=>{null==m||m(),N(!1)},300);return()=>clearTimeout(e)},{context:O}=(0,i.useFloating)({open:w,onOpenChange:e=>{e||S()}}),T=(0,i.useDismiss)(O,{outsidePressEvent:"mousedown",outsidePress:!b,escapeKey:!b}),B=(0,i.useRole)(O,{role:"dialog"}),{getFloatingProps:P}=(0,i.useInteractions)([T,B]),[W,q]=(0,a.useState)(!1),E=(0,a.useCallback)(e=>{e&&new ResizeObserver(()=>{q(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return w?(0,t.jsx)(i.FloatingPortal,{id:n.M,children:(0,t.jsx)(i.FloatingOverlay,{lockScroll:!0,className:(0,r.default)(h.overlay,{[h.overlayOpen]:k}),children:(0,t.jsx)(i.FloatingFocusManager,{context:O,children:(0,t.jsxs)("div",{ref:y,className:(0,r.default)(h.modal,h.size[d],h.height[u],{[h.withoutFooter]:!(null==o?void 0:o.primaryBtnText)&&!(null==o?void 0:o.children),[h.open]:k},g),style:x,...P(),...j,"data-id":v,"data-qa":$,children:[(0,t.jsx)(p,{...e,dataQa:$,noContent:!_,onClose:S}),_&&(0,t.jsx)("div",{"data-qa":(0,s.g)(`${$}-content`,!!$),ref:E,className:(0,r.default)(h.content,{[h.withoutFooter]:!(null==o?void 0:o.primaryBtnText)&&!(null==o?void 0:o.children),[h.withoutPadding]:c,[h.withScroll]:W}),children:_}),((null==o?void 0:o.primaryBtnText)||(null==o?void 0:o.children))&&(0,t.jsx)(f,{...o,dataQa:$,noContent:!_})]})})})}):null});_.displayName="Modal",e.s(["Modal",0,_])},53693,e=>{"use strict";var t=e.i(43476);e.i(34348);var a=e.i(47611),i=e.i(60822),r=e.i(7670);let n=(0,e.i(22468).g)("error-page-widget","sc"),s=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:o="https://assets.finuslugi.ru/mp-assets",className:l,isHomePage:d,title:c,subtitle:u,buttonText:m})=>{let h="404"===e,f=d?"Обновить":"На Главную",p=()=>{d?window.location.reload():window.open(`${n}/`,"_self")};return(0,t.jsx)("div",{className:(0,r.default)(s.errorPageWidget,l),children:(0,t.jsx)(i.Container,{children:(0,t.jsxs)("div",{className:s.wrapper,children:[(0,t.jsxs)("div",{className:s.main,children:[(0,t.jsxs)("div",{className:s.text,children:[(0,t.jsx)("h1",{dangerouslySetInnerHTML:{__html:c??(h?"Страница не найдена":"Сервис временно<br>недоступен")}}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:u??(h?"Похоже, ссылка устарела или содержит ошибку":"Мы уже исправляем проблему  – попробуйте зайти через несколько минут или обновить страницу ")}})]}),(0,t.jsx)(a.Button,{className:s.button,label:m??f,onClick:p,size:"s"})]}),(0,t.jsxs)("picture",{className:s.picture,children:[(0,t.jsx)("source",{srcSet:`${o}/widgets/ErrorPageWidget/cat_error_d.png`,media:"(min-width: 1024px)",width:696,height:452}),(0,t.jsx)("source",{srcSet:`${o}/widgets/ErrorPageWidget/cat_error_m.png`,media:"(max-width: 1023px)",width:311,height:200}),(0,t.jsx)("img",{src:`${o}/widgets/ErrorPageWidget/cat_error_m.png`,alt:"Что-то не работает",className:s.img,loading:"eager"})]}),(0,t.jsx)(a.Button,{className:s.buttonMobile,label:m??f,onClick:p,size:"s"})]})})})}])},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)))}]);