@efficiency-point/design-system 0.1.23 → 0.1.25

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
@@ -4,17 +4,17 @@ import { createPortal as g } from "react-dom";
4
4
  import { createSortedRowModel as _, rowSortingFeature as v, tableFeatures as y, useTable as b } from "@tanstack/react-table";
5
5
  import { create as x } from "zustand";
6
6
  var S = {
7
- badge: "_badge_1xyff_1",
8
- sm: "_sm_1xyff_29",
9
- md: "_md_1xyff_39",
10
- neutral: "_neutral_1xyff_49",
11
- info: "_info_1xyff_61",
12
- success: "_success_1xyff_73",
13
- warning: "_warning_1xyff_85",
14
- error: "_error_1xyff_97",
15
- dot: "_dot_1xyff_109",
16
- icon: "_icon_1xyff_125",
17
- label: "_label_1xyff_135"
7
+ badge: "_badge_1erxk_1",
8
+ sm: "_sm_1erxk_29",
9
+ md: "_md_1erxk_39",
10
+ neutral: "_neutral_1erxk_49",
11
+ info: "_info_1erxk_61",
12
+ success: "_success_1erxk_73",
13
+ warning: "_warning_1erxk_85",
14
+ error: "_error_1erxk_97",
15
+ dot: "_dot_1erxk_109",
16
+ icon: "_icon_1erxk_125",
17
+ label: "_label_1erxk_135"
18
18
  }, C = ({ children: e, variant: r = "neutral", size: i = "md", dot: a = !1, icon: o, className: s = "" }) => /* @__PURE__ */ n("span", {
19
19
  className: `${S.badge} ${S[r]} ${S[i]} ${s}`,
20
20
  children: [
@@ -170,133 +170,133 @@ var O = {
170
170
  cy: "12",
171
171
  r: "10"
172
172
  }), /* @__PURE__ */ t("path", { d: "M12 16v-4M12 8v.01" })]
173
- }), V = (e) => /* @__PURE__ */ t(A, {
173
+ }), te = (e) => /* @__PURE__ */ t(A, {
174
174
  ...e,
175
175
  children: /* @__PURE__ */ t("path", { d: "M5 12h14" })
176
- }), H = (e) => /* @__PURE__ */ t(A, {
176
+ }), V = (e) => /* @__PURE__ */ t(A, {
177
177
  ...e,
178
178
  children: /* @__PURE__ */ t("path", {
179
179
  d: "M8 5v14M16 5v14",
180
180
  strokeWidth: "3"
181
181
  })
182
- }), U = (e) => /* @__PURE__ */ t(A, {
182
+ }), H = (e) => /* @__PURE__ */ t(A, {
183
183
  ...e,
184
184
  children: /* @__PURE__ */ t("path", { d: "M3 5h18v14H3V5Zm10 7h6v5h-6v-5Z" })
185
- }), W = (e) => /* @__PURE__ */ t(A, {
185
+ }), U = (e) => /* @__PURE__ */ t(A, {
186
186
  ...e,
187
187
  children: /* @__PURE__ */ t("path", {
188
188
  d: "m8 5 11 7-11 7V5Z",
189
189
  fill: "currentColor",
190
190
  stroke: "none"
191
191
  })
192
- }), te = (e) => /* @__PURE__ */ t(A, {
192
+ }), W = (e) => /* @__PURE__ */ t(A, {
193
193
  ...e,
194
194
  children: /* @__PURE__ */ t("path", { d: "M4 7v5h5M5.5 11a7 7 0 1 1 1.3 6.3" })
195
195
  }), ne = (e) => /* @__PURE__ */ t(A, {
196
196
  ...e,
197
197
  children: /* @__PURE__ */ t("path", { d: "M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Zm7.4 5.2.1-1.7-.1-1.7 2-1.5-2-3.4-2.4 1a8 8 0 0 0-2.9-1.7L13.8 2h-3.9l-.4 2.7a8 8 0 0 0-2.8 1.7l-2.5-1-2 3.4 2.1 1.5-.1 1.7.1 1.7-2.1 1.5 2 3.4 2.5-1a8 8 0 0 0 2.8 1.7l.4 2.7h3.9l.3-2.7a8 8 0 0 0 2.9-1.7l2.4 1 2-3.4-2-1.5Z" })
198
- }), re = (e) => /* @__PURE__ */ t(A, {
198
+ }), G = (e) => /* @__PURE__ */ t(A, {
199
199
  ...e,
200
200
  children: /* @__PURE__ */ t("path", { d: "M9 4H4v5m11-5h5v5M9 20H4v-5m11 5h5v-5" })
201
- }), ie = (e) => /* @__PURE__ */ t(A, {
201
+ }), re = (e) => /* @__PURE__ */ t(A, {
202
202
  ...e,
203
203
  children: /* @__PURE__ */ t("path", { d: "M4 9h5V4m6 5h5V4M4 15h5v5m6-5h5v5" })
204
- }), ae = (e) => /* @__PURE__ */ t(A, {
204
+ }), ie = (e) => /* @__PURE__ */ t(A, {
205
205
  ...e,
206
206
  children: /* @__PURE__ */ t("path", { d: "M4 6h16v12H4V6Zm7 4a2 2 0 1 0 0 4m7-4a2 2 0 1 0 0 4" })
207
- }), oe = (e) => /* @__PURE__ */ t(A, {
207
+ }), ae = (e) => /* @__PURE__ */ t(A, {
208
208
  ...e,
209
209
  children: /* @__PURE__ */ t("path", { d: "M5 10v4h4l5 4V6l-5 4H5Zm12-1c1.3 1.5 1.3 4.5 0 6m2.5-8.5c3 3 3 8 0 11" })
210
- }), se = (e) => /* @__PURE__ */ t(A, {
210
+ }), oe = (e) => /* @__PURE__ */ t(A, {
211
211
  ...e,
212
212
  children: /* @__PURE__ */ t("path", { d: "M5 10v4h4l5 4V6l-5 4H5Zm12 0 4 4m0-4-4 4" })
213
- }), ce = (e) => /* @__PURE__ */ t(A, {
213
+ }), se = (e) => /* @__PURE__ */ t(A, {
214
214
  ...e,
215
215
  children: /* @__PURE__ */ t("path", { d: "M8 17V5m-3 3 3-3 3 3M16 7v12m-3-3 3 3 3-3" })
216
- }), G = (e) => /* @__PURE__ */ t(A, {
216
+ }), K = (e) => /* @__PURE__ */ t(A, {
217
217
  ...e,
218
218
  children: /* @__PURE__ */ t("path", { d: "M12 19V5m-5 5 5-5 5 5" })
219
- }), le = (e) => /* @__PURE__ */ t(A, {
219
+ }), ce = (e) => /* @__PURE__ */ t(A, {
220
220
  ...e,
221
221
  children: /* @__PURE__ */ t("path", { d: "M12 5v14m-5-5 5 5 5-5" })
222
- }), ue = (e) => /* @__PURE__ */ n(A, {
222
+ }), le = (e) => /* @__PURE__ */ n(A, {
223
223
  ...e,
224
224
  children: [/* @__PURE__ */ t("circle", {
225
225
  cx: "12",
226
226
  cy: "12",
227
227
  r: "10"
228
228
  }), /* @__PURE__ */ t("path", { d: "m9 12 2 2 4-4" })]
229
- }), de = (e) => /* @__PURE__ */ t(A, {
229
+ }), ue = (e) => /* @__PURE__ */ t(A, {
230
230
  ...e,
231
231
  children: /* @__PURE__ */ t("path", { d: "M12 19V5m-5 5 5-5 5 5" })
232
- }), fe = (e) => /* @__PURE__ */ n(A, {
232
+ }), de = (e) => /* @__PURE__ */ n(A, {
233
233
  ...e,
234
234
  children: [/* @__PURE__ */ t("path", { d: "M12 3.5L21 19H3L12 3.5Z" }), /* @__PURE__ */ t("path", { d: "M12 9v4.5M12 16.5v.01" })]
235
- }), K = (e) => (n) => /* @__PURE__ */ t(A, {
235
+ }), q = (e) => (n) => /* @__PURE__ */ t(A, {
236
236
  ...n,
237
237
  children: e.map(([e, t], n) => a(e, {
238
238
  ...t,
239
239
  key: t.key ?? `${e}-${n}`
240
240
  }))
241
- }), pe = {
242
- IconActivity: K([["path", {
241
+ }), fe = {
242
+ IconActivity: q([["path", {
243
243
  d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
244
244
  key: "169zse"
245
245
  }]]),
246
- IconAlertTriangle: K([
246
+ IconAlertTriangle: q([
247
247
  ["path", { d: "m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }],
248
248
  ["path", { d: "M12 9v4" }],
249
249
  ["path", { d: "M12 17h.01" }]
250
250
  ]),
251
- IconArrowDown: K([["path", {
251
+ IconArrowDown: q([["path", {
252
252
  d: "M12 5v14",
253
253
  key: "s699le"
254
254
  }], ["path", {
255
255
  d: "m19 12-7 7-7-7",
256
256
  key: "1idqje"
257
257
  }]]),
258
- IconArrowLeft: K([["path", {
258
+ IconArrowLeft: q([["path", {
259
259
  d: "m12 19-7-7 7-7",
260
260
  key: "1l729n"
261
261
  }], ["path", {
262
262
  d: "M19 12H5",
263
263
  key: "x3x0zl"
264
264
  }]]),
265
- IconArrowRight: K([["path", {
265
+ IconArrowRight: q([["path", {
266
266
  d: "M5 12h14",
267
267
  key: "1ays0h"
268
268
  }], ["path", {
269
269
  d: "m12 5 7 7-7 7",
270
270
  key: "xquz4c"
271
271
  }]]),
272
- IconArrowUp: K([["path", {
272
+ IconArrowUp: q([["path", {
273
273
  d: "m5 12 7-7 7 7",
274
274
  key: "hav0vg"
275
275
  }], ["path", {
276
276
  d: "M12 19V5",
277
277
  key: "x0mq9r"
278
278
  }]]),
279
- IconArrowUpRight: K([["path", {
279
+ IconArrowUpRight: q([["path", {
280
280
  d: "M7 7h10v10",
281
281
  key: "1tivn9"
282
282
  }], ["path", {
283
283
  d: "M7 17 17 7",
284
284
  key: "1vkiza"
285
285
  }]]),
286
- IconBarChart3: K([
286
+ IconBarChart3: q([
287
287
  ["path", { d: "M3 3v18h18" }],
288
288
  ["path", { d: "M18 17V9" }],
289
289
  ["path", { d: "M13 17V5" }],
290
290
  ["path", { d: "M8 17v-3" }]
291
291
  ]),
292
- IconBell: K([["path", {
292
+ IconBell: q([["path", {
293
293
  d: "M10.268 21a2 2 0 0 0 3.464 0",
294
294
  key: "vwvbt9"
295
295
  }], ["path", {
296
296
  d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
297
297
  key: "11g9vi"
298
298
  }]]),
299
- IconBoxes: K([
299
+ IconBoxes: q([
300
300
  ["path", {
301
301
  d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
302
302
  key: "lc1i9w"
@@ -346,7 +346,7 @@ var O = {
346
346
  key: "1io7kd"
347
347
  }]
348
348
  ]),
349
- IconBuilding2: K([
349
+ IconBuilding2: q([
350
350
  ["path", {
351
351
  d: "M10 12h4",
352
352
  key: "a56b0p"
@@ -368,7 +368,7 @@ var O = {
368
368
  key: "16ra0t"
369
369
  }]
370
370
  ]),
371
- IconCamera: K([["path", {
371
+ IconCamera: q([["path", {
372
372
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
373
373
  key: "18u6gg"
374
374
  }], ["circle", {
@@ -377,7 +377,7 @@ var O = {
377
377
  r: "3",
378
378
  key: "1vg3eu"
379
379
  }]]),
380
- IconChartNoAxesCombined: K([
380
+ IconChartNoAxesCombined: q([
381
381
  ["path", {
382
382
  d: "M12 16v5",
383
383
  key: "zza2cw"
@@ -403,11 +403,11 @@ var O = {
403
403
  key: "1t2idw"
404
404
  }]
405
405
  ]),
406
- IconChevronRight: K([["path", {
406
+ IconChevronRight: q([["path", {
407
407
  d: "m9 18 6-6-6-6",
408
408
  key: "mthhwq"
409
409
  }]]),
410
- IconCircleAlert: K([
410
+ IconCircleAlert: q([
411
411
  ["circle", {
412
412
  cx: "12",
413
413
  cy: "12",
@@ -429,7 +429,7 @@ var O = {
429
429
  key: "4dfq90"
430
430
  }]
431
431
  ]),
432
- IconClock3: K([["circle", {
432
+ IconClock3: q([["circle", {
433
433
  cx: "12",
434
434
  cy: "12",
435
435
  r: "10",
@@ -438,7 +438,7 @@ var O = {
438
438
  d: "M12 6v6h4",
439
439
  key: "135r8i"
440
440
  }]]),
441
- IconDownload: K([
441
+ IconDownload: q([
442
442
  ["path", {
443
443
  d: "M12 15V3",
444
444
  key: "m9g1x1"
@@ -452,7 +452,7 @@ var O = {
452
452
  key: "brsn70"
453
453
  }]
454
454
  ]),
455
- IconExternalLink: K([
455
+ IconExternalLink: q([
456
456
  ["path", {
457
457
  d: "M15 3h6v6",
458
458
  key: "1q9fwt"
@@ -466,7 +466,7 @@ var O = {
466
466
  key: "a6xqqp"
467
467
  }]
468
468
  ]),
469
- IconFactory: K([
469
+ IconFactory: q([
470
470
  ["path", {
471
471
  d: "M12 16h.01",
472
472
  key: "1drbdi"
@@ -484,14 +484,14 @@ var O = {
484
484
  key: "18s6g9"
485
485
  }]
486
486
  ]),
487
- IconGauge: K([["path", {
487
+ IconGauge: q([["path", {
488
488
  d: "m12 14 4-4",
489
489
  key: "9kzdfg"
490
490
  }], ["path", {
491
491
  d: "M3.34 19a10 10 0 1 1 17.32 0",
492
492
  key: "19p75a"
493
493
  }]]),
494
- IconGripVertical: K([
494
+ IconGripVertical: q([
495
495
  ["circle", {
496
496
  cx: "9",
497
497
  cy: "12",
@@ -529,7 +529,7 @@ var O = {
529
529
  key: "f4zoj3"
530
530
  }]
531
531
  ]),
532
- IconLayoutDashboard: K([
532
+ IconLayoutDashboard: q([
533
533
  ["rect", {
534
534
  width: "7",
535
535
  height: "9",
@@ -563,7 +563,7 @@ var O = {
563
563
  key: "ldoo1y"
564
564
  }]
565
565
  ]),
566
- IconLockKeyhole: K([
566
+ IconLockKeyhole: q([
567
567
  ["circle", {
568
568
  cx: "12",
569
569
  cy: "16",
@@ -583,7 +583,7 @@ var O = {
583
583
  key: "1pqi11"
584
584
  }]
585
585
  ]),
586
- IconLogOut: K([
586
+ IconLogOut: q([
587
587
  ["path", {
588
588
  d: "m16 17 5-5-5-5",
589
589
  key: "1bji2h"
@@ -597,7 +597,7 @@ var O = {
597
597
  key: "1uf3rs"
598
598
  }]
599
599
  ]),
600
- IconMaximize2: K([
600
+ IconMaximize2: q([
601
601
  ["path", {
602
602
  d: "M15 3h6v6",
603
603
  key: "1q9fwt"
@@ -615,7 +615,7 @@ var O = {
615
615
  key: "wtvkvv"
616
616
  }]
617
617
  ]),
618
- IconMenu: K([
618
+ IconMenu: q([
619
619
  ["path", {
620
620
  d: "M4 5h16",
621
621
  key: "1tepv9"
@@ -629,7 +629,7 @@ var O = {
629
629
  key: "1djgab"
630
630
  }]
631
631
  ]),
632
- IconPackageCheck: K([
632
+ IconPackageCheck: q([
633
633
  ["path", {
634
634
  d: "M12 22V12",
635
635
  key: "d0xqtd"
@@ -651,7 +651,7 @@ var O = {
651
651
  key: "9yrvtv"
652
652
  }]
653
653
  ]),
654
- IconRefreshCw: K([
654
+ IconRefreshCw: q([
655
655
  ["path", {
656
656
  d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
657
657
  key: "v9h5vc"
@@ -669,14 +669,14 @@ var O = {
669
669
  key: "1cv678"
670
670
  }]
671
671
  ]),
672
- IconRotateCw: K([["path", {
672
+ IconRotateCw: q([["path", {
673
673
  d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",
674
674
  key: "1p45f6"
675
675
  }], ["path", {
676
676
  d: "M21 3v5h-5",
677
677
  key: "1q7to0"
678
678
  }]]),
679
- IconSearch: K([["path", {
679
+ IconSearch: q([["path", {
680
680
  d: "m21 21-4.34-4.34",
681
681
  key: "14j7rj"
682
682
  }], ["circle", {
@@ -685,7 +685,7 @@ var O = {
685
685
  r: "8",
686
686
  key: "4ej97u"
687
687
  }]]),
688
- IconSettings2: K([
688
+ IconSettings2: q([
689
689
  ["path", {
690
690
  d: "M14 17H5",
691
691
  key: "gfn3mx"
@@ -707,7 +707,7 @@ var O = {
707
707
  key: "dfmy0x"
708
708
  }]
709
709
  ]),
710
- IconShieldAlert: K([
710
+ IconShieldAlert: q([
711
711
  ["path", {
712
712
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
713
713
  key: "oel41y"
@@ -721,14 +721,14 @@ var O = {
721
721
  key: "1drbdi"
722
722
  }]
723
723
  ]),
724
- IconShieldCheck: K([["path", {
724
+ IconShieldCheck: q([["path", {
725
725
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
726
726
  key: "oel41y"
727
727
  }], ["path", {
728
728
  d: "m9 12 2 2 4-4",
729
729
  key: "dzmm74"
730
730
  }]]),
731
- IconSmartphone: K([["rect", {
731
+ IconSmartphone: q([["rect", {
732
732
  width: "14",
733
733
  height: "20",
734
734
  x: "5",
@@ -740,7 +740,7 @@ var O = {
740
740
  d: "M12 18h.01",
741
741
  key: "mhygvu"
742
742
  }]]),
743
- IconSparkles: K([
743
+ IconSparkles: q([
744
744
  ["path", {
745
745
  d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
746
746
  key: "1s2grr"
@@ -760,22 +760,22 @@ var O = {
760
760
  key: "6kqj1y"
761
761
  }]
762
762
  ]),
763
- IconTable2: K([["path", {
763
+ IconTable2: q([["path", {
764
764
  d: "M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",
765
765
  key: "gugj83"
766
766
  }]]),
767
- IconThermometer: K([["path", {
767
+ IconThermometer: q([["path", {
768
768
  d: "M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",
769
769
  key: "17jzev"
770
770
  }]]),
771
- IconTrendingUp: K([["path", {
771
+ IconTrendingUp: q([["path", {
772
772
  d: "M16 7h6v6",
773
773
  key: "box55l"
774
774
  }], ["path", {
775
775
  d: "m22 7-8.5 8.5-5-5L2 17",
776
776
  key: "1t1m79"
777
777
  }]]),
778
- IconUserCheck: K([
778
+ IconUserCheck: q([
779
779
  ["path", {
780
780
  d: "m16 11 2 2 4-4",
781
781
  key: "9rsbq5"
@@ -791,7 +791,7 @@ var O = {
791
791
  key: "nufk8"
792
792
  }]
793
793
  ]),
794
- IconUserRound: K([["circle", {
794
+ IconUserRound: q([["circle", {
795
795
  cx: "12",
796
796
  cy: "8",
797
797
  r: "5",
@@ -800,7 +800,7 @@ var O = {
800
800
  d: "M20 21a8 8 0 0 0-16 0",
801
801
  key: "rfgkzh"
802
802
  }]]),
803
- IconUsers: K([
803
+ IconUsers: q([
804
804
  ["path", {
805
805
  d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
806
806
  key: "1yyitq"
@@ -820,7 +820,7 @@ var O = {
820
820
  key: "nufk8"
821
821
  }]
822
822
  ]),
823
- IconUserX: K([
823
+ IconUserX: q([
824
824
  ["path", {
825
825
  d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
826
826
  key: "1yyitq"
@@ -846,7 +846,7 @@ var O = {
846
846
  key: "1swrse"
847
847
  }]
848
848
  ]),
849
- IconVideo: K([["path", {
849
+ IconVideo: q([["path", {
850
850
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
851
851
  key: "ftymec"
852
852
  }], ["rect", {
@@ -857,7 +857,7 @@ var O = {
857
857
  rx: "2",
858
858
  key: "158x01"
859
859
  }]]),
860
- IconVideoOff: K([
860
+ IconVideoOff: q([
861
861
  ["path", {
862
862
  d: "M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",
863
863
  key: "w8jjjt"
@@ -871,7 +871,7 @@ var O = {
871
871
  key: "1ooewy"
872
872
  }]
873
873
  ]),
874
- IconVolume2: K([
874
+ IconVolume2: q([
875
875
  ["path", {
876
876
  d: "M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",
877
877
  key: "uqj9uw"
@@ -885,7 +885,7 @@ var O = {
885
885
  key: "ijwkga"
886
886
  }]
887
887
  ]),
888
- IconX: K([["path", {
888
+ IconX: q([["path", {
889
889
  d: "M18 6 6 18",
890
890
  key: "1bl5f8"
891
891
  }], ["path", {
@@ -902,27 +902,27 @@ var O = {
902
902
  IconEyeOff: R,
903
903
  IconInfo: z,
904
904
  IconInfoCircle: B,
905
- IconMinus: V,
906
- IconPause: H,
907
- IconPictureInPicture: U,
908
- IconPlay: W,
909
- IconReplay: te,
905
+ IconMinus: te,
906
+ IconPause: V,
907
+ IconPictureInPicture: H,
908
+ IconPlay: U,
909
+ IconReplay: W,
910
910
  IconSettings: ne,
911
- IconFullscreen: re,
912
- IconFullscreenExit: ie,
913
- IconCaptions: ae,
914
- IconVolume: oe,
915
- IconVolumeMuted: se,
916
- IconSort: ce,
917
- IconSortAscending: G,
918
- IconSortDescending: le,
919
- IconSuccessCircle: ue,
920
- IconUpload: de,
921
- IconWarning: fe
922
- }, q = ({ name: e, ...n }) => {
923
- let r = pe[e];
911
+ IconFullscreen: G,
912
+ IconFullscreenExit: re,
913
+ IconCaptions: ie,
914
+ IconVolume: ae,
915
+ IconVolumeMuted: oe,
916
+ IconSort: se,
917
+ IconSortAscending: K,
918
+ IconSortDescending: ce,
919
+ IconSuccessCircle: le,
920
+ IconUpload: ue,
921
+ IconWarning: de
922
+ }, J = ({ name: e, ...n }) => {
923
+ let r = fe[e];
924
924
  return /* @__PURE__ */ t(r, { ...n });
925
- }, J = {
925
+ }, pe = {
926
926
  wrapper: "_wrapper_1seon_1",
927
927
  label: "_label_1seon_13",
928
928
  input: "_input_1seon_35",
@@ -934,10 +934,10 @@ var O = {
934
934
  return u(() => {
935
935
  y.current && (y.current.indeterminate = h && !e);
936
936
  }, [e, h]), /* @__PURE__ */ n("div", {
937
- className: `${J.wrapper} ${l}`,
937
+ className: `${pe.wrapper} ${l}`,
938
938
  children: [
939
939
  /* @__PURE__ */ n("label", {
940
- className: `${J.label} ${s ? J.disabled : ""}`,
940
+ className: `${pe.label} ${s ? pe.disabled : ""}`,
941
941
  htmlFor: v,
942
942
  children: [
943
943
  /* @__PURE__ */ t("input", {
@@ -950,20 +950,20 @@ var O = {
950
950
  "aria-readonly": c || void 0,
951
951
  "aria-invalid": !!o,
952
952
  "aria-describedby": [b, x].filter(Boolean).join(" ") || void 0,
953
- className: J.input,
953
+ className: pe.input,
954
954
  onChange: (e) => {
955
955
  c || r?.(e.target.checked, e);
956
956
  },
957
957
  ...g
958
958
  }),
959
959
  /* @__PURE__ */ n("span", {
960
- className: `${J.control} ${o ? J.controlError : ""}`,
960
+ className: `${pe.control} ${o ? pe.controlError : ""}`,
961
961
  "aria-hidden": "true",
962
- children: [h && !e && /* @__PURE__ */ t(q, {
962
+ children: [h && !e && /* @__PURE__ */ t(J, {
963
963
  name: "IconMinus",
964
964
  width: 16,
965
965
  height: 16
966
- }), e && /* @__PURE__ */ t(q, {
966
+ }), e && /* @__PURE__ */ t(J, {
967
967
  name: "IconCheck",
968
968
  width: 16,
969
969
  height: 16
@@ -1093,17 +1093,17 @@ var O = {
1093
1093
  let r = Te(e).getTime();
1094
1094
  return !!(t && r < Te(t).getTime() || n && r > Te(n).getTime());
1095
1095
  }, Me = 8, Ne = 6, Pe = ({ value: r, onChange: i, mode: a = "date", label: o, placeholder: s, hint: l, error: _, disabled: v = !1, readOnly: y = !1, required: b = !1, min: x, max: S, size: C = "md", id: w, name: T, className: E = "" }) => {
1096
- let D = d(), O = w ?? `ds-date-time-${T ?? D}`, A = l ? `${O}-hint` : void 0, j = _ ? `${O}-error` : void 0, M = m(null), N = m(null), P = m(null), F = m(null), [I, L] = h(!1), [R, z] = h(r ?? /* @__PURE__ */ new Date()), [B, V] = h(Ee(r, "time")), [H, U] = h(be(r)), [W, te] = h(""), [ne, re] = h(0), [ie, ae] = h(null), oe = p(() => ke(R), [R]), se = a !== "time", ce = a !== "date";
1096
+ let D = d(), O = w ?? `ds-date-time-${T ?? D}`, A = l ? `${O}-hint` : void 0, j = _ ? `${O}-error` : void 0, M = m(null), N = m(null), P = m(null), F = m(null), [I, L] = h(!1), [R, z] = h(r ?? /* @__PURE__ */ new Date()), [B, te] = h(Ee(r, "time")), [V, H] = h(be(r)), [U, W] = h(""), [ne, G] = h(0), [re, ie] = h(null), ae = p(() => ke(R), [R]), oe = a !== "time", se = a !== "date";
1097
1097
  u(() => {
1098
- r && z(r), V(Ee(r, "time")), U(be(r));
1098
+ r && z(r), te(Ee(r, "time")), H(be(r));
1099
1099
  }, [r]), u(() => () => {
1100
1100
  F.current && clearTimeout(F.current);
1101
1101
  }, []);
1102
- let G = c(() => {
1102
+ let K = c(() => {
1103
1103
  let e = N.current, t = P.current;
1104
1104
  if (!e || !t) return;
1105
1105
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight - n.bottom - Me, o = n.top - Me, s = a < r.height && o > a, c = Math.max(120, s ? o : a), l = s ? Math.max(Me, n.top - r.height - Ne) : n.bottom + Ne, u = n.left, d = i - r.width - Me;
1106
- ae({
1106
+ ie({
1107
1107
  top: l,
1108
1108
  left: Math.max(Me, Math.min(u, d)),
1109
1109
  maxHeight: c
@@ -1111,15 +1111,15 @@ var O = {
1111
1111
  }, []);
1112
1112
  f(() => {
1113
1113
  if (!I) {
1114
- ae(null);
1114
+ ie(null);
1115
1115
  return;
1116
1116
  }
1117
- return G(), window.addEventListener("resize", G), window.addEventListener("scroll", G, !0), () => {
1118
- window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
1117
+ return K(), window.addEventListener("resize", K), window.addEventListener("scroll", K, !0), () => {
1118
+ window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0);
1119
1119
  };
1120
1120
  }, [
1121
1121
  I,
1122
- G,
1122
+ K,
1123
1123
  R,
1124
1124
  B
1125
1125
  ]), u(() => {
@@ -1134,34 +1134,34 @@ var O = {
1134
1134
  document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t);
1135
1135
  };
1136
1136
  }, [I]);
1137
- let le = (e) => {
1137
+ let ce = (e) => {
1138
1138
  if (je(e, x, S)) return;
1139
1139
  let t = a === "date" ? De(Ee(e, "date"), "date") : new Date(e);
1140
- t && (a !== "date" && t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), U(be(t)), a === "date" && L(!1));
1141
- }, ue = () => {
1142
- te(ye), re((e) => e + 1), F.current && clearTimeout(F.current), F.current = setTimeout(() => {
1143
- te(""), F.current = null;
1140
+ t && (a !== "date" && t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), H(be(t)), a === "date" && L(!1));
1141
+ }, le = () => {
1142
+ W(ye), G((e) => e + 1), F.current && clearTimeout(F.current), F.current = setTimeout(() => {
1143
+ W(""), F.current = null;
1144
1144
  }, 3e3);
1145
- }, de = (e) => {
1145
+ }, ue = (e) => {
1146
1146
  let t = e.replace(/\D/g, "").slice(0, ve);
1147
1147
  if (!Ce(t)) {
1148
- ue();
1148
+ le();
1149
1149
  return;
1150
1150
  }
1151
1151
  let n = xe(t);
1152
- if (U(n), !t) {
1152
+ if (H(n), !t) {
1153
1153
  i?.(null);
1154
1154
  return;
1155
1155
  }
1156
1156
  if (t.length < ve) return;
1157
1157
  let o = we(n);
1158
1158
  if (!o || je(o, x, S)) {
1159
- ue();
1159
+ le();
1160
1160
  return;
1161
1161
  }
1162
1162
  a === "datetime" && o.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(o), z(o), L(!1), requestAnimationFrame(() => N.current?.blur());
1163
- }, fe = (e) => {
1164
- if (V(e), !e) {
1163
+ }, de = (e) => {
1164
+ if (te(e), !e) {
1165
1165
  i?.(null);
1166
1166
  return;
1167
1167
  }
@@ -1169,25 +1169,25 @@ var O = {
1169
1169
  if (!t) return;
1170
1170
  let n = new Date(a === "datetime" ? r ?? R : /* @__PURE__ */ new Date());
1171
1171
  n.setHours(t.getHours(), t.getMinutes(), 0, 0), !(x && n < x || S && n > S) && i?.(n);
1172
- }, K = s ?? (a === "date" ? "ДД.ММ.ГГГГ" : a === "time" ? "ЧЧ:ММ" : "ДД.ММ.ГГГГ ЧЧ:ММ"), pe = W ? `${O}-validation` : void 0, J = [
1172
+ }, q = s ?? (a === "date" ? "ДД.ММ.ГГГГ" : a === "time" ? "ЧЧ:ММ" : "ДД.ММ.ГГГГ ЧЧ:ММ"), fe = U ? `${O}-validation` : void 0, pe = [
1173
1173
  A,
1174
1174
  j,
1175
- pe
1175
+ fe
1176
1176
  ].filter(Boolean).join(" ") || void 0, me = I && !y ? /* @__PURE__ */ n("div", {
1177
1177
  ref: P,
1178
1178
  className: Y.panel,
1179
1179
  role: "dialog",
1180
- "aria-label": o ?? K,
1181
- style: ie ? {
1182
- top: ie.top,
1183
- left: ie.left,
1184
- maxHeight: ie.maxHeight
1180
+ "aria-label": o ?? q,
1181
+ style: re ? {
1182
+ top: re.top,
1183
+ left: re.left,
1184
+ maxHeight: re.maxHeight
1185
1185
  } : {
1186
1186
  visibility: "hidden",
1187
1187
  top: 0,
1188
1188
  left: 0
1189
1189
  },
1190
- children: [se && /* @__PURE__ */ n(e, { children: [
1190
+ children: [oe && /* @__PURE__ */ n(e, { children: [
1191
1191
  /* @__PURE__ */ n("div", {
1192
1192
  className: Y.calendarHeader,
1193
1193
  children: [
@@ -1196,7 +1196,7 @@ var O = {
1196
1196
  className: Y.nav,
1197
1197
  "aria-label": "Предыдущий месяц",
1198
1198
  onClick: () => z(new Date(R.getFullYear(), R.getMonth() - 1, 1)),
1199
- children: /* @__PURE__ */ t(q, {
1199
+ children: /* @__PURE__ */ t(J, {
1200
1200
  name: "IconChevron",
1201
1201
  width: 20,
1202
1202
  height: 20,
@@ -1225,7 +1225,7 @@ var O = {
1225
1225
  className: Y.nav,
1226
1226
  "aria-label": "Следующий месяц",
1227
1227
  onClick: () => z(new Date(R.getFullYear(), R.getMonth() + 1, 1)),
1228
- children: /* @__PURE__ */ t(q, {
1228
+ children: /* @__PURE__ */ t(J, {
1229
1229
  name: "IconChevron",
1230
1230
  width: 20,
1231
1231
  height: 20,
@@ -1240,25 +1240,25 @@ var O = {
1240
1240
  }),
1241
1241
  /* @__PURE__ */ t("div", {
1242
1242
  className: Y.days,
1243
- children: oe.map((e) => {
1243
+ children: ae.map((e) => {
1244
1244
  let n = Ae(r, e);
1245
1245
  return /* @__PURE__ */ t("button", {
1246
1246
  type: "button",
1247
1247
  className: `${Y.day} ${e.getMonth() === R.getMonth() ? "" : Y.outside} ${n ? Y.selected : ""}`,
1248
1248
  disabled: je(e, x, S),
1249
1249
  "aria-pressed": n,
1250
- onClick: () => le(e),
1250
+ onClick: () => ce(e),
1251
1251
  children: e.getDate()
1252
1252
  }, e.toISOString());
1253
1253
  })
1254
1254
  })
1255
- ] }), ce && /* @__PURE__ */ n("label", {
1255
+ ] }), se && /* @__PURE__ */ n("label", {
1256
1256
  className: Y.timeLabel,
1257
1257
  children: [/* @__PURE__ */ t("span", { children: "Время" }), /* @__PURE__ */ t("input", {
1258
1258
  className: Y.timeInput,
1259
1259
  type: "time",
1260
1260
  value: B,
1261
- onChange: (e) => fe(e.target.value)
1261
+ onChange: (e) => de(e.target.value)
1262
1262
  })]
1263
1263
  })]
1264
1264
  }) : null;
@@ -1272,7 +1272,7 @@ var O = {
1272
1272
  disabled: v,
1273
1273
  children: o
1274
1274
  }),
1275
- se ? /* @__PURE__ */ n("div", {
1275
+ oe ? /* @__PURE__ */ n("div", {
1276
1276
  className: `${Y.trigger} ${Y[C]} ${_ ? Y.error : ""} ${v ? Y.disabled : ""}`,
1277
1277
  children: [
1278
1278
  /* @__PURE__ */ t("input", {
@@ -1280,8 +1280,8 @@ var O = {
1280
1280
  id: O,
1281
1281
  name: T,
1282
1282
  className: Y.dateInput,
1283
- value: H,
1284
- placeholder: K.split(" ")[0],
1283
+ value: V,
1284
+ placeholder: q.split(" ")[0],
1285
1285
  inputMode: "numeric",
1286
1286
  autoComplete: "off",
1287
1287
  maxLength: 10,
@@ -1289,15 +1289,15 @@ var O = {
1289
1289
  readOnly: y,
1290
1290
  "aria-expanded": I,
1291
1291
  "aria-haspopup": "dialog",
1292
- "aria-describedby": J,
1293
- "aria-invalid": !!(_ || W) || void 0,
1292
+ "aria-describedby": pe,
1293
+ "aria-invalid": !!(_ || U) || void 0,
1294
1294
  onFocus: () => {
1295
1295
  y || L(!0);
1296
1296
  },
1297
1297
  onClick: () => {
1298
1298
  y || L(!0);
1299
1299
  },
1300
- onChange: (e) => de(e.target.value)
1300
+ onChange: (e) => ue(e.target.value)
1301
1301
  }),
1302
1302
  a === "datetime" && B && /* @__PURE__ */ t("span", {
1303
1303
  className: Y.timeValue,
@@ -1316,7 +1316,7 @@ var O = {
1316
1316
  children: /* @__PURE__ */ t("span", {
1317
1317
  className: `${Y.chevron} ${me ? Y.chevronOpen : ""}`,
1318
1318
  "aria-hidden": "true",
1319
- children: /* @__PURE__ */ t(q, {
1319
+ children: /* @__PURE__ */ t(J, {
1320
1320
  name: "IconChevron",
1321
1321
  width: 20,
1322
1322
  height: 20
@@ -1334,29 +1334,29 @@ var O = {
1334
1334
  "aria-readonly": y || void 0,
1335
1335
  "aria-expanded": I,
1336
1336
  "aria-haspopup": "dialog",
1337
- "aria-describedby": J,
1337
+ "aria-describedby": pe,
1338
1338
  onClick: () => {
1339
1339
  y || L((e) => !e);
1340
1340
  },
1341
1341
  children: [/* @__PURE__ */ t("span", {
1342
1342
  className: r ? Y.value : Y.placeholder,
1343
- children: Oe(r, a) || K
1343
+ children: Oe(r, a) || q
1344
1344
  }), /* @__PURE__ */ t("span", {
1345
1345
  className: `${Y.chevron} ${me ? Y.chevronOpen : ""}`,
1346
1346
  "aria-hidden": "true",
1347
- children: /* @__PURE__ */ t(q, {
1347
+ children: /* @__PURE__ */ t(J, {
1348
1348
  name: "IconChevron",
1349
1349
  width: 20,
1350
1350
  height: 20
1351
1351
  })
1352
1352
  })]
1353
1353
  }),
1354
- W && /* @__PURE__ */ t("span", {
1355
- id: pe,
1354
+ U && /* @__PURE__ */ t("span", {
1355
+ id: fe,
1356
1356
  className: Y.validationTooltip,
1357
1357
  role: "status",
1358
1358
  "aria-live": "polite",
1359
- children: W
1359
+ children: U
1360
1360
  }, ne),
1361
1361
  me && g(me, document.body),
1362
1362
  l && !_ && /* @__PURE__ */ t(k, {
@@ -1464,7 +1464,7 @@ var O = {
1464
1464
  }
1465
1465
  return Infinity;
1466
1466
  }, Ge = ({ options: e, value: r, onChange: i, placeholder: a = "Выберите опцию", disabled: o = !1, stringWhileDisabled: s = !1, label: l, error: _, size: v = "md", hint: y, className: b = "", required: x = !1, name: S, id: C, needMark: w = !0, maxMenuHeight: T }) => {
1467
- let E = d(), D = C ?? `ds-dropdown-${S ?? E}`, O = `${D}-listbox`, [k, A] = h(!1), [j, M] = h(null), N = m(null), P = m(null), F = m(null), I = m([]), L = p(() => e.find((e) => e.value === r), [e, r]), R = y ? `${D}-hint` : void 0, z = _ ? `${D}-error` : void 0, B = [R, z].filter(Boolean).join(" ") || void 0, V = o && s, H = c(() => {
1467
+ let E = d(), D = C ?? `ds-dropdown-${S ?? E}`, O = `${D}-listbox`, [k, A] = h(!1), [j, M] = h(null), N = m(null), P = m(null), F = m(null), I = m([]), L = p(() => e.find((e) => e.value === r), [e, r]), R = y ? `${D}-hint` : void 0, z = _ ? `${D}-error` : void 0, B = [R, z].filter(Boolean).join(" ") || void 0, te = o && s, V = c(() => {
1468
1468
  let e = P.current, t = F.current;
1469
1469
  if (!e || !t) return;
1470
1470
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight - n.bottom - Be, o = n.top - Be, s = a < r.height && o > a, c = Math.max(He, s ? o : a), l = We(T), u = Math.min(c, l), d = n.left, f = i - n.width - Be, p = Math.max(Be, Math.min(d, f)), m = s ? Math.max(Be, n.top - r.height - Ve) : n.bottom + Ve;
@@ -1480,12 +1480,12 @@ var O = {
1480
1480
  M(null);
1481
1481
  return;
1482
1482
  }
1483
- return H(), window.addEventListener("resize", H), window.addEventListener("scroll", H, !0), () => {
1484
- window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
1483
+ return V(), window.addEventListener("resize", V), window.addEventListener("scroll", V, !0), () => {
1484
+ window.removeEventListener("resize", V), window.removeEventListener("scroll", V, !0);
1485
1485
  };
1486
1486
  }, [
1487
1487
  k,
1488
- H,
1488
+ V,
1489
1489
  e.length
1490
1490
  ]), u(() => {
1491
1491
  if (!k) return;
@@ -1499,14 +1499,14 @@ var O = {
1499
1499
  document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t);
1500
1500
  };
1501
1501
  }, [k]);
1502
- let U = (t, n) => {
1502
+ let H = (t, n) => {
1503
1503
  let r = Ue(e, t, n);
1504
1504
  if (r === -1) return;
1505
1505
  let i = I.current[r];
1506
1506
  i?.focus(), i?.scrollIntoView({ block: "nearest" });
1507
- }, W = (e) => {
1507
+ }, U = (e) => {
1508
1508
  e.disabled || (i?.(e.value, e), A(!1), P.current?.focus());
1509
- }, te = k ? /* @__PURE__ */ t("ul", {
1509
+ }, W = k ? /* @__PURE__ */ t("ul", {
1510
1510
  ref: F,
1511
1511
  id: O,
1512
1512
  className: X.menu,
@@ -1542,21 +1542,21 @@ var O = {
1542
1542
  X.option,
1543
1543
  o ? X.selected : ""
1544
1544
  ].filter(Boolean).join(" "),
1545
- onClick: () => W(i),
1545
+ onClick: () => U(i),
1546
1546
  onKeyDown: (t) => {
1547
1547
  if (t.key === "ArrowDown" || t.key === "ArrowUp") {
1548
1548
  t.preventDefault();
1549
1549
  let e = t.key === "ArrowDown" ? 1 : -1;
1550
- U(a + e, e);
1550
+ H(a + e, e);
1551
1551
  }
1552
1552
  if (t.key === "Tab" && A(!1), t.key === "Home" || t.key === "End") {
1553
1553
  t.preventDefault();
1554
1554
  let n = t.key === "Home" ? 1 : -1;
1555
- U(t.key === "Home" ? 0 : e.length - 1, n);
1555
+ H(t.key === "Home" ? 0 : e.length - 1, n);
1556
1556
  }
1557
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), W(i));
1557
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), U(i));
1558
1558
  },
1559
- children: [/* @__PURE__ */ t("span", { children: i.label }), o && w && /* @__PURE__ */ t(q, {
1559
+ children: [/* @__PURE__ */ t("span", { children: i.label }), o && w && /* @__PURE__ */ t(J, {
1560
1560
  name: "IconCheck",
1561
1561
  width: 16,
1562
1562
  height: 16
@@ -1576,12 +1576,12 @@ var O = {
1576
1576
  l && /* @__PURE__ */ t(ee, {
1577
1577
  required: x,
1578
1578
  disabled: o,
1579
- htmlFor: V ? void 0 : D,
1579
+ htmlFor: te ? void 0 : D,
1580
1580
  children: l
1581
1581
  }),
1582
1582
  /* @__PURE__ */ t("div", {
1583
1583
  className: X.container,
1584
- children: V ? /* @__PURE__ */ t("div", {
1584
+ children: te ? /* @__PURE__ */ t("div", {
1585
1585
  id: D,
1586
1586
  className: X.disabledText,
1587
1587
  "aria-describedby": B,
@@ -1604,13 +1604,13 @@ var O = {
1604
1604
  t.preventDefault(), A(!0);
1605
1605
  let n = t.key === "ArrowDown" ? 1 : -1;
1606
1606
  requestAnimationFrame(() => {
1607
- U(t.key === "ArrowDown" ? 0 : e.length - 1, n);
1607
+ H(t.key === "ArrowDown" ? 0 : e.length - 1, n);
1608
1608
  });
1609
1609
  }
1610
1610
  if (t.key === "Enter" && k) {
1611
1611
  t.preventDefault();
1612
1612
  let n = e.findIndex((e) => e.value === r);
1613
- U(n >= 0 ? n : 0, 1);
1613
+ H(n >= 0 ? n : 0, 1);
1614
1614
  }
1615
1615
  },
1616
1616
  children: [/* @__PURE__ */ t("span", {
@@ -1620,7 +1620,7 @@ var O = {
1620
1620
  }), /* @__PURE__ */ t("span", {
1621
1621
  className: [X.chevron, k ? X.chevronOpen : ""].filter(Boolean).join(" "),
1622
1622
  "aria-hidden": "true",
1623
- children: /* @__PURE__ */ t(q, {
1623
+ children: /* @__PURE__ */ t(J, {
1624
1624
  name: "IconChevron",
1625
1625
  width: 20,
1626
1626
  height: 20
@@ -1628,7 +1628,7 @@ var O = {
1628
1628
  })]
1629
1629
  })
1630
1630
  }),
1631
- k && g(te, document.body),
1631
+ k && g(W, document.body),
1632
1632
  y && !_ && /* @__PURE__ */ t("span", {
1633
1633
  id: R,
1634
1634
  className: X.message,
@@ -1781,56 +1781,69 @@ var O = {
1781
1781
  sortDescFirst: e.sortDescFirst
1782
1782
  };
1783
1783
  return n !== void 0 && (i.sortFn = n), i;
1784
- }, ot = ({ columns: e, data: r, tableOnMobile: i = !1, breakpoint: a = "default", sorting: o, onSortingChange: s, renderMobileCard: c, getRowId: l, caption: d, ariaLabel: f, loading: m = !1, error: g, emptyState: _ = "Нет данных", stickyHeader: v = !1, maxHeight: y, className: x = "", onRowClick: S, pagination: C = !1, pageSize: w = 30, visibleColumnIds: T }) => {
1785
- let [E, O] = h([]), [ee, k] = h(0), A = o ?? E, j = A.map((e) => `${e.id}:${e.desc ? "desc" : "asc"}`).join("|"), M = Number.isFinite(w) && w > 0 ? Math.floor(w) : 30, N = p(() => {
1786
- if (T === void 0) return e;
1787
- let t = new Set(T);
1784
+ }, ot = ({ columns: e, data: r, tableOnMobile: i = !1, breakpoint: a = "default", sorting: o, onSortingChange: s, renderMobileCard: c, getRowId: l, caption: d, ariaLabel: f, loading: m = !1, error: g, emptyState: _ = "Нет данных", stickyHeader: v = !1, maxHeight: y, className: x = "", onRowClick: S, pagination: C = !1, paginationMode: w = "client", page: T = 1, pageSize: E = 30, totalCount: O, onPageChange: ee, visibleColumnIds: k }) => {
1785
+ let [A, j] = h([]), [M, N] = h(0), P = o ?? A, F = P.map((e) => `${e.id}:${e.desc ? "desc" : "asc"}`).join("|"), I = Number.isFinite(E) && E > 0 ? Math.floor(E) : 30, L = C && w === "server", R = p(() => {
1786
+ if (k === void 0) return e;
1787
+ let t = new Set(k);
1788
1788
  return e.filter((e) => t.has(e.id));
1789
- }, [e, T]), P = p(() => N.length === 0 ? "Должна быть видима хотя бы одна колонка" : Ze(N, r), [r, N]), F = p(() => N.map(at), [N]), I = N.some((e) => Ye(e) !== void 0), L = b({
1789
+ }, [e, k]), z = p(() => R.length === 0 ? "Должна быть видима хотя бы одна колонка" : Ze(R, r), [r, R]), B = p(() => R.map(at), [R]), te = R.some((e) => Ye(e) !== void 0), V = b({
1790
1790
  features: Je,
1791
- columns: F,
1791
+ columns: B,
1792
1792
  data: r,
1793
- state: { sorting: A },
1793
+ state: { sorting: P },
1794
1794
  onSortingChange: (e) => {
1795
- let t = typeof e == "function" ? e(A) : e;
1796
- o === void 0 && O(t), k(0), s?.(t);
1795
+ let t = typeof e == "function" ? e(P) : e;
1796
+ o === void 0 && j(t), N(0), s?.(t);
1797
1797
  },
1798
1798
  getRowId: l
1799
- }), R = L.getRowModel().rows, z = C ? Math.max(1, Math.ceil(R.length / M)) : 1, B = Math.min(ee, z - 1), V = p(() => C ? R.slice(B * M, (B + 1) * M) : R, [
1800
- M,
1799
+ }), H = V.getRowModel().rows, U = L && Number.isFinite(O) && Number(O) >= 0 ? Math.floor(Number(O)) : H.length, W = C ? Math.max(1, Math.ceil(U / I)) : 1, ne = Number.isFinite(T) && T > 0 ? Math.floor(T) - 1 : 0, G = Math.min(L ? ne : M, W - 1), re = p(() => C && !L ? H.slice(G * I, (G + 1) * I) : H, [
1800
+ L,
1801
+ I,
1801
1802
  C,
1802
- B,
1803
- R
1804
- ]), H = p(() => N.filter((e) => e.enableSorting ?? e.dataType !== "custom").map((e) => ({
1803
+ G,
1804
+ H
1805
+ ]), ie = p(() => R.filter((e) => e.enableSorting ?? e.dataType !== "custom").map((e) => ({
1805
1806
  id: e.id,
1806
1807
  label: typeof e.header == "string" ? e.header : e.id
1807
- })), [N]), U = p(() => Xe(B, z), [z, B]), W = [
1808
+ })), [R]), ae = p(() => Xe(G, W), [W, G]), oe = [
1808
1809
  Z.root,
1809
1810
  a === "wide" ? Z.wide : Z.default,
1810
1811
  i ? Z.tableOnMobile : "",
1811
1812
  x
1812
- ].filter(Boolean).join(" "), te = P ?? g, ne = C && !m && !te && R.length > M, re = B * M + 1, ie = Math.min((B + 1) * M, R.length);
1813
+ ].filter(Boolean).join(" "), se = z ?? g, K = C && !se && U > I && (!m || L), ce = G * I + 1, le = Math.min((G + 1) * I, U), ue = (e) => {
1814
+ let t = Math.max(0, Math.min(W - 1, e));
1815
+ if (L) {
1816
+ t !== G && ee?.(t + 1);
1817
+ return;
1818
+ }
1819
+ N(t);
1820
+ };
1813
1821
  return u(() => {
1814
- k(0);
1822
+ L || N(0);
1815
1823
  }, [
1816
1824
  r,
1817
- M,
1825
+ L,
1826
+ I,
1818
1827
  C,
1819
- j
1828
+ F
1820
1829
  ]), u(() => {
1821
- ee >= z && k(z - 1);
1822
- }, [z, ee]), /* @__PURE__ */ n("section", {
1823
- className: W,
1830
+ !L && M >= W && N(W - 1);
1831
+ }, [
1832
+ L,
1833
+ W,
1834
+ M
1835
+ ]), /* @__PURE__ */ n("section", {
1836
+ className: oe,
1824
1837
  "aria-busy": m,
1825
1838
  children: [
1826
- !i && !m && !te && V.length > 0 && H.length > 0 && /* @__PURE__ */ t(qe, {
1839
+ !i && !m && !se && re.length > 0 && ie.length > 0 && /* @__PURE__ */ t(qe, {
1827
1840
  className: Z.mobileSort,
1828
- options: H,
1829
- value: A[0] ? {
1830
- id: A[0].id,
1831
- direction: A[0].desc ? "desc" : "asc"
1841
+ options: ie,
1842
+ value: P[0] ? {
1843
+ id: P[0].id,
1844
+ direction: P[0].desc ? "desc" : "asc"
1832
1845
  } : null,
1833
- onChange: (e) => L.setSorting([{
1846
+ onChange: (e) => V.setSorting([{
1834
1847
  id: e.id,
1835
1848
  desc: e.direction === "desc"
1836
1849
  }])
@@ -1843,21 +1856,21 @@ var O = {
1843
1856
  "aria-label": f,
1844
1857
  children: [
1845
1858
  d && /* @__PURE__ */ t("caption", { children: d }),
1846
- I && /* @__PURE__ */ t("colgroup", { children: N.map((e) => /* @__PURE__ */ t("col", { style: Ye(e) }, e.id)) }),
1859
+ te && /* @__PURE__ */ t("colgroup", { children: R.map((e) => /* @__PURE__ */ t("col", { style: Ye(e) }, e.id)) }),
1847
1860
  /* @__PURE__ */ t("thead", {
1848
1861
  className: v ? Z.sticky : "",
1849
- children: L.getHeaderGroups().map((e) => /* @__PURE__ */ t("tr", { children: e.headers.map((e) => {
1862
+ children: V.getHeaderGroups().map((e) => /* @__PURE__ */ t("tr", { children: e.headers.map((e) => {
1850
1863
  let r = e.column.getIsSorted(), i = e.column.getCanSort(), a = e.column.getToggleSortingHandler();
1851
1864
  return /* @__PURE__ */ t("th", {
1852
1865
  scope: "col",
1853
1866
  "aria-sort": r === "asc" ? "ascending" : r === "desc" ? "descending" : "none",
1854
- style: Ye(N.find((t) => t.id === e.column.id)),
1867
+ style: Ye(R.find((t) => t.id === e.column.id)),
1855
1868
  children: /* @__PURE__ */ n("button", {
1856
1869
  type: "button",
1857
1870
  className: Z.sortButton,
1858
1871
  disabled: !i,
1859
1872
  onClick: a,
1860
- children: [/* @__PURE__ */ t(L.FlexRender, { header: e }), /* @__PURE__ */ t(q, {
1873
+ children: [/* @__PURE__ */ t(V.FlexRender, { header: e }), /* @__PURE__ */ t(J, {
1861
1874
  name: r === "asc" ? "IconSortAscending" : r === "desc" ? "IconSortDescending" : "IconSort",
1862
1875
  width: 16,
1863
1876
  height: 16
@@ -1867,17 +1880,20 @@ var O = {
1867
1880
  }) }, e.id))
1868
1881
  }),
1869
1882
  /* @__PURE__ */ t("tbody", { children: m ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1870
- colSpan: N.length,
1871
- children: /* @__PURE__ */ t(ze, { lines: 3 })
1872
- }) }) : te ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1883
+ colSpan: R.length,
1884
+ children: /* @__PURE__ */ t(ze, {
1885
+ lines: 3,
1886
+ height: 65
1887
+ })
1888
+ }) }) : se ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1873
1889
  className: Z.state,
1874
- colSpan: N.length,
1875
- children: te
1876
- }) }) : V.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1890
+ colSpan: R.length,
1891
+ children: se
1892
+ }) }) : re.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1877
1893
  className: Z.state,
1878
- colSpan: N.length,
1894
+ colSpan: R.length,
1879
1895
  children: _
1880
- }) }) : V.map((e) => /* @__PURE__ */ t("tr", {
1896
+ }) }) : re.map((e) => /* @__PURE__ */ t("tr", {
1881
1897
  className: S ? Z.clickableRow : void 0,
1882
1898
  onClick: () => S?.(e.original),
1883
1899
  onKeyDown: (t) => {
@@ -1886,8 +1902,8 @@ var O = {
1886
1902
  tabIndex: S ? 0 : void 0,
1887
1903
  role: S ? "button" : void 0,
1888
1904
  children: e.getAllCells().map((e) => /* @__PURE__ */ t("td", {
1889
- style: Ye(N.find((t) => t.id === e.column.id)),
1890
- children: /* @__PURE__ */ t(L.FlexRender, { cell: e })
1905
+ style: Ye(R.find((t) => t.id === e.column.id)),
1906
+ children: /* @__PURE__ */ t(V.FlexRender, { cell: e })
1891
1907
  }, e.id))
1892
1908
  }, e.id)) })
1893
1909
  ]
@@ -1897,21 +1913,24 @@ var O = {
1897
1913
  className: Z.cards,
1898
1914
  role: "list",
1899
1915
  "aria-label": f ?? d,
1900
- children: m ? /* @__PURE__ */ t(ze, { lines: 4 }) : te ? /* @__PURE__ */ t("div", {
1916
+ children: m ? /* @__PURE__ */ t(ze, {
1917
+ lines: 4,
1918
+ height: 65
1919
+ }) : se ? /* @__PURE__ */ t("div", {
1901
1920
  className: Z.state,
1902
- children: te
1903
- }) : V.length === 0 ? /* @__PURE__ */ t("div", {
1921
+ children: se
1922
+ }) : re.length === 0 ? /* @__PURE__ */ t("div", {
1904
1923
  className: Z.state,
1905
1924
  children: _
1906
- }) : V.map((e) => {
1925
+ }) : re.map((e) => {
1907
1926
  if (c) return /* @__PURE__ */ t("div", {
1908
1927
  role: "listitem",
1909
1928
  children: c({
1910
1929
  row: e.original,
1911
- columns: N
1930
+ columns: R
1912
1931
  })
1913
1932
  }, e.id);
1914
- let r = N.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), i = r.find((e) => e.mobile?.primary) ?? r.find((e) => e.mobile?.mobileVariant !== "actions"), a = (t) => Qe(t.accessor, e.original), o = (t) => t.mobile?.renderMobile?.(e.original, a(t)) ?? t.cell?.(e.original, a(t)) ?? String(a(t) ?? "");
1933
+ let r = R.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), i = r.find((e) => e.mobile?.primary) ?? r.find((e) => e.mobile?.mobileVariant !== "actions"), a = (t) => Qe(t.accessor, e.original), o = (t) => t.mobile?.renderMobile?.(e.original, a(t)) ?? t.cell?.(e.original, a(t)) ?? String(a(t) ?? "");
1915
1934
  return /* @__PURE__ */ n("article", {
1916
1935
  role: "listitem",
1917
1936
  className: Z.card,
@@ -1926,18 +1945,18 @@ var O = {
1926
1945
  }, e.id);
1927
1946
  })
1928
1947
  }),
1929
- ne && /* @__PURE__ */ n("nav", {
1948
+ K && /* @__PURE__ */ n("nav", {
1930
1949
  className: Z.pagination,
1931
1950
  "aria-label": "Пагинация таблицы",
1932
1951
  children: [/* @__PURE__ */ n("span", {
1933
1952
  className: Z.paginationRange,
1934
1953
  "aria-live": "polite",
1935
1954
  children: [
1936
- re,
1955
+ ce,
1937
1956
  "–",
1938
- ie,
1957
+ le,
1939
1958
  " из ",
1940
- R.length
1959
+ U
1941
1960
  ]
1942
1961
  }), /* @__PURE__ */ n("div", {
1943
1962
  className: Z.paginationControls,
@@ -1945,12 +1964,12 @@ var O = {
1945
1964
  /* @__PURE__ */ n(D, {
1946
1965
  variant: "empty",
1947
1966
  size: "md",
1948
- disabled: B === 0,
1967
+ disabled: m || G === 0,
1949
1968
  "aria-label": "Предыдущая страница",
1950
1969
  onClick: () => {
1951
- k((e) => Math.max(0, e - 1));
1970
+ ue(G - 1);
1952
1971
  },
1953
- children: [/* @__PURE__ */ t(q, {
1972
+ children: [/* @__PURE__ */ t(J, {
1954
1973
  name: "IconChevron",
1955
1974
  width: 18,
1956
1975
  height: 18,
@@ -1962,14 +1981,15 @@ var O = {
1962
1981
  }),
1963
1982
  /* @__PURE__ */ t("div", {
1964
1983
  className: Z.pageNumbers,
1965
- children: U.map((e) => typeof e == "number" ? /* @__PURE__ */ t(D, {
1966
- variant: e === B ? "secondary" : "empty",
1984
+ children: ae.map((e) => typeof e == "number" ? /* @__PURE__ */ t(D, {
1985
+ variant: e === G ? "secondary" : "empty",
1967
1986
  size: "md",
1968
1987
  className: Z.pageButton,
1969
1988
  "aria-label": `Перейти на страницу ${e + 1}`,
1970
- "aria-current": e === B ? "page" : void 0,
1989
+ "aria-current": e === G ? "page" : void 0,
1990
+ disabled: m,
1971
1991
  onClick: () => {
1972
- k(e);
1992
+ ue(e);
1973
1993
  },
1974
1994
  children: e + 1
1975
1995
  }, e) : /* @__PURE__ */ t("span", {
@@ -1981,15 +2001,15 @@ var O = {
1981
2001
  /* @__PURE__ */ n(D, {
1982
2002
  variant: "empty",
1983
2003
  size: "md",
1984
- disabled: B === z - 1,
2004
+ disabled: m || G === W - 1,
1985
2005
  "aria-label": "Следующая страница",
1986
2006
  onClick: () => {
1987
- k((e) => Math.min(z - 1, e + 1));
2007
+ ue(G + 1);
1988
2008
  },
1989
2009
  children: [/* @__PURE__ */ t("span", {
1990
2010
  className: Z.paginationButtonLabel,
1991
2011
  children: "Вперёд"
1992
- }), /* @__PURE__ */ t(q, {
2012
+ }), /* @__PURE__ */ t(J, {
1993
2013
  name: "IconChevron",
1994
2014
  width: 18,
1995
2015
  height: 18,
@@ -2009,7 +2029,7 @@ var O = {
2009
2029
  }
2010
2030
  return Infinity;
2011
2031
  }, dt = ({ options: e, value: r, onChange: i, placeholder: a = "Выберите опции", disabled: o = !1, stringWhileDisabled: s = !1, label: l, error: _, size: v = "md", required: y = !1, hint: b, className: x = "", name: S, id: C, closeOnSelect: w = !1, needMark: T = !0, maxMenuHeight: E }) => {
2012
- let D = d(), O = C ?? `ds-dropdown-multiple-${S ?? D}`, k = `${O}-listbox`, [A, j] = h(!1), [M, N] = h(null), P = m(null), F = m(null), I = m(null), L = m([]), R = p(() => e.filter((e) => r.includes(e.value)), [e, r]).map((e) => e.label).join(", "), z = b ? `${O}-hint` : void 0, B = _ ? `${O}-error` : void 0, V = [z, B].filter(Boolean).join(" ") || void 0, H = o && s, U = c(() => {
2032
+ let D = d(), O = C ?? `ds-dropdown-multiple-${S ?? D}`, k = `${O}-listbox`, [A, j] = h(!1), [M, N] = h(null), P = m(null), F = m(null), I = m(null), L = m([]), R = p(() => e.filter((e) => r.includes(e.value)), [e, r]).map((e) => e.label).join(", "), z = b ? `${O}-hint` : void 0, B = _ ? `${O}-error` : void 0, te = [z, B].filter(Boolean).join(" ") || void 0, V = o && s, H = c(() => {
2013
2033
  let e = F.current, t = I.current;
2014
2034
  if (!e || !t) return;
2015
2035
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight - n.bottom - st, a = n.top - st, o = i < r.height && a > i, s = Math.max(lt, o ? a : i), c = window.innerWidth - n.width - st;
@@ -2025,13 +2045,13 @@ var O = {
2025
2045
  N(null);
2026
2046
  return;
2027
2047
  }
2028
- return U(), window.addEventListener("resize", U), window.addEventListener("scroll", U, !0), () => {
2029
- window.removeEventListener("resize", U), window.removeEventListener("scroll", U, !0);
2048
+ return H(), window.addEventListener("resize", H), window.addEventListener("scroll", H, !0), () => {
2049
+ window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
2030
2050
  };
2031
2051
  }, [
2032
2052
  A,
2033
2053
  e.length,
2034
- U
2054
+ H
2035
2055
  ]), u(() => {
2036
2056
  if (!A) return;
2037
2057
  let e = (e) => {
@@ -2044,10 +2064,10 @@ var O = {
2044
2064
  document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t);
2045
2065
  };
2046
2066
  }, [A]);
2047
- let W = (t, n) => {
2067
+ let U = (t, n) => {
2048
2068
  let r = Ue(e, t, n);
2049
2069
  r !== -1 && (L.current[r]?.focus(), L.current[r]?.scrollIntoView({ block: "nearest" }));
2050
- }, te = (t) => {
2070
+ }, W = (t) => {
2051
2071
  if (t.disabled) return;
2052
2072
  let n = r.includes(t.value) ? r.filter((e) => e !== t.value) : [...r, t.value];
2053
2073
  i?.(n, e.filter((e) => n.includes(e.value))), w && (j(!1), F.current?.focus());
@@ -2088,21 +2108,21 @@ var O = {
2088
2108
  X.option,
2089
2109
  o ? X.selected : ""
2090
2110
  ].filter(Boolean).join(" "),
2091
- onClick: () => te(i),
2111
+ onClick: () => W(i),
2092
2112
  onKeyDown: (t) => {
2093
2113
  if (t.key === "ArrowDown" || t.key === "ArrowUp") {
2094
2114
  t.preventDefault();
2095
2115
  let e = t.key === "ArrowDown" ? 1 : -1;
2096
- W(a + e, e);
2116
+ U(a + e, e);
2097
2117
  }
2098
2118
  if (t.key === "Home" || t.key === "End") {
2099
2119
  t.preventDefault();
2100
2120
  let n = t.key === "Home" ? 1 : -1;
2101
- W(t.key === "Home" ? 0 : e.length - 1, n);
2121
+ U(t.key === "Home" ? 0 : e.length - 1, n);
2102
2122
  }
2103
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), te(i)), t.key === "Tab" && j(!1);
2123
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), W(i)), t.key === "Tab" && j(!1);
2104
2124
  },
2105
- children: [/* @__PURE__ */ t("span", { children: i.label }), o && T && /* @__PURE__ */ t(q, {
2125
+ children: [/* @__PURE__ */ t("span", { children: i.label }), o && T && /* @__PURE__ */ t(J, {
2106
2126
  name: "IconCheck",
2107
2127
  width: 16,
2108
2128
  height: 16
@@ -2120,17 +2140,17 @@ var O = {
2120
2140
  ].filter(Boolean).join(" "),
2121
2141
  children: [
2122
2142
  l && /* @__PURE__ */ t(ee, {
2123
- htmlFor: H ? void 0 : O,
2143
+ htmlFor: V ? void 0 : O,
2124
2144
  required: y,
2125
2145
  disabled: o,
2126
2146
  children: l
2127
2147
  }),
2128
2148
  /* @__PURE__ */ t("div", {
2129
2149
  className: X.container,
2130
- children: H ? /* @__PURE__ */ t("div", {
2150
+ children: V ? /* @__PURE__ */ t("div", {
2131
2151
  id: O,
2132
2152
  className: `${X.disabledText} ${X[v]}`,
2133
- "aria-describedby": V,
2153
+ "aria-describedby": te,
2134
2154
  children: R || a
2135
2155
  }) : /* @__PURE__ */ n("button", {
2136
2156
  ref: F,
@@ -2142,14 +2162,14 @@ var O = {
2142
2162
  "aria-haspopup": "listbox",
2143
2163
  "aria-expanded": A,
2144
2164
  "aria-controls": k,
2145
- "aria-describedby": V,
2165
+ "aria-describedby": te,
2146
2166
  "aria-invalid": !!_,
2147
2167
  onClick: () => j((e) => !e),
2148
2168
  onKeyDown: (t) => {
2149
2169
  if (t.key === "ArrowDown" || t.key === "ArrowUp") {
2150
2170
  t.preventDefault(), j(!0);
2151
2171
  let n = t.key === "ArrowDown" ? 1 : -1;
2152
- requestAnimationFrame(() => W(t.key === "ArrowDown" ? 0 : e.length - 1, n));
2172
+ requestAnimationFrame(() => U(t.key === "ArrowDown" ? 0 : e.length - 1, n));
2153
2173
  }
2154
2174
  },
2155
2175
  children: [/* @__PURE__ */ t("span", {
@@ -2158,7 +2178,7 @@ var O = {
2158
2178
  }), /* @__PURE__ */ t("span", {
2159
2179
  className: [X.chevron, A ? X.chevronOpen : ""].filter(Boolean).join(" "),
2160
2180
  "aria-hidden": "true",
2161
- children: /* @__PURE__ */ t(q, {
2181
+ children: /* @__PURE__ */ t(J, {
2162
2182
  name: "IconChevron",
2163
2183
  width: 20,
2164
2184
  height: 20
@@ -2243,7 +2263,7 @@ var O = {
2243
2263
  "aria-label": M ? w : T,
2244
2264
  "aria-pressed": M,
2245
2265
  onClick: () => N((e) => !e),
2246
- children: /* @__PURE__ */ t(q, {
2266
+ children: /* @__PURE__ */ t(J, {
2247
2267
  name: M ? "IconEyeOff" : "IconEye",
2248
2268
  width: 20,
2249
2269
  height: 20
@@ -2257,7 +2277,7 @@ var O = {
2257
2277
  let e = j.current;
2258
2278
  e && ((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
2259
2279
  },
2260
- children: /* @__PURE__ */ t(q, {
2280
+ children: /* @__PURE__ */ t(J, {
2261
2281
  name: "IconCross",
2262
2282
  width: 20,
2263
2283
  height: 20
@@ -2313,67 +2333,67 @@ var O = {
2313
2333
  j,
2314
2334
  M,
2315
2335
  N
2316
- ].filter(Boolean).join(" "), F = m(null), I = m(null), L = m([]), [R, z] = h(!1), [B, V] = h(""), [H, U] = h(-1), [W, te] = h(null), ne = p(() => e.find((e) => e.value === r), [e, r]), re = p(() => mt(e, B), [e, B]), ie = s && _, ae = H >= 0 ? re[H] : void 0;
2317
- u(() => V(ne?.label ?? ""), [ne?.label, r]);
2318
- let oe = c(() => F.current?.querySelector("input") ?? null, []), se = c((e, t) => ht(re, e, t), [re]), ce = c((e) => {
2319
- U(e), !(e < 0) && requestAnimationFrame(() => L.current[e]?.scrollIntoView({ block: "nearest" }));
2320
- }, []), G = c(() => {
2321
- let e = oe();
2336
+ ].filter(Boolean).join(" "), F = m(null), I = m(null), L = m([]), [R, z] = h(!1), [B, te] = h(""), [V, H] = h(-1), [U, W] = h(null), ne = p(() => e.find((e) => e.value === r), [e, r]), G = p(() => mt(e, B), [e, B]), re = s && _, ie = V >= 0 ? G[V] : void 0;
2337
+ u(() => te(ne?.label ?? ""), [ne?.label, r]);
2338
+ let ae = c(() => F.current?.querySelector("input") ?? null, []), oe = c((e, t) => ht(G, e, t), [G]), se = c((e) => {
2339
+ H(e), !(e < 0) && requestAnimationFrame(() => L.current[e]?.scrollIntoView({ block: "nearest" }));
2340
+ }, []), K = c(() => {
2341
+ let e = ae();
2322
2342
  if (!e) return;
2323
- let t = e.getBoundingClientRect(), n = Math.max(1, Math.min(re.length, vt)) * bt[x] + yt, r = window.innerHeight - t.bottom - gt, i = t.top - gt, a = r < n && i > r, o = a ? i : r, s = Math.max(bt[x] + yt, Math.min(n, o)), c = window.innerWidth - t.width - gt, l = Math.max(gt, Math.min(t.left, c)), u = a ? Math.max(gt, t.top - s - _t) : t.bottom + _t;
2324
- te({
2343
+ let t = e.getBoundingClientRect(), n = Math.max(1, Math.min(G.length, vt)) * bt[x] + yt, r = window.innerHeight - t.bottom - gt, i = t.top - gt, a = r < n && i > r, o = a ? i : r, s = Math.max(bt[x] + yt, Math.min(n, o)), c = window.innerWidth - t.width - gt, l = Math.max(gt, Math.min(t.left, c)), u = a ? Math.max(gt, t.top - s - _t) : t.bottom + _t;
2344
+ W({
2325
2345
  top: u,
2326
2346
  left: l,
2327
2347
  width: t.width,
2328
2348
  maxHeight: s
2329
2349
  });
2330
2350
  }, [
2331
- re.length,
2332
- oe,
2351
+ G.length,
2352
+ ae,
2333
2353
  x
2334
2354
  ]);
2335
2355
  f(() => {
2336
2356
  if (!R) {
2337
- te(null);
2357
+ W(null);
2338
2358
  return;
2339
2359
  }
2340
- return G(), window.addEventListener("resize", G), window.addEventListener("scroll", G, !0), () => {
2341
- window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
2360
+ return K(), window.addEventListener("resize", K), window.addEventListener("scroll", K, !0), () => {
2361
+ window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0);
2342
2362
  };
2343
- }, [R, G]), u(() => {
2363
+ }, [R, K]), u(() => {
2344
2364
  if (!R) return;
2345
2365
  let e = (e) => {
2346
2366
  let t = e.target;
2347
- !F.current?.contains(t) && !I.current?.contains(t) && (z(!1), U(-1));
2367
+ !F.current?.contains(t) && !I.current?.contains(t) && (z(!1), H(-1));
2348
2368
  };
2349
2369
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
2350
2370
  }, [R]);
2351
- let le = () => {
2352
- s || l || (z(!0), U(se(0, 1)));
2353
- }, ue = (e) => {
2354
- e.disabled || (V(e.label), z(!1), U(-1), i?.(e.value, e), oe()?.focus());
2355
- }, de = R ? /* @__PURE__ */ t("ul", {
2371
+ let ce = () => {
2372
+ s || l || (z(!0), H(oe(0, 1)));
2373
+ }, le = (e) => {
2374
+ e.disabled || (te(e.label), z(!1), H(-1), i?.(e.value, e), ae()?.focus());
2375
+ }, ue = R ? /* @__PURE__ */ t("ul", {
2356
2376
  ref: I,
2357
2377
  id: A,
2358
- className: `${Q.menu} ${re.length === 0 ? Q.menuEmpty : ""}`,
2378
+ className: `${Q.menu} ${G.length === 0 ? Q.menuEmpty : ""}`,
2359
2379
  role: "listbox",
2360
2380
  "aria-label": v,
2361
- style: W ? {
2362
- top: W.top,
2363
- left: W.left,
2364
- width: W.width,
2365
- maxHeight: W.maxHeight
2381
+ style: U ? {
2382
+ top: U.top,
2383
+ left: U.left,
2384
+ width: U.width,
2385
+ maxHeight: U.maxHeight
2366
2386
  } : {
2367
2387
  top: 0,
2368
2388
  left: 0,
2369
2389
  visibility: "hidden",
2370
2390
  maxHeight: 0
2371
2391
  },
2372
- children: re.length === 0 ? /* @__PURE__ */ t("li", {
2392
+ children: G.length === 0 ? /* @__PURE__ */ t("li", {
2373
2393
  className: `${Q.empty} ${Q[x]}`,
2374
2394
  children: o
2375
- }) : re.map((e, i) => {
2376
- let a = e.value === r, o = i === H;
2395
+ }) : G.map((e, i) => {
2396
+ let a = e.value === r, o = i === V;
2377
2397
  return /* @__PURE__ */ t("li", {
2378
2398
  role: "presentation",
2379
2399
  children: /* @__PURE__ */ n("button", {
@@ -2394,10 +2414,10 @@ var O = {
2394
2414
  o ? Q.active : ""
2395
2415
  ].filter(Boolean).join(" "),
2396
2416
  onPointerMove: () => {
2397
- e.disabled || U(i);
2417
+ e.disabled || H(i);
2398
2418
  },
2399
- onClick: () => ue(e),
2400
- children: [/* @__PURE__ */ t("span", { children: e.label }), a && E && /* @__PURE__ */ t(q, {
2419
+ onClick: () => le(e),
2420
+ children: [/* @__PURE__ */ t("span", { children: e.label }), a && E && /* @__PURE__ */ t(J, {
2401
2421
  name: "IconCheck",
2402
2422
  width: 16,
2403
2423
  height: 16
@@ -2415,12 +2435,12 @@ var O = {
2415
2435
  ].filter(Boolean).join(" "),
2416
2436
  children: [
2417
2437
  v && /* @__PURE__ */ t(ee, {
2418
- htmlFor: ie ? void 0 : O,
2438
+ htmlFor: re ? void 0 : O,
2419
2439
  required: S,
2420
2440
  disabled: s,
2421
2441
  children: v
2422
2442
  }),
2423
- ie ? /* @__PURE__ */ t("div", {
2443
+ re ? /* @__PURE__ */ t("div", {
2424
2444
  className: `${Q.disabledText} ${Q[x]}`,
2425
2445
  children: ne?.label ?? a
2426
2446
  }) : /* @__PURE__ */ n("div", {
@@ -2437,49 +2457,49 @@ var O = {
2437
2457
  clearable: !1,
2438
2458
  autoComplete: "off",
2439
2459
  className: `${Q.inputHost} ${Q[x]}`,
2440
- onFocus: le,
2460
+ onFocus: ce,
2441
2461
  onChange: (t) => {
2442
2462
  let n = String(t), r = mt(e, n);
2443
- V(n), z(!0), U(ht(r, 0, 1));
2463
+ te(n), z(!0), H(ht(r, 0, 1));
2444
2464
  },
2445
2465
  role: "combobox",
2446
2466
  "aria-autocomplete": "list",
2447
2467
  "aria-expanded": R,
2448
2468
  "aria-controls": A,
2449
- "aria-activedescendant": ae ? `${O}-option-${H}` : void 0,
2469
+ "aria-activedescendant": ie ? `${O}-option-${V}` : void 0,
2450
2470
  "aria-invalid": !!y,
2451
2471
  "aria-describedby": P,
2452
- onClick: le,
2472
+ onClick: ce,
2453
2473
  onKeyDown: (e) => {
2454
2474
  if (!(s || l)) {
2455
2475
  if (e.key === "ArrowDown" || e.key === "ArrowUp") {
2456
2476
  e.preventDefault();
2457
- let t = e.key === "ArrowDown" ? 1 : -1, n = H >= 0 ? H + t : t === 1 ? 0 : re.length - 1;
2458
- z(!0), ce(se(n, t));
2477
+ let t = e.key === "ArrowDown" ? 1 : -1, n = V >= 0 ? V + t : t === 1 ? 0 : G.length - 1;
2478
+ z(!0), se(oe(n, t));
2459
2479
  } else if (e.key === "Home" || e.key === "End") {
2460
2480
  if (!R) return;
2461
2481
  e.preventDefault();
2462
2482
  let t = e.key === "Home" ? 1 : -1;
2463
- ce(se(e.key === "Home" ? 0 : re.length - 1, t));
2464
- } else e.key === "Enter" && R && ae ? (e.preventDefault(), ue(ae)) : e.key === "Escape" && R ? (e.preventDefault(), z(!1), U(-1)) : e.key === "Tab" && (z(!1), U(-1));
2483
+ se(oe(e.key === "Home" ? 0 : G.length - 1, t));
2484
+ } else e.key === "Enter" && R && ie ? (e.preventDefault(), le(ie)) : e.key === "Escape" && R ? (e.preventDefault(), z(!1), H(-1)) : e.key === "Tab" && (z(!1), H(-1));
2465
2485
  }
2466
2486
  }
2467
2487
  }), /* @__PURE__ */ t("span", {
2468
2488
  className: `${Q.chevron} ${R ? Q.chevronOpen : ""}`,
2469
2489
  "aria-hidden": "true",
2470
- children: /* @__PURE__ */ t(q, {
2490
+ children: /* @__PURE__ */ t(J, {
2471
2491
  name: "IconChevron",
2472
2492
  width: 20,
2473
2493
  height: 20
2474
2494
  })
2475
2495
  })]
2476
2496
  }),
2477
- R && typeof document < "u" && g(de, document.body),
2497
+ R && typeof document < "u" && g(ue, document.body),
2478
2498
  /* @__PURE__ */ n("span", {
2479
2499
  id: j,
2480
2500
  className: Q.visuallyHidden,
2481
2501
  "aria-live": "polite",
2482
- children: ["Найдено вариантов: ", re.length]
2502
+ children: ["Найдено вариантов: ", G.length]
2483
2503
  }),
2484
2504
  b && !y && /* @__PURE__ */ t(k, {
2485
2505
  id: M,
@@ -2514,7 +2534,7 @@ var O = {
2514
2534
  variant: "empty",
2515
2535
  onClick: a,
2516
2536
  "aria-label": o,
2517
- children: /* @__PURE__ */ t(q, {
2537
+ children: /* @__PURE__ */ t(J, {
2518
2538
  name: "IconCross",
2519
2539
  width: 20,
2520
2540
  height: 20
@@ -2744,7 +2764,7 @@ var O = {
2744
2764
  size: "sm",
2745
2765
  "aria-label": `Удалить файл ${e.name}`,
2746
2766
  onClick: () => i?.(r.filter((e, t) => t !== a)),
2747
- children: /* @__PURE__ */ t(q, {
2767
+ children: /* @__PURE__ */ t(J, {
2748
2768
  name: "IconCross",
2749
2769
  width: 16,
2750
2770
  height: 16
@@ -2771,7 +2791,7 @@ var O = {
2771
2791
  /* @__PURE__ */ t("span", {
2772
2792
  className: Ot.uploadIcon,
2773
2793
  "aria-hidden": "true",
2774
- children: /* @__PURE__ */ t(q, {
2794
+ children: /* @__PURE__ */ t(J, {
2775
2795
  name: "IconUpload",
2776
2796
  width: 24,
2777
2797
  height: 24
@@ -2894,7 +2914,7 @@ function It({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
2894
2914
  className: Nt.clearAction,
2895
2915
  "aria-label": "Очистить поле",
2896
2916
  onClick: z,
2897
- children: /* @__PURE__ */ t(q, {
2917
+ children: /* @__PURE__ */ t(J, {
2898
2918
  name: "IconCross",
2899
2919
  width: 20,
2900
2920
  height: 20
@@ -3006,7 +3026,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3006
3026
  size: "sm",
3007
3027
  "aria-label": o,
3008
3028
  onClick: () => y(a),
3009
- children: /* @__PURE__ */ t(q, {
3029
+ children: /* @__PURE__ */ t(J, {
3010
3030
  name: "IconCross",
3011
3031
  width: 24,
3012
3032
  height: 24
@@ -3241,7 +3261,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3241
3261
  onFocus: () => a(!0),
3242
3262
  onBlur: () => a(!1),
3243
3263
  children: [
3244
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(q, {
3264
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(J, {
3245
3265
  ...un[e.variant],
3246
3266
  width: 24,
3247
3267
  height: 24
@@ -3266,7 +3286,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3266
3286
  size: "sm",
3267
3287
  "aria-label": "Закрыть уведомление",
3268
3288
  onClick: () => r(e.id),
3269
- children: /* @__PURE__ */ t(q, {
3289
+ children: /* @__PURE__ */ t(J, {
3270
3290
  name: "IconCross",
3271
3291
  width: 24,
3272
3292
  height: 24
@@ -3411,29 +3431,29 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3411
3431
  1.5,
3412
3432
  2
3413
3433
  ], wn = ({ sources: r, tracks: i = [], title: a, aspectRatio: o = "16 / 9", objectFit: s = "contain", loading: l = !1, error: d, fallback: f, className: p = "", controls: g = !0, playsInline: _ = !0, ...v }) => {
3414
- let y = m(null), b = m(null), x = m(null), S = m(void 0), [C, w] = h(!1), [E, O] = h(r.length > 0), [ee, k] = h(!1), [A, j] = h(!1), [M, N] = h(!1), [P, F] = h(0), [I, L] = h(0), [R, z] = h(0), [B, V] = h(1), [H, U] = h(!!v.muted), [W, te] = h(1), [ne, re] = h(!!v.loop), [ie, ae] = h(-1), [oe, se] = h(!1), [ce, G] = h(!0), [le, ue] = h(!1), [de, fe] = h(!1), K = r.map(({ src: e, type: t }) => `${e}:${t ?? ""}`).join("|"), pe = i.map((e, t) => ({
3434
+ let y = m(null), b = m(null), x = m(null), S = m(void 0), [C, w] = h(!1), [E, O] = h(r.length > 0), [ee, k] = h(!1), [A, j] = h(!1), [M, N] = h(!1), [P, F] = h(0), [I, L] = h(0), [R, z] = h(0), [B, te] = h(1), [V, H] = h(!!v.muted), [U, W] = h(1), [ne, G] = h(!!v.loop), [re, ie] = h(-1), [ae, oe] = h(!1), [se, K] = h(!0), [ce, le] = h(!1), [ue, de] = h(!1), q = r.map(({ src: e, type: t }) => `${e}:${t ?? ""}`).join("|"), fe = i.map((e, t) => ({
3415
3435
  track: e,
3416
3436
  index: t
3417
- })).filter(({ track: e }) => e.kind === "captions" || e.kind === "subtitles"), J = d ?? (C ? "Не удалось воспроизвести видео" : void 0), me = l || E && !J && r.length > 0, Y = !me && !J && r.length === 0, he = typeof document < "u" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled, ge = c(() => {
3418
- G(!0), window.clearTimeout(S.current), A && !oe && (S.current = window.setTimeout(() => G(!1), bn));
3419
- }, [A, oe]);
3437
+ })).filter(({ track: e }) => e.kind === "captions" || e.kind === "subtitles"), pe = d ?? (C ? "Не удалось воспроизвести видео" : void 0), me = l || E && !pe && r.length > 0, Y = !me && !pe && r.length === 0, he = typeof document < "u" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled, ge = c(() => {
3438
+ K(!0), window.clearTimeout(S.current), A && !ae && (S.current = window.setTimeout(() => K(!1), bn));
3439
+ }, [A, ae]);
3420
3440
  u(() => {
3421
3441
  w(!1), O(r.length > 0), k(!1), j(!1), N(!1), F(0), L(0), z(0);
3422
- }, [K, r.length]), u(() => (ge(), () => window.clearTimeout(S.current)), [ge]), u(() => {
3423
- let e = () => ue(document.fullscreenElement === b.current), t = () => fe(document.pictureInPictureElement === x.current);
3442
+ }, [q, r.length]), u(() => (ge(), () => window.clearTimeout(S.current)), [ge]), u(() => {
3443
+ let e = () => le(document.fullscreenElement === b.current), t = () => de(document.pictureInPictureElement === x.current);
3424
3444
  return document.addEventListener("fullscreenchange", e), document.addEventListener("enterpictureinpicture", t), document.addEventListener("leavepictureinpicture", t), () => {
3425
3445
  document.removeEventListener("fullscreenchange", e), document.removeEventListener("enterpictureinpicture", t), document.removeEventListener("leavepictureinpicture", t);
3426
3446
  };
3427
3447
  }, []), u(() => {
3428
- if (!oe) return;
3448
+ if (!ae) return;
3429
3449
  let e = (e) => {
3430
- y.current?.contains(e.target) || se(!1);
3450
+ y.current?.contains(e.target) || oe(!1);
3431
3451
  };
3432
3452
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
3433
- }, [oe]);
3453
+ }, [ae]);
3434
3454
  let _e = async () => {
3435
3455
  let e = x.current;
3436
- if (!(!e || J || me)) {
3456
+ if (!(!e || pe || me)) {
3437
3457
  if (e.paused || e.ended) {
3438
3458
  e.ended && (e.currentTime = 0);
3439
3459
  try {
@@ -3456,25 +3476,25 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3456
3476
  if (b.current) try {
3457
3477
  document.fullscreenElement ? await document.exitFullscreen() : await b.current.requestFullscreen();
3458
3478
  } catch {
3459
- ue(!1);
3479
+ le(!1);
3460
3480
  }
3461
3481
  }, Se = async () => {
3462
3482
  let e = x.current;
3463
3483
  if (!(!e || !he)) try {
3464
3484
  document.pictureInPictureElement ? await document.exitPictureInPicture() : await e.requestPictureInPicture();
3465
3485
  } catch {
3466
- fe(!1);
3486
+ de(!1);
3467
3487
  }
3468
3488
  }, Ce = (e) => {
3469
3489
  let t = x.current;
3470
3490
  t && (Array.from(t.textTracks).forEach((t, n) => {
3471
3491
  t.mode = n === e ? "showing" : "disabled";
3472
- }), ae(e));
3492
+ }), ie(e));
3473
3493
  }, we = (e) => {
3474
3494
  let t = e.target;
3475
3495
  if (/^(INPUT|SELECT|BUTTON)$/.test(t.tagName)) return;
3476
3496
  let n = e.key.toLowerCase();
3477
- n === " " || n === "k" ? (e.preventDefault(), _e()) : n === "m" ? (e.preventDefault(), ve()) : n === "f" ? (e.preventDefault(), xe()) : n === "c" && pe.length ? (e.preventDefault(), Ce(ie === -1 ? pe[0].index : -1)) : e.key === "ArrowLeft" || e.key === "ArrowRight" ? (e.preventDefault(), be(P + (e.key === "ArrowRight" ? xn : -5))) : e.key === "ArrowUp" || e.key === "ArrowDown" ? (e.preventDefault(), ye(B + (e.key === "ArrowUp" ? Sn : -.05))) : e.key === "Escape" && se(!1), ge();
3497
+ n === " " || n === "k" ? (e.preventDefault(), _e()) : n === "m" ? (e.preventDefault(), ve()) : n === "f" ? (e.preventDefault(), xe()) : n === "c" && fe.length ? (e.preventDefault(), Ce(re === -1 ? fe[0].index : -1)) : e.key === "ArrowLeft" || e.key === "ArrowRight" ? (e.preventDefault(), be(P + (e.key === "ArrowRight" ? xn : -5))) : e.key === "ArrowUp" || e.key === "ArrowDown" ? (e.preventDefault(), ye(B + (e.key === "ArrowUp" ? Sn : -.05))) : e.key === "Escape" && oe(!1), ge();
3478
3498
  }, Te = () => {
3479
3499
  let e = x.current;
3480
3500
  w(!1), O(!0), e?.load();
@@ -3488,7 +3508,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3488
3508
  onKeyDown: we,
3489
3509
  children: [/* @__PURE__ */ n("div", {
3490
3510
  ref: b,
3491
- className: `${$.frame} ${le ? $.fullscreen : ""}`,
3511
+ className: `${$.frame} ${ce ? $.fullscreen : ""}`,
3492
3512
  style: { aspectRatio: o },
3493
3513
  "aria-busy": me || void 0,
3494
3514
  tabIndex: g && r.length ? 0 : void 0,
@@ -3496,7 +3516,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3496
3516
  onPointerDown: ge,
3497
3517
  onFocusCapture: ge,
3498
3518
  onMouseLeave: () => {
3499
- A && !oe && G(!1);
3519
+ A && !ae && K(!1);
3500
3520
  },
3501
3521
  children: [
3502
3522
  r.length > 0 && /* @__PURE__ */ n("video", {
@@ -3519,7 +3539,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3519
3539
  },
3520
3540
  onLoadedMetadata: (e) => {
3521
3541
  L(e.currentTarget.duration || 0);
3522
- let t = pe.find(({ track: e }) => e.default);
3542
+ let t = fe.find(({ track: e }) => e.default);
3523
3543
  Ce(t?.index ?? -1), v.onLoadedMetadata?.(e);
3524
3544
  },
3525
3545
  onDurationChange: (e) => {
@@ -3551,13 +3571,13 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3551
3571
  j(!1), v.onPause?.(e);
3552
3572
  },
3553
3573
  onEnded: (e) => {
3554
- j(!1), N(!0), G(!0), v.onEnded?.(e);
3574
+ j(!1), N(!0), K(!0), v.onEnded?.(e);
3555
3575
  },
3556
3576
  onVolumeChange: (e) => {
3557
- V(e.currentTarget.volume), U(e.currentTarget.muted), v.onVolumeChange?.(e);
3577
+ te(e.currentTarget.volume), H(e.currentTarget.muted), v.onVolumeChange?.(e);
3558
3578
  },
3559
3579
  onRateChange: (e) => {
3560
- te(e.currentTarget.playbackRate), v.onRateChange?.(e);
3580
+ W(e.currentTarget.playbackRate), v.onRateChange?.(e);
3561
3581
  },
3562
3582
  onError: (e) => {
3563
3583
  O(!1), k(!1), w(!0), v.onError?.(e);
@@ -3577,7 +3597,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3577
3597
  })
3578
3598
  }), /* @__PURE__ */ t("span", { children: "Загрузка видео" })]
3579
3599
  }),
3580
- !me && ee && !J && /* @__PURE__ */ t("div", {
3600
+ !me && ee && !pe && /* @__PURE__ */ t("div", {
3581
3601
  className: $.buffering,
3582
3602
  role: "status",
3583
3603
  "aria-label": "Буферизация видео",
@@ -3587,7 +3607,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3587
3607
  className: `${$.state} ${$.empty}`,
3588
3608
  role: "status",
3589
3609
  children: [
3590
- /* @__PURE__ */ t(q, {
3610
+ /* @__PURE__ */ t(J, {
3591
3611
  name: "IconInfoCircle",
3592
3612
  className: $.stateIcon,
3593
3613
  width: 40,
@@ -3597,17 +3617,17 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3597
3617
  f ?? /* @__PURE__ */ t("span", { children: "Источник видео не указан" })
3598
3618
  ]
3599
3619
  }),
3600
- !me && J && /* @__PURE__ */ n("div", {
3620
+ !me && pe && /* @__PURE__ */ n("div", {
3601
3621
  className: `${$.state} ${$.error}`,
3602
3622
  role: "alert",
3603
3623
  children: [
3604
- /* @__PURE__ */ t(q, {
3624
+ /* @__PURE__ */ t(J, {
3605
3625
  name: "IconWarning",
3606
3626
  className: $.stateIcon,
3607
3627
  width: 40,
3608
3628
  height: 40
3609
3629
  }),
3610
- f ?? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("strong", { children: "Видео недоступно" }), /* @__PURE__ */ t("span", { children: J })] }),
3630
+ f ?? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("strong", { children: "Видео недоступно" }), /* @__PURE__ */ t("span", { children: pe })] }),
3611
3631
  r.length > 0 && /* @__PURE__ */ t(D, {
3612
3632
  size: "sm",
3613
3633
  variant: "secondary",
@@ -3616,27 +3636,27 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3616
3636
  })
3617
3637
  ]
3618
3638
  }),
3619
- !me && !J && M && /* @__PURE__ */ t("button", {
3639
+ !me && !pe && M && /* @__PURE__ */ t("button", {
3620
3640
  type: "button",
3621
3641
  className: $.replay,
3622
3642
  "aria-label": "Воспроизвести заново",
3623
3643
  onClick: () => void _e(),
3624
- children: /* @__PURE__ */ t(q, {
3644
+ children: /* @__PURE__ */ t(J, {
3625
3645
  name: "IconReplay",
3626
3646
  width: 28,
3627
3647
  height: 28
3628
3648
  })
3629
3649
  }),
3630
- g && r.length > 0 && !me && !J && /* @__PURE__ */ n("div", {
3631
- className: `${$.controlsLayer} ${ce || !A ? $.controlsVisible : ""}`,
3650
+ g && r.length > 0 && !me && !pe && /* @__PURE__ */ n("div", {
3651
+ className: `${$.controlsLayer} ${se || !A ? $.controlsVisible : ""}`,
3632
3652
  onClick: (e) => e.stopPropagation(),
3633
- children: [oe && /* @__PURE__ */ n("div", {
3653
+ children: [ae && /* @__PURE__ */ n("div", {
3634
3654
  className: $.settings,
3635
3655
  role: "dialog",
3636
3656
  "aria-label": "Настройки видео",
3637
3657
  children: [
3638
3658
  /* @__PURE__ */ n("label", { children: [/* @__PURE__ */ t("span", { children: "Скорость" }), /* @__PURE__ */ t("select", {
3639
- value: W,
3659
+ value: U,
3640
3660
  onChange: (e) => {
3641
3661
  let t = Number(e.target.value);
3642
3662
  x.current && (x.current.playbackRate = t);
@@ -3646,13 +3666,13 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3646
3666
  children: [e, "×"]
3647
3667
  }, e))
3648
3668
  })] }),
3649
- pe.length > 0 && /* @__PURE__ */ n("label", { children: [/* @__PURE__ */ t("span", { children: "Субтитры" }), /* @__PURE__ */ n("select", {
3650
- value: ie,
3669
+ fe.length > 0 && /* @__PURE__ */ n("label", { children: [/* @__PURE__ */ t("span", { children: "Субтитры" }), /* @__PURE__ */ n("select", {
3670
+ value: re,
3651
3671
  onChange: (e) => Ce(Number(e.target.value)),
3652
3672
  children: [/* @__PURE__ */ t("option", {
3653
3673
  value: -1,
3654
3674
  children: "Выключены"
3655
- }), pe.map(({ track: e, index: n }) => /* @__PURE__ */ t("option", {
3675
+ }), fe.map(({ track: e, index: n }) => /* @__PURE__ */ t("option", {
3656
3676
  value: n,
3657
3677
  children: e.label
3658
3678
  }, `${e.srcLang}-${e.label}`))]
@@ -3661,17 +3681,17 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3661
3681
  type: "button",
3662
3682
  className: $.settingsAction,
3663
3683
  "aria-pressed": ne,
3664
- onClick: () => re((e) => !e),
3684
+ onClick: () => G((e) => !e),
3665
3685
  children: [/* @__PURE__ */ t("span", { children: "Повтор" }), /* @__PURE__ */ t("span", { children: ne ? "Вкл." : "Выкл." })]
3666
3686
  }),
3667
3687
  he && /* @__PURE__ */ t("button", {
3668
3688
  type: "button",
3669
3689
  className: $.settingsAction,
3670
- "aria-pressed": de,
3690
+ "aria-pressed": ue,
3671
3691
  onClick: () => void Se(),
3672
3692
  children: /* @__PURE__ */ n("span", {
3673
3693
  className: $.settingsActionLabel,
3674
- children: [/* @__PURE__ */ t(q, {
3694
+ children: [/* @__PURE__ */ t(J, {
3675
3695
  name: "IconPictureInPicture",
3676
3696
  width: 18,
3677
3697
  height: 18
@@ -3690,7 +3710,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3690
3710
  "aria-label": A ? "Пауза" : "Воспроизвести",
3691
3711
  title: A ? "Пауза (K)" : "Воспроизвести (K)",
3692
3712
  onClick: () => void _e(),
3693
- children: /* @__PURE__ */ t(q, {
3713
+ children: /* @__PURE__ */ t(J, {
3694
3714
  name: A ? "IconPause" : "IconPlay",
3695
3715
  width: 24,
3696
3716
  height: 24
@@ -3702,12 +3722,12 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3702
3722
  children: [/* @__PURE__ */ t("button", {
3703
3723
  type: "button",
3704
3724
  className: $.controlButton,
3705
- "aria-label": H ? "Включить звук" : "Выключить звук",
3706
- "aria-pressed": H,
3725
+ "aria-label": V ? "Включить звук" : "Выключить звук",
3726
+ "aria-pressed": V,
3707
3727
  title: "Звук (M)",
3708
3728
  onClick: ve,
3709
- children: /* @__PURE__ */ t(q, {
3710
- name: H || B === 0 ? "IconVolumeMuted" : "IconVolume",
3729
+ children: /* @__PURE__ */ t(J, {
3730
+ name: V || B === 0 ? "IconVolumeMuted" : "IconVolume",
3711
3731
  width: 22,
3712
3732
  height: 22
3713
3733
  })
@@ -3717,9 +3737,9 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3717
3737
  min: 0,
3718
3738
  max: 1,
3719
3739
  step: .05,
3720
- value: H ? 0 : B,
3740
+ value: V ? 0 : B,
3721
3741
  "aria-label": "Громкость",
3722
- "aria-valuetext": `${Math.round((H ? 0 : B) * 100)}%`,
3742
+ "aria-valuetext": `${Math.round((V ? 0 : B) * 100)}%`,
3723
3743
  onChange: (e) => ye(Number(e.target.value))
3724
3744
  })]
3725
3745
  }),
@@ -3754,10 +3774,10 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3754
3774
  type: "button",
3755
3775
  className: $.controlButton,
3756
3776
  "aria-label": "Настройки",
3757
- "aria-expanded": oe,
3777
+ "aria-expanded": ae,
3758
3778
  title: "Настройки",
3759
- onClick: () => se((e) => !e),
3760
- children: /* @__PURE__ */ t(q, {
3779
+ onClick: () => oe((e) => !e),
3780
+ children: /* @__PURE__ */ t(J, {
3761
3781
  name: "IconSettings",
3762
3782
  width: 22,
3763
3783
  height: 22
@@ -3765,11 +3785,11 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3765
3785
  }), /* @__PURE__ */ t("button", {
3766
3786
  type: "button",
3767
3787
  className: $.controlButton,
3768
- "aria-label": le ? "Выйти из полноэкранного режима" : "Полноэкранный режим",
3788
+ "aria-label": ce ? "Выйти из полноэкранного режима" : "Полноэкранный режим",
3769
3789
  title: "Полноэкранный режим (F)",
3770
3790
  onClick: () => void xe(),
3771
- children: /* @__PURE__ */ t(q, {
3772
- name: le ? "IconFullscreenExit" : "IconFullscreen",
3791
+ children: /* @__PURE__ */ t(J, {
3792
+ name: ce ? "IconFullscreenExit" : "IconFullscreen",
3773
3793
  width: 22,
3774
3794
  height: 22
3775
3795
  })
@@ -3869,7 +3889,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3869
3889
  }), /* @__PURE__ */ t("span", {
3870
3890
  className: Tn.icon,
3871
3891
  "aria-hidden": "true",
3872
- children: /* @__PURE__ */ t(q, {
3892
+ children: /* @__PURE__ */ t(J, {
3873
3893
  name: "IconChevron",
3874
3894
  width: 20,
3875
3895
  height: 20
@@ -3901,4 +3921,4 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3901
3921
  }, [t]), n ? g(e, n) : null;
3902
3922
  };
3903
3923
  //#endregion
3904
- export { Zt as ConfirmModal, Dn as DSAccordion, C as DSBadge, D as DSButton, me as DSCheckbox, ot as DSDataTable, Le as DSDateRange, Pe as DSDateTimePicker, Ge as DSDropDown, dt as DSDropDownMultiple, ee as DSFieldLabel, k as DSFieldMessage, Mt as DSFileInput, Dt as DSFilters, q as DSIcon, Ct as DSInfoBlock, pt as DSInput, T as DSLoader, Gt as DSModal, Wt as DSModalFrame, cn as DSPageLoader, On as DSPortal, Tt as DSRadioButton, xt as DSSearchDropDown, ze as DSSkeleton, qe as DSSort, It as DSTextarea, dn as DSToast, hn as DSToastProvider, vn as DSTooltip, wn as DSVideoPlayerFrame, Qt as ErrorModal, Kt as ModalSystemProvider, $t as builtInModalRegistry, qt as defineModalRegistry, be as formatDateInputValue, Ee as formatDateTimeLocalValue, En as getDSAccordionScrollTarget, Ye as getDSDataTableColumnStyle, Xe as getDSDataTablePaginationItems, tn as getErrorMessage, Ue as getNextEnabledOptionIndex, Ce as isValidDateInputPrefix, Ie as isValidDateRange, xe as maskDateInputValue, we as parseDateInputValue, De as parseDateTimeLocalValue, zt as resetModalStore, mn as resetToastStore, en as useConfirmModal, rn as useConfirmModalStore, nn as useErrorModal, an as useErrorModalStore, on as useModals, Rt as useModalsStore, gn as useToast, pn as useToastStore, Ze as validateDSDataTableData };
3924
+ export { Zt as ConfirmModal, Dn as DSAccordion, C as DSBadge, D as DSButton, me as DSCheckbox, ot as DSDataTable, Le as DSDateRange, Pe as DSDateTimePicker, Ge as DSDropDown, dt as DSDropDownMultiple, ee as DSFieldLabel, k as DSFieldMessage, Mt as DSFileInput, Dt as DSFilters, J as DSIcon, Ct as DSInfoBlock, pt as DSInput, T as DSLoader, Gt as DSModal, Wt as DSModalFrame, cn as DSPageLoader, On as DSPortal, Tt as DSRadioButton, xt as DSSearchDropDown, ze as DSSkeleton, qe as DSSort, It as DSTextarea, dn as DSToast, hn as DSToastProvider, vn as DSTooltip, wn as DSVideoPlayerFrame, Qt as ErrorModal, Kt as ModalSystemProvider, $t as builtInModalRegistry, qt as defineModalRegistry, be as formatDateInputValue, Ee as formatDateTimeLocalValue, En as getDSAccordionScrollTarget, Ye as getDSDataTableColumnStyle, Xe as getDSDataTablePaginationItems, tn as getErrorMessage, Ue as getNextEnabledOptionIndex, Ce as isValidDateInputPrefix, Ie as isValidDateRange, xe as maskDateInputValue, we as parseDateInputValue, De as parseDateTimeLocalValue, zt as resetModalStore, mn as resetToastStore, en as useConfirmModal, rn as useConfirmModalStore, nn as useErrorModal, an as useErrorModalStore, on as useModals, Rt as useModalsStore, gn as useToast, pn as useToastStore, Ze as validateDSDataTableData };