rk-designsystem 1.1.50 → 1.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/componentlibrary.es.js +1435 -1296
- package/dist/componentlibrary.umd.js +90 -70
- package/dist/rk-designsystem.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Alert as
|
|
3
|
-
import { startOfMonth as ke, isValid as
|
|
4
|
-
import { ChevronLeftIcon as
|
|
5
|
-
var
|
|
1
|
+
import Dt, { forwardRef as ue, useState as oe, useEffect as te, useMemo as ve, useCallback as ae, useRef as Ke, createContext as qt, useContext as Yt } from "react";
|
|
2
|
+
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as on, Button as qe, Card as rn, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as gn, Dropdown as pn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as bn, Heading as vn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as Ln, Search as An, SearchInput as Fn, SearchClear as _n, SearchButton as En, Select as Bn, Skeleton as Nn, SkipLink as Pn, EXPERIMENTAL_Suggestion as Mn, Switch as Rn, Table as zn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as Un } from "@digdir/designsystemet-react";
|
|
3
|
+
import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as Lt, format as Te, addDays as At, subMonths as Kn, addMonths as qn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
|
|
4
|
+
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as gt, XMarkIcon as pt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as eo, HeartIcon as to } from "@navikt/aksel-icons";
|
|
5
|
+
var Be = { exports: {} }, Se = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -12,27 +12,27 @@ var Ne = { exports: {} }, Se = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var ht;
|
|
16
16
|
function no() {
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
function n(
|
|
17
|
+
if (ht) return Se;
|
|
18
|
+
ht = 1;
|
|
19
|
+
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
20
|
+
function n(s, i, a) {
|
|
21
21
|
var o = null;
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
for (var d in
|
|
25
|
-
d !== "key" && (
|
|
26
|
-
} else
|
|
27
|
-
return
|
|
28
|
-
$$typeof:
|
|
29
|
-
type:
|
|
22
|
+
if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
|
|
23
|
+
a = {};
|
|
24
|
+
for (var d in i)
|
|
25
|
+
d !== "key" && (a[d] = i[d]);
|
|
26
|
+
} else a = i;
|
|
27
|
+
return i = a.ref, {
|
|
28
|
+
$$typeof: t,
|
|
29
|
+
type: s,
|
|
30
30
|
key: o,
|
|
31
|
-
ref:
|
|
32
|
-
props:
|
|
31
|
+
ref: i !== void 0 ? i : null,
|
|
32
|
+
props: a
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
return Se.Fragment =
|
|
35
|
+
return Se.Fragment = e, Se.jsx = n, Se.jsxs = n, Se;
|
|
36
36
|
}
|
|
37
37
|
var we = {};
|
|
38
38
|
/**
|
|
@@ -44,13 +44,13 @@ var we = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var kt;
|
|
48
48
|
function oo() {
|
|
49
|
-
return
|
|
50
|
-
function
|
|
49
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
|
+
function t(c) {
|
|
51
51
|
if (c == null) return null;
|
|
52
52
|
if (typeof c == "function")
|
|
53
|
-
return c.$$typeof ===
|
|
53
|
+
return c.$$typeof === N ? null : c.displayName || c.name || null;
|
|
54
54
|
if (typeof c == "string") return c;
|
|
55
55
|
switch (c) {
|
|
56
56
|
case v:
|
|
@@ -59,11 +59,11 @@ function oo() {
|
|
|
59
59
|
return "Profiler";
|
|
60
60
|
case p:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case E:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case j:
|
|
65
65
|
return "SuspenseList";
|
|
66
|
-
case
|
|
66
|
+
case $:
|
|
67
67
|
return "Activity";
|
|
68
68
|
}
|
|
69
69
|
if (typeof c == "object")
|
|
@@ -72,96 +72,96 @@ function oo() {
|
|
|
72
72
|
), c.$$typeof) {
|
|
73
73
|
case b:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
75
|
+
case _:
|
|
76
76
|
return c.displayName || "Context";
|
|
77
77
|
case x:
|
|
78
78
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
79
|
-
case
|
|
80
|
-
var
|
|
81
|
-
return c = c.displayName, c || (c =
|
|
82
|
-
case D:
|
|
83
|
-
return I = c.displayName || null, I !== null ? I : e(c.type) || "Memo";
|
|
79
|
+
case F:
|
|
80
|
+
var A = c.render;
|
|
81
|
+
return c = c.displayName, c || (c = A.displayName || A.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
84
82
|
case L:
|
|
85
|
-
|
|
83
|
+
return A = c.displayName || null, A !== null ? A : t(c.type) || "Memo";
|
|
84
|
+
case B:
|
|
85
|
+
A = c._payload, c = c._init;
|
|
86
86
|
try {
|
|
87
|
-
return
|
|
87
|
+
return t(c(A));
|
|
88
88
|
} catch {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function e(c) {
|
|
94
94
|
return "" + c;
|
|
95
95
|
}
|
|
96
96
|
function n(c) {
|
|
97
97
|
try {
|
|
98
|
-
|
|
99
|
-
var
|
|
98
|
+
e(c);
|
|
99
|
+
var A = !1;
|
|
100
100
|
} catch {
|
|
101
|
-
|
|
101
|
+
A = !0;
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
return
|
|
107
|
-
|
|
103
|
+
if (A) {
|
|
104
|
+
A = console;
|
|
105
|
+
var P = A.error, z = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
106
|
+
return P.call(
|
|
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
|
-
|
|
110
|
-
),
|
|
109
|
+
z
|
|
110
|
+
), e(c);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function s(c) {
|
|
114
114
|
if (c === v) return "<>";
|
|
115
|
-
if (typeof c == "object" && c !== null && c.$$typeof ===
|
|
115
|
+
if (typeof c == "object" && c !== null && c.$$typeof === B)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var A = t(c);
|
|
119
|
+
return A ? "<" + A + ">" : "<...>";
|
|
120
120
|
} catch {
|
|
121
121
|
return "<...>";
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
var c =
|
|
124
|
+
function i() {
|
|
125
|
+
var c = H.A;
|
|
126
126
|
return c === null ? null : c.getOwner();
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function a() {
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
131
|
function o(c) {
|
|
132
|
-
if (
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
132
|
+
if (M.call(c, "key")) {
|
|
133
|
+
var A = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
134
|
+
if (A && A.isReactWarning) return !1;
|
|
135
135
|
}
|
|
136
136
|
return c.key !== void 0;
|
|
137
137
|
}
|
|
138
|
-
function d(c,
|
|
139
|
-
function
|
|
140
|
-
|
|
138
|
+
function d(c, A) {
|
|
139
|
+
function P() {
|
|
140
|
+
U || (U = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
|
-
|
|
142
|
+
A
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
get:
|
|
145
|
+
P.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
146
|
+
get: P,
|
|
147
147
|
configurable: !0
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
function l() {
|
|
151
|
-
var c =
|
|
152
|
-
return
|
|
151
|
+
var c = t(this.type);
|
|
152
|
+
return ne[c] || (ne[c] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
155
155
|
}
|
|
156
|
-
function u(c,
|
|
157
|
-
var
|
|
156
|
+
function u(c, A, P, z, S, I) {
|
|
157
|
+
var C = P.ref;
|
|
158
158
|
return c = {
|
|
159
159
|
$$typeof: h,
|
|
160
160
|
type: c,
|
|
161
|
-
key:
|
|
162
|
-
props:
|
|
163
|
-
_owner:
|
|
164
|
-
}, (
|
|
161
|
+
key: A,
|
|
162
|
+
props: P,
|
|
163
|
+
_owner: z
|
|
164
|
+
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: l
|
|
167
167
|
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
@@ -178,69 +178,69 @@ function oo() {
|
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
|
-
value:
|
|
181
|
+
value: S
|
|
182
182
|
}), Object.defineProperty(c, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: I
|
|
187
187
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
188
188
|
}
|
|
189
|
-
function y(c,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
192
|
-
if (
|
|
193
|
-
if (R(
|
|
194
|
-
for (
|
|
195
|
-
f(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
189
|
+
function y(c, A, P, z, S, I) {
|
|
190
|
+
var C = A.children;
|
|
191
|
+
if (C !== void 0)
|
|
192
|
+
if (z)
|
|
193
|
+
if (R(C)) {
|
|
194
|
+
for (z = 0; z < C.length; z++)
|
|
195
|
+
f(C[z]);
|
|
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
|
-
else f(
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
var
|
|
205
|
-
return
|
|
201
|
+
else f(C);
|
|
202
|
+
if (M.call(A, "key")) {
|
|
203
|
+
C = t(c);
|
|
204
|
+
var W = Object.keys(A).filter(function(X) {
|
|
205
|
+
return X !== "key";
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
z = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", re[C + z] || (W = 0 < W.length ? "{" + W.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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
),
|
|
214
|
+
z,
|
|
215
|
+
C,
|
|
216
|
+
W,
|
|
217
|
+
C
|
|
218
|
+
), re[C + z] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
for (var
|
|
223
|
-
|
|
224
|
-
} else
|
|
225
|
-
return
|
|
226
|
-
|
|
220
|
+
if (C = null, P !== void 0 && (n(P), C = "" + P), o(A) && (n(A.key), C = "" + A.key), "key" in A) {
|
|
221
|
+
P = {};
|
|
222
|
+
for (var J in A)
|
|
223
|
+
J !== "key" && (P[J] = A[J]);
|
|
224
|
+
} else P = A;
|
|
225
|
+
return C && d(
|
|
226
|
+
P,
|
|
227
227
|
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
228
228
|
), u(
|
|
229
229
|
c,
|
|
230
|
-
|
|
230
|
+
C,
|
|
231
|
+
P,
|
|
232
|
+
i(),
|
|
231
233
|
S,
|
|
232
|
-
|
|
233
|
-
q,
|
|
234
|
-
G
|
|
234
|
+
I
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function f(c) {
|
|
238
|
-
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof ===
|
|
238
|
+
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === B && (c._payload.status === "fulfilled" ? k(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
239
239
|
}
|
|
240
240
|
function k(c) {
|
|
241
241
|
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
242
|
}
|
|
243
|
-
var g =
|
|
243
|
+
var g = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), H = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, R = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
g = {
|
|
@@ -248,110 +248,110 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return c();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var U, ne = {}, Y = g.react_stack_bottom_frame.bind(
|
|
252
252
|
g,
|
|
253
|
-
|
|
254
|
-
)(),
|
|
255
|
-
we.Fragment = v, we.jsx = function(c,
|
|
256
|
-
var
|
|
253
|
+
a
|
|
254
|
+
)(), q = D(s(a)), re = {};
|
|
255
|
+
we.Fragment = v, we.jsx = function(c, A, P) {
|
|
256
|
+
var z = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return y(
|
|
258
258
|
c,
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
A,
|
|
260
|
+
P,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
z ? Error("react-stack-top-frame") : Y,
|
|
263
|
+
z ? D(s(c)) : q
|
|
264
264
|
);
|
|
265
|
-
}, we.jsxs = function(c,
|
|
266
|
-
var
|
|
265
|
+
}, we.jsxs = function(c, A, P) {
|
|
266
|
+
var z = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return y(
|
|
268
268
|
c,
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
A,
|
|
270
|
+
P,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
z ? Error("react-stack-top-frame") : Y,
|
|
273
|
+
z ? D(s(c)) : q
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), we;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
278
|
+
var bt;
|
|
279
279
|
function ro() {
|
|
280
|
-
return
|
|
280
|
+
return bt || (bt = 1, process.env.NODE_ENV === "production" ? Be.exports = no() : Be.exports = oo()), Be.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
const so = ue((
|
|
282
|
+
var r = ro();
|
|
283
|
+
const so = ue((t, e) => /* @__PURE__ */ r.jsx(Jt, { ref: e, ...t }));
|
|
284
284
|
so.displayName = "Alert";
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
const ao = ue((
|
|
285
|
+
const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
|
|
286
|
+
Ft.displayName = "Avatar";
|
|
287
|
+
const ao = ue((t, e) => /* @__PURE__ */ r.jsx(Qt, { ref: e, ...t }));
|
|
288
288
|
ao.displayName = "Badge";
|
|
289
|
-
const
|
|
289
|
+
const ka = Xt, ba = en, va = tn, ya = nn, xa = on, ye = qe;
|
|
290
290
|
ye.displayName = "Button";
|
|
291
|
-
const io =
|
|
291
|
+
const io = rn, Ta = sn;
|
|
292
292
|
io.displayName = "Card";
|
|
293
|
-
const lo =
|
|
293
|
+
const lo = an, co = It, Sa = ln;
|
|
294
294
|
lo.displayName = "Checkbox";
|
|
295
295
|
co.displayName = "Fieldset";
|
|
296
|
-
const
|
|
297
|
-
function
|
|
298
|
-
return (
|
|
299
|
-
const n =
|
|
300
|
-
return
|
|
296
|
+
const wa = dn;
|
|
297
|
+
function Ge(t) {
|
|
298
|
+
return (e = {}) => {
|
|
299
|
+
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
300
|
+
return t.formats[n] || t.formats[t.defaultWidth];
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function Ce(
|
|
304
|
-
return (
|
|
305
|
-
const
|
|
306
|
-
let
|
|
307
|
-
if (
|
|
308
|
-
const o =
|
|
309
|
-
|
|
303
|
+
function Ce(t) {
|
|
304
|
+
return (e, n) => {
|
|
305
|
+
const s = n != null && n.context ? String(n.context) : "standalone";
|
|
306
|
+
let i;
|
|
307
|
+
if (s === "formatting" && t.formattingValues) {
|
|
308
|
+
const o = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : o;
|
|
309
|
+
i = t.formattingValues[d] || t.formattingValues[o];
|
|
310
310
|
} else {
|
|
311
|
-
const o =
|
|
312
|
-
|
|
311
|
+
const o = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
312
|
+
i = t.values[d] || t.values[o];
|
|
313
313
|
}
|
|
314
|
-
const
|
|
315
|
-
return a
|
|
314
|
+
const a = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
315
|
+
return i[a];
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
function je(
|
|
319
|
-
return (
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
318
|
+
function je(t) {
|
|
319
|
+
return (e, n = {}) => {
|
|
320
|
+
const s = n.width, i = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], a = e.match(i);
|
|
321
|
+
if (!a)
|
|
322
322
|
return null;
|
|
323
|
-
const o =
|
|
323
|
+
const o = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? mo(d, (f) => f.test(o)) : (
|
|
324
324
|
// [TODO] -- I challenge you to fix the type
|
|
325
325
|
uo(d, (f) => f.test(o))
|
|
326
326
|
);
|
|
327
327
|
let u;
|
|
328
|
-
u =
|
|
328
|
+
u = t.valueCallback ? t.valueCallback(l) : l, u = n.valueCallback ? (
|
|
329
329
|
// [TODO] -- I challenge you to fix the type
|
|
330
330
|
n.valueCallback(u)
|
|
331
331
|
) : u;
|
|
332
|
-
const y =
|
|
332
|
+
const y = e.slice(o.length);
|
|
333
333
|
return { value: u, rest: y };
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function uo(
|
|
337
|
-
for (const n in
|
|
338
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
336
|
+
function uo(t, e) {
|
|
337
|
+
for (const n in t)
|
|
338
|
+
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
339
339
|
return n;
|
|
340
340
|
}
|
|
341
|
-
function mo(
|
|
342
|
-
for (let n = 0; n <
|
|
343
|
-
if (t
|
|
341
|
+
function mo(t, e) {
|
|
342
|
+
for (let n = 0; n < t.length; n++)
|
|
343
|
+
if (e(t[n]))
|
|
344
344
|
return n;
|
|
345
345
|
}
|
|
346
|
-
function go(
|
|
347
|
-
return (
|
|
348
|
-
const
|
|
349
|
-
if (!r) return null;
|
|
350
|
-
const a = r[0], s = t.match(e.parsePattern);
|
|
346
|
+
function go(t) {
|
|
347
|
+
return (e, n = {}) => {
|
|
348
|
+
const s = e.match(t.matchPattern);
|
|
351
349
|
if (!s) return null;
|
|
352
|
-
|
|
350
|
+
const i = s[0], a = e.match(t.parsePattern);
|
|
351
|
+
if (!a) return null;
|
|
352
|
+
let o = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
353
353
|
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
354
|
-
const d =
|
|
354
|
+
const d = e.slice(i.length);
|
|
355
355
|
return { value: o, rest: d };
|
|
356
356
|
};
|
|
357
357
|
}
|
|
@@ -417,10 +417,10 @@ const po = {
|
|
|
417
417
|
one: "nesten ett år",
|
|
418
418
|
other: "nesten {{count}} år"
|
|
419
419
|
}
|
|
420
|
-
}, fo = (
|
|
421
|
-
let
|
|
422
|
-
const
|
|
423
|
-
return typeof
|
|
420
|
+
}, fo = (t, e, n) => {
|
|
421
|
+
let s;
|
|
422
|
+
const i = po[t];
|
|
423
|
+
return typeof i == "string" ? s = i : e === 1 ? s = i.one : s = i.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + s : s + " siden" : s;
|
|
424
424
|
}, ho = {
|
|
425
425
|
full: "EEEE d. MMMM y",
|
|
426
426
|
long: "d. MMMM y",
|
|
@@ -437,15 +437,15 @@ const po = {
|
|
|
437
437
|
medium: "{{date}} {{time}}",
|
|
438
438
|
short: "{{date}} {{time}}"
|
|
439
439
|
}, vo = {
|
|
440
|
-
date:
|
|
440
|
+
date: Ge({
|
|
441
441
|
formats: ho,
|
|
442
442
|
defaultWidth: "full"
|
|
443
443
|
}),
|
|
444
|
-
time:
|
|
444
|
+
time: Ge({
|
|
445
445
|
formats: ko,
|
|
446
446
|
defaultWidth: "full"
|
|
447
447
|
}),
|
|
448
|
-
dateTime:
|
|
448
|
+
dateTime: Ge({
|
|
449
449
|
formats: bo,
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
@@ -456,7 +456,7 @@ const po = {
|
|
|
456
456
|
tomorrow: "'i morgen kl.' p",
|
|
457
457
|
nextWeek: "EEEE 'kl.' p",
|
|
458
458
|
other: "P"
|
|
459
|
-
}, xo = (
|
|
459
|
+
}, xo = (t, e, n, s) => yo[t], To = {
|
|
460
460
|
narrow: ["f.Kr.", "e.Kr."],
|
|
461
461
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
462
462
|
wide: ["før Kristus", "etter Kristus"]
|
|
@@ -538,7 +538,7 @@ const po = {
|
|
|
538
538
|
evening: "på kvelden",
|
|
539
539
|
night: "på natten"
|
|
540
540
|
}
|
|
541
|
-
}, Do = (
|
|
541
|
+
}, Do = (t, e) => Number(t) + ".", Io = {
|
|
542
542
|
ordinalNumber: Do,
|
|
543
543
|
era: Ce({
|
|
544
544
|
values: To,
|
|
@@ -547,7 +547,7 @@ const po = {
|
|
|
547
547
|
quarter: Ce({
|
|
548
548
|
values: So,
|
|
549
549
|
defaultWidth: "wide",
|
|
550
|
-
argumentCallback: (
|
|
550
|
+
argumentCallback: (t) => t - 1
|
|
551
551
|
}),
|
|
552
552
|
month: Ce({
|
|
553
553
|
values: wo,
|
|
@@ -561,7 +561,7 @@ const po = {
|
|
|
561
561
|
values: jo,
|
|
562
562
|
defaultWidth: "wide"
|
|
563
563
|
})
|
|
564
|
-
},
|
|
564
|
+
}, Lo = /^(\d+)\.?/i, Ao = /\d+/i, Fo = {
|
|
565
565
|
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
566
566
|
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
567
567
|
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
|
|
@@ -571,9 +571,9 @@ const po = {
|
|
|
571
571
|
narrow: /^[1234]/i,
|
|
572
572
|
abbreviated: /^q[1234]/i,
|
|
573
573
|
wide: /^[1234](\.)? kvartal/i
|
|
574
|
-
}, No = {
|
|
575
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
574
|
}, Bo = {
|
|
575
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
+
}, No = {
|
|
577
577
|
narrow: /^[jfmasond]/i,
|
|
578
578
|
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
|
|
579
579
|
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
|
|
@@ -606,12 +606,12 @@ const po = {
|
|
|
606
606
|
/^n/i,
|
|
607
607
|
/^d/i
|
|
608
608
|
]
|
|
609
|
-
},
|
|
609
|
+
}, Mo = {
|
|
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
|
+
}, Ro = {
|
|
615
615
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
616
616
|
}, zo = {
|
|
617
617
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
@@ -627,11 +627,11 @@ const po = {
|
|
|
627
627
|
evening: /kveld/i,
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
|
-
},
|
|
630
|
+
}, $o = {
|
|
631
631
|
ordinalNumber: go({
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
634
|
-
valueCallback: (
|
|
632
|
+
matchPattern: Lo,
|
|
633
|
+
parsePattern: Ao,
|
|
634
|
+
valueCallback: (t) => parseInt(t, 10)
|
|
635
635
|
}),
|
|
636
636
|
era: je({
|
|
637
637
|
matchPatterns: Fo,
|
|
@@ -642,20 +642,20 @@ const po = {
|
|
|
642
642
|
quarter: je({
|
|
643
643
|
matchPatterns: Eo,
|
|
644
644
|
defaultMatchWidth: "wide",
|
|
645
|
-
parsePatterns:
|
|
645
|
+
parsePatterns: Bo,
|
|
646
646
|
defaultParseWidth: "any",
|
|
647
|
-
valueCallback: (
|
|
647
|
+
valueCallback: (t) => t + 1
|
|
648
648
|
}),
|
|
649
649
|
month: je({
|
|
650
|
-
matchPatterns:
|
|
650
|
+
matchPatterns: No,
|
|
651
651
|
defaultMatchWidth: "wide",
|
|
652
652
|
parsePatterns: Po,
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: je({
|
|
656
|
-
matchPatterns:
|
|
656
|
+
matchPatterns: Mo,
|
|
657
657
|
defaultMatchWidth: "wide",
|
|
658
|
-
parsePatterns:
|
|
658
|
+
parsePatterns: Ro,
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: je({
|
|
@@ -670,12 +670,12 @@ const po = {
|
|
|
670
670
|
formatLong: vo,
|
|
671
671
|
formatRelative: xo,
|
|
672
672
|
localize: Io,
|
|
673
|
-
match:
|
|
673
|
+
match: $o,
|
|
674
674
|
options: {
|
|
675
675
|
weekStartsOn: 1,
|
|
676
676
|
firstWeekContainsDate: 4
|
|
677
677
|
}
|
|
678
|
-
},
|
|
678
|
+
}, _t = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
679
679
|
"svg",
|
|
680
680
|
{
|
|
681
681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -683,12 +683,12 @@ const po = {
|
|
|
683
683
|
height: "1em",
|
|
684
684
|
viewBox: "0 0 28 28",
|
|
685
685
|
fill: "none",
|
|
686
|
-
"aria-hidden":
|
|
686
|
+
"aria-hidden": t ? void 0 : !0,
|
|
687
687
|
focusable: "false",
|
|
688
|
-
...
|
|
688
|
+
...e,
|
|
689
689
|
children: [
|
|
690
|
-
|
|
691
|
-
/* @__PURE__ */
|
|
690
|
+
t && /* @__PURE__ */ r.jsx("title", { children: t }),
|
|
691
|
+
/* @__PURE__ */ r.jsx(
|
|
692
692
|
"path",
|
|
693
693
|
{
|
|
694
694
|
fillRule: "evenodd",
|
|
@@ -700,8 +700,8 @@ const po = {
|
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
702
|
);
|
|
703
|
-
|
|
704
|
-
const
|
|
703
|
+
_t.displayName = "ChevronLeftIcon";
|
|
704
|
+
const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
705
705
|
"svg",
|
|
706
706
|
{
|
|
707
707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -709,12 +709,12 @@ const _t = ({ title: e, ...t }) => /* @__PURE__ */ i.jsxs(
|
|
|
709
709
|
height: "1em",
|
|
710
710
|
viewBox: "0 0 28 28",
|
|
711
711
|
fill: "none",
|
|
712
|
-
"aria-hidden":
|
|
712
|
+
"aria-hidden": t ? void 0 : !0,
|
|
713
713
|
focusable: "false",
|
|
714
|
-
...
|
|
714
|
+
...e,
|
|
715
715
|
children: [
|
|
716
|
-
|
|
717
|
-
/* @__PURE__ */
|
|
716
|
+
t && /* @__PURE__ */ r.jsx("title", { children: t }),
|
|
717
|
+
/* @__PURE__ */ r.jsx(
|
|
718
718
|
"path",
|
|
719
719
|
{
|
|
720
720
|
fillRule: "evenodd",
|
|
@@ -726,117 +726,117 @@ const _t = ({ title: e, ...t }) => /* @__PURE__ */ i.jsxs(
|
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
calendarContainer:
|
|
729
|
+
Et.displayName = "ChevronRightIcon";
|
|
730
|
+
const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Uo = "_grid_10l5p_41", Ko = "_dayNameCell_10l5p_48", qo = "_dateCell_10l5p_65", Yo = "_dateNumberContainer_10l5p_90", Jo = "_otherMonth_10l5p_103", Zo = "_selectedDate_10l5p_129", se = {
|
|
731
|
+
calendarContainer: Ho,
|
|
732
732
|
calendarHeader: Wo,
|
|
733
733
|
monthYear: Vo,
|
|
734
734
|
navigationButtons: Go,
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
737
|
-
dateCell:
|
|
735
|
+
grid: Uo,
|
|
736
|
+
dayNameCell: Ko,
|
|
737
|
+
dateCell: qo,
|
|
738
738
|
dateNumberContainer: Yo,
|
|
739
739
|
otherMonth: Jo,
|
|
740
740
|
selectedDate: Zo
|
|
741
|
-
}, Xo = (
|
|
742
|
-
const
|
|
743
|
-
return
|
|
744
|
-
},
|
|
745
|
-
initialDate:
|
|
746
|
-
selectedDate:
|
|
741
|
+
}, Xo = (t) => {
|
|
742
|
+
const e = ke(t), n = Lt(e, { locale: be }), s = At(n, 41);
|
|
743
|
+
return Zn({ start: n, end: s });
|
|
744
|
+
}, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Qo = ({
|
|
745
|
+
initialDate: t = /* @__PURE__ */ new Date(),
|
|
746
|
+
selectedDate: e = null,
|
|
747
747
|
// Prop for valgt dato
|
|
748
748
|
onDateSelect: n,
|
|
749
|
-
"data-color":
|
|
749
|
+
"data-color": s,
|
|
750
750
|
// <-- Destrukturert
|
|
751
|
-
"data-size":
|
|
751
|
+
"data-size": i
|
|
752
752
|
// <-- Destrukturert
|
|
753
753
|
}) => {
|
|
754
|
-
const [
|
|
755
|
-
ke(
|
|
754
|
+
const [a, o] = oe(
|
|
755
|
+
ke(e && Ve(e) ? e : t)
|
|
756
756
|
);
|
|
757
|
-
|
|
758
|
-
if (
|
|
759
|
-
const m = ke(
|
|
760
|
-
|
|
757
|
+
te(() => {
|
|
758
|
+
if (e && Ve(e)) {
|
|
759
|
+
const m = ke(e);
|
|
760
|
+
mt(m, a) || o(m);
|
|
761
761
|
}
|
|
762
|
-
}, [
|
|
763
|
-
const d = ve(() => ke(/* @__PURE__ */ new Date()), []), l = ve(() => !1, [
|
|
764
|
-
() => Xo(
|
|
765
|
-
[
|
|
762
|
+
}, [e]);
|
|
763
|
+
const d = ve(() => ke(/* @__PURE__ */ new Date()), []), l = ve(() => !1, [a, d]), u = ve(
|
|
764
|
+
() => Xo(a),
|
|
765
|
+
[a]
|
|
766
766
|
), y = ve(() => {
|
|
767
|
-
const m =
|
|
768
|
-
return Array.from({ length: 7 }).map((x,
|
|
769
|
-
const
|
|
770
|
-
return
|
|
767
|
+
const m = Lt(/* @__PURE__ */ new Date(), { locale: be });
|
|
768
|
+
return Array.from({ length: 7 }).map((x, _) => {
|
|
769
|
+
const F = Te(At(m, _), "EEEEEE", { locale: be });
|
|
770
|
+
return vt(F);
|
|
771
771
|
});
|
|
772
|
-
}, []), f =
|
|
773
|
-
l || o((m) => ke(
|
|
774
|
-
}, [l]), k =
|
|
775
|
-
o((m) => ke(
|
|
776
|
-
}, []), g =
|
|
772
|
+
}, []), f = ae(() => {
|
|
773
|
+
l || o((m) => ke(Kn(m, 1)));
|
|
774
|
+
}, [l]), k = ae(() => {
|
|
775
|
+
o((m) => ke(qn(m, 1)));
|
|
776
|
+
}, []), g = ae(
|
|
777
777
|
(m) => {
|
|
778
778
|
n && n(m);
|
|
779
779
|
},
|
|
780
780
|
[n]
|
|
781
|
-
), h =
|
|
781
|
+
), h = ae(
|
|
782
782
|
(m, x) => {
|
|
783
783
|
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(x));
|
|
784
784
|
},
|
|
785
785
|
[g]
|
|
786
|
-
), b = Te(
|
|
787
|
-
return /* @__PURE__ */
|
|
786
|
+
), b = Te(a, "MMMM", { locale: be }), v = Te(a, "yyyy", { locale: be }), p = `${vt(b)} ${v}`;
|
|
787
|
+
return /* @__PURE__ */ r.jsxs(
|
|
788
788
|
"div",
|
|
789
789
|
{
|
|
790
|
-
className:
|
|
791
|
-
"data-color":
|
|
792
|
-
"data-size":
|
|
790
|
+
className: se.calendarContainer,
|
|
791
|
+
"data-color": s,
|
|
792
|
+
"data-size": i,
|
|
793
793
|
children: [
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
|
|
794
|
+
/* @__PURE__ */ r.jsxs("div", { className: se.calendarHeader, children: [
|
|
795
|
+
/* @__PURE__ */ r.jsx("span", { className: se.monthYear, children: p }),
|
|
796
|
+
/* @__PURE__ */ r.jsxs("div", { className: se.navigationButtons, children: [
|
|
797
|
+
/* @__PURE__ */ r.jsx(
|
|
798
|
+
qe,
|
|
799
799
|
{
|
|
800
800
|
variant: "tertiary",
|
|
801
801
|
icon: !0,
|
|
802
802
|
onClick: f,
|
|
803
803
|
"aria-label": "Forrige måned",
|
|
804
804
|
disabled: l,
|
|
805
|
-
children: /* @__PURE__ */
|
|
805
|
+
children: /* @__PURE__ */ r.jsx(_t, {})
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
|
|
808
|
+
/* @__PURE__ */ r.jsx(
|
|
809
|
+
qe,
|
|
810
810
|
{
|
|
811
811
|
variant: "tertiary",
|
|
812
812
|
icon: !0,
|
|
813
813
|
onClick: k,
|
|
814
814
|
"aria-label": "Neste måned",
|
|
815
|
-
children: /* @__PURE__ */
|
|
815
|
+
children: /* @__PURE__ */ r.jsx(Et, {})
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
] })
|
|
819
819
|
] }),
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
const x =
|
|
823
|
-
|
|
824
|
-
x ? "" :
|
|
825
|
-
|
|
820
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
|
|
821
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((m) => {
|
|
822
|
+
const x = mt(m, a), _ = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
|
+
se.dateCell,
|
|
824
|
+
x ? "" : se.otherMonth,
|
|
825
|
+
_ ? se.selectedDate : "",
|
|
826
826
|
// Utheving basert på prop
|
|
827
|
-
|
|
827
|
+
F && !_ ? se.todayDate : ""
|
|
828
828
|
].filter(Boolean).join(" ");
|
|
829
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ r.jsx(
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
|
-
className:
|
|
832
|
+
className: E,
|
|
833
833
|
onClick: () => g(m),
|
|
834
|
-
onKeyDown: (
|
|
834
|
+
onKeyDown: (j) => h(j, m),
|
|
835
835
|
role: "button",
|
|
836
836
|
tabIndex: 0,
|
|
837
|
-
"aria-pressed":
|
|
837
|
+
"aria-pressed": _ ?? !1,
|
|
838
838
|
"aria-label": Te(m, "PPP", { locale: be }),
|
|
839
|
-
children: /* @__PURE__ */
|
|
839
|
+
children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
|
|
840
840
|
},
|
|
841
841
|
m.toISOString()
|
|
842
842
|
);
|
|
@@ -854,27 +854,27 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
854
854
|
inputWrapperError: rr,
|
|
855
855
|
suffixButton: sr,
|
|
856
856
|
suffixButtonInteractive: ar
|
|
857
|
-
},
|
|
858
|
-
const
|
|
859
|
-
return
|
|
860
|
-
},
|
|
861
|
-
let
|
|
862
|
-
if (
|
|
863
|
-
const n = parseInt(
|
|
864
|
-
!isNaN(n) && n > 31 && (
|
|
865
|
-
}
|
|
866
|
-
if (
|
|
867
|
-
const n = parseInt(
|
|
868
|
-
!isNaN(n) && n > 12 && (
|
|
869
|
-
}
|
|
870
|
-
return
|
|
857
|
+
}, yt = (t) => {
|
|
858
|
+
const e = t.slice(0, 2), n = t.slice(2, 4), s = t.slice(4, 8);
|
|
859
|
+
return t.length > 4 ? `${e}.${n}.${s}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
|
|
860
|
+
}, xt = (t) => (t || "").replace(/\D/g, ""), Tt = (t) => {
|
|
861
|
+
let e = t;
|
|
862
|
+
if (e.length >= 2) {
|
|
863
|
+
const n = parseInt(e.substring(0, 2), 10);
|
|
864
|
+
!isNaN(n) && n > 31 && (e = "31" + e.substring(2));
|
|
865
|
+
}
|
|
866
|
+
if (e.length >= 4) {
|
|
867
|
+
const n = parseInt(e.substring(2, 4), 10);
|
|
868
|
+
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
869
|
+
}
|
|
870
|
+
return e.slice(0, 8);
|
|
871
871
|
}, ir = ue(
|
|
872
|
-
(
|
|
872
|
+
(t, e) => {
|
|
873
873
|
const {
|
|
874
874
|
label: n,
|
|
875
|
-
suffixIcon:
|
|
876
|
-
onSuffixClick:
|
|
877
|
-
className:
|
|
875
|
+
suffixIcon: s,
|
|
876
|
+
onSuffixClick: i,
|
|
877
|
+
className: a,
|
|
878
878
|
// For ytre fieldset
|
|
879
879
|
inputWrapperClassName: o,
|
|
880
880
|
// For input wrapper div
|
|
@@ -894,86 +894,86 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
894
894
|
// Send ekstern onFocus videre
|
|
895
895
|
onBlur: x,
|
|
896
896
|
// Send ekstern onBlur videre
|
|
897
|
-
autoComplete:
|
|
898
|
-
"aria-label":
|
|
899
|
-
"aria-labelledby":
|
|
900
|
-
description:
|
|
901
|
-
error:
|
|
897
|
+
autoComplete: _ = "off",
|
|
898
|
+
"aria-label": F,
|
|
899
|
+
"aria-labelledby": E,
|
|
900
|
+
description: j,
|
|
901
|
+
error: L,
|
|
902
902
|
// Bruk error-prop for styling
|
|
903
|
-
"data-color":
|
|
903
|
+
"data-color": B,
|
|
904
904
|
// <-- Destrukturering
|
|
905
|
-
"data-size":
|
|
905
|
+
"data-size": $,
|
|
906
906
|
// <-- Destrukturering
|
|
907
|
-
...
|
|
908
|
-
} =
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
() =>
|
|
907
|
+
...N
|
|
908
|
+
} = t, H = l !== void 0, M = Ke(null);
|
|
909
|
+
Dt.useImperativeHandle(
|
|
910
|
+
e,
|
|
911
|
+
() => M.current
|
|
912
912
|
);
|
|
913
|
-
const R =
|
|
914
|
-
(
|
|
915
|
-
const
|
|
916
|
-
return
|
|
913
|
+
const R = ae(
|
|
914
|
+
(I) => {
|
|
915
|
+
const C = xt(I), W = Tt(C);
|
|
916
|
+
return yt(W);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [
|
|
919
|
+
), [D, U] = oe(
|
|
920
920
|
() => R(l ?? u)
|
|
921
921
|
);
|
|
922
|
-
|
|
923
|
-
if (
|
|
924
|
-
const
|
|
925
|
-
|
|
922
|
+
te(() => {
|
|
923
|
+
if (H) {
|
|
924
|
+
const I = R(l);
|
|
925
|
+
I !== D && (U(I), M.current && M.current.value !== I && (M.current.value = I));
|
|
926
926
|
}
|
|
927
|
-
}, [l,
|
|
928
|
-
const
|
|
929
|
-
(
|
|
930
|
-
const
|
|
931
|
-
let
|
|
932
|
-
const
|
|
933
|
-
|
|
934
|
-
if (
|
|
935
|
-
const
|
|
936
|
-
...
|
|
937
|
-
target: { ...
|
|
927
|
+
}, [l, H, D, R]);
|
|
928
|
+
const ne = ae(
|
|
929
|
+
(I) => {
|
|
930
|
+
const C = I.target, W = C.value, J = D, X = xt(W).slice(0, 8), V = Tt(X), w = yt(V);
|
|
931
|
+
let O = 0;
|
|
932
|
+
const G = V.length;
|
|
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 || H) && y)) {
|
|
935
|
+
const Z = {
|
|
936
|
+
...I,
|
|
937
|
+
target: { ...C, value: w }
|
|
938
938
|
};
|
|
939
|
-
y(
|
|
939
|
+
y(Z, w);
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
|
-
[
|
|
944
|
-
), Y = [pe.fieldset,
|
|
943
|
+
[D, H, y, R]
|
|
944
|
+
), Y = [pe.fieldset, a].filter(Boolean).join(" "), q = [
|
|
945
945
|
pe.inputWrapper,
|
|
946
946
|
o,
|
|
947
|
-
|
|
948
|
-
].filter(Boolean).join(" "),
|
|
947
|
+
L ? pe.inputWrapperError : ""
|
|
948
|
+
].filter(Boolean).join(" "), re = [
|
|
949
949
|
d
|
|
950
950
|
].filter(Boolean).join(" "), c = [
|
|
951
951
|
pe.suffixButton,
|
|
952
|
-
|
|
952
|
+
i ? pe.suffixButtonInteractive : ""
|
|
953
953
|
].filter(Boolean).join(" ");
|
|
954
|
-
!n && !
|
|
955
|
-
const
|
|
954
|
+
!n && !F && !E && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
955
|
+
const A = n && typeof n == "string" ? E || `${g}-label` : void 0, P = j ? `${g}-desc` : void 0, z = L ? `${g}-err` : void 0, S = [P, z].filter(Boolean).join(" ") || void 0;
|
|
956
956
|
return (
|
|
957
957
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
958
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ r.jsxs(
|
|
959
959
|
"div",
|
|
960
960
|
{
|
|
961
961
|
className: Y,
|
|
962
|
-
"data-color":
|
|
963
|
-
"data-size":
|
|
962
|
+
"data-color": B,
|
|
963
|
+
"data-size": $,
|
|
964
964
|
children: [
|
|
965
|
-
n && typeof n == "string" ? /* @__PURE__ */
|
|
966
|
-
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
/* @__PURE__ */
|
|
965
|
+
n && typeof n == "string" ? /* @__PURE__ */ r.jsx("label", { id: A, htmlFor: g, children: n }) : n,
|
|
966
|
+
j && /* @__PURE__ */ r.jsx("p", { id: P, className: pe.description, children: j }),
|
|
967
|
+
/* @__PURE__ */ r.jsxs("div", { className: q, children: [
|
|
968
|
+
/* @__PURE__ */ r.jsx(
|
|
969
969
|
"input",
|
|
970
970
|
{
|
|
971
|
-
ref:
|
|
971
|
+
ref: M,
|
|
972
972
|
type: "text",
|
|
973
973
|
inputMode: "numeric",
|
|
974
974
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
975
975
|
maxLength: 10,
|
|
976
|
-
value:
|
|
976
|
+
value: D,
|
|
977
977
|
readOnly: f,
|
|
978
978
|
placeholder: k,
|
|
979
979
|
id: g,
|
|
@@ -981,33 +981,33 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
981
981
|
required: b,
|
|
982
982
|
disabled: v,
|
|
983
983
|
onClick: p,
|
|
984
|
-
onChange:
|
|
984
|
+
onChange: ne,
|
|
985
985
|
onFocus: m,
|
|
986
986
|
onBlur: x,
|
|
987
|
-
autoComplete:
|
|
988
|
-
"aria-label":
|
|
989
|
-
"aria-labelledby":
|
|
990
|
-
"aria-describedby":
|
|
991
|
-
"aria-invalid": !!
|
|
992
|
-
className:
|
|
993
|
-
...
|
|
987
|
+
autoComplete: _,
|
|
988
|
+
"aria-label": F,
|
|
989
|
+
"aria-labelledby": A,
|
|
990
|
+
"aria-describedby": S,
|
|
991
|
+
"aria-invalid": !!L,
|
|
992
|
+
className: re,
|
|
993
|
+
...N
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
|
-
|
|
996
|
+
s && /* @__PURE__ */ r.jsx(
|
|
997
997
|
"button",
|
|
998
998
|
{
|
|
999
999
|
type: "button",
|
|
1000
1000
|
className: c,
|
|
1001
|
-
onClick: v ? void 0 :
|
|
1002
|
-
tabIndex:
|
|
1003
|
-
"aria-hidden": !
|
|
1001
|
+
onClick: v ? void 0 : i,
|
|
1002
|
+
tabIndex: i && !v ? 0 : -1,
|
|
1003
|
+
"aria-hidden": !i,
|
|
1004
1004
|
disabled: v,
|
|
1005
|
-
"aria-label":
|
|
1006
|
-
children:
|
|
1005
|
+
"aria-label": i ? "Åpne datovelger" : void 0,
|
|
1006
|
+
children: s
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
] }),
|
|
1010
|
-
|
|
1010
|
+
L && /* @__PURE__ */ r.jsx("p", { id: z, className: pe.error, role: "alert", children: L })
|
|
1011
1011
|
]
|
|
1012
1012
|
}
|
|
1013
1013
|
)
|
|
@@ -1015,161 +1015,161 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
1017
|
ir.displayName = "DateInput";
|
|
1018
|
-
function lr(
|
|
1019
|
-
return Object.prototype.toString.call(
|
|
1018
|
+
function lr(t) {
|
|
1019
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return lr(
|
|
1021
|
+
function St(t) {
|
|
1022
|
+
return lr(t) || Array.isArray(t);
|
|
1023
1023
|
}
|
|
1024
1024
|
function dr() {
|
|
1025
1025
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const n = Object.keys(
|
|
1029
|
-
if (n.length !==
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1032
|
-
const d =
|
|
1033
|
-
return typeof d == "function" ? `${d}` == `${l}` : !
|
|
1027
|
+
function Xe(t, e) {
|
|
1028
|
+
const n = Object.keys(t), s = Object.keys(e);
|
|
1029
|
+
if (n.length !== s.length) return !1;
|
|
1030
|
+
const i = JSON.stringify(Object.keys(t.breakpoints || {})), a = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
1031
|
+
return i !== a ? !1 : n.every((o) => {
|
|
1032
|
+
const d = t[o], l = e[o];
|
|
1033
|
+
return typeof d == "function" ? `${d}` == `${l}` : !St(d) || !St(l) ? d === l : Xe(d, l);
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
return
|
|
1036
|
+
function wt(t) {
|
|
1037
|
+
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
1038
1038
|
}
|
|
1039
|
-
function cr(
|
|
1040
|
-
if (
|
|
1041
|
-
const n =
|
|
1042
|
-
return n.every((
|
|
1043
|
-
const o =
|
|
1044
|
-
return
|
|
1039
|
+
function cr(t, e) {
|
|
1040
|
+
if (t.length !== e.length) return !1;
|
|
1041
|
+
const n = wt(t), s = wt(e);
|
|
1042
|
+
return n.every((i, a) => {
|
|
1043
|
+
const o = s[a];
|
|
1044
|
+
return Xe(i, o);
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
return typeof
|
|
1047
|
+
function Qe(t) {
|
|
1048
|
+
return typeof t == "number";
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return typeof
|
|
1050
|
+
function Ye(t) {
|
|
1051
|
+
return typeof t == "string";
|
|
1052
1052
|
}
|
|
1053
|
-
function Re(
|
|
1054
|
-
return typeof
|
|
1053
|
+
function Re(t) {
|
|
1054
|
+
return typeof t == "boolean";
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return Object.prototype.toString.call(
|
|
1056
|
+
function Ct(t) {
|
|
1057
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return Math.abs(
|
|
1059
|
+
function K(t) {
|
|
1060
|
+
return Math.abs(t);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return Math.sign(
|
|
1062
|
+
function et(t) {
|
|
1063
|
+
return Math.sign(t);
|
|
1064
1064
|
}
|
|
1065
|
-
function Ie(
|
|
1066
|
-
return
|
|
1065
|
+
function Ie(t, e) {
|
|
1066
|
+
return K(t - e);
|
|
1067
1067
|
}
|
|
1068
|
-
function ur(
|
|
1069
|
-
if (
|
|
1070
|
-
const n = Ie(
|
|
1071
|
-
return
|
|
1068
|
+
function ur(t, e) {
|
|
1069
|
+
if (t === 0 || e === 0 || K(t) <= K(e)) return 0;
|
|
1070
|
+
const n = Ie(K(t), K(e));
|
|
1071
|
+
return K(n / t);
|
|
1072
1072
|
}
|
|
1073
|
-
function mr(
|
|
1074
|
-
return Math.round(
|
|
1073
|
+
function mr(t) {
|
|
1074
|
+
return Math.round(t * 100) / 100;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return
|
|
1076
|
+
function Le(t) {
|
|
1077
|
+
return Ae(t).map(Number);
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return
|
|
1079
|
+
function ie(t) {
|
|
1080
|
+
return t[_e(t)];
|
|
1081
1081
|
}
|
|
1082
|
-
function _e(
|
|
1083
|
-
return Math.max(0,
|
|
1082
|
+
function _e(t) {
|
|
1083
|
+
return Math.max(0, t.length - 1);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1085
|
+
function tt(t, e) {
|
|
1086
|
+
return e === _e(t);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return Array.from(Array(
|
|
1088
|
+
function jt(t, e = 0) {
|
|
1089
|
+
return Array.from(Array(t), (n, s) => e + s);
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return Object.keys(
|
|
1091
|
+
function Ae(t) {
|
|
1092
|
+
return Object.keys(t);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return [
|
|
1096
|
-
const
|
|
1097
|
-
n[
|
|
1094
|
+
function Bt(t, e) {
|
|
1095
|
+
return [t, e].reduce((n, s) => (Ae(s).forEach((i) => {
|
|
1096
|
+
const a = n[i], o = s[i], d = Ct(a) && Ct(o);
|
|
1097
|
+
n[i] = d ? Bt(a, o) : o;
|
|
1098
1098
|
}), n), {});
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
return typeof
|
|
1100
|
+
function Je(t, e) {
|
|
1101
|
+
return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
|
|
1102
1102
|
}
|
|
1103
|
-
function gr(
|
|
1103
|
+
function gr(t, e) {
|
|
1104
1104
|
const n = {
|
|
1105
|
-
start:
|
|
1106
|
-
center:
|
|
1107
|
-
end:
|
|
1105
|
+
start: s,
|
|
1106
|
+
center: i,
|
|
1107
|
+
end: a
|
|
1108
1108
|
};
|
|
1109
|
-
function
|
|
1109
|
+
function s() {
|
|
1110
1110
|
return 0;
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1112
|
+
function i(l) {
|
|
1113
|
+
return a(l) / 2;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1115
|
+
function a(l) {
|
|
1116
|
+
return e - l;
|
|
1117
1117
|
}
|
|
1118
1118
|
function o(l, u) {
|
|
1119
|
-
return
|
|
1119
|
+
return Ye(t) ? n[t](l) : t(e, l, u);
|
|
1120
1120
|
}
|
|
1121
1121
|
return {
|
|
1122
1122
|
measure: o
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
1125
|
function Fe() {
|
|
1126
|
-
let
|
|
1127
|
-
function
|
|
1126
|
+
let t = [];
|
|
1127
|
+
function e(i, a, o, d = {
|
|
1128
1128
|
passive: !0
|
|
1129
1129
|
}) {
|
|
1130
1130
|
let l;
|
|
1131
|
-
if ("addEventListener" in
|
|
1132
|
-
|
|
1131
|
+
if ("addEventListener" in i)
|
|
1132
|
+
i.addEventListener(a, o, d), l = () => i.removeEventListener(a, o, d);
|
|
1133
1133
|
else {
|
|
1134
|
-
const u =
|
|
1134
|
+
const u = i;
|
|
1135
1135
|
u.addListener(o), l = () => u.removeListener(o);
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return t.push(l), s;
|
|
1138
1138
|
}
|
|
1139
1139
|
function n() {
|
|
1140
|
-
|
|
1140
|
+
t = t.filter((i) => i());
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1143
|
-
add:
|
|
1142
|
+
const s = {
|
|
1143
|
+
add: e,
|
|
1144
1144
|
clear: n
|
|
1145
1145
|
};
|
|
1146
|
-
return
|
|
1146
|
+
return s;
|
|
1147
1147
|
}
|
|
1148
|
-
function pr(
|
|
1149
|
-
const
|
|
1148
|
+
function pr(t, e, n, s) {
|
|
1149
|
+
const i = Fe(), a = 1e3 / 60;
|
|
1150
1150
|
let o = null, d = 0, l = 0;
|
|
1151
1151
|
function u() {
|
|
1152
|
-
|
|
1153
|
-
|
|
1152
|
+
i.add(t, "visibilitychange", () => {
|
|
1153
|
+
t.hidden && h();
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
1156
|
function y() {
|
|
1157
|
-
g(),
|
|
1157
|
+
g(), i.clear();
|
|
1158
1158
|
}
|
|
1159
1159
|
function f(v) {
|
|
1160
1160
|
if (!l) return;
|
|
1161
1161
|
o || (o = v, n(), n());
|
|
1162
1162
|
const p = v - o;
|
|
1163
|
-
for (o = v, d += p; d >=
|
|
1164
|
-
n(), d -=
|
|
1165
|
-
const m = d /
|
|
1166
|
-
|
|
1163
|
+
for (o = v, d += p; d >= a; )
|
|
1164
|
+
n(), d -= a;
|
|
1165
|
+
const m = d / a;
|
|
1166
|
+
s(m), l && (l = e.requestAnimationFrame(f));
|
|
1167
1167
|
}
|
|
1168
1168
|
function k() {
|
|
1169
|
-
l || (l =
|
|
1169
|
+
l || (l = e.requestAnimationFrame(f));
|
|
1170
1170
|
}
|
|
1171
1171
|
function g() {
|
|
1172
|
-
|
|
1172
|
+
e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
|
|
1173
1173
|
}
|
|
1174
1174
|
function h() {
|
|
1175
1175
|
o = null, d = 0;
|
|
@@ -1180,83 +1180,83 @@ function pr(e, t, n, r) {
|
|
|
1180
1180
|
start: k,
|
|
1181
1181
|
stop: g,
|
|
1182
1182
|
update: n,
|
|
1183
|
-
render:
|
|
1183
|
+
render: s
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function fr(
|
|
1187
|
-
const n =
|
|
1186
|
+
function fr(t, e) {
|
|
1187
|
+
const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", o = !s && n ? -1 : 1, d = y(), l = f();
|
|
1188
1188
|
function u(h) {
|
|
1189
1189
|
const {
|
|
1190
1190
|
height: b,
|
|
1191
1191
|
width: v
|
|
1192
1192
|
} = h;
|
|
1193
|
-
return
|
|
1193
|
+
return s ? b : v;
|
|
1194
1194
|
}
|
|
1195
1195
|
function y() {
|
|
1196
|
-
return
|
|
1196
|
+
return s ? "top" : n ? "right" : "left";
|
|
1197
1197
|
}
|
|
1198
1198
|
function f() {
|
|
1199
|
-
return
|
|
1199
|
+
return s ? "bottom" : n ? "left" : "right";
|
|
1200
1200
|
}
|
|
1201
1201
|
function k(h) {
|
|
1202
1202
|
return h * o;
|
|
1203
1203
|
}
|
|
1204
1204
|
return {
|
|
1205
|
-
scroll:
|
|
1206
|
-
cross:
|
|
1205
|
+
scroll: i,
|
|
1206
|
+
cross: a,
|
|
1207
1207
|
startEdge: d,
|
|
1208
1208
|
endEdge: l,
|
|
1209
1209
|
measureSize: u,
|
|
1210
1210
|
direction: k
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
function fe(
|
|
1214
|
-
const n =
|
|
1215
|
-
function
|
|
1216
|
-
return u <
|
|
1213
|
+
function fe(t = 0, e = 0) {
|
|
1214
|
+
const n = K(t - e);
|
|
1215
|
+
function s(u) {
|
|
1216
|
+
return u < t;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return u >
|
|
1218
|
+
function i(u) {
|
|
1219
|
+
return u > e;
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return
|
|
1221
|
+
function a(u) {
|
|
1222
|
+
return s(u) || i(u);
|
|
1223
1223
|
}
|
|
1224
1224
|
function o(u) {
|
|
1225
|
-
return
|
|
1225
|
+
return a(u) ? s(u) ? t : e : u;
|
|
1226
1226
|
}
|
|
1227
1227
|
function d(u) {
|
|
1228
|
-
return n ? u - n * Math.ceil((u -
|
|
1228
|
+
return n ? u - n * Math.ceil((u - e) / n) : u;
|
|
1229
1229
|
}
|
|
1230
1230
|
return {
|
|
1231
1231
|
length: n,
|
|
1232
|
-
max:
|
|
1233
|
-
min:
|
|
1232
|
+
max: e,
|
|
1233
|
+
min: t,
|
|
1234
1234
|
constrain: o,
|
|
1235
|
-
reachedAny:
|
|
1236
|
-
reachedMax:
|
|
1237
|
-
reachedMin:
|
|
1235
|
+
reachedAny: a,
|
|
1236
|
+
reachedMax: i,
|
|
1237
|
+
reachedMin: s,
|
|
1238
1238
|
removeOffset: d
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
function Nt(
|
|
1241
|
+
function Nt(t, e, n) {
|
|
1242
1242
|
const {
|
|
1243
|
-
constrain:
|
|
1244
|
-
} = fe(0,
|
|
1245
|
-
let
|
|
1243
|
+
constrain: s
|
|
1244
|
+
} = fe(0, t), i = t + 1;
|
|
1245
|
+
let a = o(e);
|
|
1246
1246
|
function o(k) {
|
|
1247
|
-
return n ?
|
|
1247
|
+
return n ? K((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
|
-
return
|
|
1250
|
+
return a;
|
|
1251
1251
|
}
|
|
1252
1252
|
function l(k) {
|
|
1253
|
-
return
|
|
1253
|
+
return a = o(k), f;
|
|
1254
1254
|
}
|
|
1255
1255
|
function u(k) {
|
|
1256
1256
|
return y().set(d() + k);
|
|
1257
1257
|
}
|
|
1258
1258
|
function y() {
|
|
1259
|
-
return Nt(
|
|
1259
|
+
return Nt(t, d(), n);
|
|
1260
1260
|
}
|
|
1261
1261
|
const f = {
|
|
1262
1262
|
get: d,
|
|
@@ -1266,96 +1266,96 @@ function Nt(e, t, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}
|
|
1269
|
-
function hr(
|
|
1269
|
+
function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
1270
1270
|
const {
|
|
1271
1271
|
cross: x,
|
|
1272
|
-
direction:
|
|
1273
|
-
} =
|
|
1272
|
+
direction: _
|
|
1273
|
+
} = t, F = ["INPUT", "SELECT", "TEXTAREA"], E = {
|
|
1274
1274
|
passive: !1
|
|
1275
|
-
},
|
|
1275
|
+
}, j = Fe(), L = Fe(), B = fe(50, 225).constrain(g.measure(20)), $ = {
|
|
1276
1276
|
mouse: 300,
|
|
1277
1277
|
touch: 400
|
|
1278
|
-
},
|
|
1278
|
+
}, N = {
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
|
-
},
|
|
1282
|
-
let
|
|
1283
|
-
function
|
|
1281
|
+
}, H = h ? 43 : 25;
|
|
1282
|
+
let M = !1, R = 0, D = 0, U = !1, ne = !1, Y = !1, q = !1;
|
|
1283
|
+
function re(w) {
|
|
1284
1284
|
if (!m) return;
|
|
1285
|
-
function
|
|
1286
|
-
(Re(m) || m(
|
|
1285
|
+
function O(Z) {
|
|
1286
|
+
(Re(m) || m(w, Z)) && I(Z);
|
|
1287
1287
|
}
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1290
|
-
},
|
|
1291
|
-
}).add(
|
|
1288
|
+
const G = e;
|
|
1289
|
+
j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
|
|
1290
|
+
}, E).add(G, "touchend", () => {
|
|
1291
|
+
}).add(G, "touchstart", O).add(G, "mousedown", O).add(G, "touchcancel", W).add(G, "contextmenu", W).add(G, "click", J, !0);
|
|
1292
1292
|
}
|
|
1293
1293
|
function c() {
|
|
1294
|
-
|
|
1294
|
+
j.clear(), L.clear();
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1296
|
+
function A() {
|
|
1297
|
+
const w = q ? n : e;
|
|
1298
|
+
L.add(w, "touchmove", C, E).add(w, "touchend", W).add(w, "mousemove", C, E).add(w, "mouseup", W);
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const
|
|
1302
|
-
return
|
|
1300
|
+
function P(w) {
|
|
1301
|
+
const O = w.nodeName || "";
|
|
1302
|
+
return F.includes(O);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return (h ?
|
|
1304
|
+
function z() {
|
|
1305
|
+
return (h ? N : $)[q ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
const
|
|
1309
|
-
return h ||
|
|
1307
|
+
function S(w, O) {
|
|
1308
|
+
const G = f.add(et(w) * -1), Z = y.byDistance(w, !h).distance;
|
|
1309
|
+
return h || K(w) < B ? Z : v && O ? Z * 0.5 : y.byIndex(G.get(), 0).distance;
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1311
|
+
function I(w) {
|
|
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), D = a.readPoint(w, x), k.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1316
|
-
if (!
|
|
1317
|
-
const
|
|
1318
|
-
if (!
|
|
1319
|
-
return
|
|
1320
|
-
const me =
|
|
1321
|
-
|
|
1315
|
+
function C(w) {
|
|
1316
|
+
if (!Je(w, s) && w.touches.length >= 2) return W(w);
|
|
1317
|
+
const G = a.readPoint(w), Z = a.readPoint(w, x), le = Ie(G, R), de = Ie(Z, D);
|
|
1318
|
+
if (!ne && !q && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
|
+
return W(w);
|
|
1320
|
+
const me = a.pointerMove(w);
|
|
1321
|
+
le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(_(me)), w.preventDefault();
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1323
|
+
function W(w) {
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = S(_(Z), G), de = ur(Z, le), me = H - 10 * de, ce = p + de / 50;
|
|
1325
|
+
ne = !1, U = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), q = !1, k.emit("pointerUp");
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1328
|
-
Y && (
|
|
1327
|
+
function J(w) {
|
|
1328
|
+
Y && (w.stopPropagation(), w.preventDefault(), Y = !1);
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1330
|
+
function X() {
|
|
1331
|
+
return U;
|
|
1332
1332
|
}
|
|
1333
1333
|
return {
|
|
1334
|
-
init:
|
|
1334
|
+
init: re,
|
|
1335
1335
|
destroy: c,
|
|
1336
|
-
pointerDown:
|
|
1336
|
+
pointerDown: X
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
function kr(
|
|
1340
|
-
let
|
|
1341
|
-
function
|
|
1339
|
+
function kr(t, e) {
|
|
1340
|
+
let s, i;
|
|
1341
|
+
function a(f) {
|
|
1342
1342
|
return f.timeStamp;
|
|
1343
1343
|
}
|
|
1344
1344
|
function o(f, k) {
|
|
1345
|
-
const h = `client${(k ||
|
|
1346
|
-
return (
|
|
1345
|
+
const h = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
|
|
1346
|
+
return (Je(f, e) ? f : f.touches[0])[h];
|
|
1347
1347
|
}
|
|
1348
1348
|
function d(f) {
|
|
1349
|
-
return
|
|
1349
|
+
return s = f, i = f, o(f);
|
|
1350
1350
|
}
|
|
1351
1351
|
function l(f) {
|
|
1352
|
-
const k = o(f) - o(
|
|
1353
|
-
return
|
|
1352
|
+
const k = o(f) - o(i), g = a(f) - a(s) > 170;
|
|
1353
|
+
return i = f, g && (s = f), k;
|
|
1354
1354
|
}
|
|
1355
1355
|
function u(f) {
|
|
1356
|
-
if (!
|
|
1357
|
-
const k = o(
|
|
1358
|
-
return g && !h &&
|
|
1356
|
+
if (!s || !i) return 0;
|
|
1357
|
+
const k = o(i) - o(s), g = a(f) - a(s), h = a(f) - a(i) > 170, b = k / g;
|
|
1358
|
+
return g && !h && K(b) > 0.1 ? b : 0;
|
|
1359
1359
|
}
|
|
1360
1360
|
return {
|
|
1361
1361
|
pointerDown: d,
|
|
@@ -1365,55 +1365,55 @@ function kr(e, t) {
|
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
1367
|
function br() {
|
|
1368
|
-
function
|
|
1368
|
+
function t(n) {
|
|
1369
1369
|
const {
|
|
1370
|
-
offsetTop:
|
|
1371
|
-
offsetLeft:
|
|
1372
|
-
offsetWidth:
|
|
1370
|
+
offsetTop: s,
|
|
1371
|
+
offsetLeft: i,
|
|
1372
|
+
offsetWidth: a,
|
|
1373
1373
|
offsetHeight: o
|
|
1374
1374
|
} = n;
|
|
1375
1375
|
return {
|
|
1376
|
-
top:
|
|
1377
|
-
right:
|
|
1378
|
-
bottom:
|
|
1379
|
-
left:
|
|
1380
|
-
width:
|
|
1376
|
+
top: s,
|
|
1377
|
+
right: i + a,
|
|
1378
|
+
bottom: s + o,
|
|
1379
|
+
left: i,
|
|
1380
|
+
width: a,
|
|
1381
1381
|
height: o
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
return {
|
|
1385
|
-
measure:
|
|
1385
|
+
measure: t
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function vr(
|
|
1389
|
-
function
|
|
1390
|
-
return
|
|
1388
|
+
function vr(t) {
|
|
1389
|
+
function e(s) {
|
|
1390
|
+
return t * (s / 100);
|
|
1391
1391
|
}
|
|
1392
1392
|
return {
|
|
1393
|
-
measure:
|
|
1393
|
+
measure: e
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
function yr(
|
|
1397
|
-
const d = [
|
|
1396
|
+
function yr(t, e, n, s, i, a, o) {
|
|
1397
|
+
const d = [t].concat(s);
|
|
1398
1398
|
let l, u, y = [], f = !1;
|
|
1399
1399
|
function k(v) {
|
|
1400
|
-
return
|
|
1400
|
+
return i.measureSize(o.measure(v));
|
|
1401
1401
|
}
|
|
1402
1402
|
function g(v) {
|
|
1403
|
-
if (!
|
|
1404
|
-
u = k(
|
|
1403
|
+
if (!a) return;
|
|
1404
|
+
u = k(t), y = s.map(k);
|
|
1405
1405
|
function p(m) {
|
|
1406
1406
|
for (const x of m) {
|
|
1407
1407
|
if (f) return;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1410
|
-
v.reInit(),
|
|
1408
|
+
const _ = x.target === t, F = s.indexOf(x.target), E = _ ? u : y[F], j = k(_ ? t : s[F]);
|
|
1409
|
+
if (K(j - E) >= 0.5) {
|
|
1410
|
+
v.reInit(), e.emit("resize");
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
l = new ResizeObserver((m) => {
|
|
1416
|
-
(Re(
|
|
1416
|
+
(Re(a) || a(v, m)) && p(m);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
1418
|
d.forEach((m) => l.observe(m));
|
|
1419
1419
|
});
|
|
@@ -1426,16 +1426,16 @@ function yr(e, t, n, r, a, s, o) {
|
|
|
1426
1426
|
destroy: h
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
function xr(
|
|
1430
|
-
let o = 0, d = 0, l =
|
|
1429
|
+
function xr(t, e, n, s, i, a) {
|
|
1430
|
+
let o = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
|
|
1431
1431
|
function k() {
|
|
1432
|
-
const
|
|
1433
|
-
let
|
|
1434
|
-
return
|
|
1432
|
+
const E = s.get() - t.get(), j = !l;
|
|
1433
|
+
let L = 0;
|
|
1434
|
+
return j ? (o = 0, n.set(s), t.set(s), L = E) : (n.set(t), o += E / l, o *= u, y += o, t.add(o), L = y - f), d = et(L), f = y, F;
|
|
1435
1435
|
}
|
|
1436
1436
|
function g() {
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1437
|
+
const E = s.get() - e.get();
|
|
1438
|
+
return K(E) < 1e-3;
|
|
1439
1439
|
}
|
|
1440
1440
|
function h() {
|
|
1441
1441
|
return l;
|
|
@@ -1447,18 +1447,18 @@ function xr(e, t, n, r, a, s) {
|
|
|
1447
1447
|
return o;
|
|
1448
1448
|
}
|
|
1449
1449
|
function p() {
|
|
1450
|
-
return x(
|
|
1450
|
+
return x(i);
|
|
1451
1451
|
}
|
|
1452
1452
|
function m() {
|
|
1453
|
-
return
|
|
1453
|
+
return _(a);
|
|
1454
1454
|
}
|
|
1455
|
-
function x(
|
|
1456
|
-
return l =
|
|
1455
|
+
function x(E) {
|
|
1456
|
+
return l = E, F;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return u =
|
|
1458
|
+
function _(E) {
|
|
1459
|
+
return u = E, F;
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const F = {
|
|
1462
1462
|
direction: b,
|
|
1463
1463
|
duration: h,
|
|
1464
1464
|
velocity: v,
|
|
@@ -1466,21 +1466,21 @@ function xr(e, t, n, r, a, s) {
|
|
|
1466
1466
|
settled: g,
|
|
1467
1467
|
useBaseFriction: m,
|
|
1468
1468
|
useBaseDuration: p,
|
|
1469
|
-
useFriction:
|
|
1469
|
+
useFriction: _,
|
|
1470
1470
|
useDuration: x
|
|
1471
1471
|
};
|
|
1472
|
-
return
|
|
1472
|
+
return F;
|
|
1473
1473
|
}
|
|
1474
|
-
function Tr(
|
|
1475
|
-
const
|
|
1474
|
+
function Tr(t, e, n, s, i) {
|
|
1475
|
+
const a = i.measure(10), o = i.measure(50), d = fe(0.1, 0.99);
|
|
1476
1476
|
let l = !1;
|
|
1477
1477
|
function u() {
|
|
1478
|
-
return !(l || !
|
|
1478
|
+
return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1479
1479
|
}
|
|
1480
1480
|
function y(g) {
|
|
1481
1481
|
if (!u()) return;
|
|
1482
|
-
const h =
|
|
1483
|
-
n.subtract(v * p), !g &&
|
|
1482
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", b = K(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / o);
|
|
1483
|
+
n.subtract(v * p), !g && K(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1484
1484
|
}
|
|
1485
1485
|
function f(g) {
|
|
1486
1486
|
l = !g;
|
|
@@ -1491,13 +1491,13 @@ function Tr(e, t, n, r, a) {
|
|
|
1491
1491
|
toggleActive: f
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
function Sr(
|
|
1495
|
-
const
|
|
1494
|
+
function Sr(t, e, n, s, i) {
|
|
1495
|
+
const a = fe(-e + t, 0), o = f(), d = y(), l = k();
|
|
1496
1496
|
function u(h, b) {
|
|
1497
1497
|
return Ie(h, b) <= 1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function y() {
|
|
1500
|
-
const h = o[0], b =
|
|
1500
|
+
const h = o[0], b = ie(o), v = o.lastIndexOf(h), p = o.indexOf(b) + 1;
|
|
1501
1501
|
return fe(v, p);
|
|
1502
1502
|
}
|
|
1503
1503
|
function f() {
|
|
@@ -1505,13 +1505,13 @@ function Sr(e, t, n, r, a) {
|
|
|
1505
1505
|
const {
|
|
1506
1506
|
min: v,
|
|
1507
1507
|
max: p
|
|
1508
|
-
} =
|
|
1509
|
-
return x ? p :
|
|
1508
|
+
} = a, m = a.constrain(h), x = !b, _ = tt(n, b);
|
|
1509
|
+
return x ? p : _ || u(v, m) ? v : u(p, m) ? p : m;
|
|
1510
1510
|
}).map((h) => parseFloat(h.toFixed(3)));
|
|
1511
1511
|
}
|
|
1512
1512
|
function k() {
|
|
1513
|
-
if (
|
|
1514
|
-
if (
|
|
1513
|
+
if (e <= t + i) return [a.max];
|
|
1514
|
+
if (s === "keepSnaps") return o;
|
|
1515
1515
|
const {
|
|
1516
1516
|
min: h,
|
|
1517
1517
|
max: b
|
|
@@ -1523,54 +1523,54 @@ function Sr(e, t, n, r, a) {
|
|
|
1523
1523
|
scrollContainLimit: d
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function wr(
|
|
1527
|
-
const
|
|
1526
|
+
function wr(t, e, n) {
|
|
1527
|
+
const s = e[0], i = n ? s - t : ie(e);
|
|
1528
1528
|
return {
|
|
1529
|
-
limit: fe(
|
|
1529
|
+
limit: fe(i, s)
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
function Cr(
|
|
1533
|
-
const
|
|
1532
|
+
function Cr(t, e, n, s) {
|
|
1533
|
+
const a = e.min + 0.1, o = e.max + 0.1, {
|
|
1534
1534
|
reachedMin: d,
|
|
1535
1535
|
reachedMax: l
|
|
1536
|
-
} = fe(
|
|
1536
|
+
} = fe(a, o);
|
|
1537
1537
|
function u(k) {
|
|
1538
1538
|
return k === 1 ? l(n.get()) : k === -1 ? d(n.get()) : !1;
|
|
1539
1539
|
}
|
|
1540
1540
|
function y(k) {
|
|
1541
1541
|
if (!u(k)) return;
|
|
1542
|
-
const g =
|
|
1543
|
-
|
|
1542
|
+
const g = t * (k * -1);
|
|
1543
|
+
s.forEach((h) => h.add(g));
|
|
1544
1544
|
}
|
|
1545
1545
|
return {
|
|
1546
1546
|
loop: y
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function jr(
|
|
1549
|
+
function jr(t) {
|
|
1550
1550
|
const {
|
|
1551
|
-
max:
|
|
1551
|
+
max: e,
|
|
1552
1552
|
length: n
|
|
1553
|
-
} =
|
|
1554
|
-
function
|
|
1555
|
-
const o =
|
|
1553
|
+
} = t;
|
|
1554
|
+
function s(a) {
|
|
1555
|
+
const o = a - e;
|
|
1556
1556
|
return n ? o / -n : 0;
|
|
1557
1557
|
}
|
|
1558
1558
|
return {
|
|
1559
|
-
get:
|
|
1559
|
+
get: s
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
function Dr(
|
|
1562
|
+
function Dr(t, e, n, s, i) {
|
|
1563
1563
|
const {
|
|
1564
|
-
startEdge:
|
|
1564
|
+
startEdge: a,
|
|
1565
1565
|
endEdge: o
|
|
1566
|
-
} =
|
|
1566
|
+
} = t, {
|
|
1567
1567
|
groupSlides: d
|
|
1568
|
-
} =
|
|
1568
|
+
} = i, l = f().map(e.measure), u = k(), y = g();
|
|
1569
1569
|
function f() {
|
|
1570
|
-
return d(
|
|
1570
|
+
return d(s).map((b) => ie(b)[o] - b[0][a]).map(K);
|
|
1571
1571
|
}
|
|
1572
1572
|
function k() {
|
|
1573
|
-
return
|
|
1573
|
+
return s.map((b) => n[a] - b[a]).map((b) => -K(b));
|
|
1574
1574
|
}
|
|
1575
1575
|
function g() {
|
|
1576
1576
|
return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
|
|
@@ -1580,24 +1580,24 @@ function Dr(e, t, n, r, a) {
|
|
|
1580
1580
|
snapsAligned: y
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function Ir(
|
|
1583
|
+
function Ir(t, e, n, s, i, a) {
|
|
1584
1584
|
const {
|
|
1585
1585
|
groupSlides: o
|
|
1586
|
-
} =
|
|
1586
|
+
} = i, {
|
|
1587
1587
|
min: d,
|
|
1588
1588
|
max: l
|
|
1589
|
-
} =
|
|
1589
|
+
} = s, u = y();
|
|
1590
1590
|
function y() {
|
|
1591
|
-
const k = o(
|
|
1592
|
-
return n.length === 1 ? [
|
|
1593
|
-
const p = !b, m =
|
|
1591
|
+
const k = o(a), g = !t || e === "keepSnaps";
|
|
1592
|
+
return n.length === 1 ? [a] : g ? k : k.slice(d, l).map((h, b, v) => {
|
|
1593
|
+
const p = !b, m = tt(v, b);
|
|
1594
1594
|
if (p) {
|
|
1595
|
-
const x =
|
|
1596
|
-
return
|
|
1595
|
+
const x = ie(v[0]) + 1;
|
|
1596
|
+
return jt(x);
|
|
1597
1597
|
}
|
|
1598
1598
|
if (m) {
|
|
1599
|
-
const x = _e(
|
|
1600
|
-
return
|
|
1599
|
+
const x = _e(a) - ie(v)[0] + 1;
|
|
1600
|
+
return jt(x, ie(v)[0]);
|
|
1601
1601
|
}
|
|
1602
1602
|
return h;
|
|
1603
1603
|
});
|
|
@@ -1606,20 +1606,20 @@ function Ir(e, t, n, r, a, s) {
|
|
|
1606
1606
|
slideRegistry: u
|
|
1607
1607
|
};
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Lr(t, e, n, s, i) {
|
|
1610
1610
|
const {
|
|
1611
|
-
reachedAny:
|
|
1611
|
+
reachedAny: a,
|
|
1612
1612
|
removeOffset: o,
|
|
1613
1613
|
constrain: d
|
|
1614
|
-
} =
|
|
1614
|
+
} = s;
|
|
1615
1615
|
function l(h) {
|
|
1616
|
-
return h.concat().sort((b, v) =>
|
|
1616
|
+
return h.concat().sort((b, v) => K(b) - K(v))[0];
|
|
1617
1617
|
}
|
|
1618
1618
|
function u(h) {
|
|
1619
|
-
const b =
|
|
1619
|
+
const b = t ? o(h) : d(h), v = e.map((m, x) => ({
|
|
1620
1620
|
diff: y(m - b, 0),
|
|
1621
1621
|
index: x
|
|
1622
|
-
})).sort((m, x) =>
|
|
1622
|
+
})).sort((m, x) => K(m.diff) - K(x.diff)), {
|
|
1623
1623
|
index: p
|
|
1624
1624
|
} = v[0];
|
|
1625
1625
|
return {
|
|
@@ -1629,31 +1629,31 @@ function Ar(e, t, n, r, a) {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
function y(h, b) {
|
|
1631
1631
|
const v = [h, h + n, h - n];
|
|
1632
|
-
if (!
|
|
1632
|
+
if (!t) return h;
|
|
1633
1633
|
if (!b) return l(v);
|
|
1634
|
-
const p = v.filter((m) =>
|
|
1635
|
-
return p.length ? l(p) :
|
|
1634
|
+
const p = v.filter((m) => et(m) === b);
|
|
1635
|
+
return p.length ? l(p) : ie(v) - n;
|
|
1636
1636
|
}
|
|
1637
1637
|
function f(h, b) {
|
|
1638
|
-
const v =
|
|
1638
|
+
const v = e[h] - i.get(), p = y(v, b);
|
|
1639
1639
|
return {
|
|
1640
1640
|
index: h,
|
|
1641
1641
|
distance: p
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
1644
|
function k(h, b) {
|
|
1645
|
-
const v =
|
|
1645
|
+
const v = i.get() + h, {
|
|
1646
1646
|
index: p,
|
|
1647
1647
|
distance: m
|
|
1648
|
-
} = u(v), x = !
|
|
1648
|
+
} = u(v), x = !t && a(v);
|
|
1649
1649
|
if (!b || x) return {
|
|
1650
1650
|
index: p,
|
|
1651
1651
|
distance: h
|
|
1652
1652
|
};
|
|
1653
|
-
const
|
|
1653
|
+
const _ = e[p] - m, F = h + y(_, 0);
|
|
1654
1654
|
return {
|
|
1655
1655
|
index: p,
|
|
1656
|
-
distance:
|
|
1656
|
+
distance: F
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
1659
|
return {
|
|
@@ -1662,17 +1662,17 @@ function Ar(e, t, n, r, a) {
|
|
|
1662
1662
|
shortcut: y
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Ar(t, e, n, s, i, a, o) {
|
|
1666
1666
|
function d(f) {
|
|
1667
|
-
const k = f.distance, g = f.index !==
|
|
1668
|
-
|
|
1667
|
+
const k = f.distance, g = f.index !== e.get();
|
|
1668
|
+
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(f.index), o.emit("select"));
|
|
1669
1669
|
}
|
|
1670
1670
|
function l(f, k) {
|
|
1671
|
-
const g =
|
|
1671
|
+
const g = i.byDistance(f, k);
|
|
1672
1672
|
d(g);
|
|
1673
1673
|
}
|
|
1674
1674
|
function u(f, k) {
|
|
1675
|
-
const g =
|
|
1675
|
+
const g = e.clone().set(f), h = i.byIndex(g.get(), k);
|
|
1676
1676
|
d(h);
|
|
1677
1677
|
}
|
|
1678
1678
|
return {
|
|
@@ -1680,7 +1680,7 @@ function Lr(e, t, n, r, a, s, o) {
|
|
|
1680
1680
|
index: u
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
function Fr(
|
|
1683
|
+
function Fr(t, e, n, s, i, a, o, d) {
|
|
1684
1684
|
const l = {
|
|
1685
1685
|
passive: !0,
|
|
1686
1686
|
capture: !0
|
|
@@ -1690,12 +1690,12 @@ function Fr(e, t, n, r, a, s, o, d) {
|
|
|
1690
1690
|
if (!d) return;
|
|
1691
1691
|
function h(b) {
|
|
1692
1692
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
1693
|
-
o.emit("slideFocusStart"),
|
|
1693
|
+
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1694
1694
|
const m = n.findIndex((x) => x.includes(b));
|
|
1695
|
-
|
|
1695
|
+
Qe(m) && (i.useDuration(0), s.index(m, 0), o.emit("slideFocus"));
|
|
1696
1696
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1697
|
+
a.add(document, "keydown", f, !1), e.forEach((b, v) => {
|
|
1698
|
+
a.add(b, "focus", (p) => {
|
|
1699
1699
|
(Re(d) || d(g, p)) && h(v);
|
|
1700
1700
|
}, l);
|
|
1701
1701
|
});
|
|
@@ -1707,33 +1707,33 @@ function Fr(e, t, n, r, a, s, o, d) {
|
|
|
1707
1707
|
init: y
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
|
-
function De(
|
|
1711
|
-
let
|
|
1710
|
+
function De(t) {
|
|
1711
|
+
let e = t;
|
|
1712
1712
|
function n() {
|
|
1713
|
-
return
|
|
1713
|
+
return e;
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1716
|
-
|
|
1715
|
+
function s(l) {
|
|
1716
|
+
e = o(l);
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1719
|
-
|
|
1718
|
+
function i(l) {
|
|
1719
|
+
e += o(l);
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1722
|
-
|
|
1721
|
+
function a(l) {
|
|
1722
|
+
e -= o(l);
|
|
1723
1723
|
}
|
|
1724
1724
|
function o(l) {
|
|
1725
|
-
return
|
|
1725
|
+
return Qe(l) ? l : l.get();
|
|
1726
1726
|
}
|
|
1727
1727
|
return {
|
|
1728
1728
|
get: n,
|
|
1729
|
-
set:
|
|
1730
|
-
add:
|
|
1731
|
-
subtract:
|
|
1729
|
+
set: s,
|
|
1730
|
+
add: i,
|
|
1731
|
+
subtract: a
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1735
|
-
const n =
|
|
1736
|
-
let
|
|
1734
|
+
function Pt(t, e) {
|
|
1735
|
+
const n = t.scroll === "x" ? o : d, s = e.style;
|
|
1736
|
+
let i = null, a = !1;
|
|
1737
1737
|
function o(k) {
|
|
1738
1738
|
return `translate3d(${k}px,0px,0px)`;
|
|
1739
1739
|
}
|
|
@@ -1741,15 +1741,15 @@ function Bt(e, t) {
|
|
|
1741
1741
|
return `translate3d(0px,${k}px,0px)`;
|
|
1742
1742
|
}
|
|
1743
1743
|
function l(k) {
|
|
1744
|
-
if (
|
|
1745
|
-
const g = mr(
|
|
1746
|
-
g !==
|
|
1744
|
+
if (a) return;
|
|
1745
|
+
const g = mr(t.direction(k));
|
|
1746
|
+
g !== i && (s.transform = n(g), i = g);
|
|
1747
1747
|
}
|
|
1748
1748
|
function u(k) {
|
|
1749
|
-
|
|
1749
|
+
a = !k;
|
|
1750
1750
|
}
|
|
1751
1751
|
function y() {
|
|
1752
|
-
|
|
1752
|
+
a || (s.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
|
|
1753
1753
|
}
|
|
1754
1754
|
return {
|
|
1755
1755
|
clear: y,
|
|
@@ -1757,124 +1757,124 @@ function Bt(e, t) {
|
|
|
1757
1757
|
toggleActive: u
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
function _r(
|
|
1761
|
-
const y =
|
|
1762
|
-
function g(
|
|
1763
|
-
return
|
|
1764
|
-
}
|
|
1765
|
-
function h(
|
|
1766
|
-
return
|
|
1767
|
-
}
|
|
1768
|
-
function b(
|
|
1769
|
-
return
|
|
1770
|
-
start:
|
|
1771
|
-
end:
|
|
1760
|
+
function _r(t, e, n, s, i, a, o, d, l) {
|
|
1761
|
+
const y = Le(i), f = Le(i).reverse(), k = p().concat(m());
|
|
1762
|
+
function g(j, L) {
|
|
1763
|
+
return j.reduce((B, $) => B - i[$], L);
|
|
1764
|
+
}
|
|
1765
|
+
function h(j, L) {
|
|
1766
|
+
return j.reduce((B, $) => g(B, L) > 0 ? B.concat([$]) : B, []);
|
|
1767
|
+
}
|
|
1768
|
+
function b(j) {
|
|
1769
|
+
return a.map((L, B) => ({
|
|
1770
|
+
start: L - s[B] + 0.5 + j,
|
|
1771
|
+
end: L + e - 0.5 + j
|
|
1772
1772
|
}));
|
|
1773
1773
|
}
|
|
1774
|
-
function v(
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1777
|
-
const
|
|
1774
|
+
function v(j, L, B) {
|
|
1775
|
+
const $ = b(L);
|
|
1776
|
+
return j.map((N) => {
|
|
1777
|
+
const H = B ? 0 : -n, M = B ? n : 0, R = B ? "end" : "start", D = $[N][R];
|
|
1778
1778
|
return {
|
|
1779
|
-
index:
|
|
1780
|
-
loopPoint:
|
|
1779
|
+
index: N,
|
|
1780
|
+
loopPoint: D,
|
|
1781
1781
|
slideLocation: De(-1),
|
|
1782
|
-
translate:
|
|
1783
|
-
target: () => d.get() >
|
|
1782
|
+
translate: Pt(t, l[N]),
|
|
1783
|
+
target: () => d.get() > D ? H : M
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
function p() {
|
|
1788
|
-
const
|
|
1789
|
-
return v(
|
|
1788
|
+
const j = o[0], L = h(f, j);
|
|
1789
|
+
return v(L, n, !1);
|
|
1790
1790
|
}
|
|
1791
1791
|
function m() {
|
|
1792
|
-
const
|
|
1793
|
-
return v(
|
|
1792
|
+
const j = e - o[0] - 1, L = h(y, j);
|
|
1793
|
+
return v(L, -n, !0);
|
|
1794
1794
|
}
|
|
1795
1795
|
function x() {
|
|
1796
1796
|
return k.every(({
|
|
1797
|
-
index:
|
|
1797
|
+
index: j
|
|
1798
1798
|
}) => {
|
|
1799
|
-
const
|
|
1800
|
-
return g(
|
|
1799
|
+
const L = y.filter((B) => B !== j);
|
|
1800
|
+
return g(L, e) <= 0.1;
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
k.forEach((
|
|
1803
|
+
function _() {
|
|
1804
|
+
k.forEach((j) => {
|
|
1805
1805
|
const {
|
|
1806
|
-
target:
|
|
1807
|
-
translate:
|
|
1808
|
-
slideLocation:
|
|
1809
|
-
} =
|
|
1810
|
-
|
|
1806
|
+
target: L,
|
|
1807
|
+
translate: B,
|
|
1808
|
+
slideLocation: $
|
|
1809
|
+
} = j, N = L();
|
|
1810
|
+
N !== $.get() && (B.to(N), $.set(N));
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1814
|
-
k.forEach((
|
|
1813
|
+
function F() {
|
|
1814
|
+
k.forEach((j) => j.translate.clear());
|
|
1815
1815
|
}
|
|
1816
1816
|
return {
|
|
1817
1817
|
canLoop: x,
|
|
1818
|
-
clear:
|
|
1819
|
-
loop:
|
|
1818
|
+
clear: F,
|
|
1819
|
+
loop: _,
|
|
1820
1820
|
loopPoints: k
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function Er(
|
|
1824
|
-
let
|
|
1825
|
-
function
|
|
1823
|
+
function Er(t, e, n) {
|
|
1824
|
+
let s, i = !1;
|
|
1825
|
+
function a(l) {
|
|
1826
1826
|
if (!n) return;
|
|
1827
1827
|
function u(y) {
|
|
1828
1828
|
for (const f of y)
|
|
1829
1829
|
if (f.type === "childList") {
|
|
1830
|
-
l.reInit(),
|
|
1830
|
+
l.reInit(), e.emit("slidesChanged");
|
|
1831
1831
|
break;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
}),
|
|
1834
|
+
s = new MutationObserver((y) => {
|
|
1835
|
+
i || (Re(n) || n(l, y)) && u(y);
|
|
1836
|
+
}), s.observe(t, {
|
|
1837
1837
|
childList: !0
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
1840
|
function o() {
|
|
1841
|
-
|
|
1841
|
+
s && s.disconnect(), i = !0;
|
|
1842
1842
|
}
|
|
1843
1843
|
return {
|
|
1844
|
-
init:
|
|
1844
|
+
init: a,
|
|
1845
1845
|
destroy: o
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1849
|
-
const
|
|
1850
|
-
let
|
|
1848
|
+
function Br(t, e, n, s) {
|
|
1849
|
+
const i = {};
|
|
1850
|
+
let a = null, o = null, d, l = !1;
|
|
1851
1851
|
function u() {
|
|
1852
1852
|
d = new IntersectionObserver((h) => {
|
|
1853
1853
|
l || (h.forEach((b) => {
|
|
1854
|
-
const v =
|
|
1855
|
-
|
|
1856
|
-
}),
|
|
1854
|
+
const v = e.indexOf(b.target);
|
|
1855
|
+
i[v] = b;
|
|
1856
|
+
}), a = null, o = null, n.emit("slidesInView"));
|
|
1857
1857
|
}, {
|
|
1858
|
-
root:
|
|
1859
|
-
threshold:
|
|
1860
|
-
}),
|
|
1858
|
+
root: t.parentElement,
|
|
1859
|
+
threshold: s
|
|
1860
|
+
}), e.forEach((h) => d.observe(h));
|
|
1861
1861
|
}
|
|
1862
1862
|
function y() {
|
|
1863
1863
|
d && d.disconnect(), l = !0;
|
|
1864
1864
|
}
|
|
1865
1865
|
function f(h) {
|
|
1866
|
-
return
|
|
1866
|
+
return Ae(i).reduce((b, v) => {
|
|
1867
1867
|
const p = parseInt(v), {
|
|
1868
1868
|
isIntersecting: m
|
|
1869
|
-
} =
|
|
1869
|
+
} = i[p];
|
|
1870
1870
|
return (h && m || !h && !m) && b.push(p), b;
|
|
1871
1871
|
}, []);
|
|
1872
1872
|
}
|
|
1873
1873
|
function k(h = !0) {
|
|
1874
|
-
if (h &&
|
|
1874
|
+
if (h && a) return a;
|
|
1875
1875
|
if (!h && o) return o;
|
|
1876
1876
|
const b = f(h);
|
|
1877
|
-
return h && (
|
|
1877
|
+
return h && (a = b), h || (o = b), b;
|
|
1878
1878
|
}
|
|
1879
1879
|
return {
|
|
1880
1880
|
init: u,
|
|
@@ -1882,27 +1882,27 @@ function Nr(e, t, n, r) {
|
|
|
1882
1882
|
get: k
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function Nr(t, e, n, s, i, a) {
|
|
1886
1886
|
const {
|
|
1887
1887
|
measureSize: o,
|
|
1888
1888
|
startEdge: d,
|
|
1889
1889
|
endEdge: l
|
|
1890
|
-
} =
|
|
1890
|
+
} = t, u = n[0] && i, y = h(), f = b(), k = n.map(o), g = v();
|
|
1891
1891
|
function h() {
|
|
1892
1892
|
if (!u) return 0;
|
|
1893
1893
|
const m = n[0];
|
|
1894
|
-
return
|
|
1894
|
+
return K(e[d] - m[d]);
|
|
1895
1895
|
}
|
|
1896
1896
|
function b() {
|
|
1897
1897
|
if (!u) return 0;
|
|
1898
|
-
const m =
|
|
1898
|
+
const m = a.getComputedStyle(ie(s));
|
|
1899
1899
|
return parseFloat(m.getPropertyValue(`margin-${l}`));
|
|
1900
1900
|
}
|
|
1901
1901
|
function v() {
|
|
1902
|
-
return n.map((m, x,
|
|
1903
|
-
const
|
|
1904
|
-
return
|
|
1905
|
-
}).map(
|
|
1902
|
+
return n.map((m, x, _) => {
|
|
1903
|
+
const F = !x, E = tt(_, x);
|
|
1904
|
+
return F ? k[x] + y : E ? k[x] + f : _[x + 1][d] - m[d];
|
|
1905
|
+
}).map(K);
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
1908
1908
|
slideSizes: k,
|
|
@@ -1911,22 +1911,22 @@ function Br(e, t, n, r, a, s) {
|
|
|
1911
1911
|
endGap: f
|
|
1912
1912
|
};
|
|
1913
1913
|
}
|
|
1914
|
-
function Pr(
|
|
1914
|
+
function Pr(t, e, n, s, i, a, o, d, l) {
|
|
1915
1915
|
const {
|
|
1916
1916
|
startEdge: u,
|
|
1917
1917
|
endEdge: y,
|
|
1918
1918
|
direction: f
|
|
1919
|
-
} =
|
|
1919
|
+
} = t, k = Qe(n);
|
|
1920
1920
|
function g(p, m) {
|
|
1921
|
-
return
|
|
1921
|
+
return Le(p).filter((x) => x % m === 0).map((x) => p.slice(x, x + m));
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(p) {
|
|
1924
|
-
return p.length ?
|
|
1925
|
-
const
|
|
1926
|
-
return
|
|
1927
|
-
}, []).map((m, x,
|
|
1928
|
-
const
|
|
1929
|
-
return p.slice(
|
|
1924
|
+
return p.length ? Le(p).reduce((m, x, _) => {
|
|
1925
|
+
const F = ie(m) || 0, E = F === 0, j = x === _e(p), L = i[u] - a[F][u], B = i[u] - a[x][y], $ = !s && E ? f(o) : 0, N = !s && j ? f(d) : 0, H = K(B - N - (L + $));
|
|
1926
|
+
return _ && H > e + l && m.push(x), j && m.push(p.length), m;
|
|
1927
|
+
}, []).map((m, x, _) => {
|
|
1928
|
+
const F = Math.max(_[x - 1] || 0);
|
|
1929
|
+
return p.slice(F, m);
|
|
1930
1930
|
}) : [];
|
|
1931
1931
|
}
|
|
1932
1932
|
function b(p) {
|
|
@@ -1936,7 +1936,7 @@ function Pr(e, t, n, r, a, s, o, d, l) {
|
|
|
1936
1936
|
groupSlides: b
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Mr(t, e, n, s, i, a, o) {
|
|
1940
1940
|
const {
|
|
1941
1941
|
align: d,
|
|
1942
1942
|
axis: l,
|
|
@@ -1951,117 +1951,117 @@ function Rr(e, t, n, r, a, s, o) {
|
|
|
1951
1951
|
skipSnaps: p,
|
|
1952
1952
|
containScroll: m,
|
|
1953
1953
|
watchResize: x,
|
|
1954
|
-
watchSlides:
|
|
1955
|
-
watchDrag:
|
|
1956
|
-
watchFocus:
|
|
1957
|
-
} =
|
|
1958
|
-
slideSizes:
|
|
1954
|
+
watchSlides: _,
|
|
1955
|
+
watchDrag: F,
|
|
1956
|
+
watchFocus: E
|
|
1957
|
+
} = a, j = 2, L = br(), B = L.measure(e), $ = n.map(L.measure), N = fr(l, u), H = N.measureSize(B), M = vr(H), R = gr(d, H), D = !f && !!m, U = f || !!m, {
|
|
1958
|
+
slideSizes: ne,
|
|
1959
1959
|
slideSizesWithGaps: Y,
|
|
1960
|
-
startGap:
|
|
1961
|
-
endGap:
|
|
1962
|
-
} =
|
|
1963
|
-
snaps:
|
|
1964
|
-
snapsAligned:
|
|
1965
|
-
} = Dr(
|
|
1966
|
-
snapsContained:
|
|
1967
|
-
scrollContainLimit:
|
|
1968
|
-
} = Sr(
|
|
1969
|
-
limit:
|
|
1970
|
-
} = wr(
|
|
1960
|
+
startGap: q,
|
|
1961
|
+
endGap: re
|
|
1962
|
+
} = Nr(N, B, $, n, U, i), c = Pr(N, H, v, f, B, $, q, re, j), {
|
|
1963
|
+
snaps: A,
|
|
1964
|
+
snapsAligned: P
|
|
1965
|
+
} = Dr(N, R, B, $, c), z = -ie(A) + ie(Y), {
|
|
1966
|
+
snapsContained: S,
|
|
1967
|
+
scrollContainLimit: I
|
|
1968
|
+
} = Sr(H, z, P, m, j), C = D ? S : P, {
|
|
1969
|
+
limit: W
|
|
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,
|
|
1973
|
-
scrollBounds:
|
|
1973
|
+
scrollBounds: We,
|
|
1974
1974
|
options: {
|
|
1975
1975
|
loop: Ee
|
|
1976
1976
|
}
|
|
1977
1977
|
}) => {
|
|
1978
|
-
Ee ||
|
|
1979
|
-
},
|
|
1978
|
+
Ee || We.constrain(he.pointerDown()), He.seek();
|
|
1979
|
+
}, O = ({
|
|
1980
1980
|
scrollBody: he,
|
|
1981
1981
|
translate: He,
|
|
1982
|
-
location:
|
|
1982
|
+
location: We,
|
|
1983
1983
|
offsetLocation: Ee,
|
|
1984
|
-
previousLocation:
|
|
1985
|
-
scrollLooper:
|
|
1984
|
+
previousLocation: Ot,
|
|
1985
|
+
scrollLooper: $t,
|
|
1986
1986
|
slideLooper: Ht,
|
|
1987
|
-
dragHandler:
|
|
1988
|
-
animation:
|
|
1989
|
-
eventHandler:
|
|
1990
|
-
scrollBounds:
|
|
1987
|
+
dragHandler: Wt,
|
|
1988
|
+
animation: Vt,
|
|
1989
|
+
eventHandler: at,
|
|
1990
|
+
scrollBounds: Gt,
|
|
1991
1991
|
options: {
|
|
1992
|
-
loop:
|
|
1992
|
+
loop: it
|
|
1993
1993
|
}
|
|
1994
|
-
},
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1997
|
-
const
|
|
1998
|
-
Ee.set(
|
|
1999
|
-
},
|
|
2000
|
-
slideRegistry:
|
|
2001
|
-
} = Ir(
|
|
2002
|
-
ownerDocument:
|
|
2003
|
-
ownerWindow:
|
|
1994
|
+
}, lt) => {
|
|
1995
|
+
const dt = he.settled(), Ut = !Gt.shouldConstrain(), ct = it ? dt : dt && Ut, ut = ct && !Wt.pointerDown();
|
|
1996
|
+
ut && Vt.stop();
|
|
1997
|
+
const Kt = We.get() * lt + Ot.get() * (1 - lt);
|
|
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, W, ge), Oe = Ar(G, J, X, xe, ze, ge, o), ot = jr(W), rt = Fe(), Rt = Br(e, n, o, b), {
|
|
2000
|
+
slideRegistry: st
|
|
2001
|
+
} = Ir(D, m, C, I, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, E), $e = {
|
|
2002
|
+
ownerDocument: s,
|
|
2003
|
+
ownerWindow: i,
|
|
2004
2004
|
eventHandler: o,
|
|
2005
|
-
containerRect:
|
|
2006
|
-
slideRects:
|
|
2007
|
-
animation:
|
|
2008
|
-
axis:
|
|
2009
|
-
dragHandler: hr(
|
|
2010
|
-
eventStore:
|
|
2011
|
-
percentOfView:
|
|
2012
|
-
index:
|
|
2013
|
-
indexPrevious:
|
|
2014
|
-
limit:
|
|
2015
|
-
location:
|
|
2016
|
-
offsetLocation:
|
|
2005
|
+
containerRect: B,
|
|
2006
|
+
slideRects: $,
|
|
2007
|
+
animation: G,
|
|
2008
|
+
axis: N,
|
|
2009
|
+
dragHandler: hr(N, t, s, i, ge, kr(N, i), de, G, Oe, xe, ze, J, o, M, g, h, p, Z, F),
|
|
2010
|
+
eventStore: rt,
|
|
2011
|
+
percentOfView: M,
|
|
2012
|
+
index: J,
|
|
2013
|
+
indexPrevious: X,
|
|
2014
|
+
limit: W,
|
|
2015
|
+
location: de,
|
|
2016
|
+
offsetLocation: ce,
|
|
2017
2017
|
previousLocation: me,
|
|
2018
|
-
options:
|
|
2019
|
-
resizeHandler: yr(
|
|
2018
|
+
options: a,
|
|
2019
|
+
resizeHandler: yr(e, o, i, n, N, x, L),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds: Tr(
|
|
2022
|
-
scrollLooper: Cr(
|
|
2023
|
-
scrollProgress:
|
|
2024
|
-
scrollSnapList:
|
|
2025
|
-
scrollSnaps:
|
|
2026
|
-
scrollTarget:
|
|
2027
|
-
scrollTo:
|
|
2028
|
-
slideLooper: _r(
|
|
2029
|
-
slideFocus:
|
|
2030
|
-
slidesHandler: Er(
|
|
2021
|
+
scrollBounds: Tr(W, ce, ge, xe, M),
|
|
2022
|
+
scrollLooper: Cr(z, W, ce, [de, ce, me, ge]),
|
|
2023
|
+
scrollProgress: ot,
|
|
2024
|
+
scrollSnapList: C.map(ot.get),
|
|
2025
|
+
scrollSnaps: C,
|
|
2026
|
+
scrollTarget: ze,
|
|
2027
|
+
scrollTo: Oe,
|
|
2028
|
+
slideLooper: _r(N, H, z, ne, Y, A, C, ce, n),
|
|
2029
|
+
slideFocus: zt,
|
|
2030
|
+
slidesHandler: Er(e, o, _),
|
|
2031
2031
|
slidesInView: Rt,
|
|
2032
|
-
slideIndexes:
|
|
2033
|
-
slideRegistry:
|
|
2032
|
+
slideIndexes: V,
|
|
2033
|
+
slideRegistry: st,
|
|
2034
2034
|
slidesToScroll: c,
|
|
2035
2035
|
target: ge,
|
|
2036
|
-
translate:
|
|
2036
|
+
translate: Pt(N, e)
|
|
2037
2037
|
};
|
|
2038
|
-
return
|
|
2038
|
+
return $e;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2041
|
-
let
|
|
2040
|
+
function Rr() {
|
|
2041
|
+
let t = {}, e;
|
|
2042
2042
|
function n(u) {
|
|
2043
|
-
|
|
2043
|
+
e = u;
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2046
|
-
return
|
|
2045
|
+
function s(u) {
|
|
2046
|
+
return t[u] || [];
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2049
|
-
return
|
|
2048
|
+
function i(u) {
|
|
2049
|
+
return s(u).forEach((y) => y(e, u)), l;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
2051
|
+
function a(u, y) {
|
|
2052
|
+
return t[u] = s(u).concat([y]), l;
|
|
2053
2053
|
}
|
|
2054
2054
|
function o(u, y) {
|
|
2055
|
-
return
|
|
2055
|
+
return t[u] = s(u).filter((f) => f !== y), l;
|
|
2056
2056
|
}
|
|
2057
2057
|
function d() {
|
|
2058
|
-
|
|
2058
|
+
t = {};
|
|
2059
2059
|
}
|
|
2060
2060
|
const l = {
|
|
2061
2061
|
init: n,
|
|
2062
|
-
emit:
|
|
2062
|
+
emit: i,
|
|
2063
2063
|
off: o,
|
|
2064
|
-
on:
|
|
2064
|
+
on: a,
|
|
2065
2065
|
clear: d
|
|
2066
2066
|
};
|
|
2067
2067
|
return l;
|
|
@@ -2088,189 +2088,189 @@ const zr = {
|
|
|
2088
2088
|
watchSlides: !0,
|
|
2089
2089
|
watchFocus: !0
|
|
2090
2090
|
};
|
|
2091
|
-
function Or(
|
|
2092
|
-
function
|
|
2093
|
-
return
|
|
2091
|
+
function Or(t) {
|
|
2092
|
+
function e(a, o) {
|
|
2093
|
+
return Bt(a, o || {});
|
|
2094
2094
|
}
|
|
2095
|
-
function n(
|
|
2096
|
-
const o =
|
|
2097
|
-
return
|
|
2095
|
+
function n(a) {
|
|
2096
|
+
const o = a.breakpoints || {}, d = Ae(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, u) => e(l, u), {});
|
|
2097
|
+
return e(a, d);
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2100
|
-
return
|
|
2099
|
+
function s(a) {
|
|
2100
|
+
return a.map((o) => Ae(o.breakpoints || {})).reduce((o, d) => o.concat(d), []).map(t.matchMedia);
|
|
2101
2101
|
}
|
|
2102
2102
|
return {
|
|
2103
|
-
mergeOptions:
|
|
2103
|
+
mergeOptions: e,
|
|
2104
2104
|
optionsAtMedia: n,
|
|
2105
|
-
optionsMediaQueries:
|
|
2105
|
+
optionsMediaQueries: s
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2109
|
-
let
|
|
2110
|
-
function n(
|
|
2111
|
-
return
|
|
2108
|
+
function $r(t) {
|
|
2109
|
+
let e = [];
|
|
2110
|
+
function n(a, o) {
|
|
2111
|
+
return e = o.filter(({
|
|
2112
2112
|
options: d
|
|
2113
|
-
}) =>
|
|
2113
|
+
}) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), o.reduce((d, l) => Object.assign(d, {
|
|
2114
2114
|
[l.name]: l
|
|
2115
2115
|
}), {});
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2118
|
-
|
|
2117
|
+
function s() {
|
|
2118
|
+
e = e.filter((a) => a.destroy());
|
|
2119
2119
|
}
|
|
2120
2120
|
return {
|
|
2121
2121
|
init: n,
|
|
2122
|
-
destroy:
|
|
2122
|
+
destroy: s
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const
|
|
2125
|
+
function Me(t, e, n) {
|
|
2126
|
+
const s = t.ownerDocument, i = s.defaultView, a = Or(i), o = $r(a), d = Fe(), l = Rr(), {
|
|
2127
2127
|
mergeOptions: u,
|
|
2128
2128
|
optionsAtMedia: y,
|
|
2129
2129
|
optionsMediaQueries: f
|
|
2130
|
-
} =
|
|
2130
|
+
} = a, {
|
|
2131
2131
|
on: k,
|
|
2132
2132
|
off: g,
|
|
2133
2133
|
emit: h
|
|
2134
|
-
} = l, b =
|
|
2135
|
-
let v = !1, p, m = u(zr,
|
|
2136
|
-
function
|
|
2134
|
+
} = l, b = N;
|
|
2135
|
+
let v = !1, p, m = u(zr, Me.globalOptions), x = u(m), _ = [], F, E, j;
|
|
2136
|
+
function L() {
|
|
2137
2137
|
const {
|
|
2138
|
-
container:
|
|
2139
|
-
slides:
|
|
2138
|
+
container: V,
|
|
2139
|
+
slides: w
|
|
2140
2140
|
} = x;
|
|
2141
|
-
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2144
|
-
}
|
|
2145
|
-
function
|
|
2146
|
-
const
|
|
2147
|
-
if (
|
|
2148
|
-
const
|
|
2141
|
+
E = (Ye(V) ? t.querySelector(V) : V) || t.children[0];
|
|
2142
|
+
const G = Ye(w) ? E.querySelectorAll(w) : w;
|
|
2143
|
+
j = [].slice.call(G || E.children);
|
|
2144
|
+
}
|
|
2145
|
+
function B(V) {
|
|
2146
|
+
const w = Mr(t, E, j, s, i, V, l);
|
|
2147
|
+
if (V.loop && !w.slideLooper.canLoop()) {
|
|
2148
|
+
const O = Object.assign({}, V, {
|
|
2149
2149
|
loop: !1
|
|
2150
2150
|
});
|
|
2151
|
-
return
|
|
2151
|
+
return B(O);
|
|
2152
2152
|
}
|
|
2153
|
-
return
|
|
2153
|
+
return w;
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2156
|
-
v || (m = u(m,
|
|
2157
|
-
options:
|
|
2158
|
-
}) =>
|
|
2155
|
+
function $(V, w) {
|
|
2156
|
+
v || (m = u(m, V), x = y(m), _ = w || _, L(), p = B(x), f([m, ..._.map(({
|
|
2157
|
+
options: O
|
|
2158
|
+
}) => O)]).forEach((O) => d.add(O, "change", N)), x.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), E.offsetParent && j.length && p.dragHandler.init(X), F = o.init(X, _)));
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
startIndex:
|
|
2164
|
-
},
|
|
2160
|
+
function N(V, w) {
|
|
2161
|
+
const O = c();
|
|
2162
|
+
H(), $(u({
|
|
2163
|
+
startIndex: O
|
|
2164
|
+
}, V), w), l.emit("reInit");
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function H() {
|
|
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
|
|
2170
|
-
v || (v = !0, d.clear(),
|
|
2169
|
+
function M() {
|
|
2170
|
+
v || (v = !0, d.clear(), H(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
|
-
function R(
|
|
2173
|
-
!x.active || v || (p.scrollBody.useBaseFriction().useDuration(
|
|
2172
|
+
function R(V, w, O) {
|
|
2173
|
+
!x.active || v || (p.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : x.duration), p.scrollTo.index(V, O || 0));
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2176
|
-
const
|
|
2177
|
-
R(
|
|
2175
|
+
function D(V) {
|
|
2176
|
+
const w = p.index.add(1).get();
|
|
2177
|
+
R(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const
|
|
2181
|
-
R(
|
|
2179
|
+
function U(V) {
|
|
2180
|
+
const w = p.index.add(-1).get();
|
|
2181
|
+
R(w, V, 1);
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function ne() {
|
|
2184
2184
|
return p.index.add(1).get() !== c();
|
|
2185
2185
|
}
|
|
2186
2186
|
function Y() {
|
|
2187
2187
|
return p.index.add(-1).get() !== c();
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function q() {
|
|
2190
2190
|
return p.scrollSnapList;
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function re() {
|
|
2193
2193
|
return p.scrollProgress.get(p.offsetLocation.get());
|
|
2194
2194
|
}
|
|
2195
2195
|
function c() {
|
|
2196
2196
|
return p.index.get();
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2198
|
+
function A() {
|
|
2199
2199
|
return p.indexPrevious.get();
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function P() {
|
|
2202
2202
|
return p.slidesInView.get();
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function z() {
|
|
2205
2205
|
return p.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return
|
|
2207
|
+
function S() {
|
|
2208
|
+
return F;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function I() {
|
|
2211
2211
|
return p;
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2214
|
-
return
|
|
2213
|
+
function C() {
|
|
2214
|
+
return t;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
2216
|
+
function W() {
|
|
2217
|
+
return E;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2220
|
-
return
|
|
2219
|
+
function J() {
|
|
2220
|
+
return j;
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2223
|
-
canScrollNext:
|
|
2222
|
+
const X = {
|
|
2223
|
+
canScrollNext: ne,
|
|
2224
2224
|
canScrollPrev: Y,
|
|
2225
|
-
containerNode:
|
|
2226
|
-
internalEngine:
|
|
2227
|
-
destroy:
|
|
2225
|
+
containerNode: W,
|
|
2226
|
+
internalEngine: I,
|
|
2227
|
+
destroy: M,
|
|
2228
2228
|
off: g,
|
|
2229
2229
|
on: k,
|
|
2230
2230
|
emit: h,
|
|
2231
|
-
plugins:
|
|
2232
|
-
previousScrollSnap:
|
|
2231
|
+
plugins: S,
|
|
2232
|
+
previousScrollSnap: A,
|
|
2233
2233
|
reInit: b,
|
|
2234
|
-
rootNode:
|
|
2235
|
-
scrollNext:
|
|
2236
|
-
scrollPrev:
|
|
2237
|
-
scrollProgress:
|
|
2238
|
-
scrollSnapList:
|
|
2234
|
+
rootNode: C,
|
|
2235
|
+
scrollNext: D,
|
|
2236
|
+
scrollPrev: U,
|
|
2237
|
+
scrollProgress: re,
|
|
2238
|
+
scrollSnapList: q,
|
|
2239
2239
|
scrollTo: R,
|
|
2240
2240
|
selectedScrollSnap: c,
|
|
2241
|
-
slideNodes:
|
|
2242
|
-
slidesInView:
|
|
2243
|
-
slidesNotInView:
|
|
2241
|
+
slideNodes: J,
|
|
2242
|
+
slidesInView: P,
|
|
2243
|
+
slidesNotInView: z
|
|
2244
2244
|
};
|
|
2245
|
-
return
|
|
2245
|
+
return $(e, n), setTimeout(() => l.emit("init"), 0), X;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2248
|
-
function
|
|
2249
|
-
const n =
|
|
2250
|
-
|
|
2251
|
-
}, [
|
|
2252
|
-
return
|
|
2253
|
-
|
|
2254
|
-
}, [
|
|
2255
|
-
cr(
|
|
2256
|
-
}, [
|
|
2247
|
+
Me.globalOptions = void 0;
|
|
2248
|
+
function nt(t = {}, e = []) {
|
|
2249
|
+
const n = Ke(t), s = Ke(e), [i, a] = oe(), [o, d] = oe(), l = ae(() => {
|
|
2250
|
+
i && i.reInit(n.current, s.current);
|
|
2251
|
+
}, [i]);
|
|
2252
|
+
return te(() => {
|
|
2253
|
+
Xe(n.current, t) || (n.current = t, l());
|
|
2254
|
+
}, [t, l]), te(() => {
|
|
2255
|
+
cr(s.current, e) || (s.current = e, l());
|
|
2256
|
+
}, [e, l]), te(() => {
|
|
2257
2257
|
if (dr() && o) {
|
|
2258
|
-
|
|
2259
|
-
const u =
|
|
2260
|
-
return
|
|
2258
|
+
Me.globalOptions = nt.globalOptions;
|
|
2259
|
+
const u = Me(o, n.current, s.current);
|
|
2260
|
+
return a(u), () => u.destroy();
|
|
2261
2261
|
} else
|
|
2262
|
-
|
|
2263
|
-
}, [o,
|
|
2262
|
+
a(void 0);
|
|
2263
|
+
}, [o, a]), [d, i];
|
|
2264
2264
|
}
|
|
2265
|
-
|
|
2266
|
-
const
|
|
2267
|
-
carouselContainer:
|
|
2265
|
+
nt.globalOptions = void 0;
|
|
2266
|
+
const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Ur = "_slideInner_1bu1s_37", Kr = "_loaderOverlay_1bu1s_45", qr = "_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
|
+
carouselContainer: Hr,
|
|
2268
2268
|
viewport: Wr,
|
|
2269
2269
|
slides: Vr,
|
|
2270
2270
|
slide: Gr,
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
2271
|
+
slideInner: Ur,
|
|
2272
|
+
loaderOverlay: Kr,
|
|
2273
|
+
image: qr,
|
|
2274
2274
|
loaded: Yr,
|
|
2275
2275
|
empty: Jr,
|
|
2276
2276
|
controls: Zr,
|
|
@@ -2278,13 +2278,13 @@ const $r = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2278
2278
|
dots: Qr,
|
|
2279
2279
|
dot: es,
|
|
2280
2280
|
dotActive: ts
|
|
2281
|
-
}, ns =
|
|
2282
|
-
images:
|
|
2283
|
-
autoPlay:
|
|
2281
|
+
}, ns = cn, os = ({
|
|
2282
|
+
images: t,
|
|
2283
|
+
autoPlay: e = !1,
|
|
2284
2284
|
autoDelay: n = 5,
|
|
2285
|
-
showArrows:
|
|
2286
|
-
showDots:
|
|
2287
|
-
variant:
|
|
2285
|
+
showArrows: s = !0,
|
|
2286
|
+
showDots: i = !0,
|
|
2287
|
+
variant: a,
|
|
2288
2288
|
slidesPerView: o = 1,
|
|
2289
2289
|
slideSpacing: d = 16,
|
|
2290
2290
|
cornerRadius: l = 0,
|
|
@@ -2296,120 +2296,120 @@ const $r = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2296
2296
|
align: "start",
|
|
2297
2297
|
containScroll: "trimSnaps",
|
|
2298
2298
|
slidesToScroll: 1
|
|
2299
|
-
}, [k, g] =
|
|
2300
|
-
|
|
2301
|
-
x(new Array((
|
|
2302
|
-
}, [
|
|
2303
|
-
const
|
|
2299
|
+
}, [k, g] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [m, x] = oe([]);
|
|
2300
|
+
te(() => {
|
|
2301
|
+
x(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
|
+
}, [t]);
|
|
2303
|
+
const _ = ae((M) => {
|
|
2304
2304
|
x((R) => {
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2305
|
+
const D = [...R];
|
|
2306
|
+
return D[M] = !0, D;
|
|
2307
2307
|
});
|
|
2308
|
-
}, []),
|
|
2308
|
+
}, []), F = ve(() => n * 1e3, [n]), E = ae(() => {
|
|
2309
2309
|
g && b(g.selectedScrollSnap());
|
|
2310
|
-
}, [g]),
|
|
2311
|
-
|
|
2310
|
+
}, [g]), j = ae((M) => g && g.scrollTo(M), [g]), L = ae(() => g && g.scrollPrev(), [g]), B = ae(() => g && g.scrollNext(), [g]);
|
|
2311
|
+
te(() => {
|
|
2312
2312
|
if (g)
|
|
2313
|
-
return g.on("select",
|
|
2314
|
-
g.off("select",
|
|
2313
|
+
return g.on("select", E), g.on("reInit", E), p(g.scrollSnapList()), () => {
|
|
2314
|
+
g.off("select", E), g.off("reInit", E);
|
|
2315
2315
|
};
|
|
2316
|
-
}, [g,
|
|
2316
|
+
}, [g, E]), te(() => {
|
|
2317
2317
|
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2318
|
-
}, [g,
|
|
2319
|
-
if (!
|
|
2320
|
-
const
|
|
2318
|
+
}, [g, t, o, d]), te(() => {
|
|
2319
|
+
if (!e || !g || !t || t.length <= 1) return;
|
|
2320
|
+
const M = window.setInterval(() => {
|
|
2321
2321
|
g.canScrollNext() && g.scrollNext();
|
|
2322
|
-
},
|
|
2322
|
+
}, F);
|
|
2323
2323
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2324
|
+
window.clearInterval(M);
|
|
2325
2325
|
};
|
|
2326
|
-
}, [
|
|
2327
|
-
const
|
|
2328
|
-
return /* @__PURE__ */
|
|
2326
|
+
}, [e, F, g, t]);
|
|
2327
|
+
const $ = Math.max(1, o), N = `${100 / $}%`, H = d / 2;
|
|
2328
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2329
2329
|
"div",
|
|
2330
2330
|
{
|
|
2331
|
-
className:
|
|
2331
|
+
className: Q.carouselContainer,
|
|
2332
2332
|
"data-color": u,
|
|
2333
2333
|
"data-size": y,
|
|
2334
|
-
"data-variant":
|
|
2334
|
+
"data-variant": a,
|
|
2335
2335
|
children: [
|
|
2336
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ r.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ r.jsx(
|
|
2337
2337
|
"div",
|
|
2338
2338
|
{
|
|
2339
|
-
className:
|
|
2339
|
+
className: Q.slides,
|
|
2340
2340
|
style: {
|
|
2341
|
-
marginLeft: `-${
|
|
2342
|
-
marginRight: `-${
|
|
2341
|
+
marginLeft: `-${H}px`,
|
|
2342
|
+
marginRight: `-${H}px`
|
|
2343
2343
|
},
|
|
2344
|
-
children:
|
|
2344
|
+
children: t && t.length > 0 ? t.map((M, R) => /* @__PURE__ */ r.jsx(
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
|
-
className:
|
|
2347
|
+
className: Q.slide,
|
|
2348
2348
|
style: {
|
|
2349
|
-
flex: `0 0 ${
|
|
2350
|
-
paddingLeft: `${
|
|
2351
|
-
paddingRight: `${
|
|
2349
|
+
flex: `0 0 ${N}`,
|
|
2350
|
+
paddingLeft: `${H}px`,
|
|
2351
|
+
paddingRight: `${H}px`,
|
|
2352
2352
|
borderRadius: l > 0 ? `${l}px` : void 0,
|
|
2353
2353
|
overflow: "hidden"
|
|
2354
2354
|
// Ensure radius clips content
|
|
2355
2355
|
},
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2357
|
-
!m[R] && /* @__PURE__ */
|
|
2358
|
-
/* @__PURE__ */
|
|
2356
|
+
children: /* @__PURE__ */ r.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2357
|
+
!m[R] && /* @__PURE__ */ r.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ r.jsx(ns, { "aria-label": "Laster bilde" }) }),
|
|
2358
|
+
/* @__PURE__ */ r.jsx(
|
|
2359
2359
|
"img",
|
|
2360
2360
|
{
|
|
2361
|
-
className: `${
|
|
2362
|
-
src:
|
|
2363
|
-
alt:
|
|
2364
|
-
loading: R <
|
|
2361
|
+
className: `${Q.image} ${m[R] ? Q.loaded : Q.loadingImage}`,
|
|
2362
|
+
src: M.src,
|
|
2363
|
+
alt: M.alt,
|
|
2364
|
+
loading: R < $ ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () =>
|
|
2367
|
-
onError: (
|
|
2368
|
-
|
|
2366
|
+
onLoad: () => _(R),
|
|
2367
|
+
onError: (D) => {
|
|
2368
|
+
D.target.style.display = "none", _(R);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
2372
2372
|
] })
|
|
2373
2373
|
},
|
|
2374
|
-
`image-${R}-${
|
|
2375
|
-
)) : /* @__PURE__ */
|
|
2374
|
+
`image-${R}-${M.src}`
|
|
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
|
) }),
|
|
2378
|
-
(
|
|
2379
|
-
|
|
2380
|
-
/* @__PURE__ */
|
|
2378
|
+
(s || i && t && t.length > 1) && /* @__PURE__ */ r.jsxs("div", { className: Q.controls, "aria-hidden": "false", children: [
|
|
2379
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: Q.arrows, children: [
|
|
2380
|
+
/* @__PURE__ */ r.jsx(
|
|
2381
2381
|
ye,
|
|
2382
2382
|
{
|
|
2383
2383
|
variant: "primary",
|
|
2384
2384
|
icon: !0,
|
|
2385
2385
|
"aria-label": "Forrige bilde",
|
|
2386
|
-
onClick:
|
|
2387
|
-
disabled: !
|
|
2388
|
-
children: /* @__PURE__ */
|
|
2386
|
+
onClick: L,
|
|
2387
|
+
disabled: !t || t.length <= 1,
|
|
2388
|
+
children: /* @__PURE__ */ r.jsx(Xn, { "aria-hidden": !0 })
|
|
2389
2389
|
}
|
|
2390
2390
|
),
|
|
2391
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ r.jsx(
|
|
2392
2392
|
ye,
|
|
2393
2393
|
{
|
|
2394
2394
|
variant: "primary",
|
|
2395
2395
|
icon: !0,
|
|
2396
2396
|
"aria-label": "Neste bilde",
|
|
2397
|
-
onClick:
|
|
2398
|
-
disabled: !
|
|
2399
|
-
children: /* @__PURE__ */
|
|
2397
|
+
onClick: B,
|
|
2398
|
+
disabled: !t || t.length <= 1,
|
|
2399
|
+
children: /* @__PURE__ */ r.jsx(Qn, { "aria-hidden": !0 })
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
|
-
|
|
2404
|
-
const
|
|
2405
|
-
return /* @__PURE__ */
|
|
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 D = R === h;
|
|
2405
|
+
return /* @__PURE__ */ r.jsx(
|
|
2406
2406
|
"button",
|
|
2407
2407
|
{
|
|
2408
2408
|
type: "button",
|
|
2409
|
-
className: `${
|
|
2410
|
-
onClick: () =>
|
|
2409
|
+
className: `${Q.dot} ${D ? Q.dotActive : ""}`,
|
|
2410
|
+
onClick: () => j(R),
|
|
2411
2411
|
"aria-label": `Gå til bilde ${R + 1}`,
|
|
2412
|
-
"aria-selected":
|
|
2412
|
+
"aria-selected": D,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
2415
|
`dot-${R}`
|
|
@@ -2421,24 +2421,24 @@ const $r = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
2423
|
os.displayName = "Carousel";
|
|
2424
|
-
const
|
|
2424
|
+
const Ca = un, ja = mn, Da = gn, ee = pn, Ia = fn, La = hn, rs = kn, ss = bn;
|
|
2425
2425
|
rs.displayName = "Field.Description";
|
|
2426
2426
|
ss.displayName = "Field.Counter";
|
|
2427
|
-
const
|
|
2427
|
+
const Aa = It, as = ue((t, e) => /* @__PURE__ */ r.jsx(vn, { ref: e, ...t }));
|
|
2428
2428
|
as.displayName = "Heading";
|
|
2429
|
-
const
|
|
2429
|
+
const Fa = yn, is = ue((t, e) => /* @__PURE__ */ r.jsx(xn, { ref: e, ...t }));
|
|
2430
2430
|
is.displayName = "Label";
|
|
2431
|
-
const
|
|
2432
|
-
(
|
|
2431
|
+
const Ne = Tn, _a = Sn, Ea = wn, Ba = Cn, Ze = ue(
|
|
2432
|
+
(t, e) => /* @__PURE__ */ r.jsx(jn, { ref: e, ...t })
|
|
2433
2433
|
);
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
Button:
|
|
2437
|
-
ClearButton:
|
|
2438
|
-
Input:
|
|
2439
|
-
}),
|
|
2434
|
+
Ze.displayName = "Paragraph";
|
|
2435
|
+
const Na = Dn, Pa = In, Ma = Ln, Pe = Object.assign(An, {
|
|
2436
|
+
Button: En,
|
|
2437
|
+
ClearButton: _n,
|
|
2438
|
+
Input: Fn
|
|
2439
|
+
}), Ra = Bn, za = Nn, Oa = Pn, ls = Mn;
|
|
2440
2440
|
ls.displayName = "Suggestion";
|
|
2441
|
-
const
|
|
2441
|
+
const Ue = Rn, $a = zn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, Ua = Vn, Ka = Gn, ds = ue((t, e) => /* @__PURE__ */ r.jsx(Un, { ref: e, ...t }));
|
|
2442
2442
|
ds.displayName = "ValidationMessage";
|
|
2443
2443
|
const cs = {
|
|
2444
2444
|
NO: {
|
|
@@ -3968,74 +3968,78 @@ const cs = {
|
|
|
3968
3968
|
// Footer
|
|
3969
3969
|
footer: {}
|
|
3970
3970
|
}
|
|
3971
|
-
},
|
|
3972
|
-
const [
|
|
3973
|
-
const
|
|
3974
|
-
let o = cs[
|
|
3975
|
-
for (const d of
|
|
3971
|
+
}, Mt = qt(void 0), qa = ({ children: t }) => {
|
|
3972
|
+
const [e, n] = oe("NO"), s = (i) => {
|
|
3973
|
+
const a = i.split(".");
|
|
3974
|
+
let o = cs[e];
|
|
3975
|
+
for (const d of a) {
|
|
3976
3976
|
if (o[d] === void 0)
|
|
3977
|
-
return console.warn(`Translation missing for key: ${
|
|
3977
|
+
return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
|
|
3978
3978
|
o = o[d];
|
|
3979
3979
|
}
|
|
3980
3980
|
return o;
|
|
3981
3981
|
};
|
|
3982
|
-
return /* @__PURE__ */
|
|
3982
|
+
return /* @__PURE__ */ r.jsx(Mt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
3983
3983
|
}, us = () => {
|
|
3984
|
-
const
|
|
3985
|
-
if (
|
|
3984
|
+
const t = Yt(Mt);
|
|
3985
|
+
if (t === void 0)
|
|
3986
3986
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
3987
|
-
return
|
|
3988
|
-
}, ms = "
|
|
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", T = {
|
|
3989
3989
|
header: ms,
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
3990
|
+
languageSwitch: gs,
|
|
3991
|
+
searchOverlay: ps,
|
|
3992
|
+
headerExtension: fs,
|
|
3993
|
+
extensionContentWrapper: hs,
|
|
3994
|
+
extensionContent: ks,
|
|
3995
|
+
extensionDivider: bs,
|
|
3996
|
+
languageLabel: vs,
|
|
3997
|
+
languageLink: ys,
|
|
3998
|
+
headerInner: xs,
|
|
3999
|
+
logoWrapper: Ts,
|
|
4000
|
+
logo: Ss,
|
|
4001
|
+
secondaryLogoWrapper: ws,
|
|
4002
|
+
slotComponent: Cs,
|
|
4003
|
+
slotContainer: js,
|
|
4004
|
+
slotText: Ds,
|
|
4005
|
+
secondaryLogo: Is,
|
|
4006
|
+
redCrossLogo: Ls,
|
|
4007
|
+
primaryLogo: As,
|
|
4008
|
+
navItems: Fs,
|
|
4009
|
+
navLink: _s,
|
|
4010
|
+
actions: Es,
|
|
4011
|
+
ctaButton: Bs,
|
|
4012
|
+
themeToggle: Ns,
|
|
4013
|
+
userInfo: Ps,
|
|
4014
|
+
userName: Ms,
|
|
4015
|
+
loginLink: Rs,
|
|
4016
|
+
loginText: zs,
|
|
4017
|
+
underline: Os,
|
|
4018
|
+
searchButtonWrapper: $s,
|
|
4019
|
+
buttonText: Hs,
|
|
4020
|
+
menuButton: Ws,
|
|
4021
|
+
menuOverlay: Vs,
|
|
4022
|
+
searchContent: Gs,
|
|
4023
|
+
menuContent: Us,
|
|
4024
|
+
menuLeftColumn: Ks,
|
|
4025
|
+
menuRightColumn: qs,
|
|
4026
|
+
slotContent: Ys,
|
|
4027
|
+
navList: Js,
|
|
4028
|
+
menuUtilities: Zs,
|
|
4029
|
+
menuBrand: Xs,
|
|
4030
|
+
suggestionsSection: Qs,
|
|
4031
|
+
suggestionsTitle: ea,
|
|
4032
|
+
searchResults: ta,
|
|
4033
|
+
resultList: na,
|
|
4034
|
+
resultItem: oa,
|
|
4035
|
+
resultLink: ra,
|
|
4036
|
+
suggestionIcon: sa,
|
|
4037
|
+
suggestionText: aa,
|
|
4038
|
+
highlightedText: ia,
|
|
4039
|
+
remainingText: la,
|
|
4040
|
+
viewAllLink: da,
|
|
4041
|
+
noResults: ca
|
|
4042
|
+
}, ua = [
|
|
4039
4043
|
// Pages
|
|
4040
4044
|
{ id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
|
|
4041
4045
|
{ id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
|
|
@@ -4098,16 +4102,16 @@ const cs = {
|
|
|
4098
4102
|
{ id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
|
|
4099
4103
|
{ id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
|
|
4100
4104
|
{ id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
|
|
4101
|
-
],
|
|
4102
|
-
activePage:
|
|
4103
|
-
setPage:
|
|
4105
|
+
], Ya = ({
|
|
4106
|
+
activePage: t,
|
|
4107
|
+
setPage: e,
|
|
4104
4108
|
children: n,
|
|
4105
|
-
showUser:
|
|
4106
|
-
showSearch:
|
|
4107
|
-
showLogin:
|
|
4109
|
+
showUser: s = !0,
|
|
4110
|
+
showSearch: i = !0,
|
|
4111
|
+
showLogin: a = !0,
|
|
4108
4112
|
showCta: o = !1,
|
|
4109
4113
|
ctaLabel: d,
|
|
4110
|
-
ctaIcon: l = /* @__PURE__ */
|
|
4114
|
+
ctaIcon: l = /* @__PURE__ */ r.jsx(to, { "aria-hidden": !0 }),
|
|
4111
4115
|
onCtaClick: u,
|
|
4112
4116
|
showThemeToggle: y = !1,
|
|
4113
4117
|
secondaryLogo: f = !1,
|
|
@@ -4119,16 +4123,16 @@ const cs = {
|
|
|
4119
4123
|
showMenuButton: p = !0,
|
|
4120
4124
|
showHeaderExtension: m = !1,
|
|
4121
4125
|
showModeToggle: x = !1,
|
|
4122
|
-
showLanguageSwitch:
|
|
4126
|
+
showLanguageSwitch: _ = !1
|
|
4123
4127
|
}) => {
|
|
4124
|
-
const [
|
|
4125
|
-
|
|
4128
|
+
const [F, E] = oe(!1), [j, L] = oe(!1), [B, $] = oe(""), [N, H] = oe("light"), { language: M, setLanguage: R, t: D } = us(), [U, ne] = oe(!1);
|
|
4129
|
+
te(() => {
|
|
4126
4130
|
const S = "rk-header-inline-styles";
|
|
4127
4131
|
if (typeof document > "u" || document.getElementById(S)) return;
|
|
4128
|
-
const
|
|
4129
|
-
|
|
4132
|
+
const I = ma(T), C = document.createElement("style");
|
|
4133
|
+
C.id = S, C.textContent = I, document.head.appendChild(C);
|
|
4130
4134
|
}, []);
|
|
4131
|
-
const
|
|
4135
|
+
const Y = () => /* @__PURE__ */ r.jsxs(
|
|
4132
4136
|
"svg",
|
|
4133
4137
|
{
|
|
4134
4138
|
width: "170",
|
|
@@ -4138,253 +4142,368 @@ const cs = {
|
|
|
4138
4142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4139
4143
|
"aria-hidden": !0,
|
|
4140
4144
|
focusable: "false",
|
|
4141
|
-
className:
|
|
4145
|
+
className: T.redCrossLogo,
|
|
4142
4146
|
children: [
|
|
4143
|
-
/* @__PURE__ */
|
|
4144
|
-
/* @__PURE__ */
|
|
4145
|
-
/* @__PURE__ */
|
|
4146
|
-
/* @__PURE__ */
|
|
4147
|
-
/* @__PURE__ */
|
|
4148
|
-
/* @__PURE__ */
|
|
4149
|
-
/* @__PURE__ */
|
|
4150
|
-
/* @__PURE__ */
|
|
4151
|
-
/* @__PURE__ */
|
|
4152
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__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" }),
|
|
4149
|
+
/* @__PURE__ */ r.jsx("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
|
|
4150
|
+
/* @__PURE__ */ r.jsx("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
|
|
4151
|
+
/* @__PURE__ */ r.jsx("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
|
|
4152
|
+
/* @__PURE__ */ r.jsx("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
|
|
4153
|
+
/* @__PURE__ */ r.jsx("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
|
|
4154
|
+
/* @__PURE__ */ r.jsx("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
|
|
4155
|
+
/* @__PURE__ */ r.jsx("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4156
|
+
/* @__PURE__ */ r.jsx("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4153
4157
|
]
|
|
4154
4158
|
}
|
|
4155
4159
|
);
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
}, [
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4160
|
+
te(() => {
|
|
4161
|
+
E(!1), L(!1), $("");
|
|
4162
|
+
}, [t]), te(() => {
|
|
4163
|
+
if (!(typeof document > "u") && F && U) {
|
|
4164
|
+
const S = document.body.style.overflow;
|
|
4165
|
+
return document.body.style.overflow = "hidden", () => {
|
|
4166
|
+
document.body.style.overflow = S;
|
|
4167
|
+
};
|
|
4168
|
+
}
|
|
4169
|
+
}, [F, U]), te(() => {
|
|
4170
|
+
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4171
|
+
const S = window.matchMedia("(max-width: 850px)"), I = (C) => ne("matches" in C ? C.matches : S.matches);
|
|
4172
|
+
return I(S), S.addEventListener ? S.addEventListener("change", I) : S.addListener(I), () => {
|
|
4173
|
+
S.removeEventListener ? S.removeEventListener("change", I) : S.removeListener(I);
|
|
4174
|
+
};
|
|
4175
|
+
}, []), te(() => {
|
|
4176
|
+
if (typeof document > "u") return;
|
|
4177
|
+
const S = document.querySelector(`.${T.header}`);
|
|
4178
|
+
if (!S) return;
|
|
4179
|
+
const I = () => {
|
|
4180
|
+
const C = S.offsetHeight;
|
|
4181
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${C}px`);
|
|
4182
|
+
};
|
|
4183
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4184
|
+
}, [U]), te(() => {
|
|
4185
|
+
if (typeof document > "u") return;
|
|
4186
|
+
const S = document.querySelector(`.${T.logoWrapper}`);
|
|
4187
|
+
if (!S) return;
|
|
4188
|
+
const I = () => {
|
|
4189
|
+
const C = S.offsetWidth;
|
|
4190
|
+
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4191
|
+
};
|
|
4192
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4193
|
+
}, [U]), te(() => {
|
|
4194
|
+
if (typeof document > "u" || !j) {
|
|
4195
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4196
|
+
return;
|
|
4197
|
+
}
|
|
4198
|
+
const S = document.querySelector(`.${T.searchOverlay}`);
|
|
4199
|
+
if (!S) return;
|
|
4200
|
+
const I = () => {
|
|
4201
|
+
const W = S.offsetHeight;
|
|
4202
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", `${W}px`);
|
|
4203
|
+
};
|
|
4204
|
+
requestAnimationFrame(I), window.addEventListener("resize", I);
|
|
4205
|
+
const C = new ResizeObserver(I);
|
|
4206
|
+
return C.observe(S), () => {
|
|
4207
|
+
window.removeEventListener("resize", I), C.disconnect();
|
|
4208
|
+
};
|
|
4209
|
+
}, [j]);
|
|
4210
|
+
const q = () => {
|
|
4211
|
+
const S = N === "light" ? "dark" : "light";
|
|
4212
|
+
H(S), document.documentElement.setAttribute("data-color-scheme", S);
|
|
4213
|
+
}, re = (S) => {
|
|
4214
|
+
e && (S.preventDefault(), e("home")), E(!1), L(!1);
|
|
4215
|
+
}, c = () => {
|
|
4216
|
+
E(!F), j && L(!1);
|
|
4217
|
+
}, A = () => {
|
|
4218
|
+
L(!j), F && E(!1);
|
|
4219
|
+
}, P = ve(() => {
|
|
4220
|
+
if (!B.trim()) return [];
|
|
4221
|
+
const S = B.toLowerCase();
|
|
4222
|
+
return ua.filter(
|
|
4223
|
+
(I) => I.title.toLowerCase().startsWith(S)
|
|
4173
4224
|
);
|
|
4174
|
-
}, [
|
|
4175
|
-
|
|
4225
|
+
}, [B]), z = (S) => {
|
|
4226
|
+
e && e(S), L(!1), $("");
|
|
4176
4227
|
};
|
|
4177
|
-
return /* @__PURE__ */
|
|
4178
|
-
m && /* @__PURE__ */
|
|
4179
|
-
x && /* @__PURE__ */
|
|
4180
|
-
|
|
4228
|
+
return /* @__PURE__ */ r.jsxs("header", { className: T.header, "data-open": F ? "true" : "false", children: [
|
|
4229
|
+
m && /* @__PURE__ */ r.jsx("div", { className: T.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: T.extensionContentWrapper, children: [
|
|
4230
|
+
x && /* @__PURE__ */ r.jsx("div", { className: T.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4231
|
+
Ue,
|
|
4181
4232
|
{
|
|
4182
4233
|
"data-size": "sm",
|
|
4183
|
-
checked:
|
|
4184
|
-
onChange:
|
|
4185
|
-
label:
|
|
4234
|
+
checked: N === "dark",
|
|
4235
|
+
onChange: q,
|
|
4236
|
+
label: D("header.darkMode"),
|
|
4186
4237
|
color: "neutral",
|
|
4187
4238
|
"data-color-scheme": "light"
|
|
4188
4239
|
}
|
|
4189
4240
|
) }),
|
|
4190
|
-
x &&
|
|
4191
|
-
|
|
4192
|
-
/* @__PURE__ */
|
|
4193
|
-
/* @__PURE__ */
|
|
4194
|
-
/* @__PURE__ */
|
|
4195
|
-
|
|
4241
|
+
x && _ && /* @__PURE__ */ r.jsx("div", { className: T.extensionDivider }),
|
|
4242
|
+
_ && /* @__PURE__ */ r.jsxs("div", { className: T.languageSwitch, children: [
|
|
4243
|
+
/* @__PURE__ */ r.jsx("span", { className: T.languageLabel, children: D("header.language") }),
|
|
4244
|
+
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4245
|
+
/* @__PURE__ */ r.jsxs(
|
|
4246
|
+
ee.Trigger,
|
|
4196
4247
|
{
|
|
4197
|
-
className:
|
|
4198
|
-
"aria-label":
|
|
4248
|
+
className: T.languageLink,
|
|
4249
|
+
"aria-label": D("header.selectLanguage"),
|
|
4199
4250
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4200
4251
|
children: [
|
|
4201
|
-
|
|
4252
|
+
M,
|
|
4202
4253
|
" ",
|
|
4203
|
-
/* @__PURE__ */
|
|
4254
|
+
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4204
4255
|
]
|
|
4205
4256
|
}
|
|
4206
4257
|
),
|
|
4207
|
-
/* @__PURE__ */
|
|
4208
|
-
|
|
4258
|
+
/* @__PURE__ */ r.jsx(
|
|
4259
|
+
ee,
|
|
4209
4260
|
{
|
|
4210
|
-
"data-color-scheme":
|
|
4261
|
+
"data-color-scheme": N,
|
|
4211
4262
|
placement: "bottom-end",
|
|
4212
|
-
children: /* @__PURE__ */
|
|
4213
|
-
/* @__PURE__ */
|
|
4214
|
-
/* @__PURE__ */
|
|
4263
|
+
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4264
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("NO"), children: "Norsk (NO)" }) }),
|
|
4265
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("EN"), children: "English (EN)" }) })
|
|
4215
4266
|
] })
|
|
4216
4267
|
}
|
|
4217
4268
|
)
|
|
4218
4269
|
] })
|
|
4219
4270
|
] })
|
|
4220
4271
|
] }) }),
|
|
4221
|
-
/* @__PURE__ */
|
|
4222
|
-
/* @__PURE__ */
|
|
4223
|
-
/* @__PURE__ */
|
|
4224
|
-
|
|
4272
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.headerInner, children: [
|
|
4273
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.logoWrapper, children: [
|
|
4274
|
+
/* @__PURE__ */ r.jsx(
|
|
4275
|
+
Ne,
|
|
4276
|
+
{
|
|
4277
|
+
href: "/",
|
|
4278
|
+
className: `${T.logo} ${T.primaryLogo}`,
|
|
4279
|
+
"aria-label": D("header.homeAriaLabel"),
|
|
4280
|
+
onClick: re,
|
|
4281
|
+
children: /* @__PURE__ */ r.jsx(Y, {})
|
|
4282
|
+
}
|
|
4283
|
+
),
|
|
4284
|
+
/* @__PURE__ */ r.jsx("div", { className: T.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4225
4285
|
"img",
|
|
4226
4286
|
{
|
|
4227
|
-
src:
|
|
4287
|
+
src: N === "dark" && g ? g : k,
|
|
4228
4288
|
alt: h,
|
|
4229
|
-
className:
|
|
4289
|
+
className: T.secondaryLogo
|
|
4230
4290
|
}
|
|
4231
|
-
) : f ? /* @__PURE__ */
|
|
4291
|
+
) : f ? /* @__PURE__ */ r.jsx("div", { className: T.slotComponent, children: /* @__PURE__ */ r.jsx("div", { className: T.slotContainer, children: /* @__PURE__ */ r.jsx("p", { className: T.slotText, children: "SLOT" }) }) }) : null })
|
|
4232
4292
|
] }),
|
|
4233
|
-
v && b && b.length > 0 && /* @__PURE__ */
|
|
4234
|
-
|
|
4293
|
+
v && b && b.length > 0 && !U && /* @__PURE__ */ r.jsx("nav", { className: T.navItems, children: b.map((S, I) => /* @__PURE__ */ r.jsx(
|
|
4294
|
+
Ne,
|
|
4235
4295
|
{
|
|
4236
4296
|
href: S.href,
|
|
4237
|
-
className:
|
|
4238
|
-
onClick: (
|
|
4239
|
-
|
|
4297
|
+
className: T.navLink,
|
|
4298
|
+
onClick: (C) => {
|
|
4299
|
+
e && (C.preventDefault(), e(S.href));
|
|
4240
4300
|
},
|
|
4241
4301
|
children: S.label
|
|
4242
4302
|
},
|
|
4243
|
-
|
|
4303
|
+
I
|
|
4244
4304
|
)) }),
|
|
4245
|
-
/* @__PURE__ */
|
|
4246
|
-
o && /* @__PURE__ */
|
|
4305
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.actions, children: [
|
|
4306
|
+
o && /* @__PURE__ */ r.jsxs(
|
|
4247
4307
|
ye,
|
|
4248
4308
|
{
|
|
4249
4309
|
variant: "primary",
|
|
4250
4310
|
"data-color": "main",
|
|
4251
4311
|
"data-size": "md",
|
|
4252
|
-
className:
|
|
4312
|
+
className: T.ctaButton,
|
|
4253
4313
|
onClick: u,
|
|
4254
4314
|
children: [
|
|
4255
4315
|
l,
|
|
4256
|
-
/* @__PURE__ */
|
|
4316
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: d || D("header.supportUs") })
|
|
4257
4317
|
]
|
|
4258
4318
|
}
|
|
4259
4319
|
),
|
|
4260
|
-
!m && y && /* @__PURE__ */
|
|
4261
|
-
|
|
4320
|
+
!m && y && /* @__PURE__ */ r.jsx("div", { className: T.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4321
|
+
Ue,
|
|
4262
4322
|
{
|
|
4263
|
-
checked:
|
|
4264
|
-
onChange:
|
|
4265
|
-
"aria-label":
|
|
4323
|
+
checked: N === "dark",
|
|
4324
|
+
onChange: q,
|
|
4325
|
+
"aria-label": D("header.toggleTheme")
|
|
4266
4326
|
}
|
|
4267
4327
|
) }),
|
|
4268
|
-
|
|
4269
|
-
/* @__PURE__ */
|
|
4270
|
-
/* @__PURE__ */
|
|
4328
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: T.userInfo, children: [
|
|
4329
|
+
/* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className: T.userName, children: "Frodo Baggins" }),
|
|
4330
|
+
/* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4271
4331
|
] }),
|
|
4272
|
-
|
|
4273
|
-
/* @__PURE__ */
|
|
4274
|
-
/* @__PURE__ */
|
|
4332
|
+
a && /* @__PURE__ */ r.jsxs("a", { href: "#", className: T.loginLink, children: [
|
|
4333
|
+
/* @__PURE__ */ r.jsx("span", { className: T.loginText, children: D("header.login") }),
|
|
4334
|
+
/* @__PURE__ */ r.jsx("div", { className: T.underline })
|
|
4275
4335
|
] }),
|
|
4276
|
-
|
|
4336
|
+
i && /* @__PURE__ */ r.jsx("div", { className: T.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
4277
4337
|
ye,
|
|
4278
4338
|
{
|
|
4279
4339
|
variant: "secondary",
|
|
4280
4340
|
"data-color": "main",
|
|
4281
4341
|
"data-size": "md",
|
|
4282
|
-
onClick:
|
|
4283
|
-
"aria-expanded":
|
|
4284
|
-
"aria-label": j
|
|
4342
|
+
onClick: A,
|
|
4343
|
+
"aria-expanded": j,
|
|
4344
|
+
"aria-label": D(j ? "header.closeSearch" : "header.openSearch"),
|
|
4285
4345
|
children: [
|
|
4286
|
-
|
|
4287
|
-
/* @__PURE__ */
|
|
4346
|
+
j ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
|
|
4347
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: D(j ? "header.close" : "header.search") })
|
|
4288
4348
|
]
|
|
4289
4349
|
}
|
|
4290
4350
|
) }),
|
|
4291
|
-
p && /* @__PURE__ */
|
|
4351
|
+
(p || U) && /* @__PURE__ */ r.jsxs(
|
|
4292
4352
|
ye,
|
|
4293
4353
|
{
|
|
4294
4354
|
variant: "primary",
|
|
4295
4355
|
"data-color": "main",
|
|
4296
4356
|
"data-size": "md",
|
|
4297
|
-
onClick:
|
|
4298
|
-
"aria-expanded":
|
|
4299
|
-
"aria-label":
|
|
4300
|
-
className:
|
|
4357
|
+
onClick: c,
|
|
4358
|
+
"aria-expanded": F,
|
|
4359
|
+
"aria-label": D(F ? "header.closeMenu" : "header.openMenu"),
|
|
4360
|
+
className: T.menuButton,
|
|
4301
4361
|
children: [
|
|
4302
|
-
|
|
4303
|
-
/* @__PURE__ */
|
|
4362
|
+
F ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4363
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: D(F ? "header.close" : "header.menu") })
|
|
4304
4364
|
]
|
|
4305
4365
|
}
|
|
4306
4366
|
)
|
|
4307
4367
|
] })
|
|
4308
4368
|
] }),
|
|
4309
|
-
|
|
4310
|
-
/* @__PURE__ */
|
|
4311
|
-
/* @__PURE__ */
|
|
4369
|
+
F && /* @__PURE__ */ r.jsx("div", { className: T.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: T.menuContent, children: [
|
|
4370
|
+
/* @__PURE__ */ r.jsx("div", { className: T.menuLeftColumn }),
|
|
4371
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.menuRightColumn, children: [
|
|
4372
|
+
U && (_ || x) && /* @__PURE__ */ r.jsxs("div", { className: T.menuUtilities, children: [
|
|
4373
|
+
_ && /* @__PURE__ */ r.jsxs("div", { className: T.languageSwitch, children: [
|
|
4374
|
+
/* @__PURE__ */ r.jsx("span", { className: T.languageLabel, children: D("header.language") }),
|
|
4375
|
+
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4376
|
+
/* @__PURE__ */ r.jsxs(
|
|
4377
|
+
ee.Trigger,
|
|
4378
|
+
{
|
|
4379
|
+
className: T.languageLink,
|
|
4380
|
+
"aria-label": D("header.selectLanguage"),
|
|
4381
|
+
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4382
|
+
children: [
|
|
4383
|
+
M,
|
|
4384
|
+
" ",
|
|
4385
|
+
/* @__PURE__ */ r.jsx(gt, { "aria-hidden": !0 })
|
|
4386
|
+
]
|
|
4387
|
+
}
|
|
4388
|
+
),
|
|
4389
|
+
/* @__PURE__ */ r.jsx(
|
|
4390
|
+
ee,
|
|
4391
|
+
{
|
|
4392
|
+
"data-color-scheme": N,
|
|
4393
|
+
placement: "bottom-start",
|
|
4394
|
+
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4395
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("NO"), children: "Norsk (NO)" }) }),
|
|
4396
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("EN"), children: "English (EN)" }) })
|
|
4397
|
+
] })
|
|
4398
|
+
}
|
|
4399
|
+
)
|
|
4400
|
+
] })
|
|
4401
|
+
] }),
|
|
4402
|
+
x && /* @__PURE__ */ r.jsx("div", { className: T.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4403
|
+
Ue,
|
|
4404
|
+
{
|
|
4405
|
+
"data-size": "sm",
|
|
4406
|
+
checked: N === "dark",
|
|
4407
|
+
onChange: q,
|
|
4408
|
+
label: D("header.darkMode"),
|
|
4409
|
+
color: "neutral",
|
|
4410
|
+
"data-color-scheme": "light"
|
|
4411
|
+
}
|
|
4412
|
+
) })
|
|
4413
|
+
] }),
|
|
4414
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.slotContent, children: [
|
|
4415
|
+
n,
|
|
4416
|
+
U && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: T.navList, children: b.map((S, I) => /* @__PURE__ */ r.jsx(
|
|
4417
|
+
Ne,
|
|
4418
|
+
{
|
|
4419
|
+
href: S.href,
|
|
4420
|
+
className: T.navLink,
|
|
4421
|
+
onClick: (C) => {
|
|
4422
|
+
e && (C.preventDefault(), e(S.href));
|
|
4423
|
+
},
|
|
4424
|
+
children: S.label
|
|
4425
|
+
},
|
|
4426
|
+
I
|
|
4427
|
+
)) })
|
|
4428
|
+
] }),
|
|
4429
|
+
U && /* @__PURE__ */ r.jsx("div", { className: T.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4430
|
+
] })
|
|
4312
4431
|
] }) }),
|
|
4313
|
-
|
|
4314
|
-
/* @__PURE__ */
|
|
4315
|
-
/* @__PURE__ */
|
|
4316
|
-
|
|
4432
|
+
j && /* @__PURE__ */ r.jsx("div", { className: T.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: T.searchContent, children: [
|
|
4433
|
+
/* @__PURE__ */ r.jsxs(Pe, { children: [
|
|
4434
|
+
/* @__PURE__ */ r.jsx(
|
|
4435
|
+
Pe.Input,
|
|
4317
4436
|
{
|
|
4318
|
-
"aria-label":
|
|
4319
|
-
placeholder:
|
|
4320
|
-
value:
|
|
4321
|
-
onChange: (S) =>
|
|
4437
|
+
"aria-label": D("header.search"),
|
|
4438
|
+
placeholder: D("header.searchPlaceholder"),
|
|
4439
|
+
value: B,
|
|
4440
|
+
onChange: (S) => $(S.target.value)
|
|
4322
4441
|
}
|
|
4323
4442
|
),
|
|
4324
|
-
/* @__PURE__ */
|
|
4325
|
-
/* @__PURE__ */
|
|
4443
|
+
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": D("header.search") }),
|
|
4444
|
+
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": D("header.clearSearch") })
|
|
4326
4445
|
] }),
|
|
4327
|
-
|
|
4328
|
-
/* @__PURE__ */
|
|
4329
|
-
/* @__PURE__ */
|
|
4446
|
+
B && /* @__PURE__ */ r.jsx("div", { className: T.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: T.suggestionsSection, children: [
|
|
4447
|
+
/* @__PURE__ */ r.jsx("h3", { className: T.suggestionsTitle, children: D("header.suggestions") }),
|
|
4448
|
+
/* @__PURE__ */ r.jsx("ul", { className: T.resultList, children: P.slice(0, 5).map((S) => /* @__PURE__ */ r.jsx("li", { className: T.resultItem, children: /* @__PURE__ */ r.jsxs(
|
|
4330
4449
|
"button",
|
|
4331
4450
|
{
|
|
4332
|
-
className:
|
|
4333
|
-
onClick: () =>
|
|
4451
|
+
className: T.resultLink,
|
|
4452
|
+
onClick: () => z(S.path),
|
|
4334
4453
|
children: [
|
|
4335
|
-
/* @__PURE__ */
|
|
4336
|
-
/* @__PURE__ */
|
|
4337
|
-
const
|
|
4338
|
-
if (
|
|
4339
|
-
const
|
|
4340
|
-
return /* @__PURE__ */
|
|
4341
|
-
/* @__PURE__ */
|
|
4342
|
-
/* @__PURE__ */
|
|
4343
|
-
/* @__PURE__ */
|
|
4454
|
+
/* @__PURE__ */ r.jsx("span", { className: T.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4455
|
+
/* @__PURE__ */ r.jsx("span", { className: T.suggestionText, children: (() => {
|
|
4456
|
+
const I = S.title.toLowerCase().indexOf(B.toLowerCase());
|
|
4457
|
+
if (I === -1) return /* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: S.title });
|
|
4458
|
+
const C = S.title.slice(0, I), W = S.title.slice(I, I + B.length), J = S.title.slice(I + B.length);
|
|
4459
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4460
|
+
/* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: C }),
|
|
4461
|
+
/* @__PURE__ */ r.jsx("span", { className: T.highlightedText, children: W }),
|
|
4462
|
+
/* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: J })
|
|
4344
4463
|
] });
|
|
4345
4464
|
})() })
|
|
4346
4465
|
]
|
|
4347
4466
|
}
|
|
4348
4467
|
) }, S.id)) }),
|
|
4349
|
-
|
|
4350
|
-
|
|
4468
|
+
P.length > 5 && /* @__PURE__ */ r.jsxs(
|
|
4469
|
+
Ne,
|
|
4351
4470
|
{
|
|
4352
4471
|
href: "#",
|
|
4353
4472
|
"data-color": "neutral",
|
|
4354
|
-
className:
|
|
4473
|
+
className: T.viewAllLink,
|
|
4355
4474
|
onClick: (S) => {
|
|
4356
|
-
S.preventDefault(),
|
|
4475
|
+
S.preventDefault(), e && e(`search/${B}`), L(!1), $("");
|
|
4357
4476
|
},
|
|
4358
4477
|
children: [
|
|
4359
|
-
|
|
4478
|
+
D("header.viewAll"),
|
|
4360
4479
|
" (",
|
|
4361
|
-
|
|
4480
|
+
P.length,
|
|
4362
4481
|
")"
|
|
4363
4482
|
]
|
|
4364
4483
|
}
|
|
4365
4484
|
)
|
|
4366
|
-
] }) : /* @__PURE__ */
|
|
4367
|
-
|
|
4485
|
+
] }) : /* @__PURE__ */ r.jsx("div", { className: T.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4486
|
+
D("header.noResults"),
|
|
4368
4487
|
' "',
|
|
4369
|
-
|
|
4488
|
+
B,
|
|
4370
4489
|
'"'
|
|
4371
4490
|
] }) }) })
|
|
4372
4491
|
] }) })
|
|
4373
4492
|
] });
|
|
4374
4493
|
};
|
|
4375
|
-
function
|
|
4376
|
-
const
|
|
4494
|
+
function ma(t) {
|
|
4495
|
+
const e = t;
|
|
4377
4496
|
return `
|
|
4378
|
-
.${
|
|
4497
|
+
.${e.header} {
|
|
4379
4498
|
width: 100%;
|
|
4380
4499
|
background-color: var(--ds-color-neutral-background-default);
|
|
4381
|
-
border-bottom:
|
|
4500
|
+
border-bottom: none;
|
|
4382
4501
|
position: relative;
|
|
4383
4502
|
z-index: 1000;
|
|
4384
4503
|
display: flex;
|
|
4385
4504
|
flex-direction: column;
|
|
4386
4505
|
}
|
|
4387
|
-
.${
|
|
4506
|
+
.${e.headerExtension} {
|
|
4388
4507
|
background-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
|
|
4389
4508
|
width: 100%;
|
|
4390
4509
|
height: 44px;
|
|
@@ -4395,7 +4514,7 @@ function la(e) {
|
|
|
4395
4514
|
box-sizing: border-box;
|
|
4396
4515
|
color: white;
|
|
4397
4516
|
}
|
|
4398
|
-
.${
|
|
4517
|
+
.${e.extensionContentWrapper} {
|
|
4399
4518
|
width: 100%;
|
|
4400
4519
|
max-width: 1364px;
|
|
4401
4520
|
display: flex;
|
|
@@ -4403,138 +4522,158 @@ function la(e) {
|
|
|
4403
4522
|
align-items: center;
|
|
4404
4523
|
gap: var(--ds-size-4);
|
|
4405
4524
|
}
|
|
4406
|
-
.${
|
|
4407
|
-
.${
|
|
4408
|
-
.${
|
|
4409
|
-
.${
|
|
4410
|
-
.${
|
|
4525
|
+
.${e.extensionDivider} { width: 1px; height: 18px; background-color: rgba(247,233,232,1); }
|
|
4526
|
+
.${e.languageSwitch} { display: flex; align-items: center; gap: var(--ds-size-2); }
|
|
4527
|
+
.${e.languageLabel} { font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: #ECECEC; }
|
|
4528
|
+
.${e.languageLink} { color: white; text-decoration: none; display: flex; align-items: center; gap: 4px; }
|
|
4529
|
+
.${e.languageSwitch} :global([popover]) { margin-top: 0 !important; background-color: var(--ds-color-neutral-background-default) !important; position: fixed !important; overflow: visible; z-index: 20000 !important; }
|
|
4530
|
+
.${e.headerInner} {
|
|
4411
4531
|
display: flex; align-items: center; justify-content: space-between;
|
|
4412
4532
|
min-height: 119px; width: 100%; max-width: 1364px;
|
|
4413
4533
|
margin: 0 auto; padding: 0 var(--ds-size-6); box-sizing: border-box; gap: var(--ds-size-6);
|
|
4414
4534
|
}
|
|
4415
|
-
.${
|
|
4416
|
-
.${
|
|
4417
|
-
.${
|
|
4418
|
-
.${
|
|
4419
|
-
.${
|
|
4420
|
-
.${
|
|
4421
|
-
.${
|
|
4422
|
-
.${
|
|
4423
|
-
.${
|
|
4424
|
-
.${
|
|
4425
|
-
.${
|
|
4426
|
-
.${
|
|
4427
|
-
.${
|
|
4428
|
-
.${
|
|
4429
|
-
.${
|
|
4430
|
-
.${
|
|
4431
|
-
.${
|
|
4432
|
-
.${
|
|
4433
|
-
.${
|
|
4434
|
-
.${
|
|
4535
|
+
.${e.logoWrapper} { display: flex; align-items: center; height: 119px; flex-shrink: 0; background-color: white; }
|
|
4536
|
+
.${e.logo} { display: flex; align-items: center; justify-content: center; width: 217px; height: 100%; text-decoration: none; color: inherit; flex-shrink: 0; }
|
|
4537
|
+
.${e.redCrossLogo} { width: 169px; height: auto; display: block; }
|
|
4538
|
+
.${e.secondaryLogoWrapper} { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 var(--ds-size-6); background: var(--ds-color-neutral-background-default); }
|
|
4539
|
+
.${e.secondaryLogo} { height: 24px; width: auto; display: block; }
|
|
4540
|
+
.${e.navItems} { display: flex; gap: 40px; align-items: center; margin-left: 24px; flex-grow: 1; justify-content: flex-end; }
|
|
4541
|
+
.${e.navLink} { color: var(--ds-color-primary-color-red-text-default); font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); text-decoration: none; font-weight: var(--ds-font-weight-regular); letter-spacing: 0.09px; }
|
|
4542
|
+
.${e.navLink}:hover { text-decoration: underline; }
|
|
4543
|
+
.${e.actions} { display: flex; align-items: center; gap: var(--ds-size-6); flex-shrink: 0; margin-left: auto; }
|
|
4544
|
+
.${e.ctaButton} { display: flex; align-items: center; }
|
|
4545
|
+
.${e.themeToggle} { display: flex; align-items: center; }
|
|
4546
|
+
.${e.userInfo} { display: flex; align-items: center; gap: var(--ds-size-3); }
|
|
4547
|
+
.${e.userName} { display: block; font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-default); }
|
|
4548
|
+
.${e.loginLink} { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ds-color-main-text-subtle); gap: 2px; }
|
|
4549
|
+
.${e.loginText} { font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); font-weight: var(--ds-font-weight-regular); line-height: 1.5; }
|
|
4550
|
+
.${e.underline} { width: 100%; height: 1px; background-color: var(--ds-color-main-border-strong); }
|
|
4551
|
+
.${e.searchButtonWrapper} { display: flex; }
|
|
4552
|
+
.${e.buttonText} { display: inline-block; margin-left: var(--ds-size-2); }
|
|
4553
|
+
.${e.menuButton} { display: flex; align-items: center; }
|
|
4554
|
+
.${e.menuOverlay}, .${e.searchOverlay} {
|
|
4435
4555
|
position: absolute; top: 100%; left: 0; width: 100%;
|
|
4436
4556
|
background-color: var(--ds-color-neutral-background-default);
|
|
4437
|
-
border-bottom:
|
|
4438
|
-
box-shadow:
|
|
4557
|
+
border-bottom: none;
|
|
4558
|
+
box-shadow: none; z-index: 999;
|
|
4439
4559
|
}
|
|
4440
|
-
.${
|
|
4441
|
-
.${
|
|
4560
|
+
.${e.searchOverlay} { padding: var(--ds-size-10) 0; }
|
|
4561
|
+
.${e.searchOverlay}::before { display: none; }
|
|
4562
|
+
.${e.searchContent} {
|
|
4442
4563
|
max-width: 1364px; margin: 0 auto;
|
|
4443
|
-
padding:
|
|
4564
|
+
padding: var(--ds-size-6) var(--ds-size-6) var(--ds-size-6) calc(217px + var(--ds-size-6) + var(--ds-size-4));
|
|
4444
4565
|
display: flex; flex-direction: column; align-items: stretch; box-sizing: border-box;
|
|
4445
4566
|
}
|
|
4446
|
-
.${
|
|
4447
|
-
.${
|
|
4448
|
-
.${
|
|
4449
|
-
.${
|
|
4450
|
-
.${
|
|
4451
|
-
.${
|
|
4452
|
-
.${
|
|
4453
|
-
.${
|
|
4454
|
-
.${
|
|
4455
|
-
.${
|
|
4567
|
+
.${e.menuContent} { max-width: 1364px; margin: 0 auto; display: flex; flex-direction: row; align-items: stretch; box-sizing: border-box; }
|
|
4568
|
+
.${e.menuLeftColumn} { width: calc(217px + var(--ds-size-6)); flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: var(--ds-size-6); }
|
|
4569
|
+
.${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
|
|
4570
|
+
.${e.slotContent} { width: 100%; padding: var(--ds-size-10) 0; text-align: left; color: var(--ds-color-neutral-text-subtle); font-size: var(--ds-font-size-md); border-radius: var(--ds-border-radius-md); display: flex; flex-direction: column; gap: var(--ds-size-4); align-items: flex-start; }
|
|
4571
|
+
.${e.navList} { display: flex; flex-direction: column; gap: var(--ds-size-3); align-items: flex-start; }
|
|
4572
|
+
.${e.menuBrand} { display: none; }
|
|
4573
|
+
.${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
|
|
4574
|
+
.${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
|
|
4575
|
+
.${e.suggestionsTitle} { font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-subtle); font-weight: var(--ds-font-weight-regular); margin: 0; letter-spacing: 0.09px; }
|
|
4576
|
+
.${e.searchResults} { margin-top: var(--ds-size-4); max-height: 400px; overflow-y: auto; }
|
|
4577
|
+
.${e.resultList} { list-style: none; padding: 0; margin: 0; }
|
|
4578
|
+
.${e.resultItem} { border-bottom: none; }
|
|
4579
|
+
.${e.resultLink} {
|
|
4456
4580
|
display: flex; flex-direction: row; align-items: center; width: 100%;
|
|
4457
4581
|
padding: var(--ds-size-2) 0; background: none; border: none;
|
|
4458
4582
|
text-align: left; cursor: pointer; gap: var(--ds-size-4); text-decoration: none;
|
|
4459
4583
|
}
|
|
4460
|
-
.${
|
|
4461
|
-
.${
|
|
4462
|
-
.${
|
|
4463
|
-
.${
|
|
4464
|
-
.${
|
|
4465
|
-
.${
|
|
4466
|
-
@media (max-width:
|
|
4467
|
-
.${
|
|
4468
|
-
.${
|
|
4469
|
-
.${
|
|
4470
|
-
.${
|
|
4471
|
-
.${
|
|
4472
|
-
.${
|
|
4473
|
-
|
|
4474
|
-
.${
|
|
4475
|
-
.${
|
|
4476
|
-
.${
|
|
4477
|
-
.${
|
|
4478
|
-
.${
|
|
4479
|
-
.${
|
|
4480
|
-
.${
|
|
4584
|
+
.${e.suggestionIcon} { font-size: 20px; color: var(--ds-color-neutral-text-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
|
4585
|
+
.${e.suggestionText} { font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-default); line-height: 1.5; }
|
|
4586
|
+
.${e.highlightedText} { color: var(--ds-color-primary-color-red-text-default); font-weight: var(--ds-font-weight-medium); }
|
|
4587
|
+
.${e.remainingText} { color: var(--ds-color-neutral-border-subtle); }
|
|
4588
|
+
.${e.viewAllLink} { display: block; padding: var(--ds-size-3); text-align: left; font-size: var(--ds-font-size-sm); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-neutral-text-default); text-decoration: none; }
|
|
4589
|
+
.${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
|
|
4590
|
+
@media (max-width: 850px) {
|
|
4591
|
+
.${e.header} { z-index: 10000; position: relative; }
|
|
4592
|
+
.${e.headerExtension} { display: none; }
|
|
4593
|
+
.${e.headerInner} { padding: var(--ds-size-5) var(--ds-size-6); min-height: auto; }
|
|
4594
|
+
.${e.navItems} { display: none; }
|
|
4595
|
+
.${e.logoWrapper} { gap: var(--ds-size-2); }
|
|
4596
|
+
.${e.logo} { height: 40px; }
|
|
4597
|
+
/* Mobile: always hide primary logo in header */
|
|
4598
|
+
.${e.primaryLogo} { display: none; }
|
|
4599
|
+
.${e.secondaryLogo} { height: 28px; }
|
|
4600
|
+
.${e.secondaryLogoWrapper} { padding: 0; }
|
|
4601
|
+
.${e.actions} { gap: var(--ds-size-4); }
|
|
4602
|
+
.${e.userName} { display: none; }
|
|
4603
|
+
.${e.menuButton} .${e.buttonText} { display: none; }
|
|
4604
|
+
.${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; }
|
|
4606
|
+
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; }
|
|
4607
|
+
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4608
|
+
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|
|
4609
|
+
.${e.menuRightColumn} { padding: var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
4610
|
+
.${e.menuLeftColumn} { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: var(--ds-size-6); }
|
|
4611
|
+
.${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; }
|
|
4612
|
+
.${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; }
|
|
4613
|
+
@media (prefers-color-scheme: light) {
|
|
4614
|
+
.${e.menuUtilities} .${e.languageLabel} { color: var(--color-neutral-text-default, #2B2B2B); }
|
|
4615
|
+
.${e.menuUtilities} .${e.languageLink} { color: var(--color-neutral-text-default, #2B2B2B) !important; }
|
|
4616
|
+
}
|
|
4617
|
+
[data-color-scheme="light"] .${e.menuUtilities} .${e.languageLabel} { color: var(--color-neutral-text-default, #2B2B2B); }
|
|
4618
|
+
[data-color-scheme="light"] .${e.menuUtilities} .${e.languageLink} { color: var(--color-neutral-text-default, #2B2B2B) !important; }
|
|
4619
|
+
.${e.searchOverlay}::before { display: none; }
|
|
4481
4620
|
}
|
|
4482
4621
|
`;
|
|
4483
4622
|
}
|
|
4484
4623
|
export {
|
|
4485
4624
|
so as Alert,
|
|
4486
|
-
|
|
4625
|
+
Ft as Avatar,
|
|
4487
4626
|
ao as Badge,
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4627
|
+
ka as BadgePosition,
|
|
4628
|
+
ba as Breadcrumbs,
|
|
4629
|
+
ya as BreadcrumbsItem,
|
|
4630
|
+
xa as BreadcrumbsLink,
|
|
4631
|
+
va as BreadcrumbsList,
|
|
4493
4632
|
ye as Button,
|
|
4494
4633
|
io as Card,
|
|
4495
|
-
|
|
4634
|
+
Ta as CardBlock,
|
|
4496
4635
|
os as Carousel,
|
|
4497
4636
|
lo as Checkbox,
|
|
4498
|
-
|
|
4637
|
+
wa as Chip,
|
|
4499
4638
|
ir as DateInput,
|
|
4500
4639
|
Qo as DatePicker,
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4640
|
+
Ca as Details,
|
|
4641
|
+
ja as Dialog,
|
|
4642
|
+
Da as Divider,
|
|
4643
|
+
ee as Dropdown,
|
|
4644
|
+
Ia as ErrorSummary,
|
|
4645
|
+
La as Field,
|
|
4507
4646
|
ss as FieldCounter,
|
|
4508
4647
|
rs as FieldDescription,
|
|
4509
|
-
|
|
4510
|
-
|
|
4648
|
+
Aa as Fieldset,
|
|
4649
|
+
Ya as Header,
|
|
4511
4650
|
as as Heading,
|
|
4512
|
-
|
|
4651
|
+
Fa as Input,
|
|
4513
4652
|
is as Label,
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4653
|
+
qa as LanguageProvider,
|
|
4654
|
+
Ne as Link,
|
|
4655
|
+
_a as List,
|
|
4656
|
+
Ea as Pagination,
|
|
4657
|
+
Ze as Paragraph,
|
|
4658
|
+
Na as Popover,
|
|
4659
|
+
Pa as Radio,
|
|
4660
|
+
Pe as Search,
|
|
4661
|
+
Ra as Select,
|
|
4662
|
+
za as SkeletonLoader,
|
|
4663
|
+
Oa as SkipLink,
|
|
4525
4664
|
ns as Spinner,
|
|
4526
4665
|
ls as Suggestion,
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4666
|
+
Ue as Switch,
|
|
4667
|
+
$a as Table,
|
|
4668
|
+
Ha as Tabs,
|
|
4669
|
+
Wa as Tag,
|
|
4670
|
+
Va as Textarea,
|
|
4671
|
+
Ga as Textfield,
|
|
4672
|
+
Ua as ToggleGroup,
|
|
4673
|
+
Ka as Tooltip,
|
|
4535
4674
|
ds as ValidationMessage,
|
|
4536
|
-
|
|
4675
|
+
Sa as useCheckboxGroup,
|
|
4537
4676
|
us as useLanguage,
|
|
4538
|
-
|
|
4539
|
-
|
|
4677
|
+
Ba as usePagination,
|
|
4678
|
+
Ma as useRadioGroup
|
|
4540
4679
|
};
|