@alfadocs/ui-kit 1.13.0 → 1.15.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.
- package/dist/_chunks/actions-cell-renderer-yy03OgRL.js +137 -0
- package/dist/_chunks/{balance-badge-cell--iQ_gtmi.js → balance-badge-cell-CgkxYO96.js} +7 -6
- package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
- package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
- package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
- package/dist/_chunks/calendar-workspace-CGuY4kmv.js +7480 -0
- package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
- package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
- package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
- package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
- package/dist/_chunks/{file-manager-UsD8e_AB.js → file-manager-DJMeB3V8.js} +138 -153
- package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
- package/dist/_chunks/{patient-details-BQaUzPqp.js → patient-details-BfzvFnxQ.js} +73 -92
- package/dist/_chunks/{patient-summary-card-CvDxhbBR.js → patient-summary-card-D5Vfa321.js} +2 -2
- package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
- package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
- package/dist/_chunks/signature-CpFNpsVK.js +21 -0
- package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
- package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
- package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
- package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
- package/dist/_chunks/{workflow-map-wcw3t6g4.js → workflow-map-dNzJjBWG.js} +103 -112
- package/dist/agent-catalog.json +867 -1
- package/dist/agent-i18n/en.json +27 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/data-table/index.js +39 -38
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/toast/index.js +7 -6
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +680 -0
- package/dist/i18n/locales/ar.js +680 -0
- package/dist/i18n/locales/de.d.ts +680 -0
- package/dist/i18n/locales/de.js +680 -0
- package/dist/i18n/locales/el.d.ts +680 -0
- package/dist/i18n/locales/el.js +680 -0
- package/dist/i18n/locales/en.d.ts +680 -0
- package/dist/i18n/locales/en.js +680 -0
- package/dist/i18n/locales/es.d.ts +680 -0
- package/dist/i18n/locales/es.js +680 -0
- package/dist/i18n/locales/fr.d.ts +680 -0
- package/dist/i18n/locales/fr.js +680 -0
- package/dist/i18n/locales/hi.d.ts +680 -0
- package/dist/i18n/locales/hi.js +680 -0
- package/dist/i18n/locales/it.d.ts +680 -0
- package/dist/i18n/locales/it.js +680 -0
- package/dist/i18n/locales/ja.d.ts +680 -0
- package/dist/i18n/locales/ja.js +680 -0
- package/dist/i18n/locales/nl.d.ts +680 -0
- package/dist/i18n/locales/nl.js +680 -0
- package/dist/i18n/locales/pl.d.ts +680 -0
- package/dist/i18n/locales/pl.js +680 -0
- package/dist/i18n/locales/pt.d.ts +680 -0
- package/dist/i18n/locales/pt.js +680 -0
- package/dist/i18n/locales/ro.d.ts +680 -0
- package/dist/i18n/locales/ro.js +680 -0
- package/dist/i18n/locales/ru.d.ts +680 -0
- package/dist/i18n/locales/ru.js +680 -0
- package/dist/i18n/locales/sq.d.ts +680 -0
- package/dist/i18n/locales/sq.js +680 -0
- package/dist/i18n/locales/sv.d.ts +680 -0
- package/dist/i18n/locales/sv.js +680 -0
- package/dist/i18n/locales/tr.d.ts +680 -0
- package/dist/i18n/locales/tr.js +680 -0
- package/dist/i18n/locales/zh.d.ts +680 -0
- package/dist/i18n/locales/zh.js +680 -0
- package/dist/index.js +821 -803
- package/dist/locales/ar.json +680 -0
- package/dist/locales/de.json +680 -0
- package/dist/locales/el.json +680 -0
- package/dist/locales/en.json +680 -0
- package/dist/locales/es.json +680 -0
- package/dist/locales/fr.json +680 -0
- package/dist/locales/hi.json +680 -0
- package/dist/locales/it.json +680 -0
- package/dist/locales/ja.json +680 -0
- package/dist/locales/nl.json +680 -0
- package/dist/locales/pl.json +680 -0
- package/dist/locales/pt.json +680 -0
- package/dist/locales/ro.json +680 -0
- package/dist/locales/ru.json +680 -0
- package/dist/locales/sq.json +680 -0
- package/dist/locales/sv.json +680 -0
- package/dist/locales/tr.json +680 -0
- package/dist/locales/zh.json +680 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +82 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +380 -0
- package/dist/patterns/calendar/calendar.data.d.ts +122 -0
- package/dist/patterns/calendar/calendar.host.d.ts +10 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
- package/dist/patterns/calendar/calendar.model.d.ts +684 -0
- package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
- package/dist/patterns/calendar/calendar.surface.d.ts +85 -0
- package/dist/patterns/calendar/calendar.types.d.ts +413 -0
- package/dist/patterns/calendar/index.d.ts +13 -0
- package/dist/patterns/calendar/index.js +19 -0
- package/package.json +5 -1
- package/dist/_chunks/actions-cell-renderer-ReurEy5i.js +0 -1945
|
@@ -1,49 +1,36 @@
|
|
|
1
|
-
import { jsx as t, jsxs as p, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as et } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as tt, useState as me, useRef as M, useMemo as B, useImperativeHandle as nt, useCallback as D, useEffect as W } from "react";
|
|
3
3
|
import { c as j } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as C } from "react-i18next";
|
|
5
5
|
import { A as Y } from "./alert-CiJT540z.js";
|
|
6
6
|
import { A as Re } from "./avatar-BNQNhoyL.js";
|
|
7
7
|
import { B as ee } from "./button-nJaPh_HC.js";
|
|
8
|
-
import { D } from "./dropdown-menu-DU-Hrf33.js";
|
|
9
|
-
import { E as
|
|
10
|
-
import { M as
|
|
8
|
+
import { D as $ } from "./dropdown-menu-DU-Hrf33.js";
|
|
9
|
+
import { E as at } from "./empty-state-X0sVPfVo.js";
|
|
10
|
+
import { M as st } from "./map-view-CCAlC9IL.js";
|
|
11
11
|
import { R as Ne } from "./rating-BYbUowdK.js";
|
|
12
|
-
import { S as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
12
|
+
import { S as I } from "./sheet-BSznOyJs.js";
|
|
13
|
+
import { S as it } from "./skeleton-CZbwyJAA.js";
|
|
14
|
+
import { S as rt } from "./spinner-hbwuKwMf.js";
|
|
15
15
|
import { B as O } from "./badge-sTusUqZD.js";
|
|
16
|
-
import { u as
|
|
17
|
-
import { L as Se, f as
|
|
18
|
-
import { u as
|
|
19
|
-
import { c as
|
|
16
|
+
import { u as ot } from "./use-media-query-CcAx5SMM.js";
|
|
17
|
+
import { L as Se, f as ct, B as lt } from "./format-price-DNqXPa_q.js";
|
|
18
|
+
import { u as dt } from "./registry-DvAUVLHh.js";
|
|
19
|
+
import { c as ut } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
20
|
import { R as pt } from "./refresh-cw-DnI0cLFC.js";
|
|
21
|
-
import { C as
|
|
21
|
+
import { C as Pe } from "./chevron-down-DWE7GSq9.js";
|
|
22
22
|
import { M as ne } from "./map-pin-BaY37-Km.js";
|
|
23
23
|
import { S as Ae } from "./shield-check-DCJALLVh.js";
|
|
24
|
-
import { H as
|
|
24
|
+
import { H as Me } from "./heart--qCA4ffe.js";
|
|
25
25
|
import { C as mt } from "./calendar-clock-hbObjfGY.js";
|
|
26
|
+
import { C as ft } from "./calendar-plus-BFrIRE4r.js";
|
|
26
27
|
/**
|
|
27
28
|
* @license lucide-react v1.22.0 - ISC
|
|
28
29
|
*
|
|
29
30
|
* This source code is licensed under the ISC license.
|
|
30
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
32
|
*/
|
|
32
|
-
const
|
|
33
|
-
["path", { d: "M16 19h6", key: "xwg31i" }],
|
|
34
|
-
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
35
|
-
["path", { d: "M19 16v6", key: "tddt3s" }],
|
|
36
|
-
["path", { d: "M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5", key: "1glfrc" }],
|
|
37
|
-
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
38
|
-
["path", { d: "M8 2v4", key: "1cmpym" }]
|
|
39
|
-
], ht = Pe("calendar-plus", ft);
|
|
40
|
-
/**
|
|
41
|
-
* @license lucide-react v1.22.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/
|
|
46
|
-
const gt = [
|
|
33
|
+
const ht = [
|
|
47
34
|
[
|
|
48
35
|
"path",
|
|
49
36
|
{
|
|
@@ -53,7 +40,7 @@ const gt = [
|
|
|
53
40
|
],
|
|
54
41
|
["path", { d: "M15 5.764v15", key: "1pn4in" }],
|
|
55
42
|
["path", { d: "M9 3.236v15", key: "1uimfh" }]
|
|
56
|
-
],
|
|
43
|
+
], gt = ut("map", ht), vt = {
|
|
57
44
|
id: "practice-results",
|
|
58
45
|
// `scroll` backs scroll_to_result; `pick` backs focus_pin (a non-persisting
|
|
59
46
|
// pin highlight). The active variant is consumer-owned via props, so there is
|
|
@@ -132,7 +119,7 @@ const gt = [
|
|
|
132
119
|
description: 'Stable result id emitted on each rendered result card. Used by scroll_to_result / focus_pin to address a single result. Each card also carries two anchors: data-component="practice-result-open-cta" (practice page) 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", and data-component="practice-result-price" (the kit-formatted first-visit cost — present only when the practice set one).'
|
|
133
120
|
}
|
|
134
121
|
}
|
|
135
|
-
},
|
|
122
|
+
}, bt = 13, yt = [
|
|
136
123
|
"distance",
|
|
137
124
|
"rating",
|
|
138
125
|
"next-available",
|
|
@@ -156,11 +143,11 @@ function Q(e, n, s, r) {
|
|
|
156
143
|
const a = e[i];
|
|
157
144
|
a && (F("serp_result_clicked", { resultId: n, source: s, position: i }), r(a, s));
|
|
158
145
|
}
|
|
159
|
-
function
|
|
146
|
+
function xt(e, n) {
|
|
160
147
|
const r = (n.lat - e.lat) * Math.PI / 180, i = (n.lng - e.lng) * Math.PI / 180, a = e.lat * Math.PI / 180, l = n.lat * Math.PI / 180, d = Math.sin(r / 2), c = Math.sin(i / 2), u = d * d + Math.cos(a) * Math.cos(l) * c * c;
|
|
161
148
|
return 2 * 6371 * Math.asin(Math.min(1, Math.sqrt(u)));
|
|
162
149
|
}
|
|
163
|
-
function
|
|
150
|
+
function kt(e, n, s) {
|
|
164
151
|
var i;
|
|
165
152
|
const r = [];
|
|
166
153
|
for (const a of e) {
|
|
@@ -171,7 +158,7 @@ function Ct(e, n, s) {
|
|
|
171
158
|
}
|
|
172
159
|
return r;
|
|
173
160
|
}
|
|
174
|
-
function
|
|
161
|
+
function Ct(e, n, s) {
|
|
175
162
|
return !n || Object.keys(n).length === 0 ? e : e.filter((r) => {
|
|
176
163
|
for (const i of s) {
|
|
177
164
|
const a = n[i.key];
|
|
@@ -186,9 +173,9 @@ function wt(e, n, s) {
|
|
|
186
173
|
return !0;
|
|
187
174
|
});
|
|
188
175
|
}
|
|
189
|
-
function
|
|
176
|
+
function wt(e, n, s) {
|
|
190
177
|
const r = e.map((a) => {
|
|
191
|
-
const l = a.location ? a.location.distanceKm ?? (s ?
|
|
178
|
+
const l = a.location ? a.location.distanceKm ?? (s ? xt(s, a.location) : void 0) : void 0;
|
|
192
179
|
return { result: a, distanceKm: l };
|
|
193
180
|
}), i = (a, l) => {
|
|
194
181
|
var d, c, u, o;
|
|
@@ -226,7 +213,7 @@ function Ce(e) {
|
|
|
226
213
|
if (a)
|
|
227
214
|
return { north: n, south: s, east: r, west: i };
|
|
228
215
|
}
|
|
229
|
-
const
|
|
216
|
+
const Rt = j(
|
|
230
217
|
"ds:flex ds:w-full ds:flex-col ds:text-[var(--foreground)] ds:gap-[var(--spacing-md)]",
|
|
231
218
|
{
|
|
232
219
|
variants: {
|
|
@@ -239,7 +226,7 @@ const Nt = j(
|
|
|
239
226
|
defaultVariants: { variant: "split-list-map" }
|
|
240
227
|
}
|
|
241
228
|
);
|
|
242
|
-
function
|
|
229
|
+
function _e({
|
|
243
230
|
heading: e,
|
|
244
231
|
intro: n,
|
|
245
232
|
totalCount: s,
|
|
@@ -286,7 +273,7 @@ const te = j(
|
|
|
286
273
|
},
|
|
287
274
|
defaultVariants: { state: "idle" }
|
|
288
275
|
}
|
|
289
|
-
),
|
|
276
|
+
), Nt = j(
|
|
290
277
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
291
278
|
{
|
|
292
279
|
variants: {
|
|
@@ -305,7 +292,7 @@ const te = j(
|
|
|
305
292
|
},
|
|
306
293
|
defaultVariants: { placement: "inline" }
|
|
307
294
|
}
|
|
308
|
-
),
|
|
295
|
+
), St = j(
|
|
309
296
|
[
|
|
310
297
|
"ds:ms-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
311
298
|
"ds:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
@@ -316,7 +303,7 @@ const te = j(
|
|
|
316
303
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
317
304
|
].join(" ")
|
|
318
305
|
);
|
|
319
|
-
function
|
|
306
|
+
function Te({
|
|
320
307
|
facets: e,
|
|
321
308
|
value: n,
|
|
322
309
|
onChange: s,
|
|
@@ -343,7 +330,7 @@ function ze({
|
|
|
343
330
|
"data-component": "practice-results-filters",
|
|
344
331
|
role: "group",
|
|
345
332
|
"aria-label": i("practiceResults.filters.label"),
|
|
346
|
-
className:
|
|
333
|
+
className: Nt({
|
|
347
334
|
placement: r ? "floating" : "inline"
|
|
348
335
|
}),
|
|
349
336
|
children: [
|
|
@@ -365,8 +352,8 @@ function ze({
|
|
|
365
352
|
o.key
|
|
366
353
|
);
|
|
367
354
|
const b = x ? ` (${f.length})` : "";
|
|
368
|
-
return /* @__PURE__ */ p(
|
|
369
|
-
/* @__PURE__ */ t(
|
|
355
|
+
return /* @__PURE__ */ p($.Root, { children: [
|
|
356
|
+
/* @__PURE__ */ t($.Trigger, { asChild: !0, children: /* @__PURE__ */ p(
|
|
370
357
|
"button",
|
|
371
358
|
{
|
|
372
359
|
type: "button",
|
|
@@ -380,7 +367,7 @@ function ze({
|
|
|
380
367
|
b
|
|
381
368
|
] }),
|
|
382
369
|
/* @__PURE__ */ t(
|
|
383
|
-
|
|
370
|
+
Pe,
|
|
384
371
|
{
|
|
385
372
|
"aria-hidden": "true",
|
|
386
373
|
className: "ds:size-3.5 ds:shrink-0"
|
|
@@ -389,8 +376,8 @@ function ze({
|
|
|
389
376
|
]
|
|
390
377
|
}
|
|
391
378
|
) }),
|
|
392
|
-
/* @__PURE__ */ t(
|
|
393
|
-
|
|
379
|
+
/* @__PURE__ */ t($.Content, { sideOffset: 8, align: "start", children: o.options.map((y) => /* @__PURE__ */ t(
|
|
380
|
+
$.CheckboxItem,
|
|
394
381
|
{
|
|
395
382
|
checked: f.includes(y.value),
|
|
396
383
|
onSelect: (h) => {
|
|
@@ -409,7 +396,7 @@ function ze({
|
|
|
409
396
|
onClick: () => {
|
|
410
397
|
s({}), F("serp_filter_changed", { key: "*", values: [] });
|
|
411
398
|
},
|
|
412
|
-
className:
|
|
399
|
+
className: St(),
|
|
413
400
|
children: i("practiceResults.filters.clear")
|
|
414
401
|
}
|
|
415
402
|
) : null
|
|
@@ -431,8 +418,8 @@ function ue({ value: e, onChange: n }) {
|
|
|
431
418
|
return s("practiceResults.sort.relevance");
|
|
432
419
|
}
|
|
433
420
|
};
|
|
434
|
-
return /* @__PURE__ */ p(
|
|
435
|
-
/* @__PURE__ */ t(
|
|
421
|
+
return /* @__PURE__ */ p($.Root, { children: [
|
|
422
|
+
/* @__PURE__ */ t($.Trigger, { asChild: !0, children: /* @__PURE__ */ p(
|
|
436
423
|
"button",
|
|
437
424
|
{
|
|
438
425
|
type: "button",
|
|
@@ -444,24 +431,24 @@ function ue({ value: e, onChange: n }) {
|
|
|
444
431
|
": ",
|
|
445
432
|
r(e)
|
|
446
433
|
] }),
|
|
447
|
-
/* @__PURE__ */ t(
|
|
434
|
+
/* @__PURE__ */ t(Pe, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" })
|
|
448
435
|
]
|
|
449
436
|
}
|
|
450
437
|
) }),
|
|
451
|
-
/* @__PURE__ */ t(
|
|
452
|
-
|
|
438
|
+
/* @__PURE__ */ t($.Content, { sideOffset: 8, align: "end", children: /* @__PURE__ */ t(
|
|
439
|
+
$.RadioGroup,
|
|
453
440
|
{
|
|
454
441
|
value: e,
|
|
455
442
|
onValueChange: (i) => {
|
|
456
443
|
const a = i;
|
|
457
444
|
a !== e && (n(a), F("serp_sort_changed", { sort: a }));
|
|
458
445
|
},
|
|
459
|
-
children:
|
|
446
|
+
children: yt.map((i) => /* @__PURE__ */ t($.RadioItem, { value: i, children: r(i) }, i))
|
|
460
447
|
}
|
|
461
448
|
) })
|
|
462
449
|
] });
|
|
463
450
|
}
|
|
464
|
-
function
|
|
451
|
+
function ze({ distanceKm: e }) {
|
|
465
452
|
const { t: n, i18n: s } = C(), r = B(() => {
|
|
466
453
|
if (e < 1) return n("practiceResults.distance.below");
|
|
467
454
|
const i = new Intl.NumberFormat(s.language, {
|
|
@@ -490,7 +477,7 @@ const we = j(
|
|
|
490
477
|
defaultVariants: { state: "placeholder" }
|
|
491
478
|
}
|
|
492
479
|
);
|
|
493
|
-
function
|
|
480
|
+
function Pt() {
|
|
494
481
|
if (typeof document > "u") return "4945a3";
|
|
495
482
|
const e = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), n = /^#?([0-9a-fA-F]{6})$/.exec(e);
|
|
496
483
|
return n ? n[1] : "4945a3";
|
|
@@ -514,7 +501,7 @@ function At({
|
|
|
514
501
|
]
|
|
515
502
|
}
|
|
516
503
|
);
|
|
517
|
-
const a =
|
|
504
|
+
const a = Pt(), l = `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)}`;
|
|
518
505
|
return /* @__PURE__ */ t(
|
|
519
506
|
"img",
|
|
520
507
|
{
|
|
@@ -528,7 +515,7 @@ function At({
|
|
|
528
515
|
}
|
|
529
516
|
);
|
|
530
517
|
}
|
|
531
|
-
function
|
|
518
|
+
function Le({ tagline: e }) {
|
|
532
519
|
return e ? /* @__PURE__ */ t(
|
|
533
520
|
"span",
|
|
534
521
|
{
|
|
@@ -538,7 +525,7 @@ function Fe({ tagline: e }) {
|
|
|
538
525
|
}
|
|
539
526
|
) : null;
|
|
540
527
|
}
|
|
541
|
-
const
|
|
528
|
+
const Mt = j(
|
|
542
529
|
"type-body-sm ds:m-0 ds:text-[var(--muted-foreground)] ds:whitespace-pre-line ds:break-words",
|
|
543
530
|
{
|
|
544
531
|
variants: {
|
|
@@ -550,7 +537,7 @@ const _t = j(
|
|
|
550
537
|
defaultVariants: { density: "compact" }
|
|
551
538
|
}
|
|
552
539
|
);
|
|
553
|
-
function
|
|
540
|
+
function Fe({
|
|
554
541
|
description: e,
|
|
555
542
|
density: n
|
|
556
543
|
}) {
|
|
@@ -558,17 +545,17 @@ function Be({
|
|
|
558
545
|
"p",
|
|
559
546
|
{
|
|
560
547
|
"data-component": "practice-result-description",
|
|
561
|
-
className:
|
|
548
|
+
className: Mt({ density: n }),
|
|
562
549
|
children: e
|
|
563
550
|
}
|
|
564
551
|
) : null;
|
|
565
552
|
}
|
|
566
|
-
function
|
|
553
|
+
function Be({
|
|
567
554
|
cents: e,
|
|
568
555
|
currencyCode: n = "EUR"
|
|
569
556
|
}) {
|
|
570
557
|
const { t: s, i18n: r } = C(), i = B(
|
|
571
|
-
() => e == null ? void 0 :
|
|
558
|
+
() => e == null ? void 0 : ct(e, n, r.language ?? "en"),
|
|
572
559
|
[e, n, r.language]
|
|
573
560
|
);
|
|
574
561
|
return i === void 0 ? null : /* @__PURE__ */ p(
|
|
@@ -578,7 +565,7 @@ function He({
|
|
|
578
565
|
className: "type-body-sm ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[var(--muted-foreground)]",
|
|
579
566
|
children: [
|
|
580
567
|
/* @__PURE__ */ t(
|
|
581
|
-
|
|
568
|
+
lt,
|
|
582
569
|
{
|
|
583
570
|
"aria-hidden": "true",
|
|
584
571
|
className: "ds:size-4 ds:shrink-0 ds:text-[var(--primary)]"
|
|
@@ -591,7 +578,7 @@ function He({
|
|
|
591
578
|
}
|
|
592
579
|
);
|
|
593
580
|
}
|
|
594
|
-
function
|
|
581
|
+
function He({ time: e }) {
|
|
595
582
|
const { t: n } = C();
|
|
596
583
|
return /* @__PURE__ */ p("span", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
597
584
|
/* @__PURE__ */ t(
|
|
@@ -636,7 +623,7 @@ function De({
|
|
|
636
623
|
intent: "primary",
|
|
637
624
|
size: "sm",
|
|
638
625
|
asChild: !0,
|
|
639
|
-
startIcon: /* @__PURE__ */ t(
|
|
626
|
+
startIcon: /* @__PURE__ */ t(ft, { "aria-hidden": "true" }),
|
|
640
627
|
onClick: (o) => {
|
|
641
628
|
o.stopPropagation(), a();
|
|
642
629
|
},
|
|
@@ -657,7 +644,7 @@ function De({
|
|
|
657
644
|
)
|
|
658
645
|
] });
|
|
659
646
|
}
|
|
660
|
-
const
|
|
647
|
+
const $e = j(
|
|
661
648
|
[
|
|
662
649
|
"ds:relative ds:flex ds:w-full ds:cursor-pointer",
|
|
663
650
|
"ds:rounded-[var(--radius-lg)]",
|
|
@@ -702,7 +689,7 @@ function It({
|
|
|
702
689
|
children: f
|
|
703
690
|
}) {
|
|
704
691
|
var q, U, G, H, V, Z;
|
|
705
|
-
const { t: x, i18n: b } = C(), y = e.rating, h = (q = e.location) == null ? void 0 : q.distanceKm, g = (((U = e.languages) == null ? void 0 : U.length) ?? 0) > 0, R = (((G = e.insurances) == null ? void 0 : G.length) ?? 0) > 0, P = e.specializedInFearPatients, N = g || R || P, w = (e.languages ?? []).slice(0, m),
|
|
692
|
+
const { t: x, i18n: b } = C(), y = e.rating, h = (q = e.location) == null ? void 0 : q.distanceKm, g = (((U = e.languages) == null ? void 0 : U.length) ?? 0) > 0, R = (((G = e.insurances) == null ? void 0 : G.length) ?? 0) > 0, P = e.specializedInFearPatients, N = g || R || P, w = (e.languages ?? []).slice(0, m), _ = (((H = e.languages) == null ? void 0 : H.length) ?? 0) - w.length, T = (e.insurances ?? []).slice(0, o), A = (((V = e.insurances) == null ? void 0 : V.length) ?? 0) - T.length;
|
|
706
693
|
return (
|
|
707
694
|
// 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.
|
|
708
695
|
/* @__PURE__ */ p(
|
|
@@ -716,7 +703,7 @@ function It({
|
|
|
716
703
|
onClick: s,
|
|
717
704
|
onMouseEnter: i,
|
|
718
705
|
onFocus: i,
|
|
719
|
-
className:
|
|
706
|
+
className: $e({ density: a }),
|
|
720
707
|
children: [
|
|
721
708
|
/* @__PURE__ */ t(Re, { src: e.imageUrl, name: e.name, size: "lg" }),
|
|
722
709
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -730,10 +717,10 @@ function It({
|
|
|
730
717
|
children: e.name
|
|
731
718
|
}
|
|
732
719
|
),
|
|
733
|
-
h != null ? /* @__PURE__ */ t(
|
|
720
|
+
h != null ? /* @__PURE__ */ t(ze, { distanceKm: h }) : null
|
|
734
721
|
] }),
|
|
735
722
|
e.subtitle ? /* @__PURE__ */ t("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
|
|
736
|
-
/* @__PURE__ */ t(
|
|
723
|
+
/* @__PURE__ */ t(Le, { tagline: e.tagline }),
|
|
737
724
|
(Z = e.location) != null && Z.address ? /* @__PURE__ */ p("span", { className: "type-meta ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
738
725
|
/* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
739
726
|
e.location.address
|
|
@@ -757,7 +744,7 @@ function It({
|
|
|
757
744
|
},
|
|
758
745
|
`lang-${k}`
|
|
759
746
|
)),
|
|
760
|
-
|
|
747
|
+
_ > 0 ? /* @__PURE__ */ t(O, { variant: "neutral", children: `+${_}` }) : null,
|
|
761
748
|
T.map((k) => /* @__PURE__ */ t(
|
|
762
749
|
O,
|
|
763
750
|
{
|
|
@@ -767,18 +754,18 @@ function It({
|
|
|
767
754
|
},
|
|
768
755
|
`ins-${k}`
|
|
769
756
|
)),
|
|
770
|
-
|
|
771
|
-
P ? /* @__PURE__ */ t(O, { variant: "info", leading: /* @__PURE__ */ t(
|
|
757
|
+
A > 0 ? /* @__PURE__ */ t(O, { variant: "neutral", children: `+${A}` }) : null,
|
|
758
|
+
P ? /* @__PURE__ */ t(O, { variant: "info", leading: /* @__PURE__ */ t(Me, { "aria-hidden": "true" }), children: x("practiceResults.fearPatient.label") }) : null
|
|
772
759
|
] }) : null,
|
|
773
|
-
/* @__PURE__ */ t(
|
|
760
|
+
/* @__PURE__ */ t(Fe, { description: e.description, density: "compact" }),
|
|
774
761
|
/* @__PURE__ */ t(
|
|
775
|
-
|
|
762
|
+
Be,
|
|
776
763
|
{
|
|
777
764
|
cents: e.firstVisitPriceCents,
|
|
778
765
|
currencyCode: e.currencyCode
|
|
779
766
|
}
|
|
780
767
|
),
|
|
781
|
-
e.nextAvailableSlot && u ? /* @__PURE__ */ t(
|
|
768
|
+
e.nextAvailableSlot && u ? /* @__PURE__ */ t(He, { time: u }) : null,
|
|
782
769
|
f,
|
|
783
770
|
/* @__PURE__ */ t(
|
|
784
771
|
De,
|
|
@@ -797,7 +784,7 @@ function It({
|
|
|
797
784
|
)
|
|
798
785
|
);
|
|
799
786
|
}
|
|
800
|
-
function
|
|
787
|
+
function _t({
|
|
801
788
|
result: e,
|
|
802
789
|
apiKey: n,
|
|
803
790
|
highlighted: s,
|
|
@@ -835,7 +822,7 @@ function Tt({
|
|
|
835
822
|
onClick: r,
|
|
836
823
|
onMouseEnter: l,
|
|
837
824
|
onFocus: l,
|
|
838
|
-
className:
|
|
825
|
+
className: $e({ density: "rich" }),
|
|
839
826
|
children: [
|
|
840
827
|
e.location ? /* @__PURE__ */ t(
|
|
841
828
|
At,
|
|
@@ -861,10 +848,10 @@ function Tt({
|
|
|
861
848
|
children: e.name
|
|
862
849
|
}
|
|
863
850
|
),
|
|
864
|
-
h != null ? /* @__PURE__ */ t(
|
|
851
|
+
h != null ? /* @__PURE__ */ t(ze, { distanceKm: h }) : null
|
|
865
852
|
] }),
|
|
866
853
|
e.subtitle ? /* @__PURE__ */ t("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: e.subtitle }) : null,
|
|
867
|
-
/* @__PURE__ */ t(
|
|
854
|
+
/* @__PURE__ */ t(Le, { tagline: e.tagline }),
|
|
868
855
|
(N = e.location) != null && N.address ? /* @__PURE__ */ p("span", { className: "type-meta ds:text-[var(--muted-foreground)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
869
856
|
/* @__PURE__ */ t(
|
|
870
857
|
ne,
|
|
@@ -904,17 +891,17 @@ function Tt({
|
|
|
904
891
|
},
|
|
905
892
|
`ins-${w}`
|
|
906
893
|
)) : null,
|
|
907
|
-
b ? /* @__PURE__ */ t(O, { variant: "info", leading: /* @__PURE__ */ t(
|
|
894
|
+
b ? /* @__PURE__ */ t(O, { variant: "info", leading: /* @__PURE__ */ t(Me, { "aria-hidden": "true" }), children: u("practiceResults.fearPatient.label") }) : null
|
|
908
895
|
] }) : null,
|
|
909
|
-
/* @__PURE__ */ t(
|
|
896
|
+
/* @__PURE__ */ t(Fe, { description: e.description, density: "rich" }),
|
|
910
897
|
/* @__PURE__ */ t(
|
|
911
|
-
|
|
898
|
+
Be,
|
|
912
899
|
{
|
|
913
900
|
cents: e.firstVisitPriceCents,
|
|
914
901
|
currencyCode: e.currencyCode
|
|
915
902
|
}
|
|
916
903
|
),
|
|
917
|
-
e.nextAvailableSlot && m ? /* @__PURE__ */ t(
|
|
904
|
+
e.nextAvailableSlot && m ? /* @__PURE__ */ t(He, { time: m }) : null,
|
|
918
905
|
/* @__PURE__ */ t(
|
|
919
906
|
De,
|
|
920
907
|
{
|
|
@@ -949,7 +936,7 @@ function fe({
|
|
|
949
936
|
apiKey: x,
|
|
950
937
|
containerRef: b
|
|
951
938
|
}) {
|
|
952
|
-
const { t: y } = C(), h =
|
|
939
|
+
const { t: y } = C(), h = M(null);
|
|
953
940
|
return W(() => {
|
|
954
941
|
if (!u) return;
|
|
955
942
|
const g = h.current;
|
|
@@ -972,7 +959,7 @@ function fe({
|
|
|
972
959
|
"aria-label": y("practiceResults.loading"),
|
|
973
960
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
974
961
|
children: Array.from({ length: 4 }).map((g, R) => /* @__PURE__ */ t(
|
|
975
|
-
|
|
962
|
+
it,
|
|
976
963
|
{
|
|
977
964
|
variant: "rounded",
|
|
978
965
|
height: f === "rich" ? "11rem" : "7rem"
|
|
@@ -990,7 +977,7 @@ function fe({
|
|
|
990
977
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:overflow-y-auto",
|
|
991
978
|
children: [
|
|
992
979
|
e.map((g) => /* @__PURE__ */ t("div", { role: "listitem", children: f === "rich" ? /* @__PURE__ */ t(
|
|
993
|
-
|
|
980
|
+
_t,
|
|
994
981
|
{
|
|
995
982
|
result: g,
|
|
996
983
|
apiKey: x,
|
|
@@ -1022,7 +1009,7 @@ function fe({
|
|
|
1022
1009
|
ref: h,
|
|
1023
1010
|
"aria-hidden": "true",
|
|
1024
1011
|
className: "ds:flex ds:items-center ds:justify-center ds:py-[var(--spacing-md)]",
|
|
1025
|
-
children: o ? /* @__PURE__ */ t(
|
|
1012
|
+
children: o ? /* @__PURE__ */ t(rt, { size: "md", variant: "pulse" }) : /* @__PURE__ */ t("span", { className: "ds:size-1" })
|
|
1026
1013
|
}
|
|
1027
1014
|
) : null
|
|
1028
1015
|
]
|
|
@@ -1074,7 +1061,7 @@ function pe({
|
|
|
1074
1061
|
"data-component": "practice-results-map-panel",
|
|
1075
1062
|
className: "ds:relative ds:flex ds:size-full ds:min-h-[24rem] ds:flex-col",
|
|
1076
1063
|
children: /* @__PURE__ */ t(
|
|
1077
|
-
|
|
1064
|
+
st,
|
|
1078
1065
|
{
|
|
1079
1066
|
ref: f,
|
|
1080
1067
|
apiKey: r ?? "",
|
|
@@ -1103,7 +1090,7 @@ function he({
|
|
|
1103
1090
|
const { facets: n, value: s, onChange: r, heading: i, intro: a, totalCount: l, searchCentre: d } = e;
|
|
1104
1091
|
return /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1105
1092
|
/* @__PURE__ */ t(
|
|
1106
|
-
|
|
1093
|
+
_e,
|
|
1107
1094
|
{
|
|
1108
1095
|
heading: i,
|
|
1109
1096
|
intro: a,
|
|
@@ -1113,7 +1100,7 @@ function he({
|
|
|
1113
1100
|
),
|
|
1114
1101
|
n.length > 0 ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
1115
1102
|
/* @__PURE__ */ t(
|
|
1116
|
-
|
|
1103
|
+
Te,
|
|
1117
1104
|
{
|
|
1118
1105
|
facets: n,
|
|
1119
1106
|
value: s.facets,
|
|
@@ -1139,7 +1126,7 @@ function he({
|
|
|
1139
1126
|
function ge() {
|
|
1140
1127
|
const { t: e } = C();
|
|
1141
1128
|
return /* @__PURE__ */ t(
|
|
1142
|
-
|
|
1129
|
+
at,
|
|
1143
1130
|
{
|
|
1144
1131
|
variant: "no-results",
|
|
1145
1132
|
title: e("practiceResults.empty.title"),
|
|
@@ -1164,7 +1151,7 @@ function ve({ onRetry: e }) {
|
|
|
1164
1151
|
) }) : null
|
|
1165
1152
|
] });
|
|
1166
1153
|
}
|
|
1167
|
-
function
|
|
1154
|
+
function Tt(e) {
|
|
1168
1155
|
const {
|
|
1169
1156
|
results: n,
|
|
1170
1157
|
apiKey: s,
|
|
@@ -1185,7 +1172,7 @@ function zt(e) {
|
|
|
1185
1172
|
onConsentRequest: g,
|
|
1186
1173
|
onBoundsChange: R,
|
|
1187
1174
|
listContainerRef: P
|
|
1188
|
-
} = e, { t: N } = C(), [w,
|
|
1175
|
+
} = e, { t: N } = C(), [w, _] = me(!1), T = m ? o ?? /* @__PURE__ */ t(ve, { onRetry: f }) : n.length === 0 && !c ? u ?? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ t(
|
|
1189
1176
|
fe,
|
|
1190
1177
|
{
|
|
1191
1178
|
results: n,
|
|
@@ -1217,8 +1204,8 @@ function zt(e) {
|
|
|
1217
1204
|
apiKey: s,
|
|
1218
1205
|
mapId: r,
|
|
1219
1206
|
highlightedId: x,
|
|
1220
|
-
onPinClick: (
|
|
1221
|
-
Q(n,
|
|
1207
|
+
onPinClick: (A) => {
|
|
1208
|
+
Q(n, A, "pin", e.onResultSelect), y(A);
|
|
1222
1209
|
},
|
|
1223
1210
|
onPinHover: b,
|
|
1224
1211
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
@@ -1234,15 +1221,15 @@ function zt(e) {
|
|
|
1234
1221
|
{
|
|
1235
1222
|
intent: "primary",
|
|
1236
1223
|
size: "md",
|
|
1237
|
-
startIcon: /* @__PURE__ */ t(
|
|
1238
|
-
onClick: () =>
|
|
1224
|
+
startIcon: /* @__PURE__ */ t(gt, { "aria-hidden": "true" }),
|
|
1225
|
+
onClick: () => _(!0),
|
|
1239
1226
|
children: N("practiceResults.viewMap")
|
|
1240
1227
|
}
|
|
1241
1228
|
) }),
|
|
1242
|
-
/* @__PURE__ */ t(
|
|
1243
|
-
/* @__PURE__ */ t(
|
|
1244
|
-
/* @__PURE__ */ p(
|
|
1245
|
-
/* @__PURE__ */ t(
|
|
1229
|
+
/* @__PURE__ */ t(I.Root, { open: w, onOpenChange: _, children: /* @__PURE__ */ p(I.Content, { side: "bottom", size: "lg", children: [
|
|
1230
|
+
/* @__PURE__ */ t(I.Header, { children: /* @__PURE__ */ t(I.Title, { children: N("practiceResults.map.label") }) }),
|
|
1231
|
+
/* @__PURE__ */ p(I.Body, { children: [
|
|
1232
|
+
/* @__PURE__ */ t(I.Description, { className: "ds:sr-only", children: N("practiceResults.sheet.description") }),
|
|
1246
1233
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1247
1234
|
/* @__PURE__ */ t("div", { className: "ds:h-[20rem]", children: /* @__PURE__ */ t(
|
|
1248
1235
|
pe,
|
|
@@ -1253,8 +1240,8 @@ function zt(e) {
|
|
|
1253
1240
|
apiKey: s,
|
|
1254
1241
|
mapId: r,
|
|
1255
1242
|
highlightedId: x,
|
|
1256
|
-
onPinClick: (
|
|
1257
|
-
Q(n,
|
|
1243
|
+
onPinClick: (A) => {
|
|
1244
|
+
Q(n, A, "pin", e.onResultSelect), y(A);
|
|
1258
1245
|
},
|
|
1259
1246
|
onPinHover: b,
|
|
1260
1247
|
onPinFirstInteract: e.onPinFirstInteract,
|
|
@@ -1270,7 +1257,7 @@ function zt(e) {
|
|
|
1270
1257
|
] }) })
|
|
1271
1258
|
] });
|
|
1272
1259
|
}
|
|
1273
|
-
const
|
|
1260
|
+
const zt = {
|
|
1274
1261
|
peek: "sm",
|
|
1275
1262
|
half: "md",
|
|
1276
1263
|
full: "lg"
|
|
@@ -1279,13 +1266,13 @@ const Lt = {
|
|
|
1279
1266
|
"half",
|
|
1280
1267
|
"full"
|
|
1281
1268
|
];
|
|
1282
|
-
function
|
|
1283
|
-
const { t: s, i18n: r } = C(), i = r.dir() === "rtl", a =
|
|
1269
|
+
function Lt({ value: e, onChange: n }) {
|
|
1270
|
+
const { t: s, i18n: r } = C(), i = r.dir() === "rtl", a = M(
|
|
1284
1271
|
/* @__PURE__ */ new Map()
|
|
1285
|
-
), l =
|
|
1272
|
+
), l = D((c) => {
|
|
1286
1273
|
var u;
|
|
1287
1274
|
(u = a.current.get(c)) == null || u.focus();
|
|
1288
|
-
}, []), d =
|
|
1275
|
+
}, []), d = D(
|
|
1289
1276
|
(c, u) => {
|
|
1290
1277
|
const o = E.indexOf(u), m = E.length, f = i ? "ArrowLeft" : "ArrowRight", x = i ? "ArrowRight" : "ArrowLeft";
|
|
1291
1278
|
let b = null;
|
|
@@ -1343,7 +1330,7 @@ function Ft({ value: e, onChange: n }) {
|
|
|
1343
1330
|
}
|
|
1344
1331
|
);
|
|
1345
1332
|
}
|
|
1346
|
-
function
|
|
1333
|
+
function Ft(e) {
|
|
1347
1334
|
const {
|
|
1348
1335
|
results: n,
|
|
1349
1336
|
apiKey: s,
|
|
@@ -1366,8 +1353,8 @@ function Bt(e) {
|
|
|
1366
1353
|
listContainerRef: P,
|
|
1367
1354
|
facets: N,
|
|
1368
1355
|
value: w,
|
|
1369
|
-
onChange:
|
|
1370
|
-
} = e, { t: T } = C(), [
|
|
1356
|
+
onChange: _
|
|
1357
|
+
} = e, { t: T } = C(), [A, q] = me("half"), U = zt[A], G = ot("(min-width: 1024px)"), H = m ? o ?? /* @__PURE__ */ t(ve, { onRetry: f }) : n.length === 0 && !c ? u ?? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ t(
|
|
1371
1358
|
fe,
|
|
1372
1359
|
{
|
|
1373
1360
|
results: n,
|
|
@@ -1406,11 +1393,11 @@ function Bt(e) {
|
|
|
1406
1393
|
mapHandleRef: e.mapHandleRef
|
|
1407
1394
|
}
|
|
1408
1395
|
), Z = N.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(
|
|
1409
|
-
|
|
1396
|
+
Te,
|
|
1410
1397
|
{
|
|
1411
1398
|
facets: N,
|
|
1412
1399
|
value: w.facets,
|
|
1413
|
-
onChange: (k) =>
|
|
1400
|
+
onChange: (k) => _({ ...w, facets: k }),
|
|
1414
1401
|
floating: !0
|
|
1415
1402
|
}
|
|
1416
1403
|
) }) : null;
|
|
@@ -1432,7 +1419,7 @@ function Bt(e) {
|
|
|
1432
1419
|
// the map column is `lg:sticky lg:h-[44rem]` (stays visible
|
|
1433
1420
|
// as the patient scrolls cards) and the rail renders at
|
|
1434
1421
|
// natural height. Single page scroll.
|
|
1435
|
-
/* @__PURE__ */ p(
|
|
1422
|
+
/* @__PURE__ */ p(et, { children: [
|
|
1436
1423
|
/* @__PURE__ */ t(he, { variantBodyProps: e }),
|
|
1437
1424
|
/* @__PURE__ */ p("div", { className: "ds:grid ds:grid-cols-[65fr_35fr] ds:gap-[var(--spacing-lg)] ds:items-start", children: [
|
|
1438
1425
|
/* @__PURE__ */ t("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children: V }),
|
|
@@ -1448,7 +1435,7 @@ function Bt(e) {
|
|
|
1448
1435
|
// chrome, so floating chips are the only place for them.
|
|
1449
1436
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1450
1437
|
/* @__PURE__ */ t(
|
|
1451
|
-
|
|
1438
|
+
_e,
|
|
1452
1439
|
{
|
|
1453
1440
|
heading: e.heading,
|
|
1454
1441
|
intro: e.intro,
|
|
@@ -1460,24 +1447,24 @@ function Bt(e) {
|
|
|
1460
1447
|
V,
|
|
1461
1448
|
Z
|
|
1462
1449
|
] }),
|
|
1463
|
-
/* @__PURE__ */ t(
|
|
1464
|
-
|
|
1450
|
+
/* @__PURE__ */ t(I.Root, { open: !0, children: /* @__PURE__ */ t(
|
|
1451
|
+
I.Content,
|
|
1465
1452
|
{
|
|
1466
1453
|
side: "bottom",
|
|
1467
1454
|
size: U,
|
|
1468
1455
|
onEscapeKeyDown: (k) => k.preventDefault(),
|
|
1469
1456
|
onPointerDownOutside: (k) => k.preventDefault(),
|
|
1470
1457
|
onInteractOutside: (k) => k.preventDefault(),
|
|
1471
|
-
children: /* @__PURE__ */ p(
|
|
1472
|
-
/* @__PURE__ */ t(
|
|
1458
|
+
children: /* @__PURE__ */ p(I.Body, { children: [
|
|
1459
|
+
/* @__PURE__ */ t(I.Description, { className: "ds:sr-only", children: T("practiceResults.sheet.descriptionMapFirst") }),
|
|
1473
1460
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: [
|
|
1474
|
-
/* @__PURE__ */ t(
|
|
1461
|
+
/* @__PURE__ */ t(I.Title, { className: "type-title-card ds:m-0 ds:text-[var(--foreground)]", children: T("practiceResults.sheet.title", {
|
|
1475
1462
|
count: e.totalCount ?? n.length
|
|
1476
1463
|
}) }),
|
|
1477
1464
|
/* @__PURE__ */ t(
|
|
1478
|
-
|
|
1465
|
+
Lt,
|
|
1479
1466
|
{
|
|
1480
|
-
value:
|
|
1467
|
+
value: A,
|
|
1481
1468
|
onChange: q
|
|
1482
1469
|
}
|
|
1483
1470
|
)
|
|
@@ -1486,7 +1473,7 @@ function Bt(e) {
|
|
|
1486
1473
|
ue,
|
|
1487
1474
|
{
|
|
1488
1475
|
value: w.sort ?? "relevance",
|
|
1489
|
-
onChange: (k) =>
|
|
1476
|
+
onChange: (k) => _({ ...w, sort: k })
|
|
1490
1477
|
}
|
|
1491
1478
|
) }),
|
|
1492
1479
|
H
|
|
@@ -1496,7 +1483,7 @@ function Bt(e) {
|
|
|
1496
1483
|
] })
|
|
1497
1484
|
) });
|
|
1498
1485
|
}
|
|
1499
|
-
function
|
|
1486
|
+
function Bt(e) {
|
|
1500
1487
|
const {
|
|
1501
1488
|
results: n,
|
|
1502
1489
|
apiKey: s,
|
|
@@ -1535,7 +1522,7 @@ function Ht(e) {
|
|
|
1535
1522
|
x
|
|
1536
1523
|
] });
|
|
1537
1524
|
}
|
|
1538
|
-
const
|
|
1525
|
+
const Ht = tt(function({
|
|
1539
1526
|
variant: n = "split-list-map",
|
|
1540
1527
|
results: s,
|
|
1541
1528
|
totalCount: r,
|
|
@@ -1543,7 +1530,7 @@ const $t = nt(function({
|
|
|
1543
1530
|
facets: a,
|
|
1544
1531
|
googleMapsApiKey: l,
|
|
1545
1532
|
mapId: d,
|
|
1546
|
-
defaultZoom: c =
|
|
1533
|
+
defaultZoom: c = bt,
|
|
1547
1534
|
onBoundsChange: u,
|
|
1548
1535
|
consentGranted: o,
|
|
1549
1536
|
onConsentRequest: m,
|
|
@@ -1557,9 +1544,9 @@ const $t = nt(function({
|
|
|
1557
1544
|
emptyResultsSlot: P,
|
|
1558
1545
|
errorSlot: N,
|
|
1559
1546
|
error: w,
|
|
1560
|
-
onRetry:
|
|
1547
|
+
onRetry: _,
|
|
1561
1548
|
heading: T,
|
|
1562
|
-
intro:
|
|
1549
|
+
intro: A,
|
|
1563
1550
|
cardOpenButtonLabel: q,
|
|
1564
1551
|
cardBookButtonLabel: U,
|
|
1565
1552
|
"aria-label": G,
|
|
@@ -1567,7 +1554,7 @@ const $t = nt(function({
|
|
|
1567
1554
|
className: V,
|
|
1568
1555
|
...Z
|
|
1569
1556
|
}, k) {
|
|
1570
|
-
const { t: ae, i18n: be } = C(), [
|
|
1557
|
+
const { t: ae, i18n: be } = C(), [Oe, J] = me(null), X = M(/* @__PURE__ */ new Set()), se = M(/* @__PURE__ */ new Set()), Ve = M(null), ie = M(null), re = B(
|
|
1571
1558
|
() => ({
|
|
1572
1559
|
getVariant: () => n,
|
|
1573
1560
|
scrollToResult: (v) => {
|
|
@@ -1584,8 +1571,8 @@ const $t = nt(function({
|
|
|
1584
1571
|
}),
|
|
1585
1572
|
[n]
|
|
1586
1573
|
);
|
|
1587
|
-
|
|
1588
|
-
const
|
|
1574
|
+
nt(k, () => re, [re]), dt(vt, re, H);
|
|
1575
|
+
const Ke = q ?? ae("practiceResults.card.open"), Ee = U ?? ae("practiceResults.card.book"), je = D(
|
|
1589
1576
|
(v) => {
|
|
1590
1577
|
if (v.nextAvailableSlot)
|
|
1591
1578
|
try {
|
|
@@ -1599,19 +1586,19 @@ const $t = nt(function({
|
|
|
1599
1586
|
}
|
|
1600
1587
|
},
|
|
1601
1588
|
[be.language]
|
|
1602
|
-
), ye =
|
|
1589
|
+
), ye = M(null);
|
|
1603
1590
|
W(() => {
|
|
1604
1591
|
ye.current !== n && (ye.current = n, F("serp_variant_exposed", {
|
|
1605
1592
|
variant: n,
|
|
1606
1593
|
totalCount: r ?? s.length
|
|
1607
1594
|
}), X.current = /* @__PURE__ */ new Set(), se.current = /* @__PURE__ */ new Set());
|
|
1608
1595
|
}, [n]);
|
|
1609
|
-
const oe =
|
|
1610
|
-
() =>
|
|
1596
|
+
const oe = M(!1), ce = B(
|
|
1597
|
+
() => kt(a ?? [], s, y.facets),
|
|
1611
1598
|
[a, s, y.facets]
|
|
1612
1599
|
), le = y.sort ?? (i ? "distance" : "relevance"), z = B(() => {
|
|
1613
|
-
const v =
|
|
1614
|
-
return
|
|
1600
|
+
const v = Ct(s, y.facets, ce);
|
|
1601
|
+
return wt(v, le, i);
|
|
1615
1602
|
}, [s, y.facets, ce, le, i]);
|
|
1616
1603
|
W(() => {
|
|
1617
1604
|
const v = z.length === 0;
|
|
@@ -1619,18 +1606,18 @@ const $t = nt(function({
|
|
|
1619
1606
|
appliedFacets: y.facets ?? {}
|
|
1620
1607
|
}), oe.current = !0) : v || (oe.current = !1);
|
|
1621
1608
|
}, [z.length, y.facets]);
|
|
1622
|
-
const K =
|
|
1609
|
+
const K = M(null), xe = M(null);
|
|
1623
1610
|
W(
|
|
1624
1611
|
() => () => {
|
|
1625
1612
|
K.current && clearTimeout(K.current);
|
|
1626
1613
|
},
|
|
1627
1614
|
[]
|
|
1628
1615
|
);
|
|
1629
|
-
const
|
|
1616
|
+
const qe = D((v) => {
|
|
1630
1617
|
J(v), !X.current.has(v) && (xe.current === v && K.current || (K.current && clearTimeout(K.current), xe.current = v, K.current = setTimeout(() => {
|
|
1631
1618
|
X.current.has(v) || (X.current.add(v), F("serp_result_hovered_card", { resultId: v })), K.current = null;
|
|
1632
1619
|
}, 500)));
|
|
1633
|
-
}, []),
|
|
1620
|
+
}, []), Ue = D((v) => {
|
|
1634
1621
|
J(v);
|
|
1635
1622
|
const L = ie.current;
|
|
1636
1623
|
if (!L) return;
|
|
@@ -1638,9 +1625,9 @@ const $t = nt(function({
|
|
|
1638
1625
|
`[data-component="practice-result-card"][data-result-id="${CSS.escape(v)}"]`
|
|
1639
1626
|
);
|
|
1640
1627
|
S == null || S.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
1641
|
-
}, []),
|
|
1628
|
+
}, []), Ge = D((v) => {
|
|
1642
1629
|
se.current.has(v) || (se.current.add(v), F("serp_result_hovered_pin", { resultId: v }));
|
|
1643
|
-
}, []), ke =
|
|
1630
|
+
}, []), ke = M(null), Ze = D(
|
|
1644
1631
|
(v) => {
|
|
1645
1632
|
J(v);
|
|
1646
1633
|
const L = z.find((S) => S.id === v);
|
|
@@ -1656,7 +1643,7 @@ const $t = nt(function({
|
|
|
1656
1643
|
}
|
|
1657
1644
|
},
|
|
1658
1645
|
[z, g]
|
|
1659
|
-
),
|
|
1646
|
+
), Qe = D(
|
|
1660
1647
|
(v) => {
|
|
1661
1648
|
Q(
|
|
1662
1649
|
z,
|
|
@@ -1666,7 +1653,7 @@ const $t = nt(function({
|
|
|
1666
1653
|
);
|
|
1667
1654
|
},
|
|
1668
1655
|
[z, g]
|
|
1669
|
-
),
|
|
1656
|
+
), Je = D(
|
|
1670
1657
|
(v) => {
|
|
1671
1658
|
Q(
|
|
1672
1659
|
z,
|
|
@@ -1676,7 +1663,7 @@ const $t = nt(function({
|
|
|
1676
1663
|
);
|
|
1677
1664
|
},
|
|
1678
1665
|
[z, g]
|
|
1679
|
-
),
|
|
1666
|
+
), We = !!R && s.length === 0, de = {
|
|
1680
1667
|
results: z,
|
|
1681
1668
|
totalCount: r,
|
|
1682
1669
|
searchCentre: i,
|
|
@@ -1697,55 +1684,55 @@ const $t = nt(function({
|
|
|
1697
1684
|
consentGranted: f ? !0 : o,
|
|
1698
1685
|
onConsentRequest: f ? void 0 : m,
|
|
1699
1686
|
onBoundsChange: u,
|
|
1700
|
-
loadingSkeletons:
|
|
1687
|
+
loadingSkeletons: We,
|
|
1701
1688
|
emptyResultsSlot: P,
|
|
1702
1689
|
errorSlot: N,
|
|
1703
1690
|
error: w,
|
|
1704
|
-
onRetry:
|
|
1691
|
+
onRetry: _,
|
|
1705
1692
|
heading: T,
|
|
1706
|
-
intro:
|
|
1707
|
-
highlightedId:
|
|
1708
|
-
onCardHover:
|
|
1709
|
-
onPinClick:
|
|
1710
|
-
onPinFirstInteract:
|
|
1711
|
-
onCardSelect:
|
|
1712
|
-
onCardOpenClick:
|
|
1713
|
-
onCardBookClick:
|
|
1714
|
-
openLabel:
|
|
1715
|
-
bookLabel:
|
|
1716
|
-
formatNextSlot:
|
|
1717
|
-
listContainerRef:
|
|
1693
|
+
intro: A,
|
|
1694
|
+
highlightedId: Oe,
|
|
1695
|
+
onCardHover: qe,
|
|
1696
|
+
onPinClick: Ue,
|
|
1697
|
+
onPinFirstInteract: Ge,
|
|
1698
|
+
onCardSelect: Ze,
|
|
1699
|
+
onCardOpenClick: Qe,
|
|
1700
|
+
onCardBookClick: Je,
|
|
1701
|
+
openLabel: Ke,
|
|
1702
|
+
bookLabel: Ee,
|
|
1703
|
+
formatNextSlot: je,
|
|
1704
|
+
listContainerRef: Ve,
|
|
1718
1705
|
mapHandleRef: ke
|
|
1719
|
-
},
|
|
1706
|
+
}, Xe = (() => {
|
|
1720
1707
|
switch (n) {
|
|
1721
1708
|
case "map-first":
|
|
1722
|
-
return /* @__PURE__ */ t(
|
|
1709
|
+
return /* @__PURE__ */ t(Ft, { ...de });
|
|
1723
1710
|
case "rich-cards":
|
|
1724
|
-
return /* @__PURE__ */ t(
|
|
1711
|
+
return /* @__PURE__ */ t(Bt, { ...de });
|
|
1725
1712
|
case "split-list-map":
|
|
1726
1713
|
default:
|
|
1727
|
-
return /* @__PURE__ */ t(
|
|
1714
|
+
return /* @__PURE__ */ t(Tt, { ...de });
|
|
1728
1715
|
}
|
|
1729
|
-
})(),
|
|
1716
|
+
})(), Ye = G ?? ae("practiceResults.regionLabel");
|
|
1730
1717
|
return /* @__PURE__ */ t(
|
|
1731
1718
|
"div",
|
|
1732
1719
|
{
|
|
1733
1720
|
ref: ie,
|
|
1734
1721
|
role: "region",
|
|
1735
|
-
"aria-label":
|
|
1722
|
+
"aria-label": Ye,
|
|
1736
1723
|
id: H,
|
|
1737
1724
|
"data-component": "practice-results",
|
|
1738
1725
|
"data-component-id": H,
|
|
1739
1726
|
"data-variant": n,
|
|
1740
|
-
className:
|
|
1727
|
+
className: Rt({ variant: n, className: V }),
|
|
1741
1728
|
...Z,
|
|
1742
|
-
children:
|
|
1729
|
+
children: Xe
|
|
1743
1730
|
}
|
|
1744
1731
|
);
|
|
1745
1732
|
});
|
|
1746
|
-
|
|
1733
|
+
Ht.displayName = "PracticeResults";
|
|
1747
1734
|
export {
|
|
1748
|
-
|
|
1749
|
-
|
|
1735
|
+
Ht as P,
|
|
1736
|
+
vt as p
|
|
1750
1737
|
};
|
|
1751
|
-
//# sourceMappingURL=practice-results-
|
|
1738
|
+
//# sourceMappingURL=practice-results-DL_ExLYE.js.map
|