@alfadocs/ui-kit 1.136.0 → 1.138.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 (131) hide show
  1. package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
  2. package/dist/_chunks/appointment-details-panel.history-DrIMDQYf.js +314 -0
  3. package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
  4. package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
  5. package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
  6. package/dist/_chunks/calendar-appointment-editor-dialog-SxSkOTnO.js +5519 -0
  7. package/dist/_chunks/calendar-editor-discard-host-DjUhoFr2.js +1336 -0
  8. package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
  9. package/dist/_chunks/calendar-waiting-list-panel-331vzAdl.js +981 -0
  10. package/dist/_chunks/calendar-workspace.model-B8yPwuBv.js +1557 -0
  11. package/dist/_chunks/calendar.sheets-aodjllWd.js +4585 -0
  12. package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
  13. package/dist/_chunks/{document-preview-DWlejd8A.js → document-preview-CirR3C_m.js} +2 -2
  14. package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
  15. package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
  16. package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
  17. package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
  18. package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
  19. package/dist/_chunks/{patient-account-settings-Bmfeclpd.js → patient-account-settings-Cs9y-pVA.js} +3 -3
  20. package/dist/_chunks/{patient-check-in-resume-CYZ-SvsF.js → patient-check-in-resume-4qi_klQV.js} +5 -5
  21. package/dist/_chunks/{patient-details-9eh9cNy7.js → patient-details-Dv7EiTCo.js} +2 -2
  22. package/dist/_chunks/{patient-field-row-B782eT0C.js → patient-field-row-DuHWGlLz.js} +2 -2
  23. package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
  24. package/dist/_chunks/{patient-summary-card-K9zaMl1O.js → patient-summary-card-D-cDzOim.js} +2 -2
  25. package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-BGc_FLQk.js} +3 -3
  26. package/dist/_chunks/{portal-documents-DVKj6Sco.js → portal-documents-BSI1U5lI.js} +3 -3
  27. package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
  28. package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
  29. package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
  30. package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
  31. package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
  32. package/dist/agent-catalog.json +2 -2
  33. package/dist/appointment-editor-panel/index.js +100 -0
  34. package/dist/booking-tools-data/index.js +82 -0
  35. package/dist/browser-support.js +1 -1
  36. package/dist/calendar-action-buttons/index.js +178 -0
  37. package/dist/components/appointment-card/appointment-card.d.ts +5 -2
  38. package/dist/components/appointment-card/index.js +2 -2
  39. package/dist/components/appointment-details-panel/index.js +6 -5
  40. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  41. package/dist/components/appointment-timeline/index.js +1 -1
  42. package/dist/components/color-picker/index.js +5 -4
  43. package/dist/components/document-preview/index.js +1 -1
  44. package/dist/components/fiscal-code-input/index.js +1 -1
  45. package/dist/components/iban-input/index.js +1 -1
  46. package/dist/components/notes-panel/index.js +1 -1
  47. package/dist/components/patient-details/index.js +1 -1
  48. package/dist/components/patient-summary-card/index.js +1 -1
  49. package/dist/components/rich-text-editor/index.js +1 -1
  50. package/dist/components/task-editor/index.js +1 -1
  51. package/dist/core.css +1 -1
  52. package/dist/find-free-slots-panel/index.js +58 -0
  53. package/dist/host-legacy.css +16 -0
  54. package/dist/i18n/locales/ar.d.ts +0 -1
  55. package/dist/i18n/locales/ar.js +0 -1
  56. package/dist/i18n/locales/de.d.ts +0 -1
  57. package/dist/i18n/locales/de.js +0 -1
  58. package/dist/i18n/locales/el.d.ts +0 -1
  59. package/dist/i18n/locales/el.js +0 -1
  60. package/dist/i18n/locales/en.d.ts +0 -1
  61. package/dist/i18n/locales/en.js +0 -1
  62. package/dist/i18n/locales/es.d.ts +0 -1
  63. package/dist/i18n/locales/es.js +0 -1
  64. package/dist/i18n/locales/fr.d.ts +0 -1
  65. package/dist/i18n/locales/fr.js +0 -1
  66. package/dist/i18n/locales/hi.d.ts +0 -1
  67. package/dist/i18n/locales/hi.js +0 -1
  68. package/dist/i18n/locales/it.d.ts +0 -1
  69. package/dist/i18n/locales/it.js +0 -1
  70. package/dist/i18n/locales/ja.d.ts +0 -1
  71. package/dist/i18n/locales/ja.js +0 -1
  72. package/dist/i18n/locales/nl.d.ts +0 -1
  73. package/dist/i18n/locales/nl.js +0 -1
  74. package/dist/i18n/locales/pl.d.ts +0 -1
  75. package/dist/i18n/locales/pl.js +0 -1
  76. package/dist/i18n/locales/pt.d.ts +0 -1
  77. package/dist/i18n/locales/pt.js +0 -1
  78. package/dist/i18n/locales/ro.d.ts +0 -1
  79. package/dist/i18n/locales/ro.js +0 -1
  80. package/dist/i18n/locales/ru.d.ts +0 -1
  81. package/dist/i18n/locales/ru.js +0 -1
  82. package/dist/i18n/locales/sq.d.ts +0 -1
  83. package/dist/i18n/locales/sq.js +0 -1
  84. package/dist/i18n/locales/sv.d.ts +0 -1
  85. package/dist/i18n/locales/sv.js +0 -1
  86. package/dist/i18n/locales/tr.d.ts +0 -1
  87. package/dist/i18n/locales/tr.js +0 -1
  88. package/dist/i18n/locales/zh.d.ts +0 -1
  89. package/dist/i18n/locales/zh.js +0 -1
  90. package/dist/index.js +1328 -1322
  91. package/dist/locales/ar.json +0 -1
  92. package/dist/locales/de.json +0 -1
  93. package/dist/locales/el.json +0 -1
  94. package/dist/locales/en.json +0 -1
  95. package/dist/locales/es.json +0 -1
  96. package/dist/locales/fr.json +0 -1
  97. package/dist/locales/hi.json +0 -1
  98. package/dist/locales/it.json +0 -1
  99. package/dist/locales/ja.json +0 -1
  100. package/dist/locales/nl.json +0 -1
  101. package/dist/locales/pl.json +0 -1
  102. package/dist/locales/pt.json +0 -1
  103. package/dist/locales/ro.json +0 -1
  104. package/dist/locales/ru.json +0 -1
  105. package/dist/locales/sq.json +0 -1
  106. package/dist/locales/sv.json +0 -1
  107. package/dist/locales/tr.json +0 -1
  108. package/dist/locales/zh.json +0 -1
  109. package/dist/online-bookings-panel/index.js +69 -0
  110. package/dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts +46 -0
  111. package/dist/patterns/calendar/booking-tools/booking-tools-data.d.ts +48 -0
  112. package/dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts +55 -0
  113. package/dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts +35 -0
  114. package/dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts +61 -0
  115. package/dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts +58 -0
  116. package/dist/patterns/calendar/calendar-editor-discard-host.d.ts +20 -0
  117. package/dist/patterns/calendar/calendar-print-sheet.d.ts +16 -0
  118. package/dist/patterns/calendar/calendar-workspace.model.d.ts +7 -0
  119. package/dist/patterns/calendar/calendar.model.d.ts +9 -0
  120. package/dist/patterns/calendar/calendar.sheets.d.ts +59 -17
  121. package/dist/patterns/calendar/index.js +24 -20
  122. package/dist/patterns/patient-account-settings/index.js +1 -1
  123. package/dist/patterns/patient-check-in/index.js +1 -1
  124. package/dist/patterns/patient-portal/index.js +2 -2
  125. package/dist/tokens.css +1 -1
  126. package/dist/waiting-list-panel/index.js +158 -0
  127. package/package.json +27 -2
  128. package/dist/_chunks/calendar-appointment-editor-dialog-CB4cQOtc.js +0 -13773
  129. package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
  130. package/dist/_chunks/task-editor-BfXSn6U1.js +0 -1257
  131. package/dist/_chunks/use-appointment-details-read-7J0j1FP7.js +0 -2476
@@ -1,30 +1,30 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as Na, useMemo as aa, useEffect as wa } from "react";
3
- import { c as ka } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ya } from "react-i18next";
5
- import { A as ea } from "./avatar-Dp5apm1d.js";
6
- import { B as c } from "./badge-BUk4RjTS.js";
7
- import { T as Ca } from "./tag-BNlcEJfE.js";
8
- import { T as za } from "./timestamp-DPLDWdxA.js";
9
- import { T as sa } from "./transaction-chip-CkYd-3ky.js";
10
- import { i as Ta } from "./is-development-CLUAnsU7.js";
11
- import { V as Sa } from "./visually-hidden-BHxEUGyT.js";
12
- import { p as Ma } from "./privacy-mask-text-B8YfzB7L.js";
13
- import { a as Ra } from "./workflow-status-CO0mxXs2.js";
14
- import { i as Aa } from "./is-safe-url-CEy9CEml.js";
15
- import { a as Da, b as Va, c as _a } from "./entity-card-p-LANpYt.js";
16
- import { V as Ia } from "./video-BheNGvsu.js";
17
- import { M as La } from "./map-pin-BaY37-Km.js";
18
- import { E as Pa } from "./eye-off-C_4xkbRP.js";
19
- import { U as Ea } from "./user-x-BJZg4kaP.js";
20
- import { B as Oa } from "./building-2-D33bLCWL.js";
21
- import { S as ra } from "./star-Bf9L2Uot.js";
22
- import { c as oa } from "./createLucideIcon-DhHxpK9K.js";
23
- import { A as Ua } from "./armchair-BaLDW6Hz.js";
24
- import { G as Fa } from "./globe-sHBW1JN5.js";
2
+ import { forwardRef as wa, useMemo as sa, useEffect as ya } from "react";
3
+ import { c as Ca } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as za } from "react-i18next";
5
+ import { A as ra } from "./avatar-Dp5apm1d.js";
6
+ import { B as p } from "./badge-BUk4RjTS.js";
7
+ import { T as Ta } from "./tag-BNlcEJfE.js";
8
+ import { T as Sa } from "./timestamp-DPLDWdxA.js";
9
+ import { T as na } from "./transaction-chip-CkYd-3ky.js";
10
+ import { i as Ma } from "./is-development-CLUAnsU7.js";
11
+ import { V as oa } from "./visually-hidden-BHxEUGyT.js";
12
+ import { p as Ra } from "./privacy-mask-text-B8YfzB7L.js";
13
+ import { a as Aa } from "./workflow-status-CO0mxXs2.js";
14
+ import { i as Da } from "./is-safe-url-CEy9CEml.js";
15
+ import { V as Va } from "./video-BheNGvsu.js";
16
+ import { M as _a } from "./map-pin-BaY37-Km.js";
17
+ import { E as Ia } from "./eye-off-C_4xkbRP.js";
18
+ import { b as La, a as Pa, c as Ea } from "./entity-card-p-LANpYt.js";
19
+ import { U as Oa } from "./user-x-BJZg4kaP.js";
20
+ import { B as Ua } from "./building-2-D33bLCWL.js";
21
+ import { S as ta } from "./star-Bf9L2Uot.js";
22
+ import { c as la } from "./createLucideIcon-DhHxpK9K.js";
23
+ import { A as Fa } from "./armchair-BaLDW6Hz.js";
24
+ import { G as $a } from "./globe-sHBW1JN5.js";
25
25
  import { R as ja } from "./repeat-CvQa5rZt.js";
26
- import { F as $a } from "./file-pen-line-k4uMBM3h.js";
27
- import { C as Ba } from "./chevron-right-I9AeSxH2.js";
26
+ import { F as Ba } from "./file-pen-line-k4uMBM3h.js";
27
+ import { C as Wa } from "./chevron-right-I9AeSxH2.js";
28
28
  /**
29
29
  * @license lucide-react v1.22.0 - ISC
30
30
  *
@@ -42,14 +42,14 @@ const qa = [
42
42
  ],
43
43
  ["path", { d: "M9 14h6", key: "159ibu" }],
44
44
  ["path", { d: "M12 17v-6", key: "1y8rbf" }]
45
- ], Wa = oa("clipboard-plus", qa);
45
+ ], Ga = la("clipboard-plus", qa);
46
46
  /**
47
47
  * @license lucide-react v1.22.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
51
  */
52
- const Ga = [
52
+ const Ha = [
53
53
  [
54
54
  "path",
55
55
  {
@@ -60,7 +60,7 @@ const Ga = [
60
60
  ["path", { d: "M7 11h10", key: "1twpyw" }],
61
61
  ["path", { d: "M7 15h6", key: "d9of3u" }],
62
62
  ["path", { d: "M7 7h8", key: "af5zfr" }]
63
- ], Ha = oa("message-square-text", Ga), Ka = {
63
+ ], Ka = la("message-square-text", Ha), Ya = {
64
64
  "var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
65
65
  "var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
66
66
  "var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
@@ -73,23 +73,23 @@ const Ga = [
73
73
  "var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
74
74
  "var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
75
75
  };
76
- function Ya(a) {
77
- return Ka[_a(a)] ?? "ds:bg-[var(--color-grey-700)]";
78
- }
79
76
  function Xa(a) {
77
+ return Ya[Ea(a)] ?? "ds:bg-[var(--color-grey-700)]";
78
+ }
79
+ function Ja(a) {
80
80
  if (!a) return;
81
81
  const t = new Date(a);
82
82
  if (Number.isNaN(t.getTime())) return;
83
- const u = /* @__PURE__ */ new Date();
84
- let o = u.getFullYear() - t.getFullYear();
85
- const d = u.getMonth() - t.getMonth();
86
- return (d < 0 || d === 0 && u.getDate() < t.getDate()) && o--, o < 0 || o > 130 ? void 0 : o;
83
+ const f = /* @__PURE__ */ new Date();
84
+ let d = f.getFullYear() - t.getFullYear();
85
+ const i = f.getMonth() - t.getMonth();
86
+ return (i < 0 || i === 0 && f.getDate() < t.getDate()) && d--, d < 0 || d > 130 ? void 0 : d;
87
87
  }
88
- const na = {
88
+ const da = {
89
89
  hour: "numeric",
90
90
  minute: "2-digit"
91
91
  };
92
- function Ja(a) {
92
+ function Qa(a) {
93
93
  if (a)
94
94
  try {
95
95
  return new Intl.DateTimeFormat("en", { timeZone: a }).resolvedOptions().timeZone;
@@ -97,7 +97,7 @@ function Ja(a) {
97
97
  return;
98
98
  }
99
99
  }
100
- const Qa = ka(
100
+ const Za = Ca(
101
101
  [
102
102
  "ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
103
103
  "ds:rounded-[var(--radius-md)]",
@@ -161,13 +161,13 @@ const Qa = ka(
161
161
  next: !1
162
162
  }
163
163
  }
164
- ), Za = [
164
+ ), ae = [
165
165
  "ds:min-w-0",
166
166
  "ds:[&>div]:h-auto ds:[&>div]:min-h-8 ds:[&>div]:py-[var(--spacing-2xs)]",
167
167
  "ds:[&_[data-workflow-status-value]]:overflow-visible",
168
168
  "ds:[&_[data-workflow-status-value]]:whitespace-normal",
169
169
  "ds:[&_[data-workflow-status-value]]:break-words"
170
- ].join(" "), ta = [
170
+ ].join(" "), ia = [
171
171
  // Interactive elements need a box to remain keyboard-focusable in browsers.
172
172
  "ds:inline-flex ds:min-w-0",
173
173
  "ds:focus-visible:outline-none",
@@ -178,148 +178,148 @@ const Qa = ka(
178
178
  "ds:focus-visible:after:outline-[color:var(--ring)]",
179
179
  "ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
180
180
  "ds:forced-colors:focus-visible:after:outline-[CanvasText]"
181
- ].join(" "), ae = {
182
- inPractice: La,
183
- telehealth: Ia
184
- }, ee = Na(
181
+ ].join(" "), ee = {
182
+ inPractice: _a,
183
+ telehealth: Va
184
+ }, se = wa(
185
185
  ({
186
186
  item: a,
187
187
  size: t = "sm",
188
- surface: u = "flat",
189
- locale: o,
190
- timeZone: d,
191
- currency: C = "EUR",
192
- showPatient: i = !0,
193
- onActivate: p,
194
- selected: z = !1,
195
- hideDefaultStatus: da = !1,
196
- privacy: l = !1,
197
- privacyTitle: ia,
198
- wrapText: b = !1,
199
- className: la,
200
- ...ca
201
- }, pa) => {
202
- var P, E, O, U, F, j, $, B, q, W, G, H, K, Y, X, J, Q, Z;
203
- const { t: s } = ya("ui"), f = aa(() => Ja(d), [d]), ma = aa(
204
- () => f ? { ...na, timeZone: f } : na,
205
- [f]
188
+ surface: f = "flat",
189
+ locale: d,
190
+ timeZone: i,
191
+ currency: z = "EUR",
192
+ showPatient: l = !0,
193
+ onActivate: m,
194
+ selected: T = !1,
195
+ hideDefaultStatus: ca = !1,
196
+ privacy: c = !1,
197
+ privacyTitle: pa,
198
+ wrapText: g = !1,
199
+ className: S,
200
+ ...ma
201
+ }, ua) => {
202
+ var O, U, F, $, j, B, W, q, G, H, K, Y, X, J, Q, Z, aa, ea;
203
+ const { t: s } = za("ui"), h = sa(() => Qa(i), [i]), fa = sa(
204
+ () => h ? { ...da, timeZone: h } : da,
205
+ [h]
206
206
  );
207
- wa(() => {
208
- d && !f && Ta() && console.warn(
209
- `AppointmentCard: "${d}" is not a time zone this browser knows, so the start time shows in the browser's own zone.`
207
+ ya(() => {
208
+ i && !h && Ma() && console.warn(
209
+ `AppointmentCard: "${i}" is not a time zone this browser knows, so the start time shows in the browser's own zone.`
210
210
  );
211
- }, [d, f]);
212
- const g = !!p, ua = !!a.url && Aa(a.url), fa = !(da && a.state === "confirmed"), x = ((P = a.patient) == null ? void 0 : P.name) ?? s("appointmentCard.noPatient"), m = (E = a.operator) == null ? void 0 : E.name, h = s(`appointmentCard.state.${a.state}`), T = Da(a.state), ga = T.Icon, ha = ((O = a.flags) == null ? void 0 : O.noPatientAssigned) || !a.patient, S = l && i && a.patient !== void 0, M = l ? void 0 : Xa((U = a.patient) == null ? void 0 : U.dobIso), R = ((F = a.practiceName) == null ? void 0 : F.trim()) || void 0, N = t === "md" ? "md" : "sm", va = ae[a.type], A = i ? x : m ?? s("appointmentCard.appointment"), D = S ? s("appointmentCard.itemLabelGeneric", {
211
+ }, [i, h]);
212
+ const v = !!m, ga = !!a.url && Da(a.url), o = a.state ?? void 0, ha = o !== void 0 && !(ca && o === "confirmed"), N = ((O = a.patient) == null ? void 0 : O.name) ?? s("appointmentCard.noPatient"), u = (U = a.operator) == null ? void 0 : U.name, b = s(o ? `appointmentCard.state.${o}` : "workflowStatus.noStatus"), M = Pa(o ?? ""), va = M.Icon, ba = ((F = a.flags) == null ? void 0 : F.noPatientAssigned) || !a.patient, R = c && l && a.patient !== void 0, A = c ? void 0 : Ja(($ = a.patient) == null ? void 0 : $.dobIso), D = ((j = a.practiceName) == null ? void 0 : j.trim()) || void 0, k = t === "md" ? "md" : "sm", xa = ee[a.type], V = l ? N : u ?? s("appointmentCard.appointment"), _ = o ? R ? s("appointmentCard.itemLabelGeneric", {
213
213
  title: s("appointmentPeek.hiddenName"),
214
- state: h
215
- }) : i ? s("appointmentCard.itemLabel", {
216
- patient: x,
217
- state: h
218
- }) : s("appointmentCard.itemLabelGeneric", { title: A, state: h }), w = /* @__PURE__ */ r(
214
+ state: b
215
+ }) : l ? s("appointmentCard.itemLabel", {
216
+ patient: N,
217
+ state: b
218
+ }) : s("appointmentCard.itemLabelGeneric", { title: V, state: b }) : void 0, w = /* @__PURE__ */ r(
219
219
  "span",
220
220
  {
221
- className: (b ? "ds:min-w-0 ds:break-words" : "ds:min-w-0 ds:truncate") + " type-title-item ds:text-[color:var(--foreground)]",
221
+ className: (g ? "ds:min-w-0 ds:break-words" : "ds:min-w-0 ds:truncate") + " type-title-item ds:text-[color:var(--foreground)]",
222
222
  children: [
223
- S ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
224
- /* @__PURE__ */ e(Pa, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
225
- /* @__PURE__ */ e(Sa, { children: s("appointmentPeek.hiddenName") }),
226
- /* @__PURE__ */ e("span", { "aria-hidden": "true", children: Ma(ia) })
227
- ] }) : A,
228
- i && M !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
223
+ R ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
224
+ /* @__PURE__ */ e(Ia, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
225
+ /* @__PURE__ */ e(oa, { children: s("appointmentPeek.hiddenName") }),
226
+ /* @__PURE__ */ e("span", { "aria-hidden": "true", children: Ra(pa) })
227
+ ] }) : V,
228
+ l && A !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
229
229
  "· ",
230
- M
230
+ A
231
231
  ] }) : null
232
232
  ]
233
233
  }
234
234
  );
235
- let v;
236
- g && ua ? v = /* @__PURE__ */ e(
235
+ let x;
236
+ v && ga ? x = /* @__PURE__ */ e(
237
237
  "a",
238
238
  {
239
239
  href: a.url,
240
- "aria-label": D,
240
+ "aria-label": _,
241
241
  "data-action": "open-appointment",
242
- className: ta,
242
+ className: ia,
243
243
  onClick: (n) => {
244
- n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || p == null || p(a);
244
+ n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || m == null || m(a);
245
245
  },
246
246
  children: w
247
247
  }
248
- ) : g ? v = /* @__PURE__ */ e(
248
+ ) : v ? x = /* @__PURE__ */ e(
249
249
  "button",
250
250
  {
251
251
  type: "button",
252
- "aria-label": D,
252
+ "aria-label": _,
253
253
  "data-action": "open-appointment",
254
- className: ta + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
255
- onClick: () => p == null ? void 0 : p(a),
254
+ className: ia + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
255
+ onClick: () => m == null ? void 0 : m(a),
256
256
  children: w
257
257
  }
258
- ) : v = w;
259
- const V = (a.treatments ?? []).map((n, ba) => {
260
- const xa = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
258
+ ) : x = w;
259
+ const I = (a.treatments ?? []).map((n, Na) => {
260
+ const ka = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
261
261
  care: n.careName,
262
262
  elements: n.elements.join(", ")
263
263
  }) : n.careName;
264
264
  return /* @__PURE__ */ e(
265
- Ca,
265
+ Ta,
266
266
  {
267
- label: xa,
267
+ label: ka,
268
268
  variant: "neutral",
269
269
  fill: "outline",
270
270
  size: "sm",
271
271
  maxInlineSize: "12rem"
272
272
  },
273
- `${n.careName}-${ba}`
273
+ `${n.careName}-${Na}`
274
274
  );
275
- }), k = (j = a.bookingReason) == null ? void 0 : j.advanceAmountCents, _ = !l && typeof k == "number" && k > 0, y = ($ = a.money) == null ? void 0 : $.unpaidAmountCents, I = !l && typeof y == "number" && y > 0, L = !l && ((B = a.flags) == null ? void 0 : B.highlightedAnamnesis);
275
+ }), y = (B = a.bookingReason) == null ? void 0 : B.advanceAmountCents, L = !c && typeof y == "number" && y > 0, C = (W = a.money) == null ? void 0 : W.unpaidAmountCents, P = !c && typeof C == "number" && C > 0, E = !c && ((q = a.flags) == null ? void 0 : q.highlightedAnamnesis);
276
276
  return /* @__PURE__ */ r(
277
277
  "div",
278
278
  {
279
- ref: pa,
279
+ ref: ua,
280
280
  role: "listitem",
281
281
  "data-component": "appointment-card",
282
282
  "data-component-id": a.id,
283
- "data-state": a.state,
283
+ "data-state": o,
284
284
  "data-type": a.type,
285
- "data-privacy": l ? "masked" : void 0,
286
- "aria-current": z ? "true" : void 0,
287
- className: Qa({
285
+ "data-privacy": c ? "masked" : void 0,
286
+ "aria-current": T ? "true" : void 0,
287
+ className: Za({
288
288
  size: t,
289
- interactive: g,
290
- surface: u,
291
- selected: z,
289
+ interactive: v,
290
+ surface: f,
291
+ selected: T,
292
292
  dimmed: a.dimmed,
293
293
  next: a.next,
294
- className: la
294
+ className: g ? `ds:@container/apptcard ${S ?? ""}`.trim() : S
295
295
  }),
296
- ...ca,
296
+ ...ma,
297
297
  children: [
298
298
  /* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-20 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
299
299
  /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap ds:text-[color:var(--muted-foreground)]", children: [
300
- /* @__PURE__ */ e(va, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
300
+ /* @__PURE__ */ e(xa, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
301
301
  /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
302
302
  /* @__PURE__ */ e(
303
- za,
303
+ Sa,
304
304
  {
305
305
  value: a.startIso,
306
306
  format: "absolute",
307
307
  shape: "bare",
308
- locale: o,
309
- absoluteFormat: ma,
308
+ locale: d,
309
+ absoluteFormat: fa,
310
310
  className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
311
311
  }
312
312
  )
313
313
  ] }),
314
314
  /* @__PURE__ */ e("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s("appointmentCard.duration", { count: a.durationMin }) })
315
315
  ] }),
316
- m ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
316
+ u ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
317
317
  /* @__PURE__ */ e(
318
- ea,
318
+ ra,
319
319
  {
320
- name: m,
321
- color: Va((q = a.operator) == null ? void 0 : q.colorId),
322
- size: N,
320
+ name: u,
321
+ color: La((G = a.operator) == null ? void 0 : G.colorId),
322
+ size: k,
323
323
  "aria-hidden": "true",
324
324
  role: "presentation",
325
325
  "aria-label": void 0
@@ -329,7 +329,7 @@ const Qa = ka(
329
329
  "span",
330
330
  {
331
331
  "aria-hidden": "true",
332
- 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)] " + Ya((W = a.operator) == null ? void 0 : W.colorId)
332
+ 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)] " + Xa((H = a.operator) == null ? void 0 : H.colorId)
333
333
  }
334
334
  )
335
335
  ] }) : null,
@@ -337,32 +337,38 @@ const Qa = ka(
337
337
  /* @__PURE__ */ r(
338
338
  "div",
339
339
  {
340
- className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]" + (b ? " ds:flex-wrap" : ""),
340
+ className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]" + (g ? " ds:flex-wrap" : ""),
341
341
  children: [
342
- /* @__PURE__ */ r("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
343
- i && !l && ((G = a.patient) != null && G.avatarUrl) ? /* @__PURE__ */ e(
344
- ea,
345
- {
346
- name: x,
347
- src: a.patient.avatarUrl,
348
- size: N,
349
- className: "ds:shrink-0",
350
- "aria-hidden": "true",
351
- role: "presentation",
352
- "aria-label": void 0
353
- }
354
- ) : null,
355
- i && ha ? /* @__PURE__ */ e(
356
- "span",
357
- {
358
- className: `ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${N === "md" ? "ds:size-10" : "ds:size-8"}`,
359
- children: /* @__PURE__ */ e(Ea, { "aria-hidden": "true", className: "ds:size-4" })
360
- }
361
- ) : null,
362
- v
363
- ] }),
342
+ /* @__PURE__ */ r(
343
+ "div",
344
+ {
345
+ className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]" + (g ? " ds:@max-[400px]/apptcard:basis-full" : ""),
346
+ children: [
347
+ l && !c && ((K = a.patient) != null && K.avatarUrl) ? /* @__PURE__ */ e(
348
+ ra,
349
+ {
350
+ name: N,
351
+ src: a.patient.avatarUrl,
352
+ size: k,
353
+ className: "ds:shrink-0",
354
+ "aria-hidden": "true",
355
+ role: "presentation",
356
+ "aria-label": void 0
357
+ }
358
+ ) : null,
359
+ l && ba ? /* @__PURE__ */ e(
360
+ "span",
361
+ {
362
+ className: `ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${k === "md" ? "ds:size-10" : "ds:size-8"}`,
363
+ children: /* @__PURE__ */ e(Oa, { "aria-hidden": "true", className: "ds:size-4" })
364
+ }
365
+ ) : null,
366
+ x
367
+ ]
368
+ }
369
+ ),
364
370
  a.next ? /* @__PURE__ */ e(
365
- c,
371
+ p,
366
372
  {
367
373
  variant: "accentSoft",
368
374
  size: "sm",
@@ -371,45 +377,45 @@ const Qa = ka(
371
377
  children: s("appointmentCard.next")
372
378
  }
373
379
  ) : null,
374
- fa ? /* @__PURE__ */ e(
375
- Ra,
380
+ ha && o ? /* @__PURE__ */ e(
381
+ Aa,
376
382
  {
377
383
  size: "sm",
378
- value: a.state,
384
+ value: o,
379
385
  option: {
380
- value: a.state,
381
- label: h,
382
- icon: /* @__PURE__ */ e(ga, { "aria-hidden": "true" }),
383
- tone: T.tone
386
+ value: o,
387
+ label: b,
388
+ icon: /* @__PURE__ */ e(va, { "aria-hidden": "true" }),
389
+ tone: M.tone
384
390
  },
385
- className: b ? Za : "ds:shrink-0"
391
+ className: g ? ae : "ds:shrink-0"
386
392
  }
387
393
  ) : null
388
394
  ]
389
395
  }
390
396
  ),
391
397
  a.next ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.nextSr") }) : null,
392
- R ? /* @__PURE__ */ r(
398
+ D ? /* @__PURE__ */ r(
393
399
  "span",
394
400
  {
395
401
  "data-slot": "practice",
396
402
  className: "type-meta ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]",
397
403
  children: [
398
- /* @__PURE__ */ e("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ e(Oa, { "aria-hidden": "true", className: "ds:size-3" }) }),
404
+ /* @__PURE__ */ e("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ e(Ua, { "aria-hidden": "true", className: "ds:size-3" }) }),
399
405
  /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.practice") }),
400
- /* @__PURE__ */ e("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children: R })
406
+ /* @__PURE__ */ e("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children: D })
401
407
  ]
402
408
  }
403
409
  ) : null,
404
- i && m || (H = a.bookingReason) != null && H.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: [
405
- i && m ? /* @__PURE__ */ e("span", { children: m }) : null,
406
- (K = a.bookingReason) != null && K.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
410
+ l && u || (Y = a.bookingReason) != null && Y.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: [
411
+ l && u ? /* @__PURE__ */ e("span", { children: u }) : null,
412
+ (X = a.bookingReason) != null && X.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
407
413
  a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
408
- /* @__PURE__ */ e(ra, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
414
+ /* @__PURE__ */ e(ta, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
409
415
  s("appointmentCard.firstVisit")
410
416
  ] }) : null,
411
417
  a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
412
- /* @__PURE__ */ e(ra, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
418
+ /* @__PURE__ */ e(ta, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
413
419
  s("appointmentCard.firstVisitUnknown")
414
420
  ] }) : null,
415
421
  a.bookingNote ? /* @__PURE__ */ r(
@@ -419,7 +425,7 @@ const Qa = ka(
419
425
  title: s("appointmentCard.hasBookingNote"),
420
426
  children: [
421
427
  /* @__PURE__ */ e(
422
- Ha,
428
+ Ka,
423
429
  {
424
430
  "aria-hidden": "true",
425
431
  className: "ds:size-3 ds:shrink-0"
@@ -430,63 +436,69 @@ const Qa = ka(
430
436
  }
431
437
  ) : null
432
438
  ] }) : null,
433
- (Y = a.bookingReason) != null && Y.description && !l ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
434
- V.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: V }) : null,
435
- a.carePlan || a.chair || (X = a.flags) != null && X.bookedOnline || L || (J = a.flags) != null && J.billable || a.recurring || a.signing || _ || I ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
439
+ (J = a.bookingReason) != null && J.description && !c ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
440
+ I.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: I }) : null,
441
+ a.carePlan || a.chair || (Q = a.flags) != null && Q.bookedOnline || E || (Z = a.flags) != null && Z.billable || a.recurring || a.signing || L || P ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
436
442
  a.carePlan ? /* @__PURE__ */ e(
437
- c,
443
+ p,
438
444
  {
439
445
  variant: "accentSoft",
440
446
  size: "sm",
441
- leading: /* @__PURE__ */ e(Wa, {}),
447
+ leading: /* @__PURE__ */ e(Ga, {}),
442
448
  children: s("appointmentCard.carePlan", {
443
449
  number: a.carePlan.number
444
450
  })
445
451
  }
446
452
  ) : null,
447
- a.chair ? /* @__PURE__ */ e(c, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Ua, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
448
- (Q = a.flags) != null && Q.bookedOnline ? /* @__PURE__ */ e(c, { variant: "info", size: "sm", leading: /* @__PURE__ */ e(Fa, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
449
- L ? /* @__PURE__ */ e(c, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
450
- a.recurring ? /* @__PURE__ */ e(c, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ja, {}), children: s("appointmentCard.recurring") }) : null,
453
+ a.chair ? /* @__PURE__ */ r(p, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Fa, {}), children: [
454
+ /* @__PURE__ */ r(oa, { children: [
455
+ s("calendarWorkspace.details.chair"),
456
+ " "
457
+ ] }),
458
+ a.chair
459
+ ] }) : null,
460
+ (aa = a.flags) != null && aa.bookedOnline ? /* @__PURE__ */ e(p, { variant: "info", size: "sm", leading: /* @__PURE__ */ e($a, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
461
+ E ? /* @__PURE__ */ e(p, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
462
+ a.recurring ? /* @__PURE__ */ e(p, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ja, {}), children: s("appointmentCard.recurring") }) : null,
451
463
  a.signing ? /* @__PURE__ */ e(
452
- c,
464
+ p,
453
465
  {
454
466
  variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
455
467
  size: "sm",
456
- leading: /* @__PURE__ */ e($a, {}),
468
+ leading: /* @__PURE__ */ e(Ba, {}),
457
469
  children: s("appointmentCard.signing", {
458
470
  complete: a.signing.toComplete,
459
471
  required: a.signing.required
460
472
  })
461
473
  }
462
474
  ) : null,
463
- (Z = a.flags) != null && Z.billable ? /* @__PURE__ */ e(c, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
464
- _ ? /* @__PURE__ */ e(
465
- sa,
475
+ (ea = a.flags) != null && ea.billable ? /* @__PURE__ */ e(p, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
476
+ L ? /* @__PURE__ */ e(
477
+ na,
466
478
  {
467
479
  state: "to-invoice",
468
- amount: k / 100,
469
- currency: C,
470
- locale: o,
480
+ amount: y / 100,
481
+ currency: z,
482
+ locale: d,
471
483
  size: "sm",
472
484
  showLabel: !0
473
485
  }
474
486
  ) : null,
475
- I ? /* @__PURE__ */ e(
476
- sa,
487
+ P ? /* @__PURE__ */ e(
488
+ na,
477
489
  {
478
490
  state: "debt",
479
- amount: y / 100,
480
- currency: C,
481
- locale: o,
491
+ amount: C / 100,
492
+ currency: z,
493
+ locale: d,
482
494
  size: "sm",
483
495
  showLabel: !0
484
496
  }
485
497
  ) : null
486
498
  ] }) : null
487
499
  ] }),
488
- g ? /* @__PURE__ */ e(
489
- Ba,
500
+ v ? /* @__PURE__ */ e(
501
+ Wa,
490
502
  {
491
503
  "aria-hidden": "true",
492
504
  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"
@@ -497,8 +509,8 @@ const Qa = ka(
497
509
  );
498
510
  }
499
511
  );
500
- ee.displayName = "AppointmentCard";
512
+ se.displayName = "AppointmentCard";
501
513
  export {
502
- ee as A
514
+ se as A
503
515
  };
504
- //# sourceMappingURL=appointment-card-BT1cMZIX.js.map
516
+ //# sourceMappingURL=appointment-card-CaxFXtSn.js.map