@efficiency-point/design-system 0.1.23 → 0.1.24

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
@@ -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,17 @@ 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,
1883
+ colSpan: R.length,
1871
1884
  children: /* @__PURE__ */ t(ze, { lines: 3 })
1872
- }) }) : te ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1885
+ }) }) : se ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1873
1886
  className: Z.state,
1874
- colSpan: N.length,
1875
- children: te
1876
- }) }) : V.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1887
+ colSpan: R.length,
1888
+ children: se
1889
+ }) }) : re.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
1877
1890
  className: Z.state,
1878
- colSpan: N.length,
1891
+ colSpan: R.length,
1879
1892
  children: _
1880
- }) }) : V.map((e) => /* @__PURE__ */ t("tr", {
1893
+ }) }) : re.map((e) => /* @__PURE__ */ t("tr", {
1881
1894
  className: S ? Z.clickableRow : void 0,
1882
1895
  onClick: () => S?.(e.original),
1883
1896
  onKeyDown: (t) => {
@@ -1886,8 +1899,8 @@ var O = {
1886
1899
  tabIndex: S ? 0 : void 0,
1887
1900
  role: S ? "button" : void 0,
1888
1901
  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 })
1902
+ style: Ye(R.find((t) => t.id === e.column.id)),
1903
+ children: /* @__PURE__ */ t(V.FlexRender, { cell: e })
1891
1904
  }, e.id))
1892
1905
  }, e.id)) })
1893
1906
  ]
@@ -1897,21 +1910,21 @@ var O = {
1897
1910
  className: Z.cards,
1898
1911
  role: "list",
1899
1912
  "aria-label": f ?? d,
1900
- children: m ? /* @__PURE__ */ t(ze, { lines: 4 }) : te ? /* @__PURE__ */ t("div", {
1913
+ children: m ? /* @__PURE__ */ t(ze, { lines: 4 }) : se ? /* @__PURE__ */ t("div", {
1901
1914
  className: Z.state,
1902
- children: te
1903
- }) : V.length === 0 ? /* @__PURE__ */ t("div", {
1915
+ children: se
1916
+ }) : re.length === 0 ? /* @__PURE__ */ t("div", {
1904
1917
  className: Z.state,
1905
1918
  children: _
1906
- }) : V.map((e) => {
1919
+ }) : re.map((e) => {
1907
1920
  if (c) return /* @__PURE__ */ t("div", {
1908
1921
  role: "listitem",
1909
1922
  children: c({
1910
1923
  row: e.original,
1911
- columns: N
1924
+ columns: R
1912
1925
  })
1913
1926
  }, 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) ?? "");
1927
+ 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
1928
  return /* @__PURE__ */ n("article", {
1916
1929
  role: "listitem",
1917
1930
  className: Z.card,
@@ -1926,18 +1939,18 @@ var O = {
1926
1939
  }, e.id);
1927
1940
  })
1928
1941
  }),
1929
- ne && /* @__PURE__ */ n("nav", {
1942
+ K && /* @__PURE__ */ n("nav", {
1930
1943
  className: Z.pagination,
1931
1944
  "aria-label": "Пагинация таблицы",
1932
1945
  children: [/* @__PURE__ */ n("span", {
1933
1946
  className: Z.paginationRange,
1934
1947
  "aria-live": "polite",
1935
1948
  children: [
1936
- re,
1949
+ ce,
1937
1950
  "–",
1938
- ie,
1951
+ le,
1939
1952
  " из ",
1940
- R.length
1953
+ U
1941
1954
  ]
1942
1955
  }), /* @__PURE__ */ n("div", {
1943
1956
  className: Z.paginationControls,
@@ -1945,12 +1958,12 @@ var O = {
1945
1958
  /* @__PURE__ */ n(D, {
1946
1959
  variant: "empty",
1947
1960
  size: "md",
1948
- disabled: B === 0,
1961
+ disabled: m || G === 0,
1949
1962
  "aria-label": "Предыдущая страница",
1950
1963
  onClick: () => {
1951
- k((e) => Math.max(0, e - 1));
1964
+ ue(G - 1);
1952
1965
  },
1953
- children: [/* @__PURE__ */ t(q, {
1966
+ children: [/* @__PURE__ */ t(J, {
1954
1967
  name: "IconChevron",
1955
1968
  width: 18,
1956
1969
  height: 18,
@@ -1962,14 +1975,15 @@ var O = {
1962
1975
  }),
1963
1976
  /* @__PURE__ */ t("div", {
1964
1977
  className: Z.pageNumbers,
1965
- children: U.map((e) => typeof e == "number" ? /* @__PURE__ */ t(D, {
1966
- variant: e === B ? "secondary" : "empty",
1978
+ children: ae.map((e) => typeof e == "number" ? /* @__PURE__ */ t(D, {
1979
+ variant: e === G ? "secondary" : "empty",
1967
1980
  size: "md",
1968
1981
  className: Z.pageButton,
1969
1982
  "aria-label": `Перейти на страницу ${e + 1}`,
1970
- "aria-current": e === B ? "page" : void 0,
1983
+ "aria-current": e === G ? "page" : void 0,
1984
+ disabled: m,
1971
1985
  onClick: () => {
1972
- k(e);
1986
+ ue(e);
1973
1987
  },
1974
1988
  children: e + 1
1975
1989
  }, e) : /* @__PURE__ */ t("span", {
@@ -1981,15 +1995,15 @@ var O = {
1981
1995
  /* @__PURE__ */ n(D, {
1982
1996
  variant: "empty",
1983
1997
  size: "md",
1984
- disabled: B === z - 1,
1998
+ disabled: m || G === W - 1,
1985
1999
  "aria-label": "Следующая страница",
1986
2000
  onClick: () => {
1987
- k((e) => Math.min(z - 1, e + 1));
2001
+ ue(G + 1);
1988
2002
  },
1989
2003
  children: [/* @__PURE__ */ t("span", {
1990
2004
  className: Z.paginationButtonLabel,
1991
2005
  children: "Вперёд"
1992
- }), /* @__PURE__ */ t(q, {
2006
+ }), /* @__PURE__ */ t(J, {
1993
2007
  name: "IconChevron",
1994
2008
  width: 18,
1995
2009
  height: 18,
@@ -2009,7 +2023,7 @@ var O = {
2009
2023
  }
2010
2024
  return Infinity;
2011
2025
  }, 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(() => {
2026
+ 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
2027
  let e = F.current, t = I.current;
2014
2028
  if (!e || !t) return;
2015
2029
  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 +2039,13 @@ var O = {
2025
2039
  N(null);
2026
2040
  return;
2027
2041
  }
2028
- return U(), window.addEventListener("resize", U), window.addEventListener("scroll", U, !0), () => {
2029
- window.removeEventListener("resize", U), window.removeEventListener("scroll", U, !0);
2042
+ return H(), window.addEventListener("resize", H), window.addEventListener("scroll", H, !0), () => {
2043
+ window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
2030
2044
  };
2031
2045
  }, [
2032
2046
  A,
2033
2047
  e.length,
2034
- U
2048
+ H
2035
2049
  ]), u(() => {
2036
2050
  if (!A) return;
2037
2051
  let e = (e) => {
@@ -2044,10 +2058,10 @@ var O = {
2044
2058
  document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t);
2045
2059
  };
2046
2060
  }, [A]);
2047
- let W = (t, n) => {
2061
+ let U = (t, n) => {
2048
2062
  let r = Ue(e, t, n);
2049
2063
  r !== -1 && (L.current[r]?.focus(), L.current[r]?.scrollIntoView({ block: "nearest" }));
2050
- }, te = (t) => {
2064
+ }, W = (t) => {
2051
2065
  if (t.disabled) return;
2052
2066
  let n = r.includes(t.value) ? r.filter((e) => e !== t.value) : [...r, t.value];
2053
2067
  i?.(n, e.filter((e) => n.includes(e.value))), w && (j(!1), F.current?.focus());
@@ -2088,21 +2102,21 @@ var O = {
2088
2102
  X.option,
2089
2103
  o ? X.selected : ""
2090
2104
  ].filter(Boolean).join(" "),
2091
- onClick: () => te(i),
2105
+ onClick: () => W(i),
2092
2106
  onKeyDown: (t) => {
2093
2107
  if (t.key === "ArrowDown" || t.key === "ArrowUp") {
2094
2108
  t.preventDefault();
2095
2109
  let e = t.key === "ArrowDown" ? 1 : -1;
2096
- W(a + e, e);
2110
+ U(a + e, e);
2097
2111
  }
2098
2112
  if (t.key === "Home" || t.key === "End") {
2099
2113
  t.preventDefault();
2100
2114
  let n = t.key === "Home" ? 1 : -1;
2101
- W(t.key === "Home" ? 0 : e.length - 1, n);
2115
+ U(t.key === "Home" ? 0 : e.length - 1, n);
2102
2116
  }
2103
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), te(i)), t.key === "Tab" && j(!1);
2117
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), W(i)), t.key === "Tab" && j(!1);
2104
2118
  },
2105
- children: [/* @__PURE__ */ t("span", { children: i.label }), o && T && /* @__PURE__ */ t(q, {
2119
+ children: [/* @__PURE__ */ t("span", { children: i.label }), o && T && /* @__PURE__ */ t(J, {
2106
2120
  name: "IconCheck",
2107
2121
  width: 16,
2108
2122
  height: 16
@@ -2120,17 +2134,17 @@ var O = {
2120
2134
  ].filter(Boolean).join(" "),
2121
2135
  children: [
2122
2136
  l && /* @__PURE__ */ t(ee, {
2123
- htmlFor: H ? void 0 : O,
2137
+ htmlFor: V ? void 0 : O,
2124
2138
  required: y,
2125
2139
  disabled: o,
2126
2140
  children: l
2127
2141
  }),
2128
2142
  /* @__PURE__ */ t("div", {
2129
2143
  className: X.container,
2130
- children: H ? /* @__PURE__ */ t("div", {
2144
+ children: V ? /* @__PURE__ */ t("div", {
2131
2145
  id: O,
2132
2146
  className: `${X.disabledText} ${X[v]}`,
2133
- "aria-describedby": V,
2147
+ "aria-describedby": te,
2134
2148
  children: R || a
2135
2149
  }) : /* @__PURE__ */ n("button", {
2136
2150
  ref: F,
@@ -2142,14 +2156,14 @@ var O = {
2142
2156
  "aria-haspopup": "listbox",
2143
2157
  "aria-expanded": A,
2144
2158
  "aria-controls": k,
2145
- "aria-describedby": V,
2159
+ "aria-describedby": te,
2146
2160
  "aria-invalid": !!_,
2147
2161
  onClick: () => j((e) => !e),
2148
2162
  onKeyDown: (t) => {
2149
2163
  if (t.key === "ArrowDown" || t.key === "ArrowUp") {
2150
2164
  t.preventDefault(), j(!0);
2151
2165
  let n = t.key === "ArrowDown" ? 1 : -1;
2152
- requestAnimationFrame(() => W(t.key === "ArrowDown" ? 0 : e.length - 1, n));
2166
+ requestAnimationFrame(() => U(t.key === "ArrowDown" ? 0 : e.length - 1, n));
2153
2167
  }
2154
2168
  },
2155
2169
  children: [/* @__PURE__ */ t("span", {
@@ -2158,7 +2172,7 @@ var O = {
2158
2172
  }), /* @__PURE__ */ t("span", {
2159
2173
  className: [X.chevron, A ? X.chevronOpen : ""].filter(Boolean).join(" "),
2160
2174
  "aria-hidden": "true",
2161
- children: /* @__PURE__ */ t(q, {
2175
+ children: /* @__PURE__ */ t(J, {
2162
2176
  name: "IconChevron",
2163
2177
  width: 20,
2164
2178
  height: 20
@@ -2243,7 +2257,7 @@ var O = {
2243
2257
  "aria-label": M ? w : T,
2244
2258
  "aria-pressed": M,
2245
2259
  onClick: () => N((e) => !e),
2246
- children: /* @__PURE__ */ t(q, {
2260
+ children: /* @__PURE__ */ t(J, {
2247
2261
  name: M ? "IconEyeOff" : "IconEye",
2248
2262
  width: 20,
2249
2263
  height: 20
@@ -2257,7 +2271,7 @@ var O = {
2257
2271
  let e = j.current;
2258
2272
  e && ((Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
2259
2273
  },
2260
- children: /* @__PURE__ */ t(q, {
2274
+ children: /* @__PURE__ */ t(J, {
2261
2275
  name: "IconCross",
2262
2276
  width: 20,
2263
2277
  height: 20
@@ -2313,67 +2327,67 @@ var O = {
2313
2327
  j,
2314
2328
  M,
2315
2329
  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();
2330
+ ].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;
2331
+ u(() => te(ne?.label ?? ""), [ne?.label, r]);
2332
+ let ae = c(() => F.current?.querySelector("input") ?? null, []), oe = c((e, t) => ht(G, e, t), [G]), se = c((e) => {
2333
+ H(e), !(e < 0) && requestAnimationFrame(() => L.current[e]?.scrollIntoView({ block: "nearest" }));
2334
+ }, []), K = c(() => {
2335
+ let e = ae();
2322
2336
  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({
2337
+ 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;
2338
+ W({
2325
2339
  top: u,
2326
2340
  left: l,
2327
2341
  width: t.width,
2328
2342
  maxHeight: s
2329
2343
  });
2330
2344
  }, [
2331
- re.length,
2332
- oe,
2345
+ G.length,
2346
+ ae,
2333
2347
  x
2334
2348
  ]);
2335
2349
  f(() => {
2336
2350
  if (!R) {
2337
- te(null);
2351
+ W(null);
2338
2352
  return;
2339
2353
  }
2340
- return G(), window.addEventListener("resize", G), window.addEventListener("scroll", G, !0), () => {
2341
- window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
2354
+ return K(), window.addEventListener("resize", K), window.addEventListener("scroll", K, !0), () => {
2355
+ window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0);
2342
2356
  };
2343
- }, [R, G]), u(() => {
2357
+ }, [R, K]), u(() => {
2344
2358
  if (!R) return;
2345
2359
  let e = (e) => {
2346
2360
  let t = e.target;
2347
- !F.current?.contains(t) && !I.current?.contains(t) && (z(!1), U(-1));
2361
+ !F.current?.contains(t) && !I.current?.contains(t) && (z(!1), H(-1));
2348
2362
  };
2349
2363
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
2350
2364
  }, [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", {
2365
+ let ce = () => {
2366
+ s || l || (z(!0), H(oe(0, 1)));
2367
+ }, le = (e) => {
2368
+ e.disabled || (te(e.label), z(!1), H(-1), i?.(e.value, e), ae()?.focus());
2369
+ }, ue = R ? /* @__PURE__ */ t("ul", {
2356
2370
  ref: I,
2357
2371
  id: A,
2358
- className: `${Q.menu} ${re.length === 0 ? Q.menuEmpty : ""}`,
2372
+ className: `${Q.menu} ${G.length === 0 ? Q.menuEmpty : ""}`,
2359
2373
  role: "listbox",
2360
2374
  "aria-label": v,
2361
- style: W ? {
2362
- top: W.top,
2363
- left: W.left,
2364
- width: W.width,
2365
- maxHeight: W.maxHeight
2375
+ style: U ? {
2376
+ top: U.top,
2377
+ left: U.left,
2378
+ width: U.width,
2379
+ maxHeight: U.maxHeight
2366
2380
  } : {
2367
2381
  top: 0,
2368
2382
  left: 0,
2369
2383
  visibility: "hidden",
2370
2384
  maxHeight: 0
2371
2385
  },
2372
- children: re.length === 0 ? /* @__PURE__ */ t("li", {
2386
+ children: G.length === 0 ? /* @__PURE__ */ t("li", {
2373
2387
  className: `${Q.empty} ${Q[x]}`,
2374
2388
  children: o
2375
- }) : re.map((e, i) => {
2376
- let a = e.value === r, o = i === H;
2389
+ }) : G.map((e, i) => {
2390
+ let a = e.value === r, o = i === V;
2377
2391
  return /* @__PURE__ */ t("li", {
2378
2392
  role: "presentation",
2379
2393
  children: /* @__PURE__ */ n("button", {
@@ -2394,10 +2408,10 @@ var O = {
2394
2408
  o ? Q.active : ""
2395
2409
  ].filter(Boolean).join(" "),
2396
2410
  onPointerMove: () => {
2397
- e.disabled || U(i);
2411
+ e.disabled || H(i);
2398
2412
  },
2399
- onClick: () => ue(e),
2400
- children: [/* @__PURE__ */ t("span", { children: e.label }), a && E && /* @__PURE__ */ t(q, {
2413
+ onClick: () => le(e),
2414
+ children: [/* @__PURE__ */ t("span", { children: e.label }), a && E && /* @__PURE__ */ t(J, {
2401
2415
  name: "IconCheck",
2402
2416
  width: 16,
2403
2417
  height: 16
@@ -2415,12 +2429,12 @@ var O = {
2415
2429
  ].filter(Boolean).join(" "),
2416
2430
  children: [
2417
2431
  v && /* @__PURE__ */ t(ee, {
2418
- htmlFor: ie ? void 0 : O,
2432
+ htmlFor: re ? void 0 : O,
2419
2433
  required: S,
2420
2434
  disabled: s,
2421
2435
  children: v
2422
2436
  }),
2423
- ie ? /* @__PURE__ */ t("div", {
2437
+ re ? /* @__PURE__ */ t("div", {
2424
2438
  className: `${Q.disabledText} ${Q[x]}`,
2425
2439
  children: ne?.label ?? a
2426
2440
  }) : /* @__PURE__ */ n("div", {
@@ -2437,49 +2451,49 @@ var O = {
2437
2451
  clearable: !1,
2438
2452
  autoComplete: "off",
2439
2453
  className: `${Q.inputHost} ${Q[x]}`,
2440
- onFocus: le,
2454
+ onFocus: ce,
2441
2455
  onChange: (t) => {
2442
2456
  let n = String(t), r = mt(e, n);
2443
- V(n), z(!0), U(ht(r, 0, 1));
2457
+ te(n), z(!0), H(ht(r, 0, 1));
2444
2458
  },
2445
2459
  role: "combobox",
2446
2460
  "aria-autocomplete": "list",
2447
2461
  "aria-expanded": R,
2448
2462
  "aria-controls": A,
2449
- "aria-activedescendant": ae ? `${O}-option-${H}` : void 0,
2463
+ "aria-activedescendant": ie ? `${O}-option-${V}` : void 0,
2450
2464
  "aria-invalid": !!y,
2451
2465
  "aria-describedby": P,
2452
- onClick: le,
2466
+ onClick: ce,
2453
2467
  onKeyDown: (e) => {
2454
2468
  if (!(s || l)) {
2455
2469
  if (e.key === "ArrowDown" || e.key === "ArrowUp") {
2456
2470
  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));
2471
+ let t = e.key === "ArrowDown" ? 1 : -1, n = V >= 0 ? V + t : t === 1 ? 0 : G.length - 1;
2472
+ z(!0), se(oe(n, t));
2459
2473
  } else if (e.key === "Home" || e.key === "End") {
2460
2474
  if (!R) return;
2461
2475
  e.preventDefault();
2462
2476
  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));
2477
+ se(oe(e.key === "Home" ? 0 : G.length - 1, t));
2478
+ } 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
2479
  }
2466
2480
  }
2467
2481
  }), /* @__PURE__ */ t("span", {
2468
2482
  className: `${Q.chevron} ${R ? Q.chevronOpen : ""}`,
2469
2483
  "aria-hidden": "true",
2470
- children: /* @__PURE__ */ t(q, {
2484
+ children: /* @__PURE__ */ t(J, {
2471
2485
  name: "IconChevron",
2472
2486
  width: 20,
2473
2487
  height: 20
2474
2488
  })
2475
2489
  })]
2476
2490
  }),
2477
- R && typeof document < "u" && g(de, document.body),
2491
+ R && typeof document < "u" && g(ue, document.body),
2478
2492
  /* @__PURE__ */ n("span", {
2479
2493
  id: j,
2480
2494
  className: Q.visuallyHidden,
2481
2495
  "aria-live": "polite",
2482
- children: ["Найдено вариантов: ", re.length]
2496
+ children: ["Найдено вариантов: ", G.length]
2483
2497
  }),
2484
2498
  b && !y && /* @__PURE__ */ t(k, {
2485
2499
  id: M,
@@ -2514,7 +2528,7 @@ var O = {
2514
2528
  variant: "empty",
2515
2529
  onClick: a,
2516
2530
  "aria-label": o,
2517
- children: /* @__PURE__ */ t(q, {
2531
+ children: /* @__PURE__ */ t(J, {
2518
2532
  name: "IconCross",
2519
2533
  width: 20,
2520
2534
  height: 20
@@ -2744,7 +2758,7 @@ var O = {
2744
2758
  size: "sm",
2745
2759
  "aria-label": `Удалить файл ${e.name}`,
2746
2760
  onClick: () => i?.(r.filter((e, t) => t !== a)),
2747
- children: /* @__PURE__ */ t(q, {
2761
+ children: /* @__PURE__ */ t(J, {
2748
2762
  name: "IconCross",
2749
2763
  width: 16,
2750
2764
  height: 16
@@ -2771,7 +2785,7 @@ var O = {
2771
2785
  /* @__PURE__ */ t("span", {
2772
2786
  className: Ot.uploadIcon,
2773
2787
  "aria-hidden": "true",
2774
- children: /* @__PURE__ */ t(q, {
2788
+ children: /* @__PURE__ */ t(J, {
2775
2789
  name: "IconUpload",
2776
2790
  width: 24,
2777
2791
  height: 24
@@ -2894,7 +2908,7 @@ function It({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
2894
2908
  className: Nt.clearAction,
2895
2909
  "aria-label": "Очистить поле",
2896
2910
  onClick: z,
2897
- children: /* @__PURE__ */ t(q, {
2911
+ children: /* @__PURE__ */ t(J, {
2898
2912
  name: "IconCross",
2899
2913
  width: 20,
2900
2914
  height: 20
@@ -3006,7 +3020,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3006
3020
  size: "sm",
3007
3021
  "aria-label": o,
3008
3022
  onClick: () => y(a),
3009
- children: /* @__PURE__ */ t(q, {
3023
+ children: /* @__PURE__ */ t(J, {
3010
3024
  name: "IconCross",
3011
3025
  width: 24,
3012
3026
  height: 24
@@ -3241,7 +3255,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3241
3255
  onFocus: () => a(!0),
3242
3256
  onBlur: () => a(!1),
3243
3257
  children: [
3244
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(q, {
3258
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(J, {
3245
3259
  ...un[e.variant],
3246
3260
  width: 24,
3247
3261
  height: 24
@@ -3266,7 +3280,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3266
3280
  size: "sm",
3267
3281
  "aria-label": "Закрыть уведомление",
3268
3282
  onClick: () => r(e.id),
3269
- children: /* @__PURE__ */ t(q, {
3283
+ children: /* @__PURE__ */ t(J, {
3270
3284
  name: "IconCross",
3271
3285
  width: 24,
3272
3286
  height: 24
@@ -3411,29 +3425,29 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3411
3425
  1.5,
3412
3426
  2
3413
3427
  ], 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) => ({
3428
+ 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
3429
  track: e,
3416
3430
  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]);
3431
+ })).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(() => {
3432
+ K(!0), window.clearTimeout(S.current), A && !ae && (S.current = window.setTimeout(() => K(!1), bn));
3433
+ }, [A, ae]);
3420
3434
  u(() => {
3421
3435
  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);
3436
+ }, [q, r.length]), u(() => (ge(), () => window.clearTimeout(S.current)), [ge]), u(() => {
3437
+ let e = () => le(document.fullscreenElement === b.current), t = () => de(document.pictureInPictureElement === x.current);
3424
3438
  return document.addEventListener("fullscreenchange", e), document.addEventListener("enterpictureinpicture", t), document.addEventListener("leavepictureinpicture", t), () => {
3425
3439
  document.removeEventListener("fullscreenchange", e), document.removeEventListener("enterpictureinpicture", t), document.removeEventListener("leavepictureinpicture", t);
3426
3440
  };
3427
3441
  }, []), u(() => {
3428
- if (!oe) return;
3442
+ if (!ae) return;
3429
3443
  let e = (e) => {
3430
- y.current?.contains(e.target) || se(!1);
3444
+ y.current?.contains(e.target) || oe(!1);
3431
3445
  };
3432
3446
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
3433
- }, [oe]);
3447
+ }, [ae]);
3434
3448
  let _e = async () => {
3435
3449
  let e = x.current;
3436
- if (!(!e || J || me)) {
3450
+ if (!(!e || pe || me)) {
3437
3451
  if (e.paused || e.ended) {
3438
3452
  e.ended && (e.currentTime = 0);
3439
3453
  try {
@@ -3456,25 +3470,25 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3456
3470
  if (b.current) try {
3457
3471
  document.fullscreenElement ? await document.exitFullscreen() : await b.current.requestFullscreen();
3458
3472
  } catch {
3459
- ue(!1);
3473
+ le(!1);
3460
3474
  }
3461
3475
  }, Se = async () => {
3462
3476
  let e = x.current;
3463
3477
  if (!(!e || !he)) try {
3464
3478
  document.pictureInPictureElement ? await document.exitPictureInPicture() : await e.requestPictureInPicture();
3465
3479
  } catch {
3466
- fe(!1);
3480
+ de(!1);
3467
3481
  }
3468
3482
  }, Ce = (e) => {
3469
3483
  let t = x.current;
3470
3484
  t && (Array.from(t.textTracks).forEach((t, n) => {
3471
3485
  t.mode = n === e ? "showing" : "disabled";
3472
- }), ae(e));
3486
+ }), ie(e));
3473
3487
  }, we = (e) => {
3474
3488
  let t = e.target;
3475
3489
  if (/^(INPUT|SELECT|BUTTON)$/.test(t.tagName)) return;
3476
3490
  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();
3491
+ 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
3492
  }, Te = () => {
3479
3493
  let e = x.current;
3480
3494
  w(!1), O(!0), e?.load();
@@ -3488,7 +3502,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3488
3502
  onKeyDown: we,
3489
3503
  children: [/* @__PURE__ */ n("div", {
3490
3504
  ref: b,
3491
- className: `${$.frame} ${le ? $.fullscreen : ""}`,
3505
+ className: `${$.frame} ${ce ? $.fullscreen : ""}`,
3492
3506
  style: { aspectRatio: o },
3493
3507
  "aria-busy": me || void 0,
3494
3508
  tabIndex: g && r.length ? 0 : void 0,
@@ -3496,7 +3510,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3496
3510
  onPointerDown: ge,
3497
3511
  onFocusCapture: ge,
3498
3512
  onMouseLeave: () => {
3499
- A && !oe && G(!1);
3513
+ A && !ae && K(!1);
3500
3514
  },
3501
3515
  children: [
3502
3516
  r.length > 0 && /* @__PURE__ */ n("video", {
@@ -3519,7 +3533,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3519
3533
  },
3520
3534
  onLoadedMetadata: (e) => {
3521
3535
  L(e.currentTarget.duration || 0);
3522
- let t = pe.find(({ track: e }) => e.default);
3536
+ let t = fe.find(({ track: e }) => e.default);
3523
3537
  Ce(t?.index ?? -1), v.onLoadedMetadata?.(e);
3524
3538
  },
3525
3539
  onDurationChange: (e) => {
@@ -3551,13 +3565,13 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3551
3565
  j(!1), v.onPause?.(e);
3552
3566
  },
3553
3567
  onEnded: (e) => {
3554
- j(!1), N(!0), G(!0), v.onEnded?.(e);
3568
+ j(!1), N(!0), K(!0), v.onEnded?.(e);
3555
3569
  },
3556
3570
  onVolumeChange: (e) => {
3557
- V(e.currentTarget.volume), U(e.currentTarget.muted), v.onVolumeChange?.(e);
3571
+ te(e.currentTarget.volume), H(e.currentTarget.muted), v.onVolumeChange?.(e);
3558
3572
  },
3559
3573
  onRateChange: (e) => {
3560
- te(e.currentTarget.playbackRate), v.onRateChange?.(e);
3574
+ W(e.currentTarget.playbackRate), v.onRateChange?.(e);
3561
3575
  },
3562
3576
  onError: (e) => {
3563
3577
  O(!1), k(!1), w(!0), v.onError?.(e);
@@ -3577,7 +3591,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3577
3591
  })
3578
3592
  }), /* @__PURE__ */ t("span", { children: "Загрузка видео" })]
3579
3593
  }),
3580
- !me && ee && !J && /* @__PURE__ */ t("div", {
3594
+ !me && ee && !pe && /* @__PURE__ */ t("div", {
3581
3595
  className: $.buffering,
3582
3596
  role: "status",
3583
3597
  "aria-label": "Буферизация видео",
@@ -3587,7 +3601,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3587
3601
  className: `${$.state} ${$.empty}`,
3588
3602
  role: "status",
3589
3603
  children: [
3590
- /* @__PURE__ */ t(q, {
3604
+ /* @__PURE__ */ t(J, {
3591
3605
  name: "IconInfoCircle",
3592
3606
  className: $.stateIcon,
3593
3607
  width: 40,
@@ -3597,17 +3611,17 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3597
3611
  f ?? /* @__PURE__ */ t("span", { children: "Источник видео не указан" })
3598
3612
  ]
3599
3613
  }),
3600
- !me && J && /* @__PURE__ */ n("div", {
3614
+ !me && pe && /* @__PURE__ */ n("div", {
3601
3615
  className: `${$.state} ${$.error}`,
3602
3616
  role: "alert",
3603
3617
  children: [
3604
- /* @__PURE__ */ t(q, {
3618
+ /* @__PURE__ */ t(J, {
3605
3619
  name: "IconWarning",
3606
3620
  className: $.stateIcon,
3607
3621
  width: 40,
3608
3622
  height: 40
3609
3623
  }),
3610
- f ?? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("strong", { children: "Видео недоступно" }), /* @__PURE__ */ t("span", { children: J })] }),
3624
+ f ?? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("strong", { children: "Видео недоступно" }), /* @__PURE__ */ t("span", { children: pe })] }),
3611
3625
  r.length > 0 && /* @__PURE__ */ t(D, {
3612
3626
  size: "sm",
3613
3627
  variant: "secondary",
@@ -3616,27 +3630,27 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3616
3630
  })
3617
3631
  ]
3618
3632
  }),
3619
- !me && !J && M && /* @__PURE__ */ t("button", {
3633
+ !me && !pe && M && /* @__PURE__ */ t("button", {
3620
3634
  type: "button",
3621
3635
  className: $.replay,
3622
3636
  "aria-label": "Воспроизвести заново",
3623
3637
  onClick: () => void _e(),
3624
- children: /* @__PURE__ */ t(q, {
3638
+ children: /* @__PURE__ */ t(J, {
3625
3639
  name: "IconReplay",
3626
3640
  width: 28,
3627
3641
  height: 28
3628
3642
  })
3629
3643
  }),
3630
- g && r.length > 0 && !me && !J && /* @__PURE__ */ n("div", {
3631
- className: `${$.controlsLayer} ${ce || !A ? $.controlsVisible : ""}`,
3644
+ g && r.length > 0 && !me && !pe && /* @__PURE__ */ n("div", {
3645
+ className: `${$.controlsLayer} ${se || !A ? $.controlsVisible : ""}`,
3632
3646
  onClick: (e) => e.stopPropagation(),
3633
- children: [oe && /* @__PURE__ */ n("div", {
3647
+ children: [ae && /* @__PURE__ */ n("div", {
3634
3648
  className: $.settings,
3635
3649
  role: "dialog",
3636
3650
  "aria-label": "Настройки видео",
3637
3651
  children: [
3638
3652
  /* @__PURE__ */ n("label", { children: [/* @__PURE__ */ t("span", { children: "Скорость" }), /* @__PURE__ */ t("select", {
3639
- value: W,
3653
+ value: U,
3640
3654
  onChange: (e) => {
3641
3655
  let t = Number(e.target.value);
3642
3656
  x.current && (x.current.playbackRate = t);
@@ -3646,13 +3660,13 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3646
3660
  children: [e, "×"]
3647
3661
  }, e))
3648
3662
  })] }),
3649
- pe.length > 0 && /* @__PURE__ */ n("label", { children: [/* @__PURE__ */ t("span", { children: "Субтитры" }), /* @__PURE__ */ n("select", {
3650
- value: ie,
3663
+ fe.length > 0 && /* @__PURE__ */ n("label", { children: [/* @__PURE__ */ t("span", { children: "Субтитры" }), /* @__PURE__ */ n("select", {
3664
+ value: re,
3651
3665
  onChange: (e) => Ce(Number(e.target.value)),
3652
3666
  children: [/* @__PURE__ */ t("option", {
3653
3667
  value: -1,
3654
3668
  children: "Выключены"
3655
- }), pe.map(({ track: e, index: n }) => /* @__PURE__ */ t("option", {
3669
+ }), fe.map(({ track: e, index: n }) => /* @__PURE__ */ t("option", {
3656
3670
  value: n,
3657
3671
  children: e.label
3658
3672
  }, `${e.srcLang}-${e.label}`))]
@@ -3661,17 +3675,17 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3661
3675
  type: "button",
3662
3676
  className: $.settingsAction,
3663
3677
  "aria-pressed": ne,
3664
- onClick: () => re((e) => !e),
3678
+ onClick: () => G((e) => !e),
3665
3679
  children: [/* @__PURE__ */ t("span", { children: "Повтор" }), /* @__PURE__ */ t("span", { children: ne ? "Вкл." : "Выкл." })]
3666
3680
  }),
3667
3681
  he && /* @__PURE__ */ t("button", {
3668
3682
  type: "button",
3669
3683
  className: $.settingsAction,
3670
- "aria-pressed": de,
3684
+ "aria-pressed": ue,
3671
3685
  onClick: () => void Se(),
3672
3686
  children: /* @__PURE__ */ n("span", {
3673
3687
  className: $.settingsActionLabel,
3674
- children: [/* @__PURE__ */ t(q, {
3688
+ children: [/* @__PURE__ */ t(J, {
3675
3689
  name: "IconPictureInPicture",
3676
3690
  width: 18,
3677
3691
  height: 18
@@ -3690,7 +3704,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3690
3704
  "aria-label": A ? "Пауза" : "Воспроизвести",
3691
3705
  title: A ? "Пауза (K)" : "Воспроизвести (K)",
3692
3706
  onClick: () => void _e(),
3693
- children: /* @__PURE__ */ t(q, {
3707
+ children: /* @__PURE__ */ t(J, {
3694
3708
  name: A ? "IconPause" : "IconPlay",
3695
3709
  width: 24,
3696
3710
  height: 24
@@ -3702,12 +3716,12 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3702
3716
  children: [/* @__PURE__ */ t("button", {
3703
3717
  type: "button",
3704
3718
  className: $.controlButton,
3705
- "aria-label": H ? "Включить звук" : "Выключить звук",
3706
- "aria-pressed": H,
3719
+ "aria-label": V ? "Включить звук" : "Выключить звук",
3720
+ "aria-pressed": V,
3707
3721
  title: "Звук (M)",
3708
3722
  onClick: ve,
3709
- children: /* @__PURE__ */ t(q, {
3710
- name: H || B === 0 ? "IconVolumeMuted" : "IconVolume",
3723
+ children: /* @__PURE__ */ t(J, {
3724
+ name: V || B === 0 ? "IconVolumeMuted" : "IconVolume",
3711
3725
  width: 22,
3712
3726
  height: 22
3713
3727
  })
@@ -3717,9 +3731,9 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3717
3731
  min: 0,
3718
3732
  max: 1,
3719
3733
  step: .05,
3720
- value: H ? 0 : B,
3734
+ value: V ? 0 : B,
3721
3735
  "aria-label": "Громкость",
3722
- "aria-valuetext": `${Math.round((H ? 0 : B) * 100)}%`,
3736
+ "aria-valuetext": `${Math.round((V ? 0 : B) * 100)}%`,
3723
3737
  onChange: (e) => ye(Number(e.target.value))
3724
3738
  })]
3725
3739
  }),
@@ -3754,10 +3768,10 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3754
3768
  type: "button",
3755
3769
  className: $.controlButton,
3756
3770
  "aria-label": "Настройки",
3757
- "aria-expanded": oe,
3771
+ "aria-expanded": ae,
3758
3772
  title: "Настройки",
3759
- onClick: () => se((e) => !e),
3760
- children: /* @__PURE__ */ t(q, {
3773
+ onClick: () => oe((e) => !e),
3774
+ children: /* @__PURE__ */ t(J, {
3761
3775
  name: "IconSettings",
3762
3776
  width: 22,
3763
3777
  height: 22
@@ -3765,11 +3779,11 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3765
3779
  }), /* @__PURE__ */ t("button", {
3766
3780
  type: "button",
3767
3781
  className: $.controlButton,
3768
- "aria-label": le ? "Выйти из полноэкранного режима" : "Полноэкранный режим",
3782
+ "aria-label": ce ? "Выйти из полноэкранного режима" : "Полноэкранный режим",
3769
3783
  title: "Полноэкранный режим (F)",
3770
3784
  onClick: () => void xe(),
3771
- children: /* @__PURE__ */ t(q, {
3772
- name: le ? "IconFullscreenExit" : "IconFullscreen",
3785
+ children: /* @__PURE__ */ t(J, {
3786
+ name: ce ? "IconFullscreenExit" : "IconFullscreen",
3773
3787
  width: 22,
3774
3788
  height: 22
3775
3789
  })
@@ -3869,7 +3883,7 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3869
3883
  }), /* @__PURE__ */ t("span", {
3870
3884
  className: Tn.icon,
3871
3885
  "aria-hidden": "true",
3872
- children: /* @__PURE__ */ t(q, {
3886
+ children: /* @__PURE__ */ t(J, {
3873
3887
  name: "IconChevron",
3874
3888
  width: 20,
3875
3889
  height: 20
@@ -3901,4 +3915,4 @@ var Wt = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
3901
3915
  }, [t]), n ? g(e, n) : null;
3902
3916
  };
3903
3917
  //#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 };
3918
+ 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 };