@alfadocs/ui-kit-debug 1.4.17 → 1.6.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-CGKof8QU.js → booking-D84O6H2X.js} +553 -546
- package/dist/_chunks/booking-D84O6H2X.js.map +1 -0
- package/dist/_chunks/{care-plan-card-C83Hb9EE.js → care-plan-card-CehAU7F_.js} +2 -2
- package/dist/_chunks/{care-plan-card-C83Hb9EE.js.map → care-plan-card-CehAU7F_.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-CHMPSTCz.js → care-plan-entry-card-ChWRMfMw.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CHMPSTCz.js.map → care-plan-entry-card-ChWRMfMw.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-brakjj0s.js → periodontal-chart-C0nNQKKK.js} +121 -121
- package/dist/_chunks/{periodontal-chart-brakjj0s.js.map → periodontal-chart-C0nNQKKK.js.map} +1 -1
- package/dist/_chunks/practice-profile-hero-Bdd0bFqC.js +187 -0
- package/dist/_chunks/practice-profile-hero-Bdd0bFqC.js.map +1 -0
- package/dist/_chunks/{practice-results-DWUZRm2x.js → practice-results-CKoLD_x5.js} +220 -206
- package/dist/_chunks/practice-results-CKoLD_x5.js.map +1 -0
- package/dist/_chunks/tooth-data-DR8Kdnup.js +903 -0
- package/dist/_chunks/tooth-data-DR8Kdnup.js.map +1 -0
- package/dist/_chunks/tooth-finding-palette-vqC-D2Ye.js +708 -0
- package/dist/_chunks/tooth-finding-palette-vqC-D2Ye.js.map +1 -0
- package/dist/_chunks/tooth-scheme-BPXE1_3N.js +2051 -0
- package/dist/_chunks/tooth-scheme-BPXE1_3N.js.map +1 -0
- package/dist/agent-catalog.json +497 -56
- package/dist/agent-i18n/en.json +29 -11
- package/dist/components/booking/booking-types.d.ts +9 -0
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.d.ts +4 -0
- package/dist/components/practice-profile-hero/index.d.ts.map +1 -0
- package/dist/components/practice-profile-hero/index.js +6 -0
- package/dist/components/practice-profile-hero/index.js.map +1 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.agent.d.ts +4 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.agent.d.ts.map +1 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +60 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +15 -1
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/tooth-finding-palette/index.d.ts +4 -0
- package/dist/components/tooth-finding-palette/index.d.ts.map +1 -0
- package/dist/components/tooth-finding-palette/index.js +9 -0
- package/dist/components/tooth-finding-palette/index.js.map +1 -0
- package/dist/components/tooth-finding-palette/tooth-finding-palette.agent.d.ts +4 -0
- package/dist/components/tooth-finding-palette/tooth-finding-palette.agent.d.ts.map +1 -0
- package/dist/components/tooth-finding-palette/tooth-finding-palette.d.ts +89 -0
- package/dist/components/tooth-finding-palette/tooth-finding-palette.d.ts.map +1 -0
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +57 -30
- package/dist/components/tooth-scheme/tooth-data.d.ts +279 -10
- package/dist/components/tooth-scheme/tooth-data.d.ts.map +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts.map +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +30 -3
- package/dist/components/tooth-scheme/tooth-scheme.d.ts.map +1 -1
- package/dist/host-compat.css +1 -4
- package/dist/i18n/locales/ar.d.ts +41 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +42 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +41 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +42 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +41 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +42 -2
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +41 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +42 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +41 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +42 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +41 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +42 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +41 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +42 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +41 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +42 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +41 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +42 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +41 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +42 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +41 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +42 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +41 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +42 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +41 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +42 -2
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +41 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +42 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +41 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +42 -2
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +41 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +42 -2
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +41 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +42 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +41 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +42 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +561 -525
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +42 -2
- package/dist/locales/de.json +42 -2
- package/dist/locales/el.json +42 -2
- package/dist/locales/en.json +42 -2
- package/dist/locales/es.json +42 -2
- package/dist/locales/fr.json +42 -2
- package/dist/locales/hi.json +42 -2
- package/dist/locales/it.json +42 -2
- package/dist/locales/ja.json +42 -2
- package/dist/locales/nl.json +42 -2
- package/dist/locales/pl.json +42 -2
- package/dist/locales/pt.json +42 -2
- package/dist/locales/ro.json +42 -2
- package/dist/locales/ru.json +42 -2
- package/dist/locales/sq.json +42 -2
- package/dist/locales/sv.json +42 -2
- package/dist/locales/tr.json +42 -2
- package/dist/locales/zh.json +42 -2
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/booking-CGKof8QU.js.map +0 -1
- package/dist/_chunks/practice-results-DWUZRm2x.js.map +0 -1
- package/dist/_chunks/tooth-data-BwuoKFf4.js +0 -660
- package/dist/_chunks/tooth-data-BwuoKFf4.js.map +0 -1
- package/dist/_chunks/tooth-scheme-s0ipC0-Z.js +0 -1483
- package/dist/_chunks/tooth-scheme-s0ipC0-Z.js.map +0 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { jsxs as f, jsx as
|
|
2
|
-
import { forwardRef as ot, useId as rt, useState as q, useCallback as H, useRef as ie, useEffect as U, useMemo as
|
|
1
|
+
import { jsxs as f, jsx as s, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ot, useId as rt, useState as q, useCallback as H, useRef as ie, useEffect as U, useMemo as C, useImperativeHandle as Pt } from "react";
|
|
3
3
|
import { c as Pe } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as B, Trans as
|
|
5
|
-
import { u as
|
|
4
|
+
import { useTranslation as B, Trans as Bt } from "react-i18next";
|
|
5
|
+
import { u as Ot } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { A as j } from "./alert-CiJT540z.js";
|
|
7
7
|
import { B as ne } from "./button-BvNtqHAS.js";
|
|
8
8
|
import { C as Ke } from "./checkbox-BuZ1u__2.js";
|
|
9
|
-
import { C as
|
|
10
|
-
import { D as
|
|
9
|
+
import { C as Et } from "./checkbox-group-CfqMv57d.js";
|
|
10
|
+
import { D as Lt } from "./date-picker-Bp64zk2p.js";
|
|
11
11
|
import { E as Rt } from "./email-input-Dpe63k0K.js";
|
|
12
12
|
import { F as W } from "./form-field-CahJzTxp.js";
|
|
13
13
|
import { P as Vt } from "./phone-input-BsZIoE36.js";
|
|
14
|
-
import { T as
|
|
14
|
+
import { T as Ft } from "./text-area-Bt3p7Pt0.js";
|
|
15
15
|
import { T as Ce } from "./text-input-CUvCb6ST.js";
|
|
16
|
-
import { S as
|
|
16
|
+
import { S as $t } from "./spinner-hbwuKwMf.js";
|
|
17
17
|
import { I as tt } from "./icon-button-9c9Gp41m.js";
|
|
18
18
|
import { S as Be } from "./select-BW5ecXlX.js";
|
|
19
19
|
import { C as Ge } from "./combobox-DiMLItyu.js";
|
|
20
20
|
import { M as Ue } from "./multi-select-DqL4o0qV.js";
|
|
21
21
|
import { S as _e } from "./skeleton-CZbwyJAA.js";
|
|
22
22
|
import { E as dt } from "./empty-state-Df0tM6Kn.js";
|
|
23
|
-
import { S as
|
|
24
|
-
import { S as
|
|
25
|
-
import { S as
|
|
23
|
+
import { S as zt } from "./stepper-accordion-BeVMZPuG.js";
|
|
24
|
+
import { S as Kt } from "./stepper-progress-Bv0njx4g.js";
|
|
25
|
+
import { S as jt } from "./slot-grid-P_e9p5t5.js";
|
|
26
26
|
import { p as $ } from "./parseISO-fOGpHKXm.js";
|
|
27
|
-
import { l as le, f as Te, b as
|
|
28
|
-
import { w as lt, c as ce, a as je, i as
|
|
29
|
-
import { s as
|
|
30
|
-
import { C as
|
|
31
|
-
import { C as
|
|
27
|
+
import { l as le, f as Te, b as at } from "./format-4HNwNGrN.js";
|
|
28
|
+
import { w as lt, c as ce, a as je, i as qt, s as ye, l as Ht, x as De } from "./date-picker-variants-pKAJfnWr.js";
|
|
29
|
+
import { s as Gt } from "./subDays-CAUv47M1.js";
|
|
30
|
+
import { C as Ut } from "./chevron-left-B8cOyH-V.js";
|
|
31
|
+
import { C as Yt } from "./chevron-right-I9AeSxH2.js";
|
|
32
32
|
import { c as z } from "./createLucideIcon-DhHxpK9K.js";
|
|
33
|
-
import { M as
|
|
34
|
-
import { S as
|
|
35
|
-
import { H as
|
|
36
|
-
import { E as
|
|
37
|
-
import { S as
|
|
38
|
-
import { A as
|
|
39
|
-
import { C as
|
|
33
|
+
import { M as Jt, S as Zt } from "./sun-Bj9Mr553.js";
|
|
34
|
+
import { S as Wt } from "./stethoscope-sZXGC43m.js";
|
|
35
|
+
import { H as Xt } from "./heart-pulse-BCppJyN2.js";
|
|
36
|
+
import { E as Qt } from "./eye-BjhN2nYf.js";
|
|
37
|
+
import { S as ea } from "./scan-line-CNseIHQ0.js";
|
|
38
|
+
import { A as ta } from "./astroid-BN4f5VXU.js";
|
|
39
|
+
import { C as aa } from "./clipboard-check-BeAGxDVT.js";
|
|
40
40
|
/**
|
|
41
41
|
* @license lucide-react v1.22.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
const
|
|
46
|
+
const sa = [
|
|
47
47
|
[
|
|
48
48
|
"path",
|
|
49
49
|
{
|
|
@@ -51,14 +51,14 @@ const ss = [
|
|
|
51
51
|
key: "169zse"
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
|
-
],
|
|
54
|
+
], ia = z("activity", sa);
|
|
55
55
|
/**
|
|
56
56
|
* @license lucide-react v1.22.0 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
60
|
*/
|
|
61
|
-
const
|
|
61
|
+
const na = [
|
|
62
62
|
["path", { d: "M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5", key: "1u7htd" }],
|
|
63
63
|
["path", { d: "M15 12h.01", key: "1k8ypt" }],
|
|
64
64
|
[
|
|
@@ -69,14 +69,14 @@ const is = [
|
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
["path", { d: "M9 12h.01", key: "157uk2" }]
|
|
72
|
-
],
|
|
72
|
+
], oa = z("baby", na);
|
|
73
73
|
/**
|
|
74
74
|
* @license lucide-react v1.22.0 - ISC
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the ISC license.
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
78
|
*/
|
|
79
|
-
const
|
|
79
|
+
const ra = [
|
|
80
80
|
[
|
|
81
81
|
"path",
|
|
82
82
|
{
|
|
@@ -84,14 +84,14 @@ const os = [
|
|
|
84
84
|
key: "w610uw"
|
|
85
85
|
}
|
|
86
86
|
]
|
|
87
|
-
],
|
|
87
|
+
], da = z("bone", ra);
|
|
88
88
|
/**
|
|
89
89
|
* @license lucide-react v1.22.0 - ISC
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the ISC license.
|
|
92
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
93
|
*/
|
|
94
|
-
const
|
|
94
|
+
const la = [
|
|
95
95
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
96
96
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
97
97
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -100,14 +100,14 @@ const ds = [
|
|
|
100
100
|
["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
|
|
101
101
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
102
102
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
103
|
-
],
|
|
103
|
+
], ca = z("brain", la);
|
|
104
104
|
/**
|
|
105
105
|
* @license lucide-react v1.22.0 - ISC
|
|
106
106
|
*
|
|
107
107
|
* This source code is licensed under the ISC license.
|
|
108
108
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
109
|
*/
|
|
110
|
-
const
|
|
110
|
+
const ua = [
|
|
111
111
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
112
112
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
113
113
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
@@ -116,76 +116,76 @@ const cs = [
|
|
|
116
116
|
["path", { d: "M13 18H7", key: "bb0bb7" }],
|
|
117
117
|
["path", { d: "M7 14h.01", key: "1qa3f1" }],
|
|
118
118
|
["path", { d: "M17 18h.01", key: "1bdyru" }]
|
|
119
|
-
],
|
|
119
|
+
], pa = z("calendar-range", ua);
|
|
120
120
|
/**
|
|
121
121
|
* @license lucide-react v1.22.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
125
|
*/
|
|
126
|
-
const
|
|
126
|
+
const ma = [
|
|
127
127
|
["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" }],
|
|
128
128
|
["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
|
|
129
|
-
],
|
|
129
|
+
], ga = z("ear", ma);
|
|
130
130
|
/**
|
|
131
131
|
* @license lucide-react v1.22.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
135
|
*/
|
|
136
|
-
const
|
|
136
|
+
const fa = [
|
|
137
137
|
["path", { d: "M6 18h8", key: "1borvv" }],
|
|
138
138
|
["path", { d: "M3 22h18", key: "8prr45" }],
|
|
139
139
|
["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
|
|
140
140
|
["path", { d: "M9 14h2", key: "197e7h" }],
|
|
141
141
|
["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
|
|
142
142
|
["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
|
|
143
|
-
],
|
|
143
|
+
], ha = z("microscope", fa);
|
|
144
144
|
/**
|
|
145
145
|
* @license lucide-react v1.22.0 - ISC
|
|
146
146
|
*
|
|
147
147
|
* This source code is licensed under the ISC license.
|
|
148
148
|
* See the LICENSE file in the root directory of this source tree.
|
|
149
149
|
*/
|
|
150
|
-
const
|
|
150
|
+
const va = [
|
|
151
151
|
[
|
|
152
152
|
"path",
|
|
153
153
|
{ 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" }
|
|
154
154
|
],
|
|
155
155
|
["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
|
|
156
|
-
],
|
|
156
|
+
], ba = z("pill", va);
|
|
157
157
|
/**
|
|
158
158
|
* @license lucide-react v1.22.0 - ISC
|
|
159
159
|
*
|
|
160
160
|
* This source code is licensed under the ISC license.
|
|
161
161
|
* See the LICENSE file in the root directory of this source tree.
|
|
162
162
|
*/
|
|
163
|
-
const
|
|
163
|
+
const ya = [
|
|
164
164
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
165
165
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
166
166
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
167
167
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
168
168
|
["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
|
|
169
|
-
],
|
|
169
|
+
], ka = z("scissors", ya);
|
|
170
170
|
/**
|
|
171
171
|
* @license lucide-react v1.22.0 - ISC
|
|
172
172
|
*
|
|
173
173
|
* This source code is licensed under the ISC license.
|
|
174
174
|
* See the LICENSE file in the root directory of this source tree.
|
|
175
175
|
*/
|
|
176
|
-
const
|
|
176
|
+
const xa = [
|
|
177
177
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
178
178
|
["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
|
|
179
179
|
["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
|
|
180
180
|
["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
|
|
181
|
-
],
|
|
181
|
+
], Sa = z("smile", xa);
|
|
182
182
|
/**
|
|
183
183
|
* @license lucide-react v1.22.0 - ISC
|
|
184
184
|
*
|
|
185
185
|
* This source code is licensed under the ISC license.
|
|
186
186
|
* See the LICENSE file in the root directory of this source tree.
|
|
187
187
|
*/
|
|
188
|
-
const
|
|
188
|
+
const Ia = [
|
|
189
189
|
["path", { d: "M12 10V2", key: "16sf7g" }],
|
|
190
190
|
["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
|
|
191
191
|
["path", { d: "M2 18h2", key: "j10viu" }],
|
|
@@ -194,25 +194,25 @@ const Ss = [
|
|
|
194
194
|
["path", { d: "M22 22H2", key: "19qnx5" }],
|
|
195
195
|
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
|
|
196
196
|
["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
|
|
197
|
-
],
|
|
197
|
+
], Na = z("sunset", Ia);
|
|
198
198
|
/**
|
|
199
199
|
* @license lucide-react v1.22.0 - ISC
|
|
200
200
|
*
|
|
201
201
|
* This source code is licensed under the ISC license.
|
|
202
202
|
* See the LICENSE file in the root directory of this source tree.
|
|
203
203
|
*/
|
|
204
|
-
const
|
|
204
|
+
const wa = [
|
|
205
205
|
["path", { d: "m18 2 4 4", key: "22kx64" }],
|
|
206
206
|
["path", { d: "m17 7 3-3", key: "1w1zoj" }],
|
|
207
207
|
["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" }],
|
|
208
208
|
["path", { d: "m9 11 4 4", key: "rovt3i" }],
|
|
209
209
|
["path", { d: "m5 19-3 3", key: "59f2uf" }],
|
|
210
210
|
["path", { d: "m14 4 6 6", key: "yqp9t2" }]
|
|
211
|
-
],
|
|
212
|
-
function
|
|
213
|
-
return lt(e, -1,
|
|
211
|
+
], st = z("syringe", wa);
|
|
212
|
+
function Ca(e, t, a) {
|
|
213
|
+
return lt(e, -1, a);
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const Da = {
|
|
216
216
|
id: "booking",
|
|
217
217
|
// `view_change` removed (0.69): the layout `variant` is a fixed prop — the
|
|
218
218
|
// handle exposes only `getVariant` (state), no action mutates it. The flow's
|
|
@@ -281,19 +281,19 @@ const Cs = {
|
|
|
281
281
|
"email",
|
|
282
282
|
"whatsapp",
|
|
283
283
|
"sms"
|
|
284
|
-
], Q = "all",
|
|
285
|
-
function
|
|
284
|
+
], Q = "all", Ma = "de";
|
|
285
|
+
function Aa(e) {
|
|
286
286
|
return [...e.lockedOperatorId ? e.specialties.filter(
|
|
287
|
-
(
|
|
287
|
+
(a) => {
|
|
288
288
|
var i;
|
|
289
|
-
return (i =
|
|
289
|
+
return (i = a.operatorIds) == null ? void 0 : i.includes(e.lockedOperatorId);
|
|
290
290
|
}
|
|
291
|
-
) : e.specialties].sort((
|
|
292
|
-
const n =
|
|
291
|
+
) : e.specialties].sort((a, i) => {
|
|
292
|
+
const n = a.sequenceNumber ?? Number.POSITIVE_INFINITY, o = i.sequenceNumber ?? Number.POSITIVE_INFINITY;
|
|
293
293
|
return n - o;
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Ta(e) {
|
|
297
297
|
let t = e.services;
|
|
298
298
|
if (e.lockedOperatorId && (t = t.filter(
|
|
299
299
|
(i) => {
|
|
@@ -308,46 +308,46 @@ function As(e) {
|
|
|
308
308
|
}
|
|
309
309
|
return t;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function _a(e) {
|
|
312
312
|
const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties;
|
|
313
313
|
if (t) {
|
|
314
|
-
const
|
|
315
|
-
if (
|
|
314
|
+
const a = ue(e.value);
|
|
315
|
+
if (a.length > 0)
|
|
316
316
|
return e.operators.filter(
|
|
317
317
|
(i) => {
|
|
318
318
|
var n;
|
|
319
|
-
return (n = i.specialtyIds) == null ? void 0 : n.some((o) =>
|
|
319
|
+
return (n = i.specialtyIds) == null ? void 0 : n.some((o) => a.includes(o));
|
|
320
320
|
}
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
if (!t) {
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
324
|
+
const a = Oe(e.value);
|
|
325
|
+
if (a.length > 0)
|
|
326
326
|
return e.operators.filter(
|
|
327
327
|
(i) => {
|
|
328
328
|
var n;
|
|
329
|
-
return (n = i.appointmentBookingReasonIds) == null ? void 0 : n.some((o) =>
|
|
329
|
+
return (n = i.appointmentBookingReasonIds) == null ? void 0 : n.some((o) => a.includes(o));
|
|
330
330
|
}
|
|
331
331
|
);
|
|
332
332
|
}
|
|
333
333
|
return [];
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
const
|
|
335
|
+
function Pa(e, t) {
|
|
336
|
+
const a = e.country === Ma, i = !a || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, r = ue(e.value).length > 0, m = !o || r, d = Oe(e.value).length > 0, l = !m || d, c = t.operators, x = !!e.allowOperatorSelection && l && d && !e.lockedOperatorId && c.length > 1, S = l && d, w = (!S || e.value.date !== void 0) && e.value.date !== void 0, N = (!w || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, k = d && c.length === 0;
|
|
337
337
|
return {
|
|
338
|
-
insurance:
|
|
338
|
+
insurance: a,
|
|
339
339
|
specialty: o,
|
|
340
340
|
service: m,
|
|
341
341
|
operator: x,
|
|
342
342
|
date: S,
|
|
343
|
-
slot:
|
|
344
|
-
details:
|
|
343
|
+
slot: w,
|
|
344
|
+
details: N,
|
|
345
345
|
onboardingIncomplete: k
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
const
|
|
350
|
-
t.insurance &&
|
|
348
|
+
function Ba(e, t) {
|
|
349
|
+
const a = [];
|
|
350
|
+
t.insurance && a.push(1), t.specialty && a.push(2), a.push(3), t.operator && a.push(4), a.push(5), a.push(6), a.push(7);
|
|
351
351
|
const i = {
|
|
352
352
|
1: e.value.insuranceType !== void 0,
|
|
353
353
|
// 0.34.0: array-or-single — satisfied when EITHER form is present.
|
|
@@ -360,24 +360,24 @@ function Ps(e, t) {
|
|
|
360
360
|
// details fulfilment is owned by the form's own validation
|
|
361
361
|
};
|
|
362
362
|
return {
|
|
363
|
-
currentStep:
|
|
364
|
-
visibleSteps:
|
|
363
|
+
currentStep: a.find((o) => !i[o]) ?? 7,
|
|
364
|
+
visibleSteps: a
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Oa(e) {
|
|
368
368
|
const t = {
|
|
369
|
-
specialties:
|
|
370
|
-
services:
|
|
371
|
-
operators:
|
|
372
|
-
},
|
|
369
|
+
specialties: Aa(e),
|
|
370
|
+
services: Ta(e),
|
|
371
|
+
operators: _a(e)
|
|
372
|
+
}, a = Pa(e, t), { currentStep: i, visibleSteps: n } = Ba(e, a);
|
|
373
373
|
let o;
|
|
374
374
|
if (e.value.date && e.value.slotKey) {
|
|
375
375
|
const l = e.availableSlots[e.value.date];
|
|
376
376
|
l && (o = l.find((c) => c.key === e.value.slotKey));
|
|
377
377
|
}
|
|
378
|
-
const r = Oe(e.value), u = r.length > 0 ? e.services.find((l) => l.id === r[0]) : void 0, m = ue(e.value).length > 0, d = r.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!
|
|
378
|
+
const r = Oe(e.value), u = r.length > 0 ? e.services.find((l) => l.id === r[0]) : void 0, m = ue(e.value).length > 0, d = r.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!a.insurance || e.value.insuranceType !== void 0) && (!a.specialty || m);
|
|
379
379
|
return {
|
|
380
|
-
gates:
|
|
380
|
+
gates: a,
|
|
381
381
|
filtered: t,
|
|
382
382
|
currentStep: i,
|
|
383
383
|
totalSteps: n.length,
|
|
@@ -443,12 +443,12 @@ function mt(e, t) {
|
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
445
|
function gt(e, t) {
|
|
446
|
-
const
|
|
446
|
+
const a = !!t && t.length > 0;
|
|
447
447
|
return {
|
|
448
448
|
...e,
|
|
449
449
|
serviceId: void 0,
|
|
450
450
|
serviceIds: t,
|
|
451
|
-
operatorId:
|
|
451
|
+
operatorId: a ? Q : void 0,
|
|
452
452
|
operatorIds: void 0,
|
|
453
453
|
date: void 0,
|
|
454
454
|
slotKey: void 0,
|
|
@@ -496,47 +496,47 @@ function vt(e, t) {
|
|
|
496
496
|
slotKey: t
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
let
|
|
501
|
-
if (t.lockedOperatorId &&
|
|
502
|
-
const n = ue(
|
|
499
|
+
function Ea(e, t) {
|
|
500
|
+
let a = e;
|
|
501
|
+
if (t.lockedOperatorId && a.operatorId !== t.lockedOperatorId && (a = { ...a, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && a.specialtyId === void 0 && a.specialtyIds === void 0 && (a = { ...a, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
|
|
502
|
+
const n = ue(a), o = n.length > 0 ? t.services.filter(
|
|
503
503
|
(r) => r.specialtyId && n.includes(r.specialtyId)
|
|
504
504
|
) : t.services;
|
|
505
|
-
o.length === 1 &&
|
|
505
|
+
o.length === 1 && a.serviceId === void 0 && a.serviceIds === void 0 && (a = { ...a, serviceId: o[0].id }, a.operatorId === void 0 && a.operatorIds === void 0 && (a = { ...a, operatorId: Q }));
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return a;
|
|
508
508
|
}
|
|
509
509
|
function He(e) {
|
|
510
510
|
if (e.operatorId && e.operatorId !== Q)
|
|
511
511
|
return e.operatorId;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function La(e) {
|
|
514
514
|
if (!e) return !1;
|
|
515
515
|
const t = e.trim();
|
|
516
516
|
return /^\+?\d[\d\s\-()]{6,}$/.test(t);
|
|
517
517
|
}
|
|
518
518
|
function bt(e) {
|
|
519
|
-
const t = e && e.length > 0 ? e : ["email"],
|
|
520
|
-
return qe.filter((i) =>
|
|
519
|
+
const t = e && e.length > 0 ? e : ["email"], a = new Set(t);
|
|
520
|
+
return qe.filter((i) => a.has(i));
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Ra(e, t, a) {
|
|
523
523
|
const i = bt(e), n = new Set(i);
|
|
524
|
-
if (
|
|
524
|
+
if (a)
|
|
525
525
|
return qe.filter(
|
|
526
|
-
(d) =>
|
|
526
|
+
(d) => a.includes(d) && n.has(d)
|
|
527
527
|
);
|
|
528
528
|
const o = [];
|
|
529
529
|
n.has("email") && o.push("email");
|
|
530
|
-
const r =
|
|
530
|
+
const r = La(t), u = n.has("whatsapp");
|
|
531
531
|
u && r && o.push("whatsapp"), !u && n.has("sms") && o.push("sms");
|
|
532
532
|
const m = new Set(o);
|
|
533
533
|
return qe.filter((d) => m.has(d));
|
|
534
534
|
}
|
|
535
|
-
const it = 500,
|
|
535
|
+
const it = 500, Va = /^[A-Z0-9]{16}$/, Fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 300, Me = { state: "idle" }, Ye = ot(
|
|
536
536
|
({
|
|
537
537
|
value: e,
|
|
538
538
|
onChange: t,
|
|
539
|
-
onSubmit:
|
|
539
|
+
onSubmit: a,
|
|
540
540
|
requireCodiceFiscale: i = !1,
|
|
541
541
|
requireDateOfBirth: n = !1,
|
|
542
542
|
requireInsuranceNumber: o = !1,
|
|
@@ -549,30 +549,30 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
549
549
|
validateInsuranceNumber: x,
|
|
550
550
|
submitting: S = !1,
|
|
551
551
|
summarySlot: h,
|
|
552
|
-
defaultPhoneCountry:
|
|
553
|
-
confirmationChannels:
|
|
554
|
-
defaultConfirmationChannels:
|
|
552
|
+
defaultPhoneCountry: w,
|
|
553
|
+
confirmationChannels: A,
|
|
554
|
+
defaultConfirmationChannels: N,
|
|
555
555
|
submitError: k
|
|
556
556
|
}, b) => {
|
|
557
557
|
var we, re;
|
|
558
|
-
const { t: p } = B(), I = rt(), [
|
|
559
|
-
(v) => O((
|
|
558
|
+
const { t: p } = B(), I = rt(), [M, g] = q(Me), [y, _] = q(Me), [T, O] = q({}), E = H(
|
|
559
|
+
(v) => O((D) => ({ ...D, [v]: !0 })),
|
|
560
560
|
[]
|
|
561
|
-
),
|
|
561
|
+
), R = ie(null), V = ie(
|
|
562
562
|
null
|
|
563
563
|
);
|
|
564
564
|
U(
|
|
565
565
|
() => () => {
|
|
566
|
-
|
|
566
|
+
R.current && clearTimeout(R.current), V.current && clearTimeout(V.current);
|
|
567
567
|
},
|
|
568
568
|
[]
|
|
569
569
|
);
|
|
570
570
|
const P = H(
|
|
571
571
|
(v) => t({ ...e, ...v }),
|
|
572
572
|
[e, t]
|
|
573
|
-
), ee =
|
|
574
|
-
() => bt(
|
|
575
|
-
[
|
|
573
|
+
), ee = C(
|
|
574
|
+
() => bt(A),
|
|
575
|
+
[A]
|
|
576
576
|
), G = ee.length >= 2, pe = ie(!1);
|
|
577
577
|
U(() => {
|
|
578
578
|
if (!G) {
|
|
@@ -583,19 +583,19 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
583
583
|
pe.current = !0;
|
|
584
584
|
return;
|
|
585
585
|
}
|
|
586
|
-
const v =
|
|
586
|
+
const v = Ra(
|
|
587
587
|
ee,
|
|
588
588
|
e.mobilePhone,
|
|
589
|
-
|
|
589
|
+
N
|
|
590
590
|
);
|
|
591
591
|
pe.current = !0, P({ confirmationChannels: v });
|
|
592
592
|
}, [
|
|
593
593
|
G,
|
|
594
594
|
ee,
|
|
595
595
|
e.mobilePhone,
|
|
596
|
-
|
|
596
|
+
N
|
|
597
597
|
]);
|
|
598
|
-
const te =
|
|
598
|
+
const te = C(
|
|
599
599
|
() => e.confirmationChannels ?? [],
|
|
600
600
|
[e.confirmationChannels]
|
|
601
601
|
), xe = G && te.length === 0;
|
|
@@ -605,17 +605,17 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
605
605
|
g(Me);
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
if (!
|
|
608
|
+
if (!Va.test(v)) {
|
|
609
609
|
g({
|
|
610
610
|
state: "invalid",
|
|
611
611
|
hint: p("booking.details.codiceFiscale.invalidFormat")
|
|
612
612
|
});
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
g({ state: "pending" }),
|
|
615
|
+
g({ state: "pending" }), R.current && clearTimeout(R.current), R.current = setTimeout(() => {
|
|
616
616
|
c(v).then(
|
|
617
|
-
(
|
|
618
|
-
|
|
617
|
+
(D) => g(
|
|
618
|
+
D.valid ? { state: "valid" } : { state: "invalid", hint: D.hint }
|
|
619
619
|
)
|
|
620
620
|
).catch(
|
|
621
621
|
() => g({
|
|
@@ -632,10 +632,10 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
632
632
|
_(Me);
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
635
|
-
_({ state: "pending" }),
|
|
635
|
+
_({ state: "pending" }), V.current && clearTimeout(V.current), V.current = setTimeout(() => {
|
|
636
636
|
x(v).then(
|
|
637
|
-
(
|
|
638
|
-
|
|
637
|
+
(D) => _(
|
|
638
|
+
D.valid ? { state: "valid" } : { state: "invalid", hint: D.hint }
|
|
639
639
|
)
|
|
640
640
|
).catch(
|
|
641
641
|
() => _({
|
|
@@ -645,27 +645,27 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
645
645
|
);
|
|
646
646
|
}, nt);
|
|
647
647
|
}, [Y, x, e.insuranceNumber, p]);
|
|
648
|
-
const oe =
|
|
649
|
-
() => !!(e.email &&
|
|
648
|
+
const oe = C(
|
|
649
|
+
() => !!(e.email && Fa.test(e.email)),
|
|
650
650
|
[e.email]
|
|
651
|
-
), me =
|
|
651
|
+
), me = C(
|
|
652
652
|
() => !!(e.mobilePhone && e.mobilePhone.length >= 6),
|
|
653
653
|
[e.mobilePhone]
|
|
654
|
-
), Se =
|
|
655
|
-
var v,
|
|
656
|
-
return !(!((v = e.firstName) != null && v.trim()) || !((
|
|
654
|
+
), Se = C(() => {
|
|
655
|
+
var v, D;
|
|
656
|
+
return !(!((v = e.firstName) != null && v.trim()) || !((D = e.lastName) != null && D.trim()) || !oe || !me || i && M.state !== "valid" || n && !e.dateOfBirth || Y && y.state !== "valid");
|
|
657
657
|
}, [
|
|
658
658
|
e.firstName,
|
|
659
659
|
e.lastName,
|
|
660
660
|
oe,
|
|
661
661
|
me,
|
|
662
662
|
i,
|
|
663
|
-
|
|
663
|
+
M.state,
|
|
664
664
|
n,
|
|
665
665
|
e.dateOfBirth,
|
|
666
666
|
Y,
|
|
667
667
|
y.state
|
|
668
|
-
]), Ie = !!(e.privacyConsent && e.termsConsent),
|
|
668
|
+
]), Ie = !!(e.privacyConsent && e.termsConsent), Le = !G || te.length > 0, J = Se && Ie && Le && !S, Re = (v) => {
|
|
669
669
|
if (v.preventDefault(), O({
|
|
670
670
|
firstName: !0,
|
|
671
671
|
lastName: !0,
|
|
@@ -675,7 +675,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
675
675
|
dateOfBirth: !0,
|
|
676
676
|
insuranceNumber: !0
|
|
677
677
|
}), !J) return;
|
|
678
|
-
const
|
|
678
|
+
const D = {
|
|
679
679
|
firstName: e.firstName.trim(),
|
|
680
680
|
lastName: e.lastName.trim(),
|
|
681
681
|
email: e.email.trim(),
|
|
@@ -692,11 +692,11 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
692
692
|
// config.
|
|
693
693
|
confirmationChannels: G ? te : void 0
|
|
694
694
|
};
|
|
695
|
-
|
|
696
|
-
}, Ne = (v,
|
|
697
|
-
const
|
|
698
|
-
return
|
|
699
|
-
|
|
695
|
+
a(D);
|
|
696
|
+
}, Ne = (v, D) => {
|
|
697
|
+
const ae = D && /^https?:\/\//i.test(D) ? D : void 0;
|
|
698
|
+
return ae ? /* @__PURE__ */ s(
|
|
699
|
+
Bt,
|
|
700
700
|
{
|
|
701
701
|
i18nKey: v,
|
|
702
702
|
components: {
|
|
@@ -707,10 +707,10 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
707
707
|
// label.
|
|
708
708
|
policyLink: (
|
|
709
709
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ s(
|
|
711
711
|
"a",
|
|
712
712
|
{
|
|
713
|
-
href:
|
|
713
|
+
href: ae,
|
|
714
714
|
target: "_blank",
|
|
715
715
|
rel: "noopener noreferrer",
|
|
716
716
|
className: "ds:underline ds:text-[var(--primary)]"
|
|
@@ -727,18 +727,18 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
727
727
|
ref: b,
|
|
728
728
|
id: I,
|
|
729
729
|
noValidate: !0,
|
|
730
|
-
onSubmit:
|
|
730
|
+
onSubmit: Re,
|
|
731
731
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
732
732
|
children: [
|
|
733
733
|
h,
|
|
734
734
|
/* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
735
|
-
/* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ s(
|
|
736
736
|
W,
|
|
737
737
|
{
|
|
738
738
|
label: p("booking.details.firstName.label"),
|
|
739
739
|
required: !0,
|
|
740
740
|
error: T.firstName && !((we = e.firstName) != null && we.trim()) ? p("booking.details.firstName.required") : void 0,
|
|
741
|
-
children: /* @__PURE__ */
|
|
741
|
+
children: /* @__PURE__ */ s(
|
|
742
742
|
Ce,
|
|
743
743
|
{
|
|
744
744
|
autoComplete: "given-name",
|
|
@@ -749,13 +749,13 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
749
749
|
)
|
|
750
750
|
}
|
|
751
751
|
),
|
|
752
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ s(
|
|
753
753
|
W,
|
|
754
754
|
{
|
|
755
755
|
label: p("booking.details.lastName.label"),
|
|
756
756
|
required: !0,
|
|
757
757
|
error: T.lastName && !((re = e.lastName) != null && re.trim()) ? p("booking.details.lastName.required") : void 0,
|
|
758
|
-
children: /* @__PURE__ */
|
|
758
|
+
children: /* @__PURE__ */ s(
|
|
759
759
|
Ce,
|
|
760
760
|
{
|
|
761
761
|
autoComplete: "family-name",
|
|
@@ -768,13 +768,13 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
768
768
|
)
|
|
769
769
|
] }),
|
|
770
770
|
/* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
771
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ s(
|
|
772
772
|
W,
|
|
773
773
|
{
|
|
774
774
|
label: p("booking.details.email.label"),
|
|
775
775
|
required: !0,
|
|
776
776
|
error: T.email && !oe ? p("booking.details.email.invalid") : void 0,
|
|
777
|
-
children: /* @__PURE__ */
|
|
777
|
+
children: /* @__PURE__ */ s(
|
|
778
778
|
Rt,
|
|
779
779
|
{
|
|
780
780
|
value: e.email ?? "",
|
|
@@ -784,17 +784,17 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
784
784
|
)
|
|
785
785
|
}
|
|
786
786
|
),
|
|
787
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ s(
|
|
788
788
|
W,
|
|
789
789
|
{
|
|
790
790
|
label: p("booking.details.mobilePhone.label"),
|
|
791
791
|
required: !0,
|
|
792
792
|
error: T.mobilePhone && !me ? p("booking.details.mobilePhone.invalid") : void 0,
|
|
793
|
-
children: /* @__PURE__ */
|
|
793
|
+
children: /* @__PURE__ */ s(
|
|
794
794
|
Vt,
|
|
795
795
|
{
|
|
796
796
|
value: e.mobilePhone ?? "",
|
|
797
|
-
defaultCountry:
|
|
797
|
+
defaultCountry: w == null ? void 0 : w.toUpperCase(),
|
|
798
798
|
onChange: (v) => {
|
|
799
799
|
P({ mobilePhone: v }), E("mobilePhone");
|
|
800
800
|
}
|
|
@@ -804,14 +804,14 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
804
804
|
)
|
|
805
805
|
] }),
|
|
806
806
|
i || n ? /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
807
|
-
i ? /* @__PURE__ */
|
|
807
|
+
i ? /* @__PURE__ */ s(
|
|
808
808
|
W,
|
|
809
809
|
{
|
|
810
810
|
label: p("booking.details.codiceFiscale.label"),
|
|
811
811
|
required: !0,
|
|
812
|
-
description:
|
|
813
|
-
error: T.codiceFiscale &&
|
|
814
|
-
children: /* @__PURE__ */
|
|
812
|
+
description: M.state === "pending" ? p("booking.details.codiceFiscale.checking") : p("booking.details.codiceFiscale.helper"),
|
|
813
|
+
error: T.codiceFiscale && M.state === "invalid" ? M.hint ?? p("booking.details.codiceFiscale.invalid") : void 0,
|
|
814
|
+
children: /* @__PURE__ */ s(
|
|
815
815
|
Ce,
|
|
816
816
|
{
|
|
817
817
|
value: e.codiceFiscale ?? "",
|
|
@@ -824,14 +824,14 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
824
824
|
)
|
|
825
825
|
}
|
|
826
826
|
) : null,
|
|
827
|
-
n ? /* @__PURE__ */
|
|
827
|
+
n ? /* @__PURE__ */ s(
|
|
828
828
|
W,
|
|
829
829
|
{
|
|
830
830
|
label: p("booking.details.dateOfBirth.label"),
|
|
831
831
|
required: !0,
|
|
832
832
|
error: T.dateOfBirth && !e.dateOfBirth ? p("booking.details.dateOfBirth.required") : void 0,
|
|
833
|
-
children: /* @__PURE__ */
|
|
834
|
-
|
|
833
|
+
children: /* @__PURE__ */ s(
|
|
834
|
+
Lt,
|
|
835
835
|
{
|
|
836
836
|
value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
|
|
837
837
|
onChange: (v) => {
|
|
@@ -844,14 +844,14 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
844
844
|
}
|
|
845
845
|
) : null
|
|
846
846
|
] }) : null,
|
|
847
|
-
Y ? /* @__PURE__ */
|
|
847
|
+
Y ? /* @__PURE__ */ s(
|
|
848
848
|
W,
|
|
849
849
|
{
|
|
850
850
|
label: p("booking.details.insuranceNumber.label"),
|
|
851
851
|
required: !0,
|
|
852
852
|
description: y.state === "pending" ? p("booking.details.insuranceNumber.checking") : void 0,
|
|
853
853
|
error: T.insuranceNumber && y.state === "invalid" ? y.hint ?? p("booking.details.insuranceNumber.invalid") : void 0,
|
|
854
|
-
children: /* @__PURE__ */
|
|
854
|
+
children: /* @__PURE__ */ s(
|
|
855
855
|
Ce,
|
|
856
856
|
{
|
|
857
857
|
value: e.insuranceNumber ?? "",
|
|
@@ -861,15 +861,15 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
861
861
|
)
|
|
862
862
|
}
|
|
863
863
|
) : null,
|
|
864
|
-
u ? /* @__PURE__ */
|
|
864
|
+
u ? /* @__PURE__ */ s(
|
|
865
865
|
W,
|
|
866
866
|
{
|
|
867
867
|
label: p("booking.details.note.label"),
|
|
868
868
|
description: p("booking.details.note.helper", {
|
|
869
869
|
max: it
|
|
870
870
|
}),
|
|
871
|
-
children: /* @__PURE__ */
|
|
872
|
-
|
|
871
|
+
children: /* @__PURE__ */ s(
|
|
872
|
+
Ft,
|
|
873
873
|
{
|
|
874
874
|
value: e.note ?? "",
|
|
875
875
|
maxLength: it,
|
|
@@ -879,7 +879,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
879
879
|
)
|
|
880
880
|
}
|
|
881
881
|
) : null,
|
|
882
|
-
m ? /* @__PURE__ */
|
|
882
|
+
m ? /* @__PURE__ */ s(
|
|
883
883
|
Ke,
|
|
884
884
|
{
|
|
885
885
|
checked: !!e.returningPatient,
|
|
@@ -888,7 +888,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
888
888
|
}
|
|
889
889
|
) : null,
|
|
890
890
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
891
|
-
/* @__PURE__ */
|
|
891
|
+
/* @__PURE__ */ s(
|
|
892
892
|
Ke,
|
|
893
893
|
{
|
|
894
894
|
checked: !!e.privacyConsent,
|
|
@@ -898,7 +898,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
898
898
|
"booking.details.consent.privacy.label",
|
|
899
899
|
d
|
|
900
900
|
),
|
|
901
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ s(
|
|
902
902
|
"span",
|
|
903
903
|
{
|
|
904
904
|
"aria-hidden": "true",
|
|
@@ -909,7 +909,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
909
909
|
] })
|
|
910
910
|
}
|
|
911
911
|
),
|
|
912
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ s(
|
|
913
913
|
Ke,
|
|
914
914
|
{
|
|
915
915
|
checked: !!e.termsConsent,
|
|
@@ -919,7 +919,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
919
919
|
"booking.details.consent.terms.label",
|
|
920
920
|
l
|
|
921
921
|
),
|
|
922
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ s(
|
|
923
923
|
"span",
|
|
924
924
|
{
|
|
925
925
|
"aria-hidden": "true",
|
|
@@ -931,13 +931,13 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
931
931
|
}
|
|
932
932
|
)
|
|
933
933
|
] }),
|
|
934
|
-
G ? /* @__PURE__ */
|
|
934
|
+
G ? /* @__PURE__ */ s(
|
|
935
935
|
"div",
|
|
936
936
|
{
|
|
937
937
|
"data-component": "booking-confirmation-channels",
|
|
938
938
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
939
|
-
children: /* @__PURE__ */
|
|
940
|
-
|
|
939
|
+
children: /* @__PURE__ */ s(
|
|
940
|
+
Et,
|
|
941
941
|
{
|
|
942
942
|
label: p("booking.confirmation.heading"),
|
|
943
943
|
helperText: p("booking.confirmation.helper"),
|
|
@@ -955,15 +955,15 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
955
955
|
)
|
|
956
956
|
}
|
|
957
957
|
) : null,
|
|
958
|
-
k ? /* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
958
|
+
k ? /* @__PURE__ */ s(j, { variant: "error", children: /* @__PURE__ */ s(j.Description, { children: k }) }) : null,
|
|
959
|
+
/* @__PURE__ */ s(
|
|
960
960
|
ne,
|
|
961
961
|
{
|
|
962
962
|
intent: "primary",
|
|
963
963
|
size: "md",
|
|
964
964
|
type: "submit",
|
|
965
965
|
disabled: !J,
|
|
966
|
-
startIcon: S ? /* @__PURE__ */
|
|
966
|
+
startIcon: S ? /* @__PURE__ */ s($t, { variant: "pulse", size: "sm" }) : void 0,
|
|
967
967
|
children: p("booking.details.submit")
|
|
968
968
|
}
|
|
969
969
|
)
|
|
@@ -973,7 +973,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
|
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
975
|
Ye.displayName = "BookingDetailsForm";
|
|
976
|
-
const
|
|
976
|
+
const $a = Pe(
|
|
977
977
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
|
|
978
978
|
{
|
|
979
979
|
variants: {
|
|
@@ -1001,40 +1001,44 @@ const Fs = Pe(
|
|
|
1001
1001
|
},
|
|
1002
1002
|
defaultVariants: { variant: "inline-list", surface: "flat" }
|
|
1003
1003
|
}
|
|
1004
|
-
),
|
|
1004
|
+
), za = [
|
|
1005
1005
|
[
|
|
1006
1006
|
/\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
|
|
1007
|
-
|
|
1007
|
+
st
|
|
1008
1008
|
],
|
|
1009
|
-
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i,
|
|
1010
|
-
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i,
|
|
1011
|
-
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i,
|
|
1012
|
-
[/\b(otorin|udito|orecchi|hearing|ear)/i,
|
|
1013
|
-
[/\b(neuro|brain|cervello)/i,
|
|
1014
|
-
[/\b(pediatr|child|bambin)/i,
|
|
1015
|
-
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i,
|
|
1016
|
-
[/\b(lab|analis|test|sang|esami)/i,
|
|
1017
|
-
[/\b(farmaco|pharm|pillol|refill)/i,
|
|
1018
|
-
[/\b(chirurg|surg|intervent|operat)/i,
|
|
1019
|
-
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i,
|
|
1020
|
-
[/\b(vacc|inject|inie|punto)/i,
|
|
1021
|
-
[/\b(derma|skin|pelle)/i,
|
|
1022
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
1023
|
-
[/\b(general|medicin|family|control|check[-\s]?up)/i,
|
|
1009
|
+
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, Xt],
|
|
1010
|
+
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Sa],
|
|
1011
|
+
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Qt],
|
|
1012
|
+
[/\b(otorin|udito|orecchi|hearing|ear)/i, ga],
|
|
1013
|
+
[/\b(neuro|brain|cervello)/i, ca],
|
|
1014
|
+
[/\b(pediatr|child|bambin)/i, oa],
|
|
1015
|
+
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, da],
|
|
1016
|
+
[/\b(lab|analis|test|sang|esami)/i, ha],
|
|
1017
|
+
[/\b(farmaco|pharm|pillol|refill)/i, ba],
|
|
1018
|
+
[/\b(chirurg|surg|intervent|operat)/i, ka],
|
|
1019
|
+
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, ea],
|
|
1020
|
+
[/\b(vacc|inject|inie|punto)/i, st],
|
|
1021
|
+
[/\b(derma|skin|pelle)/i, ta],
|
|
1022
|
+
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, aa],
|
|
1023
|
+
[/\b(general|medicin|family|control|check[-\s]?up)/i, ia]
|
|
1024
1024
|
];
|
|
1025
|
-
function
|
|
1026
|
-
for (const [t,
|
|
1027
|
-
if (t.test(e)) return
|
|
1025
|
+
function Ka(e) {
|
|
1026
|
+
for (const [t, a] of za)
|
|
1027
|
+
if (t.test(e)) return a;
|
|
1028
1028
|
return null;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const t =
|
|
1032
|
-
return /* @__PURE__ */
|
|
1030
|
+
function ja(e) {
|
|
1031
|
+
const t = Ka(e.label) ?? Wt;
|
|
1032
|
+
return /* @__PURE__ */ s(t, { "aria-hidden": "true", className: "ds:size-5" });
|
|
1033
|
+
}
|
|
1034
|
+
function yt(e) {
|
|
1035
|
+
var t;
|
|
1036
|
+
return (t = e.priceLabel) != null && t.trim() ? e.priceLabel : void 0;
|
|
1033
1037
|
}
|
|
1034
|
-
function
|
|
1038
|
+
function se(e) {
|
|
1035
1039
|
return Te(e, "yyyy-MM-dd");
|
|
1036
1040
|
}
|
|
1037
|
-
const
|
|
1041
|
+
const qa = [
|
|
1038
1042
|
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
1039
1043
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
1040
1044
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1044,7 +1048,7 @@ const js = [
|
|
|
1044
1048
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1045
1049
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1046
1050
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
1047
|
-
].join(" "),
|
|
1051
|
+
].join(" "), Ha = Pe(qa, {
|
|
1048
1052
|
variants: {
|
|
1049
1053
|
state: {
|
|
1050
1054
|
available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
|
|
@@ -1055,29 +1059,29 @@ const js = [
|
|
|
1055
1059
|
},
|
|
1056
1060
|
defaultVariants: { state: "unavailable" }
|
|
1057
1061
|
});
|
|
1058
|
-
function
|
|
1062
|
+
function Ga({
|
|
1059
1063
|
availableDates: e,
|
|
1060
1064
|
selectedDate: t,
|
|
1061
|
-
onSelectDate:
|
|
1065
|
+
onSelectDate: a,
|
|
1062
1066
|
locale: i,
|
|
1063
1067
|
loading: n
|
|
1064
1068
|
}) {
|
|
1065
|
-
const { t: o } = B(), r =
|
|
1066
|
-
const k = ye(u), b =
|
|
1069
|
+
const { t: o } = B(), r = C(() => t ? ye($(t)) : e.length > 0 ? ye($(e[0])) : ye(/* @__PURE__ */ new Date()), [t, e]), [u, m] = q(r), [d, l] = q(null), c = C(() => {
|
|
1070
|
+
const k = ye(u), b = Ht(u), p = k.getDay(), I = b.getDate(), M = [];
|
|
1067
1071
|
for (let g = p; g > 0; g -= 1) {
|
|
1068
1072
|
const y = new Date(k);
|
|
1069
|
-
y.setDate(k.getDate() - g),
|
|
1073
|
+
y.setDate(k.getDate() - g), M.push(y);
|
|
1070
1074
|
}
|
|
1071
1075
|
for (let g = 0; g < I; g += 1) {
|
|
1072
1076
|
const y = new Date(k);
|
|
1073
|
-
y.setDate(k.getDate() + g),
|
|
1077
|
+
y.setDate(k.getDate() + g), M.push(y);
|
|
1074
1078
|
}
|
|
1075
|
-
for (;
|
|
1076
|
-
const g =
|
|
1077
|
-
y.setDate(g.getDate() + 1),
|
|
1079
|
+
for (; M.length < 42; ) {
|
|
1080
|
+
const g = M[M.length - 1], y = new Date(g);
|
|
1081
|
+
y.setDate(g.getDate() + 1), M.push(y);
|
|
1078
1082
|
}
|
|
1079
|
-
return
|
|
1080
|
-
}, [u]), x =
|
|
1083
|
+
return M;
|
|
1084
|
+
}, [u]), x = C(() => {
|
|
1081
1085
|
try {
|
|
1082
1086
|
return new Intl.DateTimeFormat(i, {
|
|
1083
1087
|
month: "long",
|
|
@@ -1086,7 +1090,7 @@ function Hs({
|
|
|
1086
1090
|
} catch {
|
|
1087
1091
|
return Te(u, "MMMM yyyy");
|
|
1088
1092
|
}
|
|
1089
|
-
}, [u, i]), S =
|
|
1093
|
+
}, [u, i]), S = C(() => {
|
|
1090
1094
|
const k = new Date(2024, 0, 7);
|
|
1091
1095
|
return Array.from({ length: 7 }, (b, p) => {
|
|
1092
1096
|
const I = new Date(k);
|
|
@@ -1097,17 +1101,17 @@ function Hs({
|
|
|
1097
1101
|
return Te(I, "EEE");
|
|
1098
1102
|
}
|
|
1099
1103
|
});
|
|
1100
|
-
}, [i]), h =
|
|
1101
|
-
(k) => h.has(
|
|
1104
|
+
}, [i]), h = C(() => new Set(e), [e]), w = H(
|
|
1105
|
+
(k) => h.has(se(k)),
|
|
1102
1106
|
[h]
|
|
1103
|
-
),
|
|
1107
|
+
), A = C(() => {
|
|
1104
1108
|
if (d) return d;
|
|
1105
1109
|
if (t) return $(t);
|
|
1106
1110
|
const k = c.find(
|
|
1107
|
-
(b) => De(b, u) &&
|
|
1111
|
+
(b) => De(b, u) && w(b)
|
|
1108
1112
|
);
|
|
1109
1113
|
return k || (c.find((b) => De(b, u)) ?? null);
|
|
1110
|
-
}, [d, t, c, u,
|
|
1114
|
+
}, [d, t, c, u, w]), N = H(
|
|
1111
1115
|
(k, b) => {
|
|
1112
1116
|
let p = null;
|
|
1113
1117
|
switch (k.key) {
|
|
@@ -1131,7 +1135,7 @@ function Hs({
|
|
|
1131
1135
|
break;
|
|
1132
1136
|
case "Enter":
|
|
1133
1137
|
case " ": {
|
|
1134
|
-
k.preventDefault(),
|
|
1138
|
+
k.preventDefault(), w(b) && a(se(b));
|
|
1135
1139
|
return;
|
|
1136
1140
|
}
|
|
1137
1141
|
default:
|
|
@@ -1139,7 +1143,7 @@ function Hs({
|
|
|
1139
1143
|
}
|
|
1140
1144
|
p && (k.preventDefault(), De(p, u) || m(ye(p)), l(p));
|
|
1141
1145
|
},
|
|
1142
|
-
[
|
|
1146
|
+
[w, a, u]
|
|
1143
1147
|
);
|
|
1144
1148
|
return n ? /* @__PURE__ */ f(
|
|
1145
1149
|
"div",
|
|
@@ -1149,26 +1153,26 @@ function Hs({
|
|
|
1149
1153
|
"aria-label": o("common.loading"),
|
|
1150
1154
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1151
1155
|
children: [
|
|
1152
|
-
/* @__PURE__ */
|
|
1153
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ s(_e, { variant: "text", width: "40%" }),
|
|
1157
|
+
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (k, b) => /* @__PURE__ */ s(_e, { variant: "rounded", height: "2.5rem" }, `mg-skel-${b}`)) })
|
|
1154
1158
|
]
|
|
1155
1159
|
}
|
|
1156
1160
|
) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1157
1161
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1158
|
-
/* @__PURE__ */
|
|
1162
|
+
/* @__PURE__ */ s(
|
|
1159
1163
|
tt,
|
|
1160
1164
|
{
|
|
1161
|
-
icon: /* @__PURE__ */
|
|
1165
|
+
icon: /* @__PURE__ */ s(Ut, {}),
|
|
1162
1166
|
"aria-label": o("booking.previousMonth"),
|
|
1163
1167
|
size: "sm",
|
|
1164
1168
|
intent: "ghost",
|
|
1165
1169
|
flipIconInRtl: !0,
|
|
1166
1170
|
onClick: () => {
|
|
1167
|
-
m((k) =>
|
|
1171
|
+
m((k) => Ca(k)), l(null);
|
|
1168
1172
|
}
|
|
1169
1173
|
}
|
|
1170
1174
|
),
|
|
1171
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ s(
|
|
1172
1176
|
"span",
|
|
1173
1177
|
{
|
|
1174
1178
|
className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
|
|
@@ -1176,10 +1180,10 @@ function Hs({
|
|
|
1176
1180
|
children: x
|
|
1177
1181
|
}
|
|
1178
1182
|
),
|
|
1179
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ s(
|
|
1180
1184
|
tt,
|
|
1181
1185
|
{
|
|
1182
|
-
icon: /* @__PURE__ */
|
|
1186
|
+
icon: /* @__PURE__ */ s(Yt, {}),
|
|
1183
1187
|
"aria-label": o("booking.nextMonth"),
|
|
1184
1188
|
size: "sm",
|
|
1185
1189
|
intent: "ghost",
|
|
@@ -1197,12 +1201,12 @@ function Hs({
|
|
|
1197
1201
|
"aria-label": o("booking.monthGridLabel"),
|
|
1198
1202
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
1199
1203
|
children: [
|
|
1200
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ s(
|
|
1201
1205
|
"div",
|
|
1202
1206
|
{
|
|
1203
1207
|
role: "row",
|
|
1204
1208
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1205
|
-
children: S.map((k, b) => /* @__PURE__ */
|
|
1209
|
+
children: S.map((k, b) => /* @__PURE__ */ s(
|
|
1206
1210
|
"div",
|
|
1207
1211
|
{
|
|
1208
1212
|
role: "columnheader",
|
|
@@ -1213,13 +1217,13 @@ function Hs({
|
|
|
1213
1217
|
))
|
|
1214
1218
|
}
|
|
1215
1219
|
),
|
|
1216
|
-
Array.from({ length: 6 }, (k, b) => /* @__PURE__ */
|
|
1220
|
+
Array.from({ length: 6 }, (k, b) => /* @__PURE__ */ s(
|
|
1217
1221
|
"div",
|
|
1218
1222
|
{
|
|
1219
1223
|
role: "row",
|
|
1220
1224
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
1221
1225
|
children: c.slice(b * 7, b * 7 + 7).map((p, I) => {
|
|
1222
|
-
const
|
|
1226
|
+
const M = b * 7 + I, g = De(p, u), y = g && w(p), _ = t ? at(p, $(t)) : !1, T = g ? _ ? "selected" : y ? "available" : "unavailable" : "outside", O = A ? at(A, p) : !1, E = (() => {
|
|
1223
1227
|
try {
|
|
1224
1228
|
return new Intl.DateTimeFormat(i, {
|
|
1225
1229
|
dateStyle: "full"
|
|
@@ -1228,7 +1232,7 @@ function Hs({
|
|
|
1228
1232
|
return Te(p, "PPP");
|
|
1229
1233
|
}
|
|
1230
1234
|
})();
|
|
1231
|
-
return /* @__PURE__ */
|
|
1235
|
+
return /* @__PURE__ */ s(
|
|
1232
1236
|
"button",
|
|
1233
1237
|
{
|
|
1234
1238
|
type: "button",
|
|
@@ -1239,13 +1243,13 @@ function Hs({
|
|
|
1239
1243
|
tabIndex: O ? 0 : -1,
|
|
1240
1244
|
disabled: !y,
|
|
1241
1245
|
onClick: () => {
|
|
1242
|
-
y &&
|
|
1246
|
+
y && a(se(p));
|
|
1243
1247
|
},
|
|
1244
|
-
onKeyDown: (
|
|
1245
|
-
className:
|
|
1246
|
-
children: /* @__PURE__ */
|
|
1248
|
+
onKeyDown: (R) => N(R, p),
|
|
1249
|
+
className: Ha({ state: T }),
|
|
1250
|
+
children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children: p.getDate() })
|
|
1247
1251
|
},
|
|
1248
|
-
`mg-cell-${
|
|
1252
|
+
`mg-cell-${M}`
|
|
1249
1253
|
);
|
|
1250
1254
|
})
|
|
1251
1255
|
},
|
|
@@ -1256,7 +1260,7 @@ function Hs({
|
|
|
1256
1260
|
)
|
|
1257
1261
|
] });
|
|
1258
1262
|
}
|
|
1259
|
-
const
|
|
1263
|
+
const Ua = Pe(
|
|
1260
1264
|
[
|
|
1261
1265
|
"ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
|
|
1262
1266
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1282,10 +1286,10 @@ const Gs = Pe(
|
|
|
1282
1286
|
defaultVariants: { state: "idle" }
|
|
1283
1287
|
}
|
|
1284
1288
|
);
|
|
1285
|
-
function
|
|
1289
|
+
function Ya({
|
|
1286
1290
|
services: e,
|
|
1287
1291
|
selectedServiceId: t,
|
|
1288
|
-
onSelect:
|
|
1292
|
+
onSelect: a
|
|
1289
1293
|
}) {
|
|
1290
1294
|
const { t: i } = B(), n = rt(), [o, r] = q(() => {
|
|
1291
1295
|
if (t) {
|
|
@@ -1327,14 +1331,14 @@ function Us({
|
|
|
1327
1331
|
}
|
|
1328
1332
|
case "Enter":
|
|
1329
1333
|
case " ": {
|
|
1330
|
-
l.preventDefault(),
|
|
1334
|
+
l.preventDefault(), a(x);
|
|
1331
1335
|
break;
|
|
1332
1336
|
}
|
|
1333
1337
|
}
|
|
1334
1338
|
},
|
|
1335
|
-
[e.length, m,
|
|
1339
|
+
[e.length, m, a]
|
|
1336
1340
|
);
|
|
1337
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
1341
|
+
return e.length === 0 ? null : /* @__PURE__ */ s(
|
|
1338
1342
|
"div",
|
|
1339
1343
|
{
|
|
1340
1344
|
role: "radiogroup",
|
|
@@ -1342,39 +1346,42 @@ function Us({
|
|
|
1342
1346
|
id: n,
|
|
1343
1347
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
1344
1348
|
children: e.map((l, c) => {
|
|
1345
|
-
const x = t === l.id, S = o === c, h = i("booking.
|
|
1349
|
+
const x = t === l.id, S = o === c, h = yt(l), w = h ? i("booking.serviceCardLabelPrice", {
|
|
1350
|
+
label: l.label,
|
|
1351
|
+
price: h
|
|
1352
|
+
}) : i("booking.serviceCardLabel", {
|
|
1346
1353
|
label: l.label,
|
|
1347
1354
|
duration: l.durationMin
|
|
1348
|
-
}),
|
|
1355
|
+
}), A = ja(l);
|
|
1349
1356
|
return /* @__PURE__ */ f(
|
|
1350
1357
|
"button",
|
|
1351
1358
|
{
|
|
1352
|
-
ref: (
|
|
1353
|
-
|
|
1359
|
+
ref: (N) => {
|
|
1360
|
+
N ? u.current.set(c, N) : u.current.delete(c);
|
|
1354
1361
|
},
|
|
1355
1362
|
type: "button",
|
|
1356
1363
|
role: "radio",
|
|
1357
1364
|
"aria-checked": x,
|
|
1358
|
-
"aria-label":
|
|
1365
|
+
"aria-label": w,
|
|
1359
1366
|
tabIndex: S ? 0 : -1,
|
|
1360
|
-
onClick: () =>
|
|
1367
|
+
onClick: () => a(l.id),
|
|
1361
1368
|
onFocus: () => r(c),
|
|
1362
|
-
onKeyDown: (
|
|
1363
|
-
className:
|
|
1369
|
+
onKeyDown: (N) => d(N, c, l.id),
|
|
1370
|
+
className: Ua({
|
|
1364
1371
|
state: x ? "selected" : "idle"
|
|
1365
1372
|
}),
|
|
1366
1373
|
children: [
|
|
1367
|
-
/* @__PURE__ */
|
|
1374
|
+
/* @__PURE__ */ s(
|
|
1368
1375
|
"span",
|
|
1369
1376
|
{
|
|
1370
1377
|
"aria-hidden": "true",
|
|
1371
1378
|
className: "ds:flex ds:size-10 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:bg-[var(--primary)]/10 ds:text-[var(--primary)]",
|
|
1372
|
-
children:
|
|
1379
|
+
children: A
|
|
1373
1380
|
}
|
|
1374
1381
|
),
|
|
1375
1382
|
/* @__PURE__ */ f("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
1376
|
-
/* @__PURE__ */
|
|
1377
|
-
/* @__PURE__ */
|
|
1383
|
+
/* @__PURE__ */ s("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: l.label }),
|
|
1384
|
+
/* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: h ?? i("booking.serviceSummary", { minutes: l.durationMin }) })
|
|
1378
1385
|
] })
|
|
1379
1386
|
]
|
|
1380
1387
|
},
|
|
@@ -1384,7 +1391,7 @@ function Us({
|
|
|
1384
1391
|
}
|
|
1385
1392
|
);
|
|
1386
1393
|
}
|
|
1387
|
-
const
|
|
1394
|
+
const Ja = Pe(
|
|
1388
1395
|
[
|
|
1389
1396
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
|
|
1390
1397
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1410,24 +1417,24 @@ const Ys = Pe(
|
|
|
1410
1417
|
defaultVariants: { state: "idle" }
|
|
1411
1418
|
}
|
|
1412
1419
|
);
|
|
1413
|
-
function
|
|
1414
|
-
const [t] = e.split(":").map((i) => parseInt(i, 10)),
|
|
1415
|
-
return
|
|
1420
|
+
function Za(e) {
|
|
1421
|
+
const [t] = e.split(":").map((i) => parseInt(i, 10)), a = Number.isFinite(t) ? t : 0;
|
|
1422
|
+
return a < 12 ? "morning" : a < 17 ? "afternoon" : "evening";
|
|
1416
1423
|
}
|
|
1417
|
-
const
|
|
1418
|
-
morning:
|
|
1419
|
-
afternoon:
|
|
1420
|
-
evening:
|
|
1424
|
+
const Wa = {
|
|
1425
|
+
morning: Zt,
|
|
1426
|
+
afternoon: Na,
|
|
1427
|
+
evening: Jt
|
|
1421
1428
|
};
|
|
1422
|
-
function
|
|
1429
|
+
function Xa({
|
|
1423
1430
|
date: e,
|
|
1424
1431
|
slots: t,
|
|
1425
|
-
selectedSlotKey:
|
|
1432
|
+
selectedSlotKey: a,
|
|
1426
1433
|
onSelect: i,
|
|
1427
1434
|
loading: n,
|
|
1428
1435
|
locale: o
|
|
1429
1436
|
}) {
|
|
1430
|
-
const { t: r } = B(), u =
|
|
1437
|
+
const { t: r } = B(), u = C(() => {
|
|
1431
1438
|
try {
|
|
1432
1439
|
return new Intl.DateTimeFormat(o, {
|
|
1433
1440
|
weekday: "long",
|
|
@@ -1437,73 +1444,73 @@ function Ws({
|
|
|
1437
1444
|
} catch {
|
|
1438
1445
|
return e;
|
|
1439
1446
|
}
|
|
1440
|
-
}, [e, o]), m =
|
|
1447
|
+
}, [e, o]), m = C(() => {
|
|
1441
1448
|
const c = {
|
|
1442
1449
|
morning: [],
|
|
1443
1450
|
afternoon: [],
|
|
1444
1451
|
evening: []
|
|
1445
1452
|
};
|
|
1446
1453
|
for (const x of t)
|
|
1447
|
-
c[
|
|
1454
|
+
c[Za(x.time)].push(x);
|
|
1448
1455
|
return c;
|
|
1449
1456
|
}, [t]), d = t.filter((c) => c.available).length, l = ["morning", "afternoon", "evening"];
|
|
1450
1457
|
return n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
[0, 1].map((c) => /* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ s(_e, { variant: "text", width: "60%" }),
|
|
1459
|
+
[0, 1].map((c) => /* @__PURE__ */ s(
|
|
1453
1460
|
"div",
|
|
1454
1461
|
{
|
|
1455
1462
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
|
|
1456
|
-
children: [0, 1, 2].map((x) => /* @__PURE__ */
|
|
1463
|
+
children: [0, 1, 2].map((x) => /* @__PURE__ */ s(_e, { variant: "rounded", height: "44px" }, x))
|
|
1457
1464
|
},
|
|
1458
1465
|
c
|
|
1459
1466
|
))
|
|
1460
|
-
] }) : d === 0 ? /* @__PURE__ */
|
|
1467
|
+
] }) : d === 0 ? /* @__PURE__ */ s(dt, { variant: "no-results", title: r("booking.noSlotsForDate") }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1461
1468
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1462
1469
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1463
|
-
/* @__PURE__ */
|
|
1464
|
-
|
|
1470
|
+
/* @__PURE__ */ s(
|
|
1471
|
+
pa,
|
|
1465
1472
|
{
|
|
1466
1473
|
"aria-hidden": "true",
|
|
1467
1474
|
className: "ds:size-4 ds:text-[color:var(--accent)]"
|
|
1468
1475
|
}
|
|
1469
1476
|
),
|
|
1470
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u })
|
|
1471
1478
|
] }),
|
|
1472
|
-
/* @__PURE__ */
|
|
1479
|
+
/* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r("booking.slotsAvailable", { count: d }) })
|
|
1473
1480
|
] }),
|
|
1474
1481
|
l.map((c) => {
|
|
1475
1482
|
const x = m[c];
|
|
1476
1483
|
if (x.length === 0) return null;
|
|
1477
|
-
const S =
|
|
1484
|
+
const S = Wa[c];
|
|
1478
1485
|
return /* @__PURE__ */ f(
|
|
1479
1486
|
"div",
|
|
1480
1487
|
{
|
|
1481
1488
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
1482
1489
|
children: [
|
|
1483
1490
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1491
|
+
/* @__PURE__ */ s(S, { "aria-hidden": "true", className: "ds:size-3.5" }),
|
|
1492
|
+
/* @__PURE__ */ s("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: r(`booking.timeOfDay.${c}`) })
|
|
1486
1493
|
] }),
|
|
1487
|
-
/* @__PURE__ */
|
|
1494
|
+
/* @__PURE__ */ s(
|
|
1488
1495
|
"div",
|
|
1489
1496
|
{
|
|
1490
1497
|
role: "group",
|
|
1491
1498
|
"aria-label": r(`booking.timeOfDay.${c}`),
|
|
1492
1499
|
className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
|
|
1493
1500
|
children: x.map((h) => {
|
|
1494
|
-
const
|
|
1495
|
-
return /* @__PURE__ */
|
|
1501
|
+
const w = h.key === a, A = h.available ? w ? "selected" : "idle" : "unavailable";
|
|
1502
|
+
return /* @__PURE__ */ s(
|
|
1496
1503
|
"button",
|
|
1497
1504
|
{
|
|
1498
1505
|
type: "button",
|
|
1499
1506
|
"data-slot-id": h.key,
|
|
1500
1507
|
disabled: !h.available,
|
|
1501
|
-
"aria-pressed":
|
|
1508
|
+
"aria-pressed": w,
|
|
1502
1509
|
"aria-label": r("booking.slotAvailableLabel", {
|
|
1503
1510
|
time: h.time
|
|
1504
1511
|
}),
|
|
1505
1512
|
onClick: () => h.available && i(h),
|
|
1506
|
-
className:
|
|
1513
|
+
className: Ja({ state: A }),
|
|
1507
1514
|
children: h.time
|
|
1508
1515
|
},
|
|
1509
1516
|
h.key
|
|
@@ -1519,10 +1526,10 @@ function Ws({
|
|
|
1519
1526
|
] });
|
|
1520
1527
|
}
|
|
1521
1528
|
const Ae = 4;
|
|
1522
|
-
function
|
|
1529
|
+
function Qa({
|
|
1523
1530
|
availableDates: e,
|
|
1524
1531
|
availableSlots: t,
|
|
1525
|
-
value:
|
|
1532
|
+
value: a,
|
|
1526
1533
|
onChange: i,
|
|
1527
1534
|
onDateSelect: n,
|
|
1528
1535
|
onWindowChange: o,
|
|
@@ -1531,9 +1538,9 @@ function Xs({
|
|
|
1531
1538
|
locale: m,
|
|
1532
1539
|
agentIdBase: d
|
|
1533
1540
|
}) {
|
|
1534
|
-
const l =
|
|
1535
|
-
if (
|
|
1536
|
-
const y = le($(
|
|
1541
|
+
const l = C(() => le(/* @__PURE__ */ new Date()), []), [c, x] = q(() => {
|
|
1542
|
+
if (a.date) {
|
|
1543
|
+
const y = le($(a.date));
|
|
1537
1544
|
if (!ce(l, y)) return y;
|
|
1538
1545
|
}
|
|
1539
1546
|
if (e.length > 0) {
|
|
@@ -1541,22 +1548,22 @@ function Xs({
|
|
|
1541
1548
|
if (ce(y, l)) return y;
|
|
1542
1549
|
}
|
|
1543
1550
|
return l;
|
|
1544
|
-
}), S =
|
|
1551
|
+
}), S = C(
|
|
1545
1552
|
() => je(c, Ae - 1),
|
|
1546
1553
|
[c]
|
|
1547
|
-
), h =
|
|
1548
|
-
const T = je(c, _), O =
|
|
1549
|
-
id:
|
|
1554
|
+
), h = C(() => Array.from({ length: Ae }, (y, _) => {
|
|
1555
|
+
const T = je(c, _), O = se(T), R = (t[O] ?? []).map((V) => ({
|
|
1556
|
+
id: V.key,
|
|
1550
1557
|
// SlotGrid formats `start` as a time via Intl.DateTimeFormat —
|
|
1551
1558
|
// compose a full ISO from the column's date + the slot's HH:mm
|
|
1552
1559
|
// so the locale-formatter has a real timestamp to work with.
|
|
1553
|
-
start: `${O}T${
|
|
1554
|
-
available:
|
|
1560
|
+
start: `${O}T${V.time}:00`,
|
|
1561
|
+
available: V.available
|
|
1555
1562
|
}));
|
|
1556
|
-
return { date: O, slots:
|
|
1557
|
-
}), [c, t]),
|
|
1563
|
+
return { date: O, slots: R };
|
|
1564
|
+
}), [c, t]), w = ce(c, l), A = !0, N = H(() => {
|
|
1558
1565
|
x((y) => {
|
|
1559
|
-
const _ =
|
|
1566
|
+
const _ = Gt(y, Ae);
|
|
1560
1567
|
return ce(l, _) ? l : _;
|
|
1561
1568
|
});
|
|
1562
1569
|
}, [l]), k = H(() => {
|
|
@@ -1567,51 +1574,51 @@ function Xs({
|
|
|
1567
1574
|
const y = le($(e[0]));
|
|
1568
1575
|
!ce(y, l) || e.some((T) => {
|
|
1569
1576
|
const O = le($(T));
|
|
1570
|
-
return !ce(O, S) && !
|
|
1577
|
+
return !ce(O, S) && !qt(O, c);
|
|
1571
1578
|
}) || x(y);
|
|
1572
1579
|
}, [e]), U(() => {
|
|
1573
|
-
o == null || o(
|
|
1580
|
+
o == null || o(se(c), se(S));
|
|
1574
1581
|
}, [c, S, o]);
|
|
1575
1582
|
const b = H(
|
|
1576
1583
|
(y, _) => {
|
|
1577
|
-
const T = typeof _.date == "string" ? _.date :
|
|
1584
|
+
const T = typeof _.date == "string" ? _.date : se(_.date);
|
|
1578
1585
|
i({
|
|
1579
|
-
...vt(Ee(
|
|
1586
|
+
...vt(Ee(a, T), y.id)
|
|
1580
1587
|
}), n == null || n(T);
|
|
1581
1588
|
},
|
|
1582
|
-
[i, n,
|
|
1583
|
-
), p = r || u ? "loading" : "default", I = h.some((y) => y.slots.length > 0),
|
|
1589
|
+
[i, n, a]
|
|
1590
|
+
), p = r || u ? "loading" : "default", I = h.some((y) => y.slots.length > 0), M = e[0];
|
|
1584
1591
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1585
|
-
!I && !!
|
|
1592
|
+
!I && !!M ? /* @__PURE__ */ s(
|
|
1586
1593
|
Je,
|
|
1587
1594
|
{
|
|
1588
|
-
nextAvailableDate:
|
|
1589
|
-
onJump: () => x(le($(
|
|
1595
|
+
nextAvailableDate: M,
|
|
1596
|
+
onJump: () => x(le($(M))),
|
|
1590
1597
|
locale: m
|
|
1591
1598
|
}
|
|
1592
1599
|
) : null,
|
|
1593
|
-
/* @__PURE__ */
|
|
1594
|
-
|
|
1600
|
+
/* @__PURE__ */ s(
|
|
1601
|
+
jt,
|
|
1595
1602
|
{
|
|
1596
1603
|
id: d ? `${d}-slots` : void 0,
|
|
1597
1604
|
days: h,
|
|
1598
1605
|
state: p,
|
|
1599
|
-
selectedSlotId:
|
|
1606
|
+
selectedSlotId: a.slotKey,
|
|
1600
1607
|
maxInitialSlotsPerDay: 6,
|
|
1601
1608
|
locale: m,
|
|
1602
|
-
hasPrevious:
|
|
1603
|
-
hasNext:
|
|
1609
|
+
hasPrevious: w,
|
|
1610
|
+
hasNext: A,
|
|
1604
1611
|
onSlotSelect: b,
|
|
1605
|
-
onPreviousDays:
|
|
1612
|
+
onPreviousDays: N,
|
|
1606
1613
|
onNextDays: k
|
|
1607
1614
|
}
|
|
1608
1615
|
)
|
|
1609
1616
|
] });
|
|
1610
1617
|
}
|
|
1611
|
-
function
|
|
1618
|
+
function kt(e) {
|
|
1612
1619
|
const {
|
|
1613
1620
|
inputs: t,
|
|
1614
|
-
value:
|
|
1621
|
+
value: a,
|
|
1615
1622
|
onChange: i,
|
|
1616
1623
|
onDateSelect: n,
|
|
1617
1624
|
onWindowChange: o,
|
|
@@ -1621,12 +1628,12 @@ function yt(e) {
|
|
|
1621
1628
|
datePickerStyle: d,
|
|
1622
1629
|
agentIdBase: l
|
|
1623
1630
|
} = e;
|
|
1624
|
-
return d === "four-day-grid" ? /* @__PURE__ */
|
|
1625
|
-
|
|
1631
|
+
return d === "four-day-grid" ? /* @__PURE__ */ s(
|
|
1632
|
+
Qa,
|
|
1626
1633
|
{
|
|
1627
1634
|
availableDates: t.availableDates,
|
|
1628
1635
|
availableSlots: t.availableSlots,
|
|
1629
|
-
value:
|
|
1636
|
+
value: a,
|
|
1630
1637
|
onChange: i,
|
|
1631
1638
|
onDateSelect: n,
|
|
1632
1639
|
onWindowChange: o,
|
|
@@ -1635,41 +1642,41 @@ function yt(e) {
|
|
|
1635
1642
|
locale: m,
|
|
1636
1643
|
agentIdBase: l
|
|
1637
1644
|
}
|
|
1638
|
-
) : /* @__PURE__ */
|
|
1639
|
-
|
|
1645
|
+
) : /* @__PURE__ */ s(
|
|
1646
|
+
Ga,
|
|
1640
1647
|
{
|
|
1641
1648
|
availableDates: t.availableDates,
|
|
1642
|
-
selectedDate:
|
|
1649
|
+
selectedDate: a.date,
|
|
1643
1650
|
onSelectDate: (c) => {
|
|
1644
|
-
i(Ee(
|
|
1651
|
+
i(Ee(a, c)), n == null || n(c);
|
|
1645
1652
|
},
|
|
1646
1653
|
locale: m,
|
|
1647
1654
|
loading: r ?? u
|
|
1648
1655
|
}
|
|
1649
1656
|
);
|
|
1650
1657
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const { inputs: t, value:
|
|
1653
|
-
return r === "four-day-grid" || !
|
|
1654
|
-
|
|
1658
|
+
function xt(e) {
|
|
1659
|
+
const { inputs: t, value: a, onChange: i, loadingSlots: n, locale: o, datePickerStyle: r } = e;
|
|
1660
|
+
return r === "four-day-grid" || !a.date ? null : /* @__PURE__ */ s(
|
|
1661
|
+
Xa,
|
|
1655
1662
|
{
|
|
1656
|
-
date:
|
|
1657
|
-
slots: t.availableSlots[
|
|
1658
|
-
selectedSlotKey:
|
|
1659
|
-
onSelect: (u) => i(vt(
|
|
1663
|
+
date: a.date,
|
|
1664
|
+
slots: t.availableSlots[a.date] ?? [],
|
|
1665
|
+
selectedSlotKey: a.slotKey,
|
|
1666
|
+
onSelect: (u) => i(vt(a, u.key)),
|
|
1660
1667
|
loading: n,
|
|
1661
1668
|
locale: o
|
|
1662
1669
|
}
|
|
1663
1670
|
);
|
|
1664
1671
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const { t:
|
|
1667
|
-
{ value: "private", label:
|
|
1668
|
-
{ value: "public", label:
|
|
1672
|
+
function St({ value: e, onChange: t }) {
|
|
1673
|
+
const { t: a } = B(), i = [
|
|
1674
|
+
{ value: "private", label: a("booking.insurance.private") },
|
|
1675
|
+
{ value: "public", label: a("booking.insurance.public") }
|
|
1669
1676
|
];
|
|
1670
1677
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1671
|
-
/* @__PURE__ */
|
|
1672
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: a("booking.insurance.heading") }),
|
|
1679
|
+
/* @__PURE__ */ s(
|
|
1673
1680
|
Be,
|
|
1674
1681
|
{
|
|
1675
1682
|
options: i,
|
|
@@ -1677,16 +1684,16 @@ function xt({ value: e, onChange: t }) {
|
|
|
1677
1684
|
onValueChange: (n) => {
|
|
1678
1685
|
(n === "private" || n === "public") && t(n);
|
|
1679
1686
|
},
|
|
1680
|
-
placeholder:
|
|
1681
|
-
"aria-label":
|
|
1687
|
+
placeholder: a("booking.insurance.placeholder"),
|
|
1688
|
+
"aria-label": a("booking.insurance.heading")
|
|
1682
1689
|
}
|
|
1683
1690
|
)
|
|
1684
1691
|
] });
|
|
1685
1692
|
}
|
|
1686
|
-
function
|
|
1693
|
+
function It({
|
|
1687
1694
|
specialties: e,
|
|
1688
1695
|
value: t,
|
|
1689
|
-
valueIds:
|
|
1696
|
+
valueIds: a,
|
|
1690
1697
|
onChange: i,
|
|
1691
1698
|
onChangeIds: n,
|
|
1692
1699
|
pickerStyle: o = "select"
|
|
@@ -1694,14 +1701,14 @@ function St({
|
|
|
1694
1701
|
const { t: r } = B(), u = e.map((d) => ({
|
|
1695
1702
|
value: d.id,
|
|
1696
1703
|
label: d.label
|
|
1697
|
-
})), m = /* @__PURE__ */
|
|
1704
|
+
})), m = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: r("booking.specialty.heading") });
|
|
1698
1705
|
return o === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1699
1706
|
m,
|
|
1700
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ s(
|
|
1701
1708
|
Ue,
|
|
1702
1709
|
{
|
|
1703
1710
|
options: u,
|
|
1704
|
-
value:
|
|
1711
|
+
value: a ?? [],
|
|
1705
1712
|
onChange: n,
|
|
1706
1713
|
placeholder: r("booking.specialty.placeholder"),
|
|
1707
1714
|
"aria-label": r("booking.specialty.heading"),
|
|
@@ -1710,7 +1717,7 @@ function St({
|
|
|
1710
1717
|
)
|
|
1711
1718
|
] }) : o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1712
1719
|
m,
|
|
1713
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ s(
|
|
1714
1721
|
Ge,
|
|
1715
1722
|
{
|
|
1716
1723
|
options: u,
|
|
@@ -1723,7 +1730,7 @@ function St({
|
|
|
1723
1730
|
)
|
|
1724
1731
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1725
1732
|
m,
|
|
1726
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ s(
|
|
1727
1734
|
Be,
|
|
1728
1735
|
{
|
|
1729
1736
|
options: u,
|
|
@@ -1735,10 +1742,10 @@ function St({
|
|
|
1735
1742
|
)
|
|
1736
1743
|
] });
|
|
1737
1744
|
}
|
|
1738
|
-
function
|
|
1745
|
+
function Nt({
|
|
1739
1746
|
services: e,
|
|
1740
1747
|
value: t,
|
|
1741
|
-
valueIds:
|
|
1748
|
+
valueIds: a,
|
|
1742
1749
|
onChange: i,
|
|
1743
1750
|
onChangeIds: n,
|
|
1744
1751
|
pickerStyle: o,
|
|
@@ -1746,17 +1753,17 @@ function It({
|
|
|
1746
1753
|
}) {
|
|
1747
1754
|
const { t: u } = B(), m = o ?? (r ? "select" : "cards"), d = e.map((c) => ({
|
|
1748
1755
|
value: c.id,
|
|
1749
|
-
label: `${c.label} · ${u("booking.serviceSummary", {
|
|
1756
|
+
label: `${c.label} · ${yt(c) ?? u("booking.serviceSummary", {
|
|
1750
1757
|
minutes: c.durationMin
|
|
1751
1758
|
})}`
|
|
1752
|
-
})), l = /* @__PURE__ */
|
|
1759
|
+
})), l = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.service.heading") });
|
|
1753
1760
|
return m === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1754
1761
|
l,
|
|
1755
|
-
/* @__PURE__ */
|
|
1762
|
+
/* @__PURE__ */ s(
|
|
1756
1763
|
Ue,
|
|
1757
1764
|
{
|
|
1758
1765
|
options: d,
|
|
1759
|
-
value:
|
|
1766
|
+
value: a ?? [],
|
|
1760
1767
|
onChange: n,
|
|
1761
1768
|
placeholder: u("booking.service.placeholder"),
|
|
1762
1769
|
"aria-label": u("booking.service.heading"),
|
|
@@ -1765,7 +1772,7 @@ function It({
|
|
|
1765
1772
|
)
|
|
1766
1773
|
] }) : m === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1767
1774
|
l,
|
|
1768
|
-
/* @__PURE__ */
|
|
1775
|
+
/* @__PURE__ */ s(
|
|
1769
1776
|
Ge,
|
|
1770
1777
|
{
|
|
1771
1778
|
options: d,
|
|
@@ -1778,7 +1785,7 @@ function It({
|
|
|
1778
1785
|
)
|
|
1779
1786
|
] }) : m === "select" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1780
1787
|
l,
|
|
1781
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ s(
|
|
1782
1789
|
Be,
|
|
1783
1790
|
{
|
|
1784
1791
|
options: d,
|
|
@@ -1790,8 +1797,8 @@ function It({
|
|
|
1790
1797
|
)
|
|
1791
1798
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1792
1799
|
l,
|
|
1793
|
-
/* @__PURE__ */
|
|
1794
|
-
|
|
1800
|
+
/* @__PURE__ */ s(
|
|
1801
|
+
Ya,
|
|
1795
1802
|
{
|
|
1796
1803
|
services: e,
|
|
1797
1804
|
selectedServiceId: t,
|
|
@@ -1800,15 +1807,15 @@ function It({
|
|
|
1800
1807
|
)
|
|
1801
1808
|
] });
|
|
1802
1809
|
}
|
|
1803
|
-
function
|
|
1810
|
+
function wt({
|
|
1804
1811
|
operators: e,
|
|
1805
1812
|
value: t,
|
|
1806
|
-
valueIds:
|
|
1813
|
+
valueIds: a,
|
|
1807
1814
|
onChange: i,
|
|
1808
1815
|
onChangeIds: n,
|
|
1809
1816
|
pickerStyle: o = "select"
|
|
1810
1817
|
}) {
|
|
1811
|
-
const { t: r } = B(), u = /* @__PURE__ */
|
|
1818
|
+
const { t: r } = B(), u = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: r("booking.operator.heading") });
|
|
1812
1819
|
if (o === "multi-select" && n) {
|
|
1813
1820
|
const d = e.map((l) => ({
|
|
1814
1821
|
value: l.id,
|
|
@@ -1816,11 +1823,11 @@ function Nt({
|
|
|
1816
1823
|
}));
|
|
1817
1824
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1818
1825
|
u,
|
|
1819
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ s(
|
|
1820
1827
|
Ue,
|
|
1821
1828
|
{
|
|
1822
1829
|
options: d,
|
|
1823
|
-
value:
|
|
1830
|
+
value: a ?? [],
|
|
1824
1831
|
onChange: n,
|
|
1825
1832
|
placeholder: r("booking.operator.placeholder"),
|
|
1826
1833
|
"aria-label": r("booking.operator.heading"),
|
|
@@ -1835,7 +1842,7 @@ function Nt({
|
|
|
1835
1842
|
];
|
|
1836
1843
|
return o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1837
1844
|
u,
|
|
1838
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ s(
|
|
1839
1846
|
Ge,
|
|
1840
1847
|
{
|
|
1841
1848
|
options: m,
|
|
@@ -1848,7 +1855,7 @@ function Nt({
|
|
|
1848
1855
|
)
|
|
1849
1856
|
] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1850
1857
|
u,
|
|
1851
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ s(
|
|
1852
1859
|
Be,
|
|
1853
1860
|
{
|
|
1854
1861
|
options: m,
|
|
@@ -1860,38 +1867,38 @@ function Nt({
|
|
|
1860
1867
|
)
|
|
1861
1868
|
] });
|
|
1862
1869
|
}
|
|
1863
|
-
function
|
|
1870
|
+
function Ct({
|
|
1864
1871
|
customSlot: e
|
|
1865
1872
|
}) {
|
|
1866
1873
|
const { t } = B();
|
|
1867
|
-
return e ? /* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
1874
|
+
return e ? /* @__PURE__ */ s(X, { children: e }) : /* @__PURE__ */ f(j, { variant: "warning", children: [
|
|
1875
|
+
/* @__PURE__ */ s(j.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
|
|
1876
|
+
/* @__PURE__ */ s(j.Description, { children: t("booking.onboardingIncomplete.description") })
|
|
1870
1877
|
] });
|
|
1871
1878
|
}
|
|
1872
1879
|
function Je({
|
|
1873
1880
|
nextAvailableDate: e,
|
|
1874
1881
|
onJump: t,
|
|
1875
|
-
locale:
|
|
1882
|
+
locale: a
|
|
1876
1883
|
}) {
|
|
1877
|
-
const { t: i } = B(), n =
|
|
1884
|
+
const { t: i } = B(), n = C(() => {
|
|
1878
1885
|
try {
|
|
1879
|
-
return new Intl.DateTimeFormat(
|
|
1886
|
+
return new Intl.DateTimeFormat(a, { dateStyle: "long" }).format(
|
|
1880
1887
|
$(e)
|
|
1881
1888
|
);
|
|
1882
1889
|
} catch {
|
|
1883
1890
|
return e;
|
|
1884
1891
|
}
|
|
1885
|
-
}, [e,
|
|
1892
|
+
}, [e, a]);
|
|
1886
1893
|
return /* @__PURE__ */ f(j, { variant: "info", children: [
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ s(j.Description, { children: i("booking.nextAvailable.description", { date: n }) }),
|
|
1895
|
+
/* @__PURE__ */ s(j.Action, { children: /* @__PURE__ */ s(ne, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
|
|
1889
1896
|
] });
|
|
1890
1897
|
}
|
|
1891
|
-
function
|
|
1898
|
+
function es({
|
|
1892
1899
|
snapshot: e,
|
|
1893
1900
|
operators: t,
|
|
1894
|
-
specialties:
|
|
1901
|
+
specialties: a,
|
|
1895
1902
|
services: i,
|
|
1896
1903
|
locale: n,
|
|
1897
1904
|
mode: o,
|
|
@@ -1900,10 +1907,10 @@ function Qs({
|
|
|
1900
1907
|
onModify: m
|
|
1901
1908
|
}) {
|
|
1902
1909
|
const { t: d } = B(), c = (e.details.confirmationChannels ?? ["email"]).map(
|
|
1903
|
-
(
|
|
1910
|
+
(N) => d(`booking.confirmation.channel.${N}`)
|
|
1904
1911
|
), x = o === "demo" ? d("booking.success.descriptionDemo") : c.length > 1 ? d("booking.success.descriptionMultiple", {
|
|
1905
1912
|
channels: c.join(" · ")
|
|
1906
|
-
}) : d("booking.success.descriptionSingle", { channel: c[0] }), S =
|
|
1913
|
+
}) : d("booking.success.descriptionSingle", { channel: c[0] }), S = C(() => {
|
|
1907
1914
|
if (e.date)
|
|
1908
1915
|
try {
|
|
1909
1916
|
return new Intl.DateTimeFormat(n, {
|
|
@@ -1914,7 +1921,7 @@ function Qs({
|
|
|
1914
1921
|
} catch {
|
|
1915
1922
|
return e.date;
|
|
1916
1923
|
}
|
|
1917
|
-
}, [e.date, n]), h = e.operatorId ? t.find((
|
|
1924
|
+
}, [e.date, n]), h = e.operatorId ? t.find((N) => N.id === e.operatorId) : void 0, w = e.specialtyId ? a.find((N) => N.id === e.specialtyId) : void 0, A = e.serviceId ? i.find((N) => N.id === e.serviceId) : void 0;
|
|
1918
1925
|
return /* @__PURE__ */ f(
|
|
1919
1926
|
"div",
|
|
1920
1927
|
{
|
|
@@ -1922,40 +1929,40 @@ function Qs({
|
|
|
1922
1929
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1923
1930
|
children: [
|
|
1924
1931
|
/* @__PURE__ */ f(j, { variant: "success", children: [
|
|
1925
|
-
/* @__PURE__ */
|
|
1926
|
-
/* @__PURE__ */
|
|
1932
|
+
/* @__PURE__ */ s(j.Title, { as: "h3", children: d("booking.success.heading") }),
|
|
1933
|
+
/* @__PURE__ */ s(j.Description, { children: x })
|
|
1927
1934
|
] }),
|
|
1928
|
-
/* @__PURE__ */
|
|
1929
|
-
|
|
1930
|
-
/* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ s("div", { className: "ds:rounded-[var(--radius-md)] ds:bg-[var(--secondary)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ f("dl", { className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] ds:m-0", children: [
|
|
1936
|
+
w ? /* @__PURE__ */ f(X, { children: [
|
|
1937
|
+
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summarySpecialty") }),
|
|
1938
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: w.label })
|
|
1932
1939
|
] }) : null,
|
|
1933
|
-
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
1940
|
+
A ? /* @__PURE__ */ f(X, { children: [
|
|
1941
|
+
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryService") }),
|
|
1942
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: A.label })
|
|
1936
1943
|
] }) : null,
|
|
1937
1944
|
S ? /* @__PURE__ */ f(X, { children: [
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryDate") }),
|
|
1946
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: S })
|
|
1940
1947
|
] }) : null,
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryTime") }),
|
|
1949
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
|
|
1943
1950
|
h ? /* @__PURE__ */ f(X, { children: [
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
/* @__PURE__ */
|
|
1951
|
+
/* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryProvider") }),
|
|
1952
|
+
/* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: h.name })
|
|
1946
1953
|
] }) : null
|
|
1947
1954
|
] }) }),
|
|
1948
1955
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
r ? /* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ s(ne, { intent: "secondary", size: "md", onClick: u, children: d("booking.success.bookAnother") }),
|
|
1957
|
+
r ? /* @__PURE__ */ s(ne, { intent: "ghost", size: "md", onClick: m, children: d("booking.success.modifyBooking") }) : null
|
|
1951
1958
|
] })
|
|
1952
1959
|
]
|
|
1953
1960
|
}
|
|
1954
1961
|
);
|
|
1955
1962
|
}
|
|
1956
|
-
function
|
|
1963
|
+
function Dt({ customSlot: e }) {
|
|
1957
1964
|
const { t } = B();
|
|
1958
|
-
return e ? /* @__PURE__ */
|
|
1965
|
+
return e ? /* @__PURE__ */ s(X, { children: e }) : /* @__PURE__ */ s(
|
|
1959
1966
|
dt,
|
|
1960
1967
|
{
|
|
1961
1968
|
variant: "no-results",
|
|
@@ -1964,10 +1971,10 @@ function Ct({ customSlot: e }) {
|
|
|
1964
1971
|
}
|
|
1965
1972
|
);
|
|
1966
1973
|
}
|
|
1967
|
-
function
|
|
1974
|
+
function ts(e) {
|
|
1968
1975
|
const {
|
|
1969
1976
|
cascade: t,
|
|
1970
|
-
inputs:
|
|
1977
|
+
inputs: a,
|
|
1971
1978
|
value: i,
|
|
1972
1979
|
onChange: n,
|
|
1973
1980
|
onSubmit: o,
|
|
@@ -1980,22 +1987,22 @@ function ea(e) {
|
|
|
1980
1987
|
datePickerStyle: x,
|
|
1981
1988
|
specialtyPickerStyle: S,
|
|
1982
1989
|
servicePickerStyle: h,
|
|
1983
|
-
operatorPickerStyle:
|
|
1984
|
-
submitting:
|
|
1985
|
-
locale:
|
|
1990
|
+
operatorPickerStyle: w,
|
|
1991
|
+
submitting: A,
|
|
1992
|
+
locale: N,
|
|
1986
1993
|
detailsProps: k,
|
|
1987
1994
|
agentIdBase: b
|
|
1988
1995
|
} = e, { t: p } = B();
|
|
1989
1996
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1990
|
-
t.gates.insurance ? /* @__PURE__ */
|
|
1991
|
-
|
|
1997
|
+
t.gates.insurance ? /* @__PURE__ */ s(
|
|
1998
|
+
St,
|
|
1992
1999
|
{
|
|
1993
2000
|
value: i.insuranceType,
|
|
1994
2001
|
onChange: (I) => n(ct(i, I))
|
|
1995
2002
|
}
|
|
1996
2003
|
) : null,
|
|
1997
|
-
t.gates.specialty ? /* @__PURE__ */
|
|
1998
|
-
|
|
2004
|
+
t.gates.specialty ? /* @__PURE__ */ s(
|
|
2005
|
+
It,
|
|
1999
2006
|
{
|
|
2000
2007
|
specialties: t.filtered.specialties,
|
|
2001
2008
|
value: i.specialtyId,
|
|
@@ -2005,8 +2012,8 @@ function ea(e) {
|
|
|
2005
2012
|
pickerStyle: S
|
|
2006
2013
|
}
|
|
2007
2014
|
) : null,
|
|
2008
|
-
t.gates.service ? t.filtered.services.length === 0 ? /* @__PURE__ */
|
|
2009
|
-
|
|
2015
|
+
t.gates.service ? t.filtered.services.length === 0 ? /* @__PURE__ */ s(Dt, { customSlot: r }) : /* @__PURE__ */ s(
|
|
2016
|
+
Nt,
|
|
2010
2017
|
{
|
|
2011
2018
|
services: t.filtered.services,
|
|
2012
2019
|
value: i.serviceId,
|
|
@@ -2016,65 +2023,65 @@ function ea(e) {
|
|
|
2016
2023
|
pickerStyle: h
|
|
2017
2024
|
}
|
|
2018
2025
|
) : null,
|
|
2019
|
-
t.gates.onboardingIncomplete ? /* @__PURE__ */
|
|
2020
|
-
t.gates.operator ? /* @__PURE__ */
|
|
2021
|
-
|
|
2026
|
+
t.gates.onboardingIncomplete ? /* @__PURE__ */ s(Ct, { customSlot: u }) : null,
|
|
2027
|
+
t.gates.operator ? /* @__PURE__ */ s(
|
|
2028
|
+
wt,
|
|
2022
2029
|
{
|
|
2023
2030
|
operators: t.filtered.operators,
|
|
2024
2031
|
value: i.operatorId,
|
|
2025
2032
|
valueIds: i.operatorIds,
|
|
2026
2033
|
onChange: (I) => n(ft(i, I)),
|
|
2027
2034
|
onChangeIds: (I) => n(ht(i, I)),
|
|
2028
|
-
pickerStyle:
|
|
2035
|
+
pickerStyle: w
|
|
2029
2036
|
}
|
|
2030
2037
|
) : null,
|
|
2031
2038
|
t.gates.date ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
|
|
2039
|
+
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: p("booking.date.heading") }),
|
|
2040
|
+
a.availableDates.length === 0 && a.nextAvailableDate ? /* @__PURE__ */ s(
|
|
2034
2041
|
Je,
|
|
2035
2042
|
{
|
|
2036
|
-
nextAvailableDate:
|
|
2037
|
-
onJump: () => n(Ee(i,
|
|
2038
|
-
locale:
|
|
2043
|
+
nextAvailableDate: a.nextAvailableDate,
|
|
2044
|
+
onJump: () => n(Ee(i, a.nextAvailableDate)),
|
|
2045
|
+
locale: N
|
|
2039
2046
|
}
|
|
2040
|
-
) :
|
|
2041
|
-
inputs:
|
|
2047
|
+
) : kt({
|
|
2048
|
+
inputs: a,
|
|
2042
2049
|
value: i,
|
|
2043
2050
|
onChange: n,
|
|
2044
2051
|
onDateSelect: l,
|
|
2045
2052
|
onWindowChange: c,
|
|
2046
2053
|
loadingDates: m,
|
|
2047
2054
|
loadingSlots: d,
|
|
2048
|
-
locale:
|
|
2055
|
+
locale: N,
|
|
2049
2056
|
datePickerStyle: x,
|
|
2050
2057
|
agentIdBase: b
|
|
2051
2058
|
})
|
|
2052
2059
|
] }) : null,
|
|
2053
2060
|
t.gates.slot && i.date && x === "month-calendar" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
|
|
2056
|
-
inputs:
|
|
2061
|
+
/* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: p("booking.slot.heading") }),
|
|
2062
|
+
xt({
|
|
2063
|
+
inputs: a,
|
|
2057
2064
|
value: i,
|
|
2058
2065
|
onChange: n,
|
|
2059
2066
|
loadingSlots: d,
|
|
2060
|
-
locale:
|
|
2067
|
+
locale: N,
|
|
2061
2068
|
datePickerStyle: x
|
|
2062
2069
|
})
|
|
2063
2070
|
] }) : null,
|
|
2064
|
-
t.gates.details && t.selectedSlot ? /* @__PURE__ */
|
|
2071
|
+
t.gates.details && t.selectedSlot ? /* @__PURE__ */ s(
|
|
2065
2072
|
Ye,
|
|
2066
2073
|
{
|
|
2067
2074
|
...k,
|
|
2068
2075
|
value: i.details ?? {},
|
|
2069
2076
|
onChange: (I) => n({ ...i, details: I }),
|
|
2070
2077
|
onSubmit: o,
|
|
2071
|
-
submitting:
|
|
2078
|
+
submitting: A,
|
|
2072
2079
|
defaultPhoneCountry: e.policy.country
|
|
2073
2080
|
}
|
|
2074
2081
|
) : null
|
|
2075
2082
|
] });
|
|
2076
2083
|
}
|
|
2077
|
-
function K(e, t,
|
|
2084
|
+
function K(e, t, a = {}) {
|
|
2078
2085
|
const {
|
|
2079
2086
|
cascade: i,
|
|
2080
2087
|
inputs: n,
|
|
@@ -2088,70 +2095,70 @@ function K(e, t, s = {}) {
|
|
|
2088
2095
|
onDateSelect: x,
|
|
2089
2096
|
onWindowChange: S,
|
|
2090
2097
|
datePickerStyle: h,
|
|
2091
|
-
specialtyPickerStyle:
|
|
2092
|
-
servicePickerStyle:
|
|
2093
|
-
operatorPickerStyle:
|
|
2098
|
+
specialtyPickerStyle: w,
|
|
2099
|
+
servicePickerStyle: A,
|
|
2100
|
+
operatorPickerStyle: N,
|
|
2094
2101
|
submitting: k,
|
|
2095
2102
|
locale: b,
|
|
2096
2103
|
detailsProps: p,
|
|
2097
2104
|
policy: I,
|
|
2098
|
-
agentIdBase:
|
|
2105
|
+
agentIdBase: M
|
|
2099
2106
|
} = t;
|
|
2100
2107
|
switch (e) {
|
|
2101
2108
|
case 1:
|
|
2102
|
-
return /* @__PURE__ */
|
|
2103
|
-
|
|
2109
|
+
return /* @__PURE__ */ s(
|
|
2110
|
+
St,
|
|
2104
2111
|
{
|
|
2105
2112
|
value: o.insuranceType,
|
|
2106
2113
|
onChange: (g) => r(ct(o, g))
|
|
2107
2114
|
}
|
|
2108
2115
|
);
|
|
2109
2116
|
case 2:
|
|
2110
|
-
return /* @__PURE__ */
|
|
2111
|
-
|
|
2117
|
+
return /* @__PURE__ */ s(
|
|
2118
|
+
It,
|
|
2112
2119
|
{
|
|
2113
2120
|
specialties: i.filtered.specialties,
|
|
2114
2121
|
value: o.specialtyId,
|
|
2115
2122
|
valueIds: o.specialtyIds,
|
|
2116
2123
|
onChange: (g) => r(ut(o, g)),
|
|
2117
2124
|
onChangeIds: (g) => r(pt(o, g)),
|
|
2118
|
-
pickerStyle:
|
|
2125
|
+
pickerStyle: w
|
|
2119
2126
|
}
|
|
2120
2127
|
);
|
|
2121
2128
|
case 3:
|
|
2122
|
-
return i.filtered.services.length === 0 ? /* @__PURE__ */
|
|
2123
|
-
|
|
2129
|
+
return i.filtered.services.length === 0 ? /* @__PURE__ */ s(Dt, { customSlot: m }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ s(Ct, { customSlot: d }) : /* @__PURE__ */ s(
|
|
2130
|
+
Nt,
|
|
2124
2131
|
{
|
|
2125
2132
|
services: i.filtered.services,
|
|
2126
2133
|
value: o.serviceId,
|
|
2127
2134
|
valueIds: o.serviceIds,
|
|
2128
2135
|
onChange: (g) => r(mt(o, g)),
|
|
2129
2136
|
onChangeIds: (g) => r(gt(o, g)),
|
|
2130
|
-
pickerStyle:
|
|
2131
|
-
compact:
|
|
2137
|
+
pickerStyle: A,
|
|
2138
|
+
compact: a.compactService
|
|
2132
2139
|
}
|
|
2133
2140
|
);
|
|
2134
2141
|
case 4:
|
|
2135
|
-
return /* @__PURE__ */
|
|
2136
|
-
|
|
2142
|
+
return /* @__PURE__ */ s(
|
|
2143
|
+
wt,
|
|
2137
2144
|
{
|
|
2138
2145
|
operators: i.filtered.operators,
|
|
2139
2146
|
value: o.operatorId,
|
|
2140
2147
|
valueIds: o.operatorIds,
|
|
2141
2148
|
onChange: (g) => r(ft(o, g)),
|
|
2142
2149
|
onChangeIds: (g) => r(ht(o, g)),
|
|
2143
|
-
pickerStyle:
|
|
2150
|
+
pickerStyle: N
|
|
2144
2151
|
}
|
|
2145
2152
|
);
|
|
2146
2153
|
case 5:
|
|
2147
|
-
return n.availableDates.length === 0 && n.nextAvailableDate ? /* @__PURE__ */
|
|
2154
|
+
return n.availableDates.length === 0 && n.nextAvailableDate ? /* @__PURE__ */ s(
|
|
2148
2155
|
Je,
|
|
2149
2156
|
{
|
|
2150
2157
|
nextAvailableDate: n.nextAvailableDate,
|
|
2151
2158
|
onJump: () => r(Ee(o, n.nextAvailableDate)),
|
|
2152
2159
|
locale: b
|
|
2153
2160
|
}
|
|
2154
|
-
) :
|
|
2161
|
+
) : kt({
|
|
2155
2162
|
inputs: n,
|
|
2156
2163
|
value: o,
|
|
2157
2164
|
onChange: r,
|
|
@@ -2161,10 +2168,10 @@ function K(e, t, s = {}) {
|
|
|
2161
2168
|
loadingSlots: c,
|
|
2162
2169
|
locale: b,
|
|
2163
2170
|
datePickerStyle: h,
|
|
2164
|
-
agentIdBase:
|
|
2171
|
+
agentIdBase: M
|
|
2165
2172
|
});
|
|
2166
2173
|
case 6:
|
|
2167
|
-
return
|
|
2174
|
+
return xt({
|
|
2168
2175
|
inputs: n,
|
|
2169
2176
|
value: o,
|
|
2170
2177
|
onChange: r,
|
|
@@ -2173,7 +2180,7 @@ function K(e, t, s = {}) {
|
|
|
2173
2180
|
datePickerStyle: h
|
|
2174
2181
|
});
|
|
2175
2182
|
case 7:
|
|
2176
|
-
return i.selectedSlot ? /* @__PURE__ */
|
|
2183
|
+
return i.selectedSlot ? /* @__PURE__ */ s(
|
|
2177
2184
|
Ye,
|
|
2178
2185
|
{
|
|
2179
2186
|
...p,
|
|
@@ -2191,7 +2198,7 @@ function K(e, t, s = {}) {
|
|
|
2191
2198
|
}
|
|
2192
2199
|
function Ze() {
|
|
2193
2200
|
const { t: e } = B();
|
|
2194
|
-
return
|
|
2201
|
+
return C(
|
|
2195
2202
|
() => ({
|
|
2196
2203
|
1: e("booking.insurance.heading"),
|
|
2197
2204
|
2: e("booking.specialty.heading"),
|
|
@@ -2204,21 +2211,21 @@ function Ze() {
|
|
|
2204
2211
|
[e]
|
|
2205
2212
|
);
|
|
2206
2213
|
}
|
|
2207
|
-
function
|
|
2208
|
-
const { cascade: t, value:
|
|
2214
|
+
function as(e) {
|
|
2215
|
+
const { cascade: t, value: a, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, r = Ze(), u = C(
|
|
2209
2216
|
() => o === "four-day-grid" ? t.visibleSteps.filter((l) => l !== 6) : t.visibleSteps,
|
|
2210
2217
|
[t.visibleSteps, o]
|
|
2211
|
-
), m =
|
|
2218
|
+
), m = C(
|
|
2212
2219
|
() => u.map((l) => ({
|
|
2213
2220
|
label: r[l],
|
|
2214
|
-
summary:
|
|
2215
|
-
status: ke(l,
|
|
2221
|
+
summary: Mt(l, a, t),
|
|
2222
|
+
status: ke(l, a) && l < t.currentStep ? "completed" : void 0,
|
|
2216
2223
|
content: K(l, e, { compactService: !0 })
|
|
2217
2224
|
})),
|
|
2218
|
-
[u,
|
|
2225
|
+
[u, a, r, t, e]
|
|
2219
2226
|
), d = Math.max(0, t.visibleSteps.indexOf(i));
|
|
2220
|
-
return /* @__PURE__ */
|
|
2221
|
-
|
|
2227
|
+
return /* @__PURE__ */ s(
|
|
2228
|
+
zt,
|
|
2222
2229
|
{
|
|
2223
2230
|
activeStep: d,
|
|
2224
2231
|
steps: m,
|
|
@@ -2247,20 +2254,20 @@ function ke(e, t) {
|
|
|
2247
2254
|
return !1;
|
|
2248
2255
|
}
|
|
2249
2256
|
}
|
|
2250
|
-
function
|
|
2257
|
+
function Mt(e, t, a) {
|
|
2251
2258
|
var i;
|
|
2252
2259
|
if (ke(e, t))
|
|
2253
2260
|
switch (e) {
|
|
2254
2261
|
case 1:
|
|
2255
2262
|
return t.insuranceType;
|
|
2256
2263
|
case 2: {
|
|
2257
|
-
const n =
|
|
2264
|
+
const n = a.filtered.specialties.find(
|
|
2258
2265
|
(o) => o.id === t.specialtyId
|
|
2259
2266
|
);
|
|
2260
2267
|
return n == null ? void 0 : n.label;
|
|
2261
2268
|
}
|
|
2262
2269
|
case 3: {
|
|
2263
|
-
const n =
|
|
2270
|
+
const n = a.filtered.services.find(
|
|
2264
2271
|
(o) => o.id === t.serviceId
|
|
2265
2272
|
);
|
|
2266
2273
|
return n == null ? void 0 : n.label;
|
|
@@ -2268,32 +2275,32 @@ function Dt(e, t, s) {
|
|
|
2268
2275
|
case 4: {
|
|
2269
2276
|
const n = He(t);
|
|
2270
2277
|
if (!n) return;
|
|
2271
|
-
const o =
|
|
2278
|
+
const o = a.filtered.operators.find((r) => r.id === n);
|
|
2272
2279
|
return o == null ? void 0 : o.name;
|
|
2273
2280
|
}
|
|
2274
2281
|
case 5:
|
|
2275
2282
|
return t.date;
|
|
2276
2283
|
case 6:
|
|
2277
|
-
return (i =
|
|
2284
|
+
return (i = a.selectedSlot) == null ? void 0 : i.time;
|
|
2278
2285
|
case 7:
|
|
2279
2286
|
return;
|
|
2280
2287
|
}
|
|
2281
2288
|
}
|
|
2282
|
-
function
|
|
2283
|
-
const { cascade: t, value:
|
|
2289
|
+
function ss(e) {
|
|
2290
|
+
const { cascade: t, value: a, setActiveStep: i } = e, { t: n } = B(), o = Ze(), r = t.visibleSteps.filter(
|
|
2284
2291
|
(m) => m === 1 || m === 2 || m === 3 || m === 4
|
|
2285
2292
|
), u = r.some(
|
|
2286
|
-
(m) => !ke(m,
|
|
2293
|
+
(m) => !ke(m, a)
|
|
2287
2294
|
);
|
|
2288
2295
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2289
|
-
u ? r.filter((m) => !ke(m,
|
|
2296
|
+
u ? r.filter((m) => !ke(m, a)).slice(0, 1).map((m) => /* @__PURE__ */ s("div", { children: K(m, e, { compactService: !0 }) }, `csf-${m}`)) : /* @__PURE__ */ s(
|
|
2290
2297
|
"div",
|
|
2291
2298
|
{
|
|
2292
2299
|
role: "group",
|
|
2293
2300
|
"aria-label": n("booking.regionLabel"),
|
|
2294
2301
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
2295
2302
|
children: r.map((m) => {
|
|
2296
|
-
const d =
|
|
2303
|
+
const d = Mt(m, a, t);
|
|
2297
2304
|
return d ? /* @__PURE__ */ f(
|
|
2298
2305
|
ne,
|
|
2299
2306
|
{
|
|
@@ -2316,25 +2323,25 @@ function sa(e) {
|
|
|
2316
2323
|
// historic 2-col date|slot split collapses to a single column
|
|
2317
2324
|
// so the picker spans the full width instead of orphaning an
|
|
2318
2325
|
// empty right cell.
|
|
2319
|
-
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */
|
|
2320
|
-
/* @__PURE__ */
|
|
2321
|
-
/* @__PURE__ */
|
|
2326
|
+
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s("div", { children: K(5, e) }) : /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
|
|
2327
|
+
/* @__PURE__ */ s("div", { className: "ds:min-w-0", children: K(5, e) }),
|
|
2328
|
+
/* @__PURE__ */ s("div", { className: "ds:min-w-0", children: a.date ? K(6, e) : null })
|
|
2322
2329
|
] })
|
|
2323
2330
|
) : null,
|
|
2324
|
-
t.gates.details ? /* @__PURE__ */
|
|
2331
|
+
t.gates.details ? /* @__PURE__ */ s("div", { children: K(7, e) }) : null
|
|
2325
2332
|
] });
|
|
2326
2333
|
}
|
|
2327
|
-
function
|
|
2328
|
-
const { cascade: t, datePickerStyle:
|
|
2334
|
+
function is(e) {
|
|
2335
|
+
const { cascade: t, datePickerStyle: a } = e, i = t.visibleSteps.filter(
|
|
2329
2336
|
(o) => o === 1 || o === 2 || o === 3 || o === 4
|
|
2330
2337
|
);
|
|
2331
2338
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2332
2339
|
/* @__PURE__ */ f(
|
|
2333
2340
|
"div",
|
|
2334
2341
|
{
|
|
2335
|
-
className:
|
|
2342
|
+
className: a === "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",
|
|
2336
2343
|
children: [
|
|
2337
|
-
/* @__PURE__ */
|
|
2344
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: i.map((o) => /* @__PURE__ */ s("div", { children: K(o, e, { compactService: !0 }) }, `fbf-${o}`)) }),
|
|
2338
2345
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2339
2346
|
t.gates.date ? K(5, e) : null,
|
|
2340
2347
|
t.gates.slot && e.value.date ? K(6, e) : null
|
|
@@ -2345,19 +2352,19 @@ function aa(e) {
|
|
|
2345
2352
|
t.gates.details ? K(7, e) : null
|
|
2346
2353
|
] });
|
|
2347
2354
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const { cascade: t, value:
|
|
2355
|
+
function ns(e) {
|
|
2356
|
+
const { cascade: t, value: a, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t: r } = B(), u = Ze(), m = C(
|
|
2350
2357
|
() => o === "four-day-grid" ? t.visibleSteps.filter((h) => h !== 6) : t.visibleSteps,
|
|
2351
2358
|
[t.visibleSteps, o]
|
|
2352
|
-
), d = Math.max(0, m.indexOf(i)), l = m.length, c =
|
|
2359
|
+
), d = Math.max(0, m.indexOf(i)), l = m.length, c = C(
|
|
2353
2360
|
() => m.map((h) => ({ label: u[h] })),
|
|
2354
2361
|
[m, u]
|
|
2355
|
-
), x = d > 0, S = d < l - 1 && ke(i,
|
|
2362
|
+
), x = d > 0, S = d < l - 1 && ke(i, a);
|
|
2356
2363
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2357
|
-
/* @__PURE__ */
|
|
2358
|
-
/* @__PURE__ */
|
|
2364
|
+
/* @__PURE__ */ s(Kt, { activeStep: d, steps: c }),
|
|
2365
|
+
/* @__PURE__ */ s("div", { children: K(i, e, { compactService: !0 }) }),
|
|
2359
2366
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2360
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ s(
|
|
2361
2368
|
ne,
|
|
2362
2369
|
{
|
|
2363
2370
|
intent: "ghost",
|
|
@@ -2370,7 +2377,7 @@ function ia(e) {
|
|
|
2370
2377
|
children: r("booking.actions.back")
|
|
2371
2378
|
}
|
|
2372
2379
|
),
|
|
2373
|
-
i < 7 ? /* @__PURE__ */
|
|
2380
|
+
i < 7 ? /* @__PURE__ */ s(
|
|
2374
2381
|
ne,
|
|
2375
2382
|
{
|
|
2376
2383
|
intent: "primary",
|
|
@@ -2386,14 +2393,14 @@ function ia(e) {
|
|
|
2386
2393
|
] })
|
|
2387
2394
|
] });
|
|
2388
2395
|
}
|
|
2389
|
-
const
|
|
2396
|
+
const os = [], rs = [], ds = ot(
|
|
2390
2397
|
({
|
|
2391
2398
|
variant: e = "inline-list",
|
|
2392
2399
|
country: t,
|
|
2393
2400
|
// No default — the cascade engine treats `undefined` as "auto-on
|
|
2394
2401
|
// when `specialties` has items" so consumers who pass specialty
|
|
2395
2402
|
// data without the explicit flag still get the step.
|
|
2396
|
-
useSpecialties:
|
|
2403
|
+
useSpecialties: a,
|
|
2397
2404
|
allowOperatorSelection: i = !1,
|
|
2398
2405
|
lockedOperatorId: n,
|
|
2399
2406
|
autoSelectSingleService: o = !1,
|
|
@@ -2406,22 +2413,22 @@ const na = [], oa = [], ra = ot(
|
|
|
2406
2413
|
requireCodiceFiscale: x,
|
|
2407
2414
|
requireDateOfBirth: S,
|
|
2408
2415
|
requireInsuranceNumber: h,
|
|
2409
|
-
showNote:
|
|
2410
|
-
showReturningPatientFlag:
|
|
2411
|
-
privacyPolicyUrl:
|
|
2416
|
+
showNote: w,
|
|
2417
|
+
showReturningPatientFlag: A,
|
|
2418
|
+
privacyPolicyUrl: N,
|
|
2412
2419
|
termsUrl: k,
|
|
2413
2420
|
validateCodiceFiscale: b,
|
|
2414
2421
|
validateInsuranceNumber: p,
|
|
2415
2422
|
confirmationChannels: I,
|
|
2416
|
-
defaultConfirmationChannels:
|
|
2423
|
+
defaultConfirmationChannels: M,
|
|
2417
2424
|
value: g,
|
|
2418
2425
|
onChange: y,
|
|
2419
2426
|
onSubmit: _,
|
|
2420
2427
|
onStepChange: T,
|
|
2421
2428
|
onDateSelect: O,
|
|
2422
2429
|
onWindowChange: E,
|
|
2423
|
-
datePickerStyle:
|
|
2424
|
-
specialtyPickerStyle:
|
|
2430
|
+
datePickerStyle: R = "month-calendar",
|
|
2431
|
+
specialtyPickerStyle: V,
|
|
2425
2432
|
servicePickerStyle: P,
|
|
2426
2433
|
operatorPickerStyle: ee,
|
|
2427
2434
|
loadingDates: G,
|
|
@@ -2433,15 +2440,15 @@ const na = [], oa = [], ra = ot(
|
|
|
2433
2440
|
surface: me = "flat",
|
|
2434
2441
|
emptyServicesSlot: Se,
|
|
2435
2442
|
onboardingIncompleteSlot: Ie,
|
|
2436
|
-
"aria-label":
|
|
2443
|
+
"aria-label": Le,
|
|
2437
2444
|
id: J,
|
|
2438
|
-
className:
|
|
2445
|
+
className: Re,
|
|
2439
2446
|
...Ne
|
|
2440
2447
|
}, we) => {
|
|
2441
|
-
const { t: re, i18n: v } = B(),
|
|
2448
|
+
const { t: re, i18n: v } = B(), D = e ?? "inline-list", ae = v.language ?? "en", Z = r ?? os, de = m ?? rs;
|
|
2442
2449
|
U(() => {
|
|
2443
|
-
const F =
|
|
2444
|
-
useSpecialties:
|
|
2450
|
+
const F = Ea(g, {
|
|
2451
|
+
useSpecialties: a,
|
|
2445
2452
|
lockedOperatorId: n,
|
|
2446
2453
|
autoSelectSingleService: o,
|
|
2447
2454
|
specialties: Z,
|
|
@@ -2450,15 +2457,15 @@ const na = [], oa = [], ra = ot(
|
|
|
2450
2457
|
(F.specialtyId !== g.specialtyId || F.operatorId !== g.operatorId || F.serviceId !== g.serviceId) && y(F);
|
|
2451
2458
|
}, [
|
|
2452
2459
|
n,
|
|
2453
|
-
|
|
2460
|
+
a,
|
|
2454
2461
|
o,
|
|
2455
2462
|
Z,
|
|
2456
2463
|
u
|
|
2457
2464
|
]);
|
|
2458
|
-
const
|
|
2459
|
-
() =>
|
|
2465
|
+
const L = C(
|
|
2466
|
+
() => Oa({
|
|
2460
2467
|
country: t,
|
|
2461
|
-
useSpecialties:
|
|
2468
|
+
useSpecialties: a,
|
|
2462
2469
|
allowOperatorSelection: i,
|
|
2463
2470
|
lockedOperatorId: n,
|
|
2464
2471
|
specialties: Z,
|
|
@@ -2469,7 +2476,7 @@ const na = [], oa = [], ra = ot(
|
|
|
2469
2476
|
}),
|
|
2470
2477
|
[
|
|
2471
2478
|
t,
|
|
2472
|
-
|
|
2479
|
+
a,
|
|
2473
2480
|
i,
|
|
2474
2481
|
n,
|
|
2475
2482
|
o,
|
|
@@ -2481,16 +2488,16 @@ const na = [], oa = [], ra = ot(
|
|
|
2481
2488
|
g
|
|
2482
2489
|
]
|
|
2483
2490
|
), [We, ge] = q(
|
|
2484
|
-
|
|
2485
|
-
), Xe = ie(
|
|
2491
|
+
L.currentStep
|
|
2492
|
+
), Xe = ie(L.currentStep);
|
|
2486
2493
|
U(() => {
|
|
2487
|
-
|
|
2488
|
-
}, [
|
|
2489
|
-
const [fe, he] = q("idle"), [
|
|
2494
|
+
L.currentStep > Xe.current && ge(L.currentStep), Xe.current = L.currentStep;
|
|
2495
|
+
}, [L.currentStep]);
|
|
2496
|
+
const [fe, he] = q("idle"), [Ve, Fe] = q(null), Qe = H(
|
|
2490
2497
|
async (F) => {
|
|
2491
|
-
if (!
|
|
2498
|
+
if (!L.selectedSlot) return;
|
|
2492
2499
|
const ze = {
|
|
2493
|
-
slot:
|
|
2500
|
+
slot: L.selectedSlot,
|
|
2494
2501
|
value: {
|
|
2495
2502
|
...g,
|
|
2496
2503
|
details: F,
|
|
@@ -2501,7 +2508,7 @@ const na = [], oa = [], ra = ot(
|
|
|
2501
2508
|
he("submitting");
|
|
2502
2509
|
try {
|
|
2503
2510
|
await _(ze), Fe({
|
|
2504
|
-
slot:
|
|
2511
|
+
slot: L.selectedSlot,
|
|
2505
2512
|
details: F,
|
|
2506
2513
|
specialtyId: g.specialtyId,
|
|
2507
2514
|
serviceId: g.serviceId,
|
|
@@ -2513,10 +2520,10 @@ const na = [], oa = [], ra = ot(
|
|
|
2513
2520
|
throw he("error"), new Error("Booking submission failed");
|
|
2514
2521
|
}
|
|
2515
2522
|
},
|
|
2516
|
-
[
|
|
2523
|
+
[L.selectedSlot, _, g]
|
|
2517
2524
|
), ve = ie(null);
|
|
2518
|
-
|
|
2519
|
-
const be = fe === "success" ? 8 :
|
|
2525
|
+
Pt(we, () => ve.current, []);
|
|
2526
|
+
const be = fe === "success" ? 8 : L.currentStep, et = ie(null);
|
|
2520
2527
|
U(() => {
|
|
2521
2528
|
if (be !== et.current && (et.current = be, T == null || T(be), be === 8 && ve.current))
|
|
2522
2529
|
try {
|
|
@@ -2528,9 +2535,9 @@ const na = [], oa = [], ra = ot(
|
|
|
2528
2535
|
ve.current.scrollIntoView();
|
|
2529
2536
|
}
|
|
2530
2537
|
}, [be, T]);
|
|
2531
|
-
const $e =
|
|
2538
|
+
const $e = C(
|
|
2532
2539
|
() => ({
|
|
2533
|
-
getVariant: () =>
|
|
2540
|
+
getVariant: () => D,
|
|
2534
2541
|
reset: () => {
|
|
2535
2542
|
y({}), Fe(null), he("idle"), ge(1);
|
|
2536
2543
|
},
|
|
@@ -2538,17 +2545,17 @@ const na = [], oa = [], ra = ot(
|
|
|
2538
2545
|
ge(F);
|
|
2539
2546
|
}
|
|
2540
2547
|
}),
|
|
2541
|
-
[
|
|
2548
|
+
[D, y]
|
|
2542
2549
|
);
|
|
2543
|
-
|
|
2544
|
-
const
|
|
2545
|
-
|
|
2550
|
+
Ot(Da, $e, J);
|
|
2551
|
+
const At = Le ?? re("booking.regionLabel"), Tt = C(() => fe !== "success" || !Ve ? null : /* @__PURE__ */ s(
|
|
2552
|
+
es,
|
|
2546
2553
|
{
|
|
2547
|
-
snapshot:
|
|
2554
|
+
snapshot: Ve,
|
|
2548
2555
|
operators: de,
|
|
2549
2556
|
specialties: Z,
|
|
2550
2557
|
services: u,
|
|
2551
|
-
locale:
|
|
2558
|
+
locale: ae,
|
|
2552
2559
|
mode: Y,
|
|
2553
2560
|
showModify: oe,
|
|
2554
2561
|
onReset: () => $e.reset(),
|
|
@@ -2558,18 +2565,18 @@ const na = [], oa = [], ra = ot(
|
|
|
2558
2565
|
}
|
|
2559
2566
|
), [
|
|
2560
2567
|
fe,
|
|
2561
|
-
|
|
2568
|
+
Ve,
|
|
2562
2569
|
de,
|
|
2563
2570
|
Z,
|
|
2564
2571
|
u,
|
|
2565
|
-
|
|
2572
|
+
ae,
|
|
2566
2573
|
Y,
|
|
2567
2574
|
oe,
|
|
2568
2575
|
$e
|
|
2569
|
-
]),
|
|
2576
|
+
]), _t = C(() => {
|
|
2570
2577
|
if (fe === "success") return null;
|
|
2571
|
-
const F =
|
|
2572
|
-
cascade:
|
|
2578
|
+
const F = D === "accordion" ? as : D === "calendar" ? ss : D === "flexible" ? is : D === "progress" ? ns : ts, ze = {
|
|
2579
|
+
cascade: L,
|
|
2573
2580
|
inputs: {
|
|
2574
2581
|
specialties: Z,
|
|
2575
2582
|
services: u,
|
|
@@ -2587,14 +2594,14 @@ const na = [], oa = [], ra = ot(
|
|
|
2587
2594
|
requireDateOfBirth: S,
|
|
2588
2595
|
requireInsuranceNumber: h,
|
|
2589
2596
|
insuranceType: g.insuranceType,
|
|
2590
|
-
showNote:
|
|
2591
|
-
showReturningPatientFlag:
|
|
2592
|
-
privacyPolicyUrl:
|
|
2597
|
+
showNote: w,
|
|
2598
|
+
showReturningPatientFlag: A,
|
|
2599
|
+
privacyPolicyUrl: N,
|
|
2593
2600
|
termsUrl: k,
|
|
2594
2601
|
validateCodiceFiscale: b,
|
|
2595
2602
|
validateInsuranceNumber: p,
|
|
2596
2603
|
confirmationChannels: I,
|
|
2597
|
-
defaultConfirmationChannels:
|
|
2604
|
+
defaultConfirmationChannels: M,
|
|
2598
2605
|
submitError: xe
|
|
2599
2606
|
},
|
|
2600
2607
|
emptyServicesSlot: Se,
|
|
@@ -2603,21 +2610,21 @@ const na = [], oa = [], ra = ot(
|
|
|
2603
2610
|
loadingSlots: pe,
|
|
2604
2611
|
onDateSelect: O,
|
|
2605
2612
|
onWindowChange: E,
|
|
2606
|
-
datePickerStyle:
|
|
2607
|
-
specialtyPickerStyle:
|
|
2613
|
+
datePickerStyle: R,
|
|
2614
|
+
specialtyPickerStyle: V,
|
|
2608
2615
|
servicePickerStyle: P,
|
|
2609
2616
|
operatorPickerStyle: ee,
|
|
2610
2617
|
submitting: te,
|
|
2611
|
-
locale:
|
|
2618
|
+
locale: ae,
|
|
2612
2619
|
activeStep: We,
|
|
2613
2620
|
setActiveStep: ge,
|
|
2614
2621
|
agentIdBase: J
|
|
2615
2622
|
};
|
|
2616
|
-
return /* @__PURE__ */
|
|
2623
|
+
return /* @__PURE__ */ s(F, { ...ze });
|
|
2617
2624
|
}, [
|
|
2618
2625
|
fe,
|
|
2619
|
-
|
|
2620
|
-
|
|
2626
|
+
D,
|
|
2627
|
+
L,
|
|
2621
2628
|
Z,
|
|
2622
2629
|
u,
|
|
2623
2630
|
de,
|
|
@@ -2633,26 +2640,26 @@ const na = [], oa = [], ra = ot(
|
|
|
2633
2640
|
S,
|
|
2634
2641
|
h,
|
|
2635
2642
|
xe,
|
|
2643
|
+
w,
|
|
2644
|
+
A,
|
|
2636
2645
|
N,
|
|
2637
|
-
D,
|
|
2638
|
-
M,
|
|
2639
2646
|
k,
|
|
2640
2647
|
b,
|
|
2641
2648
|
p,
|
|
2642
2649
|
I,
|
|
2643
|
-
|
|
2650
|
+
M,
|
|
2644
2651
|
Se,
|
|
2645
2652
|
Ie,
|
|
2646
2653
|
G,
|
|
2647
2654
|
pe,
|
|
2648
2655
|
O,
|
|
2649
2656
|
E,
|
|
2657
|
+
R,
|
|
2650
2658
|
V,
|
|
2651
|
-
L,
|
|
2652
2659
|
P,
|
|
2653
2660
|
ee,
|
|
2654
2661
|
te,
|
|
2655
|
-
|
|
2662
|
+
ae,
|
|
2656
2663
|
We,
|
|
2657
2664
|
J
|
|
2658
2665
|
]);
|
|
@@ -2661,15 +2668,15 @@ const na = [], oa = [], ra = ot(
|
|
|
2661
2668
|
{
|
|
2662
2669
|
ref: ve,
|
|
2663
2670
|
role: "region",
|
|
2664
|
-
"aria-label":
|
|
2671
|
+
"aria-label": At,
|
|
2665
2672
|
id: J,
|
|
2666
2673
|
"data-component": "booking",
|
|
2667
2674
|
"data-component-id": J,
|
|
2668
|
-
"data-variant":
|
|
2669
|
-
className:
|
|
2670
|
-
variant:
|
|
2675
|
+
"data-variant": D,
|
|
2676
|
+
className: $a({
|
|
2677
|
+
variant: D,
|
|
2671
2678
|
surface: me,
|
|
2672
|
-
className:
|
|
2679
|
+
className: Re
|
|
2673
2680
|
}),
|
|
2674
2681
|
...Ne,
|
|
2675
2682
|
children: [
|
|
@@ -2685,22 +2692,22 @@ const na = [], oa = [], ra = ot(
|
|
|
2685
2692
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
|
|
2686
2693
|
].join(" "),
|
|
2687
2694
|
children: [
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ s("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: re("booking.regionLabel") }),
|
|
2696
|
+
/* @__PURE__ */ s("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: re("booking.headingSubtitle") })
|
|
2690
2697
|
]
|
|
2691
2698
|
}
|
|
2692
2699
|
),
|
|
2693
|
-
|
|
2700
|
+
Tt ?? _t
|
|
2694
2701
|
]
|
|
2695
2702
|
}
|
|
2696
2703
|
);
|
|
2697
2704
|
}
|
|
2698
2705
|
);
|
|
2699
|
-
|
|
2706
|
+
ds.displayName = "Booking";
|
|
2700
2707
|
export {
|
|
2701
|
-
|
|
2708
|
+
ds as B,
|
|
2702
2709
|
qe as C,
|
|
2703
2710
|
Q as O,
|
|
2704
|
-
|
|
2711
|
+
Da as b
|
|
2705
2712
|
};
|
|
2706
|
-
//# sourceMappingURL=booking-
|
|
2713
|
+
//# sourceMappingURL=booking-D84O6H2X.js.map
|