@alfadocs/ui-kit 1.141.0 → 1.143.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 (324) hide show
  1. package/dist/_chunks/{actions-cell-renderer-C-l_ppP6.js → actions-cell-renderer-CPNyF6ye.js} +3 -3
  2. package/dist/_chunks/{ai-credits-notice-BNFcQoXo.js → ai-credits-notice-D_Zm_N2A.js} +2 -2
  3. package/dist/_chunks/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
  4. package/dist/_chunks/{ai-prompt-input-B2QFwuJ1.js → ai-prompt-input-y4-dtQIT.js} +2 -2
  5. package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
  6. package/dist/_chunks/{alia-sidebar-CVBlKur9.js → alia-sidebar-AKz42_XE.js} +3 -3
  7. package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
  8. package/dist/_chunks/{anamnesis-summary-rows-YJGs2uWD.js → anamnesis-summary-rows-wUl7oXBO.js} +9 -9
  9. package/dist/_chunks/{appointment-card-r0OZm77v.js → appointment-card-HOZrABrQ.js} +3 -3
  10. package/dist/_chunks/{appointment-details-panel.history-DrIMDQYf.js → appointment-details-panel.history-B8R8XfGe.js} +37 -30
  11. package/dist/_chunks/{appointment-peek-BP_ACFz5.js → appointment-peek-BCzekfWh.js} +3 -3
  12. package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
  13. package/dist/_chunks/{appointment-tray-t_ltp-Yi.js → appointment-tray-D8k5YKLU.js} +2 -2
  14. package/dist/_chunks/{audio-recorder-6dUq8I38.js → audio-recorder-DxhCiLqG.js} +2 -2
  15. package/dist/_chunks/{balance-badge-cell-CRStPNDd.js → balance-badge-cell-10BdaOQ8.js} +6 -6
  16. package/dist/_chunks/{bill-line-table-DTqXdBED.js → bill-line-table-qAdmV19W.js} +2 -2
  17. package/dist/_chunks/{bishop-score-M7Fi-ykx.js → bishop-score-DbvfBlBM.js} +2 -2
  18. package/dist/_chunks/{button-group-DuQuuulC.js → button-group-DoKG16Fy.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-Cg3GjaRf.js → calculator-dialog-BWizCwN5.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-CuXpgLCw.js → calendar-appointment-editor-dialog-9kVppi9f.js} +18 -18
  21. package/dist/_chunks/{calendar-editor-discard-host-BcMEgVEq.js → calendar-editor-discard-host-BblBxMqT.js} +5 -5
  22. package/dist/_chunks/{calendar-waiting-list-panel-BNQrUndD.js → calendar-waiting-list-panel-CSFJw5np.js} +6 -6
  23. package/dist/_chunks/{calendar.sheets-DcW8A3DI.js → calendar.sheets-DZh3p8HE.js} +13 -13
  24. package/dist/_chunks/{calls-panel-CJNQm7r8.js → calls-panel-CnjAKFgA.js} +92 -90
  25. package/dist/_chunks/{care-plan-card-CjHq6PLo.js → care-plan-card-CkRqA58O.js} +3 -3
  26. package/dist/_chunks/{care-plan-entry-card-DY1toF6E.js → care-plan-entry-card-DurPuYAP.js} +3 -3
  27. package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
  28. package/dist/_chunks/{chart-D0EeFWst.js → chart-ChNsJf9_.js} +2 -2
  29. package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
  30. package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
  31. package/dist/_chunks/{color-picker-CC8ZfntU.js → color-picker-5FKOk_z1.js} +2 -2
  32. package/dist/_chunks/{communications-panel-DBWM9II9.js → communications-panel-MgAuWYBy.js} +5 -5
  33. package/dist/_chunks/{control-room-rail-DcJpHbp4.js → control-room-rail-DBmNpbDE.js} +2 -2
  34. package/dist/_chunks/{cycle-calculator-Cb66X2Pf.js → cycle-calculator-BUCGfEcy.js} +2 -2
  35. package/dist/_chunks/{dashboard-grid-2uVXEe9e.js → dashboard-grid-D2egA1Zu.js} +2 -2
  36. package/dist/_chunks/{data-grid-tabs-D9Y4DeeH.js → data-grid-tabs-Mbj6bSK2.js} +2 -2
  37. package/dist/_chunks/{data-grid-CRUSZcVT.js → data-grid-tyE2kGfx.js} +5 -5
  38. package/dist/_chunks/{data-table-CnLfOwxg.js → data-table-Huk4CNHs.js} +118 -118
  39. package/dist/_chunks/{data-table-tabs-NYLhD8_Z.js → data-table-tabs-D5ujdK56.js} +2 -2
  40. package/dist/_chunks/{date-picker-BmVBVpVu.js → date-picker-CD-PBzXM.js} +2 -2
  41. package/dist/_chunks/{date-range-panel-CT9Pk-HF.js → date-range-panel-BOgfP_V3.js} +2 -2
  42. package/dist/_chunks/{date-range-picker-2Up_FRrM.js → date-range-picker-Z-hI5Vb7.js} +2 -2
  43. package/dist/_chunks/{date-time-picker-C6b_Vymc.js → date-time-picker-DHza1SEH.js} +2 -2
  44. package/dist/_chunks/{default-tabs-CRbVCDSU.js → default-tabs-ChkVzOL8.js} +7 -7
  45. package/dist/_chunks/dialog-239Geb7Z.js +431 -0
  46. package/dist/_chunks/dialog-container-DHR0byah.js +17 -0
  47. package/dist/_chunks/{document-preview-FTCHXYhk.js → document-preview-x_S8V7VC.js} +3 -3
  48. package/dist/_chunks/{dropdown-menu-DBWaW4pq.js → dropdown-menu-Bm1KALnk.js} +2 -2
  49. package/dist/_chunks/{due-date-calculator-Dlqegxx9.js → due-date-calculator-DpN0Z9p4.js} +2 -2
  50. package/dist/_chunks/{editable-currency-cell-renderer-CZMQ5xRT.js → editable-currency-cell-renderer-C6z6ABN_.js} +2 -2
  51. package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
  52. package/dist/_chunks/{face-scheme-Bxt7ZnJn.js → face-scheme-S88jbOzl.js} +3 -3
  53. package/dist/_chunks/{file-manager-Bsccb8Jj.js → file-manager-kdPsJq_k.js} +5 -5
  54. package/dist/_chunks/{gestational-age-calculator-DXSPWG8u.js → gestational-age-calculator-CCDIhSMV.js} +3 -3
  55. package/dist/_chunks/{hcg-doubling-Dqbj6PQj.js → hcg-doubling-BekuksBv.js} +2 -2
  56. package/dist/_chunks/{header-settings-Cu-MKOsO.js → header-settings-CvZ7Qii6.js} +3 -3
  57. package/dist/_chunks/{heatmap-CFPaEKD_.js → heatmap-Cb4JSpv_.js} +3 -3
  58. package/dist/_chunks/{help-me-write-templates-DO6vJeP4.js → help-me-write-templates-C84_4iwX.js} +2 -2
  59. package/dist/_chunks/{hover-card-CuRIA4wN.js → hover-card-CIiPOlyM.js} +2 -2
  60. package/dist/_chunks/{icon-button-group-SmkdVCNx.js → icon-button-group-CLhC7wjU.js} +2 -2
  61. package/dist/_chunks/{icon-picker-BmU6gpZT.js → icon-picker-Ct6n8GTa.js} +2 -2
  62. package/dist/_chunks/{info-tip-B3cn3fY2.js → info-tip-CkH2En-i.js} +2 -2
  63. package/dist/_chunks/{invoice-upload-list-BR6vycF7.js → invoice-upload-list-CZ1B9yWh.js} +4 -4
  64. package/dist/_chunks/{kit-extensions-QddOSnIq.js → kit-extensions-C_oZ7WOq.js} +4 -4
  65. package/dist/_chunks/{link-cell-renderer-hAJplRFF.js → link-cell-renderer-Bt_sl4iP.js} +5 -5
  66. package/dist/_chunks/{locale-picker-C86h8Yt1.js → locale-picker-OrojXX6E.js} +2 -2
  67. package/dist/_chunks/{marketplace-app-shell-dMmxI6MT.js → marketplace-app-shell-DnL187-U.js} +4 -4
  68. package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
  69. package/dist/_chunks/{message-tray-pLGgLmoG.js → message-tray-BHaE254g.js} +3 -3
  70. package/dist/_chunks/{muscle-scheme-BB2eBfww.js → muscle-scheme-vNd8wU7V.js} +2 -2
  71. package/dist/_chunks/{non-modal-tab-exit-j3CPOuE3.js → non-modal-tab-exit-DqJao_E-.js} +2 -1
  72. package/dist/_chunks/{notes-panel-C4HSUudf.js → notes-panel-DCKbuZqS.js} +400 -397
  73. package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
  74. package/dist/_chunks/{notification-tray-mlCfxNRH.js → notification-tray-CnPV8jDA.js} +3 -3
  75. package/dist/_chunks/{optical-prescription-GzeK_2cf.js → optical-prescription-CWwrW4YQ.js} +2 -2
  76. package/dist/_chunks/{pagination-C7N_NiRN.js → pagination-BpXG5jVk.js} +2 -2
  77. package/dist/_chunks/{parts-BOnDDU3E.js → parts-IFiXO68Y.js} +3 -3
  78. package/dist/_chunks/{patient-account-settings-nSvNKKOL.js → patient-account-settings-BQ9bMsJS.js} +3 -3
  79. package/dist/_chunks/{patient-check-in-resume-Cj2wg_NQ.js → patient-check-in-resume-v5lYhMsh.js} +5 -5
  80. package/dist/_chunks/{patient-details-D0PjzALT.js → patient-details-6uJZ27ZL.js} +2 -2
  81. package/dist/_chunks/{patient-field-row-DlpIModg.js → patient-field-row-D8Cu_MQp.js} +5 -5
  82. package/dist/_chunks/{patient-search-aTFd7p9s.js → patient-search-C6-INPjs.js} +2 -2
  83. package/dist/_chunks/{patient-summary-card-BP_K7g_q.js → patient-summary-card-NYjO0IfN.js} +3 -3
  84. package/dist/_chunks/{pdf-viewer-TRC5jEm5.js → pdf-viewer-C8no312t.js} +2 -2
  85. package/dist/_chunks/{phone-input-DRKcJUi4.js → phone-input-DHiYJZ9v.js} +2 -2
  86. package/dist/_chunks/{popover-CN5IsOeS.js → popover-CkvP3rHZ.js} +2 -2
  87. package/dist/_chunks/{popup-region-qz_5_A0V.js → popup-region-BgZ8oeUB.js} +2 -2
  88. package/dist/_chunks/{portal-details-Cnyqf9kY.js → portal-details-CwX3VNxh.js} +2 -2
  89. package/dist/_chunks/{portal-documents-g109Dl0O.js → portal-documents-BWdXhWpZ.js} +5 -5
  90. package/dist/_chunks/{portal-parts-DgDFuED8.js → portal-parts-DbCMuZVl.js} +3 -3
  91. package/dist/_chunks/{practice-results-DaxGw9_f.js → practice-results-BUEsl2Pj.js} +3 -3
  92. package/dist/_chunks/{pregnancy-dating-a6WIg4oy.js → pregnancy-dating-wc9iCN0f.js} +3 -3
  93. package/dist/_chunks/{prescription-history-Bp_JHhdF.js → prescription-history-DPjqflwJ.js} +9 -9
  94. package/dist/_chunks/{product-hub-panel-K4QbULG7.js → product-hub-panel-DiWjSIR2.js} +3 -3
  95. package/dist/_chunks/{public-header.agent-DaeDfLfy.js → public-header.agent-Dsl9zhA2.js} +2 -2
  96. package/dist/_chunks/{radiograph-panel.agent-88VjqlG7.js → radiograph-panel.agent-CSpr2paU.js} +4 -4
  97. package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
  98. package/dist/_chunks/{registration-form-Cs9o6e5q.js → registration-form-BEsIjznv.js} +4 -4
  99. package/dist/_chunks/{reserved.agent-L2ElYPuj.js → reserved.agent-C_pr0bHy.js} +4 -4
  100. package/dist/_chunks/{rich-text-editor-orJ-hPgm.js → rich-text-editor-DoCaj0qc.js} +8 -8
  101. package/dist/_chunks/{row-actions-BF2-uizV.js → row-actions-C6d6vy5z.js} +3 -3
  102. package/dist/_chunks/{saved-view-tabs-DLWm88Eq.js → saved-view-tabs-CVUM3Nqz.js} +2 -2
  103. package/dist/_chunks/{select-Bm8s3q-X.js → select-Bw5FvGJ7.js} +2 -2
  104. package/dist/_chunks/{send-registration-link-form-C1vw6H1M.js → send-registration-link-form-D-NkS__p.js} +3 -3
  105. package/dist/_chunks/{sheet-BdhYeQQT.js → sheet-BIAhwdyS.js} +2 -2
  106. package/dist/_chunks/{sign-document-DDZbmYHu.js → sign-document-BUhWw-7S.js} +2 -2
  107. package/dist/_chunks/{signature-request-D3sLLOM6.js → signature-request-BfKo3vOz.js} +4 -4
  108. package/dist/_chunks/{signing-end-screen-BdhbkPKO.js → signing-end-screen-Pmda6tCH.js} +4 -4
  109. package/dist/_chunks/{step-up-dialog-C2JqJmCA.js → step-up-dialog-C1O8ctoh.js} +2 -2
  110. package/dist/_chunks/{sync-tray-BhnkgXKK.js → sync-tray-BgrO4QjH.js} +56 -54
  111. package/dist/_chunks/{tab-bar-CeC2QOwB.js → tab-bar-C6tPDq9s.js} +2 -2
  112. package/dist/_chunks/{tabs-BXr5XeGq.js → tabs-BOf9OO--.js} +3 -3
  113. package/dist/_chunks/{task-editor-DDVDPKJf.js → task-editor-DNkrLbgK.js} +7 -6
  114. package/dist/_chunks/{tasks-panel-BHXaPNOZ.js → tasks-panel-CDFHAHrN.js} +139 -139
  115. package/dist/_chunks/{theme-toggle-BQDFxvVS.js → theme-toggle-C2LPw3xr.js} +3 -3
  116. package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
  117. package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
  118. package/dist/_chunks/{token-insert-menu-BLtfMTJd.js → token-insert-menu-sGtftx4Y.js} +2 -2
  119. package/dist/_chunks/{tool-rail-Kup1b7xI.js → tool-rail-mWmYNRCV.js} +226 -222
  120. package/dist/_chunks/{toolbar-B7UHCMSr.js → toolbar-JTR20W-U.js} +3 -3
  121. package/dist/_chunks/{tooth-scheme-BtnFgugP.js → tooth-scheme-DpgciFU8.js} +2 -2
  122. package/dist/_chunks/{unit-converter-OBhSDXee.js → unit-converter-D1e1wZRE.js} +2 -2
  123. package/dist/_chunks/{use-appointment-details-read-DeQnmmZw.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
  124. package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
  125. package/dist/_chunks/{verify-identity-types-C6Bam8v6.js → verify-identity-types-CpeJIc9F.js} +2 -2
  126. package/dist/_chunks/{voice-control-panel-Dc_NFH2R.js → voice-control-panel-DqvvZN2A.js} +4 -4
  127. package/dist/_chunks/{widget-picker-D3T7e8a4.js → widget-picker-Ddl0lDWV.js} +2 -2
  128. package/dist/_chunks/{workflow-map-DaZFP9SJ.js → workflow-map-CwfLHuiD.js} +3 -3
  129. package/dist/_chunks/{workflow-status-CO0mxXs2.js → workflow-status-Cg7yjnye.js} +2 -2
  130. package/dist/_chunks/{workflow-webhook-action-BsGSh3h9.js → workflow-webhook-action-BUWc2txJ.js} +2 -2
  131. package/dist/agent-catalog.json +10 -7
  132. package/dist/agent-i18n/en.json +3 -3
  133. package/dist/appointment-editor-panel/index.js +2 -2
  134. package/dist/browser-support.js +1 -1
  135. package/dist/calendar-action-buttons/index.js +1 -1
  136. package/dist/components/_shared/non-modal-tab-exit.d.ts +1 -0
  137. package/dist/components/ai-credits-notice/index.js +1 -1
  138. package/dist/components/ai-permission-notice/index.js +1 -1
  139. package/dist/components/ai-prompt-input/index.js +1 -1
  140. package/dist/components/ai-summary-panel/index.js +1 -1
  141. package/dist/components/anamnesis-card/index.js +1 -1
  142. package/dist/components/appointment-card/index.js +2 -2
  143. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
  144. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
  145. package/dist/components/appointment-details-panel/index.js +1 -1
  146. package/dist/components/appointment-peek/index.js +1 -1
  147. package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
  148. package/dist/components/appointment-timeline/index.js +1 -1
  149. package/dist/components/audio-recorder/index.js +1 -1
  150. package/dist/components/bill-line-table/index.js +1 -1
  151. package/dist/components/bill-table/index.js +1 -1
  152. package/dist/components/bishop-score/index.js +1 -1
  153. package/dist/components/booking/index.js +1 -1
  154. package/dist/components/button-group/index.js +1 -1
  155. package/dist/components/calculator-dialog/index.js +1 -1
  156. package/dist/components/calls-panel/index.js +1 -1
  157. package/dist/components/care-plan-card/index.js +1 -1
  158. package/dist/components/care-plan-entry-card/index.js +1 -1
  159. package/dist/components/care-plan-header/index.js +1 -1
  160. package/dist/components/chart/index.js +1 -1
  161. package/dist/components/chat-message/index.js +1 -1
  162. package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
  163. package/dist/components/clinical-note-card/index.js +1 -1
  164. package/dist/components/color-picker/index.js +1 -1
  165. package/dist/components/communications-panel/index.js +1 -1
  166. package/dist/components/control-room-rail/index.js +1 -1
  167. package/dist/components/cycle-calculator/index.js +1 -1
  168. package/dist/components/dashboard-grid/index.js +1 -1
  169. package/dist/components/data-grid/index.js +2 -2
  170. package/dist/components/data-grid-tabs/index.js +1 -1
  171. package/dist/components/data-table/index.js +4 -4
  172. package/dist/components/data-table-tabs/index.js +1 -1
  173. package/dist/components/date-picker/index.js +1 -1
  174. package/dist/components/date-range-picker/index.js +1 -1
  175. package/dist/components/date-time-picker/index.js +1 -1
  176. package/dist/components/dialog/dialog-container.d.ts +27 -0
  177. package/dist/components/dialog/dialog.d.ts +12 -2
  178. package/dist/components/dialog/index.d.ts +3 -1
  179. package/dist/components/dialog/index.js +5 -3
  180. package/dist/components/document-preview/index.js +1 -1
  181. package/dist/components/dropdown-menu/index.js +1 -1
  182. package/dist/components/due-date-calculator/index.js +1 -1
  183. package/dist/components/entity-summary/index.js +1 -1
  184. package/dist/components/face-scheme/index.js +1 -1
  185. package/dist/components/file-manager/index.js +1 -1
  186. package/dist/components/gestational-age-calculator/index.js +1 -1
  187. package/dist/components/hcg-doubling/index.js +1 -1
  188. package/dist/components/header-settings/index.js +1 -1
  189. package/dist/components/heatmap/index.js +1 -1
  190. package/dist/components/hover-card/index.js +1 -1
  191. package/dist/components/icon-button-group/index.js +1 -1
  192. package/dist/components/icon-picker/index.js +1 -1
  193. package/dist/components/info-tip/index.js +1 -1
  194. package/dist/components/invoice-upload-list/index.js +1 -1
  195. package/dist/components/locale-picker/index.js +1 -1
  196. package/dist/components/message-card/index.js +1 -1
  197. package/dist/components/message-tray/index.js +1 -1
  198. package/dist/components/muscle-scheme/index.js +1 -1
  199. package/dist/components/notes-panel/index.js +1 -1
  200. package/dist/components/notes-panel/notes-panel.d.ts +5 -4
  201. package/dist/components/notification-card/index.js +1 -1
  202. package/dist/components/notification-tray/index.js +1 -1
  203. package/dist/components/optical-prescription/index.js +1 -1
  204. package/dist/components/pagination/index.js +1 -1
  205. package/dist/components/patient-details/index.js +1 -1
  206. package/dist/components/patient-search/index.js +1 -1
  207. package/dist/components/patient-summary-card/index.js +1 -1
  208. package/dist/components/patient-table/index.js +1 -1
  209. package/dist/components/pdf-viewer/index.js +1 -1
  210. package/dist/components/phone-input/index.js +1 -1
  211. package/dist/components/popover/index.js +1 -1
  212. package/dist/components/practice-results/index.js +1 -1
  213. package/dist/components/pregnancy-dating/index.js +1 -1
  214. package/dist/components/product-hub-tray/index.js +1 -1
  215. package/dist/components/public-header/index.js +1 -1
  216. package/dist/components/radiograph-panel/index.js +1 -1
  217. package/dist/components/recaptcha-widget/index.js +1 -1
  218. package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
  219. package/dist/components/rich-text-editor/index.js +2 -2
  220. package/dist/components/row-actions/index.js +1 -1
  221. package/dist/components/select/index.js +1 -1
  222. package/dist/components/sheet/index.js +1 -1
  223. package/dist/components/sign-document/index.js +1 -1
  224. package/dist/components/skeleton-scheme/index.js +1 -1
  225. package/dist/components/step-up-dialog/index.js +1 -1
  226. package/dist/components/sync-tray/index.js +1 -1
  227. package/dist/components/tab-bar/index.js +1 -1
  228. package/dist/components/tabs/index.js +1 -1
  229. package/dist/components/task-editor/index.js +1 -1
  230. package/dist/components/tasks-panel/index.js +1 -1
  231. package/dist/components/theme-toggle/index.js +1 -1
  232. package/dist/components/timeline/index.js +1 -1
  233. package/dist/components/timestamp/index.js +1 -1
  234. package/dist/components/timestamp/timestamp.d.ts +6 -0
  235. package/dist/components/token-insert-menu/index.js +1 -1
  236. package/dist/components/tool-rail/index.js +1 -1
  237. package/dist/components/tooth-scheme/index.js +1 -1
  238. package/dist/components/unit-converter/index.js +1 -1
  239. package/dist/components/voice-control-panel/index.js +1 -1
  240. package/dist/components/widget-picker/index.js +1 -1
  241. package/dist/components/workflow/index.js +1 -1
  242. package/dist/components/workflow-status/index.js +1 -1
  243. package/dist/core.css +1 -1
  244. package/dist/find-free-slots-panel/index.js +1 -1
  245. package/dist/hooks/index.d.ts +2 -0
  246. package/dist/hooks/index.js +58 -56
  247. package/dist/hooks/use-resolved-theme.d.ts +20 -0
  248. package/dist/i18n/locales/ar.d.ts +5 -0
  249. package/dist/i18n/locales/ar.js +5 -0
  250. package/dist/i18n/locales/de.d.ts +5 -0
  251. package/dist/i18n/locales/de.js +5 -0
  252. package/dist/i18n/locales/el.d.ts +5 -0
  253. package/dist/i18n/locales/el.js +5 -0
  254. package/dist/i18n/locales/en.d.ts +5 -0
  255. package/dist/i18n/locales/en.js +5 -0
  256. package/dist/i18n/locales/es.d.ts +5 -0
  257. package/dist/i18n/locales/es.js +5 -0
  258. package/dist/i18n/locales/fr.d.ts +5 -0
  259. package/dist/i18n/locales/fr.js +5 -0
  260. package/dist/i18n/locales/hi.d.ts +5 -0
  261. package/dist/i18n/locales/hi.js +5 -0
  262. package/dist/i18n/locales/it.d.ts +5 -0
  263. package/dist/i18n/locales/it.js +5 -0
  264. package/dist/i18n/locales/ja.d.ts +5 -0
  265. package/dist/i18n/locales/ja.js +5 -0
  266. package/dist/i18n/locales/nl.d.ts +5 -0
  267. package/dist/i18n/locales/nl.js +5 -0
  268. package/dist/i18n/locales/pl.d.ts +5 -0
  269. package/dist/i18n/locales/pl.js +5 -0
  270. package/dist/i18n/locales/pt.d.ts +5 -0
  271. package/dist/i18n/locales/pt.js +5 -0
  272. package/dist/i18n/locales/ro.d.ts +5 -0
  273. package/dist/i18n/locales/ro.js +5 -0
  274. package/dist/i18n/locales/ru.d.ts +5 -0
  275. package/dist/i18n/locales/ru.js +5 -0
  276. package/dist/i18n/locales/sq.d.ts +5 -0
  277. package/dist/i18n/locales/sq.js +5 -0
  278. package/dist/i18n/locales/sv.d.ts +5 -0
  279. package/dist/i18n/locales/sv.js +5 -0
  280. package/dist/i18n/locales/tr.d.ts +5 -0
  281. package/dist/i18n/locales/tr.js +5 -0
  282. package/dist/i18n/locales/zh.d.ts +5 -0
  283. package/dist/i18n/locales/zh.js +5 -0
  284. package/dist/index.js +949 -947
  285. package/dist/locales/ar.json +5 -0
  286. package/dist/locales/de.json +5 -0
  287. package/dist/locales/el.json +5 -0
  288. package/dist/locales/en.json +5 -0
  289. package/dist/locales/es.json +5 -0
  290. package/dist/locales/fr.json +5 -0
  291. package/dist/locales/hi.json +5 -0
  292. package/dist/locales/it.json +5 -0
  293. package/dist/locales/ja.json +5 -0
  294. package/dist/locales/nl.json +5 -0
  295. package/dist/locales/pl.json +5 -0
  296. package/dist/locales/pt.json +5 -0
  297. package/dist/locales/ro.json +5 -0
  298. package/dist/locales/ru.json +5 -0
  299. package/dist/locales/sq.json +5 -0
  300. package/dist/locales/sv.json +5 -0
  301. package/dist/locales/tr.json +5 -0
  302. package/dist/locales/zh.json +5 -0
  303. package/dist/online-bookings-panel/index.js +1 -1
  304. package/dist/patterns/alia-assistant/index.js +1 -1
  305. package/dist/patterns/anamnesis/index.js +1 -1
  306. package/dist/patterns/calendar/index.js +3 -3
  307. package/dist/patterns/help-me-write-templates/index.js +1 -1
  308. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  309. package/dist/patterns/patient-account-settings/index.js +1 -1
  310. package/dist/patterns/patient-check-in/index.js +1 -1
  311. package/dist/patterns/patient-portal/index.js +2 -2
  312. package/dist/patterns/prescription/index.js +1 -1
  313. package/dist/patterns/registration-form/index.js +1 -1
  314. package/dist/patterns/send-registration-link-form/index.js +1 -1
  315. package/dist/patterns/signature-request/index.js +1 -1
  316. package/dist/patterns/signing/index.js +1 -1
  317. package/dist/patterns/verify-identity/index.js +1 -1
  318. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  319. package/dist/tokens.css +1 -1
  320. package/dist/waiting-list-panel/index.js +2 -2
  321. package/package.json +1 -1
  322. package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +0 -689
  323. package/dist/_chunks/dialog-CVTxyR0v.js +0 -349
  324. package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
@@ -0,0 +1,776 @@
1
+ import { jsxs as g, Fragment as Xe, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as Zt, useId as Qt, useState as oe, useMemo as D, useRef as m, useEffect as xe, useCallback as S, useImperativeHandle as Xt } from "react";
3
+ import { c as Jt } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as es } from "react-i18next";
5
+ import { A as Je } from "./appointment-card-HOZrABrQ.js";
6
+ import { g as ts } from "./date-locale-OG-MupVD.js";
7
+ import { f as ot } from "./intl-locale-FWh-Y5_3.js";
8
+ import { n as et } from "./normalize-diacritics-DhJjQ3Bp.js";
9
+ import { I as tt } from "./icon-button-S8_weU3g.js";
10
+ import { M as ss } from "./multi-select-DeMiHm8T.js";
11
+ import { S as ns } from "./search-input-CRAMo1CA.js";
12
+ import { B as le } from "./button-DohK_Ak_.js";
13
+ import { B as st } from "./button-group-DoKG16Fy.js";
14
+ import { D as nt } from "./date-picker-CD-PBzXM.js";
15
+ import { P as as } from "./panel-header-CbtlTe85.js";
16
+ import { S as rs } from "./skeleton-tTWJpvAq.js";
17
+ import { E as at } from "./empty-state-DwJ5YNzz.js";
18
+ import { u as De } from "./use-controllable-state-BiY4xTzM.js";
19
+ import { u as rt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
+ import { u as is } from "./use-prefers-reduced-motion-BMwIQRjB.js";
21
+ import { a as os, u as ls, R as cs } from "./use-list-reflow-C7O4Uqnl.js";
22
+ import { u as ds } from "./registry-DvAUVLHh.js";
23
+ import { P as ms } from "./printer-rkK0T1gi.js";
24
+ import { D as ps } from "./download-CfYKJO_j.js";
25
+ import { C as lt } from "./calendar-days-BGWklvE-.js";
26
+ import { f as us } from "./format-ql5WTsYT.js";
27
+ const fs = {
28
+ id: "appointment-timeline",
29
+ // 'pick' backs select_item (non-persisting activation through
30
+ // onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
31
+ // scroll viewport (mirrors practice-results' scroll_to_result).
32
+ capabilities: ["scroll", "pick", "filter"],
33
+ state: {
34
+ items: {
35
+ type: "Array<{ id: string; state: string }>",
36
+ descriptionKey: "ui.agent.appointmentTimeline.state.items",
37
+ description: "Currently-rendered appointments. Ids + lifecycle state only — never patient identity.",
38
+ read: (i) => i.getItems()
39
+ },
40
+ filters: {
41
+ type: "{ range: 'past' | 'future' | 'all'; statuses: string[]; searchActive?: boolean }",
42
+ descriptionKey: "ui.agent.appointmentTimeline.state.filters",
43
+ description: "The range and the statuses now kept, and whether a patient search is active. Ids only, never an appointment or a name. No statuses means every status.",
44
+ read: (i) => {
45
+ const { search: s, ...c } = i.getFilters();
46
+ return s ? { ...c, searchActive: !0 } : c;
47
+ }
48
+ }
49
+ },
50
+ actions: {
51
+ select_item: {
52
+ safety: "read",
53
+ argsType: "{ id: string }",
54
+ argsSchema: {
55
+ type: "object",
56
+ properties: { id: { type: "string" } },
57
+ required: ["id"]
58
+ },
59
+ idempotent: !0,
60
+ descriptionKey: "ui.agent.appointmentTimeline.actions.selectItem",
61
+ description: "Activate the appointment with the given id.",
62
+ invoke: (i, s) => {
63
+ i.selectItem(s.id);
64
+ }
65
+ },
66
+ set_filter: {
67
+ safety: "read",
68
+ argsType: "{ range?: 'past' | 'future' | 'all'; statuses?: string[]; search?: string }",
69
+ argsSchema: {
70
+ type: "object",
71
+ properties: {
72
+ range: { type: "string", enum: ["past", "future", "all"] },
73
+ statuses: { type: "array", items: { type: "string" } },
74
+ search: { type: "string" }
75
+ }
76
+ },
77
+ idempotent: !0,
78
+ descriptionKey: "ui.agent.appointmentTimeline.actions.setFilter",
79
+ description: "Set the range, the statuses or the patient search. Omitted keys are left unchanged. A filter the host did not switch on is ignored.",
80
+ examples: [{ args: { range: "future", statuses: ["confirmed"] } }],
81
+ invoke: (i, s) => {
82
+ i.setFilters({
83
+ ...s.range ? { range: s.range } : {},
84
+ ...s.statuses ? {
85
+ statuses: s.statuses
86
+ } : {},
87
+ ...s.search !== void 0 ? { search: s.search } : {}
88
+ });
89
+ }
90
+ },
91
+ jump_to_today: {
92
+ safety: "read",
93
+ idempotent: !0,
94
+ descriptionKey: "ui.agent.appointmentTimeline.actions.jumpToToday",
95
+ description: "Re-anchor the timeline scroll on today's appointments.",
96
+ invoke: (i) => {
97
+ i.jumpToToday();
98
+ }
99
+ }
100
+ },
101
+ domHooks: {
102
+ root: {
103
+ attr: "data-component",
104
+ value: "appointment-timeline",
105
+ description: "Marks the AppointmentTimeline wrapper."
106
+ },
107
+ instanceId: {
108
+ attr: "data-component-id",
109
+ sourceProp: "id",
110
+ description: "Sourced from the id prop. Required to address a specific timeline from the agent."
111
+ },
112
+ item: {
113
+ attr: "data-appointment-id",
114
+ description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
115
+ }
116
+ }
117
+ }, it = 96, gs = Jt(
118
+ [
119
+ "ds:flex ds:flex-col ds:h-full ds:min-h-0",
120
+ "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
121
+ ].join(" "),
122
+ { variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
123
+ ), hs = [
124
+ "ds:!rounded-[var(--radius-md)] ds:!shadow-none ds:!bg-transparent",
125
+ "ds:!border-border ds:!min-h-8 ds:text-[length:var(--font-size-sm)] ds:font-medium"
126
+ ].join(" "), ys = [
127
+ "ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
128
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
129
+ "ds:px-[var(--spacing-sm)] ds:pt-0 ds:pb-[var(--spacing-xs)]",
130
+ /* Keeps a focused card clear of the sticky day header (WCAG 2.4.11). */
131
+ "ds:[scroll-padding-block-start:calc(var(--spacing-md)+var(--spacing-xl))]",
132
+ /* Only the bottom edge fades. The sticky day header owns the top edge, so
133
+ a top fade would half hide it. */
134
+ "ds:[--atl-mask-bottom:black]",
135
+ "ds:data-[fade-bottom=true]:[--atl-mask-bottom:transparent]",
136
+ "ds:[mask-image:var(--accessible-off,linear-gradient(to_bottom,black_0,black_calc(100%-var(--atl-fade-distance,var(--spacing-lg))),var(--atl-mask-bottom)_100%))]",
137
+ "ds:motion-reduce:[mask-image:none]",
138
+ "ds:forced-colors:[mask-image:none]",
139
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
140
+ "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
141
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
142
+ ].join(" ");
143
+ function k(i) {
144
+ const s = `${i.getMonth() + 1}`.padStart(2, "0"), c = `${i.getDate()}`.padStart(2, "0");
145
+ return `${i.getFullYear()}-${s}-${c}`;
146
+ }
147
+ function vs(i, s = !1) {
148
+ const c = [...i].sort(
149
+ (h, p) => s ? +new Date(p.startIso) - +new Date(h.startIso) : +new Date(h.startIso) - +new Date(p.startIso)
150
+ ), w = /* @__PURE__ */ new Map();
151
+ for (const h of c) {
152
+ const p = new Date(h.startIso), y = k(p);
153
+ let T = w.get(y);
154
+ T || (T = {
155
+ key: y,
156
+ date: new Date(p.getFullYear(), p.getMonth(), p.getDate()),
157
+ items: []
158
+ }, w.set(y, T)), T.items.push(h);
159
+ }
160
+ return [...w.values()];
161
+ }
162
+ const Ts = Zt(
163
+ ({
164
+ id: i,
165
+ items: s,
166
+ nowIso: c,
167
+ title: w,
168
+ locale: h,
169
+ currency: p,
170
+ size: y = "sm",
171
+ showPatient: T = !1,
172
+ onOpenAppointment: I,
173
+ selectedId: Q,
174
+ onLoadEarlier: C,
175
+ onLoadLater: A,
176
+ hasMoreEarlier: x,
177
+ hasMoreLater: ce,
178
+ loadingEarlier: N = !1,
179
+ loadingLater: E = !1,
180
+ showFilters: de = !0,
181
+ anchor: Se = "today",
182
+ onJumpToDate: X,
183
+ showRangeFilter: v = !1,
184
+ range: ct,
185
+ defaultRange: Y = "all",
186
+ onRangeChange: dt,
187
+ statusOptions: Ie,
188
+ statuses: mt,
189
+ defaultStatuses: pt,
190
+ onStatusesChange: ut,
191
+ showSearch: ft = !1,
192
+ search: me,
193
+ defaultSearch: J = "",
194
+ onSearchChange: gt,
195
+ privacy: pe = !1,
196
+ privacyTitleFor: H,
197
+ onPrint: ue,
198
+ onDownload: fe,
199
+ emptyTitle: ht,
200
+ emptyDescription: yt,
201
+ className: vt,
202
+ "aria-label": Tt,
203
+ headerExtra: bt,
204
+ hideDefaultStatus: kt = !1,
205
+ wrapText: Ce = !1,
206
+ ...wt
207
+ }, xt) => {
208
+ const { t: n, i18n: Dt } = es("ui"), V = Qt(), [ge, St] = oe(0), he = is(), ye = h ?? Dt.language, Ne = w ?? n("appointmentTimeline.title"), d = D(
209
+ () => c ? new Date(c) : /* @__PURE__ */ new Date(),
210
+ [c]
211
+ ), [It, W] = De({
212
+ value: ct,
213
+ defaultValue: Y,
214
+ onChange: dt
215
+ }), [je, q] = De(
216
+ {
217
+ value: mt,
218
+ defaultValue: pt ?? [],
219
+ onChange: ut
220
+ }
221
+ ), ze = D(
222
+ () => (Ie ?? []).filter((e, t, a) => a.indexOf(e) === t),
223
+ [Ie]
224
+ ), $ = ze.length > 0, l = v ? It ?? "all" : "all", b = D(
225
+ () => $ ? je ?? [] : [],
226
+ [$, je]
227
+ ), [ee, K] = De({
228
+ value: me,
229
+ defaultValue: J,
230
+ onChange: gt
231
+ }), Me = m(null), j = ft && T && !pe, O = j ? ee ?? "" : "";
232
+ xe(() => {
233
+ !j && me === void 0 && ee !== J && K(J);
234
+ }, [j, me, ee, K, J]);
235
+ const _ = et(O.trim()), Re = D(
236
+ () => ({
237
+ range: l,
238
+ statuses: b,
239
+ ...j ? { search: O } : {}
240
+ }),
241
+ [l, b, j, O]
242
+ ), Ct = v && l !== Y || b.length > 0 || _ !== "", Nt = S(() => {
243
+ v && l !== Y && W(Y), b.length > 0 && q([]), O !== "" && K("");
244
+ }, [
245
+ v,
246
+ l,
247
+ Y,
248
+ b,
249
+ O,
250
+ W,
251
+ q,
252
+ K
253
+ ]), ve = D(() => {
254
+ const e = +d;
255
+ return s.filter((t) => {
256
+ var a;
257
+ if (l === "future" && +new Date(t.startIso) < e || l === "past" && +new Date(t.startIso) >= e || b.length > 0 && (!t.state || !b.includes(t.state)))
258
+ return !1;
259
+ if (_ !== "") {
260
+ const o = (a = t.patient) == null ? void 0 : a.name;
261
+ if (!o || !et(o).includes(_))
262
+ return !1;
263
+ }
264
+ return !0;
265
+ });
266
+ }, [s, d, l, b, _]), Ae = l === "past", f = D(
267
+ () => vs(ve, Ae),
268
+ [ve, Ae]
269
+ ), $e = he || void 0, jt = D(
270
+ () => f.flatMap((e) => e.items.map((t) => t.id)).join(),
271
+ [f]
272
+ ), { containerRef: zt } = os({
273
+ key: jt,
274
+ reduceMotion: $e
275
+ }), Ke = ls({ reduceMotion: $e }), Ee = m(s), [He, _e] = oe([]);
276
+ xe(() => {
277
+ const e = Ee.current;
278
+ if (e === s) return;
279
+ const t = new Set(s.map((o) => o.id)), a = e.filter((o) => !t.has(o.id));
280
+ a.length > 0 && (_e((o) => [...o, ...a]), a.forEach((o) => {
281
+ Ke.leave(o.id, () => {
282
+ _e((R) => R.filter((u) => u.id !== o.id));
283
+ });
284
+ })), Ee.current = s;
285
+ }, [s, Ke]);
286
+ const Be = x ?? !!C, Fe = ce ?? !!A, P = D(() => {
287
+ var a;
288
+ if (f.length === 0) return;
289
+ if (l !== "all") return (a = f[0]) == null ? void 0 : a.key;
290
+ const e = k(d), t = f.map((o) => o.key);
291
+ return t.includes(e) ? e : Se === "first" ? t[0] : t.find((o) => o >= e) ?? t[t.length - 1];
292
+ }, [f, d, l, Se]), B = m(null), F = m(/* @__PURE__ */ new Map()), te = m(!1), G = m(!1), Te = m(P);
293
+ Te.current = P;
294
+ const U = m(void 0), Le = m(0), [Mt, Rt] = oe(!1), [At, $t] = oe(!1), L = S(() => {
295
+ const e = B.current;
296
+ if (!e) return;
297
+ const { scrollTop: t, scrollHeight: a, clientHeight: o } = e;
298
+ Rt(t > 1), $t(t + o < a - 1);
299
+ }, []), z = S(
300
+ (e, t) => {
301
+ const a = B.current;
302
+ if (!a) return;
303
+ let o = F.current.get(e);
304
+ if (!o) {
305
+ const u = [...F.current.keys()].sort(), re = +/* @__PURE__ */ new Date(`${e}T00:00:00`), ie = l === "all" ? u.find((Z) => Z >= e) ?? u[u.length - 1] : u.reduce(
306
+ (Z, Qe) => Z === void 0 || Math.abs(+/* @__PURE__ */ new Date(`${Qe}T00:00:00`) - re) < Math.abs(+/* @__PURE__ */ new Date(`${Z}T00:00:00`) - re) ? Qe : Z,
307
+ void 0
308
+ );
309
+ o = ie ? F.current.get(ie) : void 0;
310
+ }
311
+ if (!o) return;
312
+ const R = o.getBoundingClientRect().top - a.getBoundingClientRect().top;
313
+ a.scrollTo({
314
+ top: a.scrollTop + R,
315
+ behavior: t && !he ? "smooth" : "auto"
316
+ });
317
+ },
318
+ [he, l]
319
+ ), se = `${l}|${b.join(",")}|${_}`, Ye = m(se), be = m(/* @__PURE__ */ new Set());
320
+ rt(() => {
321
+ var R;
322
+ const e = B.current, t = (R = f[0]) == null ? void 0 : R.key, a = new Set(f.map((u) => u.key)), o = a.size > 0 && be.current.size > 0 && ![...a].some((u) => be.current.has(u));
323
+ if ((Ye.current !== se || a.size === 0 || o) && (Ye.current = se, te.current = !1, U.current = void 0), be.current = a, !!e) {
324
+ if (!te.current)
325
+ f.length > 0 && P && (z(P, !1), te.current = !0, G.current = !1);
326
+ else if (l === "all" && U.current && t && t < U.current && a.has(U.current)) {
327
+ const u = e.scrollHeight - Le.current;
328
+ u > 0 && (e.scrollTop += u);
329
+ }
330
+ U.current = t, Le.current = e.scrollHeight, L();
331
+ }
332
+ }, [f, P, z, L, se, l]);
333
+ const Kt = f.length > 0;
334
+ rt(() => {
335
+ const e = B.current;
336
+ if (!e || typeof ResizeObserver > "u") return;
337
+ const t = new ResizeObserver(() => {
338
+ te.current && !G.current && Te.current && z(Te.current, !1), L();
339
+ });
340
+ t.observe(e);
341
+ const a = e.querySelector("ol");
342
+ return a && t.observe(a), () => t.disconnect();
343
+ }, [L, z, Kt]), xe(() => {
344
+ var e;
345
+ ge !== 0 && ((e = document.getElementById(V)) == null || e.focus({ preventScroll: !0 }));
346
+ }, [ge, V]);
347
+ const ne = S(() => {
348
+ G.current = !0;
349
+ }, []), Et = S(() => {
350
+ L();
351
+ const e = B.current;
352
+ if (!e) return;
353
+ const { scrollTop: t, scrollHeight: a, clientHeight: o } = e, R = t <= it, u = a - t - o <= it, re = l === "past" ? u : R, ie = u;
354
+ C && l !== "future" && Be && !N && re && C(), A && l !== "past" && Fe && !E && ie && A();
355
+ }, [
356
+ l,
357
+ L,
358
+ C,
359
+ A,
360
+ Be,
361
+ Fe,
362
+ N,
363
+ E
364
+ ]), M = S(
365
+ (e) => {
366
+ G.current = !0;
367
+ const t = k(e), a = F.current.has(t);
368
+ z(t, !0), a || X == null || X(e.toISOString());
369
+ },
370
+ [z, X]
371
+ ), Ht = S(() => M(d), [M, d]), _t = S(() => {
372
+ const e = new Date(d), t = (e.getDay() + 6) % 7;
373
+ e.setDate(e.getDate() - t), M(e);
374
+ }, [M, d]), Bt = S(() => {
375
+ M(new Date(d.getFullYear(), d.getMonth(), 1));
376
+ }, [M, d]), ke = m(s);
377
+ ke.current = s;
378
+ const ae = m(Re);
379
+ ae.current = Re;
380
+ const Ve = m(v);
381
+ Ve.current = v;
382
+ const We = m($);
383
+ We.current = $;
384
+ const qe = m(j);
385
+ qe.current = j;
386
+ const Oe = m(null);
387
+ Xt(xt, () => Oe.current, []);
388
+ const Ft = D(
389
+ () => ({
390
+ getItems: () => ke.current.map((e) => ({ id: e.id, state: e.state ?? "" })),
391
+ selectItem: (e) => {
392
+ const t = ke.current.find((a) => a.id === e);
393
+ t && (I == null || I(t));
394
+ },
395
+ jumpToToday: () => {
396
+ G.current = !0, z(k(d), !0);
397
+ },
398
+ getFilters: () => ae.current,
399
+ setFilters: (e) => {
400
+ e.range !== void 0 && Ve.current && W(e.range), e.statuses !== void 0 && We.current && q(e.statuses), e.search !== void 0 && qe.current && K(e.search);
401
+ }
402
+ }),
403
+ [I, z, d, W, q, K]
404
+ );
405
+ ds(fs, Ft, i);
406
+ const Lt = f.length === 0 && !N && !E, Yt = l === "all" && N, Vt = l === "past" ? N : l === "future" || l === "all" ? E : !1, Wt = ["past", "future", "all"], qt = {
407
+ past: n("appointmentTimeline.range.past"),
408
+ future: n("appointmentTimeline.range.future"),
409
+ all: n("appointmentTimeline.range.all")
410
+ }, we = ue || fe ? /* @__PURE__ */ g(Xe, { children: [
411
+ ue ? /* @__PURE__ */ r(
412
+ tt,
413
+ {
414
+ icon: /* @__PURE__ */ r(ms, {}),
415
+ intent: "outline",
416
+ size: "sm",
417
+ "aria-label": n("appointmentTimeline.print"),
418
+ tooltip: n("appointmentTimeline.print"),
419
+ "data-action": "print-appointments",
420
+ onClick: () => ue(ae.current)
421
+ }
422
+ ) : null,
423
+ fe ? /* @__PURE__ */ r(
424
+ tt,
425
+ {
426
+ icon: /* @__PURE__ */ r(ps, {}),
427
+ intent: "outline",
428
+ size: "sm",
429
+ "aria-label": n("appointmentTimeline.download"),
430
+ tooltip: n("appointmentTimeline.download"),
431
+ "data-action": "download-appointments",
432
+ onClick: () => fe(ae.current)
433
+ }
434
+ ) : null
435
+ ] }) : void 0, Pe = de && v, Ot = Pe ? void 0 : we, Pt = [
436
+ { label: n("appointmentTimeline.today"), date: () => new Date(d) },
437
+ {
438
+ label: n("appointmentTimeline.thisWeek"),
439
+ date: () => {
440
+ const e = new Date(d);
441
+ return e.setDate(e.getDate() - (e.getDay() + 6) % 7), e;
442
+ }
443
+ },
444
+ {
445
+ label: n("appointmentTimeline.thisMonth"),
446
+ date: () => new Date(d.getFullYear(), d.getMonth(), 1)
447
+ }
448
+ ], Ge = /* @__PURE__ */ g(Xe, { children: [
449
+ /* @__PURE__ */ g(st, { label: n("appointmentTimeline.filtersLabel"), children: [
450
+ /* @__PURE__ */ r(le, { intent: "outline", size: "sm", onClick: Ht, children: n("appointmentTimeline.today") }),
451
+ /* @__PURE__ */ r(le, { intent: "outline", size: "sm", onClick: _t, children: n("appointmentTimeline.thisWeek") }),
452
+ /* @__PURE__ */ r(le, { intent: "outline", size: "sm", onClick: Bt, children: n("appointmentTimeline.thisMonth") })
453
+ ] }),
454
+ /* @__PURE__ */ r("label", { htmlFor: V, className: "ds:sr-only", children: n("appointmentTimeline.jumpToDate") }),
455
+ /* @__PURE__ */ r(
456
+ nt,
457
+ {
458
+ id: V,
459
+ size: "sm",
460
+ placeholder: n("appointmentTimeline.jumpToDate"),
461
+ onChange: (e) => {
462
+ e && M(e);
463
+ }
464
+ }
465
+ )
466
+ ] }), Gt = v || $ ? /* @__PURE__ */ g("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
467
+ /* @__PURE__ */ g("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
468
+ v ? /* @__PURE__ */ r(st, { label: n("appointmentTimeline.range.label"), children: Wt.map((e) => {
469
+ const t = l === e;
470
+ return /* @__PURE__ */ r(
471
+ le,
472
+ {
473
+ intent: t ? "primary" : "outline",
474
+ size: "sm",
475
+ "aria-pressed": t,
476
+ "data-range-filter": e,
477
+ onClick: () => W(e),
478
+ children: qt[e]
479
+ },
480
+ e
481
+ );
482
+ }) }) : Ge,
483
+ Pe && we ? /* @__PURE__ */ r("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: we }) : null
484
+ ] }),
485
+ v || $ ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]", children: [
486
+ v ? /* @__PURE__ */ r("div", { className: "ds:min-w-[7rem] ds:flex-1", children: /* @__PURE__ */ r(
487
+ nt,
488
+ {
489
+ id: V,
490
+ size: "sm",
491
+ chrome: "button",
492
+ "aria-label": n("appointmentTimeline.jumpTo"),
493
+ placeholder: n("appointmentTimeline.jumpTo"),
494
+ presets: Pt,
495
+ onChange: (e) => {
496
+ e && (M(e), St((t) => t + 1));
497
+ }
498
+ },
499
+ ge
500
+ ) }) : null,
501
+ $ ? /* @__PURE__ */ r("div", { className: "ds:min-w-[7rem] ds:flex-1", children: /* @__PURE__ */ r(
502
+ ss,
503
+ {
504
+ size: "sm",
505
+ className: hs,
506
+ "aria-label": n("appointmentTimeline.status.label"),
507
+ placeholder: n("appointmentTimeline.status.placeholder"),
508
+ allowClear: !0,
509
+ options: ze.map((e) => ({
510
+ value: e,
511
+ label: n(`appointmentCard.state.${e}`)
512
+ })),
513
+ value: b,
514
+ onChange: (e) => q(e),
515
+ "data-status-filter": "true"
516
+ }
517
+ ) }) : null
518
+ ] }) : null
519
+ ] }) : Ge, Ue = j ? /* @__PURE__ */ g("div", { className: "ds:w-full", "data-appointment-search": "", children: [
520
+ /* @__PURE__ */ r(
521
+ ns,
522
+ {
523
+ ref: Me,
524
+ size: "md",
525
+ value: ee ?? "",
526
+ onInput: K,
527
+ "aria-label": n("appointmentTimeline.search.label"),
528
+ placeholder: n("appointmentTimeline.search.label")
529
+ }
530
+ ),
531
+ /* @__PURE__ */ r(
532
+ "p",
533
+ {
534
+ role: "status",
535
+ "aria-live": "polite",
536
+ "aria-atomic": "true",
537
+ className: "ds:sr-only",
538
+ children: _ !== "" ? n("appointmentTimeline.search.resultCount", {
539
+ count: ve.length
540
+ }) : ""
541
+ }
542
+ )
543
+ ] }) : null, Ut = Ue || de ? /* @__PURE__ */ g("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
544
+ Ue,
545
+ de ? Gt : null
546
+ ] }) : void 0, Ze = (e) => /* @__PURE__ */ r(
547
+ "div",
548
+ {
549
+ "aria-hidden": "true",
550
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
551
+ children: /* @__PURE__ */ r(rs, { variant: "rectangular", height: "3.5rem" })
552
+ },
553
+ e
554
+ );
555
+ return /* @__PURE__ */ g(
556
+ "section",
557
+ {
558
+ ref: Oe,
559
+ "data-component": "appointment-timeline",
560
+ "data-component-id": i,
561
+ "aria-label": Tt ?? Ne,
562
+ className: gs({ size: y, className: vt }),
563
+ ...wt,
564
+ children: [
565
+ /* @__PURE__ */ r(
566
+ as,
567
+ {
568
+ icon: /* @__PURE__ */ r(lt, {}),
569
+ title: Ne,
570
+ actions: Ot,
571
+ filters: Ut
572
+ }
573
+ ),
574
+ bt,
575
+ Lt ? /* @__PURE__ */ r("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: Ct ? /* @__PURE__ */ r(
576
+ at,
577
+ {
578
+ variant: "no-results",
579
+ size: "sm",
580
+ title: n("appointmentTimeline.filteredEmpty.title"),
581
+ description: n("appointmentTimeline.filteredEmpty.description"),
582
+ primaryAction: {
583
+ label: n("appointmentTimeline.filteredEmpty.clear"),
584
+ onClick: () => {
585
+ var e;
586
+ Nt(), (e = Me.current) == null || e.focus();
587
+ }
588
+ }
589
+ }
590
+ ) : /* @__PURE__ */ r(
591
+ at,
592
+ {
593
+ variant: "first-use",
594
+ size: "sm",
595
+ title: ht ?? n("appointmentTimeline.empty.title"),
596
+ description: yt ?? n("appointmentTimeline.empty.description")
597
+ }
598
+ ) }) : (
599
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- the handlers only note that the reader moved the list; the region is already keyboard-focusable
600
+ /* @__PURE__ */ g(
601
+ "div",
602
+ {
603
+ ref: B,
604
+ tabIndex: 0,
605
+ onScroll: Et,
606
+ onWheel: ne,
607
+ onTouchStart: ne,
608
+ onPointerDown: ne,
609
+ onKeyDown: ne,
610
+ "data-fade-top": Mt ? "true" : void 0,
611
+ "data-fade-bottom": At ? "true" : void 0,
612
+ className: ys,
613
+ children: [
614
+ Yt ? Ze("loading-earlier") : null,
615
+ /* @__PURE__ */ g(
616
+ "ol",
617
+ {
618
+ ref: zt,
619
+ role: "list",
620
+ className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
621
+ children: [
622
+ f.map((e) => /* @__PURE__ */ g(
623
+ "li",
624
+ {
625
+ ref: (t) => {
626
+ t ? F.current.set(e.key, t) : F.current.delete(e.key);
627
+ },
628
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
629
+ children: [
630
+ /* @__PURE__ */ r(
631
+ ws,
632
+ {
633
+ date: e.date,
634
+ now: d,
635
+ locale: ye,
636
+ todayLabel: n("appointmentTimeline.today"),
637
+ tomorrowLabel: n("appointmentTimeline.tomorrow"),
638
+ yesterdayLabel: n("appointmentTimeline.yesterday")
639
+ }
640
+ ),
641
+ /* @__PURE__ */ r(
642
+ "ul",
643
+ {
644
+ role: "list",
645
+ className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
646
+ children: e.items.map((t) => /* @__PURE__ */ r(
647
+ Je,
648
+ {
649
+ item: t,
650
+ size: y,
651
+ surface: "elevated",
652
+ showPatient: T,
653
+ privacy: pe,
654
+ privacyTitle: H == null ? void 0 : H(t),
655
+ locale: ye,
656
+ currency: p,
657
+ onActivate: I,
658
+ selected: t.id === Q,
659
+ hideDefaultStatus: kt,
660
+ wrapText: Ce,
661
+ "data-appointment-id": t.id,
662
+ "data-reflow-id": t.id,
663
+ className: cs
664
+ },
665
+ t.id
666
+ ))
667
+ }
668
+ )
669
+ ]
670
+ },
671
+ e.key
672
+ )),
673
+ He.length > 0 ? He.map((e) => /* @__PURE__ */ r(
674
+ Je,
675
+ {
676
+ item: e,
677
+ size: y,
678
+ surface: "elevated",
679
+ showPatient: T,
680
+ privacy: pe,
681
+ privacyTitle: H == null ? void 0 : H(e),
682
+ wrapText: Ce,
683
+ locale: ye,
684
+ currency: p,
685
+ "aria-hidden": "true",
686
+ "data-leaving": !0,
687
+ className: [
688
+ "ds:opacity-0",
689
+ "ds:transition-opacity",
690
+ "ds:duration-[var(--animation-duration)]",
691
+ "ds:ease-[var(--ease-out)]",
692
+ "ds:motion-reduce:transition-none"
693
+ ].join(" ")
694
+ },
695
+ `leaving-${e.id}`
696
+ )) : null
697
+ ]
698
+ }
699
+ ),
700
+ Vt ? Ze("loading-later") : null
701
+ ]
702
+ }
703
+ )
704
+ )
705
+ ]
706
+ }
707
+ );
708
+ }
709
+ );
710
+ Ts.displayName = "AppointmentTimeline";
711
+ function bs(i, s, c) {
712
+ const w = ot(c ?? "en");
713
+ try {
714
+ const h = new Intl.DateTimeFormat(w, { weekday: "short" }).format(
715
+ i
716
+ );
717
+ let p = ts(c ?? "en");
718
+ return i.getFullYear() === s.getFullYear() && (p = p.replace(/^yyyy[^A-Za-z]|[^A-Za-z]yyyy$/, "")), `${h} ${us(i, p)}`;
719
+ } catch {
720
+ return k(i);
721
+ }
722
+ }
723
+ function ks(i, s, c) {
724
+ try {
725
+ return new Intl.DateTimeFormat(ot(c ?? "en"), {
726
+ weekday: "long",
727
+ day: "numeric",
728
+ month: "long",
729
+ ...i.getFullYear() !== s.getFullYear() ? { year: "numeric" } : {}
730
+ }).format(i);
731
+ } catch {
732
+ return k(i);
733
+ }
734
+ }
735
+ function ws({
736
+ date: i,
737
+ now: s,
738
+ locale: c,
739
+ todayLabel: w,
740
+ tomorrowLabel: h,
741
+ yesterdayLabel: p
742
+ }) {
743
+ const y = k(i), T = k(s), I = new Date(s);
744
+ I.setDate(s.getDate() + 1);
745
+ const Q = new Date(s);
746
+ Q.setDate(s.getDate() - 1);
747
+ const C = y === T, A = bs(i, s, c);
748
+ let x;
749
+ C ? x = w : y === k(I) ? x = h : y === k(Q) && (x = p);
750
+ const ce = x ? `${x} · ${A}` : A, N = ks(i, s, c), E = x ? `${x}, ${N}` : N;
751
+ return /* @__PURE__ */ g(
752
+ "div",
753
+ {
754
+ role: "heading",
755
+ "aria-level": 3,
756
+ "data-today": C ? "true" : void 0,
757
+ "data-day-header": "",
758
+ className: [
759
+ "ds:sticky ds:top-0 ds:z-[1] ds:bg-[color:var(--card)]",
760
+ "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-xs)]",
761
+ "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card",
762
+ C ? "ds:text-[color:var(--primary)]" : "ds:text-[color:var(--foreground)]"
763
+ ].join(" "),
764
+ children: [
765
+ /* @__PURE__ */ r(lt, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
766
+ /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "ds:min-w-0 ds:break-words", children: ce }),
767
+ /* @__PURE__ */ r("span", { className: "ds:sr-only", children: E })
768
+ ]
769
+ }
770
+ );
771
+ }
772
+ export {
773
+ Ts as A,
774
+ fs as a
775
+ };
776
+ //# sourceMappingURL=appointment-timeline-CMc_3C74.js.map