@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
@@ -1,689 +0,0 @@
1
- import { jsxs as v, Fragment as He, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as Kt, useId as $t, useState as ee, useMemo as w, useCallback as x, useRef as m, useEffect as _e, useImperativeHandle as Et } from "react";
3
- import { c as At } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ft } from "react-i18next";
5
- import { A as Be } from "./appointment-card-r0OZm77v.js";
6
- import { f as Ht } from "./intl-locale-FWh-Y5_3.js";
7
- import { g as _t } from "./date-locale-OG-MupVD.js";
8
- import { I as Le } from "./icon-button-S8_weU3g.js";
9
- import { M as Bt } from "./multi-select-DeMiHm8T.js";
10
- import { B as te } from "./button-DohK_Ak_.js";
11
- import { B as Pe } from "./button-group-DuQuuulC.js";
12
- import { D as We } from "./date-picker-BmVBVpVu.js";
13
- import { P as Lt } from "./panel-header-CbtlTe85.js";
14
- import { S as Pt } from "./skeleton-tTWJpvAq.js";
15
- import { E as Ve } from "./empty-state-DwJ5YNzz.js";
16
- import { u as Ye } from "./use-controllable-state-BiY4xTzM.js";
17
- import { u as qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
18
- import { u as Wt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
19
- import { a as Vt, u as Yt, R as qt } from "./use-list-reflow-C7O4Uqnl.js";
20
- import { u as Ot } from "./registry-DvAUVLHh.js";
21
- import { P as Gt } from "./printer-rkK0T1gi.js";
22
- import { D as Ut } from "./download-CfYKJO_j.js";
23
- import { C as Ge } from "./calendar-days-BGWklvE-.js";
24
- import { f as Qt } from "./format-ql5WTsYT.js";
25
- const Xt = {
26
- id: "appointment-timeline",
27
- // 'pick' backs select_item (non-persisting activation through
28
- // onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
29
- // scroll viewport (mirrors practice-results' scroll_to_result).
30
- capabilities: ["scroll", "pick", "filter"],
31
- state: {
32
- items: {
33
- type: "Array<{ id: string; state: string }>",
34
- descriptionKey: "ui.agent.appointmentTimeline.state.items",
35
- description: "Currently-rendered appointments. Ids + lifecycle state only — never patient identity.",
36
- read: (i) => i.getItems()
37
- },
38
- filters: {
39
- type: "{ range: 'past' | 'future' | 'all'; statuses: string[] }",
40
- descriptionKey: "ui.agent.appointmentTimeline.state.filters",
41
- description: "The range and the statuses now kept. Ids only, never an appointment. No statuses means every status.",
42
- read: (i) => i.getFilters()
43
- }
44
- },
45
- actions: {
46
- select_item: {
47
- safety: "read",
48
- argsType: "{ id: string }",
49
- argsSchema: {
50
- type: "object",
51
- properties: { id: { type: "string" } },
52
- required: ["id"]
53
- },
54
- idempotent: !0,
55
- descriptionKey: "ui.agent.appointmentTimeline.actions.selectItem",
56
- description: "Activate the appointment with the given id.",
57
- invoke: (i, a) => {
58
- i.selectItem(a.id);
59
- }
60
- },
61
- set_filter: {
62
- safety: "read",
63
- argsType: "{ range?: 'past' | 'future' | 'all'; statuses?: string[] }",
64
- argsSchema: {
65
- type: "object",
66
- properties: {
67
- range: { type: "string", enum: ["past", "future", "all"] },
68
- statuses: { type: "array", items: { type: "string" } }
69
- }
70
- },
71
- idempotent: !0,
72
- descriptionKey: "ui.agent.appointmentTimeline.actions.setFilter",
73
- description: "Set the range or the statuses. Omitted keys are left unchanged. A filter the host did not switch on is ignored.",
74
- examples: [{ args: { range: "future", statuses: ["confirmed"] } }],
75
- invoke: (i, a) => {
76
- i.setFilters({
77
- ...a.range ? { range: a.range } : {},
78
- ...a.statuses ? {
79
- statuses: a.statuses
80
- } : {}
81
- });
82
- }
83
- },
84
- jump_to_today: {
85
- safety: "read",
86
- idempotent: !0,
87
- descriptionKey: "ui.agent.appointmentTimeline.actions.jumpToToday",
88
- description: "Re-anchor the timeline scroll on today's appointments.",
89
- invoke: (i) => {
90
- i.jumpToToday();
91
- }
92
- }
93
- },
94
- domHooks: {
95
- root: {
96
- attr: "data-component",
97
- value: "appointment-timeline",
98
- description: "Marks the AppointmentTimeline wrapper."
99
- },
100
- instanceId: {
101
- attr: "data-component-id",
102
- sourceProp: "id",
103
- description: "Sourced from the id prop. Required to address a specific timeline from the agent."
104
- },
105
- item: {
106
- attr: "data-appointment-id",
107
- description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
108
- }
109
- }
110
- }, Oe = 96, Zt = At(
111
- [
112
- "ds:flex ds:flex-col ds:h-full ds:min-h-0",
113
- "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
114
- ].join(" "),
115
- { variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
116
- ), Jt = [
117
- "ds:!rounded-[var(--radius-md)] ds:!shadow-none ds:!bg-transparent",
118
- "ds:!border-border ds:!min-h-8 ds:text-[length:var(--font-size-sm)] ds:font-medium"
119
- ].join(" "), es = [
120
- "ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
121
- "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
122
- "ds:px-[var(--spacing-sm)] ds:pt-0 ds:pb-[var(--spacing-xs)]",
123
- /* Keeps a focused card clear of the sticky day header (WCAG 2.4.11). */
124
- "ds:[scroll-padding-block-start:calc(var(--spacing-md)+var(--spacing-xl))]",
125
- /* Only the bottom edge fades. The sticky day header owns the top edge, so
126
- a top fade would half hide it. */
127
- "ds:[--atl-mask-bottom:black]",
128
- "ds:data-[fade-bottom=true]:[--atl-mask-bottom:transparent]",
129
- "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%))]",
130
- "ds:motion-reduce:[mask-image:none]",
131
- "ds:forced-colors:[mask-image:none]",
132
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
133
- "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
134
- "ds:forced-colors:focus-visible:outline-[CanvasText]"
135
- ].join(" ");
136
- function D(i) {
137
- const a = `${i.getMonth() + 1}`.padStart(2, "0"), f = `${i.getDate()}`.padStart(2, "0");
138
- return `${i.getFullYear()}-${a}-${f}`;
139
- }
140
- function ts(i, a = !1) {
141
- const f = [...i].sort(
142
- (g, u) => a ? +new Date(u.startIso) - +new Date(g.startIso) : +new Date(g.startIso) - +new Date(u.startIso)
143
- ), b = /* @__PURE__ */ new Map();
144
- for (const g of f) {
145
- const u = new Date(g.startIso), h = D(u);
146
- let k = b.get(h);
147
- k || (k = {
148
- key: h,
149
- date: new Date(u.getFullYear(), u.getMonth(), u.getDate()),
150
- items: []
151
- }, b.set(h, k)), k.items.push(g);
152
- }
153
- return [...b.values()];
154
- }
155
- const ss = Kt(
156
- ({
157
- id: i,
158
- items: a,
159
- nowIso: f,
160
- title: b,
161
- locale: g,
162
- currency: u,
163
- size: h = "sm",
164
- showPatient: k = !1,
165
- onOpenAppointment: S,
166
- selectedId: Y,
167
- onLoadEarlier: I,
168
- onLoadLater: N,
169
- hasMoreEarlier: R,
170
- hasMoreLater: se,
171
- loadingEarlier: A = !1,
172
- loadingLater: q = !1,
173
- showFilters: pe = !0,
174
- anchor: ue = "today",
175
- onJumpToDate: O,
176
- showRangeFilter: y = !1,
177
- range: Ue,
178
- defaultRange: F = "all",
179
- onRangeChange: Qe,
180
- statusOptions: fe,
181
- statuses: Xe,
182
- defaultStatuses: Ze,
183
- onStatusesChange: Je,
184
- onPrint: ne,
185
- onDownload: ae,
186
- emptyTitle: et,
187
- emptyDescription: tt,
188
- className: st,
189
- "aria-label": nt,
190
- headerExtra: at,
191
- hideDefaultStatus: rt = !1,
192
- wrapText: ge = !1,
193
- ...it
194
- }, ot) => {
195
- const { t: s, i18n: lt } = Ft("ui"), H = $t(), [re, ct] = ee(0), ie = Wt(), oe = g ?? lt.language, he = b ?? s("appointmentTimeline.title"), c = w(
196
- () => f ? new Date(f) : /* @__PURE__ */ new Date(),
197
- [f]
198
- ), [dt, _] = Ye({
199
- value: Ue,
200
- defaultValue: F,
201
- onChange: Qe
202
- }), [ye, B] = Ye(
203
- {
204
- value: Xe,
205
- defaultValue: Ze ?? [],
206
- onChange: Je
207
- }
208
- ), ve = w(
209
- () => (fe ?? []).filter((e, t, n) => n.indexOf(e) === t),
210
- [fe]
211
- ), z = ve.length > 0, o = y ? dt ?? "all" : "all", T = w(
212
- () => z ? ye ?? [] : [],
213
- [z, ye]
214
- ), Te = w(
215
- () => ({ range: o, statuses: T }),
216
- [o, T]
217
- ), mt = y && o !== F || T.length > 0, pt = x(() => {
218
- y && o !== F && _(F), T.length > 0 && B([]);
219
- }, [
220
- y,
221
- o,
222
- F,
223
- T,
224
- _,
225
- B
226
- ]), be = w(() => {
227
- const e = +c;
228
- return a.filter((t) => !(o === "future" && +new Date(t.startIso) < e || o === "past" && +new Date(t.startIso) >= e || T.length > 0 && (!t.state || !T.includes(t.state))));
229
- }, [a, c, o, T]), ke = o === "past", p = w(
230
- () => ts(be, ke),
231
- [be, ke]
232
- ), we = ie || void 0, ut = w(
233
- () => p.flatMap((e) => e.items.map((t) => t.id)).join(),
234
- [p]
235
- ), { containerRef: ft } = Vt({
236
- key: ut,
237
- reduceMotion: we
238
- }), xe = Yt({ reduceMotion: we }), De = m(a), [Se, Ie] = ee([]);
239
- _e(() => {
240
- const e = De.current;
241
- if (e === a) return;
242
- const t = new Set(a.map((l) => l.id)), n = e.filter((l) => !t.has(l.id));
243
- n.length > 0 && (Ie((l) => [...l, ...n]), n.forEach((l) => {
244
- xe.leave(l.id, () => {
245
- Ie((M) => M.filter((d) => d.id !== l.id));
246
- });
247
- })), De.current = a;
248
- }, [a, xe]);
249
- const Ce = R ?? !!I, je = se ?? !!N, L = w(() => {
250
- var n;
251
- if (p.length === 0) return;
252
- if (o !== "all") return (n = p[0]) == null ? void 0 : n.key;
253
- const e = D(c), t = p.map((l) => l.key);
254
- return t.includes(e) ? e : ue === "first" ? t[0] : t.find((l) => l >= e) ?? t[t.length - 1];
255
- }, [p, c, o, ue]), K = m(null), $ = m(/* @__PURE__ */ new Map()), G = m(!1), P = m(!1), le = m(L);
256
- le.current = L;
257
- const W = m(void 0), Me = m(0), [gt, ht] = ee(!1), [yt, vt] = ee(!1), E = x(() => {
258
- const e = K.current;
259
- if (!e) return;
260
- const { scrollTop: t, scrollHeight: n, clientHeight: l } = e;
261
- ht(t > 1), vt(t + l < n - 1);
262
- }, []), C = x(
263
- (e, t) => {
264
- const n = K.current;
265
- if (!n) return;
266
- let l = $.current.get(e);
267
- if (!l) {
268
- const d = [...$.current.keys()].sort(), Z = +/* @__PURE__ */ new Date(`${e}T00:00:00`), J = o === "all" ? d.find((V) => V >= e) ?? d[d.length - 1] : d.reduce(
269
- (V, Fe) => V === void 0 || Math.abs(+/* @__PURE__ */ new Date(`${Fe}T00:00:00`) - Z) < Math.abs(+/* @__PURE__ */ new Date(`${V}T00:00:00`) - Z) ? Fe : V,
270
- void 0
271
- );
272
- l = J ? $.current.get(J) : void 0;
273
- }
274
- if (!l) return;
275
- const M = l.getBoundingClientRect().top - n.getBoundingClientRect().top;
276
- n.scrollTo({
277
- top: n.scrollTop + M,
278
- behavior: t && !ie ? "smooth" : "auto"
279
- });
280
- },
281
- [ie, o]
282
- ), U = `${o}|${T.join(",")}`, Ne = m(U), ce = m(/* @__PURE__ */ new Set());
283
- qe(() => {
284
- var M;
285
- const e = K.current, t = (M = p[0]) == null ? void 0 : M.key, n = new Set(p.map((d) => d.key)), l = n.size > 0 && ce.current.size > 0 && ![...n].some((d) => ce.current.has(d));
286
- if ((Ne.current !== U || n.size === 0 || l) && (Ne.current = U, G.current = !1, W.current = void 0), ce.current = n, !!e) {
287
- if (!G.current)
288
- p.length > 0 && L && (C(L, !1), G.current = !0, P.current = !1);
289
- else if (o === "all" && W.current && t && t < W.current && n.has(W.current)) {
290
- const d = e.scrollHeight - Me.current;
291
- d > 0 && (e.scrollTop += d);
292
- }
293
- W.current = t, Me.current = e.scrollHeight, E();
294
- }
295
- }, [p, L, C, E, U, o]);
296
- const Tt = p.length > 0;
297
- qe(() => {
298
- const e = K.current;
299
- if (!e || typeof ResizeObserver > "u") return;
300
- const t = new ResizeObserver(() => {
301
- G.current && !P.current && le.current && C(le.current, !1), E();
302
- });
303
- t.observe(e);
304
- const n = e.querySelector("ol");
305
- return n && t.observe(n), () => t.disconnect();
306
- }, [E, C, Tt]), _e(() => {
307
- var e;
308
- re !== 0 && ((e = document.getElementById(H)) == null || e.focus({ preventScroll: !0 }));
309
- }, [re, H]);
310
- const Q = x(() => {
311
- P.current = !0;
312
- }, []), bt = x(() => {
313
- E();
314
- const e = K.current;
315
- if (!e) return;
316
- const { scrollTop: t, scrollHeight: n, clientHeight: l } = e, M = t <= Oe, d = n - t - l <= Oe, Z = o === "past" ? d : M, J = d;
317
- I && o !== "future" && Ce && !A && Z && I(), N && o !== "past" && je && !q && J && N();
318
- }, [
319
- o,
320
- E,
321
- I,
322
- N,
323
- Ce,
324
- je,
325
- A,
326
- q
327
- ]), j = x(
328
- (e) => {
329
- P.current = !0;
330
- const t = D(e), n = $.current.has(t);
331
- C(t, !0), n || O == null || O(e.toISOString());
332
- },
333
- [C, O]
334
- ), kt = x(() => j(c), [j, c]), wt = x(() => {
335
- const e = new Date(c), t = (e.getDay() + 6) % 7;
336
- e.setDate(e.getDate() - t), j(e);
337
- }, [j, c]), xt = x(() => {
338
- j(new Date(c.getFullYear(), c.getMonth(), 1));
339
- }, [j, c]), de = m(a);
340
- de.current = a;
341
- const X = m(Te);
342
- X.current = Te;
343
- const Re = m(y);
344
- Re.current = y;
345
- const ze = m(z);
346
- ze.current = z;
347
- const Ke = m(null);
348
- Et(ot, () => Ke.current, []);
349
- const Dt = w(
350
- () => ({
351
- getItems: () => de.current.map((e) => ({ id: e.id, state: e.state ?? "" })),
352
- selectItem: (e) => {
353
- const t = de.current.find((n) => n.id === e);
354
- t && (S == null || S(t));
355
- },
356
- jumpToToday: () => {
357
- P.current = !0, C(D(c), !0);
358
- },
359
- getFilters: () => X.current,
360
- setFilters: (e) => {
361
- e.range !== void 0 && Re.current && _(e.range), e.statuses !== void 0 && ze.current && B(e.statuses);
362
- }
363
- }),
364
- [S, C, c, _, B]
365
- );
366
- Ot(Xt, Dt, i);
367
- const St = p.length === 0 && !A && !q, It = o === "all" && A, Ct = o === "past" ? A : o === "future" || o === "all" ? q : !1, jt = ["past", "future", "all"], Mt = {
368
- past: s("appointmentTimeline.range.past"),
369
- future: s("appointmentTimeline.range.future"),
370
- all: s("appointmentTimeline.range.all")
371
- }, me = ne || ae ? /* @__PURE__ */ v(He, { children: [
372
- ne ? /* @__PURE__ */ r(
373
- Le,
374
- {
375
- icon: /* @__PURE__ */ r(Gt, {}),
376
- intent: "outline",
377
- size: "sm",
378
- "aria-label": s("appointmentTimeline.print"),
379
- tooltip: s("appointmentTimeline.print"),
380
- "data-action": "print-appointments",
381
- onClick: () => ne(X.current)
382
- }
383
- ) : null,
384
- ae ? /* @__PURE__ */ r(
385
- Le,
386
- {
387
- icon: /* @__PURE__ */ r(Ut, {}),
388
- intent: "outline",
389
- size: "sm",
390
- "aria-label": s("appointmentTimeline.download"),
391
- tooltip: s("appointmentTimeline.download"),
392
- "data-action": "download-appointments",
393
- onClick: () => ae(X.current)
394
- }
395
- ) : null
396
- ] }) : void 0, $e = pe && y, Nt = $e ? void 0 : me, Rt = [
397
- { label: s("appointmentTimeline.today"), date: () => new Date(c) },
398
- {
399
- label: s("appointmentTimeline.thisWeek"),
400
- date: () => {
401
- const e = new Date(c);
402
- return e.setDate(e.getDate() - (e.getDay() + 6) % 7), e;
403
- }
404
- },
405
- {
406
- label: s("appointmentTimeline.thisMonth"),
407
- date: () => new Date(c.getFullYear(), c.getMonth(), 1)
408
- }
409
- ], Ee = /* @__PURE__ */ v(He, { children: [
410
- /* @__PURE__ */ v(Pe, { label: s("appointmentTimeline.filtersLabel"), children: [
411
- /* @__PURE__ */ r(te, { intent: "outline", size: "sm", onClick: kt, children: s("appointmentTimeline.today") }),
412
- /* @__PURE__ */ r(te, { intent: "outline", size: "sm", onClick: wt, children: s("appointmentTimeline.thisWeek") }),
413
- /* @__PURE__ */ r(te, { intent: "outline", size: "sm", onClick: xt, children: s("appointmentTimeline.thisMonth") })
414
- ] }),
415
- /* @__PURE__ */ r("label", { htmlFor: H, className: "ds:sr-only", children: s("appointmentTimeline.jumpToDate") }),
416
- /* @__PURE__ */ r(
417
- We,
418
- {
419
- id: H,
420
- size: "sm",
421
- placeholder: s("appointmentTimeline.jumpToDate"),
422
- onChange: (e) => {
423
- e && j(e);
424
- }
425
- }
426
- )
427
- ] }), zt = y || z ? /* @__PURE__ */ v("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
428
- /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
429
- y ? /* @__PURE__ */ r(Pe, { label: s("appointmentTimeline.range.label"), children: jt.map((e) => {
430
- const t = o === e;
431
- return /* @__PURE__ */ r(
432
- te,
433
- {
434
- intent: t ? "primary" : "outline",
435
- size: "sm",
436
- "aria-pressed": t,
437
- "data-range-filter": e,
438
- onClick: () => _(e),
439
- children: Mt[e]
440
- },
441
- e
442
- );
443
- }) }) : Ee,
444
- $e && me ? /* @__PURE__ */ r("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: me }) : null
445
- ] }),
446
- y || z ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]", children: [
447
- y ? /* @__PURE__ */ r("div", { className: "ds:min-w-[7rem] ds:flex-1", children: /* @__PURE__ */ r(
448
- We,
449
- {
450
- id: H,
451
- size: "sm",
452
- chrome: "button",
453
- "aria-label": s("appointmentTimeline.jumpTo"),
454
- placeholder: s("appointmentTimeline.jumpTo"),
455
- presets: Rt,
456
- onChange: (e) => {
457
- e && (j(e), ct((t) => t + 1));
458
- }
459
- },
460
- re
461
- ) }) : null,
462
- z ? /* @__PURE__ */ r("div", { className: "ds:min-w-[7rem] ds:flex-1", children: /* @__PURE__ */ r(
463
- Bt,
464
- {
465
- size: "sm",
466
- className: Jt,
467
- "aria-label": s("appointmentTimeline.status.label"),
468
- placeholder: s("appointmentTimeline.status.placeholder"),
469
- allowClear: !0,
470
- options: ve.map((e) => ({
471
- value: e,
472
- label: s(`appointmentCard.state.${e}`)
473
- })),
474
- value: T,
475
- onChange: (e) => B(e),
476
- "data-status-filter": "true"
477
- }
478
- ) }) : null
479
- ] }) : null
480
- ] }) : Ee, Ae = (e) => /* @__PURE__ */ r(
481
- "div",
482
- {
483
- "aria-hidden": "true",
484
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
485
- children: /* @__PURE__ */ r(Pt, { variant: "rectangular", height: "3.5rem" })
486
- },
487
- e
488
- );
489
- return /* @__PURE__ */ v(
490
- "section",
491
- {
492
- ref: Ke,
493
- "data-component": "appointment-timeline",
494
- "data-component-id": i,
495
- "aria-label": nt ?? he,
496
- className: Zt({ size: h, className: st }),
497
- ...it,
498
- children: [
499
- /* @__PURE__ */ r(
500
- Lt,
501
- {
502
- icon: /* @__PURE__ */ r(Ge, {}),
503
- title: he,
504
- actions: Nt,
505
- filters: pe ? zt : void 0
506
- }
507
- ),
508
- at,
509
- St ? /* @__PURE__ */ r("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: mt ? /* @__PURE__ */ r(
510
- Ve,
511
- {
512
- variant: "no-results",
513
- size: "sm",
514
- title: s("appointmentTimeline.filteredEmpty.title"),
515
- description: s("appointmentTimeline.filteredEmpty.description"),
516
- primaryAction: {
517
- label: s("appointmentTimeline.filteredEmpty.clear"),
518
- onClick: pt
519
- }
520
- }
521
- ) : /* @__PURE__ */ r(
522
- Ve,
523
- {
524
- variant: "first-use",
525
- size: "sm",
526
- title: et ?? s("appointmentTimeline.empty.title"),
527
- description: tt ?? s("appointmentTimeline.empty.description")
528
- }
529
- ) }) : (
530
- // 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
531
- /* @__PURE__ */ v(
532
- "div",
533
- {
534
- ref: K,
535
- tabIndex: 0,
536
- onScroll: bt,
537
- onWheel: Q,
538
- onTouchStart: Q,
539
- onPointerDown: Q,
540
- onKeyDown: Q,
541
- "data-fade-top": gt ? "true" : void 0,
542
- "data-fade-bottom": yt ? "true" : void 0,
543
- className: es,
544
- children: [
545
- It ? Ae("loading-earlier") : null,
546
- /* @__PURE__ */ v(
547
- "ol",
548
- {
549
- ref: ft,
550
- role: "list",
551
- className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
552
- children: [
553
- p.map((e) => /* @__PURE__ */ v(
554
- "li",
555
- {
556
- ref: (t) => {
557
- t ? $.current.set(e.key, t) : $.current.delete(e.key);
558
- },
559
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
560
- children: [
561
- /* @__PURE__ */ r(
562
- as,
563
- {
564
- date: e.date,
565
- now: c,
566
- locale: oe,
567
- todayLabel: s("appointmentTimeline.today"),
568
- tomorrowLabel: s("appointmentTimeline.tomorrow"),
569
- yesterdayLabel: s("appointmentTimeline.yesterday")
570
- }
571
- ),
572
- /* @__PURE__ */ r(
573
- "ul",
574
- {
575
- role: "list",
576
- className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
577
- children: e.items.map((t) => /* @__PURE__ */ r(
578
- Be,
579
- {
580
- item: t,
581
- size: h,
582
- surface: "elevated",
583
- showPatient: k,
584
- locale: oe,
585
- currency: u,
586
- onActivate: S,
587
- selected: t.id === Y,
588
- hideDefaultStatus: rt,
589
- wrapText: ge,
590
- "data-appointment-id": t.id,
591
- "data-reflow-id": t.id,
592
- className: qt
593
- },
594
- t.id
595
- ))
596
- }
597
- )
598
- ]
599
- },
600
- e.key
601
- )),
602
- Se.length > 0 ? Se.map((e) => /* @__PURE__ */ r(
603
- Be,
604
- {
605
- item: e,
606
- size: h,
607
- surface: "elevated",
608
- showPatient: k,
609
- wrapText: ge,
610
- locale: oe,
611
- currency: u,
612
- "aria-hidden": "true",
613
- "data-leaving": !0,
614
- className: [
615
- "ds:opacity-0",
616
- "ds:transition-opacity",
617
- "ds:duration-[var(--animation-duration)]",
618
- "ds:ease-[var(--ease-out)]",
619
- "ds:motion-reduce:transition-none"
620
- ].join(" ")
621
- },
622
- `leaving-${e.id}`
623
- )) : null
624
- ]
625
- }
626
- ),
627
- Ct ? Ae("loading-later") : null
628
- ]
629
- }
630
- )
631
- )
632
- ]
633
- }
634
- );
635
- }
636
- );
637
- ss.displayName = "AppointmentTimeline";
638
- function ns(i, a) {
639
- const f = Ht(a ?? "en");
640
- try {
641
- const b = new Intl.DateTimeFormat(f, { weekday: "short" }).format(
642
- i
643
- ), g = Qt(i, _t(a ?? "en"));
644
- return `${b} ${g}`;
645
- } catch {
646
- return D(i);
647
- }
648
- }
649
- function as({
650
- date: i,
651
- now: a,
652
- locale: f,
653
- todayLabel: b,
654
- tomorrowLabel: g,
655
- yesterdayLabel: u
656
- }) {
657
- const h = D(i), k = D(a), S = new Date(a);
658
- S.setDate(a.getDate() + 1);
659
- const Y = new Date(a);
660
- Y.setDate(a.getDate() - 1);
661
- const I = h === k, N = ns(i, f);
662
- let R;
663
- I ? R = b : h === D(S) ? R = g : h === D(Y) && (R = u);
664
- const se = R ? `${R} · ${N}` : N;
665
- return /* @__PURE__ */ v(
666
- "div",
667
- {
668
- role: "heading",
669
- "aria-level": 3,
670
- "data-today": I ? "true" : void 0,
671
- "data-day-header": "",
672
- className: [
673
- "ds:sticky ds:top-0 ds:z-[1] ds:bg-[color:var(--card)]",
674
- "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-xs)]",
675
- "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card",
676
- I ? "ds:text-[color:var(--primary)]" : "ds:text-[color:var(--foreground)]"
677
- ].join(" "),
678
- children: [
679
- /* @__PURE__ */ r(Ge, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
680
- /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:break-words", children: se })
681
- ]
682
- }
683
- );
684
- }
685
- export {
686
- ss as A,
687
- Xt as a
688
- };
689
- //# sourceMappingURL=appointment-timeline-Bs-rTMzi.js.map