@alfadocs/ui-kit 1.114.0 → 1.115.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 (290) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
  2. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-BZ36ULQk.js} +4 -4
  5. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  6. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
  9. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  10. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
  11. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +519 -531
  13. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
  14. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
  15. package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
  16. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  17. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  18. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  19. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  20. package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
  21. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-C68V9rdH.js} +5 -5
  22. package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
  23. package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
  24. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  25. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  26. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  27. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  28. package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
  29. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  30. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  31. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  32. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-C1UA5jpS.js} +6 -6
  33. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
  34. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  35. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  36. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  37. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  38. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-DkoxiDCh.js} +2 -2
  39. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
  40. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  41. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  42. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  43. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  44. package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
  45. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-CC-dbKE8.js} +6 -5
  46. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-eXdtmEoU.js} +4 -4
  47. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  48. package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
  49. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  50. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  51. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  52. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  53. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-CzG0RmhQ.js} +4 -4
  54. package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
  55. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  56. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CcEHJgDd.js} +2 -2
  57. package/dist/_chunks/match-BATShpSX.js +336 -0
  58. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  59. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  60. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-BVYG_MJE.js} +2 -2
  61. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  62. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  63. package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
  64. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-DlT-vpSe.js} +2 -2
  65. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
  66. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-Dy9-CzON.js} +3 -3
  67. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  68. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  69. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  70. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-qZpw3zj8.js} +7 -7
  71. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  72. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  73. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  74. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
  75. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  76. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-6p3Hm4oH.js} +9 -9
  77. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
  78. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  79. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  80. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  81. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  82. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  83. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  84. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  85. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  86. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  87. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  88. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  89. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-CSa6vQ9r.js} +377 -391
  90. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  91. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-CVjY1d7Q.js} +2 -2
  92. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
  93. package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
  94. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  95. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  96. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
  97. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-BMAiQYo6.js} +4 -4
  98. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  99. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DNSe65yd.js} +2 -2
  100. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  101. package/dist/agent-catalog.json +717 -6
  102. package/dist/agent-i18n/en.json +50 -2
  103. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  104. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  105. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  106. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  107. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  108. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  109. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  110. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  111. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  112. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  113. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  114. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  115. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  116. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  117. package/dist/components/ai-permission-notice/index.js +1 -1
  118. package/dist/components/appointment-card/index.js +2 -2
  119. package/dist/components/appointment-details-panel/index.js +1 -1
  120. package/dist/components/appointment-timeline/index.js +1 -1
  121. package/dist/components/booking/index.js +1 -1
  122. package/dist/components/care-plan-card/index.js +1 -1
  123. package/dist/components/care-plan-entry-card/index.js +1 -1
  124. package/dist/components/chart/index.js +1 -1
  125. package/dist/components/chat-container/index.js +1 -1
  126. package/dist/components/checkbox/checkbox.d.ts +66 -6
  127. package/dist/components/checkbox/index.js +1 -1
  128. package/dist/components/checkbox-group/index.js +1 -1
  129. package/dist/components/cycle-calculator/index.js +1 -1
  130. package/dist/components/data-grid/announcer.d.ts +27 -0
  131. package/dist/components/data-grid/body.d.ts +95 -0
  132. package/dist/components/data-grid/columns.d.ts +96 -0
  133. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  134. package/dist/components/data-grid/data-grid.d.ts +11 -27
  135. package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
  136. package/dist/components/data-grid/editors.d.ts +8 -0
  137. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  138. package/dist/components/data-grid/features.d.ts +56 -0
  139. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  140. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  141. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  142. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  143. package/dist/components/data-grid/footer.d.ts +10 -0
  144. package/dist/components/data-grid/grid-context.d.ts +18 -0
  145. package/dist/components/data-grid/handle.d.ts +60 -0
  146. package/dist/components/data-grid/header.d.ts +12 -0
  147. package/dist/components/data-grid/index.d.ts +3 -0
  148. package/dist/components/data-grid/index.js +10 -3
  149. package/dist/components/data-grid/keyboard.d.ts +76 -0
  150. package/dist/components/data-grid/pager.d.ts +18 -0
  151. package/dist/components/data-grid/persistence.d.ts +60 -0
  152. package/dist/components/data-grid/print.d.ts +10 -0
  153. package/dist/components/data-grid/responsive.d.ts +36 -0
  154. package/dist/components/data-grid/selection.d.ts +58 -0
  155. package/dist/components/data-grid/state.d.ts +119 -0
  156. package/dist/components/data-grid/states.d.ts +34 -0
  157. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  158. package/dist/components/data-grid/toolbar.d.ts +41 -0
  159. package/dist/components/data-grid/types.d.ts +1346 -0
  160. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  161. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  162. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  163. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  164. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  165. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  166. package/dist/components/data-grid-tabs/index.js +8 -0
  167. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  168. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  169. package/dist/components/data-table/calendar-day.d.ts +4 -21
  170. package/dist/components/data-table/data-table.d.ts +10 -6
  171. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  172. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  173. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  174. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  175. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  176. package/dist/components/data-table/index.js +4 -4
  177. package/dist/components/data-table/toolbar.d.ts +25 -21
  178. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  179. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  180. package/dist/components/data-table-tabs/index.js +1 -1
  181. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  182. package/dist/components/date-picker/index.js +1 -1
  183. package/dist/components/date-range-picker/index.js +1 -1
  184. package/dist/components/date-time-picker/index.js +1 -1
  185. package/dist/components/due-date-calculator/index.js +2 -2
  186. package/dist/components/face-scheme/index.js +1 -1
  187. package/dist/components/file-manager/index.js +1 -1
  188. package/dist/components/gestational-age-calculator/index.js +1 -1
  189. package/dist/components/hcg-doubling/index.js +1 -1
  190. package/dist/components/heatmap/index.js +1 -1
  191. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  192. package/dist/components/icon-button-group/index.d.ts +1 -1
  193. package/dist/components/icon-button-group/index.js +1 -1
  194. package/dist/components/index.d.ts +1 -0
  195. package/dist/components/notes-panel/index.js +1 -1
  196. package/dist/components/patient-details/index.js +1 -1
  197. package/dist/components/patient-summary-card/index.js +1 -1
  198. package/dist/components/patient-table/index.js +1 -1
  199. package/dist/components/periodontal-diagnosis/index.js +1 -1
  200. package/dist/components/permission-matrix/index.js +1 -1
  201. package/dist/components/pregnancy-dating/index.js +1 -1
  202. package/dist/components/radiograph-panel/index.js +1 -1
  203. package/dist/components/rich-text-editor/index.js +2 -2
  204. package/dist/components/sidebar/index.js +1 -1
  205. package/dist/components/slot-grid/index.js +1 -1
  206. package/dist/components/tag/index.js +1 -1
  207. package/dist/components/task-card/index.js +1 -1
  208. package/dist/components/task-editor/index.js +1 -1
  209. package/dist/components/task-tray/index.js +1 -1
  210. package/dist/components/tasks-panel/index.js +1 -1
  211. package/dist/components/theme-toggle/index.js +1 -1
  212. package/dist/components/transcript-panel/index.js +1 -1
  213. package/dist/components/treatment-receipt/index.js +1 -1
  214. package/dist/components/voice-control-panel/index.js +1 -1
  215. package/dist/core.css +1 -1
  216. package/dist/host-compat.css +33 -2
  217. package/dist/i18n/locales/ar.d.ts +94 -0
  218. package/dist/i18n/locales/ar.js +96 -2
  219. package/dist/i18n/locales/de.d.ts +94 -0
  220. package/dist/i18n/locales/de.js +96 -2
  221. package/dist/i18n/locales/el.d.ts +94 -0
  222. package/dist/i18n/locales/el.js +96 -2
  223. package/dist/i18n/locales/en.d.ts +94 -0
  224. package/dist/i18n/locales/en.js +97 -2
  225. package/dist/i18n/locales/es.d.ts +94 -0
  226. package/dist/i18n/locales/es.js +96 -2
  227. package/dist/i18n/locales/fr.d.ts +94 -0
  228. package/dist/i18n/locales/fr.js +96 -2
  229. package/dist/i18n/locales/hi.d.ts +94 -0
  230. package/dist/i18n/locales/hi.js +96 -2
  231. package/dist/i18n/locales/it.d.ts +94 -0
  232. package/dist/i18n/locales/it.js +96 -2
  233. package/dist/i18n/locales/ja.d.ts +94 -0
  234. package/dist/i18n/locales/ja.js +96 -2
  235. package/dist/i18n/locales/nl.d.ts +94 -0
  236. package/dist/i18n/locales/nl.js +96 -2
  237. package/dist/i18n/locales/pl.d.ts +94 -0
  238. package/dist/i18n/locales/pl.js +96 -2
  239. package/dist/i18n/locales/pt.d.ts +94 -0
  240. package/dist/i18n/locales/pt.js +96 -2
  241. package/dist/i18n/locales/ro.d.ts +94 -0
  242. package/dist/i18n/locales/ro.js +96 -2
  243. package/dist/i18n/locales/ru.d.ts +94 -0
  244. package/dist/i18n/locales/ru.js +96 -2
  245. package/dist/i18n/locales/sq.d.ts +94 -0
  246. package/dist/i18n/locales/sq.js +96 -2
  247. package/dist/i18n/locales/sv.d.ts +94 -0
  248. package/dist/i18n/locales/sv.js +96 -2
  249. package/dist/i18n/locales/tr.d.ts +94 -0
  250. package/dist/i18n/locales/tr.js +96 -2
  251. package/dist/i18n/locales/zh.d.ts +94 -0
  252. package/dist/i18n/locales/zh.js +96 -2
  253. package/dist/index.js +1044 -1032
  254. package/dist/locales/ar.json +96 -2
  255. package/dist/locales/de.json +96 -2
  256. package/dist/locales/el.json +96 -2
  257. package/dist/locales/en.json +96 -2
  258. package/dist/locales/es.json +96 -2
  259. package/dist/locales/fr.json +96 -2
  260. package/dist/locales/hi.json +96 -2
  261. package/dist/locales/it.json +96 -2
  262. package/dist/locales/ja.json +96 -2
  263. package/dist/locales/nl.json +96 -2
  264. package/dist/locales/pl.json +96 -2
  265. package/dist/locales/pt.json +96 -2
  266. package/dist/locales/ro.json +96 -2
  267. package/dist/locales/ru.json +96 -2
  268. package/dist/locales/sq.json +96 -2
  269. package/dist/locales/sv.json +96 -2
  270. package/dist/locales/tr.json +96 -2
  271. package/dist/locales/zh.json +96 -2
  272. package/dist/patterns/alia-assistant/index.js +1 -1
  273. package/dist/patterns/anamnesis/index.js +1 -1
  274. package/dist/patterns/calendar/index.js +1 -1
  275. package/dist/patterns/login-form/index.js +1 -1
  276. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  277. package/dist/patterns/registration-form/index.js +1 -1
  278. package/dist/patterns/send-registration-link-form/index.js +1 -1
  279. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  280. package/dist/tokens.css +1 -1
  281. package/package.json +5 -1
  282. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  283. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  284. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  285. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  286. package/dist/_chunks/format--x5jypvH.js +0 -1319
  287. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  288. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  289. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  290. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
@@ -1,59 +1,61 @@
1
- import { jsx as n, jsxs as k, Fragment as De } from "react/jsx-runtime";
2
- import { useState as $, useRef as x, useEffect as $e, forwardRef as At, useId as _t, useMemo as Fe } from "react";
1
+ import { jsx as n, jsxs as k, Fragment as Ne } from "react/jsx-runtime";
2
+ import { useState as q, useRef as C, useEffect as qe, forwardRef as Bt, useId as Ft, useMemo as Pe } from "react";
3
3
  import { c as ht } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as gt } from "react-i18next";
5
- import { A as M } from "./alert-C4WKViaS.js";
6
- import { B as Me } from "./button-DohK_Ak_.js";
5
+ import { A as $ } from "./alert-C4WKViaS.js";
6
+ import { B as $e } from "./button-DohK_Ak_.js";
7
7
  import { I as We } from "./icon-button-S8_weU3g.js";
8
8
  import { C as Qe } from "./combobox-duuDRI1t.js";
9
- import { D as ce } from "./dialog-BTjSQjdY.js";
10
- import { D as Bt } from "./date-picker-CdhXlgVI.js";
9
+ import { D as le } from "./dialog-BTjSQjdY.js";
10
+ import { D as xt } from "./date-picker-DBVTj6lO.js";
11
11
  import { F as H } from "./form-field-CyHfOVKF.js";
12
- import { I as Ft } from "./icon-button-group-mXvYDaba.js";
13
- import { P as Pt } from "./panel-header-CbtlTe85.js";
14
- import { P as Ot } from "./panel-subview-DCyvn-49.js";
15
- import { R as Pe } from "./radio-BZQs6_36.js";
12
+ import { I as Pt } from "./icon-button-group-C9mPK-bX.js";
13
+ import { P as Ot } from "./panel-header-CbtlTe85.js";
14
+ import { P as Mt } from "./panel-subview-DCyvn-49.js";
15
+ import { R as Oe } from "./radio-BZQs6_36.js";
16
16
  import { R as jt } from "./radio-group-ChIKyeSJ.js";
17
- import { S as Mt } from "./scroll-area-CY5SLYNw.js";
17
+ import { S as $t } from "./scroll-area-CY5SLYNw.js";
18
18
  import { S as Ke } from "./select-uESzXTX6.js";
19
19
  import { S as He } from "./skeleton-tTWJpvAq.js";
20
- import { S as $t } from "./switch-DO6uC4HJ.js";
21
- import { T as zt } from "./text-area-COMVJ1yE.js";
22
- import { T as Oe } from "./text-input-B6iAgCr3.js";
23
- import { T as qt } from "./time-picker-DDr5vhwQ.js";
24
- import { u as Vt } from "./registry-DvAUVLHh.js";
20
+ import { S as qt } from "./switch-DO6uC4HJ.js";
21
+ import { T as _t } from "./text-area-COMVJ1yE.js";
22
+ import { T as Me } from "./text-input-B6iAgCr3.js";
23
+ import { T as Vt } from "./time-picker-DDr5vhwQ.js";
24
+ import { u as zt } 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
- import { n as Wt } from "./normalize-diacritics-BNGbFNlJ.js";
28
- import { p as Kt, P as Ht } from "./privacy-mask-Dc3kdkCR.js";
29
- import { g as je, h as Gt } from "./handled-rejection-6gqCf5vt.js";
30
- import { L as Qt } from "./lock-ClAFG1gy.js";
31
- import { X as Yt } from "./x-B5YnXwCz.js";
27
+ import { E as Wt, a as Kt } from "./compact-editor-fields-cP6yh7xv.js";
28
+ import { n as Ht } from "./normalize-diacritics-BNGbFNlJ.js";
29
+ import { P as Gt } from "./privacy-mask-BlJK51MD.js";
30
+ import { g as je, h as Qt } from "./handled-rejection-6gqCf5vt.js";
31
+ import { L as Yt } from "./lock-ClAFG1gy.js";
32
+ import { X as Xt } from "./x-B5YnXwCz.js";
32
33
  import { c as vt } from "./createLucideIcon-DhHxpK9K.js";
33
- import { U as Xt } from "./user-B12p7bVF.js";
34
- import { B as Jt } from "./building-2-D33bLCWL.js";
35
- import { S as Zt } from "./stethoscope-sZXGC43m.js";
34
+ import { U as Jt } from "./user-B12p7bVF.js";
35
+ import { B as Zt } from "./building-2-D33bLCWL.js";
36
+ import { S as en } from "./stethoscope-sZXGC43m.js";
36
37
  import { T as dt } from "./trash-2-uumy3fy1.js";
37
- import { S as ct } from "./square-check-big-dj0o8yA3.js";
38
- import { L as en } from "./loader-circle-BECIU_8N.js";
38
+ import { S as lt } from "./square-check-big-dj0o8yA3.js";
39
+ import { p as tn } from "./privacy-mask-text-B8YfzB7L.js";
40
+ import { L as nn } from "./loader-circle-BECIU_8N.js";
39
41
  /**
40
42
  * @license lucide-react v1.22.0 - ISC
41
43
  *
42
44
  * This source code is licensed under the ISC license.
43
45
  * See the LICENSE file in the root directory of this source tree.
44
46
  */
45
- const tn = [
47
+ const on = [
46
48
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
47
49
  ["path", { d: "M8.35 2.69A10 10 0 0 1 21.3 15.65", key: "1pfsoa" }],
48
50
  ["path", { d: "M19.08 19.08A10 10 0 1 1 4.92 4.92", key: "1ablyi" }]
49
- ], nn = vt("circle-off", tn);
51
+ ], rn = vt("circle-off", on);
50
52
  /**
51
53
  * @license lucide-react v1.22.0 - ISC
52
54
  *
53
55
  * This source code is licensed under the ISC license.
54
56
  * See the LICENSE file in the root directory of this source tree.
55
57
  */
56
- const on = [
58
+ const an = [
57
59
  [
58
60
  "path",
59
61
  {
@@ -63,62 +65,47 @@ const on = [
63
65
  ],
64
66
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
65
67
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
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
- /* Multi-line notes keep their height but share the corners. */
72
- "ds:[&_[data-component=text-area]_textarea]:rounded-[var(--radius-md)]",
73
- /* The time field's hour and minute segments are 32px at the kit default;
74
- inside a 32px box they take the kit's `sm` segment height instead,
75
- and get the default back wherever the field is raised. */
76
- "ds:[&_[data-component=time-picker]_[role=spinbutton]]:h-[calc(var(--ds-spacing)*(6+2*var(--accessible-on,0)))]",
77
- "ds:max-sm:[&_[data-component=time-picker]_[role=spinbutton]]:h-8"
78
- ].join(" "), sn = [
79
- "ds:h-[var(--accessible-auto,calc(var(--ds-spacing)*8))] ds:[&_[role=radio]]:[min-block-size:var(--accessible-target-floor,0px)]",
80
- "ds:max-sm:h-auto ds:max-sm:[&_[role=radio]]:min-h-[var(--min-target-size)]"
81
- ].join(" ");
68
+ ], sn = vt("save", an);
82
69
  function dn({
83
70
  patients: o = [],
84
- searchPatients: c,
71
+ searchPatients: l,
85
72
  ...I
86
73
  }) {
87
- if (c)
88
- return /* @__PURE__ */ n(cn, { ...I, searchPatients: c });
89
- const { value: b, onValueChange: B, selectedLabel: A, placeholder: Y, size: C, disabled: X } = I;
74
+ if (l)
75
+ return /* @__PURE__ */ n(ln, { ...I, searchPatients: l });
76
+ const { value: y, onValueChange: x, selectedLabel: B, placeholder: Y, size: D, disabled: X } = I;
90
77
  return /* @__PURE__ */ n(
91
78
  Qe,
92
79
  {
93
- value: b,
94
- onValueChange: B,
80
+ value: y,
81
+ onValueChange: x,
95
82
  options: [
96
- ...b && !o.some((D) => D.id === b) ? [{ value: b, label: A ?? "" }] : [],
97
- ...o.map((D) => ({ value: D.id, label: D.name }))
83
+ ...y && !o.some((N) => N.id === y) ? [{ value: y, label: B ?? "" }] : [],
84
+ ...o.map((N) => ({ value: N.id, label: N.name }))
98
85
  ],
99
86
  placeholder: Y,
100
- size: C,
87
+ size: D,
101
88
  disabled: X,
102
89
  clearable: !0
103
90
  }
104
91
  );
105
92
  }
106
- function cn({
93
+ function ln({
107
94
  value: o,
108
- onValueChange: c,
95
+ onValueChange: l,
109
96
  selectedLabel: I,
110
- placeholder: b,
111
- size: B,
112
- disabled: A,
97
+ placeholder: y,
98
+ size: x,
99
+ disabled: B,
113
100
  searchPatients: Y
114
101
  }) {
115
- const { t: C } = gt("ui"), [X, D] = $(""), [J, Z] = $(0), [F, se] = $(), [N, ee] = $(), q = x(null), P = X.trim();
116
- $e(() => {
117
- if (!P) return;
118
- const m = new AbortController(), S = { query: P, source: Y };
102
+ const { t: D } = gt("ui"), [X, N] = q(""), [J, Z] = q(0), [P, se] = q(), [T, ee] = q(), V = C(null), O = X.trim();
103
+ qe(() => {
104
+ if (!O) return;
105
+ const m = new AbortController(), S = { query: O, source: Y };
119
106
  ee({ ...S, status: "loading", patients: [] });
120
- const le = setTimeout(() => {
121
- Promise.resolve().then(() => Y(P, { signal: m.signal })).then(
107
+ const ce = setTimeout(() => {
108
+ Promise.resolve().then(() => Y(O, { signal: m.signal })).then(
122
109
  (oe) => {
123
110
  m.signal.aborted || ee({ ...S, status: "ready", patients: oe });
124
111
  },
@@ -128,16 +115,16 @@ function cn({
128
115
  );
129
116
  }, 250);
130
117
  return () => {
131
- clearTimeout(le), m.abort();
118
+ clearTimeout(ce), m.abort();
132
119
  };
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 : [], 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) => ({
120
+ }, [O, Y, J]);
121
+ const z = (T == null ? void 0 : T.query) === O && T.source === Y, L = O ? z ? T.status : "loading" : "idle", te = z && L === "ready" ? T.patients : [], ne = L === "loading" ? D("inputs.search.loading") : L === "error" ? D("emptyState.error.description") : L === "idle" ? y : te.length === 0 ? D("inputs.combobox.empty") : "", M = te.map((m) => ({
135
122
  value: m.id,
136
123
  label: m.name
137
124
  }));
138
- return o && !te.some((m) => m.id === o) && O.push({
125
+ return o && !te.some((m) => m.id === o) && M.push({
139
126
  value: o,
140
- label: (F == null ? void 0 : F.id) === o ? F.name : I ?? ""
127
+ label: (P == null ? void 0 : P.id) === o ? P.name : I ?? ""
141
128
  }), /* @__PURE__ */ k(
142
129
  "div",
143
130
  {
@@ -148,44 +135,44 @@ function cn({
148
135
  /* @__PURE__ */ n(
149
136
  Qe,
150
137
  {
151
- ref: q,
152
- options: O,
138
+ ref: V,
139
+ options: M,
153
140
  value: o,
154
141
  onValueChange: (m) => {
155
142
  se(
156
- (S) => te.find((le) => le.id === m) ?? ((S == null ? void 0 : S.id) === m ? S : void 0)
157
- ), c(m);
143
+ (S) => te.find((ce) => ce.id === m) ?? ((S == null ? void 0 : S.id) === m ? S : void 0)
144
+ ), l(m);
158
145
  },
159
- onQueryChange: D,
146
+ onQueryChange: N,
160
147
  onOpenChange: (m) => {
161
- !m && L !== "error" && D("");
148
+ !m && L !== "error" && N("");
162
149
  },
163
- filter: (m) => !P || te.some((S) => Wt(S.id) === m) ? 1 : 0,
164
- size: B,
165
- disabled: A,
166
- placeholder: b,
150
+ filter: (m) => !O || te.some((S) => Ht(S.id) === m) ? 1 : 0,
151
+ size: x,
152
+ disabled: B,
153
+ placeholder: y,
167
154
  emptyMessage: ne || void 0,
168
155
  clearable: !0
169
156
  }
170
157
  ),
171
158
  /* @__PURE__ */ n("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: ne }),
172
159
  L === "error" ? /* @__PURE__ */ n(
173
- Me,
160
+ $e,
174
161
  {
175
162
  size: "sm",
176
163
  intent: "ghost",
177
164
  onClick: () => {
178
165
  var m;
179
- Z((S) => S + 1), (m = q.current) == null || m.focus();
166
+ Z((S) => S + 1), (m = V.current) == null || m.focus();
180
167
  },
181
- children: C("emptyState.error.cta")
168
+ children: D("emptyState.error.cta")
182
169
  }
183
170
  ) : null
184
171
  ]
185
172
  }
186
173
  );
187
174
  }
188
- const ln = {
175
+ const cn = {
189
176
  id: "task-editor",
190
177
  // set_value backs set_fields and set_done; submit backs save; dismiss
191
178
  // backs cancel.
@@ -238,8 +225,8 @@ const ln = {
238
225
  ],
239
226
  descriptionKey: "ui.agent.taskEditor.actions.setFields",
240
227
  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: (o, c) => {
242
- o.setFields(c);
228
+ invoke: (o, l) => {
229
+ o.setFields(l);
243
230
  }
244
231
  },
245
232
  save: {
@@ -266,7 +253,7 @@ const ln = {
266
253
  ],
267
254
  descriptionKey: "ui.agent.taskEditor.actions.setDone",
268
255
  description: "Mark an existing task done or not done through the host. A rejection rolls the switch back.",
269
- invoke: (o, c) => o.setDone(c.done)
256
+ invoke: (o, l) => o.setDone(l.done)
270
257
  },
271
258
  delete: {
272
259
  safety: "destructive",
@@ -298,7 +285,7 @@ const ln = {
298
285
  description: "Sourced from the id prop, or generated. Addresses one editor from the agent. [data-component-id] reaches the footer actions in both variants."
299
286
  }
300
287
  }
301
- }, z = "none", lt = {
288
+ }, _ = "none", ct = {
302
289
  showError: !1,
303
290
  saving: !1,
304
291
  saveError: void 0,
@@ -318,31 +305,31 @@ function Ye(o) {
318
305
  return { hours: o.getHours(), minutes: o.getMinutes() };
319
306
  }
320
307
  function ut(o) {
321
- const c = o ?? /* @__PURE__ */ new Date();
308
+ const l = o ?? /* @__PURE__ */ new Date();
322
309
  return {
323
- date: c,
324
- time: Ye(c),
310
+ date: l,
311
+ time: Ye(l),
325
312
  note: "",
326
- operatorId: z,
313
+ operatorId: _,
327
314
  typeId: "",
328
- assigneeId: z,
315
+ assigneeId: _,
329
316
  about: "nobody",
330
317
  patientId: "",
331
318
  companyId: ""
332
319
  };
333
320
  }
334
321
  function pn(o) {
335
- const c = new Date(o.dateIso);
322
+ const l = new Date(o.dateIso);
336
323
  return {
337
- date: c,
338
- time: Ye(c),
324
+ date: l,
325
+ time: Ye(l),
339
326
  note: o.note,
340
327
  /* `||`, not `??`: a host's '' is unset, like patient and company. */
341
- operatorId: o.operatorId || z,
328
+ operatorId: o.operatorId || _,
342
329
  /* A stored type wins. With none, '' falls through to the first entry. */
343
330
  typeId: o.typeId ?? "",
344
331
  /* `||` too: '' would become a Select option with an empty value. */
345
- assigneeId: o.assigneeId || z,
332
+ assigneeId: o.assigneeId || _,
346
333
  about: un(o),
347
334
  patientId: o.patientId ?? "",
348
335
  companyId: o.companyId ?? ""
@@ -355,62 +342,62 @@ const mn = [
355
342
  ];
356
343
  function fn({
357
344
  mode: o,
358
- taskId: c,
345
+ taskId: l,
359
346
  initialDate: I,
360
- active: b,
361
- taskTypes: B,
362
- assignees: A,
347
+ active: y,
348
+ taskTypes: x,
349
+ assignees: B,
363
350
  companies: Y,
364
- operators: C,
351
+ operators: D,
365
352
  patients: X,
366
- searchedPatients: D,
353
+ searchedPatients: N,
367
354
  resolvePatientLabel: J,
368
355
  loadTask: Z,
369
- onCreateTask: F,
356
+ onCreateTask: P,
370
357
  onUpdateTask: se,
371
- onDeleteTask: N,
358
+ onDeleteTask: T,
372
359
  onSetTaskDone: ee,
373
- onSaved: q,
374
- onDeleted: P,
375
- readOnly: V,
360
+ onSaved: V,
361
+ onDeleted: O,
362
+ readOnly: z,
376
363
  withheld: L,
377
364
  maskPatient: te,
378
365
  fallbackError: ne
379
366
  }) {
380
- var xe;
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] = $(
367
+ var Ce;
368
+ const M = o === "edit", [m, S] = q(0), [ce, oe] = q(y);
369
+ ce !== y && (oe(y), y && S((e) => e + 1));
370
+ const U = `${o}|${l ?? ""}|${m}`, [p, fe] = q(
384
371
  () => ut(I)
385
- ), [G, Ee] = $(lt), [y, a] = $(), w = (e) => Ee((i) => ({ ...i, ...e })), he = (e) => fe((i) => ({ ...i, ...e })), [ge, ae] = $(U);
386
- ge !== U && (ae(U), fe(ut(I)), Ee(lt), a(void 0));
387
- const _ = x({
372
+ ), [G, Ee] = q(ct), [b, r] = q(), w = (e) => Ee((i) => ({ ...i, ...e })), he = (e) => fe((i) => ({ ...i, ...e })), [ge, re] = q(U);
373
+ ge !== U && (re(U), fe(ut(I)), Ee(ct), r(void 0));
374
+ const F = C({
388
375
  subject: U,
389
376
  saving: !1,
390
377
  deleting: !1,
391
378
  donePending: !1,
392
379
  accepted: !1
393
380
  });
394
- _.current.subject !== U && (_.current = {
381
+ F.current.subject !== U && (F.current = {
395
382
  subject: U,
396
383
  saving: !1,
397
384
  deleting: !1,
398
385
  donePending: !1,
399
386
  accepted: !1
400
387
  });
401
- const ve = x(!0);
402
- $e(() => (ve.current = !0, () => {
388
+ const ve = C(!0);
389
+ qe(() => (ve.current = !0, () => {
403
390
  ve.current = !1;
404
391
  }), []);
405
- const T = (e) => ve.current && _.current === e, ue = x(Z);
392
+ const R = (e) => ve.current && F.current === e, ue = C(Z);
406
393
  ue.current = Z;
407
- const d = !!Z, [R, l] = $(0), [s, f] = $(null), ke = x(s);
394
+ const d = !!Z, [A, c] = q(0), [s, f] = q(null), ke = C(s);
408
395
  ke.current = s;
409
- const be = b && O && !!c && d && !L;
410
- $e(() => {
396
+ const ye = y && M && !!l && d && !L;
397
+ qe(() => {
411
398
  const e = ue.current;
412
- if (!be || !c || !e) return;
413
- const i = _.current, h = ke.current;
399
+ if (!ye || !l || !e) return;
400
+ const i = F.current, h = ke.current;
414
401
  if ((h == null ? void 0 : h.subject) === i.subject && h.status === "ready")
415
402
  return;
416
403
  const u = new AbortController();
@@ -418,25 +405,25 @@ function fn({
418
405
  () => (
419
406
  /* Cleaned up before this ran (StrictMode's replay, a quick re-run):
420
407
  never call the host with a signal already aborted. */
421
- u.signal.aborted ? Promise.reject(u.signal.reason) : e(c, { signal: u.signal })
408
+ u.signal.aborted ? Promise.reject(u.signal.reason) : e(l, { signal: u.signal })
422
409
  )
423
410
  ).then(
424
411
  (g) => {
425
- u.signal.aborted || !T(i) || (fe(pn(g)), w({ done: g.done, confirmedDone: g.done }), a(g), f({ subject: i.subject, status: "ready" }));
412
+ u.signal.aborted || !R(i) || (fe(pn(g)), w({ done: g.done, confirmedDone: g.done }), r(g), f({ subject: i.subject, status: "ready" }));
426
413
  },
427
414
  (g) => {
428
- u.signal.aborted || !T(i) || f({
415
+ u.signal.aborted || !R(i) || f({
429
416
  subject: i.subject,
430
417
  status: "error",
431
418
  message: je(g, ne)
432
419
  });
433
420
  }
434
421
  ), () => u.abort();
435
- }, [be, U, R]);
436
- const j = O ? !c || !d ? "locked" : L ? "withheld" : (s == null ? void 0 : s.subject) === U ? s.status : "loading" : "ready", Q = () => {
437
- j === "error" && (f(null), l((e) => e + 1));
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, ye = O ? se : F, Se = () => {
422
+ }, [ye, U, A]);
423
+ const j = M ? !l || !d ? "locked" : L ? "withheld" : (s == null ? void 0 : s.subject) === U ? s.status : "loading" : "ready", Q = () => {
424
+ j === "error" && (f(null), c((e) => e + 1));
425
+ }, pe = p.typeId || (((Ce = x[0]) == null ? void 0 : Ce.id) ?? ""), _e = p.about === "nobody" || p.about === "patient" && p.patientId !== "" || p.about === "company" && p.companyId !== "" || p.about === "operator" && p.operatorId !== _, me = !z && p.note.trim() !== "" && p.date !== void 0 && _e && /* Required whenever the host offers a list. */
426
+ (x.length === 0 || pe !== "") && !G.saving && !G.donePending, be = M ? se : P, Se = () => {
440
427
  const { date: e, time: i } = p;
441
428
  return e ? {
442
429
  dateIso: new Date(
@@ -453,54 +440,54 @@ function fn({
453
440
  longer resolves: a real link must survive a Save that never
454
441
  offered to change it. */
455
442
  typeId: pe === "" ? void 0 : pe,
456
- assigneeId: p.assigneeId === z ? void 0 : p.assigneeId,
443
+ assigneeId: p.assigneeId === _ ? void 0 : p.assigneeId,
457
444
  /* ONE counterpart, decided by `about` alone: the platform refuses a
458
445
  task carrying two. Never gated on a list being loaded, or a list
459
446
  that empties mid-edit would unlink the task on Save. */
460
447
  patientId: p.about === "patient" && p.patientId ? p.patientId : void 0,
461
448
  companyId: p.about === "company" && p.companyId ? p.companyId : void 0,
462
- operatorId: p.about === "operator" && p.operatorId !== z ? p.operatorId : void 0,
449
+ operatorId: p.about === "operator" && p.operatorId !== _ ? p.operatorId : void 0,
463
450
  /* The last CONFIRMED value only, never an optimistic or rolled-back
464
451
  toggle. */
465
452
  done: G.confirmedDone
466
453
  } : void 0;
467
- }, E = (e) => Gt(new Error(`TaskEditor: ${e}`)), Te = () => {
468
- const e = _.current;
454
+ }, E = (e) => Qt(new Error(`TaskEditor: ${e}`)), Re = () => {
455
+ const e = F.current;
469
456
  if (j !== "ready") return E(`cannot save while ${j}.`);
470
- if (!ye) return E("the host gave no save seam.");
457
+ if (!be) return E("the host gave no save seam.");
471
458
  if (e.accepted) return E("this task was already saved.");
472
459
  if (e.deleting) return E("a delete is in flight.");
473
460
  if (e.saving || !me) return E("the task cannot be saved.");
474
461
  const i = Se();
475
462
  if (!i)
476
463
  return w({ showError: !0 }), E("the task has no date.");
477
- const h = c;
464
+ const h = l;
478
465
  e.saving = !0, w({ saving: !0, saveError: void 0 });
479
466
  const u = (async () => {
480
467
  try {
481
- if (O)
482
- await (se == null ? void 0 : se(h, i)), e.accepted = !0, T(e) && (w({ accepted: !0 }), q == null || q({
468
+ if (M)
469
+ await (se == null ? void 0 : se(h, i)), e.accepted = !0, R(e) && (w({ accepted: !0 }), V == null || V({
483
470
  ...i,
484
471
  id: h,
485
472
  done: i.done ?? !1
486
473
  }));
487
474
  else {
488
- const g = await (F == null ? void 0 : F(i));
489
- e.accepted = !0, T(e) && (w({ accepted: !0 }), g && (q == null || q(g)));
475
+ const g = await (P == null ? void 0 : P(i));
476
+ e.accepted = !0, R(e) && (w({ accepted: !0 }), g && (V == null || V(g)));
490
477
  }
491
478
  } catch (g) {
492
- throw T(e) && w({ saveError: je(g, ne) }), g;
479
+ throw R(e) && w({ saveError: je(g, ne) }), g;
493
480
  } finally {
494
- e.saving = !1, T(e) && w({ saving: !1 });
481
+ e.saving = !1, R(e) && w({ saving: !1 });
495
482
  }
496
483
  })();
497
484
  return u.catch(() => {
498
485
  }), u;
499
- }, Re = (e) => {
500
- const i = _.current;
486
+ }, Ae = (e) => {
487
+ const i = F.current;
501
488
  if (j !== "ready")
502
489
  return E(`cannot change Done while ${j}.`);
503
- if (!O || !c || !ee || V)
490
+ if (!M || !l || !ee || z)
504
491
  return E("the host gave no Done seam.");
505
492
  if (i.donePending) return E("a Done change is already pending.");
506
493
  if (i.saving || i.deleting)
@@ -508,38 +495,38 @@ function fn({
508
495
  if (i.accepted)
509
496
  return E("this task was already saved or deleted.");
510
497
  if (e === G.done) return Promise.resolve();
511
- const h = G.confirmedDone, u = c;
498
+ const h = G.confirmedDone, u = l;
512
499
  i.donePending = !0, w({ done: e, donePending: !0, doneError: void 0 });
513
500
  const g = (async () => {
514
501
  try {
515
- await ee(u, e), T(i) && w({ confirmedDone: e });
502
+ await ee(u, e), R(i) && w({ confirmedDone: e });
516
503
  } catch (W) {
517
- throw T(i) && w({
504
+ throw R(i) && w({
518
505
  done: h,
519
506
  doneError: je(W, ne)
520
507
  }), W;
521
508
  } finally {
522
- i.donePending = !1, T(i) && w({ donePending: !1 });
509
+ i.donePending = !1, R(i) && w({ donePending: !1 });
523
510
  }
524
511
  })();
525
512
  return g.catch(() => {
526
513
  }), g;
527
- }, Ae = () => {
528
- const e = _.current;
514
+ }, Be = () => {
515
+ const e = F.current;
529
516
  if (j !== "ready") return E(`cannot delete while ${j}.`);
530
- if (!O || !c || !N || V)
517
+ if (!M || !l || !T || z)
531
518
  return E("the host gave no delete seam.");
532
519
  if (e.saving || e.accepted || e.deleting)
533
520
  return E("the task cannot be deleted now.");
534
- const i = c;
521
+ const i = l;
535
522
  e.deleting = !0, w({ deleting: !0, deleteError: void 0 });
536
523
  const h = (async () => {
537
524
  try {
538
- await N(i), e.accepted = !0, T(e) && (w({ accepted: !0, confirmDeleteOpen: !1 }), P == null || P(i));
525
+ await T(i), e.accepted = !0, R(e) && (w({ accepted: !0, confirmDeleteOpen: !1 }), O == null || O(i));
539
526
  } catch (u) {
540
- throw T(e) && w({ deleteError: je(u, ne) }), u;
527
+ throw R(e) && w({ deleteError: je(u, ne) }), u;
541
528
  } finally {
542
- e.deleting = !1, T(e) && w({ deleting: !1 });
529
+ e.deleting = !1, R(e) && w({ deleting: !1 });
543
530
  }
544
531
  })();
545
532
  return h.catch(() => {
@@ -551,7 +538,7 @@ function fn({
551
538
  var g;
552
539
  if (j !== "ready")
553
540
  throw new Error(`TaskEditor: cannot set fields while ${j}.`);
554
- if (V) throw new Error("TaskEditor: the task is read-only.");
541
+ if (z) throw new Error("TaskEditor: the task is read-only.");
555
542
  const i = mn.filter(([W]) => e[W] !== void 0);
556
543
  if (i.length > 1)
557
544
  throw new Error(
@@ -562,18 +549,18 @@ function fn({
562
549
  throw new Error(
563
550
  `TaskEditor: about "${e.about}" does not match the ${h} id.`
564
551
  );
565
- if (e.typeId !== void 0 && !de(B, e.typeId, y == null ? void 0 : y.typeId))
552
+ if (e.typeId !== void 0 && !de(x, e.typeId, b == null ? void 0 : b.typeId))
566
553
  throw new Error(`TaskEditor: unknown typeId "${e.typeId}".`);
567
- if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(A, e.assigneeId, y == null ? void 0 : y.assigneeId))
554
+ if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(B, e.assigneeId, b == null ? void 0 : b.assigneeId))
568
555
  throw new Error(`TaskEditor: unknown assigneeId "${e.assigneeId}".`);
569
- if (e.companyId !== void 0 && !de(Y, e.companyId, y == null ? void 0 : y.companyId))
556
+ if (e.companyId !== void 0 && !de(Y, e.companyId, b == null ? void 0 : b.companyId))
570
557
  throw new Error(`TaskEditor: unknown companyId "${e.companyId}".`);
571
- if (e.operatorId !== void 0 && !de(C, e.operatorId, y == null ? void 0 : y.operatorId))
558
+ if (e.operatorId !== void 0 && !de(D, e.operatorId, b == null ? void 0 : b.operatorId))
572
559
  throw new Error(`TaskEditor: unknown operatorId "${e.operatorId}".`);
573
560
  if (e.patientId !== void 0) {
574
561
  if (te)
575
562
  throw new Error("TaskEditor: no patient can be set in privacy mode.");
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))
563
+ if (!(de(X, e.patientId, b == null ? void 0 : b.patientId) || N.has(e.patientId) || (J == null ? void 0 : J(e.patientId)) !== void 0))
577
564
  throw new Error(`TaskEditor: unknown patientId "${e.patientId}".`);
578
565
  }
579
566
  const u = {};
@@ -583,8 +570,8 @@ function fn({
583
570
  throw new Error(`TaskEditor: "${e.dateIso}" is not a date.`);
584
571
  u.date = W, u.time = Ye(W);
585
572
  }
586
- e.note !== void 0 && (u.note = e.note), e.typeId !== void 0 && (u.typeId = e.typeId), e.assigneeId !== void 0 && (u.assigneeId = e.assigneeId ?? z), e.about !== void 0 && (u.about = e.about), e.patientId !== void 0 && (u.patientId = e.patientId, u.about = "patient"), e.companyId !== void 0 && (u.companyId = e.companyId, u.about = "company"), e.operatorId !== void 0 && (u.operatorId = e.operatorId, u.about = "operator"), he(u);
587
- }, _e = () => {
573
+ e.note !== void 0 && (u.note = e.note), e.typeId !== void 0 && (u.typeId = e.typeId), e.assigneeId !== void 0 && (u.assigneeId = e.assigneeId ?? _), e.about !== void 0 && (u.about = e.about), e.patientId !== void 0 && (u.patientId = e.patientId, u.about = "patient"), e.companyId !== void 0 && (u.companyId = e.companyId, u.about = "company"), e.operatorId !== void 0 && (u.operatorId = e.operatorId, u.about = "operator"), he(u);
574
+ }, Fe = () => {
588
575
  const e = Se();
589
576
  return {
590
577
  mode: o,
@@ -606,26 +593,26 @@ function fn({
606
593
  retry: Q,
607
594
  fields: p,
608
595
  patchFields: he,
609
- stored: y,
596
+ stored: b,
610
597
  chosenTypeId: pe,
611
598
  canSave: me,
612
599
  /** What the agent's `canSave` reports: the button's rule plus the
613
600
  * status, the seam and a save that has not landed yet. */
614
- agentCanSave: j === "ready" && !!ye && me && !G.accepted,
615
- showSave: !V && !!ye,
616
- showDelete: O && !V && !!N && !!c,
617
- showDone: O && !V && !!ee,
601
+ agentCanSave: j === "ready" && !!be && me && !G.accepted,
602
+ showSave: !z && !!be,
603
+ showDelete: M && !z && !!T && !!l,
604
+ showDone: M && !z && !!ee,
618
605
  ui: G,
619
606
  patchUi: w,
620
607
  /** True once a save or delete landed in this session. */
621
- isAccepted: () => _.current.accepted,
608
+ isAccepted: () => F.current.accepted,
622
609
  /** A save or delete is in flight: closing now would lose its outcome. */
623
- isBusy: () => _.current.saving || _.current.deleting,
624
- submit: Te,
625
- setDone: Re,
626
- remove: Ae,
610
+ isBusy: () => F.current.saving || F.current.deleting,
611
+ submit: Re,
612
+ setDone: Ae,
613
+ remove: Be,
627
614
  applyPatch: Ie,
628
- draftState: _e
615
+ draftState: Fe
629
616
  };
630
617
  }
631
618
  const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
@@ -641,7 +628,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
641
628
  },
642
629
  defaultVariants: { variant: "panel" }
643
630
  }), mt = ht(
644
- `ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${rn}`,
631
+ `ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${Kt}`,
645
632
  {
646
633
  variants: {
647
634
  /** 'form': the fields in a column. 'notice': the locked notice. */
@@ -652,91 +639,91 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
652
639
  },
653
640
  defaultVariants: { layout: "form" }
654
641
  }
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
- (I) => !c.contains(I)
657
- ), gn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o, c) => {
642
+ ), a = (o) => `calendarWorkspace.taskEditor.${o}`, hn = (o, l, I) => I.includes(l) ? 1 : 0, Te = [], Ge = (o, l) => Array.from(o.querySelectorAll("[data-task-id]")).filter(
643
+ (I) => !l.contains(I)
644
+ ), gn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o, l) => {
658
645
  if (!o) return [];
659
646
  const I = Array.from(
660
647
  o.querySelectorAll("[data-action]")
661
648
  );
662
649
  return [
663
- ...I.filter((b) => c && b.dataset.action === c),
664
- ...I.filter((b) => b.dataset.action === "open-task"),
650
+ ...I.filter((y) => l && y.dataset.action === l),
651
+ ...I.filter((y) => y.dataset.action === "open-task"),
665
652
  ...Array.from(o.querySelectorAll(gn))
666
653
  ];
667
- }, vn = At(
654
+ }, vn = Bt(
668
655
  ({
669
656
  id: o,
670
- mode: c,
657
+ mode: l,
671
658
  taskId: I,
672
- initialDate: b,
673
- variant: B = "panel",
674
- open: A = !0,
659
+ initialDate: y,
660
+ variant: x = "panel",
661
+ open: B = !0,
675
662
  onExited: Y,
676
- taskTypes: C = Ne,
677
- assignees: X = Ne,
678
- companies: D = Ne,
679
- operators: J = Ne,
680
- patients: Z = Ne,
681
- searchPatients: F,
663
+ taskTypes: D = Te,
664
+ assignees: X = Te,
665
+ companies: N = Te,
666
+ operators: J = Te,
667
+ patients: Z = Te,
668
+ searchPatients: P,
682
669
  patientLabel: se,
683
- resolvePatientLabel: N,
670
+ resolvePatientLabel: T,
684
671
  companyLabel: ee,
685
- operatorLabel: q,
686
- backLabel: P,
687
- loadTask: V,
672
+ operatorLabel: V,
673
+ backLabel: O,
674
+ loadTask: z,
688
675
  onCreateTask: L,
689
676
  onUpdateTask: te,
690
677
  onDeleteTask: ne,
691
- onSetTaskDone: O,
678
+ onSetTaskDone: M,
692
679
  onCancel: m,
693
680
  onSaved: S,
694
- onDeleted: le,
681
+ onDeleted: ce,
695
682
  readOnly: oe = !1,
696
683
  privacy: U = !1,
697
684
  privacyMode: p = "notice",
698
685
  onPrivacyOff: fe,
699
686
  className: G,
700
687
  ...Ee
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
- mode: c,
688
+ }, b) => {
689
+ const { t: r } = gt("ui"), w = Ft(), he = o ?? w, ge = l === "edit", re = x === "subview", F = !re || B, ve = U && ge && p === "notice", R = U && !ve, [ue] = q(() => /* @__PURE__ */ new Map()), d = fn({
690
+ mode: l,
704
691
  taskId: I,
705
- initialDate: b,
706
- active: _,
707
- taskTypes: C,
692
+ initialDate: y,
693
+ active: F,
694
+ taskTypes: D,
708
695
  assignees: X,
709
- companies: D,
696
+ companies: N,
710
697
  operators: J,
711
698
  patients: Z,
712
699
  searchedPatients: ue,
713
- resolvePatientLabel: N,
714
- loadTask: V,
700
+ resolvePatientLabel: T,
701
+ loadTask: z,
715
702
  onCreateTask: L,
716
703
  onUpdateTask: te,
717
704
  onDeleteTask: ne,
718
- onSetTaskDone: O,
705
+ onSetTaskDone: M,
719
706
  onSaved: S,
720
- onDeleted: le,
707
+ onDeleted: ce,
721
708
  readOnly: oe,
722
709
  withheld: ve,
723
- maskPatient: T,
724
- fallbackError: a("emptyState.error.title")
725
- }), { status: R, fields: l, ui: s, stored: f } = d, ke = x(F);
726
- ke.current = F;
727
- const be = !!F, j = Fe(
728
- () => be ? async (t, v) => {
710
+ maskPatient: R,
711
+ fallbackError: r("emptyState.error.title")
712
+ }), { status: A, fields: c, ui: s, stored: f } = d, ke = C(P);
713
+ ke.current = P;
714
+ const ye = !!P, j = Pe(
715
+ () => ye ? async (t, v) => {
729
716
  const K = await ke.current(t, v);
730
717
  for (const ie of K)
731
718
  ue.set(ie.id, ie.name);
732
719
  return K;
733
720
  } : void 0,
734
- [be, ue]
735
- ), Q = x(d);
721
+ [ye, ue]
722
+ ), Q = C(d);
736
723
  Q.current = d;
737
- const pe = x(m);
724
+ const pe = C(m);
738
725
  pe.current = m;
739
- const ze = Fe(
726
+ const _e = Pe(
740
727
  () => ({
741
728
  getStatus: () => Q.current.status,
742
729
  getDraft: () => Q.current.draftState(),
@@ -753,40 +740,40 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
753
740
  }),
754
741
  []
755
742
  );
756
- Vt(ln, _ ? ze : null, he);
757
- const me = x(null), ye = Fe(
758
- () => Ut(y, me),
759
- [y]
760
- ), Se = x(null), E = x(null), Te = x(!1);
761
- ae && A && !Te.current && (E.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null), Te.current = ae && A;
762
- const Re = x(A);
763
- Re.current = A;
764
- const Ae = x(I);
765
- Ae.current = ge ? I : void 0, $e(() => {
743
+ zt(cn, F ? _e : null, he);
744
+ const me = C(null), be = Pe(
745
+ () => Ut(b, me),
746
+ [b]
747
+ ), Se = C(null), E = C(null), Re = C(!1);
748
+ re && B && !Re.current && (E.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null), Re.current = re && B;
749
+ const Ae = C(B);
750
+ Ae.current = B;
751
+ const Be = C(I);
752
+ Be.current = ge ? I : void 0, qe(() => {
766
753
  var st;
767
754
  const t = me.current, v = t == null ? void 0 : t.parentElement;
768
- if (!ae || !A || !t || !v) return;
769
- const K = E.current, ie = K && v.contains(K) && !t.contains(K) ? K : null, Tt = Ae.current, Ce = (ie == null ? void 0 : ie.closest("[data-task-id]")) ?? Ge(v, t).find((Be) => Be.dataset.taskId === Tt), at = Ce == null ? void 0 : Ce.dataset.taskId, rt = (st = ie == null ? void 0 : ie.closest("[data-action]")) == null ? void 0 : st.dataset.action, it = Ce ? Ge(v, t).indexOf(Ce) : -1;
755
+ if (!re || !B || !t || !v) return;
756
+ const K = E.current, ie = K && v.contains(K) && !t.contains(K) ? K : null, Rt = Be.current, De = (ie == null ? void 0 : ie.closest("[data-task-id]")) ?? Ge(v, t).find((xe) => xe.dataset.taskId === Rt), rt = De == null ? void 0 : De.dataset.taskId, at = (st = ie == null ? void 0 : ie.closest("[data-action]")) == null ? void 0 : st.dataset.action, it = De ? Ge(v, t).indexOf(De) : -1;
770
757
  return () => {
771
- if (Re.current && t.isConnected) return;
772
- const Be = document.activeElement;
773
- if (!v.isConnected || Be && Be !== document.body) return;
774
- const Ue = Ge(v, t), Rt = [
758
+ if (Ae.current && t.isConnected) return;
759
+ const xe = document.activeElement;
760
+ if (!v.isConnected || xe && xe !== document.body) return;
761
+ const Ue = Ge(v, t), At = [
775
762
  ...ft(
776
- Ue.find((we) => at !== void 0 && we.dataset.taskId === at),
777
- rt
763
+ Ue.find((we) => rt !== void 0 && we.dataset.taskId === rt),
764
+ at
778
765
  ),
779
766
  /* The row that took its place, or the last row when it was last. */
780
- ...it >= 0 ? ft(Ue[Math.min(it, Ue.length - 1)], rt) : [],
767
+ ...it >= 0 ? ft(Ue[Math.min(it, Ue.length - 1)], at) : [],
781
768
  v.querySelector('[data-action="add-task"]'),
782
769
  v.querySelector("[data-tasks-panel-region]")
783
770
  ];
784
- for (const we of Rt)
771
+ for (const we of At)
785
772
  if (!(!we || t.contains(we)) && (we.focus(), document.activeElement === we))
786
773
  return;
787
774
  };
788
- }, [A, ae]);
789
- const de = x(null), Ie = x(!1), _e = (t) => () => {
775
+ }, [B, re]);
776
+ const de = C(null), Ie = C(!1), Fe = (t) => () => {
790
777
  Ie.current = !0, t();
791
778
  };
792
779
  Lt(() => {
@@ -797,68 +784,68 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
797
784
  Ie.current = !1;
798
785
  return;
799
786
  }
800
- R !== "loading" && (Ie.current = !1), (K = R === "error" ? de.current : t) == null || K.focus({
787
+ A !== "loading" && (Ie.current = !1), (K = A === "error" ? de.current : t) == null || K.focus({
801
788
  preventScroll: !0
802
789
  });
803
- }, [R]);
804
- const xe = a(r(ge ? "editTitle" : "title")), e = D.length > 0, i = J.length > 0, h = be || Z.length > 0, u = Fe(
805
- () => D.map((t) => ({ value: t.id, label: t.label })),
806
- [D]
790
+ }, [A]);
791
+ const Ce = r(a(ge ? "editTitle" : "title")), e = N.length > 0, i = J.length > 0, h = ye || Z.length > 0, u = Pe(
792
+ () => N.map((t) => ({ value: t.id, label: t.label })),
793
+ [N]
807
794
  ), g = (t) => {
808
795
  var v;
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 }), bt = [
811
- { value: z, label: a(r("operatorNone")) },
796
+ return (T == null ? void 0 : T(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) ?? r("calendarWorkspace.details.patientNotLoaded");
797
+ }, W = (t) => t === (f == null ? void 0 : f.operatorId) && V ? V : r(a("operatorUnresolved"), { id: t }), yt = [
798
+ { value: _, label: r(a("operatorNone")) },
812
799
  ...J.map((t) => ({ value: t.id, label: t.label })),
813
800
  /* An operator the roster no longer lists is still a real link, so it
814
801
  stays pickable and survives a Save. */
815
- ...l.operatorId !== z && !J.some((t) => t.id === l.operatorId) ? [
802
+ ...c.operatorId !== _ && !J.some((t) => t.id === c.operatorId) ? [
816
803
  {
817
- value: l.operatorId,
818
- label: W(l.operatorId)
804
+ value: c.operatorId,
805
+ label: W(c.operatorId)
819
806
  }
820
807
  ] : []
821
- ], yt = C.some((t) => t.custom) && C.some((t) => !t.custom), It = [
822
- ...C.map((t) => ({
808
+ ], bt = D.some((t) => t.custom) && D.some((t) => !t.custom), It = [
809
+ ...D.map((t) => ({
823
810
  value: t.id,
824
811
  label: t.label,
825
- group: yt ? a(r(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
812
+ group: bt ? r(a(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
826
813
  })),
827
814
  /* An id the list no longer resolves is still a real link: offered as
828
815
  its own option so Save re-sends it. */
829
- ...d.chosenTypeId && !C.some((t) => t.id === d.chosenTypeId) ? [
816
+ ...d.chosenTypeId && !D.some((t) => t.id === d.chosenTypeId) ? [
830
817
  {
831
818
  value: d.chosenTypeId,
832
- label: a(r("typeUnresolved"), { id: d.chosenTypeId })
819
+ label: r(a("typeUnresolved"), { id: d.chosenTypeId })
833
820
  }
834
821
  ] : []
835
822
  ], wt = [
836
- { value: z, label: a(r("assigneeNone")) },
823
+ { value: _, label: r(a("assigneeNone")) },
837
824
  ...X.map((t) => ({ value: t.id, label: t.label })),
838
- ...l.assigneeId !== z && !X.some((t) => t.id === l.assigneeId) ? [
825
+ ...c.assigneeId !== _ && !X.some((t) => t.id === c.assigneeId) ? [
839
826
  {
840
- value: l.assigneeId,
841
- label: a(r("assigneeUnresolved"), { id: l.assigneeId })
827
+ value: c.assigneeId,
828
+ label: r(a("assigneeUnresolved"), { id: c.assigneeId })
842
829
  }
843
830
  ] : []
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
- ] }), qe = s.saving || s.deleting, Je = () => {
831
+ ], ae = c.about === "company" && c.companyId && !N.some((t) => t.id === c.companyId) ? c.companyId : void 0, Et = ae && ae === (f == null ? void 0 : f.companyId) && ee ? ee : r(a("companyUnresolved"), { id: ae }), Xe = /* @__PURE__ */ k($, { variant: "info", announce: "off", icon: /* @__PURE__ */ n(Yt, { "aria-hidden": "true" }), children: [
832
+ /* @__PURE__ */ n($.Title, { as: "p", children: r("calendarWorkspace.details.readOnlyTitle") }),
833
+ /* @__PURE__ */ n($.Description, { children: r(a("readOnlyBody")) })
834
+ ] }), Ve = s.saving || s.deleting, Je = () => {
848
835
  d.isBusy() || m();
849
836
  }, kt = /* @__PURE__ */ n(
850
837
  We,
851
838
  {
852
839
  size: "sm",
853
840
  intent: "outline",
854
- icon: /* @__PURE__ */ n(Yt, { "aria-hidden": "true" }),
855
- "aria-label": a(r("cancel")),
856
- tooltip: a(r("cancel")),
841
+ icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" }),
842
+ "aria-label": r(a("cancel")),
843
+ tooltip: r(a("cancel")),
857
844
  "data-action": "cancel-task",
858
- disabled: qe,
845
+ disabled: Ve,
859
846
  onClick: Je
860
847
  }
861
- ), Ve = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(De, { children: [
848
+ ), ze = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(Ne, { children: [
862
849
  t && d.showDelete ? /* @__PURE__ */ n(
863
850
  We,
864
851
  {
@@ -866,18 +853,18 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
866
853
  size: "sm",
867
854
  intent: "destructiveOutline",
868
855
  icon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
869
- "aria-label": a(r("delete")),
870
- tooltip: a(r("delete")),
856
+ "aria-label": r(a("delete")),
857
+ tooltip: r(a("delete")),
871
858
  "data-action": "delete-task",
872
- disabled: qe || s.accepted,
859
+ disabled: Ve || s.accepted,
873
860
  onClick: () => d.patchUi({ confirmDeleteOpen: !0, deleteError: void 0 })
874
861
  }
875
862
  ) : null,
876
863
  /* @__PURE__ */ k(
877
- Ft,
864
+ Pt,
878
865
  {
879
866
  role: "toolbar",
880
- "aria-label": a(r("actionsLabel")),
867
+ "aria-label": r(a("actionsLabel")),
881
868
  className: "ds:ms-auto",
882
869
  children: [
883
870
  kt,
@@ -887,20 +874,20 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
887
874
  size: "sm",
888
875
  intent: "primary",
889
876
  icon: s.saving ? /* @__PURE__ */ n(
890
- en,
877
+ nn,
891
878
  {
892
879
  "aria-hidden": "true",
893
880
  className: "ds:animate-spin ds:motion-reduce:animate-none"
894
881
  }
895
- ) : /* @__PURE__ */ n(an, { "aria-hidden": "true" }),
896
- "aria-label": a(r("save")),
897
- tooltip: a(r("save")),
898
- disabled: !Ve && !d.canSave,
899
- "aria-disabled": Ve || void 0,
882
+ ) : /* @__PURE__ */ n(sn, { "aria-hidden": "true" }),
883
+ "aria-label": r(a("save")),
884
+ tooltip: r(a("save")),
885
+ disabled: !ze && !d.canSave,
886
+ "aria-disabled": ze || void 0,
900
887
  "aria-busy": s.saving || void 0,
901
888
  "data-action": "save-task",
902
889
  onClick: () => {
903
- Ve || d.submit();
890
+ ze || d.submit();
904
891
  }
905
892
  }
906
893
  ) : null
@@ -909,10 +896,10 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
909
896
  ),
910
897
  t && d.showSave ? (
911
898
  /* Out of flow, so it never moves the footer's two ends. */
912
- /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? a(r("saving")) : "" })
899
+ /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? r(a("saving")) : "" })
913
900
  ) : null
914
901
  ] }), St = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
915
- /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("common.loading") }),
902
+ /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: r("common.loading") }),
916
903
  /* @__PURE__ */ k(
917
904
  "div",
918
905
  {
@@ -945,55 +932,55 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
945
932
  ]
946
933
  }
947
934
  )
948
- ] }), xt = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
949
- /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: d.loadError }) }),
935
+ ] }), Ct = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
936
+ /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: d.loadError }) }),
950
937
  /* @__PURE__ */ n(
951
- Me,
938
+ $e,
952
939
  {
953
940
  ref: de,
954
941
  intent: "outline",
955
942
  "data-action": "retry-load",
956
- onClick: _e(d.retry),
957
- children: a("emptyState.error.cta")
943
+ onClick: Fe(d.retry),
944
+ children: r("emptyState.error.cta")
958
945
  }
959
946
  )
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(
947
+ ] }), Dt = /* @__PURE__ */ n("fieldset", { disabled: !0, className: mt({ layout: "notice" }), children: Xe }), Nt = () => c.about !== "patient" ? null : R ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(Me, { value: tn(), disabled: !0, readOnly: !0 }) }) : h ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(
961
948
  dn,
962
949
  {
963
- value: l.patientId,
950
+ value: c.patientId,
964
951
  onValueChange: (t) => d.patchFields({ patientId: t }),
965
952
  patients: Z,
966
953
  searchPatients: j,
967
- selectedLabel: l.patientId ? g(l.patientId) : void 0,
968
- placeholder: a("calendarWorkspace.editor.patientSearch"),
954
+ selectedLabel: c.patientId ? g(c.patientId) : void 0,
955
+ placeholder: r("calendarWorkspace.editor.patientSearch"),
969
956
  disabled: oe
970
957
  }
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: [
958
+ ) }) : c.patientId ? /* @__PURE__ */ n(H, { label: r(a("aboutPatient")), children: /* @__PURE__ */ n(Me, { value: g(c.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: oe, className: mt(), children: [
972
959
  oe ? Xe : null,
973
- /* @__PURE__ */ n(H, { label: a(r("date")), children: /* @__PURE__ */ n(
974
- Bt,
960
+ /* @__PURE__ */ n(H, { label: r(a("date")), children: /* @__PURE__ */ n(
961
+ xt,
975
962
  {
976
- value: l.date,
963
+ value: c.date,
977
964
  onChange: (t) => d.patchFields({ date: t })
978
965
  }
979
966
  ) }),
980
- /* @__PURE__ */ n(H, { label: a(r("time")), children: /* @__PURE__ */ n(
981
- qt,
967
+ /* @__PURE__ */ n(H, { label: r(a("time")), children: /* @__PURE__ */ n(
968
+ Vt,
982
969
  {
983
- value: l.time,
970
+ value: c.time,
984
971
  onChange: (t) => d.patchFields({ time: t })
985
972
  }
986
973
  ) }),
987
974
  /* @__PURE__ */ n(
988
975
  H,
989
976
  {
990
- label: a(r("note")),
977
+ label: r(a("note")),
991
978
  required: !0,
992
- error: s.showError && l.note.trim() === "" ? a(r("noteRequired")) : void 0,
979
+ error: s.showError && c.note.trim() === "" ? r(a("noteRequired")) : void 0,
993
980
  children: /* @__PURE__ */ n(
994
- zt,
981
+ _t,
995
982
  {
996
- value: l.note,
983
+ value: c.note,
997
984
  onChange: (t) => {
998
985
  d.patchFields({ note: t.target.value }), d.patchUi({ showError: !1 });
999
986
  },
@@ -1003,7 +990,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1003
990
  )
1004
991
  }
1005
992
  ),
1006
- C.length > 0 ? /* @__PURE__ */ n(H, { label: a(r("type")), required: !0, children: /* @__PURE__ */ n(
993
+ D.length > 0 ? /* @__PURE__ */ n(H, { label: r(a("type")), required: !0, children: /* @__PURE__ */ n(
1007
994
  Ke,
1008
995
  {
1009
996
  options: It,
@@ -1011,109 +998,109 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1011
998
  onValueChange: (t) => t && d.patchFields({ typeId: t })
1012
999
  }
1013
1000
  ) }) : null,
1014
- X.length > 0 ? /* @__PURE__ */ n(H, { label: a(r("assignee")), children: /* @__PURE__ */ n(
1001
+ X.length > 0 ? /* @__PURE__ */ n(H, { label: r(a("assignee")), children: /* @__PURE__ */ n(
1015
1002
  Ke,
1016
1003
  {
1017
1004
  options: wt,
1018
- value: l.assigneeId,
1005
+ value: c.assigneeId,
1019
1006
  onValueChange: (t) => t && d.patchFields({ assigneeId: t })
1020
1007
  }
1021
1008
  ) }) : null,
1022
1009
  /* @__PURE__ */ k(
1023
1010
  jt,
1024
1011
  {
1025
- label: a(r("about")),
1012
+ label: r(a("about")),
1026
1013
  variant: "segmented",
1027
- className: sn,
1028
- value: l.about,
1014
+ className: Wt,
1015
+ value: c.about,
1029
1016
  onValueChange: (t) => d.patchFields({ about: t }),
1030
1017
  children: [
1031
1018
  /* @__PURE__ */ n(
1032
- Pe,
1019
+ Oe,
1033
1020
  {
1034
1021
  value: "nobody",
1035
- label: a(r("aboutNobody")),
1036
- icon: /* @__PURE__ */ n(nn, { "aria-hidden": "true" })
1022
+ label: r(a("aboutNobody")),
1023
+ icon: /* @__PURE__ */ n(rn, { "aria-hidden": "true" })
1037
1024
  }
1038
1025
  ),
1039
- h || l.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ n(
1040
- Pe,
1026
+ h || c.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ n(
1027
+ Oe,
1041
1028
  {
1042
1029
  value: "patient",
1043
- label: a(r("aboutPatient")),
1044
- icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" })
1030
+ label: r(a("aboutPatient")),
1031
+ icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" })
1045
1032
  }
1046
1033
  ) : null,
1047
- e || l.about === "company" || f != null && f.companyId ? /* @__PURE__ */ n(
1048
- Pe,
1034
+ e || c.about === "company" || f != null && f.companyId ? /* @__PURE__ */ n(
1035
+ Oe,
1049
1036
  {
1050
1037
  value: "company",
1051
- label: a(r("aboutCompany")),
1052
- icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" })
1038
+ label: r(a("aboutCompany")),
1039
+ icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
1053
1040
  }
1054
1041
  ) : null,
1055
- i || l.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */ n(
1056
- Pe,
1042
+ i || c.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */ n(
1043
+ Oe,
1057
1044
  {
1058
1045
  value: "operator",
1059
- label: a(r("aboutOperator")),
1060
- icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
1046
+ label: r(a("aboutOperator")),
1047
+ icon: /* @__PURE__ */ n(en, { "aria-hidden": "true" })
1061
1048
  }
1062
1049
  ) : null
1063
1050
  ]
1064
1051
  }
1065
1052
  ),
1066
- Dt(),
1067
- l.about === "company" ? /* @__PURE__ */ k(De, { children: [
1068
- re ? /* @__PURE__ */ n(H, { label: a(r("companyName")), children: /* @__PURE__ */ n(Oe, { value: Et, disabled: !0, readOnly: !0 }) }) : null,
1053
+ Nt(),
1054
+ c.about === "company" ? /* @__PURE__ */ k(Ne, { children: [
1055
+ ae ? /* @__PURE__ */ n(H, { label: r(a("companyName")), children: /* @__PURE__ */ n(Me, { value: Et, disabled: !0, readOnly: !0 }) }) : null,
1069
1056
  e ? /* @__PURE__ */ n(
1070
1057
  H,
1071
1058
  {
1072
- label: a(
1073
- r(re ? "companyReplace" : "companyName")
1059
+ label: r(
1060
+ a(ae ? "companyReplace" : "companyName")
1074
1061
  ),
1075
1062
  children: /* @__PURE__ */ n(
1076
1063
  Qe,
1077
1064
  {
1078
1065
  options: u,
1079
- value: re ? "" : l.companyId,
1080
- onValueChange: (t) => re ? t && d.patchFields({ companyId: t }) : d.patchFields({ companyId: t }),
1081
- clearable: !re && !oe,
1066
+ value: ae ? "" : c.companyId,
1067
+ onValueChange: (t) => ae ? t && d.patchFields({ companyId: t }) : d.patchFields({ companyId: t }),
1068
+ clearable: !ae && !oe,
1082
1069
  filter: hn,
1083
- placeholder: a(r("companySearch")),
1084
- "aria-label": a(
1085
- r(re ? "companyReplace" : "companyName")
1070
+ placeholder: r(a("companySearch")),
1071
+ "aria-label": r(
1072
+ a(ae ? "companyReplace" : "companyName")
1086
1073
  )
1087
1074
  }
1088
1075
  )
1089
1076
  }
1090
1077
  ) : null
1091
1078
  ] }) : null,
1092
- l.about === "operator" ? i ? /* @__PURE__ */ n(H, { label: a(r("operator")), children: /* @__PURE__ */ n(
1079
+ c.about === "operator" ? i ? /* @__PURE__ */ n(H, { label: r(a("operator")), children: /* @__PURE__ */ n(
1093
1080
  Ke,
1094
1081
  {
1095
- options: bt,
1096
- value: l.operatorId,
1082
+ options: yt,
1083
+ value: c.operatorId,
1097
1084
  onValueChange: (t) => t && d.patchFields({ operatorId: t })
1098
1085
  }
1099
- ) }) : l.operatorId !== z ? (
1086
+ ) }) : c.operatorId !== _ ? (
1100
1087
  /* No roster to pick from: name the link read-only. */
1101
- /* @__PURE__ */ n(H, { label: a(r("operator")), children: /* @__PURE__ */ n(
1102
- Oe,
1088
+ /* @__PURE__ */ n(H, { label: r(a("operator")), children: /* @__PURE__ */ n(
1089
+ Me,
1103
1090
  {
1104
- value: W(l.operatorId),
1091
+ value: W(c.operatorId),
1105
1092
  disabled: !0,
1106
1093
  readOnly: !0
1107
1094
  }
1108
1095
  ) })
1109
1096
  ) : null : null,
1110
- d.showDone ? /* @__PURE__ */ k(De, { children: [
1097
+ d.showDone ? /* @__PURE__ */ k(Ne, { children: [
1111
1098
  /* @__PURE__ */ n(
1112
- $t,
1099
+ qt,
1113
1100
  {
1114
- label: a(r("done")),
1101
+ label: r(a("done")),
1115
1102
  checked: s.done,
1116
- disabled: qe || s.accepted,
1103
+ disabled: Ve || s.accepted,
1117
1104
  "aria-disabled": s.donePending || void 0,
1118
1105
  "aria-busy": s.donePending || void 0,
1119
1106
  className: "ds:aria-disabled:cursor-progress",
@@ -1122,26 +1109,26 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1122
1109
  }
1123
1110
  }
1124
1111
  ),
1125
- s.doneError ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.doneError }) }) : null
1112
+ s.doneError ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.doneError }) }) : null
1126
1113
  ] }) : null,
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
- Ht,
1114
+ s.saveError ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.saveError }) }) : null,
1115
+ s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.deleteError }) }) : null
1116
+ ] }), tt = A === "loading" ? St : A === "error" ? Ct : A === "locked" ? Dt : A === "withheld" ? /* @__PURE__ */ n(
1117
+ Gt,
1131
1118
  {
1132
- onTurnOff: fe ? _e(fe) : void 0
1119
+ onTurnOff: fe ? Fe(fe) : void 0
1133
1120
  }
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
- ce,
1121
+ ) : re ? et : /* @__PURE__ */ n($t, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = A === "ready" ? Ze(!0) : A === "locked" || A === "withheld" ? Ze(!1) : null, Tt = A === "ready" && d.showDelete, nt = ge ? /* @__PURE__ */ n(
1122
+ le,
1136
1123
  {
1137
- open: s.confirmDeleteOpen && _,
1124
+ open: s.confirmDeleteOpen && F,
1138
1125
  onOpenChange: (t) => {
1139
1126
  s.deleting || d.patchUi(
1140
1127
  t ? { confirmDeleteOpen: !0 } : { confirmDeleteOpen: !1, deleteError: void 0 }
1141
1128
  );
1142
1129
  },
1143
1130
  children: /* @__PURE__ */ k(
1144
- ce.Content,
1131
+ le.Content,
1145
1132
  {
1146
1133
  size: "sm",
1147
1134
  variant: "alert",
@@ -1150,15 +1137,15 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1150
1137
  t.preventDefault(), d.isAccepted() || (v = Se.current) == null || v.focus();
1151
1138
  },
1152
1139
  children: [
1153
- /* @__PURE__ */ k(ce.Header, { children: [
1154
- /* @__PURE__ */ n(ce.Title, { children: a(r("deleteConfirmTitle")) }),
1155
- /* @__PURE__ */ n(ce.Description, { children: a(r("deleteConfirmBody")) })
1140
+ /* @__PURE__ */ k(le.Header, { children: [
1141
+ /* @__PURE__ */ n(le.Title, { children: r(a("deleteConfirmTitle")) }),
1142
+ /* @__PURE__ */ n(le.Description, { children: r(a("deleteConfirmBody")) })
1156
1143
  ] }),
1157
- s.deleteError ? /* @__PURE__ */ n(ce.Body, { children: /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.deleteError }) }) }) : null,
1158
- /* @__PURE__ */ k(ce.Footer, { divider: !0, children: [
1159
- /* @__PURE__ */ n(ce.Close, { asChild: !0, children: /* @__PURE__ */ n(Me, { intent: "outline", "aria-disabled": s.deleting || void 0, children: a(r("deleteCancel")) }) }),
1144
+ s.deleteError ? /* @__PURE__ */ n(le.Body, { children: /* @__PURE__ */ n($, { variant: "error", children: /* @__PURE__ */ n($.Description, { children: s.deleteError }) }) }) : null,
1145
+ /* @__PURE__ */ k(le.Footer, { divider: !0, children: [
1146
+ /* @__PURE__ */ n(le.Close, { asChild: !0, children: /* @__PURE__ */ n($e, { intent: "outline", "aria-disabled": s.deleting || void 0, children: r(a("deleteCancel")) }) }),
1160
1147
  /* @__PURE__ */ n(
1161
- Me,
1148
+ $e,
1162
1149
  {
1163
1150
  intent: "destructive",
1164
1151
  startIcon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
@@ -1167,7 +1154,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1167
1154
  onClick: () => {
1168
1155
  s.deleting || d.remove();
1169
1156
  },
1170
- children: a(r("deleteConfirm"))
1157
+ children: r(a("deleteConfirm"))
1171
1158
  }
1172
1159
  )
1173
1160
  ] })
@@ -1178,46 +1165,46 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1178
1165
  ) : null, ot = {
1179
1166
  "data-component": "task-editor",
1180
1167
  "data-component-id": he,
1181
- "data-variant": B,
1182
- "data-status": R
1168
+ "data-variant": x,
1169
+ "data-status": A
1183
1170
  };
1184
- return ae ? /* @__PURE__ */ k(De, { children: [
1171
+ return re ? /* @__PURE__ */ k(Ne, { children: [
1185
1172
  /* @__PURE__ */ n(
1186
- Ot,
1173
+ Mt,
1187
1174
  {
1188
1175
  ...Ee,
1189
1176
  "data-component-id": he,
1190
- "data-variant": B,
1191
- "data-status": R,
1192
- ref: ye,
1193
- open: A,
1177
+ "data-variant": x,
1178
+ "data-status": A,
1179
+ ref: be,
1180
+ open: B,
1194
1181
  onBack: Je,
1195
1182
  onExited: Y,
1196
- title: xe,
1197
- icon: /* @__PURE__ */ n(ct, { "aria-hidden": "true" }),
1198
- backLabel: P ?? a(r("back")),
1183
+ title: Ce,
1184
+ icon: /* @__PURE__ */ n(lt, { "aria-hidden": "true" }),
1185
+ backLabel: O ?? r(a("back")),
1199
1186
  footer: Le,
1200
- footerAlign: Nt ? "between" : "end",
1187
+ footerAlign: Tt ? "between" : "end",
1201
1188
  className: G,
1202
- children: /* @__PURE__ */ n("div", { ...ot, className: pt({ variant: B }), children: tt })
1189
+ children: /* @__PURE__ */ n("div", { ...ot, className: pt({ variant: x }), children: tt })
1203
1190
  }
1204
1191
  ),
1205
1192
  nt
1206
- ] }) : /* @__PURE__ */ k(De, { children: [
1193
+ ] }) : /* @__PURE__ */ k(Ne, { children: [
1207
1194
  /* @__PURE__ */ k(
1208
1195
  "div",
1209
1196
  {
1210
1197
  tabIndex: -1,
1211
1198
  ...Ee,
1212
1199
  ...ot,
1213
- ref: ye,
1214
- className: pt({ variant: B, className: G }),
1200
+ ref: be,
1201
+ className: pt({ variant: x, className: G }),
1215
1202
  children: [
1216
1203
  /* @__PURE__ */ n(
1217
- Pt,
1204
+ Ot,
1218
1205
  {
1219
- title: xe,
1220
- icon: /* @__PURE__ */ n(ct, { "aria-hidden": "true" }),
1206
+ title: Ce,
1207
+ icon: /* @__PURE__ */ n(lt, { "aria-hidden": "true" }),
1221
1208
  sticky: !0,
1222
1209
  divider: !0
1223
1210
  }
@@ -1233,10 +1220,9 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
1233
1220
  );
1234
1221
  vn.displayName = "TaskEditor";
1235
1222
  export {
1236
- rn as E,
1237
1223
  dn as P,
1238
- an as S,
1224
+ sn as S,
1239
1225
  vn as T,
1240
- ln as t
1226
+ cn as t
1241
1227
  };
1242
- //# sourceMappingURL=task-editor-D--LwVrg.js.map
1228
+ //# sourceMappingURL=task-editor-CSa6vQ9r.js.map