(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:o="",...s})=>(0,t.jsx)(i||"div",{className:(0,a.default)(r.container,o,{[r.states.narrow]:!n}),...s,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`}},o=({as:e,className:i,style:r,children:o,variant:s="primary",dataQa:l,dataId:d,...c})=>(0,t.jsx)(e||"div",{className:(0,a.default)(i,n.card,n.variants[s]),style:r,...c,"data-id":d,"data-qa":l,children:o});o.displayName="Card",e.s(["Card",0,o],65019);var s=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,s.forwardRef)(({chips:e,value:i,variant:r="primary",activeVariant:n="primary",multiple:o,clearable:d,size:u="m",className:m,style:h,dataQa:f,dataId:p,onChipClick:$,...v},_)=>{let[x,g]=(0,s.useState)(o?[]:void 0),y=(0,s.useRef)(null);(0,s.useImperativeHandle)(_,()=>({getRoot:()=>y.current,getSelectedChips:()=>x})),(0,s.useEffect)(()=>{o?g(Array.isArray(i)?i:[]):g(i)},[i,o]);let b=o||d,j=e=>o&&Array.isArray(x)?x.includes(e):x===e,w=(e,t,a)=>{g(a),null==$||$(e,t,a)},N=(e,t)=>{if(o&&Array.isArray(x))if(j(e)){let a=x.filter(t=>t!==e);w(e,t,a)}else w(e,t,[...x,e]);else{let a=d&&j(e)?void 0:e;w(e,t,a)}};return(0,t.jsx)("div",{ref:y,className:(0,a.default)(m,c.chips),style:h,...v,"data-id":p,"data-qa":f,children:e.map((e,i)=>(({id:e,label:i,iconLeft:o,iconRight:s,indicator:d},m)=>{let h=j(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:b?"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:[o&&(0,t.jsx)("span",{className:(0,a.default)(c.icon,c.iconLeft),"aria-hidden":"true",children:o}),(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])}),s&&(0,t.jsx)("span",{className:(0,a.default)(c.icon,c.iconRight),"aria-hidden":"true",children:s})]},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 o(e,t=!1){return r()?t:window.matchMedia(e).matches}function s(e,{defaultValue:t=!1,initializeWithValue:a=!0}={}){let[r,l]=(0,i.useState)(()=>a?o(e,t):t??!1);function d(){l(o(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 s(`screen and (max-width: ${a}px)`)},"useBreakpointUp",0,function(e){let{minWidth:a}=t[e];return s(`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),o=e.i(14044),s=e.i(54061),l=e.i(16727),d=e.i(58858),c=e.i(21214),u=e.i(2404);let m=(0,s.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:s,onThird:d,description:c,children:u,noContent:m,dataQa:f})=>(0,t.jsxs)("div",{"data-qa":(0,o.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:[s&&(0,t.jsx)(l.a,{dataQa:(0,o.g)(`${f}-footer-third-btn`,!!f),label:s,variant:"secondary",size:"s",className:h.footerBtn,onClick:d}),i&&(0,t.jsx)(l.a,{dataQa:(0,o.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,o.g)(`${f}-footer-primary-btn`,!!f),label:e,size:"s",className:h.footerBtn,onClick:a})]}),c&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${f}-footer-description`,!!f),className:h.footerDescription,children:c})]}),p=({text:e,title:a,subtitle:i,align:n="left",backBtnVariant:s,onBack:l,onClose:m,noContent:f,dataQa:p,withoutCloseBtn:$=!1})=>(0,t.jsxs)("div",{"data-qa":(0,o.g)(`${p}-header`,!!p),className:(0,r.default)(h.header,{[h.headerStates.centered]:"center"===n||!!s,[h.headerStates.withLongBtn]:"long"===s,[h.headerStates.defaultHeight]:!e&&!a&&!i}),children:[e&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${p}-header-text`,!!p),className:h.headerText,children:e}),a&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${p}-header-title`,!!p),className:h.headerTitle,children:a}),i&&(0,t.jsx)("span",{"data-qa":(0,o.g)(`${p}-header-subtitle`,!!p),className:h.headerSubtitle,children:i}),!$&&(0,t.jsx)("button",{"data-qa":(0,o.g)(`${p}-header-close`,!!p),type:"button",className:h.closeIcon,onClick:m,children:(0,t.jsx)(u.P,{children:(0,t.jsx)(c.S,{})})}),s&&(0,t.jsxs)("button",{"data-qa":(0,o.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"===s&&(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:s,open:l=!1,size:d="m",noPadding:c=!1,height:u="full",onClose:m,children:$,className:v,style:_,dataQa:x,dataId:g,dismissDisabled:y=!1,...b},j)=>{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 O=()=>{C(!1);let e=setTimeout(()=>{null==m||m(),N(!1)},300);return()=>clearTimeout(e)},{context:S}=(0,i.useFloating)({open:w,onOpenChange:e=>{e||O()}}),B=(0,i.useDismiss)(S,{outsidePressEvent:"mousedown",outsidePress:!y,escapeKey:!y}),T=(0,i.useRole)(S,{role:"dialog"}),{getFloatingProps:q}=(0,i.useInteractions)([B,T]),[R,A]=(0,a.useState)(!1),F=(0,a.useCallback)(e=>{e&&new ResizeObserver(()=>{A(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:S,children:(0,t.jsxs)("div",{ref:j,className:(0,r.default)(h.modal,h.size[d],h.height[u],{[h.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[h.open]:k},v),style:_,...q(),...b,"data-id":g,"data-qa":x,children:[(0,t.jsx)(p,{...e,dataQa:x,noContent:!$,onClose:O}),$&&(0,t.jsx)("div",{"data-qa":(0,o.g)(`${x}-content`,!!x),ref:F,className:(0,r.default)(h.content,{[h.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[h.withoutPadding]:c,[h.withScroll]:R}),children:$}),((null==s?void 0:s.primaryBtnText)||(null==s?void 0:s.children))&&(0,t.jsx)(f,{...s,dataQa:x,noContent:!$})]})})})}):null});$.displayName="Modal",e.s(["Modal",0,$])},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)))}]);