@alfadocs/ui-kit 1.2.0 → 1.3.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 (62) hide show
  1. package/dist/_chunks/{actions-cell-renderer-ClGCSQnA.js → actions-cell-renderer-Ceah0ywE.js} +2 -2
  2. package/dist/_chunks/anamnesis-i18n-DGRdwc0i.js +8720 -0
  3. package/dist/_chunks/arrow-up-BYvcvTkB.js +26 -0
  4. package/dist/_chunks/{editable-currency-cell-renderer-Dus_sBvX.js → editable-currency-cell-renderer-Uhzkd0ZP.js} +68 -88
  5. package/dist/_chunks/{exceljs.min-DUJ-5CGx.js → exceljs.min-D2MHbJsF.js} +10 -9
  6. package/dist/_chunks/{face-scheme-Cou2efl7.js → face-scheme-C00IvkUA.js} +237 -243
  7. package/dist/_chunks/{file-manager-CNSLiuLo.js → file-manager-lNjcSXoD.js} +174 -186
  8. package/dist/_chunks/minus-BQDHq1c1.js +12 -0
  9. package/dist/_chunks/notebook-pen-CO7HoM-W.js +25 -0
  10. package/dist/_chunks/{notes-panel-CCz0J140.js → notes-panel-DPsgB4Mv.js} +73 -92
  11. package/dist/_chunks/{patient-table-DXk0wW8Q.js → patient-table-C7QHFC63.js} +2 -2
  12. package/dist/_chunks/share-2-B49jcW2I.js +18 -0
  13. package/dist/_chunks/{sparkline-DJtZBe7O.js → sparkline-BTY4B5tv.js} +153 -145
  14. package/dist/agent-catalog.json +1 -1
  15. package/dist/components/data-table/index.js +2 -2
  16. package/dist/components/face-scheme/index.js +1 -1
  17. package/dist/components/file-manager/index.js +1 -1
  18. package/dist/components/index.d.ts +1 -0
  19. package/dist/components/notes-panel/index.d.ts +1 -1
  20. package/dist/components/notes-panel/index.js +1 -1
  21. package/dist/components/patient-table/index.js +1 -1
  22. package/dist/components/sparkline/index.js +1 -1
  23. package/dist/components/sparkline/sparkline.d.ts +5 -4
  24. package/dist/index.js +132 -109
  25. package/dist/patterns/_shared/target-tile.d.ts +31 -0
  26. package/dist/patterns/anamnesis/anamnesis-catalogue.d.ts +23 -0
  27. package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +82 -0
  28. package/dist/patterns/anamnesis/anamnesis-compile-blocks.d.ts +46 -0
  29. package/dist/patterns/anamnesis/anamnesis-compile.d.ts +48 -0
  30. package/dist/patterns/anamnesis/anamnesis-config-editor.d.ts +26 -0
  31. package/dist/patterns/anamnesis/anamnesis-config.d.ts +62 -0
  32. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +194 -0
  33. package/dist/patterns/anamnesis/anamnesis-digest.d.ts +84 -0
  34. package/dist/patterns/anamnesis/anamnesis-disclosure.d.ts +19 -0
  35. package/dist/patterns/anamnesis/anamnesis-event-bar.d.ts +12 -0
  36. package/dist/patterns/anamnesis/anamnesis-events.d.ts +60 -0
  37. package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts +48 -0
  38. package/dist/patterns/anamnesis/anamnesis-evolution.d.ts +37 -0
  39. package/dist/patterns/anamnesis/anamnesis-export-download.d.ts +10 -0
  40. package/dist/patterns/anamnesis/anamnesis-export-menu.d.ts +23 -0
  41. package/dist/patterns/anamnesis/anamnesis-export-pdf.d.ts +36 -0
  42. package/dist/patterns/anamnesis/anamnesis-export.d.ts +143 -0
  43. package/dist/patterns/anamnesis/anamnesis-field.d.ts +14 -0
  44. package/dist/patterns/anamnesis/anamnesis-format.d.ts +67 -0
  45. package/dist/patterns/anamnesis/anamnesis-i18n.d.ts +6 -0
  46. package/dist/patterns/anamnesis/anamnesis-indicators.d.ts +53 -0
  47. package/dist/patterns/anamnesis/anamnesis-intake.d.ts +16 -0
  48. package/dist/patterns/anamnesis/anamnesis-matrix.d.ts +91 -0
  49. package/dist/patterns/anamnesis/anamnesis-notes.d.ts +19 -0
  50. package/dist/patterns/anamnesis/anamnesis-readonly.d.ts +17 -0
  51. package/dist/patterns/anamnesis/anamnesis-summary.d.ts +35 -0
  52. package/dist/patterns/anamnesis/anamnesis-target-editor.d.ts +18 -0
  53. package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts +14 -0
  54. package/dist/patterns/anamnesis/anamnesis-targets.d.ts +58 -0
  55. package/dist/patterns/anamnesis/anamnesis-types.d.ts +336 -0
  56. package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts +35 -0
  57. package/dist/patterns/anamnesis/anamnesis-window.d.ts +37 -0
  58. package/dist/patterns/anamnesis/anamnesis.d.ts +48 -0
  59. package/dist/patterns/anamnesis/index.d.ts +8 -0
  60. package/dist/patterns/anamnesis/index.js +26 -0
  61. package/dist/tokens.css +1 -1
  62. package/package.json +5 -1
@@ -1,4 +1,4 @@
1
- import { jsx as n, jsxs as x } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as S } from "react/jsx-runtime";
2
2
  import { useMemo as O, useState as te, useRef as ee, useEffect as ne, useId as Pe, useCallback as y, forwardRef as bt, useImperativeHandle as vt } from "react";
3
3
  import { c as Ve } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as J } from "react-i18next";
@@ -9,22 +9,23 @@ import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
9
9
  import { u as wt } from "./registry-DvAUVLHh.js";
10
10
  import { B as X } from "./button-CPGiR_bH.js";
11
11
  import { D as m } from "./dialog-UbKJCi1X.js";
12
- import { a as xt, F as St } from "./file-upload-CwxdqkMK.js";
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 ie } 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
- import { A as Rt, d as It, D as Te } from "./actions-cell-renderer-ClGCSQnA.js";
19
+ import { A as Rt, d as It, D as Te } from "./actions-cell-renderer-Ceah0ywE.js";
20
20
  import { B as $e } from "./badge-DCOqV9mI.js";
21
21
  import { D as Ge } from "./download-CfYKJO_j.js";
22
22
  import { P as zt } from "./pen-line-D0De5zdl.js";
23
- import { P as Ue } from "./pencil-B1sKKyuT.js";
24
- import { T as Ye } from "./trash-2-uumy3fy1.js";
23
+ import { S as Ue } from "./share-2-B49jcW2I.js";
24
+ import { P as Ye } from "./pencil-B1sKKyuT.js";
25
+ import { T as Ze } from "./trash-2-uumy3fy1.js";
25
26
  import { I as Q } from "./icon-button-C_kbcd7I.js";
26
27
  import { I as _t } from "./icon-button-group-BLHPN6jg.js";
27
- import { U as Ze } from "./upload-BfT2hzMg.js";
28
+ import { U as Xe } from "./upload-BfT2hzMg.js";
28
29
  import { P as Lt } from "./plus-DzMQ_c6b.js";
29
30
  /**
30
31
  * @license lucide-react v1.22.0 - ISC
@@ -48,7 +49,7 @@ const Kt = [
48
49
  key: "1etmh7"
49
50
  }
50
51
  ]
51
- ], Et = ie("file-headphone", Kt);
52
+ ], Et = se("file-headphone", Kt);
52
53
  /**
53
54
  * @license lucide-react v1.22.0 - ISC
54
55
  *
@@ -71,7 +72,7 @@ const Bt = [
71
72
  key: "1tzo1f"
72
73
  }
73
74
  ]
74
- ], Ht = ie("file-play", Bt);
75
+ ], Ht = se("file-play", Bt);
75
76
  /**
76
77
  * @license lucide-react v1.22.0 - ISC
77
78
  *
@@ -88,14 +89,14 @@ const Ot = [
88
89
  ],
89
90
  ["path", { d: "M2 13h10", key: "pgb2dq" }],
90
91
  ["path", { d: "m9 16 3-3-3-3", key: "6m91ic" }]
91
- ], Xe = ie("folder-input", Ot);
92
+ ], Je = se("folder-input", Ot);
92
93
  /**
93
94
  * @license lucide-react v1.22.0 - ISC
94
95
  *
95
96
  * This source code is licensed under the ISC license.
96
97
  * See the LICENSE file in the root directory of this source tree.
97
98
  */
98
- const qt = [
99
+ const jt = [
99
100
  [
100
101
  "path",
101
102
  {
@@ -103,7 +104,7 @@ const qt = [
103
104
  key: "usdka0"
104
105
  }
105
106
  ]
106
- ], jt = ie("folder-open", qt);
107
+ ], qt = se("folder-open", jt);
107
108
  /**
108
109
  * @license lucide-react v1.22.0 - ISC
109
110
  *
@@ -120,7 +121,7 @@ const Pt = [
120
121
  key: "1kt360"
121
122
  }
122
123
  ]
123
- ], Vt = ie("folder-plus", Pt);
124
+ ], Vt = se("folder-plus", Pt);
124
125
  /**
125
126
  * @license lucide-react v1.22.0 - ISC
126
127
  *
@@ -135,20 +136,7 @@ const Wt = [
135
136
  key: "1kt360"
136
137
  }
137
138
  ]
138
- ], Je = ie("folder", Wt);
139
- /**
140
- * @license lucide-react v1.22.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */
145
- const $t = [
146
- ["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
147
- ["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
148
- ["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
149
- ["line", { x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49", key: "47mynk" }],
150
- ["line", { x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49", key: "1n3mei" }]
151
- ], Qe = ie("share-2", $t), Gt = {
139
+ ], Qe = se("folder", Wt), $t = {
152
140
  type: "array",
153
141
  items: {
154
142
  type: "object",
@@ -172,7 +160,7 @@ const $t = [
172
160
  },
173
161
  required: ["id", "kind", "parentId"]
174
162
  }
175
- }, Ut = {
163
+ }, Gt = {
176
164
  id: "file-manager",
177
165
  // select_multiple → select_items / clear_selection; navigate → navigate;
178
166
  // filter → set_type_filter (proxied to the DataTable's documentType column);
@@ -321,7 +309,7 @@ const $t = [
321
309
  }
322
310
  },
323
311
  returns: "Array<{ id, kind, parentId, size, updatedAt }>",
324
- returnsSchema: Gt,
312
+ returnsSchema: $t,
325
313
  idempotent: !0,
326
314
  descriptionKey: "ui.agent.fileManager.actions.listItems",
327
315
  description: "List structural metadata (ids, kinds, sizes, dates — never names) for a folder or the whole tree.",
@@ -379,24 +367,24 @@ const $t = [
379
367
  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."
380
368
  }
381
369
  }
382
- }, Yt = [
370
+ }, Ut = [
383
371
  "fileManager.units.bytes",
384
372
  "fileManager.units.kilobytes",
385
373
  "fileManager.units.megabytes",
386
374
  "fileManager.units.gigabytes"
387
375
  ], Oe = ["B", "KB", "MB", "GB"];
388
- function Zt(t, r, l) {
376
+ function Yt(t, r, l) {
389
377
  let i = t, a = 0;
390
378
  for (; i >= 1024 && a < Oe.length - 1; )
391
379
  i /= 1024, a++;
392
380
  return `${new Intl.NumberFormat(r, {
393
381
  maximumFractionDigits: a === 0 ? 0 : 1
394
- }).format(i)} ${l(Yt[a], Oe[a])}`;
382
+ }).format(i)} ${l(Ut[a], Oe[a])}`;
395
383
  }
396
- function Xt(t) {
397
- if (t.kind === "folder") return Je;
384
+ function Zt(t) {
385
+ if (t.kind === "folder") return Qe;
398
386
  const r = t.mimeType ?? "";
399
- 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") ? xt : r.includes("spreadsheet") || r.includes("excel") || r === "text/csv" ? At : Tt;
387
+ 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;
400
388
  }
401
389
  function et(t, r, l) {
402
390
  const i = new Intl.Collator(l, {
@@ -405,7 +393,7 @@ function et(t, r, l) {
405
393
  });
406
394
  return t.filter((a) => a.parentId === r).sort((a, u) => a.kind !== u.kind ? a.kind === "folder" ? -1 : 1 : i.compare(a.name, u.name));
407
395
  }
408
- function Jt(t, r, l) {
396
+ function Xt(t, r, l) {
409
397
  const i = /* @__PURE__ */ new Set();
410
398
  for (const c of t)
411
399
  c.parentId === r && i.add(c.id);
@@ -421,7 +409,7 @@ function Jt(t, r, l) {
421
409
  });
422
410
  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));
423
411
  }
424
- function Qt(t, r, l) {
412
+ function Jt(t, r, l) {
425
413
  const i = [];
426
414
  let a = t;
427
415
  const u = /* @__PURE__ */ new Set();
@@ -429,7 +417,7 @@ function Qt(t, r, l) {
429
417
  a = a.parentId === null ? void 0 : r.get(a.parentId);
430
418
  return i;
431
419
  }
432
- function en(t, r) {
420
+ function Qt(t, r) {
433
421
  const l = new Map(t.map((c) => [c.id, c])), i = [];
434
422
  let a = r === null ? void 0 : l.get(r);
435
423
  const u = /* @__PURE__ */ new Set();
@@ -437,7 +425,7 @@ function en(t, r) {
437
425
  u.add(a.id), i.unshift(a), a = a.parentId === null ? void 0 : l.get(a.parentId);
438
426
  return i;
439
427
  }
440
- function tn(t, r) {
428
+ function en(t, r) {
441
429
  const l = new Set(r);
442
430
  let i = !0;
443
431
  for (; i; ) {
@@ -452,7 +440,7 @@ function tt(t, r) {
452
440
  const l = new Set(t);
453
441
  return r.every((i) => l.has(i));
454
442
  }
455
- const pe = "__root__", se = (t) => t ?? pe, nn = Ve(
443
+ const pe = "__root__", le = (t) => t ?? pe, tn = Ve(
456
444
  [
457
445
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
458
446
  "ds:min-h-[var(--min-target-size)] ds:w-full",
@@ -472,24 +460,24 @@ const pe = "__root__", se = (t) => t ?? pe, nn = Ve(
472
460
  defaultVariants: { selected: !1 }
473
461
  }
474
462
  );
475
- function rn(t, r, l) {
463
+ function nn(t, r, l) {
476
464
  const i = (a) => et(t, a, r).filter((u) => u.kind === "folder" && !(l != null && l.has(u.id))).map((u) => ({
477
- key: se(u.id),
465
+ key: le(u.id),
478
466
  folderId: u.id,
479
467
  item: u,
480
468
  children: i(u.id)
481
469
  }));
482
470
  return { key: pe, folderId: null, children: i(null) };
483
471
  }
484
- function an(t, r) {
472
+ function rn(t, r) {
485
473
  const l = [], i = (a) => {
486
474
  l.push(a), r.has(a.key) && a.children.forEach(i);
487
475
  };
488
476
  return i(t), l;
489
477
  }
490
- function on(t) {
478
+ function an(t) {
491
479
  var r;
492
- return t.folderId === null ? null : se(((r = t.item) == null ? void 0 : r.parentId) ?? null);
480
+ return t.folderId === null ? null : le(((r = t.item) == null ? void 0 : r.parentId) ?? null);
493
481
  }
494
482
  function nt({
495
483
  items: t,
@@ -498,12 +486,12 @@ function nt({
498
486
  "aria-label": i,
499
487
  excludeIds: a
500
488
  }) {
501
- const { t: u, i18n: c } = J(), F = c.dir() === "rtl", S = O(
502
- () => rn(t, c.language, a),
489
+ const { t: u, i18n: c } = J(), F = c.dir() === "rtl", x = O(
490
+ () => nn(t, c.language, a),
503
491
  [t, c.language, a]
504
492
  ), [b, k] = te(
505
493
  () => /* @__PURE__ */ new Set([pe])
506
- ), [D, z] = te(se(r)), R = ee(/* @__PURE__ */ new Map());
494
+ ), [D, z] = te(le(r)), R = ee(/* @__PURE__ */ new Map());
507
495
  ne(() => {
508
496
  k((o) => {
509
497
  const v = new Set(o);
@@ -512,13 +500,13 @@ function nt({
512
500
  let g = r ? A.get(r) : void 0;
513
501
  const E = /* @__PURE__ */ new Set();
514
502
  for (; g && !E.has(g.id); )
515
- E.add(g.id), g.parentId !== null && v.add(se(g.parentId)), g = g.parentId === null ? void 0 : A.get(g.parentId);
503
+ E.add(g.id), g.parentId !== null && v.add(le(g.parentId)), g = g.parentId === null ? void 0 : A.get(g.parentId);
516
504
  return v;
517
- }), z(se(r));
505
+ }), z(le(r));
518
506
  }, [r, t]);
519
507
  const M = O(
520
- () => an(S, b),
521
- [S, b]
508
+ () => rn(x, b),
509
+ [x, b]
522
510
  );
523
511
  ne(() => {
524
512
  var o;
@@ -554,7 +542,7 @@ function nt({
554
542
  if (B && G)
555
543
  V(A, !1);
556
544
  else {
557
- const L = on(E);
545
+ const L = an(E);
558
546
  L !== null && _(L);
559
547
  }
560
548
  break;
@@ -575,14 +563,14 @@ function nt({
575
563
  o.preventDefault(), o.stopPropagation();
576
564
  }, W = (o) => {
577
565
  var T;
578
- const v = se(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 ? jt : Je, G = (L) => {
566
+ 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) => {
579
567
  L.stopPropagation(), z(o.key), l(o.folderId), g && V(o.key, !0);
580
568
  }, re = (L) => {
581
569
  L.stopPropagation(), V(o.key);
582
570
  };
583
571
  return (
584
572
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events -- treeitem row; keyboard operation is handled at the role="tree" container via roving tabindex + onKeyDown
585
- /* @__PURE__ */ x(
573
+ /* @__PURE__ */ S(
586
574
  "li",
587
575
  {
588
576
  ref: (L) => {
@@ -602,7 +590,7 @@ function nt({
602
590
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
603
591
  ].join(" "),
604
592
  children: [
605
- /* @__PURE__ */ x("div", { className: nn({ selected: v }), children: [
593
+ /* @__PURE__ */ S("div", { className: tn({ selected: v }), children: [
606
594
  g ? /* @__PURE__ */ n(
607
595
  "span",
608
596
  {
@@ -652,15 +640,15 @@ function nt({
652
640
  onKeyDown: P,
653
641
  className: "ds:m-0 ds:flex ds:flex-col ds:gap-px ds:list-none ds:p-0",
654
642
  "data-testid": "file-manager-tree",
655
- children: W(S)
643
+ children: W(x)
656
644
  }
657
645
  );
658
646
  }
659
- const ln = /[\\/:*?"<>|]/g, Ae = 128;
647
+ const on = /[\\/:*?"<>|]/g, Ae = 128;
660
648
  function rt(t) {
661
- return t.replace(ln, "").slice(0, Ae);
649
+ return t.replace(on, "").slice(0, Ae);
662
650
  }
663
- function sn({
651
+ function ln({
664
652
  open: t,
665
653
  onOpenChange: r,
666
654
  onSubmit: l
@@ -669,15 +657,15 @@ function sn({
669
657
  ne(() => {
670
658
  t && c("");
671
659
  }, [t]);
672
- const F = (S) => {
673
- S.preventDefault();
660
+ const F = (x) => {
661
+ x.preventDefault();
674
662
  const b = u.trim();
675
663
  b.length !== 0 && l(b);
676
664
  };
677
- return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
665
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "sm", children: [
678
666
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: i("fileManager.dialogs.createFolder.title", "New folder") }) }),
679
- /* @__PURE__ */ x("form", { onSubmit: F, children: [
680
- /* @__PURE__ */ x(m.Body, { children: [
667
+ /* @__PURE__ */ S("form", { onSubmit: F, children: [
668
+ /* @__PURE__ */ S(m.Body, { children: [
681
669
  /* @__PURE__ */ n(
682
670
  "label",
683
671
  {
@@ -692,12 +680,12 @@ function sn({
692
680
  id: a,
693
681
  value: u,
694
682
  maxLength: Ae,
695
- onChange: (S) => c(rt(S.target.value)),
683
+ onChange: (x) => c(rt(x.target.value)),
696
684
  autoFocus: !0
697
685
  }
698
686
  )
699
687
  ] }),
700
- /* @__PURE__ */ x(m.Footer, { children: [
688
+ /* @__PURE__ */ S(m.Footer, { children: [
701
689
  /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: i("fileManager.dialogs.createFolder.cancel", "Cancel") }) }),
702
690
  /* @__PURE__ */ n(
703
691
  X,
@@ -712,7 +700,7 @@ function sn({
712
700
  ] })
713
701
  ] }) });
714
702
  }
715
- function dn({
703
+ function sn({
716
704
  open: t,
717
705
  onOpenChange: r,
718
706
  onUpload: l,
@@ -720,12 +708,12 @@ function dn({
720
708
  config: a
721
709
  }) {
722
710
  const { t: u } = J();
723
- return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "md", children: [
711
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "md", children: [
724
712
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: u("fileManager.dialogs.upload.title", "Upload to {{folder}}", {
725
713
  folder: i
726
714
  }) }) }),
727
715
  /* @__PURE__ */ n(m.Body, { children: /* @__PURE__ */ n(
728
- St,
716
+ xt,
729
717
  {
730
718
  variant: "both",
731
719
  multiple: (a == null ? void 0 : a.multiple) ?? !0,
@@ -737,7 +725,7 @@ function dn({
737
725
  /* @__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") }) }) })
738
726
  ] }) });
739
727
  }
740
- function cn({
728
+ function dn({
741
729
  open: t,
742
730
  onOpenChange: r,
743
731
  initialName: l,
@@ -747,15 +735,15 @@ function cn({
747
735
  ne(() => {
748
736
  t && F(l);
749
737
  }, [t, l]);
750
- const S = (b) => {
738
+ const x = (b) => {
751
739
  b.preventDefault();
752
740
  const k = c.trim();
753
741
  k.length !== 0 && i(k);
754
742
  };
755
- return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
743
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "sm", children: [
756
744
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: a("fileManager.dialogs.rename.title", "Rename") }) }),
757
- /* @__PURE__ */ x("form", { onSubmit: S, children: [
758
- /* @__PURE__ */ x(m.Body, { children: [
745
+ /* @__PURE__ */ S("form", { onSubmit: x, children: [
746
+ /* @__PURE__ */ S(m.Body, { children: [
759
747
  /* @__PURE__ */ n(
760
748
  "label",
761
749
  {
@@ -775,7 +763,7 @@ function cn({
775
763
  }
776
764
  )
777
765
  ] }),
778
- /* @__PURE__ */ x(m.Footer, { children: [
766
+ /* @__PURE__ */ S(m.Footer, { children: [
779
767
  /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: a("fileManager.dialogs.rename.cancel", "Cancel") }) }),
780
768
  /* @__PURE__ */ n(
781
769
  X,
@@ -790,14 +778,14 @@ function cn({
790
778
  ] })
791
779
  ] }) });
792
780
  }
793
- function un({
781
+ function cn({
794
782
  open: t,
795
783
  onOpenChange: r,
796
784
  count: l,
797
785
  onConfirm: i
798
786
  }) {
799
787
  const { t: a } = J();
800
- return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", variant: "alert", children: [
788
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "sm", variant: "alert", children: [
801
789
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: a("fileManager.dialogs.delete.title", "Delete {{count}} items?", {
802
790
  count: l
803
791
  }) }) }),
@@ -805,13 +793,13 @@ function un({
805
793
  "fileManager.dialogs.delete.description",
806
794
  "This action cannot be undone."
807
795
  ) }),
808
- /* @__PURE__ */ x(m.Footer, { children: [
796
+ /* @__PURE__ */ S(m.Footer, { children: [
809
797
  /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: a("fileManager.dialogs.delete.cancel", "Cancel") }) }),
810
798
  /* @__PURE__ */ n(X, { type: "button", intent: "destructive", onClick: i, children: a("fileManager.dialogs.delete.confirm", "Delete") })
811
799
  ] })
812
800
  ] }) });
813
801
  }
814
- function fn({
802
+ function un({
815
803
  open: t,
816
804
  onOpenChange: r,
817
805
  items: l,
@@ -819,12 +807,12 @@ function fn({
819
807
  currentFolderId: a,
820
808
  onConfirm: u
821
809
  }) {
822
- const { t: c } = J(), [F, S] = te(a);
810
+ const { t: c } = J(), [F, x] = te(a);
823
811
  ne(() => {
824
- t && S(a);
812
+ t && x(a);
825
813
  }, [t, a]);
826
- const b = tn(l, i);
827
- return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
814
+ const b = en(l, i);
815
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "sm", children: [
828
816
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: c("fileManager.dialogs.move.title", "Move {{count}} items", {
829
817
  count: i.length
830
818
  }) }) }),
@@ -833,7 +821,7 @@ function fn({
833
821
  {
834
822
  items: l,
835
823
  selectedFolderId: F,
836
- onSelectFolder: S,
824
+ onSelectFolder: x,
837
825
  "aria-label": c(
838
826
  "fileManager.dialogs.move.treeLabel",
839
827
  "Destination folder"
@@ -841,7 +829,7 @@ function fn({
841
829
  excludeIds: b
842
830
  }
843
831
  ) }) }),
844
- /* @__PURE__ */ x(m.Footer, { children: [
832
+ /* @__PURE__ */ S(m.Footer, { children: [
845
833
  /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: c("fileManager.dialogs.move.cancel", "Cancel") }) }),
846
834
  /* @__PURE__ */ n(
847
835
  X,
@@ -855,16 +843,16 @@ function fn({
855
843
  ] })
856
844
  ] }) });
857
845
  }
858
- const pn = {
846
+ const fn = {
859
847
  signed: "success",
860
848
  pending: "warning"
861
849
  };
862
- function qe(t) {
850
+ function je(t) {
863
851
  return function(l) {
864
852
  const i = l.data;
865
853
  if (!i) return null;
866
- const a = Xt(i), u = !!t && i.id === t;
867
- return /* @__PURE__ */ x(
854
+ const a = Zt(i), u = !!t && i.id === t;
855
+ return /* @__PURE__ */ S(
868
856
  "span",
869
857
  {
870
858
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:[inline-size:100%] ds:[min-inline-size:0]",
@@ -888,18 +876,18 @@ function qe(t) {
888
876
  );
889
877
  };
890
878
  }
891
- function mn(t) {
879
+ function pn(t) {
892
880
  const r = t.data;
893
881
  return !r || !r.documentType ? null : /* @__PURE__ */ n($e, { variant: "neutral", size: "sm", children: r.documentType });
894
882
  }
895
- function gn(t) {
883
+ function mn(t) {
896
884
  return function(l) {
897
885
  var a;
898
886
  const i = (a = l.data) == null ? void 0 : a.signatureStatus;
899
- return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant: pn[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
887
+ return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant: fn[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
900
888
  };
901
889
  }
902
- function hn({
890
+ function gn({
903
891
  items: t,
904
892
  selectedIds: r,
905
893
  previewedItemId: l,
@@ -908,7 +896,7 @@ function hn({
908
896
  onRowActivate: u,
909
897
  can: c,
910
898
  onRequestRename: F,
911
- onRequestMove: S,
899
+ onRequestMove: x,
912
900
  onRequestDelete: b,
913
901
  onDownload: k,
914
902
  onShare: D,
@@ -949,22 +937,22 @@ function hn({
949
937
  onClick: (d) => z(d),
950
938
  hidden: (d) => d.signatureStatus !== "pending"
951
939
  }), D && f.push({
952
- icon: /* @__PURE__ */ n(Qe, {}),
940
+ icon: /* @__PURE__ */ n(Ue, {}),
953
941
  label: o("fileManager.toolbar.share", "Share"),
954
942
  onClick: (d) => D([d.id]),
955
943
  hidden: (d) => !c(d).share
956
944
  }), f.push({
957
- icon: /* @__PURE__ */ n(Ue, {}),
945
+ icon: /* @__PURE__ */ n(Ye, {}),
958
946
  label: o("fileManager.toolbar.rename", "Rename"),
959
947
  onClick: (d) => F(d.id),
960
948
  hidden: (d) => !c(d).rename
961
949
  }), f.push({
962
- icon: /* @__PURE__ */ n(Xe, {}),
950
+ icon: /* @__PURE__ */ n(Je, {}),
963
951
  label: o("fileManager.toolbar.move", "Move"),
964
- onClick: (d) => S([d.id]),
952
+ onClick: (d) => x([d.id]),
965
953
  hidden: (d) => !c(d).move
966
954
  }), f.push({
967
- icon: /* @__PURE__ */ n(Ye, {}),
955
+ icon: /* @__PURE__ */ n(Ze, {}),
968
956
  label: o("fileManager.toolbar.delete", "Delete"),
969
957
  onClick: (d) => b([d.id]),
970
958
  variant: "destructive",
@@ -996,12 +984,12 @@ function hn({
996
984
  D,
997
985
  z,
998
986
  F,
999
- S,
987
+ x,
1000
988
  b,
1001
989
  R,
1002
990
  o
1003
991
  ]), G = O(() => {
1004
- const f = gn(o), d = qe(l), h = [];
992
+ const f = mn(o), d = je(l), h = [];
1005
993
  return M || h.push({
1006
994
  colId: "name",
1007
995
  field: "name",
@@ -1013,7 +1001,7 @@ function hn({
1013
1001
  colId: "documentType",
1014
1002
  field: "documentType",
1015
1003
  headerName: o("fileManager.columns.type", "Type"),
1016
- cellRenderer: mn,
1004
+ cellRenderer: pn,
1017
1005
  flex: 1,
1018
1006
  minWidth: 120
1019
1007
  }), g && h.push({
@@ -1029,7 +1017,7 @@ function hn({
1029
1017
  headerName: o("fileManager.columns.size", "Size"),
1030
1018
  valueFormatter: (I) => {
1031
1019
  var $;
1032
- return (($ = I.data) == null ? void 0 : $.kind) === "file" && I.data.size !== void 0 ? Zt(I.data.size, v.language, o) : o("fileManager.emptyCell", "—");
1020
+ return (($ = I.data) == null ? void 0 : $.kind) === "file" && I.data.size !== void 0 ? Yt(I.data.size, v.language, o) : o("fileManager.emptyCell", "—");
1033
1021
  },
1034
1022
  filter: !1,
1035
1023
  flex: 1,
@@ -1083,8 +1071,8 @@ function hn({
1083
1071
  }
1084
1072
  };
1085
1073
  if (M) {
1086
- const d = qe(l);
1087
- f.treeData = !0, f.getDataPath = (h) => Qt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1074
+ const d = je(l);
1075
+ f.treeData = !0, f.getDataPath = (h) => Jt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1088
1076
  headerName: o("fileManager.columns.name", "Name"),
1089
1077
  flex: 2,
1090
1078
  minWidth: 200,
@@ -1129,7 +1117,7 @@ function hn({
1129
1117
  }
1130
1118
  );
1131
1119
  }
1132
- function yn({
1120
+ function hn({
1133
1121
  selectedIds: t,
1134
1122
  permissions: r,
1135
1123
  onRequestCreateFolder: l,
@@ -1138,11 +1126,11 @@ function yn({
1138
1126
  onRequestRename: u,
1139
1127
  onRequestMove: c,
1140
1128
  onRequestDelete: F,
1141
- onDownload: S,
1129
+ onDownload: x,
1142
1130
  onShare: b
1143
1131
  }) {
1144
- const { t: k } = J(), D = t.length > 0, z = t.length === 1, R = r.upload && !!i, M = r.download && !!S, _ = r.share && !!b, V = a ?? [];
1145
- return R || r.createFolder || V.length > 0 || M || _ || r.rename || r.move || r.delete ? /* @__PURE__ */ x(
1132
+ const { t: k } = J(), D = t.length > 0, z = t.length === 1, R = r.upload && !!i, M = r.download && !!x, _ = r.share && !!b, V = a ?? [];
1133
+ return R || r.createFolder || V.length > 0 || M || _ || r.rename || r.move || r.delete ? /* @__PURE__ */ S(
1146
1134
  _t,
1147
1135
  {
1148
1136
  role: "toolbar",
@@ -1156,7 +1144,7 @@ function yn({
1156
1144
  {
1157
1145
  intent: "primary",
1158
1146
  "data-overflow-pin": !0,
1159
- icon: /* @__PURE__ */ n(Ze, {}),
1147
+ icon: /* @__PURE__ */ n(Xe, {}),
1160
1148
  tooltip: k("fileManager.toolbar.upload", "Upload files"),
1161
1149
  onClick: () => i == null ? void 0 : i()
1162
1150
  }
@@ -1184,13 +1172,13 @@ function yn({
1184
1172
  icon: /* @__PURE__ */ n(Ge, {}),
1185
1173
  tooltip: k("fileManager.toolbar.download", "Download"),
1186
1174
  disabled: !D,
1187
- onClick: () => S == null ? void 0 : S(t)
1175
+ onClick: () => x == null ? void 0 : x(t)
1188
1176
  }
1189
1177
  ),
1190
1178
  _ && /* @__PURE__ */ n(
1191
1179
  Q,
1192
1180
  {
1193
- icon: /* @__PURE__ */ n(Qe, {}),
1181
+ icon: /* @__PURE__ */ n(Ue, {}),
1194
1182
  tooltip: k("fileManager.toolbar.share", "Share"),
1195
1183
  disabled: !D,
1196
1184
  onClick: () => b == null ? void 0 : b(t)
@@ -1199,7 +1187,7 @@ function yn({
1199
1187
  r.rename && /* @__PURE__ */ n(
1200
1188
  Q,
1201
1189
  {
1202
- icon: /* @__PURE__ */ n(Ue, {}),
1190
+ icon: /* @__PURE__ */ n(Ye, {}),
1203
1191
  tooltip: k("fileManager.toolbar.rename", "Rename"),
1204
1192
  disabled: !z,
1205
1193
  onClick: () => u(t[0])
@@ -1208,7 +1196,7 @@ function yn({
1208
1196
  r.move && /* @__PURE__ */ n(
1209
1197
  Q,
1210
1198
  {
1211
- icon: /* @__PURE__ */ n(Xe, {}),
1199
+ icon: /* @__PURE__ */ n(Je, {}),
1212
1200
  tooltip: k("fileManager.toolbar.move", "Move"),
1213
1201
  disabled: !D,
1214
1202
  onClick: () => c(t)
@@ -1217,7 +1205,7 @@ function yn({
1217
1205
  r.delete && /* @__PURE__ */ n(
1218
1206
  Q,
1219
1207
  {
1220
- icon: /* @__PURE__ */ n(Ye, {}),
1208
+ icon: /* @__PURE__ */ n(Ze, {}),
1221
1209
  tooltip: k("fileManager.toolbar.delete", "Delete"),
1222
1210
  disabled: !D,
1223
1211
  onClick: () => F(t)
@@ -1227,7 +1215,7 @@ function yn({
1227
1215
  }
1228
1216
  ) : null;
1229
1217
  }
1230
- const je = Ve(
1218
+ const qe = Ve(
1231
1219
  "ds:relative ds:flex ds:w-full ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-md)]",
1232
1220
  {
1233
1221
  variants: {
@@ -1246,7 +1234,7 @@ const je = Ve(
1246
1234
  move: !0,
1247
1235
  delete: !0,
1248
1236
  share: !0
1249
- }, bn = bt(
1237
+ }, yn = bt(
1250
1238
  ({
1251
1239
  id: t,
1252
1240
  items: r,
@@ -1256,7 +1244,7 @@ const je = Ve(
1256
1244
  onNavigate: u,
1257
1245
  onSelectionChange: c,
1258
1246
  showTree: F = !1,
1259
- isLoading: S = !1,
1247
+ isLoading: x = !1,
1260
1248
  onOpenFile: b,
1261
1249
  onCreateFolder: k,
1262
1250
  onRenameItem: D,
@@ -1328,23 +1316,23 @@ const je = Ve(
1328
1316
  ke.current && (ke.current = !1, (e = Ie.current) == null || e.focus());
1329
1317
  }, [w]);
1330
1318
  const ze = v && N.has(v) ? v : w, Me = O(
1331
- () => en(r, ze),
1319
+ () => Qt(r, ze),
1332
1320
  [r, ze]
1333
1321
  ), ue = O(
1334
1322
  () => et(r, w, L.language),
1335
1323
  [r, w, L.language]
1336
1324
  ), it = O(
1337
- () => E ? Jt(r, w, L.language) : ue,
1325
+ () => E ? Xt(r, w, L.language) : ue,
1338
1326
  [E, r, w, L.language, ue]
1339
1327
  ), _e = w === null ? T("fileManager.rootLabel", "All files") : ((Be = N.get(w)) == null ? void 0 : Be.name) ?? "", U = y((e) => {
1340
1328
  De((s) => s.type === "none" ? e : s);
1341
- }, []), q = y(() => {
1329
+ }, []), j = y(() => {
1342
1330
  De({ type: "none" });
1343
1331
  }, []), ot = y(() => {
1344
1332
  !d.createFolder || !k || U({ type: "create-folder" });
1345
1333
  }, [d.createFolder, k, U]), Ce = y(() => {
1346
1334
  !d.upload || !P || U({ type: "upload" });
1347
- }, [d.upload, P, U]), oe = y(
1335
+ }, [d.upload, P, U]), ie = y(
1348
1336
  (e) => {
1349
1337
  const s = N.get(e);
1350
1338
  !s || !h(s).rename || !D || U({ type: "rename", itemId: e });
@@ -1402,49 +1390,49 @@ const je = Ve(
1402
1390
  [Z, Y, o]
1403
1391
  ), lt = y(
1404
1392
  (e) => {
1405
- k == null || k(e, w), q();
1393
+ k == null || k(e, w), j();
1406
1394
  },
1407
- [k, w, q]
1395
+ [k, w, j]
1408
1396
  ), st = y(
1409
1397
  (e) => {
1410
- C.type === "rename" && (D == null || D(C.itemId, e)), q();
1398
+ C.type === "rename" && (D == null || D(C.itemId, e)), j();
1411
1399
  },
1412
- [C, D, q]
1400
+ [C, D, j]
1413
1401
  ), dt = y(() => {
1414
- C.type === "delete" && (z == null || z(C.itemIds), Y([])), q();
1415
- }, [C, z, Y, q]), ct = y(
1402
+ C.type === "delete" && (z == null || z(C.itemIds), Y([])), j();
1403
+ }, [C, z, Y, j]), ct = y(
1416
1404
  (e) => {
1417
- C.type === "move" && (R == null || R(C.itemIds, e)), q();
1405
+ C.type === "move" && (R == null || R(C.itemIds, e)), j();
1418
1406
  },
1419
- [C, R, q]
1407
+ [C, R, j]
1420
1408
  ), ut = y(
1421
1409
  (e, s) => P ? P(e, s, w) : Promise.resolve(),
1422
1410
  [P, w]
1423
- ), j = d.upload && !!P, xe = (e) => {
1411
+ ), q = d.upload && !!P, Se = (e) => {
1424
1412
  var s;
1425
1413
  return Array.from(((s = e.dataTransfer) == null ? void 0 : s.types) ?? []).includes("Files");
1426
1414
  }, ft = y(
1427
1415
  (e) => {
1428
- !j || !xe(e) || (e.preventDefault(), ce.current += 1, ye(!0));
1416
+ !q || !Se(e) || (e.preventDefault(), ce.current += 1, ye(!0));
1429
1417
  },
1430
- [j]
1418
+ [q]
1431
1419
  ), pt = y(
1432
1420
  (e) => {
1433
- !j || !xe(e) || e.preventDefault();
1421
+ !q || !Se(e) || e.preventDefault();
1434
1422
  },
1435
- [j]
1423
+ [q]
1436
1424
  ), mt = y(() => {
1437
- j && (ce.current = Math.max(0, ce.current - 1), ce.current === 0 && ye(!1));
1438
- }, [j]), gt = y(
1425
+ q && (ce.current = Math.max(0, ce.current - 1), ce.current === 0 && ye(!1));
1426
+ }, [q]), gt = y(
1439
1427
  (e) => {
1440
- !j || !xe(e) || (e.preventDefault(), ce.current = 0, ye(!1), Ce());
1428
+ !q || !Se(e) || (e.preventDefault(), ce.current = 0, ye(!1), Ce());
1441
1429
  },
1442
- [j, Ce]
1430
+ [q, Ce]
1443
1431
  ), ht = y(
1444
1432
  (e) => {
1445
1433
  if (!(C.type !== "none" || e.target.closest('input, textarea, [contenteditable="true"]')))
1446
1434
  if (e.key === "F2" && K.length === 1)
1447
- e.preventDefault(), oe(K[0]);
1435
+ e.preventDefault(), ie(K[0]);
1448
1436
  else if (e.key === "Delete" && K.length > 0)
1449
1437
  e.preventDefault(), me(K);
1450
1438
  else if (e.key === "Enter" && K.length === 1) {
@@ -1456,7 +1444,7 @@ const je = Ve(
1456
1444
  C.type,
1457
1445
  K,
1458
1446
  N,
1459
- oe,
1447
+ ie,
1460
1448
  me,
1461
1449
  fe,
1462
1450
  we,
@@ -1476,25 +1464,25 @@ const je = Ve(
1476
1464
  items: r,
1477
1465
  activeAction: C
1478
1466
  };
1479
- const le = ee({
1467
+ const oe = ee({
1480
1468
  setSelection: Y,
1481
1469
  navigateTo: Z,
1482
1470
  openItem: fe,
1483
- requestRename: oe
1471
+ requestRename: ie
1484
1472
  });
1485
- le.current = {
1473
+ oe.current = {
1486
1474
  setSelection: Y,
1487
1475
  navigateTo: Z,
1488
1476
  openItem: fe,
1489
- requestRename: oe
1477
+ requestRename: ie
1490
1478
  };
1491
- const Se = O(
1479
+ const xe = O(
1492
1480
  () => ({
1493
1481
  getSelection: () => [...ae.current.selectedIds],
1494
- setSelection: (e) => le.current.setSelection(e),
1495
- clearSelection: () => le.current.setSelection([]),
1482
+ setSelection: (e) => oe.current.setSelection(e),
1483
+ clearSelection: () => oe.current.setSelection([]),
1496
1484
  getCurrentFolderId: () => ae.current.currentFolderId,
1497
- navigateTo: (e) => le.current.navigateTo(e),
1485
+ navigateTo: (e) => oe.current.navigateTo(e),
1498
1486
  getTypeFilter: () => {
1499
1487
  var p;
1500
1488
  const s = (((p = be.current) == null ? void 0 : p.getFilter()) ?? {}).documentType;
@@ -1531,17 +1519,17 @@ const je = Ve(
1531
1519
  },
1532
1520
  openItem: (e) => {
1533
1521
  const s = ae.current.items.find((p) => p.id === e);
1534
- s && le.current.openItem(s);
1522
+ s && oe.current.openItem(s);
1535
1523
  },
1536
- startRename: (e) => le.current.requestRename(e),
1524
+ startRename: (e) => oe.current.requestRename(e),
1537
1525
  getActiveAction: () => ae.current.activeAction.type
1538
1526
  }),
1539
1527
  []
1540
1528
  );
1541
- vt(re, () => Se, [Se]), wt(Ut, Se, t);
1529
+ vt(re, () => xe, [xe]), wt(Gt, xe, t);
1542
1530
  const Ne = C.type === "rename" ? N.get(C.itemId) : void 0;
1543
- if (S)
1544
- return /* @__PURE__ */ x(
1531
+ if (x)
1532
+ return /* @__PURE__ */ S(
1545
1533
  "div",
1546
1534
  {
1547
1535
  "data-component": "file-manager",
@@ -1549,9 +1537,9 @@ const je = Ve(
1549
1537
  role: "region",
1550
1538
  "aria-label": T("fileManager.regionLabel", "File manager"),
1551
1539
  "aria-busy": "true",
1552
- className: je({ bordered: B, className: G }),
1540
+ className: qe({ bordered: B, className: G }),
1553
1541
  children: [
1554
- /* @__PURE__ */ x("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1542
+ /* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1555
1543
  /* @__PURE__ */ n(he, { variant: "rectangular", size: "sm", className: "ds:w-24" }),
1556
1544
  /* @__PURE__ */ n(
1557
1545
  he,
@@ -1568,14 +1556,14 @@ const je = Ve(
1568
1556
  }
1569
1557
  );
1570
1558
  const yt = /* @__PURE__ */ n(
1571
- yn,
1559
+ hn,
1572
1560
  {
1573
1561
  selectedIds: K,
1574
1562
  permissions: d,
1575
1563
  onRequestCreateFolder: ot,
1576
- onRequestUpload: j ? Ce : void 0,
1564
+ onRequestUpload: q ? Ce : void 0,
1577
1565
  addMenuItems: g,
1578
- onRequestRename: oe,
1566
+ onRequestRename: ie,
1579
1567
  onRequestMove: Le,
1580
1568
  onRequestDelete: me,
1581
1569
  onDownload: d.download && M ? Ke : void 0,
@@ -1584,7 +1572,7 @@ const je = Ve(
1584
1572
  );
1585
1573
  return (
1586
1574
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- container-level keyboard shortcuts + drag-and-drop upload; interactive children remain individually operable
1587
- /* @__PURE__ */ x(
1575
+ /* @__PURE__ */ S(
1588
1576
  "div",
1589
1577
  {
1590
1578
  "data-component": "file-manager",
@@ -1592,13 +1580,13 @@ const je = Ve(
1592
1580
  role: "region",
1593
1581
  "aria-label": T("fileManager.regionLabel", "File manager"),
1594
1582
  onKeyDown: ht,
1595
- onDragEnter: j ? ft : void 0,
1596
- onDragOver: j ? pt : void 0,
1597
- onDragLeave: j ? mt : void 0,
1598
- onDrop: j ? gt : void 0,
1599
- className: je({ bordered: B, className: G }),
1583
+ onDragEnter: q ? ft : void 0,
1584
+ onDragOver: q ? pt : void 0,
1585
+ onDragLeave: q ? mt : void 0,
1586
+ onDrop: q ? gt : void 0,
1587
+ className: qe({ bordered: B, className: G }),
1600
1588
  children: [
1601
- /* @__PURE__ */ x("div", { className: "ds:flex ds:min-h-0 ds:items-start ds:gap-[var(--spacing-md)]", children: [
1589
+ /* @__PURE__ */ S("div", { className: "ds:flex ds:min-h-0 ds:items-start ds:gap-[var(--spacing-md)]", children: [
1602
1590
  F && /* @__PURE__ */ n("div", { className: "ds:hidden ds:w-56 ds:shrink-0 ds:md:block", children: /* @__PURE__ */ n(
1603
1591
  nt,
1604
1592
  {
@@ -1632,7 +1620,7 @@ const je = Ve(
1632
1620
  /* Remount on folder change so the DataTable's column filters
1633
1621
  reset cleanly for the new folder. */
1634
1622
  /* @__PURE__ */ n(
1635
- hn,
1623
+ gn,
1636
1624
  {
1637
1625
  items: it,
1638
1626
  currentFolderId: w,
@@ -1642,7 +1630,7 @@ const je = Ve(
1642
1630
  onOpen: fe,
1643
1631
  onRowActivate: we,
1644
1632
  can: h,
1645
- onRequestRename: oe,
1633
+ onRequestRename: ie,
1646
1634
  onRequestMove: Le,
1647
1635
  onRequestDelete: me,
1648
1636
  onDownload: d.download && M ? Ke : void 0,
@@ -1660,7 +1648,7 @@ const je = Ve(
1660
1648
  }
1661
1649
  )
1662
1650
  ] }),
1663
- /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)] ds:text-muted-foreground", children: /* @__PURE__ */ x(
1651
+ /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)] ds:text-muted-foreground", children: /* @__PURE__ */ S(
1664
1652
  kt,
1665
1653
  {
1666
1654
  "aria-label": T("fileManager.breadcrumbLabel", "Folder path"),
@@ -1674,13 +1662,13 @@ const je = Ve(
1674
1662
  /* @__PURE__ */ n("p", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: K.length > 0 ? T("fileManager.selected", "{{count}} items selected", {
1675
1663
  count: K.length
1676
1664
  }) : "" }),
1677
- at && /* @__PURE__ */ x(
1665
+ at && /* @__PURE__ */ S(
1678
1666
  "div",
1679
1667
  {
1680
1668
  "aria-hidden": "true",
1681
1669
  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",
1682
1670
  children: [
1683
- /* @__PURE__ */ n(Ze, { className: "ds:size-8 ds:text-primary" }),
1671
+ /* @__PURE__ */ n(Xe, { className: "ds:size-8 ds:text-primary" }),
1684
1672
  /* @__PURE__ */ n("span", { className: "type-label ds:text-primary", children: T(
1685
1673
  "fileManager.dropOverlay",
1686
1674
  "Drop files to upload to {{folder}}",
@@ -1701,21 +1689,21 @@ const je = Ve(
1701
1689
  }
1702
1690
  ),
1703
1691
  /* @__PURE__ */ n(
1704
- sn,
1692
+ ln,
1705
1693
  {
1706
1694
  open: C.type === "create-folder",
1707
1695
  onOpenChange: (e) => {
1708
- e || q();
1696
+ e || j();
1709
1697
  },
1710
1698
  onSubmit: lt
1711
1699
  }
1712
1700
  ),
1713
1701
  /* @__PURE__ */ n(
1714
- dn,
1702
+ sn,
1715
1703
  {
1716
1704
  open: C.type === "upload",
1717
1705
  onOpenChange: (e) => {
1718
- e || q();
1706
+ e || j();
1719
1707
  },
1720
1708
  onUpload: ut,
1721
1709
  destinationLabel: _e,
@@ -1723,33 +1711,33 @@ const je = Ve(
1723
1711
  }
1724
1712
  ),
1725
1713
  /* @__PURE__ */ n(
1726
- cn,
1714
+ dn,
1727
1715
  {
1728
1716
  open: C.type === "rename",
1729
1717
  onOpenChange: (e) => {
1730
- e || q();
1718
+ e || j();
1731
1719
  },
1732
1720
  initialName: (Ne == null ? void 0 : Ne.name) ?? "",
1733
1721
  onSubmit: st
1734
1722
  }
1735
1723
  ),
1736
1724
  /* @__PURE__ */ n(
1737
- un,
1725
+ cn,
1738
1726
  {
1739
1727
  open: C.type === "delete",
1740
1728
  onOpenChange: (e) => {
1741
- e || q();
1729
+ e || j();
1742
1730
  },
1743
1731
  count: C.type === "delete" ? C.itemIds.length : 0,
1744
1732
  onConfirm: dt
1745
1733
  }
1746
1734
  ),
1747
1735
  /* @__PURE__ */ n(
1748
- fn,
1736
+ un,
1749
1737
  {
1750
1738
  open: C.type === "move",
1751
1739
  onOpenChange: (e) => {
1752
- e || q();
1740
+ e || j();
1753
1741
  },
1754
1742
  items: r,
1755
1743
  movingIds: C.type === "move" ? C.itemIds : [],
@@ -1763,9 +1751,9 @@ const je = Ve(
1763
1751
  );
1764
1752
  }
1765
1753
  );
1766
- bn.displayName = "FileManager";
1754
+ yn.displayName = "FileManager";
1767
1755
  export {
1768
- bn as F,
1769
- Ut as f
1756
+ yn as F,
1757
+ Gt as f
1770
1758
  };
1771
- //# sourceMappingURL=file-manager-CNSLiuLo.js.map
1759
+ //# sourceMappingURL=file-manager-lNjcSXoD.js.map