@alfadocs/ui-kit 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.
Files changed (69) hide show
  1. package/dist/_chunks/{address-fields-GnoSkvh6.js → address-fields-CfnXK8RT.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-M6u29f87.js → ai-prompt-input-DH_rnV-F.js} +33 -26
  3. package/dist/_chunks/{anamnesis-summary-rows-lONg-zja.js → anamnesis-summary-rows-BYtpwCyn.js} +2 -2
  4. package/dist/_chunks/{autocomplete-DosDnGie.js → autocomplete-CnB1mHGc.js} +65 -64
  5. package/dist/_chunks/{balance-badge-cell-Dzd-Z_5W.js → balance-badge-cell-NoEPeFdj.js} +2 -2
  6. package/dist/_chunks/{benefit-card-BWBClvdF.js → benefit-card-BcPtRHgM.js} +37 -36
  7. package/dist/_chunks/{booking-By4I_1A-.js → booking-CxrB0e6d.js} +474 -463
  8. package/dist/_chunks/{calendar-appointment-editor-dialog-DhTTWgXw.js → calendar-appointment-editor-dialog-BuumJbcv.js} +4 -4
  9. package/dist/_chunks/{city-input-3J3bz9EO.js → city-input-CJVGswxp.js} +2 -2
  10. package/dist/_chunks/{combobox-vF9O-QoG.js → combobox-CDPm_n0p.js} +93 -92
  11. package/dist/_chunks/{command-palette-D9TBzmOG.js → command-palette-B3dVqm9D.js} +68 -68
  12. package/dist/_chunks/{contact-profile-card-DKk94l-d.js → contact-profile-card-Da1vmJQI.js} +115 -102
  13. package/dist/_chunks/{country-select-CSE2Zm_s.js → country-select-DQ8q7ypA.js} +2 -2
  14. package/dist/_chunks/{face-scheme-BIPJqw9f.js → face-scheme-BgJGFDTa.js} +2 -2
  15. package/dist/_chunks/{header-settings-BYpVmLip.js → header-settings-CifwJEKB.js} +2 -2
  16. package/dist/_chunks/{link-cell-renderer-B0riA_h_.js → link-cell-renderer-Dwp_DCYT.js} +3 -3
  17. package/dist/_chunks/{locale-picker-DzdGDSBI.js → locale-picker-QbT1p60X.js} +39 -38
  18. package/dist/_chunks/{map-view-C6MIVaqn.js → map-view-Bvi06RVh.js} +2 -2
  19. package/dist/_chunks/{marketplace-app-shell-mS7Q2-81.js → marketplace-app-shell-vON3WhD0.js} +2 -2
  20. package/dist/_chunks/{multi-select-BOad3za9.js → multi-select-IOVnOGlP.js} +106 -106
  21. package/dist/_chunks/{patient-details-B-I9Xkh9.js → patient-details-D0P5eog5.js} +2 -2
  22. package/dist/_chunks/{patient-field-row-Bn0z6lAZ.js → patient-field-row-R73dZJY6.js} +5 -5
  23. package/dist/_chunks/{patient-search-CxqNcth4.js → patient-search-Dy0sxcwv.js} +2 -2
  24. package/dist/_chunks/{patient-summary-card-bhDo0gVX.js → patient-summary-card-6U74-ivO.js} +2 -2
  25. package/dist/_chunks/{payment-automation-upsell-AQpHOS1X.js → payment-automation-upsell-D1YdO1xY.js} +2 -2
  26. package/dist/_chunks/{phone-input-C3NrD-nl.js → phone-input-DJ4BN8tG.js} +70 -63
  27. package/dist/_chunks/{practice-results-CtOanuzZ.js → practice-results-B61krlwu.js} +2 -2
  28. package/dist/_chunks/{province-select-CDjs5obD.js → province-select-CPdTwEob.js} +2 -2
  29. package/dist/_chunks/{registration-form-CNBfUduG.js → registration-form-e9oYscB7.js} +2 -2
  30. package/dist/_chunks/{send-registration-link-form-vTn1HxjA.js → send-registration-link-form-CZYOO7NO.js} +2 -2
  31. package/dist/_chunks/{task-editor-Cpw-NmND.js → task-editor-BOETWbjU.js} +2 -2
  32. package/dist/_chunks/{use-appointment-details-read-lFUL4kkd.js → use-appointment-details-read-CWN-nJCZ.js} +2 -2
  33. package/dist/agent-catalog.json +1 -1
  34. package/dist/components/address-fields/index.js +1 -1
  35. package/dist/components/ai-prompt-input/index.js +1 -1
  36. package/dist/components/appointment-details-panel/index.js +1 -1
  37. package/dist/components/autocomplete/index.js +1 -1
  38. package/dist/components/benefit-card/benefit-card.d.ts +7 -1
  39. package/dist/components/benefit-card/index.js +1 -1
  40. package/dist/components/booking/index.js +1 -1
  41. package/dist/components/city-input/index.js +1 -1
  42. package/dist/components/combobox/index.js +1 -1
  43. package/dist/components/command-palette/index.js +1 -1
  44. package/dist/components/contact-profile-card/contact-profile-card.d.ts +4 -1
  45. package/dist/components/contact-profile-card/index.js +1 -1
  46. package/dist/components/country-select/index.js +1 -1
  47. package/dist/components/data-table/index.js +1 -1
  48. package/dist/components/face-scheme/index.js +1 -1
  49. package/dist/components/header-settings/index.js +1 -1
  50. package/dist/components/locale-picker/index.js +1 -1
  51. package/dist/components/map-view/index.js +1 -1
  52. package/dist/components/multi-select/index.js +1 -1
  53. package/dist/components/patient-details/index.js +1 -1
  54. package/dist/components/patient-search/index.js +1 -1
  55. package/dist/components/patient-summary-card/index.js +1 -1
  56. package/dist/components/patient-table/index.js +1 -1
  57. package/dist/components/phone-input/index.js +1 -1
  58. package/dist/components/practice-results/index.js +1 -1
  59. package/dist/components/province-select/index.js +1 -1
  60. package/dist/components/task-editor/index.js +1 -1
  61. package/dist/index.js +29 -29
  62. package/dist/patterns/anamnesis/index.js +1 -1
  63. package/dist/patterns/calendar/index.js +1 -1
  64. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  65. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  66. package/dist/patterns/registration-form/index.js +1 -1
  67. package/dist/patterns/send-registration-link-form/index.js +1 -1
  68. package/dist/tokens.css +1 -1
  69. package/package.json +1 -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 kn, useId as bt, useRef as E, useCallback as Ne, useState as G, useEffect as K, useMemo as R, Fragment as Wn, useImperativeHandle as Yn } from "react";
3
- import { c as Et } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Y, Trans as Sn } from "react-i18next";
5
- import { u as Zn } from "./registry-DvAUVLHh.js";
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 Qn } from "./checkbox-group-Cw2H5qaq.js";
10
- import { R as Xn } from "./radio-BZQs6_36.js";
11
- import { R as es } from "./radio-group-ChIKyeSJ.js";
12
- import { D as ts } from "./date-picker-CdhXlgVI.js";
13
- import { E as ns } from "./email-input-C7THAwh2.js";
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 ss } from "./phone-input-C3NrD-nl.js";
16
- import { T as is } from "./text-area-COMVJ1yE.js";
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 rs } from "./address-fields-GnoSkvh6.js";
19
- import { S as xn } from "./spinner-CoflYlEx.js";
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 os } from "./credit-card-D9XZsHGA.js";
22
- import { O as as } from "./otp-input-BgEZi0py.js";
23
- import { B as In } from "./badge-BUk4RjTS.js";
24
- import { I as un } from "./icon-button-S8_weU3g.js";
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 rn } from "./combobox-vF9O-QoG.js";
27
- import { M as on } from "./multi-select-BOad3za9.js";
28
- import { c as cs } from "./option-row-Dc7BrbK8.js";
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 Nn } from "./empty-state-DwJ5YNzz.js";
31
- import { S as ds } from "./stepper-accordion-DDTSOUHc.js";
32
- import { S as ls } from "./stepper-progress-D6H8wQiV.js";
33
- import { S as us } from "./slot-grid-Bb13H9Rl.js";
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 ps } from "./chevron-down-DWE7GSq9.js";
36
- import { s as ht, f as jt, d as pn } from "./format--x5jypvH.js";
37
- import { x as wn, a as vt, b as Xt, i as ms, s as Dt, m as fs, y as Vt } from "./date-picker-variants-Dt6UbonG.js";
38
- import { s as gs } from "./subDays-DKISP2nE.js";
39
- import { C as hs } from "./chevron-left-B8cOyH-V.js";
40
- import { C as vs } from "./chevron-right-I9AeSxH2.js";
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 bs, S as ys } from "./sun-Bj9Mr553.js";
43
- import { S as ks } from "./stethoscope-sZXGC43m.js";
44
- import { H as Ss } from "./heart-pulse-BCppJyN2.js";
45
- import { E as xs } from "./eye-BjhN2nYf.js";
46
- import { B as Is } from "./baby-Dku-Xvg9.js";
47
- import { S as Ns } from "./scan-line-CNseIHQ0.js";
48
- import { A as ws } from "./astroid-BN4f5VXU.js";
49
- import { C as Cs } from "./clipboard-check-BeAGxDVT.js";
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 As = [
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
- ], Ts = Me("activity", As);
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
- ], Ds = Me("bone", Os);
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 Ms = [
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", Ms);
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 Fs = [
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
- ], Bs = Me("calendar-range", Fs);
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 Ls = [
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
- ], Rs = Me("ear", Ls);
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 _s = [
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
- ], Ps = Me("microscope", _s);
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 Vs = [
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
- ], $s = Me("pill", Vs);
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 qs = [
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
- ], Ks = Me("scissors", qs);
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 zs = [
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
- ], js = Me("smile", zs);
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 Us = [
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
- ], Gs = Me("sunset", Us);
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 Hs = [
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
- ], mn = Me("syringe", Hs);
204
- function Js(e, t, s) {
205
- return wn(e, -1, s);
203
+ ], fn = Me("syringe", Js);
204
+ function Ws(e, t, s) {
205
+ return Cn(e, -1, s);
206
206
  }
207
- const Ws = {
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", Ys = "de";
288
- function Zs(e) {
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 Qs(e) {
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 Xs(e) {
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 ei(e, t) {
342
- const s = e.country === Ys, 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;
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 ti(e, t) {
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 ni(e) {
385
+ function si(e) {
386
386
  const t = {
387
- specialties: Zs(e),
388
- services: Qs(e),
389
- operators: Xs(e)
390
- }, s = ei(e, t), { currentStep: i, visibleSteps: r } = ti(e, 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 Cn(e, t) {
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 An(e, t) {
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 Tn(e, t) {
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 Dn(e, t) {
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 Mn(e, t) {
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 Fn(e, t) {
514
+ function Bn(e, t) {
515
515
  return {
516
516
  ...e,
517
517
  slotKey: t
518
518
  };
519
519
  }
520
- function si(e, t) {
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 Bn(e) {
530
+ function Ln(e) {
531
531
  if (e.operatorId && e.operatorId !== _e)
532
532
  return e.operatorId;
533
533
  }
534
- function ii(e) {
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 an(e) {
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 Ln(e, t) {
543
+ function Rn(e, t) {
544
544
  return t ?? (e.length === 1 ? e : ["email"]);
545
545
  }
546
- function ri(e, t, s) {
547
- const i = an(e), r = new Set(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 = ii(t), p = r.has("whatsapp");
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 oi = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F\u06D4\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF])+/gi, ai = /* @__PURE__ */ new Set([
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
- ]), ci = { ")": "(", "]": "[", "}": "{" }, fn = (e, t) => e.split(t).length - 1;
570
- function di(e) {
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(ci))
573
- t[i] = fn(e, i) - fn(e, r);
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 (ai.has(i))
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 li = /[\u0600-\u06FF\u3040-\u30FF\u3400-\u9FFF\uAC00-\uD7AF]/, ui = /[A-Za-z0-9]/;
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 fi(e) {
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(oi)) {
608
- const a = r.index ?? 0, c = di(pi(r[0]));
609
- mi(c) && (i(e.slice(s, a)), t.push({ kind: "link", text: c, href: c }), s = a + c.length);
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 gn = 500, gi = /^[A-Z0-9]{16}$/, hi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, hn = 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, vi = (e, t) => ({
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
- }), bi = (e, t, s = null) => ({
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
- }), yi = Et("ds:flex ds:flex-col ds:border", {
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
- }), ki = ["it", "ch", "de", "at", "fr", "sm"], z = {
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
- }, Rn = /^\d{5}$/, Si = (e) => {
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() && Rn.test(i.trim());
649
- }, xi = (e, t) => {
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" }, vn = [
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
- ], Ii = /* @__PURE__ */ new Set(), cn = kn(
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: O,
698
+ validateInsuranceNumber: D,
699
699
  submitting: T = !1,
700
- summarySlot: F,
700
+ summarySlot: E,
701
701
  defaultPhoneCountry: l,
702
702
  confirmationChannels: w,
703
- defaultConfirmationChannels: D,
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 = E(null), M = Ne(
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 = E(!1), [W, Ve] = G(!1), [ct, ge] = G(!1), se = T || W, [ce, Ce] = G(qt), [Ae, Ee] = G(qt), [re, Fe] = G({}), de = Ne(
724
- (d) => Fe((A) => ({ ...A, [d]: !0 })),
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(Ii), $e = E(null), He = E(
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, Ft] = G(
746
+ ]) : void 0, [st, Et] = G(
747
747
  () => e.paymentAccepted ? qe : void 0
748
- ), dt = E(qe), lt = !!(f && e.paymentAccepted && st === qe);
748
+ ), dt = F(qe), lt = !!(f && e.paymentAccepted && st === qe);
749
749
  K(() => {
750
- dt.current !== qe && (dt.current = qe, Ft(void 0), e.paymentAccepted !== void 0 && q({ paymentAccepted: f ? !1 : void 0 }));
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 = E(Be), Je = !!(Be !== void 0 && e.practiceConsentAccepted && le === Be);
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 = !_ || Si(e.billing), oe = vi(e.billing, pt), xe = oe.country === "it", St = E(null), Ye = E(
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 && !Rn.test(oe.postcode.trim()) ? h("inputs.postalCode.invalid") : void 0
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
- () => Fe(
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
- () => an(w),
787
+ () => cn(w),
788
788
  [w]
789
- ), be = !f && !y && Le.length >= 2, rt = E(!1);
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
- (D == null ? void 0 : D.find(
803
+ (O == null ? void 0 : O.find(
804
804
  (A) => Le.includes(A)
805
805
  )) ?? Le[0]
806
- ] : ri(
806
+ ] : oi(
807
807
  Le,
808
808
  e.mobilePhone,
809
- D
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
- D,
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 = Ln(
824
+ ), U = be && $.length === 0, Lt = Rn(
825
825
  Le,
826
826
  be ? $ : void 0
827
- ), ot = !r || Lt.includes("email"), xt = E(S), It = E(O);
827
+ ), ot = !r || Lt.includes("email"), xt = F(S), It = F(D);
828
828
  K(() => {
829
- xt.current = S, It.current = O;
830
- }, [S, O]);
831
- const Nt = !!S, wt = !!O;
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 (!gi.test(d)) {
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
- }, hn), () => {
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
- Ee(qt);
872
+ Fe(qt);
873
873
  return;
874
874
  }
875
- Ee({ state: "pending" }), He.current && clearTimeout(He.current), He.current = setTimeout(() => {
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) => Ee(
878
+ (te) => Fe(
879
879
  te.valid ? { state: "valid" } : { state: "invalid", hint: te.hint }
880
880
  )
881
881
  ).catch(
882
- () => Ee({
882
+ () => Fe({
883
883
  state: "invalid",
884
884
  hint: h("booking.details.insuranceNumber.unavailable")
885
885
  })
886
886
  );
887
- }, hn);
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 && hi.test(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, Oe = !Rt || !!e.criticalInformationAccepted, Zt = !ut || !(o != null && o.required) || Je, Qt = !!(e.privacyConsent && e.termsConsent && Oe && Zt), Ct = !be || $.length > 0, Re = Xe && Qt && Ct && (!f || lt) && !y && !se, ye = !Re && !se && !y, et = `${H}-submit-hint`, ie = {
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 = vn.filter(
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
- vn.filter(
935
+ bn.filter(
936
936
  (ze) => he.has(ze) || !ie[ze]
937
937
  )
938
938
  )
939
- ), Fe({
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: xi(
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
- ), Ot = (d, A) => {
1013
+ ), Dt = (d, A) => {
1014
1014
  const te = $t(A);
1015
1015
  return te ? /* @__PURE__ */ n(
1016
- Sn,
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
- F,
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
- ns,
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
- ss,
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
- ts,
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
- rs,
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: bi(
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: ki,
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: gn
1262
+ max: hn
1263
1263
  }),
1264
1264
  children: /* @__PURE__ */ n(
1265
- is,
1265
+ rs,
1266
1266
  {
1267
1267
  value: e.note ?? "",
1268
- maxLength: gn,
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: fi(ft).map(
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(Wn, { children: d.text }, A)
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: yi({
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(os, { "aria-hidden": "true", className: "ds:size-5" }) }),
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
- Ft(
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
- Ot(
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
- Ot(
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
- es,
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
- Xn,
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
- Qn,
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(xn, { variant: "pulse", size: "sm" }) : void 0,
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
- cn.displayName = "BookingDetailsForm";
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 Ni({
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 = E(null), b = E(null), g = E(null), o = E(!1), f = E(!1), [I, y] = G(null), [B, N] = G(!1), [x, S] = G(null), [O, T] = G(
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
- ), [F, l] = G(0), w = Number.isFinite(i) ? Math.max(0, Math.ceil(i)) : 60, [D, V] = G(
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
- }, [F]), K(() => {
1597
+ }, [E]), K(() => {
1598
1598
  var we, fe;
1599
- if (I || !h && O !== "resend") return;
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, O]), K(() => {
1602
+ }, [I, h, D]), K(() => {
1603
1603
  if (j === 0) return;
1604
1604
  const M = setTimeout(() => {
1605
- Z(Math.max(0, Math.ceil((D - Date.now()) / 1e3)));
1605
+ Z(Math.max(0, Math.ceil((O - Date.now()) / 1e3)));
1606
1606
  }, 1e3);
1607
1607
  return () => clearTimeout(M);
1608
- }, [D, j]);
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() < D)) {
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
- Sn,
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
- as,
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
- F
1673
+ E
1674
1674
  ) }) }),
1675
- O ? /* @__PURE__ */ n(ne, { variant: "error", children: /* @__PURE__ */ n(ne.Description, { children: c(O === "verify" ? "booking.code.verifyFailed" : "booking.code.resendFailed") }) }) : null,
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 _n(e) {
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 wi(e) {
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 = _n(e);
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 Ci(e, t, s) {
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 = _n(a);
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 Ai({
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 = E(
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 = Ci(
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 = E(void 0), x = !!((fe = t.details) != null && fe.paymentAccepted);
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 = E(y);
1781
+ const S = F(y);
1782
1782
  S.current = y;
1783
- const [O, T] = G({ status: "idle" }), F = E(0), l = E(!1), w = E(!0), D = E(!1), V = E(void 0), j = E(y);
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, F.current += 1;
1785
+ w.current = !1, E.current += 1;
1786
1786
  }), []);
1787
- const Z = O.status === "payment" || O.status === "code" || O.status === "success";
1787
+ const Z = D.status === "payment" || D.status === "code" || D.status === "success";
1788
1788
  K(() => {
1789
- j.current === y || D.current || Z || (j.current = y, F.current += 1, l.current = !1, T({ status: "idle" }));
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 ? O.session : void 0, ee = R(
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 || D.current || (H.status === "paid" ? (D.current = !0, T((W) => ({
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" && (F.current += 1, l.current = !1, b.current = void 0, r({
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
- F.current += 1, l.current = !1, D.current = !1, V.current = void 0, b.current = void 0, j.current = S.current, T({ status: "idle" });
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, Ee, re, Fe, de;
1817
- if (!(o != null && o.available) || I || c || l.current || O.status === "payment" || D.current || f.payment && !W.paymentAccepted) return;
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 = ++F.current, ge = y;
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: (Ee = t.specialtyIds) == null ? void 0 : Ee.slice(),
1828
+ specialtyIds: (Fe = t.specialtyIds) == null ? void 0 : Fe.slice(),
1829
1829
  operatorIds: (re = t.operatorIds) == null ? void 0 : re.slice(),
1830
- operatorId: Bn(t) ?? t.operatorId,
1830
+ operatorId: Ln(t) ?? t.operatorId,
1831
1831
  details: { ...W }
1832
1832
  },
1833
1833
  details: {
1834
1834
  ...W,
1835
- confirmationChannels: (Fe = W.confirmationChannels) == null ? void 0 : Fe.slice()
1835
+ confirmationChannels: (Ee = W.confirmationChannels) == null ? void 0 : Ee.slice()
1836
1836
  },
1837
1837
  ...f.payment ? { payment: { ...f.payment } } : {}
1838
- }, ce = () => w.current && F.current === ct && S.current === ge;
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" }) : (D.current = !0, T({
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
- ...O,
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 Ti = Et(
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
- mn
1913
+ fn
1914
1914
  ],
1915
- [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, Ss],
1916
- [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, js],
1917
- [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, xs],
1918
- [/\b(otorin|udito|orecchi|hearing|ear)/i, Rs],
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, Is],
1921
- [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Ds],
1922
- [/\b(lab|analis|test|sang|esami)/i, Ps],
1923
- [/\b(farmaco|pharm|pillol|refill)/i, $s],
1924
- [/\b(chirurg|surg|intervent|operat)/i, Ks],
1925
- [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Ns],
1926
- [/\b(vacc|inject|inie|punto)/i, mn],
1927
- [/\b(derma|skin|pelle)/i, ws],
1928
- [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, Cs],
1929
- [/\b(general|medicin|family|control|check[-\s]?up)/i, Ts]
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 Di(e) {
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 Mi(e) {
1937
- const t = Di(e.label) ?? ks;
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 Pn() {
1940
+ function Vn() {
1941
1941
  const { t: e, i18n: t } = Y("ui");
1942
1942
  return (s) => {
1943
- const i = wi(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;
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(" "), Fi = Et(Ei, {
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 Bi({
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 ? Dt(Ie(t)) : e.length > 0 ? Dt(Ie(e[0])) : Dt(/* @__PURE__ */ new Date()), [t, e]), [p, u] = G(c), [m, v] = G(null), b = R(() => {
1989
- const N = Dt(p), x = fs(p), S = N.getDay(), O = x.getDate(), T = [];
1990
- for (let F = S; F > 0; F -= 1) {
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() - F), T.push(l);
1992
+ l.setDate(N.getDate() - E), T.push(l);
1993
1993
  }
1994
- for (let F = 0; F < O; F += 1) {
1994
+ for (let E = 0; E < D; E += 1) {
1995
1995
  const l = new Date(N);
1996
- l.setDate(N.getDate() + F), T.push(l);
1996
+ l.setDate(N.getDate() + E), T.push(l);
1997
1997
  }
1998
1998
  for (; T.length < 42; ) {
1999
- const F = T[T.length - 1], l = new Date(F);
2000
- l.setDate(F.getDate() + 1), T.push(l);
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 O = new Date(N);
2016
- O.setDate(N.getDate() + S);
2015
+ const D = new Date(N);
2016
+ D.setDate(N.getDate() + S);
2017
2017
  try {
2018
- return new Intl.DateTimeFormat(i, { weekday: "short" }).format(O);
2018
+ return new Intl.DateTimeFormat(i, { weekday: "short" }).format(D);
2019
2019
  } catch {
2020
- return jt(O, "EEE");
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(Dt(S)), v(S));
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
- un,
2082
+ pn,
2083
2083
  {
2084
- icon: /* @__PURE__ */ n(hs, {}),
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) => Js(N)), v(null);
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
- un,
2103
+ pn,
2104
2104
  {
2105
- icon: /* @__PURE__ */ n(vs, {}),
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) => wn(N, 1)), v(null);
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, O) => {
2145
- const T = x * 7 + O, F = Vt(S, p), l = F && I(S), w = t ? pn(S, Ie(t)) : !1, D = F ? w ? "selected" : l ? "available" : "unavailable" : "outside", V = y ? pn(y, S) : !1, j = (() => {
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: Fi({ state: D }),
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 Li = Et(
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 Ri({
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 = Pn(), c = bt(), [p, u] = G(() => {
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 = E(/* @__PURE__ */ new Map()), v = Ne((g) => {
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 = Mi(g);
2282
+ }) : g.label, S = Fi(g);
2283
2283
  return /* @__PURE__ */ k(
2284
2284
  "button",
2285
2285
  {
2286
- ref: (O) => {
2287
- O ? m.current.set(o, O) : m.current.delete(o);
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: (O) => b(O, o, g.id),
2297
- className: Li({
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: cs({ tone: N }),
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(In, { variant: "accentSoft", size: "lg", children: y })
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 _i = Et(
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 Pi(e) {
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
- const Vi = {
2375
- morning: ys,
2376
- afternoon: Gs,
2377
- evening: bs
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 $i({
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[Pi(g.time)].push(g);
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(Nn, { variant: "no-results", title: c("booking.noSlotsForDate") }) : /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
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
- Bs,
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 = Vi[b];
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: _i({ state: y }),
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 qi({
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 D = Xt(b, w), V = at(D), Z = (t[V] ?? []).map((h) => ({
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 = gs(l, zt);
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((D) => {
2526
- const V = ht(Ie(D));
2527
- return !vt(V, o) && !ms(V, b);
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 D = typeof w.date == "string" ? w.date : at(w.date);
2545
+ const O = typeof w.date == "string" ? w.date : at(w.date);
2535
2546
  i({
2536
- ...Fn(Jt(s, D), l.id)
2537
- }), r == null || r(D);
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", O = f.some((l) => l.slots.length > 0), T = e[0];
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" && !O && !!T ? /* @__PURE__ */ n(
2543
- dn,
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
- us,
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 Vn(e) {
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
- qi,
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
- Bi,
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 $n(e) {
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
- $i,
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(Fn(s, p.key)),
2627
+ onSelect: (p) => i(Bn(s, p.key)),
2617
2628
  loading: r,
2618
2629
  locale: a
2619
2630
  }
2620
2631
  );
2621
2632
  }
2622
- function qn({ value: e, onChange: t }) {
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 Kn({
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
- on,
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
- rn,
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 zn({
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 = Pn(), v = a ?? (c ? "select" : "cards"), b = e.map((o) => {
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(In, { variant: "accentSoft", size: "lg", children: f })
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
- on,
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
- rn,
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
- Ri,
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 jn({
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
- on,
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
- rn,
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 Un({
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 dn({
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 Ki({
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 = E(null);
2895
+ const { t: o } = Y("ui"), f = F(null);
2885
2896
  K(() => {
2886
- const l = f.current, w = document.activeElement, D = l == null ? void 0 : l.closest('[data-component="booking"]');
2887
- !t && !e || !l || (w && (D != null && D.contains(w)) || g()) && l.focus();
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 = an(s), B = Ln(
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]), O = R(() => {
2913
- const w = (i.operatorIds && i.operatorIds.length > 0 ? i.operatorIds : i.operatorId ? [i.operatorId] : []).filter((D) => D !== _e).map((D) => {
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 === D)) == null ? void 0 : V.name;
2916
- }).filter((D) => D !== void 0);
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((D, V) => [
2935
+ return w.flatMap((O, V) => [
2925
2936
  ...V > 0 ? [{ type: "literal", value: ", " }] : [],
2926
- { type: "element", value: D }
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, F = i.serviceId ? c.find((l) => l.id === i.serviceId) : 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
- F ? /* @__PURE__ */ k(me, { children: [
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: F.label
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
- O.length > 0 ? /* @__PURE__ */ k(me, { children: [
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: O.map(
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 Gn({ customSlot: e }) {
3010
+ function Hn({ customSlot: e }) {
3000
3011
  const { t } = Y("ui");
3001
3012
  return e ? /* @__PURE__ */ n(me, { children: e }) : /* @__PURE__ */ n(
3002
- Nn,
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 Hn = "data-booking-step-active", zi = `[${Hn}]`;
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 ? { [Hn]: "" } : null,
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 ln(e, t) {
3041
+ function un(e, t) {
3031
3042
  return t === "four-day-grid" ? e.filter((s) => s !== 6) : e;
3032
3043
  }
3033
- function ji(e) {
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: O
3056
- } = e, { t: T } = Y("ui"), F = yt(O, g), l = (w, D) => ({
3066
+ activeStep: D
3067
+ } = e, { t: T } = Y("ui"), E = yt(D, g), l = (w, O) => ({
3057
3068
  step: w,
3058
- active: w === F,
3059
- className: D
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
- qn,
3074
+ Kn,
3064
3075
  {
3065
3076
  value: i.insuranceType,
3066
- onChange: (w) => r(Cn(i, w))
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
- Kn,
3081
+ zn,
3071
3082
  {
3072
3083
  specialties: t.filtered.specialties,
3073
3084
  value: i.specialtyId,
3074
3085
  valueIds: i.specialtyIds,
3075
- onChange: (w) => r(An(i, w)),
3076
- onChangeIds: (w) => r(Tn(i, w)),
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(Gn, { customSlot: c }) : /* @__PURE__ */ n(
3081
- zn,
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(Dn(i, w)),
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(Un, { customSlot: p }) : null,
3103
+ t.gates.onboardingIncomplete ? /* @__PURE__ */ n(Gn, { customSlot: p }) : null,
3093
3104
  t.gates.operator ? /* @__PURE__ */ n(X, { ...l(4), children: /* @__PURE__ */ n(
3094
- jn,
3105
+ Un,
3095
3106
  {
3096
3107
  operators: t.filtered.operators,
3097
3108
  value: i.operatorId,
3098
3109
  valueIds: i.operatorIds,
3099
- onChange: (w) => r(Mn(i, w)),
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
- dn,
3122
+ ln,
3112
3123
  {
3113
3124
  nextAvailableDate: s.nextAvailableDate,
3114
3125
  onJump: () => r(Jt(i, s.nextAvailableDate)),
3115
3126
  locale: N
3116
3127
  }
3117
- ) : Vn({
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
- $n({
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
- cn,
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 De(e, t, s = {}) {
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: O,
3193
+ detailsProps: D,
3183
3194
  policy: T,
3184
- agentIdBase: F
3195
+ agentIdBase: E
3185
3196
  } = t;
3186
3197
  switch (e) {
3187
3198
  case 1:
3188
3199
  return /* @__PURE__ */ n(
3189
- qn,
3200
+ Kn,
3190
3201
  {
3191
3202
  value: a.insuranceType,
3192
- onChange: (l) => c(Cn(a, l))
3203
+ onChange: (l) => c(An(a, l))
3193
3204
  }
3194
3205
  );
3195
3206
  case 2:
3196
3207
  return /* @__PURE__ */ n(
3197
- Kn,
3208
+ zn,
3198
3209
  {
3199
3210
  specialties: i.filtered.specialties,
3200
3211
  value: a.specialtyId,
3201
3212
  valueIds: a.specialtyIds,
3202
- onChange: (l) => c(An(a, l)),
3203
- onChangeIds: (l) => c(Tn(a, l)),
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(Gn, { customSlot: u }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ n(Un, { customSlot: m }) : /* @__PURE__ */ n(
3209
- zn,
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(Dn(a, l)),
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
- jn,
3234
+ Un,
3224
3235
  {
3225
3236
  operators: i.filtered.operators,
3226
3237
  value: a.operatorId,
3227
3238
  valueIds: a.operatorIds,
3228
- onChange: (l) => c(Mn(a, l)),
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
- dn,
3246
+ ln,
3236
3247
  {
3237
3248
  nextAvailableDate: r.nextAvailableDate,
3238
3249
  onJump: () => c(Jt(a, r.nextAvailableDate)),
3239
3250
  locale: S
3240
3251
  }
3241
- ) : Vn({
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: F
3262
+ agentIdBase: E
3252
3263
  });
3253
3264
  case 6:
3254
- return $n({
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
- cn,
3275
+ dn,
3265
3276
  {
3266
- ...O,
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 Ui(e) {
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
- () => ln(t.visibleSteps, a),
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: Jn(o, s, t, u),
3305
- status: Gi(o, s, t),
3306
- content: /* @__PURE__ */ n(X, { step: o, active: o === v, children: De(o, e, { compactService: !0 }) })
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
- ds,
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 Gi(e, t, s) {
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 bn(e, t) {
3334
- return e !== 4 ? Ue(e, t) : t.operatorIds && t.operatorIds.length > 0 ? !0 : Bn(t) !== void 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 Jn(e, t, s, i) {
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 Hi(e) {
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 = Jn(
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
- ps,
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: De(g, e, { compactService: !0 })
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: De(5, e) }) : /* @__PURE__ */ k("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", 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: De(5, e)
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: De(6, e)
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: De(7, e) }) : null
3471
+ t.gates.details ? /* @__PURE__ */ n(X, { step: 7, active: m === 7, children: Oe(7, e) }) : null
3461
3472
  ] });
3462
3473
  }
3463
- function Ji(e) {
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: De(p, e, { compactService: !0 }) }, `fbf-${p}`)) }),
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: De(5, e) }) : null,
3476
- t.gates.slot && e.value.date && s === "month-calendar" ? /* @__PURE__ */ n(X, { step: 6, active: r === 6, children: De(6, e) }) : null
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: De(7, e) }) : null
3492
+ t.gates.details ? /* @__PURE__ */ n(X, { step: 7, active: r === 7, children: Oe(7, e) }) : null
3482
3493
  ] });
3483
3494
  }
3484
- function Wi(e) {
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
- () => ln(t.visibleSteps, a),
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(ls, { activeStep: v, steps: g }),
3494
- /* @__PURE__ */ n(X, { step: m, active: !0, children: De(m, e, { compactService: !0 }) }),
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 Yi = [], Zi = [];
3526
- function yn() {
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 Qi = kn(
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: O,
3566
+ showReturningPatientFlag: D,
3556
3567
  privacyPolicyUrl: T,
3557
- termsUrl: F,
3568
+ termsUrl: E,
3558
3569
  practiceConsent: l,
3559
3570
  paymentTermsUrl: w,
3560
- paymentState: D,
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: Ee,
3591
+ loadingDates: Fe,
3581
3592
  loadingSlots: re,
3582
- submitting: Fe,
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: Ft,
3602
+ className: Et,
3592
3603
  onFocus: dt,
3593
3604
  onBlur: lt,
3594
3605
  ...ut
3595
3606
  }, Be) => {
3596
- var _t, Tt, Ot;
3597
- const { t: le, i18n: Bt } = Y("ui"), ve = e ?? "inline-list", Je = Bt.language ?? "en", ke = p ?? Yi, We = m ?? Zi;
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 = si(M, {
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
- () => ni({
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 && !bn(P, M)
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 = E(Se), Ye = E(_.visibleSteps);
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) && !bn(ae, M)
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 = E(null), it = R(
3693
- () => ln(_.visibleSteps, ge),
3703
+ const ue = F(null), it = R(
3704
+ () => un(_.visibleSteps, ge),
3694
3705
  [_.visibleSteps, ge]
3695
- ), Ze = Wt(), [Yt, Le] = G(""), be = E(null), rt = E(null);
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(zi) ?? Q;
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: yn() ? "auto" : "smooth",
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 $ = Ai({
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: D,
3736
- submitting: Fe,
3746
+ paymentState: O,
3747
+ submitting: Ee,
3737
3748
  paymentTermsUrl: w,
3738
3749
  renderPayment: V,
3739
3750
  codeStep: fe
3740
- }), U = $.status, Lt = $.submit, ot = E($.reset);
3751
+ }), U = $.status, Lt = $.submit, ot = F($.reset);
3741
3752
  ot.current = $.reset;
3742
- const xt = bt(), It = E(null), Nt = E(null), wt = ((_t = $.state) == null ? void 0 : _t.status) === "failed", Qe = $.state && "phase" in $.state && $.state.phase === "completion";
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]), Yn(Be, () => ue.current, []);
3753
- const Ke = U === "success" ? 8 : U === "payment" || U === "code" ? 7 : _.currentStep, mt = E(null);
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: yn() ? "auto" : "smooth",
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 = E({ activeStep: oe, cascade: _, submitState: U });
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
- Zn(Ws, ft, st);
3787
- const Rt = qe ?? le("booking.regionLabel"), Oe = $.snapshot, Zt = U === "success" && Oe ? /* @__PURE__ */ n(
3788
- Ki,
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: Oe.payment,
3802
+ payment: De.payment,
3792
3803
  confirmationChannels: ee,
3793
3804
  snapshot: {
3794
- ...Oe.value,
3795
- slot: Oe.slot,
3796
- details: Oe.details,
3797
- serviceId: ((Tt = Oe.payment) == null ? void 0 : Tt.serviceId) ?? Oe.slot.serviceId ?? Oe.value.serviceId
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 && !Oe.payment && !$.codeVerified,
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
- Ni,
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: (Ot = $.snapshot) == null ? void 0 : Ot.details.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(xn, { variant: "pulse", size: "lg", "aria-hidden": "true" }),
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" ? Ui : ve === "calendar" ? Hi : ve === "flexible" ? Ji : ve === "progress" ? Wi : ji, L = {
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: O,
3929
+ showReturningPatientFlag: D,
3919
3930
  privacyPolicyUrl: T,
3920
- termsUrl: F,
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: Ee,
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: Fe || U === "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
- O,
3992
+ D,
3982
3993
  T,
3983
- F,
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
- Ee,
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
- Fe,
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: Ti({
4028
+ className: Di({
4018
4029
  variant: ve,
4019
4030
  surface: $e,
4020
- className: Ft
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
- Qi.displayName = "Booking";
4072
+ Xi.displayName = "Booking";
4062
4073
  export {
4063
- Qi as B,
4074
+ Xi as B,
4064
4075
  nn as C,
4065
4076
  _e as O,
4066
- Ws as b
4077
+ Ys as b
4067
4078
  };
4068
- //# sourceMappingURL=booking-By4I_1A-.js.map
4079
+ //# sourceMappingURL=booking-CxrB0e6d.js.map