@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.
- package/dist/_chunks/{booking-CNNtMjXC.js → booking-DjQuhfN7.js} +485 -484
- package/dist/_chunks/booking-DjQuhfN7.js.map +1 -0
- package/dist/_chunks/{public-header.agent-DPPdCBi_.js → public-header.agent-_ArDD1Xr.js} +169 -136
- package/dist/_chunks/public-header.agent-_ArDD1Xr.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/sticky-header-clearance.d.ts +8 -0
- package/dist/components/_shared/sticky-header-clearance.d.ts.map +1 -0
- package/dist/components/booking/code-step.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/reserved.d.ts.map +1 -1
- package/dist/components/booking/step-focus.d.ts +5 -4
- package/dist/components/booking/step-focus.d.ts.map +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-CNNtMjXC.js.map +0 -1
- package/dist/_chunks/public-header.agent-DPPdCBi_.js.map +0 -1
|
@@ -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
|
|
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
|
|
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 {
|
|
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 { S as
|
|
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
|
|
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 { s as yt, f as
|
|
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
|
|
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
|
|
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,25 +286,25 @@ 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(
|
|
293
294
|
(r) => {
|
|
294
|
-
var
|
|
295
|
-
return r.specialtyId === i.id && ((
|
|
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
|
|
303
|
-
return
|
|
303
|
+
const c = i.sequenceNumber ?? Number.POSITIVE_INFINITY, a = r.sequenceNumber ?? Number.POSITIVE_INFINITY;
|
|
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,13 +319,13 @@ 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(
|
|
325
326
|
(i) => {
|
|
326
327
|
var r;
|
|
327
|
-
return (r = i.appointmentBookingReasonIds) == null ? void 0 : r.some((
|
|
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
|
|
336
|
-
return (
|
|
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
|
|
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
|
-
specialty:
|
|
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
|
|
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
|
|
387
|
+
function ur(e) {
|
|
387
388
|
const t = {
|
|
388
|
-
specialties:
|
|
389
|
-
services:
|
|
390
|
-
operators:
|
|
391
|
-
}, s =
|
|
392
|
-
let
|
|
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 && (
|
|
396
|
+
f && (c = f.find((v) => v.key === e.value.slotKey));
|
|
396
397
|
}
|
|
397
|
-
const
|
|
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:
|
|
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
|
|
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),
|
|
525
|
-
(
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
554
|
-
r.has("email") &&
|
|
555
|
-
const
|
|
556
|
-
l &&
|
|
557
|
-
const m = new Set(
|
|
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
|
|
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,21 +598,21 @@ 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) => {
|
|
604
605
|
if (r === "") return;
|
|
605
|
-
const
|
|
606
|
-
(
|
|
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(
|
|
609
|
-
const
|
|
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
|
-
const { line1: t, city: s, postalCode: i, country: r, state:
|
|
649
|
-
return !t.trim() || !s.trim() || !i.trim() || !r.trim() ? !1 : r.toUpperCase() !== "IT" ? !0 : !!
|
|
650
|
-
},
|
|
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
|
-
},
|
|
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
|
-
],
|
|
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:
|
|
684
|
-
requireDateOfBirth:
|
|
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
|
|
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(
|
|
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,
|
|
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
|
-
),
|
|
751
|
+
), Mt = M(Ae), ct = !!(g && e.paymentAccepted && tn === Ae);
|
|
751
752
|
q(() => {
|
|
752
|
-
|
|
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
|
-
),
|
|
761
|
+
), Ot = M(De), ue = !!(De !== void 0 && e.practiceConsentAccepted && nn === De);
|
|
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 =
|
|
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 = (
|
|
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
|
-
),
|
|
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
|
-
] :
|
|
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
|
|
834
|
+
const Ft = !!x, Rt = !!O;
|
|
834
835
|
q(() => {
|
|
835
836
|
const o = e.codiceFiscale;
|
|
836
|
-
if (!V || !
|
|
837
|
-
Se(
|
|
837
|
+
if (!V || !Ft || !o) {
|
|
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")
|
|
@@ -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,
|
|
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 || !
|
|
874
|
-
Te(
|
|
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,
|
|
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 &&
|
|
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
|
-
),
|
|
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 ||
|
|
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
|
-
|
|
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,
|
|
917
|
-
firstName: ce.firstName && !((
|
|
918
|
-
lastName: ce.lastName && !((
|
|
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 &&
|
|
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 &&
|
|
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:
|
|
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
|
-
|
|
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
|
-
),
|
|
1016
|
-
const T =
|
|
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 &&
|
|
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
|
-
|
|
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
|
-
|
|
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 ||
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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: [
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1475
|
+
Kt(d.url) ? /* @__PURE__ */ n(
|
|
1475
1476
|
"a",
|
|
1476
1477
|
{
|
|
1477
1478
|
dir: "auto",
|
|
1478
|
-
href:
|
|
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:
|
|
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 ?
|
|
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
|
|
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,
|
|
1595
|
-
if (a.top >=
|
|
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
|
|
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
|
|
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:
|
|
1623
|
-
onBusyChange:
|
|
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
|
-
|
|
1632
|
-
}, [F,
|
|
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 ?
|
|
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:
|
|
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 ${
|
|
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
|
-
|
|
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(
|
|
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
|
|
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
|
|
1760
|
+
function Lr(e, t, s) {
|
|
1760
1761
|
const i = e.filter(
|
|
1761
|
-
(
|
|
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
|
|
1765
|
-
if (!
|
|
1766
|
-
const
|
|
1767
|
-
return { payment:
|
|
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((
|
|
1770
|
+
return { blocked: i.some((c) => !!c.payment) };
|
|
1770
1771
|
}
|
|
1771
|
-
function
|
|
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
|
|
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:
|
|
1786
|
-
submitting:
|
|
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 =
|
|
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
|
-
|
|
1811
|
+
Ut(g.payment),
|
|
1811
1812
|
l,
|
|
1812
1813
|
I
|
|
1813
|
-
]), F = g.payment ? JSON.stringify([
|
|
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 && (
|
|
1834
|
-
[D,
|
|
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 ||
|
|
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()) ||
|
|
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
|
|
1934
|
-
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({
|
|
1935
1936
|
url: e,
|
|
1936
1937
|
delayMs: t,
|
|
1937
1938
|
onNavigate: s,
|
|
1938
1939
|
date: i,
|
|
1939
1940
|
time: r,
|
|
1940
|
-
details:
|
|
1941
|
-
shouldTakeFocus:
|
|
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 &&
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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 >
|
|
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:
|
|
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
|
|
2036
|
-
function
|
|
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:") &&
|
|
2042
|
+
return (s === "https:" || s === "http:") && hs(t) ? t : void 0;
|
|
2042
2043
|
} catch {
|
|
2043
2044
|
return;
|
|
2044
2045
|
}
|
|
2045
2046
|
}
|
|
2046
|
-
const
|
|
2047
|
-
function
|
|
2048
|
-
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;
|
|
2049
2050
|
}
|
|
2050
|
-
const
|
|
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
|
-
),
|
|
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,
|
|
2085
|
-
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i,
|
|
2086
|
-
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i,
|
|
2087
|
-
[/\b(otorin|udito|orecchi|hearing|ear)/i,
|
|
2088
|
-
[/\b(neuro|brain|cervello)/i,
|
|
2089
|
-
[/\b(pediatr|child|bambin)/i,
|
|
2090
|
-
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i,
|
|
2091
|
-
[/\b(lab|analis|test|sang|esami)/i,
|
|
2092
|
-
[/\b(farmaco|pharm|pillol|refill)/i,
|
|
2093
|
-
[/\b(chirurg|surg|intervent|operat)/i,
|
|
2094
|
-
[/\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],
|
|
2095
2096
|
[/\b(vacc|inject|inie|punto)/i, kn],
|
|
2096
|
-
[/\b(derma|skin|pelle)/i,
|
|
2097
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
2098
|
-
[/\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]
|
|
2099
2100
|
];
|
|
2100
|
-
function
|
|
2101
|
-
for (const [t, s] of
|
|
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
|
|
2106
|
-
const t =
|
|
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 =
|
|
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:
|
|
2115
|
+
price: c,
|
|
2115
2116
|
payment: e("booking.payment.unavailable"),
|
|
2116
2117
|
paymentTone: "error"
|
|
2117
2118
|
} : {
|
|
2118
|
-
price:
|
|
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
|
|
2128
|
+
return Gt(e, "yyyy-MM-dd");
|
|
2128
2129
|
}
|
|
2129
|
-
const
|
|
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(" "),
|
|
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
|
|
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:
|
|
2158
|
-
const N =
|
|
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
|
|
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
|
|
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) =>
|
|
2200
|
+
(w) => zt(w, l) && I(w)
|
|
2200
2201
|
);
|
|
2201
|
-
return N || (v.find((w) =>
|
|
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(),
|
|
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":
|
|
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(
|
|
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(
|
|
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(
|
|
2254
|
-
"aria-label":
|
|
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) =>
|
|
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(
|
|
2275
|
-
"aria-label":
|
|
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":
|
|
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, _ =
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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"),
|
|
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:
|
|
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 } =
|
|
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 =
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
2555
|
-
morning:
|
|
2556
|
-
afternoon:
|
|
2557
|
-
evening:
|
|
2555
|
+
const si = {
|
|
2556
|
+
morning: As,
|
|
2557
|
+
afternoon: tr,
|
|
2558
|
+
evening: Ts
|
|
2558
2559
|
};
|
|
2559
|
-
function
|
|
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:
|
|
2566
|
+
locale: c
|
|
2566
2567
|
}) {
|
|
2567
|
-
const { t:
|
|
2568
|
+
const { t: a } = Z("ui"), l = $(() => {
|
|
2568
2569
|
try {
|
|
2569
|
-
return new Intl.DateTimeFormat(
|
|
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,
|
|
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[
|
|
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(
|
|
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(
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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 =
|
|
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:
|
|
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":
|
|
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":
|
|
2640
|
-
time: Yt(e, g.time,
|
|
2640
|
+
"aria-label": a("booking.slotAvailableLabel", {
|
|
2641
|
+
time: Yt(e, g.time, c)
|
|
2641
2642
|
}),
|
|
2642
2643
|
onClick: () => g.available && i(g),
|
|
2643
|
-
className:
|
|
2644
|
-
children: Yt(e, g.time,
|
|
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
|
|
2659
|
-
function
|
|
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:
|
|
2666
|
-
loadingDates:
|
|
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,
|
|
2683
|
+
() => sn(v, Ht - 1),
|
|
2683
2684
|
[v]
|
|
2684
|
-
), g = $(() => Array.from({ length:
|
|
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 =
|
|
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,
|
|
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) && !
|
|
2708
|
+
return !kt(A, d) && !xs(A, v);
|
|
2708
2709
|
}) || h(b);
|
|
2709
2710
|
}, [e]), q(() => {
|
|
2710
|
-
|
|
2711
|
-
}, [v, d,
|
|
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 =
|
|
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
|
-
|
|
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:
|
|
2755
|
-
loadingDates:
|
|
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
|
-
|
|
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:
|
|
2770
|
-
loadingDates:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
2790
|
-
return
|
|
2791
|
-
|
|
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:
|
|
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:
|
|
2830
|
+
pickerStyle: c = "select"
|
|
2830
2831
|
}) {
|
|
2831
|
-
const { t:
|
|
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:
|
|
2836
|
-
return
|
|
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:
|
|
2845
|
-
"aria-label":
|
|
2845
|
+
placeholder: a("booking.specialty.placeholder"),
|
|
2846
|
+
"aria-label": a("booking.specialty.heading"),
|
|
2846
2847
|
allowClear: !0
|
|
2847
2848
|
}
|
|
2848
2849
|
)
|
|
2849
|
-
] }) :
|
|
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:
|
|
2858
|
-
"aria-label":
|
|
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:
|
|
2871
|
-
"aria-label":
|
|
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:
|
|
2883
|
-
compact:
|
|
2883
|
+
pickerStyle: c,
|
|
2884
|
+
compact: a,
|
|
2884
2885
|
showDuration: l
|
|
2885
2886
|
}) {
|
|
2886
|
-
const { t: m } = Z("ui"), p = Un(), f =
|
|
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
|
-
|
|
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:
|
|
2965
|
+
pickerStyle: c = "select"
|
|
2965
2966
|
}) {
|
|
2966
|
-
const { t:
|
|
2967
|
-
if (
|
|
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:
|
|
2982
|
-
"aria-label":
|
|
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:
|
|
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
|
|
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:
|
|
3003
|
-
"aria-label":
|
|
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:
|
|
3016
|
-
"aria-label":
|
|
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
|
|
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:
|
|
3056
|
-
snapshot:
|
|
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(
|
|
3073
|
+
const N = pn(c), x = qn(
|
|
3073
3074
|
N,
|
|
3074
|
-
|
|
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 (
|
|
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(
|
|
3092
|
+
}).format(fe(a.date));
|
|
3092
3093
|
} catch {
|
|
3093
|
-
return
|
|
3094
|
+
return a.date;
|
|
3094
3095
|
}
|
|
3095
|
-
}, [
|
|
3096
|
-
const L = (
|
|
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
|
-
}, [
|
|
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 (
|
|
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(
|
|
3122
|
+
}).format(fe(a.date));
|
|
3122
3123
|
} catch {
|
|
3123
|
-
A =
|
|
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
|
-
|
|
3130
|
+
qr,
|
|
3130
3131
|
{
|
|
3131
3132
|
url: t,
|
|
3132
|
-
delayMs:
|
|
3133
|
+
delayMs: Ur(s),
|
|
3133
3134
|
onNavigate: i,
|
|
3134
3135
|
date: A,
|
|
3135
|
-
time: Yt(
|
|
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 ?
|
|
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(
|
|
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",
|
|
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} ${
|
|
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
|
|
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:
|
|
3258
|
-
emptyServicesSlot:
|
|
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"), _ =
|
|
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:
|
|
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:
|
|
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:
|
|
3385
|
-
onChange:
|
|
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:
|
|
3410
|
-
onChange: (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:
|
|
3419
|
-
valueIds:
|
|
3420
|
-
onChange: (b) =>
|
|
3421
|
-
onChangeIds: (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:
|
|
3431
|
-
valueIds:
|
|
3432
|
-
onChange: (b) =>
|
|
3433
|
-
onChangeIds: (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:
|
|
3445
|
-
valueIds:
|
|
3446
|
-
onChange: (b) =>
|
|
3447
|
-
onChangeIds: (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: () =>
|
|
3457
|
+
onJump: () => a(Qt(c, r.nextAvailableDate)),
|
|
3457
3458
|
locale: x
|
|
3458
3459
|
}
|
|
3459
3460
|
) : Hn({
|
|
3460
3461
|
inputs: r,
|
|
3461
|
-
value:
|
|
3462
|
-
onChange:
|
|
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:
|
|
3475
|
-
onChange:
|
|
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:
|
|
3486
|
-
onChange: (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
|
|
3513
|
+
function St(e, t) {
|
|
3513
3514
|
return t === "four-day-grid" && e === 6 ? 5 : e;
|
|
3514
3515
|
}
|
|
3515
|
-
function
|
|
3516
|
-
const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle:
|
|
3517
|
-
() => hn(t.visibleSteps,
|
|
3518
|
-
[t.visibleSteps,
|
|
3519
|
-
), f =
|
|
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:
|
|
3522
|
+
label: a[d],
|
|
3522
3523
|
summary: ts(d, s, t, m),
|
|
3523
|
-
status:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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((
|
|
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
|
|
3576
|
-
|
|
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 :
|
|
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
|
|
3593
|
-
const { cascade: t, value: s, activeStep: i, setActiveStep: r } = e, { t:
|
|
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":
|
|
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
|
-
|
|
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
|
-
|
|
3634
|
+
a[d],
|
|
3634
3635
|
": ",
|
|
3635
3636
|
g
|
|
3636
|
-
] }) :
|
|
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
|
|
3682
|
-
const { cascade: t, datePickerStyle: s, activeStep: i } = e, r =
|
|
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:
|
|
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
|
|
3703
|
-
const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle:
|
|
3704
|
-
() => hn(t.visibleSteps,
|
|
3705
|
-
[t.visibleSteps,
|
|
3706
|
-
), p =
|
|
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 &&
|
|
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(
|
|
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:
|
|
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:
|
|
3738
|
+
children: a("booking.actions.next")
|
|
3738
3739
|
}
|
|
3739
3740
|
) : null
|
|
3740
3741
|
] })
|
|
3741
3742
|
] });
|
|
3742
3743
|
}
|
|
3743
|
-
const
|
|
3744
|
-
function
|
|
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
|
|
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:
|
|
3758
|
-
autoSelectSingleService:
|
|
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:
|
|
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:
|
|
3812
|
+
className: Mt,
|
|
3812
3813
|
onFocus: ct,
|
|
3813
3814
|
onBlur: Ge,
|
|
3814
3815
|
...De
|
|
3815
3816
|
}, nn) => {
|
|
3816
|
-
var wt, Ct
|
|
3817
|
-
const { t: ae, i18n:
|
|
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 =
|
|
3820
|
+
const o = mr(E, {
|
|
3820
3821
|
useSpecialties: s,
|
|
3821
3822
|
lockedOperatorId: r,
|
|
3822
|
-
autoSelectSingleService:
|
|
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
|
-
|
|
3831
|
+
a,
|
|
3831
3832
|
Me,
|
|
3832
3833
|
m
|
|
3833
3834
|
]);
|
|
3834
3835
|
const V = $(
|
|
3835
|
-
() =>
|
|
3836
|
+
() => ur({
|
|
3836
3837
|
country: t,
|
|
3837
3838
|
useSpecialties: s,
|
|
3838
3839
|
allowOperatorSelection: i,
|
|
3839
3840
|
lockedOperatorId: r,
|
|
3840
|
-
operatorsByService:
|
|
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
|
-
),
|
|
3916
|
+
), Et = en(), [Ee, ze] = H(""), Ye = M(null), Ie = M(null);
|
|
3916
3917
|
q(() => {
|
|
3917
|
-
const o =
|
|
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:
|
|
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
|
|
3939
|
-
if (
|
|
3939
|
+
const $t = U.querySelector(ai) ?? U;
|
|
3940
|
+
if ($t.focus({ preventScroll: !0 }), typeof $t.scrollIntoView == "function")
|
|
3940
3941
|
try {
|
|
3941
|
-
|
|
3942
|
-
behavior:
|
|
3942
|
+
$t.scrollIntoView({
|
|
3943
|
+
behavior: hi() ? "auto" : "smooth",
|
|
3943
3944
|
block: "nearest"
|
|
3944
3945
|
});
|
|
3945
3946
|
} catch {
|
|
3946
|
-
|
|
3947
|
+
$t.scrollIntoView();
|
|
3947
3948
|
}
|
|
3948
|
-
}, [de, te, qe,
|
|
3949
|
-
const K =
|
|
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), [
|
|
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),
|
|
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" &&
|
|
3982
|
-
}, [j,
|
|
3983
|
-
const Fe = j === "success" ? 8 : j === "payment" || j === "code" ? 7 : V.currentStep,
|
|
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 ===
|
|
3995
|
-
|
|
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") ?
|
|
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
|
|
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(
|
|
4023
|
-
const ht = tn ?? ae("booking.regionLabel"), ve = K.snapshot,
|
|
4024
|
-
|
|
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:
|
|
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: ((
|
|
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:
|
|
4043
|
+
mode: Dt,
|
|
4043
4044
|
showModify: Ve && !ve.payment && !K.codeVerified,
|
|
4044
|
-
onReset: () =>
|
|
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
|
-
|
|
4055
|
+
Rr,
|
|
4055
4056
|
{
|
|
4056
4057
|
...K.codeStep,
|
|
4057
4058
|
...Q,
|
|
4058
4059
|
onVerified: K.completeCode,
|
|
4059
|
-
onBusyChange:
|
|
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: (
|
|
4066
|
-
} : void 0, Qe = se && "phase" in se && se.phase === "completion",
|
|
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:
|
|
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,
|
|
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]),
|
|
4134
|
+
}, [m, E]), It = $(() => {
|
|
4134
4135
|
if (j === "success" || j === "payment") return null;
|
|
4135
|
-
const o = ue === "accordion" ?
|
|
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:
|
|
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
|
-
|
|
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:
|
|
4258
|
+
className: Hr({
|
|
4258
4259
|
variant: ue,
|
|
4259
4260
|
surface: nt,
|
|
4260
|
-
className:
|
|
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
|
-
|
|
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:
|
|
4303
|
+
children: It
|
|
4303
4304
|
}
|
|
4304
|
-
) :
|
|
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:
|
|
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
|
-
|
|
4328
|
+
vi.displayName = "Booking";
|
|
4328
4329
|
export {
|
|
4329
|
-
|
|
4330
|
+
vi as B,
|
|
4330
4331
|
cn as C,
|
|
4331
4332
|
Re as O,
|
|
4332
|
-
|
|
4333
|
+
rr as b
|
|
4333
4334
|
};
|
|
4334
|
-
//# sourceMappingURL=booking-
|
|
4335
|
+
//# sourceMappingURL=booking-DjQuhfN7.js.map
|