@alfadocs/ui-kit-debug 1.80.0 → 1.81.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/{address-fields-GnoSkvh6.js → address-fields-CfnXK8RT.js} +4 -4
- package/dist/_chunks/{address-fields-GnoSkvh6.js.map → address-fields-CfnXK8RT.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-M6u29f87.js → ai-prompt-input-DH_rnV-F.js} +33 -26
- package/dist/_chunks/{ai-prompt-input-M6u29f87.js.map → ai-prompt-input-DH_rnV-F.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-lONg-zja.js → anamnesis-summary-rows-BYtpwCyn.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-lONg-zja.js.map → anamnesis-summary-rows-BYtpwCyn.js.map} +1 -1
- package/dist/_chunks/{autocomplete-DosDnGie.js → autocomplete-CnB1mHGc.js} +65 -64
- package/dist/_chunks/{autocomplete-DosDnGie.js.map → autocomplete-CnB1mHGc.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-Dzd-Z_5W.js → balance-badge-cell-NoEPeFdj.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-Dzd-Z_5W.js.map → balance-badge-cell-NoEPeFdj.js.map} +1 -1
- package/dist/_chunks/{benefit-card-BWBClvdF.js → benefit-card-BcPtRHgM.js} +37 -36
- package/dist/_chunks/{benefit-card-BWBClvdF.js.map → benefit-card-BcPtRHgM.js.map} +1 -1
- package/dist/_chunks/{booking-By4I_1A-.js → booking-CxrB0e6d.js} +474 -463
- package/dist/_chunks/booking-CxrB0e6d.js.map +1 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-DhTTWgXw.js → calendar-appointment-editor-dialog-BuumJbcv.js} +4 -4
- package/dist/_chunks/{calendar-appointment-editor-dialog-DhTTWgXw.js.map → calendar-appointment-editor-dialog-BuumJbcv.js.map} +1 -1
- package/dist/_chunks/{city-input-3J3bz9EO.js → city-input-CJVGswxp.js} +2 -2
- package/dist/_chunks/{city-input-3J3bz9EO.js.map → city-input-CJVGswxp.js.map} +1 -1
- package/dist/_chunks/{combobox-vF9O-QoG.js → combobox-CDPm_n0p.js} +93 -92
- package/dist/_chunks/{combobox-vF9O-QoG.js.map → combobox-CDPm_n0p.js.map} +1 -1
- package/dist/_chunks/{command-palette-D9TBzmOG.js → command-palette-B3dVqm9D.js} +68 -68
- package/dist/_chunks/{command-palette-D9TBzmOG.js.map → command-palette-B3dVqm9D.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-DKk94l-d.js → contact-profile-card-Da1vmJQI.js} +115 -102
- package/dist/_chunks/contact-profile-card-Da1vmJQI.js.map +1 -0
- package/dist/_chunks/{country-select-CSE2Zm_s.js → country-select-DQ8q7ypA.js} +2 -2
- package/dist/_chunks/{country-select-CSE2Zm_s.js.map → country-select-DQ8q7ypA.js.map} +1 -1
- package/dist/_chunks/{face-scheme-BIPJqw9f.js → face-scheme-BgJGFDTa.js} +2 -2
- package/dist/_chunks/{face-scheme-BIPJqw9f.js.map → face-scheme-BgJGFDTa.js.map} +1 -1
- package/dist/_chunks/{header-settings-BYpVmLip.js → header-settings-CifwJEKB.js} +2 -2
- package/dist/_chunks/{header-settings-BYpVmLip.js.map → header-settings-CifwJEKB.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-B0riA_h_.js → link-cell-renderer-Dwp_DCYT.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-B0riA_h_.js.map → link-cell-renderer-Dwp_DCYT.js.map} +1 -1
- package/dist/_chunks/{locale-picker-DzdGDSBI.js → locale-picker-QbT1p60X.js} +39 -38
- package/dist/_chunks/{locale-picker-DzdGDSBI.js.map → locale-picker-QbT1p60X.js.map} +1 -1
- package/dist/_chunks/{map-view-C6MIVaqn.js → map-view-Bvi06RVh.js} +2 -2
- package/dist/_chunks/{map-view-C6MIVaqn.js.map → map-view-Bvi06RVh.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-mS7Q2-81.js → marketplace-app-shell-vON3WhD0.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-mS7Q2-81.js.map → marketplace-app-shell-vON3WhD0.js.map} +1 -1
- package/dist/_chunks/{multi-select-BOad3za9.js → multi-select-IOVnOGlP.js} +106 -106
- package/dist/_chunks/{multi-select-BOad3za9.js.map → multi-select-IOVnOGlP.js.map} +1 -1
- package/dist/_chunks/{patient-details-B-I9Xkh9.js → patient-details-D0P5eog5.js} +2 -2
- package/dist/_chunks/{patient-details-B-I9Xkh9.js.map → patient-details-D0P5eog5.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-Bn0z6lAZ.js → patient-field-row-R73dZJY6.js} +5 -5
- package/dist/_chunks/{patient-field-row-Bn0z6lAZ.js.map → patient-field-row-R73dZJY6.js.map} +1 -1
- package/dist/_chunks/{patient-search-CxqNcth4.js → patient-search-Dy0sxcwv.js} +2 -2
- package/dist/_chunks/{patient-search-CxqNcth4.js.map → patient-search-Dy0sxcwv.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-bhDo0gVX.js → patient-summary-card-6U74-ivO.js} +2 -2
- package/dist/_chunks/{patient-summary-card-bhDo0gVX.js.map → patient-summary-card-6U74-ivO.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-AQpHOS1X.js → payment-automation-upsell-D1YdO1xY.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-AQpHOS1X.js.map → payment-automation-upsell-D1YdO1xY.js.map} +1 -1
- package/dist/_chunks/{phone-input-C3NrD-nl.js → phone-input-DJ4BN8tG.js} +70 -63
- package/dist/_chunks/{phone-input-C3NrD-nl.js.map → phone-input-DJ4BN8tG.js.map} +1 -1
- package/dist/_chunks/{practice-results-CtOanuzZ.js → practice-results-B61krlwu.js} +2 -2
- package/dist/_chunks/{practice-results-CtOanuzZ.js.map → practice-results-B61krlwu.js.map} +1 -1
- package/dist/_chunks/{province-select-CDjs5obD.js → province-select-CPdTwEob.js} +2 -2
- package/dist/_chunks/{province-select-CDjs5obD.js.map → province-select-CPdTwEob.js.map} +1 -1
- package/dist/_chunks/{registration-form-CNBfUduG.js → registration-form-e9oYscB7.js} +2 -2
- package/dist/_chunks/{registration-form-CNBfUduG.js.map → registration-form-e9oYscB7.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-vTn1HxjA.js → send-registration-link-form-CZYOO7NO.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-vTn1HxjA.js.map → send-registration-link-form-CZYOO7NO.js.map} +1 -1
- package/dist/_chunks/{task-editor-Cpw-NmND.js → task-editor-BOETWbjU.js} +2 -2
- package/dist/_chunks/{task-editor-Cpw-NmND.js.map → task-editor-BOETWbjU.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-lFUL4kkd.js → use-appointment-details-read-CWN-nJCZ.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-lFUL4kkd.js.map → use-appointment-details-read-CWN-nJCZ.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts.map +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/benefit-card/benefit-card.d.ts +7 -1
- package/dist/components/benefit-card/benefit-card.d.ts.map +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +4 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.d.ts.map +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/index.js +29 -29
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-By4I_1A-.js.map +0 -1
- package/dist/_chunks/contact-profile-card-DKk94l-d.js.map +0 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { jsx as n, jsxs as k, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as Y, Trans as
|
|
5
|
-
import { u as
|
|
2
|
+
import { forwardRef as Sn, useId as bt, useRef as F, useCallback as Ne, useState as G, useEffect as K, useMemo as R, Fragment as Yn, useImperativeHandle as Zn } from "react";
|
|
3
|
+
import { c as Ft } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Y, Trans as xn } from "react-i18next";
|
|
5
|
+
import { u as Qn } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { A as ne } from "./alert-9kEwDza3.js";
|
|
7
7
|
import { B as tt } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { C as gt } from "./checkbox-BjDv-r3o.js";
|
|
9
|
-
import { C as
|
|
10
|
-
import { R as
|
|
11
|
-
import { R as
|
|
12
|
-
import { D as
|
|
13
|
-
import { E as
|
|
9
|
+
import { C as Xn } from "./checkbox-group-Cw2H5qaq.js";
|
|
10
|
+
import { R as es } from "./radio-BZQs6_36.js";
|
|
11
|
+
import { R as ts } from "./radio-group-ChIKyeSJ.js";
|
|
12
|
+
import { D as ns } from "./date-picker-CdhXlgVI.js";
|
|
13
|
+
import { E as ss } from "./email-input-C7THAwh2.js";
|
|
14
14
|
import { F as je } from "./form-field-CyHfOVKF.js";
|
|
15
|
-
import { P as
|
|
16
|
-
import { T as
|
|
15
|
+
import { P as is } from "./phone-input-DJ4BN8tG.js";
|
|
16
|
+
import { T as rs } from "./text-area-COMVJ1yE.js";
|
|
17
17
|
import { T as Pt } from "./text-input-CaG9ApoE.js";
|
|
18
|
-
import { A as
|
|
19
|
-
import { S as
|
|
18
|
+
import { A as os } from "./address-fields-CfnXK8RT.js";
|
|
19
|
+
import { S as In } from "./spinner-CoflYlEx.js";
|
|
20
20
|
import { a as Gt } from "./format-price-BcFBa-WP.js";
|
|
21
|
-
import { C as
|
|
22
|
-
import { O as
|
|
23
|
-
import { B as
|
|
24
|
-
import { I as
|
|
21
|
+
import { C as as } from "./credit-card-D9XZsHGA.js";
|
|
22
|
+
import { O as cs } from "./otp-input-BgEZi0py.js";
|
|
23
|
+
import { B as Nn } from "./badge-BUk4RjTS.js";
|
|
24
|
+
import { I as pn } from "./icon-button-S8_weU3g.js";
|
|
25
25
|
import { S as Ht } from "./select-4S-eYZUf.js";
|
|
26
|
-
import { C as
|
|
27
|
-
import { M as
|
|
28
|
-
import { c as
|
|
26
|
+
import { C as on } from "./combobox-CDPm_n0p.js";
|
|
27
|
+
import { M as an } from "./multi-select-IOVnOGlP.js";
|
|
28
|
+
import { c as ds } from "./option-row-Dc7BrbK8.js";
|
|
29
29
|
import { S as Ut } from "./skeleton-tTWJpvAq.js";
|
|
30
|
-
import { E as
|
|
31
|
-
import { S as
|
|
32
|
-
import { S as
|
|
33
|
-
import { S as
|
|
30
|
+
import { E as wn } from "./empty-state-DwJ5YNzz.js";
|
|
31
|
+
import { S as ls } from "./stepper-accordion-DDTSOUHc.js";
|
|
32
|
+
import { S as us } from "./stepper-progress-D6H8wQiV.js";
|
|
33
|
+
import { S as ps } from "./slot-grid-Bb13H9Rl.js";
|
|
34
34
|
import { p as Ie } from "./parseISO-DZZ5a-zK.js";
|
|
35
|
-
import { C as
|
|
36
|
-
import { s as ht, f as jt, d as
|
|
37
|
-
import { x as
|
|
38
|
-
import { s as
|
|
39
|
-
import { C as
|
|
40
|
-
import { C as
|
|
35
|
+
import { C as ms } from "./chevron-down-DWE7GSq9.js";
|
|
36
|
+
import { s as ht, f as jt, d as mn } from "./format--x5jypvH.js";
|
|
37
|
+
import { x as Cn, a as vt, b as Xt, i as fs, s as Ot, m as gs, y as Vt } from "./date-picker-variants-Dt6UbonG.js";
|
|
38
|
+
import { s as hs } from "./subDays-DKISP2nE.js";
|
|
39
|
+
import { C as vs } from "./chevron-left-B8cOyH-V.js";
|
|
40
|
+
import { C as bs } from "./chevron-right-I9AeSxH2.js";
|
|
41
41
|
import { c as Me } from "./createLucideIcon-DhHxpK9K.js";
|
|
42
|
-
import { M as
|
|
43
|
-
import { S as
|
|
44
|
-
import { H as
|
|
45
|
-
import { E as
|
|
46
|
-
import { B as
|
|
47
|
-
import { S as
|
|
48
|
-
import { A as
|
|
49
|
-
import { C as
|
|
42
|
+
import { M as ys, S as ks } from "./sun-Bj9Mr553.js";
|
|
43
|
+
import { S as Ss } from "./stethoscope-sZXGC43m.js";
|
|
44
|
+
import { H as xs } from "./heart-pulse-BCppJyN2.js";
|
|
45
|
+
import { E as Is } from "./eye-BjhN2nYf.js";
|
|
46
|
+
import { B as Ns } from "./baby-Dku-Xvg9.js";
|
|
47
|
+
import { S as ws } from "./scan-line-CNseIHQ0.js";
|
|
48
|
+
import { A as Cs } from "./astroid-BN4f5VXU.js";
|
|
49
|
+
import { C as As } from "./clipboard-check-BeAGxDVT.js";
|
|
50
50
|
/**
|
|
51
51
|
* @license lucide-react v1.22.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
const
|
|
56
|
+
const Ts = [
|
|
57
57
|
[
|
|
58
58
|
"path",
|
|
59
59
|
{
|
|
@@ -61,7 +61,7 @@ const As = [
|
|
|
61
61
|
key: "169zse"
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
|
-
],
|
|
64
|
+
], Ds = Me("activity", Ts);
|
|
65
65
|
/**
|
|
66
66
|
* @license lucide-react v1.22.0 - ISC
|
|
67
67
|
*
|
|
@@ -76,14 +76,14 @@ const Os = [
|
|
|
76
76
|
key: "w610uw"
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
|
-
],
|
|
79
|
+
], Ms = Me("bone", Os);
|
|
80
80
|
/**
|
|
81
81
|
* @license lucide-react v1.22.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
85
|
*/
|
|
86
|
-
const
|
|
86
|
+
const Fs = [
|
|
87
87
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
88
88
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
89
89
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -92,14 +92,14 @@ const Ms = [
|
|
|
92
92
|
["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
|
|
93
93
|
["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
|
|
94
94
|
["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
|
|
95
|
-
], Es = Me("brain",
|
|
95
|
+
], Es = Me("brain", Fs);
|
|
96
96
|
/**
|
|
97
97
|
* @license lucide-react v1.22.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
101
|
*/
|
|
102
|
-
const
|
|
102
|
+
const Bs = [
|
|
103
103
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
104
104
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
105
105
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
@@ -108,76 +108,76 @@ const Fs = [
|
|
|
108
108
|
["path", { d: "M13 18H7", key: "bb0bb7" }],
|
|
109
109
|
["path", { d: "M7 14h.01", key: "1qa3f1" }],
|
|
110
110
|
["path", { d: "M17 18h.01", key: "1bdyru" }]
|
|
111
|
-
],
|
|
111
|
+
], Ls = Me("calendar-range", Bs);
|
|
112
112
|
/**
|
|
113
113
|
* @license lucide-react v1.22.0 - ISC
|
|
114
114
|
*
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
116
116
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
117
|
*/
|
|
118
|
-
const
|
|
118
|
+
const Rs = [
|
|
119
119
|
["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" }],
|
|
120
120
|
["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
|
|
121
|
-
],
|
|
121
|
+
], _s = Me("ear", Rs);
|
|
122
122
|
/**
|
|
123
123
|
* @license lucide-react v1.22.0 - ISC
|
|
124
124
|
*
|
|
125
125
|
* This source code is licensed under the ISC license.
|
|
126
126
|
* See the LICENSE file in the root directory of this source tree.
|
|
127
127
|
*/
|
|
128
|
-
const
|
|
128
|
+
const Ps = [
|
|
129
129
|
["path", { d: "M6 18h8", key: "1borvv" }],
|
|
130
130
|
["path", { d: "M3 22h18", key: "8prr45" }],
|
|
131
131
|
["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
|
|
132
132
|
["path", { d: "M9 14h2", key: "197e7h" }],
|
|
133
133
|
["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
|
|
134
134
|
["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
|
|
135
|
-
],
|
|
135
|
+
], Vs = Me("microscope", Ps);
|
|
136
136
|
/**
|
|
137
137
|
* @license lucide-react v1.22.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
141
|
*/
|
|
142
|
-
const
|
|
142
|
+
const $s = [
|
|
143
143
|
[
|
|
144
144
|
"path",
|
|
145
145
|
{ 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" }
|
|
146
146
|
],
|
|
147
147
|
["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
|
|
148
|
-
],
|
|
148
|
+
], qs = Me("pill", $s);
|
|
149
149
|
/**
|
|
150
150
|
* @license lucide-react v1.22.0 - ISC
|
|
151
151
|
*
|
|
152
152
|
* This source code is licensed under the ISC license.
|
|
153
153
|
* See the LICENSE file in the root directory of this source tree.
|
|
154
154
|
*/
|
|
155
|
-
const
|
|
155
|
+
const Ks = [
|
|
156
156
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
157
157
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
158
158
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
159
159
|
["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
|
|
160
160
|
["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
|
|
161
|
-
],
|
|
161
|
+
], zs = Me("scissors", Ks);
|
|
162
162
|
/**
|
|
163
163
|
* @license lucide-react v1.22.0 - ISC
|
|
164
164
|
*
|
|
165
165
|
* This source code is licensed under the ISC license.
|
|
166
166
|
* See the LICENSE file in the root directory of this source tree.
|
|
167
167
|
*/
|
|
168
|
-
const
|
|
168
|
+
const js = [
|
|
169
169
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
170
170
|
["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
|
|
171
171
|
["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
|
|
172
172
|
["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
|
|
173
|
-
],
|
|
173
|
+
], Us = Me("smile", js);
|
|
174
174
|
/**
|
|
175
175
|
* @license lucide-react v1.22.0 - ISC
|
|
176
176
|
*
|
|
177
177
|
* This source code is licensed under the ISC license.
|
|
178
178
|
* See the LICENSE file in the root directory of this source tree.
|
|
179
179
|
*/
|
|
180
|
-
const
|
|
180
|
+
const Gs = [
|
|
181
181
|
["path", { d: "M12 10V2", key: "16sf7g" }],
|
|
182
182
|
["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
|
|
183
183
|
["path", { d: "M2 18h2", key: "j10viu" }],
|
|
@@ -186,25 +186,25 @@ const Us = [
|
|
|
186
186
|
["path", { d: "M22 22H2", key: "19qnx5" }],
|
|
187
187
|
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
|
|
188
188
|
["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
|
|
189
|
-
],
|
|
189
|
+
], Hs = Me("sunset", Gs);
|
|
190
190
|
/**
|
|
191
191
|
* @license lucide-react v1.22.0 - ISC
|
|
192
192
|
*
|
|
193
193
|
* This source code is licensed under the ISC license.
|
|
194
194
|
* See the LICENSE file in the root directory of this source tree.
|
|
195
195
|
*/
|
|
196
|
-
const
|
|
196
|
+
const Js = [
|
|
197
197
|
["path", { d: "m18 2 4 4", key: "22kx64" }],
|
|
198
198
|
["path", { d: "m17 7 3-3", key: "1w1zoj" }],
|
|
199
199
|
["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" }],
|
|
200
200
|
["path", { d: "m9 11 4 4", key: "rovt3i" }],
|
|
201
201
|
["path", { d: "m5 19-3 3", key: "59f2uf" }],
|
|
202
202
|
["path", { d: "m14 4 6 6", key: "yqp9t2" }]
|
|
203
|
-
],
|
|
204
|
-
function
|
|
205
|
-
return
|
|
203
|
+
], fn = Me("syringe", Js);
|
|
204
|
+
function Ws(e, t, s) {
|
|
205
|
+
return Cn(e, -1, s);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const Ys = {
|
|
208
208
|
id: "booking",
|
|
209
209
|
// `view_change` removed (0.69): the layout `variant` is a fixed prop — the
|
|
210
210
|
// handle exposes only `getVariant` (state), no action mutates it. The flow's
|
|
@@ -284,8 +284,8 @@ const Ws = {
|
|
|
284
284
|
"email",
|
|
285
285
|
"whatsapp",
|
|
286
286
|
"sms"
|
|
287
|
-
], _e = "all",
|
|
288
|
-
function
|
|
287
|
+
], _e = "all", Zs = "de";
|
|
288
|
+
function Qs(e) {
|
|
289
289
|
const t = e.lockedOperatorId;
|
|
290
290
|
return [...t ? e.operatorsByService ? e.specialties.filter(
|
|
291
291
|
(i) => e.services.some(
|
|
@@ -302,7 +302,7 @@ function Zs(e) {
|
|
|
302
302
|
return a - c;
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Xs(e) {
|
|
306
306
|
let t = e.services;
|
|
307
307
|
if (e.lockedOperatorId && (t = t.filter(
|
|
308
308
|
(i) => {
|
|
@@ -317,7 +317,7 @@ function Qs(e) {
|
|
|
317
317
|
}
|
|
318
318
|
return t;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ei(e) {
|
|
321
321
|
const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties, s = Ge(e.value);
|
|
322
322
|
if ((!t || e.operatorsByService) && s.length > 0)
|
|
323
323
|
return e.operators.filter(
|
|
@@ -338,8 +338,8 @@ function Xs(e) {
|
|
|
338
338
|
}
|
|
339
339
|
return [];
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
const s = e.country ===
|
|
341
|
+
function ti(e, t) {
|
|
342
|
+
const s = e.country === Zs, i = !s || e.value.insuranceType !== void 0, a = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, c = nt(e.value).length > 0, u = !a || c, m = Ge(e.value).length > 0, v = !u || m, b = t.operators, g = !!e.allowOperatorSelection && v && m && !e.lockedOperatorId && b.length > 1, o = v && m, I = (!o || e.value.date !== void 0) && e.value.date !== void 0, B = (!I || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, N = m && b.length === 0;
|
|
343
343
|
return {
|
|
344
344
|
insurance: s,
|
|
345
345
|
specialty: a,
|
|
@@ -351,7 +351,7 @@ function ei(e, t) {
|
|
|
351
351
|
onboardingIncomplete: N
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function ni(e, t) {
|
|
355
355
|
const s = [];
|
|
356
356
|
return t.insurance && s.push(1), t.specialty && s.push(2), s.push(3), t.operator && s.push(4), s.push(5), s.push(6), s.push(7), {
|
|
357
357
|
currentStep: s.find(
|
|
@@ -382,12 +382,12 @@ function Ue(e, t) {
|
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function si(e) {
|
|
386
386
|
const t = {
|
|
387
|
-
specialties:
|
|
388
|
-
services:
|
|
389
|
-
operators:
|
|
390
|
-
}, s =
|
|
387
|
+
specialties: Qs(e),
|
|
388
|
+
services: Xs(e),
|
|
389
|
+
operators: ei(e)
|
|
390
|
+
}, s = ti(e, t), { currentStep: i, visibleSteps: r } = ni(e, s);
|
|
391
391
|
let a;
|
|
392
392
|
if (e.value.date && e.value.slotKey) {
|
|
393
393
|
const v = e.availableSlots[e.value.date];
|
|
@@ -405,7 +405,7 @@ function ni(e) {
|
|
|
405
405
|
selectedSlot: a
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function An(e, t) {
|
|
409
409
|
return {
|
|
410
410
|
...e,
|
|
411
411
|
insuranceType: t,
|
|
@@ -417,7 +417,7 @@ function Cn(e, t) {
|
|
|
417
417
|
details: void 0
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Tn(e, t) {
|
|
421
421
|
return {
|
|
422
422
|
...e,
|
|
423
423
|
specialtyId: t,
|
|
@@ -431,7 +431,7 @@ function An(e, t) {
|
|
|
431
431
|
details: void 0
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Dn(e, t) {
|
|
435
435
|
return {
|
|
436
436
|
...e,
|
|
437
437
|
specialtyId: void 0,
|
|
@@ -460,7 +460,7 @@ function On(e, t) {
|
|
|
460
460
|
details: void 0
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Mn(e, t) {
|
|
464
464
|
const s = !!t && t.length > 0;
|
|
465
465
|
return {
|
|
466
466
|
...e,
|
|
@@ -473,7 +473,7 @@ function Dn(e, t) {
|
|
|
473
473
|
details: void 0
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Fn(e, t) {
|
|
477
477
|
return {
|
|
478
478
|
...e,
|
|
479
479
|
operatorId: t,
|
|
@@ -511,13 +511,13 @@ function Jt(e, t) {
|
|
|
511
511
|
// since the user has already filled some fields.
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Bn(e, t) {
|
|
515
515
|
return {
|
|
516
516
|
...e,
|
|
517
517
|
slotKey: t
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function ii(e, t) {
|
|
521
521
|
let s = e;
|
|
522
522
|
if (t.lockedOperatorId && s.operatorId !== t.lockedOperatorId && (s = { ...s, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && s.specialtyId === void 0 && s.specialtyIds === void 0 && (s = { ...s, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
|
|
523
523
|
const r = nt(s), a = r.length > 0 ? t.services.filter(
|
|
@@ -527,36 +527,36 @@ function si(e, t) {
|
|
|
527
527
|
}
|
|
528
528
|
return s;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Ln(e) {
|
|
531
531
|
if (e.operatorId && e.operatorId !== _e)
|
|
532
532
|
return e.operatorId;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ri(e) {
|
|
535
535
|
if (!e) return !1;
|
|
536
536
|
const t = e.trim();
|
|
537
537
|
return /^\+?\d[\d\s\-()]{6,}$/.test(t);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function cn(e) {
|
|
540
540
|
const t = e && e.length > 0 ? e : ["email"], s = new Set(t);
|
|
541
541
|
return nn.filter((i) => s.has(i));
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Rn(e, t) {
|
|
544
544
|
return t ?? (e.length === 1 ? e : ["email"]);
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
const i =
|
|
546
|
+
function oi(e, t, s) {
|
|
547
|
+
const i = cn(e), r = new Set(i);
|
|
548
548
|
if (s)
|
|
549
549
|
return nn.filter(
|
|
550
550
|
(m) => s.includes(m) && r.has(m)
|
|
551
551
|
);
|
|
552
552
|
const a = [];
|
|
553
553
|
r.has("email") && a.push("email");
|
|
554
|
-
const c =
|
|
554
|
+
const c = ri(t), p = r.has("whatsapp");
|
|
555
555
|
p && c && a.push("whatsapp"), !p && r.has("sms") && a.push("sms");
|
|
556
556
|
const u = new Set(a);
|
|
557
557
|
return nn.filter((m) => u.has(m));
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const ai = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F\u06D4\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF])+/gi, ci = /* @__PURE__ */ new Set([
|
|
560
560
|
".",
|
|
561
561
|
",",
|
|
562
562
|
";",
|
|
@@ -566,15 +566,15 @@ const oi = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F
|
|
|
566
566
|
"'",
|
|
567
567
|
"»",
|
|
568
568
|
"›"
|
|
569
|
-
]),
|
|
570
|
-
function
|
|
569
|
+
]), di = { ")": "(", "]": "[", "}": "{" }, gn = (e, t) => e.split(t).length - 1;
|
|
570
|
+
function li(e) {
|
|
571
571
|
const t = {};
|
|
572
|
-
for (const [i, r] of Object.entries(
|
|
573
|
-
t[i] =
|
|
572
|
+
for (const [i, r] of Object.entries(di))
|
|
573
|
+
t[i] = gn(e, i) - gn(e, r);
|
|
574
574
|
let s = e.length;
|
|
575
575
|
for (; s > 0; ) {
|
|
576
576
|
const i = e[s - 1];
|
|
577
|
-
if (
|
|
577
|
+
if (ci.has(i))
|
|
578
578
|
s -= 1;
|
|
579
579
|
else if (i in t && t[i] > 0)
|
|
580
580
|
t[i] -= 1, s -= 1;
|
|
@@ -583,12 +583,12 @@ function di(e) {
|
|
|
583
583
|
}
|
|
584
584
|
return e.slice(0, s);
|
|
585
585
|
}
|
|
586
|
-
const
|
|
587
|
-
function pi(e) {
|
|
588
|
-
const t = e.search(li);
|
|
589
|
-
return t > 0 && ui.test(e[t - 1]) ? e.slice(0, t) : e;
|
|
590
|
-
}
|
|
586
|
+
const ui = /[\u0600-\u06FF\u3040-\u30FF\u3400-\u9FFF\uAC00-\uD7AF]/, pi = /[A-Za-z0-9]/;
|
|
591
587
|
function mi(e) {
|
|
588
|
+
const t = e.search(ui);
|
|
589
|
+
return t > 0 && pi.test(e[t - 1]) ? e.slice(0, t) : e;
|
|
590
|
+
}
|
|
591
|
+
function fi(e) {
|
|
592
592
|
try {
|
|
593
593
|
const { protocol: t, hostname: s } = new URL(e);
|
|
594
594
|
return (t === "http:" || t === "https:") && s !== "";
|
|
@@ -596,7 +596,7 @@ function mi(e) {
|
|
|
596
596
|
return !1;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function gi(e) {
|
|
600
600
|
const t = [];
|
|
601
601
|
let s = 0;
|
|
602
602
|
const i = (r) => {
|
|
@@ -604,13 +604,13 @@ function fi(e) {
|
|
|
604
604
|
const a = t[t.length - 1];
|
|
605
605
|
(a == null ? void 0 : a.kind) === "text" ? a.text += r : t.push({ kind: "text", text: r });
|
|
606
606
|
};
|
|
607
|
-
for (const r of e.matchAll(
|
|
608
|
-
const a = r.index ?? 0, c =
|
|
609
|
-
|
|
607
|
+
for (const r of e.matchAll(ai)) {
|
|
608
|
+
const a = r.index ?? 0, c = li(mi(r[0]));
|
|
609
|
+
fi(c) && (i(e.slice(s, a)), t.push({ kind: "link", text: c, href: c }), s = a + c.length);
|
|
610
610
|
}
|
|
611
611
|
return i(e.slice(s)), t;
|
|
612
612
|
}
|
|
613
|
-
const
|
|
613
|
+
const hn = 500, hi = /^[A-Z0-9]{16}$/, vi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, vn = 300, en = "ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]", $t = (e) => e && /^https?:\/\//i.test(e) ? e : void 0, bi = (e, t) => ({
|
|
614
614
|
street: (e == null ? void 0 : e.address.line1) ?? "",
|
|
615
615
|
city: (e == null ? void 0 : e.address.city) ?? "",
|
|
616
616
|
postcode: (e == null ? void 0 : e.address.postalCode) ?? "",
|
|
@@ -618,7 +618,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
618
618
|
// The practice's country only until the patient has an address at all.
|
|
619
619
|
country: (e ? e.address.country : t).toLowerCase(),
|
|
620
620
|
formatted: ""
|
|
621
|
-
}),
|
|
621
|
+
}), yi = (e, t, s = null) => ({
|
|
622
622
|
name: t,
|
|
623
623
|
address: {
|
|
624
624
|
line1: e.street,
|
|
@@ -628,7 +628,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
628
628
|
postalCode: e.postcode,
|
|
629
629
|
country: e.country.toUpperCase()
|
|
630
630
|
}
|
|
631
|
-
}),
|
|
631
|
+
}), ki = Ft("ds:flex ds:flex-col ds:border", {
|
|
632
632
|
variants: {
|
|
633
633
|
noticeStyle: {
|
|
634
634
|
plain: "ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border-[var(--border)] ds:bg-[var(--muted)] ds:p-[var(--spacing-sm)]",
|
|
@@ -636,17 +636,17 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
638
|
defaultVariants: { noticeStyle: "highlighted" }
|
|
639
|
-
}),
|
|
639
|
+
}), Si = ["it", "ch", "de", "at", "fr", "sm"], z = {
|
|
640
640
|
country: "billing.country",
|
|
641
641
|
street: "billing.street",
|
|
642
642
|
city: "billing.city",
|
|
643
643
|
postcode: "billing.postcode",
|
|
644
644
|
province: "billing.province"
|
|
645
|
-
},
|
|
645
|
+
}, _n = /^\d{5}$/, xi = (e) => {
|
|
646
646
|
if (!e) return !1;
|
|
647
647
|
const { line1: t, city: s, postalCode: i, country: r, state: a } = e.address;
|
|
648
|
-
return !t.trim() || !s.trim() || !i.trim() || !r.trim() ? !1 : r.toUpperCase() !== "IT" ? !0 : !!a.trim() &&
|
|
649
|
-
},
|
|
648
|
+
return !t.trim() || !s.trim() || !i.trim() || !r.trim() ? !1 : r.toUpperCase() !== "IT" ? !0 : !!a.trim() && _n.test(i.trim());
|
|
649
|
+
}, Ii = (e, t) => {
|
|
650
650
|
var s;
|
|
651
651
|
return {
|
|
652
652
|
name: t,
|
|
@@ -659,7 +659,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
659
659
|
country: e.address.country.trim().toUpperCase()
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
}, qt = { state: "idle" },
|
|
662
|
+
}, qt = { state: "idle" }, bn = [
|
|
663
663
|
"firstName",
|
|
664
664
|
"lastName",
|
|
665
665
|
"email",
|
|
@@ -672,7 +672,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
672
672
|
z.city,
|
|
673
673
|
z.postcode,
|
|
674
674
|
z.province
|
|
675
|
-
],
|
|
675
|
+
], Ni = /* @__PURE__ */ new Set(), dn = Sn(
|
|
676
676
|
({
|
|
677
677
|
value: e,
|
|
678
678
|
onChange: t,
|
|
@@ -695,17 +695,17 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
695
695
|
paymentNoticeStyle: N = "highlighted",
|
|
696
696
|
criticalInformationToAccept: x,
|
|
697
697
|
validateCodiceFiscale: S,
|
|
698
|
-
validateInsuranceNumber:
|
|
698
|
+
validateInsuranceNumber: D,
|
|
699
699
|
submitting: T = !1,
|
|
700
|
-
summarySlot:
|
|
700
|
+
summarySlot: E,
|
|
701
701
|
defaultPhoneCountry: l,
|
|
702
702
|
confirmationChannels: w,
|
|
703
|
-
defaultConfirmationChannels:
|
|
703
|
+
defaultConfirmationChannels: O,
|
|
704
704
|
singleConfirmationChannel: V = !1,
|
|
705
705
|
submitError: j
|
|
706
706
|
}, Z) => {
|
|
707
707
|
var C, L, P, Q, ae;
|
|
708
|
-
const { t: h, i18n: ee } = Y("ui"), H = bt(), Pe =
|
|
708
|
+
const { t: h, i18n: ee } = Y("ui"), H = bt(), Pe = F(null), M = Ne(
|
|
709
709
|
(d) => {
|
|
710
710
|
Pe.current = d, typeof Z == "function" ? Z(d) : Z && (Z.current = d);
|
|
711
711
|
},
|
|
@@ -720,10 +720,10 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
720
720
|
for (const te of d ?? [])
|
|
721
721
|
if (te.focus(), document.activeElement === te) return;
|
|
722
722
|
}, [J]);
|
|
723
|
-
const fe =
|
|
724
|
-
(d) =>
|
|
723
|
+
const fe = F(!1), [W, Ve] = G(!1), [ct, ge] = G(!1), se = T || W, [ce, Ce] = G(qt), [Ae, Fe] = G(qt), [re, Ee] = G({}), de = Ne(
|
|
724
|
+
(d) => Ee((A) => ({ ...A, [d]: !0 })),
|
|
725
725
|
[]
|
|
726
|
-
), [he, Te] = G(
|
|
726
|
+
), [he, Te] = G(Ni), $e = F(null), He = F(
|
|
727
727
|
null
|
|
728
728
|
);
|
|
729
729
|
K(
|
|
@@ -743,11 +743,11 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
743
743
|
f.amountCents,
|
|
744
744
|
f.currencyCode,
|
|
745
745
|
I
|
|
746
|
-
]) : void 0, [st,
|
|
746
|
+
]) : void 0, [st, Et] = G(
|
|
747
747
|
() => e.paymentAccepted ? qe : void 0
|
|
748
|
-
), dt =
|
|
748
|
+
), dt = F(qe), lt = !!(f && e.paymentAccepted && st === qe);
|
|
749
749
|
K(() => {
|
|
750
|
-
dt.current !== qe && (dt.current = qe,
|
|
750
|
+
dt.current !== qe && (dt.current = qe, Et(void 0), e.paymentAccepted !== void 0 && q({ paymentAccepted: f ? !1 : void 0 }));
|
|
751
751
|
}, [qe, f, q, e.paymentAccepted]);
|
|
752
752
|
const ut = typeof (o == null ? void 0 : o.label) == "string" && o.label.trim() !== "", Be = o && ut ? JSON.stringify([
|
|
753
753
|
o.label,
|
|
@@ -755,11 +755,11 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
755
755
|
o.required
|
|
756
756
|
]) : void 0, [le, Bt] = G(
|
|
757
757
|
() => e.practiceConsentAccepted ? Be : void 0
|
|
758
|
-
), ve =
|
|
758
|
+
), ve = F(Be), Je = !!(Be !== void 0 && e.practiceConsentAccepted && le === Be);
|
|
759
759
|
K(() => {
|
|
760
760
|
ve.current !== Be && (ve.current = Be, Bt(void 0), e.practiceConsentAccepted !== void 0 && q({ practiceConsentAccepted: void 0 }));
|
|
761
761
|
}, [Be, q, e.practiceConsentAccepted]);
|
|
762
|
-
const ke = f ? Gt(f.amountCents, f.currencyCode, ee.language) : "", We = $t(I), _ = B && !!f && !y, Se = a, pt = (l || "it").toLowerCase(), kt = !_ ||
|
|
762
|
+
const ke = f ? Gt(f.amountCents, f.currencyCode, ee.language) : "", We = $t(I), _ = B && !!f && !y, Se = a, pt = (l || "it").toLowerCase(), kt = !_ || xi(e.billing), oe = bi(e.billing, pt), xe = oe.country === "it", St = F(null), Ye = F(
|
|
763
763
|
null
|
|
764
764
|
), ue = (C = e.billing) == null ? void 0 : C.address.line1.trim(), it = ((P = (L = e.billing) == null ? void 0 : L.address.line2) == null ? void 0 : P.trim()) || null;
|
|
765
765
|
K(() => {
|
|
@@ -770,10 +770,10 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
770
770
|
// Nothing for a block not shown, nor for a province outside Italy.
|
|
771
771
|
!_ || !re[z[d]] || d === "province" && !xe ? void 0 : oe[d].trim() ? (
|
|
772
772
|
// The one format the block itself checks: an Italian CAP.
|
|
773
|
-
d === "postcode" && xe && !
|
|
773
|
+
d === "postcode" && xe && !_n.test(oe.postcode.trim()) ? h("inputs.postalCode.invalid") : void 0
|
|
774
774
|
) : h("booking.details.fieldRequired")
|
|
775
775
|
), Yt = Ne(
|
|
776
|
-
() =>
|
|
776
|
+
() => Ee(
|
|
777
777
|
(d) => d[z.province] ? d : {
|
|
778
778
|
...d,
|
|
779
779
|
codiceFiscale: !0,
|
|
@@ -784,9 +784,9 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
784
784
|
),
|
|
785
785
|
[]
|
|
786
786
|
), Le = R(
|
|
787
|
-
() =>
|
|
787
|
+
() => cn(w),
|
|
788
788
|
[w]
|
|
789
|
-
), be = !f && !y && Le.length >= 2, rt =
|
|
789
|
+
), be = !f && !y && Le.length >= 2, rt = F(!1);
|
|
790
790
|
K(() => {
|
|
791
791
|
if (f || y) return;
|
|
792
792
|
if (!be) {
|
|
@@ -800,13 +800,13 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
802
|
const d = V ? [
|
|
803
|
-
(
|
|
803
|
+
(O == null ? void 0 : O.find(
|
|
804
804
|
(A) => Le.includes(A)
|
|
805
805
|
)) ?? Le[0]
|
|
806
|
-
] :
|
|
806
|
+
] : oi(
|
|
807
807
|
Le,
|
|
808
808
|
e.mobilePhone,
|
|
809
|
-
|
|
809
|
+
O
|
|
810
810
|
);
|
|
811
811
|
rt.current = !0, q({ confirmationChannels: d });
|
|
812
812
|
}, [
|
|
@@ -815,27 +815,27 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
815
815
|
y,
|
|
816
816
|
Le,
|
|
817
817
|
e.mobilePhone,
|
|
818
|
-
|
|
818
|
+
O,
|
|
819
819
|
V
|
|
820
820
|
]);
|
|
821
821
|
const $ = R(
|
|
822
822
|
() => e.confirmationChannels ?? [],
|
|
823
823
|
[e.confirmationChannels]
|
|
824
|
-
), U = be && $.length === 0, Lt =
|
|
824
|
+
), U = be && $.length === 0, Lt = Rn(
|
|
825
825
|
Le,
|
|
826
826
|
be ? $ : void 0
|
|
827
|
-
), ot = !r || Lt.includes("email"), xt =
|
|
827
|
+
), ot = !r || Lt.includes("email"), xt = F(S), It = F(D);
|
|
828
828
|
K(() => {
|
|
829
|
-
xt.current = S, It.current =
|
|
830
|
-
}, [S,
|
|
831
|
-
const Nt = !!S, wt = !!
|
|
829
|
+
xt.current = S, It.current = D;
|
|
830
|
+
}, [S, D]);
|
|
831
|
+
const Nt = !!S, wt = !!D;
|
|
832
832
|
K(() => {
|
|
833
833
|
const d = e.codiceFiscale;
|
|
834
834
|
if (!Se || !Nt || !d) {
|
|
835
835
|
Ce(qt);
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
|
-
if (!
|
|
838
|
+
if (!hi.test(d)) {
|
|
839
839
|
Ce({
|
|
840
840
|
state: "invalid",
|
|
841
841
|
hint: h("booking.details.codiceFiscale.invalidFormat")
|
|
@@ -861,7 +861,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
861
861
|
value: d
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
|
-
},
|
|
864
|
+
}, vn), () => {
|
|
865
865
|
A = !1, $e.current && clearTimeout($e.current);
|
|
866
866
|
};
|
|
867
867
|
}, [Se, Nt, e.codiceFiscale, h]);
|
|
@@ -869,28 +869,28 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
869
869
|
K(() => {
|
|
870
870
|
const d = e.insuranceNumber;
|
|
871
871
|
if (!Qe || !wt || !d) {
|
|
872
|
-
|
|
872
|
+
Fe(qt);
|
|
873
873
|
return;
|
|
874
874
|
}
|
|
875
|
-
|
|
875
|
+
Fe({ state: "pending" }), He.current && clearTimeout(He.current), He.current = setTimeout(() => {
|
|
876
876
|
const A = It.current;
|
|
877
877
|
A && A(d).then(
|
|
878
|
-
(te) =>
|
|
878
|
+
(te) => Fe(
|
|
879
879
|
te.valid ? { state: "valid" } : { state: "invalid", hint: te.hint }
|
|
880
880
|
)
|
|
881
881
|
).catch(
|
|
882
|
-
() =>
|
|
882
|
+
() => Fe({
|
|
883
883
|
state: "invalid",
|
|
884
884
|
hint: h("booking.details.insuranceNumber.unavailable")
|
|
885
885
|
})
|
|
886
886
|
);
|
|
887
|
-
},
|
|
887
|
+
}, vn);
|
|
888
888
|
}, [Qe, wt, e.insuranceNumber, h]);
|
|
889
889
|
const Ke = R(() => {
|
|
890
890
|
var A;
|
|
891
891
|
if (i) return !0;
|
|
892
892
|
const d = r ? (A = e.email) == null ? void 0 : A.trim() : e.email;
|
|
893
|
-
return !ot && !d ? !0 : !!(d &&
|
|
893
|
+
return !ot && !d ? !0 : !!(d && vi.test(d));
|
|
894
894
|
}, [i, r, ot, e.email]), mt = R(
|
|
895
895
|
() => !!(e.mobilePhone && e.mobilePhone.length >= 6),
|
|
896
896
|
[e.mobilePhone]
|
|
@@ -911,7 +911,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
911
911
|
e.dateOfBirth,
|
|
912
912
|
Qe,
|
|
913
913
|
Ae.state
|
|
914
|
-
]), ft = x != null && x.trim() ? x : void 0, Rt = ft !== void 0,
|
|
914
|
+
]), ft = x != null && x.trim() ? x : void 0, Rt = ft !== void 0, De = !Rt || !!e.criticalInformationAccepted, Zt = !ut || !(o != null && o.required) || Je, Qt = !!(e.privacyConsent && e.termsConsent && De && Zt), Ct = !be || $.length > 0, Re = Xe && Qt && Ct && (!f || lt) && !y && !se, ye = !Re && !se && !y, et = `${H}-submit-hint`, ie = {
|
|
915
915
|
firstName: re.firstName && !((Q = e.firstName) != null && Q.trim()) ? h("booking.details.firstName.required") : void 0,
|
|
916
916
|
lastName: re.lastName && !((ae = e.lastName) != null && ae.trim()) ? h("booking.details.lastName.required") : void 0,
|
|
917
917
|
email: !i && re.email && !Ke ? h("booking.details.email.invalid") : void 0,
|
|
@@ -924,7 +924,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
924
924
|
[z.city]: Ze("city"),
|
|
925
925
|
[z.postcode]: Ze("postcode"),
|
|
926
926
|
[z.province]: Ze("province")
|
|
927
|
-
}, At =
|
|
927
|
+
}, At = bn.filter(
|
|
928
928
|
(d) => he.has(d) && ie[d] !== void 0
|
|
929
929
|
);
|
|
930
930
|
At.length !== he.size && Te(new Set(At));
|
|
@@ -932,11 +932,11 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
932
932
|
var te;
|
|
933
933
|
if (d.preventDefault(), !se && !fe.current && !Re && Te(
|
|
934
934
|
new Set(
|
|
935
|
-
|
|
935
|
+
bn.filter(
|
|
936
936
|
(ze) => he.has(ze) || !ie[ze]
|
|
937
937
|
)
|
|
938
938
|
)
|
|
939
|
-
),
|
|
939
|
+
), Ee({
|
|
940
940
|
firstName: !0,
|
|
941
941
|
lastName: !0,
|
|
942
942
|
email: !i,
|
|
@@ -976,7 +976,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
976
976
|
// config.
|
|
977
977
|
confirmationChannels: be ? $ : void 0,
|
|
978
978
|
..._ && e.billing ? {
|
|
979
|
-
billing:
|
|
979
|
+
billing: Ii(
|
|
980
980
|
e.billing,
|
|
981
981
|
`${e.firstName.trim()} ${e.lastName.trim()}`
|
|
982
982
|
)
|
|
@@ -1010,10 +1010,10 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1010
1010
|
}
|
|
1011
1011
|
)
|
|
1012
1012
|
}
|
|
1013
|
-
),
|
|
1013
|
+
), Dt = (d, A) => {
|
|
1014
1014
|
const te = $t(A);
|
|
1015
1015
|
return te ? /* @__PURE__ */ n(
|
|
1016
|
-
|
|
1016
|
+
xn,
|
|
1017
1017
|
{
|
|
1018
1018
|
ns: "ui",
|
|
1019
1019
|
i18nKey: d,
|
|
@@ -1053,7 +1053,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1053
1053
|
"aria-busy": se || void 0,
|
|
1054
1054
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1055
1055
|
children: [
|
|
1056
|
-
|
|
1056
|
+
E,
|
|
1057
1057
|
/* @__PURE__ */ k("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
|
|
1058
1058
|
/* @__PURE__ */ n(
|
|
1059
1059
|
je,
|
|
@@ -1105,7 +1105,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1105
1105
|
error: ie.email,
|
|
1106
1106
|
announceError: pe("email"),
|
|
1107
1107
|
children: /* @__PURE__ */ n(
|
|
1108
|
-
|
|
1108
|
+
ss,
|
|
1109
1109
|
{
|
|
1110
1110
|
disableBuiltInValidation: r,
|
|
1111
1111
|
value: e.email ?? "",
|
|
@@ -1123,7 +1123,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1123
1123
|
error: ie.mobilePhone,
|
|
1124
1124
|
announceError: pe("mobilePhone"),
|
|
1125
1125
|
children: /* @__PURE__ */ n(
|
|
1126
|
-
|
|
1126
|
+
is,
|
|
1127
1127
|
{
|
|
1128
1128
|
value: e.mobilePhone ?? "",
|
|
1129
1129
|
defaultCountry: l == null ? void 0 : l.toUpperCase(),
|
|
@@ -1147,7 +1147,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1147
1147
|
error: ie.dateOfBirth,
|
|
1148
1148
|
announceError: pe("dateOfBirth"),
|
|
1149
1149
|
children: /* @__PURE__ */ n(
|
|
1150
|
-
|
|
1150
|
+
ns,
|
|
1151
1151
|
{
|
|
1152
1152
|
value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
|
|
1153
1153
|
onChange: (d) => {
|
|
@@ -1213,7 +1213,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1213
1213
|
] }),
|
|
1214
1214
|
Se ? Tt : null,
|
|
1215
1215
|
/* @__PURE__ */ n(
|
|
1216
|
-
|
|
1216
|
+
os,
|
|
1217
1217
|
{
|
|
1218
1218
|
value: oe,
|
|
1219
1219
|
onChange: (d) => {
|
|
@@ -1221,7 +1221,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1221
1221
|
return (
|
|
1222
1222
|
// The name is set from the patient's own on submit.
|
|
1223
1223
|
q({
|
|
1224
|
-
billing:
|
|
1224
|
+
billing: yi(
|
|
1225
1225
|
d,
|
|
1226
1226
|
"",
|
|
1227
1227
|
// A second line belongs to its street: it goes when the
|
|
@@ -1231,7 +1231,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1231
1231
|
})
|
|
1232
1232
|
);
|
|
1233
1233
|
},
|
|
1234
|
-
popularCountries:
|
|
1234
|
+
popularCountries: Si,
|
|
1235
1235
|
layout: "grid",
|
|
1236
1236
|
fields: xe ? void 0 : ["street", "city", "postcode"],
|
|
1237
1237
|
required: xe ? ["country", "street", "city", "postcode", "province"] : ["country", "street", "city", "postcode"],
|
|
@@ -1259,13 +1259,13 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1259
1259
|
{
|
|
1260
1260
|
label: h("booking.details.note.label"),
|
|
1261
1261
|
description: h("booking.details.note.helper", {
|
|
1262
|
-
max:
|
|
1262
|
+
max: hn
|
|
1263
1263
|
}),
|
|
1264
1264
|
children: /* @__PURE__ */ n(
|
|
1265
|
-
|
|
1265
|
+
rs,
|
|
1266
1266
|
{
|
|
1267
1267
|
value: e.note ?? "",
|
|
1268
|
-
maxLength:
|
|
1268
|
+
maxLength: hn,
|
|
1269
1269
|
rows: 3,
|
|
1270
1270
|
onChange: (d) => q({ note: d.target.value })
|
|
1271
1271
|
}
|
|
@@ -1301,7 +1301,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1301
1301
|
{
|
|
1302
1302
|
dir: "auto",
|
|
1303
1303
|
className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]",
|
|
1304
|
-
children:
|
|
1304
|
+
children: gi(ft).map(
|
|
1305
1305
|
(d, A) => d.kind === "link" ? /* @__PURE__ */ n(
|
|
1306
1306
|
"a",
|
|
1307
1307
|
{
|
|
@@ -1313,7 +1313,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1313
1313
|
children: d.text
|
|
1314
1314
|
},
|
|
1315
1315
|
A
|
|
1316
|
-
) : /* @__PURE__ */ n(
|
|
1316
|
+
) : /* @__PURE__ */ n(Yn, { children: d.text }, A)
|
|
1317
1317
|
)
|
|
1318
1318
|
}
|
|
1319
1319
|
),
|
|
@@ -1346,12 +1346,12 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1346
1346
|
role: "group",
|
|
1347
1347
|
"aria-labelledby": `${H}-payment-heading`,
|
|
1348
1348
|
"data-notice-style": N,
|
|
1349
|
-
className:
|
|
1349
|
+
className: ki({
|
|
1350
1350
|
noticeStyle: N
|
|
1351
1351
|
}),
|
|
1352
1352
|
children: [
|
|
1353
1353
|
N === "highlighted" ? /* @__PURE__ */ k("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1354
|
-
/* @__PURE__ */ n("span", { className: "ds:flex ds:size-9 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]", children: /* @__PURE__ */ n(
|
|
1354
|
+
/* @__PURE__ */ n("span", { className: "ds:flex ds:size-9 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]", children: /* @__PURE__ */ n(as, { "aria-hidden": "true", className: "ds:size-5" }) }),
|
|
1355
1355
|
/* @__PURE__ */ n(
|
|
1356
1356
|
"h3",
|
|
1357
1357
|
{
|
|
@@ -1392,7 +1392,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1392
1392
|
{
|
|
1393
1393
|
checked: lt,
|
|
1394
1394
|
onCheckedChange: (d) => {
|
|
1395
|
-
|
|
1395
|
+
Et(
|
|
1396
1396
|
d === !0 ? qe : void 0
|
|
1397
1397
|
), q({ paymentAccepted: d === !0 });
|
|
1398
1398
|
},
|
|
@@ -1421,7 +1421,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1421
1421
|
onCheckedChange: (d) => q({ privacyConsent: d === !0 }),
|
|
1422
1422
|
"aria-required": !0,
|
|
1423
1423
|
label: /* @__PURE__ */ k(me, { children: [
|
|
1424
|
-
|
|
1424
|
+
Dt(
|
|
1425
1425
|
"booking.details.consent.privacy.label",
|
|
1426
1426
|
b
|
|
1427
1427
|
),
|
|
@@ -1443,7 +1443,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1443
1443
|
onCheckedChange: (d) => q({ termsConsent: d === !0 }),
|
|
1444
1444
|
"aria-required": !0,
|
|
1445
1445
|
label: /* @__PURE__ */ k(me, { children: [
|
|
1446
|
-
|
|
1446
|
+
Dt(
|
|
1447
1447
|
"booking.details.consent.terms.label",
|
|
1448
1448
|
g
|
|
1449
1449
|
),
|
|
@@ -1499,7 +1499,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1499
1499
|
"data-unanswered": U || void 0,
|
|
1500
1500
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
1501
1501
|
children: V ? /* @__PURE__ */ n(
|
|
1502
|
-
|
|
1502
|
+
ts,
|
|
1503
1503
|
{
|
|
1504
1504
|
variant: "horizontal",
|
|
1505
1505
|
label: h("booking.confirmation.heading"),
|
|
@@ -1509,7 +1509,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1509
1509
|
}),
|
|
1510
1510
|
error: U ? h("booking.confirmation.atLeastOne") : void 0,
|
|
1511
1511
|
children: Le.map((d) => /* @__PURE__ */ n(
|
|
1512
|
-
|
|
1512
|
+
es,
|
|
1513
1513
|
{
|
|
1514
1514
|
value: d,
|
|
1515
1515
|
label: h(`booking.confirmation.channel.${d}`)
|
|
@@ -1518,7 +1518,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1518
1518
|
))
|
|
1519
1519
|
}
|
|
1520
1520
|
) : /* @__PURE__ */ n(
|
|
1521
|
-
|
|
1521
|
+
Xn,
|
|
1522
1522
|
{
|
|
1523
1523
|
label: h("booking.confirmation.heading"),
|
|
1524
1524
|
helperText: h("booking.confirmation.helper"),
|
|
@@ -1558,7 +1558,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1558
1558
|
disabled: se || y,
|
|
1559
1559
|
"aria-disabled": !Re || void 0,
|
|
1560
1560
|
"aria-describedby": ye ? et : void 0,
|
|
1561
|
-
startIcon: se ? /* @__PURE__ */ n(
|
|
1561
|
+
startIcon: se ? /* @__PURE__ */ n(In, { variant: "pulse", size: "sm" }) : void 0,
|
|
1562
1562
|
children: f ? h("booking.payment.submit", { amount: ke }) : h("booking.details.submit")
|
|
1563
1563
|
}
|
|
1564
1564
|
)
|
|
@@ -1568,7 +1568,7 @@ const gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 3
|
|
|
1568
1568
|
);
|
|
1569
1569
|
}
|
|
1570
1570
|
);
|
|
1571
|
-
|
|
1571
|
+
dn.displayName = "BookingDetailsForm";
|
|
1572
1572
|
const Mt = [
|
|
1573
1573
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
1574
1574
|
"ds:focus-visible:outline-solid",
|
|
@@ -1576,7 +1576,7 @@ const Mt = [
|
|
|
1576
1576
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1577
1577
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
1578
1578
|
].join(" ");
|
|
1579
|
-
function
|
|
1579
|
+
function wi({
|
|
1580
1580
|
length: e = 5,
|
|
1581
1581
|
onVerify: t,
|
|
1582
1582
|
onResend: s,
|
|
@@ -1584,9 +1584,9 @@ function Ni({
|
|
|
1584
1584
|
phoneHint: r,
|
|
1585
1585
|
onVerified: a
|
|
1586
1586
|
}) {
|
|
1587
|
-
const { t: c, i18n: p } = Y("ui"), u = bt(), m = bt(), v =
|
|
1587
|
+
const { t: c, i18n: p } = Y("ui"), u = bt(), m = bt(), v = F(null), b = F(null), g = F(null), o = F(!1), f = F(!1), [I, y] = G(null), [B, N] = G(!1), [x, S] = G(null), [D, T] = G(
|
|
1588
1588
|
null
|
|
1589
|
-
), [
|
|
1589
|
+
), [E, l] = G(0), w = Number.isFinite(i) ? Math.max(0, Math.ceil(i)) : 60, [O, V] = G(
|
|
1590
1590
|
() => Date.now() + w * 1e3
|
|
1591
1591
|
), [j, Z] = G(w), h = x === "too-many-attempts";
|
|
1592
1592
|
K(() => (o.current = !0, () => {
|
|
@@ -1594,18 +1594,18 @@ function Ni({
|
|
|
1594
1594
|
}), []), K(() => {
|
|
1595
1595
|
var M;
|
|
1596
1596
|
(M = b.current) == null || M.focus();
|
|
1597
|
-
}, [
|
|
1597
|
+
}, [E]), K(() => {
|
|
1598
1598
|
var we, fe;
|
|
1599
|
-
if (I || !h &&
|
|
1599
|
+
if (I || !h && D !== "resend") return;
|
|
1600
1600
|
const M = document.activeElement, J = (we = v.current) == null ? void 0 : we.closest("section");
|
|
1601
1601
|
M && M !== document.body && !(J != null && J.contains(M)) || (g.current && !g.current.disabled ? g.current.focus() : (fe = v.current) == null || fe.focus());
|
|
1602
|
-
}, [I, h,
|
|
1602
|
+
}, [I, h, D]), K(() => {
|
|
1603
1603
|
if (j === 0) return;
|
|
1604
1604
|
const M = setTimeout(() => {
|
|
1605
|
-
Z(Math.max(0, Math.ceil((
|
|
1605
|
+
Z(Math.max(0, Math.ceil((O - Date.now()) / 1e3)));
|
|
1606
1606
|
}, 1e3);
|
|
1607
1607
|
return () => clearTimeout(M);
|
|
1608
|
-
}, [
|
|
1608
|
+
}, [O, j]);
|
|
1609
1609
|
const ee = async (M) => {
|
|
1610
1610
|
if (!(f.current || h)) {
|
|
1611
1611
|
f.current = !0, y("verify"), N(!1), S(null), T(null);
|
|
@@ -1621,7 +1621,7 @@ function Ni({
|
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
1623
|
}, H = async () => {
|
|
1624
|
-
if (!(f.current || Date.now() <
|
|
1624
|
+
if (!(f.current || Date.now() < O)) {
|
|
1625
1625
|
f.current = !0, y("resend"), N(!1), T(null);
|
|
1626
1626
|
try {
|
|
1627
1627
|
if (await s(), !o.current) return;
|
|
@@ -1651,7 +1651,7 @@ function Ni({
|
|
|
1651
1651
|
}
|
|
1652
1652
|
),
|
|
1653
1653
|
/* @__PURE__ */ n("p", { id: m, className: "type-body ds:m-0", children: r ? /* @__PURE__ */ n(
|
|
1654
|
-
|
|
1654
|
+
xn,
|
|
1655
1655
|
{
|
|
1656
1656
|
t: c,
|
|
1657
1657
|
ns: "ui",
|
|
@@ -1661,7 +1661,7 @@ function Ni({
|
|
|
1661
1661
|
}
|
|
1662
1662
|
) : c("booking.code.instruction") }),
|
|
1663
1663
|
/* @__PURE__ */ n(je, { label: c("booking.code.label"), error: Pe, children: /* @__PURE__ */ n("div", { dir: "ltr", children: /* @__PURE__ */ n(
|
|
1664
|
-
|
|
1664
|
+
cs,
|
|
1665
1665
|
{
|
|
1666
1666
|
ref: b,
|
|
1667
1667
|
length: e,
|
|
@@ -1670,9 +1670,9 @@ function Ni({
|
|
|
1670
1670
|
disabled: !!I || h,
|
|
1671
1671
|
onComplete: ee
|
|
1672
1672
|
},
|
|
1673
|
-
|
|
1673
|
+
E
|
|
1674
1674
|
) }) }),
|
|
1675
|
-
|
|
1675
|
+
D ? /* @__PURE__ */ n(ne, { variant: "error", children: /* @__PURE__ */ n(ne.Description, { children: c(D === "verify" ? "booking.code.verifyFailed" : "booking.code.resendFailed") }) }) : null,
|
|
1676
1676
|
/* @__PURE__ */ n("p", { role: "status", className: "type-body ds:m-0", children: I === "verify" ? c("booking.code.verifying") : B ? c("booking.code.resent") : null }),
|
|
1677
1677
|
/* @__PURE__ */ n(
|
|
1678
1678
|
tt,
|
|
@@ -1693,7 +1693,7 @@ function Ni({
|
|
|
1693
1693
|
}
|
|
1694
1694
|
);
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Pn(e) {
|
|
1697
1697
|
const t = e.payment;
|
|
1698
1698
|
if (!t) return;
|
|
1699
1699
|
const s = (t.currencyCode ?? "EUR").toUpperCase();
|
|
@@ -1705,24 +1705,24 @@ function _n(e) {
|
|
|
1705
1705
|
currencyCode: s
|
|
1706
1706
|
};
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Ci(e) {
|
|
1709
1709
|
var r;
|
|
1710
1710
|
const t = (r = e.priceLabel) != null && r.trim() ? e.priceLabel : void 0, s = t ? { label: t } : void 0;
|
|
1711
1711
|
if (!e.payment) return { price: s };
|
|
1712
|
-
const i =
|
|
1712
|
+
const i = Pn(e);
|
|
1713
1713
|
return i ? {
|
|
1714
1714
|
price: s ?? (i.kind === "full" ? { amount: i } : void 0),
|
|
1715
1715
|
payment: i
|
|
1716
1716
|
} : { price: s, payment: "unavailable" };
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function Ai(e, t, s) {
|
|
1719
1719
|
const i = e.filter(
|
|
1720
1720
|
(a) => t.includes(a.id)
|
|
1721
1721
|
), r = (s == null ? void 0 : s.serviceId) ?? (t.length === 1 ? t[0] : void 0);
|
|
1722
1722
|
if (r) {
|
|
1723
1723
|
const a = i.find((p) => p.id === r);
|
|
1724
1724
|
if (!a) return { blocked: !0 };
|
|
1725
|
-
const c =
|
|
1725
|
+
const c = Pn(a);
|
|
1726
1726
|
return { payment: c, blocked: !!(a.payment && !c) };
|
|
1727
1727
|
}
|
|
1728
1728
|
return { blocked: i.some((a) => !!a.payment) };
|
|
@@ -1735,7 +1735,7 @@ function Kt(e) {
|
|
|
1735
1735
|
e.currencyCode
|
|
1736
1736
|
]) : "";
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function Ti({
|
|
1739
1739
|
services: e,
|
|
1740
1740
|
value: t,
|
|
1741
1741
|
availableSlots: s,
|
|
@@ -1757,9 +1757,9 @@ function Ai({
|
|
|
1757
1757
|
t.operatorIds,
|
|
1758
1758
|
t.date,
|
|
1759
1759
|
t.slotKey
|
|
1760
|
-
]), b =
|
|
1760
|
+
]), b = F(
|
|
1761
1761
|
void 0
|
|
1762
|
-
), o = (t.date ? (J = s[t.date]) == null ? void 0 : J.find((W) => W.key === t.slotKey) : void 0) ?? (((we = b.current) == null ? void 0 : we.selection) === v ? b.current.slot : void 0), f =
|
|
1762
|
+
), o = (t.date ? (J = s[t.date]) == null ? void 0 : J.find((W) => W.key === t.slotKey) : void 0) ?? (((we = b.current) == null ? void 0 : we.selection) === v ? b.current.slot : void 0), f = Ai(
|
|
1763
1763
|
e,
|
|
1764
1764
|
Ge(t),
|
|
1765
1765
|
o
|
|
@@ -1769,7 +1769,7 @@ function Ai({
|
|
|
1769
1769
|
Kt(f.payment),
|
|
1770
1770
|
p,
|
|
1771
1771
|
I
|
|
1772
|
-
]), B = f.payment ? JSON.stringify([Kt(f.payment), p]) : "", N =
|
|
1772
|
+
]), B = f.payment ? JSON.stringify([Kt(f.payment), p]) : "", N = F(void 0), x = !!((fe = t.details) != null && fe.paymentAccepted);
|
|
1773
1773
|
K(() => {
|
|
1774
1774
|
if (!x) N.current = void 0;
|
|
1775
1775
|
else if (B) N.current === void 0 ? N.current = B : N.current !== B && (N.current = void 0, r({
|
|
@@ -1778,17 +1778,17 @@ function Ai({
|
|
|
1778
1778
|
}));
|
|
1779
1779
|
else return;
|
|
1780
1780
|
}, [x, B, r, t]);
|
|
1781
|
-
const S =
|
|
1781
|
+
const S = F(y);
|
|
1782
1782
|
S.current = y;
|
|
1783
|
-
const [
|
|
1783
|
+
const [D, T] = G({ status: "idle" }), E = F(0), l = F(!1), w = F(!0), O = F(!1), V = F(void 0), j = F(y);
|
|
1784
1784
|
K(() => (w.current = !0, () => {
|
|
1785
|
-
w.current = !1,
|
|
1785
|
+
w.current = !1, E.current += 1;
|
|
1786
1786
|
}), []);
|
|
1787
|
-
const Z =
|
|
1787
|
+
const Z = D.status === "payment" || D.status === "code" || D.status === "success";
|
|
1788
1788
|
K(() => {
|
|
1789
|
-
j.current === y ||
|
|
1789
|
+
j.current === y || O.current || Z || (j.current = y, E.current += 1, l.current = !1, T({ status: "idle" }));
|
|
1790
1790
|
}, [y, Z]);
|
|
1791
|
-
const h = Z || j.current === y ?
|
|
1791
|
+
const h = Z || j.current === y ? D.session : void 0, ee = R(
|
|
1792
1792
|
() => h && (a == null ? void 0 : a.sessionId) === h.id ? a : h ? { sessionId: h.id, status: "ready" } : void 0,
|
|
1793
1793
|
[h, a]
|
|
1794
1794
|
);
|
|
@@ -1802,40 +1802,40 @@ function Ai({
|
|
|
1802
1802
|
[h, ee]
|
|
1803
1803
|
);
|
|
1804
1804
|
K(() => {
|
|
1805
|
-
!h || !H ||
|
|
1805
|
+
!h || !H || O.current || (H.status === "paid" ? (O.current = !0, T((W) => ({
|
|
1806
1806
|
...W,
|
|
1807
1807
|
status: W.codeStep ? "code" : "success"
|
|
1808
|
-
}))) : H.status === "cancelled" && (
|
|
1808
|
+
}))) : H.status === "cancelled" && (E.current += 1, l.current = !1, b.current = void 0, r({
|
|
1809
1809
|
...t,
|
|
1810
1810
|
details: { ...t.details, paymentAccepted: !1 }
|
|
1811
1811
|
}), T({ status: "idle", cancelled: !0 })));
|
|
1812
1812
|
}, [h, H, r, t]);
|
|
1813
1813
|
const Pe = () => {
|
|
1814
|
-
|
|
1814
|
+
E.current += 1, l.current = !1, O.current = !1, V.current = void 0, b.current = void 0, j.current = S.current, T({ status: "idle" });
|
|
1815
1815
|
}, M = async (W) => {
|
|
1816
|
-
var Ae,
|
|
1817
|
-
if (!(o != null && o.available) || I || c || l.current ||
|
|
1816
|
+
var Ae, Fe, re, Ee, de;
|
|
1817
|
+
if (!(o != null && o.available) || I || c || l.current || D.status === "payment" || O.current || f.payment && !W.paymentAccepted) return;
|
|
1818
1818
|
l.current = !0;
|
|
1819
1819
|
const Ve = m ? { ...m } : void 0;
|
|
1820
1820
|
b.current = { selection: v, slot: { ...o } };
|
|
1821
|
-
const ct = ++
|
|
1821
|
+
const ct = ++E.current, ge = y;
|
|
1822
1822
|
j.current = ge;
|
|
1823
1823
|
const se = {
|
|
1824
1824
|
slot: { ...o, meta: o.meta ? { ...o.meta } : void 0 },
|
|
1825
1825
|
value: {
|
|
1826
1826
|
...t,
|
|
1827
1827
|
serviceIds: (Ae = t.serviceIds) == null ? void 0 : Ae.slice(),
|
|
1828
|
-
specialtyIds: (
|
|
1828
|
+
specialtyIds: (Fe = t.specialtyIds) == null ? void 0 : Fe.slice(),
|
|
1829
1829
|
operatorIds: (re = t.operatorIds) == null ? void 0 : re.slice(),
|
|
1830
|
-
operatorId:
|
|
1830
|
+
operatorId: Ln(t) ?? t.operatorId,
|
|
1831
1831
|
details: { ...W }
|
|
1832
1832
|
},
|
|
1833
1833
|
details: {
|
|
1834
1834
|
...W,
|
|
1835
|
-
confirmationChannels: (
|
|
1835
|
+
confirmationChannels: (Ee = W.confirmationChannels) == null ? void 0 : Ee.slice()
|
|
1836
1836
|
},
|
|
1837
1837
|
...f.payment ? { payment: { ...f.payment } } : {}
|
|
1838
|
-
}, ce = () => w.current &&
|
|
1838
|
+
}, ce = () => w.current && E.current === ct && S.current === ge;
|
|
1839
1839
|
T({ status: "submitting" });
|
|
1840
1840
|
let Ce = !1;
|
|
1841
1841
|
try {
|
|
@@ -1853,7 +1853,7 @@ function Ai({
|
|
|
1853
1853
|
session: { id: Te.id, payment: { ...Te.payment } },
|
|
1854
1854
|
codeStep: Ve
|
|
1855
1855
|
});
|
|
1856
|
-
} else he != null && he.paymentSession ? T({ status: "error" }) : (
|
|
1856
|
+
} else he != null && he.paymentSession ? T({ status: "error" }) : (O.current = !0, T({
|
|
1857
1857
|
status: Ve ? "code" : "success",
|
|
1858
1858
|
snapshot: se,
|
|
1859
1859
|
codeStep: Ve
|
|
@@ -1865,7 +1865,7 @@ function Ai({
|
|
|
1865
1865
|
}
|
|
1866
1866
|
};
|
|
1867
1867
|
return {
|
|
1868
|
-
...
|
|
1868
|
+
...D,
|
|
1869
1869
|
payment: f.payment,
|
|
1870
1870
|
blocked: I,
|
|
1871
1871
|
state: H,
|
|
@@ -1879,7 +1879,7 @@ function Ai({
|
|
|
1879
1879
|
}
|
|
1880
1880
|
};
|
|
1881
1881
|
}
|
|
1882
|
-
const
|
|
1882
|
+
const Di = Ft(
|
|
1883
1883
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
|
|
1884
1884
|
{
|
|
1885
1885
|
variants: {
|
|
@@ -1910,37 +1910,37 @@ const Ti = Et(
|
|
|
1910
1910
|
), Oi = [
|
|
1911
1911
|
[
|
|
1912
1912
|
/\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
|
|
1913
|
-
|
|
1913
|
+
fn
|
|
1914
1914
|
],
|
|
1915
|
-
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i,
|
|
1916
|
-
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i,
|
|
1917
|
-
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i,
|
|
1918
|
-
[/\b(otorin|udito|orecchi|hearing|ear)/i,
|
|
1915
|
+
[/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, xs],
|
|
1916
|
+
[/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Us],
|
|
1917
|
+
[/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Is],
|
|
1918
|
+
[/\b(otorin|udito|orecchi|hearing|ear)/i, _s],
|
|
1919
1919
|
[/\b(neuro|brain|cervello)/i, Es],
|
|
1920
|
-
[/\b(pediatr|child|bambin)/i,
|
|
1921
|
-
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i,
|
|
1922
|
-
[/\b(lab|analis|test|sang|esami)/i,
|
|
1923
|
-
[/\b(farmaco|pharm|pillol|refill)/i,
|
|
1924
|
-
[/\b(chirurg|surg|intervent|operat)/i,
|
|
1925
|
-
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i,
|
|
1926
|
-
[/\b(vacc|inject|inie|punto)/i,
|
|
1927
|
-
[/\b(derma|skin|pelle)/i,
|
|
1928
|
-
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i,
|
|
1929
|
-
[/\b(general|medicin|family|control|check[-\s]?up)/i,
|
|
1920
|
+
[/\b(pediatr|child|bambin)/i, Ns],
|
|
1921
|
+
[/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Ms],
|
|
1922
|
+
[/\b(lab|analis|test|sang|esami)/i, Vs],
|
|
1923
|
+
[/\b(farmaco|pharm|pillol|refill)/i, qs],
|
|
1924
|
+
[/\b(chirurg|surg|intervent|operat)/i, zs],
|
|
1925
|
+
[/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, ws],
|
|
1926
|
+
[/\b(vacc|inject|inie|punto)/i, fn],
|
|
1927
|
+
[/\b(derma|skin|pelle)/i, Cs],
|
|
1928
|
+
[/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, As],
|
|
1929
|
+
[/\b(general|medicin|family|control|check[-\s]?up)/i, Ds]
|
|
1930
1930
|
];
|
|
1931
|
-
function
|
|
1931
|
+
function Mi(e) {
|
|
1932
1932
|
for (const [t, s] of Oi)
|
|
1933
1933
|
if (t.test(e)) return s;
|
|
1934
1934
|
return null;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1937
|
-
const t =
|
|
1936
|
+
function Fi(e) {
|
|
1937
|
+
const t = Mi(e.label) ?? Ss;
|
|
1938
1938
|
return /* @__PURE__ */ n(t, { "aria-hidden": "true", className: "ds:size-5" });
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function Vn() {
|
|
1941
1941
|
const { t: e, i18n: t } = Y("ui");
|
|
1942
1942
|
return (s) => {
|
|
1943
|
-
const i =
|
|
1943
|
+
const i = Ci(s), r = (c) => Gt(c.amountCents, c.currencyCode, t.language), a = i.price ? "label" in i.price ? i.price.label : r(i.price.amount) : void 0;
|
|
1944
1944
|
return i.payment === "unavailable" ? {
|
|
1945
1945
|
price: a,
|
|
1946
1946
|
payment: e("booking.payment.unavailable"),
|
|
@@ -1967,7 +1967,7 @@ const Ei = [
|
|
|
1967
1967
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1968
1968
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1969
1969
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
1970
|
-
].join(" "),
|
|
1970
|
+
].join(" "), Bi = Ft(Ei, {
|
|
1971
1971
|
variants: {
|
|
1972
1972
|
state: {
|
|
1973
1973
|
available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
|
|
@@ -1978,26 +1978,26 @@ const Ei = [
|
|
|
1978
1978
|
},
|
|
1979
1979
|
defaultVariants: { state: "unavailable" }
|
|
1980
1980
|
});
|
|
1981
|
-
function
|
|
1981
|
+
function Li({
|
|
1982
1982
|
availableDates: e,
|
|
1983
1983
|
selectedDate: t,
|
|
1984
1984
|
onSelectDate: s,
|
|
1985
1985
|
locale: i,
|
|
1986
1986
|
loading: r
|
|
1987
1987
|
}) {
|
|
1988
|
-
const { t: a } = Y("ui"), c = R(() => t ?
|
|
1989
|
-
const N =
|
|
1990
|
-
for (let
|
|
1988
|
+
const { t: a } = Y("ui"), c = R(() => t ? Ot(Ie(t)) : e.length > 0 ? Ot(Ie(e[0])) : Ot(/* @__PURE__ */ new Date()), [t, e]), [p, u] = G(c), [m, v] = G(null), b = R(() => {
|
|
1989
|
+
const N = Ot(p), x = gs(p), S = N.getDay(), D = x.getDate(), T = [];
|
|
1990
|
+
for (let E = S; E > 0; E -= 1) {
|
|
1991
1991
|
const l = new Date(N);
|
|
1992
|
-
l.setDate(N.getDate() -
|
|
1992
|
+
l.setDate(N.getDate() - E), T.push(l);
|
|
1993
1993
|
}
|
|
1994
|
-
for (let
|
|
1994
|
+
for (let E = 0; E < D; E += 1) {
|
|
1995
1995
|
const l = new Date(N);
|
|
1996
|
-
l.setDate(N.getDate() +
|
|
1996
|
+
l.setDate(N.getDate() + E), T.push(l);
|
|
1997
1997
|
}
|
|
1998
1998
|
for (; T.length < 42; ) {
|
|
1999
|
-
const
|
|
2000
|
-
l.setDate(
|
|
1999
|
+
const E = T[T.length - 1], l = new Date(E);
|
|
2000
|
+
l.setDate(E.getDate() + 1), T.push(l);
|
|
2001
2001
|
}
|
|
2002
2002
|
return T;
|
|
2003
2003
|
}, [p]), g = R(() => {
|
|
@@ -2012,12 +2012,12 @@ function Bi({
|
|
|
2012
2012
|
}, [p, i]), o = R(() => {
|
|
2013
2013
|
const N = new Date(2024, 0, 7);
|
|
2014
2014
|
return Array.from({ length: 7 }, (x, S) => {
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2015
|
+
const D = new Date(N);
|
|
2016
|
+
D.setDate(N.getDate() + S);
|
|
2017
2017
|
try {
|
|
2018
|
-
return new Intl.DateTimeFormat(i, { weekday: "short" }).format(
|
|
2018
|
+
return new Intl.DateTimeFormat(i, { weekday: "short" }).format(D);
|
|
2019
2019
|
} catch {
|
|
2020
|
-
return jt(
|
|
2020
|
+
return jt(D, "EEE");
|
|
2021
2021
|
}
|
|
2022
2022
|
});
|
|
2023
2023
|
}, [i]), f = R(() => new Set(e), [e]), I = Ne(
|
|
@@ -2060,7 +2060,7 @@ function Bi({
|
|
|
2060
2060
|
default:
|
|
2061
2061
|
return;
|
|
2062
2062
|
}
|
|
2063
|
-
S && (N.preventDefault(), Vt(S, p) || u(
|
|
2063
|
+
S && (N.preventDefault(), Vt(S, p) || u(Ot(S)), v(S));
|
|
2064
2064
|
},
|
|
2065
2065
|
[I, s, p]
|
|
2066
2066
|
);
|
|
@@ -2079,15 +2079,15 @@ function Bi({
|
|
|
2079
2079
|
) : /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2080
2080
|
/* @__PURE__ */ k("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2081
2081
|
/* @__PURE__ */ n(
|
|
2082
|
-
|
|
2082
|
+
pn,
|
|
2083
2083
|
{
|
|
2084
|
-
icon: /* @__PURE__ */ n(
|
|
2084
|
+
icon: /* @__PURE__ */ n(vs, {}),
|
|
2085
2085
|
"aria-label": a("booking.previousMonth"),
|
|
2086
2086
|
size: "sm",
|
|
2087
2087
|
intent: "ghost",
|
|
2088
2088
|
flipIconInRtl: !0,
|
|
2089
2089
|
onClick: () => {
|
|
2090
|
-
u((N) =>
|
|
2090
|
+
u((N) => Ws(N)), v(null);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
),
|
|
@@ -2100,15 +2100,15 @@ function Bi({
|
|
|
2100
2100
|
}
|
|
2101
2101
|
),
|
|
2102
2102
|
/* @__PURE__ */ n(
|
|
2103
|
-
|
|
2103
|
+
pn,
|
|
2104
2104
|
{
|
|
2105
|
-
icon: /* @__PURE__ */ n(
|
|
2105
|
+
icon: /* @__PURE__ */ n(bs, {}),
|
|
2106
2106
|
"aria-label": a("booking.nextMonth"),
|
|
2107
2107
|
size: "sm",
|
|
2108
2108
|
intent: "ghost",
|
|
2109
2109
|
flipIconInRtl: !0,
|
|
2110
2110
|
onClick: () => {
|
|
2111
|
-
u((N) =>
|
|
2111
|
+
u((N) => Cn(N, 1)), v(null);
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
2114
|
)
|
|
@@ -2141,8 +2141,8 @@ function Bi({
|
|
|
2141
2141
|
{
|
|
2142
2142
|
role: "row",
|
|
2143
2143
|
className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
|
|
2144
|
-
children: b.slice(x * 7, x * 7 + 7).map((S,
|
|
2145
|
-
const T = x * 7 +
|
|
2144
|
+
children: b.slice(x * 7, x * 7 + 7).map((S, D) => {
|
|
2145
|
+
const T = x * 7 + D, E = Vt(S, p), l = E && I(S), w = t ? mn(S, Ie(t)) : !1, O = E ? w ? "selected" : l ? "available" : "unavailable" : "outside", V = y ? mn(y, S) : !1, j = (() => {
|
|
2146
2146
|
try {
|
|
2147
2147
|
return new Intl.DateTimeFormat(i, {
|
|
2148
2148
|
dateStyle: "full"
|
|
@@ -2165,7 +2165,7 @@ function Bi({
|
|
|
2165
2165
|
l && s(at(S));
|
|
2166
2166
|
},
|
|
2167
2167
|
onKeyDown: (Z) => B(Z, S),
|
|
2168
|
-
className:
|
|
2168
|
+
className: Bi({ state: O }),
|
|
2169
2169
|
children: /* @__PURE__ */ n("span", { "aria-hidden": "true", children: S.getDate() })
|
|
2170
2170
|
},
|
|
2171
2171
|
`mg-cell-${T}`
|
|
@@ -2179,7 +2179,7 @@ function Bi({
|
|
|
2179
2179
|
)
|
|
2180
2180
|
] });
|
|
2181
2181
|
}
|
|
2182
|
-
const
|
|
2182
|
+
const Ri = Ft(
|
|
2183
2183
|
[
|
|
2184
2184
|
"ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
|
|
2185
2185
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2205,19 +2205,19 @@ const Li = Et(
|
|
|
2205
2205
|
defaultVariants: { state: "idle" }
|
|
2206
2206
|
}
|
|
2207
2207
|
);
|
|
2208
|
-
function
|
|
2208
|
+
function _i({
|
|
2209
2209
|
services: e,
|
|
2210
2210
|
selectedServiceId: t,
|
|
2211
2211
|
onSelect: s,
|
|
2212
2212
|
showDuration: i
|
|
2213
2213
|
}) {
|
|
2214
|
-
const { t: r } = Y("ui"), a =
|
|
2214
|
+
const { t: r } = Y("ui"), a = Vn(), c = bt(), [p, u] = G(() => {
|
|
2215
2215
|
if (t) {
|
|
2216
2216
|
const g = e.findIndex((o) => o.id === t);
|
|
2217
2217
|
if (g >= 0) return g;
|
|
2218
2218
|
}
|
|
2219
2219
|
return 0;
|
|
2220
|
-
}), m =
|
|
2220
|
+
}), m = F(/* @__PURE__ */ new Map()), v = Ne((g) => {
|
|
2221
2221
|
var o;
|
|
2222
2222
|
(o = m.current.get(g)) == null || o.focus();
|
|
2223
2223
|
}, []), b = Ne(
|
|
@@ -2279,12 +2279,12 @@ function Ri({
|
|
|
2279
2279
|
}) : i ? r("booking.serviceCardLabel", {
|
|
2280
2280
|
label: g.label,
|
|
2281
2281
|
duration: g.durationMin
|
|
2282
|
-
}) : g.label, S =
|
|
2282
|
+
}) : g.label, S = Fi(g);
|
|
2283
2283
|
return /* @__PURE__ */ k(
|
|
2284
2284
|
"button",
|
|
2285
2285
|
{
|
|
2286
|
-
ref: (
|
|
2287
|
-
|
|
2286
|
+
ref: (D) => {
|
|
2287
|
+
D ? m.current.set(o, D) : m.current.delete(o);
|
|
2288
2288
|
},
|
|
2289
2289
|
type: "button",
|
|
2290
2290
|
role: "radio",
|
|
@@ -2293,8 +2293,8 @@ function Ri({
|
|
|
2293
2293
|
tabIndex: I ? 0 : -1,
|
|
2294
2294
|
onClick: () => s(g.id),
|
|
2295
2295
|
onFocus: () => u(o),
|
|
2296
|
-
onKeyDown: (
|
|
2297
|
-
className:
|
|
2296
|
+
onKeyDown: (D) => b(D, o, g.id),
|
|
2297
|
+
className: Ri({
|
|
2298
2298
|
state: f ? "selected" : "idle"
|
|
2299
2299
|
}),
|
|
2300
2300
|
children: [
|
|
@@ -2318,7 +2318,7 @@ function Ri({
|
|
|
2318
2318
|
B ? /* @__PURE__ */ n(
|
|
2319
2319
|
"span",
|
|
2320
2320
|
{
|
|
2321
|
-
className:
|
|
2321
|
+
className: ds({ tone: N }),
|
|
2322
2322
|
children: B
|
|
2323
2323
|
}
|
|
2324
2324
|
) : y || !i ? null : /* @__PURE__ */ n("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r("booking.serviceSummary", {
|
|
@@ -2330,7 +2330,7 @@ function Ri({
|
|
|
2330
2330
|
{
|
|
2331
2331
|
"aria-hidden": "true",
|
|
2332
2332
|
className: "ds:inline-flex ds:shrink-0 ds:items-center ds:ms-auto",
|
|
2333
|
-
children: /* @__PURE__ */ n(
|
|
2333
|
+
children: /* @__PURE__ */ n(Nn, { variant: "accentSoft", size: "lg", children: y })
|
|
2334
2334
|
}
|
|
2335
2335
|
) : null
|
|
2336
2336
|
]
|
|
@@ -2341,7 +2341,7 @@ function Ri({
|
|
|
2341
2341
|
}
|
|
2342
2342
|
);
|
|
2343
2343
|
}
|
|
2344
|
-
const
|
|
2344
|
+
const Pi = Ft(
|
|
2345
2345
|
[
|
|
2346
2346
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
|
|
2347
2347
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2367,16 +2367,27 @@ const _i = Et(
|
|
|
2367
2367
|
defaultVariants: { state: "idle" }
|
|
2368
2368
|
}
|
|
2369
2369
|
);
|
|
2370
|
-
function
|
|
2370
|
+
function Vi(e) {
|
|
2371
2371
|
const [t] = e.split(":").map((i) => parseInt(i, 10)), s = Number.isFinite(t) ? t : 0;
|
|
2372
2372
|
return s < 12 ? "morning" : s < 17 ? "afternoon" : "evening";
|
|
2373
2373
|
}
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2374
|
+
function rn(e, t, s) {
|
|
2375
|
+
if (!e) return t;
|
|
2376
|
+
try {
|
|
2377
|
+
return new Intl.DateTimeFormat(s, {
|
|
2378
|
+
hour: "numeric",
|
|
2379
|
+
minute: "2-digit"
|
|
2380
|
+
}).format(/* @__PURE__ */ new Date(`${e}T${t}:00`));
|
|
2381
|
+
} catch {
|
|
2382
|
+
return t;
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
const $i = {
|
|
2386
|
+
morning: ks,
|
|
2387
|
+
afternoon: Hs,
|
|
2388
|
+
evening: ys
|
|
2378
2389
|
};
|
|
2379
|
-
function
|
|
2390
|
+
function qi({
|
|
2380
2391
|
date: e,
|
|
2381
2392
|
slots: t,
|
|
2382
2393
|
selectedSlotKey: s,
|
|
@@ -2401,7 +2412,7 @@ function $i({
|
|
|
2401
2412
|
evening: []
|
|
2402
2413
|
};
|
|
2403
2414
|
for (const g of t)
|
|
2404
|
-
b[
|
|
2415
|
+
b[Vi(g.time)].push(g);
|
|
2405
2416
|
return b;
|
|
2406
2417
|
}, [t]), m = t.filter((b) => b.available).length, v = ["morning", "afternoon", "evening"];
|
|
2407
2418
|
return r ? /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -2414,11 +2425,11 @@ function $i({
|
|
|
2414
2425
|
},
|
|
2415
2426
|
b
|
|
2416
2427
|
))
|
|
2417
|
-
] }) : m === 0 ? /* @__PURE__ */ n(
|
|
2428
|
+
] }) : m === 0 ? /* @__PURE__ */ n(wn, { variant: "no-results", title: c("booking.noSlotsForDate") }) : /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
2418
2429
|
/* @__PURE__ */ k("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
2419
2430
|
/* @__PURE__ */ k("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
2420
2431
|
/* @__PURE__ */ n(
|
|
2421
|
-
|
|
2432
|
+
Ls,
|
|
2422
2433
|
{
|
|
2423
2434
|
"aria-hidden": "true",
|
|
2424
2435
|
className: "ds:size-4 ds:text-[color:var(--accent)]"
|
|
@@ -2431,7 +2442,7 @@ function $i({
|
|
|
2431
2442
|
v.map((b) => {
|
|
2432
2443
|
const g = u[b];
|
|
2433
2444
|
if (g.length === 0) return null;
|
|
2434
|
-
const o =
|
|
2445
|
+
const o = $i[b];
|
|
2435
2446
|
return /* @__PURE__ */ k(
|
|
2436
2447
|
"div",
|
|
2437
2448
|
{
|
|
@@ -2457,11 +2468,11 @@ function $i({
|
|
|
2457
2468
|
disabled: !f.available,
|
|
2458
2469
|
"aria-pressed": I,
|
|
2459
2470
|
"aria-label": c("booking.slotAvailableLabel", {
|
|
2460
|
-
time: f.time
|
|
2471
|
+
time: rn(e, f.time, a)
|
|
2461
2472
|
}),
|
|
2462
2473
|
onClick: () => f.available && i(f),
|
|
2463
|
-
className:
|
|
2464
|
-
children: f.time
|
|
2474
|
+
className: Pi({ state: y }),
|
|
2475
|
+
children: rn(e, f.time, a)
|
|
2465
2476
|
},
|
|
2466
2477
|
f.key
|
|
2467
2478
|
);
|
|
@@ -2476,7 +2487,7 @@ function $i({
|
|
|
2476
2487
|
] });
|
|
2477
2488
|
}
|
|
2478
2489
|
const zt = 4;
|
|
2479
|
-
function
|
|
2490
|
+
function Ki({
|
|
2480
2491
|
availableDates: e,
|
|
2481
2492
|
availableSlots: t,
|
|
2482
2493
|
value: s,
|
|
@@ -2502,7 +2513,7 @@ function qi({
|
|
|
2502
2513
|
() => Xt(b, zt - 1),
|
|
2503
2514
|
[b]
|
|
2504
2515
|
), f = R(() => Array.from({ length: zt }, (l, w) => {
|
|
2505
|
-
const
|
|
2516
|
+
const O = Xt(b, w), V = at(O), Z = (t[V] ?? []).map((h) => ({
|
|
2506
2517
|
id: h.key,
|
|
2507
2518
|
// SlotGrid formats `start` as a time via Intl.DateTimeFormat —
|
|
2508
2519
|
// compose a full ISO from the column's date + the slot's HH:mm
|
|
@@ -2513,7 +2524,7 @@ function qi({
|
|
|
2513
2524
|
return { date: V, slots: Z };
|
|
2514
2525
|
}), [b, t]), I = vt(b, v), y = !0, B = Ne(() => {
|
|
2515
2526
|
g((l) => {
|
|
2516
|
-
const w =
|
|
2527
|
+
const w = hs(l, zt);
|
|
2517
2528
|
return vt(v, w) ? v : w;
|
|
2518
2529
|
});
|
|
2519
2530
|
}, [v]), N = Ne(() => {
|
|
@@ -2522,25 +2533,25 @@ function qi({
|
|
|
2522
2533
|
K(() => {
|
|
2523
2534
|
if (e.length === 0) return;
|
|
2524
2535
|
const l = ht(Ie(e[0]));
|
|
2525
|
-
!vt(l, v) || e.some((
|
|
2526
|
-
const V = ht(Ie(
|
|
2527
|
-
return !vt(V, o) && !
|
|
2536
|
+
!vt(l, v) || e.some((O) => {
|
|
2537
|
+
const V = ht(Ie(O));
|
|
2538
|
+
return !vt(V, o) && !fs(V, b);
|
|
2528
2539
|
}) || g(l);
|
|
2529
2540
|
}, [e]), K(() => {
|
|
2530
2541
|
a == null || a(at(b), at(o));
|
|
2531
2542
|
}, [b, o, a]);
|
|
2532
2543
|
const x = Ne(
|
|
2533
2544
|
(l, w) => {
|
|
2534
|
-
const
|
|
2545
|
+
const O = typeof w.date == "string" ? w.date : at(w.date);
|
|
2535
2546
|
i({
|
|
2536
|
-
...
|
|
2537
|
-
}), r == null || r(
|
|
2547
|
+
...Bn(Jt(s, O), l.id)
|
|
2548
|
+
}), r == null || r(O);
|
|
2538
2549
|
},
|
|
2539
2550
|
[i, r, s]
|
|
2540
|
-
), S = c || p ? "loading" : "default",
|
|
2551
|
+
), S = c || p ? "loading" : "default", D = f.some((l) => l.slots.length > 0), T = e[0];
|
|
2541
2552
|
return /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2542
|
-
S !== "loading" && !
|
|
2543
|
-
|
|
2553
|
+
S !== "loading" && !D && !!T ? /* @__PURE__ */ n(
|
|
2554
|
+
ln,
|
|
2544
2555
|
{
|
|
2545
2556
|
nextAvailableDate: T,
|
|
2546
2557
|
onJump: () => g(ht(Ie(T))),
|
|
@@ -2548,7 +2559,7 @@ function qi({
|
|
|
2548
2559
|
}
|
|
2549
2560
|
) : null,
|
|
2550
2561
|
/* @__PURE__ */ n(
|
|
2551
|
-
|
|
2562
|
+
ps,
|
|
2552
2563
|
{
|
|
2553
2564
|
id: m ? `${m}-slots` : void 0,
|
|
2554
2565
|
days: f,
|
|
@@ -2565,7 +2576,7 @@ function qi({
|
|
|
2565
2576
|
)
|
|
2566
2577
|
] });
|
|
2567
2578
|
}
|
|
2568
|
-
function
|
|
2579
|
+
function $n(e) {
|
|
2569
2580
|
const {
|
|
2570
2581
|
inputs: t,
|
|
2571
2582
|
value: s,
|
|
@@ -2579,7 +2590,7 @@ function Vn(e) {
|
|
|
2579
2590
|
agentIdBase: v
|
|
2580
2591
|
} = e;
|
|
2581
2592
|
return m === "four-day-grid" ? /* @__PURE__ */ n(
|
|
2582
|
-
|
|
2593
|
+
Ki,
|
|
2583
2594
|
{
|
|
2584
2595
|
availableDates: t.availableDates,
|
|
2585
2596
|
availableSlots: t.availableSlots,
|
|
@@ -2593,7 +2604,7 @@ function Vn(e) {
|
|
|
2593
2604
|
agentIdBase: v
|
|
2594
2605
|
}
|
|
2595
2606
|
) : /* @__PURE__ */ n(
|
|
2596
|
-
|
|
2607
|
+
Li,
|
|
2597
2608
|
{
|
|
2598
2609
|
availableDates: t.availableDates,
|
|
2599
2610
|
selectedDate: s.date,
|
|
@@ -2605,21 +2616,21 @@ function Vn(e) {
|
|
|
2605
2616
|
}
|
|
2606
2617
|
);
|
|
2607
2618
|
}
|
|
2608
|
-
function
|
|
2619
|
+
function qn(e) {
|
|
2609
2620
|
const { inputs: t, value: s, onChange: i, loadingSlots: r, locale: a, datePickerStyle: c } = e;
|
|
2610
2621
|
return c === "four-day-grid" || !s.date ? null : /* @__PURE__ */ n(
|
|
2611
|
-
|
|
2622
|
+
qi,
|
|
2612
2623
|
{
|
|
2613
2624
|
date: s.date,
|
|
2614
2625
|
slots: t.availableSlots[s.date] ?? [],
|
|
2615
2626
|
selectedSlotKey: s.slotKey,
|
|
2616
|
-
onSelect: (p) => i(
|
|
2627
|
+
onSelect: (p) => i(Bn(s, p.key)),
|
|
2617
2628
|
loading: r,
|
|
2618
2629
|
locale: a
|
|
2619
2630
|
}
|
|
2620
2631
|
);
|
|
2621
2632
|
}
|
|
2622
|
-
function
|
|
2633
|
+
function Kn({ value: e, onChange: t }) {
|
|
2623
2634
|
const { t: s } = Y("ui"), i = [
|
|
2624
2635
|
{ value: "private", label: s("booking.insurance.private") },
|
|
2625
2636
|
{ value: "public", label: s("booking.insurance.public") }
|
|
@@ -2640,7 +2651,7 @@ function qn({ value: e, onChange: t }) {
|
|
|
2640
2651
|
)
|
|
2641
2652
|
] });
|
|
2642
2653
|
}
|
|
2643
|
-
function
|
|
2654
|
+
function zn({
|
|
2644
2655
|
specialties: e,
|
|
2645
2656
|
value: t,
|
|
2646
2657
|
valueIds: s,
|
|
@@ -2656,7 +2667,7 @@ function Kn({
|
|
|
2656
2667
|
return a === "multi-select" && r ? /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2657
2668
|
u,
|
|
2658
2669
|
/* @__PURE__ */ n(
|
|
2659
|
-
|
|
2670
|
+
an,
|
|
2660
2671
|
{
|
|
2661
2672
|
options: p,
|
|
2662
2673
|
value: s ?? [],
|
|
@@ -2669,7 +2680,7 @@ function Kn({
|
|
|
2669
2680
|
] }) : a === "combobox" ? /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2670
2681
|
u,
|
|
2671
2682
|
/* @__PURE__ */ n(
|
|
2672
|
-
|
|
2683
|
+
on,
|
|
2673
2684
|
{
|
|
2674
2685
|
options: p,
|
|
2675
2686
|
value: t ?? "",
|
|
@@ -2693,7 +2704,7 @@ function Kn({
|
|
|
2693
2704
|
)
|
|
2694
2705
|
] });
|
|
2695
2706
|
}
|
|
2696
|
-
function
|
|
2707
|
+
function jn({
|
|
2697
2708
|
services: e,
|
|
2698
2709
|
value: t,
|
|
2699
2710
|
valueIds: s,
|
|
@@ -2703,7 +2714,7 @@ function zn({
|
|
|
2703
2714
|
compact: c,
|
|
2704
2715
|
showDuration: p
|
|
2705
2716
|
}) {
|
|
2706
|
-
const { t: u } = Y("ui"), m =
|
|
2717
|
+
const { t: u } = Y("ui"), m = Vn(), v = a ?? (c ? "select" : "cards"), b = e.map((o) => {
|
|
2707
2718
|
const { price: f, payment: I, paymentTone: y } = m(o);
|
|
2708
2719
|
return {
|
|
2709
2720
|
value: o.id,
|
|
@@ -2714,7 +2725,7 @@ function zn({
|
|
|
2714
2725
|
minutes: o.durationMin
|
|
2715
2726
|
})}`,
|
|
2716
2727
|
...f ? {
|
|
2717
|
-
endContent: /* @__PURE__ */ n(
|
|
2728
|
+
endContent: /* @__PURE__ */ n(Nn, { variant: "accentSoft", size: "lg", children: f })
|
|
2718
2729
|
} : {},
|
|
2719
2730
|
...I ? { description: I, descriptionTone: y } : {}
|
|
2720
2731
|
};
|
|
@@ -2722,7 +2733,7 @@ function zn({
|
|
|
2722
2733
|
return v === "multi-select" && r ? /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2723
2734
|
g,
|
|
2724
2735
|
/* @__PURE__ */ n(
|
|
2725
|
-
|
|
2736
|
+
an,
|
|
2726
2737
|
{
|
|
2727
2738
|
options: b,
|
|
2728
2739
|
value: s ?? [],
|
|
@@ -2736,7 +2747,7 @@ function zn({
|
|
|
2736
2747
|
] }) : v === "combobox" ? /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2737
2748
|
g,
|
|
2738
2749
|
/* @__PURE__ */ n(
|
|
2739
|
-
|
|
2750
|
+
on,
|
|
2740
2751
|
{
|
|
2741
2752
|
options: b,
|
|
2742
2753
|
value: t ?? "",
|
|
@@ -2765,7 +2776,7 @@ function zn({
|
|
|
2765
2776
|
] }) : /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2766
2777
|
g,
|
|
2767
2778
|
/* @__PURE__ */ n(
|
|
2768
|
-
|
|
2779
|
+
_i,
|
|
2769
2780
|
{
|
|
2770
2781
|
services: e,
|
|
2771
2782
|
selectedServiceId: t,
|
|
@@ -2775,7 +2786,7 @@ function zn({
|
|
|
2775
2786
|
)
|
|
2776
2787
|
] });
|
|
2777
2788
|
}
|
|
2778
|
-
function
|
|
2789
|
+
function Un({
|
|
2779
2790
|
operators: e,
|
|
2780
2791
|
value: t,
|
|
2781
2792
|
valueIds: s,
|
|
@@ -2793,7 +2804,7 @@ function jn({
|
|
|
2793
2804
|
return /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2794
2805
|
p,
|
|
2795
2806
|
/* @__PURE__ */ n(
|
|
2796
|
-
|
|
2807
|
+
an,
|
|
2797
2808
|
{
|
|
2798
2809
|
options: m,
|
|
2799
2810
|
value: s ?? [],
|
|
@@ -2814,7 +2825,7 @@ function jn({
|
|
|
2814
2825
|
return a === "combobox" ? /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
2815
2826
|
p,
|
|
2816
2827
|
/* @__PURE__ */ n(
|
|
2817
|
-
|
|
2828
|
+
on,
|
|
2818
2829
|
{
|
|
2819
2830
|
options: u,
|
|
2820
2831
|
value: t ?? _e,
|
|
@@ -2838,7 +2849,7 @@ function jn({
|
|
|
2838
2849
|
)
|
|
2839
2850
|
] });
|
|
2840
2851
|
}
|
|
2841
|
-
function
|
|
2852
|
+
function Gn({
|
|
2842
2853
|
customSlot: e
|
|
2843
2854
|
}) {
|
|
2844
2855
|
const { t } = Y("ui");
|
|
@@ -2847,7 +2858,7 @@ function Un({
|
|
|
2847
2858
|
/* @__PURE__ */ n(ne.Description, { children: t("booking.onboardingIncomplete.description") })
|
|
2848
2859
|
] });
|
|
2849
2860
|
}
|
|
2850
|
-
function
|
|
2861
|
+
function ln({
|
|
2851
2862
|
nextAvailableDate: e,
|
|
2852
2863
|
onJump: t,
|
|
2853
2864
|
locale: s
|
|
@@ -2866,7 +2877,7 @@ function dn({
|
|
|
2866
2877
|
/* @__PURE__ */ n(ne.Action, { children: /* @__PURE__ */ n(tt, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
|
|
2867
2878
|
] });
|
|
2868
2879
|
}
|
|
2869
|
-
function
|
|
2880
|
+
function zi({
|
|
2870
2881
|
codeVerified: e = !1,
|
|
2871
2882
|
payment: t,
|
|
2872
2883
|
confirmationChannels: s,
|
|
@@ -2881,12 +2892,12 @@ function Ki({
|
|
|
2881
2892
|
onModify: b,
|
|
2882
2893
|
focusWasLost: g
|
|
2883
2894
|
}) {
|
|
2884
|
-
const { t: o } = Y("ui"), f =
|
|
2895
|
+
const { t: o } = Y("ui"), f = F(null);
|
|
2885
2896
|
K(() => {
|
|
2886
|
-
const l = f.current, w = document.activeElement,
|
|
2887
|
-
!t && !e || !l || (w && (
|
|
2897
|
+
const l = f.current, w = document.activeElement, O = l == null ? void 0 : l.closest('[data-component="booking"]');
|
|
2898
|
+
!t && !e || !l || (w && (O != null && O.contains(w)) || g()) && l.focus();
|
|
2888
2899
|
}, []);
|
|
2889
|
-
const I =
|
|
2900
|
+
const I = cn(s), B = Rn(
|
|
2890
2901
|
I,
|
|
2891
2902
|
i.details.confirmationChannels
|
|
2892
2903
|
).map(
|
|
@@ -2909,11 +2920,11 @@ function Ki({
|
|
|
2909
2920
|
} catch {
|
|
2910
2921
|
return i.date;
|
|
2911
2922
|
}
|
|
2912
|
-
}, [i.date, p]),
|
|
2913
|
-
const w = (i.operatorIds && i.operatorIds.length > 0 ? i.operatorIds : i.operatorId ? [i.operatorId] : []).filter((
|
|
2923
|
+
}, [i.date, p]), D = R(() => {
|
|
2924
|
+
const w = (i.operatorIds && i.operatorIds.length > 0 ? i.operatorIds : i.operatorId ? [i.operatorId] : []).filter((O) => O !== _e).map((O) => {
|
|
2914
2925
|
var V;
|
|
2915
|
-
return (V = r.find((j) => j.id ===
|
|
2916
|
-
}).filter((
|
|
2926
|
+
return (V = r.find((j) => j.id === O)) == null ? void 0 : V.name;
|
|
2927
|
+
}).filter((O) => O !== void 0);
|
|
2917
2928
|
if (w.length === 0) return [];
|
|
2918
2929
|
try {
|
|
2919
2930
|
return new Intl.ListFormat(p === "en" ? "en-GB" : p, {
|
|
@@ -2921,12 +2932,12 @@ function Ki({
|
|
|
2921
2932
|
type: "conjunction"
|
|
2922
2933
|
}).formatToParts(w);
|
|
2923
2934
|
} catch {
|
|
2924
|
-
return w.flatMap((
|
|
2935
|
+
return w.flatMap((O, V) => [
|
|
2925
2936
|
...V > 0 ? [{ type: "literal", value: ", " }] : [],
|
|
2926
|
-
{ type: "element", value:
|
|
2937
|
+
{ type: "element", value: O }
|
|
2927
2938
|
]);
|
|
2928
2939
|
}
|
|
2929
|
-
}, [i.operatorIds, i.operatorId, r, p]), T = i.specialtyId ? a.find((l) => l.id === i.specialtyId) : void 0,
|
|
2940
|
+
}, [i.operatorIds, i.operatorId, r, p]), T = i.specialtyId ? a.find((l) => l.id === i.specialtyId) : void 0, E = i.serviceId ? c.find((l) => l.id === i.serviceId) : void 0;
|
|
2930
2941
|
return /* @__PURE__ */ k(
|
|
2931
2942
|
"div",
|
|
2932
2943
|
{
|
|
@@ -2964,14 +2975,14 @@ function Ki({
|
|
|
2964
2975
|
}
|
|
2965
2976
|
)
|
|
2966
2977
|
] }) : null,
|
|
2967
|
-
|
|
2978
|
+
E ? /* @__PURE__ */ k(me, { children: [
|
|
2968
2979
|
/* @__PURE__ */ n("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryService") }),
|
|
2969
2980
|
/* @__PURE__ */ n(
|
|
2970
2981
|
"dd",
|
|
2971
2982
|
{
|
|
2972
2983
|
dir: "auto",
|
|
2973
2984
|
className: "type-body ds:m-0 ds:text-[var(--foreground)]",
|
|
2974
|
-
children:
|
|
2985
|
+
children: E.label
|
|
2975
2986
|
}
|
|
2976
2987
|
)
|
|
2977
2988
|
] }) : null,
|
|
@@ -2980,10 +2991,10 @@ function Ki({
|
|
|
2980
2991
|
/* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: S })
|
|
2981
2992
|
] }) : null,
|
|
2982
2993
|
/* @__PURE__ */ n("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryTime") }),
|
|
2983
|
-
/* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: i.slot.time }),
|
|
2984
|
-
|
|
2994
|
+
/* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: rn(i.date, i.slot.time, p) }),
|
|
2995
|
+
D.length > 0 ? /* @__PURE__ */ k(me, { children: [
|
|
2985
2996
|
/* @__PURE__ */ n("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryProvider") }),
|
|
2986
|
-
/* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children:
|
|
2997
|
+
/* @__PURE__ */ n("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: D.map(
|
|
2987
2998
|
(l, w) => l.type === "element" ? /* @__PURE__ */ n("bdi", { children: l.value }, w) : l.value
|
|
2988
2999
|
) })
|
|
2989
3000
|
] }) : null
|
|
@@ -2996,10 +3007,10 @@ function Ki({
|
|
|
2996
3007
|
}
|
|
2997
3008
|
);
|
|
2998
3009
|
}
|
|
2999
|
-
function
|
|
3010
|
+
function Hn({ customSlot: e }) {
|
|
3000
3011
|
const { t } = Y("ui");
|
|
3001
3012
|
return e ? /* @__PURE__ */ n(me, { children: e }) : /* @__PURE__ */ n(
|
|
3002
|
-
|
|
3013
|
+
wn,
|
|
3003
3014
|
{
|
|
3004
3015
|
variant: "no-results",
|
|
3005
3016
|
title: t("booking.emptyServices.title"),
|
|
@@ -3007,7 +3018,7 @@ function Gn({ customSlot: e }) {
|
|
|
3007
3018
|
}
|
|
3008
3019
|
);
|
|
3009
3020
|
}
|
|
3010
|
-
const
|
|
3021
|
+
const Jn = "data-booking-step-active", ji = `[${Jn}]`;
|
|
3011
3022
|
function X({
|
|
3012
3023
|
step: e,
|
|
3013
3024
|
active: t,
|
|
@@ -3020,17 +3031,17 @@ function X({
|
|
|
3020
3031
|
{
|
|
3021
3032
|
id: i,
|
|
3022
3033
|
"data-booking-step": String(e),
|
|
3023
|
-
...t ? { [
|
|
3034
|
+
...t ? { [Jn]: "" } : null,
|
|
3024
3035
|
tabIndex: -1,
|
|
3025
3036
|
className: s ? `${s} ${Mt}` : Mt,
|
|
3026
3037
|
children: r
|
|
3027
3038
|
}
|
|
3028
3039
|
);
|
|
3029
3040
|
}
|
|
3030
|
-
function
|
|
3041
|
+
function un(e, t) {
|
|
3031
3042
|
return t === "four-day-grid" ? e.filter((s) => s !== 6) : e;
|
|
3032
3043
|
}
|
|
3033
|
-
function
|
|
3044
|
+
function Ui(e) {
|
|
3034
3045
|
const {
|
|
3035
3046
|
cascade: t,
|
|
3036
3047
|
inputs: s,
|
|
@@ -3052,51 +3063,51 @@ function ji(e) {
|
|
|
3052
3063
|
locale: N,
|
|
3053
3064
|
detailsProps: x,
|
|
3054
3065
|
agentIdBase: S,
|
|
3055
|
-
activeStep:
|
|
3056
|
-
} = e, { t: T } = Y("ui"),
|
|
3066
|
+
activeStep: D
|
|
3067
|
+
} = e, { t: T } = Y("ui"), E = yt(D, g), l = (w, O) => ({
|
|
3057
3068
|
step: w,
|
|
3058
|
-
active: w ===
|
|
3059
|
-
className:
|
|
3069
|
+
active: w === E,
|
|
3070
|
+
className: O
|
|
3060
3071
|
});
|
|
3061
3072
|
return /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3062
3073
|
t.gates.insurance ? /* @__PURE__ */ n(X, { ...l(1), children: /* @__PURE__ */ n(
|
|
3063
|
-
|
|
3074
|
+
Kn,
|
|
3064
3075
|
{
|
|
3065
3076
|
value: i.insuranceType,
|
|
3066
|
-
onChange: (w) => r(
|
|
3077
|
+
onChange: (w) => r(An(i, w))
|
|
3067
3078
|
}
|
|
3068
3079
|
) }) : null,
|
|
3069
3080
|
t.gates.specialty ? /* @__PURE__ */ n(X, { ...l(2), children: /* @__PURE__ */ n(
|
|
3070
|
-
|
|
3081
|
+
zn,
|
|
3071
3082
|
{
|
|
3072
3083
|
specialties: t.filtered.specialties,
|
|
3073
3084
|
value: i.specialtyId,
|
|
3074
3085
|
valueIds: i.specialtyIds,
|
|
3075
|
-
onChange: (w) => r(
|
|
3076
|
-
onChangeIds: (w) => r(
|
|
3086
|
+
onChange: (w) => r(Tn(i, w)),
|
|
3087
|
+
onChangeIds: (w) => r(Dn(i, w)),
|
|
3077
3088
|
pickerStyle: o
|
|
3078
3089
|
}
|
|
3079
3090
|
) }) : null,
|
|
3080
|
-
t.gates.service ? /* @__PURE__ */ n(X, { ...l(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ n(
|
|
3081
|
-
|
|
3091
|
+
t.gates.service ? /* @__PURE__ */ n(X, { ...l(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ n(Hn, { customSlot: c }) : /* @__PURE__ */ n(
|
|
3092
|
+
jn,
|
|
3082
3093
|
{
|
|
3083
3094
|
services: t.filtered.services,
|
|
3084
3095
|
value: i.serviceId,
|
|
3085
3096
|
valueIds: i.serviceIds,
|
|
3086
3097
|
onChange: (w) => r(On(i, w)),
|
|
3087
|
-
onChangeIds: (w) => r(
|
|
3098
|
+
onChangeIds: (w) => r(Mn(i, w)),
|
|
3088
3099
|
pickerStyle: f,
|
|
3089
3100
|
showDuration: I
|
|
3090
3101
|
}
|
|
3091
3102
|
) }) : null,
|
|
3092
|
-
t.gates.onboardingIncomplete ? /* @__PURE__ */ n(
|
|
3103
|
+
t.gates.onboardingIncomplete ? /* @__PURE__ */ n(Gn, { customSlot: p }) : null,
|
|
3093
3104
|
t.gates.operator ? /* @__PURE__ */ n(X, { ...l(4), children: /* @__PURE__ */ n(
|
|
3094
|
-
|
|
3105
|
+
Un,
|
|
3095
3106
|
{
|
|
3096
3107
|
operators: t.filtered.operators,
|
|
3097
3108
|
value: i.operatorId,
|
|
3098
3109
|
valueIds: i.operatorIds,
|
|
3099
|
-
onChange: (w) => r(
|
|
3110
|
+
onChange: (w) => r(Fn(i, w)),
|
|
3100
3111
|
onChangeIds: (w) => r(En(i, w)),
|
|
3101
3112
|
pickerStyle: y
|
|
3102
3113
|
}
|
|
@@ -3108,13 +3119,13 @@ function ji(e) {
|
|
|
3108
3119
|
children: [
|
|
3109
3120
|
/* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: T("booking.date.heading") }),
|
|
3110
3121
|
s.availableDates.length === 0 && s.nextAvailableDate ? /* @__PURE__ */ n(
|
|
3111
|
-
|
|
3122
|
+
ln,
|
|
3112
3123
|
{
|
|
3113
3124
|
nextAvailableDate: s.nextAvailableDate,
|
|
3114
3125
|
onJump: () => r(Jt(i, s.nextAvailableDate)),
|
|
3115
3126
|
locale: N
|
|
3116
3127
|
}
|
|
3117
|
-
) :
|
|
3128
|
+
) : $n({
|
|
3118
3129
|
inputs: s,
|
|
3119
3130
|
value: i,
|
|
3120
3131
|
onChange: r,
|
|
@@ -3135,7 +3146,7 @@ function ji(e) {
|
|
|
3135
3146
|
...l(6, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
|
|
3136
3147
|
children: [
|
|
3137
3148
|
/* @__PURE__ */ n("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: T("booking.slot.heading") }),
|
|
3138
|
-
|
|
3149
|
+
qn({
|
|
3139
3150
|
inputs: s,
|
|
3140
3151
|
value: i,
|
|
3141
3152
|
onChange: r,
|
|
@@ -3147,7 +3158,7 @@ function ji(e) {
|
|
|
3147
3158
|
}
|
|
3148
3159
|
) : null,
|
|
3149
3160
|
t.gates.details && t.selectedSlot ? /* @__PURE__ */ n(X, { ...l(7), children: /* @__PURE__ */ n(
|
|
3150
|
-
|
|
3161
|
+
dn,
|
|
3151
3162
|
{
|
|
3152
3163
|
...x,
|
|
3153
3164
|
value: i.details ?? {},
|
|
@@ -3159,7 +3170,7 @@ function ji(e) {
|
|
|
3159
3170
|
) }) : null
|
|
3160
3171
|
] });
|
|
3161
3172
|
}
|
|
3162
|
-
function
|
|
3173
|
+
function Oe(e, t, s = {}) {
|
|
3163
3174
|
const {
|
|
3164
3175
|
cascade: i,
|
|
3165
3176
|
inputs: r,
|
|
@@ -3179,40 +3190,40 @@ function De(e, t, s = {}) {
|
|
|
3179
3190
|
operatorPickerStyle: N,
|
|
3180
3191
|
submitting: x,
|
|
3181
3192
|
locale: S,
|
|
3182
|
-
detailsProps:
|
|
3193
|
+
detailsProps: D,
|
|
3183
3194
|
policy: T,
|
|
3184
|
-
agentIdBase:
|
|
3195
|
+
agentIdBase: E
|
|
3185
3196
|
} = t;
|
|
3186
3197
|
switch (e) {
|
|
3187
3198
|
case 1:
|
|
3188
3199
|
return /* @__PURE__ */ n(
|
|
3189
|
-
|
|
3200
|
+
Kn,
|
|
3190
3201
|
{
|
|
3191
3202
|
value: a.insuranceType,
|
|
3192
|
-
onChange: (l) => c(
|
|
3203
|
+
onChange: (l) => c(An(a, l))
|
|
3193
3204
|
}
|
|
3194
3205
|
);
|
|
3195
3206
|
case 2:
|
|
3196
3207
|
return /* @__PURE__ */ n(
|
|
3197
|
-
|
|
3208
|
+
zn,
|
|
3198
3209
|
{
|
|
3199
3210
|
specialties: i.filtered.specialties,
|
|
3200
3211
|
value: a.specialtyId,
|
|
3201
3212
|
valueIds: a.specialtyIds,
|
|
3202
|
-
onChange: (l) => c(
|
|
3203
|
-
onChangeIds: (l) => c(
|
|
3213
|
+
onChange: (l) => c(Tn(a, l)),
|
|
3214
|
+
onChangeIds: (l) => c(Dn(a, l)),
|
|
3204
3215
|
pickerStyle: I
|
|
3205
3216
|
}
|
|
3206
3217
|
);
|
|
3207
3218
|
case 3:
|
|
3208
|
-
return i.filtered.services.length === 0 ? /* @__PURE__ */ n(
|
|
3209
|
-
|
|
3219
|
+
return i.filtered.services.length === 0 ? /* @__PURE__ */ n(Hn, { customSlot: u }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ n(Gn, { customSlot: m }) : /* @__PURE__ */ n(
|
|
3220
|
+
jn,
|
|
3210
3221
|
{
|
|
3211
3222
|
services: i.filtered.services,
|
|
3212
3223
|
value: a.serviceId,
|
|
3213
3224
|
valueIds: a.serviceIds,
|
|
3214
3225
|
onChange: (l) => c(On(a, l)),
|
|
3215
|
-
onChangeIds: (l) => c(
|
|
3226
|
+
onChangeIds: (l) => c(Mn(a, l)),
|
|
3216
3227
|
pickerStyle: y,
|
|
3217
3228
|
compact: s.compactService,
|
|
3218
3229
|
showDuration: B
|
|
@@ -3220,25 +3231,25 @@ function De(e, t, s = {}) {
|
|
|
3220
3231
|
);
|
|
3221
3232
|
case 4:
|
|
3222
3233
|
return /* @__PURE__ */ n(
|
|
3223
|
-
|
|
3234
|
+
Un,
|
|
3224
3235
|
{
|
|
3225
3236
|
operators: i.filtered.operators,
|
|
3226
3237
|
value: a.operatorId,
|
|
3227
3238
|
valueIds: a.operatorIds,
|
|
3228
|
-
onChange: (l) => c(
|
|
3239
|
+
onChange: (l) => c(Fn(a, l)),
|
|
3229
3240
|
onChangeIds: (l) => c(En(a, l)),
|
|
3230
3241
|
pickerStyle: N
|
|
3231
3242
|
}
|
|
3232
3243
|
);
|
|
3233
3244
|
case 5:
|
|
3234
3245
|
return r.availableDates.length === 0 && r.nextAvailableDate ? /* @__PURE__ */ n(
|
|
3235
|
-
|
|
3246
|
+
ln,
|
|
3236
3247
|
{
|
|
3237
3248
|
nextAvailableDate: r.nextAvailableDate,
|
|
3238
3249
|
onJump: () => c(Jt(a, r.nextAvailableDate)),
|
|
3239
3250
|
locale: S
|
|
3240
3251
|
}
|
|
3241
|
-
) :
|
|
3252
|
+
) : $n({
|
|
3242
3253
|
inputs: r,
|
|
3243
3254
|
value: a,
|
|
3244
3255
|
onChange: c,
|
|
@@ -3248,10 +3259,10 @@ function De(e, t, s = {}) {
|
|
|
3248
3259
|
loadingSlots: b,
|
|
3249
3260
|
locale: S,
|
|
3250
3261
|
datePickerStyle: f,
|
|
3251
|
-
agentIdBase:
|
|
3262
|
+
agentIdBase: E
|
|
3252
3263
|
});
|
|
3253
3264
|
case 6:
|
|
3254
|
-
return
|
|
3265
|
+
return qn({
|
|
3255
3266
|
inputs: r,
|
|
3256
3267
|
value: a,
|
|
3257
3268
|
onChange: c,
|
|
@@ -3261,9 +3272,9 @@ function De(e, t, s = {}) {
|
|
|
3261
3272
|
});
|
|
3262
3273
|
case 7:
|
|
3263
3274
|
return i.selectedSlot ? /* @__PURE__ */ n(
|
|
3264
|
-
|
|
3275
|
+
dn,
|
|
3265
3276
|
{
|
|
3266
|
-
...
|
|
3277
|
+
...D,
|
|
3267
3278
|
value: a.details ?? {},
|
|
3268
3279
|
onChange: (l) => c({ ...a, details: l }),
|
|
3269
3280
|
onSubmit: p,
|
|
@@ -3294,16 +3305,16 @@ function Wt() {
|
|
|
3294
3305
|
function yt(e, t) {
|
|
3295
3306
|
return t === "four-day-grid" && e === 6 ? 5 : e;
|
|
3296
3307
|
}
|
|
3297
|
-
function
|
|
3308
|
+
function Gi(e) {
|
|
3298
3309
|
const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: a } = e, c = Wt(), { t: p } = Y("ui"), u = p("booking.operator.all"), m = R(
|
|
3299
|
-
() =>
|
|
3310
|
+
() => un(t.visibleSteps, a),
|
|
3300
3311
|
[t.visibleSteps, a]
|
|
3301
3312
|
), v = yt(i, a), b = Math.max(0, m.indexOf(v)), g = R(
|
|
3302
3313
|
() => m.map((o) => ({
|
|
3303
3314
|
label: c[o],
|
|
3304
|
-
summary:
|
|
3305
|
-
status:
|
|
3306
|
-
content: /* @__PURE__ */ n(X, { step: o, active: o === v, children:
|
|
3315
|
+
summary: Wn(o, s, t, u),
|
|
3316
|
+
status: Hi(o, s, t),
|
|
3317
|
+
content: /* @__PURE__ */ n(X, { step: o, active: o === v, children: Oe(o, e, { compactService: !0 }) })
|
|
3307
3318
|
})),
|
|
3308
3319
|
[
|
|
3309
3320
|
m,
|
|
@@ -3316,7 +3327,7 @@ function Ui(e) {
|
|
|
3316
3327
|
]
|
|
3317
3328
|
);
|
|
3318
3329
|
return /* @__PURE__ */ n(
|
|
3319
|
-
|
|
3330
|
+
ls,
|
|
3320
3331
|
{
|
|
3321
3332
|
activeStep: b,
|
|
3322
3333
|
steps: g,
|
|
@@ -3327,11 +3338,11 @@ function Ui(e) {
|
|
|
3327
3338
|
}
|
|
3328
3339
|
);
|
|
3329
3340
|
}
|
|
3330
|
-
function
|
|
3341
|
+
function Hi(e, t, s) {
|
|
3331
3342
|
return Ue(e, t) && e < s.currentStep ? "completed" : e <= s.currentStep ? "unlocked" : void 0;
|
|
3332
3343
|
}
|
|
3333
|
-
function
|
|
3334
|
-
return e !== 4 ? Ue(e, t) : t.operatorIds && t.operatorIds.length > 0 ? !0 :
|
|
3344
|
+
function yn(e, t) {
|
|
3345
|
+
return e !== 4 ? Ue(e, t) : t.operatorIds && t.operatorIds.length > 0 ? !0 : Ln(t) !== void 0;
|
|
3335
3346
|
}
|
|
3336
3347
|
function tn(e, t) {
|
|
3337
3348
|
const s = e.map((i) => {
|
|
@@ -3340,7 +3351,7 @@ function tn(e, t) {
|
|
|
3340
3351
|
}).filter((i) => i !== void 0);
|
|
3341
3352
|
return s.length > 0 ? s.join(", ") : void 0;
|
|
3342
3353
|
}
|
|
3343
|
-
function
|
|
3354
|
+
function Wn(e, t, s, i) {
|
|
3344
3355
|
var r;
|
|
3345
3356
|
if (Ue(e, t))
|
|
3346
3357
|
switch (e) {
|
|
@@ -3371,7 +3382,7 @@ function Jn(e, t, s, i) {
|
|
|
3371
3382
|
return;
|
|
3372
3383
|
}
|
|
3373
3384
|
}
|
|
3374
|
-
function
|
|
3385
|
+
function Ji(e) {
|
|
3375
3386
|
const { cascade: t, value: s, activeStep: i, setActiveStep: r } = e, { t: a } = Y("ui"), c = Wt(), p = a("booking.operator.all"), u = `${bt()}-filter`, m = yt(i, e.datePickerStyle), v = t.visibleSteps.filter(
|
|
3376
3387
|
(o) => o === 1 || o === 2 || o === 3 || o === 4
|
|
3377
3388
|
), b = v.some(
|
|
@@ -3387,7 +3398,7 @@ function Hi(e) {
|
|
|
3387
3398
|
"aria-label": a("booking.filtersLabel"),
|
|
3388
3399
|
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
3389
3400
|
children: v.map((o) => {
|
|
3390
|
-
const f =
|
|
3401
|
+
const f = Wn(
|
|
3391
3402
|
o,
|
|
3392
3403
|
s,
|
|
3393
3404
|
t,
|
|
@@ -3399,7 +3410,7 @@ function Hi(e) {
|
|
|
3399
3410
|
intent: I ? "primary" : "outline",
|
|
3400
3411
|
size: "sm",
|
|
3401
3412
|
endIcon: /* @__PURE__ */ n(
|
|
3402
|
-
|
|
3413
|
+
ms,
|
|
3403
3414
|
{
|
|
3404
3415
|
"aria-hidden": "true",
|
|
3405
3416
|
className: I ? "ds:rotate-180" : void 0
|
|
@@ -3428,7 +3439,7 @@ function Hi(e) {
|
|
|
3428
3439
|
step: g,
|
|
3429
3440
|
active: g === m,
|
|
3430
3441
|
id: u,
|
|
3431
|
-
children:
|
|
3442
|
+
children: Oe(g, e, { compactService: !0 })
|
|
3432
3443
|
}
|
|
3433
3444
|
) : null,
|
|
3434
3445
|
!b && t.gates.date ? (
|
|
@@ -3436,14 +3447,14 @@ function Hi(e) {
|
|
|
3436
3447
|
// historic 2-col date|slot split collapses to a single column
|
|
3437
3448
|
// so the picker spans the full width instead of orphaning an
|
|
3438
3449
|
// empty right cell.
|
|
3439
|
-
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ n(X, { step: 5, active: m === 5, children:
|
|
3450
|
+
e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ n(X, { step: 5, active: m === 5, children: Oe(5, e) }) : /* @__PURE__ */ k("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
|
|
3440
3451
|
/* @__PURE__ */ n(
|
|
3441
3452
|
X,
|
|
3442
3453
|
{
|
|
3443
3454
|
step: 5,
|
|
3444
3455
|
active: m === 5,
|
|
3445
3456
|
className: "ds:min-w-0",
|
|
3446
|
-
children:
|
|
3457
|
+
children: Oe(5, e)
|
|
3447
3458
|
}
|
|
3448
3459
|
),
|
|
3449
3460
|
s.date ? /* @__PURE__ */ n(
|
|
@@ -3452,15 +3463,15 @@ function Hi(e) {
|
|
|
3452
3463
|
step: 6,
|
|
3453
3464
|
active: m === 6,
|
|
3454
3465
|
className: "ds:min-w-0",
|
|
3455
|
-
children:
|
|
3466
|
+
children: Oe(6, e)
|
|
3456
3467
|
}
|
|
3457
3468
|
) : /* @__PURE__ */ n("div", { className: "ds:min-w-0" })
|
|
3458
3469
|
] })
|
|
3459
3470
|
) : null,
|
|
3460
|
-
t.gates.details ? /* @__PURE__ */ n(X, { step: 7, active: m === 7, children:
|
|
3471
|
+
t.gates.details ? /* @__PURE__ */ n(X, { step: 7, active: m === 7, children: Oe(7, e) }) : null
|
|
3461
3472
|
] });
|
|
3462
3473
|
}
|
|
3463
|
-
function
|
|
3474
|
+
function Wi(e) {
|
|
3464
3475
|
const { cascade: t, datePickerStyle: s, activeStep: i } = e, r = yt(i, s), a = t.visibleSteps.filter(
|
|
3465
3476
|
(p) => p === 1 || p === 2 || p === 3 || p === 4
|
|
3466
3477
|
);
|
|
@@ -3470,28 +3481,28 @@ function Ji(e) {
|
|
|
3470
3481
|
{
|
|
3471
3482
|
className: s === "four-day-grid" ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]" : "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2",
|
|
3472
3483
|
children: [
|
|
3473
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: a.map((p) => /* @__PURE__ */ n(X, { step: p, active: p === r, children:
|
|
3484
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: a.map((p) => /* @__PURE__ */ n(X, { step: p, active: p === r, children: Oe(p, e, { compactService: !0 }) }, `fbf-${p}`)) }),
|
|
3474
3485
|
/* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3475
|
-
t.gates.date ? /* @__PURE__ */ n(X, { step: 5, active: r === 5, children:
|
|
3476
|
-
t.gates.slot && e.value.date && s === "month-calendar" ? /* @__PURE__ */ n(X, { step: 6, active: r === 6, children:
|
|
3486
|
+
t.gates.date ? /* @__PURE__ */ n(X, { step: 5, active: r === 5, children: Oe(5, e) }) : null,
|
|
3487
|
+
t.gates.slot && e.value.date && s === "month-calendar" ? /* @__PURE__ */ n(X, { step: 6, active: r === 6, children: Oe(6, e) }) : null
|
|
3477
3488
|
] })
|
|
3478
3489
|
]
|
|
3479
3490
|
}
|
|
3480
3491
|
),
|
|
3481
|
-
t.gates.details ? /* @__PURE__ */ n(X, { step: 7, active: r === 7, children:
|
|
3492
|
+
t.gates.details ? /* @__PURE__ */ n(X, { step: 7, active: r === 7, children: Oe(7, e) }) : null
|
|
3482
3493
|
] });
|
|
3483
3494
|
}
|
|
3484
|
-
function
|
|
3495
|
+
function Yi(e) {
|
|
3485
3496
|
const { cascade: t, value: s, activeStep: i, setActiveStep: r, datePickerStyle: a } = e, { t: c } = Y("ui"), p = Wt(), u = R(
|
|
3486
|
-
() =>
|
|
3497
|
+
() => un(t.visibleSteps, a),
|
|
3487
3498
|
[t.visibleSteps, a]
|
|
3488
3499
|
), m = yt(i, a), v = Math.max(0, u.indexOf(m)), b = u.length, g = R(
|
|
3489
3500
|
() => u.map((y) => ({ label: p[y] })),
|
|
3490
3501
|
[u, p]
|
|
3491
3502
|
), o = v > 0, f = m === 5 && a === "four-day-grid", I = v < b - 1 && Ue(m, s) && (!f || Ue(6, s));
|
|
3492
3503
|
return /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
3493
|
-
/* @__PURE__ */ n(
|
|
3494
|
-
/* @__PURE__ */ n(X, { step: m, active: !0, children:
|
|
3504
|
+
/* @__PURE__ */ n(us, { activeStep: v, steps: g }),
|
|
3505
|
+
/* @__PURE__ */ n(X, { step: m, active: !0, children: Oe(m, e, { compactService: !0 }) }),
|
|
3495
3506
|
/* @__PURE__ */ k("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
3496
3507
|
/* @__PURE__ */ n(
|
|
3497
3508
|
tt,
|
|
@@ -3522,11 +3533,11 @@ function Wi(e) {
|
|
|
3522
3533
|
] })
|
|
3523
3534
|
] });
|
|
3524
3535
|
}
|
|
3525
|
-
const
|
|
3526
|
-
function
|
|
3536
|
+
const Zi = [], Qi = [];
|
|
3537
|
+
function kn() {
|
|
3527
3538
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
3528
3539
|
}
|
|
3529
|
-
const
|
|
3540
|
+
const Xi = Sn(
|
|
3530
3541
|
({
|
|
3531
3542
|
variant: e = "inline-list",
|
|
3532
3543
|
country: t,
|
|
@@ -3552,12 +3563,12 @@ const Qi = kn(
|
|
|
3552
3563
|
billingInDetails: N = !1,
|
|
3553
3564
|
paymentNoticeStyle: x = "highlighted",
|
|
3554
3565
|
showNote: S,
|
|
3555
|
-
showReturningPatientFlag:
|
|
3566
|
+
showReturningPatientFlag: D,
|
|
3556
3567
|
privacyPolicyUrl: T,
|
|
3557
|
-
termsUrl:
|
|
3568
|
+
termsUrl: E,
|
|
3558
3569
|
practiceConsent: l,
|
|
3559
3570
|
paymentTermsUrl: w,
|
|
3560
|
-
paymentState:
|
|
3571
|
+
paymentState: O,
|
|
3561
3572
|
renderPayment: V,
|
|
3562
3573
|
renderPaymentCompletion: j,
|
|
3563
3574
|
validateCodiceFiscale: Z,
|
|
@@ -3577,9 +3588,9 @@ const Qi = kn(
|
|
|
3577
3588
|
servicePickerStyle: ce,
|
|
3578
3589
|
showServiceDuration: Ce = !0,
|
|
3579
3590
|
operatorPickerStyle: Ae,
|
|
3580
|
-
loadingDates:
|
|
3591
|
+
loadingDates: Fe,
|
|
3581
3592
|
loadingSlots: re,
|
|
3582
|
-
submitting:
|
|
3593
|
+
submitting: Ee,
|
|
3583
3594
|
submitError: de,
|
|
3584
3595
|
mode: he = "live",
|
|
3585
3596
|
showModifyOnSuccess: Te = !0,
|
|
@@ -3588,15 +3599,15 @@ const Qi = kn(
|
|
|
3588
3599
|
onboardingIncompleteSlot: q,
|
|
3589
3600
|
"aria-label": qe,
|
|
3590
3601
|
id: st,
|
|
3591
|
-
className:
|
|
3602
|
+
className: Et,
|
|
3592
3603
|
onFocus: dt,
|
|
3593
3604
|
onBlur: lt,
|
|
3594
3605
|
...ut
|
|
3595
3606
|
}, Be) => {
|
|
3596
|
-
var _t, Tt,
|
|
3597
|
-
const { t: le, i18n: Bt } = Y("ui"), ve = e ?? "inline-list", Je = Bt.language ?? "en", ke = p ??
|
|
3607
|
+
var _t, Tt, Dt;
|
|
3608
|
+
const { t: le, i18n: Bt } = Y("ui"), ve = e ?? "inline-list", Je = Bt.language ?? "en", ke = p ?? Zi, We = m ?? Qi;
|
|
3598
3609
|
K(() => {
|
|
3599
|
-
const C =
|
|
3610
|
+
const C = ii(M, {
|
|
3600
3611
|
useSpecialties: s,
|
|
3601
3612
|
lockedOperatorId: r,
|
|
3602
3613
|
autoSelectSingleService: c,
|
|
@@ -3612,7 +3623,7 @@ const Qi = kn(
|
|
|
3612
3623
|
u
|
|
3613
3624
|
]);
|
|
3614
3625
|
const _ = R(
|
|
3615
|
-
() =>
|
|
3626
|
+
() => si({
|
|
3616
3627
|
country: t,
|
|
3617
3628
|
useSpecialties: s,
|
|
3618
3629
|
allowOperatorSelection: i,
|
|
@@ -3654,14 +3665,14 @@ const Qi = kn(
|
|
|
3654
3665
|
return Math.min(4, _.currentStep);
|
|
3655
3666
|
if (!pt) return _.currentStep;
|
|
3656
3667
|
const L = _.visibleSteps.find(
|
|
3657
|
-
(P) => P > C && !
|
|
3668
|
+
(P) => P > C && !yn(P, M)
|
|
3658
3669
|
);
|
|
3659
3670
|
return L === void 0 ? _.currentStep : Math.min(L, _.currentStep);
|
|
3660
3671
|
},
|
|
3661
3672
|
[pt, _.visibleSteps, _.currentStep, M]
|
|
3662
3673
|
), [oe, xe] = G(
|
|
3663
3674
|
_.currentStep
|
|
3664
|
-
), St =
|
|
3675
|
+
), St = F(Se), Ye = F(_.visibleSteps);
|
|
3665
3676
|
K(() => {
|
|
3666
3677
|
const C = St.current, L = Ye.current;
|
|
3667
3678
|
St.current = Se, Ye.current = _.visibleSteps;
|
|
@@ -3673,7 +3684,7 @@ const Qi = kn(
|
|
|
3673
3684
|
return;
|
|
3674
3685
|
}
|
|
3675
3686
|
const Q = pt ? _.visibleSteps.find(
|
|
3676
|
-
(ae) => ae < oe && !L.includes(ae) && !
|
|
3687
|
+
(ae) => ae < oe && !L.includes(ae) && !yn(ae, M)
|
|
3677
3688
|
) : void 0;
|
|
3678
3689
|
if (Q !== void 0) {
|
|
3679
3690
|
xe(Q);
|
|
@@ -3689,10 +3700,10 @@ const Qi = kn(
|
|
|
3689
3700
|
oe,
|
|
3690
3701
|
M
|
|
3691
3702
|
]);
|
|
3692
|
-
const ue =
|
|
3693
|
-
() =>
|
|
3703
|
+
const ue = F(null), it = R(
|
|
3704
|
+
() => un(_.visibleSteps, ge),
|
|
3694
3705
|
[_.visibleSteps, ge]
|
|
3695
|
-
), Ze = Wt(), [Yt, Le] = G(""), be =
|
|
3706
|
+
), Ze = Wt(), [Yt, Le] = G(""), be = F(null), rt = F(null);
|
|
3696
3707
|
K(() => {
|
|
3697
3708
|
const C = yt(oe, ge);
|
|
3698
3709
|
if (rt.current === null) {
|
|
@@ -3715,31 +3726,31 @@ const Qi = kn(
|
|
|
3715
3726
|
if (!Q) return;
|
|
3716
3727
|
const ae = document.activeElement;
|
|
3717
3728
|
if (!(ae === null || ae === document.body || !Q.contains(ae))) return;
|
|
3718
|
-
const A = Q.querySelector(
|
|
3729
|
+
const A = Q.querySelector(ji) ?? Q;
|
|
3719
3730
|
if (A.focus({ preventScroll: !0 }), typeof A.scrollIntoView == "function")
|
|
3720
3731
|
try {
|
|
3721
3732
|
A.scrollIntoView({
|
|
3722
|
-
behavior:
|
|
3733
|
+
behavior: kn() ? "auto" : "smooth",
|
|
3723
3734
|
block: "nearest"
|
|
3724
3735
|
});
|
|
3725
3736
|
} catch {
|
|
3726
3737
|
A.scrollIntoView();
|
|
3727
3738
|
}
|
|
3728
3739
|
}, [oe, ge, it, Ze, le]);
|
|
3729
|
-
const $ =
|
|
3740
|
+
const $ = Ti({
|
|
3730
3741
|
services: u,
|
|
3731
3742
|
value: M,
|
|
3732
3743
|
availableSlots: b,
|
|
3733
3744
|
onSubmit: we,
|
|
3734
3745
|
onChange: J,
|
|
3735
|
-
paymentState:
|
|
3736
|
-
submitting:
|
|
3746
|
+
paymentState: O,
|
|
3747
|
+
submitting: Ee,
|
|
3737
3748
|
paymentTermsUrl: w,
|
|
3738
3749
|
renderPayment: V,
|
|
3739
3750
|
codeStep: fe
|
|
3740
|
-
}), U = $.status, Lt = $.submit, ot =
|
|
3751
|
+
}), U = $.status, Lt = $.submit, ot = F($.reset);
|
|
3741
3752
|
ot.current = $.reset;
|
|
3742
|
-
const xt = bt(), It =
|
|
3753
|
+
const xt = bt(), It = F(null), Nt = F(null), wt = ((_t = $.state) == null ? void 0 : _t.status) === "failed", Qe = $.state && "phase" in $.state && $.state.phase === "completion";
|
|
3743
3754
|
K(() => {
|
|
3744
3755
|
var C, L;
|
|
3745
3756
|
if (U === "payment") {
|
|
@@ -3749,20 +3760,20 @@ const Qi = kn(
|
|
|
3749
3760
|
}, [U, Qe]), K(() => {
|
|
3750
3761
|
var C;
|
|
3751
3762
|
U === "payment" && wt && ((C = Nt.current) == null || C.focus());
|
|
3752
|
-
}, [U, wt]),
|
|
3753
|
-
const Ke = U === "success" ? 8 : U === "payment" || U === "code" ? 7 : _.currentStep, mt =
|
|
3763
|
+
}, [U, wt]), Zn(Be, () => ue.current, []);
|
|
3764
|
+
const Ke = U === "success" ? 8 : U === "payment" || U === "code" ? 7 : _.currentStep, mt = F(null);
|
|
3754
3765
|
K(() => {
|
|
3755
3766
|
if (Ke !== mt.current && (mt.current = Ke, W == null || W(Ke), Ke === 8 && ue.current))
|
|
3756
3767
|
try {
|
|
3757
3768
|
ue.current.scrollIntoView({
|
|
3758
|
-
behavior:
|
|
3769
|
+
behavior: kn() ? "auto" : "smooth",
|
|
3759
3770
|
block: "start"
|
|
3760
3771
|
});
|
|
3761
3772
|
} catch {
|
|
3762
3773
|
ue.current.scrollIntoView();
|
|
3763
3774
|
}
|
|
3764
3775
|
}, [Ke, W]);
|
|
3765
|
-
const Xe =
|
|
3776
|
+
const Xe = F({ activeStep: oe, cascade: _, submitState: U });
|
|
3766
3777
|
K(() => {
|
|
3767
3778
|
Xe.current = { activeStep: oe, cascade: _, submitState: U };
|
|
3768
3779
|
}, [oe, _, U]);
|
|
@@ -3783,25 +3794,25 @@ const Qi = kn(
|
|
|
3783
3794
|
}),
|
|
3784
3795
|
[ve, J]
|
|
3785
3796
|
);
|
|
3786
|
-
|
|
3787
|
-
const Rt = qe ?? le("booking.regionLabel"),
|
|
3788
|
-
|
|
3797
|
+
Qn(Ys, ft, st);
|
|
3798
|
+
const Rt = qe ?? le("booking.regionLabel"), De = $.snapshot, Zt = U === "success" && De ? /* @__PURE__ */ n(
|
|
3799
|
+
zi,
|
|
3789
3800
|
{
|
|
3790
3801
|
codeVerified: $.codeVerified,
|
|
3791
|
-
payment:
|
|
3802
|
+
payment: De.payment,
|
|
3792
3803
|
confirmationChannels: ee,
|
|
3793
3804
|
snapshot: {
|
|
3794
|
-
...
|
|
3795
|
-
slot:
|
|
3796
|
-
details:
|
|
3797
|
-
serviceId: ((Tt =
|
|
3805
|
+
...De.value,
|
|
3806
|
+
slot: De.slot,
|
|
3807
|
+
details: De.details,
|
|
3808
|
+
serviceId: ((Tt = De.payment) == null ? void 0 : Tt.serviceId) ?? De.slot.serviceId ?? De.value.serviceId
|
|
3798
3809
|
},
|
|
3799
3810
|
operators: We,
|
|
3800
3811
|
specialties: ke,
|
|
3801
3812
|
services: u,
|
|
3802
3813
|
locale: Je,
|
|
3803
3814
|
mode: he,
|
|
3804
|
-
showModify: Te && !
|
|
3815
|
+
showModify: Te && !De.payment && !$.codeVerified,
|
|
3805
3816
|
onReset: () => ft.reset(),
|
|
3806
3817
|
focusWasLost: () => {
|
|
3807
3818
|
const C = be.current, L = document.activeElement;
|
|
@@ -3812,7 +3823,7 @@ const Qi = kn(
|
|
|
3812
3823
|
}
|
|
3813
3824
|
}
|
|
3814
3825
|
) : null, Qt = U === "code" && $.codeStep ? /* @__PURE__ */ n(
|
|
3815
|
-
|
|
3826
|
+
wi,
|
|
3816
3827
|
{
|
|
3817
3828
|
...$.codeStep,
|
|
3818
3829
|
...fe,
|
|
@@ -3822,7 +3833,7 @@ const Qi = kn(
|
|
|
3822
3833
|
session: Ct,
|
|
3823
3834
|
payment: Ct.payment,
|
|
3824
3835
|
state: Re,
|
|
3825
|
-
billing: (
|
|
3836
|
+
billing: (Dt = $.snapshot) == null ? void 0 : Dt.details.billing
|
|
3826
3837
|
} : void 0, et = Re && "phase" in Re && Re.phase === "completion", ie = U === "payment" && ye ? /* @__PURE__ */ k(
|
|
3827
3838
|
"section",
|
|
3828
3839
|
{
|
|
@@ -3856,7 +3867,7 @@ const Qi = kn(
|
|
|
3856
3867
|
role: "status",
|
|
3857
3868
|
className: ye.state.status === "processing" ? "type-body ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-sm)]" : "ds:sr-only",
|
|
3858
3869
|
children: ye.state.status === "processing" ? /* @__PURE__ */ k(me, { children: [
|
|
3859
|
-
/* @__PURE__ */ n(
|
|
3870
|
+
/* @__PURE__ */ n(In, { variant: "pulse", size: "lg", "aria-hidden": "true" }),
|
|
3860
3871
|
/* @__PURE__ */ n("span", { children: le(
|
|
3861
3872
|
et ? "booking.payment.confirming" : "booking.payment.processing"
|
|
3862
3873
|
) })
|
|
@@ -3893,7 +3904,7 @@ const Qi = kn(
|
|
|
3893
3904
|
}, [u, M]), pe = R(() => {
|
|
3894
3905
|
if (U === "success" || U === "payment" || U === "code")
|
|
3895
3906
|
return null;
|
|
3896
|
-
const C = ve === "accordion" ?
|
|
3907
|
+
const C = ve === "accordion" ? Gi : ve === "calendar" ? Ji : ve === "flexible" ? Wi : ve === "progress" ? Yi : Ui, L = {
|
|
3897
3908
|
cascade: _,
|
|
3898
3909
|
inputs: {
|
|
3899
3910
|
specialties: ke,
|
|
@@ -3915,9 +3926,9 @@ const Qi = kn(
|
|
|
3915
3926
|
requireInsuranceNumber: B,
|
|
3916
3927
|
insuranceType: M.insuranceType,
|
|
3917
3928
|
showNote: S,
|
|
3918
|
-
showReturningPatientFlag:
|
|
3929
|
+
showReturningPatientFlag: D,
|
|
3919
3930
|
privacyPolicyUrl: T,
|
|
3920
|
-
termsUrl:
|
|
3931
|
+
termsUrl: E,
|
|
3921
3932
|
practiceConsent: l,
|
|
3922
3933
|
criticalInformationToAccept: At,
|
|
3923
3934
|
payment: $.payment,
|
|
@@ -3934,7 +3945,7 @@ const Qi = kn(
|
|
|
3934
3945
|
},
|
|
3935
3946
|
emptyServicesSlot: He,
|
|
3936
3947
|
onboardingIncompleteSlot: q,
|
|
3937
|
-
loadingDates:
|
|
3948
|
+
loadingDates: Fe,
|
|
3938
3949
|
loadingSlots: re,
|
|
3939
3950
|
onDateSelect: Ve,
|
|
3940
3951
|
onWindowChange: ct,
|
|
@@ -3943,7 +3954,7 @@ const Qi = kn(
|
|
|
3943
3954
|
servicePickerStyle: ce,
|
|
3944
3955
|
showServiceDuration: Ce,
|
|
3945
3956
|
operatorPickerStyle: Ae,
|
|
3946
|
-
submitting:
|
|
3957
|
+
submitting: Ee || U === "submitting",
|
|
3947
3958
|
locale: Je,
|
|
3948
3959
|
activeStep: oe,
|
|
3949
3960
|
setActiveStep: xe,
|
|
@@ -3978,9 +3989,9 @@ const Qi = kn(
|
|
|
3978
3989
|
x,
|
|
3979
3990
|
de,
|
|
3980
3991
|
S,
|
|
3981
|
-
|
|
3992
|
+
D,
|
|
3982
3993
|
T,
|
|
3983
|
-
|
|
3994
|
+
E,
|
|
3984
3995
|
l,
|
|
3985
3996
|
At,
|
|
3986
3997
|
Z,
|
|
@@ -3990,7 +4001,7 @@ const Qi = kn(
|
|
|
3990
4001
|
Pe,
|
|
3991
4002
|
He,
|
|
3992
4003
|
q,
|
|
3993
|
-
|
|
4004
|
+
Fe,
|
|
3994
4005
|
re,
|
|
3995
4006
|
Ve,
|
|
3996
4007
|
ct,
|
|
@@ -3999,7 +4010,7 @@ const Qi = kn(
|
|
|
3999
4010
|
ce,
|
|
4000
4011
|
Ce,
|
|
4001
4012
|
Ae,
|
|
4002
|
-
|
|
4013
|
+
Ee,
|
|
4003
4014
|
Je,
|
|
4004
4015
|
oe,
|
|
4005
4016
|
st
|
|
@@ -4014,10 +4025,10 @@ const Qi = kn(
|
|
|
4014
4025
|
"data-component": "booking",
|
|
4015
4026
|
"data-component-id": st,
|
|
4016
4027
|
"data-variant": ve,
|
|
4017
|
-
className:
|
|
4028
|
+
className: Di({
|
|
4018
4029
|
variant: ve,
|
|
4019
4030
|
surface: $e,
|
|
4020
|
-
className:
|
|
4031
|
+
className: Et
|
|
4021
4032
|
}),
|
|
4022
4033
|
tabIndex: -1,
|
|
4023
4034
|
onFocus: (C) => {
|
|
@@ -4058,11 +4069,11 @@ const Qi = kn(
|
|
|
4058
4069
|
);
|
|
4059
4070
|
}
|
|
4060
4071
|
);
|
|
4061
|
-
|
|
4072
|
+
Xi.displayName = "Booking";
|
|
4062
4073
|
export {
|
|
4063
|
-
|
|
4074
|
+
Xi as B,
|
|
4064
4075
|
nn as C,
|
|
4065
4076
|
_e as O,
|
|
4066
|
-
|
|
4077
|
+
Ys as b
|
|
4067
4078
|
};
|
|
4068
|
-
//# sourceMappingURL=booking-
|
|
4079
|
+
//# sourceMappingURL=booking-CxrB0e6d.js.map
|