@alfadocs/ui-kit 1.149.0 → 1.150.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 (183) hide show
  1. package/dist/_chunks/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
  2. package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
  3. package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
  4. package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
  5. package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
  6. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
  7. package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
  9. package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-Dx9_KIWA.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
  11. package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
  12. package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
  13. package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
  14. package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
  15. package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
  16. package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
  18. package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
  19. package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
  20. package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
  21. package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
  22. package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
  23. package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
  24. package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
  25. package/dist/_chunks/folder-CH9PJHou.js +36 -0
  26. package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
  27. package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
  28. package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
  29. package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
  30. package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
  31. package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
  32. package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
  33. package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
  34. package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
  35. package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
  36. package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
  37. package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
  38. package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
  39. package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
  40. package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
  41. package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
  42. package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
  43. package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
  44. package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
  45. package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
  46. package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
  47. package/dist/_chunks/{task-editor-4zFL10oM.js → task-editor-CIHQQRtP.js} +219 -210
  48. package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
  49. package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
  50. package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
  51. package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
  52. package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
  53. package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
  54. package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
  55. package/dist/agent-catalog.json +15 -1
  56. package/dist/appointment-editor-panel/index.js +4 -4
  57. package/dist/booking-tools-data/index.js +1 -1
  58. package/dist/browser-support.js +1 -1
  59. package/dist/calendar-action-buttons/index.js +1 -1
  60. package/dist/components/_shared/appointment-format.d.ts +4 -0
  61. package/dist/components/_shared/patient-field-row.d.ts +5 -1
  62. package/dist/components/ai-summary-panel/index.js +1 -1
  63. package/dist/components/appointment-card/index.js +2 -2
  64. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
  65. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
  66. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
  67. package/dist/components/appointment-details-panel/index.js +2 -2
  68. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
  69. package/dist/components/appointment-peek/index.js +1 -1
  70. package/dist/components/appointment-timeline/index.js +1 -1
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calls-panel/index.js +1 -1
  73. package/dist/components/care-plan-card/index.js +1 -1
  74. package/dist/components/care-plan-entry-card/index.js +1 -1
  75. package/dist/components/communications-panel/index.js +1 -1
  76. package/dist/components/control-room-rail/index.js +1 -1
  77. package/dist/components/document-preview/index.js +1 -1
  78. package/dist/components/editable-description/editable-description.d.ts +7 -0
  79. package/dist/components/editable-description/index.js +1 -1
  80. package/dist/components/entity-summary/index.js +1 -1
  81. package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
  82. package/dist/components/feature-preview-switch/index.d.ts +2 -0
  83. package/dist/components/feature-preview-switch/index.js +5 -0
  84. package/dist/components/file-manager/index.js +1 -1
  85. package/dist/components/index.d.ts +1 -0
  86. package/dist/components/notes-panel/index.js +1 -1
  87. package/dist/components/notes-panel/notes-panel.d.ts +20 -0
  88. package/dist/components/optical-prescription/index.js +1 -1
  89. package/dist/components/panel-header/index.js +1 -1
  90. package/dist/components/panel-header/panel-header.d.ts +8 -0
  91. package/dist/components/panel-subview/index.js +1 -1
  92. package/dist/components/patient-details/index.js +1 -1
  93. package/dist/components/patient-summary-card/index.js +1 -1
  94. package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
  95. package/dist/components/patient-table/index.js +1 -1
  96. package/dist/components/payment-card/index.js +1 -1
  97. package/dist/components/radiograph-panel/index.js +1 -1
  98. package/dist/components/registry-connection-panel/index.js +1 -1
  99. package/dist/components/reviews-panel/index.js +1 -1
  100. package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
  101. package/dist/components/rich-text-editor/index.js +1 -1
  102. package/dist/components/task-editor/index.js +1 -1
  103. package/dist/components/tasks-panel/index.js +1 -1
  104. package/dist/components/text-area/index.js +1 -1
  105. package/dist/components/text-area/text-area.d.ts +15 -0
  106. package/dist/components/tool-rail/index.js +1 -1
  107. package/dist/components/tool-rail/tool-rail.d.ts +12 -1
  108. package/dist/components/transaction-chip/index.js +1 -1
  109. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  110. package/dist/components/transcript-panel/index.js +1 -1
  111. package/dist/components/treatment-receipt/index.js +1 -1
  112. package/dist/core.css +1 -1
  113. package/dist/find-free-slots-panel/index.js +1 -1
  114. package/dist/host-legacy.css +51 -4
  115. package/dist/i18n/locales/ar.d.ts +9 -0
  116. package/dist/i18n/locales/ar.js +8 -2
  117. package/dist/i18n/locales/de.d.ts +9 -0
  118. package/dist/i18n/locales/de.js +8 -2
  119. package/dist/i18n/locales/el.d.ts +9 -0
  120. package/dist/i18n/locales/el.js +10 -1
  121. package/dist/i18n/locales/en.d.ts +9 -0
  122. package/dist/i18n/locales/en.js +11 -2
  123. package/dist/i18n/locales/es.d.ts +9 -0
  124. package/dist/i18n/locales/es.js +10 -1
  125. package/dist/i18n/locales/fr.d.ts +9 -0
  126. package/dist/i18n/locales/fr.js +10 -1
  127. package/dist/i18n/locales/hi.d.ts +9 -0
  128. package/dist/i18n/locales/hi.js +8 -2
  129. package/dist/i18n/locales/it.d.ts +19 -10
  130. package/dist/i18n/locales/it.js +20 -11
  131. package/dist/i18n/locales/ja.d.ts +9 -0
  132. package/dist/i18n/locales/ja.js +8 -2
  133. package/dist/i18n/locales/nl.d.ts +9 -0
  134. package/dist/i18n/locales/nl.js +8 -2
  135. package/dist/i18n/locales/pl.d.ts +9 -0
  136. package/dist/i18n/locales/pl.js +10 -1
  137. package/dist/i18n/locales/pt.d.ts +9 -0
  138. package/dist/i18n/locales/pt.js +10 -1
  139. package/dist/i18n/locales/ro.d.ts +9 -0
  140. package/dist/i18n/locales/ro.js +10 -1
  141. package/dist/i18n/locales/ru.d.ts +9 -0
  142. package/dist/i18n/locales/ru.js +8 -2
  143. package/dist/i18n/locales/sq.d.ts +9 -0
  144. package/dist/i18n/locales/sq.js +10 -1
  145. package/dist/i18n/locales/sv.d.ts +9 -0
  146. package/dist/i18n/locales/sv.js +8 -2
  147. package/dist/i18n/locales/tr.d.ts +9 -0
  148. package/dist/i18n/locales/tr.js +8 -2
  149. package/dist/i18n/locales/zh.d.ts +9 -0
  150. package/dist/i18n/locales/zh.js +8 -2
  151. package/dist/index.js +775 -773
  152. package/dist/locales/ar.json +10 -1
  153. package/dist/locales/de.json +10 -1
  154. package/dist/locales/el.json +10 -1
  155. package/dist/locales/en.json +11 -2
  156. package/dist/locales/es.json +10 -1
  157. package/dist/locales/fr.json +10 -1
  158. package/dist/locales/hi.json +10 -1
  159. package/dist/locales/it.json +20 -11
  160. package/dist/locales/ja.json +10 -1
  161. package/dist/locales/nl.json +10 -1
  162. package/dist/locales/pl.json +10 -1
  163. package/dist/locales/pt.json +10 -1
  164. package/dist/locales/ro.json +10 -1
  165. package/dist/locales/ru.json +10 -1
  166. package/dist/locales/sq.json +10 -1
  167. package/dist/locales/sv.json +10 -1
  168. package/dist/locales/tr.json +10 -1
  169. package/dist/locales/zh.json +10 -1
  170. package/dist/online-bookings-panel/index.js +2 -2
  171. package/dist/patterns/anamnesis/index.js +1 -1
  172. package/dist/patterns/calendar/index.js +4 -4
  173. package/dist/patterns/help-me-write-templates/index.js +1 -1
  174. package/dist/patterns/patient-account-settings/index.js +1 -1
  175. package/dist/patterns/patient-check-in/index.js +1 -1
  176. package/dist/patterns/patient-portal/index.js +2 -2
  177. package/dist/tokens.css +1 -1
  178. package/dist/waiting-list-panel/index.js +3 -3
  179. package/package.json +5 -1
  180. package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
  181. package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
  182. package/dist/_chunks/folder-BghC8_S2.js +0 -20
  183. package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
@@ -12,9 +12,9 @@ import { B as Qe } from "./badge-BUk4RjTS.js";
12
12
  import { B as ue } from "./button-Dp4j9ygh.js";
13
13
  import { I as Rt } from "./icon-button-u9VMQn3x.js";
14
14
  import { E as b } from "./empty-state-5REM7oDM.js";
15
- import { E as Ct } from "./entity-summary-CZmGcWi2.js";
15
+ import { E as Ct } from "./entity-summary-BNnTP1F6.js";
16
16
  import { L as rt } from "./link-CeV7FoI6.js";
17
- import { P as Xe } from "./panel-header-CbtlTe85.js";
17
+ import { P as Xe } from "./panel-header-DTc5OFUg.js";
18
18
  import { S as Ae } from "./skeleton-tTWJpvAq.js";
19
19
  import { C as ke } from "./clock-Drd4Wtis.js";
20
20
  import { C as nt } from "./circle-alert-rGDZ73Wh.js";
@@ -1042,4 +1042,4 @@ export {
1042
1042
  Wt as A,
1043
1043
  zt as a
1044
1044
  };
1045
- //# sourceMappingURL=ai-summary-panel-Cdsve-XN.js.map
1045
+ //# sourceMappingURL=ai-summary-panel-D-RNe-_n.js.map
@@ -13,7 +13,7 @@ import { R as ze } from "./radio-BZQs6_36.js";
13
13
  import { R as ma } from "./radio-group-ChIKyeSJ.js";
14
14
  import { S as Me } from "./select-Bw5FvGJ7.js";
15
15
  import { T as Q } from "./tabs-BOf9OO--.js";
16
- import { T as na } from "./text-area-COMVJ1yE.js";
16
+ import { T as na } from "./text-area-DbxGkpzE.js";
17
17
  import { S as te } from "./state-backed-text-input-DVETOhSS.js";
18
18
  import { T as Ze } from "./timestamp-UMF1llBs.js";
19
19
  import { D as sn } from "./date-picker-CD-PBzXM.js";
@@ -20936,4 +20936,4 @@ export {
20936
20936
  Vi as t,
20937
20937
  od as u
20938
20938
  };
20939
- //# sourceMappingURL=anamnesis-summary-rows-QCv6zW-J.js.map
20939
+ //# sourceMappingURL=anamnesis-summary-rows-CE-i9j-s.js.map
@@ -6,7 +6,7 @@ import { A as ta } from "./avatar-Dp5apm1d.js";
6
6
  import { B as o } from "./badge-BUk4RjTS.js";
7
7
  import { T as Ma } from "./tag-BNlcEJfE.js";
8
8
  import { T as Ra } from "./timestamp-UMF1llBs.js";
9
- import { T as oa } from "./transaction-chip-CkYd-3ky.js";
9
+ import { T as oa } from "./transaction-chip-6jToArJn.js";
10
10
  import { i as Aa } from "./is-development-CLUAnsU7.js";
11
11
  import { V as ia } from "./visually-hidden-BHxEUGyT.js";
12
12
  import { p as La } from "./privacy-mask-text-B8YfzB7L.js";
@@ -515,4 +515,4 @@ ts.displayName = "AppointmentCard";
515
515
  export {
516
516
  ts as A
517
517
  };
518
- //# sourceMappingURL=appointment-card-HOZrABrQ.js.map
518
+ //# sourceMappingURL=appointment-card-BPZggqck.js.map
@@ -1,7 +1,7 @@
1
1
  import { c as A } from "./createLucideIcon-DhHxpK9K.js";
2
2
  import { jsx as e, jsxs as h } from "react/jsx-runtime";
3
3
  import { useTranslation as E } from "react-i18next";
4
- import { s as P, D as F } from "./appointment-details-panel.identity--_j07UG1.js";
4
+ import { s as P, D as F } from "./appointment-details-panel.identity-C9kWtC6m.js";
5
5
  import { E as $ } from "./empty-state-5REM7oDM.js";
6
6
  import { T as y } from "./timeline-BzGi_3GQ.js";
7
7
  import { a as L } from "./workflow-status-Cg7yjnye.js";
@@ -317,4 +317,4 @@ export {
317
317
  ut as C,
318
318
  C as M
319
319
  };
320
- //# sourceMappingURL=appointment-details-panel.history-BxNqcA-r.js.map
320
+ //# sourceMappingURL=appointment-details-panel.history-BO31ZFQp.js.map
@@ -1,17 +1,17 @@
1
- import { jsxs as m, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as v } from "react-i18next";
3
- import { A as b } from "./alert-C4WKViaS.js";
3
+ import { A as x } from "./alert-C4WKViaS.js";
4
4
  import { A as I } from "./avatar-Dp5apm1d.js";
5
- import { B as A } from "./badge-BUk4RjTS.js";
5
+ import { B as w } from "./badge-BUk4RjTS.js";
6
6
  import { B as R } from "./button-Dp4j9ygh.js";
7
7
  import { u as k } from "./appointment-workflow-status-S-lx81Yz.js";
8
- import { H as w } from "./heart-pulse-BCppJyN2.js";
8
+ import { H as A } from "./heart-pulse-BCppJyN2.js";
9
9
  import { G as E } from "./globe-sHBW1JN5.js";
10
- import { T as S } from "./triangle-alert-CBnO6nq_.js";
11
- import { E as $ } from "./euro-Dsuz4ixO.js";
12
- import { V as B } from "./video-BheNGvsu.js";
13
- import { R as F } from "./repeat-CvQa5rZt.js";
14
- function x(e) {
10
+ import { T as B } from "./triangle-alert-CBnO6nq_.js";
11
+ import { E as F } from "./euro-Dsuz4ixO.js";
12
+ import { V as S } from "./video-BheNGvsu.js";
13
+ import { R as $ } from "./repeat-CvQa5rZt.js";
14
+ function h(e) {
15
15
  return typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e) ? /* @__PURE__ */ new Date(`${e}T00:00:00`) : new Date(e);
16
16
  }
17
17
  function _(e, n) {
@@ -21,54 +21,65 @@ function _(e, n) {
21
21
  day: "numeric",
22
22
  month: "long",
23
23
  year: "numeric"
24
- }).format(x(n));
24
+ }).format(h(n));
25
25
  } catch {
26
26
  return "";
27
27
  }
28
28
  }
29
- function X(e, n, a) {
30
- const t = new Date(n), s = a ? new Date(a) : t;
29
+ function X(e, n) {
31
30
  try {
32
- const r = new Intl.DateTimeFormat(e, {
31
+ return new Intl.DateTimeFormat(e, {
32
+ day: "numeric",
33
+ month: "short",
34
+ year: "numeric"
35
+ }).format(h(n));
36
+ } catch {
37
+ return "";
38
+ }
39
+ }
40
+ function Z(e, n, a) {
41
+ const t = new Date(n), i = a ? new Date(a) : t;
42
+ try {
43
+ const s = new Intl.DateTimeFormat(e, {
33
44
  hour: "2-digit",
34
45
  minute: "2-digit",
35
46
  hour12: !1
36
47
  });
37
- return typeof r.formatRange == "function" ? r.formatRange(t, s) : `${r.format(t)} – ${r.format(s)}`;
48
+ return typeof s.formatRange == "function" ? s.formatRange(t, i) : `${s.format(t)} – ${s.format(i)}`;
38
49
  } catch {
39
50
  return "";
40
51
  }
41
52
  }
42
- const Z = {
53
+ const ee = {
43
54
  weekday: "short",
44
55
  day: "numeric",
45
56
  month: "short",
46
57
  hour: "2-digit",
47
58
  minute: "2-digit"
48
59
  };
49
- function ee(e, n) {
50
- const a = x(e), t = x(n);
51
- let s = t.getFullYear() - a.getFullYear();
52
- const r = t.getMonth() - a.getMonth();
53
- return (r < 0 || r === 0 && t.getDate() < a.getDate()) && (s -= 1), Math.max(0, s);
60
+ function ne(e, n) {
61
+ const a = h(e), t = h(n);
62
+ let i = t.getFullYear() - a.getFullYear();
63
+ const s = t.getMonth() - a.getMonth();
64
+ return (s < 0 || s === 0 && t.getDate() < a.getDate()) && (i -= 1), Math.max(0, i);
54
65
  }
55
66
  const M = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})$/;
56
- function ne(e) {
67
+ function te(e) {
57
68
  const n = typeof e == "string" ? M.exec(e) : null;
58
69
  if (!n) return;
59
- const [a, t, s, r, u, p] = n.slice(1).map(Number), f = /* @__PURE__ */ new Date(0);
60
- if (f.setFullYear(a, t, 0), t < 1 || t > 12 || s < 1 || s > f.getDate() || r > 23 || u > 59 || p > 59)
70
+ const [a, t, i, s, u, p] = n.slice(1).map(Number), f = /* @__PURE__ */ new Date(0);
71
+ if (f.setFullYear(a, t, 0), t < 1 || t > 12 || i < 1 || i > f.getDate() || s > 23 || u > 59 || p > 59)
61
72
  return;
62
73
  const l = /* @__PURE__ */ new Date(0);
63
- return l.setFullYear(a, t - 1, s), l.setHours(r, u, p, 0), l;
74
+ return l.setFullYear(a, t - 1, i), l.setHours(s, u, p, 0), l;
64
75
  }
65
- function te(e) {
76
+ function ae(e) {
66
77
  return e.map((n) => {
67
78
  const a = Date.parse(n.atIso);
68
79
  return { entry: n, time: Number.isFinite(a) ? a : -1 / 0 };
69
80
  }).sort((n, a) => n.time === a.time ? 0 : a.time - n.time).map(({ entry: n }) => n);
70
81
  }
71
- const ae = {
82
+ const re = {
72
83
  daily: "recurrenceDaily",
73
84
  weekly: "recurrenceWeekly",
74
85
  monthly: "recurrenceMonthly",
@@ -85,11 +96,11 @@ function Y(e) {
85
96
  function se(e) {
86
97
  return [e.address, e.city].filter((n) => !!n).join(", ");
87
98
  }
88
- function re(e) {
99
+ function oe(e) {
89
100
  const n = Y(e);
90
101
  return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n)}`;
91
102
  }
92
- const C = {
103
+ const j = {
93
104
  confirmed: "success",
94
105
  waiting: "info",
95
106
  in_care: "accentSoft",
@@ -97,105 +108,105 @@ const C = {
97
108
  cancelled: "error",
98
109
  absent: "warning"
99
110
  };
100
- function H({ event: e }) {
101
- const { t: n } = v("ui"), a = (s) => `calendarWorkspace.details.indicators.${s}`, t = [];
111
+ function C({ event: e }) {
112
+ const { t: n } = v("ui"), a = (i) => `calendarWorkspace.details.indicators.${i}`, t = [];
102
113
  return e.isBookedOnline && t.push({
103
114
  id: "online",
104
- icon: /* @__PURE__ */ i(E, { "aria-hidden": "true" }),
115
+ icon: /* @__PURE__ */ r(E, { "aria-hidden": "true" }),
105
116
  label: n(a("bookedOnline")),
106
117
  variant: "info"
107
118
  }), e.hasUnassignedPatient && t.push({
108
119
  id: "unassigned",
109
- icon: /* @__PURE__ */ i(S, { "aria-hidden": "true" }),
120
+ icon: /* @__PURE__ */ r(B, { "aria-hidden": "true" }),
110
121
  label: n(a("unassignedPatient")),
111
122
  variant: "warning"
112
123
  }), e.hasHighlightedAnamnesis && t.push({
113
124
  id: "anamnesis",
114
- icon: /* @__PURE__ */ i(w, { "aria-hidden": "true" }),
125
+ icon: /* @__PURE__ */ r(A, { "aria-hidden": "true" }),
115
126
  label: n(a("anamnesis")),
116
127
  variant: "accentSoft"
117
128
  }), e.hasBillableAmount && t.push({
118
129
  id: "billable",
119
- icon: /* @__PURE__ */ i($, { "aria-hidden": "true" }),
130
+ icon: /* @__PURE__ */ r(F, { "aria-hidden": "true" }),
120
131
  label: n(a("billable")),
121
132
  variant: "warning"
122
133
  }), e.isTelehealth && t.push({
123
134
  id: "telehealth",
124
- icon: /* @__PURE__ */ i(B, { "aria-hidden": "true" }),
135
+ icon: /* @__PURE__ */ r(S, { "aria-hidden": "true" }),
125
136
  label: n(a("telehealth")),
126
137
  variant: "info"
127
138
  }), e.isRecurring && t.push({
128
139
  id: "recurring",
129
- icon: /* @__PURE__ */ i(F, { "aria-hidden": "true" }),
140
+ icon: /* @__PURE__ */ r($, { "aria-hidden": "true" }),
130
141
  label: n(a("recurring")),
131
142
  variant: "info"
132
- }), t.length === 0 ? null : /* @__PURE__ */ i("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: t.map((s) => /* @__PURE__ */ i(
133
- A,
143
+ }), t.length === 0 ? null : /* @__PURE__ */ r("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: t.map((i) => /* @__PURE__ */ r(
144
+ w,
134
145
  {
135
- variant: s.variant,
146
+ variant: i.variant,
136
147
  size: "sm",
137
- leading: s.icon,
138
- children: s.label
148
+ leading: i.icon,
149
+ children: i.label
139
150
  },
140
- s.id
151
+ i.id
141
152
  )) });
142
153
  }
143
- function oe({
154
+ function le({
144
155
  name: e,
145
156
  avatarSrc: n,
146
157
  unresolved: a = !1,
147
158
  status: t,
148
- flags: s,
149
- age: r,
159
+ flags: i,
160
+ age: s,
150
161
  onOpenPatient: u,
151
162
  highlightedAnamnesisCount: p = 0,
152
163
  expiredAnamnesisCount: f = 0,
153
164
  anamnesisAnswers: l = [],
154
- locale: T
165
+ locale: D
155
166
  }) {
156
- const { t: d, i18n: D } = v("ui"), c = (o) => `calendarWorkspace.details.${o}`, { optionFor: N } = k(t), h = t ? N(t) : void 0, g = p, y = f;
167
+ const { t: d, i18n: T } = v("ui"), c = (o) => `calendarWorkspace.details.${o}`, { optionFor: N } = k(t), g = t ? N(t) : void 0, y = p, b = f;
157
168
  return /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:pb-0", children: [
158
169
  /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
159
- /* @__PURE__ */ i(I, { name: e, src: n }),
170
+ /* @__PURE__ */ r(I, { name: e, src: n }),
160
171
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[min-inline-size:0]", children: [
161
172
  /* @__PURE__ */ m("span", { className: "ds:flex ds:flex-wrap ds:items-baseline ds:gap-[var(--spacing-2xs)] ds:text-start", children: [
162
- u ? /* @__PURE__ */ i(R, { size: "sm", intent: "link", onClick: () => u(), children: e }) : /* @__PURE__ */ i("span", { className: "ds:font-[var(--font-weight-semibold)] ds:truncate", children: e }),
163
- r !== void 0 ? /* @__PURE__ */ i("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: d(c("patientAge"), { n: r }) }) : null
173
+ u ? /* @__PURE__ */ r(R, { size: "sm", intent: "link", onClick: () => u(), children: e }) : /* @__PURE__ */ r("span", { className: "ds:font-[var(--font-weight-semibold)] ds:truncate", children: e }),
174
+ s !== void 0 ? /* @__PURE__ */ r("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: d(c("patientAge"), { n: s }) }) : null
164
175
  ] }),
165
- a ? /* @__PURE__ */ i("span", { className: "type-body-sm ds:text-start ds:text-[color:var(--muted-foreground)]", children: d(c("patientNotLoaded")) }) : null,
166
- t && h ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(
167
- A,
176
+ a ? /* @__PURE__ */ r("span", { className: "type-body-sm ds:text-start ds:text-[color:var(--muted-foreground)]", children: d(c("patientNotLoaded")) }) : null,
177
+ t && g ? /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
178
+ w,
168
179
  {
169
- variant: C[t],
180
+ variant: j[t],
170
181
  size: "sm",
171
- leading: h.icon,
172
- children: h.label
182
+ leading: g.icon,
183
+ children: g.label
173
184
  }
174
185
  ) }) : null,
175
- /* @__PURE__ */ i(H, { event: s })
186
+ /* @__PURE__ */ r(C, { event: i })
176
187
  ] })
177
188
  ] }),
178
- g + y > 0 ? /* @__PURE__ */ m(
179
- b,
189
+ y + b > 0 ? /* @__PURE__ */ m(
190
+ x,
180
191
  {
181
192
  variant: "warning",
182
193
  announce: "off",
183
- icon: /* @__PURE__ */ i(w, { "aria-hidden": "true" }),
194
+ icon: /* @__PURE__ */ r(A, { "aria-hidden": "true" }),
184
195
  children: [
185
- /* @__PURE__ */ i(b.Title, { as: "p", children: d(c("anamnesisTitle")) }),
186
- /* @__PURE__ */ i(b.Description, { children: [
187
- g > 0 ? d(c("anamnesisHighlighted"), { n: g }) : null,
188
- y > 0 ? d(c("anamnesisExpired"), { n: y }) : null
196
+ /* @__PURE__ */ r(x.Title, { as: "p", children: d(c("anamnesisTitle")) }),
197
+ /* @__PURE__ */ r(x.Description, { children: [
198
+ y > 0 ? d(c("anamnesisHighlighted"), { n: y }) : null,
199
+ b > 0 ? d(c("anamnesisExpired"), { n: b }) : null
189
200
  ].filter((o) => o !== null).join(" · ") }),
190
201
  l.length > 0 ? (
191
202
  /* Question · yes or no · answer · interview date, as the
192
203
  platform's details dialog lists them. A list, not a
193
204
  Description, which renders a <p>. */
194
- /* @__PURE__ */ i("ul", { className: "type-body-sm ds:m-0 ds:mt-[var(--spacing-xs)] ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0", children: l.map((o) => /* @__PURE__ */ m("li", { className: "ds:text-start", children: [
195
- /* @__PURE__ */ i("span", { className: "ds:font-[var(--font-weight-semibold)]", children: o.question }),
205
+ /* @__PURE__ */ r("ul", { className: "type-body-sm ds:m-0 ds:mt-[var(--spacing-xs)] ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0", children: l.map((o) => /* @__PURE__ */ m("li", { className: "ds:text-start", children: [
206
+ /* @__PURE__ */ r("span", { className: "ds:font-[var(--font-weight-semibold)]", children: o.question }),
196
207
  ` · ${d(c(o.yes ? "anamnesisYes" : "anamnesisNo"))}`,
197
208
  o.answer ? ` · ${o.answer}` : "",
198
- ` · ${_(T ?? D.language, o.interviewIso)}`
209
+ ` · ${_(D ?? T.language, o.interviewIso)}`
199
210
  ] }, o.question)) })
200
211
  ) : null
201
212
  ]
@@ -204,20 +215,21 @@ function oe({
204
215
  ] });
205
216
  }
206
217
  export {
207
- C as A,
208
- Z as D,
209
- H as I,
210
- ae as R,
211
- x as a,
218
+ j as A,
219
+ ee as D,
220
+ C as I,
221
+ re as R,
222
+ h as a,
212
223
  _ as b,
213
- ee as c,
224
+ ne as c,
214
225
  ie as d,
215
226
  Y as e,
216
- X as f,
227
+ Z as f,
217
228
  se as g,
218
- re as h,
229
+ X as h,
219
230
  oe as i,
220
- ne as p,
221
- te as s
231
+ le as j,
232
+ te as p,
233
+ ae as s
222
234
  };
223
- //# sourceMappingURL=appointment-details-panel.identity--_j07UG1.js.map
235
+ //# sourceMappingURL=appointment-details-panel.identity-C9kWtC6m.js.map
@@ -0,0 +1,213 @@
1
+ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
+ import { forwardRef as j, isValidElement as B } from "react";
3
+ import { c as G } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as M } from "react-i18next";
5
+ import { A as R } from "./avatar-Dp5apm1d.js";
6
+ import { B as z } from "./badge-BUk4RjTS.js";
7
+ import { D as t } from "./description-list-DA4TgL_I.js";
8
+ import { E as q } from "./editable-description-B2F54K4T.js";
9
+ import { H as $ } from "./hover-card-CS8ulBf9.js";
10
+ import { T as W } from "./transaction-chip-6jToArJn.js";
11
+ import { a as F } from "./workflow-status-Cg7yjnye.js";
12
+ import { C as J } from "./clock-Drd4Wtis.js";
13
+ import { V as K } from "./video-BheNGvsu.js";
14
+ import { A as Q } from "./armchair-BaLDW6Hz.js";
15
+ import { G as C } from "./globe-sHBW1JN5.js";
16
+ import { E as U } from "./eye-off-C_4xkbRP.js";
17
+ import { M as X } from "./message-square-warning-DsGGfd0K.js";
18
+ import { a as Y } from "./entity-card-p-LANpYt.js";
19
+ const Z = G(
20
+ "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
21
+ ), _ = j(
22
+ ({
23
+ name: f,
24
+ avatarSrc: D,
25
+ time: E,
26
+ location: h,
27
+ locationLabel: I,
28
+ bookingReason: u,
29
+ telehealth: L = !1,
30
+ status: i,
31
+ statusLabel: P,
32
+ description: o,
33
+ details: v,
34
+ treatment: g,
35
+ bookedOnline: x = !1,
36
+ highlightedAnamnesisCount: d = 0,
37
+ unpaidAmount: c = 0,
38
+ billableAmount: m = 0,
39
+ currency: k,
40
+ locale: w,
41
+ flags: b,
42
+ privacy: p = !1,
43
+ className: S,
44
+ ...T
45
+ }, V) => {
46
+ const { t: e } = M("ui"), l = i ? Y(i) : null, N = l == null ? void 0 : l.Icon, y = L ? K : Q, r = !p, A = x || d > 0 || c > 0 || m > 0, H = [
47
+ { icon: /* @__PURE__ */ a(J, {}), label: e("appointmentPeek.time"), value: E },
48
+ ...h ? [
49
+ {
50
+ icon: /* @__PURE__ */ a(y, {}),
51
+ label: I ?? e("appointmentPeek.location"),
52
+ value: h
53
+ }
54
+ ] : [],
55
+ ...u ? [
56
+ {
57
+ icon: /* @__PURE__ */ a(C, {}),
58
+ label: e("calendarWorkspace.details.bookingReason"),
59
+ value: /* @__PURE__ */ a("span", { className: "ds:font-medium", children: u })
60
+ }
61
+ ] : [],
62
+ ...r && g ? [
63
+ {
64
+ icon: null,
65
+ label: e("calendarWorkspace.details.care"),
66
+ value: g
67
+ }
68
+ ] : [],
69
+ ...r && v ? v.map((s) => ({
70
+ icon: B(s.icon) ? s.icon : null,
71
+ label: s.label,
72
+ value: s.value
73
+ })) : []
74
+ ];
75
+ return /* @__PURE__ */ n(
76
+ "div",
77
+ {
78
+ ref: V,
79
+ "data-component": "appointment-peek",
80
+ "data-status": i,
81
+ className: Z({ className: S }),
82
+ ...T,
83
+ children: [
84
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
85
+ p ? null : /* @__PURE__ */ a(
86
+ R,
87
+ {
88
+ size: "sm",
89
+ name: f,
90
+ src: D,
91
+ "aria-hidden": "true",
92
+ className: "ds:shrink-0"
93
+ }
94
+ ),
95
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
96
+ /* @__PURE__ */ a($.Heading, { className: "ds:min-w-0", children: p ? /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
97
+ /* @__PURE__ */ a(
98
+ U,
99
+ {
100
+ "aria-hidden": "true",
101
+ className: "ds:size-4 ds:shrink-0"
102
+ }
103
+ ),
104
+ e("appointmentPeek.hiddenName")
105
+ ] }) : f }),
106
+ r && (A || b) ? /* @__PURE__ */ n(
107
+ "div",
108
+ {
109
+ "data-slot": "flags",
110
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
111
+ children: [
112
+ x ? /* @__PURE__ */ a(
113
+ z,
114
+ {
115
+ "data-chip": "bookedOnline",
116
+ variant: "info",
117
+ size: "sm",
118
+ leading: /* @__PURE__ */ a(C, { "aria-hidden": "true" }),
119
+ children: e("calendarWorkspace.details.indicators.bookedOnline")
120
+ }
121
+ ) : null,
122
+ d > 0 ? /* @__PURE__ */ a(
123
+ z,
124
+ {
125
+ "data-chip": "highlightedAnamnesis",
126
+ variant: "warning",
127
+ size: "sm",
128
+ leading: /* @__PURE__ */ a(X, { "aria-hidden": "true" }),
129
+ children: e("patientSummaryCard.flag.highlightedAnamnesis", {
130
+ count: d
131
+ })
132
+ }
133
+ ) : null,
134
+ c > 0 ? /* @__PURE__ */ a(
135
+ W,
136
+ {
137
+ "data-chip": "unpaid",
138
+ state: "debt",
139
+ amount: c,
140
+ currency: k,
141
+ locale: w,
142
+ size: "sm",
143
+ showLabel: !0,
144
+ showIcon: !1
145
+ }
146
+ ) : null,
147
+ m > 0 ? /* @__PURE__ */ a(
148
+ W,
149
+ {
150
+ "data-chip": "billable",
151
+ state: "to-invoice",
152
+ tone: "neutral",
153
+ amount: m,
154
+ currency: k,
155
+ locale: w,
156
+ size: "sm",
157
+ showLabel: !0,
158
+ showIcon: !1
159
+ }
160
+ ) : null,
161
+ b
162
+ ]
163
+ }
164
+ ) : null
165
+ ] })
166
+ ] }),
167
+ r && (o != null && o.trim()) ? /* @__PURE__ */ a(
168
+ q,
169
+ {
170
+ "data-slot": "description",
171
+ role: "group",
172
+ "aria-label": e("calendarWorkspace.editor.description"),
173
+ value: o,
174
+ maxLines: 3,
175
+ expandable: !1
176
+ }
177
+ ) : null,
178
+ /* @__PURE__ */ a(
179
+ t,
180
+ {
181
+ layout: "inline",
182
+ density: "compact",
183
+ divider: "none",
184
+ className: "ds:[--description-list-icon-color:var(--accent)]",
185
+ children: H.map((s, O) => /* @__PURE__ */ n(t.Row, { icon: s.icon, children: [
186
+ /* @__PURE__ */ a(t.Term, { children: s.label }),
187
+ /* @__PURE__ */ a(t.Detail, { children: s.value })
188
+ ] }, O))
189
+ }
190
+ ),
191
+ i && l && N ? /* @__PURE__ */ a("div", { "data-slot": "workflow", children: /* @__PURE__ */ a(
192
+ F,
193
+ {
194
+ size: "sm",
195
+ value: i,
196
+ option: {
197
+ value: i,
198
+ label: P ?? e(`appointmentCard.state.${i}`),
199
+ icon: /* @__PURE__ */ a(N, { "aria-hidden": "true" }),
200
+ tone: l.tone
201
+ }
202
+ }
203
+ ) }) : null
204
+ ]
205
+ }
206
+ );
207
+ }
208
+ );
209
+ _.displayName = "AppointmentPeek";
210
+ export {
211
+ _ as A
212
+ };
213
+ //# sourceMappingURL=appointment-peek-CGJ6kUvM.js.map
@@ -2,7 +2,7 @@ import { jsxs as g, Fragment as Xe, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as Zt, useId as Qt, useState as oe, useMemo as D, useRef as m, useEffect as xe, useCallback as S, useImperativeHandle as Xt } from "react";
3
3
  import { c as Jt } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as es } from "react-i18next";
5
- import { A as Je } from "./appointment-card-HOZrABrQ.js";
5
+ import { A as Je } from "./appointment-card-BPZggqck.js";
6
6
  import { g as ts } from "./date-locale-OG-MupVD.js";
7
7
  import { f as ot } from "./intl-locale-FWh-Y5_3.js";
8
8
  import { n as et } from "./normalize-diacritics-DhJjQ3Bp.js";
@@ -12,7 +12,7 @@ import { S as ns } from "./search-input-CRAMo1CA.js";
12
12
  import { B as le } from "./button-Dp4j9ygh.js";
13
13
  import { B as st } from "./button-group-CHQD8GJ0.js";
14
14
  import { D as nt } from "./date-picker-CD-PBzXM.js";
15
- import { P as as } from "./panel-header-CbtlTe85.js";
15
+ import { P as as } from "./panel-header-DTc5OFUg.js";
16
16
  import { S as rs } from "./skeleton-tTWJpvAq.js";
17
17
  import { E as at } from "./empty-state-5REM7oDM.js";
18
18
  import { u as De } from "./use-controllable-state-BiY4xTzM.js";
@@ -773,4 +773,4 @@ export {
773
773
  Ts as A,
774
774
  fs as a
775
775
  };
776
- //# sourceMappingURL=appointment-timeline-CuZW-CGT.js.map
776
+ //# sourceMappingURL=appointment-timeline-ynFqcw0S.js.map
@@ -5,7 +5,7 @@ import { useTranslation as q } from "react-i18next";
5
5
  import { I as K } from "./icon-button-u9VMQn3x.js";
6
6
  import { S as V } from "./skeleton-tTWJpvAq.js";
7
7
  import { E as W } from "./empty-state-5REM7oDM.js";
8
- import { A as B } from "./appointment-card-HOZrABrQ.js";
8
+ import { A as B } from "./appointment-card-BPZggqck.js";
9
9
  import { u as D } from "./registry-DvAUVLHh.js";
10
10
  import { C as L } from "./calendar-days-BGWklvE-.js";
11
11
  import { P as _ } from "./plus-DzMQ_c6b.js";
@@ -197,4 +197,4 @@ export {
197
197
  it as a,
198
198
  F as b
199
199
  };
200
- //# sourceMappingURL=appointment-tray-CFCxukwq.js.map
200
+ //# sourceMappingURL=appointment-tray-Dx5VDREk.js.map
@@ -6,7 +6,7 @@ import { A as ve, a as re } from "./actions-cell-renderer-BA1FB6cT.js";
6
6
  import { S as Te } from "./select-Bw5FvGJ7.js";
7
7
  import { u as we } from "./registry-DvAUVLHh.js";
8
8
  import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe } from "./link-cell-renderer-CWLArl5e.js";
9
- import { T as Se } from "./transaction-chip-CkYd-3ky.js";
9
+ import { T as Se } from "./transaction-chip-6jToArJn.js";
10
10
  import { B as oe } from "./badge-BUk4RjTS.js";
11
11
  import { c as We } from "./index-D2ZczOXr.js";
12
12
  import { T as Ae } from "./timestamp-UMF1llBs.js";
@@ -1180,4 +1180,4 @@ export {
1180
1180
  se as g,
1181
1181
  nt as u
1182
1182
  };
1183
- //# sourceMappingURL=balance-badge-cell-BPz9bQAB.js.map
1183
+ //# sourceMappingURL=balance-badge-cell-DiyJQcmA.js.map