@alfadocs/ui-kit-debug 1.25.1-calendar.7 → 1.26.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 (179) hide show
  1. package/dist/_chunks/{address-fields-jFfjxOQR.js → address-fields-CZ0pEdEI.js} +3 -3
  2. package/dist/_chunks/{address-fields-jFfjxOQR.js.map → address-fields-CZ0pEdEI.js.map} +1 -1
  3. package/dist/_chunks/{appointment-card-CvUFFEdS.js → appointment-card-Dzr3GeVz.js} +6 -8
  4. package/dist/_chunks/appointment-card-Dzr3GeVz.js.map +1 -0
  5. package/dist/_chunks/{appointment-timeline-DsMZY7U9.js → appointment-timeline-DhHwmHo1.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-DsMZY7U9.js.map → appointment-timeline-DhHwmHo1.js.map} +1 -1
  7. package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js → appointment-tray-4FUu_5NX.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js.map → appointment-tray-4FUu_5NX.js.map} +1 -1
  9. package/dist/_chunks/{booking-B8C7jMrn.js → booking-BtSOKjQu.js} +401 -384
  10. package/dist/_chunks/{booking-B8C7jMrn.js.map → booking-BtSOKjQu.js.map} +1 -1
  11. package/dist/_chunks/{calendar-CBqU-UIR.js → calendar-CI9MINcR.js} +2 -4
  12. package/dist/_chunks/calendar-CI9MINcR.js.map +1 -0
  13. package/dist/_chunks/calendar-workspace-CTXjHC4R.js +7506 -0
  14. package/dist/_chunks/calendar-workspace-CTXjHC4R.js.map +1 -0
  15. package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-CU303VjY.js} +25 -28
  16. package/dist/_chunks/color-picker-CU303VjY.js.map +1 -0
  17. package/dist/_chunks/{combobox-DnSdYssy.js → combobox-D7_NLE2Z.js} +215 -216
  18. package/dist/_chunks/combobox-D7_NLE2Z.js.map +1 -0
  19. package/dist/_chunks/{country-select-CfDNFG5c.js → country-select-DzbPFktV.js} +2 -2
  20. package/dist/_chunks/{country-select-CfDNFG5c.js.map → country-select-DzbPFktV.js.map} +1 -1
  21. package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-DA2vjqaM.js} +2 -2
  22. package/dist/_chunks/{face-scheme-l-CQyLs-.js.map → face-scheme-DA2vjqaM.js.map} +1 -1
  23. package/dist/_chunks/{notes-panel-D4S2VwDx.js → notes-panel-CTNpsByN.js} +2 -2
  24. package/dist/_chunks/{notes-panel-D4S2VwDx.js.map → notes-panel-CTNpsByN.js.map} +1 -1
  25. package/dist/_chunks/{patient-details-CdfursHt.js → patient-details-DYAmq76G.js} +3 -3
  26. package/dist/_chunks/{patient-details-CdfursHt.js.map → patient-details-DYAmq76G.js.map} +1 -1
  27. package/dist/_chunks/{province-select-BaUnkg4S.js → province-select-BBc7s7vR.js} +2 -2
  28. package/dist/_chunks/{province-select-BaUnkg4S.js.map → province-select-BBc7s7vR.js.map} +1 -1
  29. package/dist/_chunks/{rich-text-editor-VJATL1Tk.js → rich-text-editor-lSCiE0Zz.js} +2 -2
  30. package/dist/_chunks/{rich-text-editor-VJATL1Tk.js.map → rich-text-editor-lSCiE0Zz.js.map} +1 -1
  31. package/dist/_chunks/signature-status-chip-n57D-hhv.js +179 -0
  32. package/dist/_chunks/signature-status-chip-n57D-hhv.js.map +1 -0
  33. package/dist/agent-catalog.json +3 -6
  34. package/dist/agent-i18n/en.json +2 -2
  35. package/dist/components/address-fields/index.js +1 -1
  36. package/dist/components/appointment-card/appointment-card.d.ts.map +1 -1
  37. package/dist/components/appointment-card/index.js +2 -2
  38. package/dist/components/appointment-timeline/index.js +1 -1
  39. package/dist/components/booking/booking.d.ts.map +1 -1
  40. package/dist/components/booking/index.js +1 -1
  41. package/dist/components/calendar/calendar.d.ts.map +1 -1
  42. package/dist/components/calendar/index.js +1 -1
  43. package/dist/components/color-picker/color-utils.d.ts.map +1 -1
  44. package/dist/components/color-picker/index.js +1 -1
  45. package/dist/components/combobox/combobox.d.ts +0 -5
  46. package/dist/components/combobox/combobox.d.ts.map +1 -1
  47. package/dist/components/combobox/index.js +1 -1
  48. package/dist/components/country-select/index.js +1 -1
  49. package/dist/components/face-scheme/index.js +1 -1
  50. package/dist/components/notes-panel/index.js +1 -1
  51. package/dist/components/patient-details/index.js +1 -1
  52. package/dist/components/province-select/index.js +1 -1
  53. package/dist/components/rich-text-editor/index.js +1 -1
  54. package/dist/components/signature-status-chip/index.d.ts +2 -2
  55. package/dist/components/signature-status-chip/index.d.ts.map +1 -1
  56. package/dist/components/signature-status-chip/index.js +4 -3
  57. package/dist/components/signature-status-chip/signature-status-chip.d.ts +100 -1
  58. package/dist/components/signature-status-chip/signature-status-chip.d.ts.map +1 -1
  59. package/dist/i18n/locales/ar.d.ts +13 -0
  60. package/dist/i18n/locales/ar.d.ts.map +1 -1
  61. package/dist/i18n/locales/ar.js +17 -1
  62. package/dist/i18n/locales/ar.js.map +1 -1
  63. package/dist/i18n/locales/de.d.ts +13 -0
  64. package/dist/i18n/locales/de.d.ts.map +1 -1
  65. package/dist/i18n/locales/de.js +17 -1
  66. package/dist/i18n/locales/de.js.map +1 -1
  67. package/dist/i18n/locales/el.d.ts +13 -0
  68. package/dist/i18n/locales/el.d.ts.map +1 -1
  69. package/dist/i18n/locales/el.js +17 -1
  70. package/dist/i18n/locales/el.js.map +1 -1
  71. package/dist/i18n/locales/en.d.ts +13 -0
  72. package/dist/i18n/locales/en.d.ts.map +1 -1
  73. package/dist/i18n/locales/en.js +17 -1
  74. package/dist/i18n/locales/en.js.map +1 -1
  75. package/dist/i18n/locales/es.d.ts +13 -0
  76. package/dist/i18n/locales/es.d.ts.map +1 -1
  77. package/dist/i18n/locales/es.js +17 -1
  78. package/dist/i18n/locales/es.js.map +1 -1
  79. package/dist/i18n/locales/fr.d.ts +13 -0
  80. package/dist/i18n/locales/fr.d.ts.map +1 -1
  81. package/dist/i18n/locales/fr.js +17 -1
  82. package/dist/i18n/locales/fr.js.map +1 -1
  83. package/dist/i18n/locales/hi.d.ts +13 -0
  84. package/dist/i18n/locales/hi.d.ts.map +1 -1
  85. package/dist/i18n/locales/hi.js +13 -1
  86. package/dist/i18n/locales/hi.js.map +1 -1
  87. package/dist/i18n/locales/it.d.ts +13 -0
  88. package/dist/i18n/locales/it.d.ts.map +1 -1
  89. package/dist/i18n/locales/it.js +17 -1
  90. package/dist/i18n/locales/it.js.map +1 -1
  91. package/dist/i18n/locales/ja.d.ts +13 -0
  92. package/dist/i18n/locales/ja.d.ts.map +1 -1
  93. package/dist/i18n/locales/ja.js +17 -1
  94. package/dist/i18n/locales/ja.js.map +1 -1
  95. package/dist/i18n/locales/nl.d.ts +13 -0
  96. package/dist/i18n/locales/nl.d.ts.map +1 -1
  97. package/dist/i18n/locales/nl.js +17 -1
  98. package/dist/i18n/locales/nl.js.map +1 -1
  99. package/dist/i18n/locales/pl.d.ts +13 -0
  100. package/dist/i18n/locales/pl.d.ts.map +1 -1
  101. package/dist/i18n/locales/pl.js +17 -1
  102. package/dist/i18n/locales/pl.js.map +1 -1
  103. package/dist/i18n/locales/pt.d.ts +13 -0
  104. package/dist/i18n/locales/pt.d.ts.map +1 -1
  105. package/dist/i18n/locales/pt.js +17 -1
  106. package/dist/i18n/locales/pt.js.map +1 -1
  107. package/dist/i18n/locales/ro.d.ts +13 -0
  108. package/dist/i18n/locales/ro.d.ts.map +1 -1
  109. package/dist/i18n/locales/ro.js +17 -1
  110. package/dist/i18n/locales/ro.js.map +1 -1
  111. package/dist/i18n/locales/ru.d.ts +13 -0
  112. package/dist/i18n/locales/ru.d.ts.map +1 -1
  113. package/dist/i18n/locales/ru.js +17 -1
  114. package/dist/i18n/locales/ru.js.map +1 -1
  115. package/dist/i18n/locales/sq.d.ts +13 -0
  116. package/dist/i18n/locales/sq.d.ts.map +1 -1
  117. package/dist/i18n/locales/sq.js +17 -1
  118. package/dist/i18n/locales/sq.js.map +1 -1
  119. package/dist/i18n/locales/sv.d.ts +13 -0
  120. package/dist/i18n/locales/sv.d.ts.map +1 -1
  121. package/dist/i18n/locales/sv.js +17 -1
  122. package/dist/i18n/locales/sv.js.map +1 -1
  123. package/dist/i18n/locales/tr.d.ts +13 -0
  124. package/dist/i18n/locales/tr.d.ts.map +1 -1
  125. package/dist/i18n/locales/tr.js +17 -1
  126. package/dist/i18n/locales/tr.js.map +1 -1
  127. package/dist/i18n/locales/zh.d.ts +13 -0
  128. package/dist/i18n/locales/zh.d.ts.map +1 -1
  129. package/dist/i18n/locales/zh.js +13 -1
  130. package/dist/i18n/locales/zh.js.map +1 -1
  131. package/dist/index.js +281 -280
  132. package/dist/locales/ar.json +14 -1
  133. package/dist/locales/de.json +14 -1
  134. package/dist/locales/el.json +14 -1
  135. package/dist/locales/en.json +14 -1
  136. package/dist/locales/es.json +14 -1
  137. package/dist/locales/fr.json +14 -1
  138. package/dist/locales/hi.json +14 -1
  139. package/dist/locales/it.json +14 -1
  140. package/dist/locales/ja.json +14 -1
  141. package/dist/locales/nl.json +14 -1
  142. package/dist/locales/pl.json +14 -1
  143. package/dist/locales/pt.json +14 -1
  144. package/dist/locales/ro.json +14 -1
  145. package/dist/locales/ru.json +14 -1
  146. package/dist/locales/sq.json +14 -1
  147. package/dist/locales/sv.json +14 -1
  148. package/dist/locales/tr.json +14 -1
  149. package/dist/locales/zh.json +14 -1
  150. package/dist/patterns/calendar/calendar-workspace.d.ts +1 -21
  151. package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
  152. package/dist/patterns/calendar/calendar-workspace.model.d.ts +3 -1
  153. package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
  154. package/dist/patterns/calendar/calendar.data.d.ts +0 -17
  155. package/dist/patterns/calendar/calendar.data.d.ts.map +1 -1
  156. package/dist/patterns/calendar/calendar.journey.d.ts +1 -3
  157. package/dist/patterns/calendar/calendar.journey.d.ts.map +1 -1
  158. package/dist/patterns/calendar/calendar.model.d.ts +0 -9
  159. package/dist/patterns/calendar/calendar.model.d.ts.map +1 -1
  160. package/dist/patterns/calendar/calendar.sheets.d.ts +4 -12
  161. package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
  162. package/dist/patterns/calendar/calendar.surface.d.ts +1 -3
  163. package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
  164. package/dist/patterns/calendar/index.d.ts +2 -3
  165. package/dist/patterns/calendar/index.d.ts.map +1 -1
  166. package/dist/patterns/calendar/index.js +1 -1
  167. package/package.json +2 -3
  168. package/dist/_chunks/appointment-card-CvUFFEdS.js.map +0 -1
  169. package/dist/_chunks/calendar-CBqU-UIR.js.map +0 -1
  170. package/dist/_chunks/calendar-workspace-CDhW8tPy.js +0 -7881
  171. package/dist/_chunks/calendar-workspace-CDhW8tPy.js.map +0 -1
  172. package/dist/_chunks/color-picker-Bl5f0iK1.js.map +0 -1
  173. package/dist/_chunks/combobox-DnSdYssy.js.map +0 -1
  174. package/dist/_chunks/signature-status-chip-DqrPIJtH.js +0 -97
  175. package/dist/_chunks/signature-status-chip-DqrPIJtH.js.map +0 -1
  176. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -36
  177. package/dist/patterns/calendar/calendar-editor-hydration.d.ts.map +0 -1
  178. package/dist/patterns/calendar/calendar-patient-picker.d.ts +0 -11
  179. package/dist/patterns/calendar/calendar-patient-picker.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { jsxs as b, jsx as s, Fragment as ee } from "react/jsx-runtime";
2
- import { forwardRef as wt, useId as it, useState as H, useCallback as Z, useRef as Y, useEffect as q, useMemo as C, useImperativeHandle as es } from "react";
3
- import { c as Ge } from "./index-D2ZczOXr.js";
4
- import { useTranslation as P, Trans as ts } from "react-i18next";
2
+ import { forwardRef as wt, useId as rt, useState as U, useCallback as Z, useRef as W, useEffect as G, useMemo as w, useImperativeHandle as es } from "react";
3
+ import { c as He } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as L, Trans as ts } from "react-i18next";
5
5
  import { u as ss } from "./registry-DvAUVLHh.js";
6
- import { A as U } from "./alert-CiJT540z.js";
6
+ import { A as J } from "./alert-CiJT540z.js";
7
7
  import { B as pe } from "./button-nJaPh_HC.js";
8
- import { C as tt } from "./checkbox-BuZ1u__2.js";
8
+ import { C as st } from "./checkbox-BuZ1u__2.js";
9
9
  import { C as as } from "./checkbox-group-CfqMv57d.js";
10
10
  import { D as ns } from "./date-picker-B6NW_PS5.js";
11
11
  import { E as is } from "./email-input-Dpe63k0K.js";
@@ -16,9 +16,9 @@ import { T as Fe } from "./text-input-CUvCb6ST.js";
16
16
  import { S as ds } from "./spinner-hbwuKwMf.js";
17
17
  import { B as Ct } from "./badge-sTusUqZD.js";
18
18
  import { I as vt } from "./icon-button-DA2CAGHZ.js";
19
- import { S as He } from "./select-Bi8zril7.js";
20
- import { C as rt } from "./combobox-DnSdYssy.js";
21
- import { M as ot } from "./multi-select-DYOvx2SJ.js";
19
+ import { S as Ue } from "./select-Bi8zril7.js";
20
+ import { C as ot } from "./combobox-D7_NLE2Z.js";
21
+ import { M as dt } from "./multi-select-DYOvx2SJ.js";
22
22
  import { S as qe } from "./skeleton-CZbwyJAA.js";
23
23
  import { E as Mt } from "./empty-state-X0sVPfVo.js";
24
24
  import { S as ls } from "./stepper-accordion-DmVykr5F.js";
@@ -26,12 +26,12 @@ import { S as cs } from "./stepper-progress-Bv0njx4g.js";
26
26
  import { S as us } from "./slot-grid-BuZOKfcd.js";
27
27
  import { p as K } from "./parseISO-fOGpHKXm.js";
28
28
  import { C as ps } from "./chevron-down-DWE7GSq9.js";
29
- import { l as ye, f as je, b as bt } from "./format-4HNwNGrN.js";
30
- import { w as Dt, c as ke, a as st, i as ms, s as Me, l as fs, x as $e } from "./date-picker-variants-B9NLAfUK.js";
29
+ import { l as ke, f as je, b as bt } from "./format-4HNwNGrN.js";
30
+ import { w as Dt, c as Se, a as at, i as ms, s as De, l as fs, x as $e } from "./date-picker-variants-B9NLAfUK.js";
31
31
  import { s as gs } from "./subDays-HPvBuvq3.js";
32
32
  import { C as hs } from "./chevron-left-B8cOyH-V.js";
33
33
  import { C as vs } from "./chevron-right-I9AeSxH2.js";
34
- import { c as j } from "./createLucideIcon-DhHxpK9K.js";
34
+ import { c as q } from "./createLucideIcon-DhHxpK9K.js";
35
35
  import { M as bs, S as ys } from "./sun-Bj9Mr553.js";
36
36
  import { S as ks } from "./stethoscope-sZXGC43m.js";
37
37
  import { H as Ss } from "./heart-pulse-BCppJyN2.js";
@@ -53,7 +53,7 @@ const Cs = [
53
53
  key: "169zse"
54
54
  }
55
55
  ]
56
- ], Ms = j("activity", Cs);
56
+ ], Ms = q("activity", Cs);
57
57
  /**
58
58
  * @license lucide-react v1.22.0 - ISC
59
59
  *
@@ -71,7 +71,7 @@ const Ds = [
71
71
  }
72
72
  ],
73
73
  ["path", { d: "M9 12h.01", key: "157uk2" }]
74
- ], As = j("baby", Ds);
74
+ ], As = q("baby", Ds);
75
75
  /**
76
76
  * @license lucide-react v1.22.0 - ISC
77
77
  *
@@ -86,7 +86,7 @@ const Ts = [
86
86
  key: "w610uw"
87
87
  }
88
88
  ]
89
- ], _s = j("bone", Ts);
89
+ ], _s = q("bone", Ts);
90
90
  /**
91
91
  * @license lucide-react v1.22.0 - ISC
92
92
  *
@@ -102,14 +102,14 @@ const Os = [
102
102
  ["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
103
103
  ["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
104
104
  ["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
105
- ], Bs = j("brain", Os);
105
+ ], Bs = q("brain", Os);
106
106
  /**
107
107
  * @license lucide-react v1.22.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
111
  */
112
- const Ps = [
112
+ const Ls = [
113
113
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
114
114
  ["path", { d: "M16 2v4", key: "4m81vk" }],
115
115
  ["path", { d: "M3 10h18", key: "8toen8" }],
@@ -118,7 +118,7 @@ const Ps = [
118
118
  ["path", { d: "M13 18H7", key: "bb0bb7" }],
119
119
  ["path", { d: "M7 14h.01", key: "1qa3f1" }],
120
120
  ["path", { d: "M17 18h.01", key: "1bdyru" }]
121
- ], Ls = j("calendar-range", Ps);
121
+ ], Ps = q("calendar-range", Ls);
122
122
  /**
123
123
  * @license lucide-react v1.22.0 - ISC
124
124
  *
@@ -128,7 +128,7 @@ const Ps = [
128
128
  const Es = [
129
129
  ["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" }],
130
130
  ["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
131
- ], Rs = j("ear", Es);
131
+ ], Rs = q("ear", Es);
132
132
  /**
133
133
  * @license lucide-react v1.22.0 - ISC
134
134
  *
@@ -142,7 +142,7 @@ const Vs = [
142
142
  ["path", { d: "M9 14h2", key: "197e7h" }],
143
143
  ["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
144
144
  ["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
145
- ], Fs = j("microscope", Vs);
145
+ ], Fs = q("microscope", Vs);
146
146
  /**
147
147
  * @license lucide-react v1.22.0 - ISC
148
148
  *
@@ -155,7 +155,7 @@ const $s = [
155
155
  { 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" }
156
156
  ],
157
157
  ["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
158
- ], zs = j("pill", $s);
158
+ ], zs = q("pill", $s);
159
159
  /**
160
160
  * @license lucide-react v1.22.0 - ISC
161
161
  *
@@ -168,7 +168,7 @@ const Ks = [
168
168
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
169
169
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
170
170
  ["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
171
- ], js = j("scissors", Ks);
171
+ ], js = q("scissors", Ks);
172
172
  /**
173
173
  * @license lucide-react v1.22.0 - ISC
174
174
  *
@@ -180,7 +180,7 @@ const qs = [
180
180
  ["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
181
181
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
182
182
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
183
- ], Gs = j("smile", qs);
183
+ ], Gs = q("smile", qs);
184
184
  /**
185
185
  * @license lucide-react v1.22.0 - ISC
186
186
  *
@@ -196,7 +196,7 @@ const Hs = [
196
196
  ["path", { d: "M22 22H2", key: "19qnx5" }],
197
197
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
198
198
  ["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
199
- ], Us = j("sunset", Hs);
199
+ ], Us = q("sunset", Hs);
200
200
  /**
201
201
  * @license lucide-react v1.22.0 - ISC
202
202
  *
@@ -210,7 +210,7 @@ const Js = [
210
210
  ["path", { d: "m9 11 4 4", key: "rovt3i" }],
211
211
  ["path", { d: "m5 19-3 3", key: "59f2uf" }],
212
212
  ["path", { d: "m14 4 6 6", key: "yqp9t2" }]
213
- ], yt = j("syringe", Js);
213
+ ], yt = q("syringe", Js);
214
214
  function Ys(e, t, a) {
215
215
  return Dt(e, -1, a);
216
216
  }
@@ -286,11 +286,11 @@ const Ws = {
286
286
  description: "Sourced from the id prop."
287
287
  }
288
288
  }
289
- }, nt = [
289
+ }, it = [
290
290
  "email",
291
291
  "whatsapp",
292
292
  "sms"
293
- ], W = "all", Zs = "de";
293
+ ], j = "all", Zs = "de";
294
294
  function Xs(e) {
295
295
  return [...e.lockedOperatorId ? e.specialties.filter(
296
296
  (a) => {
@@ -342,15 +342,15 @@ function ea(e) {
342
342
  return [];
343
343
  }
344
344
  function ta(e, t) {
345
- const a = e.country === Zs, n = !a || e.value.insuranceType !== void 0, r = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && n, c = te(e.value).length > 0, f = !r || c, o = me(e.value).length > 0, l = !f || o, u = t.operators, k = !!e.allowOperatorSelection && l && o && !e.lockedOperatorId && u.length > 1, h = l && o, I = (!h || e.value.date !== void 0) && e.value.date !== void 0, w = (!I || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, x = o && u.length === 0;
345
+ const a = e.country === Zs, n = !a || e.value.insuranceType !== void 0, r = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && n, c = te(e.value).length > 0, f = !r || c, o = me(e.value).length > 0, l = !f || o, u = t.operators, S = !!e.allowOperatorSelection && l && o && !e.lockedOperatorId && u.length > 1, h = l && o, I = (!h || e.value.date !== void 0) && e.value.date !== void 0, C = (!I || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, x = o && u.length === 0;
346
346
  return {
347
347
  insurance: a,
348
348
  specialty: r,
349
349
  service: f,
350
- operator: k,
350
+ operator: S,
351
351
  date: h,
352
352
  slot: I,
353
- details: w,
353
+ details: C,
354
354
  onboardingIncomplete: x
355
355
  };
356
356
  }
@@ -444,7 +444,7 @@ function Ot(e, t) {
444
444
  // Default the operator to the "All operators" sentinel so a patient
445
445
  // who doesn't care about picking lands on a satisfied step 4 without
446
446
  // any further input.
447
- operatorId: t ? W : void 0,
447
+ operatorId: t ? j : void 0,
448
448
  operatorIds: void 0,
449
449
  date: void 0,
450
450
  slotKey: void 0,
@@ -457,14 +457,14 @@ function Bt(e, t) {
457
457
  ...e,
458
458
  serviceId: void 0,
459
459
  serviceIds: t,
460
- operatorId: a ? W : void 0,
460
+ operatorId: a ? j : void 0,
461
461
  operatorIds: void 0,
462
462
  date: void 0,
463
463
  slotKey: void 0,
464
464
  details: void 0
465
465
  };
466
466
  }
467
- function Pt(e, t) {
467
+ function Lt(e, t) {
468
468
  return {
469
469
  ...e,
470
470
  operatorId: t,
@@ -474,7 +474,7 @@ function Pt(e, t) {
474
474
  details: void 0
475
475
  };
476
476
  }
477
- function Lt(e, t) {
477
+ function Pt(e, t) {
478
478
  return {
479
479
  ...e,
480
480
  operatorId: void 0,
@@ -490,10 +490,10 @@ function te(e) {
490
490
  function me(e) {
491
491
  return e.serviceIds && e.serviceIds.length > 0 ? e.serviceIds : e.serviceId ? [e.serviceId] : [];
492
492
  }
493
- function dt(e) {
493
+ function Ge(e) {
494
494
  return e.operatorIds && e.operatorIds.length > 0 ? e.operatorIds : e.operatorId ? [e.operatorId] : [];
495
495
  }
496
- function Ue(e, t) {
496
+ function Je(e, t) {
497
497
  return {
498
498
  ...e,
499
499
  date: t,
@@ -514,12 +514,12 @@ function na(e, t) {
514
514
  const i = te(a), r = i.length > 0 ? t.services.filter(
515
515
  (c) => c.specialtyId && i.includes(c.specialtyId)
516
516
  ) : t.services;
517
- r.length === 1 && a.serviceId === void 0 && a.serviceIds === void 0 && (a = { ...a, serviceId: r[0].id }, a.operatorId === void 0 && a.operatorIds === void 0 && (a = { ...a, operatorId: W }));
517
+ r.length === 1 && a.serviceId === void 0 && a.serviceIds === void 0 && (a = { ...a, serviceId: r[0].id }, a.operatorId === void 0 && a.operatorIds === void 0 && (a = { ...a, operatorId: j }));
518
518
  }
519
519
  return a;
520
520
  }
521
521
  function kt(e) {
522
- if (e.operatorId && e.operatorId !== W)
522
+ if (e.operatorId && e.operatorId !== j)
523
523
  return e.operatorId;
524
524
  }
525
525
  function ia(e) {
@@ -529,12 +529,12 @@ function ia(e) {
529
529
  }
530
530
  function Rt(e) {
531
531
  const t = e && e.length > 0 ? e : ["email"], a = new Set(t);
532
- return nt.filter((n) => a.has(n));
532
+ return it.filter((n) => a.has(n));
533
533
  }
534
534
  function ra(e, t, a) {
535
535
  const n = Rt(e), i = new Set(n);
536
536
  if (a)
537
- return nt.filter(
537
+ return it.filter(
538
538
  (o) => a.includes(o) && i.has(o)
539
539
  );
540
540
  const r = [];
@@ -542,7 +542,7 @@ function ra(e, t, a) {
542
542
  const c = ia(t), d = i.has("whatsapp");
543
543
  d && c && r.push("whatsapp"), !d && i.has("sms") && r.push("sms");
544
544
  const f = new Set(r);
545
- return nt.filter((o) => f.has(o));
545
+ return it.filter((o) => f.has(o));
546
546
  }
547
547
  const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 300, ze = { state: "idle" }, lt = wt(
548
548
  ({
@@ -558,60 +558,60 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
558
558
  privacyPolicyUrl: o,
559
559
  termsUrl: l,
560
560
  validateCodiceFiscale: u,
561
- validateInsuranceNumber: k,
561
+ validateInsuranceNumber: S,
562
562
  submitting: h = !1,
563
563
  summarySlot: y,
564
564
  defaultPhoneCountry: I,
565
565
  confirmationChannels: N,
566
- defaultConfirmationChannels: w,
566
+ defaultConfirmationChannels: C,
567
567
  submitError: x
568
- }, S) => {
569
- var _e, Oe;
570
- const { t: p } = P(), _ = it(), [D, m] = H(ze), [g, A] = H(ze), [T, V] = H({}), F = Z(
568
+ }, k) => {
569
+ var Oe, Be;
570
+ const { t: p } = L(), T = rt(), [D, m] = U(ze), [g, A] = U(ze), [_, V] = U({}), F = Z(
571
571
  (v) => V((O) => ({ ...O, [v]: !0 })),
572
572
  []
573
- ), R = Y(null), $ = Y(
573
+ ), R = W(null), $ = W(
574
574
  null
575
575
  );
576
- q(
576
+ G(
577
577
  () => () => {
578
578
  R.current && clearTimeout(R.current), $.current && clearTimeout($.current);
579
579
  },
580
580
  []
581
581
  );
582
- const L = Z(
582
+ const P = Z(
583
583
  (v) => t({ ...e, ...v }),
584
584
  [e, t]
585
- ), oe = C(
585
+ ), oe = w(
586
586
  () => Rt(N),
587
587
  [N]
588
- ), X = oe.length >= 2, xe = Y(!1);
589
- q(() => {
588
+ ), X = oe.length >= 2, Ie = W(!1);
589
+ G(() => {
590
590
  if (!X) {
591
- e.confirmationChannels !== void 0 && L({ confirmationChannels: void 0 });
591
+ e.confirmationChannels !== void 0 && P({ confirmationChannels: void 0 });
592
592
  return;
593
593
  }
594
594
  if (e.confirmationChannels !== void 0) {
595
- xe.current = !0;
595
+ Ie.current = !0;
596
596
  return;
597
597
  }
598
598
  const v = ra(
599
599
  oe,
600
600
  e.mobilePhone,
601
- w
601
+ C
602
602
  );
603
- xe.current = !0, L({ confirmationChannels: v });
603
+ Ie.current = !0, P({ confirmationChannels: v });
604
604
  }, [
605
605
  X,
606
606
  oe,
607
607
  e.mobilePhone,
608
- w
608
+ C
609
609
  ]);
610
- const de = C(
610
+ const de = w(
611
611
  () => e.confirmationChannels ?? [],
612
612
  [e.confirmationChannels]
613
- ), De = X && de.length === 0;
614
- q(() => {
613
+ ), Ae = X && de.length === 0;
614
+ G(() => {
615
615
  const v = e.codiceFiscale;
616
616
  if (!n || !u || !v) {
617
617
  m(ze);
@@ -638,14 +638,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
638
638
  }, xt);
639
639
  }, [n, u, e.codiceFiscale, p]);
640
640
  const se = r && c === "public";
641
- q(() => {
641
+ G(() => {
642
642
  const v = e.insuranceNumber;
643
- if (!se || !k || !v) {
643
+ if (!se || !S || !v) {
644
644
  A(ze);
645
645
  return;
646
646
  }
647
647
  A({ state: "pending" }), $.current && clearTimeout($.current), $.current = setTimeout(() => {
648
- k(v).then(
648
+ S(v).then(
649
649
  (O) => A(
650
650
  O.valid ? { state: "valid" } : { state: "invalid", hint: O.hint }
651
651
  )
@@ -656,28 +656,28 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
656
656
  })
657
657
  );
658
658
  }, xt);
659
- }, [se, k, e.insuranceNumber, p]);
660
- const fe = C(
659
+ }, [se, S, e.insuranceNumber, p]);
660
+ const fe = w(
661
661
  () => !!(e.email && da.test(e.email)),
662
662
  [e.email]
663
- ), Ie = C(
663
+ ), Ne = w(
664
664
  () => !!(e.mobilePhone && e.mobilePhone.length >= 6),
665
665
  [e.mobilePhone]
666
- ), Ae = C(() => {
666
+ ), Te = w(() => {
667
667
  var v, O;
668
- return !(!((v = e.firstName) != null && v.trim()) || !((O = e.lastName) != null && O.trim()) || !fe || !Ie || n && D.state !== "valid" || i && !e.dateOfBirth || se && g.state !== "valid");
668
+ return !(!((v = e.firstName) != null && v.trim()) || !((O = e.lastName) != null && O.trim()) || !fe || !Ne || n && D.state !== "valid" || i && !e.dateOfBirth || se && g.state !== "valid");
669
669
  }, [
670
670
  e.firstName,
671
671
  e.lastName,
672
672
  fe,
673
- Ie,
673
+ Ne,
674
674
  n,
675
675
  D.state,
676
676
  i,
677
677
  e.dateOfBirth,
678
678
  se,
679
679
  g.state
680
- ]), Te = !!(e.privacyConsent && e.termsConsent), Ye = !X || de.length > 0, ae = Ae && Te && Ye && !h, We = (v) => {
680
+ ]), _e = !!(e.privacyConsent && e.termsConsent), We = !X || de.length > 0, ae = Te && _e && We && !h, Ze = (v) => {
681
681
  if (v.preventDefault(), V({
682
682
  firstName: !0,
683
683
  lastName: !0,
@@ -736,10 +736,10 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
736
736
  return /* @__PURE__ */ b(
737
737
  "form",
738
738
  {
739
- ref: S,
740
- id: _,
739
+ ref: k,
740
+ id: T,
741
741
  noValidate: !0,
742
- onSubmit: We,
742
+ onSubmit: Ze,
743
743
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
744
744
  children: [
745
745
  y,
@@ -749,13 +749,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
749
749
  {
750
750
  label: p("booking.details.firstName.label"),
751
751
  required: !0,
752
- error: T.firstName && !((_e = e.firstName) != null && _e.trim()) ? p("booking.details.firstName.required") : void 0,
752
+ error: _.firstName && !((Oe = e.firstName) != null && Oe.trim()) ? p("booking.details.firstName.required") : void 0,
753
753
  children: /* @__PURE__ */ s(
754
754
  Fe,
755
755
  {
756
756
  autoComplete: "given-name",
757
757
  value: e.firstName ?? "",
758
- onChange: (v) => L({ firstName: v.target.value }),
758
+ onChange: (v) => P({ firstName: v.target.value }),
759
759
  onBlur: () => F("firstName")
760
760
  }
761
761
  )
@@ -766,13 +766,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
766
766
  {
767
767
  label: p("booking.details.lastName.label"),
768
768
  required: !0,
769
- error: T.lastName && !((Oe = e.lastName) != null && Oe.trim()) ? p("booking.details.lastName.required") : void 0,
769
+ error: _.lastName && !((Be = e.lastName) != null && Be.trim()) ? p("booking.details.lastName.required") : void 0,
770
770
  children: /* @__PURE__ */ s(
771
771
  Fe,
772
772
  {
773
773
  autoComplete: "family-name",
774
774
  value: e.lastName ?? "",
775
- onChange: (v) => L({ lastName: v.target.value }),
775
+ onChange: (v) => P({ lastName: v.target.value }),
776
776
  onBlur: () => F("lastName")
777
777
  }
778
778
  )
@@ -785,12 +785,12 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
785
785
  {
786
786
  label: p("booking.details.email.label"),
787
787
  required: !0,
788
- error: T.email && !fe ? p("booking.details.email.invalid") : void 0,
788
+ error: _.email && !fe ? p("booking.details.email.invalid") : void 0,
789
789
  children: /* @__PURE__ */ s(
790
790
  is,
791
791
  {
792
792
  value: e.email ?? "",
793
- onChange: (v) => L({ email: v.target.value }),
793
+ onChange: (v) => P({ email: v.target.value }),
794
794
  onBlur: () => F("email")
795
795
  }
796
796
  )
@@ -801,14 +801,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
801
801
  {
802
802
  label: p("booking.details.mobilePhone.label"),
803
803
  required: !0,
804
- error: T.mobilePhone && !Ie ? p("booking.details.mobilePhone.invalid") : void 0,
804
+ error: _.mobilePhone && !Ne ? p("booking.details.mobilePhone.invalid") : void 0,
805
805
  children: /* @__PURE__ */ s(
806
806
  rs,
807
807
  {
808
808
  value: e.mobilePhone ?? "",
809
809
  defaultCountry: I == null ? void 0 : I.toUpperCase(),
810
810
  onChange: (v) => {
811
- L({ mobilePhone: v }), F("mobilePhone");
811
+ P({ mobilePhone: v }), F("mobilePhone");
812
812
  }
813
813
  }
814
814
  )
@@ -822,13 +822,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
822
822
  label: p("booking.details.codiceFiscale.label"),
823
823
  required: !0,
824
824
  description: D.state === "pending" ? p("booking.details.codiceFiscale.checking") : p("booking.details.codiceFiscale.helper"),
825
- error: T.codiceFiscale && D.state === "invalid" ? D.hint ?? p("booking.details.codiceFiscale.invalid") : void 0,
825
+ error: _.codiceFiscale && D.state === "invalid" ? D.hint ?? p("booking.details.codiceFiscale.invalid") : void 0,
826
826
  children: /* @__PURE__ */ s(
827
827
  Fe,
828
828
  {
829
829
  value: e.codiceFiscale ?? "",
830
830
  maxLength: 16,
831
- onChange: (v) => L({
831
+ onChange: (v) => P({
832
832
  codiceFiscale: v.target.value.slice(0, 16).toUpperCase()
833
833
  }),
834
834
  onBlur: () => F("codiceFiscale")
@@ -841,13 +841,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
841
841
  {
842
842
  label: p("booking.details.dateOfBirth.label"),
843
843
  required: !0,
844
- error: T.dateOfBirth && !e.dateOfBirth ? p("booking.details.dateOfBirth.required") : void 0,
844
+ error: _.dateOfBirth && !e.dateOfBirth ? p("booking.details.dateOfBirth.required") : void 0,
845
845
  children: /* @__PURE__ */ s(
846
846
  ns,
847
847
  {
848
848
  value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
849
849
  onChange: (v) => {
850
- L({
850
+ P({
851
851
  dateOfBirth: v ? v.toISOString().slice(0, 10) : void 0
852
852
  }), F("dateOfBirth");
853
853
  }
@@ -862,12 +862,12 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
862
862
  label: p("booking.details.insuranceNumber.label"),
863
863
  required: !0,
864
864
  description: g.state === "pending" ? p("booking.details.insuranceNumber.checking") : void 0,
865
- error: T.insuranceNumber && g.state === "invalid" ? g.hint ?? p("booking.details.insuranceNumber.invalid") : void 0,
865
+ error: _.insuranceNumber && g.state === "invalid" ? g.hint ?? p("booking.details.insuranceNumber.invalid") : void 0,
866
866
  children: /* @__PURE__ */ s(
867
867
  Fe,
868
868
  {
869
869
  value: e.insuranceNumber ?? "",
870
- onChange: (v) => L({ insuranceNumber: v.target.value }),
870
+ onChange: (v) => P({ insuranceNumber: v.target.value }),
871
871
  onBlur: () => F("insuranceNumber")
872
872
  }
873
873
  )
@@ -886,25 +886,25 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
886
886
  value: e.note ?? "",
887
887
  maxLength: St,
888
888
  rows: 3,
889
- onChange: (v) => L({ note: v.target.value })
889
+ onChange: (v) => P({ note: v.target.value })
890
890
  }
891
891
  )
892
892
  }
893
893
  ) : null,
894
894
  f ? /* @__PURE__ */ s(
895
- tt,
895
+ st,
896
896
  {
897
897
  checked: !!e.returningPatient,
898
- onCheckedChange: (v) => L({ returningPatient: v === !0 }),
898
+ onCheckedChange: (v) => P({ returningPatient: v === !0 }),
899
899
  label: p("booking.details.returningPatient.label")
900
900
  }
901
901
  ) : null,
902
902
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
903
903
  /* @__PURE__ */ s(
904
- tt,
904
+ st,
905
905
  {
906
906
  checked: !!e.privacyConsent,
907
- onCheckedChange: (v) => L({ privacyConsent: v === !0 }),
907
+ onCheckedChange: (v) => P({ privacyConsent: v === !0 }),
908
908
  label: /* @__PURE__ */ b(ee, { children: [
909
909
  ge(
910
910
  "booking.details.consent.privacy.label",
@@ -922,10 +922,10 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
922
922
  }
923
923
  ),
924
924
  /* @__PURE__ */ s(
925
- tt,
925
+ st,
926
926
  {
927
927
  checked: !!e.termsConsent,
928
- onCheckedChange: (v) => L({ termsConsent: v === !0 }),
928
+ onCheckedChange: (v) => P({ termsConsent: v === !0 }),
929
929
  label: /* @__PURE__ */ b(ee, { children: [
930
930
  ge(
931
931
  "booking.details.consent.terms.label",
@@ -954,7 +954,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
954
954
  label: p("booking.confirmation.heading"),
955
955
  helperText: p("booking.confirmation.helper"),
956
956
  value: de,
957
- onChange: (v) => L({
957
+ onChange: (v) => P({
958
958
  confirmationChannels: v
959
959
  }),
960
960
  orientation: "vertical",
@@ -962,12 +962,12 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
962
962
  value: v,
963
963
  label: p(`booking.confirmation.channel.${v}`)
964
964
  })),
965
- error: De ? p("booking.confirmation.atLeastOne") : void 0
965
+ error: Ae ? p("booking.confirmation.atLeastOne") : void 0
966
966
  }
967
967
  )
968
968
  }
969
969
  ) : null,
970
- x ? /* @__PURE__ */ s(U, { variant: "error", children: /* @__PURE__ */ s(U.Description, { children: x }) }) : null,
970
+ x ? /* @__PURE__ */ s(J, { variant: "error", children: /* @__PURE__ */ s(J.Description, { children: x }) }) : null,
971
971
  /* @__PURE__ */ s(
972
972
  pe,
973
973
  {
@@ -985,7 +985,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
985
985
  }
986
986
  );
987
987
  lt.displayName = "BookingDetailsForm";
988
- const la = Ge(
988
+ const la = He(
989
989
  "ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
990
990
  {
991
991
  variants: {
@@ -1060,7 +1060,7 @@ const ma = [
1060
1060
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
1061
1061
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1062
1062
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
1063
- ].join(" "), fa = Ge(ma, {
1063
+ ].join(" "), fa = He(ma, {
1064
1064
  variants: {
1065
1065
  state: {
1066
1066
  available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
@@ -1078,13 +1078,13 @@ function ga({
1078
1078
  locale: n,
1079
1079
  loading: i
1080
1080
  }) {
1081
- const { t: r } = P(), c = C(() => t ? Me(K(t)) : e.length > 0 ? Me(K(e[0])) : Me(/* @__PURE__ */ new Date()), [t, e]), [d, f] = H(c), [o, l] = H(null), u = C(() => {
1082
- const x = Me(d), S = fs(d), p = x.getDay(), _ = S.getDate(), D = [];
1081
+ const { t: r } = L(), c = w(() => t ? De(K(t)) : e.length > 0 ? De(K(e[0])) : De(/* @__PURE__ */ new Date()), [t, e]), [d, f] = U(c), [o, l] = U(null), u = w(() => {
1082
+ const x = De(d), k = fs(d), p = x.getDay(), T = k.getDate(), D = [];
1083
1083
  for (let m = p; m > 0; m -= 1) {
1084
1084
  const g = new Date(x);
1085
1085
  g.setDate(x.getDate() - m), D.push(g);
1086
1086
  }
1087
- for (let m = 0; m < _; m += 1) {
1087
+ for (let m = 0; m < T; m += 1) {
1088
1088
  const g = new Date(x);
1089
1089
  g.setDate(x.getDate() + m), D.push(g);
1090
1090
  }
@@ -1093,7 +1093,7 @@ function ga({
1093
1093
  g.setDate(m.getDate() + 1), D.push(g);
1094
1094
  }
1095
1095
  return D;
1096
- }, [d]), k = C(() => {
1096
+ }, [d]), S = w(() => {
1097
1097
  try {
1098
1098
  return new Intl.DateTimeFormat(n, {
1099
1099
  month: "long",
@@ -1102,58 +1102,58 @@ function ga({
1102
1102
  } catch {
1103
1103
  return je(d, "MMMM yyyy");
1104
1104
  }
1105
- }, [d, n]), h = C(() => {
1105
+ }, [d, n]), h = w(() => {
1106
1106
  const x = new Date(2024, 0, 7);
1107
- return Array.from({ length: 7 }, (S, p) => {
1108
- const _ = new Date(x);
1109
- _.setDate(x.getDate() + p);
1107
+ return Array.from({ length: 7 }, (k, p) => {
1108
+ const T = new Date(x);
1109
+ T.setDate(x.getDate() + p);
1110
1110
  try {
1111
- return new Intl.DateTimeFormat(n, { weekday: "short" }).format(_);
1111
+ return new Intl.DateTimeFormat(n, { weekday: "short" }).format(T);
1112
1112
  } catch {
1113
- return je(_, "EEE");
1113
+ return je(T, "EEE");
1114
1114
  }
1115
1115
  });
1116
- }, [n]), y = C(() => new Set(e), [e]), I = Z(
1116
+ }, [n]), y = w(() => new Set(e), [e]), I = Z(
1117
1117
  (x) => y.has(ce(x)),
1118
1118
  [y]
1119
- ), N = C(() => {
1119
+ ), N = w(() => {
1120
1120
  if (o) return o;
1121
1121
  if (t) return K(t);
1122
1122
  const x = u.find(
1123
- (S) => $e(S, d) && I(S)
1123
+ (k) => $e(k, d) && I(k)
1124
1124
  );
1125
- return x || (u.find((S) => $e(S, d)) ?? null);
1126
- }, [o, t, u, d, I]), w = Z(
1127
- (x, S) => {
1125
+ return x || (u.find((k) => $e(k, d)) ?? null);
1126
+ }, [o, t, u, d, I]), C = Z(
1127
+ (x, k) => {
1128
1128
  let p = null;
1129
1129
  switch (x.key) {
1130
1130
  case "ArrowLeft":
1131
- p = new Date(S), p.setDate(S.getDate() - 1);
1131
+ p = new Date(k), p.setDate(k.getDate() - 1);
1132
1132
  break;
1133
1133
  case "ArrowRight":
1134
- p = new Date(S), p.setDate(S.getDate() + 1);
1134
+ p = new Date(k), p.setDate(k.getDate() + 1);
1135
1135
  break;
1136
1136
  case "ArrowUp":
1137
- p = new Date(S), p.setDate(S.getDate() - 7);
1137
+ p = new Date(k), p.setDate(k.getDate() - 7);
1138
1138
  break;
1139
1139
  case "ArrowDown":
1140
- p = new Date(S), p.setDate(S.getDate() + 7);
1140
+ p = new Date(k), p.setDate(k.getDate() + 7);
1141
1141
  break;
1142
1142
  case "Home":
1143
- p = new Date(S), p.setDate(S.getDate() - S.getDay());
1143
+ p = new Date(k), p.setDate(k.getDate() - k.getDay());
1144
1144
  break;
1145
1145
  case "End":
1146
- p = new Date(S), p.setDate(S.getDate() + (6 - S.getDay()));
1146
+ p = new Date(k), p.setDate(k.getDate() + (6 - k.getDay()));
1147
1147
  break;
1148
1148
  case "Enter":
1149
1149
  case " ": {
1150
- x.preventDefault(), I(S) && a(ce(S));
1150
+ x.preventDefault(), I(k) && a(ce(k));
1151
1151
  return;
1152
1152
  }
1153
1153
  default:
1154
1154
  return;
1155
1155
  }
1156
- p && (x.preventDefault(), $e(p, d) || f(Me(p)), l(p));
1156
+ p && (x.preventDefault(), $e(p, d) || f(De(p)), l(p));
1157
1157
  },
1158
1158
  [I, a, d]
1159
1159
  );
@@ -1166,7 +1166,7 @@ function ga({
1166
1166
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1167
1167
  children: [
1168
1168
  /* @__PURE__ */ s(qe, { variant: "text", width: "40%" }),
1169
- /* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (x, S) => /* @__PURE__ */ s(qe, { variant: "rounded", height: "2.5rem" }, `mg-skel-${S}`)) })
1169
+ /* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (x, k) => /* @__PURE__ */ s(qe, { variant: "rounded", height: "2.5rem" }, `mg-skel-${k}`)) })
1170
1170
  ]
1171
1171
  }
1172
1172
  ) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -1189,7 +1189,7 @@ function ga({
1189
1189
  {
1190
1190
  className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
1191
1191
  "aria-live": "polite",
1192
- children: k
1192
+ children: S
1193
1193
  }
1194
1194
  ),
1195
1195
  /* @__PURE__ */ s(
@@ -1218,24 +1218,24 @@ function ga({
1218
1218
  {
1219
1219
  role: "row",
1220
1220
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
1221
- children: h.map((x, S) => /* @__PURE__ */ s(
1221
+ children: h.map((x, k) => /* @__PURE__ */ s(
1222
1222
  "div",
1223
1223
  {
1224
1224
  role: "columnheader",
1225
1225
  className: "type-meta ds:text-center ds:text-[var(--muted-foreground)] ds:font-[var(--font-weight-medium)]",
1226
1226
  children: x
1227
1227
  },
1228
- `wd-${S}`
1228
+ `wd-${k}`
1229
1229
  ))
1230
1230
  }
1231
1231
  ),
1232
- Array.from({ length: 6 }, (x, S) => /* @__PURE__ */ s(
1232
+ Array.from({ length: 6 }, (x, k) => /* @__PURE__ */ s(
1233
1233
  "div",
1234
1234
  {
1235
1235
  role: "row",
1236
1236
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
1237
- children: u.slice(S * 7, S * 7 + 7).map((p, _) => {
1238
- const D = S * 7 + _, m = $e(p, d), g = m && I(p), A = t ? bt(p, K(t)) : !1, T = m ? A ? "selected" : g ? "available" : "unavailable" : "outside", V = N ? bt(N, p) : !1, F = (() => {
1237
+ children: u.slice(k * 7, k * 7 + 7).map((p, T) => {
1238
+ const D = k * 7 + T, m = $e(p, d), g = m && I(p), A = t ? bt(p, K(t)) : !1, _ = m ? A ? "selected" : g ? "available" : "unavailable" : "outside", V = N ? bt(N, p) : !1, F = (() => {
1239
1239
  try {
1240
1240
  return new Intl.DateTimeFormat(n, {
1241
1241
  dateStyle: "full"
@@ -1257,22 +1257,22 @@ function ga({
1257
1257
  onClick: () => {
1258
1258
  g && a(ce(p));
1259
1259
  },
1260
- onKeyDown: (R) => w(R, p),
1261
- className: fa({ state: T }),
1260
+ onKeyDown: (R) => C(R, p),
1261
+ className: fa({ state: _ }),
1262
1262
  children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children: p.getDate() })
1263
1263
  },
1264
1264
  `mg-cell-${D}`
1265
1265
  );
1266
1266
  })
1267
1267
  },
1268
- `mg-row-${S}`
1268
+ `mg-row-${k}`
1269
1269
  ))
1270
1270
  ]
1271
1271
  }
1272
1272
  )
1273
1273
  ] });
1274
1274
  }
1275
- const ha = Ge(
1275
+ const ha = He(
1276
1276
  [
1277
1277
  "ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
1278
1278
  "ds:min-h-[var(--min-target-size)]",
@@ -1303,17 +1303,17 @@ function va({
1303
1303
  selectedServiceId: t,
1304
1304
  onSelect: a
1305
1305
  }) {
1306
- const { t: n } = P(), i = it(), [r, c] = H(() => {
1306
+ const { t: n } = L(), i = rt(), [r, c] = U(() => {
1307
1307
  if (t) {
1308
1308
  const l = e.findIndex((u) => u.id === t);
1309
1309
  if (l >= 0) return l;
1310
1310
  }
1311
1311
  return 0;
1312
- }), d = Y(/* @__PURE__ */ new Map()), f = Z((l) => {
1312
+ }), d = W(/* @__PURE__ */ new Map()), f = Z((l) => {
1313
1313
  var u;
1314
1314
  (u = d.current.get(l)) == null || u.focus();
1315
1315
  }, []), o = Z(
1316
- (l, u, k) => {
1316
+ (l, u, S) => {
1317
1317
  const h = e.length;
1318
1318
  if (h !== 0)
1319
1319
  switch (l.key) {
@@ -1343,7 +1343,7 @@ function va({
1343
1343
  }
1344
1344
  case "Enter":
1345
1345
  case " ": {
1346
- l.preventDefault(), a(k);
1346
+ l.preventDefault(), a(S);
1347
1347
  break;
1348
1348
  }
1349
1349
  }
@@ -1358,7 +1358,7 @@ function va({
1358
1358
  id: i,
1359
1359
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1360
1360
  children: e.map((l, u) => {
1361
- const k = t === l.id, h = r === u, y = Vt(l), I = y ? n("booking.serviceCardLabelPrice", {
1361
+ const S = t === l.id, h = r === u, y = Vt(l), I = y ? n("booking.serviceCardLabelPrice", {
1362
1362
  label: l.label,
1363
1363
  price: y
1364
1364
  }) : n("booking.serviceCardLabel", {
@@ -1368,19 +1368,19 @@ function va({
1368
1368
  return /* @__PURE__ */ b(
1369
1369
  "button",
1370
1370
  {
1371
- ref: (w) => {
1372
- w ? d.current.set(u, w) : d.current.delete(u);
1371
+ ref: (C) => {
1372
+ C ? d.current.set(u, C) : d.current.delete(u);
1373
1373
  },
1374
1374
  type: "button",
1375
1375
  role: "radio",
1376
- "aria-checked": k,
1376
+ "aria-checked": S,
1377
1377
  "aria-label": I,
1378
1378
  tabIndex: h ? 0 : -1,
1379
1379
  onClick: () => a(l.id),
1380
1380
  onFocus: () => c(u),
1381
- onKeyDown: (w) => o(w, u, l.id),
1381
+ onKeyDown: (C) => o(C, u, l.id),
1382
1382
  className: ha({
1383
- state: k ? "selected" : "idle"
1383
+ state: S ? "selected" : "idle"
1384
1384
  }),
1385
1385
  children: [
1386
1386
  /* @__PURE__ */ s(
@@ -1413,7 +1413,7 @@ function va({
1413
1413
  }
1414
1414
  );
1415
1415
  }
1416
- const ba = Ge(
1416
+ const ba = He(
1417
1417
  [
1418
1418
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
1419
1419
  "ds:min-h-[var(--min-target-size)]",
@@ -1456,7 +1456,7 @@ function Sa({
1456
1456
  loading: i,
1457
1457
  locale: r
1458
1458
  }) {
1459
- const { t: c } = P(), d = C(() => {
1459
+ const { t: c } = L(), d = w(() => {
1460
1460
  try {
1461
1461
  return new Intl.DateTimeFormat(r, {
1462
1462
  weekday: "long",
@@ -1466,14 +1466,14 @@ function Sa({
1466
1466
  } catch {
1467
1467
  return e;
1468
1468
  }
1469
- }, [e, r]), f = C(() => {
1469
+ }, [e, r]), f = w(() => {
1470
1470
  const u = {
1471
1471
  morning: [],
1472
1472
  afternoon: [],
1473
1473
  evening: []
1474
1474
  };
1475
- for (const k of t)
1476
- u[ya(k.time)].push(k);
1475
+ for (const S of t)
1476
+ u[ya(S.time)].push(S);
1477
1477
  return u;
1478
1478
  }, [t]), o = t.filter((u) => u.available).length, l = ["morning", "afternoon", "evening"];
1479
1479
  return i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -1482,7 +1482,7 @@ function Sa({
1482
1482
  "div",
1483
1483
  {
1484
1484
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
1485
- children: [0, 1, 2].map((k) => /* @__PURE__ */ s(qe, { variant: "rounded", height: "44px" }, k))
1485
+ children: [0, 1, 2].map((S) => /* @__PURE__ */ s(qe, { variant: "rounded", height: "44px" }, S))
1486
1486
  },
1487
1487
  u
1488
1488
  ))
@@ -1490,7 +1490,7 @@ function Sa({
1490
1490
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1491
1491
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1492
1492
  /* @__PURE__ */ s(
1493
- Ls,
1493
+ Ps,
1494
1494
  {
1495
1495
  "aria-hidden": "true",
1496
1496
  className: "ds:size-4 ds:text-[color:var(--accent)]"
@@ -1501,8 +1501,8 @@ function Sa({
1501
1501
  /* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count: o }) })
1502
1502
  ] }),
1503
1503
  l.map((u) => {
1504
- const k = f[u];
1505
- if (k.length === 0) return null;
1504
+ const S = f[u];
1505
+ if (S.length === 0) return null;
1506
1506
  const h = ka[u];
1507
1507
  return /* @__PURE__ */ b(
1508
1508
  "div",
@@ -1519,7 +1519,7 @@ function Sa({
1519
1519
  role: "group",
1520
1520
  "aria-label": c(`booking.timeOfDay.${u}`),
1521
1521
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
1522
- children: k.map((y) => {
1522
+ children: S.map((y) => {
1523
1523
  const I = y.key === a, N = y.available ? I ? "selected" : "idle" : "unavailable";
1524
1524
  return /* @__PURE__ */ s(
1525
1525
  "button",
@@ -1560,21 +1560,21 @@ function xa({
1560
1560
  locale: f,
1561
1561
  agentIdBase: o
1562
1562
  }) {
1563
- const l = C(() => ye(/* @__PURE__ */ new Date()), []), [u, k] = H(() => {
1563
+ const l = w(() => ke(/* @__PURE__ */ new Date()), []), [u, S] = U(() => {
1564
1564
  if (a.date) {
1565
- const g = ye(K(a.date));
1566
- if (!ke(l, g)) return g;
1565
+ const g = ke(K(a.date));
1566
+ if (!Se(l, g)) return g;
1567
1567
  }
1568
1568
  if (e.length > 0) {
1569
- const g = ye(K(e[0]));
1570
- if (ke(g, l)) return g;
1569
+ const g = ke(K(e[0]));
1570
+ if (Se(g, l)) return g;
1571
1571
  }
1572
1572
  return l;
1573
- }), h = C(
1574
- () => st(u, Ke - 1),
1573
+ }), h = w(
1574
+ () => at(u, Ke - 1),
1575
1575
  [u]
1576
- ), y = C(() => Array.from({ length: Ke }, (g, A) => {
1577
- const T = st(u, A), V = ce(T), R = (t[V] ?? []).map(($) => ({
1576
+ ), y = w(() => Array.from({ length: Ke }, (g, A) => {
1577
+ const _ = at(u, A), V = ce(_), R = (t[V] ?? []).map(($) => ({
1578
1578
  id: $.key,
1579
1579
  // SlotGrid formats `start` as a time via Intl.DateTimeFormat —
1580
1580
  // compose a full ISO from the column's date + the slot's HH:mm
@@ -1583,39 +1583,39 @@ function xa({
1583
1583
  available: $.available
1584
1584
  }));
1585
1585
  return { date: V, slots: R };
1586
- }), [u, t]), I = ke(u, l), N = !0, w = Z(() => {
1587
- k((g) => {
1586
+ }), [u, t]), I = Se(u, l), N = !0, C = Z(() => {
1587
+ S((g) => {
1588
1588
  const A = gs(g, Ke);
1589
- return ke(l, A) ? l : A;
1589
+ return Se(l, A) ? l : A;
1590
1590
  });
1591
1591
  }, [l]), x = Z(() => {
1592
- k((g) => st(g, Ke));
1592
+ S((g) => at(g, Ke));
1593
1593
  }, []);
1594
- q(() => {
1594
+ G(() => {
1595
1595
  if (e.length === 0) return;
1596
- const g = ye(K(e[0]));
1597
- !ke(g, l) || e.some((T) => {
1598
- const V = ye(K(T));
1599
- return !ke(V, h) && !ms(V, u);
1600
- }) || k(g);
1601
- }, [e]), q(() => {
1596
+ const g = ke(K(e[0]));
1597
+ !Se(g, l) || e.some((_) => {
1598
+ const V = ke(K(_));
1599
+ return !Se(V, h) && !ms(V, u);
1600
+ }) || S(g);
1601
+ }, [e]), G(() => {
1602
1602
  r == null || r(ce(u), ce(h));
1603
1603
  }, [u, h, r]);
1604
- const S = Z(
1604
+ const k = Z(
1605
1605
  (g, A) => {
1606
- const T = typeof A.date == "string" ? A.date : ce(A.date);
1606
+ const _ = typeof A.date == "string" ? A.date : ce(A.date);
1607
1607
  n({
1608
- ...Et(Ue(a, T), g.id)
1609
- }), i == null || i(T);
1608
+ ...Et(Je(a, _), g.id)
1609
+ }), i == null || i(_);
1610
1610
  },
1611
1611
  [n, i, a]
1612
- ), p = c || d ? "loading" : "default", _ = y.some((g) => g.slots.length > 0), D = e[0];
1612
+ ), p = c || d ? "loading" : "default", T = y.some((g) => g.slots.length > 0), D = e[0];
1613
1613
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1614
- !_ && !!D ? /* @__PURE__ */ s(
1614
+ !T && !!D ? /* @__PURE__ */ s(
1615
1615
  ct,
1616
1616
  {
1617
1617
  nextAvailableDate: D,
1618
- onJump: () => k(ye(K(D))),
1618
+ onJump: () => S(ke(K(D))),
1619
1619
  locale: f
1620
1620
  }
1621
1621
  ) : null,
@@ -1630,8 +1630,8 @@ function xa({
1630
1630
  locale: f,
1631
1631
  hasPrevious: I,
1632
1632
  hasNext: N,
1633
- onSlotSelect: S,
1634
- onPreviousDays: w,
1633
+ onSlotSelect: k,
1634
+ onPreviousDays: C,
1635
1635
  onNextDays: x
1636
1636
  }
1637
1637
  )
@@ -1670,7 +1670,7 @@ function Ft(e) {
1670
1670
  availableDates: t.availableDates,
1671
1671
  selectedDate: a.date,
1672
1672
  onSelectDate: (u) => {
1673
- n(Ue(a, u)), i == null || i(u);
1673
+ n(Je(a, u)), i == null || i(u);
1674
1674
  },
1675
1675
  locale: f,
1676
1676
  loading: c ?? d
@@ -1692,14 +1692,14 @@ function $t(e) {
1692
1692
  );
1693
1693
  }
1694
1694
  function zt({ value: e, onChange: t }) {
1695
- const { t: a } = P(), n = [
1695
+ const { t: a } = L(), n = [
1696
1696
  { value: "private", label: a("booking.insurance.private") },
1697
1697
  { value: "public", label: a("booking.insurance.public") }
1698
1698
  ];
1699
1699
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1700
1700
  /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: a("booking.insurance.heading") }),
1701
1701
  /* @__PURE__ */ s(
1702
- He,
1702
+ Ue,
1703
1703
  {
1704
1704
  options: n,
1705
1705
  value: e ?? "",
@@ -1720,14 +1720,14 @@ function Kt({
1720
1720
  onChangeIds: i,
1721
1721
  pickerStyle: r = "select"
1722
1722
  }) {
1723
- const { t: c } = P(), d = e.map((o) => ({
1723
+ const { t: c } = L(), d = e.map((o) => ({
1724
1724
  value: o.id,
1725
1725
  label: o.label
1726
1726
  })), f = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.specialty.heading") });
1727
1727
  return r === "multi-select" && i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1728
1728
  f,
1729
1729
  /* @__PURE__ */ s(
1730
- ot,
1730
+ dt,
1731
1731
  {
1732
1732
  options: d,
1733
1733
  value: a ?? [],
@@ -1740,7 +1740,7 @@ function Kt({
1740
1740
  ] }) : r === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1741
1741
  f,
1742
1742
  /* @__PURE__ */ s(
1743
- rt,
1743
+ ot,
1744
1744
  {
1745
1745
  options: d,
1746
1746
  value: t ?? "",
@@ -1753,7 +1753,7 @@ function Kt({
1753
1753
  ] }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1754
1754
  f,
1755
1755
  /* @__PURE__ */ s(
1756
- He,
1756
+ Ue,
1757
1757
  {
1758
1758
  options: d,
1759
1759
  value: t ?? "",
@@ -1773,12 +1773,12 @@ function jt({
1773
1773
  pickerStyle: r,
1774
1774
  compact: c
1775
1775
  }) {
1776
- const { t: d } = P(), f = r ?? (c ? "select" : "cards"), o = e.map((u) => {
1777
- const k = Vt(u);
1778
- return k ? {
1776
+ const { t: d } = L(), f = r ?? (c ? "select" : "cards"), o = e.map((u) => {
1777
+ const S = Vt(u);
1778
+ return S ? {
1779
1779
  value: u.id,
1780
1780
  label: u.label,
1781
- endContent: /* @__PURE__ */ s(Ct, { variant: "accentSoft", size: "lg", children: k })
1781
+ endContent: /* @__PURE__ */ s(Ct, { variant: "accentSoft", size: "lg", children: S })
1782
1782
  } : {
1783
1783
  value: u.id,
1784
1784
  label: `${u.label} · ${d("booking.serviceSummary", {
@@ -1789,7 +1789,7 @@ function jt({
1789
1789
  return f === "multi-select" && i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1790
1790
  l,
1791
1791
  /* @__PURE__ */ s(
1792
- ot,
1792
+ dt,
1793
1793
  {
1794
1794
  options: o,
1795
1795
  value: a ?? [],
@@ -1802,7 +1802,7 @@ function jt({
1802
1802
  ] }) : f === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1803
1803
  l,
1804
1804
  /* @__PURE__ */ s(
1805
- rt,
1805
+ ot,
1806
1806
  {
1807
1807
  options: o,
1808
1808
  value: t ?? "",
@@ -1815,7 +1815,7 @@ function jt({
1815
1815
  ] }) : f === "select" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1816
1816
  l,
1817
1817
  /* @__PURE__ */ s(
1818
- He,
1818
+ Ue,
1819
1819
  {
1820
1820
  options: o,
1821
1821
  value: t ?? "",
@@ -1844,7 +1844,7 @@ function qt({
1844
1844
  onChangeIds: i,
1845
1845
  pickerStyle: r = "select"
1846
1846
  }) {
1847
- const { t: c } = P(), d = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.operator.heading") });
1847
+ const { t: c } = L(), d = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.operator.heading") });
1848
1848
  if (r === "multi-select" && i) {
1849
1849
  const o = e.map((l) => ({
1850
1850
  value: l.id,
@@ -1853,7 +1853,7 @@ function qt({
1853
1853
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1854
1854
  d,
1855
1855
  /* @__PURE__ */ s(
1856
- ot,
1856
+ dt,
1857
1857
  {
1858
1858
  options: o,
1859
1859
  value: a ?? [],
@@ -1866,17 +1866,17 @@ function qt({
1866
1866
  ] });
1867
1867
  }
1868
1868
  const f = [
1869
- { value: W, label: c("booking.operator.all") },
1869
+ { value: j, label: c("booking.operator.all") },
1870
1870
  ...e.map((o) => ({ value: o.id, label: o.name }))
1871
1871
  ];
1872
1872
  return r === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1873
1873
  d,
1874
1874
  /* @__PURE__ */ s(
1875
- rt,
1875
+ ot,
1876
1876
  {
1877
1877
  options: f,
1878
- value: t ?? W,
1879
- onValueChange: (o) => n(o === "" ? W : o),
1878
+ value: t ?? j,
1879
+ onValueChange: (o) => n(o === "" ? j : o),
1880
1880
  placeholder: c("booking.operator.placeholder"),
1881
1881
  "aria-label": c("booking.operator.heading"),
1882
1882
  clearable: !0
@@ -1885,10 +1885,10 @@ function qt({
1885
1885
  ] }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1886
1886
  d,
1887
1887
  /* @__PURE__ */ s(
1888
- He,
1888
+ Ue,
1889
1889
  {
1890
1890
  options: f,
1891
- value: t ?? W,
1891
+ value: t ?? j,
1892
1892
  onValueChange: (o) => n(o),
1893
1893
  placeholder: c("booking.operator.placeholder"),
1894
1894
  "aria-label": c("booking.operator.heading")
@@ -1899,10 +1899,10 @@ function qt({
1899
1899
  function Gt({
1900
1900
  customSlot: e
1901
1901
  }) {
1902
- const { t } = P();
1903
- return e ? /* @__PURE__ */ s(ee, { children: e }) : /* @__PURE__ */ b(U, { variant: "warning", children: [
1904
- /* @__PURE__ */ s(U.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1905
- /* @__PURE__ */ s(U.Description, { children: t("booking.onboardingIncomplete.description") })
1902
+ const { t } = L();
1903
+ return e ? /* @__PURE__ */ s(ee, { children: e }) : /* @__PURE__ */ b(J, { variant: "warning", children: [
1904
+ /* @__PURE__ */ s(J.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1905
+ /* @__PURE__ */ s(J.Description, { children: t("booking.onboardingIncomplete.description") })
1906
1906
  ] });
1907
1907
  }
1908
1908
  function ct({
@@ -1910,7 +1910,7 @@ function ct({
1910
1910
  onJump: t,
1911
1911
  locale: a
1912
1912
  }) {
1913
- const { t: n } = P(), i = C(() => {
1913
+ const { t: n } = L(), i = w(() => {
1914
1914
  try {
1915
1915
  return new Intl.DateTimeFormat(a, { dateStyle: "long" }).format(
1916
1916
  K(e)
@@ -1919,9 +1919,9 @@ function ct({
1919
1919
  return e;
1920
1920
  }
1921
1921
  }, [e, a]);
1922
- return /* @__PURE__ */ b(U, { variant: "info", children: [
1923
- /* @__PURE__ */ s(U.Description, { children: n("booking.nextAvailable.description", { date: i }) }),
1924
- /* @__PURE__ */ s(U.Action, { children: /* @__PURE__ */ s(pe, { intent: "secondary", size: "sm", onClick: t, children: n("booking.nextAvailable.cta") }) })
1922
+ return /* @__PURE__ */ b(J, { variant: "info", children: [
1923
+ /* @__PURE__ */ s(J.Description, { children: n("booking.nextAvailable.description", { date: i }) }),
1924
+ /* @__PURE__ */ s(J.Action, { children: /* @__PURE__ */ s(pe, { intent: "secondary", size: "sm", onClick: t, children: n("booking.nextAvailable.cta") }) })
1925
1925
  ] });
1926
1926
  }
1927
1927
  function Ia({
@@ -1935,11 +1935,11 @@ function Ia({
1935
1935
  onReset: d,
1936
1936
  onModify: f
1937
1937
  }) {
1938
- const { t: o } = P(), u = (e.details.confirmationChannels ?? ["email"]).map(
1939
- (w) => o(`booking.confirmation.channel.${w}`)
1940
- ), k = r === "demo" ? o("booking.success.descriptionDemo") : u.length > 1 ? o("booking.success.descriptionMultiple", {
1938
+ const { t: o } = L(), u = (e.details.confirmationChannels ?? ["email"]).map(
1939
+ (C) => o(`booking.confirmation.channel.${C}`)
1940
+ ), S = r === "demo" ? o("booking.success.descriptionDemo") : u.length > 1 ? o("booking.success.descriptionMultiple", {
1941
1941
  channels: u.join(" · ")
1942
- }) : o("booking.success.descriptionSingle", { channel: u[0] }), h = C(() => {
1942
+ }) : o("booking.success.descriptionSingle", { channel: u[0] }), h = w(() => {
1943
1943
  if (e.date)
1944
1944
  try {
1945
1945
  return new Intl.DateTimeFormat(i, {
@@ -1950,16 +1950,30 @@ function Ia({
1950
1950
  } catch {
1951
1951
  return e.date;
1952
1952
  }
1953
- }, [e.date, i]), y = e.operatorId ? t.find((w) => w.id === e.operatorId) : void 0, I = e.specialtyId ? a.find((w) => w.id === e.specialtyId) : void 0, N = e.serviceId ? n.find((w) => w.id === e.serviceId) : void 0;
1953
+ }, [e.date, i]), y = w(() => {
1954
+ const x = (e.operatorIds && e.operatorIds.length > 0 ? e.operatorIds : e.operatorId ? [e.operatorId] : []).filter((k) => k !== j).map((k) => {
1955
+ var p;
1956
+ return (p = t.find((T) => T.id === k)) == null ? void 0 : p.name;
1957
+ }).filter((k) => k !== void 0);
1958
+ if (x.length === 0) return "";
1959
+ try {
1960
+ return new Intl.ListFormat(i === "en" ? "en-GB" : i, {
1961
+ style: "long",
1962
+ type: "conjunction"
1963
+ }).format(x);
1964
+ } catch {
1965
+ return x.join(", ");
1966
+ }
1967
+ }, [e.operatorIds, e.operatorId, t, i]), I = e.specialtyId ? a.find((C) => C.id === e.specialtyId) : void 0, N = e.serviceId ? n.find((C) => C.id === e.serviceId) : void 0;
1954
1968
  return /* @__PURE__ */ b(
1955
1969
  "div",
1956
1970
  {
1957
1971
  "data-component": "booking-success",
1958
1972
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1959
1973
  children: [
1960
- /* @__PURE__ */ b(U, { variant: "success", children: [
1961
- /* @__PURE__ */ s(U.Title, { as: "h3", children: o("booking.success.heading") }),
1962
- /* @__PURE__ */ s(U.Description, { children: k })
1974
+ /* @__PURE__ */ b(J, { variant: "success", children: [
1975
+ /* @__PURE__ */ s(J.Title, { as: "h3", children: o("booking.success.heading") }),
1976
+ /* @__PURE__ */ s(J.Description, { children: S })
1963
1977
  ] }),
1964
1978
  /* @__PURE__ */ s("div", { className: "ds:rounded-[var(--radius-md)] ds:bg-[var(--secondary)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ b("dl", { className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] ds:m-0", children: [
1965
1979
  I ? /* @__PURE__ */ b(ee, { children: [
@@ -1978,7 +1992,7 @@ function Ia({
1978
1992
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
1979
1993
  y ? /* @__PURE__ */ b(ee, { children: [
1980
1994
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryProvider") }),
1981
- /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: y.name })
1995
+ /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: y })
1982
1996
  ] }) : null
1983
1997
  ] }) }),
1984
1998
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
@@ -1990,7 +2004,7 @@ function Ia({
1990
2004
  );
1991
2005
  }
1992
2006
  function Ht({ customSlot: e }) {
1993
- const { t } = P();
2007
+ const { t } = L();
1994
2008
  return e ? /* @__PURE__ */ s(ee, { children: e }) : /* @__PURE__ */ s(
1995
2009
  Mt,
1996
2010
  {
@@ -2042,16 +2056,16 @@ function wa(e) {
2042
2056
  loadingSlots: o,
2043
2057
  onDateSelect: l,
2044
2058
  onWindowChange: u,
2045
- datePickerStyle: k,
2059
+ datePickerStyle: S,
2046
2060
  specialtyPickerStyle: h,
2047
2061
  servicePickerStyle: y,
2048
2062
  operatorPickerStyle: I,
2049
2063
  submitting: N,
2050
- locale: w,
2064
+ locale: C,
2051
2065
  detailsProps: x,
2052
- agentIdBase: S,
2066
+ agentIdBase: k,
2053
2067
  activeStep: p
2054
- } = e, { t: _ } = P(), D = Se(p, k), m = (g, A) => ({
2068
+ } = e, { t: T } = L(), D = xe(p, S), m = (g, A) => ({
2055
2069
  step: g,
2056
2070
  active: g === D,
2057
2071
  className: A
@@ -2093,8 +2107,8 @@ function wa(e) {
2093
2107
  operators: t.filtered.operators,
2094
2108
  value: n.operatorId,
2095
2109
  valueIds: n.operatorIds,
2096
- onChange: (g) => i(Pt(n, g)),
2097
- onChangeIds: (g) => i(Lt(n, g)),
2110
+ onChange: (g) => i(Lt(n, g)),
2111
+ onChangeIds: (g) => i(Pt(n, g)),
2098
2112
  pickerStyle: I
2099
2113
  }
2100
2114
  ) }) : null,
@@ -2103,13 +2117,13 @@ function wa(e) {
2103
2117
  {
2104
2118
  ...m(5, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
2105
2119
  children: [
2106
- /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: _("booking.date.heading") }),
2120
+ /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: T("booking.date.heading") }),
2107
2121
  a.availableDates.length === 0 && a.nextAvailableDate ? /* @__PURE__ */ s(
2108
2122
  ct,
2109
2123
  {
2110
2124
  nextAvailableDate: a.nextAvailableDate,
2111
- onJump: () => i(Ue(n, a.nextAvailableDate)),
2112
- locale: w
2125
+ onJump: () => i(Je(n, a.nextAvailableDate)),
2126
+ locale: C
2113
2127
  }
2114
2128
  ) : Ft({
2115
2129
  inputs: a,
@@ -2119,26 +2133,26 @@ function wa(e) {
2119
2133
  onWindowChange: u,
2120
2134
  loadingDates: f,
2121
2135
  loadingSlots: o,
2122
- locale: w,
2123
- datePickerStyle: k,
2124
- agentIdBase: S
2136
+ locale: C,
2137
+ datePickerStyle: S,
2138
+ agentIdBase: k
2125
2139
  })
2126
2140
  ]
2127
2141
  }
2128
2142
  ) : null,
2129
- t.gates.slot && n.date && k === "month-calendar" ? /* @__PURE__ */ b(
2143
+ t.gates.slot && n.date && S === "month-calendar" ? /* @__PURE__ */ b(
2130
2144
  B,
2131
2145
  {
2132
2146
  ...m(6, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
2133
2147
  children: [
2134
- /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: _("booking.slot.heading") }),
2148
+ /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: T("booking.slot.heading") }),
2135
2149
  $t({
2136
2150
  inputs: a,
2137
2151
  value: n,
2138
2152
  onChange: i,
2139
2153
  loadingSlots: o,
2140
- locale: w,
2141
- datePickerStyle: k
2154
+ locale: C,
2155
+ datePickerStyle: S
2142
2156
  })
2143
2157
  ]
2144
2158
  }
@@ -2156,7 +2170,7 @@ function wa(e) {
2156
2170
  ) }) : null
2157
2171
  ] });
2158
2172
  }
2159
- function G(e, t, a = {}) {
2173
+ function H(e, t, a = {}) {
2160
2174
  const {
2161
2175
  cascade: n,
2162
2176
  inputs: i,
@@ -2167,16 +2181,16 @@ function G(e, t, a = {}) {
2167
2181
  onboardingIncompleteSlot: o,
2168
2182
  loadingDates: l,
2169
2183
  loadingSlots: u,
2170
- onDateSelect: k,
2184
+ onDateSelect: S,
2171
2185
  onWindowChange: h,
2172
2186
  datePickerStyle: y,
2173
2187
  specialtyPickerStyle: I,
2174
2188
  servicePickerStyle: N,
2175
- operatorPickerStyle: w,
2189
+ operatorPickerStyle: C,
2176
2190
  submitting: x,
2177
- locale: S,
2191
+ locale: k,
2178
2192
  detailsProps: p,
2179
- policy: _,
2193
+ policy: T,
2180
2194
  agentIdBase: D
2181
2195
  } = t;
2182
2196
  switch (e) {
@@ -2220,9 +2234,9 @@ function G(e, t, a = {}) {
2220
2234
  operators: n.filtered.operators,
2221
2235
  value: r.operatorId,
2222
2236
  valueIds: r.operatorIds,
2223
- onChange: (m) => c(Pt(r, m)),
2224
- onChangeIds: (m) => c(Lt(r, m)),
2225
- pickerStyle: w
2237
+ onChange: (m) => c(Lt(r, m)),
2238
+ onChangeIds: (m) => c(Pt(r, m)),
2239
+ pickerStyle: C
2226
2240
  }
2227
2241
  );
2228
2242
  case 5:
@@ -2230,18 +2244,18 @@ function G(e, t, a = {}) {
2230
2244
  ct,
2231
2245
  {
2232
2246
  nextAvailableDate: i.nextAvailableDate,
2233
- onJump: () => c(Ue(r, i.nextAvailableDate)),
2234
- locale: S
2247
+ onJump: () => c(Je(r, i.nextAvailableDate)),
2248
+ locale: k
2235
2249
  }
2236
2250
  ) : Ft({
2237
2251
  inputs: i,
2238
2252
  value: r,
2239
2253
  onChange: c,
2240
- onDateSelect: k,
2254
+ onDateSelect: S,
2241
2255
  onWindowChange: h,
2242
2256
  loadingDates: l,
2243
2257
  loadingSlots: u,
2244
- locale: S,
2258
+ locale: k,
2245
2259
  datePickerStyle: y,
2246
2260
  agentIdBase: D
2247
2261
  });
@@ -2251,7 +2265,7 @@ function G(e, t, a = {}) {
2251
2265
  value: r,
2252
2266
  onChange: c,
2253
2267
  loadingSlots: u,
2254
- locale: S,
2268
+ locale: k,
2255
2269
  datePickerStyle: y
2256
2270
  });
2257
2271
  case 7:
@@ -2263,7 +2277,7 @@ function G(e, t, a = {}) {
2263
2277
  onChange: (m) => c({ ...r, details: m }),
2264
2278
  onSubmit: d,
2265
2279
  submitting: x,
2266
- defaultPhoneCountry: _.country
2280
+ defaultPhoneCountry: T.country
2267
2281
  }
2268
2282
  ) : null;
2269
2283
  /* c8 ignore next 2 */
@@ -2271,9 +2285,9 @@ function G(e, t, a = {}) {
2271
2285
  return null;
2272
2286
  }
2273
2287
  }
2274
- function Je() {
2275
- const { t: e } = P();
2276
- return C(
2288
+ function Ye() {
2289
+ const { t: e } = L();
2290
+ return w(
2277
2291
  () => ({
2278
2292
  1: e("booking.insurance.heading"),
2279
2293
  2: e("booking.specialty.heading"),
@@ -2286,19 +2300,19 @@ function Je() {
2286
2300
  [e]
2287
2301
  );
2288
2302
  }
2289
- function Se(e, t) {
2303
+ function xe(e, t) {
2290
2304
  return t === "four-day-grid" && e === 6 ? 5 : e;
2291
2305
  }
2292
2306
  function Ca(e) {
2293
- const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, c = Je(), { t: d } = P(), f = d("booking.operator.all"), o = C(
2307
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, c = Ye(), { t: d } = L(), f = d("booking.operator.all"), o = w(
2294
2308
  () => ut(t.visibleSteps, r),
2295
2309
  [t.visibleSteps, r]
2296
- ), l = Se(n, r), u = Math.max(0, o.indexOf(l)), k = C(
2310
+ ), l = xe(n, r), u = Math.max(0, o.indexOf(l)), S = w(
2297
2311
  () => o.map((h) => ({
2298
2312
  label: c[h],
2299
2313
  summary: Jt(h, a, t, f),
2300
2314
  status: Ma(h, a, t),
2301
- content: /* @__PURE__ */ s(B, { step: h, active: h === l, children: G(h, e, { compactService: !0 }) })
2315
+ content: /* @__PURE__ */ s(B, { step: h, active: h === l, children: H(h, e, { compactService: !0 }) })
2302
2316
  })),
2303
2317
  [
2304
2318
  o,
@@ -2314,7 +2328,7 @@ function Ca(e) {
2314
2328
  ls,
2315
2329
  {
2316
2330
  activeStep: u,
2317
- steps: k,
2331
+ steps: S,
2318
2332
  onStepChange: (h) => {
2319
2333
  const y = o[h];
2320
2334
  y && i(y);
@@ -2334,7 +2348,7 @@ function ue(e, t) {
2334
2348
  case 3:
2335
2349
  return me(t).length > 0;
2336
2350
  case 4:
2337
- return dt(t).length > 0;
2351
+ return Ge(t).length > 0;
2338
2352
  case 5:
2339
2353
  return t.date !== void 0;
2340
2354
  case 6:
@@ -2343,7 +2357,7 @@ function ue(e, t) {
2343
2357
  return !1;
2344
2358
  }
2345
2359
  }
2346
- function at(e, t) {
2360
+ function nt(e, t) {
2347
2361
  const a = e.map((n) => {
2348
2362
  var i;
2349
2363
  return (i = t.find((r) => r.id === n)) == null ? void 0 : i.label;
@@ -2357,21 +2371,21 @@ function Jt(e, t, a, n) {
2357
2371
  case 1:
2358
2372
  return t.insuranceType;
2359
2373
  case 2:
2360
- return at(
2374
+ return nt(
2361
2375
  te(t),
2362
2376
  a.filtered.specialties
2363
2377
  );
2364
2378
  case 3:
2365
- return at(me(t), a.filtered.services);
2379
+ return nt(me(t), a.filtered.services);
2366
2380
  case 4: {
2367
- const r = dt(t), c = r.filter((f) => f !== W), d = at(
2381
+ const r = Ge(t), c = r.filter((f) => f !== j), d = nt(
2368
2382
  c,
2369
2383
  a.filtered.operators.map((f) => ({
2370
2384
  id: f.id,
2371
2385
  label: f.name
2372
2386
  }))
2373
2387
  );
2374
- return d !== void 0 ? d : r.includes(W) ? n : void 0;
2388
+ return d !== void 0 ? d : r.includes(j) ? n : void 0;
2375
2389
  }
2376
2390
  case 5:
2377
2391
  return t.date;
@@ -2382,11 +2396,11 @@ function Jt(e, t, a, n) {
2382
2396
  }
2383
2397
  }
2384
2398
  function Da(e) {
2385
- const { cascade: t, value: a, activeStep: n, setActiveStep: i } = e, { t: r } = P(), c = Je(), d = r("booking.operator.all"), f = `${it()}-filter`, o = Se(n, e.datePickerStyle), l = t.visibleSteps.filter(
2399
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i } = e, { t: r } = L(), c = Ye(), d = r("booking.operator.all"), f = `${rt()}-filter`, o = xe(n, e.datePickerStyle), l = t.visibleSteps.filter(
2386
2400
  (h) => h === 1 || h === 2 || h === 3 || h === 4
2387
2401
  ), u = l.some(
2388
2402
  (h) => !ue(h, a)
2389
- ), k = l.some(
2403
+ ), S = l.some(
2390
2404
  (h) => h === n
2391
2405
  ) ? n : l.find((h) => !ue(h, a));
2392
2406
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -2402,7 +2416,7 @@ function Da(e) {
2402
2416
  a,
2403
2417
  t,
2404
2418
  d
2405
- ), I = h === k, N = ue(h, a);
2419
+ ), I = h === S, N = ue(h, a);
2406
2420
  return /* @__PURE__ */ s(
2407
2421
  pe,
2408
2422
  {
@@ -2432,13 +2446,13 @@ function Da(e) {
2432
2446
  })
2433
2447
  }
2434
2448
  ) : null,
2435
- k !== void 0 ? /* @__PURE__ */ s(
2449
+ S !== void 0 ? /* @__PURE__ */ s(
2436
2450
  B,
2437
2451
  {
2438
- step: k,
2439
- active: k === o,
2452
+ step: S,
2453
+ active: S === o,
2440
2454
  id: f,
2441
- children: G(k, e, { compactService: !0 })
2455
+ children: H(S, e, { compactService: !0 })
2442
2456
  }
2443
2457
  ) : null,
2444
2458
  !u && t.gates.date ? (
@@ -2446,14 +2460,14 @@ function Da(e) {
2446
2460
  // historic 2-col date|slot split collapses to a single column
2447
2461
  // so the picker spans the full width instead of orphaning an
2448
2462
  // empty right cell.
2449
- e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s(B, { step: 5, active: o === 5, children: G(5, e) }) : /* @__PURE__ */ b("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
2463
+ e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s(B, { step: 5, active: o === 5, children: H(5, e) }) : /* @__PURE__ */ b("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
2450
2464
  /* @__PURE__ */ s(
2451
2465
  B,
2452
2466
  {
2453
2467
  step: 5,
2454
2468
  active: o === 5,
2455
2469
  className: "ds:min-w-0",
2456
- children: G(5, e)
2470
+ children: H(5, e)
2457
2471
  }
2458
2472
  ),
2459
2473
  a.date ? /* @__PURE__ */ s(
@@ -2462,16 +2476,16 @@ function Da(e) {
2462
2476
  step: 6,
2463
2477
  active: o === 6,
2464
2478
  className: "ds:min-w-0",
2465
- children: G(6, e)
2479
+ children: H(6, e)
2466
2480
  }
2467
2481
  ) : /* @__PURE__ */ s("div", { className: "ds:min-w-0" })
2468
2482
  ] })
2469
2483
  ) : null,
2470
- t.gates.details ? /* @__PURE__ */ s(B, { step: 7, active: o === 7, children: G(7, e) }) : null
2484
+ t.gates.details ? /* @__PURE__ */ s(B, { step: 7, active: o === 7, children: H(7, e) }) : null
2471
2485
  ] });
2472
2486
  }
2473
2487
  function Aa(e) {
2474
- const { cascade: t, datePickerStyle: a, activeStep: n } = e, i = Se(n, a), r = t.visibleSteps.filter(
2488
+ const { cascade: t, datePickerStyle: a, activeStep: n } = e, i = xe(n, a), r = t.visibleSteps.filter(
2475
2489
  (d) => d === 1 || d === 2 || d === 3 || d === 4
2476
2490
  );
2477
2491
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -2480,28 +2494,28 @@ function Aa(e) {
2480
2494
  {
2481
2495
  className: a === "four-day-grid" ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]" : "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2",
2482
2496
  children: [
2483
- /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: r.map((d) => /* @__PURE__ */ s(B, { step: d, active: d === i, children: G(d, e, { compactService: !0 }) }, `fbf-${d}`)) }),
2497
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: r.map((d) => /* @__PURE__ */ s(B, { step: d, active: d === i, children: H(d, e, { compactService: !0 }) }, `fbf-${d}`)) }),
2484
2498
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2485
- t.gates.date ? /* @__PURE__ */ s(B, { step: 5, active: i === 5, children: G(5, e) }) : null,
2486
- t.gates.slot && e.value.date && a === "month-calendar" ? /* @__PURE__ */ s(B, { step: 6, active: i === 6, children: G(6, e) }) : null
2499
+ t.gates.date ? /* @__PURE__ */ s(B, { step: 5, active: i === 5, children: H(5, e) }) : null,
2500
+ t.gates.slot && e.value.date && a === "month-calendar" ? /* @__PURE__ */ s(B, { step: 6, active: i === 6, children: H(6, e) }) : null
2487
2501
  ] })
2488
2502
  ]
2489
2503
  }
2490
2504
  ),
2491
- t.gates.details ? /* @__PURE__ */ s(B, { step: 7, active: i === 7, children: G(7, e) }) : null
2505
+ t.gates.details ? /* @__PURE__ */ s(B, { step: 7, active: i === 7, children: H(7, e) }) : null
2492
2506
  ] });
2493
2507
  }
2494
2508
  function Ta(e) {
2495
- const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, { t: c } = P(), d = Je(), f = C(
2509
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, { t: c } = L(), d = Ye(), f = w(
2496
2510
  () => ut(t.visibleSteps, r),
2497
2511
  [t.visibleSteps, r]
2498
- ), o = Se(n, r), l = Math.max(0, f.indexOf(o)), u = f.length, k = C(
2512
+ ), o = xe(n, r), l = Math.max(0, f.indexOf(o)), u = f.length, S = w(
2499
2513
  () => f.map((N) => ({ label: d[N] })),
2500
2514
  [f, d]
2501
2515
  ), h = l > 0, y = o === 5 && r === "four-day-grid", I = l < u - 1 && ue(o, a) && (!y || ue(6, a));
2502
2516
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2503
- /* @__PURE__ */ s(cs, { activeStep: l, steps: k }),
2504
- /* @__PURE__ */ s(B, { step: o, active: !0, children: G(o, e, { compactService: !0 }) }),
2517
+ /* @__PURE__ */ s(cs, { activeStep: l, steps: S }),
2518
+ /* @__PURE__ */ s(B, { step: o, active: !0, children: H(o, e, { compactService: !0 }) }),
2505
2519
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
2506
2520
  /* @__PURE__ */ s(
2507
2521
  pe,
@@ -2553,44 +2567,44 @@ const Ba = wt(
2553
2567
  availableDates: o,
2554
2568
  availableSlots: l,
2555
2569
  nextAvailableDate: u,
2556
- requireCodiceFiscale: k,
2570
+ requireCodiceFiscale: S,
2557
2571
  requireDateOfBirth: h,
2558
2572
  requireInsuranceNumber: y,
2559
2573
  showNote: I,
2560
2574
  showReturningPatientFlag: N,
2561
- privacyPolicyUrl: w,
2575
+ privacyPolicyUrl: C,
2562
2576
  termsUrl: x,
2563
- validateCodiceFiscale: S,
2577
+ validateCodiceFiscale: k,
2564
2578
  validateInsuranceNumber: p,
2565
- confirmationChannels: _,
2579
+ confirmationChannels: T,
2566
2580
  defaultConfirmationChannels: D,
2567
2581
  value: m,
2568
2582
  onChange: g,
2569
2583
  onSubmit: A,
2570
- onStepChange: T,
2584
+ onStepChange: _,
2571
2585
  onDateSelect: V,
2572
2586
  onWindowChange: F,
2573
2587
  datePickerStyle: R = "month-calendar",
2574
2588
  specialtyPickerStyle: $,
2575
- servicePickerStyle: L,
2589
+ servicePickerStyle: P,
2576
2590
  operatorPickerStyle: oe,
2577
2591
  loadingDates: X,
2578
- loadingSlots: xe,
2592
+ loadingSlots: Ie,
2579
2593
  submitting: de,
2580
- submitError: De,
2594
+ submitError: Ae,
2581
2595
  mode: se = "live",
2582
2596
  showModifyOnSuccess: fe = !0,
2583
- surface: Ie = "flat",
2584
- emptyServicesSlot: Ae,
2585
- onboardingIncompleteSlot: Te,
2586
- "aria-label": Ye,
2597
+ surface: Ne = "flat",
2598
+ emptyServicesSlot: Te,
2599
+ onboardingIncompleteSlot: _e,
2600
+ "aria-label": We,
2587
2601
  id: ae,
2588
- className: We,
2602
+ className: Ze,
2589
2603
  onFocus: ge,
2590
- ..._e
2591
- }, Oe) => {
2592
- const { t: v, i18n: O } = P(), z = e ?? "inline-list", Be = O.language ?? "en", ne = c ?? _a, he = f ?? Oa;
2593
- q(() => {
2604
+ ...Oe
2605
+ }, Be) => {
2606
+ const { t: v, i18n: O } = L(), z = e ?? "inline-list", Le = O.language ?? "en", ne = c ?? _a, he = f ?? Oa;
2607
+ G(() => {
2594
2608
  const M = na(m, {
2595
2609
  useSpecialties: a,
2596
2610
  lockedOperatorId: i,
@@ -2606,7 +2620,7 @@ const Ba = wt(
2606
2620
  ne,
2607
2621
  d
2608
2622
  ]);
2609
- const E = C(
2623
+ const E = w(
2610
2624
  () => aa({
2611
2625
  country: t,
2612
2626
  useSpecialties: a,
@@ -2631,54 +2645,54 @@ const Ba = wt(
2631
2645
  l,
2632
2646
  m
2633
2647
  ]
2634
- ), Pe = C(
2648
+ ), Pe = w(
2635
2649
  () => JSON.stringify([
2636
2650
  m.insuranceType,
2637
2651
  te(m),
2638
2652
  me(m),
2639
- dt(m),
2653
+ Ge(m),
2640
2654
  m.date,
2641
2655
  m.slotKey
2642
2656
  ]),
2643
2657
  [m]
2644
- ), [Q, Ne] = H(
2658
+ ), [Q, we] = U(
2645
2659
  E.currentStep
2646
- ), pt = Y(Pe);
2647
- q(() => {
2660
+ ), pt = W(Pe);
2661
+ G(() => {
2648
2662
  const M = Pe !== pt.current;
2649
- pt.current = Pe, !(!M && E.visibleSteps.includes(Q)) && Ne(E.currentStep);
2663
+ pt.current = Pe, !(!M && E.visibleSteps.includes(Q)) && we(E.currentStep);
2650
2664
  }, [
2651
2665
  Pe,
2652
2666
  E.currentStep,
2653
2667
  E.visibleSteps,
2654
2668
  Q
2655
2669
  ]);
2656
- const ve = Y(null), Ze = C(
2670
+ const ve = W(null), Xe = w(
2657
2671
  () => ut(E.visibleSteps, R),
2658
2672
  [E.visibleSteps, R]
2659
- ), mt = Je(), [Yt, Wt] = H(""), ft = Y(null), Le = Y(null);
2660
- q(() => {
2661
- const M = Se(Q, R);
2662
- if (Le.current === null) {
2663
- Le.current = M;
2673
+ ), mt = Ye(), [Yt, Wt] = U(""), ft = W(null), Ee = W(null);
2674
+ G(() => {
2675
+ const M = xe(Q, R);
2676
+ if (Ee.current === null) {
2677
+ Ee.current = M;
2664
2678
  return;
2665
2679
  }
2666
- if (Le.current === M) return;
2667
- Le.current = M;
2668
- const J = Ze.indexOf(M);
2680
+ if (Ee.current === M) return;
2681
+ Ee.current = M;
2682
+ const Y = Xe.indexOf(M);
2669
2683
  Wt(
2670
- J === -1 ? "" : v("booking.stepAnnouncement", {
2671
- current: J + 1,
2672
- total: Ze.length,
2684
+ Y === -1 ? "" : v("booking.stepAnnouncement", {
2685
+ current: Y + 1,
2686
+ total: Xe.length,
2673
2687
  label: mt[M]
2674
2688
  })
2675
2689
  );
2676
- const Re = ft.current;
2677
- if (!Re || Re.isConnected) return;
2690
+ const be = ft.current;
2691
+ if (!be || be.isConnected) return;
2678
2692
  const le = ve.current;
2679
2693
  if (!le) return;
2680
- const be = document.activeElement;
2681
- if (!(be === null || be === document.body || !le.contains(be))) return;
2694
+ const ye = document.activeElement;
2695
+ if (!(ye === null || ye === document.body || !le.contains(ye))) return;
2682
2696
  const Ve = le.querySelector(Na) ?? le;
2683
2697
  if (Ve.focus({ preventScroll: !0 }), typeof Ve.scrollIntoView == "function")
2684
2698
  try {
@@ -2689,11 +2703,11 @@ const Ba = wt(
2689
2703
  } catch {
2690
2704
  Ve.scrollIntoView();
2691
2705
  }
2692
- }, [Q, R, Ze, mt, v]);
2693
- const [ie, we] = H("idle"), [Xe, Qe] = H(null), gt = Z(
2706
+ }, [Q, R, Xe, mt, v]);
2707
+ const [ie, Ce] = U("idle"), [Qe, et] = U(null), gt = Z(
2694
2708
  async (M) => {
2695
2709
  if (!E.selectedSlot) return;
2696
- const J = {
2710
+ const Y = {
2697
2711
  slot: E.selectedSlot,
2698
2712
  value: {
2699
2713
  ...m,
@@ -2702,27 +2716,30 @@ const Ba = wt(
2702
2716
  },
2703
2717
  details: M
2704
2718
  };
2705
- we("submitting");
2719
+ Ce("submitting");
2706
2720
  try {
2707
- await A(J), Qe({
2721
+ await A(Y), et({
2708
2722
  slot: E.selectedSlot,
2709
2723
  details: M,
2710
2724
  specialtyId: m.specialtyId,
2711
2725
  serviceId: m.serviceId,
2712
2726
  insuranceType: m.insuranceType,
2713
2727
  operatorId: kt(m),
2728
+ operatorIds: Ge(m).filter(
2729
+ (be) => be !== j
2730
+ ),
2714
2731
  date: m.date
2715
- }), we("success");
2732
+ }), Ce("success");
2716
2733
  } catch {
2717
- throw we("error"), new Error("Booking submission failed");
2734
+ throw Ce("error"), new Error("Booking submission failed");
2718
2735
  }
2719
2736
  },
2720
2737
  [E.selectedSlot, A, m]
2721
2738
  );
2722
- es(Oe, () => ve.current, []);
2723
- const Ce = ie === "success" ? 8 : E.currentStep, ht = Y(null);
2724
- q(() => {
2725
- if (Ce !== ht.current && (ht.current = Ce, T == null || T(Ce), Ce === 8 && ve.current))
2739
+ es(Be, () => ve.current, []);
2740
+ const Me = ie === "success" ? 8 : E.currentStep, ht = W(null);
2741
+ G(() => {
2742
+ if (Me !== ht.current && (ht.current = Me, _ == null || _(Me), Me === 8 && ve.current))
2726
2743
  try {
2727
2744
  ve.current.scrollIntoView({
2728
2745
  behavior: Nt() ? "auto" : "smooth",
@@ -2731,57 +2748,57 @@ const Ba = wt(
2731
2748
  } catch {
2732
2749
  ve.current.scrollIntoView();
2733
2750
  }
2734
- }, [Ce, T]);
2735
- const Ee = Y({ activeStep: Q, cascade: E, submitState: ie });
2736
- q(() => {
2737
- Ee.current = { activeStep: Q, cascade: E, submitState: ie };
2751
+ }, [Me, _]);
2752
+ const Re = W({ activeStep: Q, cascade: E, submitState: ie });
2753
+ G(() => {
2754
+ Re.current = { activeStep: Q, cascade: E, submitState: ie };
2738
2755
  }, [Q, E, ie]);
2739
- const et = C(
2756
+ const tt = w(
2740
2757
  () => ({
2741
2758
  getVariant: () => z,
2742
2759
  getCurrentStep: () => {
2743
- const M = Ee.current;
2760
+ const M = Re.current;
2744
2761
  return M.submitState === "success" ? 8 : M.activeStep;
2745
2762
  },
2746
2763
  reset: () => {
2747
- g({}), Qe(null), we("idle"), Ne(1);
2764
+ g({}), et(null), Ce("idle"), we(1);
2748
2765
  },
2749
2766
  goToStep: (M) => {
2750
- const J = Ee.current, Re = J.cascade.visibleSteps.includes(M), le = J.cascade.currentStep, be = !Re || M > le ? le : M;
2751
- Ee.current = { ...J, activeStep: be }, Ne(be);
2767
+ const Y = Re.current, be = Y.cascade.visibleSteps.includes(M), le = Y.cascade.currentStep, ye = !be || M > le ? le : M;
2768
+ Re.current = { ...Y, activeStep: ye }, we(ye);
2752
2769
  }
2753
2770
  }),
2754
2771
  [z, g]
2755
2772
  );
2756
- ss(Ws, et, ae);
2757
- const Zt = Ye ?? v("booking.regionLabel"), Xt = C(() => ie !== "success" || !Xe ? null : /* @__PURE__ */ s(
2773
+ ss(Ws, tt, ae);
2774
+ const Zt = We ?? v("booking.regionLabel"), Xt = w(() => ie !== "success" || !Qe ? null : /* @__PURE__ */ s(
2758
2775
  Ia,
2759
2776
  {
2760
- snapshot: Xe,
2777
+ snapshot: Qe,
2761
2778
  operators: he,
2762
2779
  specialties: ne,
2763
2780
  services: d,
2764
- locale: Be,
2781
+ locale: Le,
2765
2782
  mode: se,
2766
2783
  showModify: fe,
2767
- onReset: () => et.reset(),
2784
+ onReset: () => tt.reset(),
2768
2785
  onModify: () => {
2769
- Qe(null), we("idle"), Ne(7);
2786
+ et(null), Ce("idle"), we(7);
2770
2787
  }
2771
2788
  }
2772
2789
  ), [
2773
2790
  ie,
2774
- Xe,
2791
+ Qe,
2775
2792
  he,
2776
2793
  ne,
2777
2794
  d,
2778
- Be,
2795
+ Le,
2779
2796
  se,
2780
2797
  fe,
2781
- et
2782
- ]), Qt = C(() => {
2798
+ tt
2799
+ ]), Qt = w(() => {
2783
2800
  if (ie === "success") return null;
2784
- const M = z === "accordion" ? Ca : z === "calendar" ? Da : z === "flexible" ? Aa : z === "progress" ? Ta : wa, J = {
2801
+ const M = z === "accordion" ? Ca : z === "calendar" ? Da : z === "flexible" ? Aa : z === "progress" ? Ta : wa, Y = {
2785
2802
  cascade: E,
2786
2803
  inputs: {
2787
2804
  specialties: ne,
@@ -2796,37 +2813,37 @@ const Ba = wt(
2796
2813
  onSubmit: gt,
2797
2814
  policy: { country: t, lockedOperatorId: i },
2798
2815
  detailsProps: {
2799
- requireCodiceFiscale: k,
2816
+ requireCodiceFiscale: S,
2800
2817
  requireDateOfBirth: h,
2801
2818
  requireInsuranceNumber: y,
2802
2819
  insuranceType: m.insuranceType,
2803
2820
  showNote: I,
2804
2821
  showReturningPatientFlag: N,
2805
- privacyPolicyUrl: w,
2822
+ privacyPolicyUrl: C,
2806
2823
  termsUrl: x,
2807
- validateCodiceFiscale: S,
2824
+ validateCodiceFiscale: k,
2808
2825
  validateInsuranceNumber: p,
2809
- confirmationChannels: _,
2826
+ confirmationChannels: T,
2810
2827
  defaultConfirmationChannels: D,
2811
- submitError: De
2828
+ submitError: Ae
2812
2829
  },
2813
- emptyServicesSlot: Ae,
2814
- onboardingIncompleteSlot: Te,
2830
+ emptyServicesSlot: Te,
2831
+ onboardingIncompleteSlot: _e,
2815
2832
  loadingDates: X,
2816
- loadingSlots: xe,
2833
+ loadingSlots: Ie,
2817
2834
  onDateSelect: V,
2818
2835
  onWindowChange: F,
2819
2836
  datePickerStyle: R,
2820
2837
  specialtyPickerStyle: $,
2821
- servicePickerStyle: L,
2838
+ servicePickerStyle: P,
2822
2839
  operatorPickerStyle: oe,
2823
2840
  submitting: de,
2824
- locale: Be,
2841
+ locale: Le,
2825
2842
  activeStep: Q,
2826
- setActiveStep: Ne,
2843
+ setActiveStep: we,
2827
2844
  agentIdBase: ae
2828
2845
  };
2829
- return /* @__PURE__ */ s(M, { ...J });
2846
+ return /* @__PURE__ */ s(M, { ...Y });
2830
2847
  }, [
2831
2848
  ie,
2832
2849
  z,
@@ -2842,30 +2859,30 @@ const Ba = wt(
2842
2859
  gt,
2843
2860
  t,
2844
2861
  i,
2845
- k,
2862
+ S,
2846
2863
  h,
2847
2864
  y,
2848
- De,
2865
+ Ae,
2849
2866
  I,
2850
2867
  N,
2851
- w,
2868
+ C,
2852
2869
  x,
2853
- S,
2870
+ k,
2854
2871
  p,
2855
- _,
2872
+ T,
2856
2873
  D,
2857
- Ae,
2858
2874
  Te,
2875
+ _e,
2859
2876
  X,
2860
- xe,
2877
+ Ie,
2861
2878
  V,
2862
2879
  F,
2863
2880
  R,
2864
2881
  $,
2865
- L,
2882
+ P,
2866
2883
  oe,
2867
2884
  de,
2868
- Be,
2885
+ Le,
2869
2886
  Q,
2870
2887
  ae
2871
2888
  ]);
@@ -2881,14 +2898,14 @@ const Ba = wt(
2881
2898
  "data-variant": z,
2882
2899
  className: la({
2883
2900
  variant: z,
2884
- surface: Ie,
2885
- className: We
2901
+ surface: Ne,
2902
+ className: Ze
2886
2903
  }),
2887
2904
  tabIndex: -1,
2888
2905
  onFocus: (M) => {
2889
2906
  ft.current = M.target, ge == null || ge(M);
2890
2907
  },
2891
- ..._e,
2908
+ ...Oe,
2892
2909
  children: [
2893
2910
  /* @__PURE__ */ s("div", { role: "status", className: "ds:sr-only", children: Yt }),
2894
2911
  /* @__PURE__ */ b(
@@ -2917,8 +2934,8 @@ const Ba = wt(
2917
2934
  Ba.displayName = "Booking";
2918
2935
  export {
2919
2936
  Ba as B,
2920
- nt as C,
2921
- W as O,
2937
+ it as C,
2938
+ j as O,
2922
2939
  Ws as b
2923
2940
  };
2924
- //# sourceMappingURL=booking-B8C7jMrn.js.map
2941
+ //# sourceMappingURL=booking-BtSOKjQu.js.map