@alfadocs/ui-kit-debug 1.31.0 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/_chunks/{agenda-card-pdN49pMu.js → agenda-card-DVz3jwTf.js} +2 -2
  2. package/dist/_chunks/{agenda-card-pdN49pMu.js.map → agenda-card-DVz3jwTf.js.map} +1 -1
  3. package/dist/_chunks/{agenda-tray-BweO8pDo.js → agenda-tray-1oDWCJdB.js} +2 -2
  4. package/dist/_chunks/{agenda-tray-BweO8pDo.js.map → agenda-tray-1oDWCJdB.js.map} +1 -1
  5. package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js → ai-prompt-input-Dt7tpCBh.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-CrHr-5H8.js.map → ai-prompt-input-Dt7tpCBh.js.map} +1 -1
  7. package/dist/_chunks/{alia-sidebar-BWcWZivN.js → alia-sidebar-D18kp3p9.js} +3 -3
  8. package/dist/_chunks/{alia-sidebar-BWcWZivN.js.map → alia-sidebar-D18kp3p9.js.map} +1 -1
  9. package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js → anamnesis-summary-rows-BYgyp_i2.js} +6 -6
  10. package/dist/_chunks/{anamnesis-summary-rows-DMO3MWSt.js.map → anamnesis-summary-rows-BYgyp_i2.js.map} +1 -1
  11. package/dist/_chunks/{appointment-card-CvUFFEdS.js → appointment-card-D-oj_ugh.js} +2 -2
  12. package/dist/_chunks/{appointment-card-CvUFFEdS.js.map → appointment-card-D-oj_ugh.js.map} +1 -1
  13. package/dist/_chunks/{appointment-timeline-DsMZY7U9.js → appointment-timeline-CymGHyIP.js} +2 -2
  14. package/dist/_chunks/{appointment-timeline-DsMZY7U9.js.map → appointment-timeline-CymGHyIP.js.map} +1 -1
  15. package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js → appointment-tray-DCk8gHod.js} +2 -2
  16. package/dist/_chunks/{appointment-tray-Z2GaOIYQ.js.map → appointment-tray-DCk8gHod.js.map} +1 -1
  17. package/dist/_chunks/{audio-recorder-DXG6LTtO.js → audio-recorder-11wClczr.js} +2 -2
  18. package/dist/_chunks/{audio-recorder-DXG6LTtO.js.map → audio-recorder-11wClczr.js.map} +1 -1
  19. package/dist/_chunks/{avatar-BNQNhoyL.js → avatar-CkDeQOSI.js} +37 -37
  20. package/dist/_chunks/avatar-CkDeQOSI.js.map +1 -0
  21. package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js → balance-badge-cell-DhBtFRoW.js} +4 -4
  22. package/dist/_chunks/{balance-badge-cell-CX6b0ML4.js.map → balance-badge-cell-DhBtFRoW.js.map} +1 -1
  23. package/dist/_chunks/{bishop-score-CJUVBfAu.js → bishop-score-CAl7C5hm.js} +2 -2
  24. package/dist/_chunks/{bishop-score-CJUVBfAu.js.map → bishop-score-CAl7C5hm.js.map} +1 -1
  25. package/dist/_chunks/{bmi-calculator-CcH6upht.js → bmi-calculator-Dwkih9a4.js} +3 -3
  26. package/dist/_chunks/{bmi-calculator-CcH6upht.js.map → bmi-calculator-Dwkih9a4.js.map} +1 -1
  27. package/dist/_chunks/{booking-jGzRUETo.js → booking-BqkEtsKx.js} +777 -747
  28. package/dist/_chunks/{booking-jGzRUETo.js.map → booking-BqkEtsKx.js.map} +1 -1
  29. package/dist/_chunks/{calculator-dialog-12d3Sxaz.js → calculator-dialog-C0ixc3SU.js} +2 -2
  30. package/dist/_chunks/{calculator-dialog-12d3Sxaz.js.map → calculator-dialog-C0ixc3SU.js.map} +1 -1
  31. package/dist/_chunks/{calendar-BNQKpxhE.js → calendar-Dgvl5L4T.js} +2 -2
  32. package/dist/_chunks/{calendar-BNQKpxhE.js.map → calendar-Dgvl5L4T.js.map} +1 -1
  33. package/dist/_chunks/{calendar-workspace-Dy1jHBvG.js → calendar-workspace-BX-zDyVR.js} +14 -14
  34. package/dist/_chunks/{calendar-workspace-Dy1jHBvG.js.map → calendar-workspace-BX-zDyVR.js.map} +1 -1
  35. package/dist/_chunks/{care-plan-card-CQVboTn1.js → care-plan-card-CZW476Kg.js} +2 -2
  36. package/dist/_chunks/{care-plan-card-CQVboTn1.js.map → care-plan-card-CZW476Kg.js.map} +1 -1
  37. package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js → care-plan-entry-card-BMUYagEw.js} +2 -2
  38. package/dist/_chunks/{care-plan-entry-card-jxHkzez5.js.map → care-plan-entry-card-BMUYagEw.js.map} +1 -1
  39. package/dist/_chunks/{chat-message-DBQu10rs.js → chat-message-C-8UU2av.js} +2 -2
  40. package/dist/_chunks/{chat-message-DBQu10rs.js.map → chat-message-C-8UU2av.js.map} +1 -1
  41. package/dist/_chunks/{clinical-note-card-yCTR9DB6.js → clinical-note-card-D2WTV2CO.js} +2 -2
  42. package/dist/_chunks/{clinical-note-card-yCTR9DB6.js.map → clinical-note-card-D2WTV2CO.js.map} +1 -1
  43. package/dist/_chunks/{data-table-DB5BiVQ0.js → data-table-DC96JJIq.js} +2 -2
  44. package/dist/_chunks/{data-table-DB5BiVQ0.js.map → data-table-DC96JJIq.js.map} +1 -1
  45. package/dist/_chunks/{dependent-selector-cJlJFAKD.js → dependent-selector-yTKKsuc9.js} +2 -2
  46. package/dist/_chunks/{dependent-selector-cJlJFAKD.js.map → dependent-selector-yTKKsuc9.js.map} +1 -1
  47. package/dist/_chunks/{dialog-UbKJCi1X.js → dialog-BJiLqhx6.js} +54 -46
  48. package/dist/_chunks/dialog-BJiLqhx6.js.map +1 -0
  49. package/dist/_chunks/{document-preview-CDb-n_W7.js → document-preview-BrhMHNh8.js} +2 -2
  50. package/dist/_chunks/{document-preview-CDb-n_W7.js.map → document-preview-BrhMHNh8.js.map} +1 -1
  51. package/dist/_chunks/{due-date-calculator-BtgWeFqp.js → due-date-calculator-CxgK8vzt.js} +3 -3
  52. package/dist/_chunks/{due-date-calculator-BtgWeFqp.js.map → due-date-calculator-CxgK8vzt.js.map} +1 -1
  53. package/dist/_chunks/{entity-summary-B_vO5Ur4.js → entity-summary-5o768XLU.js} +2 -2
  54. package/dist/_chunks/{entity-summary-B_vO5Ur4.js.map → entity-summary-5o768XLU.js.map} +1 -1
  55. package/dist/_chunks/{file-manager-Cd8V9IcZ.js → file-manager-CI2Qn8qW.js} +3 -3
  56. package/dist/_chunks/{file-manager-Cd8V9IcZ.js.map → file-manager-CI2Qn8qW.js.map} +1 -1
  57. package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js → gestational-age-calculator-CZHVrERT.js} +4 -4
  58. package/dist/_chunks/{gestational-age-calculator-KdMg9z9H.js.map → gestational-age-calculator-CZHVrERT.js.map} +1 -1
  59. package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js → link-cell-renderer-BEpMNtAa.js} +3 -3
  60. package/dist/_chunks/{link-cell-renderer-tWEOv3Sc.js.map → link-cell-renderer-BEpMNtAa.js.map} +1 -1
  61. package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js → marketplace-app-shell-CK_ND8Tr.js} +2 -2
  62. package/dist/_chunks/{marketplace-app-shell-C4AjQmvz.js.map → marketplace-app-shell-CK_ND8Tr.js.map} +1 -1
  63. package/dist/_chunks/{message-card-D8GB4FdF.js → message-card-BUMv16un.js} +2 -2
  64. package/dist/_chunks/{message-card-D8GB4FdF.js.map → message-card-BUMv16un.js.map} +1 -1
  65. package/dist/_chunks/{message-tray-CGIRQjx5.js → message-tray-0zsv27xX.js} +2 -2
  66. package/dist/_chunks/{message-tray-CGIRQjx5.js.map → message-tray-0zsv27xX.js.map} +1 -1
  67. package/dist/_chunks/{muscle-scheme-BSJsI4-I.js → muscle-scheme-UVz_x4iE.js} +2 -2
  68. package/dist/_chunks/{muscle-scheme-BSJsI4-I.js.map → muscle-scheme-UVz_x4iE.js.map} +1 -1
  69. package/dist/_chunks/{notes-panel-am6e-Lwh.js → notes-panel-C4G-mhZ9.js} +3 -3
  70. package/dist/_chunks/{notes-panel-am6e-Lwh.js.map → notes-panel-C4G-mhZ9.js.map} +1 -1
  71. package/dist/_chunks/{operator-hero-BnFv-Uef.js → operator-hero-D7-iiFQ9.js} +2 -2
  72. package/dist/_chunks/{operator-hero-BnFv-Uef.js.map → operator-hero-D7-iiFQ9.js.map} +1 -1
  73. package/dist/_chunks/{optical-prescription-BvwuqTpl.js → optical-prescription-DUJOhKz_.js} +2 -2
  74. package/dist/_chunks/{optical-prescription-BvwuqTpl.js.map → optical-prescription-DUJOhKz_.js.map} +1 -1
  75. package/dist/_chunks/{patient-details-CdfursHt.js → patient-details-BGiawUHd.js} +3 -3
  76. package/dist/_chunks/{patient-details-CdfursHt.js.map → patient-details-BGiawUHd.js.map} +1 -1
  77. package/dist/_chunks/{patient-summary-card-C9WBwct-.js → patient-summary-card--CT_gbaQ.js} +2 -2
  78. package/dist/_chunks/{patient-summary-card-C9WBwct-.js.map → patient-summary-card--CT_gbaQ.js.map} +1 -1
  79. package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js → periodontal-diagnosis-lEwA8wqX.js} +3 -3
  80. package/dist/_chunks/{periodontal-diagnosis-HrFsVi-C.js.map → periodontal-diagnosis-lEwA8wqX.js.map} +1 -1
  81. package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js → practice-profile-hero-DQyDvpJL.js} +2 -2
  82. package/dist/_chunks/{practice-profile-hero-YQ7h2K4o.js.map → practice-profile-hero-DQyDvpJL.js.map} +1 -1
  83. package/dist/_chunks/{practice-results-CxIsU2YO.js → practice-results-DjEzPgAK.js} +2 -2
  84. package/dist/_chunks/{practice-results-CxIsU2YO.js.map → practice-results-DjEzPgAK.js.map} +1 -1
  85. package/dist/_chunks/{pregnancy-dating-m-c05DOI.js → pregnancy-dating-n5j5dAKy.js} +4 -4
  86. package/dist/_chunks/{pregnancy-dating-m-c05DOI.js.map → pregnancy-dating-n5j5dAKy.js.map} +1 -1
  87. package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js → pregnancy-weight-gain-D5A8vPjj.js} +3 -3
  88. package/dist/_chunks/{pregnancy-weight-gain-CJwbs9W-.js.map → pregnancy-weight-gain-D5A8vPjj.js.map} +1 -1
  89. package/dist/_chunks/qr-code-DOJs4suh.js +750 -0
  90. package/dist/_chunks/qr-code-DOJs4suh.js.map +1 -0
  91. package/dist/_chunks/radio-DNRe6H_8.js +193 -0
  92. package/dist/_chunks/radio-DNRe6H_8.js.map +1 -0
  93. package/dist/_chunks/radio-group-DyVBgnA3.js +297 -0
  94. package/dist/_chunks/radio-group-DyVBgnA3.js.map +1 -0
  95. package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js → radiograph-panel.agent-o4jwEJPC.js} +2 -2
  96. package/dist/_chunks/{radiograph-panel.agent-ByM9M3qm.js.map → radiograph-panel.agent-o4jwEJPC.js.map} +1 -1
  97. package/dist/_chunks/{rich-text-editor-VJATL1Tk.js → rich-text-editor-CQ7yZdG3.js} +2 -2
  98. package/dist/_chunks/{rich-text-editor-VJATL1Tk.js.map → rich-text-editor-CQ7yZdG3.js.map} +1 -1
  99. package/dist/_chunks/select-CLSUnKjF.js +520 -0
  100. package/dist/_chunks/select-CLSUnKjF.js.map +1 -0
  101. package/dist/_chunks/signature-request-vihDT8On.js +2232 -0
  102. package/dist/_chunks/signature-request-vihDT8On.js.map +1 -0
  103. package/dist/_chunks/{tabs-DqKtTIjZ.js → tabs-BnRaLT0y.js} +2 -2
  104. package/dist/_chunks/{tabs-DqKtTIjZ.js.map → tabs-BnRaLT0y.js.map} +1 -1
  105. package/dist/_chunks/{tasks-panel-DPCNaRko.js → tasks-panel-DQuaVvl5.js} +2 -2
  106. package/dist/_chunks/{tasks-panel-DPCNaRko.js.map → tasks-panel-DQuaVvl5.js.map} +1 -1
  107. package/dist/_chunks/{timeline-u-2t9t_M.js → timeline-Bs9Erxlo.js} +2 -2
  108. package/dist/_chunks/{timeline-u-2t9t_M.js.map → timeline-Bs9Erxlo.js.map} +1 -1
  109. package/dist/_chunks/{tooth-scheme-C9jssOmy.js → tooth-scheme-Qe7LO5Di.js} +2 -2
  110. package/dist/_chunks/{tooth-scheme-C9jssOmy.js.map → tooth-scheme-Qe7LO5Di.js.map} +1 -1
  111. package/dist/_chunks/{unit-converter-C6jMjqL9.js → unit-converter-BTgU50gk.js} +2 -2
  112. package/dist/_chunks/{unit-converter-C6jMjqL9.js.map → unit-converter-BTgU50gk.js.map} +1 -1
  113. package/dist/_chunks/{widget-picker-em4xGgv0.js → widget-picker-DvUkBemi.js} +2 -2
  114. package/dist/_chunks/{widget-picker-em4xGgv0.js.map → widget-picker-DvUkBemi.js.map} +1 -1
  115. package/dist/agent-catalog.json +316 -20
  116. package/dist/agent-i18n/en.json +18 -8
  117. package/dist/components/agenda-card/index.js +1 -1
  118. package/dist/components/agenda-tray/index.js +1 -1
  119. package/dist/components/ai-prompt-input/index.js +1 -1
  120. package/dist/components/appointment-card/index.js +2 -2
  121. package/dist/components/appointment-timeline/index.js +1 -1
  122. package/dist/components/audio-recorder/index.js +1 -1
  123. package/dist/components/avatar/avatar.d.ts +2 -0
  124. package/dist/components/avatar/avatar.d.ts.map +1 -1
  125. package/dist/components/avatar/index.js +1 -1
  126. package/dist/components/bishop-score/index.js +1 -1
  127. package/dist/components/bmi-calculator/index.js +1 -1
  128. package/dist/components/booking/booking.d.ts.map +1 -1
  129. package/dist/components/booking/index.js +1 -1
  130. package/dist/components/calculator-dialog/index.js +1 -1
  131. package/dist/components/calendar/index.js +1 -1
  132. package/dist/components/care-plan-card/index.js +1 -1
  133. package/dist/components/care-plan-entry-card/index.js +1 -1
  134. package/dist/components/chat-message/index.js +1 -1
  135. package/dist/components/clinical-note-card/index.js +1 -1
  136. package/dist/components/data-table/index.js +2 -2
  137. package/dist/components/dependent-selector/index.js +1 -1
  138. package/dist/components/dialog/dialog.d.ts +9 -0
  139. package/dist/components/dialog/dialog.d.ts.map +1 -1
  140. package/dist/components/dialog/index.js +1 -1
  141. package/dist/components/document-preview/index.js +1 -1
  142. package/dist/components/due-date-calculator/index.js +1 -1
  143. package/dist/components/entity-summary/index.js +1 -1
  144. package/dist/components/file-manager/index.js +1 -1
  145. package/dist/components/gestational-age-calculator/index.js +1 -1
  146. package/dist/components/message-card/index.js +1 -1
  147. package/dist/components/message-tray/index.js +1 -1
  148. package/dist/components/muscle-scheme/index.js +1 -1
  149. package/dist/components/notes-panel/index.js +1 -1
  150. package/dist/components/operator-hero/index.js +1 -1
  151. package/dist/components/optical-prescription/index.js +1 -1
  152. package/dist/components/patient-details/index.js +1 -1
  153. package/dist/components/patient-summary-card/index.js +1 -1
  154. package/dist/components/patient-table/index.js +1 -1
  155. package/dist/components/periodontal-diagnosis/index.js +1 -1
  156. package/dist/components/practice-profile-hero/index.js +1 -1
  157. package/dist/components/practice-results/index.js +1 -1
  158. package/dist/components/pregnancy-dating/index.js +1 -1
  159. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  160. package/dist/components/qr-code/index.js +1 -1
  161. package/dist/components/qr-code/qr-encode.d.ts +14 -16
  162. package/dist/components/qr-code/qr-encode.d.ts.map +1 -1
  163. package/dist/components/radio/index.js +1 -1
  164. package/dist/components/radio-group/index.js +2 -2
  165. package/dist/components/radio-group/radio-group-context.d.ts +4 -1
  166. package/dist/components/radio-group/radio-group-context.d.ts.map +1 -1
  167. package/dist/components/radio-group/radio-group.agent.d.ts.map +1 -1
  168. package/dist/components/radio-group/radio-group.d.ts +13 -1
  169. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  170. package/dist/components/radio-group/radio.d.ts +24 -1
  171. package/dist/components/radio-group/radio.d.ts.map +1 -1
  172. package/dist/components/radiograph-panel/index.js +1 -1
  173. package/dist/components/rich-text-editor/index.js +1 -1
  174. package/dist/components/select/index.js +1 -1
  175. package/dist/components/select/select.agent.d.ts.map +1 -1
  176. package/dist/components/select/select.d.ts +33 -0
  177. package/dist/components/select/select.d.ts.map +1 -1
  178. package/dist/components/skeleton-scheme/index.js +1 -1
  179. package/dist/components/tabs/index.js +1 -1
  180. package/dist/components/tasks-panel/index.js +1 -1
  181. package/dist/components/timeline/index.js +1 -1
  182. package/dist/components/tooth-scheme/index.js +1 -1
  183. package/dist/components/unit-converter/index.js +1 -1
  184. package/dist/components/widget-picker/index.js +1 -1
  185. package/dist/i18n/locales/ar.d.ts +68 -0
  186. package/dist/i18n/locales/ar.d.ts.map +1 -1
  187. package/dist/i18n/locales/ar.js +69 -1
  188. package/dist/i18n/locales/ar.js.map +1 -1
  189. package/dist/i18n/locales/de.d.ts +68 -0
  190. package/dist/i18n/locales/de.d.ts.map +1 -1
  191. package/dist/i18n/locales/de.js +71 -1
  192. package/dist/i18n/locales/de.js.map +1 -1
  193. package/dist/i18n/locales/el.d.ts +68 -0
  194. package/dist/i18n/locales/el.d.ts.map +1 -1
  195. package/dist/i18n/locales/el.js +69 -1
  196. package/dist/i18n/locales/el.js.map +1 -1
  197. package/dist/i18n/locales/en.d.ts +68 -0
  198. package/dist/i18n/locales/en.d.ts.map +1 -1
  199. package/dist/i18n/locales/en.js +69 -1
  200. package/dist/i18n/locales/en.js.map +1 -1
  201. package/dist/i18n/locales/es.d.ts +68 -0
  202. package/dist/i18n/locales/es.d.ts.map +1 -1
  203. package/dist/i18n/locales/es.js +69 -1
  204. package/dist/i18n/locales/es.js.map +1 -1
  205. package/dist/i18n/locales/fr.d.ts +68 -0
  206. package/dist/i18n/locales/fr.d.ts.map +1 -1
  207. package/dist/i18n/locales/fr.js +69 -1
  208. package/dist/i18n/locales/fr.js.map +1 -1
  209. package/dist/i18n/locales/hi.d.ts +68 -0
  210. package/dist/i18n/locales/hi.d.ts.map +1 -1
  211. package/dist/i18n/locales/hi.js +69 -1
  212. package/dist/i18n/locales/hi.js.map +1 -1
  213. package/dist/i18n/locales/it.d.ts +68 -0
  214. package/dist/i18n/locales/it.d.ts.map +1 -1
  215. package/dist/i18n/locales/it.js +69 -1
  216. package/dist/i18n/locales/it.js.map +1 -1
  217. package/dist/i18n/locales/ja.d.ts +68 -0
  218. package/dist/i18n/locales/ja.d.ts.map +1 -1
  219. package/dist/i18n/locales/ja.js +69 -1
  220. package/dist/i18n/locales/ja.js.map +1 -1
  221. package/dist/i18n/locales/nl.d.ts +68 -0
  222. package/dist/i18n/locales/nl.d.ts.map +1 -1
  223. package/dist/i18n/locales/nl.js +69 -1
  224. package/dist/i18n/locales/nl.js.map +1 -1
  225. package/dist/i18n/locales/pl.d.ts +68 -0
  226. package/dist/i18n/locales/pl.d.ts.map +1 -1
  227. package/dist/i18n/locales/pl.js +69 -1
  228. package/dist/i18n/locales/pl.js.map +1 -1
  229. package/dist/i18n/locales/pt.d.ts +68 -0
  230. package/dist/i18n/locales/pt.d.ts.map +1 -1
  231. package/dist/i18n/locales/pt.js +69 -1
  232. package/dist/i18n/locales/pt.js.map +1 -1
  233. package/dist/i18n/locales/ro.d.ts +68 -0
  234. package/dist/i18n/locales/ro.d.ts.map +1 -1
  235. package/dist/i18n/locales/ro.js +69 -1
  236. package/dist/i18n/locales/ro.js.map +1 -1
  237. package/dist/i18n/locales/ru.d.ts +68 -0
  238. package/dist/i18n/locales/ru.d.ts.map +1 -1
  239. package/dist/i18n/locales/ru.js +69 -1
  240. package/dist/i18n/locales/ru.js.map +1 -1
  241. package/dist/i18n/locales/sq.d.ts +68 -0
  242. package/dist/i18n/locales/sq.d.ts.map +1 -1
  243. package/dist/i18n/locales/sq.js +69 -1
  244. package/dist/i18n/locales/sq.js.map +1 -1
  245. package/dist/i18n/locales/sv.d.ts +68 -0
  246. package/dist/i18n/locales/sv.d.ts.map +1 -1
  247. package/dist/i18n/locales/sv.js +69 -1
  248. package/dist/i18n/locales/sv.js.map +1 -1
  249. package/dist/i18n/locales/tr.d.ts +68 -0
  250. package/dist/i18n/locales/tr.d.ts.map +1 -1
  251. package/dist/i18n/locales/tr.js +69 -1
  252. package/dist/i18n/locales/tr.js.map +1 -1
  253. package/dist/i18n/locales/zh.d.ts +68 -0
  254. package/dist/i18n/locales/zh.d.ts.map +1 -1
  255. package/dist/i18n/locales/zh.js +69 -1
  256. package/dist/i18n/locales/zh.js.map +1 -1
  257. package/dist/index.js +57 -57
  258. package/dist/locales/ar.json +69 -1
  259. package/dist/locales/de.json +69 -1
  260. package/dist/locales/el.json +69 -1
  261. package/dist/locales/en.json +69 -1
  262. package/dist/locales/es.json +69 -1
  263. package/dist/locales/fr.json +69 -1
  264. package/dist/locales/hi.json +69 -1
  265. package/dist/locales/it.json +69 -1
  266. package/dist/locales/ja.json +69 -1
  267. package/dist/locales/nl.json +69 -1
  268. package/dist/locales/pl.json +69 -1
  269. package/dist/locales/pt.json +69 -1
  270. package/dist/locales/ro.json +69 -1
  271. package/dist/locales/ru.json +69 -1
  272. package/dist/locales/sq.json +69 -1
  273. package/dist/locales/sv.json +69 -1
  274. package/dist/locales/tr.json +69 -1
  275. package/dist/locales/zh.json +69 -1
  276. package/dist/patterns/alia-assistant/index.js +1 -1
  277. package/dist/patterns/anamnesis/index.js +1 -1
  278. package/dist/patterns/calendar/index.js +1 -1
  279. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  280. package/dist/patterns/signature-request/channel-meta.d.ts +27 -0
  281. package/dist/patterns/signature-request/channel-meta.d.ts.map +1 -0
  282. package/dist/patterns/signature-request/index.d.ts +1 -1
  283. package/dist/patterns/signature-request/index.d.ts.map +1 -1
  284. package/dist/patterns/signature-request/index.js +1 -1
  285. package/dist/patterns/signature-request/load-status.d.ts +13 -0
  286. package/dist/patterns/signature-request/load-status.d.ts.map +1 -0
  287. package/dist/patterns/signature-request/person-grid.d.ts +32 -0
  288. package/dist/patterns/signature-request/person-grid.d.ts.map +1 -0
  289. package/dist/patterns/signature-request/required-documents.d.ts +127 -0
  290. package/dist/patterns/signature-request/required-documents.d.ts.map +1 -0
  291. package/dist/patterns/signature-request/signature-history.d.ts +57 -0
  292. package/dist/patterns/signature-request/signature-history.d.ts.map +1 -0
  293. package/dist/patterns/signature-request/signature-outcome.d.ts +29 -0
  294. package/dist/patterns/signature-request/signature-outcome.d.ts.map +1 -0
  295. package/dist/patterns/signature-request/signature-request.d.ts +390 -26
  296. package/dist/patterns/signature-request/signature-request.d.ts.map +1 -1
  297. package/dist/tokens.css +1 -1
  298. package/package.json +3 -1
  299. package/dist/_chunks/avatar-BNQNhoyL.js.map +0 -1
  300. package/dist/_chunks/dialog-UbKJCi1X.js.map +0 -1
  301. package/dist/_chunks/qr-code-CPkEs5mG.js +0 -574
  302. package/dist/_chunks/qr-code-CPkEs5mG.js.map +0 -1
  303. package/dist/_chunks/radio-TWf9Q-mp.js +0 -108
  304. package/dist/_chunks/radio-TWf9Q-mp.js.map +0 -1
  305. package/dist/_chunks/radio-group-rXDJADzW.js +0 -175
  306. package/dist/_chunks/radio-group-rXDJADzW.js.map +0 -1
  307. package/dist/_chunks/select-Bi8zril7.js +0 -471
  308. package/dist/_chunks/select-Bi8zril7.js.map +0 -1
  309. package/dist/_chunks/signature-request-C-IsbkPf.js +0 -417
  310. package/dist/_chunks/signature-request-C-IsbkPf.js.map +0 -1
@@ -1,51 +1,51 @@
1
- import { jsxs as v, jsx as s, Fragment as X } from "react/jsx-runtime";
2
- import { forwardRef as Ct, useId as rt, useState as J, useCallback as Q, useRef as Z, useEffect as H, useMemo as C, useImperativeHandle as ts } from "react";
1
+ import { jsxs as v, jsx as s, Fragment as te } from "react/jsx-runtime";
2
+ import { forwardRef as Ot, useId as dt, useState as Z, useCallback as X, useRef as U, useEffect as Y, useMemo as M, useImperativeHandle as rs } from "react";
3
3
  import { c as Ue } from "./index-D2ZczOXr.js";
4
- import { useTranslation as V, Trans as ss } from "react-i18next";
5
- import { u as as } from "./registry-DvAUVLHh.js";
6
- import { A as Y } from "./alert-CiJT540z.js";
7
- import { B as he } from "./button-nJaPh_HC.js";
8
- import { C as Fe } from "./checkbox-BuZ1u__2.js";
9
- import { C as ns } from "./checkbox-group-CfqMv57d.js";
10
- import { D as is } from "./date-picker-B6NW_PS5.js";
11
- import { E as rs } from "./email-input-Dpe63k0K.js";
12
- import { F as de } from "./form-field-CahJzTxp.js";
13
- import { P as os } from "./phone-input-BsZIoE36.js";
14
- import { T as ds } from "./text-area-Bt3p7Pt0.js";
15
- import { T as $e } from "./text-input-CUvCb6ST.js";
16
- import { S as ls } from "./spinner-hbwuKwMf.js";
17
- import { B as Mt } from "./badge-sTusUqZD.js";
18
- import { I as bt } from "./icon-button-DA2CAGHZ.js";
19
- import { S as Je } from "./select-Bi8zril7.js";
20
- import { C as ot } from "./combobox-DnSdYssy.js";
21
- import { M as dt } from "./multi-select-DYOvx2SJ.js";
22
- import { S as Ge } from "./skeleton-CZbwyJAA.js";
23
- import { E as Dt } from "./empty-state-X0sVPfVo.js";
24
- import { S as cs } from "./stepper-accordion-DmVykr5F.js";
25
- import { S as us } from "./stepper-progress-Bv0njx4g.js";
26
- import { S as ps } from "./slot-grid-BuZOKfcd.js";
27
- import { p as j } from "./parseISO-fOGpHKXm.js";
28
- import { C as ms } from "./chevron-down-DWE7GSq9.js";
29
- import { l as ke, f as qe, b as yt } from "./format-4HNwNGrN.js";
30
- import { w as At, c as Se, a as at, i as fs, s as Te, l as gs, x as ze } from "./date-picker-variants-B9NLAfUK.js";
31
- import { s as hs } from "./subDays-HPvBuvq3.js";
32
- import { C as vs } from "./chevron-left-B8cOyH-V.js";
33
- import { C as bs } from "./chevron-right-I9AeSxH2.js";
34
- import { c as G } from "./createLucideIcon-DhHxpK9K.js";
35
- import { M as ys, S as ks } from "./sun-Bj9Mr553.js";
36
- import { S as Ss } from "./stethoscope-sZXGC43m.js";
37
- import { H as xs } from "./heart-pulse-BCppJyN2.js";
38
- import { E as Is } from "./eye-BjhN2nYf.js";
39
- import { S as Ns } from "./scan-line-CNseIHQ0.js";
40
- import { A as ws } from "./astroid-BN4f5VXU.js";
41
- import { C as Cs } from "./clipboard-check-BeAGxDVT.js";
4
+ import { useTranslation as $, Trans as os } from "react-i18next";
5
+ import { u as ds } from "./registry-DvAUVLHh.js";
6
+ import { A as Q } from "./alert-CiJT540z.js";
7
+ import { B as be } from "./button-nJaPh_HC.js";
8
+ import { C as $e } from "./checkbox-BuZ1u__2.js";
9
+ import { C as ls } from "./checkbox-group-CfqMv57d.js";
10
+ import { D as cs } from "./date-picker-B6NW_PS5.js";
11
+ import { E as us } from "./email-input-Dpe63k0K.js";
12
+ import { F as le } from "./form-field-CahJzTxp.js";
13
+ import { P as ps } from "./phone-input-BsZIoE36.js";
14
+ import { T as ms } from "./text-area-Bt3p7Pt0.js";
15
+ import { T as ze } from "./text-input-CUvCb6ST.js";
16
+ import { S as fs } from "./spinner-hbwuKwMf.js";
17
+ import { B as _t } from "./badge-sTusUqZD.js";
18
+ import { I as It } from "./icon-button-DA2CAGHZ.js";
19
+ import { S as Ye } from "./select-CLSUnKjF.js";
20
+ import { C as lt } from "./combobox-DnSdYssy.js";
21
+ import { M as ct } from "./multi-select-DYOvx2SJ.js";
22
+ import { S as He } from "./skeleton-CZbwyJAA.js";
23
+ import { E as Bt } from "./empty-state-X0sVPfVo.js";
24
+ import { S as gs } from "./stepper-accordion-DmVykr5F.js";
25
+ import { S as hs } from "./stepper-progress-Bv0njx4g.js";
26
+ import { S as vs } from "./slot-grid-BuZOKfcd.js";
27
+ import { p as G } from "./parseISO-fOGpHKXm.js";
28
+ import { C as bs } from "./chevron-down-DWE7GSq9.js";
29
+ import { l as Se, f as Ge, b as Nt } from "./format-4HNwNGrN.js";
30
+ import { w as Pt, c as xe, a as nt, i as ys, s as Te, l as ks, x as Ke } from "./date-picker-variants-B9NLAfUK.js";
31
+ import { s as Ss } from "./subDays-HPvBuvq3.js";
32
+ import { C as xs } from "./chevron-left-B8cOyH-V.js";
33
+ import { C as Is } from "./chevron-right-I9AeSxH2.js";
34
+ import { c as J } from "./createLucideIcon-DhHxpK9K.js";
35
+ import { M as Ns, S as ws } from "./sun-Bj9Mr553.js";
36
+ import { S as Cs } from "./stethoscope-sZXGC43m.js";
37
+ import { H as Ms } from "./heart-pulse-BCppJyN2.js";
38
+ import { E as Ds } from "./eye-BjhN2nYf.js";
39
+ import { S as As } from "./scan-line-CNseIHQ0.js";
40
+ import { A as Ts } from "./astroid-BN4f5VXU.js";
41
+ import { C as Os } from "./clipboard-check-BeAGxDVT.js";
42
42
  /**
43
43
  * @license lucide-react v1.22.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
47
  */
48
- const Ms = [
48
+ const _s = [
49
49
  [
50
50
  "path",
51
51
  {
@@ -53,14 +53,14 @@ const Ms = [
53
53
  key: "169zse"
54
54
  }
55
55
  ]
56
- ], Ds = G("activity", Ms);
56
+ ], Bs = J("activity", _s);
57
57
  /**
58
58
  * @license lucide-react v1.22.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
62
  */
63
- const As = [
63
+ const Ps = [
64
64
  ["path", { d: "M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5", key: "1u7htd" }],
65
65
  ["path", { d: "M15 12h.01", key: "1k8ypt" }],
66
66
  [
@@ -71,14 +71,14 @@ const As = [
71
71
  }
72
72
  ],
73
73
  ["path", { d: "M9 12h.01", key: "157uk2" }]
74
- ], Ts = G("baby", As);
74
+ ], Ls = J("baby", Ps);
75
75
  /**
76
76
  * @license lucide-react v1.22.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
80
  */
81
- const _s = [
81
+ const Rs = [
82
82
  [
83
83
  "path",
84
84
  {
@@ -86,14 +86,14 @@ const _s = [
86
86
  key: "w610uw"
87
87
  }
88
88
  ]
89
- ], Bs = G("bone", _s);
89
+ ], Es = J("bone", Rs);
90
90
  /**
91
91
  * @license lucide-react v1.22.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
95
  */
96
- const Os = [
96
+ const Vs = [
97
97
  ["path", { d: "M12 18V5", key: "adv99a" }],
98
98
  ["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
99
99
  ["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
@@ -102,14 +102,14 @@ const Os = [
102
102
  ["path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517", key: "1gq6am" }],
103
103
  ["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
104
104
  ["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
105
- ], Ls = G("brain", Os);
105
+ ], Fs = J("brain", Vs);
106
106
  /**
107
107
  * @license lucide-react v1.22.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
111
  */
112
- const Ps = [
112
+ const $s = [
113
113
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
114
114
  ["path", { d: "M16 2v4", key: "4m81vk" }],
115
115
  ["path", { d: "M3 10h18", key: "8toen8" }],
@@ -118,76 +118,76 @@ const Ps = [
118
118
  ["path", { d: "M13 18H7", key: "bb0bb7" }],
119
119
  ["path", { d: "M7 14h.01", key: "1qa3f1" }],
120
120
  ["path", { d: "M17 18h.01", key: "1bdyru" }]
121
- ], Rs = G("calendar-range", Ps);
121
+ ], zs = J("calendar-range", $s);
122
122
  /**
123
123
  * @license lucide-react v1.22.0 - ISC
124
124
  *
125
125
  * This source code is licensed under the ISC license.
126
126
  * See the LICENSE file in the root directory of this source tree.
127
127
  */
128
- const Es = [
128
+ const Ks = [
129
129
  ["path", { d: "M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0", key: "1dfaln" }],
130
130
  ["path", { d: "M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4", key: "1qnva7" }]
131
- ], Vs = G("ear", Es);
131
+ ], js = J("ear", Ks);
132
132
  /**
133
133
  * @license lucide-react v1.22.0 - ISC
134
134
  *
135
135
  * This source code is licensed under the ISC license.
136
136
  * See the LICENSE file in the root directory of this source tree.
137
137
  */
138
- const Fs = [
138
+ const qs = [
139
139
  ["path", { d: "M6 18h8", key: "1borvv" }],
140
140
  ["path", { d: "M3 22h18", key: "8prr45" }],
141
141
  ["path", { d: "M14 22a7 7 0 1 0 0-14h-1", key: "1jwaiy" }],
142
142
  ["path", { d: "M9 14h2", key: "197e7h" }],
143
143
  ["path", { d: "M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z", key: "1bmzmy" }],
144
144
  ["path", { d: "M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3", key: "1drr47" }]
145
- ], $s = G("microscope", Fs);
145
+ ], Gs = J("microscope", qs);
146
146
  /**
147
147
  * @license lucide-react v1.22.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
151
  */
152
- const zs = [
152
+ const Hs = [
153
153
  [
154
154
  "path",
155
155
  { d: "m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z", key: "wa1lgi" }
156
156
  ],
157
157
  ["path", { d: "m8.5 8.5 7 7", key: "rvfmvr" }]
158
- ], Ks = G("pill", zs);
158
+ ], Js = J("pill", Hs);
159
159
  /**
160
160
  * @license lucide-react v1.22.0 - ISC
161
161
  *
162
162
  * This source code is licensed under the ISC license.
163
163
  * See the LICENSE file in the root directory of this source tree.
164
164
  */
165
- const js = [
165
+ const Us = [
166
166
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
167
167
  ["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
168
168
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
169
169
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
170
170
  ["path", { d: "M14.8 14.8 20 20", key: "ptml3r" }]
171
- ], qs = G("scissors", js);
171
+ ], Ys = J("scissors", Us);
172
172
  /**
173
173
  * @license lucide-react v1.22.0 - ISC
174
174
  *
175
175
  * This source code is licensed under the ISC license.
176
176
  * See the LICENSE file in the root directory of this source tree.
177
177
  */
178
- const Gs = [
178
+ const Ws = [
179
179
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
180
180
  ["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
181
181
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
182
182
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
183
- ], Hs = G("smile", Gs);
183
+ ], Zs = J("smile", Ws);
184
184
  /**
185
185
  * @license lucide-react v1.22.0 - ISC
186
186
  *
187
187
  * This source code is licensed under the ISC license.
188
188
  * See the LICENSE file in the root directory of this source tree.
189
189
  */
190
- const Us = [
190
+ const Xs = [
191
191
  ["path", { d: "M12 10V2", key: "16sf7g" }],
192
192
  ["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
193
193
  ["path", { d: "M2 18h2", key: "j10viu" }],
@@ -196,25 +196,25 @@ const Us = [
196
196
  ["path", { d: "M22 22H2", key: "19qnx5" }],
197
197
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
198
198
  ["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
199
- ], Js = G("sunset", Us);
199
+ ], Qs = J("sunset", Xs);
200
200
  /**
201
201
  * @license lucide-react v1.22.0 - ISC
202
202
  *
203
203
  * This source code is licensed under the ISC license.
204
204
  * See the LICENSE file in the root directory of this source tree.
205
205
  */
206
- const Ys = [
206
+ const ea = [
207
207
  ["path", { d: "m18 2 4 4", key: "22kx64" }],
208
208
  ["path", { d: "m17 7 3-3", key: "1w1zoj" }],
209
209
  ["path", { d: "M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5", key: "1exhtz" }],
210
210
  ["path", { d: "m9 11 4 4", key: "rovt3i" }],
211
211
  ["path", { d: "m5 19-3 3", key: "59f2uf" }],
212
212
  ["path", { d: "m14 4 6 6", key: "yqp9t2" }]
213
- ], kt = G("syringe", Ys);
214
- function Ws(e, t, a) {
215
- return At(e, -1, a);
213
+ ], wt = J("syringe", ea);
214
+ function ta(e, t, a) {
215
+ return Pt(e, -1, a);
216
216
  }
217
- const Zs = {
217
+ const sa = {
218
218
  id: "booking",
219
219
  // `view_change` removed (0.69): the layout `variant` is a fixed prop — the
220
220
  // handle exposes only `getVariant` (state), no action mutates it. The flow's
@@ -286,12 +286,12 @@ const Zs = {
286
286
  description: "Sourced from the id prop."
287
287
  }
288
288
  }
289
- }, it = [
289
+ }, rt = [
290
290
  "email",
291
291
  "whatsapp",
292
292
  "sms"
293
- ], q = "all", Xs = "de";
294
- function Qs(e) {
293
+ ], H = "all", aa = "de";
294
+ function na(e) {
295
295
  return [...e.lockedOperatorId ? e.specialties.filter(
296
296
  (a) => {
297
297
  var n;
@@ -302,7 +302,7 @@ function Qs(e) {
302
302
  return i - r;
303
303
  });
304
304
  }
305
- function ea(e) {
305
+ function ia(e) {
306
306
  let t = e.services;
307
307
  if (e.lockedOperatorId && (t = t.filter(
308
308
  (n) => {
@@ -310,17 +310,17 @@ function ea(e) {
310
310
  return (i = n.operatorIds) == null ? void 0 : i.includes(e.lockedOperatorId);
311
311
  }
312
312
  )), e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) {
313
- const n = se(e.value);
313
+ const n = ae(e.value);
314
314
  n.length > 0 && (t = t.filter(
315
315
  (i) => i.specialtyId !== void 0 && n.includes(i.specialtyId)
316
316
  ));
317
317
  }
318
318
  return t;
319
319
  }
320
- function ta(e) {
320
+ function ra(e) {
321
321
  const t = e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties;
322
322
  if (t) {
323
- const a = se(e.value);
323
+ const a = ae(e.value);
324
324
  if (a.length > 0)
325
325
  return e.operators.filter(
326
326
  (n) => {
@@ -330,7 +330,7 @@ function ta(e) {
330
330
  );
331
331
  }
332
332
  if (!t) {
333
- const a = le(e.value);
333
+ const a = ue(e.value);
334
334
  if (a.length > 0)
335
335
  return e.operators.filter(
336
336
  (n) => {
@@ -341,8 +341,8 @@ function ta(e) {
341
341
  }
342
342
  return [];
343
343
  }
344
- function sa(e, t) {
345
- const a = e.country === Xs, n = !a || e.value.insuranceType !== void 0, r = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && n, u = se(e.value).length > 0, m = !r || u, d = le(e.value).length > 0, l = !m || d, c = t.operators, S = !!e.allowOperatorSelection && l && d && !e.lockedOperatorId && c.length > 1, f = l && d, N = (!f || e.value.date !== void 0) && e.value.date !== void 0, D = (!N || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, I = d && c.length === 0;
344
+ function oa(e, t) {
345
+ const a = e.country === aa, n = !a || e.value.insuranceType !== void 0, r = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && n, u = ae(e.value).length > 0, m = !r || u, d = ue(e.value).length > 0, l = !m || d, c = t.operators, S = !!e.allowOperatorSelection && l && d && !e.lockedOperatorId && c.length > 1, f = l && d, N = (!f || e.value.date !== void 0) && e.value.date !== void 0, D = (!N || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, I = d && c.length === 0;
346
346
  return {
347
347
  insurance: a,
348
348
  specialty: r,
@@ -354,14 +354,14 @@ function sa(e, t) {
354
354
  onboardingIncomplete: I
355
355
  };
356
356
  }
357
- function aa(e, t) {
357
+ function da(e, t) {
358
358
  const a = [];
359
359
  t.insurance && a.push(1), t.specialty && a.push(2), a.push(3), t.operator && a.push(4), a.push(5), a.push(6), a.push(7);
360
360
  const n = {
361
361
  1: e.value.insuranceType !== void 0,
362
362
  // 0.34.0: array-or-single — satisfied when EITHER form is present.
363
- 2: se(e.value).length > 0,
364
- 3: le(e.value).length > 0,
363
+ 2: ae(e.value).length > 0,
364
+ 3: ue(e.value).length > 0,
365
365
  4: e.value.operatorId !== void 0 || e.value.operatorIds !== void 0 && e.value.operatorIds.length > 0,
366
366
  5: e.value.date !== void 0,
367
367
  6: e.value.slotKey !== void 0,
@@ -373,18 +373,18 @@ function aa(e, t) {
373
373
  visibleSteps: a
374
374
  };
375
375
  }
376
- function na(e) {
376
+ function la(e) {
377
377
  const t = {
378
- specialties: Qs(e),
379
- services: ea(e),
380
- operators: ta(e)
381
- }, a = sa(e, t), { currentStep: n, visibleSteps: i } = aa(e, a);
378
+ specialties: na(e),
379
+ services: ia(e),
380
+ operators: ra(e)
381
+ }, a = oa(e, t), { currentStep: n, visibleSteps: i } = da(e, a);
382
382
  let r;
383
383
  if (e.value.date && e.value.slotKey) {
384
384
  const l = e.availableSlots[e.value.date];
385
385
  l && (r = l.find((c) => c.key === e.value.slotKey));
386
386
  }
387
- const u = le(e.value), o = u.length > 0 ? e.services.find((l) => l.id === u[0]) : void 0, m = se(e.value).length > 0, d = u.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!a.insurance || e.value.insuranceType !== void 0) && (!a.specialty || m);
387
+ const u = ue(e.value), o = u.length > 0 ? e.services.find((l) => l.id === u[0]) : void 0, m = ae(e.value).length > 0, d = u.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!a.insurance || e.value.insuranceType !== void 0) && (!a.specialty || m);
388
388
  return {
389
389
  gates: a,
390
390
  filtered: t,
@@ -396,7 +396,7 @@ function na(e) {
396
396
  selectedSlot: r
397
397
  };
398
398
  }
399
- function Tt(e, t) {
399
+ function Lt(e, t) {
400
400
  return {
401
401
  ...e,
402
402
  insuranceType: t,
@@ -408,7 +408,7 @@ function Tt(e, t) {
408
408
  details: void 0
409
409
  };
410
410
  }
411
- function _t(e, t) {
411
+ function Rt(e, t) {
412
412
  return {
413
413
  ...e,
414
414
  specialtyId: t,
@@ -422,7 +422,7 @@ function _t(e, t) {
422
422
  details: void 0
423
423
  };
424
424
  }
425
- function Bt(e, t) {
425
+ function Et(e, t) {
426
426
  return {
427
427
  ...e,
428
428
  specialtyId: void 0,
@@ -436,7 +436,7 @@ function Bt(e, t) {
436
436
  details: void 0
437
437
  };
438
438
  }
439
- function Ot(e, t) {
439
+ function Vt(e, t) {
440
440
  return {
441
441
  ...e,
442
442
  serviceId: t,
@@ -444,27 +444,27 @@ function Ot(e, t) {
444
444
  // Default the operator to the "All operators" sentinel so a patient
445
445
  // who doesn't care about picking lands on a satisfied step 4 without
446
446
  // any further input.
447
- operatorId: t ? q : void 0,
447
+ operatorId: t ? H : void 0,
448
448
  operatorIds: void 0,
449
449
  date: void 0,
450
450
  slotKey: void 0,
451
451
  details: void 0
452
452
  };
453
453
  }
454
- function Lt(e, t) {
454
+ function Ft(e, t) {
455
455
  const a = !!t && t.length > 0;
456
456
  return {
457
457
  ...e,
458
458
  serviceId: void 0,
459
459
  serviceIds: t,
460
- operatorId: a ? q : void 0,
460
+ operatorId: a ? H : void 0,
461
461
  operatorIds: void 0,
462
462
  date: void 0,
463
463
  slotKey: void 0,
464
464
  details: void 0
465
465
  };
466
466
  }
467
- function Pt(e, t) {
467
+ function $t(e, t) {
468
468
  return {
469
469
  ...e,
470
470
  operatorId: t,
@@ -474,7 +474,7 @@ function Pt(e, t) {
474
474
  details: void 0
475
475
  };
476
476
  }
477
- function Rt(e, t) {
477
+ function zt(e, t) {
478
478
  return {
479
479
  ...e,
480
480
  operatorId: void 0,
@@ -484,16 +484,16 @@ function Rt(e, t) {
484
484
  details: void 0
485
485
  };
486
486
  }
487
- function se(e) {
487
+ function ae(e) {
488
488
  return e.specialtyIds && e.specialtyIds.length > 0 ? e.specialtyIds : e.specialtyId ? [e.specialtyId] : [];
489
489
  }
490
- function le(e) {
490
+ function ue(e) {
491
491
  return e.serviceIds && e.serviceIds.length > 0 ? e.serviceIds : e.serviceId ? [e.serviceId] : [];
492
492
  }
493
- function He(e) {
493
+ function Je(e) {
494
494
  return e.operatorIds && e.operatorIds.length > 0 ? e.operatorIds : e.operatorId ? [e.operatorId] : [];
495
495
  }
496
- function Ye(e, t) {
496
+ function We(e, t) {
497
497
  return {
498
498
  ...e,
499
499
  date: t,
@@ -502,49 +502,49 @@ function Ye(e, t) {
502
502
  // since the user has already filled some fields.
503
503
  };
504
504
  }
505
- function Et(e, t) {
505
+ function Kt(e, t) {
506
506
  return {
507
507
  ...e,
508
508
  slotKey: t
509
509
  };
510
510
  }
511
- function ia(e, t) {
511
+ function ca(e, t) {
512
512
  let a = e;
513
513
  if (t.lockedOperatorId && a.operatorId !== t.lockedOperatorId && (a = { ...a, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && a.specialtyId === void 0 && a.specialtyIds === void 0 && (a = { ...a, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
514
- const i = se(a), r = i.length > 0 ? t.services.filter(
514
+ const i = ae(a), r = i.length > 0 ? t.services.filter(
515
515
  (u) => u.specialtyId && i.includes(u.specialtyId)
516
516
  ) : t.services;
517
- r.length === 1 && a.serviceId === void 0 && a.serviceIds === void 0 && (a = { ...a, serviceId: r[0].id }, a.operatorId === void 0 && a.operatorIds === void 0 && (a = { ...a, operatorId: q }));
517
+ r.length === 1 && a.serviceId === void 0 && a.serviceIds === void 0 && (a = { ...a, serviceId: r[0].id }, a.operatorId === void 0 && a.operatorIds === void 0 && (a = { ...a, operatorId: H }));
518
518
  }
519
519
  return a;
520
520
  }
521
- function St(e) {
522
- if (e.operatorId && e.operatorId !== q)
521
+ function ot(e) {
522
+ if (e.operatorId && e.operatorId !== H)
523
523
  return e.operatorId;
524
524
  }
525
- function ra(e) {
525
+ function ua(e) {
526
526
  if (!e) return !1;
527
527
  const t = e.trim();
528
528
  return /^\+?\d[\d\s\-()]{6,}$/.test(t);
529
529
  }
530
- function Vt(e) {
530
+ function jt(e) {
531
531
  const t = e && e.length > 0 ? e : ["email"], a = new Set(t);
532
- return it.filter((n) => a.has(n));
532
+ return rt.filter((n) => a.has(n));
533
533
  }
534
- function oa(e, t, a) {
535
- const n = Vt(e), i = new Set(n);
534
+ function pa(e, t, a) {
535
+ const n = jt(e), i = new Set(n);
536
536
  if (a)
537
- return it.filter(
537
+ return rt.filter(
538
538
  (d) => a.includes(d) && i.has(d)
539
539
  );
540
540
  const r = [];
541
541
  i.has("email") && r.push("email");
542
- const u = ra(t), o = i.has("whatsapp");
542
+ const u = ua(t), o = i.has("whatsapp");
543
543
  o && u && r.push("whatsapp"), !o && i.has("sms") && r.push("sms");
544
544
  const m = new Set(r);
545
- return it.filter((d) => m.has(d));
545
+ return rt.filter((d) => m.has(d));
546
546
  }
547
- const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 300, Ke = { state: "idle" }, lt = Ct(
547
+ const Ct = 500, ma = /^[A-Z0-9]{16}$/, fa = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Mt = 300, je = { state: "idle" }, ut = Ot(
548
548
  ({
549
549
  value: e,
550
550
  onChange: t,
@@ -567,65 +567,65 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
567
567
  defaultConfirmationChannels: I,
568
568
  submitError: y
569
569
  }, x) => {
570
- var K, me;
571
- const { t: k } = V(), A = rt(), [p, g] = J(Ke), [T, L] = J(Ke), [O, ae] = J({}), P = Q(
572
- (h) => ae((_) => ({ ..._, [h]: !0 })),
570
+ var z, ge;
571
+ const { t: k } = $(), T = dt(), [p, g] = Z(je), [O, R] = Z(je), [L, ne] = Z({}), E = X(
572
+ (h) => ne((_) => ({ ..._, [h]: !0 })),
573
573
  []
574
- ), z = Z(null), ne = Z(
574
+ ), j = U(null), ie = U(
575
575
  null
576
576
  );
577
- H(
577
+ Y(
578
578
  () => () => {
579
- z.current && clearTimeout(z.current), ne.current && clearTimeout(ne.current);
579
+ j.current && clearTimeout(j.current), ie.current && clearTimeout(ie.current);
580
580
  },
581
581
  []
582
582
  );
583
- const R = Q(
583
+ const V = X(
584
584
  (h) => t({ ...e, ...h }),
585
585
  [e, t]
586
- ), ce = C(
587
- () => Vt(D),
586
+ ), pe = M(
587
+ () => jt(D),
588
588
  [D]
589
- ), ee = ce.length >= 2, Ie = Z(!1);
590
- H(() => {
591
- if (!ee) {
592
- e.confirmationChannels !== void 0 && R({ confirmationChannels: void 0 });
589
+ ), se = pe.length >= 2, Ne = U(!1);
590
+ Y(() => {
591
+ if (!se) {
592
+ e.confirmationChannels !== void 0 && V({ confirmationChannels: void 0 });
593
593
  return;
594
594
  }
595
595
  if (e.confirmationChannels !== void 0) {
596
- Ie.current = !0;
596
+ Ne.current = !0;
597
597
  return;
598
598
  }
599
- const h = oa(
600
- ce,
599
+ const h = pa(
600
+ pe,
601
601
  e.mobilePhone,
602
602
  I
603
603
  );
604
- Ie.current = !0, R({ confirmationChannels: h });
604
+ Ne.current = !0, V({ confirmationChannels: h });
605
605
  }, [
606
- ee,
607
- ce,
606
+ se,
607
+ pe,
608
608
  e.mobilePhone,
609
609
  I
610
610
  ]);
611
- const ue = C(
611
+ const me = M(
612
612
  () => e.confirmationChannels ?? [],
613
613
  [e.confirmationChannels]
614
- ), _e = ee && ue.length === 0;
615
- H(() => {
614
+ ), Oe = se && me.length === 0;
615
+ Y(() => {
616
616
  const h = e.codiceFiscale;
617
617
  if (!n || !S || !h) {
618
- g(Ke);
618
+ g(je);
619
619
  return;
620
620
  }
621
- if (!da.test(h)) {
621
+ if (!ma.test(h)) {
622
622
  g({
623
623
  state: "invalid",
624
624
  hint: k("booking.details.codiceFiscale.invalidFormat")
625
625
  });
626
626
  return;
627
627
  }
628
- g({ state: "pending" }), z.current && clearTimeout(z.current), z.current = setTimeout(() => {
628
+ g({ state: "pending" }), j.current && clearTimeout(j.current), j.current = setTimeout(() => {
629
629
  S(h).then(
630
630
  (_) => g(
631
631
  _.valid ? { state: "valid" } : { state: "invalid", hint: _.hint }
@@ -636,50 +636,50 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
636
636
  hint: k("booking.details.codiceFiscale.unavailable")
637
637
  })
638
638
  );
639
- }, It);
639
+ }, Mt);
640
640
  }, [n, S, e.codiceFiscale, k]);
641
- const ie = r && u === "public";
642
- H(() => {
641
+ const re = r && u === "public";
642
+ Y(() => {
643
643
  const h = e.insuranceNumber;
644
- if (!ie || !f || !h) {
645
- L(Ke);
644
+ if (!re || !f || !h) {
645
+ R(je);
646
646
  return;
647
647
  }
648
- L({ state: "pending" }), ne.current && clearTimeout(ne.current), ne.current = setTimeout(() => {
648
+ R({ state: "pending" }), ie.current && clearTimeout(ie.current), ie.current = setTimeout(() => {
649
649
  f(h).then(
650
- (_) => L(
650
+ (_) => R(
651
651
  _.valid ? { state: "valid" } : { state: "invalid", hint: _.hint }
652
652
  )
653
653
  ).catch(
654
- () => L({
654
+ () => R({
655
655
  state: "invalid",
656
656
  hint: k("booking.details.insuranceNumber.unavailable")
657
657
  })
658
658
  );
659
- }, It);
660
- }, [ie, f, e.insuranceNumber, k]);
661
- const Ne = C(
662
- () => !!(e.email && la.test(e.email)),
659
+ }, Mt);
660
+ }, [re, f, e.insuranceNumber, k]);
661
+ const we = M(
662
+ () => !!(e.email && fa.test(e.email)),
663
663
  [e.email]
664
- ), ve = C(
664
+ ), ye = M(
665
665
  () => !!(e.mobilePhone && e.mobilePhone.length >= 6),
666
666
  [e.mobilePhone]
667
- ), Be = C(() => {
667
+ ), _e = M(() => {
668
668
  var h, _;
669
- return !(!((h = e.firstName) != null && h.trim()) || !((_ = e.lastName) != null && _.trim()) || !Ne || !ve || n && p.state !== "valid" || i && !e.dateOfBirth || ie && T.state !== "valid");
669
+ return !(!((h = e.firstName) != null && h.trim()) || !((_ = e.lastName) != null && _.trim()) || !we || !ye || n && p.state !== "valid" || i && !e.dateOfBirth || re && O.state !== "valid");
670
670
  }, [
671
671
  e.firstName,
672
672
  e.lastName,
673
- Ne,
674
- ve,
673
+ we,
674
+ ye,
675
675
  n,
676
676
  p.state,
677
677
  i,
678
678
  e.dateOfBirth,
679
- ie,
680
- T.state
681
- ]), we = c != null && c.trim() ? c : void 0, re = we !== void 0, Ze = !re || !!e.criticalInformationAccepted, Ce = !!(e.privacyConsent && e.termsConsent && Ze), Xe = !ee || ue.length > 0, Oe = Be && Ce && Xe && !b, pe = (h) => {
682
- if (h.preventDefault(), ae({
679
+ re,
680
+ O.state
681
+ ]), Ce = c != null && c.trim() ? c : void 0, oe = Ce !== void 0, Xe = !oe || !!e.criticalInformationAccepted, Me = !!(e.privacyConsent && e.termsConsent && Xe), Qe = !se || me.length > 0, Be = _e && Me && Qe && !b, fe = (h) => {
682
+ if (h.preventDefault(), ne({
683
683
  firstName: !0,
684
684
  lastName: !0,
685
685
  email: !0,
@@ -687,7 +687,7 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
687
687
  codiceFiscale: !0,
688
688
  dateOfBirth: !0,
689
689
  insuranceNumber: !0
690
- }), !Oe) return;
690
+ }), !Be) return;
691
691
  const _ = {
692
692
  firstName: e.firstName.trim(),
693
693
  lastName: e.lastName.trim(),
@@ -697,7 +697,7 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
697
697
  termsConsent: !0,
698
698
  // Only present when the service carried text to accept — a
699
699
  // reason without it leaves the key out of the payload entirely.
700
- ...re ? { criticalInformationAccepted: !0 } : {},
700
+ ...oe ? { criticalInformationAccepted: !0 } : {},
701
701
  codiceFiscale: e.codiceFiscale,
702
702
  dateOfBirth: e.dateOfBirth,
703
703
  insuranceNumber: e.insuranceNumber,
@@ -706,13 +706,13 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
706
706
  // Only include when the picker was visible; otherwise the single
707
707
  // implicit channel is inferred backend-side from the practice
708
708
  // config.
709
- confirmationChannels: ee ? ue : void 0
709
+ confirmationChannels: se ? me : void 0
710
710
  };
711
711
  a(_);
712
- }, Le = (h, _) => {
713
- const B = _ && /^https?:\/\//i.test(_) ? _ : void 0;
714
- return B ? /* @__PURE__ */ s(
715
- ss,
712
+ }, Pe = (h, _) => {
713
+ const A = _ && /^https?:\/\//i.test(_) ? _ : void 0;
714
+ return A ? /* @__PURE__ */ s(
715
+ os,
716
716
  {
717
717
  i18nKey: h,
718
718
  components: {
@@ -726,7 +726,7 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
726
726
  /* @__PURE__ */ s(
727
727
  "a",
728
728
  {
729
- href: B,
729
+ href: A,
730
730
  target: "_blank",
731
731
  rel: "noopener noreferrer",
732
732
  className: "ds:underline ds:text-[var(--primary)]"
@@ -741,43 +741,43 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
741
741
  "form",
742
742
  {
743
743
  ref: x,
744
- id: A,
744
+ id: T,
745
745
  noValidate: !0,
746
- onSubmit: pe,
746
+ onSubmit: fe,
747
747
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
748
748
  children: [
749
749
  N,
750
750
  /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
751
751
  /* @__PURE__ */ s(
752
- de,
752
+ le,
753
753
  {
754
754
  label: k("booking.details.firstName.label"),
755
755
  required: !0,
756
- error: O.firstName && !((K = e.firstName) != null && K.trim()) ? k("booking.details.firstName.required") : void 0,
756
+ error: L.firstName && !((z = e.firstName) != null && z.trim()) ? k("booking.details.firstName.required") : void 0,
757
757
  children: /* @__PURE__ */ s(
758
- $e,
758
+ ze,
759
759
  {
760
760
  autoComplete: "given-name",
761
761
  value: e.firstName ?? "",
762
- onChange: (h) => R({ firstName: h.target.value }),
763
- onBlur: () => P("firstName")
762
+ onChange: (h) => V({ firstName: h.target.value }),
763
+ onBlur: () => E("firstName")
764
764
  }
765
765
  )
766
766
  }
767
767
  ),
768
768
  /* @__PURE__ */ s(
769
- de,
769
+ le,
770
770
  {
771
771
  label: k("booking.details.lastName.label"),
772
772
  required: !0,
773
- error: O.lastName && !((me = e.lastName) != null && me.trim()) ? k("booking.details.lastName.required") : void 0,
773
+ error: L.lastName && !((ge = e.lastName) != null && ge.trim()) ? k("booking.details.lastName.required") : void 0,
774
774
  children: /* @__PURE__ */ s(
775
- $e,
775
+ ze,
776
776
  {
777
777
  autoComplete: "family-name",
778
778
  value: e.lastName ?? "",
779
- onChange: (h) => R({ lastName: h.target.value }),
780
- onBlur: () => P("lastName")
779
+ onChange: (h) => V({ lastName: h.target.value }),
780
+ onBlur: () => E("lastName")
781
781
  }
782
782
  )
783
783
  }
@@ -785,34 +785,34 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
785
785
  ] }),
786
786
  /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
787
787
  /* @__PURE__ */ s(
788
- de,
788
+ le,
789
789
  {
790
790
  label: k("booking.details.email.label"),
791
791
  required: !0,
792
- error: O.email && !Ne ? k("booking.details.email.invalid") : void 0,
792
+ error: L.email && !we ? k("booking.details.email.invalid") : void 0,
793
793
  children: /* @__PURE__ */ s(
794
- rs,
794
+ us,
795
795
  {
796
796
  value: e.email ?? "",
797
- onChange: (h) => R({ email: h.target.value }),
798
- onBlur: () => P("email")
797
+ onChange: (h) => V({ email: h.target.value }),
798
+ onBlur: () => E("email")
799
799
  }
800
800
  )
801
801
  }
802
802
  ),
803
803
  /* @__PURE__ */ s(
804
- de,
804
+ le,
805
805
  {
806
806
  label: k("booking.details.mobilePhone.label"),
807
807
  required: !0,
808
- error: O.mobilePhone && !ve ? k("booking.details.mobilePhone.invalid") : void 0,
808
+ error: L.mobilePhone && !ye ? k("booking.details.mobilePhone.invalid") : void 0,
809
809
  children: /* @__PURE__ */ s(
810
- os,
810
+ ps,
811
811
  {
812
812
  value: e.mobilePhone ?? "",
813
813
  defaultCountry: w == null ? void 0 : w.toUpperCase(),
814
814
  onChange: (h) => {
815
- R({ mobilePhone: h }), P("mobilePhone");
815
+ V({ mobilePhone: h }), E("mobilePhone");
816
816
  }
817
817
  }
818
818
  )
@@ -821,112 +821,112 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
821
821
  ] }),
822
822
  n || i ? /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
823
823
  n ? /* @__PURE__ */ s(
824
- de,
824
+ le,
825
825
  {
826
826
  label: k("booking.details.codiceFiscale.label"),
827
827
  required: !0,
828
828
  description: p.state === "pending" ? k("booking.details.codiceFiscale.checking") : k("booking.details.codiceFiscale.helper"),
829
- error: O.codiceFiscale && p.state === "invalid" ? p.hint ?? k("booking.details.codiceFiscale.invalid") : void 0,
829
+ error: L.codiceFiscale && p.state === "invalid" ? p.hint ?? k("booking.details.codiceFiscale.invalid") : void 0,
830
830
  children: /* @__PURE__ */ s(
831
- $e,
831
+ ze,
832
832
  {
833
833
  value: e.codiceFiscale ?? "",
834
834
  maxLength: 16,
835
- onChange: (h) => R({
835
+ onChange: (h) => V({
836
836
  codiceFiscale: h.target.value.slice(0, 16).toUpperCase()
837
837
  }),
838
- onBlur: () => P("codiceFiscale")
838
+ onBlur: () => E("codiceFiscale")
839
839
  }
840
840
  )
841
841
  }
842
842
  ) : null,
843
843
  i ? /* @__PURE__ */ s(
844
- de,
844
+ le,
845
845
  {
846
846
  label: k("booking.details.dateOfBirth.label"),
847
847
  required: !0,
848
- error: O.dateOfBirth && !e.dateOfBirth ? k("booking.details.dateOfBirth.required") : void 0,
848
+ error: L.dateOfBirth && !e.dateOfBirth ? k("booking.details.dateOfBirth.required") : void 0,
849
849
  children: /* @__PURE__ */ s(
850
- is,
850
+ cs,
851
851
  {
852
852
  value: e.dateOfBirth ? new Date(e.dateOfBirth) : void 0,
853
853
  onChange: (h) => {
854
- R({
854
+ V({
855
855
  dateOfBirth: h ? h.toISOString().slice(0, 10) : void 0
856
- }), P("dateOfBirth");
856
+ }), E("dateOfBirth");
857
857
  }
858
858
  }
859
859
  )
860
860
  }
861
861
  ) : null
862
862
  ] }) : null,
863
- ie ? /* @__PURE__ */ s(
864
- de,
863
+ re ? /* @__PURE__ */ s(
864
+ le,
865
865
  {
866
866
  label: k("booking.details.insuranceNumber.label"),
867
867
  required: !0,
868
- description: T.state === "pending" ? k("booking.details.insuranceNumber.checking") : void 0,
869
- error: O.insuranceNumber && T.state === "invalid" ? T.hint ?? k("booking.details.insuranceNumber.invalid") : void 0,
868
+ description: O.state === "pending" ? k("booking.details.insuranceNumber.checking") : void 0,
869
+ error: L.insuranceNumber && O.state === "invalid" ? O.hint ?? k("booking.details.insuranceNumber.invalid") : void 0,
870
870
  children: /* @__PURE__ */ s(
871
- $e,
871
+ ze,
872
872
  {
873
873
  value: e.insuranceNumber ?? "",
874
- onChange: (h) => R({ insuranceNumber: h.target.value }),
875
- onBlur: () => P("insuranceNumber")
874
+ onChange: (h) => V({ insuranceNumber: h.target.value }),
875
+ onBlur: () => E("insuranceNumber")
876
876
  }
877
877
  )
878
878
  }
879
879
  ) : null,
880
880
  o ? /* @__PURE__ */ s(
881
- de,
881
+ le,
882
882
  {
883
883
  label: k("booking.details.note.label"),
884
884
  description: k("booking.details.note.helper", {
885
- max: xt
885
+ max: Ct
886
886
  }),
887
887
  children: /* @__PURE__ */ s(
888
- ds,
888
+ ms,
889
889
  {
890
890
  value: e.note ?? "",
891
- maxLength: xt,
891
+ maxLength: Ct,
892
892
  rows: 3,
893
- onChange: (h) => R({ note: h.target.value })
893
+ onChange: (h) => V({ note: h.target.value })
894
894
  }
895
895
  )
896
896
  }
897
897
  ) : null,
898
898
  m ? /* @__PURE__ */ s(
899
- Fe,
899
+ $e,
900
900
  {
901
901
  checked: !!e.returningPatient,
902
- onCheckedChange: (h) => R({ returningPatient: h === !0 }),
902
+ onCheckedChange: (h) => V({ returningPatient: h === !0 }),
903
903
  label: k("booking.details.returningPatient.label")
904
904
  }
905
905
  ) : null,
906
- we !== void 0 ? /* @__PURE__ */ v(
906
+ Ce !== void 0 ? /* @__PURE__ */ v(
907
907
  "div",
908
908
  {
909
909
  "data-component": "booking-critical-information",
910
910
  role: "group",
911
- "aria-labelledby": `${A}-critical-information-heading`,
911
+ "aria-labelledby": `${T}-critical-information-heading`,
912
912
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:bg-[var(--muted)] ds:p-[var(--spacing-sm)]",
913
913
  children: [
914
914
  /* @__PURE__ */ s(
915
915
  "h3",
916
916
  {
917
- id: `${A}-critical-information-heading`,
917
+ id: `${T}-critical-information-heading`,
918
918
  className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0",
919
919
  children: k("booking.details.criticalInformation.heading")
920
920
  }
921
921
  ),
922
- /* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]", children: we }),
922
+ /* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]", children: Ce }),
923
923
  /* @__PURE__ */ s(
924
- Fe,
924
+ $e,
925
925
  {
926
926
  checked: !!e.criticalInformationAccepted,
927
- onCheckedChange: (h) => R({ criticalInformationAccepted: h === !0 }),
927
+ onCheckedChange: (h) => V({ criticalInformationAccepted: h === !0 }),
928
928
  "aria-required": !0,
929
- label: /* @__PURE__ */ v(X, { children: [
929
+ label: /* @__PURE__ */ v(te, { children: [
930
930
  k("booking.details.criticalInformation.accept"),
931
931
  /* @__PURE__ */ s(
932
932
  "span",
@@ -944,12 +944,12 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
944
944
  ) : null,
945
945
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
946
946
  /* @__PURE__ */ s(
947
- Fe,
947
+ $e,
948
948
  {
949
949
  checked: !!e.privacyConsent,
950
- onCheckedChange: (h) => R({ privacyConsent: h === !0 }),
951
- label: /* @__PURE__ */ v(X, { children: [
952
- Le(
950
+ onCheckedChange: (h) => V({ privacyConsent: h === !0 }),
951
+ label: /* @__PURE__ */ v(te, { children: [
952
+ Pe(
953
953
  "booking.details.consent.privacy.label",
954
954
  d
955
955
  ),
@@ -965,12 +965,12 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
965
965
  }
966
966
  ),
967
967
  /* @__PURE__ */ s(
968
- Fe,
968
+ $e,
969
969
  {
970
970
  checked: !!e.termsConsent,
971
- onCheckedChange: (h) => R({ termsConsent: h === !0 }),
972
- label: /* @__PURE__ */ v(X, { children: [
973
- Le(
971
+ onCheckedChange: (h) => V({ termsConsent: h === !0 }),
972
+ label: /* @__PURE__ */ v(te, { children: [
973
+ Pe(
974
974
  "booking.details.consent.terms.label",
975
975
  l
976
976
  ),
@@ -986,39 +986,39 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
986
986
  }
987
987
  )
988
988
  ] }),
989
- ee ? /* @__PURE__ */ s(
989
+ se ? /* @__PURE__ */ s(
990
990
  "div",
991
991
  {
992
992
  "data-component": "booking-confirmation-channels",
993
993
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
994
994
  children: /* @__PURE__ */ s(
995
- ns,
995
+ ls,
996
996
  {
997
997
  label: k("booking.confirmation.heading"),
998
998
  helperText: k("booking.confirmation.helper"),
999
- value: ue,
1000
- onChange: (h) => R({
999
+ value: me,
1000
+ onChange: (h) => V({
1001
1001
  confirmationChannels: h
1002
1002
  }),
1003
1003
  orientation: "vertical",
1004
- options: ce.map((h) => ({
1004
+ options: pe.map((h) => ({
1005
1005
  value: h,
1006
1006
  label: k(`booking.confirmation.channel.${h}`)
1007
1007
  })),
1008
- error: _e ? k("booking.confirmation.atLeastOne") : void 0
1008
+ error: Oe ? k("booking.confirmation.atLeastOne") : void 0
1009
1009
  }
1010
1010
  )
1011
1011
  }
1012
1012
  ) : null,
1013
- y ? /* @__PURE__ */ s(Y, { variant: "error", children: /* @__PURE__ */ s(Y.Description, { children: y }) }) : null,
1013
+ y ? /* @__PURE__ */ s(Q, { variant: "error", children: /* @__PURE__ */ s(Q.Description, { children: y }) }) : null,
1014
1014
  /* @__PURE__ */ s(
1015
- he,
1015
+ be,
1016
1016
  {
1017
1017
  intent: "primary",
1018
1018
  size: "md",
1019
1019
  type: "submit",
1020
- disabled: !Oe,
1021
- startIcon: b ? /* @__PURE__ */ s(ls, { variant: "pulse", size: "sm" }) : void 0,
1020
+ disabled: !Be,
1021
+ startIcon: b ? /* @__PURE__ */ s(fs, { variant: "pulse", size: "sm" }) : void 0,
1022
1022
  children: k("booking.details.submit")
1023
1023
  }
1024
1024
  )
@@ -1027,8 +1027,8 @@ const xt = 500, da = /^[A-Z0-9]{16}$/, la = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, It = 3
1027
1027
  );
1028
1028
  }
1029
1029
  );
1030
- lt.displayName = "BookingDetailsForm";
1031
- const ca = Ue(
1030
+ ut.displayName = "BookingDetailsForm";
1031
+ const ga = Ue(
1032
1032
  "ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)]",
1033
1033
  {
1034
1034
  variants: {
@@ -1056,44 +1056,44 @@ const ca = Ue(
1056
1056
  },
1057
1057
  defaultVariants: { variant: "inline-list", surface: "flat" }
1058
1058
  }
1059
- ), ua = [
1059
+ ), ha = [
1060
1060
  [
1061
1061
  /\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
1062
- kt
1062
+ wt
1063
1063
  ],
1064
- [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, xs],
1065
- [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Hs],
1066
- [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Is],
1067
- [/\b(otorin|udito|orecchi|hearing|ear)/i, Vs],
1068
- [/\b(neuro|brain|cervello)/i, Ls],
1069
- [/\b(pediatr|child|bambin)/i, Ts],
1070
- [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Bs],
1071
- [/\b(lab|analis|test|sang|esami)/i, $s],
1072
- [/\b(farmaco|pharm|pillol|refill)/i, Ks],
1073
- [/\b(chirurg|surg|intervent|operat)/i, qs],
1074
- [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, Ns],
1075
- [/\b(vacc|inject|inie|punto)/i, kt],
1076
- [/\b(derma|skin|pelle)/i, ws],
1077
- [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, Cs],
1078
- [/\b(general|medicin|family|control|check[-\s]?up)/i, Ds]
1064
+ [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, Ms],
1065
+ [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Zs],
1066
+ [/\b(oftalmo|ocul|ophthal|vision|occhi|eye)/i, Ds],
1067
+ [/\b(otorin|udito|orecchi|hearing|ear)/i, js],
1068
+ [/\b(neuro|brain|cervello)/i, Fs],
1069
+ [/\b(pediatr|child|bambin)/i, Ls],
1070
+ [/\b(ortop|ortho|osteo|skeleton|ossa|bone)/i, Es],
1071
+ [/\b(lab|analis|test|sang|esami)/i, Gs],
1072
+ [/\b(farmaco|pharm|pillol|refill)/i, Js],
1073
+ [/\b(chirurg|surg|intervent|operat)/i, Ys],
1074
+ [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, As],
1075
+ [/\b(vacc|inject|inie|punto)/i, wt],
1076
+ [/\b(derma|skin|pelle)/i, Ts],
1077
+ [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, Os],
1078
+ [/\b(general|medicin|family|control|check[-\s]?up)/i, Bs]
1079
1079
  ];
1080
- function pa(e) {
1081
- for (const [t, a] of ua)
1080
+ function va(e) {
1081
+ for (const [t, a] of ha)
1082
1082
  if (t.test(e)) return a;
1083
1083
  return null;
1084
1084
  }
1085
- function ma(e) {
1086
- const t = pa(e.label) ?? Ss;
1085
+ function ba(e) {
1086
+ const t = va(e.label) ?? Cs;
1087
1087
  return /* @__PURE__ */ s(t, { "aria-hidden": "true", className: "ds:size-5" });
1088
1088
  }
1089
- function Ft(e) {
1089
+ function qt(e) {
1090
1090
  var t;
1091
1091
  return (t = e.priceLabel) != null && t.trim() ? e.priceLabel : void 0;
1092
1092
  }
1093
- function fe(e) {
1094
- return qe(e, "yyyy-MM-dd");
1093
+ function ve(e) {
1094
+ return Ge(e, "yyyy-MM-dd");
1095
1095
  }
1096
- const fa = [
1096
+ const ya = [
1097
1097
  "ds:relative ds:flex ds:items-center ds:justify-center",
1098
1098
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
1099
1099
  "ds:rounded-[var(--radius-sm)]",
@@ -1103,7 +1103,7 @@ const fa = [
1103
1103
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
1104
1104
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1105
1105
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
1106
- ].join(" "), ga = Ue(fa, {
1106
+ ].join(" "), ka = Ue(ya, {
1107
1107
  variants: {
1108
1108
  state: {
1109
1109
  available: "ds:cursor-pointer ds:text-[var(--foreground)] ds:hover:bg-[var(--muted)]/30",
@@ -1114,38 +1114,38 @@ const fa = [
1114
1114
  },
1115
1115
  defaultVariants: { state: "unavailable" }
1116
1116
  });
1117
- function ha({
1117
+ function Sa({
1118
1118
  availableDates: e,
1119
1119
  selectedDate: t,
1120
1120
  onSelectDate: a,
1121
1121
  locale: n,
1122
1122
  loading: i
1123
1123
  }) {
1124
- const { t: r } = V(), u = C(() => t ? Te(j(t)) : e.length > 0 ? Te(j(e[0])) : Te(/* @__PURE__ */ new Date()), [t, e]), [o, m] = J(u), [d, l] = J(null), c = C(() => {
1125
- const I = Te(o), y = gs(o), x = I.getDay(), k = y.getDate(), A = [];
1124
+ const { t: r } = $(), u = M(() => t ? Te(G(t)) : e.length > 0 ? Te(G(e[0])) : Te(/* @__PURE__ */ new Date()), [t, e]), [o, m] = Z(u), [d, l] = Z(null), c = M(() => {
1125
+ const I = Te(o), y = ks(o), x = I.getDay(), k = y.getDate(), T = [];
1126
1126
  for (let p = x; p > 0; p -= 1) {
1127
1127
  const g = new Date(I);
1128
- g.setDate(I.getDate() - p), A.push(g);
1128
+ g.setDate(I.getDate() - p), T.push(g);
1129
1129
  }
1130
1130
  for (let p = 0; p < k; p += 1) {
1131
1131
  const g = new Date(I);
1132
- g.setDate(I.getDate() + p), A.push(g);
1132
+ g.setDate(I.getDate() + p), T.push(g);
1133
1133
  }
1134
- for (; A.length < 42; ) {
1135
- const p = A[A.length - 1], g = new Date(p);
1136
- g.setDate(p.getDate() + 1), A.push(g);
1134
+ for (; T.length < 42; ) {
1135
+ const p = T[T.length - 1], g = new Date(p);
1136
+ g.setDate(p.getDate() + 1), T.push(g);
1137
1137
  }
1138
- return A;
1139
- }, [o]), S = C(() => {
1138
+ return T;
1139
+ }, [o]), S = M(() => {
1140
1140
  try {
1141
1141
  return new Intl.DateTimeFormat(n, {
1142
1142
  month: "long",
1143
1143
  year: "numeric"
1144
1144
  }).format(o);
1145
1145
  } catch {
1146
- return qe(o, "MMMM yyyy");
1146
+ return Ge(o, "MMMM yyyy");
1147
1147
  }
1148
- }, [o, n]), f = C(() => {
1148
+ }, [o, n]), f = M(() => {
1149
1149
  const I = new Date(2024, 0, 7);
1150
1150
  return Array.from({ length: 7 }, (y, x) => {
1151
1151
  const k = new Date(I);
@@ -1153,20 +1153,20 @@ function ha({
1153
1153
  try {
1154
1154
  return new Intl.DateTimeFormat(n, { weekday: "short" }).format(k);
1155
1155
  } catch {
1156
- return qe(k, "EEE");
1156
+ return Ge(k, "EEE");
1157
1157
  }
1158
1158
  });
1159
- }, [n]), b = C(() => new Set(e), [e]), N = Q(
1160
- (I) => b.has(fe(I)),
1159
+ }, [n]), b = M(() => new Set(e), [e]), N = X(
1160
+ (I) => b.has(ve(I)),
1161
1161
  [b]
1162
- ), w = C(() => {
1162
+ ), w = M(() => {
1163
1163
  if (d) return d;
1164
- if (t) return j(t);
1164
+ if (t) return G(t);
1165
1165
  const I = c.find(
1166
- (y) => ze(y, o) && N(y)
1166
+ (y) => Ke(y, o) && N(y)
1167
1167
  );
1168
- return I || (c.find((y) => ze(y, o)) ?? null);
1169
- }, [d, t, c, o, N]), D = Q(
1168
+ return I || (c.find((y) => Ke(y, o)) ?? null);
1169
+ }, [d, t, c, o, N]), D = X(
1170
1170
  (I, y) => {
1171
1171
  let x = null;
1172
1172
  switch (I.key) {
@@ -1190,13 +1190,13 @@ function ha({
1190
1190
  break;
1191
1191
  case "Enter":
1192
1192
  case " ": {
1193
- I.preventDefault(), N(y) && a(fe(y));
1193
+ I.preventDefault(), N(y) && a(ve(y));
1194
1194
  return;
1195
1195
  }
1196
1196
  default:
1197
1197
  return;
1198
1198
  }
1199
- x && (I.preventDefault(), ze(x, o) || m(Te(x)), l(x));
1199
+ x && (I.preventDefault(), Ke(x, o) || m(Te(x)), l(x));
1200
1200
  },
1201
1201
  [N, a, o]
1202
1202
  );
@@ -1208,22 +1208,22 @@ function ha({
1208
1208
  "aria-label": r("common.loading"),
1209
1209
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1210
1210
  children: [
1211
- /* @__PURE__ */ s(Ge, { variant: "text", width: "40%" }),
1212
- /* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (I, y) => /* @__PURE__ */ s(Ge, { variant: "rounded", height: "2.5rem" }, `mg-skel-${y}`)) })
1211
+ /* @__PURE__ */ s(He, { variant: "text", width: "40%" }),
1212
+ /* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: 42 }, (I, y) => /* @__PURE__ */ s(He, { variant: "rounded", height: "2.5rem" }, `mg-skel-${y}`)) })
1213
1213
  ]
1214
1214
  }
1215
1215
  ) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1216
1216
  /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1217
1217
  /* @__PURE__ */ s(
1218
- bt,
1218
+ It,
1219
1219
  {
1220
- icon: /* @__PURE__ */ s(vs, {}),
1220
+ icon: /* @__PURE__ */ s(xs, {}),
1221
1221
  "aria-label": r("booking.previousMonth"),
1222
1222
  size: "sm",
1223
1223
  intent: "ghost",
1224
1224
  flipIconInRtl: !0,
1225
1225
  onClick: () => {
1226
- m((I) => Ws(I)), l(null);
1226
+ m((I) => ta(I)), l(null);
1227
1227
  }
1228
1228
  }
1229
1229
  ),
@@ -1236,15 +1236,15 @@ function ha({
1236
1236
  }
1237
1237
  ),
1238
1238
  /* @__PURE__ */ s(
1239
- bt,
1239
+ It,
1240
1240
  {
1241
- icon: /* @__PURE__ */ s(bs, {}),
1241
+ icon: /* @__PURE__ */ s(Is, {}),
1242
1242
  "aria-label": r("booking.nextMonth"),
1243
1243
  size: "sm",
1244
1244
  intent: "ghost",
1245
1245
  flipIconInRtl: !0,
1246
1246
  onClick: () => {
1247
- m((I) => At(I, 1)), l(null);
1247
+ m((I) => Pt(I, 1)), l(null);
1248
1248
  }
1249
1249
  }
1250
1250
  )
@@ -1278,13 +1278,13 @@ function ha({
1278
1278
  role: "row",
1279
1279
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
1280
1280
  children: c.slice(y * 7, y * 7 + 7).map((x, k) => {
1281
- const A = y * 7 + k, p = ze(x, o), g = p && N(x), T = t ? yt(x, j(t)) : !1, L = p ? T ? "selected" : g ? "available" : "unavailable" : "outside", O = w ? yt(w, x) : !1, ae = (() => {
1281
+ const T = y * 7 + k, p = Ke(x, o), g = p && N(x), O = t ? Nt(x, G(t)) : !1, R = p ? O ? "selected" : g ? "available" : "unavailable" : "outside", L = w ? Nt(w, x) : !1, ne = (() => {
1282
1282
  try {
1283
1283
  return new Intl.DateTimeFormat(n, {
1284
1284
  dateStyle: "full"
1285
1285
  }).format(x);
1286
1286
  } catch {
1287
- return qe(x, "PPP");
1287
+ return Ge(x, "PPP");
1288
1288
  }
1289
1289
  })();
1290
1290
  return /* @__PURE__ */ s(
@@ -1292,19 +1292,19 @@ function ha({
1292
1292
  {
1293
1293
  type: "button",
1294
1294
  role: "gridcell",
1295
- "aria-label": ae,
1296
- "aria-selected": T || void 0,
1295
+ "aria-label": ne,
1296
+ "aria-selected": O || void 0,
1297
1297
  "aria-disabled": !g || void 0,
1298
- tabIndex: O ? 0 : -1,
1298
+ tabIndex: L ? 0 : -1,
1299
1299
  disabled: !g,
1300
1300
  onClick: () => {
1301
- g && a(fe(x));
1301
+ g && a(ve(x));
1302
1302
  },
1303
- onKeyDown: (P) => D(P, x),
1304
- className: ga({ state: L }),
1303
+ onKeyDown: (E) => D(E, x),
1304
+ className: ka({ state: R }),
1305
1305
  children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children: x.getDate() })
1306
1306
  },
1307
- `mg-cell-${A}`
1307
+ `mg-cell-${T}`
1308
1308
  );
1309
1309
  })
1310
1310
  },
@@ -1315,7 +1315,7 @@ function ha({
1315
1315
  )
1316
1316
  ] });
1317
1317
  }
1318
- const va = Ue(
1318
+ const xa = Ue(
1319
1319
  [
1320
1320
  "ds:relative ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-md)]",
1321
1321
  "ds:min-h-[var(--min-target-size)]",
@@ -1341,21 +1341,21 @@ const va = Ue(
1341
1341
  defaultVariants: { state: "idle" }
1342
1342
  }
1343
1343
  );
1344
- function ba({
1344
+ function Ia({
1345
1345
  services: e,
1346
1346
  selectedServiceId: t,
1347
1347
  onSelect: a
1348
1348
  }) {
1349
- const { t: n } = V(), i = rt(), [r, u] = J(() => {
1349
+ const { t: n } = $(), i = dt(), [r, u] = Z(() => {
1350
1350
  if (t) {
1351
1351
  const l = e.findIndex((c) => c.id === t);
1352
1352
  if (l >= 0) return l;
1353
1353
  }
1354
1354
  return 0;
1355
- }), o = Z(/* @__PURE__ */ new Map()), m = Q((l) => {
1355
+ }), o = U(/* @__PURE__ */ new Map()), m = X((l) => {
1356
1356
  var c;
1357
1357
  (c = o.current.get(l)) == null || c.focus();
1358
- }, []), d = Q(
1358
+ }, []), d = X(
1359
1359
  (l, c, S) => {
1360
1360
  const f = e.length;
1361
1361
  if (f !== 0)
@@ -1401,13 +1401,13 @@ function ba({
1401
1401
  id: i,
1402
1402
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1403
1403
  children: e.map((l, c) => {
1404
- const S = t === l.id, f = r === c, b = Ft(l), N = b ? n("booking.serviceCardLabelPrice", {
1404
+ const S = t === l.id, f = r === c, b = qt(l), N = b ? n("booking.serviceCardLabelPrice", {
1405
1405
  label: l.label,
1406
1406
  price: b
1407
1407
  }) : n("booking.serviceCardLabel", {
1408
1408
  label: l.label,
1409
1409
  duration: l.durationMin
1410
- }), w = ma(l);
1410
+ }), w = ba(l);
1411
1411
  return /* @__PURE__ */ v(
1412
1412
  "button",
1413
1413
  {
@@ -1422,7 +1422,7 @@ function ba({
1422
1422
  onClick: () => a(l.id),
1423
1423
  onFocus: () => u(c),
1424
1424
  onKeyDown: (D) => d(D, c, l.id),
1425
- className: va({
1425
+ className: xa({
1426
1426
  state: S ? "selected" : "idle"
1427
1427
  }),
1428
1428
  children: [
@@ -1445,7 +1445,7 @@ function ba({
1445
1445
  {
1446
1446
  "aria-hidden": "true",
1447
1447
  className: "ds:inline-flex ds:shrink-0 ds:items-center ds:ms-auto",
1448
- children: /* @__PURE__ */ s(Mt, { variant: "accentSoft", size: "lg", children: b })
1448
+ children: /* @__PURE__ */ s(_t, { variant: "accentSoft", size: "lg", children: b })
1449
1449
  }
1450
1450
  ) : null
1451
1451
  ]
@@ -1456,7 +1456,7 @@ function ba({
1456
1456
  }
1457
1457
  );
1458
1458
  }
1459
- const ya = Ue(
1459
+ const Na = Ue(
1460
1460
  [
1461
1461
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]",
1462
1462
  "ds:min-h-[var(--min-target-size)]",
@@ -1482,16 +1482,16 @@ const ya = Ue(
1482
1482
  defaultVariants: { state: "idle" }
1483
1483
  }
1484
1484
  );
1485
- function ka(e) {
1485
+ function wa(e) {
1486
1486
  const [t] = e.split(":").map((n) => parseInt(n, 10)), a = Number.isFinite(t) ? t : 0;
1487
1487
  return a < 12 ? "morning" : a < 17 ? "afternoon" : "evening";
1488
1488
  }
1489
- const Sa = {
1490
- morning: ks,
1491
- afternoon: Js,
1492
- evening: ys
1489
+ const Ca = {
1490
+ morning: ws,
1491
+ afternoon: Qs,
1492
+ evening: Ns
1493
1493
  };
1494
- function xa({
1494
+ function Ma({
1495
1495
  date: e,
1496
1496
  slots: t,
1497
1497
  selectedSlotKey: a,
@@ -1499,41 +1499,41 @@ function xa({
1499
1499
  loading: i,
1500
1500
  locale: r
1501
1501
  }) {
1502
- const { t: u } = V(), o = C(() => {
1502
+ const { t: u } = $(), o = M(() => {
1503
1503
  try {
1504
1504
  return new Intl.DateTimeFormat(r, {
1505
1505
  weekday: "long",
1506
1506
  day: "numeric",
1507
1507
  month: "long"
1508
- }).format(j(e));
1508
+ }).format(G(e));
1509
1509
  } catch {
1510
1510
  return e;
1511
1511
  }
1512
- }, [e, r]), m = C(() => {
1512
+ }, [e, r]), m = M(() => {
1513
1513
  const c = {
1514
1514
  morning: [],
1515
1515
  afternoon: [],
1516
1516
  evening: []
1517
1517
  };
1518
1518
  for (const S of t)
1519
- c[ka(S.time)].push(S);
1519
+ c[wa(S.time)].push(S);
1520
1520
  return c;
1521
1521
  }, [t]), d = t.filter((c) => c.available).length, l = ["morning", "afternoon", "evening"];
1522
1522
  return i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1523
- /* @__PURE__ */ s(Ge, { variant: "text", width: "60%" }),
1523
+ /* @__PURE__ */ s(He, { variant: "text", width: "60%" }),
1524
1524
  [0, 1].map((c) => /* @__PURE__ */ s(
1525
1525
  "div",
1526
1526
  {
1527
1527
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
1528
- children: [0, 1, 2].map((S) => /* @__PURE__ */ s(Ge, { variant: "rounded", height: "44px" }, S))
1528
+ children: [0, 1, 2].map((S) => /* @__PURE__ */ s(He, { variant: "rounded", height: "44px" }, S))
1529
1529
  },
1530
1530
  c
1531
1531
  ))
1532
- ] }) : d === 0 ? /* @__PURE__ */ s(Dt, { variant: "no-results", title: u("booking.noSlotsForDate") }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1532
+ ] }) : d === 0 ? /* @__PURE__ */ s(Bt, { variant: "no-results", title: u("booking.noSlotsForDate") }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1533
1533
  /* @__PURE__ */ v("div", { className: "ds:flex ds:items-baseline ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1534
1534
  /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1535
1535
  /* @__PURE__ */ s(
1536
- Rs,
1536
+ zs,
1537
1537
  {
1538
1538
  "aria-hidden": "true",
1539
1539
  className: "ds:size-4 ds:text-[color:var(--accent)]"
@@ -1546,7 +1546,7 @@ function xa({
1546
1546
  l.map((c) => {
1547
1547
  const S = m[c];
1548
1548
  if (S.length === 0) return null;
1549
- const f = Sa[c];
1549
+ const f = Ca[c];
1550
1550
  return /* @__PURE__ */ v(
1551
1551
  "div",
1552
1552
  {
@@ -1575,7 +1575,7 @@ function xa({
1575
1575
  time: b.time
1576
1576
  }),
1577
1577
  onClick: () => b.available && n(b),
1578
- className: ya({ state: w }),
1578
+ className: Na({ state: w }),
1579
1579
  children: b.time
1580
1580
  },
1581
1581
  b.key
@@ -1590,8 +1590,8 @@ function xa({
1590
1590
  })
1591
1591
  ] });
1592
1592
  }
1593
- const je = 4;
1594
- function Ia({
1593
+ const qe = 4;
1594
+ function Da({
1595
1595
  availableDates: e,
1596
1596
  availableSlots: t,
1597
1597
  value: a,
@@ -1603,67 +1603,67 @@ function Ia({
1603
1603
  locale: m,
1604
1604
  agentIdBase: d
1605
1605
  }) {
1606
- const l = C(() => ke(/* @__PURE__ */ new Date()), []), [c, S] = J(() => {
1606
+ const l = M(() => Se(/* @__PURE__ */ new Date()), []), [c, S] = Z(() => {
1607
1607
  if (a.date) {
1608
- const g = ke(j(a.date));
1609
- if (!Se(l, g)) return g;
1608
+ const g = Se(G(a.date));
1609
+ if (!xe(l, g)) return g;
1610
1610
  }
1611
1611
  if (e.length > 0) {
1612
- const g = ke(j(e[0]));
1613
- if (Se(g, l)) return g;
1612
+ const g = Se(G(e[0]));
1613
+ if (xe(g, l)) return g;
1614
1614
  }
1615
1615
  return l;
1616
- }), f = C(
1617
- () => at(c, je - 1),
1616
+ }), f = M(
1617
+ () => nt(c, qe - 1),
1618
1618
  [c]
1619
- ), b = C(() => Array.from({ length: je }, (g, T) => {
1620
- const L = at(c, T), O = fe(L), P = (t[O] ?? []).map((z) => ({
1621
- id: z.key,
1619
+ ), b = M(() => Array.from({ length: qe }, (g, O) => {
1620
+ const R = nt(c, O), L = ve(R), E = (t[L] ?? []).map((j) => ({
1621
+ id: j.key,
1622
1622
  // SlotGrid formats `start` as a time via Intl.DateTimeFormat —
1623
1623
  // compose a full ISO from the column's date + the slot's HH:mm
1624
1624
  // so the locale-formatter has a real timestamp to work with.
1625
- start: `${O}T${z.time}:00`,
1626
- available: z.available
1625
+ start: `${L}T${j.time}:00`,
1626
+ available: j.available
1627
1627
  }));
1628
- return { date: O, slots: P };
1629
- }), [c, t]), N = Se(c, l), w = !0, D = Q(() => {
1628
+ return { date: L, slots: E };
1629
+ }), [c, t]), N = xe(c, l), w = !0, D = X(() => {
1630
1630
  S((g) => {
1631
- const T = hs(g, je);
1632
- return Se(l, T) ? l : T;
1631
+ const O = Ss(g, qe);
1632
+ return xe(l, O) ? l : O;
1633
1633
  });
1634
- }, [l]), I = Q(() => {
1635
- S((g) => at(g, je));
1634
+ }, [l]), I = X(() => {
1635
+ S((g) => nt(g, qe));
1636
1636
  }, []);
1637
- H(() => {
1637
+ Y(() => {
1638
1638
  if (e.length === 0) return;
1639
- const g = ke(j(e[0]));
1640
- !Se(g, l) || e.some((L) => {
1641
- const O = ke(j(L));
1642
- return !Se(O, f) && !fs(O, c);
1639
+ const g = Se(G(e[0]));
1640
+ !xe(g, l) || e.some((R) => {
1641
+ const L = Se(G(R));
1642
+ return !xe(L, f) && !ys(L, c);
1643
1643
  }) || S(g);
1644
- }, [e]), H(() => {
1645
- r == null || r(fe(c), fe(f));
1644
+ }, [e]), Y(() => {
1645
+ r == null || r(ve(c), ve(f));
1646
1646
  }, [c, f, r]);
1647
- const y = Q(
1648
- (g, T) => {
1649
- const L = typeof T.date == "string" ? T.date : fe(T.date);
1647
+ const y = X(
1648
+ (g, O) => {
1649
+ const R = typeof O.date == "string" ? O.date : ve(O.date);
1650
1650
  n({
1651
- ...Et(Ye(a, L), g.id)
1652
- }), i == null || i(L);
1651
+ ...Kt(We(a, R), g.id)
1652
+ }), i == null || i(R);
1653
1653
  },
1654
1654
  [n, i, a]
1655
- ), x = u || o ? "loading" : "default", k = b.some((g) => g.slots.length > 0), A = e[0];
1655
+ ), x = u || o ? "loading" : "default", k = b.some((g) => g.slots.length > 0), T = e[0];
1656
1656
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1657
- !k && !!A ? /* @__PURE__ */ s(
1658
- ct,
1657
+ !k && !!T ? /* @__PURE__ */ s(
1658
+ pt,
1659
1659
  {
1660
- nextAvailableDate: A,
1661
- onJump: () => S(ke(j(A))),
1660
+ nextAvailableDate: T,
1661
+ onJump: () => S(Se(G(T))),
1662
1662
  locale: m
1663
1663
  }
1664
1664
  ) : null,
1665
1665
  /* @__PURE__ */ s(
1666
- ps,
1666
+ vs,
1667
1667
  {
1668
1668
  id: d ? `${d}-slots` : void 0,
1669
1669
  days: b,
@@ -1680,7 +1680,7 @@ function Ia({
1680
1680
  )
1681
1681
  ] });
1682
1682
  }
1683
- function $t(e) {
1683
+ function Gt(e) {
1684
1684
  const {
1685
1685
  inputs: t,
1686
1686
  value: a,
@@ -1694,7 +1694,7 @@ function $t(e) {
1694
1694
  agentIdBase: l
1695
1695
  } = e;
1696
1696
  return d === "four-day-grid" ? /* @__PURE__ */ s(
1697
- Ia,
1697
+ Da,
1698
1698
  {
1699
1699
  availableDates: t.availableDates,
1700
1700
  availableSlots: t.availableSlots,
@@ -1708,41 +1708,41 @@ function $t(e) {
1708
1708
  agentIdBase: l
1709
1709
  }
1710
1710
  ) : /* @__PURE__ */ s(
1711
- ha,
1711
+ Sa,
1712
1712
  {
1713
1713
  availableDates: t.availableDates,
1714
1714
  selectedDate: a.date,
1715
1715
  onSelectDate: (c) => {
1716
- n(Ye(a, c)), i == null || i(c);
1716
+ n(We(a, c)), i == null || i(c);
1717
1717
  },
1718
1718
  locale: m,
1719
1719
  loading: u ?? o
1720
1720
  }
1721
1721
  );
1722
1722
  }
1723
- function zt(e) {
1723
+ function Ht(e) {
1724
1724
  const { inputs: t, value: a, onChange: n, loadingSlots: i, locale: r, datePickerStyle: u } = e;
1725
1725
  return u === "four-day-grid" || !a.date ? null : /* @__PURE__ */ s(
1726
- xa,
1726
+ Ma,
1727
1727
  {
1728
1728
  date: a.date,
1729
1729
  slots: t.availableSlots[a.date] ?? [],
1730
1730
  selectedSlotKey: a.slotKey,
1731
- onSelect: (o) => n(Et(a, o.key)),
1731
+ onSelect: (o) => n(Kt(a, o.key)),
1732
1732
  loading: i,
1733
1733
  locale: r
1734
1734
  }
1735
1735
  );
1736
1736
  }
1737
- function Kt({ value: e, onChange: t }) {
1738
- const { t: a } = V(), n = [
1737
+ function Jt({ value: e, onChange: t }) {
1738
+ const { t: a } = $(), n = [
1739
1739
  { value: "private", label: a("booking.insurance.private") },
1740
1740
  { value: "public", label: a("booking.insurance.public") }
1741
1741
  ];
1742
1742
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1743
1743
  /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: a("booking.insurance.heading") }),
1744
1744
  /* @__PURE__ */ s(
1745
- Je,
1745
+ Ye,
1746
1746
  {
1747
1747
  options: n,
1748
1748
  value: e ?? "",
@@ -1755,7 +1755,7 @@ function Kt({ value: e, onChange: t }) {
1755
1755
  )
1756
1756
  ] });
1757
1757
  }
1758
- function jt({
1758
+ function Ut({
1759
1759
  specialties: e,
1760
1760
  value: t,
1761
1761
  valueIds: a,
@@ -1763,14 +1763,14 @@ function jt({
1763
1763
  onChangeIds: i,
1764
1764
  pickerStyle: r = "select"
1765
1765
  }) {
1766
- const { t: u } = V(), o = e.map((d) => ({
1766
+ const { t: u } = $(), o = e.map((d) => ({
1767
1767
  value: d.id,
1768
1768
  label: d.label
1769
1769
  })), m = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.specialty.heading") });
1770
1770
  return r === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1771
1771
  m,
1772
1772
  /* @__PURE__ */ s(
1773
- dt,
1773
+ ct,
1774
1774
  {
1775
1775
  options: o,
1776
1776
  value: a ?? [],
@@ -1783,7 +1783,7 @@ function jt({
1783
1783
  ] }) : r === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1784
1784
  m,
1785
1785
  /* @__PURE__ */ s(
1786
- ot,
1786
+ lt,
1787
1787
  {
1788
1788
  options: o,
1789
1789
  value: t ?? "",
@@ -1796,7 +1796,7 @@ function jt({
1796
1796
  ] }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1797
1797
  m,
1798
1798
  /* @__PURE__ */ s(
1799
- Je,
1799
+ Ye,
1800
1800
  {
1801
1801
  options: o,
1802
1802
  value: t ?? "",
@@ -1807,7 +1807,7 @@ function jt({
1807
1807
  )
1808
1808
  ] });
1809
1809
  }
1810
- function qt({
1810
+ function Yt({
1811
1811
  services: e,
1812
1812
  value: t,
1813
1813
  valueIds: a,
@@ -1816,12 +1816,12 @@ function qt({
1816
1816
  pickerStyle: r,
1817
1817
  compact: u
1818
1818
  }) {
1819
- const { t: o } = V(), m = r ?? (u ? "select" : "cards"), d = e.map((c) => {
1820
- const S = Ft(c);
1819
+ const { t: o } = $(), m = r ?? (u ? "select" : "cards"), d = e.map((c) => {
1820
+ const S = qt(c);
1821
1821
  return S ? {
1822
1822
  value: c.id,
1823
1823
  label: c.label,
1824
- endContent: /* @__PURE__ */ s(Mt, { variant: "accentSoft", size: "lg", children: S })
1824
+ endContent: /* @__PURE__ */ s(_t, { variant: "accentSoft", size: "lg", children: S })
1825
1825
  } : {
1826
1826
  value: c.id,
1827
1827
  label: `${c.label} · ${o("booking.serviceSummary", {
@@ -1832,7 +1832,7 @@ function qt({
1832
1832
  return m === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1833
1833
  l,
1834
1834
  /* @__PURE__ */ s(
1835
- dt,
1835
+ ct,
1836
1836
  {
1837
1837
  options: d,
1838
1838
  value: a ?? [],
@@ -1845,7 +1845,7 @@ function qt({
1845
1845
  ] }) : m === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1846
1846
  l,
1847
1847
  /* @__PURE__ */ s(
1848
- ot,
1848
+ lt,
1849
1849
  {
1850
1850
  options: d,
1851
1851
  value: t ?? "",
@@ -1858,7 +1858,7 @@ function qt({
1858
1858
  ] }) : m === "select" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1859
1859
  l,
1860
1860
  /* @__PURE__ */ s(
1861
- Je,
1861
+ Ye,
1862
1862
  {
1863
1863
  options: d,
1864
1864
  value: t ?? "",
@@ -1870,7 +1870,7 @@ function qt({
1870
1870
  ] }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1871
1871
  l,
1872
1872
  /* @__PURE__ */ s(
1873
- ba,
1873
+ Ia,
1874
1874
  {
1875
1875
  services: e,
1876
1876
  selectedServiceId: t,
@@ -1879,7 +1879,7 @@ function qt({
1879
1879
  )
1880
1880
  ] });
1881
1881
  }
1882
- function Gt({
1882
+ function Wt({
1883
1883
  operators: e,
1884
1884
  value: t,
1885
1885
  valueIds: a,
@@ -1887,7 +1887,7 @@ function Gt({
1887
1887
  onChangeIds: i,
1888
1888
  pickerStyle: r = "select"
1889
1889
  }) {
1890
- const { t: u } = V(), o = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.operator.heading") });
1890
+ const { t: u } = $(), o = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: u("booking.operator.heading") });
1891
1891
  if (r === "multi-select" && i) {
1892
1892
  const d = e.map((l) => ({
1893
1893
  value: l.id,
@@ -1896,7 +1896,7 @@ function Gt({
1896
1896
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1897
1897
  o,
1898
1898
  /* @__PURE__ */ s(
1899
- dt,
1899
+ ct,
1900
1900
  {
1901
1901
  options: d,
1902
1902
  value: a ?? [],
@@ -1909,17 +1909,17 @@ function Gt({
1909
1909
  ] });
1910
1910
  }
1911
1911
  const m = [
1912
- { value: q, label: u("booking.operator.all") },
1912
+ { value: H, label: u("booking.operator.all") },
1913
1913
  ...e.map((d) => ({ value: d.id, label: d.name }))
1914
1914
  ];
1915
1915
  return r === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1916
1916
  o,
1917
1917
  /* @__PURE__ */ s(
1918
- ot,
1918
+ lt,
1919
1919
  {
1920
1920
  options: m,
1921
- value: t ?? q,
1922
- onValueChange: (d) => n(d === "" ? q : d),
1921
+ value: t ?? H,
1922
+ onValueChange: (d) => n(d === "" ? H : d),
1923
1923
  placeholder: u("booking.operator.placeholder"),
1924
1924
  "aria-label": u("booking.operator.heading"),
1925
1925
  clearable: !0
@@ -1928,10 +1928,10 @@ function Gt({
1928
1928
  ] }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1929
1929
  o,
1930
1930
  /* @__PURE__ */ s(
1931
- Je,
1931
+ Ye,
1932
1932
  {
1933
1933
  options: m,
1934
- value: t ?? q,
1934
+ value: t ?? H,
1935
1935
  onValueChange: (d) => n(d),
1936
1936
  placeholder: u("booking.operator.placeholder"),
1937
1937
  "aria-label": u("booking.operator.heading")
@@ -1939,35 +1939,35 @@ function Gt({
1939
1939
  )
1940
1940
  ] });
1941
1941
  }
1942
- function Ht({
1942
+ function Zt({
1943
1943
  customSlot: e
1944
1944
  }) {
1945
- const { t } = V();
1946
- return e ? /* @__PURE__ */ s(X, { children: e }) : /* @__PURE__ */ v(Y, { variant: "warning", children: [
1947
- /* @__PURE__ */ s(Y.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1948
- /* @__PURE__ */ s(Y.Description, { children: t("booking.onboardingIncomplete.description") })
1945
+ const { t } = $();
1946
+ return e ? /* @__PURE__ */ s(te, { children: e }) : /* @__PURE__ */ v(Q, { variant: "warning", children: [
1947
+ /* @__PURE__ */ s(Q.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
1948
+ /* @__PURE__ */ s(Q.Description, { children: t("booking.onboardingIncomplete.description") })
1949
1949
  ] });
1950
1950
  }
1951
- function ct({
1951
+ function pt({
1952
1952
  nextAvailableDate: e,
1953
1953
  onJump: t,
1954
1954
  locale: a
1955
1955
  }) {
1956
- const { t: n } = V(), i = C(() => {
1956
+ const { t: n } = $(), i = M(() => {
1957
1957
  try {
1958
1958
  return new Intl.DateTimeFormat(a, { dateStyle: "long" }).format(
1959
- j(e)
1959
+ G(e)
1960
1960
  );
1961
1961
  } catch {
1962
1962
  return e;
1963
1963
  }
1964
1964
  }, [e, a]);
1965
- return /* @__PURE__ */ v(Y, { variant: "info", children: [
1966
- /* @__PURE__ */ s(Y.Description, { children: n("booking.nextAvailable.description", { date: i }) }),
1967
- /* @__PURE__ */ s(Y.Action, { children: /* @__PURE__ */ s(he, { intent: "secondary", size: "sm", onClick: t, children: n("booking.nextAvailable.cta") }) })
1965
+ return /* @__PURE__ */ v(Q, { variant: "info", children: [
1966
+ /* @__PURE__ */ s(Q.Description, { children: n("booking.nextAvailable.description", { date: i }) }),
1967
+ /* @__PURE__ */ s(Q.Action, { children: /* @__PURE__ */ s(be, { intent: "secondary", size: "sm", onClick: t, children: n("booking.nextAvailable.cta") }) })
1968
1968
  ] });
1969
1969
  }
1970
- function Na({
1970
+ function Aa({
1971
1971
  snapshot: e,
1972
1972
  operators: t,
1973
1973
  specialties: a,
@@ -1978,23 +1978,23 @@ function Na({
1978
1978
  onReset: o,
1979
1979
  onModify: m
1980
1980
  }) {
1981
- const { t: d } = V(), c = (e.details.confirmationChannels ?? ["email"]).map(
1981
+ const { t: d } = $(), c = (e.details.confirmationChannels ?? ["email"]).map(
1982
1982
  (D) => d(`booking.confirmation.channel.${D}`)
1983
1983
  ), S = r === "demo" ? d("booking.success.descriptionDemo") : c.length > 1 ? d("booking.success.descriptionMultiple", {
1984
1984
  channels: c.join(" · ")
1985
- }) : d("booking.success.descriptionSingle", { channel: c[0] }), f = C(() => {
1985
+ }) : d("booking.success.descriptionSingle", { channel: c[0] }), f = M(() => {
1986
1986
  if (e.date)
1987
1987
  try {
1988
1988
  return new Intl.DateTimeFormat(i, {
1989
1989
  weekday: "long",
1990
1990
  day: "numeric",
1991
1991
  month: "long"
1992
- }).format(j(e.date));
1992
+ }).format(G(e.date));
1993
1993
  } catch {
1994
1994
  return e.date;
1995
1995
  }
1996
- }, [e.date, i]), b = C(() => {
1997
- const I = (e.operatorIds && e.operatorIds.length > 0 ? e.operatorIds : e.operatorId ? [e.operatorId] : []).filter((y) => y !== q).map((y) => {
1996
+ }, [e.date, i]), b = M(() => {
1997
+ const I = (e.operatorIds && e.operatorIds.length > 0 ? e.operatorIds : e.operatorId ? [e.operatorId] : []).filter((y) => y !== H).map((y) => {
1998
1998
  var x;
1999
1999
  return (x = t.find((k) => k.id === y)) == null ? void 0 : x.name;
2000
2000
  }).filter((y) => y !== void 0);
@@ -2014,42 +2014,42 @@ function Na({
2014
2014
  "data-component": "booking-success",
2015
2015
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
2016
2016
  children: [
2017
- /* @__PURE__ */ v(Y, { variant: "success", children: [
2018
- /* @__PURE__ */ s(Y.Title, { as: "h3", children: d("booking.success.heading") }),
2019
- /* @__PURE__ */ s(Y.Description, { children: S })
2017
+ /* @__PURE__ */ v(Q, { variant: "success", children: [
2018
+ /* @__PURE__ */ s(Q.Title, { as: "h3", children: d("booking.success.heading") }),
2019
+ /* @__PURE__ */ s(Q.Description, { children: S })
2020
2020
  ] }),
2021
2021
  /* @__PURE__ */ s("div", { className: "ds:rounded-[var(--radius-md)] ds:bg-[var(--secondary)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ v("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: [
2022
- N ? /* @__PURE__ */ v(X, { children: [
2022
+ N ? /* @__PURE__ */ v(te, { children: [
2023
2023
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summarySpecialty") }),
2024
2024
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N.label })
2025
2025
  ] }) : null,
2026
- w ? /* @__PURE__ */ v(X, { children: [
2026
+ w ? /* @__PURE__ */ v(te, { children: [
2027
2027
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryService") }),
2028
2028
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: w.label })
2029
2029
  ] }) : null,
2030
- f ? /* @__PURE__ */ v(X, { children: [
2030
+ f ? /* @__PURE__ */ v(te, { children: [
2031
2031
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryDate") }),
2032
2032
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: f })
2033
2033
  ] }) : null,
2034
2034
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryTime") }),
2035
2035
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: e.slot.time }),
2036
- b ? /* @__PURE__ */ v(X, { children: [
2036
+ b ? /* @__PURE__ */ v(te, { children: [
2037
2037
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: d("booking.success.summaryProvider") }),
2038
2038
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: b })
2039
2039
  ] }) : null
2040
2040
  ] }) }),
2041
2041
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
2042
- /* @__PURE__ */ s(he, { intent: "secondary", size: "md", onClick: o, children: d("booking.success.bookAnother") }),
2043
- u ? /* @__PURE__ */ s(he, { intent: "ghost", size: "md", onClick: m, children: d("booking.success.modifyBooking") }) : null
2042
+ /* @__PURE__ */ s(be, { intent: "secondary", size: "md", onClick: o, children: d("booking.success.bookAnother") }),
2043
+ u ? /* @__PURE__ */ s(be, { intent: "ghost", size: "md", onClick: m, children: d("booking.success.modifyBooking") }) : null
2044
2044
  ] })
2045
2045
  ]
2046
2046
  }
2047
2047
  );
2048
2048
  }
2049
- function Ut({ customSlot: e }) {
2050
- const { t } = V();
2051
- return e ? /* @__PURE__ */ s(X, { children: e }) : /* @__PURE__ */ s(
2052
- Dt,
2049
+ function Xt({ customSlot: e }) {
2050
+ const { t } = $();
2051
+ return e ? /* @__PURE__ */ s(te, { children: e }) : /* @__PURE__ */ s(
2052
+ Bt,
2053
2053
  {
2054
2054
  variant: "no-results",
2055
2055
  title: t("booking.emptyServices.title"),
@@ -2057,14 +2057,14 @@ function Ut({ customSlot: e }) {
2057
2057
  }
2058
2058
  );
2059
2059
  }
2060
- const Jt = "data-booking-step-active", wa = `[${Jt}]`, Nt = [
2060
+ const Qt = "data-booking-step-active", Ta = `[${Qt}]`, Dt = [
2061
2061
  "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
2062
2062
  "ds:focus-visible:outline-solid",
2063
2063
  "ds:focus-visible:outline-[var(--ring)]",
2064
2064
  "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
2065
2065
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
2066
2066
  ].join(" ");
2067
- function E({
2067
+ function F({
2068
2068
  step: e,
2069
2069
  active: t,
2070
2070
  className: a,
@@ -2076,17 +2076,17 @@ function E({
2076
2076
  {
2077
2077
  id: n,
2078
2078
  "data-booking-step": String(e),
2079
- ...t ? { [Jt]: "" } : null,
2079
+ ...t ? { [Qt]: "" } : null,
2080
2080
  tabIndex: -1,
2081
- className: a ? `${a} ${Nt}` : Nt,
2081
+ className: a ? `${a} ${Dt}` : Dt,
2082
2082
  children: i
2083
2083
  }
2084
2084
  );
2085
2085
  }
2086
- function ut(e, t) {
2086
+ function mt(e, t) {
2087
2087
  return t === "four-day-grid" ? e.filter((a) => a !== 6) : e;
2088
2088
  }
2089
- function Ca(e) {
2089
+ function Oa(e) {
2090
2090
  const {
2091
2091
  cascade: t,
2092
2092
  inputs: a,
@@ -2108,67 +2108,67 @@ function Ca(e) {
2108
2108
  detailsProps: I,
2109
2109
  agentIdBase: y,
2110
2110
  activeStep: x
2111
- } = e, { t: k } = V(), A = xe(x, S), p = (g, T) => ({
2111
+ } = e, { t: k } = $(), T = Ie(x, S), p = (g, O) => ({
2112
2112
  step: g,
2113
- active: g === A,
2114
- className: T
2113
+ active: g === T,
2114
+ className: O
2115
2115
  });
2116
2116
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2117
- t.gates.insurance ? /* @__PURE__ */ s(E, { ...p(1), children: /* @__PURE__ */ s(
2118
- Kt,
2117
+ t.gates.insurance ? /* @__PURE__ */ s(F, { ...p(1), children: /* @__PURE__ */ s(
2118
+ Jt,
2119
2119
  {
2120
2120
  value: n.insuranceType,
2121
- onChange: (g) => i(Tt(n, g))
2121
+ onChange: (g) => i(Lt(n, g))
2122
2122
  }
2123
2123
  ) }) : null,
2124
- t.gates.specialty ? /* @__PURE__ */ s(E, { ...p(2), children: /* @__PURE__ */ s(
2125
- jt,
2124
+ t.gates.specialty ? /* @__PURE__ */ s(F, { ...p(2), children: /* @__PURE__ */ s(
2125
+ Ut,
2126
2126
  {
2127
2127
  specialties: t.filtered.specialties,
2128
2128
  value: n.specialtyId,
2129
2129
  valueIds: n.specialtyIds,
2130
- onChange: (g) => i(_t(n, g)),
2131
- onChangeIds: (g) => i(Bt(n, g)),
2130
+ onChange: (g) => i(Rt(n, g)),
2131
+ onChangeIds: (g) => i(Et(n, g)),
2132
2132
  pickerStyle: f
2133
2133
  }
2134
2134
  ) }) : null,
2135
- t.gates.service ? /* @__PURE__ */ s(E, { ...p(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ s(Ut, { customSlot: u }) : /* @__PURE__ */ s(
2136
- qt,
2135
+ t.gates.service ? /* @__PURE__ */ s(F, { ...p(3), children: t.filtered.services.length === 0 ? /* @__PURE__ */ s(Xt, { customSlot: u }) : /* @__PURE__ */ s(
2136
+ Yt,
2137
2137
  {
2138
2138
  services: t.filtered.services,
2139
2139
  value: n.serviceId,
2140
2140
  valueIds: n.serviceIds,
2141
- onChange: (g) => i(Ot(n, g)),
2142
- onChangeIds: (g) => i(Lt(n, g)),
2141
+ onChange: (g) => i(Vt(n, g)),
2142
+ onChangeIds: (g) => i(Ft(n, g)),
2143
2143
  pickerStyle: b
2144
2144
  }
2145
2145
  ) }) : null,
2146
- t.gates.onboardingIncomplete ? /* @__PURE__ */ s(Ht, { customSlot: o }) : null,
2147
- t.gates.operator ? /* @__PURE__ */ s(E, { ...p(4), children: /* @__PURE__ */ s(
2148
- Gt,
2146
+ t.gates.onboardingIncomplete ? /* @__PURE__ */ s(Zt, { customSlot: o }) : null,
2147
+ t.gates.operator ? /* @__PURE__ */ s(F, { ...p(4), children: /* @__PURE__ */ s(
2148
+ Wt,
2149
2149
  {
2150
2150
  operators: t.filtered.operators,
2151
2151
  value: n.operatorId,
2152
2152
  valueIds: n.operatorIds,
2153
- onChange: (g) => i(Pt(n, g)),
2154
- onChangeIds: (g) => i(Rt(n, g)),
2153
+ onChange: (g) => i($t(n, g)),
2154
+ onChangeIds: (g) => i(zt(n, g)),
2155
2155
  pickerStyle: N
2156
2156
  }
2157
2157
  ) }) : null,
2158
2158
  t.gates.date ? /* @__PURE__ */ v(
2159
- E,
2159
+ F,
2160
2160
  {
2161
2161
  ...p(5, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
2162
2162
  children: [
2163
2163
  /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: k("booking.date.heading") }),
2164
2164
  a.availableDates.length === 0 && a.nextAvailableDate ? /* @__PURE__ */ s(
2165
- ct,
2165
+ pt,
2166
2166
  {
2167
2167
  nextAvailableDate: a.nextAvailableDate,
2168
- onJump: () => i(Ye(n, a.nextAvailableDate)),
2168
+ onJump: () => i(We(n, a.nextAvailableDate)),
2169
2169
  locale: D
2170
2170
  }
2171
- ) : $t({
2171
+ ) : Gt({
2172
2172
  inputs: a,
2173
2173
  value: n,
2174
2174
  onChange: i,
@@ -2184,12 +2184,12 @@ function Ca(e) {
2184
2184
  }
2185
2185
  ) : null,
2186
2186
  t.gates.slot && n.date && S === "month-calendar" ? /* @__PURE__ */ v(
2187
- E,
2187
+ F,
2188
2188
  {
2189
2189
  ...p(6, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
2190
2190
  children: [
2191
2191
  /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: k("booking.slot.heading") }),
2192
- zt({
2192
+ Ht({
2193
2193
  inputs: a,
2194
2194
  value: n,
2195
2195
  onChange: i,
@@ -2200,8 +2200,8 @@ function Ca(e) {
2200
2200
  ]
2201
2201
  }
2202
2202
  ) : null,
2203
- t.gates.details && t.selectedSlot ? /* @__PURE__ */ s(E, { ...p(7), children: /* @__PURE__ */ s(
2204
- lt,
2203
+ t.gates.details && t.selectedSlot ? /* @__PURE__ */ s(F, { ...p(7), children: /* @__PURE__ */ s(
2204
+ ut,
2205
2205
  {
2206
2206
  ...I,
2207
2207
  value: n.details ?? {},
@@ -2213,7 +2213,7 @@ function Ca(e) {
2213
2213
  ) }) : null
2214
2214
  ] });
2215
2215
  }
2216
- function U(e, t, a = {}) {
2216
+ function W(e, t, a = {}) {
2217
2217
  const {
2218
2218
  cascade: n,
2219
2219
  inputs: i,
@@ -2234,63 +2234,63 @@ function U(e, t, a = {}) {
2234
2234
  locale: y,
2235
2235
  detailsProps: x,
2236
2236
  policy: k,
2237
- agentIdBase: A
2237
+ agentIdBase: T
2238
2238
  } = t;
2239
2239
  switch (e) {
2240
2240
  case 1:
2241
2241
  return /* @__PURE__ */ s(
2242
- Kt,
2242
+ Jt,
2243
2243
  {
2244
2244
  value: r.insuranceType,
2245
- onChange: (p) => u(Tt(r, p))
2245
+ onChange: (p) => u(Lt(r, p))
2246
2246
  }
2247
2247
  );
2248
2248
  case 2:
2249
2249
  return /* @__PURE__ */ s(
2250
- jt,
2250
+ Ut,
2251
2251
  {
2252
2252
  specialties: n.filtered.specialties,
2253
2253
  value: r.specialtyId,
2254
2254
  valueIds: r.specialtyIds,
2255
- onChange: (p) => u(_t(r, p)),
2256
- onChangeIds: (p) => u(Bt(r, p)),
2255
+ onChange: (p) => u(Rt(r, p)),
2256
+ onChangeIds: (p) => u(Et(r, p)),
2257
2257
  pickerStyle: N
2258
2258
  }
2259
2259
  );
2260
2260
  case 3:
2261
- return n.filtered.services.length === 0 ? /* @__PURE__ */ s(Ut, { customSlot: m }) : n.gates.onboardingIncomplete ? /* @__PURE__ */ s(Ht, { customSlot: d }) : /* @__PURE__ */ s(
2262
- qt,
2261
+ return n.filtered.services.length === 0 ? /* @__PURE__ */ s(Xt, { customSlot: m }) : n.gates.onboardingIncomplete ? /* @__PURE__ */ s(Zt, { customSlot: d }) : /* @__PURE__ */ s(
2262
+ Yt,
2263
2263
  {
2264
2264
  services: n.filtered.services,
2265
2265
  value: r.serviceId,
2266
2266
  valueIds: r.serviceIds,
2267
- onChange: (p) => u(Ot(r, p)),
2268
- onChangeIds: (p) => u(Lt(r, p)),
2267
+ onChange: (p) => u(Vt(r, p)),
2268
+ onChangeIds: (p) => u(Ft(r, p)),
2269
2269
  pickerStyle: w,
2270
2270
  compact: a.compactService
2271
2271
  }
2272
2272
  );
2273
2273
  case 4:
2274
2274
  return /* @__PURE__ */ s(
2275
- Gt,
2275
+ Wt,
2276
2276
  {
2277
2277
  operators: n.filtered.operators,
2278
2278
  value: r.operatorId,
2279
2279
  valueIds: r.operatorIds,
2280
- onChange: (p) => u(Pt(r, p)),
2281
- onChangeIds: (p) => u(Rt(r, p)),
2280
+ onChange: (p) => u($t(r, p)),
2281
+ onChangeIds: (p) => u(zt(r, p)),
2282
2282
  pickerStyle: D
2283
2283
  }
2284
2284
  );
2285
2285
  case 5:
2286
2286
  return i.availableDates.length === 0 && i.nextAvailableDate ? /* @__PURE__ */ s(
2287
- ct,
2287
+ pt,
2288
2288
  {
2289
2289
  nextAvailableDate: i.nextAvailableDate,
2290
- onJump: () => u(Ye(r, i.nextAvailableDate)),
2290
+ onJump: () => u(We(r, i.nextAvailableDate)),
2291
2291
  locale: y
2292
2292
  }
2293
- ) : $t({
2293
+ ) : Gt({
2294
2294
  inputs: i,
2295
2295
  value: r,
2296
2296
  onChange: u,
@@ -2300,10 +2300,10 @@ function U(e, t, a = {}) {
2300
2300
  loadingSlots: c,
2301
2301
  locale: y,
2302
2302
  datePickerStyle: b,
2303
- agentIdBase: A
2303
+ agentIdBase: T
2304
2304
  });
2305
2305
  case 6:
2306
- return zt({
2306
+ return Ht({
2307
2307
  inputs: i,
2308
2308
  value: r,
2309
2309
  onChange: u,
@@ -2313,7 +2313,7 @@ function U(e, t, a = {}) {
2313
2313
  });
2314
2314
  case 7:
2315
2315
  return n.selectedSlot ? /* @__PURE__ */ s(
2316
- lt,
2316
+ ut,
2317
2317
  {
2318
2318
  ...x,
2319
2319
  value: r.details ?? {},
@@ -2328,9 +2328,9 @@ function U(e, t, a = {}) {
2328
2328
  return null;
2329
2329
  }
2330
2330
  }
2331
- function We() {
2332
- const { t: e } = V();
2333
- return C(
2331
+ function Ze() {
2332
+ const { t: e } = $();
2333
+ return M(
2334
2334
  () => ({
2335
2335
  1: e("booking.insurance.heading"),
2336
2336
  2: e("booking.specialty.heading"),
@@ -2343,19 +2343,19 @@ function We() {
2343
2343
  [e]
2344
2344
  );
2345
2345
  }
2346
- function xe(e, t) {
2346
+ function Ie(e, t) {
2347
2347
  return t === "four-day-grid" && e === 6 ? 5 : e;
2348
2348
  }
2349
- function Ma(e) {
2350
- const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, u = We(), { t: o } = V(), m = o("booking.operator.all"), d = C(
2351
- () => ut(t.visibleSteps, r),
2349
+ function _a(e) {
2350
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, u = Ze(), { t: o } = $(), m = o("booking.operator.all"), d = M(
2351
+ () => mt(t.visibleSteps, r),
2352
2352
  [t.visibleSteps, r]
2353
- ), l = xe(n, r), c = Math.max(0, d.indexOf(l)), S = C(
2353
+ ), l = Ie(n, r), c = Math.max(0, d.indexOf(l)), S = M(
2354
2354
  () => d.map((f) => ({
2355
2355
  label: u[f],
2356
- summary: Yt(f, a, t, m),
2357
- status: Da(f, a, t),
2358
- content: /* @__PURE__ */ s(E, { step: f, active: f === l, children: U(f, e, { compactService: !0 }) })
2356
+ summary: es(f, a, t, m),
2357
+ status: Ba(f, a, t),
2358
+ content: /* @__PURE__ */ s(F, { step: f, active: f === l, children: W(f, e, { compactService: !0 }) })
2359
2359
  })),
2360
2360
  [
2361
2361
  d,
@@ -2368,7 +2368,7 @@ function Ma(e) {
2368
2368
  ]
2369
2369
  );
2370
2370
  return /* @__PURE__ */ s(
2371
- cs,
2371
+ gs,
2372
2372
  {
2373
2373
  activeStep: c,
2374
2374
  steps: S,
@@ -2379,19 +2379,19 @@ function Ma(e) {
2379
2379
  }
2380
2380
  );
2381
2381
  }
2382
- function Da(e, t, a) {
2383
- return ge(e, t) && e < a.currentStep ? "completed" : e <= a.currentStep ? "unlocked" : void 0;
2382
+ function Ba(e, t, a) {
2383
+ return ce(e, t) && e < a.currentStep ? "completed" : e <= a.currentStep ? "unlocked" : void 0;
2384
2384
  }
2385
- function ge(e, t) {
2385
+ function ce(e, t) {
2386
2386
  switch (e) {
2387
2387
  case 1:
2388
2388
  return t.insuranceType !== void 0;
2389
2389
  case 2:
2390
- return se(t).length > 0;
2390
+ return ae(t).length > 0;
2391
2391
  case 3:
2392
- return le(t).length > 0;
2392
+ return ue(t).length > 0;
2393
2393
  case 4:
2394
- return He(t).length > 0;
2394
+ return Je(t).length > 0;
2395
2395
  case 5:
2396
2396
  return t.date !== void 0;
2397
2397
  case 6:
@@ -2400,35 +2400,38 @@ function ge(e, t) {
2400
2400
  return !1;
2401
2401
  }
2402
2402
  }
2403
- function nt(e, t) {
2403
+ function At(e, t) {
2404
+ return e !== 4 ? ce(e, t) : t.operatorIds && t.operatorIds.length > 0 ? !0 : ot(t) !== void 0;
2405
+ }
2406
+ function it(e, t) {
2404
2407
  const a = e.map((n) => {
2405
2408
  var i;
2406
2409
  return (i = t.find((r) => r.id === n)) == null ? void 0 : i.label;
2407
2410
  }).filter((n) => n !== void 0);
2408
2411
  return a.length > 0 ? a.join(", ") : void 0;
2409
2412
  }
2410
- function Yt(e, t, a, n) {
2413
+ function es(e, t, a, n) {
2411
2414
  var i;
2412
- if (ge(e, t))
2415
+ if (ce(e, t))
2413
2416
  switch (e) {
2414
2417
  case 1:
2415
2418
  return t.insuranceType;
2416
2419
  case 2:
2417
- return nt(
2418
- se(t),
2420
+ return it(
2421
+ ae(t),
2419
2422
  a.filtered.specialties
2420
2423
  );
2421
2424
  case 3:
2422
- return nt(le(t), a.filtered.services);
2425
+ return it(ue(t), a.filtered.services);
2423
2426
  case 4: {
2424
- const r = He(t), u = r.filter((m) => m !== q), o = nt(
2427
+ const r = Je(t), u = r.filter((m) => m !== H), o = it(
2425
2428
  u,
2426
2429
  a.filtered.operators.map((m) => ({
2427
2430
  id: m.id,
2428
2431
  label: m.name
2429
2432
  }))
2430
2433
  );
2431
- return o !== void 0 ? o : r.includes(q) ? n : void 0;
2434
+ return o !== void 0 ? o : r.includes(H) ? n : void 0;
2432
2435
  }
2433
2436
  case 5:
2434
2437
  return t.date;
@@ -2438,14 +2441,14 @@ function Yt(e, t, a, n) {
2438
2441
  return;
2439
2442
  }
2440
2443
  }
2441
- function Aa(e) {
2442
- const { cascade: t, value: a, activeStep: n, setActiveStep: i } = e, { t: r } = V(), u = We(), o = r("booking.operator.all"), m = `${rt()}-filter`, d = xe(n, e.datePickerStyle), l = t.visibleSteps.filter(
2444
+ function Pa(e) {
2445
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i } = e, { t: r } = $(), u = Ze(), o = r("booking.operator.all"), m = `${dt()}-filter`, d = Ie(n, e.datePickerStyle), l = t.visibleSteps.filter(
2443
2446
  (f) => f === 1 || f === 2 || f === 3 || f === 4
2444
2447
  ), c = l.some(
2445
- (f) => !ge(f, a)
2448
+ (f) => !ce(f, a)
2446
2449
  ), S = l.some(
2447
2450
  (f) => f === n
2448
- ) ? n : l.find((f) => !ge(f, a));
2451
+ ) ? n : l.find((f) => !ce(f, a));
2449
2452
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2450
2453
  l.length > 0 ? /* @__PURE__ */ s(
2451
2454
  "div",
@@ -2454,19 +2457,19 @@ function Aa(e) {
2454
2457
  "aria-label": r("booking.filtersLabel"),
2455
2458
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
2456
2459
  children: l.map((f) => {
2457
- const b = Yt(
2460
+ const b = es(
2458
2461
  f,
2459
2462
  a,
2460
2463
  t,
2461
2464
  o
2462
- ), N = f === S, w = ge(f, a);
2465
+ ), N = f === S, w = ce(f, a);
2463
2466
  return /* @__PURE__ */ s(
2464
- he,
2467
+ be,
2465
2468
  {
2466
2469
  intent: N ? "primary" : "outline",
2467
2470
  size: "sm",
2468
2471
  endIcon: /* @__PURE__ */ s(
2469
- ms,
2472
+ bs,
2470
2473
  {
2471
2474
  "aria-hidden": "true",
2472
2475
  className: N ? "ds:rotate-180" : void 0
@@ -2478,7 +2481,7 @@ function Aa(e) {
2478
2481
  onClick: () => i(
2479
2482
  w && N ? t.currentStep : f
2480
2483
  ),
2481
- children: b ? /* @__PURE__ */ v(X, { children: [
2484
+ children: b ? /* @__PURE__ */ v(te, { children: [
2482
2485
  u[f],
2483
2486
  ": ",
2484
2487
  b
@@ -2490,12 +2493,12 @@ function Aa(e) {
2490
2493
  }
2491
2494
  ) : null,
2492
2495
  S !== void 0 ? /* @__PURE__ */ s(
2493
- E,
2496
+ F,
2494
2497
  {
2495
2498
  step: S,
2496
2499
  active: S === d,
2497
2500
  id: m,
2498
- children: U(S, e, { compactService: !0 })
2501
+ children: W(S, e, { compactService: !0 })
2499
2502
  }
2500
2503
  ) : null,
2501
2504
  !c && t.gates.date ? (
@@ -2503,32 +2506,32 @@ function Aa(e) {
2503
2506
  // historic 2-col date|slot split collapses to a single column
2504
2507
  // so the picker spans the full width instead of orphaning an
2505
2508
  // empty right cell.
2506
- e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s(E, { step: 5, active: d === 5, children: U(5, e) }) : /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
2509
+ e.datePickerStyle === "four-day-grid" ? /* @__PURE__ */ s(F, { step: 5, active: d === 5, children: W(5, e) }) : /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2", children: [
2507
2510
  /* @__PURE__ */ s(
2508
- E,
2511
+ F,
2509
2512
  {
2510
2513
  step: 5,
2511
2514
  active: d === 5,
2512
2515
  className: "ds:min-w-0",
2513
- children: U(5, e)
2516
+ children: W(5, e)
2514
2517
  }
2515
2518
  ),
2516
2519
  a.date ? /* @__PURE__ */ s(
2517
- E,
2520
+ F,
2518
2521
  {
2519
2522
  step: 6,
2520
2523
  active: d === 6,
2521
2524
  className: "ds:min-w-0",
2522
- children: U(6, e)
2525
+ children: W(6, e)
2523
2526
  }
2524
2527
  ) : /* @__PURE__ */ s("div", { className: "ds:min-w-0" })
2525
2528
  ] })
2526
2529
  ) : null,
2527
- t.gates.details ? /* @__PURE__ */ s(E, { step: 7, active: d === 7, children: U(7, e) }) : null
2530
+ t.gates.details ? /* @__PURE__ */ s(F, { step: 7, active: d === 7, children: W(7, e) }) : null
2528
2531
  ] });
2529
2532
  }
2530
- function Ta(e) {
2531
- const { cascade: t, datePickerStyle: a, activeStep: n } = e, i = xe(n, a), r = t.visibleSteps.filter(
2533
+ function La(e) {
2534
+ const { cascade: t, datePickerStyle: a, activeStep: n } = e, i = Ie(n, a), r = t.visibleSteps.filter(
2532
2535
  (o) => o === 1 || o === 2 || o === 3 || o === 4
2533
2536
  );
2534
2537
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -2537,31 +2540,31 @@ function Ta(e) {
2537
2540
  {
2538
2541
  className: a === "four-day-grid" ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]" : "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:md:grid-cols-2",
2539
2542
  children: [
2540
- /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: r.map((o) => /* @__PURE__ */ s(E, { step: o, active: o === i, children: U(o, e, { compactService: !0 }) }, `fbf-${o}`)) }),
2543
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: r.map((o) => /* @__PURE__ */ s(F, { step: o, active: o === i, children: W(o, e, { compactService: !0 }) }, `fbf-${o}`)) }),
2541
2544
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2542
- t.gates.date ? /* @__PURE__ */ s(E, { step: 5, active: i === 5, children: U(5, e) }) : null,
2543
- t.gates.slot && e.value.date && a === "month-calendar" ? /* @__PURE__ */ s(E, { step: 6, active: i === 6, children: U(6, e) }) : null
2545
+ t.gates.date ? /* @__PURE__ */ s(F, { step: 5, active: i === 5, children: W(5, e) }) : null,
2546
+ t.gates.slot && e.value.date && a === "month-calendar" ? /* @__PURE__ */ s(F, { step: 6, active: i === 6, children: W(6, e) }) : null
2544
2547
  ] })
2545
2548
  ]
2546
2549
  }
2547
2550
  ),
2548
- t.gates.details ? /* @__PURE__ */ s(E, { step: 7, active: i === 7, children: U(7, e) }) : null
2551
+ t.gates.details ? /* @__PURE__ */ s(F, { step: 7, active: i === 7, children: W(7, e) }) : null
2549
2552
  ] });
2550
2553
  }
2551
- function _a(e) {
2552
- const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, { t: u } = V(), o = We(), m = C(
2553
- () => ut(t.visibleSteps, r),
2554
+ function Ra(e) {
2555
+ const { cascade: t, value: a, activeStep: n, setActiveStep: i, datePickerStyle: r } = e, { t: u } = $(), o = Ze(), m = M(
2556
+ () => mt(t.visibleSteps, r),
2554
2557
  [t.visibleSteps, r]
2555
- ), d = xe(n, r), l = Math.max(0, m.indexOf(d)), c = m.length, S = C(
2558
+ ), d = Ie(n, r), l = Math.max(0, m.indexOf(d)), c = m.length, S = M(
2556
2559
  () => m.map((w) => ({ label: o[w] })),
2557
2560
  [m, o]
2558
- ), f = l > 0, b = d === 5 && r === "four-day-grid", N = l < c - 1 && ge(d, a) && (!b || ge(6, a));
2561
+ ), f = l > 0, b = d === 5 && r === "four-day-grid", N = l < c - 1 && ce(d, a) && (!b || ce(6, a));
2559
2562
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
2560
- /* @__PURE__ */ s(us, { activeStep: l, steps: S }),
2561
- /* @__PURE__ */ s(E, { step: d, active: !0, children: U(d, e, { compactService: !0 }) }),
2563
+ /* @__PURE__ */ s(hs, { activeStep: l, steps: S }),
2564
+ /* @__PURE__ */ s(F, { step: d, active: !0, children: W(d, e, { compactService: !0 }) }),
2562
2565
  /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
2563
2566
  /* @__PURE__ */ s(
2564
- he,
2567
+ be,
2565
2568
  {
2566
2569
  intent: "ghost",
2567
2570
  size: "md",
@@ -2574,7 +2577,7 @@ function _a(e) {
2574
2577
  }
2575
2578
  ),
2576
2579
  d < 7 ? /* @__PURE__ */ s(
2577
- he,
2580
+ be,
2578
2581
  {
2579
2582
  intent: "primary",
2580
2583
  size: "md",
@@ -2589,11 +2592,11 @@ function _a(e) {
2589
2592
  ] })
2590
2593
  ] });
2591
2594
  }
2592
- const Ba = [], Oa = [];
2593
- function wt() {
2595
+ const Ea = [], Va = [];
2596
+ function Tt() {
2594
2597
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2595
2598
  }
2596
- const La = Ct(
2599
+ const Fa = Ot(
2597
2600
  ({
2598
2601
  variant: e = "inline-list",
2599
2602
  country: t,
@@ -2620,42 +2623,42 @@ const La = Ct(
2620
2623
  validateCodiceFiscale: y,
2621
2624
  validateInsuranceNumber: x,
2622
2625
  confirmationChannels: k,
2623
- defaultConfirmationChannels: A,
2626
+ defaultConfirmationChannels: T,
2624
2627
  value: p,
2625
2628
  onChange: g,
2626
- onSubmit: T,
2627
- onStepChange: L,
2628
- onDateSelect: O,
2629
- onWindowChange: ae,
2630
- datePickerStyle: P = "month-calendar",
2631
- specialtyPickerStyle: z,
2632
- servicePickerStyle: ne,
2633
- operatorPickerStyle: R,
2634
- loadingDates: ce,
2635
- loadingSlots: ee,
2636
- submitting: Ie,
2637
- submitError: ue,
2638
- mode: _e = "live",
2639
- showModifyOnSuccess: ie = !0,
2640
- surface: Ne = "flat",
2641
- emptyServicesSlot: ve,
2642
- onboardingIncompleteSlot: Be,
2643
- "aria-label": we,
2644
- id: re,
2645
- className: Ze,
2646
- onFocus: Ce,
2647
- ...Xe
2648
- }, Oe) => {
2649
- const { t: pe, i18n: Le } = V(), K = e ?? "inline-list", me = Le.language ?? "en", h = u ?? Ba, _ = m ?? Oa;
2650
- H(() => {
2651
- const M = ia(p, {
2629
+ onSubmit: O,
2630
+ onStepChange: R,
2631
+ onDateSelect: L,
2632
+ onWindowChange: ne,
2633
+ datePickerStyle: E = "month-calendar",
2634
+ specialtyPickerStyle: j,
2635
+ servicePickerStyle: ie,
2636
+ operatorPickerStyle: V,
2637
+ loadingDates: pe,
2638
+ loadingSlots: se,
2639
+ submitting: Ne,
2640
+ submitError: me,
2641
+ mode: Oe = "live",
2642
+ showModifyOnSuccess: re = !0,
2643
+ surface: we = "flat",
2644
+ emptyServicesSlot: ye,
2645
+ onboardingIncompleteSlot: _e,
2646
+ "aria-label": Ce,
2647
+ id: oe,
2648
+ className: Xe,
2649
+ onFocus: Me,
2650
+ ...Qe
2651
+ }, Be) => {
2652
+ const { t: fe, i18n: Pe } = $(), z = e ?? "inline-list", ge = Pe.language ?? "en", h = u ?? Ea, _ = m ?? Va;
2653
+ Y(() => {
2654
+ const C = ca(p, {
2652
2655
  useSpecialties: a,
2653
2656
  lockedOperatorId: i,
2654
2657
  autoSelectSingleService: r,
2655
2658
  specialties: h,
2656
2659
  services: o
2657
2660
  });
2658
- (M.specialtyId !== p.specialtyId || M.operatorId !== p.operatorId || M.serviceId !== p.serviceId) && g(M);
2661
+ (C.specialtyId !== p.specialtyId || C.operatorId !== p.operatorId || C.serviceId !== p.serviceId) && g(C);
2659
2662
  }, [
2660
2663
  i,
2661
2664
  a,
@@ -2663,8 +2666,8 @@ const La = Ct(
2663
2666
  h,
2664
2667
  o
2665
2668
  ]);
2666
- const B = C(
2667
- () => na({
2669
+ const A = M(
2670
+ () => la({
2668
2671
  country: t,
2669
2672
  useSpecialties: a,
2670
2673
  allowOperatorSelection: n,
@@ -2688,88 +2691,115 @@ const La = Ct(
2688
2691
  l,
2689
2692
  p
2690
2693
  ]
2691
- ), Pe = C(
2692
- () => JSON.stringify([
2693
- p.insuranceType,
2694
- se(p),
2695
- le(p),
2696
- He(p),
2697
- p.date,
2698
- p.slotKey
2699
- ]),
2694
+ ), Le = M(
2695
+ () => [
2696
+ JSON.stringify(p.insuranceType),
2697
+ JSON.stringify(ae(p)),
2698
+ JSON.stringify(ue(p)),
2699
+ JSON.stringify(Je(p)),
2700
+ JSON.stringify(p.date),
2701
+ JSON.stringify(p.slotKey)
2702
+ ],
2700
2703
  [p]
2701
- ), [te, Me] = J(
2702
- B.currentStep
2703
- ), pt = Z(Pe);
2704
- H(() => {
2705
- const M = Pe !== pt.current;
2706
- pt.current = Pe, !(!M && B.visibleSteps.includes(te)) && Me(B.currentStep);
2704
+ ), Re = z === "progress", ft = X(
2705
+ (C) => {
2706
+ if (!Re) return A.currentStep;
2707
+ const P = A.visibleSteps.find(
2708
+ (B) => B > C && !At(B, p)
2709
+ );
2710
+ return P === void 0 ? A.currentStep : Math.min(P, A.currentStep);
2711
+ },
2712
+ [Re, A.visibleSteps, A.currentStep, p]
2713
+ ), [ee, he] = Z(
2714
+ A.currentStep
2715
+ ), gt = U(Le), ht = U(A.visibleSteps);
2716
+ Y(() => {
2717
+ const C = gt.current, P = ht.current;
2718
+ gt.current = Le, ht.current = A.visibleSteps;
2719
+ const B = Le.findIndex(
2720
+ (q, xt) => q !== C[xt]
2721
+ );
2722
+ if (B !== -1) {
2723
+ he(ft(B + 1));
2724
+ return;
2725
+ }
2726
+ const K = Re ? A.visibleSteps.find(
2727
+ (q) => q < ee && !P.includes(q) && !At(q, p)
2728
+ ) : void 0;
2729
+ if (K !== void 0) {
2730
+ he(K);
2731
+ return;
2732
+ }
2733
+ A.visibleSteps.includes(ee) || he(A.currentStep);
2707
2734
  }, [
2708
- Pe,
2709
- B.currentStep,
2710
- B.visibleSteps,
2711
- te
2735
+ Le,
2736
+ ft,
2737
+ Re,
2738
+ A.currentStep,
2739
+ A.visibleSteps,
2740
+ ee,
2741
+ p
2712
2742
  ]);
2713
- const be = Z(null), Qe = C(
2714
- () => ut(B.visibleSteps, P),
2715
- [B.visibleSteps, P]
2716
- ), mt = We(), [Wt, Zt] = J(""), ft = Z(null), Re = Z(null);
2717
- H(() => {
2718
- const M = xe(te, P);
2719
- if (Re.current === null) {
2720
- Re.current = M;
2743
+ const ke = U(null), et = M(
2744
+ () => mt(A.visibleSteps, E),
2745
+ [A.visibleSteps, E]
2746
+ ), vt = Ze(), [ts, ss] = Z(""), bt = U(null), Ee = U(null);
2747
+ Y(() => {
2748
+ const C = Ie(ee, E);
2749
+ if (Ee.current === null) {
2750
+ Ee.current = C;
2721
2751
  return;
2722
2752
  }
2723
- if (Re.current === M) return;
2724
- Re.current = M;
2725
- const $ = Qe.indexOf(M);
2726
- Zt(
2727
- $ === -1 ? "" : pe("booking.stepAnnouncement", {
2728
- current: $ + 1,
2729
- total: Qe.length,
2730
- label: mt[M]
2753
+ if (Ee.current === C) return;
2754
+ Ee.current = C;
2755
+ const P = et.indexOf(C);
2756
+ ss(
2757
+ P === -1 ? "" : fe("booking.stepAnnouncement", {
2758
+ current: P + 1,
2759
+ total: et.length,
2760
+ label: vt[C]
2731
2761
  })
2732
2762
  );
2733
- const F = ft.current;
2734
- if (!F || F.isConnected) return;
2735
- const W = be.current;
2736
- if (!W) return;
2737
- const ye = document.activeElement;
2738
- if (!(ye === null || ye === document.body || !W.contains(ye))) return;
2739
- const Ve = W.querySelector(wa) ?? W;
2740
- if (Ve.focus({ preventScroll: !0 }), typeof Ve.scrollIntoView == "function")
2763
+ const B = bt.current;
2764
+ if (!B || B.isConnected) return;
2765
+ const K = ke.current;
2766
+ if (!K) return;
2767
+ const q = document.activeElement;
2768
+ if (!(q === null || q === document.body || !K.contains(q))) return;
2769
+ const Fe = K.querySelector(Ta) ?? K;
2770
+ if (Fe.focus({ preventScroll: !0 }), typeof Fe.scrollIntoView == "function")
2741
2771
  try {
2742
- Ve.scrollIntoView({
2743
- behavior: wt() ? "auto" : "smooth",
2772
+ Fe.scrollIntoView({
2773
+ behavior: Tt() ? "auto" : "smooth",
2744
2774
  block: "nearest"
2745
2775
  });
2746
2776
  } catch {
2747
- Ve.scrollIntoView();
2777
+ Fe.scrollIntoView();
2748
2778
  }
2749
- }, [te, P, Qe, mt, pe]);
2750
- const [oe, De] = J("idle"), [et, tt] = J(null), gt = Q(
2751
- async (M) => {
2752
- if (!B.selectedSlot) return;
2753
- const $ = {
2754
- slot: B.selectedSlot,
2779
+ }, [ee, E, et, vt, fe]);
2780
+ const [de, De] = Z("idle"), [tt, st] = Z(null), yt = X(
2781
+ async (C) => {
2782
+ if (!A.selectedSlot) return;
2783
+ const P = {
2784
+ slot: A.selectedSlot,
2755
2785
  value: {
2756
2786
  ...p,
2757
- details: M,
2758
- operatorId: St(p) ?? p.operatorId
2787
+ details: C,
2788
+ operatorId: ot(p) ?? p.operatorId
2759
2789
  },
2760
- details: M
2790
+ details: C
2761
2791
  };
2762
2792
  De("submitting");
2763
2793
  try {
2764
- await T($), tt({
2765
- slot: B.selectedSlot,
2766
- details: M,
2794
+ await O(P), st({
2795
+ slot: A.selectedSlot,
2796
+ details: C,
2767
2797
  specialtyId: p.specialtyId,
2768
2798
  serviceId: p.serviceId,
2769
2799
  insuranceType: p.insuranceType,
2770
- operatorId: St(p),
2771
- operatorIds: He(p).filter(
2772
- (F) => F !== q
2800
+ operatorId: ot(p),
2801
+ operatorIds: Je(p).filter(
2802
+ (B) => B !== H
2773
2803
  ),
2774
2804
  date: p.date
2775
2805
  }), De("success");
@@ -2777,84 +2807,84 @@ const La = Ct(
2777
2807
  throw De("error"), new Error("Booking submission failed");
2778
2808
  }
2779
2809
  },
2780
- [B.selectedSlot, T, p]
2810
+ [A.selectedSlot, O, p]
2781
2811
  );
2782
- ts(Oe, () => be.current, []);
2783
- const Ae = oe === "success" ? 8 : B.currentStep, ht = Z(null);
2784
- H(() => {
2785
- if (Ae !== ht.current && (ht.current = Ae, L == null || L(Ae), Ae === 8 && be.current))
2812
+ rs(Be, () => ke.current, []);
2813
+ const Ae = de === "success" ? 8 : A.currentStep, kt = U(null);
2814
+ Y(() => {
2815
+ if (Ae !== kt.current && (kt.current = Ae, R == null || R(Ae), Ae === 8 && ke.current))
2786
2816
  try {
2787
- be.current.scrollIntoView({
2788
- behavior: wt() ? "auto" : "smooth",
2817
+ ke.current.scrollIntoView({
2818
+ behavior: Tt() ? "auto" : "smooth",
2789
2819
  block: "start"
2790
2820
  });
2791
2821
  } catch {
2792
- be.current.scrollIntoView();
2822
+ ke.current.scrollIntoView();
2793
2823
  }
2794
- }, [Ae, L]);
2795
- const Ee = Z({ activeStep: te, cascade: B, submitState: oe });
2796
- H(() => {
2797
- Ee.current = { activeStep: te, cascade: B, submitState: oe };
2798
- }, [te, B, oe]);
2799
- const st = C(
2824
+ }, [Ae, R]);
2825
+ const Ve = U({ activeStep: ee, cascade: A, submitState: de });
2826
+ Y(() => {
2827
+ Ve.current = { activeStep: ee, cascade: A, submitState: de };
2828
+ }, [ee, A, de]);
2829
+ const at = M(
2800
2830
  () => ({
2801
- getVariant: () => K,
2831
+ getVariant: () => z,
2802
2832
  getCurrentStep: () => {
2803
- const M = Ee.current;
2804
- return M.submitState === "success" ? 8 : M.activeStep;
2833
+ const C = Ve.current;
2834
+ return C.submitState === "success" ? 8 : C.activeStep;
2805
2835
  },
2806
2836
  reset: () => {
2807
- g({}), tt(null), De("idle"), Me(1);
2837
+ g({}), st(null), De("idle"), he(1);
2808
2838
  },
2809
- goToStep: (M) => {
2810
- const $ = Ee.current, F = $.cascade.visibleSteps.includes(M), W = $.cascade.currentStep, ye = !F || M > W ? W : M;
2811
- Ee.current = { ...$, activeStep: ye }, Me(ye);
2839
+ goToStep: (C) => {
2840
+ const P = Ve.current, B = P.cascade.visibleSteps.includes(C), K = P.cascade.currentStep, q = !B || C > K ? K : C;
2841
+ Ve.current = { ...P, activeStep: q }, he(q);
2812
2842
  }
2813
2843
  }),
2814
- [K, g]
2844
+ [z, g]
2815
2845
  );
2816
- as(Zs, st, re);
2817
- const Xt = we ?? pe("booking.regionLabel"), Qt = C(() => oe !== "success" || !et ? null : /* @__PURE__ */ s(
2818
- Na,
2846
+ ds(sa, at, oe);
2847
+ const as = Ce ?? fe("booking.regionLabel"), ns = M(() => de !== "success" || !tt ? null : /* @__PURE__ */ s(
2848
+ Aa,
2819
2849
  {
2820
- snapshot: et,
2850
+ snapshot: tt,
2821
2851
  operators: _,
2822
2852
  specialties: h,
2823
2853
  services: o,
2824
- locale: me,
2825
- mode: _e,
2826
- showModify: ie,
2827
- onReset: () => st.reset(),
2854
+ locale: ge,
2855
+ mode: Oe,
2856
+ showModify: re,
2857
+ onReset: () => at.reset(),
2828
2858
  onModify: () => {
2829
- tt(null), De("idle"), Me(7);
2859
+ st(null), De("idle"), he(7);
2830
2860
  }
2831
2861
  }
2832
2862
  ), [
2833
- oe,
2834
- et,
2863
+ de,
2864
+ tt,
2835
2865
  _,
2836
2866
  h,
2837
2867
  o,
2838
- me,
2839
- _e,
2840
- ie,
2841
- st
2842
- ]), vt = C(() => {
2843
- const M = new Set(le(p)), $ = o.filter((F) => M.has(F.id)).map((F) => {
2844
- var W;
2868
+ ge,
2869
+ Oe,
2870
+ re,
2871
+ at
2872
+ ]), St = M(() => {
2873
+ const C = new Set(ue(p)), P = o.filter((B) => C.has(B.id)).map((B) => {
2874
+ var K;
2845
2875
  return {
2846
- label: F.label,
2847
- text: ((W = F.criticalInformationToAccept) == null ? void 0 : W.trim()) ?? ""
2876
+ label: B.label,
2877
+ text: ((K = B.criticalInformationToAccept) == null ? void 0 : K.trim()) ?? ""
2848
2878
  };
2849
- }).filter((F) => F.text.length > 0);
2850
- if ($.length !== 0)
2851
- return $.length === 1 ? $[0].text : $.map((F) => `${F.label}: ${F.text}`).join(`
2879
+ }).filter((B) => B.text.length > 0);
2880
+ if (P.length !== 0)
2881
+ return P.length === 1 ? P[0].text : P.map((B) => `${B.label}: ${B.text}`).join(`
2852
2882
 
2853
2883
  `);
2854
- }, [o, p]), es = C(() => {
2855
- if (oe === "success") return null;
2856
- const M = K === "accordion" ? Ma : K === "calendar" ? Aa : K === "flexible" ? Ta : K === "progress" ? _a : Ca, $ = {
2857
- cascade: B,
2884
+ }, [o, p]), is = M(() => {
2885
+ if (de === "success") return null;
2886
+ const C = z === "accordion" ? _a : z === "calendar" ? Pa : z === "flexible" ? La : z === "progress" ? Ra : Oa, P = {
2887
+ cascade: A,
2858
2888
  inputs: {
2859
2889
  specialties: h,
2860
2890
  services: o,
@@ -2865,7 +2895,7 @@ const La = Ct(
2865
2895
  },
2866
2896
  value: p,
2867
2897
  onChange: g,
2868
- onSubmit: gt,
2898
+ onSubmit: yt,
2869
2899
  policy: { country: t, lockedOperatorId: i },
2870
2900
  detailsProps: {
2871
2901
  requireCodiceFiscale: S,
@@ -2876,34 +2906,34 @@ const La = Ct(
2876
2906
  showReturningPatientFlag: w,
2877
2907
  privacyPolicyUrl: D,
2878
2908
  termsUrl: I,
2879
- criticalInformationToAccept: vt,
2909
+ criticalInformationToAccept: St,
2880
2910
  validateCodiceFiscale: y,
2881
2911
  validateInsuranceNumber: x,
2882
2912
  confirmationChannels: k,
2883
- defaultConfirmationChannels: A,
2884
- submitError: ue
2913
+ defaultConfirmationChannels: T,
2914
+ submitError: me
2885
2915
  },
2886
- emptyServicesSlot: ve,
2887
- onboardingIncompleteSlot: Be,
2888
- loadingDates: ce,
2889
- loadingSlots: ee,
2890
- onDateSelect: O,
2891
- onWindowChange: ae,
2892
- datePickerStyle: P,
2893
- specialtyPickerStyle: z,
2894
- servicePickerStyle: ne,
2895
- operatorPickerStyle: R,
2896
- submitting: Ie,
2897
- locale: me,
2898
- activeStep: te,
2899
- setActiveStep: Me,
2900
- agentIdBase: re
2916
+ emptyServicesSlot: ye,
2917
+ onboardingIncompleteSlot: _e,
2918
+ loadingDates: pe,
2919
+ loadingSlots: se,
2920
+ onDateSelect: L,
2921
+ onWindowChange: ne,
2922
+ datePickerStyle: E,
2923
+ specialtyPickerStyle: j,
2924
+ servicePickerStyle: ie,
2925
+ operatorPickerStyle: V,
2926
+ submitting: Ne,
2927
+ locale: ge,
2928
+ activeStep: ee,
2929
+ setActiveStep: he,
2930
+ agentIdBase: oe
2901
2931
  };
2902
- return /* @__PURE__ */ s(M, { ...$ });
2932
+ return /* @__PURE__ */ s(C, { ...P });
2903
2933
  }, [
2904
- oe,
2905
- K,
2906
- B,
2934
+ de,
2935
+ z,
2936
+ A,
2907
2937
  h,
2908
2938
  o,
2909
2939
  _,
@@ -2912,59 +2942,59 @@ const La = Ct(
2912
2942
  c,
2913
2943
  p,
2914
2944
  g,
2915
- gt,
2945
+ yt,
2916
2946
  t,
2917
2947
  i,
2918
2948
  S,
2919
2949
  f,
2920
2950
  b,
2921
- ue,
2951
+ me,
2922
2952
  N,
2923
2953
  w,
2924
2954
  D,
2925
2955
  I,
2926
- vt,
2956
+ St,
2927
2957
  y,
2928
2958
  x,
2929
2959
  k,
2930
- A,
2931
- ve,
2932
- Be,
2933
- ce,
2934
- ee,
2935
- O,
2936
- ae,
2937
- P,
2938
- z,
2960
+ T,
2961
+ ye,
2962
+ _e,
2963
+ pe,
2964
+ se,
2965
+ L,
2939
2966
  ne,
2940
- R,
2941
- Ie,
2942
- me,
2943
- te,
2944
- re
2967
+ E,
2968
+ j,
2969
+ ie,
2970
+ V,
2971
+ Ne,
2972
+ ge,
2973
+ ee,
2974
+ oe
2945
2975
  ]);
2946
2976
  return /* @__PURE__ */ v(
2947
2977
  "div",
2948
2978
  {
2949
- ref: be,
2979
+ ref: ke,
2950
2980
  role: "region",
2951
- "aria-label": Xt,
2952
- id: re,
2981
+ "aria-label": as,
2982
+ id: oe,
2953
2983
  "data-component": "booking",
2954
- "data-component-id": re,
2955
- "data-variant": K,
2956
- className: ca({
2957
- variant: K,
2958
- surface: Ne,
2959
- className: Ze
2984
+ "data-component-id": oe,
2985
+ "data-variant": z,
2986
+ className: ga({
2987
+ variant: z,
2988
+ surface: we,
2989
+ className: Xe
2960
2990
  }),
2961
2991
  tabIndex: -1,
2962
- onFocus: (M) => {
2963
- ft.current = M.target, Ce == null || Ce(M);
2992
+ onFocus: (C) => {
2993
+ bt.current = C.target, Me == null || Me(C);
2964
2994
  },
2965
- ...Xe,
2995
+ ...Qe,
2966
2996
  children: [
2967
- /* @__PURE__ */ s("div", { role: "status", className: "ds:sr-only", children: Wt }),
2997
+ /* @__PURE__ */ s("div", { role: "status", className: "ds:sr-only", children: ts }),
2968
2998
  /* @__PURE__ */ v(
2969
2999
  "div",
2970
3000
  {
@@ -2977,22 +3007,22 @@ const La = Ct(
2977
3007
  "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
2978
3008
  ].join(" "),
2979
3009
  children: [
2980
- /* @__PURE__ */ s("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: pe("booking.regionLabel") }),
2981
- /* @__PURE__ */ s("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: pe("booking.headingSubtitle") })
3010
+ /* @__PURE__ */ s("h2", { className: "type-title-card ds:text-[var(--foreground)] ds:m-0", children: fe("booking.regionLabel") }),
3011
+ /* @__PURE__ */ s("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: fe("booking.headingSubtitle") })
2982
3012
  ]
2983
3013
  }
2984
3014
  ),
2985
- Qt ?? es
3015
+ ns ?? is
2986
3016
  ]
2987
3017
  }
2988
3018
  );
2989
3019
  }
2990
3020
  );
2991
- La.displayName = "Booking";
3021
+ Fa.displayName = "Booking";
2992
3022
  export {
2993
- La as B,
2994
- it as C,
2995
- q as O,
2996
- Zs as b
3023
+ Fa as B,
3024
+ rt as C,
3025
+ H as O,
3026
+ sa as b
2997
3027
  };
2998
- //# sourceMappingURL=booking-jGzRUETo.js.map
3028
+ //# sourceMappingURL=booking-BqkEtsKx.js.map