@alfadocs/ui-kit 1.66.0 → 1.68.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 (305) hide show
  1. package/dist/_chunks/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
  4. package/dist/_chunks/ai-credits-exhausted-notice-Bg8NpW2K.js +287 -0
  5. package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
  6. package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
  7. package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-C00i6VhY.js} +2 -2
  8. package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
  9. package/dist/_chunks/{alert-DdDpOi-P.js → alert-9kEwDza3.js} +122 -111
  10. package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
  12. package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
  13. package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
  14. package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
  15. package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
  16. package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
  17. package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-4Ll0pwYK.js} +3 -3
  18. package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-B40zvD-a.js} +2 -2
  19. package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
  20. package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
  21. package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
  22. package/dist/_chunks/{booking-DkjatiXc.js → booking-B1pDbERi.js} +377 -335
  23. package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
  24. package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-CYK1M83j.js} +19 -19
  25. package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
  26. package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
  27. package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
  28. package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
  29. package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
  30. package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
  31. package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
  32. package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
  33. package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
  34. package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
  35. package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-513f3iPn.js} +4 -4
  36. package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-Bd3wbzpI.js} +2 -2
  37. package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
  38. package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-C2B8yNmc.js} +4 -4
  39. package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-mGxIyDAY.js} +2 -2
  40. package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
  41. package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
  42. package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-Dqi7R-NL.js} +4 -4
  43. package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
  44. package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-C73C8Rgd.js} +2 -2
  45. package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
  46. package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
  47. package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
  48. package/dist/_chunks/help-me-write-templates-5WkUfvc_.js +687 -0
  49. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  50. package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
  51. package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
  52. package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
  53. package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-vEL-o5wq.js} +3 -3
  54. package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
  55. package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
  56. package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
  57. package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
  58. package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
  59. package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
  60. package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
  61. package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-BXN46XkF.js} +6 -6
  62. package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
  63. package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
  64. package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
  65. package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
  66. package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
  67. package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
  68. package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C4Dyo7Ck.js} +4 -4
  69. package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-DROvUkFu.js} +155 -176
  70. package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-BADdx3M1.js} +2 -2
  71. package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-CAimxbuI.js} +4 -4
  72. package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
  73. package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-PBuh8PIa.js} +2 -2
  74. package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-gAsNUsA8.js} +2 -2
  75. package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
  76. package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
  77. package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BzThnpnm.js} +328 -298
  78. package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
  79. package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
  80. package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
  81. package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
  82. package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
  83. package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
  84. package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
  85. package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-1B0PTDal.js} +4 -4
  86. package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
  87. package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-56dSsyZI.js} +1653 -1743
  88. package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
  89. package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-BiOTs1P4.js} +2 -2
  90. package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-DAmNj_uq.js} +5 -5
  91. package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
  92. package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
  93. package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
  94. package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
  95. package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-BomyxGoZ.js} +8 -8
  96. package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
  97. package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-ATz9JDy8.js} +6 -6
  98. package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
  99. package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
  100. package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
  101. package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
  102. package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
  103. package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
  104. package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CUGfE0hV.js} +13 -13
  105. package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
  106. package/dist/_chunks/voice-control-panel-B8Lrk0C4.js +1148 -0
  107. package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BhHUmRiD.js} +2 -2
  108. package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-ln4_OG8A.js} +2 -2
  109. package/dist/agent-catalog.json +221 -6
  110. package/dist/agent-i18n/en.json +32 -5
  111. package/dist/components/_shared/format-number.d.ts +20 -0
  112. package/dist/components/_shared/length-token.d.ts +12 -0
  113. package/dist/components/_shared/option.d.ts +1 -0
  114. package/dist/components/address-fields/index.js +1 -1
  115. package/dist/components/agenda-card/index.js +1 -1
  116. package/dist/components/agenda-tray/index.js +1 -1
  117. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
  118. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
  119. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
  120. package/dist/components/ai-credits-notice/index.d.ts +3 -0
  121. package/dist/components/ai-credits-notice/index.js +10 -4
  122. package/dist/components/ai-permission-notice/index.js +1 -1
  123. package/dist/components/ai-prompt-input/index.js +1 -1
  124. package/dist/components/alert/alert.d.ts +26 -0
  125. package/dist/components/alert/index.js +1 -1
  126. package/dist/components/anamnesis-summary-card/index.js +1 -1
  127. package/dist/components/appointment-card/index.js +2 -2
  128. package/dist/components/appointment-details-panel/index.js +1 -1
  129. package/dist/components/appointment-peek/index.js +1 -1
  130. package/dist/components/appointment-timeline/index.js +1 -1
  131. package/dist/components/audio-recorder/index.js +1 -1
  132. package/dist/components/avatar/avatar.d.ts +2 -0
  133. package/dist/components/avatar/index.js +1 -1
  134. package/dist/components/bishop-score/index.js +1 -1
  135. package/dist/components/booking/index.js +1 -1
  136. package/dist/components/calendar/index.js +1 -1
  137. package/dist/components/chat-message/index.js +1 -1
  138. package/dist/components/clinical-note-card/index.js +1 -1
  139. package/dist/components/color-picker/index.js +1 -1
  140. package/dist/components/combobox/index.js +1 -1
  141. package/dist/components/contact-profile-card/index.js +1 -1
  142. package/dist/components/control-room-rail/index.js +1 -1
  143. package/dist/components/country-select/index.js +1 -1
  144. package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
  145. package/dist/components/dashboard-grid/index.js +1 -1
  146. package/dist/components/data-table/index.js +2 -2
  147. package/dist/components/dependent-selector/index.js +1 -1
  148. package/dist/components/document-preview/index.js +1 -1
  149. package/dist/components/document-scanner/index.js +1 -1
  150. package/dist/components/editable-description/index.js +1 -1
  151. package/dist/components/entity-summary/index.js +1 -1
  152. package/dist/components/error-summary/index.js +1 -1
  153. package/dist/components/face-scheme/index.js +1 -1
  154. package/dist/components/file-manager/index.js +1 -1
  155. package/dist/components/freemium-paywall/index.js +1 -1
  156. package/dist/components/gestational-age-calculator/index.js +1 -1
  157. package/dist/components/header-settings/index.js +1 -1
  158. package/dist/components/heatmap/index.js +1 -1
  159. package/dist/components/index.d.ts +4 -2
  160. package/dist/components/map-view/index.d.ts +1 -1
  161. package/dist/components/map-view/index.js +1 -1
  162. package/dist/components/map-view/map-view.d.ts +51 -0
  163. package/dist/components/message-card/index.js +1 -1
  164. package/dist/components/message-tray/index.js +1 -1
  165. package/dist/components/multi-select/index.js +1 -1
  166. package/dist/components/muscle-scheme/index.js +1 -1
  167. package/dist/components/note-timeline/index.js +1 -1
  168. package/dist/components/notes-panel/index.js +1 -1
  169. package/dist/components/notice-group/index.d.ts +3 -0
  170. package/dist/components/notice-group/index.js +6 -0
  171. package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
  172. package/dist/components/notice-group/notice-group.d.ts +43 -0
  173. package/dist/components/notification-tray/index.js +1 -1
  174. package/dist/components/operator-hero/index.js +1 -1
  175. package/dist/components/optical-prescription/index.js +1 -1
  176. package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
  177. package/dist/components/panel-header/index.js +1 -1
  178. package/dist/components/panel-header/panel-header.d.ts +10 -0
  179. package/dist/components/panel-subview/index.js +1 -1
  180. package/dist/components/patient-details/index.js +1 -1
  181. package/dist/components/patient-search/index.js +1 -1
  182. package/dist/components/patient-summary-card/index.js +1 -1
  183. package/dist/components/patient-table/index.js +1 -1
  184. package/dist/components/payment-form/index.js +1 -1
  185. package/dist/components/pdf-viewer/index.js +1 -1
  186. package/dist/components/periodontal-risk-chart/index.js +1 -1
  187. package/dist/components/practice-profile-hero/index.js +1 -1
  188. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
  189. package/dist/components/practice-results/index.js +1 -1
  190. package/dist/components/practice-results/practice-results.d.ts +10 -2
  191. package/dist/components/pregnancy-dating/index.js +1 -1
  192. package/dist/components/product-hub-tray/index.js +1 -1
  193. package/dist/components/progress-notice/index.d.ts +3 -0
  194. package/dist/components/progress-notice/index.js +6 -0
  195. package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
  196. package/dist/components/progress-notice/progress-notice.d.ts +81 -0
  197. package/dist/components/province-select/index.js +1 -1
  198. package/dist/components/radiograph-panel/index.js +1 -1
  199. package/dist/components/rating/index.js +1 -1
  200. package/dist/components/reviews-panel/index.js +1 -1
  201. package/dist/components/rich-text-editor/index.js +2 -2
  202. package/dist/components/select/index.js +1 -1
  203. package/dist/components/select/select.d.ts +6 -0
  204. package/dist/components/sign-document/index.js +1 -1
  205. package/dist/components/skeleton/index.d.ts +1 -1
  206. package/dist/components/skeleton/index.js +1 -1
  207. package/dist/components/skeleton/skeleton.d.ts +41 -1
  208. package/dist/components/skeleton-scheme/index.js +1 -1
  209. package/dist/components/slot-grid/index.js +1 -1
  210. package/dist/components/tabs/index.js +1 -1
  211. package/dist/components/task-card/index.js +1 -1
  212. package/dist/components/task-editor/index.js +1 -1
  213. package/dist/components/task-tray/index.js +1 -1
  214. package/dist/components/tasks-panel/index.js +1 -1
  215. package/dist/components/theme-toggle/index.js +1 -1
  216. package/dist/components/timeline/index.js +1 -1
  217. package/dist/components/tool-rail/index.js +1 -1
  218. package/dist/components/transcript-panel/index.js +1 -1
  219. package/dist/components/treatment-receipt/index.js +1 -1
  220. package/dist/components/unit-converter/index.js +1 -1
  221. package/dist/components/voice-control-panel/index.d.ts +2 -1
  222. package/dist/components/voice-control-panel/index.js +1 -1
  223. package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
  224. package/dist/components/warning-stack/index.js +1 -1
  225. package/dist/components/workflow/index.js +1 -1
  226. package/dist/hooks/index.d.ts +1 -0
  227. package/dist/hooks/index.js +81 -76
  228. package/dist/hooks/use-dismissed.d.ts +58 -0
  229. package/dist/i18n/locales/ar.d.ts +49 -12
  230. package/dist/i18n/locales/ar.js +49 -12
  231. package/dist/i18n/locales/de.d.ts +49 -12
  232. package/dist/i18n/locales/de.js +49 -12
  233. package/dist/i18n/locales/el.d.ts +49 -12
  234. package/dist/i18n/locales/el.js +49 -12
  235. package/dist/i18n/locales/en.d.ts +49 -12
  236. package/dist/i18n/locales/en.js +49 -12
  237. package/dist/i18n/locales/es.d.ts +49 -12
  238. package/dist/i18n/locales/es.js +49 -12
  239. package/dist/i18n/locales/fr.d.ts +49 -12
  240. package/dist/i18n/locales/fr.js +49 -12
  241. package/dist/i18n/locales/hi.d.ts +49 -12
  242. package/dist/i18n/locales/hi.js +49 -12
  243. package/dist/i18n/locales/it.d.ts +49 -12
  244. package/dist/i18n/locales/it.js +49 -12
  245. package/dist/i18n/locales/ja.d.ts +49 -12
  246. package/dist/i18n/locales/ja.js +49 -12
  247. package/dist/i18n/locales/nl.d.ts +49 -12
  248. package/dist/i18n/locales/nl.js +49 -12
  249. package/dist/i18n/locales/pl.d.ts +49 -12
  250. package/dist/i18n/locales/pl.js +49 -12
  251. package/dist/i18n/locales/pt.d.ts +49 -12
  252. package/dist/i18n/locales/pt.js +49 -12
  253. package/dist/i18n/locales/ro.d.ts +49 -12
  254. package/dist/i18n/locales/ro.js +49 -12
  255. package/dist/i18n/locales/ru.d.ts +49 -12
  256. package/dist/i18n/locales/ru.js +49 -12
  257. package/dist/i18n/locales/sq.d.ts +49 -12
  258. package/dist/i18n/locales/sq.js +49 -12
  259. package/dist/i18n/locales/sv.d.ts +49 -12
  260. package/dist/i18n/locales/sv.js +49 -12
  261. package/dist/i18n/locales/tr.d.ts +49 -12
  262. package/dist/i18n/locales/tr.js +49 -12
  263. package/dist/i18n/locales/zh.d.ts +49 -12
  264. package/dist/i18n/locales/zh.js +49 -12
  265. package/dist/index.js +1193 -1177
  266. package/dist/locales/ar.json +49 -12
  267. package/dist/locales/de.json +49 -12
  268. package/dist/locales/el.json +49 -12
  269. package/dist/locales/en.json +49 -12
  270. package/dist/locales/es.json +49 -12
  271. package/dist/locales/fr.json +49 -12
  272. package/dist/locales/hi.json +49 -12
  273. package/dist/locales/it.json +49 -12
  274. package/dist/locales/ja.json +49 -12
  275. package/dist/locales/nl.json +49 -12
  276. package/dist/locales/pl.json +49 -12
  277. package/dist/locales/pt.json +49 -12
  278. package/dist/locales/ro.json +49 -12
  279. package/dist/locales/ru.json +49 -12
  280. package/dist/locales/sq.json +49 -12
  281. package/dist/locales/sv.json +49 -12
  282. package/dist/locales/tr.json +49 -12
  283. package/dist/locales/zh.json +49 -12
  284. package/dist/patterns/alia-assistant/index.js +1 -1
  285. package/dist/patterns/anamnesis/index.js +1 -1
  286. package/dist/patterns/calendar/index.js +1 -1
  287. package/dist/patterns/forgot-password-form/index.js +1 -1
  288. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
  289. package/dist/patterns/help-me-write-templates/index.js +8 -7
  290. package/dist/patterns/login-form/index.js +1 -1
  291. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  292. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  293. package/dist/patterns/registration-form/index.js +1 -1
  294. package/dist/patterns/signature-request/index.js +1 -1
  295. package/dist/tokens.css +1 -1
  296. package/package.json +9 -1
  297. package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
  298. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
  299. package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
  300. package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
  301. package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
  302. package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
  303. package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
  304. package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
  305. package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
@@ -1,11 +1,11 @@
1
- import { jsx as s, jsxs as v, Fragment as ae } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as v, Fragment as oe } from "react/jsx-runtime";
2
2
  import { forwardRef as ms, useId as Rt, useRef as _, useCallback as ye, useState as se, useEffect as K, useMemo as L, Fragment as qs, useImperativeHandle as Ks } from "react";
3
3
  import { c as It } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as W, Trans as zs } from "react-i18next";
5
5
  import { u as js } from "./registry-DvAUVLHh.js";
6
- import { A as ie } from "./alert-DdDpOi-P.js";
6
+ import { A as ie } from "./alert-9kEwDza3.js";
7
7
  import { B as et } from "./button-D-MQxsA_.js";
8
- import { C as at } from "./checkbox-BjDv-r3o.js";
8
+ import { C as ot } from "./checkbox-BjDv-r3o.js";
9
9
  import { C as Us } from "./checkbox-group-Cw2H5qaq.js";
10
10
  import { D as Hs } from "./date-picker-KcoNNsM0.js";
11
11
  import { E as Gs } from "./email-input-C7THAwh2.js";
@@ -13,27 +13,27 @@ import { F as Ge } from "./form-field-Ani72sVY.js";
13
13
  import { P as Js } from "./phone-input-O9camxkq.js";
14
14
  import { T as Ws } from "./text-area-COMVJ1yE.js";
15
15
  import { T as Tt } from "./text-input-CaG9ApoE.js";
16
- import { A as Ys } from "./address-fields-CJtu7LQU.js";
16
+ import { A as Ys } from "./address-fields-BUPRs3n-.js";
17
17
  import { S as fs } from "./spinner-CoflYlEx.js";
18
18
  import { a as Pt } from "./format-price-BcFBa-WP.js";
19
19
  import { C as Zs } from "./credit-card-D9XZsHGA.js";
20
20
  import { B as gs } from "./badge-BUk4RjTS.js";
21
21
  import { I as is } from "./icon-button-C_1TgRiK.js";
22
- import { S as Vt } from "./select-k4gBdS8N.js";
23
- import { C as Qt } from "./combobox-U5yfO6o0.js";
24
- import { M as Xt } from "./multi-select-CMaAQQgb.js";
22
+ import { S as Vt } from "./select-4S-eYZUf.js";
23
+ import { C as Qt } from "./combobox-vF9O-QoG.js";
24
+ import { M as Xt } from "./multi-select-BOad3za9.js";
25
25
  import { c as Qs } from "./option-row-Dc7BrbK8.js";
26
- import { S as Lt } from "./skeleton-B1KTdJ4N.js";
26
+ import { S as Lt } from "./skeleton-tTWJpvAq.js";
27
27
  import { E as hs } from "./empty-state-pL1qum99.js";
28
28
  import { S as Xs } from "./stepper-accordion-DDTSOUHc.js";
29
29
  import { S as en } from "./stepper-progress-D6H8wQiV.js";
30
- import { S as tn } from "./slot-grid-dj5f6R2w.js";
30
+ import { S as tn } from "./slot-grid-D_gix9mJ.js";
31
31
  import { p as be } from "./parseISO-y3LncvfO.js";
32
32
  import { C as sn } from "./chevron-down-DWE7GSq9.js";
33
33
  import { r as ct, f as _t, b as rs } from "./format-D-1gTdHF.js";
34
34
  import { x as vs, d as dt, a as Gt, i as nn, s as xt, m as rn, y as Ot } from "./date-picker-variants-DN37Oj5-.js";
35
- import { s as on } from "./subDays-xH7cpN6B.js";
36
- import { C as an } from "./chevron-left-B8cOyH-V.js";
35
+ import { s as an } from "./subDays-xH7cpN6B.js";
36
+ import { C as on } from "./chevron-left-B8cOyH-V.js";
37
37
  import { C as cn } from "./chevron-right-I9AeSxH2.js";
38
38
  import { c as Oe } from "./createLucideIcon-DhHxpK9K.js";
39
39
  import { M as dn, S as ln } from "./sun-Bj9Mr553.js";
@@ -197,7 +197,7 @@ const Pn = [
197
197
  ["path", { d: "m9 11 4 4", key: "rovt3i" }],
198
198
  ["path", { d: "m5 19-3 3", key: "59f2uf" }],
199
199
  ["path", { d: "m14 4 6 6", key: "yqp9t2" }]
200
- ], os = Oe("syringe", Pn);
200
+ ], as = Oe("syringe", Pn);
201
201
  function Vn(e, t, n) {
202
202
  return vs(e, -1, n);
203
203
  }
@@ -286,16 +286,16 @@ function Kn(e) {
286
286
  return [...t ? e.operatorsByService ? e.specialties.filter(
287
287
  (r) => e.services.some(
288
288
  (i) => {
289
- var o;
290
- return i.specialtyId === r.id && ((o = i.operatorIds) == null ? void 0 : o.includes(t));
289
+ var a;
290
+ return i.specialtyId === r.id && ((a = i.operatorIds) == null ? void 0 : a.includes(t));
291
291
  }
292
292
  )
293
293
  ) : e.specialties.filter((r) => {
294
294
  var i;
295
295
  return (i = r.operatorIds) == null ? void 0 : i.includes(t);
296
296
  }) : e.specialties].sort((r, i) => {
297
- const o = r.sequenceNumber ?? Number.POSITIVE_INFINITY, c = i.sequenceNumber ?? Number.POSITIVE_INFINITY;
298
- return o - c;
297
+ const a = r.sequenceNumber ?? Number.POSITIVE_INFINITY, c = i.sequenceNumber ?? Number.POSITIVE_INFINITY;
298
+ return a - c;
299
299
  });
300
300
  }
301
301
  function zn(e) {
@@ -319,7 +319,7 @@ function jn(e) {
319
319
  return e.operators.filter(
320
320
  (r) => {
321
321
  var i;
322
- return (i = r.appointmentBookingReasonIds) == null ? void 0 : i.some((o) => n.includes(o));
322
+ return (i = r.appointmentBookingReasonIds) == null ? void 0 : i.some((a) => n.includes(a));
323
323
  }
324
324
  );
325
325
  if (t) {
@@ -327,20 +327,20 @@ function jn(e) {
327
327
  if (r.length > 0)
328
328
  return e.operators.filter(
329
329
  (i) => {
330
- var o;
331
- return (o = i.specialtyIds) == null ? void 0 : o.some((c) => r.includes(c));
330
+ var a;
331
+ return (a = i.specialtyIds) == null ? void 0 : a.some((c) => r.includes(c));
332
332
  }
333
333
  );
334
334
  }
335
335
  return [];
336
336
  }
337
337
  function Un(e, t) {
338
- const n = e.country === qn, r = !n || e.value.insuranceType !== void 0, o = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && r, c = Je(e.value).length > 0, m = !o || c, p = qe(e.value).length > 0, g = !m || p, l = t.operators, a = !!e.allowOperatorSelection && g && p && !e.lockedOperatorId && l.length > 1, u = g && p, x = (!u || e.value.date !== void 0) && e.value.date !== void 0, E = (!x || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, N = p && l.length === 0;
338
+ const n = e.country === qn, r = !n || e.value.insuranceType !== void 0, a = (e.useSpecialties === void 0 ? e.specialties.length > 0 : e.useSpecialties) && r, c = Je(e.value).length > 0, m = !a || c, p = qe(e.value).length > 0, g = !m || p, l = t.operators, o = !!e.allowOperatorSelection && g && p && !e.lockedOperatorId && l.length > 1, u = g && p, x = (!u || e.value.date !== void 0) && e.value.date !== void 0, E = (!x || e.value.slotKey !== void 0) && e.value.slotKey !== void 0, N = p && l.length === 0;
339
339
  return {
340
340
  insurance: n,
341
- specialty: o,
341
+ specialty: a,
342
342
  service: m,
343
- operator: a,
343
+ operator: o,
344
344
  date: u,
345
345
  slot: x,
346
346
  details: E,
@@ -384,10 +384,10 @@ function Gn(e) {
384
384
  services: zn(e),
385
385
  operators: jn(e)
386
386
  }, n = Un(e, t), { currentStep: r, visibleSteps: i } = Hn(e, n);
387
- let o;
387
+ let a;
388
388
  if (e.value.date && e.value.slotKey) {
389
389
  const g = e.availableSlots[e.value.date];
390
- g && (o = g.find((l) => l.key === e.value.slotKey));
390
+ g && (a = g.find((l) => l.key === e.value.slotKey));
391
391
  }
392
392
  const c = qe(e.value), f = c.length > 0 ? e.services.find((g) => g.id === c[0]) : void 0, m = Je(e.value).length > 0, p = c.length > 0 && e.value.date !== void 0 && e.value.slotKey !== void 0 && (!n.insurance || e.value.insuranceType !== void 0) && (!n.specialty || m);
393
393
  return {
@@ -398,7 +398,7 @@ function Gn(e) {
398
398
  visibleSteps: i,
399
399
  isReadyToSubmit: p,
400
400
  durationMin: f == null ? void 0 : f.durationMin,
401
- selectedSlot: o
401
+ selectedSlot: a
402
402
  };
403
403
  }
404
404
  function bs(e, t) {
@@ -516,10 +516,10 @@ function ws(e, t) {
516
516
  function Jn(e, t) {
517
517
  let n = e;
518
518
  if (t.lockedOperatorId && n.operatorId !== t.lockedOperatorId && (n = { ...n, operatorId: t.lockedOperatorId }), (t.useSpecialties === void 0 ? t.specialties.length > 0 : t.useSpecialties) && t.specialties.length === 1 && n.specialtyId === void 0 && n.specialtyIds === void 0 && (n = { ...n, specialtyId: t.specialties[0].id }), t.autoSelectSingleService) {
519
- const i = Je(n), o = i.length > 0 ? t.services.filter(
519
+ const i = Je(n), a = i.length > 0 ? t.services.filter(
520
520
  (c) => c.specialtyId && i.includes(c.specialtyId)
521
521
  ) : t.services;
522
- o.length === 1 && n.serviceId === void 0 && n.serviceIds === void 0 && (n = { ...n, serviceId: o[0].id }, n.operatorId === void 0 && n.operatorIds === void 0 && (n = { ...n, operatorId: _e }));
522
+ a.length === 1 && n.serviceId === void 0 && n.serviceIds === void 0 && (n = { ...n, serviceId: a[0].id }, n.operatorId === void 0 && n.operatorIds === void 0 && (n = { ...n, operatorId: _e }));
523
523
  }
524
524
  return n;
525
525
  }
@@ -542,11 +542,11 @@ function Yn(e, t, n) {
542
542
  return Yt.filter(
543
543
  (p) => n.includes(p) && i.has(p)
544
544
  );
545
- const o = [];
546
- i.has("email") && o.push("email");
545
+ const a = [];
546
+ i.has("email") && a.push("email");
547
547
  const c = Wn(t), f = i.has("whatsapp");
548
- f && c && o.push("whatsapp"), !f && i.has("sms") && o.push("sms");
549
- const m = new Set(o);
548
+ f && c && a.push("whatsapp"), !f && i.has("sms") && a.push("sms");
549
+ const m = new Set(a);
550
550
  return Yt.filter((p) => m.has(p));
551
551
  }
552
552
  const Zn = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F\u06D4\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF])+/gi, Qn = /* @__PURE__ */ new Set([
@@ -559,11 +559,11 @@ const Zn = /https?:\/\/(?:(?![.,;:!?'»›]https?:\/\/)[^\s<>"\u060C\u061B\u061F
559
559
  "'",
560
560
  "»",
561
561
  "›"
562
- ]), Xn = { ")": "(", "]": "[", "}": "{" }, as = (e, t) => e.split(t).length - 1;
562
+ ]), Xn = { ")": "(", "]": "[", "}": "{" }, os = (e, t) => e.split(t).length - 1;
563
563
  function ei(e) {
564
564
  const t = {};
565
565
  for (const [r, i] of Object.entries(Xn))
566
- t[r] = as(e, r) - as(e, i);
566
+ t[r] = os(e, r) - os(e, i);
567
567
  let n = e.length;
568
568
  for (; n > 0; ) {
569
569
  const r = e[n - 1];
@@ -594,16 +594,16 @@ function ri(e) {
594
594
  let n = 0;
595
595
  const r = (i) => {
596
596
  if (i === "") return;
597
- const o = t[t.length - 1];
598
- (o == null ? void 0 : o.kind) === "text" ? o.text += i : t.push({ kind: "text", text: i });
597
+ const a = t[t.length - 1];
598
+ (a == null ? void 0 : a.kind) === "text" ? a.text += i : t.push({ kind: "text", text: i });
599
599
  };
600
600
  for (const i of e.matchAll(Zn)) {
601
- const o = i.index ?? 0, c = ei(ni(i[0]));
602
- ii(c) && (r(e.slice(n, o)), t.push({ kind: "link", text: c, href: c }), n = o + c.length);
601
+ const a = i.index ?? 0, c = ei(ni(i[0]));
602
+ ii(c) && (r(e.slice(n, a)), t.push({ kind: "link", text: c, href: c }), n = a + c.length);
603
603
  }
604
604
  return r(e.slice(n)), t;
605
605
  }
606
- const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 300, Jt = "ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]", Dt = (e) => e && /^https?:\/\//i.test(e) ? e : void 0, ci = (e, t) => ({
606
+ const cs = 500, ai = /^[A-Z0-9]{16}$/, oi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 300, Jt = "ds:rounded-[var(--radius-sm)] ds:underline ds:text-[var(--foreground)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]", Dt = (e) => e && /^https?:\/\//i.test(e) ? e : void 0, ci = (e, t) => ({
607
607
  street: (e == null ? void 0 : e.address.line1) ?? "",
608
608
  city: (e == null ? void 0 : e.address.city) ?? "",
609
609
  postcode: (e == null ? void 0 : e.address.postalCode) ?? "",
@@ -637,8 +637,8 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
637
637
  province: "billing.province"
638
638
  }, Ts = /^\d{5}$/, pi = (e) => {
639
639
  if (!e) return !1;
640
- const { line1: t, city: n, postalCode: r, country: i, state: o } = e.address;
641
- return !t.trim() || !n.trim() || !r.trim() || !i.trim() ? !1 : i.toUpperCase() !== "IT" ? !0 : !!o.trim() && Ts.test(r.trim());
640
+ const { line1: t, city: n, postalCode: r, country: i, state: a } = e.address;
641
+ return !t.trim() || !n.trim() || !r.trim() || !i.trim() ? !1 : i.toUpperCase() !== "IT" ? !0 : !!a.trim() && Ts.test(r.trim());
642
642
  }, mi = (e, t) => {
643
643
  var n;
644
644
  return {
@@ -672,14 +672,14 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
672
672
  onSubmit: n,
673
673
  requireCodiceFiscale: r = !1,
674
674
  requireDateOfBirth: i = !1,
675
- requireInsuranceNumber: o = !1,
675
+ requireInsuranceNumber: a = !1,
676
676
  insuranceType: c,
677
677
  showNote: f = !1,
678
678
  showReturningPatientFlag: m = !1,
679
679
  privacyPolicyUrl: p,
680
680
  termsUrl: g,
681
681
  practiceConsent: l,
682
- payment: a,
682
+ payment: o,
683
683
  paymentTermsUrl: u,
684
684
  paymentBlocked: y = !1,
685
685
  billingInDetails: x = !1,
@@ -688,11 +688,11 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
688
688
  validateCodiceFiscale: N,
689
689
  validateInsuranceNumber: S,
690
690
  submitting: I = !1,
691
- summarySlot: C,
691
+ summarySlot: w,
692
692
  defaultPhoneCountry: O,
693
693
  confirmationChannels: T,
694
694
  defaultConfirmationChannels: h,
695
- submitError: w
695
+ submitError: C
696
696
  }, $) => {
697
697
  var A, B, R, J, ne;
698
698
  const { t: b, i18n: ke } = W("ui"), F = Rt(), G = _(null), M = ye(
@@ -727,18 +727,18 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
727
727
  ze(!1), t({ ...e, ...d });
728
728
  },
729
729
  [e, t]
730
- ), le = a ? JSON.stringify([
731
- a.serviceId,
732
- a.kind,
733
- a.amountCents,
734
- a.currencyCode,
730
+ ), le = o ? JSON.stringify([
731
+ o.serviceId,
732
+ o.kind,
733
+ o.amountCents,
734
+ o.currencyCode,
735
735
  u
736
736
  ]) : void 0, [Kt, tt] = se(
737
737
  () => e.paymentAccepted ? le : void 0
738
- ), st = _(le), Nt = !!(a && e.paymentAccepted && Kt === le);
738
+ ), st = _(le), Nt = !!(o && e.paymentAccepted && Kt === le);
739
739
  K(() => {
740
- st.current !== le && (st.current = le, tt(void 0), e.paymentAccepted !== void 0 && q({ paymentAccepted: a ? !1 : void 0 }));
741
- }, [le, a, q, e.paymentAccepted]);
740
+ st.current !== le && (st.current = le, tt(void 0), e.paymentAccepted !== void 0 && q({ paymentAccepted: o ? !1 : void 0 }));
741
+ }, [le, o, q, e.paymentAccepted]);
742
742
  const nt = typeof (l == null ? void 0 : l.label) == "string" && l.label.trim() !== "", z = l && nt ? JSON.stringify([
743
743
  l.label,
744
744
  l.url ?? null,
@@ -749,7 +749,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
749
749
  K(() => {
750
750
  Ye.current !== z && (Ye.current = z, ue(void 0), e.practiceConsentAccepted !== void 0 && q({ practiceConsentAccepted: void 0 }));
751
751
  }, [z, q, e.practiceConsentAccepted]);
752
- const Ee = a ? Pt(a.amountCents, a.currencyCode, ke.language) : "", P = Dt(u), we = x && !!a && !y, he = r, wt = (O || "it").toLowerCase(), pe = !we || pi(e.billing), ve = ci(e.billing, wt), Ze = ve.country === "it", pt = _(null), re = _(
752
+ const Ee = o ? Pt(o.amountCents, o.currencyCode, ke.language) : "", P = Dt(u), we = x && !!o && !y, he = r, wt = (O || "it").toLowerCase(), pe = !we || pi(e.billing), ve = ci(e.billing, wt), Ze = ve.country === "it", pt = _(null), re = _(
753
753
  null
754
754
  ), Re = (A = e.billing) == null ? void 0 : A.address.line1.trim(), it = ((R = (B = e.billing) == null ? void 0 : B.address.line2) == null ? void 0 : R.trim()) || null;
755
755
  K(() => {
@@ -776,9 +776,9 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
776
776
  ), Fe = L(
777
777
  () => As(T),
778
778
  [T]
779
- ), Ce = !a && !y && Fe.length >= 2, H = _(!1);
779
+ ), Ce = !o && !y && Fe.length >= 2, H = _(!1);
780
780
  K(() => {
781
- if (a || y) return;
781
+ if (o || y) return;
782
782
  if (!Ce) {
783
783
  e.confirmationChannels !== void 0 && q({ confirmationChannels: void 0 });
784
784
  return;
@@ -795,7 +795,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
795
795
  H.current = !0, q({ confirmationChannels: d });
796
796
  }, [
797
797
  Ce,
798
- a,
798
+ o,
799
799
  y,
800
800
  Fe,
801
801
  e.mobilePhone,
@@ -815,7 +815,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
815
815
  ge(Et);
816
816
  return;
817
817
  }
818
- if (!oi.test(d)) {
818
+ if (!ai.test(d)) {
819
819
  ge({
820
820
  state: "invalid",
821
821
  hint: b("booking.details.codiceFiscale.invalidFormat")
@@ -845,7 +845,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
845
845
  D = !1, Q.current && clearTimeout(Q.current);
846
846
  };
847
847
  }, [he, gt, e.codiceFiscale, b]);
848
- const Ue = o && c === "public";
848
+ const Ue = a && c === "public";
849
849
  K(() => {
850
850
  const d = e.insuranceNumber;
851
851
  if (!Ue || !ht || !d) {
@@ -866,19 +866,19 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
866
866
  );
867
867
  }, ds);
868
868
  }, [Ue, ht, e.insuranceNumber, b]);
869
- const ot = L(
870
- () => !!(e.email && ai.test(e.email)),
869
+ const at = L(
870
+ () => !!(e.email && oi.test(e.email)),
871
871
  [e.email]
872
872
  ), Pe = L(
873
873
  () => !!(e.mobilePhone && e.mobilePhone.length >= 6),
874
874
  [e.mobilePhone]
875
875
  ), Ct = L(() => {
876
876
  var d, D;
877
- return !(!((d = e.firstName) != null && d.trim()) || !((D = e.lastName) != null && D.trim()) || !ot || !Pe || he && (X.state !== "valid" || X.value !== e.codiceFiscale) || !pe || i && !e.dateOfBirth || Ue && xe.state !== "valid");
877
+ return !(!((d = e.firstName) != null && d.trim()) || !((D = e.lastName) != null && D.trim()) || !at || !Pe || he && (X.state !== "valid" || X.value !== e.codiceFiscale) || !pe || i && !e.dateOfBirth || Ue && xe.state !== "valid");
878
878
  }, [
879
879
  e.firstName,
880
880
  e.lastName,
881
- ot,
881
+ at,
882
882
  Pe,
883
883
  he,
884
884
  pe,
@@ -889,10 +889,10 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
889
889
  e.dateOfBirth,
890
890
  Ue,
891
891
  xe.state
892
- ]), Ve = E != null && E.trim() ? E : void 0, vt = Ve !== void 0, Ut = !vt || !!e.criticalInformationAccepted, Ae = !nt || !(l != null && l.required) || Ne, Ht = !!(e.privacyConsent && e.termsConsent && Ut && Ae), bt = !Ce || j.length > 0, Me = Ct && Ht && bt && (!a || Nt) && !y && !ce, me = !Me && !ce && !y, He = `${F}-submit-hint`, te = {
892
+ ]), Ve = E != null && E.trim() ? E : void 0, vt = Ve !== void 0, Ut = !vt || !!e.criticalInformationAccepted, Ae = !nt || !(l != null && l.required) || Ne, Ht = !!(e.privacyConsent && e.termsConsent && Ut && Ae), bt = !Ce || j.length > 0, Me = Ct && Ht && bt && (!o || Nt) && !y && !ce, me = !Me && !ce && !y, He = `${F}-submit-hint`, te = {
893
893
  firstName: ee.firstName && !((J = e.firstName) != null && J.trim()) ? b("booking.details.firstName.required") : void 0,
894
894
  lastName: ee.lastName && !((ne = e.lastName) != null && ne.trim()) ? b("booking.details.lastName.required") : void 0,
895
- email: ee.email && !ot ? b("booking.details.email.invalid") : void 0,
895
+ email: ee.email && !at ? b("booking.details.email.invalid") : void 0,
896
896
  mobilePhone: ee.mobilePhone && !Pe ? b("booking.details.mobilePhone.invalid") : void 0,
897
897
  codiceFiscale: ee.codiceFiscale && X.state === "invalid" ? X.hint ?? b("booking.details.codiceFiscale.invalid") : ee.codiceFiscale && !e.codiceFiscale ? b("booking.details.fieldRequired") : void 0,
898
898
  dateOfBirth: ee.dateOfBirth && !e.dateOfBirth ? b("booking.details.dateOfBirth.required") : void 0,
@@ -906,7 +906,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
906
906
  (d) => Be.has(d) && te[d] !== void 0
907
907
  );
908
908
  yt.length !== Be.size && Ie(new Set(yt));
909
- const oe = (d) => !Be.has(d), At = async (d) => {
909
+ const ae = (d) => !Be.has(d), At = async (d) => {
910
910
  if (d.preventDefault(), !ce && !fe.current && !Me && Ie(
911
911
  new Set(
912
912
  ls.filter(
@@ -942,7 +942,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
942
942
  // Sent whenever the practice's box is shown, ticked or not, so the
943
943
  // server can record the answer; left out when there is no box.
944
944
  ...nt ? { practiceConsentAccepted: Ne } : {},
945
- ...a ? { paymentAccepted: !0 } : {},
945
+ ...o ? { paymentAccepted: !0 } : {},
946
946
  codiceFiscale: e.codiceFiscale,
947
947
  dateOfBirth: e.dateOfBirth,
948
948
  insuranceNumber: e.insuranceNumber,
@@ -974,7 +974,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
974
974
  required: !0,
975
975
  description: X.state === "pending" ? b("booking.details.codiceFiscale.checking") : b("booking.details.codiceFiscale.helper"),
976
976
  error: te.codiceFiscale,
977
- announceError: oe("codiceFiscale"),
977
+ announceError: ae("codiceFiscale"),
978
978
  children: /* @__PURE__ */ s(
979
979
  Tt,
980
980
  {
@@ -1030,7 +1030,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1030
1030
  "aria-busy": ce || void 0,
1031
1031
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1032
1032
  children: [
1033
- C,
1033
+ w,
1034
1034
  /* @__PURE__ */ v("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2", children: [
1035
1035
  /* @__PURE__ */ s(
1036
1036
  Ge,
@@ -1038,7 +1038,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1038
1038
  label: b("booking.details.firstName.label"),
1039
1039
  required: !0,
1040
1040
  error: te.firstName,
1041
- announceError: oe("firstName"),
1041
+ announceError: ae("firstName"),
1042
1042
  children: /* @__PURE__ */ s(
1043
1043
  Tt,
1044
1044
  {
@@ -1056,7 +1056,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1056
1056
  label: b("booking.details.lastName.label"),
1057
1057
  required: !0,
1058
1058
  error: te.lastName,
1059
- announceError: oe("lastName"),
1059
+ announceError: ae("lastName"),
1060
1060
  children: /* @__PURE__ */ s(
1061
1061
  Tt,
1062
1062
  {
@@ -1076,7 +1076,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1076
1076
  label: b("booking.details.email.label"),
1077
1077
  required: !0,
1078
1078
  error: te.email,
1079
- announceError: oe("email"),
1079
+ announceError: ae("email"),
1080
1080
  children: /* @__PURE__ */ s(
1081
1081
  Gs,
1082
1082
  {
@@ -1093,7 +1093,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1093
1093
  label: b("booking.details.mobilePhone.label"),
1094
1094
  required: !0,
1095
1095
  error: te.mobilePhone,
1096
- announceError: oe("mobilePhone"),
1096
+ announceError: ae("mobilePhone"),
1097
1097
  children: /* @__PURE__ */ s(
1098
1098
  Js,
1099
1099
  {
@@ -1115,7 +1115,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1115
1115
  label: b("booking.details.dateOfBirth.label"),
1116
1116
  required: !0,
1117
1117
  error: te.dateOfBirth,
1118
- announceError: oe("dateOfBirth"),
1118
+ announceError: ae("dateOfBirth"),
1119
1119
  children: /* @__PURE__ */ s(
1120
1120
  Hs,
1121
1121
  {
@@ -1137,7 +1137,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1137
1137
  required: !0,
1138
1138
  description: xe.state === "pending" ? b("booking.details.insuranceNumber.checking") : void 0,
1139
1139
  error: te.insuranceNumber,
1140
- announceError: oe("insuranceNumber"),
1140
+ announceError: ae("insuranceNumber"),
1141
1141
  children: /* @__PURE__ */ s(
1142
1142
  Tt,
1143
1143
  {
@@ -1213,11 +1213,11 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1213
1213
  province: te[V.province]
1214
1214
  },
1215
1215
  announceErrors: {
1216
- country: oe(V.country),
1217
- street: oe(V.street),
1218
- city: oe(V.city),
1219
- postcode: oe(V.postcode),
1220
- province: oe(V.province)
1216
+ country: ae(V.country),
1217
+ street: ae(V.street),
1218
+ city: ae(V.city),
1219
+ postcode: ae(V.postcode),
1220
+ province: ae(V.province)
1221
1221
  }
1222
1222
  }
1223
1223
  )
@@ -1243,7 +1243,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1243
1243
  }
1244
1244
  ) : null,
1245
1245
  m ? /* @__PURE__ */ s(
1246
- at,
1246
+ ot,
1247
1247
  {
1248
1248
  checked: !!e.returningPatient,
1249
1249
  onCheckedChange: (d) => q({ returningPatient: d === !0 }),
@@ -1266,26 +1266,34 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1266
1266
  children: b("booking.details.criticalInformation.heading")
1267
1267
  }
1268
1268
  ),
1269
- /* @__PURE__ */ s("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]", children: ri(Ve).map(
1270
- (d, D) => d.kind === "link" ? /* @__PURE__ */ s(
1271
- "a",
1272
- {
1273
- href: d.href,
1274
- target: "_blank",
1275
- rel: "noopener noreferrer",
1276
- className: Jt,
1277
- children: d.text
1278
- },
1279
- D
1280
- ) : /* @__PURE__ */ s(qs, { children: d.text }, D)
1281
- ) }),
1282
1269
  /* @__PURE__ */ s(
1283
- at,
1270
+ "p",
1271
+ {
1272
+ dir: "auto",
1273
+ className: "type-body-sm ds:m-0 ds:whitespace-pre-wrap ds:break-words ds:text-[var(--foreground)]",
1274
+ children: ri(Ve).map(
1275
+ (d, D) => d.kind === "link" ? /* @__PURE__ */ s(
1276
+ "a",
1277
+ {
1278
+ href: d.href,
1279
+ target: "_blank",
1280
+ rel: "noopener noreferrer",
1281
+ dir: "ltr",
1282
+ className: Jt,
1283
+ children: d.text
1284
+ },
1285
+ D
1286
+ ) : /* @__PURE__ */ s(qs, { children: d.text }, D)
1287
+ )
1288
+ }
1289
+ ),
1290
+ /* @__PURE__ */ s(
1291
+ ot,
1284
1292
  {
1285
1293
  checked: !!e.criticalInformationAccepted,
1286
1294
  onCheckedChange: (d) => q({ criticalInformationAccepted: d === !0 }),
1287
1295
  "aria-required": !0,
1288
- label: /* @__PURE__ */ v(ae, { children: [
1296
+ label: /* @__PURE__ */ v(oe, { children: [
1289
1297
  b("booking.details.criticalInformation.accept"),
1290
1298
  /* @__PURE__ */ s(
1291
1299
  "span",
@@ -1301,7 +1309,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1301
1309
  ]
1302
1310
  }
1303
1311
  ) : null,
1304
- a ? /* @__PURE__ */ v(
1312
+ o ? /* @__PURE__ */ v(
1305
1313
  "div",
1306
1314
  {
1307
1315
  "data-component": "booking-payment-notice",
@@ -1350,7 +1358,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1350
1358
  }
1351
1359
  ) : null,
1352
1360
  /* @__PURE__ */ s(
1353
- at,
1361
+ ot,
1354
1362
  {
1355
1363
  checked: Nt,
1356
1364
  onCheckedChange: (d) => {
@@ -1359,7 +1367,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1359
1367
  ), q({ paymentAccepted: d === !0 });
1360
1368
  },
1361
1369
  "aria-required": !0,
1362
- label: /* @__PURE__ */ v(ae, { children: [
1370
+ label: /* @__PURE__ */ v(oe, { children: [
1363
1371
  b("booking.payment.accept", { amount: Ee }),
1364
1372
  /* @__PURE__ */ s(
1365
1373
  "span",
@@ -1377,12 +1385,12 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1377
1385
  ) : null,
1378
1386
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
1379
1387
  /* @__PURE__ */ s(
1380
- at,
1388
+ ot,
1381
1389
  {
1382
1390
  checked: !!e.privacyConsent,
1383
1391
  onCheckedChange: (d) => q({ privacyConsent: d === !0 }),
1384
1392
  "aria-required": !0,
1385
- label: /* @__PURE__ */ v(ae, { children: [
1393
+ label: /* @__PURE__ */ v(oe, { children: [
1386
1394
  St(
1387
1395
  "booking.details.consent.privacy.label",
1388
1396
  p
@@ -1399,12 +1407,12 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1399
1407
  }
1400
1408
  ),
1401
1409
  /* @__PURE__ */ s(
1402
- at,
1410
+ ot,
1403
1411
  {
1404
1412
  checked: !!e.termsConsent,
1405
1413
  onCheckedChange: (d) => q({ termsConsent: d === !0 }),
1406
1414
  "aria-required": !0,
1407
- label: /* @__PURE__ */ v(ae, { children: [
1415
+ label: /* @__PURE__ */ v(oe, { children: [
1408
1416
  St(
1409
1417
  "booking.details.consent.terms.label",
1410
1418
  g
@@ -1421,7 +1429,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1421
1429
  }
1422
1430
  ),
1423
1431
  l && nt ? /* @__PURE__ */ s(
1424
- at,
1432
+ ot,
1425
1433
  {
1426
1434
  checked: Ne,
1427
1435
  onCheckedChange: (d) => {
@@ -1430,17 +1438,18 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1430
1438
  ), q({ practiceConsentAccepted: d === !0 });
1431
1439
  },
1432
1440
  "aria-required": l.required || void 0,
1433
- label: /* @__PURE__ */ v(ae, { children: [
1441
+ label: /* @__PURE__ */ v(oe, { children: [
1434
1442
  Dt(l.url) ? /* @__PURE__ */ s(
1435
1443
  "a",
1436
1444
  {
1445
+ dir: "auto",
1437
1446
  href: Dt(l.url),
1438
1447
  target: "_blank",
1439
1448
  rel: "noopener noreferrer",
1440
1449
  className: Jt,
1441
1450
  children: l.label
1442
1451
  }
1443
- ) : l.label,
1452
+ ) : /* @__PURE__ */ s("span", { dir: "auto", children: l.label }),
1444
1453
  l.required ? /* @__PURE__ */ s(
1445
1454
  "span",
1446
1455
  {
@@ -1478,7 +1487,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1478
1487
  )
1479
1488
  }
1480
1489
  ) : null,
1481
- w || Z || y ? /* @__PURE__ */ s(ie, { variant: "error", children: /* @__PURE__ */ s(ie.Description, { children: w ?? b(
1490
+ C || Z || y ? /* @__PURE__ */ s(ie, { variant: "error", children: /* @__PURE__ */ s(ie.Description, { children: C ?? b(
1482
1491
  y ? "booking.payment.unavailable" : "booking.payment.submitFailed"
1483
1492
  ) }) }) : null,
1484
1493
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
@@ -1501,7 +1510,7 @@ const cs = 500, oi = /^[A-Z0-9]{16}$/, ai = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, ds = 3
1501
1510
  "aria-disabled": !Me || void 0,
1502
1511
  "aria-describedby": me ? He : void 0,
1503
1512
  startIcon: ce ? /* @__PURE__ */ s(fs, { variant: "pulse", size: "sm" }) : void 0,
1504
- children: a ? b("booking.payment.submit", { amount: Ee }) : b("booking.details.submit")
1513
+ children: o ? b("booking.payment.submit", { amount: Ee }) : b("booking.details.submit")
1505
1514
  }
1506
1515
  )
1507
1516
  ] })
@@ -1535,15 +1544,15 @@ function gi(e) {
1535
1544
  }
1536
1545
  function hi(e, t, n) {
1537
1546
  const r = e.filter(
1538
- (o) => t.includes(o.id)
1547
+ (a) => t.includes(a.id)
1539
1548
  ), i = (n == null ? void 0 : n.serviceId) ?? (t.length === 1 ? t[0] : void 0);
1540
1549
  if (i) {
1541
- const o = r.find((f) => f.id === i);
1542
- if (!o) return { blocked: !0 };
1543
- const c = Os(o);
1544
- return { payment: c, blocked: !!(o.payment && !c) };
1550
+ const a = r.find((f) => f.id === i);
1551
+ if (!a) return { blocked: !0 };
1552
+ const c = Os(a);
1553
+ return { payment: c, blocked: !!(a.payment && !c) };
1545
1554
  }
1546
- return { blocked: r.some((o) => !!o.payment) };
1555
+ return { blocked: r.some((a) => !!a.payment) };
1547
1556
  }
1548
1557
  function Ft(e) {
1549
1558
  return e ? JSON.stringify([
@@ -1559,7 +1568,7 @@ function vi({
1559
1568
  availableSlots: n,
1560
1569
  onSubmit: r,
1561
1570
  onChange: i,
1562
- paymentState: o,
1571
+ paymentState: a,
1563
1572
  submitting: c,
1564
1573
  paymentTermsUrl: f,
1565
1574
  renderPayment: m
@@ -1576,13 +1585,13 @@ function vi({
1576
1585
  t.slotKey
1577
1586
  ]), g = _(
1578
1587
  void 0
1579
- ), a = (t.date ? (fe = n[t.date]) == null ? void 0 : fe.find((Z) => Z.key === t.slotKey) : void 0) ?? (((We = g.current) == null ? void 0 : We.selection) === p ? g.current.slot : void 0), u = hi(
1588
+ ), o = (t.date ? (fe = n[t.date]) == null ? void 0 : fe.find((Z) => Z.key === t.slotKey) : void 0) ?? (((We = g.current) == null ? void 0 : We.selection) === p ? g.current.slot : void 0), u = hi(
1580
1589
  e,
1581
1590
  qe(t),
1582
- a
1591
+ o
1583
1592
  ), y = u.blocked || !!(u.payment && !m), x = JSON.stringify([
1584
1593
  p,
1585
- a == null ? void 0 : a.serviceId,
1594
+ o == null ? void 0 : o.serviceId,
1586
1595
  Ft(u.payment),
1587
1596
  f,
1588
1597
  y
@@ -1597,17 +1606,17 @@ function vi({
1597
1606
  }, [N, k, i, t]);
1598
1607
  const S = _(x);
1599
1608
  S.current = x;
1600
- const [I, C] = se({ status: "idle" }), O = _(0), T = _(!1), h = _(!0), w = _(!1), $ = _(void 0), b = _(x);
1609
+ const [I, w] = se({ status: "idle" }), O = _(0), T = _(!1), h = _(!0), C = _(!1), $ = _(void 0), b = _(x);
1601
1610
  K(() => (h.current = !0, () => {
1602
1611
  h.current = !1, O.current += 1;
1603
1612
  }), []);
1604
1613
  const ke = I.status === "payment" || I.status === "success";
1605
1614
  K(() => {
1606
- b.current === x || w.current || ke || (b.current = x, O.current += 1, T.current = !1, C({ status: "idle" }));
1615
+ b.current === x || C.current || ke || (b.current = x, O.current += 1, T.current = !1, w({ status: "idle" }));
1607
1616
  }, [x, ke]);
1608
1617
  const F = ke || b.current === x ? I.session : void 0, G = L(
1609
- () => F && (o == null ? void 0 : o.sessionId) === F.id ? o : F ? { sessionId: F.id, status: "ready" } : void 0,
1610
- [F, o]
1618
+ () => F && (a == null ? void 0 : a.sessionId) === F.id ? a : F ? { sessionId: F.id, status: "ready" } : void 0,
1619
+ [F, a]
1611
1620
  );
1612
1621
  F && G && "phase" in G && G.phase === "completion" && ($.current = F.id);
1613
1622
  const M = L(
@@ -1619,21 +1628,21 @@ function vi({
1619
1628
  [F, G]
1620
1629
  );
1621
1630
  K(() => {
1622
- !F || !M || w.current || (M.status === "paid" ? (w.current = !0, C((Z) => ({ ...Z, status: "success" }))) : M.status === "cancelled" && (O.current += 1, T.current = !1, g.current = void 0, i({
1631
+ !F || !M || C.current || (M.status === "paid" ? (C.current = !0, w((Z) => ({ ...Z, status: "success" }))) : M.status === "cancelled" && (O.current += 1, T.current = !1, g.current = void 0, i({
1623
1632
  ...t,
1624
1633
  details: { ...t.details, paymentAccepted: !1 }
1625
- }), C({ status: "idle", cancelled: !0 })));
1634
+ }), w({ status: "idle", cancelled: !0 })));
1626
1635
  }, [F, M, i, t]);
1627
1636
  const Se = () => {
1628
- O.current += 1, T.current = !1, w.current = !1, $.current = void 0, g.current = void 0, b.current = S.current, C({ status: "idle" });
1637
+ O.current += 1, T.current = !1, C.current = !1, $.current = void 0, g.current = void 0, b.current = S.current, w({ status: "idle" });
1629
1638
  }, ut = async (Z) => {
1630
1639
  var De, ee, Le, de, Be;
1631
- if (!(a != null && a.available) || y || c || T.current || I.status === "payment" || w.current || u.payment && !Z.paymentAccepted) return;
1632
- T.current = !0, g.current = { selection: p, slot: { ...a } };
1640
+ if (!(o != null && o.available) || y || c || T.current || I.status === "payment" || C.current || u.payment && !Z.paymentAccepted) return;
1641
+ T.current = !0, g.current = { selection: p, slot: { ...o } };
1633
1642
  const ze = ++O.current, ce = x;
1634
1643
  b.current = ce;
1635
1644
  const X = {
1636
- slot: { ...a, meta: a.meta ? { ...a.meta } : void 0 },
1645
+ slot: { ...o, meta: o.meta ? { ...o.meta } : void 0 },
1637
1646
  value: {
1638
1647
  ...t,
1639
1648
  serviceIds: (De = t.serviceIds) == null ? void 0 : De.slice(),
@@ -1648,7 +1657,7 @@ function vi({
1648
1657
  },
1649
1658
  ...u.payment ? { payment: { ...u.payment } } : {}
1650
1659
  }, ge = () => h.current && O.current === ze && S.current === ce;
1651
- C({ status: "submitting" });
1660
+ w({ status: "submitting" });
1652
1661
  let xe = !1;
1653
1662
  try {
1654
1663
  const Ie = await r(X);
@@ -1656,17 +1665,17 @@ function vi({
1656
1665
  if (X.payment) {
1657
1666
  const Q = Ie == null ? void 0 : Ie.paymentSession;
1658
1667
  if (!((Be = Q == null ? void 0 : Q.id) != null && Be.trim()) || Ft(Q.payment) !== Ft(X.payment)) {
1659
- C({ status: "error" });
1668
+ w({ status: "error" });
1660
1669
  return;
1661
1670
  }
1662
- xe = !0, C({
1671
+ xe = !0, w({
1663
1672
  status: "payment",
1664
1673
  snapshot: X,
1665
1674
  session: { id: Q.id, payment: { ...Q.payment } }
1666
1675
  });
1667
- } else Ie != null && Ie.paymentSession ? C({ status: "error" }) : (w.current = !0, C({ status: "success", snapshot: X }));
1676
+ } else Ie != null && Ie.paymentSession ? w({ status: "error" }) : (C.current = !0, w({ status: "success", snapshot: X }));
1668
1677
  } catch {
1669
- ge() && C({ status: "error" });
1678
+ ge() && w({ status: "error" });
1670
1679
  } finally {
1671
1680
  ge() && !xe && (T.current = !1);
1672
1681
  }
@@ -1712,7 +1721,7 @@ const bi = It(
1712
1721
  ), yi = [
1713
1722
  [
1714
1723
  /\b(estetic|aesthetic|botox|filler|mesoterap|chirurgia\s*plastic)/i,
1715
- os
1724
+ as
1716
1725
  ],
1717
1726
  [/\b(cardio|ecg|elettrocardio|ecocardio|cuore|heart)/i, pn],
1718
1727
  [/\b(dent|odonto|tooth|teeth|pulizia|igien|smile)/i, Ln],
@@ -1725,7 +1734,7 @@ const bi = It(
1725
1734
  [/\b(farmaco|pharm|pillol|refill)/i, En],
1726
1735
  [/\b(chirurg|surg|intervent|operat)/i, Mn],
1727
1736
  [/\b(scan|rx|x-?ray|raggi|imag|radio|risonan|ecograf|ultras)/i, gn],
1728
- [/\b(vacc|inject|inie|punto)/i, os],
1737
+ [/\b(vacc|inject|inie|punto)/i, as],
1729
1738
  [/\b(derma|skin|pelle)/i, hn],
1730
1739
  [/\b(prima\s*visit|first\s*visit|consult|consulto|valutaz)/i, vn],
1731
1740
  [/\b(general|medicin|family|control|check[-\s]?up)/i, yn]
@@ -1742,13 +1751,13 @@ function Si(e) {
1742
1751
  function Ds() {
1743
1752
  const { t: e, i18n: t } = W("ui");
1744
1753
  return (n) => {
1745
- const r = gi(n), i = (c) => Pt(c.amountCents, c.currencyCode, t.language), o = r.price ? "label" in r.price ? r.price.label : i(r.price.amount) : void 0;
1754
+ const r = gi(n), i = (c) => Pt(c.amountCents, c.currencyCode, t.language), a = r.price ? "label" in r.price ? r.price.label : i(r.price.amount) : void 0;
1746
1755
  return r.payment === "unavailable" ? {
1747
- price: o,
1756
+ price: a,
1748
1757
  payment: e("booking.payment.unavailable"),
1749
1758
  paymentTone: "error"
1750
1759
  } : {
1751
- price: o,
1760
+ price: a,
1752
1761
  payment: r.payment ? e(`booking.payment.${r.payment.kind}`, {
1753
1762
  amount: i(r.payment)
1754
1763
  }) : void 0,
@@ -1787,13 +1796,13 @@ function Ni({
1787
1796
  locale: r,
1788
1797
  loading: i
1789
1798
  }) {
1790
- const { t: o } = W("ui"), c = L(() => t ? xt(be(t)) : e.length > 0 ? xt(be(e[0])) : xt(/* @__PURE__ */ new Date()), [t, e]), [f, m] = se(c), [p, g] = se(null), l = L(() => {
1791
- const N = xt(f), S = rn(f), I = N.getDay(), C = S.getDate(), O = [];
1799
+ const { t: a } = W("ui"), c = L(() => t ? xt(be(t)) : e.length > 0 ? xt(be(e[0])) : xt(/* @__PURE__ */ new Date()), [t, e]), [f, m] = se(c), [p, g] = se(null), l = L(() => {
1800
+ const N = xt(f), S = rn(f), I = N.getDay(), w = S.getDate(), O = [];
1792
1801
  for (let T = I; T > 0; T -= 1) {
1793
1802
  const h = new Date(N);
1794
1803
  h.setDate(N.getDate() - T), O.push(h);
1795
1804
  }
1796
- for (let T = 0; T < C; T += 1) {
1805
+ for (let T = 0; T < w; T += 1) {
1797
1806
  const h = new Date(N);
1798
1807
  h.setDate(N.getDate() + T), O.push(h);
1799
1808
  }
@@ -1802,7 +1811,7 @@ function Ni({
1802
1811
  h.setDate(T.getDate() + 1), O.push(h);
1803
1812
  }
1804
1813
  return O;
1805
- }, [f]), a = L(() => {
1814
+ }, [f]), o = L(() => {
1806
1815
  try {
1807
1816
  return new Intl.DateTimeFormat(r, {
1808
1817
  month: "long",
@@ -1814,12 +1823,12 @@ function Ni({
1814
1823
  }, [f, r]), u = L(() => {
1815
1824
  const N = new Date(2024, 0, 7);
1816
1825
  return Array.from({ length: 7 }, (S, I) => {
1817
- const C = new Date(N);
1818
- C.setDate(N.getDate() + I);
1826
+ const w = new Date(N);
1827
+ w.setDate(N.getDate() + I);
1819
1828
  try {
1820
- return new Intl.DateTimeFormat(r, { weekday: "short" }).format(C);
1829
+ return new Intl.DateTimeFormat(r, { weekday: "short" }).format(w);
1821
1830
  } catch {
1822
- return _t(C, "EEE");
1831
+ return _t(w, "EEE");
1823
1832
  }
1824
1833
  });
1825
1834
  }, [r]), y = L(() => new Set(e), [e]), x = ye(
@@ -1871,7 +1880,7 @@ function Ni({
1871
1880
  {
1872
1881
  role: "status",
1873
1882
  "aria-live": "polite",
1874
- "aria-label": o("common.loading"),
1883
+ "aria-label": a("common.loading"),
1875
1884
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
1876
1885
  children: [
1877
1886
  /* @__PURE__ */ s(Lt, { variant: "text", width: "40%" }),
@@ -1883,8 +1892,8 @@ function Ni({
1883
1892
  /* @__PURE__ */ s(
1884
1893
  is,
1885
1894
  {
1886
- icon: /* @__PURE__ */ s(an, {}),
1887
- "aria-label": o("booking.previousMonth"),
1895
+ icon: /* @__PURE__ */ s(on, {}),
1896
+ "aria-label": a("booking.previousMonth"),
1888
1897
  size: "sm",
1889
1898
  intent: "ghost",
1890
1899
  flipIconInRtl: !0,
@@ -1898,14 +1907,14 @@ function Ni({
1898
1907
  {
1899
1908
  className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]",
1900
1909
  "aria-live": "polite",
1901
- children: a
1910
+ children: o
1902
1911
  }
1903
1912
  ),
1904
1913
  /* @__PURE__ */ s(
1905
1914
  is,
1906
1915
  {
1907
1916
  icon: /* @__PURE__ */ s(cn, {}),
1908
- "aria-label": o("booking.nextMonth"),
1917
+ "aria-label": a("booking.nextMonth"),
1909
1918
  size: "sm",
1910
1919
  intent: "ghost",
1911
1920
  flipIconInRtl: !0,
@@ -1919,7 +1928,7 @@ function Ni({
1919
1928
  "div",
1920
1929
  {
1921
1930
  role: "grid",
1922
- "aria-label": o("booking.monthGridLabel"),
1931
+ "aria-label": a("booking.monthGridLabel"),
1923
1932
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
1924
1933
  children: [
1925
1934
  /* @__PURE__ */ s(
@@ -1943,8 +1952,8 @@ function Ni({
1943
1952
  {
1944
1953
  role: "row",
1945
1954
  className: "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-2xs)]",
1946
- children: l.slice(S * 7, S * 7 + 7).map((I, C) => {
1947
- const O = S * 7 + C, T = Ot(I, f), h = T && x(I), w = t ? rs(I, be(t)) : !1, $ = T ? w ? "selected" : h ? "available" : "unavailable" : "outside", b = k ? rs(k, I) : !1, ke = (() => {
1955
+ children: l.slice(S * 7, S * 7 + 7).map((I, w) => {
1956
+ const O = S * 7 + w, T = Ot(I, f), h = T && x(I), C = t ? rs(I, be(t)) : !1, $ = T ? C ? "selected" : h ? "available" : "unavailable" : "outside", b = k ? rs(k, I) : !1, ke = (() => {
1948
1957
  try {
1949
1958
  return new Intl.DateTimeFormat(r, {
1950
1959
  dateStyle: "full"
@@ -1959,7 +1968,7 @@ function Ni({
1959
1968
  type: "button",
1960
1969
  role: "gridcell",
1961
1970
  "aria-label": ke,
1962
- "aria-selected": w || void 0,
1971
+ "aria-selected": C || void 0,
1963
1972
  "aria-disabled": !h || void 0,
1964
1973
  tabIndex: b ? 0 : -1,
1965
1974
  disabled: !h,
@@ -2013,47 +2022,47 @@ function Ci({
2013
2022
  onSelect: n,
2014
2023
  showDuration: r
2015
2024
  }) {
2016
- const { t: i } = W("ui"), o = Ds(), c = Rt(), [f, m] = se(() => {
2025
+ const { t: i } = W("ui"), a = Ds(), c = Rt(), [f, m] = se(() => {
2017
2026
  if (t) {
2018
- const a = e.findIndex((u) => u.id === t);
2019
- if (a >= 0) return a;
2027
+ const o = e.findIndex((u) => u.id === t);
2028
+ if (o >= 0) return o;
2020
2029
  }
2021
2030
  return 0;
2022
- }), p = _(/* @__PURE__ */ new Map()), g = ye((a) => {
2031
+ }), p = _(/* @__PURE__ */ new Map()), g = ye((o) => {
2023
2032
  var u;
2024
- (u = p.current.get(a)) == null || u.focus();
2033
+ (u = p.current.get(o)) == null || u.focus();
2025
2034
  }, []), l = ye(
2026
- (a, u, y) => {
2035
+ (o, u, y) => {
2027
2036
  const x = e.length;
2028
2037
  if (x !== 0)
2029
- switch (a.key) {
2038
+ switch (o.key) {
2030
2039
  case "ArrowDown":
2031
2040
  case "ArrowRight": {
2032
- a.preventDefault();
2041
+ o.preventDefault();
2033
2042
  const k = (u + 1) % x;
2034
2043
  m(k), g(k);
2035
2044
  break;
2036
2045
  }
2037
2046
  case "ArrowUp":
2038
2047
  case "ArrowLeft": {
2039
- a.preventDefault();
2048
+ o.preventDefault();
2040
2049
  const k = (u - 1 + x) % x;
2041
2050
  m(k), g(k);
2042
2051
  break;
2043
2052
  }
2044
2053
  case "Home": {
2045
- a.preventDefault(), m(0), g(0);
2054
+ o.preventDefault(), m(0), g(0);
2046
2055
  break;
2047
2056
  }
2048
2057
  case "End": {
2049
- a.preventDefault();
2058
+ o.preventDefault();
2050
2059
  const k = x - 1;
2051
2060
  m(k), g(k);
2052
2061
  break;
2053
2062
  }
2054
2063
  case "Enter":
2055
2064
  case " ": {
2056
- a.preventDefault(), n(y);
2065
+ o.preventDefault(), n(y);
2057
2066
  break;
2058
2067
  }
2059
2068
  }
@@ -2067,35 +2076,35 @@ function Ci({
2067
2076
  "aria-label": i("booking.serviceListLabel"),
2068
2077
  id: c,
2069
2078
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
2070
- children: e.map((a, u) => {
2071
- const y = t === a.id, x = f === u, { price: k, payment: E, paymentTone: N } = o(a), S = k ? E ? i("booking.serviceCardLabelPayment", {
2072
- label: a.label,
2079
+ children: e.map((o, u) => {
2080
+ const y = t === o.id, x = f === u, { price: k, payment: E, paymentTone: N } = a(o), S = k ? E ? i("booking.serviceCardLabelPayment", {
2081
+ label: o.label,
2073
2082
  price: k,
2074
2083
  payment: E
2075
2084
  }) : i("booking.serviceCardLabelPrice", {
2076
- label: a.label,
2085
+ label: o.label,
2077
2086
  price: k
2078
2087
  }) : E ? i("booking.serviceCardLabelPaymentNoPrice", {
2079
- label: a.label,
2088
+ label: o.label,
2080
2089
  payment: E
2081
2090
  }) : r ? i("booking.serviceCardLabel", {
2082
- label: a.label,
2083
- duration: a.durationMin
2084
- }) : a.label, I = Si(a);
2091
+ label: o.label,
2092
+ duration: o.durationMin
2093
+ }) : o.label, I = Si(o);
2085
2094
  return /* @__PURE__ */ v(
2086
2095
  "button",
2087
2096
  {
2088
- ref: (C) => {
2089
- C ? p.current.set(u, C) : p.current.delete(u);
2097
+ ref: (w) => {
2098
+ w ? p.current.set(u, w) : p.current.delete(u);
2090
2099
  },
2091
2100
  type: "button",
2092
2101
  role: "radio",
2093
2102
  "aria-checked": y,
2094
2103
  "aria-label": S,
2095
2104
  tabIndex: x ? 0 : -1,
2096
- onClick: () => n(a.id),
2105
+ onClick: () => n(o.id),
2097
2106
  onFocus: () => m(u),
2098
- onKeyDown: (C) => l(C, u, a.id),
2107
+ onKeyDown: (w) => l(w, u, o.id),
2099
2108
  className: wi({
2100
2109
  state: y ? "selected" : "idle"
2101
2110
  }),
@@ -2109,7 +2118,14 @@ function Ci({
2109
2118
  }
2110
2119
  ),
2111
2120
  /* @__PURE__ */ v("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
2112
- /* @__PURE__ */ s("span", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:break-words", children: a.label }),
2121
+ /* @__PURE__ */ s(
2122
+ "span",
2123
+ {
2124
+ dir: "auto",
2125
+ className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:break-words",
2126
+ children: o.label
2127
+ }
2128
+ ),
2113
2129
  E ? /* @__PURE__ */ s(
2114
2130
  "span",
2115
2131
  {
@@ -2117,7 +2133,7 @@ function Ci({
2117
2133
  children: E
2118
2134
  }
2119
2135
  ) : k || !r ? null : /* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i("booking.serviceSummary", {
2120
- minutes: a.durationMin
2136
+ minutes: o.durationMin
2121
2137
  }) })
2122
2138
  ] }),
2123
2139
  k ? /* @__PURE__ */ s(
@@ -2130,7 +2146,7 @@ function Ci({
2130
2146
  ) : null
2131
2147
  ]
2132
2148
  },
2133
- a.id
2149
+ o.id
2134
2150
  );
2135
2151
  })
2136
2152
  }
@@ -2177,11 +2193,11 @@ function Di({
2177
2193
  selectedSlotKey: n,
2178
2194
  onSelect: r,
2179
2195
  loading: i,
2180
- locale: o
2196
+ locale: a
2181
2197
  }) {
2182
2198
  const { t: c } = W("ui"), f = L(() => {
2183
2199
  try {
2184
- return new Intl.DateTimeFormat(o, {
2200
+ return new Intl.DateTimeFormat(a, {
2185
2201
  weekday: "long",
2186
2202
  day: "numeric",
2187
2203
  month: "long"
@@ -2189,14 +2205,14 @@ function Di({
2189
2205
  } catch {
2190
2206
  return e;
2191
2207
  }
2192
- }, [e, o]), m = L(() => {
2208
+ }, [e, a]), m = L(() => {
2193
2209
  const l = {
2194
2210
  morning: [],
2195
2211
  afternoon: [],
2196
2212
  evening: []
2197
2213
  };
2198
- for (const a of t)
2199
- l[Ti(a.time)].push(a);
2214
+ for (const o of t)
2215
+ l[Ti(o.time)].push(o);
2200
2216
  return l;
2201
2217
  }, [t]), p = t.filter((l) => l.available).length, g = ["morning", "afternoon", "evening"];
2202
2218
  return i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -2205,7 +2221,7 @@ function Di({
2205
2221
  "div",
2206
2222
  {
2207
2223
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)]",
2208
- children: [0, 1, 2].map((a) => /* @__PURE__ */ s(Lt, { variant: "rounded", height: "44px" }, a))
2224
+ children: [0, 1, 2].map((o) => /* @__PURE__ */ s(Lt, { variant: "rounded", height: "44px" }, o))
2209
2225
  },
2210
2226
  l
2211
2227
  ))
@@ -2224,8 +2240,8 @@ function Di({
2224
2240
  /* @__PURE__ */ s("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: c("booking.slotsAvailable", { count: p }) })
2225
2241
  ] }),
2226
2242
  g.map((l) => {
2227
- const a = m[l];
2228
- if (a.length === 0) return null;
2243
+ const o = m[l];
2244
+ if (o.length === 0) return null;
2229
2245
  const u = Oi[l];
2230
2246
  return /* @__PURE__ */ v(
2231
2247
  "div",
@@ -2242,7 +2258,7 @@ function Di({
2242
2258
  role: "group",
2243
2259
  "aria-label": c(`booking.timeOfDay.${l}`),
2244
2260
  className: "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-4",
2245
- children: a.map((y) => {
2261
+ children: o.map((y) => {
2246
2262
  const x = y.key === n, k = y.available ? x ? "selected" : "idle" : "unavailable";
2247
2263
  return /* @__PURE__ */ s(
2248
2264
  "button",
@@ -2277,13 +2293,13 @@ function Ei({
2277
2293
  value: n,
2278
2294
  onChange: r,
2279
2295
  onDateSelect: i,
2280
- onWindowChange: o,
2296
+ onWindowChange: a,
2281
2297
  loadingDates: c,
2282
2298
  loadingSlots: f,
2283
2299
  locale: m,
2284
2300
  agentIdBase: p
2285
2301
  }) {
2286
- const g = L(() => ct(/* @__PURE__ */ new Date()), []), [l, a] = se(() => {
2302
+ const g = L(() => ct(/* @__PURE__ */ new Date()), []), [l, o] = se(() => {
2287
2303
  if (n.date) {
2288
2304
  const h = ct(be(n.date));
2289
2305
  if (!dt(g, h)) return h;
@@ -2296,8 +2312,8 @@ function Ei({
2296
2312
  }), u = L(
2297
2313
  () => Gt(l, Mt - 1),
2298
2314
  [l]
2299
- ), y = L(() => Array.from({ length: Mt }, (h, w) => {
2300
- const $ = Gt(l, w), b = Xe($), F = (t[b] ?? []).map((G) => ({
2315
+ ), y = L(() => Array.from({ length: Mt }, (h, C) => {
2316
+ const $ = Gt(l, C), b = Xe($), F = (t[b] ?? []).map((G) => ({
2301
2317
  id: G.key,
2302
2318
  // SlotGrid formats `start` as a time via Intl.DateTimeFormat —
2303
2319
  // compose a full ISO from the column's date + the slot's HH:mm
@@ -2307,12 +2323,12 @@ function Ei({
2307
2323
  }));
2308
2324
  return { date: b, slots: F };
2309
2325
  }), [l, t]), x = dt(l, g), k = !0, E = ye(() => {
2310
- a((h) => {
2311
- const w = on(h, Mt);
2312
- return dt(g, w) ? g : w;
2326
+ o((h) => {
2327
+ const C = an(h, Mt);
2328
+ return dt(g, C) ? g : C;
2313
2329
  });
2314
2330
  }, [g]), N = ye(() => {
2315
- a((h) => Gt(h, Mt));
2331
+ o((h) => Gt(h, Mt));
2316
2332
  }, []);
2317
2333
  K(() => {
2318
2334
  if (e.length === 0) return;
@@ -2320,25 +2336,25 @@ function Ei({
2320
2336
  !dt(h, g) || e.some(($) => {
2321
2337
  const b = ct(be($));
2322
2338
  return !dt(b, u) && !nn(b, l);
2323
- }) || a(h);
2339
+ }) || o(h);
2324
2340
  }, [e]), K(() => {
2325
- o == null || o(Xe(l), Xe(u));
2326
- }, [l, u, o]);
2341
+ a == null || a(Xe(l), Xe(u));
2342
+ }, [l, u, a]);
2327
2343
  const S = ye(
2328
- (h, w) => {
2329
- const $ = typeof w.date == "string" ? w.date : Xe(w.date);
2344
+ (h, C) => {
2345
+ const $ = typeof C.date == "string" ? C.date : Xe(C.date);
2330
2346
  r({
2331
2347
  ...ws($t(n, $), h.id)
2332
2348
  }), i == null || i($);
2333
2349
  },
2334
2350
  [r, i, n]
2335
- ), I = c || f ? "loading" : "default", C = y.some((h) => h.slots.length > 0), O = e[0];
2351
+ ), I = c || f ? "loading" : "default", w = y.some((h) => h.slots.length > 0), O = e[0];
2336
2352
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2337
- !C && !!O ? /* @__PURE__ */ s(
2353
+ !w && !!O ? /* @__PURE__ */ s(
2338
2354
  ts,
2339
2355
  {
2340
2356
  nextAvailableDate: O,
2341
- onJump: () => a(ct(be(O))),
2357
+ onJump: () => o(ct(be(O))),
2342
2358
  locale: m
2343
2359
  }
2344
2360
  ) : null,
@@ -2366,7 +2382,7 @@ function Es(e) {
2366
2382
  value: n,
2367
2383
  onChange: r,
2368
2384
  onDateSelect: i,
2369
- onWindowChange: o,
2385
+ onWindowChange: a,
2370
2386
  loadingDates: c,
2371
2387
  loadingSlots: f,
2372
2388
  locale: m,
@@ -2381,7 +2397,7 @@ function Es(e) {
2381
2397
  value: n,
2382
2398
  onChange: r,
2383
2399
  onDateSelect: i,
2384
- onWindowChange: o,
2400
+ onWindowChange: a,
2385
2401
  loadingDates: c,
2386
2402
  loadingSlots: f,
2387
2403
  locale: m,
@@ -2401,7 +2417,7 @@ function Es(e) {
2401
2417
  );
2402
2418
  }
2403
2419
  function Fs(e) {
2404
- const { inputs: t, value: n, onChange: r, loadingSlots: i, locale: o, datePickerStyle: c } = e;
2420
+ const { inputs: t, value: n, onChange: r, loadingSlots: i, locale: a, datePickerStyle: c } = e;
2405
2421
  return c === "four-day-grid" || !n.date ? null : /* @__PURE__ */ s(
2406
2422
  Di,
2407
2423
  {
@@ -2410,7 +2426,7 @@ function Fs(e) {
2410
2426
  selectedSlotKey: n.slotKey,
2411
2427
  onSelect: (f) => r(ws(n, f.key)),
2412
2428
  loading: i,
2413
- locale: o
2429
+ locale: a
2414
2430
  }
2415
2431
  );
2416
2432
  }
@@ -2441,13 +2457,14 @@ function _s({
2441
2457
  valueIds: n,
2442
2458
  onChange: r,
2443
2459
  onChangeIds: i,
2444
- pickerStyle: o = "select"
2460
+ pickerStyle: a = "select"
2445
2461
  }) {
2446
2462
  const { t: c } = W("ui"), f = e.map((p) => ({
2447
2463
  value: p.id,
2448
- label: p.label
2464
+ label: p.label,
2465
+ dir: "auto"
2449
2466
  })), m = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.specialty.heading") });
2450
- return o === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2467
+ return a === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2451
2468
  m,
2452
2469
  /* @__PURE__ */ s(
2453
2470
  Xt,
@@ -2460,7 +2477,7 @@ function _s({
2460
2477
  allowClear: !0
2461
2478
  }
2462
2479
  )
2463
- ] }) : o === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2480
+ ] }) : a === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2464
2481
  m,
2465
2482
  /* @__PURE__ */ s(
2466
2483
  Qt,
@@ -2493,14 +2510,17 @@ function Ls({
2493
2510
  valueIds: n,
2494
2511
  onChange: r,
2495
2512
  onChangeIds: i,
2496
- pickerStyle: o,
2513
+ pickerStyle: a,
2497
2514
  compact: c,
2498
2515
  showDuration: f
2499
2516
  }) {
2500
- const { t: m } = W("ui"), p = Ds(), g = o ?? (c ? "select" : "cards"), l = e.map((u) => {
2517
+ const { t: m } = W("ui"), p = Ds(), g = a ?? (c ? "select" : "cards"), l = e.map((u) => {
2501
2518
  const { price: y, payment: x, paymentTone: k } = p(u);
2502
2519
  return {
2503
2520
  value: u.id,
2521
+ // The practice's service name leads the label, so it decides the
2522
+ // direction, even when the kit's duration is appended after it.
2523
+ dir: "auto",
2504
2524
  label: y || x || !f ? u.label : `${u.label} · ${m("booking.serviceSummary", {
2505
2525
  minutes: u.durationMin
2506
2526
  })}`,
@@ -2509,9 +2529,9 @@ function Ls({
2509
2529
  } : {},
2510
2530
  ...x ? { description: x, descriptionTone: k } : {}
2511
2531
  };
2512
- }), a = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: m("booking.service.heading") });
2532
+ }), o = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: m("booking.service.heading") });
2513
2533
  return g === "multi-select" && i ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2514
- a,
2534
+ o,
2515
2535
  /* @__PURE__ */ s(
2516
2536
  Xt,
2517
2537
  {
@@ -2525,7 +2545,7 @@ function Ls({
2525
2545
  }
2526
2546
  )
2527
2547
  ] }) : g === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2528
- a,
2548
+ o,
2529
2549
  /* @__PURE__ */ s(
2530
2550
  Qt,
2531
2551
  {
@@ -2539,7 +2559,7 @@ function Ls({
2539
2559
  }
2540
2560
  )
2541
2561
  ] }) : g === "select" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2542
- a,
2562
+ o,
2543
2563
  /* @__PURE__ */ s(
2544
2564
  Vt,
2545
2565
  {
@@ -2554,7 +2574,7 @@ function Ls({
2554
2574
  }
2555
2575
  )
2556
2576
  ] }) : /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2557
- a,
2577
+ o,
2558
2578
  /* @__PURE__ */ s(
2559
2579
  Ci,
2560
2580
  {
@@ -2572,13 +2592,14 @@ function Bs({
2572
2592
  valueIds: n,
2573
2593
  onChange: r,
2574
2594
  onChangeIds: i,
2575
- pickerStyle: o = "select"
2595
+ pickerStyle: a = "select"
2576
2596
  }) {
2577
2597
  const { t: c } = W("ui"), f = /* @__PURE__ */ s("h3", { className: "type-label ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)] ds:m-0", children: c("booking.operator.heading") });
2578
- if (o === "multi-select" && i) {
2598
+ if (a === "multi-select" && i) {
2579
2599
  const p = e.map((g) => ({
2580
2600
  value: g.id,
2581
- label: g.name
2601
+ label: g.name,
2602
+ dir: "auto"
2582
2603
  }));
2583
2604
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2584
2605
  f,
@@ -2597,9 +2618,11 @@ function Bs({
2597
2618
  }
2598
2619
  const m = [
2599
2620
  { value: _e, label: c("booking.operator.all") },
2600
- ...e.map((p) => ({ value: p.id, label: p.name }))
2621
+ ...e.map(
2622
+ (p) => ({ value: p.id, label: p.name, dir: "auto" })
2623
+ )
2601
2624
  ];
2602
- return o === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2625
+ return a === "combobox" ? /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
2603
2626
  f,
2604
2627
  /* @__PURE__ */ s(
2605
2628
  Qt,
@@ -2630,7 +2653,7 @@ function Rs({
2630
2653
  customSlot: e
2631
2654
  }) {
2632
2655
  const { t } = W("ui");
2633
- return e ? /* @__PURE__ */ s(ae, { children: e }) : /* @__PURE__ */ v(ie, { variant: "warning", children: [
2656
+ return e ? /* @__PURE__ */ s(oe, { children: e }) : /* @__PURE__ */ v(ie, { variant: "warning", children: [
2634
2657
  /* @__PURE__ */ s(ie.Title, { as: "h4", children: t("booking.onboardingIncomplete.title") }),
2635
2658
  /* @__PURE__ */ s(ie.Description, { children: t("booking.onboardingIncomplete.description") })
2636
2659
  ] });
@@ -2660,21 +2683,21 @@ function Fi({
2660
2683
  operators: n,
2661
2684
  specialties: r,
2662
2685
  services: i,
2663
- locale: o,
2686
+ locale: a,
2664
2687
  mode: c,
2665
2688
  showModify: f,
2666
2689
  onReset: m,
2667
2690
  onModify: p,
2668
2691
  focusWasLost: g
2669
2692
  }) {
2670
- const { t: l } = W("ui"), a = _(null);
2693
+ const { t: l } = W("ui"), o = _(null);
2671
2694
  K(() => {
2672
- const C = a.current, O = document.activeElement, T = C == null ? void 0 : C.closest('[data-component="booking"]');
2673
- !e || !C || (O && (T != null && T.contains(O)) || g()) && C.focus();
2695
+ const w = o.current, O = document.activeElement, T = w == null ? void 0 : w.closest('[data-component="booking"]');
2696
+ !e || !w || (O && (T != null && T.contains(O)) || g()) && w.focus();
2674
2697
  }, []);
2675
2698
  const y = (t.details.confirmationChannels ?? ["email"]).map(
2676
- (C) => l(`booking.confirmation.channel.${C}`)
2677
- ), x = e ? Pt(e.amountCents, e.currencyCode, o) : "", k = e ? l(
2699
+ (w) => l(`booking.confirmation.channel.${w}`)
2700
+ ), x = e ? Pt(e.amountCents, e.currencyCode, a) : "", k = e ? l(
2678
2701
  c === "demo" ? "booking.payment.paidDemo" : "booking.payment.paidBody",
2679
2702
  { amount: x }
2680
2703
  ) : c === "demo" ? l("booking.success.descriptionDemo") : y.length > 1 ? l("booking.success.descriptionMultiple", {
@@ -2682,7 +2705,7 @@ function Fi({
2682
2705
  }) : l("booking.success.descriptionSingle", { channel: y[0] }), E = L(() => {
2683
2706
  if (t.date)
2684
2707
  try {
2685
- return new Intl.DateTimeFormat(o, {
2708
+ return new Intl.DateTimeFormat(a, {
2686
2709
  weekday: "long",
2687
2710
  day: "numeric",
2688
2711
  month: "long"
@@ -2690,21 +2713,24 @@ function Fi({
2690
2713
  } catch {
2691
2714
  return t.date;
2692
2715
  }
2693
- }, [t.date, o]), N = L(() => {
2716
+ }, [t.date, a]), N = L(() => {
2694
2717
  const O = (t.operatorIds && t.operatorIds.length > 0 ? t.operatorIds : t.operatorId ? [t.operatorId] : []).filter((T) => T !== _e).map((T) => {
2695
2718
  var h;
2696
- return (h = n.find((w) => w.id === T)) == null ? void 0 : h.name;
2719
+ return (h = n.find((C) => C.id === T)) == null ? void 0 : h.name;
2697
2720
  }).filter((T) => T !== void 0);
2698
- if (O.length === 0) return "";
2721
+ if (O.length === 0) return [];
2699
2722
  try {
2700
- return new Intl.ListFormat(o === "en" ? "en-GB" : o, {
2723
+ return new Intl.ListFormat(a === "en" ? "en-GB" : a, {
2701
2724
  style: "long",
2702
2725
  type: "conjunction"
2703
- }).format(O);
2726
+ }).formatToParts(O);
2704
2727
  } catch {
2705
- return O.join(", ");
2728
+ return O.flatMap((T, h) => [
2729
+ ...h > 0 ? [{ type: "literal", value: ", " }] : [],
2730
+ { type: "element", value: T }
2731
+ ]);
2706
2732
  }
2707
- }, [t.operatorIds, t.operatorId, n, o]), S = t.specialtyId ? r.find((C) => C.id === t.specialtyId) : void 0, I = t.serviceId ? i.find((C) => C.id === t.serviceId) : void 0;
2733
+ }, [t.operatorIds, t.operatorId, n, a]), S = t.specialtyId ? r.find((w) => w.id === t.specialtyId) : void 0, I = t.serviceId ? i.find((w) => w.id === t.serviceId) : void 0;
2708
2734
  return /* @__PURE__ */ v(
2709
2735
  "div",
2710
2736
  {
@@ -2716,7 +2742,7 @@ function Fi({
2716
2742
  ie.Title,
2717
2743
  {
2718
2744
  as: "h3",
2719
- ref: a,
2745
+ ref: o,
2720
2746
  tabIndex: e ? -1 : void 0,
2721
2747
  className: e ? Bt : void 0,
2722
2748
  children: l(
@@ -2727,27 +2753,43 @@ function Fi({
2727
2753
  /* @__PURE__ */ s(ie.Description, { children: k })
2728
2754
  ] }),
2729
2755
  /* @__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: [
2730
- e && c !== "demo" ? /* @__PURE__ */ v(ae, { children: [
2756
+ e && c !== "demo" ? /* @__PURE__ */ v(oe, { children: [
2731
2757
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.payment.summaryPaid") }),
2732
2758
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: x })
2733
2759
  ] }) : null,
2734
- S ? /* @__PURE__ */ v(ae, { children: [
2760
+ S ? /* @__PURE__ */ v(oe, { children: [
2735
2761
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summarySpecialty") }),
2736
- /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: S.label })
2762
+ /* @__PURE__ */ s(
2763
+ "dd",
2764
+ {
2765
+ dir: "auto",
2766
+ className: "type-body ds:m-0 ds:text-[var(--foreground)]",
2767
+ children: S.label
2768
+ }
2769
+ )
2737
2770
  ] }) : null,
2738
- I ? /* @__PURE__ */ v(ae, { children: [
2771
+ I ? /* @__PURE__ */ v(oe, { children: [
2739
2772
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryService") }),
2740
- /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: I.label })
2773
+ /* @__PURE__ */ s(
2774
+ "dd",
2775
+ {
2776
+ dir: "auto",
2777
+ className: "type-body ds:m-0 ds:text-[var(--foreground)]",
2778
+ children: I.label
2779
+ }
2780
+ )
2741
2781
  ] }) : null,
2742
- E ? /* @__PURE__ */ v(ae, { children: [
2782
+ E ? /* @__PURE__ */ v(oe, { children: [
2743
2783
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryDate") }),
2744
2784
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: E })
2745
2785
  ] }) : null,
2746
2786
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryTime") }),
2747
2787
  /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: t.slot.time }),
2748
- N ? /* @__PURE__ */ v(ae, { children: [
2788
+ N.length > 0 ? /* @__PURE__ */ v(oe, { children: [
2749
2789
  /* @__PURE__ */ s("dt", { className: "type-label ds:text-[var(--muted-foreground)]", children: l("booking.success.summaryProvider") }),
2750
- /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N })
2790
+ /* @__PURE__ */ s("dd", { className: "type-body ds:m-0 ds:text-[var(--foreground)]", children: N.map(
2791
+ (w, O) => w.type === "element" ? /* @__PURE__ */ s("bdi", { children: w.value }, O) : w.value
2792
+ ) })
2751
2793
  ] }) : null
2752
2794
  ] }) }),
2753
2795
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
@@ -2760,7 +2802,7 @@ function Fi({
2760
2802
  }
2761
2803
  function Ps({ customSlot: e }) {
2762
2804
  const { t } = W("ui");
2763
- return e ? /* @__PURE__ */ s(ae, { children: e }) : /* @__PURE__ */ s(
2805
+ return e ? /* @__PURE__ */ s(oe, { children: e }) : /* @__PURE__ */ s(
2764
2806
  hs,
2765
2807
  {
2766
2808
  variant: "no-results",
@@ -2804,14 +2846,14 @@ function _i(e) {
2804
2846
  inputs: n,
2805
2847
  value: r,
2806
2848
  onChange: i,
2807
- onSubmit: o,
2849
+ onSubmit: a,
2808
2850
  emptyServicesSlot: c,
2809
2851
  onboardingIncompleteSlot: f,
2810
2852
  loadingDates: m,
2811
2853
  loadingSlots: p,
2812
2854
  onDateSelect: g,
2813
2855
  onWindowChange: l,
2814
- datePickerStyle: a,
2856
+ datePickerStyle: o,
2815
2857
  specialtyPickerStyle: u,
2816
2858
  servicePickerStyle: y,
2817
2859
  showServiceDuration: x,
@@ -2820,10 +2862,10 @@ function _i(e) {
2820
2862
  locale: N,
2821
2863
  detailsProps: S,
2822
2864
  agentIdBase: I,
2823
- activeStep: C
2824
- } = e, { t: O } = W("ui"), T = lt(C, a), h = (w, $) => ({
2825
- step: w,
2826
- active: w === T,
2865
+ activeStep: w
2866
+ } = e, { t: O } = W("ui"), T = lt(w, o), h = (C, $) => ({
2867
+ step: C,
2868
+ active: C === T,
2827
2869
  className: $
2828
2870
  });
2829
2871
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -2831,7 +2873,7 @@ function _i(e) {
2831
2873
  Ms,
2832
2874
  {
2833
2875
  value: r.insuranceType,
2834
- onChange: (w) => i(bs(r, w))
2876
+ onChange: (C) => i(bs(r, C))
2835
2877
  }
2836
2878
  ) }) : null,
2837
2879
  t.gates.specialty ? /* @__PURE__ */ s(Y, { ...h(2), children: /* @__PURE__ */ s(
@@ -2840,8 +2882,8 @@ function _i(e) {
2840
2882
  specialties: t.filtered.specialties,
2841
2883
  value: r.specialtyId,
2842
2884
  valueIds: r.specialtyIds,
2843
- onChange: (w) => i(ys(r, w)),
2844
- onChangeIds: (w) => i(ks(r, w)),
2885
+ onChange: (C) => i(ys(r, C)),
2886
+ onChangeIds: (C) => i(ks(r, C)),
2845
2887
  pickerStyle: u
2846
2888
  }
2847
2889
  ) }) : null,
@@ -2851,8 +2893,8 @@ function _i(e) {
2851
2893
  services: t.filtered.services,
2852
2894
  value: r.serviceId,
2853
2895
  valueIds: r.serviceIds,
2854
- onChange: (w) => i(Ss(r, w)),
2855
- onChangeIds: (w) => i(xs(r, w)),
2896
+ onChange: (C) => i(Ss(r, C)),
2897
+ onChangeIds: (C) => i(xs(r, C)),
2856
2898
  pickerStyle: y,
2857
2899
  showDuration: x
2858
2900
  }
@@ -2864,8 +2906,8 @@ function _i(e) {
2864
2906
  operators: t.filtered.operators,
2865
2907
  value: r.operatorId,
2866
2908
  valueIds: r.operatorIds,
2867
- onChange: (w) => i(Is(r, w)),
2868
- onChangeIds: (w) => i(Ns(r, w)),
2909
+ onChange: (C) => i(Is(r, C)),
2910
+ onChangeIds: (C) => i(Ns(r, C)),
2869
2911
  pickerStyle: k
2870
2912
  }
2871
2913
  ) }) : null,
@@ -2891,13 +2933,13 @@ function _i(e) {
2891
2933
  loadingDates: m,
2892
2934
  loadingSlots: p,
2893
2935
  locale: N,
2894
- datePickerStyle: a,
2936
+ datePickerStyle: o,
2895
2937
  agentIdBase: I
2896
2938
  })
2897
2939
  ]
2898
2940
  }
2899
2941
  ) : null,
2900
- t.gates.slot && r.date && a === "month-calendar" ? /* @__PURE__ */ v(
2942
+ t.gates.slot && r.date && o === "month-calendar" ? /* @__PURE__ */ v(
2901
2943
  Y,
2902
2944
  {
2903
2945
  ...h(6, "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"),
@@ -2909,7 +2951,7 @@ function _i(e) {
2909
2951
  onChange: i,
2910
2952
  loadingSlots: p,
2911
2953
  locale: N,
2912
- datePickerStyle: a
2954
+ datePickerStyle: o
2913
2955
  })
2914
2956
  ]
2915
2957
  }
@@ -2919,8 +2961,8 @@ function _i(e) {
2919
2961
  {
2920
2962
  ...S,
2921
2963
  value: r.details ?? {},
2922
- onChange: (w) => i({ ...r, details: w }),
2923
- onSubmit: o,
2964
+ onChange: (C) => i({ ...r, details: C }),
2965
+ onSubmit: a,
2924
2966
  submitting: E,
2925
2967
  defaultPhoneCountry: e.policy.country
2926
2968
  }
@@ -2931,14 +2973,14 @@ function Te(e, t, n = {}) {
2931
2973
  const {
2932
2974
  cascade: r,
2933
2975
  inputs: i,
2934
- value: o,
2976
+ value: a,
2935
2977
  onChange: c,
2936
2978
  onSubmit: f,
2937
2979
  emptyServicesSlot: m,
2938
2980
  onboardingIncompleteSlot: p,
2939
2981
  loadingDates: g,
2940
2982
  loadingSlots: l,
2941
- onDateSelect: a,
2983
+ onDateSelect: o,
2942
2984
  onWindowChange: u,
2943
2985
  datePickerStyle: y,
2944
2986
  specialtyPickerStyle: x,
@@ -2947,7 +2989,7 @@ function Te(e, t, n = {}) {
2947
2989
  operatorPickerStyle: N,
2948
2990
  submitting: S,
2949
2991
  locale: I,
2950
- detailsProps: C,
2992
+ detailsProps: w,
2951
2993
  policy: O,
2952
2994
  agentIdBase: T
2953
2995
  } = t;
@@ -2956,8 +2998,8 @@ function Te(e, t, n = {}) {
2956
2998
  return /* @__PURE__ */ s(
2957
2999
  Ms,
2958
3000
  {
2959
- value: o.insuranceType,
2960
- onChange: (h) => c(bs(o, h))
3001
+ value: a.insuranceType,
3002
+ onChange: (h) => c(bs(a, h))
2961
3003
  }
2962
3004
  );
2963
3005
  case 2:
@@ -2965,10 +3007,10 @@ function Te(e, t, n = {}) {
2965
3007
  _s,
2966
3008
  {
2967
3009
  specialties: r.filtered.specialties,
2968
- value: o.specialtyId,
2969
- valueIds: o.specialtyIds,
2970
- onChange: (h) => c(ys(o, h)),
2971
- onChangeIds: (h) => c(ks(o, h)),
3010
+ value: a.specialtyId,
3011
+ valueIds: a.specialtyIds,
3012
+ onChange: (h) => c(ys(a, h)),
3013
+ onChangeIds: (h) => c(ks(a, h)),
2972
3014
  pickerStyle: x
2973
3015
  }
2974
3016
  );
@@ -2977,10 +3019,10 @@ function Te(e, t, n = {}) {
2977
3019
  Ls,
2978
3020
  {
2979
3021
  services: r.filtered.services,
2980
- value: o.serviceId,
2981
- valueIds: o.serviceIds,
2982
- onChange: (h) => c(Ss(o, h)),
2983
- onChangeIds: (h) => c(xs(o, h)),
3022
+ value: a.serviceId,
3023
+ valueIds: a.serviceIds,
3024
+ onChange: (h) => c(Ss(a, h)),
3025
+ onChangeIds: (h) => c(xs(a, h)),
2984
3026
  pickerStyle: k,
2985
3027
  compact: n.compactService,
2986
3028
  showDuration: E
@@ -2991,10 +3033,10 @@ function Te(e, t, n = {}) {
2991
3033
  Bs,
2992
3034
  {
2993
3035
  operators: r.filtered.operators,
2994
- value: o.operatorId,
2995
- valueIds: o.operatorIds,
2996
- onChange: (h) => c(Is(o, h)),
2997
- onChangeIds: (h) => c(Ns(o, h)),
3036
+ value: a.operatorId,
3037
+ valueIds: a.operatorIds,
3038
+ onChange: (h) => c(Is(a, h)),
3039
+ onChangeIds: (h) => c(Ns(a, h)),
2998
3040
  pickerStyle: N
2999
3041
  }
3000
3042
  );
@@ -3003,14 +3045,14 @@ function Te(e, t, n = {}) {
3003
3045
  ts,
3004
3046
  {
3005
3047
  nextAvailableDate: i.nextAvailableDate,
3006
- onJump: () => c($t(o, i.nextAvailableDate)),
3048
+ onJump: () => c($t(a, i.nextAvailableDate)),
3007
3049
  locale: I
3008
3050
  }
3009
3051
  ) : Es({
3010
3052
  inputs: i,
3011
- value: o,
3053
+ value: a,
3012
3054
  onChange: c,
3013
- onDateSelect: a,
3055
+ onDateSelect: o,
3014
3056
  onWindowChange: u,
3015
3057
  loadingDates: g,
3016
3058
  loadingSlots: l,
@@ -3021,7 +3063,7 @@ function Te(e, t, n = {}) {
3021
3063
  case 6:
3022
3064
  return Fs({
3023
3065
  inputs: i,
3024
- value: o,
3066
+ value: a,
3025
3067
  onChange: c,
3026
3068
  loadingSlots: l,
3027
3069
  locale: I,
@@ -3031,9 +3073,9 @@ function Te(e, t, n = {}) {
3031
3073
  return r.selectedSlot ? /* @__PURE__ */ s(
3032
3074
  es,
3033
3075
  {
3034
- ...C,
3035
- value: o.details ?? {},
3036
- onChange: (h) => c({ ...o, details: h }),
3076
+ ...w,
3077
+ value: a.details ?? {},
3078
+ onChange: (h) => c({ ...a, details: h }),
3037
3079
  onSubmit: f,
3038
3080
  submitting: S,
3039
3081
  defaultPhoneCountry: O.country
@@ -3063,10 +3105,10 @@ function lt(e, t) {
3063
3105
  return t === "four-day-grid" && e === 6 ? 5 : e;
3064
3106
  }
3065
3107
  function Li(e) {
3066
- const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle: o } = e, c = qt(), { t: f } = W("ui"), m = f("booking.operator.all"), p = L(
3067
- () => ss(t.visibleSteps, o),
3068
- [t.visibleSteps, o]
3069
- ), g = lt(r, o), l = Math.max(0, p.indexOf(g)), a = L(
3108
+ const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle: a } = e, c = qt(), { t: f } = W("ui"), m = f("booking.operator.all"), p = L(
3109
+ () => ss(t.visibleSteps, a),
3110
+ [t.visibleSteps, a]
3111
+ ), g = lt(r, a), l = Math.max(0, p.indexOf(g)), o = L(
3070
3112
  () => p.map((u) => ({
3071
3113
  label: c[u],
3072
3114
  summary: $s(u, n, t, m),
@@ -3087,7 +3129,7 @@ function Li(e) {
3087
3129
  Xs,
3088
3130
  {
3089
3131
  activeStep: l,
3090
- steps: a,
3132
+ steps: o,
3091
3133
  onStepChange: (u) => {
3092
3134
  const y = p[u];
3093
3135
  y && i(y);
@@ -3104,7 +3146,7 @@ function us(e, t) {
3104
3146
  function Wt(e, t) {
3105
3147
  const n = e.map((r) => {
3106
3148
  var i;
3107
- return (i = t.find((o) => o.id === r)) == null ? void 0 : i.label;
3149
+ return (i = t.find((a) => a.id === r)) == null ? void 0 : i.label;
3108
3150
  }).filter((r) => r !== void 0);
3109
3151
  return n.length > 0 ? n.join(", ") : void 0;
3110
3152
  }
@@ -3140,11 +3182,11 @@ function $s(e, t, n, r) {
3140
3182
  }
3141
3183
  }
3142
3184
  function Ri(e) {
3143
- const { cascade: t, value: n, activeStep: r, setActiveStep: i } = e, { t: o } = W("ui"), c = qt(), f = o("booking.operator.all"), m = `${Rt()}-filter`, p = lt(r, e.datePickerStyle), g = t.visibleSteps.filter(
3185
+ const { cascade: t, value: n, activeStep: r, setActiveStep: i } = e, { t: a } = W("ui"), c = qt(), f = a("booking.operator.all"), m = `${Rt()}-filter`, p = lt(r, e.datePickerStyle), g = t.visibleSteps.filter(
3144
3186
  (u) => u === 1 || u === 2 || u === 3 || u === 4
3145
3187
  ), l = g.some(
3146
3188
  (u) => !$e(u, n)
3147
- ), a = g.some(
3189
+ ), o = g.some(
3148
3190
  (u) => u === r
3149
3191
  ) ? r : g.find((u) => !$e(u, n));
3150
3192
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -3152,7 +3194,7 @@ function Ri(e) {
3152
3194
  "div",
3153
3195
  {
3154
3196
  role: "group",
3155
- "aria-label": o("booking.filtersLabel"),
3197
+ "aria-label": a("booking.filtersLabel"),
3156
3198
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
3157
3199
  children: g.map((u) => {
3158
3200
  const y = $s(
@@ -3160,7 +3202,7 @@ function Ri(e) {
3160
3202
  n,
3161
3203
  t,
3162
3204
  f
3163
- ), x = u === a, k = $e(u, n);
3205
+ ), x = u === o, k = $e(u, n);
3164
3206
  return /* @__PURE__ */ s(
3165
3207
  et,
3166
3208
  {
@@ -3179,7 +3221,7 @@ function Ri(e) {
3179
3221
  onClick: () => i(
3180
3222
  k && x ? t.currentStep : u
3181
3223
  ),
3182
- children: y ? /* @__PURE__ */ v(ae, { children: [
3224
+ children: y ? /* @__PURE__ */ v(oe, { children: [
3183
3225
  c[u],
3184
3226
  ": ",
3185
3227
  y
@@ -3190,13 +3232,13 @@ function Ri(e) {
3190
3232
  })
3191
3233
  }
3192
3234
  ) : null,
3193
- a !== void 0 ? /* @__PURE__ */ s(
3235
+ o !== void 0 ? /* @__PURE__ */ s(
3194
3236
  Y,
3195
3237
  {
3196
- step: a,
3197
- active: a === p,
3238
+ step: o,
3239
+ active: o === p,
3198
3240
  id: m,
3199
- children: Te(a, e, { compactService: !0 })
3241
+ children: Te(o, e, { compactService: !0 })
3200
3242
  }
3201
3243
  ) : null,
3202
3244
  !l && t.gates.date ? (
@@ -3229,7 +3271,7 @@ function Ri(e) {
3229
3271
  ] });
3230
3272
  }
3231
3273
  function Pi(e) {
3232
- const { cascade: t, datePickerStyle: n, activeStep: r } = e, i = lt(r, n), o = t.visibleSteps.filter(
3274
+ const { cascade: t, datePickerStyle: n, activeStep: r } = e, i = lt(r, n), a = t.visibleSteps.filter(
3233
3275
  (f) => f === 1 || f === 2 || f === 3 || f === 4
3234
3276
  );
3235
3277
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
@@ -3238,7 +3280,7 @@ function Pi(e) {
3238
3280
  {
3239
3281
  className: n === "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",
3240
3282
  children: [
3241
- /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: o.map((f) => /* @__PURE__ */ s(Y, { step: f, active: f === i, children: Te(f, e, { compactService: !0 }) }, `fbf-${f}`)) }),
3283
+ /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: a.map((f) => /* @__PURE__ */ s(Y, { step: f, active: f === i, children: Te(f, e, { compactService: !0 }) }, `fbf-${f}`)) }),
3242
3284
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
3243
3285
  t.gates.date ? /* @__PURE__ */ s(Y, { step: 5, active: i === 5, children: Te(5, e) }) : null,
3244
3286
  t.gates.slot && e.value.date && n === "month-calendar" ? /* @__PURE__ */ s(Y, { step: 6, active: i === 6, children: Te(6, e) }) : null
@@ -3250,15 +3292,15 @@ function Pi(e) {
3250
3292
  ] });
3251
3293
  }
3252
3294
  function Vi(e) {
3253
- const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle: o } = e, { t: c } = W("ui"), f = qt(), m = L(
3254
- () => ss(t.visibleSteps, o),
3255
- [t.visibleSteps, o]
3256
- ), p = lt(r, o), g = Math.max(0, m.indexOf(p)), l = m.length, a = L(
3295
+ const { cascade: t, value: n, activeStep: r, setActiveStep: i, datePickerStyle: a } = e, { t: c } = W("ui"), f = qt(), m = L(
3296
+ () => ss(t.visibleSteps, a),
3297
+ [t.visibleSteps, a]
3298
+ ), p = lt(r, a), g = Math.max(0, m.indexOf(p)), l = m.length, o = L(
3257
3299
  () => m.map((k) => ({ label: f[k] })),
3258
3300
  [m, f]
3259
- ), u = g > 0, y = p === 5 && o === "four-day-grid", x = g < l - 1 && $e(p, n) && (!y || $e(6, n));
3301
+ ), u = g > 0, y = p === 5 && a === "four-day-grid", x = g < l - 1 && $e(p, n) && (!y || $e(6, n));
3260
3302
  return /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
3261
- /* @__PURE__ */ s(en, { activeStep: g, steps: a }),
3303
+ /* @__PURE__ */ s(en, { activeStep: g, steps: o }),
3262
3304
  /* @__PURE__ */ s(Y, { step: p, active: !0, children: Te(p, e, { compactService: !0 }) }),
3263
3305
  /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
3264
3306
  /* @__PURE__ */ s(
@@ -3304,14 +3346,14 @@ const Ki = ms(
3304
3346
  useSpecialties: n,
3305
3347
  allowOperatorSelection: r = !1,
3306
3348
  lockedOperatorId: i,
3307
- operatorsByService: o = !1,
3349
+ operatorsByService: a = !1,
3308
3350
  autoSelectSingleService: c = !1,
3309
3351
  specialties: f,
3310
3352
  services: m,
3311
3353
  operators: p,
3312
3354
  availableDates: g,
3313
3355
  availableSlots: l,
3314
- nextAvailableDate: a,
3356
+ nextAvailableDate: o,
3315
3357
  requireCodiceFiscale: u,
3316
3358
  requireDateOfBirth: y,
3317
3359
  requireInsuranceNumber: x,
@@ -3320,11 +3362,11 @@ const Ki = ms(
3320
3362
  showNote: N,
3321
3363
  showReturningPatientFlag: S,
3322
3364
  privacyPolicyUrl: I,
3323
- termsUrl: C,
3365
+ termsUrl: w,
3324
3366
  practiceConsent: O,
3325
3367
  paymentTermsUrl: T,
3326
3368
  paymentState: h,
3327
- renderPayment: w,
3369
+ renderPayment: C,
3328
3370
  renderPaymentCompletion: $,
3329
3371
  validateCodiceFiscale: b,
3330
3372
  validateInsuranceNumber: ke,
@@ -3381,7 +3423,7 @@ const Ki = ms(
3381
3423
  useSpecialties: n,
3382
3424
  allowOperatorSelection: r,
3383
3425
  lockedOperatorId: i,
3384
- operatorsByService: o,
3426
+ operatorsByService: a,
3385
3427
  specialties: Ne,
3386
3428
  services: m,
3387
3429
  operators: Ee,
@@ -3393,7 +3435,7 @@ const Ki = ms(
3393
3435
  n,
3394
3436
  r,
3395
3437
  i,
3396
- o,
3438
+ a,
3397
3439
  c,
3398
3440
  Ne,
3399
3441
  m,
@@ -3499,17 +3541,17 @@ const Ki = ms(
3499
3541
  paymentState: h,
3500
3542
  submitting: ee,
3501
3543
  paymentTermsUrl: T,
3502
- renderPayment: w
3544
+ renderPayment: C
3503
3545
  }), j = H.status, mt = H.submit, rt = _(H.reset);
3504
3546
  rt.current = H.reset;
3505
- const ft = Rt(), gt = _(null), ht = _(null), Ue = ((At = H.state) == null ? void 0 : At.status) === "failed", ot = H.state && "phase" in H.state && H.state.phase === "completion";
3547
+ const ft = Rt(), gt = _(null), ht = _(null), Ue = ((At = H.state) == null ? void 0 : At.status) === "failed", at = H.state && "phase" in H.state && H.state.phase === "completion";
3506
3548
  K(() => {
3507
3549
  var A, B;
3508
3550
  if (j === "payment") {
3509
3551
  const R = document.activeElement;
3510
- (!ot || !R || R === document.body || !((A = re.current) != null && A.contains(R))) && ((B = gt.current) == null || B.focus());
3552
+ (!at || !R || R === document.body || !((A = re.current) != null && A.contains(R))) && ((B = gt.current) == null || B.focus());
3511
3553
  }
3512
- }, [j, ot]), K(() => {
3554
+ }, [j, at]), K(() => {
3513
3555
  var A;
3514
3556
  j === "payment" && Ue && ((A = ht.current) == null || A.focus());
3515
3557
  }, [j, Ue]), Ks(nt, () => re.current, []);
@@ -3609,7 +3651,7 @@ const Ki = ms(
3609
3651
  {
3610
3652
  role: "status",
3611
3653
  className: me.state.status === "processing" ? "type-body ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-sm)]" : "ds:sr-only",
3612
- children: me.state.status === "processing" ? /* @__PURE__ */ v(ae, { children: [
3654
+ children: me.state.status === "processing" ? /* @__PURE__ */ v(oe, { children: [
3613
3655
  /* @__PURE__ */ s(fs, { variant: "pulse", size: "lg", "aria-hidden": "true" }),
3614
3656
  /* @__PURE__ */ s("span", { children: z(
3615
3657
  He ? "booking.payment.confirming" : "booking.payment.processing"
@@ -3629,7 +3671,7 @@ const Ki = ms(
3629
3671
  ) })
3630
3672
  }
3631
3673
  ) : null,
3632
- He ? $ == null ? void 0 : $(me) : w == null ? void 0 : w(me)
3674
+ He ? $ == null ? void 0 : $(me) : C == null ? void 0 : C(me)
3633
3675
  ]
3634
3676
  }
3635
3677
  ) : null, yt = L(() => {
@@ -3644,7 +3686,7 @@ const Ki = ms(
3644
3686
  return B.length === 1 ? B[0].text : B.map((R) => `${R.label}: ${R.text}`).join(`
3645
3687
 
3646
3688
  `);
3647
- }, [m, M]), oe = L(() => {
3689
+ }, [m, M]), ae = L(() => {
3648
3690
  if (j === "success" || j === "payment") return null;
3649
3691
  const A = ue === "accordion" ? Li : ue === "calendar" ? Ri : ue === "flexible" ? Pi : ue === "progress" ? Vi : _i, B = {
3650
3692
  cascade: P,
@@ -3654,7 +3696,7 @@ const Ki = ms(
3654
3696
  operators: Ee,
3655
3697
  availableDates: g,
3656
3698
  availableSlots: l,
3657
- nextAvailableDate: a
3699
+ nextAvailableDate: o
3658
3700
  },
3659
3701
  value: M,
3660
3702
  onChange: Se,
@@ -3668,7 +3710,7 @@ const Ki = ms(
3668
3710
  showNote: N,
3669
3711
  showReturningPatientFlag: S,
3670
3712
  privacyPolicyUrl: I,
3671
- termsUrl: C,
3713
+ termsUrl: w,
3672
3714
  practiceConsent: O,
3673
3715
  criticalInformationToAccept: yt,
3674
3716
  payment: H.payment,
@@ -3713,7 +3755,7 @@ const Ki = ms(
3713
3755
  Ee,
3714
3756
  g,
3715
3757
  l,
3716
- a,
3758
+ o,
3717
3759
  M,
3718
3760
  Se,
3719
3761
  mt,
@@ -3728,7 +3770,7 @@ const Ki = ms(
3728
3770
  N,
3729
3771
  S,
3730
3772
  I,
3731
- C,
3773
+ w,
3732
3774
  O,
3733
3775
  yt,
3734
3776
  b,
@@ -3799,7 +3841,7 @@ const Ki = ms(
3799
3841
  }
3800
3842
  ),
3801
3843
  H.cancelled ? /* @__PURE__ */ s(ie, { variant: "info", children: /* @__PURE__ */ s(ie.Description, { children: z("booking.payment.cancelled") }) }) : null,
3802
- Ht ?? te ?? oe
3844
+ Ht ?? te ?? ae
3803
3845
  ]
3804
3846
  }
3805
3847
  );
@@ -3812,4 +3854,4 @@ export {
3812
3854
  _e as O,
3813
3855
  $n as b
3814
3856
  };
3815
- //# sourceMappingURL=booking-DkjatiXc.js.map
3857
+ //# sourceMappingURL=booking-B1pDbERi.js.map