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