@alfadocs/ui-kit-debug 1.117.0 → 1.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{address-autocomplete-Bnc9ieKO.js → address-autocomplete-zLygkxFc.js} +2 -2
- package/dist/_chunks/{address-autocomplete-Bnc9ieKO.js.map → address-autocomplete-zLygkxFc.js.map} +1 -1
- package/dist/_chunks/{address-fields-RIaGnpnm.js → address-fields-Dl1ALKhP.js} +2 -2
- package/dist/_chunks/{address-fields-RIaGnpnm.js.map → address-fields-Dl1ALKhP.js.map} +1 -1
- package/dist/_chunks/map-view-CHeGd94F.js +1443 -0
- package/dist/_chunks/map-view-CHeGd94F.js.map +1 -0
- package/dist/_chunks/{maps-core-gate-Dgs7jXxy.js → maps-core-gate-C4dyo1ic.js} +5 -5
- package/dist/_chunks/{maps-core-gate-Dgs7jXxy.js.map → maps-core-gate-C4dyo1ic.js.map} +1 -1
- package/dist/_chunks/{practice-results-CzHWprX4.js → practice-results-b3uchdBn.js} +40 -39
- package/dist/_chunks/practice-results-b3uchdBn.js.map +1 -0
- package/dist/_chunks/{reserved.agent-TaZfI3yj.js → reserved.agent-V2Eqoabh.js} +2 -2
- package/dist/_chunks/{reserved.agent-TaZfI3yj.js.map → reserved.agent-V2Eqoabh.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view-cluster.d.ts +42 -0
- package/dist/components/map-view/map-view-cluster.d.ts.map +1 -0
- package/dist/components/map-view/map-view.d.ts +39 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +7 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +7 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +7 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +7 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +7 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +7 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +7 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +7 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +7 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +7 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +7 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +7 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +7 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +7 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +7 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +7 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +7 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +7 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +7 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +7 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +7 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +7 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +7 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +7 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +7 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +7 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +7 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +7 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +7 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +7 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +7 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +7 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +7 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +7 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +7 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +7 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/locales/ar.json +7 -0
- package/dist/locales/de.json +7 -0
- package/dist/locales/el.json +7 -0
- package/dist/locales/en.json +7 -0
- package/dist/locales/es.json +7 -0
- package/dist/locales/fr.json +7 -0
- package/dist/locales/hi.json +7 -0
- package/dist/locales/it.json +7 -0
- package/dist/locales/ja.json +7 -0
- package/dist/locales/nl.json +7 -0
- package/dist/locales/pl.json +7 -0
- package/dist/locales/pt.json +7 -0
- package/dist/locales/ro.json +7 -0
- package/dist/locales/ru.json +7 -0
- package/dist/locales/sq.json +7 -0
- package/dist/locales/sv.json +7 -0
- package/dist/locales/tr.json +7 -0
- package/dist/locales/zh.json +7 -0
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/map-view-Frj8vE7n.js +0 -1105
- package/dist/_chunks/map-view-Frj8vE7n.js.map +0 -1
- package/dist/_chunks/practice-results-CzHWprX4.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as n, jsxs as g, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as n, jsxs as g, Fragment as _t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Tt, useState as G, useRef as F, useMemo as _, useImperativeHandle as Ot, useCallback as H, useEffect as J } from "react";
|
|
3
3
|
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as P } from "react-i18next";
|
|
5
5
|
import { A as fe } from "./alert-C4WKViaS.js";
|
|
@@ -7,14 +7,14 @@ import { A as Ae } from "./avatar-Dp5apm1d.js";
|
|
|
7
7
|
import { B as pe } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { D as U } from "./dropdown-menu-Dw6sgQwJ.js";
|
|
9
9
|
import { E as Vt } from "./empty-state-DwJ5YNzz.js";
|
|
10
|
-
import { M as Bt, i as He } from "./map-view-
|
|
10
|
+
import { M as Bt, i as He } from "./map-view-CHeGd94F.js";
|
|
11
11
|
import { R as Fe } from "./rating-CGYpg5dj.js";
|
|
12
12
|
import { S as K } from "./sheet-uZZXaO_S.js";
|
|
13
13
|
import { S as Dt } from "./skeleton-tTWJpvAq.js";
|
|
14
14
|
import { S as $t } from "./spinner-CoflYlEx.js";
|
|
15
15
|
import { B as j } from "./badge-BUk4RjTS.js";
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
16
|
+
import { u as _e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
17
|
+
import { u as Te } from "./use-media-query-CcAx5SMM.js";
|
|
18
18
|
import { m as zt } from "./motion-is-off-BvAuNV5O.js";
|
|
19
19
|
import { l as We } from "./length-token-DwMnGEYT.js";
|
|
20
20
|
import { b as Et, a as Qe } from "./format-price-CIX0YJZn.js";
|
|
@@ -339,7 +339,7 @@ function rt({
|
|
|
339
339
|
onChange: i,
|
|
340
340
|
floating: s
|
|
341
341
|
}) {
|
|
342
|
-
const { t: r } = P("ui"), a =
|
|
342
|
+
const { t: r } = P("ui"), a = _(() => t ?? {}, [t]), l = _(
|
|
343
343
|
() => Object.values(a).some((d) => d && d.length > 0),
|
|
344
344
|
[a]
|
|
345
345
|
), m = (d, p) => {
|
|
@@ -481,7 +481,7 @@ function Pe({ value: e, options: t, onChange: i }) {
|
|
|
481
481
|
] });
|
|
482
482
|
}
|
|
483
483
|
function cn({ distanceKm: e }) {
|
|
484
|
-
const { t, i18n: i } = P("ui"), s =
|
|
484
|
+
const { t, i18n: i } = P("ui"), s = _(() => {
|
|
485
485
|
if (e < 1) return t("practiceResults.distance.below");
|
|
486
486
|
const r = new Intl.NumberFormat(i.language, {
|
|
487
487
|
maximumFractionDigits: 1
|
|
@@ -683,7 +683,7 @@ function vn({
|
|
|
683
683
|
currencyCode: i = "EUR"
|
|
684
684
|
}) {
|
|
685
685
|
var f;
|
|
686
|
-
const { t: s, i18n: r } = P("ui"), a = e && Number.isFinite(e.minCents) ? e : void 0, l = (a == null ? void 0 : a.kind) ?? "fixed", m = (a == null ? void 0 : a.minCents) ?? t, c = a == null ? void 0 : a.maxCents, o =
|
|
686
|
+
const { t: s, i18n: r } = P("ui"), a = e && Number.isFinite(e.minCents) ? e : void 0, l = (a == null ? void 0 : a.kind) ?? "fixed", m = (a == null ? void 0 : a.minCents) ?? t, c = a == null ? void 0 : a.maxCents, o = _(
|
|
687
687
|
() => m == null ? void 0 : hn(
|
|
688
688
|
{ kind: l, minCents: m, maxCents: c },
|
|
689
689
|
i,
|
|
@@ -950,7 +950,7 @@ function wn({
|
|
|
950
950
|
children: y
|
|
951
951
|
}) {
|
|
952
952
|
var D, W, ee, Q;
|
|
953
|
-
const { t: N, i18n: k } = P("ui"), I = e.rating, M = (((D = e.languages) == null ? void 0 : D.length) ?? 0) > 0, R = (((W = e.insurances) == null ? void 0 : W.length) ?? 0) > 0, h = e.specializedInFearPatients, L = M || R || h,
|
|
953
|
+
const { t: N, i18n: k } = P("ui"), I = e.rating, M = (((D = e.languages) == null ? void 0 : D.length) ?? 0) > 0, R = (((W = e.insurances) == null ? void 0 : W.length) ?? 0) > 0, h = e.specializedInFearPatients, L = M || R || h, T = (e.languages ?? []).slice(0, b), B = (((ee = e.languages) == null ? void 0 : ee.length) ?? 0) - T.length, z = (e.insurances ?? []).slice(0, x), v = (((Q = e.insurances) == null ? void 0 : Q.length) ?? 0) - z.length;
|
|
954
954
|
return (
|
|
955
955
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events -- card is role="group" by design (axe nested-interactive); click handler is mouse-only sync.
|
|
956
956
|
/* @__PURE__ */ g(
|
|
@@ -1003,7 +1003,7 @@ function wn({
|
|
|
1003
1003
|
) : null,
|
|
1004
1004
|
/* @__PURE__ */ n(ot, { review: e.latestReview }),
|
|
1005
1005
|
L ? /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1006
|
-
|
|
1006
|
+
T.map((O) => /* @__PURE__ */ n(
|
|
1007
1007
|
j,
|
|
1008
1008
|
{
|
|
1009
1009
|
variant: "neutral",
|
|
@@ -1067,7 +1067,7 @@ function yn({
|
|
|
1067
1067
|
bookLabel: p
|
|
1068
1068
|
}) {
|
|
1069
1069
|
var M, R;
|
|
1070
|
-
const { t: f, i18n: x } = P("ui"), b =
|
|
1070
|
+
const { t: f, i18n: x } = P("ui"), b = _(() => {
|
|
1071
1071
|
if (e.nextAvailableSlot)
|
|
1072
1072
|
try {
|
|
1073
1073
|
return new Intl.DateTimeFormat(x.language, {
|
|
@@ -1220,8 +1220,8 @@ function Ve({
|
|
|
1220
1220
|
const h = R.current;
|
|
1221
1221
|
if (!h || typeof IntersectionObserver > "u") return;
|
|
1222
1222
|
const L = new IntersectionObserver(
|
|
1223
|
-
(
|
|
1224
|
-
for (const B of
|
|
1223
|
+
(T) => {
|
|
1224
|
+
for (const B of T)
|
|
1225
1225
|
B.isIntersecting && (q("serp_load_more", {
|
|
1226
1226
|
currentCount: e.length
|
|
1227
1227
|
}), x());
|
|
@@ -1367,7 +1367,7 @@ function Ie({
|
|
|
1367
1367
|
staticPreview: k,
|
|
1368
1368
|
mapHandleRef: I
|
|
1369
1369
|
}) {
|
|
1370
|
-
const { t: M } = P("ui"), R =
|
|
1370
|
+
const { t: M } = P("ui"), R = _(
|
|
1371
1371
|
() => e.filter(
|
|
1372
1372
|
(v) => !!v.location
|
|
1373
1373
|
).map((v) => ({
|
|
@@ -1379,20 +1379,20 @@ function Ie({
|
|
|
1379
1379
|
label: v.name
|
|
1380
1380
|
})),
|
|
1381
1381
|
[e]
|
|
1382
|
-
), h =
|
|
1382
|
+
), h = _(
|
|
1383
1383
|
() => R.map((v) => ({ ...v.position, id: v.id })),
|
|
1384
1384
|
[R]
|
|
1385
|
-
), L =
|
|
1385
|
+
), L = _(
|
|
1386
1386
|
() => R.map((v) => v.id).sort().join("|"),
|
|
1387
1387
|
[R]
|
|
1388
|
-
),
|
|
1388
|
+
), T = _(() => {
|
|
1389
1389
|
if (t) return t;
|
|
1390
1390
|
const v = sn(e);
|
|
1391
1391
|
return v ? {
|
|
1392
1392
|
lat: (v.north + v.south) / 2,
|
|
1393
1393
|
lng: (v.east + v.west) / 2
|
|
1394
1394
|
} : { lat: 45.4642, lng: 9.19 };
|
|
1395
|
-
}, [e, t]), B =
|
|
1395
|
+
}, [e, t]), B = _(
|
|
1396
1396
|
() => c ? (v) => {
|
|
1397
1397
|
const D = e.find((W) => W.id === v);
|
|
1398
1398
|
return D ? /* @__PURE__ */ n(
|
|
@@ -1421,7 +1421,7 @@ function Ie({
|
|
|
1421
1421
|
ref: I,
|
|
1422
1422
|
apiKey: s ?? "",
|
|
1423
1423
|
mapId: r,
|
|
1424
|
-
center:
|
|
1424
|
+
center: T,
|
|
1425
1425
|
zoom: i,
|
|
1426
1426
|
markers: R,
|
|
1427
1427
|
fitToPoints: h,
|
|
@@ -1434,6 +1434,7 @@ function Ie({
|
|
|
1434
1434
|
staticPreview: k,
|
|
1435
1435
|
onConsentRequest: N,
|
|
1436
1436
|
onBoundsChange: z,
|
|
1437
|
+
onClusterClick: ({ count: v }) => q("serp_map_cluster_clicked", { count: v }),
|
|
1437
1438
|
onMarkerClick: (v) => {
|
|
1438
1439
|
if (v == null) {
|
|
1439
1440
|
m();
|
|
@@ -1560,7 +1561,7 @@ function Cn(e) {
|
|
|
1560
1561
|
onConsentRequest: I,
|
|
1561
1562
|
onBoundsChange: M,
|
|
1562
1563
|
listContainerRef: R
|
|
1563
|
-
} = e, { t: h } = P("ui"), [L,
|
|
1564
|
+
} = e, { t: h } = P("ui"), [L, T] = G(!1), B = Te("(min-width: 1024px)"), z = p ? d ?? /* @__PURE__ */ n(ze, { onRetry: f, headingLevel: e.headingLevel }) : t.length === 0 && !c ? o ?? /* @__PURE__ */ n($e, { headingLevel: e.headingLevel }) : /* @__PURE__ */ n(
|
|
1564
1565
|
Ve,
|
|
1565
1566
|
{
|
|
1566
1567
|
results: t,
|
|
@@ -1620,11 +1621,11 @@ function Cn(e) {
|
|
|
1620
1621
|
intent: "primary",
|
|
1621
1622
|
size: "md",
|
|
1622
1623
|
startIcon: /* @__PURE__ */ n(Wt, { "aria-hidden": "true" }),
|
|
1623
|
-
onClick: () =>
|
|
1624
|
+
onClick: () => T(!0),
|
|
1624
1625
|
children: h("practiceResults.viewMap")
|
|
1625
1626
|
}
|
|
1626
1627
|
) }),
|
|
1627
|
-
/* @__PURE__ */ n(K.Root, { open: L, onOpenChange:
|
|
1628
|
+
/* @__PURE__ */ n(K.Root, { open: L, onOpenChange: T, children: /* @__PURE__ */ g(K.Content, { side: "bottom", size: "lg", children: [
|
|
1628
1629
|
/* @__PURE__ */ n(K.Header, { children: /* @__PURE__ */ n(K.Title, { children: h("practiceResults.map.label") }) }),
|
|
1629
1630
|
/* @__PURE__ */ g(K.Body, { children: [
|
|
1630
1631
|
/* @__PURE__ */ n(K.Description, { className: "ds:sr-only", children: h("practiceResults.sheet.description") }),
|
|
@@ -1733,7 +1734,7 @@ function Sn({ value: e, onChange: t }) {
|
|
|
1733
1734
|
}
|
|
1734
1735
|
function Nn(e, t, i) {
|
|
1735
1736
|
const [s, r] = G(null), [a, l] = G(null);
|
|
1736
|
-
return
|
|
1737
|
+
return _e(() => {
|
|
1737
1738
|
const m = e.current;
|
|
1738
1739
|
if (!i || !m || typeof window > "u") {
|
|
1739
1740
|
r(null), l(null);
|
|
@@ -1805,16 +1806,16 @@ function Ln(e) {
|
|
|
1805
1806
|
listContainerRef: R,
|
|
1806
1807
|
facets: h,
|
|
1807
1808
|
value: L,
|
|
1808
|
-
onChange:
|
|
1809
|
+
onChange: T
|
|
1809
1810
|
} = e, { t: B } = P("ui"), [z, v] = G(
|
|
1810
1811
|
() => e.mapPreview && !k ? "peek" : "half"
|
|
1811
1812
|
), D = F(!1), W = H((S) => {
|
|
1812
1813
|
D.current = !0, v(S);
|
|
1813
1814
|
}, []);
|
|
1814
|
-
|
|
1815
|
+
_e(() => {
|
|
1815
1816
|
k && !D.current && v((S) => S === "peek" ? "half" : S);
|
|
1816
1817
|
}, [k]);
|
|
1817
|
-
const ee = Rn[z], Q =
|
|
1818
|
+
const ee = Rn[z], Q = Te("(min-width: 1024px)"), O = F(null), se = F(null), te = Nn(
|
|
1818
1819
|
O,
|
|
1819
1820
|
se,
|
|
1820
1821
|
!Q && !!e.mapPreview
|
|
@@ -1876,7 +1877,7 @@ function Ln(e) {
|
|
|
1876
1877
|
{
|
|
1877
1878
|
facets: h,
|
|
1878
1879
|
value: L.facets,
|
|
1879
|
-
onChange: (S) =>
|
|
1880
|
+
onChange: (S) => T({ ...L, facets: S }),
|
|
1880
1881
|
floating: !0
|
|
1881
1882
|
}
|
|
1882
1883
|
)
|
|
@@ -1900,7 +1901,7 @@ function Ln(e) {
|
|
|
1900
1901
|
// the map column is `lg:sticky lg:h-[44rem]` (stays visible
|
|
1901
1902
|
// as the patient scrolls cards) and the rail renders at
|
|
1902
1903
|
// natural height. Single page scroll.
|
|
1903
|
-
/* @__PURE__ */ g(
|
|
1904
|
+
/* @__PURE__ */ g(_t, { children: [
|
|
1904
1905
|
/* @__PURE__ */ n(Be, { variantBodyProps: e }),
|
|
1905
1906
|
/* @__PURE__ */ g("div", { className: "ds:grid ds:grid-cols-[65fr_35fr] ds:gap-[var(--spacing-lg)] ds:items-start", children: [
|
|
1906
1907
|
/* @__PURE__ */ n("div", { className: "ds:sticky ds:top-[var(--spacing-md)] ds:h-[44rem]", children: oe }),
|
|
@@ -1967,7 +1968,7 @@ function Ln(e) {
|
|
|
1967
1968
|
{
|
|
1968
1969
|
options: e.sortOptions,
|
|
1969
1970
|
value: L.sort ?? "relevance",
|
|
1970
|
-
onChange: (S) =>
|
|
1971
|
+
onChange: (S) => T({ ...L, sort: S })
|
|
1971
1972
|
}
|
|
1972
1973
|
) }) : null,
|
|
1973
1974
|
re
|
|
@@ -2021,7 +2022,7 @@ function Pn(e) {
|
|
|
2021
2022
|
b
|
|
2022
2023
|
] });
|
|
2023
2024
|
}
|
|
2024
|
-
const Mn =
|
|
2025
|
+
const Mn = Tt(function({
|
|
2025
2026
|
variant: t = "split-list-map",
|
|
2026
2027
|
results: i,
|
|
2027
2028
|
contentLang: s,
|
|
@@ -2044,7 +2045,7 @@ const Mn = _t(function({
|
|
|
2044
2045
|
onResultSelect: R,
|
|
2045
2046
|
loading: h,
|
|
2046
2047
|
emptyResultsSlot: L,
|
|
2047
|
-
errorSlot:
|
|
2048
|
+
errorSlot: T,
|
|
2048
2049
|
error: B,
|
|
2049
2050
|
onRetry: z,
|
|
2050
2051
|
heading: v,
|
|
@@ -2058,7 +2059,7 @@ const Mn = _t(function({
|
|
|
2058
2059
|
className: re,
|
|
2059
2060
|
...oe
|
|
2060
2061
|
}, be) {
|
|
2061
|
-
const { t: S, i18n: Ee } = P("ui"), [ie, $] = G(null), [Ke, ne] = G(null), [xe, E] = G(null), [we, ht] = G(null), V =
|
|
2062
|
+
const { t: S, i18n: Ee } = P("ui"), [ie, $] = G(null), [Ke, ne] = G(null), [xe, E] = G(null), [we, ht] = G(null), V = Te("(min-width: 1024px)"), le = F(/* @__PURE__ */ new Set()), ye = F(/* @__PURE__ */ new Set()), gt = F(null), ce = F(null), ke = _(
|
|
2062
2063
|
() => ({
|
|
2063
2064
|
getVariant: () => t,
|
|
2064
2065
|
scrollToResult: (u) => {
|
|
@@ -2097,16 +2098,16 @@ const Mn = _t(function({
|
|
|
2097
2098
|
totalCount: r ?? i.length
|
|
2098
2099
|
}), le.current = /* @__PURE__ */ new Set(), ye.current = /* @__PURE__ */ new Set());
|
|
2099
2100
|
}, [t]);
|
|
2100
|
-
const Ce = F(!1), Re =
|
|
2101
|
+
const Ce = F(!1), Re = _(
|
|
2101
2102
|
() => Yt(l ?? [], i, k.facets),
|
|
2102
2103
|
[l, i, k.facets]
|
|
2103
|
-
), de =
|
|
2104
|
+
), de = _(
|
|
2104
2105
|
() => M ? Je.filter((u) => M.includes(u)) : Je,
|
|
2105
2106
|
[M]
|
|
2106
|
-
), ue = a ? "distance" : "relevance", qe = k.sort ?? ue, Se = de.includes(qe) ? qe : de.includes(ue) ? ue : de[0] ?? ue, A =
|
|
2107
|
+
), ue = a ? "distance" : "relevance", qe = k.sort ?? ue, Se = de.includes(qe) ? qe : de.includes(ue) ? ue : de[0] ?? ue, A = _(() => {
|
|
2107
2108
|
const u = en(i, k.facets, Re);
|
|
2108
2109
|
return an(u, Se, a);
|
|
2109
|
-
}, [i, k.facets, Re, Se, a]), wt =
|
|
2110
|
+
}, [i, k.facets, Re, Se, a]), wt = _(
|
|
2110
2111
|
() => s ? A.map(
|
|
2111
2112
|
(u) => u.contentLang ? u : { ...u, contentLang: s }
|
|
2112
2113
|
) : A,
|
|
@@ -2176,7 +2177,7 @@ const Mn = _t(function({
|
|
|
2176
2177
|
},
|
|
2177
2178
|
[V]
|
|
2178
2179
|
);
|
|
2179
|
-
|
|
2180
|
+
_e(() => {
|
|
2180
2181
|
if (!we) return;
|
|
2181
2182
|
const u = ce.current, C = u == null ? void 0 : u.querySelector(
|
|
2182
2183
|
`[data-component="practice-result-card"][data-result-id="${CSS.escape(we.id)}"]`
|
|
@@ -2255,7 +2256,7 @@ const Mn = _t(function({
|
|
|
2255
2256
|
onBoundsChange: d,
|
|
2256
2257
|
loadingSkeletons: It,
|
|
2257
2258
|
emptyResultsSlot: L,
|
|
2258
|
-
errorSlot:
|
|
2259
|
+
errorSlot: T,
|
|
2259
2260
|
error: B,
|
|
2260
2261
|
onRetry: z,
|
|
2261
2262
|
heading: v,
|
|
@@ -2313,4 +2314,4 @@ export {
|
|
|
2313
2314
|
Mn as P,
|
|
2314
2315
|
Qt as p
|
|
2315
2316
|
};
|
|
2316
|
-
//# sourceMappingURL=practice-results-
|
|
2317
|
+
//# sourceMappingURL=practice-results-b3uchdBn.js.map
|