@efficiency-point/design-system 0.1.20 → 0.1.22
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 +1 -1
- package/dist/index.es.js +25 -25
- package/dist/style.css +1 -1
- package/package.json +1 -1
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={badge:`_badge_1xyff_1`,sm:`_sm_1xyff_29`,md:`_md_1xyff_39`,neutral:`_neutral_1xyff_49`,info:`_info_1xyff_61`,success:`_success_1xyff_73`,warning:`_warning_1xyff_85`,error:`_error_1xyff_97`,dot:`_dot_1xyff_109`,icon:`_icon_1xyff_125`,label:`_label_1xyff_135`},o=({children:t,variant:n=`neutral`,size:r=`md`,dot:i=!1,icon:o,className:s=``})=>(0,e.jsxs)(`span`,{className:`${a.badge} ${a[n]} ${a[r]} ${s}`,children:[i&&(0,e.jsx)(`span`,{className:a.dot,"aria-hidden":`true`}),o&&(0,e.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:o}),(0,e.jsx)(`span`,{className:a.label,children:t})]}),s={container:`_container_18tg4_1`,inner:`_inner_18tg4_21`,line:`_line_18tg4_39`,primary:`_primary_18tg4_57`,secondary:`_secondary_18tg4_65`,outline:`_outline_18tg4_73`,ghost:`_ghost_18tg4_81`,empty:`_empty_18tg4_89`,destructive:`_destructive_18tg4_97`,destructiveOutline:`_destructiveOutline_18tg4_105`,grow:`_grow_18tg4_1`},c=({variant:t=`primary`})=>(0,e.jsx)(`div`,{className:`${s.container} ${s[t]}`,children:(0,e.jsxs)(`div`,{className:`${s.inner} ${s[t]}`,children:[(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`}),(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`}),(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`}),(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`})]})}),l={button:`_button_cfuv9_1`,sm:`_sm_cfuv9_59`,md:`_md_cfuv9_73`,lg:`_lg_cfuv9_87`,primary:`_primary_cfuv9_101`,secondary:`_secondary_cfuv9_115`,outline:`_outline_cfuv9_129`,ghost:`_ghost_cfuv9_143`,empty:`_empty_cfuv9_157`,destructive:`_destructive_cfuv9_171`,destructiveOutline:`_destructiveOutline_cfuv9_183`},u=(0,t.forwardRef)(({children:t,variant:n=`primary`,size:r=`md`,isLoading:i=!1,disabled:a,type:o=`button`,className:s=``,...u},d)=>(0,e.jsx)(`button`,{ref:d,className:`${l.button} ${l[n]} ${l[r]} ${s}`,disabled:a||i,"aria-busy":i||void 0,...u,type:o,children:i?(0,e.jsx)(c,{variant:n}):t}));u.displayName=`DSButton`;var d={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`},f=({children:t,required:n=!1,optionalText:r,disabled:i=!1,className:a=``,...o})=>(0,e.jsxs)(`label`,{className:`${d.label} ${i?d.disabled:``} ${a}`,...o,children:[(0,e.jsx)(`span`,{children:t}),n&&(0,e.jsx)(`span`,{className:d.required,"aria-hidden":`true`,children:`*`}),r&&(0,e.jsx)(`span`,{className:d.optional,children:r})]}),p=({children:t,variant:n=`hint`,id:r,live:i=!1,className:a=``})=>(0,e.jsx)(`span`,{id:r,className:`${d.message} ${d[n]} ${a}`,role:i&&n===`error`?`alert`:void 0,"aria-live":i&&n!==`error`?`polite`:void 0,children:t}),m=({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]}),h={IconBasket:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 7h16l-1 13H5L4 7zm3 0V4h10v3`})}),IconCheck:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`m5 12 4 4L19 6`})}),IconChevron:t=>(0,e.jsx)(m,{viewBox:`0 0 20 20`,...t,children:(0,e.jsx)(`path`,{d:`M5 7.5L10 12.5L15 7.5`})}),IconCross:({strokeWidth:t=2,...n})=>(0,e.jsx)(m,{strokeWidth:t,...n,children:(0,e.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})}),IconEdit:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 20h4L19 9l-4-4L4 16v4z`})}),IconErrorCircle:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m15 9-6 6M9 9l6 6`})]}),IconEye:t=>(0,e.jsxs)(m,{...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`})]}),IconEyeOff:t=>(0,e.jsx)(m,{...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`})}),IconInfo:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 10v7m0-10v.01`})}),IconInfoCircle:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M12 16v-4M12 8v.01`})]}),IconMinus:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M5 12h14`})}),IconPause:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M8 5v14M16 5v14`,strokeWidth:`3`})}),IconPictureInPicture:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M3 5h18v14H3V5Zm10 7h6v5h-6v-5Z`})}),IconPlay:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`m8 5 11 7-11 7V5Z`,fill:`currentColor`,stroke:`none`})}),IconReplay:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 7v5h5M5.5 11a7 7 0 1 1 1.3 6.3`})}),IconSettings:t=>(0,e.jsx)(m,{...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`})}),IconFullscreen:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M9 4H4v5m11-5h5v5M9 20H4v-5m11 5h5v-5`})}),IconFullscreenExit:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 9h5V4m6 5h5V4M4 15h5v5m6-5h5v5`})}),IconCaptions:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 6h16v12H4V6Zm7 4a2 2 0 1 0 0 4m7-4a2 2 0 1 0 0 4`})}),IconVolume:t=>(0,e.jsx)(m,{...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`})}),IconVolumeMuted:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M5 10v4h4l5 4V6l-5 4H5Zm12 0 4 4m0-4-4 4`})}),IconSort:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M8 17V5m-3 3 3-3 3 3M16 7v12m-3-3 3 3 3-3`})}),IconSortAscending:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),IconSortDescending:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 5v14m-5-5 5 5 5-5`})}),IconSuccessCircle:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}),IconUpload:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),IconWarning:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`path`,{d:`M12 3.5L21 19H3L12 3.5Z`}),(0,e.jsx)(`path`,{d:`M12 9v4.5M12 16.5v.01`})]})},g=({name:t,...n})=>{let r=h[t];return(0,e.jsx)(r,{...n})},_={wrapper:`_wrapper_1seon_1`,label:`_label_1seon_13`,input:`_input_1seon_35`,control:`_control_1seon_49`,disabled:`_disabled_1seon_95`,controlError:`_controlError_1seon_121`},v=({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,...m})=>{let h=(0,t.useId)(),v=d??`ds-checkbox-${u??h}`,y=(0,t.useRef)(null),b=a?`${v}-hint`:void 0,x=o?`${v}-error`:void 0;return(0,t.useEffect)(()=>{y.current&&(y.current.indeterminate=f&&!n)},[n,f]),(0,e.jsxs)(`div`,{className:`${_.wrapper} ${l}`,children:[(0,e.jsxs)(`label`,{className:`${_.label} ${s?_.disabled:``}`,htmlFor:v,children:[(0,e.jsx)(`input`,{ref:y,id:v,name:u,type:`checkbox`,checked:n,disabled:s,"aria-readonly":c||void 0,"aria-invalid":!!o,"aria-describedby":[b,x].filter(Boolean).join(` `)||void 0,className:_.input,onChange:e=>{c||r?.(e.target.checked,e)},...m}),(0,e.jsxs)(`span`,{className:`${_.control} ${o?_.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)(p,{id:b,children:a}),o&&(0,e.jsx)(p,{id:x,variant:`error`,children:o})]})},y={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`},b=[`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`,`Вс`],x=[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`],S=e=>String(e).padStart(2,`0`),C=8,w=`Некорректная дата`,T=e=>e?`${S(e.getDate())}.${S(e.getMonth()+1)}.${e.getFullYear()}`:``,E=e=>{let t=e.replace(/\D/g,``).slice(0,C);return[t.slice(0,2),t.slice(2,4),t.slice(4,8)].filter(Boolean).join(`.`)},D=e=>{if(!e)return!0;let t=Number(e.padEnd(4,`0`));return Number(e.padEnd(4,`9`))>=1800&&t<=2500},O=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:D(r)},k=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},A=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),j=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${S(e.getMonth()+1)}-${S(e.getDate())}`,r=`${S(e.getHours())}:${S(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},M=(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},N=(e,t)=>{if(!e)return``;let n=`${S(e.getDate())}.${S(e.getMonth()+1)}.${e.getFullYear()}`,r=`${S(e.getHours())}:${S(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n} ${r}`},P=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})},F=(e,t)=>!!(e&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()),I=(e,t,n)=>{let r=A(e).getTime();return!!(t&&r<A(t).getTime()||n&&r>A(n).getTime())},L=8,R=6,z=({value:r,onChange:i,mode:a=`date`,label:o,placeholder:s,hint:c,error:l,disabled:u=!1,readOnly:d=!1,required:m=!1,min:h,max:_,size:v=`md`,id:S,name:D,className:A=``})=>{let z=(0,t.useId)(),B=S??`ds-date-time-${D??z}`,ee=c?`${B}-hint`:void 0,V=l?`${B}-error`:void 0,te=(0,t.useRef)(null),H=(0,t.useRef)(null),U=(0,t.useRef)(null),W=(0,t.useRef)(null),[G,K]=(0,t.useState)(!1),[q,J]=(0,t.useState)(r??new Date),[ne,re]=(0,t.useState)(j(r,`time`)),[ie,Y]=(0,t.useState)(T(r)),[ae,oe]=(0,t.useState)(``),[se,ce]=(0,t.useState)(0),[le,ue]=(0,t.useState)(null),de=(0,t.useMemo)(()=>P(q),[q]),fe=a!==`time`,pe=a!==`date`;(0,t.useEffect)(()=>{r&&J(r),re(j(r,`time`)),Y(T(r))},[r]),(0,t.useEffect)(()=>()=>{W.current&&clearTimeout(W.current)},[]);let me=(0,t.useCallback)(()=>{let e=H.current,t=U.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight-n.bottom-L,o=n.top-L,s=a<r.height&&o>a,c=Math.max(120,s?o:a),l=s?Math.max(L,n.top-r.height-R):n.bottom+R,u=n.left,d=i-r.width-L;ue({top:l,left:Math.max(L,Math.min(u,d)),maxHeight:c})},[]);(0,t.useLayoutEffect)(()=>{if(!G){ue(null);return}return me(),window.addEventListener(`resize`,me),window.addEventListener(`scroll`,me,!0),()=>{window.removeEventListener(`resize`,me),window.removeEventListener(`scroll`,me,!0)}},[G,me,q,ne]),(0,t.useEffect)(()=>{if(!G)return;let e=e=>{let t=e.target,n=te.current?.contains(t),r=U.current?.contains(t);!n&&!r&&K(!1)},t=e=>{e.key===`Escape`&&(K(!1),H.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[G]);let he=e=>{if(I(e,h,_))return;let t=a===`date`?M(j(e,`date`),`date`):new Date(e);t&&(a!==`date`&&t.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(t),Y(T(t)),a===`date`&&K(!1))},ge=()=>{oe(w),ce(e=>e+1),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{oe(``),W.current=null},3e3)},_e=e=>{let t=e.replace(/\D/g,``).slice(0,C);if(!O(t)){ge();return}let n=E(t);if(Y(n),!t){i?.(null);return}if(t.length<C)return;let o=k(n);if(!o||I(o,h,_)){ge();return}a===`datetime`&&o.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(o),J(o),K(!1),requestAnimationFrame(()=>H.current?.blur())},ve=e=>{if(re(e),!e){i?.(null);return}let t=M(e,`time`);if(!t)return;let n=new Date(a===`datetime`?r??q:new Date);n.setHours(t.getHours(),t.getMinutes(),0,0),!(h&&n<h||_&&n>_)&&i?.(n)},ye=s??(a===`date`?`ДД.ММ.ГГГГ`:a===`time`?`ЧЧ:ММ`:`ДД.ММ.ГГГГ ЧЧ:ММ`),be=ae?`${B}-validation`:void 0,xe=[ee,V,be].filter(Boolean).join(` `)||void 0,Se=G&&!d?(0,e.jsxs)(`div`,{ref:U,className:y.panel,role:`dialog`,"aria-label":o??ye,style:le?{top:le.top,left:le.left,maxHeight:le.maxHeight}:{visibility:`hidden`,top:0,left:0},children:[fe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:y.calendarHeader,children:[(0,e.jsx)(`button`,{type:`button`,className:y.nav,"aria-label":`Предыдущий месяц`,onClick:()=>J(new Date(q.getFullYear(),q.getMonth()-1,1)),children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20,className:y.previousMonth})}),(0,e.jsx)(`select`,{className:y.monthSelect,"aria-label":`Месяц`,value:q.getMonth(),onChange:e=>J(new Date(q.getFullYear(),Number(e.target.value),1)),children:x.map((t,n)=>(0,e.jsx)(`option`,{value:n,children:t},t))}),(0,e.jsx)(`input`,{className:y.yearInput,type:`number`,"aria-label":`Год`,value:q.getFullYear(),onChange:e=>J(new Date(Number(e.target.value),q.getMonth(),1))}),(0,e.jsx)(`button`,{type:`button`,className:y.nav,"aria-label":`Следующий месяц`,onClick:()=>J(new Date(q.getFullYear(),q.getMonth()+1,1)),children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20,className:y.nextMonth})})]}),(0,e.jsx)(`div`,{className:y.weekdays,children:b.map(t=>(0,e.jsx)(`span`,{children:t},t))}),(0,e.jsx)(`div`,{className:y.days,children:de.map(t=>{let n=F(r,t);return(0,e.jsx)(`button`,{type:`button`,className:`${y.day} ${t.getMonth()===q.getMonth()?``:y.outside} ${n?y.selected:``}`,disabled:I(t,h,_),"aria-pressed":n,onClick:()=>he(t),children:t.getDate()},t.toISOString())})})]}),pe&&(0,e.jsxs)(`label`,{className:y.timeLabel,children:[(0,e.jsx)(`span`,{children:`Время`}),(0,e.jsx)(`input`,{className:y.timeInput,type:`time`,value:ne,onChange:e=>ve(e.target.value)})]})]}):null;return(0,e.jsxs)(`div`,{ref:te,className:`${y.wrapper} ${A}`,children:[o&&(0,e.jsx)(f,{htmlFor:B,required:m,disabled:u,children:o}),fe?(0,e.jsxs)(`div`,{className:`${y.trigger} ${y[v]} ${l?y.error:``} ${u?y.disabled:``}`,children:[(0,e.jsx)(`input`,{ref:H,id:B,name:D,className:y.dateInput,value:ie,placeholder:ye.split(` `)[0],inputMode:`numeric`,autoComplete:`off`,maxLength:10,disabled:u,readOnly:d,"aria-expanded":G,"aria-haspopup":`dialog`,"aria-describedby":xe,"aria-invalid":!!(l||ae)||void 0,onFocus:()=>{d||K(!0)},onClick:()=>{d||K(!0)},onChange:e=>_e(e.target.value)}),a===`datetime`&&ne&&(0,e.jsx)(`span`,{className:y.timeValue,children:ne}),(0,e.jsx)(`button`,{type:`button`,className:y.chevronButton,disabled:u||d,"aria-label":G?`Закрыть календарь`:`Открыть календарь`,tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>{K(e=>!e),H.current?.focus()},children:(0,e.jsx)(`span`,{className:`${y.chevron} ${Se?y.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})})]}):(0,e.jsxs)(`button`,{ref:H,id:B,name:D,type:`button`,className:`${y.trigger} ${y[v]} ${l?y.error:``}`,disabled:u,"aria-readonly":d||void 0,"aria-expanded":G,"aria-haspopup":`dialog`,"aria-describedby":xe,onClick:()=>{d||K(e=>!e)},children:[(0,e.jsx)(`span`,{className:r?y.value:y.placeholder,children:N(r,a)||ye}),(0,e.jsx)(`span`,{className:`${y.chevron} ${Se?y.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})]}),ae&&(0,e.jsx)(`span`,{id:be,className:y.validationTooltip,role:`status`,"aria-live":`polite`,children:ae},se),Se&&(0,n.createPortal)(Se,document.body),c&&!l&&(0,e.jsx)(p,{id:ee,children:c}),l&&(0,e.jsx)(p,{id:V,variant:`error`,children:l})]})},B={root:`_root_19vq2_1`,range:`_range_19vq2_21`},ee=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),V=({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:m=!1,className:h=``})=>{let g=c??(t.from&&t.to&&t.from>t.to?`Дата «От» не может быть позже даты «До»`:void 0),_=e=>{r?.(e),ee(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${B.root} ${h}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:B.range,children:[(0,e.jsx)(z,{value:t.from,mode:i===`datetime`?`datetime`:i,label:a,min:l,max:t.to??u,disabled:d,readOnly:f,required:m,error:g,onChange:e=>_({...t,from:e})}),(0,e.jsx)(z,{value:t.to,mode:i===`datetime`?`datetime`:i,label:o,min:t.from??l,max:u,disabled:d,readOnly:f,required:m,error:g,onChange:e=>_({...t,to:e})})]}),s&&!g&&(0,e.jsx)(p,{children:s})]})},te={group:`_group_10ug0_1`,skeleton:`_skeleton_10ug0_15`,text:`_text_10ug0_27`,rectangular:`_rectangular_10ug0_37`,circular:`_circular_10ug0_47`,animated:`_animated_10ug0_59`,"ds-skeleton":`_ds-skeleton_10ug0_1`},H=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${te.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(o,s)=>(0,e.jsx)(`span`,{className:`${te.skeleton} ${te[t]} ${a?te.animated:``}`,style:{width:s===i-1&&i>1?`70%`:n,height:r}},s))}),U={wrapper:`_wrapper_6g3qd_1`,container:`_container_6g3qd_17`,trigger:`_trigger_6g3qd_25`,disabledText:`_disabledText_6g3qd_27`,sm:`_sm_6g3qd_53`,md:`_md_6g3qd_67`,lg:`_lg_6g3qd_81`,value:`_value_6g3qd_147`,placeholder:`_placeholder_6g3qd_149`,chevron:`_chevron_6g3qd_205`,chevronOpen:`_chevronOpen_6g3qd_231`,menu:`_menu_6g3qd_239`,option:`_option_6g3qd_269`,selected:`_selected_6g3qd_339`,message:`_message_6g3qd_359`,error:`_error_6g3qd_361`,errorState:`_errorState_6g3qd_387`},W=8,G=6,K=120,q=(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},J=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},ne=({options:r,value:i,onChange:a,placeholder:o=`Выберите опцию`,disabled:s=!1,stringWhileDisabled:c=!1,label:l,error:u,size:d=`md`,hint:p,className:m=``,required:h=!1,name:_,id:v,needMark:y=!0,maxMenuHeight:b})=>{let x=(0,t.useId)(),S=v??`ds-dropdown-${_??x}`,C=`${S}-listbox`,[w,T]=(0,t.useState)(!1),[E,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.find(e=>e.value===i),[r,i]),N=p?`${S}-hint`:void 0,P=u?`${S}-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.innerWidth,a=window.innerHeight-n.bottom-W,o=n.top-W,s=a<r.height&&o>a,c=Math.max(K,s?o:a),l=J(b),u=Math.min(c,l),d=n.left,f=i-n.width-W,p=Math.max(W,Math.min(d,f)),m=s?Math.max(W,n.top-r.height-G):n.bottom+G;D({top:m,left:p,width:n.width,maxHeight:u})},[b]);(0,t.useLayoutEffect)(()=>{if(!w){D(null);return}return L(),window.addEventListener(`resize`,L),window.addEventListener(`scroll`,L,!0),()=>{window.removeEventListener(`resize`,L),window.removeEventListener(`scroll`,L,!0)}},[w,L,r.length]),(0,t.useEffect)(()=>{if(!w)return;let e=e=>{let t=e.target,n=O.current?.contains(t),r=A.current?.contains(t);!n&&!r&&T(!1)},t=e=>{e.key===`Escape`&&(T(!1),k.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[w]);let R=(e,t)=>{let n=q(r,e,t);if(n===-1)return;let i=j.current[n];i?.focus(),i?.scrollIntoView({block:`nearest`})},z=e=>{e.disabled||(a?.(e.value,e),T(!1),k.current?.focus())},B=w?(0,e.jsx)(`ul`,{ref:A,id:C,className:U.menu,role:`listbox`,"aria-label":l,style:E?{position:`fixed`,top:E.top,left:E.left,width:E.width,maxHeight:E.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=>{j.current[n]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:[U[d],U.option,a?U.selected:``].filter(Boolean).join(` `),onClick:()=>z(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===`Tab`&&T(!1),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(),z(t))},children:[(0,e.jsx)(`span`,{children:t.label}),a&&y&&(0,e.jsx)(g,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:O,className:[U.wrapper,u?U.errorState:``,m].filter(Boolean).join(` `),children:[l&&(0,e.jsx)(f,{required:h,disabled:s,htmlFor:I?void 0:S,children:l}),(0,e.jsx)(`div`,{className:U.container,children:I?(0,e.jsx)(`div`,{id:S,className:U.disabledText,"aria-describedby":F,children:M?.label??o}):(0,e.jsxs)(`button`,{ref:k,id:S,type:`button`,name:_,className:`${U.trigger} ${U[d]}`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":w,"aria-controls":C,"aria-describedby":F,"aria-invalid":!!u,onClick:()=>T(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),T(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>{R(e.key===`ArrowDown`?0:r.length-1,t)})}if(e.key===`Enter`&&w){e.preventDefault();let t=r.findIndex(e=>e.value===i);R(t>=0?t:0,1)}},children:[(0,e.jsx)(`span`,{className:`${M?U.value:U.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={badge:`_badge_1xyff_1`,sm:`_sm_1xyff_29`,md:`_md_1xyff_39`,neutral:`_neutral_1xyff_49`,info:`_info_1xyff_61`,success:`_success_1xyff_73`,warning:`_warning_1xyff_85`,error:`_error_1xyff_97`,dot:`_dot_1xyff_109`,icon:`_icon_1xyff_125`,label:`_label_1xyff_135`},o=({children:t,variant:n=`neutral`,size:r=`md`,dot:i=!1,icon:o,className:s=``})=>(0,e.jsxs)(`span`,{className:`${a.badge} ${a[n]} ${a[r]} ${s}`,children:[i&&(0,e.jsx)(`span`,{className:a.dot,"aria-hidden":`true`}),o&&(0,e.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:o}),(0,e.jsx)(`span`,{className:a.label,children:t})]}),s={container:`_container_1jyk1_1`,inner:`_inner_1jyk1_21`,line:`_line_1jyk1_39`,primary:`_primary_1jyk1_57`,secondary:`_secondary_1jyk1_65`,outline:`_outline_1jyk1_73`,ghost:`_ghost_1jyk1_81`,empty:`_empty_1jyk1_89`,destructive:`_destructive_1jyk1_97`,destructiveOutline:`_destructiveOutline_1jyk1_105`,grow:`_grow_1jyk1_1`},c=({variant:t=`primary`})=>(0,e.jsx)(`div`,{className:`${s.container} ${s[t]}`,children:(0,e.jsxs)(`div`,{className:`${s.inner} ${s[t]}`,children:[(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`}),(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`}),(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`}),(0,e.jsx)(`div`,{className:`${s.line} ${s[t]}`})]})}),l={button:`_button_8341b_1`,sm:`_sm_8341b_59`,md:`_md_8341b_73`,lg:`_lg_8341b_87`,primary:`_primary_8341b_101`,secondary:`_secondary_8341b_115`,outline:`_outline_8341b_129`,ghost:`_ghost_8341b_143`,empty:`_empty_8341b_157`,destructive:`_destructive_8341b_171`,destructiveOutline:`_destructiveOutline_8341b_183`},u=(0,t.forwardRef)(({children:t,variant:n=`primary`,size:r=`md`,isLoading:i=!1,disabled:a,type:o=`button`,className:s=``,...u},d)=>(0,e.jsx)(`button`,{ref:d,className:`${l.button} ${l[n]} ${l[r]} ${s}`,disabled:a||i,"aria-busy":i||void 0,...u,type:o,children:i?(0,e.jsx)(c,{variant:n}):t}));u.displayName=`DSButton`;var d={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`},f=({children:t,required:n=!1,optionalText:r,disabled:i=!1,className:a=``,...o})=>(0,e.jsxs)(`label`,{className:`${d.label} ${i?d.disabled:``} ${a}`,...o,children:[(0,e.jsx)(`span`,{children:t}),n&&(0,e.jsx)(`span`,{className:d.required,"aria-hidden":`true`,children:`*`}),r&&(0,e.jsx)(`span`,{className:d.optional,children:r})]}),p=({children:t,variant:n=`hint`,id:r,live:i=!1,className:a=``})=>(0,e.jsx)(`span`,{id:r,className:`${d.message} ${d[n]} ${a}`,role:i&&n===`error`?`alert`:void 0,"aria-live":i&&n!==`error`?`polite`:void 0,children:t}),m=({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]}),h={IconBasket:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 7h16l-1 13H5L4 7zm3 0V4h10v3`})}),IconCheck:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`m5 12 4 4L19 6`})}),IconChevron:t=>(0,e.jsx)(m,{viewBox:`0 0 20 20`,...t,children:(0,e.jsx)(`path`,{d:`M5 7.5L10 12.5L15 7.5`})}),IconCross:({strokeWidth:t=2,...n})=>(0,e.jsx)(m,{strokeWidth:t,...n,children:(0,e.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})}),IconEdit:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 20h4L19 9l-4-4L4 16v4z`})}),IconErrorCircle:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m15 9-6 6M9 9l6 6`})]}),IconEye:t=>(0,e.jsxs)(m,{...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`})]}),IconEyeOff:t=>(0,e.jsx)(m,{...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`})}),IconInfo:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 10v7m0-10v.01`})}),IconInfoCircle:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M12 16v-4M12 8v.01`})]}),IconMinus:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M5 12h14`})}),IconPause:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M8 5v14M16 5v14`,strokeWidth:`3`})}),IconPictureInPicture:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M3 5h18v14H3V5Zm10 7h6v5h-6v-5Z`})}),IconPlay:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`m8 5 11 7-11 7V5Z`,fill:`currentColor`,stroke:`none`})}),IconReplay:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 7v5h5M5.5 11a7 7 0 1 1 1.3 6.3`})}),IconSettings:t=>(0,e.jsx)(m,{...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`})}),IconFullscreen:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M9 4H4v5m11-5h5v5M9 20H4v-5m11 5h5v-5`})}),IconFullscreenExit:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 9h5V4m6 5h5V4M4 15h5v5m6-5h5v5`})}),IconCaptions:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M4 6h16v12H4V6Zm7 4a2 2 0 1 0 0 4m7-4a2 2 0 1 0 0 4`})}),IconVolume:t=>(0,e.jsx)(m,{...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`})}),IconVolumeMuted:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M5 10v4h4l5 4V6l-5 4H5Zm12 0 4 4m0-4-4 4`})}),IconSort:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M8 17V5m-3 3 3-3 3 3M16 7v12m-3-3 3 3 3-3`})}),IconSortAscending:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),IconSortDescending:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 5v14m-5-5 5 5 5-5`})}),IconSuccessCircle:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}),IconUpload:t=>(0,e.jsx)(m,{...t,children:(0,e.jsx)(`path`,{d:`M12 19V5m-5 5 5-5 5 5`})}),IconWarning:t=>(0,e.jsxs)(m,{...t,children:[(0,e.jsx)(`path`,{d:`M12 3.5L21 19H3L12 3.5Z`}),(0,e.jsx)(`path`,{d:`M12 9v4.5M12 16.5v.01`})]})},g=({name:t,...n})=>{let r=h[t];return(0,e.jsx)(r,{...n})},_={wrapper:`_wrapper_1seon_1`,label:`_label_1seon_13`,input:`_input_1seon_35`,control:`_control_1seon_49`,disabled:`_disabled_1seon_95`,controlError:`_controlError_1seon_121`},v=({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,...m})=>{let h=(0,t.useId)(),v=d??`ds-checkbox-${u??h}`,y=(0,t.useRef)(null),b=a?`${v}-hint`:void 0,x=o?`${v}-error`:void 0;return(0,t.useEffect)(()=>{y.current&&(y.current.indeterminate=f&&!n)},[n,f]),(0,e.jsxs)(`div`,{className:`${_.wrapper} ${l}`,children:[(0,e.jsxs)(`label`,{className:`${_.label} ${s?_.disabled:``}`,htmlFor:v,children:[(0,e.jsx)(`input`,{ref:y,id:v,name:u,type:`checkbox`,checked:n,disabled:s,"aria-readonly":c||void 0,"aria-invalid":!!o,"aria-describedby":[b,x].filter(Boolean).join(` `)||void 0,className:_.input,onChange:e=>{c||r?.(e.target.checked,e)},...m}),(0,e.jsxs)(`span`,{className:`${_.control} ${o?_.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)(p,{id:b,children:a}),o&&(0,e.jsx)(p,{id:x,variant:`error`,children:o})]})},y={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`},b=[`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`,`Вс`],x=[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`],S=e=>String(e).padStart(2,`0`),C=8,w=`Некорректная дата`,T=e=>e?`${S(e.getDate())}.${S(e.getMonth()+1)}.${e.getFullYear()}`:``,E=e=>{let t=e.replace(/\D/g,``).slice(0,C);return[t.slice(0,2),t.slice(2,4),t.slice(4,8)].filter(Boolean).join(`.`)},D=e=>{if(!e)return!0;let t=Number(e.padEnd(4,`0`));return Number(e.padEnd(4,`9`))>=1800&&t<=2500},O=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:D(r)},k=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},A=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),j=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${S(e.getMonth()+1)}-${S(e.getDate())}`,r=`${S(e.getHours())}:${S(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},M=(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},N=(e,t)=>{if(!e)return``;let n=`${S(e.getDate())}.${S(e.getMonth()+1)}.${e.getFullYear()}`,r=`${S(e.getHours())}:${S(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n} ${r}`},P=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})},F=(e,t)=>!!(e&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()),I=(e,t,n)=>{let r=A(e).getTime();return!!(t&&r<A(t).getTime()||n&&r>A(n).getTime())},L=8,R=6,z=({value:r,onChange:i,mode:a=`date`,label:o,placeholder:s,hint:c,error:l,disabled:u=!1,readOnly:d=!1,required:m=!1,min:h,max:_,size:v=`md`,id:S,name:D,className:A=``})=>{let z=(0,t.useId)(),B=S??`ds-date-time-${D??z}`,ee=c?`${B}-hint`:void 0,V=l?`${B}-error`:void 0,te=(0,t.useRef)(null),H=(0,t.useRef)(null),U=(0,t.useRef)(null),W=(0,t.useRef)(null),[G,K]=(0,t.useState)(!1),[q,J]=(0,t.useState)(r??new Date),[ne,re]=(0,t.useState)(j(r,`time`)),[ie,Y]=(0,t.useState)(T(r)),[ae,oe]=(0,t.useState)(``),[se,ce]=(0,t.useState)(0),[le,ue]=(0,t.useState)(null),de=(0,t.useMemo)(()=>P(q),[q]),fe=a!==`time`,pe=a!==`date`;(0,t.useEffect)(()=>{r&&J(r),re(j(r,`time`)),Y(T(r))},[r]),(0,t.useEffect)(()=>()=>{W.current&&clearTimeout(W.current)},[]);let me=(0,t.useCallback)(()=>{let e=H.current,t=U.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight-n.bottom-L,o=n.top-L,s=a<r.height&&o>a,c=Math.max(120,s?o:a),l=s?Math.max(L,n.top-r.height-R):n.bottom+R,u=n.left,d=i-r.width-L;ue({top:l,left:Math.max(L,Math.min(u,d)),maxHeight:c})},[]);(0,t.useLayoutEffect)(()=>{if(!G){ue(null);return}return me(),window.addEventListener(`resize`,me),window.addEventListener(`scroll`,me,!0),()=>{window.removeEventListener(`resize`,me),window.removeEventListener(`scroll`,me,!0)}},[G,me,q,ne]),(0,t.useEffect)(()=>{if(!G)return;let e=e=>{let t=e.target,n=te.current?.contains(t),r=U.current?.contains(t);!n&&!r&&K(!1)},t=e=>{e.key===`Escape`&&(K(!1),H.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[G]);let he=e=>{if(I(e,h,_))return;let t=a===`date`?M(j(e,`date`),`date`):new Date(e);t&&(a!==`date`&&t.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(t),Y(T(t)),a===`date`&&K(!1))},ge=()=>{oe(w),ce(e=>e+1),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{oe(``),W.current=null},3e3)},_e=e=>{let t=e.replace(/\D/g,``).slice(0,C);if(!O(t)){ge();return}let n=E(t);if(Y(n),!t){i?.(null);return}if(t.length<C)return;let o=k(n);if(!o||I(o,h,_)){ge();return}a===`datetime`&&o.setHours(r?.getHours()??0,r?.getMinutes()??0,0,0),i?.(o),J(o),K(!1),requestAnimationFrame(()=>H.current?.blur())},ve=e=>{if(re(e),!e){i?.(null);return}let t=M(e,`time`);if(!t)return;let n=new Date(a===`datetime`?r??q:new Date);n.setHours(t.getHours(),t.getMinutes(),0,0),!(h&&n<h||_&&n>_)&&i?.(n)},ye=s??(a===`date`?`ДД.ММ.ГГГГ`:a===`time`?`ЧЧ:ММ`:`ДД.ММ.ГГГГ ЧЧ:ММ`),be=ae?`${B}-validation`:void 0,xe=[ee,V,be].filter(Boolean).join(` `)||void 0,Se=G&&!d?(0,e.jsxs)(`div`,{ref:U,className:y.panel,role:`dialog`,"aria-label":o??ye,style:le?{top:le.top,left:le.left,maxHeight:le.maxHeight}:{visibility:`hidden`,top:0,left:0},children:[fe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:y.calendarHeader,children:[(0,e.jsx)(`button`,{type:`button`,className:y.nav,"aria-label":`Предыдущий месяц`,onClick:()=>J(new Date(q.getFullYear(),q.getMonth()-1,1)),children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20,className:y.previousMonth})}),(0,e.jsx)(`select`,{className:y.monthSelect,"aria-label":`Месяц`,value:q.getMonth(),onChange:e=>J(new Date(q.getFullYear(),Number(e.target.value),1)),children:x.map((t,n)=>(0,e.jsx)(`option`,{value:n,children:t},t))}),(0,e.jsx)(`input`,{className:y.yearInput,type:`number`,"aria-label":`Год`,value:q.getFullYear(),onChange:e=>J(new Date(Number(e.target.value),q.getMonth(),1))}),(0,e.jsx)(`button`,{type:`button`,className:y.nav,"aria-label":`Следующий месяц`,onClick:()=>J(new Date(q.getFullYear(),q.getMonth()+1,1)),children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20,className:y.nextMonth})})]}),(0,e.jsx)(`div`,{className:y.weekdays,children:b.map(t=>(0,e.jsx)(`span`,{children:t},t))}),(0,e.jsx)(`div`,{className:y.days,children:de.map(t=>{let n=F(r,t);return(0,e.jsx)(`button`,{type:`button`,className:`${y.day} ${t.getMonth()===q.getMonth()?``:y.outside} ${n?y.selected:``}`,disabled:I(t,h,_),"aria-pressed":n,onClick:()=>he(t),children:t.getDate()},t.toISOString())})})]}),pe&&(0,e.jsxs)(`label`,{className:y.timeLabel,children:[(0,e.jsx)(`span`,{children:`Время`}),(0,e.jsx)(`input`,{className:y.timeInput,type:`time`,value:ne,onChange:e=>ve(e.target.value)})]})]}):null;return(0,e.jsxs)(`div`,{ref:te,className:`${y.wrapper} ${A}`,children:[o&&(0,e.jsx)(f,{htmlFor:B,required:m,disabled:u,children:o}),fe?(0,e.jsxs)(`div`,{className:`${y.trigger} ${y[v]} ${l?y.error:``} ${u?y.disabled:``}`,children:[(0,e.jsx)(`input`,{ref:H,id:B,name:D,className:y.dateInput,value:ie,placeholder:ye.split(` `)[0],inputMode:`numeric`,autoComplete:`off`,maxLength:10,disabled:u,readOnly:d,"aria-expanded":G,"aria-haspopup":`dialog`,"aria-describedby":xe,"aria-invalid":!!(l||ae)||void 0,onFocus:()=>{d||K(!0)},onClick:()=>{d||K(!0)},onChange:e=>_e(e.target.value)}),a===`datetime`&&ne&&(0,e.jsx)(`span`,{className:y.timeValue,children:ne}),(0,e.jsx)(`button`,{type:`button`,className:y.chevronButton,disabled:u||d,"aria-label":G?`Закрыть календарь`:`Открыть календарь`,tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>{K(e=>!e),H.current?.focus()},children:(0,e.jsx)(`span`,{className:`${y.chevron} ${Se?y.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})})]}):(0,e.jsxs)(`button`,{ref:H,id:B,name:D,type:`button`,className:`${y.trigger} ${y[v]} ${l?y.error:``}`,disabled:u,"aria-readonly":d||void 0,"aria-expanded":G,"aria-haspopup":`dialog`,"aria-describedby":xe,onClick:()=>{d||K(e=>!e)},children:[(0,e.jsx)(`span`,{className:r?y.value:y.placeholder,children:N(r,a)||ye}),(0,e.jsx)(`span`,{className:`${y.chevron} ${Se?y.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})]}),ae&&(0,e.jsx)(`span`,{id:be,className:y.validationTooltip,role:`status`,"aria-live":`polite`,children:ae},se),Se&&(0,n.createPortal)(Se,document.body),c&&!l&&(0,e.jsx)(p,{id:ee,children:c}),l&&(0,e.jsx)(p,{id:V,variant:`error`,children:l})]})},B={root:`_root_19vq2_1`,range:`_range_19vq2_21`},ee=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),V=({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:m=!1,className:h=``})=>{let g=c??(t.from&&t.to&&t.from>t.to?`Дата «От» не может быть позже даты «До»`:void 0),_=e=>{r?.(e),ee(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${B.root} ${h}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:B.range,children:[(0,e.jsx)(z,{value:t.from,mode:i===`datetime`?`datetime`:i,label:a,min:l,max:t.to??u,disabled:d,readOnly:f,required:m,error:g,onChange:e=>_({...t,from:e})}),(0,e.jsx)(z,{value:t.to,mode:i===`datetime`?`datetime`:i,label:o,min:t.from??l,max:u,disabled:d,readOnly:f,required:m,error:g,onChange:e=>_({...t,to:e})})]}),s&&!g&&(0,e.jsx)(p,{children:s})]})},te={group:`_group_10ug0_1`,skeleton:`_skeleton_10ug0_15`,text:`_text_10ug0_27`,rectangular:`_rectangular_10ug0_37`,circular:`_circular_10ug0_47`,animated:`_animated_10ug0_59`,"ds-skeleton":`_ds-skeleton_10ug0_1`},H=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${te.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(i,o)=>(0,e.jsx)(`span`,{className:`${te.skeleton} ${te[t]} ${a?te.animated:``}`,style:{width:n,height:r}},o))}),U={wrapper:`_wrapper_6g3qd_1`,container:`_container_6g3qd_17`,trigger:`_trigger_6g3qd_25`,disabledText:`_disabledText_6g3qd_27`,sm:`_sm_6g3qd_53`,md:`_md_6g3qd_67`,lg:`_lg_6g3qd_81`,value:`_value_6g3qd_147`,placeholder:`_placeholder_6g3qd_149`,chevron:`_chevron_6g3qd_205`,chevronOpen:`_chevronOpen_6g3qd_231`,menu:`_menu_6g3qd_239`,option:`_option_6g3qd_269`,selected:`_selected_6g3qd_339`,message:`_message_6g3qd_359`,error:`_error_6g3qd_361`,errorState:`_errorState_6g3qd_387`},W=8,G=6,K=120,q=(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},J=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},ne=({options:r,value:i,onChange:a,placeholder:o=`Выберите опцию`,disabled:s=!1,stringWhileDisabled:c=!1,label:l,error:u,size:d=`md`,hint:p,className:m=``,required:h=!1,name:_,id:v,needMark:y=!0,maxMenuHeight:b})=>{let x=(0,t.useId)(),S=v??`ds-dropdown-${_??x}`,C=`${S}-listbox`,[w,T]=(0,t.useState)(!1),[E,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.find(e=>e.value===i),[r,i]),N=p?`${S}-hint`:void 0,P=u?`${S}-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.innerWidth,a=window.innerHeight-n.bottom-W,o=n.top-W,s=a<r.height&&o>a,c=Math.max(K,s?o:a),l=J(b),u=Math.min(c,l),d=n.left,f=i-n.width-W,p=Math.max(W,Math.min(d,f)),m=s?Math.max(W,n.top-r.height-G):n.bottom+G;D({top:m,left:p,width:n.width,maxHeight:u})},[b]);(0,t.useLayoutEffect)(()=>{if(!w){D(null);return}return L(),window.addEventListener(`resize`,L),window.addEventListener(`scroll`,L,!0),()=>{window.removeEventListener(`resize`,L),window.removeEventListener(`scroll`,L,!0)}},[w,L,r.length]),(0,t.useEffect)(()=>{if(!w)return;let e=e=>{let t=e.target,n=O.current?.contains(t),r=A.current?.contains(t);!n&&!r&&T(!1)},t=e=>{e.key===`Escape`&&(T(!1),k.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[w]);let R=(e,t)=>{let n=q(r,e,t);if(n===-1)return;let i=j.current[n];i?.focus(),i?.scrollIntoView({block:`nearest`})},z=e=>{e.disabled||(a?.(e.value,e),T(!1),k.current?.focus())},B=w?(0,e.jsx)(`ul`,{ref:A,id:C,className:U.menu,role:`listbox`,"aria-label":l,style:E?{position:`fixed`,top:E.top,left:E.left,width:E.width,maxHeight:E.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=>{j.current[n]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:[U[d],U.option,a?U.selected:``].filter(Boolean).join(` `),onClick:()=>z(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===`Tab`&&T(!1),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(),z(t))},children:[(0,e.jsx)(`span`,{children:t.label}),a&&y&&(0,e.jsx)(g,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:O,className:[U.wrapper,u?U.errorState:``,m].filter(Boolean).join(` `),children:[l&&(0,e.jsx)(f,{required:h,disabled:s,htmlFor:I?void 0:S,children:l}),(0,e.jsx)(`div`,{className:U.container,children:I?(0,e.jsx)(`div`,{id:S,className:U.disabledText,"aria-describedby":F,children:M?.label??o}):(0,e.jsxs)(`button`,{ref:k,id:S,type:`button`,name:_,className:`${U.trigger} ${U[d]}`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":w,"aria-controls":C,"aria-describedby":F,"aria-invalid":!!u,onClick:()=>T(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),T(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>{R(e.key===`ArrowDown`?0:r.length-1,t)})}if(e.key===`Enter`&&w){e.preventDefault();let t=r.findIndex(e=>e.value===i);R(t>=0?t:0,1)}},children:[(0,e.jsx)(`span`,{className:`${M?U.value:U.placeholder}
|
|
2
2
|
${U[d]}`,children:M?.label??o}),(0,e.jsx)(`span`,{className:[U.chevron,w?U.chevronOpen:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})]})}),w&&(0,n.createPortal)(B,document.body),p&&!u&&(0,e.jsx)(`span`,{id:N,className:U.message,children:p}),u&&(0,e.jsx)(`span`,{id:P,className:U.error,children:u})]})},re=e=>`${e.id}:${e.direction}`,ie=({options:t,value:n,onChange:r,label:i=`Сортировка`,placeholder:a=`Выберите сортировку`,disabled:o=!1,className:s})=>{let c=t.flatMap(e=>[{value:re({id:e.id,direction:`asc`}),label:e.ascLabel??`${e.label} · по возрастанию`,disabled:e.disabled},{value:re({id:e.id,direction:`desc`}),label:e.descLabel??`${e.label} · по убыванию`,disabled:e.disabled}]);return(0,e.jsx)(ne,{options:c,value:n?re(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)})}})},Y={root:`_root_1jtuu_1`,tableWrap:`_tableWrap_1jtuu_15`,table:`_table_1jtuu_15`,sticky:`_sticky_1jtuu_81`,sortButton:`_sortButton_1jtuu_95`,state:`_state_1jtuu_133`,cards:`_cards_1jtuu_145`,mobileSort:`_mobileSort_1jtuu_145`,card:`_card_1jtuu_145`,spanTwo:`_spanTwo_1jtuu_233`,clickableRow:`_clickableRow_1jtuu_241`,pagination:`_pagination_1jtuu_249`,paginationRange:`_paginationRange_1jtuu_275`,paginationControls:`_paginationControls_1jtuu_287`,pageNumbers:`_pageNumbers_1jtuu_289`,pageButton:`_pageButton_1jtuu_301`,ellipsis:`_ellipsis_1jtuu_311`,previousIcon:`_previousIcon_1jtuu_323`,nextIcon:`_nextIcon_1jtuu_331`,default:`_default_1jtuu_371`,tableOnMobile:`_tableOnMobile_1jtuu_371`,wide:`_wide_1jtuu_401`},ae=(0,r.tableFeatures)({rowSortingFeature:r.rowSortingFeature,sortedRowModel:(0,r.createSortedRowModel)()}),oe=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}},se=(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],ce=(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},le=(e,t)=>typeof e==`function`?e(t):t[e],ue=e=>{if(e==null||e===``)return null;let t=Date.parse(String(e));return Number.isNaN(t)?null:t},de=(e,t,n)=>{let r=ue(e.getValue(n)),i=ue(t.getValue(n));return r===null&&i===null?0:r===null?-1:i===null?1:r-i},fe=(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)},pe=(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)},me=(e,t,n)=>{let r=String(e.getValue(n)??``),i=String(t.getValue(n)??``);return r.localeCompare(i,void 0,{numeric:!0,sensitivity:`base`})},he=e=>{switch(e){case`date`:return de;case`number`:return fe;case`boolean`:return pe;case`text`:case void 0:return me;case`custom`:return}},ge=e=>{let t=t=>le(e.accessor,t),n=e.sortFn??he(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},_e=({columns:n,data:i,tableOnMobile:a=!1,breakpoint:o=`default`,sorting:s,onSortingChange:c,renderMobileCard:l,getRowId:d,caption:f,ariaLabel:p,loading:m=!1,error:h,emptyState:_=`Нет данных`,stickyHeader:v=!1,maxHeight:y,className:b=``,onRowClick:x,pagination:S=!1,pageSize:C=30,visibleColumnIds:w})=>{let[T,E]=(0,t.useState)([]),[D,O]=(0,t.useState)(0),k=s??T,A=k.map(e=>`${e.id}:${e.desc?`desc`:`asc`}`).join(`|`),j=Number.isFinite(C)&&C>0?Math.floor(C):30,M=(0,t.useMemo)(()=>{if(w===void 0)return n;let e=new Set(w);return n.filter(t=>e.has(t.id))},[n,w]),N=(0,t.useMemo)(()=>M.length===0?`Должна быть видима хотя бы одна колонка`:ce(M,i),[i,M]),P=(0,t.useMemo)(()=>M.map(ge),[M]),F=M.some(e=>oe(e)!==void 0),I=(0,r.useTable)({features:ae,columns:P,data:i,state:{sorting:k},onSortingChange:e=>{let t=typeof e==`function`?e(k):e;s===void 0&&E(t),O(0),c?.(t)},getRowId:d}),L=I.getRowModel().rows,R=S?Math.max(1,Math.ceil(L.length/j)):1,z=Math.min(D,R-1),B=(0,t.useMemo)(()=>S?L.slice(z*j,(z+1)*j):L,[j,S,z,L]),ee=(0,t.useMemo)(()=>M.filter(e=>e.enableSorting??e.dataType!==`custom`).map(e=>({id:e.id,label:typeof e.header==`string`?e.header:e.id})),[M]),V=(0,t.useMemo)(()=>se(z,R),[R,z]),te=[Y.root,o===`wide`?Y.wide:Y.default,a?Y.tableOnMobile:``,b].filter(Boolean).join(` `),U=N??h,W=S&&!m&&!U&&L.length>j,G=z*j+1,K=Math.min((z+1)*j,L.length);return(0,t.useEffect)(()=>{O(0)},[i,j,S,A]),(0,t.useEffect)(()=>{D>=R&&O(R-1)},[R,D]),(0,e.jsxs)(`section`,{className:te,"aria-busy":m,children:[!a&&!m&&!U&&B.length>0&&ee.length>0&&(0,e.jsx)(ie,{className:Y.mobileSort,options:ee,value:k[0]?{id:k[0].id,direction:k[0].desc?`desc`:`asc`}:null,onChange:e=>I.setSorting([{id:e.id,desc:e.direction===`desc`}])}),(0,e.jsx)(`div`,{className:Y.tableWrap,style:{maxHeight:y},children:(0,e.jsxs)(`table`,{className:Y.table,"aria-label":p,children:[f&&(0,e.jsx)(`caption`,{children:f}),F&&(0,e.jsx)(`colgroup`,{children:M.map(t=>(0,e.jsx)(`col`,{style:oe(t)},t.id))}),(0,e.jsx)(`thead`,{className:v?Y.sticky:``,children:I.getHeaderGroups().map(t=>(0,e.jsx)(`tr`,{children:t.headers.map(t=>{let n=t.column.getIsSorted(),r=t.column.getCanSort(),i=t.column.getToggleSortingHandler();return(0,e.jsx)(`th`,{scope:`col`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:`none`,style:oe(M.find(e=>e.id===t.column.id)),children:(0,e.jsxs)(`button`,{type:`button`,className:Y.sortButton,disabled:!r,onClick:i,children:[(0,e.jsx)(I.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:m?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{colSpan:M.length,children:(0,e.jsx)(H,{lines:3})})}):U?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:Y.state,colSpan:M.length,children:U})}):B.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:Y.state,colSpan:M.length,children:_})}):B.map(t=>(0,e.jsx)(`tr`,{className:x?Y.clickableRow:void 0,onClick:()=>x?.(t.original),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),x?.(t.original))},tabIndex:x?0:void 0,role:x?`button`:void 0,children:t.getAllCells().map(t=>(0,e.jsx)(`td`,{style:oe(M.find(e=>e.id===t.column.id)),children:(0,e.jsx)(I.FlexRender,{cell:t})},t.id))},t.id))})]})}),!a&&(0,e.jsx)(`div`,{className:Y.cards,role:`list`,"aria-label":p??f,children:m?(0,e.jsx)(H,{lines:4}):U?(0,e.jsx)(`div`,{className:Y.state,children:U}):B.length===0?(0,e.jsx)(`div`,{className:Y.state,children:_}):B.map(t=>{if(l)return(0,e.jsx)(`div`,{role:`listitem`,children:l({row:t.original,columns:M})},t.id);let n=M.filter(e=>!e.mobile?.hideOnMobile).sort((e,t)=>(e.mobile?.mobileOrder??0)-(t.mobile?.mobileOrder??0)),r=n.find(e=>e.mobile?.primary)??n.find(e=>e.mobile?.mobileVariant!==`actions`),i=e=>le(e.accessor,t.original),a=e=>e.mobile?.renderMobile?.(t.original,i(e))??e.cell?.(t.original,i(e))??String(i(e)??``);return(0,e.jsxs)(`article`,{role:`listitem`,className:Y.card,children:[(0,e.jsx)(`h3`,{children:r?a(r):`Строка ${t.index+1}`}),(0,e.jsx)(`dl`,{children:n.filter(e=>e!==r&&e.mobile?.mobileVariant!==`actions`).map(t=>(0,e.jsxs)(`div`,{className:t.mobile?.mobileSpan===2?Y.spanTwo:``,children:[(0,e.jsx)(`dt`,{children:t.mobile?.mobileLabel??t.header}),(0,e.jsx)(`dd`,{children:a(t)})]},t.id))}),n.filter(e=>e.mobile?.mobileVariant===`actions`).map(t=>(0,e.jsx)(`footer`,{children:a(t)},t.id))]},t.id)})}),W&&(0,e.jsxs)(`nav`,{className:Y.pagination,"aria-label":`Пагинация таблицы`,children:[(0,e.jsxs)(`span`,{className:Y.paginationRange,"aria-live":`polite`,children:[G,`–`,K,` из `,L.length]}),(0,e.jsxs)(`div`,{className:Y.paginationControls,children:[(0,e.jsxs)(u,{variant:`empty`,size:`md`,disabled:z===0,"aria-label":`Предыдущая страница`,onClick:()=>{O(e=>Math.max(0,e-1))},children:[(0,e.jsx)(g,{name:`IconChevron`,width:18,height:18,className:Y.previousIcon}),(0,e.jsx)(`span`,{className:Y.paginationButtonLabel,children:`Назад`})]}),(0,e.jsx)(`div`,{className:Y.pageNumbers,children:V.map(t=>typeof t==`number`?(0,e.jsx)(u,{variant:t===z?`secondary`:`empty`,size:`md`,className:Y.pageButton,"aria-label":`Перейти на страницу ${t+1}`,"aria-current":t===z?`page`:void 0,onClick:()=>{O(t)},children:t+1},t):(0,e.jsx)(`span`,{className:Y.ellipsis,"aria-hidden":`true`,children:`…`},t))}),(0,e.jsxs)(u,{variant:`empty`,size:`md`,disabled:z===R-1,"aria-label":`Следующая страница`,onClick:()=>{O(e=>Math.min(R-1,e+1))},children:[(0,e.jsx)(`span`,{className:Y.paginationButtonLabel,children:`Вперёд`}),(0,e.jsx)(g,{name:`IconChevron`,width:18,height:18,className:Y.nextIcon})]})]})]})]})},ve=8,ye=6,be=120,xe=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},Se=({options:r,value:i,onChange:a,placeholder:o=`Выберите опции`,disabled:s=!1,stringWhileDisabled:c=!1,label:l,error:u,size:d=`md`,required:p=!1,hint:m,className:h=``,name:_,id:v,closeOnSelect:y=!1,needMark:b=!0,maxMenuHeight:x})=>{let S=(0,t.useId)(),C=v??`ds-dropdown-multiple-${_??S}`,w=`${C}-listbox`,[T,E]=(0,t.useState)(!1),[D,O]=(0,t.useState)(null),k=(0,t.useRef)(null),A=(0,t.useRef)(null),j=(0,t.useRef)(null),M=(0,t.useRef)([]),N=(0,t.useMemo)(()=>r.filter(e=>i.includes(e.value)),[r,i]).map(e=>e.label).join(`, `),P=m?`${C}-hint`:void 0,F=u?`${C}-error`:void 0,I=[P,F].filter(Boolean).join(` `)||void 0,L=s&&c,R=(0,t.useCallback)(()=>{let e=A.current,t=j.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerHeight-n.bottom-ve,a=n.top-ve,o=i<r.height&&a>i,s=Math.max(be,o?a:i),c=window.innerWidth-n.width-ve;O({top:o?Math.max(ve,n.top-r.height-ye):n.bottom+ye,left:Math.max(ve,Math.min(n.left,c)),width:n.width,maxHeight:Math.min(s,xe(x))})},[x]);(0,t.useLayoutEffect)(()=>{if(!T){O(null);return}return R(),window.addEventListener(`resize`,R),window.addEventListener(`scroll`,R,!0),()=>{window.removeEventListener(`resize`,R),window.removeEventListener(`scroll`,R,!0)}},[T,r.length,R]),(0,t.useEffect)(()=>{if(!T)return;let e=e=>{let t=e.target;!k.current?.contains(t)&&!j.current?.contains(t)&&E(!1)},t=e=>{e.key===`Escape`&&(E(!1),A.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[T]);let z=(e,t)=>{let n=q(r,e,t);n!==-1&&(M.current[n]?.focus(),M.current[n]?.scrollIntoView({block:`nearest`}))},B=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))),y&&(E(!1),A.current?.focus())},ee=T?(0,e.jsx)(`ul`,{ref:j,id:w,className:U.menu,role:`listbox`,"aria-label":l,"aria-multiselectable":`true`,style:D?{position:`fixed`,top:D.top,left:D.left,width:D.width,maxHeight:D.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=>{M.current[n]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:[U[d],U.option,a?U.selected:``].filter(Boolean).join(` `),onClick:()=>B(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;z(n+t,t)}if(e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;z(e.key===`Home`?0:r.length-1,t)}(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),B(t)),e.key===`Tab`&&E(!1)},children:[(0,e.jsx)(`span`,{children:t.label}),a&&b&&(0,e.jsx)(g,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:k,className:[U.wrapper,u?U.errorState:``,h].filter(Boolean).join(` `),children:[l&&(0,e.jsx)(f,{htmlFor:L?void 0:C,required:p,disabled:s,children:l}),(0,e.jsx)(`div`,{className:U.container,children:L?(0,e.jsx)(`div`,{id:C,className:`${U.disabledText} ${U[d]}`,"aria-describedby":I,children:N||o}):(0,e.jsxs)(`button`,{ref:A,id:C,type:`button`,name:_,className:`${U.trigger} ${U[d]}`,disabled:s,"aria-haspopup":`listbox`,"aria-expanded":T,"aria-controls":w,"aria-describedby":I,"aria-invalid":!!u,onClick:()=>E(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),E(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>z(e.key===`ArrowDown`?0:r.length-1,t))}},children:[(0,e.jsx)(`span`,{className:`${N?U.value:U.placeholder} ${U[d]}`,children:N||o}),(0,e.jsx)(`span`,{className:[U.chevron,T?U.chevronOpen:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})]})}),T&&(0,n.createPortal)(ee,document.body),m&&!u&&(0,e.jsx)(`span`,{id:P,className:U.message,children:m}),u&&(0,e.jsx)(`span`,{id:F,className:U.error,children:u})]})},Ce={wrapper:`_wrapper_1izp1_1`,control:`_control_1izp1_15`,input:`_input_1izp1_25`,disabledText:`_disabledText_1izp1_25`,sm:`_sm_1izp1_107`,md:`_md_1izp1_123`,lg:`_lg_1izp1_139`,inputError:`_inputError_1izp1_155`,trailingAction:`_trailingAction_1izp1_163`},we=({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:m=``,name:h,id:_,size:v=`md`,clearable:y=!0,required:b=!1,selectTextOnFocus:x=!1,isPassword:S=!1,passwordVisibleLabel:C=`Скрыть пароль`,passwordHiddenLabel:w=`Показать пароль`,onFocus:T,...E})=>{let D=(0,t.useId)(),O=_??`ds-input-${h??D}`,k=(0,t.useRef)(null),[A,j]=(0,t.useState)(!1),M=d?`${O}-hint`:void 0,N=u?`${O}-error`:void 0,P=String(n??``),F=[M,N].filter(Boolean).join(` `)||void 0,I=S?A?`text`:`password`:i;return(0,t.useEffect)(()=>{S||j(!1)},[S]),(0,e.jsxs)(`div`,{className:`${Ce.wrapper} ${m}`,children:[l&&(0,e.jsx)(f,{htmlFor:O,required:b,disabled:o,children:l}),o&&c?(0,e.jsx)(`div`,{id:O,className:Ce.disabledText,"aria-describedby":F,children:P||a}):(0,e.jsxs)(`div`,{className:Ce.control,children:[(0,e.jsx)(`input`,{ref:k,id:O,name:h,type:I,value:P,placeholder:a,disabled:o,readOnly:s,required:b,"aria-invalid":!!u,"aria-describedby":F,className:`${Ce.input} ${Ce[v]} ${u?Ce.inputError:``}`,onChange:e=>{if(i===`number`&&!S){let t=e.target.value===``?``:Number(e.target.value);r?.(t,e);return}r?.(e.target.value,e)},onFocus:e=>{x&&e.currentTarget.value&&e.currentTarget.select(),T?.(e)},...E}),S&&(0,e.jsx)(`button`,{type:`button`,className:Ce.trailingAction,disabled:o,"aria-label":A?C:w,"aria-pressed":A,onClick:()=>j(e=>!e),children:(0,e.jsx)(g,{name:A?`IconEyeOff`:`IconEye`,width:20,height:20})}),!S&&y&&P&&!o&&!s&&(0,e.jsx)(`button`,{type:`button`,className:Ce.trailingAction,"aria-label":`Очистить поле`,onClick:()=>{let e=k.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)(p,{id:M,children:d}),u&&(0,e.jsx)(p,{id:N,variant:`error`,children:u})]})},Te=(e,t)=>{let n=t.trim().toLocaleLowerCase();return n?e.filter(e=>e.label.toLocaleLowerCase().includes(n)||e.value.toLocaleLowerCase().includes(n)):e},Ee=(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},X={wrapper:`_wrapper_1v2s8_1`,control:`_control_1v2s8_17`,inputHost:`_inputHost_1v2s8_25`,sm:`_sm_1v2s8_41`,md:`_md_1v2s8_57`,lg:`_lg_1v2s8_71`,errorState:`_errorState_1v2s8_85`,disabledText:`_disabledText_1v2s8_93`,chevron:`_chevron_1v2s8_163`,chevronOpen:`_chevronOpen_1v2s8_197`,menu:`_menu_1v2s8_205`,menuEmpty:`_menuEmpty_1v2s8_233`,option:`_option_1v2s8_241`,empty:`_empty_1v2s8_241`,selected:`_selected_1v2s8_321`,active:`_active_1v2s8_321`,visuallyHidden:`_visuallyHidden_1v2s8_341`},De=8,Oe=6,ke=5,Ae=10,je={sm:30,md:40,lg:50},Me=({options:r,value:i,onChange:a,placeholder:o=`Начните вводить`,noResultsText:s=`Ничего не найдено`,disabled:c=!1,readOnly:l=!1,stringWhileDisabled:u=!1,label:d,error:m,hint:h,size:_=`md`,required:v=!1,className:y=``,name:b,id:x,needMark:S=!0})=>{let C=(0,t.useId)(),w=x??`ds-search-dropdown-${b??C}`,T=`${w}-listbox`,E=`${w}-status`,D=h?`${w}-hint`:void 0,O=m?`${w}-error`:void 0,k=[E,D,O].filter(Boolean).join(` `),A=(0,t.useRef)(null),j=(0,t.useRef)(null),M=(0,t.useRef)([]),[N,P]=(0,t.useState)(!1),[F,I]=(0,t.useState)(``),[L,R]=(0,t.useState)(-1),[z,B]=(0,t.useState)(null),ee=(0,t.useMemo)(()=>r.find(e=>e.value===i),[r,i]),V=(0,t.useMemo)(()=>Te(r,F),[r,F]),te=c&&u,H=L>=0?V[L]:void 0;(0,t.useEffect)(()=>I(ee?.label??``),[ee?.label,i]);let U=(0,t.useCallback)(()=>A.current?.querySelector(`input`)??null,[]),W=(0,t.useCallback)((e,t)=>Ee(V,e,t),[V]),G=(0,t.useCallback)(e=>{R(e),!(e<0)&&requestAnimationFrame(()=>M.current[e]?.scrollIntoView({block:`nearest`}))},[]),K=(0,t.useCallback)(()=>{let e=U();if(!e)return;let t=e.getBoundingClientRect(),n=Math.max(1,Math.min(V.length,ke))*je[_]+Ae,r=window.innerHeight-t.bottom-De,i=t.top-De,a=r<n&&i>r,o=a?i:r,s=Math.max(je[_]+Ae,Math.min(n,o)),c=window.innerWidth-t.width-De,l=Math.max(De,Math.min(t.left,c)),u=a?Math.max(De,t.top-s-Oe):t.bottom+Oe;B({top:u,left:l,width:t.width,maxHeight:s})},[V.length,U,_]);(0,t.useLayoutEffect)(()=>{if(!N){B(null);return}return K(),window.addEventListener(`resize`,K),window.addEventListener(`scroll`,K,!0),()=>{window.removeEventListener(`resize`,K),window.removeEventListener(`scroll`,K,!0)}},[N,K]),(0,t.useEffect)(()=>{if(!N)return;let e=e=>{let t=e.target;!A.current?.contains(t)&&!j.current?.contains(t)&&(P(!1),R(-1))};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[N]);let q=()=>{c||l||(P(!0),R(W(0,1)))},J=e=>{e.disabled||(I(e.label),P(!1),R(-1),a?.(e.value,e),U()?.focus())},ne=N?(0,e.jsx)(`ul`,{ref:j,id:T,className:`${X.menu} ${V.length===0?X.menuEmpty:``}`,role:`listbox`,"aria-label":d,style:z?{top:z.top,left:z.left,width:z.width,maxHeight:z.maxHeight}:{top:0,left:0,visibility:`hidden`,maxHeight:0},children:V.length===0?(0,e.jsx)(`li`,{className:`${X.empty} ${X[_]}`,children:s}):V.map((t,n)=>{let r=t.value===i,a=n===L;return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{M.current[n]=e},id:`${w}-option-${n}`,type:`button`,role:`option`,tabIndex:-1,disabled:t.disabled,"aria-disabled":t.disabled,"aria-selected":r,className:[X.option,X[_],r?X.selected:``,a?X.active:``].filter(Boolean).join(` `),onPointerMove:()=>{t.disabled||R(n)},onClick:()=>J(t),children:[(0,e.jsx)(`span`,{children:t.label}),r&&S&&(0,e.jsx)(g,{name:`IconCheck`,width:16,height:16})]})},t.value)})}):null;return(0,e.jsxs)(`div`,{ref:A,className:[X.wrapper,m?X.errorState:``,y].filter(Boolean).join(` `),children:[d&&(0,e.jsx)(f,{htmlFor:te?void 0:w,required:v,disabled:c,children:d}),te?(0,e.jsx)(`div`,{className:`${X.disabledText} ${X[_]}`,children:ee?.label??o}):(0,e.jsxs)(`div`,{className:X.control,children:[(0,e.jsx)(we,{id:w,name:b,value:F,placeholder:o,disabled:c,readOnly:l,required:v,size:_,clearable:!1,autoComplete:`off`,className:`${X.inputHost} ${X[_]}`,onFocus:q,onChange:e=>{let t=String(e),n=Te(r,t);I(t),P(!0),R(Ee(n,0,1))},role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":N,"aria-controls":T,"aria-activedescendant":H?`${w}-option-${L}`:void 0,"aria-invalid":!!m,"aria-describedby":k,onClick:q,onKeyDown:e=>{if(!(c||l)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1,n=L>=0?L+t:t===1?0:V.length-1;P(!0),G(W(n,t))}else if(e.key===`Home`||e.key===`End`){if(!N)return;e.preventDefault();let t=e.key===`Home`?1:-1;G(W(e.key===`Home`?0:V.length-1,t))}else e.key===`Enter`&&N&&H?(e.preventDefault(),J(H)):e.key===`Escape`&&N?(e.preventDefault(),P(!1),R(-1)):e.key===`Tab`&&(P(!1),R(-1))}}}),(0,e.jsx)(`span`,{className:`${X.chevron} ${N?X.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})]}),N&&typeof document<`u`&&(0,n.createPortal)(ne,document.body),(0,e.jsxs)(`span`,{id:E,className:X.visuallyHidden,"aria-live":`polite`,children:[`Найдено вариантов: `,V.length]}),h&&!m&&(0,e.jsx)(p,{id:D,children:h}),m&&(0,e.jsx)(p,{id:O,variant:`error`,children:m})]})},Ne={root:`_root_11adi_1`,header:`_header_11adi_21`,title:`_title_11adi_41`,dismiss:`_dismiss_11adi_55`,content:`_content_11adi_65`},Pe=({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:`${Ne.root} ${c}`,"aria-labelledby":l,children:[(0,e.jsxs)(`header`,{className:Ne.header,children:[(0,e.jsx)(s,{id:l,className:Ne.title,children:n}),i&&(0,e.jsx)(u,{className:Ne.dismiss,variant:`empty`,onClick:a,"aria-label":o,children:(0,e.jsx)(g,{name:`IconCross`,width:20,height:20})})]}),(0,e.jsx)(`div`,{className:Ne.content,children:r})]})},Fe={wrapper:`_wrapper_1np4e_1`,input:`_input_1np4e_21`,switch:`_switch_1np4e_35`,thumb:`_thumb_1np4e_67`,label:`_label_1np4e_113`,disabled:`_disabled_1np4e_125`},Ie=({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:`${Fe.wrapper} ${a?Fe.disabled:``} ${s}`,children:[(0,e.jsx)(`input`,{id:f,className:Fe.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:Fe.switch,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:Fe.thumb})}),i&&(0,e.jsx)(`span`,{className:Fe.label,children:i})]})},Le={root:`_root_1ecm3_1`,grid:`_grid_1ecm3_13`,actions:`_actions_1ecm3_27`},Re=({filters:t,values:n,onChange:r,onApply:i,onReset:a,applyMode:o=`instant`,loading:s=!1,disabled:c=!1,className:l=``})=>{let d=(e,t)=>{let a={...n,[e]:t};r?.(a,e),o===`instant`&&i?.(a)};return(0,e.jsxs)(`section`,{className:`${Le.root} ${l}`,"aria-label":`Фильтры`,"aria-busy":s,children:[(0,e.jsx)(`div`,{className:Le.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)(we,{...n,type:`number`,value:i??``,onChange:e=>d(t.id,e)},t.id):(0,e.jsx)(we,{...n,type:`text`,value:String(i??``),onChange:e=>d(t.id,e)},t.id)}if(t.type===`dropdown`)return(0,e.jsx)(ne,{label:t.label,hint:t.hint,placeholder:t.placeholder,options:t.options,value:String(i??``),disabled:r,onChange:e=>d(t.id,e)},t.id);if(t.type===`multiple`)return(0,e.jsx)(Se,{label:t.label,hint:t.hint,placeholder:t.placeholder,options:t.options,value:Array.isArray(i)?i:[],disabled:r,onChange:e=>d(t.id,e)},t.id);if(t.type===`checkbox`)return(0,e.jsx)(v,{label:t.label,hint:t.hint,checked:!!i,disabled:r,onChange:e=>d(t.id,e)},t.id);if(t.type===`radio`)return(0,e.jsx)(Ie,{label:t.label,checked:!!i,disabled:r,onChange:e=>d(t.id,e)},t.id);let a=i&&typeof i==`object`&&!Array.isArray(i)?i:{from:null,to:null};return(0,e.jsx)(V,{hint:t.hint,mode:t.mode,min:t.min,max:t.max,value:a,disabled:r,onDraftChange:e=>d(t.id,e)},t.id)})}),(a||o===`manual`)&&(0,e.jsxs)(`div`,{className:Le.actions,children:[a&&(0,e.jsx)(u,{variant:`destructiveOutline`,disabled:c||s,onClick:a,children:`Сбросить`}),o===`manual`&&(0,e.jsx)(u,{isLoading:s,disabled:c,onClick:()=>i?.(n),children:`Применить`})]})]})},Z={wrapper:`_wrapper_i20hz_1`,dropzone:`_dropzone_i20hz_15`,dragActive:`_dragActive_i20hz_45`,disabled:`_disabled_i20hz_59`,error:`_error_i20hz_69`,nativeInput:`_nativeInput_i20hz_77`,empty:`_empty_i20hz_95`,uploadIcon:`_uploadIcon_i20hz_111`,files:`_files_i20hz_133`,file:`_file_i20hz_133`,fileName:`_fileName_i20hz_175`,fileSize:`_fileSize_i20hz_187`},ze=e=>`${e.name}:${e.size}:${e.lastModified}`,Be=e=>e<1024?`${e} Б`:e<1048576?`${(e/1024).toFixed(1)} КБ`:`${(e/1024/1024).toFixed(1)} МБ`,Ve=(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),He=({value:n,onChange:r,multiple:i=!1,accept:a,maxSize:o,maxFiles:s,label:c,hint:l,error:d,required:m=!1,disabled:h=!1,readOnly:_=!1,name:v,id:y,className:b=``,dropLabel:x=`Перетащите файлы в эту область`,browseLabel:S=`Выбрать файлы`,addMoreLabel:C=`Добавить ещё`,onReject:w})=>{let T=(0,t.useId)(),E=y??`ds-file-input-${v??T}`,D=(0,t.useRef)(null),O=(0,t.useRef)(0),[k,A]=(0,t.useState)(!1),j=l?`${E}-hint`:void 0,M=d?`${E}-error`:void 0,N=[j,M].filter(Boolean).join(` `)||void 0,P=!h&&!_,F=e=>{let t=[],c=new Set(n.map(ze)),l=e.filter(e=>Ve(e,a)?o!==void 0&&e.size>o?(t.push({file:e,reason:`maxSize`}),!1):!c.has(ze(e))&&(c.add(ze(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&&w?.(t),l.length&&r?.(d),D.current&&(D.current.value=``)};return(0,e.jsxs)(`div`,{className:`${Z.wrapper} ${b}`,children:[c&&(0,e.jsx)(f,{htmlFor:E,required:m,disabled:h,children:c}),(0,e.jsxs)(`div`,{className:`${Z.dropzone} ${k?Z.dragActive:``} ${h?Z.disabled:``} ${d?Z.error:``}`,onDragEnter:e=>{e.preventDefault(),P&&++O.current===1&&A(!0)},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{e.preventDefault(),--O.current<=0&&(O.current=0,A(!1))},onDrop:e=>{e.preventDefault(),O.current=0,A(!1),P&&F(Array.from(e.dataTransfer.files))},children:[(0,e.jsx)(`input`,{ref:D,id:E,name:v,className:Z.nativeInput,type:`file`,multiple:i,accept:a,required:m&&n.length===0,disabled:!P,"aria-describedby":N,"aria-invalid":!!d,onChange:e=>F(Array.from(e.target.files??[]))}),n.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`ul`,{className:Z.files,"aria-live":`polite`,children:n.map((t,i)=>(0,e.jsxs)(`li`,{className:Z.file,children:[(0,e.jsx)(`span`,{className:Z.fileName,title:t.name,children:t.name}),(0,e.jsx)(`span`,{className:Z.fileSize,children:Be(t.size)}),P&&(0,e.jsx)(u,{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})})]},ze(t)))}),P&&(i||n.length===0)&&(0,e.jsx)(u,{className:Z.browseButton,size:`sm`,onClick:()=>D.current?.click(),children:C}),P&&!i&&(0,e.jsx)(u,{className:Z.browseButton,size:`sm`,onClick:()=>D.current?.click(),children:S})]}):(0,e.jsxs)(`div`,{className:Z.empty,children:[(0,e.jsx)(`span`,{className:Z.uploadIcon,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconUpload`,width:24,height:24})}),(0,e.jsx)(`strong`,{children:k?`Отпустите файлы здесь`:x}),!k&&P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`span`,{children:`или`}),(0,e.jsx)(u,{onClick:()=>D.current?.click(),children:S})]})]})]}),l&&!d&&(0,e.jsx)(p,{id:j,children:l}),d&&(0,e.jsx)(p,{id:M,variant:`error`,live:!0,children:d})]})},Ue={wrapper:`_wrapper_x2gki_1`,control:`_control_x2gki_15`,textarea:`_textarea_x2gki_25`,disabledText:`_disabledText_x2gki_27`,sm:`_sm_x2gki_103`,md:`_md_x2gki_117`,lg:`_lg_x2gki_131`,autoResize:`_autoResize_x2gki_145`,manualResize:`_manualResize_x2gki_155`,textareaError:`_textareaError_x2gki_163`,clearAction:`_clearAction_x2gki_171`,messages:`_messages_x2gki_251`,counter:`_counter_x2gki_265`},We=2;function Ge(e){let t=window.getComputedStyle(e),n=Number.parseFloat(t.lineHeight);return Number.isFinite(n)?n:Number.parseFloat(t.fontSize)*1.4}function Ke({value:n,onChange:r,placeholder:i=``,disabled:a=!1,readOnly:o=!1,stringWhileDisabled:s=!1,label:c,error:l,hint:u,className:d=``,name:m,id:h,size:_=`md`,clearable:v=!1,required:y=!1,maxLength:b,showCount:x=!1,minRows:S=We,maxRows:C,autoResize:w=!0,...T}){let E=(0,t.useId)(),D=h??`ds-textarea-${m??E}`,O=(0,t.useRef)(null),k=u?`${D}-hint`:void 0,A=l?`${D}-error`:void 0,j=x&&b?`${D}-count`:void 0,M=[k,A,j].filter(Boolean).join(` `)||void 0,N=Math.max(1,S),P=C===void 0?void 0:Math.max(N,C),F=(0,t.useCallback)(()=>{let e=O.current;if(!e||!w)return;let t=window.getComputedStyle(e),n=Ge(e),r=Number.parseFloat(t.paddingTop)+Number.parseFloat(t.paddingBottom)+Number.parseFloat(t.borderTopWidth)+Number.parseFloat(t.borderBottomWidth),i=n*N+r,a=P===void 0?1/0:n*P+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`},[w,P,N]);(0,t.useEffect)(()=>{F()},[F,n]),(0,t.useEffect)(()=>{if(!w)return;window.addEventListener(`resize`,F);let e=O.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,F())}),t.observe(e)}return()=>{window.removeEventListener(`resize`,F),t?.disconnect()}},[w,F]);let I=e=>{r?.(e.target.value,e),F()},L=()=>{let e=O.current;e&&((Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus(),F())},R={"--ds-textarea-min-rows":N};return(0,e.jsxs)(`div`,{className:`${Ue.wrapper} ${d}`,children:[c&&(0,e.jsx)(f,{htmlFor:D,required:y,disabled:a,children:c}),a&&s?(0,e.jsx)(`div`,{id:D,className:`${Ue.disabledText} ${Ue[_]}`,style:R,"aria-describedby":M,children:n||i}):(0,e.jsxs)(`div`,{className:Ue.control,children:[(0,e.jsx)(`textarea`,{ref:O,id:D,name:m,value:n,placeholder:i,disabled:a,readOnly:o,required:y,maxLength:b,rows:N,style:R,"aria-invalid":!!l,"aria-describedby":M,className:`${Ue.textarea} ${Ue[_]} ${w?Ue.autoResize:Ue.manualResize} ${l?Ue.textareaError:``}`,onChange:I,...T}),v&&n&&!a&&!o&&(0,e.jsx)(`button`,{type:`button`,className:Ue.clearAction,"aria-label":`Очистить поле`,onClick:L,children:(0,e.jsx)(g,{name:`IconCross`,width:20,height:20})})]}),(u||l||j)&&(0,e.jsxs)(`div`,{className:Ue.messages,children:[u&&!l&&(0,e.jsx)(p,{id:k,children:u}),l&&(0,e.jsx)(p,{id:A,variant:`error`,children:l}),j&&(0,e.jsxs)(`span`,{id:j,className:Ue.counter,children:[n.length,` / `,b]})]})]})}var qe=0,Q=(0,i.create)((e,t)=>({modals:[],openModal:(t,n={},r={})=>{qe+=1;let i=`ds-modal-${qe}`;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?.()))}})),Je=()=>{Q.getState().closeAllModals(),qe=0},Ye={layer:`_layer_1mvch_1`,backdrop:`_backdrop_1mvch_15`,panel:`_panel_1mvch_35`,header:`_header_1mvch_63`,title:`_title_1mvch_81`,description:`_description_1mvch_93`,content:`_content_1mvch_107`,close:`_close_1mvch_115`},Xe=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,Ze=(0,t.createContext)({});function Qe(e){if(e.key!==`Tab`)return;let t=Array.from(e.currentTarget.querySelectorAll(Xe));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 $e=({children:n,title:r,description:i,modalId:a,closeLabel:o=`Закрыть модальное окно`,className:s=``,role:c=`dialog`})=>{let l=(0,t.useContext)(Ze),d=r??l.title,f=i??l.description,p=(0,t.useId)(),m=(0,t.useId)(),h=(0,t.useRef)(null),_=Q(e=>e.closeModal),v=d!=null,y=f!=null;return(0,t.useEffect)(()=>{let e=document.activeElement,t=h.current;return(t?.querySelector(Xe)??t)?.focus(),()=>e?.focus()},[]),(0,e.jsxs)(`div`,{ref:h,className:`${Ye.panel} ${s}`,role:c,"aria-modal":`true`,"aria-labelledby":v?p:void 0,"aria-describedby":y?m:void 0,tabIndex:-1,onKeyDown:Qe,children:[(v||o)&&(0,e.jsxs)(`header`,{className:Ye.header,children:[v&&(0,e.jsx)(`h2`,{id:p,className:Ye.title,children:d}),(0,e.jsx)(u,{className:Ye.close,variant:`empty`,size:`sm`,"aria-label":o,onClick:()=>_(a),children:(0,e.jsx)(g,{name:`IconCross`,width:24,height:24})})]}),y&&(0,e.jsx)(`p`,{id:m,className:Ye.description,children:f}),(0,e.jsx)(`div`,{className:Ye.content,children:n})]})},et=({registry:r})=>{let i=Q(e=>e.modals),a=Q(e=>e.closeModal),o=Q(e=>e.closeAllModals);return(0,t.useEffect)(()=>{let e=e=>{if(e.key!==`Escape`)return;let t=Q.getState().modals.at(-1);t?.closeOnEscape&&a(t.id)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),(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:Ye.layer,"aria-label":`Модальные окна`,children:i.map((t,n)=>{let s=r[t.name];return s?(0,e.jsx)(`div`,{className:Ye.backdrop,"aria-hidden":n!==i.length-1||void 0,inert:n!==i.length-1||void 0,onMouseDown:e=>{e.target===e.currentTarget&&t.closeOnBackdrop&&a(t.id)},children:(0,e.jsx)(Ze.Provider,{value:{title:t.title??t.payload.title,description:t.description??t.payload.description},children:(0,e.jsx)(s,{...t.payload,modalId:t.id,close:()=>a(t.id),closeAll:o})})},t.id):null})}),document.body)},tt=({registry:n,children:r,lockBodyScroll:i=!0})=>{let a=Q(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)(et,{registry:n})]})},nt=e=>e,rt={message:`_message_c23ie_1`,actions:`_actions_c23ie_13`},it=new Map,at=0,ot=({modalId:t,close:n,title:r=`Подтверждение`,message:i=`Продолжить действие?`,confirmLabel:a=`Подтвердить`,cancelLabel:o=`Отмена`,tone:s=`default`,requestId:c})=>{let l=e=>{it.get(c)?.(e),it.delete(c),n()};return(0,e.jsxs)($e,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:rt.message,children:i}),(0,e.jsxs)(`div`,{className:rt.actions,children:[(0,e.jsx)(u,{variant:`outline`,onClick:()=>l(!1),children:o}),(0,e.jsx)(u,{variant:s===`danger`?`destructive`:`primary`,onClick:()=>l(!0),children:a})]})]})},st=({modalId:t,close:n,title:r=`Ошибка`,message:i,closeLabel:a=`Закрыть`})=>(0,e.jsxs)($e,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:rt.message,children:i}),(0,e.jsx)(`div`,{className:rt.actions,children:(0,e.jsx)(u,{onClick:n,children:a})})]}),ct=nt({ConfirmModal:ot,ErrorModal:st}),lt=()=>{let e=Q(e=>e.openModal);return(t={})=>new Promise(n=>{at+=1;let r=`confirm-${at}`;it.set(r,n),e(`ConfirmModal`,{...t,requestId:r},{closeOnEscape:!1,onClose:()=>{it.get(r)?.(!1),it.delete(r)}})})},ut=e=>e instanceof Error?e.message:typeof e==`string`?e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`?e.message:`Произошла неизвестная ошибка`,dt=()=>{let e=Q(e=>e.openModal);return{showError:(t,n)=>e(`ErrorModal`,{title:n,message:ut(t)})}},ft=(0,i.create)(()=>({})),pt=(0,i.create)(()=>({})),mt=()=>{let e=Q(e=>e.modals),n=Q(e=>e.openModal),r=Q(e=>e.closeModal),i=Q(e=>e.closeTopModal),a=Q(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])},ht={wrapper:`_wrapper_71h8n_1`,container:`_container_71h8n_15`,inner:`_inner_71h8n_35`,cube:`_cube_71h8n_53`,jump:`_jump_71h8n_1`,cube__inner:`_cube__inner_71h8n_67`,morph:`_morph_71h8n_1`},gt=()=>(0,e.jsx)(`div`,{className:ht.wrapper,children:(0,e.jsx)(`div`,{className:ht.container,children:(0,e.jsxs)(`div`,{className:ht.inner,children:[(0,e.jsx)(`div`,{className:ht.cube,children:(0,e.jsx)(`div`,{className:ht.cube__inner})}),(0,e.jsx)(`div`,{className:ht.cube,children:(0,e.jsx)(`div`,{className:ht.cube__inner})}),(0,e.jsx)(`div`,{className:ht.cube,children:(0,e.jsx)(`div`,{className:ht.cube__inner})})]})})}),_t={viewport:`_viewport_3qpmj_1`,"top-right":`_top-right_3qpmj_21`,"top-left":`_top-left_3qpmj_31`,"bottom-right":`_bottom-right_3qpmj_41`,"bottom-left":`_bottom-left_3qpmj_51`,toast:`_toast_3qpmj_61`,body:`_body_3qpmj_89`,info:`_info_3qpmj_109`,success:`_success_3qpmj_117`,warning:`_warning_3qpmj_125`,error:`_error_3qpmj_133`},vt={info:{name:`IconInfoCircle`,color:`var(--color-primary)`},success:{name:`IconSuccessCircle`,color:`var(--color-success)`},warning:{name:`IconWarning`,color:`var(--color-warning)`},error:{name:`IconWarning`,color:`var(--color-error)`}},yt=({toast:n,onClose:r})=>{let[i,a]=(0,t.useState)(!1),o=(0,t.useRef)(n.duration),s=(0,t.useRef)(Date.now());return(0,t.useEffect)(()=>{if(i||n.duration<=0)return;s.current=Date.now();let e=setTimeout(()=>r(n.id),o.current);return()=>{clearTimeout(e),o.current=Math.max(0,o.current-(Date.now()-s.current))}},[r,i,n.duration,n.id]),(0,e.jsxs)(`article`,{className:`${_t.toast} ${_t[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`,{children:(0,e.jsx)(g,{...vt[n.variant],width:24,height:24})}),(0,e.jsxs)(`div`,{className:_t.body,children:[n.title&&(0,e.jsx)(`strong`,{children:n.title}),(0,e.jsx)(`div`,{children:n.message}),n.action&&(0,e.jsx)(u,{variant:`empty`,size:`sm`,onClick:()=>{n.action?.onClick(),(n.action?.dismissOnClick??!0)&&r(n.id)},children:n.action.label})]}),n.closable&&(0,e.jsx)(u,{variant:`empty`,size:`sm`,"aria-label":`Закрыть уведомление`,onClick:()=>r(n.id),children:(0,e.jsx)(g,{name:`IconCross`,width:24,height:24})})]})},bt=0,xt=(0,i.create)(e=>({toasts:[],showToast:t=>{bt+=1;let n=`ds-toast-${bt}`;return e(e=>({toasts:[...e.toasts,{variant:`info`,duration:5e3,closable:!0,...t,id:n}]})),n},removeToast:t=>e(e=>({toasts:e.toasts.filter(e=>e.id!==t)})),clearToasts:()=>e({toasts:[]})})),St=()=>xt.setState({toasts:[]}),Ct=({position:t=`top-right`})=>{let n=xt(e=>e.toasts),r=xt(e=>e.removeToast);return(0,e.jsx)(`div`,{className:`${_t.viewport} ${_t[t]}`,"aria-label":`Уведомления`,children:n.map(t=>(0,e.jsx)(yt,{toast:t,onClose:r},t.id))})},wt=()=>{let e=xt(e=>e.showToast),n=xt(e=>e.removeToast),r=xt(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])},Tt={root:`_root_8dm5q_1`,tooltip:`_tooltip_8dm5q_11`,"ds-tooltip-in":`_ds-tooltip-in_8dm5q_1`,top:`_top_8dm5q_43`,bottom:`_bottom_8dm5q_55`,left:`_left_8dm5q_67`,right:`_right_8dm5q_79`},Et=({content:n,children:r,placement:i=`top`,delay:a=450,disabled:o=!1,maxWidth:s=280,className:c=``})=>{let l=(0,t.useId)(),[u,d]=(0,t.useState)(!1),f=(0,t.useRef)(null),p=()=>{o||!n||(f.current=setTimeout(()=>d(!0),a))},m=()=>{f.current&&clearTimeout(f.current),d(!1)};if((0,t.useEffect)(()=>{let e=e=>{e.key===`Escape`&&m()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),f.current&&clearTimeout(f.current)}},[]),!(0,t.isValidElement)(r))return r;let h=(0,t.cloneElement)(r,{"aria-describedby":u?l:void 0,onMouseEnter:p,onMouseLeave:m,onFocus:p,onBlur:m});return(0,e.jsxs)(`span`,{className:`${Tt.root} ${c}`,onPointerDown:u?m:p,children:[h,u&&(0,e.jsx)(`span`,{id:l,role:`tooltip`,className:`${Tt.tooltip} ${Tt[i]}`,style:{maxWidth:s},children:n})]})},Dt=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},$={root:`_root_1h73w_1`,frame:`_frame_1h73w_35`,video:`_video_1h73w_65`,overlay:`_overlay_1h73w_81`,state:`_state_1h73w_83`,buffering:`_buffering_1h73w_85`,loaderViewport:`_loaderViewport_1h73w_145`,loaderScale:`_loaderScale_1h73w_157`,stateIcon:`_stateIcon_1h73w_171`,empty:`_empty_1h73w_203`,error:`_error_1h73w_213`,replay:`_replay_1h73w_225`,controlsLayer:`_controlsLayer_1h73w_261`,controlsVisible:`_controlsVisible_1h73w_287`,controls:`_controls_1h73w_261`,controlGroup:`_controlGroup_1h73w_311`,controlButton:`_controlButton_1h73w_337`,settingsAction:`_settingsAction_1h73w_369`,timeline:`_timeline_1h73w_401`,volume:`_volume_1h73w_403`,settings:`_settings_1h73w_369`,playButton:`_playButton_1h73w_417`,volumeGroup:`_volumeGroup_1h73w_431`,timelineGroup:`_timelineGroup_1h73w_455`,time:`_time_1h73w_401`,settingsActionLabel:`_settingsActionLabel_1h73w_693`,caption:`_caption_1h73w_705`,fullscreen:`_fullscreen_1h73w_719`},Ot=2500,kt=5,At=.05,jt=[.5,.75,1,1.25,1.5,2],Mt=({sources:n,tracks:r=[],title:i,aspectRatio:a=`16 / 9`,objectFit:o=`contain`,loading:s=!1,error:l,fallback:d,className:f=``,controls:p=!0,playsInline:m=!0,...h})=>{let _=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(null),b=(0,t.useRef)(void 0),[x,S]=(0,t.useState)(!1),[C,w]=(0,t.useState)(n.length>0),[T,E]=(0,t.useState)(!1),[D,O]=(0,t.useState)(!1),[k,A]=(0,t.useState)(!1),[j,M]=(0,t.useState)(0),[N,P]=(0,t.useState)(0),[F,I]=(0,t.useState)(0),[L,R]=(0,t.useState)(1),[z,B]=(0,t.useState)(!!h.muted),[ee,V]=(0,t.useState)(1),[te,H]=(0,t.useState)(!!h.loop),[U,W]=(0,t.useState)(-1),[G,K]=(0,t.useState)(!1),[q,J]=(0,t.useState)(!0),[ne,re]=(0,t.useState)(!1),[ie,Y]=(0,t.useState)(!1),ae=n.map(({src:e,type:t})=>`${e}:${t??``}`).join(`|`),oe=r.map((e,t)=>({track:e,index:t})).filter(({track:e})=>e.kind===`captions`||e.kind===`subtitles`),se=l??(x?`Не удалось воспроизвести видео`:void 0),ce=s||C&&!se&&n.length>0,le=!ce&&!se&&n.length===0,ue=typeof document<`u`&&`pictureInPictureEnabled`in document&&document.pictureInPictureEnabled,de=(0,t.useCallback)(()=>{J(!0),window.clearTimeout(b.current),D&&!G&&(b.current=window.setTimeout(()=>J(!1),Ot))},[D,G]);(0,t.useEffect)(()=>{S(!1),w(n.length>0),E(!1),O(!1),A(!1),M(0),P(0),I(0)},[ae,n.length]),(0,t.useEffect)(()=>(de(),()=>window.clearTimeout(b.current)),[de]),(0,t.useEffect)(()=>{let e=()=>re(document.fullscreenElement===v.current),t=()=>Y(document.pictureInPictureElement===y.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(!G)return;let e=e=>{_.current?.contains(e.target)||K(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[G]);let fe=async()=>{let e=y.current;if(!(!e||se||ce)){if(e.paused||e.ended){e.ended&&(e.currentTime=0);try{await e.play()}catch{S(!0)}}else e.pause()}},pe=()=>{let e=y.current;e&&(e.muted=!e.muted)},me=e=>{let t=y.current;t&&(t.volume=Math.min(1,Math.max(0,e)),t.muted=t.volume===0)},he=e=>{let t=y.current;!t||!N||(t.currentTime=Math.min(N,Math.max(0,e)),M(t.currentTime))},ge=async()=>{if(v.current)try{document.fullscreenElement?await document.exitFullscreen():await v.current.requestFullscreen()}catch{re(!1)}},_e=async()=>{let e=y.current;if(!(!e||!ue))try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch{Y(!1)}},ve=e=>{let t=y.current;t&&(Array.from(t.textTracks).forEach((t,n)=>{t.mode=n===e?`showing`:`disabled`}),W(e))},ye=e=>{let t=e.target;if(/^(INPUT|SELECT|BUTTON)$/.test(t.tagName))return;let n=e.key.toLowerCase();n===` `||n===`k`?(e.preventDefault(),fe()):n===`m`?(e.preventDefault(),pe()):n===`f`?(e.preventDefault(),ge()):n===`c`&&oe.length?(e.preventDefault(),ve(U===-1?oe[0].index:-1)):e.key===`ArrowLeft`||e.key===`ArrowRight`?(e.preventDefault(),he(j+(e.key===`ArrowRight`?kt:-5))):e.key===`ArrowUp`||e.key===`ArrowDown`?(e.preventDefault(),me(L+(e.key===`ArrowUp`?At:-.05))):e.key===`Escape`&&K(!1),de()},be=()=>{let e=y.current;S(!1),w(!0),e?.load()},xe={"--video-progress":`${N?j/N*100:0}%`,"--video-buffered":`${F*100}%`};return(0,e.jsxs)(`figure`,{ref:_,className:`${$.root} ${f}`,onKeyDown:ye,children:[(0,e.jsxs)(`div`,{ref:v,className:`${$.frame} ${ne?$.fullscreen:``}`,style:{aspectRatio:a},"aria-busy":ce||void 0,tabIndex:p&&n.length?0:void 0,onPointerMove:de,onPointerDown:de,onFocusCapture:de,onMouseLeave:()=>{D&&!G&&J(!1)},children:[n.length>0&&(0,e.jsxs)(`video`,{...h,ref:y,"aria-label":i,controls:!1,playsInline:m,loop:te,className:$.video,style:{objectFit:o},onClick:e=>{h.onClick?.(e),fe()},onDoubleClick:e=>{h.onDoubleClick?.(e),ge()},onLoadStart:e=>{w(!0),h.onLoadStart?.(e)},onLoadedMetadata:e=>{P(e.currentTarget.duration||0);let t=oe.find(({track:e})=>e.default);ve(t?.index??-1),h.onLoadedMetadata?.(e)},onDurationChange:e=>{P(e.currentTarget.duration||0),h.onDurationChange?.(e)},onTimeUpdate:e=>{M(e.currentTarget.currentTime),h.onTimeUpdate?.(e)},onProgress:e=>{let t=e.currentTarget;t.duration&&t.buffered.length&&I(t.buffered.end(t.buffered.length-1)/t.duration),h.onProgress?.(e)},onLoadedData:e=>{w(!1),E(!1),h.onLoadedData?.(e)},onCanPlay:e=>{w(!1),E(!1),h.onCanPlay?.(e)},onWaiting:e=>{E(!0),h.onWaiting?.(e)},onPlaying:e=>{O(!0),A(!1),E(!1),h.onPlaying?.(e)},onPlay:e=>{O(!0),h.onPlay?.(e)},onPause:e=>{O(!1),h.onPause?.(e)},onEnded:e=>{O(!1),A(!0),J(!0),h.onEnded?.(e)},onVolumeChange:e=>{R(e.currentTarget.volume),B(e.currentTarget.muted),h.onVolumeChange?.(e)},onRateChange:e=>{V(e.currentTarget.playbackRate),h.onRateChange?.(e)},onError:e=>{w(!1),E(!1),S(!0),h.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}`))]}),ce&&(0,e.jsxs)(`div`,{className:$.overlay,role:`status`,"aria-live":`polite`,children:[(0,e.jsx)(`div`,{className:$.loaderViewport,"aria-hidden":`true`,children:(0,e.jsx)(`div`,{className:$.loaderScale,children:(0,e.jsx)(gt,{})})}),(0,e.jsx)(`span`,{children:`Загрузка видео`})]}),!ce&&T&&!se&&(0,e.jsx)(`div`,{className:$.buffering,role:`status`,"aria-label":`Буферизация видео`,children:(0,e.jsx)(c,{variant:`empty`})}),le&&(0,e.jsxs)(`div`,{className:`${$.state} ${$.empty}`,role:`status`,children:[(0,e.jsx)(g,{name:`IconInfoCircle`,className:$.stateIcon,width:40,height:40}),(0,e.jsx)(`strong`,{children:`Видео отсутствует`}),d??(0,e.jsx)(`span`,{children:`Источник видео не указан`})]}),!ce&&se&&(0,e.jsxs)(`div`,{className:`${$.state} ${$.error}`,role:`alert`,children:[(0,e.jsx)(g,{name:`IconWarning`,className:$.stateIcon,width:40,height:40}),d??(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`strong`,{children:`Видео недоступно`}),(0,e.jsx)(`span`,{children:se})]}),n.length>0&&(0,e.jsx)(u,{size:`sm`,variant:`secondary`,onClick:be,children:`Повторить`})]}),!ce&&!se&&k&&(0,e.jsx)(`button`,{type:`button`,className:$.replay,"aria-label":`Воспроизвести заново`,onClick:()=>void fe(),children:(0,e.jsx)(g,{name:`IconReplay`,width:28,height:28})}),p&&n.length>0&&!ce&&!se&&(0,e.jsxs)(`div`,{className:`${$.controlsLayer} ${q||!D?$.controlsVisible:``}`,onClick:e=>e.stopPropagation(),children:[G&&(0,e.jsxs)(`div`,{className:$.settings,role:`dialog`,"aria-label":`Настройки видео`,children:[(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Скорость`}),(0,e.jsx)(`select`,{value:ee,onChange:e=>{let t=Number(e.target.value);y.current&&(y.current.playbackRate=t)},children:jt.map(t=>(0,e.jsxs)(`option`,{value:t,children:[t,`×`]},t))})]}),oe.length>0&&(0,e.jsxs)(`label`,{children:[(0,e.jsx)(`span`,{children:`Субтитры`}),(0,e.jsxs)(`select`,{value:U,onChange:e=>ve(Number(e.target.value)),children:[(0,e.jsx)(`option`,{value:-1,children:`Выключены`}),oe.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:$.settingsAction,"aria-pressed":te,onClick:()=>H(e=>!e),children:[(0,e.jsx)(`span`,{children:`Повтор`}),(0,e.jsx)(`span`,{children:te?`Вкл.`:`Выкл.`})]}),ue&&(0,e.jsx)(`button`,{type:`button`,className:$.settingsAction,"aria-pressed":ie,onClick:()=>void _e(),children:(0,e.jsxs)(`span`,{className:$.settingsActionLabel,children:[(0,e.jsx)(g,{name:`IconPictureInPicture`,width:18,height:18}),`Картинка в картинке`]})})]}),(0,e.jsxs)(`div`,{className:$.controls,children:[(0,e.jsx)(`div`,{className:$.controlGroup,children:(0,e.jsx)(`button`,{type:`button`,className:`${$.controlButton} ${$.playButton}`,"aria-label":D?`Пауза`:`Воспроизвести`,title:D?`Пауза (K)`:`Воспроизвести (K)`,onClick:()=>void fe(),children:(0,e.jsx)(g,{name:D?`IconPause`:`IconPlay`,width:24,height:24})})}),(0,e.jsxs)(`div`,{className:`${$.controlGroup} ${$.volumeGroup}`,children:[(0,e.jsx)(`button`,{type:`button`,className:$.controlButton,"aria-label":z?`Включить звук`:`Выключить звук`,"aria-pressed":z,title:`Звук (M)`,onClick:pe,children:(0,e.jsx)(g,{name:z||L===0?`IconVolumeMuted`:`IconVolume`,width:22,height:22})}),(0,e.jsx)(`input`,{className:$.volume,type:`range`,min:0,max:1,step:.05,value:z?0:L,"aria-label":`Громкость`,"aria-valuetext":`${Math.round((z?0:L)*100)}%`,onChange:e=>me(Number(e.target.value))})]}),(0,e.jsxs)(`div`,{className:`${$.controlGroup} ${$.timelineGroup}`,children:[(0,e.jsx)(`span`,{className:$.time,children:Dt(j)}),(0,e.jsx)(`input`,{className:$.timeline,style:xe,type:`range`,min:0,max:N||0,step:.01,value:Math.min(j,N||0),"aria-label":`Позиция воспроизведения`,"aria-valuetext":`${Dt(j)} из ${Dt(N)}`,onChange:e=>he(Number(e.target.value))}),(0,e.jsx)(`span`,{className:$.time,children:Dt(N)})]}),(0,e.jsxs)(`div`,{className:$.controlGroup,children:[(0,e.jsx)(`button`,{type:`button`,className:$.controlButton,"aria-label":`Настройки`,"aria-expanded":G,title:`Настройки`,onClick:()=>K(e=>!e),children:(0,e.jsx)(g,{name:`IconSettings`,width:22,height:22})}),(0,e.jsx)(`button`,{type:`button`,className:$.controlButton,"aria-label":ne?`Выйти из полноэкранного режима`:`Полноэкранный режим`,title:`Полноэкранный режим (F)`,onClick:()=>void ge(),children:(0,e.jsx)(g,{name:ne?`IconFullscreenExit`:`IconFullscreen`,width:22,height:22})})]})]})]})]}),(0,e.jsx)(`figcaption`,{className:$.caption,children:i})]})},Nt={root:`_root_ymidq_1`,trigger:`_trigger_ymidq_15`,heading:`_heading_ymidq_41`,title:`_title_ymidq_51`,subtitle:`_subtitle_ymidq_59`,icon:`_icon_ymidq_69`,open:`_open_ymidq_91`,content:`_content_ymidq_99`,contentInner:`_contentInner_ymidq_119`},Pt=(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}},Ft=({title:n,subtitle:r,children:i,defaultOpen:a=!1,open:o,onOpenChange:s,autoScrollOnOpen:c=!0,scrollOffset:l=16,className:u=``})=>{let d=(0,t.useId)(),[f,p]=(0,t.useState)(a),m=o??f,h=(0,t.useRef)(null),_=(0,t.useRef)(null),v=(0,t.useRef)(m);return(0,t.useEffect)(()=>{let e=v.current;if(v.current=m,!m||e||!c)return;let t=h.current,n=_.current;if(!t||!n||typeof window>`u`)return;let r=!1,i=()=>{if(r)return;r=!0;let e=t.getBoundingClientRect(),n=Pt(e.top,e.height,window.innerHeight,l);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)}},[c,m,l]),(0,e.jsxs)(`section`,{ref:h,className:`${Nt.root} ${m?Nt.open:``} ${u}`,children:[(0,e.jsxs)(`button`,{type:`button`,className:Nt.trigger,"aria-expanded":m,"aria-controls":d,onClick:()=>{let e=!m;o===void 0&&p(e),s?.(e)},children:[(0,e.jsxs)(`span`,{className:Nt.heading,children:[(0,e.jsx)(`span`,{className:Nt.title,children:n}),r&&(0,e.jsx)(`span`,{className:Nt.subtitle,children:r})]}),(0,e.jsx)(`span`,{className:Nt.icon,"aria-hidden":`true`,children:(0,e.jsx)(g,{name:`IconChevron`,width:20,height:20})})]}),(0,e.jsx)(`div`,{ref:_,id:d,className:Nt.content,"aria-hidden":!m,children:(0,e.jsx)(`div`,{className:Nt.contentInner,children:i})})]})},It=({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};exports.ConfirmModal=ot,exports.DSAccordion=Ft,exports.DSBadge=o,exports.DSButton=u,exports.DSCheckbox=v,exports.DSDataTable=_e,exports.DSDateRange=V,exports.DSDateTimePicker=z,exports.DSDropDown=ne,exports.DSDropDownMultiple=Se,exports.DSFieldLabel=f,exports.DSFieldMessage=p,exports.DSFileInput=He,exports.DSFilters=Re,exports.DSIcon=g,exports.DSInfoBlock=Pe,exports.DSInput=we,exports.DSLoader=c,exports.DSModal=et,exports.DSModalFrame=$e,exports.DSPageLoader=gt,exports.DSPortal=It,exports.DSRadioButton=Ie,exports.DSSearchDropDown=Me,exports.DSSkeleton=H,exports.DSSort=ie,exports.DSTextarea=Ke,exports.DSToast=yt,exports.DSToastProvider=Ct,exports.DSTooltip=Et,exports.DSVideoPlayerFrame=Mt,exports.ErrorModal=st,exports.ModalSystemProvider=tt,exports.builtInModalRegistry=ct,exports.defineModalRegistry=nt,exports.formatDateInputValue=T,exports.formatDateTimeLocalValue=j,exports.getDSAccordionScrollTarget=Pt,exports.getDSDataTableColumnStyle=oe,exports.getDSDataTablePaginationItems=se,exports.getErrorMessage=ut,exports.getNextEnabledOptionIndex=q,exports.isValidDateInputPrefix=O,exports.isValidDateRange=ee,exports.maskDateInputValue=E,exports.parseDateInputValue=k,exports.parseDateTimeLocalValue=M,exports.resetModalStore=Je,exports.resetToastStore=St,exports.useConfirmModal=lt,exports.useConfirmModalStore=ft,exports.useErrorModal=dt,exports.useErrorModalStore=pt,exports.useModals=mt,exports.useModalsStore=Q,exports.useToast=wt,exports.useToastStore=xt,exports.validateDSDataTableData=ce;
|
package/dist/index.es.js
CHANGED
|
@@ -33,17 +33,17 @@ var x = {
|
|
|
33
33
|
})
|
|
34
34
|
]
|
|
35
35
|
}), C = {
|
|
36
|
-
container: "
|
|
37
|
-
inner: "
|
|
38
|
-
line: "
|
|
39
|
-
primary: "
|
|
40
|
-
secondary: "
|
|
41
|
-
outline: "
|
|
42
|
-
ghost: "
|
|
43
|
-
empty: "
|
|
44
|
-
destructive: "
|
|
45
|
-
destructiveOutline: "
|
|
46
|
-
grow: "
|
|
36
|
+
container: "_container_1jyk1_1",
|
|
37
|
+
inner: "_inner_1jyk1_21",
|
|
38
|
+
line: "_line_1jyk1_39",
|
|
39
|
+
primary: "_primary_1jyk1_57",
|
|
40
|
+
secondary: "_secondary_1jyk1_65",
|
|
41
|
+
outline: "_outline_1jyk1_73",
|
|
42
|
+
ghost: "_ghost_1jyk1_81",
|
|
43
|
+
empty: "_empty_1jyk1_89",
|
|
44
|
+
destructive: "_destructive_1jyk1_97",
|
|
45
|
+
destructiveOutline: "_destructiveOutline_1jyk1_105",
|
|
46
|
+
grow: "_grow_1jyk1_1"
|
|
47
47
|
}, ee = ({ variant: e = "primary" }) => /* @__PURE__ */ t("div", {
|
|
48
48
|
className: `${C.container} ${C[e]}`,
|
|
49
49
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -56,17 +56,17 @@ var x = {
|
|
|
56
56
|
]
|
|
57
57
|
})
|
|
58
58
|
}), w = {
|
|
59
|
-
button: "
|
|
60
|
-
sm: "
|
|
61
|
-
md: "
|
|
62
|
-
lg: "
|
|
63
|
-
primary: "
|
|
64
|
-
secondary: "
|
|
65
|
-
outline: "
|
|
66
|
-
ghost: "
|
|
67
|
-
empty: "
|
|
68
|
-
destructive: "
|
|
69
|
-
destructiveOutline: "
|
|
59
|
+
button: "_button_8341b_1",
|
|
60
|
+
sm: "_sm_8341b_59",
|
|
61
|
+
md: "_md_8341b_73",
|
|
62
|
+
lg: "_lg_8341b_87",
|
|
63
|
+
primary: "_primary_8341b_101",
|
|
64
|
+
secondary: "_secondary_8341b_115",
|
|
65
|
+
outline: "_outline_8341b_129",
|
|
66
|
+
ghost: "_ghost_8341b_143",
|
|
67
|
+
empty: "_empty_8341b_157",
|
|
68
|
+
destructive: "_destructive_8341b_171",
|
|
69
|
+
destructiveOutline: "_destructiveOutline_8341b_183"
|
|
70
70
|
}, T = a(({ children: e, variant: n = "primary", size: r = "md", isLoading: i = !1, disabled: a, type: o = "button", className: s = "", ...c }, l) => /* @__PURE__ */ t("button", {
|
|
71
71
|
ref: l,
|
|
72
72
|
className: `${w.button} ${w[n]} ${w[r]} ${s}`,
|
|
@@ -765,13 +765,13 @@ var E = {
|
|
|
765
765
|
}, de = ({ variant: e = "text", width: n = "100%", height: r, lines: i = 1, animated: a = !0, className: o = "" }) => /* @__PURE__ */ t("span", {
|
|
766
766
|
className: `${ue.group} ${o}`,
|
|
767
767
|
"aria-hidden": "true",
|
|
768
|
-
children: Array.from({ length: Math.max(1, i) }, (
|
|
768
|
+
children: Array.from({ length: Math.max(1, i) }, (i, o) => /* @__PURE__ */ t("span", {
|
|
769
769
|
className: `${ue.skeleton} ${ue[e]} ${a ? ue.animated : ""}`,
|
|
770
770
|
style: {
|
|
771
|
-
width:
|
|
771
|
+
width: n,
|
|
772
772
|
height: r
|
|
773
773
|
}
|
|
774
|
-
},
|
|
774
|
+
}, o))
|
|
775
775
|
}), Y = {
|
|
776
776
|
wrapper: "_wrapper_6g3qd_1",
|
|
777
777
|
container: "_container_6g3qd_17",
|
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:root{--color-primary:#354755;--color-primary-hover:#717e88;--color-text-light:var(--color-surface);--color-text:#172033;--color-inactive:#98a2b3;--color-success:#179c66;--color-warning:#f59e0b;--color-error:#dc2626;--color-background-disabled:#f2f4f7;--color-background-button-primary:var(--color-primary);--color-text-button-primary:#fff;--color-border-primary:var(--color-primary);--color-hover-background-button-primary:var(--color-primary-hover);--color-hover-text-button-primary:#fff;--color-hover-border-primary:var(--color-primary-hover);--color-background-button-secondary:var(--color-primary);--color-text-button-secondary:#fff;--color-border-secondary:var(--color-primary);--color-hover-background-button-secondary:var(--color-primary-hover);--color-hover-text-button-secondary:#fff;--color-hover-border-secondary:var(--color-primary-hover);--color-background-button-outline:#fff;--color-text-button-outline:var(--color-primary);--color-border-outline:var(--color-primary);--color-hover-background-button-outline:#f7faff;--color-hover-text-button-outline:var(--color-primary-hover);--color-hover-border-outline:var(--color-primary-hover);--color-background-button-ghost:#d4d8db;--color-text-button-ghost:var(--color-primary);--color-border-ghost:#d4d8db;--color-hover-background-button-ghost:#e5e7e9;--color-hover-text-button-ghost:var(--color-primary);--color-hover-border-ghost:#e5e7e9;--color-background-button-empty:transparent;--color-text-button-empty:var(--color-primary);--color-border-empty:transparent;--color-hover-background-button-empty:transparent;--color-hover-text-button-empty:var(--color-primary-hover);--color-hover-border-empty:var(--color-primary-hover);--color-surface:#fff;--color-border:#dce3ec;--color-border-hover:#b8c4d4;--color-control-track:#dce3ec;--color-text-secondary:#667085;--color-focus-ring:color-mix(in srgb, var(--color-primary) 20%, transparent);--color-neutral-surface:#f2f4f7;--color-neutral-text:#475467;--color-neutral-border:#e4e7ec;--color-info-surface:#179cf01f;--color-info-text:#0878bd;--color-success-surface:#179c661f;--color-success-text:#11784f;--color-warning-surface:#fff4d6;--color-warning-text:#8a5800;--color-error-surface:#feecec;--color-error-text:#b91c1c;--color-skeleton-base:#d1dcdd;--color-skeleton-highlight:#f5f7fa;--shadow-floating:0 12px 32px #10182824;--z-dropdown:9999;--z-tooltip:9999;--z-modal:1200;--z-toast:1300;--ds-dropdown-menu-max-height:240px;--gap-s:8px;--gap-m:12px;--gap-l:20px;--text-size-s:12px;--text-size-m:14px;--text-size-l:18px;--border-radius:8px;--height-s:30px;--height-m:40px;--height-l:50px}._badge_1xyff_1{white-space:nowrap;border:1px solid #0000;border-radius:999px;flex-wrap:nowrap;align-items:center;gap:6px;max-width:100%;font-size:12px;font-weight:600;line-height:1;display:inline-flex}._sm_1xyff_29{min-height:20px;padding:0 8px}._md_1xyff_39{min-height:24px;padding:0 10px}._neutral_1xyff_49{border-color:var(--color-neutral-border);background:var(--color-neutral-surface);color:var(--color-neutral-text)}._info_1xyff_61{border-color:color-mix(in srgb, var(--color-info-text) 18%, transparent);background:var(--color-info-surface);color:var(--color-info-text)}._success_1xyff_73{border-color:color-mix(in srgb, var(--color-success-text) 18%, transparent);background:var(--color-success-surface);color:var(--color-success-text)}._warning_1xyff_85{border-color:color-mix(in srgb, var(--color-warning-text) 18%, transparent);background:var(--color-warning-surface);color:var(--color-warning-text)}._error_1xyff_97{border-color:color-mix(in srgb, var(--color-error-text) 18%, transparent);background:var(--color-error-surface);color:var(--color-error-text)}._dot_1xyff_109{background:currentColor;border-radius:50%;flex:0 0 6px;width:6px;height:6px}._icon_1xyff_125{flex:none;display:inline-flex}._label_1xyff_135{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._container_18tg4_1{flex-shrink:0;justify-content:center;align-items:center;width:30px;height:100%;min-height:20px;display:inline-flex}._inner_18tg4_21{justify-content:space-between;align-items:center;width:100%;height:100%;min-height:20px;display:flex}._line_18tg4_39{background-color:var(--color-primary);border-radius:4px;width:4px;height:100%;min-height:20px;transition:background-color .3s}._line_18tg4_39._primary_18tg4_57{background-color:var(--color-text-button-primary)}._line_18tg4_39._secondary_18tg4_65{background-color:var(--color-text-button-secondary)}._line_18tg4_39._outline_18tg4_73{background-color:var(--color-text-button-outline)}._line_18tg4_39._ghost_18tg4_81{background-color:var(--color-text-button-ghost)}._line_18tg4_39._empty_18tg4_89{background-color:var(--color-text-button-empty)}._line_18tg4_39._destructive_18tg4_97{background-color:var(--color-text-button-primary)}._line_18tg4_39._destructiveOutline_18tg4_105{background-color:var(--color-error)}._line_18tg4_39:first-child{animation:1.5s ease-in-out infinite _grow_18tg4_1}._line_18tg4_39:nth-child(2){animation:1.5s ease-in-out .15s infinite _grow_18tg4_1}._line_18tg4_39:nth-child(3){animation:1.5s ease-in-out .3s infinite _grow_18tg4_1}._line_18tg4_39:nth-child(4){animation:1.5s ease-in-out .45s infinite _grow_18tg4_1}@keyframes _grow_18tg4_1{0%,to{opacity:1;transform:scaleY(.25)}50%{opacity:.8;transform:scaleY(1)}}._button_cfuv9_1{justify-content:center;align-items:center;gap:var(--gap-s);border-radius:var(--border-radius);font:inherit;cursor:pointer;border:1px solid #0000;font-weight:600;line-height:1.2;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s;display:inline-flex;box-shadow:0 1px 2px #1018280a}._button_cfuv9_1:focus-visible{box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._button_cfuv9_1:disabled{border-color:var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive);box-shadow:none;opacity:1;cursor:not-allowed}._sm_cfuv9_59{height:var(--height-s);min-height:var(--height-s);font-size:var(--text-size-s);padding:6px 12px}._md_cfuv9_73{height:var(--height-m);min-height:var(--height-m);font-size:var(--text-size-m);padding:8px 16px}._lg_cfuv9_87{height:var(--height-l);min-height:var(--height-l);padding:11px 20px;font-size:16px}._primary_cfuv9_101,._primary_cfuv9_101:disabled[aria-busy=true]{background:var(--color-background-button-primary);color:var(--color-text-button-primary);border-color:var(--color-border-primary)}._secondary_cfuv9_115,._secondary_cfuv9_115:disabled[aria-busy=true]{border-color:var(--color-border-secondary);background:var(--color-background-button-secondary,var(--color-text));color:var(--color-text-button-secondary)}._outline_cfuv9_129,._outline_cfuv9_129:disabled[aria-busy=true]{border-color:var(--color-border-outline);background:var(--color-background-button-outline);color:var(--color-text-button-outline)}._ghost_cfuv9_143,._ghost_cfuv9_143:disabled[aria-busy=true]{border-color:var(--color-border-ghost);background:var(--color-background-button-ghost);color:var(--color-text-button-ghost)}._empty_cfuv9_157,._empty_cfuv9_157:disabled[aria-busy=true]{border-color:var(--color-border-empty);background:var(--color-background-button-empty);color:var(--color-text-button-empty)}._destructive_cfuv9_171,._destructive_cfuv9_171:disabled[aria-busy=true]{background:var(--color-error);color:var(--color-surface)}._destructiveOutline_cfuv9_183,._destructiveOutline_cfuv9_183:disabled[aria-busy=true]{border-color:var(--color-error);color:var(--color-error);background:0 0}._button_cfuv9_1:hover:not(:disabled){box-shadow:0 2px 6px #1018281a}._primary_cfuv9_101:hover:not(:disabled){border-color:var(--color-hover-border-primary);background:var(--color-hover-background-button-primary);color:var(--color-hover-text-button-primary)}._secondary_cfuv9_115:hover:not(:disabled){border-color:var(--color-hover-border-secondary);background:var(--color-hover-background-button-secondary);color:var(--color-hover-text-button-secondary)}._outline_cfuv9_129:hover:not(:disabled){border-color:var(--color-hover-border-outline);background:var(--color-hover-background-button-outline);color:var(--color-hover-text-button-outline)}._ghost_cfuv9_143:hover:not(:disabled){border-color:var(--color-hover-border-ghost);background:var(--color-hover-background-button-ghost);color:var(--color-hover-text-button-ghost)}._empty_cfuv9_157:hover:not(:disabled){background:var(--color-hover-background-button-empty);color:var(--color-hover-text-button-empty);border-color:var(--color-hover-border-empty);filter:none}._label_1o819_1{width:fit-content;color:var(--color-text);font-size:var(--text-size-s);align-items:baseline;gap:4px;font-weight:500;line-height:1.4;display:inline-flex}._required_1o819_23,._error_1o819_25{color:var(--color-error)}._optional_1o819_33,._hint_1o819_35{color:var(--color-text-secondary);font-size:12px;font-weight:400}._disabled_1o819_47{color:var(--color-inactive)}._message_1o819_55{align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;display:flex}._success_1o819_71{color:var(--color-success)}._wrapper_1seon_1{gap:var(--gap-s);flex-direction:column;display:flex}._label_1seon_13{width:fit-content;color:var(--color-text);font-size:var(--text-size-m);cursor:pointer;align-items:center;gap:10px;font-weight:500;display:inline-flex}._input_1seon_35{opacity:0;width:1px;height:1px;position:absolute}._control_1seon_49{border:1px solid var(--color-border);background:var(--color-surface);width:20px;height:20px;color:var(--color-surface);border-radius:6px;flex:none;place-items:center;transition:background-color .16s,border-color .16s,box-shadow .16s;display:grid}._input_1seon_35:checked+._control_1seon_49,._input_1seon_35:indeterminate+._control_1seon_49{border-color:var(--color-primary);background:var(--color-primary)}._input_1seon_35:focus-visible+._control_1seon_49{box-shadow:0 0 0 3px var(--color-focus-ring)}._label_1seon_13:hover:not(._disabled_1seon_95) ._control_1seon_49{border-color:var(--color-primary)}._disabled_1seon_95{color:var(--color-inactive);cursor:not-allowed}._disabled_1seon_95 ._control_1seon_49{opacity:.55}._controlError_1seon_121{border-color:var(--color-error)}._wrapper_su17c_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex;position:relative}._trigger_su17c_17{width:100%;min-height:var(--height-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;transition:border-color .16s,box-shadow .16s;display:flex}._trigger_su17c_17._sm_su17c_53{height:var(--height-s);min-height:var(--height-s);padding:0 10px}._trigger_su17c_17._md_su17c_65{height:var(--height-m);min-height:var(--height-m)}._trigger_su17c_17._lg_su17c_75{height:var(--height-l);min-height:var(--height-l);padding:0 14px}._chevron_su17c_89{width:20px;height:20px;color:var(--color-text-secondary);flex-shrink:0;transition:transform .2s}._chevron_su17c_89 svg{width:100%;height:100%}._chevronOpen_su17c_115{transform:rotate(180deg)}._trigger_su17c_17:focus-visible,._trigger_su17c_17:focus-within,._nav_su17c_127:focus-visible,._day_su17c_129:focus-visible,._monthSelect_su17c_131:focus-visible,._yearInput_su17c_133:focus-visible,._timeInput_su17c_135:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._dateInput_su17c_147{width:100%;min-width:0;color:var(--color-text);font:inherit;background:0 0;border:0;outline:0;padding:0}._dateInput_su17c_147::placeholder{color:var(--color-text-secondary);opacity:1}._dateInput_su17c_147:disabled{color:var(--color-inactive);cursor:not-allowed}._timeValue_su17c_189{color:var(--color-text);white-space:nowrap;flex-shrink:0}._chevronButton_su17c_201{width:20px;height:20px;color:inherit;cursor:pointer;background:0 0;border:0;flex-shrink:0;place-items:center;padding:0;display:grid}._chevronButton_su17c_201:disabled{cursor:default}._disabled_su17c_235{border-color:var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive);cursor:not-allowed}._validationTooltip_su17c_249{z-index:var(--z-tooltip,1200);background:var(--color-text);max-width:calc(100% - 16px);color:var(--color-surface);pointer-events:none;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.3;animation:3s forwards _validation-tooltip-lifetime_su17c_1;position:absolute;top:calc(100% + 4px);left:8px}@keyframes _validation-tooltip-lifetime_su17c_1{0%,82%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-2px)}}._trigger_su17c_17:disabled{border-color:var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive);cursor:not-allowed}._value_su17c_319{color:var(--color-text)}._trigger_su17c_17:hover:not(:disabled){border-color:var(--color-border-hover)}._placeholder_su17c_335{color:var(--color-text-secondary)}._error_su17c_343{border-color:var(--color-error)}._panel_su17c_351{z-index:var(--z-dropdown);box-sizing:border-box;width:min(360px,100vw - 16px);padding:var(--gap-m);border:1px solid var(--color-border);background:var(--color-surface);box-shadow:var(--shadow-floating);border-radius:10px;position:fixed;overflow-y:auto}._calendarHeader_su17c_377{grid-template-columns:36px minmax(110px,1fr) 84px 36px;align-items:center;gap:6px;margin-bottom:12px;display:grid}._nav_su17c_127,._day_su17c_129{color:var(--color-text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px}._nav_su17c_127{min-height:36px;font-size:22px}._nav_su17c_127:hover,._day_su17c_129:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._monthSelect_su17c_131,._yearInput_su17c_133,._timeInput_su17c_135{border:1px solid var(--color-border);background:var(--color-surface);min-width:0;min-height:36px;color:var(--color-text);font:inherit;border-radius:8px}._monthSelect_su17c_131,._yearInput_su17c_133{padding:6px 8px}._weekdays_su17c_467,._days_su17c_469{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}._weekdays_su17c_467{color:var(--color-text-secondary);text-align:center;margin-bottom:4px;font-size:12px}._day_su17c_129{aspect-ratio:1;min-width:32px}._outside_su17c_505{color:var(--color-inactive)}._selected_su17c_513{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._day_su17c_129:disabled{opacity:.35;cursor:not-allowed}._timeLabel_su17c_533{gap:var(--gap-s);margin-top:var(--gap-m);color:var(--color-text);font-size:var(--text-size-m);font-weight:600;display:grid}._timeInput_su17c_135{padding:8px 12px}@media (width<400px){._panel_su17c_351{width:calc(100vw - 16px);padding:12px}._calendarHeader_su17c_377{grid-template-columns:32px minmax(96px,1fr) 76px 32px}}@media (prefers-reduced-motion:reduce){._validationTooltip_su17c_249{animation-timing-function:step-end}}._previousMonth_su17c_593{transform:rotate(90deg)}._nextMonth_su17c_601{transform:rotate(-90deg)}._root_19vq2_1{gap:var(--gap-s);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._range_19vq2_21{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_19vq2_21{grid-template-columns:1fr}}._group_10ug0_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._skeleton_10ug0_15{background:var(--color-skeleton-base);display:block;overflow:hidden}._text_10ug0_27{border-radius:4px;height:14px}._rectangular_10ug0_37{border-radius:var(--border-radius);min-height:44px}._circular_10ug0_47{border-radius:50%;width:40px;height:40px}._animated_10ug0_59{background-image:linear-gradient(90deg, var(--color-skeleton-base), var(--color-skeleton-highlight), var(--color-skeleton-base));background-size:200% 100%;animation:1.4s linear infinite _ds-skeleton_10ug0_1}@keyframes _ds-skeleton_10ug0_1{to{background-position-x:-200%}}@media (prefers-reduced-motion:reduce){._animated_10ug0_59{background-image:none;animation:none}}._wrapper_6g3qd_1{gap:var(--gap-s);width:100%;color:var(--color-text);flex-direction:column;display:flex}._container_6g3qd_17{position:relative}._trigger_6g3qd_25,._disabledText_6g3qd_27{width:100%;min-height:var(--height-m);box-sizing:border-box;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:0 14px;transition:border-color .16s,box-shadow .16s,background-color .16s}._trigger_6g3qd_25._sm_6g3qd_53,._disabledText_6g3qd_27._sm_6g3qd_53{height:var(--height-s);min-height:var(--height-s);padding:0 10px}._trigger_6g3qd_25._md_6g3qd_67,._disabledText_6g3qd_27._md_6g3qd_67{height:var(--height-m);min-height:var(--height-m);padding:0 12px}._trigger_6g3qd_25._lg_6g3qd_81,._disabledText_6g3qd_27._lg_6g3qd_81{height:var(--height-l);min-height:var(--height-l);padding:0 14px}._trigger_6g3qd_25{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;display:flex}._trigger_6g3qd_25:hover:not(:disabled){border-color:var(--color-border-hover)}._trigger_6g3qd_25:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._trigger_6g3qd_25:disabled,._disabledText_6g3qd_27{background:var(--color-background-disabled);border-color:var(--color-border);color:var(--color-inactive);cursor:not-allowed}._value_6g3qd_147,._placeholder_6g3qd_149{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--text-size-s);text-align:left;overflow:hidden}._value_6g3qd_147._sm_6g3qd_53,._placeholder_6g3qd_149._sm_6g3qd_53,._value_6g3qd_147._md_6g3qd_67,._placeholder_6g3qd_149._md_6g3qd_67{font-size:var(--text-size-s)}._value_6g3qd_147._lg_6g3qd_81,._placeholder_6g3qd_149._lg_6g3qd_81{font-size:16px}._placeholder_6g3qd_149{color:var(--color-text-secondary)}._chevron_6g3qd_205{width:20px;height:20px;color:var(--color-text-secondary);flex-shrink:0;transition:transform .2s}._chevron_6g3qd_205 svg{width:100%;height:100%}._chevronOpen_6g3qd_231{transform:rotate(180deg)}._menu_6g3qd_239{z-index:var(--z-dropdown);max-height:var(--ds-dropdown-menu-max-height);overscroll-behavior:contain;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);box-shadow:var(--shadow-floating);margin:0;padding:4px;list-style:none;position:fixed;overflow-y:auto}._option_6g3qd_269{width:100%;color:var(--color-text);font-size:var(--text-size-s);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;display:flex}._option_6g3qd_269._sm_6g3qd_53{min-height:32px;font-size:var(--text-size-s);padding:6px 10px}._option_6g3qd_269._md_6g3qd_67{min-height:36px;font-size:var(--text-size-s);padding:8px 10px}._option_6g3qd_269._lg_6g3qd_81{min-height:40px;font-size:var(--text-size-l);padding:10px 12px}._option_6g3qd_269:hover:not(:disabled),._option_6g3qd_269:focus-visible,._selected_6g3qd_339{background:color-mix(in srgb, var(--color-primary) 9%, transparent);outline:none}._option_6g3qd_269:disabled{opacity:.5;cursor:not-allowed}._message_6g3qd_359,._error_6g3qd_361{font-size:12px;line-height:1.4}._message_6g3qd_359{color:var(--color-text-secondary)}._error_6g3qd_361{color:var(--color-error)}._errorState_6g3qd_387 ._trigger_6g3qd_25{border-color:var(--color-error)}._root_1jtuu_1{gap:var(--gap-m);width:100%;color:var(--color-text);display:grid}._tableWrap_1jtuu_15{border:1px solid var(--color-border);border-radius:var(--border-radius);overflow:auto}._table_1jtuu_15{border-collapse:collapse;background:var(--color-surface);width:100%}._table_1jtuu_15 caption{padding:var(--gap-s);text-align:left;font-weight:600}._table_1jtuu_15 th,._table_1jtuu_15 td{min-height:var(--height-m);padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);text-align:left}._table_1jtuu_15 tbody tr:last-child td{border-bottom:0}._table_1jtuu_15 tbody tr:hover{background:var(--color-info-surface)}._sticky_1jtuu_81{z-index:1;background:var(--color-surface);position:sticky;top:0}._sortButton_1jtuu_95{align-items:center;gap:var(--gap-s);width:100%;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;display:inline-flex}._sortButton_1jtuu_95:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}._state_1jtuu_133{padding:var(--gap-l);color:var(--color-text-secondary);text-align:center}._cards_1jtuu_145,._mobileSort_1jtuu_145{display:none}._card_1jtuu_145{padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);gap:12px;display:grid}._card_1jtuu_145 h3{font-size:var(--text-size-m);margin:0}._card_1jtuu_145 dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}._card_1jtuu_145 dt{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px}._card_1jtuu_145 dd{overflow-wrap:anywhere;font-size:var(--text-size-s);margin:4px 0 0}._card_1jtuu_145 footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:12px;display:flex}._spanTwo_1jtuu_233{grid-column:span 2}._clickableRow_1jtuu_241{cursor:pointer}._pagination_1jtuu_249{justify-content:space-between;align-items:center;gap:var(--gap-m);margin-top:calc(var(--gap-m) * -1);padding:var(--gap-s) var(--gap-m);border:1px solid var(--color-border);border-radius:0 0 var(--border-radius) var(--border-radius);background:var(--color-surface);border-top:0;display:flex}._paginationRange_1jtuu_275{color:var(--color-text-secondary);font-size:var(--text-size-m);white-space:nowrap}._paginationControls_1jtuu_287,._pageNumbers_1jtuu_289{align-items:center;gap:var(--gap-s);display:flex}._pageButton_1jtuu_301{min-width:var(--height-m);padding-inline:var(--gap-s)}._ellipsis_1jtuu_311{min-width:var(--height-m);color:var(--color-text-secondary);text-align:center}._previousIcon_1jtuu_323{transform:rotate(90deg)}._nextIcon_1jtuu_331{transform:rotate(-90deg)}@media (width<640px){._pagination_1jtuu_249{flex-direction:column;align-items:stretch}._paginationControls_1jtuu_287{justify-content:space-between}._pageNumbers_1jtuu_289,._default_1jtuu_371:not(._tableOnMobile_1jtuu_371) ._tableWrap_1jtuu_15{display:none}._default_1jtuu_371:not(._tableOnMobile_1jtuu_371) ._cards_1jtuu_145{gap:12px;display:grid}._default_1jtuu_371:not(._tableOnMobile_1jtuu_371) ._mobileSort_1jtuu_145{display:block}}@media (width<1280px){._wide_1jtuu_401:not(._tableOnMobile_1jtuu_371) ._tableWrap_1jtuu_15{display:none}._wide_1jtuu_401:not(._tableOnMobile_1jtuu_371) ._cards_1jtuu_145{gap:12px;display:grid}._wide_1jtuu_401:not(._tableOnMobile_1jtuu_371) ._mobileSort_1jtuu_145{display:block}}._wrapper_1izp1_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_1izp1_15{display:flex;position:relative}._input_1izp1_25,._disabledText_1izp1_25{width:100%;font-size:var(--text-size-s);min-height:var(--height-m);max-height:var(--height-m);height:var(--height-m);box-sizing:border-box;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);transition:border-color .16s,box-shadow .16s,background-color .16s}._input_1izp1_25:hover:not(:disabled,:read-only){border-color:var(--color-border-hover)}._input_1izp1_25:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._input_1izp1_25:read-only{background:var(--color-background-disabled);cursor:default;caret-color:#0000}._input_1izp1_25:read-only:focus-visible{border-color:var(--color-border);box-shadow:none}._input_1izp1_25:disabled,._disabledText_1izp1_25{border:1px solid var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive)}._sm_1izp1_107{height:var(--height-s);min-height:var(--height-s);max-height:var(--height-s);font-size:var(--text-size-s);padding:6px 10px}._md_1izp1_123{height:var(--height-m);min-height:var(--height-m);max-height:var(--height-m);font-size:var(--text-size-m);padding:8px 12px}._lg_1izp1_139{height:var(--height-l);min-height:var(--height-l);max-height:var(--height-l);padding:11px 14px;font-size:16px}._inputError_1izp1_155{border-color:var(--color-error)}._input_1izp1_25:has(+._trailingAction_1izp1_163){padding-right:28px}._trailingAction_1izp1_163{width:30px;height:30px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;font-size:20px;display:grid;position:absolute;top:50%;right:0;transform:translateY(-50%)}._trailingAction_1izp1_163:hover:not(:disabled){color:var(--color-primary);background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._trailingAction_1izp1_163:disabled{cursor:not-allowed;opacity:.55}._trailingAction_1izp1_163:focus-visible{box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._trailingAction_1izp1_163 svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}._wrapper_1v2s8_1{gap:var(--gap-s);width:100%;color:var(--color-text);flex-direction:column;display:flex}._control_1v2s8_17{position:relative}._inputHost_1v2s8_25 input{box-sizing:border-box;min-height:var(--height-m);height:var(--height-m);max-height:var(--height-m);padding:0 42px 0 14px}._inputHost_1v2s8_25._sm_1v2s8_41 input{min-height:var(--height-s);height:var(--height-s);max-height:var(--height-s);font-size:var(--text-size-s);padding-left:8px}._inputHost_1v2s8_25._md_1v2s8_57 input{min-height:var(--height-m);height:var(--height-m);max-height:var(--height-m);font-size:var(--text-size-s)}._inputHost_1v2s8_25._lg_1v2s8_71 input{min-height:var(--height-l);height:var(--height-l);max-height:var(--height-l);font-size:16px}._errorState_1v2s8_85 input{border-color:var(--color-error)}._disabledText_1v2s8_93{width:100%;min-height:var(--height-m);border:1px solid var(--color-background-disabled);border-radius:var(--border-radius);background:var(--color-background-disabled);color:var(--color-inactive);font:inherit;font-size:var(--text-size-s);text-overflow:ellipsis;white-space:nowrap;cursor:not-allowed;align-items:center;padding:0 14px;display:flex;overflow:hidden}._disabledText_1v2s8_93._sm_1v2s8_41{min-height:var(--height-s);height:var(--height-s);padding:0 8px}._disabledText_1v2s8_93._md_1v2s8_57{min-height:var(--height-m);height:var(--height-m)}._disabledText_1v2s8_93._lg_1v2s8_71{min-height:var(--height-l);height:var(--height-l);font-size:16px}._chevron_1v2s8_163{width:20px;height:20px;color:var(--color-text-secondary);pointer-events:none;transition:transform .2s;position:absolute;top:50%;right:14px;transform:translateY(-50%)}._chevron_1v2s8_163 svg{width:100%;height:100%}._chevronOpen_1v2s8_197{transform:translateY(-50%)rotate(180deg)}._menu_1v2s8_205{z-index:var(--z-dropdown);overscroll-behavior:contain;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);box-shadow:var(--shadow-floating);margin:0;padding:4px;list-style:none;position:fixed;overflow-y:auto}._menuEmpty_1v2s8_233{overflow-y:hidden}._option_1v2s8_241,._empty_1v2s8_241{width:100%;font-size:var(--text-size-s);text-align:left;background:0 0;border:0}._option_1v2s8_241{color:var(--color-text);cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;display:flex}._empty_1v2s8_241{color:var(--color-text-secondary);align-items:center;display:flex}._option_1v2s8_241._sm_1v2s8_41,._empty_1v2s8_241._sm_1v2s8_41{min-height:var(--height-s);padding:4px 10px}._option_1v2s8_241._md_1v2s8_57,._empty_1v2s8_241._md_1v2s8_57{min-height:var(--height-m);padding:6px 12px}._option_1v2s8_241._lg_1v2s8_71,._empty_1v2s8_241._lg_1v2s8_71{min-height:var(--height-l);font-size:var(--text-size-l);padding:10px 12px}._option_1v2s8_241:hover:not(:disabled),._option_1v2s8_241:focus-visible,._selected_1v2s8_321,._active_1v2s8_321{background:color-mix(in srgb, var(--color-primary) 9%, transparent);outline:none}._option_1v2s8_241:disabled{opacity:.5;cursor:not-allowed}._visuallyHidden_1v2s8_341{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}._root_11adi_1{border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);width:100%;color:var(--color-text);overflow-wrap:anywhere;overflow:hidden}._header_11adi_21{justify-content:space-between;align-items:center;gap:var(--gap-m);min-height:52px;padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);display:flex}._title_11adi_41{font-size:var(--text-size-m);margin:0;font-weight:600;line-height:1.4}._dismiss_11adi_55 svg{width:20px;height:20px}._content_11adi_65{padding:var(--gap-m);font-size:var(--text-size-s);line-height:1.5}._wrapper_1np4e_1{width:fit-content;color:var(--color-text);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;display:inline-flex}._input_1np4e_21{opacity:0;width:1px;height:1px;position:absolute}._switch_1np4e_35{border:1px solid var(--color-border-hover);background:var(--color-control-track);border-radius:999px;flex:none;align-items:center;width:42px;height:24px;padding:2px;transition:background .2s,border-color .2s,box-shadow .2s;display:flex}._thumb_1np4e_67{background:var(--color-surface);border-radius:50%;width:18px;height:18px;transition:transform .2s;transform:translate(2px);box-shadow:0 1px 3px #00000040}._input_1np4e_21:checked+._switch_1np4e_35{border-color:var(--color-primary);background:var(--color-primary)}._input_1np4e_21:checked+._switch_1np4e_35 ._thumb_1np4e_67{transform:translate(22px)}._input_1np4e_21:focus-visible+._switch_1np4e_35{box-shadow:0 0 0 3px var(--color-focus-ring)}._label_1np4e_113{font-size:var(--text-size-s);font-weight:500;line-height:1.4}._disabled_1np4e_125{color:var(--color-inactive);cursor:not-allowed}._disabled_1np4e_125 ._switch_1np4e_35{opacity:.55}._root_1ecm3_1{gap:16px;width:100%;display:grid}._grid_1ecm3_13{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));align-items:end;gap:12px;display:grid}._actions_1ecm3_27{justify-content:flex-end;gap:var(--gap-s);flex-wrap:wrap;display:flex}@media (width<1024px){._grid_1ecm3_13{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<640px){._grid_1ecm3_13{grid-template-columns:1fr}._actions_1ecm3_27{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}._actions_1ecm3_27>*{width:100%}}._wrapper_i20hz_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._dropzone_i20hz_15{justify-content:center;align-items:center;gap:var(--gap-m);min-height:156px;padding:var(--gap-l);border:1px dashed var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text-secondary);flex-direction:column;transition:border-color .15s,background .15s,box-shadow .15s;display:flex}._dragActive_i20hz_45{border-color:var(--color-primary);background:var(--color-info-surface);box-shadow:0 0 0 4px var(--color-focus-ring);color:var(--color-primary)}._disabled_i20hz_59{background:var(--color-neutral-surface);opacity:.6}._error_i20hz_69{border-color:var(--color-error)}._nativeInput_i20hz_77{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}._empty_i20hz_95{align-items:center;gap:var(--gap-s);text-align:center;flex-direction:column;display:flex}._uploadIcon_i20hz_111{background:var(--color-info-surface);width:40px;height:40px;color:var(--color-primary);border-radius:50%;place-items:center;font-size:24px;display:grid}._files_i20hz_133{gap:var(--gap-s);flex-direction:column;width:100%;margin:0;padding:0;list-style:none;display:flex}._file_i20hz_133{align-items:center;gap:var(--gap-s);padding:var(--gap-s);border-radius:var(--border-radius);background:var(--color-neutral-surface);color:var(--color-text);grid-template-columns:minmax(0,1fr) auto auto;display:grid}._fileName_i20hz_175{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._fileSize_i20hz_187{color:var(--color-text-secondary);font-size:var(--text-size-s);white-space:nowrap}@media (width<640px){._dropzone_i20hz_15{min-height:148px;padding:var(--gap-m)}}._wrapper_x2gki_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_x2gki_15{display:flex;position:relative}._textarea_x2gki_25,._disabledText_x2gki_27{box-sizing:border-box;width:100%;min-height:calc(var(--ds-textarea-row-height) * var(--ds-textarea-min-rows));border:1px solid var(--color-primary);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font-family:inherit;line-height:1.4}._textarea_x2gki_25{display:block}._textarea_x2gki_25::placeholder{color:var(--color-text-secondary)}._textarea_x2gki_25:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._textarea_x2gki_25:disabled,._disabledText_x2gki_27{border-color:var(--color-border);color:var(--color-inactive);background:#e9e9e9}._disabledText_x2gki_27{overflow-wrap:anywhere;white-space:pre-wrap}._sm_x2gki_103{--ds-textarea-row-height:var(--height-s);font-size:var(--text-size-s);padding:3px 10px}._md_x2gki_117{--ds-textarea-row-height:var(--height-m);font-size:var(--text-size-m);padding:9px 14px}._lg_x2gki_131{--ds-textarea-row-height:var(--height-l);font-size:var(--text-size-l);padding:13px 20px}._autoResize_x2gki_145{resize:none;overflow-y:hidden}._manualResize_x2gki_155{resize:vertical}._textareaError_x2gki_163{border-color:var(--color-error)}._textarea_x2gki_25:has(+._clearAction_x2gki_171){padding-right:36px}._clearAction_x2gki_171{width:30px;height:30px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:grid;position:absolute;top:4px;right:4px}._clearAction_x2gki_171:hover{background:color-mix(in srgb, var(--color-primary) 10%, transparent);color:var(--color-primary)}._clearAction_x2gki_171:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._clearAction_x2gki_171 svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:20px;height:20px}._messages_x2gki_251{justify-content:space-between;align-items:flex-start;gap:var(--gap-m);display:flex}._counter_x2gki_265{color:var(--color-text-secondary);font-size:var(--text-size-s);flex-shrink:0}._layer_1mvch_1{z-index:var(--z-modal);pointer-events:none;position:fixed;inset:0}._backdrop_1mvch_15{padding:var(--gap-m);pointer-events:auto;background:#0000007a;place-items:center;display:grid;position:absolute;inset:0}._panel_1mvch_35{border-radius:var(--border-radius);background:var(--color-surface);max-height:calc(100vh - 32px);color:var(--color-text);box-shadow:var(--shadow-floating);padding:8px 16px;overflow-y:auto}._panel_1mvch_35:focus{outline:none}._header_1mvch_63{justify-content:space-between;align-items:center;gap:var(--gap-m);padding:var(--gap-m);border-bottom:1px solid var(--color-border);display:flex}._title_1mvch_81{margin:0;font-size:20px;line-height:1.3}._description_1mvch_93{padding:var(--gap-m) var(--gap-m) 0;color:var(--color-text-secondary);font-size:var(--text-size-s);margin:0}._content_1mvch_107{padding:var(--gap-m)}._close_1mvch_115{margin:0 0 0 auto}._message_c23ie_1{color:var(--color-text);margin:0;line-height:1.5}._actions_c23ie_13{justify-content:flex-end;gap:var(--gap-s);margin-top:var(--gap-l);display:flex}@media (width<480px){._actions_c23ie_13{flex-direction:column-reverse}}._wrapper_71h8n_1{justify-content:center;width:100%;height:100%;display:flex}._container_71h8n_15{flex-shrink:0;justify-content:center;align-items:center;width:400px;height:420px;padding:0 36px;display:inline-flex}._inner_71h8n_35{justify-content:space-between;align-items:flex-end;width:100%;height:100%;padding-bottom:20%;display:flex}._cube_71h8n_53{flex-shrink:0;width:80px;height:80px;animation:2s ease-in-out infinite _jump_71h8n_1}._cube__inner_71h8n_67{background-color:var(--color-primary);transform-origin:bottom;border-radius:25%;width:100%;height:100%;transition:background-color .3s;animation:2s ease-in-out infinite _morph_71h8n_1;display:block}._cube_71h8n_53:nth-child(2){animation-delay:-.72s}._cube_71h8n_53:nth-child(2) ._cube__inner_71h8n_67{animation-delay:-.72s}._cube_71h8n_53:nth-child(3){animation-delay:-.4s}._cube_71h8n_53:nth-child(3) ._cube__inner_71h8n_67{animation-delay:-.4s}@keyframes _jump_71h8n_1{0%{transform:translateY(0)}28%{animation-timing-function:ease-out;transform:translateY(0)}50%{animation-timing-function:ease-in;transform:translateY(-200%)}74%{animation-timing-function:ease-in;transform:translateY(0)}}@keyframes _morph_71h8n_1{0%{transform:scaleY(1)}10%{transform:scaleY(1)}20%,25%{animation-timing-function:ease-in-out;transform:scaleY(.6)scaleX(1.3)}30%{animation-timing-function:ease-in-out;transform:scaleY(1.15)scaleX(.9)}40%{transform:scaleY(1)}72%,87%,to{transform:scaleY(1)}77%{transform:scaleY(.8)scaleX(1.2)}}._viewport_3qpmj_1{z-index:var(--z-toast);gap:var(--gap-s);pointer-events:none;flex-direction:column;width:min(380px,100vw - 32px);display:flex;position:fixed}._top-right_3qpmj_21{top:16px;right:16px}._top-left_3qpmj_31{top:16px;left:16px}._bottom-right_3qpmj_41{bottom:16px;right:16px}._bottom-left_3qpmj_51{bottom:16px;left:16px}._toast_3qpmj_61{border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-floating);pointer-events:auto;border-left-width:4px;align-items:flex-start;gap:10px;padding:12px;display:flex}._body_3qpmj_89{min-width:0;font-size:var(--text-size-s);flex-direction:column;flex:1;gap:6px;line-height:1.4;display:flex}._info_3qpmj_109{border-left-color:var(--color-primary)}._success_3qpmj_117{border-left-color:var(--color-success)}._warning_3qpmj_125{border-left-color:var(--color-warning)}._error_3qpmj_133{border-left-color:var(--color-error)}._root_8dm5q_1{display:inline-flex;position:relative}._tooltip_8dm5q_11{z-index:var(--z-tooltip);background:var(--color-text);width:max-content;max-width:calc(100vw - 32px);color:var(--color-surface);pointer-events:none;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;animation:.12s ease-out _ds-tooltip-in_8dm5q_1;position:absolute;box-shadow:0 6px 18px #0000002e}._top_8dm5q_43{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._bottom_8dm5q_55{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._left_8dm5q_67{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._right_8dm5q_79{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}@keyframes _ds-tooltip-in_8dm5q_1{0%{opacity:0}}@media (prefers-reduced-motion:reduce){._tooltip_8dm5q_11{animation:none}}._root_1h73w_1{--video-control-bg:#070e15e0;--video-control-bg-hover:#14222ef0;--video-control-border:#8ea9bf57;--video-control-text:#f4f8fb;--video-control-muted:#a9b8c4;--video-accent:#47a9ff;--video-track:#607282;--video-buffered:#8fa0ad;gap:var(--gap-s);width:100%;margin:0;display:grid;container-type:inline-size}._frame_1h73w_35{border:1px solid var(--color-border);border-radius:var(--border-radius);width:100%;color:var(--video-control-text);background:#080d12;outline:none;position:relative;overflow:hidden}._frame_1h73w_35:focus-visible{box-shadow:0 0 0 2px var(--video-accent)}._video_1h73w_65{cursor:pointer;background:#000;width:100%;height:100%;display:block}._overlay_1h73w_81,._state_1h73w_83,._buffering_1h73w_85{justify-content:center;align-items:center;gap:var(--gap-s);padding:var(--gap-m);text-align:center;flex-direction:column;display:flex;position:absolute;inset:0}._overlay_1h73w_81{z-index:5;color:var(--video-control-text);font-size:var(--text-size-s);background:#060c12e0;font-weight:600}._buffering_1h73w_85{z-index:4;pointer-events:none}._buffering_1h73w_85>div{background:#070e15b8;border-radius:50%}._loaderViewport_1h73w_145{width:88px;height:92px;overflow:hidden}._loaderScale_1h73w_157{transform-origin:0 0;width:400px;height:420px;transform:scale(.22)}._stateIcon_1h73w_171{width:40px;height:40px}._state_1h73w_83 strong{font-size:var(--text-size-m);line-height:1.4}._state_1h73w_83 span{color:inherit;font-size:var(--text-size-s);line-height:1.4}._empty_1h73w_203{color:#b6c2cc;background:#111a22}._error_1h73w_213{z-index:6;color:#f0c8c8;background:#111a22f5}._replay_1h73w_225{z-index:3;border:1px solid var(--video-control-border);background:var(--video-control-bg);width:56px;height:56px;color:var(--video-control-text);cursor:pointer;border-radius:12px;place-items:center;padding:0;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._controlsLayer_1h73w_261{z-index:3;opacity:0;visibility:hidden;background:linear-gradient(#0000,#040a10f5);padding:48px 10px 10px;transition:opacity .16s,visibility .16s;position:absolute;bottom:0;left:0;right:0}._controlsVisible_1h73w_287,._controlsLayer_1h73w_261:focus-within{opacity:1;visibility:visible}._controls_1h73w_261{align-items:stretch;gap:8px;display:flex}._controlGroup_1h73w_311{border:1px solid var(--video-control-border);background:var(--video-control-bg);border-radius:10px;align-items:center;gap:4px;min-width:0;min-height:48px;padding:3px;display:flex;box-shadow:inset 0 1px #ffffff0a}._controlButton_1h73w_337{width:44px;height:40px;color:var(--video-control-text);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;flex:none;place-items:center;padding:0;display:grid}._controlButton_1h73w_337:hover,._controlButton_1h73w_337[aria-expanded=true],._settingsAction_1h73w_369:hover,._replay_1h73w_225:hover{border-color:var(--video-control-border);background:var(--video-control-bg-hover)}._controlButton_1h73w_337:active,._settingsAction_1h73w_369:active,._replay_1h73w_225:active{border-color:var(--video-accent);background:color-mix(in srgb, var(--video-accent) 24%, var(--video-control-bg))}._controlButton_1h73w_337:focus-visible,._settingsAction_1h73w_369:focus-visible,._replay_1h73w_225:focus-visible,._timeline_1h73w_401:focus-visible,._volume_1h73w_403:focus-visible,._settings_1h73w_369 select:focus-visible{outline:2px solid var(--video-accent);outline-offset:2px;box-shadow:0 0 12px #47a9ff59}._playButton_1h73w_417{border-color:var(--video-accent);width:48px;height:42px;box-shadow:0 0 10px #47a9ff38}._volumeGroup_1h73w_431{padding-right:8px}._volume_1h73w_403{width:72px;height:4px;accent-color:var(--video-accent);cursor:pointer;margin:0}._timelineGroup_1h73w_455{flex:320px;padding:3px 12px}._time_1h73w_401{color:#e6edf4;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:12px}._timeline_1h73w_401{appearance:none;cursor:pointer;background:0 0;width:100%;min-width:72px;height:18px;margin:0}._timeline_1h73w_401::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--video-accent) 0 var(--video-progress), var(--video-buffered) var(--video-progress) var(--video-buffered), var(--video-track) var(--video-buffered) 100%);border-radius:999px;height:3px}._timeline_1h73w_401::-moz-range-track{background:var(--video-track);border-radius:999px;height:3px}._timeline_1h73w_401::-moz-range-progress{background:var(--video-accent);border-radius:999px;height:3px}._timeline_1h73w_401::-webkit-slider-thumb{appearance:none;background:var(--video-accent);opacity:0;border:2px solid #d8efff;border-radius:50%;width:10px;height:10px;margin-top:-3.5px;transition:opacity .12s,transform .12s}._timeline_1h73w_401::-moz-range-thumb{background:var(--video-accent);opacity:0;border:2px solid #d8efff;border-radius:50%;width:10px;height:10px}._timeline_1h73w_401:hover::-webkit-slider-thumb{opacity:1;transform:scale(1.15)}._timeline_1h73w_401:focus-visible::-webkit-slider-thumb{opacity:1;transform:scale(1.15)}._timeline_1h73w_401:hover::-moz-range-thumb{opacity:1;transform:scale(1.15)}._timeline_1h73w_401:focus-visible::-moz-range-thumb{opacity:1;transform:scale(1.15)}._settings_1h73w_369{border:1px solid var(--video-control-border);width:min(250px,100% - 20px);color:var(--video-control-text);background:#070e15f7;border-radius:10px;gap:10px;padding:12px;display:grid;position:absolute;bottom:68px;right:58px;box-shadow:0 12px 28px #0000006b}._settings_1h73w_369 label{color:var(--video-control-muted);grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:8px;font-size:12px;display:grid}._settings_1h73w_369 select{border:1px solid var(--video-control-border);width:100%;height:32px;color:var(--video-control-text);background:#15222d;border-radius:7px;padding:0 8px}._settingsAction_1h73w_369{min-height:36px;color:var(--video-control-text);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}._settingsActionLabel_1h73w_693{align-items:center;gap:8px;display:inline-flex}._caption_1h73w_705{color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._fullscreen_1h73w_719{border:0;border-radius:0}._frame_1h73w_35:fullscreen{border:0;border-radius:0}._fullscreen_1h73w_719 ._video_1h73w_65{object-fit:contain!important}._frame_1h73w_35:fullscreen ._video_1h73w_65{object-fit:contain!important}@container (width<600px){._controlsLayer_1h73w_261{padding:42px 6px 6px}._controls_1h73w_261{border:1px solid var(--video-control-border);background:var(--video-control-bg);border-radius:10px;grid-template-columns:auto auto minmax(0,1fr) auto;gap:5px;padding:3px;display:grid}._controlGroup_1h73w_311{min-height:44px;box-shadow:none;background:0 0;border:0;padding:0}._volumeGroup_1h73w_431{padding:0}._volume_1h73w_403{display:none}._timelineGroup_1h73w_455{grid-area:1/3;grid-template-columns:1fr auto;padding:0 6px;display:grid}._timeline_1h73w_401{grid-area:2/1/auto/-1}._time_1h73w_401:first-child:after{content:" /"}._settings_1h73w_369{bottom:62px;right:6px}}@container (width<380px){._controlButton_1h73w_337{width:40px}._playButton_1h73w_417{width:44px}._time_1h73w_401:last-child{display:none}._time_1h73w_401:first-child:after{content:""}}@media (prefers-reduced-motion:reduce){._controlsLayer_1h73w_261{transition:none}._timeline_1h73w_401::-webkit-slider-thumb{transition:none}._loaderScale_1h73w_157{display:none}}._root_ymidq_1{border:1px solid var(--color-border,#d9dee8);background:var(--color-background,#fff);border-radius:12px;overflow:hidden}._trigger_ymidq_15{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}._heading_ymidq_41{gap:4px;display:grid}._title_ymidq_51{font-weight:600}._subtitle_ymidq_59{color:var(--color-text-secondary,#697386);font-size:13px}._icon_ymidq_69{width:24px;height:24px;color:var(--color-text-secondary,#697386);justify-content:center;align-items:center;font-size:20px;transition:transform .22s;display:inline-flex}._open_ymidq_91 ._icon_ymidq_69{transform:rotate(180deg)}._content_ymidq_99{grid-template-rows:0fr;transition:grid-template-rows .24s;display:grid}._open_ymidq_91 ._content_ymidq_99{grid-template-rows:1fr}._contentInner_ymidq_119{min-height:0;padding:0 20px;transition:padding .24s;overflow:hidden}._open_ymidq_91 ._contentInner_ymidq_119{padding:0 20px 20px}
|
|
1
|
+
:root{--color-primary:#354755;--color-primary-hover:#717e88;--color-text-light:var(--color-surface);--color-text:#172033;--color-inactive:#98a2b3;--color-success:#179c66;--color-warning:#f59e0b;--color-error:#dc2626;--color-background-disabled:#f2f4f7;--color-background-button-primary:var(--color-primary);--color-text-button-primary:#fff;--color-border-primary:var(--color-primary);--color-hover-background-button-primary:var(--color-primary-hover);--color-hover-text-button-primary:#fff;--color-hover-border-primary:var(--color-primary-hover);--color-background-button-secondary:var(--color-primary);--color-text-button-secondary:#fff;--color-border-secondary:var(--color-primary);--color-hover-background-button-secondary:var(--color-primary-hover);--color-hover-text-button-secondary:#fff;--color-hover-border-secondary:var(--color-primary-hover);--color-background-button-outline:#fff;--color-text-button-outline:var(--color-primary);--color-border-outline:var(--color-primary);--color-hover-background-button-outline:#f7faff;--color-hover-text-button-outline:var(--color-primary-hover);--color-hover-border-outline:var(--color-primary-hover);--color-background-button-ghost:#d4d8db;--color-text-button-ghost:var(--color-primary);--color-border-ghost:#d4d8db;--color-hover-background-button-ghost:#e5e7e9;--color-hover-text-button-ghost:var(--color-primary);--color-hover-border-ghost:#e5e7e9;--color-background-button-empty:transparent;--color-text-button-empty:var(--color-primary);--color-border-empty:transparent;--color-hover-background-button-empty:transparent;--color-hover-text-button-empty:var(--color-primary-hover);--color-hover-border-empty:var(--color-primary-hover);--color-surface:#fff;--color-border:#dce3ec;--color-border-hover:#b8c4d4;--color-control-track:#dce3ec;--color-text-secondary:#667085;--color-focus-ring:color-mix(in srgb, var(--color-primary) 20%, transparent);--color-neutral-surface:#f2f4f7;--color-neutral-text:#475467;--color-neutral-border:#e4e7ec;--color-info-surface:#179cf01f;--color-info-text:#0878bd;--color-success-surface:#179c661f;--color-success-text:#11784f;--color-warning-surface:#fff4d6;--color-warning-text:#8a5800;--color-error-surface:#feecec;--color-error-text:#b91c1c;--color-skeleton-base:#d1dcdd;--color-skeleton-highlight:#f5f7fa;--shadow-floating:0 12px 32px #10182824;--z-dropdown:9999;--z-tooltip:9999;--z-modal:1200;--z-toast:1300;--ds-dropdown-menu-max-height:240px;--gap-s:8px;--gap-m:12px;--gap-l:20px;--text-size-s:12px;--text-size-m:14px;--text-size-l:18px;--border-radius:8px;--height-s:30px;--height-m:40px;--height-l:50px}._badge_1xyff_1{white-space:nowrap;border:1px solid #0000;border-radius:999px;flex-wrap:nowrap;align-items:center;gap:6px;max-width:100%;font-size:12px;font-weight:600;line-height:1;display:inline-flex}._sm_1xyff_29{min-height:20px;padding:0 8px}._md_1xyff_39{min-height:24px;padding:0 10px}._neutral_1xyff_49{border-color:var(--color-neutral-border);background:var(--color-neutral-surface);color:var(--color-neutral-text)}._info_1xyff_61{border-color:color-mix(in srgb, var(--color-info-text) 18%, transparent);background:var(--color-info-surface);color:var(--color-info-text)}._success_1xyff_73{border-color:color-mix(in srgb, var(--color-success-text) 18%, transparent);background:var(--color-success-surface);color:var(--color-success-text)}._warning_1xyff_85{border-color:color-mix(in srgb, var(--color-warning-text) 18%, transparent);background:var(--color-warning-surface);color:var(--color-warning-text)}._error_1xyff_97{border-color:color-mix(in srgb, var(--color-error-text) 18%, transparent);background:var(--color-error-surface);color:var(--color-error-text)}._dot_1xyff_109{background:currentColor;border-radius:50%;flex:0 0 6px;width:6px;height:6px}._icon_1xyff_125{flex:none;display:inline-flex}._label_1xyff_135{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._container_1jyk1_1{flex-shrink:0;justify-content:center;align-items:center;width:30px;height:100%;min-height:20px;display:inline-flex}._inner_1jyk1_21{justify-content:space-between;align-items:center;width:100%;height:100%;min-height:20px;display:flex}._line_1jyk1_39{background-color:var(--color-primary);border-radius:4px;width:4px;height:100%;min-height:20px;transition:background-color .3s}._line_1jyk1_39._primary_1jyk1_57{background-color:var(--color-text-button-primary)}._line_1jyk1_39._secondary_1jyk1_65{background-color:var(--color-info-text)}._line_1jyk1_39._outline_1jyk1_73{background-color:var(--color-text-button-outline)}._line_1jyk1_39._ghost_1jyk1_81{background-color:var(--color-text-button-ghost)}._line_1jyk1_39._empty_1jyk1_89{background-color:var(--color-text-button-empty)}._line_1jyk1_39._destructive_1jyk1_97{background-color:var(--color-text-button-primary)}._line_1jyk1_39._destructiveOutline_1jyk1_105{background-color:var(--color-error)}._line_1jyk1_39:first-child{animation:1.5s ease-in-out infinite _grow_1jyk1_1}._line_1jyk1_39:nth-child(2){animation:1.5s ease-in-out .15s infinite _grow_1jyk1_1}._line_1jyk1_39:nth-child(3){animation:1.5s ease-in-out .3s infinite _grow_1jyk1_1}._line_1jyk1_39:nth-child(4){animation:1.5s ease-in-out .45s infinite _grow_1jyk1_1}@keyframes _grow_1jyk1_1{0%,to{opacity:1;transform:scaleY(.25)}50%{opacity:.8;transform:scaleY(1)}}._button_8341b_1{justify-content:center;align-items:center;gap:var(--gap-s);border-radius:var(--border-radius);font:inherit;cursor:pointer;border:1px solid #0000;font-weight:600;line-height:1.2;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s;display:inline-flex;box-shadow:0 1px 2px #1018280a}._button_8341b_1:focus-visible{box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._button_8341b_1:disabled{border-color:var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive);box-shadow:none;opacity:1;cursor:not-allowed}._sm_8341b_59{height:var(--height-s);min-height:var(--height-s);font-size:var(--text-size-s);padding:6px 12px}._md_8341b_73{height:var(--height-m);min-height:var(--height-m);font-size:var(--text-size-m);padding:8px 16px}._lg_8341b_87{height:var(--height-l);min-height:var(--height-l);padding:11px 20px;font-size:16px}._primary_8341b_101,._primary_8341b_101:disabled[aria-busy=true]{background:var(--color-background-button-primary);color:var(--color-text-button-primary);border-color:var(--color-border-primary)}._secondary_8341b_115,._secondary_8341b_115:disabled[aria-busy=true]{border-color:var(--color-info-surface);background:var(--color-info-surface);color:var(--color-info-text)}._outline_8341b_129,._outline_8341b_129:disabled[aria-busy=true]{border-color:var(--color-border-outline);background:var(--color-background-button-outline);color:var(--color-text-button-outline)}._ghost_8341b_143,._ghost_8341b_143:disabled[aria-busy=true]{border-color:var(--color-border-ghost);background:var(--color-background-button-ghost);color:var(--color-text-button-ghost)}._empty_8341b_157,._empty_8341b_157:disabled[aria-busy=true]{border-color:var(--color-border-empty);background:var(--color-background-button-empty);color:var(--color-text-button-empty)}._destructive_8341b_171,._destructive_8341b_171:disabled[aria-busy=true]{background:var(--color-error);color:var(--color-surface)}._destructiveOutline_8341b_183,._destructiveOutline_8341b_183:disabled[aria-busy=true]{border-color:var(--color-error);color:var(--color-error);background:0 0}._button_8341b_1:hover:not(:disabled){box-shadow:0 2px 6px #1018281a}._primary_8341b_101:hover:not(:disabled){border-color:var(--color-hover-border-primary);background:var(--color-hover-background-button-primary);color:var(--color-hover-text-button-primary)}._secondary_8341b_115:hover:not(:disabled){border-color:color-mix(in srgb, var(--color-info-text) 14%, transparent);background:color-mix(in srgb, var(--color-info-text) 14%, transparent);color:var(--color-info-text)}._outline_8341b_129:hover:not(:disabled){border-color:var(--color-hover-border-outline);background:var(--color-hover-background-button-outline);color:var(--color-hover-text-button-outline)}._ghost_8341b_143:hover:not(:disabled){border-color:var(--color-hover-border-ghost);background:var(--color-hover-background-button-ghost);color:var(--color-hover-text-button-ghost)}._empty_8341b_157:hover:not(:disabled){background:var(--color-hover-background-button-empty);color:var(--color-hover-text-button-empty);border-color:var(--color-hover-border-empty);filter:none}._label_1o819_1{width:fit-content;color:var(--color-text);font-size:var(--text-size-s);align-items:baseline;gap:4px;font-weight:500;line-height:1.4;display:inline-flex}._required_1o819_23,._error_1o819_25{color:var(--color-error)}._optional_1o819_33,._hint_1o819_35{color:var(--color-text-secondary);font-size:12px;font-weight:400}._disabled_1o819_47{color:var(--color-inactive)}._message_1o819_55{align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;display:flex}._success_1o819_71{color:var(--color-success)}._wrapper_1seon_1{gap:var(--gap-s);flex-direction:column;display:flex}._label_1seon_13{width:fit-content;color:var(--color-text);font-size:var(--text-size-m);cursor:pointer;align-items:center;gap:10px;font-weight:500;display:inline-flex}._input_1seon_35{opacity:0;width:1px;height:1px;position:absolute}._control_1seon_49{border:1px solid var(--color-border);background:var(--color-surface);width:20px;height:20px;color:var(--color-surface);border-radius:6px;flex:none;place-items:center;transition:background-color .16s,border-color .16s,box-shadow .16s;display:grid}._input_1seon_35:checked+._control_1seon_49,._input_1seon_35:indeterminate+._control_1seon_49{border-color:var(--color-primary);background:var(--color-primary)}._input_1seon_35:focus-visible+._control_1seon_49{box-shadow:0 0 0 3px var(--color-focus-ring)}._label_1seon_13:hover:not(._disabled_1seon_95) ._control_1seon_49{border-color:var(--color-primary)}._disabled_1seon_95{color:var(--color-inactive);cursor:not-allowed}._disabled_1seon_95 ._control_1seon_49{opacity:.55}._controlError_1seon_121{border-color:var(--color-error)}._wrapper_su17c_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex;position:relative}._trigger_su17c_17{width:100%;min-height:var(--height-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;transition:border-color .16s,box-shadow .16s;display:flex}._trigger_su17c_17._sm_su17c_53{height:var(--height-s);min-height:var(--height-s);padding:0 10px}._trigger_su17c_17._md_su17c_65{height:var(--height-m);min-height:var(--height-m)}._trigger_su17c_17._lg_su17c_75{height:var(--height-l);min-height:var(--height-l);padding:0 14px}._chevron_su17c_89{width:20px;height:20px;color:var(--color-text-secondary);flex-shrink:0;transition:transform .2s}._chevron_su17c_89 svg{width:100%;height:100%}._chevronOpen_su17c_115{transform:rotate(180deg)}._trigger_su17c_17:focus-visible,._trigger_su17c_17:focus-within,._nav_su17c_127:focus-visible,._day_su17c_129:focus-visible,._monthSelect_su17c_131:focus-visible,._yearInput_su17c_133:focus-visible,._timeInput_su17c_135:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._dateInput_su17c_147{width:100%;min-width:0;color:var(--color-text);font:inherit;background:0 0;border:0;outline:0;padding:0}._dateInput_su17c_147::placeholder{color:var(--color-text-secondary);opacity:1}._dateInput_su17c_147:disabled{color:var(--color-inactive);cursor:not-allowed}._timeValue_su17c_189{color:var(--color-text);white-space:nowrap;flex-shrink:0}._chevronButton_su17c_201{width:20px;height:20px;color:inherit;cursor:pointer;background:0 0;border:0;flex-shrink:0;place-items:center;padding:0;display:grid}._chevronButton_su17c_201:disabled{cursor:default}._disabled_su17c_235{border-color:var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive);cursor:not-allowed}._validationTooltip_su17c_249{z-index:var(--z-tooltip,1200);background:var(--color-text);max-width:calc(100% - 16px);color:var(--color-surface);pointer-events:none;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.3;animation:3s forwards _validation-tooltip-lifetime_su17c_1;position:absolute;top:calc(100% + 4px);left:8px}@keyframes _validation-tooltip-lifetime_su17c_1{0%,82%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-2px)}}._trigger_su17c_17:disabled{border-color:var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive);cursor:not-allowed}._value_su17c_319{color:var(--color-text)}._trigger_su17c_17:hover:not(:disabled){border-color:var(--color-border-hover)}._placeholder_su17c_335{color:var(--color-text-secondary)}._error_su17c_343{border-color:var(--color-error)}._panel_su17c_351{z-index:var(--z-dropdown);box-sizing:border-box;width:min(360px,100vw - 16px);padding:var(--gap-m);border:1px solid var(--color-border);background:var(--color-surface);box-shadow:var(--shadow-floating);border-radius:10px;position:fixed;overflow-y:auto}._calendarHeader_su17c_377{grid-template-columns:36px minmax(110px,1fr) 84px 36px;align-items:center;gap:6px;margin-bottom:12px;display:grid}._nav_su17c_127,._day_su17c_129{color:var(--color-text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px}._nav_su17c_127{min-height:36px;font-size:22px}._nav_su17c_127:hover,._day_su17c_129:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._monthSelect_su17c_131,._yearInput_su17c_133,._timeInput_su17c_135{border:1px solid var(--color-border);background:var(--color-surface);min-width:0;min-height:36px;color:var(--color-text);font:inherit;border-radius:8px}._monthSelect_su17c_131,._yearInput_su17c_133{padding:6px 8px}._weekdays_su17c_467,._days_su17c_469{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}._weekdays_su17c_467{color:var(--color-text-secondary);text-align:center;margin-bottom:4px;font-size:12px}._day_su17c_129{aspect-ratio:1;min-width:32px}._outside_su17c_505{color:var(--color-inactive)}._selected_su17c_513{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._day_su17c_129:disabled{opacity:.35;cursor:not-allowed}._timeLabel_su17c_533{gap:var(--gap-s);margin-top:var(--gap-m);color:var(--color-text);font-size:var(--text-size-m);font-weight:600;display:grid}._timeInput_su17c_135{padding:8px 12px}@media (width<400px){._panel_su17c_351{width:calc(100vw - 16px);padding:12px}._calendarHeader_su17c_377{grid-template-columns:32px minmax(96px,1fr) 76px 32px}}@media (prefers-reduced-motion:reduce){._validationTooltip_su17c_249{animation-timing-function:step-end}}._previousMonth_su17c_593{transform:rotate(90deg)}._nextMonth_su17c_601{transform:rotate(-90deg)}._root_19vq2_1{gap:var(--gap-s);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._range_19vq2_21{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_19vq2_21{grid-template-columns:1fr}}._group_10ug0_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._skeleton_10ug0_15{background:var(--color-skeleton-base);display:block;overflow:hidden}._text_10ug0_27{border-radius:4px;height:14px}._rectangular_10ug0_37{border-radius:var(--border-radius);min-height:44px}._circular_10ug0_47{border-radius:50%;width:40px;height:40px}._animated_10ug0_59{background-image:linear-gradient(90deg, var(--color-skeleton-base), var(--color-skeleton-highlight), var(--color-skeleton-base));background-size:200% 100%;animation:1.4s linear infinite _ds-skeleton_10ug0_1}@keyframes _ds-skeleton_10ug0_1{to{background-position-x:-200%}}@media (prefers-reduced-motion:reduce){._animated_10ug0_59{background-image:none;animation:none}}._wrapper_6g3qd_1{gap:var(--gap-s);width:100%;color:var(--color-text);flex-direction:column;display:flex}._container_6g3qd_17{position:relative}._trigger_6g3qd_25,._disabledText_6g3qd_27{width:100%;min-height:var(--height-m);box-sizing:border-box;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:0 14px;transition:border-color .16s,box-shadow .16s,background-color .16s}._trigger_6g3qd_25._sm_6g3qd_53,._disabledText_6g3qd_27._sm_6g3qd_53{height:var(--height-s);min-height:var(--height-s);padding:0 10px}._trigger_6g3qd_25._md_6g3qd_67,._disabledText_6g3qd_27._md_6g3qd_67{height:var(--height-m);min-height:var(--height-m);padding:0 12px}._trigger_6g3qd_25._lg_6g3qd_81,._disabledText_6g3qd_27._lg_6g3qd_81{height:var(--height-l);min-height:var(--height-l);padding:0 14px}._trigger_6g3qd_25{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;display:flex}._trigger_6g3qd_25:hover:not(:disabled){border-color:var(--color-border-hover)}._trigger_6g3qd_25:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._trigger_6g3qd_25:disabled,._disabledText_6g3qd_27{background:var(--color-background-disabled);border-color:var(--color-border);color:var(--color-inactive);cursor:not-allowed}._value_6g3qd_147,._placeholder_6g3qd_149{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--text-size-s);text-align:left;overflow:hidden}._value_6g3qd_147._sm_6g3qd_53,._placeholder_6g3qd_149._sm_6g3qd_53,._value_6g3qd_147._md_6g3qd_67,._placeholder_6g3qd_149._md_6g3qd_67{font-size:var(--text-size-s)}._value_6g3qd_147._lg_6g3qd_81,._placeholder_6g3qd_149._lg_6g3qd_81{font-size:16px}._placeholder_6g3qd_149{color:var(--color-text-secondary)}._chevron_6g3qd_205{width:20px;height:20px;color:var(--color-text-secondary);flex-shrink:0;transition:transform .2s}._chevron_6g3qd_205 svg{width:100%;height:100%}._chevronOpen_6g3qd_231{transform:rotate(180deg)}._menu_6g3qd_239{z-index:var(--z-dropdown);max-height:var(--ds-dropdown-menu-max-height);overscroll-behavior:contain;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);box-shadow:var(--shadow-floating);margin:0;padding:4px;list-style:none;position:fixed;overflow-y:auto}._option_6g3qd_269{width:100%;color:var(--color-text);font-size:var(--text-size-s);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;display:flex}._option_6g3qd_269._sm_6g3qd_53{min-height:32px;font-size:var(--text-size-s);padding:6px 10px}._option_6g3qd_269._md_6g3qd_67{min-height:36px;font-size:var(--text-size-s);padding:8px 10px}._option_6g3qd_269._lg_6g3qd_81{min-height:40px;font-size:var(--text-size-l);padding:10px 12px}._option_6g3qd_269:hover:not(:disabled),._option_6g3qd_269:focus-visible,._selected_6g3qd_339{background:color-mix(in srgb, var(--color-primary) 9%, transparent);outline:none}._option_6g3qd_269:disabled{opacity:.5;cursor:not-allowed}._message_6g3qd_359,._error_6g3qd_361{font-size:12px;line-height:1.4}._message_6g3qd_359{color:var(--color-text-secondary)}._error_6g3qd_361{color:var(--color-error)}._errorState_6g3qd_387 ._trigger_6g3qd_25{border-color:var(--color-error)}._root_1jtuu_1{gap:var(--gap-m);width:100%;color:var(--color-text);display:grid}._tableWrap_1jtuu_15{border:1px solid var(--color-border);border-radius:var(--border-radius);overflow:auto}._table_1jtuu_15{border-collapse:collapse;background:var(--color-surface);width:100%}._table_1jtuu_15 caption{padding:var(--gap-s);text-align:left;font-weight:600}._table_1jtuu_15 th,._table_1jtuu_15 td{min-height:var(--height-m);padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);text-align:left}._table_1jtuu_15 tbody tr:last-child td{border-bottom:0}._table_1jtuu_15 tbody tr:hover{background:var(--color-info-surface)}._sticky_1jtuu_81{z-index:1;background:var(--color-surface);position:sticky;top:0}._sortButton_1jtuu_95{align-items:center;gap:var(--gap-s);width:100%;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;display:inline-flex}._sortButton_1jtuu_95:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}._state_1jtuu_133{padding:var(--gap-l);color:var(--color-text-secondary);text-align:center}._cards_1jtuu_145,._mobileSort_1jtuu_145{display:none}._card_1jtuu_145{padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);gap:12px;display:grid}._card_1jtuu_145 h3{font-size:var(--text-size-m);margin:0}._card_1jtuu_145 dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}._card_1jtuu_145 dt{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px}._card_1jtuu_145 dd{overflow-wrap:anywhere;font-size:var(--text-size-s);margin:4px 0 0}._card_1jtuu_145 footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:12px;display:flex}._spanTwo_1jtuu_233{grid-column:span 2}._clickableRow_1jtuu_241{cursor:pointer}._pagination_1jtuu_249{justify-content:space-between;align-items:center;gap:var(--gap-m);margin-top:calc(var(--gap-m) * -1);padding:var(--gap-s) var(--gap-m);border:1px solid var(--color-border);border-radius:0 0 var(--border-radius) var(--border-radius);background:var(--color-surface);border-top:0;display:flex}._paginationRange_1jtuu_275{color:var(--color-text-secondary);font-size:var(--text-size-m);white-space:nowrap}._paginationControls_1jtuu_287,._pageNumbers_1jtuu_289{align-items:center;gap:var(--gap-s);display:flex}._pageButton_1jtuu_301{min-width:var(--height-m);padding-inline:var(--gap-s)}._ellipsis_1jtuu_311{min-width:var(--height-m);color:var(--color-text-secondary);text-align:center}._previousIcon_1jtuu_323{transform:rotate(90deg)}._nextIcon_1jtuu_331{transform:rotate(-90deg)}@media (width<640px){._pagination_1jtuu_249{flex-direction:column;align-items:stretch}._paginationControls_1jtuu_287{justify-content:space-between}._pageNumbers_1jtuu_289,._default_1jtuu_371:not(._tableOnMobile_1jtuu_371) ._tableWrap_1jtuu_15{display:none}._default_1jtuu_371:not(._tableOnMobile_1jtuu_371) ._cards_1jtuu_145{gap:12px;display:grid}._default_1jtuu_371:not(._tableOnMobile_1jtuu_371) ._mobileSort_1jtuu_145{display:block}}@media (width<1280px){._wide_1jtuu_401:not(._tableOnMobile_1jtuu_371) ._tableWrap_1jtuu_15{display:none}._wide_1jtuu_401:not(._tableOnMobile_1jtuu_371) ._cards_1jtuu_145{gap:12px;display:grid}._wide_1jtuu_401:not(._tableOnMobile_1jtuu_371) ._mobileSort_1jtuu_145{display:block}}._wrapper_1izp1_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_1izp1_15{display:flex;position:relative}._input_1izp1_25,._disabledText_1izp1_25{width:100%;font-size:var(--text-size-s);min-height:var(--height-m);max-height:var(--height-m);height:var(--height-m);box-sizing:border-box;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);transition:border-color .16s,box-shadow .16s,background-color .16s}._input_1izp1_25:hover:not(:disabled,:read-only){border-color:var(--color-border-hover)}._input_1izp1_25:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._input_1izp1_25:read-only{background:var(--color-background-disabled);cursor:default;caret-color:#0000}._input_1izp1_25:read-only:focus-visible{border-color:var(--color-border);box-shadow:none}._input_1izp1_25:disabled,._disabledText_1izp1_25{border:1px solid var(--color-border);background:var(--color-background-disabled);color:var(--color-inactive)}._sm_1izp1_107{height:var(--height-s);min-height:var(--height-s);max-height:var(--height-s);font-size:var(--text-size-s);padding:6px 10px}._md_1izp1_123{height:var(--height-m);min-height:var(--height-m);max-height:var(--height-m);font-size:var(--text-size-m);padding:8px 12px}._lg_1izp1_139{height:var(--height-l);min-height:var(--height-l);max-height:var(--height-l);padding:11px 14px;font-size:16px}._inputError_1izp1_155{border-color:var(--color-error)}._input_1izp1_25:has(+._trailingAction_1izp1_163){padding-right:28px}._trailingAction_1izp1_163{width:30px;height:30px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;font-size:20px;display:grid;position:absolute;top:50%;right:0;transform:translateY(-50%)}._trailingAction_1izp1_163:hover:not(:disabled){color:var(--color-primary);background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._trailingAction_1izp1_163:disabled{cursor:not-allowed;opacity:.55}._trailingAction_1izp1_163:focus-visible{box-shadow:0 0 0 3px var(--color-focus-ring);outline:none}._trailingAction_1izp1_163 svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}._wrapper_1v2s8_1{gap:var(--gap-s);width:100%;color:var(--color-text);flex-direction:column;display:flex}._control_1v2s8_17{position:relative}._inputHost_1v2s8_25 input{box-sizing:border-box;min-height:var(--height-m);height:var(--height-m);max-height:var(--height-m);padding:0 42px 0 14px}._inputHost_1v2s8_25._sm_1v2s8_41 input{min-height:var(--height-s);height:var(--height-s);max-height:var(--height-s);font-size:var(--text-size-s);padding-left:8px}._inputHost_1v2s8_25._md_1v2s8_57 input{min-height:var(--height-m);height:var(--height-m);max-height:var(--height-m);font-size:var(--text-size-s)}._inputHost_1v2s8_25._lg_1v2s8_71 input{min-height:var(--height-l);height:var(--height-l);max-height:var(--height-l);font-size:16px}._errorState_1v2s8_85 input{border-color:var(--color-error)}._disabledText_1v2s8_93{width:100%;min-height:var(--height-m);border:1px solid var(--color-background-disabled);border-radius:var(--border-radius);background:var(--color-background-disabled);color:var(--color-inactive);font:inherit;font-size:var(--text-size-s);text-overflow:ellipsis;white-space:nowrap;cursor:not-allowed;align-items:center;padding:0 14px;display:flex;overflow:hidden}._disabledText_1v2s8_93._sm_1v2s8_41{min-height:var(--height-s);height:var(--height-s);padding:0 8px}._disabledText_1v2s8_93._md_1v2s8_57{min-height:var(--height-m);height:var(--height-m)}._disabledText_1v2s8_93._lg_1v2s8_71{min-height:var(--height-l);height:var(--height-l);font-size:16px}._chevron_1v2s8_163{width:20px;height:20px;color:var(--color-text-secondary);pointer-events:none;transition:transform .2s;position:absolute;top:50%;right:14px;transform:translateY(-50%)}._chevron_1v2s8_163 svg{width:100%;height:100%}._chevronOpen_1v2s8_197{transform:translateY(-50%)rotate(180deg)}._menu_1v2s8_205{z-index:var(--z-dropdown);overscroll-behavior:contain;border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);box-shadow:var(--shadow-floating);margin:0;padding:4px;list-style:none;position:fixed;overflow-y:auto}._menuEmpty_1v2s8_233{overflow-y:hidden}._option_1v2s8_241,._empty_1v2s8_241{width:100%;font-size:var(--text-size-s);text-align:left;background:0 0;border:0}._option_1v2s8_241{color:var(--color-text);cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;display:flex}._empty_1v2s8_241{color:var(--color-text-secondary);align-items:center;display:flex}._option_1v2s8_241._sm_1v2s8_41,._empty_1v2s8_241._sm_1v2s8_41{min-height:var(--height-s);padding:4px 10px}._option_1v2s8_241._md_1v2s8_57,._empty_1v2s8_241._md_1v2s8_57{min-height:var(--height-m);padding:6px 12px}._option_1v2s8_241._lg_1v2s8_71,._empty_1v2s8_241._lg_1v2s8_71{min-height:var(--height-l);font-size:var(--text-size-l);padding:10px 12px}._option_1v2s8_241:hover:not(:disabled),._option_1v2s8_241:focus-visible,._selected_1v2s8_321,._active_1v2s8_321{background:color-mix(in srgb, var(--color-primary) 9%, transparent);outline:none}._option_1v2s8_241:disabled{opacity:.5;cursor:not-allowed}._visuallyHidden_1v2s8_341{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}._root_11adi_1{border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);width:100%;color:var(--color-text);overflow-wrap:anywhere;overflow:hidden}._header_11adi_21{justify-content:space-between;align-items:center;gap:var(--gap-m);min-height:52px;padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);display:flex}._title_11adi_41{font-size:var(--text-size-m);margin:0;font-weight:600;line-height:1.4}._dismiss_11adi_55 svg{width:20px;height:20px}._content_11adi_65{padding:var(--gap-m);font-size:var(--text-size-s);line-height:1.5}._wrapper_1np4e_1{width:fit-content;color:var(--color-text);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;display:inline-flex}._input_1np4e_21{opacity:0;width:1px;height:1px;position:absolute}._switch_1np4e_35{border:1px solid var(--color-border-hover);background:var(--color-control-track);border-radius:999px;flex:none;align-items:center;width:42px;height:24px;padding:2px;transition:background .2s,border-color .2s,box-shadow .2s;display:flex}._thumb_1np4e_67{background:var(--color-surface);border-radius:50%;width:18px;height:18px;transition:transform .2s;transform:translate(2px);box-shadow:0 1px 3px #00000040}._input_1np4e_21:checked+._switch_1np4e_35{border-color:var(--color-primary);background:var(--color-primary)}._input_1np4e_21:checked+._switch_1np4e_35 ._thumb_1np4e_67{transform:translate(22px)}._input_1np4e_21:focus-visible+._switch_1np4e_35{box-shadow:0 0 0 3px var(--color-focus-ring)}._label_1np4e_113{font-size:var(--text-size-s);font-weight:500;line-height:1.4}._disabled_1np4e_125{color:var(--color-inactive);cursor:not-allowed}._disabled_1np4e_125 ._switch_1np4e_35{opacity:.55}._root_1ecm3_1{gap:16px;width:100%;display:grid}._grid_1ecm3_13{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));align-items:end;gap:12px;display:grid}._actions_1ecm3_27{justify-content:flex-end;gap:var(--gap-s);flex-wrap:wrap;display:flex}@media (width<1024px){._grid_1ecm3_13{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<640px){._grid_1ecm3_13{grid-template-columns:1fr}._actions_1ecm3_27{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}._actions_1ecm3_27>*{width:100%}}._wrapper_i20hz_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._dropzone_i20hz_15{justify-content:center;align-items:center;gap:var(--gap-m);min-height:156px;padding:var(--gap-l);border:1px dashed var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text-secondary);flex-direction:column;transition:border-color .15s,background .15s,box-shadow .15s;display:flex}._dragActive_i20hz_45{border-color:var(--color-primary);background:var(--color-info-surface);box-shadow:0 0 0 4px var(--color-focus-ring);color:var(--color-primary)}._disabled_i20hz_59{background:var(--color-neutral-surface);opacity:.6}._error_i20hz_69{border-color:var(--color-error)}._nativeInput_i20hz_77{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}._empty_i20hz_95{align-items:center;gap:var(--gap-s);text-align:center;flex-direction:column;display:flex}._uploadIcon_i20hz_111{background:var(--color-info-surface);width:40px;height:40px;color:var(--color-primary);border-radius:50%;place-items:center;font-size:24px;display:grid}._files_i20hz_133{gap:var(--gap-s);flex-direction:column;width:100%;margin:0;padding:0;list-style:none;display:flex}._file_i20hz_133{align-items:center;gap:var(--gap-s);padding:var(--gap-s);border-radius:var(--border-radius);background:var(--color-neutral-surface);color:var(--color-text);grid-template-columns:minmax(0,1fr) auto auto;display:grid}._fileName_i20hz_175{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._fileSize_i20hz_187{color:var(--color-text-secondary);font-size:var(--text-size-s);white-space:nowrap}@media (width<640px){._dropzone_i20hz_15{min-height:148px;padding:var(--gap-m)}}._wrapper_x2gki_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_x2gki_15{display:flex;position:relative}._textarea_x2gki_25,._disabledText_x2gki_27{box-sizing:border-box;width:100%;min-height:calc(var(--ds-textarea-row-height) * var(--ds-textarea-min-rows));border:1px solid var(--color-primary);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font-family:inherit;line-height:1.4}._textarea_x2gki_25{display:block}._textarea_x2gki_25::placeholder{color:var(--color-text-secondary)}._textarea_x2gki_25:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._textarea_x2gki_25:disabled,._disabledText_x2gki_27{border-color:var(--color-border);color:var(--color-inactive);background:#e9e9e9}._disabledText_x2gki_27{overflow-wrap:anywhere;white-space:pre-wrap}._sm_x2gki_103{--ds-textarea-row-height:var(--height-s);font-size:var(--text-size-s);padding:3px 10px}._md_x2gki_117{--ds-textarea-row-height:var(--height-m);font-size:var(--text-size-m);padding:9px 14px}._lg_x2gki_131{--ds-textarea-row-height:var(--height-l);font-size:var(--text-size-l);padding:13px 20px}._autoResize_x2gki_145{resize:none;overflow-y:hidden}._manualResize_x2gki_155{resize:vertical}._textareaError_x2gki_163{border-color:var(--color-error)}._textarea_x2gki_25:has(+._clearAction_x2gki_171){padding-right:36px}._clearAction_x2gki_171{width:30px;height:30px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:grid;position:absolute;top:4px;right:4px}._clearAction_x2gki_171:hover{background:color-mix(in srgb, var(--color-primary) 10%, transparent);color:var(--color-primary)}._clearAction_x2gki_171:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._clearAction_x2gki_171 svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:20px;height:20px}._messages_x2gki_251{justify-content:space-between;align-items:flex-start;gap:var(--gap-m);display:flex}._counter_x2gki_265{color:var(--color-text-secondary);font-size:var(--text-size-s);flex-shrink:0}._layer_1mvch_1{z-index:var(--z-modal);pointer-events:none;position:fixed;inset:0}._backdrop_1mvch_15{padding:var(--gap-m);pointer-events:auto;background:#0000007a;place-items:center;display:grid;position:absolute;inset:0}._panel_1mvch_35{border-radius:var(--border-radius);background:var(--color-surface);max-height:calc(100vh - 32px);color:var(--color-text);box-shadow:var(--shadow-floating);padding:8px 16px;overflow-y:auto}._panel_1mvch_35:focus{outline:none}._header_1mvch_63{justify-content:space-between;align-items:center;gap:var(--gap-m);padding:var(--gap-m);border-bottom:1px solid var(--color-border);display:flex}._title_1mvch_81{margin:0;font-size:20px;line-height:1.3}._description_1mvch_93{padding:var(--gap-m) var(--gap-m) 0;color:var(--color-text-secondary);font-size:var(--text-size-s);margin:0}._content_1mvch_107{padding:var(--gap-m)}._close_1mvch_115{margin:0 0 0 auto}._message_c23ie_1{color:var(--color-text);margin:0;line-height:1.5}._actions_c23ie_13{justify-content:flex-end;gap:var(--gap-s);margin-top:var(--gap-l);display:flex}@media (width<480px){._actions_c23ie_13{flex-direction:column-reverse}}._wrapper_71h8n_1{justify-content:center;width:100%;height:100%;display:flex}._container_71h8n_15{flex-shrink:0;justify-content:center;align-items:center;width:400px;height:420px;padding:0 36px;display:inline-flex}._inner_71h8n_35{justify-content:space-between;align-items:flex-end;width:100%;height:100%;padding-bottom:20%;display:flex}._cube_71h8n_53{flex-shrink:0;width:80px;height:80px;animation:2s ease-in-out infinite _jump_71h8n_1}._cube__inner_71h8n_67{background-color:var(--color-primary);transform-origin:bottom;border-radius:25%;width:100%;height:100%;transition:background-color .3s;animation:2s ease-in-out infinite _morph_71h8n_1;display:block}._cube_71h8n_53:nth-child(2){animation-delay:-.72s}._cube_71h8n_53:nth-child(2) ._cube__inner_71h8n_67{animation-delay:-.72s}._cube_71h8n_53:nth-child(3){animation-delay:-.4s}._cube_71h8n_53:nth-child(3) ._cube__inner_71h8n_67{animation-delay:-.4s}@keyframes _jump_71h8n_1{0%{transform:translateY(0)}28%{animation-timing-function:ease-out;transform:translateY(0)}50%{animation-timing-function:ease-in;transform:translateY(-200%)}74%{animation-timing-function:ease-in;transform:translateY(0)}}@keyframes _morph_71h8n_1{0%{transform:scaleY(1)}10%{transform:scaleY(1)}20%,25%{animation-timing-function:ease-in-out;transform:scaleY(.6)scaleX(1.3)}30%{animation-timing-function:ease-in-out;transform:scaleY(1.15)scaleX(.9)}40%{transform:scaleY(1)}72%,87%,to{transform:scaleY(1)}77%{transform:scaleY(.8)scaleX(1.2)}}._viewport_3qpmj_1{z-index:var(--z-toast);gap:var(--gap-s);pointer-events:none;flex-direction:column;width:min(380px,100vw - 32px);display:flex;position:fixed}._top-right_3qpmj_21{top:16px;right:16px}._top-left_3qpmj_31{top:16px;left:16px}._bottom-right_3qpmj_41{bottom:16px;right:16px}._bottom-left_3qpmj_51{bottom:16px;left:16px}._toast_3qpmj_61{border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-floating);pointer-events:auto;border-left-width:4px;align-items:flex-start;gap:10px;padding:12px;display:flex}._body_3qpmj_89{min-width:0;font-size:var(--text-size-s);flex-direction:column;flex:1;gap:6px;line-height:1.4;display:flex}._info_3qpmj_109{border-left-color:var(--color-primary)}._success_3qpmj_117{border-left-color:var(--color-success)}._warning_3qpmj_125{border-left-color:var(--color-warning)}._error_3qpmj_133{border-left-color:var(--color-error)}._root_8dm5q_1{display:inline-flex;position:relative}._tooltip_8dm5q_11{z-index:var(--z-tooltip);background:var(--color-text);width:max-content;max-width:calc(100vw - 32px);color:var(--color-surface);pointer-events:none;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;animation:.12s ease-out _ds-tooltip-in_8dm5q_1;position:absolute;box-shadow:0 6px 18px #0000002e}._top_8dm5q_43{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._bottom_8dm5q_55{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._left_8dm5q_67{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._right_8dm5q_79{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}@keyframes _ds-tooltip-in_8dm5q_1{0%{opacity:0}}@media (prefers-reduced-motion:reduce){._tooltip_8dm5q_11{animation:none}}._root_1h73w_1{--video-control-bg:#070e15e0;--video-control-bg-hover:#14222ef0;--video-control-border:#8ea9bf57;--video-control-text:#f4f8fb;--video-control-muted:#a9b8c4;--video-accent:#47a9ff;--video-track:#607282;--video-buffered:#8fa0ad;gap:var(--gap-s);width:100%;margin:0;display:grid;container-type:inline-size}._frame_1h73w_35{border:1px solid var(--color-border);border-radius:var(--border-radius);width:100%;color:var(--video-control-text);background:#080d12;outline:none;position:relative;overflow:hidden}._frame_1h73w_35:focus-visible{box-shadow:0 0 0 2px var(--video-accent)}._video_1h73w_65{cursor:pointer;background:#000;width:100%;height:100%;display:block}._overlay_1h73w_81,._state_1h73w_83,._buffering_1h73w_85{justify-content:center;align-items:center;gap:var(--gap-s);padding:var(--gap-m);text-align:center;flex-direction:column;display:flex;position:absolute;inset:0}._overlay_1h73w_81{z-index:5;color:var(--video-control-text);font-size:var(--text-size-s);background:#060c12e0;font-weight:600}._buffering_1h73w_85{z-index:4;pointer-events:none}._buffering_1h73w_85>div{background:#070e15b8;border-radius:50%}._loaderViewport_1h73w_145{width:88px;height:92px;overflow:hidden}._loaderScale_1h73w_157{transform-origin:0 0;width:400px;height:420px;transform:scale(.22)}._stateIcon_1h73w_171{width:40px;height:40px}._state_1h73w_83 strong{font-size:var(--text-size-m);line-height:1.4}._state_1h73w_83 span{color:inherit;font-size:var(--text-size-s);line-height:1.4}._empty_1h73w_203{color:#b6c2cc;background:#111a22}._error_1h73w_213{z-index:6;color:#f0c8c8;background:#111a22f5}._replay_1h73w_225{z-index:3;border:1px solid var(--video-control-border);background:var(--video-control-bg);width:56px;height:56px;color:var(--video-control-text);cursor:pointer;border-radius:12px;place-items:center;padding:0;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._controlsLayer_1h73w_261{z-index:3;opacity:0;visibility:hidden;background:linear-gradient(#0000,#040a10f5);padding:48px 10px 10px;transition:opacity .16s,visibility .16s;position:absolute;bottom:0;left:0;right:0}._controlsVisible_1h73w_287,._controlsLayer_1h73w_261:focus-within{opacity:1;visibility:visible}._controls_1h73w_261{align-items:stretch;gap:8px;display:flex}._controlGroup_1h73w_311{border:1px solid var(--video-control-border);background:var(--video-control-bg);border-radius:10px;align-items:center;gap:4px;min-width:0;min-height:48px;padding:3px;display:flex;box-shadow:inset 0 1px #ffffff0a}._controlButton_1h73w_337{width:44px;height:40px;color:var(--video-control-text);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;flex:none;place-items:center;padding:0;display:grid}._controlButton_1h73w_337:hover,._controlButton_1h73w_337[aria-expanded=true],._settingsAction_1h73w_369:hover,._replay_1h73w_225:hover{border-color:var(--video-control-border);background:var(--video-control-bg-hover)}._controlButton_1h73w_337:active,._settingsAction_1h73w_369:active,._replay_1h73w_225:active{border-color:var(--video-accent);background:color-mix(in srgb, var(--video-accent) 24%, var(--video-control-bg))}._controlButton_1h73w_337:focus-visible,._settingsAction_1h73w_369:focus-visible,._replay_1h73w_225:focus-visible,._timeline_1h73w_401:focus-visible,._volume_1h73w_403:focus-visible,._settings_1h73w_369 select:focus-visible{outline:2px solid var(--video-accent);outline-offset:2px;box-shadow:0 0 12px #47a9ff59}._playButton_1h73w_417{border-color:var(--video-accent);width:48px;height:42px;box-shadow:0 0 10px #47a9ff38}._volumeGroup_1h73w_431{padding-right:8px}._volume_1h73w_403{width:72px;height:4px;accent-color:var(--video-accent);cursor:pointer;margin:0}._timelineGroup_1h73w_455{flex:320px;padding:3px 12px}._time_1h73w_401{color:#e6edf4;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;font-size:12px}._timeline_1h73w_401{appearance:none;cursor:pointer;background:0 0;width:100%;min-width:72px;height:18px;margin:0}._timeline_1h73w_401::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--video-accent) 0 var(--video-progress), var(--video-buffered) var(--video-progress) var(--video-buffered), var(--video-track) var(--video-buffered) 100%);border-radius:999px;height:3px}._timeline_1h73w_401::-moz-range-track{background:var(--video-track);border-radius:999px;height:3px}._timeline_1h73w_401::-moz-range-progress{background:var(--video-accent);border-radius:999px;height:3px}._timeline_1h73w_401::-webkit-slider-thumb{appearance:none;background:var(--video-accent);opacity:0;border:2px solid #d8efff;border-radius:50%;width:10px;height:10px;margin-top:-3.5px;transition:opacity .12s,transform .12s}._timeline_1h73w_401::-moz-range-thumb{background:var(--video-accent);opacity:0;border:2px solid #d8efff;border-radius:50%;width:10px;height:10px}._timeline_1h73w_401:hover::-webkit-slider-thumb{opacity:1;transform:scale(1.15)}._timeline_1h73w_401:focus-visible::-webkit-slider-thumb{opacity:1;transform:scale(1.15)}._timeline_1h73w_401:hover::-moz-range-thumb{opacity:1;transform:scale(1.15)}._timeline_1h73w_401:focus-visible::-moz-range-thumb{opacity:1;transform:scale(1.15)}._settings_1h73w_369{border:1px solid var(--video-control-border);width:min(250px,100% - 20px);color:var(--video-control-text);background:#070e15f7;border-radius:10px;gap:10px;padding:12px;display:grid;position:absolute;bottom:68px;right:58px;box-shadow:0 12px 28px #0000006b}._settings_1h73w_369 label{color:var(--video-control-muted);grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:8px;font-size:12px;display:grid}._settings_1h73w_369 select{border:1px solid var(--video-control-border);width:100%;height:32px;color:var(--video-control-text);background:#15222d;border-radius:7px;padding:0 8px}._settingsAction_1h73w_369{min-height:36px;color:var(--video-control-text);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}._settingsActionLabel_1h73w_693{align-items:center;gap:8px;display:inline-flex}._caption_1h73w_705{color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._fullscreen_1h73w_719{border:0;border-radius:0}._frame_1h73w_35:fullscreen{border:0;border-radius:0}._fullscreen_1h73w_719 ._video_1h73w_65{object-fit:contain!important}._frame_1h73w_35:fullscreen ._video_1h73w_65{object-fit:contain!important}@container (width<600px){._controlsLayer_1h73w_261{padding:42px 6px 6px}._controls_1h73w_261{border:1px solid var(--video-control-border);background:var(--video-control-bg);border-radius:10px;grid-template-columns:auto auto minmax(0,1fr) auto;gap:5px;padding:3px;display:grid}._controlGroup_1h73w_311{min-height:44px;box-shadow:none;background:0 0;border:0;padding:0}._volumeGroup_1h73w_431{padding:0}._volume_1h73w_403{display:none}._timelineGroup_1h73w_455{grid-area:1/3;grid-template-columns:1fr auto;padding:0 6px;display:grid}._timeline_1h73w_401{grid-area:2/1/auto/-1}._time_1h73w_401:first-child:after{content:" /"}._settings_1h73w_369{bottom:62px;right:6px}}@container (width<380px){._controlButton_1h73w_337{width:40px}._playButton_1h73w_417{width:44px}._time_1h73w_401:last-child{display:none}._time_1h73w_401:first-child:after{content:""}}@media (prefers-reduced-motion:reduce){._controlsLayer_1h73w_261{transition:none}._timeline_1h73w_401::-webkit-slider-thumb{transition:none}._loaderScale_1h73w_157{display:none}}._root_ymidq_1{border:1px solid var(--color-border,#d9dee8);background:var(--color-background,#fff);border-radius:12px;overflow:hidden}._trigger_ymidq_15{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}._heading_ymidq_41{gap:4px;display:grid}._title_ymidq_51{font-weight:600}._subtitle_ymidq_59{color:var(--color-text-secondary,#697386);font-size:13px}._icon_ymidq_69{width:24px;height:24px;color:var(--color-text-secondary,#697386);justify-content:center;align-items:center;font-size:20px;transition:transform .22s;display:inline-flex}._open_ymidq_91 ._icon_ymidq_69{transform:rotate(180deg)}._content_ymidq_99{grid-template-rows:0fr;transition:grid-template-rows .24s;display:grid}._open_ymidq_91 ._content_ymidq_99{grid-template-rows:1fr}._contentInner_ymidq_119{min-height:0;padding:0 20px;transition:padding .24s;overflow:hidden}._open_ymidq_91 ._contentInner_ymidq_119{padding:0 20px 20px}
|
|
2
2
|
/*$vite$:1*/
|