@alfadocs/ui-kit-debug 1.85.0 → 1.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as S, Fragment as ie } from "react/jsx-runtime";
2
2
  import { forwardRef as Cn, useId as at, useRef as M, useCallback as ke, useState as H, useEffect as q, useMemo as $, Fragment as ns, useLayoutEffect as an, useImperativeHandle as ss } from "react";
3
- import { c as Dt } from "./index-D2ZczOXr.js";
3
+ import { c as At } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Z, Trans as Tn } from "react-i18next";
5
5
  import { u as rs } from "./registry-DvAUVLHh.js";
6
6
  import { A as oe } from "./alert-9kEwDza3.js";
@@ -14,47 +14,48 @@ import { E as ds } from "./email-input-C7THAwh2.js";
14
14
  import { F as Ke } from "./form-field-CyHfOVKF.js";
15
15
  import { P as ls } from "./phone-input-DJ4BN8tG.js";
16
16
  import { T as us } from "./text-area-COMVJ1yE.js";
17
- import { T as zt } from "./text-input-CaG9ApoE.js";
17
+ import { T as qt } from "./text-input-CaG9ApoE.js";
18
18
  import { A as ms } from "./address-fields-CfnXK8RT.js";
19
19
  import { S as An } from "./spinner-CoflYlEx.js";
20
20
  import { a as Zt } from "./format-price-BcFBa-WP.js";
21
21
  import { C as ps } from "./credit-card-D9XZsHGA.js";
22
- import { O as fs } from "./otp-input-gV1446Dw.js";
23
- import { i as gs } from "./safe-href-5dbsfbQn.js";
22
+ import { C as fs } from "./card-BA4Ig_kn.js";
23
+ import { O as gs } from "./otp-input-gV1446Dw.js";
24
+ import { i as hs } from "./safe-href-5dbsfbQn.js";
24
25
  import { B as Dn } from "./badge-BUk4RjTS.js";
25
26
  import { I as bn } from "./icon-button-S8_weU3g.js";
26
27
  import { S as Xt } from "./select-4S-eYZUf.js";
27
28
  import { C as un } from "./combobox-CDPm_n0p.js";
28
29
  import { M as mn } from "./multi-select-i5MFRpXg.js";
29
- import { c as hs } from "./option-row-Dc7BrbK8.js";
30
- import { S as Wt } from "./skeleton-tTWJpvAq.js";
30
+ import { c as vs } from "./option-row-Dc7BrbK8.js";
31
+ import { S as Jt } from "./skeleton-tTWJpvAq.js";
31
32
  import { E as Mn } from "./empty-state-DwJ5YNzz.js";
32
- import { S as vs } from "./stepper-accordion-DDTSOUHc.js";
33
- import { S as bs } from "./stepper-progress-D6H8wQiV.js";
34
- import { S as ys } from "./slot-grid-Bb13H9Rl.js";
33
+ import { S as bs } from "./stepper-accordion-DDTSOUHc.js";
34
+ import { S as ys } from "./stepper-progress-D6H8wQiV.js";
35
+ import { S as ks } from "./slot-grid-Bb13H9Rl.js";
35
36
  import { p as fe } from "./parseISO-DZZ5a-zK.js";
36
- import { C as ks } from "./chevron-down-DWE7GSq9.js";
37
- import { s as yt, f as Jt, d as yn } from "./format--x5jypvH.js";
38
- import { x as On, a as kt, b as sn, i as Ss, s as At, m as xs, y as Kt } from "./date-picker-variants-Dt6UbonG.js";
39
- import { s as Is } from "./subDays-DKISP2nE.js";
40
- import { C as Ns } from "./chevron-left-B8cOyH-V.js";
41
- import { C as ws } from "./chevron-right-I9AeSxH2.js";
37
+ import { C as Ss } from "./chevron-down-DWE7GSq9.js";
38
+ import { s as yt, f as Gt, d as yn } from "./format--x5jypvH.js";
39
+ import { x as On, a as kt, b as sn, i as xs, s as Tt, m as Is, y as zt } from "./date-picker-variants-Dt6UbonG.js";
40
+ import { s as Ns } from "./subDays-DKISP2nE.js";
41
+ import { C as ws } from "./chevron-left-B8cOyH-V.js";
42
+ import { C as Cs } from "./chevron-right-I9AeSxH2.js";
42
43
  import { c as Ce } from "./createLucideIcon-DhHxpK9K.js";
43
- import { M as Cs, S as Ts } from "./sun-Bj9Mr553.js";
44
- import { S as As } from "./stethoscope-sZXGC43m.js";
45
- import { H as Ds } from "./heart-pulse-BCppJyN2.js";
46
- import { E as Ms } from "./eye-BjhN2nYf.js";
47
- import { B as Os } from "./baby-Dku-Xvg9.js";
48
- import { S as Es } from "./scan-line-CNseIHQ0.js";
49
- import { A as Fs } from "./astroid-BN4f5VXU.js";
50
- import { C as Rs } from "./clipboard-check-BeAGxDVT.js";
44
+ import { M as Ts, S as As } from "./sun-Bj9Mr553.js";
45
+ import { S as Ds } from "./stethoscope-sZXGC43m.js";
46
+ import { H as Ms } from "./heart-pulse-BCppJyN2.js";
47
+ import { E as Os } from "./eye-BjhN2nYf.js";
48
+ import { B as Es } from "./baby-Dku-Xvg9.js";
49
+ import { S as Fs } from "./scan-line-CNseIHQ0.js";
50
+ import { A as Rs } from "./astroid-BN4f5VXU.js";
51
+ import { C as _s } from "./clipboard-check-BeAGxDVT.js";
51
52
  /**
52
53
  * @license lucide-react v1.22.0 - ISC
53
54
  *
54
55
  * This source code is licensed under the ISC license.
55
56
  * See the LICENSE file in the root directory of this source tree.
56
57
  */
57
- const _s = [
58
+ const Ls = [
58
59
  [
59
60
  "path",
60
61
  {
@@ -62,14 +63,14 @@ const _s = [
62
63
  key: "169zse"
63
64
  }
64
65
  ]
65
- ], Ls = Ce("activity", _s);
66
+ ], Bs = Ce("activity", Ls);
66
67
  /**
67
68
  * @license lucide-react v1.22.0 - ISC
68
69
  *
69
70
  * This source code is licensed under the ISC license.
70
71
  * See the LICENSE file in the root directory of this source tree.
71
72
  */
72
- const Bs = [
73
+ const Ps = [
73
74
  [
74
75
  "path",
75
76
  {
@@ -77,14 +78,14 @@ const Bs = [
77
78
  key: "w610uw"
78
79
  }
79
80
  ]
80
- ], Ps = Ce("bone", Bs);
81
+ ], Vs = Ce("bone", Ps);
81
82
  /**
82
83
  * @license lucide-react v1.22.0 - ISC
83
84
  *
84
85
  * This source code is licensed under the ISC license.
85
86
  * See the LICENSE file in the root directory of this source tree.
86
87
  */
87
- const Vs = [
88
+ const $s = [
88
89
  ["path", { d: "M12 18V5", key: "adv99a" }],
89
90
  ["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
90
91
  ["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
@@ -93,14 +94,14 @@ const Vs = [
93
94
  ["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
94
95
  ["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
95
96
  ["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
96
- ], $s = Ce("brain", Vs);
97
+ ], qs = Ce("brain", $s);
97
98
  /**
98
99
  * @license lucide-react v1.22.0 - ISC
99
100
  *
100
101
  * This source code is licensed under the ISC license.
101
102
  * See the LICENSE file in the root directory of this source tree.
102
103
  */
103
- const qs = [
104
+ const zs = [
104
105
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
105
106
  ["path", { d: "M16 2v4", key: "4m81vk" }],
106
107
  ["path", { d: "M3 10h18", key: "8toen8" }],
@@ -109,76 +110,76 @@ const qs = [
109
110
  ["path", { d: "M13 18H7", key: "bb0bb7" }],
110
111
  ["path", { d: "M7 14h.01", key: "1qa3f1" }],
111
112
  ["path", { d: "M17 18h.01", key: "1bdyru" }]
112
- ], zs = Ce("calendar-range", qs);
113
+ ], Ks = Ce("calendar-range", zs);
113
114
  /**
114
115
  * @license lucide-react v1.22.0 - ISC
115
116
  *
116
117
  * This source code is licensed under the ISC license.
117
118
  * See the LICENSE file in the root directory of this source tree.
118
119
  */
119
- const Ks = [
120
+ const js = [
120
121
  ["path", { d: "M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0", key: "1dfaln" }],
121
122
  ["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
122
- ], js = Ce("ear", Ks);
123
+ ], Us = Ce("ear", js);
123
124
  /**
124
125
  * @license lucide-react v1.22.0 - ISC
125
126
  *
126
127
  * This source code is licensed under the ISC license.
127
128
  * See the LICENSE file in the root directory of this source tree.
128
129
  */
129
- const Us = [
130
+ const Hs = [
130
131
  ["path", { d: "M6 18h8", key: "1borvv" }],
131
132
  ["path", { d: "M3 22h18", key: "8prr45" }],
132
133
  ["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
133
134
  ["path", { d: "M9 14h2", key: "197e7h" }],
134
135
  ["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
135
136
  ["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
136
- ], Hs = Ce("microscope", Us);
137
+ ], Gs = Ce("microscope", Hs);
137
138
  /**
138
139
  * @license lucide-react v1.22.0 - ISC
139
140
  *
140
141
  * This source code is licensed under the ISC license.
141
142
  * See the LICENSE file in the root directory of this source tree.
142
143
  */
143
- const Gs = [
144
+ const Js = [
144
145
  [
145
146
  "path",
146
147
  { d: "m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z", key: "wa1lgi" }
147
148
  ],
148
149
  ["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
149
- ], Js = Ce("pill", Gs);
150
+ ], Ws = Ce("pill", Js);
150
151
  /**
151
152
  * @license lucide-react v1.22.0 - ISC
152
153
  *
153
154
  * This source code is licensed under the ISC license.
154
155
  * See the LICENSE file in the root directory of this source tree.
155
156
  */
156
- const Ws = [
157
+ const Ys = [
157
158
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
158
159
  ["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
159
160
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
160
161
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
161
162
  ["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
162
- ], Ys = Ce("scissors", Ws);
163
+ ], Zs = Ce("scissors", Ys);
163
164
  /**
164
165
  * @license lucide-react v1.22.0 - ISC
165
166
  *
166
167
  * This source code is licensed under the ISC license.
167
168
  * See the LICENSE file in the root directory of this source tree.
168
169
  */
169
- const Zs = [
170
+ const Xs = [
170
171
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
171
172
  ["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
172
173
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
173
174
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
174
- ], Xs = Ce("smile", Zs);
175
+ ], Qs = Ce("smile", Xs);
175
176
  /**
176
177
  * @license lucide-react v1.22.0 - ISC
177
178
  *
178
179
  * This source code is licensed under the ISC license.
179
180
  * See the LICENSE file in the root directory of this source tree.
180
181
  */
181
- const Qs = [
182
+ const er = [
182
183
  ["path", { d: "M12 10V2", key: "16sf7g" }],
183
184
  ["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
184
185
  ["path", { d: "M2 18h2", key: "j10viu" }],
@@ -187,25 +188,25 @@ const Qs = [
187
188
  ["path", { d: "M22 22H2", key: "19qnx5" }],
188
189
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
189
190
  ["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
190
- ], er = Ce("sunset", Qs);
191
+ ], tr = Ce("sunset", er);
191
192
  /**
192
193
  * @license lucide-react v1.22.0 - ISC
193
194
  *
194
195
  * This source code is licensed under the ISC license.
195
196
  * See the LICENSE file in the root directory of this source tree.
196
197
  */
197
- const tr = [
198
+ const nr = [
198
199
  ["path", { d: "m18 2 4 4", key: "22kx64" }],
199
200
  ["path", { d: "m17 7 3-3", key: "1w1zoj" }],
200
201
  ["path", { d: "M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5", key: "1exhtz" }],
201
202
  ["path", { d: "m9 11 4 4", key: "rovt3i" }],
202
203
  ["path", { d: "m5 19-3 3", key: "59f2uf" }],
203
204
  ["path", { d: "m14 4 6 6", key: "yqp9t2" }]
204
- ], kn = Ce("syringe", tr);
205
- function nr(e, t, s) {
205
+ ], kn = Ce("syringe", nr);
206
+ function sr(e, t, s) {
206
207
  return On(e, -1, s);
207
208
  }
208
- const sr = {
209
+ const rr = {
209
210
  id: "booking",
210
211
  // `view_change` removed (0.69): the layout `variant` is a fixed prop — the
211
212
  // handle exposes only `getVariant` (state), no action mutates it. The flow's
@@ -285,25 +286,25 @@ const sr = {
285
286
  "email",
286
287
  "whatsapp",
287
288
  "sms"
288
- ], Re = "all", rr = "de";
289
- function ir(e) {
289
+ ], Re = "all", ir = "de";
290
+ function or(e) {
290
291
  const t = e.lockedOperatorId;
291
292
  return [...t ? e.operatorsByService ? e.specialties.filter(
292
293
  (i) => e.services.some(
293
294
  (r) => {
294
- var a;
295
- return r.specialtyId === i.id && ((a = r.operatorIds) == null ? void 0 : a.includes(t));
295
+ var c;
296
+ return r.specialtyId === i.id && ((c = r.operatorIds) == null ? void 0 : c.includes(t));
296
297
  }
297
298
  )
298
299
  ) : e.specialties.filter((i) => {
299
300
  var r;
300
301
  return (r = i.operatorIds) == null ? void 0 : r.includes(t);
301
302
  }) : e.specialties].sort((i, r) => {
302
- const a = i.sequenceNumber ?? Number.POSITIVE_INFINITY, c = r.sequenceNumber ?? Number.POSITIVE_INFINITY;
303
- return a - c;
303
+ const c = i.sequenceNumber ?? Number.POSITIVE_INFINITY, a = r.sequenceNumber ?? Number.POSITIVE_INFINITY;
304
+ return c - a;
304
305
  });
305
306
  }
306
- function or(e) {
307
+ function ar(e) {
307
308
  let t = e.services;
308
309
  if (e.lockedOperatorId && (t = t.filter(
309
310
  (i) => {
@@ -318,13 +319,13 @@ function or(e) {
318
319
  }
319
320
  return t;
320
321
  }
321
- function ar(e) {
322
+ function cr(e) {
322
323
  const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties, s = Ue(e.value);
323
324
  if ((!t || e.operatorsByService) && s.length > 0)
324
325
  return e.operators.filter(
325
326
  (i) => {
326
327
  var r;
327
- return (r = i.appointmentBookingReasonIds) == null ? void 0 : r.some((a) => s.includes(a));
328
+ return (r = i.appointmentBookingReasonIds) == null ? void 0 : r.some((c) => s.includes(c));
328
329
  }
329
330
  );
330
331
  if (t) {
@@ -332,18 +333,18 @@ function ar(e) {
332
333
  if (i.length > 0)
333
334
  return e.operators.filter(
334
335
  (r) => {
335
- var a;
336
- return (a = r.specialtyIds) == null ? void 0 : a.some((c) => i.includes(c));
336
+ var c;
337
+ return (c = r.specialtyIds) == null ? void 0 : c.some((a) => i.includes(a));
337
338
  }
338
339
  );
339
340
  }
340
341
  return [];
341
342
  }
342
- function cr(e, t) {
343
- const s = e.country === rr, i = !s || e.value.insuranceType !== void 0, a = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, c = et(e.value).length > 0, m = !a || c, p = Ue(e.value).length > 0, f = !m || p, v = t.operators, h = !!e.allowOperatorSelection && f && p && !e.lockedOperatorId && v.length > 1, d = f && p, I = (!d || e.value.date !== void 0) && e.value.date !== void 0, F = (!I || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, N = p && v.length === 0;
343
+ function dr(e, t) {
344
+ const s = e.country === ir, i = !s || e.value.insuranceType !== void 0, c = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, a = et(e.value).length > 0, m = !c || a, p = Ue(e.value).length > 0, f = !m || p, v = t.operators, h = !!e.allowOperatorSelection && f && p && !e.lockedOperatorId && v.length > 1, d = f && p, I = (!d || e.value.date !== void 0) && e.value.date !== void 0, F = (!I || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, N = p && v.length === 0;
344
345
  return {
345
346
  insurance: s,
346
- specialty: a,
347
+ specialty: c,
347
348
  service: m,
348
349
  operator: h,
349
350
  date: d,
@@ -352,7 +353,7 @@ function cr(e, t) {
352
353
  onboardingIncomplete: N
353
354
  };
354
355
  }
355
- function dr(e, t) {
356
+ function lr(e, t) {
356
357
  const s = [];
357
358
  return t.insurance && s.push(1), t.specialty && s.push(2), s.push(3), t.operator && s.push(4), s.push(5), s.push(6), s.push(7), {
358
359
  currentStep: s.find(
@@ -383,18 +384,18 @@ function je(e, t) {
383
384
  return !1;
384
385
  }
385
386
  }
386
- function lr(e) {
387
+ function ur(e) {
387
388
  const t = {
388
- specialties: ir(e),
389
- services: or(e),
390
- operators: ar(e)
391
- }, s = cr(e, t), { currentStep: i, visibleSteps: r } = dr(e, s);
392
- let a;
389
+ specialties: or(e),
390
+ services: ar(e),
391
+ operators: cr(e)
392
+ }, s = dr(e, t), { currentStep: i, visibleSteps: r } = lr(e, s);
393
+ let c;
393
394
  if (e.value.date && e.value.slotKey) {
394
395
  const f = e.availableSlots[e.value.date];
395
- f && (a = f.find((v) => v.key === e.value.slotKey));
396
+ f && (c = f.find((v) => v.key === e.value.slotKey));
396
397
  }
397
- const c = Ue(e.value), l = c.length > 0 ? e.services.find((f) => f.id === c[0]) : void 0, m = et(e.value).length > 0, p = c.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!s.insurance || e.value.insuranceType !== void 0) && (!s.specialty || m);
398
+ const a = Ue(e.value), l = a.length > 0 ? e.services.find((f) => f.id === a[0]) : void 0, m = et(e.value).length > 0, p = a.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!s.insurance || e.value.insuranceType !== void 0) && (!s.specialty || m);
398
399
  return {
399
400
  gates: s,
400
401
  filtered: t,
@@ -403,7 +404,7 @@ function lr(e) {
403
404
  visibleSteps: r,
404
405
  isReadyToSubmit: p,
405
406
  durationMin: l == null ? void 0 : l.durationMin,
406
- selectedSlot: a
407
+ selectedSlot: c
407
408
  };
408
409
  }
409
410
  function En(e, t) {
@@ -518,13 +519,13 @@ function Vn(e, t) {
518
519
  slotKey: t
519
520
  };
520
521
  }
521
- function ur(e, t) {
522
+ function mr(e, t) {
522
523
  let s = e;
523
524
  if (t.lockedOperatorId && s.operatorId !== t.lockedOperatorId && (s = { ...s, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && s.specialtyId === void 0 && s.specialtyIds === void 0 && (s = { ...s, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
524
- const r = et(s), a = r.length > 0 ? t.services.filter(
525
- (c) => c.specialtyId && r.includes(c.specialtyId)
525
+ const r = et(s), c = r.length > 0 ? t.services.filter(
526
+ (a) => a.specialtyId && r.includes(a.specialtyId)
526
527
  ) : t.services;
527
- a.length === 1 && s.serviceId === void 0 && s.serviceIds === void 0 && (s = { ...s, serviceId: a[0].id }, s.operatorId === void 0 && s.operatorIds === void 0 && (s = { ...s, operatorId: Re }));
528
+ c.length === 1 && s.serviceId === void 0 && s.serviceIds === void 0 && (s = { ...s, serviceId: c[0].id }, s.operatorId === void 0 && s.operatorIds === void 0 && (s = { ...s, operatorId: Re }));
528
529
  }
529
530
  return s;
530
531
  }
@@ -532,7 +533,7 @@ function $n(e) {
532
533
  if (e.operatorId && e.operatorId !== Re)
533
534
  return e.operatorId;
534
535
  }
535
- function mr(e) {
536
+ function pr(e) {
536
537
  if (!e) return !1;
537
538
  const t = e.trim();
538
539
  return /^\+?\d[\d\s\-()]{6,}$/.test(t);
@@ -544,20 +545,20 @@ function pn(e) {
544
545
  function qn(e, t) {
545
546
  return t ?? (e.length === 1 ? e : ["email"]);
546
547
  }
547
- function pr(e, t, s) {
548
+ function fr(e, t, s) {
548
549
  const i = pn(e), r = new Set(i);
549
550
  if (s)
550
551
  return cn.filter(
551
552
  (p) => s.includes(p) && r.has(p)
552
553
  );
553
- const a = [];
554
- r.has("email") && a.push("email");
555
- const c = mr(t), l = r.has("whatsapp");
556
- l && c && a.push("whatsapp"), !l && r.has("sms") && a.push("sms");
557
- const m = new Set(a);
554
+ const c = [];
555
+ r.has("email") && c.push("email");
556
+ const a = pr(t), l = r.has("whatsapp");
557
+ l && a && c.push("whatsapp"), !l && r.has("sms") && c.push("sms");
558
+ const m = new Set(c);
558
559
  return cn.filter((p) => m.has(p));
559
560
  }
560
- const fr = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F\u06D4\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF])+/gi, gr = /* @__PURE__ */ new Set([
561
+ const gr = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F\u06D4\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF])+/gi, hr = /* @__PURE__ */ new Set([
561
562
  ".",
562
563
  ",",
563
564
  ";",
@@ -567,15 +568,15 @@ const fr = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F
567
568
  "'",
568
569
  "»",
569
570
  "›"
570
- ]), hr = { ")": "(", "]": "[", "}": "{" }, Sn = (e, t) => e.split(t).length - 1;
571
- function vr(e) {
571
+ ]), vr = { ")": "(", "]": "[", "}": "{" }, Sn = (e, t) => e.split(t).length - 1;
572
+ function br(e) {
572
573
  const t = {};
573
- for (const [i, r] of Object.entries(hr))
574
+ for (const [i, r] of Object.entries(vr))
574
575
  t[i] = Sn(e, i) - Sn(e, r);
575
576
  let s = e.length;
576
577
  for (; s > 0; ) {
577
578
  const i = e[s - 1];
578
- if (gr.has(i))
579
+ if (hr.has(i))
579
580
  s -= 1;
580
581
  else if (i in t && t[i] > 0)
581
582
  t[i] -= 1, s -= 1;
@@ -584,12 +585,12 @@ function vr(e) {
584
585
  }
585
586
  return e.slice(0, s);
586
587
  }
587
- const br = /[\u0600-\u06FF\u3040-\u30FF\u3400-\u9FFF\uAC00-\uD7AF]/, yr = /[A-Za-z0-9]/;
588
- function kr(e) {
589
- const t = e.search(br);
590
- return t > 0 && yr.test(e[t - 1]) ? e.slice(0, t) : e;
591
- }
588
+ const yr = /[\u0600-\u06FF\u3040-\u30FF\u3400-\u9FFF\uAC00-\uD7AF]/, kr = /[A-Za-z0-9]/;
592
589
  function Sr(e) {
590
+ const t = e.search(yr);
591
+ return t > 0 && kr.test(e[t - 1]) ? e.slice(0, t) : e;
592
+ }
593
+ function xr(e) {
593
594
  try {
594
595
  const { protocol: t, hostname: s } = new URL(e);
595
596
  return (t === "http:" || t === "https:") && s !== "";
@@ -597,21 +598,21 @@ function Sr(e) {
597
598
  return !1;
598
599
  }
599
600
  }
600
- function xr(e) {
601
+ function Ir(e) {
601
602
  const t = [];
602
603
  let s = 0;
603
604
  const i = (r) => {
604
605
  if (r === "") return;
605
- const a = t[t.length - 1];
606
- (a == null ? void 0 : a.kind) === "text" ? a.text += r : t.push({ kind: "text", text: r });
606
+ const c = t[t.length - 1];
607
+ (c == null ? void 0 : c.kind) === "text" ? c.text += r : t.push({ kind: "text", text: r });
607
608
  };
608
- for (const r of e.matchAll(fr)) {
609
- const a = r.index ?? 0, c = vr(kr(r[0]));
610
- Sr(c) && (i(e.slice(s, a)), t.push({ kind: "link", text: c, href: c }), s = a + c.length);
609
+ for (const r of e.matchAll(gr)) {
610
+ const c = r.index ?? 0, a = br(Sr(r[0]));
611
+ xr(a) && (i(e.slice(s, c)), t.push({ kind: "link", text: a, href: a }), s = c + a.length);
611
612
  }
612
613
  return i(e.slice(s)), t;
613
614
  }
614
- const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 300, rn = "ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]", jt = (e) => e && /^https?:\/\//i.test(e) ? e : void 0, wr = (e, t) => ({
615
+ const xn = 500, Nr = /^[A-Z0-9]{16}$/, wr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 300, rn = "ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]", Kt = (e) => e && /^https?:\/\//i.test(e) ? e : void 0, Cr = (e, t) => ({
615
616
  street: (e == null ? void 0 : e.address.line1) ?? "",
616
617
  city: (e == null ? void 0 : e.address.city) ?? "",
617
618
  postcode: (e == null ? void 0 : e.address.postalCode) ?? "",
@@ -619,7 +620,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
619
620
  // The practice's country only until the patient has an address at all.
620
621
  country: (e ? e.address.country : t).toLowerCase(),
621
622
  formatted: ""
622
- }), Cr = (e, t, s = null) => ({
623
+ }), Tr = (e, t, s = null) => ({
623
624
  name: t,
624
625
  address: {
625
626
  line1: e.street,
@@ -629,7 +630,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
629
630
  postalCode: e.postcode,
630
631
  country: e.country.toUpperCase()
631
632
  }
632
- }), Tr = Dt("ds:flex ds:flex-col ds:border", {
633
+ }), Ar = At("ds:flex ds:flex-col ds:border", {
633
634
  variants: {
634
635
  noticeStyle: {
635
636
  plain: "ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border-[var(--border)] ds:bg-[var(--muted)] ds:p-[var(--spacing-sm)]",
@@ -637,17 +638,17 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
637
638
  }
638
639
  },
639
640
  defaultVariants: { noticeStyle: "highlighted" }
640
- }), Ar = ["it", "ch", "de", "at", "fr", "sm"], G = {
641
+ }), Dr = ["it", "ch", "de", "at", "fr", "sm"], G = {
641
642
  country: "billing.country",
642
643
  street: "billing.street",
643
644
  city: "billing.city",
644
645
  postcode: "billing.postcode",
645
646
  province: "billing.province"
646
- }, zn = /^\d{5}$/, Dr = (e) => {
647
+ }, zn = /^\d{5}$/, Mr = (e) => {
647
648
  if (!e) return !1;
648
- const { line1: t, city: s, postalCode: i, country: r, state: a } = e.address;
649
- return !t.trim() || !s.trim() || !i.trim() || !r.trim() ? !1 : r.toUpperCase() !== "IT" ? !0 : !!a.trim() && zn.test(i.trim());
650
- }, Mr = (e, t) => {
649
+ const { line1: t, city: s, postalCode: i, country: r, state: c } = e.address;
650
+ return !t.trim() || !s.trim() || !i.trim() || !r.trim() ? !1 : r.toUpperCase() !== "IT" ? !0 : !!c.trim() && zn.test(i.trim());
651
+ }, Or = (e, t) => {
651
652
  var s;
652
653
  return {
653
654
  name: t,
@@ -660,7 +661,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
660
661
  country: e.address.country.trim().toUpperCase()
661
662
  }
662
663
  };
663
- }, Ut = { state: "idle" }, Nn = [
664
+ }, jt = { state: "idle" }, Nn = [
664
665
  "firstName",
665
666
  "lastName",
666
667
  "email",
@@ -673,15 +674,15 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
673
674
  G.city,
674
675
  G.postcode,
675
676
  G.province
676
- ], Or = /* @__PURE__ */ new Set(), fn = Cn(
677
+ ], Er = /* @__PURE__ */ new Set(), fn = Cn(
677
678
  ({
678
679
  value: e,
679
680
  onChange: t,
680
681
  onSubmit: s,
681
682
  hideEmail: i = !1,
682
683
  emailOptional: r = !1,
683
- requireCodiceFiscale: a = !1,
684
- requireDateOfBirth: c = !1,
684
+ requireCodiceFiscale: c = !1,
685
+ requireDateOfBirth: a = !1,
685
686
  requireInsuranceNumber: l = !1,
686
687
  insuranceType: m,
687
688
  showNote: p = !1,
@@ -706,7 +707,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
706
707
  singleConfirmationChannel: L = !1,
707
708
  submitError: B
708
709
  }, D) => {
709
- var It, Nt, wt, Ct, Tt;
710
+ var xt, It, Nt, wt, Ct;
710
711
  const { t: k, i18n: Y } = Z("ui"), X = at(), _e = M(null), Le = ke(
711
712
  (o) => {
712
713
  _e.current = o, typeof D == "function" ? D(o) : D && (D.current = o);
@@ -722,10 +723,10 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
722
723
  for (const T of o ?? [])
723
724
  if (T.focus(), document.activeElement === T) return;
724
725
  }, [E]);
725
- const W = M(!1), [Q, Be] = H(!1), [tt, ge] = H(!1), te = R || Q, [me, Se] = H(Ut), [xe, Te] = H(Ut), [ce, Pe] = H({}), ee = ke(
726
+ const W = M(!1), [Q, Be] = H(!1), [tt, ge] = H(!1), te = R || Q, [me, Se] = H(jt), [xe, Te] = H(jt), [ce, Pe] = H({}), ee = ke(
726
727
  (o) => Pe((y) => ({ ...y, [o]: !0 })),
727
728
  []
728
- ), [le, Mt] = H(Or), Ve = M(null), nt = M(
729
+ ), [le, Dt] = H(Er), Ve = M(null), nt = M(
729
730
  null
730
731
  );
731
732
  q(
@@ -747,9 +748,9 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
747
748
  I
748
749
  ]) : void 0, [tn, He] = H(
749
750
  () => e.paymentAccepted ? Ae : void 0
750
- ), Ot = M(Ae), ct = !!(g && e.paymentAccepted && tn === Ae);
751
+ ), Mt = M(Ae), ct = !!(g && e.paymentAccepted && tn === Ae);
751
752
  q(() => {
752
- Ot.current !== Ae && (Ot.current = Ae, He(void 0), e.paymentAccepted !== void 0 && z({ paymentAccepted: g ? !1 : void 0 }));
753
+ Mt.current !== Ae && (Mt.current = Ae, He(void 0), e.paymentAccepted !== void 0 && z({ paymentAccepted: g ? !1 : void 0 }));
753
754
  }, [Ae, g, z, e.paymentAccepted]);
754
755
  const Ge = typeof (d == null ? void 0 : d.label) == "string" && d.label.trim() !== "", De = d && Ge ? JSON.stringify([
755
756
  d.label,
@@ -757,13 +758,13 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
757
758
  d.required
758
759
  ]) : void 0, [nn, ae] = H(
759
760
  () => e.practiceConsentAccepted ? De : void 0
760
- ), Et = M(De), ue = !!(De !== void 0 && e.practiceConsentAccepted && nn === De);
761
+ ), Ot = M(De), ue = !!(De !== void 0 && e.practiceConsentAccepted && nn === De);
761
762
  q(() => {
762
- Et.current !== De && (Et.current = De, ae(void 0), e.practiceConsentAccepted !== void 0 && z({ practiceConsentAccepted: void 0 }));
763
+ Ot.current !== De && (Ot.current = De, ae(void 0), e.practiceConsentAccepted !== void 0 && z({ practiceConsentAccepted: void 0 }));
763
764
  }, [De, z, e.practiceConsentAccepted]);
764
- const $e = g ? Zt(g.amountCents, g.currencyCode, Y.language) : "", Me = jt(I), he = F && !!g && !u, V = a, dt = (C || "it").toLowerCase(), st = !he || Dr(e.billing), rt = wr(e.billing, dt), de = rt.country === "it", Oe = M(null), Je = M(
765
+ const $e = g ? Zt(g.amountCents, g.currencyCode, Y.language) : "", Me = Kt(I), he = F && !!g && !u, V = c, dt = (C || "it").toLowerCase(), st = !he || Mr(e.billing), rt = Cr(e.billing, dt), de = rt.country === "it", Oe = M(null), Je = M(
765
766
  null
766
- ), We = (It = e.billing) == null ? void 0 : It.address.line1.trim(), pe = ((wt = (Nt = e.billing) == null ? void 0 : Nt.address.line2) == null ? void 0 : wt.trim()) || null;
767
+ ), We = (xt = e.billing) == null ? void 0 : xt.address.line1.trim(), pe = ((Nt = (It = e.billing) == null ? void 0 : It.address.line2) == null ? void 0 : Nt.trim()) || null;
767
768
  q(() => {
768
769
  var o;
769
770
  We !== void 0 && pe ? Je.current = { street: We, line2: pe } : (We === void 0 || We === ((o = Je.current) == null ? void 0 : o.street)) && (Je.current = null);
@@ -774,7 +775,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
774
775
  // The one format the block itself checks: an Italian CAP.
775
776
  o === "postcode" && de && !zn.test(rt.postcode.trim()) ? k("inputs.postalCode.invalid") : void 0
776
777
  ) : k("booking.details.fieldRequired")
777
- ), Ft = ke(
778
+ ), Et = ke(
778
779
  () => Pe(
779
780
  (o) => o[G.province] ? o : {
780
781
  ...o,
@@ -805,7 +806,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
805
806
  (A == null ? void 0 : A.find(
806
807
  (y) => Ee.includes(y)
807
808
  )) ?? Ee[0]
808
- ] : pr(
809
+ ] : fr(
809
810
  Ee,
810
811
  e.mobilePhone,
811
812
  A
@@ -830,14 +831,14 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
830
831
  q(() => {
831
832
  it.current = x, ut.current = O;
832
833
  }, [x, O]);
833
- const Rt = !!x, _t = !!O;
834
+ const Ft = !!x, Rt = !!O;
834
835
  q(() => {
835
836
  const o = e.codiceFiscale;
836
- if (!V || !Rt || !o) {
837
- Se(Ut);
837
+ if (!V || !Ft || !o) {
838
+ Se(jt);
838
839
  return;
839
840
  }
840
- if (!Ir.test(o)) {
841
+ if (!Nr.test(o)) {
841
842
  Se({
842
843
  state: "invalid",
843
844
  hint: k("booking.details.codiceFiscale.invalidFormat")
@@ -866,12 +867,12 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
866
867
  }, In), () => {
867
868
  y = !1, Ve.current && clearTimeout(Ve.current);
868
869
  };
869
- }, [V, Rt, e.codiceFiscale, k]);
870
+ }, [V, Ft, e.codiceFiscale, k]);
870
871
  const Ze = l && m === "public";
871
872
  q(() => {
872
873
  const o = e.insuranceNumber;
873
- if (!Ze || !_t || !o) {
874
- Te(Ut);
874
+ if (!Ze || !Rt || !o) {
875
+ Te(jt);
875
876
  return;
876
877
  }
877
878
  Te({ state: "pending" }), nt.current && clearTimeout(nt.current), nt.current = setTimeout(() => {
@@ -887,18 +888,18 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
887
888
  })
888
889
  );
889
890
  }, In);
890
- }, [Ze, _t, e.insuranceNumber, k]);
891
+ }, [Ze, Rt, e.insuranceNumber, k]);
891
892
  const mt = $(() => {
892
893
  var y;
893
894
  if (i) return !0;
894
895
  const o = r ? (y = e.email) == null ? void 0 : y.trim() : e.email;
895
- return !lt && !o ? !0 : !!(o && Nr.test(o));
896
+ return !lt && !o ? !0 : !!(o && wr.test(o));
896
897
  }, [i, r, lt, e.email]), pt = $(
897
898
  () => !!(e.mobilePhone && e.mobilePhone.length >= 6),
898
899
  [e.mobilePhone]
899
- ), Lt = $(() => {
900
+ ), _t = $(() => {
900
901
  var o, y;
901
- return !(!((o = e.firstName) != null && o.trim()) || !((y = e.lastName) != null && y.trim()) || !mt || !pt || V && (me.state !== "valid" || me.value !== e.codiceFiscale) || !st || c && !e.dateOfBirth || Ze && xe.state !== "valid");
902
+ return !(!((o = e.firstName) != null && o.trim()) || !((y = e.lastName) != null && y.trim()) || !mt || !pt || V && (me.state !== "valid" || me.value !== e.codiceFiscale) || !st || a && !e.dateOfBirth || Ze && xe.state !== "valid");
902
903
  }, [
903
904
  e.firstName,
904
905
  e.lastName,
@@ -909,13 +910,13 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
909
910
  me.state,
910
911
  me.value,
911
912
  e.codiceFiscale,
912
- c,
913
+ a,
913
914
  e.dateOfBirth,
914
915
  Ze,
915
916
  xe.state
916
- ]), ft = w != null && w.trim() ? w : void 0, Fe = ft !== void 0, Bt = !Fe || !!e.criticalInformationAccepted, gt = !Ge || !(d != null && d.required) || ue, Xe = !!(e.privacyConsent && e.termsConsent && Bt && gt), Pt = !ze || Ie.length > 0, ht = Lt && Xe && Pt && (!g || ct) && !u && !te, ve = !ht && !te && !u, Vt = `${X}-submit-hint`, ne = {
917
- firstName: ce.firstName && !((Ct = e.firstName) != null && Ct.trim()) ? k("booking.details.firstName.required") : void 0,
918
- lastName: ce.lastName && !((Tt = e.lastName) != null && Tt.trim()) ? k("booking.details.lastName.required") : void 0,
917
+ ]), ft = w != null && w.trim() ? w : void 0, Fe = ft !== void 0, Lt = !Fe || !!e.criticalInformationAccepted, gt = !Ge || !(d != null && d.required) || ue, Xe = !!(e.privacyConsent && e.termsConsent && Lt && gt), Bt = !ze || Ie.length > 0, ht = _t && Xe && Bt && (!g || ct) && !u && !te, ve = !ht && !te && !u, Pt = `${X}-submit-hint`, ne = {
918
+ firstName: ce.firstName && !((wt = e.firstName) != null && wt.trim()) ? k("booking.details.firstName.required") : void 0,
919
+ lastName: ce.lastName && !((Ct = e.lastName) != null && Ct.trim()) ? k("booking.details.lastName.required") : void 0,
919
920
  email: !i && ce.email && !mt ? k("booking.details.email.invalid") : void 0,
920
921
  mobilePhone: ce.mobilePhone && !pt ? k("booking.details.mobilePhone.invalid") : void 0,
921
922
  codiceFiscale: ce.codiceFiscale && me.state === "invalid" ? me.hint ?? k("booking.details.codiceFiscale.invalid") : ce.codiceFiscale && !e.codiceFiscale ? k("booking.details.fieldRequired") : void 0,
@@ -929,10 +930,10 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
929
930
  }, vt = Nn.filter(
930
931
  (o) => le.has(o) && ne[o] !== void 0
931
932
  );
932
- vt.length !== le.size && Mt(new Set(vt));
933
+ vt.length !== le.size && Dt(new Set(vt));
933
934
  const se = (o) => !le.has(o), be = async (o) => {
934
935
  var T;
935
- if (o.preventDefault(), !te && !W.current && !ht && Mt(
936
+ if (o.preventDefault(), !te && !W.current && !ht && Dt(
936
937
  new Set(
937
938
  Nn.filter(
938
939
  (U) => le.has(U) || !ne[U]
@@ -978,7 +979,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
978
979
  // config.
979
980
  confirmationChannels: ze ? Ie : void 0,
980
981
  ...he && e.billing ? {
981
- billing: Mr(
982
+ billing: Or(
982
983
  e.billing,
983
984
  `${e.firstName.trim()} ${e.lastName.trim()}`
984
985
  )
@@ -1001,7 +1002,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1001
1002
  error: ne.codiceFiscale,
1002
1003
  announceError: se("codiceFiscale"),
1003
1004
  children: /* @__PURE__ */ n(
1004
- zt,
1005
+ qt,
1005
1006
  {
1006
1007
  value: e.codiceFiscale ?? "",
1007
1008
  maxLength: 16,
@@ -1012,8 +1013,8 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1012
1013
  }
1013
1014
  )
1014
1015
  }
1015
- ), $t = (o, y) => {
1016
- const T = jt(y);
1016
+ ), Vt = (o, y) => {
1017
+ const T = Kt(y);
1017
1018
  return T ? /* @__PURE__ */ n(
1018
1019
  Tn,
1019
1020
  {
@@ -1050,7 +1051,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1050
1051
  onSubmit: be,
1051
1052
  onFocus: (o) => {
1052
1053
  const y = Oe.current;
1053
- !y || !o.currentTarget.contains(o.target) || !y.contains(o.target) && y.compareDocumentPosition(o.target) & Node.DOCUMENT_POSITION_FOLLOWING && Ft();
1054
+ !y || !o.currentTarget.contains(o.target) || !y.contains(o.target) && y.compareDocumentPosition(o.target) & Node.DOCUMENT_POSITION_FOLLOWING && Et();
1054
1055
  },
1055
1056
  "aria-busy": te || void 0,
1056
1057
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
@@ -1065,7 +1066,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1065
1066
  error: ne.firstName,
1066
1067
  announceError: se("firstName"),
1067
1068
  children: /* @__PURE__ */ n(
1068
- zt,
1069
+ qt,
1069
1070
  {
1070
1071
  autoComplete: "given-name",
1071
1072
  value: e.firstName ?? "",
@@ -1083,7 +1084,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1083
1084
  error: ne.lastName,
1084
1085
  announceError: se("lastName"),
1085
1086
  children: /* @__PURE__ */ n(
1086
- zt,
1087
+ qt,
1087
1088
  {
1088
1089
  autoComplete: "family-name",
1089
1090
  value: e.lastName ?? "",
@@ -1139,9 +1140,9 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1139
1140
  ]
1140
1141
  }
1141
1142
  ),
1142
- V && !he || c ? /* @__PURE__ */ S("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
1143
+ V && !he || a ? /* @__PURE__ */ S("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
1143
1144
  V && !he ? Qe : null,
1144
- c ? /* @__PURE__ */ n(
1145
+ a ? /* @__PURE__ */ n(
1145
1146
  Ke,
1146
1147
  {
1147
1148
  label: k("booking.details.dateOfBirth.label"),
@@ -1171,7 +1172,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1171
1172
  error: ne.insuranceNumber,
1172
1173
  announceError: se("insuranceNumber"),
1173
1174
  children: /* @__PURE__ */ n(
1174
- zt,
1175
+ qt,
1175
1176
  {
1176
1177
  value: e.insuranceNumber ?? "",
1177
1178
  onChange: (o) => z({ insuranceNumber: o.target.value }),
@@ -1223,7 +1224,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1223
1224
  return (
1224
1225
  // The name is set from the patient's own on submit.
1225
1226
  z({
1226
- billing: Cr(
1227
+ billing: Tr(
1227
1228
  o,
1228
1229
  "",
1229
1230
  // A second line belongs to its street: it goes when the
@@ -1233,7 +1234,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1233
1234
  })
1234
1235
  );
1235
1236
  },
1236
- popularCountries: Ar,
1237
+ popularCountries: Dr,
1237
1238
  layout: "grid",
1238
1239
  fields: de ? void 0 : ["street", "city", "postcode"],
1239
1240
  required: de ? ["country", "street", "city", "postcode", "province"] : ["country", "street", "city", "postcode"],
@@ -1303,7 +1304,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1303
1304
  {
1304
1305
  dir: "auto",
1305
1306
  className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]",
1306
- children: xr(ft).map(
1307
+ children: Ir(ft).map(
1307
1308
  (o, y) => o.kind === "link" ? /* @__PURE__ */ n(
1308
1309
  "a",
1309
1310
  {
@@ -1348,7 +1349,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1348
1349
  role: "group",
1349
1350
  "aria-labelledby": `${X}-payment-heading`,
1350
1351
  "data-notice-style": N,
1351
- className: Tr({
1352
+ className: Ar({
1352
1353
  noticeStyle: N
1353
1354
  }),
1354
1355
  children: [
@@ -1423,7 +1424,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1423
1424
  onCheckedChange: (o) => z({ privacyConsent: o === !0 }),
1424
1425
  "aria-required": !0,
1425
1426
  label: /* @__PURE__ */ S(ie, { children: [
1426
- $t(
1427
+ Vt(
1427
1428
  "booking.details.consent.privacy.label",
1428
1429
  v
1429
1430
  ),
@@ -1445,7 +1446,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1445
1446
  onCheckedChange: (o) => z({ termsConsent: o === !0 }),
1446
1447
  "aria-required": !0,
1447
1448
  label: /* @__PURE__ */ S(ie, { children: [
1448
- $t(
1449
+ Vt(
1449
1450
  "booking.details.consent.terms.label",
1450
1451
  h
1451
1452
  ),
@@ -1471,11 +1472,11 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1471
1472
  },
1472
1473
  "aria-required": d.required || void 0,
1473
1474
  label: /* @__PURE__ */ S(ie, { children: [
1474
- jt(d.url) ? /* @__PURE__ */ n(
1475
+ Kt(d.url) ? /* @__PURE__ */ n(
1475
1476
  "a",
1476
1477
  {
1477
1478
  dir: "auto",
1478
- href: jt(d.url),
1479
+ href: Kt(d.url),
1479
1480
  target: "_blank",
1480
1481
  rel: "noopener noreferrer",
1481
1482
  className: rn,
@@ -1545,7 +1546,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1545
1546
  ve ? /* @__PURE__ */ n(
1546
1547
  "p",
1547
1548
  {
1548
- id: Vt,
1549
+ id: Pt,
1549
1550
  "data-slot": "submit-hint",
1550
1551
  className: "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)]",
1551
1552
  children: k("booking.details.submitHint")
@@ -1559,7 +1560,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1559
1560
  type: "submit",
1560
1561
  disabled: te || u,
1561
1562
  "aria-disabled": !ht || void 0,
1562
- "aria-describedby": ve ? Vt : void 0,
1563
+ "aria-describedby": ve ? Pt : void 0,
1563
1564
  startIcon: te ? /* @__PURE__ */ n(An, { variant: "pulse", size: "sm" }) : void 0,
1564
1565
  children: g ? k("booking.payment.submit", { amount: $e }) : k("booking.details.submit")
1565
1566
  }
@@ -1571,7 +1572,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
1571
1572
  }
1572
1573
  );
1573
1574
  fn.displayName = "BookingDetailsForm";
1574
- const St = [
1575
+ const Wt = [
1575
1576
  "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
1576
1577
  "ds:focus-visible:outline-solid",
1577
1578
  "ds:focus-visible:outline-[var(--ring)]",
@@ -1591,9 +1592,8 @@ function ln(e) {
1591
1592
  }
1592
1593
  function Kn(e, t) {
1593
1594
  if (!e || typeof e.scrollIntoView != "function") return !1;
1594
- const s = getComputedStyle(e), i = parseFloat(s.scrollMarginTop) || 0, r = parseFloat(s.scrollMarginBottom) || 0, a = e.getBoundingClientRect();
1595
- if (a.top >= i && a.bottom <= window.innerHeight - r)
1596
- return !1;
1595
+ const s = getComputedStyle(e), i = getComputedStyle(document.documentElement), r = (parseFloat(s.scrollMarginTop) || 0) + (parseFloat(i.scrollPaddingTop) || 0), c = (parseFloat(s.scrollMarginBottom) || 0) + (parseFloat(i.scrollPaddingBottom) || 0), a = e.getBoundingClientRect();
1596
+ if (a.top >= r && a.bottom <= window.innerHeight - c) return !1;
1597
1597
  try {
1598
1598
  e.scrollIntoView({
1599
1599
  behavior: ln(e) ? "auto" : "smooth",
@@ -1604,7 +1604,7 @@ function Kn(e, t) {
1604
1604
  }
1605
1605
  return !0;
1606
1606
  }
1607
- function Er(e, t = 1e3) {
1607
+ function Fr(e, t = 1e3) {
1608
1608
  let s = !1;
1609
1609
  const i = () => {
1610
1610
  s || (s = !0, window.removeEventListener("scrollend", i), clearTimeout(r), e());
@@ -1613,14 +1613,14 @@ function Er(e, t = 1e3) {
1613
1613
  s = !0, window.removeEventListener("scrollend", i), clearTimeout(r);
1614
1614
  };
1615
1615
  }
1616
- function Fr({
1616
+ function Rr({
1617
1617
  length: e = 5,
1618
1618
  onVerify: t,
1619
1619
  onResend: s,
1620
1620
  resendSeconds: i = 60,
1621
1621
  phoneHint: r,
1622
- onVerified: a,
1623
- onBusyChange: c
1622
+ onVerified: c,
1623
+ onBusyChange: a
1624
1624
  }) {
1625
1625
  const { t: l, i18n: m } = Z("ui"), p = at(), f = at(), v = M(null), h = M(null), d = M(null), g = M(null), I = M(!1), u = M(!1), [F, N] = H(null), [w, x] = H(!1), [O, R] = H(null), [_, b] = H(
1626
1626
  null
@@ -1628,8 +1628,8 @@ function Fr({
1628
1628
  () => Date.now() + A * 1e3
1629
1629
  ), [D, k] = H(A), Y = O === "too-many-attempts";
1630
1630
  q(() => {
1631
- c == null || c(!!F);
1632
- }, [F, c]), q(() => (I.current = !0, () => {
1631
+ a == null || a(!!F);
1632
+ }, [F, a]), q(() => (I.current = !0, () => {
1633
1633
  I.current = !1;
1634
1634
  }), []), q(() => {
1635
1635
  var E;
@@ -1652,7 +1652,7 @@ function Fr({
1652
1652
  try {
1653
1653
  const J = await t(E);
1654
1654
  if (!I.current) return;
1655
- J.ok ? a(J.redirectUrl) : (R(J.reason), J.reason !== "too-many-attempts" && P((W) => W + 1));
1655
+ J.ok ? c(J.redirectUrl) : (R(J.reason), J.reason !== "too-many-attempts" && P((W) => W + 1));
1656
1656
  } catch {
1657
1657
  if (!I.current) return;
1658
1658
  b("verify"), P((J) => J + 1);
@@ -1673,13 +1673,13 @@ function Fr({
1673
1673
  }
1674
1674
  }
1675
1675
  }, Le = O === "wrong" ? l("booking.code.wrong") : O === "expired" ? l("booking.code.expired") : Y ? l("booking.code.tooManyAttempts") : void 0;
1676
- return /* @__PURE__ */ S(
1676
+ return /* @__PURE__ */ n(fs, { variant: "elevated", asChild: !0, children: /* @__PURE__ */ S(
1677
1677
  "section",
1678
1678
  {
1679
1679
  ref: h,
1680
1680
  "aria-labelledby": p,
1681
1681
  "data-component": "booking-code-step",
1682
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1682
+ className: "ds:items-center ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)] ds:text-center",
1683
1683
  children: [
1684
1684
  /* @__PURE__ */ n(
1685
1685
  "h3",
@@ -1687,7 +1687,7 @@ function Fr({
1687
1687
  ref: v,
1688
1688
  id: p,
1689
1689
  tabIndex: -1,
1690
- className: `type-title-card ds:m-0 ${St}`,
1690
+ className: `type-title-card ds:m-0 ${Wt}`,
1691
1691
  children: l("booking.code.heading")
1692
1692
  }
1693
1693
  ),
@@ -1702,7 +1702,7 @@ function Fr({
1702
1702
  }
1703
1703
  ) : l("booking.code.instruction") }),
1704
1704
  /* @__PURE__ */ n(Ke, { label: l("booking.code.label"), error: Le, children: /* @__PURE__ */ n("div", { dir: "ltr", children: /* @__PURE__ */ n(
1705
- fs,
1705
+ gs,
1706
1706
  {
1707
1707
  ref: d,
1708
1708
  length: e,
@@ -1713,7 +1713,7 @@ function Fr({
1713
1713
  },
1714
1714
  C
1715
1715
  ) }) }),
1716
- _ ? /* @__PURE__ */ n(oe, { variant: "error", children: /* @__PURE__ */ n(oe.Description, { children: l(_ === "verify" ? "booking.code.verifyFailed" : "booking.code.resendFailed") }) }) : null,
1716
+ _ ? /* @__PURE__ */ n(oe, { variant: "error", className: "ds:self-stretch ds:text-start", children: /* @__PURE__ */ n(oe.Description, { children: l(_ === "verify" ? "booking.code.verifyFailed" : "booking.code.resendFailed") }) }) : null,
1717
1717
  /* @__PURE__ */ n("p", { role: "status", className: "type-body ds:m-0", children: F === "verify" ? l("booking.code.verifying") : w ? l("booking.code.resent") : null }),
1718
1718
  /* @__PURE__ */ n(
1719
1719
  we,
@@ -1721,18 +1721,19 @@ function Fr({
1721
1721
  ref: g,
1722
1722
  type: "button",
1723
1723
  intent: "secondary",
1724
- className: "ds:self-start",
1725
1724
  disabled: D > 0 || !!F,
1726
1725
  loading: F === "resend",
1727
1726
  onClick: _e,
1728
1727
  children: D > 0 ? l("booking.code.resendCountdown", {
1729
- seconds: new Intl.NumberFormat(m.language).format(D)
1728
+ seconds: new Intl.NumberFormat(m.language).format(
1729
+ D
1730
+ )
1730
1731
  }) : l("booking.code.resend")
1731
1732
  }
1732
1733
  )
1733
1734
  ]
1734
1735
  }
1735
- );
1736
+ ) });
1736
1737
  }
1737
1738
  function jn(e) {
1738
1739
  const t = e.payment;
@@ -1746,7 +1747,7 @@ function jn(e) {
1746
1747
  currencyCode: s
1747
1748
  };
1748
1749
  }
1749
- function Rr(e) {
1750
+ function _r(e) {
1750
1751
  var r;
1751
1752
  const t = (r = e.priceLabel) != null && r.trim() ? e.priceLabel : void 0, s = t ? { label: t } : void 0;
1752
1753
  if (!e.payment) return { price: s };
@@ -1756,19 +1757,19 @@ function Rr(e) {
1756
1757
  payment: i
1757
1758
  } : { price: s, payment: "unavailable" };
1758
1759
  }
1759
- function _r(e, t, s) {
1760
+ function Lr(e, t, s) {
1760
1761
  const i = e.filter(
1761
- (a) => t.includes(a.id)
1762
+ (c) => t.includes(c.id)
1762
1763
  ), r = (s == null ? void 0 : s.serviceId) ?? (t.length === 1 ? t[0] : void 0);
1763
1764
  if (r) {
1764
- const a = i.find((l) => l.id === r);
1765
- if (!a) return { blocked: !0 };
1766
- const c = jn(a);
1767
- return { payment: c, blocked: !!(a.payment && !c) };
1765
+ const c = i.find((l) => l.id === r);
1766
+ if (!c) return { blocked: !0 };
1767
+ const a = jn(c);
1768
+ return { payment: a, blocked: !!(c.payment && !a) };
1768
1769
  }
1769
- return { blocked: i.some((a) => !!a.payment) };
1770
+ return { blocked: i.some((c) => !!c.payment) };
1770
1771
  }
1771
- function Ht(e) {
1772
+ function Ut(e) {
1772
1773
  return e ? JSON.stringify([
1773
1774
  e.serviceId,
1774
1775
  e.kind,
@@ -1776,14 +1777,14 @@ function Ht(e) {
1776
1777
  e.currencyCode
1777
1778
  ]) : "";
1778
1779
  }
1779
- function Lr({
1780
+ function Br({
1780
1781
  services: e,
1781
1782
  value: t,
1782
1783
  availableSlots: s,
1783
1784
  onSubmit: i,
1784
1785
  onChange: r,
1785
- paymentState: a,
1786
- submitting: c,
1786
+ paymentState: c,
1787
+ submitting: a,
1787
1788
  paymentTermsUrl: l,
1788
1789
  renderPayment: m,
1789
1790
  codeStep: p
@@ -1800,17 +1801,17 @@ function Lr({
1800
1801
  t.slotKey
1801
1802
  ]), v = M(
1802
1803
  void 0
1803
- ), d = (t.date ? (Le = s[t.date]) == null ? void 0 : Le.find((W) => W.key === t.slotKey) : void 0) ?? (((E = v.current) == null ? void 0 : E.selection) === f ? v.current.slot : void 0), g = _r(
1804
+ ), d = (t.date ? (Le = s[t.date]) == null ? void 0 : Le.find((W) => W.key === t.slotKey) : void 0) ?? (((E = v.current) == null ? void 0 : E.selection) === f ? v.current.slot : void 0), g = Lr(
1804
1805
  e,
1805
1806
  Ue(t),
1806
1807
  d
1807
1808
  ), I = g.blocked || !!(g.payment && !m), u = JSON.stringify([
1808
1809
  f,
1809
1810
  d == null ? void 0 : d.serviceId,
1810
- Ht(g.payment),
1811
+ Ut(g.payment),
1811
1812
  l,
1812
1813
  I
1813
- ]), F = g.payment ? JSON.stringify([Ht(g.payment), l]) : "", N = M(void 0), w = !!((J = t.details) != null && J.paymentAccepted);
1814
+ ]), F = g.payment ? JSON.stringify([Ut(g.payment), l]) : "", N = M(void 0), w = !!((J = t.details) != null && J.paymentAccepted);
1814
1815
  q(() => {
1815
1816
  if (!w) N.current = void 0;
1816
1817
  else if (F) N.current === void 0 ? N.current = F : N.current !== F && (N.current = void 0, r({
@@ -1830,8 +1831,8 @@ function Lr({
1830
1831
  L.current === u || P.current || B || (L.current = u, _.current += 1, b.current = !1, R({ status: "idle" }));
1831
1832
  }, [u, B]);
1832
1833
  const D = B || L.current === u ? O.session : void 0, k = $(
1833
- () => D && (a == null ? void 0 : a.sessionId) === D.id ? a : D ? { sessionId: D.id, status: "ready" } : void 0,
1834
- [D, a]
1834
+ () => D && (c == null ? void 0 : c.sessionId) === D.id ? c : D ? { sessionId: D.id, status: "ready" } : void 0,
1835
+ [D, c]
1835
1836
  );
1836
1837
  D && k && "phase" in k && k.phase === "completion" && (A.current = D.id);
1837
1838
  const Y = $(
@@ -1860,7 +1861,7 @@ function Lr({
1860
1861
  _.current += 1, b.current = !1, P.current = !1, A.current = void 0, v.current = void 0, L.current = x.current, R({ status: "idle" });
1861
1862
  }, _e = async (W) => {
1862
1863
  var Se, xe, Te, ce, Pe;
1863
- if (!(d != null && d.available) || I || c || b.current || O.status === "payment" || O.status === "code" || P.current || g.payment && !W.paymentAccepted) return;
1864
+ if (!(d != null && d.available) || I || a || b.current || O.status === "payment" || O.status === "code" || P.current || g.payment && !W.paymentAccepted) return;
1864
1865
  b.current = !0;
1865
1866
  const Q = p ? { ...p } : void 0;
1866
1867
  v.current = { selection: f, slot: { ...d } };
@@ -1889,7 +1890,7 @@ function Lr({
1889
1890
  if (!te()) return;
1890
1891
  if (ge.payment) {
1891
1892
  const le = ee == null ? void 0 : ee.paymentSession;
1892
- if (!((Pe = le == null ? void 0 : le.id) != null && Pe.trim()) || Ht(le.payment) !== Ht(ge.payment)) {
1893
+ if (!((Pe = le == null ? void 0 : le.id) != null && Pe.trim()) || Ut(le.payment) !== Ut(ge.payment)) {
1893
1894
  R({ status: "error" });
1894
1895
  return;
1895
1896
  }
@@ -1930,15 +1931,15 @@ function Lr({
1930
1931
  }
1931
1932
  };
1932
1933
  }
1933
- const Br = 5e3, Pr = "ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1] ds:animate-[stepper-icon-draw_calc(var(--animation-duration)*3)_var(--ease-out)_forwards]", Vr = "ds:block ds:[block-size:100%] ds:rounded-full ds:bg-[var(--primary)] ds:animate-[reserved-bar-fill_linear_forwards] ds:[animation-duration:var(--handover-ms)]";
1934
- function $r({
1934
+ const Pr = 5e3, Vr = "ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1] ds:animate-[stepper-icon-draw_calc(var(--animation-duration)*3)_var(--ease-out)_forwards]", $r = "ds:block ds:[block-size:100%] ds:rounded-full ds:bg-[var(--primary)] ds:animate-[reserved-bar-fill_linear_forwards] ds:[animation-duration:var(--handover-ms)]";
1935
+ function qr({
1935
1936
  url: e,
1936
1937
  delayMs: t,
1937
1938
  onNavigate: s,
1938
1939
  date: i,
1939
1940
  time: r,
1940
- details: a,
1941
- shouldTakeFocus: c
1941
+ details: c,
1942
+ shouldTakeFocus: a
1942
1943
  }) {
1943
1944
  const { t: l } = Z("ui"), m = M(null), p = M(null), f = M(void 0), v = at(), h = M(null), [d, g] = H(!1), [I, u] = H(() => ln(null)), F = () => {
1944
1945
  clearTimeout(f.current);
@@ -1954,7 +1955,7 @@ function $r({
1954
1955
  u(ln(m.current));
1955
1956
  }, []), q(() => {
1956
1957
  const x = p.current;
1957
- x && m.current && c(m.current) && x.focus({ preventScroll: !0 });
1958
+ x && m.current && a(m.current) && x.focus({ preventScroll: !0 });
1958
1959
  }, []), q(() => (f.current = setTimeout(() => w.current(), t), () => clearTimeout(f.current)), [e, t]), /* @__PURE__ */ S(
1959
1960
  "div",
1960
1961
  {
@@ -1977,7 +1978,7 @@ function $r({
1977
1978
  strokeLinecap: "round",
1978
1979
  strokeLinejoin: "round",
1979
1980
  className: "ds:size-[var(--spacing-lg)]",
1980
- children: /* @__PURE__ */ n("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: Pr })
1981
+ children: /* @__PURE__ */ n("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: Vr })
1981
1982
  }
1982
1983
  )
1983
1984
  }
@@ -1989,15 +1990,15 @@ function $r({
1989
1990
  ref: p,
1990
1991
  tabIndex: -1,
1991
1992
  "aria-describedby": v,
1992
- className: `type-title-card ds:m-0 ${St}`,
1993
+ className: "type-title-card ds:m-0 ds:outline-none",
1993
1994
  children: l("booking.reserved.heading")
1994
1995
  }
1995
1996
  ),
1996
1997
  /* @__PURE__ */ n("p", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: i ? l("booking.reserved.when", { date: i, time: r }) : r }),
1997
- a ? /* @__PURE__ */ n("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: a }) : null
1998
+ c ? /* @__PURE__ */ n("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: c }) : null
1998
1999
  ] }),
1999
2000
  /* @__PURE__ */ n("p", { id: v, role: "status", className: "type-body ds:m-0", children: l(d ? "booking.reserved.stayed" : "booking.reserved.redirecting") }),
2000
- I || d || t > Br ? null : (
2001
+ I || d || t > Pr ? null : (
2001
2002
  // Decorative: the sentence above already says a redirect is coming,
2002
2003
  // and a progressbar with no value to read would only add noise.
2003
2004
  /* @__PURE__ */ n(
@@ -2009,7 +2010,7 @@ function $r({
2009
2010
  children: /* @__PURE__ */ n(
2010
2011
  "span",
2011
2012
  {
2012
- className: Vr,
2013
+ className: $r,
2013
2014
  style: { "--handover-ms": `${t}ms` }
2014
2015
  }
2015
2016
  )
@@ -2032,22 +2033,22 @@ function $r({
2032
2033
  }
2033
2034
  );
2034
2035
  }
2035
- const qr = 3e3;
2036
- function zr(e) {
2036
+ const zr = 3e3;
2037
+ function Kr(e) {
2037
2038
  if (typeof e != "string") return;
2038
2039
  const t = e.trim();
2039
2040
  try {
2040
2041
  const { protocol: s } = new URL(t);
2041
- return (s === "https:" || s === "http:") && gs(t) ? t : void 0;
2042
+ return (s === "https:" || s === "http:") && hs(t) ? t : void 0;
2042
2043
  } catch {
2043
2044
  return;
2044
2045
  }
2045
2046
  }
2046
- const Kr = 2 ** 31 - 1;
2047
- function jr(e) {
2048
- return typeof e == "number" && Number.isFinite(e) && e >= 0 ? Math.min(e, Kr) : qr;
2047
+ const jr = 2 ** 31 - 1;
2048
+ function Ur(e) {
2049
+ return typeof e == "number" && Number.isFinite(e) && e >= 0 ? Math.min(e, jr) : zr;
2049
2050
  }
2050
- const Ur = Dt(
2051
+ const Hr = At(
2051
2052
  // --booking-held-height: see the step-8 effects (runtime-measured height).
2052
2053
  "ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:[min-block-size:var(--booking-held-height,auto)]",
2053
2054
  {
@@ -2076,46 +2077,46 @@ const Ur = Dt(
2076
2077
  },
2077
2078
  defaultVariants: { variant: "inline-list", surface: "flat" }
2078
2079
  }
2079
- ), Hr = [
2080
+ ), Gr = [
2080
2081
  [
2081
2082
  /\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
2082
2083
  kn
2083
2084
  ],
2084
- [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, Ds],
2085
- [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Xs],
2086
- [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Ms],
2087
- [/\b(otorin|udito|orecchi|hearing|ear)/i, js],
2088
- [/\b(neuro|brain|cervello)/i, $s],
2089
- [/\b(pediatr|child|bambin)/i, Os],
2090
- [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Ps],
2091
- [/\b(lab|analis|test|sang|esami)/i, Hs],
2092
- [/\b(farmaco|pharm|pillol|refill)/i, Js],
2093
- [/\b(chirurg|surg|intervent|operat)/i, Ys],
2094
- [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Es],
2085
+ [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, Ms],
2086
+ [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Qs],
2087
+ [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Os],
2088
+ [/\b(otorin|udito|orecchi|hearing|ear)/i, Us],
2089
+ [/\b(neuro|brain|cervello)/i, qs],
2090
+ [/\b(pediatr|child|bambin)/i, Es],
2091
+ [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Vs],
2092
+ [/\b(lab|analis|test|sang|esami)/i, Gs],
2093
+ [/\b(farmaco|pharm|pillol|refill)/i, Ws],
2094
+ [/\b(chirurg|surg|intervent|operat)/i, Zs],
2095
+ [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Fs],
2095
2096
  [/\b(vacc|inject|inie|punto)/i, kn],
2096
- [/\b(derma|skin|pelle)/i, Fs],
2097
- [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, Rs],
2098
- [/\b(general|medicin|family|control|check[-\s]?up)/i, Ls]
2097
+ [/\b(derma|skin|pelle)/i, Rs],
2098
+ [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, _s],
2099
+ [/\b(general|medicin|family|control|check[-\s]?up)/i, Bs]
2099
2100
  ];
2100
- function Gr(e) {
2101
- for (const [t, s] of Hr)
2101
+ function Jr(e) {
2102
+ for (const [t, s] of Gr)
2102
2103
  if (t.test(e)) return s;
2103
2104
  return null;
2104
2105
  }
2105
- function Jr(e) {
2106
- const t = Gr(e.label) ?? As;
2106
+ function Wr(e) {
2107
+ const t = Jr(e.label) ?? Ds;
2107
2108
  return /* @__PURE__ */ n(t, { "aria-hidden": "true", className: "ds:size-5" });
2108
2109
  }
2109
2110
  function Un() {
2110
2111
  const { t: e, i18n: t } = Z("ui");
2111
2112
  return (s) => {
2112
- const i = Rr(s), r = (c) => Zt(c.amountCents, c.currencyCode, t.language), a = i.price ? "label" in i.price ? i.price.label : r(i.price.amount) : void 0;
2113
+ const i = _r(s), r = (a) => Zt(a.amountCents, a.currencyCode, t.language), c = i.price ? "label" in i.price ? i.price.label : r(i.price.amount) : void 0;
2113
2114
  return i.payment === "unavailable" ? {
2114
- price: a,
2115
+ price: c,
2115
2116
  payment: e("booking.payment.unavailable"),
2116
2117
  paymentTone: "error"
2117
2118
  } : {
2118
- price: a,
2119
+ price: c,
2119
2120
  payment: i.payment ? e(`booking.payment.${i.payment.kind}`, {
2120
2121
  amount: r(i.payment)
2121
2122
  }) : void 0,
@@ -2124,9 +2125,9 @@ function Un() {
2124
2125
  };
2125
2126
  }
2126
2127
  function ot(e) {
2127
- return Jt(e, "yyyy-MM-dd");
2128
+ return Gt(e, "yyyy-MM-dd");
2128
2129
  }
2129
- const Wr = [
2130
+ const Yr = [
2130
2131
  "ds:relative ds:flex ds:items-center ds:justify-center",
2131
2132
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
2132
2133
  "ds:rounded-[var(--radius-sm)]",
@@ -2136,7 +2137,7 @@ const Wr = [
2136
2137
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
2137
2138
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
2138
2139
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
2139
- ].join(" "), Yr = Dt(Wr, {
2140
+ ].join(" "), Zr = At(Yr, {
2140
2141
  variants: {
2141
2142
  state: {
2142
2143
  available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
@@ -2147,15 +2148,15 @@ const Wr = [
2147
2148
  },
2148
2149
  defaultVariants: { state: "unavailable" }
2149
2150
  });
2150
- function Zr({
2151
+ function Xr({
2151
2152
  availableDates: e,
2152
2153
  selectedDate: t,
2153
2154
  onSelectDate: s,
2154
2155
  locale: i,
2155
2156
  loading: r
2156
2157
  }) {
2157
- const { t: a } = Z("ui"), c = $(() => t ? At(fe(t)) : e.length > 0 ? At(fe(e[0])) : At(/* @__PURE__ */ new Date()), [t, e]), [l, m] = H(c), [p, f] = H(null), v = $(() => {
2158
- const N = At(l), w = xs(l), x = N.getDay(), O = w.getDate(), R = [];
2158
+ const { t: c } = Z("ui"), a = $(() => t ? Tt(fe(t)) : e.length > 0 ? Tt(fe(e[0])) : Tt(/* @__PURE__ */ new Date()), [t, e]), [l, m] = H(a), [p, f] = H(null), v = $(() => {
2159
+ const N = Tt(l), w = Is(l), x = N.getDay(), O = w.getDate(), R = [];
2159
2160
  for (let _ = x; _ > 0; _ -= 1) {
2160
2161
  const b = new Date(N);
2161
2162
  b.setDate(N.getDate() - _), R.push(b);
@@ -2176,7 +2177,7 @@ function Zr({
2176
2177
  year: "numeric"
2177
2178
  }).format(l);
2178
2179
  } catch {
2179
- return Jt(l, "MMMM yyyy");
2180
+ return Gt(l, "MMMM yyyy");
2180
2181
  }
2181
2182
  }, [l, i]), d = $(() => {
2182
2183
  const N = new Date(2024, 0, 7);
@@ -2186,7 +2187,7 @@ function Zr({
2186
2187
  try {
2187
2188
  return new Intl.DateTimeFormat(i, { weekday: "short" }).format(O);
2188
2189
  } catch {
2189
- return Jt(O, "EEE");
2190
+ return Gt(O, "EEE");
2190
2191
  }
2191
2192
  });
2192
2193
  }, [i]), g = $(() => new Set(e), [e]), I = ke(
@@ -2196,9 +2197,9 @@ function Zr({
2196
2197
  if (p) return p;
2197
2198
  if (t) return fe(t);
2198
2199
  const N = v.find(
2199
- (w) => Kt(w, l) && I(w)
2200
+ (w) => zt(w, l) && I(w)
2200
2201
  );
2201
- return N || (v.find((w) => Kt(w, l)) ?? null);
2202
+ return N || (v.find((w) => zt(w, l)) ?? null);
2202
2203
  }, [p, t, v, l, I]), F = ke(
2203
2204
  (N, w) => {
2204
2205
  let x = null;
@@ -2229,7 +2230,7 @@ function Zr({
2229
2230
  default:
2230
2231
  return;
2231
2232
  }
2232
- x && (N.preventDefault(), Kt(x, l) || m(At(x)), f(x));
2233
+ x && (N.preventDefault(), zt(x, l) || m(Tt(x)), f(x));
2233
2234
  },
2234
2235
  [I, s, l]
2235
2236
  );
@@ -2238,11 +2239,11 @@ function Zr({
2238
2239
  {
2239
2240
  role: "status",
2240
2241
  "aria-live": "polite",
2241
- "aria-label": a("common.loading"),
2242
+ "aria-label": c("common.loading"),
2242
2243
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
2243
2244
  children: [
2244
- /* @__PURE__ */ n(Wt, { variant: "text", width: "40%" }),
2245
- /* @__PURE__ */ n("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (N, w) => /* @__PURE__ */ n(Wt, { variant: "rounded", height: "2.5rem" }, `mg-skel-${w}`)) })
2245
+ /* @__PURE__ */ n(Jt, { variant: "text", width: "40%" }),
2246
+ /* @__PURE__ */ n("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (N, w) => /* @__PURE__ */ n(Jt, { variant: "rounded", height: "2.5rem" }, `mg-skel-${w}`)) })
2246
2247
  ]
2247
2248
  }
2248
2249
  ) : /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -2250,13 +2251,13 @@ function Zr({
2250
2251
  /* @__PURE__ */ n(
2251
2252
  bn,
2252
2253
  {
2253
- icon: /* @__PURE__ */ n(Ns, {}),
2254
- "aria-label": a("booking.previousMonth"),
2254
+ icon: /* @__PURE__ */ n(ws, {}),
2255
+ "aria-label": c("booking.previousMonth"),
2255
2256
  size: "sm",
2256
2257
  intent: "ghost",
2257
2258
  flipIconInRtl: !0,
2258
2259
  onClick: () => {
2259
- m((N) => nr(N)), f(null);
2260
+ m((N) => sr(N)), f(null);
2260
2261
  }
2261
2262
  }
2262
2263
  ),
@@ -2271,8 +2272,8 @@ function Zr({
2271
2272
  /* @__PURE__ */ n(
2272
2273
  bn,
2273
2274
  {
2274
- icon: /* @__PURE__ */ n(ws, {}),
2275
- "aria-label": a("booking.nextMonth"),
2275
+ icon: /* @__PURE__ */ n(Cs, {}),
2276
+ "aria-label": c("booking.nextMonth"),
2276
2277
  size: "sm",
2277
2278
  intent: "ghost",
2278
2279
  flipIconInRtl: !0,
@@ -2286,7 +2287,7 @@ function Zr({
2286
2287
  "div",
2287
2288
  {
2288
2289
  role: "grid",
2289
- "aria-label": a("booking.monthGridLabel"),
2290
+ "aria-label": c("booking.monthGridLabel"),
2290
2291
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
2291
2292
  children: [
2292
2293
  /* @__PURE__ */ n(
@@ -2311,13 +2312,13 @@ function Zr({
2311
2312
  role: "row",
2312
2313
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
2313
2314
  children: v.slice(w * 7, w * 7 + 7).map((x, O) => {
2314
- const R = w * 7 + O, _ = Kt(x, l), b = _ && I(x), C = t ? yn(x, fe(t)) : !1, P = _ ? C ? "selected" : b ? "available" : "unavailable" : "outside", A = u ? yn(u, x) : !1, L = (() => {
2315
+ const R = w * 7 + O, _ = zt(x, l), b = _ && I(x), C = t ? yn(x, fe(t)) : !1, P = _ ? C ? "selected" : b ? "available" : "unavailable" : "outside", A = u ? yn(u, x) : !1, L = (() => {
2315
2316
  try {
2316
2317
  return new Intl.DateTimeFormat(i, {
2317
2318
  dateStyle: "full"
2318
2319
  }).format(x);
2319
2320
  } catch {
2320
- return Jt(x, "PPP");
2321
+ return Gt(x, "PPP");
2321
2322
  }
2322
2323
  })();
2323
2324
  return /* @__PURE__ */ n(
@@ -2334,7 +2335,7 @@ function Zr({
2334
2335
  b && s(ot(x));
2335
2336
  },
2336
2337
  onKeyDown: (B) => F(B, x),
2337
- className: Yr({ state: P }),
2338
+ className: Zr({ state: P }),
2338
2339
  children: /* @__PURE__ */ n("span", { "aria-hidden": "true", children: x.getDate() })
2339
2340
  },
2340
2341
  `mg-cell-${R}`
@@ -2348,7 +2349,7 @@ function Zr({
2348
2349
  )
2349
2350
  ] });
2350
2351
  }
2351
- const Xr = Dt(
2352
+ const Qr = At(
2352
2353
  [
2353
2354
  "ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
2354
2355
  "ds:min-h-[var(--min-target-size)]",
@@ -2374,13 +2375,13 @@ const Xr = Dt(
2374
2375
  defaultVariants: { state: "idle" }
2375
2376
  }
2376
2377
  );
2377
- function Qr({
2378
+ function ei({
2378
2379
  services: e,
2379
2380
  selectedServiceId: t,
2380
2381
  onSelect: s,
2381
2382
  showDuration: i
2382
2383
  }) {
2383
- const { t: r } = Z("ui"), a = Un(), c = at(), [l, m] = H(() => {
2384
+ const { t: r } = Z("ui"), c = Un(), a = at(), [l, m] = H(() => {
2384
2385
  if (t) {
2385
2386
  const h = e.findIndex((d) => d.id === t);
2386
2387
  if (h >= 0) return h;
@@ -2432,10 +2433,10 @@ function Qr({
2432
2433
  {
2433
2434
  role: "radiogroup",
2434
2435
  "aria-label": r("booking.serviceListLabel"),
2435
- id: c,
2436
+ id: a,
2436
2437
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
2437
2438
  children: e.map((h, d) => {
2438
- const g = t === h.id, I = l === d, { price: u, payment: F, paymentTone: N } = a(h), w = u ? F ? r("booking.serviceCardLabelPayment", {
2439
+ const g = t === h.id, I = l === d, { price: u, payment: F, paymentTone: N } = c(h), w = u ? F ? r("booking.serviceCardLabelPayment", {
2439
2440
  label: h.label,
2440
2441
  price: u,
2441
2442
  payment: F
@@ -2448,7 +2449,7 @@ function Qr({
2448
2449
  }) : i ? r("booking.serviceCardLabel", {
2449
2450
  label: h.label,
2450
2451
  duration: h.durationMin
2451
- }) : h.label, x = Jr(h);
2452
+ }) : h.label, x = Wr(h);
2452
2453
  return /* @__PURE__ */ S(
2453
2454
  "button",
2454
2455
  {
@@ -2463,7 +2464,7 @@ function Qr({
2463
2464
  onClick: () => s(h.id),
2464
2465
  onFocus: () => m(d),
2465
2466
  onKeyDown: (O) => v(O, d, h.id),
2466
- className: Xr({
2467
+ className: Qr({
2467
2468
  state: g ? "selected" : "idle"
2468
2469
  }),
2469
2470
  children: [
@@ -2487,7 +2488,7 @@ function Qr({
2487
2488
  F ? /* @__PURE__ */ n(
2488
2489
  "span",
2489
2490
  {
2490
- className: hs({ tone: N }),
2491
+ className: vs({ tone: N }),
2491
2492
  children: F
2492
2493
  }
2493
2494
  ) : u || !i ? null : /* @__PURE__ */ n("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r("booking.serviceSummary", {
@@ -2510,7 +2511,7 @@ function Qr({
2510
2511
  }
2511
2512
  );
2512
2513
  }
2513
- const ei = Dt(
2514
+ const ti = At(
2514
2515
  [
2515
2516
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
2516
2517
  "ds:min-h-[var(--min-target-size)]",
@@ -2536,7 +2537,7 @@ const ei = Dt(
2536
2537
  defaultVariants: { state: "idle" }
2537
2538
  }
2538
2539
  );
2539
- function ti(e) {
2540
+ function ni(e) {
2540
2541
  const [t] = e.split(":").map((i) => parseInt(i, 10)), s = Number.isFinite(t) ? t : 0;
2541
2542
  return s < 12 ? "morning" : s < 17 ? "afternoon" : "evening";
2542
2543
  }
@@ -2551,22 +2552,22 @@ function Yt(e, t, s) {
2551
2552
  return t;
2552
2553
  }
2553
2554
  }
2554
- const ni = {
2555
- morning: Ts,
2556
- afternoon: er,
2557
- evening: Cs
2555
+ const si = {
2556
+ morning: As,
2557
+ afternoon: tr,
2558
+ evening: Ts
2558
2559
  };
2559
- function si({
2560
+ function ri({
2560
2561
  date: e,
2561
2562
  slots: t,
2562
2563
  selectedSlotKey: s,
2563
2564
  onSelect: i,
2564
2565
  loading: r,
2565
- locale: a
2566
+ locale: c
2566
2567
  }) {
2567
- const { t: c } = Z("ui"), l = $(() => {
2568
+ const { t: a } = Z("ui"), l = $(() => {
2568
2569
  try {
2569
- return new Intl.DateTimeFormat(a, {
2570
+ return new Intl.DateTimeFormat(c, {
2570
2571
  weekday: "long",
2571
2572
  day: "numeric",
2572
2573
  month: "long"
@@ -2574,31 +2575,31 @@ function si({
2574
2575
  } catch {
2575
2576
  return e;
2576
2577
  }
2577
- }, [e, a]), m = $(() => {
2578
+ }, [e, c]), m = $(() => {
2578
2579
  const v = {
2579
2580
  morning: [],
2580
2581
  afternoon: [],
2581
2582
  evening: []
2582
2583
  };
2583
2584
  for (const h of t)
2584
- v[ti(h.time)].push(h);
2585
+ v[ni(h.time)].push(h);
2585
2586
  return v;
2586
2587
  }, [t]), p = t.filter((v) => v.available).length, f = ["morning", "afternoon", "evening"];
2587
2588
  return r ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2588
- /* @__PURE__ */ n(Wt, { variant: "text", width: "60%" }),
2589
+ /* @__PURE__ */ n(Jt, { variant: "text", width: "60%" }),
2589
2590
  [0, 1].map((v) => /* @__PURE__ */ n(
2590
2591
  "div",
2591
2592
  {
2592
2593
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
2593
- children: [0, 1, 2].map((h) => /* @__PURE__ */ n(Wt, { variant: "rounded", height: "44px" }, h))
2594
+ children: [0, 1, 2].map((h) => /* @__PURE__ */ n(Jt, { variant: "rounded", height: "44px" }, h))
2594
2595
  },
2595
2596
  v
2596
2597
  ))
2597
- ] }) : p === 0 ? /* @__PURE__ */ n(Mn, { variant: "no-results", title: c("booking.noSlotsForDate") }) : /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2598
+ ] }) : p === 0 ? /* @__PURE__ */ n(Mn, { variant: "no-results", title: a("booking.noSlotsForDate") }) : /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2598
2599
  /* @__PURE__ */ S("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
2599
2600
  /* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
2600
2601
  /* @__PURE__ */ n(
2601
- zs,
2602
+ Ks,
2602
2603
  {
2603
2604
  "aria-hidden": "true",
2604
2605
  className: "ds:size-4 ds:text-[color:var(--accent)]"
@@ -2606,12 +2607,12 @@ function si({
2606
2607
  ),
2607
2608
  /* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: l })
2608
2609
  ] }),
2609
- /* @__PURE__ */ n("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count: p }) })
2610
+ /* @__PURE__ */ n("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: a("booking.slotsAvailable", { count: p }) })
2610
2611
  ] }),
2611
2612
  f.map((v) => {
2612
2613
  const h = m[v];
2613
2614
  if (h.length === 0) return null;
2614
- const d = ni[v];
2615
+ const d = si[v];
2615
2616
  return /* @__PURE__ */ S(
2616
2617
  "div",
2617
2618
  {
@@ -2619,13 +2620,13 @@ function si({
2619
2620
  children: [
2620
2621
  /* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
2621
2622
  /* @__PURE__ */ n(d, { "aria-hidden": "true", className: "ds:size-3.5" }),
2622
- /* @__PURE__ */ n("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: c(`booking.timeOfDay.${v}`) })
2623
+ /* @__PURE__ */ n("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: a(`booking.timeOfDay.${v}`) })
2623
2624
  ] }),
2624
2625
  /* @__PURE__ */ n(
2625
2626
  "div",
2626
2627
  {
2627
2628
  role: "group",
2628
- "aria-label": c(`booking.timeOfDay.${v}`),
2629
+ "aria-label": a(`booking.timeOfDay.${v}`),
2629
2630
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
2630
2631
  children: h.map((g) => {
2631
2632
  const I = g.key === s, u = g.available ? I ? "selected" : "idle" : "unavailable";
@@ -2636,12 +2637,12 @@ function si({
2636
2637
  "data-slot-id": g.key,
2637
2638
  disabled: !g.available,
2638
2639
  "aria-pressed": I,
2639
- "aria-label": c("booking.slotAvailableLabel", {
2640
- time: Yt(e, g.time, a)
2640
+ "aria-label": a("booking.slotAvailableLabel", {
2641
+ time: Yt(e, g.time, c)
2641
2642
  }),
2642
2643
  onClick: () => g.available && i(g),
2643
- className: ei({ state: u }),
2644
- children: Yt(e, g.time, a)
2644
+ className: ti({ state: u }),
2645
+ children: Yt(e, g.time, c)
2645
2646
  },
2646
2647
  g.key
2647
2648
  );
@@ -2655,15 +2656,15 @@ function si({
2655
2656
  })
2656
2657
  ] });
2657
2658
  }
2658
- const Gt = 4;
2659
- function ri({
2659
+ const Ht = 4;
2660
+ function ii({
2660
2661
  availableDates: e,
2661
2662
  availableSlots: t,
2662
2663
  value: s,
2663
2664
  onChange: i,
2664
2665
  onDateSelect: r,
2665
- onWindowChange: a,
2666
- loadingDates: c,
2666
+ onWindowChange: c,
2667
+ loadingDates: a,
2667
2668
  loadingSlots: l,
2668
2669
  locale: m,
2669
2670
  agentIdBase: p
@@ -2679,9 +2680,9 @@ function ri({
2679
2680
  }
2680
2681
  return f;
2681
2682
  }), d = $(
2682
- () => sn(v, Gt - 1),
2683
+ () => sn(v, Ht - 1),
2683
2684
  [v]
2684
- ), g = $(() => Array.from({ length: Gt }, (b, C) => {
2685
+ ), g = $(() => Array.from({ length: Ht }, (b, C) => {
2685
2686
  const P = sn(v, C), A = ot(P), B = (t[A] ?? []).map((D) => ({
2686
2687
  id: D.key,
2687
2688
  // SlotGrid formats `start` as a time via Intl.DateTimeFormat —
@@ -2693,22 +2694,22 @@ function ri({
2693
2694
  return { date: A, slots: B };
2694
2695
  }), [v, t]), I = kt(v, f), u = !0, F = ke(() => {
2695
2696
  h((b) => {
2696
- const C = Is(b, Gt);
2697
+ const C = Ns(b, Ht);
2697
2698
  return kt(f, C) ? f : C;
2698
2699
  });
2699
2700
  }, [f]), N = ke(() => {
2700
- h((b) => sn(b, Gt));
2701
+ h((b) => sn(b, Ht));
2701
2702
  }, []);
2702
2703
  q(() => {
2703
2704
  if (e.length === 0) return;
2704
2705
  const b = yt(fe(e[0]));
2705
2706
  !kt(b, f) || e.some((P) => {
2706
2707
  const A = yt(fe(P));
2707
- return !kt(A, d) && !Ss(A, v);
2708
+ return !kt(A, d) && !xs(A, v);
2708
2709
  }) || h(b);
2709
2710
  }, [e]), q(() => {
2710
- a == null || a(ot(v), ot(d));
2711
- }, [v, d, a]);
2711
+ c == null || c(ot(v), ot(d));
2712
+ }, [v, d, c]);
2712
2713
  const w = ke(
2713
2714
  (b, C) => {
2714
2715
  const P = typeof C.date == "string" ? C.date : ot(C.date);
@@ -2717,7 +2718,7 @@ function ri({
2717
2718
  }), r == null || r(P);
2718
2719
  },
2719
2720
  [i, r, s]
2720
- ), x = c || l ? "loading" : "default", O = g.some((b) => b.slots.length > 0), R = e[0];
2721
+ ), x = a || l ? "loading" : "default", O = g.some((b) => b.slots.length > 0), R = e[0];
2721
2722
  return /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2722
2723
  x !== "loading" && !O && !!R ? /* @__PURE__ */ n(
2723
2724
  gn,
@@ -2728,7 +2729,7 @@ function ri({
2728
2729
  }
2729
2730
  ) : null,
2730
2731
  /* @__PURE__ */ n(
2731
- ys,
2732
+ ks,
2732
2733
  {
2733
2734
  id: p ? `${p}-slots` : void 0,
2734
2735
  days: g,
@@ -2751,29 +2752,29 @@ function Hn(e) {
2751
2752
  value: s,
2752
2753
  onChange: i,
2753
2754
  onDateSelect: r,
2754
- onWindowChange: a,
2755
- loadingDates: c,
2755
+ onWindowChange: c,
2756
+ loadingDates: a,
2756
2757
  loadingSlots: l,
2757
2758
  locale: m,
2758
2759
  datePickerStyle: p,
2759
2760
  agentIdBase: f
2760
2761
  } = e;
2761
2762
  return p === "four-day-grid" ? /* @__PURE__ */ n(
2762
- ri,
2763
+ ii,
2763
2764
  {
2764
2765
  availableDates: t.availableDates,
2765
2766
  availableSlots: t.availableSlots,
2766
2767
  value: s,
2767
2768
  onChange: i,
2768
2769
  onDateSelect: r,
2769
- onWindowChange: a,
2770
- loadingDates: c,
2770
+ onWindowChange: c,
2771
+ loadingDates: a,
2771
2772
  loadingSlots: l,
2772
2773
  locale: m,
2773
2774
  agentIdBase: f
2774
2775
  }
2775
2776
  ) : /* @__PURE__ */ n(
2776
- Zr,
2777
+ Xr,
2777
2778
  {
2778
2779
  availableDates: t.availableDates,
2779
2780
  selectedDate: s.date,
@@ -2781,21 +2782,21 @@ function Hn(e) {
2781
2782
  i(Qt(s, v)), r == null || r(v);
2782
2783
  },
2783
2784
  locale: m,
2784
- loading: c ?? l
2785
+ loading: a ?? l
2785
2786
  }
2786
2787
  );
2787
2788
  }
2788
2789
  function Gn(e) {
2789
- const { inputs: t, value: s, onChange: i, loadingSlots: r, locale: a, datePickerStyle: c } = e;
2790
- return c === "four-day-grid" || !s.date ? null : /* @__PURE__ */ n(
2791
- si,
2790
+ const { inputs: t, value: s, onChange: i, loadingSlots: r, locale: c, datePickerStyle: a } = e;
2791
+ return a === "four-day-grid" || !s.date ? null : /* @__PURE__ */ n(
2792
+ ri,
2792
2793
  {
2793
2794
  date: s.date,
2794
2795
  slots: t.availableSlots[s.date] ?? [],
2795
2796
  selectedSlotKey: s.slotKey,
2796
2797
  onSelect: (l) => i(Vn(s, l.key)),
2797
2798
  loading: r,
2798
- locale: a
2799
+ locale: c
2799
2800
  }
2800
2801
  );
2801
2802
  }
@@ -2826,14 +2827,14 @@ function Wn({
2826
2827
  valueIds: s,
2827
2828
  onChange: i,
2828
2829
  onChangeIds: r,
2829
- pickerStyle: a = "select"
2830
+ pickerStyle: c = "select"
2830
2831
  }) {
2831
- const { t: c } = Z("ui"), l = e.map((p) => ({
2832
+ const { t: a } = Z("ui"), l = e.map((p) => ({
2832
2833
  value: p.id,
2833
2834
  label: p.label,
2834
2835
  dir: "auto"
2835
- })), m = /* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.specialty.heading") });
2836
- return a === "multi-select" && r ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2836
+ })), m = /* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: a("booking.specialty.heading") });
2837
+ return c === "multi-select" && r ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2837
2838
  m,
2838
2839
  /* @__PURE__ */ n(
2839
2840
  mn,
@@ -2841,12 +2842,12 @@ function Wn({
2841
2842
  options: l,
2842
2843
  value: s ?? [],
2843
2844
  onChange: r,
2844
- placeholder: c("booking.specialty.placeholder"),
2845
- "aria-label": c("booking.specialty.heading"),
2845
+ placeholder: a("booking.specialty.placeholder"),
2846
+ "aria-label": a("booking.specialty.heading"),
2846
2847
  allowClear: !0
2847
2848
  }
2848
2849
  )
2849
- ] }) : a === "combobox" ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2850
+ ] }) : c === "combobox" ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2850
2851
  m,
2851
2852
  /* @__PURE__ */ n(
2852
2853
  un,
@@ -2854,8 +2855,8 @@ function Wn({
2854
2855
  options: l,
2855
2856
  value: t ?? "",
2856
2857
  onValueChange: (p) => i(p === "" ? "" : p),
2857
- placeholder: c("booking.specialty.placeholder"),
2858
- "aria-label": c("booking.specialty.heading"),
2858
+ placeholder: a("booking.specialty.placeholder"),
2859
+ "aria-label": a("booking.specialty.heading"),
2859
2860
  clearable: !0
2860
2861
  }
2861
2862
  )
@@ -2867,8 +2868,8 @@ function Wn({
2867
2868
  options: l,
2868
2869
  value: t ?? "",
2869
2870
  onValueChange: (p) => i(p),
2870
- placeholder: c("booking.specialty.placeholder"),
2871
- "aria-label": c("booking.specialty.heading")
2871
+ placeholder: a("booking.specialty.placeholder"),
2872
+ "aria-label": a("booking.specialty.heading")
2872
2873
  }
2873
2874
  )
2874
2875
  ] });
@@ -2879,11 +2880,11 @@ function Yn({
2879
2880
  valueIds: s,
2880
2881
  onChange: i,
2881
2882
  onChangeIds: r,
2882
- pickerStyle: a,
2883
- compact: c,
2883
+ pickerStyle: c,
2884
+ compact: a,
2884
2885
  showDuration: l
2885
2886
  }) {
2886
- const { t: m } = Z("ui"), p = Un(), f = a ?? (c ? "select" : "cards"), v = e.map((d) => {
2887
+ const { t: m } = Z("ui"), p = Un(), f = c ?? (a ? "select" : "cards"), v = e.map((d) => {
2887
2888
  const { price: g, payment: I, paymentTone: u } = p(d);
2888
2889
  return {
2889
2890
  value: d.id,
@@ -2945,7 +2946,7 @@ function Yn({
2945
2946
  ] }) : /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2946
2947
  h,
2947
2948
  /* @__PURE__ */ n(
2948
- Qr,
2949
+ ei,
2949
2950
  {
2950
2951
  services: e,
2951
2952
  selectedServiceId: t,
@@ -2961,10 +2962,10 @@ function Zn({
2961
2962
  valueIds: s,
2962
2963
  onChange: i,
2963
2964
  onChangeIds: r,
2964
- pickerStyle: a = "select"
2965
+ pickerStyle: c = "select"
2965
2966
  }) {
2966
- const { t: c } = Z("ui"), l = /* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.operator.heading") });
2967
- if (a === "multi-select" && r) {
2967
+ const { t: a } = Z("ui"), l = /* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: a("booking.operator.heading") });
2968
+ if (c === "multi-select" && r) {
2968
2969
  const p = e.map((f) => ({
2969
2970
  value: f.id,
2970
2971
  label: f.name,
@@ -2978,20 +2979,20 @@ function Zn({
2978
2979
  options: p,
2979
2980
  value: s ?? [],
2980
2981
  onChange: r,
2981
- placeholder: c("booking.operator.all"),
2982
- "aria-label": c("booking.operator.heading"),
2982
+ placeholder: a("booking.operator.all"),
2983
+ "aria-label": a("booking.operator.heading"),
2983
2984
  allowClear: !0
2984
2985
  }
2985
2986
  )
2986
2987
  ] });
2987
2988
  }
2988
2989
  const m = [
2989
- { value: Re, label: c("booking.operator.all") },
2990
+ { value: Re, label: a("booking.operator.all") },
2990
2991
  ...e.map(
2991
2992
  (p) => ({ value: p.id, label: p.name, dir: "auto" })
2992
2993
  )
2993
2994
  ];
2994
- return a === "combobox" ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2995
+ return c === "combobox" ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2995
2996
  l,
2996
2997
  /* @__PURE__ */ n(
2997
2998
  un,
@@ -2999,8 +3000,8 @@ function Zn({
2999
3000
  options: m,
3000
3001
  value: t ?? Re,
3001
3002
  onValueChange: (p) => i(p === "" ? Re : p),
3002
- placeholder: c("booking.operator.placeholder"),
3003
- "aria-label": c("booking.operator.heading"),
3003
+ placeholder: a("booking.operator.placeholder"),
3004
+ "aria-label": a("booking.operator.heading"),
3004
3005
  clearable: !0
3005
3006
  }
3006
3007
  )
@@ -3012,8 +3013,8 @@ function Zn({
3012
3013
  options: m,
3013
3014
  value: t ?? Re,
3014
3015
  onValueChange: (p) => i(p),
3015
- placeholder: c("booking.operator.placeholder"),
3016
- "aria-label": c("booking.operator.heading")
3016
+ placeholder: a("booking.operator.placeholder"),
3017
+ "aria-label": a("booking.operator.heading")
3017
3018
  }
3018
3019
  )
3019
3020
  ] });
@@ -3046,14 +3047,14 @@ function gn({
3046
3047
  /* @__PURE__ */ n(oe.Action, { children: /* @__PURE__ */ n(we, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
3047
3048
  ] });
3048
3049
  }
3049
- function ii({
3050
+ function oi({
3050
3051
  codeVerified: e = !1,
3051
3052
  handoverUrl: t,
3052
3053
  handoverDelayMs: s,
3053
3054
  onNavigate: i,
3054
3055
  payment: r,
3055
- confirmationChannels: a,
3056
- snapshot: c,
3056
+ confirmationChannels: c,
3057
+ snapshot: a,
3057
3058
  operators: l,
3058
3059
  specialties: m,
3059
3060
  services: p,
@@ -3069,9 +3070,9 @@ function ii({
3069
3070
  const A = F.current, L = document.activeElement, B = A == null ? void 0 : A.closest('[data-component="booking"]');
3070
3071
  !r && !e || !A || (L && (B != null && B.contains(L)) || I()) && A.focus();
3071
3072
  }, []);
3072
- const N = pn(a), x = qn(
3073
+ const N = pn(c), x = qn(
3073
3074
  N,
3074
- c.details.confirmationChannels
3075
+ a.details.confirmationChannels
3075
3076
  ).map(
3076
3077
  (A) => u(`booking.confirmation.channel.${A}`)
3077
3078
  ), O = r ? Zt(r.amountCents, r.currencyCode, f) : "", R = r ? u(
@@ -3082,18 +3083,18 @@ function ii({
3082
3083
  }) : u("booking.success.descriptionSingle", {
3083
3084
  channel: x[0]
3084
3085
  }), _ = $(() => {
3085
- if (c.date)
3086
+ if (a.date)
3086
3087
  try {
3087
3088
  return new Intl.DateTimeFormat(f, {
3088
3089
  weekday: "long",
3089
3090
  day: "numeric",
3090
3091
  month: "long"
3091
- }).format(fe(c.date));
3092
+ }).format(fe(a.date));
3092
3093
  } catch {
3093
- return c.date;
3094
+ return a.date;
3094
3095
  }
3095
- }, [c.date, f]), b = $(() => {
3096
- const L = (c.operatorIds && c.operatorIds.length > 0 ? c.operatorIds : c.operatorId ? [c.operatorId] : []).filter((B) => B !== Re).map((B) => {
3096
+ }, [a.date, f]), b = $(() => {
3097
+ const L = (a.operatorIds && a.operatorIds.length > 0 ? a.operatorIds : a.operatorId ? [a.operatorId] : []).filter((B) => B !== Re).map((B) => {
3097
3098
  var D;
3098
3099
  return (D = l.find((k) => k.id === B)) == null ? void 0 : D.name;
3099
3100
  }).filter((B) => B !== void 0);
@@ -3109,30 +3110,30 @@ function ii({
3109
3110
  { type: "element", value: B }
3110
3111
  ]);
3111
3112
  }
3112
- }, [c.operatorIds, c.operatorId, l, f]), C = c.specialtyId ? m.find((A) => A.id === c.specialtyId) : void 0, P = c.serviceId ? p.find((A) => A.id === c.serviceId) : void 0;
3113
+ }, [a.operatorIds, a.operatorId, l, f]), C = a.specialtyId ? m.find((A) => A.id === a.specialtyId) : void 0, P = a.serviceId ? p.find((A) => A.id === a.serviceId) : void 0;
3113
3114
  if (t) {
3114
3115
  let A;
3115
- if (c.date)
3116
+ if (a.date)
3116
3117
  try {
3117
3118
  A = new Intl.DateTimeFormat(f, {
3118
3119
  weekday: "short",
3119
3120
  day: "numeric",
3120
3121
  month: "short"
3121
- }).format(fe(c.date));
3122
+ }).format(fe(a.date));
3122
3123
  } catch {
3123
- A = c.date;
3124
+ A = a.date;
3124
3125
  }
3125
3126
  const L = (P == null ? void 0 : P.label) ?? (C == null ? void 0 : C.label), B = b.map(
3126
3127
  (D, k) => D.type === "element" ? /* @__PURE__ */ n("bdi", { children: D.value }, k) : D.value
3127
3128
  );
3128
3129
  return /* @__PURE__ */ n(
3129
- $r,
3130
+ qr,
3130
3131
  {
3131
3132
  url: t,
3132
- delayMs: jr(s),
3133
+ delayMs: Ur(s),
3133
3134
  onNavigate: i,
3134
3135
  date: A,
3135
- time: Yt(c.date, c.slot.time, f),
3136
+ time: Yt(a.date, a.slot.time, f),
3136
3137
  details: L || B.length > 0 ? /* @__PURE__ */ S(ie, { children: [
3137
3138
  L ? /* @__PURE__ */ n("bdi", { children: L }) : null,
3138
3139
  L && B.length > 0 ? " · " : null,
@@ -3158,7 +3159,7 @@ function ii({
3158
3159
  as: "h3",
3159
3160
  ref: F,
3160
3161
  tabIndex: r || e ? -1 : void 0,
3161
- className: r || e ? St : void 0,
3162
+ className: r || e ? "ds:outline-none" : void 0,
3162
3163
  children: u(
3163
3164
  r ? v === "demo" ? "booking.payment.paidDemoTitle" : "booking.payment.paidTitle" : e ? "booking.code.confirmedHeading" : "booking.success.heading"
3164
3165
  )
@@ -3198,7 +3199,7 @@ function ii({
3198
3199
  /* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: _ })
3199
3200
  ] }) : null,
3200
3201
  /* @__PURE__ */ n("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: u("booking.success.summaryTime") }),
3201
- /* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: Yt(c.date, c.slot.time, f) }),
3202
+ /* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: Yt(a.date, a.slot.time, f) }),
3202
3203
  b.length > 0 ? /* @__PURE__ */ S(ie, { children: [
3203
3204
  /* @__PURE__ */ n("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: u("booking.success.summaryProvider") }),
3204
3205
  /* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: b.map(
@@ -3225,7 +3226,7 @@ function Qn({ customSlot: e }) {
3225
3226
  }
3226
3227
  );
3227
3228
  }
3228
- const es = "data-booking-step-active", oi = `[${es}]`;
3229
+ const es = "data-booking-step-active", ai = `[${es}]`;
3229
3230
  function re({
3230
3231
  step: e,
3231
3232
  active: t,
@@ -3240,7 +3241,7 @@ function re({
3240
3241
  "data-booking-step": String(e),
3241
3242
  ...t ? { [es]: "" } : null,
3242
3243
  tabIndex: -1,
3243
- className: s ? `${s} ${St}` : St,
3244
+ className: s ? `${s} ${Wt}` : Wt,
3244
3245
  children: r
3245
3246
  }
3246
3247
  );
@@ -3248,14 +3249,14 @@ function re({
3248
3249
  function hn(e, t) {
3249
3250
  return t === "four-day-grid" ? e.filter((s) => s !== 6) : e;
3250
3251
  }
3251
- function ai(e) {
3252
+ function ci(e) {
3252
3253
  const {
3253
3254
  cascade: t,
3254
3255
  inputs: s,
3255
3256
  value: i,
3256
3257
  onChange: r,
3257
- onSubmit: a,
3258
- emptyServicesSlot: c,
3258
+ onSubmit: c,
3259
+ emptyServicesSlot: a,
3259
3260
  onboardingIncompleteSlot: l,
3260
3261
  loadingDates: m,
3261
3262
  loadingSlots: p,
@@ -3271,7 +3272,7 @@ function ai(e) {
3271
3272
  detailsProps: w,
3272
3273
  agentIdBase: x,
3273
3274
  activeStep: O
3274
- } = e, { t: R } = Z("ui"), _ = xt(O, h), b = (C, P) => ({
3275
+ } = e, { t: R } = Z("ui"), _ = St(O, h), b = (C, P) => ({
3275
3276
  step: C,
3276
3277
  active: C === _,
3277
3278
  className: P
@@ -3295,7 +3296,7 @@ function ai(e) {
3295
3296
  pickerStyle: d
3296
3297
  }
3297
3298
  ) }) : null,
3298
- t.gates.service ? /* @__PURE__ */ n(re, { ...b(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ n(Qn, { customSlot: c }) : /* @__PURE__ */ n(
3299
+ t.gates.service ? /* @__PURE__ */ n(re, { ...b(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ n(Qn, { customSlot: a }) : /* @__PURE__ */ n(
3299
3300
  Yn,
3300
3301
  {
3301
3302
  services: t.filtered.services,
@@ -3370,7 +3371,7 @@ function ai(e) {
3370
3371
  ...w,
3371
3372
  value: i.details ?? {},
3372
3373
  onChange: (C) => r({ ...i, details: C }),
3373
- onSubmit: a,
3374
+ onSubmit: c,
3374
3375
  submitting: F,
3375
3376
  defaultPhoneCountry: e.policy.country
3376
3377
  }
@@ -3381,8 +3382,8 @@ function Ne(e, t, s = {}) {
3381
3382
  const {
3382
3383
  cascade: i,
3383
3384
  inputs: r,
3384
- value: a,
3385
- onChange: c,
3385
+ value: c,
3386
+ onChange: a,
3386
3387
  onSubmit: l,
3387
3388
  emptyServicesSlot: m,
3388
3389
  onboardingIncompleteSlot: p,
@@ -3406,8 +3407,8 @@ function Ne(e, t, s = {}) {
3406
3407
  return /* @__PURE__ */ n(
3407
3408
  Jn,
3408
3409
  {
3409
- value: a.insuranceType,
3410
- onChange: (b) => c(En(a, b))
3410
+ value: c.insuranceType,
3411
+ onChange: (b) => a(En(c, b))
3411
3412
  }
3412
3413
  );
3413
3414
  case 2:
@@ -3415,10 +3416,10 @@ function Ne(e, t, s = {}) {
3415
3416
  Wn,
3416
3417
  {
3417
3418
  specialties: i.filtered.specialties,
3418
- value: a.specialtyId,
3419
- valueIds: a.specialtyIds,
3420
- onChange: (b) => c(Fn(a, b)),
3421
- onChangeIds: (b) => c(Rn(a, b)),
3419
+ value: c.specialtyId,
3420
+ valueIds: c.specialtyIds,
3421
+ onChange: (b) => a(Fn(c, b)),
3422
+ onChangeIds: (b) => a(Rn(c, b)),
3422
3423
  pickerStyle: I
3423
3424
  }
3424
3425
  );
@@ -3427,10 +3428,10 @@ function Ne(e, t, s = {}) {
3427
3428
  Yn,
3428
3429
  {
3429
3430
  services: i.filtered.services,
3430
- value: a.serviceId,
3431
- valueIds: a.serviceIds,
3432
- onChange: (b) => c(_n(a, b)),
3433
- onChangeIds: (b) => c(Ln(a, b)),
3431
+ value: c.serviceId,
3432
+ valueIds: c.serviceIds,
3433
+ onChange: (b) => a(_n(c, b)),
3434
+ onChangeIds: (b) => a(Ln(c, b)),
3434
3435
  pickerStyle: u,
3435
3436
  compact: s.compactService,
3436
3437
  showDuration: F
@@ -3441,10 +3442,10 @@ function Ne(e, t, s = {}) {
3441
3442
  Zn,
3442
3443
  {
3443
3444
  operators: i.filtered.operators,
3444
- value: a.operatorId,
3445
- valueIds: a.operatorIds,
3446
- onChange: (b) => c(Bn(a, b)),
3447
- onChangeIds: (b) => c(Pn(a, b)),
3445
+ value: c.operatorId,
3446
+ valueIds: c.operatorIds,
3447
+ onChange: (b) => a(Bn(c, b)),
3448
+ onChangeIds: (b) => a(Pn(c, b)),
3448
3449
  pickerStyle: N
3449
3450
  }
3450
3451
  );
@@ -3453,13 +3454,13 @@ function Ne(e, t, s = {}) {
3453
3454
  gn,
3454
3455
  {
3455
3456
  nextAvailableDate: r.nextAvailableDate,
3456
- onJump: () => c(Qt(a, r.nextAvailableDate)),
3457
+ onJump: () => a(Qt(c, r.nextAvailableDate)),
3457
3458
  locale: x
3458
3459
  }
3459
3460
  ) : Hn({
3460
3461
  inputs: r,
3461
- value: a,
3462
- onChange: c,
3462
+ value: c,
3463
+ onChange: a,
3463
3464
  onDateSelect: h,
3464
3465
  onWindowChange: d,
3465
3466
  loadingDates: f,
@@ -3471,8 +3472,8 @@ function Ne(e, t, s = {}) {
3471
3472
  case 6:
3472
3473
  return Gn({
3473
3474
  inputs: r,
3474
- value: a,
3475
- onChange: c,
3475
+ value: c,
3476
+ onChange: a,
3476
3477
  loadingSlots: v,
3477
3478
  locale: x,
3478
3479
  datePickerStyle: g
@@ -3482,8 +3483,8 @@ function Ne(e, t, s = {}) {
3482
3483
  fn,
3483
3484
  {
3484
3485
  ...O,
3485
- value: a.details ?? {},
3486
- onChange: (b) => c({ ...a, details: b }),
3486
+ value: c.details ?? {},
3487
+ onChange: (b) => a({ ...c, details: b }),
3487
3488
  onSubmit: l,
3488
3489
  submitting: w,
3489
3490
  defaultPhoneCountry: R.country
@@ -3509,24 +3510,24 @@ function en() {
3509
3510
  [e]
3510
3511
  );
3511
3512
  }
3512
- function xt(e, t) {
3513
+ function St(e, t) {
3513
3514
  return t === "four-day-grid" && e === 6 ? 5 : e;
3514
3515
  }
3515
- function ci(e) {
3516
- const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: a } = e, c = en(), { t: l } = Z("ui"), m = l("booking.operator.all"), p = $(
3517
- () => hn(t.visibleSteps, a),
3518
- [t.visibleSteps, a]
3519
- ), f = xt(i, a), v = Math.max(0, p.indexOf(f)), h = $(
3516
+ function di(e) {
3517
+ const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: c } = e, a = en(), { t: l } = Z("ui"), m = l("booking.operator.all"), p = $(
3518
+ () => hn(t.visibleSteps, c),
3519
+ [t.visibleSteps, c]
3520
+ ), f = St(i, c), v = Math.max(0, p.indexOf(f)), h = $(
3520
3521
  () => p.map((d) => ({
3521
- label: c[d],
3522
+ label: a[d],
3522
3523
  summary: ts(d, s, t, m),
3523
- status: di(d, s, t),
3524
+ status: li(d, s, t),
3524
3525
  content: /* @__PURE__ */ n(re, { step: d, active: d === f, children: Ne(d, e, { compactService: !0 }) })
3525
3526
  })),
3526
3527
  [
3527
3528
  p,
3528
3529
  s,
3529
- c,
3530
+ a,
3530
3531
  t,
3531
3532
  e,
3532
3533
  f,
@@ -3534,7 +3535,7 @@ function ci(e) {
3534
3535
  ]
3535
3536
  );
3536
3537
  return /* @__PURE__ */ n(
3537
- vs,
3538
+ bs,
3538
3539
  {
3539
3540
  activeStep: v,
3540
3541
  steps: h,
@@ -3545,7 +3546,7 @@ function ci(e) {
3545
3546
  }
3546
3547
  );
3547
3548
  }
3548
- function di(e, t, s) {
3549
+ function li(e, t, s) {
3549
3550
  return je(e, t) && e < s.currentStep ? "completed" : e <= s.currentStep ? "unlocked" : void 0;
3550
3551
  }
3551
3552
  function wn(e, t) {
@@ -3554,7 +3555,7 @@ function wn(e, t) {
3554
3555
  function on(e, t) {
3555
3556
  const s = e.map((i) => {
3556
3557
  var r;
3557
- return (r = t.find((a) => a.id === i)) == null ? void 0 : r.label;
3558
+ return (r = t.find((c) => c.id === i)) == null ? void 0 : r.label;
3558
3559
  }).filter((i) => i !== void 0);
3559
3560
  return s.length > 0 ? s.join(", ") : void 0;
3560
3561
  }
@@ -3572,14 +3573,14 @@ function ts(e, t, s, i) {
3572
3573
  case 3:
3573
3574
  return on(Ue(t), s.filtered.services);
3574
3575
  case 4: {
3575
- const c = dn(t).filter((m) => m !== Re), l = on(
3576
- c,
3576
+ const a = dn(t).filter((m) => m !== Re), l = on(
3577
+ a,
3577
3578
  s.filtered.operators.map((m) => ({
3578
3579
  id: m.id,
3579
3580
  label: m.name
3580
3581
  }))
3581
3582
  );
3582
- return l !== void 0 ? l : c.length === 0 ? i : void 0;
3583
+ return l !== void 0 ? l : a.length === 0 ? i : void 0;
3583
3584
  }
3584
3585
  case 5:
3585
3586
  return t.date;
@@ -3589,8 +3590,8 @@ function ts(e, t, s, i) {
3589
3590
  return;
3590
3591
  }
3591
3592
  }
3592
- function li(e) {
3593
- const { cascade: t, value: s, activeStep: i, setActiveStep: r } = e, { t: a } = Z("ui"), c = en(), l = a("booking.operator.all"), m = `${at()}-filter`, p = xt(i, e.datePickerStyle), f = t.visibleSteps.filter(
3593
+ function ui(e) {
3594
+ const { cascade: t, value: s, activeStep: i, setActiveStep: r } = e, { t: c } = Z("ui"), a = en(), l = c("booking.operator.all"), m = `${at()}-filter`, p = St(i, e.datePickerStyle), f = t.visibleSteps.filter(
3594
3595
  (d) => d === 1 || d === 2 || d === 3 || d === 4
3595
3596
  ), v = f.some(
3596
3597
  (d) => !je(d, s)
@@ -3602,7 +3603,7 @@ function li(e) {
3602
3603
  "div",
3603
3604
  {
3604
3605
  role: "group",
3605
- "aria-label": a("booking.filtersLabel"),
3606
+ "aria-label": c("booking.filtersLabel"),
3606
3607
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
3607
3608
  children: f.map((d) => {
3608
3609
  const g = ts(
@@ -3617,7 +3618,7 @@ function li(e) {
3617
3618
  intent: I ? "primary" : "outline",
3618
3619
  size: "sm",
3619
3620
  endIcon: /* @__PURE__ */ n(
3620
- ks,
3621
+ Ss,
3621
3622
  {
3622
3623
  "aria-hidden": "true",
3623
3624
  className: I ? "ds:rotate-180" : void 0
@@ -3630,10 +3631,10 @@ function li(e) {
3630
3631
  u && I ? t.currentStep : d
3631
3632
  ),
3632
3633
  children: g ? /* @__PURE__ */ S(ie, { children: [
3633
- c[d],
3634
+ a[d],
3634
3635
  ": ",
3635
3636
  g
3636
- ] }) : c[d]
3637
+ ] }) : a[d]
3637
3638
  },
3638
3639
  `csc-${d}`
3639
3640
  );
@@ -3678,8 +3679,8 @@ function li(e) {
3678
3679
  t.gates.details ? /* @__PURE__ */ n(re, { step: 7, active: p === 7, children: Ne(7, e) }) : null
3679
3680
  ] });
3680
3681
  }
3681
- function ui(e) {
3682
- const { cascade: t, datePickerStyle: s, activeStep: i } = e, r = xt(i, s), a = t.visibleSteps.filter(
3682
+ function mi(e) {
3683
+ const { cascade: t, datePickerStyle: s, activeStep: i } = e, r = St(i, s), c = t.visibleSteps.filter(
3683
3684
  (l) => l === 1 || l === 2 || l === 3 || l === 4
3684
3685
  );
3685
3686
  return /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -3688,7 +3689,7 @@ function ui(e) {
3688
3689
  {
3689
3690
  className: s === "four-day-grid" ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]" : "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2",
3690
3691
  children: [
3691
- /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: a.map((l) => /* @__PURE__ */ n(re, { step: l, active: l === r, children: Ne(l, e, { compactService: !0 }) }, `fbf-${l}`)) }),
3692
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: c.map((l) => /* @__PURE__ */ n(re, { step: l, active: l === r, children: Ne(l, e, { compactService: !0 }) }, `fbf-${l}`)) }),
3692
3693
  /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
3693
3694
  t.gates.date ? /* @__PURE__ */ n(re, { step: 5, active: r === 5, children: Ne(5, e) }) : null,
3694
3695
  t.gates.slot && e.value.date && s === "month-calendar" ? /* @__PURE__ */ n(re, { step: 6, active: r === 6, children: Ne(6, e) }) : null
@@ -3699,16 +3700,16 @@ function ui(e) {
3699
3700
  t.gates.details ? /* @__PURE__ */ n(re, { step: 7, active: r === 7, children: Ne(7, e) }) : null
3700
3701
  ] });
3701
3702
  }
3702
- function mi(e) {
3703
- const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: a } = e, { t: c } = Z("ui"), l = en(), m = $(
3704
- () => hn(t.visibleSteps, a),
3705
- [t.visibleSteps, a]
3706
- ), p = xt(i, a), f = Math.max(0, m.indexOf(p)), v = m.length, h = $(
3703
+ function pi(e) {
3704
+ const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: c } = e, { t: a } = Z("ui"), l = en(), m = $(
3705
+ () => hn(t.visibleSteps, c),
3706
+ [t.visibleSteps, c]
3707
+ ), p = St(i, c), f = Math.max(0, m.indexOf(p)), v = m.length, h = $(
3707
3708
  () => m.map((u) => ({ label: l[u] })),
3708
3709
  [m, l]
3709
- ), d = f > 0, g = p === 5 && a === "four-day-grid", I = f < v - 1 && je(p, s) && (!g || je(6, s));
3710
+ ), d = f > 0, g = p === 5 && c === "four-day-grid", I = f < v - 1 && je(p, s) && (!g || je(6, s));
3710
3711
  return /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
3711
- /* @__PURE__ */ n(bs, { activeStep: f, steps: h }),
3712
+ /* @__PURE__ */ n(ys, { activeStep: f, steps: h }),
3712
3713
  /* @__PURE__ */ n(re, { step: p, active: !0, children: Ne(p, e, { compactService: !0 }) }),
3713
3714
  /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
3714
3715
  /* @__PURE__ */ n(
@@ -3721,7 +3722,7 @@ function mi(e) {
3721
3722
  const u = m[f - 1];
3722
3723
  u && r(u);
3723
3724
  },
3724
- children: c("booking.actions.back")
3725
+ children: a("booking.actions.back")
3725
3726
  }
3726
3727
  ),
3727
3728
  p < 7 ? /* @__PURE__ */ n(
@@ -3734,17 +3735,17 @@ function mi(e) {
3734
3735
  const u = m[f + 1];
3735
3736
  u && r(u);
3736
3737
  },
3737
- children: c("booking.actions.next")
3738
+ children: a("booking.actions.next")
3738
3739
  }
3739
3740
  ) : null
3740
3741
  ] })
3741
3742
  ] });
3742
3743
  }
3743
- const pi = [], fi = [];
3744
- function gi() {
3744
+ const fi = [], gi = [];
3745
+ function hi() {
3745
3746
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
3746
3747
  }
3747
- const hi = Cn(
3748
+ const vi = Cn(
3748
3749
  ({
3749
3750
  variant: e = "inline-list",
3750
3751
  country: t,
@@ -3754,8 +3755,8 @@ const hi = Cn(
3754
3755
  useSpecialties: s,
3755
3756
  allowOperatorSelection: i = !1,
3756
3757
  lockedOperatorId: r,
3757
- operatorsByService: a = !1,
3758
- autoSelectSingleService: c = !1,
3758
+ operatorsByService: c = !1,
3759
+ autoSelectSingleService: a = !1,
3759
3760
  specialties: l,
3760
3761
  services: m,
3761
3762
  operators: p,
@@ -3801,25 +3802,25 @@ const hi = Cn(
3801
3802
  loadingSlots: Pe,
3802
3803
  submitting: ee,
3803
3804
  submitError: le,
3804
- mode: Mt = "live",
3805
+ mode: Dt = "live",
3805
3806
  showModifyOnSuccess: Ve = !0,
3806
3807
  surface: nt = "flat",
3807
3808
  emptyServicesSlot: z,
3808
3809
  onboardingIncompleteSlot: Ae,
3809
3810
  "aria-label": tn,
3810
3811
  id: He,
3811
- className: Ot,
3812
+ className: Mt,
3812
3813
  onFocus: ct,
3813
3814
  onBlur: Ge,
3814
3815
  ...De
3815
3816
  }, nn) => {
3816
- var wt, Ct, Tt;
3817
- const { t: ae, i18n: Et } = Z("ui"), ue = e ?? "inline-list", $e = Et.language ?? "en", Me = l ?? pi, he = p ?? fi;
3817
+ var Nt, wt, Ct;
3818
+ const { t: ae, i18n: Ot } = Z("ui"), ue = e ?? "inline-list", $e = Ot.language ?? "en", Me = l ?? fi, he = p ?? gi;
3818
3819
  q(() => {
3819
- const o = ur(E, {
3820
+ const o = mr(E, {
3820
3821
  useSpecialties: s,
3821
3822
  lockedOperatorId: r,
3822
- autoSelectSingleService: c,
3823
+ autoSelectSingleService: a,
3823
3824
  specialties: Me,
3824
3825
  services: m
3825
3826
  });
@@ -3827,17 +3828,17 @@ const hi = Cn(
3827
3828
  }, [
3828
3829
  r,
3829
3830
  s,
3830
- c,
3831
+ a,
3831
3832
  Me,
3832
3833
  m
3833
3834
  ]);
3834
3835
  const V = $(
3835
- () => lr({
3836
+ () => ur({
3836
3837
  country: t,
3837
3838
  useSpecialties: s,
3838
3839
  allowOperatorSelection: i,
3839
3840
  lockedOperatorId: r,
3840
- operatorsByService: a,
3841
+ operatorsByService: c,
3841
3842
  specialties: Me,
3842
3843
  services: m,
3843
3844
  operators: he,
@@ -3849,8 +3850,8 @@ const hi = Cn(
3849
3850
  s,
3850
3851
  i,
3851
3852
  r,
3852
- a,
3853
3853
  c,
3854
+ a,
3854
3855
  Me,
3855
3856
  m,
3856
3857
  he,
@@ -3912,9 +3913,9 @@ const hi = Cn(
3912
3913
  const pe = M(null), qe = $(
3913
3914
  () => hn(V.visibleSteps, te),
3914
3915
  [V.visibleSteps, te]
3915
- ), Ft = en(), [Ee, ze] = H(""), Ye = M(null), Ie = M(null);
3916
+ ), Et = en(), [Ee, ze] = H(""), Ye = M(null), Ie = M(null);
3916
3917
  q(() => {
3917
- const o = xt(de, te);
3918
+ const o = St(de, te);
3918
3919
  if (Ie.current === null) {
3919
3920
  Ie.current = o;
3920
3921
  return;
@@ -3926,7 +3927,7 @@ const hi = Cn(
3926
3927
  y === -1 ? "" : ae("booking.stepAnnouncement", {
3927
3928
  current: y + 1,
3928
3929
  total: qe.length,
3929
- label: Ft[o]
3930
+ label: Et[o]
3930
3931
  })
3931
3932
  );
3932
3933
  const T = Ye.current;
@@ -3935,18 +3936,18 @@ const hi = Cn(
3935
3936
  if (!U) return;
3936
3937
  const ye = document.activeElement;
3937
3938
  if (!(ye === null || ye === document.body || !U.contains(ye))) return;
3938
- const qt = U.querySelector(oi) ?? U;
3939
- if (qt.focus({ preventScroll: !0 }), typeof qt.scrollIntoView == "function")
3939
+ const $t = U.querySelector(ai) ?? U;
3940
+ if ($t.focus({ preventScroll: !0 }), typeof $t.scrollIntoView == "function")
3940
3941
  try {
3941
- qt.scrollIntoView({
3942
- behavior: gi() ? "auto" : "smooth",
3942
+ $t.scrollIntoView({
3943
+ behavior: hi() ? "auto" : "smooth",
3943
3944
  block: "nearest"
3944
3945
  });
3945
3946
  } catch {
3946
- qt.scrollIntoView();
3947
+ $t.scrollIntoView();
3947
3948
  }
3948
- }, [de, te, qe, Ft, ae]);
3949
- const K = Lr({
3949
+ }, [de, te, qe, Et, ae]);
3950
+ const K = Br({
3950
3951
  services: m,
3951
3952
  value: E,
3952
3953
  availableSlots: v,
@@ -3959,7 +3960,7 @@ const hi = Cn(
3959
3960
  codeStep: Q
3960
3961
  }), j = K.status, lt = K.submit, it = M(K.reset);
3961
3962
  it.current = K.reset;
3962
- const ut = M(!1), [Rt, _t] = H(!1);
3963
+ const ut = M(!1), [Ft, Rt] = H(!1);
3963
3964
  q(() => {
3964
3965
  var y, T;
3965
3966
  if (!ut.current || j !== "idle") return;
@@ -3969,7 +3970,7 @@ const hi = Cn(
3969
3970
  );
3970
3971
  o && (o.focus({ preventScroll: !0 }), (T = o.scrollIntoView) == null || T.call(o, { block: "nearest" }));
3971
3972
  }, [j]);
3972
- const Ze = at(), mt = M(null), pt = M(null), Lt = ((wt = K.state) == null ? void 0 : wt.status) === "failed", ft = K.state && "phase" in K.state && K.state.phase === "completion";
3973
+ const Ze = at(), mt = M(null), pt = M(null), _t = ((Nt = K.state) == null ? void 0 : Nt.status) === "failed", ft = K.state && "phase" in K.state && K.state.phase === "completion";
3973
3974
  q(() => {
3974
3975
  var o, y;
3975
3976
  if (j === "payment") {
@@ -3978,9 +3979,9 @@ const hi = Cn(
3978
3979
  }
3979
3980
  }, [j, ft]), q(() => {
3980
3981
  var o;
3981
- j === "payment" && Lt && ((o = pt.current) == null || o.focus());
3982
- }, [j, Lt]), ss(nn, () => pe.current, []);
3983
- const Fe = j === "success" ? 8 : j === "payment" || j === "code" ? 7 : V.currentStep, Bt = M(null), gt = M(0);
3982
+ j === "payment" && _t && ((o = pt.current) == null || o.focus());
3983
+ }, [j, _t]), ss(nn, () => pe.current, []);
3984
+ const Fe = j === "success" ? 8 : j === "payment" || j === "code" ? 7 : V.currentStep, Lt = M(null), gt = M(0);
3984
3985
  an(() => {
3985
3986
  var o;
3986
3987
  (j === "submitting" || j === "code" || j === "payment") && (gt.current = ((o = pe.current) == null ? void 0 : o.offsetHeight) ?? 0);
@@ -3991,18 +3992,18 @@ const hi = Cn(
3991
3992
  `${gt.current}px`
3992
3993
  ), gt.current = 0);
3993
3994
  }, [Fe]), q(() => {
3994
- if (Fe === Bt.current) return;
3995
- Bt.current = Fe, Be == null || Be(Fe);
3995
+ if (Fe === Lt.current) return;
3996
+ Lt.current = Fe, Be == null || Be(Fe);
3996
3997
  const o = pe.current;
3997
3998
  if (Fe !== 8 || !o) return;
3998
3999
  const y = () => o.style.removeProperty("--booking-held-height");
3999
- Kn(o, "start") ? Er(y) : y();
4000
+ Kn(o, "start") ? Fr(y) : y();
4000
4001
  }, [Fe, Be]);
4001
4002
  const Xe = M({ activeStep: de, cascade: V, submitState: j });
4002
4003
  q(() => {
4003
4004
  Xe.current = { activeStep: de, cascade: V, submitState: j };
4004
4005
  }, [de, V, j]);
4005
- const Pt = $(
4006
+ const Bt = $(
4006
4007
  () => ({
4007
4008
  getVariant: () => ue,
4008
4009
  getCurrentStep: () => {
@@ -4019,12 +4020,12 @@ const hi = Cn(
4019
4020
  }),
4020
4021
  [ue, J]
4021
4022
  );
4022
- rs(sr, Pt, He);
4023
- const ht = tn ?? ae("booking.regionLabel"), ve = K.snapshot, Vt = j === "success" && ve ? /* @__PURE__ */ n(
4024
- ii,
4023
+ rs(rr, Bt, He);
4024
+ const ht = tn ?? ae("booking.regionLabel"), ve = K.snapshot, Pt = j === "success" && ve ? /* @__PURE__ */ n(
4025
+ oi,
4025
4026
  {
4026
4027
  codeVerified: K.codeVerified,
4027
- handoverUrl: zr(K.redirectUrl),
4028
+ handoverUrl: Kr(K.redirectUrl),
4028
4029
  handoverDelayMs: A,
4029
4030
  onNavigate: L,
4030
4031
  payment: ve.payment,
@@ -4033,15 +4034,15 @@ const hi = Cn(
4033
4034
  ...ve.value,
4034
4035
  slot: ve.slot,
4035
4036
  details: ve.details,
4036
- serviceId: ((Ct = ve.payment) == null ? void 0 : Ct.serviceId) ?? ve.slot.serviceId ?? ve.value.serviceId
4037
+ serviceId: ((wt = ve.payment) == null ? void 0 : wt.serviceId) ?? ve.slot.serviceId ?? ve.value.serviceId
4037
4038
  },
4038
4039
  operators: he,
4039
4040
  specialties: Me,
4040
4041
  services: m,
4041
4042
  locale: $e,
4042
- mode: Mt,
4043
+ mode: Dt,
4043
4044
  showModify: Ve && !ve.payment && !K.codeVerified,
4044
- onReset: () => Pt.reset(),
4045
+ onReset: () => Bt.reset(),
4045
4046
  focusWasLost: () => {
4046
4047
  const o = Ye.current, y = document.activeElement;
4047
4048
  return !!(o && !o.isConnected) && (!y || y === document.body);
@@ -4051,19 +4052,19 @@ const hi = Cn(
4051
4052
  }
4052
4053
  }
4053
4054
  ) : null, ne = j === "code" && K.codeStep ? /* @__PURE__ */ n(
4054
- Fr,
4055
+ Rr,
4055
4056
  {
4056
4057
  ...K.codeStep,
4057
4058
  ...Q,
4058
4059
  onVerified: K.completeCode,
4059
- onBusyChange: _t
4060
+ onBusyChange: Rt
4060
4061
  }
4061
4062
  ) : null, vt = K.activeSession, se = K.state, be = vt && se ? {
4062
4063
  session: vt,
4063
4064
  payment: vt.payment,
4064
4065
  state: se,
4065
- billing: (Tt = K.snapshot) == null ? void 0 : Tt.details.billing
4066
- } : void 0, Qe = se && "phase" in se && se.phase === "completion", $t = j === "payment" && be ? /* @__PURE__ */ S(
4066
+ billing: (Ct = K.snapshot) == null ? void 0 : Ct.details.billing
4067
+ } : void 0, Qe = se && "phase" in se && se.phase === "completion", Vt = j === "payment" && be ? /* @__PURE__ */ S(
4067
4068
  "section",
4068
4069
  {
4069
4070
  "aria-labelledby": Ze,
@@ -4109,7 +4110,7 @@ const hi = Cn(
4109
4110
  ref: pt,
4110
4111
  variant: "error",
4111
4112
  tabIndex: -1,
4112
- className: St,
4113
+ className: Wt,
4113
4114
  children: /* @__PURE__ */ n(oe.Description, { children: be.state.error ?? ae(
4114
4115
  Qe ? "booking.payment.completionFailed" : "booking.payment.failed"
4115
4116
  ) })
@@ -4118,7 +4119,7 @@ const hi = Cn(
4118
4119
  Qe ? D == null ? void 0 : D(be) : B == null ? void 0 : B(be)
4119
4120
  ]
4120
4121
  }
4121
- ) : null, It = $(() => {
4122
+ ) : null, xt = $(() => {
4122
4123
  const o = new Set(Ue(E)), y = m.filter((T) => o.has(T.id)).map((T) => {
4123
4124
  var U;
4124
4125
  return {
@@ -4130,9 +4131,9 @@ const hi = Cn(
4130
4131
  return y.length === 1 ? y[0].text : y.map((T) => `${T.label}: ${T.text}`).join(`
4131
4132
 
4132
4133
  `);
4133
- }, [m, E]), Nt = $(() => {
4134
+ }, [m, E]), It = $(() => {
4134
4135
  if (j === "success" || j === "payment") return null;
4135
- const o = ue === "accordion" ? ci : ue === "calendar" ? li : ue === "flexible" ? ui : ue === "progress" ? mi : ai, y = {
4136
+ const o = ue === "accordion" ? di : ue === "calendar" ? ui : ue === "flexible" ? mi : ue === "progress" ? pi : ci, y = {
4136
4137
  cascade: V,
4137
4138
  inputs: {
4138
4139
  specialties: Me,
@@ -4158,7 +4159,7 @@ const hi = Cn(
4158
4159
  privacyPolicyUrl: R,
4159
4160
  termsUrl: _,
4160
4161
  practiceConsent: b,
4161
- criticalInformationToAccept: It,
4162
+ criticalInformationToAccept: xt,
4162
4163
  locked: j === "code",
4163
4164
  payment: K.payment,
4164
4165
  paymentTermsUrl: C,
@@ -4222,7 +4223,7 @@ const hi = Cn(
4222
4223
  R,
4223
4224
  _,
4224
4225
  b,
4225
- It,
4226
+ xt,
4226
4227
  k,
4227
4228
  Y,
4228
4229
  X,
@@ -4254,10 +4255,10 @@ const hi = Cn(
4254
4255
  "data-component": "booking",
4255
4256
  "data-component-id": He,
4256
4257
  "data-variant": ue,
4257
- className: Ur({
4258
+ className: Hr({
4258
4259
  variant: ue,
4259
4260
  surface: nt,
4260
- className: Ot
4261
+ className: Mt
4261
4262
  }),
4262
4263
  tabIndex: -1,
4263
4264
  onFocus: (o) => {
@@ -4292,16 +4293,16 @@ const hi = Cn(
4292
4293
  }
4293
4294
  ),
4294
4295
  K.cancelled ? /* @__PURE__ */ n(oe, { variant: "info", children: /* @__PURE__ */ n(oe.Description, { children: ae("booking.payment.cancelled") }) }) : null,
4295
- Vt ?? $t ?? /* @__PURE__ */ S(ie, { children: [
4296
+ Pt ?? Vt ?? /* @__PURE__ */ S(ie, { children: [
4296
4297
  Q ? /* @__PURE__ */ n(
4297
4298
  "fieldset",
4298
4299
  {
4299
4300
  "data-slot": "booking-form",
4300
4301
  disabled: ne ? !0 : void 0,
4301
4302
  className: "ds:m-0 ds:min-w-0 ds:border-0 ds:p-0",
4302
- children: Nt
4303
+ children: It
4303
4304
  }
4304
- ) : Nt,
4305
+ ) : It,
4305
4306
  ne ? /* @__PURE__ */ S(ie, { children: [
4306
4307
  /* @__PURE__ */ n("div", { className: "ds:flex ds:justify-end", children: /* @__PURE__ */ n(
4307
4308
  we,
@@ -4309,7 +4310,7 @@ const hi = Cn(
4309
4310
  type: "button",
4310
4311
  intent: "ghost",
4311
4312
  size: "md",
4312
- disabled: Rt,
4313
+ disabled: Ft,
4313
4314
  onClick: () => {
4314
4315
  ut.current = !0, it.current();
4315
4316
  },
@@ -4324,11 +4325,11 @@ const hi = Cn(
4324
4325
  );
4325
4326
  }
4326
4327
  );
4327
- hi.displayName = "Booking";
4328
+ vi.displayName = "Booking";
4328
4329
  export {
4329
- hi as B,
4330
+ vi as B,
4330
4331
  cn as C,
4331
4332
  Re as O,
4332
- sr as b
4333
+ rr as b
4333
4334
  };
4334
- //# sourceMappingURL=booking-CNNtMjXC.js.map
4335
+ //# sourceMappingURL=booking-DjQuhfN7.js.map