@alfadocs/ui-kit 1.15.1 → 1.17.0

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.
Files changed (76) hide show
  1. package/dist/_chunks/{calendar-CHT9Rm3M.js → calendar-PFO-NlYw.js} +2 -2
  2. package/dist/_chunks/{calendar-event-card-BjdHZaqz.js → calendar-event-card-66CEEWU6.js} +38 -20
  3. package/dist/_chunks/calendar-workspace-Ca0n_r1v.js +7341 -0
  4. package/dist/_chunks/{file-manager-DJMeB3V8.js → file-manager-spc3_khe.js} +152 -136
  5. package/dist/_chunks/{signature-field-CEiPe-vX.js → signature-field-0rFODJlW.js} +34 -19
  6. package/dist/agent-catalog.json +10 -56
  7. package/dist/agent-i18n/en.json +3 -5
  8. package/dist/components/calendar/index.js +1 -1
  9. package/dist/components/calendar-event-card/index.js +1 -1
  10. package/dist/components/file-manager/index.js +1 -1
  11. package/dist/components/signature-field/index.js +1 -1
  12. package/dist/i18n/locales/ar.d.ts +2 -38
  13. package/dist/i18n/locales/ar.js +4 -40
  14. package/dist/i18n/locales/de.d.ts +2 -38
  15. package/dist/i18n/locales/de.js +4 -40
  16. package/dist/i18n/locales/el.d.ts +2 -38
  17. package/dist/i18n/locales/el.js +4 -40
  18. package/dist/i18n/locales/en.d.ts +2 -38
  19. package/dist/i18n/locales/en.js +4 -40
  20. package/dist/i18n/locales/es.d.ts +2 -38
  21. package/dist/i18n/locales/es.js +4 -40
  22. package/dist/i18n/locales/fr.d.ts +2 -38
  23. package/dist/i18n/locales/fr.js +4 -40
  24. package/dist/i18n/locales/hi.d.ts +2 -38
  25. package/dist/i18n/locales/hi.js +4 -40
  26. package/dist/i18n/locales/it.d.ts +2 -38
  27. package/dist/i18n/locales/it.js +4 -40
  28. package/dist/i18n/locales/ja.d.ts +2 -38
  29. package/dist/i18n/locales/ja.js +4 -40
  30. package/dist/i18n/locales/nl.d.ts +2 -38
  31. package/dist/i18n/locales/nl.js +4 -40
  32. package/dist/i18n/locales/pl.d.ts +2 -38
  33. package/dist/i18n/locales/pl.js +4 -40
  34. package/dist/i18n/locales/pt.d.ts +2 -38
  35. package/dist/i18n/locales/pt.js +4 -40
  36. package/dist/i18n/locales/ro.d.ts +2 -38
  37. package/dist/i18n/locales/ro.js +4 -40
  38. package/dist/i18n/locales/ru.d.ts +2 -38
  39. package/dist/i18n/locales/ru.js +4 -40
  40. package/dist/i18n/locales/sq.d.ts +2 -38
  41. package/dist/i18n/locales/sq.js +4 -40
  42. package/dist/i18n/locales/sv.d.ts +2 -38
  43. package/dist/i18n/locales/sv.js +4 -40
  44. package/dist/i18n/locales/tr.d.ts +2 -38
  45. package/dist/i18n/locales/tr.js +4 -40
  46. package/dist/i18n/locales/zh.d.ts +2 -38
  47. package/dist/i18n/locales/zh.js +4 -40
  48. package/dist/index.js +5 -5
  49. package/dist/locales/ar.json +4 -40
  50. package/dist/locales/de.json +4 -40
  51. package/dist/locales/el.json +4 -40
  52. package/dist/locales/en.json +4 -40
  53. package/dist/locales/es.json +4 -40
  54. package/dist/locales/fr.json +4 -40
  55. package/dist/locales/hi.json +4 -40
  56. package/dist/locales/it.json +4 -40
  57. package/dist/locales/ja.json +4 -40
  58. package/dist/locales/nl.json +4 -40
  59. package/dist/locales/pl.json +4 -40
  60. package/dist/locales/pt.json +4 -40
  61. package/dist/locales/ro.json +4 -40
  62. package/dist/locales/ru.json +4 -40
  63. package/dist/locales/sq.json +4 -40
  64. package/dist/locales/sv.json +4 -40
  65. package/dist/locales/tr.json +4 -40
  66. package/dist/locales/zh.json +4 -40
  67. package/dist/patterns/calendar/calendar-workspace.model.d.ts +59 -13
  68. package/dist/patterns/calendar/calendar.model.d.ts +18 -5
  69. package/dist/patterns/calendar/calendar.sheets.d.ts +10 -13
  70. package/dist/patterns/calendar/calendar.types.d.ts +79 -13
  71. package/dist/patterns/calendar/index.js +1 -1
  72. package/dist/tokens.css +1 -1
  73. package/package.json +1 -1
  74. package/dist/_chunks/calendar-workspace-CqVe4v5s.js +0 -7481
  75. package/dist/_chunks/folder-plus-CutOs4DP.js +0 -22
  76. package/dist/_chunks/signature-CpFNpsVK.js +0 -21
@@ -7,35 +7,34 @@ import { E as Mt } from "./empty-state-X0sVPfVo.js";
7
7
  import { S as he } from "./skeleton-CZbwyJAA.js";
8
8
  import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
9
9
  import { u as wt } from "./registry-DvAUVLHh.js";
10
- import { B as Z } from "./button-nJaPh_HC.js";
10
+ import { B as X } from "./button-nJaPh_HC.js";
11
11
  import { D as m } from "./dialog-UbKJCi1X.js";
12
12
  import { a as St, F as xt } from "./file-upload-CwxdqkMK.js";
13
13
  import { T as We } from "./text-input-CUvCb6ST.js";
14
- import { c as pe } from "./createLucideIcon-DhHxpK9K.js";
14
+ import { c as se } from "./createLucideIcon-DhHxpK9K.js";
15
15
  import { F as Nt, a as Tt } from "./file-Cwe9VC1A.js";
16
16
  import { F as Ft } from "./file-text-5yv6r2ls.js";
17
17
  import { F as At } from "./file-spreadsheet-DmwyfV4O.js";
18
18
  import { C as Dt } from "./chevron-right-I9AeSxH2.js";
19
19
  import { D as Te } from "./data-table-DC5rO3Ty.js";
20
20
  import { A as Rt, a as It } from "./actions-cell-renderer-yy03OgRL.js";
21
- import { B as Ge } from "./badge-sTusUqZD.js";
22
- import { D as $e } from "./download-CfYKJO_j.js";
21
+ import { B as $e } from "./badge-sTusUqZD.js";
22
+ import { D as Ge } from "./download-CfYKJO_j.js";
23
23
  import { P as zt } from "./pen-line-D0De5zdl.js";
24
24
  import { S as Ue } from "./share-2-B49jcW2I.js";
25
25
  import { P as Ye } from "./pencil-B1sKKyuT.js";
26
- import { T as Xe } from "./trash-2-uumy3fy1.js";
26
+ import { T as Ze } from "./trash-2-uumy3fy1.js";
27
27
  import { I as Q } from "./icon-button-DA2CAGHZ.js";
28
28
  import { I as _t } from "./icon-button-group-VCCod3Hz.js";
29
- import { U as Ze } from "./upload-BfT2hzMg.js";
30
- import { F as Lt } from "./folder-plus-CutOs4DP.js";
31
- import { P as Kt } from "./plus-DzMQ_c6b.js";
29
+ import { U as Xe } from "./upload-BfT2hzMg.js";
30
+ import { P as Lt } from "./plus-DzMQ_c6b.js";
32
31
  /**
33
32
  * @license lucide-react v1.22.0 - ISC
34
33
  *
35
34
  * This source code is licensed under the ISC license.
36
35
  * See the LICENSE file in the root directory of this source tree.
37
36
  */
38
- const Et = [
37
+ const Kt = [
39
38
  [
40
39
  "path",
41
40
  {
@@ -51,14 +50,14 @@ const Et = [
51
50
  key: "1etmh7"
52
51
  }
53
52
  ]
54
- ], Bt = pe("file-headphone", Et);
53
+ ], Et = se("file-headphone", Kt);
55
54
  /**
56
55
  * @license lucide-react v1.22.0 - ISC
57
56
  *
58
57
  * This source code is licensed under the ISC license.
59
58
  * See the LICENSE file in the root directory of this source tree.
60
59
  */
61
- const Ht = [
60
+ const Bt = [
62
61
  [
63
62
  "path",
64
63
  {
@@ -74,14 +73,14 @@ const Ht = [
74
73
  key: "1tzo1f"
75
74
  }
76
75
  ]
77
- ], Ot = pe("file-play", Ht);
76
+ ], Ht = se("file-play", Bt);
78
77
  /**
79
78
  * @license lucide-react v1.22.0 - ISC
80
79
  *
81
80
  * This source code is licensed under the ISC license.
82
81
  * See the LICENSE file in the root directory of this source tree.
83
82
  */
84
- const jt = [
83
+ const Ot = [
85
84
  [
86
85
  "path",
87
86
  {
@@ -91,14 +90,14 @@ const jt = [
91
90
  ],
92
91
  ["path", { d: "M2 13h10", key: "pgb2dq" }],
93
92
  ["path", { d: "m9 16 3-3-3-3", key: "6m91ic" }]
94
- ], Je = pe("folder-input", jt);
93
+ ], Je = se("folder-input", Ot);
95
94
  /**
96
95
  * @license lucide-react v1.22.0 - ISC
97
96
  *
98
97
  * This source code is licensed under the ISC license.
99
98
  * See the LICENSE file in the root directory of this source tree.
100
99
  */
101
- const qt = [
100
+ const jt = [
102
101
  [
103
102
  "path",
104
103
  {
@@ -106,14 +105,16 @@ const qt = [
106
105
  key: "usdka0"
107
106
  }
108
107
  ]
109
- ], Pt = pe("folder-open", qt);
108
+ ], qt = se("folder-open", jt);
110
109
  /**
111
110
  * @license lucide-react v1.22.0 - ISC
112
111
  *
113
112
  * This source code is licensed under the ISC license.
114
113
  * See the LICENSE file in the root directory of this source tree.
115
114
  */
116
- const Vt = [
115
+ const Pt = [
116
+ ["path", { d: "M12 10v6", key: "1bos4e" }],
117
+ ["path", { d: "M9 13h6", key: "1uhe8q" }],
117
118
  [
118
119
  "path",
119
120
  {
@@ -121,7 +122,22 @@ const Vt = [
121
122
  key: "1kt360"
122
123
  }
123
124
  ]
124
- ], Qe = pe("folder", Vt), Wt = {
125
+ ], Vt = se("folder-plus", Pt);
126
+ /**
127
+ * @license lucide-react v1.22.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */
132
+ const Wt = [
133
+ [
134
+ "path",
135
+ {
136
+ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
137
+ key: "1kt360"
138
+ }
139
+ ]
140
+ ], Qe = se("folder", Wt), $t = {
125
141
  type: "array",
126
142
  items: {
127
143
  type: "object",
@@ -294,7 +310,7 @@ const Vt = [
294
310
  }
295
311
  },
296
312
  returns: "Array<{ id, kind, parentId, size, updatedAt }>",
297
- returnsSchema: Wt,
313
+ returnsSchema: $t,
298
314
  idempotent: !0,
299
315
  descriptionKey: "ui.agent.fileManager.actions.listItems",
300
316
  description: "List structural metadata (ids, kinds, sizes, dates — never names) for a folder or the whole tree.",
@@ -352,24 +368,24 @@ const Vt = [
352
368
  description: "Grid cards and folder-tree nodes carry the item id as data-item-id (ids only — never names). List-view rows are AG Grid rows inside the composed DataTable and carry its native row-id attribute keyed to the same ids."
353
369
  }
354
370
  }
355
- }, $t = [
371
+ }, Ut = [
356
372
  "fileManager.units.bytes",
357
373
  "fileManager.units.kilobytes",
358
374
  "fileManager.units.megabytes",
359
375
  "fileManager.units.gigabytes"
360
376
  ], Oe = ["B", "KB", "MB", "GB"];
361
- function Ut(t, r, l) {
377
+ function Yt(t, r, l) {
362
378
  let i = t, a = 0;
363
379
  for (; i >= 1024 && a < Oe.length - 1; )
364
380
  i /= 1024, a++;
365
381
  return `${new Intl.NumberFormat(r, {
366
382
  maximumFractionDigits: a === 0 ? 0 : 1
367
- }).format(i)} ${l($t[a], Oe[a])}`;
383
+ }).format(i)} ${l(Ut[a], Oe[a])}`;
368
384
  }
369
- function Yt(t) {
385
+ function Zt(t) {
370
386
  if (t.kind === "folder") return Qe;
371
387
  const r = t.mimeType ?? "";
372
- return r.startsWith("image/") ? Nt : r.startsWith("audio/") ? Bt : r.startsWith("video/") ? Ot : r === "application/pdf" || r.startsWith("text/") || r.includes("word") || r.includes("rtf") ? Ft : r.includes("zip") || r.includes("compressed") || r.includes("tar") ? St : r.includes("spreadsheet") || r.includes("excel") || r === "text/csv" ? At : Tt;
388
+ return r.startsWith("image/") ? Nt : r.startsWith("audio/") ? Et : r.startsWith("video/") ? Ht : r === "application/pdf" || r.startsWith("text/") || r.includes("word") || r.includes("rtf") ? Ft : r.includes("zip") || r.includes("compressed") || r.includes("tar") ? St : r.includes("spreadsheet") || r.includes("excel") || r === "text/csv" ? At : Tt;
373
389
  }
374
390
  function et(t, r, l) {
375
391
  const i = new Intl.Collator(l, {
@@ -394,7 +410,7 @@ function Xt(t, r, l) {
394
410
  });
395
411
  return t.filter((c) => i.has(c.id)).sort((c, F) => c.kind !== F.kind ? c.kind === "folder" ? -1 : 1 : u.compare(c.name, F.name));
396
412
  }
397
- function Zt(t, r, l) {
413
+ function Jt(t, r, l) {
398
414
  const i = [];
399
415
  let a = t;
400
416
  const u = /* @__PURE__ */ new Set();
@@ -402,7 +418,7 @@ function Zt(t, r, l) {
402
418
  a = a.parentId === null ? void 0 : r.get(a.parentId);
403
419
  return i;
404
420
  }
405
- function Jt(t, r) {
421
+ function Qt(t, r) {
406
422
  const l = new Map(t.map((c) => [c.id, c])), i = [];
407
423
  let a = r === null ? void 0 : l.get(r);
408
424
  const u = /* @__PURE__ */ new Set();
@@ -410,7 +426,7 @@ function Jt(t, r) {
410
426
  u.add(a.id), i.unshift(a), a = a.parentId === null ? void 0 : l.get(a.parentId);
411
427
  return i;
412
428
  }
413
- function Qt(t, r) {
429
+ function en(t, r) {
414
430
  const l = new Set(r);
415
431
  let i = !0;
416
432
  for (; i; ) {
@@ -425,7 +441,7 @@ function tt(t, r) {
425
441
  const l = new Set(t);
426
442
  return r.every((i) => l.has(i));
427
443
  }
428
- const fe = "__root__", le = (t) => t ?? fe, en = Ve(
444
+ const pe = "__root__", le = (t) => t ?? pe, tn = Ve(
429
445
  [
430
446
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
431
447
  "ds:min-h-[var(--min-target-size)] ds:w-full",
@@ -445,22 +461,22 @@ const fe = "__root__", le = (t) => t ?? fe, en = Ve(
445
461
  defaultVariants: { selected: !1 }
446
462
  }
447
463
  );
448
- function tn(t, r, l) {
464
+ function nn(t, r, l) {
449
465
  const i = (a) => et(t, a, r).filter((u) => u.kind === "folder" && !(l != null && l.has(u.id))).map((u) => ({
450
466
  key: le(u.id),
451
467
  folderId: u.id,
452
468
  item: u,
453
469
  children: i(u.id)
454
470
  }));
455
- return { key: fe, folderId: null, children: i(null) };
471
+ return { key: pe, folderId: null, children: i(null) };
456
472
  }
457
- function nn(t, r) {
473
+ function rn(t, r) {
458
474
  const l = [], i = (a) => {
459
475
  l.push(a), r.has(a.key) && a.children.forEach(i);
460
476
  };
461
477
  return i(t), l;
462
478
  }
463
- function rn(t) {
479
+ function an(t) {
464
480
  var r;
465
481
  return t.folderId === null ? null : le(((r = t.item) == null ? void 0 : r.parentId) ?? null);
466
482
  }
@@ -472,15 +488,15 @@ function nt({
472
488
  excludeIds: a
473
489
  }) {
474
490
  const { t: u, i18n: c } = J(), F = c.dir() === "rtl", x = O(
475
- () => tn(t, c.language, a),
491
+ () => nn(t, c.language, a),
476
492
  [t, c.language, a]
477
493
  ), [b, k] = te(
478
- () => /* @__PURE__ */ new Set([fe])
494
+ () => /* @__PURE__ */ new Set([pe])
479
495
  ), [D, z] = te(le(r)), R = ee(/* @__PURE__ */ new Map());
480
496
  ne(() => {
481
497
  k((o) => {
482
498
  const v = new Set(o);
483
- v.add(fe);
499
+ v.add(pe);
484
500
  const A = new Map(t.map((B) => [B.id, B]));
485
501
  let g = r ? A.get(r) : void 0;
486
502
  const E = /* @__PURE__ */ new Set();
@@ -490,12 +506,12 @@ function nt({
490
506
  }), z(le(r));
491
507
  }, [r, t]);
492
508
  const M = O(
493
- () => nn(x, b),
509
+ () => rn(x, b),
494
510
  [x, b]
495
511
  );
496
512
  ne(() => {
497
513
  var o;
498
- M.some((v) => v.key === D) || z(((o = M[0]) == null ? void 0 : o.key) ?? fe);
514
+ M.some((v) => v.key === D) || z(((o = M[0]) == null ? void 0 : o.key) ?? pe);
499
515
  }, [M, D]);
500
516
  const _ = (o) => {
501
517
  var v;
@@ -512,7 +528,7 @@ function nt({
512
528
  if (!A) return;
513
529
  const g = M.findIndex((L) => L.key === A);
514
530
  if (g < 0) return;
515
- const E = M[g], B = E.children.length > 0, $ = b.has(A), re = F ? "ArrowLeft" : "ArrowRight", T = F ? "ArrowRight" : "ArrowLeft";
531
+ const E = M[g], B = E.children.length > 0, G = b.has(A), re = F ? "ArrowLeft" : "ArrowRight", T = F ? "ArrowRight" : "ArrowLeft";
516
532
  switch (o.key) {
517
533
  case "ArrowDown":
518
534
  g < M.length - 1 && _(M[g + 1].key);
@@ -521,13 +537,13 @@ function nt({
521
537
  g > 0 && _(M[g - 1].key);
522
538
  break;
523
539
  case re:
524
- B && !$ ? V(A, !0) : B && $ && _(E.children[0].key);
540
+ B && !G ? V(A, !0) : B && G && _(E.children[0].key);
525
541
  break;
526
542
  case T: {
527
- if (B && $)
543
+ if (B && G)
528
544
  V(A, !1);
529
545
  else {
530
- const L = rn(E);
546
+ const L = an(E);
531
547
  L !== null && _(L);
532
548
  }
533
549
  break;
@@ -548,7 +564,7 @@ function nt({
548
564
  o.preventDefault(), o.stopPropagation();
549
565
  }, W = (o) => {
550
566
  var T;
551
- const v = le(r) === o.key, A = b.has(o.key), g = o.children.length > 0, E = o.folderId === null ? u("fileManager.rootLabel", "All files") : ((T = o.item) == null ? void 0 : T.name) ?? "", B = A && g ? Pt : Qe, $ = (L) => {
567
+ const v = le(r) === o.key, A = b.has(o.key), g = o.children.length > 0, E = o.folderId === null ? u("fileManager.rootLabel", "All files") : ((T = o.item) == null ? void 0 : T.name) ?? "", B = A && g ? qt : Qe, G = (L) => {
552
568
  L.stopPropagation(), z(o.key), l(o.folderId), g && V(o.key, !0);
553
569
  }, re = (L) => {
554
570
  L.stopPropagation(), V(o.key);
@@ -567,7 +583,7 @@ function nt({
567
583
  tabIndex: D === o.key ? 0 : -1,
568
584
  "data-tree-key": o.key,
569
585
  "data-item-id": o.folderId ?? void 0,
570
- onClick: $,
586
+ onClick: G,
571
587
  onFocus: () => z(o.key),
572
588
  className: [
573
589
  "ds:list-none ds:rounded-[var(--radius-md)]",
@@ -575,7 +591,7 @@ function nt({
575
591
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
576
592
  ].join(" "),
577
593
  children: [
578
- /* @__PURE__ */ S("div", { className: en({ selected: v }), children: [
594
+ /* @__PURE__ */ S("div", { className: tn({ selected: v }), children: [
579
595
  g ? /* @__PURE__ */ n(
580
596
  "span",
581
597
  {
@@ -629,11 +645,11 @@ function nt({
629
645
  }
630
646
  );
631
647
  }
632
- const an = /[\\/:*?"<>|]/g, Ae = 128;
648
+ const on = /[\\/:*?"<>|]/g, Ae = 128;
633
649
  function rt(t) {
634
- return t.replace(an, "").slice(0, Ae);
650
+ return t.replace(on, "").slice(0, Ae);
635
651
  }
636
- function on({
652
+ function ln({
637
653
  open: t,
638
654
  onOpenChange: r,
639
655
  onSubmit: l
@@ -671,9 +687,9 @@ function on({
671
687
  )
672
688
  ] }),
673
689
  /* @__PURE__ */ S(m.Footer, { children: [
674
- /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(Z, { type: "button", intent: "outline", children: i("fileManager.dialogs.createFolder.cancel", "Cancel") }) }),
690
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: i("fileManager.dialogs.createFolder.cancel", "Cancel") }) }),
675
691
  /* @__PURE__ */ n(
676
- Z,
692
+ X,
677
693
  {
678
694
  type: "submit",
679
695
  intent: "primary",
@@ -685,7 +701,7 @@ function on({
685
701
  ] })
686
702
  ] }) });
687
703
  }
688
- function ln({
704
+ function sn({
689
705
  open: t,
690
706
  onOpenChange: r,
691
707
  onUpload: l,
@@ -707,10 +723,10 @@ function ln({
707
723
  onUpload: l
708
724
  }
709
725
  ) }),
710
- /* @__PURE__ */ n(m.Footer, { children: /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(Z, { type: "button", intent: "outline", children: u("fileManager.dialogs.upload.close", "Done") }) }) })
726
+ /* @__PURE__ */ n(m.Footer, { children: /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: u("fileManager.dialogs.upload.close", "Done") }) }) })
711
727
  ] }) });
712
728
  }
713
- function sn({
729
+ function dn({
714
730
  open: t,
715
731
  onOpenChange: r,
716
732
  initialName: l,
@@ -749,9 +765,9 @@ function sn({
749
765
  )
750
766
  ] }),
751
767
  /* @__PURE__ */ S(m.Footer, { children: [
752
- /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(Z, { type: "button", intent: "outline", children: a("fileManager.dialogs.rename.cancel", "Cancel") }) }),
768
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: a("fileManager.dialogs.rename.cancel", "Cancel") }) }),
753
769
  /* @__PURE__ */ n(
754
- Z,
770
+ X,
755
771
  {
756
772
  type: "submit",
757
773
  intent: "primary",
@@ -763,7 +779,7 @@ function sn({
763
779
  ] })
764
780
  ] }) });
765
781
  }
766
- function dn({
782
+ function cn({
767
783
  open: t,
768
784
  onOpenChange: r,
769
785
  count: l,
@@ -779,12 +795,12 @@ function dn({
779
795
  "This action cannot be undone."
780
796
  ) }),
781
797
  /* @__PURE__ */ S(m.Footer, { children: [
782
- /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(Z, { type: "button", intent: "outline", children: a("fileManager.dialogs.delete.cancel", "Cancel") }) }),
783
- /* @__PURE__ */ n(Z, { type: "button", intent: "destructive", onClick: i, children: a("fileManager.dialogs.delete.confirm", "Delete") })
798
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: a("fileManager.dialogs.delete.cancel", "Cancel") }) }),
799
+ /* @__PURE__ */ n(X, { type: "button", intent: "destructive", onClick: i, children: a("fileManager.dialogs.delete.confirm", "Delete") })
784
800
  ] })
785
801
  ] }) });
786
802
  }
787
- function cn({
803
+ function un({
788
804
  open: t,
789
805
  onOpenChange: r,
790
806
  items: l,
@@ -796,7 +812,7 @@ function cn({
796
812
  ne(() => {
797
813
  t && x(a);
798
814
  }, [t, a]);
799
- const b = Qt(l, i);
815
+ const b = en(l, i);
800
816
  return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "sm", children: [
801
817
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: c("fileManager.dialogs.move.title", "Move {{count}} items", {
802
818
  count: i.length
@@ -815,9 +831,9 @@ function cn({
815
831
  }
816
832
  ) }) }),
817
833
  /* @__PURE__ */ S(m.Footer, { children: [
818
- /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(Z, { type: "button", intent: "outline", children: c("fileManager.dialogs.move.cancel", "Cancel") }) }),
834
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: c("fileManager.dialogs.move.cancel", "Cancel") }) }),
819
835
  /* @__PURE__ */ n(
820
- Z,
836
+ X,
821
837
  {
822
838
  type: "button",
823
839
  intent: "primary",
@@ -828,7 +844,7 @@ function cn({
828
844
  ] })
829
845
  ] }) });
830
846
  }
831
- const un = {
847
+ const fn = {
832
848
  signed: "success",
833
849
  pending: "warning"
834
850
  };
@@ -836,7 +852,7 @@ function je(t) {
836
852
  return function(l) {
837
853
  const i = l.data;
838
854
  if (!i) return null;
839
- const a = Yt(i), u = !!t && i.id === t;
855
+ const a = Zt(i), u = !!t && i.id === t;
840
856
  return /* @__PURE__ */ S(
841
857
  "span",
842
858
  {
@@ -861,18 +877,18 @@ function je(t) {
861
877
  );
862
878
  };
863
879
  }
864
- function fn(t) {
880
+ function pn(t) {
865
881
  const r = t.data;
866
- return !r || !r.documentType ? null : /* @__PURE__ */ n(Ge, { variant: "neutral", size: "sm", children: r.documentType });
882
+ return !r || !r.documentType ? null : /* @__PURE__ */ n($e, { variant: "neutral", size: "sm", children: r.documentType });
867
883
  }
868
- function pn(t) {
884
+ function mn(t) {
869
885
  return function(l) {
870
886
  var a;
871
887
  const i = (a = l.data) == null ? void 0 : a.signatureStatus;
872
- return !i || i === "none" ? null : /* @__PURE__ */ n(Ge, { variant: un[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
888
+ return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant: fn[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
873
889
  };
874
890
  }
875
- function mn({
891
+ function gn({
876
892
  items: t,
877
893
  selectedIds: r,
878
894
  previewedItemId: l,
@@ -912,7 +928,7 @@ function mn({
912
928
  const B = O(() => {
913
929
  const f = [];
914
930
  if (k && f.push({
915
- icon: /* @__PURE__ */ n($e, {}),
931
+ icon: /* @__PURE__ */ n(Ge, {}),
916
932
  label: o("fileManager.toolbar.download", "Download"),
917
933
  onClick: (d) => k([d.id]),
918
934
  hidden: (d) => d.kind === "folder" || !c(d).download
@@ -937,7 +953,7 @@ function mn({
937
953
  onClick: (d) => x([d.id]),
938
954
  hidden: (d) => !c(d).move
939
955
  }), f.push({
940
- icon: /* @__PURE__ */ n(Xe, {}),
956
+ icon: /* @__PURE__ */ n(Ze, {}),
941
957
  label: o("fileManager.toolbar.delete", "Delete"),
942
958
  onClick: (d) => b([d.id]),
943
959
  variant: "destructive",
@@ -948,16 +964,16 @@ function mn({
948
964
  for (const I of R(h)) {
949
965
  if (d.has(I.id)) continue;
950
966
  d.add(I.id);
951
- const G = I.id;
967
+ const $ = I.id;
952
968
  f.push({
953
969
  icon: I.icon ?? /* @__PURE__ */ n("span", { "aria-hidden": "true" }),
954
970
  label: I.label,
955
971
  onClick: (w) => {
956
972
  var K;
957
- return (K = R(w).find((se) => se.id === G)) == null ? void 0 : K.onSelect(w);
973
+ return (K = R(w).find((de) => de.id === $)) == null ? void 0 : K.onSelect(w);
958
974
  },
959
975
  variant: I.destructive ? "destructive" : "default",
960
- hidden: (w) => !R(w).some((K) => K.id === G)
976
+ hidden: (w) => !R(w).some((K) => K.id === $)
961
977
  });
962
978
  }
963
979
  }
@@ -973,8 +989,8 @@ function mn({
973
989
  b,
974
990
  R,
975
991
  o
976
- ]), $ = O(() => {
977
- const f = pn(o), d = je(l), h = [];
992
+ ]), G = O(() => {
993
+ const f = mn(o), d = je(l), h = [];
978
994
  return M || h.push({
979
995
  colId: "name",
980
996
  field: "name",
@@ -986,7 +1002,7 @@ function mn({
986
1002
  colId: "documentType",
987
1003
  field: "documentType",
988
1004
  headerName: o("fileManager.columns.type", "Type"),
989
- cellRenderer: fn,
1005
+ cellRenderer: pn,
990
1006
  flex: 1,
991
1007
  minWidth: 120
992
1008
  }), g && h.push({
@@ -1001,8 +1017,8 @@ function mn({
1001
1017
  field: "size",
1002
1018
  headerName: o("fileManager.columns.size", "Size"),
1003
1019
  valueFormatter: (I) => {
1004
- var G;
1005
- return ((G = I.data) == null ? void 0 : G.kind) === "file" && I.data.size !== void 0 ? Ut(I.data.size, v.language, o) : o("fileManager.emptyCell", "—");
1020
+ var $;
1021
+ return (($ = I.data) == null ? void 0 : $.kind) === "file" && I.data.size !== void 0 ? Yt(I.data.size, v.language, o) : o("fileManager.emptyCell", "—");
1006
1022
  },
1007
1023
  filter: !1,
1008
1024
  flex: 1,
@@ -1012,8 +1028,8 @@ function mn({
1012
1028
  field: "updatedAt",
1013
1029
  headerName: o("fileManager.columns.modified", "Modified"),
1014
1030
  valueFormatter: (I) => {
1015
- var G;
1016
- return (G = I.data) != null && G.updatedAt ? new Intl.DateTimeFormat(v.language, {
1031
+ var $;
1032
+ return ($ = I.data) != null && $.updatedAt ? new Intl.DateTimeFormat(v.language, {
1017
1033
  dateStyle: "medium"
1018
1034
  }).format(new Date(I.data.updatedAt)) : o("fileManager.emptyCell", "—");
1019
1035
  },
@@ -1057,7 +1073,7 @@ function mn({
1057
1073
  };
1058
1074
  if (M) {
1059
1075
  const d = je(l);
1060
- f.treeData = !0, f.getDataPath = (h) => Zt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1076
+ f.treeData = !0, f.getDataPath = (h) => Jt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1061
1077
  headerName: o("fileManager.columns.name", "Name"),
1062
1078
  flex: 2,
1063
1079
  minWidth: 200,
@@ -1091,7 +1107,7 @@ function mn({
1091
1107
  {
1092
1108
  ref: P,
1093
1109
  gridId: V,
1094
- columnDefs: $,
1110
+ columnDefs: G,
1095
1111
  rowData: t,
1096
1112
  rowSelection: "multiple",
1097
1113
  gridOptions: re,
@@ -1102,7 +1118,7 @@ function mn({
1102
1118
  }
1103
1119
  );
1104
1120
  }
1105
- function gn({
1121
+ function hn({
1106
1122
  selectedIds: t,
1107
1123
  permissions: r,
1108
1124
  onRequestCreateFolder: l,
@@ -1129,7 +1145,7 @@ function gn({
1129
1145
  {
1130
1146
  intent: "primary",
1131
1147
  "data-overflow-pin": !0,
1132
- icon: /* @__PURE__ */ n(Ze, {}),
1148
+ icon: /* @__PURE__ */ n(Xe, {}),
1133
1149
  tooltip: k("fileManager.toolbar.upload", "Upload files"),
1134
1150
  onClick: () => i == null ? void 0 : i()
1135
1151
  }
@@ -1137,7 +1153,7 @@ function gn({
1137
1153
  r.createFolder && /* @__PURE__ */ n(
1138
1154
  Q,
1139
1155
  {
1140
- icon: /* @__PURE__ */ n(Lt, {}),
1156
+ icon: /* @__PURE__ */ n(Vt, {}),
1141
1157
  tooltip: k("fileManager.toolbar.newFolder", "New folder"),
1142
1158
  onClick: l
1143
1159
  }
@@ -1145,7 +1161,7 @@ function gn({
1145
1161
  V.map((W) => /* @__PURE__ */ n(
1146
1162
  Q,
1147
1163
  {
1148
- icon: W.icon ?? /* @__PURE__ */ n(Kt, {}),
1164
+ icon: W.icon ?? /* @__PURE__ */ n(Lt, {}),
1149
1165
  tooltip: W.label,
1150
1166
  onClick: () => W.onSelect()
1151
1167
  },
@@ -1154,7 +1170,7 @@ function gn({
1154
1170
  M && /* @__PURE__ */ n(
1155
1171
  Q,
1156
1172
  {
1157
- icon: /* @__PURE__ */ n($e, {}),
1173
+ icon: /* @__PURE__ */ n(Ge, {}),
1158
1174
  tooltip: k("fileManager.toolbar.download", "Download"),
1159
1175
  disabled: !D,
1160
1176
  onClick: () => x == null ? void 0 : x(t)
@@ -1190,7 +1206,7 @@ function gn({
1190
1206
  r.delete && /* @__PURE__ */ n(
1191
1207
  Q,
1192
1208
  {
1193
- icon: /* @__PURE__ */ n(Xe, {}),
1209
+ icon: /* @__PURE__ */ n(Ze, {}),
1194
1210
  tooltip: k("fileManager.toolbar.delete", "Delete"),
1195
1211
  disabled: !D,
1196
1212
  onClick: () => F(t)
@@ -1219,7 +1235,7 @@ const qe = Ve(
1219
1235
  move: !0,
1220
1236
  delete: !0,
1221
1237
  share: !0
1222
- }, hn = bt(
1238
+ }, yn = bt(
1223
1239
  ({
1224
1240
  id: t,
1225
1241
  items: r,
@@ -1246,7 +1262,7 @@ const qe = Ve(
1246
1262
  addMenuItems: g,
1247
1263
  groupByFolder: E = !1,
1248
1264
  bordered: B,
1249
- className: $
1265
+ className: G
1250
1266
  }, re) => {
1251
1267
  var Be;
1252
1268
  const { t: T, i18n: L } = J(), f = y(
@@ -1255,20 +1271,20 @@ const qe = Ve(
1255
1271
  ), d = O(() => f(), [f]), h = y(
1256
1272
  (e) => f(e),
1257
1273
  [f]
1258
- ), [I, G] = Ct({
1274
+ ), [I, $] = Ct({
1259
1275
  value: i,
1260
1276
  defaultValue: a,
1261
1277
  onChange: u
1262
- }), w = I ?? null, [K, se] = te([]), [C, De] = te({
1278
+ }), w = I ?? null, [K, de] = te([]), [C, De] = te({
1263
1279
  type: "none"
1264
- }), [at, ye] = te(!1), de = ee(0), be = ee(null), ve = ee(null), Re = y((e) => {
1280
+ }), [at, ye] = te(!1), ce = ee(0), be = ee(null), ve = ee(null), Re = y((e) => {
1265
1281
  ve.current && (ve.current.textContent = e);
1266
1282
  }, []), Ie = ee(null), ke = ee(!1), N = O(
1267
1283
  () => new Map(r.map((e) => [e.id, e])),
1268
1284
  [r]
1269
1285
  ), Y = y(
1270
1286
  (e) => {
1271
- se((s) => {
1287
+ de((s) => {
1272
1288
  const p = e.filter((H) => N.has(H));
1273
1289
  return tt(s, p) ? s : (c == null || c(p), p);
1274
1290
  });
@@ -1276,39 +1292,39 @@ const qe = Ve(
1276
1292
  [N, c]
1277
1293
  );
1278
1294
  ne(() => {
1279
- se((e) => {
1295
+ de((e) => {
1280
1296
  const s = e.filter((p) => N.has(p));
1281
1297
  return s.length === e.length ? e : s;
1282
1298
  });
1283
1299
  }, [N]);
1284
- const X = y(
1300
+ const Z = y(
1285
1301
  (e) => {
1286
1302
  var p;
1287
1303
  if (e !== null) {
1288
1304
  const H = N.get(e);
1289
1305
  if (!H || H.kind !== "folder") return;
1290
1306
  }
1291
- G(e), se([]), ke.current = !0;
1307
+ $(e), de([]), ke.current = !0;
1292
1308
  const s = e === null ? T("fileManager.rootLabel", "All files") : ((p = N.get(e)) == null ? void 0 : p.name) ?? "";
1293
1309
  Re(
1294
1310
  T("fileManager.announce.navigated", "Opened {{name}}", { name: s })
1295
1311
  );
1296
1312
  },
1297
- [N, G, Re, T]
1313
+ [N, $, Re, T]
1298
1314
  );
1299
1315
  ne(() => {
1300
1316
  var e;
1301
1317
  ke.current && (ke.current = !1, (e = Ie.current) == null || e.focus());
1302
1318
  }, [w]);
1303
1319
  const ze = v && N.has(v) ? v : w, Me = O(
1304
- () => Jt(r, ze),
1320
+ () => Qt(r, ze),
1305
1321
  [r, ze]
1306
- ), ce = O(
1322
+ ), ue = O(
1307
1323
  () => et(r, w, L.language),
1308
1324
  [r, w, L.language]
1309
1325
  ), it = O(
1310
- () => E ? Xt(r, w, L.language) : ce,
1311
- [E, r, w, L.language, ce]
1326
+ () => E ? Xt(r, w, L.language) : ue,
1327
+ [E, r, w, L.language, ue]
1312
1328
  ), _e = w === null ? T("fileManager.rootLabel", "All files") : ((Be = N.get(w)) == null ? void 0 : Be.name) ?? "", U = y((e) => {
1313
1329
  De((s) => s.type === "none" ? e : s);
1314
1330
  }, []), j = y(() => {
@@ -1363,16 +1379,16 @@ const qe = Ve(
1363
1379
  s.length > 0 && _(s);
1364
1380
  },
1365
1381
  [h, _, N]
1366
- ), ue = y(
1382
+ ), fe = y(
1367
1383
  (e) => {
1368
- e.kind === "folder" ? X(e.id) : b == null || b(e);
1384
+ e.kind === "folder" ? Z(e.id) : b == null || b(e);
1369
1385
  },
1370
- [X, b]
1386
+ [Z, b]
1371
1387
  ), we = y(
1372
1388
  (e) => {
1373
- e.kind === "folder" ? X(e.id) : (Y([e.id]), o == null || o(e));
1389
+ e.kind === "folder" ? Z(e.id) : (Y([e.id]), o == null || o(e));
1374
1390
  },
1375
- [X, Y, o]
1391
+ [Z, Y, o]
1376
1392
  ), lt = y(
1377
1393
  (e) => {
1378
1394
  k == null || k(e, w), j();
@@ -1398,7 +1414,7 @@ const qe = Ve(
1398
1414
  return Array.from(((s = e.dataTransfer) == null ? void 0 : s.types) ?? []).includes("Files");
1399
1415
  }, ft = y(
1400
1416
  (e) => {
1401
- !q || !Se(e) || (e.preventDefault(), de.current += 1, ye(!0));
1417
+ !q || !Se(e) || (e.preventDefault(), ce.current += 1, ye(!0));
1402
1418
  },
1403
1419
  [q]
1404
1420
  ), pt = y(
@@ -1407,10 +1423,10 @@ const qe = Ve(
1407
1423
  },
1408
1424
  [q]
1409
1425
  ), mt = y(() => {
1410
- q && (de.current = Math.max(0, de.current - 1), de.current === 0 && ye(!1));
1426
+ q && (ce.current = Math.max(0, ce.current - 1), ce.current === 0 && ye(!1));
1411
1427
  }, [q]), gt = y(
1412
1428
  (e) => {
1413
- !q || !Se(e) || (e.preventDefault(), de.current = 0, ye(!1), Ce());
1429
+ !q || !Se(e) || (e.preventDefault(), ce.current = 0, ye(!1), Ce());
1414
1430
  },
1415
1431
  [q, Ce]
1416
1432
  ), ht = y(
@@ -1422,8 +1438,8 @@ const qe = Ve(
1422
1438
  e.preventDefault(), me(K);
1423
1439
  else if (e.key === "Enter" && K.length === 1) {
1424
1440
  const p = N.get(K[0]);
1425
- p && (e.preventDefault(), p.kind === "file" && o ? we(p) : ue(p));
1426
- } else e.key.toLowerCase() === "a" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), Y(ce.map((p) => p.id)));
1441
+ p && (e.preventDefault(), p.kind === "file" && o ? we(p) : fe(p));
1442
+ } else e.key.toLowerCase() === "a" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), Y(ue.map((p) => p.id)));
1427
1443
  },
1428
1444
  [
1429
1445
  C.type,
@@ -1431,11 +1447,11 @@ const qe = Ve(
1431
1447
  N,
1432
1448
  ie,
1433
1449
  me,
1434
- ue,
1450
+ fe,
1435
1451
  we,
1436
1452
  o,
1437
1453
  Y,
1438
- ce
1454
+ ue
1439
1455
  ]
1440
1456
  ), ae = ee({
1441
1457
  selectedIds: K,
@@ -1451,14 +1467,14 @@ const qe = Ve(
1451
1467
  };
1452
1468
  const oe = ee({
1453
1469
  setSelection: Y,
1454
- navigateTo: X,
1455
- openItem: ue,
1470
+ navigateTo: Z,
1471
+ openItem: fe,
1456
1472
  requestRename: ie
1457
1473
  });
1458
1474
  oe.current = {
1459
1475
  setSelection: Y,
1460
- navigateTo: X,
1461
- openItem: ue,
1476
+ navigateTo: Z,
1477
+ openItem: fe,
1462
1478
  requestRename: ie
1463
1479
  };
1464
1480
  const xe = O(
@@ -1522,7 +1538,7 @@ const qe = Ve(
1522
1538
  role: "region",
1523
1539
  "aria-label": T("fileManager.regionLabel", "File manager"),
1524
1540
  "aria-busy": "true",
1525
- className: qe({ bordered: B, className: $ }),
1541
+ className: qe({ bordered: B, className: G }),
1526
1542
  children: [
1527
1543
  /* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1528
1544
  /* @__PURE__ */ n(he, { variant: "rectangular", size: "sm", className: "ds:w-24" }),
@@ -1541,7 +1557,7 @@ const qe = Ve(
1541
1557
  }
1542
1558
  );
1543
1559
  const yt = /* @__PURE__ */ n(
1544
- gn,
1560
+ hn,
1545
1561
  {
1546
1562
  selectedIds: K,
1547
1563
  permissions: d,
@@ -1569,7 +1585,7 @@ const qe = Ve(
1569
1585
  onDragOver: q ? pt : void 0,
1570
1586
  onDragLeave: q ? mt : void 0,
1571
1587
  onDrop: q ? gt : void 0,
1572
- className: qe({ bordered: B, className: $ }),
1588
+ className: qe({ bordered: B, className: G }),
1573
1589
  children: [
1574
1590
  /* @__PURE__ */ S("div", { className: "ds:flex ds:min-h-0 ds:items-start ds:gap-[var(--spacing-md)]", children: [
1575
1591
  F && /* @__PURE__ */ n("div", { className: "ds:hidden ds:w-56 ds:shrink-0 ds:md:block", children: /* @__PURE__ */ n(
@@ -1577,7 +1593,7 @@ const qe = Ve(
1577
1593
  {
1578
1594
  items: r,
1579
1595
  selectedFolderId: w,
1580
- onSelectFolder: X,
1596
+ onSelectFolder: Z,
1581
1597
  "aria-label": T("fileManager.treeLabel", "Folders")
1582
1598
  }
1583
1599
  ) }),
@@ -1587,7 +1603,7 @@ const qe = Ve(
1587
1603
  ref: Ie,
1588
1604
  tabIndex: -1,
1589
1605
  className: "ds:min-w-0 ds:flex-1 ds:outline-none",
1590
- children: ce.length === 0 ? /* @__PURE__ */ n(
1606
+ children: ue.length === 0 ? /* @__PURE__ */ n(
1591
1607
  Mt,
1592
1608
  {
1593
1609
  variant: "first-use",
@@ -1605,14 +1621,14 @@ const qe = Ve(
1605
1621
  /* Remount on folder change so the DataTable's column filters
1606
1622
  reset cleanly for the new folder. */
1607
1623
  /* @__PURE__ */ n(
1608
- mn,
1624
+ gn,
1609
1625
  {
1610
1626
  items: it,
1611
1627
  currentFolderId: w,
1612
1628
  selectedIds: K,
1613
1629
  previewedItemId: v ?? null,
1614
1630
  onSelectionChange: Y,
1615
- onOpen: ue,
1631
+ onOpen: fe,
1616
1632
  onRowActivate: we,
1617
1633
  can: h,
1618
1634
  onRequestRename: ie,
@@ -1639,8 +1655,8 @@ const qe = Ve(
1639
1655
  "aria-label": T("fileManager.breadcrumbLabel", "Folder path"),
1640
1656
  disableCollapse: !0,
1641
1657
  children: [
1642
- /* @__PURE__ */ n(He, { children: Me.length === 0 ? /* @__PURE__ */ n(ge, { children: T("fileManager.rootLabel", "All files") }) : /* @__PURE__ */ n(ge, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => X(null), children: T("fileManager.rootLabel", "All files") }) }) }),
1643
- Me.map((e, s) => /* @__PURE__ */ n(He, { children: s === Me.length - 1 ? /* @__PURE__ */ n(ge, { children: e.name }) : /* @__PURE__ */ n(ge, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => X(e.id), children: e.name }) }) }, e.id))
1658
+ /* @__PURE__ */ n(He, { children: Me.length === 0 ? /* @__PURE__ */ n(ge, { children: T("fileManager.rootLabel", "All files") }) : /* @__PURE__ */ n(ge, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => Z(null), children: T("fileManager.rootLabel", "All files") }) }) }),
1659
+ Me.map((e, s) => /* @__PURE__ */ n(He, { children: s === Me.length - 1 ? /* @__PURE__ */ n(ge, { children: e.name }) : /* @__PURE__ */ n(ge, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => Z(e.id), children: e.name }) }) }, e.id))
1644
1660
  ]
1645
1661
  }
1646
1662
  ) }),
@@ -1653,7 +1669,7 @@ const qe = Ve(
1653
1669
  "aria-hidden": "true",
1654
1670
  className: "ds:pointer-events-none ds:absolute ds:inset-0 ds:z-20 ds:flex ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-lg)] ds:border-2 ds:border-dashed ds:border-primary ds:bg-primary/10",
1655
1671
  children: [
1656
- /* @__PURE__ */ n(Ze, { className: "ds:size-8 ds:text-primary" }),
1672
+ /* @__PURE__ */ n(Xe, { className: "ds:size-8 ds:text-primary" }),
1657
1673
  /* @__PURE__ */ n("span", { className: "type-label ds:text-primary", children: T(
1658
1674
  "fileManager.dropOverlay",
1659
1675
  "Drop files to upload to {{folder}}",
@@ -1674,7 +1690,7 @@ const qe = Ve(
1674
1690
  }
1675
1691
  ),
1676
1692
  /* @__PURE__ */ n(
1677
- on,
1693
+ ln,
1678
1694
  {
1679
1695
  open: C.type === "create-folder",
1680
1696
  onOpenChange: (e) => {
@@ -1684,7 +1700,7 @@ const qe = Ve(
1684
1700
  }
1685
1701
  ),
1686
1702
  /* @__PURE__ */ n(
1687
- ln,
1703
+ sn,
1688
1704
  {
1689
1705
  open: C.type === "upload",
1690
1706
  onOpenChange: (e) => {
@@ -1696,7 +1712,7 @@ const qe = Ve(
1696
1712
  }
1697
1713
  ),
1698
1714
  /* @__PURE__ */ n(
1699
- sn,
1715
+ dn,
1700
1716
  {
1701
1717
  open: C.type === "rename",
1702
1718
  onOpenChange: (e) => {
@@ -1707,7 +1723,7 @@ const qe = Ve(
1707
1723
  }
1708
1724
  ),
1709
1725
  /* @__PURE__ */ n(
1710
- dn,
1726
+ cn,
1711
1727
  {
1712
1728
  open: C.type === "delete",
1713
1729
  onOpenChange: (e) => {
@@ -1718,7 +1734,7 @@ const qe = Ve(
1718
1734
  }
1719
1735
  ),
1720
1736
  /* @__PURE__ */ n(
1721
- cn,
1737
+ un,
1722
1738
  {
1723
1739
  open: C.type === "move",
1724
1740
  onOpenChange: (e) => {
@@ -1736,9 +1752,9 @@ const qe = Ve(
1736
1752
  );
1737
1753
  }
1738
1754
  );
1739
- hn.displayName = "FileManager";
1755
+ yn.displayName = "FileManager";
1740
1756
  export {
1741
- hn as F,
1757
+ yn as F,
1742
1758
  Gt as f
1743
1759
  };
1744
- //# sourceMappingURL=file-manager-DJMeB3V8.js.map
1760
+ //# sourceMappingURL=file-manager-spc3_khe.js.map