@alfadocs/ui-kit 0.31.4 → 0.31.6
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.
- package/dist/_chunks/{agenda-card-UJA6Arbs.js → agenda-card-DtGlQde1.js} +2 -2
- package/dist/_chunks/{agenda-tray-1fAxNOMz.js → agenda-tray-CXmlwt2K.js} +2 -2
- package/dist/_chunks/{badge-CptERaHx.js → badge-B9Cr6iEB.js} +30 -21
- package/dist/_chunks/{benefit-card-CLPNpiQE.js → benefit-card-B86DH-PE.js} +14 -10
- package/dist/_chunks/{card-DKTMLVrw.js → card-CNri9ssR.js} +43 -37
- package/dist/_chunks/{contact-card-DYbp--s-.js → contact-card-Dos7Tley.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-BpicmolK.js → editable-currency-cell-renderer-YvTwkFrD.js} +2 -2
- package/dist/_chunks/key-value-pair-CYE7NSpM.js +134 -0
- package/dist/_chunks/message-circle-C23eicgb.js +20 -0
- package/dist/_chunks/operator-hero-BsjE-kJF.js +171 -0
- package/dist/_chunks/{patient-search-hFiYbqcl.js → patient-search-CSDru7QW.js} +2 -2
- package/dist/_chunks/practice-profile-card-C2_2ZH_G.js +297 -0
- package/dist/_chunks/{practice-results-dOlljaAK.js → practice-results-VqbCUO1b.js} +225 -269
- package/dist/_chunks/{reviews-panel-yanuBZs-.js → reviews-panel-Cjys8G8K.js} +2 -2
- package/dist/_chunks/shield-check-BhHyReu8.js +52 -0
- package/dist/_chunks/{timeline-D0Wo7v_o.js → timeline-BZC7qGdy.js} +2 -2
- package/dist/_chunks/{workflow-map-BSvQS3be.js → workflow-map-DfpjDZHK.js} +93 -107
- package/dist/agent-catalog.json +55 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.d.ts +2 -2
- package/dist/components/key-value-pair/index.js +3 -2
- package/dist/components/key-value-pair/key-value-pair.d.ts +10 -0
- package/dist/components/operator-hero/index.d.ts +4 -0
- package/dist/components/operator-hero/index.js +6 -0
- package/dist/components/operator-hero/operator-hero.agent.d.ts +4 -0
- package/dist/components/operator-hero/operator-hero.d.ts +64 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/practice-profile-card/index.d.ts +4 -0
- package/dist/components/practice-profile-card/index.js +8 -0
- package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +4 -0
- package/dist/components/practice-profile-card/practice-profile-card.d.ts +115 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +23 -0
- package/dist/i18n/locales/ar.js +23 -0
- package/dist/i18n/locales/de.d.ts +23 -0
- package/dist/i18n/locales/de.js +23 -0
- package/dist/i18n/locales/el.d.ts +23 -0
- package/dist/i18n/locales/el.js +23 -0
- package/dist/i18n/locales/en.d.ts +23 -0
- package/dist/i18n/locales/en.js +23 -0
- package/dist/i18n/locales/es.d.ts +23 -0
- package/dist/i18n/locales/es.js +23 -0
- package/dist/i18n/locales/fr.d.ts +23 -0
- package/dist/i18n/locales/fr.js +23 -0
- package/dist/i18n/locales/hi.d.ts +23 -0
- package/dist/i18n/locales/hi.js +23 -0
- package/dist/i18n/locales/it.d.ts +23 -0
- package/dist/i18n/locales/it.js +23 -0
- package/dist/i18n/locales/ja.d.ts +23 -0
- package/dist/i18n/locales/ja.js +23 -0
- package/dist/i18n/locales/nl.d.ts +23 -0
- package/dist/i18n/locales/nl.js +23 -0
- package/dist/i18n/locales/pl.d.ts +23 -0
- package/dist/i18n/locales/pl.js +23 -0
- package/dist/i18n/locales/pt.d.ts +23 -0
- package/dist/i18n/locales/pt.js +23 -0
- package/dist/i18n/locales/ro.d.ts +23 -0
- package/dist/i18n/locales/ro.js +23 -0
- package/dist/i18n/locales/ru.d.ts +23 -0
- package/dist/i18n/locales/ru.js +23 -0
- package/dist/i18n/locales/sq.d.ts +23 -0
- package/dist/i18n/locales/sq.js +23 -0
- package/dist/i18n/locales/sv.d.ts +23 -0
- package/dist/i18n/locales/sv.js +23 -0
- package/dist/i18n/locales/tr.d.ts +23 -0
- package/dist/i18n/locales/tr.js +23 -0
- package/dist/i18n/locales/zh.d.ts +23 -0
- package/dist/i18n/locales/zh.js +23 -0
- package/dist/index.js +400 -391
- package/dist/locales/ar.json +23 -0
- package/dist/locales/de.json +23 -0
- package/dist/locales/el.json +23 -0
- package/dist/locales/en.json +23 -0
- package/dist/locales/es.json +23 -0
- package/dist/locales/fr.json +23 -0
- package/dist/locales/hi.json +23 -0
- package/dist/locales/it.json +23 -0
- package/dist/locales/ja.json +23 -0
- package/dist/locales/nl.json +23 -0
- package/dist/locales/pl.json +23 -0
- package/dist/locales/pt.json +23 -0
- package/dist/locales/ro.json +23 -0
- package/dist/locales/ru.json +23 -0
- package/dist/locales/sq.json +23 -0
- package/dist/locales/sv.json +23 -0
- package/dist/locales/tr.json +23 -0
- package/dist/locales/zh.json +23 -0
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/key-value-pair-C8DaR3Xs.js +0 -98
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as Ue, useState as ue, useRef as A, useMemo as D, useImperativeHandle as qe, useCallback as K, useEffect as Q } from "react";
|
|
3
3
|
import { c as G } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
4
|
+
import { useTranslation as C } from "react-i18next";
|
|
5
5
|
import { A as Y } from "./alert-ywPR59NE.js";
|
|
6
|
-
import { A as
|
|
6
|
+
import { A as Re } from "./avatar-BNQNhoyL.js";
|
|
7
7
|
import { B as q } from "./button-DD_0Xdmr.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { E as
|
|
10
|
-
import { M as
|
|
11
|
-
import { R as
|
|
12
|
-
import { S as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
15
|
-
import { B as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { c as
|
|
8
|
+
import { D as H } from "./dropdown-menu-BC5ZdOMo.js";
|
|
9
|
+
import { E as Ge } from "./empty-state-BLy7tigq.js";
|
|
10
|
+
import { M as Ze } from "./map-view-WEWqXzof.js";
|
|
11
|
+
import { R as we } from "./rating-BRD7O74e.js";
|
|
12
|
+
import { S as z } from "./sheet-BV-yuLE2.js";
|
|
13
|
+
import { S as Qe } from "./skeleton-CZbwyJAA.js";
|
|
14
|
+
import { S as Je } from "./spinner-CCByyvcb.js";
|
|
15
|
+
import { B as $ } from "./badge-B9Cr6iEB.js";
|
|
16
|
+
import { u as We } from "./use-media-query-CcAx5SMM.js";
|
|
17
|
+
import { u as Xe } from "./registry-nPAVE19X.js";
|
|
18
|
+
import { c as Ye } from "./createLucideIcon-CrFbzy84.js";
|
|
19
19
|
import { R as et } from "./refresh-cw-CC8jSKMr.js";
|
|
20
20
|
import { C as Ce } from "./chevron-down-BX_NP2Yh.js";
|
|
21
|
-
import { M as
|
|
22
|
-
import {
|
|
21
|
+
import { M as te } from "./map-pin-B8STOPMJ.js";
|
|
22
|
+
import { L as ke, S as Ne, H as Se } from "./shield-check-BhHyReu8.js";
|
|
23
|
+
import { C as Pe } from "./calendar-clock-CYkcqdwl.js";
|
|
23
24
|
/**
|
|
24
25
|
* @license lucide-react v1.8.0 - ISC
|
|
25
26
|
*
|
|
@@ -27,35 +28,6 @@ import { C as Ne } from "./calendar-clock-CYkcqdwl.js";
|
|
|
27
28
|
* See the LICENSE file in the root directory of this source tree.
|
|
28
29
|
*/
|
|
29
30
|
const tt = [
|
|
30
|
-
[
|
|
31
|
-
"path",
|
|
32
|
-
{
|
|
33
|
-
d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",
|
|
34
|
-
key: "mvr1a0"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
], Se = te("heart", tt);
|
|
38
|
-
/**
|
|
39
|
-
* @license lucide-react v1.8.0 - ISC
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the ISC license.
|
|
42
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/
|
|
44
|
-
const nt = [
|
|
45
|
-
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
46
|
-
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
47
|
-
["path", { d: "M2 5h12", key: "or177f" }],
|
|
48
|
-
["path", { d: "M7 2h1", key: "1t2jsx" }],
|
|
49
|
-
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
50
|
-
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
51
|
-
], Pe = te("languages", nt);
|
|
52
|
-
/**
|
|
53
|
-
* @license lucide-react v1.8.0 - ISC
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the ISC license.
|
|
56
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/
|
|
58
|
-
const at = [
|
|
59
31
|
[
|
|
60
32
|
"path",
|
|
61
33
|
{
|
|
@@ -65,23 +37,7 @@ const at = [
|
|
|
65
37
|
],
|
|
66
38
|
["path", { d: "M15 5.764v15", key: "1pn4in" }],
|
|
67
39
|
["path", { d: "M9 3.236v15", key: "1uimfh" }]
|
|
68
|
-
],
|
|
69
|
-
/**
|
|
70
|
-
* @license lucide-react v1.8.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/
|
|
75
|
-
const it = [
|
|
76
|
-
[
|
|
77
|
-
"path",
|
|
78
|
-
{
|
|
79
|
-
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
80
|
-
key: "oel41y"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
84
|
-
], Me = te("shield-check", it), rt = {
|
|
40
|
+
], nt = Ye("map", tt), at = {
|
|
85
41
|
id: "practice-results",
|
|
86
42
|
capabilities: ["navigate", "view_change"],
|
|
87
43
|
state: {
|
|
@@ -124,13 +80,13 @@ const it = [
|
|
|
124
80
|
description: "Sourced from the id prop."
|
|
125
81
|
}
|
|
126
82
|
}
|
|
127
|
-
},
|
|
83
|
+
}, st = 13, it = [
|
|
128
84
|
"distance",
|
|
129
85
|
"rating",
|
|
130
86
|
"next-available",
|
|
131
87
|
"relevance"
|
|
132
88
|
];
|
|
133
|
-
function
|
|
89
|
+
function F(e, n) {
|
|
134
90
|
if (typeof window > "u") return;
|
|
135
91
|
const s = window.track;
|
|
136
92
|
try {
|
|
@@ -142,13 +98,13 @@ function J(e, n, s, o) {
|
|
|
142
98
|
const i = e.findIndex((d) => d.id === n);
|
|
143
99
|
if (i < 0) return;
|
|
144
100
|
const a = e[i];
|
|
145
|
-
a && (
|
|
101
|
+
a && (F("serp_result_clicked", { resultId: n, source: s, position: i }), o(a, s));
|
|
146
102
|
}
|
|
147
|
-
function
|
|
103
|
+
function rt(e, n) {
|
|
148
104
|
const o = (n.lat - e.lat) * Math.PI / 180, i = (n.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, d = n.lat * Math.PI / 180, u = Math.sin(o / 2), c = Math.sin(i / 2), g = u * u + Math.cos(a) * Math.cos(d) * c * c;
|
|
149
105
|
return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(g)));
|
|
150
106
|
}
|
|
151
|
-
function
|
|
107
|
+
function lt(e, n, s) {
|
|
152
108
|
return !n || Object.keys(n).length === 0 ? e : e.filter((o) => {
|
|
153
109
|
for (const i of s) {
|
|
154
110
|
const a = n[i.key];
|
|
@@ -163,9 +119,9 @@ function dt(e, n, s) {
|
|
|
163
119
|
return !0;
|
|
164
120
|
});
|
|
165
121
|
}
|
|
166
|
-
function
|
|
122
|
+
function ot(e, n, s) {
|
|
167
123
|
const o = e.map((a) => {
|
|
168
|
-
const d = a.location ? a.location.distanceKm ?? (s ?
|
|
124
|
+
const d = a.location ? a.location.distanceKm ?? (s ? rt(s, a.location) : void 0) : void 0;
|
|
169
125
|
return { result: a, distanceKm: d };
|
|
170
126
|
}), i = (a, d) => {
|
|
171
127
|
var u, c, g, l;
|
|
@@ -192,7 +148,7 @@ function ut(e, n, s) {
|
|
|
192
148
|
} : a
|
|
193
149
|
);
|
|
194
150
|
}
|
|
195
|
-
function
|
|
151
|
+
function be(e) {
|
|
196
152
|
let n = -1 / 0, s = 1 / 0, o = -1 / 0, i = 1 / 0, a = !1;
|
|
197
153
|
for (const d of e) {
|
|
198
154
|
if (!d.location) continue;
|
|
@@ -203,7 +159,7 @@ function ye(e) {
|
|
|
203
159
|
if (a)
|
|
204
160
|
return { north: n, south: s, east: o, west: i };
|
|
205
161
|
}
|
|
206
|
-
const
|
|
162
|
+
const ct = G(
|
|
207
163
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:gap-[var(--spacing-md)]",
|
|
208
164
|
{
|
|
209
165
|
variants: {
|
|
@@ -216,13 +172,13 @@ const mt = G(
|
|
|
216
172
|
defaultVariants: { variant: "split-list-map" }
|
|
217
173
|
}
|
|
218
174
|
);
|
|
219
|
-
function
|
|
175
|
+
function Me({
|
|
220
176
|
heading: e,
|
|
221
177
|
intro: n,
|
|
222
178
|
totalCount: s,
|
|
223
179
|
searchCentreLabel: o
|
|
224
180
|
}) {
|
|
225
|
-
const { t: i } =
|
|
181
|
+
const { t: i } = C();
|
|
226
182
|
if (!e && !n && s == null) return null;
|
|
227
183
|
const a = s != null ? o ? i("practiceResults.results.heading", {
|
|
228
184
|
count: s,
|
|
@@ -263,7 +219,7 @@ const ee = G(
|
|
|
263
219
|
},
|
|
264
220
|
defaultVariants: { state: "idle" }
|
|
265
221
|
}
|
|
266
|
-
),
|
|
222
|
+
), dt = G(
|
|
267
223
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
268
224
|
{
|
|
269
225
|
variants: {
|
|
@@ -282,7 +238,7 @@ const ee = G(
|
|
|
282
238
|
},
|
|
283
239
|
defaultVariants: { placement: "inline" }
|
|
284
240
|
}
|
|
285
|
-
),
|
|
241
|
+
), ut = G(
|
|
286
242
|
[
|
|
287
243
|
"ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
288
244
|
"ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
@@ -293,18 +249,18 @@ const ee = G(
|
|
|
293
249
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
294
250
|
].join(" ")
|
|
295
251
|
);
|
|
296
|
-
function
|
|
252
|
+
function Ae({
|
|
297
253
|
facets: e,
|
|
298
254
|
value: n,
|
|
299
255
|
onChange: s,
|
|
300
256
|
floating: o
|
|
301
257
|
}) {
|
|
302
|
-
const { t: i } =
|
|
258
|
+
const { t: i } = C(), a = D(() => n ?? {}, [n]), d = D(
|
|
303
259
|
() => Object.values(a).some((l) => l && l.length > 0),
|
|
304
260
|
[a]
|
|
305
261
|
), u = (l, p) => {
|
|
306
262
|
const m = { ...a };
|
|
307
|
-
p.length === 0 ? delete m[l] : m[l] = p, s(m),
|
|
263
|
+
p.length === 0 ? delete m[l] : m[l] = p, s(m), F("serp_filter_changed", { key: l, values: p });
|
|
308
264
|
}, c = (l) => {
|
|
309
265
|
var m;
|
|
310
266
|
const p = (((m = a[l]) == null ? void 0 : m.length) ?? 0) > 0;
|
|
@@ -320,7 +276,7 @@ function _e({
|
|
|
320
276
|
"data-component": "practice-results-filters",
|
|
321
277
|
role: "group",
|
|
322
278
|
"aria-label": i("practiceResults.filters.label"),
|
|
323
|
-
className:
|
|
279
|
+
className: dt({
|
|
324
280
|
placement: o ? "floating" : "inline"
|
|
325
281
|
}),
|
|
326
282
|
children: [
|
|
@@ -342,8 +298,8 @@ function _e({
|
|
|
342
298
|
l.key
|
|
343
299
|
);
|
|
344
300
|
const h = x ? ` (${m.length})` : "";
|
|
345
|
-
return /* @__PURE__ */ f(
|
|
346
|
-
/* @__PURE__ */ t(
|
|
301
|
+
return /* @__PURE__ */ f(H.Root, { children: [
|
|
302
|
+
/* @__PURE__ */ t(H.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
|
|
347
303
|
"button",
|
|
348
304
|
{
|
|
349
305
|
type: "button",
|
|
@@ -366,8 +322,8 @@ function _e({
|
|
|
366
322
|
]
|
|
367
323
|
}
|
|
368
324
|
) }),
|
|
369
|
-
/* @__PURE__ */ t(
|
|
370
|
-
|
|
325
|
+
/* @__PURE__ */ t(H.Content, { sideOffset: 8, align: "start", children: l.options.map((r) => /* @__PURE__ */ t(
|
|
326
|
+
H.CheckboxItem,
|
|
371
327
|
{
|
|
372
328
|
checked: m.includes(r.value),
|
|
373
329
|
onSelect: (b) => {
|
|
@@ -384,9 +340,9 @@ function _e({
|
|
|
384
340
|
{
|
|
385
341
|
type: "button",
|
|
386
342
|
onClick: () => {
|
|
387
|
-
s({}),
|
|
343
|
+
s({}), F("serp_filter_changed", { key: "*", values: [] });
|
|
388
344
|
},
|
|
389
|
-
className:
|
|
345
|
+
className: ut(),
|
|
390
346
|
children: i("practiceResults.filters.clear")
|
|
391
347
|
}
|
|
392
348
|
) : null
|
|
@@ -394,8 +350,8 @@ function _e({
|
|
|
394
350
|
}
|
|
395
351
|
);
|
|
396
352
|
}
|
|
397
|
-
function
|
|
398
|
-
const { t: s } =
|
|
353
|
+
function ce({ value: e, onChange: n }) {
|
|
354
|
+
const { t: s } = C(), o = (i) => {
|
|
399
355
|
switch (i) {
|
|
400
356
|
case "distance":
|
|
401
357
|
return s("practiceResults.sort.distance");
|
|
@@ -408,8 +364,8 @@ function de({ value: e, onChange: n }) {
|
|
|
408
364
|
return s("practiceResults.sort.relevance");
|
|
409
365
|
}
|
|
410
366
|
};
|
|
411
|
-
return /* @__PURE__ */ f(
|
|
412
|
-
/* @__PURE__ */ t(
|
|
367
|
+
return /* @__PURE__ */ f(H.Root, { children: [
|
|
368
|
+
/* @__PURE__ */ t(H.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
|
|
413
369
|
"button",
|
|
414
370
|
{
|
|
415
371
|
type: "button",
|
|
@@ -425,30 +381,30 @@ function de({ value: e, onChange: n }) {
|
|
|
425
381
|
]
|
|
426
382
|
}
|
|
427
383
|
) }),
|
|
428
|
-
/* @__PURE__ */ t(
|
|
429
|
-
|
|
384
|
+
/* @__PURE__ */ t(H.Content, { sideOffset: 8, align: "end", children: /* @__PURE__ */ t(
|
|
385
|
+
H.RadioGroup,
|
|
430
386
|
{
|
|
431
387
|
value: e,
|
|
432
388
|
onValueChange: (i) => {
|
|
433
389
|
const a = i;
|
|
434
|
-
a !== e && (n(a),
|
|
390
|
+
a !== e && (n(a), F("serp_sort_changed", { sort: a }));
|
|
435
391
|
},
|
|
436
|
-
children:
|
|
392
|
+
children: it.map((i) => /* @__PURE__ */ t(H.RadioItem, { value: i, children: o(i) }, i))
|
|
437
393
|
}
|
|
438
394
|
) })
|
|
439
395
|
] });
|
|
440
396
|
}
|
|
441
397
|
function ze({ distanceKm: e }) {
|
|
442
|
-
const { t: n, i18n: s } =
|
|
398
|
+
const { t: n, i18n: s } = C(), o = D(() => {
|
|
443
399
|
if (e < 1) return n("practiceResults.distance.below");
|
|
444
400
|
const i = new Intl.NumberFormat(s.language, {
|
|
445
401
|
maximumFractionDigits: 1
|
|
446
402
|
}).format(e);
|
|
447
403
|
return n("practiceResults.distance.km", { distance: i });
|
|
448
404
|
}, [e, n, s.language]);
|
|
449
|
-
return /* @__PURE__ */ t(
|
|
405
|
+
return /* @__PURE__ */ t($, { variant: "neutral", leading: /* @__PURE__ */ t(te, { "aria-hidden": "true" }), children: o });
|
|
450
406
|
}
|
|
451
|
-
const
|
|
407
|
+
const ye = G(
|
|
452
408
|
[
|
|
453
409
|
"ds:inline-size-[12rem] ds:block-size-[8rem] ds:shrink-0",
|
|
454
410
|
"ds:rounded-[var(--radius-md)] ds:overflow-hidden"
|
|
@@ -467,31 +423,31 @@ const Re = G(
|
|
|
467
423
|
defaultVariants: { state: "placeholder" }
|
|
468
424
|
}
|
|
469
425
|
);
|
|
470
|
-
function
|
|
426
|
+
function mt() {
|
|
471
427
|
if (typeof document > "u") return "4945a3";
|
|
472
428
|
const e = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), n = /^#?([0-9a-fA-F]{6})$/.exec(e);
|
|
473
429
|
return n ? n[1] : "4945a3";
|
|
474
430
|
}
|
|
475
|
-
function
|
|
431
|
+
function pt({
|
|
476
432
|
apiKey: e,
|
|
477
433
|
center: n,
|
|
478
434
|
zoom: s = 14,
|
|
479
435
|
address: o
|
|
480
436
|
}) {
|
|
481
|
-
const { t: i } =
|
|
437
|
+
const { t: i } = C();
|
|
482
438
|
if (!e)
|
|
483
439
|
return /* @__PURE__ */ f(
|
|
484
440
|
"div",
|
|
485
441
|
{
|
|
486
442
|
"aria-hidden": o ? void 0 : "true",
|
|
487
|
-
className:
|
|
443
|
+
className: ye({ state: "placeholder" }),
|
|
488
444
|
children: [
|
|
489
|
-
/* @__PURE__ */ t(
|
|
445
|
+
/* @__PURE__ */ t(te, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
|
|
490
446
|
o ? /* @__PURE__ */ t("span", { className: "type-meta ds:[overflow-wrap:anywhere]", children: o }) : null
|
|
491
447
|
]
|
|
492
448
|
}
|
|
493
449
|
);
|
|
494
|
-
const a =
|
|
450
|
+
const a = mt(), d = `https://maps.googleapis.com/maps/api/staticmap?center=${n.lat},${n.lng}&zoom=${s}&size=240x160&scale=2&markers=color:0x${a}%7C${n.lat},${n.lng}&key=${encodeURIComponent(e)}`;
|
|
495
451
|
return /* @__PURE__ */ t(
|
|
496
452
|
"img",
|
|
497
453
|
{
|
|
@@ -501,11 +457,11 @@ function gt({
|
|
|
501
457
|
decoding: "async",
|
|
502
458
|
width: 240,
|
|
503
459
|
height: 160,
|
|
504
|
-
className:
|
|
460
|
+
className: ye({ state: "image" })
|
|
505
461
|
}
|
|
506
462
|
);
|
|
507
463
|
}
|
|
508
|
-
const
|
|
464
|
+
const _e = G(
|
|
509
465
|
[
|
|
510
466
|
"ds:relative ds:flex ds:w-full ds:cursor-pointer",
|
|
511
467
|
"ds:rounded-[var(--radius-lg)]",
|
|
@@ -534,7 +490,7 @@ const Ie = G(
|
|
|
534
490
|
defaultVariants: { density: "compact" }
|
|
535
491
|
}
|
|
536
492
|
);
|
|
537
|
-
function
|
|
493
|
+
function ft({
|
|
538
494
|
result: e,
|
|
539
495
|
highlighted: n,
|
|
540
496
|
onSelect: s,
|
|
@@ -547,8 +503,8 @@ function vt({
|
|
|
547
503
|
maxLanguageChips: g = 4,
|
|
548
504
|
children: l
|
|
549
505
|
}) {
|
|
550
|
-
var I, P,
|
|
551
|
-
const { t: p } =
|
|
506
|
+
var I, P, V, U, O, j;
|
|
507
|
+
const { t: p } = C(), m = e.rating, x = (I = e.location) == null ? void 0 : I.distanceKm, h = (((P = e.languages) == null ? void 0 : P.length) ?? 0) > 0, r = (((V = e.insurances) == null ? void 0 : V.length) ?? 0) > 0, b = e.specializedInFearPatients, N = h || r || b, S = (e.languages ?? []).slice(0, g), y = (((U = e.languages) == null ? void 0 : U.length) ?? 0) - S.length, M = (e.insurances ?? []).slice(0, c), _ = (((O = e.insurances) == null ? void 0 : O.length) ?? 0) - M.length;
|
|
552
508
|
return (
|
|
553
509
|
// 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.
|
|
554
510
|
/* @__PURE__ */ f(
|
|
@@ -562,9 +518,9 @@ function vt({
|
|
|
562
518
|
onClick: s,
|
|
563
519
|
onMouseEnter: i,
|
|
564
520
|
onFocus: i,
|
|
565
|
-
className:
|
|
521
|
+
className: _e({ density: a }),
|
|
566
522
|
children: [
|
|
567
|
-
/* @__PURE__ */ t(
|
|
523
|
+
/* @__PURE__ */ t(Re, { src: e.imageUrl, name: e.name, size: "lg" }),
|
|
568
524
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
569
525
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
570
526
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -580,12 +536,12 @@ function vt({
|
|
|
580
536
|
] }),
|
|
581
537
|
e.subtitle ? /* @__PURE__ */ t("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
|
|
582
538
|
(j = e.location) != null && j.address ? /* @__PURE__ */ f("span", { className: "type-meta ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
583
|
-
/* @__PURE__ */ t(
|
|
539
|
+
/* @__PURE__ */ t(te, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
584
540
|
e.location.address
|
|
585
541
|
] }) : null
|
|
586
542
|
] }),
|
|
587
543
|
m && m.count > 0 ? /* @__PURE__ */ t(
|
|
588
|
-
|
|
544
|
+
we,
|
|
589
545
|
{
|
|
590
546
|
value: m.value,
|
|
591
547
|
reviews: { count: m.count },
|
|
@@ -593,32 +549,32 @@ function vt({
|
|
|
593
549
|
}
|
|
594
550
|
) : null,
|
|
595
551
|
N ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
596
|
-
S.map((
|
|
597
|
-
|
|
552
|
+
S.map((k) => /* @__PURE__ */ t(
|
|
553
|
+
$,
|
|
598
554
|
{
|
|
599
555
|
variant: "neutral",
|
|
600
|
-
leading: /* @__PURE__ */ t(
|
|
601
|
-
children:
|
|
556
|
+
leading: /* @__PURE__ */ t(ke, { "aria-hidden": "true" }),
|
|
557
|
+
children: k.toUpperCase()
|
|
602
558
|
},
|
|
603
|
-
`lang-${
|
|
559
|
+
`lang-${k}`
|
|
604
560
|
)),
|
|
605
|
-
y > 0 ? /* @__PURE__ */ t(
|
|
606
|
-
M.map((
|
|
607
|
-
|
|
561
|
+
y > 0 ? /* @__PURE__ */ t($, { variant: "neutral", children: `+${y}` }) : null,
|
|
562
|
+
M.map((k) => /* @__PURE__ */ t(
|
|
563
|
+
$,
|
|
608
564
|
{
|
|
609
565
|
variant: "info",
|
|
610
|
-
leading: /* @__PURE__ */ t(
|
|
611
|
-
children:
|
|
566
|
+
leading: /* @__PURE__ */ t(Ne, { "aria-hidden": "true" }),
|
|
567
|
+
children: k
|
|
612
568
|
},
|
|
613
|
-
`ins-${
|
|
569
|
+
`ins-${k}`
|
|
614
570
|
)),
|
|
615
|
-
|
|
616
|
-
b ? /* @__PURE__ */ t(
|
|
571
|
+
_ > 0 ? /* @__PURE__ */ t($, { variant: "neutral", children: `+${_}` }) : null,
|
|
572
|
+
b ? /* @__PURE__ */ t($, { variant: "info", leading: /* @__PURE__ */ t(Se, { "aria-hidden": "true" }), children: p("practiceResults.fearPatient.label") }) : null
|
|
617
573
|
] }) : null,
|
|
618
574
|
e.nextAvailableSlot && u ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
619
575
|
/* @__PURE__ */ f("span", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
620
576
|
/* @__PURE__ */ t(
|
|
621
|
-
|
|
577
|
+
Pe,
|
|
622
578
|
{
|
|
623
579
|
"aria-hidden": "true",
|
|
624
580
|
className: "ds:size-4 ds:text-[var(--primary)]"
|
|
@@ -632,8 +588,8 @@ function vt({
|
|
|
632
588
|
intent: "primary",
|
|
633
589
|
size: "sm",
|
|
634
590
|
asChild: !0,
|
|
635
|
-
onClick: (
|
|
636
|
-
|
|
591
|
+
onClick: (k) => {
|
|
592
|
+
k.stopPropagation();
|
|
637
593
|
},
|
|
638
594
|
children: /* @__PURE__ */ t(
|
|
639
595
|
"a",
|
|
@@ -653,8 +609,8 @@ function vt({
|
|
|
653
609
|
intent: "secondary",
|
|
654
610
|
size: "sm",
|
|
655
611
|
asChild: !0,
|
|
656
|
-
onClick: (
|
|
657
|
-
|
|
612
|
+
onClick: (k) => {
|
|
613
|
+
k.stopPropagation(), o();
|
|
658
614
|
},
|
|
659
615
|
children: /* @__PURE__ */ t("a", { href: e.href, "data-component": "practice-result-open-cta", children: d })
|
|
660
616
|
}
|
|
@@ -665,7 +621,7 @@ function vt({
|
|
|
665
621
|
)
|
|
666
622
|
);
|
|
667
623
|
}
|
|
668
|
-
function
|
|
624
|
+
function ht({
|
|
669
625
|
result: e,
|
|
670
626
|
apiKey: n,
|
|
671
627
|
highlighted: s,
|
|
@@ -675,7 +631,7 @@ function xt({
|
|
|
675
631
|
openLabel: d
|
|
676
632
|
}) {
|
|
677
633
|
var r, b, N, S;
|
|
678
|
-
const { t: u, i18n: c } =
|
|
634
|
+
const { t: u, i18n: c } = C(), g = D(() => {
|
|
679
635
|
if (e.nextAvailableSlot)
|
|
680
636
|
try {
|
|
681
637
|
return new Intl.DateTimeFormat(c.language, {
|
|
@@ -701,10 +657,10 @@ function xt({
|
|
|
701
657
|
onClick: o,
|
|
702
658
|
onMouseEnter: a,
|
|
703
659
|
onFocus: a,
|
|
704
|
-
className:
|
|
660
|
+
className: _e({ density: "rich" }),
|
|
705
661
|
children: [
|
|
706
662
|
e.location ? /* @__PURE__ */ t(
|
|
707
|
-
|
|
663
|
+
pt,
|
|
708
664
|
{
|
|
709
665
|
apiKey: n,
|
|
710
666
|
center: {
|
|
@@ -716,7 +672,7 @@ function xt({
|
|
|
716
672
|
) : null,
|
|
717
673
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
718
674
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
|
|
719
|
-
/* @__PURE__ */ t(
|
|
675
|
+
/* @__PURE__ */ t(Re, { src: e.imageUrl, name: e.name, size: "md" }),
|
|
720
676
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
721
677
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
722
678
|
/* @__PURE__ */ t(
|
|
@@ -732,7 +688,7 @@ function xt({
|
|
|
732
688
|
e.subtitle ? /* @__PURE__ */ t("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
|
|
733
689
|
(S = e.location) != null && S.address ? /* @__PURE__ */ f("span", { className: "type-meta ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
734
690
|
/* @__PURE__ */ t(
|
|
735
|
-
|
|
691
|
+
te,
|
|
736
692
|
{
|
|
737
693
|
"aria-hidden": "true",
|
|
738
694
|
className: "ds:size-3.5 ds:shrink-0"
|
|
@@ -742,7 +698,7 @@ function xt({
|
|
|
742
698
|
] }) : null
|
|
743
699
|
] }),
|
|
744
700
|
e.rating && e.rating.count > 0 ? /* @__PURE__ */ t(
|
|
745
|
-
|
|
701
|
+
we,
|
|
746
702
|
{
|
|
747
703
|
value: e.rating.value,
|
|
748
704
|
reviews: { count: e.rating.count },
|
|
@@ -752,29 +708,29 @@ function xt({
|
|
|
752
708
|
] }),
|
|
753
709
|
x ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
754
710
|
l ? (e.languages ?? []).map((y) => /* @__PURE__ */ t(
|
|
755
|
-
|
|
711
|
+
$,
|
|
756
712
|
{
|
|
757
713
|
variant: "neutral",
|
|
758
|
-
leading: /* @__PURE__ */ t(
|
|
714
|
+
leading: /* @__PURE__ */ t(ke, { "aria-hidden": "true" }),
|
|
759
715
|
children: y.toUpperCase()
|
|
760
716
|
},
|
|
761
717
|
`lang-${y}`
|
|
762
718
|
)) : null,
|
|
763
719
|
p ? (e.insurances ?? []).map((y) => /* @__PURE__ */ t(
|
|
764
|
-
|
|
720
|
+
$,
|
|
765
721
|
{
|
|
766
722
|
variant: "info",
|
|
767
|
-
leading: /* @__PURE__ */ t(
|
|
723
|
+
leading: /* @__PURE__ */ t(Ne, { "aria-hidden": "true" }),
|
|
768
724
|
children: y
|
|
769
725
|
},
|
|
770
726
|
`ins-${y}`
|
|
771
727
|
)) : null,
|
|
772
|
-
m ? /* @__PURE__ */ t(
|
|
728
|
+
m ? /* @__PURE__ */ t($, { variant: "info", leading: /* @__PURE__ */ t(Se, { "aria-hidden": "true" }), children: u("practiceResults.fearPatient.label") }) : null
|
|
773
729
|
] }) : null,
|
|
774
730
|
e.nextAvailableSlot && g ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
775
731
|
/* @__PURE__ */ f("span", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
776
732
|
/* @__PURE__ */ t(
|
|
777
|
-
|
|
733
|
+
Pe,
|
|
778
734
|
{
|
|
779
735
|
"aria-hidden": "true",
|
|
780
736
|
className: "ds:size-4 ds:text-[var(--primary)]"
|
|
@@ -820,7 +776,7 @@ function xt({
|
|
|
820
776
|
)
|
|
821
777
|
);
|
|
822
778
|
}
|
|
823
|
-
function
|
|
779
|
+
function me({
|
|
824
780
|
results: e,
|
|
825
781
|
highlightedId: n,
|
|
826
782
|
onCardHover: s,
|
|
@@ -835,7 +791,7 @@ function pe({
|
|
|
835
791
|
apiKey: p,
|
|
836
792
|
containerRef: m
|
|
837
793
|
}) {
|
|
838
|
-
const { t: x } =
|
|
794
|
+
const { t: x } = C(), h = A(null);
|
|
839
795
|
return Q(() => {
|
|
840
796
|
if (!u) return;
|
|
841
797
|
const r = h.current;
|
|
@@ -843,7 +799,7 @@ function pe({
|
|
|
843
799
|
const b = new IntersectionObserver(
|
|
844
800
|
(N) => {
|
|
845
801
|
for (const S of N)
|
|
846
|
-
S.isIntersecting && (
|
|
802
|
+
S.isIntersecting && (F("serp_load_more", {
|
|
847
803
|
currentCount: e.length
|
|
848
804
|
}), u());
|
|
849
805
|
},
|
|
@@ -858,7 +814,7 @@ function pe({
|
|
|
858
814
|
"aria-label": x("practiceResults.loading"),
|
|
859
815
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
860
816
|
children: Array.from({ length: 4 }).map((r, b) => /* @__PURE__ */ t(
|
|
861
|
-
|
|
817
|
+
Qe,
|
|
862
818
|
{
|
|
863
819
|
variant: "rounded",
|
|
864
820
|
height: l === "rich" ? "11rem" : "7rem"
|
|
@@ -876,7 +832,7 @@ function pe({
|
|
|
876
832
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:overflow-y-auto",
|
|
877
833
|
children: [
|
|
878
834
|
e.map((r) => /* @__PURE__ */ t("div", { role: "listitem", children: l === "rich" ? /* @__PURE__ */ t(
|
|
879
|
-
|
|
835
|
+
ht,
|
|
880
836
|
{
|
|
881
837
|
result: r,
|
|
882
838
|
apiKey: p,
|
|
@@ -887,7 +843,7 @@ function pe({
|
|
|
887
843
|
openLabel: a
|
|
888
844
|
}
|
|
889
845
|
) : /* @__PURE__ */ t(
|
|
890
|
-
|
|
846
|
+
ft,
|
|
891
847
|
{
|
|
892
848
|
result: r,
|
|
893
849
|
highlighted: n === r.id,
|
|
@@ -904,14 +860,14 @@ function pe({
|
|
|
904
860
|
ref: h,
|
|
905
861
|
"aria-hidden": "true",
|
|
906
862
|
className: "ds:flex ds:items-center ds:justify-center ds:py-[var(--spacing-md)]",
|
|
907
|
-
children: c ? /* @__PURE__ */ t(
|
|
863
|
+
children: c ? /* @__PURE__ */ t(Je, { size: "md", variant: "pulse" }) : /* @__PURE__ */ t("span", { className: "ds:size-1" })
|
|
908
864
|
}
|
|
909
865
|
) : null
|
|
910
866
|
]
|
|
911
867
|
}
|
|
912
868
|
);
|
|
913
869
|
}
|
|
914
|
-
function
|
|
870
|
+
function de({
|
|
915
871
|
results: e,
|
|
916
872
|
searchCentre: n,
|
|
917
873
|
zoom: s,
|
|
@@ -925,7 +881,7 @@ function ue({
|
|
|
925
881
|
onConsentRequest: l,
|
|
926
882
|
mapHandleRef: p
|
|
927
883
|
}) {
|
|
928
|
-
const { t: m } =
|
|
884
|
+
const { t: m } = C(), x = D(
|
|
929
885
|
() => e.filter(
|
|
930
886
|
(r) => !!r.location
|
|
931
887
|
).map((r) => ({
|
|
@@ -937,9 +893,9 @@ function ue({
|
|
|
937
893
|
label: r.name
|
|
938
894
|
})),
|
|
939
895
|
[e]
|
|
940
|
-
), h =
|
|
896
|
+
), h = D(() => {
|
|
941
897
|
if (n) return n;
|
|
942
|
-
const r =
|
|
898
|
+
const r = be(e);
|
|
943
899
|
return r ? {
|
|
944
900
|
lat: (r.north + r.south) / 2,
|
|
945
901
|
lng: (r.east + r.west) / 2
|
|
@@ -947,15 +903,15 @@ function ue({
|
|
|
947
903
|
}, [e, n]);
|
|
948
904
|
return Q(() => {
|
|
949
905
|
if (!c) return;
|
|
950
|
-
const r =
|
|
951
|
-
r && (c(r),
|
|
906
|
+
const r = be(e);
|
|
907
|
+
r && (c(r), F("serp_map_panned", { bounds: r }));
|
|
952
908
|
}, [e, c]), /* @__PURE__ */ t(
|
|
953
909
|
"div",
|
|
954
910
|
{
|
|
955
911
|
"data-component": "practice-results-map-panel",
|
|
956
912
|
className: "ds:relative ds:flex ds:size-full ds:min-h-[24rem] ds:flex-col",
|
|
957
913
|
children: /* @__PURE__ */ t(
|
|
958
|
-
|
|
914
|
+
Ze,
|
|
959
915
|
{
|
|
960
916
|
ref: p,
|
|
961
917
|
apiKey: o ?? "",
|
|
@@ -977,13 +933,13 @@ function ue({
|
|
|
977
933
|
}
|
|
978
934
|
);
|
|
979
935
|
}
|
|
980
|
-
function
|
|
936
|
+
function Ie({
|
|
981
937
|
variantBodyProps: e
|
|
982
938
|
}) {
|
|
983
939
|
const { facets: n, value: s, onChange: o, heading: i, intro: a, totalCount: d, searchCentre: u } = e;
|
|
984
940
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
985
941
|
/* @__PURE__ */ t(
|
|
986
|
-
|
|
942
|
+
Me,
|
|
987
943
|
{
|
|
988
944
|
heading: i,
|
|
989
945
|
intro: a,
|
|
@@ -993,7 +949,7 @@ function Te({
|
|
|
993
949
|
),
|
|
994
950
|
n.length > 0 ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
995
951
|
/* @__PURE__ */ t(
|
|
996
|
-
|
|
952
|
+
Ae,
|
|
997
953
|
{
|
|
998
954
|
facets: n,
|
|
999
955
|
value: s.facets,
|
|
@@ -1001,14 +957,14 @@ function Te({
|
|
|
1001
957
|
}
|
|
1002
958
|
),
|
|
1003
959
|
/* @__PURE__ */ t(
|
|
1004
|
-
|
|
960
|
+
ce,
|
|
1005
961
|
{
|
|
1006
962
|
value: s.sort ?? "relevance",
|
|
1007
963
|
onChange: (c) => o({ ...s, sort: c })
|
|
1008
964
|
}
|
|
1009
965
|
)
|
|
1010
966
|
] }) : /* @__PURE__ */ t("div", { className: "ds:flex ds:justify-end", children: /* @__PURE__ */ t(
|
|
1011
|
-
|
|
967
|
+
ce,
|
|
1012
968
|
{
|
|
1013
969
|
value: s.sort ?? "relevance",
|
|
1014
970
|
onChange: (c) => o({ ...s, sort: c })
|
|
@@ -1016,10 +972,10 @@ function Te({
|
|
|
1016
972
|
) })
|
|
1017
973
|
] });
|
|
1018
974
|
}
|
|
1019
|
-
function
|
|
1020
|
-
const { t: e } =
|
|
975
|
+
function pe() {
|
|
976
|
+
const { t: e } = C();
|
|
1021
977
|
return /* @__PURE__ */ t(
|
|
1022
|
-
|
|
978
|
+
Ge,
|
|
1023
979
|
{
|
|
1024
980
|
variant: "no-results",
|
|
1025
981
|
title: e("practiceResults.empty.title"),
|
|
@@ -1027,8 +983,8 @@ function fe() {
|
|
|
1027
983
|
}
|
|
1028
984
|
);
|
|
1029
985
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const { t: n } =
|
|
986
|
+
function fe({ onRetry: e }) {
|
|
987
|
+
const { t: n } = C();
|
|
1032
988
|
return /* @__PURE__ */ f(Y, { variant: "error", children: [
|
|
1033
989
|
/* @__PURE__ */ t(Y.Title, { as: "h3", children: n("practiceResults.error.title") }),
|
|
1034
990
|
/* @__PURE__ */ t(Y.Description, { children: n("practiceResults.error.description") }),
|
|
@@ -1044,7 +1000,7 @@ function he({ onRetry: e }) {
|
|
|
1044
1000
|
) }) : null
|
|
1045
1001
|
] });
|
|
1046
1002
|
}
|
|
1047
|
-
function
|
|
1003
|
+
function gt(e) {
|
|
1048
1004
|
const {
|
|
1049
1005
|
results: n,
|
|
1050
1006
|
apiKey: s,
|
|
@@ -1064,8 +1020,8 @@ function bt(e) {
|
|
|
1064
1020
|
onConsentRequest: b,
|
|
1065
1021
|
onBoundsChange: N,
|
|
1066
1022
|
listContainerRef: S
|
|
1067
|
-
} = e, { t: y } =
|
|
1068
|
-
|
|
1023
|
+
} = e, { t: y } = C(), [M, _] = ue(!1), I = l ? g ?? /* @__PURE__ */ t(fe, { onRetry: p }) : n.length === 0 && !u ? c ?? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ t(
|
|
1024
|
+
me,
|
|
1069
1025
|
{
|
|
1070
1026
|
results: n,
|
|
1071
1027
|
highlightedId: m,
|
|
@@ -1082,11 +1038,11 @@ function bt(e) {
|
|
|
1082
1038
|
}
|
|
1083
1039
|
);
|
|
1084
1040
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1085
|
-
/* @__PURE__ */ t(
|
|
1041
|
+
/* @__PURE__ */ t(Ie, { variantBodyProps: e }),
|
|
1086
1042
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:lg:grid ds:lg:grid-cols-[55%_45%] ds:lg:gap-[var(--spacing-lg)] ds:lg:items-start", children: [
|
|
1087
1043
|
/* @__PURE__ */ t("div", { className: "ds:min-w-0 ds:lg:max-h-[40rem] ds:lg:overflow-y-auto", children: I }),
|
|
1088
1044
|
/* @__PURE__ */ t("div", { className: "ds:hidden ds:lg:block ds:sticky ds:top-[var(--spacing-md)] ds:h-[40rem]", children: /* @__PURE__ */ t(
|
|
1089
|
-
|
|
1045
|
+
de,
|
|
1090
1046
|
{
|
|
1091
1047
|
results: n,
|
|
1092
1048
|
searchCentre: i,
|
|
@@ -1110,18 +1066,18 @@ function bt(e) {
|
|
|
1110
1066
|
{
|
|
1111
1067
|
intent: "primary",
|
|
1112
1068
|
size: "md",
|
|
1113
|
-
startIcon: /* @__PURE__ */ t(
|
|
1114
|
-
onClick: () =>
|
|
1069
|
+
startIcon: /* @__PURE__ */ t(nt, { "aria-hidden": "true" }),
|
|
1070
|
+
onClick: () => _(!0),
|
|
1115
1071
|
children: y("practiceResults.viewMap")
|
|
1116
1072
|
}
|
|
1117
1073
|
) }),
|
|
1118
|
-
/* @__PURE__ */ t(
|
|
1119
|
-
/* @__PURE__ */ t(
|
|
1120
|
-
/* @__PURE__ */ f(
|
|
1121
|
-
/* @__PURE__ */ t(
|
|
1074
|
+
/* @__PURE__ */ t(z.Root, { open: M, onOpenChange: _, children: /* @__PURE__ */ f(z.Content, { side: "bottom", size: "lg", children: [
|
|
1075
|
+
/* @__PURE__ */ t(z.Header, { children: /* @__PURE__ */ t(z.Title, { children: y("practiceResults.map.label") }) }),
|
|
1076
|
+
/* @__PURE__ */ f(z.Body, { children: [
|
|
1077
|
+
/* @__PURE__ */ t(z.Description, { className: "ds:sr-only", children: y("practiceResults.sheet.description") }),
|
|
1122
1078
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1123
1079
|
/* @__PURE__ */ t("div", { className: "ds:h-[20rem]", children: /* @__PURE__ */ t(
|
|
1124
|
-
|
|
1080
|
+
de,
|
|
1125
1081
|
{
|
|
1126
1082
|
results: n,
|
|
1127
1083
|
searchCentre: i,
|
|
@@ -1145,39 +1101,39 @@ function bt(e) {
|
|
|
1145
1101
|
] }) })
|
|
1146
1102
|
] });
|
|
1147
1103
|
}
|
|
1148
|
-
const
|
|
1104
|
+
const vt = {
|
|
1149
1105
|
peek: "sm",
|
|
1150
1106
|
half: "md",
|
|
1151
1107
|
full: "lg"
|
|
1152
|
-
},
|
|
1108
|
+
}, E = [
|
|
1153
1109
|
"peek",
|
|
1154
1110
|
"half",
|
|
1155
1111
|
"full"
|
|
1156
1112
|
];
|
|
1157
|
-
function
|
|
1158
|
-
const { t: s, i18n: o } =
|
|
1113
|
+
function xt({ value: e, onChange: n }) {
|
|
1114
|
+
const { t: s, i18n: o } = C(), i = o.dir() === "rtl", a = A(
|
|
1159
1115
|
/* @__PURE__ */ new Map()
|
|
1160
1116
|
), d = K((c) => {
|
|
1161
1117
|
var g;
|
|
1162
1118
|
(g = a.current.get(c)) == null || g.focus();
|
|
1163
1119
|
}, []), u = K(
|
|
1164
1120
|
(c, g) => {
|
|
1165
|
-
const l =
|
|
1121
|
+
const l = E.indexOf(g), p = E.length, m = i ? "ArrowLeft" : "ArrowRight", x = i ? "ArrowRight" : "ArrowLeft";
|
|
1166
1122
|
let h = null;
|
|
1167
1123
|
switch (c.key) {
|
|
1168
1124
|
case m:
|
|
1169
1125
|
case "ArrowDown":
|
|
1170
|
-
h =
|
|
1126
|
+
h = E[(l + 1) % p];
|
|
1171
1127
|
break;
|
|
1172
1128
|
case x:
|
|
1173
1129
|
case "ArrowUp":
|
|
1174
|
-
h =
|
|
1130
|
+
h = E[(l - 1 + p) % p];
|
|
1175
1131
|
break;
|
|
1176
1132
|
case "Home":
|
|
1177
|
-
h =
|
|
1133
|
+
h = E[0];
|
|
1178
1134
|
break;
|
|
1179
1135
|
case "End":
|
|
1180
|
-
h =
|
|
1136
|
+
h = E[p - 1];
|
|
1181
1137
|
break;
|
|
1182
1138
|
default:
|
|
1183
1139
|
return;
|
|
@@ -1192,7 +1148,7 @@ function Rt({ value: e, onChange: n }) {
|
|
|
1192
1148
|
role: "radiogroup",
|
|
1193
1149
|
"aria-label": s("practiceResults.sheet.snap.label"),
|
|
1194
1150
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1195
|
-
children:
|
|
1151
|
+
children: E.map((c) => {
|
|
1196
1152
|
const g = e === c;
|
|
1197
1153
|
return /* @__PURE__ */ t(
|
|
1198
1154
|
"button",
|
|
@@ -1218,7 +1174,7 @@ function Rt({ value: e, onChange: n }) {
|
|
|
1218
1174
|
}
|
|
1219
1175
|
);
|
|
1220
1176
|
}
|
|
1221
|
-
function
|
|
1177
|
+
function bt(e) {
|
|
1222
1178
|
const {
|
|
1223
1179
|
results: n,
|
|
1224
1180
|
apiKey: s,
|
|
@@ -1240,9 +1196,9 @@ function wt(e) {
|
|
|
1240
1196
|
listContainerRef: S,
|
|
1241
1197
|
facets: y,
|
|
1242
1198
|
value: M,
|
|
1243
|
-
onChange:
|
|
1244
|
-
} = e, { t: I } =
|
|
1245
|
-
|
|
1199
|
+
onChange: _
|
|
1200
|
+
} = e, { t: I } = C(), [P, V] = ue("half"), U = vt[P], O = We("(min-width: 1024px)"), j = l ? g ?? /* @__PURE__ */ t(fe, { onRetry: p }) : n.length === 0 && !u ? c ?? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ t(
|
|
1201
|
+
me,
|
|
1246
1202
|
{
|
|
1247
1203
|
results: n,
|
|
1248
1204
|
highlightedId: m,
|
|
@@ -1258,8 +1214,8 @@ function wt(e) {
|
|
|
1258
1214
|
apiKey: s,
|
|
1259
1215
|
containerRef: S
|
|
1260
1216
|
}
|
|
1261
|
-
),
|
|
1262
|
-
|
|
1217
|
+
), k = /* @__PURE__ */ t(
|
|
1218
|
+
de,
|
|
1263
1219
|
{
|
|
1264
1220
|
results: n,
|
|
1265
1221
|
searchCentre: i,
|
|
@@ -1277,17 +1233,17 @@ function wt(e) {
|
|
|
1277
1233
|
mapHandleRef: e.mapHandleRef
|
|
1278
1234
|
}
|
|
1279
1235
|
), W = y.length > 0 ? /* @__PURE__ */ t("div", { className: "ds:absolute ds:start-[var(--spacing-md)] ds:top-[var(--spacing-md)] ds:max-w-[calc(100%-var(--spacing-lg))]", children: /* @__PURE__ */ t(
|
|
1280
|
-
|
|
1236
|
+
Ae,
|
|
1281
1237
|
{
|
|
1282
1238
|
facets: y,
|
|
1283
1239
|
value: M.facets,
|
|
1284
|
-
onChange: (R) =>
|
|
1240
|
+
onChange: (R) => _({ ...M, facets: R }),
|
|
1285
1241
|
floating: !0
|
|
1286
1242
|
}
|
|
1287
1243
|
) }) : null;
|
|
1288
1244
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1289
1245
|
/* @__PURE__ */ t(
|
|
1290
|
-
|
|
1246
|
+
Me,
|
|
1291
1247
|
{
|
|
1292
1248
|
heading: e.heading,
|
|
1293
1249
|
intro: e.intro,
|
|
@@ -1312,7 +1268,7 @@ function wt(e) {
|
|
|
1312
1268
|
// chrome show/hide.
|
|
1313
1269
|
/* @__PURE__ */ f("div", { className: "ds:grid ds:grid-cols-[65%_35%] ds:gap-[var(--spacing-lg)] ds:items-start", children: [
|
|
1314
1270
|
/* @__PURE__ */ f("div", { className: "ds:relative ds:h-[calc(100dvh-var(--practice-results-chrome,8rem))] ds:min-h-[40rem]", children: [
|
|
1315
|
-
|
|
1271
|
+
k,
|
|
1316
1272
|
W
|
|
1317
1273
|
] }),
|
|
1318
1274
|
/* @__PURE__ */ t("div", { className: "ds:min-w-0 ds:h-[calc(100dvh-var(--practice-results-chrome,8rem))] ds:min-h-[40rem] ds:overflow-y-auto", children: j })
|
|
@@ -1324,36 +1280,36 @@ function wt(e) {
|
|
|
1324
1280
|
// via the snap radiogroup at the top of the sheet body.
|
|
1325
1281
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1326
1282
|
/* @__PURE__ */ f("div", { className: "ds:relative ds:h-[60vh] ds:min-h-[20rem]", children: [
|
|
1327
|
-
|
|
1283
|
+
k,
|
|
1328
1284
|
W
|
|
1329
1285
|
] }),
|
|
1330
|
-
/* @__PURE__ */ t(
|
|
1331
|
-
|
|
1286
|
+
/* @__PURE__ */ t(z.Root, { open: !0, children: /* @__PURE__ */ t(
|
|
1287
|
+
z.Content,
|
|
1332
1288
|
{
|
|
1333
1289
|
side: "bottom",
|
|
1334
1290
|
size: U,
|
|
1335
1291
|
onEscapeKeyDown: (R) => R.preventDefault(),
|
|
1336
1292
|
onPointerDownOutside: (R) => R.preventDefault(),
|
|
1337
1293
|
onInteractOutside: (R) => R.preventDefault(),
|
|
1338
|
-
children: /* @__PURE__ */ f(
|
|
1339
|
-
/* @__PURE__ */ t(
|
|
1294
|
+
children: /* @__PURE__ */ f(z.Body, { children: [
|
|
1295
|
+
/* @__PURE__ */ t(z.Description, { className: "ds:sr-only", children: I("practiceResults.sheet.descriptionMapFirst") }),
|
|
1340
1296
|
/* @__PURE__ */ f("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: [
|
|
1341
|
-
/* @__PURE__ */ t(
|
|
1297
|
+
/* @__PURE__ */ t(z.Title, { className: "type-title-card ds:m-0 ds:text-[var(--foreground)]", children: I("practiceResults.sheet.title", {
|
|
1342
1298
|
count: e.totalCount ?? n.length
|
|
1343
1299
|
}) }),
|
|
1344
1300
|
/* @__PURE__ */ t(
|
|
1345
|
-
|
|
1301
|
+
xt,
|
|
1346
1302
|
{
|
|
1347
1303
|
value: P,
|
|
1348
|
-
onChange:
|
|
1304
|
+
onChange: V
|
|
1349
1305
|
}
|
|
1350
1306
|
)
|
|
1351
1307
|
] }),
|
|
1352
1308
|
/* @__PURE__ */ t("div", { className: "ds:pb-[var(--spacing-sm)]", children: /* @__PURE__ */ t(
|
|
1353
|
-
|
|
1309
|
+
ce,
|
|
1354
1310
|
{
|
|
1355
1311
|
value: M.sort ?? "relevance",
|
|
1356
|
-
onChange: (R) =>
|
|
1312
|
+
onChange: (R) => _({ ...M, sort: R })
|
|
1357
1313
|
}
|
|
1358
1314
|
) }),
|
|
1359
1315
|
j
|
|
@@ -1364,7 +1320,7 @@ function wt(e) {
|
|
|
1364
1320
|
)
|
|
1365
1321
|
] });
|
|
1366
1322
|
}
|
|
1367
|
-
function
|
|
1323
|
+
function yt(e) {
|
|
1368
1324
|
const {
|
|
1369
1325
|
results: n,
|
|
1370
1326
|
apiKey: s,
|
|
@@ -1378,8 +1334,8 @@ function kt(e) {
|
|
|
1378
1334
|
highlightedId: l,
|
|
1379
1335
|
onCardHover: p,
|
|
1380
1336
|
listContainerRef: m
|
|
1381
|
-
} = e, x = c ? u ?? /* @__PURE__ */ t(
|
|
1382
|
-
|
|
1337
|
+
} = e, x = c ? u ?? /* @__PURE__ */ t(fe, { onRetry: g }) : n.length === 0 && !a ? d ?? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ t(
|
|
1338
|
+
me,
|
|
1383
1339
|
{
|
|
1384
1340
|
results: n,
|
|
1385
1341
|
highlightedId: l,
|
|
@@ -1397,18 +1353,18 @@ function kt(e) {
|
|
|
1397
1353
|
}
|
|
1398
1354
|
);
|
|
1399
1355
|
return /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1400
|
-
/* @__PURE__ */ t(
|
|
1356
|
+
/* @__PURE__ */ t(Ie, { variantBodyProps: e }),
|
|
1401
1357
|
x
|
|
1402
1358
|
] });
|
|
1403
1359
|
}
|
|
1404
|
-
const
|
|
1360
|
+
const Rt = Ue(function({
|
|
1405
1361
|
variant: n = "split-list-map",
|
|
1406
1362
|
results: s,
|
|
1407
1363
|
totalCount: o,
|
|
1408
1364
|
searchCentre: i,
|
|
1409
1365
|
facets: a,
|
|
1410
1366
|
googleMapsApiKey: d,
|
|
1411
|
-
defaultZoom: u =
|
|
1367
|
+
defaultZoom: u = st,
|
|
1412
1368
|
onBoundsChange: c,
|
|
1413
1369
|
consentGranted: g,
|
|
1414
1370
|
onConsentRequest: l,
|
|
@@ -1422,20 +1378,20 @@ const Ct = qe(function({
|
|
|
1422
1378
|
emptyResultsSlot: S,
|
|
1423
1379
|
errorSlot: y,
|
|
1424
1380
|
error: M,
|
|
1425
|
-
onRetry:
|
|
1381
|
+
onRetry: _,
|
|
1426
1382
|
heading: I,
|
|
1427
1383
|
intro: P,
|
|
1428
|
-
cardOpenButtonLabel:
|
|
1384
|
+
cardOpenButtonLabel: V,
|
|
1429
1385
|
"aria-label": U,
|
|
1430
1386
|
id: O,
|
|
1431
1387
|
className: j,
|
|
1432
|
-
...
|
|
1388
|
+
...k
|
|
1433
1389
|
}, W) {
|
|
1434
|
-
const { t: R, i18n:
|
|
1390
|
+
const { t: R, i18n: he } = C(), [Te, Z] = ue(null), X = A(/* @__PURE__ */ new Set()), ne = A(/* @__PURE__ */ new Set()), Fe = A(null), ae = A(null), se = D(
|
|
1435
1391
|
() => ({
|
|
1436
1392
|
getVariant: () => n,
|
|
1437
1393
|
scrollToResult: (v) => {
|
|
1438
|
-
const T =
|
|
1394
|
+
const T = ae.current;
|
|
1439
1395
|
if (!T) return;
|
|
1440
1396
|
const w = T.querySelector(
|
|
1441
1397
|
`[data-component="practice-result-card"][data-result-id="${CSS.escape(v)}"]`
|
|
@@ -1448,12 +1404,12 @@ const Ct = qe(function({
|
|
|
1448
1404
|
}),
|
|
1449
1405
|
[n]
|
|
1450
1406
|
);
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1407
|
+
qe(W, () => se, [se]), Xe(at, se, O);
|
|
1408
|
+
const He = V ?? R("practiceResults.card.open"), $e = K(
|
|
1453
1409
|
(v) => {
|
|
1454
1410
|
if (v.nextAvailableSlot)
|
|
1455
1411
|
try {
|
|
1456
|
-
return new Intl.DateTimeFormat(
|
|
1412
|
+
return new Intl.DateTimeFormat(he.language, {
|
|
1457
1413
|
weekday: "short",
|
|
1458
1414
|
hour: "numeric",
|
|
1459
1415
|
minute: "numeric"
|
|
@@ -1462,52 +1418,52 @@ const Ct = qe(function({
|
|
|
1462
1418
|
return v.nextAvailableSlot.dateTime;
|
|
1463
1419
|
}
|
|
1464
1420
|
},
|
|
1465
|
-
[
|
|
1466
|
-
),
|
|
1421
|
+
[he.language]
|
|
1422
|
+
), ge = A(null);
|
|
1467
1423
|
Q(() => {
|
|
1468
|
-
|
|
1424
|
+
ge.current !== n && (ge.current = n, F("serp_variant_exposed", {
|
|
1469
1425
|
variant: n,
|
|
1470
1426
|
totalCount: o ?? s.length
|
|
1471
|
-
}), X.current = /* @__PURE__ */ new Set(),
|
|
1427
|
+
}), X.current = /* @__PURE__ */ new Set(), ne.current = /* @__PURE__ */ new Set());
|
|
1472
1428
|
}, [n]);
|
|
1473
|
-
const
|
|
1474
|
-
const v =
|
|
1475
|
-
return
|
|
1476
|
-
}, [s, h.facets,
|
|
1429
|
+
const ie = A(!1), re = D(() => a ?? [], [a]), le = h.sort ?? (i ? "distance" : "relevance"), L = D(() => {
|
|
1430
|
+
const v = lt(s, h.facets, re);
|
|
1431
|
+
return ot(v, le, i);
|
|
1432
|
+
}, [s, h.facets, re, le, i]);
|
|
1477
1433
|
Q(() => {
|
|
1478
1434
|
const v = L.length === 0;
|
|
1479
|
-
v && !
|
|
1435
|
+
v && !ie.current ? (F("serp_empty_results", {
|
|
1480
1436
|
appliedFacets: h.facets ?? {}
|
|
1481
|
-
}),
|
|
1437
|
+
}), ie.current = !0) : v || (ie.current = !1);
|
|
1482
1438
|
}, [L.length, h.facets]);
|
|
1483
|
-
const B = A(null),
|
|
1439
|
+
const B = A(null), ve = A(null);
|
|
1484
1440
|
Q(
|
|
1485
1441
|
() => () => {
|
|
1486
1442
|
B.current && clearTimeout(B.current);
|
|
1487
1443
|
},
|
|
1488
1444
|
[]
|
|
1489
1445
|
);
|
|
1490
|
-
const
|
|
1491
|
-
Z(v), !X.current.has(v) && (
|
|
1492
|
-
X.current.has(v) || (X.current.add(v),
|
|
1446
|
+
const De = K((v) => {
|
|
1447
|
+
Z(v), !X.current.has(v) && (ve.current === v && B.current || (B.current && clearTimeout(B.current), ve.current = v, B.current = setTimeout(() => {
|
|
1448
|
+
X.current.has(v) || (X.current.add(v), F("serp_result_hovered_card", { resultId: v })), B.current = null;
|
|
1493
1449
|
}, 500)));
|
|
1494
|
-
}, []),
|
|
1450
|
+
}, []), Oe = K((v) => {
|
|
1495
1451
|
Z(v);
|
|
1496
|
-
const T =
|
|
1452
|
+
const T = ae.current;
|
|
1497
1453
|
if (!T) return;
|
|
1498
1454
|
const w = T.querySelector(
|
|
1499
1455
|
`[data-component="practice-result-card"][data-result-id="${CSS.escape(v)}"]`
|
|
1500
1456
|
);
|
|
1501
1457
|
w == null || w.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
1502
|
-
}, []),
|
|
1503
|
-
|
|
1504
|
-
}, []),
|
|
1458
|
+
}, []), Le = K((v) => {
|
|
1459
|
+
ne.current.has(v) || (ne.current.add(v), F("serp_result_hovered_pin", { resultId: v }));
|
|
1460
|
+
}, []), xe = A(null), Ke = K(
|
|
1505
1461
|
(v) => {
|
|
1506
1462
|
Z(v);
|
|
1507
1463
|
const T = L.find((w) => w.id === v);
|
|
1508
1464
|
if (T) {
|
|
1509
1465
|
if (T.location) {
|
|
1510
|
-
const w =
|
|
1466
|
+
const w = xe.current;
|
|
1511
1467
|
w == null || w.panTo({
|
|
1512
1468
|
lat: T.location.lat,
|
|
1513
1469
|
lng: T.location.lng
|
|
@@ -1517,7 +1473,7 @@ const Ct = qe(function({
|
|
|
1517
1473
|
}
|
|
1518
1474
|
},
|
|
1519
1475
|
[L, b]
|
|
1520
|
-
),
|
|
1476
|
+
), je = K(
|
|
1521
1477
|
(v) => {
|
|
1522
1478
|
J(
|
|
1523
1479
|
L,
|
|
@@ -1527,12 +1483,12 @@ const Ct = qe(function({
|
|
|
1527
1483
|
);
|
|
1528
1484
|
},
|
|
1529
1485
|
[L, b]
|
|
1530
|
-
),
|
|
1486
|
+
), Be = !!N && s.length === 0, oe = {
|
|
1531
1487
|
results: L,
|
|
1532
1488
|
totalCount: o,
|
|
1533
1489
|
searchCentre: i,
|
|
1534
|
-
facets:
|
|
1535
|
-
value: { ...h, sort:
|
|
1490
|
+
facets: re,
|
|
1491
|
+
value: { ...h, sort: le },
|
|
1536
1492
|
onChange: r,
|
|
1537
1493
|
onResultSelect: b,
|
|
1538
1494
|
onLoadMore: m,
|
|
@@ -1547,53 +1503,53 @@ const Ct = qe(function({
|
|
|
1547
1503
|
consentGranted: p ? !0 : g,
|
|
1548
1504
|
onConsentRequest: p ? void 0 : l,
|
|
1549
1505
|
onBoundsChange: c,
|
|
1550
|
-
loadingSkeletons:
|
|
1506
|
+
loadingSkeletons: Be,
|
|
1551
1507
|
emptyResultsSlot: S,
|
|
1552
1508
|
errorSlot: y,
|
|
1553
1509
|
error: M,
|
|
1554
|
-
onRetry:
|
|
1510
|
+
onRetry: _,
|
|
1555
1511
|
heading: I,
|
|
1556
1512
|
intro: P,
|
|
1557
|
-
highlightedId:
|
|
1558
|
-
onCardHover:
|
|
1559
|
-
onPinClick:
|
|
1560
|
-
onPinFirstInteract:
|
|
1561
|
-
onCardSelect:
|
|
1562
|
-
onCardOpenClick:
|
|
1563
|
-
openLabel:
|
|
1564
|
-
formatNextSlot:
|
|
1513
|
+
highlightedId: Te,
|
|
1514
|
+
onCardHover: De,
|
|
1515
|
+
onPinClick: Oe,
|
|
1516
|
+
onPinFirstInteract: Le,
|
|
1517
|
+
onCardSelect: Ke,
|
|
1518
|
+
onCardOpenClick: je,
|
|
1519
|
+
openLabel: He,
|
|
1520
|
+
formatNextSlot: $e,
|
|
1565
1521
|
listContainerRef: Fe,
|
|
1566
|
-
mapHandleRef:
|
|
1522
|
+
mapHandleRef: xe
|
|
1567
1523
|
}, Ee = (() => {
|
|
1568
1524
|
switch (n) {
|
|
1569
1525
|
case "map-first":
|
|
1570
|
-
return /* @__PURE__ */ t(
|
|
1526
|
+
return /* @__PURE__ */ t(bt, { ...oe });
|
|
1571
1527
|
case "rich-cards":
|
|
1572
|
-
return /* @__PURE__ */ t(
|
|
1528
|
+
return /* @__PURE__ */ t(yt, { ...oe });
|
|
1573
1529
|
case "split-list-map":
|
|
1574
1530
|
default:
|
|
1575
|
-
return /* @__PURE__ */ t(
|
|
1531
|
+
return /* @__PURE__ */ t(gt, { ...oe });
|
|
1576
1532
|
}
|
|
1577
|
-
})(),
|
|
1533
|
+
})(), Ve = U ?? R("practiceResults.regionLabel");
|
|
1578
1534
|
return /* @__PURE__ */ t(
|
|
1579
1535
|
"div",
|
|
1580
1536
|
{
|
|
1581
|
-
ref:
|
|
1537
|
+
ref: ae,
|
|
1582
1538
|
role: "region",
|
|
1583
|
-
"aria-label":
|
|
1539
|
+
"aria-label": Ve,
|
|
1584
1540
|
id: O,
|
|
1585
1541
|
"data-component": "practice-results",
|
|
1586
1542
|
"data-component-id": O,
|
|
1587
1543
|
"data-variant": n,
|
|
1588
|
-
className:
|
|
1589
|
-
...
|
|
1544
|
+
className: ct({ variant: n, className: j }),
|
|
1545
|
+
...k,
|
|
1590
1546
|
children: Ee
|
|
1591
1547
|
}
|
|
1592
1548
|
);
|
|
1593
1549
|
});
|
|
1594
|
-
|
|
1550
|
+
Rt.displayName = "PracticeResults";
|
|
1595
1551
|
export {
|
|
1596
|
-
|
|
1597
|
-
|
|
1552
|
+
Rt as P,
|
|
1553
|
+
at as p
|
|
1598
1554
|
};
|
|
1599
|
-
//# sourceMappingURL=practice-results-
|
|
1555
|
+
//# sourceMappingURL=practice-results-VqbCUO1b.js.map
|