@alfadocs/ui-kit 1.127.2 → 1.129.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 (168) hide show
  1. package/dist/_chunks/{appointment-card-0PebvrOS.js → appointment-card-vbUsDh70.js} +49 -72
  2. package/dist/_chunks/{appointment-timeline-Czd4PBkF.js → appointment-timeline-B5pfBl-b.js} +2 -2
  3. package/dist/_chunks/{appointment-tray-B04zKY7g.js → appointment-tray-BhiXetjs.js} +2 -2
  4. package/dist/_chunks/{calendar-_sgjuH3L.js → calendar-DzR-vdJ5.js} +614 -563
  5. package/dist/_chunks/calendar-appointment-editor-dialog-DnPADcj9.js +13438 -0
  6. package/dist/_chunks/{calendar-event-card-DXAYWH6k.js → calendar-event-card-BNEzkjm-.js} +142 -132
  7. package/dist/_chunks/{care-plan-card-bGTIliXc.js → care-plan-card-CwgkImOD.js} +2 -2
  8. package/dist/_chunks/{care-plan-header-k8FslxsU.js → care-plan-header-Dx5OMkc9.js} +2 -2
  9. package/dist/_chunks/{clinical-note-card-DHn5W_bv.js → clinical-note-card-pPaeWWnu.js} +2 -2
  10. package/dist/_chunks/{contact-card-CGpbYuxl.js → contact-card-BSY2YpLZ.js} +2 -2
  11. package/dist/_chunks/{contact-profile-card-CCgf0Ntt.js → contact-profile-card-CsZNMlws.js} +2 -2
  12. package/dist/_chunks/{default-tabs-DOuHEKI5.js → default-tabs-BnB6FUEW.js} +2 -2
  13. package/dist/_chunks/{entity-summary-BanguTa6.js → entity-summary-Dzk54yom.js} +2 -2
  14. package/dist/_chunks/file-pen-line-k4uMBM3h.js +29 -0
  15. package/dist/_chunks/{info-tip-C-MPkShR.js → info-tip-B3cn3fY2.js} +2 -2
  16. package/dist/_chunks/{link-DtCfnLnF.js → link-CeV7FoI6.js} +2 -2
  17. package/dist/_chunks/{nav-grid-D2xVcHTO.js → nav-grid-dEgDAri3.js} +2 -2
  18. package/dist/_chunks/{note-attachment-cnj2JRrg.js → note-attachment-MNTIqdSz.js} +2 -2
  19. package/dist/_chunks/{note-timeline-BrjHBQfx.js → note-timeline-BQeW0VZY.js} +2 -2
  20. package/dist/_chunks/{notes-panel-BOwlTz2-.js → notes-panel-DIY7eNsq.js} +3 -3
  21. package/dist/_chunks/{patient-details-Cba9HQj_.js → patient-details-DBtEITfE.js} +2 -2
  22. package/dist/_chunks/{patient-field-row-CtDihADs.js → patient-field-row-a5d4QijH.js} +2 -2
  23. package/dist/_chunks/{patient-summary-card-DnLdbtsw.js → patient-summary-card-BUcZ-gaL.js} +3 -3
  24. package/dist/_chunks/{payment-request-card-CEIalOtr.js → payment-request-card-Dv4WbRBe.js} +2 -2
  25. package/dist/_chunks/{product-hub-panel-CqRJlmb7.js → product-hub-panel-a8wdVOUt.js} +2 -2
  26. package/dist/_chunks/{public-footer-C8UIzqLJ.js → public-footer-D0cqScpz.js} +2 -2
  27. package/dist/_chunks/{rich-text-editor-BLEdXJ0l.js → rich-text-editor-TnX0SYdq.js} +1866 -1766
  28. package/dist/_chunks/{signature-request-Dzs0jZsd.js → signature-request-DW2PSp66.js} +3 -3
  29. package/dist/_chunks/{signed-out-frame-fUf7tqs3.js → signed-out-frame-Oa2e1yps.js} +2 -2
  30. package/dist/_chunks/task-editor-CVRrDqpe.js +1256 -0
  31. package/dist/_chunks/{treatment-receipt-1VnuinhY.js → treatment-receipt-BZzwvsnY.js} +73 -56
  32. package/dist/_chunks/use-appointment-details-read-n7kycxrm.js +2439 -0
  33. package/dist/_chunks/{whatsapp-button-DV9JFmtq.js → whatsapp-button-XbozeDl_.js} +32 -25
  34. package/dist/agent-catalog.json +49 -16
  35. package/dist/agent-i18n/en.json +5 -5
  36. package/dist/browser-support.js +1 -1
  37. package/dist/components/_shared/patient-picker.d.ts +10 -0
  38. package/dist/components/appointment-card/index.js +2 -2
  39. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +23 -1
  40. package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +13 -0
  41. package/dist/components/appointment-details-panel/appointment-details-panel.recurrence.d.ts +9 -0
  42. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +8 -3
  43. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +63 -1
  44. package/dist/components/appointment-details-panel/index.d.ts +2 -1
  45. package/dist/components/appointment-details-panel/index.js +5 -4
  46. package/dist/components/appointment-timeline/index.js +1 -1
  47. package/dist/components/bill-table/index.js +1 -1
  48. package/dist/components/calendar/calendar.d.ts +22 -0
  49. package/dist/components/calendar/index.js +1 -1
  50. package/dist/components/calendar-event-card/calendar-event-card.d.ts +8 -0
  51. package/dist/components/calendar-event-card/index.js +1 -1
  52. package/dist/components/care-plan-card/index.js +1 -1
  53. package/dist/components/care-plan-header/index.js +1 -1
  54. package/dist/components/clinical-note-card/index.js +1 -1
  55. package/dist/components/contact-card/index.js +1 -1
  56. package/dist/components/contact-profile-card/index.js +1 -1
  57. package/dist/components/entity-summary/index.js +1 -1
  58. package/dist/components/info-tip/index.js +1 -1
  59. package/dist/components/link/index.js +1 -1
  60. package/dist/components/nav-grid/index.js +1 -1
  61. package/dist/components/note-timeline/index.js +1 -1
  62. package/dist/components/notes-panel/index.js +1 -1
  63. package/dist/components/patient-details/index.js +1 -1
  64. package/dist/components/patient-summary-card/index.js +1 -1
  65. package/dist/components/payment-card/index.js +1 -1
  66. package/dist/components/product-hub-tray/index.js +1 -1
  67. package/dist/components/public-footer/index.js +1 -1
  68. package/dist/components/rich-text-editor/editor-toolbar.d.ts +1 -0
  69. package/dist/components/rich-text-editor/index.js +1 -1
  70. package/dist/components/task-editor/index.js +1 -1
  71. package/dist/components/treatment-receipt/index.d.ts +2 -2
  72. package/dist/components/treatment-receipt/index.js +2 -1
  73. package/dist/components/treatment-receipt/treatment-receipt.d.ts +11 -1
  74. package/dist/components/whatsapp-button/index.js +1 -1
  75. package/dist/core.css +1 -1
  76. package/dist/fullcalendar.css +5 -1
  77. package/dist/host-compat.css +4 -1
  78. package/dist/host-legacy.css +22 -0
  79. package/dist/i18n/locales/ar.d.ts +118 -4
  80. package/dist/i18n/locales/ar.js +129 -15
  81. package/dist/i18n/locales/de.d.ts +118 -4
  82. package/dist/i18n/locales/de.js +129 -15
  83. package/dist/i18n/locales/el.d.ts +118 -4
  84. package/dist/i18n/locales/el.js +129 -15
  85. package/dist/i18n/locales/en.d.ts +118 -4
  86. package/dist/i18n/locales/en.js +121 -10
  87. package/dist/i18n/locales/es.d.ts +118 -4
  88. package/dist/i18n/locales/es.js +129 -15
  89. package/dist/i18n/locales/fr.d.ts +118 -4
  90. package/dist/i18n/locales/fr.js +129 -15
  91. package/dist/i18n/locales/hi.d.ts +118 -4
  92. package/dist/i18n/locales/hi.js +129 -15
  93. package/dist/i18n/locales/it.d.ts +118 -4
  94. package/dist/i18n/locales/it.js +129 -15
  95. package/dist/i18n/locales/ja.d.ts +118 -4
  96. package/dist/i18n/locales/ja.js +129 -15
  97. package/dist/i18n/locales/nl.d.ts +118 -4
  98. package/dist/i18n/locales/nl.js +129 -15
  99. package/dist/i18n/locales/pl.d.ts +118 -4
  100. package/dist/i18n/locales/pl.js +129 -15
  101. package/dist/i18n/locales/pt.d.ts +118 -4
  102. package/dist/i18n/locales/pt.js +129 -15
  103. package/dist/i18n/locales/ro.d.ts +118 -4
  104. package/dist/i18n/locales/ro.js +129 -15
  105. package/dist/i18n/locales/ru.d.ts +118 -4
  106. package/dist/i18n/locales/ru.js +129 -15
  107. package/dist/i18n/locales/sq.d.ts +118 -4
  108. package/dist/i18n/locales/sq.js +129 -15
  109. package/dist/i18n/locales/sv.d.ts +118 -4
  110. package/dist/i18n/locales/sv.js +129 -15
  111. package/dist/i18n/locales/tr.d.ts +118 -4
  112. package/dist/i18n/locales/tr.js +129 -15
  113. package/dist/i18n/locales/zh.d.ts +118 -4
  114. package/dist/i18n/locales/zh.js +129 -15
  115. package/dist/index.js +1112 -1107
  116. package/dist/locales/ar.json +129 -15
  117. package/dist/locales/de.json +129 -15
  118. package/dist/locales/el.json +129 -15
  119. package/dist/locales/en.json +121 -7
  120. package/dist/locales/es.json +129 -15
  121. package/dist/locales/fr.json +129 -15
  122. package/dist/locales/hi.json +129 -15
  123. package/dist/locales/it.json +129 -15
  124. package/dist/locales/ja.json +129 -15
  125. package/dist/locales/nl.json +129 -15
  126. package/dist/locales/pl.json +129 -15
  127. package/dist/locales/pt.json +129 -15
  128. package/dist/locales/ro.json +129 -15
  129. package/dist/locales/ru.json +129 -15
  130. package/dist/locales/sq.json +129 -15
  131. package/dist/locales/sv.json +129 -15
  132. package/dist/locales/tr.json +129 -15
  133. package/dist/locales/zh.json +129 -15
  134. package/dist/patterns/calendar/calendar-appointment-details.d.ts +74 -2
  135. package/dist/patterns/calendar/calendar-archive.d.ts +12 -0
  136. package/dist/patterns/calendar/calendar-care-rules.d.ts +19 -23
  137. package/dist/patterns/calendar/calendar-delete-confirm.d.ts +18 -0
  138. package/dist/patterns/calendar/calendar-document-scope-confirm.d.ts +12 -0
  139. package/dist/patterns/calendar/calendar-editor-guard.d.ts +12 -0
  140. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +13 -2
  141. package/dist/patterns/calendar/calendar-load-error.d.ts +11 -0
  142. package/dist/patterns/calendar/calendar-patient-locked.d.ts +13 -0
  143. package/dist/patterns/calendar/calendar-patient-picker.d.ts +6 -1
  144. package/dist/patterns/calendar/calendar-prompts.d.ts +11 -0
  145. package/dist/patterns/calendar/calendar-settings-ical.d.ts +11 -0
  146. package/dist/patterns/calendar/calendar-settings-overlay.d.ts +73 -0
  147. package/dist/patterns/calendar/calendar-settings-panel.d.ts +62 -0
  148. package/dist/patterns/calendar/calendar-settings-practice.d.ts +20 -0
  149. package/dist/patterns/calendar/calendar-status-colours.d.ts +18 -0
  150. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +17 -2
  151. package/dist/patterns/calendar/calendar-workspace.d.ts +258 -6
  152. package/dist/patterns/calendar/calendar-workspace.model.d.ts +98 -11
  153. package/dist/patterns/calendar/calendar.data.d.ts +9 -3
  154. package/dist/patterns/calendar/calendar.journey.d.ts +69 -5
  155. package/dist/patterns/calendar/calendar.model.d.ts +72 -14
  156. package/dist/patterns/calendar/calendar.preferences.d.ts +4 -0
  157. package/dist/patterns/calendar/calendar.sheets.d.ts +85 -17
  158. package/dist/patterns/calendar/calendar.surface.d.ts +64 -6
  159. package/dist/patterns/calendar/calendar.types.d.ts +223 -6
  160. package/dist/patterns/calendar/index.d.ts +9 -6
  161. package/dist/patterns/calendar/index.js +18 -15
  162. package/dist/patterns/signature-request/index.js +1 -1
  163. package/dist/patterns/signed-out-frame/index.js +1 -1
  164. package/dist/tokens.css +5 -1
  165. package/package.json +1 -1
  166. package/dist/_chunks/calendar-appointment-editor-dialog-B-zYgCgH.js +0 -10974
  167. package/dist/_chunks/task-editor-C05yx7JJ.js +0 -1218
  168. package/dist/_chunks/use-appointment-details-read-Bm408XzX.js +0 -2198
@@ -2,30 +2,31 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { forwardRef as la } from "react";
3
3
  import { c as ca } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as pa } from "react-i18next";
5
- import { A as K } from "./avatar-Dp5apm1d.js";
5
+ import { A as H } from "./avatar-Dp5apm1d.js";
6
6
  import { B as t } from "./badge-BUk4RjTS.js";
7
7
  import { T as ua } from "./tag-BNlcEJfE.js";
8
8
  import { T as ma } from "./timestamp-DPLDWdxA.js";
9
- import { T as Y } from "./transaction-chip-CkYd-3ky.js";
9
+ import { T as K } from "./transaction-chip-CkYd-3ky.js";
10
10
  import { a as fa } from "./workflow-status-D0avpoeS.js";
11
11
  import { i as ga } from "./is-safe-url-DkETxeHz.js";
12
12
  import { a as ha, b as va, c as ba } from "./entity-card-fpm-KUKc.js";
13
13
  import { V as xa } from "./video-BheNGvsu.js";
14
14
  import { M as ya } from "./map-pin-BaY37-Km.js";
15
15
  import { U as Na } from "./user-x-DYszNtIg.js";
16
- import { S as X } from "./star-Bf9L2Uot.js";
17
- import { c as N } from "./createLucideIcon-DhHxpK9K.js";
16
+ import { S as Y } from "./star-Bf9L2Uot.js";
17
+ import { c as J } from "./createLucideIcon-DhHxpK9K.js";
18
18
  import { A as ka } from "./armchair-BaLDW6Hz.js";
19
19
  import { G as Ca } from "./globe-sHBW1JN5.js";
20
20
  import { R as wa } from "./repeat-CvQa5rZt.js";
21
- import { C as za } from "./chevron-right-I9AeSxH2.js";
21
+ import { F as za } from "./file-pen-line-k4uMBM3h.js";
22
+ import { C as Ta } from "./chevron-right-I9AeSxH2.js";
22
23
  /**
23
24
  * @license lucide-react v1.22.0 - ISC
24
25
  *
25
26
  * This source code is licensed under the ISC license.
26
27
  * See the LICENSE file in the root directory of this source tree.
27
28
  */
28
- const Ta = [
29
+ const Sa = [
29
30
  ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
30
31
  [
31
32
  "path",
@@ -36,31 +37,7 @@ const Ta = [
36
37
  ],
37
38
  ["path", { d: "M9 14h6", key: "159ibu" }],
38
39
  ["path", { d: "M12 17v-6", key: "1y8rbf" }]
39
- ], Ma = N("clipboard-plus", Ta);
40
- /**
41
- * @license lucide-react v1.22.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */
46
- const Sa = [
47
- [
48
- "path",
49
- {
50
- d: "M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",
51
- key: "ukzhwg"
52
- }
53
- ],
54
- ["path", { d: "M14.487 7.858A1 1 0 0 1 14 7V2", key: "1klhew" }],
55
- [
56
- "path",
57
- {
58
- d: "M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",
59
- key: "rxaxab"
60
- }
61
- ],
62
- ["path", { d: "M8 18h1", key: "13wk12" }]
63
- ], Va = N("file-pen-line", Sa);
40
+ ], Ma = J("clipboard-plus", Sa);
64
41
  /**
65
42
  * @license lucide-react v1.22.0 - ISC
66
43
  *
@@ -78,7 +55,7 @@ const Ra = [
78
55
  ["path", { d: "M7 11h10", key: "1twpyw" }],
79
56
  ["path", { d: "M7 15h6", key: "d9of3u" }],
80
57
  ["path", { d: "M7 7h8", key: "af5zfr" }]
81
- ], Da = N("message-square-text", Ra), Ia = {
58
+ ], Va = J("message-square-text", Ra), Da = {
82
59
  "var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
83
60
  "var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
84
61
  "var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
@@ -91,8 +68,8 @@ const Ra = [
91
68
  "var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
92
69
  "var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
93
70
  };
94
- function Aa(a) {
95
- return Ia[ba(a)] ?? "ds:bg-[var(--color-grey-700)]";
71
+ function Ia(a) {
72
+ return Da[ba(a)] ?? "ds:bg-[var(--color-grey-700)]";
96
73
  }
97
74
  function La(a) {
98
75
  if (!a) return;
@@ -103,7 +80,7 @@ function La(a) {
103
80
  const u = p.getMonth() - d.getMonth();
104
81
  return (u < 0 || u === 0 && p.getDate() < d.getDate()) && o--, o < 0 || o > 130 ? void 0 : o;
105
82
  }
106
- const Ua = ca(
83
+ const Aa = ca(
107
84
  [
108
85
  "ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
109
86
  "ds:rounded-[var(--radius-md)]",
@@ -167,7 +144,7 @@ const Ua = ca(
167
144
  next: !1
168
145
  }
169
146
  }
170
- ), J = [
147
+ ), X = [
171
148
  // Interactive elements need a box to remain keyboard-focusable in browsers.
172
149
  "ds:inline-flex ds:min-w-0",
173
150
  "ds:focus-visible:outline-none",
@@ -178,7 +155,7 @@ const Ua = ca(
178
155
  "ds:focus-visible:after:outline-[color:var(--ring)]",
179
156
  "ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
180
157
  "ds:forced-colors:focus-visible:after:outline-[CanvasText]"
181
- ].join(" "), _a = {
158
+ ].join(" "), Ua = {
182
159
  inPractice: ya,
183
160
  telehealth: xa
184
161
  }, Pa = la(
@@ -190,20 +167,20 @@ const Ua = ca(
190
167
  currency: u = "EUR",
191
168
  showPatient: i = !0,
192
169
  onActivate: l,
193
- selected: k = !1,
170
+ selected: N = !1,
194
171
  hideDefaultStatus: Q = !1,
195
172
  className: Z,
196
173
  ...aa
197
174
  }, ea) => {
198
- var R, D, I, A, L, U, _, P, O, $, j, q, E, F, B, H, W, G;
199
- const { t: s } = pa("ui"), m = !!l, sa = !!a.url && ga(a.url), ra = !(Q && a.state === "confirmed"), g = ((R = a.patient) == null ? void 0 : R.name) ?? s("appointmentCard.noPatient"), c = (D = a.operator) == null ? void 0 : D.name, h = s(`appointmentCard.state.${a.state}`), C = ha(a.state), na = C.Icon, w = La((I = a.patient) == null ? void 0 : I.dobIso), oa = ((A = a.flags) == null ? void 0 : A.noPatientAssigned) || !a.patient, v = d === "md" ? "md" : "sm", ta = _a[a.type], z = i ? g : c ?? s("appointmentCard.appointment"), T = i ? s("appointmentCard.itemLabel", {
175
+ var R, V, D, I, L, A, U, P, O, _, j, F, $, q, E, B, W, G;
176
+ const { t: s } = pa("ui"), m = !!l, sa = !!a.url && ga(a.url), ra = !(Q && a.state === "confirmed"), g = ((R = a.patient) == null ? void 0 : R.name) ?? s("appointmentCard.noPatient"), c = (V = a.operator) == null ? void 0 : V.name, h = s(`appointmentCard.state.${a.state}`), k = ha(a.state), na = k.Icon, C = La((D = a.patient) == null ? void 0 : D.dobIso), oa = ((I = a.flags) == null ? void 0 : I.noPatientAssigned) || !a.patient, v = d === "md" ? "md" : "sm", ta = Ua[a.type], w = i ? g : c ?? s("appointmentCard.appointment"), z = i ? s("appointmentCard.itemLabel", {
200
177
  patient: g,
201
178
  state: h
202
- }) : s("appointmentCard.itemLabelGeneric", { title: z, state: h }), b = /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: [
203
- z,
204
- i && w !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
179
+ }) : s("appointmentCard.itemLabelGeneric", { title: w, state: h }), b = /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: [
180
+ w,
181
+ i && C !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
205
182
  "· ",
206
- w
183
+ C
207
184
  ] }) : null
208
185
  ] });
209
186
  let f;
@@ -211,8 +188,8 @@ const Ua = ca(
211
188
  "a",
212
189
  {
213
190
  href: a.url,
214
- "aria-label": T,
215
- className: J,
191
+ "aria-label": z,
192
+ className: X,
216
193
  onClick: (n) => {
217
194
  n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || l == null || l(a);
218
195
  },
@@ -222,13 +199,13 @@ const Ua = ca(
222
199
  "button",
223
200
  {
224
201
  type: "button",
225
- "aria-label": T,
226
- className: J + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
202
+ "aria-label": z,
203
+ className: X + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
227
204
  onClick: () => l == null ? void 0 : l(a),
228
205
  children: b
229
206
  }
230
207
  ) : f = b;
231
- const M = (a.treatments ?? []).map((n, da) => {
208
+ const T = (a.treatments ?? []).map((n, da) => {
232
209
  const ia = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
233
210
  care: n.careName,
234
211
  elements: n.elements.join(", ")
@@ -244,7 +221,7 @@ const Ua = ca(
244
221
  },
245
222
  `${n.careName}-${da}`
246
223
  );
247
- }), x = (L = a.bookingReason) == null ? void 0 : L.advanceAmountCents, S = typeof x == "number" && x > 0, y = (U = a.money) == null ? void 0 : U.unpaidAmountCents, V = typeof y == "number" && y > 0;
224
+ }), x = (L = a.bookingReason) == null ? void 0 : L.advanceAmountCents, S = typeof x == "number" && x > 0, y = (A = a.money) == null ? void 0 : A.unpaidAmountCents, M = typeof y == "number" && y > 0;
248
225
  return /* @__PURE__ */ r(
249
226
  "div",
250
227
  {
@@ -254,12 +231,12 @@ const Ua = ca(
254
231
  "data-component-id": a.id,
255
232
  "data-state": a.state,
256
233
  "data-type": a.type,
257
- "aria-current": k ? "true" : void 0,
258
- className: Ua({
234
+ "aria-current": N ? "true" : void 0,
235
+ className: Aa({
259
236
  size: d,
260
237
  interactive: m,
261
238
  surface: p,
262
- selected: k,
239
+ selected: N,
263
240
  dimmed: a.dimmed,
264
241
  next: a.next,
265
242
  className: Z
@@ -286,10 +263,10 @@ const Ua = ca(
286
263
  ] }),
287
264
  c ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
288
265
  /* @__PURE__ */ e(
289
- K,
266
+ H,
290
267
  {
291
268
  name: c,
292
- color: va((_ = a.operator) == null ? void 0 : _.colorId),
269
+ color: va((U = a.operator) == null ? void 0 : U.colorId),
293
270
  size: v,
294
271
  "aria-hidden": "true",
295
272
  role: "presentation",
@@ -300,7 +277,7 @@ const Ua = ca(
300
277
  "span",
301
278
  {
302
279
  "aria-hidden": "true",
303
- className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + Aa((P = a.operator) == null ? void 0 : P.colorId)
280
+ className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + Ia((P = a.operator) == null ? void 0 : P.colorId)
304
281
  }
305
282
  )
306
283
  ] }) : null,
@@ -308,7 +285,7 @@ const Ua = ca(
308
285
  /* @__PURE__ */ r("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
309
286
  /* @__PURE__ */ r("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
310
287
  i && ((O = a.patient) != null && O.avatarUrl) ? /* @__PURE__ */ e(
311
- K,
288
+ H,
312
289
  {
313
290
  name: g,
314
291
  src: a.patient.avatarUrl,
@@ -347,22 +324,22 @@ const Ua = ca(
347
324
  value: a.state,
348
325
  label: h,
349
326
  icon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
350
- tone: C.tone
327
+ tone: k.tone
351
328
  },
352
329
  className: "ds:shrink-0"
353
330
  }
354
331
  ) : null
355
332
  ] }),
356
333
  a.next ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.nextSr") }) : null,
357
- i && c || ($ = a.bookingReason) != null && $.specialty || a.firstVisit === "yes" || a.firstVisit === "unknown" || a.bookingNote ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
334
+ i && c || (_ = a.bookingReason) != null && _.specialty || a.firstVisit === "yes" || a.firstVisit === "unknown" || a.bookingNote ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
358
335
  i && c ? /* @__PURE__ */ e("span", { children: c }) : null,
359
336
  (j = a.bookingReason) != null && j.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
360
337
  a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
361
- /* @__PURE__ */ e(X, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
338
+ /* @__PURE__ */ e(Y, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
362
339
  s("appointmentCard.firstVisit")
363
340
  ] }) : null,
364
341
  a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
365
- /* @__PURE__ */ e(X, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
342
+ /* @__PURE__ */ e(Y, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
366
343
  s("appointmentCard.firstVisitUnknown")
367
344
  ] }) : null,
368
345
  a.bookingNote ? /* @__PURE__ */ r(
@@ -372,7 +349,7 @@ const Ua = ca(
372
349
  title: s("appointmentCard.hasBookingNote"),
373
350
  children: [
374
351
  /* @__PURE__ */ e(
375
- Da,
352
+ Va,
376
353
  {
377
354
  "aria-hidden": "true",
378
355
  className: "ds:size-3 ds:shrink-0"
@@ -383,9 +360,9 @@ const Ua = ca(
383
360
  }
384
361
  ) : null
385
362
  ] }) : null,
386
- (q = a.bookingReason) != null && q.description ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
387
- M.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: M }) : null,
388
- a.carePlan || a.chair || (E = a.flags) != null && E.bookedOnline || (F = a.flags) != null && F.highlightedAnamnesis || (B = a.flags) != null && B.billable || a.recurring || a.signing || S || V ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
363
+ (F = a.bookingReason) != null && F.description ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
364
+ T.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T }) : null,
365
+ a.carePlan || a.chair || ($ = a.flags) != null && $.bookedOnline || (q = a.flags) != null && q.highlightedAnamnesis || (E = a.flags) != null && E.billable || a.recurring || a.signing || S || M ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
389
366
  a.carePlan ? /* @__PURE__ */ e(
390
367
  t,
391
368
  {
@@ -398,7 +375,7 @@ const Ua = ca(
398
375
  }
399
376
  ) : null,
400
377
  a.chair ? /* @__PURE__ */ e(t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ka, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
401
- (H = a.flags) != null && H.bookedOnline ? /* @__PURE__ */ e(t, { variant: "info", size: "sm", leading: /* @__PURE__ */ e(Ca, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
378
+ (B = a.flags) != null && B.bookedOnline ? /* @__PURE__ */ e(t, { variant: "info", size: "sm", leading: /* @__PURE__ */ e(Ca, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
402
379
  (W = a.flags) != null && W.highlightedAnamnesis ? /* @__PURE__ */ e(t, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
403
380
  a.recurring ? /* @__PURE__ */ e(t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(wa, {}), children: s("appointmentCard.recurring") }) : null,
404
381
  a.signing ? /* @__PURE__ */ e(
@@ -406,7 +383,7 @@ const Ua = ca(
406
383
  {
407
384
  variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
408
385
  size: "sm",
409
- leading: /* @__PURE__ */ e(Va, {}),
386
+ leading: /* @__PURE__ */ e(za, {}),
410
387
  children: s("appointmentCard.signing", {
411
388
  complete: a.signing.toComplete,
412
389
  required: a.signing.required
@@ -415,7 +392,7 @@ const Ua = ca(
415
392
  ) : null,
416
393
  (G = a.flags) != null && G.billable ? /* @__PURE__ */ e(t, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
417
394
  S ? /* @__PURE__ */ e(
418
- Y,
395
+ K,
419
396
  {
420
397
  state: "to-invoice",
421
398
  amount: x / 100,
@@ -425,8 +402,8 @@ const Ua = ca(
425
402
  showLabel: !0
426
403
  }
427
404
  ) : null,
428
- V ? /* @__PURE__ */ e(
429
- Y,
405
+ M ? /* @__PURE__ */ e(
406
+ K,
430
407
  {
431
408
  state: "debt",
432
409
  amount: y / 100,
@@ -439,7 +416,7 @@ const Ua = ca(
439
416
  ] }) : null
440
417
  ] }),
441
418
  m ? /* @__PURE__ */ e(
442
- za,
419
+ Ta,
443
420
  {
444
421
  "aria-hidden": "true",
445
422
  className: "ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
@@ -454,4 +431,4 @@ Pa.displayName = "AppointmentCard";
454
431
  export {
455
432
  Pa as A
456
433
  };
457
- //# sourceMappingURL=appointment-card-0PebvrOS.js.map
434
+ //# sourceMappingURL=appointment-card-vbUsDh70.js.map
@@ -2,7 +2,7 @@ import { jsxs as x, jsx as o, Fragment as He } from "react/jsx-runtime";
2
2
  import { forwardRef as Me, useId as Ne, useMemo as j, useRef as y, useState as $, useEffect as Fe, useCallback as b, useImperativeHandle as _e } from "react";
3
3
  import { c as ze } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Ae } from "react-i18next";
5
- import { A as ne } from "./appointment-card-0PebvrOS.js";
5
+ import { A as ne } from "./appointment-card-vbUsDh70.js";
6
6
  import { B as P } from "./button-DohK_Ak_.js";
7
7
  import { B as Be } from "./button-group-B2MJo0Se.js";
8
8
  import { D as Ke } from "./date-picker-BmVBVpVu.js";
@@ -449,4 +449,4 @@ export {
449
449
  Ze as A,
450
450
  Oe as a
451
451
  };
452
- //# sourceMappingURL=appointment-timeline-Czd4PBkF.js.map
452
+ //# sourceMappingURL=appointment-timeline-B5pfBl-b.js.map
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
5
5
  import { I as M } from "./icon-button-S8_weU3g.js";
6
6
  import { S as q } from "./skeleton-tTWJpvAq.js";
7
7
  import { E as K } from "./empty-state-DwJ5YNzz.js";
8
- import { A as V } from "./appointment-card-0PebvrOS.js";
8
+ import { A as V } from "./appointment-card-vbUsDh70.js";
9
9
  import { u as B } from "./registry-DvAUVLHh.js";
10
10
  import { C as D } from "./calendar-days-BGWklvE-.js";
11
11
  import { P as L } from "./plus-DzMQ_c6b.js";
@@ -190,4 +190,4 @@ export {
190
190
  ae as a,
191
191
  _ as b
192
192
  };
193
- //# sourceMappingURL=appointment-tray-B04zKY7g.js.map
193
+ //# sourceMappingURL=appointment-tray-BhiXetjs.js.map