@efficiency-point/design-system 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom"),r=require("@tanstack/react-table"),i=require("zustand");var a=`efficiency-point.design-system.theme`,o={teal:`Стекло`,signal:`РПФ`},s=e=>e===`teal`||e===`signal`,c=()=>{try{let e=typeof window>`u`?null:window.localStorage.getItem(a);return s(e)?e:`signal`}catch{return`signal`}},l=e=>{typeof document<`u`&&(document.documentElement.dataset.dsTheme=e);try{typeof window<`u`&&window.localStorage.setItem(a,e)}catch{}},u=`signal`,d={signal:{assetName:`favicon-signal.svg`,themeColor:`#f6c500`},teal:{assetName:`favicon-teal.svg`,themeColor:`#0b3e3a`}},f=e=>`${e.replace(/\/+$/,``)}/`,p=(e=u,t=`/`)=>`${f(t)}${d[e].assetName}`,m=(e=u,t={})=>{if(typeof document>`u`)return;let n=Array.from(document.querySelectorAll(`link[rel~="icon"]`)),r=document.querySelector(`link[data-ds-favicon]`)??document.querySelector(`link[rel~="icon"][type="image/svg+xml"]`);r||(r=document.createElement(`link`),document.head.append(r)),r.rel=`icon`,r.type=`image/svg+xml`,r.sizes=`any`,r.href=p(e,t.basePath),r.dataset.dsFavicon=e,n.forEach(e=>{e!==r&&e.remove()});let i=document.querySelector(`meta[name="theme-color"]`);i||(i=document.createElement(`meta`),i.name=`theme-color`,document.head.append(i)),i.content=d[e].themeColor},h=(e,t)=>{l(e),m(e,t)},g={badge:`_badge_1tup7_1`,sm:`_sm_1tup7_29`,md:`_md_1tup7_39`,neutral:`_neutral_1tup7_49`,brand:`_brand_1tup7_61`,info:`_info_1tup7_73`,success:`_success_1tup7_85`,warning:`_warning_1tup7_97`,error:`_error_1tup7_109`,dot:`_dot_1tup7_121`,icon:`_icon_1tup7_137`,label:`_label_1tup7_147`},_=({children:t,variant:n=`neutral`,size:r=`md`,dot:i=!1,icon:a,className:o=``})=>(0,e.jsxs)(`span`,{className:`${g.badge} ${g[n]} ${g[r]} ${o}`,children:[i&&(0,e.jsx)(`span`,{className:g.dot,"aria-hidden":`true`}),a&&(0,e.jsx)(`span`,{className:g.icon,"aria-hidden":`true`,children:a}),(0,e.jsx)(`span`,{className:g.label,children:t})]}),v={badge:`_badge_1k2yn_1`,sm:`_sm_1k2yn_25`,md:`_md_1k2yn_37`,neutral:`_neutral_1k2yn_51`,brand:`_brand_1k2yn_63`,info:`_info_1k2yn_75`,success:`_success_1k2yn_87`,warning:`_warning_1k2yn_99`,error:`_error_1k2yn_111`},y=(e,t=99)=>{let n=Math.max(0,Math.floor(e)),r=Math.max(0,Math.floor(t));return n>r?`${r}+`:String(n)},b=({value:t,max:n=99,label:r=`уведомлений`,variant:i=`error`,size:a=`sm`,className:o=``,"aria-label":s,...c})=>{let l=Math.max(0,Math.floor(t));return(0,e.jsx)(`span`,{...c,className:`${v.badge} ${v[i]} ${v[a]} ${o}`,"aria-label":s??`${l} ${r}`,children:y(l,n)})},x={container:`_container_bvxhv_1`,inner:`_inner_bvxhv_21`,line:`_line_bvxhv_39`,primary:`_primary_bvxhv_57`,secondary:`_secondary_bvxhv_65`,outline:`_outline_bvxhv_73`,ghost:`_ghost_bvxhv_81`,empty:`_empty_bvxhv_89`,destructive:`_destructive_bvxhv_97`,destructiveOutline:`_destructiveOutline_bvxhv_105`,grow:`_grow_bvxhv_1`},S=({variant:t=`primary`})=>(0,e.jsx)(`div`,{className:`${x.container} ${x[t]}`,children:(0,e.jsxs)(`div`,{className:`${x.inner} ${x[t]}`,children:[(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`}),(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`}),(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`}),(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`})]})}),C={button:`_button_1wni1_1`,sm:`_sm_1wni1_59`,md:`_md_1wni1_73`,lg:`_lg_1wni1_87`,primary:`_primary_1wni1_101`,secondary:`_secondary_1wni1_115`,outline:`_outline_1wni1_129`,ghost:`_ghost_1wni1_143`,empty:`_empty_1wni1_157`,destructive:`_destructive_1wni1_171`,destructiveOutline:`_destructiveOutline_1wni1_183`},w=(0,t.forwardRef)(({children:t,variant:n=`primary`,size:r=`md`,isLoading:i=!1,disabled:a,type:o=`button`,className:s=``,...c},l)=>(0,e.jsx)(`button`,{ref:l,className:`${C.button} ${C[n]} ${C[r]} ${s}`,disabled:a||i,"aria-busy":i||void 0,...c,type:o,children:i?(0,e.jsx)(S,{variant:n}):t}));w.displayName=`DSButton`;var T={label:`_label_1o819_1`,required:`_required_1o819_23`,error:`_error_1o819_25`,optional:`_optional_1o819_33`,hint:`_hint_1o819_35`,disabled:`_disabled_1o819_47`,message:`_message_1o819_55`,success:`_success_1o819_71`},E=({children:t,required:n=!1,optionalText:r,disabled:i=!1,className:a=``,...o})=>(0,e.jsxs)(`label`,{className:`${T.label} ${i?T.disabled:``} ${a}`,...o,children:[(0,e.jsx)(`span`,{children:t}),n&&(0,e.jsx)(`span`,{className:T.required,"aria-hidden":`true`,children:`*`}),r&&(0,e.jsx)(`span`,{className:T.optional,children:r})]}),D=({children:t,variant:n=`hint`,id:r,live:i=!1,className:a=``})=>(0,e.jsx)(`span`,{id:r,className:`${T.message} ${T[n]} ${a}`,role:i&&n===`error`?`alert`:void 0,"aria-live":i&&n!==`error`?`polite`:void 0,children:t}),O=({width:t=24,height:n=24,color:r,title:i,style:a,children:o,...s})=>(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:t,height:n,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,role:i?`img`:void 0,"aria-hidden":!i||void 0,focusable:`false`,style:r?{...a,color:r}:a,...s,children:[i&&(0,e.jsx)(`title`,{children:i}),o]}),k=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 7h16l-1 13H5L4 7zm3 0V4h10v3`})}),A=({strokeWidth:t=2,...n})=>(0,e.jsxs)(O,{strokeWidth:t,...n,children:[(0,e.jsx)(`path`,{d:`M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8`}),(0,e.jsx)(`path`,{d:`M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4M12 4v6M2 18h20M5 18v2M19 18v2`})]}),j=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M4 19.5A2.5 2.5 0 0 1 6.5 17H20`}),(0,e.jsx)(`path`,{d:`M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z`}),(0,e.jsx)(`path`,{d:`M8 7h6`}),(0,e.jsx)(`path`,{d:`M8 11h8`})]}),M=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}),(0,e.jsx)(`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}),(0,e.jsx)(`path`,{d:`M10 12h4`})]}),N=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`m5 12 4 4L19 6`})}),P=t=>(0,e.jsx)(O,{viewBox:`0 0 20 20`,...t,children:(0,e.jsx)(`path`,{d:`M5 7.5L10 12.5L15 7.5`})}),F=({strokeWidth:t=2,...n})=>(0,e.jsx)(O,{strokeWidth:t,...n,children:(0,e.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})}),I=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`}),(0,e.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]}),L=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 20h4L19 9l-4-4L4 16v4z`})}),R=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m15 9-6 6M9 9l6 6`})]}),ee=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M3 12s3.5-5 9-5 9 5 9 5-3.5 5-9 5-9-5-9-5Z`}),(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2.5`})]}),te=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M3 3l18 18M10.6 10.7a2 2 0 0 0 2.7 2.7M9.9 4.2A10.7 10.7 0 0 1 12 4c5.5 0 9 5.3 9 5.3a14 14 0 0 1-2.3 2.8M6.6 6.6C4.3 8.1 3 10 3 10s3.5 5 9 5c1 0 2-.2 2.8-.5`})}),z=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 10v7m0-10v.01`})}),ne=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M12 16v-4M12 8v.01`})]}),re=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5Z`}),(0,e.jsx)(`polyline`,{points:`14 2 14 8 20 8`}),(0,e.jsx)(`path`,{d:`M16 13H8`}),(0,e.jsx)(`path`,{d:`M16 17H8`}),(0,e.jsx)(`path`,{d:`M10 9H8`})]}),ie=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M5 12h14`})}),ae=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01`})}),B=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}),(0,e.jsx)(`path`,{d:`M3 9h18M9 21V9`})]}),oe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M8 5v14M16 5v14`,strokeWidth:`3`})}),se=({strokeWidth:t=2,...n})=>(0,e.jsx)(O,{strokeWidth:t,...n,children:(0,e.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),ce=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M12 22v-5`}),(0,e.jsx)(`path`,{d:`M9 8V2`}),(0,e.jsx)(`path`,{d:`M15 8V2`}),(0,e.jsx)(`path`,{d:`M18 8v5a6 6 0 0 1-12 0V8Z`})]}),le=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M3 5h18v14H3V5Zm10 7h6v5h-6v-5Z`})}),ue=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`m8 5 11 7-11 7V5Z`,fill:`currentColor`,stroke:`none`})}),V=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 7v5h5M5.5 11a7 7 0 1 1 1.3 6.3`})}),de=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm7.4 5.2.1-1.7-.1-1.7 2-1.5-2-3.4-2.4 1a8 8 0 0 0-2.9-1.7L13.8 2h-3.9l-.4 2.7a8 8 0 0 0-2.8 1.7l-2.5-1-2 3.4 2.1 1.5-.1 1.7.1 1.7-2.1 1.5 2 3.4 2.5-1a8 8 0 0 0 2.8 1.7l.4 2.7h3.9l.3-2.7a8 8 0 0 0 2.9-1.7l2.4 1 2-3.4-2-1.5Z`})}),fe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M9 4H4v5m11-5h5v5M9 20H4v-5m11 5h5v-5`})}),pe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 9h5V4m6 5h5V4M4 15h5v5m6-5h5v5`})}),me=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 6h16v12H4V6Zm7 4a2 2 0 1 0 0 4m7-4a2 2 0 1 0 0 4`})}),H=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M5 10v4h4l5 4V6l-5 4H5Zm12-1c1.3 1.5 1.3 4.5 0 6m2.5-8.5c3 3 3 8 0 11`})}),he=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M5 10v4h4l5 4V6l-5 4H5Zm12 0 4 4m0-4-4 4`})}),ge=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M8 17V5m-3 3 3-3 3 3M16 7v12m-3-3 3 3 3-3`})}),_e=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),ve=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 5v14m-5-5 5 5 5-5`})}),ye=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}),be=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),xe=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M12 3.5L21 19H3L12 3.5Z`}),(0,e.jsx)(`path`,{d:`M12 9v4.5M12 16.5v.01`})]}),Se=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M3 6h18`}),(0,e.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}),(0,e.jsx)(`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}),(0,e.jsx)(`line`,{x1:`10`,x2:`10`,y1:`11`,y2:`17`}),(0,e.jsx)(`line`,{x1:`14`,x2:`14`,y1:`11`,y2:`17`})]}),Ce=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`8`,cy:`7`,r:`3`}),(0,e.jsx)(`path`,{d:`M2.5 18.5c.5-3.4 2.3-5.5 5.5-5.5 2 0 3.5.8 4.4 2.2`}),(0,e.jsx)(`rect`,{x:`13`,y:`11`,width:`8.5`,height:`8`,rx:`1.5`}),(0,e.jsx)(`path`,{d:`M15.5 14h3.5M15.5 16.5h2.5`})]}),we=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`}),(0,e.jsx)(`path`,{d:`M12 7.5V12l3 2`}),(0,e.jsx)(`path`,{d:`m4.5 4.5 2 2M19.5 4.5l-2 2`}),(0,e.jsx)(`path`,{d:`m7.5 18.5 1.5 1.5 3-3`})]}),Te=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`m3 9 9-6 9 6v11H3V9Z`}),(0,e.jsx)(`path`,{d:`M6 17v-4.5h12V17M6 15h12`}),(0,e.jsx)(`path`,{d:`M8.5 12.5V11h3v1.5M12.5 12.5V11h3v1.5`})]}),Ee=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M5 3.5h10a2 2 0 0 1 2 2V10M5 3.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h7`}),(0,e.jsx)(`path`,{d:`M7 8h6M7 11.5h4`}),(0,e.jsx)(`circle`,{cx:`17`,cy:`16`,r:`4.5`}),(0,e.jsx)(`path`,{d:`m15.2 16 1.2 1.2 2.5-2.7`})]}),De=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{x:`2.5`,y:`5`,width:`13`,height:`11`,rx:`2`}),(0,e.jsx)(`circle`,{cx:`9`,cy:`10.5`,r:`3`}),(0,e.jsx)(`path`,{d:`m15.5 9 6-2.5v8l-6-2.5`}),(0,e.jsx)(`path`,{d:`M5 20h3v-1.5M10.5 20h3v-3M16 20h3v-4.5`})]}),Oe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.6-9.6a4 4 0 0 1 5.7 5.7l-9.6 9.6a2 2 0 0 1-2.8-2.8l8.9-8.9`})}),ke=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`m22 2-7 20-4-9-9-4Z`}),(0,e.jsx)(`path`,{d:`M22 2 11 13`})]}),Ae=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`}),(0,e.jsx)(`path`,{d:`M9 9h.01M15 9h.01`})]}),U=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`,fill:`currentColor`,stroke:`none`}),(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`}),(0,e.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`,fill:`currentColor`,stroke:`none`})]}),je=t=>(0,e.jsx)(O,{...t,children:[5,12,19].flatMap(t=>[5,12,19].map(n=>(0,e.jsx)(`circle`,{cx:n,cy:t,r:`1.5`,fill:`currentColor`,stroke:`none`},`${n}-${t}`)))}),W=n=>r=>(0,e.jsx)(O,{...r,children:n.map(([e,n],r)=>(0,t.createElement)(e,{...n,key:n.key??`${e}-${r}`}))}),Me={IconAppsGrid:je,IconActivity:W([[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),IconArchive:M,IconAlertTriangle:W([[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]]),IconArrowDown:W([[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),IconArrowLeft:W([[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),IconArrowRight:W([[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),IconArrowUp:W([[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),IconArrowUpRight:W([[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),IconBarChart3:W([[`path`,{d:`M3 3v18h18`}],[`path`,{d:`M18 17V9`}],[`path`,{d:`M13 17V5`}],[`path`,{d:`M8 17v-3`}]]),IconBedDouble:A,IconBookText:j,IconBell:W([[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),IconBoxes:W([[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),IconBuilding2:W([[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),IconCamera:W([[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),IconChartNoAxesCombined:W([[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14.639V21`,key:`1s85h0`}],[`path`,{d:`M20 10.656V21`,key:`q45596`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18.463V21`,key:`1otddq`}],[`path`,{d:`M8 14.656V21`,key:`1t2idw`}]]),IconChevronRight:W([[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),IconCircleAlert:W([[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),IconClock3:W([[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),IconCopy:I,IconDownload:W([[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),IconExternalLink:W([[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),IconFactory:W([[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),IconFileText:re,IconGauge:W([[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),IconGripVertical:W([[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),IconLayoutDashboard:W([[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),IconLockKeyhole:W([[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),IconLogOut:W([[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),IconMaximize2:W([[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),IconMenu:W([[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),IconPackageCheck:W([[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),IconRefreshCw:W([[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),IconRotateCw:W([[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),IconSearch:W([[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),IconSettings2:W([[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),IconShieldAlert:W([[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),IconShieldCheck:W([[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),IconSmartphone:W([[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),IconSparkles:W([[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),IconTable2:W([[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),IconThermometer:W([[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`,key:`17jzev`}]]),IconTrendingUp:W([[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),IconUserCheck:W([[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),IconUserRound:W([[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),IconUsers:W([[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),IconUserX:W([[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]),IconVideo:W([[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),IconVideoOff:W([[`path`,{d:`M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196`,key:`w8jjjt`}],[`path`,{d:`M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`1xawa7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),IconVolume2:W([[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),IconX:W([[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),IconBasket:k,IconCheck:N,IconChevron:P,IconCross:F,IconEdit:L,IconErrorCircle:R,IconEye:ee,IconEyeOff:te,IconInfo:z,IconInfoCircle:ne,IconMinus:ie,IconMoreVertical:U,IconList:ae,IconPanelsTopLeft:B,IconPause:oe,IconPaperclip:Oe,IconPlus:se,IconPlug:ce,IconPictureInPicture:le,IconPlay:ue,IconReplay:V,IconSettings:de,IconServiceChronometry:we,IconServiceFinances:Ee,IconServiceAccommodation:Te,IconServicePersonnel:Ce,IconServiceRegistrar:De,IconSend:ke,IconSmile:Ae,IconFullscreen:fe,IconFullscreenExit:pe,IconCaptions:me,IconVolume:H,IconVolumeMuted:he,IconSort:ge,IconSortAscending:_e,IconSortDescending:ve,IconSuccessCircle:ye,IconUpload:be,IconWarning:xe,IconTrash2:Se},Ne=Object.freeze(Object.keys(Me)),G=({name:t,...n})=>{let r=Me[t];return(0,e.jsx)(r,{...n})},Pe={wrapper:`_wrapper_1seon_1`,label:`_label_1seon_13`,input:`_input_1seon_35`,control:`_control_1seon_49`,disabled:`_disabled_1seon_95`,controlError:`_controlError_1seon_121`},Fe=({checked:n,onChange:r,label:i,hint:a,error:o,disabled:s=!1,readOnly:c=!1,className:l=``,name:u,id:d,indeterminate:f=!1,ariaLabel:p,...m})=>{let h=(0,t.useId)(),g=d??`ds-checkbox-${u??h}`,_=(0,t.useRef)(null),v=a?`${g}-hint`:void 0,y=o?`${g}-error`:void 0;return(0,t.useEffect)(()=>{_.current&&(_.current.indeterminate=f&&!n)},[n,f]),(0,e.jsxs)(`div`,{className:`${Pe.wrapper} ${l}`,children:[(0,e.jsxs)(`label`,{className:`${Pe.label} ${s?Pe.disabled:``}`,htmlFor:g,children:[(0,e.jsx)(`input`,{ref:_,id:g,name:u,type:`checkbox`,checked:n,disabled:s,"aria-readonly":c||void 0,"aria-invalid":!!o,"aria-describedby":[v,y].filter(Boolean).join(` `)||void 0,"aria-label":p,className:Pe.input,onChange:e=>{c||r?.(e.target.checked,e)},...m}),(0,e.jsxs)(`span`,{className:`${Pe.control} ${o?Pe.controlError:``}`,"aria-hidden":`true`,children:[f&&!n&&(0,e.jsx)(G,{name:`IconMinus`,width:16,height:16}),n&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16})]}),i&&(0,e.jsx)(`span`,{children:i})]}),a&&!o&&(0,e.jsx)(D,{id:v,children:a}),o&&(0,e.jsx)(D,{id:y,variant:`error`,children:o})]})},K={wrapper:`_wrapper_su17c_1`,trigger:`_trigger_su17c_17`,sm:`_sm_su17c_53`,md:`_md_su17c_65`,lg:`_lg_su17c_75`,chevron:`_chevron_su17c_89`,chevronOpen:`_chevronOpen_su17c_115`,nav:`_nav_su17c_127`,day:`_day_su17c_129`,monthSelect:`_monthSelect_su17c_131`,yearInput:`_yearInput_su17c_133`,timeInput:`_timeInput_su17c_135`,dateInput:`_dateInput_su17c_147`,timeValue:`_timeValue_su17c_189`,chevronButton:`_chevronButton_su17c_201`,disabled:`_disabled_su17c_235`,validationTooltip:`_validationTooltip_su17c_249`,"validation-tooltip-lifetime":`_validation-tooltip-lifetime_su17c_1`,value:`_value_su17c_319`,placeholder:`_placeholder_su17c_335`,error:`_error_su17c_343`,panel:`_panel_su17c_351`,calendarHeader:`_calendarHeader_su17c_377`,weekdays:`_weekdays_su17c_467`,days:`_days_su17c_469`,outside:`_outside_su17c_505`,selected:`_selected_su17c_513`,timeLabel:`_timeLabel_su17c_533`,previousMonth:`_previousMonth_su17c_593`,nextMonth:`_nextMonth_su17c_601`},Ie=[`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`,`Вс`],Le=[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`],q=e=>String(e).padStart(2,`0`),J=8,Re=`Некорректная дата`,ze=e=>e?`${q(e.getDate())}.${q(e.getMonth()+1)}.${e.getFullYear()}`:``,Be=e=>{let t=e.replace(/\D/g,``).slice(0,J);return[t.slice(0,2),t.slice(2,4),t.slice(4,8)].filter(Boolean).join(`.`)},Ve=e=>{if(!e)return!0;let t=Number(e.padEnd(4,`0`));return Number(e.padEnd(4,`9`))>=1800&&t<=2500},He=e=>{if(!/^\d{0,8}$/.test(e))return!1;let t=e.slice(0,2),n=e.slice(2,4),r=e.slice(4,8);return t.length===1&&Number(t)>3||t.length===2&&(Number(t)<1||Number(t)>31)||n.length===1&&Number(n)>1||n.length===2&&(Number(n)<1||Number(n)>12)?!1:Ve(r)},Ue=e=>{let t=/^(\d{2})\.(\d{2})\.(\d{4})$/.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2])-1,i=Number(t[3]);if(i<1800||i>2500)return null;let a=new Date(i,r,n,12);return a.getFullYear()!==i||a.getMonth()!==r||a.getDate()!==n?null:a},We=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Ge=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${q(e.getMonth()+1)}-${q(e.getDate())}`,r=`${q(e.getHours())}:${q(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},Ke=(e,t)=>{if(!e)return null;if(t===`time`){let t=/^(\d{2}):(\d{2})$/.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2]);if(n>23||r>59)return null;let i=new Date;return i.setHours(n,r,0,0),i}if(t===`date`){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2])-1,i=Number(t[3]),a=new Date(n,r,i,12);return a.getFullYear()!==n||a.getMonth()!==r||a.getDate()!==i?null:a}let n=new Date(e);return Number.isNaN(n.getTime())?null:n},qe=(e,t)=>{if(!e)return``;let n=`${q(e.getDate())}.${q(e.getMonth()+1)}.${e.getFullYear()}`,r=`${q(e.getHours())}:${q(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n} ${r}`},Je=e=>{let t=new Date(e.getFullYear(),e.getMonth(),1),n=(t.getDay()+6)%7,r=new Date(t);return r.setDate(t.getDate()-n),Array.from({length:42},(e,t)=>{let n=new Date(r);return n.setDate(r.getDate()+t),n})},Ye=(e,t)=>!!(e&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()),Xe=(e,t,n)=>{let r=We(e).getTime();return!!(t&&r<We(t).getTime()||n&&r>We(n).getTime())},Ze=8,Qe=6,$e=({value:r,onChange:i,mode:a=`date`,label:o,placeholder:s,hint:c,error:l,disabled:u=!1,readOnly:d=!1,required:f=!1,min:p,max:m,size:h=`md`,id:g,name:_,className:v=``})=>{let y=(0,t.useId)(),b=g??`ds-date-time-${_??y}`,x=c?`${b}-hint`:void 0,S=l?`${b}-error`:void 0,C=(0,t.useRef)(null),w=(0,t.useRef)(null),T=(0,t.useRef)(null),O=(0,t.useRef)(null),[k,A]=(0,t.useState)(!1),[j,M]=(0,t.useState)(r??new Date),[N,P]=(0,t.useState)(Ge(r,`time`)),[F,I]=(0,t.useState)(ze(r)),[L,R]=(0,t.useState)(``),[ee,te]=(0,t.useState)(0),[z,ne]=(0,t.useState)(null),re=(0,t.useMemo)(()=>Je(j),[j]),ie=a!==`time`,ae=a!==`date`;(0,t.useEffect)(()=>{r&&M(r),P(Ge(r,`time`)),I(ze(r))},[r]),(0,t.useEffect)(()=>()=>{O.current&&clearTimeout(O.current)},[]);let B=(0,t.useCallback)(()=>{let e=w.current,t=T.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight-n.bottom-Ze,o=n.top-Ze,s=a<r.height&&o>a,c=Math.max(120,s?o:a),l=s?Math.max(Ze,n.top-r.height-Qe):n.bottom+Qe,u=n.left,d=i-r.width-Ze;ne({top:l,left:Math.max(Ze,Math.min(u,d)),maxHeight:c})},[]);(0,t.useLayoutEffect)(()=>{if(!k){ne(null);return}return B(),window.addEventListener(`resize`,B),window.addEventListener(`scroll`,B,!0),()=>{window.removeEventListener(`resize`,B),window.removeEventListener(`scroll`,B,!0)}},[k,B,j,N]),(0,t.useEffect)(()=>{if(!k)return;let e=e=>{let t=e.target,n=C.current?.contains(t),r=T.current?.contains(t);!n&&!r&&A(!1)},t=e=>{e.key===`Escape`&&(A(!1),w.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[k]);let oe=e=>{if(Xe(e,p,m))return;let t=a===`date`?Ke(Ge(e,`date`),`date`):new Date(e);t&&(a!==`date`&&t.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(t),I(ze(t)),a===`date`&&A(!1))},se=()=>{R(Re),te(e=>e+1),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{R(``),O.current=null},3e3)},ce=e=>{let t=e.replace(/\D/g,``).slice(0,J);if(!He(t)){se();return}let n=Be(t);if(I(n),!t){i?.(null);return}if(t.length<J)return;let o=Ue(n);if(!o||Xe(o,p,m)){se();return}a===`datetime`&&o.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(o),M(o),A(!1),requestAnimationFrame(()=>w.current?.blur())},le=e=>{if(P(e),!e){i?.(null);return}let t=Ke(e,`time`);if(!t)return;let n=new Date(a===`datetime`?r??j:new Date);n.setHours(t.getHours(),t.getMinutes(),0,0),!(p&&n<p||m&&n>m)&&i?.(n)},ue=s??(a===`date`?`ДД.ММ.ГГГГ`:a===`time`?`ЧЧ:ММ`:`ДД.ММ.ГГГГ ЧЧ:ММ`),V=L?`${b}-validation`:void 0,de=[x,S,V].filter(Boolean).join(` `)||void 0,fe=k&&!d?(0,e.jsxs)(`div`,{ref:T,className:K.panel,role:`dialog`,"aria-label":o??ue,style:z?{top:z.top,left:z.left,maxHeight:z.maxHeight}:{visibility:`hidden`,top:0,left:0},children:[ie&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:K.calendarHeader,children:[(0,e.jsx)(`button`,{type:`button`,className:K.nav,"aria-label":`Предыдущий месяц`,onClick:()=>M(new Date(j.getFullYear(),j.getMonth()-1,1)),children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20,className:K.previousMonth})}),(0,e.jsx)(`select`,{className:K.monthSelect,"aria-label":`Месяц`,value:j.getMonth(),onChange:e=>M(new Date(j.getFullYear(),Number(e.target.value),1)),children:Le.map((t,n)=>(0,e.jsx)(`option`,{value:n,children:t},t))}),(0,e.jsx)(`input`,{className:K.yearInput,type:`number`,"aria-label":`Год`,value:j.getFullYear(),onChange:e=>M(new Date(Number(e.target.value),j.getMonth(),1))}),(0,e.jsx)(`button`,{type:`button`,className:K.nav,"aria-label":`Следующий месяц`,onClick:()=>M(new Date(j.getFullYear(),j.getMonth()+1,1)),children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20,className:K.nextMonth})})]}),(0,e.jsx)(`div`,{className:K.weekdays,children:Ie.map(t=>(0,e.jsx)(`span`,{children:t},t))}),(0,e.jsx)(`div`,{className:K.days,children:re.map(t=>{let n=Ye(r,t);return(0,e.jsx)(`button`,{type:`button`,className:`${K.day} ${t.getMonth()===j.getMonth()?``:K.outside} ${n?K.selected:``}`,disabled:Xe(t,p,m),"aria-pressed":n,onClick:()=>oe(t),children:t.getDate()},t.toISOString())})})]}),ae&&(0,e.jsxs)(`label`,{className:K.timeLabel,children:[(0,e.jsx)(`span`,{children:`Время`}),(0,e.jsx)(`input`,{className:K.timeInput,type:`time`,value:N,onChange:e=>le(e.target.value)})]})]}):null;return(0,e.jsxs)(`div`,{ref:C,className:`${K.wrapper} ${v}`,children:[o&&(0,e.jsx)(E,{htmlFor:b,required:f,disabled:u,children:o}),ie?(0,e.jsxs)(`div`,{className:`${K.trigger} ${K[h]} ${l?K.error:``} ${u?K.disabled:``}`,children:[(0,e.jsx)(`input`,{ref:w,id:b,name:_,className:K.dateInput,value:F,placeholder:ue.split(` `)[0],inputMode:`numeric`,autoComplete:`off`,maxLength:10,disabled:u,readOnly:d,"aria-expanded":k,"aria-haspopup":`dialog`,"aria-describedby":de,"aria-invalid":!!(l||L)||void 0,onFocus:()=>{d||A(!0)},onClick:()=>{d||A(!0)},onChange:e=>ce(e.target.value)}),a===`datetime`&&N&&(0,e.jsx)(`span`,{className:K.timeValue,children:N}),(0,e.jsx)(`button`,{type:`button`,className:K.chevronButton,disabled:u||d,"aria-label":k?`Закрыть календарь`:`Открыть календарь`,tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>{A(e=>!e),w.current?.focus()},children:(0,e.jsx)(`span`,{className:`${K.chevron} ${fe?K.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})})]}):(0,e.jsxs)(`button`,{ref:w,id:b,name:_,type:`button`,className:`${K.trigger} ${K[h]} ${l?K.error:``}`,disabled:u,"aria-readonly":d||void 0,"aria-expanded":k,"aria-haspopup":`dialog`,"aria-describedby":de,onClick:()=>{d||A(e=>!e)},children:[(0,e.jsx)(`span`,{className:r?K.value:K.placeholder,children:qe(r,a)||ue}),(0,e.jsx)(`span`,{className:`${K.chevron} ${fe?K.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})]}),L&&(0,e.jsx)(`span`,{id:V,className:K.validationTooltip,role:`status`,"aria-live":`polite`,children:L},ee),fe&&(0,n.createPortal)(fe,document.body),c&&!l&&(0,e.jsx)(D,{id:x,children:c}),l&&(0,e.jsx)(D,{id:S,variant:`error`,children:l})]})},et={root:`_root_19vq2_1`,range:`_range_19vq2_21`},tt=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),nt=({value:t,onChange:n,onDraftChange:r,mode:i=`date`,fromLabel:a=`От`,toLabel:o=`До`,hint:s,error:c,min:l,max:u,disabled:d=!1,readOnly:f=!1,required:p=!1,className:m=``})=>{let h=c??(t.from&&t.to&&t.from>t.to?`Дата «От» не может быть позже даты «До»`:void 0),g=e=>{r?.(e),tt(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${et.root} ${m}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:et.range,children:[(0,e.jsx)($e,{value:t.from,mode:i===`datetime`?`datetime`:i,label:a,min:l,max:t.to??u,disabled:d,readOnly:f,required:p,error:h,onChange:e=>g({...t,from:e})}),(0,e.jsx)($e,{value:t.to,mode:i===`datetime`?`datetime`:i,label:o,min:t.from??l,max:u,disabled:d,readOnly:f,required:p,error:h,onChange:e=>g({...t,to:e})})]}),s&&!h&&(0,e.jsx)(D,{children:s})]})},rt={group:`_group_ey6uk_1`,skeleton:`_skeleton_ey6uk_15`,text:`_text_ey6uk_27`,rectangular:`_rectangular_ey6uk_37`,circular:`_circular_ey6uk_47`,animated:`_animated_ey6uk_59`,"ds-skeleton":`_ds-skeleton_ey6uk_1`},it=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${rt.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(i,o)=>(0,e.jsx)(`span`,{className:`${rt.skeleton} ${rt[t]} ${a?rt.animated:``}`,style:{width:n,height:r}},o))}),Y={wrapper:`_wrapper_1l9o2_1`,container:`_container_1l9o2_17`,trigger:`_trigger_1l9o2_25`,disabledText:`_disabledText_1l9o2_27`,sm:`_sm_1l9o2_53`,md:`_md_1l9o2_67`,lg:`_lg_1l9o2_81`,value:`_value_1l9o2_147`,placeholder:`_placeholder_1l9o2_149`,chevron:`_chevron_1l9o2_205`,chevronOpen:`_chevronOpen_1l9o2_231`,menu:`_menu_1l9o2_239`,option:`_option_1l9o2_269`,selected:`_selected_1l9o2_339`,actionOption:`_actionOption_1l9o2_359`,message:`_message_1l9o2_391`,error:`_error_1l9o2_393`,errorState:`_errorState_1l9o2_419`},at=8,ot=6,st=120,ct=(e,t,n)=>{if(!e.length)return-1;for(let r=0;r<e.length;r+=1){let i=(t+r*n+e.length)%e.length;if(!e[i]?.disabled)return i}return-1},lt=e=>{if(typeof e==`number`)return e;if(typeof e==`string`){let t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 1/0},ut=({options:r,value:i,onChange:a,placeholder:o=`Выберите опцию`,disabled:s=!1,stringWhileDisabled:c=!1,label:l,error:u,size:d=`md`,hint:f,className:p=``,required:m=!1,name:h,id:g,needMark:_=!0,maxMenuHeight:v})=>{let y=(0,t.useId)(),b=g??`ds-dropdown-${h??y}`,x=`${b}-listbox`,[S,C]=(0,t.useState)(!1),[w,T]=(0,t.useState)(null),D=(0,t.useRef)(null),O=(0,t.useRef)(null),k=(0,t.useRef)(null),A=(0,t.useRef)([]),j=(0,t.useMemo)(()=>r.find(e=>e.value===i),[r,i]),M=f?`${b}-hint`:void 0,N=u?`${b}-error`:void 0,P=[M,N].filter(Boolean).join(` `)||void 0,F=s&&c,I=(0,t.useCallback)(()=>{let e=O.current,t=k.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight-n.bottom-at,o=n.top-at,s=a<r.height&&o>a,c=Math.max(st,s?o:a),l=lt(v),u=Math.min(c,l),d=n.left,f=i-n.width-at,p=Math.max(at,Math.min(d,f)),m=s?Math.max(at,n.top-r.height-ot):n.bottom+ot;T({top:m,left:p,width:n.width,maxHeight:u})},[v]);(0,t.useLayoutEffect)(()=>{if(!S){T(null);return}return I(),window.addEventListener(`resize`,I),window.addEventListener(`scroll`,I,!0),()=>{window.removeEventListener(`resize`,I),window.removeEventListener(`scroll`,I,!0)}},[S,I,r.length]),(0,t.useEffect)(()=>{if(!S)return;let e=e=>{let t=e.target,n=D.current?.contains(t),r=k.current?.contains(t);!n&&!r&&C(!1)},t=e=>{e.key===`Escape`&&(C(!1),O.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[S]);let L=(e,t)=>{let n=ct(r,e,t);if(n===-1)return;let i=A.current[n];i?.focus(),i?.scrollIntoView({block:`nearest`})},R=e=>{e.disabled||(a?.(e.value,e),C(!1),O.current?.focus())},ee=S?(0,e.jsx)(`ul`,{ref:k,id:x,className:Y.menu,role:`listbox`,"aria-label":l,style:w?{position:`fixed`,top:w.top,left:w.left,width:w.width,maxHeight:w.maxHeight}:{position:`fixed`,top:0,left:0,visibility:`hidden`,maxHeight:0},children:r.map((t,n)=>{let a=t.value===i;return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{A.current[n]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,"data-option-variant":t.variant??`default`,className:[Y[d],Y.option,t.variant===`action`?Y.actionOption:``,a?Y.selected:``].filter(Boolean).join(` `),onClick:()=>R(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;L(n+t,t)}if(e.key===`Tab`&&C(!1),e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;L(e.key===`Home`?0:r.length-1,t)}(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),R(t))},children:[(0,e.jsx)(`span`,{children:t.label}),a&&_&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:D,className:[Y.wrapper,u?Y.errorState:``,p].filter(Boolean).join(` `),children:[l&&(0,e.jsx)(E,{required:m,disabled:s,htmlFor:F?void 0:b,children:l}),(0,e.jsx)(`div`,{className:Y.container,children:F?(0,e.jsx)(`div`,{id:b,className:Y.disabledText,"aria-describedby":P,children:j?.label??o}):(0,e.jsxs)(`button`,{ref:O,id:b,type:`button`,name:h,className:`${Y.trigger} ${Y[d]}`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":S,"aria-controls":x,"aria-describedby":P,"aria-invalid":!!u,onClick:()=>C(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),C(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>{L(e.key===`ArrowDown`?0:r.length-1,t)})}if(e.key===`Enter`&&S){e.preventDefault();let t=r.findIndex(e=>e.value===i);L(t>=0?t:0,1)}},children:[(0,e.jsx)(`span`,{className:`${j?Y.value:Y.placeholder}
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom"),r=require("@tanstack/react-table"),i=require("zustand");var a=`efficiency-point.design-system.theme`,o={teal:`Стекло`,signal:`РПФ`},s=e=>e===`teal`||e===`signal`,c=()=>{try{let e=typeof window>`u`?null:window.localStorage.getItem(a);return s(e)?e:`signal`}catch{return`signal`}},l=e=>{typeof document<`u`&&(document.documentElement.dataset.dsTheme=e);try{typeof window<`u`&&window.localStorage.setItem(a,e)}catch{}},u=`signal`,d={signal:{assetName:`favicon-signal.svg`,themeColor:`#f6c500`},teal:{assetName:`favicon-teal.svg`,themeColor:`#0b3e3a`}},f=e=>`${e.replace(/\/+$/,``)}/`,p=(e=u,t=`/`)=>`${f(t)}${d[e].assetName}`,m=(e=u,t={})=>{if(typeof document>`u`)return;let n=Array.from(document.querySelectorAll(`link[rel~="icon"]`)),r=document.querySelector(`link[data-ds-favicon]`)??document.querySelector(`link[rel~="icon"][type="image/svg+xml"]`);r||(r=document.createElement(`link`),document.head.append(r)),r.rel=`icon`,r.type=`image/svg+xml`,r.sizes=`any`,r.href=p(e,t.basePath),r.dataset.dsFavicon=e,n.forEach(e=>{e!==r&&e.remove()});let i=document.querySelector(`meta[name="theme-color"]`);i||(i=document.createElement(`meta`),i.name=`theme-color`,document.head.append(i)),i.content=d[e].themeColor},h=(e,t)=>{l(e),m(e,t)},g={badge:`_badge_1tup7_1`,sm:`_sm_1tup7_29`,md:`_md_1tup7_39`,neutral:`_neutral_1tup7_49`,brand:`_brand_1tup7_61`,info:`_info_1tup7_73`,success:`_success_1tup7_85`,warning:`_warning_1tup7_97`,error:`_error_1tup7_109`,dot:`_dot_1tup7_121`,icon:`_icon_1tup7_137`,label:`_label_1tup7_147`},_=({children:t,variant:n=`neutral`,size:r=`md`,dot:i=!1,icon:a,className:o=``})=>(0,e.jsxs)(`span`,{className:`${g.badge} ${g[n]} ${g[r]} ${o}`,children:[i&&(0,e.jsx)(`span`,{className:g.dot,"aria-hidden":`true`}),a&&(0,e.jsx)(`span`,{className:g.icon,"aria-hidden":`true`,children:a}),(0,e.jsx)(`span`,{className:g.label,children:t})]}),v={badge:`_badge_1k2yn_1`,sm:`_sm_1k2yn_25`,md:`_md_1k2yn_37`,neutral:`_neutral_1k2yn_51`,brand:`_brand_1k2yn_63`,info:`_info_1k2yn_75`,success:`_success_1k2yn_87`,warning:`_warning_1k2yn_99`,error:`_error_1k2yn_111`},y=(e,t=99)=>{let n=Math.max(0,Math.floor(e)),r=Math.max(0,Math.floor(t));return n>r?`${r}+`:String(n)},b=({value:t,max:n=99,label:r=`уведомлений`,variant:i=`error`,size:a=`sm`,className:o=``,"aria-label":s,...c})=>{let l=Math.max(0,Math.floor(t));return(0,e.jsx)(`span`,{...c,className:`${v.badge} ${v[i]} ${v[a]} ${o}`,"aria-label":s??`${l} ${r}`,children:y(l,n)})},x={container:`_container_bvxhv_1`,inner:`_inner_bvxhv_21`,line:`_line_bvxhv_39`,primary:`_primary_bvxhv_57`,secondary:`_secondary_bvxhv_65`,outline:`_outline_bvxhv_73`,ghost:`_ghost_bvxhv_81`,empty:`_empty_bvxhv_89`,destructive:`_destructive_bvxhv_97`,destructiveOutline:`_destructiveOutline_bvxhv_105`,grow:`_grow_bvxhv_1`},S=({variant:t=`primary`})=>(0,e.jsx)(`div`,{className:`${x.container} ${x[t]}`,children:(0,e.jsxs)(`div`,{className:`${x.inner} ${x[t]}`,children:[(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`}),(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`}),(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`}),(0,e.jsx)(`div`,{className:`${x.line} ${x[t]}`})]})}),C={button:`_button_1lavd_1`,sm:`_sm_1lavd_59`,md:`_md_1lavd_73`,lg:`_lg_1lavd_87`,primary:`_primary_1lavd_101`,secondary:`_secondary_1lavd_115`,outline:`_outline_1lavd_129`,ghost:`_ghost_1lavd_143`,empty:`_empty_1lavd_157`,destructive:`_destructive_1lavd_171`,destructiveOutline:`_destructiveOutline_1lavd_183`},w=(0,t.forwardRef)(({children:t,variant:n=`primary`,size:r=`md`,isLoading:i=!1,disabled:a,type:o=`button`,className:s=``,...c},l)=>(0,e.jsx)(`button`,{ref:l,className:`${C.button} ${C[n]} ${C[r]} ${s}`,disabled:a||i,"aria-busy":i||void 0,...c,type:o,children:i?(0,e.jsx)(S,{variant:n}):t}));w.displayName=`DSButton`;var T={label:`_label_1o819_1`,required:`_required_1o819_23`,error:`_error_1o819_25`,optional:`_optional_1o819_33`,hint:`_hint_1o819_35`,disabled:`_disabled_1o819_47`,message:`_message_1o819_55`,success:`_success_1o819_71`},E=({children:t,required:n=!1,optionalText:r,disabled:i=!1,className:a=``,...o})=>(0,e.jsxs)(`label`,{className:`${T.label} ${i?T.disabled:``} ${a}`,...o,children:[(0,e.jsx)(`span`,{children:t}),n&&(0,e.jsx)(`span`,{className:T.required,"aria-hidden":`true`,children:`*`}),r&&(0,e.jsx)(`span`,{className:T.optional,children:r})]}),D=({children:t,variant:n=`hint`,id:r,live:i=!1,className:a=``})=>(0,e.jsx)(`span`,{id:r,className:`${T.message} ${T[n]} ${a}`,role:i&&n===`error`?`alert`:void 0,"aria-live":i&&n!==`error`?`polite`:void 0,children:t}),O=({width:t=24,height:n=24,color:r,title:i,style:a,children:o,...s})=>(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:t,height:n,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,role:i?`img`:void 0,"aria-hidden":!i||void 0,focusable:`false`,style:r?{...a,color:r}:a,...s,children:[i&&(0,e.jsx)(`title`,{children:i}),o]}),k=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 7h16l-1 13H5L4 7zm3 0V4h10v3`})}),A=({strokeWidth:t=2,...n})=>(0,e.jsxs)(O,{strokeWidth:t,...n,children:[(0,e.jsx)(`path`,{d:`M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8`}),(0,e.jsx)(`path`,{d:`M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4M12 4v6M2 18h20M5 18v2M19 18v2`})]}),j=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M4 19.5A2.5 2.5 0 0 1 6.5 17H20`}),(0,e.jsx)(`path`,{d:`M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z`}),(0,e.jsx)(`path`,{d:`M8 7h6`}),(0,e.jsx)(`path`,{d:`M8 11h8`})]}),M=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}),(0,e.jsx)(`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}),(0,e.jsx)(`path`,{d:`M10 12h4`})]}),N=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`m5 12 4 4L19 6`})}),P=t=>(0,e.jsx)(O,{viewBox:`0 0 20 20`,...t,children:(0,e.jsx)(`path`,{d:`M5 7.5L10 12.5L15 7.5`})}),F=({strokeWidth:t=2,...n})=>(0,e.jsx)(O,{strokeWidth:t,...n,children:(0,e.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})}),I=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`}),(0,e.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]}),L=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 20h4L19 9l-4-4L4 16v4z`})}),R=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m15 9-6 6M9 9l6 6`})]}),ee=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M3 12s3.5-5 9-5 9 5 9 5-3.5 5-9 5-9-5-9-5Z`}),(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2.5`})]}),te=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M3 3l18 18M10.6 10.7a2 2 0 0 0 2.7 2.7M9.9 4.2A10.7 10.7 0 0 1 12 4c5.5 0 9 5.3 9 5.3a14 14 0 0 1-2.3 2.8M6.6 6.6C4.3 8.1 3 10 3 10s3.5 5 9 5c1 0 2-.2 2.8-.5`})}),z=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 10v7m0-10v.01`})}),ne=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M12 16v-4M12 8v.01`})]}),re=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5Z`}),(0,e.jsx)(`polyline`,{points:`14 2 14 8 20 8`}),(0,e.jsx)(`path`,{d:`M16 13H8`}),(0,e.jsx)(`path`,{d:`M16 17H8`}),(0,e.jsx)(`path`,{d:`M10 9H8`})]}),ie=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M5 12h14`})}),ae=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01`})}),B=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}),(0,e.jsx)(`path`,{d:`M3 9h18M9 21V9`})]}),oe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M8 5v14M16 5v14`,strokeWidth:`3`})}),se=({strokeWidth:t=2,...n})=>(0,e.jsx)(O,{strokeWidth:t,...n,children:(0,e.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),ce=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M12 22v-5`}),(0,e.jsx)(`path`,{d:`M9 8V2`}),(0,e.jsx)(`path`,{d:`M15 8V2`}),(0,e.jsx)(`path`,{d:`M18 8v5a6 6 0 0 1-12 0V8Z`})]}),le=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M3 5h18v14H3V5Zm10 7h6v5h-6v-5Z`})}),ue=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`m8 5 11 7-11 7V5Z`,fill:`currentColor`,stroke:`none`})}),V=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 7v5h5M5.5 11a7 7 0 1 1 1.3 6.3`})}),de=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm7.4 5.2.1-1.7-.1-1.7 2-1.5-2-3.4-2.4 1a8 8 0 0 0-2.9-1.7L13.8 2h-3.9l-.4 2.7a8 8 0 0 0-2.8 1.7l-2.5-1-2 3.4 2.1 1.5-.1 1.7.1 1.7-2.1 1.5 2 3.4 2.5-1a8 8 0 0 0 2.8 1.7l.4 2.7h3.9l.3-2.7a8 8 0 0 0 2.9-1.7l2.4 1 2-3.4-2-1.5Z`})}),fe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M9 4H4v5m11-5h5v5M9 20H4v-5m11 5h5v-5`})}),pe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 9h5V4m6 5h5V4M4 15h5v5m6-5h5v5`})}),me=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M4 6h16v12H4V6Zm7 4a2 2 0 1 0 0 4m7-4a2 2 0 1 0 0 4`})}),H=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M5 10v4h4l5 4V6l-5 4H5Zm12-1c1.3 1.5 1.3 4.5 0 6m2.5-8.5c3 3 3 8 0 11`})}),he=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M5 10v4h4l5 4V6l-5 4H5Zm12 0 4 4m0-4-4 4`})}),ge=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M8 17V5m-3 3 3-3 3 3M16 7v12m-3-3 3 3 3-3`})}),_e=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),ve=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 5v14m-5-5 5 5 5-5`})}),ye=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}),be=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),xe=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M12 3.5L21 19H3L12 3.5Z`}),(0,e.jsx)(`path`,{d:`M12 9v4.5M12 16.5v.01`})]}),Se=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M3 6h18`}),(0,e.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}),(0,e.jsx)(`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}),(0,e.jsx)(`line`,{x1:`10`,x2:`10`,y1:`11`,y2:`17`}),(0,e.jsx)(`line`,{x1:`14`,x2:`14`,y1:`11`,y2:`17`})]}),Ce=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`8`,cy:`7`,r:`3`}),(0,e.jsx)(`path`,{d:`M2.5 18.5c.5-3.4 2.3-5.5 5.5-5.5 2 0 3.5.8 4.4 2.2`}),(0,e.jsx)(`rect`,{x:`13`,y:`11`,width:`8.5`,height:`8`,rx:`1.5`}),(0,e.jsx)(`path`,{d:`M15.5 14h3.5M15.5 16.5h2.5`})]}),we=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`}),(0,e.jsx)(`path`,{d:`M12 7.5V12l3 2`}),(0,e.jsx)(`path`,{d:`m4.5 4.5 2 2M19.5 4.5l-2 2`}),(0,e.jsx)(`path`,{d:`m7.5 18.5 1.5 1.5 3-3`})]}),Te=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`m3 9 9-6 9 6v11H3V9Z`}),(0,e.jsx)(`path`,{d:`M6 17v-4.5h12V17M6 15h12`}),(0,e.jsx)(`path`,{d:`M8.5 12.5V11h3v1.5M12.5 12.5V11h3v1.5`})]}),Ee=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`M5 3.5h10a2 2 0 0 1 2 2V10M5 3.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h7`}),(0,e.jsx)(`path`,{d:`M7 8h6M7 11.5h4`}),(0,e.jsx)(`circle`,{cx:`17`,cy:`16`,r:`4.5`}),(0,e.jsx)(`path`,{d:`m15.2 16 1.2 1.2 2.5-2.7`})]}),De=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`rect`,{x:`2.5`,y:`5`,width:`13`,height:`11`,rx:`2`}),(0,e.jsx)(`circle`,{cx:`9`,cy:`10.5`,r:`3`}),(0,e.jsx)(`path`,{d:`m15.5 9 6-2.5v8l-6-2.5`}),(0,e.jsx)(`path`,{d:`M5 20h3v-1.5M10.5 20h3v-3M16 20h3v-4.5`})]}),Oe=t=>(0,e.jsx)(O,{...t,children:(0,e.jsx)(`path`,{d:`m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.6-9.6a4 4 0 0 1 5.7 5.7l-9.6 9.6a2 2 0 0 1-2.8-2.8l8.9-8.9`})}),ke=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`path`,{d:`m22 2-7 20-4-9-9-4Z`}),(0,e.jsx)(`path`,{d:`M22 2 11 13`})]}),Ae=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`}),(0,e.jsx)(`path`,{d:`M9 9h.01M15 9h.01`})]}),U=t=>(0,e.jsxs)(O,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`,fill:`currentColor`,stroke:`none`}),(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`}),(0,e.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`,fill:`currentColor`,stroke:`none`})]}),je=t=>(0,e.jsx)(O,{...t,children:[5,12,19].flatMap(t=>[5,12,19].map(n=>(0,e.jsx)(`circle`,{cx:n,cy:t,r:`1.5`,fill:`currentColor`,stroke:`none`},`${n}-${t}`)))}),W=n=>r=>(0,e.jsx)(O,{...r,children:n.map(([e,n],r)=>(0,t.createElement)(e,{...n,key:n.key??`${e}-${r}`}))}),Me={IconAppsGrid:je,IconActivity:W([[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),IconArchive:M,IconAlertTriangle:W([[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]]),IconArrowDown:W([[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),IconArrowLeft:W([[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),IconArrowRight:W([[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),IconArrowUp:W([[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),IconArrowUpRight:W([[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),IconBarChart3:W([[`path`,{d:`M3 3v18h18`}],[`path`,{d:`M18 17V9`}],[`path`,{d:`M13 17V5`}],[`path`,{d:`M8 17v-3`}]]),IconBedDouble:A,IconBookText:j,IconBell:W([[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),IconBoxes:W([[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),IconBuilding2:W([[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),IconCamera:W([[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),IconChartNoAxesCombined:W([[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14.639V21`,key:`1s85h0`}],[`path`,{d:`M20 10.656V21`,key:`q45596`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18.463V21`,key:`1otddq`}],[`path`,{d:`M8 14.656V21`,key:`1t2idw`}]]),IconChevronRight:W([[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),IconCircleAlert:W([[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),IconClock3:W([[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),IconCopy:I,IconDownload:W([[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),IconExternalLink:W([[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),IconFactory:W([[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),IconFileText:re,IconGauge:W([[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),IconGripVertical:W([[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),IconLayoutDashboard:W([[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),IconLockKeyhole:W([[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),IconLogOut:W([[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),IconMaximize2:W([[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),IconMenu:W([[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),IconPackageCheck:W([[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),IconRefreshCw:W([[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),IconRotateCw:W([[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),IconSearch:W([[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),IconSettings2:W([[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),IconShieldAlert:W([[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),IconShieldCheck:W([[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),IconSmartphone:W([[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),IconSparkles:W([[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),IconTable2:W([[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),IconThermometer:W([[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`,key:`17jzev`}]]),IconTrendingUp:W([[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),IconUserCheck:W([[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),IconUserRound:W([[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),IconUsers:W([[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),IconUserX:W([[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]),IconVideo:W([[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),IconVideoOff:W([[`path`,{d:`M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196`,key:`w8jjjt`}],[`path`,{d:`M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`1xawa7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),IconVolume2:W([[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),IconX:W([[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),IconBasket:k,IconCheck:N,IconChevron:P,IconCross:F,IconEdit:L,IconErrorCircle:R,IconEye:ee,IconEyeOff:te,IconInfo:z,IconInfoCircle:ne,IconMinus:ie,IconMoreVertical:U,IconList:ae,IconPanelsTopLeft:B,IconPause:oe,IconPaperclip:Oe,IconPlus:se,IconPlug:ce,IconPictureInPicture:le,IconPlay:ue,IconReplay:V,IconSettings:de,IconServiceChronometry:we,IconServiceFinances:Ee,IconServiceAccommodation:Te,IconServicePersonnel:Ce,IconServiceRegistrar:De,IconSend:ke,IconSmile:Ae,IconFullscreen:fe,IconFullscreenExit:pe,IconCaptions:me,IconVolume:H,IconVolumeMuted:he,IconSort:ge,IconSortAscending:_e,IconSortDescending:ve,IconSuccessCircle:ye,IconUpload:be,IconWarning:xe,IconTrash2:Se},Ne=Object.freeze(Object.keys(Me)),G=({name:t,...n})=>{let r=Me[t];return(0,e.jsx)(r,{...n})},Pe={wrapper:`_wrapper_1seon_1`,label:`_label_1seon_13`,input:`_input_1seon_35`,control:`_control_1seon_49`,disabled:`_disabled_1seon_95`,controlError:`_controlError_1seon_121`},Fe=({checked:n,onChange:r,label:i,hint:a,error:o,disabled:s=!1,readOnly:c=!1,className:l=``,name:u,id:d,indeterminate:f=!1,ariaLabel:p,...m})=>{let h=(0,t.useId)(),g=d??`ds-checkbox-${u??h}`,_=(0,t.useRef)(null),v=a?`${g}-hint`:void 0,y=o?`${g}-error`:void 0;return(0,t.useEffect)(()=>{_.current&&(_.current.indeterminate=f&&!n)},[n,f]),(0,e.jsxs)(`div`,{className:`${Pe.wrapper} ${l}`,children:[(0,e.jsxs)(`label`,{className:`${Pe.label} ${s?Pe.disabled:``}`,htmlFor:g,children:[(0,e.jsx)(`input`,{ref:_,id:g,name:u,type:`checkbox`,checked:n,disabled:s,"aria-readonly":c||void 0,"aria-invalid":!!o,"aria-describedby":[v,y].filter(Boolean).join(` `)||void 0,"aria-label":p,className:Pe.input,onChange:e=>{c||r?.(e.target.checked,e)},...m}),(0,e.jsxs)(`span`,{className:`${Pe.control} ${o?Pe.controlError:``}`,"aria-hidden":`true`,children:[f&&!n&&(0,e.jsx)(G,{name:`IconMinus`,width:16,height:16}),n&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16})]}),i&&(0,e.jsx)(`span`,{children:i})]}),a&&!o&&(0,e.jsx)(D,{id:v,children:a}),o&&(0,e.jsx)(D,{id:y,variant:`error`,children:o})]})},K={wrapper:`_wrapper_su17c_1`,trigger:`_trigger_su17c_17`,sm:`_sm_su17c_53`,md:`_md_su17c_65`,lg:`_lg_su17c_75`,chevron:`_chevron_su17c_89`,chevronOpen:`_chevronOpen_su17c_115`,nav:`_nav_su17c_127`,day:`_day_su17c_129`,monthSelect:`_monthSelect_su17c_131`,yearInput:`_yearInput_su17c_133`,timeInput:`_timeInput_su17c_135`,dateInput:`_dateInput_su17c_147`,timeValue:`_timeValue_su17c_189`,chevronButton:`_chevronButton_su17c_201`,disabled:`_disabled_su17c_235`,validationTooltip:`_validationTooltip_su17c_249`,"validation-tooltip-lifetime":`_validation-tooltip-lifetime_su17c_1`,value:`_value_su17c_319`,placeholder:`_placeholder_su17c_335`,error:`_error_su17c_343`,panel:`_panel_su17c_351`,calendarHeader:`_calendarHeader_su17c_377`,weekdays:`_weekdays_su17c_467`,days:`_days_su17c_469`,outside:`_outside_su17c_505`,selected:`_selected_su17c_513`,timeLabel:`_timeLabel_su17c_533`,previousMonth:`_previousMonth_su17c_593`,nextMonth:`_nextMonth_su17c_601`},Ie=[`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`,`Вс`],Le=[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`],q=e=>String(e).padStart(2,`0`),J=8,Re=`Некорректная дата`,ze=e=>e?`${q(e.getDate())}.${q(e.getMonth()+1)}.${e.getFullYear()}`:``,Be=e=>{let t=e.replace(/\D/g,``).slice(0,J);return[t.slice(0,2),t.slice(2,4),t.slice(4,8)].filter(Boolean).join(`.`)},Ve=e=>{if(!e)return!0;let t=Number(e.padEnd(4,`0`));return Number(e.padEnd(4,`9`))>=1800&&t<=2500},He=e=>{if(!/^\d{0,8}$/.test(e))return!1;let t=e.slice(0,2),n=e.slice(2,4),r=e.slice(4,8);return t.length===1&&Number(t)>3||t.length===2&&(Number(t)<1||Number(t)>31)||n.length===1&&Number(n)>1||n.length===2&&(Number(n)<1||Number(n)>12)?!1:Ve(r)},Ue=e=>{let t=/^(\d{2})\.(\d{2})\.(\d{4})$/.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2])-1,i=Number(t[3]);if(i<1800||i>2500)return null;let a=new Date(i,r,n,12);return a.getFullYear()!==i||a.getMonth()!==r||a.getDate()!==n?null:a},We=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Ge=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${q(e.getMonth()+1)}-${q(e.getDate())}`,r=`${q(e.getHours())}:${q(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},Ke=(e,t)=>{if(!e)return null;if(t===`time`){let t=/^(\d{2}):(\d{2})$/.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2]);if(n>23||r>59)return null;let i=new Date;return i.setHours(n,r,0,0),i}if(t===`date`){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2])-1,i=Number(t[3]),a=new Date(n,r,i,12);return a.getFullYear()!==n||a.getMonth()!==r||a.getDate()!==i?null:a}let n=new Date(e);return Number.isNaN(n.getTime())?null:n},qe=(e,t)=>{if(!e)return``;let n=`${q(e.getDate())}.${q(e.getMonth()+1)}.${e.getFullYear()}`,r=`${q(e.getHours())}:${q(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n} ${r}`},Je=e=>{let t=new Date(e.getFullYear(),e.getMonth(),1),n=(t.getDay()+6)%7,r=new Date(t);return r.setDate(t.getDate()-n),Array.from({length:42},(e,t)=>{let n=new Date(r);return n.setDate(r.getDate()+t),n})},Ye=(e,t)=>!!(e&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()),Xe=(e,t,n)=>{let r=We(e).getTime();return!!(t&&r<We(t).getTime()||n&&r>We(n).getTime())},Ze=8,Qe=6,$e=({value:r,onChange:i,mode:a=`date`,label:o,placeholder:s,hint:c,error:l,disabled:u=!1,readOnly:d=!1,required:f=!1,min:p,max:m,size:h=`md`,id:g,name:_,className:v=``})=>{let y=(0,t.useId)(),b=g??`ds-date-time-${_??y}`,x=c?`${b}-hint`:void 0,S=l?`${b}-error`:void 0,C=(0,t.useRef)(null),w=(0,t.useRef)(null),T=(0,t.useRef)(null),O=(0,t.useRef)(null),[k,A]=(0,t.useState)(!1),[j,M]=(0,t.useState)(r??new Date),[N,P]=(0,t.useState)(Ge(r,`time`)),[F,I]=(0,t.useState)(ze(r)),[L,R]=(0,t.useState)(``),[ee,te]=(0,t.useState)(0),[z,ne]=(0,t.useState)(null),re=(0,t.useMemo)(()=>Je(j),[j]),ie=a!==`time`,ae=a!==`date`;(0,t.useEffect)(()=>{r&&M(r),P(Ge(r,`time`)),I(ze(r))},[r]),(0,t.useEffect)(()=>()=>{O.current&&clearTimeout(O.current)},[]);let B=(0,t.useCallback)(()=>{let e=w.current,t=T.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight-n.bottom-Ze,o=n.top-Ze,s=a<r.height&&o>a,c=Math.max(120,s?o:a),l=s?Math.max(Ze,n.top-r.height-Qe):n.bottom+Qe,u=n.left,d=i-r.width-Ze;ne({top:l,left:Math.max(Ze,Math.min(u,d)),maxHeight:c})},[]);(0,t.useLayoutEffect)(()=>{if(!k){ne(null);return}return B(),window.addEventListener(`resize`,B),window.addEventListener(`scroll`,B,!0),()=>{window.removeEventListener(`resize`,B),window.removeEventListener(`scroll`,B,!0)}},[k,B,j,N]),(0,t.useEffect)(()=>{if(!k)return;let e=e=>{let t=e.target,n=C.current?.contains(t),r=T.current?.contains(t);!n&&!r&&A(!1)},t=e=>{e.key===`Escape`&&(A(!1),w.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[k]);let oe=e=>{if(Xe(e,p,m))return;let t=a===`date`?Ke(Ge(e,`date`),`date`):new Date(e);t&&(a!==`date`&&t.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(t),I(ze(t)),a===`date`&&A(!1))},se=()=>{R(Re),te(e=>e+1),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{R(``),O.current=null},3e3)},ce=e=>{let t=e.replace(/\D/g,``).slice(0,J);if(!He(t)){se();return}let n=Be(t);if(I(n),!t){i?.(null);return}if(t.length<J)return;let o=Ue(n);if(!o||Xe(o,p,m)){se();return}a===`datetime`&&o.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(o),M(o),A(!1),requestAnimationFrame(()=>w.current?.blur())},le=e=>{if(P(e),!e){i?.(null);return}let t=Ke(e,`time`);if(!t)return;let n=new Date(a===`datetime`?r??j:new Date);n.setHours(t.getHours(),t.getMinutes(),0,0),!(p&&n<p||m&&n>m)&&i?.(n)},ue=s??(a===`date`?`ДД.ММ.ГГГГ`:a===`time`?`ЧЧ:ММ`:`ДД.ММ.ГГГГ ЧЧ:ММ`),V=L?`${b}-validation`:void 0,de=[x,S,V].filter(Boolean).join(` `)||void 0,fe=k&&!d?(0,e.jsxs)(`div`,{ref:T,className:K.panel,role:`dialog`,"aria-label":o??ue,style:z?{top:z.top,left:z.left,maxHeight:z.maxHeight}:{visibility:`hidden`,top:0,left:0},children:[ie&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:K.calendarHeader,children:[(0,e.jsx)(`button`,{type:`button`,className:K.nav,"aria-label":`Предыдущий месяц`,onClick:()=>M(new Date(j.getFullYear(),j.getMonth()-1,1)),children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20,className:K.previousMonth})}),(0,e.jsx)(`select`,{className:K.monthSelect,"aria-label":`Месяц`,value:j.getMonth(),onChange:e=>M(new Date(j.getFullYear(),Number(e.target.value),1)),children:Le.map((t,n)=>(0,e.jsx)(`option`,{value:n,children:t},t))}),(0,e.jsx)(`input`,{className:K.yearInput,type:`number`,"aria-label":`Год`,value:j.getFullYear(),onChange:e=>M(new Date(Number(e.target.value),j.getMonth(),1))}),(0,e.jsx)(`button`,{type:`button`,className:K.nav,"aria-label":`Следующий месяц`,onClick:()=>M(new Date(j.getFullYear(),j.getMonth()+1,1)),children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20,className:K.nextMonth})})]}),(0,e.jsx)(`div`,{className:K.weekdays,children:Ie.map(t=>(0,e.jsx)(`span`,{children:t},t))}),(0,e.jsx)(`div`,{className:K.days,children:re.map(t=>{let n=Ye(r,t);return(0,e.jsx)(`button`,{type:`button`,className:`${K.day} ${t.getMonth()===j.getMonth()?``:K.outside} ${n?K.selected:``}`,disabled:Xe(t,p,m),"aria-pressed":n,onClick:()=>oe(t),children:t.getDate()},t.toISOString())})})]}),ae&&(0,e.jsxs)(`label`,{className:K.timeLabel,children:[(0,e.jsx)(`span`,{children:`Время`}),(0,e.jsx)(`input`,{className:K.timeInput,type:`time`,value:N,onChange:e=>le(e.target.value)})]})]}):null;return(0,e.jsxs)(`div`,{ref:C,className:`${K.wrapper} ${v}`,children:[o&&(0,e.jsx)(E,{htmlFor:b,required:f,disabled:u,children:o}),ie?(0,e.jsxs)(`div`,{className:`${K.trigger} ${K[h]} ${l?K.error:``} ${u?K.disabled:``}`,children:[(0,e.jsx)(`input`,{ref:w,id:b,name:_,className:K.dateInput,value:F,placeholder:ue.split(` `)[0],inputMode:`numeric`,autoComplete:`off`,maxLength:10,disabled:u,readOnly:d,"aria-expanded":k,"aria-haspopup":`dialog`,"aria-describedby":de,"aria-invalid":!!(l||L)||void 0,onFocus:()=>{d||A(!0)},onClick:()=>{d||A(!0)},onChange:e=>ce(e.target.value)}),a===`datetime`&&N&&(0,e.jsx)(`span`,{className:K.timeValue,children:N}),(0,e.jsx)(`button`,{type:`button`,className:K.chevronButton,disabled:u||d,"aria-label":k?`Закрыть календарь`:`Открыть календарь`,tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>{A(e=>!e),w.current?.focus()},children:(0,e.jsx)(`span`,{className:`${K.chevron} ${fe?K.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})})]}):(0,e.jsxs)(`button`,{ref:w,id:b,name:_,type:`button`,className:`${K.trigger} ${K[h]} ${l?K.error:``}`,disabled:u,"aria-readonly":d||void 0,"aria-expanded":k,"aria-haspopup":`dialog`,"aria-describedby":de,onClick:()=>{d||A(e=>!e)},children:[(0,e.jsx)(`span`,{className:r?K.value:K.placeholder,children:qe(r,a)||ue}),(0,e.jsx)(`span`,{className:`${K.chevron} ${fe?K.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})]}),L&&(0,e.jsx)(`span`,{id:V,className:K.validationTooltip,role:`status`,"aria-live":`polite`,children:L},ee),fe&&(0,n.createPortal)(fe,document.body),c&&!l&&(0,e.jsx)(D,{id:x,children:c}),l&&(0,e.jsx)(D,{id:S,variant:`error`,children:l})]})},et={root:`_root_19vq2_1`,range:`_range_19vq2_21`},tt=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),nt=({value:t,onChange:n,onDraftChange:r,mode:i=`date`,fromLabel:a=`От`,toLabel:o=`До`,hint:s,error:c,min:l,max:u,disabled:d=!1,readOnly:f=!1,required:p=!1,className:m=``})=>{let h=c??(t.from&&t.to&&t.from>t.to?`Дата «От» не может быть позже даты «До»`:void 0),g=e=>{r?.(e),tt(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${et.root} ${m}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:et.range,children:[(0,e.jsx)($e,{value:t.from,mode:i===`datetime`?`datetime`:i,label:a,min:l,max:t.to??u,disabled:d,readOnly:f,required:p,error:h,onChange:e=>g({...t,from:e})}),(0,e.jsx)($e,{value:t.to,mode:i===`datetime`?`datetime`:i,label:o,min:t.from??l,max:u,disabled:d,readOnly:f,required:p,error:h,onChange:e=>g({...t,to:e})})]}),s&&!h&&(0,e.jsx)(D,{children:s})]})},rt={group:`_group_ey6uk_1`,skeleton:`_skeleton_ey6uk_15`,text:`_text_ey6uk_27`,rectangular:`_rectangular_ey6uk_37`,circular:`_circular_ey6uk_47`,animated:`_animated_ey6uk_59`,"ds-skeleton":`_ds-skeleton_ey6uk_1`},it=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${rt.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(i,o)=>(0,e.jsx)(`span`,{className:`${rt.skeleton} ${rt[t]} ${a?rt.animated:``}`,style:{width:n,height:r}},o))}),Y={wrapper:`_wrapper_1l9o2_1`,container:`_container_1l9o2_17`,trigger:`_trigger_1l9o2_25`,disabledText:`_disabledText_1l9o2_27`,sm:`_sm_1l9o2_53`,md:`_md_1l9o2_67`,lg:`_lg_1l9o2_81`,value:`_value_1l9o2_147`,placeholder:`_placeholder_1l9o2_149`,chevron:`_chevron_1l9o2_205`,chevronOpen:`_chevronOpen_1l9o2_231`,menu:`_menu_1l9o2_239`,option:`_option_1l9o2_269`,selected:`_selected_1l9o2_339`,actionOption:`_actionOption_1l9o2_359`,message:`_message_1l9o2_391`,error:`_error_1l9o2_393`,errorState:`_errorState_1l9o2_419`},at=8,ot=6,st=120,ct=(e,t,n)=>{if(!e.length)return-1;for(let r=0;r<e.length;r+=1){let i=(t+r*n+e.length)%e.length;if(!e[i]?.disabled)return i}return-1},lt=e=>{if(typeof e==`number`)return e;if(typeof e==`string`){let t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 1/0},ut=({options:r,value:i,onChange:a,placeholder:o=`Выберите опцию`,disabled:s=!1,stringWhileDisabled:c=!1,label:l,error:u,size:d=`md`,hint:f,className:p=``,required:m=!1,name:h,id:g,needMark:_=!0,maxMenuHeight:v})=>{let y=(0,t.useId)(),b=g??`ds-dropdown-${h??y}`,x=`${b}-listbox`,[S,C]=(0,t.useState)(!1),[w,T]=(0,t.useState)(null),D=(0,t.useRef)(null),O=(0,t.useRef)(null),k=(0,t.useRef)(null),A=(0,t.useRef)([]),j=(0,t.useMemo)(()=>r.find(e=>e.value===i),[r,i]),M=f?`${b}-hint`:void 0,N=u?`${b}-error`:void 0,P=[M,N].filter(Boolean).join(` `)||void 0,F=s&&c,I=(0,t.useCallback)(()=>{let e=O.current,t=k.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight-n.bottom-at,o=n.top-at,s=a<r.height&&o>a,c=Math.max(st,s?o:a),l=lt(v),u=Math.min(c,l),d=n.left,f=i-n.width-at,p=Math.max(at,Math.min(d,f)),m=s?Math.max(at,n.top-r.height-ot):n.bottom+ot;T({top:m,left:p,width:n.width,maxHeight:u})},[v]);(0,t.useLayoutEffect)(()=>{if(!S){T(null);return}return I(),window.addEventListener(`resize`,I),window.addEventListener(`scroll`,I,!0),()=>{window.removeEventListener(`resize`,I),window.removeEventListener(`scroll`,I,!0)}},[S,I,r.length]),(0,t.useEffect)(()=>{if(!S)return;let e=e=>{let t=e.target,n=D.current?.contains(t),r=k.current?.contains(t);!n&&!r&&C(!1)},t=e=>{e.key===`Escape`&&(C(!1),O.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[S]);let L=(e,t)=>{let n=ct(r,e,t);if(n===-1)return;let i=A.current[n];i?.focus(),i?.scrollIntoView({block:`nearest`})},R=e=>{e.disabled||(a?.(e.value,e),C(!1),O.current?.focus())},ee=S?(0,e.jsx)(`ul`,{ref:k,id:x,className:Y.menu,role:`listbox`,"aria-label":l,style:w?{position:`fixed`,top:w.top,left:w.left,width:w.width,maxHeight:w.maxHeight}:{position:`fixed`,top:0,left:0,visibility:`hidden`,maxHeight:0},children:r.map((t,n)=>{let a=t.value===i;return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{A.current[n]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,"data-option-variant":t.variant??`default`,className:[Y[d],Y.option,t.variant===`action`?Y.actionOption:``,a?Y.selected:``].filter(Boolean).join(` `),onClick:()=>R(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;L(n+t,t)}if(e.key===`Tab`&&C(!1),e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;L(e.key===`Home`?0:r.length-1,t)}(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),R(t))},children:[(0,e.jsx)(`span`,{children:t.label}),a&&_&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:D,className:[Y.wrapper,u?Y.errorState:``,p].filter(Boolean).join(` `),children:[l&&(0,e.jsx)(E,{required:m,disabled:s,htmlFor:F?void 0:b,children:l}),(0,e.jsx)(`div`,{className:Y.container,children:F?(0,e.jsx)(`div`,{id:b,className:Y.disabledText,"aria-describedby":P,children:j?.label??o}):(0,e.jsxs)(`button`,{ref:O,id:b,type:`button`,name:h,className:`${Y.trigger} ${Y[d]}`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":S,"aria-controls":x,"aria-describedby":P,"aria-invalid":!!u,onClick:()=>C(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),C(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>{L(e.key===`ArrowDown`?0:r.length-1,t)})}if(e.key===`Enter`&&S){e.preventDefault();let t=r.findIndex(e=>e.value===i);L(t>=0?t:0,1)}},children:[(0,e.jsx)(`span`,{className:`${j?Y.value:Y.placeholder}
2
2
  ${Y[d]}`,children:j?.label??o}),(0,e.jsx)(`span`,{className:[Y.chevron,S?Y.chevronOpen:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})]})}),S&&(0,n.createPortal)(ee,document.body),f&&!u&&(0,e.jsx)(`span`,{id:M,className:Y.message,children:f}),u&&(0,e.jsx)(`span`,{id:N,className:Y.error,children:u})]})},dt=e=>`${e.id}:${e.direction}`,ft=({options:t,value:n,onChange:r,label:i=`Сортировка`,placeholder:a=`Выберите сортировку`,disabled:o=!1,className:s})=>{let c=t.flatMap(e=>[{value:dt({id:e.id,direction:`asc`}),label:e.ascLabel??`${e.label} · по возрастанию`,disabled:e.disabled},{value:dt({id:e.id,direction:`desc`}),label:e.descLabel??`${e.label} · по убыванию`,disabled:e.disabled}]);return(0,e.jsx)(ut,{options:c,value:n?dt(n):``,label:i,placeholder:a,disabled:o,className:s,onChange:e=>{let t=e.lastIndexOf(`:`);r?.({id:e.slice(0,t),direction:e.slice(t+1)})}})},pt={wrapper:`_wrapper_1qpd5_1`,control:`_control_1qpd5_15`,input:`_input_1qpd5_25`,disabledText:`_disabledText_1qpd5_25`,sm:`_sm_1qpd5_107`,md:`_md_1qpd5_123`,lg:`_lg_1qpd5_139`,inputError:`_inputError_1qpd5_155`,trailingAction:`_trailingAction_1qpd5_163`},mt=({value:n,onChange:r,type:i=`text`,placeholder:a=``,disabled:o=!1,readOnly:s=!1,stringWhileDisabled:c=!1,label:l,error:u,hint:d,className:f=``,name:p,id:m,size:h=`md`,clearable:g=!0,required:_=!1,selectTextOnFocus:v=!1,isPassword:y=!1,passwordVisibleLabel:b=`Скрыть пароль`,passwordHiddenLabel:x=`Показать пароль`,onFocus:S,...C})=>{let w=(0,t.useId)(),T=m??`ds-input-${p??w}`,O=(0,t.useRef)(null),[k,A]=(0,t.useState)(!1),j=d?`${T}-hint`:void 0,M=u?`${T}-error`:void 0,N=String(n??``),P=[j,M].filter(Boolean).join(` `)||void 0,F=y?k?`text`:`password`:i;return(0,t.useEffect)(()=>{y||A(!1)},[y]),(0,e.jsxs)(`div`,{className:`${pt.wrapper} ${f}`,children:[l&&(0,e.jsx)(E,{htmlFor:T,required:_,disabled:o,children:l}),o&&c?(0,e.jsx)(`div`,{id:T,className:pt.disabledText,"aria-describedby":P,children:N||a}):(0,e.jsxs)(`div`,{className:pt.control,children:[(0,e.jsx)(`input`,{ref:O,id:T,name:p,type:F,value:N,placeholder:a,disabled:o,readOnly:s,required:_,"aria-invalid":!!u,"aria-describedby":P,className:`${pt.input} ${pt[h]} ${u?pt.inputError:``}`,onChange:e=>{if(i===`number`&&!y){let t=e.target.value===``?``:Number(e.target.value);r?.(t,e);return}r?.(e.target.value,e)},onFocus:e=>{v&&e.currentTarget.value&&e.currentTarget.select(),S?.(e)},...C}),y&&(0,e.jsx)(`button`,{type:`button`,className:pt.trailingAction,disabled:o,"aria-label":k?b:x,"aria-pressed":k,onClick:()=>A(e=>!e),children:(0,e.jsx)(G,{name:k?`IconEyeOff`:`IconEye`,width:20,height:20})}),!y&&g&&N&&!o&&!s&&(0,e.jsx)(`button`,{type:`button`,className:pt.trailingAction,"aria-label":`Очистить поле`,onClick:()=>{let e=O.current;e&&((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus())},children:(0,e.jsx)(G,{name:`IconCross`,width:20,height:20})})]}),d&&!u&&(0,e.jsx)(D,{id:j,children:d}),u&&(0,e.jsx)(D,{id:M,variant:`error`,children:u})]})},ht=8,gt=6,_t=120,vt=e=>{if(typeof e==`number`)return e;if(typeof e==`string`){let t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 1/0},yt=({options:r,value:i,onChange:a,placeholder:o=`Выберите опции`,disabled:s=!1,stringWhileDisabled:c=!1,label:l,error:u,size:d=`md`,required:f=!1,hint:p,className:m=``,name:h,id:g,closeOnSelect:_=!1,needMark:v=!0,maxMenuHeight:y})=>{let b=(0,t.useId)(),x=g??`ds-dropdown-multiple-${h??b}`,S=`${x}-listbox`,[C,w]=(0,t.useState)(!1),[T,D]=(0,t.useState)(null),O=(0,t.useRef)(null),k=(0,t.useRef)(null),A=(0,t.useRef)(null),j=(0,t.useRef)([]),M=(0,t.useMemo)(()=>r.filter(e=>i.includes(e.value)),[r,i]).map(e=>e.label).join(`, `),N=p?`${x}-hint`:void 0,P=u?`${x}-error`:void 0,F=[N,P].filter(Boolean).join(` `)||void 0,I=s&&c,L=(0,t.useCallback)(()=>{let e=k.current,t=A.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerHeight-n.bottom-ht,a=n.top-ht,o=i<r.height&&a>i,s=Math.max(_t,o?a:i),c=window.innerWidth-n.width-ht;D({top:o?Math.max(ht,n.top-r.height-gt):n.bottom+gt,left:Math.max(ht,Math.min(n.left,c)),width:n.width,maxHeight:Math.min(s,vt(y))})},[y]);(0,t.useLayoutEffect)(()=>{if(!C){D(null);return}return L(),window.addEventListener(`resize`,L),window.addEventListener(`scroll`,L,!0),()=>{window.removeEventListener(`resize`,L),window.removeEventListener(`scroll`,L,!0)}},[C,r.length,L]),(0,t.useEffect)(()=>{if(!C)return;let e=e=>{let t=e.target;!O.current?.contains(t)&&!A.current?.contains(t)&&w(!1)},t=e=>{e.key===`Escape`&&(w(!1),k.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[C]);let R=(e,t)=>{let n=ct(r,e,t);n!==-1&&(j.current[n]?.focus(),j.current[n]?.scrollIntoView({block:`nearest`}))},ee=e=>{if(e.disabled)return;let t=i.includes(e.value)?i.filter(t=>t!==e.value):[...i,e.value];a?.(t,r.filter(e=>t.includes(e.value))),_&&(w(!1),k.current?.focus())},te=C?(0,e.jsx)(`ul`,{ref:A,id:S,className:Y.menu,role:`listbox`,"aria-label":l,"aria-multiselectable":`true`,style:T?{position:`fixed`,top:T.top,left:T.left,width:T.width,maxHeight:T.maxHeight}:{position:`fixed`,top:0,left:0,visibility:`hidden`,maxHeight:0},children:r.map((t,n)=>{let a=i.includes(t.value);return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{j.current[n]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,"data-option-variant":t.variant??`default`,className:[Y[d],Y.option,t.variant===`action`?Y.actionOption:``,a?Y.selected:``].filter(Boolean).join(` `),onClick:()=>ee(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;R(n+t,t)}if(e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;R(e.key===`Home`?0:r.length-1,t)}(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),ee(t)),e.key===`Tab`&&w(!1)},children:[(0,e.jsx)(`span`,{children:t.label}),a&&v&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:O,className:[Y.wrapper,u?Y.errorState:``,m].filter(Boolean).join(` `),children:[l&&(0,e.jsx)(E,{htmlFor:I?void 0:x,required:f,disabled:s,children:l}),(0,e.jsx)(`div`,{className:Y.container,children:I?(0,e.jsx)(`div`,{id:x,className:`${Y.disabledText} ${Y[d]}`,"aria-describedby":F,children:M||o}):(0,e.jsxs)(`button`,{ref:k,id:x,type:`button`,name:h,className:`${Y.trigger} ${Y[d]}`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":C,"aria-controls":S,"aria-describedby":F,"aria-invalid":!!u,onClick:()=>w(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),w(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>R(e.key===`ArrowDown`?0:r.length-1,t))}},children:[(0,e.jsx)(`span`,{className:`${M?Y.value:Y.placeholder} ${Y[d]}`,children:M||o}),(0,e.jsx)(`span`,{className:[Y.chevron,C?Y.chevronOpen:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})]})}),C&&(0,n.createPortal)(te,document.body),p&&!u&&(0,e.jsx)(`span`,{id:N,className:Y.message,children:p}),u&&(0,e.jsx)(`span`,{id:P,className:Y.error,children:u})]})},bt={wrapper:`_wrapper_1tjtn_1`,input:`_input_1tjtn_21`,switch:`_switch_1tjtn_35`,thumb:`_thumb_1tjtn_67`,label:`_label_1tjtn_113`,disabled:`_disabled_1tjtn_125`},xt=({checked:n,onChange:r,label:i,disabled:a=!1,readOnly:o=!1,className:s=``,name:c,id:l,value:u})=>{let d=(0,t.useId)(),f=l??`ds-radio-button-${c??d}`;return(0,e.jsxs)(`label`,{htmlFor:f,className:`${bt.wrapper} ${a?bt.disabled:``} ${s}`,children:[(0,e.jsx)(`input`,{id:f,className:bt.input,type:`checkbox`,role:`switch`,name:c,value:u,checked:n,disabled:a,"aria-readonly":o||void 0,onChange:e=>{o||r?.(e.target.checked,e)}}),(0,e.jsx)(`span`,{className:bt.switch,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:bt.thumb})}),i&&(0,e.jsx)(`span`,{className:bt.label,children:i})]})},St={root:`_root_kg9nb_1`,surface:`_surface_kg9nb_15`,trigger:`_trigger_kg9nb_25`,heading:`_heading_kg9nb_85`,title:`_title_kg9nb_95`,subtitle:`_subtitle_kg9nb_107`,icon:`_icon_kg9nb_119`,open:`_open_kg9nb_141`,content:`_content_kg9nb_149`,contentInner:`_contentInner_kg9nb_169`},Ct=(e,t,n,r=16)=>{if(t>Math.max(0,n-r*2)){let t=e-r;return Math.abs(t)<=1?{alignment:`none`,delta:0}:{alignment:`start`,delta:t}}let i=e+t,a=n-r;return i>a?{alignment:`end`,delta:i-a}:e<r?{alignment:`start`,delta:e-r}:{alignment:`none`,delta:0}},wt=({title:n,subtitle:r,children:i,variant:a=`outlined`,defaultOpen:o=!1,open:s,onOpenChange:c,autoScrollOnOpen:l=!0,scrollOffset:u=16,className:d=``})=>{let f=(0,t.useId)(),[p,m]=(0,t.useState)(o),h=s??p,g=(0,t.useRef)(null),_=(0,t.useRef)(null),v=(0,t.useRef)(h);return(0,t.useEffect)(()=>{let e=v.current;if(v.current=h,!h||e||!l)return;let t=g.current,n=_.current;if(!t||!n||typeof window>`u`)return;let r=!1,i=()=>{if(r)return;r=!0;let e=t.getBoundingClientRect(),n=Ct(e.top,e.height,window.innerHeight,u);if(n.alignment===`none`)return;let i=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;window.scrollBy({top:n.delta,behavior:i?`auto`:`smooth`})},a=e=>{e.target===n&&e.propertyName===`grid-template-rows`&&i()};n.addEventListener(`transitionend`,a);let o=window.setTimeout(i,280);return()=>{n.removeEventListener(`transitionend`,a),window.clearTimeout(o)}},[l,h,u]),(0,e.jsxs)(`section`,{ref:g,className:`${St.root} ${St[a]} ${h?St.open:``} ${d}`,"data-variant":a,children:[(0,e.jsxs)(`button`,{type:`button`,className:St.trigger,"aria-expanded":h,"aria-controls":f,onClick:()=>{let e=!h;s===void 0&&m(e),c?.(e)},children:[(0,e.jsxs)(`span`,{className:St.heading,children:[(0,e.jsx)(`span`,{className:St.title,children:n}),r&&(0,e.jsx)(`span`,{className:St.subtitle,children:r})]}),(0,e.jsx)(`span`,{className:St.icon,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})]}),(0,e.jsx)(`div`,{ref:_,id:f,className:St.content,"aria-hidden":!h,inert:!h,children:(0,e.jsx)(`div`,{className:St.contentInner,children:i})})]})},Tt=({children:e,containerId:r=`overlay-root`})=>{let[i,a]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let e=document.getElementById(r);if(e){a(e);return}let t=document.createElement(`div`);return t.id=r,document.body.appendChild(t),a(t),()=>{t.childElementCount===0&&t.parentElement&&t.remove()}},[r]),i?(0,n.createPortal)(e,i):null},Et=8,Dt=16,Ot=8,kt=8,At=16,jt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Mt=(e,t,n,r)=>e===`top`?t.top>=n.height+Et+Dt:e===`bottom`?r.height-t.bottom>=n.height+Et+Dt:e===`left`?t.left>=n.width+Et+Dt:r.width-t.right>=n.width+Et+Dt,Nt=(e,t,n)=>n&&t?{top:t.y-kt,right:t.x+Ot,bottom:t.y+At,left:t.x-Ot,width:16,height:24}:e,Pt=(e,t,n,r)=>{if(!(t.bottom>0&&t.right>0&&t.top<r.height&&t.left<r.width))return null;let i=Mt(e,t,n,r)?e:Mt(jt[e],t,n,r)?jt[e]:e,a=t.left+(t.width-n.width)/2,o=t.top+(t.height-n.height)/2;return i===`top`&&(o=t.top-n.height-Et),i===`bottom`&&(o=t.bottom+Et),i===`left`&&(a=t.left-n.width-Et),i===`right`&&(a=t.right+Et),a=Math.min(Math.max(a,Dt),Math.max(Dt,r.width-n.width-Dt)),o=Math.min(Math.max(o,Dt),Math.max(Dt,r.height-n.height-Dt)),{left:a,top:o,visibility:`visible`}},Ft={root:`_root_1pa4z_1`,tooltip:`_tooltip_1pa4z_11`,"ds-tooltip-in":`_ds-tooltip-in_1pa4z_1`},It=(e,t)=>n=>{e?.(n),n.defaultPrevented||t(n)},Lt=(e,t)=>{typeof e==`function`?e(t):e&&(e.current=t)},Rt=({content:n,children:r,placement:i=`top`,followCursor:a=!1,delay:o=450,disabled:s=!1,maxWidth:c=280,className:l=``,asChild:u=!1})=>{let d=(0,t.useId)(),[f,p]=(0,t.useState)(!1),[m,h]=(0,t.useState)({visibility:`hidden`}),[g,_]=(0,t.useState)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(null),b=(0,t.useRef)(null),x=(0,t.useRef)(()=>void 0),S=(0,t.useCallback)(()=>{v.current&&clearTimeout(v.current),v.current=null,p(!1)},[]),C=(0,t.useCallback)(()=>{if(!(s||!n)){if(v.current&&clearTimeout(v.current),o<=0){v.current=null,p(!0);return}v.current=setTimeout(()=>p(!0),o)}},[n,o,s]);if((0,t.useEffect)(()=>{if(!f){h({visibility:`hidden`});return}let e=()=>{let e=y.current;if(!e||!g)return;let t=Pt(i,Nt(e.getBoundingClientRect(),b.current,a),g.getBoundingClientRect(),{width:window.innerWidth,height:window.innerHeight});if(!t){S();return}h(t)};x.current=e,e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0);let t=typeof ResizeObserver>`u`?null:new ResizeObserver(e);return y.current&&t?.observe(y.current),g&&t?.observe(g),()=>{x.current=()=>void 0,window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0),t?.disconnect()}},[a,S,f,i,g]),(0,t.useEffect)(()=>{let e=e=>{e.key===`Escape`&&S()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),v.current&&clearTimeout(v.current)}},[S]),!(0,t.isValidElement)(r))return r;let w={...m,"--ds-tooltip-max-width":typeof c==`number`?`${c}px`:c},T=r.props,E=e=>{a&&(b.current={x:e.clientX,y:e.clientY}),C()},D=()=>{b.current=null,S()},O=()=>{b.current=null,C()},k=e=>{a&&(b.current={x:e.clientX,y:e.clientY},f&&x.current())},A=(0,t.cloneElement)(r,{"aria-describedby":f?d:void 0,onMouseEnter:It(T.onMouseEnter,E),onMouseLeave:It(T.onMouseLeave,D),onFocus:It(T.onFocus,O),onBlur:It(T.onBlur,S),...u?{ref:e=>{y.current=e,Lt(T.ref,e)},onPointerDown:It(T.onPointerDown,f?S:C),onPointerMove:It(T.onPointerMove,k)}:{}}),j=f&&(0,e.jsx)(Tt,{children:(0,e.jsx)(`span`,{ref:_,id:d,role:`tooltip`,className:Ft.tooltip,style:w,children:n})});return u?(0,e.jsxs)(t.Fragment,{children:[A,j]}):(0,e.jsxs)(`span`,{ref:y,className:`${Ft.root} ${l}`,onPointerDown:f?S:C,onPointerMove:k,children:[A,j]})},X={root:`_root_h5fab_1`,toolbar:`_toolbar_h5fab_15`,totalWidget:`_totalWidget_h5fab_31`,totalLabel:`_totalLabel_h5fab_53`,totalValue:`_totalValue_h5fab_63`,srOnly:`_srOnly_h5fab_77`,bulkActions:`_bulkActions_h5fab_101`,filterBar:`_filterBar_h5fab_123`,filterBarEmbedded:`_filterBarEmbedded_h5fab_141`,filterAccordion:`_filterAccordion_h5fab_153`,filterFields:`_filterFields_h5fab_161`,filterActions:`_filterActions_h5fab_187`,filterFooter:`_filterFooter_h5fab_199`,pageSizePanel:`_pageSizePanel_h5fab_217`,embedded:`_embedded_h5fab_217`,pageSizeSeparator:`_pageSizeSeparator_h5fab_237`,pendingChanges:`_pendingChanges_h5fab_259`,tableWrap:`_tableWrap_h5fab_271`,table:`_table_h5fab_271`,compact:`_compact_h5fab_321`,selectionColumn:`_selectionColumn_h5fab_359`,expansionColumn:`_expansionColumn_h5fab_367`,expansionCell:`_expansionCell_h5fab_369`,expansionIcon:`_expansionIcon_h5fab_381`,expansionIconOpen:`_expansionIconOpen_h5fab_391`,detailRow:`_detailRow_h5fab_401`,stickyColumn:`_stickyColumn_h5fab_411`,selectionHeaderCell:`_selectionHeaderCell_h5fab_447`,selectionCell:`_selectionCell_h5fab_449`,selectionHeaderControls:`_selectionHeaderControls_h5fab_461`,mobileSelectionControls:`_mobileSelectionControls_h5fab_463`,cardSelectionControls:`_cardSelectionControls_h5fab_465`,singleSelectionControl:`_singleSelectionControl_h5fab_479`,selectedRow:`_selectedRow_h5fab_509`,sticky:`_sticky_h5fab_411`,sortButton:`_sortButton_h5fab_547`,state:`_state_h5fab_585`,cards:`_cards_h5fab_597`,mobileSort:`_mobileSort_h5fab_597`,card:`_card_h5fab_465`,spanTwo:`_spanTwo_h5fab_685`,selectedCard:`_selectedCard_h5fab_693`,customCardShell:`_customCardShell_h5fab_727`,clickableRow:`_clickableRow_h5fab_741`,cardDetail:`_cardDetail_h5fab_759`,pagination:`_pagination_h5fab_819`,bottom:`_bottom_h5fab_867`,pageSizeMain:`_pageSizeMain_h5fab_881`,pageSizeOptions:`_pageSizeOptions_h5fab_883`,pageSizeFieldset:`_pageSizeFieldset_h5fab_895`,pageSizeOption:`_pageSizeOption_h5fab_883`,pageSizeOptionActive:`_pageSizeOptionActive_h5fab_973`,pageSizeWarning:`_pageSizeWarning_h5fab_987`,paginationRange:`_paginationRange_h5fab_999`,paginationControls:`_paginationControls_h5fab_1011`,pageNumbers:`_pageNumbers_h5fab_1013`,pageButton:`_pageButton_h5fab_1025`,ellipsis:`_ellipsis_h5fab_1035`,previousIcon:`_previousIcon_h5fab_1047`,nextIcon:`_nextIcon_h5fab_1055`,default:`_default_h5fab_1183`,tableOnMobile:`_tableOnMobile_h5fab_1183`,wide:`_wide_h5fab_1213`},zt=(0,r.tableFeatures)({rowSortingFeature:r.rowSortingFeature,sortedRowModel:(0,r.createSortedRowModel)()}),Bt=[10,30,50,-1],Vt=30,Ht=8;function Ut(e,t){return t.includes(e)?e:t.includes(30)?30:t.find(e=>Number.isSafeInteger(e)&&e>0)??30}function Wt(e){return e===void 0||!Number.isFinite(e)||e<=0?Vt:Math.max(1,Math.floor(e))}var Gt=({config:t,row:n,children:r})=>{if(!t)return r;let i=t.content(n);return i?(0,e.jsx)(Rt,{asChild:!0,content:i,placement:t.placement??`bottom`,followCursor:t.followCursor??!0,delay:t.delay??0,maxWidth:t.maxWidth,children:r}):r},Kt=({field:n,value:r,setValue:i,disabled:a,error:o})=>{let s=n.type===`multi-select`?n.options:void 0,[c,l]=(0,t.useState)(Array.isArray(s)?s:[]),[u,d]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(s===void 0)return;if(Array.isArray(s)){l(s);return}let e=!0;return d(!0),s().then(t=>{e&&l(t)}).finally(()=>{e&&d(!1)}),()=>{e=!1}},[s]),n.type===`multi-select`?(0,e.jsx)(yt,{label:n.label,options:c,value:Array.isArray(r)?r.map(String):[],disabled:a||u,placeholder:u?`Загрузка…`:n.placeholder,error:o,onChange:e=>i(e)}):n.type===`switch`?(0,e.jsx)(xt,{label:n.label,checked:!!r,disabled:a,onChange:e=>i(e)}):n.type===`custom`?n.render({value:r,setValue:i,disabled:a,error:o}):(0,e.jsx)(mt,{label:n.label,type:`text`,value:String(r??``),disabled:a,placeholder:n.placeholder,error:o,onChange:e=>i(e)})},qt=(e,t,n)=>{let r=new Set(e);return t.forEach(e=>{n?r.add(e):r.delete(e)}),Array.from(r)},Jt=e=>{if(!(!e||e.width===void 0&&e.minWidth===void 0&&e.maxWidth===void 0))return{width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth}},Yt=e=>{if(e?.sticky)return e.sticky===`start`?{insetInlineStart:e.stickyOffset??0}:{insetInlineEnd:e.stickyOffset??0}},Xt=(e,t)=>t<=7?Array.from({length:t},(e,t)=>t):e<=3?[0,1,2,3,4,`ellipsis-end`,t-1]:e>=t-4?[0,`ellipsis-start`,t-5,t-4,t-3,t-2,t-1]:[0,`ellipsis-start`,e-1,e,e+1,`ellipsis-end`,t-1],Zt=(e,t)=>{let n=new Set;for(let t of e){if(!t.id.trim())return`Идентификатор колонки не может быть пустым`;if(n.has(t.id))return`Идентификатор колонки «${t.id}» повторяется`;n.add(t.id)}for(let n=0;n<t.length;n+=1){let r=t[n];for(let t of e)if(typeof t.accessor==`string`&&!(t.accessor in r))return`В строке ${n+1} отсутствует колонка «${t.id}»`}return null},Qt=(e,t)=>typeof e==`function`?e(t):t[e],$t=e=>{if(e==null||e===``)return null;let t=Date.parse(String(e));return Number.isNaN(t)?null:t},en=(e,t,n)=>{let r=$t(e.getValue(n)),i=$t(t.getValue(n));return r===null&&i===null?0:r===null?-1:i===null?1:r-i},tn=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r==null&&i==null?0:r==null?-1:i==null?1:Number(r)-Number(i)},nn=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r==null&&i==null?0:r==null?-1:i==null?1:Number(!!r)-Number(!!i)},rn=(e,t,n)=>{let r=String(e.getValue(n)??``),i=String(t.getValue(n)??``);return r.localeCompare(i,void 0,{numeric:!0,sensitivity:`base`})},an=e=>{switch(e){case`date`:return en;case`number`:return tn;case`boolean`:return nn;case`text`:case void 0:return rn;case`custom`:return}},on=e=>{let t=t=>Qt(e.accessor,t),n=e.sortFn??an(e.dataType),r=e.enableSorting??(e.dataType!==`custom`&&n!==void 0),i={id:e.id,accessorFn:t,header:()=>e.header,cell:t=>{let n=t.getValue();return e.cell?.(t.row.original,n)??String(n??``)},enableSorting:r,sortDescFirst:e.sortDescFirst};return n!==void 0&&(i.sortFn=n),i},sn=({columns:n,data:i,virtualizationThreshold:a=Vt,tableOnMobile:o=!1,mobileView:s,breakpoint:c=`default`,sorting:l,onSortingChange:u,renderMobileCard:d,getRowId:f,getRowClassName:p,getRowStyle:m,toolbarContent:h,totalCountVariant:g=`default`,totalCountLabel:_=`Всего`,caption:v,ariaLabel:y,loading:b=!1,error:x,emptyState:S=`Нет данных`,stickyHeader:C=!1,maxHeight:T,className:E=``,onRowClick:D,selectable:O=!1,selectedRowIds:k,onSelectedRowIdsChange:A,onRowDoubleClick:j,getRowSelectionLabel:M,selectAllRowsLabel:N=`Выбрать все строки на этой странице`,resetSelectionLabel:P=`Сбросить выбор`,showResetSelectionControl:F=!0,openRowLabel:I=`Открыть строку`,rowTooltip:L,pagination:R=!1,paginationMode:ee=`client`,page:te=1,pageSize:z=30,onPageSizeChange:ne,pageSizeOptions:re=Bt,pageSizeDraft:ie,onPageSizeDraftChange:ae,pageSizeApplyMode:B=`table`,totalCount:oe,onPageChange:se,visibleColumnIds:ce,density:le=`comfortable`,renderBulkActions:ue,renderExpandedRow:V,expandedRowIds:de,onExpandedRowIdsChange:fe,getRowExpansionLabel:pe,resultsAnnouncement:me,filterBar:H})=>{let[he,ge]=(0,t.useState)([]),[_e,ve]=(0,t.useState)([]),[ye,be]=(0,t.useState)([]),[xe,Se]=(0,t.useState)(0),[Ce,we]=(0,t.useState)(()=>Ut(z,re)),Te=Wt(a),Ee=l??he,De=Ee.map(e=>`${e.id}:${e.desc?`desc`:`asc`}`).join(`|`),Oe=z===-1,ke=Oe?Math.max(1,(ee===`server`?Number(oe):i.length)||i.length||1):Number.isFinite(z)&&z>0?Math.floor(z):30,Ae=R&&ee===`server`,U=(0,t.useMemo)(()=>{if(ce===void 0)return n;let e=new Set(ce);return n.filter(t=>e.has(t.id))},[n,ce]),je=(0,t.useMemo)(()=>U.length===0?`Должна быть видима хотя бы одна колонка`:Zt(U,i),[i,U]),W=(0,t.useMemo)(()=>U.map(on),[U]),Me=U.some(e=>Jt(e)!==void 0),Ne=(0,r.useTable)({features:zt,columns:W,data:i,state:{sorting:Ee},onSortingChange:e=>{let t=typeof e==`function`?e(Ee):e;l===void 0&&ge(t),Se(0),u?.(t)},getRowId:f}),Pe=Ne.getRowModel().rows,K=Ae&&Number.isFinite(oe)&&Number(oe)>=0?Math.floor(Number(oe)):Pe.length,Ie=R?Math.max(1,Math.ceil(K/ke)):1,Le=Number.isFinite(te)&&te>0?Math.floor(te)-1:0,q=Math.min(Ae?Le:xe,Ie-1),J=(0,t.useMemo)(()=>R&&!Ae?Pe.slice(q*ke,(q+1)*ke):Pe,[Ae,ke,R,q,Pe]),Re=J.length>Te,ze=(0,t.useMemo)(()=>({data:i,sortingKey:De,safePageIndex:q,normalizedPageSize:ke,pagination:R,isServerPagination:Ae,normalizedVirtualizationThreshold:Te}),[i,De,q,ke,R,Ae,Te]),[Be,Ve]=(0,t.useState)({context:ze,count:Te}),He=Be.context===ze?Be.count:Te;Be.context!==ze&&Ve({context:ze,count:Te});let Ue=(0,t.useMemo)(()=>J.slice(0,He),[J,He]),We=Re&&He<J.length,Ge=We?Math.max(0,Ue.length-Ht):-1,Ke=(0,t.useRef)(new Map),qe=(0,t.useRef)(new Map);(0,t.useEffect)(()=>{if(!We||b||je||x)return;let e=[...Ke.current.values(),...qe.current.values()],t=!0,n=new IntersectionObserver(e=>{!t||!e.some(e=>e.isIntersecting)||(t=!1,n.disconnect(),Ve(e=>e.context===ze?{context:ze,count:Math.min(e.count+Te,J.length)}:e))},{root:null,threshold:0});return e.forEach(e=>{e&&n.observe(e)}),()=>{t=!1,n.disconnect()}},[ze,He,Te,J.length,We,b,je,x,s,o,d]);let Je=k??_e,Ye=(0,t.useMemo)(()=>new Set(Je),[Je]),Xe=de??ye,Ze=(0,t.useMemo)(()=>new Set(Xe),[Xe]),Qe=(0,t.useMemo)(()=>J.map(e=>e.id),[J]),$e=Qe.filter(e=>Ye.has(e)).length,et=Qe.length>0&&$e===Qe.length,tt=$e>0&&!et,nt=(0,t.useMemo)(()=>U.filter(e=>e.enableSorting??e.dataType!==`custom`).map(e=>({id:e.id,label:typeof e.header==`string`?e.header:e.id})),[U]),rt=(0,t.useMemo)(()=>Xt(q,Ie),[Ie,q]),Y=s===void 0?o:s===`table`,at=[X.root,c===`wide`?X.wide:X.default,Y?X.tableOnMobile:``,le===`compact`?X.compact:``,O&&!F?X.singleSelectionControl:``,E].filter(Boolean).join(` `),ot=je??x,st=R&&!Oe&&!ot&&K>ke&&(!b||Ae),ct=R&&!!(ne||ae||H),lt=ie??Ce,ut=H?(typeof H.validation==`function`?H.validation(H.draftValues):H.validation)??{}:{},dt=H?JSON.stringify(H.draftValues)!==JSON.stringify(H.appliedValues)||lt!==z:!1,pt=Object.values(ut).some(Boolean),mt=K===0?0:q*ke+1,ht=Math.min((q+1)*ke,K),gt=()=>{lt!==z&&(Se(0),se?.(1),ne?.(lt))},_t=(t,n=!1,r=!1)=>{let i=lt!==z,a=`ds-data-table-page-size-warning-${t}`;return(0,e.jsxs)(`div`,{className:`${X.pageSizePanel} ${X[t]} ${n?X.embedded:``}`,children:[(0,e.jsxs)(`div`,{className:X.pageSizeMain,children:[(0,e.jsxs)(`fieldset`,{className:X.pageSizeFieldset,disabled:b||H?.applying,children:[(0,e.jsx)(`legend`,{children:`На странице`}),(0,e.jsx)(`div`,{className:X.pageSizeOptions,children:re.map(t=>(0,e.jsx)(`button`,{type:`button`,className:`${X.pageSizeOption} ${lt===t?X.pageSizeOptionActive:``}`,"aria-pressed":lt===t,onClick:()=>{ie===void 0&&we(t),ae?.(t)},children:t===-1?`Все`:t},t))})]}),B===`table`&&!H&&(0,e.jsx)(w,{size:`sm`,disabled:b||!i,"aria-describedby":lt===-1&&i&&t===`top`?a:void 0,onClick:gt,children:`Применить`})]}),r&&(0,e.jsx)(`span`,{className:X.pageSizeSeparator,"aria-hidden":`true`,children:`|`}),(0,e.jsxs)(`span`,{className:X.paginationRange,children:[`Показано `,mt,`–`,ht,` из`,` `,K]}),dt&&t===`top`&&(0,e.jsx)(`span`,{className:X.pendingChanges,role:`status`,children:`Есть неприменённые изменения`}),Ae&&lt===-1&&i&&(0,e.jsxs)(`span`,{id:a,className:X.pageSizeWarning,"aria-hidden":t===`bottom`||void 0,children:[`Будут загружены все`,` `,K,` `,`записей`]})]})},vt=e=>{let t=Math.max(0,Math.min(Ie-1,e));if(Ae){t!==q&&se?.(t+1);return}Se(t)},yt=e=>{let t=Array.from(e);k===void 0&&ve(t),A?.(t)},bt=e=>{let t=new Set(Ye);t.has(e)?t.delete(e):t.add(e),yt(t)},xt=()=>{let e=qt(Ye,Qe,!et);k===void 0&&ve(e),A?.(e)},St=()=>yt(new Set),Ct=e=>{let t=new Set(Ze);t.has(e)?t.delete(e):t.add(e);let n=Array.from(t);de===void 0&&be(n),fe?.(n)},Tt=i.filter((e,t)=>Ye.has(f?.(e,t)??String(t))),Et=me?.({visibleCount:J.length,totalCount:K,selectedCount:Ye.size})??`Показано строк: ${J.length} из ${K}. Выбрано: ${Ye.size}.`;(0,t.useEffect)(()=>{Ae||Se(0)},[i,Ae,ke,R,De]),(0,t.useEffect)(()=>{!Ae&&xe>=Ie&&Se(Ie-1)},[Ae,Ie,xe]),(0,t.useEffect)(()=>{we(Ut(z,re))},[z,re]);let Dt=H&&ct?_t(`top`,!0,H.footerLayout===`inline`):null,Ot=H?(0,e.jsxs)(`div`,{className:X.filterActions,children:[(0,e.jsx)(w,{variant:`empty`,disabled:H.applying||b,onClick:()=>{let e=H.resetValues??H.appliedValues;H.onDraftValuesChange(e);let t=H.resetPageSize??re[0]??30;ie===void 0&&we(t),ae?.(t),H.onReset?.({filters:e,pageSize:t})},children:H.resetLabel??`Сбросить`}),(0,e.jsx)(w,{type:`submit`,isLoading:H.applying,disabled:!dt||pt||b,children:H.applyLabel??`Применить`})]}):null,kt=H?(0,e.jsxs)(`form`,{className:`${X.filterBar} ${H.collapsible?X.filterBarEmbedded:``}`,role:`search`,"aria-label":`Фильтры таблицы`,onSubmit:e=>{e.preventDefault(),!(!dt||pt||H.applying||b)&&(Se(0),se?.(1),H.onApply({filters:H.draftValues,pageSize:lt}))},children:[(0,e.jsx)(`div`,{className:X.filterFields,children:H.fields.map(t=>(0,e.jsx)(Kt,{field:t,value:H.draftValues[t.key],disabled:!!(t.disabled||H.applying||b),error:ut[t.key],setValue:e=>H.onDraftValuesChange({...H.draftValues,[t.key]:e})},t.key))}),H.footerLayout===`inline`?(0,e.jsxs)(`div`,{className:X.filterFooter,children:[Dt,Ot]}):(0,e.jsxs)(e.Fragment,{children:[Dt,Ot]})]}):null,At=H?.collapsible?(0,e.jsx)(wt,{title:H.collapsible.title??`Фильтры`,defaultOpen:H.collapsible.defaultOpen,autoScrollOnOpen:H.collapsible.autoScrollOnOpen,scrollOffset:H.collapsible.scrollOffset,className:X.filterAccordion,children:kt}):kt;return(0,e.jsxs)(`section`,{className:at,"aria-busy":b,children:[(0,e.jsx)(`div`,{className:X.srOnly,"aria-live":`polite`,"aria-atomic":`true`,children:Et}),ue&&Ye.size>0&&(0,e.jsx)(`div`,{className:X.bulkActions,role:`region`,"aria-label":`Действия с выбранными строками`,children:ue({selectedRowIds:Array.from(Ye),selectedRows:Tt,clearSelection:St})}),At,ct&&!H&&_t(`top`),(g===`highlighted`||h!=null)&&(0,e.jsxs)(`div`,{className:X.toolbar,children:[g===`highlighted`&&(0,e.jsxs)(`div`,{className:X.totalWidget,"aria-label":`${_}: ${K}`,children:[(0,e.jsx)(`span`,{className:X.totalLabel,children:_}),(0,e.jsx)(`strong`,{className:X.totalValue,children:K})]}),h]}),!Y&&!b&&!ot&&J.length>0&&nt.length>0&&(0,e.jsx)(ft,{className:X.mobileSort,options:nt,value:Ee[0]?{id:Ee[0].id,direction:Ee[0].desc?`desc`:`asc`}:null,onChange:e=>Ne.setSorting([{id:e.id,desc:e.direction===`desc`}])}),(0,e.jsx)(`div`,{className:X.tableWrap,style:{maxHeight:T},children:(0,e.jsxs)(`table`,{className:X.table,"aria-label":y,children:[v&&(0,e.jsx)(`caption`,{children:v}),(Me||O||!!V)&&(0,e.jsxs)(`colgroup`,{children:[V&&(0,e.jsx)(`col`,{className:X.expansionColumn}),O&&(0,e.jsx)(`col`,{className:X.selectionColumn}),U.map(t=>(0,e.jsx)(`col`,{style:Jt(t)},t.id))]}),(0,e.jsx)(`thead`,{className:C?X.sticky:``,children:Ne.getHeaderGroups().map(t=>(0,e.jsxs)(`tr`,{children:[V&&(0,e.jsx)(`th`,{className:X.expansionCell,scope:`col`,children:(0,e.jsx)(`span`,{className:X.srOnly,children:`Подробности`})}),O&&(0,e.jsx)(`th`,{className:X.selectionHeaderCell,scope:`col`,children:(0,e.jsxs)(`div`,{className:X.selectionHeaderControls,children:[(0,e.jsx)(Fe,{checked:et,indeterminate:tt,disabled:b||Qe.length===0,ariaLabel:N,onChange:xt}),F&&(0,e.jsx)(w,{size:`sm`,variant:`empty`,disabled:Ye.size===0,"aria-label":P,title:P,onClick:St,children:(0,e.jsx)(G,{name:`IconX`,width:16,height:16})})]})}),t.headers.map(t=>{let n=t.column.getIsSorted(),r=t.column.getCanSort(),i=t.column.getToggleSortingHandler(),a=U.find(e=>e.id===t.column.id);return(0,e.jsx)(`th`,{scope:`col`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:`none`,className:a?.sticky?X.stickyColumn:void 0,style:{...Jt(a),...Yt(a)},children:(0,e.jsxs)(`button`,{type:`button`,className:X.sortButton,disabled:!r,onClick:i,children:[(0,e.jsx)(Ne.FlexRender,{header:t}),(0,e.jsx)(G,{name:n===`asc`?`IconSortAscending`:n===`desc`?`IconSortDescending`:`IconSort`,width:16,height:16})]})},t.id)})]},t.id))}),(0,e.jsx)(`tbody`,{children:b?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{colSpan:U.length+ +!!O+ +!!V,children:(0,e.jsx)(it,{lines:3,height:65})})}):ot?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:X.state,colSpan:U.length+ +!!O+ +!!V,children:ot})}):J.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:X.state,colSpan:U.length+ +!!O+ +!!V,children:S})}):(0,e.jsx)(e.Fragment,{children:Ue.map((n,r)=>{let i=Ye.has(n.id),a=M?.(n.original)??`Выбрать строку ${n.index+1}`,o=Ze.has(n.id);return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(Gt,{config:L,row:n.original,children:(0,e.jsxs)(`tr`,{ref:Ge>=0&&r>=Ge?e=>{e?Ke.current.set(r,e):Ke.current.delete(r)}:void 0,className:[D||O?X.clickableRow:``,i?X.selectedRow:``,p?.(n.original)].filter(Boolean).join(` `),style:m?.(n.original),"aria-selected":O?i:void 0,onClick:()=>{O?bt(n.id):D?.(n.original)},onDoubleClick:()=>{O&&j?.(n.original)},onKeyDown:e=>{e.key===`Enter`?(e.preventDefault(),O?j?.(n.original):D?.(n.original)):e.key===` `&&O&&(e.preventDefault(),bt(n.id))},tabIndex:D||O||j||L?0:void 0,role:!O&&D?`button`:void 0,children:[V&&(0,e.jsx)(`td`,{className:X.expansionCell,onClick:e=>e.stopPropagation(),children:(0,e.jsx)(w,{size:`sm`,variant:`empty`,"aria-expanded":o,"aria-label":pe?.(n.original,o)??(o?`Скрыть подробности строки`:`Показать подробности строки`),onClick:()=>Ct(n.id),children:(0,e.jsx)(G,{name:`IconChevron`,width:16,height:16,className:o?X.expansionIconOpen:X.expansionIcon})})}),O&&(0,e.jsx)(`td`,{className:X.selectionCell,children:(0,e.jsx)(`div`,{onClick:e=>e.stopPropagation(),children:(0,e.jsx)(Fe,{checked:i,ariaLabel:a,onChange:()=>bt(n.id)})})}),n.getAllCells().map(t=>{let n=U.find(e=>e.id===t.column.id);return(0,e.jsx)(`td`,{className:n?.sticky?X.stickyColumn:void 0,style:{...Jt(n),...Yt(n)},children:(0,e.jsx)(Ne.FlexRender,{cell:t})},t.id)})]})}),o&&V&&(0,e.jsx)(`tr`,{className:X.detailRow,children:(0,e.jsx)(`td`,{colSpan:U.length+ +!!O+1,children:V({row:n.original,rowId:n.id,collapse:()=>Ct(n.id)})})})]},n.id)})})})]})}),!Y&&(0,e.jsxs)(`div`,{className:X.cards,role:`list`,"aria-label":y??v,children:[O&&!b&&!ot&&J.length>0&&(0,e.jsxs)(`div`,{className:X.mobileSelectionControls,children:[(0,e.jsx)(Fe,{checked:et,indeterminate:tt,ariaLabel:N,label:N,onChange:xt}),F&&(0,e.jsx)(w,{size:`sm`,variant:`empty`,disabled:Ye.size===0,onClick:St,children:P})]}),b?(0,e.jsx)(it,{lines:4,height:65}):ot?(0,e.jsx)(`div`,{className:X.state,children:ot}):J.length===0?(0,e.jsx)(`div`,{className:X.state,children:S}):(0,e.jsx)(e.Fragment,{children:Ue.map((t,n)=>{let r=Ye.has(t.id),i=Ze.has(t.id),a=M?.(t.original)??`Выбрать строку ${t.index+1}`,o=O&&(0,e.jsxs)(`div`,{className:X.cardSelectionControls,onClick:e=>e.stopPropagation(),children:[(0,e.jsx)(Fe,{checked:r,ariaLabel:a,onChange:()=>bt(t.id)}),j&&(0,e.jsx)(w,{size:`sm`,variant:`empty`,onClick:()=>j(t.original),children:I})]}),s=V&&(0,e.jsx)(w,{size:`sm`,variant:`empty`,"aria-expanded":i,"aria-label":pe?.(t.original,i)??(i?`Скрыть подробности строки`:`Показать подробности строки`),onClick:e=>{e.stopPropagation(),Ct(t.id)},children:(0,e.jsx)(G,{name:`IconChevron`,width:16,height:16,className:i?X.expansionIconOpen:X.expansionIcon})});if(d)return(0,e.jsxs)(`div`,{ref:Ge>=0&&n>=Ge?e=>{e?qe.current.set(n,e):qe.current.delete(n)}:void 0,role:`listitem`,className:[X.customCardShell,r?X.selectedCard:``,p?.(t.original)].filter(Boolean).join(` `),style:m?.(t.original),"aria-selected":O?r:void 0,onClick:()=>{O&&bt(t.id)},children:[o,d({row:t.original,columns:U}),s,i&&(0,e.jsx)(`div`,{className:X.cardDetail,children:V?.({row:t.original,rowId:t.id,collapse:()=>Ct(t.id)})})]},t.id);let c=U.filter(e=>!e.mobile?.hideOnMobile).sort((e,t)=>(e.mobile?.mobileOrder??0)-(t.mobile?.mobileOrder??0)),l=c.find(e=>e.mobile?.primary)??c.find(e=>e.mobile?.mobileVariant!==`actions`),u=e=>Qt(e.accessor,t.original),f=e=>e.mobile?.renderMobile?.(t.original,u(e))??e.cell?.(t.original,u(e))??String(u(e)??``);return(0,e.jsxs)(`article`,{ref:Ge>=0&&n>=Ge?e=>{e?qe.current.set(n,e):qe.current.delete(n)}:void 0,role:`listitem`,className:[X.card,r?X.selectedCard:``,p?.(t.original)].filter(Boolean).join(` `),style:m?.(t.original),"aria-selected":O?r:void 0,onClick:()=>{O&&bt(t.id)},children:[o,s,(0,e.jsx)(`h3`,{children:l?f(l):`Строка ${t.index+1}`}),(0,e.jsx)(`dl`,{children:c.filter(e=>e!==l&&e.mobile?.mobileVariant!==`actions`).map(t=>(0,e.jsxs)(`div`,{className:t.mobile?.mobileSpan===2?X.spanTwo:``,children:[(0,e.jsx)(`dt`,{children:t.mobile?.mobileLabel??t.header}),(0,e.jsx)(`dd`,{children:f(t)})]},t.id))}),c.filter(e=>e.mobile?.mobileVariant===`actions`).map(t=>(0,e.jsx)(`footer`,{children:f(t)},t.id)),i&&(0,e.jsx)(`div`,{className:X.cardDetail,children:V?.({row:t.original,rowId:t.id,collapse:()=>Ct(t.id)})})]},t.id)})})]}),(st||ct&&!b&&!ot&&J.length>0)&&(0,e.jsxs)(`nav`,{className:X.pagination,"aria-label":`Пагинация таблицы`,children:[ct?_t(`bottom`):(0,e.jsxs)(`span`,{className:X.paginationRange,"aria-live":`polite`,children:[mt,`–`,ht,` из`,` `,K]}),st&&(0,e.jsxs)(`div`,{className:X.paginationControls,children:[(0,e.jsxs)(w,{variant:`empty`,size:`md`,disabled:b||q===0,"aria-label":`Предыдущая страница`,onClick:()=>{vt(q-1)},children:[(0,e.jsx)(G,{name:`IconChevron`,width:18,height:18,className:X.previousIcon}),(0,e.jsx)(`span`,{className:X.paginationButtonLabel,children:`Назад`})]}),(0,e.jsx)(`div`,{className:X.pageNumbers,children:rt.map(t=>typeof t==`number`?(0,e.jsx)(w,{variant:t===q?`secondary`:`empty`,size:`md`,className:X.pageButton,"aria-label":`Перейти на страницу ${t+1}`,"aria-current":t===q?`page`:void 0,disabled:b,onClick:()=>{vt(t)},children:t+1},t):(0,e.jsx)(`span`,{className:X.ellipsis,"aria-hidden":`true`,children:`…`},t))}),(0,e.jsxs)(w,{variant:`empty`,size:`md`,disabled:b||q===Ie-1,"aria-label":`Следующая страница`,onClick:()=>{vt(q+1)},children:[(0,e.jsx)(`span`,{className:X.paginationButtonLabel,children:`Вперёд`}),(0,e.jsx)(G,{name:`IconChevron`,width:18,height:18,className:X.nextIcon})]})]})]})]})},cn=(e,t)=>{let n=t.trim().toLocaleLowerCase();return n?e.filter(e=>e.label.toLocaleLowerCase().includes(n)||e.value.toLocaleLowerCase().includes(n)):e},ln=(e,t,n)=>{if(!e.length)return-1;for(let r=0;r<e.length;r+=1){let i=(t+r*n+e.length)%e.length;if(!e[i]?.disabled)return i}return-1},Z={wrapper:`_wrapper_1os84_1`,control:`_control_1os84_17`,inputHost:`_inputHost_1os84_25`,sm:`_sm_1os84_41`,md:`_md_1os84_57`,lg:`_lg_1os84_71`,errorState:`_errorState_1os84_85`,disabledText:`_disabledText_1os84_93`,chevron:`_chevron_1os84_163`,chevronOpen:`_chevronOpen_1os84_197`,menu:`_menu_1os84_205`,menuEmpty:`_menuEmpty_1os84_233`,option:`_option_1os84_241`,empty:`_empty_1os84_241`,selected:`_selected_1os84_321`,active:`_active_1os84_321`,actionOption:`_actionOption_1os84_341`,visuallyHidden:`_visuallyHidden_1os84_375`},un=8,dn=6,fn=5,pn=10,mn={sm:30,md:40,lg:50},hn=({options:r,value:i,onChange:a,placeholder:o=`Начните вводить`,noResultsText:s=`Ничего не найдено`,disabled:c=!1,readOnly:l=!1,stringWhileDisabled:u=!1,label:d,error:f,hint:p,size:m=`md`,required:h=!1,className:g=``,name:_,id:v,needMark:y=!0})=>{let b=(0,t.useId)(),x=v??`ds-search-dropdown-${_??b}`,S=`${x}-listbox`,C=`${x}-status`,w=p?`${x}-hint`:void 0,T=f?`${x}-error`:void 0,O=[C,w,T].filter(Boolean).join(` `),k=(0,t.useRef)(null),A=(0,t.useRef)(null),j=(0,t.useRef)([]),[M,N]=(0,t.useState)(!1),[P,F]=(0,t.useState)(``),[I,L]=(0,t.useState)(-1),[R,ee]=(0,t.useState)(null),te=(0,t.useMemo)(()=>r.find(e=>e.value===i),[r,i]),z=(0,t.useMemo)(()=>cn(r,P),[r,P]),ne=c&&u,re=I>=0?z[I]:void 0;(0,t.useEffect)(()=>F(te?.label??``),[te?.label,i]);let ie=(0,t.useCallback)(()=>k.current?.querySelector(`input`)??null,[]),ae=(0,t.useCallback)((e,t)=>ln(z,e,t),[z]),B=(0,t.useCallback)(e=>{L(e),!(e<0)&&requestAnimationFrame(()=>j.current[e]?.scrollIntoView({block:`nearest`}))},[]),oe=(0,t.useCallback)(()=>{let e=ie();if(!e)return;let t=e.getBoundingClientRect(),n=Math.max(1,Math.min(z.length,fn))*mn[m]+pn,r=window.innerHeight-t.bottom-un,i=t.top-un,a=r<n&&i>r,o=a?i:r,s=Math.max(mn[m]+pn,Math.min(n,o)),c=window.innerWidth-t.width-un,l=Math.max(un,Math.min(t.left,c)),u=a?Math.max(un,t.top-s-dn):t.bottom+dn;ee({top:u,left:l,width:t.width,maxHeight:s})},[z.length,ie,m]);(0,t.useLayoutEffect)(()=>{if(!M){ee(null);return}return oe(),window.addEventListener(`resize`,oe),window.addEventListener(`scroll`,oe,!0),()=>{window.removeEventListener(`resize`,oe),window.removeEventListener(`scroll`,oe,!0)}},[M,oe]),(0,t.useEffect)(()=>{if(!M)return;let e=e=>{let t=e.target;!k.current?.contains(t)&&!A.current?.contains(t)&&(N(!1),L(-1))};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[M]);let se=()=>{c||l||(N(!0),L(ae(0,1)))},ce=e=>{e.disabled||(F(e.label),N(!1),L(-1),a?.(e.value,e),ie()?.focus())},le=M?(0,e.jsx)(`ul`,{ref:A,id:S,className:`${Z.menu} ${z.length===0?Z.menuEmpty:``}`,role:`listbox`,"aria-label":d,style:R?{top:R.top,left:R.left,width:R.width,maxHeight:R.maxHeight}:{top:0,left:0,visibility:`hidden`,maxHeight:0},children:z.length===0?(0,e.jsx)(`li`,{className:`${Z.empty} ${Z[m]}`,children:s}):z.map((t,n)=>{let r=t.value===i,a=n===I;return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{j.current[n]=e},id:`${x}-option-${n}`,type:`button`,role:`option`,tabIndex:-1,disabled:t.disabled,"aria-disabled":t.disabled,"aria-selected":r,"data-option-variant":t.variant??`default`,className:[Z.option,Z[m],t.variant===`action`?Z.actionOption:``,r?Z.selected:``,a?Z.active:``].filter(Boolean).join(` `),onPointerMove:()=>{t.disabled||L(n)},onClick:()=>ce(t),children:[(0,e.jsx)(`span`,{children:t.label}),r&&y&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:k,className:[Z.wrapper,f?Z.errorState:``,g].filter(Boolean).join(` `),children:[d&&(0,e.jsx)(E,{htmlFor:ne?void 0:x,required:h,disabled:c,children:d}),ne?(0,e.jsx)(`div`,{className:`${Z.disabledText} ${Z[m]}`,children:te?.label??o}):(0,e.jsxs)(`div`,{className:Z.control,children:[(0,e.jsx)(mt,{id:x,name:_,value:P,placeholder:o,disabled:c,readOnly:l,required:h,size:m,clearable:!1,autoComplete:`off`,className:`${Z.inputHost} ${Z[m]}`,onFocus:se,onChange:e=>{let t=String(e),n=cn(r,t);F(t),N(!0),L(ln(n,0,1))},role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":M,"aria-controls":S,"aria-activedescendant":re?`${x}-option-${I}`:void 0,"aria-invalid":!!f,"aria-describedby":O,onClick:se,onKeyDown:e=>{if(!(c||l)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1,n=I>=0?I+t:t===1?0:z.length-1;N(!0),B(ae(n,t))}else if(e.key===`Home`||e.key===`End`){if(!M)return;e.preventDefault();let t=e.key===`Home`?1:-1;B(ae(e.key===`Home`?0:z.length-1,t))}else e.key===`Enter`&&M&&re?(e.preventDefault(),ce(re)):e.key===`Escape`&&M?(e.preventDefault(),N(!1),L(-1)):e.key===`Tab`&&(N(!1),L(-1))}}}),(0,e.jsx)(`span`,{className:`${Z.chevron} ${M?Z.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconChevron`,width:20,height:20})})]}),M&&typeof document<`u`&&(0,n.createPortal)(le,document.body),(0,e.jsxs)(`span`,{id:C,className:Z.visuallyHidden,"aria-live":`polite`,children:[`Найдено вариантов: `,z.length]}),p&&!f&&(0,e.jsx)(D,{id:w,children:p}),f&&(0,e.jsx)(D,{id:T,variant:`error`,children:f})]})},gn={root:`_root_11adi_1`,header:`_header_11adi_21`,title:`_title_11adi_41`,dismiss:`_dismiss_11adi_55`,content:`_content_11adi_65`},_n=({title:n,children:r,dismissible:i=!1,onDismiss:a,dismissLabel:o=`Закрыть информационный блок`,headingAs:s=`h3`,className:c=``})=>{let l=`ds-info-block-${(0,t.useId)()}`;return(0,e.jsxs)(`section`,{className:`${gn.root} ${c}`,"aria-labelledby":l,children:[(0,e.jsxs)(`header`,{className:gn.header,children:[(0,e.jsx)(s,{id:l,className:gn.title,children:n}),i&&(0,e.jsx)(w,{className:gn.dismiss,variant:`empty`,onClick:a,"aria-label":o,children:(0,e.jsx)(G,{name:`IconCross`,width:20,height:20})})]}),(0,e.jsx)(`div`,{className:gn.content,children:r})]})},vn={root:`_root_1ecm3_1`,grid:`_grid_1ecm3_13`,actions:`_actions_1ecm3_27`},yn=({filters:t,values:n,onChange:r,onApply:i,onReset:a,applyMode:o=`instant`,loading:s=!1,disabled:c=!1,className:l=``})=>{let u=(e,t)=>{let a={...n,[e]:t};r?.(a,e),o===`instant`&&i?.(a)};return(0,e.jsxs)(`section`,{className:`${vn.root} ${l}`,"aria-label":`Фильтры`,"aria-busy":s,children:[(0,e.jsx)(`div`,{className:vn.grid,children:t.filter(e=>!e.hidden).map(t=>{let r=c||s||t.disabled,i=n[t.id];if(t.type===`input`){let n={label:t.label,hint:t.hint,placeholder:t.placeholder,disabled:r};return t.inputType===`number`?(0,e.jsx)(mt,{...n,type:`number`,value:i??``,onChange:e=>u(t.id,e)},t.id):(0,e.jsx)(mt,{...n,type:`text`,value:String(i??``),onChange:e=>u(t.id,e)},t.id)}if(t.type===`dropdown`)return(0,e.jsx)(ut,{label:t.label,hint:t.hint,placeholder:t.placeholder,options:t.options,value:String(i??``),disabled:r,onChange:e=>u(t.id,e)},t.id);if(t.type===`multiple`)return(0,e.jsx)(yt,{label:t.label,hint:t.hint,placeholder:t.placeholder,options:t.options,value:Array.isArray(i)?i:[],disabled:r,onChange:e=>u(t.id,e)},t.id);if(t.type===`checkbox`)return(0,e.jsx)(Fe,{label:t.label,hint:t.hint,checked:!!i,disabled:r,onChange:e=>u(t.id,e)},t.id);if(t.type===`radio`)return(0,e.jsx)(xt,{label:t.label,checked:!!i,disabled:r,onChange:e=>u(t.id,e)},t.id);let a=i&&typeof i==`object`&&!Array.isArray(i)?i:{from:null,to:null};return(0,e.jsx)(nt,{hint:t.hint,mode:t.mode,min:t.min,max:t.max,value:a,disabled:r,onDraftChange:e=>u(t.id,e)},t.id)})}),(a||o===`manual`)&&(0,e.jsxs)(`div`,{className:vn.actions,children:[a&&(0,e.jsx)(w,{variant:`destructiveOutline`,disabled:c||s,onClick:a,children:`Сбросить`}),o===`manual`&&(0,e.jsx)(w,{isLoading:s,disabled:c,onClick:()=>i?.(n),children:`Применить`})]})]})},bn={grid:`_grid_1q540_1`,comfortable:`_comfortable_1q540_11`,compact:`_compact_1q540_19`,columns1:`_columns1_1q540_27`,columns2:`_columns2_1q540_35`,columns3:`_columns3_1q540_43`,columns4:`_columns4_1q540_51`,item:`_item_1q540_59`,span1:`_span1_1q540_67`,span2:`_span2_1q540_75`,span3:`_span3_1q540_83`,span4:`_span4_1q540_91`,spanfull:`_spanfull_1q540_93`,summary:`_summary_1q540_101`,summaryTitle:`_summaryTitle_1q540_137`,summaryList:`_summaryList_1q540_145`},xn=({columns:t=2,density:n=`comfortable`,className:r=``,...i})=>(0,e.jsx)(`div`,{...i,className:`${bn.grid} ${bn[`columns${t}`]} ${bn[n]} ${r}`}),Sn=({span:t=1,className:n=``,...r})=>(0,e.jsx)(`div`,{...r,className:`${bn.item} ${bn[`span${t}`]} ${n}`}),Cn=({title:t=`Проверьте заполнение формы`,items:n,focusField:r,className:i=``,...a})=>n.length===0?null:(0,e.jsxs)(`div`,{...a,className:`${bn.summary} ${i}`,role:`alert`,"aria-atomic":`true`,tabIndex:-1,children:[(0,e.jsx)(`strong`,{className:bn.summaryTitle,children:t}),(0,e.jsx)(`ul`,{className:bn.summaryList,children:n.map(t=>(0,e.jsx)(`li`,{children:t.fieldId?(0,e.jsx)(`a`,{href:`#${t.fieldId}`,onClick:e=>{r&&(e.preventDefault(),r(t.fieldId))},children:t.message}):t.message},t.id))})]}),wn={wrapper:`_wrapper_yxnr3_1`,dropzone:`_dropzone_yxnr3_15`,dragActive:`_dragActive_yxnr3_45`,disabled:`_disabled_yxnr3_59`,error:`_error_yxnr3_69`,nativeInput:`_nativeInput_yxnr3_77`,empty:`_empty_yxnr3_95`,uploadIcon:`_uploadIcon_yxnr3_111`,files:`_files_yxnr3_133`,file:`_file_yxnr3_133`,fileName:`_fileName_yxnr3_175`,fileSize:`_fileSize_yxnr3_187`},Tn=e=>`${e.name}:${e.size}:${e.lastModified}`,En=e=>e<1024?`${e} Б`:e<1048576?`${(e/1024).toFixed(1)} КБ`:`${(e/1024/1024).toFixed(1)} МБ`,Dn=(e,t)=>!t||t.split(`,`).map(e=>e.trim().toLowerCase()).some(t=>t.startsWith(`.`)?e.name.toLowerCase().endsWith(t):t.endsWith(`/*`)?e.type.startsWith(t.slice(0,-1)):e.type.toLowerCase()===t),On=({value:n,onChange:r,multiple:i=!1,accept:a,maxSize:o,maxFiles:s,label:c,hint:l,error:u,required:d=!1,disabled:f=!1,readOnly:p=!1,name:m,id:h,className:g=``,dropLabel:_=`Перетащите файлы в эту область`,browseLabel:v=`Выбрать файлы`,addMoreLabel:y=`Добавить ещё`,onReject:b})=>{let x=(0,t.useId)(),S=h??`ds-file-input-${m??x}`,C=(0,t.useRef)(null),T=(0,t.useRef)(0),[O,k]=(0,t.useState)(!1),A=l?`${S}-hint`:void 0,j=u?`${S}-error`:void 0,M=[A,j].filter(Boolean).join(` `)||void 0,N=!f&&!p,P=e=>{let t=[],c=new Set(n.map(Tn)),l=e.filter(e=>Dn(e,a)?o!==void 0&&e.size>o?(t.push({file:e,reason:`maxSize`}),!1):!c.has(Tn(e))&&(c.add(Tn(e)),!0):(t.push({file:e,reason:`accept`}),!1)),u=i?s:1,d=i?[...n,...l]:l.slice(-1);u!==void 0&&d.length>u&&(d.slice(u).forEach(e=>t.push({file:e,reason:`maxFiles`})),d=d.slice(0,u)),t.length&&b?.(t),l.length&&r?.(d),C.current&&(C.current.value=``)};return(0,e.jsxs)(`div`,{className:`${wn.wrapper} ${g}`,children:[c&&(0,e.jsx)(E,{htmlFor:S,required:d,disabled:f,children:c}),(0,e.jsxs)(`div`,{className:`${wn.dropzone} ${O?wn.dragActive:``} ${f?wn.disabled:``} ${u?wn.error:``}`,onDragEnter:e=>{e.preventDefault(),N&&++T.current===1&&k(!0)},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{e.preventDefault(),--T.current<=0&&(T.current=0,k(!1))},onDrop:e=>{e.preventDefault(),T.current=0,k(!1),N&&P(Array.from(e.dataTransfer.files))},children:[(0,e.jsx)(`input`,{ref:C,id:S,name:m,className:wn.nativeInput,type:`file`,multiple:i,accept:a,required:d&&n.length===0,disabled:!N,"aria-describedby":M,"aria-invalid":!!u,onChange:e=>P(Array.from(e.target.files??[]))}),n.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`ul`,{className:wn.files,"aria-live":`polite`,children:n.map((t,i)=>(0,e.jsxs)(`li`,{className:wn.file,children:[(0,e.jsx)(`span`,{className:wn.fileName,title:t.name,children:t.name}),(0,e.jsx)(`span`,{className:wn.fileSize,children:En(t.size)}),N&&(0,e.jsx)(w,{variant:`empty`,size:`sm`,"aria-label":`Удалить файл ${t.name}`,onClick:()=>r?.(n.filter((e,t)=>t!==i)),children:(0,e.jsx)(G,{name:`IconCross`,width:16,height:16})})]},Tn(t)))}),N&&(i||n.length===0)&&(0,e.jsx)(w,{className:wn.browseButton,size:`sm`,onClick:()=>C.current?.click(),children:y}),N&&!i&&(0,e.jsx)(w,{className:wn.browseButton,size:`sm`,onClick:()=>C.current?.click(),children:v})]}):(0,e.jsxs)(`div`,{className:wn.empty,children:[(0,e.jsx)(`span`,{className:wn.uploadIcon,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:`IconUpload`,width:24,height:24})}),(0,e.jsx)(`strong`,{children:O?`Отпустите файлы здесь`:_}),!O&&N&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`span`,{children:`или`}),(0,e.jsx)(w,{onClick:()=>C.current?.click(),children:v})]})]})]}),l&&!u&&(0,e.jsx)(D,{id:A,children:l}),u&&(0,e.jsx)(D,{id:j,variant:`error`,live:!0,children:u})]})},kn=typeof window>`u`?t.useEffect:t.useLayoutEffect,An=({anchorRef:n,children:r,matchAnchorWidth:i=!1,offset:a=4,className:o})=>{let[s,c]=(0,t.useState)(null),[l,u]=(0,t.useState)({position:`fixed`,visibility:`hidden`,zIndex:1100}),d=(0,t.useCallback)(()=>{let e=n.current,t=s;if(!e||!t)return;let r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),c=window.innerHeight-r.bottom-8,l=r.top-8,d=(c>=o.height||c>=l?`bottom`:`top`)==`bottom`?r.bottom+a:r.top-o.height-a,f=r.left,p=window.innerWidth-o.width-8,m=Math.max(8,Math.min(f,p)),h={position:`fixed`,top:Math.max(8,Math.min(d,window.innerHeight-o.height-8)),left:m,...i?{width:r.width}:{},zIndex:1100,visibility:`visible`};u(e=>e.top===h.top&&e.left===h.left&&e.width===h.width&&e.visibility===h.visibility?e:h)},[n,i,s,a]);return kn(()=>{if(!s)return;d(),window.addEventListener(`resize`,d),window.addEventListener(`scroll`,d,!0);let e=typeof ResizeObserver>`u`?null:new ResizeObserver(d);return e?.observe(s),n.current&&e?.observe(n.current),()=>{window.removeEventListener(`resize`,d),window.removeEventListener(`scroll`,d,!0),e?.disconnect()}},[n,s,d]),(0,e.jsx)(Tt,{children:(0,e.jsx)(`div`,{ref:c,className:o,style:l,children:r})})},jn={wrapper:`_wrapper_1tid7_1`,control:`_control_1tid7_15`,textarea:`_textarea_1tid7_25`,disabledText:`_disabledText_1tid7_27`,sm:`_sm_1tid7_103`,md:`_md_1tid7_117`,lg:`_lg_1tid7_131`,autoResize:`_autoResize_1tid7_145`,manualResize:`_manualResize_1tid7_155`,textareaError:`_textareaError_1tid7_163`,clearAction:`_clearAction_1tid7_171`,messages:`_messages_1tid7_251`,counter:`_counter_1tid7_265`},Mn=2;function Nn(e){let t=window.getComputedStyle(e),n=Number.parseFloat(t.lineHeight);return Number.isFinite(n)?n:Number.parseFloat(t.fontSize)*1.4}function Pn({value:n,onChange:r,placeholder:i=``,disabled:a=!1,readOnly:o=!1,stringWhileDisabled:s=!1,label:c,error:l,hint:u,className:d=``,name:f,id:p,size:m=`md`,clearable:h=!1,required:g=!1,maxLength:_,showCount:v=!1,minRows:y=Mn,maxRows:b,autoResize:x=!0,...S}){let C=(0,t.useId)(),w=p??`ds-textarea-${f??C}`,T=(0,t.useRef)(null),O=u?`${w}-hint`:void 0,k=l?`${w}-error`:void 0,A=v&&_?`${w}-count`:void 0,j=[O,k,A].filter(Boolean).join(` `)||void 0,M=Math.max(1,y),N=b===void 0?void 0:Math.max(M,b),P=(0,t.useCallback)(()=>{let e=T.current;if(!e||!x)return;let t=window.getComputedStyle(e),n=Nn(e),r=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom)+Number.parseFloat(t.borderTopWidth)+Number.parseFloat(t.borderBottomWidth),i=n*M+r,a=N===void 0?1/0:n*N+r;e.style.height=`auto`;let o=Math.min(Math.max(e.scrollHeight,i),a);e.style.height=`${o}px`,e.style.overflowY=e.scrollHeight>a?`auto`:`hidden`},[x,N,M]);(0,t.useEffect)(()=>{P()},[P,n]),(0,t.useEffect)(()=>{if(!x)return;window.addEventListener(`resize`,P);let e=T.current?.parentElement,t;if(e&&typeof ResizeObserver<`u`){let n=e.getBoundingClientRect().width;t=new ResizeObserver(([e])=>{!e||e.contentRect.width===n||(n=e.contentRect.width,P())}),t.observe(e)}return()=>{window.removeEventListener(`resize`,P),t?.disconnect()}},[x,P]);let F=e=>{r?.(e.target.value,e),P()},I=()=>{let e=T.current;e&&((Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus(),P())},L={"--ds-textarea-min-rows":M};return(0,e.jsxs)(`div`,{className:`${jn.wrapper} ${d}`,children:[c&&(0,e.jsx)(E,{htmlFor:w,required:g,disabled:a,children:c}),a&&s?(0,e.jsx)(`div`,{id:w,className:`${jn.disabledText} ${jn[m]}`,style:L,"aria-describedby":j,children:n||i}):(0,e.jsxs)(`div`,{className:jn.control,children:[(0,e.jsx)(`textarea`,{ref:T,id:w,name:f,value:n,placeholder:i,disabled:a,readOnly:o,required:g,maxLength:_,rows:M,style:L,"aria-invalid":!!l,"aria-describedby":j,className:`${jn.textarea} ${jn[m]} ${x?jn.autoResize:jn.manualResize} ${l?jn.textareaError:``}`,onChange:F,...S}),h&&n&&!a&&!o&&(0,e.jsx)(`button`,{type:`button`,className:jn.clearAction,"aria-label":`Очистить поле`,onClick:I,children:(0,e.jsx)(G,{name:`IconCross`,width:20,height:20})})]}),(u||l||A)&&(0,e.jsxs)(`div`,{className:jn.messages,children:[u&&!l&&(0,e.jsx)(D,{id:O,children:u}),l&&(0,e.jsx)(D,{id:k,variant:`error`,children:l}),A&&(0,e.jsxs)(`span`,{id:A,className:jn.counter,children:[n.length,` / `,_]})]})]})}var Fn=0,In=(0,i.create)((e,t)=>({modals:[],openModal:(t,n={},r={})=>{Fn+=1;let i=`ds-modal-${Fn}`;return e(e=>({modals:[...e.modals,{id:i,name:t,payload:n,title:r.title,description:r.description,closeOnEscape:r.closeOnEscape??!0,closeOnBackdrop:r.closeOnBackdrop??!0,onClose:r.onClose}]})),i},closeModal:n=>{let r=t().modals.find(e=>e.id===n);r&&(e(e=>({modals:e.modals.filter(e=>e.id!==n)})),r.onClose?.())},closeTopModal:()=>{let n=t().modals.at(-1);n&&(e(e=>({modals:e.modals.slice(0,-1)})),n.onClose?.())},closeAllModals:()=>{let n=t().modals;n.length&&(e({modals:[]}),n.forEach(e=>e.onClose?.()))}})),Ln=()=>{In.getState().closeAllModals(),Fn=0},Rn=8,zn=96,Bn=.55;function Vn(e,t,n){return{startX:e,startY:t,startTime:n,intent:`pending`}}function Hn(e,t,n){let r=t-e.startX,i=n-e.startY;return e.intent===`pending`&&Math.max(Math.abs(r),Math.abs(i))>=Rn&&(e.intent=Math.abs(i)>Math.abs(r)?`vertical`:`horizontal`),e.intent===`vertical`?Math.max(0,i):0}function Un(e,t,n){if(e.intent!==`vertical`)return!1;let r=Math.max(0,t-e.startY),i=Math.max(1,n-e.startTime);return r>=zn||r>=32&&r/i>=Bn}var Wn={layer:`_layer_tnds0_1`,backdrop:`_backdrop_tnds0_15`,"backdrop-enter":`_backdrop-enter_tnds0_1`,panel:`_panel_tnds0_47`,"modal-enter":`_modal-enter_tnds0_1`,header:`_header_tnds0_89`,title:`_title_tnds0_107`,description:`_description_tnds0_119`,content:`_content_tnds0_133`,close:`_close_tnds0_141`,dragHandle:`_dragHandle_tnds0_149`,"sheet-enter":`_sheet-enter_tnds0_1`},Gn=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,Kn=(0,t.createContext)({});function qn(e){if(e.key!==`Tab`)return;let t=Array.from(e.currentTarget.querySelectorAll(Gn));if(!t.length){e.preventDefault();return}let n=t[0],r=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())}var Jn=({children:n,title:r,description:i,modalId:a,closeLabel:o=`Закрыть модальное окно`,className:s=``,role:c=`dialog`})=>{let l=(0,t.useContext)(Kn),u=r??l.title,d=i??l.description,f=(0,t.useId)(),p=(0,t.useId)(),m=(0,t.useRef)(null),h=(0,t.useRef)(null),g=(0,t.useRef)(null),[_,v]=(0,t.useState)(0),[y,b]=(0,t.useState)(!1),x=In(e=>e.closeModal),S=l.requestClose??(()=>x(a)),C=u!=null,T=d!=null;(0,t.useEffect)(()=>{let e=document.activeElement,t=m.current;return(t?.querySelector(Gn)??t)?.focus(),()=>e?.focus()},[]);let E=e=>{e&&g.current!==null&&e.hasPointerCapture(g.current)&&e.releasePointerCapture(g.current),h.current=null,g.current=null,b(!1),v(0)};return(0,e.jsxs)(`div`,{ref:m,className:`${Wn.panel} ${s}`,"data-closing":l.closing||void 0,"data-dragging":y||void 0,style:{"--ds-modal-drag-offset":`${_}px`},role:c,"aria-modal":`true`,"aria-labelledby":C?f:void 0,"aria-describedby":T?p:void 0,tabIndex:-1,onKeyDown:qn,children:[(0,e.jsx)(`button`,{type:`button`,className:Wn.dragHandle,"aria-label":`Потяните вниз, чтобы закрыть модальное окно`,onPointerDown:e=>{(e.pointerType!==`mouse`||e.button===0)&&(g.current=e.pointerId,h.current=Vn(e.clientX,e.clientY,e.timeStamp),e.currentTarget.setPointerCapture(e.pointerId))},onPointerMove:e=>{if(e.pointerId!==g.current||!h.current)return;let t=Hn(h.current,e.clientX,e.clientY);h.current.intent===`vertical`&&(e.preventDefault(),b(!0),v(t))},onPointerUp:e=>{if(e.pointerId!==g.current||!h.current)return;let t=Un(h.current,e.clientY,e.timeStamp);E(e.currentTarget),t&&S()},onPointerCancel:e=>E(e.currentTarget),children:(0,e.jsx)(`span`,{})}),(C||o)&&(0,e.jsxs)(`header`,{className:Wn.header,children:[C&&(0,e.jsx)(`h2`,{id:f,className:Wn.title,children:u}),(0,e.jsx)(w,{className:Wn.close,variant:`empty`,size:`sm`,"aria-label":o,onClick:S,children:(0,e.jsx)(G,{name:`IconCross`,width:24,height:24})})]}),T&&(0,e.jsx)(`p`,{id:p,className:Wn.description,children:d}),(0,e.jsx)(`div`,{className:Wn.content,children:n})]})},Yn=({registry:r})=>{let i=In(e=>e.modals),a=In(e=>e.closeModal),[o,s]=(0,t.useState)(()=>new Set),c=(0,t.useRef)(new Map),l=e=>{if(c.current.has(e))return;s(t=>new Set(t).add(e));let t=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;c.current.set(e,window.setTimeout(()=>{c.current.delete(e),a(e),s(t=>{let n=new Set(t);return n.delete(e),n})},t?0:220))};return(0,t.useEffect)(()=>{let e=c.current;return()=>e.forEach(e=>window.clearTimeout(e))},[]),(0,t.useEffect)(()=>{let e=e=>{let t=In.getState().modals.at(-1);e.key===`Escape`&&t?.closeOnEscape&&l(t.id)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)}),(0,t.useEffect)(()=>{i.forEach(e=>{r[e.name]||a(e.id)})},[a,i,r]),!i.length||typeof document>`u`?null:(0,n.createPortal)((0,e.jsx)(`div`,{className:Wn.layer,"aria-label":`Модальные окна`,children:i.map((t,n)=>{let a=r[t.name];if(!a)return null;let s=o.has(t.id);return(0,e.jsx)(`div`,{className:Wn.backdrop,"data-closing":s||void 0,"aria-hidden":n!==i.length-1||void 0,inert:n!==i.length-1||void 0,onMouseDown:e=>{e.target===e.currentTarget&&t.closeOnBackdrop&&l(t.id)},children:(0,e.jsx)(Kn.Provider,{value:{title:t.title??t.payload.title,description:t.description??t.payload.description,closing:s,requestClose:()=>l(t.id)},children:(0,e.jsx)(a,{...t.payload,modalId:t.id,close:()=>l(t.id),closeAll:()=>i.forEach(({id:e})=>l(e))})})},t.id)})}),document.body)},Xn=({registry:n,children:r,lockBodyScroll:i=!0})=>{let a=In(e=>e.modals.length);return(0,t.useEffect)(()=>{if(!i||a===0)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[i,a]),(0,e.jsxs)(e.Fragment,{children:[r,(0,e.jsx)(Yn,{registry:n})]})},Zn=e=>e,Qn={message:`_message_c23ie_1`,actions:`_actions_c23ie_13`},$n=new Map,er=0,tr=({modalId:t,close:n,title:r=`Подтверждение`,message:i=`Продолжить действие?`,confirmLabel:a=`Подтвердить`,cancelLabel:o=`Отмена`,tone:s=`default`,requestId:c})=>{let l=e=>{$n.get(c)?.(e),$n.delete(c),n()};return(0,e.jsxs)(Jn,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:Qn.message,children:i}),(0,e.jsxs)(`div`,{className:Qn.actions,children:[(0,e.jsx)(w,{variant:`outline`,onClick:()=>l(!1),children:o}),(0,e.jsx)(w,{variant:s===`danger`?`destructive`:`primary`,onClick:()=>l(!0),children:a})]})]})},nr=({modalId:t,close:n,title:r=`Ошибка`,message:i,closeLabel:a=`Закрыть`})=>(0,e.jsxs)(Jn,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:Qn.message,children:i}),(0,e.jsx)(`div`,{className:Qn.actions,children:(0,e.jsx)(w,{onClick:n,children:a})})]}),rr=Zn({ConfirmModal:tr,ErrorModal:nr}),ir=()=>{let e=In(e=>e.openModal);return(t={})=>new Promise(n=>{er+=1;let r=`confirm-${er}`;$n.set(r,n),e(`ConfirmModal`,{...t,requestId:r},{closeOnEscape:!1,onClose:()=>{$n.get(r)?.(!1),$n.delete(r)}})})},ar=e=>e instanceof Error?e.message:typeof e==`string`?e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`?e.message:`Произошла неизвестная ошибка`,or=()=>{let e=In(e=>e.openModal);return{showError:(t,n)=>e(`ErrorModal`,{title:n,message:ar(t)})}},sr=(0,i.create)(()=>({})),cr=(0,i.create)(()=>({})),lr=()=>{let e=In(e=>e.modals),n=In(e=>e.openModal),r=In(e=>e.closeModal),i=In(e=>e.closeTopModal),a=In(e=>e.closeAllModals),o=(0,t.useCallback)((e,t={},r)=>n(e,t,r),[n]),s=(0,t.useCallback)(t=>e.some(e=>e.name===t),[e]);return(0,t.useMemo)(()=>({openModal:o,closeModal:r,closeTopModal:i,closeAllModals:a,isOpen:s,count:e.length}),[a,r,i,s,e.length,o])},ur={layer:`_layer_npyhl_1`,backdrop:`_backdrop_npyhl_21`,panel:`_panel_npyhl_47`,right:`_right_npyhl_95`,left:`_left_npyhl_117`,bottom:`_bottom_npyhl_139`,fullscreen:`_fullscreen_npyhl_161`,sm:`_sm_npyhl_181`,md:`_md_npyhl_189`,lg:`_lg_npyhl_197`,xl:`_xl_npyhl_205`,header:`_header_npyhl_213`,heading:`_heading_npyhl_231`,headerActions:`_headerActions_npyhl_271`,content:`_content_npyhl_283`,footer:`_footer_npyhl_295`,"enter-backdrop":`_enter-backdrop_npyhl_1`,"enter-right":`_enter-right_npyhl_1`,"enter-left":`_enter-left_npyhl_1`,"enter-bottom":`_enter-bottom_npyhl_1`,"enter-fullscreen":`_enter-fullscreen_npyhl_1`},dr=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,fr=(0,t.createContext)(null),pr=200,mr=e=>{if(e.key!==`Tab`)return;let t=Array.from(e.currentTarget.querySelectorAll(dr));if(!t.length){e.preventDefault();return}let n=t[0],r=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())},hr=()=>(0,t.useContext)(fr),gr=({open:r,onCloseRequest:i,children:a,title:o,description:s,headerActions:c,footer:l,placement:u=`right`,size:d=`md`,closeOnEscape:f=!0,closeOnBackdrop:p=!0,preventClose:m=!1,closeLabel:h=`Закрыть`,initialFocusRef:g,returnFocusRef:_,className:v=``})=>{let y=(0,t.useRef)(null),b=(0,t.useRef)(null),x=(0,t.useRef)(i),S=(0,t.useRef)(f),C=(0,t.useRef)(m),T=(0,t.useRef)(r),[E,D]=(0,t.useState)(r),[O,k]=(0,t.useState)(!1),A=(0,t.useId)(),j=(0,t.useId)();x.current=i,S.current=f,C.current=m,T.current=r;let M=e=>{T.current&&!C.current&&x.current(e)};return(0,t.useEffect)(()=>{if(b.current!==null&&(window.clearTimeout(b.current),b.current=null),r){D(!0),k(!1);return}if(!E)return;let e=()=>{b.current=null,D(!1),k(!1)},t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;if(k(!0),t){e();return}return b.current=window.setTimeout(e,pr),()=>{b.current!==null&&(window.clearTimeout(b.current),b.current=null)}},[r,E]),(0,t.useEffect)(()=>{if(!E||typeof document>`u`)return;let e=document.activeElement,t=_?.current,n=document.body.style.overflow;document.body.style.overflow=`hidden`;let r=y.current;(g?.current??r?.querySelector(dr)??r)?.focus();let i=e=>{e.key===`Escape`&&T.current&&S.current&&!C.current&&x.current(`escape`)};return document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`keydown`,i),document.body.style.overflow=n,(t??e)?.focus()}},[g,E,_]),!E||typeof document>`u`?null:(0,n.createPortal)((0,e.jsx)(`div`,{className:ur.layer,"data-closing":O||void 0,children:(0,e.jsx)(`div`,{className:ur.backdrop,"data-closing":O||void 0,onMouseDown:e=>{e.target===e.currentTarget&&p&&M(`backdrop`)},children:(0,e.jsx)(fr.Provider,{value:{requestClose:M},children:(0,e.jsxs)(`section`,{ref:y,className:`${ur.panel} ${ur[u]} ${ur[d]} ${v}`,"data-closing":O||void 0,role:`dialog`,"aria-modal":`true`,"aria-labelledby":o?A:void 0,"aria-describedby":s?j:void 0,tabIndex:-1,onKeyDown:mr,children:[(0,e.jsxs)(`header`,{className:ur.header,children:[(0,e.jsxs)(`div`,{className:ur.heading,children:[o&&(0,e.jsx)(`h2`,{id:A,children:o}),s&&(0,e.jsx)(`p`,{id:j,children:s})]}),c&&(0,e.jsx)(`div`,{className:ur.headerActions,children:c}),(0,e.jsx)(w,{variant:`empty`,size:`sm`,"aria-label":h,disabled:m,onClick:()=>M(`close-button`),children:(0,e.jsx)(G,{name:`IconCross`,width:20,height:20})})]}),(0,e.jsx)(`div`,{className:ur.content,children:a}),l&&(0,e.jsx)(`footer`,{className:ur.footer,children:l})]})})})}),document.body)},_r=({placement:t=`right`,...n})=>(0,e.jsx)(gr,{...n,placement:t}),vr=t=>(0,e.jsx)(gr,{...t,placement:`bottom`}),yr=t=>(0,e.jsx)(gr,{...t,placement:`fullscreen`,size:`xl`}),br={wrapper:`_wrapper_hpk6i_1`,container:`_container_hpk6i_15`,inner:`_inner_hpk6i_35`,cube:`_cube_hpk6i_53`,jump:`_jump_hpk6i_1`,cube__inner:`_cube__inner_hpk6i_67`,morph:`_morph_hpk6i_1`,primary:`_primary_hpk6i_121`,secondary:`_secondary_hpk6i_129`,outline:`_outline_hpk6i_137`,ghost:`_ghost_hpk6i_145`,empty:`_empty_hpk6i_153`,destructive:`_destructive_hpk6i_161`,destructiveOutline:`_destructiveOutline_hpk6i_169`},xr=({variant:t=`primary`})=>(0,e.jsx)(`div`,{className:br.wrapper,children:(0,e.jsx)(`div`,{className:br.container,children:(0,e.jsxs)(`div`,{className:br.inner,children:[(0,e.jsx)(`div`,{className:br.cube,children:(0,e.jsx)(`div`,{className:`${br.cube__inner} ${br[t]}`})}),(0,e.jsx)(`div`,{className:br.cube,children:(0,e.jsx)(`div`,{className:`${br.cube__inner} ${br[t]}`})}),(0,e.jsx)(`div`,{className:br.cube,children:(0,e.jsx)(`div`,{className:`${br.cube__inner} ${br[t]}`})})]})})}),Sr={viewport:`_viewport_22b73_1`,"top-right":`_top-right_22b73_21`,"top-left":`_top-left_22b73_31`,"bottom-right":`_bottom-right_22b73_41`,"bottom-left":`_bottom-left_22b73_51`,toast:`_toast_22b73_61`,"toast-enter":`_toast-enter_22b73_1`,body:`_body_22b73_97`,icon:`_icon_22b73_117`,title:`_title_22b73_129`,message:`_message_22b73_141`,info:`_info_22b73_187`,success:`_success_22b73_195`,warning:`_warning_22b73_203`,error:`_error_22b73_211`},Cr={info:`IconInfoCircle`,success:`IconSuccessCircle`,warning:`IconWarning`,error:`IconWarning`},wr=({toast:n,onClose:r})=>{let[i,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)(()=>typeof document<`u`&&document.hidden),c=(0,t.useRef)(n.duration),l=(0,t.useRef)(Date.now());return(0,t.useEffect)(()=>{if(i||o||n.duration<=0)return;l.current=Date.now();let e=setTimeout(()=>r(n.id),c.current);return()=>{clearTimeout(e),c.current=Math.max(0,c.current-(Date.now()-l.current))}},[o,r,i,n.duration,n.id]),(0,t.useEffect)(()=>{if(typeof document>`u`)return;let e=()=>s(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),(0,e.jsxs)(`article`,{className:`${Sr.toast} ${Sr[n.variant]}`,role:n.variant===`error`?`alert`:`status`,"aria-live":n.variant===`error`?`assertive`:`polite`,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>a(!0),onBlur:()=>a(!1),children:[(0,e.jsx)(`div`,{className:Sr.icon,"aria-hidden":`true`,children:(0,e.jsx)(G,{name:Cr[n.variant],color:`var(--ds-toast-accent)`,width:20,height:20})}),(0,e.jsxs)(`div`,{className:Sr.body,children:[n.title&&(0,e.jsx)(`strong`,{className:Sr.title,children:n.title}),(0,e.jsx)(`div`,{className:Sr.message,children:n.message}),n.action&&(0,e.jsx)(w,{variant:`empty`,size:`sm`,onClick:()=>{n.action?.onClick(),(n.action?.dismissOnClick??!0)&&r(n.id)},children:n.action.label})]}),n.closable&&(0,e.jsx)(w,{variant:`empty`,size:`sm`,"aria-label":`Закрыть уведомление`,onClick:()=>r(n.id),children:(0,e.jsx)(G,{name:`IconCross`,width:20,height:20})})]})},Tr=0,Er=(0,i.create)((e,t)=>({toasts:[],showToast:n=>{if(n.dedupeKey){let e=t().toasts.find(e=>e.dedupeKey===n.dedupeKey);if(e)return e.id}Tr+=1;let r=`ds-toast-${Tr}`;return e(e=>({toasts:[...e.toasts,{variant:`info`,duration:5e3,closable:!0,...n,id:r}]})),r},removeToast:t=>e(e=>({toasts:e.toasts.filter(e=>e.id!==t)})),clearToasts:()=>e({toasts:[]})})),Dr=()=>Er.setState({toasts:[]}),Or=({position:t=`top-right`,maxVisible:n})=>{let r=Er(e=>e.toasts),i=Er(e=>e.removeToast),a=n===void 0?r:r.slice(0,Math.max(0,Math.floor(n)));return(0,e.jsx)(`div`,{className:`${Sr.viewport} ${Sr[t]}`,"aria-label":`Уведомления`,children:a.map(t=>(0,e.jsx)(wr,{toast:t,onClose:i},t.id))})},kr=()=>{let e=Er(e=>e.showToast),n=Er(e=>e.removeToast),r=Er(e=>e.clearToasts),i=(0,t.useCallback)(t=>e({...t,variant:`info`}),[e]),a=(0,t.useCallback)(t=>e({...t,variant:`success`}),[e]),o=(0,t.useCallback)(t=>e({...t,variant:`warning`}),[e]),s=(0,t.useCallback)(t=>e({...t,variant:`error`}),[e]);return(0,t.useMemo)(()=>({showToast:e,infoToast:i,successToast:a,warningToast:o,errorToast:s,removeToast:n,clearToasts:r}),[r,s,i,n,e,a,o])},Ar={root:`_root_bs28m_1`,tabList:`_tabList_bs28m_11`,tab:`_tab_bs28m_11`,panels:`_panels_bs28m_127`,panel:`_panel_bs28m_127`},jr=({items:n,value:r,onChange:i,ariaLabel:a=`Вкладки`,disabled:o=!1,loading:s=!1,className:c=``})=>{let l=`ds-tabs-${(0,t.useId)().replace(/:/g,``)}`,u=(0,t.useRef)([]),d=o||s,f=n.findIndex(e=>e.id===r),p=n.findIndex(e=>!e.disabled),m=f>=0&&!n[f]?.disabled?f:p,h=e=>{let t=n[e];!t||t.disabled||d||(i(t.id),u.current[e]?.focus(),u.current[e]?.scrollIntoView({block:`nearest`,inline:`nearest`}))},g=(e,t)=>{if(d)return;let r=n.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0);if(r.length===0)return;let i=r.indexOf(t),a;switch(e.key){case`ArrowRight`:a=r[(i+1)%r.length];break;case`ArrowLeft`:a=r[(i-1+r.length)%r.length];break;case`Home`:a=r[0];break;case`End`:a=r[r.length-1];break;default:return}e.preventDefault(),h(a)};return(0,e.jsxs)(`div`,{className:`${Ar.root} ${c}`,"aria-busy":s||void 0,children:[(0,e.jsx)(`div`,{className:Ar.tabList,role:`tablist`,"aria-label":a,"aria-orientation":`horizontal`,"aria-disabled":d||void 0,children:n.map((t,n)=>{let i=t.id===r,a=`${l}-tab-${n}`,o=`${l}-panel-${n}`;return(0,e.jsx)(`button`,{ref:e=>{u.current[n]=e},id:a,className:Ar.tab,type:`button`,role:`tab`,"aria-selected":i,"aria-controls":o,disabled:d||t.disabled,tabIndex:n===m?0:-1,onClick:()=>h(n),onKeyDown:e=>g(e,n),children:t.label},t.id)})}),(0,e.jsx)(`div`,{className:Ar.panels,children:n.map((t,n)=>{let i=t.id===r;return(0,e.jsx)(`div`,{id:`${l}-panel-${n}`,className:Ar.panel,role:`tabpanel`,"aria-labelledby":`${l}-tab-${n}`,tabIndex:0,hidden:!i,children:t.content},t.id)})})]})},Mr=e=>{if(!Number.isFinite(e)||e<0)return`00:00`;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=`${String(r).padStart(2,`0`)}:${String(i).padStart(2,`0`)}`;return n?`${n}:${a}`:a},Q={root:`_root_m0ykf_1`,frame:`_frame_m0ykf_35`,video:`_video_m0ykf_65`,overlay:`_overlay_m0ykf_81`,state:`_state_m0ykf_83`,buffering:`_buffering_m0ykf_85`,loaderViewport:`_loaderViewport_m0ykf_145`,loaderScale:`_loaderScale_m0ykf_157`,stateIcon:`_stateIcon_m0ykf_171`,empty:`_empty_m0ykf_203`,error:`_error_m0ykf_213`,replay:`_replay_m0ykf_225`,controlsLayer:`_controlsLayer_m0ykf_261`,controlsVisible:`_controlsVisible_m0ykf_287`,controls:`_controls_m0ykf_261`,controlGroup:`_controlGroup_m0ykf_311`,controlButton:`_controlButton_m0ykf_337`,settingsAction:`_settingsAction_m0ykf_369`,timeline:`_timeline_m0ykf_401`,volume:`_volume_m0ykf_403`,settings:`_settings_m0ykf_369`,playButton:`_playButton_m0ykf_417`,volumeGroup:`_volumeGroup_m0ykf_431`,timelineGroup:`_timelineGroup_m0ykf_455`,time:`_time_m0ykf_401`,settingsActionLabel:`_settingsActionLabel_m0ykf_693`,caption:`_caption_m0ykf_705`,fullscreen:`_fullscreen_m0ykf_719`},Nr=2500,Pr=5,Fr=.05,Ir=[.5,.75,1,1.25,1.5,2],Lr=({sources:n,tracks:r=[],title:i,aspectRatio:a=`16 / 9`,objectFit:o=`contain`,loading:s=!1,error:c,fallback:l,className:u=``,controls:d=!0,playsInline:f=!0,...p})=>{let m=(0,t.useRef)(null),h=(0,t.useRef)(null),g=(0,t.useRef)(null),_=(0,t.useRef)(void 0),[v,y]=(0,t.useState)(!1),[b,x]=(0,t.useState)(n.length>0),[C,T]=(0,t.useState)(!1),[E,D]=(0,t.useState)(!1),[O,k]=(0,t.useState)(!1),[A,j]=(0,t.useState)(0),[M,N]=(0,t.useState)(0),[P,F]=(0,t.useState)(0),[I,L]=(0,t.useState)(1),[R,ee]=(0,t.useState)(!!p.muted),[te,z]=(0,t.useState)(1),[ne,re]=(0,t.useState)(!!p.loop),[ie,ae]=(0,t.useState)(-1),[B,oe]=(0,t.useState)(!1),[se,ce]=(0,t.useState)(!0),[le,ue]=(0,t.useState)(!1),[V,de]=(0,t.useState)(!1),fe=n.map(({src:e,type:t})=>`${e}:${t??``}`).join(`|`),pe=r.map((e,t)=>({track:e,index:t})).filter(({track:e})=>e.kind===`captions`||e.kind===`subtitles`),me=c??(v?`Не удалось воспроизвести видео`:void 0),H=s||b&&!me&&n.length>0,he=!H&&!me&&n.length===0,ge=typeof document<`u`&&`pictureInPictureEnabled`in document&&document.pictureInPictureEnabled,_e=(0,t.useCallback)(()=>{ce(!0),window.clearTimeout(_.current),E&&!B&&(_.current=window.setTimeout(()=>ce(!1),Nr))},[E,B]);(0,t.useEffect)(()=>{y(!1),x(n.length>0),T(!1),D(!1),k(!1),j(0),N(0),F(0)},[fe,n.length]),(0,t.useEffect)(()=>(_e(),()=>window.clearTimeout(_.current)),[_e]),(0,t.useEffect)(()=>{let e=()=>ue(document.fullscreenElement===h.current),t=()=>de(document.pictureInPictureElement===g.current);return document.addEventListener(`fullscreenchange`,e),document.addEventListener(`enterpictureinpicture`,t),document.addEventListener(`leavepictureinpicture`,t),()=>{document.removeEventListener(`fullscreenchange`,e),document.removeEventListener(`enterpictureinpicture`,t),document.removeEventListener(`leavepictureinpicture`,t)}},[]),(0,t.useEffect)(()=>{if(!B)return;let e=e=>{m.current?.contains(e.target)||oe(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[B]);let ve=async()=>{let e=g.current;if(!(!e||me||H)){if(e.paused||e.ended){e.ended&&(e.currentTime=0);try{await e.play()}catch{y(!0)}}else e.pause()}},ye=()=>{let e=g.current;e&&(e.muted=!e.muted)},be=e=>{let t=g.current;t&&(t.volume=Math.min(1,Math.max(0,e)),t.muted=t.volume===0)},xe=e=>{let t=g.current;!t||!M||(t.currentTime=Math.min(M,Math.max(0,e)),j(t.currentTime))},Se=async()=>{if(h.current)try{document.fullscreenElement?await document.exitFullscreen():await h.current.requestFullscreen()}catch{ue(!1)}},Ce=async()=>{let e=g.current;if(!(!e||!ge))try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch{de(!1)}},we=e=>{let t=g.current;t&&(Array.from(t.textTracks).forEach((t,n)=>{t.mode=n===e?`showing`:`disabled`}),ae(e))},Te=e=>{let t=e.target;if(/^(INPUT|SELECT|BUTTON)$/.test(t.tagName))return;let n=e.key.toLowerCase();n===` `||n===`k`?(e.preventDefault(),ve()):n===`m`?(e.preventDefault(),ye()):n===`f`?(e.preventDefault(),Se()):n===`c`&&pe.length?(e.preventDefault(),we(ie===-1?pe[0].index:-1)):e.key===`ArrowLeft`||e.key===`ArrowRight`?(e.preventDefault(),xe(A+(e.key===`ArrowRight`?Pr:-5))):e.key===`ArrowUp`||e.key===`ArrowDown`?(e.preventDefault(),be(I+(e.key===`ArrowUp`?Fr:-.05))):e.key===`Escape`&&oe(!1),_e()},Ee=()=>{let e=g.current;y(!1),x(!0),e?.load()},De={"--video-progress":`${M?A/M*100:0}%`,"--video-buffered":`${P*100}%`};return(0,e.jsxs)(`figure`,{ref:m,className:`${Q.root} ${u}`,onKeyDown:Te,children:[(0,e.jsxs)(`div`,{ref:h,className:`${Q.frame} ${le?Q.fullscreen:``}`,style:{aspectRatio:a},"aria-busy":H||void 0,tabIndex:d&&n.length?0:void 0,onPointerMove:_e,onPointerDown:_e,onFocusCapture:_e,onMouseLeave:()=>{E&&!B&&ce(!1)},children:[n.length>0&&(0,e.jsxs)(`video`,{...p,ref:g,"aria-label":i,controls:!1,playsInline:f,loop:ne,className:Q.video,style:{objectFit:o},onClick:e=>{p.onClick?.(e),ve()},onDoubleClick:e=>{p.onDoubleClick?.(e),Se()},onLoadStart:e=>{x(!0),p.onLoadStart?.(e)},onLoadedMetadata:e=>{N(e.currentTarget.duration||0);let t=pe.find(({track:e})=>e.default);we(t?.index??-1),p.onLoadedMetadata?.(e)},onDurationChange:e=>{N(e.currentTarget.duration||0),p.onDurationChange?.(e)},onTimeUpdate:e=>{j(e.currentTarget.currentTime),p.onTimeUpdate?.(e)},onProgress:e=>{let t=e.currentTarget;t.duration&&t.buffered.length&&F(t.buffered.end(t.buffered.length-1)/t.duration),p.onProgress?.(e)},onLoadedData:e=>{x(!1),T(!1),p.onLoadedData?.(e)},onCanPlay:e=>{x(!1),T(!1),p.onCanPlay?.(e)},onWaiting:e=>{T(!0),p.onWaiting?.(e)},onPlaying:e=>{D(!0),k(!1),T(!1),p.onPlaying?.(e)},onPlay:e=>{D(!0),p.onPlay?.(e)},onPause:e=>{D(!1),p.onPause?.(e)},onEnded:e=>{D(!1),k(!0),ce(!0),p.onEnded?.(e)},onVolumeChange:e=>{L(e.currentTarget.volume),ee(e.currentTarget.muted),p.onVolumeChange?.(e)},onRateChange:e=>{z(e.currentTarget.playbackRate),p.onRateChange?.(e)},onError:e=>{x(!1),T(!1),y(!0),p.onError?.(e)},children:[n.map(t=>(0,e.jsx)(`source`,{...t},`${t.src}-${t.type}`)),r.map(t=>(0,e.jsx)(`track`,{...t},`${t.src}-${t.srcLang}`))]}),H&&(0,e.jsxs)(`div`,{className:Q.overlay,role:`status`,"aria-live":`polite`,children:[(0,e.jsx)(`div`,{className:Q.loaderViewport,"aria-hidden":`true`,children:(0,e.jsx)(`div`,{className:Q.loaderScale,children:(0,e.jsx)(xr,{})})}),(0,e.jsx)(`span`,{children:`Загрузка видео`})]}),!H&&C&&!me&&(0,e.jsx)(`div`,{className:Q.buffering,role:`status`,"aria-label":`Буферизация видео`,children:(0,e.jsx)(S,{variant:`primary`})}),he&&(0,e.jsxs)(`div`,{className:`${Q.state} ${Q.empty}`,role:`status`,children:[(0,e.jsx)(G,{name:`IconInfoCircle`,className:Q.stateIcon,width:40,height:40}),(0,e.jsx)(`strong`,{children:`Видео отсутствует`}),l??(0,e.jsx)(`span`,{children:`Источник видео не указан`})]}),!H&&me&&(0,e.jsxs)(`div`,{className:`${Q.state} ${Q.error}`,role:`alert`,children:[(0,e.jsx)(G,{name:`IconWarning`,className:Q.stateIcon,width:40,height:40}),l??(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`strong`,{children:`Видео недоступно`}),(0,e.jsx)(`span`,{children:me})]}),n.length>0&&(0,e.jsx)(w,{size:`sm`,variant:`secondary`,onClick:Ee,children:`Повторить`})]}),!H&&!me&&O&&(0,e.jsx)(`button`,{type:`button`,className:Q.replay,"aria-label":`Воспроизвести заново`,onClick:()=>void ve(),children:(0,e.jsx)(G,{name:`IconReplay`,width:28,height:28})}),d&&n.length>0&&!H&&!me&&(0,e.jsxs)(`div`,{className:`${Q.controlsLayer} ${se||!E?Q.controlsVisible:``}`,onClick:e=>e.stopPropagation(),children:[B&&(0,e.jsxs)(`div`,{className:Q.settings,role:`dialog`,"aria-label":`Настройки видео`,children:[(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Скорость`}),(0,e.jsx)(`select`,{value:te,onChange:e=>{let t=Number(e.target.value);g.current&&(g.current.playbackRate=t)},children:Ir.map(t=>(0,e.jsxs)(`option`,{value:t,children:[t,`×`]},t))})]}),pe.length>0&&(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Субтитры`}),(0,e.jsxs)(`select`,{value:ie,onChange:e=>we(Number(e.target.value)),children:[(0,e.jsx)(`option`,{value:-1,children:`Выключены`}),pe.map(({track:t,index:n})=>(0,e.jsx)(`option`,{value:n,children:t.label},`${t.srcLang}-${t.label}`))]})]}),(0,e.jsxs)(`button`,{type:`button`,className:Q.settingsAction,"aria-pressed":ne,onClick:()=>re(e=>!e),children:[(0,e.jsx)(`span`,{children:`Повтор`}),(0,e.jsx)(`span`,{children:ne?`Вкл.`:`Выкл.`})]}),ge&&(0,e.jsx)(`button`,{type:`button`,className:Q.settingsAction,"aria-pressed":V,onClick:()=>void Ce(),children:(0,e.jsxs)(`span`,{className:Q.settingsActionLabel,children:[(0,e.jsx)(G,{name:`IconPictureInPicture`,width:18,height:18}),`Картинка в картинке`]})})]}),(0,e.jsxs)(`div`,{className:Q.controls,children:[(0,e.jsx)(`div`,{className:Q.controlGroup,children:(0,e.jsx)(`button`,{type:`button`,className:`${Q.controlButton} ${Q.playButton}`,"aria-label":E?`Пауза`:`Воспроизвести`,title:E?`Пауза (K)`:`Воспроизвести (K)`,onClick:()=>void ve(),children:(0,e.jsx)(G,{name:E?`IconPause`:`IconPlay`,width:24,height:24})})}),(0,e.jsxs)(`div`,{className:`${Q.controlGroup} ${Q.volumeGroup}`,children:[(0,e.jsx)(`button`,{type:`button`,className:Q.controlButton,"aria-label":R?`Включить звук`:`Выключить звук`,"aria-pressed":R,title:`Звук (M)`,onClick:ye,children:(0,e.jsx)(G,{name:R||I===0?`IconVolumeMuted`:`IconVolume`,width:22,height:22})}),(0,e.jsx)(`input`,{className:Q.volume,type:`range`,min:0,max:1,step:.05,value:R?0:I,"aria-label":`Громкость`,"aria-valuetext":`${Math.round((R?0:I)*100)}%`,onChange:e=>be(Number(e.target.value))})]}),(0,e.jsxs)(`div`,{className:`${Q.controlGroup} ${Q.timelineGroup}`,children:[(0,e.jsx)(`span`,{className:Q.time,children:Mr(A)}),(0,e.jsx)(`input`,{className:Q.timeline,style:De,type:`range`,min:0,max:M||0,step:.01,value:Math.min(A,M||0),"aria-label":`Позиция воспроизведения`,"aria-valuetext":`${Mr(A)} из ${Mr(M)}`,onChange:e=>xe(Number(e.target.value))}),(0,e.jsx)(`span`,{className:Q.time,children:Mr(M)})]}),(0,e.jsxs)(`div`,{className:Q.controlGroup,children:[(0,e.jsx)(`button`,{type:`button`,className:Q.controlButton,"aria-label":`Настройки`,"aria-expanded":B,title:`Настройки`,onClick:()=>oe(e=>!e),children:(0,e.jsx)(G,{name:`IconSettings`,width:22,height:22})}),(0,e.jsx)(`button`,{type:`button`,className:Q.controlButton,"aria-label":le?`Выйти из полноэкранного режима`:`Полноэкранный режим`,title:`Полноэкранный режим (F)`,onClick:()=>void Se(),children:(0,e.jsx)(G,{name:le?`IconFullscreenExit`:`IconFullscreen`,width:22,height:22})})]})]})]})]}),(0,e.jsx)(`figcaption`,{className:Q.caption,children:i})]})},$={root:`_root_14ewt_1`,topSlot:`_topSlot_14ewt_29`,searchSlot:`_searchSlot_14ewt_31`,bottomSlot:`_bottomSlot_14ewt_33`,groups:`_groups_14ewt_59`,group:`_group_14ewt_59`,groupLabel:`_groupLabel_14ewt_85`,list:`_list_14ewt_107`,item:`_item_14ewt_123`,link:`_link_14ewt_131`,current:`_current_14ewt_183`,icon:`_icon_14ewt_205`,copy:`_copy_14ewt_219`,label:`_label_14ewt_233`,description:`_description_14ewt_235`,badge:`_badge_14ewt_269`,empty:`_empty_14ewt_281`},Rr=(e,t,n)=>{if(e.length===0)return-1;for(let r=1;r<=e.length;r+=1){let i=(t+n*r+e.length)%e.length;if(!e[i]?.disabled)return i}return-1},zr=({groups:n,currentItemId:r,ariaLabel:i=`Основная навигация`,searchSlot:a,topSlot:o,bottomSlot:s,emptyState:c,renderLink:l,onItemSelect:u,className:d=``})=>{let f=(0,t.useId)(),p=(0,t.useRef)(null),m=(0,t.useRef)({value:``,time:0}),h=n.flatMap(e=>e.items),g=h.filter(e=>!e.disabled),_=g.some(e=>e.id===r)?r:g[0]?.id,v=e=>{if(!e)return;let t=p.current?.querySelectorAll(`[data-ds-navigation-item]`),n=h.findIndex(t=>t.id===e.id);t?.[n]?.focus()},y=(e,t)=>{let n=h.findIndex(e=>e.id===t.id);if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=Rr(h,n,e.key===`ArrowDown`?1:-1);v(h[t]);return}if(e.key===`Home`||e.key===`End`){e.preventDefault(),v(e.key===`Home`?g[0]:g.at(-1));return}if(e.key.length!==1||e.altKey||e.ctrlKey||e.metaKey)return;let r=Date.now(),i=m.current,a=`${r-i.time>700?``:i.value}${e.key}`.toLocaleLowerCase();m.current={value:a,time:r};let o=[...h.slice(n+1),...h.slice(0,n+1)];v(o.find(e=>!e.disabled&&e.label.toLocaleLowerCase().startsWith(a)))},b=t=>{let n=t.id===r,i={children:(0,e.jsxs)(e.Fragment,{children:[t.icon&&(0,e.jsx)(`span`,{className:$.icon,"aria-hidden":`true`,children:t.icon}),(0,e.jsxs)(`span`,{className:$.copy,children:[(0,e.jsx)(`span`,{className:$.label,children:t.label}),t.description&&(0,e.jsx)(`span`,{className:$.description,children:t.description})]}),t.badge&&(0,e.jsx)(`span`,{className:$.badge,children:t.badge})]}),className:`${$.link} ${n?$.current:``}`,tabIndex:t.id===_?0:-1,"aria-current":n?`page`:void 0,"aria-disabled":t.disabled?!0:void 0,"data-ds-navigation-item":t.id,onClick:e=>{if(t.disabled){e.preventDefault();return}u?.(t)},onFocus:()=>void 0,onKeyDown:e=>y(e,t)};return(0,e.jsx)(`li`,{className:$.item,children:l?l(t,i):t.href?(0,e.jsx)(`a`,{href:t.href,...i,children:i.children}):(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,...i,children:i.children})},t.id)};return(0,e.jsxs)(`nav`,{ref:p,className:`${$.root} ${d}`,"aria-label":i,children:[o&&(0,e.jsx)(`div`,{className:$.topSlot,children:o}),a&&(0,e.jsx)(`div`,{className:$.searchSlot,children:a}),(0,e.jsxs)(`div`,{className:$.groups,children:[n.map(t=>{let n=`${f}-${t.id}`;return(0,e.jsxs)(`section`,{className:$.group,"aria-labelledby":t.label?n:void 0,children:[t.label&&(0,e.jsx)(`div`,{id:n,className:$.groupLabel,children:t.label}),(0,e.jsx)(`ul`,{className:$.list,children:t.items.map(b)})]},t.id)}),h.length===0&&c&&(0,e.jsx)(`div`,{className:$.empty,children:c})]}),s&&(0,e.jsx)(`div`,{className:$.bottomSlot,children:s})]})},Br={root:`_root_2mdgb_1`,list:`_list_2mdgb_19`,item:`_item_2mdgb_37`,link:`_link_2mdgb_45`,current:`_current_2mdgb_103`,visual:`_visual_2mdgb_125`,icon:`_icon_2mdgb_141`,badge:`_badge_2mdgb_149`,label:`_label_2mdgb_163`},Vr=({items:n,currentItemId:r,ariaLabel:i=`Мобильная навигация`,renderLink:a,onItemSelect:o,className:s=``})=>{let c=(0,t.useRef)(null),l=n.filter(e=>!e.disabled),u=l.some(e=>e.id===r)?r:l[0]?.id,d=e=>{c.current?.querySelectorAll(`[data-ds-navigation-item]`)[e]?.focus()},f=(e,t)=>{let r=n.findIndex(e=>e.id===t.id),i=r;if(e.key===`Home`)i=0;else if(e.key===`End`)i=n.length-1;else if(e.key===`ArrowRight`)i=(r+1)%n.length;else if(e.key===`ArrowLeft`)i=(r-1+n.length)%n.length;else return;e.preventDefault();let a=e.key===`ArrowLeft`||e.key===`End`?-1:1;for(;n[i]?.disabled&&i!==r;)i=(i+a+n.length)%n.length;d(i)};return(0,e.jsx)(`nav`,{ref:c,className:`${Br.root} ${s}`,"aria-label":i,children:(0,e.jsx)(`ul`,{className:Br.list,children:n.map(t=>{let n=t.id===r,i={children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`span`,{className:Br.visual,children:[t.icon&&(0,e.jsx)(`span`,{className:Br.icon,"aria-hidden":`true`,children:t.icon}),t.badge&&(0,e.jsx)(`span`,{className:Br.badge,children:t.badge})]}),(0,e.jsx)(`span`,{className:Br.label,children:t.label})]}),className:`${Br.link} ${n?Br.current:``}`,tabIndex:t.id===u?0:-1,"aria-current":n?`page`:void 0,"aria-disabled":t.disabled?!0:void 0,"data-ds-navigation-item":t.id,onClick:e=>{if(t.disabled){e.preventDefault();return}o?.(t)},onFocus:()=>void 0,onKeyDown:e=>f(e,t)};return(0,e.jsx)(`li`,{className:Br.item,children:a?a(t,i):t.href?(0,e.jsx)(`a`,{href:t.href,...i,children:i.children}):(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,...i,children:i.children})},t.id)})})})},Hr={logo:`_logo_1kw5e_17`,edgeStart:`_edgeStart_1kw5e_33`,edgeMiddle:`_edgeMiddle_1kw5e_41`,edgeEnd:`_edgeEnd_1kw5e_49`,paneStart:`_paneStart_1kw5e_57`,paneMiddle:`_paneMiddle_1kw5e_67`,paneEnd:`_paneEnd_1kw5e_77`,sheenStart:`_sheenStart_1kw5e_87`,sheenMiddle:`_sheenMiddle_1kw5e_97`,sheenEnd:`_sheenEnd_1kw5e_107`,rim:`_rim_1kw5e_117`,wordmark:`_wordmark_1kw5e_127`,edge:`_edge_1kw5e_33`,pane:`_pane_1kw5e_57`},Ur={sm:24,md:40,lg:56},Wr={icon:`0 0 128 224`,wordmark:`0 0 600 160`,lockup:`0 0 675 200`},Gr={icon:128/224,wordmark:600/160,lockup:675/200},Kr=({id:t,transform:n})=>(0,e.jsxs)(`g`,{transform:n,children:[(0,e.jsxs)(`defs`,{children:[(0,e.jsxs)(`linearGradient`,{id:`${t}-edge`,x1:`12`,y1:`8`,x2:`29`,y2:`216`,gradientUnits:`userSpaceOnUse`,children:[(0,e.jsx)(`stop`,{className:Hr.edgeStart}),(0,e.jsx)(`stop`,{offset:`0.52`,className:Hr.edgeMiddle}),(0,e.jsx)(`stop`,{offset:`1`,className:Hr.edgeEnd})]}),(0,e.jsxs)(`linearGradient`,{id:`${t}-pane`,x1:`29`,y1:`20`,x2:`116`,y2:`199`,gradientUnits:`userSpaceOnUse`,children:[(0,e.jsx)(`stop`,{className:Hr.paneStart}),(0,e.jsx)(`stop`,{offset:`0.52`,className:Hr.paneMiddle}),(0,e.jsx)(`stop`,{offset:`1`,className:Hr.paneEnd})]}),(0,e.jsxs)(`linearGradient`,{id:`${t}-sheen`,x1:`30`,y1:`14`,x2:`110`,y2:`176`,gradientUnits:`userSpaceOnUse`,children:[(0,e.jsx)(`stop`,{className:Hr.sheenStart}),(0,e.jsx)(`stop`,{offset:`0.42`,className:Hr.sheenMiddle}),(0,e.jsx)(`stop`,{offset:`1`,className:Hr.sheenEnd})]})]}),(0,e.jsx)(`path`,{className:Hr.edge,d:`M12 13.5 28 8v208l-16-5.5z`,fill:`url(#${t}-edge)`}),(0,e.jsx)(`path`,{className:Hr.pane,d:`M28 8 116 51.5v121L28 216z`,fill:`url(#${t}-pane)`}),(0,e.jsx)(`path`,{d:`M30 11.5 113.5 53v4L30 17z`,fill:`url(#${t}-sheen)`}),(0,e.jsx)(`path`,{className:Hr.rim,d:`M115 53v118.5l-4.5 2.5V55.2z`})]}),qr=({transform:t})=>(0,e.jsx)(`text`,{className:Hr.wordmark,x:`8`,y:`128`,transform:t,children:`Стекло`}),Jr=({variant:n=`lockup`,size:r=`md`,decorative:i=!1,className:a=``,title:o=`Стекло`,width:s,height:c,"aria-label":l,...u})=>{let d=`ds-logo-${(0,t.useId)().replaceAll(`:`,``)}`,f=c??(typeof r==`number`?Math.max(1,r):Ur[r]),p=typeof f==`number`?f:Ur.md,m=s??Number((p*Gr[n]).toFixed(2)),h=`${d}-title`;return(0,e.jsxs)(`svg`,{...u,className:`${Hr.logo} ${a}`,viewBox:Wr[n],width:m,height:f,role:i?void 0:`img`,"aria-hidden":i||void 0,"aria-label":i?void 0:l,"aria-labelledby":!i&&!l?h:void 0,focusable:`false`,children:[!i&&!l&&(0,e.jsx)(`title`,{id:h,children:o}),n===`icon`&&(0,e.jsx)(Kr,{id:d}),n===`wordmark`&&(0,e.jsx)(qr,{}),n===`lockup`&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Kr,{id:d,transform:`translate(16 0) scale(.86)`}),(0,e.jsx)(qr,{transform:`translate(156 36) scale(.84)`})]})]})},Yr={brand:`_brand_uueok_1`,symbol:`_symbol_uueok_25`,identity:`_identity_uueok_33`,collapsed:`_collapsed_uueok_55`,wordmark:`_wordmark_uueok_63`,serviceName:`_serviceName_uueok_71`},Xr=({serviceName:t,collapsed:n=!1,logoSize:r,className:i=``,"aria-label":a,...o})=>{let s=a??`Стекло. ${t}`;return(0,e.jsxs)(`div`,{...o,className:`${Yr.brand} ${n?Yr.collapsed:``} ${i}`,"data-collapsed":n||void 0,"aria-label":s,title:n?s:o.title,children:[(0,e.jsx)(Jr,{className:Yr.symbol,variant:`icon`,size:r??44,decorative:!0}),(0,e.jsxs)(`span`,{className:Yr.identity,"aria-hidden":`true`,children:[(0,e.jsx)(Jr,{className:Yr.wordmark,variant:`wordmark`,size:32,decorative:!0}),(0,e.jsx)(`span`,{className:Yr.serviceName,title:t,children:t})]})]})},Zr={sample:`_sample_3woga_1`,menu:`_menu_3woga_59`,options:`_options_3woga_81`,legend:`_legend_3woga_93`,option:`_option_3woga_81`},Qr=({value:n,onChange:r,compact:i=!1,disabled:a=!1})=>{let[s,c]=(0,t.useState)(!1),l=(0,t.useRef)(null),[u,d]=(0,t.useState)(null),f=(0,t.useId)();return(0,t.useEffect)(()=>{if(!s)return;let e=e=>{e.target instanceof Node&&!l.current?.contains(e.target)&&!u?.contains(e.target)&&c(!1)},t=e=>{e.key===`Escape`&&(c(!1),l.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[s,u]),(0,t.useEffect)(()=>{if(!u)return;let e=requestAnimationFrame(()=>u.querySelector(`input:checked`)?.focus());return()=>cancelAnimationFrame(e)},[u]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(w,{ref:l,variant:`empty`,disabled:a,"aria-label":`Цветовая тема: ${o[n]}`,title:`Цветовая тема: ${o[n]}`,"aria-expanded":s&&!a,"aria-controls":s&&!a?f:void 0,onClick:()=>c(!s),children:[(0,e.jsx)(`span`,{"data-ds-theme":n,className:Zr.sample,"aria-hidden":`true`}),!i&&o[n],(0,e.jsx)(G,{name:`IconChevron`,width:14,height:14,"aria-hidden":`true`})]}),s&&!a&&(0,e.jsx)(An,{anchorRef:l,children:(0,e.jsx)(`div`,{ref:d,id:f,className:Zr.menu,onBlur:e=>{e.relatedTarget instanceof Node&&!e.currentTarget.contains(e.relatedTarget)&&!l.current?.contains(e.relatedTarget)&&c(!1)},children:(0,e.jsxs)(`fieldset`,{className:Zr.options,children:[(0,e.jsx)(`legend`,{className:Zr.legend,children:`Цветовая тема`}),[`teal`,`signal`].map(t=>(0,e.jsxs)(`label`,{className:Zr.option,children:[(0,e.jsx)(`input`,{type:`radio`,name:f,value:t,checked:n===t,onChange:()=>r(t)}),(0,e.jsx)(`span`,{"data-ds-theme":t,className:Zr.sample,"aria-hidden":`true`}),(0,e.jsx)(`span`,{children:o[t]}),n===t&&(0,e.jsx)(G,{name:`IconCheck`,width:16,height:16,"aria-hidden":`true`})]},t))]})})})]})};exports.ConfirmModal=tr,exports.DEFAULT_DS_FAVICON_THEME=u,exports.DSAccordion=wt,exports.DSBadge=_,exports.DSBottomNavigation=Vr,exports.DSBottomSheet=vr,exports.DSButton=w,exports.DSCheckbox=Fe,exports.DSCounterBadge=b,exports.DSDataTable=sn,exports.DSDateRange=nt,exports.DSDateTimePicker=$e,exports.DSDrawer=_r,exports.DSDropDown=ut,exports.DSDropDownMultiple=yt,exports.DSFieldLabel=E,exports.DSFieldMessage=D,exports.DSFileInput=On,exports.DSFilters=yn,exports.DSFloatingMenu=An,exports.DSFormGrid=xn,exports.DSFormGridItem=Sn,exports.DSFullscreenDialog=yr,exports.DSIcon=G,exports.DSIconNames=Ne,exports.DSInfoBlock=_n,exports.DSInput=mt,exports.DSLoader=S,exports.DSLogo=Jr,exports.DSModal=Yn,exports.DSModalFrame=Jn,exports.DSNavigationSurface=zr,exports.DSOverlay=gr,exports.DSPageLoader=xr,exports.DSPortal=Tt,exports.DSRadioButton=xt,exports.DSSearchDropDown=hn,exports.DSServiceBrand=Xr,exports.DSSkeleton=it,exports.DSSort=ft,exports.DSTabs=jr,exports.DSTextarea=Pn,exports.DSThemeSwitcher=Qr,exports.DSToast=wr,exports.DSToastProvider=Or,exports.DSTooltip=Rt,exports.DSValidationSummary=Cn,exports.DSVideoPlayerFrame=Lr,exports.DS_FAVICON_THEMES=d,exports.DS_THEME_NAMES=o,exports.DS_THEME_STORAGE_KEY=a,exports.ErrorModal=nr,exports.ModalSystemProvider=Xn,exports.applyDSBrandTheme=h,exports.applyDSFavicon=m,exports.applyDSTheme=l,exports.builtInModalRegistry=rr,exports.defineModalRegistry=Zn,exports.formatDSCounterValue=y,exports.formatDateInputValue=ze,exports.formatDateTimeLocalValue=Ge,exports.getDSAccordionScrollTarget=Ct,exports.getDSDataTableColumnStyle=Jt,exports.getDSDataTablePaginationItems=Xt,exports.getDSDataTableStickyColumnStyle=Yt,exports.getDSFaviconHref=p,exports.getErrorMessage=ar,exports.getNextDSDataTablePageSelection=qt,exports.getNextEnabledOptionIndex=ct,exports.getStoredDSTheme=c,exports.isDSTheme=s,exports.isValidDateInputPrefix=He,exports.isValidDateRange=tt,exports.maskDateInputValue=Be,exports.parseDateInputValue=Ue,exports.parseDateTimeLocalValue=Ke,exports.resetModalStore=Ln,exports.resetToastStore=Dr,exports.useConfirmModal=ir,exports.useConfirmModalStore=sr,exports.useDSOverlay=hr,exports.useErrorModal=or,exports.useErrorModalStore=cr,exports.useModals=lr,exports.useModalsStore=In,exports.useToast=kr,exports.useToastStore=Er,exports.validateDSDataTableData=Zt;
package/dist/index.es.js CHANGED
@@ -113,17 +113,17 @@ var C = "efficiency-point.design-system.theme", w = {
113
113
  ]
114
114
  })
115
115
  }), te = {
116
- button: "_button_1wni1_1",
117
- sm: "_sm_1wni1_59",
118
- md: "_md_1wni1_73",
119
- lg: "_lg_1wni1_87",
120
- primary: "_primary_1wni1_101",
121
- secondary: "_secondary_1wni1_115",
122
- outline: "_outline_1wni1_129",
123
- ghost: "_ghost_1wni1_143",
124
- empty: "_empty_1wni1_157",
125
- destructive: "_destructive_1wni1_171",
126
- destructiveOutline: "_destructiveOutline_1wni1_183"
116
+ button: "_button_1lavd_1",
117
+ sm: "_sm_1lavd_59",
118
+ md: "_md_1lavd_73",
119
+ lg: "_lg_1lavd_87",
120
+ primary: "_primary_1lavd_101",
121
+ secondary: "_secondary_1lavd_115",
122
+ outline: "_outline_1lavd_129",
123
+ ghost: "_ghost_1lavd_143",
124
+ empty: "_empty_1lavd_157",
125
+ destructive: "_destructive_1lavd_171",
126
+ destructiveOutline: "_destructiveOutline_1lavd_183"
127
127
  }, B = s(({ children: e, variant: n = "primary", size: r = "md", isLoading: i = !1, disabled: a, type: o = "button", className: s = "", ...c }, l) => /* @__PURE__ */ t("button", {
128
128
  ref: l,
129
129
  className: `${te.button} ${te[n]} ${te[r]} ${s}`,