@alfadocs/ui-kit 1.116.0 → 1.118.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 (253) hide show
  1. package/dist/_chunks/accessible-target-D3j6F-AG.js +7 -0
  2. package/dist/_chunks/{actions-cell-renderer-DzHxDyI7.js → actions-cell-renderer-DTaIQKp9.js} +3 -3
  3. package/dist/_chunks/{address-autocomplete-DC-H-MZw.js → address-autocomplete-zLygkxFc.js} +2 -2
  4. package/dist/_chunks/{address-fields-BFVCtfP2.js → address-fields-Dl1ALKhP.js} +2 -2
  5. package/dist/_chunks/{anamnesis-card-Ddnrdfx3.js → anamnesis-card-sUFT0dpF.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-card-S1H_AARG.js → anamnesis-summary-card-BtFPpegp.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-rows-gEXqU5i5.js → anamnesis-summary-rows-BbAREK-3.js} +5 -5
  8. package/dist/_chunks/{antenatal-schedule-timeline-va9zx7tJ.js → antenatal-schedule-timeline-86YVlMYJ.js} +2 -2
  9. package/dist/_chunks/{appointment-card-BMZoXaGx.js → appointment-card-0PebvrOS.js} +2 -2
  10. package/dist/_chunks/{appointment-peek-B1CCv-7J.js → appointment-peek-DdUhqfEi.js} +2 -2
  11. package/dist/_chunks/{appointment-timeline-0k4LxODn.js → appointment-timeline-CC7nmBOH.js} +3 -3
  12. package/dist/_chunks/{appointment-tray-DIxpgIXM.js → appointment-tray-B04zKY7g.js} +2 -2
  13. package/dist/_chunks/{balance-badge-cell-L7bD0Nsh.js → balance-badge-cell-DPjab0eJ.js} +4 -4
  14. package/dist/_chunks/{bill-line-table-WEIRDcv6.js → bill-line-table-vCnVo7_a.js} +10 -8
  15. package/dist/_chunks/{bishop-score-QJu-sM1y.js → bishop-score-CKztphVz.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-BjUfXqcY.js → bmi-calculator-rri5vvMt.js} +2 -2
  17. package/dist/_chunks/{button-group-BvU9vRnX.js → button-group-B2MJo0Se.js} +2 -2
  18. package/dist/_chunks/{calendar-appointment-editor-dialog-DqZMb4yd.js → calendar-appointment-editor-dialog-BEmBcb61.js} +13 -13
  19. package/dist/_chunks/{card-DVO3x8E-.js → card-n6W6LW-N.js} +78 -47
  20. package/dist/_chunks/{care-plan-card-CfV8jiF0.js → care-plan-card-bGTIliXc.js} +2 -2
  21. package/dist/_chunks/{care-plan-entry-card-Bt01kyTl.js → care-plan-entry-card-cdojypxu.js} +2 -2
  22. package/dist/_chunks/{chart-BSx8cfMm.js → chart-Aue_2dMb.js} +2 -2
  23. package/dist/_chunks/{clinical-note-card-Zz5_GEz-.js → clinical-note-card-DHn5W_bv.js} +2 -2
  24. package/dist/_chunks/{connection-status-DjarASoU.js → connection-status-DWClakYw.js} +2 -2
  25. package/dist/_chunks/{contact-card-Cv-Nwvac.js → contact-card-CGpbYuxl.js} +2 -2
  26. package/dist/_chunks/{contact-profile-card-BRCHbQ3-.js → contact-profile-card-BubJPyRB.js} +2 -2
  27. package/dist/_chunks/{cycle-calculator-Brd0PP4U.js → cycle-calculator-C8nWAeTk.js} +2 -2
  28. package/dist/_chunks/{dashboard-grid-3aidD-IQ.js → dashboard-grid-CaxgaEgI.js} +2 -2
  29. package/dist/_chunks/{data-grid-ByhrYGVw.js → data-grid-DiBSbN2Y.js} +7 -3
  30. package/dist/_chunks/{data-table-B47iw2CO.js → data-table-DhYx-hCD.js} +3 -3
  31. package/dist/_chunks/{date-range-panel-B-DUtfw3.js → date-range-panel-CT6nXjRM.js} +2 -2
  32. package/dist/_chunks/{default-tabs-BQcSqcNG.js → default-tabs-CD285u0C.js} +6 -6
  33. package/dist/_chunks/{document-preview-B_JGHsEW.js → document-preview-BWDTCEHI.js} +3 -3
  34. package/dist/_chunks/{dropdown-menu-Dmbak7q6.js → dropdown-menu-Dw6sgQwJ.js} +86 -74
  35. package/dist/_chunks/{due-date-calculator-DzIQXEX5.js → due-date-calculator-c1NJPw9F.js} +3 -3
  36. package/dist/_chunks/{editable-currency-cell-renderer-p-Q1UkZS.js → editable-currency-cell-renderer-BlK-8A7b.js} +2 -2
  37. package/dist/_chunks/{entity-summary-DGCBQDt1.js → entity-summary-BanguTa6.js} +2 -2
  38. package/dist/_chunks/{face-scheme-CEjJUnNe.js → face-scheme-Bt07zQJU.js} +4 -4
  39. package/dist/_chunks/{fetal-weight-CJTlfh_k.js → fetal-weight-D0KofJJw.js} +2 -2
  40. package/dist/_chunks/{file-manager-DEe51ZDe.js → file-manager-CV1_GtjC.js} +4 -4
  41. package/dist/_chunks/{finished-terminal-BKTFUk3S.js → finished-terminal-FR8uc_Ws.js} +2 -2
  42. package/dist/_chunks/{forgot-password-form-Bc_UPax6.js → forgot-password-form-YvI9vX-G.js} +2 -2
  43. package/dist/_chunks/{gestational-age-calculator-60y1RyQL.js → gestational-age-calculator-Cg4Gq42R.js} +3 -3
  44. package/dist/_chunks/{hcg-doubling-BUZQkSYC.js → hcg-doubling-BjTa_77t.js} +2 -2
  45. package/dist/_chunks/{header-settings-DNgvO8fS.js → header-settings-DsvheAOt.js} +160 -147
  46. package/dist/_chunks/{heatmap-tn1WxoMT.js → heatmap-BurtKmeu.js} +3 -3
  47. package/dist/_chunks/{icon-button-group-Ca2VkXy5.js → icon-button-group-BKtkVZ1W.js} +2 -2
  48. package/dist/_chunks/{kit-extensions-BFfLg7c-.js → kit-extensions-C3oL0WTp.js} +7 -7
  49. package/dist/_chunks/{link-cell-renderer-D-Io828l.js → link-cell-renderer-NFNGdAGt.js} +2 -2
  50. package/dist/_chunks/{login-dev-card-CPndtWdz.js → login-dev-card-Dz3ezx1o.js} +2 -2
  51. package/dist/_chunks/map-view-CHeGd94F.js +1443 -0
  52. package/dist/_chunks/{maps-core-gate-DkNqGkm3.js → maps-core-gate-C4dyo1ic.js} +7 -7
  53. package/dist/_chunks/{marketplace-app-shell-CBHNg8x-.js → marketplace-app-shell-BOBWmzoT.js} +6 -6
  54. package/dist/_chunks/{muscle-scheme-7UsRsCHP.js → muscle-scheme-C9dnSxzw.js} +2 -2
  55. package/dist/_chunks/{notes-panel-DexbfrFo.js → notes-panel-CHR-Jv6N.js} +4 -4
  56. package/dist/_chunks/{notification-card-CPW4poUr.js → notification-card-DRMv2_pW.js} +20 -20
  57. package/dist/_chunks/{notification-tray-CQK3lw87.js → notification-tray-mlCfxNRH.js} +2 -2
  58. package/dist/_chunks/{operator-hero-BWayX73x.js → operator-hero-CnfWckNQ.js} +2 -2
  59. package/dist/_chunks/{parts-CtcTW1PN.js → parts-CcyRkB8t.js} +2 -2
  60. package/dist/_chunks/{patient-details-PJ0Y__7t.js → patient-details-C4dHR4iu.js} +2 -2
  61. package/dist/_chunks/{patient-search-Bdx_Ob3y.js → patient-search-D_S7joff.js} +3 -3
  62. package/dist/_chunks/{patient-summary-card-BOfXDP8a.js → patient-summary-card-x0-AhCyC.js} +2 -2
  63. package/dist/_chunks/{payment-automation-upsell-D7yaD4u1.js → payment-automation-upsell-CGdG2Mwk.js} +2 -2
  64. package/dist/_chunks/{payment-request-card-_04afZEx.js → payment-request-card-CEIalOtr.js} +2 -2
  65. package/dist/_chunks/{periodontal-chart-Bjz7O4wT.js → periodontal-chart-DqHrQY4e.js} +2 -2
  66. package/dist/_chunks/{periodontal-chart-card-CxEXHl2x.js → periodontal-chart-card-q9WSHRC2.js} +2 -2
  67. package/dist/_chunks/{periodontal-diagnosis-DnZuZD14.js → periodontal-diagnosis-CJPWluQU.js} +2 -2
  68. package/dist/_chunks/{periodontal-risk-chart-BBPB9wf1.js → periodontal-risk-chart-CKkyOROk.js} +2 -2
  69. package/dist/_chunks/{practice-profile-hero-Cw4NZp0A.js → practice-profile-hero-BFS6lO2a.js} +2 -2
  70. package/dist/_chunks/{practice-results-CrBjScXX.js → practice-results-b3uchdBn.js} +922 -786
  71. package/dist/_chunks/{pregnancy-dating-Bg_VUPwl.js → pregnancy-dating-BO6diQMZ.js} +3 -3
  72. package/dist/_chunks/{pregnancy-weight-gain-B-eXFdmq.js → pregnancy-weight-gain-DkGcEc_l.js} +2 -2
  73. package/dist/_chunks/{privacy-mask-BlJK51MD.js → privacy-mask-DJ1gee4c.js} +2 -2
  74. package/dist/_chunks/{registration-form-DW-0X7S4.js → registration-form-CMXefBnC.js} +2 -2
  75. package/dist/_chunks/{reserved.agent-C1zRHaya.js → reserved.agent-V2Eqoabh.js} +3 -3
  76. package/dist/_chunks/{reset-password-form-C93SH0Tx.js → reset-password-form-D_TePSM1.js} +2 -2
  77. package/dist/_chunks/{reviews-panel-CfJPEkH7.js → reviews-panel-CdHUSndF.js} +2 -2
  78. package/dist/_chunks/{rich-text-editor-r80Zw8ll.js → rich-text-editor-CMPA5Wgy.js} +2 -2
  79. package/dist/_chunks/{row-actions-Df7TJbNR.js → row-actions-Dpf9CrCP.js} +4 -4
  80. package/dist/_chunks/{section-card-DFr2wGal.js → section-card-CYfeQ6EQ.js} +2 -2
  81. package/dist/_chunks/{send-registration-link-form-DWxWa_cJ.js → send-registration-link-form-DuZQuKnI.js} +2 -2
  82. package/dist/_chunks/{signature-request-CgvjLic3.js → signature-request-Dzs0jZsd.js} +2 -2
  83. package/dist/_chunks/{tab-bar-DTn8pHqH.js → tab-bar-CF8R38Og.js} +2 -2
  84. package/dist/_chunks/{tabs-CsmgkiG6.js → tabs-P4qFmxk5.js} +2 -2
  85. package/dist/_chunks/{task-editor-DgUjtqpX.js → task-editor-WdDCqbIL.js} +3 -3
  86. package/dist/_chunks/{tasks-panel-B5Nsf10r.js → tasks-panel-DBSm3WjK.js} +2 -2
  87. package/dist/_chunks/{theme-toggle-DfvdEg_V.js → theme-toggle-CeKl8f_f.js} +3 -3
  88. package/dist/_chunks/{timeline-AMqE-c2T.js → timeline-DXko0M1t.js} +2 -2
  89. package/dist/_chunks/{token-insert-menu-BdcmK5Um.js → token-insert-menu-BrK5NQIq.js} +2 -2
  90. package/dist/_chunks/{toolbar-DbUQBrq4.js → toolbar-z8vXnpXz.js} +3 -3
  91. package/dist/_chunks/{tooth-scheme-LTkT4EXd.js → tooth-scheme-DHRxV2sE.js} +2 -2
  92. package/dist/_chunks/{use-appointment-details-read-_r7cjTtm.js → use-appointment-details-read-B-SXnszJ.js} +8 -8
  93. package/dist/_chunks/{workflow-map-D-u8_YSr.js → workflow-map-DCjkRuS_.js} +3 -3
  94. package/dist/_chunks/{workflow-status-fykpTxfb.js → workflow-status-D0avpoeS.js} +2 -2
  95. package/dist/_chunks/{workflow-webhook-action-DM3W8XZE.js → workflow-webhook-action-dgUjv9T7.js} +3 -3
  96. package/dist/agent-catalog.json +1 -1
  97. package/dist/browser-support.js +2 -0
  98. package/dist/components/_shared/accessible-target.d.ts +7 -0
  99. package/dist/components/_shared/focus-visible.d.ts +8 -0
  100. package/dist/components/address-autocomplete/index.js +1 -1
  101. package/dist/components/address-fields/index.js +1 -1
  102. package/dist/components/anamnesis-card/index.js +1 -1
  103. package/dist/components/anamnesis-summary-card/index.js +1 -1
  104. package/dist/components/appointment-card/index.js +2 -2
  105. package/dist/components/appointment-details-panel/index.js +1 -1
  106. package/dist/components/appointment-peek/index.js +1 -1
  107. package/dist/components/appointment-timeline/index.js +1 -1
  108. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +5 -3
  109. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +3 -1
  110. package/dist/components/bill-line-table/index.js +1 -1
  111. package/dist/components/bill-table/index.js +1 -1
  112. package/dist/components/bishop-score/index.js +1 -1
  113. package/dist/components/bmi-calculator/index.js +1 -1
  114. package/dist/components/booking/index.js +1 -1
  115. package/dist/components/button-group/index.js +1 -1
  116. package/dist/components/card/card.d.ts +9 -2
  117. package/dist/components/card/index.js +1 -1
  118. package/dist/components/care-plan-card/index.js +1 -1
  119. package/dist/components/care-plan-entry-card/index.js +1 -1
  120. package/dist/components/chart/index.js +1 -1
  121. package/dist/components/clinical-note-card/index.js +1 -1
  122. package/dist/components/connection-status/index.js +1 -1
  123. package/dist/components/contact-card/index.js +1 -1
  124. package/dist/components/contact-profile-card/index.js +1 -1
  125. package/dist/components/cycle-calculator/index.js +1 -1
  126. package/dist/components/dashboard-grid/index.js +1 -1
  127. package/dist/components/data-grid/index.js +2 -2
  128. package/dist/components/data-table/index.js +4 -4
  129. package/dist/components/document-preview/index.js +1 -1
  130. package/dist/components/dropdown-menu/index.js +1 -1
  131. package/dist/components/due-date-calculator/index.js +2 -2
  132. package/dist/components/entity-summary/index.js +1 -1
  133. package/dist/components/face-scheme/index.js +1 -1
  134. package/dist/components/fetal-weight/index.js +1 -1
  135. package/dist/components/file-manager/index.js +1 -1
  136. package/dist/components/finished-terminal/index.js +1 -1
  137. package/dist/components/gestational-age-calculator/index.js +1 -1
  138. package/dist/components/hcg-doubling/index.js +1 -1
  139. package/dist/components/header-settings/header-settings.d.ts +7 -3
  140. package/dist/components/header-settings/index.js +1 -1
  141. package/dist/components/heatmap/index.js +1 -1
  142. package/dist/components/icon-button-group/index.js +1 -1
  143. package/dist/components/map-view/index.d.ts +1 -1
  144. package/dist/components/map-view/index.js +1 -1
  145. package/dist/components/map-view/map-view-cluster.d.ts +42 -0
  146. package/dist/components/map-view/map-view.d.ts +87 -0
  147. package/dist/components/muscle-scheme/index.js +1 -1
  148. package/dist/components/notes-panel/index.js +1 -1
  149. package/dist/components/notification-card/index.js +1 -1
  150. package/dist/components/notification-card/notification-card.d.ts +2 -1
  151. package/dist/components/notification-tray/index.js +1 -1
  152. package/dist/components/operator-hero/index.js +1 -1
  153. package/dist/components/patient-details/index.js +1 -1
  154. package/dist/components/patient-search/index.js +1 -1
  155. package/dist/components/patient-summary-card/index.js +1 -1
  156. package/dist/components/patient-table/index.js +1 -1
  157. package/dist/components/payment-card/index.js +1 -1
  158. package/dist/components/periodontal-chart/index.js +1 -1
  159. package/dist/components/periodontal-chart-card/index.js +1 -1
  160. package/dist/components/periodontal-diagnosis/index.js +1 -1
  161. package/dist/components/periodontal-risk-chart/index.js +1 -1
  162. package/dist/components/practice-profile-hero/index.js +1 -1
  163. package/dist/components/practice-results/index.js +1 -1
  164. package/dist/components/practice-results/practice-results.d.ts +20 -0
  165. package/dist/components/pregnancy-dating/index.js +1 -1
  166. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  167. package/dist/components/reviews-panel/index.js +1 -1
  168. package/dist/components/rich-text-editor/index.js +2 -2
  169. package/dist/components/row-actions/index.js +1 -1
  170. package/dist/components/section-card/index.js +1 -1
  171. package/dist/components/skeleton-scheme/index.js +1 -1
  172. package/dist/components/tab-bar/index.js +1 -1
  173. package/dist/components/tabs/index.js +1 -1
  174. package/dist/components/task-editor/index.js +1 -1
  175. package/dist/components/tasks-panel/index.js +1 -1
  176. package/dist/components/theme-toggle/index.js +1 -1
  177. package/dist/components/timeline/index.js +1 -1
  178. package/dist/components/token-insert-menu/index.js +1 -1
  179. package/dist/components/tooth-scheme/index.js +1 -1
  180. package/dist/components/workflow/index.js +1 -1
  181. package/dist/components/workflow-status/index.js +1 -1
  182. package/dist/core.css +1 -1
  183. package/dist/host-compat.css +4 -1
  184. package/dist/i18n/locales/ar.d.ts +21 -0
  185. package/dist/i18n/locales/ar.js +21 -0
  186. package/dist/i18n/locales/de.d.ts +21 -0
  187. package/dist/i18n/locales/de.js +21 -0
  188. package/dist/i18n/locales/el.d.ts +21 -0
  189. package/dist/i18n/locales/el.js +21 -0
  190. package/dist/i18n/locales/en.d.ts +21 -0
  191. package/dist/i18n/locales/en.js +21 -0
  192. package/dist/i18n/locales/es.d.ts +21 -0
  193. package/dist/i18n/locales/es.js +21 -0
  194. package/dist/i18n/locales/fr.d.ts +21 -0
  195. package/dist/i18n/locales/fr.js +21 -0
  196. package/dist/i18n/locales/hi.d.ts +21 -0
  197. package/dist/i18n/locales/hi.js +21 -0
  198. package/dist/i18n/locales/it.d.ts +21 -0
  199. package/dist/i18n/locales/it.js +21 -0
  200. package/dist/i18n/locales/ja.d.ts +21 -0
  201. package/dist/i18n/locales/ja.js +21 -0
  202. package/dist/i18n/locales/nl.d.ts +21 -0
  203. package/dist/i18n/locales/nl.js +21 -0
  204. package/dist/i18n/locales/pl.d.ts +21 -0
  205. package/dist/i18n/locales/pl.js +21 -0
  206. package/dist/i18n/locales/pt.d.ts +21 -0
  207. package/dist/i18n/locales/pt.js +21 -0
  208. package/dist/i18n/locales/ro.d.ts +21 -0
  209. package/dist/i18n/locales/ro.js +21 -0
  210. package/dist/i18n/locales/ru.d.ts +21 -0
  211. package/dist/i18n/locales/ru.js +21 -0
  212. package/dist/i18n/locales/sq.d.ts +21 -0
  213. package/dist/i18n/locales/sq.js +21 -0
  214. package/dist/i18n/locales/sv.d.ts +21 -0
  215. package/dist/i18n/locales/sv.js +21 -0
  216. package/dist/i18n/locales/tr.d.ts +21 -0
  217. package/dist/i18n/locales/tr.js +21 -0
  218. package/dist/i18n/locales/zh.d.ts +21 -0
  219. package/dist/i18n/locales/zh.js +21 -0
  220. package/dist/index.js +89 -89
  221. package/dist/locales/ar.json +21 -0
  222. package/dist/locales/de.json +21 -0
  223. package/dist/locales/el.json +21 -0
  224. package/dist/locales/en.json +21 -0
  225. package/dist/locales/es.json +21 -0
  226. package/dist/locales/fr.json +21 -0
  227. package/dist/locales/hi.json +21 -0
  228. package/dist/locales/it.json +21 -0
  229. package/dist/locales/ja.json +21 -0
  230. package/dist/locales/nl.json +21 -0
  231. package/dist/locales/pl.json +21 -0
  232. package/dist/locales/pt.json +21 -0
  233. package/dist/locales/ro.json +21 -0
  234. package/dist/locales/ru.json +21 -0
  235. package/dist/locales/sq.json +21 -0
  236. package/dist/locales/sv.json +21 -0
  237. package/dist/locales/tr.json +21 -0
  238. package/dist/locales/zh.json +21 -0
  239. package/dist/patterns/anamnesis/index.js +1 -1
  240. package/dist/patterns/calendar/index.js +1 -1
  241. package/dist/patterns/forgot-password-form/index.js +1 -1
  242. package/dist/patterns/login-form/index.js +1 -1
  243. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  244. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  245. package/dist/patterns/registration-form/index.js +1 -1
  246. package/dist/patterns/reset-password-form/index.js +1 -1
  247. package/dist/patterns/send-registration-link-form/index.js +1 -1
  248. package/dist/patterns/signature-request/index.js +1 -1
  249. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  250. package/dist/tokens.css +1 -1
  251. package/package.json +6 -3
  252. package/dist/_chunks/accessible-target-Bs9ELM3l.js +0 -6
  253. package/dist/_chunks/map-view-Bny79cWa.js +0 -856
@@ -1,39 +1,40 @@
1
- import { jsx as n, jsxs as g, Fragment as It } from "react/jsx-runtime";
2
- import { forwardRef as Pt, useState as te, useRef as B, useMemo as F, useImperativeHandle as Mt, useCallback as _, useEffect as ee } from "react";
3
- import { c as q } from "./index-D2ZczOXr.js";
4
- import { useTranslation as N } from "react-i18next";
5
- import { A as oe } from "./alert-C4WKViaS.js";
6
- import { A as Re } from "./avatar-Dp5apm1d.js";
7
- import { B as le } from "./button-DohK_Ak_.js";
8
- import { D as K } from "./dropdown-menu-Dmbak7q6.js";
9
- import { E as At } from "./empty-state-DwJ5YNzz.js";
10
- import { M as Tt } from "./map-view-Bny79cWa.js";
11
- import { R as Se } from "./rating-CGYpg5dj.js";
12
- import { S as $ } from "./sheet-uZZXaO_S.js";
13
- import { S as Ft } from "./skeleton-tTWJpvAq.js";
14
- import { S as _t } from "./spinner-CoflYlEx.js";
15
- import { B as D } from "./badge-BUk4RjTS.js";
16
- import { u as Ht } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
17
- import { u as Ne } from "./use-media-query-CcAx5SMM.js";
18
- import { m as Vt } from "./motion-is-off-BvAuNV5O.js";
19
- import { b as Ot, a as De } from "./format-price-CIX0YJZn.js";
20
- import { u as zt } from "./registry-DvAUVLHh.js";
21
- import { c as Bt } from "./createLucideIcon-DhHxpK9K.js";
22
- import { R as $t } from "./refresh-cw-DnI0cLFC.js";
23
- import { C as qe } from "./chevron-down-DWE7GSq9.js";
24
- import { L as Ue } from "./languages-CGLX6Qpe.js";
25
- import { S as Ge } from "./shield-check-DCJALLVh.js";
26
- import { H as Ze } from "./heart--qCA4ffe.js";
27
- import { M as ce } from "./map-pin-BaY37-Km.js";
28
- import { C as Dt } from "./calendar-clock-hbObjfGY.js";
29
- import { C as Et } from "./calendar-plus-BFrIRE4r.js";
1
+ import { jsx as n, jsxs as g, Fragment as _t } from "react/jsx-runtime";
2
+ import { forwardRef as Tt, useState as G, useRef as F, useMemo as _, useImperativeHandle as Ot, useCallback as H, useEffect as J } from "react";
3
+ import { c as Z } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as P } from "react-i18next";
5
+ import { A as fe } from "./alert-C4WKViaS.js";
6
+ import { A as Ae } from "./avatar-Dp5apm1d.js";
7
+ import { B as pe } from "./button-DohK_Ak_.js";
8
+ import { D as U } from "./dropdown-menu-Dw6sgQwJ.js";
9
+ import { E as Vt } from "./empty-state-DwJ5YNzz.js";
10
+ import { M as Bt, i as He } from "./map-view-CHeGd94F.js";
11
+ import { R as Fe } from "./rating-CGYpg5dj.js";
12
+ import { S as K } from "./sheet-uZZXaO_S.js";
13
+ import { S as Dt } from "./skeleton-tTWJpvAq.js";
14
+ import { S as $t } from "./spinner-CoflYlEx.js";
15
+ import { B as j } from "./badge-BUk4RjTS.js";
16
+ import { u as _e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
17
+ import { u as Te } from "./use-media-query-CcAx5SMM.js";
18
+ import { m as zt } from "./motion-is-off-BvAuNV5O.js";
19
+ import { l as We } from "./length-token-DwMnGEYT.js";
20
+ import { b as Et, a as Qe } from "./format-price-CIX0YJZn.js";
21
+ import { u as Kt } from "./registry-DvAUVLHh.js";
22
+ import { c as jt } from "./createLucideIcon-DhHxpK9K.js";
23
+ import { R as qt } from "./refresh-cw-DnI0cLFC.js";
24
+ import { C as et } from "./chevron-down-DWE7GSq9.js";
25
+ import { L as tt } from "./languages-CGLX6Qpe.js";
26
+ import { S as nt } from "./shield-check-DCJALLVh.js";
27
+ import { H as at } from "./heart--qCA4ffe.js";
28
+ import { M as he } from "./map-pin-BaY37-Km.js";
29
+ import { C as Ut } from "./calendar-clock-hbObjfGY.js";
30
+ import { C as Gt } from "./calendar-plus-BFrIRE4r.js";
30
31
  /**
31
32
  * @license lucide-react v1.22.0 - ISC
32
33
  *
33
34
  * This source code is licensed under the ISC license.
34
35
  * See the LICENSE file in the root directory of this source tree.
35
36
  */
36
- const jt = [
37
+ const Zt = [
37
38
  [
38
39
  "path",
39
40
  {
@@ -43,7 +44,7 @@ const jt = [
43
44
  ],
44
45
  ["path", { d: "M15 5.764v15", key: "1pn4in" }],
45
46
  ["path", { d: "M9 3.236v15", key: "1uimfh" }]
46
- ], Kt = Bt("map", jt), qt = {
47
+ ], Wt = jt("map", Zt), Qt = {
47
48
  id: "practice-results",
48
49
  // `scroll` backs scroll_to_result (light highlight, no selection). focus_pin
49
50
  // follows the pin-click rules: on a map variant at `lg` and up it chooses the
@@ -127,18 +128,18 @@ const jt = [
127
128
  description: 'Stable result id emitted on each rendered result card. Used by scroll_to_result / focus_pin to address a single result. The non-focusable card group is labelled by the practice-result-{id}-name heading, which contains data-component="practice-result-name-link": a visible link to result.href that navigates without firing onResultSelect or click telemetry. Each card also carries up to two CTA anchors: data-component="practice-result-open-cta" (practice page; absent when the consumer sets showCardOpenButton=false) and data-component="practice-result-book-cta" (booking flow; data-slot-aware="true" when it deep-links to a next slot). Card content carries its own read-only hooks: data-component="practice-result-tagline", data-component="practice-result-description", data-component="practice-result-latest-review" (the newest approved review as one truncated line under the rating, from latestReview; its text span carries the language of the review as lang; absent without latestReview), and data-component="practice-result-price" (the kit-formatted first-visit cost: firstVisitPrice supports fixed, from and range amounts plus an optional practice-written label; it takes precedence over the older firstVisitPriceCents fixed-price field. Absent when neither price is set).'
128
129
  }
129
130
  }
130
- }, Ut = 13, Ee = [
131
+ }, Jt = 13, Je = [
131
132
  "distance",
132
133
  "rating",
133
134
  "next-available",
134
135
  "price",
135
136
  "relevance"
136
137
  ];
137
- function We(e, t, i) {
138
+ function it(e, t, i) {
138
139
  const s = `languages.${e}`;
139
140
  return i.exists(s) ? t(s) : e.toUpperCase();
140
141
  }
141
- function E(e, t) {
142
+ function q(e, t) {
142
143
  if (typeof window > "u") return;
143
144
  const i = window.track;
144
145
  try {
@@ -146,28 +147,28 @@ function E(e, t) {
146
147
  } catch {
147
148
  }
148
149
  }
149
- function ne(e, t, i, s) {
150
- const r = e.findIndex((o) => o.id === t);
150
+ function ae(e, t, i, s) {
151
+ const r = e.findIndex((l) => l.id === t);
151
152
  if (r < 0) return;
152
153
  const a = e[r];
153
- a && (E("serp_result_clicked", { resultId: t, source: i, position: r }), s(a, i));
154
+ a && (q("serp_result_clicked", { resultId: t, source: i, position: r }), s(a, i));
154
155
  }
155
- function Gt(e, t) {
156
- const s = (t.lat - e.lat) * Math.PI / 180, r = (t.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, o = t.lat * Math.PI / 180, u = Math.sin(s / 2), l = Math.sin(r / 2), p = u * u + Math.cos(a) * Math.cos(o) * l * l;
157
- return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(p)));
156
+ function Xt(e, t) {
157
+ const s = (t.lat - e.lat) * Math.PI / 180, r = (t.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, l = t.lat * Math.PI / 180, m = Math.sin(s / 2), c = Math.sin(r / 2), o = m * m + Math.cos(a) * Math.cos(l) * c * c;
158
+ return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(o)));
158
159
  }
159
- function Zt(e, t, i) {
160
+ function Yt(e, t, i) {
160
161
  var r;
161
162
  const s = [];
162
163
  for (const a of e) {
163
- const o = a.field ?? a.key, u = (((r = i == null ? void 0 : i[a.key]) == null ? void 0 : r.length) ?? 0) > 0, l = a.type === "boolean" || a.type !== "options" && a.options.length === 0 && (u || t.some(
164
- (p) => typeof p[o] == "boolean"
164
+ const l = a.field ?? a.key, m = (((r = i == null ? void 0 : i[a.key]) == null ? void 0 : r.length) ?? 0) > 0, c = a.type === "boolean" || a.type !== "options" && a.options.length === 0 && (m || t.some(
165
+ (o) => typeof o[l] == "boolean"
165
166
  ));
166
- !l && a.options.length === 0 || s.push({ ...a, boolean: l, booleanField: o });
167
+ !c && a.options.length === 0 || s.push({ ...a, boolean: c, booleanField: l });
167
168
  }
168
169
  return s;
169
170
  }
170
- function Wt(e, t, i) {
171
+ function en(e, t, i) {
171
172
  return !t || Object.keys(t).length === 0 ? e : e.filter((s) => {
172
173
  for (const r of i) {
173
174
  const a = t[r.key];
@@ -176,47 +177,47 @@ function Wt(e, t, i) {
176
177
  if (s[r.booleanField] !== !0) return !1;
177
178
  continue;
178
179
  }
179
- const o = r.key === "insurance" ? s.insurances : r.key === "language" ? s.languages : s[r.key];
180
- if (!Array.isArray(o) || !(r.multi ? a.some((l) => o.includes(l)) : o.includes(a[0]))) return !1;
180
+ const l = r.key === "insurance" ? s.insurances : r.key === "language" ? s.languages : s[r.key];
181
+ if (!Array.isArray(l) || !(r.multi ? a.some((c) => l.includes(c)) : l.includes(a[0]))) return !1;
181
182
  }
182
183
  return !0;
183
184
  });
184
185
  }
185
- function Qt(e) {
186
+ function tn(e) {
186
187
  const t = e.firstVisitPrice && Number.isFinite(e.firstVisitPrice.minCents) ? e.firstVisitPrice.minCents : e.firstVisitPriceCents;
187
188
  return t != null && Number.isFinite(t) && t >= 0 ? t : 1 / 0;
188
189
  }
189
- function Jt(e) {
190
+ function nn(e) {
190
191
  return e.firstVisitPrice && Number.isFinite(e.firstVisitPrice.minCents) ? e.firstVisitPrice.kind === "fixed" : !0;
191
192
  }
192
- function je(e, t) {
193
+ function Xe(e, t) {
193
194
  return e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 : e - t;
194
195
  }
195
- function Xt(e, t, i) {
196
+ function an(e, t, i) {
196
197
  const s = e.map((a) => {
197
- const o = a.location ? a.location.distanceKm ?? (i ? Gt(i, a.location) : void 0) : void 0;
198
+ const l = a.location ? a.location.distanceKm ?? (i ? Xt(i, a.location) : void 0) : void 0;
198
199
  return {
199
200
  result: a,
200
- distanceKm: o,
201
- price: t === "price" ? Qt(a) : void 0,
202
- fixed: t === "price" ? Jt(a) : !1
201
+ distanceKm: l,
202
+ price: t === "price" ? tn(a) : void 0,
203
+ fixed: t === "price" ? nn(a) : !1
203
204
  };
204
- }), r = (a, o) => {
205
- var u, l, p, c;
205
+ }), r = (a, l) => {
206
+ var m, c, o, d;
206
207
  switch (t) {
207
208
  case "distance":
208
- return je(a.distanceKm, o.distanceKm);
209
+ return Xe(a.distanceKm, l.distanceKm);
209
210
  case "price": {
210
- const h = a.price ?? 1 / 0, m = o.price ?? 1 / 0;
211
- return h !== m ? h - m : h !== 1 / 0 && a.fixed !== o.fixed ? a.fixed ? -1 : 1 : je(a.distanceKm, o.distanceKm);
211
+ const p = a.price ?? 1 / 0, f = l.price ?? 1 / 0;
212
+ return p !== f ? p - f : p !== 1 / 0 && a.fixed !== l.fixed ? a.fixed ? -1 : 1 : Xe(a.distanceKm, l.distanceKm);
212
213
  }
213
214
  case "rating": {
214
- const h = ((u = a.result.rating) == null ? void 0 : u.value) ?? -1;
215
- return (((l = o.result.rating) == null ? void 0 : l.value) ?? -1) - h;
215
+ const p = ((m = a.result.rating) == null ? void 0 : m.value) ?? -1;
216
+ return (((c = l.result.rating) == null ? void 0 : c.value) ?? -1) - p;
216
217
  }
217
218
  case "next-available": {
218
- const h = ((p = a.result.nextAvailableSlot) == null ? void 0 : p.dateTime) ?? "", m = ((c = o.result.nextAvailableSlot) == null ? void 0 : c.dateTime) ?? "";
219
- return !h && !m ? 0 : h ? m ? h.localeCompare(m) : -1 : 1;
219
+ const p = ((o = a.result.nextAvailableSlot) == null ? void 0 : o.dateTime) ?? "", f = ((d = l.result.nextAvailableSlot) == null ? void 0 : d.dateTime) ?? "";
220
+ return !p && !f ? 0 : p ? f ? p.localeCompare(f) : -1 : 1;
220
221
  }
221
222
  case "relevance":
222
223
  default:
@@ -224,24 +225,24 @@ function Xt(e, t, i) {
224
225
  }
225
226
  };
226
227
  return [...s].sort(r).map(
227
- ({ result: a, distanceKm: o }) => o != null && a.location ? {
228
+ ({ result: a, distanceKm: l }) => l != null && a.location ? {
228
229
  ...a,
229
- location: { ...a.location, distanceKm: o }
230
+ location: { ...a.location, distanceKm: l }
230
231
  } : a
231
232
  );
232
233
  }
233
- function Yt(e) {
234
+ function sn(e) {
234
235
  let t = -1 / 0, i = 1 / 0, s = -1 / 0, r = 1 / 0, a = !1;
235
- for (const o of e) {
236
- if (!o.location) continue;
236
+ for (const l of e) {
237
+ if (!l.location) continue;
237
238
  a = !0;
238
- const { lat: u, lng: l } = o.location;
239
- u > t && (t = u), u < i && (i = u), l > s && (s = l), l < r && (r = l);
239
+ const { lat: m, lng: c } = l.location;
240
+ m > t && (t = m), m < i && (i = m), c > s && (s = c), c < r && (r = c);
240
241
  }
241
242
  if (a)
242
243
  return { north: t, south: i, east: s, west: r };
243
244
  }
244
- const en = q(
245
+ const rn = Z(
245
246
  "ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:gap-[var(--spacing-md)]",
246
247
  {
247
248
  variants: {
@@ -254,33 +255,33 @@ const en = q(
254
255
  defaultVariants: { variant: "split-list-map" }
255
256
  }
256
257
  );
257
- function Qe({
258
+ function st({
258
259
  heading: e,
259
260
  headingLevel: t,
260
261
  intro: i,
261
262
  totalCount: s,
262
263
  searchCentreLabel: r
263
264
  }) {
264
- const { t: a } = N("ui"), o = `h${t}`;
265
+ const { t: a } = P("ui"), l = `h${t}`;
265
266
  if (!e && !i && s == null) return null;
266
- const u = s != null ? r ? a("practiceResults.results.heading", {
267
+ const m = s != null ? r ? a("practiceResults.results.heading", {
267
268
  count: s,
268
269
  place: r
269
270
  }) : a("practiceResults.results.summary", { count: s }) : void 0;
270
271
  return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
271
- e ? /* @__PURE__ */ n(o, { className: "type-title-section ds:m-0 ds:text-[var(--foreground)]", children: e }) : null,
272
+ e ? /* @__PURE__ */ n(l, { className: "type-title-section ds:m-0 ds:text-[var(--foreground)]", children: e }) : null,
272
273
  i ? /* @__PURE__ */ n("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: i }) : null,
273
- u ? /* @__PURE__ */ n(
274
+ m ? /* @__PURE__ */ n(
274
275
  "p",
275
276
  {
276
277
  className: "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)]",
277
278
  "aria-live": "polite",
278
- children: u
279
+ children: m
279
280
  }
280
281
  ) : null
281
282
  ] });
282
283
  }
283
- const de = q(
284
+ const ge = Z(
284
285
  [
285
286
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
286
287
  "ds:min-h-[var(--min-target-size)]",
@@ -302,7 +303,7 @@ const de = q(
302
303
  },
303
304
  defaultVariants: { state: "idle" }
304
305
  }
305
- ), tn = q(
306
+ ), on = Z(
306
307
  "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
307
308
  {
308
309
  variants: {
@@ -321,7 +322,7 @@ const de = q(
321
322
  },
322
323
  defaultVariants: { placement: "inline" }
323
324
  }
324
- ), nn = q(
325
+ ), ln = Z(
325
326
  [
326
327
  "ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
327
328
  "ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
@@ -332,26 +333,26 @@ const de = q(
332
333
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
333
334
  ].join(" ")
334
335
  );
335
- function Je({
336
+ function rt({
336
337
  facets: e,
337
338
  value: t,
338
339
  onChange: i,
339
340
  floating: s
340
341
  }) {
341
- const { t: r } = N("ui"), a = F(() => t ?? {}, [t]), o = F(
342
- () => Object.values(a).some((c) => c && c.length > 0),
342
+ const { t: r } = P("ui"), a = _(() => t ?? {}, [t]), l = _(
343
+ () => Object.values(a).some((d) => d && d.length > 0),
343
344
  [a]
344
- ), u = (c, h) => {
345
- const m = { ...a };
346
- h.length === 0 ? delete m[c] : m[c] = h, i(m), E("serp_filter_changed", { key: c, values: h });
347
- }, l = (c) => {
348
- var m;
349
- const h = (((m = a[c]) == null ? void 0 : m.length) ?? 0) > 0;
350
- u(c, h ? [] : ["true"]);
351
- }, p = (c, h) => {
352
- const m = a[c.key] ?? [], x = m.includes(h);
345
+ ), m = (d, p) => {
346
+ const f = { ...a };
347
+ p.length === 0 ? delete f[d] : f[d] = p, i(f), q("serp_filter_changed", { key: d, values: p });
348
+ }, c = (d) => {
349
+ var f;
350
+ const p = (((f = a[d]) == null ? void 0 : f.length) ?? 0) > 0;
351
+ m(d, p ? [] : ["true"]);
352
+ }, o = (d, p) => {
353
+ const f = a[d.key] ?? [], x = f.includes(p);
353
354
  let b;
354
- c.multi ? b = x ? m.filter((R) => R !== h) : [...m, h] : b = x ? [] : [h], u(c.key, b);
355
+ d.multi ? b = x ? f.filter((y) => y !== p) : [...f, p] : b = x ? [] : [p], m(d.key, b);
355
356
  };
356
357
  return e.length === 0 ? null : /* @__PURE__ */ g(
357
358
  "div",
@@ -359,44 +360,44 @@ function Je({
359
360
  "data-component": "practice-results-filters",
360
361
  role: "group",
361
362
  "aria-label": r("practiceResults.filters.label"),
362
- className: tn({
363
+ className: on({
363
364
  placement: s ? "floating" : "inline"
364
365
  }),
365
366
  children: [
366
- e.map((c) => {
367
- const h = c.boolean, m = a[c.key] ?? [], x = m.length > 0;
368
- if (h)
367
+ e.map((d) => {
368
+ const p = d.boolean, f = a[d.key] ?? [], x = f.length > 0;
369
+ if (p)
369
370
  return /* @__PURE__ */ n(
370
371
  "button",
371
372
  {
372
373
  type: "button",
373
374
  "aria-pressed": x,
374
- "aria-label": c.label,
375
- onClick: () => l(c.key),
376
- className: de({
375
+ "aria-label": d.label,
376
+ onClick: () => c(d.key),
377
+ className: ge({
377
378
  state: x ? "active" : "idle"
378
379
  }),
379
- children: /* @__PURE__ */ n("span", { children: c.label })
380
+ children: /* @__PURE__ */ n("span", { children: d.label })
380
381
  },
381
- c.key
382
+ d.key
382
383
  );
383
- const b = x ? ` (${m.length})` : "";
384
- return /* @__PURE__ */ g(K.Root, { children: [
385
- /* @__PURE__ */ n(K.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
384
+ const b = x ? ` (${f.length})` : "";
385
+ return /* @__PURE__ */ g(U.Root, { children: [
386
+ /* @__PURE__ */ n(U.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
386
387
  "button",
387
388
  {
388
389
  type: "button",
389
- "aria-label": `${c.label}${b}`,
390
- className: de({
390
+ "aria-label": `${d.label}${b}`,
391
+ className: ge({
391
392
  state: x ? "active" : "idle"
392
393
  }),
393
394
  children: [
394
395
  /* @__PURE__ */ g("span", { children: [
395
- c.label,
396
+ d.label,
396
397
  b
397
398
  ] }),
398
399
  /* @__PURE__ */ n(
399
- qe,
400
+ et,
400
401
  {
401
402
  "aria-hidden": "true",
402
403
  className: "ds:size-3.5 ds:shrink-0"
@@ -405,27 +406,27 @@ function Je({
405
406
  ]
406
407
  }
407
408
  ) }),
408
- /* @__PURE__ */ n(K.Content, { sideOffset: 8, align: "start", children: c.options.map((R) => /* @__PURE__ */ n(
409
- K.CheckboxItem,
409
+ /* @__PURE__ */ n(U.Content, { sideOffset: 8, align: "start", children: d.options.map((y) => /* @__PURE__ */ n(
410
+ U.CheckboxItem,
410
411
  {
411
- checked: m.includes(R.value),
412
- onSelect: (w) => {
413
- c.multi && w.preventDefault(), p(c, R.value);
412
+ checked: f.includes(y.value),
413
+ onSelect: (N) => {
414
+ d.multi && N.preventDefault(), o(d, y.value);
414
415
  },
415
- children: R.label
416
+ children: y.label
416
417
  },
417
- R.value
418
+ y.value
418
419
  )) })
419
- ] }, c.key);
420
+ ] }, d.key);
420
421
  }),
421
- o ? /* @__PURE__ */ n(
422
+ l ? /* @__PURE__ */ n(
422
423
  "button",
423
424
  {
424
425
  type: "button",
425
426
  onClick: () => {
426
- i({}), E("serp_filter_changed", { key: "*", values: [] });
427
+ i({}), q("serp_filter_changed", { key: "*", values: [] });
427
428
  },
428
- className: nn(),
429
+ className: ln(),
429
430
  children: r("practiceResults.filters.clear")
430
431
  }
431
432
  ) : null
@@ -433,8 +434,8 @@ function Je({
433
434
  }
434
435
  );
435
436
  }
436
- function Ce({ value: e, options: t, onChange: i }) {
437
- const { t: s } = N("ui"), r = (a) => {
437
+ function Pe({ value: e, options: t, onChange: i }) {
438
+ const { t: s } = P("ui"), r = (a) => {
438
439
  switch (a) {
439
440
  case "distance":
440
441
  return s("practiceResults.sort.distance");
@@ -449,47 +450,47 @@ function Ce({ value: e, options: t, onChange: i }) {
449
450
  return s("practiceResults.sort.relevance");
450
451
  }
451
452
  };
452
- return /* @__PURE__ */ g(K.Root, { children: [
453
- /* @__PURE__ */ n(K.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
453
+ return /* @__PURE__ */ g(U.Root, { children: [
454
+ /* @__PURE__ */ n(U.Trigger, { asChild: !0, children: /* @__PURE__ */ g(
454
455
  "button",
455
456
  {
456
457
  type: "button",
457
458
  "aria-label": `${s("practiceResults.sort.label")}: ${r(e)}`,
458
- className: de({ state: "idle" }),
459
+ className: ge({ state: "idle" }),
459
460
  children: [
460
461
  /* @__PURE__ */ g("span", { children: [
461
462
  s("practiceResults.sort.label"),
462
463
  ": ",
463
464
  r(e)
464
465
  ] }),
465
- /* @__PURE__ */ n(qe, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" })
466
+ /* @__PURE__ */ n(et, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" })
466
467
  ]
467
468
  }
468
469
  ) }),
469
- /* @__PURE__ */ n(K.Content, { sideOffset: 8, align: "end", children: /* @__PURE__ */ n(
470
- K.RadioGroup,
470
+ /* @__PURE__ */ n(U.Content, { sideOffset: 8, align: "end", children: /* @__PURE__ */ n(
471
+ U.RadioGroup,
471
472
  {
472
473
  value: e,
473
474
  onValueChange: (a) => {
474
- const o = a;
475
- o !== e && (i(o), E("serp_sort_changed", { sort: o }));
475
+ const l = a;
476
+ l !== e && (i(l), q("serp_sort_changed", { sort: l }));
476
477
  },
477
- children: t.map((a) => /* @__PURE__ */ n(K.RadioItem, { value: a, children: r(a) }, a))
478
+ children: t.map((a) => /* @__PURE__ */ n(U.RadioItem, { value: a, children: r(a) }, a))
478
479
  }
479
480
  ) })
480
481
  ] });
481
482
  }
482
- function an({ distanceKm: e }) {
483
- const { t, i18n: i } = N("ui"), s = F(() => {
483
+ function cn({ distanceKm: e }) {
484
+ const { t, i18n: i } = P("ui"), s = _(() => {
484
485
  if (e < 1) return t("practiceResults.distance.below");
485
486
  const r = new Intl.NumberFormat(i.language, {
486
487
  maximumFractionDigits: 1
487
488
  }).format(e);
488
489
  return t("practiceResults.distance.km", { distance: r });
489
490
  }, [e, t, i.language]);
490
- return /* @__PURE__ */ n(D, { variant: "neutral", leading: /* @__PURE__ */ n(ce, { "aria-hidden": "true" }), children: s });
491
+ return /* @__PURE__ */ n(j, { variant: "neutral", leading: /* @__PURE__ */ n(he, { "aria-hidden": "true" }), children: s });
491
492
  }
492
- const Ke = q(
493
+ const Me = Z(
493
494
  [
494
495
  "ds:w-[12rem] ds:h-[8rem] ds:shrink-0",
495
496
  "ds:rounded-[var(--radius-md)] ds:overflow-hidden"
@@ -508,54 +509,78 @@ const Ke = q(
508
509
  defaultVariants: { state: "placeholder" }
509
510
  }
510
511
  );
511
- function sn() {
512
+ function dn() {
512
513
  if (typeof document > "u") return "4945a3";
513
514
  const e = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), t = /^#?([0-9a-fA-F]{6})$/.exec(e);
514
515
  return t ? t[1] : "4945a3";
515
516
  }
516
- function rn({
517
- apiKey: e,
518
- center: t,
519
- zoom: i = 14,
520
- address: s,
521
- addressLang: r
517
+ function Ye({
518
+ address: e,
519
+ addressLang: t
522
520
  }) {
523
- const { t: a } = N("ui");
524
- if (!e)
525
- return /* @__PURE__ */ g(
526
- "div",
521
+ return /* @__PURE__ */ g(
522
+ "div",
523
+ {
524
+ "aria-hidden": e ? void 0 : "true",
525
+ className: Me({ state: "placeholder" }),
526
+ children: [
527
+ /* @__PURE__ */ n(he, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
528
+ e ? /* @__PURE__ */ n(
529
+ "span",
530
+ {
531
+ lang: t,
532
+ dir: "auto",
533
+ className: "type-meta ds:[overflow-wrap:anywhere]",
534
+ children: e
535
+ }
536
+ ) : null
537
+ ]
538
+ }
539
+ );
540
+ }
541
+ function un({
542
+ image: e,
543
+ apiKey: t,
544
+ center: i,
545
+ zoom: s = 14,
546
+ address: r,
547
+ addressLang: a
548
+ }) {
549
+ const { t: l } = P("ui"), [m, c] = G(null);
550
+ if (e && m !== e.src)
551
+ return /* @__PURE__ */ n(
552
+ "img",
527
553
  {
528
- "aria-hidden": s ? void 0 : "true",
529
- className: Ke({ state: "placeholder" }),
530
- children: [
531
- /* @__PURE__ */ n(ce, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
532
- s ? /* @__PURE__ */ n(
533
- "span",
534
- {
535
- lang: r,
536
- dir: "auto",
537
- className: "type-meta ds:[overflow-wrap:anywhere]",
538
- children: s
539
- }
540
- ) : null
541
- ]
554
+ src: e.src,
555
+ srcSet: e.srcSet,
556
+ alt: "",
557
+ loading: "lazy",
558
+ decoding: "async",
559
+ width: 240,
560
+ height: 160,
561
+ onError: () => c(e.src),
562
+ className: Me({ state: "image" })
542
563
  }
543
564
  );
544
- const o = sn(), u = `https://maps.googleapis.com/maps/api/staticmap?center=${t.lat},${t.lng}&zoom=${i}&size=240x160&scale=2&markers=color:0x${o}%7C${t.lat},${t.lng}&key=${encodeURIComponent(e)}`;
565
+ if (e)
566
+ return /* @__PURE__ */ n(Ye, { address: r, addressLang: a });
567
+ if (!t)
568
+ return /* @__PURE__ */ n(Ye, { address: r, addressLang: a });
569
+ const o = dn(), d = `https://maps.googleapis.com/maps/api/staticmap?center=${i.lat},${i.lng}&zoom=${s}&size=240x160&scale=2&markers=color:0x${o}%7C${i.lat},${i.lng}&key=${encodeURIComponent(t)}`;
545
570
  return /* @__PURE__ */ n(
546
571
  "img",
547
572
  {
548
- src: u,
549
- alt: a("practiceResults.thumbnail.alt"),
573
+ src: d,
574
+ alt: l("practiceResults.thumbnail.alt"),
550
575
  loading: "lazy",
551
576
  decoding: "async",
552
577
  width: 240,
553
578
  height: 160,
554
- className: Ke({ state: "image" })
579
+ className: Me({ state: "image" })
555
580
  }
556
581
  );
557
582
  }
558
- function on({ tagline: e, lang: t }) {
583
+ function mn({ tagline: e, lang: t }) {
559
584
  return e ? /* @__PURE__ */ n(
560
585
  "span",
561
586
  {
@@ -567,7 +592,7 @@ function on({ tagline: e, lang: t }) {
567
592
  }
568
593
  ) : null;
569
594
  }
570
- function ln(e) {
595
+ function fn(e) {
571
596
  if (typeof e != "string") return;
572
597
  const t = e.trim().replace(/_/g, "-");
573
598
  if (t)
@@ -577,10 +602,10 @@ function ln(e) {
577
602
  return;
578
603
  }
579
604
  }
580
- function Xe({
605
+ function ot({
581
606
  review: e
582
607
  }) {
583
- const { t } = N("ui"), i = typeof (e == null ? void 0 : e.text) == "string" ? e.text.trim() : "";
608
+ const { t } = P("ui"), i = typeof (e == null ? void 0 : e.text) == "string" ? e.text.trim() : "";
584
609
  return !e || !i ? null : /* @__PURE__ */ g(
585
610
  "p",
586
611
  {
@@ -592,7 +617,7 @@ function Xe({
592
617
  /* @__PURE__ */ n(
593
618
  "span",
594
619
  {
595
- lang: ln(e.lang),
620
+ lang: fn(e.lang),
596
621
  dir: "auto",
597
622
  className: "ds:min-w-0 ds:truncate",
598
623
  children: i
@@ -602,7 +627,7 @@ function Xe({
602
627
  }
603
628
  );
604
629
  }
605
- const cn = q(
630
+ const pn = Z(
606
631
  "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)] ds:whitespace-pre-line ds:break-words",
607
632
  {
608
633
  variants: {
@@ -614,7 +639,7 @@ const cn = q(
614
639
  defaultVariants: { density: "compact" }
615
640
  }
616
641
  );
617
- function Ye({
642
+ function lt({
618
643
  description: e,
619
644
  density: t,
620
645
  lang: i
@@ -625,26 +650,26 @@ function Ye({
625
650
  "data-component": "practice-result-description",
626
651
  lang: i,
627
652
  dir: "auto",
628
- className: cn({ density: t }),
653
+ className: pn({ density: t }),
629
654
  children: e
630
655
  }
631
656
  ) : null;
632
657
  }
633
- function dn(e, t, i, s) {
658
+ function hn(e, t, i, s) {
634
659
  if (e.kind === "fixed")
635
- return Ot(
660
+ return Et(
636
661
  e.minCents,
637
662
  t,
638
663
  i,
639
664
  s("common.freeOfCharge")
640
665
  );
641
- const r = De(e.minCents, t, i);
666
+ const r = Qe(e.minCents, t, i);
642
667
  return e.kind === "range" && e.maxCents != null && Number.isFinite(e.maxCents) && e.maxCents > e.minCents ? s("practiceResults.card.priceRange", {
643
668
  min: r,
644
- max: De(e.maxCents, t, i)
669
+ max: Qe(e.maxCents, t, i)
645
670
  }) : s("practiceResults.card.priceFrom", { price: r });
646
671
  }
647
- const un = q(
672
+ const gn = Z(
648
673
  "ds:min-w-0 ds:max-w-full ds:[overflow-wrap:anywhere]",
649
674
  {
650
675
  variants: {
@@ -652,23 +677,23 @@ const un = q(
652
677
  }
653
678
  }
654
679
  );
655
- function mn({
680
+ function vn({
656
681
  price: e,
657
682
  cents: t,
658
683
  currencyCode: i = "EUR"
659
684
  }) {
660
- var m;
661
- const { t: s, i18n: r } = N("ui"), a = e && Number.isFinite(e.minCents) ? e : void 0, o = (a == null ? void 0 : a.kind) ?? "fixed", u = (a == null ? void 0 : a.minCents) ?? t, l = a == null ? void 0 : a.maxCents, p = F(
662
- () => u == null ? void 0 : dn(
663
- { kind: o, minCents: u, maxCents: l },
685
+ var f;
686
+ const { t: s, i18n: r } = P("ui"), a = e && Number.isFinite(e.minCents) ? e : void 0, l = (a == null ? void 0 : a.kind) ?? "fixed", m = (a == null ? void 0 : a.minCents) ?? t, c = a == null ? void 0 : a.maxCents, o = _(
687
+ () => m == null ? void 0 : hn(
688
+ { kind: l, minCents: m, maxCents: c },
664
689
  i,
665
690
  r.language ?? "en",
666
691
  s
667
692
  ),
668
- [o, u, l, i, r.language, s]
693
+ [l, m, c, i, r.language, s]
669
694
  );
670
- if (p === void 0) return null;
671
- const c = (m = a == null ? void 0 : a.label) == null ? void 0 : m.trim().replace(/:$/, "").trim(), h = c || s("practiceResults.card.firstVisitPrice");
695
+ if (o === void 0) return null;
696
+ const d = (f = a == null ? void 0 : a.label) == null ? void 0 : f.trim().replace(/:$/, "").trim(), p = d || s("practiceResults.card.firstVisitPrice");
672
697
  return /* @__PURE__ */ g(
673
698
  "span",
674
699
  {
@@ -679,33 +704,33 @@ function mn({
679
704
  "span",
680
705
  {
681
706
  dir: "auto",
682
- title: h,
683
- className: un({
684
- practiceWritten: !!c
707
+ title: p,
708
+ className: gn({
709
+ practiceWritten: !!d
685
710
  }),
686
- children: h
711
+ children: p
687
712
  }
688
713
  ),
689
714
  /* @__PURE__ */ n("span", { className: "ds:sr-only", children: ": " }),
690
715
  /* @__PURE__ */ n(
691
- D,
716
+ j,
692
717
  {
693
718
  variant: "accentSoft",
694
719
  size: "lg",
695
720
  dir: "auto",
696
721
  className: "ds:h-auto ds:min-h-6 ds:min-w-0 ds:max-w-full ds:whitespace-normal ds:[overflow-wrap:anywhere]",
697
- children: p
722
+ children: o
698
723
  }
699
724
  )
700
725
  ]
701
726
  }
702
727
  );
703
728
  }
704
- function Le({ time: e }) {
705
- const { t } = N("ui");
729
+ function Oe({ time: e }) {
730
+ const { t } = P("ui");
706
731
  return /* @__PURE__ */ g("span", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
707
732
  /* @__PURE__ */ n(
708
- Dt,
733
+ Ut,
709
734
  {
710
735
  "aria-hidden": "true",
711
736
  className: "ds:size-4 ds:text-[var(--primary)]"
@@ -714,7 +739,7 @@ function Le({ time: e }) {
714
739
  t("practiceResults.nextSlot.summary", { time: e })
715
740
  ] });
716
741
  }
717
- function et({
742
+ function ct({
718
743
  result: e,
719
744
  openLabel: t,
720
745
  bookLabel: i,
@@ -722,29 +747,29 @@ function et({
722
747
  onOpenClick: r,
723
748
  onBookClick: a
724
749
  }) {
725
- const { t: o } = N("ui"), u = e.nextAvailableSlot, l = (u == null ? void 0 : u.bookingHref) ?? e.bookingHref ?? e.href, p = u && s ? o("practiceResults.nextSlot.cta", { time: s }) : i;
750
+ const { t: l } = P("ui"), m = e.nextAvailableSlot, c = (m == null ? void 0 : m.bookingHref) ?? e.bookingHref ?? e.href, o = m && s ? l("practiceResults.nextSlot.cta", { time: s }) : i;
726
751
  return /* @__PURE__ */ g("div", { className: "ds:mt-[var(--spacing-xs)] ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)]", children: [
727
- t !== void 0 ? /* @__PURE__ */ n(le, { intent: "secondary", size: "sm", asChild: !0, onClick: r, children: /* @__PURE__ */ g("a", { href: e.href, "data-component": "practice-result-open-cta", children: [
752
+ t !== void 0 ? /* @__PURE__ */ n(pe, { intent: "secondary", size: "sm", asChild: !0, onClick: r, children: /* @__PURE__ */ g("a", { href: e.href, "data-component": "practice-result-open-cta", children: [
728
753
  t,
729
754
  " ",
730
755
  /* @__PURE__ */ n("span", { className: "ds:sr-only", children: e.name })
731
756
  ] }) }) : null,
732
757
  /* @__PURE__ */ n(
733
- le,
758
+ pe,
734
759
  {
735
760
  intent: "primary",
736
761
  size: "sm",
737
762
  asChild: !0,
738
- startIcon: /* @__PURE__ */ n(Et, { "aria-hidden": "true" }),
763
+ startIcon: /* @__PURE__ */ n(Gt, { "aria-hidden": "true" }),
739
764
  onClick: a,
740
765
  children: /* @__PURE__ */ g(
741
766
  "a",
742
767
  {
743
- href: l,
768
+ href: c,
744
769
  "data-component": "practice-result-book-cta",
745
- "data-slot-aware": u ? "true" : void 0,
770
+ "data-slot-aware": m ? "true" : void 0,
746
771
  children: [
747
- p,
772
+ o,
748
773
  " ",
749
774
  /* @__PURE__ */ n("span", { className: "ds:sr-only", children: e.name })
750
775
  ]
@@ -754,7 +779,7 @@ function et({
754
779
  )
755
780
  ] });
756
781
  }
757
- const tt = q(
782
+ const dt = Z(
758
783
  [
759
784
  "ds:@container/result-card ds:relative ds:flex ds:w-full ds:cursor-pointer",
760
785
  "ds:rounded-[var(--radius-lg)]",
@@ -792,18 +817,18 @@ const tt = q(
792
817
  },
793
818
  defaultVariants: { density: "compact" }
794
819
  }
795
- ), fn = q([
820
+ ), bn = Z([
796
821
  "ds:text-[var(--foreground)] ds:no-underline ds:hover:underline",
797
822
  "ds:rounded-[var(--radius-xs)]",
798
823
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
799
824
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
800
825
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
801
826
  ]);
802
- function pn({
827
+ function xn({
803
828
  result: e,
804
829
  headingLevel: t
805
830
  }) {
806
- const i = `h${Te(t)}`;
831
+ const i = `h${De(t)}`;
807
832
  return /* @__PURE__ */ n(
808
833
  i,
809
834
  {
@@ -816,20 +841,20 @@ function pn({
816
841
  href: e.href,
817
842
  dir: "auto",
818
843
  "data-component": "practice-result-name-link",
819
- className: fn(),
844
+ className: bn(),
820
845
  children: e.name
821
846
  }
822
847
  )
823
848
  }
824
849
  );
825
850
  }
826
- function nt({
851
+ function ut({
827
852
  result: e,
828
853
  headingLevel: t,
829
854
  selected: i = !1
830
855
  }) {
831
856
  var r, a;
832
- const { t: s } = N("ui");
857
+ const { t: s } = P("ui");
833
858
  return /* @__PURE__ */ n(
834
859
  "div",
835
860
  {
@@ -838,27 +863,27 @@ function nt({
838
863
  children: /* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)] ds:sm:@min-[280px]/result-heading:flex-row ds:sm:@min-[280px]/result-heading:gap-[var(--spacing-md)]", children: [
839
864
  /* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:w-full ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
840
865
  /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
841
- /* @__PURE__ */ n(pn, { result: e, headingLevel: t }),
842
- ((r = e.location) == null ? void 0 : r.distanceKm) != null ? /* @__PURE__ */ n(an, { distanceKm: e.location.distanceKm }) : null,
866
+ /* @__PURE__ */ n(xn, { result: e, headingLevel: t }),
867
+ ((r = e.location) == null ? void 0 : r.distanceKm) != null ? /* @__PURE__ */ n(cn, { distanceKm: e.location.distanceKm }) : null,
843
868
  i ? /* @__PURE__ */ n(
844
- D,
869
+ j,
845
870
  {
846
871
  variant: "brand",
847
872
  "data-component": "practice-result-selected-tag",
848
- leading: /* @__PURE__ */ n(ce, { "aria-hidden": "true" }),
873
+ leading: /* @__PURE__ */ n(he, { "aria-hidden": "true" }),
849
874
  children: s("practiceResults.selectedOnMap")
850
875
  }
851
876
  ) : null
852
877
  ] }),
853
878
  e.subtitle ? /* @__PURE__ */ n("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
854
- /* @__PURE__ */ n(on, { tagline: e.tagline, lang: e.contentLang }),
879
+ /* @__PURE__ */ n(mn, { tagline: e.tagline, lang: e.contentLang }),
855
880
  (a = e.location) != null && a.address ? /* @__PURE__ */ g(
856
881
  "span",
857
882
  {
858
883
  "data-component": "practice-result-address",
859
884
  className: "type-meta ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
860
885
  children: [
861
- /* @__PURE__ */ n(ce, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
886
+ /* @__PURE__ */ n(he, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
862
887
  /* @__PURE__ */ n(
863
888
  "span",
864
889
  {
@@ -873,7 +898,7 @@ function nt({
873
898
  ) : null
874
899
  ] }),
875
900
  /* @__PURE__ */ n(
876
- mn,
901
+ vn,
877
902
  {
878
903
  price: e.firstVisitPrice,
879
904
  cents: e.firstVisitPriceCents,
@@ -884,55 +909,48 @@ function nt({
884
909
  }
885
910
  );
886
911
  }
887
- function at(e) {
912
+ function mt(e) {
888
913
  const t = e.target.closest(
889
914
  'a, button, [role="button"], input, select, textarea, label'
890
915
  );
891
916
  return t !== null && t !== e.currentTarget && e.currentTarget.contains(t);
892
917
  }
893
- function Ie() {
918
+ function ve() {
894
919
  return !(typeof window.matchMedia == "function" && !window.matchMedia("(hover: hover)").matches);
895
920
  }
896
- function Pe(e) {
897
- try {
898
- return e.matches(":focus-visible");
899
- } catch {
900
- return !0;
901
- }
902
- }
903
- function it(e) {
921
+ function ft(e) {
904
922
  if (e)
905
923
  return (t) => {
906
924
  const i = document.activeElement;
907
- i && t.currentTarget.contains(i) && Pe(i) || e();
925
+ i && t.currentTarget.contains(i) && He(i) || e();
908
926
  };
909
927
  }
910
- function st(e) {
928
+ function pt(e) {
911
929
  if (e)
912
930
  return (t) => {
913
931
  t.currentTarget.contains(t.relatedTarget) || e();
914
932
  };
915
933
  }
916
- function hn({
934
+ function wn({
917
935
  result: e,
918
936
  headingLevel: t,
919
937
  highlighted: i,
920
938
  selected: s = !1,
921
939
  onSelect: r,
922
940
  onOpenClick: a,
923
- onHover: o,
924
- onLeave: u,
925
- density: l = "compact",
926
- openLabel: p,
927
- bookLabel: c,
928
- onBookClick: h,
929
- nextSlotText: m,
941
+ onHover: l,
942
+ onLeave: m,
943
+ density: c = "compact",
944
+ openLabel: o,
945
+ bookLabel: d,
946
+ onBookClick: p,
947
+ nextSlotText: f,
930
948
  maxInsuranceChips: x = 3,
931
949
  maxLanguageChips: b = 4,
932
- children: R
950
+ children: y
933
951
  }) {
934
- var X, G, Z, W;
935
- const { t: w, i18n: L } = N("ui"), I = e.rating, C = (((X = e.languages) == null ? void 0 : X.length) ?? 0) > 0, T = (((G = e.insurances) == null ? void 0 : G.length) ?? 0) > 0, f = e.specializedInFearPatients, S = C || T || f, v = (e.languages ?? []).slice(0, b), P = (((Z = e.languages) == null ? void 0 : Z.length) ?? 0) - v.length, V = (e.insurances ?? []).slice(0, x), O = (((W = e.insurances) == null ? void 0 : W.length) ?? 0) - V.length;
952
+ var D, W, ee, Q;
953
+ const { t: N, i18n: k } = P("ui"), I = e.rating, M = (((D = e.languages) == null ? void 0 : D.length) ?? 0) > 0, R = (((W = e.insurances) == null ? void 0 : W.length) ?? 0) > 0, h = e.specializedInFearPatients, L = M || R || h, T = (e.languages ?? []).slice(0, b), B = (((ee = e.languages) == null ? void 0 : ee.length) ?? 0) - T.length, z = (e.insurances ?? []).slice(0, x), v = (((Q = e.insurances) == null ? void 0 : Q.length) ?? 0) - z.length;
936
954
  return (
937
955
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events -- card is role="group" by design (axe nested-interactive); click handler is mouse-only sync.
938
956
  /* @__PURE__ */ g(
@@ -944,17 +962,17 @@ function hn({
944
962
  "data-selected": s ? "true" : "false",
945
963
  role: "group",
946
964
  "aria-labelledby": `practice-result-${e.id}-name`,
947
- onClick: (H) => {
948
- at(H) || r();
965
+ onClick: (O) => {
966
+ mt(O) || r();
949
967
  },
950
- onMouseEnter: () => o(Ie()),
951
- onFocus: (H) => o(Pe(H.target)),
952
- onMouseLeave: it(u),
953
- onBlur: st(u),
954
- className: tt({ density: l }),
968
+ onMouseEnter: () => l(ve()),
969
+ onFocus: (O) => l(He(O.target)),
970
+ onMouseLeave: ft(m),
971
+ onBlur: pt(m),
972
+ className: dt({ density: c }),
955
973
  children: [
956
974
  /* @__PURE__ */ n(
957
- Re,
975
+ Ae,
958
976
  {
959
977
  src: e.imageUrl,
960
978
  alt: e.imageAlt,
@@ -968,7 +986,7 @@ function hn({
968
986
  ),
969
987
  /* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
970
988
  /* @__PURE__ */ n(
971
- nt,
989
+ ut,
972
990
  {
973
991
  result: e,
974
992
  headingLevel: t,
@@ -976,56 +994,56 @@ function hn({
976
994
  }
977
995
  ),
978
996
  I && I.count > 0 ? /* @__PURE__ */ n(
979
- Se,
997
+ Fe,
980
998
  {
981
999
  value: I.value,
982
1000
  reviews: { count: I.count },
983
1001
  size: "sm"
984
1002
  }
985
1003
  ) : null,
986
- /* @__PURE__ */ n(Xe, { review: e.latestReview }),
987
- S ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
988
- v.map((H) => /* @__PURE__ */ n(
989
- D,
1004
+ /* @__PURE__ */ n(ot, { review: e.latestReview }),
1005
+ L ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1006
+ T.map((O) => /* @__PURE__ */ n(
1007
+ j,
990
1008
  {
991
1009
  variant: "neutral",
992
- leading: /* @__PURE__ */ n(Ue, { "aria-hidden": "true" }),
993
- children: We(H, w, L)
1010
+ leading: /* @__PURE__ */ n(tt, { "aria-hidden": "true" }),
1011
+ children: it(O, N, k)
994
1012
  },
995
- `lang-${H}`
1013
+ `lang-${O}`
996
1014
  )),
997
- P > 0 ? /* @__PURE__ */ n(D, { variant: "neutral", children: `+${P}` }) : null,
998
- V.map((H) => /* @__PURE__ */ n(
999
- D,
1015
+ B > 0 ? /* @__PURE__ */ n(j, { variant: "neutral", children: `+${B}` }) : null,
1016
+ z.map((O) => /* @__PURE__ */ n(
1017
+ j,
1000
1018
  {
1001
1019
  variant: "info",
1002
- leading: /* @__PURE__ */ n(Ge, { "aria-hidden": "true" }),
1003
- children: H
1020
+ leading: /* @__PURE__ */ n(nt, { "aria-hidden": "true" }),
1021
+ children: O
1004
1022
  },
1005
- `ins-${H}`
1023
+ `ins-${O}`
1006
1024
  )),
1007
- O > 0 ? /* @__PURE__ */ n(D, { variant: "neutral", children: `+${O}` }) : null,
1008
- f ? /* @__PURE__ */ n(D, { variant: "info", leading: /* @__PURE__ */ n(Ze, { "aria-hidden": "true" }), children: w("practiceResults.fearPatient.label") }) : null
1025
+ v > 0 ? /* @__PURE__ */ n(j, { variant: "neutral", children: `+${v}` }) : null,
1026
+ h ? /* @__PURE__ */ n(j, { variant: "info", leading: /* @__PURE__ */ n(at, { "aria-hidden": "true" }), children: N("practiceResults.fearPatient.label") }) : null
1009
1027
  ] }) : null,
1010
1028
  /* @__PURE__ */ n(
1011
- Ye,
1029
+ lt,
1012
1030
  {
1013
1031
  description: e.description,
1014
1032
  density: "compact",
1015
1033
  lang: e.contentLang
1016
1034
  }
1017
1035
  ),
1018
- e.nextAvailableSlot && m ? /* @__PURE__ */ n(Le, { time: m }) : null,
1019
- R,
1036
+ e.nextAvailableSlot && f ? /* @__PURE__ */ n(Oe, { time: f }) : null,
1037
+ y,
1020
1038
  /* @__PURE__ */ n(
1021
- et,
1039
+ ct,
1022
1040
  {
1023
1041
  result: e,
1024
- openLabel: p,
1025
- bookLabel: c,
1026
- nextSlotText: m,
1042
+ openLabel: o,
1043
+ bookLabel: d,
1044
+ nextSlotText: f,
1027
1045
  onOpenClick: a,
1028
- onBookClick: h
1046
+ onBookClick: p
1029
1047
  }
1030
1048
  )
1031
1049
  ] })
@@ -1034,22 +1052,22 @@ function hn({
1034
1052
  )
1035
1053
  );
1036
1054
  }
1037
- function gn({
1055
+ function yn({
1038
1056
  result: e,
1039
1057
  headingLevel: t,
1040
1058
  apiKey: i,
1041
1059
  highlighted: s,
1042
1060
  selected: r = !1,
1043
1061
  onSelect: a,
1044
- onOpenClick: o,
1045
- onBookClick: u,
1046
- onHover: l,
1047
- onLeave: p,
1048
- openLabel: c,
1049
- bookLabel: h
1062
+ onOpenClick: l,
1063
+ onBookClick: m,
1064
+ onHover: c,
1065
+ onLeave: o,
1066
+ openLabel: d,
1067
+ bookLabel: p
1050
1068
  }) {
1051
- var C, T;
1052
- const { t: m, i18n: x } = N("ui"), b = F(() => {
1069
+ var M, R;
1070
+ const { t: f, i18n: x } = P("ui"), b = _(() => {
1053
1071
  if (e.nextAvailableSlot)
1054
1072
  try {
1055
1073
  return new Intl.DateTimeFormat(x.language, {
@@ -1060,7 +1078,7 @@ function gn({
1060
1078
  } catch {
1061
1079
  return e.nextAvailableSlot.dateTime;
1062
1080
  }
1063
- }, [e.nextAvailableSlot, x.language]), R = (((C = e.languages) == null ? void 0 : C.length) ?? 0) > 0, w = (((T = e.insurances) == null ? void 0 : T.length) ?? 0) > 0, L = e.specializedInFearPatients, I = R || w || L;
1081
+ }, [e.nextAvailableSlot, x.language]), y = (((M = e.languages) == null ? void 0 : M.length) ?? 0) > 0, N = (((R = e.insurances) == null ? void 0 : R.length) ?? 0) > 0, k = e.specializedInFearPatients, I = y || N || k;
1064
1082
  return (
1065
1083
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events -- card is role="group" by design (axe nested-interactive); click handler is mouse-only sync.
1066
1084
  /* @__PURE__ */ g(
@@ -1073,18 +1091,19 @@ function gn({
1073
1091
  "data-selected": r ? "true" : "false",
1074
1092
  role: "group",
1075
1093
  "aria-labelledby": `practice-result-${e.id}-name`,
1076
- onClick: (f) => {
1077
- at(f) || a();
1094
+ onClick: (h) => {
1095
+ mt(h) || a();
1078
1096
  },
1079
- onMouseEnter: () => l(Ie()),
1080
- onFocus: (f) => l(Pe(f.target)),
1081
- onMouseLeave: it(p),
1082
- onBlur: st(p),
1083
- className: tt({ density: "rich" }),
1097
+ onMouseEnter: () => c(ve()),
1098
+ onFocus: (h) => c(He(h.target)),
1099
+ onMouseLeave: ft(o),
1100
+ onBlur: pt(o),
1101
+ className: dt({ density: "rich" }),
1084
1102
  children: [
1085
1103
  e.location ? /* @__PURE__ */ n("div", { className: "ds:hidden ds:@min-[640px]/result-card:block", children: /* @__PURE__ */ n(
1086
- rn,
1104
+ un,
1087
1105
  {
1106
+ image: e.mapImage,
1088
1107
  apiKey: i,
1089
1108
  center: {
1090
1109
  lat: e.location.lat,
@@ -1097,7 +1116,7 @@ function gn({
1097
1116
  /* @__PURE__ */ g("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1098
1117
  /* @__PURE__ */ g("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
1099
1118
  /* @__PURE__ */ n(
1100
- Re,
1119
+ Ae,
1101
1120
  {
1102
1121
  src: e.imageUrl,
1103
1122
  alt: e.imageAlt,
@@ -1110,7 +1129,7 @@ function gn({
1110
1129
  }
1111
1130
  ),
1112
1131
  /* @__PURE__ */ n(
1113
- nt,
1132
+ ut,
1114
1133
  {
1115
1134
  result: e,
1116
1135
  headingLevel: t,
@@ -1119,53 +1138,53 @@ function gn({
1119
1138
  )
1120
1139
  ] }),
1121
1140
  e.rating && e.rating.count > 0 ? /* @__PURE__ */ n(
1122
- Se,
1141
+ Fe,
1123
1142
  {
1124
1143
  value: e.rating.value,
1125
1144
  reviews: { count: e.rating.count },
1126
1145
  size: "md"
1127
1146
  }
1128
1147
  ) : null,
1129
- /* @__PURE__ */ n(Xe, { review: e.latestReview }),
1148
+ /* @__PURE__ */ n(ot, { review: e.latestReview }),
1130
1149
  I ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
1131
- R ? (e.languages ?? []).map((f) => /* @__PURE__ */ n(
1132
- D,
1150
+ y ? (e.languages ?? []).map((h) => /* @__PURE__ */ n(
1151
+ j,
1133
1152
  {
1134
1153
  variant: "neutral",
1135
- leading: /* @__PURE__ */ n(Ue, { "aria-hidden": "true" }),
1136
- children: We(f, m, x)
1154
+ leading: /* @__PURE__ */ n(tt, { "aria-hidden": "true" }),
1155
+ children: it(h, f, x)
1137
1156
  },
1138
- `lang-${f}`
1157
+ `lang-${h}`
1139
1158
  )) : null,
1140
- w ? (e.insurances ?? []).map((f) => /* @__PURE__ */ n(
1141
- D,
1159
+ N ? (e.insurances ?? []).map((h) => /* @__PURE__ */ n(
1160
+ j,
1142
1161
  {
1143
1162
  variant: "info",
1144
- leading: /* @__PURE__ */ n(Ge, { "aria-hidden": "true" }),
1145
- children: f
1163
+ leading: /* @__PURE__ */ n(nt, { "aria-hidden": "true" }),
1164
+ children: h
1146
1165
  },
1147
- `ins-${f}`
1166
+ `ins-${h}`
1148
1167
  )) : null,
1149
- L ? /* @__PURE__ */ n(D, { variant: "info", leading: /* @__PURE__ */ n(Ze, { "aria-hidden": "true" }), children: m("practiceResults.fearPatient.label") }) : null
1168
+ k ? /* @__PURE__ */ n(j, { variant: "info", leading: /* @__PURE__ */ n(at, { "aria-hidden": "true" }), children: f("practiceResults.fearPatient.label") }) : null
1150
1169
  ] }) : null,
1151
1170
  /* @__PURE__ */ n(
1152
- Ye,
1171
+ lt,
1153
1172
  {
1154
1173
  description: e.description,
1155
1174
  density: "rich",
1156
1175
  lang: e.contentLang
1157
1176
  }
1158
1177
  ),
1159
- e.nextAvailableSlot && b ? /* @__PURE__ */ n(Le, { time: b }) : null,
1178
+ e.nextAvailableSlot && b ? /* @__PURE__ */ n(Oe, { time: b }) : null,
1160
1179
  /* @__PURE__ */ n(
1161
- et,
1180
+ ct,
1162
1181
  {
1163
1182
  result: e,
1164
- openLabel: c,
1165
- bookLabel: h,
1183
+ openLabel: d,
1184
+ bookLabel: p,
1166
1185
  nextSlotText: b,
1167
- onOpenClick: o,
1168
- onBookClick: u
1186
+ onOpenClick: l,
1187
+ onBookClick: m
1169
1188
  }
1170
1189
  )
1171
1190
  ] })
@@ -1174,56 +1193,56 @@ function gn({
1174
1193
  )
1175
1194
  );
1176
1195
  }
1177
- function Me({
1196
+ function Ve({
1178
1197
  results: e,
1179
1198
  headingLevel: t,
1180
1199
  hoveredId: i,
1181
1200
  selectedId: s,
1182
1201
  softId: r,
1183
1202
  onCardHover: a,
1184
- onCardLeave: o,
1185
- onCardSelect: u,
1186
- onCardOpenClick: l,
1187
- onCardBookClick: p,
1188
- openLabel: c,
1189
- bookLabel: h,
1190
- formatNextSlot: m,
1203
+ onCardLeave: l,
1204
+ onCardSelect: m,
1205
+ onCardOpenClick: c,
1206
+ onCardBookClick: o,
1207
+ openLabel: d,
1208
+ bookLabel: p,
1209
+ formatNextSlot: f,
1191
1210
  onLoadMore: x,
1192
1211
  loadingMore: b,
1193
- loadingSkeletons: R,
1194
- density: w = "compact",
1195
- apiKey: L,
1212
+ loadingSkeletons: y,
1213
+ density: N = "compact",
1214
+ apiKey: k,
1196
1215
  containerRef: I
1197
1216
  }) {
1198
- const { t: C } = N("ui"), T = B(null);
1199
- return ee(() => {
1217
+ const { t: M } = P("ui"), R = F(null);
1218
+ return J(() => {
1200
1219
  if (!x) return;
1201
- const f = T.current;
1202
- if (!f || typeof IntersectionObserver > "u") return;
1203
- const S = new IntersectionObserver(
1204
- (v) => {
1205
- for (const P of v)
1206
- P.isIntersecting && (E("serp_load_more", {
1220
+ const h = R.current;
1221
+ if (!h || typeof IntersectionObserver > "u") return;
1222
+ const L = new IntersectionObserver(
1223
+ (T) => {
1224
+ for (const B of T)
1225
+ B.isIntersecting && (q("serp_load_more", {
1207
1226
  currentCount: e.length
1208
1227
  }), x());
1209
1228
  },
1210
1229
  { root: null, rootMargin: "200px" }
1211
1230
  );
1212
- return S.observe(f), () => S.disconnect();
1213
- }, [x, e.length]), R ? /* @__PURE__ */ n(
1231
+ return L.observe(h), () => L.disconnect();
1232
+ }, [x, e.length]), y ? /* @__PURE__ */ n(
1214
1233
  "div",
1215
1234
  {
1216
1235
  role: "status",
1217
1236
  "aria-live": "polite",
1218
- "aria-label": C("practiceResults.loading"),
1237
+ "aria-label": M("practiceResults.loading"),
1219
1238
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
1220
- children: Array.from({ length: 4 }).map((f, S) => /* @__PURE__ */ n(
1221
- Ft,
1239
+ children: Array.from({ length: 4 }).map((h, L) => /* @__PURE__ */ n(
1240
+ Dt,
1222
1241
  {
1223
1242
  variant: "rounded",
1224
- height: w === "rich" ? "11rem" : "7rem"
1243
+ height: N === "rich" ? "11rem" : "7rem"
1225
1244
  },
1226
- `pr-skel-${S}`
1245
+ `pr-skel-${L}`
1227
1246
  ))
1228
1247
  }
1229
1248
  ) : /* @__PURE__ */ g(
@@ -1232,56 +1251,56 @@ function Me({
1232
1251
  ref: I,
1233
1252
  "data-component": "practice-results-list",
1234
1253
  role: "list",
1235
- "aria-label": C("practiceResults.list.label"),
1254
+ "aria-label": M("practiceResults.list.label"),
1236
1255
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:overflow-y-auto",
1237
1256
  children: [
1238
- e.map((f) => /* @__PURE__ */ n("div", { role: "listitem", children: w === "rich" ? /* @__PURE__ */ n(
1239
- gn,
1257
+ e.map((h) => /* @__PURE__ */ n("div", { role: "listitem", children: N === "rich" ? /* @__PURE__ */ n(
1258
+ yn,
1240
1259
  {
1241
- result: f,
1260
+ result: h,
1242
1261
  headingLevel: t,
1243
- apiKey: L,
1244
- highlighted: i === f.id || s === f.id || r === f.id,
1245
- selected: s === f.id,
1246
- onSelect: () => u(f.id),
1247
- onOpenClick: () => l(f.id),
1248
- onBookClick: () => p(f.id),
1249
- onHover: (S) => a(f.id, S),
1250
- onLeave: o,
1251
- openLabel: c,
1252
- bookLabel: h
1262
+ apiKey: k,
1263
+ highlighted: i === h.id || s === h.id || r === h.id,
1264
+ selected: s === h.id,
1265
+ onSelect: () => m(h.id),
1266
+ onOpenClick: () => c(h.id),
1267
+ onBookClick: () => o(h.id),
1268
+ onHover: (L) => a(h.id, L),
1269
+ onLeave: l,
1270
+ openLabel: d,
1271
+ bookLabel: p
1253
1272
  }
1254
1273
  ) : /* @__PURE__ */ n(
1255
- hn,
1274
+ wn,
1256
1275
  {
1257
- result: f,
1276
+ result: h,
1258
1277
  headingLevel: t,
1259
- highlighted: i === f.id || s === f.id || r === f.id,
1260
- selected: s === f.id,
1261
- onSelect: () => u(f.id),
1262
- onOpenClick: () => l(f.id),
1263
- onBookClick: () => p(f.id),
1264
- onHover: (S) => a(f.id, S),
1265
- onLeave: o,
1266
- openLabel: c,
1267
- bookLabel: h,
1268
- nextSlotText: m(f)
1278
+ highlighted: i === h.id || s === h.id || r === h.id,
1279
+ selected: s === h.id,
1280
+ onSelect: () => m(h.id),
1281
+ onOpenClick: () => c(h.id),
1282
+ onBookClick: () => o(h.id),
1283
+ onHover: (L) => a(h.id, L),
1284
+ onLeave: l,
1285
+ openLabel: d,
1286
+ bookLabel: p,
1287
+ nextSlotText: f(h)
1269
1288
  }
1270
- ) }, f.id)),
1289
+ ) }, h.id)),
1271
1290
  x ? /* @__PURE__ */ n(
1272
1291
  "div",
1273
1292
  {
1274
- ref: T,
1293
+ ref: R,
1275
1294
  "aria-hidden": "true",
1276
1295
  className: "ds:flex ds:items-center ds:justify-center ds:py-[var(--spacing-md)]",
1277
- children: b ? /* @__PURE__ */ n(_t, { size: "md", variant: "pulse" }) : /* @__PURE__ */ n("span", { className: "ds:size-1" })
1296
+ children: b ? /* @__PURE__ */ n($t, { size: "md", variant: "pulse" }) : /* @__PURE__ */ n("span", { className: "ds:size-1" })
1278
1297
  }
1279
1298
  ) : null
1280
1299
  ]
1281
1300
  }
1282
1301
  );
1283
1302
  }
1284
- function vn({
1303
+ function kn({
1285
1304
  result: e,
1286
1305
  nextSlotText: t
1287
1306
  }) {
@@ -1293,7 +1312,7 @@ function vn({
1293
1312
  className: "ds:flex ds:[inline-size:16rem] ds:max-w-full ds:items-center ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-lg)] ds:border ds:border-[color:var(--card-border)] ds:bg-[var(--card)] ds:p-[var(--spacing-sm)] ds:text-[var(--card-foreground)] ds:shadow-[var(--shadow-lg)]",
1294
1313
  children: [
1295
1314
  /* @__PURE__ */ n(
1296
- Re,
1315
+ Ae,
1297
1316
  {
1298
1317
  src: e.imageUrl,
1299
1318
  name: e.name,
@@ -1314,38 +1333,41 @@ function vn({
1314
1333
  }
1315
1334
  ),
1316
1335
  i && i.count > 0 ? /* @__PURE__ */ n(
1317
- Se,
1336
+ Fe,
1318
1337
  {
1319
1338
  value: i.value,
1320
1339
  reviews: { count: i.count },
1321
1340
  size: "sm"
1322
1341
  }
1323
1342
  ) : null,
1324
- e.nextAvailableSlot && t ? /* @__PURE__ */ n(Le, { time: t }) : null
1343
+ e.nextAvailableSlot && t ? /* @__PURE__ */ n(Oe, { time: t }) : null
1325
1344
  ] })
1326
1345
  ]
1327
1346
  }
1328
1347
  );
1329
1348
  }
1330
- function ke({
1349
+ function Ie({
1331
1350
  results: e,
1332
1351
  searchCentre: t,
1333
1352
  zoom: i,
1334
1353
  apiKey: s,
1335
1354
  mapId: r,
1336
1355
  hoveredId: a,
1337
- selectedId: o,
1338
- onMapClick: u,
1339
- formatNextSlot: l,
1356
+ selectedId: l,
1357
+ onMapClick: m,
1358
+ showMarkerCard: c = !1,
1359
+ formatNextSlot: o,
1360
+ onPinHoverChange: d,
1340
1361
  onPinClick: p,
1341
- onPinHover: c,
1342
- onPinFirstInteract: h,
1343
- onBoundsChange: m,
1344
- consentGranted: x,
1345
- onConsentRequest: b,
1346
- mapHandleRef: R
1362
+ onPinHover: f,
1363
+ onPinFirstInteract: x,
1364
+ onBoundsChange: b,
1365
+ consentGranted: y,
1366
+ onConsentRequest: N,
1367
+ staticPreview: k,
1368
+ mapHandleRef: I
1347
1369
  }) {
1348
- const { t: w } = N("ui"), L = F(
1370
+ const { t: M } = P("ui"), R = _(
1349
1371
  () => e.filter(
1350
1372
  (v) => !!v.location
1351
1373
  ).map((v) => ({
@@ -1357,36 +1379,36 @@ function ke({
1357
1379
  label: v.name
1358
1380
  })),
1359
1381
  [e]
1360
- ), I = F(
1361
- () => L.map((v) => ({ ...v.position, id: v.id })),
1362
- [L]
1363
- ), C = F(
1364
- () => L.map((v) => v.id).sort().join("|"),
1365
- [L]
1366
- ), T = F(() => {
1382
+ ), h = _(
1383
+ () => R.map((v) => ({ ...v.position, id: v.id })),
1384
+ [R]
1385
+ ), L = _(
1386
+ () => R.map((v) => v.id).sort().join("|"),
1387
+ [R]
1388
+ ), T = _(() => {
1367
1389
  if (t) return t;
1368
- const v = Yt(e);
1390
+ const v = sn(e);
1369
1391
  return v ? {
1370
1392
  lat: (v.north + v.south) / 2,
1371
1393
  lng: (v.east + v.west) / 2
1372
1394
  } : { lat: 45.4642, lng: 9.19 };
1373
- }, [e, t]), f = F(
1374
- () => l ? (v) => {
1375
- const P = e.find((V) => V.id === v);
1376
- return P ? /* @__PURE__ */ n(
1377
- vn,
1395
+ }, [e, t]), B = _(
1396
+ () => c ? (v) => {
1397
+ const D = e.find((W) => W.id === v);
1398
+ return D ? /* @__PURE__ */ n(
1399
+ kn,
1378
1400
  {
1379
- result: P,
1380
- nextSlotText: l(P)
1401
+ result: D,
1402
+ nextSlotText: o == null ? void 0 : o(D)
1381
1403
  }
1382
1404
  ) : null;
1383
1405
  } : void 0,
1384
- [l, e]
1385
- ), S = _(
1386
- (v, { userInteraction: P }) => {
1387
- m == null || m(v), P && E("serp_map_panned", { bounds: v });
1406
+ [c, o, e]
1407
+ ), z = H(
1408
+ (v, { userInteraction: D }) => {
1409
+ b == null || b(v), D && q("serp_map_panned", { bounds: v });
1388
1410
  },
1389
- [m]
1411
+ [b]
1390
1412
  );
1391
1413
  return /* @__PURE__ */ n(
1392
1414
  "div",
@@ -1394,30 +1416,33 @@ function ke({
1394
1416
  "data-component": "practice-results-map-panel",
1395
1417
  className: "ds:relative ds:flex ds:size-full ds:min-h-[24rem] ds:flex-col",
1396
1418
  children: /* @__PURE__ */ n(
1397
- Tt,
1419
+ Bt,
1398
1420
  {
1399
- ref: R,
1421
+ ref: I,
1400
1422
  apiKey: s ?? "",
1401
1423
  mapId: r,
1402
1424
  center: T,
1403
1425
  zoom: i,
1404
- markers: L,
1405
- fitToPoints: I,
1406
- fitKey: C,
1407
- selectedMarkerId: o,
1426
+ markers: R,
1427
+ fitToPoints: h,
1428
+ fitKey: L,
1429
+ selectedMarkerId: l,
1408
1430
  hoveredMarkerId: a,
1409
- renderMarkerCard: f,
1410
- consentGranted: !!x,
1411
- onConsentRequest: b,
1412
- onBoundsChange: S,
1431
+ renderMarkerCard: B,
1432
+ onMarkerHover: c ? d : void 0,
1433
+ consentGranted: !!y,
1434
+ staticPreview: k,
1435
+ onConsentRequest: N,
1436
+ onBoundsChange: z,
1437
+ onClusterClick: ({ count: v }) => q("serp_map_cluster_clicked", { count: v }),
1413
1438
  onMarkerClick: (v) => {
1414
1439
  if (v == null) {
1415
- u();
1440
+ m();
1416
1441
  return;
1417
1442
  }
1418
- c(v), h(v), p(v);
1443
+ f(v), x(v), p(v);
1419
1444
  },
1420
- ariaLabel: w("practiceResults.map.label"),
1445
+ ariaLabel: M("practiceResults.map.label"),
1421
1446
  size: "fill",
1422
1447
  surface: "bordered",
1423
1448
  className: "ds:size-full"
@@ -1426,7 +1451,7 @@ function ke({
1426
1451
  }
1427
1452
  );
1428
1453
  }
1429
- function Ae({
1454
+ function Be({
1430
1455
  variantBodyProps: e
1431
1456
  }) {
1432
1457
  const {
@@ -1435,116 +1460,116 @@ function Ae({
1435
1460
  sortOptions: s,
1436
1461
  onChange: r,
1437
1462
  heading: a,
1438
- intro: o,
1439
- totalCount: u,
1440
- searchCentre: l
1463
+ intro: l,
1464
+ totalCount: m,
1465
+ searchCentre: c
1441
1466
  } = e;
1442
- return !a && !o && u == null && t.length === 0 && s.length === 0 ? null : /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1467
+ return !a && !l && m == null && t.length === 0 && s.length === 0 ? null : /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1443
1468
  /* @__PURE__ */ n(
1444
- Qe,
1469
+ st,
1445
1470
  {
1446
1471
  heading: a,
1447
1472
  headingLevel: e.headingLevel,
1448
- intro: o,
1449
- totalCount: u,
1450
- searchCentreLabel: l == null ? void 0 : l.label
1473
+ intro: l,
1474
+ totalCount: m,
1475
+ searchCentreLabel: c == null ? void 0 : c.label
1451
1476
  }
1452
1477
  ),
1453
1478
  t.length > 0 ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
1454
1479
  /* @__PURE__ */ n(
1455
- Je,
1480
+ rt,
1456
1481
  {
1457
1482
  facets: t,
1458
1483
  value: i.facets,
1459
- onChange: (p) => r({ ...i, facets: p })
1484
+ onChange: (o) => r({ ...i, facets: o })
1460
1485
  }
1461
1486
  ),
1462
1487
  s.length > 0 ? /* @__PURE__ */ n(
1463
- Ce,
1488
+ Pe,
1464
1489
  {
1465
1490
  options: s,
1466
1491
  value: i.sort ?? "relevance",
1467
- onChange: (p) => r({ ...i, sort: p })
1492
+ onChange: (o) => r({ ...i, sort: o })
1468
1493
  }
1469
1494
  ) : null
1470
1495
  ] }) : s.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:justify-end", children: /* @__PURE__ */ n(
1471
- Ce,
1496
+ Pe,
1472
1497
  {
1473
1498
  options: s,
1474
1499
  value: i.sort ?? "relevance",
1475
- onChange: (p) => r({ ...i, sort: p })
1500
+ onChange: (o) => r({ ...i, sort: o })
1476
1501
  }
1477
1502
  ) }) : null
1478
1503
  ] });
1479
1504
  }
1480
- function Te(e) {
1505
+ function De(e) {
1481
1506
  return Math.min(e + 1, 6);
1482
1507
  }
1483
- function Fe({
1508
+ function $e({
1484
1509
  headingLevel: e
1485
1510
  }) {
1486
- const { t } = N("ui");
1511
+ const { t } = P("ui");
1487
1512
  return /* @__PURE__ */ n(
1488
- At,
1513
+ Vt,
1489
1514
  {
1490
1515
  variant: "no-results",
1491
- headingLevel: Te(e),
1516
+ headingLevel: De(e),
1492
1517
  title: t("practiceResults.empty.title"),
1493
1518
  description: t("practiceResults.empty.description")
1494
1519
  }
1495
1520
  );
1496
1521
  }
1497
- function _e({
1522
+ function ze({
1498
1523
  onRetry: e,
1499
1524
  headingLevel: t
1500
1525
  }) {
1501
- const { t: i } = N("ui"), s = Te(t);
1502
- return /* @__PURE__ */ g(oe, { variant: "error", children: [
1503
- /* @__PURE__ */ n(oe.Title, { as: `h${s}`, children: i("practiceResults.error.title") }),
1504
- /* @__PURE__ */ n(oe.Description, { children: i("practiceResults.error.description") }),
1505
- e ? /* @__PURE__ */ n(oe.Action, { children: /* @__PURE__ */ n(
1506
- le,
1526
+ const { t: i } = P("ui"), s = De(t);
1527
+ return /* @__PURE__ */ g(fe, { variant: "error", children: [
1528
+ /* @__PURE__ */ n(fe.Title, { as: `h${s}`, children: i("practiceResults.error.title") }),
1529
+ /* @__PURE__ */ n(fe.Description, { children: i("practiceResults.error.description") }),
1530
+ e ? /* @__PURE__ */ n(fe.Action, { children: /* @__PURE__ */ n(
1531
+ pe,
1507
1532
  {
1508
1533
  intent: "secondary",
1509
1534
  size: "sm",
1510
- startIcon: /* @__PURE__ */ n($t, { "aria-hidden": "true" }),
1535
+ startIcon: /* @__PURE__ */ n(qt, { "aria-hidden": "true" }),
1511
1536
  onClick: e,
1512
1537
  children: i("practiceResults.error.retry")
1513
1538
  }
1514
1539
  ) }) : null
1515
1540
  ] });
1516
1541
  }
1517
- function bn(e) {
1542
+ function Cn(e) {
1518
1543
  const {
1519
1544
  results: t,
1520
1545
  apiKey: i,
1521
1546
  mapId: s,
1522
1547
  zoom: r,
1523
1548
  searchCentre: a,
1524
- onLoadMore: o,
1525
- loadingMore: u,
1526
- loadingSkeletons: l,
1527
- emptyResultsSlot: p,
1528
- errorSlot: c,
1529
- error: h,
1530
- onRetry: m,
1549
+ onLoadMore: l,
1550
+ loadingMore: m,
1551
+ loadingSkeletons: c,
1552
+ emptyResultsSlot: o,
1553
+ errorSlot: d,
1554
+ error: p,
1555
+ onRetry: f,
1531
1556
  hoveredId: x,
1532
1557
  selectedId: b,
1533
- onCardHover: R,
1534
- onPinClick: w,
1535
- consentGranted: L,
1558
+ onCardHover: y,
1559
+ onPinClick: N,
1560
+ consentGranted: k,
1536
1561
  onConsentRequest: I,
1537
- onBoundsChange: C,
1538
- listContainerRef: T
1539
- } = e, { t: f } = N("ui"), [S, v] = te(!1), P = Ne("(min-width: 1024px)"), V = h ? c ?? /* @__PURE__ */ n(_e, { onRetry: m, headingLevel: e.headingLevel }) : t.length === 0 && !l ? p ?? /* @__PURE__ */ n(Fe, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
1540
- Me,
1562
+ onBoundsChange: M,
1563
+ listContainerRef: R
1564
+ } = e, { t: h } = P("ui"), [L, T] = G(!1), B = Te("(min-width: 1024px)"), z = p ? d ?? /* @__PURE__ */ n(ze, { onRetry: f, headingLevel: e.headingLevel }) : t.length === 0 && !c ? o ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
1565
+ Ve,
1541
1566
  {
1542
1567
  results: t,
1543
1568
  headingLevel: e.headingLevel,
1544
1569
  hoveredId: x,
1545
1570
  selectedId: b,
1546
1571
  softId: e.softId,
1547
- onCardHover: R,
1572
+ onCardHover: y,
1548
1573
  onCardLeave: e.onCardLeave,
1549
1574
  onCardSelect: e.onCardSelect,
1550
1575
  onCardOpenClick: e.onCardOpenClick,
@@ -1552,19 +1577,19 @@ function bn(e) {
1552
1577
  openLabel: e.openLabel,
1553
1578
  bookLabel: e.bookLabel,
1554
1579
  formatNextSlot: e.formatNextSlot,
1555
- onLoadMore: o,
1556
- loadingMore: u,
1557
- loadingSkeletons: l,
1580
+ onLoadMore: l,
1581
+ loadingMore: m,
1582
+ loadingSkeletons: c,
1558
1583
  density: "compact",
1559
- containerRef: T
1584
+ containerRef: R
1560
1585
  }
1561
1586
  );
1562
1587
  return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1563
- /* @__PURE__ */ n(Ae, { variantBodyProps: e }),
1588
+ /* @__PURE__ */ n(Be, { variantBodyProps: e }),
1564
1589
  /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:lg:grid ds:lg:grid-cols-[55fr_45fr] ds:lg:gap-[var(--spacing-lg)] ds:lg:items-start", children: [
1565
- /* @__PURE__ */ n("div", { className: "ds:min-w-0", children: V }),
1590
+ /* @__PURE__ */ n("div", { className: "ds:min-w-0", children: z }),
1566
1591
  /* @__PURE__ */ n("div", { className: "ds:hidden ds:lg:block ds:sticky ds:top-[var(--spacing-md)] ds:h-[40rem]", children: /* @__PURE__ */ n(
1567
- ke,
1592
+ Ie,
1568
1593
  {
1569
1594
  results: t,
1570
1595
  searchCentre: a,
@@ -1574,36 +1599,39 @@ function bn(e) {
1574
1599
  hoveredId: e.mapHoveredId,
1575
1600
  selectedId: e.mapSelectedId,
1576
1601
  onMapClick: e.onMapClick,
1577
- formatNextSlot: P ? e.formatNextSlot : void 0,
1578
- onPinClick: (O) => {
1579
- ne(t, O, "pin", e.onResultSelect), w(O);
1602
+ showMarkerCard: B,
1603
+ formatNextSlot: e.formatNextSlot,
1604
+ onPinHoverChange: e.onPinHoverChange,
1605
+ onPinClick: (v) => {
1606
+ ae(t, v, "pin", e.onResultSelect), N(v);
1580
1607
  },
1581
1608
  onPinHover: e.onPinHover,
1582
1609
  onPinFirstInteract: e.onPinFirstInteract,
1583
- onBoundsChange: C,
1584
- consentGranted: L,
1610
+ onBoundsChange: M,
1611
+ consentGranted: k,
1612
+ staticPreview: e.mapPreview,
1585
1613
  onConsentRequest: I,
1586
1614
  mapHandleRef: e.mapHandleRef
1587
1615
  }
1588
1616
  ) })
1589
1617
  ] }),
1590
1618
  /* @__PURE__ */ n("div", { className: "ds:flex ds:lg:hidden ds:sticky ds:bottom-[var(--spacing-md)] ds:justify-center", children: /* @__PURE__ */ n(
1591
- le,
1619
+ pe,
1592
1620
  {
1593
1621
  intent: "primary",
1594
1622
  size: "md",
1595
- startIcon: /* @__PURE__ */ n(Kt, { "aria-hidden": "true" }),
1596
- onClick: () => v(!0),
1597
- children: f("practiceResults.viewMap")
1623
+ startIcon: /* @__PURE__ */ n(Wt, { "aria-hidden": "true" }),
1624
+ onClick: () => T(!0),
1625
+ children: h("practiceResults.viewMap")
1598
1626
  }
1599
1627
  ) }),
1600
- /* @__PURE__ */ n($.Root, { open: S, onOpenChange: v, children: /* @__PURE__ */ g($.Content, { side: "bottom", size: "lg", children: [
1601
- /* @__PURE__ */ n($.Header, { children: /* @__PURE__ */ n($.Title, { children: f("practiceResults.map.label") }) }),
1602
- /* @__PURE__ */ g($.Body, { children: [
1603
- /* @__PURE__ */ n($.Description, { className: "ds:sr-only", children: f("practiceResults.sheet.description") }),
1628
+ /* @__PURE__ */ n(K.Root, { open: L, onOpenChange: T, children: /* @__PURE__ */ g(K.Content, { side: "bottom", size: "lg", children: [
1629
+ /* @__PURE__ */ n(K.Header, { children: /* @__PURE__ */ n(K.Title, { children: h("practiceResults.map.label") }) }),
1630
+ /* @__PURE__ */ g(K.Body, { children: [
1631
+ /* @__PURE__ */ n(K.Description, { className: "ds:sr-only", children: h("practiceResults.sheet.description") }),
1604
1632
  /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1605
- /* @__PURE__ */ n("div", { className: "ds:h-[20rem]", children: /* @__PURE__ */ n(
1606
- ke,
1633
+ /* @__PURE__ */ n("div", { className: "ds:h-[24rem]", children: /* @__PURE__ */ n(
1634
+ Ie,
1607
1635
  {
1608
1636
  results: t,
1609
1637
  searchCentre: a,
@@ -1613,63 +1641,64 @@ function bn(e) {
1613
1641
  hoveredId: e.mapHoveredId,
1614
1642
  selectedId: e.mapSelectedId,
1615
1643
  onMapClick: e.onMapClick,
1616
- onPinClick: (O) => {
1617
- ne(t, O, "pin", e.onResultSelect), w(O);
1644
+ onPinClick: (v) => {
1645
+ ae(t, v, "pin", e.onResultSelect), N(v);
1618
1646
  },
1619
1647
  onPinHover: e.onPinHover,
1620
1648
  onPinFirstInteract: e.onPinFirstInteract,
1621
- onBoundsChange: C,
1622
- consentGranted: L,
1649
+ onBoundsChange: M,
1650
+ consentGranted: k,
1651
+ staticPreview: e.mapPreview,
1623
1652
  onConsentRequest: I,
1624
1653
  mapHandleRef: e.mapHandleRef
1625
1654
  }
1626
1655
  ) }),
1627
- V
1656
+ z
1628
1657
  ] })
1629
1658
  ] })
1630
1659
  ] }) })
1631
1660
  ] });
1632
1661
  }
1633
- const xn = {
1662
+ const Rn = {
1634
1663
  peek: "sm",
1635
1664
  half: "md",
1636
1665
  full: "lg"
1637
- }, J = [
1666
+ }, Y = [
1638
1667
  "peek",
1639
1668
  "half",
1640
1669
  "full"
1641
1670
  ];
1642
- function yn({ value: e, onChange: t }) {
1643
- const { t: i, i18n: s } = N("ui"), r = s.dir() === "rtl", a = B(
1671
+ function Sn({ value: e, onChange: t }) {
1672
+ const { t: i, i18n: s } = P("ui"), r = s.dir() === "rtl", a = F(
1644
1673
  /* @__PURE__ */ new Map()
1645
- ), o = _((l) => {
1646
- var p;
1647
- (p = a.current.get(l)) == null || p.focus();
1648
- }, []), u = _(
1649
- (l, p) => {
1650
- const c = J.indexOf(p), h = J.length, m = r ? "ArrowLeft" : "ArrowRight", x = r ? "ArrowRight" : "ArrowLeft";
1674
+ ), l = H((c) => {
1675
+ var o;
1676
+ (o = a.current.get(c)) == null || o.focus();
1677
+ }, []), m = H(
1678
+ (c, o) => {
1679
+ const d = Y.indexOf(o), p = Y.length, f = r ? "ArrowLeft" : "ArrowRight", x = r ? "ArrowRight" : "ArrowLeft";
1651
1680
  let b = null;
1652
- switch (l.key) {
1653
- case m:
1681
+ switch (c.key) {
1682
+ case f:
1654
1683
  case "ArrowDown":
1655
- b = J[(c + 1) % h];
1684
+ b = Y[(d + 1) % p];
1656
1685
  break;
1657
1686
  case x:
1658
1687
  case "ArrowUp":
1659
- b = J[(c - 1 + h) % h];
1688
+ b = Y[(d - 1 + p) % p];
1660
1689
  break;
1661
1690
  case "Home":
1662
- b = J[0];
1691
+ b = Y[0];
1663
1692
  break;
1664
1693
  case "End":
1665
- b = J[h - 1];
1694
+ b = Y[p - 1];
1666
1695
  break;
1667
1696
  default:
1668
1697
  return;
1669
1698
  }
1670
- l.preventDefault(), b && b !== p && t(b), b && o(b);
1699
+ c.preventDefault(), b && b !== o && t(b), b && l(b);
1671
1700
  },
1672
- [o, r, t]
1701
+ [l, r, t]
1673
1702
  );
1674
1703
  return /* @__PURE__ */ n(
1675
1704
  "div",
@@ -1677,66 +1706,128 @@ function yn({ value: e, onChange: t }) {
1677
1706
  role: "radiogroup",
1678
1707
  "aria-label": i("practiceResults.sheet.snap.label"),
1679
1708
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
1680
- children: J.map((l) => {
1681
- const p = e === l;
1709
+ children: Y.map((c) => {
1710
+ const o = e === c;
1682
1711
  return /* @__PURE__ */ n(
1683
1712
  "button",
1684
1713
  {
1685
- ref: (c) => {
1686
- c ? a.current.set(l, c) : a.current.delete(l);
1714
+ ref: (d) => {
1715
+ d ? a.current.set(c, d) : a.current.delete(c);
1687
1716
  },
1688
1717
  type: "button",
1689
1718
  role: "radio",
1690
- "aria-checked": p,
1691
- "aria-label": i(`practiceResults.sheet.snap.${l}`),
1692
- tabIndex: p ? 0 : -1,
1693
- onClick: () => t(l),
1694
- onKeyDown: (c) => u(c, l),
1695
- className: de({
1696
- state: p ? "active" : "idle"
1719
+ "aria-checked": o,
1720
+ "aria-label": i(`practiceResults.sheet.snap.${c}`),
1721
+ tabIndex: o ? 0 : -1,
1722
+ onClick: () => t(c),
1723
+ onKeyDown: (d) => m(d, c),
1724
+ className: ge({
1725
+ state: o ? "active" : "idle"
1697
1726
  }),
1698
- children: i(`practiceResults.sheet.snap.${l}`)
1727
+ children: i(`practiceResults.sheet.snap.${c}`)
1699
1728
  },
1700
- l
1729
+ c
1701
1730
  );
1702
1731
  })
1703
1732
  }
1704
1733
  );
1705
1734
  }
1706
- function wn(e) {
1735
+ function Nn(e, t, i) {
1736
+ const [s, r] = G(null), [a, l] = G(null);
1737
+ return _e(() => {
1738
+ const m = e.current;
1739
+ if (!i || !m || typeof window > "u") {
1740
+ r(null), l(null);
1741
+ return;
1742
+ }
1743
+ let c = 0, o = null, d = null;
1744
+ const p = () => {
1745
+ const b = t.current;
1746
+ r(b ? b.offsetHeight : null);
1747
+ const y = m.querySelector(
1748
+ '[data-testid="map-view-preview-plate"]'
1749
+ ) ?? m.querySelector(
1750
+ '[data-testid="map-view-consent-actions"]'
1751
+ );
1752
+ if (y !== d && (d && (o == null || o.unobserve(d)), y && (o == null || o.observe(y, { box: "border-box" })), d = y), !y) {
1753
+ l(null);
1754
+ return;
1755
+ }
1756
+ const N = y.getBoundingClientRect().bottom;
1757
+ if (N <= 0) {
1758
+ l(null);
1759
+ return;
1760
+ }
1761
+ const k = window.innerHeight - N - We("--spacing-sm", m, 8);
1762
+ l(
1763
+ Math.max(
1764
+ Math.round(k),
1765
+ We("--min-target-size", m, 44) * 2
1766
+ )
1767
+ );
1768
+ }, f = () => {
1769
+ cancelAnimationFrame(c), c = requestAnimationFrame(p);
1770
+ };
1771
+ o = typeof ResizeObserver > "u" ? null : new ResizeObserver(f), p(), o == null || o.observe(m), t.current && (o == null || o.observe(t.current)), o == null || o.observe(document.body);
1772
+ const x = new MutationObserver(f);
1773
+ return x.observe(m, { childList: !0, subtree: !0 }), window.addEventListener("resize", f), window.addEventListener("scroll", f, { passive: !0 }), () => {
1774
+ cancelAnimationFrame(c), o == null || o.disconnect(), x.disconnect(), window.removeEventListener("resize", f), window.removeEventListener("scroll", f);
1775
+ };
1776
+ }, [i, e, t]), i ? {
1777
+ mapStyle: s === null ? void 0 : {
1778
+ "--map-preview-inset-block-start": `calc(var(--spacing-md) + ${s}px + var(--spacing-xs))`
1779
+ },
1780
+ sheetStyle: a === null ? void 0 : {
1781
+ "--map-first-sheet-max-block-size": `${a}px`
1782
+ }
1783
+ } : {};
1784
+ }
1785
+ function Ln(e) {
1707
1786
  const {
1708
1787
  results: t,
1709
1788
  apiKey: i,
1710
1789
  mapId: s,
1711
1790
  zoom: r,
1712
1791
  searchCentre: a,
1713
- onLoadMore: o,
1714
- loadingMore: u,
1715
- loadingSkeletons: l,
1716
- emptyResultsSlot: p,
1717
- errorSlot: c,
1718
- error: h,
1719
- onRetry: m,
1792
+ onLoadMore: l,
1793
+ loadingMore: m,
1794
+ loadingSkeletons: c,
1795
+ emptyResultsSlot: o,
1796
+ errorSlot: d,
1797
+ error: p,
1798
+ onRetry: f,
1720
1799
  hoveredId: x,
1721
1800
  selectedId: b,
1722
- onCardHover: R,
1723
- onPinClick: w,
1724
- consentGranted: L,
1801
+ onCardHover: y,
1802
+ onPinClick: N,
1803
+ consentGranted: k,
1725
1804
  onConsentRequest: I,
1726
- onBoundsChange: C,
1727
- listContainerRef: T,
1728
- facets: f,
1729
- value: S,
1730
- onChange: v
1731
- } = e, { t: P } = N("ui"), [V, O] = te("half"), X = xn[V], G = Ne("(min-width: 1024px)"), Z = h ? c ?? /* @__PURE__ */ n(_e, { onRetry: m, headingLevel: e.headingLevel }) : t.length === 0 && !l ? p ?? /* @__PURE__ */ n(Fe, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
1732
- Me,
1805
+ onBoundsChange: M,
1806
+ listContainerRef: R,
1807
+ facets: h,
1808
+ value: L,
1809
+ onChange: T
1810
+ } = e, { t: B } = P("ui"), [z, v] = G(
1811
+ () => e.mapPreview && !k ? "peek" : "half"
1812
+ ), D = F(!1), W = H((S) => {
1813
+ D.current = !0, v(S);
1814
+ }, []);
1815
+ _e(() => {
1816
+ k && !D.current && v((S) => S === "peek" ? "half" : S);
1817
+ }, [k]);
1818
+ const ee = Rn[z], Q = Te("(min-width: 1024px)"), O = F(null), se = F(null), te = Nn(
1819
+ O,
1820
+ se,
1821
+ !Q && !!e.mapPreview
1822
+ ), re = p ? d ?? /* @__PURE__ */ n(ze, { onRetry: f, headingLevel: e.headingLevel }) : t.length === 0 && !c ? o ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
1823
+ Ve,
1733
1824
  {
1734
1825
  results: t,
1735
1826
  headingLevel: e.headingLevel,
1736
1827
  hoveredId: x,
1737
1828
  selectedId: b,
1738
1829
  softId: e.softId,
1739
- onCardHover: R,
1830
+ onCardHover: y,
1740
1831
  onCardLeave: e.onCardLeave,
1741
1832
  onCardSelect: e.onCardSelect,
1742
1833
  onCardOpenClick: e.onCardOpenClick,
@@ -1744,15 +1835,15 @@ function wn(e) {
1744
1835
  openLabel: e.openLabel,
1745
1836
  bookLabel: e.bookLabel,
1746
1837
  formatNextSlot: e.formatNextSlot,
1747
- onLoadMore: o,
1748
- loadingMore: u,
1749
- loadingSkeletons: l,
1838
+ onLoadMore: l,
1839
+ loadingMore: m,
1840
+ loadingSkeletons: c,
1750
1841
  density: "compact",
1751
1842
  apiKey: i,
1752
- containerRef: T
1843
+ containerRef: R
1753
1844
  }
1754
- ), W = /* @__PURE__ */ n(
1755
- ke,
1845
+ ), oe = /* @__PURE__ */ n(
1846
+ Ie,
1756
1847
  {
1757
1848
  results: t,
1758
1849
  searchCentre: a,
@@ -1762,27 +1853,37 @@ function wn(e) {
1762
1853
  hoveredId: e.mapHoveredId,
1763
1854
  selectedId: e.mapSelectedId,
1764
1855
  onMapClick: e.onMapClick,
1765
- formatNextSlot: G ? e.formatNextSlot : void 0,
1766
- onPinClick: (M) => {
1767
- ne(t, M, "pin", e.onResultSelect), w(M);
1856
+ showMarkerCard: Q,
1857
+ formatNextSlot: e.formatNextSlot,
1858
+ onPinHoverChange: e.onPinHoverChange,
1859
+ onPinClick: (S) => {
1860
+ ae(t, S, "pin", e.onResultSelect), N(S);
1768
1861
  },
1769
1862
  onPinHover: e.onPinHover,
1770
1863
  onPinFirstInteract: e.onPinFirstInteract,
1771
- onBoundsChange: C,
1772
- consentGranted: L,
1864
+ onBoundsChange: M,
1865
+ consentGranted: k,
1866
+ staticPreview: e.mapPreview,
1773
1867
  onConsentRequest: I,
1774
1868
  mapHandleRef: e.mapHandleRef
1775
1869
  }
1776
- ), H = f.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:absolute ds:start-[var(--spacing-md)] ds:top-[var(--spacing-md)] ds:max-w-[calc(100%-var(--spacing-lg))]", children: /* @__PURE__ */ n(
1777
- Je,
1870
+ ), be = h.length > 0 ? /* @__PURE__ */ n(
1871
+ "div",
1778
1872
  {
1779
- facets: f,
1780
- value: S.facets,
1781
- onChange: (M) => v({ ...S, facets: M }),
1782
- floating: !0
1873
+ ref: se,
1874
+ className: "ds:absolute ds:start-[var(--spacing-md)] ds:top-[var(--spacing-md)] ds:max-w-[calc(100%-var(--spacing-lg))]",
1875
+ children: /* @__PURE__ */ n(
1876
+ rt,
1877
+ {
1878
+ facets: h,
1879
+ value: L.facets,
1880
+ onChange: (S) => T({ ...L, facets: S }),
1881
+ floating: !0
1882
+ }
1883
+ )
1783
1884
  }
1784
- ) }) : null;
1785
- return /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: G ? (
1885
+ ) : null;
1886
+ return /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: Q ? (
1786
1887
  // Desktop: 65/35 map left + cards rail right. NO Sheet (the
1787
1888
  // Sheet would portal to body and occlude the desktop layout
1788
1889
  // regardless of the parent's `lg:hidden` class).
@@ -1800,11 +1901,11 @@ function wn(e) {
1800
1901
  // the map column is `lg:sticky lg:h-[44rem]` (stays visible
1801
1902
  // as the patient scrolls cards) and the rail renders at
1802
1903
  // natural height. Single page scroll.
1803
- /* @__PURE__ */ g(It, { children: [
1804
- /* @__PURE__ */ n(Ae, { variantBodyProps: e }),
1904
+ /* @__PURE__ */ g(_t, { children: [
1905
+ /* @__PURE__ */ n(Be, { variantBodyProps: e }),
1805
1906
  /* @__PURE__ */ g("div", { className: "ds:grid ds:grid-cols-[65fr_35fr] ds:gap-[var(--spacing-lg)] ds:items-start", children: [
1806
- /* @__PURE__ */ n("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children: W }),
1807
- /* @__PURE__ */ n("div", { className: "ds:min-w-0", children: Z })
1907
+ /* @__PURE__ */ n("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children: oe }),
1908
+ /* @__PURE__ */ n("div", { className: "ds:min-w-0", children: re })
1808
1909
  ] })
1809
1910
  ] })
1810
1911
  ) : (
@@ -1816,7 +1917,7 @@ function wn(e) {
1816
1917
  // chrome, so floating chips are the only place for them.
1817
1918
  /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1818
1919
  /* @__PURE__ */ n(
1819
- Qe,
1920
+ st,
1820
1921
  {
1821
1922
  heading: e.heading,
1822
1923
  headingLevel: e.headingLevel,
@@ -1825,71 +1926,82 @@ function wn(e) {
1825
1926
  searchCentreLabel: a == null ? void 0 : a.label
1826
1927
  }
1827
1928
  ),
1828
- /* @__PURE__ */ g("div", { className: "ds:relative ds:h-[60vh] ds:min-h-[20rem]", children: [
1829
- W,
1830
- H
1831
- ] }),
1832
- /* @__PURE__ */ n($.Root, { open: !0, children: /* @__PURE__ */ n(
1833
- $.Content,
1929
+ /* @__PURE__ */ g(
1930
+ "div",
1931
+ {
1932
+ ref: O,
1933
+ className: "ds:relative ds:h-[60vh] ds:min-h-[20rem]",
1934
+ style: te.mapStyle,
1935
+ children: [
1936
+ oe,
1937
+ be
1938
+ ]
1939
+ }
1940
+ ),
1941
+ /* @__PURE__ */ n(K.Root, { open: !0, modal: !1, children: /* @__PURE__ */ n(
1942
+ K.Content,
1834
1943
  {
1835
1944
  side: "bottom",
1836
- size: X,
1837
- onEscapeKeyDown: (M) => M.preventDefault(),
1838
- onPointerDownOutside: (M) => M.preventDefault(),
1839
- onInteractOutside: (M) => M.preventDefault(),
1840
- children: /* @__PURE__ */ g($.Body, { children: [
1841
- /* @__PURE__ */ n($.Description, { className: "ds:sr-only", children: P("practiceResults.sheet.descriptionMapFirst") }),
1945
+ size: ee,
1946
+ className: "ds:max-h-[var(--map-first-sheet-max-block-size,100dvh)] ds:[&_[data-radix-scroll-area-viewport]]:overscroll-contain",
1947
+ style: te.sheetStyle,
1948
+ onEscapeKeyDown: (S) => S.preventDefault(),
1949
+ onPointerDownOutside: (S) => S.preventDefault(),
1950
+ onInteractOutside: (S) => S.preventDefault(),
1951
+ onOpenAutoFocus: (S) => S.preventDefault(),
1952
+ children: /* @__PURE__ */ g(K.Body, { children: [
1953
+ /* @__PURE__ */ n(K.Description, { className: "ds:sr-only", children: B("practiceResults.sheet.descriptionMapFirst") }),
1842
1954
  /* @__PURE__ */ g("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: [
1843
- /* @__PURE__ */ n($.Title, { className: "type-title-card ds:m-0 ds:text-[var(--foreground)]", children: P("practiceResults.sheet.title", {
1955
+ /* @__PURE__ */ n(K.Title, { className: "type-title-card ds:m-0 ds:text-[var(--foreground)]", children: B("practiceResults.sheet.title", {
1844
1956
  count: e.totalCount ?? t.length
1845
1957
  }) }),
1846
1958
  /* @__PURE__ */ n(
1847
- yn,
1959
+ Sn,
1848
1960
  {
1849
- value: V,
1850
- onChange: O
1961
+ value: z,
1962
+ onChange: W
1851
1963
  }
1852
1964
  )
1853
1965
  ] }),
1854
1966
  e.sortOptions.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ n(
1855
- Ce,
1967
+ Pe,
1856
1968
  {
1857
1969
  options: e.sortOptions,
1858
- value: S.sort ?? "relevance",
1859
- onChange: (M) => v({ ...S, sort: M })
1970
+ value: L.sort ?? "relevance",
1971
+ onChange: (S) => T({ ...L, sort: S })
1860
1972
  }
1861
1973
  ) }) : null,
1862
- Z
1974
+ re
1863
1975
  ] })
1864
1976
  }
1865
1977
  ) })
1866
1978
  ] })
1867
1979
  ) });
1868
1980
  }
1869
- function Cn(e) {
1981
+ function Pn(e) {
1870
1982
  const {
1871
1983
  results: t,
1872
1984
  apiKey: i,
1873
1985
  onLoadMore: s,
1874
1986
  loadingMore: r,
1875
1987
  loadingSkeletons: a,
1876
- emptyResultsSlot: o,
1877
- errorSlot: u,
1878
- error: l,
1879
- onRetry: p,
1880
- hoveredId: c,
1881
- selectedId: h,
1882
- onCardHover: m,
1988
+ emptyResultsSlot: l,
1989
+ errorSlot: m,
1990
+ error: c,
1991
+ onRetry: o,
1992
+ hoveredId: d,
1993
+ selectedId: p,
1994
+ onCardHover: f,
1883
1995
  listContainerRef: x
1884
- } = e, b = l ? u ?? /* @__PURE__ */ n(_e, { onRetry: p, headingLevel: e.headingLevel }) : t.length === 0 && !a ? o ?? /* @__PURE__ */ n(Fe, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
1885
- Me,
1996
+ } = e, b = c ? m ?? /* @__PURE__ */ n(ze, { onRetry: o, headingLevel: e.headingLevel }) : t.length === 0 && !a ? l ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
1997
+ Ve,
1886
1998
  {
1887
1999
  results: t,
1888
2000
  headingLevel: e.headingLevel,
1889
- hoveredId: c,
1890
- selectedId: h,
2001
+ hoveredId: d,
2002
+ selectedId: p,
1891
2003
  softId: e.softId,
1892
- onCardHover: m,
2004
+ onCardHover: f,
1893
2005
  onCardLeave: e.onCardLeave,
1894
2006
  onCardSelect: e.onCardSelect,
1895
2007
  onCardOpenClick: e.onCardOpenClick,
@@ -1906,276 +2018,300 @@ function Cn(e) {
1906
2018
  }
1907
2019
  );
1908
2020
  return /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
1909
- /* @__PURE__ */ n(Ae, { variantBodyProps: e }),
2021
+ /* @__PURE__ */ n(Be, { variantBodyProps: e }),
1910
2022
  b
1911
2023
  ] });
1912
2024
  }
1913
- const kn = Pt(function({
2025
+ const Mn = Tt(function({
1914
2026
  variant: t = "split-list-map",
1915
2027
  results: i,
1916
2028
  contentLang: s,
1917
2029
  totalCount: r,
1918
2030
  searchCentre: a,
1919
- facets: o,
1920
- googleMapsApiKey: u,
1921
- mapId: l,
1922
- defaultZoom: p = Ut,
1923
- onBoundsChange: c,
1924
- consentGranted: h,
1925
- onConsentRequest: m,
2031
+ facets: l,
2032
+ googleMapsApiKey: m,
2033
+ mapId: c,
2034
+ defaultZoom: o = Jt,
2035
+ onBoundsChange: d,
2036
+ consentGranted: p,
2037
+ onConsentRequest: f,
1926
2038
  skipConsentGate: x = !1,
1927
- onLoadMore: b,
1928
- loadingMore: R,
1929
- value: w,
1930
- onChange: L,
1931
- sortOptions: I,
1932
- onResultSelect: C,
1933
- loading: T,
1934
- emptyResultsSlot: f,
1935
- errorSlot: S,
1936
- error: v,
1937
- onRetry: P,
1938
- heading: V,
1939
- headingLevel: O = 2,
1940
- intro: X,
1941
- cardOpenButtonLabel: G,
1942
- cardBookButtonLabel: Z,
1943
- showCardOpenButton: W = !0,
1944
- "aria-label": H,
1945
- id: M,
1946
- className: rt,
1947
- ...ot
1948
- }, lt) {
1949
- const { t: ue, i18n: He } = N("ui"), [me, j] = te(null), [Ve, Y] = te(null), [fe, z] = te(null), [pe, ct] = te(null), U = Ne("(min-width: 1024px)"), ae = B(/* @__PURE__ */ new Set()), he = B(/* @__PURE__ */ new Set()), dt = B(null), ie = B(null), ge = F(
2039
+ mapPreview: b,
2040
+ onLoadMore: y,
2041
+ loadingMore: N,
2042
+ value: k,
2043
+ onChange: I,
2044
+ sortOptions: M,
2045
+ onResultSelect: R,
2046
+ loading: h,
2047
+ emptyResultsSlot: L,
2048
+ errorSlot: T,
2049
+ error: B,
2050
+ onRetry: z,
2051
+ heading: v,
2052
+ headingLevel: D = 2,
2053
+ intro: W,
2054
+ cardOpenButtonLabel: ee,
2055
+ cardBookButtonLabel: Q,
2056
+ showCardOpenButton: O = !0,
2057
+ "aria-label": se,
2058
+ id: te,
2059
+ className: re,
2060
+ ...oe
2061
+ }, be) {
2062
+ const { t: S, i18n: Ee } = P("ui"), [ie, $] = G(null), [Ke, ne] = G(null), [xe, E] = G(null), [we, ht] = G(null), V = Te("(min-width: 1024px)"), le = F(/* @__PURE__ */ new Set()), ye = F(/* @__PURE__ */ new Set()), gt = F(null), ce = F(null), ke = _(
1950
2063
  () => ({
1951
2064
  getVariant: () => t,
1952
- scrollToResult: (d) => {
1953
- const k = ie.current;
1954
- if (!k) return;
1955
- const y = k.querySelector(
1956
- `[data-component="practice-result-card"][data-result-id="${CSS.escape(d)}"]`
2065
+ scrollToResult: (u) => {
2066
+ const C = ce.current;
2067
+ if (!C) return;
2068
+ const w = C.querySelector(
2069
+ `[data-component="practice-result-card"][data-result-id="${CSS.escape(u)}"]`
1957
2070
  );
1958
- y && (y.scrollIntoView({ behavior: "smooth", block: "nearest" }), U || j(null), z(d));
2071
+ w && (w.scrollIntoView({ behavior: "smooth", block: "nearest" }), V || $(null), E(u));
1959
2072
  },
1960
- focusPin: (d) => {
1961
- U && t !== "rich-cards" ? (z(null), Y(d)) : (U || j(null), z(d));
2073
+ focusPin: (u) => {
2074
+ V && t !== "rich-cards" ? (E(null), ne(u)) : (V || $(null), E(u));
1962
2075
  }
1963
2076
  }),
1964
- [t, U]
2077
+ [t, V]
1965
2078
  );
1966
- Mt(lt, () => ge, [ge]), zt(qt, ge, M);
1967
- const ut = W ? G ?? ue("practiceResults.card.open") : void 0, mt = Z ?? ue("practiceResults.card.book"), ft = _(
1968
- (d) => {
1969
- if (d.nextAvailableSlot)
2079
+ Ot(be, () => ke, [ke]), Kt(Qt, ke, te);
2080
+ const vt = O ? ee ?? S("practiceResults.card.open") : void 0, bt = Q ?? S("practiceResults.card.book"), xt = H(
2081
+ (u) => {
2082
+ if (u.nextAvailableSlot)
1970
2083
  try {
1971
- return new Intl.DateTimeFormat(He.language, {
2084
+ return new Intl.DateTimeFormat(Ee.language, {
1972
2085
  weekday: "short",
1973
2086
  hour: "numeric",
1974
2087
  minute: "numeric"
1975
- }).format(new Date(d.nextAvailableSlot.dateTime));
2088
+ }).format(new Date(u.nextAvailableSlot.dateTime));
1976
2089
  } catch {
1977
- return d.nextAvailableSlot.dateTime;
2090
+ return u.nextAvailableSlot.dateTime;
1978
2091
  }
1979
2092
  },
1980
- [He.language]
1981
- ), Oe = B(null);
1982
- ee(() => {
1983
- Oe.current !== t && (Oe.current = t, E("serp_variant_exposed", {
2093
+ [Ee.language]
2094
+ ), je = F(null);
2095
+ J(() => {
2096
+ je.current !== t && (je.current = t, q("serp_variant_exposed", {
1984
2097
  variant: t,
1985
2098
  totalCount: r ?? i.length
1986
- }), ae.current = /* @__PURE__ */ new Set(), he.current = /* @__PURE__ */ new Set());
2099
+ }), le.current = /* @__PURE__ */ new Set(), ye.current = /* @__PURE__ */ new Set());
1987
2100
  }, [t]);
1988
- const ve = B(!1), be = F(
1989
- () => Zt(o ?? [], i, w.facets),
1990
- [o, i, w.facets]
1991
- ), se = F(
1992
- () => I ? Ee.filter((d) => I.includes(d)) : Ee,
1993
- [I]
1994
- ), re = a ? "distance" : "relevance", ze = w.sort ?? re, xe = se.includes(ze) ? ze : se.includes(re) ? re : se[0] ?? re, A = F(() => {
1995
- const d = Wt(i, w.facets, be);
1996
- return Xt(d, xe, a);
1997
- }, [i, w.facets, be, xe, a]), pt = F(
2101
+ const Ce = F(!1), Re = _(
2102
+ () => Yt(l ?? [], i, k.facets),
2103
+ [l, i, k.facets]
2104
+ ), de = _(
2105
+ () => M ? Je.filter((u) => M.includes(u)) : Je,
2106
+ [M]
2107
+ ), ue = a ? "distance" : "relevance", qe = k.sort ?? ue, Se = de.includes(qe) ? qe : de.includes(ue) ? ue : de[0] ?? ue, A = _(() => {
2108
+ const u = en(i, k.facets, Re);
2109
+ return an(u, Se, a);
2110
+ }, [i, k.facets, Re, Se, a]), wt = _(
1998
2111
  () => s ? A.map(
1999
- (d) => d.contentLang ? d : { ...d, contentLang: s }
2112
+ (u) => u.contentLang ? u : { ...u, contentLang: s }
2000
2113
  ) : A,
2001
2114
  [A, s]
2002
2115
  );
2003
- ee(() => {
2004
- const d = A.length === 0;
2005
- d && !ve.current ? (E("serp_empty_results", {
2006
- appliedFacets: w.facets ?? {}
2007
- }), ve.current = !0) : d || (ve.current = !1);
2008
- }, [A.length, w.facets]), ee(() => {
2009
- const d = new Set(A.map((y) => y.id)), k = (y) => y !== null && d.has(y) ? y : null;
2010
- j(k), Y(k), z(k);
2011
- }, [A]), ee(() => {
2012
- j(null), Y(null), z(null);
2116
+ J(() => {
2117
+ const u = A.length === 0;
2118
+ u && !Ce.current ? (q("serp_empty_results", {
2119
+ appliedFacets: k.facets ?? {}
2120
+ }), Ce.current = !0) : u || (Ce.current = !1);
2121
+ }, [A.length, k.facets]), J(() => {
2122
+ const u = new Set(A.map((w) => w.id)), C = (w) => w !== null && u.has(w) ? w : null;
2123
+ $(C), ne(C), E(C);
2124
+ }, [A]), J(() => {
2125
+ $(null), ne(null), E(null);
2013
2126
  }, [t]);
2014
- const Q = B(null), Be = B(null);
2015
- ee(
2127
+ const X = F(null), Ue = F(null);
2128
+ J(
2016
2129
  () => () => {
2017
- Q.current && clearTimeout(Q.current);
2130
+ X.current && clearTimeout(X.current);
2018
2131
  },
2019
2132
  []
2020
2133
  );
2021
- const ye = _((d) => {
2022
- ae.current.has(d) || Be.current === d && Q.current || (Q.current && clearTimeout(Q.current), Be.current = d, Q.current = setTimeout(() => {
2023
- ae.current.has(d) || (ae.current.add(d), E("serp_result_hovered_card", { resultId: d })), Q.current = null;
2134
+ const Ne = H((u) => {
2135
+ le.current.has(u) || Ue.current === u && X.current || (X.current && clearTimeout(X.current), Ue.current = u, X.current = setTimeout(() => {
2136
+ le.current.has(u) || (le.current.add(u), q("serp_result_hovered_card", { resultId: u })), X.current = null;
2024
2137
  }, 500));
2025
- }, []), ht = _(
2026
- (d, k) => {
2027
- ye(d), k && (j(d), z(null));
2138
+ }, []), yt = H(
2139
+ (u, C) => {
2140
+ Ne(u), C && ($(u), E(null));
2141
+ },
2142
+ [Ne]
2143
+ ), kt = H(() => $(null), []);
2144
+ J(() => {
2145
+ if (ie === null) return;
2146
+ const u = (C) => {
2147
+ C.key === "Escape" && $(null);
2148
+ };
2149
+ return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
2150
+ }, [ie]);
2151
+ const Ct = H(
2152
+ (u, C, w) => {
2153
+ if (!C) {
2154
+ $((me) => me === u ? null : me);
2155
+ return;
2156
+ }
2157
+ V && (w === "pointer" && !ve() || ($(u), E(null)));
2028
2158
  },
2029
- [ye]
2030
- ), gt = _(() => j(null), []), vt = _(() => {
2031
- Y(null), z(null);
2032
- }, []), bt = _(
2033
- (d) => {
2034
- var k;
2035
- if (!U) {
2036
- const y = (k = ie.current) == null ? void 0 : k.querySelector(
2037
- `[data-component="practice-result-card"][data-result-id="${CSS.escape(d)}"]`
2159
+ [V]
2160
+ ), Ge = F(V);
2161
+ J(() => {
2162
+ Ge.current && !V && $(null), Ge.current = V;
2163
+ }, [V]);
2164
+ const Rt = H(() => {
2165
+ ne(null), E(null);
2166
+ }, []), St = H(
2167
+ (u) => {
2168
+ var C;
2169
+ if (!V) {
2170
+ const w = (C = ce.current) == null ? void 0 : C.querySelector(
2171
+ `[data-component="practice-result-card"][data-result-id="${CSS.escape(u)}"]`
2038
2172
  );
2039
- j(null), z(d), y == null || y.scrollIntoView({ behavior: "smooth", block: "nearest" });
2173
+ $(null), E(u), w == null || w.scrollIntoView({ behavior: "smooth", block: "nearest" });
2040
2174
  return;
2041
2175
  }
2042
- z(null), Y(d), ct((y) => ({ id: d, n: ((y == null ? void 0 : y.n) ?? 0) + 1 }));
2176
+ E(null), ne(u), ht((w) => ({ id: u, n: ((w == null ? void 0 : w.n) ?? 0) + 1 }));
2043
2177
  },
2044
- [U]
2178
+ [V]
2045
2179
  );
2046
- Ht(() => {
2047
- if (!pe) return;
2048
- const d = ie.current, k = d == null ? void 0 : d.querySelector(
2049
- `[data-component="practice-result-card"][data-result-id="${CSS.escape(pe.id)}"]`
2180
+ _e(() => {
2181
+ if (!we) return;
2182
+ const u = ce.current, C = u == null ? void 0 : u.querySelector(
2183
+ `[data-component="practice-result-card"][data-result-id="${CSS.escape(we.id)}"]`
2050
2184
  );
2051
- k == null || k.scrollIntoView({
2052
- behavior: Vt(k) ? "instant" : "smooth",
2185
+ C == null || C.scrollIntoView({
2186
+ behavior: zt(C) ? "instant" : "smooth",
2053
2187
  block: "start"
2054
2188
  });
2055
- }, [pe]);
2056
- const xt = _((d) => {
2057
- he.current.has(d) || (he.current.add(d), E("serp_result_hovered_pin", { resultId: d }));
2058
- }, []), $e = B(null), yt = _(
2059
- (d) => {
2060
- Y(null), Ie() ? (z(null), j(d)) : (j(null), z(d));
2061
- const k = A.find((y) => y.id === d);
2062
- if (k) {
2063
- if (k.location) {
2064
- const y = $e.current;
2065
- y == null || y.panTo({
2066
- lat: k.location.lat,
2067
- lng: k.location.lng
2068
- }), y == null || y.setZoom(16);
2189
+ }, [we]);
2190
+ const Nt = H((u) => {
2191
+ ye.current.has(u) || (ye.current.add(u), q("serp_result_hovered_pin", { resultId: u }));
2192
+ }, []), Ze = F(null), Lt = H(
2193
+ (u) => {
2194
+ ne(null), ve() ? (E(null), $(u)) : ($(null), E(u));
2195
+ const C = A.find((w) => w.id === u);
2196
+ if (C) {
2197
+ if (C.location) {
2198
+ const w = Ze.current;
2199
+ w == null || w.panTo({
2200
+ lat: C.location.lat,
2201
+ lng: C.location.lng
2202
+ }), w == null || w.setZoom(16);
2069
2203
  }
2070
- ne(A, d, "card", C);
2204
+ ae(A, u, "card", R);
2071
2205
  }
2072
2206
  },
2073
- [A, C]
2074
- ), wt = _(
2075
- (d) => {
2076
- ne(
2207
+ [A, R]
2208
+ ), Pt = H(
2209
+ (u) => {
2210
+ ae(
2077
2211
  A,
2078
- d,
2212
+ u,
2079
2213
  "open-button",
2080
- C
2214
+ R
2081
2215
  );
2082
2216
  },
2083
- [A, C]
2084
- ), Ct = _(
2085
- (d) => {
2086
- ne(
2217
+ [A, R]
2218
+ ), Mt = H(
2219
+ (u) => {
2220
+ ae(
2087
2221
  A,
2088
- d,
2222
+ u,
2089
2223
  "book-button",
2090
- C
2224
+ R
2091
2225
  );
2092
2226
  },
2093
- [A, C]
2094
- ), kt = !!T && i.length === 0, Rt = _(
2095
- (d, k) => {
2096
- const y = A.find((Lt) => Lt.id === d.id);
2097
- C(y ?? d, k);
2227
+ [A, R]
2228
+ ), It = !!h && i.length === 0, At = H(
2229
+ (u, C) => {
2230
+ const w = A.find((me) => me.id === u.id);
2231
+ R(w ?? u, C);
2098
2232
  },
2099
- [A, C]
2100
- ), we = {
2101
- results: pt,
2233
+ [A, R]
2234
+ ), Le = {
2235
+ results: wt,
2102
2236
  totalCount: r,
2103
2237
  searchCentre: a,
2104
- facets: be,
2105
- value: { ...w, sort: xe },
2106
- sortOptions: se,
2107
- onChange: L,
2108
- onResultSelect: Rt,
2109
- onLoadMore: b,
2110
- loadingMore: R,
2111
- apiKey: u,
2112
- mapId: l,
2113
- zoom: p,
2238
+ facets: Re,
2239
+ value: { ...k, sort: Se },
2240
+ sortOptions: de,
2241
+ onChange: I,
2242
+ onResultSelect: At,
2243
+ onLoadMore: y,
2244
+ loadingMore: N,
2245
+ apiKey: m,
2246
+ mapId: c,
2247
+ zoom: o,
2114
2248
  // 0.31.4: when `skipConsentGate` is true the kit synthesises
2115
2249
  // `consentGranted=true` for every internal MapView; the consumer's
2116
2250
  // CMP at the page level is responsible for whether the Google Maps
2117
2251
  // loader script is present at all. `onConsentRequest` is dropped
2118
2252
  // because no placeholder renders — nothing to fire it from.
2119
- consentGranted: x ? !0 : h,
2120
- onConsentRequest: x ? void 0 : m,
2121
- onBoundsChange: c,
2122
- loadingSkeletons: kt,
2123
- emptyResultsSlot: f,
2124
- errorSlot: S,
2125
- error: v,
2126
- onRetry: P,
2127
- heading: V,
2128
- headingLevel: O,
2129
- intro: X,
2130
- hoveredId: me,
2131
- selectedId: Ve,
2132
- softId: fe,
2133
- mapHoveredId: U ? me : null,
2134
- mapSelectedId: U ? Ve ?? fe : me ?? fe,
2135
- onCardHover: ht,
2136
- onCardLeave: gt,
2137
- onPinHover: ye,
2138
- onMapClick: vt,
2139
- onPinClick: bt,
2140
- onPinFirstInteract: xt,
2141
- onCardSelect: yt,
2142
- onCardOpenClick: wt,
2143
- onCardBookClick: Ct,
2144
- openLabel: ut,
2145
- bookLabel: mt,
2146
- formatNextSlot: ft,
2147
- listContainerRef: dt,
2148
- mapHandleRef: $e
2149
- }, St = (() => {
2253
+ consentGranted: x ? !0 : p,
2254
+ onConsentRequest: x ? void 0 : f,
2255
+ mapPreview: b,
2256
+ onBoundsChange: d,
2257
+ loadingSkeletons: It,
2258
+ emptyResultsSlot: L,
2259
+ errorSlot: T,
2260
+ error: B,
2261
+ onRetry: z,
2262
+ heading: v,
2263
+ headingLevel: D,
2264
+ intro: W,
2265
+ hoveredId: ie,
2266
+ selectedId: Ke,
2267
+ softId: xe,
2268
+ mapHoveredId: V ? ie : null,
2269
+ mapSelectedId: V ? Ke ?? xe : ie ?? xe,
2270
+ onCardHover: yt,
2271
+ onCardLeave: kt,
2272
+ onPinHover: Ne,
2273
+ onPinHoverChange: Ct,
2274
+ onMapClick: Rt,
2275
+ onPinClick: St,
2276
+ onPinFirstInteract: Nt,
2277
+ onCardSelect: Lt,
2278
+ onCardOpenClick: Pt,
2279
+ onCardBookClick: Mt,
2280
+ openLabel: vt,
2281
+ bookLabel: bt,
2282
+ formatNextSlot: xt,
2283
+ listContainerRef: gt,
2284
+ mapHandleRef: Ze
2285
+ }, Ht = (() => {
2150
2286
  switch (t) {
2151
2287
  case "map-first":
2152
- return /* @__PURE__ */ n(wn, { ...we });
2288
+ return /* @__PURE__ */ n(Ln, { ...Le });
2153
2289
  case "rich-cards":
2154
- return /* @__PURE__ */ n(Cn, { ...we });
2290
+ return /* @__PURE__ */ n(Pn, { ...Le });
2155
2291
  case "split-list-map":
2156
2292
  default:
2157
- return /* @__PURE__ */ n(bn, { ...we });
2293
+ return /* @__PURE__ */ n(Cn, { ...Le });
2158
2294
  }
2159
- })(), Nt = H ?? ue("practiceResults.regionLabel");
2295
+ })(), Ft = se ?? S("practiceResults.regionLabel");
2160
2296
  return /* @__PURE__ */ n(
2161
2297
  "div",
2162
2298
  {
2163
- ref: ie,
2299
+ ref: ce,
2164
2300
  role: "region",
2165
- "aria-label": Nt,
2166
- id: M,
2301
+ "aria-label": Ft,
2302
+ id: te,
2167
2303
  "data-component": "practice-results",
2168
- "data-component-id": M,
2304
+ "data-component-id": te,
2169
2305
  "data-variant": t,
2170
- className: en({ variant: t, className: rt }),
2171
- ...ot,
2172
- children: St
2306
+ className: rn({ variant: t, className: re }),
2307
+ ...oe,
2308
+ children: Ht
2173
2309
  }
2174
2310
  );
2175
2311
  });
2176
- kn.displayName = "PracticeResults";
2312
+ Mn.displayName = "PracticeResults";
2177
2313
  export {
2178
- kn as P,
2179
- qt as p
2314
+ Mn as P,
2315
+ Qt as p
2180
2316
  };
2181
- //# sourceMappingURL=practice-results-CrBjScXX.js.map
2317
+ //# sourceMappingURL=practice-results-b3uchdBn.js.map