@alfadocs/ui-kit-debug 1.12.6 → 1.13.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 (138) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DnSLrgQD.js → actions-cell-renderer-ReurEy5i.js} +2 -2
  2. package/dist/_chunks/{actions-cell-renderer-DnSLrgQD.js.map → actions-cell-renderer-ReurEy5i.js.map} +1 -1
  3. package/dist/_chunks/{address-fields-CZP4Wncx.js → address-fields-CZ0pEdEI.js} +4 -4
  4. package/dist/_chunks/{address-fields-CZP4Wncx.js.map → address-fields-CZ0pEdEI.js.map} +1 -1
  5. package/dist/_chunks/{ai-prompt-input-DnbfEJnr.js → ai-prompt-input-CrHr-5H8.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-DnbfEJnr.js.map → ai-prompt-input-CrHr-5H8.js.map} +1 -1
  7. package/dist/_chunks/{anamnesis-summary-rows-BfhxWPO3.js → anamnesis-summary-rows-CRWO8x8g.js} +4 -4
  8. package/dist/_chunks/{anamnesis-summary-rows-BfhxWPO3.js.map → anamnesis-summary-rows-CRWO8x8g.js.map} +1 -1
  9. package/dist/_chunks/{audio-recorder-EWBCNIsd.js → audio-recorder-DXG6LTtO.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-EWBCNIsd.js.map → audio-recorder-DXG6LTtO.js.map} +1 -1
  11. package/dist/_chunks/{autocomplete-BrONKN8l.js → autocomplete-MpBhz-fG.js} +86 -74
  12. package/dist/_chunks/{autocomplete-BrONKN8l.js.map → autocomplete-MpBhz-fG.js.map} +1 -1
  13. package/dist/_chunks/{balance-badge-cell-7L6nzB29.js → balance-badge-cell--iQ_gtmi.js} +4 -4
  14. package/dist/_chunks/{balance-badge-cell-7L6nzB29.js.map → balance-badge-cell--iQ_gtmi.js.map} +1 -1
  15. package/dist/_chunks/{bishop-score-Cnu0xs-z.js → bishop-score-CJUVBfAu.js} +2 -2
  16. package/dist/_chunks/{bishop-score-Cnu0xs-z.js.map → bishop-score-CJUVBfAu.js.map} +1 -1
  17. package/dist/_chunks/{booking-CBHKdsZl.js → booking-DQbo6mQF.js} +609 -591
  18. package/dist/_chunks/booking-DQbo6mQF.js.map +1 -0
  19. package/dist/_chunks/{care-plan-card-aDN4oem9.js → care-plan-card-D-FMfDKH.js} +2 -2
  20. package/dist/_chunks/{care-plan-card-aDN4oem9.js.map → care-plan-card-D-FMfDKH.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-entry-card-BEhANdBE.js → care-plan-entry-card-Bvw_9T-d.js} +2 -2
  22. package/dist/_chunks/{care-plan-entry-card-BEhANdBE.js.map → care-plan-entry-card-Bvw_9T-d.js.map} +1 -1
  23. package/dist/_chunks/{care-plan-header-CkpPyQqG.js → care-plan-header-B5CBE0zu.js} +2 -2
  24. package/dist/_chunks/{care-plan-header-CkpPyQqG.js.map → care-plan-header-B5CBE0zu.js.map} +1 -1
  25. package/dist/_chunks/{city-input-towzBenY.js → city-input-DaQc-Hbj.js} +2 -2
  26. package/dist/_chunks/{city-input-towzBenY.js.map → city-input-DaQc-Hbj.js.map} +1 -1
  27. package/dist/_chunks/{combobox-DiMLItyu.js → combobox-D7_NLE2Z.js} +89 -81
  28. package/dist/_chunks/{combobox-DiMLItyu.js.map → combobox-D7_NLE2Z.js.map} +1 -1
  29. package/dist/_chunks/{contact-profile-card-BMIBr5s9.js → contact-profile-card-BZqi8Hck.js} +38 -36
  30. package/dist/_chunks/{contact-profile-card-BMIBr5s9.js.map → contact-profile-card-BZqi8Hck.js.map} +1 -1
  31. package/dist/_chunks/{country-select-UEF9BEeQ.js → country-select-DzbPFktV.js} +2 -2
  32. package/dist/_chunks/{country-select-UEF9BEeQ.js.map → country-select-DzbPFktV.js.map} +1 -1
  33. package/dist/_chunks/{document-preview-oyx9RhCo.js → document-preview-CDb-n_W7.js} +2 -2
  34. package/dist/_chunks/{document-preview-oyx9RhCo.js.map → document-preview-CDb-n_W7.js.map} +1 -1
  35. package/dist/_chunks/{face-scheme-CZaKm6fG.js → face-scheme-DA2vjqaM.js} +2 -2
  36. package/dist/_chunks/{face-scheme-CZaKm6fG.js.map → face-scheme-DA2vjqaM.js.map} +1 -1
  37. package/dist/_chunks/{file-manager-C0y7HBAN.js → file-manager-UsD8e_AB.js} +2 -2
  38. package/dist/_chunks/{file-manager-C0y7HBAN.js.map → file-manager-UsD8e_AB.js.map} +1 -1
  39. package/dist/_chunks/{gestational-age-calculator-CxZelpu2.js → gestational-age-calculator-CiOQjzgx.js} +2 -2
  40. package/dist/_chunks/{gestational-age-calculator-CxZelpu2.js.map → gestational-age-calculator-CiOQjzgx.js.map} +1 -1
  41. package/dist/_chunks/key-value-pair-BIBdZBLg.js +188 -0
  42. package/dist/_chunks/key-value-pair-BIBdZBLg.js.map +1 -0
  43. package/dist/_chunks/{link-cell-renderer-CenJx-_7.js → link-cell-renderer-CIASXsVM.js} +4 -4
  44. package/dist/_chunks/{link-cell-renderer-CenJx-_7.js.map → link-cell-renderer-CIASXsVM.js.map} +1 -1
  45. package/dist/_chunks/{multi-select-DqL4o0qV.js → multi-select-DYOvx2SJ.js} +56 -48
  46. package/dist/_chunks/{multi-select-DqL4o0qV.js.map → multi-select-DYOvx2SJ.js.map} +1 -1
  47. package/dist/_chunks/{muscle-scheme-yfzP_xoJ.js → muscle-scheme-BSJsI4-I.js} +2 -2
  48. package/dist/_chunks/{muscle-scheme-yfzP_xoJ.js.map → muscle-scheme-BSJsI4-I.js.map} +1 -1
  49. package/dist/_chunks/{optical-prescription-Dj3Eh5Ok.js → optical-prescription-BvwuqTpl.js} +2 -2
  50. package/dist/_chunks/{optical-prescription-Dj3Eh5Ok.js.map → optical-prescription-BvwuqTpl.js.map} +1 -1
  51. package/dist/_chunks/{patient-details-xrqe13az.js → patient-details-BQaUzPqp.js} +5 -5
  52. package/dist/_chunks/{patient-details-xrqe13az.js.map → patient-details-BQaUzPqp.js.map} +1 -1
  53. package/dist/_chunks/{patient-search-D5ufYoRc.js → patient-search-HeEUB-_X.js} +2 -2
  54. package/dist/_chunks/{patient-search-D5ufYoRc.js.map → patient-search-HeEUB-_X.js.map} +1 -1
  55. package/dist/_chunks/{patient-summary-card-CBfuDvJ5.js → patient-summary-card-CvDxhbBR.js} +2 -2
  56. package/dist/_chunks/{patient-summary-card-CBfuDvJ5.js.map → patient-summary-card-CvDxhbBR.js.map} +1 -1
  57. package/dist/_chunks/{payment-request-card-YVCcCZ25.js → payment-request-card-lmKLwsDs.js} +2 -2
  58. package/dist/_chunks/{payment-request-card-YVCcCZ25.js.map → payment-request-card-lmKLwsDs.js.map} +1 -1
  59. package/dist/_chunks/{periodontal-chart-BatZEFar.js → periodontal-chart-B9fphroR.js} +2 -2
  60. package/dist/_chunks/{periodontal-chart-BatZEFar.js.map → periodontal-chart-B9fphroR.js.map} +1 -1
  61. package/dist/_chunks/{periodontal-chart-card-BBpY_rBc.js → periodontal-chart-card-qEZPXj83.js} +2 -2
  62. package/dist/_chunks/{periodontal-chart-card-BBpY_rBc.js.map → periodontal-chart-card-qEZPXj83.js.map} +1 -1
  63. package/dist/_chunks/{pregnancy-dating-DtToyMyc.js → pregnancy-dating-D2wchD11.js} +2 -2
  64. package/dist/_chunks/{pregnancy-dating-DtToyMyc.js.map → pregnancy-dating-D2wchD11.js.map} +1 -1
  65. package/dist/_chunks/{province-select-BDywtmL-.js → province-select-BBc7s7vR.js} +2 -2
  66. package/dist/_chunks/{province-select-BDywtmL-.js.map → province-select-BBc7s7vR.js.map} +1 -1
  67. package/dist/_chunks/{select-BW5ecXlX.js → select-Bi8zril7.js} +165 -136
  68. package/dist/_chunks/select-Bi8zril7.js.map +1 -0
  69. package/dist/_chunks/{signature-request-DVDTKLjM.js → signature-request-CUe903hj.js} +2 -2
  70. package/dist/_chunks/{signature-request-DVDTKLjM.js.map → signature-request-CUe903hj.js.map} +1 -1
  71. package/dist/_chunks/{tabs-CBb2AidH.js → tabs-DqKtTIjZ.js} +2 -2
  72. package/dist/_chunks/{tabs-CBb2AidH.js.map → tabs-DqKtTIjZ.js.map} +1 -1
  73. package/dist/_chunks/{tasks-panel-Do5SFp-j.js → tasks-panel-DPCNaRko.js} +2 -2
  74. package/dist/_chunks/{tasks-panel-Do5SFp-j.js.map → tasks-panel-DPCNaRko.js.map} +1 -1
  75. package/dist/_chunks/{tooth-scheme-WdyVymQ1.js → tooth-scheme-2IsmbE6w.js} +2 -2
  76. package/dist/_chunks/{tooth-scheme-WdyVymQ1.js.map → tooth-scheme-2IsmbE6w.js.map} +1 -1
  77. package/dist/_chunks/{unit-converter-BPumXMA6.js → unit-converter-C6jMjqL9.js} +2 -2
  78. package/dist/_chunks/{unit-converter-BPumXMA6.js.map → unit-converter-C6jMjqL9.js.map} +1 -1
  79. package/dist/_chunks/{workflow-map-DE_ribRM.js → workflow-map-wcw3t6g4.js} +2 -2
  80. package/dist/_chunks/{workflow-map-DE_ribRM.js.map → workflow-map-wcw3t6g4.js.map} +1 -1
  81. package/dist/agent-catalog.json +1 -1
  82. package/dist/components/_shared/option.d.ts +1 -0
  83. package/dist/components/_shared/option.d.ts.map +1 -1
  84. package/dist/components/address-fields/index.js +1 -1
  85. package/dist/components/ai-prompt-input/index.js +1 -1
  86. package/dist/components/audio-recorder/index.js +1 -1
  87. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  88. package/dist/components/autocomplete/index.js +1 -1
  89. package/dist/components/bishop-score/index.js +1 -1
  90. package/dist/components/booking/booking.d.ts.map +1 -1
  91. package/dist/components/booking/index.js +1 -1
  92. package/dist/components/care-plan-card/index.js +1 -1
  93. package/dist/components/care-plan-entry-card/index.js +1 -1
  94. package/dist/components/care-plan-header/index.js +1 -1
  95. package/dist/components/city-input/index.js +1 -1
  96. package/dist/components/combobox/combobox.d.ts.map +1 -1
  97. package/dist/components/combobox/index.js +1 -1
  98. package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
  99. package/dist/components/contact-profile-card/index.js +1 -1
  100. package/dist/components/country-select/index.js +1 -1
  101. package/dist/components/data-table/index.js +2 -2
  102. package/dist/components/document-preview/index.js +1 -1
  103. package/dist/components/face-scheme/index.js +1 -1
  104. package/dist/components/file-manager/index.js +1 -1
  105. package/dist/components/gestational-age-calculator/index.js +1 -1
  106. package/dist/components/key-value-pair/index.js +1 -1
  107. package/dist/components/key-value-pair/key-value-pair.d.ts +16 -0
  108. package/dist/components/key-value-pair/key-value-pair.d.ts.map +1 -1
  109. package/dist/components/multi-select/index.js +1 -1
  110. package/dist/components/multi-select/multi-select.d.ts.map +1 -1
  111. package/dist/components/muscle-scheme/index.js +1 -1
  112. package/dist/components/optical-prescription/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-search/index.js +1 -1
  115. package/dist/components/patient-summary-card/index.js +1 -1
  116. package/dist/components/patient-table/index.js +1 -1
  117. package/dist/components/payment-card/index.js +1 -1
  118. package/dist/components/periodontal-chart/index.js +1 -1
  119. package/dist/components/periodontal-chart-card/index.js +1 -1
  120. package/dist/components/pregnancy-dating/index.js +1 -1
  121. package/dist/components/province-select/index.js +1 -1
  122. package/dist/components/select/index.js +1 -1
  123. package/dist/components/select/select.d.ts +24 -0
  124. package/dist/components/select/select.d.ts.map +1 -1
  125. package/dist/components/skeleton-scheme/index.js +1 -1
  126. package/dist/components/tabs/index.js +1 -1
  127. package/dist/components/tasks-panel/index.js +1 -1
  128. package/dist/components/tooth-scheme/index.js +1 -1
  129. package/dist/components/unit-converter/index.js +1 -1
  130. package/dist/components/workflow/index.js +1 -1
  131. package/dist/index.js +40 -40
  132. package/dist/patterns/anamnesis/index.js +1 -1
  133. package/dist/patterns/signature-request/index.js +1 -1
  134. package/package.json +1 -1
  135. package/dist/_chunks/booking-CBHKdsZl.js.map +0 -1
  136. package/dist/_chunks/key-value-pair-BubG4fUa.js +0 -144
  137. package/dist/_chunks/key-value-pair-BubG4fUa.js.map +0 -1
  138. package/dist/_chunks/select-BW5ecXlX.js.map +0 -1
@@ -1,50 +1,51 @@
1
- import { jsxs as b, jsx as a, 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 Qt } from "react";
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
3
  import { c as Ge } from "./index-D2ZczOXr.js";
4
- import { useTranslation as P, Trans as es } from "react-i18next";
5
- import { u as ts } from "./registry-DvAUVLHh.js";
4
+ import { useTranslation as P, Trans as ts } from "react-i18next";
5
+ import { u as ss } from "./registry-DvAUVLHh.js";
6
6
  import { A as U } from "./alert-CiJT540z.js";
7
7
  import { B as pe } from "./button-nJaPh_HC.js";
8
8
  import { C as tt } from "./checkbox-BuZ1u__2.js";
9
- import { C as ss } from "./checkbox-group-CfqMv57d.js";
10
- import { D as as } from "./date-picker-CepI_oI2.js";
11
- import { E as ns } from "./email-input-Dpe63k0K.js";
12
- import { F as oe } from "./form-field-CahJzTxp.js";
13
- import { P as is } from "./phone-input-BsZIoE36.js";
9
+ import { C as as } from "./checkbox-group-CfqMv57d.js";
10
+ import { D as ns } from "./date-picker-CepI_oI2.js";
11
+ import { E as is } from "./email-input-Dpe63k0K.js";
12
+ import { F as re } from "./form-field-CahJzTxp.js";
13
+ import { P as rs } from "./phone-input-BsZIoE36.js";
14
14
  import { T as os } from "./text-area-Bt3p7Pt0.js";
15
15
  import { T as Fe } from "./text-input-CUvCb6ST.js";
16
- import { S as rs } from "./spinner-hbwuKwMf.js";
16
+ import { S as ds } from "./spinner-hbwuKwMf.js";
17
+ import { B as Ct } from "./badge-sTusUqZD.js";
17
18
  import { I as vt } from "./icon-button-DA2CAGHZ.js";
18
- import { S as He } from "./select-BW5ecXlX.js";
19
- import { C as ot } from "./combobox-DiMLItyu.js";
20
- import { M as rt } from "./multi-select-DqL4o0qV.js";
19
+ import { S as He } from "./select-Bi8zril7.js";
20
+ import { C as rt } from "./combobox-D7_NLE2Z.js";
21
+ import { M as ot } from "./multi-select-DYOvx2SJ.js";
21
22
  import { S as qe } from "./skeleton-CZbwyJAA.js";
22
- import { E as Ct } from "./empty-state-X0sVPfVo.js";
23
- import { S as ds } from "./stepper-accordion-DmVykr5F.js";
24
- import { S as ls } from "./stepper-progress-Bv0njx4g.js";
25
- import { S as cs } from "./slot-grid-BuZOKfcd.js";
23
+ import { E as Mt } from "./empty-state-X0sVPfVo.js";
24
+ import { S as ls } from "./stepper-accordion-DmVykr5F.js";
25
+ import { S as cs } from "./stepper-progress-Bv0njx4g.js";
26
+ import { S as us } from "./slot-grid-BuZOKfcd.js";
26
27
  import { p as K } from "./parseISO-fOGpHKXm.js";
27
- import { C as us } from "./chevron-down-DWE7GSq9.js";
28
+ import { C as ps } from "./chevron-down-DWE7GSq9.js";
28
29
  import { l as ye, f as je, b as bt } from "./format-4HNwNGrN.js";
29
- import { w as Mt, c as ke, a as st, i as ps, s as Me, l as ms, x as $e } from "./date-picker-variants-DfuooXEK.js";
30
- import { s as fs } from "./subDays-BLl3y3pd.js";
31
- import { C as gs } from "./chevron-left-B8cOyH-V.js";
32
- import { C as hs } from "./chevron-right-I9AeSxH2.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-DfuooXEK.js";
31
+ import { s as gs } from "./subDays-BLl3y3pd.js";
32
+ import { C as hs } from "./chevron-left-B8cOyH-V.js";
33
+ import { C as vs } from "./chevron-right-I9AeSxH2.js";
33
34
  import { c as j } from "./createLucideIcon-DhHxpK9K.js";
34
- import { M as vs, S as bs } from "./sun-Bj9Mr553.js";
35
- import { S as ys } from "./stethoscope-sZXGC43m.js";
36
- import { H as ks } from "./heart-pulse-BCppJyN2.js";
37
- import { E as Ss } from "./eye-BjhN2nYf.js";
38
- import { S as xs } from "./scan-line-CNseIHQ0.js";
39
- import { A as Is } from "./astroid-BN4f5VXU.js";
40
- import { C as Ns } from "./clipboard-check-BeAGxDVT.js";
35
+ import { M as bs, S as ys } from "./sun-Bj9Mr553.js";
36
+ import { S as ks } from "./stethoscope-sZXGC43m.js";
37
+ import { H as Ss } from "./heart-pulse-BCppJyN2.js";
38
+ import { E as xs } from "./eye-BjhN2nYf.js";
39
+ import { S as Is } from "./scan-line-CNseIHQ0.js";
40
+ import { A as Ns } from "./astroid-BN4f5VXU.js";
41
+ import { C as ws } from "./clipboard-check-BeAGxDVT.js";
41
42
  /**
42
43
  * @license lucide-react v1.22.0 - ISC
43
44
  *
44
45
  * This source code is licensed under the ISC license.
45
46
  * See the LICENSE file in the root directory of this source tree.
46
47
  */
47
- const ws = [
48
+ const Cs = [
48
49
  [
49
50
  "path",
50
51
  {
@@ -52,14 +53,14 @@ const ws = [
52
53
  key: "169zse"
53
54
  }
54
55
  ]
55
- ], Cs = j("activity", ws);
56
+ ], Ms = j("activity", Cs);
56
57
  /**
57
58
  * @license lucide-react v1.22.0 - ISC
58
59
  *
59
60
  * This source code is licensed under the ISC license.
60
61
  * See the LICENSE file in the root directory of this source tree.
61
62
  */
62
- const Ms = [
63
+ const Ds = [
63
64
  ["path", { d: "M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5", key: "1u7htd" }],
64
65
  ["path", { d: "M15 12h.01", key: "1k8ypt" }],
65
66
  [
@@ -70,14 +71,14 @@ const Ms = [
70
71
  }
71
72
  ],
72
73
  ["path", { d: "M9 12h.01", key: "157uk2" }]
73
- ], Ds = j("baby", Ms);
74
+ ], As = j("baby", Ds);
74
75
  /**
75
76
  * @license lucide-react v1.22.0 - ISC
76
77
  *
77
78
  * This source code is licensed under the ISC license.
78
79
  * See the LICENSE file in the root directory of this source tree.
79
80
  */
80
- const As = [
81
+ const Ts = [
81
82
  [
82
83
  "path",
83
84
  {
@@ -85,14 +86,14 @@ const As = [
85
86
  key: "w610uw"
86
87
  }
87
88
  ]
88
- ], Ts = j("bone", As);
89
+ ], _s = j("bone", Ts);
89
90
  /**
90
91
  * @license lucide-react v1.22.0 - ISC
91
92
  *
92
93
  * This source code is licensed under the ISC license.
93
94
  * See the LICENSE file in the root directory of this source tree.
94
95
  */
95
- const _s = [
96
+ const Os = [
96
97
  ["path", { d: "M12 18V5", key: "adv99a" }],
97
98
  ["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
98
99
  ["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
@@ -101,14 +102,14 @@ const _s = [
101
102
  ["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
102
103
  ["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
103
104
  ["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
104
- ], Os = j("brain", _s);
105
+ ], Bs = j("brain", Os);
105
106
  /**
106
107
  * @license lucide-react v1.22.0 - ISC
107
108
  *
108
109
  * This source code is licensed under the ISC license.
109
110
  * See the LICENSE file in the root directory of this source tree.
110
111
  */
111
- const Bs = [
112
+ const Ps = [
112
113
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
113
114
  ["path", { d: "M16 2v4", key: "4m81vk" }],
114
115
  ["path", { d: "M3 10h18", key: "8toen8" }],
@@ -117,76 +118,76 @@ const Bs = [
117
118
  ["path", { d: "M13 18H7", key: "bb0bb7" }],
118
119
  ["path", { d: "M7 14h.01", key: "1qa3f1" }],
119
120
  ["path", { d: "M17 18h.01", key: "1bdyru" }]
120
- ], Ps = j("calendar-range", Bs);
121
+ ], Ls = j("calendar-range", Ps);
121
122
  /**
122
123
  * @license lucide-react v1.22.0 - ISC
123
124
  *
124
125
  * This source code is licensed under the ISC license.
125
126
  * See the LICENSE file in the root directory of this source tree.
126
127
  */
127
- const Ls = [
128
+ const Es = [
128
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" }],
129
130
  ["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
130
- ], Es = j("ear", Ls);
131
+ ], Rs = j("ear", Es);
131
132
  /**
132
133
  * @license lucide-react v1.22.0 - ISC
133
134
  *
134
135
  * This source code is licensed under the ISC license.
135
136
  * See the LICENSE file in the root directory of this source tree.
136
137
  */
137
- const Rs = [
138
+ const Vs = [
138
139
  ["path", { d: "M6 18h8", key: "1borvv" }],
139
140
  ["path", { d: "M3 22h18", key: "8prr45" }],
140
141
  ["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
141
142
  ["path", { d: "M9 14h2", key: "197e7h" }],
142
143
  ["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
143
144
  ["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
144
- ], Vs = j("microscope", Rs);
145
+ ], Fs = j("microscope", Vs);
145
146
  /**
146
147
  * @license lucide-react v1.22.0 - ISC
147
148
  *
148
149
  * This source code is licensed under the ISC license.
149
150
  * See the LICENSE file in the root directory of this source tree.
150
151
  */
151
- const Fs = [
152
+ const $s = [
152
153
  [
153
154
  "path",
154
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" }
155
156
  ],
156
157
  ["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
157
- ], $s = j("pill", Fs);
158
+ ], zs = j("pill", $s);
158
159
  /**
159
160
  * @license lucide-react v1.22.0 - ISC
160
161
  *
161
162
  * This source code is licensed under the ISC license.
162
163
  * See the LICENSE file in the root directory of this source tree.
163
164
  */
164
- const zs = [
165
+ const Ks = [
165
166
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
166
167
  ["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
167
168
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
168
169
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
169
170
  ["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
170
- ], Ks = j("scissors", zs);
171
+ ], js = j("scissors", Ks);
171
172
  /**
172
173
  * @license lucide-react v1.22.0 - ISC
173
174
  *
174
175
  * This source code is licensed under the ISC license.
175
176
  * See the LICENSE file in the root directory of this source tree.
176
177
  */
177
- const js = [
178
+ const qs = [
178
179
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
179
180
  ["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
180
181
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
181
182
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
182
- ], qs = j("smile", js);
183
+ ], Gs = j("smile", qs);
183
184
  /**
184
185
  * @license lucide-react v1.22.0 - ISC
185
186
  *
186
187
  * This source code is licensed under the ISC license.
187
188
  * See the LICENSE file in the root directory of this source tree.
188
189
  */
189
- const Gs = [
190
+ const Hs = [
190
191
  ["path", { d: "M12 10V2", key: "16sf7g" }],
191
192
  ["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
192
193
  ["path", { d: "M2 18h2", key: "j10viu" }],
@@ -195,25 +196,25 @@ const Gs = [
195
196
  ["path", { d: "M22 22H2", key: "19qnx5" }],
196
197
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
197
198
  ["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
198
- ], Hs = j("sunset", Gs);
199
+ ], Us = j("sunset", Hs);
199
200
  /**
200
201
  * @license lucide-react v1.22.0 - ISC
201
202
  *
202
203
  * This source code is licensed under the ISC license.
203
204
  * See the LICENSE file in the root directory of this source tree.
204
205
  */
205
- const Us = [
206
+ const Js = [
206
207
  ["path", { d: "m18 2 4 4", key: "22kx64" }],
207
208
  ["path", { d: "m17 7 3-3", key: "1w1zoj" }],
208
209
  ["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" }],
209
210
  ["path", { d: "m9 11 4 4", key: "rovt3i" }],
210
211
  ["path", { d: "m5 19-3 3", key: "59f2uf" }],
211
212
  ["path", { d: "m14 4 6 6", key: "yqp9t2" }]
212
- ], yt = j("syringe", Us);
213
- function Js(e, t, s) {
214
- return Mt(e, -1, s);
213
+ ], yt = j("syringe", Js);
214
+ function Ys(e, t, a) {
215
+ return Dt(e, -1, a);
215
216
  }
216
- const Ys = {
217
+ const Ws = {
217
218
  id: "booking",
218
219
  // `view_change` removed (0.69): the layout `variant` is a fixed prop — the
219
220
  // handle exposes only `getVariant` (state), no action mutates it. The flow's
@@ -289,19 +290,19 @@ const Ys = {
289
290
  "email",
290
291
  "whatsapp",
291
292
  "sms"
292
- ], W = "all", Ws = "de";
293
- function Zs(e) {
293
+ ], W = "all", Zs = "de";
294
+ function Xs(e) {
294
295
  return [...e.lockedOperatorId ? e.specialties.filter(
295
- (s) => {
296
+ (a) => {
296
297
  var n;
297
- return (n = s.operatorIds) == null ? void 0 : n.includes(e.lockedOperatorId);
298
+ return (n = a.operatorIds) == null ? void 0 : n.includes(e.lockedOperatorId);
298
299
  }
299
- ) : e.specialties].sort((s, n) => {
300
- const i = s.sequenceNumber ?? Number.POSITIVE_INFINITY, o = n.sequenceNumber ?? Number.POSITIVE_INFINITY;
301
- return i - o;
300
+ ) : e.specialties].sort((a, n) => {
301
+ const i = a.sequenceNumber ?? Number.POSITIVE_INFINITY, r = n.sequenceNumber ?? Number.POSITIVE_INFINITY;
302
+ return i - r;
302
303
  });
303
304
  }
304
- function Xs(e) {
305
+ function Qs(e) {
305
306
  let t = e.services;
306
307
  if (e.lockedOperatorId && (t = t.filter(
307
308
  (n) => {
@@ -316,35 +317,35 @@ function Xs(e) {
316
317
  }
317
318
  return t;
318
319
  }
319
- function Qs(e) {
320
+ function ea(e) {
320
321
  const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties;
321
322
  if (t) {
322
- const s = te(e.value);
323
- if (s.length > 0)
323
+ const a = te(e.value);
324
+ if (a.length > 0)
324
325
  return e.operators.filter(
325
326
  (n) => {
326
327
  var i;
327
- return (i = n.specialtyIds) == null ? void 0 : i.some((o) => s.includes(o));
328
+ return (i = n.specialtyIds) == null ? void 0 : i.some((r) => a.includes(r));
328
329
  }
329
330
  );
330
331
  }
331
332
  if (!t) {
332
- const s = me(e.value);
333
- if (s.length > 0)
333
+ const a = me(e.value);
334
+ if (a.length > 0)
334
335
  return e.operators.filter(
335
336
  (n) => {
336
337
  var i;
337
- return (i = n.appointmentBookingReasonIds) == null ? void 0 : i.some((o) => s.includes(o));
338
+ return (i = n.appointmentBookingReasonIds) == null ? void 0 : i.some((r) => a.includes(r));
338
339
  }
339
340
  );
340
341
  }
341
342
  return [];
342
343
  }
343
- function ea(e, t) {
344
- const s = e.country === Ws, n = !s || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && n, c = te(e.value).length > 0, f = !o || c, r = me(e.value).length > 0, l = !f || r, u = t.operators, k = !!e.allowOperatorSelection && l && r && !e.lockedOperatorId && u.length > 1, h = l && r, 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 = r && u.length === 0;
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
346
  return {
346
- insurance: s,
347
- specialty: o,
347
+ insurance: a,
348
+ specialty: r,
348
349
  service: f,
349
350
  operator: k,
350
351
  date: h,
@@ -353,9 +354,9 @@ function ea(e, t) {
353
354
  onboardingIncomplete: x
354
355
  };
355
356
  }
356
- function ta(e, t) {
357
- const s = [];
358
- 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
+ function sa(e, t) {
358
+ const a = [];
359
+ t.insurance && a.push(1), t.specialty && a.push(2), a.push(3), t.operator && a.push(4), a.push(5), a.push(6), a.push(7);
359
360
  const n = {
360
361
  1: e.value.insuranceType !== void 0,
361
362
  // 0.34.0: array-or-single — satisfied when EITHER form is present.
@@ -368,34 +369,34 @@ function ta(e, t) {
368
369
  // details fulfilment is owned by the form's own validation
369
370
  };
370
371
  return {
371
- currentStep: s.find((o) => !n[o]) ?? 7,
372
- visibleSteps: s
372
+ currentStep: a.find((r) => !n[r]) ?? 7,
373
+ visibleSteps: a
373
374
  };
374
375
  }
375
- function sa(e) {
376
+ function aa(e) {
376
377
  const t = {
377
- specialties: Zs(e),
378
- services: Xs(e),
379
- operators: Qs(e)
380
- }, s = ea(e, t), { currentStep: n, visibleSteps: i } = ta(e, s);
381
- let o;
378
+ specialties: Xs(e),
379
+ services: Qs(e),
380
+ operators: ea(e)
381
+ }, a = ta(e, t), { currentStep: n, visibleSteps: i } = sa(e, a);
382
+ let r;
382
383
  if (e.value.date && e.value.slotKey) {
383
384
  const l = e.availableSlots[e.value.date];
384
- l && (o = l.find((u) => u.key === e.value.slotKey));
385
+ l && (r = l.find((u) => u.key === e.value.slotKey));
385
386
  }
386
- const c = me(e.value), d = c.length > 0 ? e.services.find((l) => l.id === c[0]) : void 0, f = te(e.value).length > 0, r = c.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!s.insurance || e.value.insuranceType !== void 0) && (!s.specialty || f);
387
+ const c = me(e.value), d = c.length > 0 ? e.services.find((l) => l.id === c[0]) : void 0, f = te(e.value).length > 0, o = c.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!a.insurance || e.value.insuranceType !== void 0) && (!a.specialty || f);
387
388
  return {
388
- gates: s,
389
+ gates: a,
389
390
  filtered: t,
390
391
  currentStep: n,
391
392
  totalSteps: i.length,
392
393
  visibleSteps: i,
393
- isReadyToSubmit: r,
394
+ isReadyToSubmit: o,
394
395
  durationMin: d == null ? void 0 : d.durationMin,
395
- selectedSlot: o
396
+ selectedSlot: r
396
397
  };
397
398
  }
398
- function Dt(e, t) {
399
+ function At(e, t) {
399
400
  return {
400
401
  ...e,
401
402
  insuranceType: t,
@@ -407,7 +408,7 @@ function Dt(e, t) {
407
408
  details: void 0
408
409
  };
409
410
  }
410
- function At(e, t) {
411
+ function Tt(e, t) {
411
412
  return {
412
413
  ...e,
413
414
  specialtyId: t,
@@ -421,7 +422,7 @@ function At(e, t) {
421
422
  details: void 0
422
423
  };
423
424
  }
424
- function Tt(e, t) {
425
+ function _t(e, t) {
425
426
  return {
426
427
  ...e,
427
428
  specialtyId: void 0,
@@ -435,7 +436,7 @@ function Tt(e, t) {
435
436
  details: void 0
436
437
  };
437
438
  }
438
- function _t(e, t) {
439
+ function Ot(e, t) {
439
440
  return {
440
441
  ...e,
441
442
  serviceId: t,
@@ -450,20 +451,20 @@ function _t(e, t) {
450
451
  details: void 0
451
452
  };
452
453
  }
453
- function Ot(e, t) {
454
- const s = !!t && t.length > 0;
454
+ function Bt(e, t) {
455
+ const a = !!t && t.length > 0;
455
456
  return {
456
457
  ...e,
457
458
  serviceId: void 0,
458
459
  serviceIds: t,
459
- operatorId: s ? W : void 0,
460
+ operatorId: a ? W : void 0,
460
461
  operatorIds: void 0,
461
462
  date: void 0,
462
463
  slotKey: void 0,
463
464
  details: void 0
464
465
  };
465
466
  }
466
- function Bt(e, t) {
467
+ function Pt(e, t) {
467
468
  return {
468
469
  ...e,
469
470
  operatorId: t,
@@ -473,7 +474,7 @@ function Bt(e, t) {
473
474
  details: void 0
474
475
  };
475
476
  }
476
- function Pt(e, t) {
477
+ function Lt(e, t) {
477
478
  return {
478
479
  ...e,
479
480
  operatorId: void 0,
@@ -501,60 +502,60 @@ function Ue(e, t) {
501
502
  // since the user has already filled some fields.
502
503
  };
503
504
  }
504
- function Lt(e, t) {
505
+ function Et(e, t) {
505
506
  return {
506
507
  ...e,
507
508
  slotKey: t
508
509
  };
509
510
  }
510
- function aa(e, t) {
511
- let s = e;
512
- 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) {
513
- const i = te(s), o = i.length > 0 ? t.services.filter(
511
+ function na(e, t) {
512
+ let a = e;
513
+ if (t.lockedOperatorId && a.operatorId !== t.lockedOperatorId && (a = { ...a, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && a.specialtyId === void 0 && a.specialtyIds === void 0 && (a = { ...a, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
514
+ const i = te(a), r = i.length > 0 ? t.services.filter(
514
515
  (c) => c.specialtyId && i.includes(c.specialtyId)
515
516
  ) : t.services;
516
- o.length === 1 && s.serviceId === void 0 && s.serviceIds === void 0 && (s = { ...s, serviceId: o[0].id }, s.operatorId === void 0 && s.operatorIds === void 0 && (s = { ...s, 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: W }));
517
518
  }
518
- return s;
519
+ return a;
519
520
  }
520
521
  function kt(e) {
521
522
  if (e.operatorId && e.operatorId !== W)
522
523
  return e.operatorId;
523
524
  }
524
- function na(e) {
525
+ function ia(e) {
525
526
  if (!e) return !1;
526
527
  const t = e.trim();
527
528
  return /^\+?\d[\d\s\-()]{6,}$/.test(t);
528
529
  }
529
- function Et(e) {
530
- const t = e && e.length > 0 ? e : ["email"], s = new Set(t);
531
- return nt.filter((n) => s.has(n));
530
+ function Rt(e) {
531
+ const t = e && e.length > 0 ? e : ["email"], a = new Set(t);
532
+ return nt.filter((n) => a.has(n));
532
533
  }
533
- function ia(e, t, s) {
534
- const n = Et(e), i = new Set(n);
535
- if (s)
534
+ function ra(e, t, a) {
535
+ const n = Rt(e), i = new Set(n);
536
+ if (a)
536
537
  return nt.filter(
537
- (r) => s.includes(r) && i.has(r)
538
+ (o) => a.includes(o) && i.has(o)
538
539
  );
539
- const o = [];
540
- i.has("email") && o.push("email");
541
- const c = na(t), d = i.has("whatsapp");
542
- d && c && o.push("whatsapp"), !d && i.has("sms") && o.push("sms");
543
- const f = new Set(o);
544
- return nt.filter((r) => f.has(r));
540
+ const r = [];
541
+ i.has("email") && r.push("email");
542
+ const c = ia(t), d = i.has("whatsapp");
543
+ d && c && r.push("whatsapp"), !d && i.has("sms") && r.push("sms");
544
+ const f = new Set(r);
545
+ return nt.filter((o) => f.has(o));
545
546
  }
546
- const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 300, ze = { state: "idle" }, lt = wt(
547
+ const St = 500, oa = /^[A-Z0-9]{16}$/, da = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 300, ze = { state: "idle" }, lt = wt(
547
548
  ({
548
549
  value: e,
549
550
  onChange: t,
550
- onSubmit: s,
551
+ onSubmit: a,
551
552
  requireCodiceFiscale: n = !1,
552
553
  requireDateOfBirth: i = !1,
553
- requireInsuranceNumber: o = !1,
554
+ requireInsuranceNumber: r = !1,
554
555
  insuranceType: c,
555
556
  showNote: d = !1,
556
557
  showReturningPatientFlag: f = !1,
557
- privacyPolicyUrl: r,
558
+ privacyPolicyUrl: o,
558
559
  termsUrl: l,
559
560
  validateCodiceFiscale: u,
560
561
  validateInsuranceNumber: k,
@@ -581,10 +582,10 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
581
582
  const L = Z(
582
583
  (v) => t({ ...e, ...v }),
583
584
  [e, t]
584
- ), re = C(
585
- () => Et(N),
585
+ ), oe = C(
586
+ () => Rt(N),
586
587
  [N]
587
- ), X = re.length >= 2, xe = Y(!1);
588
+ ), X = oe.length >= 2, xe = Y(!1);
588
589
  q(() => {
589
590
  if (!X) {
590
591
  e.confirmationChannels !== void 0 && L({ confirmationChannels: void 0 });
@@ -594,15 +595,15 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
594
595
  xe.current = !0;
595
596
  return;
596
597
  }
597
- const v = ia(
598
- re,
598
+ const v = ra(
599
+ oe,
599
600
  e.mobilePhone,
600
601
  w
601
602
  );
602
603
  xe.current = !0, L({ confirmationChannels: v });
603
604
  }, [
604
605
  X,
605
- re,
606
+ oe,
606
607
  e.mobilePhone,
607
608
  w
608
609
  ]);
@@ -636,7 +637,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
636
637
  );
637
638
  }, xt);
638
639
  }, [n, u, e.codiceFiscale, p]);
639
- const se = o && c === "public";
640
+ const se = r && c === "public";
640
641
  q(() => {
641
642
  const v = e.insuranceNumber;
642
643
  if (!se || !k || !v) {
@@ -657,7 +658,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
657
658
  }, xt);
658
659
  }, [se, k, e.insuranceNumber, p]);
659
660
  const fe = C(
660
- () => !!(e.email && ra.test(e.email)),
661
+ () => !!(e.email && da.test(e.email)),
661
662
  [e.email]
662
663
  ), Ie = C(
663
664
  () => !!(e.mobilePhone && e.mobilePhone.length >= 6),
@@ -703,11 +704,11 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
703
704
  // config.
704
705
  confirmationChannels: X ? de : void 0
705
706
  };
706
- s(O);
707
+ a(O);
707
708
  }, ge = (v, O) => {
708
709
  const z = O && /^https?:\/\//i.test(O) ? O : void 0;
709
- return z ? /* @__PURE__ */ a(
710
- es,
710
+ return z ? /* @__PURE__ */ s(
711
+ ts,
711
712
  {
712
713
  i18nKey: v,
713
714
  components: {
@@ -718,7 +719,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
718
719
  // label.
719
720
  policyLink: (
720
721
  // eslint-disable-next-line jsx-a11y/anchor-has-content
721
- /* @__PURE__ */ a(
722
+ /* @__PURE__ */ s(
722
723
  "a",
723
724
  {
724
725
  href: z,
@@ -743,13 +744,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
743
744
  children: [
744
745
  y,
745
746
  /* @__PURE__ */ b("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
746
- /* @__PURE__ */ a(
747
- oe,
747
+ /* @__PURE__ */ s(
748
+ re,
748
749
  {
749
750
  label: p("booking.details.firstName.label"),
750
751
  required: !0,
751
752
  error: T.firstName && !((_e = e.firstName) != null && _e.trim()) ? p("booking.details.firstName.required") : void 0,
752
- children: /* @__PURE__ */ a(
753
+ children: /* @__PURE__ */ s(
753
754
  Fe,
754
755
  {
755
756
  autoComplete: "given-name",
@@ -760,13 +761,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
760
761
  )
761
762
  }
762
763
  ),
763
- /* @__PURE__ */ a(
764
- oe,
764
+ /* @__PURE__ */ s(
765
+ re,
765
766
  {
766
767
  label: p("booking.details.lastName.label"),
767
768
  required: !0,
768
769
  error: T.lastName && !((Oe = e.lastName) != null && Oe.trim()) ? p("booking.details.lastName.required") : void 0,
769
- children: /* @__PURE__ */ a(
770
+ children: /* @__PURE__ */ s(
770
771
  Fe,
771
772
  {
772
773
  autoComplete: "family-name",
@@ -779,14 +780,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
779
780
  )
780
781
  ] }),
781
782
  /* @__PURE__ */ b("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
782
- /* @__PURE__ */ a(
783
- oe,
783
+ /* @__PURE__ */ s(
784
+ re,
784
785
  {
785
786
  label: p("booking.details.email.label"),
786
787
  required: !0,
787
788
  error: T.email && !fe ? p("booking.details.email.invalid") : void 0,
788
- children: /* @__PURE__ */ a(
789
- ns,
789
+ children: /* @__PURE__ */ s(
790
+ is,
790
791
  {
791
792
  value: e.email ?? "",
792
793
  onChange: (v) => L({ email: v.target.value }),
@@ -795,14 +796,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
795
796
  )
796
797
  }
797
798
  ),
798
- /* @__PURE__ */ a(
799
- oe,
799
+ /* @__PURE__ */ s(
800
+ re,
800
801
  {
801
802
  label: p("booking.details.mobilePhone.label"),
802
803
  required: !0,
803
804
  error: T.mobilePhone && !Ie ? p("booking.details.mobilePhone.invalid") : void 0,
804
- children: /* @__PURE__ */ a(
805
- is,
805
+ children: /* @__PURE__ */ s(
806
+ rs,
806
807
  {
807
808
  value: e.mobilePhone ?? "",
808
809
  defaultCountry: I == null ? void 0 : I.toUpperCase(),
@@ -815,14 +816,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
815
816
  )
816
817
  ] }),
817
818
  n || i ? /* @__PURE__ */ b("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
818
- n ? /* @__PURE__ */ a(
819
- oe,
819
+ n ? /* @__PURE__ */ s(
820
+ re,
820
821
  {
821
822
  label: p("booking.details.codiceFiscale.label"),
822
823
  required: !0,
823
824
  description: D.state === "pending" ? p("booking.details.codiceFiscale.checking") : p("booking.details.codiceFiscale.helper"),
824
825
  error: T.codiceFiscale && D.state === "invalid" ? D.hint ?? p("booking.details.codiceFiscale.invalid") : void 0,
825
- children: /* @__PURE__ */ a(
826
+ children: /* @__PURE__ */ s(
826
827
  Fe,
827
828
  {
828
829
  value: e.codiceFiscale ?? "",
@@ -835,14 +836,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
835
836
  )
836
837
  }
837
838
  ) : null,
838
- i ? /* @__PURE__ */ a(
839
- oe,
839
+ i ? /* @__PURE__ */ s(
840
+ re,
840
841
  {
841
842
  label: p("booking.details.dateOfBirth.label"),
842
843
  required: !0,
843
844
  error: T.dateOfBirth && !e.dateOfBirth ? p("booking.details.dateOfBirth.required") : void 0,
844
- children: /* @__PURE__ */ a(
845
- as,
845
+ children: /* @__PURE__ */ s(
846
+ ns,
846
847
  {
847
848
  value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
848
849
  onChange: (v) => {
@@ -855,14 +856,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
855
856
  }
856
857
  ) : null
857
858
  ] }) : null,
858
- se ? /* @__PURE__ */ a(
859
- oe,
859
+ se ? /* @__PURE__ */ s(
860
+ re,
860
861
  {
861
862
  label: p("booking.details.insuranceNumber.label"),
862
863
  required: !0,
863
864
  description: g.state === "pending" ? p("booking.details.insuranceNumber.checking") : void 0,
864
865
  error: T.insuranceNumber && g.state === "invalid" ? g.hint ?? p("booking.details.insuranceNumber.invalid") : void 0,
865
- children: /* @__PURE__ */ a(
866
+ children: /* @__PURE__ */ s(
866
867
  Fe,
867
868
  {
868
869
  value: e.insuranceNumber ?? "",
@@ -872,14 +873,14 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
872
873
  )
873
874
  }
874
875
  ) : null,
875
- d ? /* @__PURE__ */ a(
876
- oe,
876
+ d ? /* @__PURE__ */ s(
877
+ re,
877
878
  {
878
879
  label: p("booking.details.note.label"),
879
880
  description: p("booking.details.note.helper", {
880
881
  max: St
881
882
  }),
882
- children: /* @__PURE__ */ a(
883
+ children: /* @__PURE__ */ s(
883
884
  os,
884
885
  {
885
886
  value: e.note ?? "",
@@ -890,7 +891,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
890
891
  )
891
892
  }
892
893
  ) : null,
893
- f ? /* @__PURE__ */ a(
894
+ f ? /* @__PURE__ */ s(
894
895
  tt,
895
896
  {
896
897
  checked: !!e.returningPatient,
@@ -899,7 +900,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
899
900
  }
900
901
  ) : null,
901
902
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
902
- /* @__PURE__ */ a(
903
+ /* @__PURE__ */ s(
903
904
  tt,
904
905
  {
905
906
  checked: !!e.privacyConsent,
@@ -907,9 +908,9 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
907
908
  label: /* @__PURE__ */ b(ee, { children: [
908
909
  ge(
909
910
  "booking.details.consent.privacy.label",
910
- r
911
+ o
911
912
  ),
912
- /* @__PURE__ */ a(
913
+ /* @__PURE__ */ s(
913
914
  "span",
914
915
  {
915
916
  "aria-hidden": "true",
@@ -920,7 +921,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
920
921
  ] })
921
922
  }
922
923
  ),
923
- /* @__PURE__ */ a(
924
+ /* @__PURE__ */ s(
924
925
  tt,
925
926
  {
926
927
  checked: !!e.termsConsent,
@@ -930,7 +931,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
930
931
  "booking.details.consent.terms.label",
931
932
  l
932
933
  ),
933
- /* @__PURE__ */ a(
934
+ /* @__PURE__ */ s(
934
935
  "span",
935
936
  {
936
937
  "aria-hidden": "true",
@@ -942,13 +943,13 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
942
943
  }
943
944
  )
944
945
  ] }),
945
- X ? /* @__PURE__ */ a(
946
+ X ? /* @__PURE__ */ s(
946
947
  "div",
947
948
  {
948
949
  "data-component": "booking-confirmation-channels",
949
950
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
950
- children: /* @__PURE__ */ a(
951
- ss,
951
+ children: /* @__PURE__ */ s(
952
+ as,
952
953
  {
953
954
  label: p("booking.confirmation.heading"),
954
955
  helperText: p("booking.confirmation.helper"),
@@ -957,7 +958,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
957
958
  confirmationChannels: v
958
959
  }),
959
960
  orientation: "vertical",
960
- options: re.map((v) => ({
961
+ options: oe.map((v) => ({
961
962
  value: v,
962
963
  label: p(`booking.confirmation.channel.${v}`)
963
964
  })),
@@ -966,15 +967,15 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
966
967
  )
967
968
  }
968
969
  ) : null,
969
- x ? /* @__PURE__ */ a(U, { variant: "error", children: /* @__PURE__ */ a(U.Description, { children: x }) }) : null,
970
- /* @__PURE__ */ a(
970
+ x ? /* @__PURE__ */ s(U, { variant: "error", children: /* @__PURE__ */ s(U.Description, { children: x }) }) : null,
971
+ /* @__PURE__ */ s(
971
972
  pe,
972
973
  {
973
974
  intent: "primary",
974
975
  size: "md",
975
976
  type: "submit",
976
977
  disabled: !ae,
977
- startIcon: h ? /* @__PURE__ */ a(rs, { variant: "pulse", size: "sm" }) : void 0,
978
+ startIcon: h ? /* @__PURE__ */ s(ds, { variant: "pulse", size: "sm" }) : void 0,
978
979
  children: p("booking.details.submit")
979
980
  }
980
981
  )
@@ -984,7 +985,7 @@ const St = 500, oa = /^[A-Z0-9]{16}$/, ra = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, xt = 3
984
985
  }
985
986
  );
986
987
  lt.displayName = "BookingDetailsForm";
987
- const da = Ge(
988
+ const la = Ge(
988
989
  "ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
989
990
  {
990
991
  variants: {
@@ -1012,44 +1013,44 @@ const da = Ge(
1012
1013
  },
1013
1014
  defaultVariants: { variant: "inline-list", surface: "flat" }
1014
1015
  }
1015
- ), la = [
1016
+ ), ca = [
1016
1017
  [
1017
1018
  /\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
1018
1019
  yt
1019
1020
  ],
1020
- [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, ks],
1021
- [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, qs],
1022
- [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Ss],
1023
- [/\b(otorin|udito|orecchi|hearing|ear)/i, Es],
1024
- [/\b(neuro|brain|cervello)/i, Os],
1025
- [/\b(pediatr|child|bambin)/i, Ds],
1026
- [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Ts],
1027
- [/\b(lab|analis|test|sang|esami)/i, Vs],
1028
- [/\b(farmaco|pharm|pillol|refill)/i, $s],
1029
- [/\b(chirurg|surg|intervent|operat)/i, Ks],
1030
- [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, xs],
1021
+ [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, Ss],
1022
+ [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Gs],
1023
+ [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, xs],
1024
+ [/\b(otorin|udito|orecchi|hearing|ear)/i, Rs],
1025
+ [/\b(neuro|brain|cervello)/i, Bs],
1026
+ [/\b(pediatr|child|bambin)/i, As],
1027
+ [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, _s],
1028
+ [/\b(lab|analis|test|sang|esami)/i, Fs],
1029
+ [/\b(farmaco|pharm|pillol|refill)/i, zs],
1030
+ [/\b(chirurg|surg|intervent|operat)/i, js],
1031
+ [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Is],
1031
1032
  [/\b(vacc|inject|inie|punto)/i, yt],
1032
- [/\b(derma|skin|pelle)/i, Is],
1033
- [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, Ns],
1034
- [/\b(general|medicin|family|control|check[-\s]?up)/i, Cs]
1033
+ [/\b(derma|skin|pelle)/i, Ns],
1034
+ [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, ws],
1035
+ [/\b(general|medicin|family|control|check[-\s]?up)/i, Ms]
1035
1036
  ];
1036
- function ca(e) {
1037
- for (const [t, s] of la)
1038
- if (t.test(e)) return s;
1037
+ function ua(e) {
1038
+ for (const [t, a] of ca)
1039
+ if (t.test(e)) return a;
1039
1040
  return null;
1040
1041
  }
1041
- function ua(e) {
1042
- const t = ca(e.label) ?? ys;
1043
- return /* @__PURE__ */ a(t, { "aria-hidden": "true", className: "ds:size-5" });
1042
+ function pa(e) {
1043
+ const t = ua(e.label) ?? ks;
1044
+ return /* @__PURE__ */ s(t, { "aria-hidden": "true", className: "ds:size-5" });
1044
1045
  }
1045
- function Rt(e) {
1046
+ function Vt(e) {
1046
1047
  var t;
1047
1048
  return (t = e.priceLabel) != null && t.trim() ? e.priceLabel : void 0;
1048
1049
  }
1049
1050
  function ce(e) {
1050
1051
  return je(e, "yyyy-MM-dd");
1051
1052
  }
1052
- const pa = [
1053
+ const ma = [
1053
1054
  "ds:relative ds:flex ds:items-center ds:justify-center",
1054
1055
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
1055
1056
  "ds:rounded-[var(--radius-sm)]",
@@ -1059,7 +1060,7 @@ const pa = [
1059
1060
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
1060
1061
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1061
1062
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
1062
- ].join(" "), ma = Ge(pa, {
1063
+ ].join(" "), fa = Ge(ma, {
1063
1064
  variants: {
1064
1065
  state: {
1065
1066
  available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
@@ -1070,15 +1071,15 @@ const pa = [
1070
1071
  },
1071
1072
  defaultVariants: { state: "unavailable" }
1072
1073
  });
1073
- function fa({
1074
+ function ga({
1074
1075
  availableDates: e,
1075
1076
  selectedDate: t,
1076
- onSelectDate: s,
1077
+ onSelectDate: a,
1077
1078
  locale: n,
1078
1079
  loading: i
1079
1080
  }) {
1080
- const { t: o } = P(), c = C(() => t ? Me(K(t)) : e.length > 0 ? Me(K(e[0])) : Me(/* @__PURE__ */ new Date()), [t, e]), [d, f] = H(c), [r, l] = H(null), u = C(() => {
1081
- const x = Me(d), S = ms(d), p = x.getDay(), _ = S.getDate(), D = [];
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 = [];
1082
1083
  for (let m = p; m > 0; m -= 1) {
1083
1084
  const g = new Date(x);
1084
1085
  g.setDate(x.getDate() - m), D.push(g);
@@ -1116,13 +1117,13 @@ function fa({
1116
1117
  (x) => y.has(ce(x)),
1117
1118
  [y]
1118
1119
  ), N = C(() => {
1119
- if (r) return r;
1120
+ if (o) return o;
1120
1121
  if (t) return K(t);
1121
1122
  const x = u.find(
1122
1123
  (S) => $e(S, d) && I(S)
1123
1124
  );
1124
1125
  return x || (u.find((S) => $e(S, d)) ?? null);
1125
- }, [r, t, u, d, I]), w = Z(
1126
+ }, [o, t, u, d, I]), w = Z(
1126
1127
  (x, S) => {
1127
1128
  let p = null;
1128
1129
  switch (x.key) {
@@ -1146,7 +1147,7 @@ function fa({
1146
1147
  break;
1147
1148
  case "Enter":
1148
1149
  case " ": {
1149
- x.preventDefault(), I(S) && s(ce(S));
1150
+ x.preventDefault(), I(S) && a(ce(S));
1150
1151
  return;
1151
1152
  }
1152
1153
  default:
@@ -1154,36 +1155,36 @@ function fa({
1154
1155
  }
1155
1156
  p && (x.preventDefault(), $e(p, d) || f(Me(p)), l(p));
1156
1157
  },
1157
- [I, s, d]
1158
+ [I, a, d]
1158
1159
  );
1159
1160
  return i ? /* @__PURE__ */ b(
1160
1161
  "div",
1161
1162
  {
1162
1163
  role: "status",
1163
1164
  "aria-live": "polite",
1164
- "aria-label": o("common.loading"),
1165
+ "aria-label": r("common.loading"),
1165
1166
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1166
1167
  children: [
1167
- /* @__PURE__ */ a(qe, { variant: "text", width: "40%" }),
1168
- /* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (x, S) => /* @__PURE__ */ a(qe, { variant: "rounded", height: "2.5rem" }, `mg-skel-${S}`)) })
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
1170
  ]
1170
1171
  }
1171
1172
  ) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1172
1173
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1173
- /* @__PURE__ */ a(
1174
+ /* @__PURE__ */ s(
1174
1175
  vt,
1175
1176
  {
1176
- icon: /* @__PURE__ */ a(gs, {}),
1177
- "aria-label": o("booking.previousMonth"),
1177
+ icon: /* @__PURE__ */ s(hs, {}),
1178
+ "aria-label": r("booking.previousMonth"),
1178
1179
  size: "sm",
1179
1180
  intent: "ghost",
1180
1181
  flipIconInRtl: !0,
1181
1182
  onClick: () => {
1182
- f((x) => Js(x)), l(null);
1183
+ f((x) => Ys(x)), l(null);
1183
1184
  }
1184
1185
  }
1185
1186
  ),
1186
- /* @__PURE__ */ a(
1187
+ /* @__PURE__ */ s(
1187
1188
  "span",
1188
1189
  {
1189
1190
  className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
@@ -1191,16 +1192,16 @@ function fa({
1191
1192
  children: k
1192
1193
  }
1193
1194
  ),
1194
- /* @__PURE__ */ a(
1195
+ /* @__PURE__ */ s(
1195
1196
  vt,
1196
1197
  {
1197
- icon: /* @__PURE__ */ a(hs, {}),
1198
- "aria-label": o("booking.nextMonth"),
1198
+ icon: /* @__PURE__ */ s(vs, {}),
1199
+ "aria-label": r("booking.nextMonth"),
1199
1200
  size: "sm",
1200
1201
  intent: "ghost",
1201
1202
  flipIconInRtl: !0,
1202
1203
  onClick: () => {
1203
- f((x) => Mt(x, 1)), l(null);
1204
+ f((x) => Dt(x, 1)), l(null);
1204
1205
  }
1205
1206
  }
1206
1207
  )
@@ -1209,15 +1210,15 @@ function fa({
1209
1210
  "div",
1210
1211
  {
1211
1212
  role: "grid",
1212
- "aria-label": o("booking.monthGridLabel"),
1213
+ "aria-label": r("booking.monthGridLabel"),
1213
1214
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
1214
1215
  children: [
1215
- /* @__PURE__ */ a(
1216
+ /* @__PURE__ */ s(
1216
1217
  "div",
1217
1218
  {
1218
1219
  role: "row",
1219
1220
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
1220
- children: h.map((x, S) => /* @__PURE__ */ a(
1221
+ children: h.map((x, S) => /* @__PURE__ */ s(
1221
1222
  "div",
1222
1223
  {
1223
1224
  role: "columnheader",
@@ -1228,7 +1229,7 @@ function fa({
1228
1229
  ))
1229
1230
  }
1230
1231
  ),
1231
- Array.from({ length: 6 }, (x, S) => /* @__PURE__ */ a(
1232
+ Array.from({ length: 6 }, (x, S) => /* @__PURE__ */ s(
1232
1233
  "div",
1233
1234
  {
1234
1235
  role: "row",
@@ -1243,7 +1244,7 @@ function fa({
1243
1244
  return je(p, "PPP");
1244
1245
  }
1245
1246
  })();
1246
- return /* @__PURE__ */ a(
1247
+ return /* @__PURE__ */ s(
1247
1248
  "button",
1248
1249
  {
1249
1250
  type: "button",
@@ -1254,11 +1255,11 @@ function fa({
1254
1255
  tabIndex: V ? 0 : -1,
1255
1256
  disabled: !g,
1256
1257
  onClick: () => {
1257
- g && s(ce(p));
1258
+ g && a(ce(p));
1258
1259
  },
1259
1260
  onKeyDown: (R) => w(R, p),
1260
- className: ma({ state: T }),
1261
- children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: p.getDate() })
1261
+ className: fa({ state: T }),
1262
+ children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children: p.getDate() })
1262
1263
  },
1263
1264
  `mg-cell-${D}`
1264
1265
  );
@@ -1271,7 +1272,7 @@ function fa({
1271
1272
  )
1272
1273
  ] });
1273
1274
  }
1274
- const ga = Ge(
1275
+ const ha = Ge(
1275
1276
  [
1276
1277
  "ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
1277
1278
  "ds:min-h-[var(--min-target-size)]",
@@ -1297,12 +1298,12 @@ const ga = Ge(
1297
1298
  defaultVariants: { state: "idle" }
1298
1299
  }
1299
1300
  );
1300
- function ha({
1301
+ function va({
1301
1302
  services: e,
1302
1303
  selectedServiceId: t,
1303
- onSelect: s
1304
+ onSelect: a
1304
1305
  }) {
1305
- const { t: n } = P(), i = it(), [o, c] = H(() => {
1306
+ const { t: n } = P(), i = it(), [r, c] = H(() => {
1306
1307
  if (t) {
1307
1308
  const l = e.findIndex((u) => u.id === t);
1308
1309
  if (l >= 0) return l;
@@ -1311,7 +1312,7 @@ function ha({
1311
1312
  }), d = Y(/* @__PURE__ */ new Map()), f = Z((l) => {
1312
1313
  var u;
1313
1314
  (u = d.current.get(l)) == null || u.focus();
1314
- }, []), r = Z(
1315
+ }, []), o = Z(
1315
1316
  (l, u, k) => {
1316
1317
  const h = e.length;
1317
1318
  if (h !== 0)
@@ -1342,14 +1343,14 @@ function ha({
1342
1343
  }
1343
1344
  case "Enter":
1344
1345
  case " ": {
1345
- l.preventDefault(), s(k);
1346
+ l.preventDefault(), a(k);
1346
1347
  break;
1347
1348
  }
1348
1349
  }
1349
1350
  },
1350
- [e.length, f, s]
1351
+ [e.length, f, a]
1351
1352
  );
1352
- return e.length === 0 ? null : /* @__PURE__ */ a(
1353
+ return e.length === 0 ? null : /* @__PURE__ */ s(
1353
1354
  "div",
1354
1355
  {
1355
1356
  role: "radiogroup",
@@ -1357,13 +1358,13 @@ function ha({
1357
1358
  id: i,
1358
1359
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1359
1360
  children: e.map((l, u) => {
1360
- const k = t === l.id, h = o === u, y = Rt(l), I = y ? n("booking.serviceCardLabelPrice", {
1361
+ const k = t === l.id, h = r === u, y = Vt(l), I = y ? n("booking.serviceCardLabelPrice", {
1361
1362
  label: l.label,
1362
1363
  price: y
1363
1364
  }) : n("booking.serviceCardLabel", {
1364
1365
  label: l.label,
1365
1366
  duration: l.durationMin
1366
- }), N = ua(l);
1367
+ }), N = pa(l);
1367
1368
  return /* @__PURE__ */ b(
1368
1369
  "button",
1369
1370
  {
@@ -1375,14 +1376,14 @@ function ha({
1375
1376
  "aria-checked": k,
1376
1377
  "aria-label": I,
1377
1378
  tabIndex: h ? 0 : -1,
1378
- onClick: () => s(l.id),
1379
+ onClick: () => a(l.id),
1379
1380
  onFocus: () => c(u),
1380
- onKeyDown: (w) => r(w, u, l.id),
1381
- className: ga({
1381
+ onKeyDown: (w) => o(w, u, l.id),
1382
+ className: ha({
1382
1383
  state: k ? "selected" : "idle"
1383
1384
  }),
1384
1385
  children: [
1385
- /* @__PURE__ */ a(
1386
+ /* @__PURE__ */ s(
1386
1387
  "span",
1387
1388
  {
1388
1389
  "aria-hidden": "true",
@@ -1391,9 +1392,19 @@ function ha({
1391
1392
  }
1392
1393
  ),
1393
1394
  /* @__PURE__ */ b("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
1394
- /* @__PURE__ */ a("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: l.label }),
1395
- /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: y ?? n("booking.serviceSummary", { minutes: l.durationMin }) })
1396
- ] })
1395
+ /* @__PURE__ */ s("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: l.label }),
1396
+ y ? null : /* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: n("booking.serviceSummary", {
1397
+ minutes: l.durationMin
1398
+ }) })
1399
+ ] }),
1400
+ y ? /* @__PURE__ */ s(
1401
+ "span",
1402
+ {
1403
+ "aria-hidden": "true",
1404
+ className: "ds:inline-flex ds:shrink-0 ds:items-center ds:ms-auto",
1405
+ children: /* @__PURE__ */ s(Ct, { variant: "accentSoft", size: "lg", children: y })
1406
+ }
1407
+ ) : null
1397
1408
  ]
1398
1409
  },
1399
1410
  l.id
@@ -1402,7 +1413,7 @@ function ha({
1402
1413
  }
1403
1414
  );
1404
1415
  }
1405
- const va = Ge(
1416
+ const ba = Ge(
1406
1417
  [
1407
1418
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
1408
1419
  "ds:min-h-[var(--min-target-size)]",
@@ -1428,26 +1439,26 @@ const va = Ge(
1428
1439
  defaultVariants: { state: "idle" }
1429
1440
  }
1430
1441
  );
1431
- function ba(e) {
1432
- const [t] = e.split(":").map((n) => parseInt(n, 10)), s = Number.isFinite(t) ? t : 0;
1433
- return s < 12 ? "morning" : s < 17 ? "afternoon" : "evening";
1442
+ function ya(e) {
1443
+ const [t] = e.split(":").map((n) => parseInt(n, 10)), a = Number.isFinite(t) ? t : 0;
1444
+ return a < 12 ? "morning" : a < 17 ? "afternoon" : "evening";
1434
1445
  }
1435
- const ya = {
1436
- morning: bs,
1437
- afternoon: Hs,
1438
- evening: vs
1446
+ const ka = {
1447
+ morning: ys,
1448
+ afternoon: Us,
1449
+ evening: bs
1439
1450
  };
1440
- function ka({
1451
+ function Sa({
1441
1452
  date: e,
1442
1453
  slots: t,
1443
- selectedSlotKey: s,
1454
+ selectedSlotKey: a,
1444
1455
  onSelect: n,
1445
1456
  loading: i,
1446
- locale: o
1457
+ locale: r
1447
1458
  }) {
1448
1459
  const { t: c } = P(), d = C(() => {
1449
1460
  try {
1450
- return new Intl.DateTimeFormat(o, {
1461
+ return new Intl.DateTimeFormat(r, {
1451
1462
  weekday: "long",
1452
1463
  day: "numeric",
1453
1464
  month: "long"
@@ -1455,62 +1466,62 @@ function ka({
1455
1466
  } catch {
1456
1467
  return e;
1457
1468
  }
1458
- }, [e, o]), f = C(() => {
1469
+ }, [e, r]), f = C(() => {
1459
1470
  const u = {
1460
1471
  morning: [],
1461
1472
  afternoon: [],
1462
1473
  evening: []
1463
1474
  };
1464
1475
  for (const k of t)
1465
- u[ba(k.time)].push(k);
1476
+ u[ya(k.time)].push(k);
1466
1477
  return u;
1467
- }, [t]), r = t.filter((u) => u.available).length, l = ["morning", "afternoon", "evening"];
1478
+ }, [t]), o = t.filter((u) => u.available).length, l = ["morning", "afternoon", "evening"];
1468
1479
  return i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1469
- /* @__PURE__ */ a(qe, { variant: "text", width: "60%" }),
1470
- [0, 1].map((u) => /* @__PURE__ */ a(
1480
+ /* @__PURE__ */ s(qe, { variant: "text", width: "60%" }),
1481
+ [0, 1].map((u) => /* @__PURE__ */ s(
1471
1482
  "div",
1472
1483
  {
1473
1484
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
1474
- children: [0, 1, 2].map((k) => /* @__PURE__ */ a(qe, { variant: "rounded", height: "44px" }, k))
1485
+ children: [0, 1, 2].map((k) => /* @__PURE__ */ s(qe, { variant: "rounded", height: "44px" }, k))
1475
1486
  },
1476
1487
  u
1477
1488
  ))
1478
- ] }) : r === 0 ? /* @__PURE__ */ a(Ct, { variant: "no-results", title: c("booking.noSlotsForDate") }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1489
+ ] }) : o === 0 ? /* @__PURE__ */ s(Mt, { variant: "no-results", title: c("booking.noSlotsForDate") }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1479
1490
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1480
1491
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1481
- /* @__PURE__ */ a(
1482
- Ps,
1492
+ /* @__PURE__ */ s(
1493
+ Ls,
1483
1494
  {
1484
1495
  "aria-hidden": "true",
1485
1496
  className: "ds:size-4 ds:text-[color:var(--accent)]"
1486
1497
  }
1487
1498
  ),
1488
- /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: d })
1499
+ /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: d })
1489
1500
  ] }),
1490
- /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count: r }) })
1501
+ /* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count: o }) })
1491
1502
  ] }),
1492
1503
  l.map((u) => {
1493
1504
  const k = f[u];
1494
1505
  if (k.length === 0) return null;
1495
- const h = ya[u];
1506
+ const h = ka[u];
1496
1507
  return /* @__PURE__ */ b(
1497
1508
  "div",
1498
1509
  {
1499
1510
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
1500
1511
  children: [
1501
1512
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
1502
- /* @__PURE__ */ a(h, { "aria-hidden": "true", className: "ds:size-3.5" }),
1503
- /* @__PURE__ */ a("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: c(`booking.timeOfDay.${u}`) })
1513
+ /* @__PURE__ */ s(h, { "aria-hidden": "true", className: "ds:size-3.5" }),
1514
+ /* @__PURE__ */ s("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: c(`booking.timeOfDay.${u}`) })
1504
1515
  ] }),
1505
- /* @__PURE__ */ a(
1516
+ /* @__PURE__ */ s(
1506
1517
  "div",
1507
1518
  {
1508
1519
  role: "group",
1509
1520
  "aria-label": c(`booking.timeOfDay.${u}`),
1510
1521
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
1511
1522
  children: k.map((y) => {
1512
- const I = y.key === s, N = y.available ? I ? "selected" : "idle" : "unavailable";
1513
- return /* @__PURE__ */ a(
1523
+ const I = y.key === a, N = y.available ? I ? "selected" : "idle" : "unavailable";
1524
+ return /* @__PURE__ */ s(
1514
1525
  "button",
1515
1526
  {
1516
1527
  type: "button",
@@ -1521,7 +1532,7 @@ function ka({
1521
1532
  time: y.time
1522
1533
  }),
1523
1534
  onClick: () => y.available && n(y),
1524
- className: va({ state: N }),
1535
+ className: ba({ state: N }),
1525
1536
  children: y.time
1526
1537
  },
1527
1538
  y.key
@@ -1537,21 +1548,21 @@ function ka({
1537
1548
  ] });
1538
1549
  }
1539
1550
  const Ke = 4;
1540
- function Sa({
1551
+ function xa({
1541
1552
  availableDates: e,
1542
1553
  availableSlots: t,
1543
- value: s,
1554
+ value: a,
1544
1555
  onChange: n,
1545
1556
  onDateSelect: i,
1546
- onWindowChange: o,
1557
+ onWindowChange: r,
1547
1558
  loadingDates: c,
1548
1559
  loadingSlots: d,
1549
1560
  locale: f,
1550
- agentIdBase: r
1561
+ agentIdBase: o
1551
1562
  }) {
1552
1563
  const l = C(() => ye(/* @__PURE__ */ new Date()), []), [u, k] = H(() => {
1553
- if (s.date) {
1554
- const g = ye(K(s.date));
1564
+ if (a.date) {
1565
+ const g = ye(K(a.date));
1555
1566
  if (!ke(l, g)) return g;
1556
1567
  }
1557
1568
  if (e.length > 0) {
@@ -1574,7 +1585,7 @@ function Sa({
1574
1585
  return { date: V, slots: R };
1575
1586
  }), [u, t]), I = ke(u, l), N = !0, w = Z(() => {
1576
1587
  k((g) => {
1577
- const A = fs(g, Ke);
1588
+ const A = gs(g, Ke);
1578
1589
  return ke(l, A) ? l : A;
1579
1590
  });
1580
1591
  }, [l]), x = Z(() => {
@@ -1585,22 +1596,22 @@ function Sa({
1585
1596
  const g = ye(K(e[0]));
1586
1597
  !ke(g, l) || e.some((T) => {
1587
1598
  const V = ye(K(T));
1588
- return !ke(V, h) && !ps(V, u);
1599
+ return !ke(V, h) && !ms(V, u);
1589
1600
  }) || k(g);
1590
1601
  }, [e]), q(() => {
1591
- o == null || o(ce(u), ce(h));
1592
- }, [u, h, o]);
1602
+ r == null || r(ce(u), ce(h));
1603
+ }, [u, h, r]);
1593
1604
  const S = Z(
1594
1605
  (g, A) => {
1595
1606
  const T = typeof A.date == "string" ? A.date : ce(A.date);
1596
1607
  n({
1597
- ...Lt(Ue(s, T), g.id)
1608
+ ...Et(Ue(a, T), g.id)
1598
1609
  }), i == null || i(T);
1599
1610
  },
1600
- [n, i, s]
1611
+ [n, i, a]
1601
1612
  ), p = c || d ? "loading" : "default", _ = y.some((g) => g.slots.length > 0), D = e[0];
1602
1613
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1603
- !_ && !!D ? /* @__PURE__ */ a(
1614
+ !_ && !!D ? /* @__PURE__ */ s(
1604
1615
  ct,
1605
1616
  {
1606
1617
  nextAvailableDate: D,
@@ -1608,13 +1619,13 @@ function Sa({
1608
1619
  locale: f
1609
1620
  }
1610
1621
  ) : null,
1611
- /* @__PURE__ */ a(
1612
- cs,
1622
+ /* @__PURE__ */ s(
1623
+ us,
1613
1624
  {
1614
- id: r ? `${r}-slots` : void 0,
1625
+ id: o ? `${o}-slots` : void 0,
1615
1626
  days: y,
1616
1627
  state: p,
1617
- selectedSlotId: s.slotKey,
1628
+ selectedSlotId: a.slotKey,
1618
1629
  maxInitialSlotsPerDay: 6,
1619
1630
  locale: f,
1620
1631
  hasPrevious: I,
@@ -1626,68 +1637,68 @@ function Sa({
1626
1637
  )
1627
1638
  ] });
1628
1639
  }
1629
- function Vt(e) {
1640
+ function Ft(e) {
1630
1641
  const {
1631
1642
  inputs: t,
1632
- value: s,
1643
+ value: a,
1633
1644
  onChange: n,
1634
1645
  onDateSelect: i,
1635
- onWindowChange: o,
1646
+ onWindowChange: r,
1636
1647
  loadingDates: c,
1637
1648
  loadingSlots: d,
1638
1649
  locale: f,
1639
- datePickerStyle: r,
1650
+ datePickerStyle: o,
1640
1651
  agentIdBase: l
1641
1652
  } = e;
1642
- return r === "four-day-grid" ? /* @__PURE__ */ a(
1643
- Sa,
1653
+ return o === "four-day-grid" ? /* @__PURE__ */ s(
1654
+ xa,
1644
1655
  {
1645
1656
  availableDates: t.availableDates,
1646
1657
  availableSlots: t.availableSlots,
1647
- value: s,
1658
+ value: a,
1648
1659
  onChange: n,
1649
1660
  onDateSelect: i,
1650
- onWindowChange: o,
1661
+ onWindowChange: r,
1651
1662
  loadingDates: c,
1652
1663
  loadingSlots: d,
1653
1664
  locale: f,
1654
1665
  agentIdBase: l
1655
1666
  }
1656
- ) : /* @__PURE__ */ a(
1657
- fa,
1667
+ ) : /* @__PURE__ */ s(
1668
+ ga,
1658
1669
  {
1659
1670
  availableDates: t.availableDates,
1660
- selectedDate: s.date,
1671
+ selectedDate: a.date,
1661
1672
  onSelectDate: (u) => {
1662
- n(Ue(s, u)), i == null || i(u);
1673
+ n(Ue(a, u)), i == null || i(u);
1663
1674
  },
1664
1675
  locale: f,
1665
1676
  loading: c ?? d
1666
1677
  }
1667
1678
  );
1668
1679
  }
1669
- function Ft(e) {
1670
- const { inputs: t, value: s, onChange: n, loadingSlots: i, locale: o, datePickerStyle: c } = e;
1671
- return c === "four-day-grid" || !s.date ? null : /* @__PURE__ */ a(
1672
- ka,
1680
+ function $t(e) {
1681
+ const { inputs: t, value: a, onChange: n, loadingSlots: i, locale: r, datePickerStyle: c } = e;
1682
+ return c === "four-day-grid" || !a.date ? null : /* @__PURE__ */ s(
1683
+ Sa,
1673
1684
  {
1674
- date: s.date,
1675
- slots: t.availableSlots[s.date] ?? [],
1676
- selectedSlotKey: s.slotKey,
1677
- onSelect: (d) => n(Lt(s, d.key)),
1685
+ date: a.date,
1686
+ slots: t.availableSlots[a.date] ?? [],
1687
+ selectedSlotKey: a.slotKey,
1688
+ onSelect: (d) => n(Et(a, d.key)),
1678
1689
  loading: i,
1679
- locale: o
1690
+ locale: r
1680
1691
  }
1681
1692
  );
1682
1693
  }
1683
- function $t({ value: e, onChange: t }) {
1684
- const { t: s } = P(), n = [
1685
- { value: "private", label: s("booking.insurance.private") },
1686
- { value: "public", label: s("booking.insurance.public") }
1694
+ function zt({ value: e, onChange: t }) {
1695
+ const { t: a } = P(), n = [
1696
+ { value: "private", label: a("booking.insurance.private") },
1697
+ { value: "public", label: a("booking.insurance.public") }
1687
1698
  ];
1688
1699
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1689
- /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: s("booking.insurance.heading") }),
1690
- /* @__PURE__ */ a(
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
+ /* @__PURE__ */ s(
1691
1702
  He,
1692
1703
  {
1693
1704
  options: n,
@@ -1695,45 +1706,45 @@ function $t({ value: e, onChange: t }) {
1695
1706
  onValueChange: (i) => {
1696
1707
  (i === "private" || i === "public") && t(i);
1697
1708
  },
1698
- placeholder: s("booking.insurance.placeholder"),
1699
- "aria-label": s("booking.insurance.heading")
1709
+ placeholder: a("booking.insurance.placeholder"),
1710
+ "aria-label": a("booking.insurance.heading")
1700
1711
  }
1701
1712
  )
1702
1713
  ] });
1703
1714
  }
1704
- function zt({
1715
+ function Kt({
1705
1716
  specialties: e,
1706
1717
  value: t,
1707
- valueIds: s,
1718
+ valueIds: a,
1708
1719
  onChange: n,
1709
1720
  onChangeIds: i,
1710
- pickerStyle: o = "select"
1721
+ pickerStyle: r = "select"
1711
1722
  }) {
1712
- const { t: c } = P(), d = e.map((r) => ({
1713
- value: r.id,
1714
- label: r.label
1715
- })), f = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.specialty.heading") });
1716
- return o === "multi-select" && i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1723
+ const { t: c } = P(), d = e.map((o) => ({
1724
+ value: o.id,
1725
+ label: o.label
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
+ return r === "multi-select" && i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1717
1728
  f,
1718
- /* @__PURE__ */ a(
1719
- rt,
1729
+ /* @__PURE__ */ s(
1730
+ ot,
1720
1731
  {
1721
1732
  options: d,
1722
- value: s ?? [],
1733
+ value: a ?? [],
1723
1734
  onChange: i,
1724
1735
  placeholder: c("booking.specialty.placeholder"),
1725
1736
  "aria-label": c("booking.specialty.heading"),
1726
1737
  allowClear: !0
1727
1738
  }
1728
1739
  )
1729
- ] }) : o === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1740
+ ] }) : r === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1730
1741
  f,
1731
- /* @__PURE__ */ a(
1732
- ot,
1742
+ /* @__PURE__ */ s(
1743
+ rt,
1733
1744
  {
1734
1745
  options: d,
1735
1746
  value: t ?? "",
1736
- onValueChange: (r) => n(r === "" ? "" : r),
1747
+ onValueChange: (o) => n(o === "" ? "" : o),
1737
1748
  placeholder: c("booking.specialty.placeholder"),
1738
1749
  "aria-label": c("booking.specialty.heading"),
1739
1750
  clearable: !0
@@ -1741,40 +1752,47 @@ function zt({
1741
1752
  )
1742
1753
  ] }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1743
1754
  f,
1744
- /* @__PURE__ */ a(
1755
+ /* @__PURE__ */ s(
1745
1756
  He,
1746
1757
  {
1747
1758
  options: d,
1748
1759
  value: t ?? "",
1749
- onValueChange: (r) => n(r),
1760
+ onValueChange: (o) => n(o),
1750
1761
  placeholder: c("booking.specialty.placeholder"),
1751
1762
  "aria-label": c("booking.specialty.heading")
1752
1763
  }
1753
1764
  )
1754
1765
  ] });
1755
1766
  }
1756
- function Kt({
1767
+ function jt({
1757
1768
  services: e,
1758
1769
  value: t,
1759
- valueIds: s,
1770
+ valueIds: a,
1760
1771
  onChange: n,
1761
1772
  onChangeIds: i,
1762
- pickerStyle: o,
1773
+ pickerStyle: r,
1763
1774
  compact: c
1764
1775
  }) {
1765
- const { t: d } = P(), f = o ?? (c ? "select" : "cards"), r = e.map((u) => ({
1766
- value: u.id,
1767
- label: `${u.label} · ${Rt(u) ?? d("booking.serviceSummary", {
1768
- minutes: u.durationMin
1769
- })}`
1770
- })), l = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: d("booking.service.heading") });
1776
+ const { t: d } = P(), f = r ?? (c ? "select" : "cards"), o = e.map((u) => {
1777
+ const k = Vt(u);
1778
+ return k ? {
1779
+ value: u.id,
1780
+ label: u.label,
1781
+ endContent: /* @__PURE__ */ s(Ct, { variant: "accentSoft", size: "lg", children: k })
1782
+ } : {
1783
+ value: u.id,
1784
+ label: `${u.label} · ${d("booking.serviceSummary", {
1785
+ minutes: u.durationMin
1786
+ })}`
1787
+ };
1788
+ }), l = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: d("booking.service.heading") });
1771
1789
  return f === "multi-select" && i ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1772
1790
  l,
1773
- /* @__PURE__ */ a(
1774
- rt,
1791
+ /* @__PURE__ */ s(
1792
+ ot,
1775
1793
  {
1776
- options: r,
1777
- value: s ?? [],
1794
+ options: o,
1795
+ value: a ?? [],
1778
1796
  onChange: i,
1779
1797
  placeholder: d("booking.service.placeholder"),
1780
1798
  "aria-label": d("booking.service.heading"),
@@ -1783,10 +1801,10 @@ function Kt({
1783
1801
  )
1784
1802
  ] }) : f === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1785
1803
  l,
1786
- /* @__PURE__ */ a(
1787
- ot,
1804
+ /* @__PURE__ */ s(
1805
+ rt,
1788
1806
  {
1789
- options: r,
1807
+ options: o,
1790
1808
  value: t ?? "",
1791
1809
  onValueChange: (u) => n(u === "" ? "" : u),
1792
1810
  placeholder: d("booking.service.placeholder"),
@@ -1796,10 +1814,10 @@ function Kt({
1796
1814
  )
1797
1815
  ] }) : f === "select" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1798
1816
  l,
1799
- /* @__PURE__ */ a(
1817
+ /* @__PURE__ */ s(
1800
1818
  He,
1801
1819
  {
1802
- options: r,
1820
+ options: o,
1803
1821
  value: t ?? "",
1804
1822
  onValueChange: (u) => n(u),
1805
1823
  placeholder: d("booking.service.placeholder"),
@@ -1808,8 +1826,8 @@ function Kt({
1808
1826
  )
1809
1827
  ] }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1810
1828
  l,
1811
- /* @__PURE__ */ a(
1812
- ha,
1829
+ /* @__PURE__ */ s(
1830
+ va,
1813
1831
  {
1814
1832
  services: e,
1815
1833
  selectedServiceId: t,
@@ -1818,27 +1836,27 @@ function Kt({
1818
1836
  )
1819
1837
  ] });
1820
1838
  }
1821
- function jt({
1839
+ function qt({
1822
1840
  operators: e,
1823
1841
  value: t,
1824
- valueIds: s,
1842
+ valueIds: a,
1825
1843
  onChange: n,
1826
1844
  onChangeIds: i,
1827
- pickerStyle: o = "select"
1845
+ pickerStyle: r = "select"
1828
1846
  }) {
1829
- const { t: c } = P(), d = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.operator.heading") });
1830
- if (o === "multi-select" && i) {
1831
- const r = e.map((l) => ({
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") });
1848
+ if (r === "multi-select" && i) {
1849
+ const o = e.map((l) => ({
1832
1850
  value: l.id,
1833
1851
  label: l.name
1834
1852
  }));
1835
1853
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1836
1854
  d,
1837
- /* @__PURE__ */ a(
1838
- rt,
1855
+ /* @__PURE__ */ s(
1856
+ ot,
1839
1857
  {
1840
- options: r,
1841
- value: s ?? [],
1858
+ options: o,
1859
+ value: a ?? [],
1842
1860
  onChange: i,
1843
1861
  placeholder: c("booking.operator.placeholder"),
1844
1862
  "aria-label": c("booking.operator.heading"),
@@ -1849,16 +1867,16 @@ function jt({
1849
1867
  }
1850
1868
  const f = [
1851
1869
  { value: W, label: c("booking.operator.all") },
1852
- ...e.map((r) => ({ value: r.id, label: r.name }))
1870
+ ...e.map((o) => ({ value: o.id, label: o.name }))
1853
1871
  ];
1854
- return o === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1872
+ return r === "combobox" ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1855
1873
  d,
1856
- /* @__PURE__ */ a(
1857
- ot,
1874
+ /* @__PURE__ */ s(
1875
+ rt,
1858
1876
  {
1859
1877
  options: f,
1860
1878
  value: t ?? W,
1861
- onValueChange: (r) => n(r === "" ? W : r),
1879
+ onValueChange: (o) => n(o === "" ? W : o),
1862
1880
  placeholder: c("booking.operator.placeholder"),
1863
1881
  "aria-label": c("booking.operator.heading"),
1864
1882
  clearable: !0
@@ -1866,62 +1884,62 @@ function jt({
1866
1884
  )
1867
1885
  ] }) : /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1868
1886
  d,
1869
- /* @__PURE__ */ a(
1887
+ /* @__PURE__ */ s(
1870
1888
  He,
1871
1889
  {
1872
1890
  options: f,
1873
1891
  value: t ?? W,
1874
- onValueChange: (r) => n(r),
1892
+ onValueChange: (o) => n(o),
1875
1893
  placeholder: c("booking.operator.placeholder"),
1876
1894
  "aria-label": c("booking.operator.heading")
1877
1895
  }
1878
1896
  )
1879
1897
  ] });
1880
1898
  }
1881
- function qt({
1899
+ function Gt({
1882
1900
  customSlot: e
1883
1901
  }) {
1884
1902
  const { t } = P();
1885
- return e ? /* @__PURE__ */ a(ee, { children: e }) : /* @__PURE__ */ b(U, { variant: "warning", children: [
1886
- /* @__PURE__ */ a(U.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1887
- /* @__PURE__ */ a(U.Description, { children: t("booking.onboardingIncomplete.description") })
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") })
1888
1906
  ] });
1889
1907
  }
1890
1908
  function ct({
1891
1909
  nextAvailableDate: e,
1892
1910
  onJump: t,
1893
- locale: s
1911
+ locale: a
1894
1912
  }) {
1895
1913
  const { t: n } = P(), i = C(() => {
1896
1914
  try {
1897
- return new Intl.DateTimeFormat(s, { dateStyle: "long" }).format(
1915
+ return new Intl.DateTimeFormat(a, { dateStyle: "long" }).format(
1898
1916
  K(e)
1899
1917
  );
1900
1918
  } catch {
1901
1919
  return e;
1902
1920
  }
1903
- }, [e, s]);
1921
+ }, [e, a]);
1904
1922
  return /* @__PURE__ */ b(U, { variant: "info", children: [
1905
- /* @__PURE__ */ a(U.Description, { children: n("booking.nextAvailable.description", { date: i }) }),
1906
- /* @__PURE__ */ a(U.Action, { children: /* @__PURE__ */ a(pe, { intent: "secondary", size: "sm", onClick: t, children: n("booking.nextAvailable.cta") }) })
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") }) })
1907
1925
  ] });
1908
1926
  }
1909
- function xa({
1927
+ function Ia({
1910
1928
  snapshot: e,
1911
1929
  operators: t,
1912
- specialties: s,
1930
+ specialties: a,
1913
1931
  services: n,
1914
1932
  locale: i,
1915
- mode: o,
1933
+ mode: r,
1916
1934
  showModify: c,
1917
1935
  onReset: d,
1918
1936
  onModify: f
1919
1937
  }) {
1920
- const { t: r } = P(), u = (e.details.confirmationChannels ?? ["email"]).map(
1921
- (w) => r(`booking.confirmation.channel.${w}`)
1922
- ), k = o === "demo" ? r("booking.success.descriptionDemo") : u.length > 1 ? r("booking.success.descriptionMultiple", {
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", {
1923
1941
  channels: u.join(" · ")
1924
- }) : r("booking.success.descriptionSingle", { channel: u[0] }), h = C(() => {
1942
+ }) : o("booking.success.descriptionSingle", { channel: u[0] }), h = C(() => {
1925
1943
  if (e.date)
1926
1944
  try {
1927
1945
  return new Intl.DateTimeFormat(i, {
@@ -1932,7 +1950,7 @@ function xa({
1932
1950
  } catch {
1933
1951
  return e.date;
1934
1952
  }
1935
- }, [e.date, i]), y = e.operatorId ? t.find((w) => w.id === e.operatorId) : void 0, I = e.specialtyId ? s.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 = 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;
1936
1954
  return /* @__PURE__ */ b(
1937
1955
  "div",
1938
1956
  {
@@ -1940,41 +1958,41 @@ function xa({
1940
1958
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1941
1959
  children: [
1942
1960
  /* @__PURE__ */ b(U, { variant: "success", children: [
1943
- /* @__PURE__ */ a(U.Title, { as: "h3", children: r("booking.success.heading") }),
1944
- /* @__PURE__ */ a(U.Description, { children: k })
1961
+ /* @__PURE__ */ s(U.Title, { as: "h3", children: o("booking.success.heading") }),
1962
+ /* @__PURE__ */ s(U.Description, { children: k })
1945
1963
  ] }),
1946
- /* @__PURE__ */ a("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: [
1964
+ /* @__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: [
1947
1965
  I ? /* @__PURE__ */ b(ee, { children: [
1948
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summarySpecialty") }),
1949
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: I.label })
1966
+ /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summarySpecialty") }),
1967
+ /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: I.label })
1950
1968
  ] }) : null,
1951
1969
  N ? /* @__PURE__ */ b(ee, { children: [
1952
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryService") }),
1953
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N.label })
1970
+ /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryService") }),
1971
+ /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N.label })
1954
1972
  ] }) : null,
1955
1973
  h ? /* @__PURE__ */ b(ee, { children: [
1956
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryDate") }),
1957
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: h })
1974
+ /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryDate") }),
1975
+ /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: h })
1958
1976
  ] }) : null,
1959
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryTime") }),
1960
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
1977
+ /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: o("booking.success.summaryTime") }),
1978
+ /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
1961
1979
  y ? /* @__PURE__ */ b(ee, { children: [
1962
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryProvider") }),
1963
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: y.name })
1980
+ /* @__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 })
1964
1982
  ] }) : null
1965
1983
  ] }) }),
1966
1984
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1967
- /* @__PURE__ */ a(pe, { intent: "secondary", size: "md", onClick: d, children: r("booking.success.bookAnother") }),
1968
- c ? /* @__PURE__ */ a(pe, { intent: "ghost", size: "md", onClick: f, children: r("booking.success.modifyBooking") }) : null
1985
+ /* @__PURE__ */ s(pe, { intent: "secondary", size: "md", onClick: d, children: o("booking.success.bookAnother") }),
1986
+ c ? /* @__PURE__ */ s(pe, { intent: "ghost", size: "md", onClick: f, children: o("booking.success.modifyBooking") }) : null
1969
1987
  ] })
1970
1988
  ]
1971
1989
  }
1972
1990
  );
1973
1991
  }
1974
- function Gt({ customSlot: e }) {
1992
+ function Ht({ customSlot: e }) {
1975
1993
  const { t } = P();
1976
- return e ? /* @__PURE__ */ a(ee, { children: e }) : /* @__PURE__ */ a(
1977
- Ct,
1994
+ return e ? /* @__PURE__ */ s(ee, { children: e }) : /* @__PURE__ */ s(
1995
+ Mt,
1978
1996
  {
1979
1997
  variant: "no-results",
1980
1998
  title: t("booking.emptyServices.title"),
@@ -1982,7 +2000,7 @@ function Gt({ customSlot: e }) {
1982
2000
  }
1983
2001
  );
1984
2002
  }
1985
- const Ht = "data-booking-step-active", Ia = `[${Ht}]`, It = [
2003
+ const Ut = "data-booking-step-active", Na = `[${Ut}]`, It = [
1986
2004
  "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
1987
2005
  "ds:focus-visible:outline-solid",
1988
2006
  "ds:focus-visible:outline-[var(--ring)]",
@@ -1992,36 +2010,36 @@ const Ht = "data-booking-step-active", Ia = `[${Ht}]`, It = [
1992
2010
  function B({
1993
2011
  step: e,
1994
2012
  active: t,
1995
- className: s,
2013
+ className: a,
1996
2014
  id: n,
1997
2015
  children: i
1998
2016
  }) {
1999
- return /* @__PURE__ */ a(
2017
+ return /* @__PURE__ */ s(
2000
2018
  "div",
2001
2019
  {
2002
2020
  id: n,
2003
2021
  "data-booking-step": String(e),
2004
- ...t ? { [Ht]: "" } : null,
2022
+ ...t ? { [Ut]: "" } : null,
2005
2023
  tabIndex: -1,
2006
- className: s ? `${s} ${It}` : It,
2024
+ className: a ? `${a} ${It}` : It,
2007
2025
  children: i
2008
2026
  }
2009
2027
  );
2010
2028
  }
2011
2029
  function ut(e, t) {
2012
- return t === "four-day-grid" ? e.filter((s) => s !== 6) : e;
2030
+ return t === "four-day-grid" ? e.filter((a) => a !== 6) : e;
2013
2031
  }
2014
- function Na(e) {
2032
+ function wa(e) {
2015
2033
  const {
2016
2034
  cascade: t,
2017
- inputs: s,
2035
+ inputs: a,
2018
2036
  value: n,
2019
2037
  onChange: i,
2020
- onSubmit: o,
2038
+ onSubmit: r,
2021
2039
  emptyServicesSlot: c,
2022
2040
  onboardingIncompleteSlot: d,
2023
2041
  loadingDates: f,
2024
- loadingSlots: r,
2042
+ loadingSlots: o,
2025
2043
  onDateSelect: l,
2026
2044
  onWindowChange: u,
2027
2045
  datePickerStyle: k,
@@ -2039,44 +2057,44 @@ function Na(e) {
2039
2057
  className: A
2040
2058
  });
2041
2059
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2042
- t.gates.insurance ? /* @__PURE__ */ a(B, { ...m(1), children: /* @__PURE__ */ a(
2043
- $t,
2060
+ t.gates.insurance ? /* @__PURE__ */ s(B, { ...m(1), children: /* @__PURE__ */ s(
2061
+ zt,
2044
2062
  {
2045
2063
  value: n.insuranceType,
2046
- onChange: (g) => i(Dt(n, g))
2064
+ onChange: (g) => i(At(n, g))
2047
2065
  }
2048
2066
  ) }) : null,
2049
- t.gates.specialty ? /* @__PURE__ */ a(B, { ...m(2), children: /* @__PURE__ */ a(
2050
- zt,
2067
+ t.gates.specialty ? /* @__PURE__ */ s(B, { ...m(2), children: /* @__PURE__ */ s(
2068
+ Kt,
2051
2069
  {
2052
2070
  specialties: t.filtered.specialties,
2053
2071
  value: n.specialtyId,
2054
2072
  valueIds: n.specialtyIds,
2055
- onChange: (g) => i(At(n, g)),
2056
- onChangeIds: (g) => i(Tt(n, g)),
2073
+ onChange: (g) => i(Tt(n, g)),
2074
+ onChangeIds: (g) => i(_t(n, g)),
2057
2075
  pickerStyle: h
2058
2076
  }
2059
2077
  ) }) : null,
2060
- t.gates.service ? /* @__PURE__ */ a(B, { ...m(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ a(Gt, { customSlot: c }) : /* @__PURE__ */ a(
2061
- Kt,
2078
+ t.gates.service ? /* @__PURE__ */ s(B, { ...m(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ s(Ht, { customSlot: c }) : /* @__PURE__ */ s(
2079
+ jt,
2062
2080
  {
2063
2081
  services: t.filtered.services,
2064
2082
  value: n.serviceId,
2065
2083
  valueIds: n.serviceIds,
2066
- onChange: (g) => i(_t(n, g)),
2067
- onChangeIds: (g) => i(Ot(n, g)),
2084
+ onChange: (g) => i(Ot(n, g)),
2085
+ onChangeIds: (g) => i(Bt(n, g)),
2068
2086
  pickerStyle: y
2069
2087
  }
2070
2088
  ) }) : null,
2071
- t.gates.onboardingIncomplete ? /* @__PURE__ */ a(qt, { customSlot: d }) : null,
2072
- t.gates.operator ? /* @__PURE__ */ a(B, { ...m(4), children: /* @__PURE__ */ a(
2073
- jt,
2089
+ t.gates.onboardingIncomplete ? /* @__PURE__ */ s(Gt, { customSlot: d }) : null,
2090
+ t.gates.operator ? /* @__PURE__ */ s(B, { ...m(4), children: /* @__PURE__ */ s(
2091
+ qt,
2074
2092
  {
2075
2093
  operators: t.filtered.operators,
2076
2094
  value: n.operatorId,
2077
2095
  valueIds: n.operatorIds,
2078
- onChange: (g) => i(Bt(n, g)),
2079
- onChangeIds: (g) => i(Pt(n, g)),
2096
+ onChange: (g) => i(Pt(n, g)),
2097
+ onChangeIds: (g) => i(Lt(n, g)),
2080
2098
  pickerStyle: I
2081
2099
  }
2082
2100
  ) }) : null,
@@ -2085,22 +2103,22 @@ function Na(e) {
2085
2103
  {
2086
2104
  ...m(5, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
2087
2105
  children: [
2088
- /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: _("booking.date.heading") }),
2089
- s.availableDates.length === 0 && s.nextAvailableDate ? /* @__PURE__ */ a(
2106
+ /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: _("booking.date.heading") }),
2107
+ a.availableDates.length === 0 && a.nextAvailableDate ? /* @__PURE__ */ s(
2090
2108
  ct,
2091
2109
  {
2092
- nextAvailableDate: s.nextAvailableDate,
2093
- onJump: () => i(Ue(n, s.nextAvailableDate)),
2110
+ nextAvailableDate: a.nextAvailableDate,
2111
+ onJump: () => i(Ue(n, a.nextAvailableDate)),
2094
2112
  locale: w
2095
2113
  }
2096
- ) : Vt({
2097
- inputs: s,
2114
+ ) : Ft({
2115
+ inputs: a,
2098
2116
  value: n,
2099
2117
  onChange: i,
2100
2118
  onDateSelect: l,
2101
2119
  onWindowChange: u,
2102
2120
  loadingDates: f,
2103
- loadingSlots: r,
2121
+ loadingSlots: o,
2104
2122
  locale: w,
2105
2123
  datePickerStyle: k,
2106
2124
  agentIdBase: S
@@ -2113,40 +2131,40 @@ function Na(e) {
2113
2131
  {
2114
2132
  ...m(6, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
2115
2133
  children: [
2116
- /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: _("booking.slot.heading") }),
2117
- Ft({
2118
- inputs: s,
2134
+ /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: _("booking.slot.heading") }),
2135
+ $t({
2136
+ inputs: a,
2119
2137
  value: n,
2120
2138
  onChange: i,
2121
- loadingSlots: r,
2139
+ loadingSlots: o,
2122
2140
  locale: w,
2123
2141
  datePickerStyle: k
2124
2142
  })
2125
2143
  ]
2126
2144
  }
2127
2145
  ) : null,
2128
- t.gates.details && t.selectedSlot ? /* @__PURE__ */ a(B, { ...m(7), children: /* @__PURE__ */ a(
2146
+ t.gates.details && t.selectedSlot ? /* @__PURE__ */ s(B, { ...m(7), children: /* @__PURE__ */ s(
2129
2147
  lt,
2130
2148
  {
2131
2149
  ...x,
2132
2150
  value: n.details ?? {},
2133
2151
  onChange: (g) => i({ ...n, details: g }),
2134
- onSubmit: o,
2152
+ onSubmit: r,
2135
2153
  submitting: N,
2136
2154
  defaultPhoneCountry: e.policy.country
2137
2155
  }
2138
2156
  ) }) : null
2139
2157
  ] });
2140
2158
  }
2141
- function G(e, t, s = {}) {
2159
+ function G(e, t, a = {}) {
2142
2160
  const {
2143
2161
  cascade: n,
2144
2162
  inputs: i,
2145
- value: o,
2163
+ value: r,
2146
2164
  onChange: c,
2147
2165
  onSubmit: d,
2148
2166
  emptyServicesSlot: f,
2149
- onboardingIncompleteSlot: r,
2167
+ onboardingIncompleteSlot: o,
2150
2168
  loadingDates: l,
2151
2169
  loadingSlots: u,
2152
2170
  onDateSelect: k,
@@ -2163,61 +2181,61 @@ function G(e, t, s = {}) {
2163
2181
  } = t;
2164
2182
  switch (e) {
2165
2183
  case 1:
2166
- return /* @__PURE__ */ a(
2167
- $t,
2184
+ return /* @__PURE__ */ s(
2185
+ zt,
2168
2186
  {
2169
- value: o.insuranceType,
2170
- onChange: (m) => c(Dt(o, m))
2187
+ value: r.insuranceType,
2188
+ onChange: (m) => c(At(r, m))
2171
2189
  }
2172
2190
  );
2173
2191
  case 2:
2174
- return /* @__PURE__ */ a(
2175
- zt,
2192
+ return /* @__PURE__ */ s(
2193
+ Kt,
2176
2194
  {
2177
2195
  specialties: n.filtered.specialties,
2178
- value: o.specialtyId,
2179
- valueIds: o.specialtyIds,
2180
- onChange: (m) => c(At(o, m)),
2181
- onChangeIds: (m) => c(Tt(o, m)),
2196
+ value: r.specialtyId,
2197
+ valueIds: r.specialtyIds,
2198
+ onChange: (m) => c(Tt(r, m)),
2199
+ onChangeIds: (m) => c(_t(r, m)),
2182
2200
  pickerStyle: I
2183
2201
  }
2184
2202
  );
2185
2203
  case 3:
2186
- return n.filtered.services.length === 0 ? /* @__PURE__ */ a(Gt, { customSlot: f }) : n.gates.onboardingIncomplete ? /* @__PURE__ */ a(qt, { customSlot: r }) : /* @__PURE__ */ a(
2187
- Kt,
2204
+ return n.filtered.services.length === 0 ? /* @__PURE__ */ s(Ht, { customSlot: f }) : n.gates.onboardingIncomplete ? /* @__PURE__ */ s(Gt, { customSlot: o }) : /* @__PURE__ */ s(
2205
+ jt,
2188
2206
  {
2189
2207
  services: n.filtered.services,
2190
- value: o.serviceId,
2191
- valueIds: o.serviceIds,
2192
- onChange: (m) => c(_t(o, m)),
2193
- onChangeIds: (m) => c(Ot(o, m)),
2208
+ value: r.serviceId,
2209
+ valueIds: r.serviceIds,
2210
+ onChange: (m) => c(Ot(r, m)),
2211
+ onChangeIds: (m) => c(Bt(r, m)),
2194
2212
  pickerStyle: N,
2195
- compact: s.compactService
2213
+ compact: a.compactService
2196
2214
  }
2197
2215
  );
2198
2216
  case 4:
2199
- return /* @__PURE__ */ a(
2200
- jt,
2217
+ return /* @__PURE__ */ s(
2218
+ qt,
2201
2219
  {
2202
2220
  operators: n.filtered.operators,
2203
- value: o.operatorId,
2204
- valueIds: o.operatorIds,
2205
- onChange: (m) => c(Bt(o, m)),
2206
- onChangeIds: (m) => c(Pt(o, m)),
2221
+ value: r.operatorId,
2222
+ valueIds: r.operatorIds,
2223
+ onChange: (m) => c(Pt(r, m)),
2224
+ onChangeIds: (m) => c(Lt(r, m)),
2207
2225
  pickerStyle: w
2208
2226
  }
2209
2227
  );
2210
2228
  case 5:
2211
- return i.availableDates.length === 0 && i.nextAvailableDate ? /* @__PURE__ */ a(
2229
+ return i.availableDates.length === 0 && i.nextAvailableDate ? /* @__PURE__ */ s(
2212
2230
  ct,
2213
2231
  {
2214
2232
  nextAvailableDate: i.nextAvailableDate,
2215
- onJump: () => c(Ue(o, i.nextAvailableDate)),
2233
+ onJump: () => c(Ue(r, i.nextAvailableDate)),
2216
2234
  locale: S
2217
2235
  }
2218
- ) : Vt({
2236
+ ) : Ft({
2219
2237
  inputs: i,
2220
- value: o,
2238
+ value: r,
2221
2239
  onChange: c,
2222
2240
  onDateSelect: k,
2223
2241
  onWindowChange: h,
@@ -2228,21 +2246,21 @@ function G(e, t, s = {}) {
2228
2246
  agentIdBase: D
2229
2247
  });
2230
2248
  case 6:
2231
- return Ft({
2249
+ return $t({
2232
2250
  inputs: i,
2233
- value: o,
2251
+ value: r,
2234
2252
  onChange: c,
2235
2253
  loadingSlots: u,
2236
2254
  locale: S,
2237
2255
  datePickerStyle: y
2238
2256
  });
2239
2257
  case 7:
2240
- return n.selectedSlot ? /* @__PURE__ */ a(
2258
+ return n.selectedSlot ? /* @__PURE__ */ s(
2241
2259
  lt,
2242
2260
  {
2243
2261
  ...p,
2244
- value: o.details ?? {},
2245
- onChange: (m) => c({ ...o, details: m }),
2262
+ value: r.details ?? {},
2263
+ onChange: (m) => c({ ...r, details: m }),
2246
2264
  onSubmit: d,
2247
2265
  submitting: x,
2248
2266
  defaultPhoneCountry: _.country
@@ -2271,20 +2289,20 @@ function Je() {
2271
2289
  function Se(e, t) {
2272
2290
  return t === "four-day-grid" && e === 6 ? 5 : e;
2273
2291
  }
2274
- function wa(e) {
2275
- const { cascade: t, value: s, activeStep: n, setActiveStep: i, datePickerStyle: o } = e, c = Je(), { t: d } = P(), f = d("booking.operator.all"), r = C(
2276
- () => ut(t.visibleSteps, o),
2277
- [t.visibleSteps, o]
2278
- ), l = Se(n, o), u = Math.max(0, r.indexOf(l)), k = C(
2279
- () => r.map((h) => ({
2292
+ 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(
2294
+ () => ut(t.visibleSteps, r),
2295
+ [t.visibleSteps, r]
2296
+ ), l = Se(n, r), u = Math.max(0, o.indexOf(l)), k = C(
2297
+ () => o.map((h) => ({
2280
2298
  label: c[h],
2281
- summary: Ut(h, s, t, f),
2282
- status: Ca(h, s, t),
2283
- content: /* @__PURE__ */ a(B, { step: h, active: h === l, children: G(h, e, { compactService: !0 }) })
2299
+ summary: Jt(h, a, t, f),
2300
+ status: Ma(h, a, t),
2301
+ content: /* @__PURE__ */ s(B, { step: h, active: h === l, children: G(h, e, { compactService: !0 }) })
2284
2302
  })),
2285
2303
  [
2286
- r,
2287
- s,
2304
+ o,
2305
+ a,
2288
2306
  c,
2289
2307
  t,
2290
2308
  e,
@@ -2292,20 +2310,20 @@ function wa(e) {
2292
2310
  f
2293
2311
  ]
2294
2312
  );
2295
- return /* @__PURE__ */ a(
2296
- ds,
2313
+ return /* @__PURE__ */ s(
2314
+ ls,
2297
2315
  {
2298
2316
  activeStep: u,
2299
2317
  steps: k,
2300
2318
  onStepChange: (h) => {
2301
- const y = r[h];
2319
+ const y = o[h];
2302
2320
  y && i(y);
2303
2321
  }
2304
2322
  }
2305
2323
  );
2306
2324
  }
2307
- function Ca(e, t, s) {
2308
- return ue(e, t) && e < s.currentStep ? "completed" : e <= s.currentStep ? "unlocked" : void 0;
2325
+ function Ma(e, t, a) {
2326
+ return ue(e, t) && e < a.currentStep ? "completed" : e <= a.currentStep ? "unlocked" : void 0;
2309
2327
  }
2310
2328
  function ue(e, t) {
2311
2329
  switch (e) {
@@ -2326,13 +2344,13 @@ function ue(e, t) {
2326
2344
  }
2327
2345
  }
2328
2346
  function at(e, t) {
2329
- const s = e.map((n) => {
2347
+ const a = e.map((n) => {
2330
2348
  var i;
2331
- return (i = t.find((o) => o.id === n)) == null ? void 0 : i.label;
2349
+ return (i = t.find((r) => r.id === n)) == null ? void 0 : i.label;
2332
2350
  }).filter((n) => n !== void 0);
2333
- return s.length > 0 ? s.join(", ") : void 0;
2351
+ return a.length > 0 ? a.join(", ") : void 0;
2334
2352
  }
2335
- function Ut(e, t, s, n) {
2353
+ function Jt(e, t, a, n) {
2336
2354
  var i;
2337
2355
  if (ue(e, t))
2338
2356
  switch (e) {
@@ -2341,57 +2359,57 @@ function Ut(e, t, s, n) {
2341
2359
  case 2:
2342
2360
  return at(
2343
2361
  te(t),
2344
- s.filtered.specialties
2362
+ a.filtered.specialties
2345
2363
  );
2346
2364
  case 3:
2347
- return at(me(t), s.filtered.services);
2365
+ return at(me(t), a.filtered.services);
2348
2366
  case 4: {
2349
- const o = dt(t), c = o.filter((f) => f !== W), d = at(
2367
+ const r = dt(t), c = r.filter((f) => f !== W), d = at(
2350
2368
  c,
2351
- s.filtered.operators.map((f) => ({
2369
+ a.filtered.operators.map((f) => ({
2352
2370
  id: f.id,
2353
2371
  label: f.name
2354
2372
  }))
2355
2373
  );
2356
- return d !== void 0 ? d : o.includes(W) ? n : void 0;
2374
+ return d !== void 0 ? d : r.includes(W) ? n : void 0;
2357
2375
  }
2358
2376
  case 5:
2359
2377
  return t.date;
2360
2378
  case 6:
2361
- return (i = s.selectedSlot) == null ? void 0 : i.time;
2379
+ return (i = a.selectedSlot) == null ? void 0 : i.time;
2362
2380
  case 7:
2363
2381
  return;
2364
2382
  }
2365
2383
  }
2366
- function Ma(e) {
2367
- const { cascade: t, value: s, activeStep: n, setActiveStep: i } = e, { t: o } = P(), c = Je(), d = o("booking.operator.all"), f = `${it()}-filter`, r = Se(n, e.datePickerStyle), l = t.visibleSteps.filter(
2384
+ 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(
2368
2386
  (h) => h === 1 || h === 2 || h === 3 || h === 4
2369
2387
  ), u = l.some(
2370
- (h) => !ue(h, s)
2388
+ (h) => !ue(h, a)
2371
2389
  ), k = l.some(
2372
2390
  (h) => h === n
2373
- ) ? n : l.find((h) => !ue(h, s));
2391
+ ) ? n : l.find((h) => !ue(h, a));
2374
2392
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2375
- l.length > 0 ? /* @__PURE__ */ a(
2393
+ l.length > 0 ? /* @__PURE__ */ s(
2376
2394
  "div",
2377
2395
  {
2378
2396
  role: "group",
2379
- "aria-label": o("booking.filtersLabel"),
2397
+ "aria-label": r("booking.filtersLabel"),
2380
2398
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
2381
2399
  children: l.map((h) => {
2382
- const y = Ut(
2400
+ const y = Jt(
2383
2401
  h,
2384
- s,
2402
+ a,
2385
2403
  t,
2386
2404
  d
2387
- ), I = h === k, N = ue(h, s);
2388
- return /* @__PURE__ */ a(
2405
+ ), I = h === k, N = ue(h, a);
2406
+ return /* @__PURE__ */ s(
2389
2407
  pe,
2390
2408
  {
2391
2409
  intent: I ? "primary" : "outline",
2392
2410
  size: "sm",
2393
- endIcon: /* @__PURE__ */ a(
2394
- us,
2411
+ endIcon: /* @__PURE__ */ s(
2412
+ ps,
2395
2413
  {
2396
2414
  "aria-hidden": "true",
2397
2415
  className: I ? "ds:rotate-180" : void 0
@@ -2414,11 +2432,11 @@ function Ma(e) {
2414
2432
  })
2415
2433
  }
2416
2434
  ) : null,
2417
- k !== void 0 ? /* @__PURE__ */ a(
2435
+ k !== void 0 ? /* @__PURE__ */ s(
2418
2436
  B,
2419
2437
  {
2420
2438
  step: k,
2421
- active: k === r,
2439
+ active: k === o,
2422
2440
  id: f,
2423
2441
  children: G(k, e, { compactService: !0 })
2424
2442
  }
@@ -2428,64 +2446,64 @@ function Ma(e) {
2428
2446
  // historic 2-col date|slot split collapses to a single column
2429
2447
  // so the picker spans the full width instead of orphaning an
2430
2448
  // empty right cell.
2431
- e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ a(B, { step: 5, active: r === 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: [
2432
- /* @__PURE__ */ a(
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: [
2450
+ /* @__PURE__ */ s(
2433
2451
  B,
2434
2452
  {
2435
2453
  step: 5,
2436
- active: r === 5,
2454
+ active: o === 5,
2437
2455
  className: "ds:min-w-0",
2438
2456
  children: G(5, e)
2439
2457
  }
2440
2458
  ),
2441
- s.date ? /* @__PURE__ */ a(
2459
+ a.date ? /* @__PURE__ */ s(
2442
2460
  B,
2443
2461
  {
2444
2462
  step: 6,
2445
- active: r === 6,
2463
+ active: o === 6,
2446
2464
  className: "ds:min-w-0",
2447
2465
  children: G(6, e)
2448
2466
  }
2449
- ) : /* @__PURE__ */ a("div", { className: "ds:min-w-0" })
2467
+ ) : /* @__PURE__ */ s("div", { className: "ds:min-w-0" })
2450
2468
  ] })
2451
2469
  ) : null,
2452
- t.gates.details ? /* @__PURE__ */ a(B, { step: 7, active: r === 7, children: G(7, e) }) : null
2470
+ t.gates.details ? /* @__PURE__ */ s(B, { step: 7, active: o === 7, children: G(7, e) }) : null
2453
2471
  ] });
2454
2472
  }
2455
- function Da(e) {
2456
- const { cascade: t, datePickerStyle: s, activeStep: n } = e, i = Se(n, s), o = t.visibleSteps.filter(
2473
+ function Aa(e) {
2474
+ const { cascade: t, datePickerStyle: a, activeStep: n } = e, i = Se(n, a), r = t.visibleSteps.filter(
2457
2475
  (d) => d === 1 || d === 2 || d === 3 || d === 4
2458
2476
  );
2459
2477
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2460
2478
  /* @__PURE__ */ b(
2461
2479
  "div",
2462
2480
  {
2463
- 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",
2481
+ 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",
2464
2482
  children: [
2465
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: o.map((d) => /* @__PURE__ */ a(B, { step: d, active: d === i, children: G(d, e, { compactService: !0 }) }, `fbf-${d}`)) }),
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}`)) }),
2466
2484
  /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2467
- t.gates.date ? /* @__PURE__ */ a(B, { step: 5, active: i === 5, children: G(5, e) }) : null,
2468
- t.gates.slot && e.value.date && s === "month-calendar" ? /* @__PURE__ */ a(B, { step: 6, active: i === 6, children: G(6, e) }) : null
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
2469
2487
  ] })
2470
2488
  ]
2471
2489
  }
2472
2490
  ),
2473
- t.gates.details ? /* @__PURE__ */ a(B, { step: 7, active: i === 7, children: G(7, e) }) : null
2491
+ t.gates.details ? /* @__PURE__ */ s(B, { step: 7, active: i === 7, children: G(7, e) }) : null
2474
2492
  ] });
2475
2493
  }
2476
- function Aa(e) {
2477
- const { cascade: t, value: s, activeStep: n, setActiveStep: i, datePickerStyle: o } = e, { t: c } = P(), d = Je(), f = C(
2478
- () => ut(t.visibleSteps, o),
2479
- [t.visibleSteps, o]
2480
- ), r = Se(n, o), l = Math.max(0, f.indexOf(r)), u = f.length, k = C(
2494
+ function Ta(e) {
2495
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, { t: c } = P(), d = Je(), f = C(
2496
+ () => ut(t.visibleSteps, r),
2497
+ [t.visibleSteps, r]
2498
+ ), o = Se(n, r), l = Math.max(0, f.indexOf(o)), u = f.length, k = C(
2481
2499
  () => f.map((N) => ({ label: d[N] })),
2482
2500
  [f, d]
2483
- ), h = l > 0, y = r === 5 && o === "four-day-grid", I = l < u - 1 && ue(r, s) && (!y || ue(6, s));
2501
+ ), h = l > 0, y = o === 5 && r === "four-day-grid", I = l < u - 1 && ue(o, a) && (!y || ue(6, a));
2484
2502
  return /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2485
- /* @__PURE__ */ a(ls, { activeStep: l, steps: k }),
2486
- /* @__PURE__ */ a(B, { step: r, active: !0, children: G(r, e, { compactService: !0 }) }),
2503
+ /* @__PURE__ */ s(cs, { activeStep: l, steps: k }),
2504
+ /* @__PURE__ */ s(B, { step: o, active: !0, children: G(o, e, { compactService: !0 }) }),
2487
2505
  /* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
2488
- /* @__PURE__ */ a(
2506
+ /* @__PURE__ */ s(
2489
2507
  pe,
2490
2508
  {
2491
2509
  intent: "ghost",
@@ -2498,7 +2516,7 @@ function Aa(e) {
2498
2516
  children: c("booking.actions.back")
2499
2517
  }
2500
2518
  ),
2501
- r < 7 ? /* @__PURE__ */ a(
2519
+ o < 7 ? /* @__PURE__ */ s(
2502
2520
  pe,
2503
2521
  {
2504
2522
  intent: "primary",
@@ -2514,25 +2532,25 @@ function Aa(e) {
2514
2532
  ] })
2515
2533
  ] });
2516
2534
  }
2517
- const Ta = [], _a = [];
2535
+ const _a = [], Oa = [];
2518
2536
  function Nt() {
2519
2537
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2520
2538
  }
2521
- const Oa = wt(
2539
+ const Ba = wt(
2522
2540
  ({
2523
2541
  variant: e = "inline-list",
2524
2542
  country: t,
2525
2543
  // No default — the cascade engine treats `undefined` as "auto-on
2526
2544
  // when `specialties` has items" so consumers who pass specialty
2527
2545
  // data without the explicit flag still get the step.
2528
- useSpecialties: s,
2546
+ useSpecialties: a,
2529
2547
  allowOperatorSelection: n = !1,
2530
2548
  lockedOperatorId: i,
2531
- autoSelectSingleService: o = !1,
2549
+ autoSelectSingleService: r = !1,
2532
2550
  specialties: c,
2533
2551
  services: d,
2534
2552
  operators: f,
2535
- availableDates: r,
2553
+ availableDates: o,
2536
2554
  availableSlots: l,
2537
2555
  nextAvailableDate: u,
2538
2556
  requireCodiceFiscale: k,
@@ -2555,7 +2573,7 @@ const Oa = wt(
2555
2573
  datePickerStyle: R = "month-calendar",
2556
2574
  specialtyPickerStyle: $,
2557
2575
  servicePickerStyle: L,
2558
- operatorPickerStyle: re,
2576
+ operatorPickerStyle: oe,
2559
2577
  loadingDates: X,
2560
2578
  loadingSlots: xe,
2561
2579
  submitting: de,
@@ -2571,27 +2589,27 @@ const Oa = wt(
2571
2589
  onFocus: ge,
2572
2590
  ..._e
2573
2591
  }, Oe) => {
2574
- const { t: v, i18n: O } = P(), z = e ?? "inline-list", Be = O.language ?? "en", ne = c ?? Ta, he = f ?? _a;
2592
+ const { t: v, i18n: O } = P(), z = e ?? "inline-list", Be = O.language ?? "en", ne = c ?? _a, he = f ?? Oa;
2575
2593
  q(() => {
2576
- const M = aa(m, {
2577
- useSpecialties: s,
2594
+ const M = na(m, {
2595
+ useSpecialties: a,
2578
2596
  lockedOperatorId: i,
2579
- autoSelectSingleService: o,
2597
+ autoSelectSingleService: r,
2580
2598
  specialties: ne,
2581
2599
  services: d
2582
2600
  });
2583
2601
  (M.specialtyId !== m.specialtyId || M.operatorId !== m.operatorId || M.serviceId !== m.serviceId) && g(M);
2584
2602
  }, [
2585
2603
  i,
2586
- s,
2587
- o,
2604
+ a,
2605
+ r,
2588
2606
  ne,
2589
2607
  d
2590
2608
  ]);
2591
2609
  const E = C(
2592
- () => sa({
2610
+ () => aa({
2593
2611
  country: t,
2594
- useSpecialties: s,
2612
+ useSpecialties: a,
2595
2613
  allowOperatorSelection: n,
2596
2614
  lockedOperatorId: i,
2597
2615
  specialties: ne,
@@ -2602,14 +2620,14 @@ const Oa = wt(
2602
2620
  }),
2603
2621
  [
2604
2622
  t,
2605
- s,
2623
+ a,
2606
2624
  n,
2607
2625
  i,
2608
- o,
2626
+ r,
2609
2627
  ne,
2610
2628
  d,
2611
2629
  he,
2612
- r,
2630
+ o,
2613
2631
  l,
2614
2632
  m
2615
2633
  ]
@@ -2638,7 +2656,7 @@ const Oa = wt(
2638
2656
  const ve = Y(null), Ze = C(
2639
2657
  () => ut(E.visibleSteps, R),
2640
2658
  [E.visibleSteps, R]
2641
- ), mt = Je(), [Jt, Yt] = H(""), ft = Y(null), Le = Y(null);
2659
+ ), mt = Je(), [Yt, Wt] = H(""), ft = Y(null), Le = Y(null);
2642
2660
  q(() => {
2643
2661
  const M = Se(Q, R);
2644
2662
  if (Le.current === null) {
@@ -2648,7 +2666,7 @@ const Oa = wt(
2648
2666
  if (Le.current === M) return;
2649
2667
  Le.current = M;
2650
2668
  const J = Ze.indexOf(M);
2651
- Yt(
2669
+ Wt(
2652
2670
  J === -1 ? "" : v("booking.stepAnnouncement", {
2653
2671
  current: J + 1,
2654
2672
  total: Ze.length,
@@ -2661,7 +2679,7 @@ const Oa = wt(
2661
2679
  if (!le) return;
2662
2680
  const be = document.activeElement;
2663
2681
  if (!(be === null || be === document.body || !le.contains(be))) return;
2664
- const Ve = le.querySelector(Ia) ?? le;
2682
+ const Ve = le.querySelector(Na) ?? le;
2665
2683
  if (Ve.focus({ preventScroll: !0 }), typeof Ve.scrollIntoView == "function")
2666
2684
  try {
2667
2685
  Ve.scrollIntoView({
@@ -2701,7 +2719,7 @@ const Oa = wt(
2701
2719
  },
2702
2720
  [E.selectedSlot, A, m]
2703
2721
  );
2704
- Qt(Oe, () => ve.current, []);
2722
+ es(Oe, () => ve.current, []);
2705
2723
  const Ce = ie === "success" ? 8 : E.currentStep, ht = Y(null);
2706
2724
  q(() => {
2707
2725
  if (Ce !== ht.current && (ht.current = Ce, T == null || T(Ce), Ce === 8 && ve.current))
@@ -2735,9 +2753,9 @@ const Oa = wt(
2735
2753
  }),
2736
2754
  [z, g]
2737
2755
  );
2738
- ts(Ys, et, ae);
2739
- const Wt = Ye ?? v("booking.regionLabel"), Zt = C(() => ie !== "success" || !Xe ? null : /* @__PURE__ */ a(
2740
- xa,
2756
+ ss(Ws, et, ae);
2757
+ const Zt = Ye ?? v("booking.regionLabel"), Xt = C(() => ie !== "success" || !Xe ? null : /* @__PURE__ */ s(
2758
+ Ia,
2741
2759
  {
2742
2760
  snapshot: Xe,
2743
2761
  operators: he,
@@ -2761,15 +2779,15 @@ const Oa = wt(
2761
2779
  se,
2762
2780
  fe,
2763
2781
  et
2764
- ]), Xt = C(() => {
2782
+ ]), Qt = C(() => {
2765
2783
  if (ie === "success") return null;
2766
- const M = z === "accordion" ? wa : z === "calendar" ? Ma : z === "flexible" ? Da : z === "progress" ? Aa : Na, J = {
2784
+ const M = z === "accordion" ? Ca : z === "calendar" ? Da : z === "flexible" ? Aa : z === "progress" ? Ta : wa, J = {
2767
2785
  cascade: E,
2768
2786
  inputs: {
2769
2787
  specialties: ne,
2770
2788
  services: d,
2771
2789
  operators: he,
2772
- availableDates: r,
2790
+ availableDates: o,
2773
2791
  availableSlots: l,
2774
2792
  nextAvailableDate: u
2775
2793
  },
@@ -2801,14 +2819,14 @@ const Oa = wt(
2801
2819
  datePickerStyle: R,
2802
2820
  specialtyPickerStyle: $,
2803
2821
  servicePickerStyle: L,
2804
- operatorPickerStyle: re,
2822
+ operatorPickerStyle: oe,
2805
2823
  submitting: de,
2806
2824
  locale: Be,
2807
2825
  activeStep: Q,
2808
2826
  setActiveStep: Ne,
2809
2827
  agentIdBase: ae
2810
2828
  };
2811
- return /* @__PURE__ */ a(M, { ...J });
2829
+ return /* @__PURE__ */ s(M, { ...J });
2812
2830
  }, [
2813
2831
  ie,
2814
2832
  z,
@@ -2816,7 +2834,7 @@ const Oa = wt(
2816
2834
  ne,
2817
2835
  d,
2818
2836
  he,
2819
- r,
2837
+ o,
2820
2838
  l,
2821
2839
  u,
2822
2840
  m,
@@ -2845,7 +2863,7 @@ const Oa = wt(
2845
2863
  R,
2846
2864
  $,
2847
2865
  L,
2848
- re,
2866
+ oe,
2849
2867
  de,
2850
2868
  Be,
2851
2869
  Q,
@@ -2856,12 +2874,12 @@ const Oa = wt(
2856
2874
  {
2857
2875
  ref: ve,
2858
2876
  role: "region",
2859
- "aria-label": Wt,
2877
+ "aria-label": Zt,
2860
2878
  id: ae,
2861
2879
  "data-component": "booking",
2862
2880
  "data-component-id": ae,
2863
2881
  "data-variant": z,
2864
- className: da({
2882
+ className: la({
2865
2883
  variant: z,
2866
2884
  surface: Ie,
2867
2885
  className: We
@@ -2872,7 +2890,7 @@ const Oa = wt(
2872
2890
  },
2873
2891
  ..._e,
2874
2892
  children: [
2875
- /* @__PURE__ */ a("div", { role: "status", className: "ds:sr-only", children: Jt }),
2893
+ /* @__PURE__ */ s("div", { role: "status", className: "ds:sr-only", children: Yt }),
2876
2894
  /* @__PURE__ */ b(
2877
2895
  "div",
2878
2896
  {
@@ -2885,22 +2903,22 @@ const Oa = wt(
2885
2903
  "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
2886
2904
  ].join(" "),
2887
2905
  children: [
2888
- /* @__PURE__ */ a("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: v("booking.regionLabel") }),
2889
- /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: v("booking.headingSubtitle") })
2906
+ /* @__PURE__ */ s("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: v("booking.regionLabel") }),
2907
+ /* @__PURE__ */ s("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: v("booking.headingSubtitle") })
2890
2908
  ]
2891
2909
  }
2892
2910
  ),
2893
- Zt ?? Xt
2911
+ Xt ?? Qt
2894
2912
  ]
2895
2913
  }
2896
2914
  );
2897
2915
  }
2898
2916
  );
2899
- Oa.displayName = "Booking";
2917
+ Ba.displayName = "Booking";
2900
2918
  export {
2901
- Oa as B,
2919
+ Ba as B,
2902
2920
  nt as C,
2903
2921
  W as O,
2904
- Ys as b
2922
+ Ws as b
2905
2923
  };
2906
- //# sourceMappingURL=booking-CBHKdsZl.js.map
2924
+ //# sourceMappingURL=booking-DQbo6mQF.js.map