rk-designsystem 1.1.51 → 1.1.53
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 +526 -506
- package/dist/componentlibrary.umd.js +11 -10
- 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
|
-
case
|
|
77
|
+
case T:
|
|
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);
|
|
@@ -122,7 +122,7 @@ function oo() {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function i() {
|
|
125
|
-
var c =
|
|
125
|
+
var c = W.A;
|
|
126
126
|
return c === null ? null : c.getOwner();
|
|
127
127
|
}
|
|
128
128
|
function a() {
|
|
@@ -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,11 +149,11 @@ 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
|
}
|
|
156
|
-
function u(c, A, P, z,
|
|
156
|
+
function u(c, A, P, z, x, D) {
|
|
157
157
|
var C = P.ref;
|
|
158
158
|
return c = {
|
|
159
159
|
$$typeof: h,
|
|
@@ -178,15 +178,15 @@ function oo() {
|
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
|
-
value:
|
|
181
|
+
value: x
|
|
182
182
|
}), Object.defineProperty(c, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: D
|
|
187
187
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
188
188
|
}
|
|
189
|
-
function y(c, A, P, z,
|
|
189
|
+
function y(c, A, P, z, x, D) {
|
|
190
190
|
var C = A.children;
|
|
191
191
|
if (C !== void 0)
|
|
192
192
|
if (z)
|
|
@@ -201,10 +201,10 @@ function oo() {
|
|
|
201
201
|
else f(C);
|
|
202
202
|
if (M.call(A, "key")) {
|
|
203
203
|
C = t(c);
|
|
204
|
-
var
|
|
204
|
+
var H = Object.keys(A).filter(function(X) {
|
|
205
205
|
return X !== "key";
|
|
206
206
|
});
|
|
207
|
-
z = 0 <
|
|
207
|
+
z = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + z] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -213,7 +213,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
z,
|
|
215
215
|
C,
|
|
216
|
-
|
|
216
|
+
H,
|
|
217
217
|
C
|
|
218
218
|
), re[C + z] = !0);
|
|
219
219
|
}
|
|
@@ -230,47 +230,47 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
C,
|
|
231
231
|
P,
|
|
232
232
|
i(),
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
x,
|
|
234
|
+
D
|
|
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"), T = 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"), W = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, R = Array.isArray, I = 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
|
-
)(), q =
|
|
254
|
+
)(), q = I(s(a)), re = {};
|
|
255
255
|
we.Fragment = v, we.jsx = function(c, A, P) {
|
|
256
|
-
var z = 1e4 >
|
|
256
|
+
var z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return y(
|
|
258
258
|
c,
|
|
259
259
|
A,
|
|
260
260
|
P,
|
|
261
261
|
!1,
|
|
262
262
|
z ? Error("react-stack-top-frame") : Y,
|
|
263
|
-
z ?
|
|
263
|
+
z ? I(s(c)) : q
|
|
264
264
|
);
|
|
265
265
|
}, we.jsxs = function(c, A, P) {
|
|
266
|
-
var z = 1e4 >
|
|
266
|
+
var z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return y(
|
|
268
268
|
c,
|
|
269
269
|
A,
|
|
270
270
|
P,
|
|
271
271
|
!0,
|
|
272
272
|
z ? Error("react-stack-top-frame") : Y,
|
|
273
|
-
z ?
|
|
273
|
+
z ? I(s(c)) : q
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), we;
|
|
@@ -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((
|
|
769
|
-
const
|
|
770
|
-
return vt(
|
|
767
|
+
const m = Lt(/* @__PURE__ */ new Date(), { locale: be });
|
|
768
|
+
return Array.from({ length: 7 }).map((T, _) => {
|
|
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, T) => {
|
|
783
|
+
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(T));
|
|
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
|
|
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 T = mt(m, a), _ = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
823
|
se.dateCell,
|
|
824
|
-
|
|
825
|
-
|
|
824
|
+
T ? "" : se.otherMonth,
|
|
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,62 +885,62 @@ 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
|
-
onBlur:
|
|
895
|
+
onBlur: T,
|
|
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
|
|
907
907
|
...N
|
|
908
|
-
} = t,
|
|
908
|
+
} = t, W = l !== void 0, M = Ke(null);
|
|
909
909
|
Dt.useImperativeHandle(
|
|
910
910
|
e,
|
|
911
911
|
() => M.current
|
|
912
912
|
);
|
|
913
913
|
const R = ae(
|
|
914
|
-
(
|
|
915
|
-
const C = xt(
|
|
916
|
-
return yt(
|
|
914
|
+
(D) => {
|
|
915
|
+
const C = xt(D), H = Tt(C);
|
|
916
|
+
return yt(H);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [
|
|
919
|
+
), [I, U] = oe(
|
|
920
920
|
() => R(l ?? u)
|
|
921
921
|
);
|
|
922
|
-
|
|
923
|
-
if (
|
|
924
|
-
const
|
|
925
|
-
|
|
922
|
+
te(() => {
|
|
923
|
+
if (W) {
|
|
924
|
+
const D = R(l);
|
|
925
|
+
D !== I && (U(D), M.current && M.current.value !== D && (M.current.value = D));
|
|
926
926
|
}
|
|
927
|
-
}, [l,
|
|
928
|
-
const
|
|
929
|
-
(
|
|
930
|
-
const C =
|
|
927
|
+
}, [l, W, I, R]);
|
|
928
|
+
const ne = ae(
|
|
929
|
+
(D) => {
|
|
930
|
+
const C = D.target, H = C.value, J = I, X = xt(H).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 || W) && y)) {
|
|
935
935
|
const Z = {
|
|
936
|
-
...
|
|
936
|
+
...D,
|
|
937
937
|
target: { ...C, value: w }
|
|
938
938
|
};
|
|
939
939
|
y(Z, w);
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
|
-
[
|
|
943
|
+
[I, W, y, R]
|
|
944
944
|
), Y = [pe.fieldset, a].filter(Boolean).join(" "), q = [
|
|
945
945
|
pe.inputWrapper,
|
|
946
946
|
o,
|
|
@@ -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, x = [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(
|
|
@@ -973,21 +973,21 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
973
973
|
inputMode: "numeric",
|
|
974
974
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
975
975
|
maxLength: 10,
|
|
976
|
-
value:
|
|
976
|
+
value: I,
|
|
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:
|
|
986
|
-
onBlur:
|
|
987
|
-
autoComplete:
|
|
988
|
-
"aria-label":
|
|
984
|
+
onChange: ne,
|
|
985
|
+
onFocus: m,
|
|
986
|
+
onBlur: T,
|
|
987
|
+
autoComplete: _,
|
|
988
|
+
"aria-label": F,
|
|
989
989
|
"aria-labelledby": A,
|
|
990
|
-
"aria-describedby":
|
|
990
|
+
"aria-describedby": x,
|
|
991
991
|
"aria-invalid": !!L,
|
|
992
992
|
className: re,
|
|
993
993
|
...N
|
|
@@ -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,69 +1266,69 @@ 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
|
-
cross:
|
|
1272
|
-
direction:
|
|
1273
|
-
} = t,
|
|
1271
|
+
cross: 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
|
-
},
|
|
1282
|
-
let M = !1, R = 0,
|
|
1281
|
+
}, W = h ? 43 : 25;
|
|
1282
|
+
let M = !1, R = 0, I = 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)) && D(Z);
|
|
1287
1287
|
}
|
|
1288
1288
|
const G = e;
|
|
1289
|
-
j.add(G, "dragstart", (Z) => Z.preventDefault(),
|
|
1290
|
-
},
|
|
1291
|
-
}).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel",
|
|
1289
|
+
j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
|
|
1290
|
+
}, E).add(G, "touchend", () => {
|
|
1291
|
+
}).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel", H).add(G, "contextmenu", H).add(G, "click", J, !0);
|
|
1292
1292
|
}
|
|
1293
1293
|
function c() {
|
|
1294
1294
|
j.clear(), L.clear();
|
|
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", H).add(w, "mousemove", C, E).add(w, "mouseup", H);
|
|
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
|
-
function
|
|
1307
|
+
function x(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
|
-
function
|
|
1311
|
+
function D(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), I = a.readPoint(w, T), k.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
1315
|
function C(w) {
|
|
1316
|
-
if (!Je(w, s) && w.touches.length >= 2) return
|
|
1317
|
-
const G = a.readPoint(w), Z = a.readPoint(w,
|
|
1318
|
-
if (!
|
|
1319
|
-
return
|
|
1320
|
-
const
|
|
1321
|
-
le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(
|
|
1316
|
+
if (!Je(w, s) && w.touches.length >= 2) return H(w);
|
|
1317
|
+
const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, R), de = Ie(Z, I);
|
|
1318
|
+
if (!ne && !q && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
|
+
return H(w);
|
|
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
|
-
function
|
|
1324
|
-
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le =
|
|
1325
|
-
|
|
1323
|
+
function H(w) {
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = x(_(Z), G), de = ur(Z, le), me = W - 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
|
|
1405
|
+
function p(m) {
|
|
1406
|
+
for (const T of m) {
|
|
1407
1407
|
if (f) return;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1408
|
+
const _ = T.target === t, F = s.indexOf(T.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;
|
|
@@ -1447,29 +1447,29 @@ function xr(t, e, n, s, i, a) {
|
|
|
1447
1447
|
return o;
|
|
1448
1448
|
}
|
|
1449
1449
|
function p() {
|
|
1450
|
-
return
|
|
1450
|
+
return T(i);
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1452
|
+
function m() {
|
|
1453
|
+
return _(a);
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
return l =
|
|
1455
|
+
function T(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:
|
|
1470
|
-
useDuration:
|
|
1469
|
+
useFriction: _,
|
|
1470
|
+
useDuration: T
|
|
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
|
|
1508
|
+
} = a, m = a.constrain(h), T = !b, _ = tt(n, b);
|
|
1509
|
+
return T ? 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,16 +1588,16 @@ 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
|
-
const
|
|
1596
|
-
return jt(
|
|
1595
|
+
const T = ie(v[0]) + 1;
|
|
1596
|
+
return jt(T);
|
|
1597
1597
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
const
|
|
1600
|
-
return jt(
|
|
1598
|
+
if (m) {
|
|
1599
|
+
const T = _e(a) - ie(v)[0] + 1;
|
|
1600
|
+
return jt(T, ie(v)[0]);
|
|
1601
1601
|
}
|
|
1602
1602
|
return h;
|
|
1603
1603
|
});
|
|
@@ -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(
|
|
1621
|
-
index:
|
|
1622
|
-
})).sort((
|
|
1619
|
+
const b = t ? o(h) : d(h), v = e.map((m, T) => ({
|
|
1620
|
+
diff: y(m - b, 0),
|
|
1621
|
+
index: T
|
|
1622
|
+
})).sort((m, T) => K(m.diff) - K(T.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:
|
|
1648
|
-
} = u(v),
|
|
1649
|
-
if (!b ||
|
|
1647
|
+
distance: m
|
|
1648
|
+
} = u(v), T = !t && a(v);
|
|
1649
|
+
if (!b || T) 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((T) => T.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,29 +1758,29 @@ 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
|
|
1777
|
+
const W = B ? 0 : -n, M = B ? n : 0, R = B ? "end" : "start", I = $[N][R];
|
|
1778
1778
|
return {
|
|
1779
1779
|
index: N,
|
|
1780
|
-
loopPoint:
|
|
1780
|
+
loopPoint: I,
|
|
1781
1781
|
slideLocation: De(-1),
|
|
1782
1782
|
translate: Pt(t, l[N]),
|
|
1783
|
-
target: () => d.get() >
|
|
1783
|
+
target: () => d.get() > I ? W : M
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
@@ -1788,35 +1788,35 @@ 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
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function T() {
|
|
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
|
-
canLoop:
|
|
1818
|
-
clear:
|
|
1819
|
-
loop:
|
|
1817
|
+
canLoop: T,
|
|
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, T, _) => {
|
|
1903
|
+
const F = !T, E = tt(_, T);
|
|
1904
|
+
return F ? k[T] + y : E ? k[T] + f : _[T + 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((
|
|
1920
|
+
function g(p, m) {
|
|
1921
|
+
return Le(p).filter((T) => T % m === 0).map((T) => p.slice(T, T + 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, T, _) => {
|
|
1925
|
+
const F = ie(m) || 0, E = F === 0, j = T === _e(p), L = i[u] - a[F][u], B = i[u] - a[T][y], $ = !s && E ? f(o) : 0, N = !s && j ? f(d) : 0, W = K(B - N - (L + $));
|
|
1926
|
+
return _ && W > e + l && m.push(T), j && m.push(p.length), m;
|
|
1927
|
+
}, []).map((m, T, _) => {
|
|
1928
|
+
const F = Math.max(_[T - 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,29 +1944,29 @@ 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:
|
|
1953
|
-
watchResize:
|
|
1954
|
-
watchSlides:
|
|
1955
|
-
watchDrag:
|
|
1956
|
-
watchFocus:
|
|
1957
|
-
} = a, j = 2, L = br(),
|
|
1958
|
-
slideSizes:
|
|
1952
|
+
containScroll: m,
|
|
1953
|
+
watchResize: T,
|
|
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), W = N.measureSize(B), M = vr(W), R = gr(d, W), I = !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, W, v, f, B, $, q, re, j), {
|
|
1963
1963
|
snaps: A,
|
|
1964
1964
|
snapsAligned: P
|
|
1965
|
-
} = Dr(N, R,
|
|
1966
|
-
snapsContained:
|
|
1967
|
-
scrollContainLimit:
|
|
1968
|
-
} = Sr(
|
|
1969
|
-
limit:
|
|
1965
|
+
} = Dr(N, R, B, $, c), z = -ie(A) + ie(Y), {
|
|
1966
|
+
snapsContained: x,
|
|
1967
|
+
scrollContainLimit: D
|
|
1968
|
+
} = Sr(W, z, P, m, j), C = I ? x : P, {
|
|
1969
|
+
limit: H
|
|
1970
1970
|
} = wr(z, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
|
|
1971
1971
|
dragHandler: he,
|
|
1972
1972
|
scrollBody: He,
|
|
@@ -1996,43 +1996,43 @@ 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, H, ge), Oe = Ar(G, J, X, xe, ze, ge, o), ot = jr(H), rt = Fe(), Rt = Br(e, n, o, b), {
|
|
2000
2000
|
slideRegistry: st
|
|
2001
|
-
} = Ir(
|
|
2001
|
+
} = Ir(I, m, C, D, 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,
|
|
2013
2013
|
indexPrevious: X,
|
|
2014
|
-
limit:
|
|
2014
|
+
limit: H,
|
|
2015
2015
|
location: de,
|
|
2016
2016
|
offsetLocation: ce,
|
|
2017
|
-
previousLocation:
|
|
2017
|
+
previousLocation: me,
|
|
2018
2018
|
options: a,
|
|
2019
|
-
resizeHandler: yr(e, o, i, n, N,
|
|
2019
|
+
resizeHandler: yr(e, o, i, n, N, T, L),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds: Tr(
|
|
2022
|
-
scrollLooper: Cr(z,
|
|
2021
|
+
scrollBounds: Tr(H, ce, ge, xe, M),
|
|
2022
|
+
scrollLooper: Cr(z, H, 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,
|
|
2028
|
+
slideLooper: _r(N, W, 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,58 +2129,58 @@ 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), T = u(m), _ = [], F, E, j;
|
|
2136
2136
|
function L() {
|
|
2137
2137
|
const {
|
|
2138
2138
|
container: V,
|
|
2139
2139
|
slides: w
|
|
2140
|
-
} =
|
|
2141
|
-
|
|
2142
|
-
const G = Ye(w) ?
|
|
2143
|
-
j = [].slice.call(G ||
|
|
2140
|
+
} = T;
|
|
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), T = y(m), _ = w || _, L(), p = B(T), f([m, ..._.map(({
|
|
2157
2157
|
options: O
|
|
2158
|
-
}) => O)]).forEach((O) => d.add(O, "change", N)),
|
|
2158
|
+
}) => O)]).forEach((O) => d.add(O, "change", N)), T.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();
|
|
2162
|
-
|
|
2162
|
+
W(), $(u({
|
|
2163
2163
|
startIndex: O
|
|
2164
2164
|
}, V), w), l.emit("reInit");
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function W() {
|
|
2167
2167
|
p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(), d.clear();
|
|
2168
2168
|
}
|
|
2169
2169
|
function M() {
|
|
2170
|
-
v || (v = !0, d.clear(),
|
|
2170
|
+
v || (v = !0, d.clear(), W(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
2172
|
function R(V, w, O) {
|
|
2173
|
-
!
|
|
2173
|
+
!T.active || v || (p.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), p.scrollTo.index(V, O || 0));
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function I(V) {
|
|
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() {
|
|
@@ -2204,36 +2204,36 @@ function Me(t, e, n) {
|
|
|
2204
2204
|
function z() {
|
|
2205
2205
|
return p.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return
|
|
2207
|
+
function x() {
|
|
2208
|
+
return F;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function D() {
|
|
2211
2211
|
return p;
|
|
2212
2212
|
}
|
|
2213
2213
|
function C() {
|
|
2214
2214
|
return t;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
2216
|
+
function H() {
|
|
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
|
-
containerNode:
|
|
2226
|
-
internalEngine:
|
|
2225
|
+
containerNode: H,
|
|
2226
|
+
internalEngine: D,
|
|
2227
2227
|
destroy: M,
|
|
2228
|
-
off:
|
|
2228
|
+
off: g,
|
|
2229
2229
|
on: k,
|
|
2230
2230
|
emit: h,
|
|
2231
|
-
plugins:
|
|
2231
|
+
plugins: x,
|
|
2232
2232
|
previousScrollSnap: A,
|
|
2233
2233
|
reInit: b,
|
|
2234
2234
|
rootNode: C,
|
|
2235
|
-
scrollNext:
|
|
2236
|
-
scrollPrev:
|
|
2235
|
+
scrollNext: I,
|
|
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,35 +2296,35 @@ 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
|
-
|
|
2301
|
-
|
|
2299
|
+
}, [k, g] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [m, T] = oe([]);
|
|
2300
|
+
te(() => {
|
|
2301
|
+
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2302
|
}, [t]);
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2303
|
+
const _ = ae((M) => {
|
|
2304
|
+
T((R) => {
|
|
2305
|
+
const I = [...R];
|
|
2306
|
+
return I[M] = !0, I;
|
|
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,
|
|
2327
|
-
const $ = Math.max(1, o), N = `${100 / $}%`,
|
|
2326
|
+
}, [e, F, g, t]);
|
|
2327
|
+
const $ = Math.max(1, o), N = `${100 / $}%`, W = d / 2;
|
|
2328
2328
|
return /* @__PURE__ */ r.jsxs(
|
|
2329
2329
|
"div",
|
|
2330
2330
|
{
|
|
@@ -2338,8 +2338,8 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2338
2338
|
{
|
|
2339
2339
|
className: Q.slides,
|
|
2340
2340
|
style: {
|
|
2341
|
-
marginLeft: `-${
|
|
2342
|
-
marginRight: `-${
|
|
2341
|
+
marginLeft: `-${W}px`,
|
|
2342
|
+
marginRight: `-${W}px`
|
|
2343
2343
|
},
|
|
2344
2344
|
children: t && t.length > 0 ? t.map((M, R) => /* @__PURE__ */ r.jsx(
|
|
2345
2345
|
"div",
|
|
@@ -2347,25 +2347,25 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2347
2347
|
className: Q.slide,
|
|
2348
2348
|
style: {
|
|
2349
2349
|
flex: `0 0 ${N}`,
|
|
2350
|
-
paddingLeft: `${
|
|
2351
|
-
paddingRight: `${
|
|
2350
|
+
paddingLeft: `${W}px`,
|
|
2351
|
+
paddingRight: `${W}px`,
|
|
2352
2352
|
borderRadius: l > 0 ? `${l}px` : void 0,
|
|
2353
2353
|
overflow: "hidden"
|
|
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: () =>
|
|
2367
|
-
onError: (
|
|
2368
|
-
|
|
2366
|
+
onLoad: () => _(R),
|
|
2367
|
+
onError: (I) => {
|
|
2368
|
+
I.target.style.display = "none", _(R);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
@@ -2394,22 +2394,22 @@ 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
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
2403
|
i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((M, R) => {
|
|
2404
|
-
const
|
|
2404
|
+
const I = R === h;
|
|
2405
2405
|
return /* @__PURE__ */ r.jsx(
|
|
2406
2406
|
"button",
|
|
2407
2407
|
{
|
|
2408
2408
|
type: "button",
|
|
2409
|
-
className: `${Q.dot} ${
|
|
2409
|
+
className: `${Q.dot} ${I ? Q.dotActive : ""}`,
|
|
2410
2410
|
onClick: () => j(R),
|
|
2411
2411
|
"aria-label": `Gå til bilde ${R + 1}`,
|
|
2412
|
-
"aria-selected":
|
|
2412
|
+
"aria-selected": I,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
2415
|
`dot-${R}`
|
|
@@ -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", S = {
|
|
3989
|
+
header: ms,
|
|
3990
|
+
languageSwitch: gs,
|
|
3991
3991
|
searchOverlay: ps,
|
|
3992
3992
|
headerExtension: fs,
|
|
3993
3993
|
extensionContentWrapper: hs,
|
|
@@ -4116,21 +4116,21 @@ 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:
|
|
4125
|
-
showModeToggle:
|
|
4126
|
-
showLanguageSwitch:
|
|
4124
|
+
showHeaderExtension: m = !1,
|
|
4125
|
+
showModeToggle: T = !1,
|
|
4126
|
+
showLanguageSwitch: _ = !1
|
|
4127
4127
|
}) => {
|
|
4128
|
-
const [
|
|
4129
|
-
|
|
4130
|
-
const
|
|
4131
|
-
if (typeof document > "u" || document.getElementById(
|
|
4132
|
-
const
|
|
4133
|
-
C.id =
|
|
4128
|
+
const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, W] = oe("light"), { language: M, setLanguage: R, t: I } = us(), [U, ne] = oe(!1);
|
|
4129
|
+
te(() => {
|
|
4130
|
+
const x = "rk-header-inline-styles";
|
|
4131
|
+
if (typeof document > "u" || document.getElementById(x)) return;
|
|
4132
|
+
const D = ma(S), C = document.createElement("style");
|
|
4133
|
+
C.id = x, C.textContent = D, document.head.appendChild(C);
|
|
4134
4134
|
}, []);
|
|
4135
4135
|
const Y = () => /* @__PURE__ */ r.jsxs(
|
|
4136
4136
|
"svg",
|
|
@@ -4142,7 +4142,7 @@ const cs = {
|
|
|
4142
4142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4143
4143
|
"aria-hidden": !0,
|
|
4144
4144
|
focusable: "false",
|
|
4145
|
-
className:
|
|
4145
|
+
className: S.redCrossLogo,
|
|
4146
4146
|
children: [
|
|
4147
4147
|
/* @__PURE__ */ r.jsx("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
|
|
4148
4148
|
/* @__PURE__ */ r.jsx("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
|
|
@@ -4157,94 +4157,113 @@ 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 x = document.body.style.overflow;
|
|
4165
|
+
return document.body.style.overflow = "hidden", () => {
|
|
4166
|
+
document.body.style.overflow = x;
|
|
4167
|
+
};
|
|
4168
|
+
}
|
|
4169
|
+
}, [F, U]), te(() => {
|
|
4163
4170
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4164
|
-
const
|
|
4165
|
-
return
|
|
4166
|
-
|
|
4171
|
+
const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
|
|
4172
|
+
return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
|
|
4173
|
+
x.removeEventListener ? x.removeEventListener("change", D) : x.removeListener(D);
|
|
4167
4174
|
};
|
|
4168
|
-
}, []),
|
|
4175
|
+
}, []), te(() => {
|
|
4169
4176
|
if (typeof document > "u") return;
|
|
4170
|
-
const
|
|
4171
|
-
if (!
|
|
4172
|
-
const
|
|
4173
|
-
const
|
|
4174
|
-
document.documentElement.style.setProperty("--header-height-mobile", `${
|
|
4177
|
+
const x = document.querySelector(`.${S.header}`);
|
|
4178
|
+
if (!x) return;
|
|
4179
|
+
const D = () => {
|
|
4180
|
+
const H = x.offsetHeight;
|
|
4181
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${H}px`);
|
|
4175
4182
|
};
|
|
4176
|
-
|
|
4177
|
-
|
|
4183
|
+
D(), window.addEventListener("resize", D);
|
|
4184
|
+
const C = new ResizeObserver(() => {
|
|
4185
|
+
D();
|
|
4186
|
+
});
|
|
4187
|
+
return C.observe(x), () => {
|
|
4188
|
+
window.removeEventListener("resize", D), C.disconnect();
|
|
4189
|
+
};
|
|
4190
|
+
}, [U]), te(() => {
|
|
4178
4191
|
if (typeof document > "u") return;
|
|
4179
|
-
const
|
|
4180
|
-
if (!
|
|
4181
|
-
const
|
|
4182
|
-
const C =
|
|
4192
|
+
const x = document.querySelector(`.${S.logoWrapper}`);
|
|
4193
|
+
if (!x) return;
|
|
4194
|
+
const D = () => {
|
|
4195
|
+
const C = x.offsetWidth;
|
|
4183
4196
|
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4184
4197
|
};
|
|
4185
|
-
return
|
|
4186
|
-
}, [
|
|
4198
|
+
return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
|
|
4199
|
+
}, [U]), te(() => {
|
|
4187
4200
|
if (typeof document > "u" || !j) {
|
|
4188
4201
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4189
4202
|
return;
|
|
4190
4203
|
}
|
|
4191
|
-
const
|
|
4192
|
-
if (!
|
|
4193
|
-
const
|
|
4194
|
-
const
|
|
4195
|
-
document.documentElement.style.setProperty("--rk-search-overlay-height", `${
|
|
4204
|
+
const x = document.querySelector(`.${S.searchOverlay}`);
|
|
4205
|
+
if (!x) return;
|
|
4206
|
+
const D = () => {
|
|
4207
|
+
const H = x.offsetHeight;
|
|
4208
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", `${H}px`);
|
|
4196
4209
|
};
|
|
4197
|
-
requestAnimationFrame(
|
|
4198
|
-
const C = new ResizeObserver(
|
|
4199
|
-
return C.observe(
|
|
4200
|
-
window.removeEventListener("resize",
|
|
4210
|
+
requestAnimationFrame(D), window.addEventListener("resize", D);
|
|
4211
|
+
const C = new ResizeObserver(D);
|
|
4212
|
+
return C.observe(x), () => {
|
|
4213
|
+
window.removeEventListener("resize", D), C.disconnect();
|
|
4201
4214
|
};
|
|
4202
4215
|
}, [j]);
|
|
4203
4216
|
const q = () => {
|
|
4204
|
-
const
|
|
4205
|
-
|
|
4206
|
-
}, re = (
|
|
4207
|
-
e && (
|
|
4217
|
+
const x = N === "light" ? "dark" : "light";
|
|
4218
|
+
W(x), document.documentElement.setAttribute("data-color-scheme", x);
|
|
4219
|
+
}, re = (x) => {
|
|
4220
|
+
e && (x.preventDefault(), e("home")), E(!1), L(!1);
|
|
4208
4221
|
}, c = () => {
|
|
4209
|
-
|
|
4222
|
+
E(!F), j && L(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
|
|
4223
|
+
const x = document.querySelector(`.${S.header}`);
|
|
4224
|
+
if (x) {
|
|
4225
|
+
const D = x.offsetHeight;
|
|
4226
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${D}px`);
|
|
4227
|
+
}
|
|
4228
|
+
});
|
|
4210
4229
|
}, A = () => {
|
|
4211
|
-
L(!j),
|
|
4230
|
+
L(!j), F && E(!1);
|
|
4212
4231
|
}, P = ve(() => {
|
|
4213
|
-
if (!
|
|
4214
|
-
const
|
|
4232
|
+
if (!B.trim()) return [];
|
|
4233
|
+
const x = B.toLowerCase();
|
|
4215
4234
|
return ua.filter(
|
|
4216
|
-
(
|
|
4235
|
+
(D) => D.title.toLowerCase().startsWith(x)
|
|
4217
4236
|
);
|
|
4218
|
-
}, [
|
|
4219
|
-
e && e(
|
|
4237
|
+
}, [B]), z = (x) => {
|
|
4238
|
+
e && e(x), L(!1), $("");
|
|
4220
4239
|
};
|
|
4221
|
-
return /* @__PURE__ */ r.jsxs("header", { className:
|
|
4222
|
-
|
|
4223
|
-
|
|
4240
|
+
return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
|
|
4241
|
+
m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
|
|
4242
|
+
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4224
4243
|
Ue,
|
|
4225
4244
|
{
|
|
4226
4245
|
"data-size": "sm",
|
|
4227
4246
|
checked: N === "dark",
|
|
4228
4247
|
onChange: q,
|
|
4229
|
-
label:
|
|
4248
|
+
label: I("header.darkMode"),
|
|
4230
4249
|
color: "neutral",
|
|
4231
4250
|
"data-color-scheme": "light"
|
|
4232
4251
|
}
|
|
4233
4252
|
) }),
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4253
|
+
T && _ && /* @__PURE__ */ r.jsx("div", { className: S.extensionDivider }),
|
|
4254
|
+
_ && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4255
|
+
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4237
4256
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4238
4257
|
/* @__PURE__ */ r.jsxs(
|
|
4239
4258
|
ee.Trigger,
|
|
4240
4259
|
{
|
|
4241
|
-
className:
|
|
4242
|
-
"aria-label":
|
|
4260
|
+
className: S.languageLink,
|
|
4261
|
+
"aria-label": I("header.selectLanguage"),
|
|
4243
4262
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4244
4263
|
children: [
|
|
4245
4264
|
M,
|
|
4246
4265
|
" ",
|
|
4247
|
-
/* @__PURE__ */ r.jsx(
|
|
4266
|
+
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4248
4267
|
]
|
|
4249
4268
|
}
|
|
4250
4269
|
),
|
|
@@ -4262,71 +4281,71 @@ const cs = {
|
|
|
4262
4281
|
] })
|
|
4263
4282
|
] })
|
|
4264
4283
|
] }) }),
|
|
4265
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4266
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4284
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
|
|
4285
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
|
|
4267
4286
|
/* @__PURE__ */ r.jsx(
|
|
4268
4287
|
Ne,
|
|
4269
4288
|
{
|
|
4270
4289
|
href: "/",
|
|
4271
|
-
className: `${
|
|
4272
|
-
"aria-label":
|
|
4290
|
+
className: `${S.logo} ${S.primaryLogo}`,
|
|
4291
|
+
"aria-label": I("header.homeAriaLabel"),
|
|
4273
4292
|
onClick: re,
|
|
4274
4293
|
children: /* @__PURE__ */ r.jsx(Y, {})
|
|
4275
4294
|
}
|
|
4276
4295
|
),
|
|
4277
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
4296
|
+
/* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4278
4297
|
"img",
|
|
4279
4298
|
{
|
|
4280
|
-
src: N === "dark" &&
|
|
4299
|
+
src: N === "dark" && g ? g : k,
|
|
4281
4300
|
alt: h,
|
|
4282
|
-
className:
|
|
4301
|
+
className: S.secondaryLogo
|
|
4283
4302
|
}
|
|
4284
|
-
) : f ? /* @__PURE__ */ r.jsx("div", { className:
|
|
4303
|
+
) : f ? /* @__PURE__ */ r.jsx("div", { className: S.slotComponent, children: /* @__PURE__ */ r.jsx("div", { className: S.slotContainer, children: /* @__PURE__ */ r.jsx("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
|
|
4285
4304
|
] }),
|
|
4286
|
-
v && b && b.length > 0 && !
|
|
4305
|
+
v && b && b.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4287
4306
|
Ne,
|
|
4288
4307
|
{
|
|
4289
|
-
href:
|
|
4290
|
-
className:
|
|
4308
|
+
href: x.href,
|
|
4309
|
+
className: S.navLink,
|
|
4291
4310
|
onClick: (C) => {
|
|
4292
|
-
e && (C.preventDefault(), e(
|
|
4311
|
+
e && (C.preventDefault(), e(x.href));
|
|
4293
4312
|
},
|
|
4294
|
-
children:
|
|
4313
|
+
children: x.label
|
|
4295
4314
|
},
|
|
4296
|
-
|
|
4315
|
+
D
|
|
4297
4316
|
)) }),
|
|
4298
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4317
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.actions, children: [
|
|
4299
4318
|
o && /* @__PURE__ */ r.jsxs(
|
|
4300
4319
|
ye,
|
|
4301
4320
|
{
|
|
4302
4321
|
variant: "primary",
|
|
4303
4322
|
"data-color": "main",
|
|
4304
4323
|
"data-size": "md",
|
|
4305
|
-
className:
|
|
4324
|
+
className: S.ctaButton,
|
|
4306
4325
|
onClick: u,
|
|
4307
4326
|
children: [
|
|
4308
4327
|
l,
|
|
4309
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4328
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
|
|
4310
4329
|
]
|
|
4311
4330
|
}
|
|
4312
4331
|
),
|
|
4313
|
-
!
|
|
4332
|
+
!m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4314
4333
|
Ue,
|
|
4315
4334
|
{
|
|
4316
4335
|
checked: N === "dark",
|
|
4317
4336
|
onChange: q,
|
|
4318
|
-
"aria-label":
|
|
4337
|
+
"aria-label": I("header.toggleTheme")
|
|
4319
4338
|
}
|
|
4320
4339
|
) }),
|
|
4321
|
-
s && /* @__PURE__ */ r.jsxs("div", { className:
|
|
4322
|
-
/* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className:
|
|
4340
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: S.userInfo, children: [
|
|
4341
|
+
/* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
|
|
4323
4342
|
/* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4324
4343
|
] }),
|
|
4325
|
-
a && /* @__PURE__ */ r.jsxs("a", { href: "#", className:
|
|
4326
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4327
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
4344
|
+
a && /* @__PURE__ */ r.jsxs("a", { href: "#", className: S.loginLink, children: [
|
|
4345
|
+
/* @__PURE__ */ r.jsx("span", { className: S.loginText, children: I("header.login") }),
|
|
4346
|
+
/* @__PURE__ */ r.jsx("div", { className: S.underline })
|
|
4328
4347
|
] }),
|
|
4329
|
-
i && /* @__PURE__ */ r.jsx("div", { className:
|
|
4348
|
+
i && /* @__PURE__ */ r.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
4330
4349
|
ye,
|
|
4331
4350
|
{
|
|
4332
4351
|
variant: "secondary",
|
|
@@ -4334,48 +4353,48 @@ const cs = {
|
|
|
4334
4353
|
"data-size": "md",
|
|
4335
4354
|
onClick: A,
|
|
4336
4355
|
"aria-expanded": j,
|
|
4337
|
-
"aria-label":
|
|
4356
|
+
"aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
|
|
4338
4357
|
children: [
|
|
4339
4358
|
j ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
|
|
4340
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4359
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
|
|
4341
4360
|
]
|
|
4342
4361
|
}
|
|
4343
4362
|
) }),
|
|
4344
|
-
(p ||
|
|
4363
|
+
(p || U) && /* @__PURE__ */ r.jsxs(
|
|
4345
4364
|
ye,
|
|
4346
4365
|
{
|
|
4347
4366
|
variant: "primary",
|
|
4348
4367
|
"data-color": "main",
|
|
4349
4368
|
"data-size": "md",
|
|
4350
4369
|
onClick: c,
|
|
4351
|
-
"aria-expanded":
|
|
4352
|
-
"aria-label":
|
|
4353
|
-
className:
|
|
4370
|
+
"aria-expanded": F,
|
|
4371
|
+
"aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
|
|
4372
|
+
className: S.menuButton,
|
|
4354
4373
|
children: [
|
|
4355
|
-
|
|
4356
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4374
|
+
F ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4375
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
|
|
4357
4376
|
]
|
|
4358
4377
|
}
|
|
4359
4378
|
)
|
|
4360
4379
|
] })
|
|
4361
4380
|
] }),
|
|
4362
|
-
|
|
4363
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
4364
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4381
|
+
F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
|
|
4382
|
+
/* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
|
|
4383
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
|
|
4384
|
+
U && (_ || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
|
|
4385
|
+
_ && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4386
|
+
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4368
4387
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4369
4388
|
/* @__PURE__ */ r.jsxs(
|
|
4370
4389
|
ee.Trigger,
|
|
4371
4390
|
{
|
|
4372
|
-
className:
|
|
4373
|
-
"aria-label":
|
|
4391
|
+
className: S.languageLink,
|
|
4392
|
+
"aria-label": I("header.selectLanguage"),
|
|
4374
4393
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4375
4394
|
children: [
|
|
4376
4395
|
M,
|
|
4377
4396
|
" ",
|
|
4378
|
-
/* @__PURE__ */ r.jsx(
|
|
4397
|
+
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4379
4398
|
]
|
|
4380
4399
|
}
|
|
4381
4400
|
),
|
|
@@ -4392,105 +4411,105 @@ const cs = {
|
|
|
4392
4411
|
)
|
|
4393
4412
|
] })
|
|
4394
4413
|
] }),
|
|
4395
|
-
|
|
4414
|
+
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4396
4415
|
Ue,
|
|
4397
4416
|
{
|
|
4398
4417
|
"data-size": "sm",
|
|
4399
4418
|
checked: N === "dark",
|
|
4400
4419
|
onChange: q,
|
|
4401
|
-
label:
|
|
4420
|
+
label: I("header.darkMode"),
|
|
4402
4421
|
color: "neutral",
|
|
4403
4422
|
"data-color-scheme": "light"
|
|
4404
4423
|
}
|
|
4405
4424
|
) })
|
|
4406
4425
|
] }),
|
|
4407
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4426
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
|
|
4408
4427
|
n,
|
|
4409
|
-
|
|
4428
|
+
U && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4410
4429
|
Ne,
|
|
4411
4430
|
{
|
|
4412
|
-
href:
|
|
4413
|
-
className:
|
|
4431
|
+
href: x.href,
|
|
4432
|
+
className: S.navLink,
|
|
4414
4433
|
onClick: (C) => {
|
|
4415
|
-
e && (C.preventDefault(), e(
|
|
4434
|
+
e && (C.preventDefault(), e(x.href));
|
|
4416
4435
|
},
|
|
4417
|
-
children:
|
|
4436
|
+
children: x.label
|
|
4418
4437
|
},
|
|
4419
|
-
|
|
4438
|
+
D
|
|
4420
4439
|
)) })
|
|
4421
4440
|
] }),
|
|
4422
|
-
|
|
4441
|
+
U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4423
4442
|
] })
|
|
4424
4443
|
] }) }),
|
|
4425
|
-
j && /* @__PURE__ */ r.jsx("div", { className:
|
|
4444
|
+
j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
|
|
4426
4445
|
/* @__PURE__ */ r.jsxs(Pe, { children: [
|
|
4427
4446
|
/* @__PURE__ */ r.jsx(
|
|
4428
4447
|
Pe.Input,
|
|
4429
4448
|
{
|
|
4430
|
-
"aria-label":
|
|
4431
|
-
placeholder:
|
|
4432
|
-
value:
|
|
4433
|
-
onChange: (
|
|
4449
|
+
"aria-label": I("header.search"),
|
|
4450
|
+
placeholder: I("header.searchPlaceholder"),
|
|
4451
|
+
value: B,
|
|
4452
|
+
onChange: (x) => $(x.target.value)
|
|
4434
4453
|
}
|
|
4435
4454
|
),
|
|
4436
|
-
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label":
|
|
4437
|
-
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label":
|
|
4455
|
+
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": I("header.search") }),
|
|
4456
|
+
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
|
|
4438
4457
|
] }),
|
|
4439
|
-
|
|
4440
|
-
/* @__PURE__ */ r.jsx("h3", { className:
|
|
4441
|
-
/* @__PURE__ */ r.jsx("ul", { className:
|
|
4458
|
+
B && /* @__PURE__ */ r.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: S.suggestionsSection, children: [
|
|
4459
|
+
/* @__PURE__ */ r.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
|
|
4460
|
+
/* @__PURE__ */ r.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ r.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ r.jsxs(
|
|
4442
4461
|
"button",
|
|
4443
4462
|
{
|
|
4444
|
-
className:
|
|
4445
|
-
onClick: () => z(
|
|
4463
|
+
className: S.resultLink,
|
|
4464
|
+
onClick: () => z(x.path),
|
|
4446
4465
|
children: [
|
|
4447
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4448
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4449
|
-
const
|
|
4450
|
-
if (
|
|
4451
|
-
const C =
|
|
4466
|
+
/* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4467
|
+
/* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
|
|
4468
|
+
const D = x.title.toLowerCase().indexOf(B.toLowerCase());
|
|
4469
|
+
if (D === -1) return /* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: x.title });
|
|
4470
|
+
const C = x.title.slice(0, D), H = x.title.slice(D, D + B.length), J = x.title.slice(D + B.length);
|
|
4452
4471
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4453
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4454
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4455
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4472
|
+
/* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: C }),
|
|
4473
|
+
/* @__PURE__ */ r.jsx("span", { className: S.highlightedText, children: H }),
|
|
4474
|
+
/* @__PURE__ */ r.jsx("span", { className: S.remainingText, children: J })
|
|
4456
4475
|
] });
|
|
4457
4476
|
})() })
|
|
4458
4477
|
]
|
|
4459
4478
|
}
|
|
4460
|
-
) },
|
|
4479
|
+
) }, x.id)) }),
|
|
4461
4480
|
P.length > 5 && /* @__PURE__ */ r.jsxs(
|
|
4462
4481
|
Ne,
|
|
4463
4482
|
{
|
|
4464
4483
|
href: "#",
|
|
4465
4484
|
"data-color": "neutral",
|
|
4466
|
-
className:
|
|
4467
|
-
onClick: (
|
|
4468
|
-
|
|
4485
|
+
className: S.viewAllLink,
|
|
4486
|
+
onClick: (x) => {
|
|
4487
|
+
x.preventDefault(), e && e(`search/${B}`), L(!1), $("");
|
|
4469
4488
|
},
|
|
4470
4489
|
children: [
|
|
4471
|
-
|
|
4490
|
+
I("header.viewAll"),
|
|
4472
4491
|
" (",
|
|
4473
4492
|
P.length,
|
|
4474
4493
|
")"
|
|
4475
4494
|
]
|
|
4476
4495
|
}
|
|
4477
4496
|
)
|
|
4478
|
-
] }) : /* @__PURE__ */ r.jsx("div", { className:
|
|
4479
|
-
|
|
4497
|
+
] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4498
|
+
I("header.noResults"),
|
|
4480
4499
|
' "',
|
|
4481
|
-
|
|
4500
|
+
B,
|
|
4482
4501
|
'"'
|
|
4483
4502
|
] }) }) })
|
|
4484
4503
|
] }) })
|
|
4485
4504
|
] });
|
|
4486
4505
|
};
|
|
4487
|
-
function
|
|
4506
|
+
function ma(t) {
|
|
4488
4507
|
const e = t;
|
|
4489
4508
|
return `
|
|
4490
4509
|
.${e.header} {
|
|
4491
4510
|
width: 100%;
|
|
4492
4511
|
background-color: var(--ds-color-neutral-background-default);
|
|
4493
|
-
border-bottom:
|
|
4512
|
+
border-bottom: none;
|
|
4494
4513
|
position: relative;
|
|
4495
4514
|
z-index: 1000;
|
|
4496
4515
|
display: flex;
|
|
@@ -4547,8 +4566,8 @@ function ga(t) {
|
|
|
4547
4566
|
.${e.menuOverlay}, .${e.searchOverlay} {
|
|
4548
4567
|
position: absolute; top: 100%; left: 0; width: 100%;
|
|
4549
4568
|
background-color: var(--ds-color-neutral-background-default);
|
|
4550
|
-
border-bottom:
|
|
4551
|
-
box-shadow:
|
|
4569
|
+
border-bottom: none;
|
|
4570
|
+
box-shadow: none; z-index: 999;
|
|
4552
4571
|
}
|
|
4553
4572
|
.${e.searchOverlay} { padding: var(--ds-size-10) 0; }
|
|
4554
4573
|
.${e.searchOverlay}::before { display: none; }
|
|
@@ -4561,6 +4580,7 @@ function ga(t) {
|
|
|
4561
4580
|
.${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
4581
|
.${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
|
|
4563
4582
|
.${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; }
|
|
4583
|
+
.${e.navList} { display: flex; flex-direction: column; gap: var(--ds-size-3); align-items: flex-start; }
|
|
4564
4584
|
.${e.menuBrand} { display: none; }
|
|
4565
4585
|
.${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
|
|
4566
4586
|
.${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
|
|
@@ -4580,7 +4600,7 @@ function ga(t) {
|
|
|
4580
4600
|
.${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
4601
|
.${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
|
|
4582
4602
|
@media (max-width: 850px) {
|
|
4583
|
-
.${e.header} { z-index: 10000; }
|
|
4603
|
+
.${e.header} { z-index: 10000; position: relative; }
|
|
4584
4604
|
.${e.headerExtension} { display: none; }
|
|
4585
4605
|
.${e.headerInner} { padding: var(--ds-size-5) var(--ds-size-6); min-height: auto; }
|
|
4586
4606
|
.${e.navItems} { display: none; }
|
|
@@ -4594,8 +4614,8 @@ function ga(t) {
|
|
|
4594
4614
|
.${e.userName} { display: none; }
|
|
4595
4615
|
.${e.menuButton} .${e.buttonText} { display: none; }
|
|
4596
4616
|
.${e.searchButtonWrapper} .${e.buttonText} { display: inline; }
|
|
4597
|
-
.${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;
|
|
4617
|
+
.${e.menuOverlay} { position: fixed; top: var(--header-height-mobile, 70px); left: 0; right: 0; bottom: 0; width: 100vw; height: calc(100vh - var(--header-height-mobile, 70px)); z-index: 9999; border-radius: 0; border: none; overflow-y: auto; }
|
|
4618
|
+
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; }
|
|
4599
4619
|
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4600
4620
|
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|
|
4601
4621
|
.${e.menuRightColumn} { padding: var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|