@efficiency-point/design-system 0.0.11 → 0.0.13

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/README.md CHANGED
@@ -122,14 +122,6 @@ export function Example() {
122
122
  <DSDateTimePicker mode="datetime" value={date} onChange={setDate} />
123
123
  ```
124
124
 
125
- ### DSTimePeriodPicker
126
-
127
- Композиция выбора типа периода и дат начала/окончания. Публичны `DSTimePeriodPickerValue`, `DSTimePeriodTypeCode` и `DSTimePeriodType`.
128
-
129
- ```tsx
130
- <DSTimePeriodPicker value={period} onChange={setPeriod} />
131
- ```
132
-
133
125
  ### DSDateRange
134
126
 
135
127
  Контролируемый диапазон дат или локальных даты/времени. `onChange` получает только завершённую валидную пару `Date`; промежуточное состояние доступно через `onDraftChange`.
@@ -1 +1 @@
1
- {"version":3,"file":"DSFilters.d.ts","sourceRoot":"","sources":["../../../src/components/DSFilters/DSFilters.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIhE,KAAK,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvG,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAC;AAClH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACpH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACpH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAClI,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAC5I,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,gBAAgB,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,IAAI;IAC1E,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,cAAc,EAAE,2FAUvD,cAAc,CAAC,OAAO,CAAC,gCA4CzB,CAAC"}
1
+ {"version":3,"file":"DSFilters.d.ts","sourceRoot":"","sources":["../../../src/components/DSFilters/DSFilters.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIhE,KAAK,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvG,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAC;AAClH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACpH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACpH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAClI,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAC5I,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,gBAAgB,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,IAAI;IAC1E,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,SAAS,cAAc,EAAE,2FAUvD,cAAc,CAAC,OAAO,CAAC,gCAiEzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DSIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DSIcon/DSIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAC7G,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAChD,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAaF,eAAO,MAAM,MAAM,GAAI,0CAAoD,WAAW,gCAkBrF,CAAC"}
1
+ {"version":3,"file":"DSIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DSIcon/DSIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAC7G,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAChD,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAYF,eAAO,MAAM,MAAM,GAAI,0CAAoD,WAAW,gCAkBrF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DSModal.d.ts","sourceRoot":"","sources":["../../../src/components/DSModal/DSModal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAKtE,eAAO,MAAM,YAAY,GAAI,yEAQ1B,iBAAiB,gCAkEnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,EAAE,aAAa,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,uCA8CjD,CAAC"}
1
+ {"version":3,"file":"DSModal.d.ts","sourceRoot":"","sources":["../../../src/components/DSModal/DSModal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAKtE,eAAO,MAAM,YAAY,GAAI,yEAQ1B,iBAAiB,gCAuEnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,EAAE,aAAa,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,uCA8CjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DSToast.d.ts","sourceRoot":"","sources":["../../../src/components/DSToast/DSToast.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,oBAAoB,YAAY,gCAwDvD,CAAC"}
1
+ {"version":3,"file":"DSToast.d.ts","sourceRoot":"","sources":["../../../src/components/DSToast/DSToast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AA0DF,eAAO,MAAM,OAAO,GAAI,oBAAoB,YAAY,gCA6DvD,CAAC"}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime"),t=require("react"),n=require("@tanstack/react-table"),r=require("react-dom"),i=require("zustand");var a={badge:`_badge_1pk53_1`,sm:`_sm_1pk53_3`,md:`_md_1pk53_5`,neutral:`_neutral_1pk53_7`,info:`_info_1pk53_9`,success:`_success_1pk53_11`,warning:`_warning_1pk53_13`,error:`_error_1pk53_15`,dot:`_dot_1pk53_17`,icon:`_icon_1pk53_19`,label:`_label_1pk53_21`},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={loader:`_loader_1tjcf_1`,"ds-spin":`_ds-spin_1tjcf_1`,primary:`_primary_1tjcf_21`,secondary:`_secondary_1tjcf_23`,light:`_light_1tjcf_25`,danger:`_danger_1tjcf_27`},c=({variant:t=`primary`,label:n=`Загрузка`,className:r=``,decorative:i=!1})=>(0,e.jsx)(`span`,{className:`${s.loader} ${s[t]} ${r}`,role:i?void 0:`status`,"aria-label":i?void 0:n,"aria-hidden":i||void 0}),l={button:`_button_1jisp_1`,sm:`_sm_1jisp_31`,md:`_md_1jisp_33`,lg:`_lg_1jisp_35`,primary:`_primary_1jisp_37`,secondary:`_secondary_1jisp_39`,outline:`_outline_1jisp_41`,ghost:`_ghost_1jisp_45`,empty:`_empty_1jisp_57`,destructive:`_destructive_1jisp_67`,destructiveOutline:`_destructiveOutline_1jisp_69`},u=(0,t.forwardRef)(({children:t,variant:n=`primary`,size:r=`md`,isLoading:i=!1,loadingLabel:a=`Загрузка`,disabled:o,type:s=`button`,className:u=``,...d},f)=>(0,e.jsx)(`button`,{ref:f,type:s,className:`${l.button} ${l[n]} ${l[r]} ${u}`,disabled:o||i,"aria-busy":i||void 0,...d,children:i?(0,e.jsx)(c,{variant:`light`,label:a}):t}));u.displayName=`DSButton`;var d={label:`_label_1lsqq_1`,required:`_required_1lsqq_23`,error:`_error_1lsqq_25`,optional:`_optional_1lsqq_33`,hint:`_hint_1lsqq_35`,disabled:`_disabled_1lsqq_47`,message:`_message_1lsqq_55`,success:`_success_1lsqq_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={wrapper:`_wrapper_1gq36_1`,label:`_label_1gq36_3`,input:`_input_1gq36_5`,control:`_control_1gq36_7`,disabled:`_disabled_1gq36_13`,controlError:`_controlError_1gq36_17`},h=({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,...h})=>{let g=(0,t.useId)(),_=d??`ds-checkbox-${u??g}`,v=(0,t.useRef)(null),y=a?`${_}-hint`:void 0,b=o?`${_}-error`:void 0;return(0,t.useEffect)(()=>{v.current&&(v.current.indeterminate=f&&!n)},[n,f]),(0,e.jsxs)(`div`,{className:`${m.wrapper} ${l}`,children:[(0,e.jsxs)(`label`,{className:`${m.label} ${s?m.disabled:``}`,htmlFor:_,children:[(0,e.jsx)(`input`,{ref:v,id:_,name:u,type:`checkbox`,checked:n,disabled:s,"aria-readonly":c||void 0,"aria-invalid":!!o,"aria-describedby":[y,b].filter(Boolean).join(` `)||void 0,className:m.input,onChange:e=>{c||r?.(e.target.checked,e)},...h}),(0,e.jsx)(`span`,{className:`${m.control} ${o?m.controlError:``}`,"aria-hidden":`true`,children:f&&!n?`−`:n?`✓`:``}),i&&(0,e.jsx)(`span`,{children:i})]}),a&&!o&&(0,e.jsx)(p,{id:y,children:a}),o&&(0,e.jsx)(p,{id:b,variant:`error`,children:o})]})},g={wrapper:`_wrapper_1528c_1`,trigger:`_trigger_1528c_17`,nav:`_nav_1528c_53`,day:`_day_1528c_55`,monthSelect:`_monthSelect_1528c_57`,yearInput:`_yearInput_1528c_59`,timeInput:`_timeInput_1528c_61`,value:`_value_1528c_85`,placeholder:`_placeholder_1528c_93`,error:`_error_1528c_101`,panel:`_panel_1528c_109`,calendarHeader:`_calendarHeader_1528c_135`,weekdays:`_weekdays_1528c_225`,days:`_days_1528c_227`,outside:`_outside_1528c_263`,selected:`_selected_1528c_271`,timeLabel:`_timeLabel_1528c_291`},_=[`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`,`Вс`],v=[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`],y=e=>String(e).padStart(2,`0`),b=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),x=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${y(e.getMonth()+1)}-${y(e.getDate())}`,r=`${y(e.getHours())}:${y(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},S=(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}let n=new Date(t===`date`?`${e}T00:00`:e);return Number.isNaN(n.getTime())?null:n},C=(e,t)=>{if(!e)return``;let n=`${y(e.getDate())}.${y(e.getMonth()+1)}.${e.getFullYear()}`,r=`${y(e.getHours())}:${y(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n} ${r}`},w=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})},T=(e,t)=>!!(e&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()),E=(e,t,n)=>{let r=b(e).getTime();return!!(t&&r<b(t).getTime()||n&&r>b(n).getTime())},D=({value:n,onChange:r,mode:i=`date`,label:a,placeholder:o,hint:s,error:c,disabled:l=!1,readOnly:u=!1,required:d=!1,min:m,max:h,id:y,name:b,className:D=``})=>{let O=(0,t.useId)(),k=y??`ds-date-time-${b??O}`,A=s?`${k}-hint`:void 0,j=c?`${k}-error`:void 0,M=(0,t.useRef)(null),N=(0,t.useRef)(null),[P,F]=(0,t.useState)(!1),[I,L]=(0,t.useState)(n??new Date),[R,z]=(0,t.useState)(x(n,`time`)),B=(0,t.useMemo)(()=>w(I),[I]),V=i!==`time`,ee=i!==`date`;(0,t.useEffect)(()=>{n&&L(n),z(x(n,`time`))},[n]),(0,t.useEffect)(()=>{let e=e=>{M.current?.contains(e.target)||F(!1)},t=e=>{e.key===`Escape`&&(F(!1),N.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[]);let te=e=>{if(E(e,m,h))return;let t=new Date(e);t.setHours(n?.getHours()??0,n?.getMinutes()??0,0,0),r?.(t),i===`date`&&F(!1)},ne=e=>{if(z(e),!e){r?.(null);return}let t=S(e,`time`);if(!t)return;let a=new Date(i===`datetime`?n??I:new Date);a.setHours(t.getHours(),t.getMinutes(),0,0),!(m&&a<m||h&&a>h)&&r?.(a)},re=o??(i===`date`?`Выберите дату`:i===`time`?`Введите время`:`Выберите дату и время`),ie=[A,j].filter(Boolean).join(` `)||void 0;return(0,e.jsxs)(`div`,{ref:M,className:`${g.wrapper} ${D}`,children:[a&&(0,e.jsx)(f,{htmlFor:k,required:d,disabled:l,children:a}),(0,e.jsxs)(`button`,{ref:N,id:k,name:b,type:`button`,className:`${g.trigger} ${c?g.error:``}`,disabled:l,"aria-readonly":u||void 0,"aria-expanded":P,"aria-haspopup":`dialog`,"aria-describedby":ie,onClick:()=>{u||F(e=>!e)},children:[(0,e.jsx)(`span`,{className:n?g.value:g.placeholder,children:C(n,i)||re}),(0,e.jsx)(`span`,{"aria-hidden":`true`,children:`▾`})]}),P&&!u&&(0,e.jsxs)(`div`,{className:g.panel,role:`dialog`,"aria-label":a??re,children:[V&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:g.calendarHeader,children:[(0,e.jsx)(`button`,{type:`button`,className:g.nav,"aria-label":`Предыдущий месяц`,onClick:()=>L(new Date(I.getFullYear(),I.getMonth()-1,1)),children:`‹`}),(0,e.jsx)(`select`,{className:g.monthSelect,"aria-label":`Месяц`,value:I.getMonth(),onChange:e=>L(new Date(I.getFullYear(),Number(e.target.value),1)),children:v.map((t,n)=>(0,e.jsx)(`option`,{value:n,children:t},t))}),(0,e.jsx)(`input`,{className:g.yearInput,type:`number`,"aria-label":`Год`,value:I.getFullYear(),onChange:e=>L(new Date(Number(e.target.value),I.getMonth(),1))}),(0,e.jsx)(`button`,{type:`button`,className:g.nav,"aria-label":`Следующий месяц`,onClick:()=>L(new Date(I.getFullYear(),I.getMonth()+1,1)),children:`›`})]}),(0,e.jsx)(`div`,{className:g.weekdays,children:_.map(t=>(0,e.jsx)(`span`,{children:t},t))}),(0,e.jsx)(`div`,{className:g.days,children:B.map(t=>{let r=T(n,t);return(0,e.jsx)(`button`,{type:`button`,className:`${g.day} ${t.getMonth()===I.getMonth()?``:g.outside} ${r?g.selected:``}`,disabled:E(t,m,h),"aria-pressed":r,onClick:()=>te(t),children:t.getDate()},t.toISOString())})})]}),ee&&(0,e.jsxs)(`label`,{className:g.timeLabel,children:[(0,e.jsx)(`span`,{children:`Время`}),(0,e.jsx)(`input`,{className:g.timeInput,type:`time`,value:R,onChange:e=>ne(e.target.value)})]})]}),s&&!c&&(0,e.jsx)(p,{id:A,children:s}),c&&(0,e.jsx)(p,{id:j,variant:`error`,children:c})]})},O={root:`_root_1q42e_1`,legend:`_legend_1q42e_3`,range:`_range_1q42e_5`},k=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),A=({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),k(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${O.root} ${h}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:O.range,children:[(0,e.jsx)(D,{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)(D,{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})]})},j={group:`_group_1fs9e_1`,skeleton:`_skeleton_1fs9e_3`,text:`_text_1fs9e_5`,rectangular:`_rectangular_1fs9e_7`,circular:`_circular_1fs9e_9`,animated:`_animated_1fs9e_11`,"ds-skeleton":`_ds-skeleton_1fs9e_1`},M=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${j.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(o,s)=>(0,e.jsx)(`span`,{className:`${j.skeleton} ${j[t]} ${a?j.animated:``}`,style:{width:s===i-1&&i>1?`70%`:n,height:r}},s))}),N={wrapper:`_wrapper_dkn63_1`,label:`_label_dkn63_17`,container:`_container_dkn63_29`,trigger:`_trigger_dkn63_37`,disabledText:`_disabledText_dkn63_39`,value:`_value_dkn63_109`,placeholder:`_placeholder_dkn63_111`,chevron:`_chevron_dkn63_137`,chevronOpen:`_chevronOpen_dkn63_163`,menu:`_menu_dkn63_171`,option:`_option_dkn63_207`,selected:`_selected_dkn63_245`,message:`_message_dkn63_265`,error:`_error_dkn63_267`,errorState:`_errorState_dkn63_293`},P=(e,t,n)=>{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},F=({options:n,value:r,onChange:i,placeholder:a=`Выберите опцию`,disabled:o=!1,stringWhileDisabled:s=!1,label:c,error:l,hint:u,className:d=``,name:f,id:p,needMark:m=!0,maxMenuHeight:h})=>{let g=(0,t.useId)(),_=p??`ds-dropdown-${f??g}`,[v,y]=(0,t.useState)(!1),b=(0,t.useRef)(null),x=(0,t.useRef)(null),S=(0,t.useRef)([]),C=(0,t.useMemo)(()=>n.find(e=>e.value===r),[n,r]),w=u?`${_}-hint`:void 0,T=l?`${_}-error`:void 0,E=[w,T].filter(Boolean).join(` `)||void 0,D=o&&s;(0,t.useEffect)(()=>{let e=e=>{b.current?.contains(e.target)||y(!1)},t=e=>{e.key===`Escape`&&v&&(y(!1),x.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[v]);let O=(e,t)=>{let r=P(n,e,t);S.current[r]?.focus(),S.current[r]?.scrollIntoView({block:`nearest`})},k=e=>{e.disabled||(i?.(e.value,e),y(!1),x.current?.focus())};return(0,e.jsxs)(`div`,{ref:b,className:[N.wrapper,l?N.errorState:``,d].filter(Boolean).join(` `),children:[c&&(0,e.jsx)(`label`,{htmlFor:D?void 0:_,className:N.label,children:c}),(0,e.jsx)(`div`,{className:N.container,children:D?(0,e.jsx)(`div`,{id:_,className:N.disabledText,"aria-describedby":E,children:C?.label??a}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`button`,{ref:x,id:_,type:`button`,name:f,className:N.trigger,disabled:o,"aria-haspopup":`listbox`,"aria-expanded":v,"aria-controls":`${_}-listbox`,"aria-describedby":E,"aria-invalid":!!l,onClick:()=>y(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),y(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>O(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:C?N.value:N.placeholder,children:C?.label??a}),(0,e.jsx)(`span`,{className:`${N.chevron} ${v?N.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,children:(0,e.jsx)(`path`,{d:`M5 7.5L10 12.5L15 7.5`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),v&&(0,e.jsx)(`ul`,{id:`${_}-listbox`,className:N.menu,role:`listbox`,"aria-label":c,style:{maxHeight:h},children:n.map((t,i)=>{let a=t.value===r;return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{S.current[i]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:`${N.option} ${a?N.selected:``}`,onClick:()=>k(t),onKeyDown:e=>{if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),O(i+(e.key===`ArrowDown`?1:-1),e.key===`ArrowDown`?1:-1)),e.key===`Tab`&&y(!1),e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;O(e.key===`Home`?0:n.length-1,t)}},children:[(0,e.jsx)(`span`,{children:t.label}),a&&m&&(0,e.jsx)(`span`,{"aria-hidden":`true`,children:`✓`})]})},t.value)})})]})}),u&&!l&&(0,e.jsx)(`span`,{id:w,className:N.message,children:u}),l&&(0,e.jsx)(`span`,{id:T,className:N.error,children:l})]})},I=e=>`${e.id}:${e.direction}`,L=({options:t,value:n,onChange:r,label:i=`Сортировка`,placeholder:a=`Выберите сортировку`,disabled:o=!1,className:s})=>{let c=t.flatMap(e=>[{value:I({id:e.id,direction:`asc`}),label:e.ascLabel??`${e.label} · по возрастанию`,disabled:e.disabled},{value:I({id:e.id,direction:`desc`}),label:e.descLabel??`${e.label} · по убыванию`,disabled:e.disabled}]);return(0,e.jsx)(F,{options:c,value:n?I(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)})}})},R={root:`_root_1h9ti_1`,tableWrap:`_tableWrap_1h9ti_3`,table:`_table_1h9ti_3`,sticky:`_sticky_1h9ti_15`,sortButton:`_sortButton_1h9ti_17`,state:`_state_1h9ti_21`,cards:`_cards_1h9ti_23`,mobileSort:`_mobileSort_1h9ti_23`,card:`_card_1h9ti_23`,spanTwo:`_spanTwo_1h9ti_37`,default:`_default_1h9ti_41`,tableOnMobile:`_tableOnMobile_1h9ti_41`,wide:`_wide_1h9ti_45`},z=(0,n.tableFeatures)({rowSortingFeature:n.rowSortingFeature,sortedRowModel:(0,n.createSortedRowModel)()}),B=(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},V=(e,t)=>typeof e==`function`?e(t):t[e],ee=e=>{if(e==null||e===``)return null;let t=Date.parse(String(e));return Number.isNaN(t)?null:t},te=(e,t,n)=>{let r=ee(e.getValue(n)),i=ee(t.getValue(n));return r===null&&i===null?0:r===null?-1:i===null?1:r-i},ne=(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)},re=(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)},ie=(e,t,n)=>{let r=String(e.getValue(n)??``),i=String(t.getValue(n)??``);return r.localeCompare(i,void 0,{numeric:!0,sensitivity:`base`})},ae=e=>{switch(e){case`date`:return te;case`number`:return ne;case`boolean`:return re;case`text`:case void 0:return ie;case`custom`:return}},oe=e=>{let t=t=>V(e.accessor,t),n=e.sortFn??ae(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},se=({columns:r,data:i,tableOnMobile:a=!1,breakpoint:o=`default`,sorting:s,onSortingChange:c,renderMobileCard:l,getRowId:u,caption:d,ariaLabel:f,loading:p=!1,error:m,emptyState:h=`Нет данных`,stickyHeader:g=!1,maxHeight:_,className:v=``})=>{let[y,b]=(0,t.useState)([]),x=s??y,S=(0,t.useMemo)(()=>B(r,i),[r,i]),C=(0,t.useMemo)(()=>r.map(oe),[r]),w=(0,n.useTable)({features:z,columns:C,data:i,state:{sorting:x},onSortingChange:e=>{let t=typeof e==`function`?e(x):e;s===void 0&&b(t),c?.(t)},getRowId:u}),T=w.getRowModel().rows,E=r.filter(e=>e.enableSorting??e.dataType!==`custom`).map(e=>({id:e.id,label:typeof e.header==`string`?e.header:e.id})),D=[R.root,o===`wide`?R.wide:R.default,a?R.tableOnMobile:``,v].filter(Boolean).join(` `),O=S??m;return(0,e.jsxs)(`section`,{className:D,"aria-busy":p,children:[!a&&!p&&!O&&T.length>0&&E.length>0&&(0,e.jsx)(L,{className:R.mobileSort,options:E,value:x[0]?{id:x[0].id,direction:x[0].desc?`desc`:`asc`}:null,onChange:e=>w.setSorting([{id:e.id,desc:e.direction===`desc`}])}),(0,e.jsx)(`div`,{className:R.tableWrap,style:{maxHeight:_},children:(0,e.jsxs)(`table`,{className:R.table,"aria-label":f,children:[d&&(0,e.jsx)(`caption`,{children:d}),(0,e.jsx)(`thead`,{className:g?R.sticky:``,children:w.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`,children:(0,e.jsxs)(`button`,{type:`button`,className:R.sortButton,disabled:!r,onClick:i,children:[(0,e.jsx)(w.FlexRender,{header:t}),(0,e.jsx)(`span`,{"aria-hidden":`true`,children:n===`asc`?`↑`:n===`desc`?`↓`:`↕`})]})},t.id)})},t.id))}),(0,e.jsx)(`tbody`,{children:p?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{colSpan:r.length,children:(0,e.jsx)(M,{lines:3})})}):O?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:R.state,colSpan:r.length,children:O})}):T.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:R.state,colSpan:r.length,children:h})}):T.map(t=>(0,e.jsx)(`tr`,{children:t.getAllCells().map(t=>(0,e.jsx)(`td`,{children:(0,e.jsx)(w.FlexRender,{cell:t})},t.id))},t.id))})]})}),!a&&(0,e.jsx)(`div`,{className:R.cards,role:`list`,"aria-label":f??d,children:p?(0,e.jsx)(M,{lines:4}):O?(0,e.jsx)(`div`,{className:R.state,children:O}):T.length===0?(0,e.jsx)(`div`,{className:R.state,children:h}):T.map(t=>{if(l)return(0,e.jsx)(`div`,{role:`listitem`,children:l({row:t.original,columns:r})},t.id);let n=r.filter(e=>!e.mobile?.hideOnMobile).sort((e,t)=>(e.mobile?.mobileOrder??0)-(t.mobile?.mobileOrder??0)),i=n.find(e=>e.mobile?.primary)??n.find(e=>e.mobile?.mobileVariant!==`actions`),a=e=>V(e.accessor,t.original),o=e=>e.mobile?.renderMobile?.(t.original,a(e))??e.cell?.(t.original,a(e))??String(a(e)??``);return(0,e.jsxs)(`article`,{role:`listitem`,className:R.card,children:[(0,e.jsx)(`h3`,{children:i?o(i):`Строка ${t.index+1}`}),(0,e.jsx)(`dl`,{children:n.filter(e=>e!==i&&e.mobile?.mobileVariant!==`actions`).map(t=>(0,e.jsxs)(`div`,{className:t.mobile?.mobileSpan===2?R.spanTwo:``,children:[(0,e.jsx)(`dt`,{children:t.mobile?.mobileLabel??t.header}),(0,e.jsx)(`dd`,{children:o(t)})]},t.id))}),n.filter(e=>e.mobile?.mobileVariant===`actions`).map(t=>(0,e.jsx)(`footer`,{children:o(t)},t.id))]},t.id)})})]})},ce=({options:n,value:r,onChange:i,placeholder:a=`Выберите опции`,disabled:o=!1,label:s,error:c,hint:l,className:u=``,name:d,id:f,closeOnSelect:p=!1,maxMenuHeight:m})=>{let h=(0,t.useId)(),g=f??`ds-dropdown-multiple-${d??h}`,[_,v]=(0,t.useState)(!1),y=(0,t.useRef)(null),b=(0,t.useRef)(null),x=(0,t.useRef)([]),S=(0,t.useMemo)(()=>n.filter(e=>r.includes(e.value)),[n,r]),C=S.map(e=>e.label).join(`, `),w=l?`${g}-hint`:void 0,T=c?`${g}-error`:void 0;(0,t.useEffect)(()=>{let e=e=>{y.current?.contains(e.target)||v(!1)},t=e=>{e.key===`Escape`&&_&&(v(!1),b.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[_]);let E=e=>{if(e.disabled)return;let t=r.includes(e.value)?r.filter(t=>t!==e.value):[...r,e.value];i?.(t,n.filter(e=>t.includes(e.value))),p&&(v(!1),b.current?.focus())},D=(e,t)=>{let r=P(n,e,t);x.current[r]?.focus(),x.current[r]?.scrollIntoView({block:`nearest`})};return(0,e.jsxs)(`div`,{ref:y,className:[N.wrapper,c?N.errorState:``,u].filter(Boolean).join(` `),children:[s&&(0,e.jsx)(`label`,{htmlFor:g,className:N.label,children:s}),(0,e.jsxs)(`div`,{className:N.container,children:[(0,e.jsxs)(`button`,{ref:b,id:g,type:`button`,name:d,className:N.trigger,disabled:o,"aria-haspopup":`listbox`,"aria-expanded":_,"aria-controls":`${g}-listbox`,"aria-describedby":[w,T].filter(Boolean).join(` `)||void 0,"aria-invalid":!!c,onClick:()=>v(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),v(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>D(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:S.length?N.value:N.placeholder,children:C||a}),(0,e.jsx)(`span`,{className:`${N.chevron} ${_?N.chevronOpen:``}`,"aria-hidden":`true`,children:`⌄`})]}),_&&(0,e.jsx)(`ul`,{id:`${g}-listbox`,className:N.menu,role:`listbox`,"aria-label":s,"aria-multiselectable":`true`,style:{maxHeight:m},children:n.map((t,i)=>{let a=r.includes(t.value);return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{x.current[i]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:`${N.option} ${a?N.selected:``}`,onClick:()=>E(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;D(i+t,t)}if(e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;D(e.key===`Home`?0:n.length-1,t)}e.key===`Tab`&&v(!1)},children:[(0,e.jsx)(`span`,{children:t.label}),(0,e.jsx)(`span`,{"aria-hidden":`true`,children:a?`✓`:``})]})},t.value)})})]}),l&&!c&&(0,e.jsx)(`span`,{id:w,className:N.message,children:l}),c&&(0,e.jsx)(`span`,{id:T,className:N.error,children:c})]})},le={approve:`M4 12l5 5L20 6`,reject:`M5 5l14 14M19 5L5 19`,edit:`M4 20h4L19 9l-4-4L4 16v4z`,cross:`M5 5l14 14M19 5L5 19`,chevron:`M6 9l6 6 6-6`,basket:`M4 7h16l-1 13H5L4 7zm3 0V4h10v3`,info:`M12 10v7m0-10v.01`,warning:`M12 4L3 20h18L12 4zm0 5v5m0 3v.01`},ue=({name:t,title:n,width:r=24,height:i=24,...a})=>(0,e.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:r,height:i,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,role:n?`img`:void 0,"aria-hidden":!n||void 0,focusable:`false`,...a,children:[n&&(0,e.jsx)(`title`,{children:n}),(0,e.jsx)(`path`,{d:le[t]})]}),H={root:`_root_1y2s8_1`,header:`_header_1y2s8_21`,title:`_title_1y2s8_41`,dismiss:`_dismiss_1y2s8_55`,content:`_content_1y2s8_113`},de=({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:`${H.root} ${c}`,"aria-labelledby":l,children:[(0,e.jsxs)(`header`,{className:H.header,children:[(0,e.jsx)(s,{id:l,className:H.title,children:n}),i&&(0,e.jsx)(`button`,{type:`button`,className:H.dismiss,onClick:a,"aria-label":o,children:(0,e.jsx)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:(0,e.jsx)(`path`,{d:`M5 5L15 15M15 5L5 15`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`})})})]}),(0,e.jsx)(`div`,{className:H.content,children:r})]})},U={wrapper:`_wrapper_1tz82_1`,control:`_control_1tz82_3`,input:`_input_1tz82_5`,disabledText:`_disabledText_1tz82_5`,inputError:`_inputError_1tz82_11`,trailingAction:`_trailingAction_1tz82_13`},W=({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:g,clearable:_=!0,required:v=!1,selectTextOnFocus:y=!1,isPassword:b=!1,passwordVisibleLabel:x=`Скрыть пароль`,passwordHiddenLabel:S=`Показать пароль`,onFocus:C,...w})=>{let T=(0,t.useId)(),E=g??`ds-input-${h??T}`,D=(0,t.useRef)(null),[O,k]=(0,t.useState)(!1),A=d?`${E}-hint`:void 0,j=u?`${E}-error`:void 0,M=String(n??``),N=[A,j].filter(Boolean).join(` `)||void 0,P=b?O?`text`:`password`:i;return(0,t.useEffect)(()=>{b||k(!1)},[b]),(0,e.jsxs)(`div`,{className:`${U.wrapper} ${m}`,children:[l&&(0,e.jsx)(f,{htmlFor:E,required:v,disabled:o,children:l}),o&&c?(0,e.jsx)(`div`,{id:E,className:U.disabledText,"aria-describedby":N,children:M||a}):(0,e.jsxs)(`div`,{className:U.control,children:[(0,e.jsx)(`input`,{ref:D,id:E,name:h,type:P,value:M,placeholder:a,disabled:o,readOnly:s,required:v,"aria-invalid":!!u,"aria-describedby":N,className:`${U.input} ${u?U.inputError:``}`,onChange:e=>{if(i===`number`&&!b){let t=e.target.value===``?``:Number(e.target.value);r?.(t,e);return}r?.(e.target.value,e)},onFocus:e=>{y&&e.currentTarget.value&&e.currentTarget.select(),C?.(e)},...w}),b&&(0,e.jsx)(`button`,{type:`button`,className:U.trailingAction,disabled:o,"aria-label":O?x:S,"aria-pressed":O,onClick:()=>k(e=>!e),children:O?(0,e.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,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`})}):(0,e.jsxs)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,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`})]})}),!b&&_&&M&&!o&&!s&&(0,e.jsx)(`button`,{type:`button`,className:U.trailingAction,"aria-label":`Очистить поле`,onClick:()=>{let e=D.current;e&&((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus())},children:`×`})]}),d&&!u&&(0,e.jsx)(p,{id:A,children:d}),u&&(0,e.jsx)(p,{id:j,variant:`error`,children:u})]})},G={wrapper:`_wrapper_vu1ob_1`,input:`_input_vu1ob_21`,switch:`_switch_vu1ob_35`,thumb:`_thumb_vu1ob_67`,label:`_label_vu1ob_111`,disabled:`_disabled_vu1ob_123`},fe=({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:`${G.wrapper} ${a?G.disabled:``} ${s}`,children:[(0,e.jsx)(`input`,{id:f,className:G.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:G.switch,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:G.thumb})}),i&&(0,e.jsx)(`span`,{className:G.label,children:i})]})},pe={root:`_root_kepgo_1`,grid:`_grid_kepgo_3`,actions:`_actions_kepgo_5`},me=({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:`${pe.root} ${l}`,"aria-label":`Фильтры`,"aria-busy":s,children:[(0,e.jsx)(`div`,{className:pe.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={key:t.id,label:t.label,hint:t.hint,placeholder:t.placeholder,disabled:r};return t.inputType===`number`?(0,e.jsx)(W,{...n,type:`number`,value:i??``,onChange:e=>d(t.id,e)}):(0,e.jsx)(W,{...n,type:`text`,value:String(i??``),onChange:e=>d(t.id,e)})}if(t.type===`dropdown`)return(0,e.jsx)(F,{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)(ce,{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)(h,{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)(fe,{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)(A,{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:pe.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:`Применить`})]})]})},K={wrapper:`_wrapper_1ymdr_1`,dropzone:`_dropzone_1ymdr_3`,dragActive:`_dragActive_1ymdr_5`,disabled:`_disabled_1ymdr_7`,error:`_error_1ymdr_9`,nativeInput:`_nativeInput_1ymdr_11`,empty:`_empty_1ymdr_13`,uploadIcon:`_uploadIcon_1ymdr_15`,browseButton:`_browseButton_1ymdr_17`,files:`_files_1ymdr_19`,file:`_file_1ymdr_19`,fileName:`_fileName_1ymdr_23`,fileSize:`_fileSize_1ymdr_25`},q=e=>`${e.name}:${e.size}:${e.lastModified}`,he=e=>e<1024?`${e} Б`:e<1048576?`${(e/1024).toFixed(1)} КБ`:`${(e/1024/1024).toFixed(1)} МБ`,ge=(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),_e=({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:g=!1,name:_,id:v,className:y=``,dropLabel:b=`Перетащите файлы в эту область`,browseLabel:x=`Выбрать файлы`,addMoreLabel:S=`Добавить ещё`,onReject:C})=>{let w=(0,t.useId)(),T=v??`ds-file-input-${_??w}`,E=(0,t.useRef)(null),D=(0,t.useRef)(0),[O,k]=(0,t.useState)(!1),A=l?`${T}-hint`:void 0,j=d?`${T}-error`:void 0,M=[A,j].filter(Boolean).join(` `)||void 0,N=!h&&!g,P=e=>{let t=[],c=new Set(n.map(q)),l=e.filter(e=>ge(e,a)?o!==void 0&&e.size>o?(t.push({file:e,reason:`maxSize`}),!1):!c.has(q(e))&&(c.add(q(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&&C?.(t),l.length&&r?.(d),E.current&&(E.current.value=``)};return(0,e.jsxs)(`div`,{className:`${K.wrapper} ${y}`,children:[c&&(0,e.jsx)(f,{htmlFor:T,required:m,disabled:h,children:c}),(0,e.jsxs)(`div`,{className:`${K.dropzone} ${O?K.dragActive:``} ${h?K.disabled:``} ${d?K.error:``}`,onDragEnter:e=>{e.preventDefault(),N&&++D.current===1&&k(!0)},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{e.preventDefault(),--D.current<=0&&(D.current=0,k(!1))},onDrop:e=>{e.preventDefault(),D.current=0,k(!1),N&&P(Array.from(e.dataTransfer.files))},children:[(0,e.jsx)(`input`,{ref:E,id:T,name:_,className:K.nativeInput,type:`file`,multiple:i,accept:a,required:m&&n.length===0,disabled:!N,"aria-describedby":M,"aria-invalid":!!d,onChange:e=>P(Array.from(e.target.files??[]))}),n.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`ul`,{className:K.files,"aria-live":`polite`,children:n.map((t,i)=>(0,e.jsxs)(`li`,{className:K.file,children:[(0,e.jsx)(`span`,{className:K.fileName,title:t.name,children:t.name}),(0,e.jsx)(`span`,{className:K.fileSize,children:he(t.size)}),N&&(0,e.jsx)(u,{variant:`empty`,size:`sm`,"aria-label":`Удалить файл ${t.name}`,onClick:()=>r?.(n.filter((e,t)=>t!==i)),children:`×`})]},q(t)))}),N&&(i||n.length===0)&&(0,e.jsx)(u,{className:K.browseButton,size:`sm`,onClick:()=>E.current?.click(),children:S}),N&&!i&&(0,e.jsx)(u,{className:K.browseButton,size:`sm`,onClick:()=>E.current?.click(),children:x})]}):(0,e.jsxs)(`div`,{className:K.empty,children:[(0,e.jsx)(`span`,{className:K.uploadIcon,"aria-hidden":`true`,children:`↑`}),(0,e.jsx)(`strong`,{children:O?`Отпустите файлы здесь`:b}),!O&&N&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`span`,{children:`или`}),(0,e.jsx)(u,{className:K.browseButton,onClick:()=>E.current?.click(),children:x})]})]})]}),l&&!d&&(0,e.jsx)(p,{id:A,children:l}),d&&(0,e.jsx)(p,{id:j,variant:`error`,live:!0,children:d})]})},ve=0,J=(0,i.create)(e=>({modals:[],openModal:(t,n={},r={})=>{ve+=1;let i=`ds-modal-${ve}`;return e(e=>({modals:[...e.modals,{id:i,name:t,payload:n,closeOnEscape:r.closeOnEscape??!0,closeOnBackdrop:r.closeOnBackdrop??!0}]})),i},closeModal:t=>e(e=>({modals:e.modals.filter(e=>e.id!==t)})),closeTopModal:()=>e(e=>({modals:e.modals.slice(0,-1)})),closeAllModals:()=>e({modals:[]})})),ye=()=>J.setState({modals:[]}),Y={layer:`_layer_1nb2z_1`,backdrop:`_backdrop_1nb2z_3`,panel:`_panel_1nb2z_5`,header:`_header_1nb2z_9`,title:`_title_1nb2z_11`,description:`_description_1nb2z_13`,content:`_content_1nb2z_15`},be=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,xe=({children:n,title:r,description:i,modalId:a,closeLabel:o=`Закрыть модальное окно`,className:s=``,role:c=`dialog`})=>{let l=(0,t.useId)(),d=(0,t.useId)(),f=(0,t.useRef)(null),p=J(e=>e.closeModal);return(0,t.useEffect)(()=>{let e=document.activeElement,t=f.current;return(t?.querySelector(be)??t)?.focus(),()=>e?.focus()},[]),(0,e.jsxs)(`div`,{ref:f,className:`${Y.panel} ${s}`,role:c,"aria-modal":`true`,"aria-labelledby":r?l:void 0,"aria-describedby":i?d:void 0,tabIndex:-1,onKeyDown:e=>{if(e.key!==`Tab`)return;let t=Array.from(f.current?.querySelectorAll(be)??[]);if(!t.length){e.preventDefault();return}let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())},children:[(r||o)&&(0,e.jsxs)(`header`,{className:Y.header,children:[r&&(0,e.jsx)(`h2`,{id:l,className:Y.title,children:r}),(0,e.jsx)(u,{variant:`empty`,size:`sm`,"aria-label":o,onClick:()=>p(a),children:`×`})]}),i&&(0,e.jsx)(`p`,{id:d,className:Y.description,children:i}),(0,e.jsx)(`div`,{className:Y.content,children:n})]})},Se=({registry:n})=>{let i=J(e=>e.modals),a=J(e=>e.closeModal),o=J(e=>e.closeAllModals);return(0,t.useEffect)(()=>{let e=e=>{if(e.key!==`Escape`)return;let t=J.getState().modals.at(-1);t?.closeOnEscape&&a(t.id)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),!i.length||typeof document>`u`?null:(0,r.createPortal)((0,e.jsx)(`div`,{className:Y.layer,"aria-label":`Модальные окна`,children:i.map((t,r)=>{let s=n[t.name];return s?(0,e.jsx)(`div`,{className:Y.backdrop,"aria-hidden":r!==i.length-1||void 0,onMouseDown:e=>{e.target===e.currentTarget&&t.closeOnBackdrop&&a(t.id)},children:(0,e.jsx)(s,{...t.payload,modalId:t.id,close:()=>a(t.id),closeAll:o})},t.id):null})}),document.body)},Ce=({registry:n,children:r,lockBodyScroll:i=!0})=>{let a=J(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)(Se,{registry:n})]})},we=e=>e,X={message:`_message_1vtru_1`,actions:`_actions_1vtru_3`},Te=new Map,Ee=0,De=({modalId:t,close:n,title:r=`Подтверждение`,message:i=`Продолжить действие?`,confirmLabel:a=`Подтвердить`,cancelLabel:o=`Отмена`,tone:s=`default`,requestId:c})=>{let l=e=>{Te.get(c)?.(e),Te.delete(c),n()};return(0,e.jsxs)(xe,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:X.message,children:i}),(0,e.jsxs)(`div`,{className:X.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})]})]})},Oe=({modalId:t,close:n,title:r=`Ошибка`,message:i,closeLabel:a=`Закрыть`})=>(0,e.jsxs)(xe,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:X.message,children:i}),(0,e.jsx)(`div`,{className:X.actions,children:(0,e.jsx)(u,{onClick:n,children:a})})]}),ke=we({ConfirmModal:De,ErrorModal:Oe}),Ae=()=>{let e=J(e=>e.openModal);return(t={})=>new Promise(n=>{Ee+=1;let r=`confirm-${Ee}`;Te.set(r,n),e(`ConfirmModal`,{...t,requestId:r},{closeOnEscape:!1})})},je=e=>e instanceof Error?e.message:typeof e==`string`?e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`?e.message:`Произошла неизвестная ошибка`,Me=()=>{let e=J(e=>e.openModal);return{showError:(t,n)=>e(`ErrorModal`,{title:n,message:je(t)})}},Ne=(0,i.create)(()=>({})),Pe=(0,i.create)(()=>({})),Fe=()=>{let e=J(e=>e.modals),t=J(e=>e.openModal);return{openModal:(e,n={},r)=>t(e,n,r),closeModal:J(e=>e.closeModal),closeTopModal:J(e=>e.closeTopModal),closeAllModals:J(e=>e.closeAllModals),isOpen:t=>e.some(e=>e.name===t),count:e.length}},Ie={root:`_root_1x7h7_1`},Le=({label:t=`Загрузка страницы`,className:n=``})=>(0,e.jsxs)(`div`,{className:`${Ie.root} ${n}`,role:`status`,"aria-label":t,children:[(0,e.jsx)(c,{decorative:!0}),(0,e.jsx)(`span`,{children:t})]}),Re={root:`_root_elask_1`,legend:`_legend_elask_3`,range:`_range_elask_5`},ze=[{value:`1`,label:`День`},{value:`2`,label:`Неделя`},{value:`3`,label:`Месяц`}],Be={day:1,week:2,month:3},Ve=({value:t,onChange:n,label:r,hint:i,error:a,disabled:o=!1,min:s,max:c,className:l=``,periodTypeOptions:u=ze})=>(0,e.jsxs)(`fieldset`,{className:`${Re.root} ${l}`,disabled:o,children:[r&&(0,e.jsx)(`legend`,{className:Re.legend,children:r}),(0,e.jsx)(F,{options:u,value:String(t.periodType),disabled:o,onChange:e=>n?.({...t,periodType:Number(e)}),label:`Тип периода`}),(0,e.jsxs)(`div`,{className:Re.range,children:[(0,e.jsx)(D,{value:t.startDate,onChange:e=>n?.({...t,startDate:e}),label:`Начало`,min:s,max:c,disabled:o}),(0,e.jsx)(D,{value:t.endDate,onChange:e=>n?.({...t,endDate:e}),label:`Окончание`,min:t.startDate??s,max:c,disabled:o})]}),i&&!a&&(0,e.jsx)(p,{children:i}),a&&(0,e.jsx)(p,{variant:`error`,children:a})]}),Z={viewport:`_viewport_15mi5_1`,"top-right":`_top-right_15mi5_3`,"top-left":`_top-left_15mi5_5`,"bottom-right":`_bottom-right_15mi5_7`,"bottom-left":`_bottom-left_15mi5_9`,toast:`_toast_15mi5_11`,body:`_body_15mi5_13`,icon:`_icon_15mi5_15`,info:`_info_15mi5_17`,success:`_success_15mi5_19`,warning:`_warning_15mi5_21`,error:`_error_15mi5_23`},He=({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:`${Z.toast} ${Z[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)(ue,{name:n.variant===`warning`?`warning`:`info`,className:Z.icon}),(0,e.jsxs)(`div`,{className:Z.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:`×`})]})},Ue=0,Q=(0,i.create)(e=>({toasts:[],showToast:t=>{Ue+=1;let n=`ds-toast-${Ue}`;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:[]})})),We=()=>Q.setState({toasts:[]}),Ge=({position:t=`top-right`})=>{let n=Q(e=>e.toasts),r=Q(e=>e.removeToast);return(0,e.jsx)(`div`,{className:`${Z.viewport} ${Z[t]}`,"aria-label":`Уведомления`,children:n.map(t=>(0,e.jsx)(He,{toast:t,onClose:r},t.id))})},Ke=()=>{let e=Q(e=>e.showToast),n=Q(e=>e.removeToast),r=Q(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])},qe={root:`_root_s9o0g_1`,tooltip:`_tooltip_s9o0g_3`,"ds-tooltip-in":`_ds-tooltip-in_s9o0g_1`,top:`_top_s9o0g_5`,bottom:`_bottom_s9o0g_7`,left:`_left_s9o0g_9`,right:`_right_s9o0g_11`},Je=({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:`${qe.root} ${c}`,onPointerDown:u?m:p,children:[h,u&&(0,e.jsx)(`span`,{id:l,role:`tooltip`,className:`${qe.tooltip} ${qe[i]}`,style:{maxWidth:s},children:n})]})},$={root:`_root_1ue3g_1`,frame:`_frame_1ue3g_3`,video:`_video_1ue3g_5`,overlay:`_overlay_1ue3g_7`,error:`_error_1ue3g_7`,caption:`_caption_1ue3g_13`},Ye=({sources:n,tracks:r=[],title:i,aspectRatio:a=`16 / 9`,objectFit:o=`contain`,loading:s=!1,error:l,fallback:u,className:d=``,controls:f=!0,playsInline:p=!0,...m})=>{let[h,g]=(0,t.useState)(!1),_=l??(h?`Не удалось воспроизвести видео`:void 0);return(0,e.jsxs)(`figure`,{className:`${$.root} ${d}`,children:[(0,e.jsxs)(`div`,{className:$.frame,style:{aspectRatio:a},children:[!_&&n.length>0&&(0,e.jsxs)(`video`,{...m,"aria-label":i,controls:f,playsInline:p,className:$.video,style:{objectFit:o},onError:e=>{g(!0),m.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}`))]}),s&&(0,e.jsx)(`div`,{className:$.overlay,children:(0,e.jsx)(c,{label:`Загрузка видео`})}),(_||n.length===0)&&(0,e.jsx)(`div`,{className:$.error,role:`alert`,children:u??_??`Источник видео не указан`})]}),(0,e.jsx)(`figcaption`,{className:$.caption,children:i})]})};exports.ConfirmModal=De,exports.DSBadge=o,exports.DSButton=u,exports.DSCheckbox=h,exports.DSDataTable=se,exports.DSDateRange=A,exports.DSDateTimePicker=D,exports.DSDropDown=F,exports.DSDropDownMultiple=ce,exports.DSFieldLabel=f,exports.DSFieldMessage=p,exports.DSFileInput=_e,exports.DSFilters=me,exports.DSIcon=ue,exports.DSInfoBlock=de,exports.DSInput=W,exports.DSLoader=c,exports.DSModal=Se,exports.DSModalFrame=xe,exports.DSPageLoader=Le,exports.DSRadioButton=fe,exports.DSSkeleton=M,exports.DSSort=L,exports.DSTimePeriodPicker=Ve,exports.DSToast=He,exports.DSToastProvider=Ge,exports.DSTooltip=Je,exports.DSVideoPlayerFrame=Ye,exports.DS_PERIOD_TYPE_CODES=Be,exports.ErrorModal=Oe,exports.ModalSystemProvider=Ce,exports.builtInModalRegistry=ke,exports.defineModalRegistry=we,exports.formatDateTimeLocalValue=x,exports.getErrorMessage=je,exports.getNextEnabledOptionIndex=P,exports.isValidDateRange=k,exports.parseDateTimeLocalValue=S,exports.resetModalStore=ye,exports.resetToastStore=We,exports.useConfirmModal=Ae,exports.useConfirmModalStore=Ne,exports.useErrorModal=Me,exports.useErrorModalStore=Pe,exports.useModals=Fe,exports.useModalsStore=J,exports.useToast=Ke,exports.useToastStore=Q,exports.validateDSDataTableData=B;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime"),t=require("react"),n=require("@tanstack/react-table"),r=require("react-dom"),i=require("zustand");var a={badge:`_badge_1pk53_1`,sm:`_sm_1pk53_3`,md:`_md_1pk53_5`,neutral:`_neutral_1pk53_7`,info:`_info_1pk53_9`,success:`_success_1pk53_11`,warning:`_warning_1pk53_13`,error:`_error_1pk53_15`,dot:`_dot_1pk53_17`,icon:`_icon_1pk53_19`,label:`_label_1pk53_21`},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={loader:`_loader_1tjcf_1`,"ds-spin":`_ds-spin_1tjcf_1`,primary:`_primary_1tjcf_21`,secondary:`_secondary_1tjcf_23`,light:`_light_1tjcf_25`,danger:`_danger_1tjcf_27`},c=({variant:t=`primary`,label:n=`Загрузка`,className:r=``,decorative:i=!1})=>(0,e.jsx)(`span`,{className:`${s.loader} ${s[t]} ${r}`,role:i?void 0:`status`,"aria-label":i?void 0:n,"aria-hidden":i||void 0}),l={button:`_button_1jisp_1`,sm:`_sm_1jisp_31`,md:`_md_1jisp_33`,lg:`_lg_1jisp_35`,primary:`_primary_1jisp_37`,secondary:`_secondary_1jisp_39`,outline:`_outline_1jisp_41`,ghost:`_ghost_1jisp_45`,empty:`_empty_1jisp_57`,destructive:`_destructive_1jisp_67`,destructiveOutline:`_destructiveOutline_1jisp_69`},u=(0,t.forwardRef)(({children:t,variant:n=`primary`,size:r=`md`,isLoading:i=!1,loadingLabel:a=`Загрузка`,disabled:o,type:s=`button`,className:u=``,...d},f)=>(0,e.jsx)(`button`,{ref:f,className:`${l.button} ${l[n]} ${l[r]} ${u}`,disabled:o||i,"aria-busy":i||void 0,...d,type:s,children:i?(0,e.jsx)(c,{variant:`light`,label:a}):t}));u.displayName=`DSButton`;var d={label:`_label_1lsqq_1`,required:`_required_1lsqq_23`,error:`_error_1lsqq_25`,optional:`_optional_1lsqq_33`,hint:`_hint_1lsqq_35`,disabled:`_disabled_1lsqq_47`,message:`_message_1lsqq_55`,success:`_success_1lsqq_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={wrapper:`_wrapper_1gq36_1`,label:`_label_1gq36_3`,input:`_input_1gq36_5`,control:`_control_1gq36_7`,disabled:`_disabled_1gq36_13`,controlError:`_controlError_1gq36_17`},h=({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,...h})=>{let g=(0,t.useId)(),_=d??`ds-checkbox-${u??g}`,v=(0,t.useRef)(null),y=a?`${_}-hint`:void 0,b=o?`${_}-error`:void 0;return(0,t.useEffect)(()=>{v.current&&(v.current.indeterminate=f&&!n)},[n,f]),(0,e.jsxs)(`div`,{className:`${m.wrapper} ${l}`,children:[(0,e.jsxs)(`label`,{className:`${m.label} ${s?m.disabled:``}`,htmlFor:_,children:[(0,e.jsx)(`input`,{ref:v,id:_,name:u,type:`checkbox`,checked:n,disabled:s,"aria-readonly":c||void 0,"aria-invalid":!!o,"aria-describedby":[y,b].filter(Boolean).join(` `)||void 0,className:m.input,onChange:e=>{c||r?.(e.target.checked,e)},...h}),(0,e.jsx)(`span`,{className:`${m.control} ${o?m.controlError:``}`,"aria-hidden":`true`,children:f&&!n?`−`:n?`✓`:``}),i&&(0,e.jsx)(`span`,{children:i})]}),a&&!o&&(0,e.jsx)(p,{id:y,children:a}),o&&(0,e.jsx)(p,{id:b,variant:`error`,children:o})]})},g={wrapper:`_wrapper_1528c_1`,trigger:`_trigger_1528c_17`,nav:`_nav_1528c_53`,day:`_day_1528c_55`,monthSelect:`_monthSelect_1528c_57`,yearInput:`_yearInput_1528c_59`,timeInput:`_timeInput_1528c_61`,value:`_value_1528c_85`,placeholder:`_placeholder_1528c_93`,error:`_error_1528c_101`,panel:`_panel_1528c_109`,calendarHeader:`_calendarHeader_1528c_135`,weekdays:`_weekdays_1528c_225`,days:`_days_1528c_227`,outside:`_outside_1528c_263`,selected:`_selected_1528c_271`,timeLabel:`_timeLabel_1528c_291`},_=[`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`,`Вс`],v=[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`],y=e=>String(e).padStart(2,`0`),b=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),x=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${y(e.getMonth()+1)}-${y(e.getDate())}`,r=`${y(e.getHours())}:${y(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},S=(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}let n=new Date(t===`date`?`${e}T00:00`:e);return Number.isNaN(n.getTime())?null:n},C=(e,t)=>{if(!e)return``;let n=`${y(e.getDate())}.${y(e.getMonth()+1)}.${e.getFullYear()}`,r=`${y(e.getHours())}:${y(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n} ${r}`},w=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})},T=(e,t)=>!!(e&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()),E=(e,t,n)=>{let r=b(e).getTime();return!!(t&&r<b(t).getTime()||n&&r>b(n).getTime())},D=({value:n,onChange:r,mode:i=`date`,label:a,placeholder:o,hint:s,error:c,disabled:l=!1,readOnly:u=!1,required:d=!1,min:m,max:h,id:y,name:b,className:D=``})=>{let O=(0,t.useId)(),k=y??`ds-date-time-${b??O}`,A=s?`${k}-hint`:void 0,j=c?`${k}-error`:void 0,M=(0,t.useRef)(null),N=(0,t.useRef)(null),[P,F]=(0,t.useState)(!1),[I,L]=(0,t.useState)(n??new Date),[R,ee]=(0,t.useState)(x(n,`time`)),te=(0,t.useMemo)(()=>w(I),[I]),z=i!==`time`,ne=i!==`date`;(0,t.useEffect)(()=>{n&&L(n),ee(x(n,`time`))},[n]),(0,t.useEffect)(()=>{let e=e=>{M.current?.contains(e.target)||F(!1)},t=e=>{e.key===`Escape`&&(F(!1),N.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[]);let re=e=>{if(E(e,m,h))return;let t=new Date(e);t.setHours(n?.getHours()??0,n?.getMinutes()??0,0,0),r?.(t),i===`date`&&F(!1)},ie=e=>{if(ee(e),!e){r?.(null);return}let t=S(e,`time`);if(!t)return;let a=new Date(i===`datetime`?n??I:new Date);a.setHours(t.getHours(),t.getMinutes(),0,0),!(m&&a<m||h&&a>h)&&r?.(a)},B=o??(i===`date`?`Выберите дату`:i===`time`?`Введите время`:`Выберите дату и время`),ae=[A,j].filter(Boolean).join(` `)||void 0;return(0,e.jsxs)(`div`,{ref:M,className:`${g.wrapper} ${D}`,children:[a&&(0,e.jsx)(f,{htmlFor:k,required:d,disabled:l,children:a}),(0,e.jsxs)(`button`,{ref:N,id:k,name:b,type:`button`,className:`${g.trigger} ${c?g.error:``}`,disabled:l,"aria-readonly":u||void 0,"aria-expanded":P,"aria-haspopup":`dialog`,"aria-describedby":ae,onClick:()=>{u||F(e=>!e)},children:[(0,e.jsx)(`span`,{className:n?g.value:g.placeholder,children:C(n,i)||B}),(0,e.jsx)(`span`,{"aria-hidden":`true`,children:`▾`})]}),P&&!u&&(0,e.jsxs)(`div`,{className:g.panel,role:`dialog`,"aria-label":a??B,children:[z&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:g.calendarHeader,children:[(0,e.jsx)(`button`,{type:`button`,className:g.nav,"aria-label":`Предыдущий месяц`,onClick:()=>L(new Date(I.getFullYear(),I.getMonth()-1,1)),children:`‹`}),(0,e.jsx)(`select`,{className:g.monthSelect,"aria-label":`Месяц`,value:I.getMonth(),onChange:e=>L(new Date(I.getFullYear(),Number(e.target.value),1)),children:v.map((t,n)=>(0,e.jsx)(`option`,{value:n,children:t},t))}),(0,e.jsx)(`input`,{className:g.yearInput,type:`number`,"aria-label":`Год`,value:I.getFullYear(),onChange:e=>L(new Date(Number(e.target.value),I.getMonth(),1))}),(0,e.jsx)(`button`,{type:`button`,className:g.nav,"aria-label":`Следующий месяц`,onClick:()=>L(new Date(I.getFullYear(),I.getMonth()+1,1)),children:`›`})]}),(0,e.jsx)(`div`,{className:g.weekdays,children:_.map(t=>(0,e.jsx)(`span`,{children:t},t))}),(0,e.jsx)(`div`,{className:g.days,children:te.map(t=>{let r=T(n,t);return(0,e.jsx)(`button`,{type:`button`,className:`${g.day} ${t.getMonth()===I.getMonth()?``:g.outside} ${r?g.selected:``}`,disabled:E(t,m,h),"aria-pressed":r,onClick:()=>re(t),children:t.getDate()},t.toISOString())})})]}),ne&&(0,e.jsxs)(`label`,{className:g.timeLabel,children:[(0,e.jsx)(`span`,{children:`Время`}),(0,e.jsx)(`input`,{className:g.timeInput,type:`time`,value:R,onChange:e=>ie(e.target.value)})]})]}),s&&!c&&(0,e.jsx)(p,{id:A,children:s}),c&&(0,e.jsx)(p,{id:j,variant:`error`,children:c})]})},O={root:`_root_1q42e_1`,legend:`_legend_1q42e_3`,range:`_range_1q42e_5`},k=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),A=({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),k(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${O.root} ${h}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:O.range,children:[(0,e.jsx)(D,{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)(D,{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})]})},j={group:`_group_1fs9e_1`,skeleton:`_skeleton_1fs9e_3`,text:`_text_1fs9e_5`,rectangular:`_rectangular_1fs9e_7`,circular:`_circular_1fs9e_9`,animated:`_animated_1fs9e_11`,"ds-skeleton":`_ds-skeleton_1fs9e_1`},M=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${j.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(o,s)=>(0,e.jsx)(`span`,{className:`${j.skeleton} ${j[t]} ${a?j.animated:``}`,style:{width:s===i-1&&i>1?`70%`:n,height:r}},s))}),N={wrapper:`_wrapper_dkn63_1`,label:`_label_dkn63_17`,container:`_container_dkn63_29`,trigger:`_trigger_dkn63_37`,disabledText:`_disabledText_dkn63_39`,value:`_value_dkn63_109`,placeholder:`_placeholder_dkn63_111`,chevron:`_chevron_dkn63_137`,chevronOpen:`_chevronOpen_dkn63_163`,menu:`_menu_dkn63_171`,option:`_option_dkn63_207`,selected:`_selected_dkn63_245`,message:`_message_dkn63_265`,error:`_error_dkn63_267`,errorState:`_errorState_dkn63_293`},P=(e,t,n)=>{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},F=({options:n,value:r,onChange:i,placeholder:a=`Выберите опцию`,disabled:o=!1,stringWhileDisabled:s=!1,label:c,error:l,hint:u,className:d=``,name:f,id:p,needMark:m=!0,maxMenuHeight:h})=>{let g=(0,t.useId)(),_=p??`ds-dropdown-${f??g}`,[v,y]=(0,t.useState)(!1),b=(0,t.useRef)(null),x=(0,t.useRef)(null),S=(0,t.useRef)([]),C=(0,t.useMemo)(()=>n.find(e=>e.value===r),[n,r]),w=u?`${_}-hint`:void 0,T=l?`${_}-error`:void 0,E=[w,T].filter(Boolean).join(` `)||void 0,D=o&&s;(0,t.useEffect)(()=>{let e=e=>{b.current?.contains(e.target)||y(!1)},t=e=>{e.key===`Escape`&&v&&(y(!1),x.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[v]);let O=(e,t)=>{let r=P(n,e,t);S.current[r]?.focus(),S.current[r]?.scrollIntoView({block:`nearest`})},k=e=>{e.disabled||(i?.(e.value,e),y(!1),x.current?.focus())};return(0,e.jsxs)(`div`,{ref:b,className:[N.wrapper,l?N.errorState:``,d].filter(Boolean).join(` `),children:[c&&(0,e.jsx)(`label`,{htmlFor:D?void 0:_,className:N.label,children:c}),(0,e.jsx)(`div`,{className:N.container,children:D?(0,e.jsx)(`div`,{id:_,className:N.disabledText,"aria-describedby":E,children:C?.label??a}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`button`,{ref:x,id:_,type:`button`,name:f,className:N.trigger,disabled:o,"aria-haspopup":`listbox`,"aria-expanded":v,"aria-controls":`${_}-listbox`,"aria-describedby":E,"aria-invalid":!!l,onClick:()=>y(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),y(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>O(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:C?N.value:N.placeholder,children:C?.label??a}),(0,e.jsx)(`span`,{className:`${N.chevron} ${v?N.chevronOpen:``}`,"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,children:(0,e.jsx)(`path`,{d:`M5 7.5L10 12.5L15 7.5`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),v&&(0,e.jsx)(`ul`,{id:`${_}-listbox`,className:N.menu,role:`listbox`,"aria-label":c,style:{maxHeight:h},children:n.map((t,i)=>{let a=t.value===r;return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{S.current[i]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:`${N.option} ${a?N.selected:``}`,onClick:()=>k(t),onKeyDown:e=>{if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),O(i+(e.key===`ArrowDown`?1:-1),e.key===`ArrowDown`?1:-1)),e.key===`Tab`&&y(!1),e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;O(e.key===`Home`?0:n.length-1,t)}},children:[(0,e.jsx)(`span`,{children:t.label}),a&&m&&(0,e.jsx)(`span`,{"aria-hidden":`true`,children:`✓`})]})},t.value)})})]})}),u&&!l&&(0,e.jsx)(`span`,{id:w,className:N.message,children:u}),l&&(0,e.jsx)(`span`,{id:T,className:N.error,children:l})]})},I=e=>`${e.id}:${e.direction}`,L=({options:t,value:n,onChange:r,label:i=`Сортировка`,placeholder:a=`Выберите сортировку`,disabled:o=!1,className:s})=>{let c=t.flatMap(e=>[{value:I({id:e.id,direction:`asc`}),label:e.ascLabel??`${e.label} · по возрастанию`,disabled:e.disabled},{value:I({id:e.id,direction:`desc`}),label:e.descLabel??`${e.label} · по убыванию`,disabled:e.disabled}]);return(0,e.jsx)(F,{options:c,value:n?I(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)})}})},R={root:`_root_1h9ti_1`,tableWrap:`_tableWrap_1h9ti_3`,table:`_table_1h9ti_3`,sticky:`_sticky_1h9ti_15`,sortButton:`_sortButton_1h9ti_17`,state:`_state_1h9ti_21`,cards:`_cards_1h9ti_23`,mobileSort:`_mobileSort_1h9ti_23`,card:`_card_1h9ti_23`,spanTwo:`_spanTwo_1h9ti_37`,default:`_default_1h9ti_41`,tableOnMobile:`_tableOnMobile_1h9ti_41`,wide:`_wide_1h9ti_45`},ee=(0,n.tableFeatures)({rowSortingFeature:n.rowSortingFeature,sortedRowModel:(0,n.createSortedRowModel)()}),te=(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},z=(e,t)=>typeof e==`function`?e(t):t[e],ne=e=>{if(e==null||e===``)return null;let t=Date.parse(String(e));return Number.isNaN(t)?null:t},re=(e,t,n)=>{let r=ne(e.getValue(n)),i=ne(t.getValue(n));return r===null&&i===null?0:r===null?-1:i===null?1:r-i},ie=(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)},B=(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)},ae=(e,t,n)=>{let r=String(e.getValue(n)??``),i=String(t.getValue(n)??``);return r.localeCompare(i,void 0,{numeric:!0,sensitivity:`base`})},oe=e=>{switch(e){case`date`:return re;case`number`:return ie;case`boolean`:return B;case`text`:case void 0:return ae;case`custom`:return}},se=e=>{let t=t=>z(e.accessor,t),n=e.sortFn??oe(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},ce=({columns:r,data:i,tableOnMobile:a=!1,breakpoint:o=`default`,sorting:s,onSortingChange:c,renderMobileCard:l,getRowId:u,caption:d,ariaLabel:f,loading:p=!1,error:m,emptyState:h=`Нет данных`,stickyHeader:g=!1,maxHeight:_,className:v=``})=>{let[y,b]=(0,t.useState)([]),x=s??y,S=(0,t.useMemo)(()=>te(r,i),[r,i]),C=(0,t.useMemo)(()=>r.map(se),[r]),w=(0,n.useTable)({features:ee,columns:C,data:i,state:{sorting:x},onSortingChange:e=>{let t=typeof e==`function`?e(x):e;s===void 0&&b(t),c?.(t)},getRowId:u}),T=w.getRowModel().rows,E=r.filter(e=>e.enableSorting??e.dataType!==`custom`).map(e=>({id:e.id,label:typeof e.header==`string`?e.header:e.id})),D=[R.root,o===`wide`?R.wide:R.default,a?R.tableOnMobile:``,v].filter(Boolean).join(` `),O=S??m;return(0,e.jsxs)(`section`,{className:D,"aria-busy":p,children:[!a&&!p&&!O&&T.length>0&&E.length>0&&(0,e.jsx)(L,{className:R.mobileSort,options:E,value:x[0]?{id:x[0].id,direction:x[0].desc?`desc`:`asc`}:null,onChange:e=>w.setSorting([{id:e.id,desc:e.direction===`desc`}])}),(0,e.jsx)(`div`,{className:R.tableWrap,style:{maxHeight:_},children:(0,e.jsxs)(`table`,{className:R.table,"aria-label":f,children:[d&&(0,e.jsx)(`caption`,{children:d}),(0,e.jsx)(`thead`,{className:g?R.sticky:``,children:w.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`,children:(0,e.jsxs)(`button`,{type:`button`,className:R.sortButton,disabled:!r,onClick:i,children:[(0,e.jsx)(w.FlexRender,{header:t}),(0,e.jsx)(`span`,{"aria-hidden":`true`,children:n===`asc`?`↑`:n===`desc`?`↓`:`↕`})]})},t.id)})},t.id))}),(0,e.jsx)(`tbody`,{children:p?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{colSpan:r.length,children:(0,e.jsx)(M,{lines:3})})}):O?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:R.state,colSpan:r.length,children:O})}):T.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:R.state,colSpan:r.length,children:h})}):T.map(t=>(0,e.jsx)(`tr`,{children:t.getAllCells().map(t=>(0,e.jsx)(`td`,{children:(0,e.jsx)(w.FlexRender,{cell:t})},t.id))},t.id))})]})}),!a&&(0,e.jsx)(`div`,{className:R.cards,role:`list`,"aria-label":f??d,children:p?(0,e.jsx)(M,{lines:4}):O?(0,e.jsx)(`div`,{className:R.state,children:O}):T.length===0?(0,e.jsx)(`div`,{className:R.state,children:h}):T.map(t=>{if(l)return(0,e.jsx)(`div`,{role:`listitem`,children:l({row:t.original,columns:r})},t.id);let n=r.filter(e=>!e.mobile?.hideOnMobile).sort((e,t)=>(e.mobile?.mobileOrder??0)-(t.mobile?.mobileOrder??0)),i=n.find(e=>e.mobile?.primary)??n.find(e=>e.mobile?.mobileVariant!==`actions`),a=e=>z(e.accessor,t.original),o=e=>e.mobile?.renderMobile?.(t.original,a(e))??e.cell?.(t.original,a(e))??String(a(e)??``);return(0,e.jsxs)(`article`,{role:`listitem`,className:R.card,children:[(0,e.jsx)(`h3`,{children:i?o(i):`Строка ${t.index+1}`}),(0,e.jsx)(`dl`,{children:n.filter(e=>e!==i&&e.mobile?.mobileVariant!==`actions`).map(t=>(0,e.jsxs)(`div`,{className:t.mobile?.mobileSpan===2?R.spanTwo:``,children:[(0,e.jsx)(`dt`,{children:t.mobile?.mobileLabel??t.header}),(0,e.jsx)(`dd`,{children:o(t)})]},t.id))}),n.filter(e=>e.mobile?.mobileVariant===`actions`).map(t=>(0,e.jsx)(`footer`,{children:o(t)},t.id))]},t.id)})})]})},le=({options:n,value:r,onChange:i,placeholder:a=`Выберите опции`,disabled:o=!1,label:s,error:c,hint:l,className:u=``,name:d,id:f,closeOnSelect:p=!1,maxMenuHeight:m})=>{let h=(0,t.useId)(),g=f??`ds-dropdown-multiple-${d??h}`,[_,v]=(0,t.useState)(!1),y=(0,t.useRef)(null),b=(0,t.useRef)(null),x=(0,t.useRef)([]),S=(0,t.useMemo)(()=>n.filter(e=>r.includes(e.value)),[n,r]),C=S.map(e=>e.label).join(`, `),w=l?`${g}-hint`:void 0,T=c?`${g}-error`:void 0;(0,t.useEffect)(()=>{let e=e=>{y.current?.contains(e.target)||v(!1)},t=e=>{e.key===`Escape`&&_&&(v(!1),b.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[_]);let E=e=>{if(e.disabled)return;let t=r.includes(e.value)?r.filter(t=>t!==e.value):[...r,e.value];i?.(t,n.filter(e=>t.includes(e.value))),p&&(v(!1),b.current?.focus())},D=(e,t)=>{let r=P(n,e,t);x.current[r]?.focus(),x.current[r]?.scrollIntoView({block:`nearest`})};return(0,e.jsxs)(`div`,{ref:y,className:[N.wrapper,c?N.errorState:``,u].filter(Boolean).join(` `),children:[s&&(0,e.jsx)(`label`,{htmlFor:g,className:N.label,children:s}),(0,e.jsxs)(`div`,{className:N.container,children:[(0,e.jsxs)(`button`,{ref:b,id:g,type:`button`,name:d,className:N.trigger,disabled:o,"aria-haspopup":`listbox`,"aria-expanded":_,"aria-controls":`${g}-listbox`,"aria-describedby":[w,T].filter(Boolean).join(` `)||void 0,"aria-invalid":!!c,onClick:()=>v(e=>!e),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),v(!0);let t=e.key===`ArrowDown`?1:-1;requestAnimationFrame(()=>D(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:S.length?N.value:N.placeholder,children:C||a}),(0,e.jsx)(`span`,{className:`${N.chevron} ${_?N.chevronOpen:``}`,"aria-hidden":`true`,children:`⌄`})]}),_&&(0,e.jsx)(`ul`,{id:`${g}-listbox`,className:N.menu,role:`listbox`,"aria-label":s,"aria-multiselectable":`true`,style:{maxHeight:m},children:n.map((t,i)=>{let a=r.includes(t.value);return(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{ref:e=>{x.current[i]=e},type:`button`,role:`option`,"aria-selected":a,disabled:t.disabled,className:`${N.option} ${a?N.selected:``}`,onClick:()=>E(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;D(i+t,t)}if(e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;D(e.key===`Home`?0:n.length-1,t)}e.key===`Tab`&&v(!1)},children:[(0,e.jsx)(`span`,{children:t.label}),(0,e.jsx)(`span`,{"aria-hidden":`true`,children:a?`✓`:``})]})},t.value)})})]}),l&&!c&&(0,e.jsx)(`span`,{id:w,className:N.message,children:l}),c&&(0,e.jsx)(`span`,{id:T,className:N.error,children:c})]})},ue={approve:`M4 12l5 5L20 6`,reject:`M5 5l14 14M19 5L5 19`,edit:`M4 20h4L19 9l-4-4L4 16v4z`,cross:`M5 5l14 14M19 5L5 19`,chevron:`M6 9l6 6 6-6`,basket:`M4 7h16l-1 13H5L4 7zm3 0V4h10v3`,info:`M12 10v7m0-10v.01`,warning:`M12 4L3 20h18L12 4zm0 5v5m0 3v.01`},de=({name:t,title:n,width:r=24,height:i=24,...a})=>(0,e.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:r,height:i,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,role:n?`img`:void 0,"aria-hidden":!n||void 0,focusable:`false`,...a,children:[n&&(0,e.jsx)(`title`,{children:n}),(0,e.jsx)(`path`,{d:ue[t]})]}),V={root:`_root_1y2s8_1`,header:`_header_1y2s8_21`,title:`_title_1y2s8_41`,dismiss:`_dismiss_1y2s8_55`,content:`_content_1y2s8_113`},fe=({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:`${V.root} ${c}`,"aria-labelledby":l,children:[(0,e.jsxs)(`header`,{className:V.header,children:[(0,e.jsx)(s,{id:l,className:V.title,children:n}),i&&(0,e.jsx)(`button`,{type:`button`,className:V.dismiss,onClick:a,"aria-label":o,children:(0,e.jsx)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:(0,e.jsx)(`path`,{d:`M5 5L15 15M15 5L5 15`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`})})})]}),(0,e.jsx)(`div`,{className:V.content,children:r})]})},H={wrapper:`_wrapper_ip6vf_1`,control:`_control_ip6vf_3`,input:`_input_ip6vf_5`,disabledText:`_disabledText_ip6vf_5`,inputError:`_inputError_ip6vf_39`,trailingAction:`_trailingAction_ip6vf_41`},pe=({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:g,clearable:_=!0,required:v=!1,selectTextOnFocus:y=!1,isPassword:b=!1,passwordVisibleLabel:x=`Скрыть пароль`,passwordHiddenLabel:S=`Показать пароль`,onFocus:C,...w})=>{let T=(0,t.useId)(),E=g??`ds-input-${h??T}`,D=(0,t.useRef)(null),[O,k]=(0,t.useState)(!1),A=d?`${E}-hint`:void 0,j=u?`${E}-error`:void 0,M=String(n??``),N=[A,j].filter(Boolean).join(` `)||void 0,P=b?O?`text`:`password`:i;return(0,t.useEffect)(()=>{b||k(!1)},[b]),(0,e.jsxs)(`div`,{className:`${H.wrapper} ${m}`,children:[l&&(0,e.jsx)(f,{htmlFor:E,required:v,disabled:o,children:l}),o&&c?(0,e.jsx)(`div`,{id:E,className:H.disabledText,"aria-describedby":N,children:M||a}):(0,e.jsxs)(`div`,{className:H.control,children:[(0,e.jsx)(`input`,{ref:D,id:E,name:h,type:P,value:M,placeholder:a,disabled:o,readOnly:s,required:v,"aria-invalid":!!u,"aria-describedby":N,className:`${H.input} ${u?H.inputError:``}`,onChange:e=>{if(i===`number`&&!b){let t=e.target.value===``?``:Number(e.target.value);r?.(t,e);return}r?.(e.target.value,e)},onFocus:e=>{y&&e.currentTarget.value&&e.currentTarget.select(),C?.(e)},...w}),b&&(0,e.jsx)(`button`,{type:`button`,className:H.trailingAction,disabled:o,"aria-label":O?x:S,"aria-pressed":O,onClick:()=>k(e=>!e),children:O?(0,e.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,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`})}):(0,e.jsxs)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,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`})]})}),!b&&_&&M&&!o&&!s&&(0,e.jsx)(`button`,{type:`button`,className:H.trailingAction,"aria-label":`Очистить поле`,onClick:()=>{let e=D.current;e&&((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus())},children:`×`})]}),d&&!u&&(0,e.jsx)(p,{id:A,children:d}),u&&(0,e.jsx)(p,{id:j,variant:`error`,children:u})]})},U={wrapper:`_wrapper_vu1ob_1`,input:`_input_vu1ob_21`,switch:`_switch_vu1ob_35`,thumb:`_thumb_vu1ob_67`,label:`_label_vu1ob_111`,disabled:`_disabled_vu1ob_123`},me=({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:`${U.wrapper} ${a?U.disabled:``} ${s}`,children:[(0,e.jsx)(`input`,{id:f,className:U.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:U.switch,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:U.thumb})}),i&&(0,e.jsx)(`span`,{className:U.label,children:i})]})},W={root:`_root_kepgo_1`,grid:`_grid_kepgo_3`,actions:`_actions_kepgo_5`},he=({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:`${W.root} ${l}`,"aria-label":`Фильтры`,"aria-busy":s,children:[(0,e.jsx)(`div`,{className:W.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)(pe,{...n,type:`number`,value:i??``,onChange:e=>d(t.id,e)},t.id):(0,e.jsx)(pe,{...n,type:`text`,value:String(i??``),onChange:e=>d(t.id,e)},t.id)}if(t.type===`dropdown`)return(0,e.jsx)(F,{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)(le,{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)(h,{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)(me,{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)(A,{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:W.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:`Применить`})]})]})},G={wrapper:`_wrapper_1ymdr_1`,dropzone:`_dropzone_1ymdr_3`,dragActive:`_dragActive_1ymdr_5`,disabled:`_disabled_1ymdr_7`,error:`_error_1ymdr_9`,nativeInput:`_nativeInput_1ymdr_11`,empty:`_empty_1ymdr_13`,uploadIcon:`_uploadIcon_1ymdr_15`,browseButton:`_browseButton_1ymdr_17`,files:`_files_1ymdr_19`,file:`_file_1ymdr_19`,fileName:`_fileName_1ymdr_23`,fileSize:`_fileSize_1ymdr_25`},K=e=>`${e.name}:${e.size}:${e.lastModified}`,ge=e=>e<1024?`${e} Б`:e<1048576?`${(e/1024).toFixed(1)} КБ`:`${(e/1024/1024).toFixed(1)} МБ`,_e=(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),ve=({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:g=!1,name:_,id:v,className:y=``,dropLabel:b=`Перетащите файлы в эту область`,browseLabel:x=`Выбрать файлы`,addMoreLabel:S=`Добавить ещё`,onReject:C})=>{let w=(0,t.useId)(),T=v??`ds-file-input-${_??w}`,E=(0,t.useRef)(null),D=(0,t.useRef)(0),[O,k]=(0,t.useState)(!1),A=l?`${T}-hint`:void 0,j=d?`${T}-error`:void 0,M=[A,j].filter(Boolean).join(` `)||void 0,N=!h&&!g,P=e=>{let t=[],c=new Set(n.map(K)),l=e.filter(e=>_e(e,a)?o!==void 0&&e.size>o?(t.push({file:e,reason:`maxSize`}),!1):!c.has(K(e))&&(c.add(K(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&&C?.(t),l.length&&r?.(d),E.current&&(E.current.value=``)};return(0,e.jsxs)(`div`,{className:`${G.wrapper} ${y}`,children:[c&&(0,e.jsx)(f,{htmlFor:T,required:m,disabled:h,children:c}),(0,e.jsxs)(`div`,{className:`${G.dropzone} ${O?G.dragActive:``} ${h?G.disabled:``} ${d?G.error:``}`,onDragEnter:e=>{e.preventDefault(),N&&++D.current===1&&k(!0)},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{e.preventDefault(),--D.current<=0&&(D.current=0,k(!1))},onDrop:e=>{e.preventDefault(),D.current=0,k(!1),N&&P(Array.from(e.dataTransfer.files))},children:[(0,e.jsx)(`input`,{ref:E,id:T,name:_,className:G.nativeInput,type:`file`,multiple:i,accept:a,required:m&&n.length===0,disabled:!N,"aria-describedby":M,"aria-invalid":!!d,onChange:e=>P(Array.from(e.target.files??[]))}),n.length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`ul`,{className:G.files,"aria-live":`polite`,children:n.map((t,i)=>(0,e.jsxs)(`li`,{className:G.file,children:[(0,e.jsx)(`span`,{className:G.fileName,title:t.name,children:t.name}),(0,e.jsx)(`span`,{className:G.fileSize,children:ge(t.size)}),N&&(0,e.jsx)(u,{variant:`empty`,size:`sm`,"aria-label":`Удалить файл ${t.name}`,onClick:()=>r?.(n.filter((e,t)=>t!==i)),children:`×`})]},K(t)))}),N&&(i||n.length===0)&&(0,e.jsx)(u,{className:G.browseButton,size:`sm`,onClick:()=>E.current?.click(),children:S}),N&&!i&&(0,e.jsx)(u,{className:G.browseButton,size:`sm`,onClick:()=>E.current?.click(),children:x})]}):(0,e.jsxs)(`div`,{className:G.empty,children:[(0,e.jsx)(`span`,{className:G.uploadIcon,"aria-hidden":`true`,children:`↑`}),(0,e.jsx)(`strong`,{children:O?`Отпустите файлы здесь`:b}),!O&&N&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`span`,{children:`или`}),(0,e.jsx)(u,{className:G.browseButton,onClick:()=>E.current?.click(),children:x})]})]})]}),l&&!d&&(0,e.jsx)(p,{id:A,children:l}),d&&(0,e.jsx)(p,{id:j,variant:`error`,live:!0,children:d})]})},ye=0,q=(0,i.create)(e=>({modals:[],openModal:(t,n={},r={})=>{ye+=1;let i=`ds-modal-${ye}`;return e(e=>({modals:[...e.modals,{id:i,name:t,payload:n,closeOnEscape:r.closeOnEscape??!0,closeOnBackdrop:r.closeOnBackdrop??!0}]})),i},closeModal:t=>e(e=>({modals:e.modals.filter(e=>e.id!==t)})),closeTopModal:()=>e(e=>({modals:e.modals.slice(0,-1)})),closeAllModals:()=>e({modals:[]})})),be=()=>q.setState({modals:[]}),J={layer:`_layer_1nb2z_1`,backdrop:`_backdrop_1nb2z_3`,panel:`_panel_1nb2z_5`,header:`_header_1nb2z_9`,title:`_title_1nb2z_11`,description:`_description_1nb2z_13`,content:`_content_1nb2z_15`},xe=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,Y=({children:n,title:r,description:i,modalId:a,closeLabel:o=`Закрыть модальное окно`,className:s=``,role:c=`dialog`})=>{let l=(0,t.useId)(),d=(0,t.useId)(),f=(0,t.useRef)(null),p=q(e=>e.closeModal);return(0,t.useEffect)(()=>{let e=document.activeElement,t=f.current;return(t?.querySelector(xe)??t)?.focus(),()=>e?.focus()},[]),(0,e.jsxs)(`div`,{ref:f,className:`${J.panel} ${s}`,role:c,"aria-modal":`true`,"aria-labelledby":r?l:void 0,"aria-describedby":i?d:void 0,tabIndex:-1,onKeyDown:e=>{if(e.key!==`Tab`)return;let t=Array.from(f.current?.querySelectorAll(xe)??[]);if(!t.length){e.preventDefault();return}let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())},children:[(r||o)&&(0,e.jsxs)(`header`,{className:J.header,children:[r&&(0,e.jsx)(`h2`,{id:l,className:J.title,children:r}),(0,e.jsx)(u,{variant:`empty`,size:`sm`,"aria-label":o,onClick:()=>p(a),children:(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`path`,{d:`M18 6 6 18`}),(0,e.jsx)(`path`,{d:`m6 6 12 12`})]})})]}),i&&(0,e.jsx)(`p`,{id:d,className:J.description,children:i}),(0,e.jsx)(`div`,{className:J.content,children:n})]})},Se=({registry:n})=>{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]),!i.length||typeof document>`u`?null:(0,r.createPortal)((0,e.jsx)(`div`,{className:J.layer,"aria-label":`Модальные окна`,children:i.map((t,r)=>{let s=n[t.name];return s?(0,e.jsx)(`div`,{className:J.backdrop,"aria-hidden":r!==i.length-1||void 0,onMouseDown:e=>{e.target===e.currentTarget&&t.closeOnBackdrop&&a(t.id)},children:(0,e.jsx)(s,{...t.payload,modalId:t.id,close:()=>a(t.id),closeAll:o})},t.id):null})}),document.body)},Ce=({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)(Se,{registry:n})]})},we=e=>e,X={message:`_message_1vtru_1`,actions:`_actions_1vtru_3`},Te=new Map,Ee=0,De=({modalId:t,close:n,title:r=`Подтверждение`,message:i=`Продолжить действие?`,confirmLabel:a=`Подтвердить`,cancelLabel:o=`Отмена`,tone:s=`default`,requestId:c})=>{let l=e=>{Te.get(c)?.(e),Te.delete(c),n()};return(0,e.jsxs)(Y,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:X.message,children:i}),(0,e.jsxs)(`div`,{className:X.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})]})]})},Oe=({modalId:t,close:n,title:r=`Ошибка`,message:i,closeLabel:a=`Закрыть`})=>(0,e.jsxs)(Y,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:X.message,children:i}),(0,e.jsx)(`div`,{className:X.actions,children:(0,e.jsx)(u,{onClick:n,children:a})})]}),ke=we({ConfirmModal:De,ErrorModal:Oe}),Ae=()=>{let e=q(e=>e.openModal);return(t={})=>new Promise(n=>{Ee+=1;let r=`confirm-${Ee}`;Te.set(r,n),e(`ConfirmModal`,{...t,requestId:r},{closeOnEscape:!1})})},je=e=>e instanceof Error?e.message:typeof e==`string`?e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`?e.message:`Произошла неизвестная ошибка`,Me=()=>{let e=q(e=>e.openModal);return{showError:(t,n)=>e(`ErrorModal`,{title:n,message:je(t)})}},Ne=(0,i.create)(()=>({})),Pe=(0,i.create)(()=>({})),Fe=()=>{let e=q(e=>e.modals),t=q(e=>e.openModal);return{openModal:(e,n={},r)=>t(e,n,r),closeModal:q(e=>e.closeModal),closeTopModal:q(e=>e.closeTopModal),closeAllModals:q(e=>e.closeAllModals),isOpen:t=>e.some(e=>e.name===t),count:e.length}},Ie={root:`_root_1x7h7_1`},Le=({label:t=`Загрузка страницы`,className:n=``})=>(0,e.jsxs)(`div`,{className:`${Ie.root} ${n}`,role:`status`,"aria-label":t,children:[(0,e.jsx)(c,{decorative:!0}),(0,e.jsx)(`span`,{children:t})]}),Z={viewport:`_viewport_15mi5_1`,"top-right":`_top-right_15mi5_3`,"top-left":`_top-left_15mi5_5`,"bottom-right":`_bottom-right_15mi5_7`,"bottom-left":`_bottom-left_15mi5_9`,toast:`_toast_15mi5_11`,body:`_body_15mi5_13`,icon:`_icon_15mi5_15`,info:`_info_15mi5_17`,success:`_success_15mi5_19`,warning:`_warning_15mi5_21`,error:`_error_15mi5_23`},Re=t=>{let n;return n=t===`info`?(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#179cf0`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M12 16v-4`}),(0,e.jsx)(`path`,{d:`M12 8h.01`})]}):t===`success`?(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#179c66`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}):t===`warning`?(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#f59e0b`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}),(0,e.jsx)(`path`,{d:`M12 9v4`}),(0,e.jsx)(`path`,{d:`M12 17h.01`})]}):t===`error`?(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#dc2626`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}),(0,e.jsx)(`path`,{d:`M12 9v4`}),(0,e.jsx)(`path`,{d:`M12 17h.01`})]}):(0,e.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`m15 9-6 6`}),(0,e.jsx)(`path`,{d:`m9 9 6 6`})]}),n},ze=({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:`${Z.toast} ${Z[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:Re(n.variant)}),(0,e.jsxs)(`div`,{className:Z.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.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`path`,{d:`M18 6 6 18`}),(0,e.jsx)(`path`,{d:`m6 6 12 12`})]})})]})},Be=0,Q=(0,i.create)(e=>({toasts:[],showToast:t=>{Be+=1;let n=`ds-toast-${Be}`;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:[]})})),Ve=()=>Q.setState({toasts:[]}),He=({position:t=`top-right`})=>{let n=Q(e=>e.toasts),r=Q(e=>e.removeToast);return(0,e.jsx)(`div`,{className:`${Z.viewport} ${Z[t]}`,"aria-label":`Уведомления`,children:n.map(t=>(0,e.jsx)(ze,{toast:t,onClose:r},t.id))})},Ue=()=>{let e=Q(e=>e.showToast),n=Q(e=>e.removeToast),r=Q(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])},We={root:`_root_s9o0g_1`,tooltip:`_tooltip_s9o0g_3`,"ds-tooltip-in":`_ds-tooltip-in_s9o0g_1`,top:`_top_s9o0g_5`,bottom:`_bottom_s9o0g_7`,left:`_left_s9o0g_9`,right:`_right_s9o0g_11`},Ge=({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:`${We.root} ${c}`,onPointerDown:u?m:p,children:[h,u&&(0,e.jsx)(`span`,{id:l,role:`tooltip`,className:`${We.tooltip} ${We[i]}`,style:{maxWidth:s},children:n})]})},$={root:`_root_1ue3g_1`,frame:`_frame_1ue3g_3`,video:`_video_1ue3g_5`,overlay:`_overlay_1ue3g_7`,error:`_error_1ue3g_7`,caption:`_caption_1ue3g_13`},Ke=({sources:n,tracks:r=[],title:i,aspectRatio:a=`16 / 9`,objectFit:o=`contain`,loading:s=!1,error:l,fallback:u,className:d=``,controls:f=!0,playsInline:p=!0,...m})=>{let[h,g]=(0,t.useState)(!1),_=l??(h?`Не удалось воспроизвести видео`:void 0);return(0,e.jsxs)(`figure`,{className:`${$.root} ${d}`,children:[(0,e.jsxs)(`div`,{className:$.frame,style:{aspectRatio:a},children:[!_&&n.length>0&&(0,e.jsxs)(`video`,{...m,"aria-label":i,controls:f,playsInline:p,className:$.video,style:{objectFit:o},onError:e=>{g(!0),m.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}`))]}),s&&(0,e.jsx)(`div`,{className:$.overlay,children:(0,e.jsx)(c,{label:`Загрузка видео`})}),(_||n.length===0)&&(0,e.jsx)(`div`,{className:$.error,role:`alert`,children:u??_??`Источник видео не указан`})]}),(0,e.jsx)(`figcaption`,{className:$.caption,children:i})]})};exports.ConfirmModal=De,exports.DSBadge=o,exports.DSButton=u,exports.DSCheckbox=h,exports.DSDataTable=ce,exports.DSDateRange=A,exports.DSDateTimePicker=D,exports.DSDropDown=F,exports.DSDropDownMultiple=le,exports.DSFieldLabel=f,exports.DSFieldMessage=p,exports.DSFileInput=ve,exports.DSFilters=he,exports.DSIcon=de,exports.DSInfoBlock=fe,exports.DSInput=pe,exports.DSLoader=c,exports.DSModal=Se,exports.DSModalFrame=Y,exports.DSPageLoader=Le,exports.DSRadioButton=me,exports.DSSkeleton=M,exports.DSSort=L,exports.DSToast=ze,exports.DSToastProvider=He,exports.DSTooltip=Ge,exports.DSVideoPlayerFrame=Ke,exports.ErrorModal=Oe,exports.ModalSystemProvider=Ce,exports.builtInModalRegistry=ke,exports.defineModalRegistry=we,exports.formatDateTimeLocalValue=x,exports.getErrorMessage=je,exports.getNextEnabledOptionIndex=P,exports.isValidDateRange=k,exports.parseDateTimeLocalValue=S,exports.resetModalStore=be,exports.resetToastStore=Ve,exports.useConfirmModal=Ae,exports.useConfirmModalStore=Ne,exports.useErrorModal=Me,exports.useErrorModalStore=Pe,exports.useModals=Fe,exports.useModalsStore=q,exports.useToast=Ue,exports.useToastStore=Q,exports.validateDSDataTableData=te;
package/dist/index.d.ts CHANGED
@@ -22,7 +22,6 @@ export * from './components/DSPageLoader/DSPageLoader';
22
22
  export * from './components/DSRadioButton/DSRadioButton';
23
23
  export * from './components/DSSkeleton/DSSkeleton';
24
24
  export * from './components/DSSort/DSSort';
25
- export * from './components/DSTimePeriodPicker/DSTimePeriodPicker';
26
25
  export * from './components/DSToast/DSToast';
27
26
  export * from './components/DSToast/DSToastProvider';
28
27
  export * from './components/DSToast/toast.store';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oDAAoD,CAAC;AACnE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oDAAoD,CAAC;AACnE,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oDAAoD,CAAC;AACnE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oDAAoD,CAAC;AACnE,cAAc,4BAA4B,CAAC"}
package/dist/index.es.js CHANGED
@@ -58,11 +58,11 @@ var v = {
58
58
  destructiveOutline: "_destructiveOutline_1jisp_69"
59
59
  }, C = i(({ children: e, variant: n = "primary", size: r = "md", isLoading: i = !1, loadingLabel: a = "Загрузка", disabled: o, type: s = "button", className: c = "", ...l }, u) => /* @__PURE__ */ t("button", {
60
60
  ref: u,
61
- type: s,
62
61
  className: `${S.button} ${S[n]} ${S[r]} ${c}`,
63
62
  disabled: o || i,
64
63
  "aria-busy": i || void 0,
65
64
  ...l,
65
+ type: s,
66
66
  children: i ? /* @__PURE__ */ t(x, {
67
67
  variant: "light",
68
68
  label: a
@@ -207,23 +207,23 @@ var w = {
207
207
  }
208
208
  let n = new Date(t === "date" ? `${e}T00:00` : e);
209
209
  return Number.isNaN(n.getTime()) ? null : n;
210
- }, ee = (e, t) => {
210
+ }, I = (e, t) => {
211
211
  if (!e) return "";
212
212
  let n = `${M(e.getDate())}.${M(e.getMonth() + 1)}.${e.getFullYear()}`, r = `${M(e.getHours())}:${M(e.getMinutes())}`;
213
213
  return t === "date" ? n : t === "time" ? r : `${n} ${r}`;
214
- }, I = (e) => {
214
+ }, L = (e) => {
215
215
  let t = new Date(e.getFullYear(), e.getMonth(), 1), n = (t.getDay() + 6) % 7, r = new Date(t);
216
216
  return r.setDate(t.getDate() - n), Array.from({ length: 42 }, (e, t) => {
217
217
  let n = new Date(r);
218
218
  return n.setDate(r.getDate() + t), n;
219
219
  });
220
- }, te = (e, t) => !!(e && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate()), ne = (e, t, n) => {
220
+ }, ee = (e, t) => !!(e && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate()), te = (e, t, n) => {
221
221
  let r = N(e).getTime();
222
222
  return !!(t && r < N(t).getTime() || n && r > N(n).getTime());
223
- }, L = ({ value: r, onChange: i, mode: a = "date", label: o, placeholder: f, hint: p, error: m, disabled: h = !1, readOnly: g = !1, required: _ = !1, min: v, max: y, id: b, name: x, className: S = "" }) => {
224
- let C = c(), w = b ?? `ds-date-time-${x ?? C}`, D = p ? `${w}-hint` : void 0, O = m ? `${w}-error` : void 0, M = u(null), N = u(null), [L, R] = d(!1), [z, B] = d(r ?? /* @__PURE__ */ new Date()), [V, re] = d(P(r, "time")), H = l(() => I(z), [z]), ie = a !== "time", U = a !== "date";
223
+ }, ne = ({ value: r, onChange: i, mode: a = "date", label: o, placeholder: f, hint: p, error: m, disabled: h = !1, readOnly: g = !1, required: _ = !1, min: v, max: y, id: b, name: x, className: S = "" }) => {
224
+ let C = c(), w = b ?? `ds-date-time-${x ?? C}`, D = p ? `${w}-hint` : void 0, O = m ? `${w}-error` : void 0, M = u(null), N = u(null), [ne, R] = d(!1), [z, B] = d(r ?? /* @__PURE__ */ new Date()), [V, H] = d(P(r, "time")), U = l(() => L(z), [z]), re = a !== "time", ie = a !== "date";
225
225
  s(() => {
226
- r && B(r), re(P(r, "time"));
226
+ r && B(r), H(P(r, "time"));
227
227
  }, [r]), s(() => {
228
228
  let e = (e) => {
229
229
  M.current?.contains(e.target) || R(!1);
@@ -235,11 +235,11 @@ var w = {
235
235
  };
236
236
  }, []);
237
237
  let ae = (e) => {
238
- if (ne(e, v, y)) return;
238
+ if (te(e, v, y)) return;
239
239
  let t = new Date(e);
240
240
  t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), a === "date" && R(!1);
241
241
  }, oe = (e) => {
242
- if (re(e), !e) {
242
+ if (H(e), !e) {
243
243
  i?.(null);
244
244
  return;
245
245
  }
@@ -266,7 +266,7 @@ var w = {
266
266
  className: `${k.trigger} ${m ? k.error : ""}`,
267
267
  disabled: h,
268
268
  "aria-readonly": g || void 0,
269
- "aria-expanded": L,
269
+ "aria-expanded": ne,
270
270
  "aria-haspopup": "dialog",
271
271
  "aria-describedby": se,
272
272
  onClick: () => {
@@ -274,17 +274,17 @@ var w = {
274
274
  },
275
275
  children: [/* @__PURE__ */ t("span", {
276
276
  className: r ? k.value : k.placeholder,
277
- children: ee(r, a) || W
277
+ children: I(r, a) || W
278
278
  }), /* @__PURE__ */ t("span", {
279
279
  "aria-hidden": "true",
280
280
  children: "▾"
281
281
  })]
282
282
  }),
283
- L && !g && /* @__PURE__ */ n("div", {
283
+ ne && !g && /* @__PURE__ */ n("div", {
284
284
  className: k.panel,
285
285
  role: "dialog",
286
286
  "aria-label": o ?? W,
287
- children: [ie && /* @__PURE__ */ n(e, { children: [
287
+ children: [re && /* @__PURE__ */ n(e, { children: [
288
288
  /* @__PURE__ */ n("div", {
289
289
  className: k.calendarHeader,
290
290
  children: [
@@ -327,19 +327,19 @@ var w = {
327
327
  }),
328
328
  /* @__PURE__ */ t("div", {
329
329
  className: k.days,
330
- children: H.map((e) => {
331
- let n = te(r, e);
330
+ children: U.map((e) => {
331
+ let n = ee(r, e);
332
332
  return /* @__PURE__ */ t("button", {
333
333
  type: "button",
334
334
  className: `${k.day} ${e.getMonth() === z.getMonth() ? "" : k.outside} ${n ? k.selected : ""}`,
335
- disabled: ne(e, v, y),
335
+ disabled: te(e, v, y),
336
336
  "aria-pressed": n,
337
337
  onClick: () => ae(e),
338
338
  children: e.getDate()
339
339
  }, e.toISOString());
340
340
  })
341
341
  })
342
- ] }), U && /* @__PURE__ */ n("label", {
342
+ ] }), ie && /* @__PURE__ */ n("label", {
343
343
  className: k.timeLabel,
344
344
  children: [/* @__PURE__ */ t("span", { children: "Время" }), /* @__PURE__ */ t("input", {
345
345
  className: k.timeInput,
@@ -373,7 +373,7 @@ var w = {
373
373
  disabled: f,
374
374
  children: [/* @__PURE__ */ n("div", {
375
375
  className: R.range,
376
- children: [/* @__PURE__ */ t(L, {
376
+ children: [/* @__PURE__ */ t(ne, {
377
377
  value: e.from,
378
378
  mode: a === "datetime" ? "datetime" : a,
379
379
  label: o,
@@ -387,7 +387,7 @@ var w = {
387
387
  ...e,
388
388
  from: t
389
389
  })
390
- }), /* @__PURE__ */ t(L, {
390
+ }), /* @__PURE__ */ t(ne, {
391
391
  value: e.to,
392
392
  mode: a === "datetime" ? "datetime" : a,
393
393
  label: s,
@@ -412,7 +412,7 @@ var w = {
412
412
  circular: "_circular_1fs9e_9",
413
413
  animated: "_animated_1fs9e_11",
414
414
  "ds-skeleton": "_ds-skeleton_1fs9e_1"
415
- }, re = ({ variant: e = "text", width: n = "100%", height: r, lines: i = 1, animated: a = !0, className: o = "" }) => /* @__PURE__ */ t("span", {
415
+ }, H = ({ variant: e = "text", width: n = "100%", height: r, lines: i = 1, animated: a = !0, className: o = "" }) => /* @__PURE__ */ t("span", {
416
416
  className: `${V.group} ${o}`,
417
417
  "aria-hidden": "true",
418
418
  children: Array.from({ length: Math.max(1, i) }, (o, s) => /* @__PURE__ */ t("span", {
@@ -422,7 +422,7 @@ var w = {
422
422
  height: r
423
423
  }
424
424
  }, s))
425
- }), H = {
425
+ }), U = {
426
426
  wrapper: "_wrapper_dkn63_1",
427
427
  label: "_label_dkn63_17",
428
428
  container: "_container_dkn63_29",
@@ -438,13 +438,13 @@ var w = {
438
438
  message: "_message_dkn63_265",
439
439
  error: "_error_dkn63_267",
440
440
  errorState: "_errorState_dkn63_293"
441
- }, ie = (e, t, n) => {
441
+ }, re = (e, t, n) => {
442
442
  for (let r = 0; r < e.length; r += 1) {
443
443
  let i = (t + r * n + e.length) % e.length;
444
444
  if (!e[i]?.disabled) return i;
445
445
  }
446
446
  return -1;
447
- }, U = ({ options: r, value: i, onChange: a, placeholder: o = "Выберите опцию", disabled: f = !1, stringWhileDisabled: p = !1, label: m, error: h, hint: g, className: _ = "", name: v, id: y, needMark: b = !0, maxMenuHeight: x }) => {
447
+ }, ie = ({ options: r, value: i, onChange: a, placeholder: o = "Выберите опцию", disabled: f = !1, stringWhileDisabled: p = !1, label: m, error: h, hint: g, className: _ = "", name: v, id: y, needMark: b = !0, maxMenuHeight: x }) => {
448
448
  let S = c(), C = y ?? `ds-dropdown-${v ?? S}`, [w, T] = d(!1), E = u(null), D = u(null), O = u([]), k = l(() => r.find((e) => e.value === i), [r, i]), A = g ? `${C}-hint` : void 0, j = h ? `${C}-error` : void 0, M = [A, j].filter(Boolean).join(" ") || void 0, N = f && p;
449
449
  s(() => {
450
450
  let e = (e) => {
@@ -457,7 +457,7 @@ var w = {
457
457
  };
458
458
  }, [w]);
459
459
  let P = (e, t) => {
460
- let n = ie(r, e, t);
460
+ let n = re(r, e, t);
461
461
  O.current[n]?.focus(), O.current[n]?.scrollIntoView({ block: "nearest" });
462
462
  }, F = (e) => {
463
463
  e.disabled || (a?.(e.value, e), T(!1), D.current?.focus());
@@ -465,21 +465,21 @@ var w = {
465
465
  return /* @__PURE__ */ n("div", {
466
466
  ref: E,
467
467
  className: [
468
- H.wrapper,
469
- h ? H.errorState : "",
468
+ U.wrapper,
469
+ h ? U.errorState : "",
470
470
  _
471
471
  ].filter(Boolean).join(" "),
472
472
  children: [
473
473
  m && /* @__PURE__ */ t("label", {
474
474
  htmlFor: N ? void 0 : C,
475
- className: H.label,
475
+ className: U.label,
476
476
  children: m
477
477
  }),
478
478
  /* @__PURE__ */ t("div", {
479
- className: H.container,
479
+ className: U.container,
480
480
  children: N ? /* @__PURE__ */ t("div", {
481
481
  id: C,
482
- className: H.disabledText,
482
+ className: U.disabledText,
483
483
  "aria-describedby": M,
484
484
  children: k?.label ?? o
485
485
  }) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("button", {
@@ -487,7 +487,7 @@ var w = {
487
487
  id: C,
488
488
  type: "button",
489
489
  name: v,
490
- className: H.trigger,
490
+ className: U.trigger,
491
491
  disabled: f,
492
492
  "aria-haspopup": "listbox",
493
493
  "aria-expanded": w,
@@ -503,10 +503,10 @@ var w = {
503
503
  }
504
504
  },
505
505
  children: [/* @__PURE__ */ t("span", {
506
- className: k ? H.value : H.placeholder,
506
+ className: k ? U.value : U.placeholder,
507
507
  children: k?.label ?? o
508
508
  }), /* @__PURE__ */ t("span", {
509
- className: `${H.chevron} ${w ? H.chevronOpen : ""}`,
509
+ className: `${U.chevron} ${w ? U.chevronOpen : ""}`,
510
510
  "aria-hidden": "true",
511
511
  children: /* @__PURE__ */ t("svg", {
512
512
  viewBox: "0 0 20 20",
@@ -522,7 +522,7 @@ var w = {
522
522
  })]
523
523
  }), w && /* @__PURE__ */ t("ul", {
524
524
  id: `${C}-listbox`,
525
- className: H.menu,
525
+ className: U.menu,
526
526
  role: "listbox",
527
527
  "aria-label": m,
528
528
  style: { maxHeight: x },
@@ -538,7 +538,7 @@ var w = {
538
538
  role: "option",
539
539
  "aria-selected": o,
540
540
  disabled: e.disabled,
541
- className: `${H.option} ${o ? H.selected : ""}`,
541
+ className: `${U.option} ${o ? U.selected : ""}`,
542
542
  onClick: () => F(e),
543
543
  onKeyDown: (e) => {
544
544
  if ((e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), P(a + (e.key === "ArrowDown" ? 1 : -1), e.key === "ArrowDown" ? 1 : -1)), e.key === "Tab" && T(!1), e.key === "Home" || e.key === "End") {
@@ -558,12 +558,12 @@ var w = {
558
558
  }),
559
559
  g && !h && /* @__PURE__ */ t("span", {
560
560
  id: A,
561
- className: H.message,
561
+ className: U.message,
562
562
  children: g
563
563
  }),
564
564
  h && /* @__PURE__ */ t("span", {
565
565
  id: j,
566
- className: H.error,
566
+ className: U.error,
567
567
  children: h
568
568
  })
569
569
  ]
@@ -584,7 +584,7 @@ var w = {
584
584
  label: e.descLabel ?? `${e.label} · по убыванию`,
585
585
  disabled: e.disabled
586
586
  }]);
587
- return /* @__PURE__ */ t(U, {
587
+ return /* @__PURE__ */ t(ie, {
588
588
  options: c,
589
589
  value: n ? ae(n) : "",
590
590
  label: i,
@@ -735,7 +735,7 @@ var w = {
735
735
  }),
736
736
  /* @__PURE__ */ t("tbody", { children: m ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
737
737
  colSpan: e.length,
738
- children: /* @__PURE__ */ t(re, { lines: 3 })
738
+ children: /* @__PURE__ */ t(H, { lines: 3 })
739
739
  }) }) : A ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
740
740
  className: W.state,
741
741
  colSpan: e.length,
@@ -752,7 +752,7 @@ var w = {
752
752
  className: W.cards,
753
753
  role: "list",
754
754
  "aria-label": p ?? f,
755
- children: m ? /* @__PURE__ */ t(re, { lines: 4 }) : A ? /* @__PURE__ */ t("div", {
755
+ children: m ? /* @__PURE__ */ t(H, { lines: 4 }) : A ? /* @__PURE__ */ t("div", {
756
756
  className: W.state,
757
757
  children: A
758
758
  }) : D.length === 0 ? /* @__PURE__ */ t("div", {
@@ -800,30 +800,30 @@ var w = {
800
800
  let n = r.includes(t.value) ? r.filter((e) => e !== t.value) : [...r, t.value];
801
801
  i?.(n, e.filter((e) => n.includes(e.value))), v && (C(!1), T.current?.focus());
802
802
  }, M = (t, n) => {
803
- let r = ie(e, t, n);
803
+ let r = re(e, t, n);
804
804
  E.current[r]?.focus(), E.current[r]?.scrollIntoView({ block: "nearest" });
805
805
  };
806
806
  return /* @__PURE__ */ n("div", {
807
807
  ref: w,
808
808
  className: [
809
- H.wrapper,
810
- p ? H.errorState : "",
809
+ U.wrapper,
810
+ p ? U.errorState : "",
811
811
  h
812
812
  ].filter(Boolean).join(" "),
813
813
  children: [
814
814
  f && /* @__PURE__ */ t("label", {
815
815
  htmlFor: x,
816
- className: H.label,
816
+ className: U.label,
817
817
  children: f
818
818
  }),
819
819
  /* @__PURE__ */ n("div", {
820
- className: H.container,
820
+ className: U.container,
821
821
  children: [/* @__PURE__ */ n("button", {
822
822
  ref: T,
823
823
  id: x,
824
824
  type: "button",
825
825
  name: g,
826
- className: H.trigger,
826
+ className: U.trigger,
827
827
  disabled: o,
828
828
  "aria-haspopup": "listbox",
829
829
  "aria-expanded": S,
@@ -839,16 +839,16 @@ var w = {
839
839
  }
840
840
  },
841
841
  children: [/* @__PURE__ */ t("span", {
842
- className: D.length ? H.value : H.placeholder,
842
+ className: D.length ? U.value : U.placeholder,
843
843
  children: O || a
844
844
  }), /* @__PURE__ */ t("span", {
845
- className: `${H.chevron} ${S ? H.chevronOpen : ""}`,
845
+ className: `${U.chevron} ${S ? U.chevronOpen : ""}`,
846
846
  "aria-hidden": "true",
847
847
  children: "⌄"
848
848
  })]
849
849
  }), S && /* @__PURE__ */ t("ul", {
850
850
  id: `${x}-listbox`,
851
- className: H.menu,
851
+ className: U.menu,
852
852
  role: "listbox",
853
853
  "aria-label": f,
854
854
  "aria-multiselectable": "true",
@@ -865,7 +865,7 @@ var w = {
865
865
  role: "option",
866
866
  "aria-selected": o,
867
867
  disabled: i.disabled,
868
- className: `${H.option} ${o ? H.selected : ""}`,
868
+ className: `${U.option} ${o ? U.selected : ""}`,
869
869
  onClick: () => j(i),
870
870
  onKeyDown: (t) => {
871
871
  if (t.key === "ArrowDown" || t.key === "ArrowUp") {
@@ -891,12 +891,12 @@ var w = {
891
891
  }),
892
892
  m && !p && /* @__PURE__ */ t("span", {
893
893
  id: k,
894
- className: H.message,
894
+ className: U.message,
895
895
  children: m
896
896
  }),
897
897
  p && /* @__PURE__ */ t("span", {
898
898
  id: A,
899
- className: H.error,
899
+ className: U.error,
900
900
  children: p
901
901
  })
902
902
  ]
@@ -964,14 +964,14 @@ var w = {
964
964
  })]
965
965
  });
966
966
  }, K = {
967
- wrapper: "_wrapper_1tz82_1",
968
- control: "_control_1tz82_3",
969
- input: "_input_1tz82_5",
970
- disabledText: "_disabledText_1tz82_5",
971
- inputError: "_inputError_1tz82_11",
972
- trailingAction: "_trailingAction_1tz82_13"
967
+ wrapper: "_wrapper_ip6vf_1",
968
+ control: "_control_ip6vf_3",
969
+ input: "_input_ip6vf_5",
970
+ disabledText: "_disabledText_ip6vf_5",
971
+ inputError: "_inputError_ip6vf_39",
972
+ trailingAction: "_trailingAction_ip6vf_41"
973
973
  }, Se = ({ value: e, onChange: r, type: i = "text", placeholder: a = "", disabled: o = !1, readOnly: l = !1, stringWhileDisabled: f = !1, label: p, error: m, hint: h, className: g = "", name: _, id: v, clearable: y = !0, required: b = !1, selectTextOnFocus: x = !1, isPassword: S = !1, passwordVisibleLabel: C = "Скрыть пароль", passwordHiddenLabel: w = "Показать пароль", onFocus: D, ...O }) => {
974
- let k = c(), A = v ?? `ds-input-${_ ?? k}`, j = u(null), [M, N] = d(!1), P = h ? `${A}-hint` : void 0, F = m ? `${A}-error` : void 0, ee = String(e ?? ""), I = [P, F].filter(Boolean).join(" ") || void 0, te = S ? M ? "text" : "password" : i;
974
+ let k = c(), A = v ?? `ds-input-${_ ?? k}`, j = u(null), [M, N] = d(!1), P = h ? `${A}-hint` : void 0, F = m ? `${A}-error` : void 0, I = String(e ?? ""), L = [P, F].filter(Boolean).join(" ") || void 0, ee = S ? M ? "text" : "password" : i;
975
975
  return s(() => {
976
976
  S || N(!1);
977
977
  }, [S]), /* @__PURE__ */ n("div", {
@@ -986,8 +986,8 @@ var w = {
986
986
  o && f ? /* @__PURE__ */ t("div", {
987
987
  id: A,
988
988
  className: K.disabledText,
989
- "aria-describedby": I,
990
- children: ee || a
989
+ "aria-describedby": L,
990
+ children: I || a
991
991
  }) : /* @__PURE__ */ n("div", {
992
992
  className: K.control,
993
993
  children: [
@@ -995,14 +995,14 @@ var w = {
995
995
  ref: j,
996
996
  id: A,
997
997
  name: _,
998
- type: te,
999
- value: ee,
998
+ type: ee,
999
+ value: I,
1000
1000
  placeholder: a,
1001
1001
  disabled: o,
1002
1002
  readOnly: l,
1003
1003
  required: b,
1004
1004
  "aria-invalid": !!m,
1005
- "aria-describedby": I,
1005
+ "aria-describedby": L,
1006
1006
  className: `${K.input} ${m ? K.inputError : ""}`,
1007
1007
  onChange: (e) => {
1008
1008
  if (i === "number" && !S) {
@@ -1038,7 +1038,7 @@ var w = {
1038
1038
  })]
1039
1039
  })
1040
1040
  }),
1041
- !S && y && ee && !o && !l && /* @__PURE__ */ t("button", {
1041
+ !S && y && I && !o && !l && /* @__PURE__ */ t("button", {
1042
1042
  type: "button",
1043
1043
  className: K.trailingAction,
1044
1044
  "aria-label": "Очистить поле",
@@ -1121,7 +1121,6 @@ var w = {
1121
1121
  let n = l || c || e.disabled, i = r[e.id];
1122
1122
  if (e.type === "input") {
1123
1123
  let r = {
1124
- key: e.id,
1125
1124
  label: e.label,
1126
1125
  hint: e.hint,
1127
1126
  placeholder: e.placeholder,
@@ -1132,14 +1131,14 @@ var w = {
1132
1131
  type: "number",
1133
1132
  value: i ?? "",
1134
1133
  onChange: (t) => d(e.id, t)
1135
- }) : /* @__PURE__ */ t(Se, {
1134
+ }, e.id) : /* @__PURE__ */ t(Se, {
1136
1135
  ...r,
1137
1136
  type: "text",
1138
1137
  value: String(i ?? ""),
1139
1138
  onChange: (t) => d(e.id, t)
1140
- });
1139
+ }, e.id);
1141
1140
  }
1142
- if (e.type === "dropdown") return /* @__PURE__ */ t(U, {
1141
+ if (e.type === "dropdown") return /* @__PURE__ */ t(ie, {
1143
1142
  label: e.label,
1144
1143
  hint: e.hint,
1145
1144
  placeholder: e.placeholder,
@@ -1214,7 +1213,7 @@ var w = {
1214
1213
  fileName: "_fileName_1ymdr_23",
1215
1214
  fileSize: "_fileSize_1ymdr_25"
1216
1215
  }, Ee = (e) => `${e.name}:${e.size}:${e.lastModified}`, De = (e) => e < 1024 ? `${e} Б` : e < 1048576 ? `${(e / 1024).toFixed(1)} КБ` : `${(e / 1024 / 1024).toFixed(1)} МБ`, Oe = (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), ke = ({ value: r, onChange: i, multiple: a = !1, accept: o, maxSize: s, maxFiles: l, label: f, hint: p, error: m, required: h = !1, disabled: g = !1, readOnly: _ = !1, name: v, id: y, className: b = "", dropLabel: x = "Перетащите файлы в эту область", browseLabel: S = "Выбрать файлы", addMoreLabel: w = "Добавить ещё", onReject: D }) => {
1217
- let O = c(), k = y ?? `ds-file-input-${v ?? O}`, A = u(null), j = u(0), [M, N] = d(!1), P = p ? `${k}-hint` : void 0, F = m ? `${k}-error` : void 0, ee = [P, F].filter(Boolean).join(" ") || void 0, I = !g && !_, te = (e) => {
1216
+ let O = c(), k = y ?? `ds-file-input-${v ?? O}`, A = u(null), j = u(0), [M, N] = d(!1), P = p ? `${k}-hint` : void 0, F = m ? `${k}-error` : void 0, I = [P, F].filter(Boolean).join(" ") || void 0, L = !g && !_, ee = (e) => {
1218
1217
  let t = [], n = new Set(r.map(Ee)), c = e.filter((e) => Oe(e, o) ? s !== void 0 && e.size > s ? (t.push({
1219
1218
  file: e,
1220
1219
  reason: "maxSize"
@@ -1239,14 +1238,14 @@ var w = {
1239
1238
  /* @__PURE__ */ n("div", {
1240
1239
  className: `${J.dropzone} ${M ? J.dragActive : ""} ${g ? J.disabled : ""} ${m ? J.error : ""}`,
1241
1240
  onDragEnter: (e) => {
1242
- e.preventDefault(), I && ++j.current === 1 && N(!0);
1241
+ e.preventDefault(), L && ++j.current === 1 && N(!0);
1243
1242
  },
1244
1243
  onDragOver: (e) => e.preventDefault(),
1245
1244
  onDragLeave: (e) => {
1246
1245
  e.preventDefault(), --j.current <= 0 && (j.current = 0, N(!1));
1247
1246
  },
1248
1247
  onDrop: (e) => {
1249
- e.preventDefault(), j.current = 0, N(!1), I && te(Array.from(e.dataTransfer.files));
1248
+ e.preventDefault(), j.current = 0, N(!1), L && ee(Array.from(e.dataTransfer.files));
1250
1249
  },
1251
1250
  children: [/* @__PURE__ */ t("input", {
1252
1251
  ref: A,
@@ -1257,10 +1256,10 @@ var w = {
1257
1256
  multiple: a,
1258
1257
  accept: o,
1259
1258
  required: h && r.length === 0,
1260
- disabled: !I,
1261
- "aria-describedby": ee,
1259
+ disabled: !L,
1260
+ "aria-describedby": I,
1262
1261
  "aria-invalid": !!m,
1263
- onChange: (e) => te(Array.from(e.target.files ?? []))
1262
+ onChange: (e) => ee(Array.from(e.target.files ?? []))
1264
1263
  }), r.length ? /* @__PURE__ */ n(e, { children: [
1265
1264
  /* @__PURE__ */ t("ul", {
1266
1265
  className: J.files,
@@ -1277,7 +1276,7 @@ var w = {
1277
1276
  className: J.fileSize,
1278
1277
  children: De(e.size)
1279
1278
  }),
1280
- I && /* @__PURE__ */ t(C, {
1279
+ L && /* @__PURE__ */ t(C, {
1281
1280
  variant: "empty",
1282
1281
  size: "sm",
1283
1282
  "aria-label": `Удалить файл ${e.name}`,
@@ -1287,13 +1286,13 @@ var w = {
1287
1286
  ]
1288
1287
  }, Ee(e)))
1289
1288
  }),
1290
- I && (a || r.length === 0) && /* @__PURE__ */ t(C, {
1289
+ L && (a || r.length === 0) && /* @__PURE__ */ t(C, {
1291
1290
  className: J.browseButton,
1292
1291
  size: "sm",
1293
1292
  onClick: () => A.current?.click(),
1294
1293
  children: w
1295
1294
  }),
1296
- I && !a && /* @__PURE__ */ t(C, {
1295
+ L && !a && /* @__PURE__ */ t(C, {
1297
1296
  className: J.browseButton,
1298
1297
  size: "sm",
1299
1298
  onClick: () => A.current?.click(),
@@ -1308,7 +1307,7 @@ var w = {
1308
1307
  children: "↑"
1309
1308
  }),
1310
1309
  /* @__PURE__ */ t("strong", { children: M ? "Отпустите файлы здесь" : x }),
1311
- !M && I && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", { children: "или" }), /* @__PURE__ */ t(C, {
1310
+ !M && L && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", { children: "или" }), /* @__PURE__ */ t(C, {
1312
1311
  className: J.browseButton,
1313
1312
  onClick: () => A.current?.click(),
1314
1313
  children: S
@@ -1387,7 +1386,18 @@ var w = {
1387
1386
  size: "sm",
1388
1387
  "aria-label": o,
1389
1388
  onClick: () => h(a),
1390
- children: "×"
1389
+ children: /* @__PURE__ */ n("svg", {
1390
+ xmlns: "http://www.w3.org/2000/svg",
1391
+ width: "24",
1392
+ height: "24",
1393
+ viewBox: "0 0 24 24",
1394
+ fill: "none",
1395
+ stroke: "currentColor",
1396
+ strokeWidth: "2",
1397
+ strokeLinecap: "round",
1398
+ strokeLinejoin: "round",
1399
+ children: [/* @__PURE__ */ t("path", { d: "M18 6 6 18" }), /* @__PURE__ */ t("path", { d: "m6 6 12 12" })]
1400
+ })
1391
1401
  })]
1392
1402
  }),
1393
1403
  i && /* @__PURE__ */ t("p", {
@@ -1514,75 +1524,6 @@ var w = {
1514
1524
  role: "status",
1515
1525
  "aria-label": e,
1516
1526
  children: [/* @__PURE__ */ t(x, { decorative: !0 }), /* @__PURE__ */ t("span", { children: e })]
1517
- }), Ze = {
1518
- root: "_root_elask_1",
1519
- legend: "_legend_elask_3",
1520
- range: "_range_elask_5"
1521
- }, Qe = [
1522
- {
1523
- value: "1",
1524
- label: "День"
1525
- },
1526
- {
1527
- value: "2",
1528
- label: "Неделя"
1529
- },
1530
- {
1531
- value: "3",
1532
- label: "Месяц"
1533
- }
1534
- ], $e = {
1535
- day: 1,
1536
- week: 2,
1537
- month: 3
1538
- }, et = ({ value: e, onChange: r, label: i, hint: a, error: o, disabled: s = !1, min: c, max: l, className: u = "", periodTypeOptions: d = Qe }) => /* @__PURE__ */ n("fieldset", {
1539
- className: `${Ze.root} ${u}`,
1540
- disabled: s,
1541
- children: [
1542
- i && /* @__PURE__ */ t("legend", {
1543
- className: Ze.legend,
1544
- children: i
1545
- }),
1546
- /* @__PURE__ */ t(U, {
1547
- options: d,
1548
- value: String(e.periodType),
1549
- disabled: s,
1550
- onChange: (t) => r?.({
1551
- ...e,
1552
- periodType: Number(t)
1553
- }),
1554
- label: "Тип периода"
1555
- }),
1556
- /* @__PURE__ */ n("div", {
1557
- className: Ze.range,
1558
- children: [/* @__PURE__ */ t(L, {
1559
- value: e.startDate,
1560
- onChange: (t) => r?.({
1561
- ...e,
1562
- startDate: t
1563
- }),
1564
- label: "Начало",
1565
- min: c,
1566
- max: l,
1567
- disabled: s
1568
- }), /* @__PURE__ */ t(L, {
1569
- value: e.endDate,
1570
- onChange: (t) => r?.({
1571
- ...e,
1572
- endDate: t
1573
- }),
1574
- label: "Окончание",
1575
- min: e.startDate ?? c,
1576
- max: l,
1577
- disabled: s
1578
- })]
1579
- }),
1580
- a && !o && /* @__PURE__ */ t(E, { children: a }),
1581
- o && /* @__PURE__ */ t(E, {
1582
- variant: "error",
1583
- children: o
1584
- })
1585
- ]
1586
1527
  }), Z = {
1587
1528
  viewport: "_viewport_15mi5_1",
1588
1529
  "top-right": "_top-right_15mi5_3",
@@ -1596,7 +1537,93 @@ var w = {
1596
1537
  success: "_success_15mi5_19",
1597
1538
  warning: "_warning_15mi5_21",
1598
1539
  error: "_error_15mi5_23"
1599
- }, tt = ({ toast: e, onClose: r }) => {
1540
+ }, Ze = (e) => {
1541
+ let r;
1542
+ return r = e === "info" ? /* @__PURE__ */ n("svg", {
1543
+ xmlns: "http://www.w3.org/2000/svg",
1544
+ width: "24",
1545
+ height: "24",
1546
+ viewBox: "0 0 24 24",
1547
+ fill: "none",
1548
+ stroke: "#179cf0",
1549
+ strokeWidth: "2",
1550
+ strokeLinecap: "round",
1551
+ strokeLinejoin: "round",
1552
+ children: [
1553
+ /* @__PURE__ */ t("circle", {
1554
+ cx: "12",
1555
+ cy: "12",
1556
+ r: "10"
1557
+ }),
1558
+ /* @__PURE__ */ t("path", { d: "M12 16v-4" }),
1559
+ /* @__PURE__ */ t("path", { d: "M12 8h.01" })
1560
+ ]
1561
+ }) : e === "success" ? /* @__PURE__ */ n("svg", {
1562
+ xmlns: "http://www.w3.org/2000/svg",
1563
+ width: "24",
1564
+ height: "24",
1565
+ viewBox: "0 0 24 24",
1566
+ fill: "none",
1567
+ stroke: "#179c66",
1568
+ strokeWidth: "2",
1569
+ strokeLinecap: "round",
1570
+ strokeLinejoin: "round",
1571
+ children: [/* @__PURE__ */ t("circle", {
1572
+ cx: "12",
1573
+ cy: "12",
1574
+ r: "10"
1575
+ }), /* @__PURE__ */ t("path", { d: "m9 12 2 2 4-4" })]
1576
+ }) : e === "warning" ? /* @__PURE__ */ n("svg", {
1577
+ xmlns: "http://www.w3.org/2000/svg",
1578
+ width: "24",
1579
+ height: "24",
1580
+ viewBox: "0 0 24 24",
1581
+ fill: "none",
1582
+ stroke: "#f59e0b",
1583
+ strokeWidth: "2",
1584
+ strokeLinecap: "round",
1585
+ strokeLinejoin: "round",
1586
+ children: [
1587
+ /* @__PURE__ */ t("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
1588
+ /* @__PURE__ */ t("path", { d: "M12 9v4" }),
1589
+ /* @__PURE__ */ t("path", { d: "M12 17h.01" })
1590
+ ]
1591
+ }) : e === "error" ? /* @__PURE__ */ n("svg", {
1592
+ xmlns: "http://www.w3.org/2000/svg",
1593
+ width: "24",
1594
+ height: "24",
1595
+ viewBox: "0 0 24 24",
1596
+ fill: "none",
1597
+ stroke: "#dc2626",
1598
+ strokeWidth: "2",
1599
+ strokeLinecap: "round",
1600
+ strokeLinejoin: "round",
1601
+ children: [
1602
+ /* @__PURE__ */ t("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
1603
+ /* @__PURE__ */ t("path", { d: "M12 9v4" }),
1604
+ /* @__PURE__ */ t("path", { d: "M12 17h.01" })
1605
+ ]
1606
+ }) : /* @__PURE__ */ n("svg", {
1607
+ xmlns: "http://www.w3.org/2000/svg",
1608
+ width: "24",
1609
+ height: "24",
1610
+ viewBox: "0 0 24 24",
1611
+ fill: "none",
1612
+ stroke: "currentColor",
1613
+ strokeWidth: "2",
1614
+ strokeLinecap: "round",
1615
+ strokeLinejoin: "round",
1616
+ children: [
1617
+ /* @__PURE__ */ t("circle", {
1618
+ cx: "12",
1619
+ cy: "12",
1620
+ r: "10"
1621
+ }),
1622
+ /* @__PURE__ */ t("path", { d: "m15 9-6 6" }),
1623
+ /* @__PURE__ */ t("path", { d: "m9 9 6 6" })
1624
+ ]
1625
+ }), r;
1626
+ }, Qe = ({ toast: e, onClose: r }) => {
1600
1627
  let [i, a] = d(!1), o = u(e.duration), c = u(Date.now());
1601
1628
  return s(() => {
1602
1629
  if (i || e.duration <= 0) return;
@@ -1619,10 +1646,7 @@ var w = {
1619
1646
  onFocus: () => a(!0),
1620
1647
  onBlur: () => a(!1),
1621
1648
  children: [
1622
- /* @__PURE__ */ t(be, {
1623
- name: e.variant === "warning" ? "warning" : "info",
1624
- className: Z.icon
1625
- }),
1649
+ /* @__PURE__ */ t("div", { children: Ze(e.variant) }),
1626
1650
  /* @__PURE__ */ n("div", {
1627
1651
  className: Z.body,
1628
1652
  children: [
@@ -1643,15 +1667,26 @@ var w = {
1643
1667
  size: "sm",
1644
1668
  "aria-label": "Закрыть уведомление",
1645
1669
  onClick: () => r(e.id),
1646
- children: "×"
1670
+ children: /* @__PURE__ */ n("svg", {
1671
+ xmlns: "http://www.w3.org/2000/svg",
1672
+ width: "24",
1673
+ height: "24",
1674
+ viewBox: "0 0 24 24",
1675
+ fill: "none",
1676
+ stroke: "currentColor",
1677
+ strokeWidth: "2",
1678
+ strokeLinecap: "round",
1679
+ strokeLinejoin: "round",
1680
+ children: [/* @__PURE__ */ t("path", { d: "M18 6 6 18" }), /* @__PURE__ */ t("path", { d: "m6 6 12 12" })]
1681
+ })
1647
1682
  })
1648
1683
  ]
1649
1684
  });
1650
- }, nt = 0, Q = _((e) => ({
1685
+ }, $e = 0, Q = _((e) => ({
1651
1686
  toasts: [],
1652
1687
  showToast: (t) => {
1653
- nt += 1;
1654
- let n = `ds-toast-${nt}`;
1688
+ $e += 1;
1689
+ let n = `ds-toast-${$e}`;
1655
1690
  return e((e) => ({ toasts: [...e.toasts, {
1656
1691
  variant: "info",
1657
1692
  duration: 5e3,
@@ -1662,17 +1697,17 @@ var w = {
1662
1697
  },
1663
1698
  removeToast: (t) => e((e) => ({ toasts: e.toasts.filter((e) => e.id !== t) })),
1664
1699
  clearToasts: () => e({ toasts: [] })
1665
- })), rt = () => Q.setState({ toasts: [] }), it = ({ position: e = "top-right" }) => {
1700
+ })), et = () => Q.setState({ toasts: [] }), tt = ({ position: e = "top-right" }) => {
1666
1701
  let n = Q((e) => e.toasts), r = Q((e) => e.removeToast);
1667
1702
  return /* @__PURE__ */ t("div", {
1668
1703
  className: `${Z.viewport} ${Z[e]}`,
1669
1704
  "aria-label": "Уведомления",
1670
- children: n.map((e) => /* @__PURE__ */ t(tt, {
1705
+ children: n.map((e) => /* @__PURE__ */ t(Qe, {
1671
1706
  toast: e,
1672
1707
  onClose: r
1673
1708
  }, e.id))
1674
1709
  });
1675
- }, at = () => {
1710
+ }, nt = () => {
1676
1711
  let e = Q((e) => e.showToast), t = Q((e) => e.removeToast), n = Q((e) => e.clearToasts), r = o((t) => e({
1677
1712
  ...t,
1678
1713
  variant: "info"
@@ -1703,7 +1738,7 @@ var w = {
1703
1738
  i,
1704
1739
  a
1705
1740
  ]);
1706
- }, ot = {
1741
+ }, rt = {
1707
1742
  root: "_root_s9o0g_1",
1708
1743
  tooltip: "_tooltip_s9o0g_3",
1709
1744
  "ds-tooltip-in": "_ds-tooltip-in_s9o0g_1",
@@ -1711,7 +1746,7 @@ var w = {
1711
1746
  bottom: "_bottom_s9o0g_7",
1712
1747
  left: "_left_s9o0g_9",
1713
1748
  right: "_right_s9o0g_11"
1714
- }, st = ({ content: e, children: i, placement: o = "top", delay: l = 450, disabled: f = !1, maxWidth: p = 280, className: m = "" }) => {
1749
+ }, it = ({ content: e, children: i, placement: o = "top", delay: l = 450, disabled: f = !1, maxWidth: p = 280, className: m = "" }) => {
1715
1750
  let h = c(), [g, _] = d(!1), v = u(null), y = () => {
1716
1751
  f || !e || (v.current = setTimeout(() => _(!0), l));
1717
1752
  }, b = () => {
@@ -1733,12 +1768,12 @@ var w = {
1733
1768
  onBlur: b
1734
1769
  });
1735
1770
  return /* @__PURE__ */ n("span", {
1736
- className: `${ot.root} ${m}`,
1771
+ className: `${rt.root} ${m}`,
1737
1772
  onPointerDown: g ? b : y,
1738
1773
  children: [x, g && /* @__PURE__ */ t("span", {
1739
1774
  id: h,
1740
1775
  role: "tooltip",
1741
- className: `${ot.tooltip} ${ot[o]}`,
1776
+ className: `${rt.tooltip} ${rt[o]}`,
1742
1777
  style: { maxWidth: p },
1743
1778
  children: e
1744
1779
  })]
@@ -1750,7 +1785,7 @@ var w = {
1750
1785
  overlay: "_overlay_1ue3g_7",
1751
1786
  error: "_error_1ue3g_7",
1752
1787
  caption: "_caption_1ue3g_13"
1753
- }, ct = ({ sources: e, tracks: r = [], title: i, aspectRatio: a = "16 / 9", objectFit: o = "contain", loading: s = !1, error: c, fallback: l, className: u = "", controls: f = !0, playsInline: p = !0, ...m }) => {
1788
+ }, at = ({ sources: e, tracks: r = [], title: i, aspectRatio: a = "16 / 9", objectFit: o = "contain", loading: s = !1, error: c, fallback: l, className: u = "", controls: f = !0, playsInline: p = !0, ...m }) => {
1754
1789
  let [h, g] = d(!1), _ = c ?? (h ? "Не удалось воспроизвести видео" : void 0);
1755
1790
  return /* @__PURE__ */ n("figure", {
1756
1791
  className: `${$.root} ${u}`,
@@ -1787,4 +1822,4 @@ var w = {
1787
1822
  });
1788
1823
  };
1789
1824
  //#endregion
1790
- export { Be as ConfirmModal, y as DSBadge, C as DSButton, O as DSCheckbox, _e as DSDataTable, B as DSDateRange, L as DSDateTimePicker, U as DSDropDown, ve as DSDropDownMultiple, T as DSFieldLabel, E as DSFieldMessage, ke as DSFileInput, Te as DSFilters, be as DSIcon, xe as DSInfoBlock, Se as DSInput, x as DSLoader, Pe as DSModal, Ne as DSModalFrame, Xe as DSPageLoader, Ce as DSRadioButton, re as DSSkeleton, oe as DSSort, et as DSTimePeriodPicker, tt as DSToast, it as DSToastProvider, st as DSTooltip, ct as DSVideoPlayerFrame, $e as DS_PERIOD_TYPE_CODES, Ve as ErrorModal, Fe as ModalSystemProvider, He as builtInModalRegistry, Ie as defineModalRegistry, P as formatDateTimeLocalValue, We as getErrorMessage, ie as getNextEnabledOptionIndex, z as isValidDateRange, F as parseDateTimeLocalValue, je as resetModalStore, rt as resetToastStore, Ue as useConfirmModal, Ke as useConfirmModalStore, Ge as useErrorModal, qe as useErrorModalStore, Je as useModals, Y as useModalsStore, at as useToast, Q as useToastStore, ce as validateDSDataTableData };
1825
+ export { Be as ConfirmModal, y as DSBadge, C as DSButton, O as DSCheckbox, _e as DSDataTable, B as DSDateRange, ne as DSDateTimePicker, ie as DSDropDown, ve as DSDropDownMultiple, T as DSFieldLabel, E as DSFieldMessage, ke as DSFileInput, Te as DSFilters, be as DSIcon, xe as DSInfoBlock, Se as DSInput, x as DSLoader, Pe as DSModal, Ne as DSModalFrame, Xe as DSPageLoader, Ce as DSRadioButton, H as DSSkeleton, oe as DSSort, Qe as DSToast, tt as DSToastProvider, it as DSTooltip, at as DSVideoPlayerFrame, Ve as ErrorModal, Fe as ModalSystemProvider, He as builtInModalRegistry, Ie as defineModalRegistry, P as formatDateTimeLocalValue, We as getErrorMessage, re as getNextEnabledOptionIndex, z as isValidDateRange, F as parseDateTimeLocalValue, je as resetModalStore, et as resetToastStore, Ue as useConfirmModal, Ke as useConfirmModalStore, Ge as useErrorModal, qe as useErrorModalStore, Je as useModals, Y as useModalsStore, nt as useToast, Q as useToastStore, ce as validateDSDataTableData };
package/dist/style.css CHANGED
@@ -1,2 +1,2 @@
1
- :root{--color-primary:#179cf0;--color-secondary:var(--color-text);--color-text-light:var(--color-surface);--color-text-dark:var(--color-primary);--color-text:#22252b;--color-inactive:#9ca3af;--color-success:#179c66;--color-warning:#f59e0b;--color-error:#dc2626;--color-background-disabled:#dbcff1;--color-surface:#fff;--color-border:#d9dee7;--color-text-secondary:#6b7280;--color-focus-ring:color-mix(in srgb, var(--color-primary) 18%, transparent);--color-neutral-surface:#f1f3f6;--color-neutral-text:#4b5563;--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:#e9edf3;--color-skeleton-highlight:#f5f7fa;--shadow-floating:0 8px 24px #0000002e;--z-dropdown:1000;--z-tooltip:1100;--z-modal:1200;--z-toast:1300;--ds-dropdown-menu-max-height:240px;--gap-s:8px;--gap-m:16px;--gap-l:20px;--text-size-s:14px;--text-size-m:16px;--text-size-l:32px;--border-radius:10px;--height-s:30px;--height-m:44px;--height-l:70px}._badge_1pk53_1{border-radius:999px;align-items:center;gap:6px;max-width:100%;font-size:12px;font-weight:600;line-height:1;display:inline-flex}._sm_1pk53_3{min-height:20px;padding:0 7px}._md_1pk53_5{min-height:24px;padding:0 9px}._neutral_1pk53_7{background:var(--color-neutral-surface);color:var(--color-neutral-text)}._info_1pk53_9{background:var(--color-info-surface);color:var(--color-info-text)}._success_1pk53_11{background:var(--color-success-surface);color:var(--color-success-text)}._warning_1pk53_13{background:var(--color-warning-surface);color:var(--color-warning-text)}._error_1pk53_15{background:var(--color-error-surface);color:var(--color-error-text)}._dot_1pk53_17{background:currentColor;border-radius:50%;width:6px;height:6px}._icon_1pk53_19{display:inline-flex}._label_1pk53_21{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._loader_1tjcf_1{border:2px solid;border-right-color:#0000;border-radius:50%;width:20px;height:20px;animation:.7s linear infinite _ds-spin_1tjcf_1;display:inline-block}._primary_1tjcf_21{color:var(--color-primary)}._secondary_1tjcf_23{color:var(--color-text)}._light_1tjcf_25{color:var(--color-surface)}._danger_1tjcf_27{color:var(--color-error)}@keyframes _ds-spin_1tjcf_1{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){._loader_1tjcf_1{animation-duration:1.5s}}._button_1jisp_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;transition:background .15s,box-shadow .15s,color .15s;display:inline-flex}._button_1jisp_1:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._button_1jisp_1:disabled{opacity:.55;cursor:not-allowed}._sm_1jisp_31{min-height:var(--height-s);padding:4px 10px;font-size:12px}._md_1jisp_33{min-height:var(--height-m);font-size:var(--text-size-s);padding:8px 16px}._lg_1jisp_35{min-height:52px;font-size:var(--text-size-m);padding:12px 20px}._primary_1jisp_37{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._secondary_1jisp_39{background:var(--color-secondary,var(--color-text));color:var(--color-text-dark,var(--color-primary))}._outline_1jisp_41{border-color:var(--color-primary);color:var(--color-primary);background:0 0}._ghost_1jisp_45{border-color:color-mix(in srgb, var(--color-primary) 20%, transparent);background:color-mix(in srgb, var(--color-primary) 20%, transparent);color:var(--color-primary)}._empty_1jisp_57{color:var(--color-primary);background:0 0;border-color:#0000}._destructive_1jisp_67{background:var(--color-error);color:var(--color-surface)}._destructiveOutline_1jisp_69{border-color:var(--color-error);color:var(--color-error);background:0 0}._button_1jisp_1:hover:not(:disabled){filter:brightness(.96)}._ghost_1jisp_45:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 25%, transparent);filter:none}._ghost_1jisp_45:active:not(:disabled){background:color-mix(in srgb, var(--color-primary) 30%, transparent);filter:none}._empty_1jisp_57:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 10%, transparent);filter:none}._empty_1jisp_57:active:not(:disabled){background:color-mix(in srgb, var(--color-primary) 16%, transparent);filter:none}._label_1lsqq_1{width:fit-content;color:var(--color-text);font-size:var(--text-size-s);align-items:baseline;gap:4px;font-weight:600;line-height:1.4;display:inline-flex}._required_1lsqq_23,._error_1lsqq_25{color:var(--color-error)}._optional_1lsqq_33,._hint_1lsqq_35{color:var(--color-text-secondary);font-size:12px;font-weight:400}._disabled_1lsqq_47{color:var(--color-inactive)}._message_1lsqq_55{align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;display:flex}._success_1lsqq_71{color:var(--color-success)}._wrapper_1gq36_1{gap:var(--gap-s);flex-direction:column;display:flex}._label_1gq36_3{width:fit-content;color:var(--color-text);font-size:var(--text-size-s);cursor:pointer;align-items:center;gap:10px;font-weight:600;display:inline-flex}._input_1gq36_5{opacity:0;width:1px;height:1px;position:absolute}._control_1gq36_7{border:1px solid var(--color-primary);background:var(--color-surface);width:20px;height:20px;color:var(--color-surface);border-radius:6px;flex:none;place-items:center;display:grid}._input_1gq36_5:checked+._control_1gq36_7,._input_1gq36_5:indeterminate+._control_1gq36_7{background:var(--color-primary)}._input_1gq36_5:focus-visible+._control_1gq36_7{box-shadow:0 0 0 4px var(--color-focus-ring)}._disabled_1gq36_13{color:var(--color-inactive);cursor:not-allowed}._disabled_1gq36_13 ._control_1gq36_7{opacity:.55}._controlError_1gq36_17{border-color:var(--color-error)}._wrapper_1528c_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex;position:relative}._trigger_1528c_17{width:100%;min-height:var(--height-m);border:1px solid var(--color-primary);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:10px 14px;display:flex}._trigger_1528c_17:focus-visible,._nav_1528c_53:focus-visible,._day_1528c_55:focus-visible,._monthSelect_1528c_57:focus-visible,._yearInput_1528c_59:focus-visible,._timeInput_1528c_61:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._trigger_1528c_17:disabled{border-color:var(--color-background-disabled);color:var(--color-inactive);cursor:not-allowed;background:#e9e9e9}._value_1528c_85{color:var(--color-text)}._placeholder_1528c_93{color:var(--color-text-secondary)}._error_1528c_101{border-color:var(--color-error)}._panel_1528c_109{z-index:var(--z-dropdown);width:min(360px,100vw - 32px);padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);box-shadow:var(--shadow-floating);position:absolute;top:calc(100% + 6px);left:0}._calendarHeader_1528c_135{grid-template-columns:36px minmax(110px,1fr) 84px 36px;align-items:center;gap:6px;margin-bottom:12px;display:grid}._nav_1528c_53,._day_1528c_55{color:var(--color-text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px}._nav_1528c_53{min-height:36px;font-size:22px}._nav_1528c_53:hover,._day_1528c_55:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._monthSelect_1528c_57,._yearInput_1528c_59,._timeInput_1528c_61{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_1528c_57,._yearInput_1528c_59{padding:6px 8px}._weekdays_1528c_225,._days_1528c_227{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}._weekdays_1528c_225{color:var(--color-text-secondary);text-align:center;margin-bottom:4px;font-size:12px}._day_1528c_55{aspect-ratio:1;min-width:32px}._outside_1528c_263{color:var(--color-inactive)}._selected_1528c_271{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._day_1528c_55:disabled{opacity:.35;cursor:not-allowed}._timeLabel_1528c_291{gap:var(--gap-s);margin-top:var(--gap-m);color:var(--color-text);font-size:var(--text-size-s);font-weight:600;display:grid}._timeInput_1528c_61{padding:8px 12px}@media (width<400px){._panel_1528c_109{padding:12px;left:auto;right:0}._calendarHeader_1528c_135{grid-template-columns:32px minmax(96px,1fr) 76px 32px}}._root_1q42e_1{gap:var(--gap-s);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_1q42e_3{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_1q42e_5{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_1q42e_5{grid-template-columns:1fr}}._group_1fs9e_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._skeleton_1fs9e_3{background:var(--color-skeleton-base);display:block;overflow:hidden}._text_1fs9e_5{border-radius:4px;height:14px}._rectangular_1fs9e_7{border-radius:var(--border-radius);min-height:44px}._circular_1fs9e_9{border-radius:50%;width:40px;height:40px}._animated_1fs9e_11{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_1fs9e_1}@keyframes _ds-skeleton_1fs9e_1{to{background-position-x:-200%}}@media (prefers-reduced-motion:reduce){._animated_1fs9e_11{background-image:none;animation:none}}._wrapper_dkn63_1{gap:var(--gap-s);width:100%;color:var(--color-text);flex-direction:column;display:flex}._label_dkn63_17{font-size:var(--text-size-s);font-weight:600;line-height:1.4}._container_dkn63_29{position:relative}._trigger_dkn63_37,._disabledText_dkn63_39{width:100%;min-height:var(--height-m);border:1px solid var(--color-primary);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:10px 14px}._trigger_dkn63_37{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;display:flex}._trigger_dkn63_37:hover:not(:disabled){box-shadow:0 0 0 3px #179cf01f}._trigger_dkn63_37:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._trigger_dkn63_37:disabled,._disabledText_dkn63_39{border-color:var(--color-background-disabled);cursor:not-allowed;background:#e9e9e9}._value_dkn63_109,._placeholder_dkn63_111{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--text-size-s);text-align:left;overflow:hidden}._placeholder_dkn63_111{color:var(--color-text-secondary)}._chevron_dkn63_137{color:#22252b;flex-shrink:0;width:20px;height:20px;transition:transform .2s}._chevron_dkn63_137 svg{width:100%;height:100%}._chevronOpen_dkn63_163{transform:rotate(180deg)}._menu_dkn63_171{z-index:20;width:100%;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);margin:0;padding:0;list-style:none;position:absolute;top:calc(100% + 6px);left:0;overflow-y:auto;box-shadow:0 8px 24px #0000002e}._option_dkn63_207{width:100%;min-height:40px;color:var(--color-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}._option_dkn63_207:hover:not(:disabled),._option_dkn63_207:focus-visible,._selected_dkn63_245{background:#179cf01f;outline:none}._option_dkn63_207:disabled{opacity:.5;cursor:not-allowed}._message_dkn63_265,._error_dkn63_267{font-size:12px;line-height:1.4}._message_dkn63_265{color:var(--color-text-secondary)}._error_dkn63_267{color:var(--color-error)}._errorState_dkn63_293 ._trigger_dkn63_37{border-color:var(--color-error)}._root_1h9ti_1{gap:var(--gap-m);width:100%;color:var(--color-text);display:grid}._tableWrap_1h9ti_3{border:1px solid var(--color-border);border-radius:var(--border-radius);overflow:auto}._table_1h9ti_3{border-collapse:collapse;background:var(--color-surface);width:100%}._table_1h9ti_3 caption{padding:var(--gap-s);text-align:left;font-weight:600}._table_1h9ti_3 th,._table_1h9ti_3 td{min-height:var(--height-m);padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);text-align:left}._table_1h9ti_3 tbody tr:last-child td{border-bottom:0}._table_1h9ti_3 tbody tr:hover{background:var(--color-info-surface)}._sticky_1h9ti_15{z-index:1;background:var(--color-surface);position:sticky;top:0}._sortButton_1h9ti_17{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_1h9ti_17:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}._state_1h9ti_21{padding:var(--gap-l);color:var(--color-text-secondary);text-align:center}._cards_1h9ti_23,._mobileSort_1h9ti_23{display:none}._card_1h9ti_23{padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);gap:12px;display:grid}._card_1h9ti_23 h3{font-size:var(--text-size-m);margin:0}._card_1h9ti_23 dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}._card_1h9ti_23 dt{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px}._card_1h9ti_23 dd{overflow-wrap:anywhere;font-size:var(--text-size-s);margin:4px 0 0}._card_1h9ti_23 footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:12px;display:flex}._spanTwo_1h9ti_37{grid-column:span 2}@media (width<640px){._default_1h9ti_41:not(._tableOnMobile_1h9ti_41) ._tableWrap_1h9ti_3{display:none}._default_1h9ti_41:not(._tableOnMobile_1h9ti_41) ._cards_1h9ti_23{gap:12px;display:grid}._default_1h9ti_41:not(._tableOnMobile_1h9ti_41) ._mobileSort_1h9ti_23{display:block}}@media (width<1280px){._wide_1h9ti_45:not(._tableOnMobile_1h9ti_41) ._tableWrap_1h9ti_3{display:none}._wide_1h9ti_45:not(._tableOnMobile_1h9ti_41) ._cards_1h9ti_23{gap:12px;display:grid}._wide_1h9ti_45:not(._tableOnMobile_1h9ti_41) ._mobileSort_1h9ti_23{display:block}}._root_1y2s8_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_1y2s8_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_1y2s8_41{font-size:var(--text-size-m);margin:0;font-weight:600;line-height:1.4}._dismiss_1y2s8_55{width:32px;height:32px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;place-items:center;padding:0;display:grid}._dismiss_1y2s8_55:hover{color:var(--color-text);background:#22252b12}._dismiss_1y2s8_55:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._dismiss_1y2s8_55 svg{width:20px;height:20px}._content_1y2s8_113{padding:var(--gap-m);font-size:var(--text-size-s);line-height:1.5}._wrapper_1tz82_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_1tz82_3{display:flex;position:relative}._input_1tz82_5,._disabledText_1tz82_5{width:100%;min-height:var(--height-m);max-height:var(--height-m);height:var(--height-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);padding:10px 14px}._input_1tz82_5:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._input_1tz82_5:disabled,._disabledText_1tz82_5{color:var(--color-inactive);background:#e9e9e9}._inputError_1tz82_11{border-color:var(--color-error)}._input_1tz82_5:has(+._trailingAction_1tz82_13){padding-right:52px}._trailingAction_1tz82_13{width:44px;height:44px;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_1tz82_13:hover:not(:disabled){color:var(--color-primary);background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._trailingAction_1tz82_13:disabled{cursor:not-allowed;opacity:.55}._trailingAction_1tz82_13:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._trailingAction_1tz82_13 svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}._wrapper_vu1ob_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_vu1ob_21{opacity:0;width:1px;height:1px;position:absolute}._switch_vu1ob_35{border:1px solid var(--color-inactive);background:var(--color-inactive);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_vu1ob_67{background:var(--color-surface);border-radius:50%;width:18px;height:18px;transition:transform .2s;box-shadow:0 1px 3px #00000040}._input_vu1ob_21:checked+._switch_vu1ob_35{border-color:var(--color-primary);background:var(--color-primary)}._input_vu1ob_21:checked+._switch_vu1ob_35 ._thumb_vu1ob_67{transform:translate(18px)}._input_vu1ob_21:focus-visible+._switch_vu1ob_35{box-shadow:0 0 0 4px var(--color-focus-ring)}._label_vu1ob_111{font-size:var(--text-size-s);font-weight:600;line-height:1.4}._disabled_vu1ob_123{color:var(--color-inactive);cursor:not-allowed}._disabled_vu1ob_123 ._switch_vu1ob_35{opacity:.55}._root_kepgo_1{gap:var(--gap-m);width:100%;display:grid}._grid_kepgo_3{gap:var(--gap-m);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:center;display:grid}._actions_kepgo_5{justify-content:flex-end;gap:var(--gap-s);display:flex}@media (width<640px){._grid_kepgo_3{grid-template-columns:1fr}._actions_kepgo_5>*{flex:1}}._wrapper_1ymdr_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._dropzone_1ymdr_3{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_1ymdr_5{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_1ymdr_7{background:var(--color-neutral-surface);opacity:.6}._error_1ymdr_9{border-color:var(--color-error)}._nativeInput_1ymdr_11{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}._empty_1ymdr_13{align-items:center;gap:var(--gap-s);text-align:center;flex-direction:column;display:flex}._uploadIcon_1ymdr_15{background:var(--color-info-surface);width:40px;height:40px;color:var(--color-primary);border-radius:50%;place-items:center;font-size:24px;display:grid}._browseButton_1ymdr_17{color:var(--color-text)}._files_1ymdr_19{gap:var(--gap-s);flex-direction:column;width:100%;margin:0;padding:0;list-style:none;display:flex}._file_1ymdr_19{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_1ymdr_23{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._fileSize_1ymdr_25{color:var(--color-text-secondary);font-size:var(--text-size-s);white-space:nowrap}@media (width<640px){._dropzone_1ymdr_3{min-height:148px;padding:var(--gap-m)}}._layer_1nb2z_1{z-index:var(--z-modal);pointer-events:none;position:fixed;inset:0}._backdrop_1nb2z_3{padding:var(--gap-m);pointer-events:auto;background:#0000007a;place-items:center;display:grid;position:absolute;inset:0}._panel_1nb2z_5{border-radius:var(--border-radius);background:var(--color-surface);width:min(560px,100%);max-height:calc(100vh - 32px);color:var(--color-text);box-shadow:var(--shadow-floating);overflow-y:auto}._panel_1nb2z_5:focus{outline:none}._header_1nb2z_9{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_1nb2z_11{margin:0;font-size:20px;line-height:1.3}._description_1nb2z_13{padding:var(--gap-m) var(--gap-m) 0;color:var(--color-text-secondary);font-size:var(--text-size-s);margin:0}._content_1nb2z_15{padding:var(--gap-m)}._message_1vtru_1{color:var(--color-text);margin:0;line-height:1.5}._actions_1vtru_3{justify-content:flex-end;gap:var(--gap-s);margin-top:var(--gap-l);display:flex}@media (width<480px){._actions_1vtru_3{flex-direction:column-reverse}}._root_1x7h7_1{justify-content:center;align-items:center;gap:var(--gap-s);min-height:160px;color:var(--color-text-secondary);font-size:var(--text-size-s);display:flex}._root_elask_1{gap:var(--gap-m);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_elask_3{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_elask_5{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_elask_5{grid-template-columns:1fr}}._viewport_15mi5_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_15mi5_3{top:16px;right:16px}._top-left_15mi5_5{top:16px;left:16px}._bottom-right_15mi5_7{bottom:16px;right:16px}._bottom-left_15mi5_9{bottom:16px;left:16px}._toast_15mi5_11{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_15mi5_13{min-width:0;font-size:var(--text-size-s);flex-direction:column;flex:1;gap:6px;line-height:1.4;display:flex}._icon_15mi5_15{flex:none;width:20px;height:20px}._info_15mi5_17{border-left-color:var(--color-primary)}._success_15mi5_19{border-left-color:var(--color-success)}._warning_15mi5_21{border-left-color:var(--color-warning)}._error_15mi5_23{border-left-color:var(--color-error)}._root_s9o0g_1{display:inline-flex;position:relative}._tooltip_s9o0g_3{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_s9o0g_1;position:absolute;box-shadow:0 6px 18px #0000002e}._top_s9o0g_5{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._bottom_s9o0g_7{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._left_s9o0g_9{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._right_s9o0g_11{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}@keyframes _ds-tooltip-in_s9o0g_1{0%{opacity:0}}@media (prefers-reduced-motion:reduce){._tooltip_s9o0g_3{animation:none}}._root_1ue3g_1{gap:var(--gap-s);width:100%;margin:0;display:grid}._frame_1ue3g_3{border-radius:var(--border-radius);background:#000;width:100%;position:relative;overflow:hidden}._video_1ue3g_5{width:100%;height:100%;display:block}._overlay_1ue3g_7,._error_1ue3g_7{padding:var(--gap-m);text-align:center;place-items:center;display:grid;position:absolute;inset:0}._overlay_1ue3g_7{color:#fff;background:#00000073}._error_1ue3g_7{background:var(--color-error-surface);color:var(--color-error-text)}._caption_1ue3g_13{color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._frame_1ue3g_3:fullscreen{border-radius:0}
1
+ :root{--color-primary:#179cf0;--color-secondary:var(--color-text);--color-text-light:var(--color-surface);--color-text-dark:var(--color-primary);--color-text:#22252b;--color-inactive:#9ca3af;--color-success:#179c66;--color-warning:#f59e0b;--color-error:#dc2626;--color-background-disabled:#dbcff1;--color-surface:#fff;--color-border:#d9dee7;--color-text-secondary:#6b7280;--color-focus-ring:color-mix(in srgb, var(--color-primary) 18%, transparent);--color-neutral-surface:#f1f3f6;--color-neutral-text:#4b5563;--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:#e9edf3;--color-skeleton-highlight:#f5f7fa;--shadow-floating:0 8px 24px #0000002e;--z-dropdown:1000;--z-tooltip:1100;--z-modal:1200;--z-toast:1300;--ds-dropdown-menu-max-height:240px;--gap-s:8px;--gap-m:16px;--gap-l:20px;--text-size-s:14px;--text-size-m:16px;--text-size-l:32px;--border-radius:10px;--height-s:30px;--height-m:44px;--height-l:70px}._badge_1pk53_1{border-radius:999px;align-items:center;gap:6px;max-width:100%;font-size:12px;font-weight:600;line-height:1;display:inline-flex}._sm_1pk53_3{min-height:20px;padding:0 7px}._md_1pk53_5{min-height:24px;padding:0 9px}._neutral_1pk53_7{background:var(--color-neutral-surface);color:var(--color-neutral-text)}._info_1pk53_9{background:var(--color-info-surface);color:var(--color-info-text)}._success_1pk53_11{background:var(--color-success-surface);color:var(--color-success-text)}._warning_1pk53_13{background:var(--color-warning-surface);color:var(--color-warning-text)}._error_1pk53_15{background:var(--color-error-surface);color:var(--color-error-text)}._dot_1pk53_17{background:currentColor;border-radius:50%;width:6px;height:6px}._icon_1pk53_19{display:inline-flex}._label_1pk53_21{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._loader_1tjcf_1{border:2px solid;border-right-color:#0000;border-radius:50%;width:20px;height:20px;animation:.7s linear infinite _ds-spin_1tjcf_1;display:inline-block}._primary_1tjcf_21{color:var(--color-primary)}._secondary_1tjcf_23{color:var(--color-text)}._light_1tjcf_25{color:var(--color-surface)}._danger_1tjcf_27{color:var(--color-error)}@keyframes _ds-spin_1tjcf_1{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){._loader_1tjcf_1{animation-duration:1.5s}}._button_1jisp_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;transition:background .15s,box-shadow .15s,color .15s;display:inline-flex}._button_1jisp_1:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._button_1jisp_1:disabled{opacity:.55;cursor:not-allowed}._sm_1jisp_31{min-height:var(--height-s);padding:4px 10px;font-size:12px}._md_1jisp_33{min-height:var(--height-m);font-size:var(--text-size-s);padding:8px 16px}._lg_1jisp_35{min-height:52px;font-size:var(--text-size-m);padding:12px 20px}._primary_1jisp_37{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._secondary_1jisp_39{background:var(--color-secondary,var(--color-text));color:var(--color-text-dark,var(--color-primary))}._outline_1jisp_41{border-color:var(--color-primary);color:var(--color-primary);background:0 0}._ghost_1jisp_45{border-color:color-mix(in srgb, var(--color-primary) 20%, transparent);background:color-mix(in srgb, var(--color-primary) 20%, transparent);color:var(--color-primary)}._empty_1jisp_57{color:var(--color-primary);background:0 0;border-color:#0000}._destructive_1jisp_67{background:var(--color-error);color:var(--color-surface)}._destructiveOutline_1jisp_69{border-color:var(--color-error);color:var(--color-error);background:0 0}._button_1jisp_1:hover:not(:disabled){filter:brightness(.96)}._ghost_1jisp_45:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 25%, transparent);filter:none}._ghost_1jisp_45:active:not(:disabled){background:color-mix(in srgb, var(--color-primary) 30%, transparent);filter:none}._empty_1jisp_57:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 10%, transparent);filter:none}._empty_1jisp_57:active:not(:disabled){background:color-mix(in srgb, var(--color-primary) 16%, transparent);filter:none}._label_1lsqq_1{width:fit-content;color:var(--color-text);font-size:var(--text-size-s);align-items:baseline;gap:4px;font-weight:600;line-height:1.4;display:inline-flex}._required_1lsqq_23,._error_1lsqq_25{color:var(--color-error)}._optional_1lsqq_33,._hint_1lsqq_35{color:var(--color-text-secondary);font-size:12px;font-weight:400}._disabled_1lsqq_47{color:var(--color-inactive)}._message_1lsqq_55{align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;display:flex}._success_1lsqq_71{color:var(--color-success)}._wrapper_1gq36_1{gap:var(--gap-s);flex-direction:column;display:flex}._label_1gq36_3{width:fit-content;color:var(--color-text);font-size:var(--text-size-s);cursor:pointer;align-items:center;gap:10px;font-weight:600;display:inline-flex}._input_1gq36_5{opacity:0;width:1px;height:1px;position:absolute}._control_1gq36_7{border:1px solid var(--color-primary);background:var(--color-surface);width:20px;height:20px;color:var(--color-surface);border-radius:6px;flex:none;place-items:center;display:grid}._input_1gq36_5:checked+._control_1gq36_7,._input_1gq36_5:indeterminate+._control_1gq36_7{background:var(--color-primary)}._input_1gq36_5:focus-visible+._control_1gq36_7{box-shadow:0 0 0 4px var(--color-focus-ring)}._disabled_1gq36_13{color:var(--color-inactive);cursor:not-allowed}._disabled_1gq36_13 ._control_1gq36_7{opacity:.55}._controlError_1gq36_17{border-color:var(--color-error)}._wrapper_1528c_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex;position:relative}._trigger_1528c_17{width:100%;min-height:var(--height-m);border:1px solid var(--color-primary);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:10px 14px;display:flex}._trigger_1528c_17:focus-visible,._nav_1528c_53:focus-visible,._day_1528c_55:focus-visible,._monthSelect_1528c_57:focus-visible,._yearInput_1528c_59:focus-visible,._timeInput_1528c_61:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._trigger_1528c_17:disabled{border-color:var(--color-background-disabled);color:var(--color-inactive);cursor:not-allowed;background:#e9e9e9}._value_1528c_85{color:var(--color-text)}._placeholder_1528c_93{color:var(--color-text-secondary)}._error_1528c_101{border-color:var(--color-error)}._panel_1528c_109{z-index:var(--z-dropdown);width:min(360px,100vw - 32px);padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);box-shadow:var(--shadow-floating);position:absolute;top:calc(100% + 6px);left:0}._calendarHeader_1528c_135{grid-template-columns:36px minmax(110px,1fr) 84px 36px;align-items:center;gap:6px;margin-bottom:12px;display:grid}._nav_1528c_53,._day_1528c_55{color:var(--color-text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px}._nav_1528c_53{min-height:36px;font-size:22px}._nav_1528c_53:hover,._day_1528c_55:hover:not(:disabled){background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._monthSelect_1528c_57,._yearInput_1528c_59,._timeInput_1528c_61{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_1528c_57,._yearInput_1528c_59{padding:6px 8px}._weekdays_1528c_225,._days_1528c_227{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}._weekdays_1528c_225{color:var(--color-text-secondary);text-align:center;margin-bottom:4px;font-size:12px}._day_1528c_55{aspect-ratio:1;min-width:32px}._outside_1528c_263{color:var(--color-inactive)}._selected_1528c_271{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._day_1528c_55:disabled{opacity:.35;cursor:not-allowed}._timeLabel_1528c_291{gap:var(--gap-s);margin-top:var(--gap-m);color:var(--color-text);font-size:var(--text-size-s);font-weight:600;display:grid}._timeInput_1528c_61{padding:8px 12px}@media (width<400px){._panel_1528c_109{padding:12px;left:auto;right:0}._calendarHeader_1528c_135{grid-template-columns:32px minmax(96px,1fr) 76px 32px}}._root_1q42e_1{gap:var(--gap-s);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_1q42e_3{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_1q42e_5{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_1q42e_5{grid-template-columns:1fr}}._group_1fs9e_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._skeleton_1fs9e_3{background:var(--color-skeleton-base);display:block;overflow:hidden}._text_1fs9e_5{border-radius:4px;height:14px}._rectangular_1fs9e_7{border-radius:var(--border-radius);min-height:44px}._circular_1fs9e_9{border-radius:50%;width:40px;height:40px}._animated_1fs9e_11{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_1fs9e_1}@keyframes _ds-skeleton_1fs9e_1{to{background-position-x:-200%}}@media (prefers-reduced-motion:reduce){._animated_1fs9e_11{background-image:none;animation:none}}._wrapper_dkn63_1{gap:var(--gap-s);width:100%;color:var(--color-text);flex-direction:column;display:flex}._label_dkn63_17{font-size:var(--text-size-s);font-weight:600;line-height:1.4}._container_dkn63_29{position:relative}._trigger_dkn63_37,._disabledText_dkn63_39{width:100%;min-height:var(--height-m);border:1px solid var(--color-primary);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:10px 14px}._trigger_dkn63_37{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;display:flex}._trigger_dkn63_37:hover:not(:disabled){box-shadow:0 0 0 3px #179cf01f}._trigger_dkn63_37:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._trigger_dkn63_37:disabled,._disabledText_dkn63_39{border-color:var(--color-background-disabled);cursor:not-allowed;background:#e9e9e9}._value_dkn63_109,._placeholder_dkn63_111{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--text-size-s);text-align:left;overflow:hidden}._placeholder_dkn63_111{color:var(--color-text-secondary)}._chevron_dkn63_137{color:#22252b;flex-shrink:0;width:20px;height:20px;transition:transform .2s}._chevron_dkn63_137 svg{width:100%;height:100%}._chevronOpen_dkn63_163{transform:rotate(180deg)}._menu_dkn63_171{z-index:20;width:100%;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);margin:0;padding:0;list-style:none;position:absolute;top:calc(100% + 6px);left:0;overflow-y:auto;box-shadow:0 8px 24px #0000002e}._option_dkn63_207{width:100%;min-height:40px;color:var(--color-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}._option_dkn63_207:hover:not(:disabled),._option_dkn63_207:focus-visible,._selected_dkn63_245{background:#179cf01f;outline:none}._option_dkn63_207:disabled{opacity:.5;cursor:not-allowed}._message_dkn63_265,._error_dkn63_267{font-size:12px;line-height:1.4}._message_dkn63_265{color:var(--color-text-secondary)}._error_dkn63_267{color:var(--color-error)}._errorState_dkn63_293 ._trigger_dkn63_37{border-color:var(--color-error)}._root_1h9ti_1{gap:var(--gap-m);width:100%;color:var(--color-text);display:grid}._tableWrap_1h9ti_3{border:1px solid var(--color-border);border-radius:var(--border-radius);overflow:auto}._table_1h9ti_3{border-collapse:collapse;background:var(--color-surface);width:100%}._table_1h9ti_3 caption{padding:var(--gap-s);text-align:left;font-weight:600}._table_1h9ti_3 th,._table_1h9ti_3 td{min-height:var(--height-m);padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);text-align:left}._table_1h9ti_3 tbody tr:last-child td{border-bottom:0}._table_1h9ti_3 tbody tr:hover{background:var(--color-info-surface)}._sticky_1h9ti_15{z-index:1;background:var(--color-surface);position:sticky;top:0}._sortButton_1h9ti_17{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_1h9ti_17:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}._state_1h9ti_21{padding:var(--gap-l);color:var(--color-text-secondary);text-align:center}._cards_1h9ti_23,._mobileSort_1h9ti_23{display:none}._card_1h9ti_23{padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);gap:12px;display:grid}._card_1h9ti_23 h3{font-size:var(--text-size-m);margin:0}._card_1h9ti_23 dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}._card_1h9ti_23 dt{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px}._card_1h9ti_23 dd{overflow-wrap:anywhere;font-size:var(--text-size-s);margin:4px 0 0}._card_1h9ti_23 footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:12px;display:flex}._spanTwo_1h9ti_37{grid-column:span 2}@media (width<640px){._default_1h9ti_41:not(._tableOnMobile_1h9ti_41) ._tableWrap_1h9ti_3{display:none}._default_1h9ti_41:not(._tableOnMobile_1h9ti_41) ._cards_1h9ti_23{gap:12px;display:grid}._default_1h9ti_41:not(._tableOnMobile_1h9ti_41) ._mobileSort_1h9ti_23{display:block}}@media (width<1280px){._wide_1h9ti_45:not(._tableOnMobile_1h9ti_41) ._tableWrap_1h9ti_3{display:none}._wide_1h9ti_45:not(._tableOnMobile_1h9ti_41) ._cards_1h9ti_23{gap:12px;display:grid}._wide_1h9ti_45:not(._tableOnMobile_1h9ti_41) ._mobileSort_1h9ti_23{display:block}}._root_1y2s8_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_1y2s8_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_1y2s8_41{font-size:var(--text-size-m);margin:0;font-weight:600;line-height:1.4}._dismiss_1y2s8_55{width:32px;height:32px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;place-items:center;padding:0;display:grid}._dismiss_1y2s8_55:hover{color:var(--color-text);background:#22252b12}._dismiss_1y2s8_55:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._dismiss_1y2s8_55 svg{width:20px;height:20px}._content_1y2s8_113{padding:var(--gap-m);font-size:var(--text-size-s);line-height:1.5}._wrapper_ip6vf_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_ip6vf_3{display:flex;position:relative}._input_ip6vf_5,._disabledText_ip6vf_5{width:100%;min-height:var(--height-m);max-height:var(--height-m);height:var(--height-m);border:1px solid var(--color-primary);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);padding:10px 14px}._input_ip6vf_5:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._input_ip6vf_5:disabled,._disabledText_ip6vf_5{border:1px solid var(--color-border);color:var(--color-inactive);background:#e9e9e9}._inputError_ip6vf_39{border-color:var(--color-error)}._input_ip6vf_5:has(+._trailingAction_ip6vf_41){padding-right:52px}._trailingAction_ip6vf_41{width:44px;height:44px;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_ip6vf_41:hover:not(:disabled){color:var(--color-primary);background:color-mix(in srgb, var(--color-primary) 10%, transparent)}._trailingAction_ip6vf_41:disabled{cursor:not-allowed;opacity:.55}._trailingAction_ip6vf_41:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._trailingAction_ip6vf_41 svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}._wrapper_vu1ob_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_vu1ob_21{opacity:0;width:1px;height:1px;position:absolute}._switch_vu1ob_35{border:1px solid var(--color-inactive);background:var(--color-inactive);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_vu1ob_67{background:var(--color-surface);border-radius:50%;width:18px;height:18px;transition:transform .2s;box-shadow:0 1px 3px #00000040}._input_vu1ob_21:checked+._switch_vu1ob_35{border-color:var(--color-primary);background:var(--color-primary)}._input_vu1ob_21:checked+._switch_vu1ob_35 ._thumb_vu1ob_67{transform:translate(18px)}._input_vu1ob_21:focus-visible+._switch_vu1ob_35{box-shadow:0 0 0 4px var(--color-focus-ring)}._label_vu1ob_111{font-size:var(--text-size-s);font-weight:600;line-height:1.4}._disabled_vu1ob_123{color:var(--color-inactive);cursor:not-allowed}._disabled_vu1ob_123 ._switch_vu1ob_35{opacity:.55}._root_kepgo_1{gap:var(--gap-m);width:100%;display:grid}._grid_kepgo_3{gap:var(--gap-m);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:center;display:grid}._actions_kepgo_5{justify-content:flex-end;gap:var(--gap-s);display:flex}@media (width<640px){._grid_kepgo_3{grid-template-columns:1fr}._actions_kepgo_5>*{flex:1}}._wrapper_1ymdr_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._dropzone_1ymdr_3{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_1ymdr_5{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_1ymdr_7{background:var(--color-neutral-surface);opacity:.6}._error_1ymdr_9{border-color:var(--color-error)}._nativeInput_1ymdr_11{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}._empty_1ymdr_13{align-items:center;gap:var(--gap-s);text-align:center;flex-direction:column;display:flex}._uploadIcon_1ymdr_15{background:var(--color-info-surface);width:40px;height:40px;color:var(--color-primary);border-radius:50%;place-items:center;font-size:24px;display:grid}._browseButton_1ymdr_17{color:var(--color-text)}._files_1ymdr_19{gap:var(--gap-s);flex-direction:column;width:100%;margin:0;padding:0;list-style:none;display:flex}._file_1ymdr_19{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_1ymdr_23{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._fileSize_1ymdr_25{color:var(--color-text-secondary);font-size:var(--text-size-s);white-space:nowrap}@media (width<640px){._dropzone_1ymdr_3{min-height:148px;padding:var(--gap-m)}}._layer_1nb2z_1{z-index:var(--z-modal);pointer-events:none;position:fixed;inset:0}._backdrop_1nb2z_3{padding:var(--gap-m);pointer-events:auto;background:#0000007a;place-items:center;display:grid;position:absolute;inset:0}._panel_1nb2z_5{border-radius:var(--border-radius);background:var(--color-surface);width:min(560px,100%);max-height:calc(100vh - 32px);color:var(--color-text);box-shadow:var(--shadow-floating);overflow-y:auto}._panel_1nb2z_5:focus{outline:none}._header_1nb2z_9{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_1nb2z_11{margin:0;font-size:20px;line-height:1.3}._description_1nb2z_13{padding:var(--gap-m) var(--gap-m) 0;color:var(--color-text-secondary);font-size:var(--text-size-s);margin:0}._content_1nb2z_15{padding:var(--gap-m)}._message_1vtru_1{color:var(--color-text);margin:0;line-height:1.5}._actions_1vtru_3{justify-content:flex-end;gap:var(--gap-s);margin-top:var(--gap-l);display:flex}@media (width<480px){._actions_1vtru_3{flex-direction:column-reverse}}._root_1x7h7_1{justify-content:center;align-items:center;gap:var(--gap-s);min-height:160px;color:var(--color-text-secondary);font-size:var(--text-size-s);display:flex}._viewport_15mi5_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_15mi5_3{top:16px;right:16px}._top-left_15mi5_5{top:16px;left:16px}._bottom-right_15mi5_7{bottom:16px;right:16px}._bottom-left_15mi5_9{bottom:16px;left:16px}._toast_15mi5_11{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_15mi5_13{min-width:0;font-size:var(--text-size-s);flex-direction:column;flex:1;gap:6px;line-height:1.4;display:flex}._icon_15mi5_15{flex:none;width:20px;height:20px}._info_15mi5_17{border-left-color:var(--color-primary)}._success_15mi5_19{border-left-color:var(--color-success)}._warning_15mi5_21{border-left-color:var(--color-warning)}._error_15mi5_23{border-left-color:var(--color-error)}._root_s9o0g_1{display:inline-flex;position:relative}._tooltip_s9o0g_3{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_s9o0g_1;position:absolute;box-shadow:0 6px 18px #0000002e}._top_s9o0g_5{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._bottom_s9o0g_7{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._left_s9o0g_9{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._right_s9o0g_11{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}@keyframes _ds-tooltip-in_s9o0g_1{0%{opacity:0}}@media (prefers-reduced-motion:reduce){._tooltip_s9o0g_3{animation:none}}._root_1ue3g_1{gap:var(--gap-s);width:100%;margin:0;display:grid}._frame_1ue3g_3{border-radius:var(--border-radius);background:#000;width:100%;position:relative;overflow:hidden}._video_1ue3g_5{width:100%;height:100%;display:block}._overlay_1ue3g_7,._error_1ue3g_7{padding:var(--gap-m);text-align:center;place-items:center;display:grid;position:absolute;inset:0}._overlay_1ue3g_7{color:#fff;background:#00000073}._error_1ue3g_7{background:var(--color-error-surface);color:var(--color-error-text)}._caption_1ue3g_13{color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._frame_1ue3g_3:fullscreen{border-radius:0}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Efficiency-point react design system",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
- "version": "0.0.11",
6
+ "version": "0.0.13",
7
7
  "publishConfig": {
8
8
  "access": "public",
9
9
  "registry": "https://registry.npmjs.org/"
@@ -1,23 +0,0 @@
1
- import { DropDownOption } from '../DSDropDown/DSDropDown';
2
- export type DSTimePeriodType = 'day' | 'week' | 'month';
3
- export type DSTimePeriodTypeCode = 1 | 2 | 3;
4
- export type DSTimePeriodPickerValue = {
5
- periodType: DSTimePeriodTypeCode;
6
- startDate: Date | null;
7
- endDate: Date | null;
8
- };
9
- export type DSTimePeriodPickerProps = {
10
- value: DSTimePeriodPickerValue;
11
- onChange?: (value: DSTimePeriodPickerValue) => void;
12
- label?: string;
13
- hint?: string;
14
- error?: string;
15
- disabled?: boolean;
16
- min?: Date;
17
- max?: Date;
18
- className?: string;
19
- periodTypeOptions?: DropDownOption[];
20
- };
21
- export declare const DS_PERIOD_TYPE_CODES: Record<DSTimePeriodType, DSTimePeriodTypeCode>;
22
- export declare const DSTimePeriodPicker: ({ value, onChange, label, hint, error, disabled, min, max, className, periodTypeOptions, }: DSTimePeriodPickerProps) => import("react").JSX.Element;
23
- //# sourceMappingURL=DSTimePeriodPicker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSTimePeriodPicker.d.ts","sourceRoot":"","sources":["../../../src/components/DSTimePeriodPicker/DSTimePeriodPicker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI3E,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACxD,MAAM,MAAM,oBAAoB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,MAAM,MAAM,uBAAuB,GAAG;IAClC,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,cAAc,EAAE,CAAC;CACxC,CAAC;AAQF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAI/E,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,4FAWhC,uBAAuB,gCAkCzB,CAAC"}