@alfadocs/ui-kit 1.147.0 → 1.147.2
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.
- package/dist/_chunks/{appointment-details-panel.history-eqPMKmW0.js → appointment-details-panel.history-BxNqcA-r.js} +109 -110
- package/dist/_chunks/{calendar-appointment-editor-dialog-sY-k0GGW.js → calendar-appointment-editor-dialog-CoIFwj9g.js} +4 -4
- package/dist/_chunks/{calendar-waiting-list-panel-Bm7NAZdk.js → calendar-waiting-list-panel-DuALuqLD.js} +2 -2
- package/dist/_chunks/{calendar.sheets-CCvdZF-R.js → calendar.sheets-CueyPkTT.js} +3 -3
- package/dist/_chunks/editable-description-BsSjLnSx.js +193 -0
- package/dist/_chunks/{editable-description.agent-Bm_LBV2j.js → editable-description.agent-zyyR_hxB.js} +2 -2
- package/dist/_chunks/{notes-panel-C9aB1Cma.js → notes-panel-BHMnLbEH.js} +2 -2
- package/dist/_chunks/registry-connection-panel-ACOsXu3F.js +529 -0
- package/dist/_chunks/{rich-text-editor-CJXc5GgH.js → rich-text-editor-BAcJq1PO.js} +445 -437
- package/dist/_chunks/{use-appointment-details-read-Dod21IxM.js → use-appointment-details-read-CC74Y-r5.js} +417 -422
- package/dist/agent-catalog.json +5 -5
- package/dist/agent-i18n/en.json +2 -2
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +4 -6
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +2 -1
- package/dist/components/editable-description/index.js +2 -2
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/registry-connection-panel.d.ts +14 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +0 -1
- package/dist/i18n/locales/ar.js +1 -2
- package/dist/i18n/locales/de.d.ts +0 -1
- package/dist/i18n/locales/de.js +1 -2
- package/dist/i18n/locales/el.d.ts +0 -1
- package/dist/i18n/locales/el.js +1 -2
- package/dist/i18n/locales/en.d.ts +0 -1
- package/dist/i18n/locales/en.js +1 -2
- package/dist/i18n/locales/es.d.ts +0 -1
- package/dist/i18n/locales/es.js +1 -2
- package/dist/i18n/locales/fr.d.ts +0 -1
- package/dist/i18n/locales/fr.js +1 -2
- package/dist/i18n/locales/hi.d.ts +0 -1
- package/dist/i18n/locales/hi.js +1 -2
- package/dist/i18n/locales/it.d.ts +0 -1
- package/dist/i18n/locales/it.js +1 -2
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +1 -2
- package/dist/i18n/locales/nl.d.ts +0 -1
- package/dist/i18n/locales/nl.js +1 -2
- package/dist/i18n/locales/pl.d.ts +0 -1
- package/dist/i18n/locales/pl.js +1 -2
- package/dist/i18n/locales/pt.d.ts +0 -1
- package/dist/i18n/locales/pt.js +1 -2
- package/dist/i18n/locales/ro.d.ts +0 -1
- package/dist/i18n/locales/ro.js +1 -2
- package/dist/i18n/locales/ru.d.ts +0 -1
- package/dist/i18n/locales/ru.js +1 -2
- package/dist/i18n/locales/sq.d.ts +0 -1
- package/dist/i18n/locales/sq.js +1 -2
- package/dist/i18n/locales/sv.d.ts +0 -1
- package/dist/i18n/locales/sv.js +1 -2
- package/dist/i18n/locales/tr.d.ts +0 -1
- package/dist/i18n/locales/tr.js +1 -2
- package/dist/i18n/locales/zh.d.ts +0 -1
- package/dist/i18n/locales/zh.js +1 -2
- package/dist/index.js +8 -8
- package/dist/locales/ar.json +1 -2
- package/dist/locales/de.json +1 -2
- package/dist/locales/el.json +1 -2
- package/dist/locales/en.json +1 -2
- package/dist/locales/es.json +1 -2
- package/dist/locales/fr.json +1 -2
- package/dist/locales/hi.json +1 -2
- package/dist/locales/it.json +1 -2
- package/dist/locales/ja.json +1 -2
- package/dist/locales/nl.json +1 -2
- package/dist/locales/pl.json +1 -2
- package/dist/locales/pt.json +1 -2
- package/dist/locales/ro.json +1 -2
- package/dist/locales/ru.json +1 -2
- package/dist/locales/sq.json +1 -2
- package/dist/locales/sv.json +1 -2
- package/dist/locales/tr.json +1 -2
- package/dist/locales/zh.json +1 -2
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/editable-description-BQauSuCG.js +0 -142
- package/dist/_chunks/registry-connection-panel-BEAkwivy.js +0 -503
|
@@ -1,72 +1,71 @@
|
|
|
1
1
|
import { c as A } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { s as
|
|
5
|
-
import { E as
|
|
6
|
-
import { T as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { C as
|
|
10
|
-
import { T as
|
|
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
|
|
13
|
-
import { C as
|
|
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
|
|
16
|
-
import { A as
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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",
|
|
44
|
-
switch (
|
|
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 !!(
|
|
46
|
+
return !!(s.fromIso || s.toIso);
|
|
47
47
|
case "duration":
|
|
48
|
-
return
|
|
48
|
+
return s.fromMin !== void 0 || s.toMin !== void 0;
|
|
49
49
|
default:
|
|
50
|
-
return !!(
|
|
50
|
+
return !!(s.from || s.to);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
function
|
|
54
|
-
const f =
|
|
55
|
-
|
|
56
|
-
),
|
|
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((
|
|
59
|
+
...w.filter((p) => o.has(p.field) ? !1 : (o.add(p.field), !0))
|
|
60
60
|
];
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
history:
|
|
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
|
-
|
|
67
|
-
privacy: y = !1
|
|
66
|
+
privacy: w = !1
|
|
68
67
|
}) {
|
|
69
|
-
const { t:
|
|
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
|
-
},
|
|
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 &&
|
|
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 &&
|
|
91
|
-
to: l ?? (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 :
|
|
97
|
-
to: t.toMin === void 0 ? void 0 :
|
|
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
|
-
},
|
|
103
|
-
const d =
|
|
104
|
-
return t.field === "colour" && [a, l].some((u) => u && S.test(u)) ?
|
|
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
|
-
},
|
|
110
|
-
const d = (n, c) => n && t.field === "colour" && S.test(n) ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
125
|
-
|
|
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 } =
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
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__ */
|
|
142
|
-
|
|
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
|
-
},
|
|
152
|
+
}, O = (t) => {
|
|
154
153
|
switch (t.kind) {
|
|
155
154
|
case "created":
|
|
156
155
|
return {
|
|
157
|
-
title:
|
|
156
|
+
title: o(i("history.created")),
|
|
158
157
|
type: "success",
|
|
159
|
-
icon: /* @__PURE__ */
|
|
158
|
+
icon: /* @__PURE__ */ e(H, { size: 16, "aria-hidden": "true" })
|
|
160
159
|
};
|
|
161
160
|
case "copied":
|
|
162
161
|
return {
|
|
163
|
-
title:
|
|
162
|
+
title: o(i("history.copied")),
|
|
164
163
|
type: "success",
|
|
165
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
169
|
+
title: o(i("history.confirmedByPatient")),
|
|
171
170
|
type: "success",
|
|
172
|
-
icon: /* @__PURE__ */
|
|
171
|
+
icon: /* @__PURE__ */ e(r, { size: 16, "aria-hidden": "true" })
|
|
173
172
|
};
|
|
174
173
|
}
|
|
175
174
|
case "deleted":
|
|
176
175
|
return {
|
|
177
|
-
title:
|
|
176
|
+
title: o(i("history.deleted")),
|
|
178
177
|
type: "error",
|
|
179
|
-
icon: /* @__PURE__ */
|
|
178
|
+
icon: /* @__PURE__ */ e(R, { size: 16, "aria-hidden": "true" })
|
|
180
179
|
};
|
|
181
180
|
}
|
|
182
|
-
const d =
|
|
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,
|
|
187
|
-
), n = u.length > 0 ?
|
|
188
|
-
fields: u.map((r) =>
|
|
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:
|
|
194
|
+
title: o(i("history.status")),
|
|
196
195
|
type: r === "cancelled" || r === "absent" ? "warning" : "neutral",
|
|
197
|
-
icon: /* @__PURE__ */
|
|
198
|
-
detail:
|
|
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:
|
|
202
|
+
title: o(i("history.moved")),
|
|
204
203
|
type: "info",
|
|
205
|
-
icon: /* @__PURE__ */
|
|
206
|
-
detail:
|
|
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:
|
|
209
|
+
title: o(i("history.resized")),
|
|
211
210
|
type: "info",
|
|
212
|
-
icon: /* @__PURE__ */
|
|
213
|
-
detail:
|
|
211
|
+
icon: /* @__PURE__ */ e(x, { size: 16, "aria-hidden": "true" }),
|
|
212
|
+
detail: v(c)
|
|
214
213
|
};
|
|
215
214
|
default:
|
|
216
215
|
return {
|
|
217
|
-
title:
|
|
216
|
+
title: o(i(`history.changed.${c.field}`)),
|
|
218
217
|
type: "neutral",
|
|
219
|
-
icon: /* @__PURE__ */
|
|
220
|
-
detail:
|
|
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__ */
|
|
225
|
+
icon: /* @__PURE__ */ e(C, { size: 16, "aria-hidden": "true" })
|
|
227
226
|
} : t.kind === "resized" ? {
|
|
228
227
|
title: "history.resized",
|
|
229
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
233
|
+
return /* @__PURE__ */ e(m, { size: 16, "aria-hidden": "true" });
|
|
235
234
|
})()
|
|
236
235
|
} : {
|
|
237
236
|
title: "history.edited",
|
|
238
|
-
icon: /* @__PURE__ */
|
|
237
|
+
icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" })
|
|
239
238
|
};
|
|
240
239
|
return {
|
|
241
|
-
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__ */
|
|
245
|
-
/* @__PURE__ */
|
|
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":
|
|
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__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
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__ */
|
|
255
|
+
n ? /* @__PURE__ */ e("p", { className: "ds:m-0", children: n }) : null
|
|
257
256
|
] })
|
|
258
257
|
};
|
|
259
258
|
}
|
|
260
259
|
return {
|
|
261
|
-
title:
|
|
260
|
+
title: o(i("history.edited")),
|
|
262
261
|
type: "neutral",
|
|
263
|
-
icon: /* @__PURE__ */
|
|
264
|
-
detail: n
|
|
262
|
+
icon: /* @__PURE__ */ e(k, { size: 16, "aria-hidden": "true" }),
|
|
263
|
+
detail: n ?? void 0
|
|
265
264
|
};
|
|
266
265
|
};
|
|
267
|
-
return
|
|
268
|
-
|
|
266
|
+
return s.length === 0 ? /* @__PURE__ */ e(
|
|
267
|
+
$,
|
|
269
268
|
{
|
|
270
269
|
variant: "first-use",
|
|
271
270
|
size: "sm",
|
|
272
|
-
title:
|
|
271
|
+
title: o(i("historyEmpty"))
|
|
273
272
|
}
|
|
274
|
-
) : /* @__PURE__ */
|
|
275
|
-
const d =
|
|
276
|
-
return /* @__PURE__ */
|
|
277
|
-
|
|
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__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
|
|
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__ */
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
|
|
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__ */
|
|
300
|
-
|
|
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
|
-
|
|
318
|
-
|
|
316
|
+
pt as A,
|
|
317
|
+
ut as C,
|
|
319
318
|
C as M
|
|
320
319
|
};
|
|
321
|
-
//# sourceMappingURL=appointment-details-panel.history-
|
|
320
|
+
//# sourceMappingURL=appointment-details-panel.history-BxNqcA-r.js.map
|
|
@@ -21,8 +21,8 @@ import { u as no } from "./use-media-query-CcAx5SMM.js";
|
|
|
21
21
|
import { c as vs, a as ro, d as hn, b as fn } from "./toast-Cgmh1cvj.js";
|
|
22
22
|
import { T as za, a as Rs } from "./tooltip-uEBdD1-5.js";
|
|
23
23
|
import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-DWS_kM-a.js";
|
|
24
|
-
import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-
|
|
25
|
-
import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-
|
|
24
|
+
import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-CC74Y-r5.js";
|
|
25
|
+
import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Hs } from "./calendar.sheets-CueyPkTT.js";
|
|
26
26
|
import { B as Ve } from "./button-Dp4j9ygh.js";
|
|
27
27
|
import { D as te } from "./dialog-239Geb7Z.js";
|
|
28
28
|
import { R as Ja } from "./radio-BZQs6_36.js";
|
|
@@ -58,7 +58,7 @@ import { U as Po } from "./user-cog-BTn98Arm.js";
|
|
|
58
58
|
import { R as _o } from "./rotate-ccw-BBQnIVTr.js";
|
|
59
59
|
import { C as $o } from "./chevron-left-B8cOyH-V.js";
|
|
60
60
|
import { C as Ro } from "./chevron-right-I9AeSxH2.js";
|
|
61
|
-
import { W as zo } from "./calendar-waiting-list-panel-
|
|
61
|
+
import { W as zo } from "./calendar-waiting-list-panel-DuALuqLD.js";
|
|
62
62
|
import { C as Ho } from "./calendar-days-BGWklvE-.js";
|
|
63
63
|
import { C as Ha } from "./calendar-clock-hbObjfGY.js";
|
|
64
64
|
import { P as Ia } from "./privacy-mask-zVh0ntm0.js";
|
|
@@ -5516,4 +5516,4 @@ export {
|
|
|
5516
5516
|
sd as C,
|
|
5517
5517
|
ad as i
|
|
5518
5518
|
};
|
|
5519
|
-
//# sourceMappingURL=calendar-appointment-editor-dialog-
|
|
5519
|
+
//# sourceMappingURL=calendar-appointment-editor-dialog-CoIFwj9g.js.map
|
|
@@ -22,7 +22,7 @@ import { T as Ke } from "./text-area-COMVJ1yE.js";
|
|
|
22
22
|
import { T as be } from "./tooltip-uEBdD1-5.js";
|
|
23
23
|
import { V as xe } from "./visually-hidden-BHxEUGyT.js";
|
|
24
24
|
import { a as ke } from "./whatsapp-button-XbozeDl_.js";
|
|
25
|
-
import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-
|
|
25
|
+
import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-CueyPkTT.js";
|
|
26
26
|
import { u as Re } from "./calendar-editor-guard-9fShhNIA.js";
|
|
27
27
|
import { E as le, f as He, g as Qe, w as qe, d as Je, N as Ue, e as Xe, i as Ze, j as ea, p as aa, k as sa } from "./calendar-workspace.model-4zmA3BFE.js";
|
|
28
28
|
import { F as ta } from "./funnel-DpPV3Qkd.js";
|
|
@@ -978,4 +978,4 @@ function Ta({
|
|
|
978
978
|
export {
|
|
979
979
|
za as W
|
|
980
980
|
};
|
|
981
|
-
//# sourceMappingURL=calendar-waiting-list-panel-
|
|
981
|
+
//# sourceMappingURL=calendar-waiting-list-panel-DuALuqLD.js.map
|
|
@@ -4,7 +4,7 @@ import { useTranslation as le } from "react-i18next";
|
|
|
4
4
|
import { P as yr } from "./patient-picker-Dm74jHIk.js";
|
|
5
5
|
import { u as Ye, a as kr } from "./calendar-editor-guard-9fShhNIA.js";
|
|
6
6
|
import { u as fr } from "./form-field-context-DtiROUJV.js";
|
|
7
|
-
import { A as Nr, M as xr, C as Gt } from "./appointment-details-panel.history-
|
|
7
|
+
import { A as Nr, M as xr, C as Gt } from "./appointment-details-panel.history-BxNqcA-r.js";
|
|
8
8
|
import { R as As, b as Rn, D as li, f as Cr, e as Ir, g as Sr, h as wr, i as Rr } from "./appointment-details-panel.identity--_j07UG1.js";
|
|
9
9
|
import { d as xa } from "./toast-Cgmh1cvj.js";
|
|
10
10
|
import { i as ui } from "./treatment-receipt-BZzwvsnY.js";
|
|
@@ -14,7 +14,7 @@ import { R as Ae } from "./radio-BZQs6_36.js";
|
|
|
14
14
|
import { R as Sn } from "./radio-group-ChIKyeSJ.js";
|
|
15
15
|
import { q as Os, s as Hs, t as hi, v as Dr, x as Er, y as Tr, N as q, z as Lr, A as Kt, B as Ar, F as Or, G as qt, H as jt, I as Pr, J as Mr, K as mi, p as Ta, L as Yt, M as Br, O as Xt, P as Wr, Q as $r, S as Qt, T as Fr, U as zr, X as _r, Y as Vr, Z as Hr, R as Jt, _ as Zt, $ as we, a0 as Ur, a1 as Gr, a2 as Kr, a3 as ei, a4 as qr, a5 as Ca, a6 as jr, a7 as Yr, a8 as Xr, a9 as ni, aa as Ia, ab as si, c as Qr, ac as Jr, ad as Zr, ae as ed, af as nd } from "./calendar-workspace.model-4zmA3BFE.js";
|
|
16
16
|
import { V as Ps } from "./visually-hidden-BHxEUGyT.js";
|
|
17
|
-
import { N as sd } from "./notes-panel-
|
|
17
|
+
import { N as sd } from "./notes-panel-BHMnLbEH.js";
|
|
18
18
|
import { A as gi } from "./avatar-Dp5apm1d.js";
|
|
19
19
|
import { E as vi } from "./empty-state-5REM7oDM.js";
|
|
20
20
|
import { P as Ms } from "./panel-header-CbtlTe85.js";
|
|
@@ -4583,4 +4583,4 @@ export {
|
|
|
4583
4583
|
Si as u,
|
|
4584
4584
|
bl as w
|
|
4585
4585
|
};
|
|
4586
|
-
//# sourceMappingURL=calendar.sheets-
|
|
4586
|
+
//# sourceMappingURL=calendar.sheets-CueyPkTT.js.map
|