rk-designsystem 1.1.49 → 1.1.51
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 +1636 -1389
- package/dist/componentlibrary.umd.js +128 -4
- package/dist/rk-designsystem.css +1 -1
- package/package.json +6 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Alert as
|
|
3
|
-
import { startOfMonth as
|
|
4
|
-
import { ChevronLeftIcon as
|
|
5
|
-
var
|
|
1
|
+
import Dt, { forwardRef as ue, useState as oe, useEffect as ne, 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 gn, Divider as mn, 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 gt, 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 mt, 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 Ee = { 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,26 +44,26 @@ 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:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case g:
|
|
59
59
|
return "Profiler";
|
|
60
60
|
case p:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case _:
|
|
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 F:
|
|
76
76
|
return c.displayName || "Context";
|
|
77
|
-
case
|
|
77
|
+
case x:
|
|
78
78
|
return (c._context.displayName || "Context") + ".Consumer";
|
|
79
|
-
case
|
|
80
|
-
var
|
|
81
|
-
return c = c.displayName, c || (c =
|
|
82
|
-
case
|
|
83
|
-
return
|
|
84
|
-
case
|
|
85
|
-
|
|
79
|
+
case B:
|
|
80
|
+
var A = c.render;
|
|
81
|
+
return c = c.displayName, c || (c = A.displayName || A.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
82
|
+
case L:
|
|
83
|
+
return A = c.displayName || null, A !== null ? A : t(c.type) || "Memo";
|
|
84
|
+
case E:
|
|
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 === E)
|
|
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
|
|
124
|
+
function i() {
|
|
125
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
|
+
K || (K = !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 te[c] || (te[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
|
-
$$typeof:
|
|
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,180 +178,180 @@ 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 (
|
|
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 W = Object.keys(
|
|
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
|
-
|
|
214
|
+
z,
|
|
215
|
+
C,
|
|
216
216
|
W,
|
|
217
|
-
|
|
218
|
-
),
|
|
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
|
-
J,
|
|
234
|
-
q
|
|
234
|
+
I
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function f(c) {
|
|
238
|
-
|
|
238
|
+
k(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === E && (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
|
-
function
|
|
241
|
-
return typeof c == "object" && c !== null && c.$$typeof ===
|
|
240
|
+
function k(c) {
|
|
241
|
+
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var m = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), F = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), H = m.__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
|
+
m = {
|
|
247
247
|
react_stack_bottom_frame: function(c) {
|
|
248
248
|
return c();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
)(),
|
|
255
|
-
we.Fragment = v, we.jsx = function(c,
|
|
256
|
-
var
|
|
251
|
+
var K, te = {}, Y = m.react_stack_bottom_frame.bind(
|
|
252
|
+
m,
|
|
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 Ft = ue((
|
|
285
|
+
const Ft = ue((t, e) => /* @__PURE__ */ r.jsx(Zt, { ref: e, ...t }));
|
|
286
286
|
Ft.displayName = "Avatar";
|
|
287
|
-
const ao = ue((
|
|
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 Ge(
|
|
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) ? go(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
|
|
342
|
-
for (let n = 0; n <
|
|
343
|
-
if (t
|
|
341
|
+
function go(t, e) {
|
|
342
|
+
for (let n = 0; n < t.length; n++)
|
|
343
|
+
if (e(t[n]))
|
|
344
344
|
return n;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
return (
|
|
348
|
-
const
|
|
349
|
-
if (!r) return null;
|
|
350
|
-
const a = r[0], s = t.match(e.parsePattern);
|
|
346
|
+
function mo(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,16 +417,16 @@ 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
|
|
424
|
-
},
|
|
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
|
+
}, ho = {
|
|
425
425
|
full: "EEEE d. MMMM y",
|
|
426
426
|
long: "d. MMMM y",
|
|
427
427
|
medium: "d. MMM y",
|
|
428
428
|
short: "dd.MM.y"
|
|
429
|
-
},
|
|
429
|
+
}, ko = {
|
|
430
430
|
full: "'kl'. HH:mm:ss zzzz",
|
|
431
431
|
long: "HH:mm:ss z",
|
|
432
432
|
medium: "HH:mm:ss",
|
|
@@ -438,11 +438,11 @@ const po = {
|
|
|
438
438
|
short: "{{date}} {{time}}"
|
|
439
439
|
}, vo = {
|
|
440
440
|
date: Ge({
|
|
441
|
-
formats:
|
|
441
|
+
formats: ho,
|
|
442
442
|
defaultWidth: "full"
|
|
443
443
|
}),
|
|
444
444
|
time: Ge({
|
|
445
|
-
formats:
|
|
445
|
+
formats: ko,
|
|
446
446
|
defaultWidth: "full"
|
|
447
447
|
}),
|
|
448
448
|
dateTime: Ge({
|
|
@@ -456,7 +456,7 @@ const po = {
|
|
|
456
456
|
tomorrow: "'i morgen kl.' p",
|
|
457
457
|
nextWeek: "EEEE 'kl.' p",
|
|
458
458
|
other: "P"
|
|
459
|
-
},
|
|
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,16 +538,16 @@ 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
|
-
values:
|
|
544
|
+
values: To,
|
|
545
545
|
defaultWidth: "wide"
|
|
546
546
|
}),
|
|
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,23 +561,23 @@ 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
|
|
568
568
|
}, _o = {
|
|
569
569
|
any: [/^f/i, /^e/i]
|
|
570
|
-
},
|
|
570
|
+
}, Eo = {
|
|
571
571
|
narrow: /^[1234]/i,
|
|
572
572
|
abbreviated: /^q[1234]/i,
|
|
573
573
|
wide: /^[1234](\.)? kvartal/i
|
|
574
|
-
},
|
|
574
|
+
}, Bo = {
|
|
575
575
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
-
},
|
|
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
|
|
580
|
-
},
|
|
580
|
+
}, Po = {
|
|
581
581
|
narrow: [
|
|
582
582
|
/^j/i,
|
|
583
583
|
/^f/i,
|
|
@@ -613,10 +613,10 @@ const po = {
|
|
|
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,
|
|
618
618
|
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
619
|
-
},
|
|
619
|
+
}, Oo = {
|
|
620
620
|
any: {
|
|
621
621
|
am: /^a(\.?\s?m\.?)?$/i,
|
|
622
622
|
pm: /^p(\.?\s?m\.?)?$/i,
|
|
@@ -627,29 +627,29 @@ const po = {
|
|
|
627
627
|
evening: /kveld/i,
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
|
-
},
|
|
631
|
-
ordinalNumber:
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
634
|
-
valueCallback: (
|
|
630
|
+
}, $o = {
|
|
631
|
+
ordinalNumber: mo({
|
|
632
|
+
matchPattern: Lo,
|
|
633
|
+
parsePattern: Ao,
|
|
634
|
+
valueCallback: (t) => parseInt(t, 10)
|
|
635
635
|
}),
|
|
636
636
|
era: je({
|
|
637
|
-
matchPatterns:
|
|
637
|
+
matchPatterns: Fo,
|
|
638
638
|
defaultMatchWidth: "wide",
|
|
639
639
|
parsePatterns: _o,
|
|
640
640
|
defaultParseWidth: "any"
|
|
641
641
|
}),
|
|
642
642
|
quarter: je({
|
|
643
|
-
matchPatterns:
|
|
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
|
-
parsePatterns:
|
|
652
|
+
parsePatterns: Po,
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: je({
|
|
@@ -659,23 +659,23 @@ const po = {
|
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: je({
|
|
662
|
-
matchPatterns:
|
|
662
|
+
matchPatterns: zo,
|
|
663
663
|
defaultMatchWidth: "any",
|
|
664
|
-
parsePatterns:
|
|
664
|
+
parsePatterns: Oo,
|
|
665
665
|
defaultParseWidth: "any"
|
|
666
666
|
})
|
|
667
667
|
}, be = {
|
|
668
668
|
code: "nb",
|
|
669
669
|
formatDistance: fo,
|
|
670
670
|
formatLong: vo,
|
|
671
|
-
formatRelative:
|
|
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,119 +726,119 @@ const _t = ({ title: e, ...t }) => /* @__PURE__ */ i.jsxs(
|
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
calendarContainer:
|
|
732
|
-
calendarHeader:
|
|
733
|
-
monthYear:
|
|
734
|
-
navigationButtons:
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
737
|
-
dateCell:
|
|
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
|
+
calendarHeader: Wo,
|
|
733
|
+
monthYear: Vo,
|
|
734
|
+
navigationButtons: Go,
|
|
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
|
-
|
|
754
|
+
const [a, o] = oe(
|
|
755
|
+
ke(e && Ve(e) ? e : t)
|
|
756
756
|
);
|
|
757
|
-
|
|
758
|
-
if (
|
|
759
|
-
const
|
|
760
|
-
|
|
757
|
+
ne(() => {
|
|
758
|
+
if (e && Ve(e)) {
|
|
759
|
+
const g = ke(e);
|
|
760
|
+
gt(g, a) || o(g);
|
|
761
761
|
}
|
|
762
|
-
}, [
|
|
763
|
-
const d = ve(() =>
|
|
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
|
|
768
|
-
return Array.from({ length: 7 }).map((
|
|
769
|
-
const
|
|
770
|
-
return
|
|
767
|
+
const g = Lt(/* @__PURE__ */ new Date(), { locale: be });
|
|
768
|
+
return Array.from({ length: 7 }).map((x, F) => {
|
|
769
|
+
const B = Te(At(g, F), "EEEEEE", { locale: be });
|
|
770
|
+
return vt(B);
|
|
771
771
|
});
|
|
772
|
-
}, []), f =
|
|
773
|
-
l || o((
|
|
774
|
-
}, [l]),
|
|
775
|
-
o((
|
|
776
|
-
}, []),
|
|
777
|
-
(
|
|
778
|
-
n && n(
|
|
772
|
+
}, []), f = ae(() => {
|
|
773
|
+
l || o((g) => ke(Kn(g, 1)));
|
|
774
|
+
}, [l]), k = ae(() => {
|
|
775
|
+
o((g) => ke(qn(g, 1)));
|
|
776
|
+
}, []), m = ae(
|
|
777
|
+
(g) => {
|
|
778
|
+
n && n(g);
|
|
779
779
|
},
|
|
780
780
|
[n]
|
|
781
|
-
),
|
|
782
|
-
(
|
|
783
|
-
(
|
|
781
|
+
), h = ae(
|
|
782
|
+
(g, x) => {
|
|
783
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), m(x));
|
|
784
784
|
},
|
|
785
|
-
[
|
|
786
|
-
), b =
|
|
787
|
-
return /* @__PURE__ */
|
|
785
|
+
[m]
|
|
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
|
-
onClick:
|
|
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
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
820
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: y.map((g) => /* @__PURE__ */ r.jsx("div", { className: se.dayNameCell, children: g }, g)) }),
|
|
821
|
+
/* @__PURE__ */ r.jsx("div", { className: se.grid, children: u.map((g) => {
|
|
822
|
+
const x = gt(g, a), F = e && Ve(e) && Yn(g, e), B = Jn(g), _ = [
|
|
823
|
+
se.dateCell,
|
|
824
|
+
x ? "" : se.otherMonth,
|
|
825
|
+
F ? se.selectedDate : "",
|
|
826
826
|
// Utheving basert på prop
|
|
827
|
-
|
|
827
|
+
B && !F ? se.todayDate : ""
|
|
828
828
|
].filter(Boolean).join(" ");
|
|
829
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ r.jsx(
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
|
-
className:
|
|
833
|
-
onClick: () => g
|
|
834
|
-
onKeyDown: (
|
|
832
|
+
className: _,
|
|
833
|
+
onClick: () => m(g),
|
|
834
|
+
onKeyDown: (j) => h(j, g),
|
|
835
835
|
role: "button",
|
|
836
836
|
tabIndex: 0,
|
|
837
|
-
"aria-pressed":
|
|
838
|
-
"aria-label":
|
|
839
|
-
children: /* @__PURE__ */
|
|
837
|
+
"aria-pressed": F ?? !1,
|
|
838
|
+
"aria-label": Te(g, "PPP", { locale: be }),
|
|
839
|
+
children: /* @__PURE__ */ r.jsx("span", { className: se.dateNumberContainer, children: Te(g, "d") })
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
g.toISOString()
|
|
842
842
|
);
|
|
843
843
|
}) })
|
|
844
844
|
]
|
|
@@ -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
|
|
@@ -884,130 +884,130 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
884
884
|
defaultValue: u,
|
|
885
885
|
onChange: y,
|
|
886
886
|
readOnly: f,
|
|
887
|
-
placeholder:
|
|
888
|
-
id:
|
|
889
|
-
name:
|
|
887
|
+
placeholder: k = "dd.mm.åååå",
|
|
888
|
+
id: m,
|
|
889
|
+
name: h,
|
|
890
890
|
required: b,
|
|
891
891
|
disabled: v,
|
|
892
892
|
onClick: p,
|
|
893
|
-
onFocus:
|
|
893
|
+
onFocus: g,
|
|
894
894
|
// Send ekstern onFocus videre
|
|
895
|
-
onBlur:
|
|
895
|
+
onBlur: x,
|
|
896
896
|
// Send ekstern onBlur videre
|
|
897
|
-
autoComplete:
|
|
898
|
-
"aria-label":
|
|
899
|
-
"aria-labelledby":
|
|
900
|
-
description:
|
|
901
|
-
error:
|
|
897
|
+
autoComplete: F = "off",
|
|
898
|
+
"aria-label": B,
|
|
899
|
+
"aria-labelledby": _,
|
|
900
|
+
description: j,
|
|
901
|
+
error: L,
|
|
902
902
|
// Bruk error-prop for styling
|
|
903
|
-
"data-color":
|
|
903
|
+
"data-color": E,
|
|
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
|
|
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
|
-
), [
|
|
920
|
-
() =>
|
|
919
|
+
), [D, K] = oe(
|
|
920
|
+
() => R(l ?? u)
|
|
921
921
|
);
|
|
922
|
-
|
|
922
|
+
ne(() => {
|
|
923
923
|
if (H) {
|
|
924
|
-
const
|
|
925
|
-
|
|
924
|
+
const I = R(l);
|
|
925
|
+
I !== D && (K(I), M.current && M.current.value !== I && (M.current.value = I));
|
|
926
926
|
}
|
|
927
|
-
}, [l, H,
|
|
928
|
-
const
|
|
929
|
-
(
|
|
930
|
-
const
|
|
931
|
-
let
|
|
932
|
-
const
|
|
933
|
-
|
|
934
|
-
if (
|
|
935
|
-
const
|
|
936
|
-
...
|
|
937
|
-
target: { ...
|
|
927
|
+
}, [l, H, D, R]);
|
|
928
|
+
const te = 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 && (K(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
|
-
),
|
|
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 && !B && !_ && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
955
|
+
const A = n && typeof n == "string" ? _ || `${m}-label` : void 0, P = j ? `${m}-desc` : void 0, z = L ? `${m}-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
|
-
className:
|
|
962
|
-
"data-color":
|
|
963
|
-
"data-size":
|
|
961
|
+
className: Y,
|
|
962
|
+
"data-color": E,
|
|
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: m, 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
|
-
placeholder:
|
|
979
|
-
id:
|
|
980
|
-
name:
|
|
978
|
+
placeholder: k,
|
|
979
|
+
id: m,
|
|
980
|
+
name: h,
|
|
981
981
|
required: b,
|
|
982
982
|
disabled: v,
|
|
983
983
|
onClick: p,
|
|
984
|
-
onChange:
|
|
985
|
-
onFocus:
|
|
986
|
-
onBlur:
|
|
987
|
-
autoComplete:
|
|
988
|
-
"aria-label":
|
|
989
|
-
"aria-labelledby":
|
|
990
|
-
"aria-describedby":
|
|
991
|
-
"aria-invalid": !!
|
|
992
|
-
className:
|
|
993
|
-
...
|
|
984
|
+
onChange: te,
|
|
985
|
+
onFocus: g,
|
|
986
|
+
onBlur: x,
|
|
987
|
+
autoComplete: F,
|
|
988
|
+
"aria-label": B,
|
|
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,248 +1015,248 @@ 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
|
|
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 U(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 U(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 || U(t) <= U(e)) return 0;
|
|
1070
|
+
const n = Ie(U(t), U(e));
|
|
1071
|
+
return U(n / t);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return Math.round(
|
|
1073
|
+
function gr(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
|
|
1103
|
+
function mr(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
|
-
function
|
|
1126
|
-
let
|
|
1127
|
-
function
|
|
1125
|
+
function Fe() {
|
|
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
|
-
|
|
1157
|
+
m(), 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
|
|
1166
|
-
|
|
1163
|
+
for (o = v, d += p; d >= a; )
|
|
1164
|
+
n(), d -= a;
|
|
1165
|
+
const g = d / a;
|
|
1166
|
+
s(g), l && (l = e.requestAnimationFrame(f));
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
l || (l =
|
|
1168
|
+
function k() {
|
|
1169
|
+
l || (l = e.requestAnimationFrame(f));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
|
|
1171
|
+
function m() {
|
|
1172
|
+
e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function h() {
|
|
1175
1175
|
o = null, d = 0;
|
|
1176
1176
|
}
|
|
1177
1177
|
return {
|
|
1178
1178
|
init: u,
|
|
1179
1179
|
destroy: y,
|
|
1180
|
-
start:
|
|
1181
|
-
stop:
|
|
1180
|
+
start: k,
|
|
1181
|
+
stop: m,
|
|
1182
1182
|
update: n,
|
|
1183
|
-
render:
|
|
1183
|
+
render: s
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function fr(
|
|
1187
|
-
const n =
|
|
1188
|
-
function u(
|
|
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
|
+
function u(h) {
|
|
1189
1189
|
const {
|
|
1190
1190
|
height: b,
|
|
1191
1191
|
width: v
|
|
1192
|
-
} =
|
|
1193
|
-
return
|
|
1192
|
+
} = h;
|
|
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
|
-
function h
|
|
1202
|
-
return
|
|
1201
|
+
function k(h) {
|
|
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
|
-
direction:
|
|
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 = U(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
|
|
1241
|
+
function Nt(t, e, n) {
|
|
1242
1242
|
const {
|
|
1243
|
-
constrain:
|
|
1244
|
-
} = fe(0,
|
|
1245
|
-
let
|
|
1246
|
-
function o(
|
|
1247
|
-
return n ?
|
|
1243
|
+
constrain: s
|
|
1244
|
+
} = fe(0, t), i = t + 1;
|
|
1245
|
+
let a = o(e);
|
|
1246
|
+
function o(k) {
|
|
1247
|
+
return n ? U((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
|
-
return
|
|
1250
|
+
return a;
|
|
1251
1251
|
}
|
|
1252
|
-
function l(
|
|
1253
|
-
return
|
|
1252
|
+
function l(k) {
|
|
1253
|
+
return a = o(k), f;
|
|
1254
1254
|
}
|
|
1255
|
-
function u(
|
|
1256
|
-
return y().set(d() +
|
|
1255
|
+
function u(k) {
|
|
1256
|
+
return y().set(d() + k);
|
|
1257
1257
|
}
|
|
1258
1258
|
function y() {
|
|
1259
|
-
return
|
|
1259
|
+
return Nt(t, d(), n);
|
|
1260
1260
|
}
|
|
1261
1261
|
const f = {
|
|
1262
1262
|
get: d,
|
|
@@ -1266,96 +1266,96 @@ function Et(e, t, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, m, h, b, v, p, g) {
|
|
1270
1270
|
const {
|
|
1271
|
-
cross:
|
|
1272
|
-
direction:
|
|
1273
|
-
} =
|
|
1271
|
+
cross: x,
|
|
1272
|
+
direction: F
|
|
1273
|
+
} = t, B = ["INPUT", "SELECT", "TEXTAREA"], _ = {
|
|
1274
1274
|
passive: !1
|
|
1275
|
-
},
|
|
1275
|
+
}, j = Fe(), L = Fe(), E = fe(50, 225).constrain(m.measure(20)), $ = {
|
|
1276
1276
|
mouse: 300,
|
|
1277
1277
|
touch: 400
|
|
1278
|
-
},
|
|
1278
|
+
}, N = {
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
|
-
}, H =
|
|
1282
|
-
let
|
|
1283
|
-
function
|
|
1284
|
-
if (!
|
|
1285
|
-
function
|
|
1286
|
-
(
|
|
1281
|
+
}, H = h ? 43 : 25;
|
|
1282
|
+
let M = !1, R = 0, D = 0, K = !1, te = !1, Y = !1, q = !1;
|
|
1283
|
+
function re(w) {
|
|
1284
|
+
if (!g) return;
|
|
1285
|
+
function O(Z) {
|
|
1286
|
+
(Re(g) || g(w, Z)) && I(Z);
|
|
1287
1287
|
}
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1290
|
-
},
|
|
1291
|
-
}).add(
|
|
1288
|
+
const G = e;
|
|
1289
|
+
j.add(G, "dragstart", (Z) => Z.preventDefault(), _).add(G, "touchmove", () => {
|
|
1290
|
+
}, _).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, _).add(w, "touchend", W).add(w, "mousemove", C, _).add(w, "mouseup", W);
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const
|
|
1302
|
-
return
|
|
1300
|
+
function P(w) {
|
|
1301
|
+
const O = w.nodeName || "";
|
|
1302
|
+
return B.includes(O);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return (
|
|
1304
|
+
function z() {
|
|
1305
|
+
return (h ? N : $)[q ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
const
|
|
1309
|
-
return
|
|
1307
|
+
function S(w, O) {
|
|
1308
|
+
const G = f.add(et(w) * -1), Z = y.byDistance(w, !h).distance;
|
|
1309
|
+
return h || U(w) < E ? 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) || (K = !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 W(
|
|
1320
|
-
const
|
|
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 (!te && !q && (!w.cancelable || (te = le > de, !te)))
|
|
1319
|
+
return W(w);
|
|
1320
|
+
const ge = a.pointerMove(w);
|
|
1321
|
+
le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(F(ge)), w.preventDefault();
|
|
1322
1322
|
}
|
|
1323
|
-
function W(
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1323
|
+
function W(w) {
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * z(), le = S(F(Z), G), de = ur(Z, le), ge = H - 10 * de, ce = p + de / 50;
|
|
1325
|
+
te = !1, K = !1, L.clear(), u.useDuration(ge).useFriction(ce), l.distance(le, !h), q = !1, k.emit("pointerUp");
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1327
|
+
function J(w) {
|
|
1328
|
+
Y && (w.stopPropagation(), w.preventDefault(), Y = !1);
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1330
|
+
function X() {
|
|
1331
|
+
return K;
|
|
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
|
|
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
|
-
function o(f,
|
|
1345
|
-
const
|
|
1346
|
-
return (
|
|
1344
|
+
function o(f, k) {
|
|
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
|
|
1353
|
-
return
|
|
1352
|
+
const k = o(f) - o(i), m = a(f) - a(s) > 170;
|
|
1353
|
+
return i = f, m && (s = f), k;
|
|
1354
1354
|
}
|
|
1355
1355
|
function u(f) {
|
|
1356
|
-
if (!
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1356
|
+
if (!s || !i) return 0;
|
|
1357
|
+
const k = o(i) - o(s), m = a(f) - a(s), h = a(f) - a(i) > 170, b = k / m;
|
|
1358
|
+
return m && !h && U(b) > 0.1 ? b : 0;
|
|
1359
1359
|
}
|
|
1360
1360
|
return {
|
|
1361
1361
|
pointerDown: d,
|
|
@@ -1365,79 +1365,79 @@ function hr(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
|
-
function
|
|
1400
|
-
return
|
|
1401
|
-
}
|
|
1402
|
-
function
|
|
1403
|
-
if (!
|
|
1404
|
-
u =
|
|
1405
|
-
function p(
|
|
1406
|
-
for (const
|
|
1399
|
+
function k(v) {
|
|
1400
|
+
return i.measureSize(o.measure(v));
|
|
1401
|
+
}
|
|
1402
|
+
function m(v) {
|
|
1403
|
+
if (!a) return;
|
|
1404
|
+
u = k(t), y = s.map(k);
|
|
1405
|
+
function p(g) {
|
|
1406
|
+
for (const x of g) {
|
|
1407
1407
|
if (f) return;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1410
|
-
v.reInit(),
|
|
1408
|
+
const F = x.target === t, B = s.indexOf(x.target), _ = F ? u : y[B], j = k(F ? t : s[B]);
|
|
1409
|
+
if (U(j - _) >= 0.5) {
|
|
1410
|
+
v.reInit(), e.emit("resize");
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
l = new ResizeObserver((
|
|
1416
|
-
(
|
|
1415
|
+
l = new ResizeObserver((g) => {
|
|
1416
|
+
(Re(a) || a(v, g)) && p(g);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
|
-
d.forEach((
|
|
1418
|
+
d.forEach((g) => l.observe(g));
|
|
1419
1419
|
});
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function h() {
|
|
1422
1422
|
f = !0, l && l.disconnect();
|
|
1423
1423
|
}
|
|
1424
1424
|
return {
|
|
1425
|
-
init:
|
|
1426
|
-
destroy:
|
|
1425
|
+
init: m,
|
|
1426
|
+
destroy: h
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
let o = 0, d = 0, l =
|
|
1431
|
-
function
|
|
1432
|
-
const
|
|
1433
|
-
let
|
|
1434
|
-
return
|
|
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
|
+
function k() {
|
|
1432
|
+
const _ = s.get() - t.get(), j = !l;
|
|
1433
|
+
let L = 0;
|
|
1434
|
+
return j ? (o = 0, n.set(s), t.set(s), L = _) : (n.set(t), o += _ / l, o *= u, y += o, t.add(o), L = y - f), d = et(L), f = y, B;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1436
|
+
function m() {
|
|
1437
|
+
const _ = s.get() - e.get();
|
|
1438
|
+
return U(_) < 1e-3;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function h() {
|
|
1441
1441
|
return l;
|
|
1442
1442
|
}
|
|
1443
1443
|
function b() {
|
|
@@ -1447,43 +1447,43 @@ function Tr(e, t, n, r, a, s) {
|
|
|
1447
1447
|
return o;
|
|
1448
1448
|
}
|
|
1449
1449
|
function p() {
|
|
1450
|
-
return
|
|
1450
|
+
return x(i);
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1452
|
+
function g() {
|
|
1453
|
+
return F(a);
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
return l =
|
|
1455
|
+
function x(_) {
|
|
1456
|
+
return l = _, B;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return u =
|
|
1458
|
+
function F(_) {
|
|
1459
|
+
return u = _, B;
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const B = {
|
|
1462
1462
|
direction: b,
|
|
1463
|
-
duration:
|
|
1463
|
+
duration: h,
|
|
1464
1464
|
velocity: v,
|
|
1465
|
-
seek:
|
|
1466
|
-
settled:
|
|
1467
|
-
useBaseFriction:
|
|
1465
|
+
seek: k,
|
|
1466
|
+
settled: m,
|
|
1467
|
+
useBaseFriction: g,
|
|
1468
1468
|
useBaseDuration: p,
|
|
1469
|
-
useFriction:
|
|
1470
|
-
useDuration:
|
|
1469
|
+
useFriction: F,
|
|
1470
|
+
useDuration: x
|
|
1471
1471
|
};
|
|
1472
|
-
return
|
|
1472
|
+
return B;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
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
|
-
function y(
|
|
1480
|
+
function y(m) {
|
|
1481
1481
|
if (!u()) return;
|
|
1482
|
-
const
|
|
1483
|
-
n.subtract(v * p), !
|
|
1482
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", b = U(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / o);
|
|
1483
|
+
n.subtract(v * p), !m && U(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1484
1484
|
}
|
|
1485
|
-
function f(
|
|
1486
|
-
l = !
|
|
1485
|
+
function f(m) {
|
|
1486
|
+
l = !m;
|
|
1487
1487
|
}
|
|
1488
1488
|
return {
|
|
1489
1489
|
shouldConstrain: u,
|
|
@@ -1491,88 +1491,88 @@ function xr(e, t, n, r, a) {
|
|
|
1491
1491
|
toggleActive: f
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
function Sr(
|
|
1495
|
-
const
|
|
1496
|
-
function u(
|
|
1497
|
-
return Ie(
|
|
1494
|
+
function Sr(t, e, n, s, i) {
|
|
1495
|
+
const a = fe(-e + t, 0), o = f(), d = y(), l = k();
|
|
1496
|
+
function u(h, b) {
|
|
1497
|
+
return Ie(h, b) <= 1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function y() {
|
|
1500
|
-
const
|
|
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() {
|
|
1504
|
-
return n.map((
|
|
1504
|
+
return n.map((h, b) => {
|
|
1505
1505
|
const {
|
|
1506
1506
|
min: v,
|
|
1507
1507
|
max: p
|
|
1508
|
-
} =
|
|
1509
|
-
return
|
|
1510
|
-
}).map((
|
|
1508
|
+
} = a, g = a.constrain(h), x = !b, F = tt(n, b);
|
|
1509
|
+
return x ? p : F || u(v, g) ? v : u(p, g) ? p : g;
|
|
1510
|
+
}).map((h) => parseFloat(h.toFixed(3)));
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1513
|
-
if (
|
|
1514
|
-
if (
|
|
1512
|
+
function k() {
|
|
1513
|
+
if (e <= t + i) return [a.max];
|
|
1514
|
+
if (s === "keepSnaps") return o;
|
|
1515
1515
|
const {
|
|
1516
|
-
min:
|
|
1516
|
+
min: h,
|
|
1517
1517
|
max: b
|
|
1518
1518
|
} = d;
|
|
1519
|
-
return o.slice(
|
|
1519
|
+
return o.slice(h, b);
|
|
1520
1520
|
}
|
|
1521
1521
|
return {
|
|
1522
1522
|
snapsContained: l,
|
|
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(
|
|
1537
|
-
function u(
|
|
1538
|
-
return
|
|
1536
|
+
} = fe(a, o);
|
|
1537
|
+
function u(k) {
|
|
1538
|
+
return k === 1 ? l(n.get()) : k === -1 ? d(n.get()) : !1;
|
|
1539
1539
|
}
|
|
1540
|
-
function y(
|
|
1541
|
-
if (!u(
|
|
1542
|
-
const
|
|
1543
|
-
|
|
1540
|
+
function y(k) {
|
|
1541
|
+
if (!u(k)) return;
|
|
1542
|
+
const m = t * (k * -1);
|
|
1543
|
+
s.forEach((h) => h.add(m));
|
|
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 = m();
|
|
1569
1569
|
function f() {
|
|
1570
|
-
return d(
|
|
1570
|
+
return d(s).map((b) => ie(b)[o] - b[0][a]).map(U);
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1573
|
-
return
|
|
1572
|
+
function k() {
|
|
1573
|
+
return s.map((b) => n[a] - b[a]).map((b) => -U(b));
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function m() {
|
|
1576
1576
|
return d(u).map((b) => b[0]).map((b, v) => b + l[v]);
|
|
1577
1577
|
}
|
|
1578
1578
|
return {
|
|
@@ -1580,46 +1580,46 @@ 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
|
|
1592
|
-
return n.length === 1 ? [
|
|
1593
|
-
const p = !b,
|
|
1591
|
+
const k = o(a), m = !t || e === "keepSnaps";
|
|
1592
|
+
return n.length === 1 ? [a] : m ? k : k.slice(d, l).map((h, b, v) => {
|
|
1593
|
+
const p = !b, g = tt(v, b);
|
|
1594
1594
|
if (p) {
|
|
1595
|
-
const
|
|
1596
|
-
return
|
|
1595
|
+
const x = ie(v[0]) + 1;
|
|
1596
|
+
return jt(x);
|
|
1597
1597
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
const
|
|
1600
|
-
return
|
|
1598
|
+
if (g) {
|
|
1599
|
+
const x = _e(a) - ie(v)[0] + 1;
|
|
1600
|
+
return jt(x, ie(v)[0]);
|
|
1601
1601
|
}
|
|
1602
|
-
return
|
|
1602
|
+
return h;
|
|
1603
1603
|
});
|
|
1604
1604
|
}
|
|
1605
1605
|
return {
|
|
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
|
-
} =
|
|
1615
|
-
function l(
|
|
1616
|
-
return
|
|
1614
|
+
} = s;
|
|
1615
|
+
function l(h) {
|
|
1616
|
+
return h.concat().sort((b, v) => U(b) - U(v))[0];
|
|
1617
1617
|
}
|
|
1618
|
-
function u(
|
|
1619
|
-
const b =
|
|
1620
|
-
diff: y(
|
|
1621
|
-
index:
|
|
1622
|
-
})).sort((
|
|
1618
|
+
function u(h) {
|
|
1619
|
+
const b = t ? o(h) : d(h), v = e.map((g, x) => ({
|
|
1620
|
+
diff: y(g - b, 0),
|
|
1621
|
+
index: x
|
|
1622
|
+
})).sort((g, x) => U(g.diff) - U(x.diff)), {
|
|
1623
1623
|
index: p
|
|
1624
1624
|
} = v[0];
|
|
1625
1625
|
return {
|
|
@@ -1627,129 +1627,129 @@ function Ar(e, t, n, r, a) {
|
|
|
1627
1627
|
distance: b
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
function y(
|
|
1631
|
-
const v = [
|
|
1632
|
-
if (!
|
|
1630
|
+
function y(h, b) {
|
|
1631
|
+
const v = [h, h + n, h - n];
|
|
1632
|
+
if (!t) return h;
|
|
1633
1633
|
if (!b) return l(v);
|
|
1634
|
-
const p = v.filter((
|
|
1635
|
-
return p.length ? l(p) :
|
|
1634
|
+
const p = v.filter((g) => et(g) === b);
|
|
1635
|
+
return p.length ? l(p) : ie(v) - n;
|
|
1636
1636
|
}
|
|
1637
|
-
function f(
|
|
1638
|
-
const v =
|
|
1637
|
+
function f(h, b) {
|
|
1638
|
+
const v = e[h] - i.get(), p = y(v, b);
|
|
1639
1639
|
return {
|
|
1640
|
-
index:
|
|
1640
|
+
index: h,
|
|
1641
1641
|
distance: p
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|
|
1644
|
-
function h
|
|
1645
|
-
const v =
|
|
1644
|
+
function k(h, b) {
|
|
1645
|
+
const v = i.get() + h, {
|
|
1646
1646
|
index: p,
|
|
1647
|
-
distance:
|
|
1648
|
-
} = u(v),
|
|
1649
|
-
if (!b ||
|
|
1647
|
+
distance: g
|
|
1648
|
+
} = u(v), x = !t && a(v);
|
|
1649
|
+
if (!b || x) return {
|
|
1650
1650
|
index: p,
|
|
1651
|
-
distance:
|
|
1651
|
+
distance: h
|
|
1652
1652
|
};
|
|
1653
|
-
const
|
|
1653
|
+
const F = e[p] - g, B = h + y(F, 0);
|
|
1654
1654
|
return {
|
|
1655
1655
|
index: p,
|
|
1656
|
-
distance:
|
|
1656
|
+
distance: B
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
1659
|
return {
|
|
1660
|
-
byDistance:
|
|
1660
|
+
byDistance: k,
|
|
1661
1661
|
byIndex: f,
|
|
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
|
|
1668
|
-
|
|
1667
|
+
const k = f.distance, m = f.index !== e.get();
|
|
1668
|
+
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), m && (n.set(e.get()), e.set(f.index), o.emit("select"));
|
|
1669
1669
|
}
|
|
1670
|
-
function l(f,
|
|
1671
|
-
const
|
|
1672
|
-
d(
|
|
1670
|
+
function l(f, k) {
|
|
1671
|
+
const m = i.byDistance(f, k);
|
|
1672
|
+
d(m);
|
|
1673
1673
|
}
|
|
1674
|
-
function u(f,
|
|
1675
|
-
const
|
|
1676
|
-
d(
|
|
1674
|
+
function u(f, k) {
|
|
1675
|
+
const m = e.clone().set(f), h = i.byIndex(m.get(), k);
|
|
1676
|
+
d(h);
|
|
1677
1677
|
}
|
|
1678
1678
|
return {
|
|
1679
1679
|
distance: l,
|
|
1680
1680
|
index: u
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Fr(t, e, n, s, i, a, o, d) {
|
|
1684
1684
|
const l = {
|
|
1685
1685
|
passive: !0,
|
|
1686
1686
|
capture: !0
|
|
1687
1687
|
};
|
|
1688
1688
|
let u = 0;
|
|
1689
|
-
function y(
|
|
1689
|
+
function y(m) {
|
|
1690
1690
|
if (!d) return;
|
|
1691
|
-
function
|
|
1691
|
+
function h(b) {
|
|
1692
1692
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
1693
|
-
o.emit("slideFocusStart"),
|
|
1694
|
-
const
|
|
1695
|
-
|
|
1693
|
+
o.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1694
|
+
const g = n.findIndex((x) => x.includes(b));
|
|
1695
|
+
Qe(g) && (i.useDuration(0), s.index(g, 0), o.emit("slideFocus"));
|
|
1696
1696
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
(
|
|
1697
|
+
a.add(document, "keydown", f, !1), e.forEach((b, v) => {
|
|
1698
|
+
a.add(b, "focus", (p) => {
|
|
1699
|
+
(Re(d) || d(m, p)) && h(v);
|
|
1700
1700
|
}, l);
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
|
-
function f(
|
|
1704
|
-
|
|
1703
|
+
function f(m) {
|
|
1704
|
+
m.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
|
|
1705
1705
|
}
|
|
1706
1706
|
return {
|
|
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 Pt(
|
|
1735
|
-
const n =
|
|
1736
|
-
let
|
|
1737
|
-
function o(
|
|
1738
|
-
return `translate3d(${
|
|
1734
|
+
function Pt(t, e) {
|
|
1735
|
+
const n = t.scroll === "x" ? o : d, s = e.style;
|
|
1736
|
+
let i = null, a = !1;
|
|
1737
|
+
function o(k) {
|
|
1738
|
+
return `translate3d(${k}px,0px,0px)`;
|
|
1739
1739
|
}
|
|
1740
|
-
function d(
|
|
1741
|
-
return `translate3d(0px,${
|
|
1740
|
+
function d(k) {
|
|
1741
|
+
return `translate3d(0px,${k}px,0px)`;
|
|
1742
1742
|
}
|
|
1743
|
-
function l(
|
|
1744
|
-
if (
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1743
|
+
function l(k) {
|
|
1744
|
+
if (a) return;
|
|
1745
|
+
const m = gr(t.direction(k));
|
|
1746
|
+
m !== i && (s.transform = n(m), i = m);
|
|
1747
1747
|
}
|
|
1748
|
-
function u(
|
|
1749
|
-
|
|
1748
|
+
function u(k) {
|
|
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,316 +1757,316 @@ function Pt(e, t) {
|
|
|
1757
1757
|
toggleActive: u
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
function _r(
|
|
1761
|
-
const y =
|
|
1762
|
-
function
|
|
1763
|
-
return
|
|
1764
|
-
}
|
|
1765
|
-
function
|
|
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(g());
|
|
1762
|
+
function m(j, L) {
|
|
1763
|
+
return j.reduce((E, $) => E - i[$], L);
|
|
1764
|
+
}
|
|
1765
|
+
function h(j, L) {
|
|
1766
|
+
return j.reduce((E, $) => m(E, L) > 0 ? E.concat([$]) : E, []);
|
|
1767
|
+
}
|
|
1768
|
+
function b(j) {
|
|
1769
|
+
return a.map((L, E) => ({
|
|
1770
|
+
start: L - s[E] + 0.5 + j,
|
|
1771
|
+
end: L + e - 0.5 + j
|
|
1772
1772
|
}));
|
|
1773
1773
|
}
|
|
1774
|
-
function v(
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1777
|
-
const H =
|
|
1774
|
+
function v(j, L, E) {
|
|
1775
|
+
const $ = b(L);
|
|
1776
|
+
return j.map((N) => {
|
|
1777
|
+
const H = E ? 0 : -n, M = E ? n : 0, R = E ? "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: Pt(
|
|
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
|
-
function
|
|
1792
|
-
const
|
|
1793
|
-
return v(
|
|
1791
|
+
function g() {
|
|
1792
|
+
const j = e - o[0] - 1, L = h(y, j);
|
|
1793
|
+
return v(L, -n, !0);
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
return
|
|
1797
|
-
index:
|
|
1795
|
+
function x() {
|
|
1796
|
+
return k.every(({
|
|
1797
|
+
index: j
|
|
1798
1798
|
}) => {
|
|
1799
|
-
const
|
|
1800
|
-
return
|
|
1799
|
+
const L = y.filter((E) => E !== j);
|
|
1800
|
+
return m(L, e) <= 0.1;
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
|
|
1803
|
+
function F() {
|
|
1804
|
+
k.forEach((j) => {
|
|
1805
1805
|
const {
|
|
1806
|
-
target:
|
|
1807
|
-
translate:
|
|
1808
|
-
slideLocation:
|
|
1809
|
-
} =
|
|
1810
|
-
|
|
1806
|
+
target: L,
|
|
1807
|
+
translate: E,
|
|
1808
|
+
slideLocation: $
|
|
1809
|
+
} = j, N = L();
|
|
1810
|
+
N !== $.get() && (E.to(N), $.set(N));
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1814
|
-
|
|
1813
|
+
function B() {
|
|
1814
|
+
k.forEach((j) => j.translate.clear());
|
|
1815
1815
|
}
|
|
1816
1816
|
return {
|
|
1817
|
-
canLoop:
|
|
1818
|
-
clear:
|
|
1819
|
-
loop:
|
|
1820
|
-
loopPoints:
|
|
1817
|
+
canLoop: x,
|
|
1818
|
+
clear: B,
|
|
1819
|
+
loop: F,
|
|
1820
|
+
loopPoints: k
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
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
|
-
d = new IntersectionObserver((
|
|
1853
|
-
l || (
|
|
1854
|
-
const v =
|
|
1855
|
-
|
|
1856
|
-
}),
|
|
1852
|
+
d = new IntersectionObserver((h) => {
|
|
1853
|
+
l || (h.forEach((b) => {
|
|
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
|
-
function f(
|
|
1866
|
-
return
|
|
1865
|
+
function f(h) {
|
|
1866
|
+
return Ae(i).reduce((b, v) => {
|
|
1867
1867
|
const p = parseInt(v), {
|
|
1868
|
-
isIntersecting:
|
|
1869
|
-
} =
|
|
1870
|
-
return (
|
|
1868
|
+
isIntersecting: g
|
|
1869
|
+
} = i[p];
|
|
1870
|
+
return (h && g || !h && !g) && b.push(p), b;
|
|
1871
1871
|
}, []);
|
|
1872
1872
|
}
|
|
1873
|
-
function h
|
|
1874
|
-
if (
|
|
1875
|
-
if (!
|
|
1876
|
-
const b = f(
|
|
1877
|
-
return
|
|
1873
|
+
function k(h = !0) {
|
|
1874
|
+
if (h && a) return a;
|
|
1875
|
+
if (!h && o) return o;
|
|
1876
|
+
const b = f(h);
|
|
1877
|
+
return h && (a = b), h || (o = b), b;
|
|
1878
1878
|
}
|
|
1879
1879
|
return {
|
|
1880
1880
|
init: u,
|
|
1881
1881
|
destroy: y,
|
|
1882
|
-
get:
|
|
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
|
-
} =
|
|
1891
|
-
function
|
|
1890
|
+
} = t, u = n[0] && i, y = h(), f = b(), k = n.map(o), m = v();
|
|
1891
|
+
function h() {
|
|
1892
1892
|
if (!u) return 0;
|
|
1893
|
-
const
|
|
1894
|
-
return
|
|
1893
|
+
const g = n[0];
|
|
1894
|
+
return U(e[d] - g[d]);
|
|
1895
1895
|
}
|
|
1896
1896
|
function b() {
|
|
1897
1897
|
if (!u) return 0;
|
|
1898
|
-
const
|
|
1899
|
-
return parseFloat(
|
|
1898
|
+
const g = a.getComputedStyle(ie(s));
|
|
1899
|
+
return parseFloat(g.getPropertyValue(`margin-${l}`));
|
|
1900
1900
|
}
|
|
1901
1901
|
function v() {
|
|
1902
|
-
return n.map((
|
|
1903
|
-
const
|
|
1904
|
-
return
|
|
1905
|
-
}).map(
|
|
1902
|
+
return n.map((g, x, F) => {
|
|
1903
|
+
const B = !x, _ = tt(F, x);
|
|
1904
|
+
return B ? k[x] + y : _ ? k[x] + f : F[x + 1][d] - g[d];
|
|
1905
|
+
}).map(U);
|
|
1906
1906
|
}
|
|
1907
1907
|
return {
|
|
1908
|
-
slideSizes:
|
|
1909
|
-
slideSizesWithGaps:
|
|
1908
|
+
slideSizes: k,
|
|
1909
|
+
slideSizesWithGaps: m,
|
|
1910
1910
|
startGap: y,
|
|
1911
1911
|
endGap: f
|
|
1912
1912
|
};
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
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
|
-
} =
|
|
1920
|
-
function
|
|
1921
|
-
return
|
|
1922
|
-
}
|
|
1923
|
-
function
|
|
1924
|
-
return p.length ?
|
|
1925
|
-
const
|
|
1926
|
-
return
|
|
1927
|
-
}, []).map((
|
|
1928
|
-
const
|
|
1929
|
-
return p.slice(
|
|
1919
|
+
} = t, k = Qe(n);
|
|
1920
|
+
function m(p, g) {
|
|
1921
|
+
return Le(p).filter((x) => x % g === 0).map((x) => p.slice(x, x + g));
|
|
1922
|
+
}
|
|
1923
|
+
function h(p) {
|
|
1924
|
+
return p.length ? Le(p).reduce((g, x, F) => {
|
|
1925
|
+
const B = ie(g) || 0, _ = B === 0, j = x === _e(p), L = i[u] - a[B][u], E = i[u] - a[x][y], $ = !s && _ ? f(o) : 0, N = !s && j ? f(d) : 0, H = U(E - N - (L + $));
|
|
1926
|
+
return F && H > e + l && g.push(x), j && g.push(p.length), g;
|
|
1927
|
+
}, []).map((g, x, F) => {
|
|
1928
|
+
const B = Math.max(F[x - 1] || 0);
|
|
1929
|
+
return p.slice(B, g);
|
|
1930
1930
|
}) : [];
|
|
1931
1931
|
}
|
|
1932
1932
|
function b(p) {
|
|
1933
|
-
return
|
|
1933
|
+
return k ? m(p, n) : h(p);
|
|
1934
1934
|
}
|
|
1935
1935
|
return {
|
|
1936
1936
|
groupSlides: b
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function Mr(
|
|
1939
|
+
function Mr(t, e, n, s, i, a, o) {
|
|
1940
1940
|
const {
|
|
1941
1941
|
align: d,
|
|
1942
1942
|
axis: l,
|
|
1943
1943
|
direction: u,
|
|
1944
1944
|
startIndex: y,
|
|
1945
1945
|
loop: f,
|
|
1946
|
-
duration:
|
|
1947
|
-
dragFree:
|
|
1948
|
-
dragThreshold:
|
|
1946
|
+
duration: k,
|
|
1947
|
+
dragFree: m,
|
|
1948
|
+
dragThreshold: h,
|
|
1949
1949
|
inViewThreshold: b,
|
|
1950
1950
|
slidesToScroll: v,
|
|
1951
1951
|
skipSnaps: p,
|
|
1952
|
-
containScroll:
|
|
1953
|
-
watchResize:
|
|
1954
|
-
watchSlides:
|
|
1955
|
-
watchDrag:
|
|
1956
|
-
watchFocus:
|
|
1957
|
-
} =
|
|
1958
|
-
slideSizes:
|
|
1959
|
-
slideSizesWithGaps:
|
|
1960
|
-
startGap:
|
|
1961
|
-
endGap:
|
|
1962
|
-
} =
|
|
1963
|
-
snaps:
|
|
1964
|
-
snapsAligned:
|
|
1965
|
-
} = Dr(
|
|
1966
|
-
snapsContained:
|
|
1967
|
-
scrollContainLimit:
|
|
1968
|
-
} = Sr(H,
|
|
1952
|
+
containScroll: g,
|
|
1953
|
+
watchResize: x,
|
|
1954
|
+
watchSlides: F,
|
|
1955
|
+
watchDrag: B,
|
|
1956
|
+
watchFocus: _
|
|
1957
|
+
} = a, j = 2, L = br(), E = L.measure(e), $ = n.map(L.measure), N = fr(l, u), H = N.measureSize(E), M = vr(H), R = mr(d, H), D = !f && !!g, K = f || !!g, {
|
|
1958
|
+
slideSizes: te,
|
|
1959
|
+
slideSizesWithGaps: Y,
|
|
1960
|
+
startGap: q,
|
|
1961
|
+
endGap: re
|
|
1962
|
+
} = Nr(N, E, $, n, K, i), c = Pr(N, H, v, f, E, $, q, re, j), {
|
|
1963
|
+
snaps: A,
|
|
1964
|
+
snapsAligned: P
|
|
1965
|
+
} = Dr(N, R, E, $, c), z = -ie(A) + ie(Y), {
|
|
1966
|
+
snapsContained: S,
|
|
1967
|
+
scrollContainLimit: I
|
|
1968
|
+
} = Sr(H, z, P, g, j), C = D ? S : P, {
|
|
1969
1969
|
limit: W
|
|
1970
|
-
} = wr(
|
|
1971
|
-
dragHandler:
|
|
1972
|
-
scrollBody:
|
|
1973
|
-
scrollBounds:
|
|
1970
|
+
} = wr(z, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
|
|
1971
|
+
dragHandler: he,
|
|
1972
|
+
scrollBody: He,
|
|
1973
|
+
scrollBounds: We,
|
|
1974
1974
|
options: {
|
|
1975
|
-
loop:
|
|
1975
|
+
loop: Ee
|
|
1976
1976
|
}
|
|
1977
1977
|
}) => {
|
|
1978
|
-
|
|
1979
|
-
},
|
|
1980
|
-
scrollBody:
|
|
1981
|
-
translate:
|
|
1982
|
-
location:
|
|
1983
|
-
offsetLocation:
|
|
1978
|
+
Ee || We.constrain(he.pointerDown()), He.seek();
|
|
1979
|
+
}, O = ({
|
|
1980
|
+
scrollBody: he,
|
|
1981
|
+
translate: He,
|
|
1982
|
+
location: We,
|
|
1983
|
+
offsetLocation: Ee,
|
|
1984
1984
|
previousLocation: Ot,
|
|
1985
|
-
scrollLooper:
|
|
1986
|
-
slideLooper:
|
|
1987
|
-
dragHandler:
|
|
1985
|
+
scrollLooper: $t,
|
|
1986
|
+
slideLooper: Ht,
|
|
1987
|
+
dragHandler: Wt,
|
|
1988
1988
|
animation: Vt,
|
|
1989
|
-
eventHandler:
|
|
1989
|
+
eventHandler: at,
|
|
1990
1990
|
scrollBounds: Gt,
|
|
1991
1991
|
options: {
|
|
1992
|
-
loop:
|
|
1992
|
+
loop: it
|
|
1993
1993
|
}
|
|
1994
|
-
},
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1997
|
-
const
|
|
1998
|
-
|
|
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), ge = De(le), ce = De(le), me = De(le), xe = xr(de, ce, ge, me, k, Z), ze = Lr(f, C, z, W, me), Oe = Ar(G, J, X, xe, ze, me, o), ot = jr(W), rt = Fe(), Rt = Br(e, n, o, b), {
|
|
2000
|
+
slideRegistry: st
|
|
2001
|
+
} = Ir(D, g, C, I, c, V), zt = Fr(t, n, st, Oe, xe, rt, o, _), $e = {
|
|
2002
|
+
ownerDocument: s,
|
|
2003
|
+
ownerWindow: i,
|
|
2004
2004
|
eventHandler: o,
|
|
2005
|
-
containerRect:
|
|
2006
|
-
slideRects:
|
|
2007
|
-
animation:
|
|
2008
|
-
axis:
|
|
2009
|
-
dragHandler:
|
|
2010
|
-
eventStore:
|
|
2011
|
-
percentOfView:
|
|
2012
|
-
index:
|
|
2013
|
-
indexPrevious:
|
|
2005
|
+
containerRect: E,
|
|
2006
|
+
slideRects: $,
|
|
2007
|
+
animation: G,
|
|
2008
|
+
axis: N,
|
|
2009
|
+
dragHandler: hr(N, t, s, i, me, kr(N, i), de, G, Oe, xe, ze, J, o, M, m, h, p, Z, B),
|
|
2010
|
+
eventStore: rt,
|
|
2011
|
+
percentOfView: M,
|
|
2012
|
+
index: J,
|
|
2013
|
+
indexPrevious: X,
|
|
2014
2014
|
limit: W,
|
|
2015
|
-
location:
|
|
2016
|
-
offsetLocation:
|
|
2017
|
-
previousLocation:
|
|
2018
|
-
options:
|
|
2019
|
-
resizeHandler: yr(
|
|
2020
|
-
scrollBody:
|
|
2021
|
-
scrollBounds:
|
|
2022
|
-
scrollLooper: Cr(
|
|
2023
|
-
scrollProgress:
|
|
2024
|
-
scrollSnapList:
|
|
2025
|
-
scrollSnaps:
|
|
2026
|
-
scrollTarget:
|
|
2015
|
+
location: de,
|
|
2016
|
+
offsetLocation: ce,
|
|
2017
|
+
previousLocation: ge,
|
|
2018
|
+
options: a,
|
|
2019
|
+
resizeHandler: yr(e, o, i, n, N, x, L),
|
|
2020
|
+
scrollBody: xe,
|
|
2021
|
+
scrollBounds: Tr(W, ce, me, xe, M),
|
|
2022
|
+
scrollLooper: Cr(z, W, ce, [de, ce, ge, me]),
|
|
2023
|
+
scrollProgress: ot,
|
|
2024
|
+
scrollSnapList: C.map(ot.get),
|
|
2025
|
+
scrollSnaps: C,
|
|
2026
|
+
scrollTarget: ze,
|
|
2027
2027
|
scrollTo: Oe,
|
|
2028
|
-
slideLooper: _r(
|
|
2029
|
-
slideFocus:
|
|
2030
|
-
slidesHandler:
|
|
2031
|
-
slidesInView:
|
|
2032
|
-
slideIndexes:
|
|
2033
|
-
slideRegistry:
|
|
2028
|
+
slideLooper: _r(N, H, z, te, Y, A, C, ce, n),
|
|
2029
|
+
slideFocus: zt,
|
|
2030
|
+
slidesHandler: Er(e, o, F),
|
|
2031
|
+
slidesInView: Rt,
|
|
2032
|
+
slideIndexes: V,
|
|
2033
|
+
slideRegistry: st,
|
|
2034
2034
|
slidesToScroll: c,
|
|
2035
|
-
target:
|
|
2036
|
-
translate: Pt(
|
|
2035
|
+
target: me,
|
|
2036
|
+
translate: Pt(N, e)
|
|
2037
2037
|
};
|
|
2038
|
-
return
|
|
2038
|
+
return $e;
|
|
2039
2039
|
}
|
|
2040
2040
|
function Rr() {
|
|
2041
|
-
let
|
|
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;
|
|
2068
2068
|
}
|
|
2069
|
-
const
|
|
2069
|
+
const zr = {
|
|
2070
2070
|
align: "center",
|
|
2071
2071
|
axis: "x",
|
|
2072
2072
|
container: null,
|
|
@@ -2088,189 +2088,189 @@ const Or = {
|
|
|
2088
2088
|
watchSlides: !0,
|
|
2089
2089
|
watchFocus: !0
|
|
2090
2090
|
};
|
|
2091
|
-
function
|
|
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
|
-
} =
|
|
2131
|
-
on:
|
|
2132
|
-
off:
|
|
2133
|
-
emit:
|
|
2134
|
-
} = l, b =
|
|
2135
|
-
let v = !1, p,
|
|
2136
|
-
function
|
|
2130
|
+
} = a, {
|
|
2131
|
+
on: k,
|
|
2132
|
+
off: m,
|
|
2133
|
+
emit: h
|
|
2134
|
+
} = l, b = N;
|
|
2135
|
+
let v = !1, p, g = u(zr, Me.globalOptions), x = u(g), F = [], B, _, j;
|
|
2136
|
+
function L() {
|
|
2137
2137
|
const {
|
|
2138
|
-
container:
|
|
2139
|
-
slides:
|
|
2140
|
-
} =
|
|
2141
|
-
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2144
|
-
}
|
|
2145
|
-
function
|
|
2146
|
-
const
|
|
2147
|
-
if (
|
|
2148
|
-
const
|
|
2138
|
+
container: V,
|
|
2139
|
+
slides: w
|
|
2140
|
+
} = x;
|
|
2141
|
+
_ = (Ye(V) ? t.querySelector(V) : V) || t.children[0];
|
|
2142
|
+
const G = Ye(w) ? _.querySelectorAll(w) : w;
|
|
2143
|
+
j = [].slice.call(G || _.children);
|
|
2144
|
+
}
|
|
2145
|
+
function E(V) {
|
|
2146
|
+
const w = Mr(t, _, 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 E(O);
|
|
2152
2152
|
}
|
|
2153
|
-
return
|
|
2153
|
+
return w;
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2156
|
-
v || (
|
|
2157
|
-
options:
|
|
2158
|
-
}) =>
|
|
2155
|
+
function $(V, w) {
|
|
2156
|
+
v || (g = u(g, V), x = y(g), F = w || F, L(), p = E(x), f([g, ...F.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(), _.offsetParent && j.length && p.dragHandler.init(X), B = o.init(X, F)));
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2161
|
-
const
|
|
2162
|
-
H(),
|
|
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
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
|
|
2169
|
+
function M() {
|
|
2170
2170
|
v || (v = !0, d.clear(), H(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2173
|
-
!
|
|
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
|
-
|
|
2175
|
+
function D(V) {
|
|
2176
|
+
const w = p.index.add(1).get();
|
|
2177
|
+
R(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const
|
|
2181
|
-
|
|
2179
|
+
function K(V) {
|
|
2180
|
+
const w = p.index.add(-1).get();
|
|
2181
|
+
R(w, V, 1);
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function te() {
|
|
2184
2184
|
return p.index.add(1).get() !== c();
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
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 B;
|
|
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
2216
|
function W() {
|
|
2217
|
-
return
|
|
2217
|
+
return _;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2220
|
-
return
|
|
2219
|
+
function J() {
|
|
2220
|
+
return j;
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2223
|
-
canScrollNext:
|
|
2224
|
-
canScrollPrev:
|
|
2222
|
+
const X = {
|
|
2223
|
+
canScrollNext: te,
|
|
2224
|
+
canScrollPrev: Y,
|
|
2225
2225
|
containerNode: W,
|
|
2226
|
-
internalEngine:
|
|
2227
|
-
destroy:
|
|
2228
|
-
off:
|
|
2229
|
-
on:
|
|
2230
|
-
emit:
|
|
2231
|
-
plugins:
|
|
2232
|
-
previousScrollSnap:
|
|
2226
|
+
internalEngine: I,
|
|
2227
|
+
destroy: M,
|
|
2228
|
+
off: m,
|
|
2229
|
+
on: k,
|
|
2230
|
+
emit: h,
|
|
2231
|
+
plugins: S,
|
|
2232
|
+
previousScrollSnap: A,
|
|
2233
2233
|
reInit: b,
|
|
2234
|
-
rootNode:
|
|
2235
|
-
scrollNext:
|
|
2236
|
-
scrollPrev:
|
|
2237
|
-
scrollProgress:
|
|
2238
|
-
scrollSnapList:
|
|
2239
|
-
scrollTo:
|
|
2234
|
+
rootNode: C,
|
|
2235
|
+
scrollNext: D,
|
|
2236
|
+
scrollPrev: K,
|
|
2237
|
+
scrollProgress: re,
|
|
2238
|
+
scrollSnapList: q,
|
|
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 ne(() => {
|
|
2253
|
+
Xe(n.current, t) || (n.current = t, l());
|
|
2254
|
+
}, [t, l]), ne(() => {
|
|
2255
|
+
cr(s.current, e) || (s.current = e, l());
|
|
2256
|
+
}, [e, l]), ne(() => {
|
|
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:
|
|
2268
|
-
viewport:
|
|
2269
|
-
slides:
|
|
2270
|
-
slide:
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
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
|
+
viewport: Wr,
|
|
2269
|
+
slides: Vr,
|
|
2270
|
+
slide: Gr,
|
|
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 zr = "_carouselContainer_1bu1s_1", Vr = "_viewport_1bu1s_11", Gr = "_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,123 +2296,123 @@ const zr = "_carouselContainer_1bu1s_1", Vr = "_viewport_1bu1s_11", Gr = "_slide
|
|
|
2296
2296
|
align: "start",
|
|
2297
2297
|
containScroll: "trimSnaps",
|
|
2298
2298
|
slidesToScroll: 1
|
|
2299
|
-
}, [
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
}, [
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2299
|
+
}, [k, m] = nt(f), [h, b] = oe(0), [v, p] = oe([]), [g, x] = oe([]);
|
|
2300
|
+
ne(() => {
|
|
2301
|
+
x(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
|
+
}, [t]);
|
|
2303
|
+
const F = ae((M) => {
|
|
2304
|
+
x((R) => {
|
|
2305
|
+
const D = [...R];
|
|
2306
|
+
return D[M] = !0, D;
|
|
2307
2307
|
});
|
|
2308
|
-
}, []),
|
|
2309
|
-
|
|
2310
|
-
}, [
|
|
2311
|
-
|
|
2312
|
-
if (
|
|
2313
|
-
return
|
|
2314
|
-
|
|
2308
|
+
}, []), B = ve(() => n * 1e3, [n]), _ = ae(() => {
|
|
2309
|
+
m && b(m.selectedScrollSnap());
|
|
2310
|
+
}, [m]), j = ae((M) => m && m.scrollTo(M), [m]), L = ae(() => m && m.scrollPrev(), [m]), E = ae(() => m && m.scrollNext(), [m]);
|
|
2311
|
+
ne(() => {
|
|
2312
|
+
if (m)
|
|
2313
|
+
return m.on("select", _), m.on("reInit", _), p(m.scrollSnapList()), () => {
|
|
2314
|
+
m.off("select", _), m.off("reInit", _);
|
|
2315
2315
|
};
|
|
2316
|
-
}, [
|
|
2317
|
-
|
|
2318
|
-
}, [
|
|
2319
|
-
if (!
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2322
|
-
},
|
|
2316
|
+
}, [m, _]), ne(() => {
|
|
2317
|
+
m && (m.reInit(), p(m.scrollSnapList()));
|
|
2318
|
+
}, [m, t, o, d]), ne(() => {
|
|
2319
|
+
if (!e || !m || !t || t.length <= 1) return;
|
|
2320
|
+
const M = window.setInterval(() => {
|
|
2321
|
+
m.canScrollNext() && m.scrollNext();
|
|
2322
|
+
}, B);
|
|
2323
2323
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2324
|
+
window.clearInterval(M);
|
|
2325
2325
|
};
|
|
2326
|
-
}, [
|
|
2327
|
-
const
|
|
2328
|
-
return /* @__PURE__ */
|
|
2326
|
+
}, [e, B, m, 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
2341
|
marginLeft: `-${H}px`,
|
|
2342
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 ${
|
|
2349
|
+
flex: `0 0 ${N}`,
|
|
2350
2350
|
paddingLeft: `${H}px`,
|
|
2351
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
|
-
!
|
|
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
|
+
!g[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:
|
|
2361
|
+
className: `${Q.image} ${g[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: () => F(R),
|
|
2367
|
+
onError: (D) => {
|
|
2368
|
+
D.target.style.display = "none", F(R);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
2372
2372
|
] })
|
|
2373
2373
|
},
|
|
2374
|
-
`image-${
|
|
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: E,
|
|
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: () =>
|
|
2411
|
-
"aria-label": `Gå til bilde ${
|
|
2412
|
-
"aria-selected":
|
|
2409
|
+
className: `${Q.dot} ${D ? Q.dotActive : ""}`,
|
|
2410
|
+
onClick: () => j(R),
|
|
2411
|
+
"aria-label": `Gå til bilde ${R + 1}`,
|
|
2412
|
+
"aria-selected": D,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
|
-
`dot-${
|
|
2415
|
+
`dot-${R}`
|
|
2416
2416
|
);
|
|
2417
2417
|
}) })
|
|
2418
2418
|
] })
|
|
@@ -2421,24 +2421,24 @@ const zr = "_carouselContainer_1bu1s_1", Vr = "_viewport_1bu1s_11", Gr = "_slide
|
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
2423
|
os.displayName = "Carousel";
|
|
2424
|
-
const
|
|
2424
|
+
const Ca = un, ja = gn, Da = mn, 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:
|
|
2434
|
+
Ze.displayName = "Paragraph";
|
|
2435
|
+
const Na = Dn, Pa = In, Ma = Ln, Pe = Object.assign(An, {
|
|
2436
|
+
Button: En,
|
|
2437
|
+
ClearButton: _n,
|
|
2438
2438
|
Input: Fn
|
|
2439
|
-
}),
|
|
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
|
-
},
|
|
3989
|
-
header:
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3987
|
+
return t;
|
|
3988
|
+
}, gs = "_header_12kgi_1", ms = "_languageSwitch_12kgi_36", ps = "_searchOverlay_12kgi_40", fs = "_headerExtension_12kgi_45", hs = "_extensionContentWrapper_12kgi_61", ks = "_extensionContent_12kgi_61", bs = "_extensionDivider_12kgi_84", vs = "_languageLabel_12kgi_98", ys = "_languageLink_12kgi_104", xs = "_headerInner_12kgi_129", Ts = "_logoWrapper_12kgi_146", Ss = "_logo_12kgi_146", ws = "_secondaryLogoWrapper_12kgi_169", Cs = "_slotComponent_12kgi_178", js = "_slotContainer_12kgi_188", Ds = "_slotText_12kgi_196", Is = "_secondaryLogo_12kgi_169", Ls = "_redCrossLogo_12kgi_223", As = "_primaryLogo_12kgi_229", Fs = "_navItems_12kgi_233", _s = "_navLink_12kgi_242", Es = "_actions_12kgi_255", Bs = "_ctaButton_12kgi_263", Ns = "_themeToggle_12kgi_268", Ps = "_userInfo_12kgi_273", Ms = "_userName_12kgi_279", Rs = "_loginLink_12kgi_286", zs = "_loginText_12kgi_295", Os = "_underline_12kgi_302", $s = "_searchButtonWrapper_12kgi_308", Hs = "_buttonText_12kgi_312", Ws = "_menuButton_12kgi_317", Vs = "_menuOverlay_12kgi_322", Gs = "_searchContent_12kgi_356", Us = "_menuContent_12kgi_366", Ks = "_menuLeftColumn_12kgi_375", qs = "_menuRightColumn_12kgi_381", Ys = "_slotContent_12kgi_395", Js = "_navList_12kgi_408", Zs = "_menuUtilities_12kgi_415", Xs = "_menuBrand_12kgi_422", Qs = "_suggestionsSection_12kgi_426", ea = "_suggestionsTitle_12kgi_432", ta = "_searchResults_12kgi_441", na = "_resultList_12kgi_447", oa = "_resultItem_12kgi_453", ra = "_resultLink_12kgi_461", sa = "_suggestionIcon_12kgi_475", aa = "_suggestionText_12kgi_488", ia = "_highlightedText_12kgi_495", la = "_remainingText_12kgi_500", da = "_viewAllLink_12kgi_513", ca = "_noResults_12kgi_548", T = {
|
|
3989
|
+
header: gs,
|
|
3990
|
+
languageSwitch: ms,
|
|
3991
|
+
searchOverlay: ps,
|
|
3992
|
+
headerExtension: fs,
|
|
3993
|
+
extensionContentWrapper: hs,
|
|
3994
|
+
extensionContent: ks,
|
|
3995
|
+
extensionDivider: bs,
|
|
3996
|
+
languageLabel: vs,
|
|
3997
|
+
languageLink: ys,
|
|
3998
|
+
headerInner: xs,
|
|
3998
3999
|
logoWrapper: Ts,
|
|
3999
|
-
logo:
|
|
4000
|
-
secondaryLogoWrapper:
|
|
4001
|
-
slotComponent:
|
|
4002
|
-
slotContainer:
|
|
4003
|
-
slotText:
|
|
4004
|
-
secondaryLogo:
|
|
4005
|
-
redCrossLogo:
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
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,
|
|
4010
4012
|
themeToggle: Ns,
|
|
4011
|
-
userInfo:
|
|
4012
|
-
userName:
|
|
4013
|
-
loginLink:
|
|
4014
|
-
loginText:
|
|
4015
|
-
underline:
|
|
4016
|
-
searchButtonWrapper:
|
|
4013
|
+
userInfo: Ps,
|
|
4014
|
+
userName: Ms,
|
|
4015
|
+
loginLink: Rs,
|
|
4016
|
+
loginText: zs,
|
|
4017
|
+
underline: Os,
|
|
4018
|
+
searchButtonWrapper: $s,
|
|
4017
4019
|
buttonText: Hs,
|
|
4018
4020
|
menuButton: Ws,
|
|
4019
|
-
menuOverlay:
|
|
4020
|
-
searchOverlay: Vs,
|
|
4021
|
+
menuOverlay: Vs,
|
|
4021
4022
|
searchContent: Gs,
|
|
4022
|
-
menuContent:
|
|
4023
|
-
menuLeftColumn:
|
|
4024
|
-
menuRightColumn:
|
|
4025
|
-
slotContent:
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
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,30 +4102,37 @@ 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,
|
|
4114
|
-
secondaryLogoSrc:
|
|
4115
|
-
secondaryLogoSrcDark:
|
|
4116
|
-
secondaryLogoAlt:
|
|
4118
|
+
secondaryLogoSrc: k,
|
|
4119
|
+
secondaryLogoSrcDark: m,
|
|
4120
|
+
secondaryLogoAlt: h = "Secondary Logo",
|
|
4117
4121
|
navItems: b,
|
|
4118
4122
|
showNavItems: v = !0,
|
|
4119
4123
|
showMenuButton: p = !0,
|
|
4120
|
-
showHeaderExtension:
|
|
4121
|
-
showModeToggle:
|
|
4122
|
-
showLanguageSwitch:
|
|
4124
|
+
showHeaderExtension: g = !1,
|
|
4125
|
+
showModeToggle: x = !1,
|
|
4126
|
+
showLanguageSwitch: F = !1
|
|
4123
4127
|
}) => {
|
|
4124
|
-
const [
|
|
4128
|
+
const [B, _] = oe(!1), [j, L] = oe(!1), [E, $] = oe(""), [N, H] = oe("light"), { language: M, setLanguage: R, t: D } = us(), [K, te] = oe(!1);
|
|
4129
|
+
ne(() => {
|
|
4130
|
+
const S = "rk-header-inline-styles";
|
|
4131
|
+
if (typeof document > "u" || document.getElementById(S)) return;
|
|
4132
|
+
const I = ga(T), C = document.createElement("style");
|
|
4133
|
+
C.id = S, C.textContent = I, document.head.appendChild(C);
|
|
4134
|
+
}, []);
|
|
4135
|
+
const Y = () => /* @__PURE__ */ r.jsxs(
|
|
4125
4136
|
"svg",
|
|
4126
4137
|
{
|
|
4127
4138
|
width: "170",
|
|
@@ -4131,294 +4142,530 @@ const cs = {
|
|
|
4131
4142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4132
4143
|
"aria-hidden": !0,
|
|
4133
4144
|
focusable: "false",
|
|
4134
|
-
className:
|
|
4145
|
+
className: T.redCrossLogo,
|
|
4135
4146
|
children: [
|
|
4136
|
-
/* @__PURE__ */
|
|
4137
|
-
/* @__PURE__ */
|
|
4138
|
-
/* @__PURE__ */
|
|
4139
|
-
/* @__PURE__ */
|
|
4140
|
-
/* @__PURE__ */
|
|
4141
|
-
/* @__PURE__ */
|
|
4142
|
-
/* @__PURE__ */
|
|
4143
|
-
/* @__PURE__ */
|
|
4144
|
-
/* @__PURE__ */
|
|
4145
|
-
/* @__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" })
|
|
4146
4157
|
]
|
|
4147
4158
|
}
|
|
4148
4159
|
);
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
}, [
|
|
4152
|
-
|
|
4153
|
-
const S =
|
|
4160
|
+
ne(() => {
|
|
4161
|
+
_(!1), L(!1), $("");
|
|
4162
|
+
}, [t]), ne(() => {
|
|
4163
|
+
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4164
|
+
const S = window.matchMedia("(max-width: 850px)"), I = (C) => te("matches" in C ? C.matches : S.matches);
|
|
4165
|
+
return I(S), S.addEventListener ? S.addEventListener("change", I) : S.addListener(I), () => {
|
|
4166
|
+
S.removeEventListener ? S.removeEventListener("change", I) : S.removeListener(I);
|
|
4167
|
+
};
|
|
4168
|
+
}, []), ne(() => {
|
|
4169
|
+
if (typeof document > "u") return;
|
|
4170
|
+
const S = document.querySelector(`.${T.header}`);
|
|
4171
|
+
if (!S) return;
|
|
4172
|
+
const I = () => {
|
|
4173
|
+
const C = S.offsetHeight;
|
|
4174
|
+
document.documentElement.style.setProperty("--header-height-mobile", `${C}px`);
|
|
4175
|
+
};
|
|
4176
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4177
|
+
}, [K]), ne(() => {
|
|
4178
|
+
if (typeof document > "u") return;
|
|
4179
|
+
const S = document.querySelector(`.${T.logoWrapper}`);
|
|
4180
|
+
if (!S) return;
|
|
4181
|
+
const I = () => {
|
|
4182
|
+
const C = S.offsetWidth;
|
|
4183
|
+
document.documentElement.style.setProperty("--rk-logo-width", `${C}px`);
|
|
4184
|
+
};
|
|
4185
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
4186
|
+
}, [K]), ne(() => {
|
|
4187
|
+
if (typeof document > "u" || !j) {
|
|
4188
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4189
|
+
return;
|
|
4190
|
+
}
|
|
4191
|
+
const S = document.querySelector(`.${T.searchOverlay}`);
|
|
4192
|
+
if (!S) return;
|
|
4193
|
+
const I = () => {
|
|
4194
|
+
const W = S.offsetHeight;
|
|
4195
|
+
document.documentElement.style.setProperty("--rk-search-overlay-height", `${W}px`);
|
|
4196
|
+
};
|
|
4197
|
+
requestAnimationFrame(I), window.addEventListener("resize", I);
|
|
4198
|
+
const C = new ResizeObserver(I);
|
|
4199
|
+
return C.observe(S), () => {
|
|
4200
|
+
window.removeEventListener("resize", I), C.disconnect();
|
|
4201
|
+
};
|
|
4202
|
+
}, [j]);
|
|
4203
|
+
const q = () => {
|
|
4204
|
+
const S = N === "light" ? "dark" : "light";
|
|
4154
4205
|
H(S), document.documentElement.setAttribute("data-color-scheme", S);
|
|
4155
|
-
},
|
|
4156
|
-
|
|
4157
|
-
},
|
|
4158
|
-
|
|
4159
|
-
},
|
|
4160
|
-
|
|
4161
|
-
},
|
|
4162
|
-
if (!
|
|
4163
|
-
const S =
|
|
4164
|
-
return
|
|
4165
|
-
(
|
|
4206
|
+
}, re = (S) => {
|
|
4207
|
+
e && (S.preventDefault(), e("home")), _(!1), L(!1);
|
|
4208
|
+
}, c = () => {
|
|
4209
|
+
_(!B), j && L(!1);
|
|
4210
|
+
}, A = () => {
|
|
4211
|
+
L(!j), B && _(!1);
|
|
4212
|
+
}, P = ve(() => {
|
|
4213
|
+
if (!E.trim()) return [];
|
|
4214
|
+
const S = E.toLowerCase();
|
|
4215
|
+
return ua.filter(
|
|
4216
|
+
(I) => I.title.toLowerCase().startsWith(S)
|
|
4166
4217
|
);
|
|
4167
|
-
}, [
|
|
4168
|
-
|
|
4218
|
+
}, [E]), z = (S) => {
|
|
4219
|
+
e && e(S), L(!1), $("");
|
|
4169
4220
|
};
|
|
4170
|
-
return /* @__PURE__ */
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4221
|
+
return /* @__PURE__ */ r.jsxs("header", { className: T.header, "data-open": B ? "true" : "false", children: [
|
|
4222
|
+
g && /* @__PURE__ */ r.jsx("div", { className: T.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ r.jsxs("div", { className: T.extensionContentWrapper, children: [
|
|
4223
|
+
x && /* @__PURE__ */ r.jsx("div", { className: T.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4224
|
+
Ue,
|
|
4174
4225
|
{
|
|
4175
4226
|
"data-size": "sm",
|
|
4176
|
-
checked:
|
|
4177
|
-
onChange:
|
|
4178
|
-
label:
|
|
4227
|
+
checked: N === "dark",
|
|
4228
|
+
onChange: q,
|
|
4229
|
+
label: D("header.darkMode"),
|
|
4179
4230
|
color: "neutral",
|
|
4180
4231
|
"data-color-scheme": "light"
|
|
4181
4232
|
}
|
|
4182
4233
|
) }),
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
/* @__PURE__ */
|
|
4186
|
-
/* @__PURE__ */
|
|
4187
|
-
/* @__PURE__ */
|
|
4188
|
-
|
|
4234
|
+
x && F && /* @__PURE__ */ r.jsx("div", { className: T.extensionDivider }),
|
|
4235
|
+
F && /* @__PURE__ */ r.jsxs("div", { className: T.languageSwitch, children: [
|
|
4236
|
+
/* @__PURE__ */ r.jsx("span", { className: T.languageLabel, children: D("header.language") }),
|
|
4237
|
+
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4238
|
+
/* @__PURE__ */ r.jsxs(
|
|
4239
|
+
ee.Trigger,
|
|
4189
4240
|
{
|
|
4190
|
-
className:
|
|
4191
|
-
"aria-label":
|
|
4241
|
+
className: T.languageLink,
|
|
4242
|
+
"aria-label": D("header.selectLanguage"),
|
|
4192
4243
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4193
4244
|
children: [
|
|
4194
|
-
|
|
4245
|
+
M,
|
|
4195
4246
|
" ",
|
|
4196
|
-
/* @__PURE__ */
|
|
4247
|
+
/* @__PURE__ */ r.jsx(mt, { "aria-hidden": !0 })
|
|
4197
4248
|
]
|
|
4198
4249
|
}
|
|
4199
4250
|
),
|
|
4200
|
-
/* @__PURE__ */
|
|
4201
|
-
|
|
4251
|
+
/* @__PURE__ */ r.jsx(
|
|
4252
|
+
ee,
|
|
4202
4253
|
{
|
|
4203
|
-
"data-color-scheme":
|
|
4254
|
+
"data-color-scheme": N,
|
|
4204
4255
|
placement: "bottom-end",
|
|
4205
|
-
children: /* @__PURE__ */
|
|
4206
|
-
/* @__PURE__ */
|
|
4207
|
-
/* @__PURE__ */
|
|
4256
|
+
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4257
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("NO"), children: "Norsk (NO)" }) }),
|
|
4258
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("EN"), children: "English (EN)" }) })
|
|
4208
4259
|
] })
|
|
4209
4260
|
}
|
|
4210
4261
|
)
|
|
4211
4262
|
] })
|
|
4212
4263
|
] })
|
|
4213
4264
|
] }) }),
|
|
4214
|
-
/* @__PURE__ */
|
|
4215
|
-
/* @__PURE__ */
|
|
4216
|
-
/* @__PURE__ */
|
|
4217
|
-
|
|
4265
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.headerInner, children: [
|
|
4266
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.logoWrapper, children: [
|
|
4267
|
+
/* @__PURE__ */ r.jsx(
|
|
4268
|
+
Ne,
|
|
4269
|
+
{
|
|
4270
|
+
href: "/",
|
|
4271
|
+
className: `${T.logo} ${T.primaryLogo}`,
|
|
4272
|
+
"aria-label": D("header.homeAriaLabel"),
|
|
4273
|
+
onClick: re,
|
|
4274
|
+
children: /* @__PURE__ */ r.jsx(Y, {})
|
|
4275
|
+
}
|
|
4276
|
+
),
|
|
4277
|
+
/* @__PURE__ */ r.jsx("div", { className: T.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ r.jsx(
|
|
4218
4278
|
"img",
|
|
4219
4279
|
{
|
|
4220
|
-
src:
|
|
4221
|
-
alt:
|
|
4222
|
-
className:
|
|
4280
|
+
src: N === "dark" && m ? m : k,
|
|
4281
|
+
alt: h,
|
|
4282
|
+
className: T.secondaryLogo
|
|
4223
4283
|
}
|
|
4224
|
-
) : f ? /* @__PURE__ */
|
|
4284
|
+
) : 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 })
|
|
4225
4285
|
] }),
|
|
4226
|
-
v && b && b.length > 0 && /* @__PURE__ */
|
|
4227
|
-
|
|
4286
|
+
v && b && b.length > 0 && !K && /* @__PURE__ */ r.jsx("nav", { className: T.navItems, children: b.map((S, I) => /* @__PURE__ */ r.jsx(
|
|
4287
|
+
Ne,
|
|
4228
4288
|
{
|
|
4229
4289
|
href: S.href,
|
|
4230
|
-
className:
|
|
4231
|
-
onClick: (
|
|
4232
|
-
|
|
4290
|
+
className: T.navLink,
|
|
4291
|
+
onClick: (C) => {
|
|
4292
|
+
e && (C.preventDefault(), e(S.href));
|
|
4233
4293
|
},
|
|
4234
4294
|
children: S.label
|
|
4235
4295
|
},
|
|
4236
|
-
|
|
4296
|
+
I
|
|
4237
4297
|
)) }),
|
|
4238
|
-
/* @__PURE__ */
|
|
4239
|
-
o && /* @__PURE__ */
|
|
4298
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.actions, children: [
|
|
4299
|
+
o && /* @__PURE__ */ r.jsxs(
|
|
4240
4300
|
ye,
|
|
4241
4301
|
{
|
|
4242
4302
|
variant: "primary",
|
|
4243
4303
|
"data-color": "main",
|
|
4244
4304
|
"data-size": "md",
|
|
4245
|
-
className:
|
|
4305
|
+
className: T.ctaButton,
|
|
4246
4306
|
onClick: u,
|
|
4247
4307
|
children: [
|
|
4248
4308
|
l,
|
|
4249
|
-
/* @__PURE__ */
|
|
4309
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: d || D("header.supportUs") })
|
|
4250
4310
|
]
|
|
4251
4311
|
}
|
|
4252
4312
|
),
|
|
4253
|
-
!
|
|
4254
|
-
|
|
4313
|
+
!g && y && /* @__PURE__ */ r.jsx("div", { className: T.themeToggle, children: /* @__PURE__ */ r.jsx(
|
|
4314
|
+
Ue,
|
|
4255
4315
|
{
|
|
4256
|
-
checked:
|
|
4257
|
-
onChange:
|
|
4258
|
-
"aria-label":
|
|
4316
|
+
checked: N === "dark",
|
|
4317
|
+
onChange: q,
|
|
4318
|
+
"aria-label": D("header.toggleTheme")
|
|
4259
4319
|
}
|
|
4260
4320
|
) }),
|
|
4261
|
-
|
|
4262
|
-
/* @__PURE__ */
|
|
4263
|
-
/* @__PURE__ */
|
|
4321
|
+
s && /* @__PURE__ */ r.jsxs("div", { className: T.userInfo, children: [
|
|
4322
|
+
/* @__PURE__ */ r.jsx(Ze, { "data-size": "md", className: T.userName, children: "Frodo Baggins" }),
|
|
4323
|
+
/* @__PURE__ */ r.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4264
4324
|
] }),
|
|
4265
|
-
|
|
4266
|
-
/* @__PURE__ */
|
|
4267
|
-
/* @__PURE__ */
|
|
4325
|
+
a && /* @__PURE__ */ r.jsxs("a", { href: "#", className: T.loginLink, children: [
|
|
4326
|
+
/* @__PURE__ */ r.jsx("span", { className: T.loginText, children: D("header.login") }),
|
|
4327
|
+
/* @__PURE__ */ r.jsx("div", { className: T.underline })
|
|
4268
4328
|
] }),
|
|
4269
|
-
|
|
4329
|
+
i && /* @__PURE__ */ r.jsx("div", { className: T.searchButtonWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
4270
4330
|
ye,
|
|
4271
4331
|
{
|
|
4272
4332
|
variant: "secondary",
|
|
4273
4333
|
"data-color": "main",
|
|
4274
4334
|
"data-size": "md",
|
|
4275
|
-
onClick:
|
|
4276
|
-
"aria-expanded":
|
|
4277
|
-
"aria-label": j
|
|
4335
|
+
onClick: A,
|
|
4336
|
+
"aria-expanded": j,
|
|
4337
|
+
"aria-label": D(j ? "header.closeSearch" : "header.openSearch"),
|
|
4278
4338
|
children: [
|
|
4279
|
-
|
|
4280
|
-
/* @__PURE__ */
|
|
4339
|
+
j ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }),
|
|
4340
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: D(j ? "header.close" : "header.search") })
|
|
4281
4341
|
]
|
|
4282
4342
|
}
|
|
4283
4343
|
) }),
|
|
4284
|
-
p && /* @__PURE__ */
|
|
4344
|
+
(p || K) && /* @__PURE__ */ r.jsxs(
|
|
4285
4345
|
ye,
|
|
4286
4346
|
{
|
|
4287
4347
|
variant: "primary",
|
|
4288
4348
|
"data-color": "main",
|
|
4289
4349
|
"data-size": "md",
|
|
4290
|
-
onClick:
|
|
4291
|
-
"aria-expanded":
|
|
4292
|
-
"aria-label":
|
|
4293
|
-
className:
|
|
4350
|
+
onClick: c,
|
|
4351
|
+
"aria-expanded": B,
|
|
4352
|
+
"aria-label": D(B ? "header.closeMenu" : "header.openMenu"),
|
|
4353
|
+
className: T.menuButton,
|
|
4294
4354
|
children: [
|
|
4295
|
-
|
|
4296
|
-
/* @__PURE__ */
|
|
4355
|
+
B ? /* @__PURE__ */ r.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ r.jsx(eo, { "aria-hidden": !0 }),
|
|
4356
|
+
/* @__PURE__ */ r.jsx("span", { className: T.buttonText, children: D(B ? "header.close" : "header.menu") })
|
|
4297
4357
|
]
|
|
4298
4358
|
}
|
|
4299
4359
|
)
|
|
4300
4360
|
] })
|
|
4301
4361
|
] }),
|
|
4302
|
-
|
|
4303
|
-
/* @__PURE__ */
|
|
4304
|
-
/* @__PURE__ */
|
|
4362
|
+
B && /* @__PURE__ */ r.jsx("div", { className: T.menuOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: T.menuContent, children: [
|
|
4363
|
+
/* @__PURE__ */ r.jsx("div", { className: T.menuLeftColumn }),
|
|
4364
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.menuRightColumn, children: [
|
|
4365
|
+
K && (F || x) && /* @__PURE__ */ r.jsxs("div", { className: T.menuUtilities, children: [
|
|
4366
|
+
F && /* @__PURE__ */ r.jsxs("div", { className: T.languageSwitch, children: [
|
|
4367
|
+
/* @__PURE__ */ r.jsx("span", { className: T.languageLabel, children: D("header.language") }),
|
|
4368
|
+
/* @__PURE__ */ r.jsxs(ee.TriggerContext, { children: [
|
|
4369
|
+
/* @__PURE__ */ r.jsxs(
|
|
4370
|
+
ee.Trigger,
|
|
4371
|
+
{
|
|
4372
|
+
className: T.languageLink,
|
|
4373
|
+
"aria-label": D("header.selectLanguage"),
|
|
4374
|
+
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4375
|
+
children: [
|
|
4376
|
+
M,
|
|
4377
|
+
" ",
|
|
4378
|
+
/* @__PURE__ */ r.jsx(mt, { "aria-hidden": !0 })
|
|
4379
|
+
]
|
|
4380
|
+
}
|
|
4381
|
+
),
|
|
4382
|
+
/* @__PURE__ */ r.jsx(
|
|
4383
|
+
ee,
|
|
4384
|
+
{
|
|
4385
|
+
"data-color-scheme": N,
|
|
4386
|
+
placement: "bottom-start",
|
|
4387
|
+
children: /* @__PURE__ */ r.jsxs(ee.List, { children: [
|
|
4388
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("NO"), children: "Norsk (NO)" }) }),
|
|
4389
|
+
/* @__PURE__ */ r.jsx(ee.Item, { children: /* @__PURE__ */ r.jsx(ee.Button, { onClick: () => R("EN"), children: "English (EN)" }) })
|
|
4390
|
+
] })
|
|
4391
|
+
}
|
|
4392
|
+
)
|
|
4393
|
+
] })
|
|
4394
|
+
] }),
|
|
4395
|
+
x && /* @__PURE__ */ r.jsx("div", { className: T.extensionContent, children: /* @__PURE__ */ r.jsx(
|
|
4396
|
+
Ue,
|
|
4397
|
+
{
|
|
4398
|
+
"data-size": "sm",
|
|
4399
|
+
checked: N === "dark",
|
|
4400
|
+
onChange: q,
|
|
4401
|
+
label: D("header.darkMode"),
|
|
4402
|
+
color: "neutral",
|
|
4403
|
+
"data-color-scheme": "light"
|
|
4404
|
+
}
|
|
4405
|
+
) })
|
|
4406
|
+
] }),
|
|
4407
|
+
/* @__PURE__ */ r.jsxs("div", { className: T.slotContent, children: [
|
|
4408
|
+
n,
|
|
4409
|
+
K && v && b && b.length > 0 && /* @__PURE__ */ r.jsx("nav", { className: T.navList, children: b.map((S, I) => /* @__PURE__ */ r.jsx(
|
|
4410
|
+
Ne,
|
|
4411
|
+
{
|
|
4412
|
+
href: S.href,
|
|
4413
|
+
className: T.navLink,
|
|
4414
|
+
onClick: (C) => {
|
|
4415
|
+
e && (C.preventDefault(), e(S.href));
|
|
4416
|
+
},
|
|
4417
|
+
children: S.label
|
|
4418
|
+
},
|
|
4419
|
+
I
|
|
4420
|
+
)) })
|
|
4421
|
+
] }),
|
|
4422
|
+
K && /* @__PURE__ */ r.jsx("div", { className: T.menuBrand, children: /* @__PURE__ */ r.jsx(Y, {}) })
|
|
4423
|
+
] })
|
|
4305
4424
|
] }) }),
|
|
4306
|
-
|
|
4307
|
-
/* @__PURE__ */
|
|
4308
|
-
/* @__PURE__ */
|
|
4425
|
+
j && /* @__PURE__ */ r.jsx("div", { className: T.searchOverlay, children: /* @__PURE__ */ r.jsxs("div", { className: T.searchContent, children: [
|
|
4426
|
+
/* @__PURE__ */ r.jsxs(Pe, { children: [
|
|
4427
|
+
/* @__PURE__ */ r.jsx(
|
|
4309
4428
|
Pe.Input,
|
|
4310
4429
|
{
|
|
4311
|
-
"aria-label":
|
|
4312
|
-
placeholder:
|
|
4313
|
-
value:
|
|
4314
|
-
onChange: (S) =>
|
|
4430
|
+
"aria-label": D("header.search"),
|
|
4431
|
+
placeholder: D("header.searchPlaceholder"),
|
|
4432
|
+
value: E,
|
|
4433
|
+
onChange: (S) => $(S.target.value)
|
|
4315
4434
|
}
|
|
4316
4435
|
),
|
|
4317
|
-
/* @__PURE__ */
|
|
4318
|
-
/* @__PURE__ */
|
|
4436
|
+
/* @__PURE__ */ r.jsx(Pe.Button, { "aria-label": D("header.search") }),
|
|
4437
|
+
/* @__PURE__ */ r.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": D("header.clearSearch") })
|
|
4319
4438
|
] }),
|
|
4320
|
-
|
|
4321
|
-
/* @__PURE__ */
|
|
4322
|
-
/* @__PURE__ */
|
|
4439
|
+
E && /* @__PURE__ */ r.jsx("div", { className: T.searchResults, children: P.length > 0 ? /* @__PURE__ */ r.jsxs("div", { className: T.suggestionsSection, children: [
|
|
4440
|
+
/* @__PURE__ */ r.jsx("h3", { className: T.suggestionsTitle, children: D("header.suggestions") }),
|
|
4441
|
+
/* @__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(
|
|
4323
4442
|
"button",
|
|
4324
4443
|
{
|
|
4325
|
-
className:
|
|
4326
|
-
onClick: () =>
|
|
4444
|
+
className: T.resultLink,
|
|
4445
|
+
onClick: () => z(S.path),
|
|
4327
4446
|
children: [
|
|
4328
|
-
/* @__PURE__ */
|
|
4329
|
-
/* @__PURE__ */
|
|
4330
|
-
const
|
|
4331
|
-
if (
|
|
4332
|
-
const
|
|
4333
|
-
return /* @__PURE__ */
|
|
4334
|
-
/* @__PURE__ */
|
|
4335
|
-
/* @__PURE__ */
|
|
4336
|
-
/* @__PURE__ */
|
|
4447
|
+
/* @__PURE__ */ r.jsx("span", { className: T.suggestionIcon, children: /* @__PURE__ */ r.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4448
|
+
/* @__PURE__ */ r.jsx("span", { className: T.suggestionText, children: (() => {
|
|
4449
|
+
const I = S.title.toLowerCase().indexOf(E.toLowerCase());
|
|
4450
|
+
if (I === -1) return /* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: S.title });
|
|
4451
|
+
const C = S.title.slice(0, I), W = S.title.slice(I, I + E.length), J = S.title.slice(I + E.length);
|
|
4452
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4453
|
+
/* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: C }),
|
|
4454
|
+
/* @__PURE__ */ r.jsx("span", { className: T.highlightedText, children: W }),
|
|
4455
|
+
/* @__PURE__ */ r.jsx("span", { className: T.remainingText, children: J })
|
|
4337
4456
|
] });
|
|
4338
4457
|
})() })
|
|
4339
4458
|
]
|
|
4340
4459
|
}
|
|
4341
4460
|
) }, S.id)) }),
|
|
4342
|
-
|
|
4343
|
-
|
|
4461
|
+
P.length > 5 && /* @__PURE__ */ r.jsxs(
|
|
4462
|
+
Ne,
|
|
4344
4463
|
{
|
|
4345
4464
|
href: "#",
|
|
4346
4465
|
"data-color": "neutral",
|
|
4347
|
-
className:
|
|
4466
|
+
className: T.viewAllLink,
|
|
4348
4467
|
onClick: (S) => {
|
|
4349
|
-
S.preventDefault(),
|
|
4468
|
+
S.preventDefault(), e && e(`search/${E}`), L(!1), $("");
|
|
4350
4469
|
},
|
|
4351
4470
|
children: [
|
|
4352
|
-
|
|
4471
|
+
D("header.viewAll"),
|
|
4353
4472
|
" (",
|
|
4354
|
-
|
|
4473
|
+
P.length,
|
|
4355
4474
|
")"
|
|
4356
4475
|
]
|
|
4357
4476
|
}
|
|
4358
4477
|
)
|
|
4359
|
-
] }) : /* @__PURE__ */
|
|
4360
|
-
|
|
4478
|
+
] }) : /* @__PURE__ */ r.jsx("div", { className: T.noResults, children: /* @__PURE__ */ r.jsxs(Ze, { children: [
|
|
4479
|
+
D("header.noResults"),
|
|
4361
4480
|
' "',
|
|
4362
|
-
|
|
4481
|
+
E,
|
|
4363
4482
|
'"'
|
|
4364
4483
|
] }) }) })
|
|
4365
4484
|
] }) })
|
|
4366
4485
|
] });
|
|
4367
4486
|
};
|
|
4487
|
+
function ga(t) {
|
|
4488
|
+
const e = t;
|
|
4489
|
+
return `
|
|
4490
|
+
.${e.header} {
|
|
4491
|
+
width: 100%;
|
|
4492
|
+
background-color: var(--ds-color-neutral-background-default);
|
|
4493
|
+
border-bottom: 1px solid var(--ds-color-neutral-border-subtle);
|
|
4494
|
+
position: relative;
|
|
4495
|
+
z-index: 1000;
|
|
4496
|
+
display: flex;
|
|
4497
|
+
flex-direction: column;
|
|
4498
|
+
}
|
|
4499
|
+
.${e.headerExtension} {
|
|
4500
|
+
background-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
|
|
4501
|
+
width: 100%;
|
|
4502
|
+
height: 44px;
|
|
4503
|
+
padding: 0 var(--ds-size-6);
|
|
4504
|
+
display: flex;
|
|
4505
|
+
justify-content: center;
|
|
4506
|
+
align-items: center;
|
|
4507
|
+
box-sizing: border-box;
|
|
4508
|
+
color: white;
|
|
4509
|
+
}
|
|
4510
|
+
.${e.extensionContentWrapper} {
|
|
4511
|
+
width: 100%;
|
|
4512
|
+
max-width: 1364px;
|
|
4513
|
+
display: flex;
|
|
4514
|
+
justify-content: flex-end;
|
|
4515
|
+
align-items: center;
|
|
4516
|
+
gap: var(--ds-size-4);
|
|
4517
|
+
}
|
|
4518
|
+
.${e.extensionDivider} { width: 1px; height: 18px; background-color: rgba(247,233,232,1); }
|
|
4519
|
+
.${e.languageSwitch} { display: flex; align-items: center; gap: var(--ds-size-2); }
|
|
4520
|
+
.${e.languageLabel} { font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: #ECECEC; }
|
|
4521
|
+
.${e.languageLink} { color: white; text-decoration: none; display: flex; align-items: center; gap: 4px; }
|
|
4522
|
+
.${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; }
|
|
4523
|
+
.${e.headerInner} {
|
|
4524
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
4525
|
+
min-height: 119px; width: 100%; max-width: 1364px;
|
|
4526
|
+
margin: 0 auto; padding: 0 var(--ds-size-6); box-sizing: border-box; gap: var(--ds-size-6);
|
|
4527
|
+
}
|
|
4528
|
+
.${e.logoWrapper} { display: flex; align-items: center; height: 119px; flex-shrink: 0; background-color: white; }
|
|
4529
|
+
.${e.logo} { display: flex; align-items: center; justify-content: center; width: 217px; height: 100%; text-decoration: none; color: inherit; flex-shrink: 0; }
|
|
4530
|
+
.${e.redCrossLogo} { width: 169px; height: auto; display: block; }
|
|
4531
|
+
.${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); }
|
|
4532
|
+
.${e.secondaryLogo} { height: 24px; width: auto; display: block; }
|
|
4533
|
+
.${e.navItems} { display: flex; gap: 40px; align-items: center; margin-left: 24px; flex-grow: 1; justify-content: flex-end; }
|
|
4534
|
+
.${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; }
|
|
4535
|
+
.${e.navLink}:hover { text-decoration: underline; }
|
|
4536
|
+
.${e.actions} { display: flex; align-items: center; gap: var(--ds-size-6); flex-shrink: 0; margin-left: auto; }
|
|
4537
|
+
.${e.ctaButton} { display: flex; align-items: center; }
|
|
4538
|
+
.${e.themeToggle} { display: flex; align-items: center; }
|
|
4539
|
+
.${e.userInfo} { display: flex; align-items: center; gap: var(--ds-size-3); }
|
|
4540
|
+
.${e.userName} { display: block; font-family: var(--ds-font-family); font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-default); }
|
|
4541
|
+
.${e.loginLink} { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ds-color-main-text-subtle); gap: 2px; }
|
|
4542
|
+
.${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; }
|
|
4543
|
+
.${e.underline} { width: 100%; height: 1px; background-color: var(--ds-color-main-border-strong); }
|
|
4544
|
+
.${e.searchButtonWrapper} { display: flex; }
|
|
4545
|
+
.${e.buttonText} { display: inline-block; margin-left: var(--ds-size-2); }
|
|
4546
|
+
.${e.menuButton} { display: flex; align-items: center; }
|
|
4547
|
+
.${e.menuOverlay}, .${e.searchOverlay} {
|
|
4548
|
+
position: absolute; top: 100%; left: 0; width: 100%;
|
|
4549
|
+
background-color: var(--ds-color-neutral-background-default);
|
|
4550
|
+
border-bottom: 1px solid var(--ds-color-neutral-border-subtle);
|
|
4551
|
+
box-shadow: var(--ds-shadow-lg); z-index: 999;
|
|
4552
|
+
}
|
|
4553
|
+
.${e.searchOverlay} { padding: var(--ds-size-10) 0; }
|
|
4554
|
+
.${e.searchOverlay}::before { display: none; }
|
|
4555
|
+
.${e.searchContent} {
|
|
4556
|
+
max-width: 1364px; margin: 0 auto;
|
|
4557
|
+
padding: var(--ds-size-6) var(--ds-size-6) var(--ds-size-6) calc(217px + var(--ds-size-6) + var(--ds-size-4));
|
|
4558
|
+
display: flex; flex-direction: column; align-items: stretch; box-sizing: border-box;
|
|
4559
|
+
}
|
|
4560
|
+
.${e.menuContent} { max-width: 1364px; margin: 0 auto; display: flex; flex-direction: row; align-items: stretch; box-sizing: border-box; }
|
|
4561
|
+
.${e.menuLeftColumn} { width: calc(217px + var(--ds-size-6)); flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: var(--ds-size-6); }
|
|
4562
|
+
.${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
|
|
4563
|
+
.${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; }
|
|
4564
|
+
.${e.menuBrand} { display: none; }
|
|
4565
|
+
.${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
|
|
4566
|
+
.${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
|
|
4567
|
+
.${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; }
|
|
4568
|
+
.${e.searchResults} { margin-top: var(--ds-size-4); max-height: 400px; overflow-y: auto; }
|
|
4569
|
+
.${e.resultList} { list-style: none; padding: 0; margin: 0; }
|
|
4570
|
+
.${e.resultItem} { border-bottom: none; }
|
|
4571
|
+
.${e.resultLink} {
|
|
4572
|
+
display: flex; flex-direction: row; align-items: center; width: 100%;
|
|
4573
|
+
padding: var(--ds-size-2) 0; background: none; border: none;
|
|
4574
|
+
text-align: left; cursor: pointer; gap: var(--ds-size-4); text-decoration: none;
|
|
4575
|
+
}
|
|
4576
|
+
.${e.suggestionIcon} { font-size: 20px; color: var(--ds-color-neutral-text-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
|
4577
|
+
.${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; }
|
|
4578
|
+
.${e.highlightedText} { color: var(--ds-color-primary-color-red-text-default); font-weight: var(--ds-font-weight-medium); }
|
|
4579
|
+
.${e.remainingText} { color: var(--ds-color-neutral-border-subtle); }
|
|
4580
|
+
.${e.viewAllLink} { display: block; padding: var(--ds-size-3); text-align: left; font-size: var(--ds-font-size-sm); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-neutral-text-default); text-decoration: none; }
|
|
4581
|
+
.${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
|
|
4582
|
+
@media (max-width: 850px) {
|
|
4583
|
+
.${e.header} { z-index: 10000; }
|
|
4584
|
+
.${e.headerExtension} { display: none; }
|
|
4585
|
+
.${e.headerInner} { padding: var(--ds-size-5) var(--ds-size-6); min-height: auto; }
|
|
4586
|
+
.${e.navItems} { display: none; }
|
|
4587
|
+
.${e.logoWrapper} { gap: var(--ds-size-2); }
|
|
4588
|
+
.${e.logo} { height: 40px; }
|
|
4589
|
+
/* Mobile: always hide primary logo in header */
|
|
4590
|
+
.${e.primaryLogo} { display: none; }
|
|
4591
|
+
.${e.secondaryLogo} { height: 28px; }
|
|
4592
|
+
.${e.secondaryLogoWrapper} { padding: 0; }
|
|
4593
|
+
.${e.actions} { gap: var(--ds-size-4); }
|
|
4594
|
+
.${e.userName} { display: none; }
|
|
4595
|
+
.${e.menuButton} .${e.buttonText} { display: none; }
|
|
4596
|
+
.${e.searchButtonWrapper} .${e.buttonText} { display: inline; }
|
|
4597
|
+
.${e.menuOverlay} { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; width: 100vw; height: calc(100vh - 70px); z-index: 9999; border-radius: 0; border: none; overflow-y: auto; }
|
|
4598
|
+
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; border-bottom: 1px solid var(--ds-color-neutral-border-subtle); }
|
|
4599
|
+
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4600
|
+
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|
|
4601
|
+
.${e.menuRightColumn} { padding: var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
4602
|
+
.${e.menuLeftColumn} { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: var(--ds-size-6); }
|
|
4603
|
+
.${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; }
|
|
4604
|
+
.${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; }
|
|
4605
|
+
@media (prefers-color-scheme: light) {
|
|
4606
|
+
.${e.menuUtilities} .${e.languageLabel} { color: var(--color-neutral-text-default, #2B2B2B); }
|
|
4607
|
+
.${e.menuUtilities} .${e.languageLink} { color: var(--color-neutral-text-default, #2B2B2B) !important; }
|
|
4608
|
+
}
|
|
4609
|
+
[data-color-scheme="light"] .${e.menuUtilities} .${e.languageLabel} { color: var(--color-neutral-text-default, #2B2B2B); }
|
|
4610
|
+
[data-color-scheme="light"] .${e.menuUtilities} .${e.languageLink} { color: var(--color-neutral-text-default, #2B2B2B) !important; }
|
|
4611
|
+
.${e.searchOverlay}::before { display: none; }
|
|
4612
|
+
}
|
|
4613
|
+
`;
|
|
4614
|
+
}
|
|
4368
4615
|
export {
|
|
4369
4616
|
so as Alert,
|
|
4370
4617
|
Ft as Avatar,
|
|
4371
4618
|
ao as Badge,
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4619
|
+
ka as BadgePosition,
|
|
4620
|
+
ba as Breadcrumbs,
|
|
4621
|
+
ya as BreadcrumbsItem,
|
|
4622
|
+
xa as BreadcrumbsLink,
|
|
4623
|
+
va as BreadcrumbsList,
|
|
4377
4624
|
ye as Button,
|
|
4378
4625
|
io as Card,
|
|
4379
|
-
|
|
4626
|
+
Ta as CardBlock,
|
|
4380
4627
|
os as Carousel,
|
|
4381
4628
|
lo as Checkbox,
|
|
4382
|
-
|
|
4629
|
+
wa as Chip,
|
|
4383
4630
|
ir as DateInput,
|
|
4384
4631
|
Qo as DatePicker,
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4632
|
+
Ca as Details,
|
|
4633
|
+
ja as Dialog,
|
|
4634
|
+
Da as Divider,
|
|
4635
|
+
ee as Dropdown,
|
|
4636
|
+
Ia as ErrorSummary,
|
|
4637
|
+
La as Field,
|
|
4391
4638
|
ss as FieldCounter,
|
|
4392
4639
|
rs as FieldDescription,
|
|
4393
|
-
|
|
4394
|
-
|
|
4640
|
+
Aa as Fieldset,
|
|
4641
|
+
Ya as Header,
|
|
4395
4642
|
as as Heading,
|
|
4396
|
-
|
|
4643
|
+
Fa as Input,
|
|
4397
4644
|
is as Label,
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4645
|
+
qa as LanguageProvider,
|
|
4646
|
+
Ne as Link,
|
|
4647
|
+
_a as List,
|
|
4648
|
+
Ea as Pagination,
|
|
4649
|
+
Ze as Paragraph,
|
|
4650
|
+
Na as Popover,
|
|
4651
|
+
Pa as Radio,
|
|
4405
4652
|
Pe as Search,
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4653
|
+
Ra as Select,
|
|
4654
|
+
za as SkeletonLoader,
|
|
4655
|
+
Oa as SkipLink,
|
|
4409
4656
|
ns as Spinner,
|
|
4410
4657
|
ls as Suggestion,
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4658
|
+
Ue as Switch,
|
|
4659
|
+
$a as Table,
|
|
4660
|
+
Ha as Tabs,
|
|
4661
|
+
Wa as Tag,
|
|
4662
|
+
Va as Textarea,
|
|
4663
|
+
Ga as Textfield,
|
|
4664
|
+
Ua as ToggleGroup,
|
|
4665
|
+
Ka as Tooltip,
|
|
4419
4666
|
ds as ValidationMessage,
|
|
4420
|
-
|
|
4667
|
+
Sa as useCheckboxGroup,
|
|
4421
4668
|
us as useLanguage,
|
|
4422
|
-
|
|
4423
|
-
|
|
4669
|
+
Ba as usePagination,
|
|
4670
|
+
Ma as useRadioGroup
|
|
4424
4671
|
};
|