@alfadocs/ui-kit-debug 1.3.13 → 1.4.1

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 (349) hide show
  1. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
  2. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js.map +1 -0
  3. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
  4. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js.map → alia-sidebar-DSBZMick.js.map} +1 -1
  5. package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-DZcrt8dP.js} +2141 -2069
  6. package/dist/_chunks/anamnesis-i18n-DZcrt8dP.js.map +1 -0
  7. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
  8. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js.map → antenatal-schedule-timeline-u8TsS2QJ.js.map} +1 -1
  9. package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-B630OT_J.js.map → appointment-timeline-Bqf1sTU5.js.map} +1 -1
  11. package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
  12. package/dist/_chunks/{ar-THMLfSoN.js.map → ar-BR1FGFP2.js.map} +1 -1
  13. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
  14. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js.map → bmi-calculator-CpyY13MV.js.map} +1 -1
  15. package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
  16. package/dist/_chunks/booking-BjsA7j1-.js.map +1 -0
  17. package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
  18. package/dist/_chunks/{calculator-dialog-DuXMQSdm.js.map → calculator-dialog-12d3Sxaz.js.map} +1 -1
  19. package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
  20. package/dist/_chunks/{care-plan-card-1G_f4I5s.js.map → care-plan-card-BvQy366X.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
  22. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js.map → care-plan-entry-card-apk_5B3O.js.map} +1 -1
  23. package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
  24. package/dist/_chunks/chat-container-CYYego1W.js.map +1 -0
  25. package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
  26. package/dist/_chunks/cycle-calculator-B7fyH-h4.js.map +1 -0
  27. package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
  28. package/dist/_chunks/{date-picker-ZHejTVAJ.js.map → date-picker-Bp64zk2p.js.map} +1 -1
  29. package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
  30. package/dist/_chunks/date-picker-variants-pKAJfnWr.js.map +1 -0
  31. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
  32. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js.map → date-range-picker-CDrZ8Zh0.js.map} +1 -1
  33. package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
  34. package/dist/_chunks/{date-time-picker-695QvBGj.js.map → date-time-picker-DafkGDGO.js.map} +1 -1
  35. package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
  36. package/dist/_chunks/{de-DmZ-8rTN.js.map → de-3iM4rGqo.js.map} +1 -1
  37. package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
  38. package/dist/_chunks/{document-preview-D3gg4MXB.js.map → document-preview-DOrsqiN1.js.map} +1 -1
  39. package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
  40. package/dist/_chunks/due-date-calculator-CnkbbAej.js.map +1 -0
  41. package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
  42. package/dist/_chunks/editor-overlay-B1tr2i7B.js.map +1 -0
  43. package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
  44. package/dist/_chunks/{el-Bela9mxs.js.map → el-C96rGJvU.js.map} +1 -1
  45. package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
  46. package/dist/_chunks/{es-BNncHKex.js.map → es-Cxiqjx8r.js.map} +1 -1
  47. package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
  48. package/dist/_chunks/fetal-weight-avlj-l-S.js.map +1 -0
  49. package/dist/_chunks/format-4HNwNGrN.js +1315 -0
  50. package/dist/_chunks/format-4HNwNGrN.js.map +1 -0
  51. package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
  52. package/dist/_chunks/{fr-CH8ADfhN.js.map → fr-Bhr6SYKj.js.map} +1 -1
  53. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
  54. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js.map → freemium-paywall-DRDdWuOg.js.map} +1 -1
  55. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
  56. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js.map +1 -0
  57. package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
  58. package/dist/_chunks/hcg-doubling-Cv_vH61p.js.map +1 -0
  59. package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
  60. package/dist/_chunks/header-settings-Cn5fPXCE.js.map +1 -0
  61. package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
  62. package/dist/_chunks/{hi-Bppfxp8l.js.map → hi-BxXX26d_.js.map} +1 -1
  63. package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
  64. package/dist/_chunks/{isSameWeek-CK4HS9lH.js.map → isSameWeek-B73MagWB.js.map} +1 -1
  65. package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
  66. package/dist/_chunks/{it-B4ySaRyK.js.map → it-Xmjomvyj.js.map} +1 -1
  67. package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
  68. package/dist/_chunks/{ja-CGF6Io9P.js.map → ja-mfZvt1ZV.js.map} +1 -1
  69. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
  70. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js.map → link-cell-renderer-CJ_gk7gl.js.map} +1 -1
  71. package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
  72. package/dist/_chunks/locale-picker-D9Kv2zrK.js.map +1 -0
  73. package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
  74. package/dist/_chunks/map-view-2yZCQW2l.js.map +1 -0
  75. package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
  76. package/dist/_chunks/marketplace-app-shell-BLRvg-M0.js.map +1 -0
  77. package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
  78. package/dist/_chunks/{nl-DuShqwuV.js.map → nl-DDs-KEnD.js.map} +1 -1
  79. package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
  80. package/dist/_chunks/{notes-panel-DPsgB4Mv.js.map → notes-panel-CiFN3sLW.js.map} +1 -1
  81. package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
  82. package/dist/_chunks/number-input-DOe5VYei.js.map +1 -0
  83. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
  84. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js.map → optical-prescription-CRemE8fL.js.map} +1 -1
  85. package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
  86. package/dist/_chunks/{parse-DvA97ro9.js.map → parse-JqixfsU0.js.map} +1 -1
  87. package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
  88. package/dist/_chunks/parseISO-fOGpHKXm.js.map +1 -0
  89. package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
  90. package/dist/_chunks/{patient-details-DqjjwPmt.js.map → patient-details-CpunD0qx.js.map} +1 -1
  91. package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
  92. package/dist/_chunks/{patient-table-BmIDrLIS.js.map → patient-table-2eWx-Rrk.js.map} +1 -1
  93. package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
  94. package/dist/_chunks/payment-form-Ds1I9KqB.js.map +1 -0
  95. package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
  96. package/dist/_chunks/pdf-viewer-DUIsV9s5.js.map +1 -0
  97. package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
  98. package/dist/_chunks/{pl-CKQwX9Fk.js.map → pl-BYYMnEWP.js.map} +1 -1
  99. package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
  100. package/dist/_chunks/{practice-results-B-HPc13W.js.map → practice-results-SjCniMd2.js.map} +1 -1
  101. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
  102. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js.map +1 -0
  103. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
  104. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js.map +1 -0
  105. package/dist/_chunks/progress-CK8otcQ-.js +343 -0
  106. package/dist/_chunks/progress-CK8otcQ-.js.map +1 -0
  107. package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
  108. package/dist/_chunks/{pt-_njpXyOZ.js.map → pt-BSPnVrQ7.js.map} +1 -1
  109. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
  110. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js.map → radiograph-panel.agent-CtFtNMzk.js.map} +1 -1
  111. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
  112. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js.map → rich-text-editor-BedTpWzL.js.map} +1 -1
  113. package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
  114. package/dist/_chunks/{ro-3X6_4FcN.js.map → ro-BbiylGmG.js.map} +1 -1
  115. package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
  116. package/dist/_chunks/{ru-bAcgmnS-.js.map → ru-BX_qsV67.js.map} +1 -1
  117. package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
  118. package/dist/_chunks/{session-countdown-Bc70VXN1.js.map → session-countdown-BL-Psg8u.js.map} +1 -1
  119. package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
  120. package/dist/_chunks/{sign-document-CW_ByDUh.js.map → sign-document-jF4fZDJ5.js.map} +1 -1
  121. package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
  122. package/dist/_chunks/slot-grid-DNiUcXy2.js.map +1 -0
  123. package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
  124. package/dist/_chunks/sparkline-BmGcEyZO.js.map +1 -0
  125. package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
  126. package/dist/_chunks/{sq-jYFqr4Ga.js.map → sq-i9UOk4P7.js.map} +1 -1
  127. package/dist/_chunks/subDays-CAUv47M1.js +8 -0
  128. package/dist/_chunks/{subDays-BcNi04uf.js.map → subDays-CAUv47M1.js.map} +1 -1
  129. package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
  130. package/dist/_chunks/{sv-BSGEJ-8B.js.map → sv-CpTdtmDQ.js.map} +1 -1
  131. package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
  132. package/dist/_chunks/tab-bar-BYESZINM.js.map +1 -0
  133. package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
  134. package/dist/_chunks/task-card.agent-CF2N_uu4.js.map +1 -0
  135. package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
  136. package/dist/_chunks/{tr-CTpgUtw6.js.map → tr-DXG2QN1K.js.map} +1 -1
  137. package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
  138. package/dist/_chunks/{unit-converter-COgkN7YP.js.map → unit-converter-CHPDuV7W.js.map} +1 -1
  139. package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
  140. package/dist/_chunks/{warning-stack-BtjmJChC.js.map → warning-stack-B7t_8jRE.js.map} +1 -1
  141. package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
  142. package/dist/_chunks/{zh-CN-BgM0Io2O.js.map → zh-CN-vPkPEK6H.js.map} +1 -1
  143. package/dist/agent-catalog.json +6426 -3382
  144. package/dist/agent-i18n/en.json +234 -15
  145. package/dist/components/agenda-card/agenda-card.agent.d.ts.map +1 -1
  146. package/dist/components/agenda-card/index.js +1 -1
  147. package/dist/components/appointment-timeline/index.js +1 -1
  148. package/dist/components/bmi-calculator/index.js +1 -1
  149. package/dist/components/booking/booking.d.ts.map +1 -1
  150. package/dist/components/booking/index.js +1 -1
  151. package/dist/components/calculator-dialog/calculator-dialog.d.ts.map +1 -1
  152. package/dist/components/calculator-dialog/index.js +1 -1
  153. package/dist/components/care-plan-card/index.js +1 -1
  154. package/dist/components/care-plan-entry-card/index.js +1 -1
  155. package/dist/components/chat-container/chat-container.agent.d.ts.map +1 -1
  156. package/dist/components/chat-container/chat-container.d.ts +14 -0
  157. package/dist/components/chat-container/chat-container.d.ts.map +1 -1
  158. package/dist/components/chat-container/index.js +1 -1
  159. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
  160. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts.map +1 -0
  161. package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
  162. package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
  163. package/dist/components/cycle-calculator/index.d.ts +1 -1
  164. package/dist/components/cycle-calculator/index.d.ts.map +1 -1
  165. package/dist/components/cycle-calculator/index.js +1 -1
  166. package/dist/components/data-table/index.js +1 -1
  167. package/dist/components/date-picker/index.js +1 -1
  168. package/dist/components/date-range-picker/index.js +1 -1
  169. package/dist/components/date-time-picker/index.js +1 -1
  170. package/dist/components/document-preview/index.js +1 -1
  171. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
  172. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts.map +1 -0
  173. package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
  174. package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
  175. package/dist/components/due-date-calculator/index.d.ts +1 -1
  176. package/dist/components/due-date-calculator/index.d.ts.map +1 -1
  177. package/dist/components/due-date-calculator/index.js +2 -2
  178. package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
  179. package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
  180. package/dist/components/editor-overlay/index.js +1 -1
  181. package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
  182. package/dist/components/fetal-weight/fetal-weight.agent.d.ts.map +1 -0
  183. package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
  184. package/dist/components/fetal-weight/fetal-weight.d.ts.map +1 -1
  185. package/dist/components/fetal-weight/index.d.ts +1 -1
  186. package/dist/components/fetal-weight/index.d.ts.map +1 -1
  187. package/dist/components/fetal-weight/index.js +1 -1
  188. package/dist/components/freemium-paywall/index.js +1 -1
  189. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
  190. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts.map +1 -0
  191. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
  192. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
  193. package/dist/components/gestational-age-calculator/index.d.ts +1 -1
  194. package/dist/components/gestational-age-calculator/index.d.ts.map +1 -1
  195. package/dist/components/gestational-age-calculator/index.js +1 -1
  196. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
  197. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts.map +1 -0
  198. package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
  199. package/dist/components/hcg-doubling/hcg-doubling.d.ts.map +1 -1
  200. package/dist/components/hcg-doubling/index.d.ts +1 -1
  201. package/dist/components/hcg-doubling/index.d.ts.map +1 -1
  202. package/dist/components/hcg-doubling/index.js +1 -1
  203. package/dist/components/header-settings/header-settings.agent.d.ts.map +1 -1
  204. package/dist/components/header-settings/header-settings.d.ts +13 -1
  205. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  206. package/dist/components/header-settings/index.js +1 -1
  207. package/dist/components/locale-picker/index.js +1 -1
  208. package/dist/components/locale-picker/locale-picker.agent.d.ts.map +1 -1
  209. package/dist/components/locale-picker/locale-picker.d.ts +9 -0
  210. package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
  211. package/dist/components/map-view/index.js +1 -1
  212. package/dist/components/map-view/map-view.agent.d.ts.map +1 -1
  213. package/dist/components/map-view/map-view.d.ts +22 -0
  214. package/dist/components/map-view/map-view.d.ts.map +1 -1
  215. package/dist/components/notes-panel/index.js +1 -1
  216. package/dist/components/number-input/index.js +1 -1
  217. package/dist/components/number-input/number-input.d.ts +2 -1
  218. package/dist/components/number-input/number-input.d.ts.map +1 -1
  219. package/dist/components/optical-prescription/index.js +1 -1
  220. package/dist/components/patient-details/index.js +1 -1
  221. package/dist/components/patient-table/index.js +1 -1
  222. package/dist/components/payment-form/index.d.ts +1 -1
  223. package/dist/components/payment-form/index.d.ts.map +1 -1
  224. package/dist/components/payment-form/index.js +1 -1
  225. package/dist/components/payment-form/payment-form.agent.d.ts.map +1 -1
  226. package/dist/components/payment-form/payment-form.d.ts +32 -1
  227. package/dist/components/payment-form/payment-form.d.ts.map +1 -1
  228. package/dist/components/pdf-viewer/index.js +1 -1
  229. package/dist/components/pdf-viewer/pdf-viewer.agent.d.ts.map +1 -1
  230. package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
  231. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  232. package/dist/components/practice-results/index.js +1 -1
  233. package/dist/components/pregnancy-dating/index.d.ts +1 -1
  234. package/dist/components/pregnancy-dating/index.d.ts.map +1 -1
  235. package/dist/components/pregnancy-dating/index.js +1 -1
  236. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
  237. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts.map +1 -0
  238. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
  239. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts.map +1 -1
  240. package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
  241. package/dist/components/pregnancy-weight-gain/index.d.ts.map +1 -1
  242. package/dist/components/pregnancy-weight-gain/index.js +6 -5
  243. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
  244. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts.map +1 -0
  245. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
  246. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
  247. package/dist/components/progress/index.js +1 -1
  248. package/dist/components/progress/progress.agent.d.ts.map +1 -1
  249. package/dist/components/progress/progress.d.ts +13 -0
  250. package/dist/components/progress/progress.d.ts.map +1 -1
  251. package/dist/components/radiograph-panel/index.js +1 -1
  252. package/dist/components/rich-text-editor/index.js +1 -1
  253. package/dist/components/session-countdown/index.js +1 -1
  254. package/dist/components/sign-document/index.js +1 -1
  255. package/dist/components/slot-grid/index.d.ts +2 -1
  256. package/dist/components/slot-grid/index.d.ts.map +1 -1
  257. package/dist/components/slot-grid/index.js +5 -4
  258. package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
  259. package/dist/components/slot-grid/slot-grid.agent.d.ts.map +1 -0
  260. package/dist/components/slot-grid/slot-grid.d.ts +34 -0
  261. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  262. package/dist/components/sparkline/index.js +1 -1
  263. package/dist/components/sparkline/sparkline.agent.d.ts.map +1 -1
  264. package/dist/components/sparkline/sparkline.d.ts +10 -0
  265. package/dist/components/sparkline/sparkline.d.ts.map +1 -1
  266. package/dist/components/tab-bar/index.js +1 -1
  267. package/dist/components/tab-bar/tab-bar.d.ts +13 -0
  268. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  269. package/dist/components/task-card/index.js +1 -1
  270. package/dist/components/task-card/task-card.agent.d.ts.map +1 -1
  271. package/dist/components/unit-converter/index.js +1 -1
  272. package/dist/components/warning-stack/index.js +1 -1
  273. package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
  274. package/dist/index.js +630 -627
  275. package/dist/patterns/alia-assistant/index.js +1 -1
  276. package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts.map +1 -1
  277. package/dist/patterns/anamnesis/anamnesis-compile.d.ts.map +1 -1
  278. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
  279. package/dist/patterns/anamnesis/anamnesis-derive.d.ts.map +1 -1
  280. package/dist/patterns/anamnesis/anamnesis-events.d.ts.map +1 -1
  281. package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts.map +1 -1
  282. package/dist/patterns/anamnesis/anamnesis-field.d.ts.map +1 -1
  283. package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
  284. package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
  285. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
  286. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts.map +1 -0
  287. package/dist/patterns/anamnesis/anamnesis-intake.d.ts.map +1 -1
  288. package/dist/patterns/anamnesis/anamnesis-matrix.d.ts.map +1 -1
  289. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
  290. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts.map +1 -1
  291. package/dist/patterns/anamnesis/anamnesis-readonly.d.ts.map +1 -1
  292. package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts.map +1 -1
  293. package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
  294. package/dist/patterns/anamnesis/anamnesis-types.d.ts.map +1 -1
  295. package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts.map +1 -1
  296. package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
  297. package/dist/patterns/anamnesis/anamnesis.d.ts.map +1 -1
  298. package/dist/patterns/anamnesis/index.d.ts +3 -2
  299. package/dist/patterns/anamnesis/index.d.ts.map +1 -1
  300. package/dist/patterns/anamnesis/index.js +7 -6
  301. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  302. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
  303. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  304. package/dist/tokens.css +1 -1
  305. package/package.json +1 -1
  306. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
  307. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js.map +0 -1
  308. package/dist/_chunks/anamnesis-i18n-CfC0qYzy.js.map +0 -1
  309. package/dist/_chunks/booking-DjNbd7C1.js.map +0 -1
  310. package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
  311. package/dist/_chunks/chat-container-HlFnoEIl.js.map +0 -1
  312. package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
  313. package/dist/_chunks/cycle-calculator-BwqYVPB4.js.map +0 -1
  314. package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
  315. package/dist/_chunks/date-picker-variants-eL6HjWvw.js.map +0 -1
  316. package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
  317. package/dist/_chunks/due-date-calculator-CwfsFd3T.js.map +0 -1
  318. package/dist/_chunks/editor-overlay-DE3esyio.js.map +0 -1
  319. package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
  320. package/dist/_chunks/fetal-weight-ePlLjJPc.js.map +0 -1
  321. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
  322. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js.map +0 -1
  323. package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
  324. package/dist/_chunks/hcg-doubling-BBqD2wI2.js.map +0 -1
  325. package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
  326. package/dist/_chunks/header-settings--pjYOe6g.js.map +0 -1
  327. package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
  328. package/dist/_chunks/isSameDay-DUEiAT0G.js.map +0 -1
  329. package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
  330. package/dist/_chunks/locale-picker-BfBUdT1m.js.map +0 -1
  331. package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
  332. package/dist/_chunks/map-view-CsaHfoo6.js.map +0 -1
  333. package/dist/_chunks/marketplace-app-shell-DwcFMxzp.js.map +0 -1
  334. package/dist/_chunks/number-input-DrozbZAU.js.map +0 -1
  335. package/dist/_chunks/payment-form-h-BZ8onk.js.map +0 -1
  336. package/dist/_chunks/pdf-viewer-Ddx-T053.js.map +0 -1
  337. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
  338. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js.map +0 -1
  339. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
  340. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js.map +0 -1
  341. package/dist/_chunks/progress-DA413-zn.js +0 -299
  342. package/dist/_chunks/progress-DA413-zn.js.map +0 -1
  343. package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
  344. package/dist/_chunks/slot-grid-CQSULZjd.js.map +0 -1
  345. package/dist/_chunks/sparkline-BTY4B5tv.js.map +0 -1
  346. package/dist/_chunks/subDays-BcNi04uf.js +0 -8
  347. package/dist/_chunks/tab-bar-Axhk6xzx.js.map +0 -1
  348. package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
  349. package/dist/_chunks/task-card.agent-Bt14CzUd.js.map +0 -1
@@ -1,34 +1,35 @@
1
- import { jsxs as f, jsx as a, Fragment as W } from "react/jsx-runtime";
2
- import { forwardRef as ot, useId as rt, useState as K, useCallback as j, useRef as ae, useEffect as H, useMemo as w, useImperativeHandle as _t } from "react";
1
+ import { jsxs as f, jsx as a, Fragment as X } from "react/jsx-runtime";
2
+ import { forwardRef as ot, useId as rt, useState as q, useCallback as H, useRef as ie, useEffect as U, useMemo as w, useImperativeHandle as _t } from "react";
3
3
  import { c as Pe } from "./index-D2ZczOXr.js";
4
- import { useTranslation as O, Trans as Pt } from "react-i18next";
5
- import { u as Ot } from "./registry-DvAUVLHh.js";
6
- import { A as z } from "./alert-CiJT540z.js";
7
- import { B as ie } from "./button-CPGiR_bH.js";
4
+ import { useTranslation as B, Trans as Pt } from "react-i18next";
5
+ import { u as Bt } from "./registry-DvAUVLHh.js";
6
+ import { A as j } from "./alert-CiJT540z.js";
7
+ import { B as ne } from "./button-CPGiR_bH.js";
8
8
  import { C as Ke } from "./checkbox-BuZ1u__2.js";
9
- import { C as Bt } from "./checkbox-group-CfqMv57d.js";
10
- import { D as Et } from "./date-picker-ZHejTVAJ.js";
9
+ import { C as Ot } from "./checkbox-group-CfqMv57d.js";
10
+ import { D as Et } from "./date-picker-Bp64zk2p.js";
11
11
  import { E as Rt } from "./email-input-Dpe63k0K.js";
12
- import { F as Z } from "./form-field-M5UpX65Z.js";
12
+ import { F as W } from "./form-field-M5UpX65Z.js";
13
13
  import { P as Vt } from "./phone-input-BsZIoE36.js";
14
14
  import { T as Lt } from "./text-area-Bt3p7Pt0.js";
15
15
  import { T as Ce } from "./text-input-CUvCb6ST.js";
16
16
  import { S as Ft } from "./spinner-hbwuKwMf.js";
17
17
  import { I as tt } from "./icon-button-C_kbcd7I.js";
18
- import { S as Oe } from "./select-BW5ecXlX.js";
18
+ import { S as Be } from "./select-BW5ecXlX.js";
19
19
  import { C as Ge } from "./combobox-DiMLItyu.js";
20
20
  import { M as Ue } from "./multi-select-CC52Qws6.js";
21
21
  import { S as _e } from "./skeleton-CZbwyJAA.js";
22
22
  import { E as dt } from "./empty-state-CrLsi0XI.js";
23
23
  import { S as $t } from "./stepper-accordion-BeVMZPuG.js";
24
24
  import { S as zt } from "./stepper-progress-Bv0njx4g.js";
25
- import { p as L, S as Kt } from "./slot-grid-CQSULZjd.js";
26
- import { s as le, i as st } from "./isSameDay-DUEiAT0G.js";
27
- import { G as lt, i as ce, a as je, c as jt, q as ye, o as qt, f as Te, H as De } from "./date-picker-variants-eL6HjWvw.js";
28
- import { s as Ht } from "./subDays-BcNi04uf.js";
25
+ import { S as Kt } from "./slot-grid-DNiUcXy2.js";
26
+ import { p as $ } from "./parseISO-fOGpHKXm.js";
27
+ import { l as le, f as Te, b as st } from "./format-4HNwNGrN.js";
28
+ import { w as lt, c as ce, a as je, i as jt, s as ye, l as qt, x as De } from "./date-picker-variants-pKAJfnWr.js";
29
+ import { s as Ht } from "./subDays-CAUv47M1.js";
29
30
  import { C as Gt } from "./chevron-left-B8cOyH-V.js";
30
31
  import { C as Ut } from "./chevron-right-I9AeSxH2.js";
31
- import { c as F } from "./createLucideIcon-DhHxpK9K.js";
32
+ import { c as z } from "./createLucideIcon-DhHxpK9K.js";
32
33
  import { M as Yt, S as Jt } from "./sun-Bj9Mr553.js";
33
34
  import { S as Zt } from "./stethoscope-sZXGC43m.js";
34
35
  import { H as Wt } from "./heart-pulse-BCppJyN2.js";
@@ -50,7 +51,7 @@ const ss = [
50
51
  key: "169zse"
51
52
  }
52
53
  ]
53
- ], as = F("activity", ss);
54
+ ], as = z("activity", ss);
54
55
  /**
55
56
  * @license lucide-react v1.22.0 - ISC
56
57
  *
@@ -68,7 +69,7 @@ const is = [
68
69
  }
69
70
  ],
70
71
  ["path", { d: "M9 12h.01", key: "157uk2" }]
71
- ], ns = F("baby", is);
72
+ ], ns = z("baby", is);
72
73
  /**
73
74
  * @license lucide-react v1.22.0 - ISC
74
75
  *
@@ -83,7 +84,7 @@ const os = [
83
84
  key: "w610uw"
84
85
  }
85
86
  ]
86
- ], rs = F("bone", os);
87
+ ], rs = z("bone", os);
87
88
  /**
88
89
  * @license lucide-react v1.22.0 - ISC
89
90
  *
@@ -99,7 +100,7 @@ const ds = [
99
100
  ["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
100
101
  ["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
101
102
  ["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
102
- ], ls = F("brain", ds);
103
+ ], ls = z("brain", ds);
103
104
  /**
104
105
  * @license lucide-react v1.22.0 - ISC
105
106
  *
@@ -115,7 +116,7 @@ const cs = [
115
116
  ["path", { d: "M13 18H7", key: "bb0bb7" }],
116
117
  ["path", { d: "M7 14h.01", key: "1qa3f1" }],
117
118
  ["path", { d: "M17 18h.01", key: "1bdyru" }]
118
- ], us = F("calendar-range", cs);
119
+ ], us = z("calendar-range", cs);
119
120
  /**
120
121
  * @license lucide-react v1.22.0 - ISC
121
122
  *
@@ -125,7 +126,7 @@ const cs = [
125
126
  const ps = [
126
127
  ["path", { d: "M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0", key: "1dfaln" }],
127
128
  ["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
128
- ], ms = F("ear", ps);
129
+ ], ms = z("ear", ps);
129
130
  /**
130
131
  * @license lucide-react v1.22.0 - ISC
131
132
  *
@@ -139,7 +140,7 @@ const gs = [
139
140
  ["path", { d: "M9 14h2", key: "197e7h" }],
140
141
  ["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
141
142
  ["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
142
- ], fs = F("microscope", gs);
143
+ ], fs = z("microscope", gs);
143
144
  /**
144
145
  * @license lucide-react v1.22.0 - ISC
145
146
  *
@@ -152,7 +153,7 @@ const hs = [
152
153
  { d: "m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z", key: "wa1lgi" }
153
154
  ],
154
155
  ["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
155
- ], vs = F("pill", hs);
156
+ ], vs = z("pill", hs);
156
157
  /**
157
158
  * @license lucide-react v1.22.0 - ISC
158
159
  *
@@ -165,7 +166,7 @@ const bs = [
165
166
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
166
167
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
167
168
  ["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
168
- ], ys = F("scissors", bs);
169
+ ], ys = z("scissors", bs);
169
170
  /**
170
171
  * @license lucide-react v1.22.0 - ISC
171
172
  *
@@ -177,7 +178,7 @@ const ks = [
177
178
  ["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
178
179
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
179
180
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
180
- ], xs = F("smile", ks);
181
+ ], xs = z("smile", ks);
181
182
  /**
182
183
  * @license lucide-react v1.22.0 - ISC
183
184
  *
@@ -193,7 +194,7 @@ const Ss = [
193
194
  ["path", { d: "M22 22H2", key: "19qnx5" }],
194
195
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
195
196
  ["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
196
- ], Is = F("sunset", Ss);
197
+ ], Is = z("sunset", Ss);
197
198
  /**
198
199
  * @license lucide-react v1.22.0 - ISC
199
200
  *
@@ -207,7 +208,7 @@ const Ns = [
207
208
  ["path", { d: "m9 11 4 4", key: "rovt3i" }],
208
209
  ["path", { d: "m5 19-3 3", key: "59f2uf" }],
209
210
  ["path", { d: "m14 4 6 6", key: "yqp9t2" }]
210
- ], at = F("syringe", Ns);
211
+ ], at = z("syringe", Ns);
211
212
  function ws(e, t, s) {
212
213
  return lt(e, -1, s);
213
214
  }
@@ -280,7 +281,7 @@ const Cs = {
280
281
  "email",
281
282
  "whatsapp",
282
283
  "sms"
283
- ], X = "all", Ds = "de";
284
+ ], Q = "all", Ds = "de";
284
285
  function Ms(e) {
285
286
  return [...e.lockedOperatorId ? e.specialties.filter(
286
287
  (s) => {
@@ -320,7 +321,7 @@ function Ts(e) {
320
321
  );
321
322
  }
322
323
  if (!t) {
323
- const s = Be(e.value);
324
+ const s = Oe(e.value);
324
325
  if (s.length > 0)
325
326
  return e.operators.filter(
326
327
  (i) => {
@@ -332,16 +333,16 @@ function Ts(e) {
332
333
  return [];
333
334
  }
334
335
  function _s(e, t) {
335
- const s = e.country === Ds, i = !s || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, l = ue(e.value).length > 0, p = !o || l, r = Be(e.value).length > 0, c = !p || r, m = t.operators, k = !!e.allowOperatorSelection && c && r && !e.lockedOperatorId && m.length > 1, I = c && r, N = (!I || e.value.date !== void 0) && e.value.date !== void 0, M = (!N || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, y = r && m.length === 0;
336
+ const s = e.country === Ds, i = !s || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && i, r = ue(e.value).length > 0, m = !o || r, d = Oe(e.value).length > 0, l = !m || d, c = t.operators, x = !!e.allowOperatorSelection && l && d && !e.lockedOperatorId && c.length > 1, S = l && d, N = (!S || e.value.date !== void 0) && e.value.date !== void 0, M = (!N || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, k = d && c.length === 0;
336
337
  return {
337
338
  insurance: s,
338
339
  specialty: o,
339
- service: p,
340
- operator: k,
341
- date: I,
340
+ service: m,
341
+ operator: x,
342
+ date: S,
342
343
  slot: N,
343
344
  details: M,
344
- onboardingIncomplete: y
345
+ onboardingIncomplete: k
345
346
  };
346
347
  }
347
348
  function Ps(e, t) {
@@ -351,7 +352,7 @@ function Ps(e, t) {
351
352
  1: e.value.insuranceType !== void 0,
352
353
  // 0.34.0: array-or-single — satisfied when EITHER form is present.
353
354
  2: ue(e.value).length > 0,
354
- 3: Be(e.value).length > 0,
355
+ 3: Oe(e.value).length > 0,
355
356
  4: e.value.operatorId !== void 0 || e.value.operatorIds !== void 0 && e.value.operatorIds.length > 0,
356
357
  5: e.value.date !== void 0,
357
358
  6: e.value.slotKey !== void 0,
@@ -363,7 +364,7 @@ function Ps(e, t) {
363
364
  visibleSteps: s
364
365
  };
365
366
  }
366
- function Os(e) {
367
+ function Bs(e) {
367
368
  const t = {
368
369
  specialties: Ms(e),
369
370
  services: As(e),
@@ -371,17 +372,17 @@ function Os(e) {
371
372
  }, s = _s(e, t), { currentStep: i, visibleSteps: n } = Ps(e, s);
372
373
  let o;
373
374
  if (e.value.date && e.value.slotKey) {
374
- const c = e.availableSlots[e.value.date];
375
- c && (o = c.find((m) => m.key === e.value.slotKey));
375
+ const l = e.availableSlots[e.value.date];
376
+ l && (o = l.find((c) => c.key === e.value.slotKey));
376
377
  }
377
- const l = Be(e.value), u = l.length > 0 ? e.services.find((c) => c.id === l[0]) : void 0, p = ue(e.value).length > 0, r = l.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!s.insurance || e.value.insuranceType !== void 0) && (!s.specialty || p);
378
+ const r = Oe(e.value), u = r.length > 0 ? e.services.find((l) => l.id === r[0]) : void 0, m = ue(e.value).length > 0, d = r.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!s.insurance || e.value.insuranceType !== void 0) && (!s.specialty || m);
378
379
  return {
379
380
  gates: s,
380
381
  filtered: t,
381
382
  currentStep: i,
382
383
  totalSteps: n.length,
383
384
  visibleSteps: n,
384
- isReadyToSubmit: r,
385
+ isReadyToSubmit: d,
385
386
  durationMin: u == null ? void 0 : u.durationMin,
386
387
  selectedSlot: o
387
388
  };
@@ -434,7 +435,7 @@ function mt(e, t) {
434
435
  // Default the operator to the "All operators" sentinel so a patient
435
436
  // who doesn't care about picking lands on a satisfied step 4 without
436
437
  // any further input.
437
- operatorId: t ? X : void 0,
438
+ operatorId: t ? Q : void 0,
438
439
  operatorIds: void 0,
439
440
  date: void 0,
440
441
  slotKey: void 0,
@@ -447,7 +448,7 @@ function gt(e, t) {
447
448
  ...e,
448
449
  serviceId: void 0,
449
450
  serviceIds: t,
450
- operatorId: s ? X : void 0,
451
+ operatorId: s ? Q : void 0,
451
452
  operatorIds: void 0,
452
453
  date: void 0,
453
454
  slotKey: void 0,
@@ -477,7 +478,7 @@ function ht(e, t) {
477
478
  function ue(e) {
478
479
  return e.specialtyIds && e.specialtyIds.length > 0 ? e.specialtyIds : e.specialtyId ? [e.specialtyId] : [];
479
480
  }
480
- function Be(e) {
481
+ function Oe(e) {
481
482
  return e.serviceIds && e.serviceIds.length > 0 ? e.serviceIds : e.serviceId ? [e.serviceId] : [];
482
483
  }
483
484
  function Ee(e, t) {
@@ -495,18 +496,18 @@ function vt(e, t) {
495
496
  slotKey: t
496
497
  };
497
498
  }
498
- function Bs(e, t) {
499
+ function Os(e, t) {
499
500
  let s = e;
500
501
  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) {
501
502
  const n = ue(s), o = n.length > 0 ? t.services.filter(
502
- (l) => l.specialtyId && n.includes(l.specialtyId)
503
+ (r) => r.specialtyId && n.includes(r.specialtyId)
503
504
  ) : t.services;
504
- 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: X }));
505
+ 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: Q }));
505
506
  }
506
507
  return s;
507
508
  }
508
509
  function He(e) {
509
- if (e.operatorId && e.operatorId !== X)
510
+ if (e.operatorId && e.operatorId !== Q)
510
511
  return e.operatorId;
511
512
  }
512
513
  function Es(e) {
@@ -522,14 +523,14 @@ function Rs(e, t, s) {
522
523
  const i = bt(e), n = new Set(i);
523
524
  if (s)
524
525
  return qe.filter(
525
- (r) => s.includes(r) && n.has(r)
526
+ (d) => s.includes(d) && n.has(d)
526
527
  );
527
528
  const o = [];
528
529
  n.has("email") && o.push("email");
529
- const l = Es(t), u = n.has("whatsapp");
530
- u && l && o.push("whatsapp"), !u && n.has("sms") && o.push("sms");
531
- const p = new Set(o);
532
- return qe.filter((r) => p.has(r));
530
+ const r = Es(t), u = n.has("whatsapp");
531
+ u && r && o.push("whatsapp"), !u && n.has("sms") && o.push("sms");
532
+ const m = new Set(o);
533
+ return qe.filter((d) => m.has(d));
533
534
  }
534
535
  const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 300, Me = { state: "idle" }, Ye = ot(
535
536
  ({
@@ -539,42 +540,42 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
539
540
  requireCodiceFiscale: i = !1,
540
541
  requireDateOfBirth: n = !1,
541
542
  requireInsuranceNumber: o = !1,
542
- insuranceType: l,
543
+ insuranceType: r,
543
544
  showNote: u = !1,
544
- showReturningPatientFlag: p = !1,
545
- privacyPolicyUrl: r,
546
- termsUrl: c,
547
- validateCodiceFiscale: m,
548
- validateInsuranceNumber: k,
549
- submitting: I = !1,
550
- summarySlot: v,
545
+ showReturningPatientFlag: m = !1,
546
+ privacyPolicyUrl: d,
547
+ termsUrl: l,
548
+ validateCodiceFiscale: c,
549
+ validateInsuranceNumber: x,
550
+ submitting: S = !1,
551
+ summarySlot: h,
551
552
  defaultPhoneCountry: N,
552
553
  confirmationChannels: D,
553
554
  defaultConfirmationChannels: M,
554
- submitError: y
555
+ submitError: k
555
556
  }, b) => {
556
557
  var we, re;
557
- const { t: d } = O(), T = rt(), [x, g] = K(Me), [S, _] = K(Me), [A, G] = K({}), B = j(
558
- (h) => G((C) => ({ ...C, [h]: !0 })),
558
+ const { t: p } = B(), I = rt(), [A, g] = q(Me), [y, _] = q(Me), [T, O] = q({}), E = H(
559
+ (v) => O((C) => ({ ...C, [v]: !0 })),
559
560
  []
560
- ), E = ae(null), U = ae(
561
+ ), V = ie(null), L = ie(
561
562
  null
562
563
  );
563
- H(
564
+ U(
564
565
  () => () => {
565
- E.current && clearTimeout(E.current), U.current && clearTimeout(U.current);
566
+ V.current && clearTimeout(V.current), L.current && clearTimeout(L.current);
566
567
  },
567
568
  []
568
569
  );
569
- const P = j(
570
- (h) => t({ ...e, ...h }),
570
+ const P = H(
571
+ (v) => t({ ...e, ...v }),
571
572
  [e, t]
572
- ), Q = w(
573
+ ), ee = w(
573
574
  () => bt(D),
574
575
  [D]
575
- ), q = Q.length >= 2, pe = ae(!1);
576
- H(() => {
577
- if (!q) {
576
+ ), G = ee.length >= 2, pe = ie(!1);
577
+ U(() => {
578
+ if (!G) {
578
579
  e.confirmationChannels !== void 0 && P({ confirmationChannels: void 0 });
579
580
  return;
580
581
  }
@@ -582,90 +583,90 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
582
583
  pe.current = !0;
583
584
  return;
584
585
  }
585
- const h = Rs(
586
- Q,
586
+ const v = Rs(
587
+ ee,
587
588
  e.mobilePhone,
588
589
  M
589
590
  );
590
- pe.current = !0, P({ confirmationChannels: h });
591
+ pe.current = !0, P({ confirmationChannels: v });
591
592
  }, [
592
- q,
593
- Q,
593
+ G,
594
+ ee,
594
595
  e.mobilePhone,
595
596
  M
596
597
  ]);
597
- const ee = w(
598
+ const te = w(
598
599
  () => e.confirmationChannels ?? [],
599
600
  [e.confirmationChannels]
600
- ), xe = q && ee.length === 0;
601
- H(() => {
602
- const h = e.codiceFiscale;
603
- if (!i || !m || !h) {
601
+ ), xe = G && te.length === 0;
602
+ U(() => {
603
+ const v = e.codiceFiscale;
604
+ if (!i || !c || !v) {
604
605
  g(Me);
605
606
  return;
606
607
  }
607
- if (!Vs.test(h)) {
608
+ if (!Vs.test(v)) {
608
609
  g({
609
610
  state: "invalid",
610
- hint: d("booking.details.codiceFiscale.invalidFormat")
611
+ hint: p("booking.details.codiceFiscale.invalidFormat")
611
612
  });
612
613
  return;
613
614
  }
614
- g({ state: "pending" }), E.current && clearTimeout(E.current), E.current = setTimeout(() => {
615
- m(h).then(
615
+ g({ state: "pending" }), V.current && clearTimeout(V.current), V.current = setTimeout(() => {
616
+ c(v).then(
616
617
  (C) => g(
617
618
  C.valid ? { state: "valid" } : { state: "invalid", hint: C.hint }
618
619
  )
619
620
  ).catch(
620
621
  () => g({
621
622
  state: "invalid",
622
- hint: d("booking.details.codiceFiscale.unavailable")
623
+ hint: p("booking.details.codiceFiscale.unavailable")
623
624
  })
624
625
  );
625
626
  }, nt);
626
- }, [i, m, e.codiceFiscale, d]);
627
- const Y = o && l === "public";
628
- H(() => {
629
- const h = e.insuranceNumber;
630
- if (!Y || !k || !h) {
627
+ }, [i, c, e.codiceFiscale, p]);
628
+ const Y = o && r === "public";
629
+ U(() => {
630
+ const v = e.insuranceNumber;
631
+ if (!Y || !x || !v) {
631
632
  _(Me);
632
633
  return;
633
634
  }
634
- _({ state: "pending" }), U.current && clearTimeout(U.current), U.current = setTimeout(() => {
635
- k(h).then(
635
+ _({ state: "pending" }), L.current && clearTimeout(L.current), L.current = setTimeout(() => {
636
+ x(v).then(
636
637
  (C) => _(
637
638
  C.valid ? { state: "valid" } : { state: "invalid", hint: C.hint }
638
639
  )
639
640
  ).catch(
640
641
  () => _({
641
642
  state: "invalid",
642
- hint: d("booking.details.insuranceNumber.unavailable")
643
+ hint: p("booking.details.insuranceNumber.unavailable")
643
644
  })
644
645
  );
645
646
  }, nt);
646
- }, [Y, k, e.insuranceNumber, d]);
647
- const ne = w(
647
+ }, [Y, x, e.insuranceNumber, p]);
648
+ const oe = w(
648
649
  () => !!(e.email && Ls.test(e.email)),
649
650
  [e.email]
650
651
  ), me = w(
651
652
  () => !!(e.mobilePhone && e.mobilePhone.length >= 6),
652
653
  [e.mobilePhone]
653
654
  ), Se = w(() => {
654
- var h, C;
655
- return !(!((h = e.firstName) != null && h.trim()) || !((C = e.lastName) != null && C.trim()) || !ne || !me || i && x.state !== "valid" || n && !e.dateOfBirth || Y && S.state !== "valid");
655
+ var v, C;
656
+ return !(!((v = e.firstName) != null && v.trim()) || !((C = e.lastName) != null && C.trim()) || !oe || !me || i && A.state !== "valid" || n && !e.dateOfBirth || Y && y.state !== "valid");
656
657
  }, [
657
658
  e.firstName,
658
659
  e.lastName,
659
- ne,
660
+ oe,
660
661
  me,
661
662
  i,
662
- x.state,
663
+ A.state,
663
664
  n,
664
665
  e.dateOfBirth,
665
666
  Y,
666
- S.state
667
- ]), Ie = !!(e.privacyConsent && e.termsConsent), Re = !q || ee.length > 0, oe = Se && Ie && Re && !I, Ve = (h) => {
668
- if (h.preventDefault(), G({
667
+ y.state
668
+ ]), Ie = !!(e.privacyConsent && e.termsConsent), Re = !G || te.length > 0, J = Se && Ie && Re && !S, Ve = (v) => {
669
+ if (v.preventDefault(), O({
669
670
  firstName: !0,
670
671
  lastName: !0,
671
672
  email: !0,
@@ -673,7 +674,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
673
674
  codiceFiscale: !0,
674
675
  dateOfBirth: !0,
675
676
  insuranceNumber: !0
676
- }), !oe) return;
677
+ }), !J) return;
677
678
  const C = {
678
679
  firstName: e.firstName.trim(),
679
680
  lastName: e.lastName.trim(),
@@ -689,15 +690,15 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
689
690
  // Only include when the picker was visible; otherwise the single
690
691
  // implicit channel is inferred backend-side from the practice
691
692
  // config.
692
- confirmationChannels: q ? ee : void 0
693
+ confirmationChannels: G ? te : void 0
693
694
  };
694
695
  s(C);
695
- }, Ne = (h, C) => {
696
- const te = C && /^https?:\/\//i.test(C) ? C : void 0;
697
- return te ? /* @__PURE__ */ a(
696
+ }, Ne = (v, C) => {
697
+ const se = C && /^https?:\/\//i.test(C) ? C : void 0;
698
+ return se ? /* @__PURE__ */ a(
698
699
  Pt,
699
700
  {
700
- i18nKey: h,
701
+ i18nKey: v,
701
702
  components: {
702
703
  // The `<Trans>` runtime injects link text from the i18n
703
704
  // string. The anchor renders empty at static-analysis time,
@@ -709,7 +710,7 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
709
710
  /* @__PURE__ */ a(
710
711
  "a",
711
712
  {
712
- href: te,
713
+ href: se,
713
714
  target: "_blank",
714
715
  rel: "noopener noreferrer",
715
716
  className: "ds:underline ds:text-[var(--primary)]"
@@ -718,49 +719,49 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
718
719
  )
719
720
  }
720
721
  }
721
- ) : d(h);
722
+ ) : p(v);
722
723
  };
723
724
  return /* @__PURE__ */ f(
724
725
  "form",
725
726
  {
726
727
  ref: b,
727
- id: T,
728
+ id: I,
728
729
  noValidate: !0,
729
730
  onSubmit: Ve,
730
731
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
731
732
  children: [
732
- v,
733
+ h,
733
734
  /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
734
735
  /* @__PURE__ */ a(
735
- Z,
736
+ W,
736
737
  {
737
- label: d("booking.details.firstName.label"),
738
+ label: p("booking.details.firstName.label"),
738
739
  required: !0,
739
- error: A.firstName && !((we = e.firstName) != null && we.trim()) ? d("booking.details.firstName.required") : void 0,
740
+ error: T.firstName && !((we = e.firstName) != null && we.trim()) ? p("booking.details.firstName.required") : void 0,
740
741
  children: /* @__PURE__ */ a(
741
742
  Ce,
742
743
  {
743
744
  autoComplete: "given-name",
744
745
  value: e.firstName ?? "",
745
- onChange: (h) => P({ firstName: h.target.value }),
746
- onBlur: () => B("firstName")
746
+ onChange: (v) => P({ firstName: v.target.value }),
747
+ onBlur: () => E("firstName")
747
748
  }
748
749
  )
749
750
  }
750
751
  ),
751
752
  /* @__PURE__ */ a(
752
- Z,
753
+ W,
753
754
  {
754
- label: d("booking.details.lastName.label"),
755
+ label: p("booking.details.lastName.label"),
755
756
  required: !0,
756
- error: A.lastName && !((re = e.lastName) != null && re.trim()) ? d("booking.details.lastName.required") : void 0,
757
+ error: T.lastName && !((re = e.lastName) != null && re.trim()) ? p("booking.details.lastName.required") : void 0,
757
758
  children: /* @__PURE__ */ a(
758
759
  Ce,
759
760
  {
760
761
  autoComplete: "family-name",
761
762
  value: e.lastName ?? "",
762
- onChange: (h) => P({ lastName: h.target.value }),
763
- onBlur: () => B("lastName")
763
+ onChange: (v) => P({ lastName: v.target.value }),
764
+ onBlur: () => E("lastName")
764
765
  }
765
766
  )
766
767
  }
@@ -768,34 +769,34 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
768
769
  ] }),
769
770
  /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
770
771
  /* @__PURE__ */ a(
771
- Z,
772
+ W,
772
773
  {
773
- label: d("booking.details.email.label"),
774
+ label: p("booking.details.email.label"),
774
775
  required: !0,
775
- error: A.email && !ne ? d("booking.details.email.invalid") : void 0,
776
+ error: T.email && !oe ? p("booking.details.email.invalid") : void 0,
776
777
  children: /* @__PURE__ */ a(
777
778
  Rt,
778
779
  {
779
780
  value: e.email ?? "",
780
- onChange: (h) => P({ email: h.target.value }),
781
- onBlur: () => B("email")
781
+ onChange: (v) => P({ email: v.target.value }),
782
+ onBlur: () => E("email")
782
783
  }
783
784
  )
784
785
  }
785
786
  ),
786
787
  /* @__PURE__ */ a(
787
- Z,
788
+ W,
788
789
  {
789
- label: d("booking.details.mobilePhone.label"),
790
+ label: p("booking.details.mobilePhone.label"),
790
791
  required: !0,
791
- error: A.mobilePhone && !me ? d("booking.details.mobilePhone.invalid") : void 0,
792
+ error: T.mobilePhone && !me ? p("booking.details.mobilePhone.invalid") : void 0,
792
793
  children: /* @__PURE__ */ a(
793
794
  Vt,
794
795
  {
795
796
  value: e.mobilePhone ?? "",
796
797
  defaultCountry: N == null ? void 0 : N.toUpperCase(),
797
- onChange: (h) => {
798
- P({ mobilePhone: h }), B("mobilePhone");
798
+ onChange: (v) => {
799
+ P({ mobilePhone: v }), E("mobilePhone");
799
800
  }
800
801
  }
801
802
  )
@@ -804,39 +805,39 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
804
805
  ] }),
805
806
  i || n ? /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
806
807
  i ? /* @__PURE__ */ a(
807
- Z,
808
+ W,
808
809
  {
809
- label: d("booking.details.codiceFiscale.label"),
810
+ label: p("booking.details.codiceFiscale.label"),
810
811
  required: !0,
811
- description: x.state === "pending" ? d("booking.details.codiceFiscale.checking") : d("booking.details.codiceFiscale.helper"),
812
- error: A.codiceFiscale && x.state === "invalid" ? x.hint ?? d("booking.details.codiceFiscale.invalid") : void 0,
812
+ description: A.state === "pending" ? p("booking.details.codiceFiscale.checking") : p("booking.details.codiceFiscale.helper"),
813
+ error: T.codiceFiscale && A.state === "invalid" ? A.hint ?? p("booking.details.codiceFiscale.invalid") : void 0,
813
814
  children: /* @__PURE__ */ a(
814
815
  Ce,
815
816
  {
816
817
  value: e.codiceFiscale ?? "",
817
818
  maxLength: 16,
818
- onChange: (h) => P({
819
- codiceFiscale: h.target.value.slice(0, 16).toUpperCase()
819
+ onChange: (v) => P({
820
+ codiceFiscale: v.target.value.slice(0, 16).toUpperCase()
820
821
  }),
821
- onBlur: () => B("codiceFiscale")
822
+ onBlur: () => E("codiceFiscale")
822
823
  }
823
824
  )
824
825
  }
825
826
  ) : null,
826
827
  n ? /* @__PURE__ */ a(
827
- Z,
828
+ W,
828
829
  {
829
- label: d("booking.details.dateOfBirth.label"),
830
+ label: p("booking.details.dateOfBirth.label"),
830
831
  required: !0,
831
- error: A.dateOfBirth && !e.dateOfBirth ? d("booking.details.dateOfBirth.required") : void 0,
832
+ error: T.dateOfBirth && !e.dateOfBirth ? p("booking.details.dateOfBirth.required") : void 0,
832
833
  children: /* @__PURE__ */ a(
833
834
  Et,
834
835
  {
835
836
  value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
836
- onChange: (h) => {
837
+ onChange: (v) => {
837
838
  P({
838
- dateOfBirth: h ? h.toISOString().slice(0, 10) : void 0
839
- }), B("dateOfBirth");
839
+ dateOfBirth: v ? v.toISOString().slice(0, 10) : void 0
840
+ }), E("dateOfBirth");
840
841
  }
841
842
  }
842
843
  )
@@ -844,27 +845,27 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
844
845
  ) : null
845
846
  ] }) : null,
846
847
  Y ? /* @__PURE__ */ a(
847
- Z,
848
+ W,
848
849
  {
849
- label: d("booking.details.insuranceNumber.label"),
850
+ label: p("booking.details.insuranceNumber.label"),
850
851
  required: !0,
851
- description: S.state === "pending" ? d("booking.details.insuranceNumber.checking") : void 0,
852
- error: A.insuranceNumber && S.state === "invalid" ? S.hint ?? d("booking.details.insuranceNumber.invalid") : void 0,
852
+ description: y.state === "pending" ? p("booking.details.insuranceNumber.checking") : void 0,
853
+ error: T.insuranceNumber && y.state === "invalid" ? y.hint ?? p("booking.details.insuranceNumber.invalid") : void 0,
853
854
  children: /* @__PURE__ */ a(
854
855
  Ce,
855
856
  {
856
857
  value: e.insuranceNumber ?? "",
857
- onChange: (h) => P({ insuranceNumber: h.target.value }),
858
- onBlur: () => B("insuranceNumber")
858
+ onChange: (v) => P({ insuranceNumber: v.target.value }),
859
+ onBlur: () => E("insuranceNumber")
859
860
  }
860
861
  )
861
862
  }
862
863
  ) : null,
863
864
  u ? /* @__PURE__ */ a(
864
- Z,
865
+ W,
865
866
  {
866
- label: d("booking.details.note.label"),
867
- description: d("booking.details.note.helper", {
867
+ label: p("booking.details.note.label"),
868
+ description: p("booking.details.note.helper", {
868
869
  max: it
869
870
  }),
870
871
  children: /* @__PURE__ */ a(
@@ -873,17 +874,17 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
873
874
  value: e.note ?? "",
874
875
  maxLength: it,
875
876
  rows: 3,
876
- onChange: (h) => P({ note: h.target.value })
877
+ onChange: (v) => P({ note: v.target.value })
877
878
  }
878
879
  )
879
880
  }
880
881
  ) : null,
881
- p ? /* @__PURE__ */ a(
882
+ m ? /* @__PURE__ */ a(
882
883
  Ke,
883
884
  {
884
885
  checked: !!e.returningPatient,
885
- onCheckedChange: (h) => P({ returningPatient: h === !0 }),
886
- label: d("booking.details.returningPatient.label")
886
+ onCheckedChange: (v) => P({ returningPatient: v === !0 }),
887
+ label: p("booking.details.returningPatient.label")
887
888
  }
888
889
  ) : null,
889
890
  /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
@@ -891,11 +892,11 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
891
892
  Ke,
892
893
  {
893
894
  checked: !!e.privacyConsent,
894
- onCheckedChange: (h) => P({ privacyConsent: h === !0 }),
895
- label: /* @__PURE__ */ f(W, { children: [
895
+ onCheckedChange: (v) => P({ privacyConsent: v === !0 }),
896
+ label: /* @__PURE__ */ f(X, { children: [
896
897
  Ne(
897
898
  "booking.details.consent.privacy.label",
898
- r
899
+ d
899
900
  ),
900
901
  /* @__PURE__ */ a(
901
902
  "span",
@@ -912,11 +913,11 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
912
913
  Ke,
913
914
  {
914
915
  checked: !!e.termsConsent,
915
- onCheckedChange: (h) => P({ termsConsent: h === !0 }),
916
- label: /* @__PURE__ */ f(W, { children: [
916
+ onCheckedChange: (v) => P({ termsConsent: v === !0 }),
917
+ label: /* @__PURE__ */ f(X, { children: [
917
918
  Ne(
918
919
  "booking.details.consent.terms.label",
919
- c
920
+ l
920
921
  ),
921
922
  /* @__PURE__ */ a(
922
923
  "span",
@@ -930,40 +931,40 @@ const it = 500, Vs = /^[A-Z0-9]{16}$/, Ls = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, nt = 3
930
931
  }
931
932
  )
932
933
  ] }),
933
- q ? /* @__PURE__ */ a(
934
+ G ? /* @__PURE__ */ a(
934
935
  "div",
935
936
  {
936
937
  "data-component": "booking-confirmation-channels",
937
938
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
938
939
  children: /* @__PURE__ */ a(
939
- Bt,
940
+ Ot,
940
941
  {
941
- label: d("booking.confirmation.heading"),
942
- helperText: d("booking.confirmation.helper"),
943
- value: ee,
944
- onChange: (h) => P({
945
- confirmationChannels: h
942
+ label: p("booking.confirmation.heading"),
943
+ helperText: p("booking.confirmation.helper"),
944
+ value: te,
945
+ onChange: (v) => P({
946
+ confirmationChannels: v
946
947
  }),
947
948
  orientation: "vertical",
948
- options: Q.map((h) => ({
949
- value: h,
950
- label: d(`booking.confirmation.channel.${h}`)
949
+ options: ee.map((v) => ({
950
+ value: v,
951
+ label: p(`booking.confirmation.channel.${v}`)
951
952
  })),
952
- error: xe ? d("booking.confirmation.atLeastOne") : void 0
953
+ error: xe ? p("booking.confirmation.atLeastOne") : void 0
953
954
  }
954
955
  )
955
956
  }
956
957
  ) : null,
957
- y ? /* @__PURE__ */ a(z, { variant: "error", children: /* @__PURE__ */ a(z.Description, { children: y }) }) : null,
958
+ k ? /* @__PURE__ */ a(j, { variant: "error", children: /* @__PURE__ */ a(j.Description, { children: k }) }) : null,
958
959
  /* @__PURE__ */ a(
959
- ie,
960
+ ne,
960
961
  {
961
962
  intent: "primary",
962
963
  size: "md",
963
964
  type: "submit",
964
- disabled: !oe,
965
- startIcon: I ? /* @__PURE__ */ a(Ft, { variant: "pulse", size: "sm" }) : void 0,
966
- children: d("booking.details.submit")
965
+ disabled: !J,
966
+ startIcon: S ? /* @__PURE__ */ a(Ft, { variant: "pulse", size: "sm" }) : void 0,
967
+ children: p("booking.details.submit")
967
968
  }
968
969
  )
969
970
  ]
@@ -1030,7 +1031,7 @@ function Ks(e) {
1030
1031
  const t = zs(e.label) ?? Zt;
1031
1032
  return /* @__PURE__ */ a(t, { "aria-hidden": "true", className: "ds:size-5" });
1032
1033
  }
1033
- function se(e) {
1034
+ function ae(e) {
1034
1035
  return Te(e, "yyyy-MM-dd");
1035
1036
  }
1036
1037
  const js = [
@@ -1061,22 +1062,22 @@ function Hs({
1061
1062
  locale: i,
1062
1063
  loading: n
1063
1064
  }) {
1064
- const { t: o } = O(), l = w(() => t ? ye(L(t)) : e.length > 0 ? ye(L(e[0])) : ye(/* @__PURE__ */ new Date()), [t, e]), [u, p] = K(l), [r, c] = K(null), m = w(() => {
1065
- const y = ye(u), b = qt(u), d = y.getDay(), T = b.getDate(), x = [];
1066
- for (let g = d; g > 0; g -= 1) {
1067
- const S = new Date(y);
1068
- S.setDate(y.getDate() - g), x.push(S);
1065
+ const { t: o } = B(), r = w(() => t ? ye($(t)) : e.length > 0 ? ye($(e[0])) : ye(/* @__PURE__ */ new Date()), [t, e]), [u, m] = q(r), [d, l] = q(null), c = w(() => {
1066
+ const k = ye(u), b = qt(u), p = k.getDay(), I = b.getDate(), A = [];
1067
+ for (let g = p; g > 0; g -= 1) {
1068
+ const y = new Date(k);
1069
+ y.setDate(k.getDate() - g), A.push(y);
1069
1070
  }
1070
- for (let g = 0; g < T; g += 1) {
1071
- const S = new Date(y);
1072
- S.setDate(y.getDate() + g), x.push(S);
1071
+ for (let g = 0; g < I; g += 1) {
1072
+ const y = new Date(k);
1073
+ y.setDate(k.getDate() + g), A.push(y);
1073
1074
  }
1074
- for (; x.length < 42; ) {
1075
- const g = x[x.length - 1], S = new Date(g);
1076
- S.setDate(g.getDate() + 1), x.push(S);
1075
+ for (; A.length < 42; ) {
1076
+ const g = A[A.length - 1], y = new Date(g);
1077
+ y.setDate(g.getDate() + 1), A.push(y);
1077
1078
  }
1078
- return x;
1079
- }, [u]), k = w(() => {
1079
+ return A;
1080
+ }, [u]), x = w(() => {
1080
1081
  try {
1081
1082
  return new Intl.DateTimeFormat(i, {
1082
1083
  month: "long",
@@ -1085,58 +1086,58 @@ function Hs({
1085
1086
  } catch {
1086
1087
  return Te(u, "MMMM yyyy");
1087
1088
  }
1088
- }, [u, i]), I = w(() => {
1089
- const y = new Date(2024, 0, 7);
1090
- return Array.from({ length: 7 }, (b, d) => {
1091
- const T = new Date(y);
1092
- T.setDate(y.getDate() + d);
1089
+ }, [u, i]), S = w(() => {
1090
+ const k = new Date(2024, 0, 7);
1091
+ return Array.from({ length: 7 }, (b, p) => {
1092
+ const I = new Date(k);
1093
+ I.setDate(k.getDate() + p);
1093
1094
  try {
1094
- return new Intl.DateTimeFormat(i, { weekday: "short" }).format(T);
1095
+ return new Intl.DateTimeFormat(i, { weekday: "short" }).format(I);
1095
1096
  } catch {
1096
- return Te(T, "EEE");
1097
+ return Te(I, "EEE");
1097
1098
  }
1098
1099
  });
1099
- }, [i]), v = w(() => new Set(e), [e]), N = j(
1100
- (y) => v.has(se(y)),
1101
- [v]
1100
+ }, [i]), h = w(() => new Set(e), [e]), N = H(
1101
+ (k) => h.has(ae(k)),
1102
+ [h]
1102
1103
  ), D = w(() => {
1103
- if (r) return r;
1104
- if (t) return L(t);
1105
- const y = m.find(
1104
+ if (d) return d;
1105
+ if (t) return $(t);
1106
+ const k = c.find(
1106
1107
  (b) => De(b, u) && N(b)
1107
1108
  );
1108
- return y || (m.find((b) => De(b, u)) ?? null);
1109
- }, [r, t, m, u, N]), M = j(
1110
- (y, b) => {
1111
- let d = null;
1112
- switch (y.key) {
1109
+ return k || (c.find((b) => De(b, u)) ?? null);
1110
+ }, [d, t, c, u, N]), M = H(
1111
+ (k, b) => {
1112
+ let p = null;
1113
+ switch (k.key) {
1113
1114
  case "ArrowLeft":
1114
- d = new Date(b), d.setDate(b.getDate() - 1);
1115
+ p = new Date(b), p.setDate(b.getDate() - 1);
1115
1116
  break;
1116
1117
  case "ArrowRight":
1117
- d = new Date(b), d.setDate(b.getDate() + 1);
1118
+ p = new Date(b), p.setDate(b.getDate() + 1);
1118
1119
  break;
1119
1120
  case "ArrowUp":
1120
- d = new Date(b), d.setDate(b.getDate() - 7);
1121
+ p = new Date(b), p.setDate(b.getDate() - 7);
1121
1122
  break;
1122
1123
  case "ArrowDown":
1123
- d = new Date(b), d.setDate(b.getDate() + 7);
1124
+ p = new Date(b), p.setDate(b.getDate() + 7);
1124
1125
  break;
1125
1126
  case "Home":
1126
- d = new Date(b), d.setDate(b.getDate() - b.getDay());
1127
+ p = new Date(b), p.setDate(b.getDate() - b.getDay());
1127
1128
  break;
1128
1129
  case "End":
1129
- d = new Date(b), d.setDate(b.getDate() + (6 - b.getDay()));
1130
+ p = new Date(b), p.setDate(b.getDate() + (6 - b.getDay()));
1130
1131
  break;
1131
1132
  case "Enter":
1132
1133
  case " ": {
1133
- y.preventDefault(), N(b) && s(se(b));
1134
+ k.preventDefault(), N(b) && s(ae(b));
1134
1135
  return;
1135
1136
  }
1136
1137
  default:
1137
1138
  return;
1138
1139
  }
1139
- d && (y.preventDefault(), De(d, u) || p(ye(d)), c(d));
1140
+ p && (k.preventDefault(), De(p, u) || m(ye(p)), l(p));
1140
1141
  },
1141
1142
  [N, s, u]
1142
1143
  );
@@ -1149,7 +1150,7 @@ function Hs({
1149
1150
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1150
1151
  children: [
1151
1152
  /* @__PURE__ */ a(_e, { variant: "text", width: "40%" }),
1152
- /* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (y, b) => /* @__PURE__ */ a(_e, { variant: "rounded", height: "2.5rem" }, `mg-skel-${b}`)) })
1153
+ /* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (k, b) => /* @__PURE__ */ a(_e, { variant: "rounded", height: "2.5rem" }, `mg-skel-${b}`)) })
1153
1154
  ]
1154
1155
  }
1155
1156
  ) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -1163,7 +1164,7 @@ function Hs({
1163
1164
  intent: "ghost",
1164
1165
  flipIconInRtl: !0,
1165
1166
  onClick: () => {
1166
- p((y) => ws(y)), c(null);
1167
+ m((k) => ws(k)), l(null);
1167
1168
  }
1168
1169
  }
1169
1170
  ),
@@ -1172,7 +1173,7 @@ function Hs({
1172
1173
  {
1173
1174
  className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
1174
1175
  "aria-live": "polite",
1175
- children: k
1176
+ children: x
1176
1177
  }
1177
1178
  ),
1178
1179
  /* @__PURE__ */ a(
@@ -1184,7 +1185,7 @@ function Hs({
1184
1185
  intent: "ghost",
1185
1186
  flipIconInRtl: !0,
1186
1187
  onClick: () => {
1187
- p((y) => lt(y, 1)), c(null);
1188
+ m((k) => lt(k, 1)), l(null);
1188
1189
  }
1189
1190
  }
1190
1191
  )
@@ -1201,30 +1202,30 @@ function Hs({
1201
1202
  {
1202
1203
  role: "row",
1203
1204
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
1204
- children: I.map((y, b) => /* @__PURE__ */ a(
1205
+ children: S.map((k, b) => /* @__PURE__ */ a(
1205
1206
  "div",
1206
1207
  {
1207
1208
  role: "columnheader",
1208
1209
  className: "type-meta ds:text-center ds:text-[var(--muted-foreground)] ds:font-[var(--font-weight-medium)]",
1209
- children: y
1210
+ children: k
1210
1211
  },
1211
1212
  `wd-${b}`
1212
1213
  ))
1213
1214
  }
1214
1215
  ),
1215
- Array.from({ length: 6 }, (y, b) => /* @__PURE__ */ a(
1216
+ Array.from({ length: 6 }, (k, b) => /* @__PURE__ */ a(
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: m.slice(b * 7, b * 7 + 7).map((d, T) => {
1221
- const x = b * 7 + T, g = De(d, u), S = g && N(d), _ = t ? st(d, L(t)) : !1, A = g ? _ ? "selected" : S ? "available" : "unavailable" : "outside", G = D ? st(D, d) : !1, B = (() => {
1221
+ children: c.slice(b * 7, b * 7 + 7).map((p, I) => {
1222
+ const A = b * 7 + I, g = De(p, u), y = g && N(p), _ = t ? st(p, $(t)) : !1, T = g ? _ ? "selected" : y ? "available" : "unavailable" : "outside", O = D ? st(D, p) : !1, E = (() => {
1222
1223
  try {
1223
1224
  return new Intl.DateTimeFormat(i, {
1224
1225
  dateStyle: "full"
1225
- }).format(d);
1226
+ }).format(p);
1226
1227
  } catch {
1227
- return Te(d, "PPP");
1228
+ return Te(p, "PPP");
1228
1229
  }
1229
1230
  })();
1230
1231
  return /* @__PURE__ */ a(
@@ -1232,19 +1233,19 @@ function Hs({
1232
1233
  {
1233
1234
  type: "button",
1234
1235
  role: "gridcell",
1235
- "aria-label": B,
1236
+ "aria-label": E,
1236
1237
  "aria-selected": _ || void 0,
1237
- "aria-disabled": !S || void 0,
1238
- tabIndex: G ? 0 : -1,
1239
- disabled: !S,
1238
+ "aria-disabled": !y || void 0,
1239
+ tabIndex: O ? 0 : -1,
1240
+ disabled: !y,
1240
1241
  onClick: () => {
1241
- S && s(se(d));
1242
+ y && s(ae(p));
1242
1243
  },
1243
- onKeyDown: (E) => M(E, d),
1244
- className: qs({ state: A }),
1245
- children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: d.getDate() })
1244
+ onKeyDown: (V) => M(V, p),
1245
+ className: qs({ state: T }),
1246
+ children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: p.getDate() })
1246
1247
  },
1247
- `mg-cell-${x}`
1248
+ `mg-cell-${A}`
1248
1249
  );
1249
1250
  })
1250
1251
  },
@@ -1286,52 +1287,52 @@ function Us({
1286
1287
  selectedServiceId: t,
1287
1288
  onSelect: s
1288
1289
  }) {
1289
- const { t: i } = O(), n = rt(), [o, l] = K(() => {
1290
+ const { t: i } = B(), n = rt(), [o, r] = q(() => {
1290
1291
  if (t) {
1291
- const c = e.findIndex((m) => m.id === t);
1292
- if (c >= 0) return c;
1292
+ const l = e.findIndex((c) => c.id === t);
1293
+ if (l >= 0) return l;
1293
1294
  }
1294
1295
  return 0;
1295
- }), u = ae(/* @__PURE__ */ new Map()), p = j((c) => {
1296
- var m;
1297
- (m = u.current.get(c)) == null || m.focus();
1298
- }, []), r = j(
1299
- (c, m, k) => {
1300
- const I = e.length;
1301
- if (I !== 0)
1302
- switch (c.key) {
1296
+ }), u = ie(/* @__PURE__ */ new Map()), m = H((l) => {
1297
+ var c;
1298
+ (c = u.current.get(l)) == null || c.focus();
1299
+ }, []), d = H(
1300
+ (l, c, x) => {
1301
+ const S = e.length;
1302
+ if (S !== 0)
1303
+ switch (l.key) {
1303
1304
  case "ArrowDown":
1304
1305
  case "ArrowRight": {
1305
- c.preventDefault();
1306
- const v = (m + 1) % I;
1307
- l(v), p(v);
1306
+ l.preventDefault();
1307
+ const h = (c + 1) % S;
1308
+ r(h), m(h);
1308
1309
  break;
1309
1310
  }
1310
1311
  case "ArrowUp":
1311
1312
  case "ArrowLeft": {
1312
- c.preventDefault();
1313
- const v = (m - 1 + I) % I;
1314
- l(v), p(v);
1313
+ l.preventDefault();
1314
+ const h = (c - 1 + S) % S;
1315
+ r(h), m(h);
1315
1316
  break;
1316
1317
  }
1317
1318
  case "Home": {
1318
- c.preventDefault(), l(0), p(0);
1319
+ l.preventDefault(), r(0), m(0);
1319
1320
  break;
1320
1321
  }
1321
1322
  case "End": {
1322
- c.preventDefault();
1323
- const v = I - 1;
1324
- l(v), p(v);
1323
+ l.preventDefault();
1324
+ const h = S - 1;
1325
+ r(h), m(h);
1325
1326
  break;
1326
1327
  }
1327
1328
  case "Enter":
1328
1329
  case " ": {
1329
- c.preventDefault(), s(k);
1330
+ l.preventDefault(), s(x);
1330
1331
  break;
1331
1332
  }
1332
1333
  }
1333
1334
  },
1334
- [e.length, p, s]
1335
+ [e.length, m, s]
1335
1336
  );
1336
1337
  return e.length === 0 ? null : /* @__PURE__ */ a(
1337
1338
  "div",
@@ -1340,27 +1341,27 @@ function Us({
1340
1341
  "aria-label": i("booking.serviceListLabel"),
1341
1342
  id: n,
1342
1343
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1343
- children: e.map((c, m) => {
1344
- const k = t === c.id, I = o === m, v = i("booking.serviceCardLabel", {
1345
- label: c.label,
1346
- duration: c.durationMin
1347
- }), N = Ks(c);
1344
+ children: e.map((l, c) => {
1345
+ const x = t === l.id, S = o === c, h = i("booking.serviceCardLabel", {
1346
+ label: l.label,
1347
+ duration: l.durationMin
1348
+ }), N = Ks(l);
1348
1349
  return /* @__PURE__ */ f(
1349
1350
  "button",
1350
1351
  {
1351
1352
  ref: (D) => {
1352
- D ? u.current.set(m, D) : u.current.delete(m);
1353
+ D ? u.current.set(c, D) : u.current.delete(c);
1353
1354
  },
1354
1355
  type: "button",
1355
1356
  role: "radio",
1356
- "aria-checked": k,
1357
- "aria-label": v,
1358
- tabIndex: I ? 0 : -1,
1359
- onClick: () => s(c.id),
1360
- onFocus: () => l(m),
1361
- onKeyDown: (D) => r(D, m, c.id),
1357
+ "aria-checked": x,
1358
+ "aria-label": h,
1359
+ tabIndex: S ? 0 : -1,
1360
+ onClick: () => s(l.id),
1361
+ onFocus: () => r(c),
1362
+ onKeyDown: (D) => d(D, c, l.id),
1362
1363
  className: Gs({
1363
- state: k ? "selected" : "idle"
1364
+ state: x ? "selected" : "idle"
1364
1365
  }),
1365
1366
  children: [
1366
1367
  /* @__PURE__ */ a(
@@ -1372,12 +1373,12 @@ function Us({
1372
1373
  }
1373
1374
  ),
1374
1375
  /* @__PURE__ */ f("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
1375
- /* @__PURE__ */ a("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: c.label }),
1376
- /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i("booking.serviceSummary", { minutes: c.durationMin }) })
1376
+ /* @__PURE__ */ a("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: l.label }),
1377
+ /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i("booking.serviceSummary", { minutes: l.durationMin }) })
1377
1378
  ] })
1378
1379
  ]
1379
1380
  },
1380
- c.id
1381
+ l.id
1381
1382
  );
1382
1383
  })
1383
1384
  }
@@ -1426,37 +1427,37 @@ function Ws({
1426
1427
  loading: n,
1427
1428
  locale: o
1428
1429
  }) {
1429
- const { t: l } = O(), u = w(() => {
1430
+ const { t: r } = B(), u = w(() => {
1430
1431
  try {
1431
1432
  return new Intl.DateTimeFormat(o, {
1432
1433
  weekday: "long",
1433
1434
  day: "numeric",
1434
1435
  month: "long"
1435
- }).format(L(e));
1436
+ }).format($(e));
1436
1437
  } catch {
1437
1438
  return e;
1438
1439
  }
1439
- }, [e, o]), p = w(() => {
1440
- const m = {
1440
+ }, [e, o]), m = w(() => {
1441
+ const c = {
1441
1442
  morning: [],
1442
1443
  afternoon: [],
1443
1444
  evening: []
1444
1445
  };
1445
- for (const k of t)
1446
- m[Js(k.time)].push(k);
1447
- return m;
1448
- }, [t]), r = t.filter((m) => m.available).length, c = ["morning", "afternoon", "evening"];
1446
+ for (const x of t)
1447
+ c[Js(x.time)].push(x);
1448
+ return c;
1449
+ }, [t]), d = t.filter((c) => c.available).length, l = ["morning", "afternoon", "evening"];
1449
1450
  return n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1450
1451
  /* @__PURE__ */ a(_e, { variant: "text", width: "60%" }),
1451
- [0, 1].map((m) => /* @__PURE__ */ a(
1452
+ [0, 1].map((c) => /* @__PURE__ */ a(
1452
1453
  "div",
1453
1454
  {
1454
1455
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
1455
- children: [0, 1, 2].map((k) => /* @__PURE__ */ a(_e, { variant: "rounded", height: "44px" }, k))
1456
+ children: [0, 1, 2].map((x) => /* @__PURE__ */ a(_e, { variant: "rounded", height: "44px" }, x))
1456
1457
  },
1457
- m
1458
+ c
1458
1459
  ))
1459
- ] }) : r === 0 ? /* @__PURE__ */ a(dt, { variant: "no-results", title: l("booking.noSlotsForDate") }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1460
+ ] }) : d === 0 ? /* @__PURE__ */ a(dt, { variant: "no-results", title: r("booking.noSlotsForDate") }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1460
1461
  /* @__PURE__ */ f("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1461
1462
  /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1462
1463
  /* @__PURE__ */ a(
@@ -1468,51 +1469,51 @@ function Ws({
1468
1469
  ),
1469
1470
  /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u })
1470
1471
  ] }),
1471
- /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: l("booking.slotsAvailable", { count: r }) })
1472
+ /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r("booking.slotsAvailable", { count: d }) })
1472
1473
  ] }),
1473
- c.map((m) => {
1474
- const k = p[m];
1475
- if (k.length === 0) return null;
1476
- const I = Zs[m];
1474
+ l.map((c) => {
1475
+ const x = m[c];
1476
+ if (x.length === 0) return null;
1477
+ const S = Zs[c];
1477
1478
  return /* @__PURE__ */ f(
1478
1479
  "div",
1479
1480
  {
1480
1481
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
1481
1482
  children: [
1482
1483
  /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
1483
- /* @__PURE__ */ a(I, { "aria-hidden": "true", className: "ds:size-3.5" }),
1484
- /* @__PURE__ */ a("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: l(`booking.timeOfDay.${m}`) })
1484
+ /* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5" }),
1485
+ /* @__PURE__ */ a("span", { className: "type-meta ds:font-[var(--font-weight-semibold)] ds:uppercase", children: r(`booking.timeOfDay.${c}`) })
1485
1486
  ] }),
1486
1487
  /* @__PURE__ */ a(
1487
1488
  "div",
1488
1489
  {
1489
1490
  role: "group",
1490
- "aria-label": l(`booking.timeOfDay.${m}`),
1491
+ "aria-label": r(`booking.timeOfDay.${c}`),
1491
1492
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
1492
- children: k.map((v) => {
1493
- const N = v.key === s, D = v.available ? N ? "selected" : "idle" : "unavailable";
1493
+ children: x.map((h) => {
1494
+ const N = h.key === s, D = h.available ? N ? "selected" : "idle" : "unavailable";
1494
1495
  return /* @__PURE__ */ a(
1495
1496
  "button",
1496
1497
  {
1497
1498
  type: "button",
1498
- "data-slot-id": v.key,
1499
- disabled: !v.available,
1499
+ "data-slot-id": h.key,
1500
+ disabled: !h.available,
1500
1501
  "aria-pressed": N,
1501
- "aria-label": l("booking.slotAvailableLabel", {
1502
- time: v.time
1502
+ "aria-label": r("booking.slotAvailableLabel", {
1503
+ time: h.time
1503
1504
  }),
1504
- onClick: () => v.available && i(v),
1505
+ onClick: () => h.available && i(h),
1505
1506
  className: Ys({ state: D }),
1506
- children: v.time
1507
+ children: h.time
1507
1508
  },
1508
- v.key
1509
+ h.key
1509
1510
  );
1510
1511
  })
1511
1512
  }
1512
1513
  )
1513
1514
  ]
1514
1515
  },
1515
- m
1516
+ c
1516
1517
  );
1517
1518
  })
1518
1519
  ] });
@@ -1525,82 +1526,84 @@ function Xs({
1525
1526
  onChange: i,
1526
1527
  onDateSelect: n,
1527
1528
  onWindowChange: o,
1528
- loadingDates: l,
1529
+ loadingDates: r,
1529
1530
  loadingSlots: u,
1530
- locale: p
1531
+ locale: m,
1532
+ agentIdBase: d
1531
1533
  }) {
1532
- const r = w(() => le(/* @__PURE__ */ new Date()), []), [c, m] = K(() => {
1534
+ const l = w(() => le(/* @__PURE__ */ new Date()), []), [c, x] = q(() => {
1533
1535
  if (s.date) {
1534
- const g = le(L(s.date));
1535
- if (!ce(r, g)) return g;
1536
+ const y = le($(s.date));
1537
+ if (!ce(l, y)) return y;
1536
1538
  }
1537
1539
  if (e.length > 0) {
1538
- const g = le(L(e[0]));
1539
- if (ce(g, r)) return g;
1540
+ const y = le($(e[0]));
1541
+ if (ce(y, l)) return y;
1540
1542
  }
1541
- return r;
1542
- }), k = w(
1543
+ return l;
1544
+ }), S = w(
1543
1545
  () => je(c, Ae - 1),
1544
1546
  [c]
1545
- ), I = w(() => Array.from({ length: Ae }, (g, S) => {
1546
- const _ = je(c, S), A = se(_), B = (t[A] ?? []).map((E) => ({
1547
- id: E.key,
1547
+ ), h = w(() => Array.from({ length: Ae }, (y, _) => {
1548
+ const T = je(c, _), O = ae(T), V = (t[O] ?? []).map((L) => ({
1549
+ id: L.key,
1548
1550
  // SlotGrid formats `start` as a time via Intl.DateTimeFormat —
1549
1551
  // compose a full ISO from the column's date + the slot's HH:mm
1550
1552
  // so the locale-formatter has a real timestamp to work with.
1551
- start: `${A}T${E.time}:00`,
1552
- available: E.available
1553
+ start: `${O}T${L.time}:00`,
1554
+ available: L.available
1553
1555
  }));
1554
- return { date: A, slots: B };
1555
- }), [c, t]), v = ce(c, r), N = !0, D = j(() => {
1556
- m((g) => {
1557
- const S = Ht(g, Ae);
1558
- return ce(r, S) ? r : S;
1556
+ return { date: O, slots: V };
1557
+ }), [c, t]), N = ce(c, l), D = !0, M = H(() => {
1558
+ x((y) => {
1559
+ const _ = Ht(y, Ae);
1560
+ return ce(l, _) ? l : _;
1559
1561
  });
1560
- }, [r]), M = j(() => {
1561
- m((g) => je(g, Ae));
1562
+ }, [l]), k = H(() => {
1563
+ x((y) => je(y, Ae));
1562
1564
  }, []);
1563
- H(() => {
1565
+ U(() => {
1564
1566
  if (e.length === 0) return;
1565
- const g = le(L(e[0]));
1566
- !ce(g, r) || e.some((_) => {
1567
- const A = le(L(_));
1568
- return !ce(A, k) && !jt(A, c);
1569
- }) || m(g);
1570
- }, [e]), H(() => {
1571
- o == null || o(se(c), se(k));
1572
- }, [c, k, o]);
1573
- const y = j(
1574
- (g, S) => {
1575
- const _ = typeof S.date == "string" ? S.date : se(S.date);
1567
+ const y = le($(e[0]));
1568
+ !ce(y, l) || e.some((T) => {
1569
+ const O = le($(T));
1570
+ return !ce(O, S) && !jt(O, c);
1571
+ }) || x(y);
1572
+ }, [e]), U(() => {
1573
+ o == null || o(ae(c), ae(S));
1574
+ }, [c, S, o]);
1575
+ const b = H(
1576
+ (y, _) => {
1577
+ const T = typeof _.date == "string" ? _.date : ae(_.date);
1576
1578
  i({
1577
- ...vt(Ee(s, _), g.id)
1578
- }), n == null || n(_);
1579
+ ...vt(Ee(s, T), y.id)
1580
+ }), n == null || n(T);
1579
1581
  },
1580
1582
  [i, n, s]
1581
- ), b = l || u ? "loading" : "default", d = I.some((g) => g.slots.length > 0), T = e[0];
1583
+ ), p = r || u ? "loading" : "default", I = h.some((y) => y.slots.length > 0), A = e[0];
1582
1584
  return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1583
- !d && !!T ? /* @__PURE__ */ a(
1585
+ !I && !!A ? /* @__PURE__ */ a(
1584
1586
  Je,
1585
1587
  {
1586
- nextAvailableDate: T,
1587
- onJump: () => m(le(L(T))),
1588
- locale: p
1588
+ nextAvailableDate: A,
1589
+ onJump: () => x(le($(A))),
1590
+ locale: m
1589
1591
  }
1590
1592
  ) : null,
1591
1593
  /* @__PURE__ */ a(
1592
1594
  Kt,
1593
1595
  {
1594
- days: I,
1595
- state: b,
1596
+ id: d ? `${d}-slots` : void 0,
1597
+ days: h,
1598
+ state: p,
1596
1599
  selectedSlotId: s.slotKey,
1597
1600
  maxInitialSlotsPerDay: 6,
1598
- locale: p,
1599
- hasPrevious: v,
1600
- hasNext: N,
1601
- onSlotSelect: y,
1602
- onPreviousDays: D,
1603
- onNextDays: M
1601
+ locale: m,
1602
+ hasPrevious: N,
1603
+ hasNext: D,
1604
+ onSlotSelect: b,
1605
+ onPreviousDays: M,
1606
+ onNextDays: k
1604
1607
  }
1605
1608
  )
1606
1609
  ] });
@@ -1612,12 +1615,13 @@ function yt(e) {
1612
1615
  onChange: i,
1613
1616
  onDateSelect: n,
1614
1617
  onWindowChange: o,
1615
- loadingDates: l,
1618
+ loadingDates: r,
1616
1619
  loadingSlots: u,
1617
- locale: p,
1618
- datePickerStyle: r
1620
+ locale: m,
1621
+ datePickerStyle: d,
1622
+ agentIdBase: l
1619
1623
  } = e;
1620
- return r === "four-day-grid" ? /* @__PURE__ */ a(
1624
+ return d === "four-day-grid" ? /* @__PURE__ */ a(
1621
1625
  Xs,
1622
1626
  {
1623
1627
  availableDates: t.availableDates,
@@ -1626,9 +1630,10 @@ function yt(e) {
1626
1630
  onChange: i,
1627
1631
  onDateSelect: n,
1628
1632
  onWindowChange: o,
1629
- loadingDates: l,
1633
+ loadingDates: r,
1630
1634
  loadingSlots: u,
1631
- locale: p
1635
+ locale: m,
1636
+ agentIdBase: l
1632
1637
  }
1633
1638
  ) : /* @__PURE__ */ a(
1634
1639
  Hs,
@@ -1638,14 +1643,14 @@ function yt(e) {
1638
1643
  onSelectDate: (c) => {
1639
1644
  i(Ee(s, c)), n == null || n(c);
1640
1645
  },
1641
- locale: p,
1642
- loading: l ?? u
1646
+ locale: m,
1647
+ loading: r ?? u
1643
1648
  }
1644
1649
  );
1645
1650
  }
1646
1651
  function kt(e) {
1647
- const { inputs: t, value: s, onChange: i, loadingSlots: n, locale: o, datePickerStyle: l } = e;
1648
- return l === "four-day-grid" || !s.date ? null : /* @__PURE__ */ a(
1652
+ const { inputs: t, value: s, onChange: i, loadingSlots: n, locale: o, datePickerStyle: r } = e;
1653
+ return r === "four-day-grid" || !s.date ? null : /* @__PURE__ */ a(
1649
1654
  Ws,
1650
1655
  {
1651
1656
  date: s.date,
@@ -1658,14 +1663,14 @@ function kt(e) {
1658
1663
  );
1659
1664
  }
1660
1665
  function xt({ value: e, onChange: t }) {
1661
- const { t: s } = O(), i = [
1666
+ const { t: s } = B(), i = [
1662
1667
  { value: "private", label: s("booking.insurance.private") },
1663
1668
  { value: "public", label: s("booking.insurance.public") }
1664
1669
  ];
1665
1670
  return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1666
1671
  /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: s("booking.insurance.heading") }),
1667
1672
  /* @__PURE__ */ a(
1668
- Oe,
1673
+ Be,
1669
1674
  {
1670
1675
  options: i,
1671
1676
  value: e ?? "",
@@ -1686,46 +1691,46 @@ function St({
1686
1691
  onChangeIds: n,
1687
1692
  pickerStyle: o = "select"
1688
1693
  }) {
1689
- const { t: l } = O(), u = e.map((r) => ({
1690
- value: r.id,
1691
- label: r.label
1692
- })), p = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: l("booking.specialty.heading") });
1694
+ const { t: r } = B(), u = e.map((d) => ({
1695
+ value: d.id,
1696
+ label: d.label
1697
+ })), m = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: r("booking.specialty.heading") });
1693
1698
  return o === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1694
- p,
1699
+ m,
1695
1700
  /* @__PURE__ */ a(
1696
1701
  Ue,
1697
1702
  {
1698
1703
  options: u,
1699
1704
  value: s ?? [],
1700
1705
  onChange: n,
1701
- placeholder: l("booking.specialty.placeholder"),
1702
- "aria-label": l("booking.specialty.heading"),
1706
+ placeholder: r("booking.specialty.placeholder"),
1707
+ "aria-label": r("booking.specialty.heading"),
1703
1708
  allowClear: !0
1704
1709
  }
1705
1710
  )
1706
1711
  ] }) : o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1707
- p,
1712
+ m,
1708
1713
  /* @__PURE__ */ a(
1709
1714
  Ge,
1710
1715
  {
1711
1716
  options: u,
1712
1717
  value: t ?? "",
1713
- onValueChange: (r) => i(r === "" ? "" : r),
1714
- placeholder: l("booking.specialty.placeholder"),
1715
- "aria-label": l("booking.specialty.heading"),
1718
+ onValueChange: (d) => i(d === "" ? "" : d),
1719
+ placeholder: r("booking.specialty.placeholder"),
1720
+ "aria-label": r("booking.specialty.heading"),
1716
1721
  clearable: !0
1717
1722
  }
1718
1723
  )
1719
1724
  ] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1720
- p,
1725
+ m,
1721
1726
  /* @__PURE__ */ a(
1722
- Oe,
1727
+ Be,
1723
1728
  {
1724
1729
  options: u,
1725
1730
  value: t ?? "",
1726
- onValueChange: (r) => i(r),
1727
- placeholder: l("booking.specialty.placeholder"),
1728
- "aria-label": l("booking.specialty.heading")
1731
+ onValueChange: (d) => i(d),
1732
+ placeholder: r("booking.specialty.placeholder"),
1733
+ "aria-label": r("booking.specialty.heading")
1729
1734
  }
1730
1735
  )
1731
1736
  ] });
@@ -1737,20 +1742,20 @@ function It({
1737
1742
  onChange: i,
1738
1743
  onChangeIds: n,
1739
1744
  pickerStyle: o,
1740
- compact: l
1745
+ compact: r
1741
1746
  }) {
1742
- const { t: u } = O(), p = o ?? (l ? "select" : "cards"), r = e.map((m) => ({
1743
- value: m.id,
1744
- label: `${m.label} · ${u("booking.serviceSummary", {
1745
- minutes: m.durationMin
1747
+ const { t: u } = B(), m = o ?? (r ? "select" : "cards"), d = e.map((c) => ({
1748
+ value: c.id,
1749
+ label: `${c.label} · ${u("booking.serviceSummary", {
1750
+ minutes: c.durationMin
1746
1751
  })}`
1747
- })), c = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.service.heading") });
1748
- return p === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1749
- c,
1752
+ })), l = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.service.heading") });
1753
+ return m === "multi-select" && n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1754
+ l,
1750
1755
  /* @__PURE__ */ a(
1751
1756
  Ue,
1752
1757
  {
1753
- options: r,
1758
+ options: d,
1754
1759
  value: s ?? [],
1755
1760
  onChange: n,
1756
1761
  placeholder: u("booking.service.placeholder"),
@@ -1758,33 +1763,33 @@ function It({
1758
1763
  allowClear: !0
1759
1764
  }
1760
1765
  )
1761
- ] }) : p === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1762
- c,
1766
+ ] }) : m === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1767
+ l,
1763
1768
  /* @__PURE__ */ a(
1764
1769
  Ge,
1765
1770
  {
1766
- options: r,
1771
+ options: d,
1767
1772
  value: t ?? "",
1768
- onValueChange: (m) => i(m === "" ? "" : m),
1773
+ onValueChange: (c) => i(c === "" ? "" : c),
1769
1774
  placeholder: u("booking.service.placeholder"),
1770
1775
  "aria-label": u("booking.service.heading"),
1771
1776
  clearable: !0
1772
1777
  }
1773
1778
  )
1774
- ] }) : p === "select" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1775
- c,
1779
+ ] }) : m === "select" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1780
+ l,
1776
1781
  /* @__PURE__ */ a(
1777
- Oe,
1782
+ Be,
1778
1783
  {
1779
- options: r,
1784
+ options: d,
1780
1785
  value: t ?? "",
1781
- onValueChange: (m) => i(m),
1786
+ onValueChange: (c) => i(c),
1782
1787
  placeholder: u("booking.service.placeholder"),
1783
1788
  "aria-label": u("booking.service.heading")
1784
1789
  }
1785
1790
  )
1786
1791
  ] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1787
- c,
1792
+ l,
1788
1793
  /* @__PURE__ */ a(
1789
1794
  Us,
1790
1795
  {
@@ -1803,54 +1808,54 @@ function Nt({
1803
1808
  onChangeIds: n,
1804
1809
  pickerStyle: o = "select"
1805
1810
  }) {
1806
- const { t: l } = O(), u = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: l("booking.operator.heading") });
1811
+ const { t: r } = B(), u = /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: r("booking.operator.heading") });
1807
1812
  if (o === "multi-select" && n) {
1808
- const r = e.map((c) => ({
1809
- value: c.id,
1810
- label: c.name
1813
+ const d = e.map((l) => ({
1814
+ value: l.id,
1815
+ label: l.name
1811
1816
  }));
1812
1817
  return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1813
1818
  u,
1814
1819
  /* @__PURE__ */ a(
1815
1820
  Ue,
1816
1821
  {
1817
- options: r,
1822
+ options: d,
1818
1823
  value: s ?? [],
1819
1824
  onChange: n,
1820
- placeholder: l("booking.operator.placeholder"),
1821
- "aria-label": l("booking.operator.heading"),
1825
+ placeholder: r("booking.operator.placeholder"),
1826
+ "aria-label": r("booking.operator.heading"),
1822
1827
  allowClear: !0
1823
1828
  }
1824
1829
  )
1825
1830
  ] });
1826
1831
  }
1827
- const p = [
1828
- { value: X, label: l("booking.operator.all") },
1829
- ...e.map((r) => ({ value: r.id, label: r.name }))
1832
+ const m = [
1833
+ { value: Q, label: r("booking.operator.all") },
1834
+ ...e.map((d) => ({ value: d.id, label: d.name }))
1830
1835
  ];
1831
1836
  return o === "combobox" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1832
1837
  u,
1833
1838
  /* @__PURE__ */ a(
1834
1839
  Ge,
1835
1840
  {
1836
- options: p,
1837
- value: t ?? X,
1838
- onValueChange: (r) => i(r === "" ? X : r),
1839
- placeholder: l("booking.operator.placeholder"),
1840
- "aria-label": l("booking.operator.heading"),
1841
+ options: m,
1842
+ value: t ?? Q,
1843
+ onValueChange: (d) => i(d === "" ? Q : d),
1844
+ placeholder: r("booking.operator.placeholder"),
1845
+ "aria-label": r("booking.operator.heading"),
1841
1846
  clearable: !0
1842
1847
  }
1843
1848
  )
1844
1849
  ] }) : /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1845
1850
  u,
1846
1851
  /* @__PURE__ */ a(
1847
- Oe,
1852
+ Be,
1848
1853
  {
1849
- options: p,
1850
- value: t ?? X,
1851
- onValueChange: (r) => i(r),
1852
- placeholder: l("booking.operator.placeholder"),
1853
- "aria-label": l("booking.operator.heading")
1854
+ options: m,
1855
+ value: t ?? Q,
1856
+ onValueChange: (d) => i(d),
1857
+ placeholder: r("booking.operator.placeholder"),
1858
+ "aria-label": r("booking.operator.heading")
1854
1859
  }
1855
1860
  )
1856
1861
  ] });
@@ -1858,10 +1863,10 @@ function Nt({
1858
1863
  function wt({
1859
1864
  customSlot: e
1860
1865
  }) {
1861
- const { t } = O();
1862
- return e ? /* @__PURE__ */ a(W, { children: e }) : /* @__PURE__ */ f(z, { variant: "warning", children: [
1863
- /* @__PURE__ */ a(z.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1864
- /* @__PURE__ */ a(z.Description, { children: t("booking.onboardingIncomplete.description") })
1866
+ const { t } = B();
1867
+ return e ? /* @__PURE__ */ a(X, { children: e }) : /* @__PURE__ */ f(j, { variant: "warning", children: [
1868
+ /* @__PURE__ */ a(j.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1869
+ /* @__PURE__ */ a(j.Description, { children: t("booking.onboardingIncomplete.description") })
1865
1870
  ] });
1866
1871
  }
1867
1872
  function Je({
@@ -1869,18 +1874,18 @@ function Je({
1869
1874
  onJump: t,
1870
1875
  locale: s
1871
1876
  }) {
1872
- const { t: i } = O(), n = w(() => {
1877
+ const { t: i } = B(), n = w(() => {
1873
1878
  try {
1874
1879
  return new Intl.DateTimeFormat(s, { dateStyle: "long" }).format(
1875
- L(e)
1880
+ $(e)
1876
1881
  );
1877
1882
  } catch {
1878
1883
  return e;
1879
1884
  }
1880
1885
  }, [e, s]);
1881
- return /* @__PURE__ */ f(z, { variant: "info", children: [
1882
- /* @__PURE__ */ a(z.Description, { children: i("booking.nextAvailable.description", { date: n }) }),
1883
- /* @__PURE__ */ a(z.Action, { children: /* @__PURE__ */ a(ie, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
1886
+ return /* @__PURE__ */ f(j, { variant: "info", children: [
1887
+ /* @__PURE__ */ a(j.Description, { children: i("booking.nextAvailable.description", { date: n }) }),
1888
+ /* @__PURE__ */ a(j.Action, { children: /* @__PURE__ */ a(ne, { intent: "secondary", size: "sm", onClick: t, children: i("booking.nextAvailable.cta") }) })
1884
1889
  ] });
1885
1890
  }
1886
1891
  function Qs({
@@ -1890,67 +1895,67 @@ function Qs({
1890
1895
  services: i,
1891
1896
  locale: n,
1892
1897
  mode: o,
1893
- showModify: l,
1898
+ showModify: r,
1894
1899
  onReset: u,
1895
- onModify: p
1900
+ onModify: m
1896
1901
  }) {
1897
- const { t: r } = O(), m = (e.details.confirmationChannels ?? ["email"]).map(
1898
- (M) => r(`booking.confirmation.channel.${M}`)
1899
- ), k = o === "demo" ? r("booking.success.descriptionDemo") : m.length > 1 ? r("booking.success.descriptionMultiple", {
1900
- channels: m.join(" · ")
1901
- }) : r("booking.success.descriptionSingle", { channel: m[0] }), I = w(() => {
1902
+ const { t: d } = B(), c = (e.details.confirmationChannels ?? ["email"]).map(
1903
+ (M) => d(`booking.confirmation.channel.${M}`)
1904
+ ), x = o === "demo" ? d("booking.success.descriptionDemo") : c.length > 1 ? d("booking.success.descriptionMultiple", {
1905
+ channels: c.join(" · ")
1906
+ }) : d("booking.success.descriptionSingle", { channel: c[0] }), S = w(() => {
1902
1907
  if (e.date)
1903
1908
  try {
1904
1909
  return new Intl.DateTimeFormat(n, {
1905
1910
  weekday: "long",
1906
1911
  day: "numeric",
1907
1912
  month: "long"
1908
- }).format(L(e.date));
1913
+ }).format($(e.date));
1909
1914
  } catch {
1910
1915
  return e.date;
1911
1916
  }
1912
- }, [e.date, n]), v = e.operatorId ? t.find((M) => M.id === e.operatorId) : void 0, N = e.specialtyId ? s.find((M) => M.id === e.specialtyId) : void 0, D = e.serviceId ? i.find((M) => M.id === e.serviceId) : void 0;
1917
+ }, [e.date, n]), h = e.operatorId ? t.find((M) => M.id === e.operatorId) : void 0, N = e.specialtyId ? s.find((M) => M.id === e.specialtyId) : void 0, D = e.serviceId ? i.find((M) => M.id === e.serviceId) : void 0;
1913
1918
  return /* @__PURE__ */ f(
1914
1919
  "div",
1915
1920
  {
1916
1921
  "data-component": "booking-success",
1917
1922
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1918
1923
  children: [
1919
- /* @__PURE__ */ f(z, { variant: "success", children: [
1920
- /* @__PURE__ */ a(z.Title, { as: "h3", children: r("booking.success.heading") }),
1921
- /* @__PURE__ */ a(z.Description, { children: k })
1924
+ /* @__PURE__ */ f(j, { variant: "success", children: [
1925
+ /* @__PURE__ */ a(j.Title, { as: "h3", children: d("booking.success.heading") }),
1926
+ /* @__PURE__ */ a(j.Description, { children: x })
1922
1927
  ] }),
1923
1928
  /* @__PURE__ */ a("div", { className: "ds:rounded-[var(--radius-md)] ds:bg-[var(--secondary)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ f("dl", { className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] ds:m-0", children: [
1924
- N ? /* @__PURE__ */ f(W, { children: [
1925
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summarySpecialty") }),
1929
+ N ? /* @__PURE__ */ f(X, { children: [
1930
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summarySpecialty") }),
1926
1931
  /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N.label })
1927
1932
  ] }) : null,
1928
- D ? /* @__PURE__ */ f(W, { children: [
1929
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryService") }),
1933
+ D ? /* @__PURE__ */ f(X, { children: [
1934
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryService") }),
1930
1935
  /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: D.label })
1931
1936
  ] }) : null,
1932
- I ? /* @__PURE__ */ f(W, { children: [
1933
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryDate") }),
1934
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: I })
1937
+ S ? /* @__PURE__ */ f(X, { children: [
1938
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryDate") }),
1939
+ /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: S })
1935
1940
  ] }) : null,
1936
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryTime") }),
1941
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryTime") }),
1937
1942
  /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
1938
- v ? /* @__PURE__ */ f(W, { children: [
1939
- /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: r("booking.success.summaryProvider") }),
1940
- /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: v.name })
1943
+ h ? /* @__PURE__ */ f(X, { children: [
1944
+ /* @__PURE__ */ a("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryProvider") }),
1945
+ /* @__PURE__ */ a("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: h.name })
1941
1946
  ] }) : null
1942
1947
  ] }) }),
1943
1948
  /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1944
- /* @__PURE__ */ a(ie, { intent: "secondary", size: "md", onClick: u, children: r("booking.success.bookAnother") }),
1945
- l ? /* @__PURE__ */ a(ie, { intent: "ghost", size: "md", onClick: p, children: r("booking.success.modifyBooking") }) : null
1949
+ /* @__PURE__ */ a(ne, { intent: "secondary", size: "md", onClick: u, children: d("booking.success.bookAnother") }),
1950
+ r ? /* @__PURE__ */ a(ne, { intent: "ghost", size: "md", onClick: m, children: d("booking.success.modifyBooking") }) : null
1946
1951
  ] })
1947
1952
  ]
1948
1953
  }
1949
1954
  );
1950
1955
  }
1951
1956
  function Ct({ customSlot: e }) {
1952
- const { t } = O();
1953
- return e ? /* @__PURE__ */ a(W, { children: e }) : /* @__PURE__ */ a(
1957
+ const { t } = B();
1958
+ return e ? /* @__PURE__ */ a(X, { children: e }) : /* @__PURE__ */ a(
1954
1959
  dt,
1955
1960
  {
1956
1961
  variant: "no-results",
@@ -1966,26 +1971,27 @@ function ea(e) {
1966
1971
  value: i,
1967
1972
  onChange: n,
1968
1973
  onSubmit: o,
1969
- emptyServicesSlot: l,
1974
+ emptyServicesSlot: r,
1970
1975
  onboardingIncompleteSlot: u,
1971
- loadingDates: p,
1972
- loadingSlots: r,
1973
- onDateSelect: c,
1974
- onWindowChange: m,
1975
- datePickerStyle: k,
1976
- specialtyPickerStyle: I,
1977
- servicePickerStyle: v,
1976
+ loadingDates: m,
1977
+ loadingSlots: d,
1978
+ onDateSelect: l,
1979
+ onWindowChange: c,
1980
+ datePickerStyle: x,
1981
+ specialtyPickerStyle: S,
1982
+ servicePickerStyle: h,
1978
1983
  operatorPickerStyle: N,
1979
1984
  submitting: D,
1980
1985
  locale: M,
1981
- detailsProps: y
1982
- } = e, { t: b } = O();
1986
+ detailsProps: k,
1987
+ agentIdBase: b
1988
+ } = e, { t: p } = B();
1983
1989
  return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1984
1990
  t.gates.insurance ? /* @__PURE__ */ a(
1985
1991
  xt,
1986
1992
  {
1987
1993
  value: i.insuranceType,
1988
- onChange: (d) => n(ct(i, d))
1994
+ onChange: (I) => n(ct(i, I))
1989
1995
  }
1990
1996
  ) : null,
1991
1997
  t.gates.specialty ? /* @__PURE__ */ a(
@@ -1994,20 +2000,20 @@ function ea(e) {
1994
2000
  specialties: t.filtered.specialties,
1995
2001
  value: i.specialtyId,
1996
2002
  valueIds: i.specialtyIds,
1997
- onChange: (d) => n(ut(i, d)),
1998
- onChangeIds: (d) => n(pt(i, d)),
1999
- pickerStyle: I
2003
+ onChange: (I) => n(ut(i, I)),
2004
+ onChangeIds: (I) => n(pt(i, I)),
2005
+ pickerStyle: S
2000
2006
  }
2001
2007
  ) : null,
2002
- t.gates.service ? t.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot: l }) : /* @__PURE__ */ a(
2008
+ t.gates.service ? t.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot: r }) : /* @__PURE__ */ a(
2003
2009
  It,
2004
2010
  {
2005
2011
  services: t.filtered.services,
2006
2012
  value: i.serviceId,
2007
2013
  valueIds: i.serviceIds,
2008
- onChange: (d) => n(mt(i, d)),
2009
- onChangeIds: (d) => n(gt(i, d)),
2010
- pickerStyle: v
2014
+ onChange: (I) => n(mt(i, I)),
2015
+ onChangeIds: (I) => n(gt(i, I)),
2016
+ pickerStyle: h
2011
2017
  }
2012
2018
  ) : null,
2013
2019
  t.gates.onboardingIncomplete ? /* @__PURE__ */ a(wt, { customSlot: u }) : null,
@@ -2017,13 +2023,13 @@ function ea(e) {
2017
2023
  operators: t.filtered.operators,
2018
2024
  value: i.operatorId,
2019
2025
  valueIds: i.operatorIds,
2020
- onChange: (d) => n(ft(i, d)),
2021
- onChangeIds: (d) => n(ht(i, d)),
2026
+ onChange: (I) => n(ft(i, I)),
2027
+ onChangeIds: (I) => n(ht(i, I)),
2022
2028
  pickerStyle: N
2023
2029
  }
2024
2030
  ) : null,
2025
2031
  t.gates.date ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2026
- /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: b("booking.date.heading") }),
2032
+ /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: p("booking.date.heading") }),
2027
2033
  s.availableDates.length === 0 && s.nextAvailableDate ? /* @__PURE__ */ a(
2028
2034
  Je,
2029
2035
  {
@@ -2035,31 +2041,32 @@ function ea(e) {
2035
2041
  inputs: s,
2036
2042
  value: i,
2037
2043
  onChange: n,
2038
- onDateSelect: c,
2039
- onWindowChange: m,
2040
- loadingDates: p,
2041
- loadingSlots: r,
2044
+ onDateSelect: l,
2045
+ onWindowChange: c,
2046
+ loadingDates: m,
2047
+ loadingSlots: d,
2042
2048
  locale: M,
2043
- datePickerStyle: k
2049
+ datePickerStyle: x,
2050
+ agentIdBase: b
2044
2051
  })
2045
2052
  ] }) : null,
2046
- t.gates.slot && i.date && k === "month-calendar" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2047
- /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: b("booking.slot.heading") }),
2053
+ t.gates.slot && i.date && x === "month-calendar" ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2054
+ /* @__PURE__ */ a("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: p("booking.slot.heading") }),
2048
2055
  kt({
2049
2056
  inputs: s,
2050
2057
  value: i,
2051
2058
  onChange: n,
2052
- loadingSlots: r,
2059
+ loadingSlots: d,
2053
2060
  locale: M,
2054
- datePickerStyle: k
2061
+ datePickerStyle: x
2055
2062
  })
2056
2063
  ] }) : null,
2057
2064
  t.gates.details && t.selectedSlot ? /* @__PURE__ */ a(
2058
2065
  Ye,
2059
2066
  {
2060
- ...y,
2067
+ ...k,
2061
2068
  value: i.details ?? {},
2062
- onChange: (d) => n({ ...i, details: d }),
2069
+ onChange: (I) => n({ ...i, details: I }),
2063
2070
  onSubmit: o,
2064
2071
  submitting: D,
2065
2072
  defaultPhoneCountry: e.policy.country
@@ -2067,27 +2074,28 @@ function ea(e) {
2067
2074
  ) : null
2068
2075
  ] });
2069
2076
  }
2070
- function $(e, t, s = {}) {
2077
+ function K(e, t, s = {}) {
2071
2078
  const {
2072
2079
  cascade: i,
2073
2080
  inputs: n,
2074
2081
  value: o,
2075
- onChange: l,
2082
+ onChange: r,
2076
2083
  onSubmit: u,
2077
- emptyServicesSlot: p,
2078
- onboardingIncompleteSlot: r,
2079
- loadingDates: c,
2080
- loadingSlots: m,
2081
- onDateSelect: k,
2082
- onWindowChange: I,
2083
- datePickerStyle: v,
2084
+ emptyServicesSlot: m,
2085
+ onboardingIncompleteSlot: d,
2086
+ loadingDates: l,
2087
+ loadingSlots: c,
2088
+ onDateSelect: x,
2089
+ onWindowChange: S,
2090
+ datePickerStyle: h,
2084
2091
  specialtyPickerStyle: N,
2085
2092
  servicePickerStyle: D,
2086
2093
  operatorPickerStyle: M,
2087
- submitting: y,
2094
+ submitting: k,
2088
2095
  locale: b,
2089
- detailsProps: d,
2090
- policy: T
2096
+ detailsProps: p,
2097
+ policy: I,
2098
+ agentIdBase: A
2091
2099
  } = t;
2092
2100
  switch (e) {
2093
2101
  case 1:
@@ -2095,7 +2103,7 @@ function $(e, t, s = {}) {
2095
2103
  xt,
2096
2104
  {
2097
2105
  value: o.insuranceType,
2098
- onChange: (x) => l(ct(o, x))
2106
+ onChange: (g) => r(ct(o, g))
2099
2107
  }
2100
2108
  );
2101
2109
  case 2:
@@ -2105,20 +2113,20 @@ function $(e, t, s = {}) {
2105
2113
  specialties: i.filtered.specialties,
2106
2114
  value: o.specialtyId,
2107
2115
  valueIds: o.specialtyIds,
2108
- onChange: (x) => l(ut(o, x)),
2109
- onChangeIds: (x) => l(pt(o, x)),
2116
+ onChange: (g) => r(ut(o, g)),
2117
+ onChangeIds: (g) => r(pt(o, g)),
2110
2118
  pickerStyle: N
2111
2119
  }
2112
2120
  );
2113
2121
  case 3:
2114
- return i.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot: p }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ a(wt, { customSlot: r }) : /* @__PURE__ */ a(
2122
+ return i.filtered.services.length === 0 ? /* @__PURE__ */ a(Ct, { customSlot: m }) : i.gates.onboardingIncomplete ? /* @__PURE__ */ a(wt, { customSlot: d }) : /* @__PURE__ */ a(
2115
2123
  It,
2116
2124
  {
2117
2125
  services: i.filtered.services,
2118
2126
  value: o.serviceId,
2119
2127
  valueIds: o.serviceIds,
2120
- onChange: (x) => l(mt(o, x)),
2121
- onChangeIds: (x) => l(gt(o, x)),
2128
+ onChange: (g) => r(mt(o, g)),
2129
+ onChangeIds: (g) => r(gt(o, g)),
2122
2130
  pickerStyle: D,
2123
2131
  compact: s.compactService
2124
2132
  }
@@ -2130,8 +2138,8 @@ function $(e, t, s = {}) {
2130
2138
  operators: i.filtered.operators,
2131
2139
  value: o.operatorId,
2132
2140
  valueIds: o.operatorIds,
2133
- onChange: (x) => l(ft(o, x)),
2134
- onChangeIds: (x) => l(ht(o, x)),
2141
+ onChange: (g) => r(ft(o, g)),
2142
+ onChangeIds: (g) => r(ht(o, g)),
2135
2143
  pickerStyle: M
2136
2144
  }
2137
2145
  );
@@ -2140,39 +2148,40 @@ function $(e, t, s = {}) {
2140
2148
  Je,
2141
2149
  {
2142
2150
  nextAvailableDate: n.nextAvailableDate,
2143
- onJump: () => l(Ee(o, n.nextAvailableDate)),
2151
+ onJump: () => r(Ee(o, n.nextAvailableDate)),
2144
2152
  locale: b
2145
2153
  }
2146
2154
  ) : yt({
2147
2155
  inputs: n,
2148
2156
  value: o,
2149
- onChange: l,
2150
- onDateSelect: k,
2151
- onWindowChange: I,
2152
- loadingDates: c,
2153
- loadingSlots: m,
2157
+ onChange: r,
2158
+ onDateSelect: x,
2159
+ onWindowChange: S,
2160
+ loadingDates: l,
2161
+ loadingSlots: c,
2154
2162
  locale: b,
2155
- datePickerStyle: v
2163
+ datePickerStyle: h,
2164
+ agentIdBase: A
2156
2165
  });
2157
2166
  case 6:
2158
2167
  return kt({
2159
2168
  inputs: n,
2160
2169
  value: o,
2161
- onChange: l,
2162
- loadingSlots: m,
2170
+ onChange: r,
2171
+ loadingSlots: c,
2163
2172
  locale: b,
2164
- datePickerStyle: v
2173
+ datePickerStyle: h
2165
2174
  });
2166
2175
  case 7:
2167
2176
  return i.selectedSlot ? /* @__PURE__ */ a(
2168
2177
  Ye,
2169
2178
  {
2170
- ...d,
2179
+ ...p,
2171
2180
  value: o.details ?? {},
2172
- onChange: (x) => l({ ...o, details: x }),
2181
+ onChange: (g) => r({ ...o, details: g }),
2173
2182
  onSubmit: u,
2174
- submitting: y,
2175
- defaultPhoneCountry: T.country
2183
+ submitting: k,
2184
+ defaultPhoneCountry: I.country
2176
2185
  }
2177
2186
  ) : null;
2178
2187
  /* c8 ignore next 2 */
@@ -2181,7 +2190,7 @@ function $(e, t, s = {}) {
2181
2190
  }
2182
2191
  }
2183
2192
  function Ze() {
2184
- const { t: e } = O();
2193
+ const { t: e } = B();
2185
2194
  return w(
2186
2195
  () => ({
2187
2196
  1: e("booking.insurance.heading"),
@@ -2196,26 +2205,26 @@ function Ze() {
2196
2205
  );
2197
2206
  }
2198
2207
  function ta(e) {
2199
- const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, l = Ze(), u = w(
2200
- () => o === "four-day-grid" ? t.visibleSteps.filter((c) => c !== 6) : t.visibleSteps,
2208
+ const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, r = Ze(), u = w(
2209
+ () => o === "four-day-grid" ? t.visibleSteps.filter((l) => l !== 6) : t.visibleSteps,
2201
2210
  [t.visibleSteps, o]
2202
- ), p = w(
2203
- () => u.map((c) => ({
2204
- label: l[c],
2205
- summary: Dt(c, s, t),
2206
- status: ke(c, s) && c < t.currentStep ? "completed" : void 0,
2207
- content: $(c, e, { compactService: !0 })
2211
+ ), m = w(
2212
+ () => u.map((l) => ({
2213
+ label: r[l],
2214
+ summary: Dt(l, s, t),
2215
+ status: ke(l, s) && l < t.currentStep ? "completed" : void 0,
2216
+ content: K(l, e, { compactService: !0 })
2208
2217
  })),
2209
- [u, s, l, t, e]
2210
- ), r = Math.max(0, t.visibleSteps.indexOf(i));
2218
+ [u, s, r, t, e]
2219
+ ), d = Math.max(0, t.visibleSteps.indexOf(i));
2211
2220
  return /* @__PURE__ */ a(
2212
2221
  $t,
2213
2222
  {
2214
- activeStep: r,
2215
- steps: p,
2216
- onStepChange: (c) => {
2217
- const m = t.visibleSteps[c];
2218
- m && n(m);
2223
+ activeStep: d,
2224
+ steps: m,
2225
+ onStepChange: (l) => {
2226
+ const c = t.visibleSteps[l];
2227
+ c && n(c);
2219
2228
  }
2220
2229
  }
2221
2230
  );
@@ -2259,7 +2268,7 @@ function Dt(e, t, s) {
2259
2268
  case 4: {
2260
2269
  const n = He(t);
2261
2270
  if (!n) return;
2262
- const o = s.filtered.operators.find((l) => l.id === n);
2271
+ const o = s.filtered.operators.find((r) => r.id === n);
2263
2272
  return o == null ? void 0 : o.name;
2264
2273
  }
2265
2274
  case 5:
@@ -2271,33 +2280,33 @@ function Dt(e, t, s) {
2271
2280
  }
2272
2281
  }
2273
2282
  function sa(e) {
2274
- const { cascade: t, value: s, setActiveStep: i } = e, { t: n } = O(), o = Ze(), l = t.visibleSteps.filter(
2275
- (p) => p === 1 || p === 2 || p === 3 || p === 4
2276
- ), u = l.some(
2277
- (p) => !ke(p, s)
2283
+ const { cascade: t, value: s, setActiveStep: i } = e, { t: n } = B(), o = Ze(), r = t.visibleSteps.filter(
2284
+ (m) => m === 1 || m === 2 || m === 3 || m === 4
2285
+ ), u = r.some(
2286
+ (m) => !ke(m, s)
2278
2287
  );
2279
2288
  return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2280
- u ? l.filter((p) => !ke(p, s)).slice(0, 1).map((p) => /* @__PURE__ */ a("div", { children: $(p, e, { compactService: !0 }) }, `csf-${p}`)) : /* @__PURE__ */ a(
2289
+ u ? r.filter((m) => !ke(m, s)).slice(0, 1).map((m) => /* @__PURE__ */ a("div", { children: K(m, e, { compactService: !0 }) }, `csf-${m}`)) : /* @__PURE__ */ a(
2281
2290
  "div",
2282
2291
  {
2283
2292
  role: "group",
2284
2293
  "aria-label": n("booking.regionLabel"),
2285
2294
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
2286
- children: l.map((p) => {
2287
- const r = Dt(p, s, t);
2288
- return r ? /* @__PURE__ */ f(
2289
- ie,
2295
+ children: r.map((m) => {
2296
+ const d = Dt(m, s, t);
2297
+ return d ? /* @__PURE__ */ f(
2298
+ ne,
2290
2299
  {
2291
2300
  intent: "tonal",
2292
2301
  size: "sm",
2293
- onClick: () => i(p),
2302
+ onClick: () => i(m),
2294
2303
  children: [
2295
- o[p],
2304
+ o[m],
2296
2305
  ": ",
2297
- r
2306
+ d
2298
2307
  ]
2299
2308
  },
2300
- `csc-${p}`
2309
+ `csc-${m}`
2301
2310
  ) : null;
2302
2311
  })
2303
2312
  }
@@ -2307,12 +2316,12 @@ function sa(e) {
2307
2316
  // historic 2-col date|slot split collapses to a single column
2308
2317
  // so the picker spans the full width instead of orphaning an
2309
2318
  // empty right cell.
2310
- e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ a("div", { children: $(5, e) }) : /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
2311
- /* @__PURE__ */ a("div", { className: "ds:min-w-0", children: $(5, e) }),
2312
- /* @__PURE__ */ a("div", { className: "ds:min-w-0", children: s.date ? $(6, e) : null })
2319
+ e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ a("div", { children: K(5, e) }) : /* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
2320
+ /* @__PURE__ */ a("div", { className: "ds:min-w-0", children: K(5, e) }),
2321
+ /* @__PURE__ */ a("div", { className: "ds:min-w-0", children: s.date ? K(6, e) : null })
2313
2322
  ] })
2314
2323
  ) : null,
2315
- t.gates.details ? /* @__PURE__ */ a("div", { children: $(7, e) }) : null
2324
+ t.gates.details ? /* @__PURE__ */ a("div", { children: K(7, e) }) : null
2316
2325
  ] });
2317
2326
  }
2318
2327
  function aa(e) {
@@ -2325,53 +2334,53 @@ function aa(e) {
2325
2334
  {
2326
2335
  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",
2327
2336
  children: [
2328
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: i.map((o) => /* @__PURE__ */ a("div", { children: $(o, e, { compactService: !0 }) }, `fbf-${o}`)) }),
2337
+ /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: i.map((o) => /* @__PURE__ */ a("div", { children: K(o, e, { compactService: !0 }) }, `fbf-${o}`)) }),
2329
2338
  /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2330
- t.gates.date ? $(5, e) : null,
2331
- t.gates.slot && e.value.date ? $(6, e) : null
2339
+ t.gates.date ? K(5, e) : null,
2340
+ t.gates.slot && e.value.date ? K(6, e) : null
2332
2341
  ] })
2333
2342
  ]
2334
2343
  }
2335
2344
  ),
2336
- t.gates.details ? $(7, e) : null
2345
+ t.gates.details ? K(7, e) : null
2337
2346
  ] });
2338
2347
  }
2339
2348
  function ia(e) {
2340
- const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t: l } = O(), u = Ze(), p = w(
2341
- () => o === "four-day-grid" ? t.visibleSteps.filter((v) => v !== 6) : t.visibleSteps,
2349
+ const { cascade: t, value: s, activeStep: i, setActiveStep: n, datePickerStyle: o } = e, { t: r } = B(), u = Ze(), m = w(
2350
+ () => o === "four-day-grid" ? t.visibleSteps.filter((h) => h !== 6) : t.visibleSteps,
2342
2351
  [t.visibleSteps, o]
2343
- ), r = Math.max(0, p.indexOf(i)), c = p.length, m = w(
2344
- () => p.map((v) => ({ label: u[v] })),
2345
- [p, u]
2346
- ), k = r > 0, I = r < c - 1 && ke(i, s);
2352
+ ), d = Math.max(0, m.indexOf(i)), l = m.length, c = w(
2353
+ () => m.map((h) => ({ label: u[h] })),
2354
+ [m, u]
2355
+ ), x = d > 0, S = d < l - 1 && ke(i, s);
2347
2356
  return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2348
- /* @__PURE__ */ a(zt, { activeStep: r, steps: m }),
2349
- /* @__PURE__ */ a("div", { children: $(i, e, { compactService: !0 }) }),
2357
+ /* @__PURE__ */ a(zt, { activeStep: d, steps: c }),
2358
+ /* @__PURE__ */ a("div", { children: K(i, e, { compactService: !0 }) }),
2350
2359
  /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
2351
2360
  /* @__PURE__ */ a(
2352
- ie,
2361
+ ne,
2353
2362
  {
2354
2363
  intent: "ghost",
2355
2364
  size: "md",
2356
- disabled: !k,
2365
+ disabled: !x,
2357
2366
  onClick: () => {
2358
- const v = p[r - 1];
2359
- v && n(v);
2367
+ const h = m[d - 1];
2368
+ h && n(h);
2360
2369
  },
2361
- children: l("booking.actions.back")
2370
+ children: r("booking.actions.back")
2362
2371
  }
2363
2372
  ),
2364
2373
  i < 7 ? /* @__PURE__ */ a(
2365
- ie,
2374
+ ne,
2366
2375
  {
2367
2376
  intent: "primary",
2368
2377
  size: "md",
2369
- disabled: !I,
2378
+ disabled: !S,
2370
2379
  onClick: () => {
2371
- const v = p[r + 1];
2372
- v && n(v);
2380
+ const h = m[d + 1];
2381
+ h && n(h);
2373
2382
  },
2374
- children: l("booking.actions.next")
2383
+ children: r("booking.actions.next")
2375
2384
  }
2376
2385
  ) : null
2377
2386
  ] })
@@ -2388,74 +2397,74 @@ const na = [], oa = [], ra = ot(
2388
2397
  allowOperatorSelection: i = !1,
2389
2398
  lockedOperatorId: n,
2390
2399
  autoSelectSingleService: o = !1,
2391
- specialties: l,
2400
+ specialties: r,
2392
2401
  services: u,
2393
- operators: p,
2394
- availableDates: r,
2395
- availableSlots: c,
2396
- nextAvailableDate: m,
2397
- requireCodiceFiscale: k,
2398
- requireDateOfBirth: I,
2399
- requireInsuranceNumber: v,
2402
+ operators: m,
2403
+ availableDates: d,
2404
+ availableSlots: l,
2405
+ nextAvailableDate: c,
2406
+ requireCodiceFiscale: x,
2407
+ requireDateOfBirth: S,
2408
+ requireInsuranceNumber: h,
2400
2409
  showNote: N,
2401
2410
  showReturningPatientFlag: D,
2402
2411
  privacyPolicyUrl: M,
2403
- termsUrl: y,
2412
+ termsUrl: k,
2404
2413
  validateCodiceFiscale: b,
2405
- validateInsuranceNumber: d,
2406
- confirmationChannels: T,
2407
- defaultConfirmationChannels: x,
2414
+ validateInsuranceNumber: p,
2415
+ confirmationChannels: I,
2416
+ defaultConfirmationChannels: A,
2408
2417
  value: g,
2409
- onChange: S,
2418
+ onChange: y,
2410
2419
  onSubmit: _,
2411
- onStepChange: A,
2412
- onDateSelect: G,
2413
- onWindowChange: B,
2414
- datePickerStyle: E = "month-calendar",
2415
- specialtyPickerStyle: U,
2420
+ onStepChange: T,
2421
+ onDateSelect: O,
2422
+ onWindowChange: E,
2423
+ datePickerStyle: V = "month-calendar",
2424
+ specialtyPickerStyle: L,
2416
2425
  servicePickerStyle: P,
2417
- operatorPickerStyle: Q,
2418
- loadingDates: q,
2426
+ operatorPickerStyle: ee,
2427
+ loadingDates: G,
2419
2428
  loadingSlots: pe,
2420
- submitting: ee,
2429
+ submitting: te,
2421
2430
  submitError: xe,
2422
2431
  mode: Y = "live",
2423
- showModifyOnSuccess: ne = !0,
2432
+ showModifyOnSuccess: oe = !0,
2424
2433
  surface: me = "flat",
2425
2434
  emptyServicesSlot: Se,
2426
2435
  onboardingIncompleteSlot: Ie,
2427
2436
  "aria-label": Re,
2428
- id: oe,
2437
+ id: J,
2429
2438
  className: Ve,
2430
2439
  ...Ne
2431
2440
  }, we) => {
2432
- const { t: re, i18n: h } = O(), C = e ?? "inline-list", te = h.language ?? "en", J = l ?? na, de = p ?? oa;
2433
- H(() => {
2434
- const V = Bs(g, {
2441
+ const { t: re, i18n: v } = B(), C = e ?? "inline-list", se = v.language ?? "en", Z = r ?? na, de = m ?? oa;
2442
+ U(() => {
2443
+ const F = Os(g, {
2435
2444
  useSpecialties: s,
2436
2445
  lockedOperatorId: n,
2437
2446
  autoSelectSingleService: o,
2438
- specialties: J,
2447
+ specialties: Z,
2439
2448
  services: u
2440
2449
  });
2441
- (V.specialtyId !== g.specialtyId || V.operatorId !== g.operatorId || V.serviceId !== g.serviceId) && S(V);
2450
+ (F.specialtyId !== g.specialtyId || F.operatorId !== g.operatorId || F.serviceId !== g.serviceId) && y(F);
2442
2451
  }, [
2443
2452
  n,
2444
2453
  s,
2445
2454
  o,
2446
- J,
2455
+ Z,
2447
2456
  u
2448
2457
  ]);
2449
2458
  const R = w(
2450
- () => Os({
2459
+ () => Bs({
2451
2460
  country: t,
2452
2461
  useSpecialties: s,
2453
2462
  allowOperatorSelection: i,
2454
2463
  lockedOperatorId: n,
2455
- specialties: J,
2464
+ specialties: Z,
2456
2465
  services: u,
2457
2466
  operators: de,
2458
- availableSlots: c,
2467
+ availableSlots: l,
2459
2468
  value: g
2460
2469
  }),
2461
2470
  [
@@ -2464,36 +2473,36 @@ const na = [], oa = [], ra = ot(
2464
2473
  i,
2465
2474
  n,
2466
2475
  o,
2467
- J,
2476
+ Z,
2468
2477
  u,
2469
2478
  de,
2470
- r,
2471
- c,
2479
+ d,
2480
+ l,
2472
2481
  g
2473
2482
  ]
2474
- ), [We, ge] = K(
2483
+ ), [We, ge] = q(
2475
2484
  R.currentStep
2476
- ), Xe = ae(R.currentStep);
2477
- H(() => {
2485
+ ), Xe = ie(R.currentStep);
2486
+ U(() => {
2478
2487
  R.currentStep > Xe.current && ge(R.currentStep), Xe.current = R.currentStep;
2479
2488
  }, [R.currentStep]);
2480
- const [fe, he] = K("idle"), [Le, Fe] = K(null), Qe = j(
2481
- async (V) => {
2489
+ const [fe, he] = q("idle"), [Le, Fe] = q(null), Qe = H(
2490
+ async (F) => {
2482
2491
  if (!R.selectedSlot) return;
2483
2492
  const ze = {
2484
2493
  slot: R.selectedSlot,
2485
2494
  value: {
2486
2495
  ...g,
2487
- details: V,
2496
+ details: F,
2488
2497
  operatorId: He(g) ?? g.operatorId
2489
2498
  },
2490
- details: V
2499
+ details: F
2491
2500
  };
2492
2501
  he("submitting");
2493
2502
  try {
2494
2503
  await _(ze), Fe({
2495
2504
  slot: R.selectedSlot,
2496
- details: V,
2505
+ details: F,
2497
2506
  specialtyId: g.specialtyId,
2498
2507
  serviceId: g.serviceId,
2499
2508
  insuranceType: g.insuranceType,
@@ -2505,11 +2514,11 @@ const na = [], oa = [], ra = ot(
2505
2514
  }
2506
2515
  },
2507
2516
  [R.selectedSlot, _, g]
2508
- ), ve = ae(null);
2517
+ ), ve = ie(null);
2509
2518
  _t(we, () => ve.current, []);
2510
- const be = fe === "success" ? 8 : R.currentStep, et = ae(null);
2511
- H(() => {
2512
- if (be !== et.current && (et.current = be, A == null || A(be), be === 8 && ve.current))
2519
+ const be = fe === "success" ? 8 : R.currentStep, et = ie(null);
2520
+ U(() => {
2521
+ if (be !== et.current && (et.current = be, T == null || T(be), be === 8 && ve.current))
2513
2522
  try {
2514
2523
  ve.current.scrollIntoView({
2515
2524
  behavior: "smooth",
@@ -2518,30 +2527,30 @@ const na = [], oa = [], ra = ot(
2518
2527
  } catch {
2519
2528
  ve.current.scrollIntoView();
2520
2529
  }
2521
- }, [be, A]);
2530
+ }, [be, T]);
2522
2531
  const $e = w(
2523
2532
  () => ({
2524
2533
  getVariant: () => C,
2525
2534
  reset: () => {
2526
- S({}), Fe(null), he("idle"), ge(1);
2535
+ y({}), Fe(null), he("idle"), ge(1);
2527
2536
  },
2528
- goToStep: (V) => {
2529
- ge(V);
2537
+ goToStep: (F) => {
2538
+ ge(F);
2530
2539
  }
2531
2540
  }),
2532
- [C, S]
2541
+ [C, y]
2533
2542
  );
2534
- Ot(Cs, $e, oe);
2543
+ Bt(Cs, $e, J);
2535
2544
  const Mt = Re ?? re("booking.regionLabel"), At = w(() => fe !== "success" || !Le ? null : /* @__PURE__ */ a(
2536
2545
  Qs,
2537
2546
  {
2538
2547
  snapshot: Le,
2539
2548
  operators: de,
2540
- specialties: J,
2549
+ specialties: Z,
2541
2550
  services: u,
2542
- locale: te,
2551
+ locale: se,
2543
2552
  mode: Y,
2544
- showModify: ne,
2553
+ showModify: oe,
2545
2554
  onReset: () => $e.reset(),
2546
2555
  onModify: () => {
2547
2556
  Fe(null), he("idle"), ge(7);
@@ -2551,99 +2560,101 @@ const na = [], oa = [], ra = ot(
2551
2560
  fe,
2552
2561
  Le,
2553
2562
  de,
2554
- J,
2563
+ Z,
2555
2564
  u,
2556
- te,
2565
+ se,
2557
2566
  Y,
2558
- ne,
2567
+ oe,
2559
2568
  $e
2560
2569
  ]), Tt = w(() => {
2561
2570
  if (fe === "success") return null;
2562
- const V = C === "accordion" ? ta : C === "calendar" ? sa : C === "flexible" ? aa : C === "progress" ? ia : ea, ze = {
2571
+ const F = C === "accordion" ? ta : C === "calendar" ? sa : C === "flexible" ? aa : C === "progress" ? ia : ea, ze = {
2563
2572
  cascade: R,
2564
2573
  inputs: {
2565
- specialties: J,
2574
+ specialties: Z,
2566
2575
  services: u,
2567
2576
  operators: de,
2568
- availableDates: r,
2569
- availableSlots: c,
2570
- nextAvailableDate: m
2577
+ availableDates: d,
2578
+ availableSlots: l,
2579
+ nextAvailableDate: c
2571
2580
  },
2572
2581
  value: g,
2573
- onChange: S,
2582
+ onChange: y,
2574
2583
  onSubmit: Qe,
2575
2584
  policy: { country: t, lockedOperatorId: n },
2576
2585
  detailsProps: {
2577
- requireCodiceFiscale: k,
2578
- requireDateOfBirth: I,
2579
- requireInsuranceNumber: v,
2586
+ requireCodiceFiscale: x,
2587
+ requireDateOfBirth: S,
2588
+ requireInsuranceNumber: h,
2580
2589
  insuranceType: g.insuranceType,
2581
2590
  showNote: N,
2582
2591
  showReturningPatientFlag: D,
2583
2592
  privacyPolicyUrl: M,
2584
- termsUrl: y,
2593
+ termsUrl: k,
2585
2594
  validateCodiceFiscale: b,
2586
- validateInsuranceNumber: d,
2587
- confirmationChannels: T,
2588
- defaultConfirmationChannels: x,
2595
+ validateInsuranceNumber: p,
2596
+ confirmationChannels: I,
2597
+ defaultConfirmationChannels: A,
2589
2598
  submitError: xe
2590
2599
  },
2591
2600
  emptyServicesSlot: Se,
2592
2601
  onboardingIncompleteSlot: Ie,
2593
- loadingDates: q,
2602
+ loadingDates: G,
2594
2603
  loadingSlots: pe,
2595
- onDateSelect: G,
2596
- onWindowChange: B,
2597
- datePickerStyle: E,
2598
- specialtyPickerStyle: U,
2604
+ onDateSelect: O,
2605
+ onWindowChange: E,
2606
+ datePickerStyle: V,
2607
+ specialtyPickerStyle: L,
2599
2608
  servicePickerStyle: P,
2600
- operatorPickerStyle: Q,
2601
- submitting: ee,
2602
- locale: te,
2609
+ operatorPickerStyle: ee,
2610
+ submitting: te,
2611
+ locale: se,
2603
2612
  activeStep: We,
2604
- setActiveStep: ge
2613
+ setActiveStep: ge,
2614
+ agentIdBase: J
2605
2615
  };
2606
- return /* @__PURE__ */ a(V, { ...ze });
2616
+ return /* @__PURE__ */ a(F, { ...ze });
2607
2617
  }, [
2608
2618
  fe,
2609
2619
  C,
2610
2620
  R,
2611
- J,
2621
+ Z,
2612
2622
  u,
2613
2623
  de,
2614
- r,
2624
+ d,
2625
+ l,
2615
2626
  c,
2616
- m,
2617
2627
  g,
2618
- S,
2628
+ y,
2619
2629
  Qe,
2620
2630
  t,
2621
2631
  n,
2622
- k,
2623
- I,
2624
- v,
2632
+ x,
2633
+ S,
2634
+ h,
2625
2635
  xe,
2626
2636
  N,
2627
2637
  D,
2628
2638
  M,
2629
- y,
2639
+ k,
2630
2640
  b,
2631
- d,
2632
- T,
2633
- x,
2641
+ p,
2642
+ I,
2643
+ A,
2634
2644
  Se,
2635
2645
  Ie,
2636
- q,
2637
- pe,
2638
2646
  G,
2639
- B,
2647
+ pe,
2648
+ O,
2640
2649
  E,
2641
- U,
2650
+ V,
2651
+ L,
2642
2652
  P,
2643
- Q,
2644
2653
  ee,
2645
2654
  te,
2646
- We
2655
+ se,
2656
+ We,
2657
+ J
2647
2658
  ]);
2648
2659
  return /* @__PURE__ */ f(
2649
2660
  "div",
@@ -2651,9 +2662,9 @@ const na = [], oa = [], ra = ot(
2651
2662
  ref: ve,
2652
2663
  role: "region",
2653
2664
  "aria-label": Mt,
2654
- id: oe,
2665
+ id: J,
2655
2666
  "data-component": "booking",
2656
- "data-component-id": oe,
2667
+ "data-component-id": J,
2657
2668
  "data-variant": C,
2658
2669
  className: Fs({
2659
2670
  variant: C,
@@ -2689,7 +2700,7 @@ ra.displayName = "Booking";
2689
2700
  export {
2690
2701
  ra as B,
2691
2702
  qe as C,
2692
- X as O,
2703
+ Q as O,
2693
2704
  Cs as b
2694
2705
  };
2695
- //# sourceMappingURL=booking-DjNbd7C1.js.map
2706
+ //# sourceMappingURL=booking-BjsA7j1-.js.map