rk-designsystem 1.1.75 → 1.1.77
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 +631 -620
- package/dist/componentlibrary.umd.js +20 -6
- package/dist/rk-designsystem.css +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as I, Fragment as Vt } from "react/jsx-runtime";
|
|
2
2
|
import Be, { forwardRef as ge, useState as ne, useEffect as J, useMemo as Se, useCallback as re, useRef as Ke, createContext as Kt, useContext as wt } from "react";
|
|
3
|
-
import { Alert as
|
|
4
|
-
import { startOfMonth as be, isValid as Ue, isSameMonth as pt, startOfWeek as Dt, format as we, addDays as _t, subMonths as On, addMonths as Vn, isSameDay as Kn, isToday as
|
|
3
|
+
import { Alert as Yt, Avatar as qt, BadgePosition as Zt, Badge as Xt, Breadcrumbs as Jt, 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 Ln, Select as jn, Skeleton as En, SkipLink as Fn, EXPERIMENTAL_Suggestion as Nn, Switch as Bn, Table as Pn, Tabs as zn, Tag as Rn, Textarea as Gn, Textfield as $n, ToggleGroup as Wn, Tooltip as Hn, ValidationMessage as Un } from "@digdir/designsystemet-react";
|
|
4
|
+
import { startOfMonth as be, isValid as Ue, 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
5
|
import { ChevronLeftIcon as Zn, ChevronRightIcon as Xn, ChevronDownIcon as gt, XMarkIcon as ht, MagnifyingGlassIcon as ft, MenuHamburgerIcon as Jn, HeartIcon as Qn } from "@navikt/aksel-icons";
|
|
6
|
-
const eo = ge((t, e) => /* @__PURE__ */ o(
|
|
6
|
+
const eo = ge((t, e) => /* @__PURE__ */ o(Yt, { ref: e, ...t }));
|
|
7
7
|
eo.displayName = "Alert";
|
|
8
|
-
const At = ge((t, e) => /* @__PURE__ */ o(
|
|
8
|
+
const At = ge((t, e) => /* @__PURE__ */ o(qt, { ref: e, ...t }));
|
|
9
9
|
At.displayName = "Avatar";
|
|
10
10
|
const to = ge((t, e) => /* @__PURE__ */ o(Xt, { ref: e, ...t }));
|
|
11
11
|
to.displayName = "Badge";
|
|
12
|
-
const
|
|
12
|
+
const Gi = Zt, $i = Jt, Wi = Qt, Hi = en, Ui = tn, xe = Ye;
|
|
13
13
|
xe.displayName = "Button";
|
|
14
|
-
const no = nn,
|
|
14
|
+
const no = nn, Oi = on;
|
|
15
15
|
no.displayName = "Card";
|
|
16
|
-
const oo = rn, ro = It,
|
|
16
|
+
const oo = rn, ro = It, Vi = sn;
|
|
17
17
|
oo.displayName = "Checkbox";
|
|
18
18
|
ro.displayName = "Fieldset";
|
|
19
|
-
const
|
|
19
|
+
const Ki = an;
|
|
20
20
|
function Oe(t) {
|
|
21
21
|
return (e = {}) => {
|
|
22
22
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
@@ -296,11 +296,11 @@ const lo = {
|
|
|
296
296
|
wide: /^[1234](\.)? kvartal/i
|
|
297
297
|
}, Ao = {
|
|
298
298
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
299
|
-
},
|
|
299
|
+
}, Mo = {
|
|
300
300
|
narrow: /^[jfmasond]/i,
|
|
301
301
|
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
|
|
302
302
|
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
|
|
303
|
-
},
|
|
303
|
+
}, Lo = {
|
|
304
304
|
narrow: [
|
|
305
305
|
/^j/i,
|
|
306
306
|
/^f/i,
|
|
@@ -329,12 +329,12 @@ const lo = {
|
|
|
329
329
|
/^n/i,
|
|
330
330
|
/^d/i
|
|
331
331
|
]
|
|
332
|
-
},
|
|
332
|
+
}, jo = {
|
|
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
|
+
}, Eo = {
|
|
338
338
|
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
339
339
|
}, Fo = {
|
|
340
340
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
@@ -370,15 +370,15 @@ const lo = {
|
|
|
370
370
|
valueCallback: (t) => t + 1
|
|
371
371
|
}),
|
|
372
372
|
month: De({
|
|
373
|
-
matchPatterns:
|
|
373
|
+
matchPatterns: Mo,
|
|
374
374
|
defaultMatchWidth: "wide",
|
|
375
|
-
parsePatterns:
|
|
375
|
+
parsePatterns: Lo,
|
|
376
376
|
defaultParseWidth: "any"
|
|
377
377
|
}),
|
|
378
378
|
day: De({
|
|
379
|
-
matchPatterns:
|
|
379
|
+
matchPatterns: jo,
|
|
380
380
|
defaultMatchWidth: "wide",
|
|
381
|
-
parsePatterns:
|
|
381
|
+
parsePatterns: Eo,
|
|
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__ */ I(
|
|
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 Lt = ({ title: t, ...e }) => /* @__PURE__ */ I(
|
|
428
428
|
"svg",
|
|
429
429
|
{
|
|
430
430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -449,22 +449,22 @@ const Mt = ({ title: t, ...e }) => /* @__PURE__ */ D(
|
|
|
449
449
|
]
|
|
450
450
|
}
|
|
451
451
|
);
|
|
452
|
-
|
|
453
|
-
const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Ro = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", $o = "_grid_10l5p_41",
|
|
452
|
+
Lt.displayName = "ChevronRightIcon";
|
|
453
|
+
const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Ro = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", $o = "_grid_10l5p_41", Wo = "_dayNameCell_10l5p_48", Ho = "_dateCell_10l5p_65", Uo = "_dateNumberContainer_10l5p_90", Oo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", oe = {
|
|
454
454
|
calendarContainer: Po,
|
|
455
455
|
calendarHeader: zo,
|
|
456
456
|
monthYear: Ro,
|
|
457
457
|
navigationButtons: Go,
|
|
458
458
|
grid: $o,
|
|
459
|
-
dayNameCell:
|
|
460
|
-
dateCell:
|
|
459
|
+
dayNameCell: Wo,
|
|
460
|
+
dateCell: Ho,
|
|
461
461
|
dateNumberContainer: Uo,
|
|
462
462
|
otherMonth: Oo,
|
|
463
463
|
selectedDate: Vo
|
|
464
464
|
}, Ko = (t) => {
|
|
465
465
|
const e = be(t), n = Dt(e, { locale: Te }), s = _t(n, 41);
|
|
466
|
-
return
|
|
467
|
-
}, kt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1),
|
|
466
|
+
return qn({ start: n, end: s });
|
|
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
|
|
@@ -479,98 +479,98 @@ const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Ro = "
|
|
|
479
479
|
);
|
|
480
480
|
J(() => {
|
|
481
481
|
if (e && Ue(e)) {
|
|
482
|
-
const
|
|
483
|
-
pt(
|
|
482
|
+
const m = be(e);
|
|
483
|
+
pt(m, i) || r(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
|
|
491
|
-
return Array.from({ length: 7 }).map((
|
|
492
|
-
const
|
|
493
|
-
return kt(
|
|
490
|
+
const m = Dt(/* @__PURE__ */ new Date(), { locale: Te });
|
|
491
|
+
return Array.from({ length: 7 }).map((S, M) => {
|
|
492
|
+
const A = we(_t(m, M), "EEEEEE", { locale: Te });
|
|
493
|
+
return kt(A);
|
|
494
494
|
});
|
|
495
495
|
}, []), h = re(() => {
|
|
496
|
-
l || r((
|
|
496
|
+
l || r((m) => be(On(m, 1)));
|
|
497
497
|
}, [l]), f = re(() => {
|
|
498
|
-
r((
|
|
498
|
+
r((m) => be(Vn(m, 1)));
|
|
499
499
|
}, []), g = re(
|
|
500
|
-
(
|
|
501
|
-
n && n(
|
|
500
|
+
(m) => {
|
|
501
|
+
n && n(m);
|
|
502
502
|
},
|
|
503
503
|
[n]
|
|
504
504
|
), u = re(
|
|
505
|
-
(
|
|
506
|
-
(
|
|
505
|
+
(m, S) => {
|
|
506
|
+
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(S));
|
|
507
507
|
},
|
|
508
508
|
[g]
|
|
509
|
-
), y = we(i, "MMMM", { locale: Te }), k = we(i, "yyyy", { locale: Te }),
|
|
510
|
-
return /* @__PURE__ */
|
|
509
|
+
), y = we(i, "MMMM", { locale: Te }), k = we(i, "yyyy", { locale: Te }), p = `${kt(y)} ${k}`;
|
|
510
|
+
return /* @__PURE__ */ I(
|
|
511
511
|
"div",
|
|
512
512
|
{
|
|
513
513
|
className: oe.calendarContainer,
|
|
514
514
|
"data-color": s,
|
|
515
515
|
"data-size": a,
|
|
516
516
|
children: [
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */ o("span", { className: oe.monthYear, children:
|
|
519
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ I("div", { className: oe.calendarHeader, children: [
|
|
518
|
+
/* @__PURE__ */ o("span", { className: oe.monthYear, children: p }),
|
|
519
|
+
/* @__PURE__ */ I("div", { className: oe.navigationButtons, children: [
|
|
520
520
|
/* @__PURE__ */ o(
|
|
521
|
-
|
|
521
|
+
Ye,
|
|
522
522
|
{
|
|
523
523
|
variant: "tertiary",
|
|
524
524
|
icon: !0,
|
|
525
525
|
onClick: h,
|
|
526
526
|
"aria-label": "Forrige måned",
|
|
527
527
|
disabled: l,
|
|
528
|
-
children: /* @__PURE__ */ o(
|
|
528
|
+
children: /* @__PURE__ */ o(Mt, {})
|
|
529
529
|
}
|
|
530
530
|
),
|
|
531
531
|
/* @__PURE__ */ o(
|
|
532
|
-
|
|
532
|
+
Ye,
|
|
533
533
|
{
|
|
534
534
|
variant: "tertiary",
|
|
535
535
|
icon: !0,
|
|
536
536
|
onClick: f,
|
|
537
537
|
"aria-label": "Neste måned",
|
|
538
|
-
children: /* @__PURE__ */ o(
|
|
538
|
+
children: /* @__PURE__ */ o(Lt, {})
|
|
539
539
|
}
|
|
540
540
|
)
|
|
541
541
|
] })
|
|
542
542
|
] }),
|
|
543
|
-
/* @__PURE__ */ o("div", { className: oe.grid, children: v.map((
|
|
544
|
-
/* @__PURE__ */ o("div", { className: oe.grid, children: c.map((
|
|
545
|
-
const
|
|
543
|
+
/* @__PURE__ */ o("div", { className: oe.grid, children: v.map((m) => /* @__PURE__ */ o("div", { className: oe.dayNameCell, children: m }, m)) }),
|
|
544
|
+
/* @__PURE__ */ o("div", { className: oe.grid, children: c.map((m) => {
|
|
545
|
+
const S = pt(m, i), M = e && Ue(e) && Kn(m, e), A = Yn(m), C = [
|
|
546
546
|
oe.dateCell,
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
S ? "" : oe.otherMonth,
|
|
548
|
+
M ? oe.selectedDate : "",
|
|
549
549
|
// Utheving basert på prop
|
|
550
|
-
|
|
550
|
+
A && !M ? oe.todayDate : ""
|
|
551
551
|
].filter(Boolean).join(" ");
|
|
552
552
|
return /* @__PURE__ */ o(
|
|
553
553
|
"div",
|
|
554
554
|
{
|
|
555
|
-
className:
|
|
556
|
-
onClick: () => g(
|
|
557
|
-
onKeyDown: (
|
|
555
|
+
className: C,
|
|
556
|
+
onClick: () => g(m),
|
|
557
|
+
onKeyDown: (w) => u(w, m),
|
|
558
558
|
role: "button",
|
|
559
559
|
tabIndex: 0,
|
|
560
|
-
"aria-pressed":
|
|
561
|
-
"aria-label": we(
|
|
562
|
-
children: /* @__PURE__ */ o("span", { className: oe.dateNumberContainer, children: we(
|
|
560
|
+
"aria-pressed": M ?? !1,
|
|
561
|
+
"aria-label": we(m, "PPP", { locale: Te }),
|
|
562
|
+
children: /* @__PURE__ */ o("span", { className: oe.dateNumberContainer, children: we(m, "d") })
|
|
563
563
|
},
|
|
564
|
-
|
|
564
|
+
m.toISOString()
|
|
565
565
|
);
|
|
566
566
|
}) })
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
};
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
fieldset:
|
|
571
|
+
Yo.displayName = "DatePicker";
|
|
572
|
+
const qo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7_21", Jo = "_inputWrapper_16fx7_30", Qo = "_inputWrapperError_16fx7_42", er = "_suffixButton_16fx7_80", tr = "_suffixButtonInteractive_16fx7_100", ke = {
|
|
573
|
+
fieldset: qo,
|
|
574
574
|
description: Zo,
|
|
575
575
|
error: Xo,
|
|
576
576
|
inputWrapper: Jo,
|
|
@@ -612,18 +612,18 @@ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7
|
|
|
612
612
|
name: u,
|
|
613
613
|
required: y,
|
|
614
614
|
disabled: k,
|
|
615
|
-
onClick:
|
|
616
|
-
onFocus:
|
|
615
|
+
onClick: p,
|
|
616
|
+
onFocus: m,
|
|
617
617
|
// Send ekstern onFocus videre
|
|
618
|
-
onBlur:
|
|
618
|
+
onBlur: S,
|
|
619
619
|
// Send ekstern onBlur videre
|
|
620
|
-
autoComplete:
|
|
621
|
-
"aria-label":
|
|
622
|
-
"aria-labelledby":
|
|
623
|
-
description:
|
|
624
|
-
error:
|
|
620
|
+
autoComplete: M = "off",
|
|
621
|
+
"aria-label": A,
|
|
622
|
+
"aria-labelledby": C,
|
|
623
|
+
description: w,
|
|
624
|
+
error: D,
|
|
625
625
|
// Bruk error-prop for styling
|
|
626
|
-
"data-color":
|
|
626
|
+
"data-color": j,
|
|
627
627
|
// <-- Destrukturering
|
|
628
628
|
"data-size": F,
|
|
629
629
|
// <-- Destrukturering
|
|
@@ -635,8 +635,8 @@ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7
|
|
|
635
635
|
);
|
|
636
636
|
const G = re(
|
|
637
637
|
(b) => {
|
|
638
|
-
const _ = vt(b),
|
|
639
|
-
return yt(
|
|
638
|
+
const _ = vt(b), E = bt(_);
|
|
639
|
+
return yt(E);
|
|
640
640
|
},
|
|
641
641
|
[]
|
|
642
642
|
), [$, B] = ne(
|
|
@@ -650,16 +650,16 @@ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7
|
|
|
650
650
|
}, [l, z, $, G]);
|
|
651
651
|
const O = re(
|
|
652
652
|
(b) => {
|
|
653
|
-
const _ = b.target,
|
|
653
|
+
const _ = b.target, E = _.value, K = $, q = vt(E).slice(0, 8), W = bt(q), x = yt(W);
|
|
654
654
|
let P = 0;
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
if (R.current && (B(
|
|
658
|
-
const
|
|
655
|
+
const H = W.length;
|
|
656
|
+
H <= 2 ? P = H : H <= 4 ? P = H + 1 : P = H + 2, P = Math.min(P, x.length), requestAnimationFrame(() => {
|
|
657
|
+
if (R.current && (B(x), R.current.value = x, R.current.setSelectionRange(P, P), (x !== K || z) && v)) {
|
|
658
|
+
const Y = {
|
|
659
659
|
...b,
|
|
660
|
-
target: { ..._, value:
|
|
660
|
+
target: { ..._, value: x }
|
|
661
661
|
};
|
|
662
|
-
v(
|
|
662
|
+
v(Y, x);
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
},
|
|
@@ -667,27 +667,27 @@ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7
|
|
|
667
667
|
), te = [ke.fieldset, i].filter(Boolean).join(" "), Q = [
|
|
668
668
|
ke.inputWrapper,
|
|
669
669
|
r,
|
|
670
|
-
|
|
670
|
+
D ? ke.inputWrapperError : ""
|
|
671
671
|
].filter(Boolean).join(" "), se = [
|
|
672
672
|
d
|
|
673
673
|
].filter(Boolean).join(" "), ee = [
|
|
674
674
|
ke.suffixButton,
|
|
675
675
|
a ? ke.suffixButtonInteractive : ""
|
|
676
676
|
].filter(Boolean).join(" ");
|
|
677
|
-
!n && !
|
|
678
|
-
const ie = n && typeof n == "string" ?
|
|
677
|
+
!n && !A && !C && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
678
|
+
const ie = n && typeof n == "string" ? C || `${g}-label` : void 0, ae = w ? `${g}-desc` : void 0, V = D ? `${g}-err` : void 0, ue = [ae, V].filter(Boolean).join(" ") || void 0;
|
|
679
679
|
return (
|
|
680
680
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
681
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ I(
|
|
682
682
|
"div",
|
|
683
683
|
{
|
|
684
684
|
className: te,
|
|
685
|
-
"data-color":
|
|
685
|
+
"data-color": j,
|
|
686
686
|
"data-size": F,
|
|
687
687
|
children: [
|
|
688
688
|
n && typeof n == "string" ? /* @__PURE__ */ o("label", { id: ie, htmlFor: g, children: n }) : n,
|
|
689
|
-
|
|
690
|
-
/* @__PURE__ */
|
|
689
|
+
w && /* @__PURE__ */ o("p", { id: ae, className: ke.description, children: w }),
|
|
690
|
+
/* @__PURE__ */ I("div", { className: Q, children: [
|
|
691
691
|
/* @__PURE__ */ o(
|
|
692
692
|
"input",
|
|
693
693
|
{
|
|
@@ -703,15 +703,15 @@ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7
|
|
|
703
703
|
name: u,
|
|
704
704
|
required: y,
|
|
705
705
|
disabled: k,
|
|
706
|
-
onClick:
|
|
706
|
+
onClick: p,
|
|
707
707
|
onChange: O,
|
|
708
|
-
onFocus:
|
|
709
|
-
onBlur:
|
|
710
|
-
autoComplete:
|
|
711
|
-
"aria-label":
|
|
708
|
+
onFocus: m,
|
|
709
|
+
onBlur: S,
|
|
710
|
+
autoComplete: M,
|
|
711
|
+
"aria-label": A,
|
|
712
712
|
"aria-labelledby": ie,
|
|
713
713
|
"aria-describedby": ue,
|
|
714
|
-
"aria-invalid": !!
|
|
714
|
+
"aria-invalid": !!D,
|
|
715
715
|
className: se,
|
|
716
716
|
...N
|
|
717
717
|
}
|
|
@@ -730,7 +730,7 @@ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7
|
|
|
730
730
|
}
|
|
731
731
|
)
|
|
732
732
|
] }),
|
|
733
|
-
|
|
733
|
+
D && /* @__PURE__ */ o("p", { id: V, className: ke.error, role: "alert", children: D })
|
|
734
734
|
]
|
|
735
735
|
}
|
|
736
736
|
)
|
|
@@ -770,7 +770,7 @@ function sr(t, e) {
|
|
|
770
770
|
function Qe(t) {
|
|
771
771
|
return typeof t == "number";
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function qe(t) {
|
|
774
774
|
return typeof t == "string";
|
|
775
775
|
}
|
|
776
776
|
function ze(t) {
|
|
@@ -796,28 +796,28 @@ function ir(t, e) {
|
|
|
796
796
|
function ar(t) {
|
|
797
797
|
return Math.round(t * 100) / 100;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
799
|
+
function Me(t) {
|
|
800
|
+
return Le(t).map(Number);
|
|
801
801
|
}
|
|
802
802
|
function le(t) {
|
|
803
|
-
return t[
|
|
803
|
+
return t[Ee(t)];
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Ee(t) {
|
|
806
806
|
return Math.max(0, t.length - 1);
|
|
807
807
|
}
|
|
808
808
|
function tt(t, e) {
|
|
809
|
-
return e ===
|
|
809
|
+
return e === Ee(t);
|
|
810
810
|
}
|
|
811
811
|
function Ct(t, e = 0) {
|
|
812
812
|
return Array.from(Array(t), (n, s) => e + s);
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Le(t) {
|
|
815
815
|
return Object.keys(t);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
return [t, e].reduce((n, s) => (
|
|
817
|
+
function jt(t, e) {
|
|
818
|
+
return [t, e].reduce((n, s) => (Le(s).forEach((a) => {
|
|
819
819
|
const i = n[a], r = s[a], d = xt(i) && xt(r);
|
|
820
|
-
n[a] = d ?
|
|
820
|
+
n[a] = d ? jt(i, r) : r;
|
|
821
821
|
}), n), {});
|
|
822
822
|
}
|
|
823
823
|
function Ze(t, e) {
|
|
@@ -839,13 +839,13 @@ function lr(t, e) {
|
|
|
839
839
|
return e - l;
|
|
840
840
|
}
|
|
841
841
|
function r(l, c) {
|
|
842
|
-
return
|
|
842
|
+
return qe(t) ? n[t](l) : t(e, l, c);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
measure: r
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function je() {
|
|
849
849
|
let t = [];
|
|
850
850
|
function e(a, i, r, d = {
|
|
851
851
|
passive: !0
|
|
@@ -869,7 +869,7 @@ function Ee() {
|
|
|
869
869
|
return s;
|
|
870
870
|
}
|
|
871
871
|
function dr(t, e, n, s) {
|
|
872
|
-
const a =
|
|
872
|
+
const a = je(), i = 1e3 / 60;
|
|
873
873
|
let r = null, d = 0, l = 0;
|
|
874
874
|
function c() {
|
|
875
875
|
a.add(t, "visibilitychange", () => {
|
|
@@ -882,11 +882,11 @@ function dr(t, e, n, s) {
|
|
|
882
882
|
function h(k) {
|
|
883
883
|
if (!l) return;
|
|
884
884
|
r || (r = k, n(), n());
|
|
885
|
-
const
|
|
886
|
-
for (r = k, d +=
|
|
885
|
+
const p = k - r;
|
|
886
|
+
for (r = k, d += p; d >= i; )
|
|
887
887
|
n(), d -= i;
|
|
888
|
-
const
|
|
889
|
-
s(
|
|
888
|
+
const m = d / i;
|
|
889
|
+
s(m), l && (l = e.requestAnimationFrame(h));
|
|
890
890
|
}
|
|
891
891
|
function f() {
|
|
892
892
|
l || (l = e.requestAnimationFrame(h));
|
|
@@ -961,7 +961,7 @@ function ye(t = 0, e = 0) {
|
|
|
961
961
|
removeOffset: d
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Et(t, e, n) {
|
|
965
965
|
const {
|
|
966
966
|
constrain: s
|
|
967
967
|
} = ye(0, t), a = t + 1;
|
|
@@ -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 Et(t, d(), n);
|
|
983
983
|
}
|
|
984
984
|
const h = {
|
|
985
985
|
get: d,
|
|
@@ -989,13 +989,13 @@ function jt(t, e, n) {
|
|
|
989
989
|
};
|
|
990
990
|
return h;
|
|
991
991
|
}
|
|
992
|
-
function ur(t, e, n, s, a, i, r, d, l, c, v, h, f, g, u, y, k,
|
|
992
|
+
function ur(t, e, n, s, a, i, r, d, l, c, v, h, f, g, u, y, k, p, m) {
|
|
993
993
|
const {
|
|
994
|
-
cross:
|
|
995
|
-
direction:
|
|
996
|
-
} = t,
|
|
994
|
+
cross: S,
|
|
995
|
+
direction: M
|
|
996
|
+
} = t, A = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
997
997
|
passive: !1
|
|
998
|
-
},
|
|
998
|
+
}, w = je(), D = je(), j = ye(50, 225).constrain(g.measure(20)), F = {
|
|
999
999
|
mouse: 300,
|
|
1000
1000
|
touch: 400
|
|
1001
1001
|
}, N = {
|
|
@@ -1003,60 +1003,60 @@ function ur(t, e, n, s, a, i, r, d, l, c, v, h, f, g, u, y, k, m, p) {
|
|
|
1003
1003
|
touch: 600
|
|
1004
1004
|
}, z = u ? 43 : 25;
|
|
1005
1005
|
let R = !1, G = 0, $ = 0, B = !1, O = !1, te = !1, Q = !1;
|
|
1006
|
-
function se(
|
|
1007
|
-
if (!
|
|
1008
|
-
function P(
|
|
1009
|
-
(ze(
|
|
1006
|
+
function se(x) {
|
|
1007
|
+
if (!m) return;
|
|
1008
|
+
function P(Y) {
|
|
1009
|
+
(ze(m) || m(x, Y)) && b(Y);
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
},
|
|
1014
|
-
}).add(
|
|
1011
|
+
const H = e;
|
|
1012
|
+
w.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", E).add(H, "contextmenu", E).add(H, "click", K, !0);
|
|
1015
1015
|
}
|
|
1016
1016
|
function ee() {
|
|
1017
|
-
|
|
1017
|
+
w.clear(), D.clear();
|
|
1018
1018
|
}
|
|
1019
1019
|
function ie() {
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1020
|
+
const x = Q ? n : e;
|
|
1021
|
+
D.add(x, "touchmove", _, C).add(x, "touchend", E).add(x, "mousemove", _, C).add(x, "mouseup", E);
|
|
1022
1022
|
}
|
|
1023
|
-
function ae(
|
|
1024
|
-
const P =
|
|
1025
|
-
return
|
|
1023
|
+
function ae(x) {
|
|
1024
|
+
const P = x.nodeName || "";
|
|
1025
|
+
return A.includes(P);
|
|
1026
1026
|
}
|
|
1027
1027
|
function V() {
|
|
1028
1028
|
return (u ? N : F)[Q ? "mouse" : "touch"];
|
|
1029
1029
|
}
|
|
1030
|
-
function ue(
|
|
1031
|
-
const
|
|
1032
|
-
return u || U(
|
|
1030
|
+
function ue(x, P) {
|
|
1031
|
+
const H = h.add(et(x) * -1), Y = v.byDistance(x, !u).distance;
|
|
1032
|
+
return u || U(x) < j ? Y : k && P ? Y * 0.5 : v.byIndex(H.get(), 0).distance;
|
|
1033
1033
|
}
|
|
1034
|
-
function b(
|
|
1035
|
-
const P = Ze(
|
|
1036
|
-
Q = P, te = u && P && !
|
|
1034
|
+
function b(x) {
|
|
1035
|
+
const P = Ze(x, s);
|
|
1036
|
+
Q = P, te = u && P && !x.buttons && R, R = Ae(a.get(), r.get()) >= 2, !(P && x.button !== 0) && (ae(x.target) || (B = !0, i.pointerDown(x), c.useFriction(0).useDuration(0), a.set(r), ie(), G = i.readPoint(x), $ = i.readPoint(x, S), f.emit("pointerDown")));
|
|
1037
1037
|
}
|
|
1038
|
-
function _(
|
|
1039
|
-
if (!Ze(
|
|
1040
|
-
const
|
|
1041
|
-
if (!O && !Q && (!
|
|
1042
|
-
return
|
|
1043
|
-
const he = i.pointerMove(
|
|
1044
|
-
de > y && (te = !0), c.useFriction(0.3).useDuration(0.75), d.start(), a.add(
|
|
1038
|
+
function _(x) {
|
|
1039
|
+
if (!Ze(x, s) && x.touches.length >= 2) return E(x);
|
|
1040
|
+
const H = i.readPoint(x), Y = i.readPoint(x, S), de = Ae(H, G), me = Ae(Y, $);
|
|
1041
|
+
if (!O && !Q && (!x.cancelable || (O = de > me, !O)))
|
|
1042
|
+
return E(x);
|
|
1043
|
+
const he = i.pointerMove(x);
|
|
1044
|
+
de > y && (te = !0), c.useFriction(0.3).useDuration(0.75), d.start(), a.add(M(he)), x.preventDefault();
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
const
|
|
1048
|
-
O = !1, B = !1,
|
|
1046
|
+
function E(x) {
|
|
1047
|
+
const H = v.byDistance(0, !1).index !== h.get(), Y = i.pointerUp(x) * V(), de = ue(M(Y), H), me = ir(Y, de), he = z - 10 * me, pe = p + me / 50;
|
|
1048
|
+
O = !1, B = !1, D.clear(), c.useDuration(he).useFriction(pe), l.distance(de, !u), Q = !1, f.emit("pointerUp");
|
|
1049
1049
|
}
|
|
1050
|
-
function K(
|
|
1051
|
-
te && (
|
|
1050
|
+
function K(x) {
|
|
1051
|
+
te && (x.stopPropagation(), x.preventDefault(), te = !1);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function q() {
|
|
1054
1054
|
return B;
|
|
1055
1055
|
}
|
|
1056
1056
|
return {
|
|
1057
1057
|
init: se,
|
|
1058
1058
|
destroy: ee,
|
|
1059
|
-
pointerDown:
|
|
1059
|
+
pointerDown: q
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
1062
|
function mr(t, e) {
|
|
@@ -1125,20 +1125,20 @@ function hr(t, e, n, s, a, i, r) {
|
|
|
1125
1125
|
function g(k) {
|
|
1126
1126
|
if (!i) return;
|
|
1127
1127
|
c = f(t), v = s.map(f);
|
|
1128
|
-
function m
|
|
1129
|
-
for (const
|
|
1128
|
+
function p(m) {
|
|
1129
|
+
for (const S of m) {
|
|
1130
1130
|
if (h) return;
|
|
1131
|
-
const
|
|
1132
|
-
if (U(
|
|
1131
|
+
const M = S.target === t, A = s.indexOf(S.target), C = M ? c : v[A], w = f(M ? t : s[A]);
|
|
1132
|
+
if (U(w - C) >= 0.5) {
|
|
1133
1133
|
k.reInit(), e.emit("resize");
|
|
1134
1134
|
break;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
l = new ResizeObserver((
|
|
1139
|
-
(ze(i) || i(k,
|
|
1138
|
+
l = new ResizeObserver((m) => {
|
|
1139
|
+
(ze(i) || i(k, m)) && p(m);
|
|
1140
1140
|
}), n.requestAnimationFrame(() => {
|
|
1141
|
-
d.forEach((
|
|
1141
|
+
d.forEach((m) => l.observe(m));
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
1144
|
function u() {
|
|
@@ -1152,13 +1152,13 @@ function hr(t, e, n, s, a, i, r) {
|
|
|
1152
1152
|
function fr(t, e, n, s, a, i) {
|
|
1153
1153
|
let r = 0, d = 0, l = a, c = i, v = t.get(), h = 0;
|
|
1154
1154
|
function f() {
|
|
1155
|
-
const
|
|
1156
|
-
let
|
|
1157
|
-
return
|
|
1155
|
+
const C = s.get() - t.get(), w = !l;
|
|
1156
|
+
let D = 0;
|
|
1157
|
+
return w ? (r = 0, n.set(s), t.set(s), D = C) : (n.set(t), r += C / l, r *= c, v += r, t.add(r), D = v - h), d = et(D), h = v, A;
|
|
1158
1158
|
}
|
|
1159
1159
|
function g() {
|
|
1160
|
-
const
|
|
1161
|
-
return U(
|
|
1160
|
+
const C = s.get() - e.get();
|
|
1161
|
+
return U(C) < 1e-3;
|
|
1162
1162
|
}
|
|
1163
1163
|
function u() {
|
|
1164
1164
|
return l;
|
|
@@ -1169,30 +1169,30 @@ function fr(t, e, n, s, a, i) {
|
|
|
1169
1169
|
function k() {
|
|
1170
1170
|
return r;
|
|
1171
1171
|
}
|
|
1172
|
-
function m() {
|
|
1173
|
-
return T(a);
|
|
1174
|
-
}
|
|
1175
1172
|
function p() {
|
|
1176
|
-
return
|
|
1173
|
+
return S(a);
|
|
1177
1174
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return
|
|
1175
|
+
function m() {
|
|
1176
|
+
return M(i);
|
|
1177
|
+
}
|
|
1178
|
+
function S(C) {
|
|
1179
|
+
return l = C, A;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return c =
|
|
1181
|
+
function M(C) {
|
|
1182
|
+
return c = C, A;
|
|
1183
1183
|
}
|
|
1184
|
-
const
|
|
1184
|
+
const A = {
|
|
1185
1185
|
direction: y,
|
|
1186
1186
|
duration: u,
|
|
1187
1187
|
velocity: k,
|
|
1188
1188
|
seek: f,
|
|
1189
1189
|
settled: g,
|
|
1190
|
-
useBaseFriction:
|
|
1191
|
-
useBaseDuration:
|
|
1192
|
-
useFriction:
|
|
1193
|
-
useDuration:
|
|
1190
|
+
useBaseFriction: m,
|
|
1191
|
+
useBaseDuration: p,
|
|
1192
|
+
useFriction: M,
|
|
1193
|
+
useDuration: S
|
|
1194
1194
|
};
|
|
1195
|
-
return
|
|
1195
|
+
return A;
|
|
1196
1196
|
}
|
|
1197
1197
|
function kr(t, e, n, s, a) {
|
|
1198
1198
|
const i = a.measure(10), r = a.measure(50), d = ye(0.1, 0.99);
|
|
@@ -1202,8 +1202,8 @@ function kr(t, e, n, s, a) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
function v(g) {
|
|
1204
1204
|
if (!c()) return;
|
|
1205
|
-
const u = t.reachedMin(e.get()) ? "min" : "max", y = U(t[u] - e.get()), k = n.get() - e.get(),
|
|
1206
|
-
n.subtract(k *
|
|
1205
|
+
const u = t.reachedMin(e.get()) ? "min" : "max", y = U(t[u] - e.get()), k = n.get() - e.get(), p = d.constrain(y / r);
|
|
1206
|
+
n.subtract(k * p), !g && U(k) < i && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
|
|
1207
1207
|
}
|
|
1208
1208
|
function h(g) {
|
|
1209
1209
|
l = !g;
|
|
@@ -1220,16 +1220,16 @@ function yr(t, e, n, s, a) {
|
|
|
1220
1220
|
return Ae(u, y) <= 1;
|
|
1221
1221
|
}
|
|
1222
1222
|
function v() {
|
|
1223
|
-
const u = r[0], y = le(r), k = r.lastIndexOf(u),
|
|
1224
|
-
return ye(k,
|
|
1223
|
+
const u = r[0], y = le(r), k = r.lastIndexOf(u), p = r.indexOf(y) + 1;
|
|
1224
|
+
return ye(k, p);
|
|
1225
1225
|
}
|
|
1226
1226
|
function h() {
|
|
1227
1227
|
return n.map((u, y) => {
|
|
1228
1228
|
const {
|
|
1229
1229
|
min: k,
|
|
1230
|
-
max:
|
|
1231
|
-
} = i,
|
|
1232
|
-
return
|
|
1230
|
+
max: p
|
|
1231
|
+
} = i, m = i.constrain(u), S = !y, M = tt(n, y);
|
|
1232
|
+
return S ? p : M || c(k, m) ? k : c(p, m) ? p : m;
|
|
1233
1233
|
}).map((u) => parseFloat(u.toFixed(3)));
|
|
1234
1234
|
}
|
|
1235
1235
|
function f() {
|
|
@@ -1313,14 +1313,14 @@ function xr(t, e, n, s, a, i) {
|
|
|
1313
1313
|
function v() {
|
|
1314
1314
|
const f = r(i), g = !t || e === "keepSnaps";
|
|
1315
1315
|
return n.length === 1 ? [i] : g ? f : f.slice(d, l).map((u, y, k) => {
|
|
1316
|
-
const
|
|
1317
|
-
if (m) {
|
|
1318
|
-
const T = le(k[0]) + 1;
|
|
1319
|
-
return Ct(T);
|
|
1320
|
-
}
|
|
1316
|
+
const p = !y, m = tt(k, y);
|
|
1321
1317
|
if (p) {
|
|
1322
|
-
const
|
|
1323
|
-
return Ct(
|
|
1318
|
+
const S = le(k[0]) + 1;
|
|
1319
|
+
return Ct(S);
|
|
1320
|
+
}
|
|
1321
|
+
if (m) {
|
|
1322
|
+
const S = Ee(i) - le(k)[0] + 1;
|
|
1323
|
+
return Ct(S, le(k)[0]);
|
|
1324
1324
|
}
|
|
1325
1325
|
return u;
|
|
1326
1326
|
});
|
|
@@ -1339,14 +1339,14 @@ function Cr(t, e, n, s, a) {
|
|
|
1339
1339
|
return u.concat().sort((y, k) => U(y) - U(k))[0];
|
|
1340
1340
|
}
|
|
1341
1341
|
function c(u) {
|
|
1342
|
-
const y = t ? r(u) : d(u), k = e.map((
|
|
1343
|
-
diff: v(
|
|
1344
|
-
index:
|
|
1345
|
-
})).sort((
|
|
1346
|
-
index:
|
|
1342
|
+
const y = t ? r(u) : d(u), k = e.map((m, S) => ({
|
|
1343
|
+
diff: v(m - y, 0),
|
|
1344
|
+
index: S
|
|
1345
|
+
})).sort((m, S) => U(m.diff) - U(S.diff)), {
|
|
1346
|
+
index: p
|
|
1347
1347
|
} = k[0];
|
|
1348
1348
|
return {
|
|
1349
|
-
index:
|
|
1349
|
+
index: p,
|
|
1350
1350
|
distance: y
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
@@ -1354,29 +1354,29 @@ function Cr(t, e, n, s, a) {
|
|
|
1354
1354
|
const k = [u, u + n, u - n];
|
|
1355
1355
|
if (!t) return u;
|
|
1356
1356
|
if (!y) return l(k);
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1357
|
+
const p = k.filter((m) => et(m) === y);
|
|
1358
|
+
return p.length ? l(p) : le(k) - n;
|
|
1359
1359
|
}
|
|
1360
1360
|
function h(u, y) {
|
|
1361
|
-
const k = e[u] - a.get(),
|
|
1361
|
+
const k = e[u] - a.get(), p = v(k, y);
|
|
1362
1362
|
return {
|
|
1363
1363
|
index: u,
|
|
1364
|
-
distance:
|
|
1364
|
+
distance: p
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
1367
|
function f(u, y) {
|
|
1368
1368
|
const k = a.get() + u, {
|
|
1369
|
-
index:
|
|
1370
|
-
distance:
|
|
1371
|
-
} = c(k),
|
|
1372
|
-
if (!y ||
|
|
1373
|
-
index:
|
|
1369
|
+
index: p,
|
|
1370
|
+
distance: m
|
|
1371
|
+
} = c(k), S = !t && i(k);
|
|
1372
|
+
if (!y || S) return {
|
|
1373
|
+
index: p,
|
|
1374
1374
|
distance: u
|
|
1375
1375
|
};
|
|
1376
|
-
const
|
|
1376
|
+
const M = e[p] - m, A = u + v(M, 0);
|
|
1377
1377
|
return {
|
|
1378
|
-
index:
|
|
1379
|
-
distance:
|
|
1378
|
+
index: p,
|
|
1379
|
+
distance: A
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
return {
|
|
@@ -1414,12 +1414,12 @@ function Ir(t, e, n, s, a, i, r, d) {
|
|
|
1414
1414
|
function u(y) {
|
|
1415
1415
|
if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
|
|
1416
1416
|
r.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
1417
|
-
const
|
|
1418
|
-
Qe(
|
|
1417
|
+
const m = n.findIndex((S) => S.includes(y));
|
|
1418
|
+
Qe(m) && (a.useDuration(0), s.index(m, 0), r.emit("slideFocus"));
|
|
1419
1419
|
}
|
|
1420
1420
|
i.add(document, "keydown", h, !1), e.forEach((y, k) => {
|
|
1421
|
-
i.add(y, "focus", (
|
|
1422
|
-
(ze(d) || d(g,
|
|
1421
|
+
i.add(y, "focus", (p) => {
|
|
1422
|
+
(ze(d) || d(g, p)) && u(k);
|
|
1423
1423
|
}, l);
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
@@ -1481,23 +1481,23 @@ function Ft(t, e) {
|
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
1483
|
function Dr(t, e, n, s, a, i, r, d, l) {
|
|
1484
|
-
const v =
|
|
1485
|
-
function g(
|
|
1486
|
-
return
|
|
1484
|
+
const v = Me(a), h = Me(a).reverse(), f = p().concat(m());
|
|
1485
|
+
function g(w, D) {
|
|
1486
|
+
return w.reduce((j, F) => j - a[F], D);
|
|
1487
1487
|
}
|
|
1488
|
-
function u(
|
|
1489
|
-
return
|
|
1488
|
+
function u(w, D) {
|
|
1489
|
+
return w.reduce((j, F) => g(j, D) > 0 ? j.concat([F]) : j, []);
|
|
1490
1490
|
}
|
|
1491
|
-
function y(
|
|
1492
|
-
return i.map((
|
|
1493
|
-
start:
|
|
1494
|
-
end:
|
|
1491
|
+
function y(w) {
|
|
1492
|
+
return i.map((D, j) => ({
|
|
1493
|
+
start: D - s[j] + 0.5 + w,
|
|
1494
|
+
end: D + e - 0.5 + w
|
|
1495
1495
|
}));
|
|
1496
1496
|
}
|
|
1497
|
-
function k(
|
|
1498
|
-
const F = y(
|
|
1499
|
-
return
|
|
1500
|
-
const z =
|
|
1497
|
+
function k(w, D, j) {
|
|
1498
|
+
const F = y(D);
|
|
1499
|
+
return w.map((N) => {
|
|
1500
|
+
const z = j ? 0 : -n, R = j ? n : 0, G = j ? "end" : "start", $ = F[N][G];
|
|
1501
1501
|
return {
|
|
1502
1502
|
index: N,
|
|
1503
1503
|
loopPoint: $,
|
|
@@ -1507,39 +1507,39 @@ function Dr(t, e, n, s, a, i, r, d, l) {
|
|
|
1507
1507
|
};
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
|
-
function m() {
|
|
1511
|
-
const I = r[0], w = u(h, I);
|
|
1512
|
-
return k(w, n, !1);
|
|
1513
|
-
}
|
|
1514
1510
|
function p() {
|
|
1515
|
-
const
|
|
1516
|
-
return k(
|
|
1511
|
+
const w = r[0], D = u(h, w);
|
|
1512
|
+
return k(D, n, !1);
|
|
1513
|
+
}
|
|
1514
|
+
function m() {
|
|
1515
|
+
const w = e - r[0] - 1, D = u(v, w);
|
|
1516
|
+
return k(D, -n, !0);
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function S() {
|
|
1519
1519
|
return f.every(({
|
|
1520
|
-
index:
|
|
1520
|
+
index: w
|
|
1521
1521
|
}) => {
|
|
1522
|
-
const
|
|
1523
|
-
return g(
|
|
1522
|
+
const D = v.filter((j) => j !== w);
|
|
1523
|
+
return g(D, e) <= 0.1;
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
f.forEach((
|
|
1526
|
+
function M() {
|
|
1527
|
+
f.forEach((w) => {
|
|
1528
1528
|
const {
|
|
1529
|
-
target:
|
|
1530
|
-
translate:
|
|
1529
|
+
target: D,
|
|
1530
|
+
translate: j,
|
|
1531
1531
|
slideLocation: F
|
|
1532
|
-
} =
|
|
1533
|
-
N !== F.get() && (
|
|
1532
|
+
} = w, N = D();
|
|
1533
|
+
N !== F.get() && (j.to(N), F.set(N));
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
f.forEach((
|
|
1536
|
+
function A() {
|
|
1537
|
+
f.forEach((w) => w.translate.clear());
|
|
1538
1538
|
}
|
|
1539
1539
|
return {
|
|
1540
|
-
canLoop:
|
|
1541
|
-
clear:
|
|
1542
|
-
loop:
|
|
1540
|
+
canLoop: S,
|
|
1541
|
+
clear: A,
|
|
1542
|
+
loop: M,
|
|
1543
1543
|
loopPoints: f
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
@@ -1586,11 +1586,11 @@ function Ar(t, e, n, s) {
|
|
|
1586
1586
|
d && d.disconnect(), l = !0;
|
|
1587
1587
|
}
|
|
1588
1588
|
function h(u) {
|
|
1589
|
-
return
|
|
1590
|
-
const
|
|
1591
|
-
isIntersecting:
|
|
1592
|
-
} = a[
|
|
1593
|
-
return (u &&
|
|
1589
|
+
return Le(a).reduce((y, k) => {
|
|
1590
|
+
const p = parseInt(k), {
|
|
1591
|
+
isIntersecting: m
|
|
1592
|
+
} = a[p];
|
|
1593
|
+
return (u && m || !u && !m) && y.push(p), y;
|
|
1594
1594
|
}, []);
|
|
1595
1595
|
}
|
|
1596
1596
|
function f(u = !0) {
|
|
@@ -1605,7 +1605,7 @@ function Ar(t, e, n, s) {
|
|
|
1605
1605
|
get: f
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function Mr(t, e, n, s, a, i) {
|
|
1609
1609
|
const {
|
|
1610
1610
|
measureSize: r,
|
|
1611
1611
|
startEdge: d,
|
|
@@ -1613,18 +1613,18 @@ function Lr(t, e, n, s, a, i) {
|
|
|
1613
1613
|
} = t, c = n[0] && a, v = u(), h = y(), f = n.map(r), g = k();
|
|
1614
1614
|
function u() {
|
|
1615
1615
|
if (!c) return 0;
|
|
1616
|
-
const
|
|
1617
|
-
return U(e[d] -
|
|
1616
|
+
const m = n[0];
|
|
1617
|
+
return U(e[d] - m[d]);
|
|
1618
1618
|
}
|
|
1619
1619
|
function y() {
|
|
1620
1620
|
if (!c) return 0;
|
|
1621
|
-
const
|
|
1622
|
-
return parseFloat(
|
|
1621
|
+
const m = i.getComputedStyle(le(s));
|
|
1622
|
+
return parseFloat(m.getPropertyValue(`margin-${l}`));
|
|
1623
1623
|
}
|
|
1624
1624
|
function k() {
|
|
1625
|
-
return n.map((
|
|
1626
|
-
const
|
|
1627
|
-
return
|
|
1625
|
+
return n.map((m, S, M) => {
|
|
1626
|
+
const A = !S, C = tt(M, S);
|
|
1627
|
+
return A ? f[S] + v : C ? f[S] + h : M[S + 1][d] - m[d];
|
|
1628
1628
|
}).map(U);
|
|
1629
1629
|
}
|
|
1630
1630
|
return {
|
|
@@ -1634,32 +1634,32 @@ function Lr(t, e, n, s, a, i) {
|
|
|
1634
1634
|
endGap: h
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function Lr(t, e, n, s, a, i, r, d, l) {
|
|
1638
1638
|
const {
|
|
1639
1639
|
startEdge: c,
|
|
1640
1640
|
endEdge: v,
|
|
1641
1641
|
direction: h
|
|
1642
1642
|
} = t, f = Qe(n);
|
|
1643
|
-
function g(
|
|
1644
|
-
return
|
|
1645
|
-
}
|
|
1646
|
-
function u(
|
|
1647
|
-
return
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
1650
|
-
}, []).map((
|
|
1651
|
-
const
|
|
1652
|
-
return
|
|
1643
|
+
function g(p, m) {
|
|
1644
|
+
return Me(p).filter((S) => S % m === 0).map((S) => p.slice(S, S + m));
|
|
1645
|
+
}
|
|
1646
|
+
function u(p) {
|
|
1647
|
+
return p.length ? Me(p).reduce((m, S, M) => {
|
|
1648
|
+
const A = le(m) || 0, C = A === 0, w = S === Ee(p), D = a[c] - i[A][c], j = a[c] - i[S][v], F = !s && C ? h(r) : 0, N = !s && w ? h(d) : 0, z = U(j - N - (D + F));
|
|
1649
|
+
return M && z > e + l && m.push(S), w && m.push(p.length), m;
|
|
1650
|
+
}, []).map((m, S, M) => {
|
|
1651
|
+
const A = Math.max(M[S - 1] || 0);
|
|
1652
|
+
return p.slice(A, m);
|
|
1653
1653
|
}) : [];
|
|
1654
1654
|
}
|
|
1655
|
-
function y(
|
|
1656
|
-
return f ? g(
|
|
1655
|
+
function y(p) {
|
|
1656
|
+
return f ? g(p, n) : u(p);
|
|
1657
1657
|
}
|
|
1658
1658
|
return {
|
|
1659
1659
|
groupSlides: y
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function jr(t, e, n, s, a, i, r) {
|
|
1663
1663
|
const {
|
|
1664
1664
|
align: d,
|
|
1665
1665
|
axis: l,
|
|
@@ -1671,78 +1671,78 @@ function Er(t, e, n, s, a, i, r) {
|
|
|
1671
1671
|
dragThreshold: u,
|
|
1672
1672
|
inViewThreshold: y,
|
|
1673
1673
|
slidesToScroll: k,
|
|
1674
|
-
skipSnaps:
|
|
1675
|
-
containScroll:
|
|
1676
|
-
watchResize:
|
|
1677
|
-
watchSlides:
|
|
1678
|
-
watchDrag:
|
|
1679
|
-
watchFocus:
|
|
1680
|
-
} = i,
|
|
1674
|
+
skipSnaps: p,
|
|
1675
|
+
containScroll: m,
|
|
1676
|
+
watchResize: S,
|
|
1677
|
+
watchSlides: M,
|
|
1678
|
+
watchDrag: A,
|
|
1679
|
+
watchFocus: C
|
|
1680
|
+
} = i, w = 2, D = pr(), j = D.measure(e), F = n.map(D.measure), N = cr(l, c), z = N.measureSize(j), R = gr(z), G = lr(d, z), $ = !h && !!m, B = h || !!m, {
|
|
1681
1681
|
slideSizes: O,
|
|
1682
1682
|
slideSizesWithGaps: te,
|
|
1683
1683
|
startGap: Q,
|
|
1684
1684
|
endGap: se
|
|
1685
|
-
} =
|
|
1685
|
+
} = Mr(N, j, F, n, B, a), ee = Lr(N, z, k, h, j, F, Q, se, w), {
|
|
1686
1686
|
snaps: ie,
|
|
1687
1687
|
snapsAligned: ae
|
|
1688
|
-
} = Sr(N, G,
|
|
1688
|
+
} = Sr(N, G, j, F, ee), V = -le(ie) + le(te), {
|
|
1689
1689
|
snapsContained: ue,
|
|
1690
1690
|
scrollContainLimit: b
|
|
1691
|
-
} = yr(z, V, ae,
|
|
1692
|
-
limit:
|
|
1693
|
-
} = vr(V, _, h), K =
|
|
1691
|
+
} = yr(z, V, ae, m, w), _ = $ ? ue : ae, {
|
|
1692
|
+
limit: E
|
|
1693
|
+
} = vr(V, _, h), K = Et(Ee(_), v, h), q = K.clone(), W = Me(n), x = ({
|
|
1694
1694
|
dragHandler: ve,
|
|
1695
|
-
scrollBody:
|
|
1696
|
-
scrollBounds:
|
|
1695
|
+
scrollBody: We,
|
|
1696
|
+
scrollBounds: He,
|
|
1697
1697
|
options: {
|
|
1698
1698
|
loop: Fe
|
|
1699
1699
|
}
|
|
1700
1700
|
}) => {
|
|
1701
|
-
Fe ||
|
|
1701
|
+
Fe || He.constrain(ve.pointerDown()), We.seek();
|
|
1702
1702
|
}, P = ({
|
|
1703
1703
|
scrollBody: ve,
|
|
1704
|
-
translate:
|
|
1705
|
-
location:
|
|
1704
|
+
translate: We,
|
|
1705
|
+
location: He,
|
|
1706
1706
|
offsetLocation: Fe,
|
|
1707
1707
|
previousLocation: zt,
|
|
1708
1708
|
scrollLooper: Rt,
|
|
1709
1709
|
slideLooper: Gt,
|
|
1710
1710
|
dragHandler: $t,
|
|
1711
|
-
animation:
|
|
1711
|
+
animation: Wt,
|
|
1712
1712
|
eventHandler: at,
|
|
1713
|
-
scrollBounds:
|
|
1713
|
+
scrollBounds: Ht,
|
|
1714
1714
|
options: {
|
|
1715
1715
|
loop: lt
|
|
1716
1716
|
}
|
|
1717
1717
|
}, dt) => {
|
|
1718
|
-
const ct = ve.settled(), Ut = !
|
|
1719
|
-
mt &&
|
|
1720
|
-
const Ot =
|
|
1721
|
-
Fe.set(Ot), lt && (Rt.loop(ve.direction()), Gt.loop()),
|
|
1722
|
-
},
|
|
1718
|
+
const ct = ve.settled(), Ut = !Ht.shouldConstrain(), ut = lt ? ct : ct && Ut, mt = ut && !$t.pointerDown();
|
|
1719
|
+
mt && Wt.stop();
|
|
1720
|
+
const Ot = He.get() * dt + zt.get() * (1 - dt);
|
|
1721
|
+
Fe.set(Ot), lt && (Rt.loop(ve.direction()), Gt.loop()), We.to(Fe.get()), mt && at.emit("settle"), ut || at.emit("scroll");
|
|
1722
|
+
}, H = dr(s, a, () => x($e), (ve) => P($e, ve)), Y = 0.68, de = _[K.get()], me = _e(de), he = _e(de), pe = _e(de), fe = _e(de), Ce = fr(me, pe, he, fe, f, Y), Re = Cr(h, _, V, E, fe), Ge = wr(H, K, q, Ce, Re, fe, r), rt = Tr(E), st = je(), Bt = Ar(e, n, r, y), {
|
|
1723
1723
|
slideRegistry: it
|
|
1724
|
-
} = xr($,
|
|
1724
|
+
} = xr($, m, _, b, ee, W), Pt = Ir(t, n, it, Ge, Ce, st, r, C), $e = {
|
|
1725
1725
|
ownerDocument: s,
|
|
1726
1726
|
ownerWindow: a,
|
|
1727
1727
|
eventHandler: r,
|
|
1728
|
-
containerRect:
|
|
1728
|
+
containerRect: j,
|
|
1729
1729
|
slideRects: F,
|
|
1730
|
-
animation:
|
|
1730
|
+
animation: H,
|
|
1731
1731
|
axis: N,
|
|
1732
|
-
dragHandler: ur(N, t, s, a, fe, mr(N, a), me,
|
|
1732
|
+
dragHandler: ur(N, t, s, a, fe, mr(N, a), me, H, Ge, Ce, Re, K, r, R, g, u, p, Y, A),
|
|
1733
1733
|
eventStore: st,
|
|
1734
1734
|
percentOfView: R,
|
|
1735
1735
|
index: K,
|
|
1736
|
-
indexPrevious:
|
|
1737
|
-
limit:
|
|
1736
|
+
indexPrevious: q,
|
|
1737
|
+
limit: E,
|
|
1738
1738
|
location: me,
|
|
1739
1739
|
offsetLocation: pe,
|
|
1740
1740
|
previousLocation: he,
|
|
1741
1741
|
options: i,
|
|
1742
|
-
resizeHandler: hr(e, r, a, n, N,
|
|
1742
|
+
resizeHandler: hr(e, r, a, n, N, S, D),
|
|
1743
1743
|
scrollBody: Ce,
|
|
1744
|
-
scrollBounds: kr(
|
|
1745
|
-
scrollLooper: br(V,
|
|
1744
|
+
scrollBounds: kr(E, pe, fe, Ce, R),
|
|
1745
|
+
scrollLooper: br(V, E, pe, [me, pe, he, fe]),
|
|
1746
1746
|
scrollProgress: rt,
|
|
1747
1747
|
scrollSnapList: _.map(rt.get),
|
|
1748
1748
|
scrollSnaps: _,
|
|
@@ -1750,9 +1750,9 @@ function Er(t, e, n, s, a, i, r) {
|
|
|
1750
1750
|
scrollTo: Ge,
|
|
1751
1751
|
slideLooper: Dr(N, z, V, O, te, ie, _, pe, n),
|
|
1752
1752
|
slideFocus: Pt,
|
|
1753
|
-
slidesHandler: _r(e, r,
|
|
1753
|
+
slidesHandler: _r(e, r, M),
|
|
1754
1754
|
slidesInView: Bt,
|
|
1755
|
-
slideIndexes:
|
|
1755
|
+
slideIndexes: W,
|
|
1756
1756
|
slideRegistry: it,
|
|
1757
1757
|
slidesToScroll: ee,
|
|
1758
1758
|
target: fe,
|
|
@@ -1760,7 +1760,7 @@ function Er(t, e, n, s, a, i, r) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
return $e;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Er() {
|
|
1764
1764
|
let t = {}, e;
|
|
1765
1765
|
function n(c) {
|
|
1766
1766
|
e = c;
|
|
@@ -1813,14 +1813,14 @@ const Fr = {
|
|
|
1813
1813
|
};
|
|
1814
1814
|
function Nr(t) {
|
|
1815
1815
|
function e(i, r) {
|
|
1816
|
-
return
|
|
1816
|
+
return jt(i, r || {});
|
|
1817
1817
|
}
|
|
1818
1818
|
function n(i) {
|
|
1819
|
-
const r = i.breakpoints || {}, d =
|
|
1819
|
+
const r = i.breakpoints || {}, d = Le(r).filter((l) => t.matchMedia(l).matches).map((l) => r[l]).reduce((l, c) => e(l, c), {});
|
|
1820
1820
|
return e(i, d);
|
|
1821
1821
|
}
|
|
1822
1822
|
function s(i) {
|
|
1823
|
-
return i.map((r) =>
|
|
1823
|
+
return i.map((r) => Le(r.breakpoints || {})).reduce((r, d) => r.concat(d), []).map(t.matchMedia);
|
|
1824
1824
|
}
|
|
1825
1825
|
return {
|
|
1826
1826
|
mergeOptions: e,
|
|
@@ -1846,7 +1846,7 @@ function Br(t) {
|
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
1848
|
function Pe(t, e, n) {
|
|
1849
|
-
const s = t.ownerDocument, a = s.defaultView, i = Nr(a), r = Br(i), d =
|
|
1849
|
+
const s = t.ownerDocument, a = s.defaultView, i = Nr(a), r = Br(i), d = je(), l = Er(), {
|
|
1850
1850
|
mergeOptions: c,
|
|
1851
1851
|
optionsAtMedia: v,
|
|
1852
1852
|
optionsMediaQueries: h
|
|
@@ -1855,97 +1855,97 @@ function Pe(t, e, n) {
|
|
|
1855
1855
|
off: g,
|
|
1856
1856
|
emit: u
|
|
1857
1857
|
} = l, y = N;
|
|
1858
|
-
let k = !1,
|
|
1859
|
-
function
|
|
1858
|
+
let k = !1, p, m = c(Fr, Pe.globalOptions), S = c(m), M = [], A, C, w;
|
|
1859
|
+
function D() {
|
|
1860
1860
|
const {
|
|
1861
|
-
container:
|
|
1862
|
-
slides:
|
|
1863
|
-
} =
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1868
|
-
function
|
|
1869
|
-
const
|
|
1870
|
-
if (
|
|
1871
|
-
const P = Object.assign({},
|
|
1861
|
+
container: W,
|
|
1862
|
+
slides: x
|
|
1863
|
+
} = S;
|
|
1864
|
+
C = (qe(W) ? t.querySelector(W) : W) || t.children[0];
|
|
1865
|
+
const H = qe(x) ? C.querySelectorAll(x) : x;
|
|
1866
|
+
w = [].slice.call(H || C.children);
|
|
1867
|
+
}
|
|
1868
|
+
function j(W) {
|
|
1869
|
+
const x = jr(t, C, w, s, a, W, l);
|
|
1870
|
+
if (W.loop && !x.slideLooper.canLoop()) {
|
|
1871
|
+
const P = Object.assign({}, W, {
|
|
1872
1872
|
loop: !1
|
|
1873
1873
|
});
|
|
1874
|
-
return
|
|
1874
|
+
return j(P);
|
|
1875
1875
|
}
|
|
1876
|
-
return
|
|
1876
|
+
return x;
|
|
1877
1877
|
}
|
|
1878
|
-
function F(
|
|
1879
|
-
k || (
|
|
1878
|
+
function F(W, x) {
|
|
1879
|
+
k || (m = c(m, W), S = v(m), M = x || M, D(), p = j(S), h([m, ...M.map(({
|
|
1880
1880
|
options: P
|
|
1881
|
-
}) => P)]).forEach((P) => d.add(P, "change", N)),
|
|
1881
|
+
}) => P)]).forEach((P) => d.add(P, "change", N)), S.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 && w.length && p.dragHandler.init(q), A = r.init(q, M)));
|
|
1882
1882
|
}
|
|
1883
|
-
function N(
|
|
1883
|
+
function N(W, x) {
|
|
1884
1884
|
const P = ee();
|
|
1885
1885
|
z(), F(c({
|
|
1886
1886
|
startIndex: P
|
|
1887
|
-
},
|
|
1887
|
+
}, W), x), l.emit("reInit");
|
|
1888
1888
|
}
|
|
1889
1889
|
function z() {
|
|
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(), r.destroy(), d.clear();
|
|
1891
1891
|
}
|
|
1892
1892
|
function R() {
|
|
1893
1893
|
k || (k = !0, d.clear(), z(), l.emit("destroy"), l.clear());
|
|
1894
1894
|
}
|
|
1895
|
-
function G(
|
|
1896
|
-
!
|
|
1895
|
+
function G(W, x, P) {
|
|
1896
|
+
!S.active || k || (p.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : S.duration), p.scrollTo.index(W, P || 0));
|
|
1897
1897
|
}
|
|
1898
|
-
function $(
|
|
1899
|
-
const
|
|
1900
|
-
G(
|
|
1898
|
+
function $(W) {
|
|
1899
|
+
const x = p.index.add(1).get();
|
|
1900
|
+
G(x, W, -1);
|
|
1901
1901
|
}
|
|
1902
|
-
function B(
|
|
1903
|
-
const
|
|
1904
|
-
G(
|
|
1902
|
+
function B(W) {
|
|
1903
|
+
const x = p.index.add(-1).get();
|
|
1904
|
+
G(x, W, 1);
|
|
1905
1905
|
}
|
|
1906
1906
|
function O() {
|
|
1907
|
-
return
|
|
1907
|
+
return p.index.add(1).get() !== ee();
|
|
1908
1908
|
}
|
|
1909
1909
|
function te() {
|
|
1910
|
-
return
|
|
1910
|
+
return p.index.add(-1).get() !== ee();
|
|
1911
1911
|
}
|
|
1912
1912
|
function Q() {
|
|
1913
|
-
return
|
|
1913
|
+
return p.scrollSnapList;
|
|
1914
1914
|
}
|
|
1915
1915
|
function se() {
|
|
1916
|
-
return
|
|
1916
|
+
return p.scrollProgress.get(p.offsetLocation.get());
|
|
1917
1917
|
}
|
|
1918
1918
|
function ee() {
|
|
1919
|
-
return
|
|
1919
|
+
return p.index.get();
|
|
1920
1920
|
}
|
|
1921
1921
|
function ie() {
|
|
1922
|
-
return
|
|
1922
|
+
return p.indexPrevious.get();
|
|
1923
1923
|
}
|
|
1924
1924
|
function ae() {
|
|
1925
|
-
return
|
|
1925
|
+
return p.slidesInView.get();
|
|
1926
1926
|
}
|
|
1927
1927
|
function V() {
|
|
1928
|
-
return
|
|
1928
|
+
return p.slidesInView.get(!1);
|
|
1929
1929
|
}
|
|
1930
1930
|
function ue() {
|
|
1931
|
-
return
|
|
1931
|
+
return A;
|
|
1932
1932
|
}
|
|
1933
1933
|
function b() {
|
|
1934
|
-
return
|
|
1934
|
+
return p;
|
|
1935
1935
|
}
|
|
1936
1936
|
function _() {
|
|
1937
1937
|
return t;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return
|
|
1939
|
+
function E() {
|
|
1940
|
+
return C;
|
|
1941
1941
|
}
|
|
1942
1942
|
function K() {
|
|
1943
|
-
return
|
|
1943
|
+
return w;
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const q = {
|
|
1946
1946
|
canScrollNext: O,
|
|
1947
1947
|
canScrollPrev: te,
|
|
1948
|
-
containerNode:
|
|
1948
|
+
containerNode: E,
|
|
1949
1949
|
internalEngine: b,
|
|
1950
1950
|
destroy: R,
|
|
1951
1951
|
off: g,
|
|
@@ -1965,7 +1965,7 @@ function Pe(t, e, n) {
|
|
|
1965
1965
|
slidesInView: ae,
|
|
1966
1966
|
slidesNotInView: V
|
|
1967
1967
|
};
|
|
1968
|
-
return F(e, n), setTimeout(() => l.emit("init"), 0),
|
|
1968
|
+
return F(e, n), setTimeout(() => l.emit("init"), 0), q;
|
|
1969
1969
|
}
|
|
1970
1970
|
Pe.globalOptions = void 0;
|
|
1971
1971
|
function nt(t = {}, e = []) {
|
|
@@ -1986,20 +1986,20 @@ function nt(t = {}, e = []) {
|
|
|
1986
1986
|
}, [r, i]), [d, a];
|
|
1987
1987
|
}
|
|
1988
1988
|
nt.globalOptions = void 0;
|
|
1989
|
-
const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", $r = "_slideInner_1bu1s_37",
|
|
1989
|
+
const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", $r = "_slideInner_1bu1s_37", Wr = "_loaderOverlay_1bu1s_45", Hr = "_image_1bu1s_55", Ur = "_loaded_1bu1s_66", Or = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Kr = "_arrows_1bu1s_94", Yr = "_dots_1bu1s_104", qr = "_dot_1bu1s_104", Zr = "_dotActive_1bu1s_130", Z = {
|
|
1990
1990
|
carouselContainer: Pr,
|
|
1991
1991
|
viewport: zr,
|
|
1992
1992
|
slides: Rr,
|
|
1993
1993
|
slide: Gr,
|
|
1994
1994
|
slideInner: $r,
|
|
1995
|
-
loaderOverlay:
|
|
1996
|
-
image:
|
|
1995
|
+
loaderOverlay: Wr,
|
|
1996
|
+
image: Hr,
|
|
1997
1997
|
loaded: Ur,
|
|
1998
1998
|
empty: Or,
|
|
1999
1999
|
controls: Vr,
|
|
2000
2000
|
arrows: Kr,
|
|
2001
|
-
dots:
|
|
2002
|
-
dot:
|
|
2001
|
+
dots: Yr,
|
|
2002
|
+
dot: qr,
|
|
2003
2003
|
dotActive: Zr
|
|
2004
2004
|
}, Xr = ln, Jr = ({
|
|
2005
2005
|
images: t,
|
|
@@ -2019,36 +2019,36 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slide
|
|
|
2019
2019
|
align: "start",
|
|
2020
2020
|
containScroll: "trimSnaps",
|
|
2021
2021
|
slidesToScroll: 1
|
|
2022
|
-
}, [f, g] = nt(h), [u, y] = ne(0), [k,
|
|
2022
|
+
}, [f, g] = nt(h), [u, y] = ne(0), [k, p] = ne([]), [m, S] = ne([]);
|
|
2023
2023
|
J(() => {
|
|
2024
|
-
|
|
2024
|
+
S(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2025
2025
|
}, [t]);
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2026
|
+
const M = re((R) => {
|
|
2027
|
+
S((G) => {
|
|
2028
2028
|
const $ = [...G];
|
|
2029
2029
|
return $[R] = !0, $;
|
|
2030
2030
|
});
|
|
2031
|
-
}, []),
|
|
2031
|
+
}, []), A = Se(() => n * 1e3, [n]), C = re(() => {
|
|
2032
2032
|
g && y(g.selectedScrollSnap());
|
|
2033
|
-
}, [g]),
|
|
2033
|
+
}, [g]), w = re((R) => g && g.scrollTo(R), [g]), D = re(() => g && g.scrollPrev(), [g]), j = re(() => g && g.scrollNext(), [g]);
|
|
2034
2034
|
J(() => {
|
|
2035
2035
|
if (g)
|
|
2036
|
-
return g.on("select",
|
|
2037
|
-
g.off("select",
|
|
2036
|
+
return g.on("select", C), g.on("reInit", C), p(g.scrollSnapList()), () => {
|
|
2037
|
+
g.off("select", C), g.off("reInit", C);
|
|
2038
2038
|
};
|
|
2039
|
-
}, [g,
|
|
2040
|
-
g && (g.reInit(),
|
|
2039
|
+
}, [g, C]), J(() => {
|
|
2040
|
+
g && (g.reInit(), p(g.scrollSnapList()));
|
|
2041
2041
|
}, [g, t, r, d]), J(() => {
|
|
2042
2042
|
if (!e || !g || !t || t.length <= 1) return;
|
|
2043
2043
|
const R = window.setInterval(() => {
|
|
2044
2044
|
g.canScrollNext() && g.scrollNext();
|
|
2045
|
-
},
|
|
2045
|
+
}, A);
|
|
2046
2046
|
return () => {
|
|
2047
2047
|
window.clearInterval(R);
|
|
2048
2048
|
};
|
|
2049
|
-
}, [e,
|
|
2049
|
+
}, [e, A, g, t]);
|
|
2050
2050
|
const F = Math.max(1, r), N = `${100 / F}%`, z = d / 2;
|
|
2051
|
-
return /* @__PURE__ */
|
|
2051
|
+
return /* @__PURE__ */ I(
|
|
2052
2052
|
"div",
|
|
2053
2053
|
{
|
|
2054
2054
|
className: Z.carouselContainer,
|
|
@@ -2076,19 +2076,19 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slide
|
|
|
2076
2076
|
overflow: "hidden"
|
|
2077
2077
|
// Ensure radius clips content
|
|
2078
2078
|
},
|
|
2079
|
-
children: /* @__PURE__ */
|
|
2080
|
-
!
|
|
2079
|
+
children: /* @__PURE__ */ I("div", { className: Z.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2080
|
+
!m[G] && /* @__PURE__ */ o("div", { className: Z.loaderOverlay, children: /* @__PURE__ */ o(Xr, { "aria-label": "Laster bilde" }) }),
|
|
2081
2081
|
/* @__PURE__ */ o(
|
|
2082
2082
|
"img",
|
|
2083
2083
|
{
|
|
2084
|
-
className: `${Z.image} ${
|
|
2084
|
+
className: `${Z.image} ${m[G] ? Z.loaded : Z.loadingImage}`,
|
|
2085
2085
|
src: R.src,
|
|
2086
2086
|
alt: R.alt,
|
|
2087
2087
|
loading: G < F ? "eager" : "lazy",
|
|
2088
2088
|
crossOrigin: "anonymous",
|
|
2089
|
-
onLoad: () =>
|
|
2089
|
+
onLoad: () => M(G),
|
|
2090
2090
|
onError: ($) => {
|
|
2091
|
-
$.target.style.display = "none",
|
|
2091
|
+
$.target.style.display = "none", M(G);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
)
|
|
@@ -2098,15 +2098,15 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slide
|
|
|
2098
2098
|
)) : /* @__PURE__ */ o("div", { className: Z.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ o("div", { className: Z.empty, children: "Ingen bilder" }) })
|
|
2099
2099
|
}
|
|
2100
2100
|
) }),
|
|
2101
|
-
(s || a && t && t.length > 1) && /* @__PURE__ */
|
|
2102
|
-
s && /* @__PURE__ */
|
|
2101
|
+
(s || a && t && t.length > 1) && /* @__PURE__ */ I("div", { className: Z.controls, "aria-hidden": "false", children: [
|
|
2102
|
+
s && /* @__PURE__ */ I("div", { className: Z.arrows, children: [
|
|
2103
2103
|
/* @__PURE__ */ o(
|
|
2104
2104
|
xe,
|
|
2105
2105
|
{
|
|
2106
2106
|
variant: "primary",
|
|
2107
2107
|
icon: !0,
|
|
2108
2108
|
"aria-label": "Forrige bilde",
|
|
2109
|
-
onClick:
|
|
2109
|
+
onClick: D,
|
|
2110
2110
|
disabled: !t || t.length <= 1,
|
|
2111
2111
|
children: /* @__PURE__ */ o(Zn, { "aria-hidden": !0 })
|
|
2112
2112
|
}
|
|
@@ -2117,7 +2117,7 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slide
|
|
|
2117
2117
|
variant: "primary",
|
|
2118
2118
|
icon: !0,
|
|
2119
2119
|
"aria-label": "Neste bilde",
|
|
2120
|
-
onClick:
|
|
2120
|
+
onClick: j,
|
|
2121
2121
|
disabled: !t || t.length <= 1,
|
|
2122
2122
|
children: /* @__PURE__ */ o(Xn, { "aria-hidden": !0 })
|
|
2123
2123
|
}
|
|
@@ -2130,7 +2130,7 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slide
|
|
|
2130
2130
|
{
|
|
2131
2131
|
type: "button",
|
|
2132
2132
|
className: `${Z.dot} ${$ ? Z.dotActive : ""}`,
|
|
2133
|
-
onClick: () =>
|
|
2133
|
+
onClick: () => w(G),
|
|
2134
2134
|
"aria-label": `Gå til bilde ${G + 1}`,
|
|
2135
2135
|
"aria-selected": $,
|
|
2136
2136
|
role: "tab"
|
|
@@ -2144,24 +2144,24 @@ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slide
|
|
|
2144
2144
|
);
|
|
2145
2145
|
};
|
|
2146
2146
|
Jr.displayName = "Carousel";
|
|
2147
|
-
const
|
|
2147
|
+
const Yi = dn, qi = cn, Zi = un, X = mn, Xi = pn, Ji = gn, Qr = hn, es = fn;
|
|
2148
2148
|
Qr.displayName = "Field.Description";
|
|
2149
2149
|
es.displayName = "Field.Counter";
|
|
2150
|
-
const
|
|
2150
|
+
const Qi = It, ts = ge((t, e) => /* @__PURE__ */ o(kn, { ref: e, ...t }));
|
|
2151
2151
|
ts.displayName = "Heading";
|
|
2152
|
-
const
|
|
2152
|
+
const ea = yn, ns = ge((t, e) => /* @__PURE__ */ o(vn, { ref: e, ...t }));
|
|
2153
2153
|
ns.displayName = "Label";
|
|
2154
|
-
const ce = bn,
|
|
2154
|
+
const ce = bn, ta = Tn, na = Sn, oa = xn, Xe = ge(
|
|
2155
2155
|
(t, e) => /* @__PURE__ */ o(Cn, { ref: e, ...t })
|
|
2156
2156
|
);
|
|
2157
2157
|
Xe.displayName = "Paragraph";
|
|
2158
|
-
const
|
|
2159
|
-
Button:
|
|
2160
|
-
ClearButton:
|
|
2158
|
+
const ra = wn, sa = In, ia = Dn, Ne = Object.assign(_n, {
|
|
2159
|
+
Button: Ln,
|
|
2160
|
+
ClearButton: Mn,
|
|
2161
2161
|
Input: An
|
|
2162
|
-
}),
|
|
2162
|
+
}), aa = jn, la = En, da = Fn, os = Nn;
|
|
2163
2163
|
os.displayName = "Suggestion";
|
|
2164
|
-
const Ve = Bn,
|
|
2164
|
+
const Ve = Bn, ca = Pn, ua = zn, ma = Rn, pa = Gn, ga = $n, ha = Wn, fa = Hn, rs = ge((t, e) => /* @__PURE__ */ o(Un, { 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
|
-
}, ot = Kt(void 0),
|
|
4123
|
+
}, ot = Kt(void 0), ka = ({ children: t }) => {
|
|
4124
4124
|
const [e, n] = ne("NO"), s = (a) => {
|
|
4125
4125
|
const i = a.split(".");
|
|
4126
4126
|
let r = ss[e];
|
|
@@ -4132,7 +4132,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4132
4132
|
return r;
|
|
4133
4133
|
};
|
|
4134
4134
|
return /* @__PURE__ */ o(ot.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
|
|
4135
|
-
},
|
|
4135
|
+
}, ya = () => {
|
|
4136
4136
|
const t = wt(ot);
|
|
4137
4137
|
if (t === void 0)
|
|
4138
4138
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
@@ -4183,7 +4183,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4183
4183
|
"footer.legal.whistleblowing": "Varsling/Misconduct"
|
|
4184
4184
|
})[e] || e
|
|
4185
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",
|
|
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", Ls = "_userName_ymzss_325", js = "_loginLink_ymzss_332", Es = "_loginText_ymzss_341", Fs = "_underline_ymzss_348", Ns = "_searchButtonWrapper_ymzss_354", Bs = "_buttonText_ymzss_358", Ps = "_menuButton_ymzss_363", zs = "_menuOverlay_ymzss_368", Rs = "_searchContent_ymzss_402", Gs = "_menuContent_ymzss_412", $s = "_menuLeftColumn_ymzss_421", Ws = "_menuRightColumn_ymzss_427", Hs = "_slotContent_ymzss_441", Us = "_navList_ymzss_454", Os = "_menuUtilities_ymzss_461", Vs = "_menuBrand_ymzss_468", Ks = "_suggestionsSection_ymzss_472", Ys = "_suggestionsTitle_ymzss_478", qs = "_searchResults_ymzss_487", Zs = "_resultList_ymzss_493", Xs = "_resultItem_ymzss_499", Js = "_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", T = {
|
|
4187
4187
|
header: is,
|
|
4188
4188
|
languageSwitch: as,
|
|
4189
4189
|
searchOverlay: ls,
|
|
@@ -4208,10 +4208,10 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4208
4208
|
actions: Ds,
|
|
4209
4209
|
ctaButton: _s,
|
|
4210
4210
|
themeToggle: As,
|
|
4211
|
-
userInfo:
|
|
4212
|
-
userName:
|
|
4213
|
-
loginLink:
|
|
4214
|
-
loginText:
|
|
4211
|
+
userInfo: Ms,
|
|
4212
|
+
userName: Ls,
|
|
4213
|
+
loginLink: js,
|
|
4214
|
+
loginText: Es,
|
|
4215
4215
|
underline: Fs,
|
|
4216
4216
|
searchButtonWrapper: Ns,
|
|
4217
4217
|
buttonText: Bs,
|
|
@@ -4220,14 +4220,14 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4220
4220
|
searchContent: Rs,
|
|
4221
4221
|
menuContent: Gs,
|
|
4222
4222
|
menuLeftColumn: $s,
|
|
4223
|
-
menuRightColumn:
|
|
4224
|
-
slotContent:
|
|
4223
|
+
menuRightColumn: Ws,
|
|
4224
|
+
slotContent: Hs,
|
|
4225
4225
|
navList: Us,
|
|
4226
4226
|
menuUtilities: Os,
|
|
4227
4227
|
menuBrand: Vs,
|
|
4228
4228
|
suggestionsSection: Ks,
|
|
4229
|
-
suggestionsTitle:
|
|
4230
|
-
searchResults:
|
|
4229
|
+
suggestionsTitle: Ys,
|
|
4230
|
+
searchResults: qs,
|
|
4231
4231
|
resultList: Zs,
|
|
4232
4232
|
resultItem: Xs,
|
|
4233
4233
|
resultLink: Js,
|
|
@@ -4300,7 +4300,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4300
4300
|
{ id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
|
|
4301
4301
|
{ id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
|
|
4302
4302
|
{ id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
|
|
4303
|
-
],
|
|
4303
|
+
], va = ({
|
|
4304
4304
|
"data-color": t = "primary",
|
|
4305
4305
|
activePage: e,
|
|
4306
4306
|
setPage: n,
|
|
@@ -4318,20 +4318,20 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4318
4318
|
secondaryLogoSrcDark: u,
|
|
4319
4319
|
secondaryLogoAlt: y = "Secondary Logo",
|
|
4320
4320
|
navItems: k,
|
|
4321
|
-
showNavItems:
|
|
4322
|
-
showMenuButton:
|
|
4323
|
-
showHeaderExtension:
|
|
4324
|
-
showModeToggle:
|
|
4325
|
-
showLanguageSwitch:
|
|
4321
|
+
showNavItems: p = !0,
|
|
4322
|
+
showMenuButton: m = !0,
|
|
4323
|
+
showHeaderExtension: S = !1,
|
|
4324
|
+
showModeToggle: M = !1,
|
|
4325
|
+
showLanguageSwitch: A = !1
|
|
4326
4326
|
}) => {
|
|
4327
|
-
const [
|
|
4327
|
+
const [C, w] = ne(!1), [D, j] = ne(!1), [F, N] = ne(""), [z, R] = ne("light"), { language: G, setLanguage: $, t: B } = Nt(), [O, te] = ne(!1);
|
|
4328
4328
|
J(() => {
|
|
4329
4329
|
const b = "rk-header-inline-styles";
|
|
4330
4330
|
if (typeof document > "u" || document.getElementById(b)) return;
|
|
4331
|
-
const _ = ii(
|
|
4332
|
-
|
|
4331
|
+
const _ = ii(T), E = document.createElement("style");
|
|
4332
|
+
E.id = b, E.textContent = _, document.head.appendChild(E);
|
|
4333
4333
|
}, []);
|
|
4334
|
-
const Q = () => /* @__PURE__ */
|
|
4334
|
+
const Q = () => /* @__PURE__ */ I(
|
|
4335
4335
|
"svg",
|
|
4336
4336
|
{
|
|
4337
4337
|
width: "170",
|
|
@@ -4341,7 +4341,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4341
4341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4342
4342
|
"aria-hidden": !0,
|
|
4343
4343
|
focusable: "false",
|
|
4344
|
-
className:
|
|
4344
|
+
className: T.redCrossLogo,
|
|
4345
4345
|
children: [
|
|
4346
4346
|
/* @__PURE__ */ o("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" }),
|
|
4347
4347
|
/* @__PURE__ */ o("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" }),
|
|
@@ -4357,76 +4357,76 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4357
4357
|
}
|
|
4358
4358
|
);
|
|
4359
4359
|
J(() => {
|
|
4360
|
-
|
|
4360
|
+
w(!1), j(!1), N("");
|
|
4361
4361
|
}, [e]), J(() => {
|
|
4362
|
-
if (!(typeof document > "u") &&
|
|
4362
|
+
if (!(typeof document > "u") && C && O) {
|
|
4363
4363
|
const b = document.body.style.overflow;
|
|
4364
4364
|
return document.body.style.overflow = "hidden", () => {
|
|
4365
4365
|
document.body.style.overflow = b;
|
|
4366
4366
|
};
|
|
4367
4367
|
}
|
|
4368
|
-
}, [
|
|
4368
|
+
}, [C, O]), J(() => {
|
|
4369
4369
|
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
4370
|
-
const b = window.matchMedia("(max-width: 850px)"), _ = (
|
|
4370
|
+
const b = window.matchMedia("(max-width: 850px)"), _ = (E) => te("matches" in E ? E.matches : b.matches);
|
|
4371
4371
|
return _(b), b.addEventListener ? b.addEventListener("change", _) : b.addListener(_), () => {
|
|
4372
4372
|
b.removeEventListener ? b.removeEventListener("change", _) : b.removeListener(_);
|
|
4373
4373
|
};
|
|
4374
4374
|
}, []), J(() => {
|
|
4375
4375
|
if (typeof document > "u") return;
|
|
4376
|
-
const b = document.querySelector(`.${
|
|
4376
|
+
const b = document.querySelector(`.${T.header}`);
|
|
4377
4377
|
if (!b) return;
|
|
4378
4378
|
const _ = () => {
|
|
4379
4379
|
const K = b.offsetHeight;
|
|
4380
4380
|
document.documentElement.style.setProperty("--header-height-mobile", `${K}px`);
|
|
4381
4381
|
};
|
|
4382
4382
|
_(), window.addEventListener("resize", _);
|
|
4383
|
-
const
|
|
4383
|
+
const E = new ResizeObserver(() => {
|
|
4384
4384
|
_();
|
|
4385
4385
|
});
|
|
4386
|
-
return
|
|
4387
|
-
window.removeEventListener("resize", _),
|
|
4386
|
+
return E.observe(b), () => {
|
|
4387
|
+
window.removeEventListener("resize", _), E.disconnect();
|
|
4388
4388
|
};
|
|
4389
4389
|
}, [O]), J(() => {
|
|
4390
4390
|
if (typeof document > "u") return;
|
|
4391
|
-
const b = document.querySelector(`.${
|
|
4391
|
+
const b = document.querySelector(`.${T.logoWrapper}`);
|
|
4392
4392
|
if (!b) return;
|
|
4393
4393
|
const _ = () => {
|
|
4394
|
-
const
|
|
4395
|
-
document.documentElement.style.setProperty("--rk-logo-width", `${
|
|
4394
|
+
const E = b.offsetWidth;
|
|
4395
|
+
document.documentElement.style.setProperty("--rk-logo-width", `${E}px`);
|
|
4396
4396
|
};
|
|
4397
4397
|
return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
4398
4398
|
}, [O]), J(() => {
|
|
4399
|
-
if (typeof document > "u" || !
|
|
4399
|
+
if (typeof document > "u" || !D) {
|
|
4400
4400
|
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4401
4401
|
return;
|
|
4402
4402
|
}
|
|
4403
|
-
const b = document.querySelector(`.${
|
|
4403
|
+
const b = document.querySelector(`.${T.searchOverlay}`);
|
|
4404
4404
|
if (!b) return;
|
|
4405
4405
|
const _ = () => {
|
|
4406
4406
|
const K = b.offsetHeight;
|
|
4407
4407
|
document.documentElement.style.setProperty("--rk-search-overlay-height", `${K}px`);
|
|
4408
4408
|
};
|
|
4409
4409
|
requestAnimationFrame(_), window.addEventListener("resize", _);
|
|
4410
|
-
const
|
|
4411
|
-
return
|
|
4412
|
-
window.removeEventListener("resize", _),
|
|
4410
|
+
const E = new ResizeObserver(_);
|
|
4411
|
+
return E.observe(b), () => {
|
|
4412
|
+
window.removeEventListener("resize", _), E.disconnect();
|
|
4413
4413
|
};
|
|
4414
|
-
}, [
|
|
4414
|
+
}, [D]);
|
|
4415
4415
|
const se = () => {
|
|
4416
4416
|
const b = z === "light" ? "dark" : "light";
|
|
4417
4417
|
R(b), document.documentElement.setAttribute("data-color-scheme", b);
|
|
4418
4418
|
}, ee = (b) => {
|
|
4419
|
-
n && (b.preventDefault(), n("home")),
|
|
4419
|
+
n && (b.preventDefault(), n("home")), w(!1), j(!1);
|
|
4420
4420
|
}, ie = () => {
|
|
4421
|
-
|
|
4422
|
-
const b = document.querySelector(`.${
|
|
4421
|
+
w(!C), D && j(!1), !C && typeof document < "u" && requestAnimationFrame(() => {
|
|
4422
|
+
const b = document.querySelector(`.${T.header}`);
|
|
4423
4423
|
if (b) {
|
|
4424
4424
|
const _ = b.offsetHeight;
|
|
4425
4425
|
document.documentElement.style.setProperty("--header-height-mobile", `${_}px`);
|
|
4426
4426
|
}
|
|
4427
4427
|
});
|
|
4428
4428
|
}, ae = () => {
|
|
4429
|
-
|
|
4429
|
+
j(!D), C && w(!1);
|
|
4430
4430
|
}, V = Se(() => {
|
|
4431
4431
|
if (!F.trim()) return [];
|
|
4432
4432
|
const b = F.toLowerCase();
|
|
@@ -4434,11 +4434,11 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4434
4434
|
(_) => _.title.toLowerCase().startsWith(b)
|
|
4435
4435
|
);
|
|
4436
4436
|
}, [F]), ue = (b) => {
|
|
4437
|
-
n && n(b),
|
|
4437
|
+
n && n(b), j(!1), N("");
|
|
4438
4438
|
};
|
|
4439
|
-
return /* @__PURE__ */
|
|
4440
|
-
|
|
4441
|
-
|
|
4439
|
+
return /* @__PURE__ */ I("header", { className: T.header, "data-open": C ? "true" : "false", "data-color": t, children: [
|
|
4440
|
+
S && /* @__PURE__ */ o("div", { className: T.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ I("div", { className: T.extensionContentWrapper, children: [
|
|
4441
|
+
M && /* @__PURE__ */ o("div", { className: T.extensionContent, children: /* @__PURE__ */ o(
|
|
4442
4442
|
Ve,
|
|
4443
4443
|
{
|
|
4444
4444
|
"data-size": "sm",
|
|
@@ -4449,14 +4449,14 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4449
4449
|
"data-color-scheme": "light"
|
|
4450
4450
|
}
|
|
4451
4451
|
) }),
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
/* @__PURE__ */ o("span", { className:
|
|
4455
|
-
/* @__PURE__ */
|
|
4456
|
-
/* @__PURE__ */
|
|
4452
|
+
M && A && /* @__PURE__ */ o("div", { className: T.extensionDivider }),
|
|
4453
|
+
A && /* @__PURE__ */ I("div", { className: T.languageSwitch, children: [
|
|
4454
|
+
/* @__PURE__ */ o("span", { className: T.languageLabel, children: B("header.language") }),
|
|
4455
|
+
/* @__PURE__ */ I(X.TriggerContext, { children: [
|
|
4456
|
+
/* @__PURE__ */ I(
|
|
4457
4457
|
X.Trigger,
|
|
4458
4458
|
{
|
|
4459
|
-
className:
|
|
4459
|
+
className: T.languageLink,
|
|
4460
4460
|
"aria-label": B("header.selectLanguage"),
|
|
4461
4461
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4462
4462
|
children: [
|
|
@@ -4471,7 +4471,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4471
4471
|
{
|
|
4472
4472
|
"data-color-scheme": z,
|
|
4473
4473
|
placement: "bottom-end",
|
|
4474
|
-
children: /* @__PURE__ */
|
|
4474
|
+
children: /* @__PURE__ */ I(X.List, { children: [
|
|
4475
4475
|
/* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("NO"), children: "Norsk (NO)" }) }),
|
|
4476
4476
|
/* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("EN"), children: "English (EN)" }) })
|
|
4477
4477
|
] })
|
|
@@ -4480,55 +4480,55 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4480
4480
|
] })
|
|
4481
4481
|
] })
|
|
4482
4482
|
] }) }),
|
|
4483
|
-
/* @__PURE__ */
|
|
4484
|
-
/* @__PURE__ */
|
|
4483
|
+
/* @__PURE__ */ I("div", { className: T.headerInner, children: [
|
|
4484
|
+
/* @__PURE__ */ I("div", { className: T.logoWrapper, children: [
|
|
4485
4485
|
/* @__PURE__ */ o(
|
|
4486
4486
|
ce,
|
|
4487
4487
|
{
|
|
4488
4488
|
href: "/",
|
|
4489
|
-
className: `${
|
|
4489
|
+
className: `${T.logo} ${T.primaryLogo}`,
|
|
4490
4490
|
"aria-label": B("header.homeAriaLabel"),
|
|
4491
4491
|
onClick: ee,
|
|
4492
4492
|
children: /* @__PURE__ */ o(Q, {})
|
|
4493
4493
|
}
|
|
4494
4494
|
),
|
|
4495
|
-
/* @__PURE__ */ o("div", { className:
|
|
4495
|
+
/* @__PURE__ */ o("div", { className: T.secondaryLogoWrapper, children: f && g ? /* @__PURE__ */ o(
|
|
4496
4496
|
"img",
|
|
4497
4497
|
{
|
|
4498
4498
|
src: z === "dark" && u ? u : g,
|
|
4499
4499
|
alt: y,
|
|
4500
|
-
className:
|
|
4500
|
+
className: T.secondaryLogo
|
|
4501
4501
|
}
|
|
4502
|
-
) : f ? /* @__PURE__ */ o("div", { className:
|
|
4502
|
+
) : f ? /* @__PURE__ */ o("div", { className: T.slotComponent, children: /* @__PURE__ */ o("div", { className: T.slotContainer, children: /* @__PURE__ */ o("p", { className: T.slotText, children: "SLOT" }) }) }) : null })
|
|
4503
4503
|
] }),
|
|
4504
|
-
|
|
4504
|
+
p && k && k.length > 0 && !O && /* @__PURE__ */ o("nav", { className: T.navItems, children: k.map((b, _) => /* @__PURE__ */ o(
|
|
4505
4505
|
ce,
|
|
4506
4506
|
{
|
|
4507
4507
|
href: b.href,
|
|
4508
|
-
className:
|
|
4509
|
-
onClick: (
|
|
4510
|
-
n && (
|
|
4508
|
+
className: T.navLink,
|
|
4509
|
+
onClick: (E) => {
|
|
4510
|
+
n && (E.preventDefault(), n(b.href));
|
|
4511
4511
|
},
|
|
4512
4512
|
children: b.label
|
|
4513
4513
|
},
|
|
4514
4514
|
_
|
|
4515
4515
|
)) }),
|
|
4516
|
-
/* @__PURE__ */
|
|
4517
|
-
d && /* @__PURE__ */
|
|
4516
|
+
/* @__PURE__ */ I("div", { className: T.actions, children: [
|
|
4517
|
+
d && /* @__PURE__ */ I(
|
|
4518
4518
|
xe,
|
|
4519
4519
|
{
|
|
4520
4520
|
variant: "primary",
|
|
4521
4521
|
"data-color": "main",
|
|
4522
4522
|
"data-size": "md",
|
|
4523
|
-
className:
|
|
4523
|
+
className: T.ctaButton,
|
|
4524
4524
|
onClick: v,
|
|
4525
4525
|
children: [
|
|
4526
4526
|
c,
|
|
4527
|
-
/* @__PURE__ */ o("span", { className:
|
|
4527
|
+
/* @__PURE__ */ o("span", { className: T.buttonText, children: l || B("header.supportUs") })
|
|
4528
4528
|
]
|
|
4529
4529
|
}
|
|
4530
4530
|
),
|
|
4531
|
-
!
|
|
4531
|
+
!S && h && /* @__PURE__ */ o("div", { className: T.themeToggle, children: /* @__PURE__ */ o(
|
|
4532
4532
|
Ve,
|
|
4533
4533
|
{
|
|
4534
4534
|
checked: z === "dark",
|
|
@@ -4536,58 +4536,58 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4536
4536
|
"aria-label": B("header.toggleTheme")
|
|
4537
4537
|
}
|
|
4538
4538
|
) }),
|
|
4539
|
-
a && /* @__PURE__ */
|
|
4540
|
-
/* @__PURE__ */ o(Xe, { "data-size": "md", className:
|
|
4539
|
+
a && /* @__PURE__ */ I("div", { className: T.userInfo, children: [
|
|
4540
|
+
/* @__PURE__ */ o(Xe, { "data-size": "md", className: T.userName, children: "Frodo Baggins" }),
|
|
4541
4541
|
/* @__PURE__ */ o(At, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4542
4542
|
] }),
|
|
4543
|
-
r && /* @__PURE__ */
|
|
4544
|
-
/* @__PURE__ */ o("span", { className:
|
|
4545
|
-
/* @__PURE__ */ o("div", { className:
|
|
4543
|
+
r && /* @__PURE__ */ I("a", { href: "#", className: T.loginLink, children: [
|
|
4544
|
+
/* @__PURE__ */ o("span", { className: T.loginText, children: B("header.login") }),
|
|
4545
|
+
/* @__PURE__ */ o("div", { className: T.underline })
|
|
4546
4546
|
] }),
|
|
4547
|
-
i && /* @__PURE__ */ o("div", { className:
|
|
4547
|
+
i && /* @__PURE__ */ o("div", { className: T.searchButtonWrapper, children: /* @__PURE__ */ I(
|
|
4548
4548
|
xe,
|
|
4549
4549
|
{
|
|
4550
4550
|
variant: "secondary",
|
|
4551
4551
|
"data-color": "main",
|
|
4552
4552
|
"data-size": "md",
|
|
4553
4553
|
onClick: ae,
|
|
4554
|
-
"aria-expanded":
|
|
4555
|
-
"aria-label": B(
|
|
4554
|
+
"aria-expanded": D,
|
|
4555
|
+
"aria-label": B(D ? "header.closeSearch" : "header.openSearch"),
|
|
4556
4556
|
children: [
|
|
4557
|
-
|
|
4558
|
-
/* @__PURE__ */ o("span", { className:
|
|
4557
|
+
D ? /* @__PURE__ */ o(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ o(ft, { "aria-hidden": !0 }),
|
|
4558
|
+
/* @__PURE__ */ o("span", { className: T.buttonText, children: B(D ? "header.close" : "header.search") })
|
|
4559
4559
|
]
|
|
4560
4560
|
}
|
|
4561
4561
|
) }),
|
|
4562
|
-
(
|
|
4562
|
+
(m || O) && /* @__PURE__ */ I(
|
|
4563
4563
|
xe,
|
|
4564
4564
|
{
|
|
4565
4565
|
variant: "primary",
|
|
4566
4566
|
"data-color": "main",
|
|
4567
4567
|
"data-size": "md",
|
|
4568
4568
|
onClick: ie,
|
|
4569
|
-
"aria-expanded":
|
|
4570
|
-
"aria-label": B(
|
|
4571
|
-
className:
|
|
4569
|
+
"aria-expanded": C,
|
|
4570
|
+
"aria-label": B(C ? "header.closeMenu" : "header.openMenu"),
|
|
4571
|
+
className: T.menuButton,
|
|
4572
4572
|
children: [
|
|
4573
|
-
|
|
4574
|
-
/* @__PURE__ */ o("span", { className:
|
|
4573
|
+
C ? /* @__PURE__ */ o(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ o(Jn, { "aria-hidden": !0 }),
|
|
4574
|
+
/* @__PURE__ */ o("span", { className: T.buttonText, children: B(C ? "header.close" : "header.menu") })
|
|
4575
4575
|
]
|
|
4576
4576
|
}
|
|
4577
4577
|
)
|
|
4578
4578
|
] })
|
|
4579
4579
|
] }),
|
|
4580
|
-
|
|
4581
|
-
/* @__PURE__ */ o("div", { className:
|
|
4582
|
-
/* @__PURE__ */
|
|
4583
|
-
O && (
|
|
4584
|
-
|
|
4585
|
-
/* @__PURE__ */ o("span", { className:
|
|
4586
|
-
/* @__PURE__ */
|
|
4587
|
-
/* @__PURE__ */
|
|
4580
|
+
C && /* @__PURE__ */ o("div", { className: T.menuOverlay, children: /* @__PURE__ */ I("div", { className: T.menuContent, children: [
|
|
4581
|
+
/* @__PURE__ */ o("div", { className: T.menuLeftColumn }),
|
|
4582
|
+
/* @__PURE__ */ I("div", { className: T.menuRightColumn, children: [
|
|
4583
|
+
O && (A || M) && /* @__PURE__ */ I("div", { className: T.menuUtilities, children: [
|
|
4584
|
+
A && /* @__PURE__ */ I("div", { className: T.languageSwitch, children: [
|
|
4585
|
+
/* @__PURE__ */ o("span", { className: T.languageLabel, children: B("header.language") }),
|
|
4586
|
+
/* @__PURE__ */ I(X.TriggerContext, { children: [
|
|
4587
|
+
/* @__PURE__ */ I(
|
|
4588
4588
|
X.Trigger,
|
|
4589
4589
|
{
|
|
4590
|
-
className:
|
|
4590
|
+
className: T.languageLink,
|
|
4591
4591
|
"aria-label": B("header.selectLanguage"),
|
|
4592
4592
|
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4593
4593
|
children: [
|
|
@@ -4602,7 +4602,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4602
4602
|
{
|
|
4603
4603
|
"data-color-scheme": z,
|
|
4604
4604
|
placement: "bottom-start",
|
|
4605
|
-
children: /* @__PURE__ */
|
|
4605
|
+
children: /* @__PURE__ */ I(X.List, { children: [
|
|
4606
4606
|
/* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("NO"), children: "Norsk (NO)" }) }),
|
|
4607
4607
|
/* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("EN"), children: "English (EN)" }) })
|
|
4608
4608
|
] })
|
|
@@ -4610,7 +4610,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4610
4610
|
)
|
|
4611
4611
|
] })
|
|
4612
4612
|
] }),
|
|
4613
|
-
|
|
4613
|
+
M && /* @__PURE__ */ o("div", { className: T.extensionContent, children: /* @__PURE__ */ o(
|
|
4614
4614
|
Ve,
|
|
4615
4615
|
{
|
|
4616
4616
|
"data-size": "sm",
|
|
@@ -4622,26 +4622,26 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4622
4622
|
}
|
|
4623
4623
|
) })
|
|
4624
4624
|
] }),
|
|
4625
|
-
/* @__PURE__ */
|
|
4625
|
+
/* @__PURE__ */ I("div", { className: T.slotContent, children: [
|
|
4626
4626
|
s,
|
|
4627
|
-
O &&
|
|
4627
|
+
O && p && k && k.length > 0 && /* @__PURE__ */ o("nav", { className: T.navList, children: k.map((b, _) => /* @__PURE__ */ o(
|
|
4628
4628
|
ce,
|
|
4629
4629
|
{
|
|
4630
4630
|
href: b.href,
|
|
4631
|
-
className:
|
|
4632
|
-
onClick: (
|
|
4633
|
-
n && (
|
|
4631
|
+
className: T.navLink,
|
|
4632
|
+
onClick: (E) => {
|
|
4633
|
+
n && (E.preventDefault(), n(b.href));
|
|
4634
4634
|
},
|
|
4635
4635
|
children: b.label
|
|
4636
4636
|
},
|
|
4637
4637
|
_
|
|
4638
4638
|
)) })
|
|
4639
4639
|
] }),
|
|
4640
|
-
O && /* @__PURE__ */ o("div", { className:
|
|
4640
|
+
O && /* @__PURE__ */ o("div", { className: T.menuBrand, children: /* @__PURE__ */ o(Q, {}) })
|
|
4641
4641
|
] })
|
|
4642
4642
|
] }) }),
|
|
4643
|
-
|
|
4644
|
-
/* @__PURE__ */
|
|
4643
|
+
D && /* @__PURE__ */ o("div", { className: T.searchOverlay, children: /* @__PURE__ */ I("div", { className: T.searchContent, children: [
|
|
4644
|
+
/* @__PURE__ */ I(Ne, { children: [
|
|
4645
4645
|
/* @__PURE__ */ o(
|
|
4646
4646
|
Ne.Input,
|
|
4647
4647
|
{
|
|
@@ -4654,36 +4654,36 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4654
4654
|
/* @__PURE__ */ o(Ne.Button, { "aria-label": B("header.search") }),
|
|
4655
4655
|
/* @__PURE__ */ o(Ne.ClearButton, { onClick: () => N(""), "aria-label": B("header.clearSearch") })
|
|
4656
4656
|
] }),
|
|
4657
|
-
F && /* @__PURE__ */ o("div", { className:
|
|
4658
|
-
/* @__PURE__ */ o("h3", { className:
|
|
4659
|
-
/* @__PURE__ */ o("ul", { className:
|
|
4657
|
+
F && /* @__PURE__ */ o("div", { className: T.searchResults, children: V.length > 0 ? /* @__PURE__ */ I("div", { className: T.suggestionsSection, children: [
|
|
4658
|
+
/* @__PURE__ */ o("h3", { className: T.suggestionsTitle, children: B("header.suggestions") }),
|
|
4659
|
+
/* @__PURE__ */ o("ul", { className: T.resultList, children: V.slice(0, 5).map((b) => /* @__PURE__ */ o("li", { className: T.resultItem, children: /* @__PURE__ */ I(
|
|
4660
4660
|
"button",
|
|
4661
4661
|
{
|
|
4662
|
-
className:
|
|
4662
|
+
className: T.resultLink,
|
|
4663
4663
|
onClick: () => ue(b.path),
|
|
4664
4664
|
children: [
|
|
4665
|
-
/* @__PURE__ */ o("span", { className:
|
|
4666
|
-
/* @__PURE__ */ o("span", { className:
|
|
4665
|
+
/* @__PURE__ */ o("span", { className: T.suggestionIcon, children: /* @__PURE__ */ o(ft, { "aria-hidden": !0 }) }),
|
|
4666
|
+
/* @__PURE__ */ o("span", { className: T.suggestionText, children: (() => {
|
|
4667
4667
|
const _ = b.title.toLowerCase().indexOf(F.toLowerCase());
|
|
4668
|
-
if (_ === -1) return /* @__PURE__ */ o("span", { className:
|
|
4669
|
-
const
|
|
4670
|
-
return /* @__PURE__ */
|
|
4671
|
-
/* @__PURE__ */ o("span", { className:
|
|
4672
|
-
/* @__PURE__ */ o("span", { className:
|
|
4673
|
-
/* @__PURE__ */ o("span", { className:
|
|
4668
|
+
if (_ === -1) return /* @__PURE__ */ o("span", { className: T.remainingText, children: b.title });
|
|
4669
|
+
const E = b.title.slice(0, _), K = b.title.slice(_, _ + F.length), q = b.title.slice(_ + F.length);
|
|
4670
|
+
return /* @__PURE__ */ I(Vt, { children: [
|
|
4671
|
+
/* @__PURE__ */ o("span", { className: T.remainingText, children: E }),
|
|
4672
|
+
/* @__PURE__ */ o("span", { className: T.highlightedText, children: K }),
|
|
4673
|
+
/* @__PURE__ */ o("span", { className: T.remainingText, children: q })
|
|
4674
4674
|
] });
|
|
4675
4675
|
})() })
|
|
4676
4676
|
]
|
|
4677
4677
|
}
|
|
4678
4678
|
) }, b.id)) }),
|
|
4679
|
-
V.length > 5 && /* @__PURE__ */
|
|
4679
|
+
V.length > 5 && /* @__PURE__ */ I(
|
|
4680
4680
|
ce,
|
|
4681
4681
|
{
|
|
4682
4682
|
href: "#",
|
|
4683
4683
|
"data-color": "neutral",
|
|
4684
|
-
className:
|
|
4684
|
+
className: T.viewAllLink,
|
|
4685
4685
|
onClick: (b) => {
|
|
4686
|
-
b.preventDefault(), n && n(`search/${F}`),
|
|
4686
|
+
b.preventDefault(), n && n(`search/${F}`), j(!1), N("");
|
|
4687
4687
|
},
|
|
4688
4688
|
children: [
|
|
4689
4689
|
B("header.viewAll"),
|
|
@@ -4693,7 +4693,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4693
4693
|
]
|
|
4694
4694
|
}
|
|
4695
4695
|
)
|
|
4696
|
-
] }) : /* @__PURE__ */ o("div", { className:
|
|
4696
|
+
] }) : /* @__PURE__ */ o("div", { className: T.noResults, children: /* @__PURE__ */ I(Xe, { children: [
|
|
4697
4697
|
B("header.noResults"),
|
|
4698
4698
|
' "',
|
|
4699
4699
|
F,
|
|
@@ -4844,7 +4844,7 @@ function ii(t) {
|
|
|
4844
4844
|
}
|
|
4845
4845
|
`;
|
|
4846
4846
|
}
|
|
4847
|
-
const ai = "
|
|
4847
|
+
const ai = "_footer_6xhfo_1", li = "_redSection_6xhfo_7", di = "_redContainer_6xhfo_26", ci = "_shortcutsSection_6xhfo_35", ui = "_shortcutsColumn_6xhfo_43", mi = "_shortcutsTitle_6xhfo_51", pi = "_shortcutsList_6xhfo_60", gi = "_shortcutLink_6xhfo_69", hi = "_slotComponent_6xhfo_92", fi = "_divider_6xhfo_131", ki = "_contactSection_6xhfo_139", yi = "_contactColumn_6xhfo_146", vi = "_contactTitle_6xhfo_154", bi = "_contactContent_6xhfo_163", Ti = "_legalSection_6xhfo_177", Si = "_copyrightText_6xhfo_184", xi = "_legalLinks_6xhfo_193", Ci = "_legalLink_6xhfo_193", wi = "_whiteSection_6xhfo_223", Ii = "_whiteContainer_6xhfo_228", Di = "_whiteContent_6xhfo_241", _i = "_logo_6xhfo_248", Ai = "_redCrossLogo_6xhfo_265", Mi = "_secondaryLogoWrapper_6xhfo_271", Li = "_designSystemLogo_6xhfo_278", ji = "_slotSmall_6xhfo_285", Ei = "_slotLarge_6xhfo_296", L = {
|
|
4848
4848
|
footer: ai,
|
|
4849
4849
|
redSection: li,
|
|
4850
4850
|
redContainer: di,
|
|
@@ -4868,10 +4868,11 @@ const ai = "_footer_q7rao_1", li = "_redSection_q7rao_7", di = "_redContainer_q7
|
|
|
4868
4868
|
whiteContent: Di,
|
|
4869
4869
|
logo: _i,
|
|
4870
4870
|
redCrossLogo: Ai,
|
|
4871
|
+
secondaryLogoWrapper: Mi,
|
|
4871
4872
|
designSystemLogo: Li,
|
|
4872
|
-
slotSmall:
|
|
4873
|
+
slotSmall: ji,
|
|
4873
4874
|
slotLarge: Ei
|
|
4874
|
-
},
|
|
4875
|
+
}, ba = ({
|
|
4875
4876
|
"data-color": t = "additional",
|
|
4876
4877
|
redSectionSlot: e,
|
|
4877
4878
|
whiteSectionSlotSmall: n,
|
|
@@ -4879,34 +4880,34 @@ const ai = "_footer_q7rao_1", li = "_redSection_q7rao_7", di = "_redContainer_q7
|
|
|
4879
4880
|
showPrimaryLogo: a = !0,
|
|
4880
4881
|
primaryLogoSrc: i,
|
|
4881
4882
|
primaryLogoAlt: r = "Røde Kors Logo",
|
|
4882
|
-
secondaryLogo: d = !
|
|
4883
|
-
secondaryLogoSrc: l
|
|
4884
|
-
secondaryLogoSrcDark: c
|
|
4883
|
+
secondaryLogo: d = !1,
|
|
4884
|
+
secondaryLogoSrc: l,
|
|
4885
|
+
secondaryLogoSrcDark: c,
|
|
4885
4886
|
secondaryLogoAlt: v = "Designsystem Logo",
|
|
4886
4887
|
shortcutsLinksLeft: h,
|
|
4887
4888
|
shortcutsLinksRight: f
|
|
4888
4889
|
} = {}) => {
|
|
4889
4890
|
const g = (/* @__PURE__ */ new Date()).getFullYear(), { t: u } = Nt();
|
|
4890
4891
|
Be.useEffect(() => {
|
|
4891
|
-
const
|
|
4892
|
-
if (typeof document > "u" || document.getElementById(
|
|
4893
|
-
const
|
|
4894
|
-
w.id =
|
|
4892
|
+
const A = "rk-footer-inline-styles";
|
|
4893
|
+
if (typeof document > "u" || document.getElementById(A)) return;
|
|
4894
|
+
const C = Fi(L), w = document.createElement("style");
|
|
4895
|
+
w.id = A, w.textContent = C, document.head.appendChild(w);
|
|
4895
4896
|
}, []);
|
|
4896
4897
|
const [y, k] = Be.useState("light");
|
|
4897
4898
|
Be.useEffect(() => {
|
|
4898
4899
|
if (typeof document > "u") return;
|
|
4899
|
-
const
|
|
4900
|
-
k(
|
|
4901
|
-
const w = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
4902
|
-
const
|
|
4903
|
-
k(
|
|
4904
|
-
},
|
|
4905
|
-
return
|
|
4906
|
-
|
|
4900
|
+
const A = document.documentElement, C = A.getAttribute("data-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
4901
|
+
k(C);
|
|
4902
|
+
const w = window.matchMedia("(prefers-color-scheme: dark)"), D = () => {
|
|
4903
|
+
const F = A.getAttribute("data-color-scheme") || (w.matches ? "dark" : "light");
|
|
4904
|
+
k(F);
|
|
4905
|
+
}, j = new MutationObserver(D);
|
|
4906
|
+
return j.observe(A, { attributes: !0, attributeFilter: ["data-color-scheme"] }), w.addEventListener("change", D), () => {
|
|
4907
|
+
j.disconnect(), w.removeEventListener("change", D);
|
|
4907
4908
|
};
|
|
4908
4909
|
}, []);
|
|
4909
|
-
const
|
|
4910
|
+
const p = () => /* @__PURE__ */ I(
|
|
4910
4911
|
"svg",
|
|
4911
4912
|
{
|
|
4912
4913
|
width: "170",
|
|
@@ -4916,7 +4917,7 @@ const ai = "_footer_q7rao_1", li = "_redSection_q7rao_7", di = "_redContainer_q7
|
|
|
4916
4917
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4917
4918
|
"aria-hidden": !0,
|
|
4918
4919
|
focusable: "false",
|
|
4919
|
-
className:
|
|
4920
|
+
className: L.redCrossLogo,
|
|
4920
4921
|
children: [
|
|
4921
4922
|
/* @__PURE__ */ o("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" }),
|
|
4922
4923
|
/* @__PURE__ */ o("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" }),
|
|
@@ -4927,93 +4928,89 @@ const ai = "_footer_q7rao_1", li = "_redSection_q7rao_7", di = "_redContainer_q7
|
|
|
4927
4928
|
/* @__PURE__ */ o("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" }),
|
|
4928
4929
|
/* @__PURE__ */ o("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" }),
|
|
4929
4930
|
/* @__PURE__ */ o("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4930
|
-
/* @__PURE__ */ o("path", { d: "
|
|
4931
|
-
/* @__PURE__ */ o("path", { d: "M50 0L24 0C10.7452 0 0 10.7452 0 24L0 50L24 50C37.2548 50 50 37.2548 50 24L50 0Z", fill: "#D52B1E" }),
|
|
4932
|
-
/* @__PURE__ */ o("path", { d: "M50 69L50 95C50 108.255 37.2548 120 24 120L0 120L0 95L0 69L24 69C37.2548 69 50 81.7452 50 95L50 69Z", fill: "#D52B1E" }),
|
|
4933
|
-
/* @__PURE__ */ o("path", { d: "M100 50L100 24C100 10.7452 112.745 0 126 0L150 0L150 24L150 50L126 50C112.745 50 100 37.2548 100 24L100 50Z", fill: "#D52B1E" }),
|
|
4934
|
-
/* @__PURE__ */ o("path", { d: "M100 95C100 108.255 112.745 120 126 120L150 120L150 95L150 69L126 69C112.745 69 100 81.7452 100 95Z", fill: "#D52B1E" })
|
|
4931
|
+
/* @__PURE__ */ o("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4935
4932
|
]
|
|
4936
4933
|
}
|
|
4937
|
-
),
|
|
4934
|
+
), m = [
|
|
4938
4935
|
{ label: u("footer.shortcutsLinks.services"), href: "#" },
|
|
4939
4936
|
{ label: u("footer.shortcutsLinks.volunteer"), href: "#" },
|
|
4940
4937
|
{ label: u("footer.shortcutsLinks.ourWork"), href: "#" },
|
|
4941
4938
|
{ label: u("footer.shortcutsLinks.about"), href: "#" },
|
|
4942
4939
|
{ label: u("footer.shortcutsLinks.support"), href: "#" },
|
|
4943
4940
|
{ label: u("footer.shortcutsLinks.contact"), href: "#" }
|
|
4944
|
-
],
|
|
4945
|
-
return /* @__PURE__ */
|
|
4946
|
-
/* @__PURE__ */ o("div", { className:
|
|
4947
|
-
/* @__PURE__ */
|
|
4948
|
-
/* @__PURE__ */
|
|
4949
|
-
/* @__PURE__ */ o("h3", { className:
|
|
4950
|
-
/* @__PURE__ */ o("ul", { className:
|
|
4941
|
+
], S = h || m, M = f || m;
|
|
4942
|
+
return /* @__PURE__ */ I("footer", { className: L.footer, "data-color": t, children: [
|
|
4943
|
+
/* @__PURE__ */ o("div", { className: L.redSection, children: /* @__PURE__ */ I("div", { className: L.redContainer, children: [
|
|
4944
|
+
/* @__PURE__ */ I("div", { className: L.shortcutsSection, children: [
|
|
4945
|
+
/* @__PURE__ */ I("nav", { className: L.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
|
|
4946
|
+
/* @__PURE__ */ o("h3", { className: L.shortcutsTitle, children: u("footer.shortcuts") }),
|
|
4947
|
+
/* @__PURE__ */ o("ul", { className: L.shortcutsList, children: S.map((A, C) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(ce, { href: A.href, className: L.shortcutLink, children: A.label }) }, C)) })
|
|
4951
4948
|
] }),
|
|
4952
|
-
/* @__PURE__ */
|
|
4953
|
-
/* @__PURE__ */ o("h3", { className:
|
|
4954
|
-
/* @__PURE__ */ o("ul", { className:
|
|
4949
|
+
/* @__PURE__ */ I("nav", { className: L.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
|
|
4950
|
+
/* @__PURE__ */ o("h3", { className: L.shortcutsTitle, children: u("footer.shortcuts") }),
|
|
4951
|
+
/* @__PURE__ */ o("ul", { className: L.shortcutsList, children: M.map((A, C) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(ce, { href: A.href, className: L.shortcutLink, children: A.label }) }, C)) })
|
|
4955
4952
|
] }),
|
|
4956
|
-
e && /* @__PURE__ */ o("div", { className:
|
|
4953
|
+
e && /* @__PURE__ */ o("div", { className: L.slotComponent, children: e })
|
|
4957
4954
|
] }),
|
|
4958
|
-
/* @__PURE__ */ o("div", { className:
|
|
4959
|
-
/* @__PURE__ */
|
|
4960
|
-
/* @__PURE__ */
|
|
4961
|
-
/* @__PURE__ */ o("h4", { className:
|
|
4962
|
-
/* @__PURE__ */
|
|
4955
|
+
/* @__PURE__ */ o("div", { className: L.divider }),
|
|
4956
|
+
/* @__PURE__ */ I("div", { className: L.contactSection, children: [
|
|
4957
|
+
/* @__PURE__ */ I("div", { className: L.contactColumn, children: [
|
|
4958
|
+
/* @__PURE__ */ o("h4", { className: L.contactTitle, children: u("footer.contact.visitingAddress") }),
|
|
4959
|
+
/* @__PURE__ */ I("div", { className: L.contactContent, children: [
|
|
4963
4960
|
/* @__PURE__ */ o("p", { children: "Hausmannsgate 7 (Korsegården)" }),
|
|
4964
4961
|
/* @__PURE__ */ o("p", { children: "0186 Oslo" })
|
|
4965
4962
|
] })
|
|
4966
4963
|
] }),
|
|
4967
|
-
/* @__PURE__ */
|
|
4968
|
-
/* @__PURE__ */ o("h4", { className:
|
|
4969
|
-
/* @__PURE__ */ o("p", { className:
|
|
4964
|
+
/* @__PURE__ */ I("div", { className: L.contactColumn, children: [
|
|
4965
|
+
/* @__PURE__ */ o("h4", { className: L.contactTitle, children: u("footer.contact.organizationNumber") }),
|
|
4966
|
+
/* @__PURE__ */ o("p", { className: L.contactContent, children: "XXX XXX XXX" })
|
|
4970
4967
|
] }),
|
|
4971
|
-
/* @__PURE__ */
|
|
4972
|
-
/* @__PURE__ */ o("h4", { className:
|
|
4973
|
-
/* @__PURE__ */ o("p", { className:
|
|
4968
|
+
/* @__PURE__ */ I("div", { className: L.contactColumn, children: [
|
|
4969
|
+
/* @__PURE__ */ o("h4", { className: L.contactTitle, children: u("footer.contact.email") }),
|
|
4970
|
+
/* @__PURE__ */ o("p", { className: L.contactContent, children: "post@redcross.no" })
|
|
4974
4971
|
] })
|
|
4975
4972
|
] }),
|
|
4976
|
-
/* @__PURE__ */ o("div", { className:
|
|
4977
|
-
/* @__PURE__ */
|
|
4978
|
-
/* @__PURE__ */
|
|
4973
|
+
/* @__PURE__ */ o("div", { className: L.divider }),
|
|
4974
|
+
/* @__PURE__ */ I("div", { className: L.legalSection, children: [
|
|
4975
|
+
/* @__PURE__ */ I("p", { className: L.copyrightText, children: [
|
|
4979
4976
|
"© ",
|
|
4980
4977
|
g,
|
|
4981
4978
|
" ",
|
|
4982
4979
|
u("footer.copyright")
|
|
4983
4980
|
] }),
|
|
4984
|
-
/* @__PURE__ */
|
|
4985
|
-
/* @__PURE__ */ o(ce, { href: "#", className:
|
|
4986
|
-
/* @__PURE__ */ o(ce, { href: "#", className:
|
|
4987
|
-
/* @__PURE__ */ o(ce, { href: "#", className:
|
|
4988
|
-
/* @__PURE__ */ o(ce, { href: "#", className:
|
|
4981
|
+
/* @__PURE__ */ I("div", { className: L.legalLinks, children: [
|
|
4982
|
+
/* @__PURE__ */ o(ce, { href: "#", className: L.legalLink, children: u("footer.legal.privacy") }),
|
|
4983
|
+
/* @__PURE__ */ o(ce, { href: "#", className: L.legalLink, children: u("footer.legal.press") }),
|
|
4984
|
+
/* @__PURE__ */ o(ce, { href: "#", className: L.legalLink, children: u("footer.legal.procurement") }),
|
|
4985
|
+
/* @__PURE__ */ o(ce, { href: "#", className: L.legalLink, children: u("footer.legal.whistleblowing") })
|
|
4989
4986
|
] })
|
|
4990
4987
|
] })
|
|
4991
4988
|
] }) }),
|
|
4992
|
-
/* @__PURE__ */ o("div", { className:
|
|
4989
|
+
/* @__PURE__ */ o("div", { className: L.whiteSection, children: /* @__PURE__ */ o("div", { className: L.whiteContainer, children: /* @__PURE__ */ I("div", { className: L.whiteContent, children: [
|
|
4993
4990
|
a && (i ? /* @__PURE__ */ o(
|
|
4994
4991
|
"img",
|
|
4995
4992
|
{
|
|
4996
4993
|
src: i,
|
|
4997
4994
|
alt: r,
|
|
4998
|
-
className:
|
|
4995
|
+
className: L.logo,
|
|
4999
4996
|
loading: "lazy"
|
|
5000
4997
|
}
|
|
5001
|
-
) : /* @__PURE__ */ o("div", { className:
|
|
5002
|
-
d &&
|
|
4998
|
+
) : /* @__PURE__ */ o("div", { className: L.logo, children: /* @__PURE__ */ o(p, {}) })),
|
|
4999
|
+
d && l && /* @__PURE__ */ o("div", { className: L.secondaryLogoWrapper, children: /* @__PURE__ */ o(
|
|
5003
5000
|
"img",
|
|
5004
5001
|
{
|
|
5005
|
-
src:
|
|
5002
|
+
src: y === "dark" && c ? c : l,
|
|
5006
5003
|
alt: v,
|
|
5007
|
-
className:
|
|
5004
|
+
className: L.designSystemLogo,
|
|
5008
5005
|
loading: "lazy"
|
|
5009
5006
|
}
|
|
5010
|
-
),
|
|
5011
|
-
n && /* @__PURE__ */ o("div", { className:
|
|
5012
|
-
s && /* @__PURE__ */ o("div", { className:
|
|
5007
|
+
) }),
|
|
5008
|
+
n && /* @__PURE__ */ o("div", { className: L.slotSmall, children: n }),
|
|
5009
|
+
s && /* @__PURE__ */ o("div", { className: L.slotLarge, children: s })
|
|
5013
5010
|
] }) }) })
|
|
5014
5011
|
] });
|
|
5015
5012
|
};
|
|
5016
|
-
function
|
|
5013
|
+
function Fi(t) {
|
|
5017
5014
|
const e = t;
|
|
5018
5015
|
return `
|
|
5019
5016
|
.${e.footer} {
|
|
@@ -5202,17 +5199,31 @@ function ji(t) {
|
|
|
5202
5199
|
margin-left: var(--ds-size-10, 40px);
|
|
5203
5200
|
}
|
|
5204
5201
|
.${e.logo} {
|
|
5205
|
-
height: 43px;
|
|
5206
|
-
width: auto;
|
|
5207
5202
|
display: flex;
|
|
5208
5203
|
align-items: center;
|
|
5204
|
+
justify-content: center;
|
|
5205
|
+
width: 217px;
|
|
5206
|
+
height: 43px;
|
|
5207
|
+
text-decoration: none;
|
|
5208
|
+
color: inherit;
|
|
5209
5209
|
flex-shrink: 0;
|
|
5210
5210
|
}
|
|
5211
|
+
.${e.logo} img {
|
|
5212
|
+
width: 169px;
|
|
5213
|
+
height: auto;
|
|
5214
|
+
display: block;
|
|
5215
|
+
}
|
|
5211
5216
|
.${e.redCrossLogo} {
|
|
5212
5217
|
width: 169px;
|
|
5213
5218
|
height: auto;
|
|
5214
5219
|
display: block;
|
|
5215
5220
|
}
|
|
5221
|
+
.${e.secondaryLogoWrapper} {
|
|
5222
|
+
display: flex;
|
|
5223
|
+
align-items: center;
|
|
5224
|
+
justify-content: center;
|
|
5225
|
+
padding: 0 var(--ds-size-6);
|
|
5226
|
+
}
|
|
5216
5227
|
.${e.designSystemLogo} {
|
|
5217
5228
|
height: 24px;
|
|
5218
5229
|
width: auto;
|
|
@@ -5265,58 +5276,58 @@ export {
|
|
|
5265
5276
|
eo as Alert,
|
|
5266
5277
|
At as Avatar,
|
|
5267
5278
|
to as Badge,
|
|
5268
|
-
|
|
5269
|
-
|
|
5279
|
+
Gi as BadgePosition,
|
|
5280
|
+
$i as Breadcrumbs,
|
|
5270
5281
|
Hi as BreadcrumbsItem,
|
|
5271
|
-
|
|
5272
|
-
|
|
5282
|
+
Ui as BreadcrumbsLink,
|
|
5283
|
+
Wi as BreadcrumbsList,
|
|
5273
5284
|
xe as Button,
|
|
5274
5285
|
no as Card,
|
|
5275
|
-
|
|
5286
|
+
Oi as CardBlock,
|
|
5276
5287
|
Jr as Carousel,
|
|
5277
5288
|
oo as Checkbox,
|
|
5278
|
-
|
|
5289
|
+
Ki as Chip,
|
|
5279
5290
|
nr as DateInput,
|
|
5280
|
-
|
|
5281
|
-
|
|
5291
|
+
Yo as DatePicker,
|
|
5292
|
+
Yi as Details,
|
|
5282
5293
|
qi as Dialog,
|
|
5283
|
-
|
|
5294
|
+
Zi as Divider,
|
|
5284
5295
|
X as Dropdown,
|
|
5285
|
-
|
|
5286
|
-
|
|
5296
|
+
Xi as ErrorSummary,
|
|
5297
|
+
Ji as Field,
|
|
5287
5298
|
es as FieldCounter,
|
|
5288
5299
|
Qr as FieldDescription,
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5300
|
+
Qi as Fieldset,
|
|
5301
|
+
ba as Footer,
|
|
5302
|
+
va as Header,
|
|
5292
5303
|
ts as Heading,
|
|
5293
|
-
|
|
5304
|
+
ea as Input,
|
|
5294
5305
|
ns as Label,
|
|
5295
|
-
|
|
5306
|
+
ka as LanguageProvider,
|
|
5296
5307
|
ce as Link,
|
|
5297
|
-
|
|
5298
|
-
|
|
5308
|
+
ta as List,
|
|
5309
|
+
na as Pagination,
|
|
5299
5310
|
Xe as Paragraph,
|
|
5300
|
-
|
|
5301
|
-
|
|
5311
|
+
ra as Popover,
|
|
5312
|
+
sa as Radio,
|
|
5302
5313
|
Ne as Search,
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5314
|
+
aa as Select,
|
|
5315
|
+
la as SkeletonLoader,
|
|
5316
|
+
da as SkipLink,
|
|
5306
5317
|
Xr as Spinner,
|
|
5307
5318
|
os as Suggestion,
|
|
5308
5319
|
Ve as Switch,
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5320
|
+
ca as Table,
|
|
5321
|
+
ua as Tabs,
|
|
5322
|
+
ma as Tag,
|
|
5323
|
+
pa as Textarea,
|
|
5324
|
+
ga as Textfield,
|
|
5325
|
+
ha as ToggleGroup,
|
|
5326
|
+
fa as Tooltip,
|
|
5316
5327
|
rs as ValidationMessage,
|
|
5317
|
-
|
|
5318
|
-
|
|
5328
|
+
Vi as useCheckboxGroup,
|
|
5329
|
+
ya as useLanguage,
|
|
5319
5330
|
Nt as useLanguageOptional,
|
|
5320
|
-
|
|
5321
|
-
|
|
5331
|
+
oa as usePagination,
|
|
5332
|
+
ia as useRadioGroup
|
|
5322
5333
|
};
|