@alfadocs/ui-kit-debug 1.25.1-calendar.7 → 1.25.1-calendar.9
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/{calendar-workspace-CDhW8tPy.js → calendar-workspace-DR-P6fWV.js} +71 -69
- package/dist/_chunks/{calendar-workspace-CDhW8tPy.js.map → calendar-workspace-DR-P6fWV.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import { A as ca } from "./avatar-BNQNhoyL.js";
|
|
|
22
22
|
import { E as _a } from "./empty-state-X0sVPfVo.js";
|
|
23
23
|
import { P as At } from "./panel-header-D313n_9-.js";
|
|
24
24
|
import { F as ne } from "./form-field-CahJzTxp.js";
|
|
25
|
-
import { R as
|
|
25
|
+
import { R as xn } from "./radio-TWf9Q-mp.js";
|
|
26
26
|
import { R as Nt } from "./radio-group-rXDJADzW.js";
|
|
27
27
|
import { T as dr } from "./text-input-CUvCb6ST.js";
|
|
28
28
|
import { T as os } from "./text-area-Bt3p7Pt0.js";
|
|
@@ -1836,7 +1836,7 @@ function ai({
|
|
|
1836
1836
|
(e == null ? void 0 : e.durationMin) ?? 30
|
|
1837
1837
|
), [ce, an] = S((e == null ? void 0 : e.operatorId) ?? we), [Le, Ve] = S((e == null ? void 0 : e.chairId) ?? we), [sn, on] = S(
|
|
1838
1838
|
() => H ? (e == null ? void 0 : e.colorHex) ?? "" : vo(e, f, M)
|
|
1839
|
-
), [dn, $e] = S((e == null ? void 0 : e.care) ?? ""), [qe, Jn] = S(!0), [Ue, fn] = S(!1), [
|
|
1839
|
+
), [dn, $e] = S((e == null ? void 0 : e.care) ?? ""), [qe, Jn] = S(!0), [Ue, fn] = S(!1), [wn, R] = S("no"), z = e == null ? void 0 : e.careLink, [V, Re] = S((z == null ? void 0 : z.kind) ?? we), [J, Ye] = S(
|
|
1840
1840
|
(z == null ? void 0 : z.kind) === "plan" ? z.planId : ""
|
|
1841
1841
|
), [me, ae] = S(
|
|
1842
1842
|
() => (z == null ? void 0 : z.kind) === "plan" ? [...z.entryIds] : []
|
|
@@ -1844,15 +1844,15 @@ function ai({
|
|
|
1844
1844
|
() => (z == null ? void 0 : z.kind) === "plan" ? { ...z.phasesByEntry } : {}
|
|
1845
1845
|
), [ln, Bn] = S(
|
|
1846
1846
|
() => (z == null ? void 0 : z.kind) === "priceList" ? z.priceListId : Gs(e == null ? void 0 : e.patientId, M) ?? ""
|
|
1847
|
-
),
|
|
1847
|
+
), Sn = Q(0), [un, Tn] = S(
|
|
1848
1848
|
() => (z == null ? void 0 : z.kind) === "priceList" && z.items.length > 0 ? z.items.map((l) => ({
|
|
1849
|
-
key:
|
|
1849
|
+
key: Sn.current += 1,
|
|
1850
1850
|
careId: l.careId,
|
|
1851
1851
|
priceCents: l.priceCents,
|
|
1852
1852
|
phases: l.phases ? [...l.phases] : void 0,
|
|
1853
1853
|
billed: l.billed
|
|
1854
|
-
})) : [{ key:
|
|
1855
|
-
),
|
|
1854
|
+
})) : [{ key: Sn.current += 1, careId: "", priceCents: null }]
|
|
1855
|
+
), Ln = k ?? Te.language ?? "en", Qe = le(
|
|
1856
1856
|
() => U ? M.openCarePlansForPatient(U) : [],
|
|
1857
1857
|
[U, M]
|
|
1858
1858
|
), ot = Q(U);
|
|
@@ -1881,14 +1881,14 @@ function ai({
|
|
|
1881
1881
|
}), ae(
|
|
1882
1882
|
(pn) => En.length > 0 ? pn.includes(l.id) ? pn : [...pn, l.id] : pn.filter((De) => De !== l.id)
|
|
1883
1883
|
);
|
|
1884
|
-
}, Pn = (l, W) =>
|
|
1884
|
+
}, Pn = (l, W) => Tn(
|
|
1885
1885
|
(se) => se.map((Ie) => Ie.key === l ? { ...Ie, ...W } : Ie)
|
|
1886
|
-
), ct = () =>
|
|
1886
|
+
), ct = () => Tn((l) => [
|
|
1887
1887
|
...l,
|
|
1888
|
-
{ key:
|
|
1889
|
-
]), Dn = (l) =>
|
|
1888
|
+
{ key: Sn.current += 1, careId: "", priceCents: null }
|
|
1889
|
+
]), Dn = (l) => Tn(
|
|
1890
1890
|
(W) => W.length > 1 ? W.filter((se) => se.key !== l) : W
|
|
1891
|
-
),
|
|
1891
|
+
), Nn = (l, W, se) => {
|
|
1892
1892
|
var pn;
|
|
1893
1893
|
const Ie = ((pn = M.careById(l.careId)) == null ? void 0 : pn.phases) ?? [], fe = l.phases ?? [], En = se ? [...fe, W] : fe.filter((De) => De !== W);
|
|
1894
1894
|
Pn(l.key, {
|
|
@@ -1999,7 +1999,7 @@ function ai({
|
|
|
1999
1999
|
care: dn,
|
|
2000
2000
|
emailReminder: qe,
|
|
2001
2001
|
smsReminder: Ue,
|
|
2002
|
-
firstVisit:
|
|
2002
|
+
firstVisit: wn,
|
|
2003
2003
|
careLink: V,
|
|
2004
2004
|
carePlanId: J,
|
|
2005
2005
|
entryIds: me,
|
|
@@ -2422,8 +2422,8 @@ function ai({
|
|
|
2422
2422
|
value: Be,
|
|
2423
2423
|
onValueChange: (l) => Pe(l),
|
|
2424
2424
|
children: [
|
|
2425
|
-
/* @__PURE__ */ n(
|
|
2426
|
-
/* @__PURE__ */ n(
|
|
2425
|
+
/* @__PURE__ */ n(xn, { value: "in_practice", label: h(I("typeInPractice")) }),
|
|
2426
|
+
/* @__PURE__ */ n(xn, { value: "telehealth", label: h(I("typeTelehealth")) })
|
|
2427
2427
|
]
|
|
2428
2428
|
}
|
|
2429
2429
|
) }),
|
|
@@ -2508,7 +2508,7 @@ function ai({
|
|
|
2508
2508
|
onValueChange: (l) => Ia(l),
|
|
2509
2509
|
children: [
|
|
2510
2510
|
/* @__PURE__ */ n(
|
|
2511
|
-
|
|
2511
|
+
xn,
|
|
2512
2512
|
{
|
|
2513
2513
|
value: "sms",
|
|
2514
2514
|
label: j === null ? h(I("signModeSms")) : `${h(I("signModeSms"))} — ${h(j)}`,
|
|
@@ -2517,7 +2517,7 @@ function ai({
|
|
|
2517
2517
|
}
|
|
2518
2518
|
),
|
|
2519
2519
|
/* @__PURE__ */ n(
|
|
2520
|
-
|
|
2520
|
+
xn,
|
|
2521
2521
|
{
|
|
2522
2522
|
value: "email",
|
|
2523
2523
|
label: Y === null ? h(I("signModeEmail")) : `${h(I("signModeEmail"))} — ${h(Y)}`,
|
|
@@ -2525,7 +2525,7 @@ function ai({
|
|
|
2525
2525
|
disabledReason: Y === null ? void 0 : h(Y)
|
|
2526
2526
|
}
|
|
2527
2527
|
),
|
|
2528
|
-
/* @__PURE__ */ n(
|
|
2528
|
+
/* @__PURE__ */ n(xn, { value: "none", label: h(I("signModeNone")) })
|
|
2529
2529
|
]
|
|
2530
2530
|
}
|
|
2531
2531
|
) }) : null,
|
|
@@ -2542,7 +2542,7 @@ function ai({
|
|
|
2542
2542
|
{ value: "yes", label: h(I("firstVisitYes")) },
|
|
2543
2543
|
{ value: "unknown", label: h(I("firstVisitUnknown")) }
|
|
2544
2544
|
],
|
|
2545
|
-
value:
|
|
2545
|
+
value: wn,
|
|
2546
2546
|
onValueChange: R
|
|
2547
2547
|
}
|
|
2548
2548
|
)
|
|
@@ -2558,9 +2558,9 @@ function ai({
|
|
|
2558
2558
|
disabled: H,
|
|
2559
2559
|
description: H ? h(I("linkCareLocked")) : Qe.length === 0 ? h(I("linkPlanDisabled")) : void 0,
|
|
2560
2560
|
children: [
|
|
2561
|
-
/* @__PURE__ */ n(
|
|
2561
|
+
/* @__PURE__ */ n(xn, { value: we, label: h(I("linkNone")) }),
|
|
2562
2562
|
/* @__PURE__ */ n(
|
|
2563
|
-
|
|
2563
|
+
xn,
|
|
2564
2564
|
{
|
|
2565
2565
|
value: "plan",
|
|
2566
2566
|
label: h(I("linkPlan")),
|
|
@@ -2569,7 +2569,7 @@ function ai({
|
|
|
2569
2569
|
}
|
|
2570
2570
|
),
|
|
2571
2571
|
Rt ? /* @__PURE__ */ n(
|
|
2572
|
-
|
|
2572
|
+
xn,
|
|
2573
2573
|
{
|
|
2574
2574
|
value: "priceList",
|
|
2575
2575
|
label: h(I("linkPriceList"))
|
|
@@ -2637,7 +2637,7 @@ function ai({
|
|
|
2637
2637
|
{
|
|
2638
2638
|
label: h(I("entryScheduled"), {
|
|
2639
2639
|
date: rn(
|
|
2640
|
-
|
|
2640
|
+
Ln,
|
|
2641
2641
|
fe.startIso
|
|
2642
2642
|
)
|
|
2643
2643
|
}),
|
|
@@ -2773,7 +2773,7 @@ function ai({
|
|
|
2773
2773
|
{
|
|
2774
2774
|
mode: "currency",
|
|
2775
2775
|
currency: "EUR",
|
|
2776
|
-
locale:
|
|
2776
|
+
locale: Ln,
|
|
2777
2777
|
min: 0,
|
|
2778
2778
|
variant: "plain",
|
|
2779
2779
|
size: "sm",
|
|
@@ -2827,7 +2827,7 @@ function ai({
|
|
|
2827
2827
|
label: De,
|
|
2828
2828
|
checked: Ie.includes(De),
|
|
2829
2829
|
disabled: fe,
|
|
2830
|
-
onCheckedChange: (ya) =>
|
|
2830
|
+
onCheckedChange: (ya) => Nn(l, De, ya === !0)
|
|
2831
2831
|
},
|
|
2832
2832
|
De
|
|
2833
2833
|
))
|
|
@@ -3222,7 +3222,7 @@ function ai({
|
|
|
3222
3222
|
value: Bt,
|
|
3223
3223
|
onValueChange: (l) => Pt(l),
|
|
3224
3224
|
children: as.map((l) => /* @__PURE__ */ n(
|
|
3225
|
-
|
|
3225
|
+
xn,
|
|
3226
3226
|
{
|
|
3227
3227
|
value: l,
|
|
3228
3228
|
label: h(I(ss[l]))
|
|
@@ -3405,7 +3405,7 @@ function ai({
|
|
|
3405
3405
|
value: ta,
|
|
3406
3406
|
onValueChange: (l) => aa(l),
|
|
3407
3407
|
children: as.map((l) => /* @__PURE__ */ n(
|
|
3408
|
-
|
|
3408
|
+
xn,
|
|
3409
3409
|
{
|
|
3410
3410
|
value: l,
|
|
3411
3411
|
label: h(I(ss[l]))
|
|
@@ -3421,8 +3421,8 @@ function ai({
|
|
|
3421
3421
|
value: en ? "remove" : "keep",
|
|
3422
3422
|
onValueChange: (l) => sa(l === "remove"),
|
|
3423
3423
|
children: [
|
|
3424
|
-
/* @__PURE__ */ n(
|
|
3425
|
-
/* @__PURE__ */ n(
|
|
3424
|
+
/* @__PURE__ */ n(xn, { value: "remove", label: h(I("carePlanRemove")) }),
|
|
3425
|
+
/* @__PURE__ */ n(xn, { value: "keep", label: h(I("carePlanKeep")) })
|
|
3426
3426
|
]
|
|
3427
3427
|
}
|
|
3428
3428
|
) : null
|
|
@@ -4936,7 +4936,7 @@ function sc({
|
|
|
4936
4936
|
cares: G ? [{ careId: G.id, name: G.name, code: G.code }] : a == null ? void 0 : a.cares,
|
|
4937
4937
|
patientId: a == null ? void 0 : a.patientId
|
|
4938
4938
|
}), m("appointment-editor");
|
|
4939
|
-
}, $e = u != null && u.devicesByCare && G ? u.devicesByCare[G.id] ?? [] : [], qe = u == null ? void 0 : u.maxRangeDays, Jn = !!(qe && N && He && Oo(N, He) > qe), Ue = (u == null ? void 0 : u.practiceHasBusinessHours) === !1, fn = (u == null ? void 0 : u.operatorsHaveBusinessHours) === !1,
|
|
4939
|
+
}, $e = u != null && u.devicesByCare && G ? u.devicesByCare[G.id] ?? [] : [], qe = u == null ? void 0 : u.maxRangeDays, Jn = !!(qe && N && He && Oo(N, He) > qe), Ue = (u == null ? void 0 : u.practiceHasBusinessHours) === !1, fn = (u == null ? void 0 : u.operatorsHaveBusinessHours) === !1, wn = le(() => {
|
|
4940
4940
|
if (!H) return [];
|
|
4941
4941
|
const R = /* @__PURE__ */ new Map();
|
|
4942
4942
|
for (const z of H) {
|
|
@@ -5110,7 +5110,7 @@ function sc({
|
|
|
5110
5110
|
}
|
|
5111
5111
|
),
|
|
5112
5112
|
$ ? /* @__PURE__ */ n("span", { className: "type-body-sm ds:text-start ds:text-[color:var(--muted-foreground)]", children: d(o("capNote")) }) : null,
|
|
5113
|
-
|
|
5113
|
+
wn.map(([R, z]) => /* @__PURE__ */ p(
|
|
5114
5114
|
"div",
|
|
5115
5115
|
{
|
|
5116
5116
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
@@ -5236,9 +5236,9 @@ function dc({
|
|
|
5236
5236
|
H
|
|
5237
5237
|
), Cn = (i) => Te(i(X)), [xe, Wn] = S(
|
|
5238
5238
|
() => /* @__PURE__ */ new Date(`${$.initialDateIso}T00:00:00`)
|
|
5239
|
-
), _e = Q(xe), [vn, ce] = S(xe), [an, Le] = S(!0), [Ve, sn] = S(!1), [on, dn] = S(!1), [$e, qe] = S(!1), [Jn, Ue] = S(!1), fn = Q(null), [
|
|
5239
|
+
), _e = Q(xe), [vn, ce] = S(xe), [an, Le] = S(!0), [Ve, sn] = S(!1), [on, dn] = S(!1), [$e, qe] = S(!1), [Jn, Ue] = S(!1), fn = Q(null), [wn, R] = S(!1), [z, V] = S(
|
|
5240
5240
|
() => /* @__PURE__ */ new Date(`${$.initialDateIso}T00:00:00`)
|
|
5241
|
-
), [Re, J] = S(!1), [Ye, me] = S(""), [ae, he] = S(null), [Z, ln] = S(null), [Bn,
|
|
5241
|
+
), [Re, J] = S(!1), [Ye, me] = S(""), [ae, he] = S(null), [Z, ln] = S(null), [Bn, Sn] = S(!1), [un, Tn] = S(!1), [Ln, Qe] = S(""), [ot, hn] = S("this"), It = Q(0), Qn = Q(null), [et, Rt] = S(null), Et = de((i) => {
|
|
5242
5242
|
const T = Qn.current;
|
|
5243
5243
|
if (!T) return !1;
|
|
5244
5244
|
const F = i.getTime();
|
|
@@ -5269,7 +5269,7 @@ function dc({
|
|
|
5269
5269
|
), Dn = le(
|
|
5270
5270
|
() => Js(be, Vn),
|
|
5271
5271
|
[be, Vn]
|
|
5272
|
-
),
|
|
5272
|
+
), Nn = le(
|
|
5273
5273
|
() => Js(Pe, ct),
|
|
5274
5274
|
[Pe, ct]
|
|
5275
5275
|
), lt = le(
|
|
@@ -5285,7 +5285,7 @@ function dc({
|
|
|
5285
5285
|
days: nt,
|
|
5286
5286
|
axisKind: ie,
|
|
5287
5287
|
visibleChairIds: Dn,
|
|
5288
|
-
visibleOperatorIds:
|
|
5288
|
+
visibleOperatorIds: Nn,
|
|
5289
5289
|
privacy: X
|
|
5290
5290
|
},
|
|
5291
5291
|
$
|
|
@@ -5295,7 +5295,7 @@ function dc({
|
|
|
5295
5295
|
nt,
|
|
5296
5296
|
ie,
|
|
5297
5297
|
Dn,
|
|
5298
|
-
|
|
5298
|
+
Nn,
|
|
5299
5299
|
X,
|
|
5300
5300
|
$
|
|
5301
5301
|
]
|
|
@@ -5305,7 +5305,7 @@ function dc({
|
|
|
5305
5305
|
}, [Re]);
|
|
5306
5306
|
const Un = le(() => {
|
|
5307
5307
|
const i = e.filter(
|
|
5308
|
-
(oe) => (!oe.chairId || Dn.includes(oe.chairId)) && (!oe.operatorId ||
|
|
5308
|
+
(oe) => (!oe.chairId || Dn.includes(oe.chairId)) && (!oe.operatorId || Nn.includes(oe.operatorId))
|
|
5309
5309
|
).map((oe) => ({
|
|
5310
5310
|
...oe.event,
|
|
5311
5311
|
resourceId: ie === "operator" ? oe.operatorId : oe.chairId,
|
|
@@ -5330,7 +5330,7 @@ function dc({
|
|
|
5330
5330
|
rangeStart: T,
|
|
5331
5331
|
rangeEnd: F,
|
|
5332
5332
|
visibleChairIds: Dn,
|
|
5333
|
-
visibleOperatorIds:
|
|
5333
|
+
visibleOperatorIds: Nn,
|
|
5334
5334
|
columnsHiddenWhenAbsent: j,
|
|
5335
5335
|
labels: {
|
|
5336
5336
|
closed: g(x("print.closedDay")),
|
|
@@ -5362,7 +5362,7 @@ function dc({
|
|
|
5362
5362
|
rangeStart: T,
|
|
5363
5363
|
rangeEnd: F,
|
|
5364
5364
|
visibleChairIds: Dn,
|
|
5365
|
-
visibleOperatorIds:
|
|
5365
|
+
visibleOperatorIds: Nn,
|
|
5366
5366
|
columnsHiddenWhenAbsent: j,
|
|
5367
5367
|
wholeDayOnly: Ke
|
|
5368
5368
|
},
|
|
@@ -5379,7 +5379,7 @@ function dc({
|
|
|
5379
5379
|
ie,
|
|
5380
5380
|
I,
|
|
5381
5381
|
Dn,
|
|
5382
|
-
|
|
5382
|
+
Nn,
|
|
5383
5383
|
xe,
|
|
5384
5384
|
an,
|
|
5385
5385
|
w.orientation,
|
|
@@ -5389,7 +5389,7 @@ function dc({
|
|
|
5389
5389
|
A,
|
|
5390
5390
|
g,
|
|
5391
5391
|
$
|
|
5392
|
-
]), O = ie === "none" ? void 0 : ie === "operator" ? $.operators.filter((i) =>
|
|
5392
|
+
]), O = ie === "none" ? void 0 : ie === "operator" ? $.operators.filter((i) => Nn.includes(i.id)).map((i) => ({
|
|
5393
5393
|
...i,
|
|
5394
5394
|
/* The column says WHY it is there — but only where the
|
|
5395
5395
|
header renders text: under the initials treatment the
|
|
@@ -5553,7 +5553,7 @@ function dc({
|
|
|
5553
5553
|
), _n = de(
|
|
5554
5554
|
(i) => {
|
|
5555
5555
|
const T = Wa(Fn(i, $));
|
|
5556
|
-
|
|
5556
|
+
Sn(La(T.sms)), Tn(La(T.email));
|
|
5557
5557
|
},
|
|
5558
5558
|
[$]
|
|
5559
5559
|
), Xt = de(
|
|
@@ -6627,7 +6627,7 @@ function dc({
|
|
|
6627
6627
|
rangeTitle: rn(s, z),
|
|
6628
6628
|
axisKind: ie,
|
|
6629
6629
|
visibleChairIds: Dn,
|
|
6630
|
-
visibleOperatorIds:
|
|
6630
|
+
visibleOperatorIds: Nn,
|
|
6631
6631
|
privacy: X,
|
|
6632
6632
|
locale: s
|
|
6633
6633
|
}
|
|
@@ -6811,7 +6811,7 @@ function dc({
|
|
|
6811
6811
|
value: ot,
|
|
6812
6812
|
onValueChange: (i) => hn(i),
|
|
6813
6813
|
children: as.map((i) => /* @__PURE__ */ n(
|
|
6814
|
-
|
|
6814
|
+
xn,
|
|
6815
6815
|
{
|
|
6816
6816
|
value: i,
|
|
6817
6817
|
label: g(
|
|
@@ -6829,7 +6829,7 @@ function dc({
|
|
|
6829
6829
|
checked: Bn,
|
|
6830
6830
|
disabled: !ba,
|
|
6831
6831
|
disabledReason: Ct === null ? void 0 : g(x(Ct)),
|
|
6832
|
-
onCheckedChange: (i) =>
|
|
6832
|
+
onCheckedChange: (i) => Sn(i === !0)
|
|
6833
6833
|
}
|
|
6834
6834
|
),
|
|
6835
6835
|
/* @__PURE__ */ n(
|
|
@@ -6839,7 +6839,7 @@ function dc({
|
|
|
6839
6839
|
checked: un,
|
|
6840
6840
|
disabled: !Ia,
|
|
6841
6841
|
disabledReason: at === null ? void 0 : g(x(at)),
|
|
6842
|
-
onCheckedChange: (i) =>
|
|
6842
|
+
onCheckedChange: (i) => Tn(i === !0)
|
|
6843
6843
|
}
|
|
6844
6844
|
)
|
|
6845
6845
|
] }),
|
|
@@ -6850,7 +6850,7 @@ function dc({
|
|
|
6850
6850
|
] })
|
|
6851
6851
|
}
|
|
6852
6852
|
) : null,
|
|
6853
|
-
/* @__PURE__ */ n(ve, { open:
|
|
6853
|
+
/* @__PURE__ */ n(ve, { open: wn, onOpenChange: R, children: /* @__PURE__ */ p(ve.Content, { size: "sm", variant: "confirmation", children: [
|
|
6854
6854
|
/* @__PURE__ */ p(ve.Header, { children: [
|
|
6855
6855
|
/* @__PURE__ */ n(ve.Title, { children: g(L("print.title")) }),
|
|
6856
6856
|
/* @__PURE__ */ n(ve.Description, { children: g(L("print.description")) })
|
|
@@ -6879,7 +6879,7 @@ function dc({
|
|
|
6879
6879
|
)
|
|
6880
6880
|
] })
|
|
6881
6881
|
] }) }),
|
|
6882
|
-
/* @__PURE__ */ n(Lt, { "aria-live": "polite", children:
|
|
6882
|
+
/* @__PURE__ */ n(Lt, { "aria-live": "polite", children: Ln })
|
|
6883
6883
|
]
|
|
6884
6884
|
}
|
|
6885
6885
|
);
|
|
@@ -7101,7 +7101,7 @@ function mc({
|
|
|
7101
7101
|
eventId: Ve ? c == null ? void 0 : c.event.id : (Ye = f.prefill) == null ? void 0 : Ye.editEventId,
|
|
7102
7102
|
load: k,
|
|
7103
7103
|
children: (me) => {
|
|
7104
|
-
var ln, Bn,
|
|
7104
|
+
var ln, Bn, Sn, un, Tn, Ln;
|
|
7105
7105
|
const ae = me ? Fn(me.prefill.patientId, U) : u, he = ae.record, Z = me && c ? Xr(
|
|
7106
7106
|
c,
|
|
7107
7107
|
me,
|
|
@@ -7184,14 +7184,14 @@ function mc({
|
|
|
7184
7184
|
prefill: me ? {
|
|
7185
7185
|
...me.prefill,
|
|
7186
7186
|
callToAction: ((Bn = f.prefill) == null ? void 0 : Bn.callToAction) ?? me.prefill.callToAction,
|
|
7187
|
-
waitingEntryId: ((
|
|
7187
|
+
waitingEntryId: ((Sn = f.prefill) == null ? void 0 : Sn.waitingEntryId) ?? me.prefill.waitingEntryId,
|
|
7188
7188
|
simpleSave: ((un = f.prefill) == null ? void 0 : un.simpleSave) ?? me.prefill.simpleSave,
|
|
7189
|
-
bookingContact: ((
|
|
7189
|
+
bookingContact: ((Tn = f.prefill) == null ? void 0 : Tn.bookingContact) ?? me.prefill.bookingContact
|
|
7190
7190
|
} : f.prefill,
|
|
7191
7191
|
capabilities: me == null ? void 0 : me.capabilities,
|
|
7192
7192
|
onSave: h,
|
|
7193
7193
|
onDelete: M,
|
|
7194
|
-
readOnly: D || !!((
|
|
7194
|
+
readOnly: D || !!((Ln = f.prefill) != null && Ln.editEventId && We.has(
|
|
7195
7195
|
f.prefill.editEventId
|
|
7196
7196
|
)),
|
|
7197
7197
|
colorAssociation: A,
|
|
@@ -7386,11 +7386,11 @@ function mc({
|
|
|
7386
7386
|
Se(() => {
|
|
7387
7387
|
fn.current || (fn.current = !0, be(q.appointments));
|
|
7388
7388
|
}, [be]);
|
|
7389
|
-
const
|
|
7389
|
+
const wn = Q(t);
|
|
7390
7390
|
Se(() => {
|
|
7391
|
-
const J =
|
|
7391
|
+
const J = wn.current;
|
|
7392
7392
|
if (J !== t) {
|
|
7393
|
-
if (
|
|
7393
|
+
if (wn.current = t, !t) {
|
|
7394
7394
|
J && (be(q.appointments), v(Pa(q.appointments, G)));
|
|
7395
7395
|
return;
|
|
7396
7396
|
}
|
|
@@ -7551,7 +7551,7 @@ function pc({
|
|
|
7551
7551
|
Ue(
|
|
7552
7552
|
(K) => K === O ? `${O}` : O
|
|
7553
7553
|
);
|
|
7554
|
-
}, []), [
|
|
7554
|
+
}, []), [wn, R] = S(!1), [z, V] = S("create"), Re = de(
|
|
7555
7555
|
(O) => O === "patient-care-plan" ? null : O === "appointment-details" ? D.has(q.editor) ? (V("details"), q.editor) : q.appointments : O === "appointment-editor" ? D.has(q.editor) ? (V("create"), q.editor) : q.appointments : O === "backlog" ? D.has(q.waitingList) ? q.waitingList : q.appointments : D.has(q.findSlots) ? (te(), q.findSlots) : q.appointments,
|
|
7556
7556
|
[te, D]
|
|
7557
7557
|
), J = Te ? $e.find((O) => O.event.id === Te.eventId) ?? null : null, Ye = le(
|
|
@@ -7639,19 +7639,19 @@ function pc({
|
|
|
7639
7639
|
), K != null && K.removeFromCarePlan && Xn(E("calendarWorkspace.inc1.save.carePlanRemoved"));
|
|
7640
7640
|
},
|
|
7641
7641
|
[$e, G, E, y, qe]
|
|
7642
|
-
), [
|
|
7643
|
-
|
|
7644
|
-
const
|
|
7642
|
+
), [Sn, un] = S(null), Tn = Q(null);
|
|
7643
|
+
Tn.current = Sn;
|
|
7644
|
+
const Ln = de(
|
|
7645
7645
|
(O, K) => {
|
|
7646
7646
|
!J || qe.has(J.event.id) || un({ kind: O, eventId: J.event.id, withTreatments: K });
|
|
7647
7647
|
},
|
|
7648
7648
|
[J, qe]
|
|
7649
|
-
), Qe = de(() =>
|
|
7650
|
-
(O) =>
|
|
7651
|
-
[
|
|
7649
|
+
), Qe = de(() => Ln("move"), [Ln]), ot = de(
|
|
7650
|
+
(O) => Ln("copy", O),
|
|
7651
|
+
[Ln]
|
|
7652
7652
|
), hn = de(
|
|
7653
7653
|
(O) => {
|
|
7654
|
-
const K =
|
|
7654
|
+
const K = Tn.current;
|
|
7655
7655
|
if (O && (K != null && K.waitingEntryId)) {
|
|
7656
7656
|
const pe = K.waitingEntryId;
|
|
7657
7657
|
Fe((Xe) => Xe.filter((Ze) => Ze.id !== pe));
|
|
@@ -7671,7 +7671,7 @@ function pc({
|
|
|
7671
7671
|
ct.current = O ? O.id : "add", Pn({ entry: O }), je("waiting");
|
|
7672
7672
|
},
|
|
7673
7673
|
[je]
|
|
7674
|
-
),
|
|
7674
|
+
), Nn = de(() => Pn(null), []), lt = Q(Vn);
|
|
7675
7675
|
Se(() => {
|
|
7676
7676
|
var Ze;
|
|
7677
7677
|
const O = lt.current !== null;
|
|
@@ -7759,7 +7759,7 @@ function pc({
|
|
|
7759
7759
|
focus: Te,
|
|
7760
7760
|
rows: $e,
|
|
7761
7761
|
locale: A,
|
|
7762
|
-
privacy:
|
|
7762
|
+
privacy: wn,
|
|
7763
7763
|
selectedRow: J,
|
|
7764
7764
|
patientRef: Ye,
|
|
7765
7765
|
onOpenSheet: Re,
|
|
@@ -7788,7 +7788,7 @@ function pc({
|
|
|
7788
7788
|
onOpenEntryForm: Dn,
|
|
7789
7789
|
entryForm: Vn,
|
|
7790
7790
|
onSaveEntry: mn,
|
|
7791
|
-
onCancelEntry:
|
|
7791
|
+
onCancelEntry: Nn,
|
|
7792
7792
|
onBookSlotFromFinder: Cn,
|
|
7793
7793
|
onShowAvailability: _e,
|
|
7794
7794
|
onFinderSearchRange: B,
|
|
@@ -7819,20 +7819,22 @@ function pc({
|
|
|
7819
7819
|
onFocus: I,
|
|
7820
7820
|
locale: A,
|
|
7821
7821
|
readOnly: y,
|
|
7822
|
-
placement:
|
|
7822
|
+
placement: Sn,
|
|
7823
7823
|
onPlacementEnd: hn,
|
|
7824
7824
|
createMode: It,
|
|
7825
7825
|
onCreateModeEnd: et,
|
|
7826
7826
|
focusScroll: Rt,
|
|
7827
7827
|
saveNotice: he,
|
|
7828
|
-
privacy:
|
|
7828
|
+
privacy: wn,
|
|
7829
7829
|
onPrivacyChange: R,
|
|
7830
7830
|
availability: xe,
|
|
7831
7831
|
availabilityContext: Wn,
|
|
7832
7832
|
onComposeNew: y ? () => gn(
|
|
7833
7833
|
E("calendarWorkspace.inc1.readOnly.createBlocked")
|
|
7834
7834
|
) : L,
|
|
7835
|
-
onOpenWaitingList: () =>
|
|
7835
|
+
onOpenWaitingList: () => {
|
|
7836
|
+
Nn(), je("waiting");
|
|
7837
|
+
},
|
|
7836
7838
|
onAddWaitingEntry: y ? () => gn(
|
|
7837
7839
|
E("calendarWorkspace.inc1.readOnly.waitingBlocked")
|
|
7838
7840
|
) : () => Dn(),
|
|
@@ -7878,4 +7880,4 @@ export {
|
|
|
7878
7880
|
ql as r,
|
|
7879
7881
|
yn as u
|
|
7880
7882
|
};
|
|
7881
|
-
//# sourceMappingURL=calendar-workspace-
|
|
7883
|
+
//# sourceMappingURL=calendar-workspace-DR-P6fWV.js.map
|