rk-designsystem 1.1.53 → 1.1.55
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 +208 -207
- package/dist/componentlibrary.umd.js +6 -5
- package/dist/rk-designsystem.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as ve, useCallback as ae, useRef 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
|
|
3
|
-
import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as Lt, format as Te, addDays as At, subMonths as
|
|
1
|
+
import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as ve, useCallback as ae, useRef as Ue, createContext as Kt, 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 Ke, 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 zn, Switch as Mn, Table as Rn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as qn } 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 Un, addMonths as Kn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
|
|
4
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
|
/**
|
|
@@ -102,11 +102,11 @@ function oo() {
|
|
|
102
102
|
}
|
|
103
103
|
if (A) {
|
|
104
104
|
A = console;
|
|
105
|
-
var P = A.error,
|
|
105
|
+
var P = A.error, R = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
106
106
|
return P.call(
|
|
107
107
|
A,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
109
|
+
R
|
|
110
110
|
), e(c);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -129,7 +129,7 @@ function oo() {
|
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
131
|
function o(c) {
|
|
132
|
-
if (
|
|
132
|
+
if (z.call(c, "key")) {
|
|
133
133
|
var A = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
134
134
|
if (A && A.isReactWarning) return !1;
|
|
135
135
|
}
|
|
@@ -137,7 +137,7 @@ function oo() {
|
|
|
137
137
|
}
|
|
138
138
|
function d(c, A) {
|
|
139
139
|
function P() {
|
|
140
|
-
|
|
140
|
+
q || (q = !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
|
));
|
|
@@ -153,14 +153,14 @@ 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,
|
|
156
|
+
function u(c, A, P, R, x, D) {
|
|
157
157
|
var C = P.ref;
|
|
158
158
|
return c = {
|
|
159
159
|
$$typeof: h,
|
|
160
160
|
type: c,
|
|
161
161
|
key: A,
|
|
162
162
|
props: P,
|
|
163
|
-
_owner:
|
|
163
|
+
_owner: R
|
|
164
164
|
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: l
|
|
@@ -186,36 +186,36 @@ function oo() {
|
|
|
186
186
|
value: D
|
|
187
187
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
188
188
|
}
|
|
189
|
-
function y(c, A, P,
|
|
189
|
+
function y(c, A, P, R, x, D) {
|
|
190
190
|
var C = A.children;
|
|
191
191
|
if (C !== void 0)
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
for (
|
|
195
|
-
f(C[
|
|
192
|
+
if (R)
|
|
193
|
+
if (M(C)) {
|
|
194
|
+
for (R = 0; R < C.length; R++)
|
|
195
|
+
f(C[R]);
|
|
196
196
|
Object.freeze && Object.freeze(C);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
201
|
else f(C);
|
|
202
|
-
if (
|
|
202
|
+
if (z.call(A, "key")) {
|
|
203
203
|
C = t(c);
|
|
204
204
|
var H = Object.keys(A).filter(function(X) {
|
|
205
205
|
return X !== "key";
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
R = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + R] || (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} />
|
|
211
211
|
React keys must be passed directly to JSX without using spread:
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
|
-
|
|
214
|
+
R,
|
|
215
215
|
C,
|
|
216
216
|
H,
|
|
217
217
|
C
|
|
218
|
-
), re[C +
|
|
218
|
+
), re[C + R] = !0);
|
|
219
219
|
}
|
|
220
220
|
if (C = null, P !== void 0 && (n(P), C = "" + P), o(A) && (n(A.key), C = "" + A.key), "key" in A) {
|
|
221
221
|
P = {};
|
|
@@ -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"), 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,
|
|
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, z = Object.prototype.hasOwnProperty, M = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
g = {
|
|
@@ -248,29 +248,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return c();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var q, ne = {}, Y = g.react_stack_bottom_frame.bind(
|
|
252
252
|
g,
|
|
253
253
|
a
|
|
254
|
-
)(),
|
|
254
|
+
)(), K = I(s(a)), re = {};
|
|
255
255
|
we.Fragment = v, we.jsx = function(c, A, P) {
|
|
256
|
-
var
|
|
256
|
+
var R = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return y(
|
|
258
258
|
c,
|
|
259
259
|
A,
|
|
260
260
|
P,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
R ? Error("react-stack-top-frame") : Y,
|
|
263
|
+
R ? I(s(c)) : K
|
|
264
264
|
);
|
|
265
265
|
}, we.jsxs = function(c, A, P) {
|
|
266
|
-
var
|
|
266
|
+
var R = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return y(
|
|
268
268
|
c,
|
|
269
269
|
A,
|
|
270
270
|
P,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
R ? Error("react-stack-top-frame") : Y,
|
|
273
|
+
R ? I(s(c)) : K
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), we;
|
|
@@ -286,7 +286,7 @@ const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
|
|
|
286
286
|
Ft.displayName = "Avatar";
|
|
287
287
|
const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
|
|
288
288
|
ao.displayName = "Badge";
|
|
289
|
-
const ka = Xt, ba = en, va = tn, ya = nn, xa = on, ye =
|
|
289
|
+
const ka = Xt, ba = en, va = tn, ya = nn, xa = on, ye = Ke;
|
|
290
290
|
ye.displayName = "Button";
|
|
291
291
|
const io = rn, Ta = sn;
|
|
292
292
|
io.displayName = "Card";
|
|
@@ -606,14 +606,14 @@ const po = {
|
|
|
606
606
|
/^n/i,
|
|
607
607
|
/^d/i
|
|
608
608
|
]
|
|
609
|
-
},
|
|
609
|
+
}, zo = {
|
|
610
610
|
narrow: /^[smtofl]/i,
|
|
611
611
|
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
612
612
|
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
613
613
|
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
614
|
-
},
|
|
614
|
+
}, Mo = {
|
|
615
615
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
616
|
-
},
|
|
616
|
+
}, Ro = {
|
|
617
617
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
618
618
|
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
619
619
|
}, Oo = {
|
|
@@ -653,13 +653,13 @@ const po = {
|
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: je({
|
|
656
|
-
matchPatterns:
|
|
656
|
+
matchPatterns: zo,
|
|
657
657
|
defaultMatchWidth: "wide",
|
|
658
|
-
parsePatterns:
|
|
658
|
+
parsePatterns: Mo,
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: je({
|
|
662
|
-
matchPatterns:
|
|
662
|
+
matchPatterns: Ro,
|
|
663
663
|
defaultMatchWidth: "any",
|
|
664
664
|
parsePatterns: Oo,
|
|
665
665
|
defaultParseWidth: "any"
|
|
@@ -727,14 +727,14 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
Et.displayName = "ChevronRightIcon";
|
|
730
|
-
const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32",
|
|
730
|
+
const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", qo = "_grid_10l5p_41", Uo = "_dayNameCell_10l5p_48", Ko = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
|
|
731
731
|
calendarContainer: Ho,
|
|
732
732
|
calendarHeader: Wo,
|
|
733
733
|
monthYear: Vo,
|
|
734
734
|
navigationButtons: Go,
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
737
|
-
dateCell:
|
|
735
|
+
grid: qo,
|
|
736
|
+
dayNameCell: Uo,
|
|
737
|
+
dateCell: Ko,
|
|
738
738
|
dateNumberContainer: Yo,
|
|
739
739
|
otherMonth: Jo,
|
|
740
740
|
selectedDate: Zo
|
|
@@ -770,9 +770,9 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
770
770
|
return vt(F);
|
|
771
771
|
});
|
|
772
772
|
}, []), f = ae(() => {
|
|
773
|
-
l || o((m) => ke(
|
|
773
|
+
l || o((m) => ke(Un(m, 1)));
|
|
774
774
|
}, [l]), k = ae(() => {
|
|
775
|
-
o((m) => ke(
|
|
775
|
+
o((m) => ke(Kn(m, 1)));
|
|
776
776
|
}, []), g = ae(
|
|
777
777
|
(m) => {
|
|
778
778
|
n && n(m);
|
|
@@ -795,7 +795,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
795
795
|
/* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: p }),
|
|
796
796
|
/* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
|
|
797
797
|
/* @__PURE__ */ r.jsx(
|
|
798
|
-
|
|
798
|
+
Ke,
|
|
799
799
|
{
|
|
800
800
|
variant: "tertiary",
|
|
801
801
|
icon: !0,
|
|
@@ -806,7 +806,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
808
|
/* @__PURE__ */ r.jsx(
|
|
809
|
-
|
|
809
|
+
Ke,
|
|
810
810
|
{
|
|
811
811
|
variant: "tertiary",
|
|
812
812
|
icon: !0,
|
|
@@ -905,33 +905,33 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
905
905
|
"data-size": $,
|
|
906
906
|
// <-- Destrukturering
|
|
907
907
|
...N
|
|
908
|
-
} = t, W = l !== void 0,
|
|
908
|
+
} = t, W = l !== void 0, z = Ue(null);
|
|
909
909
|
Dt.useImperativeHandle(
|
|
910
910
|
e,
|
|
911
|
-
() =>
|
|
911
|
+
() => z.current
|
|
912
912
|
);
|
|
913
|
-
const
|
|
913
|
+
const M = ae(
|
|
914
914
|
(D) => {
|
|
915
915
|
const C = xt(D), H = Tt(C);
|
|
916
916
|
return yt(H);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [I,
|
|
920
|
-
() =>
|
|
919
|
+
), [I, q] = oe(
|
|
920
|
+
() => M(l ?? u)
|
|
921
921
|
);
|
|
922
922
|
te(() => {
|
|
923
923
|
if (W) {
|
|
924
|
-
const D =
|
|
925
|
-
D !== I && (
|
|
924
|
+
const D = M(l);
|
|
925
|
+
D !== I && (q(D), z.current && z.current.value !== D && (z.current.value = D));
|
|
926
926
|
}
|
|
927
|
-
}, [l, W, I,
|
|
927
|
+
}, [l, W, I, M]);
|
|
928
928
|
const ne = ae(
|
|
929
929
|
(D) => {
|
|
930
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 (
|
|
934
|
+
if (z.current && (q(w), z.current.value = w, z.current.setSelectionRange(O, O), (w !== J || W) && y)) {
|
|
935
935
|
const Z = {
|
|
936
936
|
...D,
|
|
937
937
|
target: { ...C, value: w }
|
|
@@ -940,8 +940,8 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
|
-
[I, W, y,
|
|
944
|
-
), Y = [pe.fieldset, a].filter(Boolean).join(" "),
|
|
943
|
+
[I, W, y, M]
|
|
944
|
+
), Y = [pe.fieldset, a].filter(Boolean).join(" "), K = [
|
|
945
945
|
pe.inputWrapper,
|
|
946
946
|
o,
|
|
947
947
|
L ? pe.inputWrapperError : ""
|
|
@@ -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,
|
|
955
|
+
const A = n && typeof n == "string" ? E || `${g}-label` : void 0, P = j ? `${g}-desc` : void 0, R = L ? `${g}-err` : void 0, x = [P, R].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(
|
|
@@ -964,11 +964,11 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
964
964
|
children: [
|
|
965
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
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
967
|
+
/* @__PURE__ */ r.jsxs("div", { className: K, children: [
|
|
968
968
|
/* @__PURE__ */ r.jsx(
|
|
969
969
|
"input",
|
|
970
970
|
{
|
|
971
|
-
ref:
|
|
971
|
+
ref: z,
|
|
972
972
|
type: "text",
|
|
973
973
|
inputMode: "numeric",
|
|
974
974
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
@@ -1007,7 +1007,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
] }),
|
|
1010
|
-
L && /* @__PURE__ */ r.jsx("p", { id:
|
|
1010
|
+
L && /* @__PURE__ */ r.jsx("p", { id: R, className: pe.error, role: "alert", children: L })
|
|
1011
1011
|
]
|
|
1012
1012
|
}
|
|
1013
1013
|
)
|
|
@@ -1050,25 +1050,25 @@ function Qe(t) {
|
|
|
1050
1050
|
function Ye(t) {
|
|
1051
1051
|
return typeof t == "string";
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Me(t) {
|
|
1054
1054
|
return typeof t == "boolean";
|
|
1055
1055
|
}
|
|
1056
1056
|
function Ct(t) {
|
|
1057
1057
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function U(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 U(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 || U(t) <= U(e)) return 0;
|
|
1070
|
+
const n = Ie(U(t), U(e));
|
|
1071
|
+
return U(n / t);
|
|
1072
1072
|
}
|
|
1073
1073
|
function mr(t) {
|
|
1074
1074
|
return Math.round(t * 100) / 100;
|
|
@@ -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 = U(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 ? U((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
1250
|
return a;
|
|
@@ -1279,11 +1279,11 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
1281
|
}, W = h ? 43 : 25;
|
|
1282
|
-
let
|
|
1282
|
+
let z = !1, M = 0, I = 0, q = !1, ne = !1, Y = !1, K = !1;
|
|
1283
1283
|
function re(w) {
|
|
1284
1284
|
if (!m) return;
|
|
1285
1285
|
function O(Z) {
|
|
1286
|
-
(
|
|
1286
|
+
(Me(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", () => {
|
|
@@ -1294,41 +1294,41 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1294
1294
|
j.clear(), L.clear();
|
|
1295
1295
|
}
|
|
1296
1296
|
function A() {
|
|
1297
|
-
const w =
|
|
1297
|
+
const w = K ? n : e;
|
|
1298
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
1302
|
return F.includes(O);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return (h ? N : $)[
|
|
1304
|
+
function R() {
|
|
1305
|
+
return (h ? N : $)[K ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
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 || U(w) < B ? Z : v && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
|
|
1310
1310
|
}
|
|
1311
1311
|
function D(w) {
|
|
1312
1312
|
const O = Je(w, s);
|
|
1313
|
-
|
|
1313
|
+
K = O, Y = h && O && !w.buttons && z, z = Ie(i.get(), o.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (q = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(o), A(), M = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
1315
|
function C(w) {
|
|
1316
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,
|
|
1318
|
-
if (!ne && !
|
|
1317
|
+
const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, M), de = Ie(Z, I);
|
|
1318
|
+
if (!ne && !K && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
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
1323
|
function H(w) {
|
|
1324
|
-
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) *
|
|
1325
|
-
ne = !1,
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * R(), le = x(_(Z), G), de = ur(Z, le), me = W - 10 * de, ce = p + de / 50;
|
|
1325
|
+
ne = !1, q = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), K = !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 q;
|
|
1332
1332
|
}
|
|
1333
1333
|
return {
|
|
1334
1334
|
init: re,
|
|
@@ -1355,7 +1355,7 @@ function kr(t, e) {
|
|
|
1355
1355
|
function u(f) {
|
|
1356
1356
|
if (!s || !i) return 0;
|
|
1357
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 &&
|
|
1358
|
+
return g && !h && U(b) > 0.1 ? b : 0;
|
|
1359
1359
|
}
|
|
1360
1360
|
return {
|
|
1361
1361
|
pointerDown: d,
|
|
@@ -1406,14 +1406,14 @@ function yr(t, e, n, s, i, a, o) {
|
|
|
1406
1406
|
for (const T of m) {
|
|
1407
1407
|
if (f) return;
|
|
1408
1408
|
const _ = T.target === t, F = s.indexOf(T.target), E = _ ? u : y[F], j = k(_ ? t : s[F]);
|
|
1409
|
-
if (
|
|
1409
|
+
if (U(j - E) >= 0.5) {
|
|
1410
1410
|
v.reInit(), e.emit("resize");
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
l = new ResizeObserver((m) => {
|
|
1416
|
-
(
|
|
1416
|
+
(Me(a) || a(v, m)) && p(m);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
1418
|
d.forEach((m) => l.observe(m));
|
|
1419
1419
|
});
|
|
@@ -1435,7 +1435,7 @@ function xr(t, e, n, s, i, a) {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
function g() {
|
|
1437
1437
|
const E = s.get() - e.get();
|
|
1438
|
-
return
|
|
1438
|
+
return U(E) < 1e-3;
|
|
1439
1439
|
}
|
|
1440
1440
|
function h() {
|
|
1441
1441
|
return l;
|
|
@@ -1479,8 +1479,8 @@ function Tr(t, e, n, s, i) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
function y(g) {
|
|
1481
1481
|
if (!u()) return;
|
|
1482
|
-
const h = t.reachedMin(e.get()) ? "min" : "max", b =
|
|
1483
|
-
n.subtract(v * p), !g &&
|
|
1482
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", b = U(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / o);
|
|
1483
|
+
n.subtract(v * p), !g && U(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1484
1484
|
}
|
|
1485
1485
|
function f(g) {
|
|
1486
1486
|
l = !g;
|
|
@@ -1567,10 +1567,10 @@ function Dr(t, e, n, s, i) {
|
|
|
1567
1567
|
groupSlides: d
|
|
1568
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(U);
|
|
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) => -U(b));
|
|
1574
1574
|
}
|
|
1575
1575
|
function g() {
|
|
1576
1576
|
return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
|
|
@@ -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) => U(b) - U(v))[0];
|
|
1617
1617
|
}
|
|
1618
1618
|
function u(h) {
|
|
1619
1619
|
const b = t ? o(h) : d(h), v = e.map((m, T) => ({
|
|
1620
1620
|
diff: y(m - b, 0),
|
|
1621
1621
|
index: T
|
|
1622
|
-
})).sort((m, T) =>
|
|
1622
|
+
})).sort((m, T) => U(m.diff) - U(T.diff)), {
|
|
1623
1623
|
index: p
|
|
1624
1624
|
} = v[0];
|
|
1625
1625
|
return {
|
|
@@ -1696,7 +1696,7 @@ function Fr(t, e, n, s, i, a, o, d) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
a.add(document, "keydown", f, !1), e.forEach((b, v) => {
|
|
1698
1698
|
a.add(b, "focus", (p) => {
|
|
1699
|
-
(
|
|
1699
|
+
(Me(d) || d(g, p)) && h(v);
|
|
1700
1700
|
}, l);
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
@@ -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 W = B ? 0 : -n,
|
|
1777
|
+
const W = B ? 0 : -n, z = B ? n : 0, M = B ? "end" : "start", I = $[N][M];
|
|
1778
1778
|
return {
|
|
1779
1779
|
index: N,
|
|
1780
1780
|
loopPoint: I,
|
|
1781
1781
|
slideLocation: De(-1),
|
|
1782
1782
|
translate: Pt(t, l[N]),
|
|
1783
|
-
target: () => d.get() > I ? W :
|
|
1783
|
+
target: () => d.get() > I ? W : z
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
@@ -1832,7 +1832,7 @@ function Er(t, e, n) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
s = new MutationObserver((y) => {
|
|
1835
|
-
i || (
|
|
1835
|
+
i || (Me(n) || n(l, y)) && u(y);
|
|
1836
1836
|
}), s.observe(t, {
|
|
1837
1837
|
childList: !0
|
|
1838
1838
|
});
|
|
@@ -1891,7 +1891,7 @@ function Nr(t, e, n, s, i, a) {
|
|
|
1891
1891
|
function h() {
|
|
1892
1892
|
if (!u) return 0;
|
|
1893
1893
|
const m = n[0];
|
|
1894
|
-
return
|
|
1894
|
+
return U(e[d] - m[d]);
|
|
1895
1895
|
}
|
|
1896
1896
|
function b() {
|
|
1897
1897
|
if (!u) return 0;
|
|
@@ -1902,7 +1902,7 @@ function Nr(t, e, n, s, i, a) {
|
|
|
1902
1902
|
return n.map((m, T, _) => {
|
|
1903
1903
|
const F = !T, E = tt(_, T);
|
|
1904
1904
|
return F ? k[T] + y : E ? k[T] + f : _[T + 1][d] - m[d];
|
|
1905
|
-
}).map(
|
|
1905
|
+
}).map(U);
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
1908
1908
|
slideSizes: k,
|
|
@@ -1922,7 +1922,7 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(p) {
|
|
1924
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 =
|
|
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 = U(B - N - (L + $));
|
|
1926
1926
|
return _ && W > e + l && m.push(T), j && m.push(p.length), m;
|
|
1927
1927
|
}, []).map((m, T, _) => {
|
|
1928
1928
|
const F = Math.max(_[T - 1] || 0);
|
|
@@ -1936,7 +1936,7 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1936
1936
|
groupSlides: b
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function zr(t, e, n, s, i, a, o) {
|
|
1940
1940
|
const {
|
|
1941
1941
|
align: d,
|
|
1942
1942
|
axis: l,
|
|
@@ -1954,20 +1954,20 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
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), W = N.measureSize(B),
|
|
1957
|
+
} = a, j = 2, L = br(), B = L.measure(e), $ = n.map(L.measure), N = fr(l, u), W = N.measureSize(B), z = vr(W), M = gr(d, W), I = !f && !!m, q = f || !!m, {
|
|
1958
1958
|
slideSizes: ne,
|
|
1959
1959
|
slideSizesWithGaps: Y,
|
|
1960
|
-
startGap:
|
|
1960
|
+
startGap: K,
|
|
1961
1961
|
endGap: re
|
|
1962
|
-
} = Nr(N, B, $, n,
|
|
1962
|
+
} = Nr(N, B, $, n, q, i), c = Pr(N, W, v, f, B, $, K, re, j), {
|
|
1963
1963
|
snaps: A,
|
|
1964
1964
|
snapsAligned: P
|
|
1965
|
-
} = Dr(N,
|
|
1965
|
+
} = Dr(N, M, B, $, c), R = -ie(A) + ie(Y), {
|
|
1966
1966
|
snapsContained: x,
|
|
1967
1967
|
scrollContainLimit: D
|
|
1968
|
-
} = Sr(W,
|
|
1968
|
+
} = Sr(W, R, P, m, j), C = I ? x : P, {
|
|
1969
1969
|
limit: H
|
|
1970
|
-
} = wr(
|
|
1970
|
+
} = wr(R, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
|
|
1971
1971
|
dragHandler: he,
|
|
1972
1972
|
scrollBody: He,
|
|
1973
1973
|
scrollBounds: We,
|
|
@@ -1992,13 +1992,13 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
1992
1992
|
loop: it
|
|
1993
1993
|
}
|
|
1994
1994
|
}, lt) => {
|
|
1995
|
-
const dt = he.settled(),
|
|
1995
|
+
const dt = he.settled(), qt = !Gt.shouldConstrain(), ct = it ? dt : dt && qt, ut = ct && !Wt.pointerDown();
|
|
1996
1996
|
ut && Vt.stop();
|
|
1997
|
-
const
|
|
1998
|
-
Ee.set(
|
|
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),
|
|
1997
|
+
const Ut = We.get() * lt + Ot.get() * (1 - lt);
|
|
1998
|
+
Ee.set(Ut), 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), Re = Lr(f, C, R, H, ge), Oe = Ar(G, J, X, xe, Re, ge, o), ot = jr(H), rt = Fe(), Mt = Br(e, n, o, b), {
|
|
2000
2000
|
slideRegistry: st
|
|
2001
|
-
} = Ir(I, m, C, D, c, V),
|
|
2001
|
+
} = Ir(I, m, C, D, c, V), Rt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
|
|
2002
2002
|
ownerDocument: s,
|
|
2003
2003
|
ownerWindow: i,
|
|
2004
2004
|
eventHandler: o,
|
|
@@ -2006,9 +2006,9 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
2006
2006
|
slideRects: $,
|
|
2007
2007
|
animation: G,
|
|
2008
2008
|
axis: N,
|
|
2009
|
-
dragHandler: hr(N, t, s, i, ge, kr(N, i), de, G, Oe, xe,
|
|
2009
|
+
dragHandler: hr(N, t, s, i, ge, kr(N, i), de, G, Oe, xe, Re, J, o, z, g, h, p, Z, F),
|
|
2010
2010
|
eventStore: rt,
|
|
2011
|
-
percentOfView:
|
|
2011
|
+
percentOfView: z,
|
|
2012
2012
|
index: J,
|
|
2013
2013
|
indexPrevious: X,
|
|
2014
2014
|
limit: H,
|
|
@@ -2018,17 +2018,17 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
2018
2018
|
options: a,
|
|
2019
2019
|
resizeHandler: yr(e, o, i, n, N, T, L),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds: Tr(H, ce, ge, xe,
|
|
2022
|
-
scrollLooper: Cr(
|
|
2021
|
+
scrollBounds: Tr(H, ce, ge, xe, z),
|
|
2022
|
+
scrollLooper: Cr(R, H, ce, [de, ce, me, ge]),
|
|
2023
2023
|
scrollProgress: ot,
|
|
2024
2024
|
scrollSnapList: C.map(ot.get),
|
|
2025
2025
|
scrollSnaps: C,
|
|
2026
|
-
scrollTarget:
|
|
2026
|
+
scrollTarget: Re,
|
|
2027
2027
|
scrollTo: Oe,
|
|
2028
|
-
slideLooper: _r(N, W,
|
|
2029
|
-
slideFocus:
|
|
2028
|
+
slideLooper: _r(N, W, R, ne, Y, A, C, ce, n),
|
|
2029
|
+
slideFocus: Rt,
|
|
2030
2030
|
slidesHandler: Er(e, o, _),
|
|
2031
|
-
slidesInView:
|
|
2031
|
+
slidesInView: Mt,
|
|
2032
2032
|
slideIndexes: V,
|
|
2033
2033
|
slideRegistry: st,
|
|
2034
2034
|
slidesToScroll: c,
|
|
@@ -2037,7 +2037,7 @@ function Mr(t, e, n, s, i, a, o) {
|
|
|
2037
2037
|
};
|
|
2038
2038
|
return $e;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Mr() {
|
|
2041
2041
|
let t = {}, e;
|
|
2042
2042
|
function n(u) {
|
|
2043
2043
|
e = u;
|
|
@@ -2066,7 +2066,7 @@ function Rr() {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
return l;
|
|
2068
2068
|
}
|
|
2069
|
-
const
|
|
2069
|
+
const Rr = {
|
|
2070
2070
|
align: "center",
|
|
2071
2071
|
axis: "x",
|
|
2072
2072
|
container: null,
|
|
@@ -2122,8 +2122,8 @@ function $r(t) {
|
|
|
2122
2122
|
destroy: s
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const s = t.ownerDocument, i = s.defaultView, a = Or(i), o = $r(a), d = Fe(), l =
|
|
2125
|
+
function ze(t, e, n) {
|
|
2126
|
+
const s = t.ownerDocument, i = s.defaultView, a = Or(i), o = $r(a), d = Fe(), l = Mr(), {
|
|
2127
2127
|
mergeOptions: u,
|
|
2128
2128
|
optionsAtMedia: y,
|
|
2129
2129
|
optionsMediaQueries: f
|
|
@@ -2132,7 +2132,7 @@ 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(
|
|
2135
|
+
let v = !1, p, m = u(Rr, ze.globalOptions), T = u(m), _ = [], F, E, j;
|
|
2136
2136
|
function L() {
|
|
2137
2137
|
const {
|
|
2138
2138
|
container: V,
|
|
@@ -2143,7 +2143,7 @@ function Me(t, e, n) {
|
|
|
2143
2143
|
j = [].slice.call(G || E.children);
|
|
2144
2144
|
}
|
|
2145
2145
|
function B(V) {
|
|
2146
|
-
const w =
|
|
2146
|
+
const w = zr(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
|
|
@@ -2166,19 +2166,19 @@ function Me(t, e, n) {
|
|
|
2166
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
|
-
function
|
|
2169
|
+
function z() {
|
|
2170
2170
|
v || (v = !0, d.clear(), W(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function M(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
2175
|
function I(V) {
|
|
2176
2176
|
const w = p.index.add(1).get();
|
|
2177
|
-
|
|
2177
|
+
M(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function q(V) {
|
|
2180
2180
|
const w = p.index.add(-1).get();
|
|
2181
|
-
|
|
2181
|
+
M(w, V, 1);
|
|
2182
2182
|
}
|
|
2183
2183
|
function ne() {
|
|
2184
2184
|
return p.index.add(1).get() !== c();
|
|
@@ -2186,7 +2186,7 @@ function Me(t, e, n) {
|
|
|
2186
2186
|
function Y() {
|
|
2187
2187
|
return p.index.add(-1).get() !== c();
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function K() {
|
|
2190
2190
|
return p.scrollSnapList;
|
|
2191
2191
|
}
|
|
2192
2192
|
function re() {
|
|
@@ -2201,7 +2201,7 @@ function Me(t, e, n) {
|
|
|
2201
2201
|
function P() {
|
|
2202
2202
|
return p.slidesInView.get();
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function R() {
|
|
2205
2205
|
return p.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
2207
|
function x() {
|
|
@@ -2224,7 +2224,7 @@ function Me(t, e, n) {
|
|
|
2224
2224
|
canScrollPrev: Y,
|
|
2225
2225
|
containerNode: H,
|
|
2226
2226
|
internalEngine: D,
|
|
2227
|
-
destroy:
|
|
2227
|
+
destroy: z,
|
|
2228
2228
|
off: g,
|
|
2229
2229
|
on: k,
|
|
2230
2230
|
emit: h,
|
|
@@ -2233,20 +2233,20 @@ function Me(t, e, n) {
|
|
|
2233
2233
|
reInit: b,
|
|
2234
2234
|
rootNode: C,
|
|
2235
2235
|
scrollNext: I,
|
|
2236
|
-
scrollPrev:
|
|
2236
|
+
scrollPrev: q,
|
|
2237
2237
|
scrollProgress: re,
|
|
2238
|
-
scrollSnapList:
|
|
2239
|
-
scrollTo:
|
|
2238
|
+
scrollSnapList: K,
|
|
2239
|
+
scrollTo: M,
|
|
2240
2240
|
selectedScrollSnap: c,
|
|
2241
2241
|
slideNodes: J,
|
|
2242
2242
|
slidesInView: P,
|
|
2243
|
-
slidesNotInView:
|
|
2243
|
+
slidesNotInView: R
|
|
2244
2244
|
};
|
|
2245
2245
|
return $(e, n), setTimeout(() => l.emit("init"), 0), X;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
ze.globalOptions = void 0;
|
|
2248
2248
|
function nt(t = {}, e = []) {
|
|
2249
|
-
const n =
|
|
2249
|
+
const n = Ue(t), s = Ue(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
|
|
2250
2250
|
i && i.reInit(n.current, s.current);
|
|
2251
2251
|
}, [i]);
|
|
2252
2252
|
return te(() => {
|
|
@@ -2255,22 +2255,22 @@ function nt(t = {}, e = []) {
|
|
|
2255
2255
|
cr(s.current, e) || (s.current = e, l());
|
|
2256
2256
|
}, [e, l]), te(() => {
|
|
2257
2257
|
if (dr() && o) {
|
|
2258
|
-
|
|
2259
|
-
const u =
|
|
2258
|
+
ze.globalOptions = nt.globalOptions;
|
|
2259
|
+
const u = ze(o, n.current, s.current);
|
|
2260
2260
|
return a(u), () => u.destroy();
|
|
2261
2261
|
} else
|
|
2262
2262
|
a(void 0);
|
|
2263
2263
|
}, [o, a]), [d, i];
|
|
2264
2264
|
}
|
|
2265
2265
|
nt.globalOptions = void 0;
|
|
2266
|
-
const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17",
|
|
2266
|
+
const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", qr = "_slideInner_1bu1s_37", Ur = "_loaderOverlay_1bu1s_45", Kr = "_image_1bu1s_55", Yr = "_loaded_1bu1s_66", Jr = "_empty_1bu1s_78", Zr = "_controls_1bu1s_84", Xr = "_arrows_1bu1s_94", Qr = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
|
|
2267
2267
|
carouselContainer: Hr,
|
|
2268
2268
|
viewport: Wr,
|
|
2269
2269
|
slides: Vr,
|
|
2270
2270
|
slide: Gr,
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
2271
|
+
slideInner: qr,
|
|
2272
|
+
loaderOverlay: Ur,
|
|
2273
|
+
image: Kr,
|
|
2274
2274
|
loaded: Yr,
|
|
2275
2275
|
empty: Jr,
|
|
2276
2276
|
controls: Zr,
|
|
@@ -2300,14 +2300,14 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2300
2300
|
te(() => {
|
|
2301
2301
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2302
|
}, [t]);
|
|
2303
|
-
const _ = ae((
|
|
2304
|
-
T((
|
|
2305
|
-
const I = [...
|
|
2306
|
-
return I[
|
|
2303
|
+
const _ = ae((z) => {
|
|
2304
|
+
T((M) => {
|
|
2305
|
+
const I = [...M];
|
|
2306
|
+
return I[z] = !0, I;
|
|
2307
2307
|
});
|
|
2308
2308
|
}, []), F = ve(() => n * 1e3, [n]), E = ae(() => {
|
|
2309
2309
|
g && b(g.selectedScrollSnap());
|
|
2310
|
-
}, [g]), j = ae((
|
|
2310
|
+
}, [g]), j = ae((z) => g && g.scrollTo(z), [g]), L = ae(() => g && g.scrollPrev(), [g]), B = ae(() => g && g.scrollNext(), [g]);
|
|
2311
2311
|
te(() => {
|
|
2312
2312
|
if (g)
|
|
2313
2313
|
return g.on("select", E), g.on("reInit", E), p(g.scrollSnapList()), () => {
|
|
@@ -2317,11 +2317,11 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2317
2317
|
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2318
2318
|
}, [g, t, o, d]), te(() => {
|
|
2319
2319
|
if (!e || !g || !t || t.length <= 1) return;
|
|
2320
|
-
const
|
|
2320
|
+
const z = window.setInterval(() => {
|
|
2321
2321
|
g.canScrollNext() && g.scrollNext();
|
|
2322
2322
|
}, F);
|
|
2323
2323
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2324
|
+
window.clearInterval(z);
|
|
2325
2325
|
};
|
|
2326
2326
|
}, [e, F, g, t]);
|
|
2327
2327
|
const $ = Math.max(1, o), N = `${100 / $}%`, W = d / 2;
|
|
@@ -2341,7 +2341,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2341
2341
|
marginLeft: `-${W}px`,
|
|
2342
2342
|
marginRight: `-${W}px`
|
|
2343
2343
|
},
|
|
2344
|
-
children: t && t.length > 0 ? t.map((
|
|
2344
|
+
children: t && t.length > 0 ? t.map((z, M) => /* @__PURE__ */ r.jsx(
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
2347
|
className: Q.slide,
|
|
@@ -2354,24 +2354,24 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2354
2354
|
// Ensure radius clips content
|
|
2355
2355
|
},
|
|
2356
2356
|
children: /* @__PURE__ */ r.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2357
|
-
!m[
|
|
2357
|
+
!m[M] && /* @__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} ${m[
|
|
2362
|
-
src:
|
|
2363
|
-
alt:
|
|
2364
|
-
loading:
|
|
2361
|
+
className: `${Q.image} ${m[M] ? Q.loaded : Q.loadingImage}`,
|
|
2362
|
+
src: z.src,
|
|
2363
|
+
alt: z.alt,
|
|
2364
|
+
loading: M < $ ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () => _(
|
|
2366
|
+
onLoad: () => _(M),
|
|
2367
2367
|
onError: (I) => {
|
|
2368
|
-
I.target.style.display = "none", _(
|
|
2368
|
+
I.target.style.display = "none", _(M);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
2372
2372
|
] })
|
|
2373
2373
|
},
|
|
2374
|
-
`image-${
|
|
2374
|
+
`image-${M}-${z.src}`
|
|
2375
2375
|
)) : /* @__PURE__ */ r.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ r.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
|
|
2376
2376
|
}
|
|
2377
2377
|
) }),
|
|
@@ -2400,19 +2400,19 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
|
-
i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((
|
|
2404
|
-
const I =
|
|
2403
|
+
i && t && t.length > 1 && /* @__PURE__ */ r.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((z, M) => {
|
|
2404
|
+
const I = M === h;
|
|
2405
2405
|
return /* @__PURE__ */ r.jsx(
|
|
2406
2406
|
"button",
|
|
2407
2407
|
{
|
|
2408
2408
|
type: "button",
|
|
2409
2409
|
className: `${Q.dot} ${I ? Q.dotActive : ""}`,
|
|
2410
|
-
onClick: () => j(
|
|
2411
|
-
"aria-label": `Gå til bilde ${
|
|
2410
|
+
onClick: () => j(M),
|
|
2411
|
+
"aria-label": `Gå til bilde ${M + 1}`,
|
|
2412
2412
|
"aria-selected": I,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
|
-
`dot-${
|
|
2415
|
+
`dot-${M}`
|
|
2416
2416
|
);
|
|
2417
2417
|
}) })
|
|
2418
2418
|
] })
|
|
@@ -2432,13 +2432,13 @@ const Ne = Tn, _a = Sn, Ea = wn, Ba = Cn, Ze = ue(
|
|
|
2432
2432
|
(t, e) => /* @__PURE__ */ r.jsx(jn, { ref: e, ...t })
|
|
2433
2433
|
);
|
|
2434
2434
|
Ze.displayName = "Paragraph";
|
|
2435
|
-
const Na = Dn, Pa = In,
|
|
2435
|
+
const Na = Dn, Pa = In, za = Ln, Pe = Object.assign(An, {
|
|
2436
2436
|
Button: En,
|
|
2437
2437
|
ClearButton: _n,
|
|
2438
2438
|
Input: Fn
|
|
2439
|
-
}),
|
|
2439
|
+
}), Ma = Bn, Ra = Nn, Oa = Pn, ls = zn;
|
|
2440
2440
|
ls.displayName = "Suggestion";
|
|
2441
|
-
const
|
|
2441
|
+
const qe = Mn, $a = Rn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, qa = Vn, Ua = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(qn, { ref: e, ...t }));
|
|
2442
2442
|
ds.displayName = "ValidationMessage";
|
|
2443
2443
|
const cs = {
|
|
2444
2444
|
NO: {
|
|
@@ -3968,7 +3968,7 @@ const cs = {
|
|
|
3968
3968
|
// Footer
|
|
3969
3969
|
footer: {}
|
|
3970
3970
|
}
|
|
3971
|
-
},
|
|
3971
|
+
}, zt = Kt(void 0), Ka = ({ children: t }) => {
|
|
3972
3972
|
const [e, n] = oe("NO"), s = (i) => {
|
|
3973
3973
|
const a = i.split(".");
|
|
3974
3974
|
let o = cs[e];
|
|
@@ -3979,13 +3979,13 @@ const cs = {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
return o;
|
|
3981
3981
|
};
|
|
3982
|
-
return /* @__PURE__ */ r.jsx(
|
|
3982
|
+
return /* @__PURE__ */ r.jsx(zt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
3983
3983
|
}, us = () => {
|
|
3984
|
-
const t = Yt(
|
|
3984
|
+
const t = Yt(zt);
|
|
3985
3985
|
if (t === void 0)
|
|
3986
3986
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
3987
3987
|
return t;
|
|
3988
|
-
}, ms = "
|
|
3988
|
+
}, ms = "_header_3zql2_1", gs = "_languageSwitch_3zql2_36", ps = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", bs = "_extensionDivider_3zql2_84", vs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", Ls = "_redCrossLogo_3zql2_223", As = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", _s = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Bs = "_ctaButton_3zql2_263", Ns = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273", zs = "_userName_3zql2_279", Ms = "_loginLink_3zql2_286", Rs = "_loginText_3zql2_295", Os = "_underline_3zql2_302", $s = "_searchButtonWrapper_3zql2_308", Hs = "_buttonText_3zql2_312", Ws = "_menuButton_3zql2_317", Vs = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", qs = "_menuContent_3zql2_366", Us = "_menuLeftColumn_3zql2_375", Ks = "_menuRightColumn_3zql2_381", Ys = "_slotContent_3zql2_395", Js = "_navList_3zql2_408", Zs = "_menuUtilities_3zql2_415", Xs = "_menuBrand_3zql2_422", Qs = "_suggestionsSection_3zql2_426", ea = "_suggestionsTitle_3zql2_432", ta = "_searchResults_3zql2_441", na = "_resultList_3zql2_447", oa = "_resultItem_3zql2_453", ra = "_resultLink_3zql2_461", sa = "_suggestionIcon_3zql2_475", aa = "_suggestionText_3zql2_488", ia = "_highlightedText_3zql2_495", la = "_remainingText_3zql2_500", da = "_viewAllLink_3zql2_513", ca = "_noResults_3zql2_548", S = {
|
|
3989
3989
|
header: ms,
|
|
3990
3990
|
languageSwitch: gs,
|
|
3991
3991
|
searchOverlay: ps,
|
|
@@ -4011,18 +4011,18 @@ const cs = {
|
|
|
4011
4011
|
ctaButton: Bs,
|
|
4012
4012
|
themeToggle: Ns,
|
|
4013
4013
|
userInfo: Ps,
|
|
4014
|
-
userName:
|
|
4015
|
-
loginLink:
|
|
4016
|
-
loginText:
|
|
4014
|
+
userName: zs,
|
|
4015
|
+
loginLink: Ms,
|
|
4016
|
+
loginText: Rs,
|
|
4017
4017
|
underline: Os,
|
|
4018
4018
|
searchButtonWrapper: $s,
|
|
4019
4019
|
buttonText: Hs,
|
|
4020
4020
|
menuButton: Ws,
|
|
4021
4021
|
menuOverlay: Vs,
|
|
4022
4022
|
searchContent: Gs,
|
|
4023
|
-
menuContent:
|
|
4024
|
-
menuLeftColumn:
|
|
4025
|
-
menuRightColumn:
|
|
4023
|
+
menuContent: qs,
|
|
4024
|
+
menuLeftColumn: Us,
|
|
4025
|
+
menuRightColumn: Ks,
|
|
4026
4026
|
slotContent: Ys,
|
|
4027
4027
|
navList: Js,
|
|
4028
4028
|
menuUtilities: Zs,
|
|
@@ -4125,7 +4125,7 @@ const cs = {
|
|
|
4125
4125
|
showModeToggle: T = !1,
|
|
4126
4126
|
showLanguageSwitch: _ = !1
|
|
4127
4127
|
}) => {
|
|
4128
|
-
const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, W] = oe("light"), { language:
|
|
4128
|
+
const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, W] = oe("light"), { language: z, setLanguage: M, t: I } = us(), [q, ne] = oe(!1);
|
|
4129
4129
|
te(() => {
|
|
4130
4130
|
const x = "rk-header-inline-styles";
|
|
4131
4131
|
if (typeof document > "u" || document.getElementById(x)) return;
|
|
@@ -4160,13 +4160,13 @@ const cs = {
|
|
|
4160
4160
|
te(() => {
|
|
4161
4161
|
E(!1), L(!1), $("");
|
|
4162
4162
|
}, [t]), te(() => {
|
|
4163
|
-
if (!(typeof document > "u") && F &&
|
|
4163
|
+
if (!(typeof document > "u") && F && q) {
|
|
4164
4164
|
const x = document.body.style.overflow;
|
|
4165
4165
|
return document.body.style.overflow = "hidden", () => {
|
|
4166
4166
|
document.body.style.overflow = x;
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
4169
|
-
}, [F,
|
|
4169
|
+
}, [F, q]), te(() => {
|
|
4170
4170
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4171
4171
|
const x = window.matchMedia("(max-width: 850px)"), D = (C) => ne("matches" in C ? C.matches : x.matches);
|
|
4172
4172
|
return D(x), x.addEventListener ? x.addEventListener("change", D) : x.addListener(D), () => {
|
|
@@ -4187,7 +4187,7 @@ const cs = {
|
|
|
4187
4187
|
return C.observe(x), () => {
|
|
4188
4188
|
window.removeEventListener("resize", D), C.disconnect();
|
|
4189
4189
|
};
|
|
4190
|
-
}, [
|
|
4190
|
+
}, [q]), te(() => {
|
|
4191
4191
|
if (typeof document > "u") return;
|
|
4192
4192
|
const x = document.querySelector(`.${S.logoWrapper}`);
|
|
4193
4193
|
if (!x) return;
|
|
@@ -4196,7 +4196,7 @@ const cs = {
|
|
|
4196
4196
|
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4197
4197
|
};
|
|
4198
4198
|
return D(), window.addEventListener("resize", D), () => window.removeEventListener("resize", D);
|
|
4199
|
-
}, [
|
|
4199
|
+
}, [q]), te(() => {
|
|
4200
4200
|
if (typeof document > "u" || !j) {
|
|
4201
4201
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4202
4202
|
return;
|
|
@@ -4213,7 +4213,7 @@ const cs = {
|
|
|
4213
4213
|
window.removeEventListener("resize", D), C.disconnect();
|
|
4214
4214
|
};
|
|
4215
4215
|
}, [j]);
|
|
4216
|
-
const
|
|
4216
|
+
const K = () => {
|
|
4217
4217
|
const x = N === "light" ? "dark" : "light";
|
|
4218
4218
|
W(x), document.documentElement.setAttribute("data-color-scheme", x);
|
|
4219
4219
|
}, re = (x) => {
|
|
@@ -4234,17 +4234,17 @@ const cs = {
|
|
|
4234
4234
|
return ua.filter(
|
|
4235
4235
|
(D) => D.title.toLowerCase().startsWith(x)
|
|
4236
4236
|
);
|
|
4237
|
-
}, [B]),
|
|
4237
|
+
}, [B]), R = (x) => {
|
|
4238
4238
|
e && e(x), L(!1), $("");
|
|
4239
4239
|
};
|
|
4240
4240
|
return /* @__PURE__ */ r.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
|
|
4241
4241
|
m && /* @__PURE__ */ r.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: S.extensionContentWrapper, children: [
|
|
4242
4242
|
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4243
|
-
|
|
4243
|
+
qe,
|
|
4244
4244
|
{
|
|
4245
4245
|
"data-size": "sm",
|
|
4246
4246
|
checked: N === "dark",
|
|
4247
|
-
onChange:
|
|
4247
|
+
onChange: K,
|
|
4248
4248
|
label: I("header.darkMode"),
|
|
4249
4249
|
color: "neutral",
|
|
4250
4250
|
"data-color-scheme": "light"
|
|
@@ -4261,7 +4261,7 @@ const cs = {
|
|
|
4261
4261
|
"aria-label": I("header.selectLanguage"),
|
|
4262
4262
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4263
4263
|
children: [
|
|
4264
|
-
|
|
4264
|
+
z,
|
|
4265
4265
|
" ",
|
|
4266
4266
|
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4267
4267
|
]
|
|
@@ -4273,8 +4273,8 @@ const cs = {
|
|
|
4273
4273
|
"data-color-scheme": N,
|
|
4274
4274
|
placement: "bottom-end",
|
|
4275
4275
|
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4276
|
-
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () =>
|
|
4277
|
-
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () =>
|
|
4276
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
4277
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
|
|
4278
4278
|
] })
|
|
4279
4279
|
}
|
|
4280
4280
|
)
|
|
@@ -4302,7 +4302,7 @@ const cs = {
|
|
|
4302
4302
|
}
|
|
4303
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 })
|
|
4304
4304
|
] }),
|
|
4305
|
-
v && b && b.length > 0 && !
|
|
4305
|
+
v && b && b.length > 0 && !q && /* @__PURE__ */ r.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4306
4306
|
Ne,
|
|
4307
4307
|
{
|
|
4308
4308
|
href: x.href,
|
|
@@ -4330,10 +4330,10 @@ const cs = {
|
|
|
4330
4330
|
}
|
|
4331
4331
|
),
|
|
4332
4332
|
!m && y && /* @__PURE__ */ r.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4333
|
-
|
|
4333
|
+
qe,
|
|
4334
4334
|
{
|
|
4335
4335
|
checked: N === "dark",
|
|
4336
|
-
onChange:
|
|
4336
|
+
onChange: K,
|
|
4337
4337
|
"aria-label": I("header.toggleTheme")
|
|
4338
4338
|
}
|
|
4339
4339
|
) }),
|
|
@@ -4360,7 +4360,7 @@ const cs = {
|
|
|
4360
4360
|
]
|
|
4361
4361
|
}
|
|
4362
4362
|
) }),
|
|
4363
|
-
(p ||
|
|
4363
|
+
(p || q) && /* @__PURE__ */ r.jsxs(
|
|
4364
4364
|
ye,
|
|
4365
4365
|
{
|
|
4366
4366
|
variant: "primary",
|
|
@@ -4381,7 +4381,7 @@ const cs = {
|
|
|
4381
4381
|
F && /* @__PURE__ */ r.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.menuContent, children: [
|
|
4382
4382
|
/* @__PURE__ */ r.jsx("div", { className: S.menuLeftColumn }),
|
|
4383
4383
|
/* @__PURE__ */ r.jsxs("div", { className: S.menuRightColumn, children: [
|
|
4384
|
-
|
|
4384
|
+
q && (_ || T) && /* @__PURE__ */ r.jsxs("div", { className: S.menuUtilities, children: [
|
|
4385
4385
|
_ && /* @__PURE__ */ r.jsxs("div", { className: S.languageSwitch, children: [
|
|
4386
4386
|
/* @__PURE__ */ r.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4387
4387
|
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
@@ -4392,7 +4392,7 @@ const cs = {
|
|
|
4392
4392
|
"aria-label": I("header.selectLanguage"),
|
|
4393
4393
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4394
4394
|
children: [
|
|
4395
|
-
|
|
4395
|
+
z,
|
|
4396
4396
|
" ",
|
|
4397
4397
|
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4398
4398
|
]
|
|
@@ -4404,19 +4404,19 @@ const cs = {
|
|
|
4404
4404
|
"data-color-scheme": N,
|
|
4405
4405
|
placement: "bottom-start",
|
|
4406
4406
|
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4407
|
-
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () =>
|
|
4408
|
-
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () =>
|
|
4407
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("NO"), children: "Norsk (NO)" }) }),
|
|
4408
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => M("EN"), children: "English (EN)" }) })
|
|
4409
4409
|
] })
|
|
4410
4410
|
}
|
|
4411
4411
|
)
|
|
4412
4412
|
] })
|
|
4413
4413
|
] }),
|
|
4414
4414
|
T && /* @__PURE__ */ r.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4415
|
-
|
|
4415
|
+
qe,
|
|
4416
4416
|
{
|
|
4417
4417
|
"data-size": "sm",
|
|
4418
4418
|
checked: N === "dark",
|
|
4419
|
-
onChange:
|
|
4419
|
+
onChange: K,
|
|
4420
4420
|
label: I("header.darkMode"),
|
|
4421
4421
|
color: "neutral",
|
|
4422
4422
|
"data-color-scheme": "light"
|
|
@@ -4425,7 +4425,7 @@ const cs = {
|
|
|
4425
4425
|
] }),
|
|
4426
4426
|
/* @__PURE__ */ r.jsxs("div", { className: S.slotContent, children: [
|
|
4427
4427
|
n,
|
|
4428
|
-
|
|
4428
|
+
q && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ r.jsx(
|
|
4429
4429
|
Ne,
|
|
4430
4430
|
{
|
|
4431
4431
|
href: x.href,
|
|
@@ -4438,7 +4438,7 @@ const cs = {
|
|
|
4438
4438
|
D
|
|
4439
4439
|
)) })
|
|
4440
4440
|
] }),
|
|
4441
|
-
|
|
4441
|
+
q && /* @__PURE__ */ r.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4442
4442
|
] })
|
|
4443
4443
|
] }) }),
|
|
4444
4444
|
j && /* @__PURE__ */ r.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: S.searchContent, children: [
|
|
@@ -4461,7 +4461,7 @@ const cs = {
|
|
|
4461
4461
|
"button",
|
|
4462
4462
|
{
|
|
4463
4463
|
className: S.resultLink,
|
|
4464
|
-
onClick: () =>
|
|
4464
|
+
onClick: () => R(x.path),
|
|
4465
4465
|
children: [
|
|
4466
4466
|
/* @__PURE__ */ r.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4467
4467
|
/* @__PURE__ */ r.jsx("span", { className: S.suggestionText, children: (() => {
|
|
@@ -4618,7 +4618,8 @@ function ma(t) {
|
|
|
4618
4618
|
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; }
|
|
4619
4619
|
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4620
4620
|
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|
|
4621
|
-
.${e.menuRightColumn} { padding: var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
4621
|
+
.${e.menuRightColumn} { padding: var(--ds-size-4) var(--ds-size-6) var(--ds-size-6) var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
4622
|
+
.${e.slotContent} { padding: 0; }
|
|
4622
4623
|
.${e.menuLeftColumn} { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: var(--ds-size-6); }
|
|
4623
4624
|
.${e.menuBrand} { display: flex; justify-content: flex-start; margin-top: auto; padding: var(--ds-size-6); margin-left: calc(-1 * var(--ds-size-6)); margin-right: calc(-1 * var(--ds-size-6)); margin-bottom: calc(-1 * var(--ds-size-6)); background-color: white; }
|
|
4624
4625
|
.${e.menuUtilities} .${e.languageSwitch} :global([popover]) { background-color: var(--ds-color-neutral-background-default) !important; margin-top: 0 !important; position: fixed !important; overflow: visible; z-index: 20000 !important; }
|
|
@@ -4662,7 +4663,7 @@ export {
|
|
|
4662
4663
|
as as Heading,
|
|
4663
4664
|
Fa as Input,
|
|
4664
4665
|
is as Label,
|
|
4665
|
-
|
|
4666
|
+
Ka as LanguageProvider,
|
|
4666
4667
|
Ne as Link,
|
|
4667
4668
|
_a as List,
|
|
4668
4669
|
Ea as Pagination,
|
|
@@ -4670,22 +4671,22 @@ export {
|
|
|
4670
4671
|
Na as Popover,
|
|
4671
4672
|
Pa as Radio,
|
|
4672
4673
|
Pe as Search,
|
|
4673
|
-
|
|
4674
|
-
|
|
4674
|
+
Ma as Select,
|
|
4675
|
+
Ra as SkeletonLoader,
|
|
4675
4676
|
Oa as SkipLink,
|
|
4676
4677
|
ns as Spinner,
|
|
4677
4678
|
ls as Suggestion,
|
|
4678
|
-
|
|
4679
|
+
qe as Switch,
|
|
4679
4680
|
$a as Table,
|
|
4680
4681
|
Ha as Tabs,
|
|
4681
4682
|
Wa as Tag,
|
|
4682
4683
|
Va as Textarea,
|
|
4683
4684
|
Ga as Textfield,
|
|
4684
|
-
|
|
4685
|
-
|
|
4685
|
+
qa as ToggleGroup,
|
|
4686
|
+
Ua as Tooltip,
|
|
4686
4687
|
ds as ValidationMessage,
|
|
4687
4688
|
Sa as useCheckboxGroup,
|
|
4688
4689
|
us as useLanguage,
|
|
4689
4690
|
Ba as usePagination,
|
|
4690
|
-
|
|
4691
|
+
za as useRadioGroup
|
|
4691
4692
|
};
|