@alfadocs/ui-kit 1.147.1 → 1.148.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 (108) hide show
  1. package/dist/_chunks/{appointment-details-panel.history-eqPMKmW0.js → appointment-details-panel.history-BxNqcA-r.js} +109 -110
  2. package/dist/_chunks/{appointment-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
  3. package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
  4. package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-sY-k0GGW.js → calendar-appointment-editor-dialog-Cz8F2H4M.js} +6 -6
  6. package/dist/_chunks/{calendar-waiting-list-panel-Bm7NAZdk.js → calendar-waiting-list-panel-C4T85b4q.js} +3 -3
  7. package/dist/_chunks/{calendar.sheets-CCvdZF-R.js → calendar.sheets-DsgPdycU.js} +4 -4
  8. package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
  9. package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
  10. package/dist/_chunks/editable-description-BsSjLnSx.js +193 -0
  11. package/dist/_chunks/{editable-description.agent-Bm_LBV2j.js → editable-description.agent-zyyR_hxB.js} +2 -2
  12. package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
  13. package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
  14. package/dist/_chunks/{notes-panel-C9aB1Cma.js → notes-panel-BHMnLbEH.js} +2 -2
  15. package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
  16. package/dist/_chunks/{rich-text-editor-CJXc5GgH.js → rich-text-editor-BAcJq1PO.js} +445 -437
  17. package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-DufAoAxG.js} +2 -2
  18. package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
  19. package/dist/_chunks/{use-appointment-details-read-Dod21IxM.js → use-appointment-details-read-kYp-gfhb.js} +417 -422
  20. package/dist/agent-catalog.json +2 -2
  21. package/dist/appointment-editor-panel/index.js +1 -1
  22. package/dist/browser-support.js +1 -1
  23. package/dist/calendar-action-buttons/index.js +1 -1
  24. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +4 -6
  25. package/dist/components/appointment-details-panel/index.js +1 -1
  26. package/dist/components/appointment-timeline/index.js +1 -1
  27. package/dist/components/bill-line-table/index.js +1 -1
  28. package/dist/components/bill-table/index.js +1 -1
  29. package/dist/components/button-group/button-group.d.ts +2 -1
  30. package/dist/components/button-group/index.js +1 -1
  31. package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
  32. package/dist/components/data-grid/index.js +2 -2
  33. package/dist/components/editable-description/editable-description.d.ts +2 -1
  34. package/dist/components/editable-description/index.js +2 -2
  35. package/dist/components/face-scheme/index.js +1 -1
  36. package/dist/components/invoice-upload-list/index.js +1 -1
  37. package/dist/components/notes-panel/index.js +1 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/tasks-panel/index.js +1 -1
  40. package/dist/core.css +1 -1
  41. package/dist/find-free-slots-panel/index.js +1 -1
  42. package/dist/host-compat.css +7 -1
  43. package/dist/i18n/locales/ar.d.ts +0 -1
  44. package/dist/i18n/locales/ar.js +1 -2
  45. package/dist/i18n/locales/de.d.ts +0 -1
  46. package/dist/i18n/locales/de.js +1 -2
  47. package/dist/i18n/locales/el.d.ts +0 -1
  48. package/dist/i18n/locales/el.js +1 -2
  49. package/dist/i18n/locales/en.d.ts +0 -1
  50. package/dist/i18n/locales/en.js +1 -2
  51. package/dist/i18n/locales/es.d.ts +0 -1
  52. package/dist/i18n/locales/es.js +1 -2
  53. package/dist/i18n/locales/fr.d.ts +0 -1
  54. package/dist/i18n/locales/fr.js +1 -2
  55. package/dist/i18n/locales/hi.d.ts +0 -1
  56. package/dist/i18n/locales/hi.js +1 -2
  57. package/dist/i18n/locales/it.d.ts +0 -1
  58. package/dist/i18n/locales/it.js +1 -2
  59. package/dist/i18n/locales/ja.d.ts +0 -1
  60. package/dist/i18n/locales/ja.js +1 -2
  61. package/dist/i18n/locales/nl.d.ts +0 -1
  62. package/dist/i18n/locales/nl.js +1 -2
  63. package/dist/i18n/locales/pl.d.ts +0 -1
  64. package/dist/i18n/locales/pl.js +1 -2
  65. package/dist/i18n/locales/pt.d.ts +0 -1
  66. package/dist/i18n/locales/pt.js +1 -2
  67. package/dist/i18n/locales/ro.d.ts +0 -1
  68. package/dist/i18n/locales/ro.js +1 -2
  69. package/dist/i18n/locales/ru.d.ts +0 -1
  70. package/dist/i18n/locales/ru.js +1 -2
  71. package/dist/i18n/locales/sq.d.ts +0 -1
  72. package/dist/i18n/locales/sq.js +1 -2
  73. package/dist/i18n/locales/sv.d.ts +0 -1
  74. package/dist/i18n/locales/sv.js +1 -2
  75. package/dist/i18n/locales/tr.d.ts +0 -1
  76. package/dist/i18n/locales/tr.js +1 -2
  77. package/dist/i18n/locales/zh.d.ts +0 -1
  78. package/dist/i18n/locales/zh.js +1 -2
  79. package/dist/index.js +17 -17
  80. package/dist/locales/ar.json +1 -2
  81. package/dist/locales/de.json +1 -2
  82. package/dist/locales/el.json +1 -2
  83. package/dist/locales/en.json +1 -2
  84. package/dist/locales/es.json +1 -2
  85. package/dist/locales/fr.json +1 -2
  86. package/dist/locales/hi.json +1 -2
  87. package/dist/locales/it.json +1 -2
  88. package/dist/locales/ja.json +1 -2
  89. package/dist/locales/nl.json +1 -2
  90. package/dist/locales/pl.json +1 -2
  91. package/dist/locales/pt.json +1 -2
  92. package/dist/locales/ro.json +1 -2
  93. package/dist/locales/ru.json +1 -2
  94. package/dist/locales/sq.json +1 -2
  95. package/dist/locales/sv.json +1 -2
  96. package/dist/locales/tr.json +1 -2
  97. package/dist/locales/zh.json +1 -2
  98. package/dist/online-bookings-panel/index.js +1 -1
  99. package/dist/patterns/calendar/index.js +2 -2
  100. package/dist/patterns/prescription/index.d.ts +1 -1
  101. package/dist/patterns/prescription/index.js +1 -1
  102. package/dist/patterns/prescription/prescription-history.d.ts +28 -0
  103. package/dist/tokens.css +1 -1
  104. package/dist/waiting-list-panel/index.js +2 -2
  105. package/package.json +1 -1
  106. package/dist/_chunks/button-group-N60L3HMa.js +0 -408
  107. package/dist/_chunks/editable-description-BQauSuCG.js +0 -142
  108. package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
@@ -1,72 +1,71 @@
1
1
  import { c as A } from "./createLucideIcon-DhHxpK9K.js";
2
- import { jsx as s, jsxs as p } from "react/jsx-runtime";
3
- import { useTranslation as P } from "react-i18next";
4
- import { s as F, D as $ } from "./appointment-details-panel.identity--_j07UG1.js";
5
- import { E as L } from "./empty-state-5REM7oDM.js";
6
- import { T as v } from "./timeline-BzGi_3GQ.js";
7
- import { a as W } from "./workflow-status-Cg7yjnye.js";
8
- import { u as j } from "./appointment-workflow-status-S-lx81Yz.js";
9
- import { C as R } from "./calendar-clock-hbObjfGY.js";
10
- import { T as B } from "./trash-2-uumy3fy1.js";
2
+ import { jsx as e, jsxs as h } from "react/jsx-runtime";
3
+ import { useTranslation as E } from "react-i18next";
4
+ import { s as P, D as F } from "./appointment-details-panel.identity--_j07UG1.js";
5
+ import { E as $ } from "./empty-state-5REM7oDM.js";
6
+ import { T as y } from "./timeline-BzGi_3GQ.js";
7
+ import { a as L } from "./workflow-status-Cg7yjnye.js";
8
+ import { u as W } from "./appointment-workflow-status-S-lx81Yz.js";
9
+ import { C as j } from "./calendar-clock-hbObjfGY.js";
10
+ import { T as R } from "./trash-2-uumy3fy1.js";
11
11
  import { A as z } from "./entity-card-p-LANpYt.js";
12
- import { C as H } from "./copy-vRpqqHtY.js";
13
- import { C as G } from "./calendar-plus-BFrIRE4r.js";
12
+ import { C as B } from "./copy-vRpqqHtY.js";
13
+ import { C as H } from "./calendar-plus-BFrIRE4r.js";
14
14
  import { P as k } from "./pencil-B1sKKyuT.js";
15
- import { C as T } from "./clock-Drd4Wtis.js";
16
- import { A as K } from "./arrow-right-KsIrLdt0.js";
15
+ import { C as x } from "./clock-Drd4Wtis.js";
16
+ import { A as G } from "./arrow-right-KsIrLdt0.js";
17
17
  /**
18
18
  * @license lucide-react v1.22.0 - ISC
19
19
  *
20
20
  * This source code is licensed under the ISC license.
21
21
  * See the LICENSE file in the root directory of this source tree.
22
22
  */
23
- const Y = [
23
+ const K = [
24
24
  ["path", { d: "M11 14h10", key: "1w8e9d" }],
25
25
  ["path", { d: "M16 4h2a2 2 0 0 1 2 2v1.344", key: "1e62lh" }],
26
26
  ["path", { d: "m17 18 4-4-4-4", key: "z2g111" }],
27
27
  ["path", { d: "M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113", key: "bjbb7m" }],
28
28
  ["rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", key: "ublpy" }]
29
- ], pt = A("clipboard-paste", Y);
29
+ ], ut = A("clipboard-paste", K);
30
30
  /**
31
31
  * @license lucide-react v1.22.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
35
  */
36
- const U = [
36
+ const Y = [
37
37
  ["path", { d: "M12 2v20", key: "t6zp3m" }],
38
38
  ["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
39
39
  ["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
40
40
  ["path", { d: "M2 12h20", key: "9i4pu4" }],
41
41
  ["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
42
42
  ["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
43
- ], C = A("move", U), i = (o) => `calendarWorkspace.details.${o}`, V = /* @__PURE__ */ new Set(["patient", "care"]), S = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, X = (o) => {
44
- switch (o.field) {
43
+ ], C = A("move", Y), i = (s) => `calendarWorkspace.details.${s}`, U = /* @__PURE__ */ new Set(["patient", "care"]), S = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, V = (s) => {
44
+ switch (s.field) {
45
45
  case "time":
46
- return !!(o.fromIso || o.toIso);
46
+ return !!(s.fromIso || s.toIso);
47
47
  case "duration":
48
- return o.fromMin !== void 0 || o.toMin !== void 0;
48
+ return s.fromMin !== void 0 || s.toMin !== void 0;
49
49
  default:
50
- return !!(o.from || o.to);
50
+ return !!(s.from || s.to);
51
51
  }
52
52
  };
53
- function q(o) {
54
- const f = o.kind === "moved" ? [{ field: "time", fromIso: o.fromIso, toIso: o.toIso }] : o.kind === "resized" ? [{ field: "duration", fromMin: o.fromMin, toMin: o.toMin }] : o.kind === "status" ? [{ field: "status", from: o.from, to: o.to }] : [], w = ("changes" in o ? o.changes ?? [] : []).filter(
55
- X
56
- ), y = new Set(f.map((e) => e.field));
53
+ function X(s) {
54
+ const f = s.kind === "moved" ? [{ field: "time", fromIso: s.fromIso, toIso: s.toIso }] : s.kind === "resized" ? [{ field: "duration", fromMin: s.fromMin, toMin: s.toMin }] : s.kind === "status" ? [{ field: "status", from: s.from, to: s.to }] : [], w = ("changes" in s ? s.changes ?? [] : []).filter(
55
+ V
56
+ ), o = new Set(f.map((p) => p.field));
57
57
  return [
58
58
  ...f,
59
- ...w.filter((e) => y.has(e.field) ? !1 : (y.add(e.field), !0))
59
+ ...w.filter((p) => o.has(p.field) ? !1 : (o.add(p.field), !0))
60
60
  ];
61
61
  }
62
- const J = (o, f) => o.getFullYear() === f.getFullYear() && o.getMonth() === f.getMonth() && o.getDate() === f.getDate();
63
- function ht({
64
- history: o,
62
+ const q = (s, f) => s.getFullYear() === f.getFullYear() && s.getMonth() === f.getMonth() && s.getDate() === f.getDate();
63
+ function pt({
64
+ history: s,
65
65
  locale: f,
66
- noteUnrecordedEdits: w = !1,
67
- privacy: y = !1
66
+ privacy: w = !1
68
67
  }) {
69
- const { t: e, i18n: D } = P("ui"), { optionFor: I } = j(null), g = f ?? D.language, N = (t, d) => {
68
+ const { t: o, i18n: p } = E("ui"), { optionFor: I } = W(null), g = f ?? p.language, M = (t, d) => {
70
69
  try {
71
70
  return new Intl.DateTimeFormat(g, d).format(
72
71
  new Date(t)
@@ -74,7 +73,7 @@ function ht({
74
73
  } catch {
75
74
  return t;
76
75
  }
77
- }, M = (t) => N(t, $), b = e(i("history.notSet")), x = (t) => {
76
+ }, N = (t) => M(t, F), b = o(i("history.notSet")), T = (t) => {
78
77
  switch (t.field) {
79
78
  case "status":
80
79
  return {
@@ -82,32 +81,32 @@ function ht({
82
81
  to: t.to && I(t.to).label
83
82
  };
84
83
  case "time": {
85
- const d = t.fromIso && new Date(t.fromIso), a = t.toIso && new Date(t.toIso), l = d && a && J(d, a) ? N(t.toIso, {
84
+ const d = t.fromIso && new Date(t.fromIso), a = t.toIso && new Date(t.toIso), l = d && a && q(d, a) ? M(t.toIso, {
86
85
  hour: "2-digit",
87
86
  minute: "2-digit"
88
87
  }) : void 0;
89
88
  return {
90
- from: t.fromIso && M(t.fromIso),
91
- to: l ?? (t.toIso && M(t.toIso))
89
+ from: t.fromIso && N(t.fromIso),
90
+ to: l ?? (t.toIso && N(t.toIso))
92
91
  };
93
92
  }
94
93
  case "duration":
95
94
  return {
96
- from: t.fromMin === void 0 ? void 0 : e(i("history.minutes"), { n: t.fromMin }),
97
- to: t.toMin === void 0 ? void 0 : e(i("history.minutes"), { n: t.toMin })
95
+ from: t.fromMin === void 0 ? void 0 : o(i("history.minutes"), { n: t.fromMin }),
96
+ to: t.toMin === void 0 ? void 0 : o(i("history.minutes"), { n: t.toMin })
98
97
  };
99
98
  default:
100
99
  return { from: t.from || void 0, to: t.to || void 0 };
101
100
  }
102
- }, O = (t) => {
103
- const d = e(i(`history.fields.${t.field}`)), { from: a, to: l } = x(t);
104
- return t.field === "colour" && [a, l].some((u) => u && S.test(u)) ? e(i("history.changed.colour")) : a && !l ? e(i("history.changeCleared"), { field: d, from: a }) : !a && l ? e(i("history.changeSet"), { field: d, to: l }) : e(i("history.changeFromTo"), {
101
+ }, D = (t) => {
102
+ const d = o(i(`history.fields.${t.field}`)), { from: a, to: l } = T(t);
103
+ return t.field === "colour" && [a, l].some((u) => u && S.test(u)) ? o(i("history.changed.colour")) : a && !l ? o(i("history.changeCleared"), { field: d, from: a }) : !a && l ? o(i("history.changeSet"), { field: d, to: l }) : o(i("history.changeFromTo"), {
105
104
  field: d,
106
105
  from: a ?? b,
107
106
  to: l ?? b
108
107
  });
109
- }, h = (t) => {
110
- const d = (n, c) => n && t.field === "colour" && S.test(n) ? /* @__PURE__ */ s(
108
+ }, v = (t) => {
109
+ const d = (n, c) => n && t.field === "colour" && S.test(n) ? /* @__PURE__ */ e(
111
110
  "span",
112
111
  {
113
112
  className: "ds:inline-block ds:size-4 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--border)] ds:[background-color:var(--history-swatch)] ds:forced-colors:[forced-color-adjust:none]",
@@ -115,31 +114,31 @@ function ht({
115
114
  "--history-swatch": n.startsWith("#") ? n : `#${n}`
116
115
  }
117
116
  }
118
- ) : n ? /* @__PURE__ */ s(
117
+ ) : n ? /* @__PURE__ */ e(
119
118
  "span",
120
119
  {
121
120
  className: c ? "ds:min-w-0 ds:font-[var(--font-weight-medium)] ds:text-[color:var(--foreground)]" : "ds:min-w-0 ds:text-[color:var(--muted-foreground)]",
122
121
  children: n
123
122
  }
124
- ) : /* @__PURE__ */ s("span", { className: "ds:min-w-0 ds:text-[color:var(--muted-foreground)]", children: b }), a = (n) => n ? /* @__PURE__ */ s(
125
- W,
123
+ ) : /* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:text-[color:var(--muted-foreground)]", children: b }), a = (n) => n ? /* @__PURE__ */ e(
124
+ L,
126
125
  {
127
126
  value: n,
128
127
  option: I(n),
129
128
  size: "sm"
130
129
  }
131
- ) : d(void 0, !1), { from: l, to: u } = x(t);
132
- return /* @__PURE__ */ p("div", { className: "ds:min-w-0", "data-history-change": t.field, children: [
133
- /* @__PURE__ */ s("span", { className: "ds:sr-only", children: O(t) }),
134
- /* @__PURE__ */ p(
130
+ ) : d(void 0, !1), { from: l, to: u } = T(t);
131
+ return /* @__PURE__ */ h("div", { className: "ds:min-w-0", "data-history-change": t.field, children: [
132
+ /* @__PURE__ */ e("span", { className: "ds:sr-only", children: D(t) }),
133
+ /* @__PURE__ */ h(
135
134
  "div",
136
135
  {
137
136
  "aria-hidden": "true",
138
137
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
139
138
  children: [
140
139
  t.field === "status" ? a(t.from) : d(l, !1),
141
- /* @__PURE__ */ s(
142
- K,
140
+ /* @__PURE__ */ e(
141
+ G,
143
142
  {
144
143
  className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:rtl:rotate-180",
145
144
  "aria-hidden": "true"
@@ -150,154 +149,154 @@ function ht({
150
149
  }
151
150
  )
152
151
  ] });
153
- }, _ = (t) => {
152
+ }, O = (t) => {
154
153
  switch (t.kind) {
155
154
  case "created":
156
155
  return {
157
- title: e(i("history.created")),
156
+ title: o(i("history.created")),
158
157
  type: "success",
159
- icon: /* @__PURE__ */ s(G, { size: 16, "aria-hidden": "true" })
158
+ icon: /* @__PURE__ */ e(H, { size: 16, "aria-hidden": "true" })
160
159
  };
161
160
  case "copied":
162
161
  return {
163
- title: e(i("history.copied")),
162
+ title: o(i("history.copied")),
164
163
  type: "success",
165
- icon: /* @__PURE__ */ s(H, { size: 16, "aria-hidden": "true" })
164
+ icon: /* @__PURE__ */ e(B, { size: 16, "aria-hidden": "true" })
166
165
  };
167
166
  case "confirmedByPatient": {
168
167
  const r = z.confirmed.Icon;
169
168
  return {
170
- title: e(i("history.confirmedByPatient")),
169
+ title: o(i("history.confirmedByPatient")),
171
170
  type: "success",
172
- icon: /* @__PURE__ */ s(r, { size: 16, "aria-hidden": "true" })
171
+ icon: /* @__PURE__ */ e(r, { size: 16, "aria-hidden": "true" })
173
172
  };
174
173
  }
175
174
  case "deleted":
176
175
  return {
177
- title: e(i("history.deleted")),
176
+ title: o(i("history.deleted")),
178
177
  type: "error",
179
- icon: /* @__PURE__ */ s(B, { size: 16, "aria-hidden": "true" })
178
+ icon: /* @__PURE__ */ e(R, { size: 16, "aria-hidden": "true" })
180
179
  };
181
180
  }
182
- const d = q(t), a = y ? d.filter((r) => !V.has(r.field)) : d, l = new Set(a.map((r) => r.field)), u = [
181
+ const d = X(t), a = w ? d.filter((r) => !U.has(r.field)) : d, l = new Set(a.map((r) => r.field)), u = [
183
182
  ...t.kind === "edited" ? t.fields : [],
184
183
  ...d.filter((r) => !l.has(r.field)).map((r) => r.field)
185
184
  ].filter(
186
- (r, m, E) => r !== "status" && !l.has(r) && E.indexOf(r) === m
187
- ), n = u.length > 0 ? e(i("history.editedDetail"), {
188
- fields: u.map((r) => e(i(`history.fields.${r}`))).join(", ")
185
+ (r, m, _) => r !== "status" && !l.has(r) && _.indexOf(r) === m
186
+ ), n = u.length > 0 ? o(i("history.editedDetail"), {
187
+ fields: u.map((r) => o(i(`history.fields.${r}`))).join(", ")
189
188
  }) : void 0, [c] = a;
190
189
  if (a.length === 1 && c && !n)
191
190
  switch (c.field) {
192
191
  case "status": {
193
192
  const { to: r } = c, m = r ? z[r].Icon : k;
194
193
  return {
195
- title: e(i("history.status")),
194
+ title: o(i("history.status")),
196
195
  type: r === "cancelled" || r === "absent" ? "warning" : "neutral",
197
- icon: /* @__PURE__ */ s(m, { size: 16, "aria-hidden": "true" }),
198
- detail: h(c)
196
+ icon: /* @__PURE__ */ e(m, { size: 16, "aria-hidden": "true" }),
197
+ detail: v(c)
199
198
  };
200
199
  }
201
200
  case "time":
202
201
  return {
203
- title: e(i("history.moved")),
202
+ title: o(i("history.moved")),
204
203
  type: "info",
205
- icon: /* @__PURE__ */ s(C, { size: 16, "aria-hidden": "true" }),
206
- detail: h(c)
204
+ icon: /* @__PURE__ */ e(C, { size: 16, "aria-hidden": "true" }),
205
+ detail: v(c)
207
206
  };
208
207
  case "duration":
209
208
  return {
210
- title: e(i("history.resized")),
209
+ title: o(i("history.resized")),
211
210
  type: "info",
212
- icon: /* @__PURE__ */ s(T, { size: 16, "aria-hidden": "true" }),
213
- detail: h(c)
211
+ icon: /* @__PURE__ */ e(x, { size: 16, "aria-hidden": "true" }),
212
+ detail: v(c)
214
213
  };
215
214
  default:
216
215
  return {
217
- title: e(i(`history.changed.${c.field}`)),
216
+ title: o(i(`history.changed.${c.field}`)),
218
217
  type: "neutral",
219
- icon: /* @__PURE__ */ s(k, { size: 16, "aria-hidden": "true" }),
220
- detail: h(c)
218
+ icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" }),
219
+ detail: v(c)
221
220
  };
222
221
  }
223
222
  if (a.length > 0) {
224
223
  const r = t.kind === "moved" ? {
225
224
  title: "history.moved",
226
- icon: /* @__PURE__ */ s(C, { size: 16, "aria-hidden": "true" })
225
+ icon: /* @__PURE__ */ e(C, { size: 16, "aria-hidden": "true" })
227
226
  } : t.kind === "resized" ? {
228
227
  title: "history.resized",
229
- icon: /* @__PURE__ */ s(T, { size: 16, "aria-hidden": "true" })
228
+ icon: /* @__PURE__ */ e(x, { size: 16, "aria-hidden": "true" })
230
229
  } : t.kind === "status" ? {
231
230
  title: "history.status",
232
231
  icon: (() => {
233
232
  const m = z[t.to].Icon;
234
- return /* @__PURE__ */ s(m, { size: 16, "aria-hidden": "true" });
233
+ return /* @__PURE__ */ e(m, { size: 16, "aria-hidden": "true" });
235
234
  })()
236
235
  } : {
237
236
  title: "history.edited",
238
- icon: /* @__PURE__ */ s(k, { size: 16, "aria-hidden": "true" })
237
+ icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" })
239
238
  };
240
239
  return {
241
- title: e(i(r.title)),
240
+ title: o(i(r.title)),
242
241
  type: t.kind === "moved" || t.kind === "resized" ? "info" : t.kind === "status" && (t.to === "cancelled" || t.to === "absent") ? "warning" : "neutral",
243
242
  icon: r.icon,
244
- detail: /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
245
- /* @__PURE__ */ s(
243
+ detail: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
244
+ /* @__PURE__ */ e(
246
245
  "dl",
247
246
  {
248
- "aria-label": e(i("history.changesLabel")),
247
+ "aria-label": o(i("history.changesLabel")),
249
248
  className: "ds:m-0 ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:items-baseline ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)]",
250
- children: a.map((m) => /* @__PURE__ */ p("div", { className: "ds:contents", children: [
251
- /* @__PURE__ */ s("dt", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: e(i(`history.fields.${m.field}`)) }),
252
- /* @__PURE__ */ s("dd", { className: "ds:m-0 ds:min-w-0", children: h(m) })
249
+ children: a.map((m) => /* @__PURE__ */ h("div", { className: "ds:contents", children: [
250
+ /* @__PURE__ */ e("dt", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: o(i(`history.fields.${m.field}`)) }),
251
+ /* @__PURE__ */ e("dd", { className: "ds:m-0 ds:min-w-0", children: v(m) })
253
252
  ] }, m.field))
254
253
  }
255
254
  ),
256
- n ? /* @__PURE__ */ s("p", { className: "ds:m-0", children: n }) : null
255
+ n ? /* @__PURE__ */ e("p", { className: "ds:m-0", children: n }) : null
257
256
  ] })
258
257
  };
259
258
  }
260
259
  return {
261
- title: e(i("history.edited")),
260
+ title: o(i("history.edited")),
262
261
  type: "neutral",
263
- icon: /* @__PURE__ */ s(k, { size: 16, "aria-hidden": "true" }),
264
- detail: n || (w ? /* @__PURE__ */ s("span", { className: "ds:text-[color:var(--muted-foreground)]", children: e(i("history.notRecorded")) }) : void 0)
262
+ icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" }),
263
+ detail: n ?? void 0
265
264
  };
266
265
  };
267
- return o.length === 0 ? /* @__PURE__ */ s(
268
- L,
266
+ return s.length === 0 ? /* @__PURE__ */ e(
267
+ $,
269
268
  {
270
269
  variant: "first-use",
271
270
  size: "sm",
272
- title: e(i("historyEmpty"))
271
+ title: o(i("historyEmpty"))
273
272
  }
274
- ) : /* @__PURE__ */ s(v, { order: "newest-first", "aria-label": e(i("historyTitle")), children: F(o).map((t) => {
275
- const d = _(t);
276
- return /* @__PURE__ */ p(
277
- v.Event,
273
+ ) : /* @__PURE__ */ e(y, { order: "newest-first", "aria-label": o(i("historyTitle")), children: P(s).map((t) => {
274
+ const d = O(t);
275
+ return /* @__PURE__ */ h(
276
+ y.Event,
278
277
  {
279
278
  eventId: t.id,
280
279
  type: d.type,
281
280
  className: "ds:[column-gap:var(--spacing-sm)] ds:[padding-block-end:var(--spacing-lg)] ds:before:bg-[var(--primary)]",
282
281
  children: [
283
- /* @__PURE__ */ s(v.Dot, { icon: d.icon }),
284
- /* @__PURE__ */ s(
285
- v.Content,
282
+ /* @__PURE__ */ e(y.Dot, { icon: d.icon }),
283
+ /* @__PURE__ */ e(
284
+ y.Content,
286
285
  {
287
286
  title: d.title,
288
287
  description: d.detail,
289
288
  className: "ds:[padding-block-end:0] ds:[&>[data-component=card]]:border-[color:var(--card-border)] ds:[&>[data-component=card]]:shadow-[var(--shadow-card)]",
290
289
  actor: t.actor.trim() ? { name: t.actor } : void 0,
291
- children: /* @__PURE__ */ p("span", { className: "ds:mt-[var(--spacing-sm)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
292
- /* @__PURE__ */ s(
293
- R,
290
+ children: /* @__PURE__ */ h("span", { className: "ds:mt-[var(--spacing-sm)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
291
+ /* @__PURE__ */ e(
292
+ j,
294
293
  {
295
294
  "aria-hidden": "true",
296
295
  className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
297
296
  }
298
297
  ),
299
- /* @__PURE__ */ s(
300
- v.Timestamp,
298
+ /* @__PURE__ */ e(
299
+ y.Timestamp,
301
300
  {
302
301
  date: t.atIso,
303
302
  relative: !1,
@@ -314,8 +313,8 @@ function ht({
314
313
  }) });
315
314
  }
316
315
  export {
317
- ht as A,
318
- pt as C,
316
+ pt as A,
317
+ ut as C,
319
318
  C as M
320
319
  };
321
- //# sourceMappingURL=appointment-details-panel.history-eqPMKmW0.js.map
320
+ //# sourceMappingURL=appointment-details-panel.history-BxNqcA-r.js.map
@@ -10,7 +10,7 @@ import { I as tt } from "./icon-button-u9VMQn3x.js";
10
10
  import { M as ss } from "./multi-select-DeMiHm8T.js";
11
11
  import { S as ns } from "./search-input-CRAMo1CA.js";
12
12
  import { B as le } from "./button-Dp4j9ygh.js";
13
- import { B as st } from "./button-group-N60L3HMa.js";
13
+ import { B as st } from "./button-group-CHQD8GJ0.js";
14
14
  import { D as nt } from "./date-picker-CD-PBzXM.js";
15
15
  import { P as as } from "./panel-header-CbtlTe85.js";
16
16
  import { S as rs } from "./skeleton-tTWJpvAq.js";
@@ -773,4 +773,4 @@ export {
773
773
  Ts as A,
774
774
  fs as a
775
775
  };
776
- //# sourceMappingURL=appointment-timeline-D5qbZ7in.js.map
776
+ //# sourceMappingURL=appointment-timeline-CuZW-CGT.js.map
@@ -2,7 +2,7 @@ import { jsxs as w, jsx as l, Fragment as ot } from "react/jsx-runtime";
2
2
  import { createContext as Jt, useContext as we, useRef as A, useLayoutEffect as Kn, useMemo as E, forwardRef as Pn, useEffect as Ae, useState as qe, useCallback as B, useImperativeHandle as $n, useId as Fn } from "react";
3
3
  import { useTranslation as Pe } from "react-i18next";
4
4
  import { u as zn } from "./registry-DvAUVLHh.js";
5
- import { e as Yn } from "./data-grid-CujX-2tF.js";
5
+ import { e as Yn } from "./data-grid-CkzbCZSo.js";
6
6
  import { a as K } from "./format-number-DdzqwMs1.js";
7
7
  import { i as Vt } from "./is-development-CLUAnsU7.js";
8
8
  import { B as st } from "./badge-BUk4RjTS.js";
@@ -1997,4 +1997,4 @@ export {
1997
1997
  Ci as u,
1998
1998
  Yt as v
1999
1999
  };
2000
- //# sourceMappingURL=bill-line-table-DnkFqMnM.js.map
2000
+ //# sourceMappingURL=bill-line-table-B8Cc2pTH.js.map