rk-designsystem 1.1.56 → 1.1.57
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 +579 -535
- package/dist/componentlibrary.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Dt, { forwardRef as ue, useState as
|
|
2
|
-
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as
|
|
1
|
+
import Dt, { forwardRef as ue, useState as re, useEffect as te, useMemo as ve, useCallback as ae, useRef as Ue, createContext as Kt, useContext as Yt } from "react";
|
|
2
|
+
import { Alert as Jt, Avatar as Zt, BadgePosition as Xt, Badge as Qt, Breadcrumbs as en, BreadcrumbsList as tn, BreadcrumbsItem as nn, BreadcrumbsLink as rn, Button as Ke, Card as on, CardBlock as sn, Checkbox as an, useCheckboxGroup as ln, Fieldset as It, Chip as dn, Spinner as cn, Details as un, Dialog as mn, Divider as gn, Dropdown as pn, ErrorSummary as fn, Field as hn, FieldDescription as kn, FieldCounter as bn, Heading as vn, Input as yn, Label as xn, Link as Tn, List as Sn, Pagination as wn, usePagination as Cn, Paragraph as jn, Popover as Dn, Radio as In, useRadioGroup as Ln, Search as An, SearchInput as Fn, SearchClear as _n, SearchButton as En, Select as Bn, Skeleton as Nn, SkipLink as Pn, EXPERIMENTAL_Suggestion as Rn, Switch as zn, Table as Mn, Tabs as On, Tag as $n, Textarea as Hn, Textfield as Wn, ToggleGroup as Vn, Tooltip as Gn, ValidationMessage as qn } from "@digdir/designsystemet-react";
|
|
3
3
|
import { startOfMonth as ke, isValid as Ve, isSameMonth as mt, startOfWeek as Lt, format as Te, addDays as At, subMonths as Un, addMonths as Kn, isSameDay as Yn, isToday as Jn, eachDayOfInterval as Zn } from "date-fns";
|
|
4
|
-
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as gt, XMarkIcon as pt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as
|
|
4
|
+
import { ChevronLeftIcon as Xn, ChevronRightIcon as Qn, ChevronDownIcon as gt, XMarkIcon as pt, MagnifyingGlassIcon as ft, MenuHamburgerIcon as er, HeartIcon as tr } from "@navikt/aksel-icons";
|
|
5
5
|
var Be = { exports: {} }, Se = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -13,13 +13,13 @@ var Be = { exports: {} }, Se = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var ht;
|
|
16
|
-
function
|
|
16
|
+
function nr() {
|
|
17
17
|
if (ht) return Se;
|
|
18
18
|
ht = 1;
|
|
19
19
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
20
20
|
function n(s, i, a) {
|
|
21
|
-
var
|
|
22
|
-
if (a !== void 0 && (
|
|
21
|
+
var r = null;
|
|
22
|
+
if (a !== void 0 && (r = "" + a), i.key !== void 0 && (r = "" + i.key), "key" in i) {
|
|
23
23
|
a = {};
|
|
24
24
|
for (var d in i)
|
|
25
25
|
d !== "key" && (a[d] = i[d]);
|
|
@@ -27,7 +27,7 @@ function no() {
|
|
|
27
27
|
return i = a.ref, {
|
|
28
28
|
$$typeof: t,
|
|
29
29
|
type: s,
|
|
30
|
-
key:
|
|
30
|
+
key: r,
|
|
31
31
|
ref: i !== void 0 ? i : null,
|
|
32
32
|
props: a
|
|
33
33
|
};
|
|
@@ -45,7 +45,7 @@ var we = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var kt;
|
|
48
|
-
function
|
|
48
|
+
function rr() {
|
|
49
49
|
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
50
|
function t(c) {
|
|
51
51
|
if (c == null) return null;
|
|
@@ -102,11 +102,11 @@ function oo() {
|
|
|
102
102
|
}
|
|
103
103
|
if (A) {
|
|
104
104
|
A = console;
|
|
105
|
-
var P = A.error,
|
|
105
|
+
var P = A.error, M = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
106
106
|
return P.call(
|
|
107
107
|
A,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
109
|
+
M
|
|
110
110
|
), e(c);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -128,8 +128,8 @@ function oo() {
|
|
|
128
128
|
function a() {
|
|
129
129
|
return Error("react-stack-top-frame");
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
if (
|
|
131
|
+
function r(c) {
|
|
132
|
+
if (R.call(c, "key")) {
|
|
133
133
|
var A = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
134
134
|
if (A && A.isReactWarning) return !1;
|
|
135
135
|
}
|
|
@@ -153,14 +153,14 @@ function oo() {
|
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
155
155
|
}
|
|
156
|
-
function u(c, A, P,
|
|
156
|
+
function u(c, A, P, M, x, D) {
|
|
157
157
|
var C = P.ref;
|
|
158
158
|
return c = {
|
|
159
159
|
$$typeof: h,
|
|
160
160
|
type: c,
|
|
161
161
|
key: A,
|
|
162
162
|
props: P,
|
|
163
|
-
_owner:
|
|
163
|
+
_owner: M
|
|
164
164
|
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(c, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: l
|
|
@@ -186,38 +186,38 @@ function oo() {
|
|
|
186
186
|
value: D
|
|
187
187
|
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
188
188
|
}
|
|
189
|
-
function y(c, A, P,
|
|
189
|
+
function y(c, A, P, M, x, D) {
|
|
190
190
|
var C = A.children;
|
|
191
191
|
if (C !== void 0)
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
for (
|
|
195
|
-
f(C[
|
|
192
|
+
if (M)
|
|
193
|
+
if (z(C)) {
|
|
194
|
+
for (M = 0; M < C.length; M++)
|
|
195
|
+
f(C[M]);
|
|
196
196
|
Object.freeze && Object.freeze(C);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
201
|
else f(C);
|
|
202
|
-
if (
|
|
202
|
+
if (R.call(A, "key")) {
|
|
203
203
|
C = t(c);
|
|
204
204
|
var H = Object.keys(A).filter(function(X) {
|
|
205
205
|
return X !== "key";
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
M = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", oe[C + M] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
211
211
|
React keys must be passed directly to JSX without using spread:
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
|
-
|
|
214
|
+
M,
|
|
215
215
|
C,
|
|
216
216
|
H,
|
|
217
217
|
C
|
|
218
|
-
),
|
|
218
|
+
), oe[C + M] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (C = null, P !== void 0 && (n(P), C = "" + P),
|
|
220
|
+
if (C = null, P !== void 0 && (n(P), C = "" + P), r(A) && (n(A.key), C = "" + A.key), "key" in A) {
|
|
221
221
|
P = {};
|
|
222
222
|
for (var J in A)
|
|
223
223
|
J !== "key" && (P[J] = A[J]);
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function k(c) {
|
|
241
241
|
return typeof c == "object" && c !== null && c.$$typeof === h;
|
|
242
242
|
}
|
|
243
|
-
var g = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), W = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
243
|
+
var g = Dt, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), W = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
g = {
|
|
@@ -251,48 +251,48 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
var q, ne = {}, Y = g.react_stack_bottom_frame.bind(
|
|
252
252
|
g,
|
|
253
253
|
a
|
|
254
|
-
)(), K = I(s(a)),
|
|
254
|
+
)(), K = I(s(a)), oe = {};
|
|
255
255
|
we.Fragment = v, we.jsx = function(c, A, P) {
|
|
256
|
-
var
|
|
256
|
+
var M = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return y(
|
|
258
258
|
c,
|
|
259
259
|
A,
|
|
260
260
|
P,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
M ? Error("react-stack-top-frame") : Y,
|
|
263
|
+
M ? I(s(c)) : K
|
|
264
264
|
);
|
|
265
265
|
}, we.jsxs = function(c, A, P) {
|
|
266
|
-
var
|
|
266
|
+
var M = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return y(
|
|
268
268
|
c,
|
|
269
269
|
A,
|
|
270
270
|
P,
|
|
271
271
|
!0,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
M ? Error("react-stack-top-frame") : Y,
|
|
273
|
+
M ? I(s(c)) : K
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
})()), we;
|
|
277
277
|
}
|
|
278
278
|
var bt;
|
|
279
|
-
function
|
|
280
|
-
return bt || (bt = 1, process.env.NODE_ENV === "production" ? Be.exports =
|
|
279
|
+
function or() {
|
|
280
|
+
return bt || (bt = 1, process.env.NODE_ENV === "production" ? Be.exports = nr() : Be.exports = rr()), Be.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
const Ft = ue((t, e) => /* @__PURE__ */
|
|
282
|
+
var o = or();
|
|
283
|
+
const sr = ue((t, e) => /* @__PURE__ */ o.jsx(Jt, { ref: e, ...t }));
|
|
284
|
+
sr.displayName = "Alert";
|
|
285
|
+
const Ft = ue((t, e) => /* @__PURE__ */ o.jsx(Zt, { ref: e, ...t }));
|
|
286
286
|
Ft.displayName = "Avatar";
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
const ka = Xt, ba = en, va = tn, ya = nn, xa =
|
|
287
|
+
const ar = ue((t, e) => /* @__PURE__ */ o.jsx(Qt, { ref: e, ...t }));
|
|
288
|
+
ar.displayName = "Badge";
|
|
289
|
+
const ka = Xt, ba = en, va = tn, ya = nn, xa = rn, ye = Ke;
|
|
290
290
|
ye.displayName = "Button";
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
const ir = on, Ta = sn;
|
|
292
|
+
ir.displayName = "Card";
|
|
293
|
+
const lr = an, dr = It, Sa = ln;
|
|
294
|
+
lr.displayName = "Checkbox";
|
|
295
|
+
dr.displayName = "Fieldset";
|
|
296
296
|
const wa = dn;
|
|
297
297
|
function Ge(t) {
|
|
298
298
|
return (e = {}) => {
|
|
@@ -305,11 +305,11 @@ function Ce(t) {
|
|
|
305
305
|
const s = n != null && n.context ? String(n.context) : "standalone";
|
|
306
306
|
let i;
|
|
307
307
|
if (s === "formatting" && t.formattingValues) {
|
|
308
|
-
const
|
|
309
|
-
i = t.formattingValues[d] || t.formattingValues[
|
|
308
|
+
const r = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : r;
|
|
309
|
+
i = t.formattingValues[d] || t.formattingValues[r];
|
|
310
310
|
} else {
|
|
311
|
-
const
|
|
312
|
-
i = t.values[d] || t.values[
|
|
311
|
+
const r = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
312
|
+
i = t.values[d] || t.values[r];
|
|
313
313
|
}
|
|
314
314
|
const a = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
315
315
|
return i[a];
|
|
@@ -320,42 +320,42 @@ function je(t) {
|
|
|
320
320
|
const s = n.width, i = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], a = e.match(i);
|
|
321
321
|
if (!a)
|
|
322
322
|
return null;
|
|
323
|
-
const
|
|
323
|
+
const r = a[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? ur(d, (f) => f.test(r)) : (
|
|
324
324
|
// [TODO] -- I challenge you to fix the type
|
|
325
|
-
|
|
325
|
+
cr(d, (f) => f.test(r))
|
|
326
326
|
);
|
|
327
327
|
let u;
|
|
328
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 = e.slice(
|
|
332
|
+
const y = e.slice(r.length);
|
|
333
333
|
return { value: u, rest: y };
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function cr(t, e) {
|
|
337
337
|
for (const n in t)
|
|
338
338
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
339
339
|
return n;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function ur(t, e) {
|
|
342
342
|
for (let n = 0; n < t.length; n++)
|
|
343
343
|
if (e(t[n]))
|
|
344
344
|
return n;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function mr(t) {
|
|
347
347
|
return (e, n = {}) => {
|
|
348
348
|
const s = e.match(t.matchPattern);
|
|
349
349
|
if (!s) return null;
|
|
350
350
|
const i = s[0], a = e.match(t.parsePattern);
|
|
351
351
|
if (!a) return null;
|
|
352
|
-
let
|
|
353
|
-
|
|
352
|
+
let r = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
353
|
+
r = n.valueCallback ? n.valueCallback(r) : r;
|
|
354
354
|
const d = e.slice(i.length);
|
|
355
|
-
return { value:
|
|
355
|
+
return { value: r, rest: d };
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const gr = {
|
|
359
359
|
lessThanXSeconds: {
|
|
360
360
|
one: "mindre enn ett sekund",
|
|
361
361
|
other: "mindre enn {{count}} sekunder"
|
|
@@ -417,54 +417,54 @@ const po = {
|
|
|
417
417
|
one: "nesten ett år",
|
|
418
418
|
other: "nesten {{count}} år"
|
|
419
419
|
}
|
|
420
|
-
},
|
|
420
|
+
}, pr = (t, e, n) => {
|
|
421
421
|
let s;
|
|
422
|
-
const i =
|
|
422
|
+
const i = gr[t];
|
|
423
423
|
return typeof i == "string" ? s = i : e === 1 ? s = i.one : s = i.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + s : s + " siden" : s;
|
|
424
|
-
},
|
|
424
|
+
}, fr = {
|
|
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
|
+
}, hr = {
|
|
430
430
|
full: "'kl'. HH:mm:ss zzzz",
|
|
431
431
|
long: "HH:mm:ss z",
|
|
432
432
|
medium: "HH:mm:ss",
|
|
433
433
|
short: "HH:mm"
|
|
434
|
-
},
|
|
434
|
+
}, kr = {
|
|
435
435
|
full: "{{date}} 'kl.' {{time}}",
|
|
436
436
|
long: "{{date}} 'kl.' {{time}}",
|
|
437
437
|
medium: "{{date}} {{time}}",
|
|
438
438
|
short: "{{date}} {{time}}"
|
|
439
|
-
},
|
|
439
|
+
}, br = {
|
|
440
440
|
date: Ge({
|
|
441
|
-
formats:
|
|
441
|
+
formats: fr,
|
|
442
442
|
defaultWidth: "full"
|
|
443
443
|
}),
|
|
444
444
|
time: Ge({
|
|
445
|
-
formats:
|
|
445
|
+
formats: hr,
|
|
446
446
|
defaultWidth: "full"
|
|
447
447
|
}),
|
|
448
448
|
dateTime: Ge({
|
|
449
|
-
formats:
|
|
449
|
+
formats: kr,
|
|
450
450
|
defaultWidth: "full"
|
|
451
451
|
})
|
|
452
|
-
},
|
|
452
|
+
}, vr = {
|
|
453
453
|
lastWeek: "'forrige' eeee 'kl.' p",
|
|
454
454
|
yesterday: "'i går kl.' p",
|
|
455
455
|
today: "'i dag kl.' p",
|
|
456
456
|
tomorrow: "'i morgen kl.' p",
|
|
457
457
|
nextWeek: "EEEE 'kl.' p",
|
|
458
458
|
other: "P"
|
|
459
|
-
},
|
|
459
|
+
}, yr = (t, e, n, s) => vr[t], xr = {
|
|
460
460
|
narrow: ["f.Kr.", "e.Kr."],
|
|
461
461
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
462
462
|
wide: ["før Kristus", "etter Kristus"]
|
|
463
|
-
},
|
|
463
|
+
}, Tr = {
|
|
464
464
|
narrow: ["1", "2", "3", "4"],
|
|
465
465
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
466
466
|
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
|
|
467
|
-
},
|
|
467
|
+
}, Sr = {
|
|
468
468
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
469
469
|
abbreviated: [
|
|
470
470
|
"jan.",
|
|
@@ -494,7 +494,7 @@ const po = {
|
|
|
494
494
|
"november",
|
|
495
495
|
"desember"
|
|
496
496
|
]
|
|
497
|
-
},
|
|
497
|
+
}, wr = {
|
|
498
498
|
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
499
499
|
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
500
500
|
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
@@ -507,7 +507,7 @@ const po = {
|
|
|
507
507
|
"fredag",
|
|
508
508
|
"lørdag"
|
|
509
509
|
]
|
|
510
|
-
},
|
|
510
|
+
}, Cr = {
|
|
511
511
|
narrow: {
|
|
512
512
|
am: "a",
|
|
513
513
|
pm: "p",
|
|
@@ -538,46 +538,46 @@ const po = {
|
|
|
538
538
|
evening: "på kvelden",
|
|
539
539
|
night: "på natten"
|
|
540
540
|
}
|
|
541
|
-
},
|
|
542
|
-
ordinalNumber:
|
|
541
|
+
}, jr = (t, e) => Number(t) + ".", Dr = {
|
|
542
|
+
ordinalNumber: jr,
|
|
543
543
|
era: Ce({
|
|
544
|
-
values:
|
|
544
|
+
values: xr,
|
|
545
545
|
defaultWidth: "wide"
|
|
546
546
|
}),
|
|
547
547
|
quarter: Ce({
|
|
548
|
-
values:
|
|
548
|
+
values: Tr,
|
|
549
549
|
defaultWidth: "wide",
|
|
550
550
|
argumentCallback: (t) => t - 1
|
|
551
551
|
}),
|
|
552
552
|
month: Ce({
|
|
553
|
-
values:
|
|
553
|
+
values: Sr,
|
|
554
554
|
defaultWidth: "wide"
|
|
555
555
|
}),
|
|
556
556
|
day: Ce({
|
|
557
|
-
values:
|
|
557
|
+
values: wr,
|
|
558
558
|
defaultWidth: "wide"
|
|
559
559
|
}),
|
|
560
560
|
dayPeriod: Ce({
|
|
561
|
-
values:
|
|
561
|
+
values: Cr,
|
|
562
562
|
defaultWidth: "wide"
|
|
563
563
|
})
|
|
564
|
-
},
|
|
564
|
+
}, Ir = /^(\d+)\.?/i, Lr = /\d+/i, Ar = {
|
|
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
|
+
}, Fr = {
|
|
569
569
|
any: [/^f/i, /^e/i]
|
|
570
|
-
},
|
|
570
|
+
}, _r = {
|
|
571
571
|
narrow: /^[1234]/i,
|
|
572
572
|
abbreviated: /^q[1234]/i,
|
|
573
573
|
wide: /^[1234](\.)? kvartal/i
|
|
574
|
-
},
|
|
574
|
+
}, Er = {
|
|
575
575
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
576
|
-
},
|
|
576
|
+
}, Br = {
|
|
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
|
+
}, Nr = {
|
|
581
581
|
narrow: [
|
|
582
582
|
/^j/i,
|
|
583
583
|
/^f/i,
|
|
@@ -606,17 +606,17 @@ const po = {
|
|
|
606
606
|
/^n/i,
|
|
607
607
|
/^d/i
|
|
608
608
|
]
|
|
609
|
-
},
|
|
609
|
+
}, Pr = {
|
|
610
610
|
narrow: /^[smtofl]/i,
|
|
611
611
|
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
612
612
|
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
613
613
|
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
614
|
-
},
|
|
614
|
+
}, Rr = {
|
|
615
615
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
616
|
-
},
|
|
616
|
+
}, zr = {
|
|
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
|
+
}, Mr = {
|
|
620
620
|
any: {
|
|
621
621
|
am: /^a(\.?\s?m\.?)?$/i,
|
|
622
622
|
pm: /^p(\.?\s?m\.?)?$/i,
|
|
@@ -627,55 +627,55 @@ const po = {
|
|
|
627
627
|
evening: /kveld/i,
|
|
628
628
|
night: /natt/i
|
|
629
629
|
}
|
|
630
|
-
},
|
|
631
|
-
ordinalNumber:
|
|
632
|
-
matchPattern:
|
|
633
|
-
parsePattern:
|
|
630
|
+
}, Or = {
|
|
631
|
+
ordinalNumber: mr({
|
|
632
|
+
matchPattern: Ir,
|
|
633
|
+
parsePattern: Lr,
|
|
634
634
|
valueCallback: (t) => parseInt(t, 10)
|
|
635
635
|
}),
|
|
636
636
|
era: je({
|
|
637
|
-
matchPatterns:
|
|
637
|
+
matchPatterns: Ar,
|
|
638
638
|
defaultMatchWidth: "wide",
|
|
639
|
-
parsePatterns:
|
|
639
|
+
parsePatterns: Fr,
|
|
640
640
|
defaultParseWidth: "any"
|
|
641
641
|
}),
|
|
642
642
|
quarter: je({
|
|
643
|
-
matchPatterns:
|
|
643
|
+
matchPatterns: _r,
|
|
644
644
|
defaultMatchWidth: "wide",
|
|
645
|
-
parsePatterns:
|
|
645
|
+
parsePatterns: Er,
|
|
646
646
|
defaultParseWidth: "any",
|
|
647
647
|
valueCallback: (t) => t + 1
|
|
648
648
|
}),
|
|
649
649
|
month: je({
|
|
650
|
-
matchPatterns:
|
|
650
|
+
matchPatterns: Br,
|
|
651
651
|
defaultMatchWidth: "wide",
|
|
652
|
-
parsePatterns:
|
|
652
|
+
parsePatterns: Nr,
|
|
653
653
|
defaultParseWidth: "any"
|
|
654
654
|
}),
|
|
655
655
|
day: je({
|
|
656
|
-
matchPatterns:
|
|
656
|
+
matchPatterns: Pr,
|
|
657
657
|
defaultMatchWidth: "wide",
|
|
658
|
-
parsePatterns:
|
|
658
|
+
parsePatterns: Rr,
|
|
659
659
|
defaultParseWidth: "any"
|
|
660
660
|
}),
|
|
661
661
|
dayPeriod: je({
|
|
662
|
-
matchPatterns:
|
|
662
|
+
matchPatterns: zr,
|
|
663
663
|
defaultMatchWidth: "any",
|
|
664
|
-
parsePatterns:
|
|
664
|
+
parsePatterns: Mr,
|
|
665
665
|
defaultParseWidth: "any"
|
|
666
666
|
})
|
|
667
667
|
}, be = {
|
|
668
668
|
code: "nb",
|
|
669
|
-
formatDistance:
|
|
670
|
-
formatLong:
|
|
671
|
-
formatRelative:
|
|
672
|
-
localize:
|
|
673
|
-
match:
|
|
669
|
+
formatDistance: pr,
|
|
670
|
+
formatLong: br,
|
|
671
|
+
formatRelative: yr,
|
|
672
|
+
localize: Dr,
|
|
673
|
+
match: Or,
|
|
674
674
|
options: {
|
|
675
675
|
weekStartsOn: 1,
|
|
676
676
|
firstWeekContainsDate: 4
|
|
677
677
|
}
|
|
678
|
-
}, _t = ({ title: t, ...e }) => /* @__PURE__ */
|
|
678
|
+
}, _t = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
|
|
679
679
|
"svg",
|
|
680
680
|
{
|
|
681
681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -687,8 +687,8 @@ const po = {
|
|
|
687
687
|
focusable: "false",
|
|
688
688
|
...e,
|
|
689
689
|
children: [
|
|
690
|
-
t && /* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
690
|
+
t && /* @__PURE__ */ o.jsx("title", { children: t }),
|
|
691
|
+
/* @__PURE__ */ o.jsx(
|
|
692
692
|
"path",
|
|
693
693
|
{
|
|
694
694
|
fillRule: "evenodd",
|
|
@@ -701,7 +701,7 @@ const po = {
|
|
|
701
701
|
}
|
|
702
702
|
);
|
|
703
703
|
_t.displayName = "ChevronLeftIcon";
|
|
704
|
-
const Et = ({ title: t, ...e }) => /* @__PURE__ */
|
|
704
|
+
const Et = ({ title: t, ...e }) => /* @__PURE__ */ o.jsxs(
|
|
705
705
|
"svg",
|
|
706
706
|
{
|
|
707
707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -713,8 +713,8 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
|
713
713
|
focusable: "false",
|
|
714
714
|
...e,
|
|
715
715
|
children: [
|
|
716
|
-
t && /* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
716
|
+
t && /* @__PURE__ */ o.jsx("title", { children: t }),
|
|
717
|
+
/* @__PURE__ */ o.jsx(
|
|
718
718
|
"path",
|
|
719
719
|
{
|
|
720
720
|
fillRule: "evenodd",
|
|
@@ -727,21 +727,21 @@ const Et = ({ title: t, ...e }) => /* @__PURE__ */ r.jsxs(
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
Et.displayName = "ChevronRightIcon";
|
|
730
|
-
const
|
|
731
|
-
calendarContainer:
|
|
732
|
-
calendarHeader:
|
|
733
|
-
monthYear:
|
|
734
|
-
navigationButtons:
|
|
735
|
-
grid:
|
|
736
|
-
dayNameCell:
|
|
737
|
-
dateCell:
|
|
738
|
-
dateNumberContainer:
|
|
739
|
-
otherMonth:
|
|
740
|
-
selectedDate:
|
|
741
|
-
},
|
|
730
|
+
const $r = "_calendarContainer_10l5p_1", Hr = "_calendarHeader_10l5p_14", Wr = "_monthYear_10l5p_21", Vr = "_navigationButtons_10l5p_32", Gr = "_grid_10l5p_41", qr = "_dayNameCell_10l5p_48", Ur = "_dateCell_10l5p_65", Kr = "_dateNumberContainer_10l5p_90", Yr = "_otherMonth_10l5p_103", Jr = "_selectedDate_10l5p_129", se = {
|
|
731
|
+
calendarContainer: $r,
|
|
732
|
+
calendarHeader: Hr,
|
|
733
|
+
monthYear: Wr,
|
|
734
|
+
navigationButtons: Vr,
|
|
735
|
+
grid: Gr,
|
|
736
|
+
dayNameCell: qr,
|
|
737
|
+
dateCell: Ur,
|
|
738
|
+
dateNumberContainer: Kr,
|
|
739
|
+
otherMonth: Yr,
|
|
740
|
+
selectedDate: Jr
|
|
741
|
+
}, Zr = (t) => {
|
|
742
742
|
const e = ke(t), n = Lt(e, { locale: be }), s = At(n, 41);
|
|
743
743
|
return Zn({ start: n, end: s });
|
|
744
|
-
}, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1),
|
|
744
|
+
}, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Xr = ({
|
|
745
745
|
initialDate: t = /* @__PURE__ */ new Date(),
|
|
746
746
|
selectedDate: e = null,
|
|
747
747
|
// Prop for valgt dato
|
|
@@ -751,17 +751,17 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
751
751
|
"data-size": i
|
|
752
752
|
// <-- Destrukturert
|
|
753
753
|
}) => {
|
|
754
|
-
const [a,
|
|
754
|
+
const [a, r] = re(
|
|
755
755
|
ke(e && Ve(e) ? e : t)
|
|
756
756
|
);
|
|
757
757
|
te(() => {
|
|
758
758
|
if (e && Ve(e)) {
|
|
759
759
|
const m = ke(e);
|
|
760
|
-
mt(m, a) ||
|
|
760
|
+
mt(m, a) || r(m);
|
|
761
761
|
}
|
|
762
762
|
}, [e]);
|
|
763
763
|
const d = ve(() => ke(/* @__PURE__ */ new Date()), []), l = ve(() => !1, [a, d]), u = ve(
|
|
764
|
-
() =>
|
|
764
|
+
() => Zr(a),
|
|
765
765
|
[a]
|
|
766
766
|
), y = ve(() => {
|
|
767
767
|
const m = Lt(/* @__PURE__ */ new Date(), { locale: be });
|
|
@@ -770,9 +770,9 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
770
770
|
return vt(F);
|
|
771
771
|
});
|
|
772
772
|
}, []), f = ae(() => {
|
|
773
|
-
l ||
|
|
773
|
+
l || r((m) => ke(Un(m, 1)));
|
|
774
774
|
}, [l]), k = ae(() => {
|
|
775
|
-
|
|
775
|
+
r((m) => ke(Kn(m, 1)));
|
|
776
776
|
}, []), g = ae(
|
|
777
777
|
(m) => {
|
|
778
778
|
n && n(m);
|
|
@@ -784,17 +784,17 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
784
784
|
},
|
|
785
785
|
[g]
|
|
786
786
|
), b = Te(a, "MMMM", { locale: be }), v = Te(a, "yyyy", { locale: be }), p = `${vt(b)} ${v}`;
|
|
787
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ o.jsxs(
|
|
788
788
|
"div",
|
|
789
789
|
{
|
|
790
790
|
className: se.calendarContainer,
|
|
791
791
|
"data-color": s,
|
|
792
792
|
"data-size": i,
|
|
793
793
|
children: [
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ o.jsxs("div", { className: se.calendarHeader, children: [
|
|
795
|
+
/* @__PURE__ */ o.jsx("span", { className: se.monthYear, children: p }),
|
|
796
|
+
/* @__PURE__ */ o.jsxs("div", { className: se.navigationButtons, children: [
|
|
797
|
+
/* @__PURE__ */ o.jsx(
|
|
798
798
|
Ke,
|
|
799
799
|
{
|
|
800
800
|
variant: "tertiary",
|
|
@@ -802,23 +802,23 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
802
802
|
onClick: f,
|
|
803
803
|
"aria-label": "Forrige måned",
|
|
804
804
|
disabled: l,
|
|
805
|
-
children: /* @__PURE__ */
|
|
805
|
+
children: /* @__PURE__ */ o.jsx(_t, {})
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ o.jsx(
|
|
809
809
|
Ke,
|
|
810
810
|
{
|
|
811
811
|
variant: "tertiary",
|
|
812
812
|
icon: !0,
|
|
813
813
|
onClick: k,
|
|
814
814
|
"aria-label": "Neste måned",
|
|
815
|
-
children: /* @__PURE__ */
|
|
815
|
+
children: /* @__PURE__ */ o.jsx(Et, {})
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
] })
|
|
819
819
|
] }),
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ o.jsx("div", { className: se.grid, children: y.map((m) => /* @__PURE__ */ o.jsx("div", { className: se.dayNameCell, children: m }, m)) }),
|
|
821
|
+
/* @__PURE__ */ o.jsx("div", { className: se.grid, children: u.map((m) => {
|
|
822
822
|
const T = mt(m, a), _ = e && Ve(e) && Yn(m, e), F = Jn(m), E = [
|
|
823
823
|
se.dateCell,
|
|
824
824
|
T ? "" : se.otherMonth,
|
|
@@ -826,7 +826,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
826
826
|
// Utheving basert på prop
|
|
827
827
|
F && !_ ? se.todayDate : ""
|
|
828
828
|
].filter(Boolean).join(" ");
|
|
829
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ o.jsx(
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
832
|
className: E,
|
|
@@ -836,7 +836,7 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
836
836
|
tabIndex: 0,
|
|
837
837
|
"aria-pressed": _ ?? !1,
|
|
838
838
|
"aria-label": Te(m, "PPP", { locale: be }),
|
|
839
|
-
children: /* @__PURE__ */
|
|
839
|
+
children: /* @__PURE__ */ o.jsx("span", { className: se.dateNumberContainer, children: Te(m, "d") })
|
|
840
840
|
},
|
|
841
841
|
m.toISOString()
|
|
842
842
|
);
|
|
@@ -845,15 +845,15 @@ const Ho = "_calendarContainer_10l5p_1", Wo = "_calendarHeader_10l5p_14", Vo = "
|
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
fieldset:
|
|
851
|
-
description:
|
|
852
|
-
error:
|
|
853
|
-
inputWrapper:
|
|
854
|
-
inputWrapperError:
|
|
855
|
-
suffixButton:
|
|
856
|
-
suffixButtonInteractive:
|
|
848
|
+
Xr.displayName = "DatePicker";
|
|
849
|
+
const Qr = "_fieldset_16fx7_2", eo = "_description_16fx7_14", to = "_error_16fx7_21", no = "_inputWrapper_16fx7_30", ro = "_inputWrapperError_16fx7_42", oo = "_suffixButton_16fx7_80", so = "_suffixButtonInteractive_16fx7_100", pe = {
|
|
850
|
+
fieldset: Qr,
|
|
851
|
+
description: eo,
|
|
852
|
+
error: to,
|
|
853
|
+
inputWrapper: no,
|
|
854
|
+
inputWrapperError: ro,
|
|
855
|
+
suffixButton: oo,
|
|
856
|
+
suffixButtonInteractive: so
|
|
857
857
|
}, yt = (t) => {
|
|
858
858
|
const e = t.slice(0, 2), n = t.slice(2, 4), s = t.slice(4, 8);
|
|
859
859
|
return t.length > 4 ? `${e}.${n}.${s}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
|
|
@@ -868,7 +868,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
868
868
|
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
869
869
|
}
|
|
870
870
|
return e.slice(0, 8);
|
|
871
|
-
},
|
|
871
|
+
}, ao = ue(
|
|
872
872
|
(t, e) => {
|
|
873
873
|
const {
|
|
874
874
|
label: n,
|
|
@@ -876,7 +876,7 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
876
876
|
onSuffixClick: i,
|
|
877
877
|
className: a,
|
|
878
878
|
// For ytre fieldset
|
|
879
|
-
inputWrapperClassName:
|
|
879
|
+
inputWrapperClassName: r,
|
|
880
880
|
// For input wrapper div
|
|
881
881
|
inputClassName: d,
|
|
882
882
|
// For selve input-elementet
|
|
@@ -905,33 +905,33 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
905
905
|
"data-size": $,
|
|
906
906
|
// <-- Destrukturering
|
|
907
907
|
...N
|
|
908
|
-
} = t, W = l !== void 0,
|
|
908
|
+
} = t, W = l !== void 0, R = Ue(null);
|
|
909
909
|
Dt.useImperativeHandle(
|
|
910
910
|
e,
|
|
911
|
-
() =>
|
|
911
|
+
() => R.current
|
|
912
912
|
);
|
|
913
|
-
const
|
|
913
|
+
const z = ae(
|
|
914
914
|
(D) => {
|
|
915
915
|
const C = xt(D), H = Tt(C);
|
|
916
916
|
return yt(H);
|
|
917
917
|
},
|
|
918
918
|
[]
|
|
919
|
-
), [I, q] =
|
|
920
|
-
() =>
|
|
919
|
+
), [I, q] = re(
|
|
920
|
+
() => z(l ?? u)
|
|
921
921
|
);
|
|
922
922
|
te(() => {
|
|
923
923
|
if (W) {
|
|
924
|
-
const D =
|
|
925
|
-
D !== I && (q(D),
|
|
924
|
+
const D = z(l);
|
|
925
|
+
D !== I && (q(D), R.current && R.current.value !== D && (R.current.value = D));
|
|
926
926
|
}
|
|
927
|
-
}, [l, W, I,
|
|
927
|
+
}, [l, W, I, z]);
|
|
928
928
|
const ne = ae(
|
|
929
929
|
(D) => {
|
|
930
930
|
const C = D.target, H = C.value, J = I, X = xt(H).slice(0, 8), V = Tt(X), w = yt(V);
|
|
931
931
|
let O = 0;
|
|
932
932
|
const G = V.length;
|
|
933
933
|
G <= 2 ? O = G : G <= 4 ? O = G + 1 : O = G + 2, O = Math.min(O, w.length), requestAnimationFrame(() => {
|
|
934
|
-
if (
|
|
934
|
+
if (R.current && (q(w), R.current.value = w, R.current.setSelectionRange(O, O), (w !== J || W) && y)) {
|
|
935
935
|
const Z = {
|
|
936
936
|
...D,
|
|
937
937
|
target: { ...C, value: w }
|
|
@@ -940,35 +940,35 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
940
940
|
}
|
|
941
941
|
});
|
|
942
942
|
},
|
|
943
|
-
[I, W, y,
|
|
943
|
+
[I, W, y, z]
|
|
944
944
|
), Y = [pe.fieldset, a].filter(Boolean).join(" "), K = [
|
|
945
945
|
pe.inputWrapper,
|
|
946
|
-
|
|
946
|
+
r,
|
|
947
947
|
L ? pe.inputWrapperError : ""
|
|
948
|
-
].filter(Boolean).join(" "),
|
|
948
|
+
].filter(Boolean).join(" "), oe = [
|
|
949
949
|
d
|
|
950
950
|
].filter(Boolean).join(" "), c = [
|
|
951
951
|
pe.suffixButton,
|
|
952
952
|
i ? pe.suffixButtonInteractive : ""
|
|
953
953
|
].filter(Boolean).join(" ");
|
|
954
954
|
!n && !F && !E && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
955
|
-
const A = n && typeof n == "string" ? E || `${g}-label` : void 0, P = j ? `${g}-desc` : void 0,
|
|
955
|
+
const A = n && typeof n == "string" ? E || `${g}-label` : void 0, P = j ? `${g}-desc` : void 0, M = L ? `${g}-err` : void 0, x = [P, M].filter(Boolean).join(" ") || void 0;
|
|
956
956
|
return (
|
|
957
957
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
958
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ o.jsxs(
|
|
959
959
|
"div",
|
|
960
960
|
{
|
|
961
961
|
className: Y,
|
|
962
962
|
"data-color": B,
|
|
963
963
|
"data-size": $,
|
|
964
964
|
children: [
|
|
965
|
-
n && typeof n == "string" ? /* @__PURE__ */
|
|
966
|
-
j && /* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
/* @__PURE__ */
|
|
965
|
+
n && typeof n == "string" ? /* @__PURE__ */ o.jsx("label", { id: A, htmlFor: g, children: n }) : n,
|
|
966
|
+
j && /* @__PURE__ */ o.jsx("p", { id: P, className: pe.description, children: j }),
|
|
967
|
+
/* @__PURE__ */ o.jsxs("div", { className: K, children: [
|
|
968
|
+
/* @__PURE__ */ o.jsx(
|
|
969
969
|
"input",
|
|
970
970
|
{
|
|
971
|
-
ref:
|
|
971
|
+
ref: R,
|
|
972
972
|
type: "text",
|
|
973
973
|
inputMode: "numeric",
|
|
974
974
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
@@ -989,11 +989,11 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
989
989
|
"aria-labelledby": A,
|
|
990
990
|
"aria-describedby": x,
|
|
991
991
|
"aria-invalid": !!L,
|
|
992
|
-
className:
|
|
992
|
+
className: oe,
|
|
993
993
|
...N
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
|
-
s && /* @__PURE__ */
|
|
996
|
+
s && /* @__PURE__ */ o.jsx(
|
|
997
997
|
"button",
|
|
998
998
|
{
|
|
999
999
|
type: "button",
|
|
@@ -1007,41 +1007,41 @@ const er = "_fieldset_16fx7_2", tr = "_description_16fx7_14", nr = "_error_16fx7
|
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
1009
|
] }),
|
|
1010
|
-
L && /* @__PURE__ */
|
|
1010
|
+
L && /* @__PURE__ */ o.jsx("p", { id: M, className: pe.error, role: "alert", children: L })
|
|
1011
1011
|
]
|
|
1012
1012
|
}
|
|
1013
1013
|
)
|
|
1014
1014
|
);
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
|
-
|
|
1018
|
-
function
|
|
1017
|
+
ao.displayName = "DateInput";
|
|
1018
|
+
function io(t) {
|
|
1019
1019
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
1020
1020
|
}
|
|
1021
1021
|
function St(t) {
|
|
1022
|
-
return
|
|
1022
|
+
return io(t) || Array.isArray(t);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function lo() {
|
|
1025
1025
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1026
1026
|
}
|
|
1027
1027
|
function Xe(t, e) {
|
|
1028
1028
|
const n = Object.keys(t), s = Object.keys(e);
|
|
1029
1029
|
if (n.length !== s.length) return !1;
|
|
1030
1030
|
const i = JSON.stringify(Object.keys(t.breakpoints || {})), a = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
1031
|
-
return i !== a ? !1 : n.every((
|
|
1032
|
-
const d = t[
|
|
1031
|
+
return i !== a ? !1 : n.every((r) => {
|
|
1032
|
+
const d = t[r], l = e[r];
|
|
1033
1033
|
return typeof d == "function" ? `${d}` == `${l}` : !St(d) || !St(l) ? d === l : Xe(d, l);
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
function wt(t) {
|
|
1037
1037
|
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function co(t, e) {
|
|
1040
1040
|
if (t.length !== e.length) return !1;
|
|
1041
1041
|
const n = wt(t), s = wt(e);
|
|
1042
1042
|
return n.every((i, a) => {
|
|
1043
|
-
const
|
|
1044
|
-
return Xe(i,
|
|
1043
|
+
const r = s[a];
|
|
1044
|
+
return Xe(i, r);
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
1047
|
function Qe(t) {
|
|
@@ -1050,7 +1050,7 @@ function Qe(t) {
|
|
|
1050
1050
|
function Ye(t) {
|
|
1051
1051
|
return typeof t == "string";
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function ze(t) {
|
|
1054
1054
|
return typeof t == "boolean";
|
|
1055
1055
|
}
|
|
1056
1056
|
function Ct(t) {
|
|
@@ -1065,12 +1065,12 @@ function et(t) {
|
|
|
1065
1065
|
function Ie(t, e) {
|
|
1066
1066
|
return U(t - e);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function uo(t, e) {
|
|
1069
1069
|
if (t === 0 || e === 0 || U(t) <= U(e)) return 0;
|
|
1070
1070
|
const n = Ie(U(t), U(e));
|
|
1071
1071
|
return U(n / t);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function mo(t) {
|
|
1074
1074
|
return Math.round(t * 100) / 100;
|
|
1075
1075
|
}
|
|
1076
1076
|
function Le(t) {
|
|
@@ -1093,14 +1093,14 @@ function Ae(t) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
function Bt(t, e) {
|
|
1095
1095
|
return [t, e].reduce((n, s) => (Ae(s).forEach((i) => {
|
|
1096
|
-
const a = n[i],
|
|
1097
|
-
n[i] = d ? Bt(a,
|
|
1096
|
+
const a = n[i], r = s[i], d = Ct(a) && Ct(r);
|
|
1097
|
+
n[i] = d ? Bt(a, r) : r;
|
|
1098
1098
|
}), n), {});
|
|
1099
1099
|
}
|
|
1100
1100
|
function Je(t, e) {
|
|
1101
1101
|
return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function go(t, e) {
|
|
1104
1104
|
const n = {
|
|
1105
1105
|
start: s,
|
|
1106
1106
|
center: i,
|
|
@@ -1115,24 +1115,24 @@ function gr(t, e) {
|
|
|
1115
1115
|
function a(l) {
|
|
1116
1116
|
return e - l;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function r(l, u) {
|
|
1119
1119
|
return Ye(t) ? n[t](l) : t(e, l, u);
|
|
1120
1120
|
}
|
|
1121
1121
|
return {
|
|
1122
|
-
measure:
|
|
1122
|
+
measure: r
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
1125
|
function Fe() {
|
|
1126
1126
|
let t = [];
|
|
1127
|
-
function e(i, a,
|
|
1127
|
+
function e(i, a, r, d = {
|
|
1128
1128
|
passive: !0
|
|
1129
1129
|
}) {
|
|
1130
1130
|
let l;
|
|
1131
1131
|
if ("addEventListener" in i)
|
|
1132
|
-
i.addEventListener(a,
|
|
1132
|
+
i.addEventListener(a, r, d), l = () => i.removeEventListener(a, r, d);
|
|
1133
1133
|
else {
|
|
1134
1134
|
const u = i;
|
|
1135
|
-
u.addListener(
|
|
1135
|
+
u.addListener(r), l = () => u.removeListener(r);
|
|
1136
1136
|
}
|
|
1137
1137
|
return t.push(l), s;
|
|
1138
1138
|
}
|
|
@@ -1145,9 +1145,9 @@ function Fe() {
|
|
|
1145
1145
|
};
|
|
1146
1146
|
return s;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function po(t, e, n, s) {
|
|
1149
1149
|
const i = Fe(), a = 1e3 / 60;
|
|
1150
|
-
let
|
|
1150
|
+
let r = null, d = 0, l = 0;
|
|
1151
1151
|
function u() {
|
|
1152
1152
|
i.add(t, "visibilitychange", () => {
|
|
1153
1153
|
t.hidden && h();
|
|
@@ -1158,9 +1158,9 @@ function pr(t, e, n, s) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
function f(v) {
|
|
1160
1160
|
if (!l) return;
|
|
1161
|
-
|
|
1162
|
-
const p = v -
|
|
1163
|
-
for (
|
|
1161
|
+
r || (r = v, n(), n());
|
|
1162
|
+
const p = v - r;
|
|
1163
|
+
for (r = v, d += p; d >= a; )
|
|
1164
1164
|
n(), d -= a;
|
|
1165
1165
|
const m = d / a;
|
|
1166
1166
|
s(m), l && (l = e.requestAnimationFrame(f));
|
|
@@ -1169,10 +1169,10 @@ function pr(t, e, n, s) {
|
|
|
1169
1169
|
l || (l = e.requestAnimationFrame(f));
|
|
1170
1170
|
}
|
|
1171
1171
|
function g() {
|
|
1172
|
-
e.cancelAnimationFrame(l),
|
|
1172
|
+
e.cancelAnimationFrame(l), r = null, d = 0, l = 0;
|
|
1173
1173
|
}
|
|
1174
1174
|
function h() {
|
|
1175
|
-
|
|
1175
|
+
r = null, d = 0;
|
|
1176
1176
|
}
|
|
1177
1177
|
return {
|
|
1178
1178
|
init: u,
|
|
@@ -1183,8 +1183,8 @@ function pr(t, e, n, s) {
|
|
|
1183
1183
|
render: s
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1187
|
-
const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y",
|
|
1186
|
+
function fo(t, e) {
|
|
1187
|
+
const n = e === "rtl", s = t === "y", i = s ? "y" : "x", a = s ? "x" : "y", r = !s && n ? -1 : 1, d = y(), l = f();
|
|
1188
1188
|
function u(h) {
|
|
1189
1189
|
const {
|
|
1190
1190
|
height: b,
|
|
@@ -1199,7 +1199,7 @@ function fr(t, e) {
|
|
|
1199
1199
|
return s ? "bottom" : n ? "left" : "right";
|
|
1200
1200
|
}
|
|
1201
1201
|
function k(h) {
|
|
1202
|
-
return h *
|
|
1202
|
+
return h * r;
|
|
1203
1203
|
}
|
|
1204
1204
|
return {
|
|
1205
1205
|
scroll: i,
|
|
@@ -1221,7 +1221,7 @@ function fe(t = 0, e = 0) {
|
|
|
1221
1221
|
function a(u) {
|
|
1222
1222
|
return s(u) || i(u);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function r(u) {
|
|
1225
1225
|
return a(u) ? s(u) ? t : e : u;
|
|
1226
1226
|
}
|
|
1227
1227
|
function d(u) {
|
|
@@ -1231,7 +1231,7 @@ function fe(t = 0, e = 0) {
|
|
|
1231
1231
|
length: n,
|
|
1232
1232
|
max: e,
|
|
1233
1233
|
min: t,
|
|
1234
|
-
constrain:
|
|
1234
|
+
constrain: r,
|
|
1235
1235
|
reachedAny: a,
|
|
1236
1236
|
reachedMax: i,
|
|
1237
1237
|
reachedMin: s,
|
|
@@ -1242,15 +1242,15 @@ function Nt(t, e, n) {
|
|
|
1242
1242
|
const {
|
|
1243
1243
|
constrain: s
|
|
1244
1244
|
} = fe(0, t), i = t + 1;
|
|
1245
|
-
let a =
|
|
1246
|
-
function
|
|
1245
|
+
let a = r(e);
|
|
1246
|
+
function r(k) {
|
|
1247
1247
|
return n ? U((i + k) % i) : s(k);
|
|
1248
1248
|
}
|
|
1249
1249
|
function d() {
|
|
1250
1250
|
return a;
|
|
1251
1251
|
}
|
|
1252
1252
|
function l(k) {
|
|
1253
|
-
return a =
|
|
1253
|
+
return a = r(k), f;
|
|
1254
1254
|
}
|
|
1255
1255
|
function u(k) {
|
|
1256
1256
|
return y().set(d() + k);
|
|
@@ -1266,7 +1266,7 @@ function Nt(t, e, n) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function ho(t, e, n, s, i, a, r, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
1270
1270
|
const {
|
|
1271
1271
|
cross: T,
|
|
1272
1272
|
direction: _
|
|
@@ -1279,11 +1279,11 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1279
1279
|
mouse: 500,
|
|
1280
1280
|
touch: 600
|
|
1281
1281
|
}, W = h ? 43 : 25;
|
|
1282
|
-
let
|
|
1283
|
-
function
|
|
1282
|
+
let R = !1, z = 0, I = 0, q = !1, ne = !1, Y = !1, K = !1;
|
|
1283
|
+
function oe(w) {
|
|
1284
1284
|
if (!m) return;
|
|
1285
1285
|
function O(Z) {
|
|
1286
|
-
(
|
|
1286
|
+
(ze(m) || m(w, Z)) && D(Z);
|
|
1287
1287
|
}
|
|
1288
1288
|
const G = e;
|
|
1289
1289
|
j.add(G, "dragstart", (Z) => Z.preventDefault(), E).add(G, "touchmove", () => {
|
|
@@ -1301,7 +1301,7 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1301
1301
|
const O = w.nodeName || "";
|
|
1302
1302
|
return F.includes(O);
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function M() {
|
|
1305
1305
|
return (h ? N : $)[K ? "mouse" : "touch"];
|
|
1306
1306
|
}
|
|
1307
1307
|
function x(w, O) {
|
|
@@ -1310,18 +1310,18 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
function D(w) {
|
|
1312
1312
|
const O = Je(w, s);
|
|
1313
|
-
K = O, Y = h && O && !w.buttons &&
|
|
1313
|
+
K = O, Y = h && O && !w.buttons && R, R = Ie(i.get(), r.get()) >= 2, !(O && w.button !== 0) && (P(w.target) || (q = !0, a.pointerDown(w), u.useFriction(0).useDuration(0), i.set(r), A(), z = a.readPoint(w), I = a.readPoint(w, T), k.emit("pointerDown")));
|
|
1314
1314
|
}
|
|
1315
1315
|
function C(w) {
|
|
1316
1316
|
if (!Je(w, s) && w.touches.length >= 2) return H(w);
|
|
1317
|
-
const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G,
|
|
1317
|
+
const G = a.readPoint(w), Z = a.readPoint(w, T), le = Ie(G, z), de = Ie(Z, I);
|
|
1318
1318
|
if (!ne && !K && (!w.cancelable || (ne = le > de, !ne)))
|
|
1319
1319
|
return H(w);
|
|
1320
1320
|
const me = a.pointerMove(w);
|
|
1321
1321
|
le > b && (Y = !0), u.useFriction(0.3).useDuration(0.75), d.start(), i.add(_(me)), w.preventDefault();
|
|
1322
1322
|
}
|
|
1323
1323
|
function H(w) {
|
|
1324
|
-
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) *
|
|
1324
|
+
const G = y.byDistance(0, !1).index !== f.get(), Z = a.pointerUp(w) * M(), le = x(_(Z), G), de = uo(Z, le), me = W - 10 * de, ce = p + de / 50;
|
|
1325
1325
|
ne = !1, q = !1, L.clear(), u.useDuration(me).useFriction(ce), l.distance(le, !h), K = !1, k.emit("pointerUp");
|
|
1326
1326
|
}
|
|
1327
1327
|
function J(w) {
|
|
@@ -1331,61 +1331,61 @@ function hr(t, e, n, s, i, a, o, d, l, u, y, f, k, g, h, b, v, p, m) {
|
|
|
1331
1331
|
return q;
|
|
1332
1332
|
}
|
|
1333
1333
|
return {
|
|
1334
|
-
init:
|
|
1334
|
+
init: oe,
|
|
1335
1335
|
destroy: c,
|
|
1336
1336
|
pointerDown: X
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function ko(t, e) {
|
|
1340
1340
|
let s, i;
|
|
1341
1341
|
function a(f) {
|
|
1342
1342
|
return f.timeStamp;
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function r(f, k) {
|
|
1345
1345
|
const h = `client${(k || t.scroll) === "x" ? "X" : "Y"}`;
|
|
1346
1346
|
return (Je(f, e) ? f : f.touches[0])[h];
|
|
1347
1347
|
}
|
|
1348
1348
|
function d(f) {
|
|
1349
|
-
return s = f, i = f,
|
|
1349
|
+
return s = f, i = f, r(f);
|
|
1350
1350
|
}
|
|
1351
1351
|
function l(f) {
|
|
1352
|
-
const k =
|
|
1352
|
+
const k = r(f) - r(i), g = a(f) - a(s) > 170;
|
|
1353
1353
|
return i = f, g && (s = f), k;
|
|
1354
1354
|
}
|
|
1355
1355
|
function u(f) {
|
|
1356
1356
|
if (!s || !i) return 0;
|
|
1357
|
-
const k =
|
|
1357
|
+
const k = r(i) - r(s), g = a(f) - a(s), h = a(f) - a(i) > 170, b = k / g;
|
|
1358
1358
|
return g && !h && U(b) > 0.1 ? b : 0;
|
|
1359
1359
|
}
|
|
1360
1360
|
return {
|
|
1361
1361
|
pointerDown: d,
|
|
1362
1362
|
pointerMove: l,
|
|
1363
1363
|
pointerUp: u,
|
|
1364
|
-
readPoint:
|
|
1364
|
+
readPoint: r
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function bo() {
|
|
1368
1368
|
function t(n) {
|
|
1369
1369
|
const {
|
|
1370
1370
|
offsetTop: s,
|
|
1371
1371
|
offsetLeft: i,
|
|
1372
1372
|
offsetWidth: a,
|
|
1373
|
-
offsetHeight:
|
|
1373
|
+
offsetHeight: r
|
|
1374
1374
|
} = n;
|
|
1375
1375
|
return {
|
|
1376
1376
|
top: s,
|
|
1377
1377
|
right: i + a,
|
|
1378
|
-
bottom: s +
|
|
1378
|
+
bottom: s + r,
|
|
1379
1379
|
left: i,
|
|
1380
1380
|
width: a,
|
|
1381
|
-
height:
|
|
1381
|
+
height: r
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
return {
|
|
1385
1385
|
measure: t
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function vo(t) {
|
|
1389
1389
|
function e(s) {
|
|
1390
1390
|
return t * (s / 100);
|
|
1391
1391
|
}
|
|
@@ -1393,11 +1393,11 @@ function vr(t) {
|
|
|
1393
1393
|
measure: e
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function yo(t, e, n, s, i, a, r) {
|
|
1397
1397
|
const d = [t].concat(s);
|
|
1398
1398
|
let l, u, y = [], f = !1;
|
|
1399
1399
|
function k(v) {
|
|
1400
|
-
return i.measureSize(
|
|
1400
|
+
return i.measureSize(r.measure(v));
|
|
1401
1401
|
}
|
|
1402
1402
|
function g(v) {
|
|
1403
1403
|
if (!a) return;
|
|
@@ -1413,7 +1413,7 @@ function yr(t, e, n, s, i, a, o) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
l = new ResizeObserver((m) => {
|
|
1416
|
-
(
|
|
1416
|
+
(ze(a) || a(v, m)) && p(m);
|
|
1417
1417
|
}), n.requestAnimationFrame(() => {
|
|
1418
1418
|
d.forEach((m) => l.observe(m));
|
|
1419
1419
|
});
|
|
@@ -1426,12 +1426,12 @@ function yr(t, e, n, s, i, a, o) {
|
|
|
1426
1426
|
destroy: h
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
let
|
|
1429
|
+
function xo(t, e, n, s, i, a) {
|
|
1430
|
+
let r = 0, d = 0, l = i, u = a, y = t.get(), f = 0;
|
|
1431
1431
|
function k() {
|
|
1432
1432
|
const E = s.get() - t.get(), j = !l;
|
|
1433
1433
|
let L = 0;
|
|
1434
|
-
return j ? (
|
|
1434
|
+
return j ? (r = 0, n.set(s), t.set(s), L = E) : (n.set(t), r += E / l, r *= u, y += r, t.add(r), L = y - f), d = et(L), f = y, F;
|
|
1435
1435
|
}
|
|
1436
1436
|
function g() {
|
|
1437
1437
|
const E = s.get() - e.get();
|
|
@@ -1444,7 +1444,7 @@ function xr(t, e, n, s, i, a) {
|
|
|
1444
1444
|
return d;
|
|
1445
1445
|
}
|
|
1446
1446
|
function v() {
|
|
1447
|
-
return
|
|
1447
|
+
return r;
|
|
1448
1448
|
}
|
|
1449
1449
|
function p() {
|
|
1450
1450
|
return T(i);
|
|
@@ -1471,15 +1471,15 @@ function xr(t, e, n, s, i, a) {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
return F;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1475
|
-
const a = i.measure(10),
|
|
1474
|
+
function To(t, e, n, s, i) {
|
|
1475
|
+
const a = i.measure(10), r = i.measure(50), d = fe(0.1, 0.99);
|
|
1476
1476
|
let l = !1;
|
|
1477
1477
|
function u() {
|
|
1478
1478
|
return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1479
1479
|
}
|
|
1480
1480
|
function y(g) {
|
|
1481
1481
|
if (!u()) return;
|
|
1482
|
-
const h = t.reachedMin(e.get()) ? "min" : "max", b = U(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b /
|
|
1482
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", b = U(t[h] - e.get()), v = n.get() - e.get(), p = d.constrain(b / r);
|
|
1483
1483
|
n.subtract(v * p), !g && U(v) < a && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1484
1484
|
}
|
|
1485
1485
|
function f(g) {
|
|
@@ -1491,13 +1491,13 @@ function Tr(t, e, n, s, i) {
|
|
|
1491
1491
|
toggleActive: f
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1495
|
-
const a = fe(-e + t, 0),
|
|
1494
|
+
function So(t, e, n, s, i) {
|
|
1495
|
+
const a = fe(-e + t, 0), r = f(), d = y(), l = k();
|
|
1496
1496
|
function u(h, b) {
|
|
1497
1497
|
return Ie(h, b) <= 1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function y() {
|
|
1500
|
-
const h =
|
|
1500
|
+
const h = r[0], b = ie(r), v = r.lastIndexOf(h), p = r.indexOf(b) + 1;
|
|
1501
1501
|
return fe(v, p);
|
|
1502
1502
|
}
|
|
1503
1503
|
function f() {
|
|
@@ -1511,29 +1511,29 @@ function Sr(t, e, n, s, i) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
function k() {
|
|
1513
1513
|
if (e <= t + i) return [a.max];
|
|
1514
|
-
if (s === "keepSnaps") return
|
|
1514
|
+
if (s === "keepSnaps") return r;
|
|
1515
1515
|
const {
|
|
1516
1516
|
min: h,
|
|
1517
1517
|
max: b
|
|
1518
1518
|
} = d;
|
|
1519
|
-
return
|
|
1519
|
+
return r.slice(h, b);
|
|
1520
1520
|
}
|
|
1521
1521
|
return {
|
|
1522
1522
|
snapsContained: l,
|
|
1523
1523
|
scrollContainLimit: d
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function wo(t, e, n) {
|
|
1527
1527
|
const s = e[0], i = n ? s - t : ie(e);
|
|
1528
1528
|
return {
|
|
1529
1529
|
limit: fe(i, s)
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
const a = e.min + 0.1,
|
|
1532
|
+
function Co(t, e, n, s) {
|
|
1533
|
+
const a = e.min + 0.1, r = e.max + 0.1, {
|
|
1534
1534
|
reachedMin: d,
|
|
1535
1535
|
reachedMax: l
|
|
1536
|
-
} = fe(a,
|
|
1536
|
+
} = fe(a, r);
|
|
1537
1537
|
function u(k) {
|
|
1538
1538
|
return k === 1 ? l(n.get()) : k === -1 ? d(n.get()) : !1;
|
|
1539
1539
|
}
|
|
@@ -1546,28 +1546,28 @@ function Cr(t, e, n, s) {
|
|
|
1546
1546
|
loop: y
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function jo(t) {
|
|
1550
1550
|
const {
|
|
1551
1551
|
max: e,
|
|
1552
1552
|
length: n
|
|
1553
1553
|
} = t;
|
|
1554
1554
|
function s(a) {
|
|
1555
|
-
const
|
|
1556
|
-
return n ?
|
|
1555
|
+
const r = a - e;
|
|
1556
|
+
return n ? r / -n : 0;
|
|
1557
1557
|
}
|
|
1558
1558
|
return {
|
|
1559
1559
|
get: s
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Do(t, e, n, s, i) {
|
|
1563
1563
|
const {
|
|
1564
1564
|
startEdge: a,
|
|
1565
|
-
endEdge:
|
|
1565
|
+
endEdge: r
|
|
1566
1566
|
} = t, {
|
|
1567
1567
|
groupSlides: d
|
|
1568
1568
|
} = i, l = f().map(e.measure), u = k(), y = g();
|
|
1569
1569
|
function f() {
|
|
1570
|
-
return d(s).map((b) => ie(b)[
|
|
1570
|
+
return d(s).map((b) => ie(b)[r] - b[0][a]).map(U);
|
|
1571
1571
|
}
|
|
1572
1572
|
function k() {
|
|
1573
1573
|
return s.map((b) => n[a] - b[a]).map((b) => -U(b));
|
|
@@ -1580,15 +1580,15 @@ function Dr(t, e, n, s, i) {
|
|
|
1580
1580
|
snapsAligned: y
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Io(t, e, n, s, i, a) {
|
|
1584
1584
|
const {
|
|
1585
|
-
groupSlides:
|
|
1585
|
+
groupSlides: r
|
|
1586
1586
|
} = i, {
|
|
1587
1587
|
min: d,
|
|
1588
1588
|
max: l
|
|
1589
1589
|
} = s, u = y();
|
|
1590
1590
|
function y() {
|
|
1591
|
-
const k =
|
|
1591
|
+
const k = r(a), g = !t || e === "keepSnaps";
|
|
1592
1592
|
return n.length === 1 ? [a] : g ? k : k.slice(d, l).map((h, b, v) => {
|
|
1593
1593
|
const p = !b, m = tt(v, b);
|
|
1594
1594
|
if (p) {
|
|
@@ -1606,17 +1606,17 @@ function Ir(t, e, n, s, i, a) {
|
|
|
1606
1606
|
slideRegistry: u
|
|
1607
1607
|
};
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Lo(t, e, n, s, i) {
|
|
1610
1610
|
const {
|
|
1611
1611
|
reachedAny: a,
|
|
1612
|
-
removeOffset:
|
|
1612
|
+
removeOffset: r,
|
|
1613
1613
|
constrain: d
|
|
1614
1614
|
} = s;
|
|
1615
1615
|
function l(h) {
|
|
1616
1616
|
return h.concat().sort((b, v) => U(b) - U(v))[0];
|
|
1617
1617
|
}
|
|
1618
1618
|
function u(h) {
|
|
1619
|
-
const b = t ?
|
|
1619
|
+
const b = t ? r(h) : d(h), v = e.map((m, T) => ({
|
|
1620
1620
|
diff: y(m - b, 0),
|
|
1621
1621
|
index: T
|
|
1622
1622
|
})).sort((m, T) => U(m.diff) - U(T.diff)), {
|
|
@@ -1662,10 +1662,10 @@ function Lr(t, e, n, s, i) {
|
|
|
1662
1662
|
shortcut: y
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Ao(t, e, n, s, i, a, r) {
|
|
1666
1666
|
function d(f) {
|
|
1667
1667
|
const k = f.distance, g = f.index !== e.get();
|
|
1668
|
-
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(f.index),
|
|
1668
|
+
a.add(k), k && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(f.index), r.emit("select"));
|
|
1669
1669
|
}
|
|
1670
1670
|
function l(f, k) {
|
|
1671
1671
|
const g = i.byDistance(f, k);
|
|
@@ -1680,7 +1680,7 @@ function Ar(t, e, n, s, i, a, o) {
|
|
|
1680
1680
|
index: u
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Fo(t, e, n, s, i, a, r, d) {
|
|
1684
1684
|
const l = {
|
|
1685
1685
|
passive: !0,
|
|
1686
1686
|
capture: !0
|
|
@@ -1690,13 +1690,13 @@ function Fr(t, e, n, s, i, a, o, d) {
|
|
|
1690
1690
|
if (!d) return;
|
|
1691
1691
|
function h(b) {
|
|
1692
1692
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
1693
|
-
|
|
1693
|
+
r.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1694
1694
|
const m = n.findIndex((T) => T.includes(b));
|
|
1695
|
-
Qe(m) && (i.useDuration(0), s.index(m, 0),
|
|
1695
|
+
Qe(m) && (i.useDuration(0), s.index(m, 0), r.emit("slideFocus"));
|
|
1696
1696
|
}
|
|
1697
1697
|
a.add(document, "keydown", f, !1), e.forEach((b, v) => {
|
|
1698
1698
|
a.add(b, "focus", (p) => {
|
|
1699
|
-
(
|
|
1699
|
+
(ze(d) || d(g, p)) && h(v);
|
|
1700
1700
|
}, l);
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
@@ -1713,15 +1713,15 @@ function De(t) {
|
|
|
1713
1713
|
return e;
|
|
1714
1714
|
}
|
|
1715
1715
|
function s(l) {
|
|
1716
|
-
e =
|
|
1716
|
+
e = r(l);
|
|
1717
1717
|
}
|
|
1718
1718
|
function i(l) {
|
|
1719
|
-
e +=
|
|
1719
|
+
e += r(l);
|
|
1720
1720
|
}
|
|
1721
1721
|
function a(l) {
|
|
1722
|
-
e -=
|
|
1722
|
+
e -= r(l);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function r(l) {
|
|
1725
1725
|
return Qe(l) ? l : l.get();
|
|
1726
1726
|
}
|
|
1727
1727
|
return {
|
|
@@ -1732,9 +1732,9 @@ function De(t) {
|
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
1734
|
function Pt(t, e) {
|
|
1735
|
-
const n = t.scroll === "x" ?
|
|
1735
|
+
const n = t.scroll === "x" ? r : d, s = e.style;
|
|
1736
1736
|
let i = null, a = !1;
|
|
1737
|
-
function
|
|
1737
|
+
function r(k) {
|
|
1738
1738
|
return `translate3d(${k}px,0px,0px)`;
|
|
1739
1739
|
}
|
|
1740
1740
|
function d(k) {
|
|
@@ -1742,7 +1742,7 @@ function Pt(t, e) {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function l(k) {
|
|
1744
1744
|
if (a) return;
|
|
1745
|
-
const g =
|
|
1745
|
+
const g = mo(t.direction(k));
|
|
1746
1746
|
g !== i && (s.transform = n(g), i = g);
|
|
1747
1747
|
}
|
|
1748
1748
|
function u(k) {
|
|
@@ -1757,7 +1757,7 @@ function Pt(t, e) {
|
|
|
1757
1757
|
toggleActive: u
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function _o(t, e, n, s, i, a, r, d, l) {
|
|
1761
1761
|
const y = Le(i), f = Le(i).reverse(), k = p().concat(m());
|
|
1762
1762
|
function g(j, L) {
|
|
1763
1763
|
return j.reduce((B, $) => B - i[$], L);
|
|
@@ -1774,22 +1774,22 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1774
1774
|
function v(j, L, B) {
|
|
1775
1775
|
const $ = b(L);
|
|
1776
1776
|
return j.map((N) => {
|
|
1777
|
-
const W = B ? 0 : -n,
|
|
1777
|
+
const W = B ? 0 : -n, R = B ? n : 0, z = B ? "end" : "start", I = $[N][z];
|
|
1778
1778
|
return {
|
|
1779
1779
|
index: N,
|
|
1780
1780
|
loopPoint: I,
|
|
1781
1781
|
slideLocation: De(-1),
|
|
1782
1782
|
translate: Pt(t, l[N]),
|
|
1783
|
-
target: () => d.get() > I ? W :
|
|
1783
|
+
target: () => d.get() > I ? W : R
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
function p() {
|
|
1788
|
-
const j =
|
|
1788
|
+
const j = r[0], L = h(f, j);
|
|
1789
1789
|
return v(L, n, !1);
|
|
1790
1790
|
}
|
|
1791
1791
|
function m() {
|
|
1792
|
-
const j = e -
|
|
1792
|
+
const j = e - r[0] - 1, L = h(y, j);
|
|
1793
1793
|
return v(L, -n, !0);
|
|
1794
1794
|
}
|
|
1795
1795
|
function T() {
|
|
@@ -1820,7 +1820,7 @@ function _r(t, e, n, s, i, a, o, d, l) {
|
|
|
1820
1820
|
loopPoints: k
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function Eo(t, e, n) {
|
|
1824
1824
|
let s, i = !1;
|
|
1825
1825
|
function a(l) {
|
|
1826
1826
|
if (!n) return;
|
|
@@ -1832,28 +1832,28 @@ function Er(t, e, n) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
s = new MutationObserver((y) => {
|
|
1835
|
-
i || (
|
|
1835
|
+
i || (ze(n) || n(l, y)) && u(y);
|
|
1836
1836
|
}), s.observe(t, {
|
|
1837
1837
|
childList: !0
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function r() {
|
|
1841
1841
|
s && s.disconnect(), i = !0;
|
|
1842
1842
|
}
|
|
1843
1843
|
return {
|
|
1844
1844
|
init: a,
|
|
1845
|
-
destroy:
|
|
1845
|
+
destroy: r
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Bo(t, e, n, s) {
|
|
1849
1849
|
const i = {};
|
|
1850
|
-
let a = null,
|
|
1850
|
+
let a = null, r = null, d, l = !1;
|
|
1851
1851
|
function u() {
|
|
1852
1852
|
d = new IntersectionObserver((h) => {
|
|
1853
1853
|
l || (h.forEach((b) => {
|
|
1854
1854
|
const v = e.indexOf(b.target);
|
|
1855
1855
|
i[v] = b;
|
|
1856
|
-
}), a = null,
|
|
1856
|
+
}), a = null, r = null, n.emit("slidesInView"));
|
|
1857
1857
|
}, {
|
|
1858
1858
|
root: t.parentElement,
|
|
1859
1859
|
threshold: s
|
|
@@ -1872,9 +1872,9 @@ function Br(t, e, n, s) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
function k(h = !0) {
|
|
1874
1874
|
if (h && a) return a;
|
|
1875
|
-
if (!h &&
|
|
1875
|
+
if (!h && r) return r;
|
|
1876
1876
|
const b = f(h);
|
|
1877
|
-
return h && (a = b), h || (
|
|
1877
|
+
return h && (a = b), h || (r = b), b;
|
|
1878
1878
|
}
|
|
1879
1879
|
return {
|
|
1880
1880
|
init: u,
|
|
@@ -1882,12 +1882,12 @@ function Br(t, e, n, s) {
|
|
|
1882
1882
|
get: k
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function No(t, e, n, s, i, a) {
|
|
1886
1886
|
const {
|
|
1887
|
-
measureSize:
|
|
1887
|
+
measureSize: r,
|
|
1888
1888
|
startEdge: d,
|
|
1889
1889
|
endEdge: l
|
|
1890
|
-
} = t, u = n[0] && i, y = h(), f = b(), k = n.map(
|
|
1890
|
+
} = t, u = n[0] && i, y = h(), f = b(), k = n.map(r), g = v();
|
|
1891
1891
|
function h() {
|
|
1892
1892
|
if (!u) return 0;
|
|
1893
1893
|
const m = n[0];
|
|
@@ -1911,7 +1911,7 @@ function Nr(t, e, n, s, i, a) {
|
|
|
1911
1911
|
endGap: f
|
|
1912
1912
|
};
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function Po(t, e, n, s, i, a, r, d, l) {
|
|
1915
1915
|
const {
|
|
1916
1916
|
startEdge: u,
|
|
1917
1917
|
endEdge: y,
|
|
@@ -1922,7 +1922,7 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(p) {
|
|
1924
1924
|
return p.length ? Le(p).reduce((m, T, _) => {
|
|
1925
|
-
const F = ie(m) || 0, E = F === 0, j = T === _e(p), L = i[u] - a[F][u], B = i[u] - a[T][y], $ = !s && E ? f(
|
|
1925
|
+
const F = ie(m) || 0, E = F === 0, j = T === _e(p), L = i[u] - a[F][u], B = i[u] - a[T][y], $ = !s && E ? f(r) : 0, N = !s && j ? f(d) : 0, W = U(B - N - (L + $));
|
|
1926
1926
|
return _ && W > e + l && m.push(T), j && m.push(p.length), m;
|
|
1927
1927
|
}, []).map((m, T, _) => {
|
|
1928
1928
|
const F = Math.max(_[T - 1] || 0);
|
|
@@ -1936,7 +1936,7 @@ function Pr(t, e, n, s, i, a, o, d, l) {
|
|
|
1936
1936
|
groupSlides: b
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Ro(t, e, n, s, i, a, r) {
|
|
1940
1940
|
const {
|
|
1941
1941
|
align: d,
|
|
1942
1942
|
axis: l,
|
|
@@ -1954,20 +1954,20 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
1954
1954
|
watchSlides: _,
|
|
1955
1955
|
watchDrag: F,
|
|
1956
1956
|
watchFocus: E
|
|
1957
|
-
} = a, j = 2, L =
|
|
1957
|
+
} = a, j = 2, L = bo(), B = L.measure(e), $ = n.map(L.measure), N = fo(l, u), W = N.measureSize(B), R = vo(W), z = go(d, W), I = !f && !!m, q = f || !!m, {
|
|
1958
1958
|
slideSizes: ne,
|
|
1959
1959
|
slideSizesWithGaps: Y,
|
|
1960
1960
|
startGap: K,
|
|
1961
|
-
endGap:
|
|
1962
|
-
} =
|
|
1961
|
+
endGap: oe
|
|
1962
|
+
} = No(N, B, $, n, q, i), c = Po(N, W, v, f, B, $, K, oe, j), {
|
|
1963
1963
|
snaps: A,
|
|
1964
1964
|
snapsAligned: P
|
|
1965
|
-
} =
|
|
1965
|
+
} = Do(N, z, B, $, c), M = -ie(A) + ie(Y), {
|
|
1966
1966
|
snapsContained: x,
|
|
1967
1967
|
scrollContainLimit: D
|
|
1968
|
-
} =
|
|
1968
|
+
} = So(W, M, P, m, j), C = I ? x : P, {
|
|
1969
1969
|
limit: H
|
|
1970
|
-
} =
|
|
1970
|
+
} = wo(M, C, f), J = Nt(_e(C), y, f), X = J.clone(), V = Le(n), w = ({
|
|
1971
1971
|
dragHandler: he,
|
|
1972
1972
|
scrollBody: He,
|
|
1973
1973
|
scrollBounds: We,
|
|
@@ -1996,19 +1996,19 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
1996
1996
|
ut && Vt.stop();
|
|
1997
1997
|
const Ut = We.get() * lt + Ot.get() * (1 - lt);
|
|
1998
1998
|
Ee.set(Ut), it && ($t.loop(he.direction()), Ht.loop()), He.to(Ee.get()), ut && at.emit("settle"), ct || at.emit("scroll");
|
|
1999
|
-
}, G =
|
|
1999
|
+
}, G = po(s, i, () => w($e), (he) => O($e, he)), Z = 0.68, le = C[J.get()], de = De(le), me = De(le), ce = De(le), ge = De(le), xe = xo(de, ce, me, ge, k, Z), Me = Lo(f, C, M, H, ge), Oe = Ao(G, J, X, xe, Me, ge, r), rt = jo(H), ot = Fe(), zt = Bo(e, n, r, b), {
|
|
2000
2000
|
slideRegistry: st
|
|
2001
|
-
} =
|
|
2001
|
+
} = Io(I, m, C, D, c, V), Mt = Fo(t, n, st, Oe, xe, ot, r, E), $e = {
|
|
2002
2002
|
ownerDocument: s,
|
|
2003
2003
|
ownerWindow: i,
|
|
2004
|
-
eventHandler:
|
|
2004
|
+
eventHandler: r,
|
|
2005
2005
|
containerRect: B,
|
|
2006
2006
|
slideRects: $,
|
|
2007
2007
|
animation: G,
|
|
2008
2008
|
axis: N,
|
|
2009
|
-
dragHandler:
|
|
2010
|
-
eventStore:
|
|
2011
|
-
percentOfView:
|
|
2009
|
+
dragHandler: ho(N, t, s, i, ge, ko(N, i), de, G, Oe, xe, Me, J, r, R, g, h, p, Z, F),
|
|
2010
|
+
eventStore: ot,
|
|
2011
|
+
percentOfView: R,
|
|
2012
2012
|
index: J,
|
|
2013
2013
|
indexPrevious: X,
|
|
2014
2014
|
limit: H,
|
|
@@ -2016,19 +2016,19 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
2016
2016
|
offsetLocation: ce,
|
|
2017
2017
|
previousLocation: me,
|
|
2018
2018
|
options: a,
|
|
2019
|
-
resizeHandler:
|
|
2019
|
+
resizeHandler: yo(e, r, i, n, N, T, L),
|
|
2020
2020
|
scrollBody: xe,
|
|
2021
|
-
scrollBounds:
|
|
2022
|
-
scrollLooper:
|
|
2023
|
-
scrollProgress:
|
|
2024
|
-
scrollSnapList: C.map(
|
|
2021
|
+
scrollBounds: To(H, ce, ge, xe, R),
|
|
2022
|
+
scrollLooper: Co(M, H, ce, [de, ce, me, ge]),
|
|
2023
|
+
scrollProgress: rt,
|
|
2024
|
+
scrollSnapList: C.map(rt.get),
|
|
2025
2025
|
scrollSnaps: C,
|
|
2026
|
-
scrollTarget:
|
|
2026
|
+
scrollTarget: Me,
|
|
2027
2027
|
scrollTo: Oe,
|
|
2028
|
-
slideLooper:
|
|
2029
|
-
slideFocus:
|
|
2030
|
-
slidesHandler:
|
|
2031
|
-
slidesInView:
|
|
2028
|
+
slideLooper: _o(N, W, M, ne, Y, A, C, ce, n),
|
|
2029
|
+
slideFocus: Mt,
|
|
2030
|
+
slidesHandler: Eo(e, r, _),
|
|
2031
|
+
slidesInView: zt,
|
|
2032
2032
|
slideIndexes: V,
|
|
2033
2033
|
slideRegistry: st,
|
|
2034
2034
|
slidesToScroll: c,
|
|
@@ -2037,7 +2037,7 @@ function zr(t, e, n, s, i, a, o) {
|
|
|
2037
2037
|
};
|
|
2038
2038
|
return $e;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function zo() {
|
|
2041
2041
|
let t = {}, e;
|
|
2042
2042
|
function n(u) {
|
|
2043
2043
|
e = u;
|
|
@@ -2051,7 +2051,7 @@ function Mr() {
|
|
|
2051
2051
|
function a(u, y) {
|
|
2052
2052
|
return t[u] = s(u).concat([y]), l;
|
|
2053
2053
|
}
|
|
2054
|
-
function
|
|
2054
|
+
function r(u, y) {
|
|
2055
2055
|
return t[u] = s(u).filter((f) => f !== y), l;
|
|
2056
2056
|
}
|
|
2057
2057
|
function d() {
|
|
@@ -2060,13 +2060,13 @@ function Mr() {
|
|
|
2060
2060
|
const l = {
|
|
2061
2061
|
init: n,
|
|
2062
2062
|
emit: i,
|
|
2063
|
-
off:
|
|
2063
|
+
off: r,
|
|
2064
2064
|
on: a,
|
|
2065
2065
|
clear: d
|
|
2066
2066
|
};
|
|
2067
2067
|
return l;
|
|
2068
2068
|
}
|
|
2069
|
-
const
|
|
2069
|
+
const Mo = {
|
|
2070
2070
|
align: "center",
|
|
2071
2071
|
axis: "x",
|
|
2072
2072
|
container: null,
|
|
@@ -2088,16 +2088,16 @@ const Rr = {
|
|
|
2088
2088
|
watchSlides: !0,
|
|
2089
2089
|
watchFocus: !0
|
|
2090
2090
|
};
|
|
2091
|
-
function
|
|
2092
|
-
function e(a,
|
|
2093
|
-
return Bt(a,
|
|
2091
|
+
function Oo(t) {
|
|
2092
|
+
function e(a, r) {
|
|
2093
|
+
return Bt(a, r || {});
|
|
2094
2094
|
}
|
|
2095
2095
|
function n(a) {
|
|
2096
|
-
const
|
|
2096
|
+
const r = a.breakpoints || {}, d = Ae(r).filter((l) => t.matchMedia(l).matches).map((l) => r[l]).reduce((l, u) => e(l, u), {});
|
|
2097
2097
|
return e(a, d);
|
|
2098
2098
|
}
|
|
2099
2099
|
function s(a) {
|
|
2100
|
-
return a.map((
|
|
2100
|
+
return a.map((r) => Ae(r.breakpoints || {})).reduce((r, d) => r.concat(d), []).map(t.matchMedia);
|
|
2101
2101
|
}
|
|
2102
2102
|
return {
|
|
2103
2103
|
mergeOptions: e,
|
|
@@ -2105,12 +2105,12 @@ function Or(t) {
|
|
|
2105
2105
|
optionsMediaQueries: s
|
|
2106
2106
|
};
|
|
2107
2107
|
}
|
|
2108
|
-
function $
|
|
2108
|
+
function $o(t) {
|
|
2109
2109
|
let e = [];
|
|
2110
|
-
function n(a,
|
|
2111
|
-
return e =
|
|
2110
|
+
function n(a, r) {
|
|
2111
|
+
return e = r.filter(({
|
|
2112
2112
|
options: d
|
|
2113
|
-
}) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)),
|
|
2113
|
+
}) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(a, t)), r.reduce((d, l) => Object.assign(d, {
|
|
2114
2114
|
[l.name]: l
|
|
2115
2115
|
}), {});
|
|
2116
2116
|
}
|
|
@@ -2122,8 +2122,8 @@ function $r(t) {
|
|
|
2122
2122
|
destroy: s
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
const s = t.ownerDocument, i = s.defaultView, a =
|
|
2125
|
+
function Re(t, e, n) {
|
|
2126
|
+
const s = t.ownerDocument, i = s.defaultView, a = Oo(i), r = $o(a), d = Fe(), l = zo(), {
|
|
2127
2127
|
mergeOptions: u,
|
|
2128
2128
|
optionsAtMedia: y,
|
|
2129
2129
|
optionsMediaQueries: f
|
|
@@ -2132,7 +2132,7 @@ function ze(t, e, n) {
|
|
|
2132
2132
|
off: g,
|
|
2133
2133
|
emit: h
|
|
2134
2134
|
} = l, b = N;
|
|
2135
|
-
let v = !1, p, m = u(
|
|
2135
|
+
let v = !1, p, m = u(Mo, Re.globalOptions), T = u(m), _ = [], F, E, j;
|
|
2136
2136
|
function L() {
|
|
2137
2137
|
const {
|
|
2138
2138
|
container: V,
|
|
@@ -2143,7 +2143,7 @@ function ze(t, e, n) {
|
|
|
2143
2143
|
j = [].slice.call(G || E.children);
|
|
2144
2144
|
}
|
|
2145
2145
|
function B(V) {
|
|
2146
|
-
const w =
|
|
2146
|
+
const w = Ro(t, E, j, s, i, V, l);
|
|
2147
2147
|
if (V.loop && !w.slideLooper.canLoop()) {
|
|
2148
2148
|
const O = Object.assign({}, V, {
|
|
2149
2149
|
loop: !1
|
|
@@ -2155,7 +2155,7 @@ function ze(t, e, n) {
|
|
|
2155
2155
|
function $(V, w) {
|
|
2156
2156
|
v || (m = u(m, V), T = y(m), _ = w || _, L(), p = B(T), f([m, ..._.map(({
|
|
2157
2157
|
options: O
|
|
2158
|
-
}) => O)]).forEach((O) => d.add(O, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), E.offsetParent && j.length && p.dragHandler.init(X), F =
|
|
2158
|
+
}) => O)]).forEach((O) => d.add(O, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(X), p.eventHandler.init(X), p.resizeHandler.init(X), p.slidesHandler.init(X), p.options.loop && p.slideLooper.loop(), E.offsetParent && j.length && p.dragHandler.init(X), F = r.init(X, _)));
|
|
2159
2159
|
}
|
|
2160
2160
|
function N(V, w) {
|
|
2161
2161
|
const O = c();
|
|
@@ -2164,21 +2164,21 @@ function ze(t, e, n) {
|
|
|
2164
2164
|
}, V), w), l.emit("reInit");
|
|
2165
2165
|
}
|
|
2166
2166
|
function W() {
|
|
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(),
|
|
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(), r.destroy(), d.clear();
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function R() {
|
|
2170
2170
|
v || (v = !0, d.clear(), W(), l.emit("destroy"), l.clear());
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function z(V, w, O) {
|
|
2173
2173
|
!T.active || v || (p.scrollBody.useBaseFriction().useDuration(w === !0 ? 0 : T.duration), p.scrollTo.index(V, O || 0));
|
|
2174
2174
|
}
|
|
2175
2175
|
function I(V) {
|
|
2176
2176
|
const w = p.index.add(1).get();
|
|
2177
|
-
|
|
2177
|
+
z(w, V, -1);
|
|
2178
2178
|
}
|
|
2179
2179
|
function q(V) {
|
|
2180
2180
|
const w = p.index.add(-1).get();
|
|
2181
|
-
|
|
2181
|
+
z(w, V, 1);
|
|
2182
2182
|
}
|
|
2183
2183
|
function ne() {
|
|
2184
2184
|
return p.index.add(1).get() !== c();
|
|
@@ -2189,7 +2189,7 @@ function ze(t, e, n) {
|
|
|
2189
2189
|
function K() {
|
|
2190
2190
|
return p.scrollSnapList;
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function oe() {
|
|
2193
2193
|
return p.scrollProgress.get(p.offsetLocation.get());
|
|
2194
2194
|
}
|
|
2195
2195
|
function c() {
|
|
@@ -2201,7 +2201,7 @@ function ze(t, e, n) {
|
|
|
2201
2201
|
function P() {
|
|
2202
2202
|
return p.slidesInView.get();
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function M() {
|
|
2205
2205
|
return p.slidesInView.get(!1);
|
|
2206
2206
|
}
|
|
2207
2207
|
function x() {
|
|
@@ -2224,7 +2224,7 @@ function ze(t, e, n) {
|
|
|
2224
2224
|
canScrollPrev: Y,
|
|
2225
2225
|
containerNode: H,
|
|
2226
2226
|
internalEngine: D,
|
|
2227
|
-
destroy:
|
|
2227
|
+
destroy: R,
|
|
2228
2228
|
off: g,
|
|
2229
2229
|
on: k,
|
|
2230
2230
|
emit: h,
|
|
@@ -2234,58 +2234,58 @@ function ze(t, e, n) {
|
|
|
2234
2234
|
rootNode: C,
|
|
2235
2235
|
scrollNext: I,
|
|
2236
2236
|
scrollPrev: q,
|
|
2237
|
-
scrollProgress:
|
|
2237
|
+
scrollProgress: oe,
|
|
2238
2238
|
scrollSnapList: K,
|
|
2239
|
-
scrollTo:
|
|
2239
|
+
scrollTo: z,
|
|
2240
2240
|
selectedScrollSnap: c,
|
|
2241
2241
|
slideNodes: J,
|
|
2242
2242
|
slidesInView: P,
|
|
2243
|
-
slidesNotInView:
|
|
2243
|
+
slidesNotInView: M
|
|
2244
2244
|
};
|
|
2245
2245
|
return $(e, n), setTimeout(() => l.emit("init"), 0), X;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
Re.globalOptions = void 0;
|
|
2248
2248
|
function nt(t = {}, e = []) {
|
|
2249
|
-
const n = Ue(t), s = Ue(e), [i, a] =
|
|
2249
|
+
const n = Ue(t), s = Ue(e), [i, a] = re(), [r, d] = re(), l = ae(() => {
|
|
2250
2250
|
i && i.reInit(n.current, s.current);
|
|
2251
2251
|
}, [i]);
|
|
2252
2252
|
return te(() => {
|
|
2253
2253
|
Xe(n.current, t) || (n.current = t, l());
|
|
2254
2254
|
}, [t, l]), te(() => {
|
|
2255
|
-
|
|
2255
|
+
co(s.current, e) || (s.current = e, l());
|
|
2256
2256
|
}, [e, l]), te(() => {
|
|
2257
|
-
if (
|
|
2258
|
-
|
|
2259
|
-
const u =
|
|
2257
|
+
if (lo() && r) {
|
|
2258
|
+
Re.globalOptions = nt.globalOptions;
|
|
2259
|
+
const u = Re(r, n.current, s.current);
|
|
2260
2260
|
return a(u), () => u.destroy();
|
|
2261
2261
|
} else
|
|
2262
2262
|
a(void 0);
|
|
2263
|
-
}, [
|
|
2263
|
+
}, [r, a]), [d, i];
|
|
2264
2264
|
}
|
|
2265
2265
|
nt.globalOptions = void 0;
|
|
2266
|
-
const
|
|
2267
|
-
carouselContainer:
|
|
2268
|
-
viewport:
|
|
2269
|
-
slides:
|
|
2270
|
-
slide:
|
|
2271
|
-
slideInner:
|
|
2272
|
-
loaderOverlay:
|
|
2273
|
-
image:
|
|
2274
|
-
loaded:
|
|
2275
|
-
empty:
|
|
2276
|
-
controls:
|
|
2277
|
-
arrows:
|
|
2278
|
-
dots:
|
|
2266
|
+
const Ho = "_carouselContainer_1bu1s_1", Wo = "_viewport_1bu1s_11", Vo = "_slides_1bu1s_17", Go = "_slide_1bu1s_17", qo = "_slideInner_1bu1s_37", Uo = "_loaderOverlay_1bu1s_45", Ko = "_image_1bu1s_55", Yo = "_loaded_1bu1s_66", Jo = "_empty_1bu1s_78", Zo = "_controls_1bu1s_84", Xo = "_arrows_1bu1s_94", Qo = "_dots_1bu1s_104", es = "_dot_1bu1s_104", ts = "_dotActive_1bu1s_130", Q = {
|
|
2267
|
+
carouselContainer: Ho,
|
|
2268
|
+
viewport: Wo,
|
|
2269
|
+
slides: Vo,
|
|
2270
|
+
slide: Go,
|
|
2271
|
+
slideInner: qo,
|
|
2272
|
+
loaderOverlay: Uo,
|
|
2273
|
+
image: Ko,
|
|
2274
|
+
loaded: Yo,
|
|
2275
|
+
empty: Jo,
|
|
2276
|
+
controls: Zo,
|
|
2277
|
+
arrows: Xo,
|
|
2278
|
+
dots: Qo,
|
|
2279
2279
|
dot: es,
|
|
2280
2280
|
dotActive: ts
|
|
2281
|
-
}, ns = cn,
|
|
2281
|
+
}, ns = cn, rs = ({
|
|
2282
2282
|
images: t,
|
|
2283
2283
|
autoPlay: e = !1,
|
|
2284
2284
|
autoDelay: n = 5,
|
|
2285
2285
|
showArrows: s = !0,
|
|
2286
2286
|
showDots: i = !0,
|
|
2287
2287
|
variant: a,
|
|
2288
|
-
slidesPerView:
|
|
2288
|
+
slidesPerView: r = 1,
|
|
2289
2289
|
slideSpacing: d = 16,
|
|
2290
2290
|
cornerRadius: l = 0,
|
|
2291
2291
|
"data-color": u,
|
|
@@ -2296,18 +2296,18 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2296
2296
|
align: "start",
|
|
2297
2297
|
containScroll: "trimSnaps",
|
|
2298
2298
|
slidesToScroll: 1
|
|
2299
|
-
}, [k, g] = nt(f), [h, b] =
|
|
2299
|
+
}, [k, g] = nt(f), [h, b] = re(0), [v, p] = re([]), [m, T] = re([]);
|
|
2300
2300
|
te(() => {
|
|
2301
2301
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2302
2302
|
}, [t]);
|
|
2303
|
-
const _ = ae((
|
|
2304
|
-
T((
|
|
2305
|
-
const I = [...
|
|
2306
|
-
return I[
|
|
2303
|
+
const _ = ae((R) => {
|
|
2304
|
+
T((z) => {
|
|
2305
|
+
const I = [...z];
|
|
2306
|
+
return I[R] = !0, I;
|
|
2307
2307
|
});
|
|
2308
2308
|
}, []), F = ve(() => n * 1e3, [n]), E = ae(() => {
|
|
2309
2309
|
g && b(g.selectedScrollSnap());
|
|
2310
|
-
}, [g]), j = ae((
|
|
2310
|
+
}, [g]), j = ae((R) => g && g.scrollTo(R), [g]), L = ae(() => g && g.scrollPrev(), [g]), B = ae(() => g && g.scrollNext(), [g]);
|
|
2311
2311
|
te(() => {
|
|
2312
2312
|
if (g)
|
|
2313
2313
|
return g.on("select", E), g.on("reInit", E), p(g.scrollSnapList()), () => {
|
|
@@ -2315,17 +2315,17 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2315
2315
|
};
|
|
2316
2316
|
}, [g, E]), te(() => {
|
|
2317
2317
|
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2318
|
-
}, [g, t,
|
|
2318
|
+
}, [g, t, r, d]), te(() => {
|
|
2319
2319
|
if (!e || !g || !t || t.length <= 1) return;
|
|
2320
|
-
const
|
|
2320
|
+
const R = window.setInterval(() => {
|
|
2321
2321
|
g.canScrollNext() && g.scrollNext();
|
|
2322
2322
|
}, F);
|
|
2323
2323
|
return () => {
|
|
2324
|
-
window.clearInterval(
|
|
2324
|
+
window.clearInterval(R);
|
|
2325
2325
|
};
|
|
2326
2326
|
}, [e, F, g, t]);
|
|
2327
|
-
const $ = Math.max(1,
|
|
2328
|
-
return /* @__PURE__ */
|
|
2327
|
+
const $ = Math.max(1, r), N = `${100 / $}%`, W = d / 2;
|
|
2328
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2329
2329
|
"div",
|
|
2330
2330
|
{
|
|
2331
2331
|
className: Q.carouselContainer,
|
|
@@ -2333,7 +2333,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2333
2333
|
"data-size": y,
|
|
2334
2334
|
"data-variant": a,
|
|
2335
2335
|
children: [
|
|
2336
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ o.jsx("div", { className: Q.viewport, ref: k, children: /* @__PURE__ */ o.jsx(
|
|
2337
2337
|
"div",
|
|
2338
2338
|
{
|
|
2339
2339
|
className: Q.slides,
|
|
@@ -2341,7 +2341,7 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2341
2341
|
marginLeft: `-${W}px`,
|
|
2342
2342
|
marginRight: `-${W}px`
|
|
2343
2343
|
},
|
|
2344
|
-
children: t && t.length > 0 ? t.map((
|
|
2344
|
+
children: t && t.length > 0 ? t.map((R, z) => /* @__PURE__ */ o.jsx(
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
2347
|
className: Q.slide,
|
|
@@ -2353,31 +2353,31 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2353
2353
|
overflow: "hidden"
|
|
2354
2354
|
// Ensure radius clips content
|
|
2355
2355
|
},
|
|
2356
|
-
children: /* @__PURE__ */
|
|
2357
|
-
!m[
|
|
2358
|
-
/* @__PURE__ */
|
|
2356
|
+
children: /* @__PURE__ */ o.jsxs("div", { className: Q.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2357
|
+
!m[z] && /* @__PURE__ */ o.jsx("div", { className: Q.loaderOverlay, children: /* @__PURE__ */ o.jsx(ns, { "aria-label": "Laster bilde" }) }),
|
|
2358
|
+
/* @__PURE__ */ o.jsx(
|
|
2359
2359
|
"img",
|
|
2360
2360
|
{
|
|
2361
|
-
className: `${Q.image} ${m[
|
|
2362
|
-
src:
|
|
2363
|
-
alt:
|
|
2364
|
-
loading:
|
|
2361
|
+
className: `${Q.image} ${m[z] ? Q.loaded : Q.loadingImage}`,
|
|
2362
|
+
src: R.src,
|
|
2363
|
+
alt: R.alt,
|
|
2364
|
+
loading: z < $ ? "eager" : "lazy",
|
|
2365
2365
|
crossOrigin: "anonymous",
|
|
2366
|
-
onLoad: () => _(
|
|
2366
|
+
onLoad: () => _(z),
|
|
2367
2367
|
onError: (I) => {
|
|
2368
|
-
I.target.style.display = "none", _(
|
|
2368
|
+
I.target.style.display = "none", _(z);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
)
|
|
2372
2372
|
] })
|
|
2373
2373
|
},
|
|
2374
|
-
`image-${
|
|
2375
|
-
)) : /* @__PURE__ */
|
|
2374
|
+
`image-${z}-${R.src}`
|
|
2375
|
+
)) : /* @__PURE__ */ o.jsx("div", { className: Q.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ o.jsx("div", { className: Q.empty, children: "Ingen bilder" }) })
|
|
2376
2376
|
}
|
|
2377
2377
|
) }),
|
|
2378
|
-
(s || i && t && t.length > 1) && /* @__PURE__ */
|
|
2379
|
-
s && /* @__PURE__ */
|
|
2380
|
-
/* @__PURE__ */
|
|
2378
|
+
(s || i && t && t.length > 1) && /* @__PURE__ */ o.jsxs("div", { className: Q.controls, "aria-hidden": "false", children: [
|
|
2379
|
+
s && /* @__PURE__ */ o.jsxs("div", { className: Q.arrows, children: [
|
|
2380
|
+
/* @__PURE__ */ o.jsx(
|
|
2381
2381
|
ye,
|
|
2382
2382
|
{
|
|
2383
2383
|
variant: "primary",
|
|
@@ -2385,10 +2385,10 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2385
2385
|
"aria-label": "Forrige bilde",
|
|
2386
2386
|
onClick: L,
|
|
2387
2387
|
disabled: !t || t.length <= 1,
|
|
2388
|
-
children: /* @__PURE__ */
|
|
2388
|
+
children: /* @__PURE__ */ o.jsx(Xn, { "aria-hidden": !0 })
|
|
2389
2389
|
}
|
|
2390
2390
|
),
|
|
2391
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ o.jsx(
|
|
2392
2392
|
ye,
|
|
2393
2393
|
{
|
|
2394
2394
|
variant: "primary",
|
|
@@ -2396,23 +2396,23 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2396
2396
|
"aria-label": "Neste bilde",
|
|
2397
2397
|
onClick: B,
|
|
2398
2398
|
disabled: !t || t.length <= 1,
|
|
2399
|
-
children: /* @__PURE__ */
|
|
2399
|
+
children: /* @__PURE__ */ o.jsx(Qn, { "aria-hidden": !0 })
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] }),
|
|
2403
|
-
i && t && t.length > 1 && /* @__PURE__ */
|
|
2404
|
-
const I =
|
|
2405
|
-
return /* @__PURE__ */
|
|
2403
|
+
i && t && t.length > 1 && /* @__PURE__ */ o.jsx("div", { className: Q.dots, role: "tablist", "aria-label": "Bildeposisjon", children: v.map((R, z) => {
|
|
2404
|
+
const I = z === h;
|
|
2405
|
+
return /* @__PURE__ */ o.jsx(
|
|
2406
2406
|
"button",
|
|
2407
2407
|
{
|
|
2408
2408
|
type: "button",
|
|
2409
2409
|
className: `${Q.dot} ${I ? Q.dotActive : ""}`,
|
|
2410
|
-
onClick: () => j(
|
|
2411
|
-
"aria-label": `Gå til bilde ${
|
|
2410
|
+
onClick: () => j(z),
|
|
2411
|
+
"aria-label": `Gå til bilde ${z + 1}`,
|
|
2412
2412
|
"aria-selected": I,
|
|
2413
2413
|
role: "tab"
|
|
2414
2414
|
},
|
|
2415
|
-
`dot-${
|
|
2415
|
+
`dot-${z}`
|
|
2416
2416
|
);
|
|
2417
2417
|
}) })
|
|
2418
2418
|
] })
|
|
@@ -2420,25 +2420,25 @@ const Hr = "_carouselContainer_1bu1s_1", Wr = "_viewport_1bu1s_11", Vr = "_slide
|
|
|
2420
2420
|
}
|
|
2421
2421
|
);
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2424
|
-
const Ca = un, ja = mn, Da = gn, ee = pn, Ia = fn, La = hn,
|
|
2425
|
-
|
|
2423
|
+
rs.displayName = "Carousel";
|
|
2424
|
+
const Ca = un, ja = mn, Da = gn, ee = pn, Ia = fn, La = hn, os = kn, ss = bn;
|
|
2425
|
+
os.displayName = "Field.Description";
|
|
2426
2426
|
ss.displayName = "Field.Counter";
|
|
2427
|
-
const Aa = It, as = ue((t, e) => /* @__PURE__ */
|
|
2427
|
+
const Aa = It, as = ue((t, e) => /* @__PURE__ */ o.jsx(vn, { ref: e, ...t }));
|
|
2428
2428
|
as.displayName = "Heading";
|
|
2429
|
-
const Fa = yn, is = ue((t, e) => /* @__PURE__ */
|
|
2429
|
+
const Fa = yn, is = ue((t, e) => /* @__PURE__ */ o.jsx(xn, { ref: e, ...t }));
|
|
2430
2430
|
is.displayName = "Label";
|
|
2431
2431
|
const Ne = Tn, _a = Sn, Ea = wn, Ba = Cn, Ze = ue(
|
|
2432
|
-
(t, e) => /* @__PURE__ */
|
|
2432
|
+
(t, e) => /* @__PURE__ */ o.jsx(jn, { ref: e, ...t })
|
|
2433
2433
|
);
|
|
2434
2434
|
Ze.displayName = "Paragraph";
|
|
2435
|
-
const Na = Dn, Pa = In,
|
|
2435
|
+
const Na = Dn, Pa = In, Ra = Ln, Pe = Object.assign(An, {
|
|
2436
2436
|
Button: En,
|
|
2437
2437
|
ClearButton: _n,
|
|
2438
2438
|
Input: Fn
|
|
2439
|
-
}),
|
|
2439
|
+
}), za = Bn, Ma = Nn, Oa = Pn, ls = Rn;
|
|
2440
2440
|
ls.displayName = "Suggestion";
|
|
2441
|
-
const qe =
|
|
2441
|
+
const qe = zn, $a = Mn, Ha = On, Wa = $n, Va = Hn, Ga = Wn, qa = Vn, Ua = Gn, ds = ue((t, e) => /* @__PURE__ */ o.jsx(qn, { ref: e, ...t }));
|
|
2442
2442
|
ds.displayName = "ValidationMessage";
|
|
2443
2443
|
const cs = {
|
|
2444
2444
|
NO: {
|
|
@@ -3200,8 +3200,30 @@ const cs = {
|
|
|
3200
3200
|
githubIssuesLink: "https://github.com/norwegianredcross/DesignSystem/issues"
|
|
3201
3201
|
}
|
|
3202
3202
|
},
|
|
3203
|
-
// Footer
|
|
3204
|
-
footer: {
|
|
3203
|
+
// Footer
|
|
3204
|
+
footer: {
|
|
3205
|
+
shortcuts: "Snarveier",
|
|
3206
|
+
shortcutsLinks: {
|
|
3207
|
+
services: "Tilbudene",
|
|
3208
|
+
volunteer: "Bli frivillig",
|
|
3209
|
+
ourWork: "Vårt arbeid",
|
|
3210
|
+
about: "Om Røde Kors",
|
|
3211
|
+
support: "Støtt arbeidet",
|
|
3212
|
+
contact: "Kontakt oss"
|
|
3213
|
+
},
|
|
3214
|
+
contact: {
|
|
3215
|
+
visitingAddress: "Besøks adresse",
|
|
3216
|
+
organizationNumber: "Organisasjonsnummer",
|
|
3217
|
+
email: "E-post"
|
|
3218
|
+
},
|
|
3219
|
+
copyright: "Rødekors",
|
|
3220
|
+
legal: {
|
|
3221
|
+
privacy: "Personvern",
|
|
3222
|
+
press: "For presse",
|
|
3223
|
+
procurement: "Regler for innkjøp",
|
|
3224
|
+
whistleblowing: "Varsling/Misconduct"
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3205
3227
|
},
|
|
3206
3228
|
EN: {
|
|
3207
3229
|
// Header
|
|
@@ -3966,26 +3988,48 @@ const cs = {
|
|
|
3966
3988
|
}
|
|
3967
3989
|
},
|
|
3968
3990
|
// Footer
|
|
3969
|
-
footer: {
|
|
3991
|
+
footer: {
|
|
3992
|
+
shortcuts: "Shortcuts",
|
|
3993
|
+
shortcutsLinks: {
|
|
3994
|
+
services: "Services",
|
|
3995
|
+
volunteer: "Become a volunteer",
|
|
3996
|
+
ourWork: "Our Work",
|
|
3997
|
+
about: "About Red Cross",
|
|
3998
|
+
support: "Support the work",
|
|
3999
|
+
contact: "Contact us"
|
|
4000
|
+
},
|
|
4001
|
+
contact: {
|
|
4002
|
+
visitingAddress: "Visiting address",
|
|
4003
|
+
organizationNumber: "Organization number",
|
|
4004
|
+
email: "Email"
|
|
4005
|
+
},
|
|
4006
|
+
copyright: "Red Cross",
|
|
4007
|
+
legal: {
|
|
4008
|
+
privacy: "Privacy",
|
|
4009
|
+
press: "For press",
|
|
4010
|
+
procurement: "Procurement rules",
|
|
4011
|
+
whistleblowing: "Whistleblowing/Misconduct"
|
|
4012
|
+
}
|
|
4013
|
+
}
|
|
3970
4014
|
}
|
|
3971
|
-
},
|
|
3972
|
-
const [e, n] =
|
|
4015
|
+
}, Rt = Kt(void 0), Ka = ({ children: t }) => {
|
|
4016
|
+
const [e, n] = re("NO"), s = (i) => {
|
|
3973
4017
|
const a = i.split(".");
|
|
3974
|
-
let
|
|
4018
|
+
let r = cs[e];
|
|
3975
4019
|
for (const d of a) {
|
|
3976
|
-
if (
|
|
4020
|
+
if (r[d] === void 0)
|
|
3977
4021
|
return console.warn(`Translation missing for key: ${i} in language: ${e}`), i;
|
|
3978
|
-
|
|
4022
|
+
r = r[d];
|
|
3979
4023
|
}
|
|
3980
|
-
return
|
|
4024
|
+
return r;
|
|
3981
4025
|
};
|
|
3982
|
-
return /* @__PURE__ */
|
|
4026
|
+
return /* @__PURE__ */ o.jsx(Rt.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
3983
4027
|
}, us = () => {
|
|
3984
|
-
const t = Yt(
|
|
4028
|
+
const t = Yt(Rt);
|
|
3985
4029
|
if (t === void 0)
|
|
3986
4030
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
3987
4031
|
return t;
|
|
3988
|
-
}, ms = "_header_3zql2_1", gs = "_languageSwitch_3zql2_36", ps = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", bs = "_extensionDivider_3zql2_84", vs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", Ls = "_redCrossLogo_3zql2_223", As = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", _s = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Bs = "_ctaButton_3zql2_263", Ns = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273",
|
|
4032
|
+
}, ms = "_header_3zql2_1", gs = "_languageSwitch_3zql2_36", ps = "_searchOverlay_3zql2_40", fs = "_headerExtension_3zql2_45", hs = "_extensionContentWrapper_3zql2_61", ks = "_extensionContent_3zql2_61", bs = "_extensionDivider_3zql2_84", vs = "_languageLabel_3zql2_98", ys = "_languageLink_3zql2_104", xs = "_headerInner_3zql2_129", Ts = "_logoWrapper_3zql2_146", Ss = "_logo_3zql2_146", ws = "_secondaryLogoWrapper_3zql2_169", Cs = "_slotComponent_3zql2_178", js = "_slotContainer_3zql2_188", Ds = "_slotText_3zql2_196", Is = "_secondaryLogo_3zql2_169", Ls = "_redCrossLogo_3zql2_223", As = "_primaryLogo_3zql2_229", Fs = "_navItems_3zql2_233", _s = "_navLink_3zql2_242", Es = "_actions_3zql2_255", Bs = "_ctaButton_3zql2_263", Ns = "_themeToggle_3zql2_268", Ps = "_userInfo_3zql2_273", Rs = "_userName_3zql2_279", zs = "_loginLink_3zql2_286", Ms = "_loginText_3zql2_295", Os = "_underline_3zql2_302", $s = "_searchButtonWrapper_3zql2_308", Hs = "_buttonText_3zql2_312", Ws = "_menuButton_3zql2_317", Vs = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", qs = "_menuContent_3zql2_366", Us = "_menuLeftColumn_3zql2_375", Ks = "_menuRightColumn_3zql2_381", Ys = "_slotContent_3zql2_395", Js = "_navList_3zql2_408", Zs = "_menuUtilities_3zql2_415", Xs = "_menuBrand_3zql2_422", Qs = "_suggestionsSection_3zql2_426", ea = "_suggestionsTitle_3zql2_432", ta = "_searchResults_3zql2_441", na = "_resultList_3zql2_447", ra = "_resultItem_3zql2_453", oa = "_resultLink_3zql2_461", sa = "_suggestionIcon_3zql2_475", aa = "_suggestionText_3zql2_488", ia = "_highlightedText_3zql2_495", la = "_remainingText_3zql2_500", da = "_viewAllLink_3zql2_513", ca = "_noResults_3zql2_548", S = {
|
|
3989
4033
|
header: ms,
|
|
3990
4034
|
languageSwitch: gs,
|
|
3991
4035
|
searchOverlay: ps,
|
|
@@ -4011,9 +4055,9 @@ const cs = {
|
|
|
4011
4055
|
ctaButton: Bs,
|
|
4012
4056
|
themeToggle: Ns,
|
|
4013
4057
|
userInfo: Ps,
|
|
4014
|
-
userName:
|
|
4015
|
-
loginLink:
|
|
4016
|
-
loginText:
|
|
4058
|
+
userName: Rs,
|
|
4059
|
+
loginLink: zs,
|
|
4060
|
+
loginText: Ms,
|
|
4017
4061
|
underline: Os,
|
|
4018
4062
|
searchButtonWrapper: $s,
|
|
4019
4063
|
buttonText: Hs,
|
|
@@ -4031,8 +4075,8 @@ const cs = {
|
|
|
4031
4075
|
suggestionsTitle: ea,
|
|
4032
4076
|
searchResults: ta,
|
|
4033
4077
|
resultList: na,
|
|
4034
|
-
resultItem:
|
|
4035
|
-
resultLink:
|
|
4078
|
+
resultItem: ra,
|
|
4079
|
+
resultLink: oa,
|
|
4036
4080
|
suggestionIcon: sa,
|
|
4037
4081
|
suggestionText: aa,
|
|
4038
4082
|
highlightedText: ia,
|
|
@@ -4109,9 +4153,9 @@ const cs = {
|
|
|
4109
4153
|
showUser: s = !0,
|
|
4110
4154
|
showSearch: i = !0,
|
|
4111
4155
|
showLogin: a = !0,
|
|
4112
|
-
showCta:
|
|
4156
|
+
showCta: r = !1,
|
|
4113
4157
|
ctaLabel: d,
|
|
4114
|
-
ctaIcon: l = /* @__PURE__ */
|
|
4158
|
+
ctaIcon: l = /* @__PURE__ */ o.jsx(tr, { "aria-hidden": !0 }),
|
|
4115
4159
|
onCtaClick: u,
|
|
4116
4160
|
showThemeToggle: y = !1,
|
|
4117
4161
|
secondaryLogo: f = !1,
|
|
@@ -4125,14 +4169,14 @@ const cs = {
|
|
|
4125
4169
|
showModeToggle: T = !1,
|
|
4126
4170
|
showLanguageSwitch: _ = !1
|
|
4127
4171
|
}) => {
|
|
4128
|
-
const [F, E] =
|
|
4172
|
+
const [F, E] = re(!1), [j, L] = re(!1), [B, $] = re(""), [N, W] = re("light"), { language: R, setLanguage: z, t: I } = us(), [q, ne] = re(!1);
|
|
4129
4173
|
te(() => {
|
|
4130
4174
|
const x = "rk-header-inline-styles";
|
|
4131
4175
|
if (typeof document > "u" || document.getElementById(x)) return;
|
|
4132
4176
|
const D = ma(S), C = document.createElement("style");
|
|
4133
4177
|
C.id = x, C.textContent = D, document.head.appendChild(C);
|
|
4134
4178
|
}, []);
|
|
4135
|
-
const Y = () => /* @__PURE__ */
|
|
4179
|
+
const Y = () => /* @__PURE__ */ o.jsxs(
|
|
4136
4180
|
"svg",
|
|
4137
4181
|
{
|
|
4138
4182
|
width: "170",
|
|
@@ -4144,16 +4188,16 @@ const cs = {
|
|
|
4144
4188
|
focusable: "false",
|
|
4145
4189
|
className: S.redCrossLogo,
|
|
4146
4190
|
children: [
|
|
4147
|
-
/* @__PURE__ */
|
|
4148
|
-
/* @__PURE__ */
|
|
4149
|
-
/* @__PURE__ */
|
|
4150
|
-
/* @__PURE__ */
|
|
4151
|
-
/* @__PURE__ */
|
|
4152
|
-
/* @__PURE__ */
|
|
4153
|
-
/* @__PURE__ */
|
|
4154
|
-
/* @__PURE__ */
|
|
4155
|
-
/* @__PURE__ */
|
|
4156
|
-
/* @__PURE__ */
|
|
4191
|
+
/* @__PURE__ */ o.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" }),
|
|
4192
|
+
/* @__PURE__ */ o.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" }),
|
|
4193
|
+
/* @__PURE__ */ o.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" }),
|
|
4194
|
+
/* @__PURE__ */ o.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" }),
|
|
4195
|
+
/* @__PURE__ */ o.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" }),
|
|
4196
|
+
/* @__PURE__ */ o.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" }),
|
|
4197
|
+
/* @__PURE__ */ o.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" }),
|
|
4198
|
+
/* @__PURE__ */ o.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" }),
|
|
4199
|
+
/* @__PURE__ */ o.jsx("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4200
|
+
/* @__PURE__ */ o.jsx("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4157
4201
|
]
|
|
4158
4202
|
}
|
|
4159
4203
|
);
|
|
@@ -4216,7 +4260,7 @@ const cs = {
|
|
|
4216
4260
|
const K = () => {
|
|
4217
4261
|
const x = N === "light" ? "dark" : "light";
|
|
4218
4262
|
W(x), document.documentElement.setAttribute("data-color-scheme", x);
|
|
4219
|
-
},
|
|
4263
|
+
}, oe = (x) => {
|
|
4220
4264
|
e && (x.preventDefault(), e("home")), E(!1), L(!1);
|
|
4221
4265
|
}, c = () => {
|
|
4222
4266
|
E(!F), j && L(!1), !F && typeof document < "u" && requestAnimationFrame(() => {
|
|
@@ -4234,12 +4278,12 @@ const cs = {
|
|
|
4234
4278
|
return ua.filter(
|
|
4235
4279
|
(D) => D.title.toLowerCase().startsWith(x)
|
|
4236
4280
|
);
|
|
4237
|
-
}, [B]),
|
|
4281
|
+
}, [B]), M = (x) => {
|
|
4238
4282
|
e && e(x), L(!1), $("");
|
|
4239
4283
|
};
|
|
4240
|
-
return /* @__PURE__ */
|
|
4241
|
-
m && /* @__PURE__ */
|
|
4242
|
-
T && /* @__PURE__ */
|
|
4284
|
+
return /* @__PURE__ */ o.jsxs("header", { className: S.header, "data-open": F ? "true" : "false", children: [
|
|
4285
|
+
m && /* @__PURE__ */ o.jsx("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ o.jsxs("div", { className: S.extensionContentWrapper, children: [
|
|
4286
|
+
T && /* @__PURE__ */ o.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ o.jsx(
|
|
4243
4287
|
qe,
|
|
4244
4288
|
{
|
|
4245
4289
|
"data-size": "sm",
|
|
@@ -4250,59 +4294,59 @@ const cs = {
|
|
|
4250
4294
|
"data-color-scheme": "light"
|
|
4251
4295
|
}
|
|
4252
4296
|
) }),
|
|
4253
|
-
T && _ && /* @__PURE__ */
|
|
4254
|
-
_ && /* @__PURE__ */
|
|
4255
|
-
/* @__PURE__ */
|
|
4256
|
-
/* @__PURE__ */
|
|
4257
|
-
/* @__PURE__ */
|
|
4297
|
+
T && _ && /* @__PURE__ */ o.jsx("div", { className: S.extensionDivider }),
|
|
4298
|
+
_ && /* @__PURE__ */ o.jsxs("div", { className: S.languageSwitch, children: [
|
|
4299
|
+
/* @__PURE__ */ o.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4300
|
+
/* @__PURE__ */ o.jsxs(ee.TriggerContext, { children: [
|
|
4301
|
+
/* @__PURE__ */ o.jsxs(
|
|
4258
4302
|
ee.Trigger,
|
|
4259
4303
|
{
|
|
4260
4304
|
className: S.languageLink,
|
|
4261
4305
|
"aria-label": I("header.selectLanguage"),
|
|
4262
4306
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4263
4307
|
children: [
|
|
4264
|
-
|
|
4308
|
+
R,
|
|
4265
4309
|
" ",
|
|
4266
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ o.jsx(gt, { "aria-hidden": !0 })
|
|
4267
4311
|
]
|
|
4268
4312
|
}
|
|
4269
4313
|
),
|
|
4270
|
-
/* @__PURE__ */
|
|
4314
|
+
/* @__PURE__ */ o.jsx(
|
|
4271
4315
|
ee,
|
|
4272
4316
|
{
|
|
4273
4317
|
"data-color-scheme": N,
|
|
4274
4318
|
placement: "bottom-end",
|
|
4275
|
-
children: /* @__PURE__ */
|
|
4276
|
-
/* @__PURE__ */
|
|
4277
|
-
/* @__PURE__ */
|
|
4319
|
+
children: /* @__PURE__ */ o.jsxs(ee.List, { children: [
|
|
4320
|
+
/* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("NO"), children: "Norsk (NO)" }) }),
|
|
4321
|
+
/* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("EN"), children: "English (EN)" }) })
|
|
4278
4322
|
] })
|
|
4279
4323
|
}
|
|
4280
4324
|
)
|
|
4281
4325
|
] })
|
|
4282
4326
|
] })
|
|
4283
4327
|
] }) }),
|
|
4284
|
-
/* @__PURE__ */
|
|
4285
|
-
/* @__PURE__ */
|
|
4286
|
-
/* @__PURE__ */
|
|
4328
|
+
/* @__PURE__ */ o.jsxs("div", { className: S.headerInner, children: [
|
|
4329
|
+
/* @__PURE__ */ o.jsxs("div", { className: S.logoWrapper, children: [
|
|
4330
|
+
/* @__PURE__ */ o.jsx(
|
|
4287
4331
|
Ne,
|
|
4288
4332
|
{
|
|
4289
4333
|
href: "/",
|
|
4290
4334
|
className: `${S.logo} ${S.primaryLogo}`,
|
|
4291
4335
|
"aria-label": I("header.homeAriaLabel"),
|
|
4292
|
-
onClick:
|
|
4293
|
-
children: /* @__PURE__ */
|
|
4336
|
+
onClick: oe,
|
|
4337
|
+
children: /* @__PURE__ */ o.jsx(Y, {})
|
|
4294
4338
|
}
|
|
4295
4339
|
),
|
|
4296
|
-
/* @__PURE__ */
|
|
4340
|
+
/* @__PURE__ */ o.jsx("div", { className: S.secondaryLogoWrapper, children: f && k ? /* @__PURE__ */ o.jsx(
|
|
4297
4341
|
"img",
|
|
4298
4342
|
{
|
|
4299
4343
|
src: N === "dark" && g ? g : k,
|
|
4300
4344
|
alt: h,
|
|
4301
4345
|
className: S.secondaryLogo
|
|
4302
4346
|
}
|
|
4303
|
-
) : f ? /* @__PURE__ */
|
|
4347
|
+
) : f ? /* @__PURE__ */ o.jsx("div", { className: S.slotComponent, children: /* @__PURE__ */ o.jsx("div", { className: S.slotContainer, children: /* @__PURE__ */ o.jsx("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
|
|
4304
4348
|
] }),
|
|
4305
|
-
v && b && b.length > 0 && !q && /* @__PURE__ */
|
|
4349
|
+
v && b && b.length > 0 && !q && /* @__PURE__ */ o.jsx("nav", { className: S.navItems, children: b.map((x, D) => /* @__PURE__ */ o.jsx(
|
|
4306
4350
|
Ne,
|
|
4307
4351
|
{
|
|
4308
4352
|
href: x.href,
|
|
@@ -4314,8 +4358,8 @@ const cs = {
|
|
|
4314
4358
|
},
|
|
4315
4359
|
D
|
|
4316
4360
|
)) }),
|
|
4317
|
-
/* @__PURE__ */
|
|
4318
|
-
|
|
4361
|
+
/* @__PURE__ */ o.jsxs("div", { className: S.actions, children: [
|
|
4362
|
+
r && /* @__PURE__ */ o.jsxs(
|
|
4319
4363
|
ye,
|
|
4320
4364
|
{
|
|
4321
4365
|
variant: "primary",
|
|
@@ -4325,11 +4369,11 @@ const cs = {
|
|
|
4325
4369
|
onClick: u,
|
|
4326
4370
|
children: [
|
|
4327
4371
|
l,
|
|
4328
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: d || I("header.supportUs") })
|
|
4329
4373
|
]
|
|
4330
4374
|
}
|
|
4331
4375
|
),
|
|
4332
|
-
!m && y && /* @__PURE__ */
|
|
4376
|
+
!m && y && /* @__PURE__ */ o.jsx("div", { className: S.themeToggle, children: /* @__PURE__ */ o.jsx(
|
|
4333
4377
|
qe,
|
|
4334
4378
|
{
|
|
4335
4379
|
checked: N === "dark",
|
|
@@ -4337,15 +4381,15 @@ const cs = {
|
|
|
4337
4381
|
"aria-label": I("header.toggleTheme")
|
|
4338
4382
|
}
|
|
4339
4383
|
) }),
|
|
4340
|
-
s && /* @__PURE__ */
|
|
4341
|
-
/* @__PURE__ */
|
|
4342
|
-
/* @__PURE__ */
|
|
4384
|
+
s && /* @__PURE__ */ o.jsxs("div", { className: S.userInfo, children: [
|
|
4385
|
+
/* @__PURE__ */ o.jsx(Ze, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
|
|
4386
|
+
/* @__PURE__ */ o.jsx(Ft, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4343
4387
|
] }),
|
|
4344
|
-
a && /* @__PURE__ */
|
|
4345
|
-
/* @__PURE__ */
|
|
4346
|
-
/* @__PURE__ */
|
|
4388
|
+
a && /* @__PURE__ */ o.jsxs("a", { href: "#", className: S.loginLink, children: [
|
|
4389
|
+
/* @__PURE__ */ o.jsx("span", { className: S.loginText, children: I("header.login") }),
|
|
4390
|
+
/* @__PURE__ */ o.jsx("div", { className: S.underline })
|
|
4347
4391
|
] }),
|
|
4348
|
-
i && /* @__PURE__ */
|
|
4392
|
+
i && /* @__PURE__ */ o.jsx("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
4349
4393
|
ye,
|
|
4350
4394
|
{
|
|
4351
4395
|
variant: "secondary",
|
|
@@ -4355,12 +4399,12 @@ const cs = {
|
|
|
4355
4399
|
"aria-expanded": j,
|
|
4356
4400
|
"aria-label": I(j ? "header.closeSearch" : "header.openSearch"),
|
|
4357
4401
|
children: [
|
|
4358
|
-
j ? /* @__PURE__ */
|
|
4359
|
-
/* @__PURE__ */
|
|
4402
|
+
j ? /* @__PURE__ */ o.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ o.jsx(ft, { "aria-hidden": !0 }),
|
|
4403
|
+
/* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: I(j ? "header.close" : "header.search") })
|
|
4360
4404
|
]
|
|
4361
4405
|
}
|
|
4362
4406
|
) }),
|
|
4363
|
-
(p || q) && /* @__PURE__ */
|
|
4407
|
+
(p || q) && /* @__PURE__ */ o.jsxs(
|
|
4364
4408
|
ye,
|
|
4365
4409
|
{
|
|
4366
4410
|
variant: "primary",
|
|
@@ -4371,47 +4415,47 @@ const cs = {
|
|
|
4371
4415
|
"aria-label": I(F ? "header.closeMenu" : "header.openMenu"),
|
|
4372
4416
|
className: S.menuButton,
|
|
4373
4417
|
children: [
|
|
4374
|
-
F ? /* @__PURE__ */
|
|
4375
|
-
/* @__PURE__ */
|
|
4418
|
+
F ? /* @__PURE__ */ o.jsx(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ o.jsx(er, { "aria-hidden": !0 }),
|
|
4419
|
+
/* @__PURE__ */ o.jsx("span", { className: S.buttonText, children: I(F ? "header.close" : "header.menu") })
|
|
4376
4420
|
]
|
|
4377
4421
|
}
|
|
4378
4422
|
)
|
|
4379
4423
|
] })
|
|
4380
4424
|
] }),
|
|
4381
|
-
F && /* @__PURE__ */
|
|
4382
|
-
/* @__PURE__ */
|
|
4383
|
-
/* @__PURE__ */
|
|
4384
|
-
q && (_ || T) && /* @__PURE__ */
|
|
4385
|
-
_ && /* @__PURE__ */
|
|
4386
|
-
/* @__PURE__ */
|
|
4387
|
-
/* @__PURE__ */
|
|
4388
|
-
/* @__PURE__ */
|
|
4425
|
+
F && /* @__PURE__ */ o.jsx("div", { className: S.menuOverlay, children: /* @__PURE__ */ o.jsxs("div", { className: S.menuContent, children: [
|
|
4426
|
+
/* @__PURE__ */ o.jsx("div", { className: S.menuLeftColumn }),
|
|
4427
|
+
/* @__PURE__ */ o.jsxs("div", { className: S.menuRightColumn, children: [
|
|
4428
|
+
q && (_ || T) && /* @__PURE__ */ o.jsxs("div", { className: S.menuUtilities, children: [
|
|
4429
|
+
_ && /* @__PURE__ */ o.jsxs("div", { className: S.languageSwitch, children: [
|
|
4430
|
+
/* @__PURE__ */ o.jsx("span", { className: S.languageLabel, children: I("header.language") }),
|
|
4431
|
+
/* @__PURE__ */ o.jsxs(ee.TriggerContext, { children: [
|
|
4432
|
+
/* @__PURE__ */ o.jsxs(
|
|
4389
4433
|
ee.Trigger,
|
|
4390
4434
|
{
|
|
4391
4435
|
className: S.languageLink,
|
|
4392
4436
|
"aria-label": I("header.selectLanguage"),
|
|
4393
4437
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4394
4438
|
children: [
|
|
4395
|
-
|
|
4439
|
+
R,
|
|
4396
4440
|
" ",
|
|
4397
|
-
/* @__PURE__ */
|
|
4441
|
+
/* @__PURE__ */ o.jsx(gt, { "aria-hidden": !0 })
|
|
4398
4442
|
]
|
|
4399
4443
|
}
|
|
4400
4444
|
),
|
|
4401
|
-
/* @__PURE__ */
|
|
4445
|
+
/* @__PURE__ */ o.jsx(
|
|
4402
4446
|
ee,
|
|
4403
4447
|
{
|
|
4404
4448
|
"data-color-scheme": N,
|
|
4405
4449
|
placement: "bottom-start",
|
|
4406
|
-
children: /* @__PURE__ */
|
|
4407
|
-
/* @__PURE__ */
|
|
4408
|
-
/* @__PURE__ */
|
|
4450
|
+
children: /* @__PURE__ */ o.jsxs(ee.List, { children: [
|
|
4451
|
+
/* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("NO"), children: "Norsk (NO)" }) }),
|
|
4452
|
+
/* @__PURE__ */ o.jsx(ee.Item, { children: /* @__PURE__ */ o.jsx(ee.Button, { onClick: () => z("EN"), children: "English (EN)" }) })
|
|
4409
4453
|
] })
|
|
4410
4454
|
}
|
|
4411
4455
|
)
|
|
4412
4456
|
] })
|
|
4413
4457
|
] }),
|
|
4414
|
-
T && /* @__PURE__ */
|
|
4458
|
+
T && /* @__PURE__ */ o.jsx("div", { className: S.extensionContent, children: /* @__PURE__ */ o.jsx(
|
|
4415
4459
|
qe,
|
|
4416
4460
|
{
|
|
4417
4461
|
"data-size": "sm",
|
|
@@ -4423,9 +4467,9 @@ const cs = {
|
|
|
4423
4467
|
}
|
|
4424
4468
|
) })
|
|
4425
4469
|
] }),
|
|
4426
|
-
/* @__PURE__ */
|
|
4470
|
+
/* @__PURE__ */ o.jsxs("div", { className: S.slotContent, children: [
|
|
4427
4471
|
n,
|
|
4428
|
-
q && v && b && b.length > 0 && /* @__PURE__ */
|
|
4472
|
+
q && v && b && b.length > 0 && /* @__PURE__ */ o.jsx("nav", { className: S.navList, children: b.map((x, D) => /* @__PURE__ */ o.jsx(
|
|
4429
4473
|
Ne,
|
|
4430
4474
|
{
|
|
4431
4475
|
href: x.href,
|
|
@@ -4438,12 +4482,12 @@ const cs = {
|
|
|
4438
4482
|
D
|
|
4439
4483
|
)) })
|
|
4440
4484
|
] }),
|
|
4441
|
-
q && /* @__PURE__ */
|
|
4485
|
+
q && /* @__PURE__ */ o.jsx("div", { className: S.menuBrand, children: /* @__PURE__ */ o.jsx(Y, {}) })
|
|
4442
4486
|
] })
|
|
4443
4487
|
] }) }),
|
|
4444
|
-
j && /* @__PURE__ */
|
|
4445
|
-
/* @__PURE__ */
|
|
4446
|
-
/* @__PURE__ */
|
|
4488
|
+
j && /* @__PURE__ */ o.jsx("div", { className: S.searchOverlay, children: /* @__PURE__ */ o.jsxs("div", { className: S.searchContent, children: [
|
|
4489
|
+
/* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
4490
|
+
/* @__PURE__ */ o.jsx(
|
|
4447
4491
|
Pe.Input,
|
|
4448
4492
|
{
|
|
4449
4493
|
"aria-label": I("header.search"),
|
|
@@ -4452,32 +4496,32 @@ const cs = {
|
|
|
4452
4496
|
onChange: (x) => $(x.target.value)
|
|
4453
4497
|
}
|
|
4454
4498
|
),
|
|
4455
|
-
/* @__PURE__ */
|
|
4456
|
-
/* @__PURE__ */
|
|
4499
|
+
/* @__PURE__ */ o.jsx(Pe.Button, { "aria-label": I("header.search") }),
|
|
4500
|
+
/* @__PURE__ */ o.jsx(Pe.ClearButton, { onClick: () => $(""), "aria-label": I("header.clearSearch") })
|
|
4457
4501
|
] }),
|
|
4458
|
-
B && /* @__PURE__ */
|
|
4459
|
-
/* @__PURE__ */
|
|
4460
|
-
/* @__PURE__ */
|
|
4502
|
+
B && /* @__PURE__ */ o.jsx("div", { className: S.searchResults, children: P.length > 0 ? /* @__PURE__ */ o.jsxs("div", { className: S.suggestionsSection, children: [
|
|
4503
|
+
/* @__PURE__ */ o.jsx("h3", { className: S.suggestionsTitle, children: I("header.suggestions") }),
|
|
4504
|
+
/* @__PURE__ */ o.jsx("ul", { className: S.resultList, children: P.slice(0, 5).map((x) => /* @__PURE__ */ o.jsx("li", { className: S.resultItem, children: /* @__PURE__ */ o.jsxs(
|
|
4461
4505
|
"button",
|
|
4462
4506
|
{
|
|
4463
4507
|
className: S.resultLink,
|
|
4464
|
-
onClick: () =>
|
|
4508
|
+
onClick: () => M(x.path),
|
|
4465
4509
|
children: [
|
|
4466
|
-
/* @__PURE__ */
|
|
4467
|
-
/* @__PURE__ */
|
|
4510
|
+
/* @__PURE__ */ o.jsx("span", { className: S.suggestionIcon, children: /* @__PURE__ */ o.jsx(ft, { "aria-hidden": !0 }) }),
|
|
4511
|
+
/* @__PURE__ */ o.jsx("span", { className: S.suggestionText, children: (() => {
|
|
4468
4512
|
const D = x.title.toLowerCase().indexOf(B.toLowerCase());
|
|
4469
|
-
if (D === -1) return /* @__PURE__ */
|
|
4513
|
+
if (D === -1) return /* @__PURE__ */ o.jsx("span", { className: S.remainingText, children: x.title });
|
|
4470
4514
|
const C = x.title.slice(0, D), H = x.title.slice(D, D + B.length), J = x.title.slice(D + B.length);
|
|
4471
|
-
return /* @__PURE__ */
|
|
4472
|
-
/* @__PURE__ */
|
|
4473
|
-
/* @__PURE__ */
|
|
4474
|
-
/* @__PURE__ */
|
|
4515
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
4516
|
+
/* @__PURE__ */ o.jsx("span", { className: S.remainingText, children: C }),
|
|
4517
|
+
/* @__PURE__ */ o.jsx("span", { className: S.highlightedText, children: H }),
|
|
4518
|
+
/* @__PURE__ */ o.jsx("span", { className: S.remainingText, children: J })
|
|
4475
4519
|
] });
|
|
4476
4520
|
})() })
|
|
4477
4521
|
]
|
|
4478
4522
|
}
|
|
4479
4523
|
) }, x.id)) }),
|
|
4480
|
-
P.length > 5 && /* @__PURE__ */
|
|
4524
|
+
P.length > 5 && /* @__PURE__ */ o.jsxs(
|
|
4481
4525
|
Ne,
|
|
4482
4526
|
{
|
|
4483
4527
|
href: "#",
|
|
@@ -4494,7 +4538,7 @@ const cs = {
|
|
|
4494
4538
|
]
|
|
4495
4539
|
}
|
|
4496
4540
|
)
|
|
4497
|
-
] }) : /* @__PURE__ */
|
|
4541
|
+
] }) : /* @__PURE__ */ o.jsx("div", { className: S.noResults, children: /* @__PURE__ */ o.jsxs(Ze, { children: [
|
|
4498
4542
|
I("header.noResults"),
|
|
4499
4543
|
' "',
|
|
4500
4544
|
B,
|
|
@@ -4634,22 +4678,22 @@ function ma(t) {
|
|
|
4634
4678
|
`;
|
|
4635
4679
|
}
|
|
4636
4680
|
export {
|
|
4637
|
-
|
|
4681
|
+
sr as Alert,
|
|
4638
4682
|
Ft as Avatar,
|
|
4639
|
-
|
|
4683
|
+
ar as Badge,
|
|
4640
4684
|
ka as BadgePosition,
|
|
4641
4685
|
ba as Breadcrumbs,
|
|
4642
4686
|
ya as BreadcrumbsItem,
|
|
4643
4687
|
xa as BreadcrumbsLink,
|
|
4644
4688
|
va as BreadcrumbsList,
|
|
4645
4689
|
ye as Button,
|
|
4646
|
-
|
|
4690
|
+
ir as Card,
|
|
4647
4691
|
Ta as CardBlock,
|
|
4648
|
-
|
|
4649
|
-
|
|
4692
|
+
rs as Carousel,
|
|
4693
|
+
lr as Checkbox,
|
|
4650
4694
|
wa as Chip,
|
|
4651
|
-
|
|
4652
|
-
|
|
4695
|
+
ao as DateInput,
|
|
4696
|
+
Xr as DatePicker,
|
|
4653
4697
|
Ca as Details,
|
|
4654
4698
|
ja as Dialog,
|
|
4655
4699
|
Da as Divider,
|
|
@@ -4657,7 +4701,7 @@ export {
|
|
|
4657
4701
|
Ia as ErrorSummary,
|
|
4658
4702
|
La as Field,
|
|
4659
4703
|
ss as FieldCounter,
|
|
4660
|
-
|
|
4704
|
+
os as FieldDescription,
|
|
4661
4705
|
Aa as Fieldset,
|
|
4662
4706
|
Ya as Header,
|
|
4663
4707
|
as as Heading,
|
|
@@ -4671,8 +4715,8 @@ export {
|
|
|
4671
4715
|
Na as Popover,
|
|
4672
4716
|
Pa as Radio,
|
|
4673
4717
|
Pe as Search,
|
|
4674
|
-
|
|
4675
|
-
|
|
4718
|
+
za as Select,
|
|
4719
|
+
Ma as SkeletonLoader,
|
|
4676
4720
|
Oa as SkipLink,
|
|
4677
4721
|
ns as Spinner,
|
|
4678
4722
|
ls as Suggestion,
|
|
@@ -4688,5 +4732,5 @@ export {
|
|
|
4688
4732
|
Sa as useCheckboxGroup,
|
|
4689
4733
|
us as useLanguage,
|
|
4690
4734
|
Ba as usePagination,
|
|
4691
|
-
|
|
4735
|
+
Ra as useRadioGroup
|
|
4692
4736
|
};
|