rk-designsystem 1.1.51 → 1.1.52
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/componentlibrary.es.js +330 -322
- package/dist/componentlibrary.umd.js +10 -9
- package/dist/rk-designsystem.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Dt, { forwardRef as ue, useState as oe, useEffect as
|
|
2
|
-
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as qe, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as
|
|
3
|
-
import { startOfMonth as ke, isValid as Ve, isSameMonth as
|
|
4
|
-
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as
|
|
1
|
+
import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as ve, useCallback as ae, useRef as Ke, createContext as qt, useContext as Yt } from "react";
|
|
2
|
+
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as qe, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as gn, Dropdown as pn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as bn, Heading as vn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as Ln, Search as An, SearchInput as Fn, SearchClear as _n, SearchButton as En, Select as Bn, Skeleton as Nn, SkipLink as Pn, EXPERIMENTAL_Suggestion as Mn, Switch as Rn, Table as zn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as Un } from "@digdir/designsystemet-react";
|
|
3
|
+
import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as Lt, format as Te, addDays as At, subMonths as Kn, addMonths as qn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
|
|
4
|
+
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as gt, XMarkIcon as pt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as eo, HeartIcon as to } from "@navikt/aksel-icons";
|
|
5
5
|
var Be = { exports: {} }, Se = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -55,11 +55,11 @@ function oo() {
|
|
|
55
55
|
switch (c) {
|
|
56
56
|
case v:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case m:
|
|
59
59
|
return "Profiler";
|
|
60
60
|
case p:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case E:
|
|
63
63
|
return "Suspense";
|
|
64
64
|
case j:
|
|
65
65
|
return "SuspenseList";
|
|
@@ -72,16 +72,16 @@ function oo() {
|
|
|
72
72
|
), c.$$typeof) {
|
|
73
73
|
case b:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
75
|
+
case _:
|
|
76
76
|
return c.displayName || "Context";
|
|
77
77
|
case x:
|
|
78
78
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
79
|
-
case
|
|
79
|
+
case F:
|
|
80
80
|
var A = c.render;
|
|
81
81
|
return c = c.displayName, c || (c = A.displayName || A.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
82
82
|
case L:
|
|
83
83
|
return A = c.displayName || null, A !== null ? A : t(c.type) || "Memo";
|
|
84
|
-
case
|
|
84
|
+
case B:
|
|
85
85
|
A = c._payload, c = c._init;
|
|
86
86
|
try {
|
|
87
87
|
return t(c(A));
|
|
@@ -112,7 +112,7 @@ function oo() {
|
|
|
112
112
|
}
|
|
113
113
|
function s(c) {
|
|
114
114
|
if (c === v) return "<>";
|
|
115
|
-
if (typeof c == "object" && c !== null && c.$$typeof ===
|
|
115
|
+
if (typeof c == "object" && c !== null && c.$$typeof === B)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
118
|
var A = t(c);
|
|
@@ -137,7 +137,7 @@ function oo() {
|
|
|
137
137
|
}
|
|
138
138
|
function d(c, A) {
|
|
139
139
|
function P() {
|
|
140
|
-
|
|
140
|
+
U || (U = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
142
|
A
|
|
143
143
|
));
|
|
@@ -149,7 +149,7 @@ function oo() {
|
|
|
149
149
|
}
|
|
150
150
|
function l() {
|
|
151
151
|
var c = t(this.type);
|
|
152
|
-
return
|
|
152
|
+
return ne[c] || (ne[c] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
155
155
|
}
|
|
@@ -235,21 +235,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function f(c) {
|
|
238
|
-
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof ===
|
|
238
|
+
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === B && (c._payload.status === "fulfilled" ? k(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
239
239
|
}
|
|
240
240
|
function k(c) {
|
|
241
241
|
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var g = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), H = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, R = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
g = {
|
|
247
247
|
react_stack_bottom_frame: function(c) {
|
|
248
248
|
return c();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var U, ne = {}, Y = g.react_stack_bottom_frame.bind(
|
|
252
|
+
g,
|
|
253
253
|
a
|
|
254
254
|
)(), q = D(s(a)), re = {};
|
|
255
255
|
we.Fragment = v, we.jsx = function(c, A, P) {
|
|
@@ -320,7 +320,7 @@ function je(t) {
|
|
|
320
320
|
const s = n.width, i = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], a = e.match(i);
|
|
321
321
|
if (!a)
|
|
322
322
|
return null;
|
|
323
|
-
const o = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ?
|
|
323
|
+
const o = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? mo(d, (f) => f.test(o)) : (
|
|
324
324
|
// [TODO] -- I challenge you to fix the type
|
|
325
325
|
uo(d, (f) => f.test(o))
|
|
326
326
|
);
|
|
@@ -338,12 +338,12 @@ function uo(t, e) {
|
|
|
338
338
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
339
339
|
return n;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function mo(t, e) {
|
|
342
342
|
for (let n = 0; n < t.length; n++)
|
|
343
343
|
if (e(t[n]))
|
|
344
344
|
return n;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function go(t) {
|
|
347
347
|
return (e, n = {}) => {
|
|
348
348
|
const s = e.match(t.matchPattern);
|
|
349
349
|
if (!s) return null;
|
|
@@ -628,7 +628,7 @@ const po = {
|
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
630
|
}, $o = {
|
|
631
|
-
ordinalNumber:
|
|
631
|
+
ordinalNumber: go({
|
|
632
632
|
matchPattern: Lo,
|
|
633
633
|
parsePattern: Ao,
|
|
634
634
|
valueCallback: (t) => parseInt(t, 10)
|
|
@@ -754,35 +754,35 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
754
754
|
const [a, o] = oe(
|
|
755
755
|
ke(e && Ve(e) ? e : t)
|
|
756
756
|
);
|
|
757
|
-
|
|
757
|
+
te(() => {
|
|
758
758
|
if (e && Ve(e)) {
|
|
759
|
-
const
|
|
760
|
-
|
|
759
|
+
const m = ke(e);
|
|
760
|
+
mt(m, a) || o(m);
|
|
761
761
|
}
|
|
762
762
|
}, [e]);
|
|
763
763
|
const d = ve(() => ke(/* @__PURE__ */ new Date()), []), l = ve(() => !1, [a, d]), u = ve(
|
|
764
764
|
() => Xo(a),
|
|
765
765
|
[a]
|
|
766
766
|
), y = ve(() => {
|
|
767
|
-
const
|
|
768
|
-
return Array.from({ length: 7 }).map((x,
|
|
769
|
-
const
|
|
770
|
-
return vt(
|
|
767
|
+
const m = Lt(/* @__PURE__ */ new Date(), { locale: be });
|
|
768
|
+
return Array.from({ length: 7 }).map((x, _) => {
|
|
769
|
+
const F = Te(At(m, _), "EEEEEE", { locale: be });
|
|
770
|
+
return vt(F);
|
|
771
771
|
});
|
|
772
772
|
}, []), f = ae(() => {
|
|
773
|
-
l || o((
|
|
773
|
+
l || o((m) => ke(Kn(m, 1)));
|
|
774
774
|
}, [l]), k = ae(() => {
|
|
775
|
-
o((
|
|
776
|
-
}, []),
|
|
777
|
-
(
|
|
778
|
-
n && n(
|
|
775
|
+
o((m) => ke(qn(m, 1)));
|
|
776
|
+
}, []), g = ae(
|
|
777
|
+
(m) => {
|
|
778
|
+
n && n(m);
|
|
779
779
|
},
|
|
780
780
|
[n]
|
|
781
781
|
), h = ae(
|
|
782
|
-
(
|
|
783
|
-
(
|
|
782
|
+
(m, x) => {
|
|
783
|
+
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(x));
|
|
784
784
|
},
|
|
785
|
-
[
|
|
785
|
+
[g]
|
|
786
786
|
), b = Te(a, "MMMM", { locale: be }), v = Te(a, "yyyy", { locale: be }), p = `${vt(b)} ${v}`;
|
|
787
787
|
return /* @__PURE__ */ r.jsxs(
|
|
788
788
|
"div",
|
|
@@ -817,28 +817,28 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
817
817
|
)
|
|
818
818
|
] })
|
|
819
819
|
] }),
|
|
820
|
-
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((
|
|
821
|
-
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((
|
|
822
|
-
const x =
|
|
820
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
|
|
821
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
|
|
822
|
+
const x = mt(m, a), _ = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
823
|
se.dateCell,
|
|
824
824
|
x ? "" : se.otherMonth,
|
|
825
|
-
|
|
825
|
+
_ ? se.selectedDate : "",
|
|
826
826
|
// Utheving basert på prop
|
|
827
|
-
|
|
827
|
+
F && !_ ? se.todayDate : ""
|
|
828
828
|
].filter(Boolean).join(" ");
|
|
829
829
|
return /* @__PURE__ */ r.jsx(
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
|
-
className:
|
|
833
|
-
onClick: () => m
|
|
834
|
-
onKeyDown: (j) => h(j,
|
|
832
|
+
className: E,
|
|
833
|
+
onClick: () => g(m),
|
|
834
|
+
onKeyDown: (j) => h(j, m),
|
|
835
835
|
role: "button",
|
|
836
836
|
tabIndex: 0,
|
|
837
|
-
"aria-pressed":
|
|
838
|
-
"aria-label": Te(
|
|
839
|
-
children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(
|
|
837
|
+
"aria-pressed": _ ?? !1,
|
|
838
|
+
"aria-label": Te(m, "PPP", { locale: be }),
|
|
839
|
+
children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
m.toISOString()
|
|
842
842
|
);
|
|
843
843
|
}) })
|
|
844
844
|
]
|
|
@@ -885,22 +885,22 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
885
885
|
onChange: y,
|
|
886
886
|
readOnly: f,
|
|
887
887
|
placeholder: k = "dd.mm.åååå",
|
|
888
|
-
id:
|
|
888
|
+
id: g,
|
|
889
889
|
name: h,
|
|
890
890
|
required: b,
|
|
891
891
|
disabled: v,
|
|
892
892
|
onClick: p,
|
|
893
|
-
onFocus:
|
|
893
|
+
onFocus: m,
|
|
894
894
|
// Send ekstern onFocus videre
|
|
895
895
|
onBlur: x,
|
|
896
896
|
// Send ekstern onBlur videre
|
|
897
|
-
autoComplete:
|
|
898
|
-
"aria-label":
|
|
899
|
-
"aria-labelledby":
|
|
897
|
+
autoComplete: _ = "off",
|
|
898
|
+
"aria-label": F,
|
|
899
|
+
"aria-labelledby": E,
|
|
900
900
|
description: j,
|
|
901
901
|
error: L,
|
|
902
902
|
// Bruk error-prop for styling
|
|
903
|
-
"data-color":
|
|
903
|
+
"data-color": B,
|
|
904
904
|
// <-- Destrukturering
|
|
905
905
|
"data-size": $,
|
|
906
906
|
// <-- Destrukturering
|
|
@@ -916,22 +916,22 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
916
916
|
return yt(W);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [D,
|
|
919
|
+
), [D, U] = oe(
|
|
920
920
|
() => R(l ?? u)
|
|
921
921
|
);
|
|
922
|
-
|
|
922
|
+
te(() => {
|
|
923
923
|
if (H) {
|
|
924
924
|
const I = R(l);
|
|
925
|
-
I !== D && (
|
|
925
|
+
I !== D && (U(I), M.current && M.current.value !== I && (M.current.value = I));
|
|
926
926
|
}
|
|
927
927
|
}, [l, H, D, R]);
|
|
928
|
-
const
|
|
928
|
+
const ne = ae(
|
|
929
929
|
(I) => {
|
|
930
930
|
const C = I.target, W = C.value, J = D, X = xt(W).slice(0, 8), V = Tt(X), w = yt(V);
|
|
931
931
|
let O = 0;
|
|
932
932
|
const G = V.length;
|
|
933
933
|
G <= 2 ? O = G : G <= 4 ? O = G + 1 : O = G + 2, O = Math.min(O, w.length), requestAnimationFrame(() => {
|
|
934
|
-
if (M.current && (
|
|
934
|
+
if (M.current && (U(w), M.current.value = w, M.current.setSelectionRange(O, O), (w !== J || H) && y)) {
|
|
935
935
|
const Z = {
|
|
936
936
|
...I,
|
|
937
937
|
target: { ...C, value: w }
|
|
@@ -951,18 +951,18 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
951
951
|
pe.suffixButton,
|
|
952
952
|
i ? pe.suffixButtonInteractive : ""
|
|
953
953
|
].filter(Boolean).join(" ");
|
|
954
|
-
!n && !
|
|
955
|
-
const A = n && typeof n == "string" ?
|
|
954
|
+
!n && !F && !E && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
955
|
+
const A = n && typeof n == "string" ? E || `${g}-label` : void 0, P = j ? `${g}-desc` : void 0, z = L ? `${g}-err` : void 0, S = [P, z].filter(Boolean).join(" ") || void 0;
|
|
956
956
|
return (
|
|
957
957
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
958
958
|
/* @__PURE__ */ r.jsxs(
|
|
959
959
|
"div",
|
|
960
960
|
{
|
|
961
961
|
className: Y,
|
|
962
|
-
"data-color":
|
|
962
|
+
"data-color": B,
|
|
963
963
|
"data-size": $,
|
|
964
964
|
children: [
|
|
965
|
-
n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: A, htmlFor:
|
|
965
|
+
n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: A, htmlFor: g, children: n }) : n,
|
|
966
966
|
j && /* @__PURE__ */ r.jsx("p", { id: P, className: pe.description, children: j }),
|
|
967
967
|
/* @__PURE__ */ r.jsxs("div", { className: q, children: [
|
|
968
968
|
/* @__PURE__ */ r.jsx(
|
|
@@ -976,16 +976,16 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
976
976
|
value: D,
|
|
977
977
|
readOnly: f,
|
|
978
978
|
placeholder: k,
|
|
979
|
-
id:
|
|
979
|
+
id: g,
|
|
980
980
|
name: h,
|
|
981
981
|
required: b,
|
|
982
982
|
disabled: v,
|
|
983
983
|
onClick: p,
|
|
984
|
-
onChange:
|
|
985
|
-
onFocus:
|
|
984
|
+
onChange: ne,
|
|
985
|
+
onFocus: m,
|
|
986
986
|
onBlur: x,
|
|
987
|
-
autoComplete:
|
|
988
|
-
"aria-label":
|
|
987
|
+
autoComplete: _,
|
|
988
|
+
"aria-label": F,
|
|
989
989
|
"aria-labelledby": A,
|
|
990
990
|
"aria-describedby": S,
|
|
991
991
|
"aria-invalid": !!L,
|
|
@@ -1056,21 +1056,21 @@ function Re(t) {
|
|
|
1056
1056
|
function Ct(t) {
|
|
1057
1057
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function K(t) {
|
|
1060
1060
|
return Math.abs(t);
|
|
1061
1061
|
}
|
|
1062
1062
|
function et(t) {
|
|
1063
1063
|
return Math.sign(t);
|
|
1064
1064
|
}
|
|
1065
1065
|
function Ie(t, e) {
|
|
1066
|
-
return
|
|
1066
|
+
return K(t - e);
|
|
1067
1067
|
}
|
|
1068
1068
|
function ur(t, e) {
|
|
1069
|
-
if (t === 0 || e === 0 ||
|
|
1070
|
-
const n = Ie(
|
|
1071
|
-
return
|
|
1069
|
+
if (t === 0 || e === 0 || K(t) <= K(e)) return 0;
|
|
1070
|
+
const n = Ie(K(t), K(e));
|
|
1071
|
+
return K(n / t);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function mr(t) {
|
|
1074
1074
|
return Math.round(t * 100) / 100;
|
|
1075
1075
|
}
|
|
1076
1076
|
function Le(t) {
|
|
@@ -1100,7 +1100,7 @@ function Bt(t, e) {
|
|
|
1100
1100
|
function Je(t, e) {
|
|
1101
1101
|
return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function gr(t, e) {
|
|
1104
1104
|
const n = {
|
|
1105
1105
|
start: s,
|
|
1106
1106
|
center: i,
|
|
@@ -1154,7 +1154,7 @@ function pr(t, e, n, s) {
|
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
function y() {
|
|
1157
|
-
|
|
1157
|
+
g(), i.clear();
|
|
1158
1158
|
}
|
|
1159
1159
|
function f(v) {
|
|
1160
1160
|
if (!l) return;
|
|
@@ -1162,13 +1162,13 @@ function pr(t, e, n, s) {
|
|
|
1162
1162
|
const p = v - o;
|
|
1163
1163
|
for (o = v, d += p; d >= a; )
|
|
1164
1164
|
n(), d -= a;
|
|
1165
|
-
const
|
|
1166
|
-
s(
|
|
1165
|
+
const m = d / a;
|
|
1166
|
+
s(m), l && (l = e.requestAnimationFrame(f));
|
|
1167
1167
|
}
|
|
1168
1168
|
function k() {
|
|
1169
1169
|
l || (l = e.requestAnimationFrame(f));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function g() {
|
|
1172
1172
|
e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
|
|
1173
1173
|
}
|
|
1174
1174
|
function h() {
|
|
@@ -1178,7 +1178,7 @@ function pr(t, e, n, s) {
|
|
|
1178
1178
|
init: u,
|
|
1179
1179
|
destroy: y,
|
|
1180
1180
|
start: k,
|
|
1181
|
-
stop:
|
|
1181
|
+
stop: g,
|
|
1182
1182
|
update: n,
|
|
1183
1183
|
render: s
|
|
1184
1184
|
};
|
|
@@ -1211,7 +1211,7 @@ function fr(t, e) {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
1213
|
function fe(t = 0, e = 0) {
|
|
1214
|
-
const n =
|
|
1214
|
+
const n = K(t - e);
|
|
1215
1215
|
function s(u) {
|
|
1216
1216
|
return u < t;
|
|
1217
1217
|
}
|
|
@@ -1244,7 +1244,7 @@ function Nt(t, e, n) {
|
|
|
1244
1244
|
} = fe(0, t), i = t + 1;
|
|
1245
1245
|
let a = o(e);
|
|
1246
1246
|
function o(k) {
|
|
1247
|
-
return n ?
|
|
1247
|
+
return n ? K((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
1250
|
return a;
|
|
@@ -1266,28 +1266,28 @@ function Nt(t, e, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}
|
|
1269
|
-
function hr(t, e, n, s, i, a, o, d, l, u, y, f, k,
|
|
1269
|
+
function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
1270
1270
|
const {
|
|
1271
1271
|
cross: x,
|
|
1272
|
-
direction:
|
|
1273
|
-
} = t,
|
|
1272
|
+
direction: _
|
|
1273
|
+
} = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
|
|
1274
1274
|
passive: !1
|
|
1275
|
-
}, j = Fe(), L = Fe(),
|
|
1275
|
+
}, j = Fe(), L = Fe(), B = fe(50, 225).constrain(g.measure(20)), $ = {
|
|
1276
1276
|
mouse: 300,
|
|
1277
1277
|
touch: 400
|
|
1278
1278
|
}, N = {
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
1281
|
}, H = h ? 43 : 25;
|
|
1282
|
-
let M = !1, R = 0, D = 0,
|
|
1282
|
+
let M = !1, R = 0, D = 0, U = !1, ne = !1, Y = !1, q = !1;
|
|
1283
1283
|
function re(w) {
|
|
1284
|
-
if (!
|
|
1284
|
+
if (!m) return;
|
|
1285
1285
|
function O(Z) {
|
|
1286
|
-
(Re(
|
|
1286
|
+
(Re(m) || m(w, Z)) && I(Z);
|
|
1287
1287
|
}
|
|
1288
1288
|
const G = e;
|
|
1289
|
-
j.add(G, "dragstart", (Z) => Z.preventDefault(),
|
|
1290
|
-
},
|
|
1289
|
+
j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
|
|
1290
|
+
}, E).add(G, "touchend", () => {
|
|
1291
1291
|
}).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel", W).add(G, "contextmenu", W).add(G, "click", J, !0);
|
|
1292
1292
|
}
|
|
1293
1293
|
function c() {
|
|
@@ -1295,40 +1295,40 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, m, h, b, v, p, g) {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
function A() {
|
|
1297
1297
|
const w = q ? n : e;
|
|
1298
|
-
L.add(w, "touchmove", C,
|
|
1298
|
+
L.add(w, "touchmove", C, E).add(w, "touchend", W).add(w, "mousemove", C, E).add(w, "mouseup", W);
|
|
1299
1299
|
}
|
|
1300
1300
|
function P(w) {
|
|
1301
1301
|
const O = w.nodeName || "";
|
|
1302
|
-
return
|
|
1302
|
+
return F.includes(O);
|
|
1303
1303
|
}
|
|
1304
1304
|
function z() {
|
|
1305
1305
|
return (h ? N : $)[q ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
1307
|
function S(w, O) {
|
|
1308
1308
|
const G = f.add(et(w) * -1), Z = y.byDistance(w, !h).distance;
|
|
1309
|
-
return h ||
|
|
1309
|
+
return h || K(w) < B ? Z : v && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
|
|
1310
1310
|
}
|
|
1311
1311
|
function I(w) {
|
|
1312
1312
|
const O = Je(w, s);
|
|
1313
|
-
q = O, Y = h && O && !w.buttons && M, M = Ie(i.get(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (
|
|
1313
|
+
q = O, Y = h && O && !w.buttons && M, M = Ie(i.get(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (U = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), A(), R = a.readPoint(w), D = a.readPoint(w, x), k.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
1315
|
function C(w) {
|
|
1316
1316
|
if (!Je(w, s) && w.touches.length >= 2) return W(w);
|
|
1317
1317
|
const G = a.readPoint(w), Z = a.readPoint(w, x), le = Ie(G, R), de = Ie(Z, D);
|
|
1318
|
-
if (!
|
|
1318
|
+
if (!ne && !q && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
1319
|
return W(w);
|
|
1320
|
-
const
|
|
1321
|
-
le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(
|
|
1320
|
+
const me = a.pointerMove(w);
|
|
1321
|
+
le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(_(me)), w.preventDefault();
|
|
1322
1322
|
}
|
|
1323
1323
|
function W(w) {
|
|
1324
|
-
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = S(
|
|
1325
|
-
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = S(_(Z), G), de = ur(Z, le), me = H - 10 * de, ce = p + de / 50;
|
|
1325
|
+
ne = !1, U = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), q = !1, k.emit("pointerUp");
|
|
1326
1326
|
}
|
|
1327
1327
|
function J(w) {
|
|
1328
1328
|
Y && (w.stopPropagation(), w.preventDefault(), Y = !1);
|
|
1329
1329
|
}
|
|
1330
1330
|
function X() {
|
|
1331
|
-
return
|
|
1331
|
+
return U;
|
|
1332
1332
|
}
|
|
1333
1333
|
return {
|
|
1334
1334
|
init: re,
|
|
@@ -1349,13 +1349,13 @@ function kr(t, e) {
|
|
|
1349
1349
|
return s = f, i = f, o(f);
|
|
1350
1350
|
}
|
|
1351
1351
|
function l(f) {
|
|
1352
|
-
const k = o(f) - o(i),
|
|
1353
|
-
return i = f,
|
|
1352
|
+
const k = o(f) - o(i), g = a(f) - a(s) > 170;
|
|
1353
|
+
return i = f, g && (s = f), k;
|
|
1354
1354
|
}
|
|
1355
1355
|
function u(f) {
|
|
1356
1356
|
if (!s || !i) return 0;
|
|
1357
|
-
const k = o(i) - o(s),
|
|
1358
|
-
return
|
|
1357
|
+
const k = o(i) - o(s), g = a(f) - a(s), h = a(f) - a(i) > 170, b = k / g;
|
|
1358
|
+
return g && !h && K(b) > 0.1 ? b : 0;
|
|
1359
1359
|
}
|
|
1360
1360
|
return {
|
|
1361
1361
|
pointerDown: d,
|
|
@@ -1399,43 +1399,43 @@ function yr(t, e, n, s, i, a, o) {
|
|
|
1399
1399
|
function k(v) {
|
|
1400
1400
|
return i.measureSize(o.measure(v));
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function g(v) {
|
|
1403
1403
|
if (!a) return;
|
|
1404
1404
|
u = k(t), y = s.map(k);
|
|
1405
|
-
function p(
|
|
1406
|
-
for (const x of
|
|
1405
|
+
function p(m) {
|
|
1406
|
+
for (const x of m) {
|
|
1407
1407
|
if (f) return;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1408
|
+
const _ = x.target === t, F = s.indexOf(x.target), E = _ ? u : y[F], j = k(_ ? t : s[F]);
|
|
1409
|
+
if (K(j - E) >= 0.5) {
|
|
1410
1410
|
v.reInit(), e.emit("resize");
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
l = new ResizeObserver((
|
|
1416
|
-
(Re(a) || a(v,
|
|
1415
|
+
l = new ResizeObserver((m) => {
|
|
1416
|
+
(Re(a) || a(v, m)) && p(m);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
|
-
d.forEach((
|
|
1418
|
+
d.forEach((m) => l.observe(m));
|
|
1419
1419
|
});
|
|
1420
1420
|
}
|
|
1421
1421
|
function h() {
|
|
1422
1422
|
f = !0, l && l.disconnect();
|
|
1423
1423
|
}
|
|
1424
1424
|
return {
|
|
1425
|
-
init:
|
|
1425
|
+
init: g,
|
|
1426
1426
|
destroy: h
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
1429
|
function xr(t, e, n, s, i, a) {
|
|
1430
1430
|
let o = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
|
|
1431
1431
|
function k() {
|
|
1432
|
-
const
|
|
1432
|
+
const E = s.get() - t.get(), j = !l;
|
|
1433
1433
|
let L = 0;
|
|
1434
|
-
return j ? (o = 0, n.set(s), t.set(s), L =
|
|
1434
|
+
return j ? (o = 0, n.set(s), t.set(s), L = E) : (n.set(t), o += E / l, o *= u, y += o, t.add(o), L = y - f), d = et(L), f = y, F;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1436
|
+
function g() {
|
|
1437
|
+
const E = s.get() - e.get();
|
|
1438
|
+
return K(E) < 1e-3;
|
|
1439
1439
|
}
|
|
1440
1440
|
function h() {
|
|
1441
1441
|
return l;
|
|
@@ -1449,27 +1449,27 @@ function xr(t, e, n, s, i, a) {
|
|
|
1449
1449
|
function p() {
|
|
1450
1450
|
return x(i);
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1452
|
+
function m() {
|
|
1453
|
+
return _(a);
|
|
1454
1454
|
}
|
|
1455
|
-
function x(
|
|
1456
|
-
return l =
|
|
1455
|
+
function x(E) {
|
|
1456
|
+
return l = E, F;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return u =
|
|
1458
|
+
function _(E) {
|
|
1459
|
+
return u = E, F;
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const F = {
|
|
1462
1462
|
direction: b,
|
|
1463
1463
|
duration: h,
|
|
1464
1464
|
velocity: v,
|
|
1465
1465
|
seek: k,
|
|
1466
|
-
settled:
|
|
1467
|
-
useBaseFriction:
|
|
1466
|
+
settled: g,
|
|
1467
|
+
useBaseFriction: m,
|
|
1468
1468
|
useBaseDuration: p,
|
|
1469
|
-
useFriction:
|
|
1469
|
+
useFriction: _,
|
|
1470
1470
|
useDuration: x
|
|
1471
1471
|
};
|
|
1472
|
-
return
|
|
1472
|
+
return F;
|
|
1473
1473
|
}
|
|
1474
1474
|
function Tr(t, e, n, s, i) {
|
|
1475
1475
|
const a = i.measure(10), o = i.measure(50), d = fe(0.1, 0.99);
|
|
@@ -1477,13 +1477,13 @@ function Tr(t, e, n, s, i) {
|
|
|
1477
1477
|
function u() {
|
|
1478
1478
|
return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1479
1479
|
}
|
|
1480
|
-
function y(
|
|
1480
|
+
function y(g) {
|
|
1481
1481
|
if (!u()) return;
|
|
1482
|
-
const h = t.reachedMin(e.get()) ? "min" : "max", b =
|
|
1483
|
-
n.subtract(v * p), !
|
|
1482
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", b = K(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / o);
|
|
1483
|
+
n.subtract(v * p), !g && K(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1484
1484
|
}
|
|
1485
|
-
function f(
|
|
1486
|
-
l = !
|
|
1485
|
+
function f(g) {
|
|
1486
|
+
l = !g;
|
|
1487
1487
|
}
|
|
1488
1488
|
return {
|
|
1489
1489
|
shouldConstrain: u,
|
|
@@ -1505,8 +1505,8 @@ function Sr(t, e, n, s, i) {
|
|
|
1505
1505
|
const {
|
|
1506
1506
|
min: v,
|
|
1507
1507
|
max: p
|
|
1508
|
-
} = a,
|
|
1509
|
-
return x ? p :
|
|
1508
|
+
} = a, m = a.constrain(h), x = !b, _ = tt(n, b);
|
|
1509
|
+
return x ? p : _ || u(v, m) ? v : u(p, m) ? p : m;
|
|
1510
1510
|
}).map((h) => parseFloat(h.toFixed(3)));
|
|
1511
1511
|
}
|
|
1512
1512
|
function k() {
|
|
@@ -1539,8 +1539,8 @@ function Cr(t, e, n, s) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
function y(k) {
|
|
1541
1541
|
if (!u(k)) return;
|
|
1542
|
-
const
|
|
1543
|
-
s.forEach((h) => h.add(
|
|
1542
|
+
const g = t * (k * -1);
|
|
1543
|
+
s.forEach((h) => h.add(g));
|
|
1544
1544
|
}
|
|
1545
1545
|
return {
|
|
1546
1546
|
loop: y
|
|
@@ -1565,14 +1565,14 @@ function Dr(t, e, n, s, i) {
|
|
|
1565
1565
|
endEdge: o
|
|
1566
1566
|
} = t, {
|
|
1567
1567
|
groupSlides: d
|
|
1568
|
-
} = i, l = f().map(e.measure), u = k(), y =
|
|
1568
|
+
} = i, l = f().map(e.measure), u = k(), y = g();
|
|
1569
1569
|
function f() {
|
|
1570
|
-
return d(s).map((b) => ie(b)[o] - b[0][a]).map(
|
|
1570
|
+
return d(s).map((b) => ie(b)[o] - b[0][a]).map(K);
|
|
1571
1571
|
}
|
|
1572
1572
|
function k() {
|
|
1573
|
-
return s.map((b) => n[a] - b[a]).map((b) => -
|
|
1573
|
+
return s.map((b) => n[a] - b[a]).map((b) => -K(b));
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function g() {
|
|
1576
1576
|
return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
|
|
1577
1577
|
}
|
|
1578
1578
|
return {
|
|
@@ -1588,14 +1588,14 @@ function Ir(t, e, n, s, i, a) {
|
|
|
1588
1588
|
max: l
|
|
1589
1589
|
} = s, u = y();
|
|
1590
1590
|
function y() {
|
|
1591
|
-
const k = o(a),
|
|
1592
|
-
return n.length === 1 ? [a] :
|
|
1593
|
-
const p = !b,
|
|
1591
|
+
const k = o(a), g = !t || e === "keepSnaps";
|
|
1592
|
+
return n.length === 1 ? [a] : g ? k : k.slice(d, l).map((h, b, v) => {
|
|
1593
|
+
const p = !b, m = tt(v, b);
|
|
1594
1594
|
if (p) {
|
|
1595
1595
|
const x = ie(v[0]) + 1;
|
|
1596
1596
|
return jt(x);
|
|
1597
1597
|
}
|
|
1598
|
-
if (
|
|
1598
|
+
if (m) {
|
|
1599
1599
|
const x = _e(a) - ie(v)[0] + 1;
|
|
1600
1600
|
return jt(x, ie(v)[0]);
|
|
1601
1601
|
}
|
|
@@ -1613,13 +1613,13 @@ function Lr(t, e, n, s, i) {
|
|
|
1613
1613
|
constrain: d
|
|
1614
1614
|
} = s;
|
|
1615
1615
|
function l(h) {
|
|
1616
|
-
return h.concat().sort((b, v) =>
|
|
1616
|
+
return h.concat().sort((b, v) => K(b) - K(v))[0];
|
|
1617
1617
|
}
|
|
1618
1618
|
function u(h) {
|
|
1619
|
-
const b = t ? o(h) : d(h), v = e.map((
|
|
1620
|
-
diff: y(
|
|
1619
|
+
const b = t ? o(h) : d(h), v = e.map((m, x) => ({
|
|
1620
|
+
diff: y(m - b, 0),
|
|
1621
1621
|
index: x
|
|
1622
|
-
})).sort((
|
|
1622
|
+
})).sort((m, x) => K(m.diff) - K(x.diff)), {
|
|
1623
1623
|
index: p
|
|
1624
1624
|
} = v[0];
|
|
1625
1625
|
return {
|
|
@@ -1631,7 +1631,7 @@ function Lr(t, e, n, s, i) {
|
|
|
1631
1631
|
const v = [h, h + n, h - n];
|
|
1632
1632
|
if (!t) return h;
|
|
1633
1633
|
if (!b) return l(v);
|
|
1634
|
-
const p = v.filter((
|
|
1634
|
+
const p = v.filter((m) => et(m) === b);
|
|
1635
1635
|
return p.length ? l(p) : ie(v) - n;
|
|
1636
1636
|
}
|
|
1637
1637
|
function f(h, b) {
|
|
@@ -1644,16 +1644,16 @@ function Lr(t, e, n, s, i) {
|
|
|
1644
1644
|
function k(h, b) {
|
|
1645
1645
|
const v = i.get() + h, {
|
|
1646
1646
|
index: p,
|
|
1647
|
-
distance:
|
|
1647
|
+
distance: m
|
|
1648
1648
|
} = u(v), x = !t && a(v);
|
|
1649
1649
|
if (!b || x) return {
|
|
1650
1650
|
index: p,
|
|
1651
1651
|
distance: h
|
|
1652
1652
|
};
|
|
1653
|
-
const
|
|
1653
|
+
const _ = e[p] - m, F = h + y(_, 0);
|
|
1654
1654
|
return {
|
|
1655
1655
|
index: p,
|
|
1656
|
-
distance:
|
|
1656
|
+
distance: F
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
1659
|
return {
|
|
@@ -1664,15 +1664,15 @@ function Lr(t, e, n, s, i) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
function Ar(t, e, n, s, i, a, o) {
|
|
1666
1666
|
function d(f) {
|
|
1667
|
-
const k = f.distance,
|
|
1668
|
-
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())),
|
|
1667
|
+
const k = f.distance, g = f.index !== e.get();
|
|
1668
|
+
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(f.index), o.emit("select"));
|
|
1669
1669
|
}
|
|
1670
1670
|
function l(f, k) {
|
|
1671
|
-
const
|
|
1672
|
-
d(
|
|
1671
|
+
const g = i.byDistance(f, k);
|
|
1672
|
+
d(g);
|
|
1673
1673
|
}
|
|
1674
1674
|
function u(f, k) {
|
|
1675
|
-
const
|
|
1675
|
+
const g = e.clone().set(f), h = i.byIndex(g.get(), k);
|
|
1676
1676
|
d(h);
|
|
1677
1677
|
}
|
|
1678
1678
|
return {
|
|
@@ -1686,22 +1686,22 @@ function Fr(t, e, n, s, i, a, o, d) {
|
|
|
1686
1686
|
capture: !0
|
|
1687
1687
|
};
|
|
1688
1688
|
let u = 0;
|
|
1689
|
-
function y(
|
|
1689
|
+
function y(g) {
|
|
1690
1690
|
if (!d) return;
|
|
1691
1691
|
function h(b) {
|
|
1692
1692
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
1693
1693
|
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1694
|
-
const
|
|
1695
|
-
Qe(
|
|
1694
|
+
const m = n.findIndex((x) => x.includes(b));
|
|
1695
|
+
Qe(m) && (i.useDuration(0), s.index(m, 0), o.emit("slideFocus"));
|
|
1696
1696
|
}
|
|
1697
1697
|
a.add(document, "keydown", f, !1), e.forEach((b, v) => {
|
|
1698
1698
|
a.add(b, "focus", (p) => {
|
|
1699
|
-
(Re(d) || d(
|
|
1699
|
+
(Re(d) || d(g, p)) && h(v);
|
|
1700
1700
|
}, l);
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
|
-
function f(
|
|
1704
|
-
|
|
1703
|
+
function f(g) {
|
|
1704
|
+
g.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
|
|
1705
1705
|
}
|
|
1706
1706
|
return {
|
|
1707
1707
|
init: y
|
|
@@ -1742,8 +1742,8 @@ function Pt(t, e) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function l(k) {
|
|
1744
1744
|
if (a) return;
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1745
|
+
const g = mr(t.direction(k));
|
|
1746
|
+
g !== i && (s.transform = n(g), i = g);
|
|
1747
1747
|
}
|
|
1748
1748
|
function u(k) {
|
|
1749
1749
|
a = !k;
|
|
@@ -1758,23 +1758,23 @@ function Pt(t, e) {
|
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
1760
|
function _r(t, e, n, s, i, a, o, d, l) {
|
|
1761
|
-
const y = Le(i), f = Le(i).reverse(), k = p().concat(
|
|
1762
|
-
function
|
|
1763
|
-
return j.reduce((
|
|
1761
|
+
const y = Le(i), f = Le(i).reverse(), k = p().concat(m());
|
|
1762
|
+
function g(j, L) {
|
|
1763
|
+
return j.reduce((B, $) => B - i[$], L);
|
|
1764
1764
|
}
|
|
1765
1765
|
function h(j, L) {
|
|
1766
|
-
return j.reduce((
|
|
1766
|
+
return j.reduce((B, $) => g(B, L) > 0 ? B.concat([$]) : B, []);
|
|
1767
1767
|
}
|
|
1768
1768
|
function b(j) {
|
|
1769
|
-
return a.map((L,
|
|
1770
|
-
start: L - s[
|
|
1769
|
+
return a.map((L, B) => ({
|
|
1770
|
+
start: L - s[B] + 0.5 + j,
|
|
1771
1771
|
end: L + e - 0.5 + j
|
|
1772
1772
|
}));
|
|
1773
1773
|
}
|
|
1774
|
-
function v(j, L,
|
|
1774
|
+
function v(j, L, B) {
|
|
1775
1775
|
const $ = b(L);
|
|
1776
1776
|
return j.map((N) => {
|
|
1777
|
-
const H =
|
|
1777
|
+
const H = B ? 0 : -n, M = B ? n : 0, R = B ? "end" : "start", D = $[N][R];
|
|
1778
1778
|
return {
|
|
1779
1779
|
index: N,
|
|
1780
1780
|
loopPoint: D,
|
|
@@ -1788,7 +1788,7 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1788
1788
|
const j = o[0], L = h(f, j);
|
|
1789
1789
|
return v(L, n, !1);
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function m() {
|
|
1792
1792
|
const j = e - o[0] - 1, L = h(y, j);
|
|
1793
1793
|
return v(L, -n, !0);
|
|
1794
1794
|
}
|
|
@@ -1796,27 +1796,27 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1796
1796
|
return k.every(({
|
|
1797
1797
|
index: j
|
|
1798
1798
|
}) => {
|
|
1799
|
-
const L = y.filter((
|
|
1800
|
-
return
|
|
1799
|
+
const L = y.filter((B) => B !== j);
|
|
1800
|
+
return g(L, e) <= 0.1;
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function _() {
|
|
1804
1804
|
k.forEach((j) => {
|
|
1805
1805
|
const {
|
|
1806
1806
|
target: L,
|
|
1807
|
-
translate:
|
|
1807
|
+
translate: B,
|
|
1808
1808
|
slideLocation: $
|
|
1809
1809
|
} = j, N = L();
|
|
1810
|
-
N !== $.get() && (
|
|
1810
|
+
N !== $.get() && (B.to(N), $.set(N));
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function F() {
|
|
1814
1814
|
k.forEach((j) => j.translate.clear());
|
|
1815
1815
|
}
|
|
1816
1816
|
return {
|
|
1817
1817
|
canLoop: x,
|
|
1818
|
-
clear:
|
|
1819
|
-
loop:
|
|
1818
|
+
clear: F,
|
|
1819
|
+
loop: _,
|
|
1820
1820
|
loopPoints: k
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
@@ -1865,9 +1865,9 @@ function Br(t, e, n, s) {
|
|
|
1865
1865
|
function f(h) {
|
|
1866
1866
|
return Ae(i).reduce((b, v) => {
|
|
1867
1867
|
const p = parseInt(v), {
|
|
1868
|
-
isIntersecting:
|
|
1868
|
+
isIntersecting: m
|
|
1869
1869
|
} = i[p];
|
|
1870
|
-
return (h &&
|
|
1870
|
+
return (h && m || !h && !m) && b.push(p), b;
|
|
1871
1871
|
}, []);
|
|
1872
1872
|
}
|
|
1873
1873
|
function k(h = !0) {
|
|
@@ -1887,26 +1887,26 @@ function Nr(t, e, n, s, i, a) {
|
|
|
1887
1887
|
measureSize: o,
|
|
1888
1888
|
startEdge: d,
|
|
1889
1889
|
endEdge: l
|
|
1890
|
-
} = t, u = n[0] && i, y = h(), f = b(), k = n.map(o),
|
|
1890
|
+
} = t, u = n[0] && i, y = h(), f = b(), k = n.map(o), g = v();
|
|
1891
1891
|
function h() {
|
|
1892
1892
|
if (!u) return 0;
|
|
1893
|
-
const
|
|
1894
|
-
return
|
|
1893
|
+
const m = n[0];
|
|
1894
|
+
return K(e[d] - m[d]);
|
|
1895
1895
|
}
|
|
1896
1896
|
function b() {
|
|
1897
1897
|
if (!u) return 0;
|
|
1898
|
-
const
|
|
1899
|
-
return parseFloat(
|
|
1898
|
+
const m = a.getComputedStyle(ie(s));
|
|
1899
|
+
return parseFloat(m.getPropertyValue(`margin-${l}`));
|
|
1900
1900
|
}
|
|
1901
1901
|
function v() {
|
|
1902
|
-
return n.map((
|
|
1903
|
-
const
|
|
1904
|
-
return
|
|
1905
|
-
}).map(
|
|
1902
|
+
return n.map((m, x, _) => {
|
|
1903
|
+
const F = !x, E = tt(_, x);
|
|
1904
|
+
return F ? k[x] + y : E ? k[x] + f : _[x + 1][d] - m[d];
|
|
1905
|
+
}).map(K);
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
1908
1908
|
slideSizes: k,
|
|
1909
|
-
slideSizesWithGaps:
|
|
1909
|
+
slideSizesWithGaps: g,
|
|
1910
1910
|
startGap: y,
|
|
1911
1911
|
endGap: f
|
|
1912
1912
|
};
|
|
@@ -1917,20 +1917,20 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1917
1917
|
endEdge: y,
|
|
1918
1918
|
direction: f
|
|
1919
1919
|
} = t, k = Qe(n);
|
|
1920
|
-
function
|
|
1921
|
-
return Le(p).filter((x) => x %
|
|
1920
|
+
function g(p, m) {
|
|
1921
|
+
return Le(p).filter((x) => x % m === 0).map((x) => p.slice(x, x + m));
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(p) {
|
|
1924
|
-
return p.length ? Le(p).reduce((
|
|
1925
|
-
const
|
|
1926
|
-
return
|
|
1927
|
-
}, []).map((
|
|
1928
|
-
const
|
|
1929
|
-
return p.slice(
|
|
1924
|
+
return p.length ? Le(p).reduce((m, x, _) => {
|
|
1925
|
+
const F = ie(m) || 0, E = F === 0, j = x === _e(p), L = i[u] - a[F][u], B = i[u] - a[x][y], $ = !s && E ? f(o) : 0, N = !s && j ? f(d) : 0, H = K(B - N - (L + $));
|
|
1926
|
+
return _ && H > e + l && m.push(x), j && m.push(p.length), m;
|
|
1927
|
+
}, []).map((m, x, _) => {
|
|
1928
|
+
const F = Math.max(_[x - 1] || 0);
|
|
1929
|
+
return p.slice(F, m);
|
|
1930
1930
|
}) : [];
|
|
1931
1931
|
}
|
|
1932
1932
|
function b(p) {
|
|
1933
|
-
return k ?
|
|
1933
|
+
return k ? g(p, n) : h(p);
|
|
1934
1934
|
}
|
|
1935
1935
|
return {
|
|
1936
1936
|
groupSlides: b
|
|
@@ -1944,28 +1944,28 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
1944
1944
|
startIndex: y,
|
|
1945
1945
|
loop: f,
|
|
1946
1946
|
duration: k,
|
|
1947
|
-
dragFree:
|
|
1947
|
+
dragFree: g,
|
|
1948
1948
|
dragThreshold: h,
|
|
1949
1949
|
inViewThreshold: b,
|
|
1950
1950
|
slidesToScroll: v,
|
|
1951
1951
|
skipSnaps: p,
|
|
1952
|
-
containScroll:
|
|
1952
|
+
containScroll: m,
|
|
1953
1953
|
watchResize: x,
|
|
1954
|
-
watchSlides:
|
|
1955
|
-
watchDrag:
|
|
1956
|
-
watchFocus:
|
|
1957
|
-
} = a, j = 2, L = br(),
|
|
1958
|
-
slideSizes:
|
|
1954
|
+
watchSlides: _,
|
|
1955
|
+
watchDrag: F,
|
|
1956
|
+
watchFocus: E
|
|
1957
|
+
} = a, j = 2, L = br(), B = L.measure(e), $ = n.map(L.measure), N = fr(l, u), H = N.measureSize(B), M = vr(H), R = gr(d, H), D = !f && !!m, U = f || !!m, {
|
|
1958
|
+
slideSizes: ne,
|
|
1959
1959
|
slideSizesWithGaps: Y,
|
|
1960
1960
|
startGap: q,
|
|
1961
1961
|
endGap: re
|
|
1962
|
-
} = Nr(N,
|
|
1962
|
+
} = Nr(N, B, $, n, U, i), c = Pr(N, H, v, f, B, $, q, re, j), {
|
|
1963
1963
|
snaps: A,
|
|
1964
1964
|
snapsAligned: P
|
|
1965
|
-
} = Dr(N, R,
|
|
1965
|
+
} = Dr(N, R, B, $, c), z = -ie(A) + ie(Y), {
|
|
1966
1966
|
snapsContained: S,
|
|
1967
1967
|
scrollContainLimit: I
|
|
1968
|
-
} = Sr(H, z, P,
|
|
1968
|
+
} = Sr(H, z, P, m, j), C = D ? S : P, {
|
|
1969
1969
|
limit: W
|
|
1970
1970
|
} = wr(z, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
|
|
1971
1971
|
dragHandler: he,
|
|
@@ -1996,17 +1996,17 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
1996
1996
|
ut && Vt.stop();
|
|
1997
1997
|
const Kt = We.get() * lt + Ot.get() * (1 - lt);
|
|
1998
1998
|
Ee.set(Kt), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
|
|
1999
|
-
}, G = pr(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le),
|
|
1999
|
+
}, G = pr(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le), me = De(le), ce = De(le), ge = De(le), xe = xr(de, ce, me, ge, k, Z), ze = Lr(f, C, z, W, ge), Oe = Ar(G, J, X, xe, ze, ge, o), ot = jr(W), rt = Fe(), Rt = Br(e, n, o, b), {
|
|
2000
2000
|
slideRegistry: st
|
|
2001
|
-
} = Ir(D,
|
|
2001
|
+
} = Ir(D, m, C, I, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
|
|
2002
2002
|
ownerDocument: s,
|
|
2003
2003
|
ownerWindow: i,
|
|
2004
2004
|
eventHandler: o,
|
|
2005
|
-
containerRect:
|
|
2005
|
+
containerRect: B,
|
|
2006
2006
|
slideRects: $,
|
|
2007
2007
|
animation: G,
|
|
2008
2008
|
axis: N,
|
|
2009
|
-
dragHandler: hr(N, t, s, i,
|
|
2009
|
+
dragHandler: hr(N, t, s, i, ge, kr(N, i), de, G, Oe, xe, ze, J, o, M, g, h, p, Z, F),
|
|
2010
2010
|
eventStore: rt,
|
|
2011
2011
|
percentOfView: M,
|
|
2012
2012
|
index: J,
|
|
@@ -2014,25 +2014,25 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
2014
2014
|
limit: W,
|
|
2015
2015
|
location: de,
|
|
2016
2016
|
offsetLocation: ce,
|
|
2017
|
-
previousLocation:
|
|
2017
|
+
previousLocation: me,
|
|
2018
2018
|
options: a,
|
|
2019
2019
|
resizeHandler: yr(e, o, i, n, N, x, L),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds: Tr(W, ce,
|
|
2022
|
-
scrollLooper: Cr(z, W, ce, [de, ce,
|
|
2021
|
+
scrollBounds: Tr(W, ce, ge, xe, M),
|
|
2022
|
+
scrollLooper: Cr(z, W, ce, [de, ce, me, ge]),
|
|
2023
2023
|
scrollProgress: ot,
|
|
2024
2024
|
scrollSnapList: C.map(ot.get),
|
|
2025
2025
|
scrollSnaps: C,
|
|
2026
2026
|
scrollTarget: ze,
|
|
2027
2027
|
scrollTo: Oe,
|
|
2028
|
-
slideLooper: _r(N, H, z,
|
|
2028
|
+
slideLooper: _r(N, H, z, ne, Y, A, C, ce, n),
|
|
2029
2029
|
slideFocus: zt,
|
|
2030
|
-
slidesHandler: Er(e, o,
|
|
2030
|
+
slidesHandler: Er(e, o, _),
|
|
2031
2031
|
slidesInView: Rt,
|
|
2032
2032
|
slideIndexes: V,
|
|
2033
2033
|
slideRegistry: st,
|
|
2034
2034
|
slidesToScroll: c,
|
|
2035
|
-
target:
|
|
2035
|
+
target: ge,
|
|
2036
2036
|
translate: Pt(N, e)
|
|
2037
2037
|
};
|
|
2038
2038
|
return $e;
|
|
@@ -2129,33 +2129,33 @@ function Me(t, e, n) {
|
|
|
2129
2129
|
optionsMediaQueries: f
|
|
2130
2130
|
} = a, {
|
|
2131
2131
|
on: k,
|
|
2132
|
-
off:
|
|
2132
|
+
off: g,
|
|
2133
2133
|
emit: h
|
|
2134
2134
|
} = l, b = N;
|
|
2135
|
-
let v = !1, p,
|
|
2135
|
+
let v = !1, p, m = u(zr, Me.globalOptions), x = u(m), _ = [], F, E, j;
|
|
2136
2136
|
function L() {
|
|
2137
2137
|
const {
|
|
2138
2138
|
container: V,
|
|
2139
2139
|
slides: w
|
|
2140
2140
|
} = x;
|
|
2141
|
-
|
|
2142
|
-
const G = Ye(w) ?
|
|
2143
|
-
j = [].slice.call(G ||
|
|
2141
|
+
E = (Ye(V) ? t.querySelector(V) : V) || t.children[0];
|
|
2142
|
+
const G = Ye(w) ? E.querySelectorAll(w) : w;
|
|
2143
|
+
j = [].slice.call(G || E.children);
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
const w = Mr(t,
|
|
2145
|
+
function B(V) {
|
|
2146
|
+
const w = Mr(t, E, j, s, i, V, l);
|
|
2147
2147
|
if (V.loop && !w.slideLooper.canLoop()) {
|
|
2148
2148
|
const O = Object.assign({}, V, {
|
|
2149
2149
|
loop: !1
|
|
2150
2150
|
});
|
|
2151
|
-
return
|
|
2151
|
+
return B(O);
|
|
2152
2152
|
}
|
|
2153
2153
|
return w;
|
|
2154
2154
|
}
|
|
2155
2155
|
function $(V, w) {
|
|
2156
|
-
v || (
|
|
2156
|
+
v || (m = u(m, V), x = y(m), _ = w || _, L(), p = B(x), f([m, ..._.map(({
|
|
2157
2157
|
options: O
|
|
2158
|
-
}) => O)]).forEach((O) => d.add(O, "change", N)), x.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(),
|
|
2158
|
+
}) => O)]).forEach((O) => d.add(O, "change", N)), x.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), E.offsetParent && j.length && p.dragHandler.init(X), F = o.init(X, _)));
|
|
2159
2159
|
}
|
|
2160
2160
|
function N(V, w) {
|
|
2161
2161
|
const O = c();
|
|
@@ -2176,11 +2176,11 @@ function Me(t, e, n) {
|
|
|
2176
2176
|
const w = p.index.add(1).get();
|
|
2177
2177
|
R(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function U(V) {
|
|
2180
2180
|
const w = p.index.add(-1).get();
|
|
2181
2181
|
R(w, V, 1);
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function ne() {
|
|
2184
2184
|
return p.index.add(1).get() !== c();
|
|
2185
2185
|
}
|
|
2186
2186
|
function Y() {
|
|
@@ -2205,7 +2205,7 @@ function Me(t, e, n) {
|
|
|
2205
2205
|
return p.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
2207
|
function S() {
|
|
2208
|
-
return
|
|
2208
|
+
return F;
|
|
2209
2209
|
}
|
|
2210
2210
|
function I() {
|
|
2211
2211
|
return p;
|
|
@@ -2214,18 +2214,18 @@ function Me(t, e, n) {
|
|
|
2214
2214
|
return t;
|
|
2215
2215
|
}
|
|
2216
2216
|
function W() {
|
|
2217
|
-
return
|
|
2217
|
+
return E;
|
|
2218
2218
|
}
|
|
2219
2219
|
function J() {
|
|
2220
2220
|
return j;
|
|
2221
2221
|
}
|
|
2222
2222
|
const X = {
|
|
2223
|
-
canScrollNext:
|
|
2223
|
+
canScrollNext: ne,
|
|
2224
2224
|
canScrollPrev: Y,
|
|
2225
2225
|
containerNode: W,
|
|
2226
2226
|
internalEngine: I,
|
|
2227
2227
|
destroy: M,
|
|
2228
|
-
off:
|
|
2228
|
+
off: g,
|
|
2229
2229
|
on: k,
|
|
2230
2230
|
emit: h,
|
|
2231
2231
|
plugins: S,
|
|
@@ -2233,7 +2233,7 @@ function Me(t, e, n) {
|
|
|
2233
2233
|
reInit: b,
|
|
2234
2234
|
rootNode: C,
|
|
2235
2235
|
scrollNext: D,
|
|
2236
|
-
scrollPrev:
|
|
2236
|
+
scrollPrev: U,
|
|
2237
2237
|
scrollProgress: re,
|
|
2238
2238
|
scrollSnapList: q,
|
|
2239
2239
|
scrollTo: R,
|
|
@@ -2249,11 +2249,11 @@ function nt(t = {}, e = []) {
|
|
|
2249
2249
|
const n = Ke(t), s = Ke(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
|
|
2250
2250
|
i && i.reInit(n.current, s.current);
|
|
2251
2251
|
}, [i]);
|
|
2252
|
-
return
|
|
2252
|
+
return te(() => {
|
|
2253
2253
|
Xe(n.current, t) || (n.current = t, l());
|
|
2254
|
-
}, [t, l]),
|
|
2254
|
+
}, [t, l]), te(() => {
|
|
2255
2255
|
cr(s.current, e) || (s.current = e, l());
|
|
2256
|
-
}, [e, l]),
|
|
2256
|
+
}, [e, l]), te(() => {
|
|
2257
2257
|
if (dr() && o) {
|
|
2258
2258
|
Me.globalOptions = nt.globalOptions;
|
|
2259
2259
|
const u = Me(o, n.current, s.current);
|
|
@@ -2296,34 +2296,34 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2296
2296
|
align: "start",
|
|
2297
2297
|
containScroll: "trimSnaps",
|
|
2298
2298
|
slidesToScroll: 1
|
|
2299
|
-
}, [k,
|
|
2300
|
-
|
|
2299
|
+
}, [k, g] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [m, x] = oe([]);
|
|
2300
|
+
te(() => {
|
|
2301
2301
|
x(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2302
|
}, [t]);
|
|
2303
|
-
const
|
|
2303
|
+
const _ = ae((M) => {
|
|
2304
2304
|
x((R) => {
|
|
2305
2305
|
const D = [...R];
|
|
2306
2306
|
return D[M] = !0, D;
|
|
2307
2307
|
});
|
|
2308
|
-
}, []),
|
|
2309
|
-
|
|
2310
|
-
}, [
|
|
2311
|
-
|
|
2312
|
-
if (
|
|
2313
|
-
return
|
|
2314
|
-
|
|
2308
|
+
}, []), F = ve(() => n * 1e3, [n]), E = ae(() => {
|
|
2309
|
+
g && b(g.selectedScrollSnap());
|
|
2310
|
+
}, [g]), j = ae((M) => g && g.scrollTo(M), [g]), L = ae(() => g && g.scrollPrev(), [g]), B = ae(() => g && g.scrollNext(), [g]);
|
|
2311
|
+
te(() => {
|
|
2312
|
+
if (g)
|
|
2313
|
+
return g.on("select", E), g.on("reInit", E), p(g.scrollSnapList()), () => {
|
|
2314
|
+
g.off("select", E), g.off("reInit", E);
|
|
2315
2315
|
};
|
|
2316
|
-
}, [
|
|
2317
|
-
|
|
2318
|
-
}, [
|
|
2319
|
-
if (!e || !
|
|
2316
|
+
}, [g, E]), te(() => {
|
|
2317
|
+
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2318
|
+
}, [g, t, o, d]), te(() => {
|
|
2319
|
+
if (!e || !g || !t || t.length <= 1) return;
|
|
2320
2320
|
const M = window.setInterval(() => {
|
|
2321
|
-
|
|
2322
|
-
},
|
|
2321
|
+
g.canScrollNext() && g.scrollNext();
|
|
2322
|
+
}, F);
|
|
2323
2323
|
return () => {
|
|
2324
2324
|
window.clearInterval(M);
|
|
2325
2325
|
};
|
|
2326
|
-
}, [e,
|
|
2326
|
+
}, [e, F, g, t]);
|
|
2327
2327
|
const $ = Math.max(1, o), N = `${100 / $}%`, H = d / 2;
|
|
2328
2328
|
return /* @__PURE__ */ r.jsxs(
|
|
2329
2329
|
"div",
|
|
@@ -2354,18 +2354,18 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2354
2354
|
// Ensure radius clips content
|
|
2355
2355
|
},
|
|
2356
2356
|
children: /* @__PURE__ */ r.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2357
|
-
!
|
|
2357
|
+
!m[R] && /* @__PURE__ */ r.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ r.jsx(ns, { "aria-label": "Laster bilde" }) }),
|
|
2358
2358
|
/* @__PURE__ */ r.jsx(
|
|
2359
2359
|
"img",
|
|
2360
2360
|
{
|
|
2361
|
-
className: `${Q.image} ${
|
|
2361
|
+
className: `${Q.image} ${m[R] ? Q.loaded : Q.loadingImage}`,
|
|
2362
2362
|
src: M.src,
|
|
2363
2363
|
alt: M.alt,
|
|
2364
2364
|
loading: R < $ ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () =>
|
|
2366
|
+
onLoad: () => _(R),
|
|
2367
2367
|
onError: (D) => {
|
|
2368
|
-
D.target.style.display = "none",
|
|
2368
|
+
D.target.style.display = "none", _(R);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
@@ -2394,7 +2394,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2394
2394
|
variant: "primary",
|
|
2395
2395
|
icon: !0,
|
|
2396
2396
|
"aria-label": "Neste bilde",
|
|
2397
|
-
onClick:
|
|
2397
|
+
onClick: B,
|
|
2398
2398
|
disabled: !t || t.length <= 1,
|
|
2399
2399
|
children: /* @__PURE__ */ r.jsx(Qn, { "aria-hidden": !0 })
|
|
2400
2400
|
}
|
|
@@ -2421,7 +2421,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
2423
|
os.displayName = "Carousel";
|
|
2424
|
-
const Ca = un, ja =
|
|
2424
|
+
const Ca = un, ja = mn, Da = gn, ee = pn, Ia = fn, La = hn, rs = kn, ss = bn;
|
|
2425
2425
|
rs.displayName = "Field.Description";
|
|
2426
2426
|
ss.displayName = "Field.Counter";
|
|
2427
2427
|
const Aa = It, as = ue((t, e) => /* @__PURE__ */ r.jsx(vn, { ref: e, ...t }));
|
|
@@ -3985,9 +3985,9 @@ const cs = {
|
|
|
3985
3985
|
if (t === void 0)
|
|
3986
3986
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
3987
3987
|
return t;
|
|
3988
|
-
},
|
|
3989
|
-
header:
|
|
3990
|
-
languageSwitch:
|
|
3988
|
+
}, ms = "_header_125p6_1", gs = "_languageSwitch_125p6_36", ps = "_searchOverlay_125p6_40", fs = "_headerExtension_125p6_45", hs = "_extensionContentWrapper_125p6_61", ks = "_extensionContent_125p6_61", bs = "_extensionDivider_125p6_84", vs = "_languageLabel_125p6_98", ys = "_languageLink_125p6_104", xs = "_headerInner_125p6_129", Ts = "_logoWrapper_125p6_146", Ss = "_logo_125p6_146", ws = "_secondaryLogoWrapper_125p6_169", Cs = "_slotComponent_125p6_178", js = "_slotContainer_125p6_188", Ds = "_slotText_125p6_196", Is = "_secondaryLogo_125p6_169", Ls = "_redCrossLogo_125p6_223", As = "_primaryLogo_125p6_229", Fs = "_navItems_125p6_233", _s = "_navLink_125p6_242", Es = "_actions_125p6_255", Bs = "_ctaButton_125p6_263", Ns = "_themeToggle_125p6_268", Ps = "_userInfo_125p6_273", Ms = "_userName_125p6_279", Rs = "_loginLink_125p6_286", zs = "_loginText_125p6_295", Os = "_underline_125p6_302", $s = "_searchButtonWrapper_125p6_308", Hs = "_buttonText_125p6_312", Ws = "_menuButton_125p6_317", Vs = "_menuOverlay_125p6_322", Gs = "_searchContent_125p6_356", Us = "_menuContent_125p6_366", Ks = "_menuLeftColumn_125p6_375", qs = "_menuRightColumn_125p6_381", Ys = "_slotContent_125p6_395", Js = "_navList_125p6_408", Zs = "_menuUtilities_125p6_415", Xs = "_menuBrand_125p6_422", Qs = "_suggestionsSection_125p6_426", ea = "_suggestionsTitle_125p6_432", ta = "_searchResults_125p6_441", na = "_resultList_125p6_447", oa = "_resultItem_125p6_453", ra = "_resultLink_125p6_461", sa = "_suggestionIcon_125p6_475", aa = "_suggestionText_125p6_488", ia = "_highlightedText_125p6_495", la = "_remainingText_125p6_500", da = "_viewAllLink_125p6_513", ca = "_noResults_125p6_548", T = {
|
|
3989
|
+
header: ms,
|
|
3990
|
+
languageSwitch: gs,
|
|
3991
3991
|
searchOverlay: ps,
|
|
3992
3992
|
headerExtension: fs,
|
|
3993
3993
|
extensionContentWrapper: hs,
|
|
@@ -4116,20 +4116,20 @@ const cs = {
|
|
|
4116
4116
|
showThemeToggle: y = !1,
|
|
4117
4117
|
secondaryLogo: f = !1,
|
|
4118
4118
|
secondaryLogoSrc: k,
|
|
4119
|
-
secondaryLogoSrcDark:
|
|
4119
|
+
secondaryLogoSrcDark: g,
|
|
4120
4120
|
secondaryLogoAlt: h = "Secondary Logo",
|
|
4121
4121
|
navItems: b,
|
|
4122
4122
|
showNavItems: v = !0,
|
|
4123
4123
|
showMenuButton: p = !0,
|
|
4124
|
-
showHeaderExtension:
|
|
4124
|
+
showHeaderExtension: m = !1,
|
|
4125
4125
|
showModeToggle: x = !1,
|
|
4126
|
-
showLanguageSwitch:
|
|
4126
|
+
showLanguageSwitch: _ = !1
|
|
4127
4127
|
}) => {
|
|
4128
|
-
const [
|
|
4129
|
-
|
|
4128
|
+
const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, H] = oe("light"), { language: M, setLanguage: R, t: D } = us(), [U, ne] = oe(!1);
|
|
4129
|
+
te(() => {
|
|
4130
4130
|
const S = "rk-header-inline-styles";
|
|
4131
4131
|
if (typeof document > "u" || document.getElementById(S)) return;
|
|
4132
|
-
const I =
|
|
4132
|
+
const I = ma(T), C = document.createElement("style");
|
|
4133
4133
|
C.id = S, C.textContent = I, document.head.appendChild(C);
|
|
4134
4134
|
}, []);
|
|
4135
4135
|
const Y = () => /* @__PURE__ */ r.jsxs(
|
|
@@ -4157,15 +4157,22 @@ const cs = {
|
|
|
4157
4157
|
]
|
|
4158
4158
|
}
|
|
4159
4159
|
);
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
}, [t]),
|
|
4160
|
+
te(() => {
|
|
4161
|
+
E(!1), L(!1), $("");
|
|
4162
|
+
}, [t]), te(() => {
|
|
4163
|
+
if (!(typeof document > "u") && F && U) {
|
|
4164
|
+
const S = document.body.style.overflow;
|
|
4165
|
+
return document.body.style.overflow = "hidden", () => {
|
|
4166
|
+
document.body.style.overflow = S;
|
|
4167
|
+
};
|
|
4168
|
+
}
|
|
4169
|
+
}, [F, U]), te(() => {
|
|
4163
4170
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4164
|
-
const S = window.matchMedia("(max-width: 850px)"), I = (C) =>
|
|
4171
|
+
const S = window.matchMedia("(max-width: 850px)"), I = (C) => ne("matches" in C ? C.matches : S.matches);
|
|
4165
4172
|
return I(S), S.addEventListener ? S.addEventListener("change", I) : S.addListener(I), () => {
|
|
4166
4173
|
S.removeEventListener ? S.removeEventListener("change", I) : S.removeListener(I);
|
|
4167
4174
|
};
|
|
4168
|
-
}, []),
|
|
4175
|
+
}, []), te(() => {
|
|
4169
4176
|
if (typeof document > "u") return;
|
|
4170
4177
|
const S = document.querySelector(`.${T.header}`);
|
|
4171
4178
|
if (!S) return;
|
|
@@ -4174,7 +4181,7 @@ const cs = {
|
|
|
4174
4181
|
document.documentElement.style.setProperty("--header-height-mobile", `${C}px`);
|
|
4175
4182
|
};
|
|
4176
4183
|
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4177
|
-
}, [
|
|
4184
|
+
}, [U]), te(() => {
|
|
4178
4185
|
if (typeof document > "u") return;
|
|
4179
4186
|
const S = document.querySelector(`.${T.logoWrapper}`);
|
|
4180
4187
|
if (!S) return;
|
|
@@ -4183,7 +4190,7 @@ const cs = {
|
|
|
4183
4190
|
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4184
4191
|
};
|
|
4185
4192
|
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4186
|
-
}, [
|
|
4193
|
+
}, [U]), te(() => {
|
|
4187
4194
|
if (typeof document > "u" || !j) {
|
|
4188
4195
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4189
4196
|
return;
|
|
@@ -4204,22 +4211,22 @@ const cs = {
|
|
|
4204
4211
|
const S = N === "light" ? "dark" : "light";
|
|
4205
4212
|
H(S), document.documentElement.setAttribute("data-color-scheme", S);
|
|
4206
4213
|
}, re = (S) => {
|
|
4207
|
-
e && (S.preventDefault(), e("home")),
|
|
4214
|
+
e && (S.preventDefault(), e("home")), E(!1), L(!1);
|
|
4208
4215
|
}, c = () => {
|
|
4209
|
-
|
|
4216
|
+
E(!F), j && L(!1);
|
|
4210
4217
|
}, A = () => {
|
|
4211
|
-
L(!j),
|
|
4218
|
+
L(!j), F && E(!1);
|
|
4212
4219
|
}, P = ve(() => {
|
|
4213
|
-
if (!
|
|
4214
|
-
const S =
|
|
4220
|
+
if (!B.trim()) return [];
|
|
4221
|
+
const S = B.toLowerCase();
|
|
4215
4222
|
return ua.filter(
|
|
4216
4223
|
(I) => I.title.toLowerCase().startsWith(S)
|
|
4217
4224
|
);
|
|
4218
|
-
}, [
|
|
4225
|
+
}, [B]), z = (S) => {
|
|
4219
4226
|
e && e(S), L(!1), $("");
|
|
4220
4227
|
};
|
|
4221
|
-
return /* @__PURE__ */ r.jsxs("header", { className: T.header, "data-open":
|
|
4222
|
-
|
|
4228
|
+
return /* @__PURE__ */ r.jsxs("header", { className: T.header, "data-open": F ? "true" : "false", children: [
|
|
4229
|
+
m && /* @__PURE__ */ r.jsx("div", { className: T.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: T.extensionContentWrapper, children: [
|
|
4223
4230
|
x && /* @__PURE__ */ r.jsx("div", { className: T.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4224
4231
|
Ue,
|
|
4225
4232
|
{
|
|
@@ -4231,8 +4238,8 @@ const cs = {
|
|
|
4231
4238
|
"data-color-scheme": "light"
|
|
4232
4239
|
}
|
|
4233
4240
|
) }),
|
|
4234
|
-
x &&
|
|
4235
|
-
|
|
4241
|
+
x && _ && /* @__PURE__ */ r.jsx("div", { className: T.extensionDivider }),
|
|
4242
|
+
_ && /* @__PURE__ */ r.jsxs("div", { className: T.languageSwitch, children: [
|
|
4236
4243
|
/* @__PURE__ */ r.jsx("span", { className: T.languageLabel, children: D("header.language") }),
|
|
4237
4244
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4238
4245
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4244,7 +4251,7 @@ const cs = {
|
|
|
4244
4251
|
children: [
|
|
4245
4252
|
M,
|
|
4246
4253
|
" ",
|
|
4247
|
-
/* @__PURE__ */ r.jsx(
|
|
4254
|
+
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4248
4255
|
]
|
|
4249
4256
|
}
|
|
4250
4257
|
),
|
|
@@ -4277,13 +4284,13 @@ const cs = {
|
|
|
4277
4284
|
/* @__PURE__ */ r.jsx("div", { className: T.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4278
4285
|
"img",
|
|
4279
4286
|
{
|
|
4280
|
-
src: N === "dark" &&
|
|
4287
|
+
src: N === "dark" && g ? g : k,
|
|
4281
4288
|
alt: h,
|
|
4282
4289
|
className: T.secondaryLogo
|
|
4283
4290
|
}
|
|
4284
4291
|
) : f ? /* @__PURE__ */ r.jsx("div", { className: T.slotComponent, children: /* @__PURE__ */ r.jsx("div", { className: T.slotContainer, children: /* @__PURE__ */ r.jsx("p", { className: T.slotText, children: "SLOT" }) }) }) : null })
|
|
4285
4292
|
] }),
|
|
4286
|
-
v && b && b.length > 0 && !
|
|
4293
|
+
v && b && b.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: T.navItems, children: b.map((S, I) => /* @__PURE__ */ r.jsx(
|
|
4287
4294
|
Ne,
|
|
4288
4295
|
{
|
|
4289
4296
|
href: S.href,
|
|
@@ -4310,7 +4317,7 @@ const cs = {
|
|
|
4310
4317
|
]
|
|
4311
4318
|
}
|
|
4312
4319
|
),
|
|
4313
|
-
!
|
|
4320
|
+
!m && y && /* @__PURE__ */ r.jsx("div", { className: T.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4314
4321
|
Ue,
|
|
4315
4322
|
{
|
|
4316
4323
|
checked: N === "dark",
|
|
@@ -4341,29 +4348,29 @@ const cs = {
|
|
|
4341
4348
|
]
|
|
4342
4349
|
}
|
|
4343
4350
|
) }),
|
|
4344
|
-
(p ||
|
|
4351
|
+
(p || U) && /* @__PURE__ */ r.jsxs(
|
|
4345
4352
|
ye,
|
|
4346
4353
|
{
|
|
4347
4354
|
variant: "primary",
|
|
4348
4355
|
"data-color": "main",
|
|
4349
4356
|
"data-size": "md",
|
|
4350
4357
|
onClick: c,
|
|
4351
|
-
"aria-expanded":
|
|
4352
|
-
"aria-label": D(
|
|
4358
|
+
"aria-expanded": F,
|
|
4359
|
+
"aria-label": D(F ? "header.closeMenu" : "header.openMenu"),
|
|
4353
4360
|
className: T.menuButton,
|
|
4354
4361
|
children: [
|
|
4355
|
-
|
|
4356
|
-
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: D(
|
|
4362
|
+
F ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4363
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: D(F ? "header.close" : "header.menu") })
|
|
4357
4364
|
]
|
|
4358
4365
|
}
|
|
4359
4366
|
)
|
|
4360
4367
|
] })
|
|
4361
4368
|
] }),
|
|
4362
|
-
|
|
4369
|
+
F && /* @__PURE__ */ r.jsx("div", { className: T.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: T.menuContent, children: [
|
|
4363
4370
|
/* @__PURE__ */ r.jsx("div", { className: T.menuLeftColumn }),
|
|
4364
4371
|
/* @__PURE__ */ r.jsxs("div", { className: T.menuRightColumn, children: [
|
|
4365
|
-
|
|
4366
|
-
|
|
4372
|
+
U && (_ || x) && /* @__PURE__ */ r.jsxs("div", { className: T.menuUtilities, children: [
|
|
4373
|
+
_ && /* @__PURE__ */ r.jsxs("div", { className: T.languageSwitch, children: [
|
|
4367
4374
|
/* @__PURE__ */ r.jsx("span", { className: T.languageLabel, children: D("header.language") }),
|
|
4368
4375
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4369
4376
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4375,7 +4382,7 @@ const cs = {
|
|
|
4375
4382
|
children: [
|
|
4376
4383
|
M,
|
|
4377
4384
|
" ",
|
|
4378
|
-
/* @__PURE__ */ r.jsx(
|
|
4385
|
+
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4379
4386
|
]
|
|
4380
4387
|
}
|
|
4381
4388
|
),
|
|
@@ -4406,7 +4413,7 @@ const cs = {
|
|
|
4406
4413
|
] }),
|
|
4407
4414
|
/* @__PURE__ */ r.jsxs("div", { className: T.slotContent, children: [
|
|
4408
4415
|
n,
|
|
4409
|
-
|
|
4416
|
+
U && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: T.navList, children: b.map((S, I) => /* @__PURE__ */ r.jsx(
|
|
4410
4417
|
Ne,
|
|
4411
4418
|
{
|
|
4412
4419
|
href: S.href,
|
|
@@ -4419,7 +4426,7 @@ const cs = {
|
|
|
4419
4426
|
I
|
|
4420
4427
|
)) })
|
|
4421
4428
|
] }),
|
|
4422
|
-
|
|
4429
|
+
U && /* @__PURE__ */ r.jsx("div", { className: T.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4423
4430
|
] })
|
|
4424
4431
|
] }) }),
|
|
4425
4432
|
j && /* @__PURE__ */ r.jsx("div", { className: T.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: T.searchContent, children: [
|
|
@@ -4429,14 +4436,14 @@ const cs = {
|
|
|
4429
4436
|
{
|
|
4430
4437
|
"aria-label": D("header.search"),
|
|
4431
4438
|
placeholder: D("header.searchPlaceholder"),
|
|
4432
|
-
value:
|
|
4439
|
+
value: B,
|
|
4433
4440
|
onChange: (S) => $(S.target.value)
|
|
4434
4441
|
}
|
|
4435
4442
|
),
|
|
4436
4443
|
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": D("header.search") }),
|
|
4437
4444
|
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": D("header.clearSearch") })
|
|
4438
4445
|
] }),
|
|
4439
|
-
|
|
4446
|
+
B && /* @__PURE__ */ r.jsx("div", { className: T.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: T.suggestionsSection, children: [
|
|
4440
4447
|
/* @__PURE__ */ r.jsx("h3", { className: T.suggestionsTitle, children: D("header.suggestions") }),
|
|
4441
4448
|
/* @__PURE__ */ r.jsx("ul", { className: T.resultList, children: P.slice(0, 5).map((S) => /* @__PURE__ */ r.jsx("li", { className: T.resultItem, children: /* @__PURE__ */ r.jsxs(
|
|
4442
4449
|
"button",
|
|
@@ -4446,9 +4453,9 @@ const cs = {
|
|
|
4446
4453
|
children: [
|
|
4447
4454
|
/* @__PURE__ */ r.jsx("span", { className: T.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4448
4455
|
/* @__PURE__ */ r.jsx("span", { className: T.suggestionText, children: (() => {
|
|
4449
|
-
const I = S.title.toLowerCase().indexOf(
|
|
4456
|
+
const I = S.title.toLowerCase().indexOf(B.toLowerCase());
|
|
4450
4457
|
if (I === -1) return /* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: S.title });
|
|
4451
|
-
const C = S.title.slice(0, I), W = S.title.slice(I, I +
|
|
4458
|
+
const C = S.title.slice(0, I), W = S.title.slice(I, I + B.length), J = S.title.slice(I + B.length);
|
|
4452
4459
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4453
4460
|
/* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: C }),
|
|
4454
4461
|
/* @__PURE__ */ r.jsx("span", { className: T.highlightedText, children: W }),
|
|
@@ -4465,7 +4472,7 @@ const cs = {
|
|
|
4465
4472
|
"data-color": "neutral",
|
|
4466
4473
|
className: T.viewAllLink,
|
|
4467
4474
|
onClick: (S) => {
|
|
4468
|
-
S.preventDefault(), e && e(`search/${
|
|
4475
|
+
S.preventDefault(), e && e(`search/${B}`), L(!1), $("");
|
|
4469
4476
|
},
|
|
4470
4477
|
children: [
|
|
4471
4478
|
D("header.viewAll"),
|
|
@@ -4478,19 +4485,19 @@ const cs = {
|
|
|
4478
4485
|
] }) : /* @__PURE__ */ r.jsx("div", { className: T.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4479
4486
|
D("header.noResults"),
|
|
4480
4487
|
' "',
|
|
4481
|
-
|
|
4488
|
+
B,
|
|
4482
4489
|
'"'
|
|
4483
4490
|
] }) }) })
|
|
4484
4491
|
] }) })
|
|
4485
4492
|
] });
|
|
4486
4493
|
};
|
|
4487
|
-
function
|
|
4494
|
+
function ma(t) {
|
|
4488
4495
|
const e = t;
|
|
4489
4496
|
return `
|
|
4490
4497
|
.${e.header} {
|
|
4491
4498
|
width: 100%;
|
|
4492
4499
|
background-color: var(--ds-color-neutral-background-default);
|
|
4493
|
-
border-bottom:
|
|
4500
|
+
border-bottom: none;
|
|
4494
4501
|
position: relative;
|
|
4495
4502
|
z-index: 1000;
|
|
4496
4503
|
display: flex;
|
|
@@ -4547,8 +4554,8 @@ function ga(t) {
|
|
|
4547
4554
|
.${e.menuOverlay}, .${e.searchOverlay} {
|
|
4548
4555
|
position: absolute; top: 100%; left: 0; width: 100%;
|
|
4549
4556
|
background-color: var(--ds-color-neutral-background-default);
|
|
4550
|
-
border-bottom:
|
|
4551
|
-
box-shadow:
|
|
4557
|
+
border-bottom: none;
|
|
4558
|
+
box-shadow: none; z-index: 999;
|
|
4552
4559
|
}
|
|
4553
4560
|
.${e.searchOverlay} { padding: var(--ds-size-10) 0; }
|
|
4554
4561
|
.${e.searchOverlay}::before { display: none; }
|
|
@@ -4561,6 +4568,7 @@ function ga(t) {
|
|
|
4561
4568
|
.${e.menuLeftColumn} { width: calc(217px + var(--ds-size-6)); flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: var(--ds-size-6); }
|
|
4562
4569
|
.${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
|
|
4563
4570
|
.${e.slotContent} { width: 100%; padding: var(--ds-size-10) 0; text-align: left; color: var(--ds-color-neutral-text-subtle); font-size: var(--ds-font-size-md); border-radius: var(--ds-border-radius-md); display: flex; flex-direction: column; gap: var(--ds-size-4); align-items: flex-start; }
|
|
4571
|
+
.${e.navList} { display: flex; flex-direction: column; gap: var(--ds-size-3); align-items: flex-start; }
|
|
4564
4572
|
.${e.menuBrand} { display: none; }
|
|
4565
4573
|
.${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
|
|
4566
4574
|
.${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
|
|
@@ -4580,7 +4588,7 @@ function ga(t) {
|
|
|
4580
4588
|
.${e.viewAllLink} { display: block; padding: var(--ds-size-3); text-align: left; font-size: var(--ds-font-size-sm); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-neutral-text-default); text-decoration: none; }
|
|
4581
4589
|
.${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
|
|
4582
4590
|
@media (max-width: 850px) {
|
|
4583
|
-
.${e.header} { z-index: 10000; }
|
|
4591
|
+
.${e.header} { z-index: 10000; position: relative; }
|
|
4584
4592
|
.${e.headerExtension} { display: none; }
|
|
4585
4593
|
.${e.headerInner} { padding: var(--ds-size-5) var(--ds-size-6); min-height: auto; }
|
|
4586
4594
|
.${e.navItems} { display: none; }
|
|
@@ -4595,7 +4603,7 @@ function ga(t) {
|
|
|
4595
4603
|
.${e.menuButton} .${e.buttonText} { display: none; }
|
|
4596
4604
|
.${e.searchButtonWrapper} .${e.buttonText} { display: inline; }
|
|
4597
4605
|
.${e.menuOverlay} { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; width: 100vw; height: calc(100vh - 70px); z-index: 9999; border-radius: 0; border: none; overflow-y: auto; }
|
|
4598
|
-
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none;
|
|
4606
|
+
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; }
|
|
4599
4607
|
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4600
4608
|
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|
|
4601
4609
|
.${e.menuRightColumn} { padding: var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|