rk-designsystem 1.1.71 → 1.1.73
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 +343 -296
- package/dist/componentlibrary.umd.js +3 -3
- package/dist/index.d.ts +8 -2
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as s, jsxs as w, Fragment as
|
|
2
|
-
import Ve, { forwardRef as ge, useState as ne, useEffect as Z, useMemo as Se, useCallback as re, useRef as Ke, createContext as
|
|
3
|
-
import { Alert as Yt, Avatar as qt, BadgePosition as Xt, Badge as Jt, Breadcrumbs as Zt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as Ye, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as
|
|
4
|
-
import { startOfMonth as be, isValid as
|
|
5
|
-
import { ChevronLeftIcon as Xn, ChevronRightIcon as Jn, ChevronDownIcon as
|
|
1
|
+
import { jsx as s, jsxs as w, Fragment as Vt } from "react/jsx-runtime";
|
|
2
|
+
import Ve, { forwardRef as ge, useState as ne, useEffect as Z, useMemo as Se, useCallback as re, useRef as Ke, createContext as Kt, useContext as wt } from "react";
|
|
3
|
+
import { Alert as Yt, Avatar as qt, BadgePosition as Xt, Badge as Jt, Breadcrumbs as Zt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as Ye, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as It, Chip as an, Spinner as ln, Details as dn, Dialog as cn, Divider as un, Dropdown as mn, ErrorSummary as pn, Field as gn, FieldDescription as hn, FieldCounter as fn, Heading as kn, Input as yn, Label as vn, Link as bn, List as Tn, Pagination as Sn, usePagination as xn, Paragraph as Cn, Popover as wn, Radio as In, useRadioGroup as Dn, Search as _n, SearchInput as An, SearchClear as Mn, SearchButton as jn, Select as Ln, Skeleton as Fn, SkipLink as En, EXPERIMENTAL_Suggestion as Nn, Switch as Bn, Table as Pn, Tabs as Rn, Tag as zn, Textarea as Gn, Textfield as Wn, ToggleGroup as Un, Tooltip as Hn, ValidationMessage as $n } from "@digdir/designsystemet-react";
|
|
4
|
+
import { startOfMonth as be, isValid as He, isSameMonth as pt, startOfWeek as Dt, format as we, addDays as _t, subMonths as On, addMonths as Vn, isSameDay as Kn, isToday as Yn, eachDayOfInterval as qn } from "date-fns";
|
|
5
|
+
import { ChevronLeftIcon as Xn, ChevronRightIcon as Jn, ChevronDownIcon as gt, XMarkIcon as ht, MagnifyingGlassIcon as ft, MenuHamburgerIcon as Zn, HeartIcon as Qn } from "@navikt/aksel-icons";
|
|
6
6
|
const eo = ge((t, e) => /* @__PURE__ */ s(Yt, { ref: e, ...t }));
|
|
7
7
|
eo.displayName = "Alert";
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const At = ge((t, e) => /* @__PURE__ */ s(qt, { ref: e, ...t }));
|
|
9
|
+
At.displayName = "Avatar";
|
|
10
10
|
const to = ge((t, e) => /* @__PURE__ */ s(Jt, { ref: e, ...t }));
|
|
11
11
|
to.displayName = "Badge";
|
|
12
|
-
const Pi = Xt,
|
|
12
|
+
const Pi = Xt, Ri = Zt, zi = Qt, Gi = en, Wi = tn, xe = Ye;
|
|
13
13
|
xe.displayName = "Button";
|
|
14
14
|
const no = nn, Ui = on;
|
|
15
15
|
no.displayName = "Card";
|
|
16
|
-
const oo = rn, ro =
|
|
16
|
+
const oo = rn, ro = It, Hi = sn;
|
|
17
17
|
oo.displayName = "Checkbox";
|
|
18
18
|
ro.displayName = "Fieldset";
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const $i = an;
|
|
20
|
+
function $e(t) {
|
|
21
21
|
return (e = {}) => {
|
|
22
22
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
23
23
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
@@ -160,15 +160,15 @@ const lo = {
|
|
|
160
160
|
medium: "{{date}} {{time}}",
|
|
161
161
|
short: "{{date}} {{time}}"
|
|
162
162
|
}, go = {
|
|
163
|
-
date:
|
|
163
|
+
date: $e({
|
|
164
164
|
formats: uo,
|
|
165
165
|
defaultWidth: "full"
|
|
166
166
|
}),
|
|
167
|
-
time:
|
|
167
|
+
time: $e({
|
|
168
168
|
formats: mo,
|
|
169
169
|
defaultWidth: "full"
|
|
170
170
|
}),
|
|
171
|
-
dateTime:
|
|
171
|
+
dateTime: $e({
|
|
172
172
|
formats: po,
|
|
173
173
|
defaultWidth: "full"
|
|
174
174
|
})
|
|
@@ -329,12 +329,12 @@ const lo = {
|
|
|
329
329
|
/^n/i,
|
|
330
330
|
/^d/i
|
|
331
331
|
]
|
|
332
|
-
},
|
|
332
|
+
}, Lo = {
|
|
333
333
|
narrow: /^[smtofl]/i,
|
|
334
334
|
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
335
335
|
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
336
336
|
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
337
|
-
},
|
|
337
|
+
}, Fo = {
|
|
338
338
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
339
339
|
}, Eo = {
|
|
340
340
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
@@ -376,9 +376,9 @@ const lo = {
|
|
|
376
376
|
defaultParseWidth: "any"
|
|
377
377
|
}),
|
|
378
378
|
day: De({
|
|
379
|
-
matchPatterns:
|
|
379
|
+
matchPatterns: Lo,
|
|
380
380
|
defaultMatchWidth: "wide",
|
|
381
|
-
parsePatterns:
|
|
381
|
+
parsePatterns: Fo,
|
|
382
382
|
defaultParseWidth: "any"
|
|
383
383
|
}),
|
|
384
384
|
dayPeriod: De({
|
|
@@ -398,7 +398,7 @@ const lo = {
|
|
|
398
398
|
weekStartsOn: 1,
|
|
399
399
|
firstWeekContainsDate: 4
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, Mt = ({ title: t, ...e }) => /* @__PURE__ */ w(
|
|
402
402
|
"svg",
|
|
403
403
|
{
|
|
404
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -423,8 +423,8 @@ const lo = {
|
|
|
423
423
|
]
|
|
424
424
|
}
|
|
425
425
|
);
|
|
426
|
-
|
|
427
|
-
const
|
|
426
|
+
Mt.displayName = "ChevronLeftIcon";
|
|
427
|
+
const jt = ({ title: t, ...e }) => /* @__PURE__ */ w(
|
|
428
428
|
"svg",
|
|
429
429
|
{
|
|
430
430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -449,22 +449,22 @@ const At = ({ title: t, ...e }) => /* @__PURE__ */ w(
|
|
|
449
449
|
]
|
|
450
450
|
}
|
|
451
451
|
);
|
|
452
|
-
|
|
453
|
-
const Po = "_calendarContainer_10l5p_1",
|
|
452
|
+
jt.displayName = "ChevronRightIcon";
|
|
453
|
+
const Po = "_calendarContainer_10l5p_1", Ro = "_calendarHeader_10l5p_14", zo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Wo = "_grid_10l5p_41", Uo = "_dayNameCell_10l5p_48", Ho = "_dateCell_10l5p_65", $o = "_dateNumberContainer_10l5p_90", Oo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", oe = {
|
|
454
454
|
calendarContainer: Po,
|
|
455
|
-
calendarHeader:
|
|
456
|
-
monthYear:
|
|
457
|
-
navigationButtons:
|
|
455
|
+
calendarHeader: Ro,
|
|
456
|
+
monthYear: zo,
|
|
457
|
+
navigationButtons: Go,
|
|
458
458
|
grid: Wo,
|
|
459
459
|
dayNameCell: Uo,
|
|
460
|
-
dateCell:
|
|
461
|
-
dateNumberContainer:
|
|
460
|
+
dateCell: Ho,
|
|
461
|
+
dateNumberContainer: $o,
|
|
462
462
|
otherMonth: Oo,
|
|
463
463
|
selectedDate: Vo
|
|
464
464
|
}, Ko = (t) => {
|
|
465
|
-
const e = be(t), n =
|
|
465
|
+
const e = be(t), n = Dt(e, { locale: Te }), r = _t(n, 41);
|
|
466
466
|
return qn({ start: n, end: r });
|
|
467
|
-
},
|
|
467
|
+
}, kt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Yo = ({
|
|
468
468
|
initialDate: t = /* @__PURE__ */ new Date(),
|
|
469
469
|
selectedDate: e = null,
|
|
470
470
|
// Prop for valgt dato
|
|
@@ -475,22 +475,22 @@ const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Go = "
|
|
|
475
475
|
// <-- Destrukturert
|
|
476
476
|
}) => {
|
|
477
477
|
const [i, o] = ne(
|
|
478
|
-
be(e &&
|
|
478
|
+
be(e && He(e) ? e : t)
|
|
479
479
|
);
|
|
480
480
|
Z(() => {
|
|
481
|
-
if (e &&
|
|
481
|
+
if (e && He(e)) {
|
|
482
482
|
const m = be(e);
|
|
483
|
-
|
|
483
|
+
pt(m, i) || o(m);
|
|
484
484
|
}
|
|
485
485
|
}, [e]);
|
|
486
486
|
const d = Se(() => be(/* @__PURE__ */ new Date()), []), l = Se(() => !1, [i, d]), c = Se(
|
|
487
487
|
() => Ko(i),
|
|
488
488
|
[i]
|
|
489
489
|
), v = Se(() => {
|
|
490
|
-
const m =
|
|
490
|
+
const m = Dt(/* @__PURE__ */ new Date(), { locale: Te });
|
|
491
491
|
return Array.from({ length: 7 }).map((T, A) => {
|
|
492
|
-
const M = we(
|
|
493
|
-
return
|
|
492
|
+
const M = we(_t(m, A), "EEEEEE", { locale: Te });
|
|
493
|
+
return kt(M);
|
|
494
494
|
});
|
|
495
495
|
}, []), u = re(() => {
|
|
496
496
|
l || o((m) => be(On(m, 1)));
|
|
@@ -506,7 +506,7 @@ const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Go = "
|
|
|
506
506
|
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(T));
|
|
507
507
|
},
|
|
508
508
|
[g]
|
|
509
|
-
), k = we(i, "MMMM", { locale: Te }), y = we(i, "yyyy", { locale: Te }), p = `${
|
|
509
|
+
), k = we(i, "MMMM", { locale: Te }), y = we(i, "yyyy", { locale: Te }), p = `${kt(k)} ${y}`;
|
|
510
510
|
return /* @__PURE__ */ w(
|
|
511
511
|
"div",
|
|
512
512
|
{
|
|
@@ -525,7 +525,7 @@ const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Go = "
|
|
|
525
525
|
onClick: u,
|
|
526
526
|
"aria-label": "Forrige måned",
|
|
527
527
|
disabled: l,
|
|
528
|
-
children: /* @__PURE__ */ s(
|
|
528
|
+
children: /* @__PURE__ */ s(Mt, {})
|
|
529
529
|
}
|
|
530
530
|
),
|
|
531
531
|
/* @__PURE__ */ s(
|
|
@@ -535,14 +535,14 @@ const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Go = "
|
|
|
535
535
|
icon: !0,
|
|
536
536
|
onClick: f,
|
|
537
537
|
"aria-label": "Neste måned",
|
|
538
|
-
children: /* @__PURE__ */ s(
|
|
538
|
+
children: /* @__PURE__ */ s(jt, {})
|
|
539
539
|
}
|
|
540
540
|
)
|
|
541
541
|
] })
|
|
542
542
|
] }),
|
|
543
543
|
/* @__PURE__ */ s("div", { className: oe.grid, children: v.map((m) => /* @__PURE__ */ s("div", { className: oe.dayNameCell, children: m }, m)) }),
|
|
544
544
|
/* @__PURE__ */ s("div", { className: oe.grid, children: c.map((m) => {
|
|
545
|
-
const T =
|
|
545
|
+
const T = pt(m, i), A = e && He(e) && Kn(m, e), M = Yn(m), C = [
|
|
546
546
|
oe.dateCell,
|
|
547
547
|
T ? "" : oe.otherMonth,
|
|
548
548
|
A ? oe.selectedDate : "",
|
|
@@ -577,10 +577,10 @@ const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7
|
|
|
577
577
|
inputWrapperError: Qo,
|
|
578
578
|
suffixButton: er,
|
|
579
579
|
suffixButtonInteractive: tr
|
|
580
|
-
},
|
|
580
|
+
}, yt = (t) => {
|
|
581
581
|
const e = t.slice(0, 2), n = t.slice(2, 4), r = t.slice(4, 8);
|
|
582
582
|
return t.length > 4 ? `${e}.${n}.${r}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
|
|
583
|
-
},
|
|
583
|
+
}, vt = (t) => (t || "").replace(/\D/g, ""), bt = (t) => {
|
|
584
584
|
let e = t;
|
|
585
585
|
if (e.length >= 2) {
|
|
586
586
|
const n = parseInt(e.substring(0, 2), 10);
|
|
@@ -623,38 +623,38 @@ const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7
|
|
|
623
623
|
description: D,
|
|
624
624
|
error: _,
|
|
625
625
|
// Bruk error-prop for styling
|
|
626
|
-
"data-color":
|
|
626
|
+
"data-color": L,
|
|
627
627
|
// <-- Destrukturering
|
|
628
628
|
"data-size": E,
|
|
629
629
|
// <-- Destrukturering
|
|
630
630
|
...N
|
|
631
|
-
} = t,
|
|
631
|
+
} = t, R = l !== void 0, z = Ke(null);
|
|
632
632
|
Ve.useImperativeHandle(
|
|
633
633
|
e,
|
|
634
|
-
() =>
|
|
634
|
+
() => z.current
|
|
635
635
|
);
|
|
636
|
-
const
|
|
636
|
+
const G = re(
|
|
637
637
|
(b) => {
|
|
638
|
-
const I =
|
|
639
|
-
return
|
|
638
|
+
const I = vt(b), j = bt(I);
|
|
639
|
+
return yt(j);
|
|
640
640
|
},
|
|
641
641
|
[]
|
|
642
642
|
), [W, B] = ne(
|
|
643
|
-
() =>
|
|
643
|
+
() => G(l ?? c)
|
|
644
644
|
);
|
|
645
645
|
Z(() => {
|
|
646
|
-
if (
|
|
647
|
-
const b =
|
|
648
|
-
b !== W && (B(b),
|
|
646
|
+
if (R) {
|
|
647
|
+
const b = G(l);
|
|
648
|
+
b !== W && (B(b), z.current && z.current.value !== b && (z.current.value = b));
|
|
649
649
|
}
|
|
650
|
-
}, [l,
|
|
650
|
+
}, [l, R, W, G]);
|
|
651
651
|
const O = re(
|
|
652
652
|
(b) => {
|
|
653
|
-
const I = b.target, j = I.value, K = W, q =
|
|
653
|
+
const I = b.target, j = I.value, K = W, q = vt(j).slice(0, 8), U = bt(q), x = yt(U);
|
|
654
654
|
let P = 0;
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
if (
|
|
655
|
+
const H = U.length;
|
|
656
|
+
H <= 2 ? P = H : H <= 4 ? P = H + 1 : P = H + 2, P = Math.min(P, x.length), requestAnimationFrame(() => {
|
|
657
|
+
if (z.current && (B(x), z.current.value = x, z.current.setSelectionRange(P, P), (x !== K || R) && v)) {
|
|
658
658
|
const Y = {
|
|
659
659
|
...b,
|
|
660
660
|
target: { ...I, value: x }
|
|
@@ -663,7 +663,7 @@ const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7
|
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
},
|
|
666
|
-
[W,
|
|
666
|
+
[W, R, v, G]
|
|
667
667
|
), te = [ke.fieldset, i].filter(Boolean).join(" "), Q = [
|
|
668
668
|
ke.inputWrapper,
|
|
669
669
|
o,
|
|
@@ -682,7 +682,7 @@ const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7
|
|
|
682
682
|
"div",
|
|
683
683
|
{
|
|
684
684
|
className: te,
|
|
685
|
-
"data-color":
|
|
685
|
+
"data-color": L,
|
|
686
686
|
"data-size": E,
|
|
687
687
|
children: [
|
|
688
688
|
n && typeof n == "string" ? /* @__PURE__ */ s("label", { id: ie, htmlFor: g, children: n }) : n,
|
|
@@ -691,7 +691,7 @@ const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7
|
|
|
691
691
|
/* @__PURE__ */ s(
|
|
692
692
|
"input",
|
|
693
693
|
{
|
|
694
|
-
ref:
|
|
694
|
+
ref: z,
|
|
695
695
|
type: "text",
|
|
696
696
|
inputMode: "numeric",
|
|
697
697
|
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
@@ -741,7 +741,7 @@ nr.displayName = "DateInput";
|
|
|
741
741
|
function or(t) {
|
|
742
742
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Tt(t) {
|
|
745
745
|
return or(t) || Array.isArray(t);
|
|
746
746
|
}
|
|
747
747
|
function rr() {
|
|
@@ -753,15 +753,15 @@ function Ze(t, e) {
|
|
|
753
753
|
const a = JSON.stringify(Object.keys(t.breakpoints || {})), i = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
754
754
|
return a !== i ? !1 : n.every((o) => {
|
|
755
755
|
const d = t[o], l = e[o];
|
|
756
|
-
return typeof d == "function" ? `${d}` == `${l}` : !
|
|
756
|
+
return typeof d == "function" ? `${d}` == `${l}` : !Tt(d) || !Tt(l) ? d === l : Ze(d, l);
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function St(t) {
|
|
760
760
|
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
761
761
|
}
|
|
762
762
|
function sr(t, e) {
|
|
763
763
|
if (t.length !== e.length) return !1;
|
|
764
|
-
const n =
|
|
764
|
+
const n = St(t), r = St(e);
|
|
765
765
|
return n.every((a, i) => {
|
|
766
766
|
const o = r[i];
|
|
767
767
|
return Ze(a, o);
|
|
@@ -776,22 +776,22 @@ function qe(t) {
|
|
|
776
776
|
function Pe(t) {
|
|
777
777
|
return typeof t == "boolean";
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function xt(t) {
|
|
780
780
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function $(t) {
|
|
783
783
|
return Math.abs(t);
|
|
784
784
|
}
|
|
785
785
|
function et(t) {
|
|
786
786
|
return Math.sign(t);
|
|
787
787
|
}
|
|
788
788
|
function Ae(t, e) {
|
|
789
|
-
return
|
|
789
|
+
return $(t - e);
|
|
790
790
|
}
|
|
791
791
|
function ir(t, e) {
|
|
792
|
-
if (t === 0 || e === 0 ||
|
|
793
|
-
const n = Ae(
|
|
794
|
-
return
|
|
792
|
+
if (t === 0 || e === 0 || $(t) <= $(e)) return 0;
|
|
793
|
+
const n = Ae($(t), $(e));
|
|
794
|
+
return $(n / t);
|
|
795
795
|
}
|
|
796
796
|
function ar(t) {
|
|
797
797
|
return Math.round(t * 100) / 100;
|
|
@@ -800,24 +800,24 @@ function Me(t) {
|
|
|
800
800
|
return je(t).map(Number);
|
|
801
801
|
}
|
|
802
802
|
function le(t) {
|
|
803
|
-
return t[
|
|
803
|
+
return t[Fe(t)];
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Fe(t) {
|
|
806
806
|
return Math.max(0, t.length - 1);
|
|
807
807
|
}
|
|
808
808
|
function tt(t, e) {
|
|
809
|
-
return e ===
|
|
809
|
+
return e === Fe(t);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Ct(t, e = 0) {
|
|
812
812
|
return Array.from(Array(t), (n, r) => e + r);
|
|
813
813
|
}
|
|
814
814
|
function je(t) {
|
|
815
815
|
return Object.keys(t);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Lt(t, e) {
|
|
818
818
|
return [t, e].reduce((n, r) => (je(r).forEach((a) => {
|
|
819
|
-
const i = n[a], o = r[a], d =
|
|
820
|
-
n[a] = d ?
|
|
819
|
+
const i = n[a], o = r[a], d = xt(i) && xt(o);
|
|
820
|
+
n[a] = d ? Lt(i, o) : o;
|
|
821
821
|
}), n), {});
|
|
822
822
|
}
|
|
823
823
|
function Xe(t, e) {
|
|
@@ -845,7 +845,7 @@ function lr(t, e) {
|
|
|
845
845
|
measure: o
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Le() {
|
|
849
849
|
let t = [];
|
|
850
850
|
function e(a, i, o, d = {
|
|
851
851
|
passive: !0
|
|
@@ -869,7 +869,7 @@ function Fe() {
|
|
|
869
869
|
return r;
|
|
870
870
|
}
|
|
871
871
|
function dr(t, e, n, r) {
|
|
872
|
-
const a =
|
|
872
|
+
const a = Le(), i = 1e3 / 60;
|
|
873
873
|
let o = null, d = 0, l = 0;
|
|
874
874
|
function c() {
|
|
875
875
|
a.add(t, "visibilitychange", () => {
|
|
@@ -934,7 +934,7 @@ function cr(t, e) {
|
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
function ye(t = 0, e = 0) {
|
|
937
|
-
const n =
|
|
937
|
+
const n = $(t - e);
|
|
938
938
|
function r(c) {
|
|
939
939
|
return c < t;
|
|
940
940
|
}
|
|
@@ -961,13 +961,13 @@ function ye(t = 0, e = 0) {
|
|
|
961
961
|
removeOffset: d
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Ft(t, e, n) {
|
|
965
965
|
const {
|
|
966
966
|
constrain: r
|
|
967
967
|
} = ye(0, t), a = t + 1;
|
|
968
968
|
let i = o(e);
|
|
969
969
|
function o(f) {
|
|
970
|
-
return n ?
|
|
970
|
+
return n ? $((a + f) % a) : r(f);
|
|
971
971
|
}
|
|
972
972
|
function d() {
|
|
973
973
|
return i;
|
|
@@ -979,7 +979,7 @@ function jt(t, e, n) {
|
|
|
979
979
|
return v().set(d() + f);
|
|
980
980
|
}
|
|
981
981
|
function v() {
|
|
982
|
-
return
|
|
982
|
+
return Ft(t, d(), n);
|
|
983
983
|
}
|
|
984
984
|
const u = {
|
|
985
985
|
get: d,
|
|
@@ -995,23 +995,23 @@ function ur(t, e, n, r, a, i, o, d, l, c, v, u, f, g, h, k, y, p, m) {
|
|
|
995
995
|
direction: A
|
|
996
996
|
} = t, M = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
997
997
|
passive: !1
|
|
998
|
-
}, D =
|
|
998
|
+
}, D = Le(), _ = Le(), L = ye(50, 225).constrain(g.measure(20)), E = {
|
|
999
999
|
mouse: 300,
|
|
1000
1000
|
touch: 400
|
|
1001
1001
|
}, N = {
|
|
1002
1002
|
mouse: 500,
|
|
1003
1003
|
touch: 600
|
|
1004
|
-
},
|
|
1005
|
-
let
|
|
1004
|
+
}, R = h ? 43 : 25;
|
|
1005
|
+
let z = !1, G = 0, W = 0, B = !1, O = !1, te = !1, Q = !1;
|
|
1006
1006
|
function se(x) {
|
|
1007
1007
|
if (!m) return;
|
|
1008
1008
|
function P(Y) {
|
|
1009
1009
|
(Pe(m) || m(x, Y)) && b(Y);
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
D.add(
|
|
1013
|
-
}, C).add(
|
|
1014
|
-
}).add(
|
|
1011
|
+
const H = e;
|
|
1012
|
+
D.add(H, "dragstart", (Y) => Y.preventDefault(), C).add(H, "touchmove", () => {
|
|
1013
|
+
}, C).add(H, "touchend", () => {
|
|
1014
|
+
}).add(H, "touchstart", P).add(H, "mousedown", P).add(H, "touchcancel", j).add(H, "contextmenu", j).add(H, "click", K, !0);
|
|
1015
1015
|
}
|
|
1016
1016
|
function ee() {
|
|
1017
1017
|
D.clear(), _.clear();
|
|
@@ -1028,23 +1028,23 @@ function ur(t, e, n, r, a, i, o, d, l, c, v, u, f, g, h, k, y, p, m) {
|
|
|
1028
1028
|
return (h ? N : E)[Q ? "mouse" : "touch"];
|
|
1029
1029
|
}
|
|
1030
1030
|
function ue(x, P) {
|
|
1031
|
-
const
|
|
1032
|
-
return h ||
|
|
1031
|
+
const H = u.add(et(x) * -1), Y = v.byDistance(x, !h).distance;
|
|
1032
|
+
return h || $(x) < L ? Y : y && P ? Y * 0.5 : v.byIndex(H.get(), 0).distance;
|
|
1033
1033
|
}
|
|
1034
1034
|
function b(x) {
|
|
1035
1035
|
const P = Xe(x, r);
|
|
1036
|
-
Q = P, te = h && P && !x.buttons &&
|
|
1036
|
+
Q = P, te = h && P && !x.buttons && z, z = Ae(a.get(), o.get()) >= 2, !(P && x.button !== 0) && (ae(x.target) || (B = !0, i.pointerDown(x), c.useFriction(0).useDuration(0), a.set(o), ie(), G = i.readPoint(x), W = i.readPoint(x, T), f.emit("pointerDown")));
|
|
1037
1037
|
}
|
|
1038
1038
|
function I(x) {
|
|
1039
1039
|
if (!Xe(x, r) && x.touches.length >= 2) return j(x);
|
|
1040
|
-
const
|
|
1040
|
+
const H = i.readPoint(x), Y = i.readPoint(x, T), de = Ae(H, G), me = Ae(Y, W);
|
|
1041
1041
|
if (!O && !Q && (!x.cancelable || (O = de > me, !O)))
|
|
1042
1042
|
return j(x);
|
|
1043
1043
|
const he = i.pointerMove(x);
|
|
1044
1044
|
de > k && (te = !0), c.useFriction(0.3).useDuration(0.75), d.start(), a.add(A(he)), x.preventDefault();
|
|
1045
1045
|
}
|
|
1046
1046
|
function j(x) {
|
|
1047
|
-
const
|
|
1047
|
+
const H = v.byDistance(0, !1).index !== u.get(), Y = i.pointerUp(x) * V(), de = ue(A(Y), H), me = ir(Y, de), he = R - 10 * me, pe = p + me / 50;
|
|
1048
1048
|
O = !1, B = !1, _.clear(), c.useDuration(he).useFriction(pe), l.distance(de, !h), Q = !1, f.emit("pointerUp");
|
|
1049
1049
|
}
|
|
1050
1050
|
function K(x) {
|
|
@@ -1078,7 +1078,7 @@ function mr(t, e) {
|
|
|
1078
1078
|
function c(u) {
|
|
1079
1079
|
if (!r || !a) return 0;
|
|
1080
1080
|
const f = o(a) - o(r), g = i(u) - i(r), h = i(u) - i(a) > 170, k = f / g;
|
|
1081
|
-
return g && !h &&
|
|
1081
|
+
return g && !h && $(k) > 0.1 ? k : 0;
|
|
1082
1082
|
}
|
|
1083
1083
|
return {
|
|
1084
1084
|
pointerDown: d,
|
|
@@ -1129,7 +1129,7 @@ function hr(t, e, n, r, a, i, o) {
|
|
|
1129
1129
|
for (const T of m) {
|
|
1130
1130
|
if (u) return;
|
|
1131
1131
|
const A = T.target === t, M = r.indexOf(T.target), C = A ? c : v[M], D = f(A ? t : r[M]);
|
|
1132
|
-
if (
|
|
1132
|
+
if ($(D - C) >= 0.5) {
|
|
1133
1133
|
y.reInit(), e.emit("resize");
|
|
1134
1134
|
break;
|
|
1135
1135
|
}
|
|
@@ -1158,7 +1158,7 @@ function fr(t, e, n, r, a, i) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
function g() {
|
|
1160
1160
|
const C = r.get() - e.get();
|
|
1161
|
-
return
|
|
1161
|
+
return $(C) < 1e-3;
|
|
1162
1162
|
}
|
|
1163
1163
|
function h() {
|
|
1164
1164
|
return l;
|
|
@@ -1202,8 +1202,8 @@ function kr(t, e, n, r, a) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
function v(g) {
|
|
1204
1204
|
if (!c()) return;
|
|
1205
|
-
const h = t.reachedMin(e.get()) ? "min" : "max", k =
|
|
1206
|
-
n.subtract(y * p), !g &&
|
|
1205
|
+
const h = t.reachedMin(e.get()) ? "min" : "max", k = $(t[h] - e.get()), y = n.get() - e.get(), p = d.constrain(k / o);
|
|
1206
|
+
n.subtract(y * p), !g && $(y) < i && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
1207
1207
|
}
|
|
1208
1208
|
function u(g) {
|
|
1209
1209
|
l = !g;
|
|
@@ -1290,10 +1290,10 @@ function Sr(t, e, n, r, a) {
|
|
|
1290
1290
|
groupSlides: d
|
|
1291
1291
|
} = a, l = u().map(e.measure), c = f(), v = g();
|
|
1292
1292
|
function u() {
|
|
1293
|
-
return d(r).map((k) => le(k)[o] - k[0][i]).map(
|
|
1293
|
+
return d(r).map((k) => le(k)[o] - k[0][i]).map($);
|
|
1294
1294
|
}
|
|
1295
1295
|
function f() {
|
|
1296
|
-
return r.map((k) => n[i] - k[i]).map((k) =>
|
|
1296
|
+
return r.map((k) => n[i] - k[i]).map((k) => -$(k));
|
|
1297
1297
|
}
|
|
1298
1298
|
function g() {
|
|
1299
1299
|
return d(c).map((k) => k[0]).map((k, y) => k + l[y]);
|
|
@@ -1316,11 +1316,11 @@ function xr(t, e, n, r, a, i) {
|
|
|
1316
1316
|
const p = !k, m = tt(y, k);
|
|
1317
1317
|
if (p) {
|
|
1318
1318
|
const T = le(y[0]) + 1;
|
|
1319
|
-
return
|
|
1319
|
+
return Ct(T);
|
|
1320
1320
|
}
|
|
1321
1321
|
if (m) {
|
|
1322
|
-
const T =
|
|
1323
|
-
return
|
|
1322
|
+
const T = Fe(i) - le(y)[0] + 1;
|
|
1323
|
+
return Ct(T, le(y)[0]);
|
|
1324
1324
|
}
|
|
1325
1325
|
return h;
|
|
1326
1326
|
});
|
|
@@ -1336,13 +1336,13 @@ function Cr(t, e, n, r, a) {
|
|
|
1336
1336
|
constrain: d
|
|
1337
1337
|
} = r;
|
|
1338
1338
|
function l(h) {
|
|
1339
|
-
return h.concat().sort((k, y) =>
|
|
1339
|
+
return h.concat().sort((k, y) => $(k) - $(y))[0];
|
|
1340
1340
|
}
|
|
1341
1341
|
function c(h) {
|
|
1342
1342
|
const k = t ? o(h) : d(h), y = e.map((m, T) => ({
|
|
1343
1343
|
diff: v(m - k, 0),
|
|
1344
1344
|
index: T
|
|
1345
|
-
})).sort((m, T) =>
|
|
1345
|
+
})).sort((m, T) => $(m.diff) - $(T.diff)), {
|
|
1346
1346
|
index: p
|
|
1347
1347
|
} = y[0];
|
|
1348
1348
|
return {
|
|
@@ -1454,7 +1454,7 @@ function _e(t) {
|
|
|
1454
1454
|
subtract: i
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Et(t, e) {
|
|
1458
1458
|
const n = t.scroll === "x" ? o : d, r = e.style;
|
|
1459
1459
|
let a = null, i = !1;
|
|
1460
1460
|
function o(f) {
|
|
@@ -1483,27 +1483,27 @@ function Ft(t, e) {
|
|
|
1483
1483
|
function Dr(t, e, n, r, a, i, o, d, l) {
|
|
1484
1484
|
const v = Me(a), u = Me(a).reverse(), f = p().concat(m());
|
|
1485
1485
|
function g(D, _) {
|
|
1486
|
-
return D.reduce((
|
|
1486
|
+
return D.reduce((L, E) => L - a[E], _);
|
|
1487
1487
|
}
|
|
1488
1488
|
function h(D, _) {
|
|
1489
|
-
return D.reduce((
|
|
1489
|
+
return D.reduce((L, E) => g(L, _) > 0 ? L.concat([E]) : L, []);
|
|
1490
1490
|
}
|
|
1491
1491
|
function k(D) {
|
|
1492
|
-
return i.map((_,
|
|
1493
|
-
start: _ - r[
|
|
1492
|
+
return i.map((_, L) => ({
|
|
1493
|
+
start: _ - r[L] + 0.5 + D,
|
|
1494
1494
|
end: _ + e - 0.5 + D
|
|
1495
1495
|
}));
|
|
1496
1496
|
}
|
|
1497
|
-
function y(D, _,
|
|
1497
|
+
function y(D, _, L) {
|
|
1498
1498
|
const E = k(_);
|
|
1499
1499
|
return D.map((N) => {
|
|
1500
|
-
const
|
|
1500
|
+
const R = L ? 0 : -n, z = L ? n : 0, G = L ? "end" : "start", W = E[N][G];
|
|
1501
1501
|
return {
|
|
1502
1502
|
index: N,
|
|
1503
1503
|
loopPoint: W,
|
|
1504
1504
|
slideLocation: _e(-1),
|
|
1505
|
-
translate:
|
|
1506
|
-
target: () => d.get() > W ?
|
|
1505
|
+
translate: Et(t, l[N]),
|
|
1506
|
+
target: () => d.get() > W ? R : z
|
|
1507
1507
|
};
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
@@ -1519,7 +1519,7 @@ function Dr(t, e, n, r, a, i, o, d, l) {
|
|
|
1519
1519
|
return f.every(({
|
|
1520
1520
|
index: D
|
|
1521
1521
|
}) => {
|
|
1522
|
-
const _ = v.filter((
|
|
1522
|
+
const _ = v.filter((L) => L !== D);
|
|
1523
1523
|
return g(_, e) <= 0.1;
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
@@ -1527,10 +1527,10 @@ function Dr(t, e, n, r, a, i, o, d, l) {
|
|
|
1527
1527
|
f.forEach((D) => {
|
|
1528
1528
|
const {
|
|
1529
1529
|
target: _,
|
|
1530
|
-
translate:
|
|
1530
|
+
translate: L,
|
|
1531
1531
|
slideLocation: E
|
|
1532
1532
|
} = D, N = _();
|
|
1533
|
-
N !== E.get() && (
|
|
1533
|
+
N !== E.get() && (L.to(N), E.set(N));
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
function M() {
|
|
@@ -1614,7 +1614,7 @@ function Mr(t, e, n, r, a, i) {
|
|
|
1614
1614
|
function h() {
|
|
1615
1615
|
if (!c) return 0;
|
|
1616
1616
|
const m = n[0];
|
|
1617
|
-
return
|
|
1617
|
+
return $(e[d] - m[d]);
|
|
1618
1618
|
}
|
|
1619
1619
|
function k() {
|
|
1620
1620
|
if (!c) return 0;
|
|
@@ -1625,7 +1625,7 @@ function Mr(t, e, n, r, a, i) {
|
|
|
1625
1625
|
return n.map((m, T, A) => {
|
|
1626
1626
|
const M = !T, C = tt(A, T);
|
|
1627
1627
|
return M ? f[T] + v : C ? f[T] + u : A[T + 1][d] - m[d];
|
|
1628
|
-
}).map(
|
|
1628
|
+
}).map($);
|
|
1629
1629
|
}
|
|
1630
1630
|
return {
|
|
1631
1631
|
slideSizes: f,
|
|
@@ -1645,8 +1645,8 @@ function jr(t, e, n, r, a, i, o, d, l) {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
function h(p) {
|
|
1647
1647
|
return p.length ? Me(p).reduce((m, T, A) => {
|
|
1648
|
-
const M = le(m) || 0, C = M === 0, D = T ===
|
|
1649
|
-
return A &&
|
|
1648
|
+
const M = le(m) || 0, C = M === 0, D = T === Fe(p), _ = a[c] - i[M][c], L = a[c] - i[T][v], E = !r && C ? u(o) : 0, N = !r && D ? u(d) : 0, R = $(L - N - (_ + E));
|
|
1649
|
+
return A && R > e + l && m.push(T), D && m.push(p.length), m;
|
|
1650
1650
|
}, []).map((m, T, A) => {
|
|
1651
1651
|
const M = Math.max(A[T - 1] || 0);
|
|
1652
1652
|
return p.slice(M, m);
|
|
@@ -1659,7 +1659,7 @@ function jr(t, e, n, r, a, i, o, d, l) {
|
|
|
1659
1659
|
groupSlides: k
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Lr(t, e, n, r, a, i, o) {
|
|
1663
1663
|
const {
|
|
1664
1664
|
align: d,
|
|
1665
1665
|
axis: l,
|
|
@@ -1677,20 +1677,20 @@ function Fr(t, e, n, r, a, i, o) {
|
|
|
1677
1677
|
watchSlides: A,
|
|
1678
1678
|
watchDrag: M,
|
|
1679
1679
|
watchFocus: C
|
|
1680
|
-
} = i, D = 2, _ = pr(),
|
|
1680
|
+
} = i, D = 2, _ = pr(), L = _.measure(e), E = n.map(_.measure), N = cr(l, c), R = N.measureSize(L), z = gr(R), G = lr(d, R), W = !u && !!m, B = u || !!m, {
|
|
1681
1681
|
slideSizes: O,
|
|
1682
1682
|
slideSizesWithGaps: te,
|
|
1683
1683
|
startGap: Q,
|
|
1684
1684
|
endGap: se
|
|
1685
|
-
} = Mr(N,
|
|
1685
|
+
} = Mr(N, L, E, n, B, a), ee = jr(N, R, y, u, L, E, Q, se, D), {
|
|
1686
1686
|
snaps: ie,
|
|
1687
1687
|
snapsAligned: ae
|
|
1688
|
-
} = Sr(N,
|
|
1688
|
+
} = Sr(N, G, L, E, ee), V = -le(ie) + le(te), {
|
|
1689
1689
|
snapsContained: ue,
|
|
1690
1690
|
scrollContainLimit: b
|
|
1691
|
-
} = yr(
|
|
1691
|
+
} = yr(R, V, ae, m, D), I = W ? ue : ae, {
|
|
1692
1692
|
limit: j
|
|
1693
|
-
} = vr(V, I, u), K =
|
|
1693
|
+
} = vr(V, I, u), K = Ft(Fe(I), v, u), q = K.clone(), U = Me(n), x = ({
|
|
1694
1694
|
dragHandler: ve,
|
|
1695
1695
|
scrollBody: We,
|
|
1696
1696
|
scrollBounds: Ue,
|
|
@@ -1704,34 +1704,34 @@ function Fr(t, e, n, r, a, i, o) {
|
|
|
1704
1704
|
translate: We,
|
|
1705
1705
|
location: Ue,
|
|
1706
1706
|
offsetLocation: Ee,
|
|
1707
|
-
previousLocation:
|
|
1707
|
+
previousLocation: Rt,
|
|
1708
1708
|
scrollLooper: zt,
|
|
1709
1709
|
slideLooper: Gt,
|
|
1710
|
-
dragHandler:
|
|
1711
|
-
animation:
|
|
1712
|
-
eventHandler:
|
|
1713
|
-
scrollBounds:
|
|
1710
|
+
dragHandler: Wt,
|
|
1711
|
+
animation: Ut,
|
|
1712
|
+
eventHandler: at,
|
|
1713
|
+
scrollBounds: Ht,
|
|
1714
1714
|
options: {
|
|
1715
|
-
loop:
|
|
1715
|
+
loop: lt
|
|
1716
1716
|
}
|
|
1717
|
-
},
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
const
|
|
1721
|
-
Ee.set(
|
|
1722
|
-
},
|
|
1723
|
-
slideRegistry:
|
|
1724
|
-
} = xr(W, m, I, b, ee, U),
|
|
1717
|
+
}, dt) => {
|
|
1718
|
+
const ct = ve.settled(), $t = !Ht.shouldConstrain(), ut = lt ? ct : ct && $t, mt = ut && !Wt.pointerDown();
|
|
1719
|
+
mt && Ut.stop();
|
|
1720
|
+
const Ot = Ue.get() * dt + Rt.get() * (1 - dt);
|
|
1721
|
+
Ee.set(Ot), lt && (zt.loop(ve.direction()), Gt.loop()), We.to(Ee.get()), mt && at.emit("settle"), ut || at.emit("scroll");
|
|
1722
|
+
}, H = dr(r, a, () => x(Ge), (ve) => P(Ge, ve)), Y = 0.68, de = I[K.get()], me = _e(de), he = _e(de), pe = _e(de), fe = _e(de), Ce = fr(me, pe, he, fe, f, Y), Re = Cr(u, I, V, j, fe), ze = wr(H, K, q, Ce, Re, fe, o), rt = Tr(j), st = Le(), Bt = Ar(e, n, o, k), {
|
|
1723
|
+
slideRegistry: it
|
|
1724
|
+
} = xr(W, m, I, b, ee, U), Pt = Ir(t, n, it, ze, Ce, st, o, C), Ge = {
|
|
1725
1725
|
ownerDocument: r,
|
|
1726
1726
|
ownerWindow: a,
|
|
1727
1727
|
eventHandler: o,
|
|
1728
|
-
containerRect:
|
|
1728
|
+
containerRect: L,
|
|
1729
1729
|
slideRects: E,
|
|
1730
|
-
animation:
|
|
1730
|
+
animation: H,
|
|
1731
1731
|
axis: N,
|
|
1732
|
-
dragHandler: ur(N, t, r, a, fe, mr(N, a), me,
|
|
1733
|
-
eventStore:
|
|
1734
|
-
percentOfView:
|
|
1732
|
+
dragHandler: ur(N, t, r, a, fe, mr(N, a), me, H, ze, Ce, Re, K, o, z, g, h, p, Y, M),
|
|
1733
|
+
eventStore: st,
|
|
1734
|
+
percentOfView: z,
|
|
1735
1735
|
index: K,
|
|
1736
1736
|
indexPrevious: q,
|
|
1737
1737
|
limit: j,
|
|
@@ -1741,26 +1741,26 @@ function Fr(t, e, n, r, a, i, o) {
|
|
|
1741
1741
|
options: i,
|
|
1742
1742
|
resizeHandler: hr(e, o, a, n, N, T, _),
|
|
1743
1743
|
scrollBody: Ce,
|
|
1744
|
-
scrollBounds: kr(j, pe, fe, Ce,
|
|
1744
|
+
scrollBounds: kr(j, pe, fe, Ce, z),
|
|
1745
1745
|
scrollLooper: br(V, j, pe, [me, pe, he, fe]),
|
|
1746
|
-
scrollProgress:
|
|
1747
|
-
scrollSnapList: I.map(
|
|
1746
|
+
scrollProgress: rt,
|
|
1747
|
+
scrollSnapList: I.map(rt.get),
|
|
1748
1748
|
scrollSnaps: I,
|
|
1749
|
-
scrollTarget:
|
|
1750
|
-
scrollTo:
|
|
1751
|
-
slideLooper: Dr(N,
|
|
1752
|
-
slideFocus:
|
|
1749
|
+
scrollTarget: Re,
|
|
1750
|
+
scrollTo: ze,
|
|
1751
|
+
slideLooper: Dr(N, R, V, O, te, ie, I, pe, n),
|
|
1752
|
+
slideFocus: Pt,
|
|
1753
1753
|
slidesHandler: _r(e, o, A),
|
|
1754
|
-
slidesInView:
|
|
1754
|
+
slidesInView: Bt,
|
|
1755
1755
|
slideIndexes: U,
|
|
1756
|
-
slideRegistry:
|
|
1756
|
+
slideRegistry: it,
|
|
1757
1757
|
slidesToScroll: ee,
|
|
1758
1758
|
target: fe,
|
|
1759
|
-
translate:
|
|
1759
|
+
translate: Et(N, e)
|
|
1760
1760
|
};
|
|
1761
|
-
return
|
|
1761
|
+
return Ge;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Fr() {
|
|
1764
1764
|
let t = {}, e;
|
|
1765
1765
|
function n(c) {
|
|
1766
1766
|
e = c;
|
|
@@ -1813,7 +1813,7 @@ const Er = {
|
|
|
1813
1813
|
};
|
|
1814
1814
|
function Nr(t) {
|
|
1815
1815
|
function e(i, o) {
|
|
1816
|
-
return
|
|
1816
|
+
return Lt(i, o || {});
|
|
1817
1817
|
}
|
|
1818
1818
|
function n(i) {
|
|
1819
1819
|
const o = i.breakpoints || {}, d = je(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, c) => e(l, c), {});
|
|
@@ -1846,7 +1846,7 @@ function Br(t) {
|
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
1848
|
function Be(t, e, n) {
|
|
1849
|
-
const r = t.ownerDocument, a = r.defaultView, i = Nr(a), o = Br(i), d =
|
|
1849
|
+
const r = t.ownerDocument, a = r.defaultView, i = Nr(a), o = Br(i), d = Le(), l = Fr(), {
|
|
1850
1850
|
mergeOptions: c,
|
|
1851
1851
|
optionsAtMedia: v,
|
|
1852
1852
|
optionsMediaQueries: u
|
|
@@ -1862,46 +1862,46 @@ function Be(t, e, n) {
|
|
|
1862
1862
|
slides: x
|
|
1863
1863
|
} = T;
|
|
1864
1864
|
C = (qe(U) ? t.querySelector(U) : U) || t.children[0];
|
|
1865
|
-
const
|
|
1866
|
-
D = [].slice.call(
|
|
1865
|
+
const H = qe(x) ? C.querySelectorAll(x) : x;
|
|
1866
|
+
D = [].slice.call(H || C.children);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1869
|
-
const x =
|
|
1868
|
+
function L(U) {
|
|
1869
|
+
const x = Lr(t, C, D, r, a, U, l);
|
|
1870
1870
|
if (U.loop && !x.slideLooper.canLoop()) {
|
|
1871
1871
|
const P = Object.assign({}, U, {
|
|
1872
1872
|
loop: !1
|
|
1873
1873
|
});
|
|
1874
|
-
return
|
|
1874
|
+
return L(P);
|
|
1875
1875
|
}
|
|
1876
1876
|
return x;
|
|
1877
1877
|
}
|
|
1878
1878
|
function E(U, x) {
|
|
1879
|
-
y || (m = c(m, U), T = v(m), A = x || A, _(), p =
|
|
1879
|
+
y || (m = c(m, U), T = v(m), A = x || A, _(), p = L(T), u([m, ...A.map(({
|
|
1880
1880
|
options: P
|
|
1881
1881
|
}) => P)]).forEach((P) => d.add(P, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(q), p.eventHandler.init(q), p.resizeHandler.init(q), p.slidesHandler.init(q), p.options.loop && p.slideLooper.loop(), C.offsetParent && D.length && p.dragHandler.init(q), M = o.init(q, A)));
|
|
1882
1882
|
}
|
|
1883
1883
|
function N(U, x) {
|
|
1884
1884
|
const P = ee();
|
|
1885
|
-
|
|
1885
|
+
R(), E(c({
|
|
1886
1886
|
startIndex: P
|
|
1887
1887
|
}, U), x), l.emit("reInit");
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function R() {
|
|
1890
1890
|
p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(), d.clear();
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1893
|
-
y || (y = !0, d.clear(),
|
|
1892
|
+
function z() {
|
|
1893
|
+
y || (y = !0, d.clear(), R(), l.emit("destroy"), l.clear());
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function G(U, x, P) {
|
|
1896
1896
|
!T.active || y || (p.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : T.duration), p.scrollTo.index(U, P || 0));
|
|
1897
1897
|
}
|
|
1898
1898
|
function W(U) {
|
|
1899
1899
|
const x = p.index.add(1).get();
|
|
1900
|
-
|
|
1900
|
+
G(x, U, -1);
|
|
1901
1901
|
}
|
|
1902
1902
|
function B(U) {
|
|
1903
1903
|
const x = p.index.add(-1).get();
|
|
1904
|
-
|
|
1904
|
+
G(x, U, 1);
|
|
1905
1905
|
}
|
|
1906
1906
|
function O() {
|
|
1907
1907
|
return p.index.add(1).get() !== ee();
|
|
@@ -1947,7 +1947,7 @@ function Be(t, e, n) {
|
|
|
1947
1947
|
canScrollPrev: te,
|
|
1948
1948
|
containerNode: j,
|
|
1949
1949
|
internalEngine: b,
|
|
1950
|
-
destroy:
|
|
1950
|
+
destroy: z,
|
|
1951
1951
|
off: g,
|
|
1952
1952
|
on: f,
|
|
1953
1953
|
emit: h,
|
|
@@ -1959,7 +1959,7 @@ function Be(t, e, n) {
|
|
|
1959
1959
|
scrollPrev: B,
|
|
1960
1960
|
scrollProgress: se,
|
|
1961
1961
|
scrollSnapList: Q,
|
|
1962
|
-
scrollTo:
|
|
1962
|
+
scrollTo: G,
|
|
1963
1963
|
selectedScrollSnap: ee,
|
|
1964
1964
|
slideNodes: K,
|
|
1965
1965
|
slidesInView: ae,
|
|
@@ -1986,15 +1986,15 @@ function nt(t = {}, e = []) {
|
|
|
1986
1986
|
}, [o, i]), [d, a];
|
|
1987
1987
|
}
|
|
1988
1988
|
nt.globalOptions = void 0;
|
|
1989
|
-
const Pr = "_carouselContainer_1bu1s_1",
|
|
1989
|
+
const Pr = "_carouselContainer_1bu1s_1", Rr = "_viewport_1bu1s_11", zr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Wr = "_slideInner_1bu1s_37", Ur = "_loaderOverlay_1bu1s_45", Hr = "_image_1bu1s_55", $r = "_loaded_1bu1s_66", Or = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Kr = "_arrows_1bu1s_94", Yr = "_dots_1bu1s_104", qr = "_dot_1bu1s_104", Xr = "_dotActive_1bu1s_130", X = {
|
|
1990
1990
|
carouselContainer: Pr,
|
|
1991
|
-
viewport:
|
|
1992
|
-
slides:
|
|
1993
|
-
slide:
|
|
1991
|
+
viewport: Rr,
|
|
1992
|
+
slides: zr,
|
|
1993
|
+
slide: Gr,
|
|
1994
1994
|
slideInner: Wr,
|
|
1995
1995
|
loaderOverlay: Ur,
|
|
1996
|
-
image:
|
|
1997
|
-
loaded:
|
|
1996
|
+
image: Hr,
|
|
1997
|
+
loaded: $r,
|
|
1998
1998
|
empty: Or,
|
|
1999
1999
|
controls: Vr,
|
|
2000
2000
|
arrows: Kr,
|
|
@@ -2023,14 +2023,14 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Gr = "_slide
|
|
|
2023
2023
|
Z(() => {
|
|
2024
2024
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2025
2025
|
}, [t]);
|
|
2026
|
-
const A = re((
|
|
2027
|
-
T((
|
|
2028
|
-
const W = [...
|
|
2029
|
-
return W[
|
|
2026
|
+
const A = re((z) => {
|
|
2027
|
+
T((G) => {
|
|
2028
|
+
const W = [...G];
|
|
2029
|
+
return W[z] = !0, W;
|
|
2030
2030
|
});
|
|
2031
2031
|
}, []), M = Se(() => n * 1e3, [n]), C = re(() => {
|
|
2032
2032
|
g && k(g.selectedScrollSnap());
|
|
2033
|
-
}, [g]), D = re((
|
|
2033
|
+
}, [g]), D = re((z) => g && g.scrollTo(z), [g]), _ = re(() => g && g.scrollPrev(), [g]), L = re(() => g && g.scrollNext(), [g]);
|
|
2034
2034
|
Z(() => {
|
|
2035
2035
|
if (g)
|
|
2036
2036
|
return g.on("select", C), g.on("reInit", C), p(g.scrollSnapList()), () => {
|
|
@@ -2040,14 +2040,14 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Gr = "_slide
|
|
|
2040
2040
|
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2041
2041
|
}, [g, t, o, d]), Z(() => {
|
|
2042
2042
|
if (!e || !g || !t || t.length <= 1) return;
|
|
2043
|
-
const
|
|
2043
|
+
const z = window.setInterval(() => {
|
|
2044
2044
|
g.canScrollNext() && g.scrollNext();
|
|
2045
2045
|
}, M);
|
|
2046
2046
|
return () => {
|
|
2047
|
-
window.clearInterval(
|
|
2047
|
+
window.clearInterval(z);
|
|
2048
2048
|
};
|
|
2049
2049
|
}, [e, M, g, t]);
|
|
2050
|
-
const E = Math.max(1, o), N = `${100 / E}%`,
|
|
2050
|
+
const E = Math.max(1, o), N = `${100 / E}%`, R = d / 2;
|
|
2051
2051
|
return /* @__PURE__ */ w(
|
|
2052
2052
|
"div",
|
|
2053
2053
|
{
|
|
@@ -2061,40 +2061,40 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Gr = "_slide
|
|
|
2061
2061
|
{
|
|
2062
2062
|
className: X.slides,
|
|
2063
2063
|
style: {
|
|
2064
|
-
marginLeft: `-${
|
|
2065
|
-
marginRight: `-${
|
|
2064
|
+
marginLeft: `-${R}px`,
|
|
2065
|
+
marginRight: `-${R}px`
|
|
2066
2066
|
},
|
|
2067
|
-
children: t && t.length > 0 ? t.map((
|
|
2067
|
+
children: t && t.length > 0 ? t.map((z, G) => /* @__PURE__ */ s(
|
|
2068
2068
|
"div",
|
|
2069
2069
|
{
|
|
2070
2070
|
className: X.slide,
|
|
2071
2071
|
style: {
|
|
2072
2072
|
flex: `0 0 ${N}`,
|
|
2073
|
-
paddingLeft: `${
|
|
2074
|
-
paddingRight: `${
|
|
2073
|
+
paddingLeft: `${R}px`,
|
|
2074
|
+
paddingRight: `${R}px`,
|
|
2075
2075
|
borderRadius: l > 0 ? `${l}px` : void 0,
|
|
2076
2076
|
overflow: "hidden"
|
|
2077
2077
|
// Ensure radius clips content
|
|
2078
2078
|
},
|
|
2079
2079
|
children: /* @__PURE__ */ w("div", { className: X.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2080
|
-
!m[
|
|
2080
|
+
!m[G] && /* @__PURE__ */ s("div", { className: X.loaderOverlay, children: /* @__PURE__ */ s(Jr, { "aria-label": "Laster bilde" }) }),
|
|
2081
2081
|
/* @__PURE__ */ s(
|
|
2082
2082
|
"img",
|
|
2083
2083
|
{
|
|
2084
|
-
className: `${X.image} ${m[
|
|
2085
|
-
src:
|
|
2086
|
-
alt:
|
|
2087
|
-
loading:
|
|
2084
|
+
className: `${X.image} ${m[G] ? X.loaded : X.loadingImage}`,
|
|
2085
|
+
src: z.src,
|
|
2086
|
+
alt: z.alt,
|
|
2087
|
+
loading: G < E ? "eager" : "lazy",
|
|
2088
2088
|
crossOrigin: "anonymous",
|
|
2089
|
-
onLoad: () => A(
|
|
2089
|
+
onLoad: () => A(G),
|
|
2090
2090
|
onError: (W) => {
|
|
2091
|
-
W.target.style.display = "none", A(
|
|
2091
|
+
W.target.style.display = "none", A(G);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
)
|
|
2095
2095
|
] })
|
|
2096
2096
|
},
|
|
2097
|
-
`image-${
|
|
2097
|
+
`image-${G}-${z.src}`
|
|
2098
2098
|
)) : /* @__PURE__ */ s("div", { className: X.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ s("div", { className: X.empty, children: "Ingen bilder" }) })
|
|
2099
2099
|
}
|
|
2100
2100
|
) }),
|
|
@@ -2117,25 +2117,25 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Gr = "_slide
|
|
|
2117
2117
|
variant: "primary",
|
|
2118
2118
|
icon: !0,
|
|
2119
2119
|
"aria-label": "Neste bilde",
|
|
2120
|
-
onClick:
|
|
2120
|
+
onClick: L,
|
|
2121
2121
|
disabled: !t || t.length <= 1,
|
|
2122
2122
|
children: /* @__PURE__ */ s(Jn, { "aria-hidden": !0 })
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
2125
2125
|
] }),
|
|
2126
|
-
a && t && t.length > 1 && /* @__PURE__ */ s("div", { className: X.dots, role: "tablist", "aria-label": "Bildeposisjon", children: y.map((
|
|
2127
|
-
const W =
|
|
2126
|
+
a && t && t.length > 1 && /* @__PURE__ */ s("div", { className: X.dots, role: "tablist", "aria-label": "Bildeposisjon", children: y.map((z, G) => {
|
|
2127
|
+
const W = G === h;
|
|
2128
2128
|
return /* @__PURE__ */ s(
|
|
2129
2129
|
"button",
|
|
2130
2130
|
{
|
|
2131
2131
|
type: "button",
|
|
2132
2132
|
className: `${X.dot} ${W ? X.dotActive : ""}`,
|
|
2133
|
-
onClick: () => D(
|
|
2134
|
-
"aria-label": `Gå til bilde ${
|
|
2133
|
+
onClick: () => D(G),
|
|
2134
|
+
"aria-label": `Gå til bilde ${G + 1}`,
|
|
2135
2135
|
"aria-selected": W,
|
|
2136
2136
|
role: "tab"
|
|
2137
2137
|
},
|
|
2138
|
-
`dot-${
|
|
2138
|
+
`dot-${G}`
|
|
2139
2139
|
);
|
|
2140
2140
|
}) })
|
|
2141
2141
|
] })
|
|
@@ -2147,7 +2147,7 @@ Zr.displayName = "Carousel";
|
|
|
2147
2147
|
const Oi = dn, Vi = cn, Ki = un, J = mn, Yi = pn, qi = gn, Qr = hn, es = fn;
|
|
2148
2148
|
Qr.displayName = "Field.Description";
|
|
2149
2149
|
es.displayName = "Field.Counter";
|
|
2150
|
-
const Xi =
|
|
2150
|
+
const Xi = It, ts = ge((t, e) => /* @__PURE__ */ s(kn, { ref: e, ...t }));
|
|
2151
2151
|
ts.displayName = "Heading";
|
|
2152
2152
|
const Ji = yn, ns = ge((t, e) => /* @__PURE__ */ s(vn, { ref: e, ...t }));
|
|
2153
2153
|
ns.displayName = "Label";
|
|
@@ -2159,9 +2159,9 @@ const ta = wn, na = In, oa = Dn, Ne = Object.assign(_n, {
|
|
|
2159
2159
|
Button: jn,
|
|
2160
2160
|
ClearButton: Mn,
|
|
2161
2161
|
Input: An
|
|
2162
|
-
}), ra =
|
|
2162
|
+
}), ra = Ln, sa = Fn, ia = En, os = Nn;
|
|
2163
2163
|
os.displayName = "Suggestion";
|
|
2164
|
-
const Oe = Bn, aa = Pn, la =
|
|
2164
|
+
const Oe = Bn, aa = Pn, la = Rn, da = zn, ca = Gn, ua = Wn, ma = Un, pa = Hn, rs = ge((t, e) => /* @__PURE__ */ s($n, { ref: e, ...t }));
|
|
2165
2165
|
rs.displayName = "ValidationMessage";
|
|
2166
2166
|
const ss = {
|
|
2167
2167
|
NO: {
|
|
@@ -4120,7 +4120,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4120
4120
|
}
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
4123
|
-
},
|
|
4123
|
+
}, ot = Kt(void 0), ga = ({ children: t }) => {
|
|
4124
4124
|
const [e, n] = ne("NO"), r = (a) => {
|
|
4125
4125
|
const i = a.split(".");
|
|
4126
4126
|
let o = ss[e];
|
|
@@ -4131,13 +4131,59 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4131
4131
|
}
|
|
4132
4132
|
return o;
|
|
4133
4133
|
};
|
|
4134
|
-
return /* @__PURE__ */ s(
|
|
4135
|
-
},
|
|
4136
|
-
const t =
|
|
4134
|
+
return /* @__PURE__ */ s(ot.Provider, { value: { language: e, setLanguage: n, t: r }, children: t });
|
|
4135
|
+
}, ha = () => {
|
|
4136
|
+
const t = wt(ot);
|
|
4137
4137
|
if (t === void 0)
|
|
4138
4138
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
4139
4139
|
return t;
|
|
4140
|
-
},
|
|
4140
|
+
}, Nt = () => {
|
|
4141
|
+
const t = wt(ot);
|
|
4142
|
+
return t === void 0 ? {
|
|
4143
|
+
language: "NO",
|
|
4144
|
+
setLanguage: () => {
|
|
4145
|
+
console.warn("LanguageProvider is not available. Language changes will not work.");
|
|
4146
|
+
},
|
|
4147
|
+
t: (e) => ({
|
|
4148
|
+
// Header translations
|
|
4149
|
+
"header.darkMode": "Mørk modus",
|
|
4150
|
+
"header.language": "Språk",
|
|
4151
|
+
"header.selectLanguage": "Velg språk",
|
|
4152
|
+
"header.homeAriaLabel": "Norges Røde Kors Hjem",
|
|
4153
|
+
"header.login": "Logg inn",
|
|
4154
|
+
"header.search": "Søk",
|
|
4155
|
+
"header.close": "Lukk",
|
|
4156
|
+
"header.closeSearch": "Lukk søk",
|
|
4157
|
+
"header.openSearch": "Åpne søk",
|
|
4158
|
+
"header.menu": "Meny",
|
|
4159
|
+
"header.closeMenu": "Lukk meny",
|
|
4160
|
+
"header.openMenu": "Åpne meny",
|
|
4161
|
+
"header.supportUs": "Støtt oss",
|
|
4162
|
+
"header.toggleTheme": "Bytt tema",
|
|
4163
|
+
"header.searchPlaceholder": "Søk...",
|
|
4164
|
+
"header.clearSearch": "Tøm søk",
|
|
4165
|
+
"header.suggestions": "Forslag",
|
|
4166
|
+
"header.viewAll": "Se alle",
|
|
4167
|
+
"header.noResults": "Ingen resultater for",
|
|
4168
|
+
// Footer translations
|
|
4169
|
+
"footer.shortcuts": "Snarveier",
|
|
4170
|
+
"footer.shortcutsLinks.services": "Tilbudene",
|
|
4171
|
+
"footer.shortcutsLinks.volunteer": "Bli frivillig",
|
|
4172
|
+
"footer.shortcutsLinks.ourWork": "Vårt arbeid",
|
|
4173
|
+
"footer.shortcutsLinks.about": "Om Røde Kors",
|
|
4174
|
+
"footer.shortcutsLinks.support": "Støtt arbeidet",
|
|
4175
|
+
"footer.shortcutsLinks.contact": "Kontakt oss",
|
|
4176
|
+
"footer.contact.visitingAddress": "Besøks adresse",
|
|
4177
|
+
"footer.contact.organizationNumber": "Organisasjonsnummer",
|
|
4178
|
+
"footer.contact.email": "E-post",
|
|
4179
|
+
"footer.copyright": "Rødekors",
|
|
4180
|
+
"footer.legal.privacy": "Personvern",
|
|
4181
|
+
"footer.legal.press": "For presse",
|
|
4182
|
+
"footer.legal.procurement": "Regler for innkjøp",
|
|
4183
|
+
"footer.legal.whistleblowing": "Varsling/Misconduct"
|
|
4184
|
+
})[e] || e
|
|
4185
|
+
} : t;
|
|
4186
|
+
}, is = "_header_ymzss_1", as = "_languageSwitch_ymzss_36", ls = "_searchOverlay_ymzss_40", ds = "_headerExtension_ymzss_45", cs = "_extensionContentWrapper_ymzss_73", us = "_extensionContent_ymzss_73", ms = "_extensionDivider_ymzss_100", ps = "_languageLabel_ymzss_124", gs = "_languageLink_ymzss_140", hs = "_headerInner_ymzss_175", fs = "_logoWrapper_ymzss_192", ks = "_logo_ymzss_192", ys = "_secondaryLogoWrapper_ymzss_215", vs = "_slotComponent_ymzss_224", bs = "_slotContainer_ymzss_234", Ts = "_slotText_ymzss_242", Ss = "_secondaryLogo_ymzss_215", xs = "_redCrossLogo_ymzss_269", Cs = "_primaryLogo_ymzss_275", ws = "_navItems_ymzss_279", Is = "_navLink_ymzss_288", Ds = "_actions_ymzss_301", _s = "_ctaButton_ymzss_309", As = "_themeToggle_ymzss_314", Ms = "_userInfo_ymzss_319", js = "_userName_ymzss_325", Ls = "_loginLink_ymzss_332", Fs = "_loginText_ymzss_341", Es = "_underline_ymzss_348", Ns = "_searchButtonWrapper_ymzss_354", Bs = "_buttonText_ymzss_358", Ps = "_menuButton_ymzss_363", Rs = "_menuOverlay_ymzss_368", zs = "_searchContent_ymzss_402", Gs = "_menuContent_ymzss_412", Ws = "_menuLeftColumn_ymzss_421", Us = "_menuRightColumn_ymzss_427", Hs = "_slotContent_ymzss_441", $s = "_navList_ymzss_454", Os = "_menuUtilities_ymzss_461", Vs = "_menuBrand_ymzss_468", Ks = "_suggestionsSection_ymzss_472", Ys = "_suggestionsTitle_ymzss_478", qs = "_searchResults_ymzss_487", Xs = "_resultList_ymzss_493", Js = "_resultItem_ymzss_499", Zs = "_resultLink_ymzss_507", Qs = "_suggestionIcon_ymzss_521", ei = "_suggestionText_ymzss_534", ti = "_highlightedText_ymzss_541", ni = "_remainingText_ymzss_546", oi = "_viewAllLink_ymzss_559", ri = "_noResults_ymzss_594", S = {
|
|
4141
4187
|
header: is,
|
|
4142
4188
|
languageSwitch: as,
|
|
4143
4189
|
searchOverlay: ls,
|
|
@@ -4164,19 +4210,19 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4164
4210
|
themeToggle: As,
|
|
4165
4211
|
userInfo: Ms,
|
|
4166
4212
|
userName: js,
|
|
4167
|
-
loginLink:
|
|
4168
|
-
loginText:
|
|
4213
|
+
loginLink: Ls,
|
|
4214
|
+
loginText: Fs,
|
|
4169
4215
|
underline: Es,
|
|
4170
4216
|
searchButtonWrapper: Ns,
|
|
4171
4217
|
buttonText: Bs,
|
|
4172
4218
|
menuButton: Ps,
|
|
4173
|
-
menuOverlay:
|
|
4174
|
-
searchContent:
|
|
4175
|
-
menuContent:
|
|
4219
|
+
menuOverlay: Rs,
|
|
4220
|
+
searchContent: zs,
|
|
4221
|
+
menuContent: Gs,
|
|
4176
4222
|
menuLeftColumn: Ws,
|
|
4177
4223
|
menuRightColumn: Us,
|
|
4178
|
-
slotContent:
|
|
4179
|
-
navList:
|
|
4224
|
+
slotContent: Hs,
|
|
4225
|
+
navList: $s,
|
|
4180
4226
|
menuUtilities: Os,
|
|
4181
4227
|
menuBrand: Vs,
|
|
4182
4228
|
suggestionsSection: Ks,
|
|
@@ -4254,7 +4300,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4254
4300
|
{ id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
|
|
4255
4301
|
{ id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
|
|
4256
4302
|
{ id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
|
|
4257
|
-
],
|
|
4303
|
+
], fa = ({
|
|
4258
4304
|
"data-color": t = "primary",
|
|
4259
4305
|
activePage: e,
|
|
4260
4306
|
setPage: n,
|
|
@@ -4278,7 +4324,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4278
4324
|
showModeToggle: A = !1,
|
|
4279
4325
|
showLanguageSwitch: M = !1
|
|
4280
4326
|
}) => {
|
|
4281
|
-
const [C, D] = ne(!1), [_,
|
|
4327
|
+
const [C, D] = ne(!1), [_, L] = ne(!1), [E, N] = ne(""), [R, z] = ne("light"), { language: G, setLanguage: W, t: B } = Nt(), [O, te] = ne(!1);
|
|
4282
4328
|
Z(() => {
|
|
4283
4329
|
const b = "rk-header-inline-styles";
|
|
4284
4330
|
if (typeof document > "u" || document.getElementById(b)) return;
|
|
@@ -4311,7 +4357,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4311
4357
|
}
|
|
4312
4358
|
);
|
|
4313
4359
|
Z(() => {
|
|
4314
|
-
D(!1),
|
|
4360
|
+
D(!1), L(!1), N("");
|
|
4315
4361
|
}, [e]), Z(() => {
|
|
4316
4362
|
if (!(typeof document > "u") && C && O) {
|
|
4317
4363
|
const b = document.body.style.overflow;
|
|
@@ -4367,12 +4413,12 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4367
4413
|
};
|
|
4368
4414
|
}, [_]);
|
|
4369
4415
|
const se = () => {
|
|
4370
|
-
const b =
|
|
4371
|
-
|
|
4416
|
+
const b = R === "light" ? "dark" : "light";
|
|
4417
|
+
z(b), document.documentElement.setAttribute("data-color-scheme", b);
|
|
4372
4418
|
}, ee = (b) => {
|
|
4373
|
-
n && (b.preventDefault(), n("home")), D(!1),
|
|
4419
|
+
n && (b.preventDefault(), n("home")), D(!1), L(!1);
|
|
4374
4420
|
}, ie = () => {
|
|
4375
|
-
D(!C), _ &&
|
|
4421
|
+
D(!C), _ && L(!1), !C && typeof document < "u" && requestAnimationFrame(() => {
|
|
4376
4422
|
const b = document.querySelector(`.${S.header}`);
|
|
4377
4423
|
if (b) {
|
|
4378
4424
|
const I = b.offsetHeight;
|
|
@@ -4380,7 +4426,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4380
4426
|
}
|
|
4381
4427
|
});
|
|
4382
4428
|
}, ae = () => {
|
|
4383
|
-
|
|
4429
|
+
L(!_), C && D(!1);
|
|
4384
4430
|
}, V = Se(() => {
|
|
4385
4431
|
if (!E.trim()) return [];
|
|
4386
4432
|
const b = E.toLowerCase();
|
|
@@ -4388,7 +4434,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4388
4434
|
(I) => I.title.toLowerCase().startsWith(b)
|
|
4389
4435
|
);
|
|
4390
4436
|
}, [E]), ue = (b) => {
|
|
4391
|
-
n && n(b),
|
|
4437
|
+
n && n(b), L(!1), N("");
|
|
4392
4438
|
};
|
|
4393
4439
|
return /* @__PURE__ */ w("header", { className: S.header, "data-open": C ? "true" : "false", "data-color": t, children: [
|
|
4394
4440
|
T && /* @__PURE__ */ s("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ w("div", { className: S.extensionContentWrapper, children: [
|
|
@@ -4396,7 +4442,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4396
4442
|
Oe,
|
|
4397
4443
|
{
|
|
4398
4444
|
"data-size": "sm",
|
|
4399
|
-
checked:
|
|
4445
|
+
checked: R === "dark",
|
|
4400
4446
|
onChange: se,
|
|
4401
4447
|
label: B("header.darkMode"),
|
|
4402
4448
|
color: "neutral",
|
|
@@ -4414,16 +4460,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4414
4460
|
"aria-label": B("header.selectLanguage"),
|
|
4415
4461
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4416
4462
|
children: [
|
|
4417
|
-
|
|
4463
|
+
G,
|
|
4418
4464
|
" ",
|
|
4419
|
-
/* @__PURE__ */ s(
|
|
4465
|
+
/* @__PURE__ */ s(gt, { "aria-hidden": !0 })
|
|
4420
4466
|
]
|
|
4421
4467
|
}
|
|
4422
4468
|
),
|
|
4423
4469
|
/* @__PURE__ */ s(
|
|
4424
4470
|
J,
|
|
4425
4471
|
{
|
|
4426
|
-
"data-color-scheme":
|
|
4472
|
+
"data-color-scheme": R,
|
|
4427
4473
|
placement: "bottom-end",
|
|
4428
4474
|
children: /* @__PURE__ */ w(J.List, { children: [
|
|
4429
4475
|
/* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("NO"), children: "Norsk (NO)" }) }),
|
|
@@ -4449,7 +4495,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4449
4495
|
/* @__PURE__ */ s("div", { className: S.secondaryLogoWrapper, children: f && g ? /* @__PURE__ */ s(
|
|
4450
4496
|
"img",
|
|
4451
4497
|
{
|
|
4452
|
-
src:
|
|
4498
|
+
src: R === "dark" && h ? h : g,
|
|
4453
4499
|
alt: k,
|
|
4454
4500
|
className: S.secondaryLogo
|
|
4455
4501
|
}
|
|
@@ -4485,14 +4531,14 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4485
4531
|
!T && u && /* @__PURE__ */ s("div", { className: S.themeToggle, children: /* @__PURE__ */ s(
|
|
4486
4532
|
Oe,
|
|
4487
4533
|
{
|
|
4488
|
-
checked:
|
|
4534
|
+
checked: R === "dark",
|
|
4489
4535
|
onChange: se,
|
|
4490
4536
|
"aria-label": B("header.toggleTheme")
|
|
4491
4537
|
}
|
|
4492
4538
|
) }),
|
|
4493
4539
|
a && /* @__PURE__ */ w("div", { className: S.userInfo, children: [
|
|
4494
4540
|
/* @__PURE__ */ s(Je, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
|
|
4495
|
-
/* @__PURE__ */ s(
|
|
4541
|
+
/* @__PURE__ */ s(At, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4496
4542
|
] }),
|
|
4497
4543
|
o && /* @__PURE__ */ w("a", { href: "#", className: S.loginLink, children: [
|
|
4498
4544
|
/* @__PURE__ */ s("span", { className: S.loginText, children: B("header.login") }),
|
|
@@ -4508,7 +4554,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4508
4554
|
"aria-expanded": _,
|
|
4509
4555
|
"aria-label": B(_ ? "header.closeSearch" : "header.openSearch"),
|
|
4510
4556
|
children: [
|
|
4511
|
-
_ ? /* @__PURE__ */ s(
|
|
4557
|
+
_ ? /* @__PURE__ */ s(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ s(ft, { "aria-hidden": !0 }),
|
|
4512
4558
|
/* @__PURE__ */ s("span", { className: S.buttonText, children: B(_ ? "header.close" : "header.search") })
|
|
4513
4559
|
]
|
|
4514
4560
|
}
|
|
@@ -4524,7 +4570,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4524
4570
|
"aria-label": B(C ? "header.closeMenu" : "header.openMenu"),
|
|
4525
4571
|
className: S.menuButton,
|
|
4526
4572
|
children: [
|
|
4527
|
-
C ? /* @__PURE__ */ s(
|
|
4573
|
+
C ? /* @__PURE__ */ s(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ s(Zn, { "aria-hidden": !0 }),
|
|
4528
4574
|
/* @__PURE__ */ s("span", { className: S.buttonText, children: B(C ? "header.close" : "header.menu") })
|
|
4529
4575
|
]
|
|
4530
4576
|
}
|
|
@@ -4545,16 +4591,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4545
4591
|
"aria-label": B("header.selectLanguage"),
|
|
4546
4592
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4547
4593
|
children: [
|
|
4548
|
-
|
|
4594
|
+
G,
|
|
4549
4595
|
" ",
|
|
4550
|
-
/* @__PURE__ */ s(
|
|
4596
|
+
/* @__PURE__ */ s(gt, { "aria-hidden": !0 })
|
|
4551
4597
|
]
|
|
4552
4598
|
}
|
|
4553
4599
|
),
|
|
4554
4600
|
/* @__PURE__ */ s(
|
|
4555
4601
|
J,
|
|
4556
4602
|
{
|
|
4557
|
-
"data-color-scheme":
|
|
4603
|
+
"data-color-scheme": R,
|
|
4558
4604
|
placement: "bottom-start",
|
|
4559
4605
|
children: /* @__PURE__ */ w(J.List, { children: [
|
|
4560
4606
|
/* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("NO"), children: "Norsk (NO)" }) }),
|
|
@@ -4568,7 +4614,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4568
4614
|
Oe,
|
|
4569
4615
|
{
|
|
4570
4616
|
"data-size": "sm",
|
|
4571
|
-
checked:
|
|
4617
|
+
checked: R === "dark",
|
|
4572
4618
|
onChange: se,
|
|
4573
4619
|
label: B("header.darkMode"),
|
|
4574
4620
|
color: "neutral",
|
|
@@ -4616,12 +4662,12 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4616
4662
|
className: S.resultLink,
|
|
4617
4663
|
onClick: () => ue(b.path),
|
|
4618
4664
|
children: [
|
|
4619
|
-
/* @__PURE__ */ s("span", { className: S.suggestionIcon, children: /* @__PURE__ */ s(
|
|
4665
|
+
/* @__PURE__ */ s("span", { className: S.suggestionIcon, children: /* @__PURE__ */ s(ft, { "aria-hidden": !0 }) }),
|
|
4620
4666
|
/* @__PURE__ */ s("span", { className: S.suggestionText, children: (() => {
|
|
4621
4667
|
const I = b.title.toLowerCase().indexOf(E.toLowerCase());
|
|
4622
4668
|
if (I === -1) return /* @__PURE__ */ s("span", { className: S.remainingText, children: b.title });
|
|
4623
4669
|
const j = b.title.slice(0, I), K = b.title.slice(I, I + E.length), q = b.title.slice(I + E.length);
|
|
4624
|
-
return /* @__PURE__ */ w(
|
|
4670
|
+
return /* @__PURE__ */ w(Vt, { children: [
|
|
4625
4671
|
/* @__PURE__ */ s("span", { className: S.remainingText, children: j }),
|
|
4626
4672
|
/* @__PURE__ */ s("span", { className: S.highlightedText, children: K }),
|
|
4627
4673
|
/* @__PURE__ */ s("span", { className: S.remainingText, children: q })
|
|
@@ -4637,7 +4683,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4637
4683
|
"data-color": "neutral",
|
|
4638
4684
|
className: S.viewAllLink,
|
|
4639
4685
|
onClick: (b) => {
|
|
4640
|
-
b.preventDefault(), n && n(`search/${E}`),
|
|
4686
|
+
b.preventDefault(), n && n(`search/${E}`), L(!1), N("");
|
|
4641
4687
|
},
|
|
4642
4688
|
children: [
|
|
4643
4689
|
B("header.viewAll"),
|
|
@@ -4798,7 +4844,7 @@ function ii(t) {
|
|
|
4798
4844
|
}
|
|
4799
4845
|
`;
|
|
4800
4846
|
}
|
|
4801
|
-
const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf5vh_26", ci = "_shortcutsSection_cf5vh_35", ui = "_shortcutsColumn_cf5vh_43", mi = "_shortcutsTitle_cf5vh_51", pi = "_shortcutsList_cf5vh_60", gi = "_shortcutLink_cf5vh_69", hi = "_slotComponent_cf5vh_92", fi = "_divider_cf5vh_131", ki = "_contactSection_cf5vh_139", yi = "_contactColumn_cf5vh_146", vi = "_contactTitle_cf5vh_154", bi = "_contactContent_cf5vh_163", Ti = "_legalSection_cf5vh_177", Si = "_copyrightText_cf5vh_184", xi = "_legalLinks_cf5vh_193", Ci = "_legalLink_cf5vh_193", wi = "_whiteSection_cf5vh_223", Ii = "_whiteContainer_cf5vh_228", Di = "_whiteContent_cf5vh_241", _i = "_logo_cf5vh_253", Ai = "_designSystemLogo_cf5vh_260", Mi = "_slotSmall_cf5vh_267", ji = "_slotLarge_cf5vh_278",
|
|
4847
|
+
const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf5vh_26", ci = "_shortcutsSection_cf5vh_35", ui = "_shortcutsColumn_cf5vh_43", mi = "_shortcutsTitle_cf5vh_51", pi = "_shortcutsList_cf5vh_60", gi = "_shortcutLink_cf5vh_69", hi = "_slotComponent_cf5vh_92", fi = "_divider_cf5vh_131", ki = "_contactSection_cf5vh_139", yi = "_contactColumn_cf5vh_146", vi = "_contactTitle_cf5vh_154", bi = "_contactContent_cf5vh_163", Ti = "_legalSection_cf5vh_177", Si = "_copyrightText_cf5vh_184", xi = "_legalLinks_cf5vh_193", Ci = "_legalLink_cf5vh_193", wi = "_whiteSection_cf5vh_223", Ii = "_whiteContainer_cf5vh_228", Di = "_whiteContent_cf5vh_241", _i = "_logo_cf5vh_253", Ai = "_designSystemLogo_cf5vh_260", Mi = "_slotSmall_cf5vh_267", ji = "_slotLarge_cf5vh_278", F = {
|
|
4802
4848
|
footer: ai,
|
|
4803
4849
|
redSection: li,
|
|
4804
4850
|
redContainer: di,
|
|
@@ -4824,7 +4870,7 @@ const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf
|
|
|
4824
4870
|
designSystemLogo: Ai,
|
|
4825
4871
|
slotSmall: Mi,
|
|
4826
4872
|
slotLarge: ji
|
|
4827
|
-
},
|
|
4873
|
+
}, ka = ({
|
|
4828
4874
|
"data-color": t = "additional",
|
|
4829
4875
|
redSectionSlot: e,
|
|
4830
4876
|
whiteSectionSlotSmall: n,
|
|
@@ -4836,7 +4882,7 @@ const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf
|
|
|
4836
4882
|
shortcutsLinksLeft: l,
|
|
4837
4883
|
shortcutsLinksRight: c
|
|
4838
4884
|
} = {}) => {
|
|
4839
|
-
const v = (/* @__PURE__ */ new Date()).getFullYear(), { t: u } =
|
|
4885
|
+
const v = (/* @__PURE__ */ new Date()).getFullYear(), { t: u } = Nt(), [f, g] = Ve.useState("light");
|
|
4840
4886
|
Ve.useEffect(() => {
|
|
4841
4887
|
if (typeof document > "u") return;
|
|
4842
4888
|
const m = document.documentElement, T = m.getAttribute("data-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
@@ -4857,60 +4903,60 @@ const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf
|
|
|
4857
4903
|
{ label: u("footer.shortcutsLinks.support"), href: "#" },
|
|
4858
4904
|
{ label: u("footer.shortcutsLinks.contact"), href: "#" }
|
|
4859
4905
|
], y = l || k, p = c || k;
|
|
4860
|
-
return /* @__PURE__ */ w("footer", { className:
|
|
4861
|
-
/* @__PURE__ */ s("div", { className:
|
|
4862
|
-
/* @__PURE__ */ w("div", { className:
|
|
4863
|
-
/* @__PURE__ */ w("nav", { className:
|
|
4864
|
-
/* @__PURE__ */ s("h3", { className:
|
|
4865
|
-
/* @__PURE__ */ s("ul", { className:
|
|
4906
|
+
return /* @__PURE__ */ w("footer", { className: F.footer, "data-color": t, children: [
|
|
4907
|
+
/* @__PURE__ */ s("div", { className: F.redSection, children: /* @__PURE__ */ w("div", { className: F.redContainer, children: [
|
|
4908
|
+
/* @__PURE__ */ w("div", { className: F.shortcutsSection, children: [
|
|
4909
|
+
/* @__PURE__ */ w("nav", { className: F.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
|
|
4910
|
+
/* @__PURE__ */ s("h3", { className: F.shortcutsTitle, children: u("footer.shortcuts") }),
|
|
4911
|
+
/* @__PURE__ */ s("ul", { className: F.shortcutsList, children: y.map((m, T) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(ce, { href: m.href, className: F.shortcutLink, children: m.label }) }, T)) })
|
|
4866
4912
|
] }),
|
|
4867
|
-
/* @__PURE__ */ w("nav", { className:
|
|
4868
|
-
/* @__PURE__ */ s("h3", { className:
|
|
4869
|
-
/* @__PURE__ */ s("ul", { className:
|
|
4913
|
+
/* @__PURE__ */ w("nav", { className: F.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
|
|
4914
|
+
/* @__PURE__ */ s("h3", { className: F.shortcutsTitle, children: u("footer.shortcuts") }),
|
|
4915
|
+
/* @__PURE__ */ s("ul", { className: F.shortcutsList, children: p.map((m, T) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(ce, { href: m.href, className: F.shortcutLink, children: m.label }) }, T)) })
|
|
4870
4916
|
] }),
|
|
4871
|
-
e && /* @__PURE__ */ s("div", { className:
|
|
4917
|
+
e && /* @__PURE__ */ s("div", { className: F.slotComponent, children: e })
|
|
4872
4918
|
] }),
|
|
4873
|
-
/* @__PURE__ */ s("div", { className:
|
|
4874
|
-
/* @__PURE__ */ w("div", { className:
|
|
4875
|
-
/* @__PURE__ */ w("div", { className:
|
|
4876
|
-
/* @__PURE__ */ s("h4", { className:
|
|
4877
|
-
/* @__PURE__ */ w("div", { className:
|
|
4919
|
+
/* @__PURE__ */ s("div", { className: F.divider }),
|
|
4920
|
+
/* @__PURE__ */ w("div", { className: F.contactSection, children: [
|
|
4921
|
+
/* @__PURE__ */ w("div", { className: F.contactColumn, children: [
|
|
4922
|
+
/* @__PURE__ */ s("h4", { className: F.contactTitle, children: u("footer.contact.visitingAddress") }),
|
|
4923
|
+
/* @__PURE__ */ w("div", { className: F.contactContent, children: [
|
|
4878
4924
|
/* @__PURE__ */ s("p", { children: "Hausmannsgate 7 (Korsegården)" }),
|
|
4879
4925
|
/* @__PURE__ */ s("p", { children: "0186 Oslo" })
|
|
4880
4926
|
] })
|
|
4881
4927
|
] }),
|
|
4882
|
-
/* @__PURE__ */ w("div", { className:
|
|
4883
|
-
/* @__PURE__ */ s("h4", { className:
|
|
4884
|
-
/* @__PURE__ */ s("p", { className:
|
|
4928
|
+
/* @__PURE__ */ w("div", { className: F.contactColumn, children: [
|
|
4929
|
+
/* @__PURE__ */ s("h4", { className: F.contactTitle, children: u("footer.contact.organizationNumber") }),
|
|
4930
|
+
/* @__PURE__ */ s("p", { className: F.contactContent, children: "XXX XXX XXX" })
|
|
4885
4931
|
] }),
|
|
4886
|
-
/* @__PURE__ */ w("div", { className:
|
|
4887
|
-
/* @__PURE__ */ s("h4", { className:
|
|
4888
|
-
/* @__PURE__ */ s("p", { className:
|
|
4932
|
+
/* @__PURE__ */ w("div", { className: F.contactColumn, children: [
|
|
4933
|
+
/* @__PURE__ */ s("h4", { className: F.contactTitle, children: u("footer.contact.email") }),
|
|
4934
|
+
/* @__PURE__ */ s("p", { className: F.contactContent, children: "post@redcross.no" })
|
|
4889
4935
|
] })
|
|
4890
4936
|
] }),
|
|
4891
|
-
/* @__PURE__ */ s("div", { className:
|
|
4892
|
-
/* @__PURE__ */ w("div", { className:
|
|
4893
|
-
/* @__PURE__ */ w("p", { className:
|
|
4937
|
+
/* @__PURE__ */ s("div", { className: F.divider }),
|
|
4938
|
+
/* @__PURE__ */ w("div", { className: F.legalSection, children: [
|
|
4939
|
+
/* @__PURE__ */ w("p", { className: F.copyrightText, children: [
|
|
4894
4940
|
"© ",
|
|
4895
4941
|
v,
|
|
4896
4942
|
" ",
|
|
4897
4943
|
u("footer.copyright")
|
|
4898
4944
|
] }),
|
|
4899
|
-
/* @__PURE__ */ w("div", { className:
|
|
4900
|
-
/* @__PURE__ */ s(ce, { href: "#", className:
|
|
4901
|
-
/* @__PURE__ */ s(ce, { href: "#", className:
|
|
4902
|
-
/* @__PURE__ */ s(ce, { href: "#", className:
|
|
4903
|
-
/* @__PURE__ */ s(ce, { href: "#", className:
|
|
4945
|
+
/* @__PURE__ */ w("div", { className: F.legalLinks, children: [
|
|
4946
|
+
/* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.privacy") }),
|
|
4947
|
+
/* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.press") }),
|
|
4948
|
+
/* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.procurement") }),
|
|
4949
|
+
/* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.whistleblowing") })
|
|
4904
4950
|
] })
|
|
4905
4951
|
] })
|
|
4906
4952
|
] }) }),
|
|
4907
|
-
/* @__PURE__ */ s("div", { className:
|
|
4953
|
+
/* @__PURE__ */ s("div", { className: F.whiteSection, children: /* @__PURE__ */ s("div", { className: F.whiteContainer, children: /* @__PURE__ */ w("div", { className: F.whiteContent, children: [
|
|
4908
4954
|
/* @__PURE__ */ s(
|
|
4909
4955
|
"img",
|
|
4910
4956
|
{
|
|
4911
4957
|
src: "/logo-red-cross.svg",
|
|
4912
4958
|
alt: "Røde Kors Logo",
|
|
4913
|
-
className:
|
|
4959
|
+
className: F.logo,
|
|
4914
4960
|
loading: "lazy"
|
|
4915
4961
|
}
|
|
4916
4962
|
),
|
|
@@ -4919,30 +4965,30 @@ const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf
|
|
|
4919
4965
|
{
|
|
4920
4966
|
src: h,
|
|
4921
4967
|
alt: d,
|
|
4922
|
-
className:
|
|
4968
|
+
className: F.designSystemLogo,
|
|
4923
4969
|
loading: "lazy"
|
|
4924
4970
|
}
|
|
4925
4971
|
),
|
|
4926
|
-
n && /* @__PURE__ */ s("div", { className:
|
|
4927
|
-
r && /* @__PURE__ */ s("div", { className:
|
|
4972
|
+
n && /* @__PURE__ */ s("div", { className: F.slotSmall, children: n }),
|
|
4973
|
+
r && /* @__PURE__ */ s("div", { className: F.slotLarge, children: r })
|
|
4928
4974
|
] }) }) })
|
|
4929
4975
|
] });
|
|
4930
4976
|
};
|
|
4931
4977
|
export {
|
|
4932
4978
|
eo as Alert,
|
|
4933
|
-
|
|
4979
|
+
At as Avatar,
|
|
4934
4980
|
to as Badge,
|
|
4935
4981
|
Pi as BadgePosition,
|
|
4936
|
-
|
|
4937
|
-
|
|
4982
|
+
Ri as Breadcrumbs,
|
|
4983
|
+
Gi as BreadcrumbsItem,
|
|
4938
4984
|
Wi as BreadcrumbsLink,
|
|
4939
|
-
|
|
4985
|
+
zi as BreadcrumbsList,
|
|
4940
4986
|
xe as Button,
|
|
4941
4987
|
no as Card,
|
|
4942
4988
|
Ui as CardBlock,
|
|
4943
4989
|
Zr as Carousel,
|
|
4944
4990
|
oo as Checkbox,
|
|
4945
|
-
|
|
4991
|
+
$i as Chip,
|
|
4946
4992
|
nr as DateInput,
|
|
4947
4993
|
Yo as DatePicker,
|
|
4948
4994
|
Oi as Details,
|
|
@@ -4954,8 +5000,8 @@ export {
|
|
|
4954
5000
|
es as FieldCounter,
|
|
4955
5001
|
Qr as FieldDescription,
|
|
4956
5002
|
Xi as Fieldset,
|
|
4957
|
-
|
|
4958
|
-
|
|
5003
|
+
ka as Footer,
|
|
5004
|
+
fa as Header,
|
|
4959
5005
|
ts as Heading,
|
|
4960
5006
|
Ji as Input,
|
|
4961
5007
|
ns as Label,
|
|
@@ -4981,8 +5027,9 @@ export {
|
|
|
4981
5027
|
ma as ToggleGroup,
|
|
4982
5028
|
pa as Tooltip,
|
|
4983
5029
|
rs as ValidationMessage,
|
|
4984
|
-
|
|
4985
|
-
|
|
5030
|
+
Hi as useCheckboxGroup,
|
|
5031
|
+
ha as useLanguage,
|
|
5032
|
+
Nt as useLanguageOptional,
|
|
4986
5033
|
ea as usePagination,
|
|
4987
5034
|
oa as useRadioGroup
|
|
4988
5035
|
};
|