@efficiency-point/design-system 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -220,34 +220,34 @@ var w = {
220
220
  }, ee = (e, t) => !!(e && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate()), te = (e, t, n) => {
221
221
  let r = N(e).getTime();
222
222
  return !!(t && r < N(t).getTime() || n && r > N(n).getTime());
223
- }, R = ({ value: r, onChange: i, mode: a = "date", label: o, placeholder: f, hint: p, error: m, disabled: h = !1, readOnly: g = !1, required: _ = !1, min: v, max: y, id: b, name: x, className: S = "" }) => {
224
- let C = c(), w = b ?? `ds-date-time-${x ?? C}`, D = p ? `${w}-hint` : void 0, O = m ? `${w}-error` : void 0, M = u(null), N = u(null), [R, z] = d(!1), [B, V] = d(r ?? /* @__PURE__ */ new Date()), [H, ne] = d(P(r, "time")), U = l(() => L(B), [B]), re = a !== "time", W = a !== "date";
223
+ }, ne = ({ value: r, onChange: i, mode: a = "date", label: o, placeholder: f, hint: p, error: m, disabled: h = !1, readOnly: g = !1, required: _ = !1, min: v, max: y, id: b, name: x, className: S = "" }) => {
224
+ let C = c(), w = b ?? `ds-date-time-${x ?? C}`, D = p ? `${w}-hint` : void 0, O = m ? `${w}-error` : void 0, M = u(null), N = u(null), [ne, R] = d(!1), [z, B] = d(r ?? /* @__PURE__ */ new Date()), [V, H] = d(P(r, "time")), U = l(() => L(z), [z]), re = a !== "time", ie = a !== "date";
225
225
  s(() => {
226
- r && V(r), ne(P(r, "time"));
226
+ r && B(r), H(P(r, "time"));
227
227
  }, [r]), s(() => {
228
228
  let e = (e) => {
229
- M.current?.contains(e.target) || z(!1);
229
+ M.current?.contains(e.target) || R(!1);
230
230
  }, t = (e) => {
231
- e.key === "Escape" && (z(!1), N.current?.focus());
231
+ e.key === "Escape" && (R(!1), N.current?.focus());
232
232
  };
233
233
  return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
234
234
  document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
235
235
  };
236
236
  }, []);
237
- let ie = (e) => {
237
+ let ae = (e) => {
238
238
  if (te(e, v, y)) return;
239
239
  let t = new Date(e);
240
- t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), a === "date" && z(!1);
241
- }, ae = (e) => {
242
- if (ne(e), !e) {
240
+ t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), a === "date" && R(!1);
241
+ }, oe = (e) => {
242
+ if (H(e), !e) {
243
243
  i?.(null);
244
244
  return;
245
245
  }
246
246
  let t = F(e, "time");
247
247
  if (!t) return;
248
- let n = new Date(a === "datetime" ? r ?? B : /* @__PURE__ */ new Date());
248
+ let n = new Date(a === "datetime" ? r ?? z : /* @__PURE__ */ new Date());
249
249
  n.setHours(t.getHours(), t.getMinutes(), 0, 0), !(v && n < v || y && n > y) && i?.(n);
250
- }, G = f ?? (a === "date" ? "Выберите дату" : a === "time" ? "Введите время" : "Выберите дату и время"), oe = [D, O].filter(Boolean).join(" ") || void 0;
250
+ }, W = f ?? (a === "date" ? "Выберите дату" : a === "time" ? "Введите время" : "Выберите дату и время"), se = [D, O].filter(Boolean).join(" ") || void 0;
251
251
  return /* @__PURE__ */ n("div", {
252
252
  ref: M,
253
253
  className: `${k.wrapper} ${S}`,
@@ -266,24 +266,24 @@ var w = {
266
266
  className: `${k.trigger} ${m ? k.error : ""}`,
267
267
  disabled: h,
268
268
  "aria-readonly": g || void 0,
269
- "aria-expanded": R,
269
+ "aria-expanded": ne,
270
270
  "aria-haspopup": "dialog",
271
- "aria-describedby": oe,
271
+ "aria-describedby": se,
272
272
  onClick: () => {
273
- g || z((e) => !e);
273
+ g || R((e) => !e);
274
274
  },
275
275
  children: [/* @__PURE__ */ t("span", {
276
276
  className: r ? k.value : k.placeholder,
277
- children: I(r, a) || G
277
+ children: I(r, a) || W
278
278
  }), /* @__PURE__ */ t("span", {
279
279
  "aria-hidden": "true",
280
280
  children: "▾"
281
281
  })]
282
282
  }),
283
- R && !g && /* @__PURE__ */ n("div", {
283
+ ne && !g && /* @__PURE__ */ n("div", {
284
284
  className: k.panel,
285
285
  role: "dialog",
286
- "aria-label": o ?? G,
286
+ "aria-label": o ?? W,
287
287
  children: [re && /* @__PURE__ */ n(e, { children: [
288
288
  /* @__PURE__ */ n("div", {
289
289
  className: k.calendarHeader,
@@ -292,14 +292,14 @@ var w = {
292
292
  type: "button",
293
293
  className: k.nav,
294
294
  "aria-label": "Предыдущий месяц",
295
- onClick: () => V(new Date(B.getFullYear(), B.getMonth() - 1, 1)),
295
+ onClick: () => B(new Date(z.getFullYear(), z.getMonth() - 1, 1)),
296
296
  children: "‹"
297
297
  }),
298
298
  /* @__PURE__ */ t("select", {
299
299
  className: k.monthSelect,
300
300
  "aria-label": "Месяц",
301
- value: B.getMonth(),
302
- onChange: (e) => V(new Date(B.getFullYear(), Number(e.target.value), 1)),
301
+ value: z.getMonth(),
302
+ onChange: (e) => B(new Date(z.getFullYear(), Number(e.target.value), 1)),
303
303
  children: j.map((e, n) => /* @__PURE__ */ t("option", {
304
304
  value: n,
305
305
  children: e
@@ -309,14 +309,14 @@ var w = {
309
309
  className: k.yearInput,
310
310
  type: "number",
311
311
  "aria-label": "Год",
312
- value: B.getFullYear(),
313
- onChange: (e) => V(new Date(Number(e.target.value), B.getMonth(), 1))
312
+ value: z.getFullYear(),
313
+ onChange: (e) => B(new Date(Number(e.target.value), z.getMonth(), 1))
314
314
  }),
315
315
  /* @__PURE__ */ t("button", {
316
316
  type: "button",
317
317
  className: k.nav,
318
318
  "aria-label": "Следующий месяц",
319
- onClick: () => V(new Date(B.getFullYear(), B.getMonth() + 1, 1)),
319
+ onClick: () => B(new Date(z.getFullYear(), z.getMonth() + 1, 1)),
320
320
  children: "›"
321
321
  })
322
322
  ]
@@ -331,21 +331,21 @@ var w = {
331
331
  let n = ee(r, e);
332
332
  return /* @__PURE__ */ t("button", {
333
333
  type: "button",
334
- className: `${k.day} ${e.getMonth() === B.getMonth() ? "" : k.outside} ${n ? k.selected : ""}`,
334
+ className: `${k.day} ${e.getMonth() === z.getMonth() ? "" : k.outside} ${n ? k.selected : ""}`,
335
335
  disabled: te(e, v, y),
336
336
  "aria-pressed": n,
337
- onClick: () => ie(e),
337
+ onClick: () => ae(e),
338
338
  children: e.getDate()
339
339
  }, e.toISOString());
340
340
  })
341
341
  })
342
- ] }), W && /* @__PURE__ */ n("label", {
342
+ ] }), ie && /* @__PURE__ */ n("label", {
343
343
  className: k.timeLabel,
344
344
  children: [/* @__PURE__ */ t("span", { children: "Время" }), /* @__PURE__ */ t("input", {
345
345
  className: k.timeInput,
346
346
  type: "time",
347
- value: H,
348
- onChange: (e) => ae(e.target.value)
347
+ value: V,
348
+ onChange: (e) => oe(e.target.value)
349
349
  })]
350
350
  })]
351
351
  }),
@@ -360,20 +360,20 @@ var w = {
360
360
  })
361
361
  ]
362
362
  });
363
- }, z = {
363
+ }, R = {
364
364
  root: "_root_1q42e_1",
365
365
  legend: "_legend_1q42e_3",
366
366
  range: "_range_1q42e_5"
367
- }, B = (e) => !!(e.from && e.to && e.from.getTime() <= e.to.getTime()), V = ({ value: e, onChange: r, onDraftChange: i, mode: a = "date", fromLabel: o = "От", toLabel: s = "До", hint: c, error: l, min: u, max: d, disabled: f = !1, readOnly: p = !1, required: m = !1, className: h = "" }) => {
367
+ }, z = (e) => !!(e.from && e.to && e.from.getTime() <= e.to.getTime()), B = ({ value: e, onChange: r, onDraftChange: i, mode: a = "date", fromLabel: o = "От", toLabel: s = "До", hint: c, error: l, min: u, max: d, disabled: f = !1, readOnly: p = !1, required: m = !1, className: h = "" }) => {
368
368
  let g = l ?? (e.from && e.to && e.from > e.to ? "Дата «От» не может быть позже даты «До»" : void 0), _ = (e) => {
369
- i?.(e), B(e) && r?.(e);
369
+ i?.(e), z(e) && r?.(e);
370
370
  };
371
371
  return /* @__PURE__ */ n("fieldset", {
372
- className: `${z.root} ${h}`,
372
+ className: `${R.root} ${h}`,
373
373
  disabled: f,
374
374
  children: [/* @__PURE__ */ n("div", {
375
- className: z.range,
376
- children: [/* @__PURE__ */ t(R, {
375
+ className: R.range,
376
+ children: [/* @__PURE__ */ t(ne, {
377
377
  value: e.from,
378
378
  mode: a === "datetime" ? "datetime" : a,
379
379
  label: o,
@@ -387,7 +387,7 @@ var w = {
387
387
  ...e,
388
388
  from: t
389
389
  })
390
- }), /* @__PURE__ */ t(R, {
390
+ }), /* @__PURE__ */ t(ne, {
391
391
  value: e.to,
392
392
  mode: a === "datetime" ? "datetime" : a,
393
393
  label: s,
@@ -404,7 +404,7 @@ var w = {
404
404
  })]
405
405
  }), c && !g && /* @__PURE__ */ t(E, { children: c })]
406
406
  });
407
- }, H = {
407
+ }, V = {
408
408
  group: "_group_1fs9e_1",
409
409
  skeleton: "_skeleton_1fs9e_3",
410
410
  text: "_text_1fs9e_5",
@@ -412,11 +412,11 @@ var w = {
412
412
  circular: "_circular_1fs9e_9",
413
413
  animated: "_animated_1fs9e_11",
414
414
  "ds-skeleton": "_ds-skeleton_1fs9e_1"
415
- }, ne = ({ variant: e = "text", width: n = "100%", height: r, lines: i = 1, animated: a = !0, className: o = "" }) => /* @__PURE__ */ t("span", {
416
- className: `${H.group} ${o}`,
415
+ }, H = ({ variant: e = "text", width: n = "100%", height: r, lines: i = 1, animated: a = !0, className: o = "" }) => /* @__PURE__ */ t("span", {
416
+ className: `${V.group} ${o}`,
417
417
  "aria-hidden": "true",
418
418
  children: Array.from({ length: Math.max(1, i) }, (o, s) => /* @__PURE__ */ t("span", {
419
- className: `${H.skeleton} ${H[e]} ${a ? H.animated : ""}`,
419
+ className: `${V.skeleton} ${V[e]} ${a ? V.animated : ""}`,
420
420
  style: {
421
421
  width: s === i - 1 && i > 1 ? "70%" : n,
422
422
  height: r
@@ -444,7 +444,7 @@ var w = {
444
444
  if (!e[i]?.disabled) return i;
445
445
  }
446
446
  return -1;
447
- }, W = ({ options: r, value: i, onChange: a, placeholder: o = "Выберите опцию", disabled: f = !1, stringWhileDisabled: p = !1, label: m, error: h, hint: g, className: _ = "", name: v, id: y, needMark: b = !0, maxMenuHeight: x }) => {
447
+ }, ie = ({ options: r, value: i, onChange: a, placeholder: o = "Выберите опцию", disabled: f = !1, stringWhileDisabled: p = !1, label: m, error: h, hint: g, className: _ = "", name: v, id: y, needMark: b = !0, maxMenuHeight: x }) => {
448
448
  let S = c(), C = y ?? `ds-dropdown-${v ?? S}`, [w, T] = d(!1), E = u(null), D = u(null), O = u([]), k = l(() => r.find((e) => e.value === i), [r, i]), A = g ? `${C}-hint` : void 0, j = h ? `${C}-error` : void 0, M = [A, j].filter(Boolean).join(" ") || void 0, N = f && p;
449
449
  s(() => {
450
450
  let e = (e) => {
@@ -568,25 +568,25 @@ var w = {
568
568
  })
569
569
  ]
570
570
  });
571
- }, ie = (e) => `${e.id}:${e.direction}`, ae = ({ options: e, value: n, onChange: r, label: i = "Сортировка", placeholder: a = "Выберите сортировку", disabled: o = !1, className: s }) => {
571
+ }, ae = (e) => `${e.id}:${e.direction}`, oe = ({ options: e, value: n, onChange: r, label: i = "Сортировка", placeholder: a = "Выберите сортировку", disabled: o = !1, className: s }) => {
572
572
  let c = e.flatMap((e) => [{
573
- value: ie({
573
+ value: ae({
574
574
  id: e.id,
575
575
  direction: "asc"
576
576
  }),
577
577
  label: e.ascLabel ?? `${e.label} · по возрастанию`,
578
578
  disabled: e.disabled
579
579
  }, {
580
- value: ie({
580
+ value: ae({
581
581
  id: e.id,
582
582
  direction: "desc"
583
583
  }),
584
584
  label: e.descLabel ?? `${e.label} · по убыванию`,
585
585
  disabled: e.disabled
586
586
  }]);
587
- return /* @__PURE__ */ t(W, {
587
+ return /* @__PURE__ */ t(ie, {
588
588
  options: c,
589
- value: n ? ie(n) : "",
589
+ value: n ? ae(n) : "",
590
590
  label: i,
591
591
  placeholder: a,
592
592
  disabled: o,
@@ -599,7 +599,7 @@ var w = {
599
599
  });
600
600
  }
601
601
  });
602
- }, G = {
602
+ }, W = {
603
603
  root: "_root_1h9ti_1",
604
604
  tableWrap: "_tableWrap_1h9ti_3",
605
605
  table: "_table_1h9ti_3",
@@ -613,10 +613,10 @@ var w = {
613
613
  default: "_default_1h9ti_41",
614
614
  tableOnMobile: "_tableOnMobile_1h9ti_41",
615
615
  wide: "_wide_1h9ti_45"
616
- }, oe = m({
616
+ }, se = m({
617
617
  rowSortingFeature: p,
618
618
  sortedRowModel: f()
619
- }), se = (e, t) => {
619
+ }), ce = (e, t) => {
620
620
  let n = /* @__PURE__ */ new Set();
621
621
  for (let t of e) {
622
622
  if (!t.id.trim()) return "Идентификатор колонки не может быть пустым";
@@ -628,36 +628,36 @@ var w = {
628
628
  for (let t of e) if (typeof t.accessor == "string" && !(t.accessor in r)) return `В строке ${n + 1} отсутствует колонка «${t.id}»`;
629
629
  }
630
630
  return null;
631
- }, ce = (e, t) => typeof e == "function" ? e(t) : t[e], le = (e) => {
631
+ }, le = (e, t) => typeof e == "function" ? e(t) : t[e], ue = (e) => {
632
632
  if (e == null || e === "") return null;
633
633
  let t = Date.parse(String(e));
634
634
  return Number.isNaN(t) ? null : t;
635
- }, ue = (e, t, n) => {
636
- let r = le(e.getValue(n)), i = le(t.getValue(n));
637
- return r === null && i === null ? 0 : r === null ? -1 : i === null ? 1 : r - i;
638
635
  }, de = (e, t, n) => {
636
+ let r = ue(e.getValue(n)), i = ue(t.getValue(n));
637
+ return r === null && i === null ? 0 : r === null ? -1 : i === null ? 1 : r - i;
638
+ }, fe = (e, t, n) => {
639
639
  let r = e.getValue(n), i = t.getValue(n);
640
640
  return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : Number(r) - Number(i);
641
- }, fe = (e, t, n) => {
641
+ }, pe = (e, t, n) => {
642
642
  let r = e.getValue(n), i = t.getValue(n);
643
643
  return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : Number(!!r) - Number(!!i);
644
- }, pe = (e, t, n) => {
644
+ }, me = (e, t, n) => {
645
645
  let r = String(e.getValue(n) ?? ""), i = String(t.getValue(n) ?? "");
646
646
  return r.localeCompare(i, void 0, {
647
647
  numeric: !0,
648
648
  sensitivity: "base"
649
649
  });
650
- }, me = (e) => {
650
+ }, he = (e) => {
651
651
  switch (e) {
652
- case "date": return ue;
653
- case "number": return de;
654
- case "boolean": return fe;
652
+ case "date": return de;
653
+ case "number": return fe;
654
+ case "boolean": return pe;
655
655
  case "text":
656
- case void 0: return pe;
656
+ case void 0: return me;
657
657
  case "custom": return;
658
658
  }
659
- }, he = (e) => {
660
- let t = (t) => ce(e.accessor, t), n = e.sortFn ?? me(e.dataType), r = e.enableSorting ?? (e.dataType !== "custom" && n !== void 0), i = {
659
+ }, ge = (e) => {
660
+ let t = (t) => le(e.accessor, t), n = e.sortFn ?? he(e.dataType), r = e.enableSorting ?? (e.dataType !== "custom" && n !== void 0), i = {
661
661
  id: e.id,
662
662
  accessorFn: t,
663
663
  header: () => e.header,
@@ -669,9 +669,9 @@ var w = {
669
669
  sortDescFirst: e.sortDescFirst
670
670
  };
671
671
  return n !== void 0 && (i.sortFn = n), i;
672
- }, ge = ({ columns: e, data: r, tableOnMobile: i = !1, breakpoint: a = "default", sorting: o, onSortingChange: s, renderMobileCard: c, getRowId: u, caption: f, ariaLabel: p, loading: m = !1, error: g, emptyState: _ = "Нет данных", stickyHeader: v = !1, maxHeight: y, className: b = "" }) => {
673
- let [x, S] = d([]), C = o ?? x, w = l(() => se(e, r), [e, r]), T = l(() => e.map(he), [e]), E = h({
674
- features: oe,
672
+ }, _e = ({ columns: e, data: r, tableOnMobile: i = !1, breakpoint: a = "default", sorting: o, onSortingChange: s, renderMobileCard: c, getRowId: u, caption: f, ariaLabel: p, loading: m = !1, error: g, emptyState: _ = "Нет данных", stickyHeader: v = !1, maxHeight: y, className: b = "" }) => {
673
+ let [x, S] = d([]), C = o ?? x, w = l(() => ce(e, r), [e, r]), T = l(() => e.map(ge), [e]), E = h({
674
+ features: se,
675
675
  columns: T,
676
676
  data: r,
677
677
  state: { sorting: C },
@@ -684,17 +684,17 @@ var w = {
684
684
  id: e.id,
685
685
  label: typeof e.header == "string" ? e.header : e.id
686
686
  })), k = [
687
- G.root,
688
- a === "wide" ? G.wide : G.default,
689
- i ? G.tableOnMobile : "",
687
+ W.root,
688
+ a === "wide" ? W.wide : W.default,
689
+ i ? W.tableOnMobile : "",
690
690
  b
691
691
  ].filter(Boolean).join(" "), A = w ?? g;
692
692
  return /* @__PURE__ */ n("section", {
693
693
  className: k,
694
694
  "aria-busy": m,
695
695
  children: [
696
- !i && !m && !A && D.length > 0 && O.length > 0 && /* @__PURE__ */ t(ae, {
697
- className: G.mobileSort,
696
+ !i && !m && !A && D.length > 0 && O.length > 0 && /* @__PURE__ */ t(oe, {
697
+ className: W.mobileSort,
698
698
  options: O,
699
699
  value: C[0] ? {
700
700
  id: C[0].id,
@@ -706,15 +706,15 @@ var w = {
706
706
  }])
707
707
  }),
708
708
  /* @__PURE__ */ t("div", {
709
- className: G.tableWrap,
709
+ className: W.tableWrap,
710
710
  style: { maxHeight: y },
711
711
  children: /* @__PURE__ */ n("table", {
712
- className: G.table,
712
+ className: W.table,
713
713
  "aria-label": p,
714
714
  children: [
715
715
  f && /* @__PURE__ */ t("caption", { children: f }),
716
716
  /* @__PURE__ */ t("thead", {
717
- className: v ? G.sticky : "",
717
+ className: v ? W.sticky : "",
718
718
  children: E.getHeaderGroups().map((e) => /* @__PURE__ */ t("tr", { children: e.headers.map((e) => {
719
719
  let r = e.column.getIsSorted(), i = e.column.getCanSort(), a = e.column.getToggleSortingHandler();
720
720
  return /* @__PURE__ */ t("th", {
@@ -722,7 +722,7 @@ var w = {
722
722
  "aria-sort": r === "asc" ? "ascending" : r === "desc" ? "descending" : "none",
723
723
  children: /* @__PURE__ */ n("button", {
724
724
  type: "button",
725
- className: G.sortButton,
725
+ className: W.sortButton,
726
726
  disabled: !i,
727
727
  onClick: a,
728
728
  children: [/* @__PURE__ */ t(E.FlexRender, { header: e }), /* @__PURE__ */ t("span", {
@@ -735,13 +735,13 @@ var w = {
735
735
  }),
736
736
  /* @__PURE__ */ t("tbody", { children: m ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
737
737
  colSpan: e.length,
738
- children: /* @__PURE__ */ t(ne, { lines: 3 })
738
+ children: /* @__PURE__ */ t(H, { lines: 3 })
739
739
  }) }) : A ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
740
- className: G.state,
740
+ className: W.state,
741
741
  colSpan: e.length,
742
742
  children: A
743
743
  }) }) : D.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
744
- className: G.state,
744
+ className: W.state,
745
745
  colSpan: e.length,
746
746
  children: _
747
747
  }) }) : D.map((e) => /* @__PURE__ */ t("tr", { children: e.getAllCells().map((e) => /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t(E.FlexRender, { cell: e }) }, e.id)) }, e.id)) })
@@ -749,14 +749,14 @@ var w = {
749
749
  })
750
750
  }),
751
751
  !i && /* @__PURE__ */ t("div", {
752
- className: G.cards,
752
+ className: W.cards,
753
753
  role: "list",
754
754
  "aria-label": p ?? f,
755
- children: m ? /* @__PURE__ */ t(ne, { lines: 4 }) : A ? /* @__PURE__ */ t("div", {
756
- className: G.state,
755
+ children: m ? /* @__PURE__ */ t(H, { lines: 4 }) : A ? /* @__PURE__ */ t("div", {
756
+ className: W.state,
757
757
  children: A
758
758
  }) : D.length === 0 ? /* @__PURE__ */ t("div", {
759
- className: G.state,
759
+ className: W.state,
760
760
  children: _
761
761
  }) : D.map((r) => {
762
762
  if (c) return /* @__PURE__ */ t("div", {
@@ -766,14 +766,14 @@ var w = {
766
766
  columns: e
767
767
  })
768
768
  }, r.id);
769
- let i = e.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), a = i.find((e) => e.mobile?.primary) ?? i.find((e) => e.mobile?.mobileVariant !== "actions"), o = (e) => ce(e.accessor, r.original), s = (e) => e.mobile?.renderMobile?.(r.original, o(e)) ?? e.cell?.(r.original, o(e)) ?? String(o(e) ?? "");
769
+ let i = e.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), a = i.find((e) => e.mobile?.primary) ?? i.find((e) => e.mobile?.mobileVariant !== "actions"), o = (e) => le(e.accessor, r.original), s = (e) => e.mobile?.renderMobile?.(r.original, o(e)) ?? e.cell?.(r.original, o(e)) ?? String(o(e) ?? "");
770
770
  return /* @__PURE__ */ n("article", {
771
771
  role: "listitem",
772
- className: G.card,
772
+ className: W.card,
773
773
  children: [
774
774
  /* @__PURE__ */ t("h3", { children: a ? s(a) : `Строка ${r.index + 1}` }),
775
775
  /* @__PURE__ */ t("dl", { children: i.filter((e) => e !== a && e.mobile?.mobileVariant !== "actions").map((e) => /* @__PURE__ */ n("div", {
776
- className: e.mobile?.mobileSpan === 2 ? G.spanTwo : "",
776
+ className: e.mobile?.mobileSpan === 2 ? W.spanTwo : "",
777
777
  children: [/* @__PURE__ */ t("dt", { children: e.mobile?.mobileLabel ?? e.header }), /* @__PURE__ */ t("dd", { children: s(e) })]
778
778
  }, e.id)) }),
779
779
  i.filter((e) => e.mobile?.mobileVariant === "actions").map((e) => /* @__PURE__ */ t("footer", { children: s(e) }, e.id))
@@ -783,7 +783,7 @@ var w = {
783
783
  })
784
784
  ]
785
785
  });
786
- }, _e = ({ options: e, value: r, onChange: i, placeholder: a = "Выберите опции", disabled: o = !1, label: f, error: p, hint: m, className: h = "", name: g, id: _, closeOnSelect: v = !1, maxMenuHeight: y }) => {
786
+ }, ve = ({ options: e, value: r, onChange: i, placeholder: a = "Выберите опции", disabled: o = !1, label: f, error: p, hint: m, className: h = "", name: g, id: _, closeOnSelect: v = !1, maxMenuHeight: y }) => {
787
787
  let b = c(), x = _ ?? `ds-dropdown-multiple-${g ?? b}`, [S, C] = d(!1), w = u(null), T = u(null), E = u([]), D = l(() => e.filter((e) => r.includes(e.value)), [e, r]), O = D.map((e) => e.label).join(", "), k = m ? `${x}-hint` : void 0, A = p ? `${x}-error` : void 0;
788
788
  s(() => {
789
789
  let e = (e) => {
@@ -901,7 +901,7 @@ var w = {
901
901
  })
902
902
  ]
903
903
  });
904
- }, ve = {
904
+ }, ye = {
905
905
  approve: "M4 12l5 5L20 6",
906
906
  reject: "M5 5l14 14M19 5L5 19",
907
907
  edit: "M4 20h4L19 9l-4-4L4 16v4z",
@@ -910,7 +910,7 @@ var w = {
910
910
  basket: "M4 7h16l-1 13H5L4 7zm3 0V4h10v3",
911
911
  info: "M12 10v7m0-10v.01",
912
912
  warning: "M12 4L3 20h18L12 4zm0 5v5m0 3v.01"
913
- }, ye = ({ name: e, title: r, width: i = 24, height: a = 24, ...o }) => /* @__PURE__ */ n("svg", {
913
+ }, be = ({ name: e, title: r, width: i = 24, height: a = 24, ...o }) => /* @__PURE__ */ n("svg", {
914
914
  viewBox: "0 0 24 24",
915
915
  width: i,
916
916
  height: a,
@@ -923,27 +923,27 @@ var w = {
923
923
  "aria-hidden": !r || void 0,
924
924
  focusable: "false",
925
925
  ...o,
926
- children: [r && /* @__PURE__ */ t("title", { children: r }), /* @__PURE__ */ t("path", { d: ve[e] })]
927
- }), K = {
926
+ children: [r && /* @__PURE__ */ t("title", { children: r }), /* @__PURE__ */ t("path", { d: ye[e] })]
927
+ }), G = {
928
928
  root: "_root_1y2s8_1",
929
929
  header: "_header_1y2s8_21",
930
930
  title: "_title_1y2s8_41",
931
931
  dismiss: "_dismiss_1y2s8_55",
932
932
  content: "_content_1y2s8_113"
933
- }, be = ({ title: e, children: r, dismissible: i = !1, onDismiss: a, dismissLabel: o = "Закрыть информационный блок", headingAs: s = "h3", className: l = "" }) => {
933
+ }, xe = ({ title: e, children: r, dismissible: i = !1, onDismiss: a, dismissLabel: o = "Закрыть информационный блок", headingAs: s = "h3", className: l = "" }) => {
934
934
  let u = `ds-info-block-${c()}`;
935
935
  return /* @__PURE__ */ n("section", {
936
- className: `${K.root} ${l}`,
936
+ className: `${G.root} ${l}`,
937
937
  "aria-labelledby": u,
938
938
  children: [/* @__PURE__ */ n("header", {
939
- className: K.header,
939
+ className: G.header,
940
940
  children: [/* @__PURE__ */ t(s, {
941
941
  id: u,
942
- className: K.title,
942
+ className: G.title,
943
943
  children: e
944
944
  }), i && /* @__PURE__ */ t("button", {
945
945
  type: "button",
946
- className: K.dismiss,
946
+ className: G.dismiss,
947
947
  onClick: a,
948
948
  "aria-label": o,
949
949
  children: /* @__PURE__ */ t("svg", {
@@ -959,23 +959,23 @@ var w = {
959
959
  })
960
960
  })]
961
961
  }), /* @__PURE__ */ t("div", {
962
- className: K.content,
962
+ className: G.content,
963
963
  children: r
964
964
  })]
965
965
  });
966
- }, q = {
967
- wrapper: "_wrapper_1tz82_1",
968
- control: "_control_1tz82_3",
969
- input: "_input_1tz82_5",
970
- disabledText: "_disabledText_1tz82_5",
971
- inputError: "_inputError_1tz82_11",
972
- trailingAction: "_trailingAction_1tz82_13"
973
- }, xe = ({ value: e, onChange: r, type: i = "text", placeholder: a = "", disabled: o = !1, readOnly: l = !1, stringWhileDisabled: f = !1, label: p, error: m, hint: h, className: g = "", name: _, id: v, clearable: y = !0, required: b = !1, selectTextOnFocus: x = !1, isPassword: S = !1, passwordVisibleLabel: C = "Скрыть пароль", passwordHiddenLabel: w = "Показать пароль", onFocus: D, ...O }) => {
966
+ }, K = {
967
+ wrapper: "_wrapper_ip6vf_1",
968
+ control: "_control_ip6vf_3",
969
+ input: "_input_ip6vf_5",
970
+ disabledText: "_disabledText_ip6vf_5",
971
+ inputError: "_inputError_ip6vf_39",
972
+ trailingAction: "_trailingAction_ip6vf_41"
973
+ }, Se = ({ value: e, onChange: r, type: i = "text", placeholder: a = "", disabled: o = !1, readOnly: l = !1, stringWhileDisabled: f = !1, label: p, error: m, hint: h, className: g = "", name: _, id: v, clearable: y = !0, required: b = !1, selectTextOnFocus: x = !1, isPassword: S = !1, passwordVisibleLabel: C = "Скрыть пароль", passwordHiddenLabel: w = "Показать пароль", onFocus: D, ...O }) => {
974
974
  let k = c(), A = v ?? `ds-input-${_ ?? k}`, j = u(null), [M, N] = d(!1), P = h ? `${A}-hint` : void 0, F = m ? `${A}-error` : void 0, I = String(e ?? ""), L = [P, F].filter(Boolean).join(" ") || void 0, ee = S ? M ? "text" : "password" : i;
975
975
  return s(() => {
976
976
  S || N(!1);
977
977
  }, [S]), /* @__PURE__ */ n("div", {
978
- className: `${q.wrapper} ${g}`,
978
+ className: `${K.wrapper} ${g}`,
979
979
  children: [
980
980
  p && /* @__PURE__ */ t(T, {
981
981
  htmlFor: A,
@@ -985,11 +985,11 @@ var w = {
985
985
  }),
986
986
  o && f ? /* @__PURE__ */ t("div", {
987
987
  id: A,
988
- className: q.disabledText,
988
+ className: K.disabledText,
989
989
  "aria-describedby": L,
990
990
  children: I || a
991
991
  }) : /* @__PURE__ */ n("div", {
992
- className: q.control,
992
+ className: K.control,
993
993
  children: [
994
994
  /* @__PURE__ */ t("input", {
995
995
  ref: j,
@@ -1003,7 +1003,7 @@ var w = {
1003
1003
  required: b,
1004
1004
  "aria-invalid": !!m,
1005
1005
  "aria-describedby": L,
1006
- className: `${q.input} ${m ? q.inputError : ""}`,
1006
+ className: `${K.input} ${m ? K.inputError : ""}`,
1007
1007
  onChange: (e) => {
1008
1008
  if (i === "number" && !S) {
1009
1009
  let t = e.target.value === "" ? "" : Number(e.target.value);
@@ -1019,7 +1019,7 @@ var w = {
1019
1019
  }),
1020
1020
  S && /* @__PURE__ */ t("button", {
1021
1021
  type: "button",
1022
- className: q.trailingAction,
1022
+ className: K.trailingAction,
1023
1023
  disabled: o,
1024
1024
  "aria-label": M ? C : w,
1025
1025
  "aria-pressed": M,
@@ -1040,7 +1040,7 @@ var w = {
1040
1040
  }),
1041
1041
  !S && y && I && !o && !l && /* @__PURE__ */ t("button", {
1042
1042
  type: "button",
1043
- className: q.trailingAction,
1043
+ className: K.trailingAction,
1044
1044
  "aria-label": "Очистить поле",
1045
1045
  onClick: () => {
1046
1046
  let e = j.current;
@@ -1061,22 +1061,22 @@ var w = {
1061
1061
  })
1062
1062
  ]
1063
1063
  });
1064
- }, J = {
1064
+ }, q = {
1065
1065
  wrapper: "_wrapper_vu1ob_1",
1066
1066
  input: "_input_vu1ob_21",
1067
1067
  switch: "_switch_vu1ob_35",
1068
1068
  thumb: "_thumb_vu1ob_67",
1069
1069
  label: "_label_vu1ob_111",
1070
1070
  disabled: "_disabled_vu1ob_123"
1071
- }, Se = ({ checked: e, onChange: r, label: i, disabled: a = !1, readOnly: o = !1, className: s = "", name: l, id: u, value: d }) => {
1071
+ }, Ce = ({ checked: e, onChange: r, label: i, disabled: a = !1, readOnly: o = !1, className: s = "", name: l, id: u, value: d }) => {
1072
1072
  let f = c(), p = u ?? `ds-radio-button-${l ?? f}`;
1073
1073
  return /* @__PURE__ */ n("label", {
1074
1074
  htmlFor: p,
1075
- className: `${J.wrapper} ${a ? J.disabled : ""} ${s}`,
1075
+ className: `${q.wrapper} ${a ? q.disabled : ""} ${s}`,
1076
1076
  children: [
1077
1077
  /* @__PURE__ */ t("input", {
1078
1078
  id: p,
1079
- className: J.input,
1079
+ className: q.input,
1080
1080
  type: "checkbox",
1081
1081
  role: "switch",
1082
1082
  name: l,
@@ -1089,21 +1089,21 @@ var w = {
1089
1089
  }
1090
1090
  }),
1091
1091
  /* @__PURE__ */ t("span", {
1092
- className: J.switch,
1092
+ className: q.switch,
1093
1093
  "aria-hidden": "true",
1094
- children: /* @__PURE__ */ t("span", { className: J.thumb })
1094
+ children: /* @__PURE__ */ t("span", { className: q.thumb })
1095
1095
  }),
1096
1096
  i && /* @__PURE__ */ t("span", {
1097
- className: J.label,
1097
+ className: q.label,
1098
1098
  children: i
1099
1099
  })
1100
1100
  ]
1101
1101
  });
1102
- }, Ce = {
1102
+ }, we = {
1103
1103
  root: "_root_kepgo_1",
1104
1104
  grid: "_grid_kepgo_3",
1105
1105
  actions: "_actions_kepgo_5"
1106
- }, we = ({ filters: e, values: r, onChange: i, onApply: a, onReset: o, applyMode: s = "instant", loading: c = !1, disabled: l = !1, className: u = "" }) => {
1106
+ }, Te = ({ filters: e, values: r, onChange: i, onApply: a, onReset: o, applyMode: s = "instant", loading: c = !1, disabled: l = !1, className: u = "" }) => {
1107
1107
  let d = (e, t) => {
1108
1108
  let n = {
1109
1109
  ...r,
@@ -1112,11 +1112,11 @@ var w = {
1112
1112
  i?.(n, e), s === "instant" && a?.(n);
1113
1113
  };
1114
1114
  return /* @__PURE__ */ n("section", {
1115
- className: `${Ce.root} ${u}`,
1115
+ className: `${we.root} ${u}`,
1116
1116
  "aria-label": "Фильтры",
1117
1117
  "aria-busy": c,
1118
1118
  children: [/* @__PURE__ */ t("div", {
1119
- className: Ce.grid,
1119
+ className: we.grid,
1120
1120
  children: e.filter((e) => !e.hidden).map((e) => {
1121
1121
  let n = l || c || e.disabled, i = r[e.id];
1122
1122
  if (e.type === "input") {
@@ -1126,19 +1126,19 @@ var w = {
1126
1126
  placeholder: e.placeholder,
1127
1127
  disabled: n
1128
1128
  };
1129
- return e.inputType === "number" ? /* @__PURE__ */ t(xe, {
1129
+ return e.inputType === "number" ? /* @__PURE__ */ t(Se, {
1130
1130
  ...r,
1131
1131
  type: "number",
1132
1132
  value: i ?? "",
1133
1133
  onChange: (t) => d(e.id, t)
1134
- }, e.id) : /* @__PURE__ */ t(xe, {
1134
+ }, e.id) : /* @__PURE__ */ t(Se, {
1135
1135
  ...r,
1136
1136
  type: "text",
1137
1137
  value: String(i ?? ""),
1138
1138
  onChange: (t) => d(e.id, t)
1139
1139
  }, e.id);
1140
1140
  }
1141
- if (e.type === "dropdown") return /* @__PURE__ */ t(W, {
1141
+ if (e.type === "dropdown") return /* @__PURE__ */ t(ie, {
1142
1142
  label: e.label,
1143
1143
  hint: e.hint,
1144
1144
  placeholder: e.placeholder,
@@ -1147,7 +1147,7 @@ var w = {
1147
1147
  disabled: n,
1148
1148
  onChange: (t) => d(e.id, t)
1149
1149
  }, e.id);
1150
- if (e.type === "multiple") return /* @__PURE__ */ t(_e, {
1150
+ if (e.type === "multiple") return /* @__PURE__ */ t(ve, {
1151
1151
  label: e.label,
1152
1152
  hint: e.hint,
1153
1153
  placeholder: e.placeholder,
@@ -1163,7 +1163,7 @@ var w = {
1163
1163
  disabled: n,
1164
1164
  onChange: (t) => d(e.id, t)
1165
1165
  }, e.id);
1166
- if (e.type === "radio") return /* @__PURE__ */ t(Se, {
1166
+ if (e.type === "radio") return /* @__PURE__ */ t(Ce, {
1167
1167
  label: e.label,
1168
1168
  checked: !!i,
1169
1169
  disabled: n,
@@ -1173,7 +1173,7 @@ var w = {
1173
1173
  from: null,
1174
1174
  to: null
1175
1175
  };
1176
- return /* @__PURE__ */ t(V, {
1176
+ return /* @__PURE__ */ t(B, {
1177
1177
  hint: e.hint,
1178
1178
  mode: e.mode,
1179
1179
  min: e.min,
@@ -1184,7 +1184,7 @@ var w = {
1184
1184
  }, e.id);
1185
1185
  })
1186
1186
  }), (o || s === "manual") && /* @__PURE__ */ n("div", {
1187
- className: Ce.actions,
1187
+ className: we.actions,
1188
1188
  children: [o && /* @__PURE__ */ t(C, {
1189
1189
  variant: "destructiveOutline",
1190
1190
  disabled: l || c,
@@ -1198,7 +1198,7 @@ var w = {
1198
1198
  })]
1199
1199
  })]
1200
1200
  });
1201
- }, Y = {
1201
+ }, J = {
1202
1202
  wrapper: "_wrapper_1ymdr_1",
1203
1203
  dropzone: "_dropzone_1ymdr_3",
1204
1204
  dragActive: "_dragActive_1ymdr_5",
@@ -1212,12 +1212,12 @@ var w = {
1212
1212
  file: "_file_1ymdr_19",
1213
1213
  fileName: "_fileName_1ymdr_23",
1214
1214
  fileSize: "_fileSize_1ymdr_25"
1215
- }, Te = (e) => `${e.name}:${e.size}:${e.lastModified}`, Ee = (e) => e < 1024 ? `${e} Б` : e < 1048576 ? `${(e / 1024).toFixed(1)} КБ` : `${(e / 1024 / 1024).toFixed(1)} МБ`, De = (e, t) => !t || t.split(",").map((e) => e.trim().toLowerCase()).some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type.toLowerCase() === t), Oe = ({ value: r, onChange: i, multiple: a = !1, accept: o, maxSize: s, maxFiles: l, label: f, hint: p, error: m, required: h = !1, disabled: g = !1, readOnly: _ = !1, name: v, id: y, className: b = "", dropLabel: x = "Перетащите файлы в эту область", browseLabel: S = "Выбрать файлы", addMoreLabel: w = "Добавить ещё", onReject: D }) => {
1215
+ }, Ee = (e) => `${e.name}:${e.size}:${e.lastModified}`, De = (e) => e < 1024 ? `${e} Б` : e < 1048576 ? `${(e / 1024).toFixed(1)} КБ` : `${(e / 1024 / 1024).toFixed(1)} МБ`, Oe = (e, t) => !t || t.split(",").map((e) => e.trim().toLowerCase()).some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type.toLowerCase() === t), ke = ({ value: r, onChange: i, multiple: a = !1, accept: o, maxSize: s, maxFiles: l, label: f, hint: p, error: m, required: h = !1, disabled: g = !1, readOnly: _ = !1, name: v, id: y, className: b = "", dropLabel: x = "Перетащите файлы в эту область", browseLabel: S = "Выбрать файлы", addMoreLabel: w = "Добавить ещё", onReject: D }) => {
1216
1216
  let O = c(), k = y ?? `ds-file-input-${v ?? O}`, A = u(null), j = u(0), [M, N] = d(!1), P = p ? `${k}-hint` : void 0, F = m ? `${k}-error` : void 0, I = [P, F].filter(Boolean).join(" ") || void 0, L = !g && !_, ee = (e) => {
1217
- let t = [], n = new Set(r.map(Te)), c = e.filter((e) => De(e, o) ? s !== void 0 && e.size > s ? (t.push({
1217
+ let t = [], n = new Set(r.map(Ee)), c = e.filter((e) => Oe(e, o) ? s !== void 0 && e.size > s ? (t.push({
1218
1218
  file: e,
1219
1219
  reason: "maxSize"
1220
- }), !1) : !n.has(Te(e)) && (n.add(Te(e)), !0) : (t.push({
1220
+ }), !1) : !n.has(Ee(e)) && (n.add(Ee(e)), !0) : (t.push({
1221
1221
  file: e,
1222
1222
  reason: "accept"
1223
1223
  }), !1)), u = a ? l : 1, d = a ? [...r, ...c] : c.slice(-1);
@@ -1227,7 +1227,7 @@ var w = {
1227
1227
  })), d = d.slice(0, u)), t.length && D?.(t), c.length && i?.(d), A.current && (A.current.value = "");
1228
1228
  };
1229
1229
  return /* @__PURE__ */ n("div", {
1230
- className: `${Y.wrapper} ${b}`,
1230
+ className: `${J.wrapper} ${b}`,
1231
1231
  children: [
1232
1232
  f && /* @__PURE__ */ t(T, {
1233
1233
  htmlFor: k,
@@ -1236,7 +1236,7 @@ var w = {
1236
1236
  children: f
1237
1237
  }),
1238
1238
  /* @__PURE__ */ n("div", {
1239
- className: `${Y.dropzone} ${M ? Y.dragActive : ""} ${g ? Y.disabled : ""} ${m ? Y.error : ""}`,
1239
+ className: `${J.dropzone} ${M ? J.dragActive : ""} ${g ? J.disabled : ""} ${m ? J.error : ""}`,
1240
1240
  onDragEnter: (e) => {
1241
1241
  e.preventDefault(), L && ++j.current === 1 && N(!0);
1242
1242
  },
@@ -1251,7 +1251,7 @@ var w = {
1251
1251
  ref: A,
1252
1252
  id: k,
1253
1253
  name: v,
1254
- className: Y.nativeInput,
1254
+ className: J.nativeInput,
1255
1255
  type: "file",
1256
1256
  multiple: a,
1257
1257
  accept: o,
@@ -1262,19 +1262,19 @@ var w = {
1262
1262
  onChange: (e) => ee(Array.from(e.target.files ?? []))
1263
1263
  }), r.length ? /* @__PURE__ */ n(e, { children: [
1264
1264
  /* @__PURE__ */ t("ul", {
1265
- className: Y.files,
1265
+ className: J.files,
1266
1266
  "aria-live": "polite",
1267
1267
  children: r.map((e, a) => /* @__PURE__ */ n("li", {
1268
- className: Y.file,
1268
+ className: J.file,
1269
1269
  children: [
1270
1270
  /* @__PURE__ */ t("span", {
1271
- className: Y.fileName,
1271
+ className: J.fileName,
1272
1272
  title: e.name,
1273
1273
  children: e.name
1274
1274
  }),
1275
1275
  /* @__PURE__ */ t("span", {
1276
- className: Y.fileSize,
1277
- children: Ee(e.size)
1276
+ className: J.fileSize,
1277
+ children: De(e.size)
1278
1278
  }),
1279
1279
  L && /* @__PURE__ */ t(C, {
1280
1280
  variant: "empty",
@@ -1284,31 +1284,31 @@ var w = {
1284
1284
  children: "×"
1285
1285
  })
1286
1286
  ]
1287
- }, Te(e)))
1287
+ }, Ee(e)))
1288
1288
  }),
1289
1289
  L && (a || r.length === 0) && /* @__PURE__ */ t(C, {
1290
- className: Y.browseButton,
1290
+ className: J.browseButton,
1291
1291
  size: "sm",
1292
1292
  onClick: () => A.current?.click(),
1293
1293
  children: w
1294
1294
  }),
1295
1295
  L && !a && /* @__PURE__ */ t(C, {
1296
- className: Y.browseButton,
1296
+ className: J.browseButton,
1297
1297
  size: "sm",
1298
1298
  onClick: () => A.current?.click(),
1299
1299
  children: S
1300
1300
  })
1301
1301
  ] }) : /* @__PURE__ */ n("div", {
1302
- className: Y.empty,
1302
+ className: J.empty,
1303
1303
  children: [
1304
1304
  /* @__PURE__ */ t("span", {
1305
- className: Y.uploadIcon,
1305
+ className: J.uploadIcon,
1306
1306
  "aria-hidden": "true",
1307
1307
  children: "↑"
1308
1308
  }),
1309
1309
  /* @__PURE__ */ t("strong", { children: M ? "Отпустите файлы здесь" : x }),
1310
1310
  !M && L && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", { children: "или" }), /* @__PURE__ */ t(C, {
1311
- className: Y.browseButton,
1311
+ className: J.browseButton,
1312
1312
  onClick: () => A.current?.click(),
1313
1313
  children: S
1314
1314
  })] })
@@ -1327,11 +1327,11 @@ var w = {
1327
1327
  })
1328
1328
  ]
1329
1329
  });
1330
- }, ke = 0, X = _((e) => ({
1330
+ }, Ae = 0, Y = _((e) => ({
1331
1331
  modals: [],
1332
1332
  openModal: (t, n = {}, r = {}) => {
1333
- ke += 1;
1334
- let i = `ds-modal-${ke}`;
1333
+ Ae += 1;
1334
+ let i = `ds-modal-${Ae}`;
1335
1335
  return e((e) => ({ modals: [...e.modals, {
1336
1336
  id: i,
1337
1337
  name: t,
@@ -1343,7 +1343,7 @@ var w = {
1343
1343
  closeModal: (t) => e((e) => ({ modals: e.modals.filter((e) => e.id !== t) })),
1344
1344
  closeTopModal: () => e((e) => ({ modals: e.modals.slice(0, -1) })),
1345
1345
  closeAllModals: () => e({ modals: [] })
1346
- })), Ae = () => X.setState({ modals: [] }), Z = {
1346
+ })), je = () => Y.setState({ modals: [] }), X = {
1347
1347
  layer: "_layer_1nb2z_1",
1348
1348
  backdrop: "_backdrop_1nb2z_3",
1349
1349
  panel: "_panel_1nb2z_5",
@@ -1351,14 +1351,14 @@ var w = {
1351
1351
  title: "_title_1nb2z_11",
1352
1352
  description: "_description_1nb2z_13",
1353
1353
  content: "_content_1nb2z_15"
1354
- }, je = "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: o = "Закрыть модальное окно", className: l = "", role: d = "dialog" }) => {
1355
- let f = c(), p = c(), m = u(null), h = X((e) => e.closeModal);
1354
+ }, Me = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Ne = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "Закрыть модальное окно", className: l = "", role: d = "dialog" }) => {
1355
+ let f = c(), p = c(), m = u(null), h = Y((e) => e.closeModal);
1356
1356
  return s(() => {
1357
1357
  let e = document.activeElement, t = m.current;
1358
- return (t?.querySelector(je) ?? t)?.focus(), () => e?.focus();
1358
+ return (t?.querySelector(Me) ?? t)?.focus(), () => e?.focus();
1359
1359
  }, []), /* @__PURE__ */ n("div", {
1360
1360
  ref: m,
1361
- className: `${Z.panel} ${l}`,
1361
+ className: `${X.panel} ${l}`,
1362
1362
  role: d,
1363
1363
  "aria-modal": "true",
1364
1364
  "aria-labelledby": r ? f : void 0,
@@ -1366,7 +1366,7 @@ var w = {
1366
1366
  tabIndex: -1,
1367
1367
  onKeyDown: (e) => {
1368
1368
  if (e.key !== "Tab") return;
1369
- let t = Array.from(m.current?.querySelectorAll(je) ?? []);
1369
+ let t = Array.from(m.current?.querySelectorAll(Me) ?? []);
1370
1370
  if (!t.length) {
1371
1371
  e.preventDefault();
1372
1372
  return;
@@ -1376,46 +1376,57 @@ var w = {
1376
1376
  },
1377
1377
  children: [
1378
1378
  (r || o) && /* @__PURE__ */ n("header", {
1379
- className: Z.header,
1379
+ className: X.header,
1380
1380
  children: [r && /* @__PURE__ */ t("h2", {
1381
1381
  id: f,
1382
- className: Z.title,
1382
+ className: X.title,
1383
1383
  children: r
1384
1384
  }), /* @__PURE__ */ t(C, {
1385
1385
  variant: "empty",
1386
1386
  size: "sm",
1387
1387
  "aria-label": o,
1388
1388
  onClick: () => h(a),
1389
- children: "×"
1389
+ children: /* @__PURE__ */ n("svg", {
1390
+ xmlns: "http://www.w3.org/2000/svg",
1391
+ width: "24",
1392
+ height: "24",
1393
+ viewBox: "0 0 24 24",
1394
+ fill: "none",
1395
+ stroke: "currentColor",
1396
+ strokeWidth: "2",
1397
+ strokeLinecap: "round",
1398
+ strokeLinejoin: "round",
1399
+ children: [/* @__PURE__ */ t("path", { d: "M18 6 6 18" }), /* @__PURE__ */ t("path", { d: "m6 6 12 12" })]
1400
+ })
1390
1401
  })]
1391
1402
  }),
1392
1403
  i && /* @__PURE__ */ t("p", {
1393
1404
  id: p,
1394
- className: Z.description,
1405
+ className: X.description,
1395
1406
  children: i
1396
1407
  }),
1397
1408
  /* @__PURE__ */ t("div", {
1398
- className: Z.content,
1409
+ className: X.content,
1399
1410
  children: e
1400
1411
  })
1401
1412
  ]
1402
1413
  });
1403
- }, Ne = ({ registry: e }) => {
1404
- let n = X((e) => e.modals), r = X((e) => e.closeModal), i = X((e) => e.closeAllModals);
1414
+ }, Pe = ({ registry: e }) => {
1415
+ let n = Y((e) => e.modals), r = Y((e) => e.closeModal), i = Y((e) => e.closeAllModals);
1405
1416
  return s(() => {
1406
1417
  let e = (e) => {
1407
1418
  if (e.key !== "Escape") return;
1408
- let t = X.getState().modals.at(-1);
1419
+ let t = Y.getState().modals.at(-1);
1409
1420
  t?.closeOnEscape && r(t.id);
1410
1421
  };
1411
1422
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1412
1423
  }, [r]), !n.length || typeof document > "u" ? null : g(/* @__PURE__ */ t("div", {
1413
- className: Z.layer,
1424
+ className: X.layer,
1414
1425
  "aria-label": "Модальные окна",
1415
1426
  children: n.map((a, o) => {
1416
1427
  let s = e[a.name];
1417
1428
  return s ? /* @__PURE__ */ t("div", {
1418
- className: Z.backdrop,
1429
+ className: X.backdrop,
1419
1430
  "aria-hidden": o !== n.length - 1 || void 0,
1420
1431
  onMouseDown: (e) => {
1421
1432
  e.target === e.currentTarget && a.closeOnBackdrop && r(a.id);
@@ -1429,31 +1440,31 @@ var w = {
1429
1440
  }, a.id) : null;
1430
1441
  })
1431
1442
  }), document.body);
1432
- }, Pe = ({ registry: r, children: i, lockBodyScroll: a = !0 }) => {
1433
- let o = X((e) => e.modals.length);
1443
+ }, Fe = ({ registry: r, children: i, lockBodyScroll: a = !0 }) => {
1444
+ let o = Y((e) => e.modals.length);
1434
1445
  return s(() => {
1435
1446
  if (!a || o === 0) return;
1436
1447
  let e = document.body.style.overflow;
1437
1448
  return document.body.style.overflow = "hidden", () => {
1438
1449
  document.body.style.overflow = e;
1439
1450
  };
1440
- }, [a, o]), /* @__PURE__ */ n(e, { children: [i, /* @__PURE__ */ t(Ne, { registry: r })] });
1441
- }, Fe = (e) => e, Ie = {
1451
+ }, [a, o]), /* @__PURE__ */ n(e, { children: [i, /* @__PURE__ */ t(Pe, { registry: r })] });
1452
+ }, Ie = (e) => e, Le = {
1442
1453
  message: "_message_1vtru_1",
1443
1454
  actions: "_actions_1vtru_3"
1444
- }, Le = /* @__PURE__ */ new Map(), Re = 0, ze = ({ modalId: e, close: r, title: i = "Подтверждение", message: a = "Продолжить действие?", confirmLabel: o = "Подтвердить", cancelLabel: s = "Отмена", tone: c = "default", requestId: l }) => {
1455
+ }, Re = /* @__PURE__ */ new Map(), ze = 0, Be = ({ modalId: e, close: r, title: i = "Подтверждение", message: a = "Продолжить действие?", confirmLabel: o = "Подтвердить", cancelLabel: s = "Отмена", tone: c = "default", requestId: l }) => {
1445
1456
  let u = (e) => {
1446
- Le.get(l)?.(e), Le.delete(l), r();
1457
+ Re.get(l)?.(e), Re.delete(l), r();
1447
1458
  };
1448
- return /* @__PURE__ */ n(Me, {
1459
+ return /* @__PURE__ */ n(Ne, {
1449
1460
  modalId: e,
1450
1461
  title: i,
1451
1462
  role: "alertdialog",
1452
1463
  children: [/* @__PURE__ */ t("p", {
1453
- className: Ie.message,
1464
+ className: Le.message,
1454
1465
  children: a
1455
1466
  }), /* @__PURE__ */ n("div", {
1456
- className: Ie.actions,
1467
+ className: Le.actions,
1457
1468
  children: [/* @__PURE__ */ t(C, {
1458
1469
  variant: "outline",
1459
1470
  onClick: () => u(!1),
@@ -1465,124 +1476,55 @@ var w = {
1465
1476
  })]
1466
1477
  })]
1467
1478
  });
1468
- }, Be = ({ modalId: e, close: r, title: i = "Ошибка", message: a, closeLabel: o = "Закрыть" }) => /* @__PURE__ */ n(Me, {
1479
+ }, Ve = ({ modalId: e, close: r, title: i = "Ошибка", message: a, closeLabel: o = "Закрыть" }) => /* @__PURE__ */ n(Ne, {
1469
1480
  modalId: e,
1470
1481
  title: i,
1471
1482
  role: "alertdialog",
1472
1483
  children: [/* @__PURE__ */ t("p", {
1473
- className: Ie.message,
1484
+ className: Le.message,
1474
1485
  children: a
1475
1486
  }), /* @__PURE__ */ t("div", {
1476
- className: Ie.actions,
1487
+ className: Le.actions,
1477
1488
  children: /* @__PURE__ */ t(C, {
1478
1489
  onClick: r,
1479
1490
  children: o
1480
1491
  })
1481
1492
  })]
1482
- }), Ve = Fe({
1483
- ConfirmModal: ze,
1484
- ErrorModal: Be
1485
- }), He = () => {
1486
- let e = X((e) => e.openModal);
1493
+ }), He = Ie({
1494
+ ConfirmModal: Be,
1495
+ ErrorModal: Ve
1496
+ }), Ue = () => {
1497
+ let e = Y((e) => e.openModal);
1487
1498
  return (t = {}) => new Promise((n) => {
1488
- Re += 1;
1489
- let r = `confirm-${Re}`;
1490
- Le.set(r, n), e("ConfirmModal", {
1499
+ ze += 1;
1500
+ let r = `confirm-${ze}`;
1501
+ Re.set(r, n), e("ConfirmModal", {
1491
1502
  ...t,
1492
1503
  requestId: r
1493
1504
  }, { closeOnEscape: !1 });
1494
1505
  });
1495
- }, Ue = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : "Произошла неизвестная ошибка", We = () => {
1496
- let e = X((e) => e.openModal);
1506
+ }, We = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : "Произошла неизвестная ошибка", Ge = () => {
1507
+ let e = Y((e) => e.openModal);
1497
1508
  return { showError: (t, n) => e("ErrorModal", {
1498
1509
  title: n,
1499
- message: Ue(t)
1510
+ message: We(t)
1500
1511
  }) };
1501
- }, Ge = _(() => ({})), Ke = _(() => ({})), qe = () => {
1502
- let e = X((e) => e.modals), t = X((e) => e.openModal);
1512
+ }, Ke = _(() => ({})), qe = _(() => ({})), Je = () => {
1513
+ let e = Y((e) => e.modals), t = Y((e) => e.openModal);
1503
1514
  return {
1504
1515
  openModal: (e, n = {}, r) => t(e, n, r),
1505
- closeModal: X((e) => e.closeModal),
1506
- closeTopModal: X((e) => e.closeTopModal),
1507
- closeAllModals: X((e) => e.closeAllModals),
1516
+ closeModal: Y((e) => e.closeModal),
1517
+ closeTopModal: Y((e) => e.closeTopModal),
1518
+ closeAllModals: Y((e) => e.closeAllModals),
1508
1519
  isOpen: (t) => e.some((e) => e.name === t),
1509
1520
  count: e.length
1510
1521
  };
1511
- }, Je = { root: "_root_1x7h7_1" }, Ye = ({ label: e = "Загрузка страницы", className: r = "" }) => /* @__PURE__ */ n("div", {
1512
- className: `${Je.root} ${r}`,
1522
+ }, Ye = { root: "_root_1x7h7_1" }, Xe = ({ label: e = "Загрузка страницы", className: r = "" }) => /* @__PURE__ */ n("div", {
1523
+ className: `${Ye.root} ${r}`,
1513
1524
  role: "status",
1514
1525
  "aria-label": e,
1515
1526
  children: [/* @__PURE__ */ t(x, { decorative: !0 }), /* @__PURE__ */ t("span", { children: e })]
1516
- }), Xe = {
1517
- root: "_root_elask_1",
1518
- legend: "_legend_elask_3",
1519
- range: "_range_elask_5"
1520
- }, Ze = [
1521
- {
1522
- value: "1",
1523
- label: "День"
1524
- },
1525
- {
1526
- value: "2",
1527
- label: "Неделя"
1528
- },
1529
- {
1530
- value: "3",
1531
- label: "Месяц"
1532
- }
1533
- ], Qe = {
1534
- day: 1,
1535
- week: 2,
1536
- month: 3
1537
- }, $e = ({ value: e, onChange: r, label: i, hint: a, error: o, disabled: s = !1, min: c, max: l, className: u = "", periodTypeOptions: d = Ze }) => /* @__PURE__ */ n("fieldset", {
1538
- className: `${Xe.root} ${u}`,
1539
- disabled: s,
1540
- children: [
1541
- i && /* @__PURE__ */ t("legend", {
1542
- className: Xe.legend,
1543
- children: i
1544
- }),
1545
- /* @__PURE__ */ t(W, {
1546
- options: d,
1547
- value: String(e.periodType),
1548
- disabled: s,
1549
- onChange: (t) => r?.({
1550
- ...e,
1551
- periodType: Number(t)
1552
- }),
1553
- label: "Тип периода"
1554
- }),
1555
- /* @__PURE__ */ n("div", {
1556
- className: Xe.range,
1557
- children: [/* @__PURE__ */ t(R, {
1558
- value: e.startDate,
1559
- onChange: (t) => r?.({
1560
- ...e,
1561
- startDate: t
1562
- }),
1563
- label: "Начало",
1564
- min: c,
1565
- max: l,
1566
- disabled: s
1567
- }), /* @__PURE__ */ t(R, {
1568
- value: e.endDate,
1569
- onChange: (t) => r?.({
1570
- ...e,
1571
- endDate: t
1572
- }),
1573
- label: "Окончание",
1574
- min: e.startDate ?? c,
1575
- max: l,
1576
- disabled: s
1577
- })]
1578
- }),
1579
- a && !o && /* @__PURE__ */ t(E, { children: a }),
1580
- o && /* @__PURE__ */ t(E, {
1581
- variant: "error",
1582
- children: o
1583
- })
1584
- ]
1585
- }), et = {
1527
+ }), Z = {
1586
1528
  viewport: "_viewport_15mi5_1",
1587
1529
  "top-right": "_top-right_15mi5_3",
1588
1530
  "top-left": "_top-left_15mi5_5",
@@ -1595,7 +1537,7 @@ var w = {
1595
1537
  success: "_success_15mi5_19",
1596
1538
  warning: "_warning_15mi5_21",
1597
1539
  error: "_error_15mi5_23"
1598
- }, tt = (e) => {
1540
+ }, Ze = (e) => {
1599
1541
  let r;
1600
1542
  return r = e === "info" ? /* @__PURE__ */ n("svg", {
1601
1543
  xmlns: "http://www.w3.org/2000/svg",
@@ -1681,7 +1623,7 @@ var w = {
1681
1623
  /* @__PURE__ */ t("path", { d: "m9 9 6 6" })
1682
1624
  ]
1683
1625
  }), r;
1684
- }, nt = ({ toast: e, onClose: r }) => {
1626
+ }, Qe = ({ toast: e, onClose: r }) => {
1685
1627
  let [i, a] = d(!1), o = u(e.duration), c = u(Date.now());
1686
1628
  return s(() => {
1687
1629
  if (i || e.duration <= 0) return;
@@ -1696,7 +1638,7 @@ var w = {
1696
1638
  e.duration,
1697
1639
  e.id
1698
1640
  ]), /* @__PURE__ */ n("article", {
1699
- className: `${et.toast} ${et[e.variant]}`,
1641
+ className: `${Z.toast} ${Z[e.variant]}`,
1700
1642
  role: e.variant === "error" ? "alert" : "status",
1701
1643
  "aria-live": e.variant === "error" ? "assertive" : "polite",
1702
1644
  onMouseEnter: () => a(!0),
@@ -1704,9 +1646,9 @@ var w = {
1704
1646
  onFocus: () => a(!0),
1705
1647
  onBlur: () => a(!1),
1706
1648
  children: [
1707
- /* @__PURE__ */ t("div", { children: tt(e.variant) }),
1649
+ /* @__PURE__ */ t("div", { children: Ze(e.variant) }),
1708
1650
  /* @__PURE__ */ n("div", {
1709
- className: et.body,
1651
+ className: Z.body,
1710
1652
  children: [
1711
1653
  e.title && /* @__PURE__ */ t("strong", { children: e.title }),
1712
1654
  /* @__PURE__ */ t("div", { children: e.message }),
@@ -1740,11 +1682,11 @@ var w = {
1740
1682
  })
1741
1683
  ]
1742
1684
  });
1743
- }, rt = 0, Q = _((e) => ({
1685
+ }, $e = 0, Q = _((e) => ({
1744
1686
  toasts: [],
1745
1687
  showToast: (t) => {
1746
- rt += 1;
1747
- let n = `ds-toast-${rt}`;
1688
+ $e += 1;
1689
+ let n = `ds-toast-${$e}`;
1748
1690
  return e((e) => ({ toasts: [...e.toasts, {
1749
1691
  variant: "info",
1750
1692
  duration: 5e3,
@@ -1755,17 +1697,17 @@ var w = {
1755
1697
  },
1756
1698
  removeToast: (t) => e((e) => ({ toasts: e.toasts.filter((e) => e.id !== t) })),
1757
1699
  clearToasts: () => e({ toasts: [] })
1758
- })), it = () => Q.setState({ toasts: [] }), at = ({ position: e = "top-right" }) => {
1700
+ })), et = () => Q.setState({ toasts: [] }), tt = ({ position: e = "top-right" }) => {
1759
1701
  let n = Q((e) => e.toasts), r = Q((e) => e.removeToast);
1760
1702
  return /* @__PURE__ */ t("div", {
1761
- className: `${et.viewport} ${et[e]}`,
1703
+ className: `${Z.viewport} ${Z[e]}`,
1762
1704
  "aria-label": "Уведомления",
1763
- children: n.map((e) => /* @__PURE__ */ t(nt, {
1705
+ children: n.map((e) => /* @__PURE__ */ t(Qe, {
1764
1706
  toast: e,
1765
1707
  onClose: r
1766
1708
  }, e.id))
1767
1709
  });
1768
- }, ot = () => {
1710
+ }, nt = () => {
1769
1711
  let e = Q((e) => e.showToast), t = Q((e) => e.removeToast), n = Q((e) => e.clearToasts), r = o((t) => e({
1770
1712
  ...t,
1771
1713
  variant: "info"
@@ -1796,7 +1738,7 @@ var w = {
1796
1738
  i,
1797
1739
  a
1798
1740
  ]);
1799
- }, st = {
1741
+ }, rt = {
1800
1742
  root: "_root_s9o0g_1",
1801
1743
  tooltip: "_tooltip_s9o0g_3",
1802
1744
  "ds-tooltip-in": "_ds-tooltip-in_s9o0g_1",
@@ -1804,7 +1746,7 @@ var w = {
1804
1746
  bottom: "_bottom_s9o0g_7",
1805
1747
  left: "_left_s9o0g_9",
1806
1748
  right: "_right_s9o0g_11"
1807
- }, ct = ({ content: e, children: i, placement: o = "top", delay: l = 450, disabled: f = !1, maxWidth: p = 280, className: m = "" }) => {
1749
+ }, it = ({ content: e, children: i, placement: o = "top", delay: l = 450, disabled: f = !1, maxWidth: p = 280, className: m = "" }) => {
1808
1750
  let h = c(), [g, _] = d(!1), v = u(null), y = () => {
1809
1751
  f || !e || (v.current = setTimeout(() => _(!0), l));
1810
1752
  }, b = () => {
@@ -1826,12 +1768,12 @@ var w = {
1826
1768
  onBlur: b
1827
1769
  });
1828
1770
  return /* @__PURE__ */ n("span", {
1829
- className: `${st.root} ${m}`,
1771
+ className: `${rt.root} ${m}`,
1830
1772
  onPointerDown: g ? b : y,
1831
1773
  children: [x, g && /* @__PURE__ */ t("span", {
1832
1774
  id: h,
1833
1775
  role: "tooltip",
1834
- className: `${st.tooltip} ${st[o]}`,
1776
+ className: `${rt.tooltip} ${rt[o]}`,
1835
1777
  style: { maxWidth: p },
1836
1778
  children: e
1837
1779
  })]
@@ -1843,7 +1785,7 @@ var w = {
1843
1785
  overlay: "_overlay_1ue3g_7",
1844
1786
  error: "_error_1ue3g_7",
1845
1787
  caption: "_caption_1ue3g_13"
1846
- }, lt = ({ sources: e, tracks: r = [], title: i, aspectRatio: a = "16 / 9", objectFit: o = "contain", loading: s = !1, error: c, fallback: l, className: u = "", controls: f = !0, playsInline: p = !0, ...m }) => {
1788
+ }, at = ({ sources: e, tracks: r = [], title: i, aspectRatio: a = "16 / 9", objectFit: o = "contain", loading: s = !1, error: c, fallback: l, className: u = "", controls: f = !0, playsInline: p = !0, ...m }) => {
1847
1789
  let [h, g] = d(!1), _ = c ?? (h ? "Не удалось воспроизвести видео" : void 0);
1848
1790
  return /* @__PURE__ */ n("figure", {
1849
1791
  className: `${$.root} ${u}`,
@@ -1880,4 +1822,4 @@ var w = {
1880
1822
  });
1881
1823
  };
1882
1824
  //#endregion
1883
- export { ze as ConfirmModal, y as DSBadge, C as DSButton, O as DSCheckbox, ge as DSDataTable, V as DSDateRange, R as DSDateTimePicker, W as DSDropDown, _e as DSDropDownMultiple, T as DSFieldLabel, E as DSFieldMessage, Oe as DSFileInput, we as DSFilters, ye as DSIcon, be as DSInfoBlock, xe as DSInput, x as DSLoader, Ne as DSModal, Me as DSModalFrame, Ye as DSPageLoader, Se as DSRadioButton, ne as DSSkeleton, ae as DSSort, $e as DSTimePeriodPicker, nt as DSToast, at as DSToastProvider, ct as DSTooltip, lt as DSVideoPlayerFrame, Qe as DS_PERIOD_TYPE_CODES, Be as ErrorModal, Pe as ModalSystemProvider, Ve as builtInModalRegistry, Fe as defineModalRegistry, P as formatDateTimeLocalValue, Ue as getErrorMessage, re as getNextEnabledOptionIndex, B as isValidDateRange, F as parseDateTimeLocalValue, Ae as resetModalStore, it as resetToastStore, He as useConfirmModal, Ge as useConfirmModalStore, We as useErrorModal, Ke as useErrorModalStore, qe as useModals, X as useModalsStore, ot as useToast, Q as useToastStore, se as validateDSDataTableData };
1825
+ export { Be as ConfirmModal, y as DSBadge, C as DSButton, O as DSCheckbox, _e as DSDataTable, B as DSDateRange, ne as DSDateTimePicker, ie as DSDropDown, ve as DSDropDownMultiple, T as DSFieldLabel, E as DSFieldMessage, ke as DSFileInput, Te as DSFilters, be as DSIcon, xe as DSInfoBlock, Se as DSInput, x as DSLoader, Pe as DSModal, Ne as DSModalFrame, Xe as DSPageLoader, Ce as DSRadioButton, H as DSSkeleton, oe as DSSort, Qe as DSToast, tt as DSToastProvider, it as DSTooltip, at as DSVideoPlayerFrame, Ve as ErrorModal, Fe as ModalSystemProvider, He as builtInModalRegistry, Ie as defineModalRegistry, P as formatDateTimeLocalValue, We as getErrorMessage, re as getNextEnabledOptionIndex, z as isValidDateRange, F as parseDateTimeLocalValue, je as resetModalStore, et as resetToastStore, Ue as useConfirmModal, Ke as useConfirmModalStore, Ge as useErrorModal, qe as useErrorModalStore, Je as useModals, Y as useModalsStore, nt as useToast, Q as useToastStore, ce as validateDSDataTableData };