@alfadocs/ui-kit 1.71.1 → 1.73.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 (329) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BXCpK2_0.js → actions-cell-renderer-B1yaOfQM.js} +3 -3
  2. package/dist/_chunks/{agenda-tray-CfwylhWf.js → agenda-tray-D-jvptdo.js} +3 -3
  3. package/dist/_chunks/{ai-credits-exhausted-notice-Bg8NpW2K.js → ai-credits-exhausted-notice-CwZnSACy.js} +2 -2
  4. package/dist/_chunks/{ai-credits-notice-DQ-r3iQU.js → ai-credits-notice-BNFcQoXo.js} +3 -3
  5. package/dist/_chunks/{ai-permission-notice-C00i6VhY.js → ai-permission-notice-CoW22jx1.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-DzgyoKyk.js → ai-prompt-input-M6u29f87.js} +2 -2
  7. package/dist/_chunks/{alia-sidebar-DEMMoefU.js → alia-sidebar-DZoyUFW8.js} +292 -286
  8. package/dist/_chunks/{anamnesis-card-Bey9qQu4.js → anamnesis-card-BcadMmEM.js} +2 -2
  9. package/dist/_chunks/{anamnesis-summary-rows-rNwSrNWZ.js → anamnesis-summary-rows-BedVmSAB.js} +8 -8
  10. package/dist/_chunks/{appointment-peek-CpcqB8oO.js → appointment-peek-39BwVMUf.js} +3 -3
  11. package/dist/_chunks/{appointment-timeline-VFP6HoXT.js → appointment-timeline-CKwMXUid.js} +4 -4
  12. package/dist/_chunks/{appointment-tray-B3PDER3I.js → appointment-tray-Dwc8MSIQ.js} +3 -3
  13. package/dist/_chunks/{audio-recorder-4Ll0pwYK.js → audio-recorder-m7Jqvvcl.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-BG3DMly4.js → balance-badge-cell-DG5JWB2p.js} +4 -4
  15. package/dist/_chunks/{bishop-score-Df8nF1qg.js → bishop-score-CdbU9Nl4.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-DjmQ04Ch.js → bmi-calculator-DnfiDh4Q.js} +2 -2
  17. package/dist/_chunks/{booking-B1pDbERi.js → booking-C-hRVLPy.js} +1404 -1373
  18. package/dist/_chunks/{button-D-MQxsA_.js → button-DohK_Ak_.js} +40 -27
  19. package/dist/_chunks/{button-group-DCOJhvm3.js → button-group-ZVb1Q-w4.js} +2 -2
  20. package/dist/_chunks/{calculator-dialog-BUfaWqvu.js → calculator-dialog-BsVVb8cT.js} +2 -2
  21. package/dist/_chunks/{calendar-BvOM8rG3.js → calendar-ClB-jWH1.js} +2 -2
  22. package/dist/_chunks/calendar-appointment-editor-dialog-Lji2y0qJ.js +10986 -0
  23. package/dist/_chunks/{care-plan-card-DJzbwJLl.js → care-plan-card-BYCPNDvA.js} +2 -2
  24. package/dist/_chunks/{care-plan-entry-card-DPJcP34v.js → care-plan-entry-card-4VaY2c96.js} +2 -2
  25. package/dist/_chunks/{care-plan-header-1HzbkYcR.js → care-plan-header-BzsAg6oY.js} +2 -2
  26. package/dist/_chunks/{carousel.agent-BaRsN-8H.js → carousel.agent-CkDXR3-8.js} +2 -2
  27. package/dist/_chunks/{chart-CwmyCuWe.js → chart-D4huJSru.js} +3 -3
  28. package/dist/_chunks/{chat-input-HtTbUUD6.js → chat-input-DwQ4_WXK.js} +31 -31
  29. package/dist/_chunks/{chat-message-C2VXQMoB.js → chat-message-CmFJdEre.js} +3 -3
  30. package/dist/_chunks/{code-block-RSKdF3E-.js → code-block-BTsCXVGI.js} +2 -2
  31. package/dist/_chunks/{connection-status-BOZC5QU5.js → connection-status-CVyCqxiY.js} +3 -3
  32. package/dist/_chunks/{contact-profile-card-CAwwOqHl.js → contact-profile-card-DKk94l-d.js} +2 -2
  33. package/dist/_chunks/{control-room-rail-BB6rCDWI.js → control-room-rail-CKZ2nemY.js} +3 -3
  34. package/dist/_chunks/{copy-field-BCT7APRE.js → copy-field-hgVSc51W.js} +2 -2
  35. package/dist/_chunks/{cycle-calculator-D2Y4LvgC.js → cycle-calculator-Ycp3li61.js} +2 -2
  36. package/dist/_chunks/{dashboard-grid-7JzaiKnk.js → dashboard-grid-DwJ_HV3d.js} +2 -2
  37. package/dist/_chunks/{data-table-Cty4-Jht.js → data-table-DTKGWUQm.js} +6 -6
  38. package/dist/_chunks/{data-table-tabs-BfrnefV5.js → data-table-tabs-DlTPtqoI.js} +3 -3
  39. package/dist/_chunks/{description-list-DQQ2OA_t.js → description-list-BxzDN9o2.js} +2 -2
  40. package/dist/_chunks/{dev-bypass-button--CPzzRSj.js → dev-bypass-button-B7ePcJcg.js} +2 -2
  41. package/dist/_chunks/{dialog-D6fkpRc4.js → dialog-C7RWaH08.js} +63 -56
  42. package/dist/_chunks/{document-preview-513f3iPn.js → document-preview-QEbr7jp1.js} +2 -2
  43. package/dist/_chunks/{document-scanner-Bd3wbzpI.js → document-scanner-BQP0Rqrt.js} +2 -2
  44. package/dist/_chunks/{due-date-calculator-41uZDkVR.js → due-date-calculator-B0gyOijA.js} +2 -2
  45. package/dist/_chunks/{editable-currency-cell-renderer-1ijmzNWh.js → editable-currency-cell-renderer-rWYiF4EI.js} +3 -3
  46. package/dist/_chunks/{editable-description-DnAFi360.js → editable-description-KU56SP4P.js} +3 -3
  47. package/dist/_chunks/{editor-overlay-CpVO1-Kk.js → editor-overlay-Dc8uVxEp.js} +2 -2
  48. package/dist/_chunks/{empty-state-pL1qum99.js → empty-state-DwJ5YNzz.js} +2 -2
  49. package/dist/_chunks/{entity-summary-C2B8yNmc.js → entity-summary-BLxzSSXK.js} +3 -3
  50. package/dist/_chunks/{error-boundary-Dzgu3O6W.js → error-boundary-tAn_GuCu.js} +2 -2
  51. package/dist/_chunks/{error-page-DirZKDz2.js → error-page-Bhai-spN.js} +2 -2
  52. package/dist/_chunks/{face-scheme-CSJdRNad.js → face-scheme-BIPJqw9f.js} +5 -5
  53. package/dist/_chunks/{fetal-weight-DycD_Vqr.js → fetal-weight-CrtBFJl-.js} +2 -2
  54. package/dist/_chunks/{field-array-BJYc1xSu.js → field-array-CA-gn526.js} +3 -3
  55. package/dist/_chunks/{file-manager-D4cPnRhL.js → file-manager-Ct5QpZZI.js} +8 -8
  56. package/dist/_chunks/{finished-terminal-DuF3xrUv.js → finished-terminal-D8ohcFVS.js} +2 -2
  57. package/dist/_chunks/{fiscal-code-input-DwHb2nVW.js → fiscal-code-input-BzWmNDnl.js} +2 -2
  58. package/dist/_chunks/{forgot-password-form-BGPc8TGr.js → forgot-password-form-D6kB72OD.js} +2 -2
  59. package/dist/_chunks/{freemium-paywall-C73C8Rgd.js → freemium-paywall-CM0zQSDE.js} +2 -2
  60. package/dist/_chunks/{gestational-age-calculator-Du53p8MH.js → gestational-age-calculator-Bu_a-K9z.js} +2 -2
  61. package/dist/_chunks/{hcg-doubling-DwTcjfke.js → hcg-doubling-BnopYgd-.js} +2 -2
  62. package/dist/_chunks/{header-_TppWBpK.js → header-l_B8MV0g.js} +2 -2
  63. package/dist/_chunks/{header-settings-CAC0Yl0t.js → header-settings-DBlTL6Qj.js} +4 -4
  64. package/dist/_chunks/{heatmap-DbZIQg14.js → heatmap-Ba9cgfSY.js} +6 -6
  65. package/dist/_chunks/{help-me-write-templates-5WkUfvc_.js → help-me-write-templates-Ds1FY-WY.js} +7 -7
  66. package/dist/_chunks/{hover-card-CTNhQXWS.js → hover-card-CuRIA4wN.js} +2 -2
  67. package/dist/_chunks/{icon-button-C_1TgRiK.js → icon-button-S8_weU3g.js} +2 -2
  68. package/dist/_chunks/{icon-button-group-NIHji7_y.js → icon-button-group-CRKFR48b.js} +4 -8
  69. package/dist/_chunks/{icon-picker-Dq4O32K8.js → icon-picker-Bkm9m7ju.js} +3 -3
  70. package/dist/_chunks/{image-cropper-s8ej8cxa.js → image-cropper-Ch80rFdt.js} +2 -2
  71. package/dist/_chunks/{info-tip-cYszyg6h.js → info-tip-Cfd5SKbY.js} +2 -2
  72. package/dist/_chunks/{insert-result-h3WL-gMo.js → insert-result-CDMMt7q8.js} +2 -2
  73. package/dist/_chunks/{key-value-pair-BscGwZsJ.js → key-value-pair-BoXOtBL1.js} +2 -2
  74. package/dist/_chunks/{kit-extensions-CYvLL4ee.js → kit-extensions-DgBi3tsK.js} +6 -6
  75. package/dist/_chunks/{link-cell-renderer-DtIsQWDO.js → link-cell-renderer-BDxxpfJM.js} +2 -2
  76. package/dist/_chunks/loading-guard-C1gbJBA4.js +17 -0
  77. package/dist/_chunks/{locale-picker-CeveTnDK.js → locale-picker-KT-Vz3bx.js} +3 -3
  78. package/dist/_chunks/{login-dev-card-CWpoTuVY.js → login-dev-card-pnJbVaoQ.js} +2 -2
  79. package/dist/_chunks/{map-view-CtohteZD.js → map-view-C6MIVaqn.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-BeWm-Efp.js → marketplace-app-shell-B0ix9yNI.js} +4 -4
  81. package/dist/_chunks/{message-card-C_ksqIYM.js → message-card-CvCnCssc.js} +3 -3
  82. package/dist/_chunks/{message-tray-DCoQ4GQb.js → message-tray-IJYvy6Cf.js} +4 -4
  83. package/dist/_chunks/{notes-panel-BXN46XkF.js → notes-panel-C_QshXyI.js} +5 -5
  84. package/dist/_chunks/{notification-card-c2oX8j3F.js → notification-card-CPW4poUr.js} +3 -3
  85. package/dist/_chunks/{notification-tray-Cp18MW5b.js → notification-tray-0OkA2duS.js} +4 -4
  86. package/dist/_chunks/{optical-prescription-D5c7FBlT.js → optical-prescription-CMM1Y6Xg.js} +2 -2
  87. package/dist/_chunks/{panel-subview-BPU7220K.js → panel-subview-DCyvn-49.js} +2 -2
  88. package/dist/_chunks/{patient-details-qWOsn1MX.js → patient-details-Cd_dCqkg.js} +3 -3
  89. package/dist/_chunks/{patient-field-row-CAl5ydtX.js → patient-field-row-D6Ftm46u.js} +6 -6
  90. package/dist/_chunks/{patient-search-BADdx3M1.js → patient-search-DuBdxv1w.js} +3 -3
  91. package/dist/_chunks/{patient-summary-card-BhuRh9AE.js → patient-summary-card-BSOHR4Ol.js} +5 -5
  92. package/dist/_chunks/{payment-automation-upsell-CiwF5UrC.js → payment-automation-upsell-AQpHOS1X.js} +2 -2
  93. package/dist/_chunks/{payment-request-card-bysjRZrP.js → payment-request-card-MndSlVoK.js} +3 -3
  94. package/dist/_chunks/{periodontal-chart-DCcOEYC6.js → periodontal-chart-_y4Ck7_P.js} +2 -2
  95. package/dist/_chunks/{periodontal-chart-card-CxdjXFb3.js → periodontal-chart-card-Bx6PeS3b.js} +2 -2
  96. package/dist/_chunks/{popover-4ZVtH_At.js → popover-Da1ekjV1.js} +2 -2
  97. package/dist/_chunks/{practice-results-BzThnpnm.js → practice-results-B4Z5q46r.js} +5 -5
  98. package/dist/_chunks/{pregnancy-dating-EFcFUJkQ.js → pregnancy-dating-CvNFirHt.js} +2 -2
  99. package/dist/_chunks/{pregnancy-weight-gain-BVvyL-j1.js → pregnancy-weight-gain--Bqv6AWu.js} +2 -2
  100. package/dist/_chunks/{privacy-lock-CEYJ8ehu.js → privacy-lock-CcrjIbBv.js} +3 -3
  101. package/dist/_chunks/{privacy-mask-CCz9zuIh.js → privacy-mask-BDVkikTm.js} +2 -2
  102. package/dist/_chunks/{product-hub-panel-YuFbNPlT.js → product-hub-panel-Blag8t8f.js} +3 -3
  103. package/dist/_chunks/{public-header.agent-DXRA7ebK.js → public-header.agent-DPPdCBi_.js} +3 -3
  104. package/dist/_chunks/{radiograph-panel.agent-4UllIoTQ.js → radiograph-panel.agent-ESnkuDfH.js} +5 -5
  105. package/dist/_chunks/{registration-form-1B0PTDal.js → registration-form-BGSVMAga.js} +3 -3
  106. package/dist/_chunks/{reviews-panel-sbsVmmCA.js → reviews-panel-UzQQLb-z.js} +4 -4
  107. package/dist/_chunks/{rich-text-editor-56dSsyZI.js → rich-text-editor-BXFgcvBW.js} +8 -8
  108. package/dist/_chunks/{session-countdown-DWY61IcV.js → session-countdown-C4tzbJVc.js} +22 -23
  109. package/dist/_chunks/{sheet-D2PfJl8n.js → sheet-uZZXaO_S.js} +2 -2
  110. package/dist/_chunks/sign-in-with-alfadocs-button-DzrNgbWv.js +62 -0
  111. package/dist/_chunks/{signature-request-DAmNj_uq.js → signature-request-ldmXj2X6.js} +5 -5
  112. package/dist/_chunks/{signed-out-frame-Rg_GVDnl.js → signed-out-frame-G-3ATOdu.js} +3 -3
  113. package/dist/_chunks/{slot-grid-D_gix9mJ.js → slot-grid-uA9j7Nik.js} +4 -4
  114. package/dist/_chunks/{social-sign-in-button-yUqwhnPZ.js → social-sign-in-button-BqYZxbXI.js} +50 -34
  115. package/dist/_chunks/{streaming-text-DbqKTsmj.js → streaming-text-Nb3Q7L94.js} +2 -2
  116. package/dist/_chunks/{task-card-Ci2XbLmq.js → task-card-C4HJUKVw.js} +2 -2
  117. package/dist/_chunks/{task-editor-BomyxGoZ.js → task-editor-BTeUFGUX.js} +201 -201
  118. package/dist/_chunks/{task-tray-Dnc72nl-.js → task-tray-DZQGhDdc.js} +4 -4
  119. package/dist/_chunks/{tasks-panel-ATz9JDy8.js → tasks-panel-Cmr0oMvc.js} +6 -6
  120. package/dist/_chunks/{theme-toggle-DT_Jn4DC.js → theme-toggle-DTrUzIBG.js} +3 -3
  121. package/dist/_chunks/{toast-6T519aLz.js → toast-BNoN8Qjh.js} +2 -2
  122. package/dist/_chunks/{token-insert-menu-CQvV4u1m.js → token-insert-menu-DtAnBd0x.js} +2 -2
  123. package/dist/_chunks/{tool-rail-C-M3eVdY.js → tool-rail-C_9lm0TC.js} +2 -2
  124. package/dist/_chunks/{tooth-scheme-Dkh4JwzT.js → tooth-scheme-COJJkdsi.js} +2 -2
  125. package/dist/_chunks/{unit-converter-CIoTmCmP.js → unit-converter-D59L-gkf.js} +2 -2
  126. package/dist/_chunks/{use-appointment-details-read-1gjZuup4.js → use-appointment-details-read-BWbOiLVw.js} +11 -11
  127. package/dist/_chunks/{voice-control-panel-B8Lrk0C4.js → voice-control-panel-DQJwe6_Q.js} +6 -6
  128. package/dist/_chunks/{wallet-pay-button-DFP5FW0D.js → wallet-pay-button-DajFzhHK.js} +62 -46
  129. package/dist/_chunks/{warning-stack-BhHUmRiD.js → warning-stack-3S7e2q07.js} +3 -3
  130. package/dist/_chunks/{widget-picker-DlNPGcnu.js → widget-picker-B9HpT2Tb.js} +2 -2
  131. package/dist/_chunks/{workflow-map-ln4_OG8A.js → workflow-map-BcfOwsSB.js} +5 -5
  132. package/dist/_chunks/{workflow-webhook-action-D6K7Jgc2.js → workflow-webhook-action-BvVPZVpG.js} +182 -187
  133. package/dist/agent-catalog.json +2 -2
  134. package/dist/agent-i18n/en.json +1 -1
  135. package/dist/components/_shared/compact-editor-fields.d.ts +2 -1
  136. package/dist/components/_shared/loading-guard.d.ts +20 -0
  137. package/dist/components/agenda-tray/index.js +1 -1
  138. package/dist/components/ai-credits-notice/index.js +2 -2
  139. package/dist/components/ai-permission-notice/index.js +1 -1
  140. package/dist/components/ai-prompt-input/index.js +1 -1
  141. package/dist/components/anamnesis-card/index.js +1 -1
  142. package/dist/components/appointment-card/index.js +1 -1
  143. package/dist/components/appointment-details-panel/index.js +1 -1
  144. package/dist/components/appointment-peek/index.js +1 -1
  145. package/dist/components/appointment-timeline/index.js +1 -1
  146. package/dist/components/audio-recorder/index.js +1 -1
  147. package/dist/components/bishop-score/index.js +1 -1
  148. package/dist/components/bmi-calculator/index.js +1 -1
  149. package/dist/components/booking/booking-types.d.ts +8 -0
  150. package/dist/components/booking/details-form.d.ts +2 -0
  151. package/dist/components/booking/index.js +1 -1
  152. package/dist/components/button/button.d.ts +7 -0
  153. package/dist/components/button/index.js +2 -2
  154. package/dist/components/button-group/index.js +1 -1
  155. package/dist/components/calculator-dialog/index.js +1 -1
  156. package/dist/components/calendar/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/carousel/index.js +1 -1
  161. package/dist/components/chart/index.js +1 -1
  162. package/dist/components/chat-input/index.js +1 -1
  163. package/dist/components/chat-message/index.js +1 -1
  164. package/dist/components/connection-status/index.js +1 -1
  165. package/dist/components/contact-profile-card/index.js +1 -1
  166. package/dist/components/control-room-rail/index.js +1 -1
  167. package/dist/components/copy-field/index.js +1 -1
  168. package/dist/components/cycle-calculator/index.js +1 -1
  169. package/dist/components/dashboard-grid/index.js +1 -1
  170. package/dist/components/data-table/index.js +4 -4
  171. package/dist/components/data-table-tabs/index.js +1 -1
  172. package/dist/components/description-list/index.js +1 -1
  173. package/dist/components/dev-bypass-button/index.js +1 -1
  174. package/dist/components/dialog/dialog.d.ts +8 -0
  175. package/dist/components/dialog/index.js +1 -1
  176. package/dist/components/document-preview/index.js +1 -1
  177. package/dist/components/document-scanner/index.js +1 -1
  178. package/dist/components/due-date-calculator/index.js +1 -1
  179. package/dist/components/editable-description/index.js +1 -1
  180. package/dist/components/editor-overlay/index.js +1 -1
  181. package/dist/components/empty-state/index.js +1 -1
  182. package/dist/components/entity-summary/index.js +1 -1
  183. package/dist/components/error-boundary/index.js +1 -1
  184. package/dist/components/face-scheme/index.js +1 -1
  185. package/dist/components/fetal-weight/index.js +1 -1
  186. package/dist/components/field-array/index.js +1 -1
  187. package/dist/components/file-manager/index.js +1 -1
  188. package/dist/components/finished-terminal/index.js +1 -1
  189. package/dist/components/fiscal-code-input/index.js +1 -1
  190. package/dist/components/freemium-paywall/index.js +1 -1
  191. package/dist/components/gestational-age-calculator/index.js +1 -1
  192. package/dist/components/hcg-doubling/index.js +1 -1
  193. package/dist/components/header/index.js +1 -1
  194. package/dist/components/header-settings/index.js +1 -1
  195. package/dist/components/heatmap/index.js +1 -1
  196. package/dist/components/hover-card/index.js +1 -1
  197. package/dist/components/icon-button/index.js +1 -1
  198. package/dist/components/icon-button-group/index.js +1 -1
  199. package/dist/components/icon-picker/index.js +1 -1
  200. package/dist/components/image-cropper/index.js +1 -1
  201. package/dist/components/info-tip/index.js +1 -1
  202. package/dist/components/key-value-pair/index.js +1 -1
  203. package/dist/components/locale-picker/index.js +1 -1
  204. package/dist/components/map-view/index.js +1 -1
  205. package/dist/components/message-card/index.js +1 -1
  206. package/dist/components/message-tray/index.js +1 -1
  207. package/dist/components/notes-panel/index.js +1 -1
  208. package/dist/components/notification-card/index.js +1 -1
  209. package/dist/components/notification-tray/index.js +1 -1
  210. package/dist/components/optical-prescription/index.js +1 -1
  211. package/dist/components/panel-subview/index.js +1 -1
  212. package/dist/components/patient-details/index.js +1 -1
  213. package/dist/components/patient-search/index.js +1 -1
  214. package/dist/components/patient-summary-card/index.js +1 -1
  215. package/dist/components/patient-table/index.js +1 -1
  216. package/dist/components/payment-card/index.js +1 -1
  217. package/dist/components/periodontal-chart/index.js +1 -1
  218. package/dist/components/periodontal-chart-card/index.js +1 -1
  219. package/dist/components/popover/index.js +1 -1
  220. package/dist/components/practice-results/index.js +1 -1
  221. package/dist/components/pregnancy-dating/index.js +1 -1
  222. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  223. package/dist/components/privacy-lock/index.js +1 -1
  224. package/dist/components/product-hub-tray/index.js +1 -1
  225. package/dist/components/public-header/index.js +1 -1
  226. package/dist/components/radiograph-panel/index.js +1 -1
  227. package/dist/components/reviews-panel/index.js +1 -1
  228. package/dist/components/rich-text-editor/index.js +2 -2
  229. package/dist/components/session-countdown/index.js +1 -1
  230. package/dist/components/sheet/index.js +1 -1
  231. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  232. package/dist/components/slot-grid/index.js +1 -1
  233. package/dist/components/social-sign-in-button/index.js +1 -1
  234. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +4 -2
  235. package/dist/components/streaming-text/index.js +1 -1
  236. package/dist/components/task-card/index.js +1 -1
  237. package/dist/components/task-editor/index.js +1 -1
  238. package/dist/components/task-tray/index.js +1 -1
  239. package/dist/components/tasks-panel/index.js +1 -1
  240. package/dist/components/theme-toggle/index.js +1 -1
  241. package/dist/components/toast/index.js +1 -1
  242. package/dist/components/token-insert-menu/index.js +1 -1
  243. package/dist/components/tool-rail/index.js +1 -1
  244. package/dist/components/tooth-scheme/index.js +1 -1
  245. package/dist/components/unit-converter/index.js +1 -1
  246. package/dist/components/voice-control-panel/index.js +1 -1
  247. package/dist/components/wallet-pay-button/index.js +1 -1
  248. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +4 -2
  249. package/dist/components/warning-stack/index.js +1 -1
  250. package/dist/components/widget-picker/index.js +1 -1
  251. package/dist/components/workflow/index.js +1 -1
  252. package/dist/host-compat.css +4 -1
  253. package/dist/i18n/locales/ar.d.ts +67 -0
  254. package/dist/i18n/locales/ar.js +67 -0
  255. package/dist/i18n/locales/de.d.ts +40 -0
  256. package/dist/i18n/locales/de.js +40 -0
  257. package/dist/i18n/locales/el.d.ts +40 -0
  258. package/dist/i18n/locales/el.js +40 -0
  259. package/dist/i18n/locales/en.d.ts +40 -0
  260. package/dist/i18n/locales/en.js +43 -0
  261. package/dist/i18n/locales/es.d.ts +40 -0
  262. package/dist/i18n/locales/es.js +40 -0
  263. package/dist/i18n/locales/fr.d.ts +40 -0
  264. package/dist/i18n/locales/fr.js +40 -0
  265. package/dist/i18n/locales/hi.d.ts +40 -0
  266. package/dist/i18n/locales/hi.js +40 -0
  267. package/dist/i18n/locales/it.d.ts +40 -0
  268. package/dist/i18n/locales/it.js +40 -0
  269. package/dist/i18n/locales/ja.d.ts +40 -0
  270. package/dist/i18n/locales/ja.js +40 -0
  271. package/dist/i18n/locales/nl.d.ts +40 -0
  272. package/dist/i18n/locales/nl.js +40 -0
  273. package/dist/i18n/locales/pl.d.ts +49 -0
  274. package/dist/i18n/locales/pl.js +49 -0
  275. package/dist/i18n/locales/pt.d.ts +40 -0
  276. package/dist/i18n/locales/pt.js +40 -0
  277. package/dist/i18n/locales/ro.d.ts +49 -0
  278. package/dist/i18n/locales/ro.js +49 -0
  279. package/dist/i18n/locales/ru.d.ts +49 -0
  280. package/dist/i18n/locales/ru.js +49 -0
  281. package/dist/i18n/locales/sq.d.ts +40 -0
  282. package/dist/i18n/locales/sq.js +40 -0
  283. package/dist/i18n/locales/sv.d.ts +40 -0
  284. package/dist/i18n/locales/sv.js +40 -0
  285. package/dist/i18n/locales/tr.d.ts +40 -0
  286. package/dist/i18n/locales/tr.js +40 -0
  287. package/dist/i18n/locales/zh.d.ts +40 -0
  288. package/dist/i18n/locales/zh.js +40 -0
  289. package/dist/index.js +214 -213
  290. package/dist/locales/ar.json +67 -0
  291. package/dist/locales/de.json +40 -0
  292. package/dist/locales/el.json +40 -0
  293. package/dist/locales/en.json +40 -0
  294. package/dist/locales/es.json +40 -0
  295. package/dist/locales/fr.json +40 -0
  296. package/dist/locales/hi.json +40 -0
  297. package/dist/locales/it.json +40 -0
  298. package/dist/locales/ja.json +40 -0
  299. package/dist/locales/nl.json +40 -0
  300. package/dist/locales/pl.json +49 -0
  301. package/dist/locales/pt.json +40 -0
  302. package/dist/locales/ro.json +49 -0
  303. package/dist/locales/ru.json +49 -0
  304. package/dist/locales/sq.json +40 -0
  305. package/dist/locales/sv.json +40 -0
  306. package/dist/locales/tr.json +40 -0
  307. package/dist/locales/zh.json +40 -0
  308. package/dist/patterns/alia-assistant/index.js +1 -1
  309. package/dist/patterns/anamnesis/index.js +1 -1
  310. package/dist/patterns/calendar/calendar-appointment-editor-dialog.d.ts +19 -0
  311. package/dist/patterns/calendar/calendar-custom-recurrence.d.ts +54 -0
  312. package/dist/patterns/calendar/calendar.model.d.ts +35 -1
  313. package/dist/patterns/calendar/calendar.sheets.d.ts +11 -0
  314. package/dist/patterns/calendar/index.d.ts +3 -1
  315. package/dist/patterns/calendar/index.js +18 -17
  316. package/dist/patterns/error-page/index.js +1 -1
  317. package/dist/patterns/forgot-password-form/index.js +1 -1
  318. package/dist/patterns/help-me-write-templates/index.js +2 -2
  319. package/dist/patterns/login-form/index.js +1 -1
  320. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  321. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  322. package/dist/patterns/registration-form/index.js +1 -1
  323. package/dist/patterns/signature-request/index.js +1 -1
  324. package/dist/patterns/signed-out-frame/index.js +1 -1
  325. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  326. package/dist/tokens.css +1 -1
  327. package/package.json +1 -1
  328. package/dist/_chunks/calendar-workspace-Ct8_454k.js +0 -10593
  329. package/dist/_chunks/sign-in-with-alfadocs-button-CIv0GgeA.js +0 -49
@@ -1,17 +1,17 @@
1
- import { jsx as o, jsxs as k, Fragment as De } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as k, Fragment as De } from "react/jsx-runtime";
2
2
  import { useState as $, useRef as x, useEffect as $e, forwardRef as At, useId as _t, useMemo as Fe } from "react";
3
3
  import { c as ht } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as gt } from "react-i18next";
5
5
  import { A as M } from "./alert-9kEwDza3.js";
6
- import { B as Me } from "./button-D-MQxsA_.js";
7
- import { I as We } from "./icon-button-C_1TgRiK.js";
6
+ import { B as Me } from "./button-DohK_Ak_.js";
7
+ import { I as We } from "./icon-button-S8_weU3g.js";
8
8
  import { C as Qe } from "./combobox-vF9O-QoG.js";
9
- import { D as ce } from "./dialog-D6fkpRc4.js";
9
+ import { D as ce } from "./dialog-C7RWaH08.js";
10
10
  import { D as Bt } from "./date-picker-KcoNNsM0.js";
11
11
  import { F as H } from "./form-field-Ani72sVY.js";
12
- import { I as Ft } from "./icon-button-group-NIHji7_y.js";
12
+ import { I as Ft } from "./icon-button-group-CRKFR48b.js";
13
13
  import { P as Pt } from "./panel-header-CbtlTe85.js";
14
- import { P as Ot } from "./panel-subview-BPU7220K.js";
14
+ import { P as Ot } from "./panel-subview-DCyvn-49.js";
15
15
  import { R as Pe } from "./radio-BZQs6_36.js";
16
16
  import { R as jt } from "./radio-group-ChIKyeSJ.js";
17
17
  import { S as Mt } from "./scroll-area-CY5SLYNw.js";
@@ -25,7 +25,7 @@ import { u as Vt } from "./registry-DvAUVLHh.js";
25
25
  import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
26
26
  import { c as Ut } from "./compose-refs-C0k0tdqF.js";
27
27
  import { n as Wt } from "./normalize-diacritics-BNGbFNlJ.js";
28
- import { p as Kt, P as Ht } from "./privacy-mask-CCz9zuIh.js";
28
+ import { p as Kt, P as Ht } from "./privacy-mask-BDVkikTm.js";
29
29
  import { g as je, h as Gt } from "./handled-rejection-6gqCf5vt.js";
30
30
  import { L as Qt } from "./lock-ClAFG1gy.js";
31
31
  import { X as Yt } from "./x-B5YnXwCz.js";
@@ -35,25 +35,25 @@ import { B as Jt } from "./building-2-D33bLCWL.js";
35
35
  import { S as Zt } from "./stethoscope-sZXGC43m.js";
36
36
  import { T as dt } from "./trash-2-uumy3fy1.js";
37
37
  import { S as ct } from "./square-check-big-dj0o8yA3.js";
38
- import { L as eo } from "./loader-circle-BECIU_8N.js";
38
+ import { L as en } from "./loader-circle-BECIU_8N.js";
39
39
  /**
40
40
  * @license lucide-react v1.22.0 - ISC
41
41
  *
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
44
  */
45
- const to = [
45
+ const tn = [
46
46
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
47
47
  ["path", { d: "M8.35 2.69A10 10 0 0 1 21.3 15.65", key: "1pfsoa" }],
48
48
  ["path", { d: "M19.08 19.08A10 10 0 1 1 4.92 4.92", key: "1ablyi" }]
49
- ], oo = vt("circle-off", to);
49
+ ], nn = vt("circle-off", tn);
50
50
  /**
51
51
  * @license lucide-react v1.22.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
55
  */
56
- const no = [
56
+ const on = [
57
57
  [
58
58
  "path",
59
59
  {
@@ -63,11 +63,11 @@ const no = [
63
63
  ],
64
64
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
65
65
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
66
- ], ao = vt("save", no), ro = [
67
- "ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:h-8",
68
- "ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:rounded-[var(--radius-md)]",
69
- "ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:[min-block-size:var(--accessible-target-floor,auto)]",
70
- "ds:max-sm:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:[min-block-size:var(--min-target-size)]",
66
+ ], an = vt("save", on), rn = [
67
+ "ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:h-8",
68
+ "ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:rounded-[var(--radius-md)]",
69
+ "ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:[min-block-size:var(--accessible-target-floor,auto)]",
70
+ "ds:max-sm:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:[min-block-size:var(--min-target-size)]",
71
71
  /* Multi-line notes keep their height but share the corners. */
72
72
  "ds:[&_[data-component=text-area]_textarea]:rounded-[var(--radius-md)]",
73
73
  /* The time field's hour and minute segments are 32px at the kit default;
@@ -75,26 +75,26 @@ const no = [
75
75
  and get the default back wherever the field is raised. */
76
76
  "ds:[&_[data-component=time-picker]_[role=spinbutton]]:h-[calc(var(--ds-spacing)*(6+2*var(--accessible-on,0)))]",
77
77
  "ds:max-sm:[&_[data-component=time-picker]_[role=spinbutton]]:h-8"
78
- ].join(" "), io = [
78
+ ].join(" "), sn = [
79
79
  "ds:h-[var(--accessible-auto,calc(var(--ds-spacing)*8))] ds:[&_[role=radio]]:[min-block-size:var(--accessible-target-floor,0px)]",
80
80
  "ds:max-sm:h-auto ds:max-sm:[&_[role=radio]]:min-h-[var(--min-target-size)]"
81
81
  ].join(" ");
82
- function so({
83
- patients: n = [],
82
+ function dn({
83
+ patients: o = [],
84
84
  searchPatients: c,
85
85
  ...I
86
86
  }) {
87
87
  if (c)
88
- return /* @__PURE__ */ o(co, { ...I, searchPatients: c });
89
- const { value: y, onValueChange: B, selectedLabel: A, placeholder: Y, size: C, disabled: X } = I;
90
- return /* @__PURE__ */ o(
88
+ return /* @__PURE__ */ n(cn, { ...I, searchPatients: c });
89
+ const { value: b, onValueChange: B, selectedLabel: A, placeholder: Y, size: C, disabled: X } = I;
90
+ return /* @__PURE__ */ n(
91
91
  Qe,
92
92
  {
93
- value: y,
93
+ value: b,
94
94
  onValueChange: B,
95
95
  options: [
96
- ...y && !n.some((D) => D.id === y) ? [{ value: y, label: A ?? "" }] : [],
97
- ...n.map((D) => ({ value: D.id, label: D.name }))
96
+ ...b && !o.some((D) => D.id === b) ? [{ value: b, label: A ?? "" }] : [],
97
+ ...o.map((D) => ({ value: D.id, label: D.name }))
98
98
  ],
99
99
  placeholder: Y,
100
100
  size: C,
@@ -103,11 +103,11 @@ function so({
103
103
  }
104
104
  );
105
105
  }
106
- function co({
107
- value: n,
106
+ function cn({
107
+ value: o,
108
108
  onValueChange: c,
109
109
  selectedLabel: I,
110
- placeholder: y,
110
+ placeholder: b,
111
111
  size: B,
112
112
  disabled: A,
113
113
  searchPatients: Y
@@ -119,8 +119,8 @@ function co({
119
119
  ee({ ...S, status: "loading", patients: [] });
120
120
  const le = setTimeout(() => {
121
121
  Promise.resolve().then(() => Y(P, { signal: m.signal })).then(
122
- (ne) => {
123
- m.signal.aborted || ee({ ...S, status: "ready", patients: ne });
122
+ (oe) => {
123
+ m.signal.aborted || ee({ ...S, status: "ready", patients: oe });
124
124
  },
125
125
  () => {
126
126
  m.signal.aborted || ee({ ...S, status: "error", patients: [] });
@@ -131,13 +131,13 @@ function co({
131
131
  clearTimeout(le), m.abort();
132
132
  };
133
133
  }, [P, Y, J]);
134
- const V = (N == null ? void 0 : N.query) === P && N.source === Y, L = P ? V ? N.status : "loading" : "idle", te = V && L === "ready" ? N.patients : [], oe = L === "loading" ? C("inputs.search.loading") : L === "error" ? C("emptyState.error.description") : L === "idle" ? y : te.length === 0 ? C("inputs.combobox.empty") : "", O = te.map((m) => ({
134
+ const V = (N == null ? void 0 : N.query) === P && N.source === Y, L = P ? V ? N.status : "loading" : "idle", te = V && L === "ready" ? N.patients : [], ne = L === "loading" ? C("inputs.search.loading") : L === "error" ? C("emptyState.error.description") : L === "idle" ? b : te.length === 0 ? C("inputs.combobox.empty") : "", O = te.map((m) => ({
135
135
  value: m.id,
136
136
  label: m.name
137
137
  }));
138
- return n && !te.some((m) => m.id === n) && O.push({
139
- value: n,
140
- label: (F == null ? void 0 : F.id) === n ? F.name : I ?? ""
138
+ return o && !te.some((m) => m.id === o) && O.push({
139
+ value: o,
140
+ label: (F == null ? void 0 : F.id) === o ? F.name : I ?? ""
141
141
  }), /* @__PURE__ */ k(
142
142
  "div",
143
143
  {
@@ -145,12 +145,12 @@ function co({
145
145
  "data-component": "patient-picker",
146
146
  "data-status": L,
147
147
  children: [
148
- /* @__PURE__ */ o(
148
+ /* @__PURE__ */ n(
149
149
  Qe,
150
150
  {
151
151
  ref: q,
152
152
  options: O,
153
- value: n,
153
+ value: o,
154
154
  onValueChange: (m) => {
155
155
  se(
156
156
  (S) => te.find((le) => le.id === m) ?? ((S == null ? void 0 : S.id) === m ? S : void 0)
@@ -163,13 +163,13 @@ function co({
163
163
  filter: (m) => !P || te.some((S) => Wt(S.id) === m) ? 1 : 0,
164
164
  size: B,
165
165
  disabled: A,
166
- placeholder: y,
167
- emptyMessage: oe || void 0,
166
+ placeholder: b,
167
+ emptyMessage: ne || void 0,
168
168
  clearable: !0
169
169
  }
170
170
  ),
171
- /* @__PURE__ */ o("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: oe }),
172
- L === "error" ? /* @__PURE__ */ o(
171
+ /* @__PURE__ */ n("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: ne }),
172
+ L === "error" ? /* @__PURE__ */ n(
173
173
  Me,
174
174
  {
175
175
  size: "sm",
@@ -185,7 +185,7 @@ function co({
185
185
  }
186
186
  );
187
187
  }
188
- const lo = {
188
+ const ln = {
189
189
  id: "task-editor",
190
190
  // set_value backs set_fields and set_done; submit backs save; dismiss
191
191
  // backs cancel.
@@ -195,19 +195,19 @@ const lo = {
195
195
  type: "'loading' | 'ready' | 'error' | 'locked' | 'withheld'",
196
196
  descriptionKey: "ui.agent.taskEditor.state.status",
197
197
  description: "Where the form is: loading the task, ready, failed to load, locked (edit mode with nothing to load) or withheld behind the privacy notice. Writes need 'ready'.",
198
- read: (n) => n.getStatus()
198
+ read: (o) => o.getStatus()
199
199
  },
200
200
  draft: {
201
201
  type: "{ mode: string; dateIso: string | null; about: string; patientId: string | null; companyId: string | null; operatorId: string | null; typeId: string | null; assigneeId: string | null; done: boolean; hasNote: boolean; noteLength: number }",
202
202
  descriptionKey: "ui.agent.taskEditor.state.draft",
203
203
  description: "The draft as Save would send it: ids and structure only, never the note body. done is the last value the host confirmed.",
204
- read: (n) => n.getDraft()
204
+ read: (o) => o.getDraft()
205
205
  },
206
206
  canSave: {
207
207
  type: "boolean",
208
208
  descriptionKey: "ui.agent.taskEditor.state.canSave",
209
209
  description: "Whether save would reach the host now: the form is ready, the note is filled, a chosen counterpart has an id and no write is pending.",
210
- read: (n) => n.canSave()
210
+ read: (o) => o.canSave()
211
211
  }
212
212
  },
213
213
  actions: {
@@ -238,8 +238,8 @@ const lo = {
238
238
  ],
239
239
  descriptionKey: "ui.agent.taskEditor.actions.setFields",
240
240
  description: "Set draft fields. Ids must come from the host lists, a patient the host search returned, or equal the stored one. At most one counterpart per call, and it selects its branch; assigneeId null is nobody. Nothing is saved.",
241
- invoke: (n, c) => {
242
- n.setFields(c);
241
+ invoke: (o, c) => {
242
+ o.setFields(c);
243
243
  }
244
244
  },
245
245
  save: {
@@ -248,7 +248,7 @@ const lo = {
248
248
  openWorld: !0,
249
249
  descriptionKey: "ui.agent.taskEditor.actions.save",
250
250
  description: "Save the task through the host. Resolves once the write lands and rejects with the host error, which the form also shows.",
251
- invoke: (n) => n.save()
251
+ invoke: (o) => o.save()
252
252
  },
253
253
  set_done: {
254
254
  safety: "write",
@@ -266,7 +266,7 @@ const lo = {
266
266
  ],
267
267
  descriptionKey: "ui.agent.taskEditor.actions.setDone",
268
268
  description: "Mark an existing task done or not done through the host. A rejection rolls the switch back.",
269
- invoke: (n, c) => n.setDone(c.done)
269
+ invoke: (o, c) => o.setDone(c.done)
270
270
  },
271
271
  delete: {
272
272
  safety: "destructive",
@@ -274,15 +274,15 @@ const lo = {
274
274
  openWorld: !0,
275
275
  descriptionKey: "ui.agent.taskEditor.actions.delete",
276
276
  description: "Delete the task through the host, without the confirmation dialog. Resolves once the delete lands.",
277
- invoke: (n) => n.deleteTask()
277
+ invoke: (o) => o.deleteTask()
278
278
  },
279
279
  cancel: {
280
280
  safety: "destructive",
281
281
  errors: ["A save or delete is in flight: wait for it to settle."],
282
282
  descriptionKey: "ui.agent.taskEditor.actions.cancel",
283
283
  description: "Close the editor without saving. Anything typed since the last save is lost. Refused while a save or delete is in flight.",
284
- invoke: (n) => {
285
- n.cancel();
284
+ invoke: (o) => {
285
+ o.cancel();
286
286
  }
287
287
  }
288
288
  },
@@ -311,14 +311,14 @@ const lo = {
311
311
  confirmDeleteOpen: !1,
312
312
  accepted: !1
313
313
  };
314
- function uo(n) {
315
- return n.patientId ? "patient" : n.companyId ? "company" : n.operatorId ? "operator" : "nobody";
314
+ function un(o) {
315
+ return o.patientId ? "patient" : o.companyId ? "company" : o.operatorId ? "operator" : "nobody";
316
316
  }
317
- function Ye(n) {
318
- return { hours: n.getHours(), minutes: n.getMinutes() };
317
+ function Ye(o) {
318
+ return { hours: o.getHours(), minutes: o.getMinutes() };
319
319
  }
320
- function ut(n) {
321
- const c = n ?? /* @__PURE__ */ new Date();
320
+ function ut(o) {
321
+ const c = o ?? /* @__PURE__ */ new Date();
322
322
  return {
323
323
  date: c,
324
324
  time: Ye(c),
@@ -331,33 +331,33 @@ function ut(n) {
331
331
  companyId: ""
332
332
  };
333
333
  }
334
- function po(n) {
335
- const c = new Date(n.dateIso);
334
+ function pn(o) {
335
+ const c = new Date(o.dateIso);
336
336
  return {
337
337
  date: c,
338
338
  time: Ye(c),
339
- note: n.note,
339
+ note: o.note,
340
340
  /* `||`, not `??`: a host's '' is unset, like patient and company. */
341
- operatorId: n.operatorId || z,
341
+ operatorId: o.operatorId || z,
342
342
  /* A stored type wins. With none, '' falls through to the first entry. */
343
- typeId: n.typeId ?? "",
343
+ typeId: o.typeId ?? "",
344
344
  /* `||` too: '' would become a Select option with an empty value. */
345
- assigneeId: n.assigneeId || z,
346
- about: uo(n),
347
- patientId: n.patientId ?? "",
348
- companyId: n.companyId ?? ""
345
+ assigneeId: o.assigneeId || z,
346
+ about: un(o),
347
+ patientId: o.patientId ?? "",
348
+ companyId: o.companyId ?? ""
349
349
  };
350
350
  }
351
- const mo = [
351
+ const mn = [
352
352
  ["patientId", "patient"],
353
353
  ["companyId", "company"],
354
354
  ["operatorId", "operator"]
355
355
  ];
356
- function fo({
357
- mode: n,
356
+ function fn({
357
+ mode: o,
358
358
  taskId: c,
359
359
  initialDate: I,
360
- active: y,
360
+ active: b,
361
361
  taskTypes: B,
362
362
  assignees: A,
363
363
  companies: Y,
@@ -375,14 +375,14 @@ function fo({
375
375
  readOnly: V,
376
376
  withheld: L,
377
377
  maskPatient: te,
378
- fallbackError: oe
378
+ fallbackError: ne
379
379
  }) {
380
380
  var xe;
381
- const O = n === "edit", [m, S] = $(0), [le, ne] = $(y);
382
- le !== y && (ne(y), y && S((e) => e + 1));
383
- const U = `${n}|${c ?? ""}|${m}`, [p, fe] = $(
381
+ const O = o === "edit", [m, S] = $(0), [le, oe] = $(b);
382
+ le !== b && (oe(b), b && S((e) => e + 1));
383
+ const U = `${o}|${c ?? ""}|${m}`, [p, fe] = $(
384
384
  () => ut(I)
385
- ), [G, Ee] = $(lt), [b, a] = $(), w = (e) => Ee((i) => ({ ...i, ...e })), he = (e) => fe((i) => ({ ...i, ...e })), [ge, ae] = $(U);
385
+ ), [G, Ee] = $(lt), [y, a] = $(), w = (e) => Ee((i) => ({ ...i, ...e })), he = (e) => fe((i) => ({ ...i, ...e })), [ge, ae] = $(U);
386
386
  ge !== U && (ae(U), fe(ut(I)), Ee(lt), a(void 0));
387
387
  const _ = x({
388
388
  subject: U,
@@ -406,10 +406,10 @@ function fo({
406
406
  ue.current = Z;
407
407
  const d = !!Z, [R, l] = $(0), [s, f] = $(null), ke = x(s);
408
408
  ke.current = s;
409
- const ye = y && O && !!c && d && !L;
409
+ const be = b && O && !!c && d && !L;
410
410
  $e(() => {
411
411
  const e = ue.current;
412
- if (!ye || !c || !e) return;
412
+ if (!be || !c || !e) return;
413
413
  const i = _.current, h = ke.current;
414
414
  if ((h == null ? void 0 : h.subject) === i.subject && h.status === "ready")
415
415
  return;
@@ -422,21 +422,21 @@ function fo({
422
422
  )
423
423
  ).then(
424
424
  (g) => {
425
- u.signal.aborted || !T(i) || (fe(po(g)), w({ done: g.done, confirmedDone: g.done }), a(g), f({ subject: i.subject, status: "ready" }));
425
+ u.signal.aborted || !T(i) || (fe(pn(g)), w({ done: g.done, confirmedDone: g.done }), a(g), f({ subject: i.subject, status: "ready" }));
426
426
  },
427
427
  (g) => {
428
428
  u.signal.aborted || !T(i) || f({
429
429
  subject: i.subject,
430
430
  status: "error",
431
- message: je(g, oe)
431
+ message: je(g, ne)
432
432
  });
433
433
  }
434
434
  ), () => u.abort();
435
- }, [ye, U, R]);
435
+ }, [be, U, R]);
436
436
  const j = O ? !c || !d ? "locked" : L ? "withheld" : (s == null ? void 0 : s.subject) === U ? s.status : "loading" : "ready", Q = () => {
437
437
  j === "error" && (f(null), l((e) => e + 1));
438
438
  }, pe = p.typeId || (((xe = B[0]) == null ? void 0 : xe.id) ?? ""), ze = p.about === "nobody" || p.about === "patient" && p.patientId !== "" || p.about === "company" && p.companyId !== "" || p.about === "operator" && p.operatorId !== z, me = !V && p.note.trim() !== "" && p.date !== void 0 && ze && /* Required whenever the host offers a list. */
439
- (B.length === 0 || pe !== "") && !G.saving && !G.donePending, be = O ? se : F, Se = () => {
439
+ (B.length === 0 || pe !== "") && !G.saving && !G.donePending, ye = O ? se : F, Se = () => {
440
440
  const { date: e, time: i } = p;
441
441
  return e ? {
442
442
  dateIso: new Date(
@@ -467,7 +467,7 @@ function fo({
467
467
  }, E = (e) => Gt(new Error(`TaskEditor: ${e}`)), Te = () => {
468
468
  const e = _.current;
469
469
  if (j !== "ready") return E(`cannot save while ${j}.`);
470
- if (!be) return E("the host gave no save seam.");
470
+ if (!ye) return E("the host gave no save seam.");
471
471
  if (e.accepted) return E("this task was already saved.");
472
472
  if (e.deleting) return E("a delete is in flight.");
473
473
  if (e.saving || !me) return E("the task cannot be saved.");
@@ -489,7 +489,7 @@ function fo({
489
489
  e.accepted = !0, T(e) && (w({ accepted: !0 }), g && (q == null || q(g)));
490
490
  }
491
491
  } catch (g) {
492
- throw T(e) && w({ saveError: je(g, oe) }), g;
492
+ throw T(e) && w({ saveError: je(g, ne) }), g;
493
493
  } finally {
494
494
  e.saving = !1, T(e) && w({ saving: !1 });
495
495
  }
@@ -516,7 +516,7 @@ function fo({
516
516
  } catch (W) {
517
517
  throw T(i) && w({
518
518
  done: h,
519
- doneError: je(W, oe)
519
+ doneError: je(W, ne)
520
520
  }), W;
521
521
  } finally {
522
522
  i.donePending = !1, T(i) && w({ donePending: !1 });
@@ -537,7 +537,7 @@ function fo({
537
537
  try {
538
538
  await N(i), e.accepted = !0, T(e) && (w({ accepted: !0, confirmDeleteOpen: !1 }), P == null || P(i));
539
539
  } catch (u) {
540
- throw T(e) && w({ deleteError: je(u, oe) }), u;
540
+ throw T(e) && w({ deleteError: je(u, ne) }), u;
541
541
  } finally {
542
542
  e.deleting = !1, T(e) && w({ deleting: !1 });
543
543
  }
@@ -552,7 +552,7 @@ function fo({
552
552
  if (j !== "ready")
553
553
  throw new Error(`TaskEditor: cannot set fields while ${j}.`);
554
554
  if (V) throw new Error("TaskEditor: the task is read-only.");
555
- const i = mo.filter(([W]) => e[W] !== void 0);
555
+ const i = mn.filter(([W]) => e[W] !== void 0);
556
556
  if (i.length > 1)
557
557
  throw new Error(
558
558
  "TaskEditor: set at most one of patientId, companyId and operatorId."
@@ -562,18 +562,18 @@ function fo({
562
562
  throw new Error(
563
563
  `TaskEditor: about "${e.about}" does not match the ${h} id.`
564
564
  );
565
- if (e.typeId !== void 0 && !de(B, e.typeId, b == null ? void 0 : b.typeId))
565
+ if (e.typeId !== void 0 && !de(B, e.typeId, y == null ? void 0 : y.typeId))
566
566
  throw new Error(`TaskEditor: unknown typeId "${e.typeId}".`);
567
- if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(A, e.assigneeId, b == null ? void 0 : b.assigneeId))
567
+ if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(A, e.assigneeId, y == null ? void 0 : y.assigneeId))
568
568
  throw new Error(`TaskEditor: unknown assigneeId "${e.assigneeId}".`);
569
- if (e.companyId !== void 0 && !de(Y, e.companyId, b == null ? void 0 : b.companyId))
569
+ if (e.companyId !== void 0 && !de(Y, e.companyId, y == null ? void 0 : y.companyId))
570
570
  throw new Error(`TaskEditor: unknown companyId "${e.companyId}".`);
571
- if (e.operatorId !== void 0 && !de(C, e.operatorId, b == null ? void 0 : b.operatorId))
571
+ if (e.operatorId !== void 0 && !de(C, e.operatorId, y == null ? void 0 : y.operatorId))
572
572
  throw new Error(`TaskEditor: unknown operatorId "${e.operatorId}".`);
573
573
  if (e.patientId !== void 0) {
574
574
  if (te)
575
575
  throw new Error("TaskEditor: no patient can be set in privacy mode.");
576
- if (!(de(X, e.patientId, b == null ? void 0 : b.patientId) || D.has(e.patientId) || (J == null ? void 0 : J(e.patientId)) !== void 0))
576
+ if (!(de(X, e.patientId, y == null ? void 0 : y.patientId) || D.has(e.patientId) || (J == null ? void 0 : J(e.patientId)) !== void 0))
577
577
  throw new Error(`TaskEditor: unknown patientId "${e.patientId}".`);
578
578
  }
579
579
  const u = {};
@@ -587,7 +587,7 @@ function fo({
587
587
  }, _e = () => {
588
588
  const e = Se();
589
589
  return {
590
- mode: n,
590
+ mode: o,
591
591
  dateIso: (e == null ? void 0 : e.dateIso) ?? null,
592
592
  about: p.about,
593
593
  patientId: (e == null ? void 0 : e.patientId) ?? null,
@@ -606,13 +606,13 @@ function fo({
606
606
  retry: Q,
607
607
  fields: p,
608
608
  patchFields: he,
609
- stored: b,
609
+ stored: y,
610
610
  chosenTypeId: pe,
611
611
  canSave: me,
612
612
  /** What the agent's `canSave` reports: the button's rule plus the
613
613
  * status, the seam and a save that has not landed yet. */
614
- agentCanSave: j === "ready" && !!be && me && !G.accepted,
615
- showSave: !V && !!be,
614
+ agentCanSave: j === "ready" && !!ye && me && !G.accepted,
615
+ showSave: !V && !!ye,
616
616
  showDelete: O && !V && !!N && !!c,
617
617
  showDone: O && !V && !!ee,
618
618
  ui: G,
@@ -641,7 +641,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
641
641
  },
642
642
  defaultVariants: { variant: "panel" }
643
643
  }), mt = ht(
644
- `ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${ro}`,
644
+ `ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${rn}`,
645
645
  {
646
646
  variants: {
647
647
  /** 'form': the fields in a column. 'notice': the locked notice. */
@@ -652,24 +652,24 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
652
652
  },
653
653
  defaultVariants: { layout: "form" }
654
654
  }
655
- ), r = (n) => `calendarWorkspace.taskEditor.${n}`, ho = (n, c, I) => I.includes(c) ? 1 : 0, Ne = [], Ge = (n, c) => Array.from(n.querySelectorAll("[data-task-id]")).filter(
655
+ ), r = (o) => `calendarWorkspace.taskEditor.${o}`, hn = (o, c, I) => I.includes(c) ? 1 : 0, Ne = [], Ge = (o, c) => Array.from(o.querySelectorAll("[data-task-id]")).filter(
656
656
  (I) => !c.contains(I)
657
- ), go = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (n, c) => {
658
- if (!n) return [];
657
+ ), gn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o, c) => {
658
+ if (!o) return [];
659
659
  const I = Array.from(
660
- n.querySelectorAll("[data-action]")
660
+ o.querySelectorAll("[data-action]")
661
661
  );
662
662
  return [
663
- ...I.filter((y) => c && y.dataset.action === c),
664
- ...I.filter((y) => y.dataset.action === "open-task"),
665
- ...Array.from(n.querySelectorAll(go))
663
+ ...I.filter((b) => c && b.dataset.action === c),
664
+ ...I.filter((b) => b.dataset.action === "open-task"),
665
+ ...Array.from(o.querySelectorAll(gn))
666
666
  ];
667
- }, vo = At(
667
+ }, vn = At(
668
668
  ({
669
- id: n,
669
+ id: o,
670
670
  mode: c,
671
671
  taskId: I,
672
- initialDate: y,
672
+ initialDate: b,
673
673
  variant: B = "panel",
674
674
  open: A = !0,
675
675
  onExited: Y,
@@ -687,22 +687,22 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
687
687
  loadTask: V,
688
688
  onCreateTask: L,
689
689
  onUpdateTask: te,
690
- onDeleteTask: oe,
690
+ onDeleteTask: ne,
691
691
  onSetTaskDone: O,
692
692
  onCancel: m,
693
693
  onSaved: S,
694
694
  onDeleted: le,
695
- readOnly: ne = !1,
695
+ readOnly: oe = !1,
696
696
  privacy: U = !1,
697
697
  privacyMode: p = "notice",
698
698
  onPrivacyOff: fe,
699
699
  className: G,
700
700
  ...Ee
701
- }, b) => {
702
- const { t: a } = gt("ui"), w = _t(), he = n ?? w, ge = c === "edit", ae = B === "subview", _ = !ae || A, ve = U && ge && p === "notice", T = U && !ve, [ue] = $(() => /* @__PURE__ */ new Map()), d = fo({
701
+ }, y) => {
702
+ const { t: a } = gt("ui"), w = _t(), he = o ?? w, ge = c === "edit", ae = B === "subview", _ = !ae || A, ve = U && ge && p === "notice", T = U && !ve, [ue] = $(() => /* @__PURE__ */ new Map()), d = fn({
703
703
  mode: c,
704
704
  taskId: I,
705
- initialDate: y,
705
+ initialDate: b,
706
706
  active: _,
707
707
  taskTypes: C,
708
708
  assignees: X,
@@ -714,24 +714,24 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
714
714
  loadTask: V,
715
715
  onCreateTask: L,
716
716
  onUpdateTask: te,
717
- onDeleteTask: oe,
717
+ onDeleteTask: ne,
718
718
  onSetTaskDone: O,
719
719
  onSaved: S,
720
720
  onDeleted: le,
721
- readOnly: ne,
721
+ readOnly: oe,
722
722
  withheld: ve,
723
723
  maskPatient: T,
724
724
  fallbackError: a("emptyState.error.title")
725
725
  }), { status: R, fields: l, ui: s, stored: f } = d, ke = x(F);
726
726
  ke.current = F;
727
- const ye = !!F, j = Fe(
728
- () => ye ? async (t, v) => {
727
+ const be = !!F, j = Fe(
728
+ () => be ? async (t, v) => {
729
729
  const K = await ke.current(t, v);
730
730
  for (const ie of K)
731
731
  ue.set(ie.id, ie.name);
732
732
  return K;
733
733
  } : void 0,
734
- [ye, ue]
734
+ [be, ue]
735
735
  ), Q = x(d);
736
736
  Q.current = d;
737
737
  const pe = x(m);
@@ -753,10 +753,10 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
753
753
  }),
754
754
  []
755
755
  );
756
- Vt(lo, _ ? ze : null, he);
757
- const me = x(null), be = Fe(
758
- () => Ut(b, me),
759
- [b]
756
+ Vt(ln, _ ? ze : null, he);
757
+ const me = x(null), ye = Fe(
758
+ () => Ut(y, me),
759
+ [y]
760
760
  ), Se = x(null), E = x(null), Te = x(!1);
761
761
  ae && A && !Te.current && (E.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null), Te.current = ae && A;
762
762
  const Re = x(A);
@@ -801,13 +801,13 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
801
801
  preventScroll: !0
802
802
  });
803
803
  }, [R]);
804
- const xe = a(r(ge ? "editTitle" : "title")), e = D.length > 0, i = J.length > 0, h = ye || Z.length > 0, u = Fe(
804
+ const xe = a(r(ge ? "editTitle" : "title")), e = D.length > 0, i = J.length > 0, h = be || Z.length > 0, u = Fe(
805
805
  () => D.map((t) => ({ value: t.id, label: t.label })),
806
806
  [D]
807
807
  ), g = (t) => {
808
808
  var v;
809
809
  return (N == null ? void 0 : N(t)) ?? ((v = Z.find((K) => K.id === t)) == null ? void 0 : v.name) ?? ue.get(t) ?? (t === (f == null ? void 0 : f.patientId) ? se : void 0) ?? a("calendarWorkspace.details.patientNotLoaded");
810
- }, W = (t) => t === (f == null ? void 0 : f.operatorId) && q ? q : a(r("operatorUnresolved"), { id: t }), yt = [
810
+ }, W = (t) => t === (f == null ? void 0 : f.operatorId) && q ? q : a(r("operatorUnresolved"), { id: t }), bt = [
811
811
  { value: z, label: a(r("operatorNone")) },
812
812
  ...J.map((t) => ({ value: t.id, label: t.label })),
813
813
  /* An operator the roster no longer lists is still a real link, so it
@@ -818,11 +818,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
818
818
  label: W(l.operatorId)
819
819
  }
820
820
  ] : []
821
- ], bt = C.some((t) => t.custom) && C.some((t) => !t.custom), It = [
821
+ ], yt = C.some((t) => t.custom) && C.some((t) => !t.custom), It = [
822
822
  ...C.map((t) => ({
823
823
  value: t.id,
824
824
  label: t.label,
825
- group: bt ? a(r(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
825
+ group: yt ? a(r(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
826
826
  })),
827
827
  /* An id the list no longer resolves is still a real link: offered as
828
828
  its own option so Save re-sends it. */
@@ -841,17 +841,17 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
841
841
  label: a(r("assigneeUnresolved"), { id: l.assigneeId })
842
842
  }
843
843
  ] : []
844
- ], re = l.about === "company" && l.companyId && !D.some((t) => t.id === l.companyId) ? l.companyId : void 0, Et = re && re === (f == null ? void 0 : f.companyId) && ee ? ee : a(r("companyUnresolved"), { id: re }), Xe = /* @__PURE__ */ k(M, { variant: "info", announce: "off", icon: /* @__PURE__ */ o(Qt, { "aria-hidden": "true" }), children: [
845
- /* @__PURE__ */ o(M.Title, { as: "p", children: a("calendarWorkspace.details.readOnlyTitle") }),
846
- /* @__PURE__ */ o(M.Description, { children: a(r("readOnlyBody")) })
844
+ ], re = l.about === "company" && l.companyId && !D.some((t) => t.id === l.companyId) ? l.companyId : void 0, Et = re && re === (f == null ? void 0 : f.companyId) && ee ? ee : a(r("companyUnresolved"), { id: re }), Xe = /* @__PURE__ */ k(M, { variant: "info", announce: "off", icon: /* @__PURE__ */ n(Qt, { "aria-hidden": "true" }), children: [
845
+ /* @__PURE__ */ n(M.Title, { as: "p", children: a("calendarWorkspace.details.readOnlyTitle") }),
846
+ /* @__PURE__ */ n(M.Description, { children: a(r("readOnlyBody")) })
847
847
  ] }), qe = s.saving || s.deleting, Je = () => {
848
848
  d.isBusy() || m();
849
- }, kt = /* @__PURE__ */ o(
849
+ }, kt = /* @__PURE__ */ n(
850
850
  We,
851
851
  {
852
852
  size: "sm",
853
853
  intent: "outline",
854
- icon: /* @__PURE__ */ o(Yt, { "aria-hidden": "true" }),
854
+ icon: /* @__PURE__ */ n(Yt, { "aria-hidden": "true" }),
855
855
  "aria-label": a(r("cancel")),
856
856
  tooltip: a(r("cancel")),
857
857
  "data-action": "cancel-task",
@@ -859,13 +859,13 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
859
859
  onClick: Je
860
860
  }
861
861
  ), Ve = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(De, { children: [
862
- t && d.showDelete ? /* @__PURE__ */ o(
862
+ t && d.showDelete ? /* @__PURE__ */ n(
863
863
  We,
864
864
  {
865
865
  ref: Se,
866
866
  size: "sm",
867
867
  intent: "destructiveOutline",
868
- icon: /* @__PURE__ */ o(dt, { "aria-hidden": "true" }),
868
+ icon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
869
869
  "aria-label": a(r("delete")),
870
870
  tooltip: a(r("delete")),
871
871
  "data-action": "delete-task",
@@ -881,18 +881,18 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
881
881
  className: "ds:ms-auto",
882
882
  children: [
883
883
  kt,
884
- t && d.showSave ? /* @__PURE__ */ o(
884
+ t && d.showSave ? /* @__PURE__ */ n(
885
885
  We,
886
886
  {
887
887
  size: "sm",
888
888
  intent: "primary",
889
- icon: s.saving ? /* @__PURE__ */ o(
890
- eo,
889
+ icon: s.saving ? /* @__PURE__ */ n(
890
+ en,
891
891
  {
892
892
  "aria-hidden": "true",
893
893
  className: "ds:animate-spin ds:motion-reduce:animate-none"
894
894
  }
895
- ) : /* @__PURE__ */ o(ao, { "aria-hidden": "true" }),
895
+ ) : /* @__PURE__ */ n(an, { "aria-hidden": "true" }),
896
896
  "aria-label": a(r("save")),
897
897
  tooltip: a(r("save")),
898
898
  disabled: !Ve && !d.canSave,
@@ -909,24 +909,24 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
909
909
  ),
910
910
  t && d.showSave ? (
911
911
  /* Out of flow, so it never moves the footer's two ends. */
912
- /* @__PURE__ */ o("span", { role: "status", className: "ds:sr-only", children: s.saving ? a(r("saving")) : "" })
912
+ /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? a(r("saving")) : "" })
913
913
  ) : null
914
914
  ] }), St = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
915
- /* @__PURE__ */ o("span", { role: "status", className: "ds:sr-only", children: a("common.loading") }),
915
+ /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("common.loading") }),
916
916
  /* @__PURE__ */ k(
917
917
  "div",
918
918
  {
919
919
  "aria-hidden": "true",
920
920
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
921
921
  children: [
922
- /* @__PURE__ */ o(
922
+ /* @__PURE__ */ n(
923
923
  He,
924
924
  {
925
925
  variant: "rounded",
926
926
  height: "calc(var(--spacing-xl) + var(--spacing-sm))"
927
927
  }
928
928
  ),
929
- /* @__PURE__ */ o(
929
+ /* @__PURE__ */ n(
930
930
  He,
931
931
  {
932
932
  variant: "rounded",
@@ -934,7 +934,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
934
934
  stagger: 1
935
935
  }
936
936
  ),
937
- /* @__PURE__ */ o(
937
+ /* @__PURE__ */ n(
938
938
  He,
939
939
  {
940
940
  variant: "rounded",
@@ -946,8 +946,8 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
946
946
  }
947
947
  )
948
948
  ] }), xt = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
949
- /* @__PURE__ */ o(M, { variant: "error", children: /* @__PURE__ */ o(M.Description, { children: d.loadError }) }),
950
- /* @__PURE__ */ o(
949
+ /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: d.loadError }) }),
950
+ /* @__PURE__ */ n(
951
951
  Me,
952
952
  {
953
953
  ref: de,
@@ -957,8 +957,8 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
957
957
  children: a("emptyState.error.cta")
958
958
  }
959
959
  )
960
- ] }), Ct = /* @__PURE__ */ o("fieldset", { disabled: !0, className: mt({ layout: "notice" }), children: Xe }), Dt = () => l.about !== "patient" ? null : T ? /* @__PURE__ */ o(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ o(Oe, { value: Kt(), disabled: !0, readOnly: !0 }) }) : h ? /* @__PURE__ */ o(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ o(
961
- so,
960
+ ] }), Ct = /* @__PURE__ */ n("fieldset", { disabled: !0, className: mt({ layout: "notice" }), children: Xe }), Dt = () => l.about !== "patient" ? null : T ? /* @__PURE__ */ n(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ n(Oe, { value: Kt(), disabled: !0, readOnly: !0 }) }) : h ? /* @__PURE__ */ n(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ n(
961
+ dn,
962
962
  {
963
963
  value: l.patientId,
964
964
  onValueChange: (t) => d.patchFields({ patientId: t }),
@@ -966,31 +966,31 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
966
966
  searchPatients: j,
967
967
  selectedLabel: l.patientId ? g(l.patientId) : void 0,
968
968
  placeholder: a("calendarWorkspace.editor.patientSearch"),
969
- disabled: ne
969
+ disabled: oe
970
970
  }
971
- ) }) : l.patientId ? /* @__PURE__ */ o(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ o(Oe, { value: g(l.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: ne, className: mt(), children: [
972
- ne ? Xe : null,
973
- /* @__PURE__ */ o(H, { label: a(r("date")), children: /* @__PURE__ */ o(
971
+ ) }) : l.patientId ? /* @__PURE__ */ n(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ n(Oe, { value: g(l.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: oe, className: mt(), children: [
972
+ oe ? Xe : null,
973
+ /* @__PURE__ */ n(H, { label: a(r("date")), children: /* @__PURE__ */ n(
974
974
  Bt,
975
975
  {
976
976
  value: l.date,
977
977
  onChange: (t) => d.patchFields({ date: t })
978
978
  }
979
979
  ) }),
980
- /* @__PURE__ */ o(H, { label: a(r("time")), children: /* @__PURE__ */ o(
980
+ /* @__PURE__ */ n(H, { label: a(r("time")), children: /* @__PURE__ */ n(
981
981
  qt,
982
982
  {
983
983
  value: l.time,
984
984
  onChange: (t) => d.patchFields({ time: t })
985
985
  }
986
986
  ) }),
987
- /* @__PURE__ */ o(
987
+ /* @__PURE__ */ n(
988
988
  H,
989
989
  {
990
990
  label: a(r("note")),
991
991
  required: !0,
992
992
  error: s.showError && l.note.trim() === "" ? a(r("noteRequired")) : void 0,
993
- children: /* @__PURE__ */ o(
993
+ children: /* @__PURE__ */ n(
994
994
  zt,
995
995
  {
996
996
  value: l.note,
@@ -1003,7 +1003,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1003
1003
  )
1004
1004
  }
1005
1005
  ),
1006
- C.length > 0 ? /* @__PURE__ */ o(H, { label: a(r("type")), required: !0, children: /* @__PURE__ */ o(
1006
+ C.length > 0 ? /* @__PURE__ */ n(H, { label: a(r("type")), required: !0, children: /* @__PURE__ */ n(
1007
1007
  Ke,
1008
1008
  {
1009
1009
  options: It,
@@ -1011,7 +1011,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1011
1011
  onValueChange: (t) => t && d.patchFields({ typeId: t })
1012
1012
  }
1013
1013
  ) }) : null,
1014
- X.length > 0 ? /* @__PURE__ */ o(H, { label: a(r("assignee")), children: /* @__PURE__ */ o(
1014
+ X.length > 0 ? /* @__PURE__ */ n(H, { label: a(r("assignee")), children: /* @__PURE__ */ n(
1015
1015
  Ke,
1016
1016
  {
1017
1017
  options: wt,
@@ -1024,40 +1024,40 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1024
1024
  {
1025
1025
  label: a(r("about")),
1026
1026
  variant: "segmented",
1027
- className: io,
1027
+ className: sn,
1028
1028
  value: l.about,
1029
1029
  onValueChange: (t) => d.patchFields({ about: t }),
1030
1030
  children: [
1031
- /* @__PURE__ */ o(
1031
+ /* @__PURE__ */ n(
1032
1032
  Pe,
1033
1033
  {
1034
1034
  value: "nobody",
1035
1035
  label: a(r("aboutNobody")),
1036
- icon: /* @__PURE__ */ o(oo, { "aria-hidden": "true" })
1036
+ icon: /* @__PURE__ */ n(nn, { "aria-hidden": "true" })
1037
1037
  }
1038
1038
  ),
1039
- h || l.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ o(
1039
+ h || l.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ n(
1040
1040
  Pe,
1041
1041
  {
1042
1042
  value: "patient",
1043
1043
  label: a(r("aboutPatient")),
1044
- icon: /* @__PURE__ */ o(Xt, { "aria-hidden": "true" })
1044
+ icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" })
1045
1045
  }
1046
1046
  ) : null,
1047
- e || l.about === "company" || f != null && f.companyId ? /* @__PURE__ */ o(
1047
+ e || l.about === "company" || f != null && f.companyId ? /* @__PURE__ */ n(
1048
1048
  Pe,
1049
1049
  {
1050
1050
  value: "company",
1051
1051
  label: a(r("aboutCompany")),
1052
- icon: /* @__PURE__ */ o(Jt, { "aria-hidden": "true" })
1052
+ icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" })
1053
1053
  }
1054
1054
  ) : null,
1055
- i || l.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */ o(
1055
+ i || l.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */ n(
1056
1056
  Pe,
1057
1057
  {
1058
1058
  value: "operator",
1059
1059
  label: a(r("aboutOperator")),
1060
- icon: /* @__PURE__ */ o(Zt, { "aria-hidden": "true" })
1060
+ icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
1061
1061
  }
1062
1062
  ) : null
1063
1063
  ]
@@ -1065,21 +1065,21 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1065
1065
  ),
1066
1066
  Dt(),
1067
1067
  l.about === "company" ? /* @__PURE__ */ k(De, { children: [
1068
- re ? /* @__PURE__ */ o(H, { label: a(r("companyName")), children: /* @__PURE__ */ o(Oe, { value: Et, disabled: !0, readOnly: !0 }) }) : null,
1069
- e ? /* @__PURE__ */ o(
1068
+ re ? /* @__PURE__ */ n(H, { label: a(r("companyName")), children: /* @__PURE__ */ n(Oe, { value: Et, disabled: !0, readOnly: !0 }) }) : null,
1069
+ e ? /* @__PURE__ */ n(
1070
1070
  H,
1071
1071
  {
1072
1072
  label: a(
1073
1073
  r(re ? "companyReplace" : "companyName")
1074
1074
  ),
1075
- children: /* @__PURE__ */ o(
1075
+ children: /* @__PURE__ */ n(
1076
1076
  Qe,
1077
1077
  {
1078
1078
  options: u,
1079
1079
  value: re ? "" : l.companyId,
1080
1080
  onValueChange: (t) => re ? t && d.patchFields({ companyId: t }) : d.patchFields({ companyId: t }),
1081
- clearable: !re && !ne,
1082
- filter: ho,
1081
+ clearable: !re && !oe,
1082
+ filter: hn,
1083
1083
  placeholder: a(r("companySearch")),
1084
1084
  "aria-label": a(
1085
1085
  r(re ? "companyReplace" : "companyName")
@@ -1089,16 +1089,16 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1089
1089
  }
1090
1090
  ) : null
1091
1091
  ] }) : null,
1092
- l.about === "operator" ? i ? /* @__PURE__ */ o(H, { label: a(r("operator")), children: /* @__PURE__ */ o(
1092
+ l.about === "operator" ? i ? /* @__PURE__ */ n(H, { label: a(r("operator")), children: /* @__PURE__ */ n(
1093
1093
  Ke,
1094
1094
  {
1095
- options: yt,
1095
+ options: bt,
1096
1096
  value: l.operatorId,
1097
1097
  onValueChange: (t) => t && d.patchFields({ operatorId: t })
1098
1098
  }
1099
1099
  ) }) : l.operatorId !== z ? (
1100
1100
  /* No roster to pick from: name the link read-only. */
1101
- /* @__PURE__ */ o(H, { label: a(r("operator")), children: /* @__PURE__ */ o(
1101
+ /* @__PURE__ */ n(H, { label: a(r("operator")), children: /* @__PURE__ */ n(
1102
1102
  Oe,
1103
1103
  {
1104
1104
  value: W(l.operatorId),
@@ -1108,7 +1108,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1108
1108
  ) })
1109
1109
  ) : null : null,
1110
1110
  d.showDone ? /* @__PURE__ */ k(De, { children: [
1111
- /* @__PURE__ */ o(
1111
+ /* @__PURE__ */ n(
1112
1112
  $t,
1113
1113
  {
1114
1114
  label: a(r("done")),
@@ -1122,16 +1122,16 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1122
1122
  }
1123
1123
  }
1124
1124
  ),
1125
- s.doneError ? /* @__PURE__ */ o(M, { variant: "error", children: /* @__PURE__ */ o(M.Description, { children: s.doneError }) }) : null
1125
+ s.doneError ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.doneError }) }) : null
1126
1126
  ] }) : null,
1127
- s.saveError ? /* @__PURE__ */ o(M, { variant: "error", children: /* @__PURE__ */ o(M.Description, { children: s.saveError }) }) : null,
1128
- s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ o(M, { variant: "error", children: /* @__PURE__ */ o(M.Description, { children: s.deleteError }) }) : null
1129
- ] }), tt = R === "loading" ? St : R === "error" ? xt : R === "locked" ? Ct : R === "withheld" ? /* @__PURE__ */ o(
1127
+ s.saveError ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.saveError }) }) : null,
1128
+ s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.deleteError }) }) : null
1129
+ ] }), tt = R === "loading" ? St : R === "error" ? xt : R === "locked" ? Ct : R === "withheld" ? /* @__PURE__ */ n(
1130
1130
  Ht,
1131
1131
  {
1132
1132
  onTurnOff: fe ? _e(fe) : void 0
1133
1133
  }
1134
- ) : ae ? et : /* @__PURE__ */ o(Mt, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = R === "ready" ? Ze(!0) : R === "locked" || R === "withheld" ? Ze(!1) : null, Nt = R === "ready" && d.showDelete, ot = ge ? /* @__PURE__ */ o(
1134
+ ) : ae ? et : /* @__PURE__ */ n(Mt, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = R === "ready" ? Ze(!0) : R === "locked" || R === "withheld" ? Ze(!1) : null, Nt = R === "ready" && d.showDelete, nt = ge ? /* @__PURE__ */ n(
1135
1135
  ce,
1136
1136
  {
1137
1137
  open: s.confirmDeleteOpen && _,
@@ -1151,17 +1151,17 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1151
1151
  },
1152
1152
  children: [
1153
1153
  /* @__PURE__ */ k(ce.Header, { children: [
1154
- /* @__PURE__ */ o(ce.Title, { children: a(r("deleteConfirmTitle")) }),
1155
- /* @__PURE__ */ o(ce.Description, { children: a(r("deleteConfirmBody")) })
1154
+ /* @__PURE__ */ n(ce.Title, { children: a(r("deleteConfirmTitle")) }),
1155
+ /* @__PURE__ */ n(ce.Description, { children: a(r("deleteConfirmBody")) })
1156
1156
  ] }),
1157
- s.deleteError ? /* @__PURE__ */ o(ce.Body, { children: /* @__PURE__ */ o(M, { variant: "error", children: /* @__PURE__ */ o(M.Description, { children: s.deleteError }) }) }) : null,
1157
+ s.deleteError ? /* @__PURE__ */ n(ce.Body, { children: /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.deleteError }) }) }) : null,
1158
1158
  /* @__PURE__ */ k(ce.Footer, { divider: !0, children: [
1159
- /* @__PURE__ */ o(ce.Close, { asChild: !0, children: /* @__PURE__ */ o(Me, { intent: "outline", "aria-disabled": s.deleting || void 0, children: a(r("deleteCancel")) }) }),
1160
- /* @__PURE__ */ o(
1159
+ /* @__PURE__ */ n(ce.Close, { asChild: !0, children: /* @__PURE__ */ n(Me, { intent: "outline", "aria-disabled": s.deleting || void 0, children: a(r("deleteCancel")) }) }),
1160
+ /* @__PURE__ */ n(
1161
1161
  Me,
1162
1162
  {
1163
1163
  intent: "destructive",
1164
- startIcon: /* @__PURE__ */ o(dt, { "aria-hidden": "true" }),
1164
+ startIcon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
1165
1165
  "aria-disabled": s.deleting || void 0,
1166
1166
  "aria-busy": s.deleting || void 0,
1167
1167
  onClick: () => {
@@ -1175,68 +1175,68 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1175
1175
  }
1176
1176
  )
1177
1177
  }
1178
- ) : null, nt = {
1178
+ ) : null, ot = {
1179
1179
  "data-component": "task-editor",
1180
1180
  "data-component-id": he,
1181
1181
  "data-variant": B,
1182
1182
  "data-status": R
1183
1183
  };
1184
1184
  return ae ? /* @__PURE__ */ k(De, { children: [
1185
- /* @__PURE__ */ o(
1185
+ /* @__PURE__ */ n(
1186
1186
  Ot,
1187
1187
  {
1188
1188
  ...Ee,
1189
1189
  "data-component-id": he,
1190
1190
  "data-variant": B,
1191
1191
  "data-status": R,
1192
- ref: be,
1192
+ ref: ye,
1193
1193
  open: A,
1194
1194
  onBack: Je,
1195
1195
  onExited: Y,
1196
1196
  title: xe,
1197
- icon: /* @__PURE__ */ o(ct, { "aria-hidden": "true" }),
1197
+ icon: /* @__PURE__ */ n(ct, { "aria-hidden": "true" }),
1198
1198
  backLabel: P ?? a(r("back")),
1199
1199
  footer: Le,
1200
1200
  footerAlign: Nt ? "between" : "end",
1201
1201
  className: G,
1202
- children: /* @__PURE__ */ o("div", { ...nt, className: pt({ variant: B }), children: tt })
1202
+ children: /* @__PURE__ */ n("div", { ...ot, className: pt({ variant: B }), children: tt })
1203
1203
  }
1204
1204
  ),
1205
- ot
1205
+ nt
1206
1206
  ] }) : /* @__PURE__ */ k(De, { children: [
1207
1207
  /* @__PURE__ */ k(
1208
1208
  "div",
1209
1209
  {
1210
1210
  tabIndex: -1,
1211
1211
  ...Ee,
1212
- ...nt,
1213
- ref: be,
1212
+ ...ot,
1213
+ ref: ye,
1214
1214
  className: pt({ variant: B, className: G }),
1215
1215
  children: [
1216
- /* @__PURE__ */ o(
1216
+ /* @__PURE__ */ n(
1217
1217
  Pt,
1218
1218
  {
1219
1219
  title: xe,
1220
- icon: /* @__PURE__ */ o(ct, { "aria-hidden": "true" }),
1220
+ icon: /* @__PURE__ */ n(ct, { "aria-hidden": "true" }),
1221
1221
  sticky: !0,
1222
1222
  divider: !0
1223
1223
  }
1224
1224
  ),
1225
1225
  tt,
1226
- Le ? /* @__PURE__ */ o("div", { className: "ds:relative ds:z-[var(--z-sticky)] ds:shrink-0 ds:border-t ds:border-[color:var(--border)] ds:bg-[var(--background)]", children: /* @__PURE__ */ o("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: Le }) }) : null
1226
+ Le ? /* @__PURE__ */ n("div", { className: "ds:relative ds:z-[var(--z-sticky)] ds:shrink-0 ds:border-t ds:border-[color:var(--border)] ds:bg-[var(--background)]", children: /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: Le }) }) : null
1227
1227
  ]
1228
1228
  }
1229
1229
  ),
1230
- ot
1230
+ nt
1231
1231
  ] });
1232
1232
  }
1233
1233
  );
1234
- vo.displayName = "TaskEditor";
1234
+ vn.displayName = "TaskEditor";
1235
1235
  export {
1236
- ro as E,
1237
- so as P,
1238
- ao as S,
1239
- vo as T,
1240
- lo as t
1236
+ rn as E,
1237
+ dn as P,
1238
+ an as S,
1239
+ vn as T,
1240
+ ln as t
1241
1241
  };
1242
- //# sourceMappingURL=task-editor-BomyxGoZ.js.map
1242
+ //# sourceMappingURL=task-editor-BTeUFGUX.js.map