@alfadocs/ui-kit 0.31.2 → 0.31.4
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-BIZ9GSer.js → booking-A4o9xI2n.js} +147 -136
- package/dist/_chunks/{practice-results-JQunxBIg.js → practice-results-dOlljaAK.js} +630 -649
- package/dist/agent-catalog.json +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +19 -0
- package/dist/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/package.json +2 -1
- package/dist/_chunks/smile-BSYLAHy6.js +0 -17
|
@@ -5,7 +5,7 @@ import { useTranslation as T, Trans as gt } from "react-i18next";
|
|
|
5
5
|
import { u as ft } from "./registry-nPAVE19X.js";
|
|
6
6
|
import { A as L } from "./alert-ywPR59NE.js";
|
|
7
7
|
import { B as se } from "./button-DD_0Xdmr.js";
|
|
8
|
-
import { C as
|
|
8
|
+
import { C as Ae } from "./checkbox-DRcOdmXv.js";
|
|
9
9
|
import { C as ht } from "./checkbox-group-CpUwlHug.js";
|
|
10
10
|
import { D as vt } from "./date-picker-B94HAV4A.js";
|
|
11
11
|
import { E as bt } from "./email-input-lQivsFrw.js";
|
|
@@ -28,17 +28,16 @@ import { i as ze } from "./isSameDay-DUEiAT0G.js";
|
|
|
28
28
|
import { c as O } from "./createLucideIcon-CrFbzy84.js";
|
|
29
29
|
import { M as Mt, S as Dt } from "./sun-BuXE0xUS.js";
|
|
30
30
|
import { S as Tt } from "./stethoscope-DT5qCW8Y.js";
|
|
31
|
-
import { H as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { S as Ot } from "./sparkles-CuYXqQLg.js";
|
|
31
|
+
import { H as _t } from "./heart-pulse-CvuyFKHB.js";
|
|
32
|
+
import { E as At } from "./eye-LHlSU38h.js";
|
|
33
|
+
import { S as Bt } from "./sparkles-CuYXqQLg.js";
|
|
35
34
|
/**
|
|
36
35
|
* @license lucide-react v1.8.0 - ISC
|
|
37
36
|
*
|
|
38
37
|
* This source code is licensed under the ISC license.
|
|
39
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
39
|
*/
|
|
41
|
-
const
|
|
40
|
+
const Ot = [
|
|
42
41
|
[
|
|
43
42
|
"path",
|
|
44
43
|
{
|
|
@@ -46,14 +45,14 @@ const Et = [
|
|
|
46
45
|
key: "169zse"
|
|
47
46
|
}
|
|
48
47
|
]
|
|
49
|
-
],
|
|
48
|
+
], Et = O("activity", Ot);
|
|
50
49
|
/**
|
|
51
50
|
* @license lucide-react v1.8.0 - ISC
|
|
52
51
|
*
|
|
53
52
|
* This source code is licensed under the ISC license.
|
|
54
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
54
|
*/
|
|
56
|
-
const
|
|
55
|
+
const Pt = [
|
|
57
56
|
["path", { d: "M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5", key: "1u7htd" }],
|
|
58
57
|
["path", { d: "M15 12h.01", key: "1k8ypt" }],
|
|
59
58
|
[
|
|
@@ -64,14 +63,14 @@ const Vt = [
|
|
|
64
63
|
}
|
|
65
64
|
],
|
|
66
65
|
["path", { d: "M9 12h.01", key: "157uk2" }]
|
|
67
|
-
],
|
|
66
|
+
], Vt = O("baby", Pt);
|
|
68
67
|
/**
|
|
69
68
|
* @license lucide-react v1.8.0 - ISC
|
|
70
69
|
*
|
|
71
70
|
* This source code is licensed under the ISC license.
|
|
72
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
72
|
*/
|
|
74
|
-
const
|
|
73
|
+
const Rt = [
|
|
75
74
|
[
|
|
76
75
|
"path",
|
|
77
76
|
{
|
|
@@ -79,14 +78,14 @@ const Lt = [
|
|
|
79
78
|
key: "w610uw"
|
|
80
79
|
}
|
|
81
80
|
]
|
|
82
|
-
],
|
|
81
|
+
], Lt = O("bone", Rt);
|
|
83
82
|
/**
|
|
84
83
|
* @license lucide-react v1.8.0 - ISC
|
|
85
84
|
*
|
|
86
85
|
* This source code is licensed under the ISC license.
|
|
87
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
87
|
*/
|
|
89
|
-
const
|
|
88
|
+
const Ft = [
|
|
90
89
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
91
90
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
92
91
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -95,14 +94,14 @@ const zt = [
|
|
|
95
94
|
["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
|
|
96
95
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
97
96
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
98
|
-
],
|
|
97
|
+
], zt = O("brain", Ft);
|
|
99
98
|
/**
|
|
100
99
|
* @license lucide-react v1.8.0 - ISC
|
|
101
100
|
*
|
|
102
101
|
* This source code is licensed under the ISC license.
|
|
103
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
104
103
|
*/
|
|
105
|
-
const
|
|
104
|
+
const $t = [
|
|
106
105
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
107
106
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
108
107
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
@@ -111,14 +110,14 @@ const Kt = [
|
|
|
111
110
|
["path", { d: "M13 18H7", key: "bb0bb7" }],
|
|
112
111
|
["path", { d: "M7 14h.01", key: "1qa3f1" }],
|
|
113
112
|
["path", { d: "M17 18h.01", key: "1bdyru" }]
|
|
114
|
-
],
|
|
113
|
+
], Kt = O("calendar-range", $t);
|
|
115
114
|
/**
|
|
116
115
|
* @license lucide-react v1.8.0 - ISC
|
|
117
116
|
*
|
|
118
117
|
* This source code is licensed under the ISC license.
|
|
119
118
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
119
|
*/
|
|
121
|
-
const
|
|
120
|
+
const jt = [
|
|
122
121
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
123
122
|
[
|
|
124
123
|
"path",
|
|
@@ -128,77 +127,89 @@ const qt = [
|
|
|
128
127
|
}
|
|
129
128
|
],
|
|
130
129
|
["path", { d: "m9 14 2 2 4-4", key: "df797q" }]
|
|
131
|
-
],
|
|
130
|
+
], qt = O("clipboard-check", jt);
|
|
132
131
|
/**
|
|
133
132
|
* @license lucide-react v1.8.0 - ISC
|
|
134
133
|
*
|
|
135
134
|
* This source code is licensed under the ISC license.
|
|
136
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
136
|
*/
|
|
138
|
-
const
|
|
137
|
+
const Ht = [
|
|
139
138
|
["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" }],
|
|
140
139
|
["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
|
|
141
|
-
],
|
|
140
|
+
], Gt = O("ear", Ht);
|
|
142
141
|
/**
|
|
143
142
|
* @license lucide-react v1.8.0 - ISC
|
|
144
143
|
*
|
|
145
144
|
* This source code is licensed under the ISC license.
|
|
146
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
147
146
|
*/
|
|
148
|
-
const
|
|
147
|
+
const Ut = [
|
|
149
148
|
["path", { d: "M6 18h8", key: "1borvv" }],
|
|
150
149
|
["path", { d: "M3 22h18", key: "8prr45" }],
|
|
151
150
|
["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
|
|
152
151
|
["path", { d: "M9 14h2", key: "197e7h" }],
|
|
153
152
|
["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
|
|
154
153
|
["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
|
|
155
|
-
],
|
|
154
|
+
], Yt = O("microscope", Ut);
|
|
156
155
|
/**
|
|
157
156
|
* @license lucide-react v1.8.0 - ISC
|
|
158
157
|
*
|
|
159
158
|
* This source code is licensed under the ISC license.
|
|
160
159
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
160
|
*/
|
|
162
|
-
const
|
|
161
|
+
const Zt = [
|
|
163
162
|
[
|
|
164
163
|
"path",
|
|
165
164
|
{ 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" }
|
|
166
165
|
],
|
|
167
166
|
["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
|
|
168
|
-
],
|
|
167
|
+
], Jt = O("pill", Zt);
|
|
169
168
|
/**
|
|
170
169
|
* @license lucide-react v1.8.0 - ISC
|
|
171
170
|
*
|
|
172
171
|
* This source code is licensed under the ISC license.
|
|
173
172
|
* See the LICENSE file in the root directory of this source tree.
|
|
174
173
|
*/
|
|
175
|
-
const
|
|
174
|
+
const Xt = [
|
|
176
175
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
177
176
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
178
177
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
179
178
|
["path", { d: "M7 21H5a2 2 0 0 1-2-2v-2", key: "ioqczr" }],
|
|
180
179
|
["path", { d: "M7 12h10", key: "b7w52i" }]
|
|
181
|
-
],
|
|
180
|
+
], Wt = O("scan-line", Xt);
|
|
182
181
|
/**
|
|
183
182
|
* @license lucide-react v1.8.0 - ISC
|
|
184
183
|
*
|
|
185
184
|
* This source code is licensed under the ISC license.
|
|
186
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
187
186
|
*/
|
|
188
|
-
const
|
|
187
|
+
const Qt = [
|
|
189
188
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
190
189
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
191
190
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
192
191
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
193
192
|
["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
|
|
194
|
-
],
|
|
193
|
+
], ea = O("scissors", Qt);
|
|
195
194
|
/**
|
|
196
195
|
* @license lucide-react v1.8.0 - ISC
|
|
197
196
|
*
|
|
198
197
|
* This source code is licensed under the ISC license.
|
|
199
198
|
* See the LICENSE file in the root directory of this source tree.
|
|
200
199
|
*/
|
|
201
|
-
const
|
|
200
|
+
const ta = [
|
|
201
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
202
|
+
["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
|
|
203
|
+
["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
|
|
204
|
+
["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
|
|
205
|
+
], aa = O("smile", ta);
|
|
206
|
+
/**
|
|
207
|
+
* @license lucide-react v1.8.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/
|
|
212
|
+
const sa = [
|
|
202
213
|
["path", { d: "M12 10V2", key: "16sf7g" }],
|
|
203
214
|
["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
|
|
204
215
|
["path", { d: "M2 18h2", key: "j10viu" }],
|
|
@@ -207,25 +218,25 @@ const aa = [
|
|
|
207
218
|
["path", { d: "M22 22H2", key: "19qnx5" }],
|
|
208
219
|
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
|
|
209
220
|
["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
|
|
210
|
-
],
|
|
221
|
+
], ia = O("sunset", sa);
|
|
211
222
|
/**
|
|
212
223
|
* @license lucide-react v1.8.0 - ISC
|
|
213
224
|
*
|
|
214
225
|
* This source code is licensed under the ISC license.
|
|
215
226
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
227
|
*/
|
|
217
|
-
const
|
|
228
|
+
const na = [
|
|
218
229
|
["path", { d: "m18 2 4 4", key: "22kx64" }],
|
|
219
230
|
["path", { d: "m17 7 3-3", key: "1w1zoj" }],
|
|
220
231
|
["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" }],
|
|
221
232
|
["path", { d: "m9 11 4 4", key: "rovt3i" }],
|
|
222
233
|
["path", { d: "m5 19-3 3", key: "59f2uf" }],
|
|
223
234
|
["path", { d: "m14 4 6 6", key: "yqp9t2" }]
|
|
224
|
-
], $e = O("syringe",
|
|
225
|
-
function
|
|
235
|
+
], $e = O("syringe", na);
|
|
236
|
+
function oa(e, t, s) {
|
|
226
237
|
return Ue(e, -1, s);
|
|
227
238
|
}
|
|
228
|
-
const
|
|
239
|
+
const ra = {
|
|
229
240
|
id: "booking",
|
|
230
241
|
capabilities: ["navigate", "view_change"],
|
|
231
242
|
state: {
|
|
@@ -271,8 +282,8 @@ const oa = {
|
|
|
271
282
|
"email",
|
|
272
283
|
"whatsapp",
|
|
273
284
|
"sms"
|
|
274
|
-
], he = "all",
|
|
275
|
-
function
|
|
285
|
+
], he = "all", da = "de";
|
|
286
|
+
function la(e) {
|
|
276
287
|
return [...e.lockedOperatorId ? e.specialties.filter(
|
|
277
288
|
(s) => {
|
|
278
289
|
var i;
|
|
@@ -283,7 +294,7 @@ function da(e) {
|
|
|
283
294
|
return n - o;
|
|
284
295
|
});
|
|
285
296
|
}
|
|
286
|
-
function
|
|
297
|
+
function ca(e) {
|
|
287
298
|
let t = e.services;
|
|
288
299
|
return e.lockedOperatorId && (t = t.filter(
|
|
289
300
|
(i) => {
|
|
@@ -292,7 +303,7 @@ function la(e) {
|
|
|
292
303
|
}
|
|
293
304
|
)), (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && e.value.specialtyId && (t = t.filter((i) => i.specialtyId === e.value.specialtyId)), t;
|
|
294
305
|
}
|
|
295
|
-
function
|
|
306
|
+
function ma(e) {
|
|
296
307
|
const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties;
|
|
297
308
|
if (t && e.value.specialtyId) {
|
|
298
309
|
const s = e.value.specialtyId;
|
|
@@ -314,8 +325,8 @@ function ca(e) {
|
|
|
314
325
|
}
|
|
315
326
|
return [];
|
|
316
327
|
}
|
|
317
|
-
function
|
|
318
|
-
const s = e.country ===
|
|
328
|
+
function ua(e, t) {
|
|
329
|
+
const s = e.country === da, i = !s || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, l = !o || e.value.specialtyId !== void 0, d = !l || e.value.serviceId !== void 0, p = t.operators, h = !!e.allowOperatorSelection && d && e.value.serviceId !== void 0 && !e.lockedOperatorId && p.length > 1, u = d && e.value.serviceId !== void 0, g = (!u || e.value.date !== void 0) && e.value.date !== void 0, y = (!g || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, w = !!e.value.serviceId && p.length === 0;
|
|
319
330
|
return {
|
|
320
331
|
insurance: s,
|
|
321
332
|
specialty: o,
|
|
@@ -327,7 +338,7 @@ function ma(e, t) {
|
|
|
327
338
|
onboardingIncomplete: w
|
|
328
339
|
};
|
|
329
340
|
}
|
|
330
|
-
function
|
|
341
|
+
function pa(e, t) {
|
|
331
342
|
const s = [];
|
|
332
343
|
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);
|
|
333
344
|
const i = {
|
|
@@ -345,12 +356,12 @@ function ua(e, t) {
|
|
|
345
356
|
visibleSteps: s
|
|
346
357
|
};
|
|
347
358
|
}
|
|
348
|
-
function
|
|
359
|
+
function ga(e) {
|
|
349
360
|
const t = {
|
|
350
|
-
specialties:
|
|
351
|
-
services:
|
|
352
|
-
operators:
|
|
353
|
-
}, s =
|
|
361
|
+
specialties: la(e),
|
|
362
|
+
services: ca(e),
|
|
363
|
+
operators: ma(e)
|
|
364
|
+
}, s = ua(e, t), { currentStep: i, visibleSteps: n } = pa(e, s);
|
|
354
365
|
let o;
|
|
355
366
|
if (e.value.date && e.value.slotKey) {
|
|
356
367
|
const d = e.availableSlots[e.value.date];
|
|
@@ -428,7 +439,7 @@ function We(e, t) {
|
|
|
428
439
|
slotKey: t
|
|
429
440
|
};
|
|
430
441
|
}
|
|
431
|
-
function
|
|
442
|
+
function fa(e, t) {
|
|
432
443
|
let s = e;
|
|
433
444
|
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 = { ...s, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
|
|
434
445
|
const n = s.specialtyId ? t.services.filter((o) => o.specialtyId === s.specialtyId) : t.services;
|
|
@@ -440,7 +451,7 @@ function Ee(e) {
|
|
|
440
451
|
if (e.operatorId && e.operatorId !== he)
|
|
441
452
|
return e.operatorId;
|
|
442
453
|
}
|
|
443
|
-
function
|
|
454
|
+
function ha(e) {
|
|
444
455
|
if (!e) return !1;
|
|
445
456
|
const t = e.trim();
|
|
446
457
|
return /^\+?\d[\d\s\-()]{6,}$/.test(t);
|
|
@@ -449,7 +460,7 @@ function Qe(e) {
|
|
|
449
460
|
const t = e && e.length > 0 ? e : ["email"], s = new Set(t);
|
|
450
461
|
return Oe.filter((i) => s.has(i));
|
|
451
462
|
}
|
|
452
|
-
function
|
|
463
|
+
function va(e, t, s) {
|
|
453
464
|
const i = Qe(e), n = new Set(i);
|
|
454
465
|
if (s)
|
|
455
466
|
return Oe.filter(
|
|
@@ -457,12 +468,12 @@ function ha(e, t, s) {
|
|
|
457
468
|
);
|
|
458
469
|
const o = [];
|
|
459
470
|
n.has("email") && o.push("email");
|
|
460
|
-
const c =
|
|
471
|
+
const c = ha(t), l = n.has("whatsapp");
|
|
461
472
|
l && c && o.push("whatsapp"), !l && n.has("sms") && o.push("sms");
|
|
462
473
|
const d = new Set(o);
|
|
463
474
|
return Oe.filter((p) => d.has(p));
|
|
464
475
|
}
|
|
465
|
-
const Ke = 500,
|
|
476
|
+
const Ke = 500, ba = /^[A-Z0-9]{16}$/, ya = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 300, ke = { state: "idle" }, Pe = qe(
|
|
466
477
|
({
|
|
467
478
|
value: e,
|
|
468
479
|
onChange: t,
|
|
@@ -481,10 +492,10 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
481
492
|
summarySlot: k,
|
|
482
493
|
defaultPhoneCountry: y,
|
|
483
494
|
confirmationChannels: w,
|
|
484
|
-
defaultConfirmationChannels:
|
|
495
|
+
defaultConfirmationChannels: A,
|
|
485
496
|
submitError: S
|
|
486
497
|
}, v) => {
|
|
487
|
-
var
|
|
498
|
+
var _, me;
|
|
488
499
|
const { t: r } = T(), E = He(), [M, b] = H(ke), [N, F] = H(ke), [B, J] = H({}), P = ae(
|
|
489
500
|
(m) => J((C) => ({ ...C, [m]: !0 })),
|
|
490
501
|
[]
|
|
@@ -513,17 +524,17 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
513
524
|
oe.current = !0;
|
|
514
525
|
return;
|
|
515
526
|
}
|
|
516
|
-
const m =
|
|
527
|
+
const m = va(
|
|
517
528
|
ie,
|
|
518
529
|
e.mobilePhone,
|
|
519
|
-
|
|
530
|
+
A
|
|
520
531
|
);
|
|
521
532
|
oe.current = !0, D({ confirmationChannels: m });
|
|
522
533
|
}, [
|
|
523
534
|
j,
|
|
524
535
|
ie,
|
|
525
536
|
e.mobilePhone,
|
|
526
|
-
|
|
537
|
+
A
|
|
527
538
|
]);
|
|
528
539
|
const ne = I(
|
|
529
540
|
() => e.confirmationChannels ?? [],
|
|
@@ -535,7 +546,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
535
546
|
b(ke);
|
|
536
547
|
return;
|
|
537
548
|
}
|
|
538
|
-
if (!
|
|
549
|
+
if (!ba.test(m)) {
|
|
539
550
|
b({
|
|
540
551
|
state: "invalid",
|
|
541
552
|
hint: r("booking.details.codiceFiscale.invalidFormat")
|
|
@@ -576,7 +587,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
576
587
|
}, je);
|
|
577
588
|
}, [X, x, e.insuranceNumber, r]);
|
|
578
589
|
const de = I(
|
|
579
|
-
() => !!(e.email &&
|
|
590
|
+
() => !!(e.email && ya.test(e.email)),
|
|
580
591
|
[e.email]
|
|
581
592
|
), le = I(
|
|
582
593
|
() => !!(e.mobilePhone && e.mobilePhone.length >= 6),
|
|
@@ -667,7 +678,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
667
678
|
{
|
|
668
679
|
label: r("booking.details.firstName.label"),
|
|
669
680
|
required: !0,
|
|
670
|
-
error: B.firstName && !((
|
|
681
|
+
error: B.firstName && !((_ = e.firstName) != null && _.trim()) ? r("booking.details.firstName.required") : void 0,
|
|
671
682
|
children: /* @__PURE__ */ a(
|
|
672
683
|
be,
|
|
673
684
|
{
|
|
@@ -810,7 +821,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
810
821
|
}
|
|
811
822
|
) : null,
|
|
812
823
|
d ? /* @__PURE__ */ a(
|
|
813
|
-
|
|
824
|
+
Ae,
|
|
814
825
|
{
|
|
815
826
|
checked: !!e.returningPatient,
|
|
816
827
|
onCheckedChange: (m) => D({ returningPatient: m === !0 }),
|
|
@@ -819,7 +830,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
819
830
|
) : null,
|
|
820
831
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
821
832
|
/* @__PURE__ */ a(
|
|
822
|
-
|
|
833
|
+
Ae,
|
|
823
834
|
{
|
|
824
835
|
checked: !!e.privacyConsent,
|
|
825
836
|
onCheckedChange: (m) => D({ privacyConsent: m === !0 }),
|
|
@@ -840,7 +851,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
840
851
|
}
|
|
841
852
|
),
|
|
842
853
|
/* @__PURE__ */ a(
|
|
843
|
-
|
|
854
|
+
Ae,
|
|
844
855
|
{
|
|
845
856
|
checked: !!e.termsConsent,
|
|
846
857
|
onCheckedChange: (m) => D({ termsConsent: m === !0 }),
|
|
@@ -903,7 +914,7 @@ const Ke = 500, va = /^[A-Z0-9]{16}$/, ba = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, je = 3
|
|
|
903
914
|
}
|
|
904
915
|
);
|
|
905
916
|
Pe.displayName = "BookingDetailsForm";
|
|
906
|
-
const
|
|
917
|
+
const ka = Ie(
|
|
907
918
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
|
|
908
919
|
{
|
|
909
920
|
variants: {
|
|
@@ -931,40 +942,40 @@ const ya = Ie(
|
|
|
931
942
|
},
|
|
932
943
|
defaultVariants: { variant: "inline-list", surface: "flat" }
|
|
933
944
|
}
|
|
934
|
-
),
|
|
945
|
+
), xa = [
|
|
935
946
|
[
|
|
936
947
|
/\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
|
|
937
948
|
$e
|
|
938
949
|
],
|
|
939
|
-
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i,
|
|
940
|
-
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i,
|
|
941
|
-
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i,
|
|
942
|
-
[/\b(otorin|udito|orecchi|hearing|ear)/i,
|
|
943
|
-
[/\b(neuro|brain|cervello)/i,
|
|
944
|
-
[/\b(pediatr|child|bambin)/i,
|
|
945
|
-
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i,
|
|
946
|
-
[/\b(lab|analis|test|sang|esami)/i,
|
|
947
|
-
[/\b(farmaco|pharm|pillol|refill)/i,
|
|
948
|
-
[/\b(chirurg|surg|intervent|operat)/i,
|
|
949
|
-
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i,
|
|
950
|
+
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, _t],
|
|
951
|
+
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, aa],
|
|
952
|
+
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, At],
|
|
953
|
+
[/\b(otorin|udito|orecchi|hearing|ear)/i, Gt],
|
|
954
|
+
[/\b(neuro|brain|cervello)/i, zt],
|
|
955
|
+
[/\b(pediatr|child|bambin)/i, Vt],
|
|
956
|
+
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Lt],
|
|
957
|
+
[/\b(lab|analis|test|sang|esami)/i, Yt],
|
|
958
|
+
[/\b(farmaco|pharm|pillol|refill)/i, Jt],
|
|
959
|
+
[/\b(chirurg|surg|intervent|operat)/i, ea],
|
|
960
|
+
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Wt],
|
|
950
961
|
[/\b(vacc|inject|inie|punto)/i, $e],
|
|
951
|
-
[/\b(derma|skin|pelle)/i,
|
|
952
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
953
|
-
[/\b(general|medicin|family|control|check[-\s]?up)/i,
|
|
962
|
+
[/\b(derma|skin|pelle)/i, Bt],
|
|
963
|
+
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, qt],
|
|
964
|
+
[/\b(general|medicin|family|control|check[-\s]?up)/i, Et]
|
|
954
965
|
];
|
|
955
|
-
function
|
|
956
|
-
for (const [t, s] of
|
|
966
|
+
function Sa(e) {
|
|
967
|
+
for (const [t, s] of xa)
|
|
957
968
|
if (t.test(e)) return s;
|
|
958
969
|
return null;
|
|
959
970
|
}
|
|
960
|
-
function
|
|
961
|
-
const t =
|
|
971
|
+
function Na(e) {
|
|
972
|
+
const t = Sa(e.label) ?? Tt;
|
|
962
973
|
return /* @__PURE__ */ a(t, { "aria-hidden": "true", className: "ds:size-5" });
|
|
963
974
|
}
|
|
964
975
|
function Be(e) {
|
|
965
976
|
return xe(e, "yyyy-MM-dd");
|
|
966
977
|
}
|
|
967
|
-
const
|
|
978
|
+
const Ia = [
|
|
968
979
|
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
969
980
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
970
981
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -974,7 +985,7 @@ const Na = [
|
|
|
974
985
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
975
986
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
976
987
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
977
|
-
].join(" "),
|
|
988
|
+
].join(" "), wa = Ie(Ia, {
|
|
978
989
|
variants: {
|
|
979
990
|
state: {
|
|
980
991
|
available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
|
|
@@ -1037,7 +1048,7 @@ function et({
|
|
|
1037
1048
|
(v) => ye(v, l) && y(v)
|
|
1038
1049
|
);
|
|
1039
1050
|
return S || (u.find((v) => ye(v, l)) ?? null);
|
|
1040
|
-
}, [p, t, u, l, y]),
|
|
1051
|
+
}, [p, t, u, l, y]), A = ae(
|
|
1041
1052
|
(S, v) => {
|
|
1042
1053
|
let r = null;
|
|
1043
1054
|
switch (S.key) {
|
|
@@ -1094,7 +1105,7 @@ function et({
|
|
|
1094
1105
|
intent: "ghost",
|
|
1095
1106
|
flipIconInRtl: !0,
|
|
1096
1107
|
onClick: () => {
|
|
1097
|
-
d((S) =>
|
|
1108
|
+
d((S) => oa(S)), h(null);
|
|
1098
1109
|
}
|
|
1099
1110
|
}
|
|
1100
1111
|
),
|
|
@@ -1171,8 +1182,8 @@ function et({
|
|
|
1171
1182
|
onClick: () => {
|
|
1172
1183
|
N && s(Be(r));
|
|
1173
1184
|
},
|
|
1174
|
-
onKeyDown: (z) =>
|
|
1175
|
-
className:
|
|
1185
|
+
onKeyDown: (z) => A(z, r),
|
|
1186
|
+
className: wa({ state: B }),
|
|
1176
1187
|
children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: r.getDate() })
|
|
1177
1188
|
},
|
|
1178
1189
|
`mg-cell-${M}`
|
|
@@ -1186,7 +1197,7 @@ function et({
|
|
|
1186
1197
|
)
|
|
1187
1198
|
] });
|
|
1188
1199
|
}
|
|
1189
|
-
const
|
|
1200
|
+
const Ca = Ie(
|
|
1190
1201
|
[
|
|
1191
1202
|
"ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
|
|
1192
1203
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1212,7 +1223,7 @@ const wa = Ie(
|
|
|
1212
1223
|
defaultVariants: { state: "idle" }
|
|
1213
1224
|
}
|
|
1214
1225
|
);
|
|
1215
|
-
function
|
|
1226
|
+
function Ma({
|
|
1216
1227
|
services: e,
|
|
1217
1228
|
selectedServiceId: t,
|
|
1218
1229
|
onSelect: s
|
|
@@ -1275,7 +1286,7 @@ function Ca({
|
|
|
1275
1286
|
const x = t === h.id, g = o === u, k = i("booking.serviceCardLabel", {
|
|
1276
1287
|
label: h.label,
|
|
1277
1288
|
duration: h.durationMin
|
|
1278
|
-
}), y =
|
|
1289
|
+
}), y = Na(h);
|
|
1279
1290
|
return /* @__PURE__ */ f(
|
|
1280
1291
|
"button",
|
|
1281
1292
|
{
|
|
@@ -1290,7 +1301,7 @@ function Ca({
|
|
|
1290
1301
|
onClick: () => s(h.id),
|
|
1291
1302
|
onFocus: () => c(u),
|
|
1292
1303
|
onKeyDown: (w) => p(w, u, h.id),
|
|
1293
|
-
className:
|
|
1304
|
+
className: Ca({
|
|
1294
1305
|
state: x ? "selected" : "idle"
|
|
1295
1306
|
}),
|
|
1296
1307
|
children: [
|
|
@@ -1314,7 +1325,7 @@ function Ca({
|
|
|
1314
1325
|
}
|
|
1315
1326
|
);
|
|
1316
1327
|
}
|
|
1317
|
-
const
|
|
1328
|
+
const Da = Ie(
|
|
1318
1329
|
[
|
|
1319
1330
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
|
|
1320
1331
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1340,13 +1351,13 @@ const Ma = Ie(
|
|
|
1340
1351
|
defaultVariants: { state: "idle" }
|
|
1341
1352
|
}
|
|
1342
1353
|
);
|
|
1343
|
-
function
|
|
1354
|
+
function Ta(e) {
|
|
1344
1355
|
const [t] = e.split(":").map((i) => parseInt(i, 10)), s = Number.isFinite(t) ? t : 0;
|
|
1345
1356
|
return s < 12 ? "morning" : s < 17 ? "afternoon" : "evening";
|
|
1346
1357
|
}
|
|
1347
|
-
const
|
|
1358
|
+
const _a = {
|
|
1348
1359
|
morning: Dt,
|
|
1349
|
-
afternoon:
|
|
1360
|
+
afternoon: ia,
|
|
1350
1361
|
evening: Mt
|
|
1351
1362
|
};
|
|
1352
1363
|
function tt({
|
|
@@ -1374,7 +1385,7 @@ function tt({
|
|
|
1374
1385
|
evening: []
|
|
1375
1386
|
};
|
|
1376
1387
|
for (const x of t)
|
|
1377
|
-
u[
|
|
1388
|
+
u[Ta(x.time)].push(x);
|
|
1378
1389
|
return u;
|
|
1379
1390
|
}, [t]), p = t.filter((u) => u.available).length, h = ["morning", "afternoon", "evening"];
|
|
1380
1391
|
return n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -1391,7 +1402,7 @@ function tt({
|
|
|
1391
1402
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1392
1403
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1393
1404
|
/* @__PURE__ */ a(
|
|
1394
|
-
|
|
1405
|
+
Kt,
|
|
1395
1406
|
{
|
|
1396
1407
|
"aria-hidden": "true",
|
|
1397
1408
|
className: "ds:size-4 ds:text-[color:var(--accent)]"
|
|
@@ -1404,7 +1415,7 @@ function tt({
|
|
|
1404
1415
|
h.map((u) => {
|
|
1405
1416
|
const x = d[u];
|
|
1406
1417
|
if (x.length === 0) return null;
|
|
1407
|
-
const g =
|
|
1418
|
+
const g = _a[u];
|
|
1408
1419
|
return /* @__PURE__ */ f(
|
|
1409
1420
|
"div",
|
|
1410
1421
|
{
|
|
@@ -1433,7 +1444,7 @@ function tt({
|
|
|
1433
1444
|
time: k.time
|
|
1434
1445
|
}),
|
|
1435
1446
|
onClick: () => k.available && i(k),
|
|
1436
|
-
className:
|
|
1447
|
+
className: Da({ state: w }),
|
|
1437
1448
|
children: k.time
|
|
1438
1449
|
},
|
|
1439
1450
|
k.key
|
|
@@ -1514,7 +1525,7 @@ function it({ services: e, value: t, onChange: s, compact: i }) {
|
|
|
1514
1525
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1515
1526
|
/* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: n("booking.service.heading") }),
|
|
1516
1527
|
/* @__PURE__ */ a(
|
|
1517
|
-
|
|
1528
|
+
Ma,
|
|
1518
1529
|
{
|
|
1519
1530
|
services: e,
|
|
1520
1531
|
selectedServiceId: t,
|
|
@@ -1582,7 +1593,7 @@ function Aa({
|
|
|
1582
1593
|
onModify: d
|
|
1583
1594
|
}) {
|
|
1584
1595
|
const { t: p } = T(), u = (e.details.confirmationChannels ?? ["email"]).map(
|
|
1585
|
-
(
|
|
1596
|
+
(A) => p(`booking.confirmation.channel.${A}`)
|
|
1586
1597
|
), x = o === "demo" ? p("booking.success.descriptionDemo") : u.length > 1 ? p("booking.success.descriptionMultiple", {
|
|
1587
1598
|
channels: u.join(" · ")
|
|
1588
1599
|
}) : p("booking.success.descriptionSingle", { channel: u[0] }), g = I(() => {
|
|
@@ -1596,7 +1607,7 @@ function Aa({
|
|
|
1596
1607
|
} catch {
|
|
1597
1608
|
return e.date;
|
|
1598
1609
|
}
|
|
1599
|
-
}, [e.date, n]), k = e.operatorId ? t.find((
|
|
1610
|
+
}, [e.date, n]), k = e.operatorId ? t.find((A) => A.id === e.operatorId) : void 0, y = e.specialtyId ? s.find((A) => A.id === e.specialtyId) : void 0, w = e.serviceId ? i.find((A) => A.id === e.serviceId) : void 0;
|
|
1600
1611
|
return /* @__PURE__ */ f(
|
|
1601
1612
|
"div",
|
|
1602
1613
|
{
|
|
@@ -1646,7 +1657,7 @@ function dt({ customSlot: e }) {
|
|
|
1646
1657
|
}
|
|
1647
1658
|
);
|
|
1648
1659
|
}
|
|
1649
|
-
function
|
|
1660
|
+
function Ba(e) {
|
|
1650
1661
|
const {
|
|
1651
1662
|
cascade: t,
|
|
1652
1663
|
inputs: s,
|
|
@@ -1854,7 +1865,7 @@ function Ve() {
|
|
|
1854
1865
|
[e]
|
|
1855
1866
|
);
|
|
1856
1867
|
}
|
|
1857
|
-
function
|
|
1868
|
+
function Oa(e) {
|
|
1858
1869
|
const { cascade: t, value: s, activeStep: i, setActiveStep: n } = e, o = Ve(), c = I(
|
|
1859
1870
|
() => t.visibleSteps.map((d) => ({
|
|
1860
1871
|
label: o[d],
|
|
@@ -1926,7 +1937,7 @@ function lt(e, t, s) {
|
|
|
1926
1937
|
return;
|
|
1927
1938
|
}
|
|
1928
1939
|
}
|
|
1929
|
-
function
|
|
1940
|
+
function Ea(e) {
|
|
1930
1941
|
const { cascade: t, value: s, setActiveStep: i } = e, { t: n } = T(), o = Ve(), c = t.visibleSteps.filter(
|
|
1931
1942
|
(d) => d === 1 || d === 2 || d === 3 || d === 4
|
|
1932
1943
|
), l = c.some(
|
|
@@ -1965,7 +1976,7 @@ function Oa(e) {
|
|
|
1965
1976
|
t.gates.details ? /* @__PURE__ */ a("div", { children: K(7, e) }) : null
|
|
1966
1977
|
] });
|
|
1967
1978
|
}
|
|
1968
|
-
function
|
|
1979
|
+
function Pa(e) {
|
|
1969
1980
|
const { cascade: t } = e, s = t.visibleSteps.filter(
|
|
1970
1981
|
(i) => i === 1 || i === 2 || i === 3 || i === 4
|
|
1971
1982
|
);
|
|
@@ -1980,7 +1991,7 @@ function Ea(e) {
|
|
|
1980
1991
|
t.gates.details ? K(7, e) : null
|
|
1981
1992
|
] });
|
|
1982
1993
|
}
|
|
1983
|
-
function
|
|
1994
|
+
function Va(e) {
|
|
1984
1995
|
const { cascade: t, value: s, activeStep: i, setActiveStep: n } = e, { t: o } = T(), c = Ve(), l = t.visibleSteps, d = Math.max(0, l.indexOf(i)), p = l.length, h = I(
|
|
1985
1996
|
() => l.map((g) => ({ label: c[g] })),
|
|
1986
1997
|
[l, c]
|
|
@@ -2018,7 +2029,7 @@ function Pa(e) {
|
|
|
2018
2029
|
] })
|
|
2019
2030
|
] });
|
|
2020
2031
|
}
|
|
2021
|
-
const
|
|
2032
|
+
const Ra = [], La = [], Fa = qe(
|
|
2022
2033
|
({
|
|
2023
2034
|
variant: e = "inline-list",
|
|
2024
2035
|
country: t,
|
|
@@ -2040,7 +2051,7 @@ const Va = [], Ra = [], La = qe(
|
|
|
2040
2051
|
requireInsuranceNumber: k,
|
|
2041
2052
|
showNote: y,
|
|
2042
2053
|
showReturningPatientFlag: w,
|
|
2043
|
-
privacyPolicyUrl:
|
|
2054
|
+
privacyPolicyUrl: A,
|
|
2044
2055
|
termsUrl: S,
|
|
2045
2056
|
validateCodiceFiscale: v,
|
|
2046
2057
|
validateInsuranceNumber: r,
|
|
@@ -2063,9 +2074,9 @@ const Va = [], Ra = [], La = qe(
|
|
|
2063
2074
|
className: X,
|
|
2064
2075
|
...de
|
|
2065
2076
|
}, le) => {
|
|
2066
|
-
const { t: ce, i18n: Ce } = T(), V = e ?? "inline-list", W = Ce.language ?? "en", $ = c ??
|
|
2077
|
+
const { t: ce, i18n: Ce } = T(), V = e ?? "inline-list", W = Ce.language ?? "en", $ = c ?? Ra, q = d ?? La;
|
|
2067
2078
|
Q(() => {
|
|
2068
|
-
const R =
|
|
2079
|
+
const R = fa(b, {
|
|
2069
2080
|
useSpecialties: s,
|
|
2070
2081
|
lockedOperatorId: n,
|
|
2071
2082
|
autoSelectSingleService: o,
|
|
@@ -2080,8 +2091,8 @@ const Va = [], Ra = [], La = qe(
|
|
|
2080
2091
|
$,
|
|
2081
2092
|
l
|
|
2082
2093
|
]);
|
|
2083
|
-
const
|
|
2084
|
-
() =>
|
|
2094
|
+
const _ = I(
|
|
2095
|
+
() => ga({
|
|
2085
2096
|
country: t,
|
|
2086
2097
|
useSpecialties: s,
|
|
2087
2098
|
allowOperatorSelection: i,
|
|
@@ -2106,16 +2117,16 @@ const Va = [], Ra = [], La = qe(
|
|
|
2106
2117
|
b
|
|
2107
2118
|
]
|
|
2108
2119
|
), [me, m] = H(
|
|
2109
|
-
|
|
2110
|
-
), C = te(
|
|
2120
|
+
_.currentStep
|
|
2121
|
+
), C = te(_.currentStep);
|
|
2111
2122
|
Q(() => {
|
|
2112
|
-
|
|
2113
|
-
}, [
|
|
2123
|
+
_.currentStep > C.current && m(_.currentStep), C.current = _.currentStep;
|
|
2124
|
+
}, [_.currentStep]);
|
|
2114
2125
|
const [U, ue] = H("idle"), [Me, De] = H(null), Re = ae(
|
|
2115
2126
|
async (R) => {
|
|
2116
|
-
if (!
|
|
2117
|
-
const
|
|
2118
|
-
slot:
|
|
2127
|
+
if (!_.selectedSlot) return;
|
|
2128
|
+
const _e = {
|
|
2129
|
+
slot: _.selectedSlot,
|
|
2119
2130
|
value: {
|
|
2120
2131
|
...b,
|
|
2121
2132
|
details: R,
|
|
@@ -2125,8 +2136,8 @@ const Va = [], Ra = [], La = qe(
|
|
|
2125
2136
|
};
|
|
2126
2137
|
ue("submitting");
|
|
2127
2138
|
try {
|
|
2128
|
-
await F(
|
|
2129
|
-
slot:
|
|
2139
|
+
await F(_e), De({
|
|
2140
|
+
slot: _.selectedSlot,
|
|
2130
2141
|
details: R,
|
|
2131
2142
|
specialtyId: b.specialtyId,
|
|
2132
2143
|
serviceId: b.serviceId,
|
|
@@ -2138,10 +2149,10 @@ const Va = [], Ra = [], La = qe(
|
|
|
2138
2149
|
throw ue("error"), new Error("Booking submission failed");
|
|
2139
2150
|
}
|
|
2140
2151
|
},
|
|
2141
|
-
[
|
|
2152
|
+
[_.selectedSlot, F, b]
|
|
2142
2153
|
), pe = te(null);
|
|
2143
2154
|
pt(le, () => pe.current, []);
|
|
2144
|
-
const ge = U === "success" ? 8 :
|
|
2155
|
+
const ge = U === "success" ? 8 : _.currentStep, Le = te(null);
|
|
2145
2156
|
Q(() => {
|
|
2146
2157
|
if (ge !== Le.current && (Le.current = ge, B == null || B(ge), ge === 8 && pe.current))
|
|
2147
2158
|
try {
|
|
@@ -2165,7 +2176,7 @@ const Va = [], Ra = [], La = qe(
|
|
|
2165
2176
|
}),
|
|
2166
2177
|
[V, N]
|
|
2167
2178
|
);
|
|
2168
|
-
ft(
|
|
2179
|
+
ft(ra, Te, re);
|
|
2169
2180
|
const ct = ne ?? ce("booking.regionLabel"), mt = I(() => U !== "success" || !Me ? null : /* @__PURE__ */ a(
|
|
2170
2181
|
Aa,
|
|
2171
2182
|
{
|
|
@@ -2193,8 +2204,8 @@ const Va = [], Ra = [], La = qe(
|
|
|
2193
2204
|
Te
|
|
2194
2205
|
]), ut = I(() => {
|
|
2195
2206
|
if (U === "success") return null;
|
|
2196
|
-
const R = V === "accordion" ?
|
|
2197
|
-
cascade:
|
|
2207
|
+
const R = V === "accordion" ? Oa : V === "calendar" ? Ea : V === "flexible" ? Pa : V === "progress" ? Va : Ba, _e = {
|
|
2208
|
+
cascade: _,
|
|
2198
2209
|
inputs: {
|
|
2199
2210
|
specialties: $,
|
|
2200
2211
|
services: l,
|
|
@@ -2214,7 +2225,7 @@ const Va = [], Ra = [], La = qe(
|
|
|
2214
2225
|
insuranceType: b.insuranceType,
|
|
2215
2226
|
showNote: y,
|
|
2216
2227
|
showReturningPatientFlag: w,
|
|
2217
|
-
privacyPolicyUrl:
|
|
2228
|
+
privacyPolicyUrl: A,
|
|
2218
2229
|
termsUrl: S,
|
|
2219
2230
|
validateCodiceFiscale: v,
|
|
2220
2231
|
validateInsuranceNumber: r,
|
|
@@ -2230,11 +2241,11 @@ const Va = [], Ra = [], La = qe(
|
|
|
2230
2241
|
activeStep: me,
|
|
2231
2242
|
setActiveStep: m
|
|
2232
2243
|
};
|
|
2233
|
-
return /* @__PURE__ */ a(R, { ...
|
|
2244
|
+
return /* @__PURE__ */ a(R, { ..._e });
|
|
2234
2245
|
}, [
|
|
2235
2246
|
U,
|
|
2236
2247
|
V,
|
|
2237
|
-
|
|
2248
|
+
_,
|
|
2238
2249
|
$,
|
|
2239
2250
|
l,
|
|
2240
2251
|
q,
|
|
@@ -2252,7 +2263,7 @@ const Va = [], Ra = [], La = qe(
|
|
|
2252
2263
|
z,
|
|
2253
2264
|
y,
|
|
2254
2265
|
w,
|
|
2255
|
-
|
|
2266
|
+
A,
|
|
2256
2267
|
S,
|
|
2257
2268
|
v,
|
|
2258
2269
|
r,
|
|
@@ -2275,7 +2286,7 @@ const Va = [], Ra = [], La = qe(
|
|
|
2275
2286
|
"data-component": "booking",
|
|
2276
2287
|
"data-component-id": re,
|
|
2277
2288
|
"data-variant": V,
|
|
2278
|
-
className:
|
|
2289
|
+
className: ka({
|
|
2279
2290
|
variant: V,
|
|
2280
2291
|
surface: ie,
|
|
2281
2292
|
className: X
|
|
@@ -2307,11 +2318,11 @@ const Va = [], Ra = [], La = qe(
|
|
|
2307
2318
|
);
|
|
2308
2319
|
}
|
|
2309
2320
|
);
|
|
2310
|
-
|
|
2321
|
+
Fa.displayName = "Booking";
|
|
2311
2322
|
export {
|
|
2312
|
-
|
|
2323
|
+
Fa as B,
|
|
2313
2324
|
Oe as C,
|
|
2314
2325
|
he as O,
|
|
2315
|
-
|
|
2326
|
+
ra as b
|
|
2316
2327
|
};
|
|
2317
|
-
//# sourceMappingURL=booking-
|
|
2328
|
+
//# sourceMappingURL=booking-A4o9xI2n.js.map
|