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