@alfadocs/ui-kit 1.36.0 → 1.36.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as h, jsx as n, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
-
import { useState as A, useCallback as oe, useRef as H, useEffect as ce, createElement as Ar, useContext as Pi, createContext as Bi, useId as
|
|
2
|
+
import { useState as A, useCallback as oe, useRef as H, useEffect as ce, createElement as Ar, useContext as Pi, createContext as Bi, useId as ca, useMemo as Ce, Fragment as Rr } from "react";
|
|
3
3
|
import { useTranslation as me } from "react-i18next";
|
|
4
4
|
import { A as Er } from "./appointment-timeline-ByfovxqR.js";
|
|
5
5
|
import { C as Mr, a as Or, u as $i, d as Wr } from "./control-room-rail-Ds45_g4f.js";
|
|
@@ -43,7 +43,7 @@ import { C as Sn } from "./checkbox-CZkipDn7.js";
|
|
|
43
43
|
import { T as Ea } from "./tag-Ci3xJPcH.js";
|
|
44
44
|
import { a as ut } from "./key-value-pair-DczGb4yz.js";
|
|
45
45
|
import { T as Ma } from "./timestamp-BV2lC-wV.js";
|
|
46
|
-
import { S as
|
|
46
|
+
import { S as ia } from "./switch-OILsBLWo.js";
|
|
47
47
|
import { B as xs } from "./button-group-QmN1VdUW.js";
|
|
48
48
|
import { C as ao, b as so, a as io } from "./collapsible-CTjxzGuF.js";
|
|
49
49
|
import { D as bt } from "./date-picker-6tFnKFty.js";
|
|
@@ -327,7 +327,7 @@ const Is = /* @__PURE__ */ new Map(), Fs = {
|
|
|
327
327
|
function om() {
|
|
328
328
|
Fs.clear();
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const ra = {
|
|
331
331
|
view: "calendarWorkspace.view",
|
|
332
332
|
display: "calendarWorkspace.display",
|
|
333
333
|
showWeekends: "calendarWorkspace.showWeekends",
|
|
@@ -365,7 +365,7 @@ function ar(e) {
|
|
|
365
365
|
return s;
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const da = {
|
|
369
369
|
confirmed: "calendar.status.confirmed",
|
|
370
370
|
waiting: "calendar.status.waiting",
|
|
371
371
|
in_care: "calendar.status.inCare",
|
|
@@ -1172,7 +1172,7 @@ function zc(e, t) {
|
|
|
1172
1172
|
function Si(e, t) {
|
|
1173
1173
|
return e.length > 0 ? [...e] : [...t];
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function oa(e, t, a) {
|
|
1176
1176
|
return a === !0 ? [...e, ...t.filter((s) => !e.includes(s))] : e.filter((s) => !t.includes(s));
|
|
1177
1177
|
}
|
|
1178
1178
|
function Pc(e, t) {
|
|
@@ -1723,7 +1723,7 @@ function vd({
|
|
|
1723
1723
|
);
|
|
1724
1724
|
}
|
|
1725
1725
|
function fd(e) {
|
|
1726
|
-
const { t } = me(), a =
|
|
1726
|
+
const { t } = me(), a = ca(), s = ca(), [r, o] = A(e.defaultScope), { scopes: u } = e, d = r && u.includes(r) ? r : u[0], m = d === "all" && e.warnOnWholeSeries !== !1;
|
|
1727
1727
|
let l;
|
|
1728
1728
|
try {
|
|
1729
1729
|
l = new Intl.DateTimeFormat(e.locale, {
|
|
@@ -1785,7 +1785,7 @@ function Js() {
|
|
|
1785
1785
|
throw new Error("useSheetHost: render inside a SheetHostProvider");
|
|
1786
1786
|
return e;
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function la(e) {
|
|
1789
1789
|
return e.operators.filter((t) => !e.inactiveOperatorIds.includes(t.id));
|
|
1790
1790
|
}
|
|
1791
1791
|
function Id(e) {
|
|
@@ -2023,7 +2023,7 @@ function Nd({
|
|
|
2023
2023
|
onOpenNotes: a,
|
|
2024
2024
|
limit: s = 3
|
|
2025
2025
|
}) {
|
|
2026
|
-
const { t: r } = me(), o = (E) => `calendarWorkspace.details.${E}`, u =
|
|
2026
|
+
const { t: r } = me(), o = (E) => `calendarWorkspace.details.${E}`, u = ca(), d = H(t);
|
|
2027
2027
|
d.current = t;
|
|
2028
2028
|
const m = !!t.onLoad;
|
|
2029
2029
|
ce(() => {
|
|
@@ -2110,7 +2110,7 @@ function Ir({
|
|
|
2110
2110
|
const { Icon: l, tone: c } = Gt[m];
|
|
2111
2111
|
return {
|
|
2112
2112
|
value: m,
|
|
2113
|
-
label: a(
|
|
2113
|
+
label: a(da[m]),
|
|
2114
2114
|
icon: /* @__PURE__ */ n(l, { "aria-hidden": "true" }),
|
|
2115
2115
|
tone: c
|
|
2116
2116
|
};
|
|
@@ -2308,7 +2308,7 @@ function Ei({
|
|
|
2308
2308
|
className: J
|
|
2309
2309
|
}) {
|
|
2310
2310
|
var ci, di, li, ui, mi;
|
|
2311
|
-
const { t: p } = me(), P = On(), { t: he, i18n: $ } = me(), I = (g) => `calendarWorkspace.editor.${g}`, _ = (g) => `calendarWorkspace.details.${g}`, se = (g) => `calendarWorkspace.bookingTriage.${g}`, { close: De, open: _e } = Js(), Y = !!(e != null && e.editEventId), Fe = Y && !z ? w == null ? void 0 : w.scopes : void 0, [v, N] = A(), [Te, pe] = A(!1), D = !!Fe && (!v || Te), R = v ? { ...K, ...(ci = w == null ? void 0 : w.capabilitiesByScope) == null ? void 0 : ci[v] } : K, ge = (R == null ? void 0 : R.editCare) !== !1, Re = (y == null ? void 0 : y.operatorOptions) ??
|
|
2311
|
+
const { t: p } = me(), P = On(), { t: he, i18n: $ } = me(), I = (g) => `calendarWorkspace.editor.${g}`, _ = (g) => `calendarWorkspace.details.${g}`, se = (g) => `calendarWorkspace.bookingTriage.${g}`, { close: De, open: _e } = Js(), Y = !!(e != null && e.editEventId), Fe = Y && !z ? w == null ? void 0 : w.scopes : void 0, [v, N] = A(), [Te, pe] = A(!1), D = !!Fe && (!v || Te), R = v ? { ...K, ...(ci = w == null ? void 0 : w.capabilitiesByScope) == null ? void 0 : ci[v] } : K, ge = (R == null ? void 0 : R.editCare) !== !1, Re = (y == null ? void 0 : y.operatorOptions) ?? la(P), [sn, wn] = A(!1), [hn, Ne] = A(!1), [He, ne] = A(), pn = H(!1), Qe = H(!1), rn = H(!0);
|
|
2312
2312
|
ce(() => (rn.current = !0, () => {
|
|
2313
2313
|
rn.current = !1;
|
|
2314
2314
|
}), []);
|
|
@@ -2475,7 +2475,7 @@ function Ei({
|
|
|
2475
2475
|
]), ce(() => () => c == null ? void 0 : c(null), [c]);
|
|
2476
2476
|
const [$n, Bt] = A(!1), [bn, pt] = A("weekly"), [Xn, ls] = A(
|
|
2477
2477
|
"count"
|
|
2478
|
-
), [
|
|
2478
|
+
), [ma, us] = A(4), [Ct, ha] = A(), [pa, ms] = A(!0), Jt = ca(), Nt = (y == null ? void 0 : y.recurrenceExtras) !== !1, [ga, Dt] = A(!1), [Zt, Qt] = A(
|
|
2479
2479
|
(e == null ? void 0 : e.status) ?? (Y ? void 0 : "confirmed")
|
|
2480
2480
|
), _a = () => JSON.stringify({
|
|
2481
2481
|
patientId: de,
|
|
@@ -2500,28 +2500,28 @@ function Ei({
|
|
|
2500
2500
|
repeats: $n,
|
|
2501
2501
|
recurrence: bn,
|
|
2502
2502
|
recurrenceEnds: Xn,
|
|
2503
|
-
recurrenceCount:
|
|
2503
|
+
recurrenceCount: ma,
|
|
2504
2504
|
recurrenceUntilMs: (Ct == null ? void 0 : Ct.getTime()) ?? null,
|
|
2505
|
-
skipClosedDays:
|
|
2506
|
-
addToWaitingList:
|
|
2505
|
+
skipClosedDays: pa,
|
|
2506
|
+
addToWaitingList: ga,
|
|
2507
2507
|
status: Zt
|
|
2508
|
-
}),
|
|
2509
|
-
|
|
2510
|
-
const Fa = _a() !==
|
|
2508
|
+
}), va = H(null);
|
|
2509
|
+
va.current === null && (va.current = _a());
|
|
2510
|
+
const Fa = _a() !== va.current, $t = re ? P.closureOn(
|
|
2511
2511
|
Zn(re),
|
|
2512
2512
|
xe === Ke ? void 0 : xe
|
|
2513
|
-
) : null, ea = (y == null ? void 0 : y.operatorAbsenceWarning) === !0 && ($t == null ? void 0 : $t.kind) === "absence",
|
|
2513
|
+
) : null, ea = (y == null ? void 0 : y.operatorAbsenceWarning) === !0 && ($t == null ? void 0 : $t.kind) === "absence", ba = ea ? null : $t, Ia = !Y || (re == null ? void 0 : re.getTime()) !== ((di = e == null ? void 0 : e.date) == null ? void 0 : di.getTime()) || (xe === Ke ? void 0 : xe) !== (e == null ? void 0 : e.operatorId), Ha = dc(e == null ? void 0 : e.callToAction, {
|
|
2514
2514
|
patientId: de || void 0,
|
|
2515
2515
|
operatorId: xe === Ke ? void 0 : xe
|
|
2516
|
-
}), _t = y == null ? void 0 : y.descriptionMaxLength, Va = _t !== void 0 && en.length > _t, gt = (e == null ? void 0 : e.simpleSave) === !1, Ft = !sn && !hn && (Y ? Fa : !!re) && !(
|
|
2516
|
+
}), _t = y == null ? void 0 : y.descriptionMaxLength, Va = _t !== void 0 && en.length > _t, gt = (e == null ? void 0 : e.simpleSave) === !1, Ft = !sn && !hn && (Y ? Fa : !!re) && !(ba && Ia) && !Va && Ha, ka = hn || l || (Y ? Fa : !0), it = mt(de, P), hs = e != null && e.editEventId ? (li = P.baseEvents.find((g) => g.event.id === e.editEventId)) == null ? void 0 : li.event.title : void 0, Ua = Pt(
|
|
2517
2517
|
it,
|
|
2518
2518
|
hs,
|
|
2519
2519
|
p(_("patientNotLoaded"))
|
|
2520
|
-
), [ps,
|
|
2520
|
+
), [ps, ya] = A(!1), [rt, ot] = A("this"), [na, Ca] = A(!1), [Na, ta] = A("this"), [xn, aa] = A(
|
|
2521
2521
|
() => Ti(it)
|
|
2522
|
-
),
|
|
2522
|
+
), sa = H(de);
|
|
2523
2523
|
ce(() => {
|
|
2524
|
-
|
|
2524
|
+
sa.current !== de && (sa.current = de, aa(Ti(mt(de, P))));
|
|
2525
2525
|
}, [de, P]);
|
|
2526
2526
|
const Rt = (y == null ? void 0 : y.branches) ?? [], [Ht, gs] = A(() => {
|
|
2527
2527
|
var g;
|
|
@@ -2546,7 +2546,7 @@ function Ei({
|
|
|
2546
2546
|
ti.current !== D && (ti.current = D, D ? (le = (F = ei.current) == null ? void 0 : F.querySelector('[role="radio"][aria-checked="true"]')) == null || le.focus() : (g = ni.current) == null || g.focus());
|
|
2547
2547
|
}, [D]);
|
|
2548
2548
|
const Sr = {
|
|
2549
|
-
recurringSaveMode: v ?? (je ?
|
|
2549
|
+
recurringSaveMode: v ?? (je ? Na : void 0),
|
|
2550
2550
|
requiredDocsSignMode: Da > 0 ? xn : void 0,
|
|
2551
2551
|
branchId: ge && Be === "priceList" && Rt.length > 1 ? Ht : void 0
|
|
2552
2552
|
}, [wt, ai] = A("form"), si = H(null), ii = H(null), ri = H(wt);
|
|
@@ -2574,7 +2574,7 @@ function Ei({
|
|
|
2574
2574
|
allDay: fe || void 0,
|
|
2575
2575
|
...ge ? { cares: e == null ? void 0 : e.cares, careLink: Xe } : {},
|
|
2576
2576
|
waitingEntryId: e == null ? void 0 : e.waitingEntryId,
|
|
2577
|
-
addToWaitingList:
|
|
2577
|
+
addToWaitingList: ga || void 0,
|
|
2578
2578
|
...(R == null ? void 0 : R.editStatus) === !1 ? {} : { status: Y ? Zt : void 0 },
|
|
2579
2579
|
/* Create-only, matching platform: once an appointment exists its
|
|
2580
2580
|
recurrence inputs are disabled, so an edit never re-rules a
|
|
@@ -2582,9 +2582,9 @@ function Ei({
|
|
|
2582
2582
|
recurrence: !Y && (R == null ? void 0 : R.editRecurrence) !== !1 && $n ? {
|
|
2583
2583
|
frequency: bn,
|
|
2584
2584
|
ends: Nt ? Xn : "count",
|
|
2585
|
-
count:
|
|
2585
|
+
count: ma ?? 2,
|
|
2586
2586
|
untilDate: Nt ? Ct : void 0,
|
|
2587
|
-
skipClosedDays: Nt ?
|
|
2587
|
+
skipClosedDays: Nt ? pa : !1
|
|
2588
2588
|
} : void 0
|
|
2589
2589
|
},
|
|
2590
2590
|
Sr
|
|
@@ -2613,7 +2613,7 @@ function Ei({
|
|
|
2613
2613
|
}, oi = H(null), Tr = (g) => {
|
|
2614
2614
|
g.preventDefault(), g.nativeEvent.submitter === oi.current && Ft && y != null && y.submitOnEnter && vs({ keepOpen: gt });
|
|
2615
2615
|
}, Lr = () => {
|
|
2616
|
-
pn.current || Qe.current || (
|
|
2616
|
+
pn.current || Qe.current || (ya(!1), e != null && e.editEventId && (a == null || a(e.editEventId, {
|
|
2617
2617
|
scope: dt,
|
|
2618
2618
|
removeFromCarePlan: ae ? na : void 0
|
|
2619
2619
|
})), De());
|
|
@@ -2797,7 +2797,7 @@ function Ei({
|
|
|
2797
2797
|
children: /* @__PURE__ */ n(
|
|
2798
2798
|
Ze,
|
|
2799
2799
|
{
|
|
2800
|
-
options: Object.keys(
|
|
2800
|
+
options: Object.keys(da).map((g) => ({ value: g, label: he(da[g]) })),
|
|
2801
2801
|
value: Zt,
|
|
2802
2802
|
onValueChange: (g) => Qt(g),
|
|
2803
2803
|
disabled: (R == null ? void 0 : R.editStatus) === !1
|
|
@@ -2896,7 +2896,7 @@ function Ei({
|
|
|
2896
2896
|
{
|
|
2897
2897
|
label: p(I("signMode"), { count: Da }),
|
|
2898
2898
|
value: xn,
|
|
2899
|
-
onValueChange: (g) =>
|
|
2899
|
+
onValueChange: (g) => aa(g),
|
|
2900
2900
|
children: [
|
|
2901
2901
|
/* @__PURE__ */ n(
|
|
2902
2902
|
jn,
|
|
@@ -3320,7 +3320,7 @@ function Ei({
|
|
|
3320
3320
|
)
|
|
3321
3321
|
}
|
|
3322
3322
|
),
|
|
3323
|
-
|
|
3323
|
+
ba && re ? /* @__PURE__ */ n(
|
|
3324
3324
|
Z,
|
|
3325
3325
|
{
|
|
3326
3326
|
variant: "warning",
|
|
@@ -3329,7 +3329,7 @@ function Ei({
|
|
|
3329
3329
|
children: /* @__PURE__ */ n(Z.Description, { children: Es(
|
|
3330
3330
|
p,
|
|
3331
3331
|
$.language,
|
|
3332
|
-
|
|
3332
|
+
ba,
|
|
3333
3333
|
re,
|
|
3334
3334
|
P
|
|
3335
3335
|
) })
|
|
@@ -3386,7 +3386,7 @@ function Ei({
|
|
|
3386
3386
|
Sn,
|
|
3387
3387
|
{
|
|
3388
3388
|
label: p(I("addToWaitingList")),
|
|
3389
|
-
checked:
|
|
3389
|
+
checked: ga,
|
|
3390
3390
|
onCheckedChange: (g) => Dt(g === !0)
|
|
3391
3391
|
}
|
|
3392
3392
|
)
|
|
@@ -3435,7 +3435,7 @@ function Ei({
|
|
|
3435
3435
|
value: Xn,
|
|
3436
3436
|
onValueChange: (g) => {
|
|
3437
3437
|
const F = g;
|
|
3438
|
-
ls(F), F === "until" && !Ct && re &&
|
|
3438
|
+
ls(F), F === "until" && !Ct && re && ha(Go(re, 1));
|
|
3439
3439
|
}
|
|
3440
3440
|
}
|
|
3441
3441
|
)
|
|
@@ -3449,7 +3449,7 @@ function Ei({
|
|
|
3449
3449
|
children: /* @__PURE__ */ n(
|
|
3450
3450
|
Ds,
|
|
3451
3451
|
{
|
|
3452
|
-
value:
|
|
3452
|
+
value: ma,
|
|
3453
3453
|
min: 2,
|
|
3454
3454
|
max: qo,
|
|
3455
3455
|
onChange: us
|
|
@@ -3465,7 +3465,7 @@ function Ei({
|
|
|
3465
3465
|
bt,
|
|
3466
3466
|
{
|
|
3467
3467
|
value: Ct,
|
|
3468
|
-
onChange:
|
|
3468
|
+
onChange: ha,
|
|
3469
3469
|
minDate: re
|
|
3470
3470
|
}
|
|
3471
3471
|
)
|
|
@@ -3481,7 +3481,7 @@ function Ei({
|
|
|
3481
3481
|
{
|
|
3482
3482
|
label: p(I("skipClosedDays")),
|
|
3483
3483
|
"aria-describedby": Jt,
|
|
3484
|
-
checked:
|
|
3484
|
+
checked: pa,
|
|
3485
3485
|
onCheckedChange: (g) => ms(g === !0)
|
|
3486
3486
|
}
|
|
3487
3487
|
),
|
|
@@ -3610,8 +3610,8 @@ function Ei({
|
|
|
3610
3610
|
Wt,
|
|
3611
3611
|
{
|
|
3612
3612
|
label: p(I("recurringSaveMode")),
|
|
3613
|
-
value:
|
|
3614
|
-
onValueChange: (g) =>
|
|
3613
|
+
value: Na,
|
|
3614
|
+
onValueChange: (g) => ta(g),
|
|
3615
3615
|
children: ts.map((g) => /* @__PURE__ */ n(
|
|
3616
3616
|
jn,
|
|
3617
3617
|
{
|
|
@@ -3731,7 +3731,7 @@ function Ei({
|
|
|
3731
3731
|
icon: /* @__PURE__ */ n(ro, { "aria-hidden": "true" }),
|
|
3732
3732
|
"aria-label": p(I("cancel")),
|
|
3733
3733
|
tooltip: p(I("cancel")),
|
|
3734
|
-
disabled: !
|
|
3734
|
+
disabled: !ka,
|
|
3735
3735
|
onClick: () => De()
|
|
3736
3736
|
}
|
|
3737
3737
|
),
|
|
@@ -3763,7 +3763,7 @@ function Ei({
|
|
|
3763
3763
|
icon: /* @__PURE__ */ n(jt, { "aria-hidden": "true" }),
|
|
3764
3764
|
"aria-label": p(I("delete")),
|
|
3765
3765
|
tooltip: p(I("delete")),
|
|
3766
|
-
onClick: () =>
|
|
3766
|
+
onClick: () => ya(!0)
|
|
3767
3767
|
}
|
|
3768
3768
|
) : null
|
|
3769
3769
|
]
|
|
@@ -3784,7 +3784,7 @@ function Ei({
|
|
|
3784
3784
|
] }) })
|
|
3785
3785
|
}
|
|
3786
3786
|
),
|
|
3787
|
-
Y ? /* @__PURE__ */ n(we, { open: ps, onOpenChange:
|
|
3787
|
+
Y ? /* @__PURE__ */ n(we, { open: ps, onOpenChange: ya, children: /* @__PURE__ */ h(we.Content, { size: "sm", variant: "alert", children: [
|
|
3788
3788
|
/* @__PURE__ */ h(we.Header, { children: [
|
|
3789
3789
|
/* @__PURE__ */ n(we.Title, { children: p(I("deleteConfirmTitle")) }),
|
|
3790
3790
|
/* @__PURE__ */ n(we.Description, { children: p(I("deleteConfirmBody")) })
|
|
@@ -3811,7 +3811,7 @@ function Ei({
|
|
|
3811
3811
|
{
|
|
3812
3812
|
label: p(I("carePlanCleanup")),
|
|
3813
3813
|
value: na ? "remove" : "keep",
|
|
3814
|
-
onValueChange: (g) =>
|
|
3814
|
+
onValueChange: (g) => Ca(g === "remove"),
|
|
3815
3815
|
children: [
|
|
3816
3816
|
/* @__PURE__ */ n(jn, { value: "remove", label: p(I("carePlanRemove")) }),
|
|
3817
3817
|
/* @__PURE__ */ n(jn, { value: "keep", label: p(I("carePlanKeep")) })
|
|
@@ -3917,7 +3917,7 @@ function Cr({
|
|
|
3917
3917
|
const W = Gt[e.event.status].Icon;
|
|
3918
3918
|
return /* @__PURE__ */ n(W, { "aria-hidden": "true" });
|
|
3919
3919
|
})(),
|
|
3920
|
-
children: d(
|
|
3920
|
+
children: d(da[e.event.status])
|
|
3921
3921
|
}
|
|
3922
3922
|
) }) : null,
|
|
3923
3923
|
/* @__PURE__ */ n(yr, { event: e.event })
|
|
@@ -4584,7 +4584,7 @@ function zd({
|
|
|
4584
4584
|
size: "sm",
|
|
4585
4585
|
options: [
|
|
4586
4586
|
{ value: Ke, label: l("calendarWorkspace.editor.unassigned") },
|
|
4587
|
-
...
|
|
4587
|
+
...la(c).map(($) => ({
|
|
4588
4588
|
value: $.id,
|
|
4589
4589
|
label: $.title
|
|
4590
4590
|
}))
|
|
@@ -4859,7 +4859,7 @@ function Pd({
|
|
|
4859
4859
|
value: Ke,
|
|
4860
4860
|
label: u("calendarWorkspace.editor.unassigned")
|
|
4861
4861
|
},
|
|
4862
|
-
...
|
|
4862
|
+
...la(o).map((y) => ({
|
|
4863
4863
|
value: y.id,
|
|
4864
4864
|
label: y.title
|
|
4865
4865
|
}))
|
|
@@ -5006,7 +5006,7 @@ function Fd({
|
|
|
5006
5006
|
width: 90,
|
|
5007
5007
|
valueGetter: (T) => {
|
|
5008
5008
|
var z;
|
|
5009
|
-
return (z = T.data) != null && z.status ? l(
|
|
5009
|
+
return (z = T.data) != null && z.status ? l(da[T.data.status]) : "";
|
|
5010
5010
|
}
|
|
5011
5011
|
}), x;
|
|
5012
5012
|
}, [a, u, m, l, d]), b = a === "none" ? 2 : 1, S = Ce(
|
|
@@ -5030,7 +5030,7 @@ function Fd({
|
|
|
5030
5030
|
[b]
|
|
5031
5031
|
);
|
|
5032
5032
|
if (typeof document > "u") return null;
|
|
5033
|
-
const E = s.length >= d.chairs.length ? m(c("allChairs")) : d.chairs.filter((x) => s.includes(x.id)).map((x) => x.title).join(", "), C =
|
|
5033
|
+
const E = s.length >= d.chairs.length ? m(c("allChairs")) : d.chairs.filter((x) => s.includes(x.id)).map((x) => x.title).join(", "), C = la(d), W = r.length >= C.length ? m(c("allOperators")) : C.filter((x) => r.includes(x.id)).map((x) => x.title).join(", "), M = (x) => {
|
|
5034
5034
|
var T;
|
|
5035
5035
|
switch (x.kind) {
|
|
5036
5036
|
case "closed":
|
|
@@ -5156,7 +5156,7 @@ function Oi({
|
|
|
5156
5156
|
{
|
|
5157
5157
|
label: b.title,
|
|
5158
5158
|
checked: o.includes(b.id),
|
|
5159
|
-
onCheckedChange: (S) => u(
|
|
5159
|
+
onCheckedChange: (S) => u(oa(o, [b.id], S))
|
|
5160
5160
|
},
|
|
5161
5161
|
b.id
|
|
5162
5162
|
);
|
|
@@ -5180,7 +5180,7 @@ function Oi({
|
|
|
5180
5180
|
{
|
|
5181
5181
|
label: m,
|
|
5182
5182
|
checked: Ls(o, l),
|
|
5183
|
-
onCheckedChange: (b) => u(
|
|
5183
|
+
onCheckedChange: (b) => u(oa(o, l, b))
|
|
5184
5184
|
}
|
|
5185
5185
|
),
|
|
5186
5186
|
c ? r.map((b) => {
|
|
@@ -5201,7 +5201,7 @@ function Oi({
|
|
|
5201
5201
|
] }),
|
|
5202
5202
|
checked: Ls(o, S),
|
|
5203
5203
|
onCheckedChange: (E) => u(
|
|
5204
|
-
|
|
5204
|
+
oa(o, S, E)
|
|
5205
5205
|
)
|
|
5206
5206
|
}
|
|
5207
5207
|
),
|
|
@@ -5276,7 +5276,7 @@ function qd({
|
|
|
5276
5276
|
), I(
|
|
5277
5277
|
(X) => X.filter((Se) => j.chairIds.includes(Se))
|
|
5278
5278
|
));
|
|
5279
|
-
}, Qe = ne ?
|
|
5279
|
+
}, Qe = ne ? la(l).filter((k) => ne.operatorIds.includes(k.id)) : la(l), rn = ne ? l.chairs.filter((k) => ne.chairIds.includes(k.id)) : l.chairs, de = p ? Qe.filter(
|
|
5280
5280
|
(k) => P.length === 0 || P.includes(k.id)
|
|
5281
5281
|
) : Qe.filter(
|
|
5282
5282
|
(k) => K === qn || k.id === K
|
|
@@ -5616,7 +5616,7 @@ function qd({
|
|
|
5616
5616
|
}
|
|
5617
5617
|
) : /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
5618
5618
|
S ? null : /* @__PURE__ */ n(
|
|
5619
|
-
|
|
5619
|
+
ia,
|
|
5620
5620
|
{
|
|
5621
5621
|
label: m(c("showInCalendar")),
|
|
5622
5622
|
checked: sn,
|
|
@@ -5691,7 +5691,7 @@ function qd({
|
|
|
5691
5691
|
] })
|
|
5692
5692
|
] });
|
|
5693
5693
|
}
|
|
5694
|
-
const Ae = (e) => `calendarWorkspace.details.${e}`,
|
|
5694
|
+
const Ae = (e) => `calendarWorkspace.details.${e}`, ua = "type-body-sm ds:text-[color:var(--muted-foreground)]", mn = (e, t, a) => ({
|
|
5695
5695
|
id: e,
|
|
5696
5696
|
label: t,
|
|
5697
5697
|
value: a
|
|
@@ -5699,7 +5699,7 @@ const Ae = (e) => `calendarWorkspace.details.${e}`, la = "type-body-sm ds:text-[
|
|
|
5699
5699
|
t
|
|
5700
5700
|
);
|
|
5701
5701
|
function Qs(e) {
|
|
5702
|
-
const t =
|
|
5702
|
+
const t = ca();
|
|
5703
5703
|
return /* @__PURE__ */ h(
|
|
5704
5704
|
"div",
|
|
5705
5705
|
{
|
|
@@ -5727,7 +5727,7 @@ function $a(e) {
|
|
|
5727
5727
|
{
|
|
5728
5728
|
className: "ds:flex ds:flex-wrap ds:items-baseline ds:gap-[var(--spacing-xs)]",
|
|
5729
5729
|
children: [
|
|
5730
|
-
/* @__PURE__ */ n("dt", { className: `${
|
|
5730
|
+
/* @__PURE__ */ n("dt", { className: `${ua} ds:shrink-0`, children: a.label }),
|
|
5731
5731
|
/* @__PURE__ */ n("dd", { className: "ds:m-0 ds:[min-inline-size:0] ds:text-start", children: a.value })
|
|
5732
5732
|
]
|
|
5733
5733
|
},
|
|
@@ -5841,7 +5841,7 @@ function Xd({
|
|
|
5841
5841
|
s(Ae("phone")),
|
|
5842
5842
|
/* @__PURE__ */ h("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-[var(--spacing-2xs)]", children: [
|
|
5843
5843
|
Dr(m.number),
|
|
5844
|
-
/* @__PURE__ */ n("span", { className:
|
|
5844
|
+
/* @__PURE__ */ n("span", { className: ua, children: s(`calendarWorkspace.print.phoneLabels.${m.label}`) })
|
|
5845
5845
|
] })
|
|
5846
5846
|
)
|
|
5847
5847
|
),
|
|
@@ -5862,7 +5862,7 @@ function Xd({
|
|
|
5862
5862
|
d
|
|
5863
5863
|
]
|
|
5864
5864
|
}
|
|
5865
|
-
) : /* @__PURE__ */ n("span", { className:
|
|
5865
|
+
) : /* @__PURE__ */ n("span", { className: ua, children: s(Ae("noAddress")) })
|
|
5866
5866
|
)
|
|
5867
5867
|
]
|
|
5868
5868
|
}
|
|
@@ -5890,7 +5890,7 @@ function Jd({ details: e, locale: t }) {
|
|
|
5890
5890
|
o.billed ? /* @__PURE__ */ n(Hn, { variant: "neutral", size: "sm", children: a("carePlanEntryCard.flag.billed") }) : null,
|
|
5891
5891
|
o.priceCents !== void 0 ? /* @__PURE__ */ n("span", { className: "ds:ms-auto ds:tabular-nums", children: is(t, o.priceCents / 100) }) : null
|
|
5892
5892
|
] }),
|
|
5893
|
-
o.phases.length > 0 ? /* @__PURE__ */ n("span", { className:
|
|
5893
|
+
o.phases.length > 0 ? /* @__PURE__ */ n("span", { className: ua, children: a(Ae("phasesScheduled"), {
|
|
5894
5894
|
phases: o.phases.join(", ")
|
|
5895
5895
|
}) }) : null
|
|
5896
5896
|
]
|
|
@@ -5914,8 +5914,8 @@ function Zd({ details: e }) {
|
|
|
5914
5914
|
]
|
|
5915
5915
|
}
|
|
5916
5916
|
),
|
|
5917
|
-
s ? /* @__PURE__ */ n("span", { className:
|
|
5918
|
-
a.aesSetUp ? null : /* @__PURE__ */ n("span", { className:
|
|
5917
|
+
s ? /* @__PURE__ */ n("span", { className: ua, children: a.requestedVia === "sms" ? t(Ae("signingRequestedSms")) : a.requestedVia === "email" ? t(Ae("signingRequestedEmail")) : t(Ae("signingNotRequested")) }) : null,
|
|
5918
|
+
a.aesSetUp ? null : /* @__PURE__ */ n("span", { className: ua, children: t(Ae("aesMissing")) })
|
|
5919
5919
|
] });
|
|
5920
5920
|
}
|
|
5921
5921
|
function Qd({ details: e }) {
|
|
@@ -6311,7 +6311,7 @@ function ml({
|
|
|
6311
6311
|
onMoveOccurrence: Fe
|
|
6312
6312
|
}) {
|
|
6313
6313
|
var vt;
|
|
6314
|
-
const { t: v } = me(), N = On(), { t: Te } = me(), { open: pe } = Js(), D = (i) => `calendarWorkspace.${i}`, R = (i) => `calendarWorkspace.inc1.${i}`, ge = H(null), [Re, sn] = A(null), wn = H(!1), hn =
|
|
6314
|
+
const { t: v } = me(), N = On(), { t: Te } = me(), { open: pe } = Js(), D = (i) => `calendarWorkspace.${i}`, R = (i) => `calendarWorkspace.inc1.${i}`, ge = H(null), [Re, sn] = A(null), wn = H(!1), hn = ca();
|
|
6315
6315
|
ce(() => {
|
|
6316
6316
|
if (!Re) return;
|
|
6317
6317
|
const i = new MutationObserver(() => {
|
|
@@ -6354,22 +6354,22 @@ function ml({
|
|
|
6354
6354
|
return G.observe(i), () => G.disconnect();
|
|
6355
6355
|
}, []);
|
|
6356
6356
|
const pn = H(null), [Qe, rn] = Sa(
|
|
6357
|
-
|
|
6357
|
+
ra.view,
|
|
6358
6358
|
"day",
|
|
6359
6359
|
wc,
|
|
6360
6360
|
Y
|
|
6361
6361
|
), [de, qe] = Sa(
|
|
6362
|
-
|
|
6362
|
+
ra.showWeekends,
|
|
6363
6363
|
!0,
|
|
6364
6364
|
es,
|
|
6365
6365
|
Y
|
|
6366
6366
|
), [We, Cn] = Sa(
|
|
6367
|
-
|
|
6367
|
+
ra.chairIds,
|
|
6368
6368
|
() => [],
|
|
6369
6369
|
Uo(N),
|
|
6370
6370
|
Y
|
|
6371
6371
|
), [re, Tn] = Sa(
|
|
6372
|
-
|
|
6372
|
+
ra.operatorIds,
|
|
6373
6373
|
() => [],
|
|
6374
6374
|
Ko(N),
|
|
6375
6375
|
Y
|
|
@@ -6556,7 +6556,7 @@ function ml({
|
|
|
6556
6556
|
ce(() => {
|
|
6557
6557
|
K && !bn && (w == null || w());
|
|
6558
6558
|
}, [K, bn, w]);
|
|
6559
|
-
const pt = K && bn ? K.kind : y ? "create" : "default", Xn = K && bn ? bn.event.backgroundColor : y == null ? void 0 : y.prefill.colorHex, ls = qc(Xn),
|
|
6559
|
+
const pt = K && bn ? K.kind : y ? "create" : "default", Xn = K && bn ? bn.event.backgroundColor : y == null ? void 0 : y.prefill.colorHex, ls = qc(Xn), ma = K && bn ? v(R(`placement.${K.kind}Banner`), {
|
|
6560
6560
|
name: he ? bn.event.privacyModeTitle ?? "•••" : bn.event.title
|
|
6561
6561
|
}) : y ? y.patientName ? v(R("placement.createBannerNamed"), {
|
|
6562
6562
|
name: y.patientName
|
|
@@ -6579,10 +6579,10 @@ function ml({
|
|
|
6579
6579
|
);
|
|
6580
6580
|
return () => window.clearTimeout(i);
|
|
6581
6581
|
}, [p, e]);
|
|
6582
|
-
const
|
|
6582
|
+
const ha = H(0);
|
|
6583
6583
|
ce(() => {
|
|
6584
|
-
if (!P || P.tick ===
|
|
6585
|
-
|
|
6584
|
+
if (!P || P.tick === ha.current) return;
|
|
6585
|
+
ha.current = P.tick;
|
|
6586
6586
|
const i = Yc(P, {
|
|
6587
6587
|
visibleRange: nt.current,
|
|
6588
6588
|
hiddenDays: O,
|
|
@@ -6617,7 +6617,7 @@ function ml({
|
|
|
6617
6617
|
v,
|
|
6618
6618
|
s
|
|
6619
6619
|
]);
|
|
6620
|
-
const
|
|
6620
|
+
const pa = oe(
|
|
6621
6621
|
(i) => {
|
|
6622
6622
|
if (nn(null), K) return;
|
|
6623
6623
|
if (T != null && T.has(i.id)) {
|
|
@@ -6655,7 +6655,7 @@ function ml({
|
|
|
6655
6655
|
i.allDay && Jn(i.patientId) === "" && !Rs(i) || nn({ event: i, el: L.el });
|
|
6656
6656
|
},
|
|
6657
6657
|
[]
|
|
6658
|
-
), Jt = oe(() => nn(null), []), Nt = H(""),
|
|
6658
|
+
), Jt = oe(() => nn(null), []), Nt = H(""), ga = oe(
|
|
6659
6659
|
(i) => {
|
|
6660
6660
|
cn.current = i.currentDate, nt.current = {
|
|
6661
6661
|
start: i.start.getTime(),
|
|
@@ -6772,7 +6772,7 @@ function ml({
|
|
|
6772
6772
|
x,
|
|
6773
6773
|
T
|
|
6774
6774
|
]
|
|
6775
|
-
),
|
|
6775
|
+
), va = oe(
|
|
6776
6776
|
(i) => {
|
|
6777
6777
|
var je, ae;
|
|
6778
6778
|
if (T != null && T.has(i.event.id)) {
|
|
@@ -6875,7 +6875,7 @@ function ml({
|
|
|
6875
6875
|
]), $t = oe(() => {
|
|
6876
6876
|
var i;
|
|
6877
6877
|
(i = k == null ? void 0 : k.revert) == null || i.call(k), Dn(v(D("moveConfirm.revertReadout"))), j(null);
|
|
6878
|
-
}, [k, v]),
|
|
6878
|
+
}, [k, v]), fa = oe(
|
|
6879
6879
|
(i) => {
|
|
6880
6880
|
cn.current = i, Ln(i), rn("day");
|
|
6881
6881
|
},
|
|
@@ -6893,7 +6893,7 @@ function ml({
|
|
|
6893
6893
|
return;
|
|
6894
6894
|
}
|
|
6895
6895
|
if (Bn && I) {
|
|
6896
|
-
Le &&
|
|
6896
|
+
Le && fa(i.date), nn(null), a(null);
|
|
6897
6897
|
return;
|
|
6898
6898
|
}
|
|
6899
6899
|
if (K && bn) {
|
|
@@ -6953,7 +6953,7 @@ function ml({
|
|
|
6953
6953
|
return;
|
|
6954
6954
|
}
|
|
6955
6955
|
if (Le) {
|
|
6956
|
-
nn(null), a(null),
|
|
6956
|
+
nn(null), a(null), fa(i.date);
|
|
6957
6957
|
return;
|
|
6958
6958
|
}
|
|
6959
6959
|
if (x) {
|
|
@@ -6983,7 +6983,7 @@ function ml({
|
|
|
6983
6983
|
v,
|
|
6984
6984
|
s,
|
|
6985
6985
|
Le,
|
|
6986
|
-
|
|
6986
|
+
fa,
|
|
6987
6987
|
C.defaultDurationMin,
|
|
6988
6988
|
x,
|
|
6989
6989
|
I,
|
|
@@ -7000,7 +7000,7 @@ function ml({
|
|
|
7000
7000
|
w,
|
|
7001
7001
|
N
|
|
7002
7002
|
]
|
|
7003
|
-
),
|
|
7003
|
+
), ba = oe(
|
|
7004
7004
|
(i) => {
|
|
7005
7005
|
const L = Math.max(
|
|
7006
7006
|
1,
|
|
@@ -7016,7 +7016,7 @@ function ml({
|
|
|
7016
7016
|
);
|
|
7017
7017
|
},
|
|
7018
7018
|
[ea]
|
|
7019
|
-
),
|
|
7019
|
+
), Ia = oe(
|
|
7020
7020
|
(i) => {
|
|
7021
7021
|
Ln(cn.current), rn(i);
|
|
7022
7022
|
},
|
|
@@ -7025,10 +7025,10 @@ function ml({
|
|
|
7025
7025
|
ce(() => {
|
|
7026
7026
|
const i = (L) => {
|
|
7027
7027
|
const B = Rc(L);
|
|
7028
|
-
B && (L.preventDefault(),
|
|
7028
|
+
B && (L.preventDefault(), Ia(B));
|
|
7029
7029
|
};
|
|
7030
7030
|
return document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i);
|
|
7031
|
-
}, [
|
|
7031
|
+
}, [Ia]);
|
|
7032
7032
|
const Ha = oe(
|
|
7033
7033
|
(i) => {
|
|
7034
7034
|
Ln(cn.current), W((L) => ({ ...L, resourceKind: i }));
|
|
@@ -7054,7 +7054,7 @@ function ml({
|
|
|
7054
7054
|
}, gt = Pc(We, re), Ft = () => {
|
|
7055
7055
|
var i;
|
|
7056
7056
|
(i = pn.current) == null || i.focus(), Cn([]), Tn([]), Pe(!1), An(!0);
|
|
7057
|
-
},
|
|
7057
|
+
}, ka = v(D(`view.${Qe}`)), it = hr(N), hs = [
|
|
7058
7058
|
{
|
|
7059
7059
|
value: "working",
|
|
7060
7060
|
label: v(R("settings.windowPractice"), {
|
|
@@ -7068,7 +7068,7 @@ function ml({
|
|
|
7068
7068
|
Sn,
|
|
7069
7069
|
{
|
|
7070
7070
|
label: /* @__PURE__ */ h("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
7071
|
-
/* @__PURE__ */ n("span", { "aria-hidden": "true", className: "ds:inline-flex", children: /* @__PURE__ */ n(wa, { size: "xs", name: i.title }) }),
|
|
7071
|
+
/* @__PURE__ */ n("span", { "aria-hidden": "true", className: "ds:inline-flex", children: /* @__PURE__ */ n(wa, { size: "xs", name: i.title, src: i.avatarSrc }) }),
|
|
7072
7072
|
/* @__PURE__ */ n("span", { children: i.title }),
|
|
7073
7073
|
N.inactiveOperatorIds.includes(i.id) ? /* @__PURE__ */ n(
|
|
7074
7074
|
Ea,
|
|
@@ -7082,7 +7082,7 @@ function ml({
|
|
|
7082
7082
|
] }),
|
|
7083
7083
|
checked: re.includes(i.id),
|
|
7084
7084
|
onCheckedChange: (L) => Tn(
|
|
7085
|
-
(B) =>
|
|
7085
|
+
(B) => oa(B, [i.id], L)
|
|
7086
7086
|
)
|
|
7087
7087
|
},
|
|
7088
7088
|
i.id
|
|
@@ -7283,7 +7283,7 @@ function ml({
|
|
|
7283
7283
|
) })
|
|
7284
7284
|
] }),
|
|
7285
7285
|
/* @__PURE__ */ n(
|
|
7286
|
-
|
|
7286
|
+
ia,
|
|
7287
7287
|
{
|
|
7288
7288
|
label: v(D("settings.zebra")),
|
|
7289
7289
|
checked: C.zebraRows,
|
|
@@ -7291,7 +7291,7 @@ function ml({
|
|
|
7291
7291
|
}
|
|
7292
7292
|
),
|
|
7293
7293
|
/* @__PURE__ */ n(
|
|
7294
|
-
|
|
7294
|
+
ia,
|
|
7295
7295
|
{
|
|
7296
7296
|
label: v(D("settings.showTime")),
|
|
7297
7297
|
checked: C.showTime,
|
|
@@ -7447,7 +7447,7 @@ function ml({
|
|
|
7447
7447
|
) })
|
|
7448
7448
|
] }),
|
|
7449
7449
|
/* @__PURE__ */ n(
|
|
7450
|
-
|
|
7450
|
+
ia,
|
|
7451
7451
|
{
|
|
7452
7452
|
label: v(R("settings.mapsLink")),
|
|
7453
7453
|
checked: C.mapsLink,
|
|
@@ -7459,7 +7459,7 @@ function ml({
|
|
|
7459
7459
|
}
|
|
7460
7460
|
)
|
|
7461
7461
|
] }) : null
|
|
7462
|
-
] }),
|
|
7462
|
+
] }), ya = /* @__PURE__ */ h(
|
|
7463
7463
|
"div",
|
|
7464
7464
|
{
|
|
7465
7465
|
role: "group",
|
|
@@ -7502,7 +7502,7 @@ function ml({
|
|
|
7502
7502
|
label: /* @__PURE__ */ n(bo, { label: i.title, color: i.color }),
|
|
7503
7503
|
checked: We.includes(i.id),
|
|
7504
7504
|
onCheckedChange: (L) => Cn(
|
|
7505
|
-
(B) =>
|
|
7505
|
+
(B) => oa(B, [i.id], L)
|
|
7506
7506
|
)
|
|
7507
7507
|
},
|
|
7508
7508
|
i.id
|
|
@@ -7559,7 +7559,7 @@ function ml({
|
|
|
7559
7559
|
] }),
|
|
7560
7560
|
checked: Ls(re, L),
|
|
7561
7561
|
onCheckedChange: (B) => Tn(
|
|
7562
|
-
(G) =>
|
|
7562
|
+
(G) => oa(G, L, B)
|
|
7563
7563
|
)
|
|
7564
7564
|
}
|
|
7565
7565
|
),
|
|
@@ -7570,7 +7570,7 @@ function ml({
|
|
|
7570
7570
|
);
|
|
7571
7571
|
}),
|
|
7572
7572
|
/* @__PURE__ */ n(
|
|
7573
|
-
|
|
7573
|
+
ia,
|
|
7574
7574
|
{
|
|
7575
7575
|
label: v(D("filters.onlyAvailable")),
|
|
7576
7576
|
checked: Ee,
|
|
@@ -7578,7 +7578,7 @@ function ml({
|
|
|
7578
7578
|
}
|
|
7579
7579
|
),
|
|
7580
7580
|
/* @__PURE__ */ n(
|
|
7581
|
-
|
|
7581
|
+
ia,
|
|
7582
7582
|
{
|
|
7583
7583
|
label: v(R("filters.showDisabledOperators")),
|
|
7584
7584
|
checked: In,
|
|
@@ -7618,20 +7618,20 @@ function ml({
|
|
|
7618
7618
|
}
|
|
7619
7619
|
),
|
|
7620
7620
|
/* @__PURE__ */ h(ye.Root, { children: [
|
|
7621
|
-
/* @__PURE__ */ n(bs, { label: v(R("view.menuLabel"), { view:
|
|
7621
|
+
/* @__PURE__ */ n(bs, { label: v(R("view.menuLabel"), { view: ka }), children: /* @__PURE__ */ n(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
|
|
7622
7622
|
ee,
|
|
7623
7623
|
{
|
|
7624
7624
|
className: "ds:shrink-0 ds:[min-inline-size:var(--min-target-size)] ds:[min-block-size:var(--min-target-size)] ds:@max-[576px]/calendar-nav:ps-[var(--spacing-sm)] ds:@max-[576px]/calendar-nav:pe-[var(--spacing-sm)]",
|
|
7625
7625
|
intent: "outline",
|
|
7626
7626
|
background: "surface",
|
|
7627
7627
|
endIcon: /* @__PURE__ */ n(Co, {}),
|
|
7628
|
-
"aria-label": v(R("view.menuLabel"), { view:
|
|
7628
|
+
"aria-label": v(R("view.menuLabel"), { view: ka }),
|
|
7629
7629
|
children: /* @__PURE__ */ n(
|
|
7630
7630
|
"span",
|
|
7631
7631
|
{
|
|
7632
7632
|
"data-calendar-nav-label": "view",
|
|
7633
7633
|
className: "ds:@max-[576px]/calendar-nav:hidden",
|
|
7634
|
-
children:
|
|
7634
|
+
children: ka
|
|
7635
7635
|
}
|
|
7636
7636
|
)
|
|
7637
7637
|
}
|
|
@@ -7642,7 +7642,7 @@ function ml({
|
|
|
7642
7642
|
ye.RadioGroup,
|
|
7643
7643
|
{
|
|
7644
7644
|
value: Qe,
|
|
7645
|
-
onValueChange: (i) =>
|
|
7645
|
+
onValueChange: (i) => Ia(i),
|
|
7646
7646
|
children: Gs.map((i) => /* @__PURE__ */ n(ye.RadioItem, { value: i, children: /* @__PURE__ */ h("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
7647
7647
|
/* @__PURE__ */ n("span", { className: "ds:flex-1", children: v(D(`view.${i}`)) }),
|
|
7648
7648
|
/* @__PURE__ */ n(fo, { keys: [ur[i]], size: "sm" })
|
|
@@ -7721,13 +7721,13 @@ function ml({
|
|
|
7721
7721
|
] })
|
|
7722
7722
|
]
|
|
7723
7723
|
}
|
|
7724
|
-
), rt = ve ? N.metaById[ve.event.id] : void 0, ot = ve ? e.find((i) => i.event.id === ve.event.id) : void 0, na = ((vt = ot == null ? void 0 : ot.careLink) == null ? void 0 : vt.kind) === "plan" ? N.carePlanById(ot.careLink.planId) : void 0,
|
|
7724
|
+
), rt = ve ? N.metaById[ve.event.id] : void 0, ot = ve ? e.find((i) => i.event.id === ve.event.id) : void 0, na = ((vt = ot == null ? void 0 : ot.careLink) == null ? void 0 : vt.kind) === "plan" ? N.carePlanById(ot.careLink.planId) : void 0, Ca = mt(ve == null ? void 0 : ve.event.patientId, N).record, Na = N.chairs.find((i) => i.id === (rt == null ? void 0 : rt.chairId)), ta = N.operators.find(
|
|
7725
7725
|
(i) => i.id === (rt == null ? void 0 : rt.operatorId)
|
|
7726
|
-
), xn = k ? e.find((i) => i.event.id === k.event.id) : void 0,
|
|
7727
|
-
|
|
7726
|
+
), xn = k ? e.find((i) => i.event.id === k.event.id) : void 0, aa = mt(k == null ? void 0 : k.event.patientId, N), sa = k ? Pn(k.event) : !1, Rt = aa.assigned ? Pt(
|
|
7727
|
+
aa,
|
|
7728
7728
|
xn == null ? void 0 : xn.event.title,
|
|
7729
7729
|
v(D("details.patientNotLoaded"))
|
|
7730
|
-
) : null, Ht = as(
|
|
7730
|
+
) : null, Ht = as(aa), gs = Za(Ht.sms), Da = Za(Ht.email), xt = Qa(Ht.sms, {
|
|
7731
7731
|
optedOut: "moveConfirm.smsOptedOut",
|
|
7732
7732
|
none: "moveConfirm.smsUnavailable"
|
|
7733
7733
|
}), Et = Qa(Ht.email, {
|
|
@@ -7874,7 +7874,7 @@ function ml({
|
|
|
7874
7874
|
{
|
|
7875
7875
|
ref: ne,
|
|
7876
7876
|
className: "ds:@container/calendar-nav ds:sticky ds:top-0 ds:z-20 ds:min-w-0 ds:print:hidden",
|
|
7877
|
-
children:
|
|
7877
|
+
children: ya
|
|
7878
7878
|
}
|
|
7879
7879
|
),
|
|
7880
7880
|
/* @__PURE__ */ n(
|
|
@@ -7902,7 +7902,7 @@ function ml({
|
|
|
7902
7902
|
editable: !x,
|
|
7903
7903
|
privacyMode: he,
|
|
7904
7904
|
mode: pt,
|
|
7905
|
-
modeLabel:
|
|
7905
|
+
modeLabel: ma,
|
|
7906
7906
|
modeBannerColor: Xn,
|
|
7907
7907
|
modeBannerTextColor: ls,
|
|
7908
7908
|
onModeCancel: us,
|
|
@@ -7923,20 +7923,20 @@ function ml({
|
|
|
7923
7923
|
toolbar: !1,
|
|
7924
7924
|
stickyHeaderDates: !0,
|
|
7925
7925
|
height: "auto",
|
|
7926
|
-
onEventClick:
|
|
7926
|
+
onEventClick: pa,
|
|
7927
7927
|
onEventMouseEnter: ms,
|
|
7928
7928
|
onEventMouseLeave: Jt,
|
|
7929
7929
|
onEventDragStart: Jt,
|
|
7930
7930
|
onEventResizeStart: Jt,
|
|
7931
7931
|
onEventDrop: _a,
|
|
7932
|
-
onEventResize:
|
|
7932
|
+
onEventResize: va,
|
|
7933
7933
|
onDateClick: ea,
|
|
7934
7934
|
selectable: !x,
|
|
7935
7935
|
unselectAuto: !1,
|
|
7936
|
-
onDateSelect:
|
|
7936
|
+
onDateSelect: ba,
|
|
7937
7937
|
availabilityMode: Bn,
|
|
7938
|
-
onNavLinkDayClick: Le ?
|
|
7939
|
-
onDatesSet:
|
|
7938
|
+
onNavLinkDayClick: Le ? fa : void 0,
|
|
7939
|
+
onDatesSet: ga
|
|
7940
7940
|
},
|
|
7941
7941
|
`${Qe}-${te}-${C.orientation}`
|
|
7942
7942
|
)
|
|
@@ -7993,12 +7993,12 @@ function ml({
|
|
|
7993
7993
|
) }) })
|
|
7994
7994
|
] }) : /* @__PURE__ */ h(Oe, { children: [
|
|
7995
7995
|
/* @__PURE__ */ h(Mt.Media, { children: [
|
|
7996
|
-
!he &&
|
|
7996
|
+
!he && Ca ? /* @__PURE__ */ n(
|
|
7997
7997
|
wa,
|
|
7998
7998
|
{
|
|
7999
7999
|
size: "sm",
|
|
8000
|
-
name:
|
|
8001
|
-
src:
|
|
8000
|
+
name: Ca.name,
|
|
8001
|
+
src: Ca.avatarSrc
|
|
8002
8002
|
}
|
|
8003
8003
|
) : null,
|
|
8004
8004
|
/* @__PURE__ */ n(Mt.Heading, { children: he ? ve.event.privacyModeTitle ?? "•••" : ve.event.title })
|
|
@@ -8033,21 +8033,28 @@ function ml({
|
|
|
8033
8033
|
] })
|
|
8034
8034
|
}
|
|
8035
8035
|
),
|
|
8036
|
-
|
|
8036
|
+
ta ? /* @__PURE__ */ n(
|
|
8037
8037
|
ut,
|
|
8038
8038
|
{
|
|
8039
8039
|
label: v(D("details.operator")),
|
|
8040
8040
|
value: /* @__PURE__ */ h("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
8041
|
-
/* @__PURE__ */ n(
|
|
8042
|
-
|
|
8041
|
+
/* @__PURE__ */ n(
|
|
8042
|
+
wa,
|
|
8043
|
+
{
|
|
8044
|
+
size: "xs",
|
|
8045
|
+
name: ta.title,
|
|
8046
|
+
src: ta.avatarSrc
|
|
8047
|
+
}
|
|
8048
|
+
),
|
|
8049
|
+
/* @__PURE__ */ n("span", { children: ta.title })
|
|
8043
8050
|
] })
|
|
8044
8051
|
}
|
|
8045
8052
|
) : null,
|
|
8046
|
-
|
|
8053
|
+
Na ? /* @__PURE__ */ n(
|
|
8047
8054
|
ut,
|
|
8048
8055
|
{
|
|
8049
8056
|
label: v(D("details.chair")),
|
|
8050
|
-
value:
|
|
8057
|
+
value: Na.title
|
|
8051
8058
|
}
|
|
8052
8059
|
) : null,
|
|
8053
8060
|
rt && !he ? /* @__PURE__ */ n(
|
|
@@ -8078,7 +8085,7 @@ function ml({
|
|
|
8078
8085
|
value: ve.event.status,
|
|
8079
8086
|
option: {
|
|
8080
8087
|
value: ve.event.status,
|
|
8081
|
-
label: Te(
|
|
8088
|
+
label: Te(da[ve.event.status]),
|
|
8082
8089
|
icon: (() => {
|
|
8083
8090
|
const i = Gt[ve.event.status].Icon;
|
|
8084
8091
|
return /* @__PURE__ */ n(i, { "aria-hidden": "true" });
|
|
@@ -8117,7 +8124,7 @@ function ml({
|
|
|
8117
8124
|
".",
|
|
8118
8125
|
" "
|
|
8119
8126
|
] }),
|
|
8120
|
-
|
|
8127
|
+
sa ? null : v(D("moveConfirm.description"))
|
|
8121
8128
|
] })
|
|
8122
8129
|
] }),
|
|
8123
8130
|
/* @__PURE__ */ h(we.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -8144,7 +8151,7 @@ function ml({
|
|
|
8144
8151
|
}
|
|
8145
8152
|
)
|
|
8146
8153
|
] }),
|
|
8147
|
-
xn != null && xn.series ||
|
|
8154
|
+
xn != null && xn.series || sa ? /* @__PURE__ */ n(
|
|
8148
8155
|
Wt,
|
|
8149
8156
|
{
|
|
8150
8157
|
label: v(D("moveConfirm.scope")),
|
|
@@ -8162,7 +8169,7 @@ function ml({
|
|
|
8162
8169
|
))
|
|
8163
8170
|
}
|
|
8164
8171
|
) : null,
|
|
8165
|
-
|
|
8172
|
+
sa ? null : /* @__PURE__ */ h(Oe, { children: [
|
|
8166
8173
|
/* @__PURE__ */ n(
|
|
8167
8174
|
Sn,
|
|
8168
8175
|
{
|
|
@@ -8995,7 +9002,7 @@ function bl({
|
|
|
8995
9002
|
}
|
|
8996
9003
|
function dm(e, t = Fs) {
|
|
8997
9004
|
return { ...mr(
|
|
8998
|
-
t.get(
|
|
9005
|
+
t.get(ra.display)
|
|
8999
9006
|
) ?? ns, ...e };
|
|
9000
9007
|
}
|
|
9001
9008
|
function lm({ data: e, ...t }) {
|
|
@@ -9024,7 +9031,7 @@ function Il({
|
|
|
9024
9031
|
() => xc(y.split("|")),
|
|
9025
9032
|
[y]
|
|
9026
9033
|
), p = (o == null ? void 0 : o.editAppointment) === !1, [P, he] = Sa(
|
|
9027
|
-
|
|
9034
|
+
ra.display,
|
|
9028
9035
|
() => ({ ...ns, ...r }),
|
|
9029
9036
|
(O) => {
|
|
9030
9037
|
const Q = mr(O);
|
|
@@ -9451,7 +9458,7 @@ function Il({
|
|
|
9451
9458
|
);
|
|
9452
9459
|
}
|
|
9453
9460
|
export {
|
|
9454
|
-
|
|
9461
|
+
ra as C,
|
|
9455
9462
|
Hs as D,
|
|
9456
9463
|
bd as S,
|
|
9457
9464
|
cm as V,
|
|
@@ -9468,4 +9475,4 @@ export {
|
|
|
9468
9475
|
om as r,
|
|
9469
9476
|
On as u
|
|
9470
9477
|
};
|
|
9471
|
-
//# sourceMappingURL=calendar-workspace-
|
|
9478
|
+
//# sourceMappingURL=calendar-workspace-BYwQK7fz.js.map
|
package/dist/agent-catalog.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -228,7 +228,7 @@ import { W as aC, a as eC, w as sC } from "./_chunks/workflow-status-xeaJTzD3.js
|
|
|
228
228
|
import { C as oC, W as tC, a as nC, b as iC, c as pC, i as mC, l as lC, m as dC, r as AC, w as cC, d as fC, e as gC, f as SC } from "./_chunks/workflow-map-D-LEni11.js";
|
|
229
229
|
import { A as TC, a as xC, b as uC, c as PC } from "./_chunks/alia-sidebar-B6bXlZZk.js";
|
|
230
230
|
import { A as EC, a as RC, L as _C, P as bC, S as NC, T as DC, b as hC, c as OC, d as FC, e as LC, f as MC, g as yC, h as kC, i as BC, j as GC, k as vC, l as HC, m as wC, n as WC, o as UC, p as VC, r as KC, q as YC, s as XC, t as qC, u as zC } from "./_chunks/anamnesis-summary-rows-Cxtgo2ok.js";
|
|
231
|
-
import { C as QC, a as ZC, b as JC, c as $C, D as aT, d as eT, S as sT, V as rT, W as oT, e as tT, i as nT, m as iT, r as pT, u as mT, f as lT, g as dT } from "./_chunks/calendar-workspace-
|
|
231
|
+
import { C as QC, a as ZC, b as JC, c as $C, D as aT, d as eT, S as sT, V as rT, W as oT, e as tT, i as nT, m as iT, r as pT, u as mT, f as lT, g as dT } from "./_chunks/calendar-workspace-BYwQK7fz.js";
|
|
232
232
|
import { C as cT, M as fT, P as gT } from "./_chunks/marketplace-app-shell-BwH6Aruw.js";
|
|
233
233
|
import { P as CT } from "./_chunks/payment-automation-upsell-BLTdE2em.js";
|
|
234
234
|
import { S as xT } from "./_chunks/signature-request-Dej2g86d.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-
|
|
1
|
+
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-BYwQK7fz.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CALENDAR_PREFERENCE_KEYS,
|
|
4
4
|
r as CalendarDataProvider,
|
package/package.json
CHANGED