@alfadocs/ui-kit 1.51.0 → 1.52.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 (564) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DBI33cMp.js → actions-cell-renderer-DhmUGzRY.js} +4 -4
  2. package/dist/_chunks/{address-autocomplete-Dp5uMvKP.js → address-autocomplete-BVLoHU3E.js} +3 -3
  3. package/dist/_chunks/{address-fields-QfC-N3pw.js → address-fields-UiEXHxEX.js} +9 -9
  4. package/dist/_chunks/{agenda-card-CjjxlA9K.js → agenda-card-CakEvwnM.js} +4 -4
  5. package/dist/_chunks/{agenda-tray-CGhEEnFE.js → agenda-tray-C-_iu6Fo.js} +4 -4
  6. package/dist/_chunks/{ai-credits-notice-C9K_ley1.js → ai-credits-notice-Da0fJPXO.js} +4 -4
  7. package/dist/_chunks/{ai-permission-notice-DMG1o4Qa.js → ai-permission-notice-C5q_uHBA.js} +6 -6
  8. package/dist/_chunks/{ai-prompt-input-ucwO-z8g.js → ai-prompt-input-IObcUWqB.js} +4 -4
  9. package/dist/_chunks/{alert-CiQ5Pa3Q.js → alert-BhCstf2h.js} +3 -3
  10. package/dist/_chunks/{alia-sidebar-K3gaNH94.js → alia-sidebar-DyQMsyiz.js} +21 -21
  11. package/dist/_chunks/{anamnesis-card-CPjry4ur.js → anamnesis-card-D4RWzQXP.js} +5 -5
  12. package/dist/_chunks/{anamnesis-summary-card-DPyScUMM.js → anamnesis-summary-card-Bv0CZ-mk.js} +3 -3
  13. package/dist/_chunks/anamnesis-summary-rows-DaSoA80I.js +20926 -0
  14. package/dist/_chunks/{annotation-marker-CsUJGZjQ.js → annotation-marker-D-M7y4R1.js} +2 -2
  15. package/dist/_chunks/{antenatal-schedule-timeline-8fm3vPSV.js → antenatal-schedule-timeline-BZzgjfyd.js} +13 -13
  16. package/dist/_chunks/{app-frame-DIEMIC5V.js → app-frame-Cos-GSfw.js} +5 -5
  17. package/dist/_chunks/{appointment-card-DETaIfBb.js → appointment-card-CA2ynsmN.js} +8 -8
  18. package/dist/_chunks/{appointment-peek-B79v56Zc.js → appointment-peek-DpPzeYXm.js} +6 -6
  19. package/dist/_chunks/{appointment-timeline-tyJJPgVU.js → appointment-timeline-BZErHbD1.js} +6 -6
  20. package/dist/_chunks/{appointment-tray-Dq4zto_L.js → appointment-tray-DR_Zm4Gw.js} +9 -9
  21. package/dist/_chunks/{appointment-workflow-status-CS8ufF1f.js → appointment-workflow-status-DrWCNLbB.js} +2 -2
  22. package/dist/_chunks/{ar-BR1FGFP2.js → ar-pLopgMbL.js} +12 -12
  23. package/dist/_chunks/{audio-recorder-Ddlp5rVg.js → audio-recorder-BafA28cX.js} +5 -5
  24. package/dist/_chunks/{audio-visualiser-l6zPd0AG.js → audio-visualiser-CK2JyQW1.js} +2 -2
  25. package/dist/_chunks/{autocomplete-DSasZUf6.js → autocomplete-IfLaXwyb.js} +3 -3
  26. package/dist/_chunks/{avatar-BVvjKNTp.js → avatar-DYtwj1-R.js} +2 -2
  27. package/dist/_chunks/{badge-BAkd6_Pj.js → badge-hnBt8o7n.js} +6 -6
  28. package/dist/_chunks/{balance-badge-cell-BCEsdEOe.js → balance-badge-cell-CS-iKkLM.js} +8 -8
  29. package/dist/_chunks/{bishop-score-1NAiZh0K.js → bishop-score-BfDsm9HH.js} +6 -6
  30. package/dist/_chunks/{bmi-calculator-ZzzPZhhI.js → bmi-calculator-BNtmMzQy.js} +6 -6
  31. package/dist/_chunks/{booking-DmyX24Ls.js → booking-DP543-BT.js} +41 -40
  32. package/dist/_chunks/{breadcrumb-D3boYzD4.js → breadcrumb-xgVpPH2H.js} +4 -4
  33. package/dist/_chunks/{button-group-t9RrsCS6.js → button-group-DnSR6eN6.js} +29 -29
  34. package/dist/_chunks/{calculator-dialog-C0ixc3SU.js → calculator-dialog-BRjZMWuE.js} +2 -2
  35. package/dist/_chunks/{calendar-aqzmITxw.js → calendar-BwF5nQuW.js} +558 -502
  36. package/dist/_chunks/{calendar-event-card-DyFSIehr.js → calendar-event-card-DXAYWH6k.js} +2 -2
  37. package/dist/_chunks/{calendar-workspace-BqoPkCUp.js → calendar-workspace-B9MKJXER.js} +4406 -4395
  38. package/dist/_chunks/{care-plan-card-amX33mMF.js → care-plan-card-BanlKJZn.js} +8 -8
  39. package/dist/_chunks/{care-plan-entry-card-DNkEucjN.js → care-plan-entry-card-ByqT84_P.js} +9 -9
  40. package/dist/_chunks/{care-plan-header-CJi853Rf.js → care-plan-header-BwfUHMgM.js} +6 -6
  41. package/dist/_chunks/{carousel.agent-2EhJsAtl.js → carousel.agent-WKODAYVw.js} +5 -5
  42. package/dist/_chunks/{chart-B2HnwMP5.js → chart-CuE30cfr.js} +3 -3
  43. package/dist/_chunks/{chat-container-CYYego1W.js → chat-container-CAfyTxat.js} +3 -3
  44. package/dist/_chunks/{chat-input-CHUsUFOD.js → chat-input-DA10w969.js} +2 -2
  45. package/dist/_chunks/{chat-message-DTcRGhNo.js → chat-message-DoMjMa-M.js} +5 -5
  46. package/dist/_chunks/{checkbox-group-DomUzpkF.js → checkbox-group-C7czpHmJ.js} +2 -2
  47. package/dist/_chunks/{city-input-BGYc4lRV.js → city-input-CAnTVgBZ.js} +10 -10
  48. package/dist/_chunks/{clinical-note-card-B7s5BtEl.js → clinical-note-card-kvlUrmP-.js} +6 -6
  49. package/dist/_chunks/{code-block-BrwcZNPq.js → code-block-NtHjtagI.js} +5 -5
  50. package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-Yl99lHuF.js} +3 -3
  51. package/dist/_chunks/{combobox-B_rLwmSv.js → combobox-Iel8y3u6.js} +2 -2
  52. package/dist/_chunks/{command-palette-DhgGo7GJ.js → command-palette-D9TBzmOG.js} +4 -4
  53. package/dist/_chunks/{connection-status-DMheLE65.js → connection-status-Dz8o-Fui.js} +4 -4
  54. package/dist/_chunks/{contact-card-0hnFJwrz.js → contact-card-D2gXrxlL.js} +12 -12
  55. package/dist/_chunks/{contact-profile-card-zQLGGFKG.js → contact-profile-card-B7cXr8g5.js} +5 -5
  56. package/dist/_chunks/{control-room-rail-5iuM3jcm.js → control-room-rail-B446rHSL.js} +3 -3
  57. package/dist/_chunks/{copy-field-C-KvrgOG.js → copy-field-CiIuVbKe.js} +2 -2
  58. package/dist/_chunks/{country-select-C5jZjO8O.js → country-select-BYa4BrEi.js} +3 -3
  59. package/dist/_chunks/{cycle-calculator-DQMCeEzn.js → cycle-calculator-D_5f9VSN.js} +10 -10
  60. package/dist/_chunks/{dashboard-grid-H7uph3HO.js → dashboard-grid-DWNP02Ff.js} +3 -3
  61. package/dist/_chunks/data-table-DJvEwZZx.js +1989 -0
  62. package/dist/_chunks/{data-table-tabs-Dd_O1nPY.js → data-table-tabs-Dc6zvoI_.js} +5 -5
  63. package/dist/_chunks/{date-picker-6tFnKFty.js → date-picker-p9yz3pxc.js} +83 -80
  64. package/dist/_chunks/{date-picker-variants-B9NLAfUK.js → date-picker-variants-B3AFKDSu.js} +706 -658
  65. package/dist/_chunks/{date-range-picker-TpmECKRh.js → date-range-picker-DIy8gNY0.js} +153 -150
  66. package/dist/_chunks/{date-time-picker-DijEae25.js → date-time-picker-C3UVzqOm.js} +86 -77
  67. package/dist/_chunks/{de-3iM4rGqo.js → de-lVkJRPnh.js} +5 -5
  68. package/dist/_chunks/{dependent-selector-58hTg5rB.js → dependent-selector-CPiolWiw.js} +4 -4
  69. package/dist/_chunks/{description-list-DOPu69Jg.js → description-list-9rchqp5q.js} +2 -2
  70. package/dist/_chunks/{dialog-BJiLqhx6.js → dialog-D52AI4nF.js} +2 -2
  71. package/dist/_chunks/{document-preview-Dzh1YAz8.js → document-preview-1CZJg6CX.js} +6 -6
  72. package/dist/_chunks/{document-scanner-BSVwMR4V.js → document-scanner-T5jHiraQ.js} +4 -4
  73. package/dist/_chunks/{dropdown-menu-DIzxr_lp.js → dropdown-menu-B5mgV1kV.js} +2 -2
  74. package/dist/_chunks/{due-date-calculator-DUjw4w5O.js → due-date-calculator-iJXm6HOj.js} +11 -11
  75. package/dist/_chunks/{editable-currency-cell-renderer-Cch3RIJL.js → editable-currency-cell-renderer-DdMHme5y.js} +8 -8
  76. package/dist/_chunks/{editable-description-CRQib91p.js → editable-description-Cy3AZ5K2.js} +2 -2
  77. package/dist/_chunks/{editor-overlay-DsA7vR5C.js → editor-overlay-C0awV6ba.js} +2 -2
  78. package/dist/_chunks/{el-C96rGJvU.js → el-CHzxNWPj.js} +6 -6
  79. package/dist/_chunks/{email-input-Dpe63k0K.js → email-input-ebdovOmh.js} +3 -3
  80. package/dist/_chunks/{empty-state-Ck1wVWdN.js → empty-state-DActfjdn.js} +2 -2
  81. package/dist/_chunks/en-GB-CwxYmmhU.js +45 -0
  82. package/dist/_chunks/{entity-summary-Cvs21xPr.js → entity-summary-oW3_jFhU.js} +6 -6
  83. package/dist/_chunks/{error-boundary-C_HAzVLO.js → error-boundary--w5hYiQ-.js} +3 -3
  84. package/dist/_chunks/{es-Cxiqjx8r.js → es-Ck-oxbHW.js} +8 -8
  85. package/dist/_chunks/{face-scheme-DVZZTuXT.js → face-scheme-Dg7KcbW2.js} +9 -9
  86. package/dist/_chunks/{fetal-weight-B-lO-948.js → fetal-weight-BoIkl2t1.js} +6 -6
  87. package/dist/_chunks/{field-array-B3IDOct8.js → field-array-BF2nCmvt.js} +2 -2
  88. package/dist/_chunks/{file-manager-COUb-w8j.js → file-manager-BGHShxn_.js} +19 -19
  89. package/dist/_chunks/{file-upload-B242a_Y1.js → file-upload-OMlGHz70.js} +2 -2
  90. package/dist/_chunks/{finished-terminal-BrAWwfOw.js → finished-terminal-BguGAUdg.js} +2 -2
  91. package/dist/_chunks/{fiscal-code-input-CwUwhUZy.js → fiscal-code-input-CuuE8_dt.js} +2 -2
  92. package/dist/_chunks/{floating-action-button-pojvb9gG.js → floating-action-button-BesoUmO_.js} +6 -6
  93. package/dist/_chunks/{form-field-CahJzTxp.js → form-field-YUJl_U5l.js} +2 -2
  94. package/dist/_chunks/{format-4HNwNGrN.js → format-D-1gTdHF.js} +47 -43
  95. package/dist/_chunks/{fr-Bhr6SYKj.js → fr-fWRnDcSD.js} +13 -13
  96. package/dist/_chunks/{freemium-paywall-DiPJrL18.js → freemium-paywall-BhxKSEJD.js} +4 -4
  97. package/dist/_chunks/{gestational-age-calculator-BVPtrWKf.js → gestational-age-calculator-CjZ7v-8x.js} +13 -13
  98. package/dist/_chunks/{hcg-doubling-CPktiA3H.js → hcg-doubling-BYMogA0e.js} +15 -15
  99. package/dist/_chunks/{header-C8NbLgVq.js → header-CzJbtTGQ.js} +4 -4
  100. package/dist/_chunks/{header-settings-D0M3WNTS.js → header-settings-BqdBe4zk.js} +6 -6
  101. package/dist/_chunks/{help-me-write-templates-CYAKuXZ3.js → help-me-write-templates-CGCyhAVE.js} +15 -15
  102. package/dist/_chunks/{hi-BxXX26d_.js → hi-B5uX0h3V.js} +14 -14
  103. package/dist/_chunks/{hover-card-BM0vNmq4.js → hover-card-DEMPFs9M.js} +2 -2
  104. package/dist/_chunks/{iban-input-DXIA8Ln_.js → iban-input-D88HRGZo.js} +2 -2
  105. package/dist/_chunks/{icon-button-group-ud2BLmxe.js → icon-button-group-DHRz90jY.js} +3 -3
  106. package/dist/_chunks/{icon-picker-B1PwkUHy.js → icon-picker-C5Fhx1-3.js} +4 -4
  107. package/dist/_chunks/{image-cropper-DM6hpXUw.js → image-cropper-CNBGkG7P.js} +2 -2
  108. package/dist/_chunks/{info-tip-CywkQ1NX.js → info-tip-DfmEvyAF.js} +3 -3
  109. package/dist/_chunks/{insert-result-Fu9AHxR6.js → insert-result-BuWQl11Z.js} +2 -2
  110. package/dist/_chunks/intl-locale-CXM-B8EP.js +16 -0
  111. package/dist/_chunks/{isSameWeek-B73MagWB.js → isSameWeek-u81Z-J7h.js} +2 -2
  112. package/dist/_chunks/{it-Xmjomvyj.js → it-DBoNIelY.js} +17 -17
  113. package/dist/_chunks/{ja-mfZvt1ZV.js → ja-Du8gfg8p.js} +6 -6
  114. package/dist/_chunks/{kbd-D855ZXIW.js → kbd-BLovyx1R.js} +2 -2
  115. package/dist/_chunks/{key-value-pair-BL1J3_Km.js → key-value-pair-DZH8ESsc.js} +2 -2
  116. package/dist/_chunks/{kit-extensions-B9Qn6VIc.js → kit-extensions-CF5mDF_Z.js} +6 -6
  117. package/dist/_chunks/{link-CPb_pZPr.js → link-BlVUIKk1.js} +2 -2
  118. package/dist/_chunks/{link-cell-renderer-BcW3F1j9.js → link-cell-renderer-DvcbSHyp.js} +11 -11
  119. package/dist/_chunks/{list-DgE1xWBM.js → list-RRN2TJ_7.js} +2 -2
  120. package/dist/_chunks/{locale-picker-Z42P8T-i.js → locale-picker-DYDppQdZ.js} +6 -6
  121. package/dist/_chunks/{map-view-DxYPJjM9.js → map-view-CmNGS6Ok.js} +3 -3
  122. package/dist/_chunks/{marketplace-app-shell-rTTvWRrE.js → marketplace-app-shell-rd1bSSm4.js} +137 -128
  123. package/dist/_chunks/{message-card-CUBPPn4Z.js → message-card-Dub3790J.js} +4 -4
  124. package/dist/_chunks/{message-tray-uy3DAIbn.js → message-tray-CTd6CsnG.js} +4 -4
  125. package/dist/_chunks/{money-BXLBIRVO.js → money-GypsuFk2.js} +2 -2
  126. package/dist/_chunks/{multi-select-N4Smh-gj.js → multi-select-Bx0_cgPI.js} +2 -2
  127. package/dist/_chunks/{muscle-scheme-CH-vQ7Ch.js → muscle-scheme-X2bdmsQt.js} +4 -4
  128. package/dist/_chunks/{nav-grid-gRudLsPX.js → nav-grid-BnY0Ilet.js} +2 -2
  129. package/dist/_chunks/{navigation-menu-D3VndouD.js → navigation-menu-DbaSlvdO.js} +25 -25
  130. package/dist/_chunks/{nl-DDs-KEnD.js → nl-BCBwxYi8.js} +9 -9
  131. package/dist/_chunks/{note-attachment-CGjNTrAC.js → note-attachment-CpPRIfSn.js} +4 -4
  132. package/dist/_chunks/{note-timeline-CVnKL0p6.js → note-timeline-CZUmobcn.js} +3 -3
  133. package/dist/_chunks/{notes-panel-Dka4Z2M7.js → notes-panel-CPfxz-1j.js} +8 -8
  134. package/dist/_chunks/{notification-card-Hy8w3UWx.js → notification-card-B39g86vM.js} +11 -11
  135. package/dist/_chunks/{notification-tray-VuV3XXB8.js → notification-tray-WsP7c1jf.js} +4 -4
  136. package/dist/_chunks/{number-input-Cgu2TtA8.js → number-input-BLrx3utH.js} +2 -2
  137. package/dist/_chunks/{operator-hero-DyrNLoRO.js → operator-hero-BnBPxwOi.js} +10 -10
  138. package/dist/_chunks/{optical-prescription-C2n6d0HO.js → optical-prescription-x--Rpmmx.js} +6 -6
  139. package/dist/_chunks/{otp-input-DzBQ-CpE.js → otp-input-Dz8WMg4F.js} +2 -2
  140. package/dist/_chunks/{pagination-B0N2qGy_.js → pagination-CzEkpfti.js} +6 -6
  141. package/dist/_chunks/{parse-DPqj4JtD.js → parse-DeDYl04y.js} +32 -32
  142. package/dist/_chunks/{parseISO-fOGpHKXm.js → parseISO-y3LncvfO.js} +2 -2
  143. package/dist/_chunks/{patient-details-D9sAM3qh.js → patient-details-BSAMAd3I.js} +6 -6
  144. package/dist/_chunks/{patient-field-row-CT04C_lZ.js → patient-field-row-dUF2cW2G.js} +27 -27
  145. package/dist/_chunks/{patient-search-DkIukAMQ.js → patient-search-CXl0FNfN.js} +13 -13
  146. package/dist/_chunks/{patient-summary-card-DI0BH-Fe.js → patient-summary-card-DF-Mxcma.js} +9 -9
  147. package/dist/_chunks/{payment-automation-upsell-vQBIyUky.js → payment-automation-upsell-DNiraNhF.js} +5 -5
  148. package/dist/_chunks/{payment-form-DqJFiplX.js → payment-form-DxsjXYHJ.js} +6 -6
  149. package/dist/_chunks/{payment-request-card-BSaJzhxz.js → payment-request-card-BFsmHLtf.js} +8 -8
  150. package/dist/_chunks/{pdf-viewer-DUKdn5iq.js → pdf-viewer-hzfM5pZf.js} +6 -6
  151. package/dist/_chunks/{periodontal-chart-BcTcOc79.js → periodontal-chart-Bvii6uOg.js} +3 -3
  152. package/dist/_chunks/{periodontal-chart-card-NS_nToBf.js → periodontal-chart-card-DTbvFQO7.js} +4 -4
  153. package/dist/_chunks/{periodontal-diagnosis-B8WqI0eU.js → periodontal-diagnosis-BqEo0usu.js} +3 -3
  154. package/dist/_chunks/{periodontal-risk-chart-DsFRFFSz.js → periodontal-risk-chart-C1Y5f-md.js} +3 -3
  155. package/dist/_chunks/{permission-matrix-VdAXjjHU.js → permission-matrix-DHKECaNW.js} +3 -3
  156. package/dist/_chunks/{phone-input-sQj-zi59.js → phone-input-opMMHkyh.js} +2 -2
  157. package/dist/_chunks/{pl-BYYMnEWP.js → pl-HwLM6gPs.js} +7 -7
  158. package/dist/_chunks/{popover-SASSeAdY.js → popover-CGYPYIVi.js} +2 -2
  159. package/dist/_chunks/{position-grid-CcvqHaKN.js → position-grid-D2D5_Tze.js} +2 -2
  160. package/dist/_chunks/{postal-code-input-BznBxVxf.js → postal-code-input-Dv02t5MD.js} +3 -3
  161. package/dist/_chunks/{practice-profile-hero-B-WcJYNH.js → practice-profile-hero-Bc3AyBiM.js} +4 -4
  162. package/dist/_chunks/{practice-results-C3ifcObw.js → practice-results-DjhcggtZ.js} +28 -28
  163. package/dist/_chunks/{pregnancy-dating-CpJ3iYvD.js → pregnancy-dating-CcPxK3S3.js} +14 -14
  164. package/dist/_chunks/{pregnancy-weight-gain-kDOhA2vZ.js → pregnancy-weight-gain-tGbbravi.js} +6 -6
  165. package/dist/_chunks/{privacy-lock-CEyvNpC8.js → privacy-lock-Bh4O7Y7g.js} +15 -15
  166. package/dist/_chunks/{privacy-mask-TzMlEu3Q.js → privacy-mask-noG15O9q.js} +24 -24
  167. package/dist/_chunks/{product-hub-panel-b70i9Hi1.js → product-hub-panel-BmBzDba9.js} +23 -23
  168. package/dist/_chunks/{progress-CK8otcQ-.js → progress-TIAsNHQW.js} +4 -4
  169. package/dist/_chunks/{province-select-BiszMRRY.js → province-select-BZtM0RSR.js} +3 -3
  170. package/dist/_chunks/{pt-BSPnVrQ7.js → pt-BxhT5ZQH.js} +10 -10
  171. package/dist/_chunks/{public-footer.agent-BKkK3T3V.js → public-footer.agent-CVYmHY94.js} +4 -4
  172. package/dist/_chunks/{public-header.agent-D0ApOrmx.js → public-header.agent-1mcrQqIM.js} +3 -3
  173. package/dist/_chunks/{qr-code-DOJs4suh.js → qr-code-C3m9o7om.js} +2 -2
  174. package/dist/_chunks/{radiograph-panel.agent-jhwaIW8U.js → radiograph-panel.agent-BP71J_VB.js} +12 -12
  175. package/dist/_chunks/{rating-BYbUowdK.js → rating-C1Vrmpsi.js} +2 -2
  176. package/dist/_chunks/{recaptcha-widget-BC-4To9b.js → recaptcha-widget-BNAeSTCo.js} +2 -2
  177. package/dist/_chunks/{resizable-DVGcfOrk.js → resizable-BKkNmZCl.js} +2 -2
  178. package/dist/_chunks/{reviews-panel-B5QC4FIp.js → reviews-panel-DDb_t7vy.js} +7 -7
  179. package/dist/_chunks/{rich-text-editor-DoBXdwmx.js → rich-text-editor-C7N4Cem6.js} +1707 -1617
  180. package/dist/_chunks/{ro-BbiylGmG.js → ro-Do9W55ae.js} +2 -2
  181. package/dist/_chunks/{ru-BX_qsV67.js → ru-PDBX5gdf.js} +13 -13
  182. package/dist/_chunks/{search-bar-6bHatpYJ.js → search-bar-Blq_QeSe.js} +4 -4
  183. package/dist/_chunks/{search-input-B7GmlPIE.js → search-input-DfsAu3P2.js} +4 -4
  184. package/dist/_chunks/{select-upNAltly.js → select-Br88h070.js} +2 -2
  185. package/dist/_chunks/{session-countdown-26XB5u38.js → session-countdown-DWUVDDox.js} +3 -3
  186. package/dist/_chunks/{sheet-CwhNzxbr.js → sheet-BE6oi30q.js} +2 -2
  187. package/dist/_chunks/{sidebar-DbZXLl8h.js → sidebar-2GBc0ZUa.js} +7 -7
  188. package/dist/_chunks/{sign-document-CRQuAn4W.js → sign-document-Buw-zC_7.js} +4 -4
  189. package/dist/_chunks/{sign-in-with-alfadocs-button-jxbze77L.js → sign-in-with-alfadocs-button-Bd4VPGQh.js} +3 -3
  190. package/dist/_chunks/{signature-capture-D6ut9_IR.js → signature-capture-F6KViBF_.js} +2 -2
  191. package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-DBIGiY-J.js} +3 -3
  192. package/dist/_chunks/{signature-request-BorHf3CY.js → signature-request-DqZkn-iB.js} +154 -154
  193. package/dist/_chunks/{signature-status-chip-Dz6sS2oA.js → signature-status-chip-DP3qRijv.js} +3 -3
  194. package/dist/_chunks/{skip-link-BaSMtPwB.js → skip-link-BOQzBUVb.js} +2 -2
  195. package/dist/_chunks/{slider-DN1CWkKB.js → slider-BRq2lL-l.js} +2 -2
  196. package/dist/_chunks/{slot-grid-xgf2UKLS.js → slot-grid-Bkg9MVXP.js} +5 -5
  197. package/dist/_chunks/{smart-date-CsPlilQA.js → smart-date-pYK6WmM_.js} +2 -2
  198. package/dist/_chunks/{social-sign-in-button-dlpPI5l7.js → social-sign-in-button-Bb2UQpsA.js} +8 -8
  199. package/dist/_chunks/{sparkline-Dx_sxK3J.js → sparkline-ZOxMBU76.js} +3 -3
  200. package/dist/_chunks/{spinner-hbwuKwMf.js → spinner-DxjSZLD-.js} +2 -2
  201. package/dist/_chunks/{sq-i9UOk4P7.js → sq-DnvsgyIh.js} +6 -6
  202. package/dist/_chunks/{stat-Bs80Z6Yv.js → stat-Ce9ymEKm.js} +3 -3
  203. package/dist/_chunks/{stepper-accordion-jMR8NaOB.js → stepper-accordion-BPNS6J6B.js} +2 -2
  204. package/dist/_chunks/{stepper-progress-Bv0njx4g.js → stepper-progress-D6H8wQiV.js} +2 -2
  205. package/dist/_chunks/{streaming-text-Cos2fVTw.js → streaming-text-D0IJeRBg.js} +2 -2
  206. package/dist/_chunks/subDays-XBMBTVOO.js +8 -0
  207. package/dist/_chunks/{suggestion-chip-Bk4PmYTg.js → suggestion-chip-BNRWZL51.js} +2 -2
  208. package/dist/_chunks/{sv-CpTdtmDQ.js → sv-CpFSK8xS.js} +4 -4
  209. package/dist/_chunks/{switch-OILsBLWo.js → switch-DXGD2Drz.js} +2 -2
  210. package/dist/_chunks/{tab-bar-BrkMUW0c.js → tab-bar-DRKiomgj.js} +4 -4
  211. package/dist/_chunks/{tabs-tK22Mz7r.js → tabs-DLXVEDsa.js} +4 -4
  212. package/dist/_chunks/{tag-B65tLWvD.js → tag-CS5cXpfx.js} +2 -2
  213. package/dist/_chunks/{task-card-CLpHmqEY.js → task-card-CngF4Zee.js} +3 -3
  214. package/dist/_chunks/{task-editor-B4UGsU7l.js → task-editor-Dz93rRXg.js} +15 -15
  215. package/dist/_chunks/{task-tray-dsmYgjVb.js → task-tray-CB6_BvH9.js} +4 -4
  216. package/dist/_chunks/{tasks-panel-CwwVw491.js → tasks-panel-DHAoTQtR.js} +9 -9
  217. package/dist/_chunks/{text-area-Bt3p7Pt0.js → text-area-Cjtw7mna.js} +2 -2
  218. package/dist/_chunks/{text-input-CUvCb6ST.js → text-input-CLaItY93.js} +2 -2
  219. package/dist/_chunks/{theme-toggle-jyoyhbJL.js → theme-toggle-Byg0x2vB.js} +9 -9
  220. package/dist/_chunks/{time-picker-D0RS391l.js → time-picker-BG7G3ujX.js} +2 -2
  221. package/dist/_chunks/{timeline-ChY7iZrs.js → timeline-CVLjybJ3.js} +4 -4
  222. package/dist/_chunks/{timestamp-BV2lC-wV.js → timestamp-DPLDWdxA.js} +2 -2
  223. package/dist/_chunks/{toast-FijDyPnv.js → toast-6wbpghjF.js} +2 -2
  224. package/dist/_chunks/{token-insert-menu-Cjf99IdN.js → token-insert-menu-DgtBIbNu.js} +2 -2
  225. package/dist/_chunks/{tool-rail-DphMl1hX.js → tool-rail-CXcLzxPb.js} +3 -3
  226. package/dist/_chunks/{tooth-finding-palette-vqC-D2Ye.js → tooth-finding-palette-DNQ3G2Tz.js} +2 -2
  227. package/dist/_chunks/{tooth-scheme-BaCJnyg9.js → tooth-scheme-BLbwUVer.js} +5 -5
  228. package/dist/_chunks/{tr-DXG2QN1K.js → tr-DW4oQYHT.js} +5 -5
  229. package/dist/_chunks/{transaction-chip-CwgcJiqF.js → transaction-chip-CohY6sTA.js} +6 -6
  230. package/dist/_chunks/{transcript-panel-u2HHxZB6.js → transcript-panel-Dve7bsm7.js} +3 -3
  231. package/dist/_chunks/{treatment-receipt-C-gWZ6uv.js → treatment-receipt-DF2Slh-x.js} +5 -5
  232. package/dist/_chunks/{typing-indicator-DHeVN4ob.js → typing-indicator-BmwMQSxw.js} +9 -9
  233. package/dist/_chunks/{unit-converter-CGpOgarU.js → unit-converter-D8WnJbZm.js} +6 -6
  234. package/dist/_chunks/use-appointment-details-read-YsuJgYeB.js +2198 -0
  235. package/dist/_chunks/{use-edge-resize-BHesP0kg.js → use-edge-resize-DHbyQwu8.js} +15 -15
  236. package/dist/_chunks/use-locale-BExNy9Dl.js +16 -0
  237. package/dist/_chunks/{use-password-requirements-Bwtqx1qN.js → use-password-requirements-DK4hV1Ik.js} +4 -4
  238. package/dist/_chunks/{variables-menu-aJLKJ_cu.js → variables-menu-DQl8H4Gh.js} +2 -2
  239. package/dist/_chunks/{wallet-pay-button--dnR6NfJ.js → wallet-pay-button-C-GFl7RO.js} +3 -3
  240. package/dist/_chunks/{warning-stack-7Hffm7K1.js → warning-stack-CzKSeB5v.js} +3 -3
  241. package/dist/_chunks/{whatsapp-button-Ai4YAVkl.js → whatsapp-button-DV9JFmtq.js} +2 -2
  242. package/dist/_chunks/{widget-picker-CilQvcNL.js → widget-picker-b5NCHxFe.js} +28 -28
  243. package/dist/_chunks/{workflow-map-Jfe9L9Wt.js → workflow-map-C7fHKTXL.js} +15 -15
  244. package/dist/_chunks/{workflow-status-jHfsIDzi.js → workflow-status-DDnsIrLt.js} +4 -4
  245. package/dist/_chunks/{zh-CN-vPkPEK6H.js → zh-CN-QGEs29fQ.js} +7 -7
  246. package/dist/agent-catalog.json +1 -1
  247. package/dist/components/_shared/date-locale.d.ts +2 -2
  248. package/dist/components/_shared/day-picker-labels.d.ts +6 -0
  249. package/dist/components/_shared/intl-locale.d.ts +10 -0
  250. package/dist/components/address-autocomplete/index.js +1 -1
  251. package/dist/components/address-fields/index.js +1 -1
  252. package/dist/components/agenda-card/index.js +1 -1
  253. package/dist/components/agenda-tray/index.js +1 -1
  254. package/dist/components/ai-credits-notice/index.js +1 -1
  255. package/dist/components/ai-permission-notice/index.js +1 -1
  256. package/dist/components/ai-prompt-input/index.js +1 -1
  257. package/dist/components/alert/index.js +1 -1
  258. package/dist/components/anamnesis-card/index.js +1 -1
  259. package/dist/components/anamnesis-summary-card/index.js +1 -1
  260. package/dist/components/annotation-marker/index.js +1 -1
  261. package/dist/components/app-frame/index.js +1 -1
  262. package/dist/components/appointment-card/index.js +2 -2
  263. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
  264. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +19 -5
  265. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +6 -2
  266. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +51 -1
  267. package/dist/components/appointment-details-panel/index.d.ts +1 -1
  268. package/dist/components/appointment-details-panel/index.js +1 -1
  269. package/dist/components/appointment-peek/index.js +1 -1
  270. package/dist/components/appointment-timeline/index.js +1 -1
  271. package/dist/components/audio-recorder/index.js +1 -1
  272. package/dist/components/audio-visualiser/index.js +1 -1
  273. package/dist/components/autocomplete/index.js +1 -1
  274. package/dist/components/avatar/index.js +1 -1
  275. package/dist/components/badge/index.js +1 -1
  276. package/dist/components/bishop-score/index.js +1 -1
  277. package/dist/components/bmi-calculator/index.js +1 -1
  278. package/dist/components/booking/index.js +1 -1
  279. package/dist/components/breadcrumb/index.js +1 -1
  280. package/dist/components/button-group/index.js +1 -1
  281. package/dist/components/calculator-dialog/index.js +1 -1
  282. package/dist/components/calendar/calendar-locale.d.ts +5 -0
  283. package/dist/components/calendar/calendar.d.ts +1 -1
  284. package/dist/components/calendar/index.js +1 -1
  285. package/dist/components/calendar-event-card/index.js +1 -1
  286. package/dist/components/care-plan-card/index.js +1 -1
  287. package/dist/components/care-plan-entry-card/index.js +1 -1
  288. package/dist/components/care-plan-header/index.js +1 -1
  289. package/dist/components/carousel/index.js +1 -1
  290. package/dist/components/chart/index.js +1 -1
  291. package/dist/components/chat-container/index.js +1 -1
  292. package/dist/components/chat-input/index.js +1 -1
  293. package/dist/components/chat-message/index.js +1 -1
  294. package/dist/components/checkbox-group/index.js +1 -1
  295. package/dist/components/city-input/index.js +1 -1
  296. package/dist/components/clinical-note-card/index.js +1 -1
  297. package/dist/components/color-picker/index.js +1 -1
  298. package/dist/components/combobox/index.js +1 -1
  299. package/dist/components/command-palette/index.js +1 -1
  300. package/dist/components/connection-status/index.js +1 -1
  301. package/dist/components/contact-card/index.js +1 -1
  302. package/dist/components/contact-profile-card/index.js +1 -1
  303. package/dist/components/control-room-rail/index.js +1 -1
  304. package/dist/components/copy-field/index.js +1 -1
  305. package/dist/components/country-select/index.js +1 -1
  306. package/dist/components/cycle-calculator/index.js +1 -1
  307. package/dist/components/dashboard-grid/index.js +1 -1
  308. package/dist/components/data-table/ag-grid-locale.d.ts +5 -0
  309. package/dist/components/data-table/index.js +4 -4
  310. package/dist/components/data-table-tabs/index.js +1 -1
  311. package/dist/components/date-picker/index.js +1 -1
  312. package/dist/components/date-range-picker/index.js +1 -1
  313. package/dist/components/date-time-picker/index.js +1 -1
  314. package/dist/components/dependent-selector/index.js +1 -1
  315. package/dist/components/description-list/index.js +1 -1
  316. package/dist/components/dialog/index.js +1 -1
  317. package/dist/components/document-preview/index.js +1 -1
  318. package/dist/components/document-scanner/index.js +1 -1
  319. package/dist/components/dropdown-menu/index.js +1 -1
  320. package/dist/components/due-date-calculator/index.js +2 -2
  321. package/dist/components/editable-description/index.js +1 -1
  322. package/dist/components/editor-overlay/index.js +1 -1
  323. package/dist/components/email-input/index.js +1 -1
  324. package/dist/components/empty-state/index.js +1 -1
  325. package/dist/components/entity-summary/index.js +1 -1
  326. package/dist/components/error-boundary/index.js +1 -1
  327. package/dist/components/face-scheme/index.js +1 -1
  328. package/dist/components/fetal-weight/index.js +1 -1
  329. package/dist/components/field-array/index.js +1 -1
  330. package/dist/components/file-manager/index.js +1 -1
  331. package/dist/components/file-upload/index.js +1 -1
  332. package/dist/components/finished-terminal/index.js +1 -1
  333. package/dist/components/fiscal-code-input/index.js +1 -1
  334. package/dist/components/floating-action-button/index.js +1 -1
  335. package/dist/components/form-field/index.js +1 -1
  336. package/dist/components/freemium-paywall/index.js +1 -1
  337. package/dist/components/gestational-age-calculator/index.js +1 -1
  338. package/dist/components/hcg-doubling/hcg.d.ts +1 -1
  339. package/dist/components/hcg-doubling/index.js +1 -1
  340. package/dist/components/header/index.js +1 -1
  341. package/dist/components/header-settings/index.js +1 -1
  342. package/dist/components/hover-card/index.js +1 -1
  343. package/dist/components/iban-input/index.js +1 -1
  344. package/dist/components/icon-button-group/index.js +1 -1
  345. package/dist/components/icon-picker/index.js +1 -1
  346. package/dist/components/image-cropper/index.js +1 -1
  347. package/dist/components/info-tip/index.js +1 -1
  348. package/dist/components/kbd/index.js +1 -1
  349. package/dist/components/key-value-pair/index.js +1 -1
  350. package/dist/components/link/index.js +1 -1
  351. package/dist/components/list/index.js +1 -1
  352. package/dist/components/locale-picker/index.js +1 -1
  353. package/dist/components/map-view/index.js +1 -1
  354. package/dist/components/message-card/index.js +1 -1
  355. package/dist/components/message-tray/index.js +1 -1
  356. package/dist/components/money/index.js +1 -1
  357. package/dist/components/multi-select/index.js +1 -1
  358. package/dist/components/muscle-scheme/index.js +1 -1
  359. package/dist/components/nav-grid/index.js +1 -1
  360. package/dist/components/navigation-menu/index.js +2 -2
  361. package/dist/components/note-timeline/index.js +1 -1
  362. package/dist/components/notes-panel/index.js +1 -1
  363. package/dist/components/notification-card/index.js +1 -1
  364. package/dist/components/notification-tray/index.js +1 -1
  365. package/dist/components/number-input/index.js +1 -1
  366. package/dist/components/operator-hero/index.js +1 -1
  367. package/dist/components/optical-prescription/index.js +1 -1
  368. package/dist/components/otp-input/index.js +1 -1
  369. package/dist/components/pagination/index.js +1 -1
  370. package/dist/components/password-input/index.js +1 -1
  371. package/dist/components/patient-details/index.js +1 -1
  372. package/dist/components/patient-search/index.js +1 -1
  373. package/dist/components/patient-summary-card/index.js +1 -1
  374. package/dist/components/patient-table/index.js +1 -1
  375. package/dist/components/payment-card/index.js +1 -1
  376. package/dist/components/payment-form/index.js +1 -1
  377. package/dist/components/pdf-viewer/index.js +1 -1
  378. package/dist/components/periodontal-chart/index.js +1 -1
  379. package/dist/components/periodontal-chart-card/index.js +1 -1
  380. package/dist/components/periodontal-diagnosis/index.js +1 -1
  381. package/dist/components/periodontal-risk-chart/index.js +1 -1
  382. package/dist/components/permission-matrix/index.js +1 -1
  383. package/dist/components/phone-input/index.js +1 -1
  384. package/dist/components/popover/index.js +1 -1
  385. package/dist/components/position-grid/index.js +1 -1
  386. package/dist/components/postal-code-input/index.js +1 -1
  387. package/dist/components/practice-profile-hero/index.js +1 -1
  388. package/dist/components/practice-results/index.js +1 -1
  389. package/dist/components/pregnancy-dating/index.js +1 -1
  390. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  391. package/dist/components/privacy-lock/index.js +1 -1
  392. package/dist/components/product-hub-tray/index.js +1 -1
  393. package/dist/components/progress/index.js +1 -1
  394. package/dist/components/province-select/index.js +1 -1
  395. package/dist/components/public-footer/index.js +1 -1
  396. package/dist/components/public-header/index.js +1 -1
  397. package/dist/components/qr-code/index.js +1 -1
  398. package/dist/components/radiograph-panel/index.js +1 -1
  399. package/dist/components/rating/index.js +1 -1
  400. package/dist/components/recaptcha-widget/index.js +1 -1
  401. package/dist/components/resizable/index.js +1 -1
  402. package/dist/components/reviews-panel/index.js +1 -1
  403. package/dist/components/rich-text-editor/index.js +2 -2
  404. package/dist/components/rich-text-editor/redactor-locale.d.ts +4 -0
  405. package/dist/components/rich-text-editor/rich-text-editor.d.ts +8 -3
  406. package/dist/components/search-bar/index.js +1 -1
  407. package/dist/components/search-input/index.js +1 -1
  408. package/dist/components/select/index.js +1 -1
  409. package/dist/components/session-countdown/index.js +1 -1
  410. package/dist/components/sheet/index.js +1 -1
  411. package/dist/components/sidebar/index.js +1 -1
  412. package/dist/components/sign-document/index.js +1 -1
  413. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  414. package/dist/components/signature-capture/index.js +1 -1
  415. package/dist/components/signature-field/index.js +1 -1
  416. package/dist/components/signature-status-chip/index.js +1 -1
  417. package/dist/components/skeleton-scheme/index.js +3 -3
  418. package/dist/components/skip-link/index.js +1 -1
  419. package/dist/components/skip-link/skip-link.d.ts +1 -1
  420. package/dist/components/slider/index.js +1 -1
  421. package/dist/components/slot-grid/index.js +1 -1
  422. package/dist/components/smart-date/index.js +1 -1
  423. package/dist/components/smart-date/smart-date.d.ts +1 -1
  424. package/dist/components/social-sign-in-button/index.js +1 -1
  425. package/dist/components/sparkline/index.js +1 -1
  426. package/dist/components/spinner/index.js +1 -1
  427. package/dist/components/stat/index.js +1 -1
  428. package/dist/components/stepper-accordion/index.js +1 -1
  429. package/dist/components/stepper-progress/index.js +1 -1
  430. package/dist/components/streaming-text/index.js +1 -1
  431. package/dist/components/suggestion-chip/index.js +1 -1
  432. package/dist/components/switch/index.js +1 -1
  433. package/dist/components/tab-bar/index.js +1 -1
  434. package/dist/components/tabs/index.js +1 -1
  435. package/dist/components/tag/index.js +1 -1
  436. package/dist/components/task-card/index.js +1 -1
  437. package/dist/components/task-editor/index.js +1 -1
  438. package/dist/components/task-tray/index.js +1 -1
  439. package/dist/components/tasks-panel/index.js +1 -1
  440. package/dist/components/text-area/index.js +1 -1
  441. package/dist/components/text-input/index.js +1 -1
  442. package/dist/components/theme-toggle/index.js +1 -1
  443. package/dist/components/time-picker/index.js +1 -1
  444. package/dist/components/timeline/index.js +1 -1
  445. package/dist/components/timestamp/index.js +1 -1
  446. package/dist/components/toast/index.js +1 -1
  447. package/dist/components/token-insert-menu/index.js +1 -1
  448. package/dist/components/tool-rail/index.js +1 -1
  449. package/dist/components/tooth-finding-palette/index.js +1 -1
  450. package/dist/components/tooth-scheme/index.js +1 -1
  451. package/dist/components/transaction-chip/index.js +1 -1
  452. package/dist/components/transcript-panel/index.js +1 -1
  453. package/dist/components/treatment-receipt/index.js +1 -1
  454. package/dist/components/typing-indicator/index.js +1 -1
  455. package/dist/components/unit-converter/index.js +1 -1
  456. package/dist/components/variables-menu/index.js +1 -1
  457. package/dist/components/wallet-pay-button/index.js +1 -1
  458. package/dist/components/warning-stack/index.js +1 -1
  459. package/dist/components/whatsapp-button/index.js +1 -1
  460. package/dist/components/widget-picker/index.js +1 -1
  461. package/dist/components/workflow/index.js +1 -1
  462. package/dist/components/workflow-status/index.js +2 -2
  463. package/dist/hooks/index.js +2 -2
  464. package/dist/hooks/use-locale.d.ts +2 -16
  465. package/dist/i18n/config.d.ts +17 -13
  466. package/dist/i18n/config.js +127 -62
  467. package/dist/i18n/locale-meta.d.ts +1 -1
  468. package/dist/i18n/locales/ar.d.ts +911 -661
  469. package/dist/i18n/locales/ar.js +912 -666
  470. package/dist/i18n/locales/de.d.ts +718 -480
  471. package/dist/i18n/locales/de.js +719 -485
  472. package/dist/i18n/locales/el.d.ts +960 -722
  473. package/dist/i18n/locales/el.js +960 -726
  474. package/dist/i18n/locales/en.d.ts +303 -65
  475. package/dist/i18n/locales/en.js +304 -70
  476. package/dist/i18n/locales/es.d.ts +782 -541
  477. package/dist/i18n/locales/es.js +783 -546
  478. package/dist/i18n/locales/fr.d.ts +725 -484
  479. package/dist/i18n/locales/fr.js +726 -489
  480. package/dist/i18n/locales/hi.d.ts +870 -632
  481. package/dist/i18n/locales/hi.js +871 -637
  482. package/dist/i18n/locales/it.d.ts +933 -692
  483. package/dist/i18n/locales/it.js +939 -697
  484. package/dist/i18n/locales/ja.d.ts +693 -455
  485. package/dist/i18n/locales/ja.js +694 -460
  486. package/dist/i18n/locales/nl.d.ts +718 -480
  487. package/dist/i18n/locales/nl.js +719 -485
  488. package/dist/i18n/locales/pl.d.ts +1014 -770
  489. package/dist/i18n/locales/pl.js +1014 -774
  490. package/dist/i18n/locales/pt.d.ts +806 -562
  491. package/dist/i18n/locales/pt.js +807 -567
  492. package/dist/i18n/locales/ro.d.ts +1055 -814
  493. package/dist/i18n/locales/ro.js +1056 -819
  494. package/dist/i18n/locales/ru.d.ts +1032 -788
  495. package/dist/i18n/locales/ru.js +1027 -787
  496. package/dist/i18n/locales/sq.d.ts +1284 -1046
  497. package/dist/i18n/locales/sq.js +1284 -1050
  498. package/dist/i18n/locales/sv.d.ts +804 -566
  499. package/dist/i18n/locales/sv.js +805 -571
  500. package/dist/i18n/locales/tr.d.ts +763 -525
  501. package/dist/i18n/locales/tr.js +764 -530
  502. package/dist/i18n/locales/zh.d.ts +752 -514
  503. package/dist/i18n/locales/zh.js +753 -519
  504. package/dist/i18n/registerUiBundle.d.ts +3 -2
  505. package/dist/i18n/resources.d.ts +2 -7
  506. package/dist/i18n/supported-locales.d.ts +8 -0
  507. package/dist/index.js +212 -212
  508. package/dist/locales/ar.json +916 -666
  509. package/dist/locales/de.json +723 -485
  510. package/dist/locales/el.json +965 -727
  511. package/dist/locales/en.json +308 -70
  512. package/dist/locales/es.json +787 -546
  513. package/dist/locales/fr.json +730 -489
  514. package/dist/locales/hi.json +875 -637
  515. package/dist/locales/it.json +938 -697
  516. package/dist/locales/ja.json +698 -460
  517. package/dist/locales/nl.json +723 -485
  518. package/dist/locales/pl.json +1019 -775
  519. package/dist/locales/pt.json +811 -567
  520. package/dist/locales/ro.json +1060 -819
  521. package/dist/locales/ru.json +1037 -793
  522. package/dist/locales/sq.json +1289 -1051
  523. package/dist/locales/sv.json +809 -571
  524. package/dist/locales/tr.json +768 -530
  525. package/dist/locales/zh.json +757 -519
  526. package/dist/patterns/alia-assistant/index.js +1 -1
  527. package/dist/patterns/anamnesis/anamnesis-format.d.ts +1 -1
  528. package/dist/patterns/anamnesis/anamnesis-i18n.d.ts +3 -2
  529. package/dist/patterns/anamnesis/index.js +1 -1
  530. package/dist/patterns/anamnesis/locales/ar.d.ts +776 -0
  531. package/dist/patterns/anamnesis/locales/de.d.ts +740 -0
  532. package/dist/patterns/anamnesis/locales/el.d.ts +740 -0
  533. package/dist/patterns/anamnesis/locales/en.d.ts +740 -0
  534. package/dist/patterns/anamnesis/locales/es.d.ts +749 -0
  535. package/dist/patterns/anamnesis/locales/fr.d.ts +749 -0
  536. package/dist/patterns/anamnesis/locales/hi.d.ts +740 -0
  537. package/dist/patterns/anamnesis/locales/it.d.ts +749 -0
  538. package/dist/patterns/anamnesis/locales/ja.d.ts +740 -0
  539. package/dist/patterns/anamnesis/locales/nl.d.ts +740 -0
  540. package/dist/patterns/anamnesis/locales/pl.d.ts +758 -0
  541. package/dist/patterns/anamnesis/locales/pt.d.ts +758 -0
  542. package/dist/patterns/anamnesis/locales/ro.d.ts +749 -0
  543. package/dist/patterns/anamnesis/locales/ru.d.ts +758 -0
  544. package/dist/patterns/anamnesis/locales/sq.d.ts +740 -0
  545. package/dist/patterns/anamnesis/locales/sv.d.ts +740 -0
  546. package/dist/patterns/anamnesis/locales/tr.d.ts +740 -0
  547. package/dist/patterns/anamnesis/locales/zh.d.ts +740 -0
  548. package/dist/patterns/calendar/calendar-appointment-details.d.ts +4 -1
  549. package/dist/patterns/calendar/calendar-workspace.d.ts +5 -0
  550. package/dist/patterns/calendar/calendar.sheets.d.ts +4 -1
  551. package/dist/patterns/calendar/calendar.types.d.ts +3 -1
  552. package/dist/patterns/calendar/index.d.ts +1 -1
  553. package/dist/patterns/calendar/index.js +1 -1
  554. package/dist/patterns/help-me-write-templates/index.js +1 -1
  555. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  556. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  557. package/dist/patterns/signature-request/index.js +1 -1
  558. package/dist/tokens.css +5 -2
  559. package/package.json +12 -2
  560. package/dist/_chunks/anamnesis-summary-rows-D9LZZHLw.js +0 -9416
  561. package/dist/_chunks/data-table-C4yPR89K.js +0 -1824
  562. package/dist/_chunks/subDays-HPvBuvq3.js +0 -8
  563. package/dist/_chunks/use-appointment-details-read-uEnJLVfA.js +0 -2045
  564. package/dist/_chunks/use-locale-BkCIHujH.js +0 -20
@@ -0,0 +1,1989 @@
1
+ import { jsx as s, jsxs as j } from "react/jsx-runtime";
2
+ import { useMemo as z, forwardRef as U, useState as M, useCallback as F, useEffect as B, useRef as q, createContext as De, useContext as Ge, isValidElement as Mt, cloneElement as Ot, useImperativeHandle as Lt } from "react";
3
+ import { S as Vt } from "./skeleton-B1KTdJ4N.js";
4
+ import { E as zt } from "./empty-state-DActfjdn.js";
5
+ import { c as qt } from "./index-D2ZczOXr.js";
6
+ import { useTranslation as A } from "react-i18next";
7
+ import { useGridFilter as jt, AgGridReact as Wt } from "ag-grid-react";
8
+ import { ModuleRegistry as _t, AllCommunityModule as $t } from "ag-grid-community";
9
+ import { I as Bt } from "./icon-button-group-DHRz90jY.js";
10
+ import { B as de } from "./button-CYPx2xFq.js";
11
+ import { I as ie } from "./icon-button-JAXAkqWC.js";
12
+ import { P as he } from "./popover-CGYPYIVi.js";
13
+ import { C as Ut } from "./checkbox-CZkipDn7.js";
14
+ import { T as Fe } from "./text-input-CLaItY93.js";
15
+ import { T as $e } from "./tag-CS5cXpfx.js";
16
+ import { D as ye } from "./dropdown-menu-B5mgV1kV.js";
17
+ import { X as Ue } from "./x-B5YnXwCz.js";
18
+ import { R as Kt } from "./refresh-cw-DnI0cLFC.js";
19
+ import { S as Ee } from "./search-QbWPlY5f.js";
20
+ import { c as Ht } from "./createLucideIcon-DhHxpK9K.js";
21
+ import { G as Qt } from "./grip-vertical-onSb1JXO.js";
22
+ import { P as Xt } from "./printer-rkK0T1gi.js";
23
+ import { F as Ke } from "./file-text-5yv6r2ls.js";
24
+ import { D as we } from "./download-CfYKJO_j.js";
25
+ import { F as Yt } from "./file-spreadsheet-DmwyfV4O.js";
26
+ import Jt from "i18next";
27
+ import { S as Zt } from "./select-Br88h070.js";
28
+ import { u as ea } from "./registry-DvAUVLHh.js";
29
+ import { u as ta } from "./use-prefers-reduced-motion-BMwIQRjB.js";
30
+ import { u as aa } from "./use-theme-CAuo6EYT.js";
31
+ import { f as ra } from "./intl-locale-CXM-B8EP.js";
32
+ /**
33
+ * @license lucide-react v1.22.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ */
38
+ const na = [
39
+ ["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
40
+ ["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
41
+ ["path", { d: "M15 3v7.5", key: "7lm50a" }],
42
+ ["path", { d: "m15.2 16.9-.9-.3", key: "1t7mvx" }],
43
+ ["path", { d: "m16.6 21.7.3-.9", key: "1j67ps" }],
44
+ ["path", { d: "m16.8 15.3-.4-1", key: "1ei7r6" }],
45
+ ["path", { d: "m19.1 15.2.3-.9", key: "18r7jp" }],
46
+ ["path", { d: "m19.6 21.7-.4-1", key: "z2vh2" }],
47
+ ["path", { d: "m20.7 16.8 1-.4", key: "19m87a" }],
48
+ ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
49
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
50
+ ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
51
+ ], oa = Ht("columns-3-cog", na);
52
+ function ia(e) {
53
+ if (!Mt(e)) return e;
54
+ const t = e, n = t.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(n) ? n : `${n} ds:size-4`.trim();
55
+ return Ot(t, { className: r, size: t.props.size ?? 16 });
56
+ }
57
+ const He = De(null);
58
+ function Q(e) {
59
+ const t = Ge(He);
60
+ if (!t)
61
+ throw new Error(
62
+ `${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
63
+ );
64
+ return t;
65
+ }
66
+ function la({
67
+ getApi: e,
68
+ selectionCount: t,
69
+ onPrint: n,
70
+ markColumnsUserTouched: r,
71
+ children: i
72
+ }) {
73
+ const c = z(
74
+ () => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: r }),
75
+ [e, t, n, r]
76
+ );
77
+ return /* @__PURE__ */ s(He.Provider, { value: c, children: i });
78
+ }
79
+ const sa = [
80
+ "data-table-toolbar",
81
+ // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
82
+ // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
83
+ // `flex-nowrap` + `min-w-0` so the row stays single-line at every common
84
+ // desktop width (1024 / 1280 / 1440) — the QuickSearch slot shrinks via
85
+ // its own `min-w-0` instead of pushing the trailing Actions to a new row.
86
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
87
+ "ds:sm:flex-nowrap ds:min-w-0"
88
+ // No card surface: the toolbar sits directly on the page background,
89
+ // matching the header-tools layout the Patients / Care Plan List
90
+ // patterns established (the old bg-card + border + shadow bar is gone).
91
+ ].join(" "), Qe = U(
92
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
93
+ "div",
94
+ {
95
+ ref: r,
96
+ role: "toolbar",
97
+ className: [sa, e ?? ""].join(" ").trim(),
98
+ ...n,
99
+ children: t
100
+ }
101
+ )
102
+ );
103
+ Qe.displayName = "DataTable.Toolbar";
104
+ const Xe = U(
105
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
106
+ "div",
107
+ {
108
+ ref: r,
109
+ className: [
110
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
111
+ // `grow` lets FilterBar absorb the free space; `min-w-0` lets the
112
+ // QuickSearch slot inside shrink below its intrinsic width when the
113
+ // toolbar runs `flex-nowrap` at `sm` and above, so the trailing
114
+ // Actions cluster stays pinned on a single row.
115
+ "ds:grow ds:min-w-0",
116
+ e ?? ""
117
+ ].join(" ").trim(),
118
+ ...n,
119
+ children: t
120
+ }
121
+ )
122
+ );
123
+ Xe.displayName = "DataTable.Toolbar.FilterBar";
124
+ const Ye = U(
125
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
126
+ "div",
127
+ {
128
+ ref: r,
129
+ className: [
130
+ "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
131
+ "ds:ms-auto",
132
+ e ?? ""
133
+ ].join(" ").trim(),
134
+ ...n,
135
+ children: t
136
+ }
137
+ )
138
+ );
139
+ Ye.displayName = "DataTable.Toolbar.Actions";
140
+ const Ie = U(
141
+ ({ label: e, onExport: t, intent: n = "outline", ...r }, i) => {
142
+ const { t: c } = A("ui"), { getApi: m } = Q("DataTable.Toolbar.ExportCsv"), l = F(() => {
143
+ const p = m();
144
+ p && (t ? t(p) : p.exportDataAsCsv());
145
+ }, [m, t]);
146
+ return /* @__PURE__ */ s(
147
+ ie,
148
+ {
149
+ ref: i,
150
+ type: "button",
151
+ intent: n,
152
+ icon: /* @__PURE__ */ s(we, { "aria-hidden": !0 }),
153
+ tooltip: e ?? c("dataTable.exportCsv"),
154
+ onClick: l,
155
+ ...r
156
+ }
157
+ );
158
+ }
159
+ );
160
+ Ie.displayName = "DataTable.Toolbar.ExportCsv";
161
+ function ne(e, t = [30, 30, 30]) {
162
+ if (typeof document > "u") return t;
163
+ const n = document.createElement("span");
164
+ n.style.color = `hsl(var(${e}))`, n.style.position = "absolute", n.style.visibility = "hidden", document.body.appendChild(n);
165
+ const r = getComputedStyle(n).color;
166
+ document.body.removeChild(n);
167
+ const i = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
168
+ return i ? [Number(i[1]), Number(i[2]), Number(i[3])] : t;
169
+ }
170
+ async function Je(e, t) {
171
+ if (!e) return;
172
+ const [{ jsPDF: n }, { default: r }] = await Promise.all([
173
+ import("./jspdf.es.min-DaapWjR1.js").then((v) => v.j),
174
+ import("./jspdf.plugin.autotable-CSiDNyPn.js")
175
+ ]), c = (e.getColumns() ?? []).filter((v) => v.isVisible()), m = [
176
+ c.map((v) => e.getDisplayNameForColumn(v, null) ?? "")
177
+ ], l = [];
178
+ e.forEachNodeAfterFilterAndSort((v) => {
179
+ if (!v.data) return;
180
+ const d = c.map((b) => {
181
+ const x = e.getCellValue({
182
+ rowNode: v,
183
+ colKey: b,
184
+ useFormatter: !0
185
+ });
186
+ return x == null ? "" : String(x);
187
+ });
188
+ l.push(d);
189
+ });
190
+ const p = ne("--muted", [240, 240, 240]), f = ne("--foreground", [30, 30, 30]), g = ne("--card-foreground", [30, 30, 30]), h = ne("--card", [250, 250, 250]), R = new n({ orientation: "landscape" });
191
+ r(R, {
192
+ head: m,
193
+ body: l,
194
+ headStyles: { fillColor: p, textColor: f },
195
+ bodyStyles: { textColor: g },
196
+ alternateRowStyles: { fillColor: h },
197
+ styles: {
198
+ font: "helvetica",
199
+ fontSize: 10,
200
+ cellPadding: 4
201
+ }
202
+ }), R.save(t.fileName);
203
+ }
204
+ const Ne = U(
205
+ ({ label: e, onClick: t, fileName: n, intent: r = "outline", ...i }, c) => {
206
+ const { t: m } = A("ui"), { getApi: l } = Q("DataTable.Toolbar.ExportPdf"), p = F(() => {
207
+ const f = l();
208
+ if (t) {
209
+ t(f);
210
+ return;
211
+ }
212
+ Je(f, {
213
+ fileName: n ?? "data-table-export.pdf"
214
+ });
215
+ }, [l, t, n]);
216
+ return /* @__PURE__ */ s(
217
+ ie,
218
+ {
219
+ ref: c,
220
+ type: "button",
221
+ intent: r,
222
+ icon: /* @__PURE__ */ s(Ke, { "aria-hidden": !0 }),
223
+ tooltip: e ?? m("dataTable.exportPdf"),
224
+ onClick: p,
225
+ ...i
226
+ }
227
+ );
228
+ }
229
+ );
230
+ Ne.displayName = "DataTable.Toolbar.ExportPdf";
231
+ const ke = U(
232
+ ({ label: e, intent: t = "outline", ...n }, r) => {
233
+ const { t: i } = A("ui"), { onPrint: c } = Q("DataTable.Toolbar.Print");
234
+ return /* @__PURE__ */ s(
235
+ ie,
236
+ {
237
+ ref: r,
238
+ type: "button",
239
+ intent: t,
240
+ icon: /* @__PURE__ */ s(Xt, { "aria-hidden": !0 }),
241
+ tooltip: e ?? i("dataTable.print"),
242
+ onClick: c,
243
+ ...n
244
+ }
245
+ );
246
+ }
247
+ );
248
+ ke.displayName = "DataTable.Toolbar.Print";
249
+ const Ze = ({ placeholder: e, debounceMs: t = 150 }) => {
250
+ const { t: n } = A("ui"), { getApi: r } = Q("DataTable.Toolbar.QuickSearch"), [i, c] = M(""), m = q(void 0);
251
+ return B(() => (m.current && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
252
+ const l = r();
253
+ l && l.setGridOption("quickFilterText", i);
254
+ }, t), () => {
255
+ m.current && window.clearTimeout(m.current);
256
+ }), [i, t, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
257
+ // without this, TextInput's `w-full` lets the QuickSearch absorb the
258
+ // entire FilterBar row and push trailing Actions onto a second line at
259
+ // 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
260
+ // the toolbar is squeezed on narrow viewports. There is no
261
+ // `--toolbar-search-max` token in the kit yet — see this component's
262
+ // summary for a follow-up note recommending we add one.
263
+ /* @__PURE__ */ s("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ s(
264
+ Fe,
265
+ {
266
+ type: "search",
267
+ size: "sm",
268
+ value: i,
269
+ onChange: (l) => c(l.target.value),
270
+ placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
271
+ startAdornment: /* @__PURE__ */ s(Ee, { "aria-hidden": !0, className: "ds:size-4" }),
272
+ clearable: !0,
273
+ onClear: () => c(""),
274
+ "aria-label": n("dataTable.quickSearch.label", "Quick search")
275
+ }
276
+ ) });
277
+ };
278
+ Ze.displayName = "DataTable.Toolbar.QuickSearch";
279
+ const Pe = U(
280
+ ({ onRefresh: e, label: t, intent: n = "outline", ...r }, i) => {
281
+ const { t: c } = A("ui");
282
+ return /* @__PURE__ */ s(
283
+ ie,
284
+ {
285
+ ref: i,
286
+ type: "button",
287
+ intent: n,
288
+ icon: /* @__PURE__ */ s(Kt, { "aria-hidden": !0 }),
289
+ tooltip: t ?? c("dataTable.refresh", "Refresh"),
290
+ onClick: e,
291
+ ...r
292
+ }
293
+ );
294
+ }
295
+ );
296
+ Pe.displayName = "DataTable.Toolbar.Refresh";
297
+ function da(e, t) {
298
+ if (!e || typeof e != "object") return "";
299
+ const n = e, r = typeof n.type == "string" ? n.type : "", i = (l) => t(
300
+ `dataTable.agGrid.${l}`,
301
+ t(`dataTable.numberFilter.operators.${l}`, l)
302
+ );
303
+ if (r === "blank" || r === "notBlank") return i(r);
304
+ const c = typeof n.filter == "string" || typeof n.filter == "number", m = typeof n.filterTo == "string" || typeof n.filterTo == "number";
305
+ return r === "inRange" && (c || m) ? c && m ? `${n.filter} – ${n.filterTo}` : c ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : c ? r ? `${i(r)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
306
+ }
307
+ const et = () => {
308
+ const { t: e } = A("ui"), { getApi: t } = Q("DataTable.Toolbar.FilterChips"), [n, r] = M([]), [i, c] = M(""), m = F(() => {
309
+ const g = t();
310
+ if (!g) {
311
+ r([]), c("");
312
+ return;
313
+ }
314
+ const h = g.getFilterModel() ?? {}, R = g.getColumns() ?? [], v = [];
315
+ for (const b of Object.keys(h)) {
316
+ const x = R.find((S) => S.getColId() === b), w = g.getDisplayNameForColumn(x, null) ?? b;
317
+ v.push({
318
+ colId: b,
319
+ headerName: w,
320
+ text: da(h[b], e)
321
+ });
322
+ }
323
+ r(v);
324
+ const d = g.getGridOption("quickFilterText");
325
+ c(typeof d == "string" ? d : "");
326
+ }, [t, e]);
327
+ if (B(() => {
328
+ let g;
329
+ const h = (d) => m(), R = (d) => {
330
+ d.addEventListener("filterChanged", h), m(), g = () => d.removeEventListener("filterChanged", h);
331
+ }, v = t();
332
+ if (v)
333
+ R(v);
334
+ else {
335
+ const d = window.setInterval(() => {
336
+ const b = t();
337
+ b && (window.clearInterval(d), R(b));
338
+ }, 50);
339
+ g = () => window.clearInterval(d);
340
+ }
341
+ return () => g == null ? void 0 : g();
342
+ }, [t, m]), n.length + (i ? 1 : 0) === 0) return null;
343
+ function p(g) {
344
+ const h = t();
345
+ h && (h.setColumnFilterModel(g, null), h.onFilterChanged());
346
+ }
347
+ function f() {
348
+ const g = t();
349
+ g && (g.setFilterModel(null), g.setGridOption("quickFilterText", ""), c(""));
350
+ }
351
+ return /* @__PURE__ */ j(
352
+ "div",
353
+ {
354
+ role: "group",
355
+ "aria-label": e("dataTable.filterChips.label", "Active filters"),
356
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
357
+ children: [
358
+ i && /* @__PURE__ */ s(
359
+ $e,
360
+ {
361
+ label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
362
+ size: "sm",
363
+ variant: "brand",
364
+ fill: "solid",
365
+ onRemove: () => {
366
+ const g = t();
367
+ g == null || g.setGridOption("quickFilterText", ""), c("");
368
+ }
369
+ }
370
+ ),
371
+ n.map((g) => /* @__PURE__ */ s(
372
+ $e,
373
+ {
374
+ label: g.text ? `${g.headerName}: ${g.text}` : g.headerName,
375
+ size: "sm",
376
+ variant: "brand",
377
+ fill: "solid",
378
+ onRemove: () => p(g.colId)
379
+ },
380
+ g.colId
381
+ )),
382
+ /* @__PURE__ */ s(
383
+ de,
384
+ {
385
+ type: "button",
386
+ intent: "ghost",
387
+ size: "sm",
388
+ onClick: f,
389
+ startIcon: /* @__PURE__ */ s(Ue, { "aria-hidden": !0, className: "ds:size-4" }),
390
+ children: e("dataTable.filterChips.clearAll", "Clear all")
391
+ }
392
+ )
393
+ ]
394
+ }
395
+ );
396
+ };
397
+ et.displayName = "DataTable.Toolbar.FilterChips";
398
+ const tt = ({
399
+ field: e,
400
+ options: t,
401
+ label: n
402
+ }) => {
403
+ const { t: r } = A("ui"), { getApi: i } = Q("DataTable.Toolbar.FacetFilter"), [c, m] = M(null);
404
+ function l(p) {
405
+ m(p);
406
+ const f = i();
407
+ if (f) {
408
+ if (p === null) {
409
+ f.setColumnFilterModel(e, null), f.onFilterChanged();
410
+ return;
411
+ }
412
+ f.setColumnFilterModel(e, {
413
+ type: "equals",
414
+ filter: p
415
+ }), f.onFilterChanged();
416
+ }
417
+ }
418
+ return /* @__PURE__ */ s(
419
+ "div",
420
+ {
421
+ role: "group",
422
+ "aria-label": n ?? r("dataTable.facetFilter.label", "Filter"),
423
+ className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
424
+ children: t.map((p) => {
425
+ const f = c === p.value;
426
+ return /* @__PURE__ */ s(
427
+ de,
428
+ {
429
+ type: "button",
430
+ size: "sm",
431
+ intent: f ? "primary" : "secondary",
432
+ "aria-pressed": f,
433
+ onClick: () => l(p.value),
434
+ children: p.label
435
+ },
436
+ String(p.value)
437
+ );
438
+ })
439
+ }
440
+ );
441
+ };
442
+ tt.displayName = "DataTable.Toolbar.FacetFilter";
443
+ const ca = ["csv", "xlsx", "pdf"];
444
+ async function ua(e, t) {
445
+ if (!e) return;
446
+ const n = await import("./exceljs.min-D2MHbJsF.js").then((b) => b.e), r = new n.Workbook(), i = r.addWorksheet("Sheet1"), m = (e.getColumns() ?? []).filter((b) => b.isVisible());
447
+ i.addRow(
448
+ m.map(
449
+ (b) => e.getDisplayNameForColumn(b, null) ?? b.getColId()
450
+ )
451
+ ), e.forEachNodeAfterFilterAndSort((b) => {
452
+ b.data && i.addRow(
453
+ m.map((x) => {
454
+ const w = e.getCellValue({
455
+ rowNode: b,
456
+ colKey: x,
457
+ useFormatter: !0
458
+ });
459
+ return w ?? "";
460
+ })
461
+ );
462
+ });
463
+ const l = ne("--muted", [240, 240, 240]), p = ne("--foreground", [30, 30, 30]), f = i.getRow(1), g = ([b, x, w]) => `${b.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}`.toUpperCase();
464
+ f.eachCell((b) => {
465
+ b.font = { bold: !0, color: { argb: `FF${g(p)}` } }, b.fill = {
466
+ type: "pattern",
467
+ pattern: "solid",
468
+ fgColor: { argb: `FF${g(l)}` }
469
+ };
470
+ });
471
+ const h = await r.xlsx.writeBuffer(), R = new Blob([h], {
472
+ type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
473
+ }), v = URL.createObjectURL(R), d = document.createElement("a");
474
+ d.href = v, d.download = t.fileName, document.body.appendChild(d), d.click(), document.body.removeChild(d), URL.revokeObjectURL(v);
475
+ }
476
+ const at = De(null);
477
+ function pa() {
478
+ const e = Ge(at);
479
+ if (!e)
480
+ throw new Error(
481
+ "DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
482
+ );
483
+ return e;
484
+ }
485
+ const Ae = U(
486
+ ({ children: e, label: t, intent: n = "outline", ...r }, i) => {
487
+ const { t: c } = A("ui"), { getApi: m } = Q("DataTable.Toolbar.ExportMenu"), l = z(() => ({ getApi: m }), [m]), p = e ?? ca.map((f) => /* @__PURE__ */ s(Me, { format: f }, f));
488
+ return /* @__PURE__ */ s(at.Provider, { value: l, children: /* @__PURE__ */ j(ye.Root, { children: [
489
+ /* @__PURE__ */ s(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
490
+ ie,
491
+ {
492
+ ref: i,
493
+ type: "button",
494
+ intent: n,
495
+ icon: /* @__PURE__ */ s(we, { "aria-hidden": !0 }),
496
+ tooltip: t ?? c("dataTable.export.menu", "Export"),
497
+ "aria-label": t ?? c("dataTable.export.menu", "Export"),
498
+ "aria-haspopup": "menu",
499
+ ...r
500
+ }
501
+ ) }),
502
+ /* @__PURE__ */ s(ye.Content, { align: "end", sideOffset: 4, children: p })
503
+ ] }) });
504
+ }
505
+ );
506
+ Ae.displayName = "DataTable.Toolbar.ExportMenu";
507
+ function ga(e, t) {
508
+ return t === "csv" ? e("dataTable.export.csv", "Export CSV") : t === "xlsx" ? e("dataTable.export.xlsx", "Export Excel") : t === "pdf" ? e("dataTable.export.pdf", "Export PDF") : e("dataTable.export.custom", "Export");
509
+ }
510
+ function ma(e) {
511
+ return e === "csv" ? /* @__PURE__ */ s(we, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ s(Yt, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ s(Ke, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ s(we, { "aria-hidden": !0, className: "ds:size-4" });
512
+ }
513
+ const Me = ({
514
+ format: e,
515
+ label: t,
516
+ onClick: n,
517
+ fileName: r
518
+ }) => {
519
+ const { t: i } = A("ui"), { getApi: c } = pa(), m = F(() => {
520
+ const l = c();
521
+ if (e === "csv") {
522
+ l == null || l.exportDataAsCsv();
523
+ return;
524
+ }
525
+ if (e === "pdf") {
526
+ Je(l, {
527
+ fileName: r ?? "data-table-export.pdf"
528
+ });
529
+ return;
530
+ }
531
+ if (e === "xlsx") {
532
+ ua(l, {
533
+ fileName: r ?? "data-table-export.xlsx"
534
+ });
535
+ return;
536
+ }
537
+ n == null || n(l);
538
+ }, [e, r, n, c]);
539
+ return /* @__PURE__ */ s(ye.Item, { onSelect: m, children: /* @__PURE__ */ j("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
540
+ ma(e),
541
+ /* @__PURE__ */ s("span", { children: t ?? ga(i, e) })
542
+ ] }) });
543
+ };
544
+ Me.displayName = "DataTable.Toolbar.ExportMenu.Item";
545
+ function fa(e) {
546
+ if (!e) return [];
547
+ const t = (r) => r.getPinned() === "left" ? 0 : r.getPinned() === "right" ? 2 : 1;
548
+ return [...e.getAllGridColumns() ?? []].sort(
549
+ (r, i) => t(r) - t(i)
550
+ ).map((r) => r.getColDef().hide === void 0 && r.getColId().startsWith("ag-Grid-") ? null : {
551
+ colId: r.getColId(),
552
+ displayName: e.getDisplayNameForColumn(r, null) || r.getColId(),
553
+ visible: r.isVisible()
554
+ }).filter((r) => r !== null);
555
+ }
556
+ const Oe = U(
557
+ function({ label: t, icon: n, footer: r, header: i, intent: c = "outline", ...m }, l) {
558
+ const { t: p } = A("ui"), { getApi: f, markColumnsUserTouched: g } = Q(
559
+ "DataTable.Toolbar.ColumnToggle"
560
+ ), [h, R] = M(!1), [v, d] = M([]), [b, x] = M(null), [w, S] = M(null);
561
+ B(() => {
562
+ h && d(fa(f()));
563
+ }, [h, f]);
564
+ const D = F(
565
+ (C, O) => {
566
+ const L = f();
567
+ L && (L.setColumnsVisible([C], O), g == null || g([C]), d(
568
+ (k) => k.map(
569
+ (N) => N.colId === C ? { ...N, visible: O } : N
570
+ )
571
+ ));
572
+ },
573
+ [f, g]
574
+ ), te = F(
575
+ (C, O) => {
576
+ if (C === O) return;
577
+ const L = f();
578
+ if (!L) return;
579
+ d((E) => {
580
+ const G = E.findIndex((J) => J.colId === C), ae = E.findIndex((J) => J.colId === O);
581
+ if (G < 0 || ae < 0) return E;
582
+ const Y = [...E], [Ce] = Y.splice(G, 1);
583
+ return Y.splice(ae, 0, Ce), Y;
584
+ });
585
+ const k = L.getAllGridColumns(), N = k.find((E) => E.getColId() === C), W = k.find((E) => E.getColId() === O);
586
+ if (!N || !W) return;
587
+ N.getPinned() !== W.getPinned() && L.setColumnsPinned([C], W.getPinned() ?? null);
588
+ const _ = L.getAllGridColumns().findIndex((E) => E.getColId() === O);
589
+ _ >= 0 && L.moveColumns([C], _);
590
+ },
591
+ [f]
592
+ ), V = t ?? p("dataTable.columnToggle");
593
+ return /* @__PURE__ */ j(he.Root, { open: h, onOpenChange: R, children: [
594
+ /* @__PURE__ */ s(he.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
595
+ ie,
596
+ {
597
+ ref: l,
598
+ type: "button",
599
+ intent: c,
600
+ icon: n ?? /* @__PURE__ */ s(oa, { "aria-hidden": !0 }),
601
+ tooltip: V,
602
+ "aria-label": V,
603
+ "aria-haspopup": "dialog",
604
+ ...m
605
+ }
606
+ ) }),
607
+ /* @__PURE__ */ j(
608
+ he.Content,
609
+ {
610
+ size: "sm",
611
+ align: "end",
612
+ className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
613
+ children: [
614
+ /* @__PURE__ */ s(he.Heading, { children: V }),
615
+ i ? /* @__PURE__ */ s("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: i }) : null,
616
+ /* @__PURE__ */ s(
617
+ "ul",
618
+ {
619
+ className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
620
+ "aria-label": V,
621
+ children: v.map((C) => {
622
+ const O = b === C.colId, L = w === C.colId && b !== C.colId;
623
+ return /* @__PURE__ */ j(
624
+ "li",
625
+ {
626
+ draggable: !0,
627
+ onDragStart: (k) => {
628
+ x(C.colId), k.dataTransfer.effectAllowed = "move", k.dataTransfer.setData("text/plain", C.colId);
629
+ },
630
+ onDragOver: (k) => {
631
+ k.preventDefault(), k.dataTransfer.dropEffect = "move", S(C.colId);
632
+ },
633
+ onDragLeave: () => {
634
+ S(
635
+ (k) => k === C.colId ? null : k
636
+ );
637
+ },
638
+ onDrop: (k) => {
639
+ k.preventDefault();
640
+ const N = k.dataTransfer.getData("text/plain");
641
+ N && te(N, C.colId), x(null), S(null);
642
+ },
643
+ onDragEnd: () => {
644
+ x(null), S(null);
645
+ },
646
+ className: [
647
+ "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
648
+ O ? "ds:opacity-50" : "",
649
+ L ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
650
+ ].filter(Boolean).join(" "),
651
+ children: [
652
+ /* @__PURE__ */ s(
653
+ "span",
654
+ {
655
+ "aria-hidden": "true",
656
+ className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
657
+ children: /* @__PURE__ */ s(Qt, { className: "ds:size-4" })
658
+ }
659
+ ),
660
+ /* @__PURE__ */ s(
661
+ Ut,
662
+ {
663
+ label: C.displayName,
664
+ checked: C.visible,
665
+ onCheckedChange: (k) => D(C.colId, k === !0)
666
+ }
667
+ )
668
+ ]
669
+ },
670
+ C.colId
671
+ );
672
+ })
673
+ }
674
+ ),
675
+ r ? /* @__PURE__ */ s("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: r }) : null
676
+ ]
677
+ }
678
+ )
679
+ ] });
680
+ }
681
+ );
682
+ Oe.displayName = "DataTable.Toolbar.ColumnToggle";
683
+ const rt = U(
684
+ ({ label: e, icon: t, onClick: n, variant: r = "default", size: i = "sm", ...c }, m) => {
685
+ const { t: l } = A("ui"), { getApi: p, selectionCount: f } = Q(
686
+ "DataTable.Toolbar.BulkAction"
687
+ );
688
+ return f === 0 ? null : /* @__PURE__ */ j(
689
+ de,
690
+ {
691
+ ref: m,
692
+ type: "button",
693
+ intent: r === "destructive" ? "destructive" : "secondary",
694
+ size: i,
695
+ startIcon: ia(t),
696
+ onClick: () => n(p()),
697
+ "aria-label": `${e} (${l("dataTable.bulkAction", { count: f })})`,
698
+ ...c,
699
+ children: [
700
+ /* @__PURE__ */ s("span", { children: e }),
701
+ /* @__PURE__ */ s(
702
+ "span",
703
+ {
704
+ "aria-hidden": "true",
705
+ className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
706
+ children: l("dataTable.bulkAction", { count: f })
707
+ }
708
+ )
709
+ ]
710
+ }
711
+ );
712
+ }
713
+ );
714
+ rt.displayName = "DataTable.Toolbar.BulkAction";
715
+ for (const e of [
716
+ Ie,
717
+ Ne,
718
+ ke,
719
+ Pe,
720
+ Ae,
721
+ Oe
722
+ ])
723
+ e.rendersIconButton = !0;
724
+ const ba = Object.assign(Ae, {
725
+ Item: Me
726
+ }), xe = Object.assign(Qe, {
727
+ FilterBar: Xe,
728
+ Actions: Ye,
729
+ /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
730
+ ExportCsv: Ie,
731
+ /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
732
+ ExportPdf: Ne,
733
+ Print: ke,
734
+ ColumnToggle: Oe,
735
+ BulkAction: rt,
736
+ QuickSearch: Ze,
737
+ Refresh: Pe,
738
+ FilterChips: et,
739
+ FacetFilter: tt,
740
+ ExportMenu: ba
741
+ }), ha = [
742
+ "contains",
743
+ "equals",
744
+ "startsWith",
745
+ "endsWith",
746
+ "notContains"
747
+ ];
748
+ function Ta(e) {
749
+ const t = new Intl.Collator(e, {
750
+ sensitivity: "base",
751
+ usage: "search"
752
+ });
753
+ function n(r, i) {
754
+ if (i.length === 0) return 0;
755
+ if (i.length > r.length) return -1;
756
+ for (let c = 0; c <= r.length - i.length; c += 1)
757
+ if (t.compare(r.slice(c, c + i.length), i) === 0)
758
+ return c;
759
+ return -1;
760
+ }
761
+ return {
762
+ equals: (r, i) => t.compare(r, i) === 0,
763
+ contains: (r, i) => n(r, i) !== -1,
764
+ startsWith: (r, i) => i.length <= r.length && t.compare(r.slice(0, i.length), i) === 0,
765
+ endsWith: (r, i) => i.length <= r.length && t.compare(
766
+ r.slice(r.length - i.length),
767
+ i
768
+ ) === 0
769
+ };
770
+ }
771
+ function ya(e) {
772
+ return e == null ? null : typeof e == "string" ? e : String(e);
773
+ }
774
+ function xa(e) {
775
+ const { model: t, onModelChange: n, getValue: r, placeholder: i, defaultOperator: c } = e, { t: m } = A("ui"), l = (t == null ? void 0 : t.type) ?? c ?? "contains", [p, f] = M(l), [g, h] = M((t == null ? void 0 : t.filter) ?? "");
776
+ B(() => {
777
+ f((t == null ? void 0 : t.type) ?? c ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
778
+ }, [t, c]);
779
+ const R = z(() => Ta(Jt.language), []);
780
+ jt({
781
+ doesFilterPass: (w) => {
782
+ const S = t;
783
+ if (!S || S.filter === "") return !0;
784
+ const D = ya(r(w.node));
785
+ if (D === null) return !1;
786
+ switch (S.type) {
787
+ case "equals":
788
+ return R.equals(D, S.filter);
789
+ case "contains":
790
+ return R.contains(D, S.filter);
791
+ case "startsWith":
792
+ return R.startsWith(D, S.filter);
793
+ case "endsWith":
794
+ return R.endsWith(D, S.filter);
795
+ case "notContains":
796
+ return !R.contains(D, S.filter);
797
+ default:
798
+ return !0;
799
+ }
800
+ }
801
+ });
802
+ function v() {
803
+ if (g.trim() === "") {
804
+ n(null);
805
+ return;
806
+ }
807
+ n({ type: p, filter: g });
808
+ }
809
+ function d() {
810
+ h(""), f(c ?? "contains"), n(null);
811
+ }
812
+ const b = ha.map(
813
+ (w) => ({
814
+ value: w,
815
+ label: m(`dataTable.textFilter.operators.${w}`)
816
+ })
817
+ ), x = i ?? m("dataTable.textFilter.placeholder");
818
+ return /* @__PURE__ */ j(
819
+ "div",
820
+ {
821
+ "data-component": "text-filter",
822
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
823
+ children: [
824
+ /* @__PURE__ */ s(
825
+ Zt,
826
+ {
827
+ size: "sm",
828
+ options: b,
829
+ value: p,
830
+ onValueChange: (w) => {
831
+ w !== "" && f(w);
832
+ },
833
+ "aria-label": m("dataTable.textFilter.operators.contains")
834
+ }
835
+ ),
836
+ /* @__PURE__ */ s(
837
+ Fe,
838
+ {
839
+ size: "sm",
840
+ value: g,
841
+ onChange: (w) => h(w.target.value),
842
+ onKeyDown: (w) => {
843
+ w.key === "Enter" && (w.preventDefault(), v());
844
+ },
845
+ placeholder: x,
846
+ "aria-label": x,
847
+ startAdornment: /* @__PURE__ */ s(Ee, { "aria-hidden": "true", className: "ds:size-4" })
848
+ }
849
+ ),
850
+ /* @__PURE__ */ j("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
851
+ /* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: d, type: "button", children: m("dataTable.textFilter.clear") }),
852
+ /* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: v, type: "button", children: m("dataTable.textFilter.apply") })
853
+ ] })
854
+ ]
855
+ }
856
+ );
857
+ }
858
+ function wa(e) {
859
+ var h, R;
860
+ const { model: t, onModelChange: n, column: r } = e, { t: i } = A("ui"), c = ((R = (h = r == null ? void 0 : r.getColDef) == null ? void 0 : h.call(r)) == null ? void 0 : R.filterParams) ?? {}, m = c.defaultOperator ?? "contains", l = c.placeholder ?? i("dataTable.textFilter.placeholder"), [p, f] = M((t == null ? void 0 : t.filter) ?? "");
861
+ B(() => {
862
+ f((t == null ? void 0 : t.filter) ?? "");
863
+ }, [t == null ? void 0 : t.filter]), B(() => {
864
+ if (p === ((t == null ? void 0 : t.filter) ?? "")) return;
865
+ const v = setTimeout(() => {
866
+ if (p === "") {
867
+ t && n(null);
868
+ return;
869
+ }
870
+ n({ type: m, filter: p });
871
+ }, 200);
872
+ return () => clearTimeout(v);
873
+ }, [p, m, t, n]);
874
+ function g() {
875
+ f(""), t && n(null);
876
+ }
877
+ return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
878
+ Fe,
879
+ {
880
+ size: "sm",
881
+ value: p,
882
+ onChange: (v) => f(v.target.value),
883
+ placeholder: l,
884
+ "aria-label": l,
885
+ startAdornment: /* @__PURE__ */ s(Ee, { "aria-hidden": "true", className: "ds:size-4" }),
886
+ endAdornment: p.length > 0 ? /* @__PURE__ */ s(
887
+ "button",
888
+ {
889
+ type: "button",
890
+ "aria-label": i("dataTable.textFilter.clear"),
891
+ onClick: g,
892
+ className: "ds:pointer-events-auto ds:flex ds:items-center ds:text-[var(--muted-foreground)] ds:hover:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
893
+ children: /* @__PURE__ */ s(Ue, { "aria-hidden": "true", className: "ds:size-4" })
894
+ }
895
+ ) : void 0
896
+ }
897
+ ) });
898
+ }
899
+ const Ca = /* @__PURE__ */ new Set(["presentation", "none"]), Be = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
900
+ function Te(e) {
901
+ const t = e.getAttribute("role");
902
+ t === null || !Ca.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
903
+ }
904
+ function va(e, t = !0) {
905
+ B(() => {
906
+ const n = e.current;
907
+ if (!t || !n || typeof MutationObserver > "u") return;
908
+ (() => {
909
+ for (const c of n.querySelectorAll(Be)) Te(c);
910
+ })();
911
+ const i = new MutationObserver((c) => {
912
+ for (const m of c)
913
+ if (m.type === "attributes")
914
+ Te(m.target);
915
+ else
916
+ for (const l of m.addedNodes)
917
+ if (l instanceof Element) {
918
+ Te(l);
919
+ for (const p of l.querySelectorAll(Be))
920
+ Te(p);
921
+ }
922
+ });
923
+ return i.observe(n, {
924
+ subtree: !0,
925
+ childList: !0,
926
+ attributes: !0,
927
+ attributeFilter: ["aria-hidden"]
928
+ }), () => i.disconnect();
929
+ }, [e, t]);
930
+ }
931
+ const oe = "__dsDetailOf", Sa = "ds-data-table-expanded-row", nt = "::detail", Ra = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
932
+ function $(e) {
933
+ return typeof e == "object" && e !== null && typeof e[oe] == "string";
934
+ }
935
+ function Da(e) {
936
+ return `${e}${nt}`;
937
+ }
938
+ function Tr(e) {
939
+ return e.endsWith(nt);
940
+ }
941
+ function Ga(e, t) {
942
+ return { ...e, [oe]: t };
943
+ }
944
+ const ot = De(
945
+ null
946
+ );
947
+ function Fa(e) {
948
+ var d;
949
+ const t = Ge(
950
+ ot
951
+ ), { t: n } = A("ui"), r = q(null), { data: i, node: c, api: m } = e, l = $(i), p = t == null ? void 0 : t.heights, f = c.id, g = q(t);
952
+ if (g.current = t, B(() => {
953
+ const b = r.current;
954
+ if (!b || !l || !p || f == null) return;
955
+ let x = p.get(f) ?? 0;
956
+ const w = () => {
957
+ const D = Math.ceil(b.getBoundingClientRect().height);
958
+ D <= 0 || D === x || (x = D, p.set(f, D), c.setRowHeight(D), m.onRowHeightChanged());
959
+ };
960
+ w();
961
+ const S = new ResizeObserver(w);
962
+ return S.observe(b), () => S.disconnect();
963
+ }, [m, f, p, l, c]), B(() => {
964
+ const b = r.current, x = b == null ? void 0 : b.parentElement;
965
+ if (!b || !x || !l) return;
966
+ const w = (S) => {
967
+ var D, te;
968
+ S.target !== x || S.defaultPrevented || (S.key === "Escape" ? (S.stopPropagation(), (te = (D = g.current) == null ? void 0 : D.onExpandedRowChange) == null || te.call(D, null)) : S.key === "Enter" && (S.preventDefault(), (b.querySelector(Ra) ?? b).focus()));
969
+ };
970
+ return x.addEventListener("keydown", w), () => x.removeEventListener("keydown", w);
971
+ }, [l]), !l) {
972
+ const b = t == null ? void 0 : t.fallbackRenderer;
973
+ return b ? /* @__PURE__ */ s(b, { ...e }) : null;
974
+ }
975
+ const h = i[oe];
976
+ let R;
977
+ if (t != null && t.expanded && t.expanded.id === h)
978
+ R = t.expanded.row;
979
+ else {
980
+ const { [oe]: b, ...x } = i;
981
+ R = x;
982
+ }
983
+ return /* @__PURE__ */ j(
984
+ "div",
985
+ {
986
+ ref: r,
987
+ role: "gridcell",
988
+ tabIndex: -1,
989
+ "data-component": "data-table-expanded-row",
990
+ "data-expanded-row-of": h,
991
+ className: "ds-data-table-expanded-row-surface",
992
+ onKeyDown: (b) => {
993
+ var x;
994
+ b.key !== "Escape" || b.defaultPrevented || (b.stopPropagation(), (x = t == null ? void 0 : t.onExpandedRowChange) == null || x.call(t, null));
995
+ },
996
+ children: [
997
+ /* @__PURE__ */ s("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
998
+ (d = t == null ? void 0 : t.renderExpandedRow) == null ? void 0 : d.call(t, R)
999
+ ]
1000
+ }
1001
+ );
1002
+ }
1003
+ const Ea = {
1004
+ id: "data-table",
1005
+ capabilities: [
1006
+ "select_single",
1007
+ "select_multiple",
1008
+ "range_pick",
1009
+ "filter",
1010
+ "sort",
1011
+ "paginate"
1012
+ ],
1013
+ state: {
1014
+ selection: {
1015
+ type: "string[]",
1016
+ descriptionKey: "ui.agent.dataTable.state.selection",
1017
+ description: "Row ids of currently-selected rows.",
1018
+ read: (e) => e.getSelection()
1019
+ },
1020
+ filter: {
1021
+ type: "object",
1022
+ descriptionKey: "ui.agent.dataTable.state.filter",
1023
+ description: "Current ag-grid filter model, keyed by column id.",
1024
+ read: (e) => e.getFilter()
1025
+ },
1026
+ sort: {
1027
+ type: "Array<{ colId, sort }>",
1028
+ descriptionKey: "ui.agent.dataTable.state.sort",
1029
+ description: "Active sort, in priority order.",
1030
+ read: (e) => e.getSort()
1031
+ },
1032
+ currentPage: {
1033
+ type: "number",
1034
+ descriptionKey: "ui.agent.dataTable.state.currentPage",
1035
+ description: "Zero-indexed page number.",
1036
+ read: (e) => e.getCurrentPage()
1037
+ },
1038
+ expandedRowId: {
1039
+ type: "string | null",
1040
+ descriptionKey: "ui.agent.dataTable.state.expandedRowId",
1041
+ description: "Id of the row whose inline detail is open (expandable row), or null.",
1042
+ read: (e) => e.getExpandedRowId()
1043
+ }
1044
+ },
1045
+ actions: {
1046
+ select_rows: {
1047
+ // Transient grid selection (data-table convention) — stays read.
1048
+ safety: "read",
1049
+ argsType: "{ ids: string[] }",
1050
+ argsSchema: {
1051
+ type: "object",
1052
+ properties: {
1053
+ ids: {
1054
+ type: "array",
1055
+ items: { type: "string" },
1056
+ description: "Row ids to select (replaces the current selection)."
1057
+ }
1058
+ },
1059
+ required: ["ids"]
1060
+ },
1061
+ idempotent: !0,
1062
+ descriptionKey: "ui.agent.dataTable.actions.selectRows",
1063
+ description: "Replace the current selection with the given row ids.",
1064
+ examples: [
1065
+ { args: { ids: ["r-1", "r-2"] }, note: "Select the first two rows." }
1066
+ ],
1067
+ invoke: (e, t) => {
1068
+ e.setSelection(t.ids);
1069
+ }
1070
+ },
1071
+ select_range: {
1072
+ safety: "read",
1073
+ argsType: "{ fromId: string, toId: string }",
1074
+ argsSchema: {
1075
+ type: "object",
1076
+ properties: {
1077
+ fromId: { type: "string", description: "Start row id (inclusive)." },
1078
+ toId: { type: "string", description: "End row id (inclusive)." }
1079
+ },
1080
+ required: ["fromId", "toId"]
1081
+ },
1082
+ idempotent: !0,
1083
+ descriptionKey: "ui.agent.dataTable.actions.selectRange",
1084
+ description: "Select every row between fromId and toId, inclusive, in current sort order.",
1085
+ invoke: (e, t) => {
1086
+ e.selectRange(t.fromId, t.toId);
1087
+ }
1088
+ },
1089
+ clear_selection: {
1090
+ safety: "read",
1091
+ idempotent: !0,
1092
+ descriptionKey: "ui.agent.dataTable.actions.clearSelection",
1093
+ description: "Deselect all rows.",
1094
+ invoke: (e) => {
1095
+ e.clearSelection();
1096
+ }
1097
+ },
1098
+ get_selection: {
1099
+ safety: "read",
1100
+ returns: "string[]",
1101
+ returnsSchema: { type: "array", items: { type: "string" } },
1102
+ idempotent: !0,
1103
+ descriptionKey: "ui.agent.dataTable.actions.getSelection",
1104
+ description: "Return the row ids of the currently-selected rows.",
1105
+ invoke: (e) => e.getSelection()
1106
+ },
1107
+ apply_filter: {
1108
+ safety: "read",
1109
+ argsType: "{ model: Record<string, unknown> }",
1110
+ argsSchema: {
1111
+ type: "object",
1112
+ properties: {
1113
+ model: {
1114
+ type: "object",
1115
+ description: "ag-grid filter model keyed by column id. Opaque per-column filter shapes; replaces the current model.",
1116
+ additionalProperties: !0
1117
+ }
1118
+ },
1119
+ required: ["model"]
1120
+ },
1121
+ idempotent: !0,
1122
+ descriptionKey: "ui.agent.dataTable.actions.applyFilter",
1123
+ description: "Replace the filter model with the given object.",
1124
+ invoke: (e, t) => {
1125
+ e.setFilter(t.model);
1126
+ }
1127
+ },
1128
+ sort_by: {
1129
+ safety: "read",
1130
+ argsType: "{ model: DataTableSortEntry[] }",
1131
+ argsSchema: {
1132
+ type: "object",
1133
+ properties: {
1134
+ model: {
1135
+ type: "array",
1136
+ description: "Sort entries in priority order.",
1137
+ items: {
1138
+ type: "object",
1139
+ properties: {
1140
+ colId: { type: "string", description: "Column id to sort by." },
1141
+ sort: { enum: ["asc", "desc"], description: "Sort direction." }
1142
+ },
1143
+ required: ["colId", "sort"]
1144
+ }
1145
+ }
1146
+ },
1147
+ required: ["model"]
1148
+ },
1149
+ idempotent: !0,
1150
+ descriptionKey: "ui.agent.dataTable.actions.sortBy",
1151
+ description: "Replace the active sort with the given list (priority order).",
1152
+ examples: [
1153
+ {
1154
+ args: { model: [{ colId: "name", sort: "asc" }] },
1155
+ note: "Sort by name ascending."
1156
+ }
1157
+ ],
1158
+ invoke: (e, t) => {
1159
+ e.setSort(t.model);
1160
+ }
1161
+ },
1162
+ go_to_page: {
1163
+ safety: "read",
1164
+ argsType: "{ page: number }",
1165
+ argsSchema: {
1166
+ type: "object",
1167
+ properties: {
1168
+ page: {
1169
+ type: "integer",
1170
+ minimum: 0,
1171
+ description: "Zero-indexed page number."
1172
+ }
1173
+ },
1174
+ required: ["page"]
1175
+ },
1176
+ idempotent: !0,
1177
+ descriptionKey: "ui.agent.dataTable.actions.goToPage",
1178
+ description: "Navigate to the given zero-indexed page.",
1179
+ invoke: (e, t) => {
1180
+ e.goToPage(t.page);
1181
+ }
1182
+ }
1183
+ },
1184
+ domHooks: {
1185
+ root: {
1186
+ attr: "data-component",
1187
+ value: "data-table",
1188
+ description: "Marks the DataTable wrapper."
1189
+ },
1190
+ instanceId: {
1191
+ attr: "data-component-id",
1192
+ sourceProp: "gridId",
1193
+ description: "Sourced from the gridId prop. Required to address a specific table from the agent."
1194
+ },
1195
+ item: {
1196
+ attr: "row-id",
1197
+ description: 'Native ag-grid row-id attribute on each rendered record row. When an expandable row is open, one extra full-width row with row-id `<parentId>::detail` is the accordion detail, not a record — its cell carries data-component="data-table-expanded-row" and data-expanded-row-of="<parentId>"; skip it when enumerating rows (isExpandedRowDetailId). Selection is performed via the curated handle, not by DOM mutation.'
1198
+ }
1199
+ }
1200
+ };
1201
+ function Ia(e, t, n) {
1202
+ const r = ra(t), i = new Intl.DateTimeFormat(r, {
1203
+ calendar: "gregory",
1204
+ month: "long",
1205
+ timeZone: "UTC"
1206
+ }), c = new Intl.NumberFormat(r).formatToParts(1000.1), m = {
1207
+ ariaIndeterminate: () => e("dataTable.agGrid.ariaIndeterminate"),
1208
+ ariaChecked: () => e("dataTable.agGrid.ariaChecked"),
1209
+ ariaUnchecked: () => e("dataTable.agGrid.ariaUnchecked"),
1210
+ applyFilter: () => e("dataTable.agGrid.applyFilter"),
1211
+ clearFilter: () => e("dataTable.agGrid.clearFilter"),
1212
+ resetFilter: () => e("dataTable.agGrid.resetFilter"),
1213
+ cancelFilter: () => e("dataTable.agGrid.cancelFilter"),
1214
+ textFilter: () => e("dataTable.agGrid.textFilter"),
1215
+ numberFilter: () => e("dataTable.agGrid.numberFilter"),
1216
+ bigintFilter: () => e("dataTable.agGrid.bigintFilter"),
1217
+ dateFilter: () => e("dataTable.agGrid.dateFilter"),
1218
+ setFilter: () => e("dataTable.agGrid.setFilter"),
1219
+ filterOoo: () => e("dataTable.agGrid.filterOoo"),
1220
+ empty: () => e("dataTable.agGrid.empty"),
1221
+ equals: () => e("dataTable.agGrid.equals"),
1222
+ notEqual: () => e("dataTable.agGrid.notEqual"),
1223
+ lessThan: () => e("dataTable.agGrid.lessThan"),
1224
+ greaterThan: () => e("dataTable.agGrid.greaterThan"),
1225
+ inRange: () => e("dataTable.agGrid.inRange"),
1226
+ inRangeStart: () => e("dataTable.agGrid.inRangeStart"),
1227
+ inRangeEnd: () => e("dataTable.agGrid.inRangeEnd"),
1228
+ lessThanOrEqual: () => e("dataTable.agGrid.lessThanOrEqual"),
1229
+ greaterThanOrEqual: () => e("dataTable.agGrid.greaterThanOrEqual"),
1230
+ contains: () => e("dataTable.agGrid.contains"),
1231
+ notContains: () => e("dataTable.agGrid.notContains"),
1232
+ startsWith: () => e("dataTable.agGrid.startsWith"),
1233
+ endsWith: () => e("dataTable.agGrid.endsWith"),
1234
+ blank: () => e("dataTable.agGrid.blank"),
1235
+ notBlank: () => e("dataTable.agGrid.notBlank"),
1236
+ before: () => e("dataTable.agGrid.before"),
1237
+ after: () => e("dataTable.agGrid.after"),
1238
+ andCondition: () => e("dataTable.agGrid.andCondition"),
1239
+ orCondition: () => e("dataTable.agGrid.orCondition"),
1240
+ dateFormatOoo: () => "yyyy-mm-dd",
1241
+ filterSummaryInactive: () => e("dataTable.agGrid.filterSummaryInactive"),
1242
+ filterSummaryContains: () => e("dataTable.agGrid.filterSummaryContains"),
1243
+ filterSummaryNotContains: () => e("dataTable.agGrid.filterSummaryNotContains"),
1244
+ filterSummaryTextEquals: () => e("dataTable.agGrid.filterSummaryTextEquals"),
1245
+ filterSummaryTextNotEqual: () => e("dataTable.agGrid.filterSummaryTextNotEqual"),
1246
+ filterSummaryStartsWith: () => e("dataTable.agGrid.filterSummaryStartsWith"),
1247
+ filterSummaryEndsWith: () => e("dataTable.agGrid.filterSummaryEndsWith"),
1248
+ filterSummaryBlank: () => e("dataTable.agGrid.filterSummaryBlank"),
1249
+ filterSummaryNotBlank: () => e("dataTable.agGrid.filterSummaryNotBlank"),
1250
+ filterSummaryEquals: () => "=",
1251
+ filterSummaryNotEqual: () => "!=",
1252
+ filterSummaryGreaterThan: () => ">",
1253
+ filterSummaryGreaterThanOrEqual: () => ">=",
1254
+ filterSummaryLessThan: () => "<",
1255
+ filterSummaryLessThanOrEqual: () => "<=",
1256
+ filterSummaryInRange: () => e("dataTable.agGrid.filterSummaryInRange"),
1257
+ yesterday: () => e("dataTable.agGrid.yesterday"),
1258
+ today: () => e("dataTable.agGrid.today"),
1259
+ tomorrow: () => e("dataTable.agGrid.tomorrow"),
1260
+ last7Days: () => e("dataTable.agGrid.last7Days"),
1261
+ lastWeek: () => e("dataTable.agGrid.lastWeek"),
1262
+ thisWeek: () => e("dataTable.agGrid.thisWeek"),
1263
+ nextWeek: () => e("dataTable.agGrid.nextWeek"),
1264
+ last30Days: () => e("dataTable.agGrid.last30Days"),
1265
+ lastMonth: () => e("dataTable.agGrid.lastMonth"),
1266
+ thisMonth: () => e("dataTable.agGrid.thisMonth"),
1267
+ nextMonth: () => e("dataTable.agGrid.nextMonth"),
1268
+ last90Days: () => e("dataTable.agGrid.last90Days"),
1269
+ lastQuarter: () => e("dataTable.agGrid.lastQuarter"),
1270
+ thisQuarter: () => e("dataTable.agGrid.thisQuarter"),
1271
+ nextQuarter: () => e("dataTable.agGrid.nextQuarter"),
1272
+ lastYear: () => e("dataTable.agGrid.lastYear"),
1273
+ thisYear: () => e("dataTable.agGrid.thisYear"),
1274
+ yearToDate: () => e("dataTable.agGrid.yearToDate"),
1275
+ nextYear: () => e("dataTable.agGrid.nextYear"),
1276
+ last6Months: () => e("dataTable.agGrid.last6Months"),
1277
+ last12Months: () => e("dataTable.agGrid.last12Months"),
1278
+ last24Months: () => e("dataTable.agGrid.last24Months"),
1279
+ filterSummaryInRangeValues: (l) => `(${l[0]}, ${l[1]})`,
1280
+ filterSummaryTextQuote: (l) => `"${l[0]}"`,
1281
+ minDateValidation: (l) => e("dataTable.agGrid.minDateValidation", { var0: l[0] }),
1282
+ maxDateValidation: (l) => e("dataTable.agGrid.maxDateValidation", { var0: l[0] }),
1283
+ strictMinValueValidation: (l) => e("dataTable.agGrid.strictMinValueValidation", { var0: l[0] }),
1284
+ strictMaxValueValidation: (l) => e("dataTable.agGrid.strictMaxValueValidation", { var0: l[0] }),
1285
+ ariaSortableColumn: () => e("dataTable.agGrid.ariaSortableColumn"),
1286
+ ariaMenuColumn: () => e("dataTable.agGrid.ariaMenuColumn"),
1287
+ ariaFilterColumn: () => e("dataTable.agGrid.ariaFilterColumn"),
1288
+ ariaColumnFiltered: () => e("dataTable.agGrid.ariaColumnFiltered"),
1289
+ ariaColumnCellSelection: () => e("dataTable.agGrid.ariaColumnCellSelection"),
1290
+ rowDragRows: () => e("dataTable.agGrid.rowDragRows"),
1291
+ rowDragRow: () => e("dataTable.agGrid.rowDragRow"),
1292
+ ariaColumnGroupCellSelection: () => e("dataTable.agGrid.ariaColumnGroupCellSelection"),
1293
+ ariaToggleCellValue: () => e("dataTable.agGrid.ariaToggleCellValue"),
1294
+ loadingError: () => e("dataTable.agGrid.loadingError"),
1295
+ ariaSkeletonCellLoadingFailed: () => e("dataTable.agGrid.ariaSkeletonCellLoadingFailed"),
1296
+ ariaDeferSkeletonCellLoading: () => e("dataTable.agGrid.ariaDeferSkeletonCellLoading"),
1297
+ ariaSkeletonCellLoading: () => e("dataTable.agGrid.ariaSkeletonCellLoading"),
1298
+ invalidDate: () => e("dataTable.agGrid.invalidDate"),
1299
+ invalidNumber: () => e("dataTable.agGrid.invalidNumber"),
1300
+ invalidBigInt: () => e("dataTable.agGrid.invalidBigInt"),
1301
+ ariaValidationErrorPrefix: () => e("dataTable.agGrid.ariaValidationErrorPrefix"),
1302
+ exportingOoo: () => e("dataTable.agGrid.exportingOoo"),
1303
+ loadingOoo: () => e("dataTable.agGrid.loadingOoo"),
1304
+ noMatchingRows: () => e("dataTable.agGrid.noMatchingRows"),
1305
+ noRowsToShow: () => e("dataTable.agGrid.noRowsToShow"),
1306
+ ariaLabelTooltip: () => e("dataTable.agGrid.ariaLabelTooltip"),
1307
+ tooltipValidationErrorSeparator: () => ". ",
1308
+ ariaInputEditor: () => e("dataTable.agGrid.ariaInputEditor"),
1309
+ maxLengthValidation: (l) => e("dataTable.agGrid.maxLengthValidation", { var0: l[0] }),
1310
+ minValueValidation: (l) => e("dataTable.agGrid.minValueValidation", { var0: l[0] }),
1311
+ maxValueValidation: (l) => e("dataTable.agGrid.maxValueValidation", { var0: l[0] }),
1312
+ invalidSelectionValidation: () => e("dataTable.agGrid.invalidSelectionValidation"),
1313
+ ariaPendingChange: () => e("dataTable.agGrid.ariaPendingChange"),
1314
+ ariaFilterMenuOpen: () => e("dataTable.agGrid.ariaFilterMenuOpen"),
1315
+ january: () => i.format(new Date(Date.UTC(2026, 0, 1))),
1316
+ february: () => i.format(new Date(Date.UTC(2026, 1, 1))),
1317
+ march: () => i.format(new Date(Date.UTC(2026, 2, 1))),
1318
+ april: () => i.format(new Date(Date.UTC(2026, 3, 1))),
1319
+ may: () => i.format(new Date(Date.UTC(2026, 4, 1))),
1320
+ june: () => i.format(new Date(Date.UTC(2026, 5, 1))),
1321
+ july: () => i.format(new Date(Date.UTC(2026, 6, 1))),
1322
+ august: () => i.format(new Date(Date.UTC(2026, 7, 1))),
1323
+ september: () => i.format(new Date(Date.UTC(2026, 8, 1))),
1324
+ october: () => i.format(new Date(Date.UTC(2026, 9, 1))),
1325
+ november: () => i.format(new Date(Date.UTC(2026, 10, 1))),
1326
+ december: () => i.format(new Date(Date.UTC(2026, 11, 1))),
1327
+ ariaLabelColumnMenu: () => e("dataTable.agGrid.ariaLabelColumnMenu"),
1328
+ ariaLabelColumnFilter: () => e("dataTable.agGrid.ariaLabelColumnFilter"),
1329
+ ariaFilterInput: () => e("dataTable.agGrid.ariaFilterInput"),
1330
+ ariaFilterFromValue: () => e("dataTable.agGrid.ariaFilterFromValue"),
1331
+ ariaFilterValue: () => e("dataTable.agGrid.ariaFilterValue"),
1332
+ ariaFilterToValue: () => e("dataTable.agGrid.ariaFilterToValue"),
1333
+ ariaFilteringOperator: () => e("dataTable.agGrid.ariaFilteringOperator"),
1334
+ ariaDateFilterInput: () => e("dataTable.agGrid.ariaDateFilterInput"),
1335
+ thousandSeparator: () => {
1336
+ var l;
1337
+ return ((l = c.find((p) => p.type === "group")) == null ? void 0 : l.value) ?? "";
1338
+ },
1339
+ decimalSeparator: () => {
1340
+ var l;
1341
+ return ((l = c.find((p) => p.type === "decimal")) == null ? void 0 : l.value) ?? "";
1342
+ },
1343
+ pageSizeSelectorLabel: () => e("dataTable.agGrid.pageSizeSelectorLabel"),
1344
+ ariaPageSizeSelectorLabel: () => e("dataTable.agGrid.ariaPageSizeSelectorLabel"),
1345
+ to: () => e("dataTable.to"),
1346
+ of: () => e("dataTable.of"),
1347
+ firstPage: () => e("dataTable.firstPage"),
1348
+ previousPage: () => e("dataTable.previousPage"),
1349
+ page: () => e("dataTable.page"),
1350
+ nextPage: () => e("dataTable.nextPage"),
1351
+ lastPage: () => e("dataTable.lastPage"),
1352
+ pageLastRowUnknown: () => "?",
1353
+ more: () => e("dataTable.agGrid.more"),
1354
+ ariaRowSelectAll: () => e("dataTable.agGrid.ariaRowSelectAll"),
1355
+ ariaHeaderSelection: () => e("dataTable.agGrid.ariaHeaderSelection"),
1356
+ ariaLabelSelectField: () => e("dataTable.agGrid.ariaLabelSelectField"),
1357
+ ariaRowToggleSelection: () => e("dataTable.agGrid.ariaRowToggleSelection"),
1358
+ ariaRowSelectionDisabled: () => e("dataTable.agGrid.ariaRowSelectionDisabled"),
1359
+ ariaRowDeselect: () => e("dataTable.agGrid.ariaRowDeselect"),
1360
+ ariaRowSelect: () => e("dataTable.agGrid.ariaRowSelect")
1361
+ };
1362
+ return ({ key: l, defaultValue: p, variableValues: f = [] }) => {
1363
+ if (n && Object.hasOwn(n, l)) {
1364
+ let g = 0;
1365
+ return n[l].replace(
1366
+ /\$\{variable\}/g,
1367
+ (h) => f[g++] ?? h
1368
+ );
1369
+ }
1370
+ return Object.hasOwn(m, l) ? m[l](f) : p;
1371
+ };
1372
+ }
1373
+ _t.registerModules([$t]);
1374
+ const Na = qt("ag-theme-alfadocs ds:w-full", {
1375
+ variants: {
1376
+ density: {
1377
+ default: "",
1378
+ compact: "data-table-compact",
1379
+ expanded: "data-table-expanded"
1380
+ },
1381
+ bordered: {
1382
+ true: "",
1383
+ false: "ds:[--ag-borders:none]"
1384
+ }
1385
+ },
1386
+ defaultVariants: {
1387
+ density: "default",
1388
+ bordered: !0
1389
+ }
1390
+ });
1391
+ function ka() {
1392
+ return /* @__PURE__ */ s(
1393
+ "div",
1394
+ {
1395
+ role: "status",
1396
+ "aria-live": "polite",
1397
+ className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1398
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ s(
1399
+ Vt,
1400
+ {
1401
+ variant: "rectangular",
1402
+ className: "ds:h-[var(--min-target-size)] ds:w-full"
1403
+ },
1404
+ t
1405
+ ))
1406
+ }
1407
+ );
1408
+ }
1409
+ function Pa() {
1410
+ const { t: e } = A("ui");
1411
+ return /* @__PURE__ */ s(
1412
+ zt,
1413
+ {
1414
+ variant: "no-results",
1415
+ size: "sm",
1416
+ title: e("dataTable.noRows"),
1417
+ description: e("dataTable.noRowsDescription")
1418
+ }
1419
+ );
1420
+ }
1421
+ function Aa(e) {
1422
+ return e.map(({ pinned: t, ...n }) => n);
1423
+ }
1424
+ function Ma(e) {
1425
+ return e.map(({ hide: t, pinned: n, ...r }) => r);
1426
+ }
1427
+ function Oa(e, t) {
1428
+ try {
1429
+ const n = localStorage.getItem(`data-table-col-state:${e}`);
1430
+ if (!n) return null;
1431
+ const r = JSON.parse(n);
1432
+ if (Array.isArray(r))
1433
+ return {
1434
+ state: Ma(r),
1435
+ touched: []
1436
+ };
1437
+ if (typeof r != "object" || r === null) return null;
1438
+ const i = r;
1439
+ return i.v !== 2 || !Array.isArray(i.state) ? null : {
1440
+ state: i.dir === t ? i.state : Aa(i.state),
1441
+ touched: Array.isArray(i.touched) ? i.touched.filter((c) => typeof c == "string") : []
1442
+ };
1443
+ } catch {
1444
+ return null;
1445
+ }
1446
+ }
1447
+ function La(e, t, n, r) {
1448
+ try {
1449
+ const i = {
1450
+ v: 2,
1451
+ dir: n,
1452
+ state: t.getColumnState(),
1453
+ touched: [...r]
1454
+ };
1455
+ localStorage.setItem(
1456
+ `data-table-col-state:${e}`,
1457
+ JSON.stringify(i)
1458
+ );
1459
+ } catch {
1460
+ }
1461
+ }
1462
+ const Va = /* @__PURE__ */ new Set([
1463
+ "api",
1464
+ "flex",
1465
+ "gridInitializing",
1466
+ "gridOptionsChanged",
1467
+ "autosizeColumns",
1468
+ "sizeColumnsToFit"
1469
+ ]);
1470
+ function za(e, t) {
1471
+ const {
1472
+ columnDefs: n,
1473
+ rowData: r,
1474
+ rowSelection: i,
1475
+ pagination: c = !1,
1476
+ paginationPageSize: m = 25,
1477
+ paginationPageSizeSelector: l = [10, 25, 50, 100],
1478
+ gridId: p,
1479
+ onSelectionChanged: f,
1480
+ onSortChanged: g,
1481
+ onFilterChanged: h,
1482
+ noRowsOverlay: R,
1483
+ loadingOverlay: v,
1484
+ gridOptions: d,
1485
+ density: b,
1486
+ bordered: x,
1487
+ heightClass: w = "ds:h-[500px]",
1488
+ className: S,
1489
+ getRowClass: D,
1490
+ pinnedBottomRowData: te,
1491
+ printMode: V = !1,
1492
+ expandedRowId: C,
1493
+ renderExpandedRow: O,
1494
+ onExpandedRowChange: L,
1495
+ children: k
1496
+ } = e, N = C !== void 0 || O !== void 0, W = d == null ? void 0 : d.getRowId;
1497
+ if (N && !W)
1498
+ throw new Error(
1499
+ "DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
1500
+ );
1501
+ const { t: _, i18n: E } = A("ui"), G = q(null), ae = q(null);
1502
+ va(ae);
1503
+ const [Y, Ce] = M(0), [J, ve] = M(""), ce = q(void 0), lt = z(
1504
+ () => Ia(_, E.language, d == null ? void 0 : d.localeText),
1505
+ [_, E.language, d == null ? void 0 : d.localeText]
1506
+ ), [ue, st] = M(E.language);
1507
+ B(() => {
1508
+ if (ue === E.language) return;
1509
+ const a = window.setTimeout(() => {
1510
+ var T, y;
1511
+ const o = (T = G.current) == null ? void 0 : T.api;
1512
+ o == null || o.stopEditing();
1513
+ const u = o == null ? void 0 : o.getState();
1514
+ if (u) {
1515
+ const { focusedCell: I, columnPinning: P, ...X } = u, H = ((y = ae.current) == null ? void 0 : y.contains(document.activeElement)) ?? !1, be = E.dir(ue) === E.dir(E.language);
1516
+ ce.current = {
1517
+ ...X,
1518
+ ...H ? { focusedCell: I } : {},
1519
+ ...be ? { columnPinning: P } : {}
1520
+ };
1521
+ } else ce.current = void 0;
1522
+ st(E.language);
1523
+ }, 0);
1524
+ return () => window.clearTimeout(a);
1525
+ }, [ue, E, E.language]);
1526
+ const Le = q(C);
1527
+ Le.current = C;
1528
+ const Se = z(
1529
+ () => ({
1530
+ getSelection: () => {
1531
+ var u;
1532
+ const a = (u = G.current) == null ? void 0 : u.api;
1533
+ if (!a) return [];
1534
+ const o = [];
1535
+ for (const T of a.getSelectedNodes())
1536
+ T.id != null && !$(T.data) && o.push(T.id);
1537
+ return o;
1538
+ },
1539
+ setSelection: (a) => {
1540
+ var T;
1541
+ const o = (T = G.current) == null ? void 0 : T.api;
1542
+ if (!o) return;
1543
+ const u = new Set(a);
1544
+ o.forEachNode((y) => {
1545
+ y.id != null && y.setSelected(u.has(y.id));
1546
+ });
1547
+ },
1548
+ selectRange: (a, o) => {
1549
+ var be;
1550
+ const u = (be = G.current) == null ? void 0 : be.api;
1551
+ if (!u) return;
1552
+ const T = [];
1553
+ u.forEachNodeAfterFilterAndSort((ee) => {
1554
+ ee.id != null && !$(ee.data) && T.push(ee.id);
1555
+ });
1556
+ const y = T.indexOf(a), I = T.indexOf(o);
1557
+ if (y < 0 || I < 0) return;
1558
+ const [P, X] = y <= I ? [y, I] : [I, y], H = new Set(T.slice(P, X + 1));
1559
+ u.forEachNode((ee) => {
1560
+ ee.id != null && ee.setSelected(H.has(ee.id));
1561
+ });
1562
+ },
1563
+ clearSelection: () => {
1564
+ var a, o;
1565
+ (o = (a = G.current) == null ? void 0 : a.api) == null || o.deselectAll();
1566
+ },
1567
+ getFilter: () => {
1568
+ var a, o;
1569
+ return ((o = (a = G.current) == null ? void 0 : a.api) == null ? void 0 : o.getFilterModel()) ?? {};
1570
+ },
1571
+ setFilter: (a) => {
1572
+ var o, u;
1573
+ (u = (o = G.current) == null ? void 0 : o.api) == null || u.setFilterModel(a);
1574
+ },
1575
+ getSort: () => {
1576
+ var o;
1577
+ const a = (o = G.current) == null ? void 0 : o.api;
1578
+ return a ? a.getColumnState().filter((u) => u.sort === "asc" || u.sort === "desc").map((u) => ({ colId: u.colId, sort: u.sort })) : [];
1579
+ },
1580
+ setSort: (a) => {
1581
+ var T;
1582
+ const o = (T = G.current) == null ? void 0 : T.api;
1583
+ if (!o) return;
1584
+ const u = o.getColumnState().map((y) => {
1585
+ const I = a.find((P) => P.colId === y.colId);
1586
+ return { ...y, sort: I ? I.sort : null };
1587
+ });
1588
+ o.applyColumnState({ state: u, defaultState: { sort: null } });
1589
+ },
1590
+ getCurrentPage: () => {
1591
+ var a, o;
1592
+ return ((o = (a = G.current) == null ? void 0 : a.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
1593
+ },
1594
+ goToPage: (a) => {
1595
+ var o, u;
1596
+ (u = (o = G.current) == null ? void 0 : o.api) == null || u.paginationGoToPage(a);
1597
+ },
1598
+ getExpandedRowId: () => Le.current ?? null,
1599
+ getUserTouchedColumns: () => [...re.current],
1600
+ markColumnsUserTouched: (a) => Ve.current(a),
1601
+ getRawApi: () => {
1602
+ var a;
1603
+ return (a = G.current) == null ? void 0 : a.api;
1604
+ }
1605
+ }),
1606
+ []
1607
+ ), pe = q(/* @__PURE__ */ new Map()), re = q(/* @__PURE__ */ new Set()), Ve = q(
1608
+ () => {
1609
+ }
1610
+ );
1611
+ Lt(t, () => Se, [Se]), ea(Ea, Se, p);
1612
+ const ze = E.dir() === "rtl", dt = r === void 0, ct = ta(), { resolvedTheme: qe } = aa(), ut = (qe === "light-accessible" || qe === "dark-accessible") && b === "compact" ? "default" : b, pt = z(() => {
1613
+ if (!i) return;
1614
+ const a = (o) => !$(o.data);
1615
+ return i === "single" ? {
1616
+ mode: "singleRow",
1617
+ enableClickSelection: !1,
1618
+ isRowSelectable: a
1619
+ } : {
1620
+ mode: "multiRow",
1621
+ headerCheckbox: !0,
1622
+ checkboxes: !0,
1623
+ enableClickSelection: !1,
1624
+ isRowSelectable: a
1625
+ };
1626
+ }, [i]), ge = ze ? "rtl" : "ltr", K = F(
1627
+ (a, o, u) => {
1628
+ const T = new Set(o);
1629
+ for (const y of a.getColumnState()) {
1630
+ if (!T.has(y.colId)) continue;
1631
+ const I = pe.current.get(y.colId) ?? {};
1632
+ for (const P of u) I[P] = y[P];
1633
+ pe.current.set(y.colId, I);
1634
+ }
1635
+ },
1636
+ []
1637
+ ), le = F(
1638
+ (a) => {
1639
+ p && La(p, a, ge, re.current);
1640
+ },
1641
+ [p, ge]
1642
+ ), je = F(
1643
+ (a) => {
1644
+ var u;
1645
+ for (const T of a) re.current.add(T);
1646
+ const o = (u = G.current) == null ? void 0 : u.api;
1647
+ o && (K(o, a, ["hide"]), le(o));
1648
+ },
1649
+ [le, K]
1650
+ );
1651
+ Ve.current = je;
1652
+ const gt = F(() => {
1653
+ var u;
1654
+ if (!((u = G.current) != null && u.api)) return;
1655
+ const a = G.current.api, o = p ? Oa(p, ge) : null;
1656
+ if (!(!o || ce.current)) {
1657
+ for (const T of o.touched) re.current.add(T);
1658
+ a.applyColumnState({
1659
+ state: o.state,
1660
+ applyOrder: !0
1661
+ }), K(a, o.touched, ["hide"]);
1662
+ }
1663
+ }, [p, ge, K]), mt = F(
1664
+ (a) => {
1665
+ var u;
1666
+ if (a.source !== "gridOptionsChanged") return;
1667
+ const o = (u = G.current) == null ? void 0 : u.api;
1668
+ !o || pe.current.size === 0 || o.applyColumnState({
1669
+ state: [...pe.current].map(([T, y]) => ({
1670
+ colId: T,
1671
+ ...y
1672
+ }))
1673
+ });
1674
+ },
1675
+ []
1676
+ ), me = F(
1677
+ (a) => {
1678
+ var T;
1679
+ const o = (T = G.current) == null ? void 0 : T.api;
1680
+ if (!o) return;
1681
+ const u = (a.columns ?? (a.column ? [a.column] : [])).map((y) => y.getColId());
1682
+ if (a.source && Va.has(a.source)) {
1683
+ if (a.source === "api" && "visible" in a) {
1684
+ const y = u.filter(
1685
+ (I) => re.current.has(I)
1686
+ );
1687
+ y.length > 0 && (K(o, y, ["hide"]), le(o));
1688
+ }
1689
+ return;
1690
+ }
1691
+ if ("visible" in a) {
1692
+ for (const y of u) re.current.add(y);
1693
+ K(o, u, ["hide"]);
1694
+ } else "pinned" in a ? K(o, u, ["pinned"]) : "flexColumns" in a && K(o, u, ["width", "flex"]);
1695
+ le(o);
1696
+ },
1697
+ [le, K]
1698
+ ), ft = z(() => {
1699
+ if (!d) return;
1700
+ const a = { ...d };
1701
+ return delete a.defaultColDef, delete a.initialState, N && (delete a.getRowId, delete a.isFullWidthRow, delete a.fullWidthCellRenderer, delete a.getRowHeight, delete a.postSortRows, delete a.getRowClass, delete a.defaultCsvExportParams, delete a.defaultExcelExportParams), a;
1702
+ }, [N, d]), We = q(/* @__PURE__ */ new Map()), se = q(d);
1703
+ se.current = d;
1704
+ const _e = F(
1705
+ (a) => {
1706
+ var o;
1707
+ return W == null ? void 0 : W({
1708
+ data: a,
1709
+ level: 0,
1710
+ api: (o = G.current) == null ? void 0 : o.api,
1711
+ context: d == null ? void 0 : d.context
1712
+ });
1713
+ },
1714
+ [W, d == null ? void 0 : d.context]
1715
+ ), Z = z(() => {
1716
+ if (!N || C == null || !r) return null;
1717
+ const a = r.find((o) => _e(o) === C);
1718
+ return a === void 0 ? null : { id: C, row: a };
1719
+ }, [N, C, _e, r]), bt = z(() => {
1720
+ if (!Z || !r) return r;
1721
+ const a = r.indexOf(Z.row), o = Ga(Z.row, Z.id);
1722
+ return [
1723
+ ...r.slice(0, a + 1),
1724
+ o,
1725
+ ...r.slice(a + 1)
1726
+ ];
1727
+ }, [Z, r]), ht = F(
1728
+ (a) => $(a.data) ? Da(a.data[oe]) : W(a),
1729
+ [W]
1730
+ ), Tt = F(
1731
+ (a) => {
1732
+ var o, u;
1733
+ return $(a.rowNode.data) || (((u = (o = se.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : u.call(o, a)) ?? !1);
1734
+ },
1735
+ []
1736
+ ), yt = F(
1737
+ (a) => {
1738
+ var o, u;
1739
+ return $(a.data) ? We.current.get(a.node.id ?? "") : (u = (o = se.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : u.call(o, a);
1740
+ },
1741
+ []
1742
+ ), xt = F(
1743
+ (a) => {
1744
+ var P, X;
1745
+ (X = (P = se.current) == null ? void 0 : P.postSortRows) == null || X.call(P, a);
1746
+ const { nodes: o } = a, u = o.findIndex((H) => $(H.data));
1747
+ if (u < 0) return;
1748
+ const [T] = o.splice(u, 1), y = T.data[oe], I = o.findIndex((H) => H.id === y);
1749
+ o.splice(I < 0 ? o.length : I + 1, 0, T);
1750
+ },
1751
+ []
1752
+ ), wt = F(
1753
+ (a) => {
1754
+ var o, u;
1755
+ return $(a.data) ? Sa : ((u = (o = se.current) == null ? void 0 : o.getRowClass) == null ? void 0 : u.call(o, a)) ?? (D == null ? void 0 : D(a));
1756
+ },
1757
+ [D]
1758
+ ), fe = F(
1759
+ (a) => $(a.node.data),
1760
+ []
1761
+ ), Ct = z(() => {
1762
+ if (!N) return;
1763
+ const a = d == null ? void 0 : d.defaultCsvExportParams;
1764
+ return {
1765
+ ...a,
1766
+ shouldRowBeSkipped: (o) => {
1767
+ var u;
1768
+ return fe(o) || (((u = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : u.call(a, o)) ?? !1);
1769
+ }
1770
+ };
1771
+ }, [N, d == null ? void 0 : d.defaultCsvExportParams, fe]), vt = z(() => {
1772
+ if (!N) return;
1773
+ const a = d == null ? void 0 : d.defaultExcelExportParams;
1774
+ return {
1775
+ ...a,
1776
+ shouldRowBeSkipped: (o) => {
1777
+ var u;
1778
+ return fe(o) || (((u = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : u.call(a, o)) ?? !1);
1779
+ }
1780
+ };
1781
+ }, [N, d == null ? void 0 : d.defaultExcelExportParams, fe]), Re = d == null ? void 0 : d.fullWidthCellRenderer, St = z(
1782
+ () => ({
1783
+ renderExpandedRow: O,
1784
+ onExpandedRowChange: L,
1785
+ expanded: Z,
1786
+ heights: We.current,
1787
+ fallbackRenderer: typeof Re == "function" ? Re : void 0
1788
+ }),
1789
+ [
1790
+ Re,
1791
+ Z,
1792
+ L,
1793
+ O
1794
+ ]
1795
+ ), Rt = F(() => {
1796
+ var u;
1797
+ const a = (u = G.current) == null ? void 0 : u.api;
1798
+ if (!a) return;
1799
+ const o = a.getSelectedRows().filter((T) => !$(T));
1800
+ Ce(o.length), f == null || f(o);
1801
+ }, [f]), Dt = F(
1802
+ (a) => {
1803
+ var u;
1804
+ const o = (u = G.current) == null ? void 0 : u.api;
1805
+ if (o) {
1806
+ const y = o.getColumnState().find((I) => I.sort);
1807
+ if (y) {
1808
+ const I = y.colId, P = o.getColumnDef(I), X = (P == null ? void 0 : P.headerName) ?? I, H = y.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1809
+ ve(
1810
+ _("dataTable.sortAnnounce", {
1811
+ column: X,
1812
+ direction: _(H)
1813
+ })
1814
+ );
1815
+ } else
1816
+ ve("");
1817
+ }
1818
+ g == null || g(a);
1819
+ },
1820
+ [g, _]
1821
+ ), Gt = F(
1822
+ (a) => {
1823
+ h == null || h(a);
1824
+ },
1825
+ [h]
1826
+ );
1827
+ B(() => {
1828
+ if (!J) return;
1829
+ const a = setTimeout(() => ve(""), 3e3);
1830
+ return () => clearTimeout(a);
1831
+ }, [J]);
1832
+ const Ft = R ?? Pa, Et = v ?? ka, It = F(
1833
+ () => {
1834
+ var a;
1835
+ return (a = G.current) == null ? void 0 : a.api;
1836
+ },
1837
+ []
1838
+ ), Nt = F(() => {
1839
+ typeof window < "u" && window.print();
1840
+ }, []), kt = Na({
1841
+ density: ut,
1842
+ bordered: x,
1843
+ className: S
1844
+ }), Pt = k ?? /* @__PURE__ */ s("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ j(
1845
+ Bt,
1846
+ {
1847
+ role: "toolbar",
1848
+ "aria-label": _("dataTable.tableActions"),
1849
+ className: "ds:bg-[var(--background)]",
1850
+ children: [
1851
+ /* @__PURE__ */ s(xe.ExportMenu, {}),
1852
+ /* @__PURE__ */ s(xe.Print, {}),
1853
+ /* @__PURE__ */ s(xe.ColumnToggle, {})
1854
+ ]
1855
+ }
1856
+ ) }), At = V ? !1 : c;
1857
+ return /* @__PURE__ */ j(
1858
+ "div",
1859
+ {
1860
+ className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1861
+ "aria-busy": dt ? "true" : void 0,
1862
+ "data-component": "data-table",
1863
+ "data-component-id": p,
1864
+ "data-print-mode": V ? "true" : void 0,
1865
+ children: [
1866
+ !V && /* @__PURE__ */ s(
1867
+ la,
1868
+ {
1869
+ getApi: It,
1870
+ selectionCount: Y,
1871
+ onPrint: Nt,
1872
+ markColumnsUserTouched: je,
1873
+ children: Pt
1874
+ }
1875
+ ),
1876
+ /* @__PURE__ */ s(
1877
+ "div",
1878
+ {
1879
+ ref: ae,
1880
+ className: [kt, V ? "" : w].join(" ").trim(),
1881
+ children: /* @__PURE__ */ s(
1882
+ ot.Provider,
1883
+ {
1884
+ value: St,
1885
+ children: /* @__PURE__ */ s(
1886
+ Wt,
1887
+ {
1888
+ ref: G,
1889
+ initialState: ce.current ?? (d == null ? void 0 : d.initialState),
1890
+ theme: "legacy",
1891
+ columnDefs: n,
1892
+ rowData: bt,
1893
+ defaultColDef: {
1894
+ sortable: !0,
1895
+ // Default filter = DS-styled text filter so untyped columns
1896
+ // (no explicit `filter:` override) inherit the kit's form
1897
+ // language instead of AG Grid's stock browser-skinned input.
1898
+ // Number / date / select columns opt into their dedicated
1899
+ // wrapper per-column.
1900
+ filter: xa,
1901
+ floatingFilterComponent: wa,
1902
+ resizable: !0,
1903
+ floatingFilter: !0,
1904
+ // §13d — faint sort icon advertises which columns are
1905
+ // sortable. v33+ moved this from grid-level to defaultColDef.
1906
+ unSortIcon: !0,
1907
+ ...d == null ? void 0 : d.defaultColDef
1908
+ },
1909
+ rowSelection: pt,
1910
+ pagination: At,
1911
+ paginationPageSize: m,
1912
+ paginationPageSizeSelector: l,
1913
+ paginationNumberFormatter: (a) => new Intl.NumberFormat(E.language).format(a.value),
1914
+ animateRows: !ct,
1915
+ enableRtl: ze,
1916
+ ensureDomOrder: !0,
1917
+ enableCellSpan: !0,
1918
+ enableCellTextSelection: !0,
1919
+ copyHeadersToClipboard: !0,
1920
+ accentedSort: !0,
1921
+ multiSortKey: "ctrl",
1922
+ suppressDragLeaveHidesColumns: !0,
1923
+ tooltipShowDelay: 500,
1924
+ tooltipHideDelay: 5e3,
1925
+ tooltipInteraction: !0,
1926
+ stopEditingWhenCellsLoseFocus: !0,
1927
+ maintainColumnOrder: !0,
1928
+ undoRedoCellEditing: !0,
1929
+ undoRedoCellEditingLimit: 20,
1930
+ suppressCellFocus: !1,
1931
+ rowBuffer: 10,
1932
+ getLocaleText: lt,
1933
+ rowDragText: (a, o) => _("dataTable.dragRows", { count: o }),
1934
+ noRowsOverlayComponent: Ft,
1935
+ loadingOverlayComponent: Et,
1936
+ getRowClass: N ? wt : D,
1937
+ pinnedBottomRowData: te,
1938
+ domLayout: V ? "autoHeight" : void 0,
1939
+ onGridReady: gt,
1940
+ onNewColumnsLoaded: mt,
1941
+ onColumnMoved: me,
1942
+ onColumnResized: me,
1943
+ onColumnPinned: me,
1944
+ onColumnVisible: me,
1945
+ onSortChanged: Dt,
1946
+ onFilterChanged: Gt,
1947
+ onSelectionChanged: Rt,
1948
+ ...ft,
1949
+ ...N ? {
1950
+ getRowId: ht,
1951
+ isFullWidthRow: Tt,
1952
+ fullWidthCellRenderer: Fa,
1953
+ getRowHeight: yt,
1954
+ postSortRows: xt,
1955
+ defaultCsvExportParams: Ct,
1956
+ defaultExcelExportParams: vt
1957
+ } : {}
1958
+ },
1959
+ ue
1960
+ )
1961
+ }
1962
+ )
1963
+ }
1964
+ ),
1965
+ !V && /* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: Y > 0 ? /* @__PURE__ */ s("span", { children: _("dataTable.selected", { count: Y }) }) : /* @__PURE__ */ s("span", {}) }),
1966
+ /* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: J })
1967
+ ]
1968
+ }
1969
+ );
1970
+ }
1971
+ const it = U(za);
1972
+ it.displayName = "DataTable";
1973
+ const yr = Object.assign(it, {
1974
+ Toolbar: xe
1975
+ });
1976
+ export {
1977
+ yr as D,
1978
+ Sa as E,
1979
+ xa as T,
1980
+ wa as a,
1981
+ xe as b,
1982
+ la as c,
1983
+ Ea as d,
1984
+ Je as e,
1985
+ Da as f,
1986
+ Tr as g,
1987
+ $ as i
1988
+ };
1989
+ //# sourceMappingURL=data-table-DJvEwZZx.js.map