@efficiency-point/design-system 0.0.4 → 0.0.5

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.
@@ -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,gCA8BzB,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,gCA4CzB,CAAC"}
@@ -1,9 +1,6 @@
1
1
  import { FocusEventHandler, HTMLInputTypeAttribute } from 'react';
2
2
  export type DSInputValue = string | number;
3
- export type DSInputProps = {
4
- value: DSInputValue;
5
- onChange?: (value: DSInputValue, event: React.ChangeEvent<HTMLInputElement>) => void;
6
- type?: HTMLInputTypeAttribute;
3
+ type DSInputBaseProps = {
7
4
  placeholder?: string;
8
5
  disabled?: boolean;
9
6
  readOnly?: boolean;
@@ -16,13 +13,30 @@ export type DSInputProps = {
16
13
  id?: string;
17
14
  clearable?: boolean;
18
15
  required?: boolean;
16
+ autoFocus?: boolean;
19
17
  autoComplete?: string;
20
18
  maxLength?: number;
19
+ selectTextOnFocus?: boolean;
20
+ onBlur?: FocusEventHandler<HTMLInputElement>;
21
+ onFocus?: FocusEventHandler<HTMLInputElement>;
22
+ };
23
+ export type DSInputStringProps = DSInputBaseProps & {
24
+ value: string;
25
+ onChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
26
+ type?: Exclude<HTMLInputTypeAttribute, 'number'>;
27
+ };
28
+ export type DSInputNumberProps = DSInputBaseProps & {
29
+ value: number | string;
30
+ onChange?: (value: number | string, event: React.ChangeEvent<HTMLInputElement>) => void;
31
+ type: 'number';
21
32
  min?: number;
22
33
  max?: number;
23
34
  step?: number;
24
- onBlur?: FocusEventHandler<HTMLInputElement>;
25
- onFocus?: FocusEventHandler<HTMLInputElement>;
26
35
  };
27
- export declare const DSInput: ({ value, onChange, type, placeholder, disabled, readOnly, stringWhileDisabled, label, error, hint, className, name, id, clearable, required, ...inputProps }: DSInputProps) => import("react").JSX.Element;
36
+ export type DSInputProps = DSInputStringProps | DSInputNumberProps;
37
+ export declare const DSInput: {
38
+ (props: DSInputNumberProps): React.ReactElement;
39
+ (props: DSInputStringProps): React.ReactElement;
40
+ };
41
+ export {};
28
42
  //# sourceMappingURL=DSInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSInput.d.ts","sourceRoot":"","sources":["../../../src/components/DSInput/DSInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAI3F,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACrF,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,8JAiBrB,YAAY,gCAiFd,CAAC"}
1
+ {"version":3,"file":"DSInput.d.ts","sourceRoot":"","sources":["../../../src/components/DSInput/DSInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAI3F,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C,KAAK,gBAAgB,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAChD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxF,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAmHnE,eAAO,MAAM,OAAO,EAAuB;IACvC,CAAC,KAAK,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC;IAChD,CAAC,KAAK,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC;CACnD,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_l4qbw_1`,sm:`_sm_l4qbw_2`,md:`_md_l4qbw_3`,neutral:`_neutral_l4qbw_4`,info:`_info_l4qbw_5`,success:`_success_l4qbw_6`,warning:`_warning_l4qbw_7`,error:`_error_l4qbw_8`,dot:`_dot_l4qbw_9`,icon:`_icon_l4qbw_10`,label:`_label_l4qbw_11`},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_pslm9_1`,"ds-spin":`_ds-spin_pslm9_1`,primary:`_primary_pslm9_11`,secondary:`_secondary_pslm9_12`,light:`_light_pslm9_13`,danger:`_danger_pslm9_14`},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_3nz3z_1`,sm:`_sm_3nz3z_16`,md:`_md_3nz3z_17`,lg:`_lg_3nz3z_18`,primary:`_primary_3nz3z_19`,secondary:`_secondary_3nz3z_20`,outline:`_outline_3nz3z_21`,ghost:`_ghost_3nz3z_22`,empty:`_empty_3nz3z_22`,destructive:`_destructive_3nz3z_23`,destructiveOutline:`_destructiveOutline_3nz3z_24`},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_5v0ym_1`,required:`_required_5v0ym_12`,error:`_error_5v0ym_13`,optional:`_optional_5v0ym_17`,hint:`_hint_5v0ym_18`,disabled:`_disabled_5v0ym_24`,message:`_message_5v0ym_28`,success:`_success_5v0ym_36`},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_1l5cg_1`,label:`_label_1l5cg_2`,input:`_input_1l5cg_3`,control:`_control_1l5cg_4`,disabled:`_disabled_1l5cg_7`,controlError:`_controlError_1l5cg_9`},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_1kr9x_1`,input:`_input_1kr9x_2`,error:`_error_1kr9x_5`},_=e=>String(e).padStart(2,`0`),v=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${_(e.getMonth()+1)}-${_(e.getDate())}`,r=`${_(e.getHours())}:${_(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},y=(e,t)=>{if(!e)return null;if(t===`time`){let[t,n]=e.split(`:`).map(Number),r=new Date;return r.setHours(t??0,n??0,0,0),r}let n=new Date(t===`date`?`${e}T00:00`:e);return Number.isNaN(n.getTime())?null:n},b=({value:n,onChange:r,mode:i=`date`,label:a,hint:o,error:s,disabled:c=!1,readOnly:l=!1,required:u=!1,min:d,max:m,id:h,name:_,className:b=``})=>{let x=(0,t.useId)(),S=h??`ds-date-time-${_??x}`,C=o?`${S}-hint`:void 0,w=s?`${S}-error`:void 0,T=i===`datetime`?`datetime-local`:i;return(0,e.jsxs)(`div`,{className:`${g.wrapper} ${b}`,children:[a&&(0,e.jsx)(f,{htmlFor:S,required:u,disabled:c,children:a}),(0,e.jsx)(`input`,{id:S,name:_,type:T,value:v(n,i),min:v(d??null,i)||void 0,max:v(m??null,i)||void 0,disabled:c,readOnly:l,required:u,"aria-invalid":!!s,"aria-describedby":[C,w].filter(Boolean).join(` `)||void 0,className:`${g.input} ${s?g.error:``}`,onChange:e=>r?.(y(e.target.value,i)),onKeyDown:e=>{e.key===`Escape`&&e.currentTarget.blur()}}),o&&!s&&(0,e.jsx)(p,{id:C,children:o}),s&&(0,e.jsx)(p,{id:w,variant:`error`,children:s})]})},x={root:`_root_9h2e2_1`,legend:`_legend_9h2e2_2`,range:`_range_9h2e2_3`},S=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),C=({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),S(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${x.root} ${h}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:x.range,children:[(0,e.jsx)(b,{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)(b,{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})]})},w={group:`_group_1st6r_1`,skeleton:`_skeleton_1st6r_2`,text:`_text_1st6r_3`,rectangular:`_rectangular_1st6r_4`,circular:`_circular_1st6r_5`,animated:`_animated_1st6r_6`,"ds-skeleton":`_ds-skeleton_1st6r_1`},T=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${w.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(o,s)=>(0,e.jsx)(`span`,{className:`${w.skeleton} ${w[t]} ${a?w.animated:``}`,style:{width:s===i-1&&i>1?`70%`:n,height:r}},s))}),E={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`},D=(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},O=({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,O=[w,T].filter(Boolean).join(` `)||void 0,k=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 A=(e,t)=>{let r=D(n,e,t);S.current[r]?.focus(),S.current[r]?.scrollIntoView({block:`nearest`})},j=e=>{e.disabled||(i?.(e.value,e),y(!1),x.current?.focus())};return(0,e.jsxs)(`div`,{ref:b,className:[E.wrapper,l?E.errorState:``,d].filter(Boolean).join(` `),children:[c&&(0,e.jsx)(`label`,{htmlFor:k?void 0:_,className:E.label,children:c}),(0,e.jsx)(`div`,{className:E.container,children:k?(0,e.jsx)(`div`,{id:_,className:E.disabledText,"aria-describedby":O,children:C?.label??a}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`button`,{ref:x,id:_,type:`button`,name:f,className:E.trigger,disabled:o,"aria-haspopup":`listbox`,"aria-expanded":v,"aria-controls":`${_}-listbox`,"aria-describedby":O,"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(()=>A(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:C?E.value:E.placeholder,children:C?.label??a}),(0,e.jsx)(`span`,{className:`${E.chevron} ${v?E.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:E.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:`${E.option} ${a?E.selected:``}`,onClick:()=>j(t),onKeyDown:e=>{if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),A(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;A(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:E.message,children:u}),l&&(0,e.jsx)(`span`,{id:T,className:E.error,children:l})]})},k=e=>`${e.id}:${e.direction}`,A=({options:t,value:n,onChange:r,label:i=`Сортировка`,placeholder:a=`Выберите сортировку`,disabled:o=!1,className:s})=>{let c=t.flatMap(e=>[{value:k({id:e.id,direction:`asc`}),label:e.ascLabel??`${e.label} · по возрастанию`,disabled:e.disabled},{value:k({id:e.id,direction:`desc`}),label:e.descLabel??`${e.label} · по убыванию`,disabled:e.disabled}]);return(0,e.jsx)(O,{options:c,value:n?k(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)})}})},j={root:`_root_i4d62_1`,tableWrap:`_tableWrap_i4d62_2`,table:`_table_i4d62_2`,sticky:`_sticky_i4d62_8`,sortButton:`_sortButton_i4d62_9`,state:`_state_i4d62_11`,cards:`_cards_i4d62_12`,mobileSort:`_mobileSort_i4d62_12`,card:`_card_i4d62_12`,spanTwo:`_spanTwo_i4d62_19`,default:`_default_i4d62_21`,tableOnMobile:`_tableOnMobile_i4d62_21`,wide:`_wide_i4d62_23`},ee=(0,n.tableFeatures)({rowSortingFeature:n.rowSortingFeature,sortedRowModel:(0,n.createSortedRowModel)()}),M=(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)for(let r of e)if(typeof r.accessor==`string`&&!(r.accessor in t[n]))return`В строке ${n+1} отсутствует колонка «${r.id}»`;return null},N=({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)(()=>M(r,i),[r,i]),C=(0,t.useMemo)(()=>(0,n.createColumnHelper)(),[]),w=(0,t.useMemo)(()=>C.columns(r.map(e=>{let t=e.accessor;return C.accessor(typeof t==`function`?t:e=>e[t],{id:e.id,header:()=>e.header,cell:t=>e.cell?.(t.row.original,t.getValue())??String(t.getValue()??``),enableSorting:!0,sortDescFirst:e.sortDescFirst})})),[r,C]),E=(0,n.useTable)({features:ee,columns:w,data:i,state:{sorting:x},onSortingChange:e=>{let t=typeof e==`function`?e(x):e;s===void 0&&b(t),c?.(t)},getRowId:u}),D=E.getRowModel().rows,O=r.map(e=>({id:e.id,label:typeof e.header==`string`?e.header:e.id})),k=[j.root,o===`wide`?j.wide:j.default,a?j.tableOnMobile:``,v].filter(Boolean).join(` `),N=S??m;return(0,e.jsxs)(`section`,{className:k,"aria-busy":p,children:[!a&&!p&&!N&&D.length>0&&(0,e.jsx)(A,{className:j.mobileSort,options:O,value:x[0]?{id:x[0].id,direction:x[0].desc?`desc`:`asc`}:null,onChange:e=>E.setSorting([{id:e.id,desc:e.direction===`desc`}])}),(0,e.jsx)(`div`,{className:j.tableWrap,style:{maxHeight:_},children:(0,e.jsxs)(`table`,{className:j.table,"aria-label":f,children:[d&&(0,e.jsx)(`caption`,{children:d}),(0,e.jsx)(`thead`,{className:g?j.sticky:``,children:E.getHeaderGroups().map(t=>(0,e.jsx)(`tr`,{children:t.headers.map(t=>{let n=t.column.getIsSorted();return(0,e.jsx)(`th`,{scope:`col`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:`none`,children:(0,e.jsxs)(`button`,{type:`button`,className:j.sortButton,onClick:t.column.getToggleSortingHandler(),children:[(0,e.jsx)(E.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)(T,{lines:3})})}):N?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:j.state,colSpan:r.length,children:N})}):D.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:j.state,colSpan:r.length,children:h})}):D.map(t=>(0,e.jsx)(`tr`,{children:t.getAllCells().map(t=>(0,e.jsx)(`td`,{children:(0,e.jsx)(E.FlexRender,{cell:t})},t.id))},t.id))})]})}),!a&&(0,e.jsx)(`div`,{className:j.cards,role:`list`,"aria-label":f??d,children:p?(0,e.jsx)(T,{lines:4}):N?(0,e.jsx)(`div`,{className:j.state,children:N}):D.length===0?(0,e.jsx)(`div`,{className:j.state,children:h}):D.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=>typeof e.accessor==`function`?e.accessor(t.original):t.original[e.accessor],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:j.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?j.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)})})]})},P=({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 O=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())},k=(e,t)=>{let r=D(n,e,t);x.current[r]?.focus(),x.current[r]?.scrollIntoView({block:`nearest`})};return(0,e.jsxs)(`div`,{ref:y,className:[E.wrapper,c?E.errorState:``,u].filter(Boolean).join(` `),children:[s&&(0,e.jsx)(`label`,{htmlFor:g,className:E.label,children:s}),(0,e.jsxs)(`div`,{className:E.container,children:[(0,e.jsxs)(`button`,{ref:b,id:g,type:`button`,name:d,className:E.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(()=>k(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:S.length?E.value:E.placeholder,children:C||a}),(0,e.jsx)(`span`,{className:`${E.chevron} ${_?E.chevronOpen:``}`,"aria-hidden":`true`,children:`⌄`})]}),_&&(0,e.jsx)(`ul`,{id:`${g}-listbox`,className:E.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:`${E.option} ${a?E.selected:``}`,onClick:()=>O(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;k(i+t,t)}if(e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;k(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:E.message,children:l}),c&&(0,e.jsx)(`span`,{id:T,className:E.error,children:c})]})},te={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`},ne=({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:te[t]})]}),F={root:`_root_1897l_1`,header:`_header_1897l_11`,title:`_title_1897l_21`,dismiss:`_dismiss_1897l_28`,content:`_content_1897l_57`},re=({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:`${F.root} ${c}`,"aria-labelledby":l,children:[(0,e.jsxs)(`header`,{className:F.header,children:[(0,e.jsx)(s,{id:l,className:F.title,children:n}),i&&(0,e.jsx)(`button`,{type:`button`,className:F.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:F.content,children:r})]})},I={wrapper:`_wrapper_1bpdz_1`,control:`_control_1bpdz_3`,input:`_input_1bpdz_5`,disabledText:`_disabledText_1bpdz_5`,inputError:`_inputError_1bpdz_11`,clear:`_clear_1bpdz_13`},L=({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,...y})=>{let b=(0,t.useId)(),x=g??`ds-input-${h??b}`,S=(0,t.useRef)(null),C=d?`${x}-hint`:void 0,w=u?`${x}-error`:void 0,T=String(n??``),E=[C,w].filter(Boolean).join(` `)||void 0;return(0,e.jsxs)(`div`,{className:`${I.wrapper} ${m}`,children:[l&&(0,e.jsx)(f,{htmlFor:x,required:v,disabled:o,children:l}),o&&c?(0,e.jsx)(`div`,{id:x,className:I.disabledText,"aria-describedby":E,children:T||a}):(0,e.jsxs)(`div`,{className:I.control,children:[(0,e.jsx)(`input`,{ref:S,id:x,name:h,type:i,value:T,placeholder:a,disabled:o,readOnly:s,required:v,"aria-invalid":!!u,"aria-describedby":E,className:`${I.input} ${u?I.inputError:``}`,onChange:e=>{i===`number`&&e.target.value!==``?r?.(Number(e.target.value),e):r?.(e.target.value,e)},...y}),_&&T&&!o&&!s&&(0,e.jsx)(`button`,{type:`button`,className:I.clear,"aria-label":`Очистить поле`,onClick:()=>{let e=S.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:C,children:d}),u&&(0,e.jsx)(p,{id:w,variant:`error`,children:u})]})},R={wrapper:`_wrapper_8srjz_1`,input:`_input_8srjz_11`,switch:`_switch_8srjz_18`,thumb:`_thumb_8srjz_34`,label:`_label_8srjz_56`,disabled:`_disabled_8srjz_62`},z=({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:`${R.wrapper} ${a?R.disabled:``} ${s}`,children:[(0,e.jsx)(`input`,{id:f,className:R.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:R.switch,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:R.thumb})}),i&&(0,e.jsx)(`span`,{className:R.label,children:i})]})},B={root:`_root_kepgo_1`,grid:`_grid_kepgo_3`,actions:`_actions_kepgo_5`},ie=({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:`${B.root} ${l}`,"aria-label":`Фильтры`,"aria-busy":s,children:[(0,e.jsx)(`div`,{className:B.grid,children:t.filter(e=>!e.hidden).map(t=>{let r=c||s||t.disabled,i=n[t.id];if(t.type===`input`)return(0,e.jsx)(L,{label:t.label,hint:t.hint,placeholder:t.placeholder,type:t.inputType,value:i??``,disabled:r,onChange:e=>d(t.id,e)},t.id);if(t.type===`dropdown`)return(0,e.jsx)(O,{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)(P,{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)(z,{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)(C,{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:B.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:`Применить`})]})]})},ae=0,V=(0,i.create)(e=>({modals:[],openModal:(t,n={},r={})=>{ae+=1;let i=`ds-modal-${ae}`;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:[]})})),oe=()=>V.setState({modals:[]}),H={layer:`_layer_bl99k_1`,backdrop:`_backdrop_bl99k_2`,panel:`_panel_bl99k_3`,header:`_header_bl99k_5`,title:`_title_bl99k_6`,description:`_description_bl99k_7`,content:`_content_bl99k_8`},U=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,W=({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=V(e=>e.closeModal);return(0,t.useEffect)(()=>{let e=document.activeElement,t=f.current;return(t?.querySelector(U)??t)?.focus(),()=>e?.focus()},[]),(0,e.jsxs)(`div`,{ref:f,className:`${H.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(U)??[]);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:H.header,children:[r&&(0,e.jsx)(`h2`,{id:l,className:H.title,children:r}),(0,e.jsx)(u,{variant:`ghost`,size:`sm`,"aria-label":o,onClick:()=>p(a),children:`×`})]}),i&&(0,e.jsx)(`p`,{id:d,className:H.description,children:i}),(0,e.jsx)(`div`,{className:H.content,children:n})]})},G=({registry:n})=>{let i=V(e=>e.modals),a=V(e=>e.closeModal),o=V(e=>e.closeAllModals);return(0,t.useEffect)(()=>{let e=e=>{if(e.key!==`Escape`)return;let t=V.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:H.layer,"aria-label":`Модальные окна`,children:i.map((t,r)=>{let s=n[t.name];return s?(0,e.jsx)(`div`,{className:H.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)},se=({registry:n,children:r,lockBodyScroll:i=!0})=>{let a=V(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)(G,{registry:n})]})},K=e=>e,q={message:`_message_187g8_1`,actions:`_actions_187g8_2`},J=new Map,ce=0,le=({modalId:t,close:n,title:r=`Подтверждение`,message:i=`Продолжить действие?`,confirmLabel:a=`Подтвердить`,cancelLabel:o=`Отмена`,tone:s=`default`,requestId:c})=>{let l=e=>{J.get(c)?.(e),J.delete(c),n()};return(0,e.jsxs)(W,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:q.message,children:i}),(0,e.jsxs)(`div`,{className:q.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})]})]})},ue=({modalId:t,close:n,title:r=`Ошибка`,message:i,closeLabel:a=`Закрыть`})=>(0,e.jsxs)(W,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:q.message,children:i}),(0,e.jsx)(`div`,{className:q.actions,children:(0,e.jsx)(u,{onClick:n,children:a})})]}),de=K({ConfirmModal:le,ErrorModal:ue}),fe=()=>{let e=V(e=>e.openModal);return(t={})=>new Promise(n=>{ce+=1;let r=`confirm-${ce}`;J.set(r,n),e(`ConfirmModal`,{...t,requestId:r},{closeOnEscape:!1})})},pe=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=V(e=>e.openModal);return{showError:(t,n)=>e(`ErrorModal`,{title:n,message:pe(t)})}},he=(0,i.create)(()=>({})),ge=(0,i.create)(()=>({})),_e=()=>{let e=V(e=>e.modals),t=V(e=>e.openModal);return{openModal:(e,n={},r)=>t(e,n,r),closeModal:V(e=>e.closeModal),closeTopModal:V(e=>e.closeTopModal),closeAllModals:V(e=>e.closeAllModals),isOpen:t=>e.some(e=>e.name===t),count:e.length}},ve={root:`_root_1j70j_1`},ye=({label:t=`Загрузка страницы`,className:n=``})=>(0,e.jsxs)(`div`,{className:`${ve.root} ${n}`,role:`status`,"aria-label":t,children:[(0,e.jsx)(c,{decorative:!0}),(0,e.jsx)(`span`,{children:t})]}),Y={root:`_root_ig8lp_1`,legend:`_legend_ig8lp_2`,range:`_range_ig8lp_3`},be=[{value:`1`,label:`День`},{value:`2`,label:`Неделя`},{value:`3`,label:`Месяц`}],xe={day:1,week:2,month:3},Se=({value:t,onChange:n,label:r,hint:i,error:a,disabled:o=!1,min:s,max:c,className:l=``,periodTypeOptions:u=be})=>(0,e.jsxs)(`fieldset`,{className:`${Y.root} ${l}`,disabled:o,children:[r&&(0,e.jsx)(`legend`,{className:Y.legend,children:r}),(0,e.jsx)(O,{options:u,value:String(t.periodType),disabled:o,onChange:e=>n?.({...t,periodType:Number(e)}),label:`Тип периода`}),(0,e.jsxs)(`div`,{className:Y.range,children:[(0,e.jsx)(b,{value:t.startDate,onChange:e=>n?.({...t,startDate:e}),label:`Начало`,min:s,max:c,disabled:o}),(0,e.jsx)(b,{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})]}),X={viewport:`_viewport_v7rog_1`,"top-right":`_top-right_v7rog_2`,"top-left":`_top-left_v7rog_3`,"bottom-right":`_bottom-right_v7rog_4`,"bottom-left":`_bottom-left_v7rog_5`,toast:`_toast_v7rog_6`,body:`_body_v7rog_7`,icon:`_icon_v7rog_8`,info:`_info_v7rog_9`,success:`_success_v7rog_10`,warning:`_warning_v7rog_11`,error:`_error_v7rog_12`},Ce=({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:`${X.toast} ${X[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)(ne,{name:n.variant===`warning`?`warning`:`info`,className:X.icon}),(0,e.jsxs)(`div`,{className:X.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:`ghost`,size:`sm`,onClick:()=>{n.action?.onClick(),(n.action?.dismissOnClick??!0)&&r(n.id)},children:n.action.label})]}),n.closable&&(0,e.jsx)(u,{variant:`ghost`,size:`sm`,"aria-label":`Закрыть уведомление`,onClick:()=>r(n.id),children:`×`})]})},we=0,Z=(0,i.create)(e=>({toasts:[],showToast:t=>{we+=1;let n=`ds-toast-${we}`;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:[]})})),Te=()=>Z.setState({toasts:[]}),Ee=({position:t=`top-right`})=>{let n=Z(e=>e.toasts),r=Z(e=>e.removeToast);return(0,e.jsx)(`div`,{className:`${X.viewport} ${X[t]}`,"aria-label":`Уведомления`,children:n.map(t=>(0,e.jsx)(Ce,{toast:t,onClose:r},t.id))})},De=()=>{let e=Z(e=>e.showToast),t=Z(e=>e.removeToast),n=Z(e=>e.clearToasts),r=t=>n=>e({...n,variant:t});return{showToast:e,infoToast:r(`info`),successToast:r(`success`),warningToast:r(`warning`),errorToast:r(`error`),removeToast:t,clearToasts:n}},Q={root:`_root_2bxal_1`,tooltip:`_tooltip_2bxal_2`,"ds-tooltip-in":`_ds-tooltip-in_2bxal_1`,top:`_top_2bxal_3`,bottom:`_bottom_2bxal_4`,left:`_left_2bxal_5`,right:`_right_2bxal_6`},Oe=({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:`${Q.root} ${c}`,onPointerDown:u?m:p,children:[h,u&&(0,e.jsx)(`span`,{id:l,role:`tooltip`,className:`${Q.tooltip} ${Q[i]}`,style:{maxWidth:s},children:n})]})},$={root:`_root_tgni1_1`,frame:`_frame_tgni1_2`,video:`_video_tgni1_3`,overlay:`_overlay_tgni1_4`,error:`_error_tgni1_4`,caption:`_caption_tgni1_7`},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=le,exports.DSBadge=o,exports.DSButton=u,exports.DSCheckbox=h,exports.DSDataTable=N,exports.DSDateRange=C,exports.DSDateTimePicker=b,exports.DSDropDown=O,exports.DSDropDownMultiple=P,exports.DSFieldLabel=f,exports.DSFieldMessage=p,exports.DSFilters=ie,exports.DSIcon=ne,exports.DSInfoBlock=re,exports.DSInput=L,exports.DSLoader=c,exports.DSModal=G,exports.DSModalFrame=W,exports.DSPageLoader=ye,exports.DSRadioButton=z,exports.DSSkeleton=T,exports.DSSort=A,exports.DSTimePeriodPicker=Se,exports.DSToast=Ce,exports.DSToastProvider=Ee,exports.DSTooltip=Oe,exports.DSVideoPlayerFrame=ke,exports.DS_PERIOD_TYPE_CODES=xe,exports.ErrorModal=ue,exports.ModalSystemProvider=se,exports.builtInModalRegistry=de,exports.defineModalRegistry=K,exports.formatDateTimeLocalValue=v,exports.getErrorMessage=pe,exports.getNextEnabledOptionIndex=D,exports.isValidDateRange=S,exports.parseDateTimeLocalValue=y,exports.resetModalStore=oe,exports.resetToastStore=Te,exports.useConfirmModal=fe,exports.useConfirmModalStore=he,exports.useErrorModal=me,exports.useErrorModalStore=ge,exports.useModals=_e,exports.useModalsStore=V,exports.useToast=De,exports.useToastStore=Z,exports.validateDSDataTableData=M;
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_l4qbw_1`,sm:`_sm_l4qbw_2`,md:`_md_l4qbw_3`,neutral:`_neutral_l4qbw_4`,info:`_info_l4qbw_5`,success:`_success_l4qbw_6`,warning:`_warning_l4qbw_7`,error:`_error_l4qbw_8`,dot:`_dot_l4qbw_9`,icon:`_icon_l4qbw_10`,label:`_label_l4qbw_11`},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_pslm9_1`,"ds-spin":`_ds-spin_pslm9_1`,primary:`_primary_pslm9_11`,secondary:`_secondary_pslm9_12`,light:`_light_pslm9_13`,danger:`_danger_pslm9_14`},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_14t1a_1`,sm:`_sm_14t1a_16`,md:`_md_14t1a_17`,lg:`_lg_14t1a_18`,primary:`_primary_14t1a_19`,secondary:`_secondary_14t1a_20`,outline:`_outline_14t1a_21`,ghost:`_ghost_14t1a_22`,empty:`_empty_14t1a_22`,destructive:`_destructive_14t1a_23`,destructiveOutline:`_destructiveOutline_14t1a_24`},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_5v0ym_1`,required:`_required_5v0ym_12`,error:`_error_5v0ym_13`,optional:`_optional_5v0ym_17`,hint:`_hint_5v0ym_18`,disabled:`_disabled_5v0ym_24`,message:`_message_5v0ym_28`,success:`_success_5v0ym_36`},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_1l5cg_1`,label:`_label_1l5cg_2`,input:`_input_1l5cg_3`,control:`_control_1l5cg_4`,disabled:`_disabled_1l5cg_7`,controlError:`_controlError_1l5cg_9`},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_1kr9x_1`,input:`_input_1kr9x_2`,error:`_error_1kr9x_5`},_=e=>String(e).padStart(2,`0`),v=(e,t)=>{if(!e)return``;let n=`${e.getFullYear()}-${_(e.getMonth()+1)}-${_(e.getDate())}`,r=`${_(e.getHours())}:${_(e.getMinutes())}`;return t===`date`?n:t===`time`?r:`${n}T${r}`},y=(e,t)=>{if(!e)return null;if(t===`time`){let[t,n]=e.split(`:`).map(Number),r=new Date;return r.setHours(t??0,n??0,0,0),r}let n=new Date(t===`date`?`${e}T00:00`:e);return Number.isNaN(n.getTime())?null:n},b=({value:n,onChange:r,mode:i=`date`,label:a,hint:o,error:s,disabled:c=!1,readOnly:l=!1,required:u=!1,min:d,max:m,id:h,name:_,className:b=``})=>{let x=(0,t.useId)(),S=h??`ds-date-time-${_??x}`,C=o?`${S}-hint`:void 0,w=s?`${S}-error`:void 0,T=i===`datetime`?`datetime-local`:i;return(0,e.jsxs)(`div`,{className:`${g.wrapper} ${b}`,children:[a&&(0,e.jsx)(f,{htmlFor:S,required:u,disabled:c,children:a}),(0,e.jsx)(`input`,{id:S,name:_,type:T,value:v(n,i),min:v(d??null,i)||void 0,max:v(m??null,i)||void 0,disabled:c,readOnly:l,required:u,"aria-invalid":!!s,"aria-describedby":[C,w].filter(Boolean).join(` `)||void 0,className:`${g.input} ${s?g.error:``}`,onChange:e=>r?.(y(e.target.value,i)),onKeyDown:e=>{e.key===`Escape`&&e.currentTarget.blur()}}),o&&!s&&(0,e.jsx)(p,{id:C,children:o}),s&&(0,e.jsx)(p,{id:w,variant:`error`,children:s})]})},x={root:`_root_9h2e2_1`,legend:`_legend_9h2e2_2`,range:`_range_9h2e2_3`},S=e=>!!(e.from&&e.to&&e.from.getTime()<=e.to.getTime()),C=({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),S(e)&&n?.(e)};return(0,e.jsxs)(`fieldset`,{className:`${x.root} ${h}`,disabled:d,children:[(0,e.jsxs)(`div`,{className:x.range,children:[(0,e.jsx)(b,{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)(b,{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})]})},w={group:`_group_1st6r_1`,skeleton:`_skeleton_1st6r_2`,text:`_text_1st6r_3`,rectangular:`_rectangular_1st6r_4`,circular:`_circular_1st6r_5`,animated:`_animated_1st6r_6`,"ds-skeleton":`_ds-skeleton_1st6r_1`},T=({variant:t=`text`,width:n=`100%`,height:r,lines:i=1,animated:a=!0,className:o=``})=>(0,e.jsx)(`span`,{className:`${w.group} ${o}`,"aria-hidden":`true`,children:Array.from({length:Math.max(1,i)},(o,s)=>(0,e.jsx)(`span`,{className:`${w.skeleton} ${w[t]} ${a?w.animated:``}`,style:{width:s===i-1&&i>1?`70%`:n,height:r}},s))}),E={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`},D=(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},O=({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,O=[w,T].filter(Boolean).join(` `)||void 0,k=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 A=(e,t)=>{let r=D(n,e,t);S.current[r]?.focus(),S.current[r]?.scrollIntoView({block:`nearest`})},j=e=>{e.disabled||(i?.(e.value,e),y(!1),x.current?.focus())};return(0,e.jsxs)(`div`,{ref:b,className:[E.wrapper,l?E.errorState:``,d].filter(Boolean).join(` `),children:[c&&(0,e.jsx)(`label`,{htmlFor:k?void 0:_,className:E.label,children:c}),(0,e.jsx)(`div`,{className:E.container,children:k?(0,e.jsx)(`div`,{id:_,className:E.disabledText,"aria-describedby":O,children:C?.label??a}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`button`,{ref:x,id:_,type:`button`,name:f,className:E.trigger,disabled:o,"aria-haspopup":`listbox`,"aria-expanded":v,"aria-controls":`${_}-listbox`,"aria-describedby":O,"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(()=>A(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:C?E.value:E.placeholder,children:C?.label??a}),(0,e.jsx)(`span`,{className:`${E.chevron} ${v?E.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:E.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:`${E.option} ${a?E.selected:``}`,onClick:()=>j(t),onKeyDown:e=>{if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),A(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;A(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:E.message,children:u}),l&&(0,e.jsx)(`span`,{id:T,className:E.error,children:l})]})},k=e=>`${e.id}:${e.direction}`,A=({options:t,value:n,onChange:r,label:i=`Сортировка`,placeholder:a=`Выберите сортировку`,disabled:o=!1,className:s})=>{let c=t.flatMap(e=>[{value:k({id:e.id,direction:`asc`}),label:e.ascLabel??`${e.label} · по возрастанию`,disabled:e.disabled},{value:k({id:e.id,direction:`desc`}),label:e.descLabel??`${e.label} · по убыванию`,disabled:e.disabled}]);return(0,e.jsx)(O,{options:c,value:n?k(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)})}})},j={root:`_root_i4d62_1`,tableWrap:`_tableWrap_i4d62_2`,table:`_table_i4d62_2`,sticky:`_sticky_i4d62_8`,sortButton:`_sortButton_i4d62_9`,state:`_state_i4d62_11`,cards:`_cards_i4d62_12`,mobileSort:`_mobileSort_i4d62_12`,card:`_card_i4d62_12`,spanTwo:`_spanTwo_i4d62_19`,default:`_default_i4d62_21`,tableOnMobile:`_tableOnMobile_i4d62_21`,wide:`_wide_i4d62_23`},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)for(let r of e)if(typeof r.accessor==`string`&&!(r.accessor in t[n]))return`В строке ${n+1} отсутствует колонка «${r.id}»`;return null},M=({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)(()=>(0,n.createColumnHelper)(),[]),w=(0,t.useMemo)(()=>C.columns(r.map(e=>{let t=e.accessor;return C.accessor(typeof t==`function`?t:e=>e[t],{id:e.id,header:()=>e.header,cell:t=>e.cell?.(t.row.original,t.getValue())??String(t.getValue()??``),enableSorting:!0,sortDescFirst:e.sortDescFirst})})),[r,C]),E=(0,n.useTable)({features:ee,columns:w,data:i,state:{sorting:x},onSortingChange:e=>{let t=typeof e==`function`?e(x):e;s===void 0&&b(t),c?.(t)},getRowId:u}),D=E.getRowModel().rows,O=r.map(e=>({id:e.id,label:typeof e.header==`string`?e.header:e.id})),k=[j.root,o===`wide`?j.wide:j.default,a?j.tableOnMobile:``,v].filter(Boolean).join(` `),M=S??m;return(0,e.jsxs)(`section`,{className:k,"aria-busy":p,children:[!a&&!p&&!M&&D.length>0&&(0,e.jsx)(A,{className:j.mobileSort,options:O,value:x[0]?{id:x[0].id,direction:x[0].desc?`desc`:`asc`}:null,onChange:e=>E.setSorting([{id:e.id,desc:e.direction===`desc`}])}),(0,e.jsx)(`div`,{className:j.tableWrap,style:{maxHeight:_},children:(0,e.jsxs)(`table`,{className:j.table,"aria-label":f,children:[d&&(0,e.jsx)(`caption`,{children:d}),(0,e.jsx)(`thead`,{className:g?j.sticky:``,children:E.getHeaderGroups().map(t=>(0,e.jsx)(`tr`,{children:t.headers.map(t=>{let n=t.column.getIsSorted();return(0,e.jsx)(`th`,{scope:`col`,"aria-sort":n===`asc`?`ascending`:n===`desc`?`descending`:`none`,children:(0,e.jsxs)(`button`,{type:`button`,className:j.sortButton,onClick:t.column.getToggleSortingHandler(),children:[(0,e.jsx)(E.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)(T,{lines:3})})}):M?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:j.state,colSpan:r.length,children:M})}):D.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{className:j.state,colSpan:r.length,children:h})}):D.map(t=>(0,e.jsx)(`tr`,{children:t.getAllCells().map(t=>(0,e.jsx)(`td`,{children:(0,e.jsx)(E.FlexRender,{cell:t})},t.id))},t.id))})]})}),!a&&(0,e.jsx)(`div`,{className:j.cards,role:`list`,"aria-label":f??d,children:p?(0,e.jsx)(T,{lines:4}):M?(0,e.jsx)(`div`,{className:j.state,children:M}):D.length===0?(0,e.jsx)(`div`,{className:j.state,children:h}):D.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=>typeof e.accessor==`function`?e.accessor(t.original):t.original[e.accessor],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:j.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?j.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)})})]})},N=({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 O=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())},k=(e,t)=>{let r=D(n,e,t);x.current[r]?.focus(),x.current[r]?.scrollIntoView({block:`nearest`})};return(0,e.jsxs)(`div`,{ref:y,className:[E.wrapper,c?E.errorState:``,u].filter(Boolean).join(` `),children:[s&&(0,e.jsx)(`label`,{htmlFor:g,className:E.label,children:s}),(0,e.jsxs)(`div`,{className:E.container,children:[(0,e.jsxs)(`button`,{ref:b,id:g,type:`button`,name:d,className:E.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(()=>k(e.key===`ArrowDown`?0:n.length-1,t))}},children:[(0,e.jsx)(`span`,{className:S.length?E.value:E.placeholder,children:C||a}),(0,e.jsx)(`span`,{className:`${E.chevron} ${_?E.chevronOpen:``}`,"aria-hidden":`true`,children:`⌄`})]}),_&&(0,e.jsx)(`ul`,{id:`${g}-listbox`,className:E.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:`${E.option} ${a?E.selected:``}`,onClick:()=>O(t),onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;k(i+t,t)}if(e.key===`Home`||e.key===`End`){e.preventDefault();let t=e.key===`Home`?1:-1;k(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:E.message,children:l}),c&&(0,e.jsx)(`span`,{id:T,className:E.error,children:c})]})},ne={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`},P=({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:ne[t]})]}),F={root:`_root_1897l_1`,header:`_header_1897l_11`,title:`_title_1897l_21`,dismiss:`_dismiss_1897l_28`,content:`_content_1897l_57`},re=({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:`${F.root} ${c}`,"aria-labelledby":l,children:[(0,e.jsxs)(`header`,{className:F.header,children:[(0,e.jsx)(s,{id:l,className:F.title,children:n}),i&&(0,e.jsx)(`button`,{type:`button`,className:F.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:F.content,children:r})]})},I={wrapper:`_wrapper_1bpdz_1`,control:`_control_1bpdz_3`,input:`_input_1bpdz_5`,disabledText:`_disabledText_1bpdz_5`,inputError:`_inputError_1bpdz_11`,clear:`_clear_1bpdz_13`},L=({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,onFocus:b,...x})=>{let S=(0,t.useId)(),C=g??`ds-input-${h??S}`,w=(0,t.useRef)(null),T=d?`${C}-hint`:void 0,E=u?`${C}-error`:void 0,D=String(n??``),O=[T,E].filter(Boolean).join(` `)||void 0;return(0,e.jsxs)(`div`,{className:`${I.wrapper} ${m}`,children:[l&&(0,e.jsx)(f,{htmlFor:C,required:v,disabled:o,children:l}),o&&c?(0,e.jsx)(`div`,{id:C,className:I.disabledText,"aria-describedby":O,children:D||a}):(0,e.jsxs)(`div`,{className:I.control,children:[(0,e.jsx)(`input`,{ref:w,id:C,name:h,type:i,value:D,placeholder:a,disabled:o,readOnly:s,required:v,"aria-invalid":!!u,"aria-describedby":O,className:`${I.input} ${u?I.inputError:``}`,onChange:e=>{if(i===`number`){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(),b?.(e)},...x}),_&&D&&!o&&!s&&(0,e.jsx)(`button`,{type:`button`,className:I.clear,"aria-label":`Очистить поле`,onClick:()=>{let e=w.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:T,children:d}),u&&(0,e.jsx)(p,{id:E,variant:`error`,children:u})]})},R={wrapper:`_wrapper_8srjz_1`,input:`_input_8srjz_11`,switch:`_switch_8srjz_18`,thumb:`_thumb_8srjz_34`,label:`_label_8srjz_56`,disabled:`_disabled_8srjz_62`},z=({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:`${R.wrapper} ${a?R.disabled:``} ${s}`,children:[(0,e.jsx)(`input`,{id:f,className:R.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:R.switch,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:R.thumb})}),i&&(0,e.jsx)(`span`,{className:R.label,children:i})]})},B={root:`_root_kepgo_1`,grid:`_grid_kepgo_3`,actions:`_actions_kepgo_5`},ie=({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:`${B.root} ${l}`,"aria-label":`Фильтры`,"aria-busy":s,children:[(0,e.jsx)(`div`,{className:B.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)(L,{...n,type:`number`,value:i??``,onChange:e=>d(t.id,e)}):(0,e.jsx)(L,{...n,type:`text`,value:String(i??``),onChange:e=>d(t.id,e)})}if(t.type===`dropdown`)return(0,e.jsx)(O,{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)(N,{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)(z,{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)(C,{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:B.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:`Применить`})]})]})},ae=0,V=(0,i.create)(e=>({modals:[],openModal:(t,n={},r={})=>{ae+=1;let i=`ds-modal-${ae}`;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:[]})})),oe=()=>V.setState({modals:[]}),H={layer:`_layer_bl99k_1`,backdrop:`_backdrop_bl99k_2`,panel:`_panel_bl99k_3`,header:`_header_bl99k_5`,title:`_title_bl99k_6`,description:`_description_bl99k_7`,content:`_content_bl99k_8`},U=`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`,W=({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=V(e=>e.closeModal);return(0,t.useEffect)(()=>{let e=document.activeElement,t=f.current;return(t?.querySelector(U)??t)?.focus(),()=>e?.focus()},[]),(0,e.jsxs)(`div`,{ref:f,className:`${H.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(U)??[]);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:H.header,children:[r&&(0,e.jsx)(`h2`,{id:l,className:H.title,children:r}),(0,e.jsx)(u,{variant:`ghost`,size:`sm`,"aria-label":o,onClick:()=>p(a),children:`×`})]}),i&&(0,e.jsx)(`p`,{id:d,className:H.description,children:i}),(0,e.jsx)(`div`,{className:H.content,children:n})]})},G=({registry:n})=>{let i=V(e=>e.modals),a=V(e=>e.closeModal),o=V(e=>e.closeAllModals);return(0,t.useEffect)(()=>{let e=e=>{if(e.key!==`Escape`)return;let t=V.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:H.layer,"aria-label":`Модальные окна`,children:i.map((t,r)=>{let s=n[t.name];return s?(0,e.jsx)(`div`,{className:H.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)},se=({registry:n,children:r,lockBodyScroll:i=!0})=>{let a=V(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)(G,{registry:n})]})},K=e=>e,q={message:`_message_187g8_1`,actions:`_actions_187g8_2`},J=new Map,ce=0,le=({modalId:t,close:n,title:r=`Подтверждение`,message:i=`Продолжить действие?`,confirmLabel:a=`Подтвердить`,cancelLabel:o=`Отмена`,tone:s=`default`,requestId:c})=>{let l=e=>{J.get(c)?.(e),J.delete(c),n()};return(0,e.jsxs)(W,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:q.message,children:i}),(0,e.jsxs)(`div`,{className:q.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})]})]})},ue=({modalId:t,close:n,title:r=`Ошибка`,message:i,closeLabel:a=`Закрыть`})=>(0,e.jsxs)(W,{modalId:t,title:r,role:`alertdialog`,children:[(0,e.jsx)(`p`,{className:q.message,children:i}),(0,e.jsx)(`div`,{className:q.actions,children:(0,e.jsx)(u,{onClick:n,children:a})})]}),de=K({ConfirmModal:le,ErrorModal:ue}),fe=()=>{let e=V(e=>e.openModal);return(t={})=>new Promise(n=>{ce+=1;let r=`confirm-${ce}`;J.set(r,n),e(`ConfirmModal`,{...t,requestId:r},{closeOnEscape:!1})})},pe=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=V(e=>e.openModal);return{showError:(t,n)=>e(`ErrorModal`,{title:n,message:pe(t)})}},he=(0,i.create)(()=>({})),ge=(0,i.create)(()=>({})),_e=()=>{let e=V(e=>e.modals),t=V(e=>e.openModal);return{openModal:(e,n={},r)=>t(e,n,r),closeModal:V(e=>e.closeModal),closeTopModal:V(e=>e.closeTopModal),closeAllModals:V(e=>e.closeAllModals),isOpen:t=>e.some(e=>e.name===t),count:e.length}},ve={root:`_root_1j70j_1`},ye=({label:t=`Загрузка страницы`,className:n=``})=>(0,e.jsxs)(`div`,{className:`${ve.root} ${n}`,role:`status`,"aria-label":t,children:[(0,e.jsx)(c,{decorative:!0}),(0,e.jsx)(`span`,{children:t})]}),Y={root:`_root_ig8lp_1`,legend:`_legend_ig8lp_2`,range:`_range_ig8lp_3`},be=[{value:`1`,label:`День`},{value:`2`,label:`Неделя`},{value:`3`,label:`Месяц`}],xe={day:1,week:2,month:3},Se=({value:t,onChange:n,label:r,hint:i,error:a,disabled:o=!1,min:s,max:c,className:l=``,periodTypeOptions:u=be})=>(0,e.jsxs)(`fieldset`,{className:`${Y.root} ${l}`,disabled:o,children:[r&&(0,e.jsx)(`legend`,{className:Y.legend,children:r}),(0,e.jsx)(O,{options:u,value:String(t.periodType),disabled:o,onChange:e=>n?.({...t,periodType:Number(e)}),label:`Тип периода`}),(0,e.jsxs)(`div`,{className:Y.range,children:[(0,e.jsx)(b,{value:t.startDate,onChange:e=>n?.({...t,startDate:e}),label:`Начало`,min:s,max:c,disabled:o}),(0,e.jsx)(b,{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})]}),X={viewport:`_viewport_v7rog_1`,"top-right":`_top-right_v7rog_2`,"top-left":`_top-left_v7rog_3`,"bottom-right":`_bottom-right_v7rog_4`,"bottom-left":`_bottom-left_v7rog_5`,toast:`_toast_v7rog_6`,body:`_body_v7rog_7`,icon:`_icon_v7rog_8`,info:`_info_v7rog_9`,success:`_success_v7rog_10`,warning:`_warning_v7rog_11`,error:`_error_v7rog_12`},Ce=({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:`${X.toast} ${X[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)(P,{name:n.variant===`warning`?`warning`:`info`,className:X.icon}),(0,e.jsxs)(`div`,{className:X.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:`ghost`,size:`sm`,onClick:()=>{n.action?.onClick(),(n.action?.dismissOnClick??!0)&&r(n.id)},children:n.action.label})]}),n.closable&&(0,e.jsx)(u,{variant:`ghost`,size:`sm`,"aria-label":`Закрыть уведомление`,onClick:()=>r(n.id),children:`×`})]})},we=0,Z=(0,i.create)(e=>({toasts:[],showToast:t=>{we+=1;let n=`ds-toast-${we}`;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:[]})})),Te=()=>Z.setState({toasts:[]}),Ee=({position:t=`top-right`})=>{let n=Z(e=>e.toasts),r=Z(e=>e.removeToast);return(0,e.jsx)(`div`,{className:`${X.viewport} ${X[t]}`,"aria-label":`Уведомления`,children:n.map(t=>(0,e.jsx)(Ce,{toast:t,onClose:r},t.id))})},De=()=>{let e=Z(e=>e.showToast),t=Z(e=>e.removeToast),n=Z(e=>e.clearToasts),r=t=>n=>e({...n,variant:t});return{showToast:e,infoToast:r(`info`),successToast:r(`success`),warningToast:r(`warning`),errorToast:r(`error`),removeToast:t,clearToasts:n}},Q={root:`_root_2bxal_1`,tooltip:`_tooltip_2bxal_2`,"ds-tooltip-in":`_ds-tooltip-in_2bxal_1`,top:`_top_2bxal_3`,bottom:`_bottom_2bxal_4`,left:`_left_2bxal_5`,right:`_right_2bxal_6`},Oe=({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:`${Q.root} ${c}`,onPointerDown:u?m:p,children:[h,u&&(0,e.jsx)(`span`,{id:l,role:`tooltip`,className:`${Q.tooltip} ${Q[i]}`,style:{maxWidth:s},children:n})]})},$={root:`_root_tgni1_1`,frame:`_frame_tgni1_2`,video:`_video_tgni1_3`,overlay:`_overlay_tgni1_4`,error:`_error_tgni1_4`,caption:`_caption_tgni1_7`},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=le,exports.DSBadge=o,exports.DSButton=u,exports.DSCheckbox=h,exports.DSDataTable=M,exports.DSDateRange=C,exports.DSDateTimePicker=b,exports.DSDropDown=O,exports.DSDropDownMultiple=N,exports.DSFieldLabel=f,exports.DSFieldMessage=p,exports.DSFilters=ie,exports.DSIcon=P,exports.DSInfoBlock=re,exports.DSInput=L,exports.DSLoader=c,exports.DSModal=G,exports.DSModalFrame=W,exports.DSPageLoader=ye,exports.DSRadioButton=z,exports.DSSkeleton=T,exports.DSSort=A,exports.DSTimePeriodPicker=Se,exports.DSToast=Ce,exports.DSToastProvider=Ee,exports.DSTooltip=Oe,exports.DSVideoPlayerFrame=ke,exports.DS_PERIOD_TYPE_CODES=xe,exports.ErrorModal=ue,exports.ModalSystemProvider=se,exports.builtInModalRegistry=de,exports.defineModalRegistry=K,exports.formatDateTimeLocalValue=v,exports.getErrorMessage=pe,exports.getNextEnabledOptionIndex=D,exports.isValidDateRange=S,exports.parseDateTimeLocalValue=y,exports.resetModalStore=oe,exports.resetToastStore=Te,exports.useConfirmModal=fe,exports.useConfirmModalStore=he,exports.useErrorModal=me,exports.useErrorModalStore=ge,exports.useModals=_e,exports.useModalsStore=V,exports.useToast=De,exports.useToastStore=Z,exports.validateDSDataTableData=te;
package/dist/index.es.js CHANGED
@@ -45,17 +45,17 @@ var v = {
45
45
  "aria-label": i ? void 0 : n,
46
46
  "aria-hidden": i || void 0
47
47
  }), S = {
48
- button: "_button_3nz3z_1",
49
- sm: "_sm_3nz3z_16",
50
- md: "_md_3nz3z_17",
51
- lg: "_lg_3nz3z_18",
52
- primary: "_primary_3nz3z_19",
53
- secondary: "_secondary_3nz3z_20",
54
- outline: "_outline_3nz3z_21",
55
- ghost: "_ghost_3nz3z_22",
56
- empty: "_empty_3nz3z_22",
57
- destructive: "_destructive_3nz3z_23",
58
- destructiveOutline: "_destructiveOutline_3nz3z_24"
48
+ button: "_button_14t1a_1",
49
+ sm: "_sm_14t1a_16",
50
+ md: "_md_14t1a_17",
51
+ lg: "_lg_14t1a_18",
52
+ primary: "_primary_14t1a_19",
53
+ secondary: "_secondary_14t1a_20",
54
+ outline: "_outline_14t1a_21",
55
+ ghost: "_ghost_14t1a_22",
56
+ empty: "_empty_14t1a_22",
57
+ destructive: "_destructive_14t1a_23",
58
+ destructiveOutline: "_destructiveOutline_14t1a_24"
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
61
  type: s,
@@ -782,79 +782,87 @@ var w = {
782
782
  disabledText: "_disabledText_1bpdz_5",
783
783
  inputError: "_inputError_1bpdz_11",
784
784
  clear: "_clear_1bpdz_13"
785
- }, le = ({ value: e, onChange: r, type: i = "text", placeholder: a = "", disabled: o = !1, readOnly: c = !1, stringWhileDisabled: u = !1, label: d, error: f, hint: p, className: m = "", name: h, id: g, clearable: _ = !0, required: v = !1, ...y }) => {
786
- let b = s(), x = g ?? `ds-input-${h ?? b}`, S = l(null), C = p ? `${x}-hint` : void 0, w = f ? `${x}-error` : void 0, D = String(e ?? ""), O = [C, w].filter(Boolean).join(" ") || void 0;
785
+ }, G = ({ value: e, onChange: r, type: i = "text", placeholder: a = "", disabled: o = !1, readOnly: c = !1, stringWhileDisabled: u = !1, label: d, error: f, hint: p, className: m = "", name: h, id: g, clearable: _ = !0, required: v = !1, selectTextOnFocus: y = !1, onFocus: b, ...x }) => {
786
+ let S = s(), C = g ?? `ds-input-${h ?? S}`, w = l(null), D = p ? `${C}-hint` : void 0, O = f ? `${C}-error` : void 0, k = String(e ?? ""), A = [D, O].filter(Boolean).join(" ") || void 0;
787
787
  return /* @__PURE__ */ n("div", {
788
788
  className: `${W.wrapper} ${m}`,
789
789
  children: [
790
790
  d && /* @__PURE__ */ t(T, {
791
- htmlFor: x,
791
+ htmlFor: C,
792
792
  required: v,
793
793
  disabled: o,
794
794
  children: d
795
795
  }),
796
796
  o && u ? /* @__PURE__ */ t("div", {
797
- id: x,
797
+ id: C,
798
798
  className: W.disabledText,
799
- "aria-describedby": O,
800
- children: D || a
799
+ "aria-describedby": A,
800
+ children: k || a
801
801
  }) : /* @__PURE__ */ n("div", {
802
802
  className: W.control,
803
803
  children: [/* @__PURE__ */ t("input", {
804
- ref: S,
805
- id: x,
804
+ ref: w,
805
+ id: C,
806
806
  name: h,
807
807
  type: i,
808
- value: D,
808
+ value: k,
809
809
  placeholder: a,
810
810
  disabled: o,
811
811
  readOnly: c,
812
812
  required: v,
813
813
  "aria-invalid": !!f,
814
- "aria-describedby": O,
814
+ "aria-describedby": A,
815
815
  className: `${W.input} ${f ? W.inputError : ""}`,
816
816
  onChange: (e) => {
817
- i === "number" && e.target.value !== "" ? r?.(Number(e.target.value), e) : r?.(e.target.value, e);
817
+ if (i === "number") {
818
+ let t = e.target.value === "" ? "" : Number(e.target.value);
819
+ r?.(t, e);
820
+ return;
821
+ }
822
+ r?.(e.target.value, e);
823
+ },
824
+ onFocus: (e) => {
825
+ y && e.currentTarget.value && e.currentTarget.select(), b?.(e);
818
826
  },
819
- ...y
820
- }), _ && D && !o && !c && /* @__PURE__ */ t("button", {
827
+ ...x
828
+ }), _ && k && !o && !c && /* @__PURE__ */ t("button", {
821
829
  type: "button",
822
830
  className: W.clear,
823
831
  "aria-label": "Очистить поле",
824
832
  onClick: () => {
825
- let e = S.current;
833
+ let e = w.current;
826
834
  e && ((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
827
835
  },
828
836
  children: "×"
829
837
  })]
830
838
  }),
831
839
  p && !f && /* @__PURE__ */ t(E, {
832
- id: C,
840
+ id: D,
833
841
  children: p
834
842
  }),
835
843
  f && /* @__PURE__ */ t(E, {
836
- id: w,
844
+ id: O,
837
845
  variant: "error",
838
846
  children: f
839
847
  })
840
848
  ]
841
849
  });
842
- }, G = {
850
+ }, K = {
843
851
  wrapper: "_wrapper_8srjz_1",
844
852
  input: "_input_8srjz_11",
845
853
  switch: "_switch_8srjz_18",
846
854
  thumb: "_thumb_8srjz_34",
847
855
  label: "_label_8srjz_56",
848
856
  disabled: "_disabled_8srjz_62"
849
- }, ue = ({ checked: e, onChange: r, label: i, disabled: a = !1, readOnly: o = !1, className: c = "", name: l, id: u, value: d }) => {
857
+ }, le = ({ checked: e, onChange: r, label: i, disabled: a = !1, readOnly: o = !1, className: c = "", name: l, id: u, value: d }) => {
850
858
  let f = s(), p = u ?? `ds-radio-button-${l ?? f}`;
851
859
  return /* @__PURE__ */ n("label", {
852
860
  htmlFor: p,
853
- className: `${G.wrapper} ${a ? G.disabled : ""} ${c}`,
861
+ className: `${K.wrapper} ${a ? K.disabled : ""} ${c}`,
854
862
  children: [
855
863
  /* @__PURE__ */ t("input", {
856
864
  id: p,
857
- className: G.input,
865
+ className: K.input,
858
866
  type: "checkbox",
859
867
  role: "switch",
860
868
  name: l,
@@ -867,21 +875,21 @@ var w = {
867
875
  }
868
876
  }),
869
877
  /* @__PURE__ */ t("span", {
870
- className: G.switch,
878
+ className: K.switch,
871
879
  "aria-hidden": "true",
872
- children: /* @__PURE__ */ t("span", { className: G.thumb })
880
+ children: /* @__PURE__ */ t("span", { className: K.thumb })
873
881
  }),
874
882
  i && /* @__PURE__ */ t("span", {
875
- className: G.label,
883
+ className: K.label,
876
884
  children: i
877
885
  })
878
886
  ]
879
887
  });
880
- }, K = {
888
+ }, q = {
881
889
  root: "_root_kepgo_1",
882
890
  grid: "_grid_kepgo_3",
883
891
  actions: "_actions_kepgo_5"
884
- }, de = ({ filters: e, values: r, onChange: i, onApply: a, onReset: o, applyMode: s = "instant", loading: c = !1, disabled: l = !1, className: u = "" }) => {
892
+ }, ue = ({ filters: e, values: r, onChange: i, onApply: a, onReset: o, applyMode: s = "instant", loading: c = !1, disabled: l = !1, className: u = "" }) => {
885
893
  let d = (e, t) => {
886
894
  let n = {
887
895
  ...r,
@@ -890,22 +898,33 @@ var w = {
890
898
  i?.(n, e), s === "instant" && a?.(n);
891
899
  };
892
900
  return /* @__PURE__ */ n("section", {
893
- className: `${K.root} ${u}`,
901
+ className: `${q.root} ${u}`,
894
902
  "aria-label": "Фильтры",
895
903
  "aria-busy": c,
896
904
  children: [/* @__PURE__ */ t("div", {
897
- className: K.grid,
905
+ className: q.grid,
898
906
  children: e.filter((e) => !e.hidden).map((e) => {
899
907
  let n = l || c || e.disabled, i = r[e.id];
900
- if (e.type === "input") return /* @__PURE__ */ t(le, {
901
- label: e.label,
902
- hint: e.hint,
903
- placeholder: e.placeholder,
904
- type: e.inputType,
905
- value: i ?? "",
906
- disabled: n,
907
- onChange: (t) => d(e.id, t)
908
- }, e.id);
908
+ if (e.type === "input") {
909
+ let r = {
910
+ key: e.id,
911
+ label: e.label,
912
+ hint: e.hint,
913
+ placeholder: e.placeholder,
914
+ disabled: n
915
+ };
916
+ return e.inputType === "number" ? /* @__PURE__ */ t(G, {
917
+ ...r,
918
+ type: "number",
919
+ value: i ?? "",
920
+ onChange: (t) => d(e.id, t)
921
+ }) : /* @__PURE__ */ t(G, {
922
+ ...r,
923
+ type: "text",
924
+ value: String(i ?? ""),
925
+ onChange: (t) => d(e.id, t)
926
+ });
927
+ }
909
928
  if (e.type === "dropdown") return /* @__PURE__ */ t(B, {
910
929
  label: e.label,
911
930
  hint: e.hint,
@@ -931,7 +950,7 @@ var w = {
931
950
  disabled: n,
932
951
  onChange: (t) => d(e.id, t)
933
952
  }, e.id);
934
- if (e.type === "radio") return /* @__PURE__ */ t(ue, {
953
+ if (e.type === "radio") return /* @__PURE__ */ t(le, {
935
954
  label: e.label,
936
955
  checked: !!i,
937
956
  disabled: n,
@@ -952,7 +971,7 @@ var w = {
952
971
  }, e.id);
953
972
  })
954
973
  }), (o || s === "manual") && /* @__PURE__ */ n("div", {
955
- className: K.actions,
974
+ className: q.actions,
956
975
  children: [o && /* @__PURE__ */ t(C, {
957
976
  variant: "destructiveOutline",
958
977
  disabled: l || c,
@@ -966,11 +985,11 @@ var w = {
966
985
  })]
967
986
  })]
968
987
  });
969
- }, fe = 0, q = _((e) => ({
988
+ }, de = 0, J = _((e) => ({
970
989
  modals: [],
971
990
  openModal: (t, n = {}, r = {}) => {
972
- fe += 1;
973
- let i = `ds-modal-${fe}`;
991
+ de += 1;
992
+ let i = `ds-modal-${de}`;
974
993
  return e((e) => ({ modals: [...e.modals, {
975
994
  id: i,
976
995
  name: t,
@@ -982,7 +1001,7 @@ var w = {
982
1001
  closeModal: (t) => e((e) => ({ modals: e.modals.filter((e) => e.id !== t) })),
983
1002
  closeTopModal: () => e((e) => ({ modals: e.modals.slice(0, -1) })),
984
1003
  closeAllModals: () => e({ modals: [] })
985
- })), pe = () => q.setState({ modals: [] }), J = {
1004
+ })), fe = () => J.setState({ modals: [] }), Y = {
986
1005
  layer: "_layer_bl99k_1",
987
1006
  backdrop: "_backdrop_bl99k_2",
988
1007
  panel: "_panel_bl99k_3",
@@ -990,14 +1009,14 @@ var w = {
990
1009
  title: "_title_bl99k_6",
991
1010
  description: "_description_bl99k_7",
992
1011
  content: "_content_bl99k_8"
993
- }, me = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Y = ({ children: e, title: r, description: i, modalId: a, closeLabel: c = "Закрыть модальное окно", className: u = "", role: d = "dialog" }) => {
994
- let f = s(), p = s(), m = l(null), h = q((e) => e.closeModal);
1012
+ }, pe = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", me = ({ children: e, title: r, description: i, modalId: a, closeLabel: c = "Закрыть модальное окно", className: u = "", role: d = "dialog" }) => {
1013
+ let f = s(), p = s(), m = l(null), h = J((e) => e.closeModal);
995
1014
  return o(() => {
996
1015
  let e = document.activeElement, t = m.current;
997
- return (t?.querySelector(me) ?? t)?.focus(), () => e?.focus();
1016
+ return (t?.querySelector(pe) ?? t)?.focus(), () => e?.focus();
998
1017
  }, []), /* @__PURE__ */ n("div", {
999
1018
  ref: m,
1000
- className: `${J.panel} ${u}`,
1019
+ className: `${Y.panel} ${u}`,
1001
1020
  role: d,
1002
1021
  "aria-modal": "true",
1003
1022
  "aria-labelledby": r ? f : void 0,
@@ -1005,7 +1024,7 @@ var w = {
1005
1024
  tabIndex: -1,
1006
1025
  onKeyDown: (e) => {
1007
1026
  if (e.key !== "Tab") return;
1008
- let t = Array.from(m.current?.querySelectorAll(me) ?? []);
1027
+ let t = Array.from(m.current?.querySelectorAll(pe) ?? []);
1009
1028
  if (!t.length) {
1010
1029
  e.preventDefault();
1011
1030
  return;
@@ -1015,10 +1034,10 @@ var w = {
1015
1034
  },
1016
1035
  children: [
1017
1036
  (r || c) && /* @__PURE__ */ n("header", {
1018
- className: J.header,
1037
+ className: Y.header,
1019
1038
  children: [r && /* @__PURE__ */ t("h2", {
1020
1039
  id: f,
1021
- className: J.title,
1040
+ className: Y.title,
1022
1041
  children: r
1023
1042
  }), /* @__PURE__ */ t(C, {
1024
1043
  variant: "ghost",
@@ -1030,31 +1049,31 @@ var w = {
1030
1049
  }),
1031
1050
  i && /* @__PURE__ */ t("p", {
1032
1051
  id: p,
1033
- className: J.description,
1052
+ className: Y.description,
1034
1053
  children: i
1035
1054
  }),
1036
1055
  /* @__PURE__ */ t("div", {
1037
- className: J.content,
1056
+ className: Y.content,
1038
1057
  children: e
1039
1058
  })
1040
1059
  ]
1041
1060
  });
1042
1061
  }, he = ({ registry: e }) => {
1043
- let n = q((e) => e.modals), r = q((e) => e.closeModal), i = q((e) => e.closeAllModals);
1062
+ let n = J((e) => e.modals), r = J((e) => e.closeModal), i = J((e) => e.closeAllModals);
1044
1063
  return o(() => {
1045
1064
  let e = (e) => {
1046
1065
  if (e.key !== "Escape") return;
1047
- let t = q.getState().modals.at(-1);
1066
+ let t = J.getState().modals.at(-1);
1048
1067
  t?.closeOnEscape && r(t.id);
1049
1068
  };
1050
1069
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1051
1070
  }, [r]), !n.length || typeof document > "u" ? null : g(/* @__PURE__ */ t("div", {
1052
- className: J.layer,
1071
+ className: Y.layer,
1053
1072
  "aria-label": "Модальные окна",
1054
1073
  children: n.map((a, o) => {
1055
1074
  let s = e[a.name];
1056
1075
  return s ? /* @__PURE__ */ t("div", {
1057
- className: J.backdrop,
1076
+ className: Y.backdrop,
1058
1077
  "aria-hidden": o !== n.length - 1 || void 0,
1059
1078
  onMouseDown: (e) => {
1060
1079
  e.target === e.currentTarget && a.closeOnBackdrop && r(a.id);
@@ -1069,7 +1088,7 @@ var w = {
1069
1088
  })
1070
1089
  }), document.body);
1071
1090
  }, ge = ({ registry: r, children: i, lockBodyScroll: a = !0 }) => {
1072
- let s = q((e) => e.modals.length);
1091
+ let s = J((e) => e.modals.length);
1073
1092
  return o(() => {
1074
1093
  if (!a || s === 0) return;
1075
1094
  let e = document.body.style.overflow;
@@ -1084,7 +1103,7 @@ var w = {
1084
1103
  let u = (e) => {
1085
1104
  ve.get(l)?.(e), ve.delete(l), r();
1086
1105
  };
1087
- return /* @__PURE__ */ n(Y, {
1106
+ return /* @__PURE__ */ n(me, {
1088
1107
  modalId: e,
1089
1108
  title: i,
1090
1109
  role: "alertdialog",
@@ -1104,7 +1123,7 @@ var w = {
1104
1123
  })]
1105
1124
  })]
1106
1125
  });
1107
- }, xe = ({ modalId: e, close: r, title: i = "Ошибка", message: a, closeLabel: o = "Закрыть" }) => /* @__PURE__ */ n(Y, {
1126
+ }, xe = ({ modalId: e, close: r, title: i = "Ошибка", message: a, closeLabel: o = "Закрыть" }) => /* @__PURE__ */ n(me, {
1108
1127
  modalId: e,
1109
1128
  title: i,
1110
1129
  role: "alertdialog",
@@ -1122,7 +1141,7 @@ var w = {
1122
1141
  ConfirmModal: be,
1123
1142
  ErrorModal: xe
1124
1143
  }), Ce = () => {
1125
- let e = q((e) => e.openModal);
1144
+ let e = J((e) => e.openModal);
1126
1145
  return (t = {}) => new Promise((n) => {
1127
1146
  ye += 1;
1128
1147
  let r = `confirm-${ye}`;
@@ -1132,18 +1151,18 @@ var w = {
1132
1151
  }, { closeOnEscape: !1 });
1133
1152
  });
1134
1153
  }, we = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : "Произошла неизвестная ошибка", Te = () => {
1135
- let e = q((e) => e.openModal);
1154
+ let e = J((e) => e.openModal);
1136
1155
  return { showError: (t, n) => e("ErrorModal", {
1137
1156
  title: n,
1138
1157
  message: we(t)
1139
1158
  }) };
1140
1159
  }, Ee = _(() => ({})), De = _(() => ({})), Oe = () => {
1141
- let e = q((e) => e.modals), t = q((e) => e.openModal);
1160
+ let e = J((e) => e.modals), t = J((e) => e.openModal);
1142
1161
  return {
1143
1162
  openModal: (e, n = {}, r) => t(e, n, r),
1144
- closeModal: q((e) => e.closeModal),
1145
- closeTopModal: q((e) => e.closeTopModal),
1146
- closeAllModals: q((e) => e.closeAllModals),
1163
+ closeModal: J((e) => e.closeModal),
1164
+ closeTopModal: J((e) => e.closeTopModal),
1165
+ closeAllModals: J((e) => e.closeAllModals),
1147
1166
  isOpen: (t) => e.some((e) => e.name === t),
1148
1167
  count: e.length
1149
1168
  };
@@ -1408,4 +1427,4 @@ var w = {
1408
1427
  });
1409
1428
  };
1410
1429
  //#endregion
1411
- export { be as ConfirmModal, y as DSBadge, C as DSButton, O as DSCheckbox, ie as DSDataTable, ee as DSDateRange, N as DSDateTimePicker, B as DSDropDown, ae as DSDropDownMultiple, T as DSFieldLabel, E as DSFieldMessage, de as DSFilters, se as DSIcon, ce as DSInfoBlock, le as DSInput, x as DSLoader, he as DSModal, Y as DSModalFrame, Ae as DSPageLoader, ue as DSRadioButton, L as DSSkeleton, te as DSSort, Pe as DSTimePeriodPicker, Fe as DSToast, Re as DSToastProvider, Ve as DSTooltip, He as DSVideoPlayerFrame, Ne as DS_PERIOD_TYPE_CODES, xe as ErrorModal, ge as ModalSystemProvider, Se as builtInModalRegistry, _e as defineModalRegistry, j as formatDateTimeLocalValue, we as getErrorMessage, z as getNextEnabledOptionIndex, F as isValidDateRange, M as parseDateTimeLocalValue, pe as resetModalStore, Le as resetToastStore, Ce as useConfirmModal, Ee as useConfirmModalStore, Te as useErrorModal, De as useErrorModalStore, Oe as useModals, q as useModalsStore, ze as useToast, Q as useToastStore, re as validateDSDataTableData };
1430
+ export { be as ConfirmModal, y as DSBadge, C as DSButton, O as DSCheckbox, ie as DSDataTable, ee as DSDateRange, N as DSDateTimePicker, B as DSDropDown, ae as DSDropDownMultiple, T as DSFieldLabel, E as DSFieldMessage, ue as DSFilters, se as DSIcon, ce as DSInfoBlock, G as DSInput, x as DSLoader, he as DSModal, me as DSModalFrame, Ae as DSPageLoader, le as DSRadioButton, L as DSSkeleton, te as DSSort, Pe as DSTimePeriodPicker, Fe as DSToast, Re as DSToastProvider, Ve as DSTooltip, He as DSVideoPlayerFrame, Ne as DS_PERIOD_TYPE_CODES, xe as ErrorModal, ge as ModalSystemProvider, Se as builtInModalRegistry, _e as defineModalRegistry, j as formatDateTimeLocalValue, we as getErrorMessage, z as getNextEnabledOptionIndex, F as isValidDateRange, M as parseDateTimeLocalValue, fe as resetModalStore, Le as resetToastStore, Ce as useConfirmModal, Ee as useConfirmModalStore, Te as useErrorModal, De as useErrorModalStore, Oe as useModals, J as useModalsStore, ze as useToast, Q as useToastStore, re as validateDSDataTableData };
package/dist/style.css CHANGED
@@ -1,2 +1,2 @@
1
- :root{--color-primary:#179cf0;--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:#179cf02e;--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_l4qbw_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_l4qbw_2{min-height:20px;padding:0 7px}._md_l4qbw_3{min-height:24px;padding:0 9px}._neutral_l4qbw_4{background:var(--color-neutral-surface);color:var(--color-neutral-text)}._info_l4qbw_5{background:var(--color-info-surface);color:var(--color-info-text)}._success_l4qbw_6{background:var(--color-success-surface);color:var(--color-success-text)}._warning_l4qbw_7{background:var(--color-warning-surface);color:var(--color-warning-text)}._error_l4qbw_8{background:var(--color-error-surface);color:var(--color-error-text)}._dot_l4qbw_9{background:currentColor;border-radius:50%;width:6px;height:6px}._icon_l4qbw_10{display:inline-flex}._label_l4qbw_11{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._loader_pslm9_1{border:2px solid;border-right-color:#0000;border-radius:50%;width:20px;height:20px;animation:.7s linear infinite _ds-spin_pslm9_1;display:inline-block}._primary_pslm9_11{color:var(--color-primary)}._secondary_pslm9_12{color:var(--color-text)}._light_pslm9_13{color:var(--color-surface)}._danger_pslm9_14{color:var(--color-error)}@keyframes _ds-spin_pslm9_1{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){._loader_pslm9_1{animation-duration:1.5s}}._button_3nz3z_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_3nz3z_1:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._button_3nz3z_1:disabled{opacity:.55;cursor:not-allowed}._sm_3nz3z_16{min-height:var(--height-s);padding:4px 10px;font-size:12px}._md_3nz3z_17{min-height:var(--height-m);font-size:var(--text-size-s);padding:8px 16px}._lg_3nz3z_18{min-height:52px;font-size:var(--text-size-m);padding:12px 20px}._primary_3nz3z_19{background:var(--color-primary);color:var(--color-surface)}._secondary_3nz3z_20{background:var(--color-text);color:var(--color-surface)}._outline_3nz3z_21{border-color:var(--color-primary);color:var(--color-primary);background:0 0}._ghost_3nz3z_22,._empty_3nz3z_22{color:var(--color-text);background:0 0}._destructive_3nz3z_23{background:var(--color-error);color:var(--color-surface)}._destructiveOutline_3nz3z_24{border-color:var(--color-error);color:var(--color-error);background:0 0}._button_3nz3z_1:hover:not(:disabled){filter:brightness(.96)}._label_5v0ym_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_5v0ym_12,._error_5v0ym_13{color:var(--color-error)}._optional_5v0ym_17,._hint_5v0ym_18{color:var(--color-text-secondary);font-size:12px;font-weight:400}._disabled_5v0ym_24{color:var(--color-inactive)}._message_5v0ym_28{align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;display:flex}._success_5v0ym_36{color:var(--color-success)}._wrapper_1l5cg_1{gap:var(--gap-s);flex-direction:column;display:flex}._label_1l5cg_2{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_1l5cg_3{opacity:0;width:1px;height:1px;position:absolute}._control_1l5cg_4{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_1l5cg_3:checked+._control_1l5cg_4,._input_1l5cg_3:indeterminate+._control_1l5cg_4{background:var(--color-primary)}._input_1l5cg_3:focus-visible+._control_1l5cg_4{box-shadow:0 0 0 4px var(--color-focus-ring)}._disabled_1l5cg_7{color:var(--color-inactive);cursor:not-allowed}._disabled_1l5cg_7 ._control_1l5cg_4{opacity:.55}._controlError_1l5cg_9{border-color:var(--color-error)}._wrapper_1kr9x_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._input_1kr9x_2{min-height:var(--height-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:8px 12px}._input_1kr9x_2:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._input_1kr9x_2:disabled{color:var(--color-inactive);background:#e9e9e9}._error_1kr9x_5{border-color:var(--color-error)}._root_9h2e2_1{gap:var(--gap-s);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_9h2e2_2{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_9h2e2_3{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_9h2e2_3{grid-template-columns:1fr}}._group_1st6r_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._skeleton_1st6r_2{background:var(--color-skeleton-base);display:block;overflow:hidden}._text_1st6r_3{border-radius:4px;height:14px}._rectangular_1st6r_4{border-radius:var(--border-radius);min-height:44px}._circular_1st6r_5{border-radius:50%;width:40px;height:40px}._animated_1st6r_6{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_1st6r_1}@keyframes _ds-skeleton_1st6r_1{to{background-position-x:-200%}}@media (prefers-reduced-motion:reduce){._animated_1st6r_6{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_i4d62_1{gap:var(--gap-m);width:100%;color:var(--color-text);display:grid}._tableWrap_i4d62_2{border:1px solid var(--color-border);border-radius:var(--border-radius);overflow:auto}._table_i4d62_2{border-collapse:collapse;background:var(--color-surface);width:100%}._table_i4d62_2 caption{padding:var(--gap-s);text-align:left;font-weight:600}._table_i4d62_2 th,._table_i4d62_2 td{min-height:var(--height-m);padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);text-align:left}._table_i4d62_2 tbody tr:last-child td{border-bottom:0}._table_i4d62_2 tbody tr:hover{background:var(--color-info-surface)}._sticky_i4d62_8{z-index:1;background:var(--color-surface);position:sticky;top:0}._sortButton_i4d62_9{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_i4d62_9:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}._state_i4d62_11{padding:var(--gap-l);color:var(--color-text-secondary);text-align:center}._cards_i4d62_12,._mobileSort_i4d62_12{display:none}._card_i4d62_12{padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);gap:12px;display:grid}._card_i4d62_12 h3{font-size:var(--text-size-m);margin:0}._card_i4d62_12 dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}._card_i4d62_12 dt{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px}._card_i4d62_12 dd{overflow-wrap:anywhere;font-size:var(--text-size-s);margin:4px 0 0}._card_i4d62_12 footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:12px;display:flex}._spanTwo_i4d62_19{grid-column:span 2}@media (width<640px){._default_i4d62_21:not(._tableOnMobile_i4d62_21) ._tableWrap_i4d62_2{display:none}._default_i4d62_21:not(._tableOnMobile_i4d62_21) ._cards_i4d62_12{gap:12px;display:grid}._default_i4d62_21:not(._tableOnMobile_i4d62_21) ._mobileSort_i4d62_12{display:block}}@media (width<1280px){._wide_i4d62_23:not(._tableOnMobile_i4d62_21) ._tableWrap_i4d62_2{display:none}._wide_i4d62_23:not(._tableOnMobile_i4d62_21) ._cards_i4d62_12{gap:12px;display:grid}._wide_i4d62_23:not(._tableOnMobile_i4d62_21) ._mobileSort_i4d62_12{display:block}}._root_1897l_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_1897l_11{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_1897l_21{font-size:var(--text-size-m);margin:0;font-weight:600;line-height:1.4}._dismiss_1897l_28{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_1897l_28:hover{color:var(--color-text);background:#22252b12}._dismiss_1897l_28:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._dismiss_1897l_28 svg{width:20px;height:20px}._content_1897l_57{padding:var(--gap-m);font-size:var(--text-size-s);line-height:1.5}._wrapper_1bpdz_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_1bpdz_3{display:flex;position:relative}._input_1bpdz_5,._disabledText_1bpdz_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_1bpdz_5:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._input_1bpdz_5:disabled,._disabledText_1bpdz_5{color:var(--color-inactive);background:#e9e9e9}._inputError_1bpdz_11{border-color:var(--color-error)}._input_1bpdz_5:has(+._clear_1bpdz_13){padding-right:44px}._clear_1bpdz_13{width:32px;height:32px;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:6px;transform:translateY(-50%)}._clear_1bpdz_13:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._wrapper_8srjz_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_8srjz_11{opacity:0;width:1px;height:1px;position:absolute}._switch_8srjz_18{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_8srjz_34{background:var(--color-surface);border-radius:50%;width:18px;height:18px;transition:transform .2s;box-shadow:0 1px 3px #00000040}._input_8srjz_11:checked+._switch_8srjz_18{border-color:var(--color-primary);background:var(--color-primary)}._input_8srjz_11:checked+._switch_8srjz_18 ._thumb_8srjz_34{transform:translate(18px)}._input_8srjz_11:focus-visible+._switch_8srjz_18{box-shadow:0 0 0 4px var(--color-focus-ring)}._label_8srjz_56{font-size:var(--text-size-s);font-weight:600;line-height:1.4}._disabled_8srjz_62{color:var(--color-inactive);cursor:not-allowed}._disabled_8srjz_62 ._switch_8srjz_18{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}}._layer_bl99k_1{z-index:var(--z-modal);pointer-events:none;position:fixed;inset:0}._backdrop_bl99k_2{padding:var(--gap-m);pointer-events:auto;background:#0000007a;place-items:center;display:grid;position:absolute;inset:0}._panel_bl99k_3{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_bl99k_3:focus{outline:none}._header_bl99k_5{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_bl99k_6{margin:0;font-size:20px;line-height:1.3}._description_bl99k_7{padding:var(--gap-m) var(--gap-m) 0;color:var(--color-text-secondary);font-size:var(--text-size-s);margin:0}._content_bl99k_8{padding:var(--gap-m)}._message_187g8_1{color:var(--color-text);margin:0;line-height:1.5}._actions_187g8_2{justify-content:flex-end;gap:var(--gap-s);margin-top:var(--gap-l);display:flex}@media (width<480px){._actions_187g8_2{flex-direction:column-reverse}}._root_1j70j_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_ig8lp_1{gap:var(--gap-m);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_ig8lp_2{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_ig8lp_3{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_ig8lp_3{grid-template-columns:1fr}}._viewport_v7rog_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_v7rog_2{top:16px;right:16px}._top-left_v7rog_3{top:16px;left:16px}._bottom-right_v7rog_4{bottom:16px;right:16px}._bottom-left_v7rog_5{bottom:16px;left:16px}._toast_v7rog_6{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_v7rog_7{min-width:0;font-size:var(--text-size-s);flex-direction:column;flex:1;gap:6px;line-height:1.4;display:flex}._icon_v7rog_8{flex:none;width:20px;height:20px}._info_v7rog_9{border-left-color:var(--color-primary)}._success_v7rog_10{border-left-color:var(--color-success)}._warning_v7rog_11{border-left-color:var(--color-warning)}._error_v7rog_12{border-left-color:var(--color-error)}._root_2bxal_1{display:inline-flex;position:relative}._tooltip_2bxal_2{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_2bxal_1;position:absolute;box-shadow:0 6px 18px #0000002e}._top_2bxal_3{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._bottom_2bxal_4{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._left_2bxal_5{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._right_2bxal_6{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}@keyframes _ds-tooltip-in_2bxal_1{0%{opacity:0}}@media (prefers-reduced-motion:reduce){._tooltip_2bxal_2{animation:none}}._root_tgni1_1{gap:var(--gap-s);width:100%;margin:0;display:grid}._frame_tgni1_2{border-radius:var(--border-radius);background:#000;width:100%;position:relative;overflow:hidden}._video_tgni1_3{width:100%;height:100%;display:block}._overlay_tgni1_4,._error_tgni1_4{padding:var(--gap-m);text-align:center;place-items:center;display:grid;position:absolute;inset:0}._overlay_tgni1_4{color:#fff;background:#00000073}._error_tgni1_4{background:var(--color-error-surface);color:var(--color-error-text)}._caption_tgni1_7{color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._frame_tgni1_2: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_l4qbw_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_l4qbw_2{min-height:20px;padding:0 7px}._md_l4qbw_3{min-height:24px;padding:0 9px}._neutral_l4qbw_4{background:var(--color-neutral-surface);color:var(--color-neutral-text)}._info_l4qbw_5{background:var(--color-info-surface);color:var(--color-info-text)}._success_l4qbw_6{background:var(--color-success-surface);color:var(--color-success-text)}._warning_l4qbw_7{background:var(--color-warning-surface);color:var(--color-warning-text)}._error_l4qbw_8{background:var(--color-error-surface);color:var(--color-error-text)}._dot_l4qbw_9{background:currentColor;border-radius:50%;width:6px;height:6px}._icon_l4qbw_10{display:inline-flex}._label_l4qbw_11{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._loader_pslm9_1{border:2px solid;border-right-color:#0000;border-radius:50%;width:20px;height:20px;animation:.7s linear infinite _ds-spin_pslm9_1;display:inline-block}._primary_pslm9_11{color:var(--color-primary)}._secondary_pslm9_12{color:var(--color-text)}._light_pslm9_13{color:var(--color-surface)}._danger_pslm9_14{color:var(--color-error)}@keyframes _ds-spin_pslm9_1{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){._loader_pslm9_1{animation-duration:1.5s}}._button_14t1a_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_14t1a_1:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._button_14t1a_1:disabled{opacity:.55;cursor:not-allowed}._sm_14t1a_16{min-height:var(--height-s);padding:4px 10px;font-size:12px}._md_14t1a_17{min-height:var(--height-m);font-size:var(--text-size-s);padding:8px 16px}._lg_14t1a_18{min-height:52px;font-size:var(--text-size-m);padding:12px 20px}._primary_14t1a_19{background:var(--color-primary);color:var(--color-text-light,var(--color-surface))}._secondary_14t1a_20{background:var(--color-secondary,var(--color-text));color:var(--color-text-dark,var(--color-primary))}._outline_14t1a_21{border-color:var(--color-primary);color:var(--color-primary);background:0 0}._ghost_14t1a_22,._empty_14t1a_22{color:var(--color-text);background:0 0}._destructive_14t1a_23{background:var(--color-error);color:var(--color-surface)}._destructiveOutline_14t1a_24{border-color:var(--color-error);color:var(--color-error);background:0 0}._button_14t1a_1:hover:not(:disabled){filter:brightness(.96)}._label_5v0ym_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_5v0ym_12,._error_5v0ym_13{color:var(--color-error)}._optional_5v0ym_17,._hint_5v0ym_18{color:var(--color-text-secondary);font-size:12px;font-weight:400}._disabled_5v0ym_24{color:var(--color-inactive)}._message_5v0ym_28{align-items:flex-start;gap:6px;font-size:12px;line-height:1.4;display:flex}._success_5v0ym_36{color:var(--color-success)}._wrapper_1l5cg_1{gap:var(--gap-s);flex-direction:column;display:flex}._label_1l5cg_2{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_1l5cg_3{opacity:0;width:1px;height:1px;position:absolute}._control_1l5cg_4{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_1l5cg_3:checked+._control_1l5cg_4,._input_1l5cg_3:indeterminate+._control_1l5cg_4{background:var(--color-primary)}._input_1l5cg_3:focus-visible+._control_1l5cg_4{box-shadow:0 0 0 4px var(--color-focus-ring)}._disabled_1l5cg_7{color:var(--color-inactive);cursor:not-allowed}._disabled_1l5cg_7 ._control_1l5cg_4{opacity:.55}._controlError_1l5cg_9{border-color:var(--color-error)}._wrapper_1kr9x_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._input_1kr9x_2{min-height:var(--height-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);font:inherit;padding:8px 12px}._input_1kr9x_2:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._input_1kr9x_2:disabled{color:var(--color-inactive);background:#e9e9e9}._error_1kr9x_5{border-color:var(--color-error)}._root_9h2e2_1{gap:var(--gap-s);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_9h2e2_2{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_9h2e2_3{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_9h2e2_3{grid-template-columns:1fr}}._group_1st6r_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._skeleton_1st6r_2{background:var(--color-skeleton-base);display:block;overflow:hidden}._text_1st6r_3{border-radius:4px;height:14px}._rectangular_1st6r_4{border-radius:var(--border-radius);min-height:44px}._circular_1st6r_5{border-radius:50%;width:40px;height:40px}._animated_1st6r_6{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_1st6r_1}@keyframes _ds-skeleton_1st6r_1{to{background-position-x:-200%}}@media (prefers-reduced-motion:reduce){._animated_1st6r_6{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_i4d62_1{gap:var(--gap-m);width:100%;color:var(--color-text);display:grid}._tableWrap_i4d62_2{border:1px solid var(--color-border);border-radius:var(--border-radius);overflow:auto}._table_i4d62_2{border-collapse:collapse;background:var(--color-surface);width:100%}._table_i4d62_2 caption{padding:var(--gap-s);text-align:left;font-weight:600}._table_i4d62_2 th,._table_i4d62_2 td{min-height:var(--height-m);padding:12px var(--gap-m);border-bottom:1px solid var(--color-border);text-align:left}._table_i4d62_2 tbody tr:last-child td{border-bottom:0}._table_i4d62_2 tbody tr:hover{background:var(--color-info-surface)}._sticky_i4d62_8{z-index:1;background:var(--color-surface);position:sticky;top:0}._sortButton_i4d62_9{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_i4d62_9:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}._state_i4d62_11{padding:var(--gap-l);color:var(--color-text-secondary);text-align:center}._cards_i4d62_12,._mobileSort_i4d62_12{display:none}._card_i4d62_12{padding:var(--gap-m);border:1px solid var(--color-border);border-radius:var(--border-radius);background:var(--color-surface);gap:12px;display:grid}._card_i4d62_12 h3{font-size:var(--text-size-m);margin:0}._card_i4d62_12 dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}._card_i4d62_12 dt{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px}._card_i4d62_12 dd{overflow-wrap:anywhere;font-size:var(--text-size-s);margin:4px 0 0}._card_i4d62_12 footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding-top:12px;display:flex}._spanTwo_i4d62_19{grid-column:span 2}@media (width<640px){._default_i4d62_21:not(._tableOnMobile_i4d62_21) ._tableWrap_i4d62_2{display:none}._default_i4d62_21:not(._tableOnMobile_i4d62_21) ._cards_i4d62_12{gap:12px;display:grid}._default_i4d62_21:not(._tableOnMobile_i4d62_21) ._mobileSort_i4d62_12{display:block}}@media (width<1280px){._wide_i4d62_23:not(._tableOnMobile_i4d62_21) ._tableWrap_i4d62_2{display:none}._wide_i4d62_23:not(._tableOnMobile_i4d62_21) ._cards_i4d62_12{gap:12px;display:grid}._wide_i4d62_23:not(._tableOnMobile_i4d62_21) ._mobileSort_i4d62_12{display:block}}._root_1897l_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_1897l_11{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_1897l_21{font-size:var(--text-size-m);margin:0;font-weight:600;line-height:1.4}._dismiss_1897l_28{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_1897l_28:hover{color:var(--color-text);background:#22252b12}._dismiss_1897l_28:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._dismiss_1897l_28 svg{width:20px;height:20px}._content_1897l_57{padding:var(--gap-m);font-size:var(--text-size-s);line-height:1.5}._wrapper_1bpdz_1{gap:var(--gap-s);flex-direction:column;width:100%;display:flex}._control_1bpdz_3{display:flex;position:relative}._input_1bpdz_5,._disabledText_1bpdz_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_1bpdz_5:focus-visible{border-color:var(--color-primary);box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._input_1bpdz_5:disabled,._disabledText_1bpdz_5{color:var(--color-inactive);background:#e9e9e9}._inputError_1bpdz_11{border-color:var(--color-error)}._input_1bpdz_5:has(+._clear_1bpdz_13){padding-right:44px}._clear_1bpdz_13{width:32px;height:32px;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:6px;transform:translateY(-50%)}._clear_1bpdz_13:focus-visible{box-shadow:0 0 0 4px var(--color-focus-ring);outline:none}._wrapper_8srjz_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_8srjz_11{opacity:0;width:1px;height:1px;position:absolute}._switch_8srjz_18{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_8srjz_34{background:var(--color-surface);border-radius:50%;width:18px;height:18px;transition:transform .2s;box-shadow:0 1px 3px #00000040}._input_8srjz_11:checked+._switch_8srjz_18{border-color:var(--color-primary);background:var(--color-primary)}._input_8srjz_11:checked+._switch_8srjz_18 ._thumb_8srjz_34{transform:translate(18px)}._input_8srjz_11:focus-visible+._switch_8srjz_18{box-shadow:0 0 0 4px var(--color-focus-ring)}._label_8srjz_56{font-size:var(--text-size-s);font-weight:600;line-height:1.4}._disabled_8srjz_62{color:var(--color-inactive);cursor:not-allowed}._disabled_8srjz_62 ._switch_8srjz_18{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}}._layer_bl99k_1{z-index:var(--z-modal);pointer-events:none;position:fixed;inset:0}._backdrop_bl99k_2{padding:var(--gap-m);pointer-events:auto;background:#0000007a;place-items:center;display:grid;position:absolute;inset:0}._panel_bl99k_3{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_bl99k_3:focus{outline:none}._header_bl99k_5{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_bl99k_6{margin:0;font-size:20px;line-height:1.3}._description_bl99k_7{padding:var(--gap-m) var(--gap-m) 0;color:var(--color-text-secondary);font-size:var(--text-size-s);margin:0}._content_bl99k_8{padding:var(--gap-m)}._message_187g8_1{color:var(--color-text);margin:0;line-height:1.5}._actions_187g8_2{justify-content:flex-end;gap:var(--gap-s);margin-top:var(--gap-l);display:flex}@media (width<480px){._actions_187g8_2{flex-direction:column-reverse}}._root_1j70j_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_ig8lp_1{gap:var(--gap-m);border:0;flex-direction:column;width:100%;margin:0;padding:0;display:flex}._legend_ig8lp_2{margin-bottom:var(--gap-s);color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._range_ig8lp_3{gap:var(--gap-m);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}@media (width<640px){._range_ig8lp_3{grid-template-columns:1fr}}._viewport_v7rog_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_v7rog_2{top:16px;right:16px}._top-left_v7rog_3{top:16px;left:16px}._bottom-right_v7rog_4{bottom:16px;right:16px}._bottom-left_v7rog_5{bottom:16px;left:16px}._toast_v7rog_6{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_v7rog_7{min-width:0;font-size:var(--text-size-s);flex-direction:column;flex:1;gap:6px;line-height:1.4;display:flex}._icon_v7rog_8{flex:none;width:20px;height:20px}._info_v7rog_9{border-left-color:var(--color-primary)}._success_v7rog_10{border-left-color:var(--color-success)}._warning_v7rog_11{border-left-color:var(--color-warning)}._error_v7rog_12{border-left-color:var(--color-error)}._root_2bxal_1{display:inline-flex;position:relative}._tooltip_2bxal_2{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_2bxal_1;position:absolute;box-shadow:0 6px 18px #0000002e}._top_2bxal_3{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._bottom_2bxal_4{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._left_2bxal_5{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._right_2bxal_6{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}@keyframes _ds-tooltip-in_2bxal_1{0%{opacity:0}}@media (prefers-reduced-motion:reduce){._tooltip_2bxal_2{animation:none}}._root_tgni1_1{gap:var(--gap-s);width:100%;margin:0;display:grid}._frame_tgni1_2{border-radius:var(--border-radius);background:#000;width:100%;position:relative;overflow:hidden}._video_tgni1_3{width:100%;height:100%;display:block}._overlay_tgni1_4,._error_tgni1_4{padding:var(--gap-m);text-align:center;place-items:center;display:grid;position:absolute;inset:0}._overlay_tgni1_4{color:#fff;background:#00000073}._error_tgni1_4{background:var(--color-error-surface);color:var(--color-error-text)}._caption_tgni1_7{color:var(--color-text);font-size:var(--text-size-s);font-weight:600}._frame_tgni1_2: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.4",
6
+ "version": "0.0.5",
7
7
  "publishConfig": {
8
8
  "access": "public",
9
9
  "registry": "https://registry.npmjs.org/"