@alfadocs/ui-kit-debug 1.86.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.
- package/dist/_chunks/{booking-ya6O9yBv.js → booking-DjQuhfN7.js} +203 -201
- package/dist/_chunks/booking-DjQuhfN7.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/booking/code-step.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-ya6O9yBv.js.map +0 -1
|
@@ -19,42 +19,43 @@ 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 {
|
|
23
|
-
import {
|
|
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
|
|
30
|
+
import { c as vs } from "./option-row-Dc7BrbK8.js";
|
|
30
31
|
import { S as Jt } from "./skeleton-tTWJpvAq.js";
|
|
31
32
|
import { E as Mn } from "./empty-state-DwJ5YNzz.js";
|
|
32
|
-
import { S as
|
|
33
|
-
import { S as
|
|
34
|
-
import { S as
|
|
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
|
|
37
|
+
import { C as Ss } from "./chevron-down-DWE7GSq9.js";
|
|
37
38
|
import { s as yt, f as Gt, d as yn } from "./format--x5jypvH.js";
|
|
38
|
-
import { x as On, a as kt, b as sn, i as
|
|
39
|
-
import { s as
|
|
40
|
-
import { C as
|
|
41
|
-
import { C as
|
|
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
|
|
44
|
-
import { S as
|
|
45
|
-
import { H as
|
|
46
|
-
import { E as
|
|
47
|
-
import { B as
|
|
48
|
-
import { S as
|
|
49
|
-
import { A as
|
|
50
|
-
import { C as
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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
|
-
],
|
|
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
|
|
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",
|
|
205
|
-
function
|
|
205
|
+
], kn = Ce("syringe", nr);
|
|
206
|
+
function sr(e, t, s) {
|
|
206
207
|
return On(e, -1, s);
|
|
207
208
|
}
|
|
208
|
-
const
|
|
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,8 +286,8 @@ const sr = {
|
|
|
285
286
|
"email",
|
|
286
287
|
"whatsapp",
|
|
287
288
|
"sms"
|
|
288
|
-
], Re = "all",
|
|
289
|
-
function
|
|
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(
|
|
@@ -303,7 +304,7 @@ function ir(e) {
|
|
|
303
304
|
return c - a;
|
|
304
305
|
});
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
+
function ar(e) {
|
|
307
308
|
let t = e.services;
|
|
308
309
|
if (e.lockedOperatorId && (t = t.filter(
|
|
309
310
|
(i) => {
|
|
@@ -318,7 +319,7 @@ function or(e) {
|
|
|
318
319
|
}
|
|
319
320
|
return t;
|
|
320
321
|
}
|
|
321
|
-
function
|
|
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(
|
|
@@ -339,8 +340,8 @@ function ar(e) {
|
|
|
339
340
|
}
|
|
340
341
|
return [];
|
|
341
342
|
}
|
|
342
|
-
function
|
|
343
|
-
const s = e.country ===
|
|
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
347
|
specialty: c,
|
|
@@ -352,7 +353,7 @@ function cr(e, t) {
|
|
|
352
353
|
onboardingIncomplete: N
|
|
353
354
|
};
|
|
354
355
|
}
|
|
355
|
-
function
|
|
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,12 +384,12 @@ function je(e, t) {
|
|
|
383
384
|
return !1;
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
|
-
function
|
|
387
|
+
function ur(e) {
|
|
387
388
|
const t = {
|
|
388
|
-
specialties:
|
|
389
|
-
services:
|
|
390
|
-
operators:
|
|
391
|
-
}, s =
|
|
389
|
+
specialties: or(e),
|
|
390
|
+
services: ar(e),
|
|
391
|
+
operators: cr(e)
|
|
392
|
+
}, s = dr(e, t), { currentStep: i, visibleSteps: r } = lr(e, s);
|
|
392
393
|
let c;
|
|
393
394
|
if (e.value.date && e.value.slotKey) {
|
|
394
395
|
const f = e.availableSlots[e.value.date];
|
|
@@ -518,7 +519,7 @@ function Vn(e, t) {
|
|
|
518
519
|
slotKey: t
|
|
519
520
|
};
|
|
520
521
|
}
|
|
521
|
-
function
|
|
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
525
|
const r = et(s), c = r.length > 0 ? t.services.filter(
|
|
@@ -532,7 +533,7 @@ function $n(e) {
|
|
|
532
533
|
if (e.operatorId && e.operatorId !== Re)
|
|
533
534
|
return e.operatorId;
|
|
534
535
|
}
|
|
535
|
-
function
|
|
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,7 +545,7 @@ function pn(e) {
|
|
|
544
545
|
function qn(e, t) {
|
|
545
546
|
return t ?? (e.length === 1 ? e : ["email"]);
|
|
546
547
|
}
|
|
547
|
-
function
|
|
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(
|
|
@@ -552,12 +553,12 @@ function pr(e, t, s) {
|
|
|
552
553
|
);
|
|
553
554
|
const c = [];
|
|
554
555
|
r.has("email") && c.push("email");
|
|
555
|
-
const a =
|
|
556
|
+
const a = pr(t), l = r.has("whatsapp");
|
|
556
557
|
l && a && c.push("whatsapp"), !l && r.has("sms") && c.push("sms");
|
|
557
558
|
const m = new Set(c);
|
|
558
559
|
return cn.filter((p) => m.has(p));
|
|
559
560
|
}
|
|
560
|
-
const
|
|
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
|
-
]),
|
|
571
|
-
function
|
|
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(
|
|
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 (
|
|
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
|
|
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,7 +598,7 @@ function Sr(e) {
|
|
|
597
598
|
return !1;
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
+
function Ir(e) {
|
|
601
602
|
const t = [];
|
|
602
603
|
let s = 0;
|
|
603
604
|
const i = (r) => {
|
|
@@ -605,13 +606,13 @@ function xr(e) {
|
|
|
605
606
|
const c = t[t.length - 1];
|
|
606
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(
|
|
609
|
-
const c = r.index ?? 0, a =
|
|
610
|
-
|
|
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,
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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}$/,
|
|
647
|
+
}, zn = /^\d{5}$/, Mr = (e) => {
|
|
647
648
|
if (!e) return !1;
|
|
648
649
|
const { line1: t, city: s, postalCode: i, country: r, state: c } = e.address;
|
|
649
650
|
return !t.trim() || !s.trim() || !i.trim() || !r.trim() ? !1 : r.toUpperCase() !== "IT" ? !0 : !!c.trim() && zn.test(i.trim());
|
|
650
|
-
},
|
|
651
|
+
}, Or = (e, t) => {
|
|
651
652
|
var s;
|
|
652
653
|
return {
|
|
653
654
|
name: t,
|
|
@@ -673,7 +674,7 @@ 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
|
-
],
|
|
677
|
+
], Er = /* @__PURE__ */ new Set(), fn = Cn(
|
|
677
678
|
({
|
|
678
679
|
value: e,
|
|
679
680
|
onChange: t,
|
|
@@ -725,7 +726,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
|
|
|
725
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, Dt] = H(
|
|
729
|
+
), [le, Dt] = H(Er), Ve = M(null), nt = M(
|
|
729
730
|
null
|
|
730
731
|
);
|
|
731
732
|
q(
|
|
@@ -761,7 +762,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
|
|
|
761
762
|
q(() => {
|
|
762
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 = Kt(I), he = F && !!g && !u, V = c, dt = (C || "it").toLowerCase(), st = !he ||
|
|
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
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(() => {
|
|
@@ -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
|
-
] :
|
|
809
|
+
] : fr(
|
|
809
810
|
Ee,
|
|
810
811
|
e.mobilePhone,
|
|
811
812
|
A
|
|
@@ -837,7 +838,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
|
|
|
837
838
|
Se(jt);
|
|
838
839
|
return;
|
|
839
840
|
}
|
|
840
|
-
if (!
|
|
841
|
+
if (!Nr.test(o)) {
|
|
841
842
|
Se({
|
|
842
843
|
state: "invalid",
|
|
843
844
|
hint: k("booking.details.codiceFiscale.invalidFormat")
|
|
@@ -892,7 +893,7 @@ const xn = 500, Ir = /^[A-Z0-9]{16}$/, Nr = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, In = 3
|
|
|
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 &&
|
|
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]
|
|
@@ -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:
|
|
982
|
+
billing: Or(
|
|
982
983
|
e.billing,
|
|
983
984
|
`${e.firstName.trim()} ${e.lastName.trim()}`
|
|
984
985
|
)
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
1352
|
+
className: Ar({
|
|
1352
1353
|
noticeStyle: N
|
|
1353
1354
|
}),
|
|
1354
1355
|
children: [
|
|
@@ -1603,7 +1604,7 @@ function Kn(e, t) {
|
|
|
1603
1604
|
}
|
|
1604
1605
|
return !0;
|
|
1605
1606
|
}
|
|
1606
|
-
function
|
|
1607
|
+
function Fr(e, t = 1e3) {
|
|
1607
1608
|
let s = !1;
|
|
1608
1609
|
const i = () => {
|
|
1609
1610
|
s || (s = !0, window.removeEventListener("scrollend", i), clearTimeout(r), e());
|
|
@@ -1612,7 +1613,7 @@ function Er(e, t = 1e3) {
|
|
|
1612
1613
|
s = !0, window.removeEventListener("scrollend", i), clearTimeout(r);
|
|
1613
1614
|
};
|
|
1614
1615
|
}
|
|
1615
|
-
function
|
|
1616
|
+
function Rr({
|
|
1616
1617
|
length: e = 5,
|
|
1617
1618
|
onVerify: t,
|
|
1618
1619
|
onResend: s,
|
|
@@ -1672,13 +1673,13 @@ function Fr({
|
|
|
1672
1673
|
}
|
|
1673
1674
|
}
|
|
1674
1675
|
}, Le = O === "wrong" ? l("booking.code.wrong") : O === "expired" ? l("booking.code.expired") : Y ? l("booking.code.tooManyAttempts") : void 0;
|
|
1675
|
-
return /* @__PURE__ */ S(
|
|
1676
|
+
return /* @__PURE__ */ n(fs, { variant: "elevated", asChild: !0, children: /* @__PURE__ */ S(
|
|
1676
1677
|
"section",
|
|
1677
1678
|
{
|
|
1678
1679
|
ref: h,
|
|
1679
1680
|
"aria-labelledby": p,
|
|
1680
1681
|
"data-component": "booking-code-step",
|
|
1681
|
-
className: "ds:
|
|
1682
|
+
className: "ds:items-center ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)] ds:text-center",
|
|
1682
1683
|
children: [
|
|
1683
1684
|
/* @__PURE__ */ n(
|
|
1684
1685
|
"h3",
|
|
@@ -1701,7 +1702,7 @@ function Fr({
|
|
|
1701
1702
|
}
|
|
1702
1703
|
) : l("booking.code.instruction") }),
|
|
1703
1704
|
/* @__PURE__ */ n(Ke, { label: l("booking.code.label"), error: Le, children: /* @__PURE__ */ n("div", { dir: "ltr", children: /* @__PURE__ */ n(
|
|
1704
|
-
|
|
1705
|
+
gs,
|
|
1705
1706
|
{
|
|
1706
1707
|
ref: d,
|
|
1707
1708
|
length: e,
|
|
@@ -1712,7 +1713,7 @@ function Fr({
|
|
|
1712
1713
|
},
|
|
1713
1714
|
C
|
|
1714
1715
|
) }) }),
|
|
1715
|
-
_ ? /* @__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,
|
|
1716
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 }),
|
|
1717
1718
|
/* @__PURE__ */ n(
|
|
1718
1719
|
we,
|
|
@@ -1720,18 +1721,19 @@ function Fr({
|
|
|
1720
1721
|
ref: g,
|
|
1721
1722
|
type: "button",
|
|
1722
1723
|
intent: "secondary",
|
|
1723
|
-
className: "ds:self-start",
|
|
1724
1724
|
disabled: D > 0 || !!F,
|
|
1725
1725
|
loading: F === "resend",
|
|
1726
1726
|
onClick: _e,
|
|
1727
1727
|
children: D > 0 ? l("booking.code.resendCountdown", {
|
|
1728
|
-
seconds: new Intl.NumberFormat(m.language).format(
|
|
1728
|
+
seconds: new Intl.NumberFormat(m.language).format(
|
|
1729
|
+
D
|
|
1730
|
+
)
|
|
1729
1731
|
}) : l("booking.code.resend")
|
|
1730
1732
|
}
|
|
1731
1733
|
)
|
|
1732
1734
|
]
|
|
1733
1735
|
}
|
|
1734
|
-
);
|
|
1736
|
+
) });
|
|
1735
1737
|
}
|
|
1736
1738
|
function jn(e) {
|
|
1737
1739
|
const t = e.payment;
|
|
@@ -1745,7 +1747,7 @@ function jn(e) {
|
|
|
1745
1747
|
currencyCode: s
|
|
1746
1748
|
};
|
|
1747
1749
|
}
|
|
1748
|
-
function
|
|
1750
|
+
function _r(e) {
|
|
1749
1751
|
var r;
|
|
1750
1752
|
const t = (r = e.priceLabel) != null && r.trim() ? e.priceLabel : void 0, s = t ? { label: t } : void 0;
|
|
1751
1753
|
if (!e.payment) return { price: s };
|
|
@@ -1755,7 +1757,7 @@ function Rr(e) {
|
|
|
1755
1757
|
payment: i
|
|
1756
1758
|
} : { price: s, payment: "unavailable" };
|
|
1757
1759
|
}
|
|
1758
|
-
function
|
|
1760
|
+
function Lr(e, t, s) {
|
|
1759
1761
|
const i = e.filter(
|
|
1760
1762
|
(c) => t.includes(c.id)
|
|
1761
1763
|
), r = (s == null ? void 0 : s.serviceId) ?? (t.length === 1 ? t[0] : void 0);
|
|
@@ -1775,7 +1777,7 @@ function Ut(e) {
|
|
|
1775
1777
|
e.currencyCode
|
|
1776
1778
|
]) : "";
|
|
1777
1779
|
}
|
|
1778
|
-
function
|
|
1780
|
+
function Br({
|
|
1779
1781
|
services: e,
|
|
1780
1782
|
value: t,
|
|
1781
1783
|
availableSlots: s,
|
|
@@ -1799,7 +1801,7 @@ function Lr({
|
|
|
1799
1801
|
t.slotKey
|
|
1800
1802
|
]), v = M(
|
|
1801
1803
|
void 0
|
|
1802
|
-
), 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 =
|
|
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(
|
|
1803
1805
|
e,
|
|
1804
1806
|
Ue(t),
|
|
1805
1807
|
d
|
|
@@ -1929,8 +1931,8 @@ function Lr({
|
|
|
1929
1931
|
}
|
|
1930
1932
|
};
|
|
1931
1933
|
}
|
|
1932
|
-
const
|
|
1933
|
-
function
|
|
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({
|
|
1934
1936
|
url: e,
|
|
1935
1937
|
delayMs: t,
|
|
1936
1938
|
onNavigate: s,
|
|
@@ -1976,7 +1978,7 @@ function $r({
|
|
|
1976
1978
|
strokeLinecap: "round",
|
|
1977
1979
|
strokeLinejoin: "round",
|
|
1978
1980
|
className: "ds:size-[var(--spacing-lg)]",
|
|
1979
|
-
children: /* @__PURE__ */ n("path", { pathLength: "1", d: "M5 12l5 5L20 7", className:
|
|
1981
|
+
children: /* @__PURE__ */ n("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: Vr })
|
|
1980
1982
|
}
|
|
1981
1983
|
)
|
|
1982
1984
|
}
|
|
@@ -1996,7 +1998,7 @@ function $r({
|
|
|
1996
1998
|
c ? /* @__PURE__ */ n("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: c }) : null
|
|
1997
1999
|
] }),
|
|
1998
2000
|
/* @__PURE__ */ n("p", { id: v, role: "status", className: "type-body ds:m-0", children: l(d ? "booking.reserved.stayed" : "booking.reserved.redirecting") }),
|
|
1999
|
-
I || d || t >
|
|
2001
|
+
I || d || t > Pr ? null : (
|
|
2000
2002
|
// Decorative: the sentence above already says a redirect is coming,
|
|
2001
2003
|
// and a progressbar with no value to read would only add noise.
|
|
2002
2004
|
/* @__PURE__ */ n(
|
|
@@ -2008,7 +2010,7 @@ function $r({
|
|
|
2008
2010
|
children: /* @__PURE__ */ n(
|
|
2009
2011
|
"span",
|
|
2010
2012
|
{
|
|
2011
|
-
className:
|
|
2013
|
+
className: $r,
|
|
2012
2014
|
style: { "--handover-ms": `${t}ms` }
|
|
2013
2015
|
}
|
|
2014
2016
|
)
|
|
@@ -2031,22 +2033,22 @@ function $r({
|
|
|
2031
2033
|
}
|
|
2032
2034
|
);
|
|
2033
2035
|
}
|
|
2034
|
-
const
|
|
2035
|
-
function
|
|
2036
|
+
const zr = 3e3;
|
|
2037
|
+
function Kr(e) {
|
|
2036
2038
|
if (typeof e != "string") return;
|
|
2037
2039
|
const t = e.trim();
|
|
2038
2040
|
try {
|
|
2039
2041
|
const { protocol: s } = new URL(t);
|
|
2040
|
-
return (s === "https:" || s === "http:") &&
|
|
2042
|
+
return (s === "https:" || s === "http:") && hs(t) ? t : void 0;
|
|
2041
2043
|
} catch {
|
|
2042
2044
|
return;
|
|
2043
2045
|
}
|
|
2044
2046
|
}
|
|
2045
|
-
const
|
|
2046
|
-
function
|
|
2047
|
-
return typeof e == "number" && Number.isFinite(e) && e >= 0 ? Math.min(e,
|
|
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;
|
|
2048
2050
|
}
|
|
2049
|
-
const
|
|
2051
|
+
const Hr = At(
|
|
2050
2052
|
// --booking-held-height: see the step-8 effects (runtime-measured height).
|
|
2051
2053
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:[min-block-size:var(--booking-held-height,auto)]",
|
|
2052
2054
|
{
|
|
@@ -2075,40 +2077,40 @@ const Ur = At(
|
|
|
2075
2077
|
},
|
|
2076
2078
|
defaultVariants: { variant: "inline-list", surface: "flat" }
|
|
2077
2079
|
}
|
|
2078
|
-
),
|
|
2080
|
+
), Gr = [
|
|
2079
2081
|
[
|
|
2080
2082
|
/\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
|
|
2081
2083
|
kn
|
|
2082
2084
|
],
|
|
2083
|
-
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i,
|
|
2084
|
-
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i,
|
|
2085
|
-
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i,
|
|
2086
|
-
[/\b(otorin|udito|orecchi|hearing|ear)/i,
|
|
2087
|
-
[/\b(neuro|brain|cervello)/i,
|
|
2088
|
-
[/\b(pediatr|child|bambin)/i,
|
|
2089
|
-
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i,
|
|
2090
|
-
[/\b(lab|analis|test|sang|esami)/i,
|
|
2091
|
-
[/\b(farmaco|pharm|pillol|refill)/i,
|
|
2092
|
-
[/\b(chirurg|surg|intervent|operat)/i,
|
|
2093
|
-
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i,
|
|
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],
|
|
2094
2096
|
[/\b(vacc|inject|inie|punto)/i, kn],
|
|
2095
|
-
[/\b(derma|skin|pelle)/i,
|
|
2096
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
2097
|
-
[/\b(general|medicin|family|control|check[-\s]?up)/i,
|
|
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]
|
|
2098
2100
|
];
|
|
2099
|
-
function
|
|
2100
|
-
for (const [t, s] of
|
|
2101
|
+
function Jr(e) {
|
|
2102
|
+
for (const [t, s] of Gr)
|
|
2101
2103
|
if (t.test(e)) return s;
|
|
2102
2104
|
return null;
|
|
2103
2105
|
}
|
|
2104
|
-
function
|
|
2105
|
-
const t =
|
|
2106
|
+
function Wr(e) {
|
|
2107
|
+
const t = Jr(e.label) ?? Ds;
|
|
2106
2108
|
return /* @__PURE__ */ n(t, { "aria-hidden": "true", className: "ds:size-5" });
|
|
2107
2109
|
}
|
|
2108
2110
|
function Un() {
|
|
2109
2111
|
const { t: e, i18n: t } = Z("ui");
|
|
2110
2112
|
return (s) => {
|
|
2111
|
-
const i =
|
|
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;
|
|
2112
2114
|
return i.payment === "unavailable" ? {
|
|
2113
2115
|
price: c,
|
|
2114
2116
|
payment: e("booking.payment.unavailable"),
|
|
@@ -2125,7 +2127,7 @@ function Un() {
|
|
|
2125
2127
|
function ot(e) {
|
|
2126
2128
|
return Gt(e, "yyyy-MM-dd");
|
|
2127
2129
|
}
|
|
2128
|
-
const
|
|
2130
|
+
const Yr = [
|
|
2129
2131
|
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
2130
2132
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
2131
2133
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -2135,7 +2137,7 @@ const Wr = [
|
|
|
2135
2137
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
2136
2138
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2137
2139
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
2138
|
-
].join(" "),
|
|
2140
|
+
].join(" "), Zr = At(Yr, {
|
|
2139
2141
|
variants: {
|
|
2140
2142
|
state: {
|
|
2141
2143
|
available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
|
|
@@ -2146,7 +2148,7 @@ const Wr = [
|
|
|
2146
2148
|
},
|
|
2147
2149
|
defaultVariants: { state: "unavailable" }
|
|
2148
2150
|
});
|
|
2149
|
-
function
|
|
2151
|
+
function Xr({
|
|
2150
2152
|
availableDates: e,
|
|
2151
2153
|
selectedDate: t,
|
|
2152
2154
|
onSelectDate: s,
|
|
@@ -2154,7 +2156,7 @@ function Zr({
|
|
|
2154
2156
|
loading: r
|
|
2155
2157
|
}) {
|
|
2156
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 = $(() => {
|
|
2157
|
-
const N = Tt(l), w =
|
|
2159
|
+
const N = Tt(l), w = Is(l), x = N.getDay(), O = w.getDate(), R = [];
|
|
2158
2160
|
for (let _ = x; _ > 0; _ -= 1) {
|
|
2159
2161
|
const b = new Date(N);
|
|
2160
2162
|
b.setDate(N.getDate() - _), R.push(b);
|
|
@@ -2249,13 +2251,13 @@ function Zr({
|
|
|
2249
2251
|
/* @__PURE__ */ n(
|
|
2250
2252
|
bn,
|
|
2251
2253
|
{
|
|
2252
|
-
icon: /* @__PURE__ */ n(
|
|
2254
|
+
icon: /* @__PURE__ */ n(ws, {}),
|
|
2253
2255
|
"aria-label": c("booking.previousMonth"),
|
|
2254
2256
|
size: "sm",
|
|
2255
2257
|
intent: "ghost",
|
|
2256
2258
|
flipIconInRtl: !0,
|
|
2257
2259
|
onClick: () => {
|
|
2258
|
-
m((N) =>
|
|
2260
|
+
m((N) => sr(N)), f(null);
|
|
2259
2261
|
}
|
|
2260
2262
|
}
|
|
2261
2263
|
),
|
|
@@ -2270,7 +2272,7 @@ function Zr({
|
|
|
2270
2272
|
/* @__PURE__ */ n(
|
|
2271
2273
|
bn,
|
|
2272
2274
|
{
|
|
2273
|
-
icon: /* @__PURE__ */ n(
|
|
2275
|
+
icon: /* @__PURE__ */ n(Cs, {}),
|
|
2274
2276
|
"aria-label": c("booking.nextMonth"),
|
|
2275
2277
|
size: "sm",
|
|
2276
2278
|
intent: "ghost",
|
|
@@ -2333,7 +2335,7 @@ function Zr({
|
|
|
2333
2335
|
b && s(ot(x));
|
|
2334
2336
|
},
|
|
2335
2337
|
onKeyDown: (B) => F(B, x),
|
|
2336
|
-
className:
|
|
2338
|
+
className: Zr({ state: P }),
|
|
2337
2339
|
children: /* @__PURE__ */ n("span", { "aria-hidden": "true", children: x.getDate() })
|
|
2338
2340
|
},
|
|
2339
2341
|
`mg-cell-${R}`
|
|
@@ -2347,7 +2349,7 @@ function Zr({
|
|
|
2347
2349
|
)
|
|
2348
2350
|
] });
|
|
2349
2351
|
}
|
|
2350
|
-
const
|
|
2352
|
+
const Qr = At(
|
|
2351
2353
|
[
|
|
2352
2354
|
"ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
|
|
2353
2355
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2373,7 +2375,7 @@ const Xr = At(
|
|
|
2373
2375
|
defaultVariants: { state: "idle" }
|
|
2374
2376
|
}
|
|
2375
2377
|
);
|
|
2376
|
-
function
|
|
2378
|
+
function ei({
|
|
2377
2379
|
services: e,
|
|
2378
2380
|
selectedServiceId: t,
|
|
2379
2381
|
onSelect: s,
|
|
@@ -2447,7 +2449,7 @@ function Qr({
|
|
|
2447
2449
|
}) : i ? r("booking.serviceCardLabel", {
|
|
2448
2450
|
label: h.label,
|
|
2449
2451
|
duration: h.durationMin
|
|
2450
|
-
}) : h.label, x =
|
|
2452
|
+
}) : h.label, x = Wr(h);
|
|
2451
2453
|
return /* @__PURE__ */ S(
|
|
2452
2454
|
"button",
|
|
2453
2455
|
{
|
|
@@ -2462,7 +2464,7 @@ function Qr({
|
|
|
2462
2464
|
onClick: () => s(h.id),
|
|
2463
2465
|
onFocus: () => m(d),
|
|
2464
2466
|
onKeyDown: (O) => v(O, d, h.id),
|
|
2465
|
-
className:
|
|
2467
|
+
className: Qr({
|
|
2466
2468
|
state: g ? "selected" : "idle"
|
|
2467
2469
|
}),
|
|
2468
2470
|
children: [
|
|
@@ -2486,7 +2488,7 @@ function Qr({
|
|
|
2486
2488
|
F ? /* @__PURE__ */ n(
|
|
2487
2489
|
"span",
|
|
2488
2490
|
{
|
|
2489
|
-
className:
|
|
2491
|
+
className: vs({ tone: N }),
|
|
2490
2492
|
children: F
|
|
2491
2493
|
}
|
|
2492
2494
|
) : u || !i ? null : /* @__PURE__ */ n("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r("booking.serviceSummary", {
|
|
@@ -2509,7 +2511,7 @@ function Qr({
|
|
|
2509
2511
|
}
|
|
2510
2512
|
);
|
|
2511
2513
|
}
|
|
2512
|
-
const
|
|
2514
|
+
const ti = At(
|
|
2513
2515
|
[
|
|
2514
2516
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
|
|
2515
2517
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2535,7 +2537,7 @@ const ei = At(
|
|
|
2535
2537
|
defaultVariants: { state: "idle" }
|
|
2536
2538
|
}
|
|
2537
2539
|
);
|
|
2538
|
-
function
|
|
2540
|
+
function ni(e) {
|
|
2539
2541
|
const [t] = e.split(":").map((i) => parseInt(i, 10)), s = Number.isFinite(t) ? t : 0;
|
|
2540
2542
|
return s < 12 ? "morning" : s < 17 ? "afternoon" : "evening";
|
|
2541
2543
|
}
|
|
@@ -2550,12 +2552,12 @@ function Yt(e, t, s) {
|
|
|
2550
2552
|
return t;
|
|
2551
2553
|
}
|
|
2552
2554
|
}
|
|
2553
|
-
const
|
|
2554
|
-
morning:
|
|
2555
|
-
afternoon:
|
|
2556
|
-
evening:
|
|
2555
|
+
const si = {
|
|
2556
|
+
morning: As,
|
|
2557
|
+
afternoon: tr,
|
|
2558
|
+
evening: Ts
|
|
2557
2559
|
};
|
|
2558
|
-
function
|
|
2560
|
+
function ri({
|
|
2559
2561
|
date: e,
|
|
2560
2562
|
slots: t,
|
|
2561
2563
|
selectedSlotKey: s,
|
|
@@ -2580,7 +2582,7 @@ function si({
|
|
|
2580
2582
|
evening: []
|
|
2581
2583
|
};
|
|
2582
2584
|
for (const h of t)
|
|
2583
|
-
v[
|
|
2585
|
+
v[ni(h.time)].push(h);
|
|
2584
2586
|
return v;
|
|
2585
2587
|
}, [t]), p = t.filter((v) => v.available).length, f = ["morning", "afternoon", "evening"];
|
|
2586
2588
|
return r ? /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -2597,7 +2599,7 @@ function si({
|
|
|
2597
2599
|
/* @__PURE__ */ S("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2598
2600
|
/* @__PURE__ */ S("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
2599
2601
|
/* @__PURE__ */ n(
|
|
2600
|
-
|
|
2602
|
+
Ks,
|
|
2601
2603
|
{
|
|
2602
2604
|
"aria-hidden": "true",
|
|
2603
2605
|
className: "ds:size-4 ds:text-[color:var(--accent)]"
|
|
@@ -2610,7 +2612,7 @@ function si({
|
|
|
2610
2612
|
f.map((v) => {
|
|
2611
2613
|
const h = m[v];
|
|
2612
2614
|
if (h.length === 0) return null;
|
|
2613
|
-
const d =
|
|
2615
|
+
const d = si[v];
|
|
2614
2616
|
return /* @__PURE__ */ S(
|
|
2615
2617
|
"div",
|
|
2616
2618
|
{
|
|
@@ -2639,7 +2641,7 @@ function si({
|
|
|
2639
2641
|
time: Yt(e, g.time, c)
|
|
2640
2642
|
}),
|
|
2641
2643
|
onClick: () => g.available && i(g),
|
|
2642
|
-
className:
|
|
2644
|
+
className: ti({ state: u }),
|
|
2643
2645
|
children: Yt(e, g.time, c)
|
|
2644
2646
|
},
|
|
2645
2647
|
g.key
|
|
@@ -2655,7 +2657,7 @@ function si({
|
|
|
2655
2657
|
] });
|
|
2656
2658
|
}
|
|
2657
2659
|
const Ht = 4;
|
|
2658
|
-
function
|
|
2660
|
+
function ii({
|
|
2659
2661
|
availableDates: e,
|
|
2660
2662
|
availableSlots: t,
|
|
2661
2663
|
value: s,
|
|
@@ -2692,7 +2694,7 @@ function ri({
|
|
|
2692
2694
|
return { date: A, slots: B };
|
|
2693
2695
|
}), [v, t]), I = kt(v, f), u = !0, F = ke(() => {
|
|
2694
2696
|
h((b) => {
|
|
2695
|
-
const C =
|
|
2697
|
+
const C = Ns(b, Ht);
|
|
2696
2698
|
return kt(f, C) ? f : C;
|
|
2697
2699
|
});
|
|
2698
2700
|
}, [f]), N = ke(() => {
|
|
@@ -2703,7 +2705,7 @@ function ri({
|
|
|
2703
2705
|
const b = yt(fe(e[0]));
|
|
2704
2706
|
!kt(b, f) || e.some((P) => {
|
|
2705
2707
|
const A = yt(fe(P));
|
|
2706
|
-
return !kt(A, d) && !
|
|
2708
|
+
return !kt(A, d) && !xs(A, v);
|
|
2707
2709
|
}) || h(b);
|
|
2708
2710
|
}, [e]), q(() => {
|
|
2709
2711
|
c == null || c(ot(v), ot(d));
|
|
@@ -2727,7 +2729,7 @@ function ri({
|
|
|
2727
2729
|
}
|
|
2728
2730
|
) : null,
|
|
2729
2731
|
/* @__PURE__ */ n(
|
|
2730
|
-
|
|
2732
|
+
ks,
|
|
2731
2733
|
{
|
|
2732
2734
|
id: p ? `${p}-slots` : void 0,
|
|
2733
2735
|
days: g,
|
|
@@ -2758,7 +2760,7 @@ function Hn(e) {
|
|
|
2758
2760
|
agentIdBase: f
|
|
2759
2761
|
} = e;
|
|
2760
2762
|
return p === "four-day-grid" ? /* @__PURE__ */ n(
|
|
2761
|
-
|
|
2763
|
+
ii,
|
|
2762
2764
|
{
|
|
2763
2765
|
availableDates: t.availableDates,
|
|
2764
2766
|
availableSlots: t.availableSlots,
|
|
@@ -2772,7 +2774,7 @@ function Hn(e) {
|
|
|
2772
2774
|
agentIdBase: f
|
|
2773
2775
|
}
|
|
2774
2776
|
) : /* @__PURE__ */ n(
|
|
2775
|
-
|
|
2777
|
+
Xr,
|
|
2776
2778
|
{
|
|
2777
2779
|
availableDates: t.availableDates,
|
|
2778
2780
|
selectedDate: s.date,
|
|
@@ -2787,7 +2789,7 @@ function Hn(e) {
|
|
|
2787
2789
|
function Gn(e) {
|
|
2788
2790
|
const { inputs: t, value: s, onChange: i, loadingSlots: r, locale: c, datePickerStyle: a } = e;
|
|
2789
2791
|
return a === "four-day-grid" || !s.date ? null : /* @__PURE__ */ n(
|
|
2790
|
-
|
|
2792
|
+
ri,
|
|
2791
2793
|
{
|
|
2792
2794
|
date: s.date,
|
|
2793
2795
|
slots: t.availableSlots[s.date] ?? [],
|
|
@@ -2944,7 +2946,7 @@ function Yn({
|
|
|
2944
2946
|
] }) : /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2945
2947
|
h,
|
|
2946
2948
|
/* @__PURE__ */ n(
|
|
2947
|
-
|
|
2949
|
+
ei,
|
|
2948
2950
|
{
|
|
2949
2951
|
services: e,
|
|
2950
2952
|
selectedServiceId: t,
|
|
@@ -3045,7 +3047,7 @@ function gn({
|
|
|
3045
3047
|
/* @__PURE__ */ n(oe.Action, { children: /* @__PURE__ */ n(we, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
|
|
3046
3048
|
] });
|
|
3047
3049
|
}
|
|
3048
|
-
function
|
|
3050
|
+
function oi({
|
|
3049
3051
|
codeVerified: e = !1,
|
|
3050
3052
|
handoverUrl: t,
|
|
3051
3053
|
handoverDelayMs: s,
|
|
@@ -3125,10 +3127,10 @@ function ii({
|
|
|
3125
3127
|
(D, k) => D.type === "element" ? /* @__PURE__ */ n("bdi", { children: D.value }, k) : D.value
|
|
3126
3128
|
);
|
|
3127
3129
|
return /* @__PURE__ */ n(
|
|
3128
|
-
|
|
3130
|
+
qr,
|
|
3129
3131
|
{
|
|
3130
3132
|
url: t,
|
|
3131
|
-
delayMs:
|
|
3133
|
+
delayMs: Ur(s),
|
|
3132
3134
|
onNavigate: i,
|
|
3133
3135
|
date: A,
|
|
3134
3136
|
time: Yt(a.date, a.slot.time, f),
|
|
@@ -3224,7 +3226,7 @@ function Qn({ customSlot: e }) {
|
|
|
3224
3226
|
}
|
|
3225
3227
|
);
|
|
3226
3228
|
}
|
|
3227
|
-
const es = "data-booking-step-active",
|
|
3229
|
+
const es = "data-booking-step-active", ai = `[${es}]`;
|
|
3228
3230
|
function re({
|
|
3229
3231
|
step: e,
|
|
3230
3232
|
active: t,
|
|
@@ -3247,7 +3249,7 @@ function re({
|
|
|
3247
3249
|
function hn(e, t) {
|
|
3248
3250
|
return t === "four-day-grid" ? e.filter((s) => s !== 6) : e;
|
|
3249
3251
|
}
|
|
3250
|
-
function
|
|
3252
|
+
function ci(e) {
|
|
3251
3253
|
const {
|
|
3252
3254
|
cascade: t,
|
|
3253
3255
|
inputs: s,
|
|
@@ -3511,7 +3513,7 @@ function en() {
|
|
|
3511
3513
|
function St(e, t) {
|
|
3512
3514
|
return t === "four-day-grid" && e === 6 ? 5 : e;
|
|
3513
3515
|
}
|
|
3514
|
-
function
|
|
3516
|
+
function di(e) {
|
|
3515
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 = $(
|
|
3516
3518
|
() => hn(t.visibleSteps, c),
|
|
3517
3519
|
[t.visibleSteps, c]
|
|
@@ -3519,7 +3521,7 @@ function ci(e) {
|
|
|
3519
3521
|
() => p.map((d) => ({
|
|
3520
3522
|
label: a[d],
|
|
3521
3523
|
summary: ts(d, s, t, m),
|
|
3522
|
-
status:
|
|
3524
|
+
status: li(d, s, t),
|
|
3523
3525
|
content: /* @__PURE__ */ n(re, { step: d, active: d === f, children: Ne(d, e, { compactService: !0 }) })
|
|
3524
3526
|
})),
|
|
3525
3527
|
[
|
|
@@ -3533,7 +3535,7 @@ function ci(e) {
|
|
|
3533
3535
|
]
|
|
3534
3536
|
);
|
|
3535
3537
|
return /* @__PURE__ */ n(
|
|
3536
|
-
|
|
3538
|
+
bs,
|
|
3537
3539
|
{
|
|
3538
3540
|
activeStep: v,
|
|
3539
3541
|
steps: h,
|
|
@@ -3544,7 +3546,7 @@ function ci(e) {
|
|
|
3544
3546
|
}
|
|
3545
3547
|
);
|
|
3546
3548
|
}
|
|
3547
|
-
function
|
|
3549
|
+
function li(e, t, s) {
|
|
3548
3550
|
return je(e, t) && e < s.currentStep ? "completed" : e <= s.currentStep ? "unlocked" : void 0;
|
|
3549
3551
|
}
|
|
3550
3552
|
function wn(e, t) {
|
|
@@ -3588,7 +3590,7 @@ function ts(e, t, s, i) {
|
|
|
3588
3590
|
return;
|
|
3589
3591
|
}
|
|
3590
3592
|
}
|
|
3591
|
-
function
|
|
3593
|
+
function ui(e) {
|
|
3592
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(
|
|
3593
3595
|
(d) => d === 1 || d === 2 || d === 3 || d === 4
|
|
3594
3596
|
), v = f.some(
|
|
@@ -3616,7 +3618,7 @@ function li(e) {
|
|
|
3616
3618
|
intent: I ? "primary" : "outline",
|
|
3617
3619
|
size: "sm",
|
|
3618
3620
|
endIcon: /* @__PURE__ */ n(
|
|
3619
|
-
|
|
3621
|
+
Ss,
|
|
3620
3622
|
{
|
|
3621
3623
|
"aria-hidden": "true",
|
|
3622
3624
|
className: I ? "ds:rotate-180" : void 0
|
|
@@ -3677,7 +3679,7 @@ function li(e) {
|
|
|
3677
3679
|
t.gates.details ? /* @__PURE__ */ n(re, { step: 7, active: p === 7, children: Ne(7, e) }) : null
|
|
3678
3680
|
] });
|
|
3679
3681
|
}
|
|
3680
|
-
function
|
|
3682
|
+
function mi(e) {
|
|
3681
3683
|
const { cascade: t, datePickerStyle: s, activeStep: i } = e, r = St(i, s), c = t.visibleSteps.filter(
|
|
3682
3684
|
(l) => l === 1 || l === 2 || l === 3 || l === 4
|
|
3683
3685
|
);
|
|
@@ -3698,7 +3700,7 @@ function ui(e) {
|
|
|
3698
3700
|
t.gates.details ? /* @__PURE__ */ n(re, { step: 7, active: r === 7, children: Ne(7, e) }) : null
|
|
3699
3701
|
] });
|
|
3700
3702
|
}
|
|
3701
|
-
function
|
|
3703
|
+
function pi(e) {
|
|
3702
3704
|
const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: c } = e, { t: a } = Z("ui"), l = en(), m = $(
|
|
3703
3705
|
() => hn(t.visibleSteps, c),
|
|
3704
3706
|
[t.visibleSteps, c]
|
|
@@ -3707,7 +3709,7 @@ function mi(e) {
|
|
|
3707
3709
|
[m, l]
|
|
3708
3710
|
), d = f > 0, g = p === 5 && c === "four-day-grid", I = f < v - 1 && je(p, s) && (!g || je(6, s));
|
|
3709
3711
|
return /* @__PURE__ */ S("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3710
|
-
/* @__PURE__ */ n(
|
|
3712
|
+
/* @__PURE__ */ n(ys, { activeStep: f, steps: h }),
|
|
3711
3713
|
/* @__PURE__ */ n(re, { step: p, active: !0, children: Ne(p, e, { compactService: !0 }) }),
|
|
3712
3714
|
/* @__PURE__ */ S("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
3713
3715
|
/* @__PURE__ */ n(
|
|
@@ -3739,11 +3741,11 @@ function mi(e) {
|
|
|
3739
3741
|
] })
|
|
3740
3742
|
] });
|
|
3741
3743
|
}
|
|
3742
|
-
const
|
|
3743
|
-
function
|
|
3744
|
+
const fi = [], gi = [];
|
|
3745
|
+
function hi() {
|
|
3744
3746
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
3745
3747
|
}
|
|
3746
|
-
const
|
|
3748
|
+
const vi = Cn(
|
|
3747
3749
|
({
|
|
3748
3750
|
variant: e = "inline-list",
|
|
3749
3751
|
country: t,
|
|
@@ -3813,9 +3815,9 @@ const hi = Cn(
|
|
|
3813
3815
|
...De
|
|
3814
3816
|
}, nn) => {
|
|
3815
3817
|
var Nt, wt, Ct;
|
|
3816
|
-
const { t: ae, i18n: Ot } = Z("ui"), ue = e ?? "inline-list", $e = Ot.language ?? "en", Me = l ??
|
|
3818
|
+
const { t: ae, i18n: Ot } = Z("ui"), ue = e ?? "inline-list", $e = Ot.language ?? "en", Me = l ?? fi, he = p ?? gi;
|
|
3817
3819
|
q(() => {
|
|
3818
|
-
const o =
|
|
3820
|
+
const o = mr(E, {
|
|
3819
3821
|
useSpecialties: s,
|
|
3820
3822
|
lockedOperatorId: r,
|
|
3821
3823
|
autoSelectSingleService: a,
|
|
@@ -3831,7 +3833,7 @@ const hi = Cn(
|
|
|
3831
3833
|
m
|
|
3832
3834
|
]);
|
|
3833
3835
|
const V = $(
|
|
3834
|
-
() =>
|
|
3836
|
+
() => ur({
|
|
3835
3837
|
country: t,
|
|
3836
3838
|
useSpecialties: s,
|
|
3837
3839
|
allowOperatorSelection: i,
|
|
@@ -3934,18 +3936,18 @@ const hi = Cn(
|
|
|
3934
3936
|
if (!U) return;
|
|
3935
3937
|
const ye = document.activeElement;
|
|
3936
3938
|
if (!(ye === null || ye === document.body || !U.contains(ye))) return;
|
|
3937
|
-
const $t = U.querySelector(
|
|
3939
|
+
const $t = U.querySelector(ai) ?? U;
|
|
3938
3940
|
if ($t.focus({ preventScroll: !0 }), typeof $t.scrollIntoView == "function")
|
|
3939
3941
|
try {
|
|
3940
3942
|
$t.scrollIntoView({
|
|
3941
|
-
behavior:
|
|
3943
|
+
behavior: hi() ? "auto" : "smooth",
|
|
3942
3944
|
block: "nearest"
|
|
3943
3945
|
});
|
|
3944
3946
|
} catch {
|
|
3945
3947
|
$t.scrollIntoView();
|
|
3946
3948
|
}
|
|
3947
3949
|
}, [de, te, qe, Et, ae]);
|
|
3948
|
-
const K =
|
|
3950
|
+
const K = Br({
|
|
3949
3951
|
services: m,
|
|
3950
3952
|
value: E,
|
|
3951
3953
|
availableSlots: v,
|
|
@@ -3995,7 +3997,7 @@ const hi = Cn(
|
|
|
3995
3997
|
const o = pe.current;
|
|
3996
3998
|
if (Fe !== 8 || !o) return;
|
|
3997
3999
|
const y = () => o.style.removeProperty("--booking-held-height");
|
|
3998
|
-
Kn(o, "start") ?
|
|
4000
|
+
Kn(o, "start") ? Fr(y) : y();
|
|
3999
4001
|
}, [Fe, Be]);
|
|
4000
4002
|
const Xe = M({ activeStep: de, cascade: V, submitState: j });
|
|
4001
4003
|
q(() => {
|
|
@@ -4018,12 +4020,12 @@ const hi = Cn(
|
|
|
4018
4020
|
}),
|
|
4019
4021
|
[ue, J]
|
|
4020
4022
|
);
|
|
4021
|
-
rs(
|
|
4023
|
+
rs(rr, Bt, He);
|
|
4022
4024
|
const ht = tn ?? ae("booking.regionLabel"), ve = K.snapshot, Pt = j === "success" && ve ? /* @__PURE__ */ n(
|
|
4023
|
-
|
|
4025
|
+
oi,
|
|
4024
4026
|
{
|
|
4025
4027
|
codeVerified: K.codeVerified,
|
|
4026
|
-
handoverUrl:
|
|
4028
|
+
handoverUrl: Kr(K.redirectUrl),
|
|
4027
4029
|
handoverDelayMs: A,
|
|
4028
4030
|
onNavigate: L,
|
|
4029
4031
|
payment: ve.payment,
|
|
@@ -4050,7 +4052,7 @@ const hi = Cn(
|
|
|
4050
4052
|
}
|
|
4051
4053
|
}
|
|
4052
4054
|
) : null, ne = j === "code" && K.codeStep ? /* @__PURE__ */ n(
|
|
4053
|
-
|
|
4055
|
+
Rr,
|
|
4054
4056
|
{
|
|
4055
4057
|
...K.codeStep,
|
|
4056
4058
|
...Q,
|
|
@@ -4131,7 +4133,7 @@ const hi = Cn(
|
|
|
4131
4133
|
`);
|
|
4132
4134
|
}, [m, E]), It = $(() => {
|
|
4133
4135
|
if (j === "success" || j === "payment") return null;
|
|
4134
|
-
const o = ue === "accordion" ?
|
|
4136
|
+
const o = ue === "accordion" ? di : ue === "calendar" ? ui : ue === "flexible" ? mi : ue === "progress" ? pi : ci, y = {
|
|
4135
4137
|
cascade: V,
|
|
4136
4138
|
inputs: {
|
|
4137
4139
|
specialties: Me,
|
|
@@ -4253,7 +4255,7 @@ const hi = Cn(
|
|
|
4253
4255
|
"data-component": "booking",
|
|
4254
4256
|
"data-component-id": He,
|
|
4255
4257
|
"data-variant": ue,
|
|
4256
|
-
className:
|
|
4258
|
+
className: Hr({
|
|
4257
4259
|
variant: ue,
|
|
4258
4260
|
surface: nt,
|
|
4259
4261
|
className: Mt
|
|
@@ -4323,11 +4325,11 @@ const hi = Cn(
|
|
|
4323
4325
|
);
|
|
4324
4326
|
}
|
|
4325
4327
|
);
|
|
4326
|
-
|
|
4328
|
+
vi.displayName = "Booking";
|
|
4327
4329
|
export {
|
|
4328
|
-
|
|
4330
|
+
vi as B,
|
|
4329
4331
|
cn as C,
|
|
4330
4332
|
Re as O,
|
|
4331
|
-
|
|
4333
|
+
rr as b
|
|
4332
4334
|
};
|
|
4333
|
-
//# sourceMappingURL=booking-
|
|
4335
|
+
//# sourceMappingURL=booking-DjQuhfN7.js.map
|