@alfadocs/ui-kit-debug 0.72.2 → 0.75.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 (687) hide show
  1. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js +1546 -0
  2. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js.map +1 -0
  3. package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
  4. package/dist/_chunks/{agenda-tray-loL2A3Cx.js.map → agenda-tray-CVf-jfWU.js.map} +1 -1
  5. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
  6. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js.map → ai-consent-banner-DUhr1yNj.js.map} +1 -1
  7. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DziJCGLe.js} +3 -3
  8. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js.map → ai-prompt-input-DziJCGLe.js.map} +1 -1
  9. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
  10. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js.map → alia-sidebar-w6B0TEx7.js.map} +1 -1
  11. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
  12. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js.map → anamnesis-card-CJ5MNbkc.js.map} +1 -1
  13. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
  14. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js.map → antenatal-schedule-timeline-BzJZqS-8.js.map} +1 -1
  15. package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
  16. package/dist/_chunks/{appointment-card-Cy4FOkGP.js.map → appointment-card-DgKI5QKD.js.map} +1 -1
  17. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
  18. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js.map → appointment-timeline-DQTG0btW.js.map} +1 -1
  19. package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
  20. package/dist/_chunks/{appointment-tray-D3mk04TT.js.map → appointment-tray-ezyCZN8v.js.map} +1 -1
  21. package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
  22. package/dist/_chunks/{ar-BOqyIfoY.js.map → ar-B1GhtlBP.js.map} +1 -1
  23. package/dist/_chunks/{columns-2-8lq4-b8e.js → arrow-up-right-C2v_MKsK.js} +5 -5
  24. package/dist/_chunks/arrow-up-right-C2v_MKsK.js.map +1 -0
  25. package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-Cc3KuL9y.js} +4 -4
  26. package/dist/_chunks/{audio-recorder-BbjG55dP.js.map → audio-recorder-Cc3KuL9y.js.map} +1 -1
  27. package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
  28. package/dist/_chunks/benefit-card-DB1Kdrmc.js.map +1 -0
  29. package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-DDW5-gb9.js} +3 -3
  30. package/dist/_chunks/{bishop-score-C6eoak_j.js.map → bishop-score-DDW5-gb9.js.map} +1 -1
  31. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
  32. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js.map → bmi-calculator-Bk2GAju7.js.map} +1 -1
  33. package/dist/_chunks/{booking-B62CMY5k.js → booking-B1Qkcl3c.js} +9 -9
  34. package/dist/_chunks/{booking-B62CMY5k.js.map → booking-B1Qkcl3c.js.map} +1 -1
  35. package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
  36. package/dist/_chunks/button-CPGiR_bH.js.map +1 -0
  37. package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
  38. package/dist/_chunks/button-group-DzV5wgnx.js.map +1 -0
  39. package/dist/_chunks/camera-VSklPDCv.js +21 -0
  40. package/dist/_chunks/camera-VSklPDCv.js.map +1 -0
  41. package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-BrwhyIJI.js} +3 -3
  42. package/dist/_chunks/{care-plan-card-DhXbfGzE.js.map → care-plan-card-BrwhyIJI.js.map} +1 -1
  43. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-DWEdCQM3.js} +3 -3
  44. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js.map → care-plan-entry-card-DWEdCQM3.js.map} +1 -1
  45. package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
  46. package/dist/_chunks/{care-plan-header-DtQxyfOb.js.map → care-plan-header-BXvRpGG8.js.map} +1 -1
  47. package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
  48. package/dist/_chunks/{carousel.agent-j7hWxJWr.js.map → carousel.agent-CtAAdsAd.js.map} +1 -1
  49. package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
  50. package/dist/_chunks/{chat-container-BVCoN06N.js.map → chat-container-HlFnoEIl.js.map} +1 -1
  51. package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
  52. package/dist/_chunks/{chat-input-Btq_uuMZ.js.map → chat-input-BTCDqUDX.js.map} +1 -1
  53. package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
  54. package/dist/_chunks/{chat-message-DXjjM8z9.js.map → chat-message-CdjWqZjo.js.map} +1 -1
  55. package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
  56. package/dist/_chunks/{code-block-Cwi7e3HM.js.map → code-block-BwanBjRh.js.map} +1 -1
  57. package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
  58. package/dist/_chunks/{connection-status-0HajXMXM.js.map → connection-status-oEUyrvev.js.map} +1 -1
  59. package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
  60. package/dist/_chunks/{contact-profile-card-IggiUVpN.js.map → contact-profile-card-veMV3W4J.js.map} +1 -1
  61. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
  62. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js.map → control-room-rail-CdfrZ6Vr.js.map} +1 -1
  63. package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
  64. package/dist/_chunks/{copy-field-PAp0-Wr5.js.map → copy-field-DBc9QquW.js.map} +1 -1
  65. package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
  66. package/dist/_chunks/{cycle-calculator-BNILyVas.js.map → cycle-calculator-OQp8Ik5U.js.map} +1 -1
  67. package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
  68. package/dist/_chunks/data-table-tabs-BEUXiRlu.js.map +1 -0
  69. package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
  70. package/dist/_chunks/{date-picker-CVkD_lOi.js.map → date-picker-DzQS8mvt.js.map} +1 -1
  71. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
  72. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js.map → date-picker-variants-CYQAm1Gk.js.map} +1 -1
  73. package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
  74. package/dist/_chunks/{date-range-picker-Dw12DgV8.js.map → date-range-picker-Cbz1SKhm.js.map} +1 -1
  75. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
  76. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js.map → date-time-picker-B5IpU-nd.js.map} +1 -1
  77. package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
  78. package/dist/_chunks/{de-DFLsUxeV.js.map → de-DETDHQ0o.js.map} +1 -1
  79. package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
  80. package/dist/_chunks/{description-list-CmBVxIF5.js.map → description-list-ClNLdRMy.js.map} +1 -1
  81. package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
  82. package/dist/_chunks/document-preview-CGSM_au9.js.map +1 -0
  83. package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-B6h1Ir56.js} +198 -230
  84. package/dist/_chunks/document-scanner-B6h1Ir56.js.map +1 -0
  85. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
  86. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js.map → due-date-calculator-DASNRgnH.js.map} +1 -1
  87. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
  88. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js.map → editable-currency-cell-renderer-GwfA9tTR.js.map} +1 -1
  89. package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
  90. package/dist/_chunks/{editor-overlay-BIOzr8v7.js.map → editor-overlay-DE3esyio.js.map} +1 -1
  91. package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
  92. package/dist/_chunks/{el-OVjBKytp.js.map → el-HV3jOI0z.js.map} +1 -1
  93. package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
  94. package/dist/_chunks/{empty-state-BLy7tigq.js.map → empty-state-CrLsi0XI.js.map} +1 -1
  95. package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
  96. package/dist/_chunks/{entity-summary-DpGziDv5.js.map → entity-summary--vP698Jn.js.map} +1 -1
  97. package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
  98. package/dist/_chunks/eraser-CHOGQfVv.js.map +1 -0
  99. package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
  100. package/dist/_chunks/{es-DKDNrHXG.js.map → es-Dpo7Olwo.js.map} +1 -1
  101. package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
  102. package/dist/_chunks/face-scheme-C0rk21gg.js.map +1 -0
  103. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
  104. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js.map → fetal-weight-1F9N4IMx.js.map} +1 -1
  105. package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
  106. package/dist/_chunks/{field-array-CDzc3hTM.js.map → field-array-DH3Mb1i8.js.map} +1 -1
  107. package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DHG6gEKS.js} +5 -5
  108. package/dist/_chunks/{field-value-Dj3i52H2.js.map → field-value-DHG6gEKS.js.map} +1 -1
  109. package/dist/_chunks/file-Cwe9VC1A.js +40 -0
  110. package/dist/_chunks/file-Cwe9VC1A.js.map +1 -0
  111. package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
  112. package/dist/_chunks/file-manager-UF8dkQF1.js.map +1 -0
  113. package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-DENvuhfs.js} +101 -139
  114. package/dist/_chunks/file-upload-DENvuhfs.js.map +1 -0
  115. package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
  116. package/dist/_chunks/finished-terminal-C0_mefrf.js.map +1 -0
  117. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
  118. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js.map → fiscal-code-input-DWA6C8x8.js.map} +1 -1
  119. package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
  120. package/dist/_chunks/{fr-BfMvQh-v.js.map → fr-CgD4Jvtq.js.map} +1 -1
  121. package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
  122. package/dist/_chunks/freemium-paywall-CmV642PA.js.map +1 -0
  123. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-BpYw-WF-.js} +7 -7
  124. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js.map → gestational-age-calculator-BpYw-WF-.js.map} +1 -1
  125. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
  126. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js.map → hcg-doubling-Dqj-EqMT.js.map} +1 -1
  127. package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
  128. package/dist/_chunks/header-CjwasYnn.js.map +1 -0
  129. package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-4cwQzeFc.js} +4 -4
  130. package/dist/_chunks/{header-settings-B0G_u-wV.js.map → header-settings-4cwQzeFc.js.map} +1 -1
  131. package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
  132. package/dist/_chunks/{hi-C0GEMwlD.js.map → hi-Bf8CAP6b.js.map} +1 -1
  133. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  134. package/dist/_chunks/highlighter-DSkckT2Q.js.map +1 -0
  135. package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
  136. package/dist/_chunks/{icon-button-LqoiKcUN.js.map → icon-button-C_kbcd7I.js.map} +1 -1
  137. package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
  138. package/dist/_chunks/icon-button-group-C_lqXTAj.js.map +1 -0
  139. package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-CM9ubkew.js} +3 -3
  140. package/dist/_chunks/{icon-picker-Di6uYDG-.js.map → icon-picker-CM9ubkew.js.map} +1 -1
  141. package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
  142. package/dist/_chunks/{image-cropper-CdmWFrMC.js.map → image-cropper-DKe4AORY.js.map} +1 -1
  143. package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
  144. package/dist/_chunks/insert-result-D074GtHX.js.map +1 -0
  145. package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
  146. package/dist/_chunks/{isSameWeek-HddDAyJG.js.map → isSameWeek-BYl5poz_.js.map} +1 -1
  147. package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
  148. package/dist/_chunks/{it-5f4hiT2e.js.map → it-mt1V2DFS.js.map} +1 -1
  149. package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
  150. package/dist/_chunks/{ja-U0_2inl_.js.map → ja-CbOHn2TO.js.map} +1 -1
  151. package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
  152. package/dist/_chunks/{key-value-pair-Byyyc_9J.js.map → key-value-pair-LHKfDT_9.js.map} +1 -1
  153. package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
  154. package/dist/_chunks/link-cell-renderer-BQGUs45d.js.map +1 -0
  155. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-GNF3lo8K.js} +3 -3
  156. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js.map → locale-picker-GNF3lo8K.js.map} +1 -1
  157. package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
  158. package/dist/_chunks/{map-view-ByPvWG_9.js.map → map-view-CsaHfoo6.js.map} +1 -1
  159. package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-D_1tF4La.js} +6 -6
  160. package/dist/_chunks/marketplace-app-shell-D_1tF4La.js.map +1 -0
  161. package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
  162. package/dist/_chunks/{message-card-BZnnffyB.js.map → message-card-ievotOFa.js.map} +1 -1
  163. package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
  164. package/dist/_chunks/{message-tray-cUHOCdU0.js.map → message-tray-BFlu8clI.js.map} +1 -1
  165. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
  166. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js.map → muscle-scheme-CFBE2dme.js.map} +1 -1
  167. package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
  168. package/dist/_chunks/{nl-CDVnnx1U.js.map → nl-C6Y0QXnm.js.map} +1 -1
  169. package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-Cvdp818a.js} +3 -3
  170. package/dist/_chunks/{notes-panel-CMyjUXD4.js.map → notes-panel-Cvdp818a.js.map} +1 -1
  171. package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
  172. package/dist/_chunks/{notification-card-BHJ07FkH.js.map → notification-card-D29_sVA1.js.map} +1 -1
  173. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
  174. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js.map → notification-tray-CzIzz3bX.js.map} +1 -1
  175. package/dist/_chunks/optical-prescription-BEjYQjiO.js +1260 -0
  176. package/dist/_chunks/optical-prescription-BEjYQjiO.js.map +1 -0
  177. package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-DP4wKyq4.js} +7 -7
  178. package/dist/_chunks/{patient-details-pU_E5xM2.js.map → patient-details-DP4wKyq4.js.map} +1 -1
  179. package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
  180. package/dist/_chunks/patient-search-BaUJ_Y-N.js.map +1 -0
  181. package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-D6kgdTNn.js} +4 -4
  182. package/dist/_chunks/{patient-summary-card--t3BjTdU.js.map → patient-summary-card-D6kgdTNn.js.map} +1 -1
  183. package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-DweKjiXg.js} +122 -118
  184. package/dist/_chunks/patient-table-DweKjiXg.js.map +1 -0
  185. package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
  186. package/dist/_chunks/{payment-request-card-2ts7ITxd.js.map → payment-request-card-C0fqlKqO.js.map} +1 -1
  187. package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
  188. package/dist/_chunks/pen-line-D0De5zdl.js.map +1 -0
  189. package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
  190. package/dist/_chunks/periodontal-chart-D8hOFmde.js.map +1 -0
  191. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
  192. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js.map → periodontal-chart-card-WVjJAheq.js.map} +1 -1
  193. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
  194. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js.map +1 -0
  195. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
  196. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js.map +1 -0
  197. package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
  198. package/dist/_chunks/{pl-BWNumNrg.js.map → pl-BdazJAOp.js.map} +1 -1
  199. package/dist/_chunks/{popover-uJ6BvEU3.js → popover-Cc0a69sw.js} +32 -29
  200. package/dist/_chunks/{popover-uJ6BvEU3.js.map → popover-Cc0a69sw.js.map} +1 -1
  201. package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
  202. package/dist/_chunks/{practice-results-CSEHTH2V.js.map → practice-results-BCr7jMt1.js.map} +1 -1
  203. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-msMl_6wz.js} +7 -7
  204. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js.map → pregnancy-dating-msMl_6wz.js.map} +1 -1
  205. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
  206. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js.map → pregnancy-weight-gain-B-CkVYnU.js.map} +1 -1
  207. package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
  208. package/dist/_chunks/{privacy-lock-DrRmK8C7.js.map → privacy-lock-YYBiI_bY.js.map} +1 -1
  209. package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
  210. package/dist/_chunks/{product-hub-panel-CaZqttvm.js.map → product-hub-panel-CTld1r5V.js.map} +1 -1
  211. package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
  212. package/dist/_chunks/{pt-zqdQuryr.js.map → pt-B3UKvhHp.js.map} +1 -1
  213. package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
  214. package/dist/_chunks/public-header.agent-rX_VA6hd.js.map +1 -0
  215. package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-CxF9pVxd.js} +40 -57
  216. package/dist/_chunks/radiograph-panel.agent-CxF9pVxd.js.map +1 -0
  217. package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
  218. package/dist/_chunks/{reviews-panel-liUj6OPX.js.map → reviews-panel-DmOjvmyH.js.map} +1 -1
  219. package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CCWjNkbx.js} +26 -26
  220. package/dist/_chunks/rich-text-editor-CCWjNkbx.js.map +1 -0
  221. package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
  222. package/dist/_chunks/{ro-CornQr64.js.map → ro-DVTEQpPK.js.map} +1 -1
  223. package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
  224. package/dist/_chunks/{ru-CKAXNYVD.js.map → ru-C-Mp40SC.js.map} +1 -1
  225. package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
  226. package/dist/_chunks/{select-BmCbJMJS.js.map → select-BW5ecXlX.js.map} +1 -1
  227. package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
  228. package/dist/_chunks/{session-countdown-qr8EO5QY.js.map → session-countdown-C8AsE072.js.map} +1 -1
  229. package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
  230. package/dist/_chunks/{sheet-B_X54aZo.js.map → sheet-D5K0LB3q.js.map} +1 -1
  231. package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-C0PbwJBc.js} +375 -335
  232. package/dist/_chunks/sidebar-C0PbwJBc.js.map +1 -0
  233. package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
  234. package/dist/_chunks/{sign-document-nK03S73h.js.map → sign-document-Bfk0WpWV.js.map} +1 -1
  235. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
  236. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js.map → sign-in-with-alfadocs-button-UlYefZpI.js.map} +1 -1
  237. package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
  238. package/dist/_chunks/signature-capture-DN52VNKL.js.map +1 -0
  239. package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
  240. package/dist/_chunks/signature-field-0rFODJlW.js.map +1 -0
  241. package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
  242. package/dist/_chunks/signature-request-C-mskXwi.js.map +1 -0
  243. package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
  244. package/dist/_chunks/{slot-grid-FsqumOaS.js.map → slot-grid-CQSULZjd.js.map} +1 -1
  245. package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
  246. package/dist/_chunks/{sq-CIIvqXZv.js.map → sq-DierVlw-.js.map} +1 -1
  247. package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
  248. package/dist/_chunks/{streaming-text-Cedc05ya.js.map → streaming-text-C5bYz7LL.js.map} +1 -1
  249. package/dist/_chunks/subDays-DIKRViZm.js +8 -0
  250. package/dist/_chunks/{subDays-DGSOp9d9.js.map → subDays-DIKRViZm.js.map} +1 -1
  251. package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
  252. package/dist/_chunks/{sv-Kpk1pzjz.js.map → sv-gQWo_19z.js.map} +1 -1
  253. package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
  254. package/dist/_chunks/{tabs-DVQ941Sj.js.map → tabs-CVTukWRD.js.map} +1 -1
  255. package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
  256. package/dist/_chunks/{task-tray-DP5A3Qnc.js.map → task-tray-Br3vc0O1.js.map} +1 -1
  257. package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-CjGAhIN8.js} +6 -6
  258. package/dist/_chunks/{tasks-panel-BuxaYtEF.js.map → tasks-panel-CjGAhIN8.js.map} +1 -1
  259. package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
  260. package/dist/_chunks/{theme-toggle-dtdy5EaL.js.map → theme-toggle-BJCz_UOi.js.map} +1 -1
  261. package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
  262. package/dist/_chunks/{toast.agent-BSxl057x.js.map → toast.agent-uV8CeAy6.js.map} +1 -1
  263. package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
  264. package/dist/_chunks/{token-insert-menu-Pok4nExI.js.map → token-insert-menu-BYv6yoZI.js.map} +1 -1
  265. package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
  266. package/dist/_chunks/{tool-rail-BZx0-yIr.js.map → tool-rail-AaTqxkIM.js.map} +1 -1
  267. package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
  268. package/dist/_chunks/tooth-data-BwuoKFf4.js.map +1 -0
  269. package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
  270. package/dist/_chunks/tooth-scheme-BzJ6rcte.js.map +1 -0
  271. package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
  272. package/dist/_chunks/{tr-DHaeLFxG.js.map → tr-Btm6M3Km.js.map} +1 -1
  273. package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
  274. package/dist/_chunks/transaction-chip-DJCstquX.js.map +1 -0
  275. package/dist/_chunks/type-ggmfVs23.js +16 -0
  276. package/dist/_chunks/type-ggmfVs23.js.map +1 -0
  277. package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-CSLWFDQh.js} +3 -3
  278. package/dist/_chunks/{unit-converter-fEqluT8b.js.map → unit-converter-CSLWFDQh.js.map} +1 -1
  279. package/dist/_chunks/upload-BfT2hzMg.js +16 -0
  280. package/dist/_chunks/upload-BfT2hzMg.js.map +1 -0
  281. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
  282. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js.map +1 -0
  283. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
  284. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js.map +1 -0
  285. package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
  286. package/dist/_chunks/{warning-stack-BaMI7-n7.js.map → warning-stack-BlG_Ujy3.js.map} +1 -1
  287. package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
  288. package/dist/_chunks/{workflow-map-qWsgCldq.js.map → workflow-map-C643Q43h.js.map} +1 -1
  289. package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
  290. package/dist/_chunks/{zh-CN-BncsTBwM.js.map → zh-CN-DkVN4vsB.js.map} +1 -1
  291. package/dist/agent-catalog.json +4081 -3201
  292. package/dist/agent-i18n/en.json +121 -69
  293. package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
  294. package/dist/components/_shared/calendar-class-names.d.ts.map +1 -1
  295. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  296. package/dist/components/agenda-tray/index.js +1 -1
  297. package/dist/components/ai-consent-banner/index.js +1 -1
  298. package/dist/components/ai-prompt-input/index.js +1 -1
  299. package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
  300. package/dist/components/anamnesis-card/index.js +1 -1
  301. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  302. package/dist/components/appointment-card/index.js +2 -2
  303. package/dist/components/appointment-timeline/index.js +1 -1
  304. package/dist/components/audio-recorder/index.js +1 -1
  305. package/dist/components/benefit-card/benefit-card.d.ts.map +1 -1
  306. package/dist/components/benefit-card/index.js +1 -1
  307. package/dist/components/bishop-score/index.js +1 -1
  308. package/dist/components/bmi-calculator/index.js +1 -1
  309. package/dist/components/booking/index.js +1 -1
  310. package/dist/components/button/button.d.ts +8 -1
  311. package/dist/components/button/button.d.ts.map +1 -1
  312. package/dist/components/button/index.js +2 -2
  313. package/dist/components/button-group/button-group.d.ts +16 -0
  314. package/dist/components/button-group/button-group.d.ts.map +1 -1
  315. package/dist/components/button-group/index.js +1 -1
  316. package/dist/components/card/card.d.ts +1 -1
  317. package/dist/components/care-plan-card/index.js +1 -1
  318. package/dist/components/care-plan-entry-card/index.js +1 -1
  319. package/dist/components/care-plan-header/index.js +1 -1
  320. package/dist/components/carousel/index.js +1 -1
  321. package/dist/components/chat-container/chat-container.d.ts.map +1 -1
  322. package/dist/components/chat-container/index.js +1 -1
  323. package/dist/components/chat-input/index.js +1 -1
  324. package/dist/components/chat-message/index.js +1 -1
  325. package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
  326. package/dist/components/connection-status/index.js +1 -1
  327. package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
  328. package/dist/components/contact-profile-card/index.js +1 -1
  329. package/dist/components/control-room-rail/index.js +1 -1
  330. package/dist/components/copy-field/index.js +1 -1
  331. package/dist/components/counter/counter.d.ts +1 -1
  332. package/dist/components/cycle-calculator/index.js +1 -1
  333. package/dist/components/data-table/data-table.d.ts +2 -8
  334. package/dist/components/data-table/data-table.d.ts.map +1 -1
  335. package/dist/components/data-table/filters/number-filter.d.ts.map +1 -1
  336. package/dist/components/data-table/index.js +35 -34
  337. package/dist/components/data-table/index.js.map +1 -1
  338. package/dist/components/data-table/toolbar.d.ts +5 -11
  339. package/dist/components/data-table/toolbar.d.ts.map +1 -1
  340. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
  341. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts.map +1 -0
  342. package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
  343. package/dist/components/data-table-tabs/data-table-tabs.d.ts.map +1 -0
  344. package/dist/components/data-table-tabs/index.d.ts +5 -0
  345. package/dist/components/data-table-tabs/index.d.ts.map +1 -0
  346. package/dist/components/data-table-tabs/index.js +8 -0
  347. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
  348. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts.map +1 -0
  349. package/dist/components/date-picker/index.js +1 -1
  350. package/dist/components/date-range-picker/index.js +1 -1
  351. package/dist/components/date-time-picker/index.js +1 -1
  352. package/dist/components/description-list/index.js +1 -1
  353. package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
  354. package/dist/components/document-preview/document-preview.agent.d.ts.map +1 -0
  355. package/dist/components/document-preview/document-preview.d.ts +41 -0
  356. package/dist/components/document-preview/document-preview.d.ts.map +1 -0
  357. package/dist/components/document-preview/index.d.ts +4 -0
  358. package/dist/components/document-preview/index.d.ts.map +1 -0
  359. package/dist/components/document-preview/index.js +6 -0
  360. package/dist/components/document-preview/index.js.map +1 -0
  361. package/dist/components/document-scanner/document-scanner.d.ts.map +1 -1
  362. package/dist/components/document-scanner/index.js +1 -1
  363. package/dist/components/due-date-calculator/index.js +2 -2
  364. package/dist/components/editor-overlay/index.js +1 -1
  365. package/dist/components/empty-state/index.js +1 -1
  366. package/dist/components/entity-summary/index.js +1 -1
  367. package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
  368. package/dist/components/face-scheme/face-scheme-data.d.ts.map +1 -1
  369. package/dist/components/face-scheme/face-scheme.agent.d.ts.map +1 -1
  370. package/dist/components/face-scheme/face-scheme.d.ts +112 -2
  371. package/dist/components/face-scheme/face-scheme.d.ts.map +1 -1
  372. package/dist/components/face-scheme/index.d.ts +2 -2
  373. package/dist/components/face-scheme/index.d.ts.map +1 -1
  374. package/dist/components/face-scheme/index.js +25 -14
  375. package/dist/components/fetal-weight/index.js +1 -1
  376. package/dist/components/field-array/index.js +1 -1
  377. package/dist/components/file-manager/dialogs.d.ts +48 -0
  378. package/dist/components/file-manager/dialogs.d.ts.map +1 -0
  379. package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
  380. package/dist/components/file-manager/file-manager.agent.d.ts.map +1 -0
  381. package/dist/components/file-manager/file-manager.d.ts +82 -0
  382. package/dist/components/file-manager/file-manager.d.ts.map +1 -0
  383. package/dist/components/file-manager/folder-tree.d.ts +12 -0
  384. package/dist/components/file-manager/folder-tree.d.ts.map +1 -0
  385. package/dist/components/file-manager/index.d.ts +5 -0
  386. package/dist/components/file-manager/index.d.ts.map +1 -0
  387. package/dist/components/file-manager/index.js +6 -0
  388. package/dist/components/file-manager/index.js.map +1 -0
  389. package/dist/components/file-manager/list-view.d.ts +49 -0
  390. package/dist/components/file-manager/list-view.d.ts.map +1 -0
  391. package/dist/components/file-manager/toolbar.d.ts +15 -0
  392. package/dist/components/file-manager/toolbar.d.ts.map +1 -0
  393. package/dist/components/file-manager/types.d.ts +167 -0
  394. package/dist/components/file-manager/types.d.ts.map +1 -0
  395. package/dist/components/file-manager/utils.d.ts +34 -0
  396. package/dist/components/file-manager/utils.d.ts.map +1 -0
  397. package/dist/components/file-upload/file-upload.d.ts +1 -0
  398. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  399. package/dist/components/file-upload/index.d.ts +1 -1
  400. package/dist/components/file-upload/index.d.ts.map +1 -1
  401. package/dist/components/file-upload/index.js +4 -3
  402. package/dist/components/finished-terminal/finished-terminal.d.ts.map +1 -1
  403. package/dist/components/finished-terminal/index.js +1 -1
  404. package/dist/components/fiscal-code-input/index.js +1 -1
  405. package/dist/components/flag/flag.d.ts +1 -1
  406. package/dist/components/freemium-paywall/freemium-paywall.d.ts.map +1 -1
  407. package/dist/components/freemium-paywall/index.js +1 -1
  408. package/dist/components/gestational-age-calculator/index.js +1 -1
  409. package/dist/components/hcg-doubling/index.js +1 -1
  410. package/dist/components/header/header.d.ts.map +1 -1
  411. package/dist/components/header/index.js +1 -1
  412. package/dist/components/header-settings/index.js +1 -1
  413. package/dist/components/icon-button/index.js +1 -1
  414. package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
  415. package/dist/components/icon-button-group/icon-button-group.d.ts.map +1 -1
  416. package/dist/components/icon-button-group/index.js +1 -1
  417. package/dist/components/icon-picker/index.js +1 -1
  418. package/dist/components/image-cropper/index.js +1 -1
  419. package/dist/components/index.d.ts +7 -1
  420. package/dist/components/index.d.ts.map +1 -1
  421. package/dist/components/key-value-pair/index.js +1 -1
  422. package/dist/components/link/link.d.ts +1 -1
  423. package/dist/components/locale-picker/index.js +1 -1
  424. package/dist/components/map-view/index.js +1 -1
  425. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  426. package/dist/components/message-card/index.js +1 -1
  427. package/dist/components/message-card/message-card.d.ts +1 -1
  428. package/dist/components/message-tray/index.js +1 -1
  429. package/dist/components/muscle-scheme/index.js +1 -1
  430. package/dist/components/muscle-scheme/muscle-scheme.d.ts.map +1 -1
  431. package/dist/components/notes-panel/index.js +1 -1
  432. package/dist/components/notification-card/index.js +1 -1
  433. package/dist/components/notification-card/notification-card.d.ts +1 -1
  434. package/dist/components/notification-tray/index.js +1 -1
  435. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  436. package/dist/components/optical-prescription/index.d.ts +4 -2
  437. package/dist/components/optical-prescription/index.d.ts.map +1 -1
  438. package/dist/components/optical-prescription/index.js +29 -26
  439. package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
  440. package/dist/components/optical-prescription/optical-prescription-charts.d.ts.map +1 -0
  441. package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
  442. package/dist/components/optical-prescription/optical-prescription-data.d.ts.map +1 -1
  443. package/dist/components/optical-prescription/optical-prescription.agent.d.ts.map +1 -1
  444. package/dist/components/optical-prescription/optical-prescription.d.ts +9 -0
  445. package/dist/components/optical-prescription/optical-prescription.d.ts.map +1 -1
  446. package/dist/components/patient-details/index.js +1 -1
  447. package/dist/components/patient-search/index.js +1 -1
  448. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  449. package/dist/components/patient-summary-card/index.js +1 -1
  450. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  451. package/dist/components/patient-table/columns.d.ts.map +1 -1
  452. package/dist/components/patient-table/index.js +1 -1
  453. package/dist/components/payment-card/index.js +1 -1
  454. package/dist/components/payment-card/payment-card.d.ts +1 -1
  455. package/dist/components/payment-card/payment-request-card.d.ts +1 -1
  456. package/dist/components/periodontal-chart/index.d.ts +6 -0
  457. package/dist/components/periodontal-chart/index.d.ts.map +1 -0
  458. package/dist/components/periodontal-chart/index.js +22 -0
  459. package/dist/components/periodontal-chart/index.js.map +1 -0
  460. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
  461. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts.map +1 -0
  462. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
  463. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts.map +1 -0
  464. package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
  465. package/dist/components/periodontal-chart/periodontal-chart.d.ts.map +1 -0
  466. package/dist/components/periodontal-chart-card/index.js +1 -1
  467. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
  468. package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
  469. package/dist/components/periodontal-diagnosis/index.d.ts.map +1 -0
  470. package/dist/components/periodontal-diagnosis/index.js +13 -0
  471. package/dist/components/periodontal-diagnosis/index.js.map +1 -0
  472. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
  473. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts.map +1 -0
  474. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
  475. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts.map +1 -0
  476. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
  477. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts.map +1 -0
  478. package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
  479. package/dist/components/periodontal-risk-chart/index.d.ts.map +1 -0
  480. package/dist/components/periodontal-risk-chart/index.js +9 -0
  481. package/dist/components/periodontal-risk-chart/index.js.map +1 -0
  482. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
  483. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts.map +1 -0
  484. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
  485. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts.map +1 -0
  486. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
  487. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts.map +1 -0
  488. package/dist/components/popover/index.js +1 -1
  489. package/dist/components/popover/popover.d.ts +1 -0
  490. package/dist/components/popover/popover.d.ts.map +1 -1
  491. package/dist/components/practice-results/index.js +1 -1
  492. package/dist/components/pregnancy-dating/index.js +1 -1
  493. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  494. package/dist/components/privacy-lock/index.js +1 -1
  495. package/dist/components/product-hub-tray/index.js +1 -1
  496. package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
  497. package/dist/components/public-header/index.js +1 -1
  498. package/dist/components/public-header/public-header.d.ts +1 -1
  499. package/dist/components/public-header/public-header.d.ts.map +1 -1
  500. package/dist/components/radiograph-panel/index.js +1 -1
  501. package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
  502. package/dist/components/radiograph-panel/radiograph-panel.d.ts.map +1 -1
  503. package/dist/components/reviews-panel/index.js +1 -1
  504. package/dist/components/rich-text-editor/index.js +1 -1
  505. package/dist/components/select/index.js +1 -1
  506. package/dist/components/select/select.d.ts.map +1 -1
  507. package/dist/components/session-countdown/index.js +1 -1
  508. package/dist/components/sheet/index.js +1 -1
  509. package/dist/components/sidebar/index.js +1 -1
  510. package/dist/components/sidebar/sidebar.d.ts +9 -0
  511. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  512. package/dist/components/sign-document/index.js +1 -1
  513. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  514. package/dist/components/signature-capture/index.js +1 -1
  515. package/dist/components/signature-capture/signature-capture.d.ts.map +1 -1
  516. package/dist/components/signature-field/index.js +1 -1
  517. package/dist/components/signature-field/signature-field.d.ts +7 -0
  518. package/dist/components/signature-field/signature-field.d.ts.map +1 -1
  519. package/dist/components/skeleton-scheme/index.js +1186 -0
  520. package/dist/components/skeleton-scheme/index.js.map +1 -0
  521. package/dist/components/slot-grid/index.js +1 -1
  522. package/dist/components/stat/stat.d.ts +1 -1
  523. package/dist/components/streaming-text/index.js +1 -1
  524. package/dist/components/tabs/index.js +1 -1
  525. package/dist/components/task-tray/index.js +1 -1
  526. package/dist/components/tasks-panel/index.js +1 -1
  527. package/dist/components/theme-toggle/index.js +1 -1
  528. package/dist/components/toast/index.js +1 -1
  529. package/dist/components/token-insert-menu/index.js +1 -1
  530. package/dist/components/tool-rail/index.js +1 -1
  531. package/dist/components/tooth-scheme/index.js +29 -28
  532. package/dist/components/tooth-scheme/index.js.map +1 -1
  533. package/dist/components/transaction-chip/index.js +1 -1
  534. package/dist/components/unit-converter/index.js +1 -1
  535. package/dist/components/warning-stack/index.js +1 -1
  536. package/dist/components/workflow/index.js +1 -1
  537. package/dist/hooks/index.d.ts +2 -0
  538. package/dist/hooks/index.d.ts.map +1 -1
  539. package/dist/hooks/index.js +40 -35
  540. package/dist/hooks/index.js.map +1 -1
  541. package/dist/hooks/use-priority-overflow.d.ts +63 -0
  542. package/dist/hooks/use-priority-overflow.d.ts.map +1 -0
  543. package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
  544. package/dist/hooks/use-visual-viewport-pin.d.ts.map +1 -0
  545. package/dist/i18n/locales/ar.d.ts +490 -9
  546. package/dist/i18n/locales/ar.d.ts.map +1 -1
  547. package/dist/i18n/locales/ar.js +493 -12
  548. package/dist/i18n/locales/ar.js.map +1 -1
  549. package/dist/i18n/locales/de.d.ts +490 -9
  550. package/dist/i18n/locales/de.d.ts.map +1 -1
  551. package/dist/i18n/locales/de.js +493 -12
  552. package/dist/i18n/locales/de.js.map +1 -1
  553. package/dist/i18n/locales/el.d.ts +490 -9
  554. package/dist/i18n/locales/el.d.ts.map +1 -1
  555. package/dist/i18n/locales/el.js +493 -12
  556. package/dist/i18n/locales/el.js.map +1 -1
  557. package/dist/i18n/locales/en.d.ts +490 -9
  558. package/dist/i18n/locales/en.d.ts.map +1 -1
  559. package/dist/i18n/locales/en.js +493 -12
  560. package/dist/i18n/locales/en.js.map +1 -1
  561. package/dist/i18n/locales/es.d.ts +490 -9
  562. package/dist/i18n/locales/es.d.ts.map +1 -1
  563. package/dist/i18n/locales/es.js +493 -12
  564. package/dist/i18n/locales/es.js.map +1 -1
  565. package/dist/i18n/locales/fr.d.ts +490 -9
  566. package/dist/i18n/locales/fr.d.ts.map +1 -1
  567. package/dist/i18n/locales/fr.js +493 -12
  568. package/dist/i18n/locales/fr.js.map +1 -1
  569. package/dist/i18n/locales/hi.d.ts +490 -9
  570. package/dist/i18n/locales/hi.d.ts.map +1 -1
  571. package/dist/i18n/locales/hi.js +493 -12
  572. package/dist/i18n/locales/hi.js.map +1 -1
  573. package/dist/i18n/locales/it.d.ts +490 -9
  574. package/dist/i18n/locales/it.d.ts.map +1 -1
  575. package/dist/i18n/locales/it.js +493 -12
  576. package/dist/i18n/locales/it.js.map +1 -1
  577. package/dist/i18n/locales/ja.d.ts +490 -9
  578. package/dist/i18n/locales/ja.d.ts.map +1 -1
  579. package/dist/i18n/locales/ja.js +493 -12
  580. package/dist/i18n/locales/ja.js.map +1 -1
  581. package/dist/i18n/locales/nl.d.ts +490 -9
  582. package/dist/i18n/locales/nl.d.ts.map +1 -1
  583. package/dist/i18n/locales/nl.js +493 -12
  584. package/dist/i18n/locales/nl.js.map +1 -1
  585. package/dist/i18n/locales/pl.d.ts +490 -9
  586. package/dist/i18n/locales/pl.d.ts.map +1 -1
  587. package/dist/i18n/locales/pl.js +493 -12
  588. package/dist/i18n/locales/pl.js.map +1 -1
  589. package/dist/i18n/locales/pt.d.ts +490 -9
  590. package/dist/i18n/locales/pt.d.ts.map +1 -1
  591. package/dist/i18n/locales/pt.js +493 -12
  592. package/dist/i18n/locales/pt.js.map +1 -1
  593. package/dist/i18n/locales/ro.d.ts +490 -9
  594. package/dist/i18n/locales/ro.d.ts.map +1 -1
  595. package/dist/i18n/locales/ro.js +493 -12
  596. package/dist/i18n/locales/ro.js.map +1 -1
  597. package/dist/i18n/locales/ru.d.ts +490 -9
  598. package/dist/i18n/locales/ru.d.ts.map +1 -1
  599. package/dist/i18n/locales/ru.js +493 -12
  600. package/dist/i18n/locales/ru.js.map +1 -1
  601. package/dist/i18n/locales/sq.d.ts +490 -9
  602. package/dist/i18n/locales/sq.d.ts.map +1 -1
  603. package/dist/i18n/locales/sq.js +493 -12
  604. package/dist/i18n/locales/sq.js.map +1 -1
  605. package/dist/i18n/locales/sv.d.ts +490 -9
  606. package/dist/i18n/locales/sv.d.ts.map +1 -1
  607. package/dist/i18n/locales/sv.js +493 -12
  608. package/dist/i18n/locales/sv.js.map +1 -1
  609. package/dist/i18n/locales/tr.d.ts +490 -9
  610. package/dist/i18n/locales/tr.d.ts.map +1 -1
  611. package/dist/i18n/locales/tr.js +493 -12
  612. package/dist/i18n/locales/tr.js.map +1 -1
  613. package/dist/i18n/locales/zh.d.ts +490 -9
  614. package/dist/i18n/locales/zh.d.ts.map +1 -1
  615. package/dist/i18n/locales/zh.js +493 -12
  616. package/dist/i18n/locales/zh.js.map +1 -1
  617. package/dist/index.js +872 -809
  618. package/dist/index.js.map +1 -1
  619. package/dist/locales/ar.json +493 -12
  620. package/dist/locales/de.json +493 -12
  621. package/dist/locales/el.json +493 -12
  622. package/dist/locales/en.json +493 -12
  623. package/dist/locales/es.json +493 -12
  624. package/dist/locales/fr.json +493 -12
  625. package/dist/locales/hi.json +493 -12
  626. package/dist/locales/it.json +493 -12
  627. package/dist/locales/ja.json +493 -12
  628. package/dist/locales/nl.json +493 -12
  629. package/dist/locales/pl.json +493 -12
  630. package/dist/locales/pt.json +493 -12
  631. package/dist/locales/ro.json +493 -12
  632. package/dist/locales/ru.json +493 -12
  633. package/dist/locales/sq.json +493 -12
  634. package/dist/locales/sv.json +493 -12
  635. package/dist/locales/tr.json +493 -12
  636. package/dist/locales/zh.json +493 -12
  637. package/dist/patterns/alia-assistant/index.js +1 -1
  638. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  639. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
  640. package/dist/patterns/signature-request/index.d.ts +3 -0
  641. package/dist/patterns/signature-request/index.d.ts.map +1 -0
  642. package/dist/patterns/signature-request/index.js +5 -0
  643. package/dist/patterns/signature-request/index.js.map +1 -0
  644. package/dist/patterns/signature-request/signature-request.d.ts +81 -0
  645. package/dist/patterns/signature-request/signature-request.d.ts.map +1 -0
  646. package/dist/tokens.css +2 -2
  647. package/package.json +32 -4
  648. package/dist/_chunks/benefit-card-Xnxj4Gmo.js.map +0 -1
  649. package/dist/_chunks/button-DD_0Xdmr.js.map +0 -1
  650. package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
  651. package/dist/_chunks/button-group-CvEnVzY7.js.map +0 -1
  652. package/dist/_chunks/columns-2-8lq4-b8e.js.map +0 -1
  653. package/dist/_chunks/document-scanner-B23j4w7X.js.map +0 -1
  654. package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
  655. package/dist/_chunks/face-scheme-BT9_KdL0.js.map +0 -1
  656. package/dist/_chunks/file-upload-Kw1rdvFw.js.map +0 -1
  657. package/dist/_chunks/finished-terminal-Di4gtZ50.js.map +0 -1
  658. package/dist/_chunks/freemium-paywall-DFoeedwh.js.map +0 -1
  659. package/dist/_chunks/header-DaXWDw0M.js.map +0 -1
  660. package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
  661. package/dist/_chunks/icon-button-group-C48khLE0.js.map +0 -1
  662. package/dist/_chunks/insert-result-C7xSDb8q.js.map +0 -1
  663. package/dist/_chunks/link-cell-renderer-BCppbMec.js +0 -2185
  664. package/dist/_chunks/link-cell-renderer-BCppbMec.js.map +0 -1
  665. package/dist/_chunks/marketplace-app-shell-BCYiOvKZ.js.map +0 -1
  666. package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
  667. package/dist/_chunks/optical-prescription-Bmlbuopi.js.map +0 -1
  668. package/dist/_chunks/patient-search-X9SUZGpy.js.map +0 -1
  669. package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
  670. package/dist/_chunks/patient-shell-oiIRqEAl.js.map +0 -1
  671. package/dist/_chunks/patient-table-BgWgNIMf.js.map +0 -1
  672. package/dist/_chunks/public-header.agent-C-opZaOw.js.map +0 -1
  673. package/dist/_chunks/radiograph-panel.agent-D1x33moc.js.map +0 -1
  674. package/dist/_chunks/rich-text-editor-DUgznqOf.js.map +0 -1
  675. package/dist/_chunks/sidebar-B0OBmJrC.js.map +0 -1
  676. package/dist/_chunks/signature-capture-Ct_4Md4e.js.map +0 -1
  677. package/dist/_chunks/signature-field-jgwYgUhO.js.map +0 -1
  678. package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
  679. package/dist/_chunks/tooth-scheme-D_rso4uu.js +0 -2133
  680. package/dist/_chunks/tooth-scheme-D_rso4uu.js.map +0 -1
  681. package/dist/_chunks/transaction-chip-B6iWoVmU.js.map +0 -1
  682. package/dist/patterns/patient-shell/index.d.ts +0 -12
  683. package/dist/patterns/patient-shell/index.d.ts.map +0 -1
  684. package/dist/patterns/patient-shell/index.js +0 -5
  685. package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
  686. package/dist/patterns/patient-shell/patient-shell.d.ts.map +0 -1
  687. /package/dist/{patterns/patient-shell → components/data-table-tabs}/index.js.map +0 -0
@@ -0,0 +1,1776 @@
1
+ import { jsx as n, jsxs as x } from "react/jsx-runtime";
2
+ import { useMemo as O, useState as te, useRef as ee, useEffect as ne, useId as je, useCallback as y, forwardRef as ht, useImperativeHandle as yt } from "react";
3
+ import { c as Pe } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as J } from "react-i18next";
5
+ import { B as vt, b as Be, c as ge } from "./breadcrumb-agut0PwN.js";
6
+ import { E as bt } from "./empty-state-CrLsi0XI.js";
7
+ import { S as he } from "./skeleton-CZbwyJAA.js";
8
+ import { u as kt } from "./use-controllable-state-BiY4xTzM.js";
9
+ import { u as Mt } from "./registry-DvAUVLHh.js";
10
+ import { B as X } from "./button-CPGiR_bH.js";
11
+ import { D as m } from "./dialog-UbKJCi1X.js";
12
+ import { a as wt, F as Ct, C as xt } from "./file-upload-DENvuhfs.js";
13
+ import { T as Ve } from "./text-input-CUvCb6ST.js";
14
+ import { c as ie } from "./createLucideIcon-DhHxpK9K.js";
15
+ import { F as St, a as Nt } from "./file-Cwe9VC1A.js";
16
+ import { F as Tt } from "./file-text-5yv6r2ls.js";
17
+ import { F as Ft } from "./file-spreadsheet-DmwyfV4O.js";
18
+ import { C as At } from "./chevron-right-I9AeSxH2.js";
19
+ import { A as Dt, d as It, D as Te } from "./actions-cell-renderer-DLrcSTK_.js";
20
+ import { B as We } from "./badge-DCOqV9mI.js";
21
+ import { D as $e } from "./download-CfYKJO_j.js";
22
+ import { P as Rt } from "./pen-line-D0De5zdl.js";
23
+ import { P as Ge } from "./pencil-B1sKKyuT.js";
24
+ import { T as Ue } from "./trash-2-uumy3fy1.js";
25
+ import { I as Q } from "./icon-button-C_kbcd7I.js";
26
+ import { I as zt } from "./icon-button-group-C_lqXTAj.js";
27
+ import { U as _t } from "./upload-BfT2hzMg.js";
28
+ import { P as Lt } from "./plus-DzMQ_c6b.js";
29
+ /**
30
+ * @license lucide-react v1.22.0 - ISC
31
+ *
32
+ * This source code is licensed under the ISC license.
33
+ * See the LICENSE file in the root directory of this source tree.
34
+ */
35
+ const Kt = [
36
+ [
37
+ "path",
38
+ {
39
+ d: "M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",
40
+ key: "1vfytu"
41
+ }
42
+ ],
43
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
44
+ [
45
+ "path",
46
+ {
47
+ d: "M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",
48
+ key: "1etmh7"
49
+ }
50
+ ]
51
+ ], Et = ie("file-headphone", Kt);
52
+ /**
53
+ * @license lucide-react v1.22.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */
58
+ const Bt = [
59
+ [
60
+ "path",
61
+ {
62
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
63
+ key: "1oefj6"
64
+ }
65
+ ],
66
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
67
+ [
68
+ "path",
69
+ {
70
+ d: "M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",
71
+ key: "1tzo1f"
72
+ }
73
+ ]
74
+ ], Ht = ie("file-play", Bt);
75
+ /**
76
+ * @license lucide-react v1.22.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */
81
+ const Ot = [
82
+ [
83
+ "path",
84
+ {
85
+ d: "M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",
86
+ key: "fm4g5t"
87
+ }
88
+ ],
89
+ ["path", { d: "M2 13h10", key: "pgb2dq" }],
90
+ ["path", { d: "m9 16 3-3-3-3", key: "6m91ic" }]
91
+ ], Ye = ie("folder-input", Ot);
92
+ /**
93
+ * @license lucide-react v1.22.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */
98
+ const qt = [
99
+ [
100
+ "path",
101
+ {
102
+ 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",
103
+ key: "usdka0"
104
+ }
105
+ ]
106
+ ], jt = ie("folder-open", qt);
107
+ /**
108
+ * @license lucide-react v1.22.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */
113
+ const Pt = [
114
+ ["path", { d: "M12 10v6", key: "1bos4e" }],
115
+ ["path", { d: "M9 13h6", key: "1uhe8q" }],
116
+ [
117
+ "path",
118
+ {
119
+ 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",
120
+ key: "1kt360"
121
+ }
122
+ ]
123
+ ], Vt = ie("folder-plus", Pt);
124
+ /**
125
+ * @license lucide-react v1.22.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */
130
+ const Wt = [
131
+ [
132
+ "path",
133
+ {
134
+ 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",
135
+ key: "1kt360"
136
+ }
137
+ ]
138
+ ], Ze = ie("folder", Wt);
139
+ /**
140
+ * @license lucide-react v1.22.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */
145
+ const $t = [
146
+ ["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
147
+ ["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
148
+ ["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
149
+ ["line", { x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49", key: "47mynk" }],
150
+ ["line", { x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49", key: "1n3mei" }]
151
+ ], Xe = ie("share-2", $t), Gt = {
152
+ type: "array",
153
+ items: {
154
+ type: "object",
155
+ properties: {
156
+ id: { type: "string" },
157
+ kind: { enum: ["file", "folder"] },
158
+ parentId: {
159
+ type: ["string", "null"],
160
+ description: "Parent folder id, null at the root."
161
+ },
162
+ size: { type: "number", description: "Bytes — files only." },
163
+ updatedAt: { type: "string", description: "ISO 8601 timestamp." },
164
+ documentType: {
165
+ type: "string",
166
+ description: "Document-type category (non-identifying)."
167
+ },
168
+ signatureStatus: {
169
+ enum: ["none", "pending", "signed"],
170
+ description: "Signature workflow state."
171
+ }
172
+ },
173
+ required: ["id", "kind", "parentId"]
174
+ }
175
+ }, Ut = {
176
+ id: "file-manager",
177
+ // select_multiple → select_items / clear_selection; navigate → navigate;
178
+ // filter → set_type_filter (proxied to the DataTable's documentType column);
179
+ // open → open_item. Preview is NOT an agent action — item content can be PHI.
180
+ capabilities: ["select_multiple", "navigate", "filter", "open"],
181
+ state: {
182
+ selection: {
183
+ type: "string[]",
184
+ descriptionKey: "ui.agent.fileManager.state.selection",
185
+ description: "Item ids of the currently-selected files and folders.",
186
+ read: (t) => t.getSelection()
187
+ },
188
+ currentFolder: {
189
+ type: "string | null",
190
+ descriptionKey: "ui.agent.fileManager.state.currentFolder",
191
+ description: "Id of the folder being viewed, or null for the root.",
192
+ read: (t) => t.getCurrentFolderId()
193
+ },
194
+ typeFilter: {
195
+ type: "string[]",
196
+ descriptionKey: "ui.agent.fileManager.state.typeFilter",
197
+ description: "Active document-type filter applied to the open folder (empty = no filter).",
198
+ read: (t) => t.getTypeFilter()
199
+ },
200
+ items: {
201
+ type: "Array<{ id, kind, parentId, size, updatedAt, documentType, signatureStatus }>",
202
+ descriptionKey: "ui.agent.fileManager.state.items",
203
+ description: "Structural metadata for every item — ids, kinds, sizes, dates, document types, signature states. Names are PHI and never included; read them via get_item_names.",
204
+ read: (t) => t.getItems()
205
+ },
206
+ activeAction: {
207
+ type: "'none' | 'create-folder' | 'rename' | 'delete' | 'move'",
208
+ descriptionKey: "ui.agent.fileManager.state.activeAction",
209
+ description: "The single in-flight action dialog. Only one action can be active at a time.",
210
+ read: (t) => t.getActiveAction()
211
+ }
212
+ },
213
+ actions: {
214
+ select_items: {
215
+ // Transient view selection (data-table convention) — stays read.
216
+ safety: "read",
217
+ argsType: "{ ids: string[] }",
218
+ argsSchema: {
219
+ type: "object",
220
+ properties: {
221
+ ids: {
222
+ type: "array",
223
+ items: { type: "string" },
224
+ description: "Item ids to select (replaces the current selection)."
225
+ }
226
+ },
227
+ required: ["ids"]
228
+ },
229
+ idempotent: !0,
230
+ descriptionKey: "ui.agent.fileManager.actions.selectItems",
231
+ description: "Replace the current selection with the given item ids.",
232
+ examples: [
233
+ { args: { ids: ["doc-1", "doc-2"] }, note: "Select two items." }
234
+ ],
235
+ invoke: (t, r) => {
236
+ t.setSelection(r.ids);
237
+ }
238
+ },
239
+ clear_selection: {
240
+ safety: "read",
241
+ idempotent: !0,
242
+ descriptionKey: "ui.agent.fileManager.actions.clearSelection",
243
+ description: "Deselect every item.",
244
+ invoke: (t) => {
245
+ t.clearSelection();
246
+ }
247
+ },
248
+ navigate: {
249
+ safety: "read",
250
+ argsType: "{ folderId: string | null }",
251
+ argsSchema: {
252
+ type: "object",
253
+ properties: {
254
+ folderId: {
255
+ type: ["string", "null"],
256
+ description: "Folder id to open, or null for the root."
257
+ }
258
+ },
259
+ required: ["folderId"]
260
+ },
261
+ idempotent: !0,
262
+ descriptionKey: "ui.agent.fileManager.actions.navigate",
263
+ description: "Open the given folder (null for the root). Clears the current selection.",
264
+ invoke: (t, r) => {
265
+ t.navigateTo(r.folderId);
266
+ }
267
+ },
268
+ set_type_filter: {
269
+ safety: "read",
270
+ argsType: "{ documentTypes: string[] }",
271
+ argsSchema: {
272
+ type: "object",
273
+ properties: {
274
+ documentTypes: {
275
+ type: "array",
276
+ items: { type: "string" },
277
+ description: "Document-type values to keep. Empty array clears the filter."
278
+ }
279
+ },
280
+ required: ["documentTypes"]
281
+ },
282
+ idempotent: !0,
283
+ descriptionKey: "ui.agent.fileManager.actions.setTypeFilter",
284
+ description: "Filter the open folder to the given document types (empty clears the filter).",
285
+ invoke: (t, r) => {
286
+ t.setTypeFilter(r.documentTypes);
287
+ }
288
+ },
289
+ open_item: {
290
+ safety: "read",
291
+ argsType: "{ id: string }",
292
+ argsSchema: {
293
+ type: "object",
294
+ properties: {
295
+ id: {
296
+ type: "string",
297
+ description: "Item id — folders navigate, files open via the host."
298
+ }
299
+ },
300
+ required: ["id"]
301
+ },
302
+ // Opening a file resolves through the host's onOpenFile callback,
303
+ // which may reach a viewer outside this UI.
304
+ openWorld: !0,
305
+ descriptionKey: "ui.agent.fileManager.actions.openItem",
306
+ description: "Open an item: folders navigate into the folder, files resolve through the host preview callback.",
307
+ invoke: (t, r) => {
308
+ t.openItem(r.id);
309
+ }
310
+ },
311
+ list_items: {
312
+ safety: "read",
313
+ argsType: "{ folderId?: string | null }",
314
+ argsSchema: {
315
+ type: "object",
316
+ properties: {
317
+ folderId: {
318
+ type: ["string", "null"],
319
+ description: "Folder whose children to list (null = root). Omit for every item."
320
+ }
321
+ }
322
+ },
323
+ returns: "Array<{ id, kind, parentId, size, updatedAt }>",
324
+ returnsSchema: Gt,
325
+ idempotent: !0,
326
+ descriptionKey: "ui.agent.fileManager.actions.listItems",
327
+ description: "List structural metadata (ids, kinds, sizes, dates — never names) for a folder or the whole tree.",
328
+ invoke: (t, r) => t.getItems(r == null ? void 0 : r.folderId)
329
+ },
330
+ get_item_names: {
331
+ // phi (not read): resolves display names, which can identify patients
332
+ // (e.g. "Rossi Maria — referto 2026.pdf"). PRS §26 — phi outranks read
333
+ // so the host gates it behind stricter confirm + audit. The always-on
334
+ // items snapshot stays name-free.
335
+ safety: "phi",
336
+ argsType: "{ ids: string[] }",
337
+ argsSchema: {
338
+ type: "object",
339
+ properties: {
340
+ ids: {
341
+ type: "array",
342
+ items: { type: "string" },
343
+ description: "Item ids whose display names to read."
344
+ }
345
+ },
346
+ required: ["ids"]
347
+ },
348
+ returns: "Array<{ id: string; name: string }>",
349
+ returnsSchema: {
350
+ type: "array",
351
+ items: {
352
+ type: "object",
353
+ properties: {
354
+ id: { type: "string" },
355
+ name: { type: "string" }
356
+ },
357
+ required: ["id", "name"]
358
+ }
359
+ },
360
+ idempotent: !0,
361
+ descriptionKey: "ui.agent.fileManager.actions.getItemNames",
362
+ description: "Read the display names for the given item ids. Names may identify patients (PHI).",
363
+ invoke: (t, r) => t.getItemNames(r.ids)
364
+ }
365
+ },
366
+ domHooks: {
367
+ root: {
368
+ attr: "data-component",
369
+ value: "file-manager",
370
+ description: "Marks the FileManager region."
371
+ },
372
+ instanceId: {
373
+ attr: "data-component-id",
374
+ sourceProp: "id",
375
+ description: "Sourced from the id prop."
376
+ },
377
+ item: {
378
+ attr: "data-item-id",
379
+ description: "Grid cards and folder-tree nodes carry the item id as data-item-id (ids only — never names). List-view rows are AG Grid rows inside the composed DataTable and carry its native row-id attribute keyed to the same ids."
380
+ }
381
+ }
382
+ }, Yt = [
383
+ "fileManager.units.bytes",
384
+ "fileManager.units.kilobytes",
385
+ "fileManager.units.megabytes",
386
+ "fileManager.units.gigabytes"
387
+ ], He = ["B", "KB", "MB", "GB"];
388
+ function Zt(t, r, l) {
389
+ let i = t, a = 0;
390
+ for (; i >= 1024 && a < He.length - 1; )
391
+ i /= 1024, a++;
392
+ return `${new Intl.NumberFormat(r, {
393
+ maximumFractionDigits: a === 0 ? 0 : 1
394
+ }).format(i)} ${l(Yt[a], He[a])}`;
395
+ }
396
+ function Xt(t) {
397
+ if (t.kind === "folder") return Ze;
398
+ const r = t.mimeType ?? "";
399
+ return r.startsWith("image/") ? St : r.startsWith("audio/") ? Et : r.startsWith("video/") ? Ht : r === "application/pdf" || r.startsWith("text/") || r.includes("word") || r.includes("rtf") ? Tt : r.includes("zip") || r.includes("compressed") || r.includes("tar") ? wt : r.includes("spreadsheet") || r.includes("excel") || r === "text/csv" ? Ft : Nt;
400
+ }
401
+ function Je(t, r, l) {
402
+ const i = new Intl.Collator(l, {
403
+ numeric: !0,
404
+ sensitivity: "base"
405
+ });
406
+ return t.filter((a) => a.parentId === r).sort((a, u) => a.kind !== u.kind ? a.kind === "folder" ? -1 : 1 : i.compare(a.name, u.name));
407
+ }
408
+ function Jt(t, r, l) {
409
+ const i = /* @__PURE__ */ new Set();
410
+ for (const c of t)
411
+ c.parentId === r && i.add(c.id);
412
+ let a = !0;
413
+ for (; a; ) {
414
+ a = !1;
415
+ for (const c of t)
416
+ i.has(c.id) || c.parentId !== null && i.has(c.parentId) && (i.add(c.id), a = !0);
417
+ }
418
+ const u = new Intl.Collator(l, {
419
+ numeric: !0,
420
+ sensitivity: "base"
421
+ });
422
+ return t.filter((c) => i.has(c.id)).sort((c, F) => c.kind !== F.kind ? c.kind === "folder" ? -1 : 1 : u.compare(c.name, F.name));
423
+ }
424
+ function Qt(t, r, l) {
425
+ const i = [];
426
+ let a = t;
427
+ const u = /* @__PURE__ */ new Set();
428
+ for (; a && !u.has(a.id) && (u.add(a.id), i.unshift(a.id), a.parentId !== l); )
429
+ a = a.parentId === null ? void 0 : r.get(a.parentId);
430
+ return i;
431
+ }
432
+ function en(t, r) {
433
+ const l = new Map(t.map((c) => [c.id, c])), i = [];
434
+ let a = r === null ? void 0 : l.get(r);
435
+ const u = /* @__PURE__ */ new Set();
436
+ for (; a && !u.has(a.id); )
437
+ u.add(a.id), i.unshift(a), a = a.parentId === null ? void 0 : l.get(a.parentId);
438
+ return i;
439
+ }
440
+ function tn(t, r) {
441
+ const l = new Set(r);
442
+ let i = !0;
443
+ for (; i; ) {
444
+ i = !1;
445
+ for (const a of t)
446
+ a.kind === "folder" && !l.has(a.id) && a.parentId !== null && l.has(a.parentId) && (l.add(a.id), i = !0);
447
+ }
448
+ return l;
449
+ }
450
+ function Qe(t, r) {
451
+ if (t.length !== r.length) return !1;
452
+ const l = new Set(t);
453
+ return r.every((i) => l.has(i));
454
+ }
455
+ const pe = "__root__", se = (t) => t ?? pe, nn = Pe(
456
+ [
457
+ "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
458
+ "ds:min-h-[var(--min-target-size)] ds:w-full",
459
+ "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-sm)]",
460
+ "ds:rounded-[var(--radius-md)]",
461
+ "ds:text-[length:var(--font-size-sm)]",
462
+ "ds:cursor-pointer ds:select-none",
463
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
464
+ ].join(" "),
465
+ {
466
+ variants: {
467
+ selected: {
468
+ true: "ds:bg-primary/10 ds:text-primary ds:font-medium",
469
+ false: "ds:text-foreground ds:hover:bg-muted/10"
470
+ }
471
+ },
472
+ defaultVariants: { selected: !1 }
473
+ }
474
+ );
475
+ function rn(t, r, l) {
476
+ const i = (a) => Je(t, a, r).filter((u) => u.kind === "folder" && !(l != null && l.has(u.id))).map((u) => ({
477
+ key: se(u.id),
478
+ folderId: u.id,
479
+ item: u,
480
+ children: i(u.id)
481
+ }));
482
+ return { key: pe, folderId: null, children: i(null) };
483
+ }
484
+ function an(t, r) {
485
+ const l = [], i = (a) => {
486
+ l.push(a), r.has(a.key) && a.children.forEach(i);
487
+ };
488
+ return i(t), l;
489
+ }
490
+ function on(t) {
491
+ var r;
492
+ return t.folderId === null ? null : se(((r = t.item) == null ? void 0 : r.parentId) ?? null);
493
+ }
494
+ function et({
495
+ items: t,
496
+ selectedFolderId: r,
497
+ onSelectFolder: l,
498
+ "aria-label": i,
499
+ excludeIds: a
500
+ }) {
501
+ const { t: u, i18n: c } = J(), F = c.dir() === "rtl", S = O(
502
+ () => rn(t, c.language, a),
503
+ [t, c.language, a]
504
+ ), [v, b] = te(
505
+ () => /* @__PURE__ */ new Set([pe])
506
+ ), [D, _] = te(se(r)), I = ee(/* @__PURE__ */ new Map());
507
+ ne(() => {
508
+ b((o) => {
509
+ const C = new Set(o);
510
+ C.add(pe);
511
+ const A = new Map(t.map((B) => [B.id, B]));
512
+ let g = r ? A.get(r) : void 0;
513
+ const E = /* @__PURE__ */ new Set();
514
+ for (; g && !E.has(g.id); )
515
+ E.add(g.id), g.parentId !== null && C.add(se(g.parentId)), g = g.parentId === null ? void 0 : A.get(g.parentId);
516
+ return C;
517
+ }), _(se(r));
518
+ }, [r, t]);
519
+ const k = O(
520
+ () => an(S, v),
521
+ [S, v]
522
+ );
523
+ ne(() => {
524
+ var o;
525
+ k.some((C) => C.key === D) || _(((o = k[0]) == null ? void 0 : o.key) ?? pe);
526
+ }, [k, D]);
527
+ const L = (o) => {
528
+ var C;
529
+ _(o), (C = I.current.get(o)) == null || C.focus();
530
+ }, V = (o, C) => {
531
+ b((A) => {
532
+ const g = new Set(A);
533
+ return C ?? !g.has(o) ? g.add(o) : g.delete(o), g;
534
+ });
535
+ }, P = (o) => {
536
+ const C = o.target.closest(
537
+ "[data-tree-key]"
538
+ ), A = C == null ? void 0 : C.getAttribute("data-tree-key");
539
+ if (!A) return;
540
+ const g = k.findIndex((K) => K.key === A);
541
+ if (g < 0) return;
542
+ const E = k[g], B = E.children.length > 0, G = v.has(A), re = F ? "ArrowLeft" : "ArrowRight", N = F ? "ArrowRight" : "ArrowLeft";
543
+ switch (o.key) {
544
+ case "ArrowDown":
545
+ g < k.length - 1 && L(k[g + 1].key);
546
+ break;
547
+ case "ArrowUp":
548
+ g > 0 && L(k[g - 1].key);
549
+ break;
550
+ case re:
551
+ B && !G ? V(A, !0) : B && G && L(E.children[0].key);
552
+ break;
553
+ case N: {
554
+ if (B && G)
555
+ V(A, !1);
556
+ else {
557
+ const K = on(E);
558
+ K !== null && L(K);
559
+ }
560
+ break;
561
+ }
562
+ case "Home":
563
+ L(k[0].key);
564
+ break;
565
+ case "End":
566
+ L(k[k.length - 1].key);
567
+ break;
568
+ case "Enter":
569
+ case " ":
570
+ l(E.folderId);
571
+ break;
572
+ default:
573
+ return;
574
+ }
575
+ o.preventDefault(), o.stopPropagation();
576
+ }, W = (o) => {
577
+ var N;
578
+ const C = se(r) === o.key, A = v.has(o.key), g = o.children.length > 0, E = o.folderId === null ? u("fileManager.rootLabel", "All files") : ((N = o.item) == null ? void 0 : N.name) ?? "", B = A && g ? jt : Ze, G = (K) => {
579
+ K.stopPropagation(), _(o.key), l(o.folderId), g && V(o.key, !0);
580
+ }, re = (K) => {
581
+ K.stopPropagation(), V(o.key);
582
+ };
583
+ return (
584
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events -- treeitem row; keyboard operation is handled at the role="tree" container via roving tabindex + onKeyDown
585
+ /* @__PURE__ */ x(
586
+ "li",
587
+ {
588
+ ref: (K) => {
589
+ K ? I.current.set(o.key, K) : I.current.delete(o.key);
590
+ },
591
+ role: "treeitem",
592
+ "aria-expanded": g ? A : void 0,
593
+ "aria-selected": C,
594
+ tabIndex: D === o.key ? 0 : -1,
595
+ "data-tree-key": o.key,
596
+ "data-item-id": o.folderId ?? void 0,
597
+ onClick: G,
598
+ onFocus: () => _(o.key),
599
+ className: [
600
+ "ds:list-none ds:rounded-[var(--radius-md)]",
601
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
602
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
603
+ ].join(" "),
604
+ children: [
605
+ /* @__PURE__ */ x("div", { className: nn({ selected: C }), children: [
606
+ g ? /* @__PURE__ */ n(
607
+ "span",
608
+ {
609
+ "aria-hidden": "true",
610
+ onClick: re,
611
+ className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center ds:text-muted-foreground",
612
+ children: /* @__PURE__ */ n(
613
+ At,
614
+ {
615
+ className: [
616
+ "ds:size-4",
617
+ "ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
618
+ A ? "ds:rotate-90" : "ds:rtl:rotate-180"
619
+ ].join(" ")
620
+ }
621
+ )
622
+ }
623
+ ) : /* @__PURE__ */ n("span", { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
624
+ /* @__PURE__ */ n(
625
+ B,
626
+ {
627
+ "aria-hidden": "true",
628
+ className: "ds:size-4 ds:shrink-0 ds:text-muted-foreground"
629
+ }
630
+ ),
631
+ /* @__PURE__ */ n("span", { className: "ds:truncate ds:text-start", children: E })
632
+ ] }),
633
+ g && A && /* @__PURE__ */ n(
634
+ "ul",
635
+ {
636
+ role: "group",
637
+ className: "ds:m-0 ds:list-none ds:p-0 ds:ps-[var(--spacing-md)]",
638
+ children: o.children.map(W)
639
+ }
640
+ )
641
+ ]
642
+ },
643
+ o.key
644
+ )
645
+ );
646
+ };
647
+ return /* @__PURE__ */ n(
648
+ "ul",
649
+ {
650
+ role: "tree",
651
+ "aria-label": i,
652
+ onKeyDown: P,
653
+ className: "ds:m-0 ds:flex ds:flex-col ds:gap-px ds:list-none ds:p-0",
654
+ "data-testid": "file-manager-tree",
655
+ children: W(S)
656
+ }
657
+ );
658
+ }
659
+ const ln = /[\\/:*?"<>|]/g, Ae = 128;
660
+ function tt(t) {
661
+ return t.replace(ln, "").slice(0, Ae);
662
+ }
663
+ function sn({
664
+ open: t,
665
+ onOpenChange: r,
666
+ onSubmit: l
667
+ }) {
668
+ const { t: i } = J(), a = je(), [u, c] = te("");
669
+ ne(() => {
670
+ t && c("");
671
+ }, [t]);
672
+ const F = (S) => {
673
+ S.preventDefault();
674
+ const v = u.trim();
675
+ v.length !== 0 && l(v);
676
+ };
677
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
678
+ /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: i("fileManager.dialogs.createFolder.title", "New folder") }) }),
679
+ /* @__PURE__ */ x("form", { onSubmit: F, children: [
680
+ /* @__PURE__ */ x(m.Body, { children: [
681
+ /* @__PURE__ */ n(
682
+ "label",
683
+ {
684
+ htmlFor: a,
685
+ className: "type-label ds:block ds:mb-[var(--spacing-xs)]",
686
+ children: i("fileManager.dialogs.createFolder.nameLabel", "Folder name")
687
+ }
688
+ ),
689
+ /* @__PURE__ */ n(
690
+ Ve,
691
+ {
692
+ id: a,
693
+ value: u,
694
+ maxLength: Ae,
695
+ onChange: (S) => c(tt(S.target.value)),
696
+ autoFocus: !0
697
+ }
698
+ )
699
+ ] }),
700
+ /* @__PURE__ */ x(m.Footer, { children: [
701
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: i("fileManager.dialogs.createFolder.cancel", "Cancel") }) }),
702
+ /* @__PURE__ */ n(
703
+ X,
704
+ {
705
+ type: "submit",
706
+ intent: "primary",
707
+ disabled: u.trim().length === 0,
708
+ children: i("fileManager.dialogs.createFolder.confirm", "Create folder")
709
+ }
710
+ )
711
+ ] })
712
+ ] })
713
+ ] }) });
714
+ }
715
+ function dn({
716
+ open: t,
717
+ onOpenChange: r,
718
+ onUpload: l,
719
+ destinationLabel: i,
720
+ config: a
721
+ }) {
722
+ const { t: u } = J();
723
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "md", children: [
724
+ /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: u("fileManager.dialogs.upload.title", "Upload to {{folder}}", {
725
+ folder: i
726
+ }) }) }),
727
+ /* @__PURE__ */ n(m.Body, { children: /* @__PURE__ */ n(
728
+ Ct,
729
+ {
730
+ variant: "both",
731
+ multiple: (a == null ? void 0 : a.multiple) ?? !0,
732
+ accept: a == null ? void 0 : a.accept,
733
+ maxSize: a == null ? void 0 : a.maxSize,
734
+ onUpload: l
735
+ }
736
+ ) }),
737
+ /* @__PURE__ */ n(m.Footer, { children: /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: u("fileManager.dialogs.upload.close", "Done") }) }) })
738
+ ] }) });
739
+ }
740
+ function cn({
741
+ open: t,
742
+ onOpenChange: r,
743
+ initialName: l,
744
+ onSubmit: i
745
+ }) {
746
+ const { t: a } = J(), u = je(), [c, F] = te(l);
747
+ ne(() => {
748
+ t && F(l);
749
+ }, [t, l]);
750
+ const S = (v) => {
751
+ v.preventDefault();
752
+ const b = c.trim();
753
+ b.length !== 0 && i(b);
754
+ };
755
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
756
+ /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: a("fileManager.dialogs.rename.title", "Rename") }) }),
757
+ /* @__PURE__ */ x("form", { onSubmit: S, children: [
758
+ /* @__PURE__ */ x(m.Body, { children: [
759
+ /* @__PURE__ */ n(
760
+ "label",
761
+ {
762
+ htmlFor: u,
763
+ className: "type-label ds:block ds:mb-[var(--spacing-xs)]",
764
+ children: a("fileManager.dialogs.rename.nameLabel", "New name")
765
+ }
766
+ ),
767
+ /* @__PURE__ */ n(
768
+ Ve,
769
+ {
770
+ id: u,
771
+ value: c,
772
+ maxLength: Ae,
773
+ onChange: (v) => F(tt(v.target.value)),
774
+ autoFocus: !0
775
+ }
776
+ )
777
+ ] }),
778
+ /* @__PURE__ */ x(m.Footer, { children: [
779
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: a("fileManager.dialogs.rename.cancel", "Cancel") }) }),
780
+ /* @__PURE__ */ n(
781
+ X,
782
+ {
783
+ type: "submit",
784
+ intent: "primary",
785
+ disabled: c.trim().length === 0,
786
+ children: a("fileManager.dialogs.rename.confirm", "Rename")
787
+ }
788
+ )
789
+ ] })
790
+ ] })
791
+ ] }) });
792
+ }
793
+ function un({
794
+ open: t,
795
+ onOpenChange: r,
796
+ count: l,
797
+ onConfirm: i
798
+ }) {
799
+ const { t: a } = J();
800
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", variant: "alert", children: [
801
+ /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: a("fileManager.dialogs.delete.title", "Delete {{count}} items?", {
802
+ count: l
803
+ }) }) }),
804
+ /* @__PURE__ */ n(m.Description, { children: a(
805
+ "fileManager.dialogs.delete.description",
806
+ "This action cannot be undone."
807
+ ) }),
808
+ /* @__PURE__ */ x(m.Footer, { children: [
809
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: a("fileManager.dialogs.delete.cancel", "Cancel") }) }),
810
+ /* @__PURE__ */ n(X, { type: "button", intent: "destructive", onClick: i, children: a("fileManager.dialogs.delete.confirm", "Delete") })
811
+ ] })
812
+ ] }) });
813
+ }
814
+ function fn({
815
+ open: t,
816
+ onOpenChange: r,
817
+ items: l,
818
+ movingIds: i,
819
+ currentFolderId: a,
820
+ onConfirm: u
821
+ }) {
822
+ const { t: c } = J(), [F, S] = te(a);
823
+ ne(() => {
824
+ t && S(a);
825
+ }, [t, a]);
826
+ const v = tn(l, i);
827
+ return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
828
+ /* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: c("fileManager.dialogs.move.title", "Move {{count}} items", {
829
+ count: i.length
830
+ }) }) }),
831
+ /* @__PURE__ */ n(m.Body, { children: /* @__PURE__ */ n("div", { className: "ds:max-h-72 ds:overflow-y-auto ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)] ds:p-[var(--spacing-xs)]", children: /* @__PURE__ */ n(
832
+ et,
833
+ {
834
+ items: l,
835
+ selectedFolderId: F,
836
+ onSelectFolder: S,
837
+ "aria-label": c(
838
+ "fileManager.dialogs.move.treeLabel",
839
+ "Destination folder"
840
+ ),
841
+ excludeIds: v
842
+ }
843
+ ) }) }),
844
+ /* @__PURE__ */ x(m.Footer, { children: [
845
+ /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: c("fileManager.dialogs.move.cancel", "Cancel") }) }),
846
+ /* @__PURE__ */ n(
847
+ X,
848
+ {
849
+ type: "button",
850
+ intent: "primary",
851
+ onClick: () => u(F),
852
+ children: c("fileManager.dialogs.move.confirm", "Move here")
853
+ }
854
+ )
855
+ ] })
856
+ ] }) });
857
+ }
858
+ const pn = {
859
+ signed: "success",
860
+ pending: "warning"
861
+ };
862
+ function Oe(t) {
863
+ return function(l) {
864
+ const i = l.data;
865
+ if (!i) return null;
866
+ const a = Xt(i), u = !!t && i.id === t;
867
+ return /* @__PURE__ */ x(
868
+ "span",
869
+ {
870
+ className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:min-w-0",
871
+ "aria-current": u ? "true" : void 0,
872
+ children: [
873
+ /* @__PURE__ */ n(
874
+ a,
875
+ {
876
+ "aria-hidden": "true",
877
+ className: [
878
+ "ds:size-4 ds:shrink-0",
879
+ i.kind === "folder" ? "ds:text-primary" : "ds:text-muted-foreground"
880
+ ].join(" ")
881
+ }
882
+ ),
883
+ /* @__PURE__ */ n("span", { className: "ds:truncate", children: i.name })
884
+ ]
885
+ }
886
+ );
887
+ };
888
+ }
889
+ function mn(t) {
890
+ const r = t.data;
891
+ return !r || !r.documentType ? null : /* @__PURE__ */ n(We, { variant: "neutral", size: "sm", children: r.documentType });
892
+ }
893
+ function gn(t) {
894
+ return function(l) {
895
+ var a;
896
+ const i = (a = l.data) == null ? void 0 : a.signatureStatus;
897
+ return !i || i === "none" ? null : /* @__PURE__ */ n(We, { variant: pn[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
898
+ };
899
+ }
900
+ function hn({
901
+ items: t,
902
+ selectedIds: r,
903
+ previewedItemId: l,
904
+ onSelectionChange: i,
905
+ onOpen: a,
906
+ onRowActivate: u,
907
+ can: c,
908
+ onRequestRename: F,
909
+ onRequestMove: S,
910
+ onRequestDelete: v,
911
+ onDownload: b,
912
+ onShare: D,
913
+ onRequestSignature: _,
914
+ itemActions: I,
915
+ groupByFolder: k = !1,
916
+ currentFolderId: L,
917
+ gridId: V,
918
+ tableRef: P,
919
+ toolbarActions: W
920
+ }) {
921
+ const { t: o, i18n: C } = J(), A = O(
922
+ () => new Map(t.map((f) => [f.id, f])),
923
+ [t]
924
+ ), g = O(
925
+ () => t.some(
926
+ (f) => f.signatureStatus && f.signatureStatus !== "none"
927
+ ),
928
+ [t]
929
+ ), E = O(
930
+ () => t.some((f) => !!f.documentType),
931
+ [t]
932
+ );
933
+ ne(() => {
934
+ var f;
935
+ (f = P.current) == null || f.setSelection(r);
936
+ }, [r, t]);
937
+ const B = O(() => {
938
+ const f = [];
939
+ if (b && f.push({
940
+ icon: /* @__PURE__ */ n($e, {}),
941
+ label: o("fileManager.toolbar.download", "Download"),
942
+ onClick: (d) => b([d.id]),
943
+ hidden: (d) => d.kind === "folder" || !c(d).download
944
+ }), _ && f.push({
945
+ icon: /* @__PURE__ */ n(Rt, {}),
946
+ label: o("fileManager.toolbar.requestSignature", "Request signature"),
947
+ onClick: (d) => _(d),
948
+ hidden: (d) => d.signatureStatus !== "pending"
949
+ }), D && f.push({
950
+ icon: /* @__PURE__ */ n(Xe, {}),
951
+ label: o("fileManager.toolbar.share", "Share"),
952
+ onClick: (d) => D([d.id]),
953
+ hidden: (d) => !c(d).share
954
+ }), f.push({
955
+ icon: /* @__PURE__ */ n(Ge, {}),
956
+ label: o("fileManager.toolbar.rename", "Rename"),
957
+ onClick: (d) => F(d.id),
958
+ hidden: (d) => !c(d).rename
959
+ }), f.push({
960
+ icon: /* @__PURE__ */ n(Ye, {}),
961
+ label: o("fileManager.toolbar.move", "Move"),
962
+ onClick: (d) => S([d.id]),
963
+ hidden: (d) => !c(d).move
964
+ }), f.push({
965
+ icon: /* @__PURE__ */ n(Ue, {}),
966
+ label: o("fileManager.toolbar.delete", "Delete"),
967
+ onClick: (d) => v([d.id]),
968
+ variant: "destructive",
969
+ hidden: (d) => !c(d).delete
970
+ }), I) {
971
+ const d = /* @__PURE__ */ new Set();
972
+ for (const h of t)
973
+ for (const R of I(h)) {
974
+ if (d.has(R.id)) continue;
975
+ d.add(R.id);
976
+ const $ = R.id;
977
+ f.push({
978
+ icon: R.icon ?? /* @__PURE__ */ n("span", { "aria-hidden": "true" }),
979
+ label: R.label,
980
+ onClick: (M) => {
981
+ var z;
982
+ return (z = I(M).find((de) => de.id === $)) == null ? void 0 : z.onSelect(M);
983
+ },
984
+ variant: R.destructive ? "destructive" : "default",
985
+ hidden: (M) => !I(M).some((z) => z.id === $)
986
+ });
987
+ }
988
+ }
989
+ return f;
990
+ }, [
991
+ t,
992
+ c,
993
+ b,
994
+ D,
995
+ _,
996
+ F,
997
+ S,
998
+ v,
999
+ I,
1000
+ o
1001
+ ]), G = O(() => {
1002
+ const f = gn(o), d = Oe(l), h = [];
1003
+ return k || h.push({
1004
+ colId: "name",
1005
+ field: "name",
1006
+ headerName: o("fileManager.columns.name", "Name"),
1007
+ cellRenderer: d,
1008
+ flex: 2,
1009
+ minWidth: 200
1010
+ }), E && h.push({
1011
+ colId: "documentType",
1012
+ field: "documentType",
1013
+ headerName: o("fileManager.columns.type", "Type"),
1014
+ cellRenderer: mn,
1015
+ flex: 1,
1016
+ minWidth: 120
1017
+ }), g && h.push({
1018
+ colId: "signatureStatus",
1019
+ field: "signatureStatus",
1020
+ headerName: o("fileManager.columns.signature", "Signature"),
1021
+ cellRenderer: f,
1022
+ flex: 1,
1023
+ minWidth: 150
1024
+ }), h.push({
1025
+ colId: "size",
1026
+ field: "size",
1027
+ headerName: o("fileManager.columns.size", "Size"),
1028
+ valueFormatter: (R) => {
1029
+ var $;
1030
+ return (($ = R.data) == null ? void 0 : $.kind) === "file" && R.data.size !== void 0 ? Zt(R.data.size, C.language, o) : o("fileManager.emptyCell", "—");
1031
+ },
1032
+ filter: !1,
1033
+ flex: 1,
1034
+ minWidth: 110
1035
+ }), h.push({
1036
+ colId: "updatedAt",
1037
+ field: "updatedAt",
1038
+ headerName: o("fileManager.columns.modified", "Modified"),
1039
+ valueFormatter: (R) => {
1040
+ var $;
1041
+ return ($ = R.data) != null && $.updatedAt ? new Intl.DateTimeFormat(C.language, {
1042
+ dateStyle: "medium"
1043
+ }).format(new Date(R.data.updatedAt)) : o("fileManager.emptyCell", "—");
1044
+ },
1045
+ filter: !1,
1046
+ flex: 1,
1047
+ minWidth: 130
1048
+ }), B.length > 0 && h.push({
1049
+ colId: "actions",
1050
+ headerName: o("fileManager.rowActions", "Item actions"),
1051
+ cellRenderer: Dt,
1052
+ cellRendererParams: {
1053
+ actions: B,
1054
+ group: !0,
1055
+ label: o("fileManager.rowActions", "Item actions")
1056
+ },
1057
+ sortable: !1,
1058
+ filter: !1,
1059
+ resizable: !1,
1060
+ width: It(B.length)
1061
+ }), h;
1062
+ }, [
1063
+ B,
1064
+ E,
1065
+ g,
1066
+ l,
1067
+ k,
1068
+ o,
1069
+ C.language
1070
+ ]), re = O(() => {
1071
+ const f = {
1072
+ getRowId: (d) => d.data.id,
1073
+ onRowClicked: (d) => {
1074
+ const h = d.event, R = h == null ? void 0 : h.target;
1075
+ R != null && R.closest(
1076
+ '.ag-selection-checkbox, .ag-checkbox-input-wrapper, [col-id="actions"], [data-item-kebab], .ag-group-contracted, .ag-group-expanded'
1077
+ ) || d.data && u(d.data);
1078
+ },
1079
+ onRowDoubleClicked: (d) => {
1080
+ d.data && a(d.data);
1081
+ }
1082
+ };
1083
+ if (k) {
1084
+ const d = Oe(l);
1085
+ f.treeData = !0, f.getDataPath = (h) => Qt(h, A, L), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
1086
+ headerName: o("fileManager.columns.name", "Name"),
1087
+ flex: 2,
1088
+ minWidth: 200,
1089
+ cellRendererParams: {
1090
+ suppressCount: !0,
1091
+ innerRenderer: d
1092
+ }
1093
+ };
1094
+ }
1095
+ return f;
1096
+ }, [
1097
+ a,
1098
+ u,
1099
+ k,
1100
+ l,
1101
+ o,
1102
+ A,
1103
+ L
1104
+ ]), N = (f) => {
1105
+ const d = f.map((h) => h.id);
1106
+ Qe(d, r) || i(d);
1107
+ }, K = y(
1108
+ (f) => {
1109
+ var d;
1110
+ return l && ((d = f.data) == null ? void 0 : d.id) === l ? "ag-row-selected" : void 0;
1111
+ },
1112
+ [l]
1113
+ );
1114
+ return /* @__PURE__ */ n(
1115
+ Te,
1116
+ {
1117
+ ref: P,
1118
+ gridId: V,
1119
+ columnDefs: G,
1120
+ rowData: t,
1121
+ rowSelection: "multiple",
1122
+ gridOptions: re,
1123
+ getRowClass: K,
1124
+ onSelectionChanged: N,
1125
+ heightClass: "ds:h-[420px]",
1126
+ children: /* @__PURE__ */ n(Te.Toolbar, { children: /* @__PURE__ */ n(Te.Toolbar.Actions, { children: W }) })
1127
+ }
1128
+ );
1129
+ }
1130
+ function yn({
1131
+ selectedIds: t,
1132
+ permissions: r,
1133
+ onRequestCreateFolder: l,
1134
+ onRequestUpload: i,
1135
+ addMenuItems: a,
1136
+ onRequestRename: u,
1137
+ onRequestMove: c,
1138
+ onRequestDelete: F,
1139
+ onDownload: S,
1140
+ onShare: v
1141
+ }) {
1142
+ const { t: b } = J(), D = t.length > 0, _ = t.length === 1, I = r.upload && !!i, k = r.download && !!S, L = r.share && !!v, V = a ?? [];
1143
+ return I || r.createFolder || V.length > 0 || k || L || r.rename || r.move || r.delete ? /* @__PURE__ */ x(
1144
+ zt,
1145
+ {
1146
+ role: "toolbar",
1147
+ overflow: "menu",
1148
+ size: "sm",
1149
+ "aria-label": b("fileManager.toolbarLabel", "File actions"),
1150
+ "data-testid": "file-manager-toolbar",
1151
+ children: [
1152
+ I && /* @__PURE__ */ n(
1153
+ Q,
1154
+ {
1155
+ intent: "primary",
1156
+ "data-overflow-pin": !0,
1157
+ icon: /* @__PURE__ */ n(_t, {}),
1158
+ tooltip: b("fileManager.toolbar.upload", "Upload files"),
1159
+ onClick: () => i == null ? void 0 : i()
1160
+ }
1161
+ ),
1162
+ r.createFolder && /* @__PURE__ */ n(
1163
+ Q,
1164
+ {
1165
+ icon: /* @__PURE__ */ n(Vt, {}),
1166
+ tooltip: b("fileManager.toolbar.newFolder", "New folder"),
1167
+ onClick: l
1168
+ }
1169
+ ),
1170
+ V.map((W) => /* @__PURE__ */ n(
1171
+ Q,
1172
+ {
1173
+ icon: W.icon ?? /* @__PURE__ */ n(Lt, {}),
1174
+ tooltip: W.label,
1175
+ onClick: () => W.onSelect()
1176
+ },
1177
+ W.id
1178
+ )),
1179
+ k && /* @__PURE__ */ n(
1180
+ Q,
1181
+ {
1182
+ icon: /* @__PURE__ */ n($e, {}),
1183
+ tooltip: b("fileManager.toolbar.download", "Download"),
1184
+ disabled: !D,
1185
+ onClick: () => S == null ? void 0 : S(t)
1186
+ }
1187
+ ),
1188
+ L && /* @__PURE__ */ n(
1189
+ Q,
1190
+ {
1191
+ icon: /* @__PURE__ */ n(Xe, {}),
1192
+ tooltip: b("fileManager.toolbar.share", "Share"),
1193
+ disabled: !D,
1194
+ onClick: () => v == null ? void 0 : v(t)
1195
+ }
1196
+ ),
1197
+ r.rename && /* @__PURE__ */ n(
1198
+ Q,
1199
+ {
1200
+ icon: /* @__PURE__ */ n(Ge, {}),
1201
+ tooltip: b("fileManager.toolbar.rename", "Rename"),
1202
+ disabled: !_,
1203
+ onClick: () => u(t[0])
1204
+ }
1205
+ ),
1206
+ r.move && /* @__PURE__ */ n(
1207
+ Q,
1208
+ {
1209
+ icon: /* @__PURE__ */ n(Ye, {}),
1210
+ tooltip: b("fileManager.toolbar.move", "Move"),
1211
+ disabled: !D,
1212
+ onClick: () => c(t)
1213
+ }
1214
+ ),
1215
+ r.delete && /* @__PURE__ */ n(
1216
+ Q,
1217
+ {
1218
+ icon: /* @__PURE__ */ n(Ue, {}),
1219
+ tooltip: b("fileManager.toolbar.delete", "Delete"),
1220
+ disabled: !D,
1221
+ onClick: () => F(t)
1222
+ }
1223
+ )
1224
+ ]
1225
+ }
1226
+ ) : null;
1227
+ }
1228
+ const qe = Pe(
1229
+ "ds:relative ds:flex ds:w-full ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-md)]",
1230
+ {
1231
+ variants: {
1232
+ bordered: {
1233
+ true: "ds:rounded-[var(--radius-lg)] ds:border ds:border-[color:var(--border)] ds:bg-background ds:p-[var(--spacing-md)]",
1234
+ false: ""
1235
+ }
1236
+ },
1237
+ defaultVariants: { bordered: !0 }
1238
+ }
1239
+ ), Fe = {
1240
+ createFolder: !0,
1241
+ upload: !0,
1242
+ download: !0,
1243
+ rename: !0,
1244
+ move: !0,
1245
+ delete: !0,
1246
+ share: !0
1247
+ }, vn = ht(
1248
+ ({
1249
+ id: t,
1250
+ items: r,
1251
+ permissions: l,
1252
+ folderId: i,
1253
+ defaultFolderId: a = null,
1254
+ onNavigate: u,
1255
+ onSelectionChange: c,
1256
+ showTree: F = !1,
1257
+ isLoading: S = !1,
1258
+ onOpenFile: v,
1259
+ onCreateFolder: b,
1260
+ onRenameItem: D,
1261
+ onDeleteItems: _,
1262
+ onMoveItems: I,
1263
+ onDownloadItems: k,
1264
+ onShare: L,
1265
+ onRequestSignature: V,
1266
+ onUpload: P,
1267
+ uploadConfig: W,
1268
+ onPreviewItem: o,
1269
+ previewedItemId: C,
1270
+ itemActions: A,
1271
+ addMenuItems: g,
1272
+ groupByFolder: E = !1,
1273
+ bordered: B,
1274
+ className: G
1275
+ }, re) => {
1276
+ var Ee;
1277
+ const { t: N, i18n: K } = J(), f = y(
1278
+ (e) => typeof l == "function" ? e ? { ...Fe, ...l(e) } : Fe : { ...Fe, ...l ?? {} },
1279
+ [l]
1280
+ ), d = O(() => f(), [f]), h = y(
1281
+ (e) => f(e),
1282
+ [f]
1283
+ ), [R, $] = kt({
1284
+ value: i,
1285
+ defaultValue: a,
1286
+ onChange: u
1287
+ }), M = R ?? null, [z, de] = te([]), [w, De] = te({
1288
+ type: "none"
1289
+ }), [nt, ye] = te(!1), ce = ee(0), ve = ee(null), be = ee(null), Ie = y((e) => {
1290
+ be.current && (be.current.textContent = e);
1291
+ }, []), Re = ee(null), ke = ee(!1), T = O(
1292
+ () => new Map(r.map((e) => [e.id, e])),
1293
+ [r]
1294
+ ), Y = y(
1295
+ (e) => {
1296
+ de((s) => {
1297
+ const p = e.filter((H) => T.has(H));
1298
+ return Qe(s, p) ? s : (c == null || c(p), p);
1299
+ });
1300
+ },
1301
+ [T, c]
1302
+ );
1303
+ ne(() => {
1304
+ de((e) => {
1305
+ const s = e.filter((p) => T.has(p));
1306
+ return s.length === e.length ? e : s;
1307
+ });
1308
+ }, [T]);
1309
+ const Z = y(
1310
+ (e) => {
1311
+ var p;
1312
+ if (e !== null) {
1313
+ const H = T.get(e);
1314
+ if (!H || H.kind !== "folder") return;
1315
+ }
1316
+ $(e), de([]), ke.current = !0;
1317
+ const s = e === null ? N("fileManager.rootLabel", "All files") : ((p = T.get(e)) == null ? void 0 : p.name) ?? "";
1318
+ Ie(
1319
+ N("fileManager.announce.navigated", "Opened {{name}}", { name: s })
1320
+ );
1321
+ },
1322
+ [T, $, Ie, N]
1323
+ );
1324
+ ne(() => {
1325
+ var e;
1326
+ ke.current && (ke.current = !1, (e = Re.current) == null || e.focus());
1327
+ }, [M]);
1328
+ const Me = O(
1329
+ () => en(r, M),
1330
+ [r, M]
1331
+ ), ue = O(
1332
+ () => Je(r, M, K.language),
1333
+ [r, M, K.language]
1334
+ ), rt = O(
1335
+ () => E ? Jt(r, M, K.language) : ue,
1336
+ [E, r, M, K.language, ue]
1337
+ ), ze = M === null ? N("fileManager.rootLabel", "All files") : ((Ee = T.get(M)) == null ? void 0 : Ee.name) ?? "", U = y((e) => {
1338
+ De((s) => s.type === "none" ? e : s);
1339
+ }, []), q = y(() => {
1340
+ De({ type: "none" });
1341
+ }, []), at = y(() => {
1342
+ !d.createFolder || !b || U({ type: "create-folder" });
1343
+ }, [d.createFolder, b, U]), we = y(() => {
1344
+ !d.upload || !P || U({ type: "upload" });
1345
+ }, [d.upload, P, U]), oe = y(
1346
+ (e) => {
1347
+ const s = T.get(e);
1348
+ !s || !h(s).rename || !D || U({ type: "rename", itemId: e });
1349
+ },
1350
+ [h, D, T, U]
1351
+ ), me = y(
1352
+ (e) => {
1353
+ if (!_ || e.length === 0) return;
1354
+ const s = e.filter((p) => {
1355
+ const H = T.get(p);
1356
+ return H ? h(H).delete : !1;
1357
+ });
1358
+ s.length !== 0 && U({ type: "delete", itemIds: s });
1359
+ },
1360
+ [h, _, T, U]
1361
+ ), _e = y(
1362
+ (e) => {
1363
+ if (!I || e.length === 0) return;
1364
+ const s = e.filter((p) => {
1365
+ const H = T.get(p);
1366
+ return H ? h(H).move : !1;
1367
+ });
1368
+ s.length !== 0 && U({ type: "move", itemIds: s });
1369
+ },
1370
+ [h, I, T, U]
1371
+ ), Le = y(
1372
+ (e) => {
1373
+ if (!k || e.length === 0) return;
1374
+ const s = e.filter((p) => {
1375
+ const H = T.get(p);
1376
+ return H ? h(H).download : !1;
1377
+ });
1378
+ s.length > 0 && k(s);
1379
+ },
1380
+ [h, k, T]
1381
+ ), Ke = y(
1382
+ (e) => {
1383
+ if (!L || e.length === 0) return;
1384
+ const s = e.filter((p) => {
1385
+ const H = T.get(p);
1386
+ return H ? h(H).share : !1;
1387
+ });
1388
+ s.length > 0 && L(s);
1389
+ },
1390
+ [h, L, T]
1391
+ ), fe = y(
1392
+ (e) => {
1393
+ e.kind === "folder" ? Z(e.id) : v == null || v(e);
1394
+ },
1395
+ [Z, v]
1396
+ ), Ce = y(
1397
+ (e) => {
1398
+ e.kind === "folder" ? Z(e.id) : (Y([e.id]), o == null || o(e));
1399
+ },
1400
+ [Z, Y, o]
1401
+ ), it = y(
1402
+ (e) => {
1403
+ b == null || b(e, M), q();
1404
+ },
1405
+ [b, M, q]
1406
+ ), ot = y(
1407
+ (e) => {
1408
+ w.type === "rename" && (D == null || D(w.itemId, e)), q();
1409
+ },
1410
+ [w, D, q]
1411
+ ), lt = y(() => {
1412
+ w.type === "delete" && (_ == null || _(w.itemIds), Y([])), q();
1413
+ }, [w, _, Y, q]), st = y(
1414
+ (e) => {
1415
+ w.type === "move" && (I == null || I(w.itemIds, e)), q();
1416
+ },
1417
+ [w, I, q]
1418
+ ), dt = y(
1419
+ (e, s) => P ? P(e, s, M) : Promise.resolve(),
1420
+ [P, M]
1421
+ ), j = d.upload && !!P, xe = (e) => {
1422
+ var s;
1423
+ return Array.from(((s = e.dataTransfer) == null ? void 0 : s.types) ?? []).includes("Files");
1424
+ }, ct = y(
1425
+ (e) => {
1426
+ !j || !xe(e) || (e.preventDefault(), ce.current += 1, ye(!0));
1427
+ },
1428
+ [j]
1429
+ ), ut = y(
1430
+ (e) => {
1431
+ !j || !xe(e) || e.preventDefault();
1432
+ },
1433
+ [j]
1434
+ ), ft = y(() => {
1435
+ j && (ce.current = Math.max(0, ce.current - 1), ce.current === 0 && ye(!1));
1436
+ }, [j]), pt = y(
1437
+ (e) => {
1438
+ !j || !xe(e) || (e.preventDefault(), ce.current = 0, ye(!1), we());
1439
+ },
1440
+ [j, we]
1441
+ ), mt = y(
1442
+ (e) => {
1443
+ if (!(w.type !== "none" || e.target.closest('input, textarea, [contenteditable="true"]')))
1444
+ if (e.key === "F2" && z.length === 1)
1445
+ e.preventDefault(), oe(z[0]);
1446
+ else if (e.key === "Delete" && z.length > 0)
1447
+ e.preventDefault(), me(z);
1448
+ else if (e.key === "Enter" && z.length === 1) {
1449
+ const p = T.get(z[0]);
1450
+ p && (e.preventDefault(), p.kind === "file" && o ? Ce(p) : fe(p));
1451
+ } else e.key.toLowerCase() === "a" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), Y(ue.map((p) => p.id)));
1452
+ },
1453
+ [
1454
+ w.type,
1455
+ z,
1456
+ T,
1457
+ oe,
1458
+ me,
1459
+ fe,
1460
+ Ce,
1461
+ o,
1462
+ Y,
1463
+ ue
1464
+ ]
1465
+ ), ae = ee({
1466
+ selectedIds: z,
1467
+ currentFolderId: M,
1468
+ items: r,
1469
+ activeAction: w
1470
+ });
1471
+ ae.current = {
1472
+ selectedIds: z,
1473
+ currentFolderId: M,
1474
+ items: r,
1475
+ activeAction: w
1476
+ };
1477
+ const le = ee({
1478
+ setSelection: Y,
1479
+ navigateTo: Z,
1480
+ openItem: fe,
1481
+ requestRename: oe
1482
+ });
1483
+ le.current = {
1484
+ setSelection: Y,
1485
+ navigateTo: Z,
1486
+ openItem: fe,
1487
+ requestRename: oe
1488
+ };
1489
+ const Se = O(
1490
+ () => ({
1491
+ getSelection: () => [...ae.current.selectedIds],
1492
+ setSelection: (e) => le.current.setSelection(e),
1493
+ clearSelection: () => le.current.setSelection([]),
1494
+ getCurrentFolderId: () => ae.current.currentFolderId,
1495
+ navigateTo: (e) => le.current.navigateTo(e),
1496
+ getTypeFilter: () => {
1497
+ var p;
1498
+ const s = (((p = ve.current) == null ? void 0 : p.getFilter()) ?? {}).documentType;
1499
+ return typeof (s == null ? void 0 : s.filter) == "string" ? [s.filter] : [];
1500
+ },
1501
+ setTypeFilter: (e) => {
1502
+ var p;
1503
+ const s = (p = ve.current) == null ? void 0 : p.getRawApi();
1504
+ if (s) {
1505
+ if (e.length === 0) {
1506
+ s.destroyFilter("documentType");
1507
+ return;
1508
+ }
1509
+ s.setColumnFilterModel("documentType", {
1510
+ type: "equals",
1511
+ filter: e[0]
1512
+ }), s.onFilterChanged();
1513
+ }
1514
+ },
1515
+ getItems: (e) => ae.current.items.filter(
1516
+ (s) => e === void 0 ? !0 : s.parentId === e
1517
+ ).map((s) => ({
1518
+ id: s.id,
1519
+ kind: s.kind,
1520
+ parentId: s.parentId,
1521
+ size: s.size,
1522
+ updatedAt: s.updatedAt,
1523
+ documentType: s.documentType,
1524
+ signatureStatus: s.signatureStatus
1525
+ })),
1526
+ getItemNames: (e) => {
1527
+ const s = new Set(e);
1528
+ return ae.current.items.filter((p) => s.has(p.id)).map((p) => ({ id: p.id, name: p.name }));
1529
+ },
1530
+ openItem: (e) => {
1531
+ const s = ae.current.items.find((p) => p.id === e);
1532
+ s && le.current.openItem(s);
1533
+ },
1534
+ startRename: (e) => le.current.requestRename(e),
1535
+ getActiveAction: () => ae.current.activeAction.type
1536
+ }),
1537
+ []
1538
+ );
1539
+ yt(re, () => Se, [Se]), Mt(Ut, Se, t);
1540
+ const Ne = w.type === "rename" ? T.get(w.itemId) : void 0;
1541
+ if (S)
1542
+ return /* @__PURE__ */ x(
1543
+ "div",
1544
+ {
1545
+ "data-component": "file-manager",
1546
+ "data-component-id": t,
1547
+ role: "region",
1548
+ "aria-label": N("fileManager.regionLabel", "File manager"),
1549
+ "aria-busy": "true",
1550
+ className: qe({ bordered: B, className: G }),
1551
+ children: [
1552
+ /* @__PURE__ */ x("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1553
+ /* @__PURE__ */ n(he, { variant: "rectangular", size: "sm", className: "ds:w-24" }),
1554
+ /* @__PURE__ */ n(
1555
+ he,
1556
+ {
1557
+ variant: "rectangular",
1558
+ size: "sm",
1559
+ className: "ds:ms-auto ds:w-48"
1560
+ }
1561
+ )
1562
+ ] }),
1563
+ /* @__PURE__ */ n(he, { variant: "text", size: "sm", className: "ds:w-40" }),
1564
+ /* @__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)) })
1565
+ ]
1566
+ }
1567
+ );
1568
+ const gt = /* @__PURE__ */ n(
1569
+ yn,
1570
+ {
1571
+ selectedIds: z,
1572
+ permissions: d,
1573
+ onRequestCreateFolder: at,
1574
+ onRequestUpload: j ? we : void 0,
1575
+ addMenuItems: g,
1576
+ onRequestRename: oe,
1577
+ onRequestMove: _e,
1578
+ onRequestDelete: me,
1579
+ onDownload: d.download && k ? Le : void 0,
1580
+ onShare: d.share && L ? Ke : void 0
1581
+ }
1582
+ );
1583
+ return (
1584
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- container-level keyboard shortcuts + drag-and-drop upload; interactive children remain individually operable
1585
+ /* @__PURE__ */ x(
1586
+ "div",
1587
+ {
1588
+ "data-component": "file-manager",
1589
+ "data-component-id": t,
1590
+ role: "region",
1591
+ "aria-label": N("fileManager.regionLabel", "File manager"),
1592
+ onKeyDown: mt,
1593
+ onDragEnter: j ? ct : void 0,
1594
+ onDragOver: j ? ut : void 0,
1595
+ onDragLeave: j ? ft : void 0,
1596
+ onDrop: j ? pt : void 0,
1597
+ className: qe({ bordered: B, className: G }),
1598
+ children: [
1599
+ /* @__PURE__ */ x("div", { className: "ds:flex ds:min-h-0 ds:items-start ds:gap-[var(--spacing-md)]", children: [
1600
+ F && /* @__PURE__ */ n("div", { className: "ds:hidden ds:w-56 ds:shrink-0 ds:md:block", children: /* @__PURE__ */ n(
1601
+ et,
1602
+ {
1603
+ items: r,
1604
+ selectedFolderId: M,
1605
+ onSelectFolder: Z,
1606
+ "aria-label": N("fileManager.treeLabel", "Folders")
1607
+ }
1608
+ ) }),
1609
+ /* @__PURE__ */ n(
1610
+ "div",
1611
+ {
1612
+ ref: Re,
1613
+ tabIndex: -1,
1614
+ className: "ds:min-w-0 ds:flex-1 ds:outline-none",
1615
+ children: ue.length === 0 ? /* @__PURE__ */ n(
1616
+ bt,
1617
+ {
1618
+ variant: "first-use",
1619
+ size: "sm",
1620
+ title: N(
1621
+ "fileManager.empty.folderTitle",
1622
+ "This folder is empty"
1623
+ ),
1624
+ description: N(
1625
+ "fileManager.empty.folderDescription",
1626
+ "Upload files or create a folder to get started."
1627
+ )
1628
+ }
1629
+ ) : (
1630
+ /* Remount on folder change so the DataTable's column filters
1631
+ reset cleanly for the new folder. */
1632
+ /* @__PURE__ */ n(
1633
+ hn,
1634
+ {
1635
+ items: rt,
1636
+ currentFolderId: M,
1637
+ selectedIds: z,
1638
+ previewedItemId: C ?? null,
1639
+ onSelectionChange: Y,
1640
+ onOpen: fe,
1641
+ onRowActivate: Ce,
1642
+ can: h,
1643
+ onRequestRename: oe,
1644
+ onRequestMove: _e,
1645
+ onRequestDelete: me,
1646
+ onDownload: d.download && k ? Le : void 0,
1647
+ onShare: d.share && L ? Ke : void 0,
1648
+ onRequestSignature: V,
1649
+ itemActions: A,
1650
+ groupByFolder: E,
1651
+ gridId: t ? `${t}-list` : void 0,
1652
+ tableRef: ve,
1653
+ toolbarActions: gt
1654
+ },
1655
+ M ?? "__root__"
1656
+ )
1657
+ )
1658
+ }
1659
+ )
1660
+ ] }),
1661
+ /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)] ds:text-muted-foreground", children: /* @__PURE__ */ x(
1662
+ vt,
1663
+ {
1664
+ "aria-label": N("fileManager.breadcrumbLabel", "Folder path"),
1665
+ children: [
1666
+ /* @__PURE__ */ n(Be, { children: Me.length === 0 ? /* @__PURE__ */ n(ge, { children: N("fileManager.rootLabel", "All files") }) : /* @__PURE__ */ n(ge, { asChild: !0, children: /* @__PURE__ */ n("button", { type: "button", onClick: () => Z(null), children: N("fileManager.rootLabel", "All files") }) }) }),
1667
+ Me.map((e, s) => /* @__PURE__ */ n(Be, { 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))
1668
+ ]
1669
+ }
1670
+ ) }),
1671
+ /* @__PURE__ */ n(
1672
+ "p",
1673
+ {
1674
+ role: "status",
1675
+ "aria-live": "polite",
1676
+ className: z.length > 0 ? "type-meta ds:m-0 ds:text-muted-foreground" : "ds:sr-only",
1677
+ children: z.length > 0 ? N("fileManager.selected", "{{count}} items selected", {
1678
+ count: z.length
1679
+ }) : ""
1680
+ }
1681
+ ),
1682
+ nt && /* @__PURE__ */ x(
1683
+ "div",
1684
+ {
1685
+ "aria-hidden": "true",
1686
+ 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",
1687
+ children: [
1688
+ /* @__PURE__ */ n(xt, { className: "ds:size-8 ds:text-primary" }),
1689
+ /* @__PURE__ */ n("span", { className: "type-label ds:text-primary", children: N(
1690
+ "fileManager.dropOverlay",
1691
+ "Drop files to upload to {{folder}}",
1692
+ {
1693
+ folder: ze
1694
+ }
1695
+ ) })
1696
+ ]
1697
+ }
1698
+ ),
1699
+ /* @__PURE__ */ n(
1700
+ "span",
1701
+ {
1702
+ ref: be,
1703
+ role: "status",
1704
+ "aria-live": "polite",
1705
+ className: "ds:sr-only"
1706
+ }
1707
+ ),
1708
+ /* @__PURE__ */ n(
1709
+ sn,
1710
+ {
1711
+ open: w.type === "create-folder",
1712
+ onOpenChange: (e) => {
1713
+ e || q();
1714
+ },
1715
+ onSubmit: it
1716
+ }
1717
+ ),
1718
+ /* @__PURE__ */ n(
1719
+ dn,
1720
+ {
1721
+ open: w.type === "upload",
1722
+ onOpenChange: (e) => {
1723
+ e || q();
1724
+ },
1725
+ onUpload: dt,
1726
+ destinationLabel: ze,
1727
+ config: W
1728
+ }
1729
+ ),
1730
+ /* @__PURE__ */ n(
1731
+ cn,
1732
+ {
1733
+ open: w.type === "rename",
1734
+ onOpenChange: (e) => {
1735
+ e || q();
1736
+ },
1737
+ initialName: (Ne == null ? void 0 : Ne.name) ?? "",
1738
+ onSubmit: ot
1739
+ }
1740
+ ),
1741
+ /* @__PURE__ */ n(
1742
+ un,
1743
+ {
1744
+ open: w.type === "delete",
1745
+ onOpenChange: (e) => {
1746
+ e || q();
1747
+ },
1748
+ count: w.type === "delete" ? w.itemIds.length : 0,
1749
+ onConfirm: lt
1750
+ }
1751
+ ),
1752
+ /* @__PURE__ */ n(
1753
+ fn,
1754
+ {
1755
+ open: w.type === "move",
1756
+ onOpenChange: (e) => {
1757
+ e || q();
1758
+ },
1759
+ items: r,
1760
+ movingIds: w.type === "move" ? w.itemIds : [],
1761
+ currentFolderId: M,
1762
+ onConfirm: st
1763
+ }
1764
+ )
1765
+ ]
1766
+ }
1767
+ )
1768
+ );
1769
+ }
1770
+ );
1771
+ vn.displayName = "FileManager";
1772
+ export {
1773
+ vn as F,
1774
+ Ut as f
1775
+ };
1776
+ //# sourceMappingURL=file-manager-UF8dkQF1.js.map