@alfadocs/ui-kit-debug 1.15.0 → 1.15.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.
@@ -5,15 +5,16 @@ import { A as vs } from "./appointment-timeline-DCn0Jx55.js";
5
5
  import { C as fs, a as bs, u as Wi, d as Is } from "./control-room-rail-iO_BCaq1.js";
6
6
  import { S as ks } from "./scroll-area-BZOvUhwQ.js";
7
7
  import { b as Re, c as ri, d as ga } from "./toast-YZz2sBzB.js";
8
+ import { a as ys } from "./tooltip-DvmfrNvB.js";
8
9
  import { V as Ct } from "./visually-hidden-BHxEUGyT.js";
9
- import { G as Qt, h as oi, c as ys, A as Cs, C as _i } from "./color-picker-CU303VjY.js";
10
- import { s as Ds, S as Ns } from "./signature-status-chip-DqrPIJtH.js";
11
- import { Z as xs, B as Ss, T as ws, E as Ts, C as Es } from "./calendar-event-card-BjdHZaqz.js";
10
+ import { G as Qt, h as oi, c as Cs, A as Ds, C as _i } from "./color-picker-CU303VjY.js";
11
+ import { s as Ns, S as xs } from "./signature-status-chip-DqrPIJtH.js";
12
+ import { Z as Ss, B as ws, T as Ts, E as Es, C as As } from "./calendar-event-card-BjdHZaqz.js";
12
13
  import { C as zi } from "./check-DrFSN__t.js";
13
14
  import { S as $i } from "./stethoscope-sZXGC43m.js";
14
15
  import { C as Pi } from "./clock-Drd4Wtis.js";
15
- import { createPortal as As } from "react-dom";
16
- import { N as Rs } from "./notes-panel-DYAtlq_i.js";
16
+ import { createPortal as Rs } from "react-dom";
17
+ import { N as Ls } from "./notes-panel-DYAtlq_i.js";
17
18
  import { A as Xt } from "./avatar-BNQNhoyL.js";
18
19
  import { E as Sa } from "./empty-state-X0sVPfVo.js";
19
20
  import { P as Dt } from "./panel-header-D313n_9-.js";
@@ -21,14 +22,14 @@ import { F as Q } from "./form-field-CahJzTxp.js";
21
22
  import { C as Ot } from "./combobox-D7_NLE2Z.js";
22
23
  import { R as Sn } from "./radio-TWf9Q-mp.js";
23
24
  import { R as ft } from "./radio-group-rXDJADzW.js";
24
- import { T as Ls } from "./text-input-CUvCb6ST.js";
25
+ import { T as Ms } from "./text-input-CUvCb6ST.js";
25
26
  import { T as Ga } from "./text-area-Bt3p7Pt0.js";
26
27
  import { N as Oa } from "./number-input-Cgu2TtA8.js";
27
- import { T as Ms } from "./time-picker-D0RS391l.js";
28
- import { a as Os, W as Bs } from "./whatsapp-button-CuFIHJzG.js";
29
- import { A as Ws } from "./appointment-card-Dzr3GeVz.js";
28
+ import { T as Os } from "./time-picker-D0RS391l.js";
29
+ import { a as Bs, W as Ws } from "./whatsapp-button-CuFIHJzG.js";
30
+ import { A as _s } from "./appointment-card-Dzr3GeVz.js";
30
31
  import { B as In } from "./badge-sTusUqZD.js";
31
- import { D as _s } from "./data-table-DC5rO3Ty.js";
32
+ import { D as zs } from "./data-table-DC5rO3Ty.js";
32
33
  import { C as qe } from "./checkbox-BuZ1u__2.js";
33
34
  import { T as fa } from "./tag-3wgkwwDB.js";
34
35
  import { D as ae } from "./dropdown-menu-DU-Hrf33.js";
@@ -39,7 +40,7 @@ import { B as Z } from "./button-nJaPh_HC.js";
39
40
  import { I as me } from "./icon-button-DA2CAGHZ.js";
40
41
  import { B as Ba } from "./button-group-CaxRJsNG.js";
41
42
  import { I as di } from "./icon-button-group-VCCod3Hz.js";
42
- import { C as zs, b as $s, a as Ps } from "./collapsible-CTjxzGuF.js";
43
+ import { C as $s, b as Ps, a as Fs } from "./collapsible-CTjxzGuF.js";
43
44
  import { D as Kn } from "./date-picker-CepI_oI2.js";
44
45
  import { D as J } from "./dialog-UbKJCi1X.js";
45
46
  import { P as ye } from "./popover-Cqcjx-Ny.js";
@@ -49,65 +50,65 @@ import { T as Kt } from "./timeline-r-8IUoBS.js";
49
50
  import { c as wn } from "./createLucideIcon-DhHxpK9K.js";
50
51
  import { N as ci } from "./notebook-pen-CO7HoM-W.js";
51
52
  import { C as Wa } from "./calendar-plus-BFrIRE4r.js";
52
- import { L as Fs } from "./lock-ClAFG1gy.js";
53
+ import { L as Hs } from "./lock-ClAFG1gy.js";
53
54
  import { G as Zt } from "./globe-sHBW1JN5.js";
54
55
  import { C as _a } from "./calendar-clock-hbObjfGY.js";
55
56
  import { T as It } from "./trash-2-uumy3fy1.js";
56
57
  import { P as Ka } from "./plus-DzMQ_c6b.js";
57
58
  import { V as Fi } from "./video-BheNGvsu.js";
58
- import { R as li, C as Hs } from "./receipt-euro-C6k4Gzhr.js";
59
- import { F as Vs } from "./folder-plus-CutOs4DP.js";
60
- import { F as Us } from "./file-text-5yv6r2ls.js";
61
- import { C as js } from "./camera-VSklPDCv.js";
62
- import { X as Gs } from "./x-B5YnXwCz.js";
59
+ import { R as li, C as Vs } from "./receipt-euro-C6k4Gzhr.js";
60
+ import { F as Us } from "./folder-plus-CutOs4DP.js";
61
+ import { F as js } from "./file-text-5yv6r2ls.js";
62
+ import { C as Gs } from "./camera-VSklPDCv.js";
63
+ import { X as Ks } from "./x-B5YnXwCz.js";
63
64
  import { C as ui } from "./copy-vRpqqHtY.js";
64
65
  import { P as qa } from "./pencil-B1sKKyuT.js";
65
- import { C as Ks } from "./clipboard-list-rSzfIYZB.js";
66
- import { P as qs } from "./pen-line-D0De5zdl.js";
67
- import { S as Ys } from "./send-C5kDJ-Mz.js";
66
+ import { C as qs } from "./clipboard-list-rSzfIYZB.js";
67
+ import { P as Ys } from "./pen-line-D0De5zdl.js";
68
+ import { S as Xs } from "./send-C5kDJ-Mz.js";
68
69
  import { M as Hi } from "./message-square-Bye4ATvx.js";
69
70
  import { M as Vi } from "./mail-BqXVF2zH.js";
70
- import { S as Xs } from "./smartphone-C0rFF2if.js";
71
- import { S as Qs } from "./signature-CpFNpsVK.js";
72
- import { M as Js } from "./map-pin-BaY37-Km.js";
73
- import { R as Zs } from "./refresh-cw-DnI0cLFC.js";
71
+ import { S as Qs } from "./smartphone-C0rFF2if.js";
72
+ import { S as Js } from "./signature-CpFNpsVK.js";
73
+ import { M as Zs } from "./map-pin-BaY37-Km.js";
74
+ import { R as er } from "./refresh-cw-DnI0cLFC.js";
74
75
  import { H as Ui } from "./heart-pulse-BCppJyN2.js";
75
76
  import { H as ea } from "./hourglass-BEAzW1wE.js";
76
77
  import { U as ji } from "./user-cog-BTn98Arm.js";
77
78
  import { A as Gi } from "./armchair-BaLDW6Hz.js";
78
- import { T as er } from "./triangle-alert-CBnO6nq_.js";
79
- import { R as nr } from "./repeat-CvQa5rZt.js";
80
- import { P as tr } from "./phone-FceYcIFQ.js";
81
- import { C as ar } from "./calendar-CHT9Rm3M.js";
82
- import { C as ir } from "./card-DPmk26CL.js";
83
- import { K as sr } from "./kbd-D855ZXIW.js";
84
- import { R as rr } from "./resource-chip-DYTG0IQQ.js";
85
- import { E as or } from "./eye-off-C_4xkbRP.js";
86
- import { E as dr } from "./eye-BjhN2nYf.js";
79
+ import { T as nr } from "./triangle-alert-CBnO6nq_.js";
80
+ import { R as tr } from "./repeat-CvQa5rZt.js";
81
+ import { P as ar } from "./phone-FceYcIFQ.js";
82
+ import { C as ir } from "./calendar-CHT9Rm3M.js";
83
+ import { C as sr } from "./card-DPmk26CL.js";
84
+ import { K as rr } from "./kbd-D855ZXIW.js";
85
+ import { R as or } from "./resource-chip-DYTG0IQQ.js";
86
+ import { E as dr } from "./eye-off-C_4xkbRP.js";
87
+ import { E as cr } from "./eye-BjhN2nYf.js";
87
88
  import { P as hi } from "./printer-rkK0T1gi.js";
88
- import { S as cr } from "./settings-d25ju_6L.js";
89
- import { R as lr } from "./rotate-ccw-BBQnIVTr.js";
90
- import { C as ur } from "./chevron-down-DWE7GSq9.js";
91
- import { C as hr } from "./chevron-left-B8cOyH-V.js";
92
- import { C as mr } from "./chevron-right-I9AeSxH2.js";
93
- import { C as pr } from "./calendar-days-BGWklvE-.js";
89
+ import { S as lr } from "./settings-d25ju_6L.js";
90
+ import { R as ur } from "./rotate-ccw-BBQnIVTr.js";
91
+ import { C as hr } from "./chevron-down-DWE7GSq9.js";
92
+ import { C as mr } from "./chevron-left-B8cOyH-V.js";
93
+ import { C as pr } from "./chevron-right-I9AeSxH2.js";
94
+ import { C as gr } from "./calendar-days-BGWklvE-.js";
94
95
  /**
95
96
  * @license lucide-react v1.22.0 - ISC
96
97
  *
97
98
  * This source code is licensed under the ISC license.
98
99
  * See the LICENSE file in the root directory of this source tree.
99
100
  */
100
- const gr = [
101
+ const vr = [
101
102
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
102
103
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
103
- ], va = wn("arrow-left", gr);
104
+ ], va = wn("arrow-left", vr);
104
105
  /**
105
106
  * @license lucide-react v1.22.0 - ISC
106
107
  *
107
108
  * This source code is licensed under the ISC license.
108
109
  * See the LICENSE file in the root directory of this source tree.
109
110
  */
110
- const vr = [
111
+ const fr = [
111
112
  ["path", { d: "m15.228 16.852-.923-.383", key: "npixar" }],
112
113
  ["path", { d: "m15.228 19.148-.923.383", key: "51cr3n" }],
113
114
  ["path", { d: "M16 2v4", key: "4m81vk" }],
@@ -121,41 +122,41 @@ const vr = [
121
122
  ["path", { d: "M3 10h18", key: "8toen8" }],
122
123
  ["path", { d: "M8 2v4", key: "1cmpym" }],
123
124
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
124
- ], fr = wn("calendar-cog", vr);
125
+ ], br = wn("calendar-cog", fr);
125
126
  /**
126
127
  * @license lucide-react v1.22.0 - ISC
127
128
  *
128
129
  * This source code is licensed under the ISC license.
129
130
  * See the LICENSE file in the root directory of this source tree.
130
131
  */
131
- const br = [
132
+ const Ir = [
132
133
  ["path", { d: "M16 2v4", key: "4m81vk" }],
133
134
  ["path", { d: "M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25", key: "1jrsq6" }],
134
135
  ["path", { d: "m22 22-1.875-1.875", key: "13zax7" }],
135
136
  ["path", { d: "M3 10h18", key: "8toen8" }],
136
137
  ["path", { d: "M8 2v4", key: "1cmpym" }],
137
138
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
138
- ], Ya = wn("calendar-search", br);
139
+ ], Ya = wn("calendar-search", Ir);
139
140
  /**
140
141
  * @license lucide-react v1.22.0 - ISC
141
142
  *
142
143
  * This source code is licensed under the ISC license.
143
144
  * See the LICENSE file in the root directory of this source tree.
144
145
  */
145
- const Ir = [
146
+ const kr = [
146
147
  ["path", { d: "M11 14h10", key: "1w8e9d" }],
147
148
  ["path", { d: "M16 4h2a2 2 0 0 1 2 2v1.344", key: "1e62lh" }],
148
149
  ["path", { d: "m17 18 4-4-4-4", key: "z2g111" }],
149
150
  ["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" }],
150
151
  ["rect", { x: "8", y: "2", width: "8", height: "4", rx: "1", key: "ublpy" }]
151
- ], mi = wn("clipboard-paste", Ir);
152
+ ], mi = wn("clipboard-paste", kr);
152
153
  /**
153
154
  * @license lucide-react v1.22.0 - ISC
154
155
  *
155
156
  * This source code is licensed under the ISC license.
156
157
  * See the LICENSE file in the root directory of this source tree.
157
158
  */
158
- const kr = [
159
+ const yr = [
159
160
  [
160
161
  "path",
161
162
  {
@@ -166,14 +167,14 @@ const kr = [
166
167
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
167
168
  ["path", { d: "M9 15h6", key: "cctwl0" }],
168
169
  ["path", { d: "M12 18v-6", key: "17g6i2" }]
169
- ], pi = wn("file-plus", kr);
170
+ ], pi = wn("file-plus", yr);
170
171
  /**
171
172
  * @license lucide-react v1.22.0 - ISC
172
173
  *
173
174
  * This source code is licensed under the ISC license.
174
175
  * See the LICENSE file in the root directory of this source tree.
175
176
  */
176
- const yr = [
177
+ const Cr = [
177
178
  [
178
179
  "path",
179
180
  {
@@ -181,14 +182,14 @@ const yr = [
181
182
  key: "sc7q7i"
182
183
  }
183
184
  ]
184
- ], Ki = wn("funnel", yr);
185
+ ], Ki = wn("funnel", Cr);
185
186
  /**
186
187
  * @license lucide-react v1.22.0 - ISC
187
188
  *
188
189
  * This source code is licensed under the ISC license.
189
190
  * See the LICENSE file in the root directory of this source tree.
190
191
  */
191
- const Cr = [
192
+ const Dr = [
192
193
  [
193
194
  "path",
194
195
  {
@@ -198,65 +199,65 @@ const Cr = [
198
199
  ],
199
200
  ["path", { d: "M22 10v6", key: "1lu8f3" }],
200
201
  ["path", { d: "M6 12.5V16a6 3 0 0 0 12 0v-3.5", key: "1r8lef" }]
201
- ], Dr = wn("graduation-cap", Cr);
202
+ ], Nr = wn("graduation-cap", Dr);
202
203
  /**
203
204
  * @license lucide-react v1.22.0 - ISC
204
205
  *
205
206
  * This source code is licensed under the ISC license.
206
207
  * See the LICENSE file in the root directory of this source tree.
207
208
  */
208
- const Nr = [
209
+ const xr = [
209
210
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
210
211
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
211
212
  ["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
212
- ], gi = wn("history", Nr);
213
+ ], gi = wn("history", xr);
213
214
  /**
214
215
  * @license lucide-react v1.22.0 - ISC
215
216
  *
216
217
  * This source code is licensed under the ISC license.
217
218
  * See the LICENSE file in the root directory of this source tree.
218
219
  */
219
- const xr = [
220
+ const Sr = [
220
221
  ["path", { d: "M16 10h2", key: "8sgtl7" }],
221
222
  ["path", { d: "M16 14h2", key: "epxaof" }],
222
223
  ["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
223
224
  ["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
224
225
  ["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
225
- ], Sr = wn("id-card", xr);
226
+ ], wr = wn("id-card", Sr);
226
227
  /**
227
228
  * @license lucide-react v1.22.0 - ISC
228
229
  *
229
230
  * This source code is licensed under the ISC license.
230
231
  * See the LICENSE file in the root directory of this source tree.
231
232
  */
232
- const wr = [
233
+ const Tr = [
233
234
  ["path", { d: "M16 5H3", key: "m91uny" }],
234
235
  ["path", { d: "M11 12H3", key: "51ecnj" }],
235
236
  ["path", { d: "M16 19H3", key: "zzsher" }],
236
237
  ["path", { d: "M18 9v6", key: "1twb98" }],
237
238
  ["path", { d: "M21 12h-6", key: "bt1uis" }]
238
- ], Tr = wn("list-plus", wr);
239
+ ], Er = wn("list-plus", Tr);
239
240
  /**
240
241
  * @license lucide-react v1.22.0 - ISC
241
242
  *
242
243
  * This source code is licensed under the ISC license.
243
244
  * See the LICENSE file in the root directory of this source tree.
244
245
  */
245
- const Er = [
246
+ const Ar = [
246
247
  ["path", { d: "M12 2v20", key: "t6zp3m" }],
247
248
  ["path", { d: "m15 19-3 3-3-3", key: "11eu04" }],
248
249
  ["path", { d: "m19 9 3 3-3 3", key: "1mg7y2" }],
249
250
  ["path", { d: "M2 12h20", key: "9i4pu4" }],
250
251
  ["path", { d: "m5 9-3 3 3 3", key: "j64kie" }],
251
252
  ["path", { d: "m9 5 3-3 3 3", key: "l8vdw6" }]
252
- ], vi = wn("move", Er);
253
+ ], vi = wn("move", Ar);
253
254
  /**
254
255
  * @license lucide-react v1.22.0 - ISC
255
256
  *
256
257
  * This source code is licensed under the ISC license.
257
258
  * See the LICENSE file in the root directory of this source tree.
258
259
  */
259
- const Ar = [
260
+ const Rr = [
260
261
  [
261
262
  "path",
262
263
  {
@@ -266,14 +267,14 @@ const Ar = [
266
267
  ],
267
268
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
268
269
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
269
- ], Xa = wn("save", Ar);
270
+ ], Xa = wn("save", Rr);
270
271
  /**
271
272
  * @license lucide-react v1.22.0 - ISC
272
273
  *
273
274
  * This source code is licensed under the ISC license.
274
275
  * See the LICENSE file in the root directory of this source tree.
275
276
  */
276
- const Rr = [
277
+ const Lr = [
277
278
  ["path", { d: "M10 5H3", key: "1qgfaw" }],
278
279
  ["path", { d: "M12 19H3", key: "yhmn1j" }],
279
280
  ["path", { d: "M14 3v4", key: "1sua03" }],
@@ -283,8 +284,8 @@ const Rr = [
283
284
  ["path", { d: "M21 5h-7", key: "1oszz2" }],
284
285
  ["path", { d: "M8 10v4", key: "tgpxqk" }],
285
286
  ["path", { d: "M8 12H3", key: "a7s4jb" }]
286
- ], Lr = wn("sliders-horizontal", Rr), qi = Bi(null);
287
- function Mr({
287
+ ], Mr = wn("sliders-horizontal", Lr), qi = Bi(null);
288
+ function Or({
288
289
  value: e,
289
290
  children: t
290
291
  }) {
@@ -298,7 +299,7 @@ function Tn() {
298
299
  );
299
300
  return e;
300
301
  }
301
- const Yi = Bi(null), Or = Yi.Provider;
302
+ const Yi = Bi(null), Br = Yi.Provider;
302
303
  function wa() {
303
304
  const e = Oi(Yi);
304
305
  if (!e)
@@ -314,7 +315,7 @@ const Ra = /* @__PURE__ */ new Map(), Qa = {
314
315
  Ra.clear();
315
316
  }
316
317
  };
317
- function El() {
318
+ function Rl() {
318
319
  Qa.clear();
319
320
  }
320
321
  const Lt = {
@@ -355,7 +356,7 @@ function Xi(e) {
355
356
  return i;
356
357
  };
357
358
  }
358
- const Br = "grp-none";
359
+ const Wr = "grp-none";
359
360
  function Qi(e) {
360
361
  const t = new Map(e.operators.map((d) => [d.id, d])), a = new Set(e.inactiveIds), i = (d) => d.sequenceNumber ?? Number.MAX_SAFE_INTEGER, c = (d) => [...d].sort((f, p) => {
361
362
  const x = Number(a.has(f.id)) - Number(a.has(p.id));
@@ -371,7 +372,7 @@ function Qi(e) {
371
372
  }
372
373
  const h = e.operators.filter((d) => !r.has(d.id));
373
374
  return h.length > 0 && u.push({
374
- id: Br,
375
+ id: Wr,
375
376
  name: e.withoutGroupLabel,
376
377
  operators: c(h)
377
378
  }), u.sort((d, f) => d.name.localeCompare(f.name, e.locale));
@@ -394,7 +395,7 @@ function ka(e, t) {
394
395
  );
395
396
  return r.length > 0 ? r.join(" / ") : void 0;
396
397
  }
397
- function Wr(e) {
398
+ function _r(e) {
398
399
  return ka({ cares: e }, "name") ?? "";
399
400
  }
400
401
  function kt(e, t, a) {
@@ -412,7 +413,7 @@ function kt(e, t, a) {
412
413
  return;
413
414
  }
414
415
  }
415
- function _r(e) {
416
+ function zr(e) {
416
417
  return e.phones ?? [{ label: "mobile", number: e.phone }];
417
418
  }
418
419
  const yt = {
@@ -426,7 +427,7 @@ const yt = {
426
427
  function La(e) {
427
428
  return !!(e.isTask || e.isInternal || !e.patientId);
428
429
  }
429
- const Al = [
430
+ const Ll = [
430
431
  { id: "day", stem: "Day" },
431
432
  { id: "threeDays", stem: "ThreeDays" },
432
433
  { id: "workingWeek", stem: "Week", workingWeek: !0 },
@@ -456,21 +457,21 @@ const Al = [
456
457
  careDescription: it(["off", "name", "code", "nameCode"]),
457
458
  colorAssociation: it(["care", "operator", "chair"])
458
459
  };
459
- function zr(e, t, a) {
460
+ function $r(e, t, a) {
460
461
  const i = Ji[t](a);
461
462
  i !== void 0 && (e[t] = i);
462
463
  }
463
- function $r(e) {
464
+ function Pr(e) {
464
465
  if (!e || typeof e != "object") return;
465
466
  const t = e, a = { ...Ja };
466
467
  for (const i of Object.keys(Ji))
467
- zr(a, i, t[i]);
468
+ $r(a, i, t[i]);
468
469
  return a;
469
470
  }
470
- function Pr(e) {
471
+ function Fr(e) {
471
472
  return Xi(e.chairs);
472
473
  }
473
- function Fr(e) {
474
+ function Hr(e) {
474
475
  return Xi(e.operators);
475
476
  }
476
477
  function za(e, t) {
@@ -511,13 +512,13 @@ function on(e, t) {
511
512
  return "";
512
513
  }
513
514
  }
514
- function Hr(e, t) {
515
+ function Vr(e, t) {
515
516
  const a = new Date(e), i = new Date(t.nowIso);
516
517
  let c = i.getFullYear() - a.getFullYear();
517
518
  const r = i.getMonth() - a.getMonth();
518
519
  return (r < 0 || r === 0 && i.getDate() < a.getDate()) && (c -= 1), Math.max(0, c);
519
520
  }
520
- const Vr = 100, Ur = [
521
+ const Ur = 100, jr = [
521
522
  "daily",
522
523
  "weekly",
523
524
  "monthly",
@@ -532,7 +533,7 @@ const Vr = 100, Ur = [
532
533
  semiannual: "recurrenceSemiannual",
533
534
  yearly: "recurrenceYearly"
534
535
  };
535
- function jr(e, t) {
536
+ function Gr(e, t) {
536
537
  const a = new Date(e), i = a.getDate();
537
538
  a.setDate(1), a.setMonth(a.getMonth() + t);
538
539
  const c = new Date(a.getFullYear(), a.getMonth() + 1, 0).getDate();
@@ -559,19 +560,19 @@ function Za(e) {
559
560
  status: e.event.status
560
561
  };
561
562
  }
562
- const Gr = "00:15", Ce = "none", Ma = [15, 30, 45, 60, 90, 120];
563
- function Kr(e, t) {
563
+ const Kr = "00:15", Ce = "none", Ma = [15, 30, 45, 60, 90, 120];
564
+ function qr(e, t) {
564
565
  const a = t.replace(/\D/g, "");
565
566
  return a.length === 0 || e.replace(/\D/g, "").startsWith(a) ? 1 : 0;
566
567
  }
567
- function qr(e, t, a) {
568
+ function Yr(e, t, a) {
568
569
  return e != null && e.editEventId && e.colorHex ? e.colorHex : (t === "care" ? (e == null ? void 0 : e.colorHex) ?? kt("care", { cares: e == null ? void 0 : e.cares }, a) : kt(
569
570
  t,
570
571
  { operatorId: e == null ? void 0 : e.operatorId, chairId: e == null ? void 0 : e.chairId },
571
572
  a
572
573
  ) ?? (e == null ? void 0 : e.colorHex)) ?? Qt[6].hex;
573
574
  }
574
- function Yr(e) {
575
+ function Xr(e) {
575
576
  var a;
576
577
  const t = {};
577
578
  for (const i of e) {
@@ -584,7 +585,7 @@ function Yr(e) {
584
585
  i.sort((c, r) => c.startIso.localeCompare(r.startIso));
585
586
  return t;
586
587
  }
587
- function Xr(e, t) {
588
+ function Qr(e, t) {
588
589
  if (!e) return {};
589
590
  const a = [];
590
591
  if (e.kind === "plan") {
@@ -620,17 +621,17 @@ const ya = {
620
621
  hour: "2-digit",
621
622
  minute: "2-digit"
622
623
  };
623
- function Qr(e) {
624
+ function Jr(e) {
624
625
  return [...e].sort((t, a) => a.atIso.localeCompare(t.atIso));
625
626
  }
626
- function Jr(e) {
627
+ function Zr(e) {
627
628
  const t = e.filter((a) => {
628
- const i = Ds(a.operator, a.patient);
629
+ const i = Ns(a.operator, a.patient);
629
630
  return i !== "signed" && i !== "notRequired";
630
631
  }).length;
631
632
  return { toSign: t, allSigned: e.length > 0 && t === 0 };
632
633
  }
633
- function Zr(e, t, a) {
634
+ function eo(e, t, a) {
634
635
  const i = [];
635
636
  t.status && e.event.status && t.status !== e.event.status && i.push({ kind: "status", from: e.event.status, to: t.status });
636
637
  const c = [];
@@ -651,45 +652,45 @@ function Zr(e, t, a) {
651
652
  const h = t.careLink ? a.careEntriesFromLink(t.careLink) : t.cares ?? e.cares;
652
653
  return ka({ description: t.care, cares: h }, "name") !== ka({ description: e.description, cares: e.cares }, "name") && c.push("care"), t.operatorId !== e.operatorId && c.push("operator"), t.chairId !== e.chairId && c.push("chair"), t.colorHex.toLowerCase() !== (e.event.backgroundColor ?? "").toLowerCase() && c.push("colour"), c.length > 0 && i.push({ kind: "edited", fields: c }), i;
653
654
  }
654
- const eo = {};
655
+ const no = {};
655
656
  function bi(e, t) {
656
657
  var i, c;
657
658
  const a = e ? (i = t.patientById(e)) == null ? void 0 : i.priceList : void 0;
658
659
  return ((c = t.priceLists.find((r) => r.name === a)) == null ? void 0 : c.id) ?? t.priceLists[0].id;
659
660
  }
660
661
  const Jt = {
661
- confirmed: { variant: "success", Icon: ws },
662
+ confirmed: { variant: "success", Icon: Ts },
662
663
  waiting: { variant: "info", Icon: Pi },
663
664
  in_care: { variant: "accentSoft", Icon: $i },
664
665
  done: { variant: "success", Icon: zi },
665
- cancelled: { variant: "error", Icon: Ss },
666
- absent: { variant: "warning", Icon: xs }
666
+ cancelled: { variant: "error", Icon: ws },
667
+ absent: { variant: "warning", Icon: Ss }
667
668
  };
668
669
  function $a(e) {
669
670
  return new Date(e.length === 10 ? `${e}T00:00:00` : e).getTime();
670
671
  }
671
- function no(e, t) {
672
+ function to(e, t) {
672
673
  return e.appointmentId ? t.baseEvents.find((a) => a.event.id === e.appointmentId) : void 0;
673
674
  }
674
- const to = [
675
+ const ao = [
675
676
  "all",
676
677
  "noAppointment",
677
678
  "scheduledOver30",
678
679
  "waitingOver30"
679
- ], ao = {
680
+ ], io = {
680
681
  all: "quickViewAll",
681
682
  noAppointment: "quickViewNoAppointment",
682
683
  scheduledOver30: "quickViewScheduledOver30",
683
684
  waitingOver30: "quickViewWaitingOver30"
684
- }, io = 30;
685
- function so(e, t, a) {
685
+ }, so = 30;
686
+ function ro(e, t, a) {
686
687
  if (t === "all") return !0;
687
688
  if (t === "noAppointment")
688
689
  return !e.appointmentId && !!e.patientId;
689
- const i = io * 864e5, c = new Date(a.nowIso).getTime();
690
+ const i = so * 864e5, c = new Date(a.nowIso).getTime();
690
691
  if (t === "waitingOver30")
691
692
  return c - $a(a.waitingSinceIso(e)) > i;
692
- const r = no(e, a);
693
+ const r = to(e, a);
693
694
  return r ? c - $a(String(r.event.start)) > i : !1;
694
695
  }
695
696
  function ns(e, t) {
@@ -703,7 +704,7 @@ function ns(e, t) {
703
704
  callToAction: "processBooking"
704
705
  };
705
706
  }
706
- function ro(e, t) {
707
+ function oo(e, t) {
707
708
  switch (e) {
708
709
  case "processBooking":
709
710
  return !!(t.patientId && t.operatorId);
@@ -713,12 +714,12 @@ function ro(e, t) {
713
714
  return !0;
714
715
  }
715
716
  }
716
- function oo(e) {
717
+ function co(e) {
717
718
  var t;
718
719
  return !!e.patientId || !!((t = e.description) != null && t.trim());
719
720
  }
720
- const bn = "any", Ii = 20, co = 30, lo = 185;
721
- function uo(e, t) {
721
+ const bn = "any", Ii = 20, lo = 30, uo = 185;
722
+ function ho(e, t) {
722
723
  return Math.round((t.getTime() - e.getTime()) / 864e5);
723
724
  }
724
725
  function _n(e) {
@@ -730,12 +731,12 @@ function ki(e) {
730
731
  const t = [];
731
732
  return e.startMin > 0 && t.push({ startMin: 0, endMin: e.startMin }), e.endMin < 1440 && t.push({ startMin: e.endMin, endMin: 1440 }), t;
732
733
  }
733
- function ho(e, t) {
734
+ function mo(e, t) {
734
735
  if (!e || !t) return;
735
736
  const a = Math.max(e.startMin, t.startMin), i = Math.min(e.endMin, t.endMin);
736
737
  return a < i ? { startMin: a, endMin: i } : void 0;
737
738
  }
738
- function mo(e, t) {
739
+ function po(e, t) {
739
740
  var u, h;
740
741
  const a = [], i = (d, f, p) => {
741
742
  const x = _n(d);
@@ -784,7 +785,7 @@ function mo(e, t) {
784
785
  }
785
786
  i(
786
787
  c,
787
- ho(
788
+ mo(
788
789
  d,
789
790
  (h = t.businessHours.operators[p]) == null ? void 0 : h[c.getDay()]
790
791
  ),
@@ -796,11 +797,11 @@ function mo(e, t) {
796
797
  }
797
798
  return a;
798
799
  }
799
- const po = "var(--warning)";
800
+ const go = "var(--warning)";
800
801
  function Pa(e) {
801
802
  return e.id.startsWith("closure-");
802
803
  }
803
- function go(e, t) {
804
+ function vo(e, t) {
804
805
  var d;
805
806
  const a = [], i = Qt[10], c = (f, p, x, E, S) => {
806
807
  a.push({
@@ -837,7 +838,7 @@ function go(e, t) {
837
838
  f,
838
839
  e.labels.holiday(p.name),
839
840
  {
840
- backgroundColor: po
841
+ backgroundColor: go
841
842
  },
842
843
  x
843
844
  );
@@ -860,10 +861,10 @@ function Ca(e) {
860
861
  function ts(e, t) {
861
862
  return t ? e.privacyModeTitle ?? "•••" : e.title;
862
863
  }
863
- function vo(e, t, a) {
864
+ function fo(e, t, a) {
864
865
  const { event: i } = e, c = i.patientId ? a.patientById(String(i.patientId)) : void 0, r = a.bookingContacts[i.id];
865
866
  let u = [];
866
- return !t && c ? u = _r(c) : !t && r && (u = [{ label: "mobile", number: r.phone }]), {
867
+ return !t && c ? u = zr(c) : !t && r && (u = [{ label: "mobile", number: r.phone }]), {
867
868
  id: i.id,
868
869
  start: Ca(i.start),
869
870
  end: i.end ? Ca(i.end) : void 0,
@@ -878,10 +879,10 @@ function vo(e, t, a) {
878
879
  unassigned: i.hasUnassignedPatient === !0
879
880
  };
880
881
  }
881
- function fo(e, t) {
882
+ function bo(e, t) {
882
883
  return e.allDay !== t.allDay ? e.allDay ? -1 : 1 : e.start.getTime() - t.start.getTime();
883
884
  }
884
- function bo(e, t) {
885
+ function Io(e, t) {
885
886
  const { rows: a, days: i, axisKind: c, visibleChairIds: r, visibleOperatorIds: u, privacy: h } = e, d = a.filter(
886
887
  (x) => (!x.chairId || r.includes(x.chairId)) && (!x.operatorId || u.includes(x.operatorId))
887
888
  ), f = t.chairs.filter((x) => r.includes(x.id)), p = t.operators.filter(
@@ -892,7 +893,7 @@ function bo(e, t) {
892
893
  (y) => _n(Ca(y.event.start)) === E
893
894
  ), D = S.filter(
894
895
  (y) => !y.event.isTask && !y.event.isInternal && !y.event.isDraft && !Pa(y.event)
895
- ).map((y) => vo(y, h, t)).sort(fo);
896
+ ).map((y) => fo(y, h, t)).sort(bo);
896
897
  let B;
897
898
  if (c === "chair")
898
899
  B = f.map((y) => ({
@@ -932,16 +933,16 @@ function bo(e, t) {
932
933
  return { date: x, groups: B, tasks: j, notes: P };
933
934
  });
934
935
  }
935
- const Io = 26, ko = 10, yo = 22, yi = "ds:[--ag-cell-horizontal-padding:var(--spacing-sm)]";
936
+ const ko = 26, yo = 10, Co = 22, yi = "ds:[--ag-cell-horizontal-padding:var(--spacing-sm)]";
936
937
  function Ci(e, t = 1) {
937
- const a = 1 + e.phones.length + (e.unassigned ? 2 : 0), i = (e.description ? Math.ceil(e.description.length / yo) : 0) + e.careLines.reduce(
938
+ const a = 1 + e.phones.length + (e.unassigned ? 2 : 0), i = (e.description ? Math.ceil(e.description.length / Co) : 0) + e.careLines.reduce(
938
939
  (c, r) => {
939
940
  var u;
940
941
  return c + 1 + ((u = r.elements) != null && u.length ? 1 : 0);
941
942
  },
942
943
  0
943
944
  );
944
- return ko + Io * Math.max(a, i, t, 1);
945
+ return yo + ko * Math.max(a, i, t, 1);
945
946
  }
946
947
  function Fa(e, t, a, i, c) {
947
948
  var u;
@@ -961,7 +962,7 @@ function Fa(e, t, a, i, c) {
961
962
  });
962
963
  }
963
964
  }
964
- function Co(e, t) {
965
+ function Do(e, t) {
965
966
  const a = e.durationMin, i = e.rows.filter((h) => !h.event.allDay && h.event.end).map((h) => ({
966
967
  chairId: h.chairId,
967
968
  operatorId: h.event.isTask ? void 0 : h.operatorId,
@@ -981,7 +982,7 @@ function Co(e, t) {
981
982
  );
982
983
  for (const p of e.chairs)
983
984
  for (const x of f)
984
- for (let E = d.startMin; E + a <= d.endMin; E += co) {
985
+ for (let E = d.startMin; E + a <= d.endMin; E += lo) {
985
986
  const S = new Date(r);
986
987
  S.setHours(Math.floor(E / 60), E % 60, 0, 0);
987
988
  const D = S.getTime(), B = D + a * 6e4;
@@ -1012,7 +1013,7 @@ const U = {
1012
1013
  U.bookings,
1013
1014
  U.findSlots
1014
1015
  ];
1015
- function Do(e) {
1016
+ function No(e) {
1016
1017
  const t = new Set(
1017
1018
  ei.filter((a) => e.includes(a))
1018
1019
  );
@@ -1023,7 +1024,7 @@ const ni = [
1023
1024
  "threeDays",
1024
1025
  "week",
1025
1026
  "month"
1026
- ], No = {
1027
+ ], xo = {
1027
1028
  day: "Day",
1028
1029
  threeDays: "ThreeDays",
1029
1030
  week: "Week",
@@ -1033,12 +1034,12 @@ const ni = [
1033
1034
  threeDays: "X",
1034
1035
  week: "W",
1035
1036
  month: "M"
1036
- }, xo = it(ni);
1037
- function So(e) {
1037
+ }, So = it(ni);
1038
+ function wo(e) {
1038
1039
  const t = e.toUpperCase();
1039
1040
  return ni.find((a) => as[a] === t);
1040
1041
  }
1041
- const wo = [
1042
+ const To = [
1042
1043
  "input",
1043
1044
  "textarea",
1044
1045
  "select",
@@ -1052,14 +1053,14 @@ const wo = [
1052
1053
  '[role="dialog"]',
1053
1054
  '[role="alertdialog"]'
1054
1055
  ].join(", ");
1055
- function To(e) {
1056
- return e instanceof Element ? e.closest(wo) === null : !0;
1057
- }
1058
1056
  function Eo(e) {
1059
- if (!(e.defaultPrevented || e.repeat) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) && To(e.target))
1060
- return So(e.key);
1057
+ return e instanceof Element ? e.closest(To) === null : !0;
1061
1058
  }
1062
1059
  function Ao(e) {
1060
+ if (!(e.defaultPrevented || e.repeat) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) && Eo(e.target))
1061
+ return wo(e.key);
1062
+ }
1063
+ function Ro(e) {
1063
1064
  return e ? [] : [0, 6];
1064
1065
  }
1065
1066
  const bt = { min: 5, max: 240, step: 5 }, Da = {
@@ -1071,26 +1072,26 @@ const bt = { min: 5, max: 240, step: 5 }, Da = {
1071
1072
  operatorNameDisplay: "initials",
1072
1073
  chairNameDisplay: "full",
1073
1074
  mapsLink: !1
1074
- }, Ro = it([
1075
+ }, Lo = it([
1075
1076
  "full",
1076
1077
  "initials"
1077
- ]), Lo = it(["full", "short"]);
1078
- function Mo(e) {
1078
+ ]), Mo = it(["full", "short"]);
1079
+ function Oo(e) {
1079
1080
  if (typeof e != "number" || !Number.isFinite(e)) return;
1080
1081
  const t = Math.round(e);
1081
1082
  return t >= bt.min && t <= bt.max ? t : void 0;
1082
1083
  }
1083
1084
  function is(e) {
1084
1085
  if (!e || typeof e != "object") return;
1085
- const t = e, a = $r(e) ?? { ...Ja }, i = {
1086
+ const t = e, a = Pr(e) ?? { ...Ja }, i = {
1086
1087
  ...Da,
1087
1088
  ...a,
1088
1089
  window: t.window === void 0 ? Da.window : a.window
1089
- }, c = Mo(t.defaultDurationMin);
1090
+ }, c = Oo(t.defaultDurationMin);
1090
1091
  c !== void 0 && (i.defaultDurationMin = c);
1091
- const r = Ro(t.operatorNameDisplay);
1092
+ const r = Lo(t.operatorNameDisplay);
1092
1093
  r !== void 0 && (i.operatorNameDisplay = r);
1093
- const u = Lo(t.chairNameDisplay);
1094
+ const u = Mo(t.chairNameDisplay);
1094
1095
  u !== void 0 && (i.chairNameDisplay = u);
1095
1096
  const h = Ia(t.mapsLink);
1096
1097
  return h !== void 0 && (i.mapsLink = h), i;
@@ -1107,7 +1108,7 @@ function ss(e) {
1107
1108
  const a = Math.min(...t.map((c) => c.startMin)), i = Math.max(...t.map((c) => c.endMin));
1108
1109
  return { min: Di(a), max: Di(i) };
1109
1110
  }
1110
- function Oo(e, t) {
1111
+ function Bo(e, t) {
1111
1112
  return e === "working" ? ss(t) : Zi[e];
1112
1113
  }
1113
1114
  function Ni(e, t) {
@@ -1116,10 +1117,10 @@ function Ni(e, t) {
1116
1117
  function Mt(e, t, a) {
1117
1118
  return a === !0 ? [...e, ...t.filter((i) => !e.includes(i))] : e.filter((i) => !t.includes(i));
1118
1119
  }
1119
- function Bo(e, t) {
1120
+ function Wo(e, t) {
1120
1121
  return e.length + t.length;
1121
1122
  }
1122
- function Wo(e, t, a) {
1123
+ function _o(e, t, a) {
1123
1124
  if (!a) return [];
1124
1125
  const i = new Set(t), c = /* @__PURE__ */ new Set();
1125
1126
  for (const r of e) {
@@ -1130,19 +1131,19 @@ function Wo(e, t, a) {
1130
1131
  }
1131
1132
  return t.filter((r) => c.has(r));
1132
1133
  }
1133
- function _o(e) {
1134
+ function zo(e) {
1134
1135
  const t = new Set(e.inactiveIds), a = new Set(e.keepIds);
1135
1136
  return e.operators.filter((i) => !t.has(i.id) || e.showDisabled || a.has(i.id)).map((i) => i.id);
1136
1137
  }
1137
- function zo(e, t, a) {
1138
+ function $o(e, t, a) {
1138
1139
  if (a) return [...e];
1139
1140
  const i = new Set(t);
1140
1141
  return e.filter((c) => !i.has(c.id));
1141
1142
  }
1142
- function $o(e, t) {
1143
+ function Po(e, t) {
1143
1144
  return t === "full" ? e.title : e.shortTitle ?? e.title.replace(/\s+/g, "").slice(0, 2);
1144
1145
  }
1145
- function Po(e, t, a) {
1146
+ function Fo(e, t, a) {
1146
1147
  return t ? `${e.title} · ${a}` : e.title;
1147
1148
  }
1148
1149
  function ma(e, t) {
@@ -1178,7 +1179,7 @@ function Ua(e, t, a) {
1178
1179
  return (((h = r.series) == null ? void 0 : h.index) ?? 0) - (((d = u.series) == null ? void 0 : d.index) ?? 0);
1179
1180
  }).map((r) => r.event.id);
1180
1181
  }
1181
- function Fo(e, t) {
1182
+ function Ho(e, t) {
1182
1183
  const a = t.start.getTime(), i = t.end.getTime();
1183
1184
  let c = !1, r = !1;
1184
1185
  for (const u of e) {
@@ -1189,7 +1190,7 @@ function Fo(e, t) {
1189
1190
  }
1190
1191
  return { chairBusy: c, operatorBusy: r };
1191
1192
  }
1192
- function Ho(e, t) {
1193
+ function Vo(e, t) {
1193
1194
  const a = [];
1194
1195
  for (const i of e ?? [])
1195
1196
  for (const c of i.careId ? t[i.careId] ?? [] : [])
@@ -1206,28 +1207,28 @@ function Si(e) {
1206
1207
  const t = rs(e);
1207
1208
  return t.sms ? "sms" : t.email ? "email" : "none";
1208
1209
  }
1209
- function Vo(e) {
1210
+ function Uo(e) {
1210
1211
  const t = [e.address, e.postalCode, e.city].filter(Boolean).join(", ");
1211
1212
  return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t)}`;
1212
1213
  }
1213
- const Uo = [
1214
+ const jo = [
1214
1215
  ...new Set(
1215
- Cs.map((e) => e.textColor).filter(
1216
+ Ds.map((e) => e.textColor).filter(
1216
1217
  (e) => !!e
1217
1218
  )
1218
1219
  )
1219
1220
  ];
1220
- function jo(e) {
1221
+ function Go(e) {
1221
1222
  if (!e) return;
1222
1223
  const t = oi(e);
1223
1224
  let a, i = 0;
1224
- for (const c of Uo) {
1225
- const r = ys(oi(c), t);
1225
+ for (const c of jo) {
1226
+ const r = Cs(oi(c), t);
1226
1227
  r > i && (i = r, a = c);
1227
1228
  }
1228
1229
  return a;
1229
1230
  }
1230
- function Go(e, t, a, i) {
1231
+ function Ko(e, t, a, i) {
1231
1232
  const c = new Date(e.event.start), r = e.event.end ? new Date(e.event.end) : void 0, u = r ? r.getTime() - c.getTime() : 0, h = (S) => String(S).padStart(2, "0"), d = new Date(t.start), f = e.event.allDay ? `${d.getFullYear()}-${h(d.getMonth() + 1)}-${h(d.getDate())}` : d.toISOString(), p = e.event.allDay || !r ? void 0 : new Date(d.getTime() + u).toISOString(), x = t.axisKind === "chair" && t.resourceId ? { chairId: t.resourceId } : t.axisKind === "operator" && t.resourceId ? { operatorId: t.resourceId } : {};
1232
1233
  return {
1233
1234
  event: {
@@ -1249,7 +1250,7 @@ function Go(e, t, a, i) {
1249
1250
  series: void 0
1250
1251
  };
1251
1252
  }
1252
- function Ko(e, t, a, i, c) {
1253
+ function qo(e, t, a, i, c) {
1253
1254
  if (i.length === 0 || a.allDay) return [...e];
1254
1255
  const r = new Date(t.event.start), u = new Date(a.date);
1255
1256
  u.setHours(a.time.hours, a.time.minutes, 0, 0);
@@ -1275,35 +1276,35 @@ function Ko(e, t, a, i, c) {
1275
1276
  };
1276
1277
  });
1277
1278
  }
1278
- function qo(e, t) {
1279
+ function Yo(e, t) {
1279
1280
  const a = [], i = e.date.getTime();
1280
1281
  return (!t.visibleRange || i < t.visibleRange.start || i >= t.visibleRange.end) && a.push("range"), t.hiddenDays.includes(e.date.getDay()) && a.push("weekend"), e.chairId && t.selectedChairIds.length > 0 && !t.selectedChairIds.includes(e.chairId) && a.push("chair"), e.operatorId && t.selectedOperatorIds.length > 0 && !t.selectedOperatorIds.includes(e.operatorId) && a.push("operator"), a;
1281
1282
  }
1282
- const Yo = 7, Xo = 7, Na = 180, Qo = {
1283
+ const Xo = 7, Qo = 7, Na = 180, Jo = {
1283
1284
  backDays: 0,
1284
- forwardDays: Yo
1285
+ forwardDays: Xo
1285
1286
  };
1286
- function Jo(e, t) {
1287
+ function Zo(e, t) {
1287
1288
  const a = new Date(e);
1288
1289
  a.setHours(0, 0, 0, 0);
1289
1290
  const i = new Date(t);
1290
1291
  return i.setHours(0, 0, 0, 0), Math.round((i.getTime() - a.getTime()) / 864e5);
1291
1292
  }
1292
- function Zo(e, t) {
1293
+ function ed(e, t) {
1293
1294
  const a = new Date(e);
1294
1295
  t.backDays > 0 && (a.setDate(a.getDate() - t.backDays), a.setHours(0, 0, 0, 0));
1295
1296
  const i = new Date(e);
1296
1297
  return i.setDate(i.getDate() + t.forwardDays), i.setHours(23, 59, 59, 999), { startMs: a.getTime(), endMs: i.getTime() };
1297
1298
  }
1298
1299
  function wi(e, t) {
1299
- const a = (i) => Math.min(Na, i + Xo);
1300
+ const a = (i) => Math.min(Na, i + Qo);
1300
1301
  return t === "earlier" ? { ...e, backDays: a(e.backDays) } : { ...e, forwardDays: a(e.forwardDays) };
1301
1302
  }
1302
- function ed(e, t, a) {
1303
- const i = Jo(t, a), c = (r, u) => Math.min(Na, Math.max(r, u));
1303
+ function nd(e, t, a) {
1304
+ const i = Zo(t, a), c = (r, u) => Math.min(Na, Math.max(r, u));
1304
1305
  return i < 0 ? { ...e, backDays: c(e.backDays, -i) } : { ...e, forwardDays: c(e.forwardDays, i) };
1305
1306
  }
1306
- function nd(e, t) {
1307
+ function td(e, t) {
1307
1308
  return e.filter((a) => {
1308
1309
  const i = a.event;
1309
1310
  if (i.isTask || i.isInternal || i.isDraft || i.status === "cancelled") return !1;
@@ -1342,9 +1343,9 @@ function os(e, t, a) {
1342
1343
  }
1343
1344
  };
1344
1345
  }
1345
- const td = 30;
1346
- function ad(e, t) {
1347
- const a = new Date(t.nowIso).getTime() - td * 864e5;
1346
+ const ad = 30;
1347
+ function id(e, t) {
1348
+ const a = new Date(t.nowIso).getTime() - ad * 864e5;
1348
1349
  return e.filter((i) => {
1349
1350
  var u;
1350
1351
  const c = i.event;
@@ -1353,8 +1354,8 @@ function ad(e, t) {
1353
1354
  return r ? new Date(r).getTime() >= a : !0;
1354
1355
  });
1355
1356
  }
1356
- const id = "2026-06-23T00:00:00";
1357
- function sd(e, t, a = new Date(id).getTime()) {
1357
+ const sd = "2026-06-23T00:00:00";
1358
+ function rd(e, t, a = new Date(sd).getTime()) {
1358
1359
  const i = e.event, c = String(i.id), r = t.bookingContacts[c], u = r != null && r.bookedAtIso ? new Date(r.bookedAtIso) : null, h = t.chairs.find((d) => d.id === e.chairId);
1359
1360
  return {
1360
1361
  row: e,
@@ -1376,7 +1377,7 @@ const pa = {
1376
1377
  appointmentScheduled: "",
1377
1378
  description: ""
1378
1379
  };
1379
- function rd(e) {
1380
+ function od(e) {
1380
1381
  return [
1381
1382
  e.patientId,
1382
1383
  e.patientAssigned,
@@ -1389,7 +1390,7 @@ function rd(e) {
1389
1390
  e.description.trim()
1390
1391
  ].filter(Boolean).length;
1391
1392
  }
1392
- function od(e, t, a) {
1393
+ function dd(e, t, a) {
1393
1394
  var d, f;
1394
1395
  const i = e.appointmentId ? t.find((p) => p.event.id === e.appointmentId) : void 0, c = e.patientId ? a.patientById(e.patientId) : void 0, r = i == null ? void 0 : i.event.patientId, u = r ? a.patientById(String(r)) : void 0, h = e.operatorId ? (d = a.operators.find((p) => p.id === e.operatorId)) == null ? void 0 : d.title : void 0;
1395
1396
  return {
@@ -1407,17 +1408,17 @@ function Ti(e, t, a) {
1407
1408
  const i = $a(
1408
1409
  typeof e == "string" ? e : e.toISOString()
1409
1410
  );
1410
- return !(t && i < dd(t) || a && i > cd(a));
1411
+ return !(t && i < cd(t) || a && i > ld(a));
1411
1412
  }
1412
- function dd(e) {
1413
+ function cd(e) {
1413
1414
  const t = new Date(e);
1414
1415
  return t.setHours(0, 0, 0, 0), t.getTime();
1415
1416
  }
1416
- function cd(e) {
1417
+ function ld(e) {
1417
1418
  const t = new Date(e);
1418
1419
  return t.setHours(23, 59, 59, 999), t.getTime();
1419
1420
  }
1420
- function ld(e, t, a) {
1421
+ function ud(e, t, a) {
1421
1422
  var r, u;
1422
1423
  const { entry: i } = e;
1423
1424
  if (t.patientId && ![i.patientId, (r = e.appointmentPatient) == null ? void 0 : r.id].includes(t.patientId))
@@ -1445,13 +1446,13 @@ function ld(e, t, a) {
1445
1446
  const c = t.description.trim().toLocaleLowerCase();
1446
1447
  return !(c && !(((u = i.description) == null ? void 0 : u.toLocaleLowerCase()) ?? "").includes(c));
1447
1448
  }
1448
- function ud(e, t, a, i, c) {
1449
- return e.filter((r) => so(r, a, c)).map((r) => od(r, t, c)).filter((r) => ld(r, i, c));
1449
+ function hd(e, t, a, i, c) {
1450
+ return e.filter((r) => ro(r, a, c)).map((r) => dd(r, t, c)).filter((r) => ud(r, i, c));
1450
1451
  }
1451
1452
  function Wt(e) {
1452
1453
  return e.operators.filter((t) => !e.inactiveOperatorIds.includes(t.id));
1453
1454
  }
1454
- function hd({
1455
+ function md({
1455
1456
  patientId: e,
1456
1457
  seam: t,
1457
1458
  editable: a = !1
@@ -1481,7 +1482,7 @@ function hd({
1481
1482
  };
1482
1483
  return /* @__PURE__ */ g(be, { children: [
1483
1484
  /* @__PURE__ */ n("div", { ref: B, className: "ds:contents", children: /* @__PURE__ */ n(
1484
- Rs,
1485
+ Ls,
1485
1486
  {
1486
1487
  notes: h,
1487
1488
  onRequestAiDraft: d ? t == null ? void 0 : t.onRequestAiDraft : void 0,
@@ -1609,7 +1610,7 @@ function ds({
1609
1610
  options: c,
1610
1611
  value: e != null ? String(e) : "",
1611
1612
  onValueChange: (u) => t(u ? Number(u) : null),
1612
- filter: (u, h) => h === r ? 1 : Kr(u, h),
1613
+ filter: (u, h) => h === r ? 1 : qr(u, h),
1613
1614
  allowCreate: !0,
1614
1615
  onCreate: (u) => {
1615
1616
  const h = Number.parseInt(u.replace(/\D/g, ""), 10);
@@ -1618,11 +1619,11 @@ function ds({
1618
1619
  }
1619
1620
  );
1620
1621
  }
1621
- const md = [
1622
+ const pd = [
1622
1623
  "whatsapp",
1623
1624
  "sms",
1624
1625
  "email"
1625
- ], pd = "ds:@container/apptform", gd = "ds:m-0 ds:grid ds:min-w-0 ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:border-0 ds:p-[var(--spacing-md)] ds:@[480px]/apptform:grid-cols-2 ds:@[704px]/apptform:grid-cols-3", ze = "ds:col-span-full ds:min-w-0", ja = "ds:min-w-0 ds:[&>div]:min-w-0", Mn = `${ja} ds:@[704px]/apptform:grid ds:@[704px]/apptform:grid-cols-[minmax(0,max-content)_minmax(0,1fr)] ds:@[704px]/apptform:items-center ds:@[704px]/apptform:gap-x-[var(--spacing-sm)]`;
1626
+ ], gd = "ds:@container/apptform", vd = "ds:m-0 ds:grid ds:min-w-0 ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:border-0 ds:p-[var(--spacing-md)] ds:@[480px]/apptform:grid-cols-2 ds:@[704px]/apptform:grid-cols-3", ze = "ds:col-span-full ds:min-w-0", ja = "ds:min-w-0 ds:[&>div]:min-w-0", Mn = `${ja} ds:@[704px]/apptform:grid ds:@[704px]/apptform:grid-cols-[minmax(0,max-content)_minmax(0,1fr)] ds:@[704px]/apptform:items-center ds:@[704px]/apptform:gap-x-[var(--spacing-sm)]`;
1626
1627
  function Ei({
1627
1628
  prefill: e,
1628
1629
  onSave: t,
@@ -1637,7 +1638,7 @@ function Ei({
1637
1638
  slotPatch: p,
1638
1639
  colorAssociation: x,
1639
1640
  locale: E,
1640
- scheduleByEntry: S = eo,
1641
+ scheduleByEntry: S = no,
1641
1642
  history: D,
1642
1643
  notes: B,
1643
1644
  onMove: j,
@@ -1657,7 +1658,7 @@ function Ei({
1657
1658
  ), [Le, $e] = N(
1658
1659
  (e == null ? void 0 : e.durationMin) ?? 30
1659
1660
  ), [V, pe] = N((e == null ? void 0 : e.operatorId) ?? Ce), [H, Ne] = N((e == null ? void 0 : e.chairId) ?? Ce), [xe, We] = N(
1660
- () => qr(e, x, R)
1661
+ () => Yr(e, x, R)
1661
1662
  ), [en, Pe] = N((e == null ? void 0 : e.care) ?? ""), [An, dn] = N(!0), [yn, cn] = N(!1), [He, Rn] = N("no"), ee = e == null ? void 0 : e.careLink, [Ue, Me] = N((ee == null ? void 0 : ee.kind) ?? Ce), [vn, _e] = N(
1662
1663
  (ee == null ? void 0 : ee.kind) === "plan" ? ee.planId : ""
1663
1664
  ), [Ye, Cn] = N(
@@ -1753,7 +1754,7 @@ function Ei({
1753
1754
  return;
1754
1755
  }
1755
1756
  On.current = Qn;
1756
- const l = Xr(nn, R);
1757
+ const l = Qr(nn, R);
1757
1758
  l.durationMin !== void 0 && $e(l.durationMin), l.colorHex && x === "care" && We(l.colorHex);
1758
1759
  }, [Qn, nn, x, R]);
1759
1760
  const hn = nn ? R.careEntriesFromLink(nn) : e == null ? void 0 : e.cares, [Pn, xt] = N((e == null ? void 0 : e.allDay) ?? !1), Jn = se(0);
@@ -1825,7 +1826,7 @@ function Ei({
1825
1826
  const dt = an() !== sn.current, Ge = I ? R.closureOn(
1826
1827
  _n(I),
1827
1828
  V === Ce ? void 0 : V
1828
- ) : null, Vn = (b == null ? void 0 : b.operatorAbsenceWarning) === !0 && (Ge == null ? void 0 : Ge.kind) === "absence", pt = Vn ? null : Ge, na = !F || (I == null ? void 0 : I.getTime()) !== ((ii = e == null ? void 0 : e.date) == null ? void 0 : ii.getTime()) || (V === Ce ? void 0 : V) !== (e == null ? void 0 : e.operatorId), ta = ro(e == null ? void 0 : e.callToAction, {
1829
+ ) : null, Vn = (b == null ? void 0 : b.operatorAbsenceWarning) === !0 && (Ge == null ? void 0 : Ge.kind) === "absence", pt = Vn ? null : Ge, na = !F || (I == null ? void 0 : I.getTime()) !== ((ii = e == null ? void 0 : e.date) == null ? void 0 : ii.getTime()) || (V === Ce ? void 0 : V) !== (e == null ? void 0 : e.operatorId), ta = oo(e == null ? void 0 : e.callToAction, {
1829
1830
  patientId: m || void 0,
1830
1831
  operatorId: V === Ce ? void 0 : V
1831
1832
  }), Un = b == null ? void 0 : b.descriptionMaxLength, $t = Un !== void 0 && en.length > Un, Bn = (e == null ? void 0 : e.simpleSave) === !1, Tt = (F ? dt : !!I) && !(pt && na) && !$t && ta, Ta = F ? dt : !0, mn = m ? R.patientById(m) : void 0, [aa, gt] = N(!1), [ia, Pt] = N("this"), [sa, Ft] = N(!1), [Ea, vt] = N(!1), [ra, oa] = N("this"), [Ht, da] = N(
@@ -1839,9 +1840,9 @@ function Ei({
1839
1840
  const Et = (b == null ? void 0 : b.branches) ?? [], [ca, jn] = N(() => {
1840
1841
  var l;
1841
1842
  return ((l = Et[0]) == null ? void 0 : l.id) ?? "";
1842
- }), Nn = !F && mn && (b != null && b.unsignedRequiredDocs) ? b.unsignedRequiredDocs(mn.id) : 0, Ke = rs(mn), xn = (b == null ? void 0 : b.reminderCapability) === !0, la = !xn || !!mn, Ut = (b == null ? void 0 : b.firstVisitRequiresPatient) !== !0 || !!mn, rn = b != null && b.devicesByCare ? Ho(hn, b.devicesByCare) : [], Ee = I ? new Date(I) : void 0;
1843
+ }), Nn = !F && mn && (b != null && b.unsignedRequiredDocs) ? b.unsignedRequiredDocs(mn.id) : 0, Ke = rs(mn), xn = (b == null ? void 0 : b.reminderCapability) === !0, la = !xn || !!mn, Ut = (b == null ? void 0 : b.firstVisitRequiresPatient) !== !0 || !!mn, rn = b != null && b.devicesByCare ? Vo(hn, b.devicesByCare) : [], Ee = I ? new Date(I) : void 0;
1843
1844
  Ee && Ee.setHours(fe.hours, fe.minutes, 0, 0);
1844
- const jt = b != null && b.rows && Ee && !Pn ? Fo(b.rows, {
1845
+ const jt = b != null && b.rows && Ee && !Pn ? Ho(b.rows, {
1845
1846
  start: Ee,
1846
1847
  end: new Date(Ee.getTime() + (Le ?? 30) * 6e4),
1847
1848
  chairId: H === Ce ? void 0 : H,
@@ -2138,7 +2139,7 @@ function Ei({
2138
2139
  hidden: pn !== "form",
2139
2140
  tabIndex: 0,
2140
2141
  className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
2141
- children: /* @__PURE__ */ n("div", { className: pd, children: /* @__PURE__ */ g("form", { className: "ds:contents", onSubmit: us, children: [
2142
+ children: /* @__PURE__ */ n("div", { className: gd, children: /* @__PURE__ */ g("form", { className: "ds:contents", onSubmit: us, children: [
2142
2143
  /* @__PURE__ */ n(
2143
2144
  "button",
2144
2145
  {
@@ -2149,14 +2150,14 @@ function Ei({
2149
2150
  disabled: !Tt || !(b != null && b.submitOnEnter)
2150
2151
  }
2151
2152
  ),
2152
- /* @__PURE__ */ g("fieldset", { disabled: y, className: gd, children: [
2153
+ /* @__PURE__ */ g("fieldset", { disabled: y, className: vd, children: [
2153
2154
  y ? /* @__PURE__ */ g(
2154
2155
  Ae,
2155
2156
  {
2156
2157
  variant: "info",
2157
2158
  announce: "off",
2158
2159
  className: ze,
2159
- icon: /* @__PURE__ */ n(Fs, { "aria-hidden": "true" }),
2160
+ icon: /* @__PURE__ */ n(Hs, { "aria-hidden": "true" }),
2160
2161
  children: [
2161
2162
  /* @__PURE__ */ n(Ae.Title, { as: "p", children: o(k("readOnlyTitle")) }),
2162
2163
  /* @__PURE__ */ n(Ae.Description, { children: o(k("readOnlyBody")) })
@@ -2620,7 +2621,7 @@ function Ei({
2620
2621
  label: o(v("description")),
2621
2622
  error: $t ? o(v("descriptionTooLong"), { max: Un }) : void 0,
2622
2623
  children: /* @__PURE__ */ n(
2623
- Ls,
2624
+ Ms,
2624
2625
  {
2625
2626
  value: en,
2626
2627
  onChange: (l) => Pe(l.target.value)
@@ -2633,7 +2634,7 @@ function Ei({
2633
2634
  {
2634
2635
  className: ze,
2635
2636
  label: o(v("cares")),
2636
- value: Wr(hn)
2637
+ value: _r(hn)
2637
2638
  }
2638
2639
  ) : null,
2639
2640
  rn.length > 0 ? /* @__PURE__ */ n(
@@ -2652,7 +2653,7 @@ function Ei({
2652
2653
  {
2653
2654
  className: ja,
2654
2655
  label: o(v("time")),
2655
- children: /* @__PURE__ */ n(Ms, { value: fe, onChange: En })
2656
+ children: /* @__PURE__ */ n(Os, { value: fe, onChange: En })
2656
2657
  }
2657
2658
  ),
2658
2659
  /* @__PURE__ */ n(
@@ -2770,7 +2771,7 @@ function Ei({
2770
2771
  children: /* @__PURE__ */ n(
2771
2772
  Se,
2772
2773
  {
2773
- options: Ur.map((l) => ({
2774
+ options: jr.map((l) => ({
2774
2775
  value: l,
2775
2776
  label: o(v(es[l]))
2776
2777
  })),
@@ -2801,7 +2802,7 @@ function Ei({
2801
2802
  value: Zn,
2802
2803
  onValueChange: (l) => {
2803
2804
  const M = l;
2804
- Fn(M), M === "until" && !Dn && I && mt(jr(I, 1));
2805
+ Fn(M), M === "until" && !Dn && I && mt(Gr(I, 1));
2805
2806
  }
2806
2807
  }
2807
2808
  )
@@ -2817,7 +2818,7 @@ function Ei({
2817
2818
  {
2818
2819
  value: tn,
2819
2820
  min: 2,
2820
- max: Vr,
2821
+ max: Ur,
2821
2822
  onChange: fn
2822
2823
  }
2823
2824
  )
@@ -2998,7 +2999,7 @@ function Ei({
2998
2999
  }
2999
3000
  ) : null,
3000
3001
  mn && !y ? /* @__PURE__ */ n(
3001
- fd,
3002
+ bd,
3002
3003
  {
3003
3004
  patient: mn,
3004
3005
  onWhatsApp: w,
@@ -3031,7 +3032,7 @@ function Ei({
3031
3032
  /* @__PURE__ */ n(
3032
3033
  ae.Item,
3033
3034
  {
3034
- startIcon: /* @__PURE__ */ n(Vs, { "aria-hidden": "true" }),
3035
+ startIcon: /* @__PURE__ */ n(Us, { "aria-hidden": "true" }),
3035
3036
  onSelect: () => ie(o(v("createFolder"))),
3036
3037
  children: o(v("createFolder"))
3037
3038
  }
@@ -3039,7 +3040,7 @@ function Ei({
3039
3040
  /* @__PURE__ */ n(
3040
3041
  ae.Item,
3041
3042
  {
3042
- startIcon: /* @__PURE__ */ n(Us, { "aria-hidden": "true" }),
3043
+ startIcon: /* @__PURE__ */ n(js, { "aria-hidden": "true" }),
3043
3044
  onSelect: () => ie(o(v("createFromTemplate"))),
3044
3045
  children: o(v("createFromTemplate"))
3045
3046
  }
@@ -3055,7 +3056,7 @@ function Ei({
3055
3056
  /* @__PURE__ */ n(
3056
3057
  ae.Item,
3057
3058
  {
3058
- startIcon: /* @__PURE__ */ n(Sr, { "aria-hidden": "true" }),
3059
+ startIcon: /* @__PURE__ */ n(wr, { "aria-hidden": "true" }),
3059
3060
  onSelect: () => ie(o(v("createIdDocument"))),
3060
3061
  children: o(v("createIdDocument"))
3061
3062
  }
@@ -3063,7 +3064,7 @@ function Ei({
3063
3064
  /* @__PURE__ */ n(
3064
3065
  ae.Item,
3065
3066
  {
3066
- startIcon: /* @__PURE__ */ n(js, { "aria-hidden": "true" }),
3067
+ startIcon: /* @__PURE__ */ n(Gs, { "aria-hidden": "true" }),
3067
3068
  onSelect: () => ie(o(v("createWebCamera"))),
3068
3069
  children: o(v("createWebCamera"))
3069
3070
  }
@@ -3153,7 +3154,7 @@ function Ei({
3153
3154
  {
3154
3155
  size: "sm",
3155
3156
  intent: "outline",
3156
- icon: /* @__PURE__ */ n(Gs, { "aria-hidden": "true" }),
3157
+ icon: /* @__PURE__ */ n(Ks, { "aria-hidden": "true" }),
3157
3158
  "aria-label": o(v("cancel")),
3158
3159
  tooltip: o(v("cancel")),
3159
3160
  disabled: !Ta,
@@ -3290,7 +3291,7 @@ function cs({ event: e }) {
3290
3291
  variant: "info"
3291
3292
  }), e.hasUnassignedPatient && i.push({
3292
3293
  id: "unassigned",
3293
- icon: /* @__PURE__ */ n(er, { "aria-hidden": "true" }),
3294
+ icon: /* @__PURE__ */ n(nr, { "aria-hidden": "true" }),
3294
3295
  label: t(a("unassignedPatient")),
3295
3296
  variant: "warning"
3296
3297
  }), e.hasHighlightedAnamnesis && i.push({
@@ -3300,7 +3301,7 @@ function cs({ event: e }) {
3300
3301
  variant: "accentSoft"
3301
3302
  }), e.hasBillableAmount && i.push({
3302
3303
  id: "billable",
3303
- icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
3304
+ icon: /* @__PURE__ */ n(Es, { "aria-hidden": "true" }),
3304
3305
  label: t(a("billable")),
3305
3306
  variant: "warning"
3306
3307
  }), e.isTelehealth && i.push({
@@ -3310,7 +3311,7 @@ function cs({ event: e }) {
3310
3311
  variant: "info"
3311
3312
  }), e.isRecurring && i.push({
3312
3313
  id: "recurring",
3313
- icon: /* @__PURE__ */ n(nr, { "aria-hidden": "true" }),
3314
+ icon: /* @__PURE__ */ n(tr, { "aria-hidden": "true" }),
3314
3315
  label: t(a("recurring")),
3315
3316
  variant: "info"
3316
3317
  }), i.length === 0 ? null : /* @__PURE__ */ n("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: i.map((c) => /* @__PURE__ */ n(
@@ -3324,14 +3325,14 @@ function cs({ event: e }) {
3324
3325
  c.id
3325
3326
  )) });
3326
3327
  }
3327
- function vd({
3328
+ function fd({
3328
3329
  row: e,
3329
3330
  patient: t,
3330
3331
  showAge: a = !1,
3331
3332
  onOpenPatient: i,
3332
3333
  anamnesisAnswers: c
3333
3334
  }) {
3334
- const { t: r } = Ie(), u = Tn(), { t: h, i18n: d } = Ie(), f = (B) => `calendarWorkspace.details.${B}`, p = (t == null ? void 0 : t.highlightedAnamnesisCount) ?? 0, x = (t == null ? void 0 : t.expiredAnamnesisCount) ?? 0, E = c ?? [], S = (t == null ? void 0 : t.name) ?? e.event.title, D = a && t ? Hr(t.dobIso, u) : void 0;
3335
+ const { t: r } = Ie(), u = Tn(), { t: h, i18n: d } = Ie(), f = (B) => `calendarWorkspace.details.${B}`, p = (t == null ? void 0 : t.highlightedAnamnesisCount) ?? 0, x = (t == null ? void 0 : t.expiredAnamnesisCount) ?? 0, E = c ?? [], S = (t == null ? void 0 : t.name) ?? e.event.title, D = a && t ? Vr(t.dobIso, u) : void 0;
3335
3336
  return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:pb-0", children: [
3336
3337
  /* @__PURE__ */ g("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
3337
3338
  /* @__PURE__ */ n(
@@ -3397,7 +3398,7 @@ function vd({
3397
3398
  {
3398
3399
  size: "sm",
3399
3400
  intent: "outline",
3400
- startIcon: /* @__PURE__ */ n(Zs, { "aria-hidden": "true" }),
3401
+ startIcon: /* @__PURE__ */ n(er, { "aria-hidden": "true" }),
3401
3402
  onClick: () => Re(r(f("anamnesisRenewToast"))),
3402
3403
  children: r(f("anamnesisRenew"))
3403
3404
  }
@@ -3407,16 +3408,16 @@ function vd({
3407
3408
  ) : null
3408
3409
  ] });
3409
3410
  }
3410
- function fd({
3411
+ function bd({
3411
3412
  patient: e,
3412
3413
  onWhatsApp: t,
3413
- channels: a = md
3414
+ channels: a = pd
3414
3415
  }) {
3415
3416
  const { t: i } = Ie(), c = (d) => `calendarWorkspace.details.${d}`, [r, u] = N(""), h = [
3416
3417
  {
3417
3418
  id: "whatsapp",
3418
3419
  label: i(c("remindWhatsApp")),
3419
- icon: /* @__PURE__ */ n(Os, { "aria-hidden": "true" })
3420
+ icon: /* @__PURE__ */ n(Bs, { "aria-hidden": "true" })
3420
3421
  },
3421
3422
  {
3422
3423
  id: "sms",
@@ -3446,7 +3447,7 @@ function fd({
3446
3447
  /* @__PURE__ */ n(Ct, { "aria-live": "polite", children: r ? i(c("remindSent"), { channel: r }) : "" })
3447
3448
  ] });
3448
3449
  }
3449
- function bd({
3450
+ function Id({
3450
3451
  row: e,
3451
3452
  patient: t,
3452
3453
  locale: a,
@@ -3457,7 +3458,7 @@ function bd({
3457
3458
  platform: h
3458
3459
  }) {
3459
3460
  var k;
3460
- const d = Tn(), { t: f } = Ie(), p = (Y) => `calendarWorkspace.details.${Y}`, { t: x } = Ie(), { open: E } = wa(), S = d.metaById[e.event.id], D = (S == null ? void 0 : S.documentsToSign) ?? [], B = Jr(D), [j, P] = N(""), w = (Y) => {
3461
+ const d = Tn(), { t: f } = Ie(), p = (Y) => `calendarWorkspace.details.${Y}`, { t: x } = Ie(), { open: E } = wa(), S = d.metaById[e.event.id], D = (S == null ? void 0 : S.documentsToSign) ?? [], B = Zr(D), [j, P] = N(""), w = (Y) => {
3461
3462
  c == null || c(e.event.id, Y), P(
3462
3463
  f(p("signingRequestedReadout"), {
3463
3464
  channel: f(p(Y === "sms" ? "remindSms" : "remindEmail"))
@@ -3490,7 +3491,7 @@ function bd({
3490
3491
  {
3491
3492
  intent: "link",
3492
3493
  size: "sm",
3493
- startIcon: /* @__PURE__ */ n(Ks, { "aria-hidden": "true" }),
3494
+ startIcon: /* @__PURE__ */ n(qs, { "aria-hidden": "true" }),
3494
3495
  onClick: () => E("patient-care-plan"),
3495
3496
  children: f(p("planLine"), {
3496
3497
  number: z.number,
@@ -3551,7 +3552,7 @@ function bd({
3551
3552
  {
3552
3553
  className: `ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:font-[var(--font-weight-semibold)] ${B.toSign > 0 ? "ds:text-[color:var(--warning-foreground)]" : "ds:text-[color:var(--success-foreground)]"}`,
3553
3554
  children: [
3554
- B.toSign > 0 ? /* @__PURE__ */ n(qs, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n(zi, { size: 16, "aria-hidden": "true" }),
3555
+ B.toSign > 0 ? /* @__PURE__ */ n(Ys, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n(zi, { size: 16, "aria-hidden": "true" }),
3555
3556
  B.toSign === 0 ? f(p("signingAllSigned")) : B.toSign === 1 ? f(p("signingToSignOne")) : f(p("signingToSignMany"), { n: B.toSign })
3556
3557
  ]
3557
3558
  }
@@ -3563,7 +3564,7 @@ function bd({
3563
3564
  children: [
3564
3565
  /* @__PURE__ */ n("span", { className: "ds:[min-inline-size:0] ds:truncate", children: Y.name }),
3565
3566
  /* @__PURE__ */ n(
3566
- Ns,
3567
+ xs,
3567
3568
  {
3568
3569
  className: "ds:ms-auto",
3569
3570
  size: "sm",
@@ -3583,7 +3584,7 @@ function bd({
3583
3584
  {
3584
3585
  size: "sm",
3585
3586
  intent: "outline",
3586
- startIcon: /* @__PURE__ */ n(Ys, { "aria-hidden": "true" }),
3587
+ startIcon: /* @__PURE__ */ n(Xs, { "aria-hidden": "true" }),
3587
3588
  children: f(p("signingRequest"))
3588
3589
  }
3589
3590
  ) }),
@@ -3609,7 +3610,7 @@ function bd({
3609
3610
  r ? /* @__PURE__ */ n(
3610
3611
  ae.Item,
3611
3612
  {
3612
- startIcon: /* @__PURE__ */ n(Xs, { "aria-hidden": "true" }),
3613
+ startIcon: /* @__PURE__ */ n(Qs, { "aria-hidden": "true" }),
3613
3614
  onSelect: r,
3614
3615
  children: f(p("signingOnDevice"))
3615
3616
  }
@@ -3623,7 +3624,7 @@ function bd({
3623
3624
  {
3624
3625
  intent: "link",
3625
3626
  size: "sm",
3626
- startIcon: /* @__PURE__ */ n(Qs, { "aria-hidden": "true" }),
3627
+ startIcon: /* @__PURE__ */ n(Js, { "aria-hidden": "true" }),
3627
3628
  onClick: () => Re(f(p("aesToast"))),
3628
3629
  children: f(p("aesEnable"))
3629
3630
  }
@@ -3669,7 +3670,7 @@ function bd({
3669
3670
  {
3670
3671
  intent: "link",
3671
3672
  size: "sm",
3672
- startIcon: /* @__PURE__ */ n(Hs, { "aria-hidden": "true" }),
3673
+ startIcon: /* @__PURE__ */ n(Vs, { "aria-hidden": "true" }),
3673
3674
  onClick: () => Re(f(p("pauToast"))),
3674
3675
  children: f(p("pauUpsell"))
3675
3676
  }
@@ -3702,12 +3703,12 @@ function bd({
3702
3703
  "a",
3703
3704
  {
3704
3705
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
3705
- href: Vo(t),
3706
+ href: Uo(t),
3706
3707
  target: "_blank",
3707
3708
  rel: "noopener noreferrer",
3708
3709
  "aria-label": `${f(p("mapsLink"))} — ${t.address}, ${t.city}`,
3709
3710
  children: [
3710
- /* @__PURE__ */ n(Js, { size: 14, "aria-hidden": "true" }),
3711
+ /* @__PURE__ */ n(Zs, { size: 14, "aria-hidden": "true" }),
3711
3712
  `${t.address}, ${t.city}`
3712
3713
  ]
3713
3714
  }
@@ -3716,18 +3717,18 @@ function bd({
3716
3717
  ] }) : null
3717
3718
  ] });
3718
3719
  }
3719
- const Id = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[color:var(--card)] ds:p-[var(--spacing-sm)] ds:shadow-[var(--shadow-sm)]", kd = "ds:flex ds:h-8 ds:w-8 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)] ds:text-[color:var(--muted-foreground)]", ti = "ds:flex ds:min-h-[var(--min-target-size)] ds:flex-col ds:justify-center ds:gap-[var(--spacing-2xs)]", Ai = "type-body-sm ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-start", yd = [
3720
+ const kd = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[color:var(--card)] ds:p-[var(--spacing-sm)] ds:shadow-[var(--shadow-sm)]", yd = "ds:flex ds:h-8 ds:w-8 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)] ds:text-[color:var(--muted-foreground)]", ti = "ds:flex ds:min-h-[var(--min-target-size)] ds:flex-col ds:justify-center ds:gap-[var(--spacing-2xs)]", Ai = "type-body-sm ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:text-start", Cd = [
3720
3721
  "ds:w-full ds:cursor-pointer ds:rounded-[var(--radius-md)] ds:text-start",
3721
3722
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
3722
3723
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
3723
3724
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
3724
3725
  ].join(" "), ut = (e) => `calendarWorkspace.waitingList.${e}`;
3725
- function Cd({ data: e }) {
3726
+ function Dd({ data: e }) {
3726
3727
  if (!e) return null;
3727
3728
  const t = e.patient ?? e.appointmentPatient;
3728
- return /* @__PURE__ */ n("span", { className: ti, children: t ? /* @__PURE__ */ n(Xt, { name: t.name, src: t.avatarSrc, size: "sm" }) : /* @__PURE__ */ n("span", { "aria-hidden": "true", className: kd, children: /* @__PURE__ */ n(ea, { size: 16 }) }) });
3729
+ return /* @__PURE__ */ n("span", { className: ti, children: t ? /* @__PURE__ */ n(Xt, { name: t.name, src: t.avatarSrc, size: "sm" }) : /* @__PURE__ */ n("span", { "aria-hidden": "true", className: yd, children: /* @__PURE__ */ n(ea, { size: 16 }) }) });
3729
3730
  }
3730
- function Dd({
3731
+ function Nd({
3731
3732
  data: e,
3732
3733
  handlers: t
3733
3734
  }) {
@@ -3746,17 +3747,17 @@ function Dd({
3746
3747
  }
3747
3748
  ) }) : null,
3748
3749
  (p = e.patient) != null && p.phone ? /* @__PURE__ */ g("span", { className: Ai, children: [
3749
- /* @__PURE__ */ n(tr, { size: 14, "aria-hidden": "true", className: "ds:shrink-0" }),
3750
+ /* @__PURE__ */ n(ar, { size: 14, "aria-hidden": "true", className: "ds:shrink-0" }),
3750
3751
  /* @__PURE__ */ n(Z, { size: "sm", intent: "link", asChild: !0, children: /* @__PURE__ */ n("a", { href: `tel:${e.patient.phone.replace(/\s/g, "")}`, children: e.patient.phone }) })
3751
3752
  ] }) : null,
3752
3753
  u ? /* @__PURE__ */ n(
3753
3754
  "button",
3754
3755
  {
3755
3756
  type: "button",
3756
- className: yd,
3757
+ className: Cd,
3757
3758
  onClick: () => r(u.event.id),
3758
3759
  children: /* @__PURE__ */ n(
3759
- Es,
3760
+ As,
3760
3761
  {
3761
3762
  title: on(i, u.event.start),
3762
3763
  suffix: Bt(
@@ -3780,7 +3781,7 @@ function Dd({
3780
3781
  d ? /* @__PURE__ */ n("span", { className: "type-body-sm ds:text-start ds:text-[color:var(--muted-foreground)]", children: a(ut("noConnection")) }) : null
3781
3782
  ] });
3782
3783
  }
3783
- function Nd({ data: e, handlers: t }) {
3784
+ function xd({ data: e, handlers: t }) {
3784
3785
  const { t: a } = Ie();
3785
3786
  if (!e) return null;
3786
3787
  const { onPlaceWaiting: i, onRemoveWaiting: c, onOpenEntryForm: r } = t.current, { entry: u } = e, h = e.patient ?? e.appointmentPatient, d = !!u.appointmentId, f = u.whatsappCapable && h !== void 0, p = a(ut(d ? "editLinkedDisabled" : "edit")), x = (h == null ? void 0 : h.name) ?? u.description ?? a(ut("noDescription")), E = (S) => a(ut("actionForRow"), { action: a(ut(S)), who: x });
@@ -3800,7 +3801,7 @@ function Nd({ data: e, handlers: t }) {
3800
3801
  }
3801
3802
  ),
3802
3803
  /* @__PURE__ */ n(
3803
- Bs,
3804
+ Ws,
3804
3805
  {
3805
3806
  variant: "fab",
3806
3807
  size: "sm",
@@ -3841,7 +3842,7 @@ function Nd({ data: e, handlers: t }) {
3841
3842
  );
3842
3843
  }
3843
3844
  const at = (e) => `calendarWorkspace.inc1.bookings.${e}`;
3844
- function xd({
3845
+ function Sd({
3845
3846
  bookings: e,
3846
3847
  locale: t,
3847
3848
  privacy: a = !1,
@@ -3849,7 +3850,7 @@ function xd({
3849
3850
  onComplete: c
3850
3851
  }) {
3851
3852
  const { t: r } = Ie(), u = Tn(), h = ce(
3852
- () => e.map((d) => sd(d, u)),
3853
+ () => e.map((d) => rd(d, u)),
3853
3854
  [e, u]
3854
3855
  );
3855
3856
  return /* @__PURE__ */ g("div", { className: "ds:flex ds:h-full ds:flex-col", children: [
@@ -3892,7 +3893,7 @@ function xd({
3892
3893
  role: "listitem",
3893
3894
  children: [
3894
3895
  /* @__PURE__ */ n(
3895
- Ws,
3896
+ _s,
3896
3897
  {
3897
3898
  item: os(d.row, a, u),
3898
3899
  surface: "elevated",
@@ -3933,7 +3934,7 @@ function xd({
3933
3934
  ] })
3934
3935
  ] });
3935
3936
  }
3936
- function Sd({
3937
+ function wd({
3937
3938
  entries: e,
3938
3939
  rows: t,
3939
3940
  locale: a,
@@ -3964,9 +3965,9 @@ function Sd({
3964
3965
  const z = (k) => P((Y) => ({ ...Y, ...k })), o = (k) => {
3965
3966
  S(k), B(!1), P(pa), y(pa);
3966
3967
  }, R = ce(
3967
- () => ud(e, t, E, w, f),
3968
+ () => hd(e, t, E, w, f),
3968
3969
  [e, t, E, w, f]
3969
- ), le = rd(w), de = [
3970
+ ), le = od(w), de = [
3970
3971
  { value: "yes", label: d(p("filterYes")) },
3971
3972
  { value: "no", label: d(p("filterNo")) }
3972
3973
  ], v = /* @__PURE__ */ g(
@@ -4102,10 +4103,10 @@ function Sd({
4102
4103
  Se,
4103
4104
  {
4104
4105
  size: "sm",
4105
- options: to.map((k) => ({
4106
+ options: ao.map((k) => ({
4106
4107
  value: k,
4107
4108
  label: d(
4108
- `calendarWorkspace.backlog.${ao[k]}`
4109
+ `calendarWorkspace.backlog.${io[k]}`
4109
4110
  )
4110
4111
  })),
4111
4112
  value: E,
@@ -4152,22 +4153,22 @@ function Sd({
4152
4153
  {
4153
4154
  role: "list",
4154
4155
  className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
4155
- children: R.map((k) => /* @__PURE__ */ g("li", { className: Id, children: [
4156
+ children: R.map((k) => /* @__PURE__ */ g("li", { className: kd, children: [
4156
4157
  /* @__PURE__ */ g("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
4157
- /* @__PURE__ */ n(Cd, { data: k }),
4158
+ /* @__PURE__ */ n(Dd, { data: k }),
4158
4159
  /* @__PURE__ */ g("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
4159
- /* @__PURE__ */ n(Dd, { data: k, handlers: b }),
4160
+ /* @__PURE__ */ n(Nd, { data: k, handlers: b }),
4160
4161
  /* @__PURE__ */ n("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: k.appointmentName ?? k.entry.description ?? d(p("noDescription")) })
4161
4162
  ] })
4162
4163
  ] }),
4163
- /* @__PURE__ */ n(Nd, { data: k, handlers: b })
4164
+ /* @__PURE__ */ n(xd, { data: k, handlers: b })
4164
4165
  ] }, k.entry.id))
4165
4166
  }
4166
4167
  )
4167
4168
  ) })
4168
4169
  ] });
4169
4170
  }
4170
- function wd({
4171
+ function Td({
4171
4172
  entry: e,
4172
4173
  onSave: t,
4173
4174
  onCancel: a,
@@ -4181,7 +4182,7 @@ function wd({
4181
4182
  const [d, f] = N((e == null ? void 0 : e.patientId) ?? ""), [p, x] = N((e == null ? void 0 : e.operatorId) ?? Ce), [E, S] = N(
4182
4183
  (e == null ? void 0 : e.colorHex) ?? Qt[6].hex
4183
4184
  ), [D, B] = N((e == null ? void 0 : e.description) ?? ""), [j, P] = N(!1), w = () => {
4184
- if (!oo({ patientId: d, description: D })) {
4185
+ if (!co({ patientId: d, description: D })) {
4185
4186
  P(!0);
4186
4187
  return;
4187
4188
  }
@@ -4286,7 +4287,7 @@ function wd({
4286
4287
  ] })
4287
4288
  ] });
4288
4289
  }
4289
- function Td({ data: e }) {
4290
+ function Ed({ data: e }) {
4290
4291
  const { t } = Ie();
4291
4292
  return e ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:whitespace-normal type-body-sm", children: [
4292
4293
  /* @__PURE__ */ n("span", { className: "ds:font-[var(--font-weight-semibold)]", children: e.patientName }),
@@ -4299,7 +4300,7 @@ function Td({ data: e }) {
4299
4300
  e.unassigned ? /* @__PURE__ */ n("span", { children: t("calendarWorkspace.print.bookedOnline") }) : null
4300
4301
  ] }) : null;
4301
4302
  }
4302
- function Ed({ data: e }) {
4303
+ function Ad({ data: e }) {
4303
4304
  const { t } = Ie();
4304
4305
  return e ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:whitespace-normal type-body-sm", children: [
4305
4306
  e.description ? /* @__PURE__ */ n("span", { children: e.description }) : null,
@@ -4311,7 +4312,7 @@ function Ed({ data: e }) {
4311
4312
  ] }, `${a.careId ?? a.name}-${i}`))
4312
4313
  ] }) : null;
4313
4314
  }
4314
- function Ad({ data: e }) {
4315
+ function Rd({ data: e }) {
4315
4316
  var a, i;
4316
4317
  const t = Tn();
4317
4318
  return e ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:whitespace-normal type-body-sm", children: [
@@ -4319,7 +4320,7 @@ function Ad({ data: e }) {
4319
4320
  /* @__PURE__ */ n("span", { children: ((i = t.operators.find((c) => c.id === e.operatorId)) == null ? void 0 : i.title) ?? "—" })
4320
4321
  ] }) : null;
4321
4322
  }
4322
- function Rd({
4323
+ function Ld({
4323
4324
  sections: e,
4324
4325
  rangeTitle: t,
4325
4326
  axisKind: a,
@@ -4340,13 +4341,13 @@ function Rd({
4340
4341
  colId: "patient",
4341
4342
  headerName: d(p("columns.patient")),
4342
4343
  width: 192,
4343
- cellRenderer: Td
4344
+ cellRenderer: Ed
4344
4345
  },
4345
4346
  {
4346
4347
  colId: "cares",
4347
4348
  headerName: d(p("columns.cares")),
4348
4349
  width: 176,
4349
- cellRenderer: Ed
4350
+ cellRenderer: Ad
4350
4351
  }
4351
4352
  ];
4352
4353
  return a === "chair" ? w.push({
@@ -4375,7 +4376,7 @@ function Rd({
4375
4376
  colId: "allocation",
4376
4377
  headerName: d(p("columns.allocation")),
4377
4378
  width: 132,
4378
- cellRenderer: Ad
4379
+ cellRenderer: Rd
4379
4380
  }), w.push({
4380
4381
  colId: "status",
4381
4382
  headerName: d(p("columns.status")),
@@ -4423,7 +4424,7 @@ function Rd({
4423
4424
  }
4424
4425
  }
4425
4426
  };
4426
- return As(
4427
+ return Rs(
4427
4428
  /* @__PURE__ */ g(
4428
4429
  "section",
4429
4430
  {
@@ -4463,7 +4464,7 @@ function Rd({
4463
4464
  is created — a height signature in the key remounts
4464
4465
  the grid when masking or an edit changes a row. */
4465
4466
  /* @__PURE__ */ n(
4466
- _s,
4467
+ zs,
4467
4468
  {
4468
4469
  columnDefs: x,
4469
4470
  rowData: o.rows,
@@ -4508,7 +4509,7 @@ function Rd({
4508
4509
  document.body
4509
4510
  );
4510
4511
  }
4511
- const ls = "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[color:var(--card)] ds:shadow-[var(--shadow-sm)] ds:p-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)]", Ld = [
4512
+ const ls = "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[color:var(--card)] ds:shadow-[var(--shadow-sm)] ds:p-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)]", Md = [
4512
4513
  ls,
4513
4514
  "ds:w-full ds:cursor-pointer ds:text-start ds:transition-colors",
4514
4515
  "ds:hover:bg-[color:var(--muted)]",
@@ -4591,7 +4592,7 @@ function Ri({
4591
4592
  ] })
4592
4593
  ] });
4593
4594
  }
4594
- function Md({
4595
+ function Od({
4595
4596
  rows: e,
4596
4597
  locale: t,
4597
4598
  seed: a,
@@ -4649,7 +4650,7 @@ function Md({
4649
4650
  ], yn = (A) => {
4650
4651
  const _ = (A == null ? void 0 : A.to) ?? ke;
4651
4652
  if (!k || !_) return;
4652
- const $ = Co(
4653
+ const $ = Do(
4653
4654
  {
4654
4655
  rows: e,
4655
4656
  chairs: We,
@@ -4700,7 +4701,7 @@ function Md({
4700
4701
  cares: V ? [{ careId: V.id, name: V.name, code: V.code }] : a == null ? void 0 : a.cares,
4701
4702
  patientId: a == null ? void 0 : a.patientId
4702
4703
  }), f("appointment-editor");
4703
- }, _e = r != null && r.devicesByCare && V ? r.devicesByCare[V.id] ?? [] : [], Ye = r == null ? void 0 : r.maxRangeDays, Cn = !!(Ye && k && ke && uo(k, ke) > Ye), Xe = (r == null ? void 0 : r.practiceHasBusinessHours) === !1, ln = (r == null ? void 0 : r.operatorsHaveBusinessHours) === !1, un = ce(() => {
4704
+ }, _e = r != null && r.devicesByCare && V ? r.devicesByCare[V.id] ?? [] : [], Ye = r == null ? void 0 : r.maxRangeDays, Cn = !!(Ye && k && ke && ho(k, ke) > Ye), Xe = (r == null ? void 0 : r.practiceHasBusinessHours) === !1, ln = (r == null ? void 0 : r.operatorsHaveBusinessHours) === !1, un = ce(() => {
4704
4705
  if (!F) return [];
4705
4706
  const A = /* @__PURE__ */ new Map();
4706
4707
  for (const _ of F) {
@@ -4733,8 +4734,8 @@ function Md({
4733
4734
  }
4734
4735
  ) : null
4735
4736
  ] }) }) }) : null,
4736
- /* @__PURE__ */ g(zs, { open: En, onOpenChange: Le, children: [
4737
- /* @__PURE__ */ n($s, { asChild: !0, children: /* @__PURE__ */ n(
4737
+ /* @__PURE__ */ g($s, { open: En, onOpenChange: Le, children: [
4738
+ /* @__PURE__ */ n(Ps, { asChild: !0, children: /* @__PURE__ */ n(
4738
4739
  Z,
4739
4740
  {
4740
4741
  size: "sm",
@@ -4743,7 +4744,7 @@ function Md({
4743
4744
  children: u(d("filters"))
4744
4745
  }
4745
4746
  ) }),
4746
- /* @__PURE__ */ n(Ps, { children: /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-md)]", children: [
4747
+ /* @__PURE__ */ n(Fs, { children: /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-md)]", children: [
4747
4748
  /* @__PURE__ */ n(Q, { label: u(d("care")), children: /* @__PURE__ */ n(
4748
4749
  Ot,
4749
4750
  {
@@ -4907,7 +4908,7 @@ function Md({
4907
4908
  "button",
4908
4909
  {
4909
4910
  type: "button",
4910
- className: Ld,
4911
+ className: Md,
4911
4912
  onClick: () => vn($),
4912
4913
  children: [
4913
4914
  Qe,
@@ -4941,8 +4942,8 @@ function Md({
4941
4942
  ] })
4942
4943
  ] });
4943
4944
  }
4944
- const Od = "calendar-workspace", Bd = "ds:[--inc1-nav-block-size:3.5rem]", Wd = "ds:[&_.fc-scrollgrid-section-sticky>*]:!top-[var(--inc1-nav-block-size)]", Li = "ds:relative ds:inline-flex", Mi = "ds:pointer-events-none ds:absolute ds:-top-1 ds:-end-1 ds:z-10";
4945
- function _d({
4945
+ const Bd = "calendar-workspace", Wd = "ds:[--inc1-nav-block-size:3.5rem]", _d = "ds:[&_.fc-scrollgrid-section-sticky>*]:!top-[var(--inc1-nav-block-size)]", Li = "ds:relative ds:inline-flex", Mi = "ds:pointer-events-none ds:absolute ds:-top-1 ds:-end-1 ds:z-10";
4946
+ function zd({
4946
4947
  rows: e,
4947
4948
  setRows: t,
4948
4949
  onFocus: a,
@@ -4973,14 +4974,14 @@ function _d({
4973
4974
  availabilityContext: k,
4974
4975
  availableTools: Y,
4975
4976
  schedulerLicenseKey: ke,
4976
- id: Oe = Od,
4977
+ id: Oe = Bd,
4977
4978
  preferences: F
4978
4979
  }) {
4979
4980
  var Gt;
4980
4981
  const { t: m } = Ie(), W = Tn(), { t: Be } = Ie(), { open: kn } = wa(), I = (s) => `calendarWorkspace.${s}`, T = (s) => `calendarWorkspace.inc1.${s}`, fe = se(null), En = se(null), [Le, $e] = qt(
4981
4982
  Lt.view,
4982
4983
  "day",
4983
- xo,
4984
+ So,
4984
4985
  F
4985
4986
  ), [V, pe] = qt(
4986
4987
  Lt.showWeekends,
@@ -4990,12 +4991,12 @@ function _d({
4990
4991
  ), [H, Ne] = qt(
4991
4992
  Lt.chairIds,
4992
4993
  () => [],
4993
- Pr(W),
4994
+ Fr(W),
4994
4995
  F
4995
4996
  ), [xe, We] = qt(
4996
4997
  Lt.operatorIds,
4997
4998
  () => [],
4998
- Fr(W),
4999
+ Hr(W),
4999
5000
  F
5000
5001
  ), en = (s) => de(s(le)), [Pe, An] = N(
5001
5002
  () => /* @__PURE__ */ new Date(`${W.initialDateIso}T00:00:00`)
@@ -5011,8 +5012,8 @@ function _d({
5011
5012
  var s;
5012
5013
  E && !xt(E.date) && ((s = fe.current) == null || s.gotoDate(E.date));
5013
5014
  }, [E, xt]);
5014
- const Jn = No[Le], Te = Jn === "Month", te = Te ? "none" : D.resourceKind, ht = Te ? "dayGridMonth" : te === "none" ? `timeGrid${Jn}` : `resourceTimeGrid${Jn}${te === "operator" ? "Operator" : "Chair"}`, St = ce(() => W.chairs.map((s) => s.id), [W]), Zn = ce(
5015
- () => Wo(
5015
+ const Jn = xo[Le], Te = Jn === "Month", te = Te ? "none" : D.resourceKind, ht = Te ? "dayGridMonth" : te === "none" ? `timeGrid${Jn}` : `resourceTimeGrid${Jn}${te === "operator" ? "Operator" : "Chair"}`, St = ce(() => W.chairs.map((s) => s.id), [W]), Zn = ce(
5016
+ () => _o(
5016
5017
  e,
5017
5018
  W.inactiveOperatorIds,
5018
5019
  hn ? {
@@ -5022,7 +5023,7 @@ function _d({
5022
5023
  ),
5023
5024
  [e, hn, W]
5024
5025
  ), Fn = ce(
5025
- () => _o({
5026
+ () => zo({
5026
5027
  operators: W.operators,
5027
5028
  inactiveIds: W.inactiveOperatorIds,
5028
5029
  showDisabled: ee,
@@ -5036,13 +5037,13 @@ function _d({
5036
5037
  () => Ni(xe, Fn),
5037
5038
  [xe, Fn]
5038
5039
  ), Dn = ce(
5039
- () => Ao(V),
5040
+ () => Ro(V),
5040
5041
  [V]
5041
- ), mt = Oo(D.window, W), et = ce(() => {
5042
+ ), mt = Bo(D.window, W), et = ce(() => {
5042
5043
  const s = new Date(_);
5043
5044
  return s.setHours(0, 0, 0, 0), [s];
5044
5045
  }, [_]), zt = ce(
5045
- () => bo(
5046
+ () => Io(
5046
5047
  {
5047
5048
  rows: e,
5048
5049
  days: et,
@@ -5080,7 +5081,7 @@ function _d({
5080
5081
  C.setDate(C.getDate() - (Te ? 42 : 7));
5081
5082
  const L = new Date(Pe);
5082
5083
  L.setDate(L.getDate() + (Te ? 42 : 13));
5083
- const K = He && D.orientation === "vertical" && !Te, q = go(
5084
+ const K = He && D.orientation === "vertical" && !Te, q = vo(
5084
5085
  {
5085
5086
  axisKind: te,
5086
5087
  rangeStart: C,
@@ -5112,7 +5113,7 @@ function _d({
5112
5113
  }));
5113
5114
  }
5114
5115
  }
5115
- const Je = v != null && v.length ? [] : mo(
5116
+ const Je = v != null && v.length ? [] : po(
5116
5117
  {
5117
5118
  axisKind: te,
5118
5119
  rangeStart: C,
@@ -5149,7 +5150,7 @@ function _d({
5149
5150
  header renders text: under the initials treatment the
5150
5151
  Avatar derives its letters from the title, so a marker
5151
5152
  would corrupt them. */
5152
- title: Po(
5153
+ title: Fo(
5153
5154
  s,
5154
5155
  W.inactiveOperatorIds.includes(s.id) && D.operatorNameDisplay !== "initials",
5155
5156
  m(T("filters.disabledOperator"))
@@ -5157,12 +5158,12 @@ function _d({
5157
5158
  ...He ? { hiddenDates: W.operatorAbsences[s.id] } : {}
5158
5159
  })) : W.chairs.filter((s) => tn.includes(s.id)).map((s) => ({
5159
5160
  ...s,
5160
- title: $o(s, D.chairNameDisplay)
5161
+ title: Po(s, D.chairNameDisplay)
5161
5162
  })), je = w ? e.find((s) => s.event.id === w.eventId) : void 0;
5162
5163
  we(() => {
5163
5164
  w && !je && (y == null || y());
5164
5165
  }, [w, je, y]);
5165
- const O = w && je ? w.kind : b ? "create" : "default", G = w && je ? je.event.backgroundColor : b == null ? void 0 : b.prefill.colorHex, ue = jo(G), an = w && je ? m(T(`placement.${w.kind}Banner`), {
5166
+ const O = w && je ? w.kind : b ? "create" : "default", G = w && je ? je.event.backgroundColor : b == null ? void 0 : b.prefill.colorHex, ue = Go(G), an = w && je ? m(T(`placement.${w.kind}Banner`), {
5166
5167
  name: le ? je.event.privacyModeTitle ?? "•••" : je.event.title
5167
5168
  }) : b ? b.patientName ? m(T("placement.createBannerNamed"), {
5168
5169
  name: b.patientName
@@ -5189,7 +5190,7 @@ function _d({
5189
5190
  we(() => {
5190
5191
  if (!R || R.tick === Ge.current) return;
5191
5192
  Ge.current = R.tick;
5192
- const s = qo(R, {
5193
+ const s = Yo(R, {
5193
5194
  visibleRange: On.current,
5194
5195
  hiddenDays: Dn,
5195
5196
  selectedChairIds: H,
@@ -5446,7 +5447,7 @@ function _d({
5446
5447
  0
5447
5448
  ), w.kind === "copy") {
5448
5449
  Qn.current += 1;
5449
- const ie = `apt-copy-${Qn.current}`, Ze = Go(
5450
+ const ie = `apt-copy-${Qn.current}`, Ze = Ko(
5450
5451
  L,
5451
5452
  { start: q, resourceId: s.resourceId, axisKind: te },
5452
5453
  ie,
@@ -5542,7 +5543,7 @@ function _d({
5542
5543
  );
5543
5544
  we(() => {
5544
5545
  const s = (C) => {
5545
- const L = Eo(C);
5546
+ const L = Ao(C);
5546
5547
  L && (C.preventDefault(), Pt(L));
5547
5548
  };
5548
5549
  return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
@@ -5555,7 +5556,7 @@ function _d({
5555
5556
  ), Ft = ce(
5556
5557
  () => Qi({
5557
5558
  groups: W.operatorGroups,
5558
- operators: zo(
5559
+ operators: $o(
5559
5560
  W.operators,
5560
5561
  W.inactiveOperatorIds,
5561
5562
  ee
@@ -5569,7 +5570,7 @@ function _d({
5569
5570
  Ue(s), !s && We(
5570
5571
  (C) => C.filter((L) => !W.inactiveOperatorIds.includes(L))
5571
5572
  );
5572
- }, vt = Bo(H, xe), ra = () => {
5573
+ }, vt = Wo(H, xe), ra = () => {
5573
5574
  var s;
5574
5575
  (s = En.current) == null || s.focus(), Ne([]), We([]), Ue(!1), Rn(!0);
5575
5576
  }, oa = m(I(`view.${Le}`)), Ht = ss(W), da = [
@@ -5662,7 +5663,7 @@ function _d({
5662
5663
  me,
5663
5664
  {
5664
5665
  intent: "outline",
5665
- icon: /* @__PURE__ */ n(Tr, {}),
5666
+ icon: /* @__PURE__ */ n(Er, {}),
5666
5667
  "aria-label": m(T("toolbar.addToWaitingList")),
5667
5668
  tooltip: m(T("toolbar.addToWaitingList")),
5668
5669
  onClick: u
@@ -5715,7 +5716,7 @@ function _d({
5715
5716
  me,
5716
5717
  {
5717
5718
  intent: "outline",
5718
- icon: le ? /* @__PURE__ */ n(or, {}) : /* @__PURE__ */ n(dr, {}),
5719
+ icon: le ? /* @__PURE__ */ n(dr, {}) : /* @__PURE__ */ n(cr, {}),
5719
5720
  "aria-label": m(I("actions.privacy")),
5720
5721
  "aria-pressed": le,
5721
5722
  tooltip: m(I("actions.privacy")),
@@ -5739,7 +5740,7 @@ function _d({
5739
5740
  me,
5740
5741
  {
5741
5742
  intent: "outline",
5742
- icon: /* @__PURE__ */ n(fr, {}),
5743
+ icon: /* @__PURE__ */ n(br, {}),
5743
5744
  "aria-label": m(T("toolbar.scheduler")),
5744
5745
  tooltip: m(T("toolbar.scheduler")),
5745
5746
  onClick: () => Re(m(T("toolbar.schedulerToast")))
@@ -5749,7 +5750,7 @@ function _d({
5749
5750
  me,
5750
5751
  {
5751
5752
  intent: "outline",
5752
- icon: /* @__PURE__ */ n(cr, {}),
5753
+ icon: /* @__PURE__ */ n(lr, {}),
5753
5754
  "aria-label": m(T("toolbar.settings")),
5754
5755
  tooltip: m(T("toolbar.settings")),
5755
5756
  onClick: () => Re(m(T("toolbar.settingsToast")))
@@ -5760,7 +5761,7 @@ function _d({
5760
5761
  {
5761
5762
  ref: ln,
5762
5763
  intent: "outline",
5763
- icon: /* @__PURE__ */ n(Lr, {}),
5764
+ icon: /* @__PURE__ */ n(Mr, {}),
5764
5765
  "aria-label": m(I("settings.label")),
5765
5766
  "aria-haspopup": "dialog",
5766
5767
  "aria-expanded": Me,
@@ -5994,7 +5995,7 @@ function _d({
5994
5995
  Z,
5995
5996
  {
5996
5997
  intent: "link",
5997
- startIcon: /* @__PURE__ */ n(Dr, {}),
5998
+ startIcon: /* @__PURE__ */ n(Nr, {}),
5998
5999
  onClick: () => Re(m(T("settings.tutorialToast"))),
5999
6000
  children: m(T("settings.tutorial"))
6000
6001
  }
@@ -6031,7 +6032,7 @@ function _d({
6031
6032
  /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]", children: W.chairs.map((s) => /* @__PURE__ */ n(
6032
6033
  qe,
6033
6034
  {
6034
- label: /* @__PURE__ */ n(rr, { label: s.title, color: s.color }),
6035
+ label: /* @__PURE__ */ n(or, { label: s.title, color: s.color }),
6035
6036
  checked: H.includes(s.id),
6036
6037
  onCheckedChange: (C) => Ne(
6037
6038
  (L) => Mt(L, [s.id], C)
@@ -6110,7 +6111,7 @@ function _d({
6110
6111
  {
6111
6112
  intent: "ghost",
6112
6113
  size: "sm",
6113
- startIcon: /* @__PURE__ */ n(lr, {}),
6114
+ startIcon: /* @__PURE__ */ n(ur, {}),
6114
6115
  "aria-label": m(T("toolbar.resetFiltersCount"), {
6115
6116
  count: vt
6116
6117
  }),
@@ -6137,7 +6138,7 @@ function _d({
6137
6138
  {
6138
6139
  intent: "outline",
6139
6140
  background: "surface",
6140
- endIcon: /* @__PURE__ */ n(ur, {}),
6141
+ endIcon: /* @__PURE__ */ n(hr, {}),
6141
6142
  "aria-label": m(T("view.menuLabel"), { view: oa }),
6142
6143
  children: oa
6143
6144
  }
@@ -6151,7 +6152,7 @@ function _d({
6151
6152
  onValueChange: (s) => Pt(s),
6152
6153
  children: ni.map((s) => /* @__PURE__ */ n(ae.RadioItem, { value: s, children: /* @__PURE__ */ g("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
6153
6154
  /* @__PURE__ */ n("span", { className: "ds:flex-1", children: m(I(`view.${s}`)) }),
6154
- /* @__PURE__ */ n(sr, { keys: [as[s]], size: "sm" })
6155
+ /* @__PURE__ */ n(rr, { keys: [as[s]], size: "sm" })
6155
6156
  ] }) }, s))
6156
6157
  }
6157
6158
  ),
@@ -6198,7 +6199,7 @@ function _d({
6198
6199
  {
6199
6200
  intent: "outline",
6200
6201
  background: "surface",
6201
- icon: /* @__PURE__ */ n(hr, {}),
6202
+ icon: /* @__PURE__ */ n(mr, {}),
6202
6203
  flipIconInRtl: !0,
6203
6204
  "aria-label": Be("calendar.previousPeriod"),
6204
6205
  tooltip: Be("calendar.previousPeriod"),
@@ -6213,7 +6214,7 @@ function _d({
6213
6214
  {
6214
6215
  intent: "outline",
6215
6216
  background: "surface",
6216
- icon: /* @__PURE__ */ n(mr, {}),
6217
+ icon: /* @__PURE__ */ n(pr, {}),
6217
6218
  flipIconInRtl: !0,
6218
6219
  "aria-label": Be("calendar.nextPeriod"),
6219
6220
  tooltip: Be("calendar.nextPeriod"),
@@ -6253,10 +6254,10 @@ function _d({
6253
6254
  return /* @__PURE__ */ g(
6254
6255
  "div",
6255
6256
  {
6256
- className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${Bd}`,
6257
+ className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${Wd}`,
6257
6258
  children: [
6258
6259
  /* @__PURE__ */ g(
6259
- ir,
6260
+ sr,
6260
6261
  {
6261
6262
  variant: "elevated",
6262
6263
  className: "ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ds:[overflow:visible] ds:print:hidden",
@@ -6264,7 +6265,7 @@ function _d({
6264
6265
  Et,
6265
6266
  ca,
6266
6267
  /* @__PURE__ */ n(
6267
- ar,
6268
+ ir,
6268
6269
  {
6269
6270
  id: Oe,
6270
6271
  ref: fe,
@@ -6275,7 +6276,7 @@ function _d({
6275
6276
  resourceLayout: D.orientation,
6276
6277
  resourceLabelVariant: "chip",
6277
6278
  selectedEventId: x,
6278
- className: `ds:[--fc-bg-event-color:var(--muted-foreground)] ${Wd}`,
6279
+ className: `ds:[--fc-bg-event-color:var(--muted-foreground)] ${_d}`,
6279
6280
  showResourceInitials: te === "operator" && D.operatorNameDisplay === "initials",
6280
6281
  verticalResourceLabels: Jn === "Week" && D.orientation === "vertical",
6281
6282
  resourceAreaHeader: te === "operator" ? "operators" : "chairs",
@@ -6299,7 +6300,7 @@ function _d({
6299
6300
  slotMinTime: mt.min,
6300
6301
  slotMaxTime: mt.max,
6301
6302
  slotDuration: D.slotDuration,
6302
- snapDuration: Gr,
6303
+ snapDuration: Kr,
6303
6304
  defaultTimedEventDuration: D.defaultDurationMin,
6304
6305
  nowIndicator: !0,
6305
6306
  toolbar: !1,
@@ -6323,7 +6324,7 @@ function _d({
6323
6324
  }
6324
6325
  ),
6325
6326
  /* @__PURE__ */ n(
6326
- Rd,
6327
+ Ld,
6327
6328
  {
6328
6329
  sections: zt,
6329
6330
  rangeTitle: on(i, _),
@@ -6586,7 +6587,7 @@ function _d({
6586
6587
  }
6587
6588
  );
6588
6589
  }
6589
- const zd = ["whatsapp"], $d = 255, Pd = [];
6590
+ const $d = ["whatsapp"], Pd = 255, Fd = [];
6590
6591
  function xa(e, t) {
6591
6592
  return e === U.appointments ? t("calendarWorkspace.inc1.rail.appointmentsDocked") : e === U.editor ? t("calendarWorkspace.rail.editorDocked") : e === U.bookings ? t("calendarWorkspace.inc1.bookings.title") : e === U.waitingList ? t("calendarWorkspace.waitingList.docked") : t("calendarWorkspace.inc1.rail.findSlotsDocked");
6592
6593
  }
@@ -6607,18 +6608,18 @@ function Yt({
6607
6608
  }),
6608
6609
  [e, t, c, i]
6609
6610
  );
6610
- return /* @__PURE__ */ n(Or, { value: r, children: a });
6611
+ return /* @__PURE__ */ n(Br, { value: r, children: a });
6611
6612
  }
6612
- function Fd({
6613
+ function Hd({
6613
6614
  rows: e,
6614
6615
  locale: t,
6615
6616
  privacy: a,
6616
6617
  onOpenAppointment: i
6617
6618
  }) {
6618
- const { t: c } = Ie(), r = Tn(), [u, h] = N(Qo), d = ce(
6619
- () => nd(
6619
+ const { t: c } = Ie(), r = Tn(), [u, h] = N(Jo), d = ce(
6620
+ () => td(
6620
6621
  e,
6621
- Zo(r.nowIso, u)
6622
+ ed(r.nowIso, u)
6622
6623
  ).map((f) => os(f, a, r)),
6623
6624
  [e, u, a, r]
6624
6625
  );
@@ -6637,11 +6638,11 @@ function Fd({
6637
6638
  onLoadLater: () => h((f) => wi(f, "later")),
6638
6639
  hasMoreEarlier: u.backDays < Na,
6639
6640
  hasMoreLater: u.forwardDays < Na,
6640
- onJumpToDate: (f) => h((p) => ed(p, r.nowIso, f))
6641
+ onJumpToDate: (f) => h((p) => nd(p, r.nowIso, f))
6641
6642
  }
6642
6643
  );
6643
6644
  }
6644
- function Hd({
6645
+ function Vd({
6645
6646
  availableTools: e,
6646
6647
  focus: t,
6647
6648
  rows: a,
@@ -6686,7 +6687,7 @@ function Hd({
6686
6687
  onSignOnDevice: $e,
6687
6688
  onSaveAndReturn: V
6688
6689
  }) {
6689
- const { t: pe } = Ie(), H = Tn(), { openTool: Ne } = Wi(), xe = ce(() => Yr(a), [a]), We = H.practiceFeatures.findFreeSlotsByCare ? H.careDevices : void 0, en = X(
6690
+ const { t: pe } = Ie(), H = Tn(), { openTool: Ne } = Wi(), xe = ce(() => Xr(a), [a]), We = H.practiceFeatures.findFreeSlotsByCare ? H.careDevices : void 0, en = X(
6690
6691
  (_) => H.unsignedRequiredDocs[_] ?? 0,
6691
6692
  [H]
6692
6693
  ), Pe = ce(
@@ -6697,7 +6698,7 @@ function Hd({
6697
6698
  rows: a,
6698
6699
  submitOnEnter: !0,
6699
6700
  confirmCreateBill: !0,
6700
- reminderChannels: zd,
6701
+ reminderChannels: $d,
6701
6702
  /* Frequency + repetition count only: no end date, no closed-day
6702
6703
  skip — the platform's recurrence row stops there. */
6703
6704
  recurrenceExtras: !1,
@@ -6709,7 +6710,7 @@ function Hd({
6709
6710
  reminderCapability: !0,
6710
6711
  firstVisitRequiresPatient: !0,
6711
6712
  priceListPhases: !0,
6712
- descriptionMaxLength: $d,
6713
+ descriptionMaxLength: Pd,
6713
6714
  onSaveAndReturn: V
6714
6715
  }),
6715
6716
  [H.branches, We, en, a, V]
@@ -6737,7 +6738,7 @@ function Hd({
6737
6738
  ), yn = ce(
6738
6739
  () => ({
6739
6740
  devicesByCare: We,
6740
- maxRangeDays: lo,
6741
+ maxRangeDays: uo,
6741
6742
  pagerStepDays: 30,
6742
6743
  /* C7 — the platform scopes the search with grouped multi-select
6743
6744
  dropdowns, not one Select plus "Any". */
@@ -6758,11 +6759,11 @@ function Hd({
6758
6759
  () => ({
6759
6760
  id: U.appointments,
6760
6761
  label: pe("calendarWorkspace.inc1.rail.appointments"),
6761
- icon: /* @__PURE__ */ n(pr, { "aria-hidden": "true" }),
6762
+ icon: /* @__PURE__ */ n(gr, { "aria-hidden": "true" }),
6762
6763
  /* fill: the timeline owns its scroll (day anchoring + edge loads). */
6763
6764
  fill: !0,
6764
6765
  panel: /* @__PURE__ */ n(
6765
- Fd,
6766
+ Hd,
6766
6767
  {
6767
6768
  rows: a,
6768
6769
  locale: i,
@@ -6795,7 +6796,7 @@ function Hd({
6795
6796
  the name, the name a link to the patient folder, and
6796
6797
  the highlighted anamnesis ANSWERS, not just a count. */
6797
6798
  /* @__PURE__ */ n(
6798
- vd,
6799
+ fd,
6799
6800
  {
6800
6801
  row: r,
6801
6802
  patient: u,
@@ -6806,7 +6807,7 @@ function Hd({
6806
6807
  )
6807
6808
  ),
6808
6809
  after: /* @__PURE__ */ n(
6809
- bd,
6810
+ Id,
6810
6811
  {
6811
6812
  row: r,
6812
6813
  patient: u,
@@ -6818,11 +6819,11 @@ function Hd({
6818
6819
  platform: dn
6819
6820
  }
6820
6821
  ),
6821
- history: Qr(
6822
+ history: Jr(
6822
6823
  B[r.event.id] ?? []
6823
6824
  ),
6824
6825
  notes: /* @__PURE__ */ n(
6825
- hd,
6826
+ md,
6826
6827
  {
6827
6828
  patientId: u.id,
6828
6829
  seam: b(u.id),
@@ -6893,7 +6894,7 @@ function Hd({
6893
6894
  icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" }),
6894
6895
  badgeCount: kn.length,
6895
6896
  panel: /* @__PURE__ */ n(Yt, { onOpenSheet: h, onAnnounce: d, children: /* @__PURE__ */ n(
6896
- xd,
6897
+ Sd,
6897
6898
  {
6898
6899
  bookings: kn,
6899
6900
  locale: i,
@@ -6925,7 +6926,7 @@ function Hd({
6925
6926
  it docks in the rail like every other panel and the header's
6926
6927
  back arrow returns to the list (the History / Notes idiom). */
6927
6928
  panel: /* @__PURE__ */ n(Yt, { onOpenSheet: h, onAnnounce: d, children: F ? /* @__PURE__ */ n(
6928
- wd,
6929
+ Td,
6929
6930
  {
6930
6931
  entry: F.entry,
6931
6932
  onSave: m,
@@ -6933,7 +6934,7 @@ function Hd({
6933
6934
  },
6934
6935
  ((_ = F.entry) == null ? void 0 : _.id) ?? "new"
6935
6936
  ) : /* @__PURE__ */ n(
6936
- Sd,
6937
+ wd,
6937
6938
  {
6938
6939
  entries: E,
6939
6940
  rows: a,
@@ -6972,7 +6973,7 @@ function Hd({
6972
6973
  /* Keyed by the seed tick so a waiting-list hand-off re-seeds a
6973
6974
  fresh, prefilled, auto-searched panel. */
6974
6975
  /* @__PURE__ */ n(Yt, { onOpenSheet: h, onAnnounce: d, children: /* @__PURE__ */ n(
6975
- Md,
6976
+ Od,
6976
6977
  {
6977
6978
  rows: a,
6978
6979
  locale: i,
@@ -7068,15 +7069,15 @@ function Hd({
7068
7069
  A.current !== S && (A.current = S, _e(U.waitingList));
7069
7070
  }, [S, _e]), null;
7070
7071
  }
7071
- function Rl(e, t = Qa) {
7072
+ function Ml(e, t = Qa) {
7072
7073
  return { ...is(
7073
7074
  t.get(Lt.display)
7074
7075
  ) ?? Da, ...e };
7075
7076
  }
7076
- function Ll({ data: e, ...t }) {
7077
- return /* @__PURE__ */ n(Mr, { value: e, children: /* @__PURE__ */ n(fs, { globalTools: Pd, children: /* @__PURE__ */ n(Vd, { data: e, ...t }) }) });
7077
+ function Ol({ data: e, ...t }) {
7078
+ return /* @__PURE__ */ n(ys, { children: /* @__PURE__ */ n(Or, { value: e, children: /* @__PURE__ */ n(fs, { globalTools: Fd, children: /* @__PURE__ */ n(Ud, { data: e, ...t }) }) }) });
7078
7079
  }
7079
- function Vd({
7080
+ function Ud({
7080
7081
  journey: e,
7081
7082
  data: t,
7082
7083
  locale: a,
@@ -7092,7 +7093,7 @@ function Vd({
7092
7093
  id: E
7093
7094
  }) {
7094
7095
  const { t: S, i18n: D } = Ie(), B = a ?? D.language ?? "en", j = (f ?? ei).join("|"), P = ce(
7095
- () => Do(j.split("|")),
7096
+ () => No(j.split("|")),
7096
7097
  [j]
7097
7098
  ), w = (c == null ? void 0 : c.editAppointment) === !1, [y, b] = qt(
7098
7099
  Lt.display,
@@ -7172,7 +7173,7 @@ function Vd({
7172
7173
  (O) => O === "patient-care-plan" ? (Re(S("calendarWorkspace.inc1.dialogs.carePlanToast")), null) : O === "appointment-details" ? P.has(U.editor) ? (un("details"), U.editor) : U.appointments : O === "appointment-editor" ? P.has(U.editor) ? (un("create"), U.editor) : U.appointments : O === "backlog" ? P.has(U.waitingList) ? U.waitingList : U.appointments : P.has(U.findSlots) ? (Ne(), U.findSlots) : U.appointments,
7173
7174
  [S, Ne, P]
7174
7175
  ), _ = R ? Me.find((O) => O.event.id === R.eventId) ?? null : null, $ = _ != null && _.event.patientId ? t.patientById(String(_.event.patientId)) : void 0, Ve = de.length, zn = ce(
7175
- () => ad(Me, t),
7176
+ () => id(Me, t),
7176
7177
  [Me, t]
7177
7178
  ), [Qe, qn] = N(null), ne = X(
7178
7179
  (O, G) => {
@@ -7187,9 +7188,9 @@ function Vd({
7187
7188
  ).filter((nt) => nt !== ue.event.id);
7188
7189
  if (Ge.length > 0) {
7189
7190
  o(
7190
- (Vn) => Ko(Vn, ue, O, Ge, t)
7191
+ (Vn) => qo(Vn, ue, O, Ge, t)
7191
7192
  );
7192
- const nt = Zr(ue, O, t).find(
7193
+ const nt = eo(ue, O, t).find(
7193
7194
  (Vn) => Vn.kind === "edited"
7194
7195
  );
7195
7196
  for (const Vn of Ge)
@@ -7355,7 +7356,7 @@ function Vd({
7355
7356
  children: [
7356
7357
  /* @__PURE__ */ n(Ct, { "aria-live": "polite", children: vn }),
7357
7358
  /* @__PURE__ */ n(
7358
- Hd,
7359
+ Vd,
7359
7360
  {
7360
7361
  availableTools: P,
7361
7362
  focus: R,
@@ -7408,7 +7409,7 @@ function Vd({
7408
7409
  onOpenSheet: A,
7409
7410
  onAnnounce: Ye,
7410
7411
  children: /* @__PURE__ */ n(
7411
- _d,
7412
+ zd,
7412
7413
  {
7413
7414
  id: E,
7414
7415
  availableTools: P,
@@ -7463,18 +7464,18 @@ function Vd({
7463
7464
  export {
7464
7465
  Lt as C,
7465
7466
  Ja as D,
7466
- Or as S,
7467
- Al as V,
7467
+ Br as S,
7468
+ Ll as V,
7468
7469
  U as W,
7469
- Mr as a,
7470
- Ll as b,
7470
+ Or as a,
7471
+ Ol as b,
7471
7472
  Da as c,
7472
7473
  ni as d,
7473
7474
  qt as e,
7474
7475
  wa as f,
7475
- Rl as i,
7476
+ Ml as i,
7476
7477
  Qa as m,
7477
- El as r,
7478
+ Rl as r,
7478
7479
  Tn as u
7479
7480
  };
7480
- //# sourceMappingURL=calendar-workspace-CGuY4kmv.js.map
7481
+ //# sourceMappingURL=calendar-workspace-CqVe4v5s.js.map