@alfadocs/ui-kit 1.149.1 → 1.150.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 (183) hide show
  1. package/dist/_chunks/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
  2. package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
  3. package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
  4. package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
  5. package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
  6. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
  7. package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
  9. package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-fQleWmJE.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
  11. package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
  12. package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
  13. package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
  14. package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
  15. package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
  16. package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
  18. package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
  19. package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
  20. package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
  21. package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
  22. package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
  23. package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
  24. package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
  25. package/dist/_chunks/folder-CH9PJHou.js +36 -0
  26. package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
  27. package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
  28. package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
  29. package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
  30. package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
  31. package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
  32. package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
  33. package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
  34. package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
  35. package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
  36. package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
  37. package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
  38. package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
  39. package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
  40. package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
  41. package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
  42. package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
  43. package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
  44. package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
  45. package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
  46. package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
  47. package/dist/_chunks/{task-editor-C-4I2sBa.js → task-editor-CIHQQRtP.js} +5 -5
  48. package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
  49. package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
  50. package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
  51. package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
  52. package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
  53. package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
  54. package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
  55. package/dist/agent-catalog.json +15 -1
  56. package/dist/appointment-editor-panel/index.js +4 -4
  57. package/dist/booking-tools-data/index.js +1 -1
  58. package/dist/browser-support.js +1 -1
  59. package/dist/calendar-action-buttons/index.js +1 -1
  60. package/dist/components/_shared/appointment-format.d.ts +4 -0
  61. package/dist/components/_shared/patient-field-row.d.ts +5 -1
  62. package/dist/components/ai-summary-panel/index.js +1 -1
  63. package/dist/components/appointment-card/index.js +2 -2
  64. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
  65. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
  66. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
  67. package/dist/components/appointment-details-panel/index.js +2 -2
  68. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
  69. package/dist/components/appointment-peek/index.js +1 -1
  70. package/dist/components/appointment-timeline/index.js +1 -1
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calls-panel/index.js +1 -1
  73. package/dist/components/care-plan-card/index.js +1 -1
  74. package/dist/components/care-plan-entry-card/index.js +1 -1
  75. package/dist/components/communications-panel/index.js +1 -1
  76. package/dist/components/control-room-rail/index.js +1 -1
  77. package/dist/components/document-preview/index.js +1 -1
  78. package/dist/components/editable-description/editable-description.d.ts +7 -0
  79. package/dist/components/editable-description/index.js +1 -1
  80. package/dist/components/entity-summary/index.js +1 -1
  81. package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
  82. package/dist/components/feature-preview-switch/index.d.ts +2 -0
  83. package/dist/components/feature-preview-switch/index.js +5 -0
  84. package/dist/components/file-manager/index.js +1 -1
  85. package/dist/components/index.d.ts +1 -0
  86. package/dist/components/notes-panel/index.js +1 -1
  87. package/dist/components/notes-panel/notes-panel.d.ts +20 -0
  88. package/dist/components/optical-prescription/index.js +1 -1
  89. package/dist/components/panel-header/index.js +1 -1
  90. package/dist/components/panel-header/panel-header.d.ts +8 -0
  91. package/dist/components/panel-subview/index.js +1 -1
  92. package/dist/components/patient-details/index.js +1 -1
  93. package/dist/components/patient-summary-card/index.js +1 -1
  94. package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
  95. package/dist/components/patient-table/index.js +1 -1
  96. package/dist/components/payment-card/index.js +1 -1
  97. package/dist/components/radiograph-panel/index.js +1 -1
  98. package/dist/components/registry-connection-panel/index.js +1 -1
  99. package/dist/components/reviews-panel/index.js +1 -1
  100. package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
  101. package/dist/components/rich-text-editor/index.js +1 -1
  102. package/dist/components/task-editor/index.js +1 -1
  103. package/dist/components/tasks-panel/index.js +1 -1
  104. package/dist/components/text-area/index.js +1 -1
  105. package/dist/components/text-area/text-area.d.ts +15 -0
  106. package/dist/components/tool-rail/index.js +1 -1
  107. package/dist/components/tool-rail/tool-rail.d.ts +12 -1
  108. package/dist/components/transaction-chip/index.js +1 -1
  109. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  110. package/dist/components/transcript-panel/index.js +1 -1
  111. package/dist/components/treatment-receipt/index.js +1 -1
  112. package/dist/core.css +1 -1
  113. package/dist/find-free-slots-panel/index.js +1 -1
  114. package/dist/host-legacy.css +51 -4
  115. package/dist/i18n/locales/ar.d.ts +9 -0
  116. package/dist/i18n/locales/ar.js +8 -2
  117. package/dist/i18n/locales/de.d.ts +9 -0
  118. package/dist/i18n/locales/de.js +8 -2
  119. package/dist/i18n/locales/el.d.ts +9 -0
  120. package/dist/i18n/locales/el.js +10 -1
  121. package/dist/i18n/locales/en.d.ts +9 -0
  122. package/dist/i18n/locales/en.js +11 -2
  123. package/dist/i18n/locales/es.d.ts +9 -0
  124. package/dist/i18n/locales/es.js +10 -1
  125. package/dist/i18n/locales/fr.d.ts +9 -0
  126. package/dist/i18n/locales/fr.js +10 -1
  127. package/dist/i18n/locales/hi.d.ts +9 -0
  128. package/dist/i18n/locales/hi.js +8 -2
  129. package/dist/i18n/locales/it.d.ts +19 -10
  130. package/dist/i18n/locales/it.js +20 -11
  131. package/dist/i18n/locales/ja.d.ts +9 -0
  132. package/dist/i18n/locales/ja.js +8 -2
  133. package/dist/i18n/locales/nl.d.ts +9 -0
  134. package/dist/i18n/locales/nl.js +8 -2
  135. package/dist/i18n/locales/pl.d.ts +9 -0
  136. package/dist/i18n/locales/pl.js +10 -1
  137. package/dist/i18n/locales/pt.d.ts +9 -0
  138. package/dist/i18n/locales/pt.js +10 -1
  139. package/dist/i18n/locales/ro.d.ts +9 -0
  140. package/dist/i18n/locales/ro.js +10 -1
  141. package/dist/i18n/locales/ru.d.ts +9 -0
  142. package/dist/i18n/locales/ru.js +8 -2
  143. package/dist/i18n/locales/sq.d.ts +9 -0
  144. package/dist/i18n/locales/sq.js +10 -1
  145. package/dist/i18n/locales/sv.d.ts +9 -0
  146. package/dist/i18n/locales/sv.js +8 -2
  147. package/dist/i18n/locales/tr.d.ts +9 -0
  148. package/dist/i18n/locales/tr.js +8 -2
  149. package/dist/i18n/locales/zh.d.ts +9 -0
  150. package/dist/i18n/locales/zh.js +8 -2
  151. package/dist/index.js +775 -773
  152. package/dist/locales/ar.json +10 -1
  153. package/dist/locales/de.json +10 -1
  154. package/dist/locales/el.json +10 -1
  155. package/dist/locales/en.json +11 -2
  156. package/dist/locales/es.json +10 -1
  157. package/dist/locales/fr.json +10 -1
  158. package/dist/locales/hi.json +10 -1
  159. package/dist/locales/it.json +20 -11
  160. package/dist/locales/ja.json +10 -1
  161. package/dist/locales/nl.json +10 -1
  162. package/dist/locales/pl.json +10 -1
  163. package/dist/locales/pt.json +10 -1
  164. package/dist/locales/ro.json +10 -1
  165. package/dist/locales/ru.json +10 -1
  166. package/dist/locales/sq.json +10 -1
  167. package/dist/locales/sv.json +10 -1
  168. package/dist/locales/tr.json +10 -1
  169. package/dist/locales/zh.json +10 -1
  170. package/dist/online-bookings-panel/index.js +2 -2
  171. package/dist/patterns/anamnesis/index.js +1 -1
  172. package/dist/patterns/calendar/index.js +4 -4
  173. package/dist/patterns/help-me-write-templates/index.js +1 -1
  174. package/dist/patterns/patient-account-settings/index.js +1 -1
  175. package/dist/patterns/patient-check-in/index.js +1 -1
  176. package/dist/patterns/patient-portal/index.js +2 -2
  177. package/dist/tokens.css +1 -1
  178. package/dist/waiting-list-panel/index.js +3 -3
  179. package/package.json +5 -1
  180. package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
  181. package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
  182. package/dist/_chunks/folder-BghC8_S2.js +0 -20
  183. package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
@@ -1,42 +1,42 @@
1
1
  import { jsx as n, jsxs as S } from "react/jsx-runtime";
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
- import { c as Ve } from "./index-D2ZczOXr.js";
2
+ import { useMemo as j, useState as te, useRef as ee, useEffect as ne, useId as Pe, useCallback as y, forwardRef as bt, useImperativeHandle as vt } from "react";
3
+ import { c as We } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as J } from "react-i18next";
5
- import { B as kt, b as He, c as ge } from "./breadcrumb-zxa_PNhF.js";
5
+ import { B as kt, b as Oe, c as me } from "./breadcrumb-zxa_PNhF.js";
6
6
  import { E as Mt } from "./empty-state-5REM7oDM.js";
7
- import { S as he } from "./skeleton-tTWJpvAq.js";
7
+ import { S as ge } from "./skeleton-tTWJpvAq.js";
8
8
  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 Z } from "./button-Dp4j9ygh.js";
11
11
  import { D as m } from "./dialog-239Geb7Z.js";
12
12
  import { c as St, F as xt } from "./file-upload-DQc0LsBM.js";
13
- import { S as We } from "./state-backed-text-input-DVETOhSS.js";
14
- import { F as Ge } from "./folder-BghC8_S2.js";
15
- import { F as Nt } from "./file-image-cDgE-BTy.js";
16
- import { c as pe } from "./createLucideIcon-DhHxpK9K.js";
17
- import { F as Ft } from "./file-text-5yv6r2ls.js";
18
- import { F as Tt } from "./file-spreadsheet-DmwyfV4O.js";
19
- import { F as At } from "./file-BuG1VMAy.js";
20
- import { C as Dt } from "./chevron-right-I9AeSxH2.js";
13
+ import { S as Ve } from "./state-backed-text-input-DVETOhSS.js";
14
+ import { a as Ge, F as Nt } from "./folder-CH9PJHou.js";
15
+ import { F as Ft } from "./file-image-cDgE-BTy.js";
16
+ import { c as he } from "./createLucideIcon-DhHxpK9K.js";
17
+ import { F as Tt } from "./file-text-5yv6r2ls.js";
18
+ import { F as At } from "./file-spreadsheet-DmwyfV4O.js";
19
+ import { F as Dt } from "./file-BuG1VMAy.js";
20
+ import { C as Rt } from "./chevron-right-I9AeSxH2.js";
21
21
  import { D as Fe } from "./data-table-DFAYYsSc.js";
22
- import { A as Rt, a as It } from "./actions-cell-renderer-BA1FB6cT.js";
22
+ import { A as It, a as zt } from "./actions-cell-renderer-BA1FB6cT.js";
23
23
  import { B as $e } from "./badge-BUk4RjTS.js";
24
24
  import { D as Ue } from "./download-CfYKJO_j.js";
25
- import { P as zt } from "./pen-line-D0De5zdl.js";
25
+ import { P as _t } from "./pen-line-D0De5zdl.js";
26
26
  import { S as Ye } from "./share-2-B49jcW2I.js";
27
27
  import { P as Xe } from "./pencil-B1sKKyuT.js";
28
28
  import { T as Ze } from "./trash-2-uumy3fy1.js";
29
29
  import { I as Q } from "./icon-button-u9VMQn3x.js";
30
- import { I as _t } from "./icon-button-group-DEAx9M5v.js";
30
+ import { I as Lt } from "./icon-button-group-DEAx9M5v.js";
31
31
  import { U as Je } from "./upload-BfT2hzMg.js";
32
- import { P as Lt } from "./plus-DzMQ_c6b.js";
32
+ import { P as Kt } from "./plus-DzMQ_c6b.js";
33
33
  /**
34
34
  * @license lucide-react v1.22.0 - ISC
35
35
  *
36
36
  * This source code is licensed under the ISC license.
37
37
  * See the LICENSE file in the root directory of this source tree.
38
38
  */
39
- const Kt = [
39
+ const Et = [
40
40
  [
41
41
  "path",
42
42
  {
@@ -52,14 +52,14 @@ const Kt = [
52
52
  key: "1etmh7"
53
53
  }
54
54
  ]
55
- ], Et = pe("file-headphone", Kt);
55
+ ], Bt = he("file-headphone", Et);
56
56
  /**
57
57
  * @license lucide-react v1.22.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
61
  */
62
- const Bt = [
62
+ const Ot = [
63
63
  [
64
64
  "path",
65
65
  {
@@ -75,14 +75,14 @@ const Bt = [
75
75
  key: "1tzo1f"
76
76
  }
77
77
  ]
78
- ], Ht = pe("file-play", Bt);
78
+ ], jt = he("file-play", Ot);
79
79
  /**
80
80
  * @license lucide-react v1.22.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
84
  */
85
- const Ot = [
85
+ const Ht = [
86
86
  [
87
87
  "path",
88
88
  {
@@ -92,29 +92,14 @@ const Ot = [
92
92
  ],
93
93
  ["path", { d: "M2 13h10", key: "pgb2dq" }],
94
94
  ["path", { d: "m9 16 3-3-3-3", key: "6m91ic" }]
95
- ], Qe = pe("folder-input", Ot);
95
+ ], Qe = he("folder-input", Ht);
96
96
  /**
97
97
  * @license lucide-react v1.22.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
101
  */
102
- const jt = [
103
- [
104
- "path",
105
- {
106
- d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
107
- key: "usdka0"
108
- }
109
- ]
110
- ], qt = pe("folder-open", jt);
111
- /**
112
- * @license lucide-react v1.22.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */
117
- const Pt = [
102
+ const qt = [
118
103
  ["path", { d: "M12 10v6", key: "1bos4e" }],
119
104
  ["path", { d: "M9 13h6", key: "1uhe8q" }],
120
105
  [
@@ -124,7 +109,7 @@ const Pt = [
124
109
  key: "1kt360"
125
110
  }
126
111
  ]
127
- ], Vt = pe("folder-plus", Pt), Wt = {
112
+ ], Pt = he("folder-plus", qt), Wt = {
128
113
  type: "array",
129
114
  items: {
130
115
  type: "object",
@@ -148,7 +133,7 @@ const Pt = [
148
133
  },
149
134
  required: ["id", "kind", "parentId"]
150
135
  }
151
- }, Gt = {
136
+ }, Vt = {
152
137
  id: "file-manager",
153
138
  // select_multiple → select_items / clear_selection; navigate → navigate;
154
139
  // filter → set_type_filter (proxied to the DataTable's documentType column);
@@ -355,24 +340,24 @@ const Pt = [
355
340
  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."
356
341
  }
357
342
  }
358
- }, $t = [
343
+ }, Gt = [
359
344
  "fileManager.units.bytes",
360
345
  "fileManager.units.kilobytes",
361
346
  "fileManager.units.megabytes",
362
347
  "fileManager.units.gigabytes"
363
- ], Oe = ["B", "KB", "MB", "GB"];
364
- function Ut(t, r, l) {
348
+ ], je = ["B", "KB", "MB", "GB"];
349
+ function $t(t, r, l) {
365
350
  let i = t, a = 0;
366
- for (; i >= 1024 && a < Oe.length - 1; )
351
+ for (; i >= 1024 && a < je.length - 1; )
367
352
  i /= 1024, a++;
368
353
  return `${new Intl.NumberFormat(r, {
369
354
  maximumFractionDigits: a === 0 ? 0 : 1
370
- }).format(i)} ${l($t[a], Oe[a])}`;
355
+ }).format(i)} ${l(Gt[a], je[a])}`;
371
356
  }
372
- function Yt(t) {
357
+ function Ut(t) {
373
358
  if (t.kind === "folder") return Ge;
374
359
  const r = t.mimeType ?? "";
375
- 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" ? Tt : At;
360
+ return r.startsWith("image/") ? Ft : r.startsWith("audio/") ? Bt : r.startsWith("video/") ? jt : r === "application/pdf" || r.startsWith("text/") || r.includes("word") || r.includes("rtf") ? Tt : r.includes("zip") || r.includes("compressed") || r.includes("tar") ? St : r.includes("spreadsheet") || r.includes("excel") || r === "text/csv" ? At : Dt;
376
361
  }
377
362
  function et(t, r, l) {
378
363
  const i = new Intl.Collator(l, {
@@ -381,7 +366,7 @@ function et(t, r, l) {
381
366
  });
382
367
  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));
383
368
  }
384
- function Xt(t, r, l) {
369
+ function Yt(t, r, l) {
385
370
  const i = /* @__PURE__ */ new Set();
386
371
  for (const c of t)
387
372
  c.parentId === r && i.add(c.id);
@@ -397,7 +382,7 @@ function Xt(t, r, l) {
397
382
  });
398
383
  return t.filter((c) => i.has(c.id)).sort((c, T) => c.kind !== T.kind ? c.kind === "folder" ? -1 : 1 : u.compare(c.name, T.name));
399
384
  }
400
- function Zt(t, r, l) {
385
+ function Xt(t, r, l) {
401
386
  const i = [];
402
387
  let a = t;
403
388
  const u = /* @__PURE__ */ new Set();
@@ -405,7 +390,7 @@ function Zt(t, r, l) {
405
390
  a = a.parentId === null ? void 0 : r.get(a.parentId);
406
391
  return i;
407
392
  }
408
- function Jt(t, r) {
393
+ function Zt(t, r) {
409
394
  const l = new Map(t.map((c) => [c.id, c])), i = [];
410
395
  let a = r === null ? void 0 : l.get(r);
411
396
  const u = /* @__PURE__ */ new Set();
@@ -413,7 +398,7 @@ function Jt(t, r) {
413
398
  u.add(a.id), i.unshift(a), a = a.parentId === null ? void 0 : l.get(a.parentId);
414
399
  return i;
415
400
  }
416
- function Qt(t, r) {
401
+ function Jt(t, r) {
417
402
  const l = new Set(r);
418
403
  let i = !0;
419
404
  for (; i; ) {
@@ -428,7 +413,7 @@ function tt(t, r) {
428
413
  const l = new Set(t);
429
414
  return r.every((i) => l.has(i));
430
415
  }
431
- const fe = "__root__", le = (t) => t ?? fe, en = Ve(
416
+ const fe = "__root__", le = (t) => t ?? fe, Qt = We(
432
417
  [
433
418
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
434
419
  "ds:min-h-[var(--min-target-size)] ds:w-full",
@@ -448,7 +433,7 @@ const fe = "__root__", le = (t) => t ?? fe, en = Ve(
448
433
  defaultVariants: { selected: !1 }
449
434
  }
450
435
  );
451
- function tn(t, r, l) {
436
+ function en(t, r, l) {
452
437
  const i = (a) => et(t, a, r).filter((u) => u.kind === "folder" && !(l != null && l.has(u.id))).map((u) => ({
453
438
  key: le(u.id),
454
439
  folderId: u.id,
@@ -457,13 +442,13 @@ function tn(t, r, l) {
457
442
  }));
458
443
  return { key: fe, folderId: null, children: i(null) };
459
444
  }
460
- function nn(t, r) {
445
+ function tn(t, r) {
461
446
  const l = [], i = (a) => {
462
447
  l.push(a), r.has(a.key) && a.children.forEach(i);
463
448
  };
464
449
  return i(t), l;
465
450
  }
466
- function rn(t) {
451
+ function nn(t) {
467
452
  var r;
468
453
  return t.folderId === null ? null : le(((r = t.item) == null ? void 0 : r.parentId) ?? null);
469
454
  }
@@ -474,8 +459,8 @@ function nt({
474
459
  "aria-label": i,
475
460
  excludeIds: a
476
461
  }) {
477
- const { t: u, i18n: c } = J("ui"), T = c.dir() === "rtl", x = O(
478
- () => tn(t, c.language, a),
462
+ const { t: u, i18n: c } = J("ui"), T = c.dir() === "rtl", x = j(
463
+ () => en(t, c.language, a),
479
464
  [t, c.language, a]
480
465
  ), [b, k] = te(
481
466
  () => /* @__PURE__ */ new Set([fe])
@@ -492,8 +477,8 @@ function nt({
492
477
  return v;
493
478
  }), z(le(r));
494
479
  }, [r, t]);
495
- const M = O(
496
- () => nn(x, b),
480
+ const M = j(
481
+ () => tn(x, b),
497
482
  [x, b]
498
483
  );
499
484
  ne(() => {
@@ -503,7 +488,7 @@ function nt({
503
488
  const _ = (o) => {
504
489
  var v;
505
490
  z(o), (v = R.current.get(o)) == null || v.focus();
506
- }, V = (o, v) => {
491
+ }, W = (o, v) => {
507
492
  k((A) => {
508
493
  const g = new Set(A);
509
494
  return v ?? !g.has(o) ? g.add(o) : g.delete(o), g;
@@ -524,13 +509,13 @@ function nt({
524
509
  g > 0 && _(M[g - 1].key);
525
510
  break;
526
511
  case re:
527
- B && !$ ? V(A, !0) : B && $ && _(E.children[0].key);
512
+ B && !$ ? W(A, !0) : B && $ && _(E.children[0].key);
528
513
  break;
529
514
  case F: {
530
515
  if (B && $)
531
- V(A, !1);
516
+ W(A, !1);
532
517
  else {
533
- const L = rn(E);
518
+ const L = nn(E);
534
519
  L !== null && _(L);
535
520
  }
536
521
  break;
@@ -549,12 +534,12 @@ function nt({
549
534
  return;
550
535
  }
551
536
  o.preventDefault(), o.stopPropagation();
552
- }, W = (o) => {
537
+ }, V = (o) => {
553
538
  var F;
554
- 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") : ((F = o.item) == null ? void 0 : F.name) ?? "", B = A && g ? qt : Ge, $ = (L) => {
555
- L.stopPropagation(), z(o.key), l(o.folderId), g && V(o.key, !0);
539
+ 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") : ((F = o.item) == null ? void 0 : F.name) ?? "", B = A && g ? Nt : Ge, $ = (L) => {
540
+ L.stopPropagation(), z(o.key), l(o.folderId), g && W(o.key, !0);
556
541
  }, re = (L) => {
557
- L.stopPropagation(), V(o.key);
542
+ L.stopPropagation(), W(o.key);
558
543
  };
559
544
  return (
560
545
  // 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
@@ -578,7 +563,7 @@ function nt({
578
563
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
579
564
  ].join(" "),
580
565
  children: [
581
- /* @__PURE__ */ S("div", { className: en({ selected: v }), children: [
566
+ /* @__PURE__ */ S("div", { className: Qt({ selected: v }), children: [
582
567
  g ? /* @__PURE__ */ n(
583
568
  "span",
584
569
  {
@@ -586,7 +571,7 @@ function nt({
586
571
  onClick: re,
587
572
  className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center ds:text-muted-foreground",
588
573
  children: /* @__PURE__ */ n(
589
- Dt,
574
+ Rt,
590
575
  {
591
576
  className: [
592
577
  "ds:size-4",
@@ -611,7 +596,7 @@ function nt({
611
596
  {
612
597
  role: "group",
613
598
  className: "ds:m-0 ds:list-none ds:p-0 ds:ps-[var(--spacing-md)]",
614
- children: o.children.map(W)
599
+ children: o.children.map(V)
615
600
  }
616
601
  )
617
602
  ]
@@ -628,15 +613,15 @@ function nt({
628
613
  onKeyDown: P,
629
614
  className: "ds:m-0 ds:flex ds:flex-col ds:gap-px ds:list-none ds:p-0",
630
615
  "data-testid": "file-manager-tree",
631
- children: W(x)
616
+ children: V(x)
632
617
  }
633
618
  );
634
619
  }
635
- const an = /[\\/:*?"<>|]/g, Ae = 128;
620
+ const rn = /[\\/:*?"<>|]/g, Ae = 128;
636
621
  function rt(t) {
637
- return t.replace(an, "").slice(0, Ae);
622
+ return t.replace(rn, "").slice(0, Ae);
638
623
  }
639
- function on({
624
+ function an({
640
625
  open: t,
641
626
  onOpenChange: r,
642
627
  onSubmit: l
@@ -663,7 +648,7 @@ function on({
663
648
  }
664
649
  ),
665
650
  /* @__PURE__ */ n(
666
- We,
651
+ Ve,
667
652
  {
668
653
  id: a,
669
654
  value: u,
@@ -688,7 +673,7 @@ function on({
688
673
  ] })
689
674
  ] }) });
690
675
  }
691
- function ln({
676
+ function on({
692
677
  open: t,
693
678
  onOpenChange: r,
694
679
  onUpload: l,
@@ -713,7 +698,7 @@ function ln({
713
698
  /* @__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") }) }) })
714
699
  ] }) });
715
700
  }
716
- function sn({
701
+ function ln({
717
702
  open: t,
718
703
  onOpenChange: r,
719
704
  initialName: l,
@@ -741,7 +726,7 @@ function sn({
741
726
  }
742
727
  ),
743
728
  /* @__PURE__ */ n(
744
- We,
729
+ Ve,
745
730
  {
746
731
  id: u,
747
732
  value: c,
@@ -766,7 +751,7 @@ function sn({
766
751
  ] })
767
752
  ] }) });
768
753
  }
769
- function dn({
754
+ function sn({
770
755
  open: t,
771
756
  onOpenChange: r,
772
757
  count: l,
@@ -787,7 +772,7 @@ function dn({
787
772
  ] })
788
773
  ] }) });
789
774
  }
790
- function cn({
775
+ function dn({
791
776
  open: t,
792
777
  onOpenChange: r,
793
778
  items: l,
@@ -799,7 +784,7 @@ function cn({
799
784
  ne(() => {
800
785
  t && x(a);
801
786
  }, [t, a]);
802
- const b = Qt(l, i);
787
+ const b = Jt(l, i);
803
788
  return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ S(m.Content, { size: "sm", children: [
804
789
  /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: c("fileManager.dialogs.move.title", "Move {{count}} items", {
805
790
  count: i.length
@@ -831,15 +816,15 @@ function cn({
831
816
  ] })
832
817
  ] }) });
833
818
  }
834
- const un = {
819
+ const cn = {
835
820
  signed: "success",
836
821
  pending: "warning"
837
822
  };
838
- function je(t) {
823
+ function He(t) {
839
824
  return function(l) {
840
825
  const i = l.data;
841
826
  if (!i) return null;
842
- const a = Yt(i), u = !!t && i.id === t;
827
+ const a = Ut(i), u = !!t && i.id === t;
843
828
  return /* @__PURE__ */ S(
844
829
  "span",
845
830
  {
@@ -864,18 +849,18 @@ function je(t) {
864
849
  );
865
850
  };
866
851
  }
867
- function fn(t) {
852
+ function un(t) {
868
853
  const r = t.data;
869
854
  return !r || !r.documentType ? null : /* @__PURE__ */ n($e, { variant: "neutral", size: "sm", children: r.documentType });
870
855
  }
871
- function pn(t) {
856
+ function fn(t) {
872
857
  return function(l) {
873
858
  var a;
874
859
  const i = (a = l.data) == null ? void 0 : a.signatureStatus;
875
- return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant: un[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
860
+ return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant: cn[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
876
861
  };
877
862
  }
878
- function mn({
863
+ function pn({
879
864
  items: t,
880
865
  selectedIds: r,
881
866
  previewedItemId: l,
@@ -892,19 +877,19 @@ function mn({
892
877
  itemActions: R,
893
878
  groupByFolder: M = !1,
894
879
  currentFolderId: _,
895
- gridId: V,
880
+ gridId: W,
896
881
  tableRef: P,
897
- toolbarActions: W
882
+ toolbarActions: V
898
883
  }) {
899
- const { t: o, i18n: v } = J("ui"), A = O(
884
+ const { t: o, i18n: v } = J("ui"), A = j(
900
885
  () => new Map(t.map((f) => [f.id, f])),
901
886
  [t]
902
- ), g = O(
887
+ ), g = j(
903
888
  () => t.some(
904
889
  (f) => f.signatureStatus && f.signatureStatus !== "none"
905
890
  ),
906
891
  [t]
907
- ), E = O(
892
+ ), E = j(
908
893
  () => t.some((f) => !!f.documentType),
909
894
  [t]
910
895
  );
@@ -912,7 +897,7 @@ function mn({
912
897
  var f;
913
898
  (f = P.current) == null || f.setSelection(r);
914
899
  }, [r, t]);
915
- const B = O(() => {
900
+ const B = j(() => {
916
901
  const f = [];
917
902
  if (k && f.push({
918
903
  icon: /* @__PURE__ */ n(Ue, {}),
@@ -920,7 +905,7 @@ function mn({
920
905
  onClick: (d) => k([d.id]),
921
906
  hidden: (d) => d.kind === "folder" || !c(d).download
922
907
  }), z && f.push({
923
- icon: /* @__PURE__ */ n(zt, {}),
908
+ icon: /* @__PURE__ */ n(_t, {}),
924
909
  label: o("fileManager.toolbar.requestSignature", "Request signature"),
925
910
  onClick: (d) => z(d),
926
911
  hidden: (d) => d.signatureStatus !== "pending"
@@ -976,8 +961,8 @@ function mn({
976
961
  b,
977
962
  R,
978
963
  o
979
- ]), $ = O(() => {
980
- const f = pn(o), d = je(l), h = [];
964
+ ]), $ = j(() => {
965
+ const f = fn(o), d = He(l), h = [];
981
966
  return M || h.push({
982
967
  colId: "name",
983
968
  field: "name",
@@ -989,7 +974,7 @@ function mn({
989
974
  colId: "documentType",
990
975
  field: "documentType",
991
976
  headerName: o("fileManager.columns.type", "Type"),
992
- cellRenderer: fn,
977
+ cellRenderer: un,
993
978
  flex: 1,
994
979
  minWidth: 120
995
980
  }), g && h.push({
@@ -1005,7 +990,7 @@ function mn({
1005
990
  headerName: o("fileManager.columns.size", "Size"),
1006
991
  valueFormatter: (I) => {
1007
992
  var G;
1008
- 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", "—");
993
+ return ((G = I.data) == null ? void 0 : G.kind) === "file" && I.data.size !== void 0 ? $t(I.data.size, v.language, o) : o("fileManager.emptyCell", "—");
1009
994
  },
1010
995
  filter: !1,
1011
996
  flex: 1,
@@ -1026,7 +1011,7 @@ function mn({
1026
1011
  }), B.length > 0 && h.push({
1027
1012
  colId: "actions",
1028
1013
  headerName: o("fileManager.rowActions", "Item actions"),
1029
- cellRenderer: Rt,
1014
+ cellRenderer: It,
1030
1015
  cellRendererParams: {
1031
1016
  actions: B,
1032
1017
  group: !0,
@@ -1035,7 +1020,7 @@ function mn({
1035
1020
  sortable: !1,
1036
1021
  filter: !1,
1037
1022
  resizable: !1,
1038
- width: It(B.length)
1023
+ width: zt(B.length)
1039
1024
  }), h;
1040
1025
  }, [
1041
1026
  B,
@@ -1045,7 +1030,7 @@ function mn({
1045
1030
  M,
1046
1031
  o,
1047
1032
  v.language
1048
- ]), re = O(() => {
1033
+ ]), re = j(() => {
1049
1034
  const f = {
1050
1035
  getRowId: (d) => d.data.id,
1051
1036
  onRowClicked: (d) => {
@@ -1059,8 +1044,8 @@ function mn({
1059
1044
  }
1060
1045
  };
1061
1046
  if (M) {
1062
- const d = je(l);
1063
- f.treeData = !0, f.getDataPath = (h) => Zt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1047
+ const d = He(l);
1048
+ f.treeData = !0, f.getDataPath = (h) => Xt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1064
1049
  headerName: o("fileManager.columns.name", "Name"),
1065
1050
  flex: 2,
1066
1051
  minWidth: 200,
@@ -1093,7 +1078,7 @@ function mn({
1093
1078
  Fe,
1094
1079
  {
1095
1080
  ref: P,
1096
- gridId: V,
1081
+ gridId: W,
1097
1082
  columnDefs: $,
1098
1083
  rowData: t,
1099
1084
  rowSelection: "multiple",
@@ -1101,11 +1086,11 @@ function mn({
1101
1086
  getRowClass: L,
1102
1087
  onSelectionChanged: F,
1103
1088
  heightClass: "ds:h-[420px]",
1104
- children: /* @__PURE__ */ n(Fe.Toolbar, { children: /* @__PURE__ */ n(Fe.Toolbar.Actions, { children: W }) })
1089
+ children: /* @__PURE__ */ n(Fe.Toolbar, { children: /* @__PURE__ */ n(Fe.Toolbar.Actions, { children: V }) })
1105
1090
  }
1106
1091
  );
1107
1092
  }
1108
- function gn({
1093
+ function mn({
1109
1094
  selectedIds: t,
1110
1095
  permissions: r,
1111
1096
  onRequestCreateFolder: l,
@@ -1117,9 +1102,9 @@ function gn({
1117
1102
  onDownload: x,
1118
1103
  onShare: b
1119
1104
  }) {
1120
- const { t: k } = J("ui"), D = t.length > 0, z = t.length === 1, R = r.upload && !!i, M = r.download && !!x, _ = r.share && !!b, V = a ?? [];
1121
- return R || r.createFolder || V.length > 0 || M || _ || r.rename || r.move || r.delete ? /* @__PURE__ */ S(
1122
- _t,
1105
+ const { t: k } = J("ui"), D = t.length > 0, z = t.length === 1, R = r.upload && !!i, M = r.download && !!x, _ = r.share && !!b, W = a ?? [];
1106
+ return R || r.createFolder || W.length > 0 || M || _ || r.rename || r.move || r.delete ? /* @__PURE__ */ S(
1107
+ Lt,
1123
1108
  {
1124
1109
  role: "toolbar",
1125
1110
  overflow: "menu",
@@ -1140,19 +1125,19 @@ function gn({
1140
1125
  r.createFolder && /* @__PURE__ */ n(
1141
1126
  Q,
1142
1127
  {
1143
- icon: /* @__PURE__ */ n(Vt, {}),
1128
+ icon: /* @__PURE__ */ n(Pt, {}),
1144
1129
  tooltip: k("fileManager.toolbar.newFolder", "New folder"),
1145
1130
  onClick: l
1146
1131
  }
1147
1132
  ),
1148
- V.map((W) => /* @__PURE__ */ n(
1133
+ W.map((V) => /* @__PURE__ */ n(
1149
1134
  Q,
1150
1135
  {
1151
- icon: W.icon ?? /* @__PURE__ */ n(Lt, {}),
1152
- tooltip: W.label,
1153
- onClick: () => W.onSelect()
1136
+ icon: V.icon ?? /* @__PURE__ */ n(Kt, {}),
1137
+ tooltip: V.label,
1138
+ onClick: () => V.onSelect()
1154
1139
  },
1155
- W.id
1140
+ V.id
1156
1141
  )),
1157
1142
  M && /* @__PURE__ */ n(
1158
1143
  Q,
@@ -1203,7 +1188,7 @@ function gn({
1203
1188
  }
1204
1189
  ) : null;
1205
1190
  }
1206
- const qe = Ve(
1191
+ const qe = We(
1207
1192
  "ds:relative ds:flex ds:w-full ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-md)]",
1208
1193
  {
1209
1194
  variants: {
@@ -1222,7 +1207,7 @@ const qe = Ve(
1222
1207
  move: !0,
1223
1208
  delete: !0,
1224
1209
  share: !0
1225
- }, hn = bt(
1210
+ }, gn = bt(
1226
1211
  ({
1227
1212
  id: t,
1228
1213
  items: r,
@@ -1240,9 +1225,9 @@ const qe = Ve(
1240
1225
  onMoveItems: R,
1241
1226
  onDownloadItems: M,
1242
1227
  onShare: _,
1243
- onRequestSignature: V,
1228
+ onRequestSignature: W,
1244
1229
  onUpload: P,
1245
- uploadConfig: W,
1230
+ uploadConfig: V,
1246
1231
  onPreviewItem: o,
1247
1232
  previewedItemId: v,
1248
1233
  itemActions: A,
@@ -1255,7 +1240,7 @@ const qe = Ve(
1255
1240
  const { t: F, i18n: L } = J("ui"), f = y(
1256
1241
  (e) => typeof l == "function" ? e ? { ...Te, ...l(e) } : Te : { ...Te, ...l ?? {} },
1257
1242
  [l]
1258
- ), d = O(() => f(), [f]), h = y(
1243
+ ), d = j(() => f(), [f]), h = y(
1259
1244
  (e) => f(e),
1260
1245
  [f]
1261
1246
  ), [I, G] = Ct({
@@ -1266,13 +1251,13 @@ const qe = Ve(
1266
1251
  type: "none"
1267
1252
  }), [at, ye] = te(!1), de = ee(0), be = ee(null), ve = ee(null), Re = y((e) => {
1268
1253
  ve.current && (ve.current.textContent = e);
1269
- }, []), Ie = ee(null), ke = ee(!1), N = O(
1254
+ }, []), Ie = ee(null), ke = ee(!1), N = j(
1270
1255
  () => new Map(r.map((e) => [e.id, e])),
1271
1256
  [r]
1272
1257
  ), Y = y(
1273
1258
  (e) => {
1274
1259
  se((s) => {
1275
- const p = e.filter((H) => N.has(H));
1260
+ const p = e.filter((O) => N.has(O));
1276
1261
  return tt(s, p) ? s : (c == null || c(p), p);
1277
1262
  });
1278
1263
  },
@@ -1288,8 +1273,8 @@ const qe = Ve(
1288
1273
  (e) => {
1289
1274
  var p;
1290
1275
  if (e !== null) {
1291
- const H = N.get(e);
1292
- if (!H || H.kind !== "folder") return;
1276
+ const O = N.get(e);
1277
+ if (!O || O.kind !== "folder") return;
1293
1278
  }
1294
1279
  G(e), se([]), ke.current = !0;
1295
1280
  const s = e === null ? F("fileManager.rootLabel", "All files") : ((p = N.get(e)) == null ? void 0 : p.name) ?? "";
@@ -1303,18 +1288,18 @@ const qe = Ve(
1303
1288
  var e;
1304
1289
  ke.current && (ke.current = !1, (e = Ie.current) == null || e.focus());
1305
1290
  }, [w]);
1306
- const ze = v && N.has(v) ? v : w, Me = O(
1307
- () => Jt(r, ze),
1291
+ const ze = v && N.has(v) ? v : w, Me = j(
1292
+ () => Zt(r, ze),
1308
1293
  [r, ze]
1309
- ), ce = O(
1294
+ ), ce = j(
1310
1295
  () => et(r, w, L.language),
1311
1296
  [r, w, L.language]
1312
- ), it = O(
1313
- () => E ? Xt(r, w, L.language) : ce,
1297
+ ), it = j(
1298
+ () => E ? Yt(r, w, L.language) : ce,
1314
1299
  [E, r, w, L.language, ce]
1315
1300
  ), _e = w === null ? F("fileManager.rootLabel", "All files") : ((Be = N.get(w)) == null ? void 0 : Be.name) ?? "", U = y((e) => {
1316
1301
  De((s) => s.type === "none" ? e : s);
1317
- }, []), j = y(() => {
1302
+ }, []), H = y(() => {
1318
1303
  De({ type: "none" });
1319
1304
  }, []), ot = y(() => {
1320
1305
  !d.createFolder || !k || U({ type: "create-folder" });
@@ -1326,12 +1311,12 @@ const qe = Ve(
1326
1311
  !s || !h(s).rename || !D || U({ type: "rename", itemId: e });
1327
1312
  },
1328
1313
  [h, D, N, U]
1329
- ), me = y(
1314
+ ), pe = y(
1330
1315
  (e) => {
1331
1316
  if (!z || e.length === 0) return;
1332
1317
  const s = e.filter((p) => {
1333
- const H = N.get(p);
1334
- return H ? h(H).delete : !1;
1318
+ const O = N.get(p);
1319
+ return O ? h(O).delete : !1;
1335
1320
  });
1336
1321
  s.length !== 0 && U({ type: "delete", itemIds: s });
1337
1322
  },
@@ -1340,8 +1325,8 @@ const qe = Ve(
1340
1325
  (e) => {
1341
1326
  if (!R || e.length === 0) return;
1342
1327
  const s = e.filter((p) => {
1343
- const H = N.get(p);
1344
- return H ? h(H).move : !1;
1328
+ const O = N.get(p);
1329
+ return O ? h(O).move : !1;
1345
1330
  });
1346
1331
  s.length !== 0 && U({ type: "move", itemIds: s });
1347
1332
  },
@@ -1350,8 +1335,8 @@ const qe = Ve(
1350
1335
  (e) => {
1351
1336
  if (!M || e.length === 0) return;
1352
1337
  const s = e.filter((p) => {
1353
- const H = N.get(p);
1354
- return H ? h(H).download : !1;
1338
+ const O = N.get(p);
1339
+ return O ? h(O).download : !1;
1355
1340
  });
1356
1341
  s.length > 0 && M(s);
1357
1342
  },
@@ -1360,8 +1345,8 @@ const qe = Ve(
1360
1345
  (e) => {
1361
1346
  if (!_ || e.length === 0) return;
1362
1347
  const s = e.filter((p) => {
1363
- const H = N.get(p);
1364
- return H ? h(H).share : !1;
1348
+ const O = N.get(p);
1349
+ return O ? h(O).share : !1;
1365
1350
  });
1366
1351
  s.length > 0 && _(s);
1367
1352
  },
@@ -1378,21 +1363,21 @@ const qe = Ve(
1378
1363
  [X, Y, o]
1379
1364
  ), lt = y(
1380
1365
  (e) => {
1381
- k == null || k(e, w), j();
1366
+ k == null || k(e, w), H();
1382
1367
  },
1383
- [k, w, j]
1368
+ [k, w, H]
1384
1369
  ), st = y(
1385
1370
  (e) => {
1386
- C.type === "rename" && (D == null || D(C.itemId, e)), j();
1371
+ C.type === "rename" && (D == null || D(C.itemId, e)), H();
1387
1372
  },
1388
- [C, D, j]
1373
+ [C, D, H]
1389
1374
  ), dt = y(() => {
1390
- C.type === "delete" && (z == null || z(C.itemIds), Y([])), j();
1391
- }, [C, z, Y, j]), ct = y(
1375
+ C.type === "delete" && (z == null || z(C.itemIds), Y([])), H();
1376
+ }, [C, z, Y, H]), ct = y(
1392
1377
  (e) => {
1393
- C.type === "move" && (R == null || R(C.itemIds, e)), j();
1378
+ C.type === "move" && (R == null || R(C.itemIds, e)), H();
1394
1379
  },
1395
- [C, R, j]
1380
+ [C, R, H]
1396
1381
  ), ut = y(
1397
1382
  (e, s) => P ? P(e, s, w) : Promise.resolve(),
1398
1383
  [P, w]
@@ -1422,7 +1407,7 @@ const qe = Ve(
1422
1407
  if (e.key === "F2" && K.length === 1)
1423
1408
  e.preventDefault(), ie(K[0]);
1424
1409
  else if (e.key === "Delete" && K.length > 0)
1425
- e.preventDefault(), me(K);
1410
+ e.preventDefault(), pe(K);
1426
1411
  else if (e.key === "Enter" && K.length === 1) {
1427
1412
  const p = N.get(K[0]);
1428
1413
  p && (e.preventDefault(), p.kind === "file" && o ? we(p) : ue(p));
@@ -1433,7 +1418,7 @@ const qe = Ve(
1433
1418
  K,
1434
1419
  N,
1435
1420
  ie,
1436
- me,
1421
+ pe,
1437
1422
  ue,
1438
1423
  we,
1439
1424
  o,
@@ -1464,7 +1449,7 @@ const qe = Ve(
1464
1449
  openItem: ue,
1465
1450
  requestRename: ie
1466
1451
  };
1467
- const xe = O(
1452
+ const xe = j(
1468
1453
  () => ({
1469
1454
  getSelection: () => [...ae.current.selectedIds],
1470
1455
  setSelection: (e) => oe.current.setSelection(e),
@@ -1514,7 +1499,7 @@ const qe = Ve(
1514
1499
  }),
1515
1500
  []
1516
1501
  );
1517
- vt(re, () => xe, [xe]), wt(Gt, xe, t);
1502
+ vt(re, () => xe, [xe]), wt(Vt, xe, t);
1518
1503
  const Ne = C.type === "rename" ? N.get(C.itemId) : void 0;
1519
1504
  if (x)
1520
1505
  return /* @__PURE__ */ S(
@@ -1528,9 +1513,9 @@ const qe = Ve(
1528
1513
  className: qe({ bordered: B, className: $ }),
1529
1514
  children: [
1530
1515
  /* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1531
- /* @__PURE__ */ n(he, { variant: "rectangular", size: "sm", className: "ds:w-24" }),
1516
+ /* @__PURE__ */ n(ge, { variant: "rectangular", size: "sm", className: "ds:w-24" }),
1532
1517
  /* @__PURE__ */ n(
1533
- he,
1518
+ ge,
1534
1519
  {
1535
1520
  variant: "rectangular",
1536
1521
  size: "sm",
@@ -1538,13 +1523,13 @@ const qe = Ve(
1538
1523
  }
1539
1524
  )
1540
1525
  ] }),
1541
- /* @__PURE__ */ n(he, { variant: "text", size: "sm", className: "ds:w-40" }),
1542
- /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [0, 1, 2, 3, 4].map((e) => /* @__PURE__ */ n(he, { variant: "rectangular", size: "sm" }, e)) })
1526
+ /* @__PURE__ */ n(ge, { variant: "text", size: "sm", className: "ds:w-40" }),
1527
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [0, 1, 2, 3, 4].map((e) => /* @__PURE__ */ n(ge, { variant: "rectangular", size: "sm" }, e)) })
1543
1528
  ]
1544
1529
  }
1545
1530
  );
1546
1531
  const yt = /* @__PURE__ */ n(
1547
- gn,
1532
+ mn,
1548
1533
  {
1549
1534
  selectedIds: K,
1550
1535
  permissions: d,
@@ -1553,7 +1538,7 @@ const qe = Ve(
1553
1538
  addMenuItems: g,
1554
1539
  onRequestRename: ie,
1555
1540
  onRequestMove: Le,
1556
- onRequestDelete: me,
1541
+ onRequestDelete: pe,
1557
1542
  onDownload: d.download && M ? Ke : void 0,
1558
1543
  onShare: d.share && _ ? Ee : void 0
1559
1544
  }
@@ -1608,7 +1593,7 @@ const qe = Ve(
1608
1593
  /* Remount on folder change so the DataTable's column filters
1609
1594
  reset cleanly for the new folder. */
1610
1595
  /* @__PURE__ */ n(
1611
- mn,
1596
+ pn,
1612
1597
  {
1613
1598
  items: it,
1614
1599
  currentFolderId: w,
@@ -1620,10 +1605,10 @@ const qe = Ve(
1620
1605
  can: h,
1621
1606
  onRequestRename: ie,
1622
1607
  onRequestMove: Le,
1623
- onRequestDelete: me,
1608
+ onRequestDelete: pe,
1624
1609
  onDownload: d.download && M ? Ke : void 0,
1625
1610
  onShare: d.share && _ ? Ee : void 0,
1626
- onRequestSignature: V,
1611
+ onRequestSignature: W,
1627
1612
  itemActions: A,
1628
1613
  groupByFolder: E,
1629
1614
  gridId: t ? `${t}-list` : void 0,
@@ -1642,8 +1627,8 @@ const qe = Ve(
1642
1627
  "aria-label": F("fileManager.breadcrumbLabel", "Folder path"),
1643
1628
  disableCollapse: !0,
1644
1629
  children: [
1645
- /* @__PURE__ */ n(He, { children: Me.length === 0 ? /* @__PURE__ */ n(ge, { children: F("fileManager.rootLabel", "All files") }) : /* @__PURE__ */ n(ge, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => X(null), children: F("fileManager.rootLabel", "All files") }) }) }),
1646
- 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))
1630
+ /* @__PURE__ */ n(Oe, { children: Me.length === 0 ? /* @__PURE__ */ n(me, { children: F("fileManager.rootLabel", "All files") }) : /* @__PURE__ */ n(me, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => X(null), children: F("fileManager.rootLabel", "All files") }) }) }),
1631
+ Me.map((e, s) => /* @__PURE__ */ n(Oe, { children: s === Me.length - 1 ? /* @__PURE__ */ n(me, { children: e.name }) : /* @__PURE__ */ n(me, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => X(e.id), children: e.name }) }) }, e.id))
1647
1632
  ]
1648
1633
  }
1649
1634
  ) }),
@@ -1677,55 +1662,55 @@ const qe = Ve(
1677
1662
  }
1678
1663
  ),
1679
1664
  /* @__PURE__ */ n(
1680
- on,
1665
+ an,
1681
1666
  {
1682
1667
  open: C.type === "create-folder",
1683
1668
  onOpenChange: (e) => {
1684
- e || j();
1669
+ e || H();
1685
1670
  },
1686
1671
  onSubmit: lt
1687
1672
  }
1688
1673
  ),
1689
1674
  /* @__PURE__ */ n(
1690
- ln,
1675
+ on,
1691
1676
  {
1692
1677
  open: C.type === "upload",
1693
1678
  onOpenChange: (e) => {
1694
- e || j();
1679
+ e || H();
1695
1680
  },
1696
1681
  onUpload: ut,
1697
1682
  destinationLabel: _e,
1698
- config: W
1683
+ config: V
1699
1684
  }
1700
1685
  ),
1701
1686
  /* @__PURE__ */ n(
1702
- sn,
1687
+ ln,
1703
1688
  {
1704
1689
  open: C.type === "rename",
1705
1690
  onOpenChange: (e) => {
1706
- e || j();
1691
+ e || H();
1707
1692
  },
1708
1693
  initialName: (Ne == null ? void 0 : Ne.name) ?? "",
1709
1694
  onSubmit: st
1710
1695
  }
1711
1696
  ),
1712
1697
  /* @__PURE__ */ n(
1713
- dn,
1698
+ sn,
1714
1699
  {
1715
1700
  open: C.type === "delete",
1716
1701
  onOpenChange: (e) => {
1717
- e || j();
1702
+ e || H();
1718
1703
  },
1719
1704
  count: C.type === "delete" ? C.itemIds.length : 0,
1720
1705
  onConfirm: dt
1721
1706
  }
1722
1707
  ),
1723
1708
  /* @__PURE__ */ n(
1724
- cn,
1709
+ dn,
1725
1710
  {
1726
1711
  open: C.type === "move",
1727
1712
  onOpenChange: (e) => {
1728
- e || j();
1713
+ e || H();
1729
1714
  },
1730
1715
  items: r,
1731
1716
  movingIds: C.type === "move" ? C.itemIds : [],
@@ -1739,9 +1724,9 @@ const qe = Ve(
1739
1724
  );
1740
1725
  }
1741
1726
  );
1742
- hn.displayName = "FileManager";
1727
+ gn.displayName = "FileManager";
1743
1728
  export {
1744
- hn as F,
1745
- Gt as f
1729
+ gn as F,
1730
+ Vt as f
1746
1731
  };
1747
- //# sourceMappingURL=file-manager-Cp3Z4VvM.js.map
1732
+ //# sourceMappingURL=file-manager-DzOCQBAO.js.map