rk-designsystem 1.1.52 → 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 +268 -256
- package/dist/componentlibrary.umd.js +5 -5
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ function oo() {
|
|
|
74
74
|
return "Portal";
|
|
75
75
|
case _:
|
|
76
76
|
return c.displayName || "Context";
|
|
77
|
-
case
|
|
77
|
+
case T:
|
|
78
78
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
79
79
|
case F:
|
|
80
80
|
var A = c.render;
|
|
@@ -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() {
|
|
@@ -153,7 +153,7 @@ function oo() {
|
|
|
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,8 +230,8 @@ 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) {
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function k(c) {
|
|
241
241
|
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
242
|
}
|
|
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"),
|
|
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 = {
|
|
@@ -251,26 +251,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
var U, ne = {}, Y = g.react_stack_bottom_frame.bind(
|
|
252
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;
|
|
@@ -765,7 +765,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
765
765
|
[a]
|
|
766
766
|
), y = ve(() => {
|
|
767
767
|
const m = Lt(/* @__PURE__ */ new Date(), { locale: be });
|
|
768
|
-
return Array.from({ length: 7 }).map((
|
|
768
|
+
return Array.from({ length: 7 }).map((T, _) => {
|
|
769
769
|
const F = Te(At(m, _), "EEEEEE", { locale: be });
|
|
770
770
|
return vt(F);
|
|
771
771
|
});
|
|
@@ -779,8 +779,8 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
779
779
|
},
|
|
780
780
|
[n]
|
|
781
781
|
), h = ae(
|
|
782
|
-
(m,
|
|
783
|
-
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(
|
|
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}`;
|
|
@@ -819,9 +819,9 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
819
819
|
] }),
|
|
820
820
|
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
|
|
821
821
|
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
|
|
822
|
-
const
|
|
822
|
+
const T = mt(m, a), _ = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
823
|
se.dateCell,
|
|
824
|
-
|
|
824
|
+
T ? "" : se.otherMonth,
|
|
825
825
|
_ ? se.selectedDate : "",
|
|
826
826
|
// Utheving basert på prop
|
|
827
827
|
F && !_ ? se.todayDate : ""
|
|
@@ -892,7 +892,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
892
892
|
onClick: p,
|
|
893
893
|
onFocus: m,
|
|
894
894
|
// Send ekstern onFocus videre
|
|
895
|
-
onBlur:
|
|
895
|
+
onBlur: T,
|
|
896
896
|
// Send ekstern onBlur videre
|
|
897
897
|
autoComplete: _ = "off",
|
|
898
898
|
"aria-label": F,
|
|
@@ -905,42 +905,42 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
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
922
|
te(() => {
|
|
923
|
-
if (
|
|
924
|
-
const
|
|
925
|
-
|
|
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,
|
|
927
|
+
}, [l, W, I, R]);
|
|
928
928
|
const ne = ae(
|
|
929
|
-
(
|
|
930
|
-
const C =
|
|
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 && (U(w), M.current.value = w, M.current.setSelectionRange(O, O), (w !== J ||
|
|
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,
|
|
@@ -952,7 +952,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
952
952
|
i ? pe.suffixButtonInteractive : ""
|
|
953
953
|
].filter(Boolean).join(" ");
|
|
954
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,
|
|
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(
|
|
@@ -973,7 +973,7 @@ 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
979
|
id: g,
|
|
@@ -983,11 +983,11 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
983
983
|
onClick: p,
|
|
984
984
|
onChange: ne,
|
|
985
985
|
onFocus: m,
|
|
986
|
-
onBlur:
|
|
986
|
+
onBlur: T,
|
|
987
987
|
autoComplete: _,
|
|
988
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
|
|
@@ -1268,7 +1268,7 @@ function Nt(t, e, n) {
|
|
|
1268
1268
|
}
|
|
1269
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:
|
|
1271
|
+
cross: T,
|
|
1272
1272
|
direction: _
|
|
1273
1273
|
} = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
|
|
1274
1274
|
passive: !1
|
|
@@ -1278,24 +1278,24 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
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
1284
|
if (!m) return;
|
|
1285
1285
|
function O(Z) {
|
|
1286
|
-
(Re(m) || m(w, Z)) &&
|
|
1286
|
+
(Re(m) || m(w, Z)) && D(Z);
|
|
1287
1287
|
}
|
|
1288
1288
|
const G = e;
|
|
1289
1289
|
j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
|
|
1290
1290
|
}, E).add(G, "touchend", () => {
|
|
1291
|
-
}).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel",
|
|
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, E).add(w, "touchend",
|
|
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 || "";
|
|
@@ -1304,24 +1304,24 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
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
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) || (U = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), A(), R = a.readPoint(w),
|
|
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,
|
|
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
1318
|
if (!ne && !q && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
|
-
return
|
|
1319
|
+
return H(w);
|
|
1320
1320
|
const me = a.pointerMove(w);
|
|
1321
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 =
|
|
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
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) {
|
|
@@ -1403,9 +1403,9 @@ function yr(t, e, n, s, i, a, o) {
|
|
|
1403
1403
|
if (!a) return;
|
|
1404
1404
|
u = k(t), y = s.map(k);
|
|
1405
1405
|
function p(m) {
|
|
1406
|
-
for (const
|
|
1406
|
+
for (const T of m) {
|
|
1407
1407
|
if (f) return;
|
|
1408
|
-
const _ =
|
|
1408
|
+
const _ = T.target === t, F = s.indexOf(T.target), E = _ ? u : y[F], j = k(_ ? t : s[F]);
|
|
1409
1409
|
if (K(j - E) >= 0.5) {
|
|
1410
1410
|
v.reInit(), e.emit("resize");
|
|
1411
1411
|
break;
|
|
@@ -1447,12 +1447,12 @@ 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
1452
|
function m() {
|
|
1453
1453
|
return _(a);
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function T(E) {
|
|
1456
1456
|
return l = E, F;
|
|
1457
1457
|
}
|
|
1458
1458
|
function _(E) {
|
|
@@ -1467,7 +1467,7 @@ function xr(t, e, n, s, i, a) {
|
|
|
1467
1467
|
useBaseFriction: m,
|
|
1468
1468
|
useBaseDuration: p,
|
|
1469
1469
|
useFriction: _,
|
|
1470
|
-
useDuration:
|
|
1470
|
+
useDuration: T
|
|
1471
1471
|
};
|
|
1472
1472
|
return F;
|
|
1473
1473
|
}
|
|
@@ -1505,8 +1505,8 @@ function Sr(t, e, n, s, i) {
|
|
|
1505
1505
|
const {
|
|
1506
1506
|
min: v,
|
|
1507
1507
|
max: p
|
|
1508
|
-
} = a, m = a.constrain(h),
|
|
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() {
|
|
@@ -1592,12 +1592,12 @@ function Ir(t, e, n, s, i, a) {
|
|
|
1592
1592
|
return n.length === 1 ? [a] : g ? k : k.slice(d, l).map((h, b, v) => {
|
|
1593
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
1598
|
if (m) {
|
|
1599
|
-
const
|
|
1600
|
-
return jt(
|
|
1599
|
+
const T = _e(a) - ie(v)[0] + 1;
|
|
1600
|
+
return jt(T, ie(v)[0]);
|
|
1601
1601
|
}
|
|
1602
1602
|
return h;
|
|
1603
1603
|
});
|
|
@@ -1616,10 +1616,10 @@ function Lr(t, e, n, s, i) {
|
|
|
1616
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((m,
|
|
1619
|
+
const b = t ? o(h) : d(h), v = e.map((m, T) => ({
|
|
1620
1620
|
diff: y(m - b, 0),
|
|
1621
|
-
index:
|
|
1622
|
-
})).sort((m,
|
|
1621
|
+
index: T
|
|
1622
|
+
})).sort((m, T) => K(m.diff) - K(T.diff)), {
|
|
1623
1623
|
index: p
|
|
1624
1624
|
} = v[0];
|
|
1625
1625
|
return {
|
|
@@ -1645,8 +1645,8 @@ function Lr(t, e, n, s, i) {
|
|
|
1645
1645
|
const v = i.get() + h, {
|
|
1646
1646
|
index: p,
|
|
1647
1647
|
distance: m
|
|
1648
|
-
} = u(v),
|
|
1649
|
-
if (!b ||
|
|
1648
|
+
} = u(v), T = !t && a(v);
|
|
1649
|
+
if (!b || T) return {
|
|
1650
1650
|
index: p,
|
|
1651
1651
|
distance: h
|
|
1652
1652
|
};
|
|
@@ -1691,7 +1691,7 @@ function Fr(t, e, n, s, i, a, o, d) {
|
|
|
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 m = n.findIndex((
|
|
1694
|
+
const m = n.findIndex((T) => T.includes(b));
|
|
1695
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) => {
|
|
@@ -1774,13 +1774,13 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1774
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
|
}
|
|
@@ -1792,7 +1792,7 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
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
|
}) => {
|
|
@@ -1814,7 +1814,7 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1814
1814
|
k.forEach((j) => j.translate.clear());
|
|
1815
1815
|
}
|
|
1816
1816
|
return {
|
|
1817
|
-
canLoop:
|
|
1817
|
+
canLoop: T,
|
|
1818
1818
|
clear: F,
|
|
1819
1819
|
loop: _,
|
|
1820
1820
|
loopPoints: k
|
|
@@ -1899,9 +1899,9 @@ function Nr(t, e, n, s, i, a) {
|
|
|
1899
1899
|
return parseFloat(m.getPropertyValue(`margin-${l}`));
|
|
1900
1900
|
}
|
|
1901
1901
|
function v() {
|
|
1902
|
-
return n.map((m,
|
|
1903
|
-
const F = !
|
|
1904
|
-
return F ? k[
|
|
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
1905
|
}).map(K);
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
@@ -1918,14 +1918,14 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1918
1918
|
direction: f
|
|
1919
1919
|
} = t, k = Qe(n);
|
|
1920
1920
|
function g(p, m) {
|
|
1921
|
-
return Le(p).filter((
|
|
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((m,
|
|
1925
|
-
const F = ie(m) || 0, E = F === 0, j =
|
|
1926
|
-
return _ &&
|
|
1927
|
-
}, []).map((m,
|
|
1928
|
-
const F = Math.max(_[
|
|
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
1929
|
return p.slice(F, m);
|
|
1930
1930
|
}) : [];
|
|
1931
1931
|
}
|
|
@@ -1950,23 +1950,23 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
1950
1950
|
slidesToScroll: v,
|
|
1951
1951
|
skipSnaps: p,
|
|
1952
1952
|
containScroll: m,
|
|
1953
|
-
watchResize:
|
|
1953
|
+
watchResize: T,
|
|
1954
1954
|
watchSlides: _,
|
|
1955
1955
|
watchDrag: F,
|
|
1956
1956
|
watchFocus: E
|
|
1957
|
-
} = a, j = 2, L = br(), B = L.measure(e), $ = n.map(L.measure), N = fr(l, u),
|
|
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
1958
|
slideSizes: ne,
|
|
1959
1959
|
slideSizesWithGaps: Y,
|
|
1960
1960
|
startGap: q,
|
|
1961
1961
|
endGap: re
|
|
1962
|
-
} = Nr(N, B, $, n, U, i), c = Pr(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
1965
|
} = Dr(N, R, B, $, c), z = -ie(A) + ie(Y), {
|
|
1966
|
-
snapsContained:
|
|
1967
|
-
scrollContainLimit:
|
|
1968
|
-
} = Sr(
|
|
1969
|
-
limit:
|
|
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,9 +1996,9 @@ 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), me = De(le), ce = De(le), ge = De(le), xe = xr(de, ce, me, ge, k, Z), ze = Lr(f, C, z,
|
|
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,
|
|
@@ -2011,21 +2011,21 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
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
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
2030
|
slidesHandler: Er(e, o, _),
|
|
2031
2031
|
slidesInView: Rt,
|
|
@@ -2132,12 +2132,12 @@ function Me(t, e, n) {
|
|
|
2132
2132
|
off: g,
|
|
2133
2133
|
emit: h
|
|
2134
2134
|
} = l, b = N;
|
|
2135
|
-
let v = !1, p, m = u(zr, Me.globalOptions),
|
|
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
|
-
} =
|
|
2140
|
+
} = T;
|
|
2141
2141
|
E = (Ye(V) ? t.querySelector(V) : V) || t.children[0];
|
|
2142
2142
|
const G = Ye(w) ? E.querySelectorAll(w) : w;
|
|
2143
2143
|
j = [].slice.call(G || E.children);
|
|
@@ -2153,26 +2153,26 @@ function Me(t, e, n) {
|
|
|
2153
2153
|
return w;
|
|
2154
2154
|
}
|
|
2155
2155
|
function $(V, w) {
|
|
2156
|
-
v || (m = u(m, 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
|
}
|
|
@@ -2204,16 +2204,16 @@ function Me(t, e, n) {
|
|
|
2204
2204
|
function z() {
|
|
2205
2205
|
return p.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function x() {
|
|
2208
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
|
|
2216
|
+
function H() {
|
|
2217
2217
|
return E;
|
|
2218
2218
|
}
|
|
2219
2219
|
function J() {
|
|
@@ -2222,17 +2222,17 @@ function Me(t, e, n) {
|
|
|
2222
2222
|
const X = {
|
|
2223
2223
|
canScrollNext: ne,
|
|
2224
2224
|
canScrollPrev: Y,
|
|
2225
|
-
containerNode:
|
|
2226
|
-
internalEngine:
|
|
2225
|
+
containerNode: H,
|
|
2226
|
+
internalEngine: D,
|
|
2227
2227
|
destroy: M,
|
|
2228
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:
|
|
2235
|
+
scrollNext: I,
|
|
2236
2236
|
scrollPrev: U,
|
|
2237
2237
|
scrollProgress: re,
|
|
2238
2238
|
scrollSnapList: q,
|
|
@@ -2296,14 +2296,14 @@ 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, g] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [m,
|
|
2299
|
+
}, [k, g] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [m, T] = oe([]);
|
|
2300
2300
|
te(() => {
|
|
2301
|
-
|
|
2301
|
+
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2302
|
}, [t]);
|
|
2303
2303
|
const _ = ae((M) => {
|
|
2304
|
-
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2304
|
+
T((R) => {
|
|
2305
|
+
const I = [...R];
|
|
2306
|
+
return I[M] = !0, I;
|
|
2307
2307
|
});
|
|
2308
2308
|
}, []), F = ve(() => n * 1e3, [n]), E = ae(() => {
|
|
2309
2309
|
g && b(g.selectedScrollSnap());
|
|
@@ -2324,7 +2324,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2324
2324
|
window.clearInterval(M);
|
|
2325
2325
|
};
|
|
2326
2326
|
}, [e, F, g, t]);
|
|
2327
|
-
const $ = Math.max(1, o), N = `${100 / $}%`,
|
|
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,8 +2347,8 @@ 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
|
|
@@ -2364,8 +2364,8 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2364
2364
|
loading: R < $ ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
2366
|
onLoad: () => _(R),
|
|
2367
|
-
onError: (
|
|
2368
|
-
|
|
2367
|
+
onError: (I) => {
|
|
2368
|
+
I.target.style.display = "none", _(R);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
@@ -2401,15 +2401,15 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
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}`
|
|
@@ -3985,7 +3985,7 @@ 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
|
-
}, 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",
|
|
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
3989
|
header: ms,
|
|
3990
3990
|
languageSwitch: gs,
|
|
3991
3991
|
searchOverlay: ps,
|
|
@@ -4122,15 +4122,15 @@ const cs = {
|
|
|
4122
4122
|
showNavItems: v = !0,
|
|
4123
4123
|
showMenuButton: p = !0,
|
|
4124
4124
|
showHeaderExtension: m = !1,
|
|
4125
|
-
showModeToggle:
|
|
4125
|
+
showModeToggle: T = !1,
|
|
4126
4126
|
showLanguageSwitch: _ = !1
|
|
4127
4127
|
}) => {
|
|
4128
|
-
const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N,
|
|
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
4129
|
te(() => {
|
|
4130
|
-
const
|
|
4131
|
-
if (typeof document > "u" || document.getElementById(
|
|
4132
|
-
const
|
|
4133
|
-
C.id =
|
|
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" }),
|
|
@@ -4161,92 +4161,104 @@ const cs = {
|
|
|
4161
4161
|
E(!1), L(!1), $("");
|
|
4162
4162
|
}, [t]), te(() => {
|
|
4163
4163
|
if (!(typeof document > "u") && F && U) {
|
|
4164
|
-
const
|
|
4164
|
+
const x = document.body.style.overflow;
|
|
4165
4165
|
return document.body.style.overflow = "hidden", () => {
|
|
4166
|
-
document.body.style.overflow =
|
|
4166
|
+
document.body.style.overflow = x;
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
4169
4169
|
}, [F, U]), te(() => {
|
|
4170
4170
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4171
|
-
const
|
|
4172
|
-
return
|
|
4173
|
-
|
|
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);
|
|
4174
4174
|
};
|
|
4175
4175
|
}, []), te(() => {
|
|
4176
4176
|
if (typeof document > "u") return;
|
|
4177
|
-
const
|
|
4178
|
-
if (!
|
|
4179
|
-
const
|
|
4180
|
-
const
|
|
4181
|
-
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`);
|
|
4182
|
+
};
|
|
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();
|
|
4182
4189
|
};
|
|
4183
|
-
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4184
4190
|
}, [U]), te(() => {
|
|
4185
4191
|
if (typeof document > "u") return;
|
|
4186
|
-
const
|
|
4187
|
-
if (!
|
|
4188
|
-
const
|
|
4189
|
-
const C =
|
|
4192
|
+
const x = document.querySelector(`.${S.logoWrapper}`);
|
|
4193
|
+
if (!x) return;
|
|
4194
|
+
const D = () => {
|
|
4195
|
+
const C = x.offsetWidth;
|
|
4190
4196
|
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4191
4197
|
};
|
|
4192
|
-
return
|
|
4198
|
+
return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
|
|
4193
4199
|
}, [U]), te(() => {
|
|
4194
4200
|
if (typeof document > "u" || !j) {
|
|
4195
4201
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4196
4202
|
return;
|
|
4197
4203
|
}
|
|
4198
|
-
const
|
|
4199
|
-
if (!
|
|
4200
|
-
const
|
|
4201
|
-
const
|
|
4202
|
-
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`);
|
|
4203
4209
|
};
|
|
4204
|
-
requestAnimationFrame(
|
|
4205
|
-
const C = new ResizeObserver(
|
|
4206
|
-
return C.observe(
|
|
4207
|
-
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();
|
|
4208
4214
|
};
|
|
4209
4215
|
}, [j]);
|
|
4210
4216
|
const q = () => {
|
|
4211
|
-
const
|
|
4212
|
-
|
|
4213
|
-
}, re = (
|
|
4214
|
-
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);
|
|
4215
4221
|
}, c = () => {
|
|
4216
|
-
E(!F), j && L(!1)
|
|
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
|
+
});
|
|
4217
4229
|
}, A = () => {
|
|
4218
4230
|
L(!j), F && E(!1);
|
|
4219
4231
|
}, P = ve(() => {
|
|
4220
4232
|
if (!B.trim()) return [];
|
|
4221
|
-
const
|
|
4233
|
+
const x = B.toLowerCase();
|
|
4222
4234
|
return ua.filter(
|
|
4223
|
-
(
|
|
4235
|
+
(D) => D.title.toLowerCase().startsWith(x)
|
|
4224
4236
|
);
|
|
4225
|
-
}, [B]), z = (
|
|
4226
|
-
e && e(
|
|
4237
|
+
}, [B]), z = (x) => {
|
|
4238
|
+
e && e(x), L(!1), $("");
|
|
4227
4239
|
};
|
|
4228
|
-
return /* @__PURE__ */ r.jsxs("header", { className:
|
|
4229
|
-
m && /* @__PURE__ */ r.jsx("div", { className:
|
|
4230
|
-
|
|
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(
|
|
4231
4243
|
Ue,
|
|
4232
4244
|
{
|
|
4233
4245
|
"data-size": "sm",
|
|
4234
4246
|
checked: N === "dark",
|
|
4235
4247
|
onChange: q,
|
|
4236
|
-
label:
|
|
4248
|
+
label: I("header.darkMode"),
|
|
4237
4249
|
color: "neutral",
|
|
4238
4250
|
"data-color-scheme": "light"
|
|
4239
4251
|
}
|
|
4240
4252
|
) }),
|
|
4241
|
-
|
|
4242
|
-
_ && /* @__PURE__ */ r.jsxs("div", { className:
|
|
4243
|
-
/* @__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") }),
|
|
4244
4256
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4245
4257
|
/* @__PURE__ */ r.jsxs(
|
|
4246
4258
|
ee.Trigger,
|
|
4247
4259
|
{
|
|
4248
|
-
className:
|
|
4249
|
-
"aria-label":
|
|
4260
|
+
className: S.languageLink,
|
|
4261
|
+
"aria-label": I("header.selectLanguage"),
|
|
4250
4262
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4251
4263
|
children: [
|
|
4252
4264
|
M,
|
|
@@ -4269,71 +4281,71 @@ const cs = {
|
|
|
4269
4281
|
] })
|
|
4270
4282
|
] })
|
|
4271
4283
|
] }) }),
|
|
4272
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4273
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4284
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.headerInner, children: [
|
|
4285
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.logoWrapper, children: [
|
|
4274
4286
|
/* @__PURE__ */ r.jsx(
|
|
4275
4287
|
Ne,
|
|
4276
4288
|
{
|
|
4277
4289
|
href: "/",
|
|
4278
|
-
className: `${
|
|
4279
|
-
"aria-label":
|
|
4290
|
+
className: `${S.logo} ${S.primaryLogo}`,
|
|
4291
|
+
"aria-label": I("header.homeAriaLabel"),
|
|
4280
4292
|
onClick: re,
|
|
4281
4293
|
children: /* @__PURE__ */ r.jsx(Y, {})
|
|
4282
4294
|
}
|
|
4283
4295
|
),
|
|
4284
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
4296
|
+
/* @__PURE__ */ r.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4285
4297
|
"img",
|
|
4286
4298
|
{
|
|
4287
4299
|
src: N === "dark" && g ? g : k,
|
|
4288
4300
|
alt: h,
|
|
4289
|
-
className:
|
|
4301
|
+
className: S.secondaryLogo
|
|
4290
4302
|
}
|
|
4291
|
-
) : 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 })
|
|
4292
4304
|
] }),
|
|
4293
|
-
v && b && b.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className:
|
|
4305
|
+
v && b && b.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4294
4306
|
Ne,
|
|
4295
4307
|
{
|
|
4296
|
-
href:
|
|
4297
|
-
className:
|
|
4308
|
+
href: x.href,
|
|
4309
|
+
className: S.navLink,
|
|
4298
4310
|
onClick: (C) => {
|
|
4299
|
-
e && (C.preventDefault(), e(
|
|
4311
|
+
e && (C.preventDefault(), e(x.href));
|
|
4300
4312
|
},
|
|
4301
|
-
children:
|
|
4313
|
+
children: x.label
|
|
4302
4314
|
},
|
|
4303
|
-
|
|
4315
|
+
D
|
|
4304
4316
|
)) }),
|
|
4305
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4317
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.actions, children: [
|
|
4306
4318
|
o && /* @__PURE__ */ r.jsxs(
|
|
4307
4319
|
ye,
|
|
4308
4320
|
{
|
|
4309
4321
|
variant: "primary",
|
|
4310
4322
|
"data-color": "main",
|
|
4311
4323
|
"data-size": "md",
|
|
4312
|
-
className:
|
|
4324
|
+
className: S.ctaButton,
|
|
4313
4325
|
onClick: u,
|
|
4314
4326
|
children: [
|
|
4315
4327
|
l,
|
|
4316
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4328
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
|
|
4317
4329
|
]
|
|
4318
4330
|
}
|
|
4319
4331
|
),
|
|
4320
|
-
!m && y && /* @__PURE__ */ r.jsx("div", { className:
|
|
4332
|
+
!m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4321
4333
|
Ue,
|
|
4322
4334
|
{
|
|
4323
4335
|
checked: N === "dark",
|
|
4324
4336
|
onChange: q,
|
|
4325
|
-
"aria-label":
|
|
4337
|
+
"aria-label": I("header.toggleTheme")
|
|
4326
4338
|
}
|
|
4327
4339
|
) }),
|
|
4328
|
-
s && /* @__PURE__ */ r.jsxs("div", { className:
|
|
4329
|
-
/* @__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" }),
|
|
4330
4342
|
/* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4331
4343
|
] }),
|
|
4332
|
-
a && /* @__PURE__ */ r.jsxs("a", { href: "#", className:
|
|
4333
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4334
|
-
/* @__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 })
|
|
4335
4347
|
] }),
|
|
4336
|
-
i && /* @__PURE__ */ r.jsx("div", { className:
|
|
4348
|
+
i && /* @__PURE__ */ r.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
4337
4349
|
ye,
|
|
4338
4350
|
{
|
|
4339
4351
|
variant: "secondary",
|
|
@@ -4341,10 +4353,10 @@ const cs = {
|
|
|
4341
4353
|
"data-size": "md",
|
|
4342
4354
|
onClick: A,
|
|
4343
4355
|
"aria-expanded": j,
|
|
4344
|
-
"aria-label":
|
|
4356
|
+
"aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
|
|
4345
4357
|
children: [
|
|
4346
4358
|
j ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
|
|
4347
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4359
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
|
|
4348
4360
|
]
|
|
4349
4361
|
}
|
|
4350
4362
|
) }),
|
|
@@ -4356,28 +4368,28 @@ const cs = {
|
|
|
4356
4368
|
"data-size": "md",
|
|
4357
4369
|
onClick: c,
|
|
4358
4370
|
"aria-expanded": F,
|
|
4359
|
-
"aria-label":
|
|
4360
|
-
className:
|
|
4371
|
+
"aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
|
|
4372
|
+
className: S.menuButton,
|
|
4361
4373
|
children: [
|
|
4362
4374
|
F ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4363
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4375
|
+
/* @__PURE__ */ r.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
|
|
4364
4376
|
]
|
|
4365
4377
|
}
|
|
4366
4378
|
)
|
|
4367
4379
|
] })
|
|
4368
4380
|
] }),
|
|
4369
|
-
F && /* @__PURE__ */ r.jsx("div", { className:
|
|
4370
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
4371
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4372
|
-
U && (_ ||
|
|
4373
|
-
_ && /* @__PURE__ */ r.jsxs("div", { className:
|
|
4374
|
-
/* @__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") }),
|
|
4375
4387
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4376
4388
|
/* @__PURE__ */ r.jsxs(
|
|
4377
4389
|
ee.Trigger,
|
|
4378
4390
|
{
|
|
4379
|
-
className:
|
|
4380
|
-
"aria-label":
|
|
4391
|
+
className: S.languageLink,
|
|
4392
|
+
"aria-label": I("header.selectLanguage"),
|
|
4381
4393
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4382
4394
|
children: [
|
|
4383
4395
|
M,
|
|
@@ -4399,91 +4411,91 @@ const cs = {
|
|
|
4399
4411
|
)
|
|
4400
4412
|
] })
|
|
4401
4413
|
] }),
|
|
4402
|
-
|
|
4414
|
+
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4403
4415
|
Ue,
|
|
4404
4416
|
{
|
|
4405
4417
|
"data-size": "sm",
|
|
4406
4418
|
checked: N === "dark",
|
|
4407
4419
|
onChange: q,
|
|
4408
|
-
label:
|
|
4420
|
+
label: I("header.darkMode"),
|
|
4409
4421
|
color: "neutral",
|
|
4410
4422
|
"data-color-scheme": "light"
|
|
4411
4423
|
}
|
|
4412
4424
|
) })
|
|
4413
4425
|
] }),
|
|
4414
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
4426
|
+
/* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
|
|
4415
4427
|
n,
|
|
4416
|
-
U && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className:
|
|
4428
|
+
U && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4417
4429
|
Ne,
|
|
4418
4430
|
{
|
|
4419
|
-
href:
|
|
4420
|
-
className:
|
|
4431
|
+
href: x.href,
|
|
4432
|
+
className: S.navLink,
|
|
4421
4433
|
onClick: (C) => {
|
|
4422
|
-
e && (C.preventDefault(), e(
|
|
4434
|
+
e && (C.preventDefault(), e(x.href));
|
|
4423
4435
|
},
|
|
4424
|
-
children:
|
|
4436
|
+
children: x.label
|
|
4425
4437
|
},
|
|
4426
|
-
|
|
4438
|
+
D
|
|
4427
4439
|
)) })
|
|
4428
4440
|
] }),
|
|
4429
|
-
U && /* @__PURE__ */ r.jsx("div", { className:
|
|
4441
|
+
U && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4430
4442
|
] })
|
|
4431
4443
|
] }) }),
|
|
4432
|
-
j && /* @__PURE__ */ r.jsx("div", { className:
|
|
4444
|
+
j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
|
|
4433
4445
|
/* @__PURE__ */ r.jsxs(Pe, { children: [
|
|
4434
4446
|
/* @__PURE__ */ r.jsx(
|
|
4435
4447
|
Pe.Input,
|
|
4436
4448
|
{
|
|
4437
|
-
"aria-label":
|
|
4438
|
-
placeholder:
|
|
4449
|
+
"aria-label": I("header.search"),
|
|
4450
|
+
placeholder: I("header.searchPlaceholder"),
|
|
4439
4451
|
value: B,
|
|
4440
|
-
onChange: (
|
|
4452
|
+
onChange: (x) => $(x.target.value)
|
|
4441
4453
|
}
|
|
4442
4454
|
),
|
|
4443
|
-
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label":
|
|
4444
|
-
/* @__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") })
|
|
4445
4457
|
] }),
|
|
4446
|
-
B && /* @__PURE__ */ r.jsx("div", { className:
|
|
4447
|
-
/* @__PURE__ */ r.jsx("h3", { className:
|
|
4448
|
-
/* @__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(
|
|
4449
4461
|
"button",
|
|
4450
4462
|
{
|
|
4451
|
-
className:
|
|
4452
|
-
onClick: () => z(
|
|
4463
|
+
className: S.resultLink,
|
|
4464
|
+
onClick: () => z(x.path),
|
|
4453
4465
|
children: [
|
|
4454
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4455
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4456
|
-
const
|
|
4457
|
-
if (
|
|
4458
|
-
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);
|
|
4459
4471
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4460
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4461
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4462
|
-
/* @__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 })
|
|
4463
4475
|
] });
|
|
4464
4476
|
})() })
|
|
4465
4477
|
]
|
|
4466
4478
|
}
|
|
4467
|
-
) },
|
|
4479
|
+
) }, x.id)) }),
|
|
4468
4480
|
P.length > 5 && /* @__PURE__ */ r.jsxs(
|
|
4469
4481
|
Ne,
|
|
4470
4482
|
{
|
|
4471
4483
|
href: "#",
|
|
4472
4484
|
"data-color": "neutral",
|
|
4473
|
-
className:
|
|
4474
|
-
onClick: (
|
|
4475
|
-
|
|
4485
|
+
className: S.viewAllLink,
|
|
4486
|
+
onClick: (x) => {
|
|
4487
|
+
x.preventDefault(), e && e(`search/${B}`), L(!1), $("");
|
|
4476
4488
|
},
|
|
4477
4489
|
children: [
|
|
4478
|
-
|
|
4490
|
+
I("header.viewAll"),
|
|
4479
4491
|
" (",
|
|
4480
4492
|
P.length,
|
|
4481
4493
|
")"
|
|
4482
4494
|
]
|
|
4483
4495
|
}
|
|
4484
4496
|
)
|
|
4485
|
-
] }) : /* @__PURE__ */ r.jsx("div", { className:
|
|
4486
|
-
|
|
4497
|
+
] }) : /* @__PURE__ */ r.jsx("div", { className: S.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4498
|
+
I("header.noResults"),
|
|
4487
4499
|
' "',
|
|
4488
4500
|
B,
|
|
4489
4501
|
'"'
|
|
@@ -4602,7 +4614,7 @@ function ma(t) {
|
|
|
4602
4614
|
.${e.userName} { display: none; }
|
|
4603
4615
|
.${e.menuButton} .${e.buttonText} { display: none; }
|
|
4604
4616
|
.${e.searchButtonWrapper} .${e.buttonText} { display: inline; }
|
|
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; }
|
|
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; }
|
|
4606
4618
|
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; }
|
|
4607
4619
|
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4608
4620
|
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|