rk-designsystem 1.1.63 → 1.1.65
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 +586 -474
- package/dist/componentlibrary.umd.js +18 -4
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
2
|
-
import Ht, { forwardRef as
|
|
3
|
-
import { Alert as Vt, Avatar as Kt, BadgePosition as qt, Badge as Yt, Breadcrumbs as Jt, BreadcrumbsList as Zt, BreadcrumbsItem as Qt, BreadcrumbsLink as Xt, Button as Ve, Card as en, CardBlock as tn, Checkbox as nn, useCheckboxGroup as on, Fieldset as St, Chip as rn, Spinner as sn, Details as an, Dialog as ln, Divider as dn, Dropdown as cn, ErrorSummary as un, Field as
|
|
4
|
-
import { startOfMonth as
|
|
5
|
-
import { ChevronLeftIcon as qn, ChevronRightIcon as Yn, ChevronDownIcon as ut, XMarkIcon as
|
|
6
|
-
const Qn =
|
|
1
|
+
import { jsx as d, jsxs as F, Fragment as Ut } from "react/jsx-runtime";
|
|
2
|
+
import Ht, { forwardRef as pe, useState as ne, useEffect as q, useMemo as be, useCallback as se, useRef as $e, createContext as Ot, useContext as $t } from "react";
|
|
3
|
+
import { Alert as Vt, Avatar as Kt, BadgePosition as qt, Badge as Yt, Breadcrumbs as Jt, BreadcrumbsList as Zt, BreadcrumbsItem as Qt, BreadcrumbsLink as Xt, Button as Ve, Card as en, CardBlock as tn, Checkbox as nn, useCheckboxGroup as on, Fieldset as St, Chip as rn, Spinner as sn, Details as an, Dialog as ln, Divider as dn, Dropdown as cn, ErrorSummary as un, Field as pn, FieldDescription as mn, FieldCounter as gn, Heading as fn, Input as hn, Label as kn, Link as yn, List as vn, Pagination as bn, usePagination as Tn, Paragraph as Sn, Popover as xn, Radio as Cn, useRadioGroup as wn, Search as In, SearchInput as Dn, SearchClear as An, SearchButton as _n, Select as Mn, Skeleton as jn, SkipLink as Fn, EXPERIMENTAL_Suggestion as En, Switch as Ln, Table as Bn, Tabs as Nn, Tag as Pn, Textarea as Gn, Textfield as Rn, ToggleGroup as zn, Tooltip as Wn, ValidationMessage as Un } from "@digdir/designsystemet-react";
|
|
4
|
+
import { startOfMonth as ye, isValid as Ue, isSameMonth as ct, startOfWeek as xt, format as xe, addDays as Ct, subMonths as Hn, addMonths as On, isSameDay as $n, isToday as Vn, eachDayOfInterval as Kn } from "date-fns";
|
|
5
|
+
import { ChevronLeftIcon as qn, ChevronRightIcon as Yn, ChevronDownIcon as ut, XMarkIcon as pt, MagnifyingGlassIcon as mt, MenuHamburgerIcon as Jn, HeartIcon as Zn } from "@navikt/aksel-icons";
|
|
6
|
+
const Qn = pe((t, e) => /* @__PURE__ */ d(Vt, { ref: e, ...t }));
|
|
7
7
|
Qn.displayName = "Alert";
|
|
8
|
-
const wt =
|
|
8
|
+
const wt = pe((t, e) => /* @__PURE__ */ d(Kt, { ref: e, ...t }));
|
|
9
9
|
wt.displayName = "Avatar";
|
|
10
|
-
const Xn =
|
|
10
|
+
const Xn = pe((t, e) => /* @__PURE__ */ d(Yt, { ref: e, ...t }));
|
|
11
11
|
Xn.displayName = "Badge";
|
|
12
|
-
const ui = qt,
|
|
12
|
+
const ui = qt, pi = Jt, mi = Zt, gi = Qt, fi = Xt, Te = Ve;
|
|
13
13
|
Te.displayName = "Button";
|
|
14
14
|
const eo = en, hi = tn;
|
|
15
15
|
eo.displayName = "Card";
|
|
16
16
|
const to = nn, no = St, ki = on;
|
|
17
17
|
to.displayName = "Checkbox";
|
|
18
18
|
no.displayName = "Fieldset";
|
|
19
|
-
const
|
|
19
|
+
const yi = rn;
|
|
20
20
|
function He(t) {
|
|
21
21
|
return (e = {}) => {
|
|
22
22
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
@@ -52,8 +52,8 @@ function we(t) {
|
|
|
52
52
|
// [TODO] -- I challenge you to fix the type
|
|
53
53
|
n.valueCallback(c)
|
|
54
54
|
) : c;
|
|
55
|
-
const
|
|
56
|
-
return { value: c, rest:
|
|
55
|
+
const v = e.slice(o.length);
|
|
56
|
+
return { value: c, rest: v };
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function oo(t, e) {
|
|
@@ -159,7 +159,7 @@ const io = {
|
|
|
159
159
|
long: "{{date}} 'kl.' {{time}}",
|
|
160
160
|
medium: "{{date}} {{time}}",
|
|
161
161
|
short: "{{date}} {{time}}"
|
|
162
|
-
},
|
|
162
|
+
}, po = {
|
|
163
163
|
date: He({
|
|
164
164
|
formats: lo,
|
|
165
165
|
defaultWidth: "full"
|
|
@@ -172,14 +172,14 @@ const io = {
|
|
|
172
172
|
formats: uo,
|
|
173
173
|
defaultWidth: "full"
|
|
174
174
|
})
|
|
175
|
-
},
|
|
175
|
+
}, mo = {
|
|
176
176
|
lastWeek: "'forrige' eeee 'kl.' p",
|
|
177
177
|
yesterday: "'i går kl.' p",
|
|
178
178
|
today: "'i dag kl.' p",
|
|
179
179
|
tomorrow: "'i morgen kl.' p",
|
|
180
180
|
nextWeek: "EEEE 'kl.' p",
|
|
181
181
|
other: "P"
|
|
182
|
-
}, go = (t, e, n, r) =>
|
|
182
|
+
}, go = (t, e, n, r) => mo[t], fo = {
|
|
183
183
|
narrow: ["f.Kr.", "e.Kr."],
|
|
184
184
|
abbreviated: ["f.Kr.", "e.Kr."],
|
|
185
185
|
wide: ["før Kristus", "etter Kristus"]
|
|
@@ -217,7 +217,7 @@ const io = {
|
|
|
217
217
|
"november",
|
|
218
218
|
"desember"
|
|
219
219
|
]
|
|
220
|
-
},
|
|
220
|
+
}, yo = {
|
|
221
221
|
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
222
222
|
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
223
223
|
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
@@ -230,7 +230,7 @@ const io = {
|
|
|
230
230
|
"fredag",
|
|
231
231
|
"lørdag"
|
|
232
232
|
]
|
|
233
|
-
},
|
|
233
|
+
}, vo = {
|
|
234
234
|
narrow: {
|
|
235
235
|
am: "a",
|
|
236
236
|
pm: "p",
|
|
@@ -277,11 +277,11 @@ const io = {
|
|
|
277
277
|
defaultWidth: "wide"
|
|
278
278
|
}),
|
|
279
279
|
day: Ce({
|
|
280
|
-
values:
|
|
280
|
+
values: yo,
|
|
281
281
|
defaultWidth: "wide"
|
|
282
282
|
}),
|
|
283
283
|
dayPeriod: Ce({
|
|
284
|
-
values:
|
|
284
|
+
values: vo,
|
|
285
285
|
defaultWidth: "wide"
|
|
286
286
|
})
|
|
287
287
|
}, So = /^(\d+)\.?/i, xo = /\d+/i, Co = {
|
|
@@ -334,9 +334,9 @@ const io = {
|
|
|
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
|
-
}, Fo = {
|
|
338
|
-
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
339
337
|
}, jo = {
|
|
338
|
+
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
339
|
+
}, Fo = {
|
|
340
340
|
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
341
341
|
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
342
342
|
}, Eo = {
|
|
@@ -378,19 +378,19 @@ const io = {
|
|
|
378
378
|
day: we({
|
|
379
379
|
matchPatterns: Mo,
|
|
380
380
|
defaultMatchWidth: "wide",
|
|
381
|
-
parsePatterns:
|
|
381
|
+
parsePatterns: jo,
|
|
382
382
|
defaultParseWidth: "any"
|
|
383
383
|
}),
|
|
384
384
|
dayPeriod: we({
|
|
385
|
-
matchPatterns:
|
|
385
|
+
matchPatterns: Fo,
|
|
386
386
|
defaultMatchWidth: "any",
|
|
387
387
|
parsePatterns: Eo,
|
|
388
388
|
defaultParseWidth: "any"
|
|
389
389
|
})
|
|
390
|
-
},
|
|
390
|
+
}, ve = {
|
|
391
391
|
code: "nb",
|
|
392
392
|
formatDistance: ao,
|
|
393
|
-
formatLong:
|
|
393
|
+
formatLong: po,
|
|
394
394
|
formatRelative: go,
|
|
395
395
|
localize: To,
|
|
396
396
|
match: Lo,
|
|
@@ -398,7 +398,7 @@ const io = {
|
|
|
398
398
|
weekStartsOn: 1,
|
|
399
399
|
firstWeekContainsDate: 4
|
|
400
400
|
}
|
|
401
|
-
}, It = ({ title: t, ...e }) => /* @__PURE__ */
|
|
401
|
+
}, It = ({ title: t, ...e }) => /* @__PURE__ */ F(
|
|
402
402
|
"svg",
|
|
403
403
|
{
|
|
404
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -424,7 +424,7 @@ const io = {
|
|
|
424
424
|
}
|
|
425
425
|
);
|
|
426
426
|
It.displayName = "ChevronLeftIcon";
|
|
427
|
-
const Dt = ({ title: t, ...e }) => /* @__PURE__ */
|
|
427
|
+
const Dt = ({ title: t, ...e }) => /* @__PURE__ */ F(
|
|
428
428
|
"svg",
|
|
429
429
|
{
|
|
430
430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -450,19 +450,19 @@ const Dt = ({ title: t, ...e }) => /* @__PURE__ */ j(
|
|
|
450
450
|
}
|
|
451
451
|
);
|
|
452
452
|
Dt.displayName = "ChevronRightIcon";
|
|
453
|
-
const
|
|
454
|
-
calendarContainer:
|
|
455
|
-
calendarHeader:
|
|
453
|
+
const Bo = "_calendarContainer_10l5p_1", No = "_calendarHeader_10l5p_14", Po = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Ro = "_grid_10l5p_41", zo = "_dayNameCell_10l5p_48", Wo = "_dateCell_10l5p_65", Uo = "_dateNumberContainer_10l5p_90", Ho = "_otherMonth_10l5p_103", Oo = "_selectedDate_10l5p_129", re = {
|
|
454
|
+
calendarContainer: Bo,
|
|
455
|
+
calendarHeader: No,
|
|
456
456
|
monthYear: Po,
|
|
457
|
-
navigationButtons:
|
|
457
|
+
navigationButtons: Go,
|
|
458
458
|
grid: Ro,
|
|
459
|
-
dayNameCell:
|
|
459
|
+
dayNameCell: zo,
|
|
460
460
|
dateCell: Wo,
|
|
461
461
|
dateNumberContainer: Uo,
|
|
462
462
|
otherMonth: Ho,
|
|
463
463
|
selectedDate: Oo
|
|
464
464
|
}, $o = (t) => {
|
|
465
|
-
const e =
|
|
465
|
+
const e = ye(t), n = xt(e, { locale: ve }), r = Ct(n, 41);
|
|
466
466
|
return Kn({ start: n, end: r });
|
|
467
467
|
}, gt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Vo = ({
|
|
468
468
|
initialDate: t = /* @__PURE__ */ new Date(),
|
|
@@ -475,48 +475,48 @@ const No = "_calendarContainer_10l5p_1", Bo = "_calendarHeader_10l5p_14", Po = "
|
|
|
475
475
|
// <-- Destrukturert
|
|
476
476
|
}) => {
|
|
477
477
|
const [s, o] = ne(
|
|
478
|
-
|
|
478
|
+
ye(e && Ue(e) ? e : t)
|
|
479
479
|
);
|
|
480
480
|
q(() => {
|
|
481
481
|
if (e && Ue(e)) {
|
|
482
|
-
const u =
|
|
482
|
+
const u = ye(e);
|
|
483
483
|
ct(u, s) || o(u);
|
|
484
484
|
}
|
|
485
485
|
}, [e]);
|
|
486
|
-
const l = be(() =>
|
|
486
|
+
const l = be(() => ye(/* @__PURE__ */ new Date()), []), a = be(() => !1, [s, l]), c = be(
|
|
487
487
|
() => $o(s),
|
|
488
488
|
[s]
|
|
489
|
-
),
|
|
490
|
-
const u = xt(/* @__PURE__ */ new Date(), { locale:
|
|
489
|
+
), v = be(() => {
|
|
490
|
+
const u = xt(/* @__PURE__ */ new Date(), { locale: ve });
|
|
491
491
|
return Array.from({ length: 7 }).map((T, _) => {
|
|
492
|
-
const A = xe(Ct(u, _), "EEEEEE", { locale:
|
|
492
|
+
const A = xe(Ct(u, _), "EEEEEE", { locale: ve });
|
|
493
493
|
return gt(A);
|
|
494
494
|
});
|
|
495
495
|
}, []), g = se(() => {
|
|
496
|
-
a || o((u) =>
|
|
496
|
+
a || o((u) => ye(Hn(u, 1)));
|
|
497
497
|
}, [a]), k = se(() => {
|
|
498
|
-
o((u) =>
|
|
499
|
-
}, []),
|
|
498
|
+
o((u) => ye(On(u, 1)));
|
|
499
|
+
}, []), m = se(
|
|
500
500
|
(u) => {
|
|
501
501
|
n && n(u);
|
|
502
502
|
},
|
|
503
503
|
[n]
|
|
504
504
|
), f = se(
|
|
505
505
|
(u, T) => {
|
|
506
|
-
(u.key === "Enter" || u.key === " ") && (u.preventDefault(),
|
|
506
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), m(T));
|
|
507
507
|
},
|
|
508
|
-
[
|
|
509
|
-
), h = xe(s, "MMMM", { locale:
|
|
510
|
-
return /* @__PURE__ */
|
|
508
|
+
[m]
|
|
509
|
+
), h = xe(s, "MMMM", { locale: ve }), y = xe(s, "yyyy", { locale: ve }), p = `${gt(h)} ${y}`;
|
|
510
|
+
return /* @__PURE__ */ F(
|
|
511
511
|
"div",
|
|
512
512
|
{
|
|
513
513
|
className: re.calendarContainer,
|
|
514
514
|
"data-color": r,
|
|
515
515
|
"data-size": i,
|
|
516
516
|
children: [
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */ d("span", { className: re.monthYear, children:
|
|
519
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ F("div", { className: re.calendarHeader, children: [
|
|
518
|
+
/* @__PURE__ */ d("span", { className: re.monthYear, children: p }),
|
|
519
|
+
/* @__PURE__ */ F("div", { className: re.navigationButtons, children: [
|
|
520
520
|
/* @__PURE__ */ d(
|
|
521
521
|
Ve,
|
|
522
522
|
{
|
|
@@ -540,7 +540,7 @@ const No = "_calendarContainer_10l5p_1", Bo = "_calendarHeader_10l5p_14", Po = "
|
|
|
540
540
|
)
|
|
541
541
|
] })
|
|
542
542
|
] }),
|
|
543
|
-
/* @__PURE__ */ d("div", { className: re.grid, children:
|
|
543
|
+
/* @__PURE__ */ d("div", { className: re.grid, children: v.map((u) => /* @__PURE__ */ d("div", { className: re.dayNameCell, children: u }, u)) }),
|
|
544
544
|
/* @__PURE__ */ d("div", { className: re.grid, children: c.map((u) => {
|
|
545
545
|
const T = ct(u, s), _ = e && Ue(e) && $n(u, e), A = Vn(u), M = [
|
|
546
546
|
re.dateCell,
|
|
@@ -553,12 +553,12 @@ const No = "_calendarContainer_10l5p_1", Bo = "_calendarHeader_10l5p_14", Po = "
|
|
|
553
553
|
"div",
|
|
554
554
|
{
|
|
555
555
|
className: M,
|
|
556
|
-
onClick: () =>
|
|
556
|
+
onClick: () => m(u),
|
|
557
557
|
onKeyDown: (C) => f(C, u),
|
|
558
558
|
role: "button",
|
|
559
559
|
tabIndex: 0,
|
|
560
560
|
"aria-pressed": _ ?? !1,
|
|
561
|
-
"aria-label": xe(u, "PPP", { locale:
|
|
561
|
+
"aria-label": xe(u, "PPP", { locale: ve }),
|
|
562
562
|
children: /* @__PURE__ */ d("span", { className: re.dateNumberContainer, children: xe(u, "d") })
|
|
563
563
|
},
|
|
564
564
|
u.toISOString()
|
|
@@ -591,7 +591,7 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
591
591
|
!isNaN(n) && n > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
|
|
592
592
|
}
|
|
593
593
|
return e.slice(0, 8);
|
|
594
|
-
}, er =
|
|
594
|
+
}, er = pe(
|
|
595
595
|
(t, e) => {
|
|
596
596
|
const {
|
|
597
597
|
label: n,
|
|
@@ -605,14 +605,14 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
605
605
|
// For selve input-elementet
|
|
606
606
|
value: a,
|
|
607
607
|
defaultValue: c,
|
|
608
|
-
onChange:
|
|
608
|
+
onChange: v,
|
|
609
609
|
readOnly: g,
|
|
610
610
|
placeholder: k = "dd.mm.åååå",
|
|
611
|
-
id:
|
|
611
|
+
id: m,
|
|
612
612
|
name: f,
|
|
613
613
|
required: h,
|
|
614
|
-
disabled:
|
|
615
|
-
onClick:
|
|
614
|
+
disabled: y,
|
|
615
|
+
onClick: p,
|
|
616
616
|
onFocus: u,
|
|
617
617
|
// Send ekstern onFocus videre
|
|
618
618
|
onBlur: T,
|
|
@@ -623,9 +623,9 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
623
623
|
description: C,
|
|
624
624
|
error: D,
|
|
625
625
|
// Bruk error-prop for styling
|
|
626
|
-
"data-color":
|
|
626
|
+
"data-color": j,
|
|
627
627
|
// <-- Destrukturering
|
|
628
|
-
"data-size":
|
|
628
|
+
"data-size": G,
|
|
629
629
|
// <-- Destrukturering
|
|
630
630
|
...L
|
|
631
631
|
} = t, R = a !== void 0, P = $e(null);
|
|
@@ -633,37 +633,37 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
633
633
|
e,
|
|
634
634
|
() => P.current
|
|
635
635
|
);
|
|
636
|
-
const
|
|
636
|
+
const B = se(
|
|
637
637
|
(w) => {
|
|
638
638
|
const E = ht(w), U = kt(E);
|
|
639
639
|
return ft(U);
|
|
640
640
|
},
|
|
641
641
|
[]
|
|
642
642
|
), [I, O] = ne(
|
|
643
|
-
() =>
|
|
643
|
+
() => B(a ?? c)
|
|
644
644
|
);
|
|
645
645
|
q(() => {
|
|
646
646
|
if (R) {
|
|
647
|
-
const w =
|
|
647
|
+
const w = B(a);
|
|
648
648
|
w !== I && (O(w), P.current && P.current.value !== w && (P.current.value = w));
|
|
649
649
|
}
|
|
650
|
-
}, [a, R, I,
|
|
650
|
+
}, [a, R, I, B]);
|
|
651
651
|
const oe = se(
|
|
652
652
|
(w) => {
|
|
653
|
-
const E = w.target, U = E.value, te = I, ee = ht(U).slice(0, 8),
|
|
654
|
-
let
|
|
655
|
-
const W =
|
|
656
|
-
W <= 2 ?
|
|
657
|
-
if (P.current && (O(x), P.current.value = x, P.current.setSelectionRange(
|
|
653
|
+
const E = w.target, U = E.value, te = I, ee = ht(U).slice(0, 8), z = kt(ee), x = ft(z);
|
|
654
|
+
let N = 0;
|
|
655
|
+
const W = z.length;
|
|
656
|
+
W <= 2 ? N = W : W <= 4 ? N = W + 1 : N = W + 2, N = Math.min(N, x.length), requestAnimationFrame(() => {
|
|
657
|
+
if (P.current && (O(x), P.current.value = x, P.current.setSelectionRange(N, N), (x !== te || R) && v)) {
|
|
658
658
|
const $ = {
|
|
659
659
|
...w,
|
|
660
660
|
target: { ...E, value: x }
|
|
661
661
|
};
|
|
662
|
-
|
|
662
|
+
v($, x);
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
},
|
|
666
|
-
[I, R,
|
|
666
|
+
[I, R, v, B]
|
|
667
667
|
), J = [fe.fieldset, s].filter(Boolean).join(" "), Y = [
|
|
668
668
|
fe.inputWrapper,
|
|
669
669
|
o,
|
|
@@ -675,19 +675,19 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
675
675
|
i ? fe.suffixButtonInteractive : ""
|
|
676
676
|
].filter(Boolean).join(" ");
|
|
677
677
|
!n && !A && !M && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
|
|
678
|
-
const ie = n && typeof n == "string" ? M || `${
|
|
678
|
+
const ie = n && typeof n == "string" ? M || `${m}-label` : void 0, Q = C ? `${m}-desc` : void 0, X = D ? `${m}-err` : void 0, S = [Q, X].filter(Boolean).join(" ") || void 0;
|
|
679
679
|
return (
|
|
680
680
|
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
681
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ F(
|
|
682
682
|
"div",
|
|
683
683
|
{
|
|
684
684
|
className: J,
|
|
685
|
-
"data-color":
|
|
686
|
-
"data-size":
|
|
685
|
+
"data-color": j,
|
|
686
|
+
"data-size": G,
|
|
687
687
|
children: [
|
|
688
|
-
n && typeof n == "string" ? /* @__PURE__ */ d("label", { id: ie, htmlFor:
|
|
688
|
+
n && typeof n == "string" ? /* @__PURE__ */ d("label", { id: ie, htmlFor: m, children: n }) : n,
|
|
689
689
|
C && /* @__PURE__ */ d("p", { id: Q, className: fe.description, children: C }),
|
|
690
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ F("div", { className: Y, children: [
|
|
691
691
|
/* @__PURE__ */ d(
|
|
692
692
|
"input",
|
|
693
693
|
{
|
|
@@ -699,11 +699,11 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
699
699
|
value: I,
|
|
700
700
|
readOnly: g,
|
|
701
701
|
placeholder: k,
|
|
702
|
-
id:
|
|
702
|
+
id: m,
|
|
703
703
|
name: f,
|
|
704
704
|
required: h,
|
|
705
|
-
disabled:
|
|
706
|
-
onClick:
|
|
705
|
+
disabled: y,
|
|
706
|
+
onClick: p,
|
|
707
707
|
onChange: oe,
|
|
708
708
|
onFocus: u,
|
|
709
709
|
onBlur: T,
|
|
@@ -721,10 +721,10 @@ const Ko = "_fieldset_16fx7_2", qo = "_description_16fx7_14", Yo = "_error_16fx7
|
|
|
721
721
|
{
|
|
722
722
|
type: "button",
|
|
723
723
|
className: Z,
|
|
724
|
-
onClick:
|
|
725
|
-
tabIndex: i && !
|
|
724
|
+
onClick: y ? void 0 : i,
|
|
725
|
+
tabIndex: i && !y ? 0 : -1,
|
|
726
726
|
"aria-hidden": !i,
|
|
727
|
-
disabled:
|
|
727
|
+
disabled: y,
|
|
728
728
|
"aria-label": i ? "Åpne datovelger" : void 0,
|
|
729
729
|
children: r
|
|
730
730
|
}
|
|
@@ -741,7 +741,7 @@ er.displayName = "DateInput";
|
|
|
741
741
|
function tr(t) {
|
|
742
742
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function yt(t) {
|
|
745
745
|
return tr(t) || Array.isArray(t);
|
|
746
746
|
}
|
|
747
747
|
function nr() {
|
|
@@ -753,15 +753,15 @@ function Je(t, e) {
|
|
|
753
753
|
const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(e.breakpoints || {}));
|
|
754
754
|
return i !== s ? !1 : n.every((o) => {
|
|
755
755
|
const l = t[o], a = e[o];
|
|
756
|
-
return typeof l == "function" ? `${l}` == `${a}` : !
|
|
756
|
+
return typeof l == "function" ? `${l}` == `${a}` : !yt(l) || !yt(a) ? l === a : Je(l, a);
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function vt(t) {
|
|
760
760
|
return t.concat().sort((e, n) => e.name > n.name ? 1 : -1).map((e) => e.options);
|
|
761
761
|
}
|
|
762
762
|
function or(t, e) {
|
|
763
763
|
if (t.length !== e.length) return !1;
|
|
764
|
-
const n =
|
|
764
|
+
const n = vt(t), r = vt(e);
|
|
765
765
|
return n.every((i, s) => {
|
|
766
766
|
const o = r[s];
|
|
767
767
|
return Je(i, o);
|
|
@@ -773,7 +773,7 @@ function Ze(t) {
|
|
|
773
773
|
function Ke(t) {
|
|
774
774
|
return typeof t == "string";
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Ne(t) {
|
|
777
777
|
return typeof t == "boolean";
|
|
778
778
|
}
|
|
779
779
|
function bt(t) {
|
|
@@ -800,13 +800,13 @@ function Ae(t) {
|
|
|
800
800
|
return _e(t).map(Number);
|
|
801
801
|
}
|
|
802
802
|
function ae(t) {
|
|
803
|
-
return t[
|
|
803
|
+
return t[je(t)];
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function je(t) {
|
|
806
806
|
return Math.max(0, t.length - 1);
|
|
807
807
|
}
|
|
808
808
|
function Xe(t, e) {
|
|
809
|
-
return e ===
|
|
809
|
+
return e === je(t);
|
|
810
810
|
}
|
|
811
811
|
function Tt(t, e = 0) {
|
|
812
812
|
return Array.from(Array(t), (n, r) => e + r);
|
|
@@ -876,14 +876,14 @@ function ar(t, e, n, r) {
|
|
|
876
876
|
t.hidden && f();
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
|
-
function
|
|
880
|
-
|
|
879
|
+
function v() {
|
|
880
|
+
m(), i.clear();
|
|
881
881
|
}
|
|
882
|
-
function g(
|
|
882
|
+
function g(y) {
|
|
883
883
|
if (!a) return;
|
|
884
|
-
o || (o =
|
|
885
|
-
const
|
|
886
|
-
for (o =
|
|
884
|
+
o || (o = y, n(), n());
|
|
885
|
+
const p = y - o;
|
|
886
|
+
for (o = y, l += p; l >= s; )
|
|
887
887
|
n(), l -= s;
|
|
888
888
|
const u = l / s;
|
|
889
889
|
r(u), a && (a = e.requestAnimationFrame(g));
|
|
@@ -891,7 +891,7 @@ function ar(t, e, n, r) {
|
|
|
891
891
|
function k() {
|
|
892
892
|
a || (a = e.requestAnimationFrame(g));
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function m() {
|
|
895
895
|
e.cancelAnimationFrame(a), o = null, l = 0, a = 0;
|
|
896
896
|
}
|
|
897
897
|
function f() {
|
|
@@ -899,23 +899,23 @@ function ar(t, e, n, r) {
|
|
|
899
899
|
}
|
|
900
900
|
return {
|
|
901
901
|
init: c,
|
|
902
|
-
destroy:
|
|
902
|
+
destroy: v,
|
|
903
903
|
start: k,
|
|
904
|
-
stop:
|
|
904
|
+
stop: m,
|
|
905
905
|
update: n,
|
|
906
906
|
render: r
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
909
|
function lr(t, e) {
|
|
910
|
-
const n = e === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", o = !r && n ? -1 : 1, l =
|
|
910
|
+
const n = e === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", o = !r && n ? -1 : 1, l = v(), a = g();
|
|
911
911
|
function c(f) {
|
|
912
912
|
const {
|
|
913
913
|
height: h,
|
|
914
|
-
width:
|
|
914
|
+
width: y
|
|
915
915
|
} = f;
|
|
916
|
-
return r ? h :
|
|
916
|
+
return r ? h : y;
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function v() {
|
|
919
919
|
return r ? "top" : n ? "right" : "left";
|
|
920
920
|
}
|
|
921
921
|
function g() {
|
|
@@ -976,42 +976,42 @@ function _t(t, e, n) {
|
|
|
976
976
|
return s = o(k), g;
|
|
977
977
|
}
|
|
978
978
|
function c(k) {
|
|
979
|
-
return
|
|
979
|
+
return v().set(l() + k);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function v() {
|
|
982
982
|
return _t(t, l(), n);
|
|
983
983
|
}
|
|
984
984
|
const g = {
|
|
985
985
|
get: l,
|
|
986
986
|
set: a,
|
|
987
987
|
add: c,
|
|
988
|
-
clone:
|
|
988
|
+
clone: v
|
|
989
989
|
};
|
|
990
990
|
return g;
|
|
991
991
|
}
|
|
992
|
-
function dr(t, e, n, r, i, s, o, l, a, c,
|
|
992
|
+
function dr(t, e, n, r, i, s, o, l, a, c, v, g, k, m, f, h, y, p, u) {
|
|
993
993
|
const {
|
|
994
994
|
cross: T,
|
|
995
995
|
direction: _
|
|
996
996
|
} = t, A = ["INPUT", "SELECT", "TEXTAREA"], M = {
|
|
997
997
|
passive: !1
|
|
998
|
-
}, C = Me(), D = Me(),
|
|
998
|
+
}, C = Me(), D = Me(), j = he(50, 225).constrain(m.measure(20)), G = {
|
|
999
999
|
mouse: 300,
|
|
1000
1000
|
touch: 400
|
|
1001
1001
|
}, L = {
|
|
1002
1002
|
mouse: 500,
|
|
1003
1003
|
touch: 600
|
|
1004
1004
|
}, R = f ? 43 : 25;
|
|
1005
|
-
let P = !1,
|
|
1005
|
+
let P = !1, B = 0, I = 0, O = !1, oe = !1, J = !1, Y = !1;
|
|
1006
1006
|
function de(x) {
|
|
1007
1007
|
if (!u) return;
|
|
1008
|
-
function
|
|
1009
|
-
(
|
|
1008
|
+
function N($) {
|
|
1009
|
+
(Ne(u) || u(x, $)) && w($);
|
|
1010
1010
|
}
|
|
1011
1011
|
const W = e;
|
|
1012
1012
|
C.add(W, "dragstart", ($) => $.preventDefault(), M).add(W, "touchmove", () => {
|
|
1013
1013
|
}, M).add(W, "touchend", () => {
|
|
1014
|
-
}).add(W, "touchstart",
|
|
1014
|
+
}).add(W, "touchstart", N).add(W, "mousedown", N).add(W, "touchcancel", U).add(W, "contextmenu", U).add(W, "click", te, !0);
|
|
1015
1015
|
}
|
|
1016
1016
|
function Z() {
|
|
1017
1017
|
C.clear(), D.clear();
|
|
@@ -1021,31 +1021,31 @@ function dr(t, e, n, r, i, s, o, l, a, c, y, g, k, p, f, h, v, m, u) {
|
|
|
1021
1021
|
D.add(x, "touchmove", E, M).add(x, "touchend", U).add(x, "mousemove", E, M).add(x, "mouseup", U);
|
|
1022
1022
|
}
|
|
1023
1023
|
function Q(x) {
|
|
1024
|
-
const
|
|
1025
|
-
return A.includes(
|
|
1024
|
+
const N = x.nodeName || "";
|
|
1025
|
+
return A.includes(N);
|
|
1026
1026
|
}
|
|
1027
1027
|
function X() {
|
|
1028
|
-
return (f ? L :
|
|
1028
|
+
return (f ? L : G)[Y ? "mouse" : "touch"];
|
|
1029
1029
|
}
|
|
1030
|
-
function S(x,
|
|
1031
|
-
const W = g.add(Qe(x) * -1), $ =
|
|
1032
|
-
return f || H(x) <
|
|
1030
|
+
function S(x, N) {
|
|
1031
|
+
const W = g.add(Qe(x) * -1), $ = v.byDistance(x, !f).distance;
|
|
1032
|
+
return f || H(x) < j ? $ : y && N ? $ * 0.5 : v.byIndex(W.get(), 0).distance;
|
|
1033
1033
|
}
|
|
1034
1034
|
function w(x) {
|
|
1035
|
-
const
|
|
1036
|
-
Y =
|
|
1035
|
+
const N = qe(x, r);
|
|
1036
|
+
Y = N, J = f && N && !x.buttons && P, P = De(i.get(), o.get()) >= 2, !(N && x.button !== 0) && (Q(x.target) || (O = !0, s.pointerDown(x), c.useFriction(0).useDuration(0), i.set(o), ie(), B = s.readPoint(x), I = s.readPoint(x, T), k.emit("pointerDown")));
|
|
1037
1037
|
}
|
|
1038
1038
|
function E(x) {
|
|
1039
1039
|
if (!qe(x, r) && x.touches.length >= 2) return U(x);
|
|
1040
|
-
const W = s.readPoint(x), $ = s.readPoint(x, T), le = De(W,
|
|
1040
|
+
const W = s.readPoint(x), $ = s.readPoint(x, T), le = De(W, B), ce = De($, I);
|
|
1041
1041
|
if (!oe && !Y && (!x.cancelable || (oe = le > ce, !oe)))
|
|
1042
1042
|
return U(x);
|
|
1043
|
-
const
|
|
1044
|
-
le > h && (J = !0), c.useFriction(0.3).useDuration(0.75), l.start(), i.add(_(
|
|
1043
|
+
const me = s.pointerMove(x);
|
|
1044
|
+
le > h && (J = !0), c.useFriction(0.3).useDuration(0.75), l.start(), i.add(_(me)), x.preventDefault();
|
|
1045
1045
|
}
|
|
1046
1046
|
function U(x) {
|
|
1047
|
-
const W =
|
|
1048
|
-
oe = !1, O = !1, D.clear(), c.useDuration(
|
|
1047
|
+
const W = v.byDistance(0, !1).index !== g.get(), $ = s.pointerUp(x) * X(), le = S(_($), W), ce = rr($, le), me = R - 10 * ce, ue = p + ce / 50;
|
|
1048
|
+
oe = !1, O = !1, D.clear(), c.useDuration(me).useFriction(ue), a.distance(le, !f), Y = !1, k.emit("pointerUp");
|
|
1049
1049
|
}
|
|
1050
1050
|
function te(x) {
|
|
1051
1051
|
J && (x.stopPropagation(), x.preventDefault(), J = !1);
|
|
@@ -1072,13 +1072,13 @@ function cr(t, e) {
|
|
|
1072
1072
|
return r = g, i = g, o(g);
|
|
1073
1073
|
}
|
|
1074
1074
|
function a(g) {
|
|
1075
|
-
const k = o(g) - o(i),
|
|
1076
|
-
return i = g,
|
|
1075
|
+
const k = o(g) - o(i), m = s(g) - s(r) > 170;
|
|
1076
|
+
return i = g, m && (r = g), k;
|
|
1077
1077
|
}
|
|
1078
1078
|
function c(g) {
|
|
1079
1079
|
if (!r || !i) return 0;
|
|
1080
|
-
const k = o(i) - o(r),
|
|
1081
|
-
return
|
|
1080
|
+
const k = o(i) - o(r), m = s(g) - s(r), f = s(g) - s(i) > 170, h = k / m;
|
|
1081
|
+
return m && !f && H(h) > 0.1 ? h : 0;
|
|
1082
1082
|
}
|
|
1083
1083
|
return {
|
|
1084
1084
|
pointerDown: l,
|
|
@@ -1108,7 +1108,7 @@ function ur() {
|
|
|
1108
1108
|
measure: t
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function pr(t) {
|
|
1112
1112
|
function e(r) {
|
|
1113
1113
|
return t * (r / 100);
|
|
1114
1114
|
}
|
|
@@ -1116,27 +1116,27 @@ function mr(t) {
|
|
|
1116
1116
|
measure: e
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function mr(t, e, n, r, i, s, o) {
|
|
1120
1120
|
const l = [t].concat(r);
|
|
1121
|
-
let a, c,
|
|
1122
|
-
function k(
|
|
1123
|
-
return i.measureSize(o.measure(
|
|
1121
|
+
let a, c, v = [], g = !1;
|
|
1122
|
+
function k(y) {
|
|
1123
|
+
return i.measureSize(o.measure(y));
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function m(y) {
|
|
1126
1126
|
if (!s) return;
|
|
1127
|
-
c = k(t),
|
|
1128
|
-
function
|
|
1127
|
+
c = k(t), v = r.map(k);
|
|
1128
|
+
function p(u) {
|
|
1129
1129
|
for (const T of u) {
|
|
1130
1130
|
if (g) return;
|
|
1131
|
-
const _ = T.target === t, A = r.indexOf(T.target), M = _ ? c :
|
|
1131
|
+
const _ = T.target === t, A = r.indexOf(T.target), M = _ ? c : v[A], C = k(_ ? t : r[A]);
|
|
1132
1132
|
if (H(C - M) >= 0.5) {
|
|
1133
|
-
|
|
1133
|
+
y.reInit(), e.emit("resize");
|
|
1134
1134
|
break;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
a = new ResizeObserver((u) => {
|
|
1139
|
-
(
|
|
1139
|
+
(Ne(s) || s(y, u)) && p(u);
|
|
1140
1140
|
}), n.requestAnimationFrame(() => {
|
|
1141
1141
|
l.forEach((u) => a.observe(u));
|
|
1142
1142
|
});
|
|
@@ -1145,18 +1145,18 @@ function pr(t, e, n, r, i, s, o) {
|
|
|
1145
1145
|
g = !0, a && a.disconnect();
|
|
1146
1146
|
}
|
|
1147
1147
|
return {
|
|
1148
|
-
init:
|
|
1148
|
+
init: m,
|
|
1149
1149
|
destroy: f
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
1152
|
function gr(t, e, n, r, i, s) {
|
|
1153
|
-
let o = 0, l = 0, a = i, c = s,
|
|
1153
|
+
let o = 0, l = 0, a = i, c = s, v = t.get(), g = 0;
|
|
1154
1154
|
function k() {
|
|
1155
1155
|
const M = r.get() - t.get(), C = !a;
|
|
1156
1156
|
let D = 0;
|
|
1157
|
-
return C ? (o = 0, n.set(r), t.set(r), D = M) : (n.set(t), o += M / a, o *= c,
|
|
1157
|
+
return C ? (o = 0, n.set(r), t.set(r), D = M) : (n.set(t), o += M / a, o *= c, v += o, t.add(o), D = v - g), l = Qe(D), g = v, A;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function m() {
|
|
1160
1160
|
const M = r.get() - e.get();
|
|
1161
1161
|
return H(M) < 1e-3;
|
|
1162
1162
|
}
|
|
@@ -1166,10 +1166,10 @@ function gr(t, e, n, r, i, s) {
|
|
|
1166
1166
|
function h() {
|
|
1167
1167
|
return l;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function y() {
|
|
1170
1170
|
return o;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function p() {
|
|
1173
1173
|
return T(i);
|
|
1174
1174
|
}
|
|
1175
1175
|
function u() {
|
|
@@ -1184,11 +1184,11 @@ function gr(t, e, n, r, i, s) {
|
|
|
1184
1184
|
const A = {
|
|
1185
1185
|
direction: h,
|
|
1186
1186
|
duration: f,
|
|
1187
|
-
velocity:
|
|
1187
|
+
velocity: y,
|
|
1188
1188
|
seek: k,
|
|
1189
|
-
settled:
|
|
1189
|
+
settled: m,
|
|
1190
1190
|
useBaseFriction: u,
|
|
1191
|
-
useBaseDuration:
|
|
1191
|
+
useBaseDuration: p,
|
|
1192
1192
|
useFriction: _,
|
|
1193
1193
|
useDuration: T
|
|
1194
1194
|
};
|
|
@@ -1200,36 +1200,36 @@ function fr(t, e, n, r, i) {
|
|
|
1200
1200
|
function c() {
|
|
1201
1201
|
return !(a || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function v(m) {
|
|
1204
1204
|
if (!c()) return;
|
|
1205
|
-
const f = t.reachedMin(e.get()) ? "min" : "max", h = H(t[f] - e.get()),
|
|
1206
|
-
n.subtract(
|
|
1205
|
+
const f = t.reachedMin(e.get()) ? "min" : "max", h = H(t[f] - e.get()), y = n.get() - e.get(), p = l.constrain(h / o);
|
|
1206
|
+
n.subtract(y * p), !m && H(y) < s && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
|
|
1207
1207
|
}
|
|
1208
|
-
function g(
|
|
1209
|
-
a = !
|
|
1208
|
+
function g(m) {
|
|
1209
|
+
a = !m;
|
|
1210
1210
|
}
|
|
1211
1211
|
return {
|
|
1212
1212
|
shouldConstrain: c,
|
|
1213
|
-
constrain:
|
|
1213
|
+
constrain: v,
|
|
1214
1214
|
toggleActive: g
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
1217
|
function hr(t, e, n, r, i) {
|
|
1218
|
-
const s = he(-e + t, 0), o = g(), l =
|
|
1218
|
+
const s = he(-e + t, 0), o = g(), l = v(), a = k();
|
|
1219
1219
|
function c(f, h) {
|
|
1220
1220
|
return De(f, h) <= 1;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
const f = o[0], h = ae(o),
|
|
1224
|
-
return he(
|
|
1222
|
+
function v() {
|
|
1223
|
+
const f = o[0], h = ae(o), y = o.lastIndexOf(f), p = o.indexOf(h) + 1;
|
|
1224
|
+
return he(y, p);
|
|
1225
1225
|
}
|
|
1226
1226
|
function g() {
|
|
1227
1227
|
return n.map((f, h) => {
|
|
1228
1228
|
const {
|
|
1229
|
-
min:
|
|
1230
|
-
max:
|
|
1229
|
+
min: y,
|
|
1230
|
+
max: p
|
|
1231
1231
|
} = s, u = s.constrain(f), T = !h, _ = Xe(n, h);
|
|
1232
|
-
return T ?
|
|
1232
|
+
return T ? p : _ || c(y, u) ? y : c(p, u) ? p : u;
|
|
1233
1233
|
}).map((f) => parseFloat(f.toFixed(3)));
|
|
1234
1234
|
}
|
|
1235
1235
|
function k() {
|
|
@@ -1252,7 +1252,7 @@ function kr(t, e, n) {
|
|
|
1252
1252
|
limit: he(i, r)
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function yr(t, e, n, r) {
|
|
1256
1256
|
const s = e.min + 0.1, o = e.max + 0.1, {
|
|
1257
1257
|
reachedMin: l,
|
|
1258
1258
|
reachedMax: a
|
|
@@ -1260,16 +1260,16 @@ function vr(t, e, n, r) {
|
|
|
1260
1260
|
function c(k) {
|
|
1261
1261
|
return k === 1 ? a(n.get()) : k === -1 ? l(n.get()) : !1;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function v(k) {
|
|
1264
1264
|
if (!c(k)) return;
|
|
1265
|
-
const
|
|
1266
|
-
r.forEach((f) => f.add(
|
|
1265
|
+
const m = t * (k * -1);
|
|
1266
|
+
r.forEach((f) => f.add(m));
|
|
1267
1267
|
}
|
|
1268
1268
|
return {
|
|
1269
|
-
loop:
|
|
1269
|
+
loop: v
|
|
1270
1270
|
};
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function vr(t) {
|
|
1273
1273
|
const {
|
|
1274
1274
|
max: e,
|
|
1275
1275
|
length: n
|
|
@@ -1288,19 +1288,19 @@ function br(t, e, n, r, i) {
|
|
|
1288
1288
|
endEdge: o
|
|
1289
1289
|
} = t, {
|
|
1290
1290
|
groupSlides: l
|
|
1291
|
-
} = i, a = g().map(e.measure), c = k(),
|
|
1291
|
+
} = i, a = g().map(e.measure), c = k(), v = m();
|
|
1292
1292
|
function g() {
|
|
1293
1293
|
return l(r).map((h) => ae(h)[o] - h[0][s]).map(H);
|
|
1294
1294
|
}
|
|
1295
1295
|
function k() {
|
|
1296
1296
|
return r.map((h) => n[s] - h[s]).map((h) => -H(h));
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1299
|
-
return l(c).map((h) => h[0]).map((h,
|
|
1298
|
+
function m() {
|
|
1299
|
+
return l(c).map((h) => h[0]).map((h, y) => h + a[y]);
|
|
1300
1300
|
}
|
|
1301
1301
|
return {
|
|
1302
1302
|
snaps: c,
|
|
1303
|
-
snapsAligned:
|
|
1303
|
+
snapsAligned: v
|
|
1304
1304
|
};
|
|
1305
1305
|
}
|
|
1306
1306
|
function Tr(t, e, n, r, i, s) {
|
|
@@ -1309,18 +1309,18 @@ function Tr(t, e, n, r, i, s) {
|
|
|
1309
1309
|
} = i, {
|
|
1310
1310
|
min: l,
|
|
1311
1311
|
max: a
|
|
1312
|
-
} = r, c =
|
|
1313
|
-
function
|
|
1314
|
-
const k = o(s),
|
|
1315
|
-
return n.length === 1 ? [s] :
|
|
1316
|
-
const
|
|
1317
|
-
if (
|
|
1318
|
-
const T = ae(
|
|
1312
|
+
} = r, c = v();
|
|
1313
|
+
function v() {
|
|
1314
|
+
const k = o(s), m = !t || e === "keepSnaps";
|
|
1315
|
+
return n.length === 1 ? [s] : m ? k : k.slice(l, a).map((f, h, y) => {
|
|
1316
|
+
const p = !h, u = Xe(y, h);
|
|
1317
|
+
if (p) {
|
|
1318
|
+
const T = ae(y[0]) + 1;
|
|
1319
1319
|
return Tt(T);
|
|
1320
1320
|
}
|
|
1321
1321
|
if (u) {
|
|
1322
|
-
const T =
|
|
1323
|
-
return Tt(T, ae(
|
|
1322
|
+
const T = je(s) - ae(y)[0] + 1;
|
|
1323
|
+
return Tt(T, ae(y)[0]);
|
|
1324
1324
|
}
|
|
1325
1325
|
return f;
|
|
1326
1326
|
});
|
|
@@ -1336,66 +1336,66 @@ function Sr(t, e, n, r, i) {
|
|
|
1336
1336
|
constrain: l
|
|
1337
1337
|
} = r;
|
|
1338
1338
|
function a(f) {
|
|
1339
|
-
return f.concat().sort((h,
|
|
1339
|
+
return f.concat().sort((h, y) => H(h) - H(y))[0];
|
|
1340
1340
|
}
|
|
1341
1341
|
function c(f) {
|
|
1342
|
-
const h = t ? o(f) : l(f),
|
|
1343
|
-
diff:
|
|
1342
|
+
const h = t ? o(f) : l(f), y = e.map((u, T) => ({
|
|
1343
|
+
diff: v(u - h, 0),
|
|
1344
1344
|
index: T
|
|
1345
1345
|
})).sort((u, T) => H(u.diff) - H(T.diff)), {
|
|
1346
|
-
index:
|
|
1347
|
-
} =
|
|
1346
|
+
index: p
|
|
1347
|
+
} = y[0];
|
|
1348
1348
|
return {
|
|
1349
|
-
index:
|
|
1349
|
+
index: p,
|
|
1350
1350
|
distance: h
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const
|
|
1353
|
+
function v(f, h) {
|
|
1354
|
+
const y = [f, f + n, f - n];
|
|
1355
1355
|
if (!t) return f;
|
|
1356
|
-
if (!h) return a(
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1356
|
+
if (!h) return a(y);
|
|
1357
|
+
const p = y.filter((u) => Qe(u) === h);
|
|
1358
|
+
return p.length ? a(p) : ae(y) - n;
|
|
1359
1359
|
}
|
|
1360
1360
|
function g(f, h) {
|
|
1361
|
-
const
|
|
1361
|
+
const y = e[f] - i.get(), p = v(y, h);
|
|
1362
1362
|
return {
|
|
1363
1363
|
index: f,
|
|
1364
|
-
distance:
|
|
1364
|
+
distance: p
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
1367
|
function k(f, h) {
|
|
1368
|
-
const
|
|
1369
|
-
index:
|
|
1368
|
+
const y = i.get() + f, {
|
|
1369
|
+
index: p,
|
|
1370
1370
|
distance: u
|
|
1371
|
-
} = c(
|
|
1371
|
+
} = c(y), T = !t && s(y);
|
|
1372
1372
|
if (!h || T) return {
|
|
1373
|
-
index:
|
|
1373
|
+
index: p,
|
|
1374
1374
|
distance: f
|
|
1375
1375
|
};
|
|
1376
|
-
const _ = e[
|
|
1376
|
+
const _ = e[p] - u, A = f + v(_, 0);
|
|
1377
1377
|
return {
|
|
1378
|
-
index:
|
|
1378
|
+
index: p,
|
|
1379
1379
|
distance: A
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
return {
|
|
1383
1383
|
byDistance: k,
|
|
1384
1384
|
byIndex: g,
|
|
1385
|
-
shortcut:
|
|
1385
|
+
shortcut: v
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
function xr(t, e, n, r, i, s, o) {
|
|
1389
1389
|
function l(g) {
|
|
1390
|
-
const k = g.distance,
|
|
1391
|
-
s.add(k), k && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())),
|
|
1390
|
+
const k = g.distance, m = g.index !== e.get();
|
|
1391
|
+
s.add(k), k && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), m && (n.set(e.get()), e.set(g.index), o.emit("select"));
|
|
1392
1392
|
}
|
|
1393
1393
|
function a(g, k) {
|
|
1394
|
-
const
|
|
1395
|
-
l(
|
|
1394
|
+
const m = i.byDistance(g, k);
|
|
1395
|
+
l(m);
|
|
1396
1396
|
}
|
|
1397
1397
|
function c(g, k) {
|
|
1398
|
-
const
|
|
1398
|
+
const m = e.clone().set(g), f = i.byIndex(m.get(), k);
|
|
1399
1399
|
l(f);
|
|
1400
1400
|
}
|
|
1401
1401
|
return {
|
|
@@ -1409,7 +1409,7 @@ function Cr(t, e, n, r, i, s, o, l) {
|
|
|
1409
1409
|
capture: !0
|
|
1410
1410
|
};
|
|
1411
1411
|
let c = 0;
|
|
1412
|
-
function
|
|
1412
|
+
function v(m) {
|
|
1413
1413
|
if (!l) return;
|
|
1414
1414
|
function f(h) {
|
|
1415
1415
|
if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
|
|
@@ -1417,17 +1417,17 @@ function Cr(t, e, n, r, i, s, o, l) {
|
|
|
1417
1417
|
const u = n.findIndex((T) => T.includes(h));
|
|
1418
1418
|
Ze(u) && (i.useDuration(0), r.index(u, 0), o.emit("slideFocus"));
|
|
1419
1419
|
}
|
|
1420
|
-
s.add(document, "keydown", g, !1), e.forEach((h,
|
|
1421
|
-
s.add(h, "focus", (
|
|
1422
|
-
(
|
|
1420
|
+
s.add(document, "keydown", g, !1), e.forEach((h, y) => {
|
|
1421
|
+
s.add(h, "focus", (p) => {
|
|
1422
|
+
(Ne(l) || l(m, p)) && f(y);
|
|
1423
1423
|
}, a);
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
|
-
function g(
|
|
1427
|
-
|
|
1426
|
+
function g(m) {
|
|
1427
|
+
m.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
|
|
1428
1428
|
}
|
|
1429
1429
|
return {
|
|
1430
|
-
init:
|
|
1430
|
+
init: v
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
1433
|
function Ie(t) {
|
|
@@ -1465,39 +1465,39 @@ function Mt(t, e) {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
function a(k) {
|
|
1467
1467
|
if (s) return;
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1468
|
+
const m = sr(t.direction(k));
|
|
1469
|
+
m !== i && (r.transform = n(m), i = m);
|
|
1470
1470
|
}
|
|
1471
1471
|
function c(k) {
|
|
1472
1472
|
s = !k;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function v() {
|
|
1475
1475
|
s || (r.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
|
|
1476
1476
|
}
|
|
1477
1477
|
return {
|
|
1478
|
-
clear:
|
|
1478
|
+
clear: v,
|
|
1479
1479
|
to: a,
|
|
1480
1480
|
toggleActive: c
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
1483
|
function wr(t, e, n, r, i, s, o, l, a) {
|
|
1484
|
-
const
|
|
1485
|
-
function
|
|
1486
|
-
return C.reduce((
|
|
1484
|
+
const v = Ae(i), g = Ae(i).reverse(), k = p().concat(u());
|
|
1485
|
+
function m(C, D) {
|
|
1486
|
+
return C.reduce((j, G) => j - i[G], D);
|
|
1487
1487
|
}
|
|
1488
1488
|
function f(C, D) {
|
|
1489
|
-
return C.reduce((
|
|
1489
|
+
return C.reduce((j, G) => m(j, D) > 0 ? j.concat([G]) : j, []);
|
|
1490
1490
|
}
|
|
1491
1491
|
function h(C) {
|
|
1492
|
-
return s.map((D,
|
|
1493
|
-
start: D - r[
|
|
1492
|
+
return s.map((D, j) => ({
|
|
1493
|
+
start: D - r[j] + 0.5 + C,
|
|
1494
1494
|
end: D + e - 0.5 + C
|
|
1495
1495
|
}));
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
const
|
|
1497
|
+
function y(C, D, j) {
|
|
1498
|
+
const G = h(D);
|
|
1499
1499
|
return C.map((L) => {
|
|
1500
|
-
const R =
|
|
1500
|
+
const R = j ? 0 : -n, P = j ? n : 0, B = j ? "end" : "start", I = G[L][B];
|
|
1501
1501
|
return {
|
|
1502
1502
|
index: L,
|
|
1503
1503
|
loopPoint: I,
|
|
@@ -1507,30 +1507,30 @@ function wr(t, e, n, r, i, s, o, l, a) {
|
|
|
1507
1507
|
};
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function p() {
|
|
1511
1511
|
const C = o[0], D = f(g, C);
|
|
1512
|
-
return
|
|
1512
|
+
return y(D, n, !1);
|
|
1513
1513
|
}
|
|
1514
1514
|
function u() {
|
|
1515
|
-
const C = e - o[0] - 1, D = f(
|
|
1516
|
-
return
|
|
1515
|
+
const C = e - o[0] - 1, D = f(v, C);
|
|
1516
|
+
return y(D, -n, !0);
|
|
1517
1517
|
}
|
|
1518
1518
|
function T() {
|
|
1519
1519
|
return k.every(({
|
|
1520
1520
|
index: C
|
|
1521
1521
|
}) => {
|
|
1522
|
-
const D =
|
|
1523
|
-
return
|
|
1522
|
+
const D = v.filter((j) => j !== C);
|
|
1523
|
+
return m(D, e) <= 0.1;
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
1526
|
function _() {
|
|
1527
1527
|
k.forEach((C) => {
|
|
1528
1528
|
const {
|
|
1529
1529
|
target: D,
|
|
1530
|
-
translate:
|
|
1531
|
-
slideLocation:
|
|
1530
|
+
translate: j,
|
|
1531
|
+
slideLocation: G
|
|
1532
1532
|
} = C, L = D();
|
|
1533
|
-
L !==
|
|
1533
|
+
L !== G.get() && (j.to(L), G.set(L));
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
function A() {
|
|
@@ -1547,15 +1547,15 @@ function Ir(t, e, n) {
|
|
|
1547
1547
|
let r, i = !1;
|
|
1548
1548
|
function s(a) {
|
|
1549
1549
|
if (!n) return;
|
|
1550
|
-
function c(
|
|
1551
|
-
for (const g of
|
|
1550
|
+
function c(v) {
|
|
1551
|
+
for (const g of v)
|
|
1552
1552
|
if (g.type === "childList") {
|
|
1553
1553
|
a.reInit(), e.emit("slidesChanged");
|
|
1554
1554
|
break;
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
|
-
r = new MutationObserver((
|
|
1558
|
-
i || (
|
|
1557
|
+
r = new MutationObserver((v) => {
|
|
1558
|
+
i || (Ne(n) || n(a, v)) && c(v);
|
|
1559
1559
|
}), r.observe(t, {
|
|
1560
1560
|
childList: !0
|
|
1561
1561
|
});
|
|
@@ -1574,23 +1574,23 @@ function Dr(t, e, n, r) {
|
|
|
1574
1574
|
function c() {
|
|
1575
1575
|
l = new IntersectionObserver((f) => {
|
|
1576
1576
|
a || (f.forEach((h) => {
|
|
1577
|
-
const
|
|
1578
|
-
i[
|
|
1577
|
+
const y = e.indexOf(h.target);
|
|
1578
|
+
i[y] = h;
|
|
1579
1579
|
}), s = null, o = null, n.emit("slidesInView"));
|
|
1580
1580
|
}, {
|
|
1581
1581
|
root: t.parentElement,
|
|
1582
1582
|
threshold: r
|
|
1583
1583
|
}), e.forEach((f) => l.observe(f));
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function v() {
|
|
1586
1586
|
l && l.disconnect(), a = !0;
|
|
1587
1587
|
}
|
|
1588
1588
|
function g(f) {
|
|
1589
|
-
return _e(i).reduce((h,
|
|
1590
|
-
const
|
|
1589
|
+
return _e(i).reduce((h, y) => {
|
|
1590
|
+
const p = parseInt(y), {
|
|
1591
1591
|
isIntersecting: u
|
|
1592
|
-
} = i[
|
|
1593
|
-
return (f && u || !f && !u) && h.push(
|
|
1592
|
+
} = i[p];
|
|
1593
|
+
return (f && u || !f && !u) && h.push(p), h;
|
|
1594
1594
|
}, []);
|
|
1595
1595
|
}
|
|
1596
1596
|
function k(f = !0) {
|
|
@@ -1601,7 +1601,7 @@ function Dr(t, e, n, r) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
return {
|
|
1603
1603
|
init: c,
|
|
1604
|
-
destroy:
|
|
1604
|
+
destroy: v,
|
|
1605
1605
|
get: k
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
@@ -1610,7 +1610,7 @@ function Ar(t, e, n, r, i, s) {
|
|
|
1610
1610
|
measureSize: o,
|
|
1611
1611
|
startEdge: l,
|
|
1612
1612
|
endEdge: a
|
|
1613
|
-
} = t, c = n[0] && i,
|
|
1613
|
+
} = t, c = n[0] && i, v = f(), g = h(), k = n.map(o), m = y();
|
|
1614
1614
|
function f() {
|
|
1615
1615
|
if (!c) return 0;
|
|
1616
1616
|
const u = n[0];
|
|
@@ -1621,39 +1621,39 @@ function Ar(t, e, n, r, i, s) {
|
|
|
1621
1621
|
const u = s.getComputedStyle(ae(r));
|
|
1622
1622
|
return parseFloat(u.getPropertyValue(`margin-${a}`));
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function y() {
|
|
1625
1625
|
return n.map((u, T, _) => {
|
|
1626
1626
|
const A = !T, M = Xe(_, T);
|
|
1627
|
-
return A ? k[T] +
|
|
1627
|
+
return A ? k[T] + v : M ? k[T] + g : _[T + 1][l] - u[l];
|
|
1628
1628
|
}).map(H);
|
|
1629
1629
|
}
|
|
1630
1630
|
return {
|
|
1631
1631
|
slideSizes: k,
|
|
1632
|
-
slideSizesWithGaps:
|
|
1633
|
-
startGap:
|
|
1632
|
+
slideSizesWithGaps: m,
|
|
1633
|
+
startGap: v,
|
|
1634
1634
|
endGap: g
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
1637
|
function _r(t, e, n, r, i, s, o, l, a) {
|
|
1638
1638
|
const {
|
|
1639
1639
|
startEdge: c,
|
|
1640
|
-
endEdge:
|
|
1640
|
+
endEdge: v,
|
|
1641
1641
|
direction: g
|
|
1642
1642
|
} = t, k = Ze(n);
|
|
1643
|
-
function p
|
|
1644
|
-
return Ae(
|
|
1643
|
+
function m(p, u) {
|
|
1644
|
+
return Ae(p).filter((T) => T % u === 0).map((T) => p.slice(T, T + u));
|
|
1645
1645
|
}
|
|
1646
|
-
function f(
|
|
1647
|
-
return
|
|
1648
|
-
const A = ae(u) || 0, M = A === 0, C = T ===
|
|
1649
|
-
return _ && R > e + a && u.push(T), C && u.push(
|
|
1646
|
+
function f(p) {
|
|
1647
|
+
return p.length ? Ae(p).reduce((u, T, _) => {
|
|
1648
|
+
const A = ae(u) || 0, M = A === 0, C = T === je(p), D = i[c] - s[A][c], j = i[c] - s[T][v], G = !r && M ? g(o) : 0, L = !r && C ? g(l) : 0, R = H(j - L - (D + G));
|
|
1649
|
+
return _ && R > e + a && u.push(T), C && u.push(p.length), u;
|
|
1650
1650
|
}, []).map((u, T, _) => {
|
|
1651
1651
|
const A = Math.max(_[T - 1] || 0);
|
|
1652
|
-
return
|
|
1652
|
+
return p.slice(A, u);
|
|
1653
1653
|
}) : [];
|
|
1654
1654
|
}
|
|
1655
|
-
function h(
|
|
1656
|
-
return k ? p
|
|
1655
|
+
function h(p) {
|
|
1656
|
+
return k ? m(p, n) : f(p);
|
|
1657
1657
|
}
|
|
1658
1658
|
return {
|
|
1659
1659
|
groupSlides: h
|
|
@@ -1664,72 +1664,72 @@ function Mr(t, e, n, r, i, s, o) {
|
|
|
1664
1664
|
align: l,
|
|
1665
1665
|
axis: a,
|
|
1666
1666
|
direction: c,
|
|
1667
|
-
startIndex:
|
|
1667
|
+
startIndex: v,
|
|
1668
1668
|
loop: g,
|
|
1669
1669
|
duration: k,
|
|
1670
|
-
dragFree:
|
|
1670
|
+
dragFree: m,
|
|
1671
1671
|
dragThreshold: f,
|
|
1672
1672
|
inViewThreshold: h,
|
|
1673
|
-
slidesToScroll:
|
|
1674
|
-
skipSnaps:
|
|
1673
|
+
slidesToScroll: y,
|
|
1674
|
+
skipSnaps: p,
|
|
1675
1675
|
containScroll: u,
|
|
1676
1676
|
watchResize: T,
|
|
1677
1677
|
watchSlides: _,
|
|
1678
1678
|
watchDrag: A,
|
|
1679
1679
|
watchFocus: M
|
|
1680
|
-
} = s, C = 2, D = ur(),
|
|
1680
|
+
} = s, C = 2, D = ur(), j = D.measure(e), G = n.map(D.measure), L = lr(a, c), R = L.measureSize(j), P = pr(R), B = ir(l, R), I = !g && !!u, O = g || !!u, {
|
|
1681
1681
|
slideSizes: oe,
|
|
1682
1682
|
slideSizesWithGaps: J,
|
|
1683
1683
|
startGap: Y,
|
|
1684
1684
|
endGap: de
|
|
1685
|
-
} = Ar(L,
|
|
1685
|
+
} = Ar(L, j, G, n, O, i), Z = _r(L, R, y, g, j, G, Y, de, C), {
|
|
1686
1686
|
snaps: ie,
|
|
1687
1687
|
snapsAligned: Q
|
|
1688
|
-
} = br(L,
|
|
1688
|
+
} = br(L, B, j, G, Z), X = -ae(ie) + ae(J), {
|
|
1689
1689
|
snapsContained: S,
|
|
1690
1690
|
scrollContainLimit: w
|
|
1691
1691
|
} = hr(R, X, Q, u, C), E = I ? S : Q, {
|
|
1692
1692
|
limit: U
|
|
1693
|
-
} = kr(X, E, g), te = _t(
|
|
1693
|
+
} = kr(X, E, g), te = _t(je(E), v, g), ee = te.clone(), z = Ae(n), x = ({
|
|
1694
1694
|
dragHandler: ke,
|
|
1695
|
-
scrollBody:
|
|
1695
|
+
scrollBody: ze,
|
|
1696
1696
|
scrollBounds: We,
|
|
1697
1697
|
options: {
|
|
1698
|
-
loop:
|
|
1698
|
+
loop: Fe
|
|
1699
1699
|
}
|
|
1700
1700
|
}) => {
|
|
1701
|
-
|
|
1702
|
-
},
|
|
1701
|
+
Fe || We.constrain(ke.pointerDown()), ze.seek();
|
|
1702
|
+
}, N = ({
|
|
1703
1703
|
scrollBody: ke,
|
|
1704
|
-
translate:
|
|
1704
|
+
translate: ze,
|
|
1705
1705
|
location: We,
|
|
1706
|
-
offsetLocation:
|
|
1706
|
+
offsetLocation: Fe,
|
|
1707
1707
|
previousLocation: Lt,
|
|
1708
|
-
scrollLooper:
|
|
1709
|
-
slideLooper:
|
|
1708
|
+
scrollLooper: Bt,
|
|
1709
|
+
slideLooper: Nt,
|
|
1710
1710
|
dragHandler: Pt,
|
|
1711
|
-
animation:
|
|
1711
|
+
animation: Gt,
|
|
1712
1712
|
eventHandler: rt,
|
|
1713
1713
|
scrollBounds: Rt,
|
|
1714
1714
|
options: {
|
|
1715
1715
|
loop: st
|
|
1716
1716
|
}
|
|
1717
1717
|
}, it) => {
|
|
1718
|
-
const at = ke.settled(),
|
|
1719
|
-
dt &&
|
|
1718
|
+
const at = ke.settled(), zt = !Rt.shouldConstrain(), lt = st ? at : at && zt, dt = lt && !Pt.pointerDown();
|
|
1719
|
+
dt && Gt.stop();
|
|
1720
1720
|
const Wt = We.get() * it + Lt.get() * (1 - it);
|
|
1721
|
-
|
|
1722
|
-
}, W = ar(r, i, () => x(Re), (ke) =>
|
|
1721
|
+
Fe.set(Wt), st && (Bt.loop(ke.direction()), Nt.loop()), ze.to(Fe.get()), dt && rt.emit("settle"), lt || rt.emit("scroll");
|
|
1722
|
+
}, W = ar(r, i, () => x(Re), (ke) => N(Re, ke)), $ = 0.68, le = E[te.get()], ce = Ie(le), me = Ie(le), ue = Ie(le), ge = Ie(le), Se = gr(ce, ue, me, ge, k, $), Pe = Sr(g, E, X, U, ge), Ge = xr(W, te, ee, Se, Pe, ge, o), tt = vr(U), nt = Me(), Ft = Dr(e, n, o, h), {
|
|
1723
1723
|
slideRegistry: ot
|
|
1724
|
-
} = Tr(I, u, E, w, Z,
|
|
1724
|
+
} = Tr(I, u, E, w, Z, z), Et = Cr(t, n, ot, Ge, Se, nt, o, M), Re = {
|
|
1725
1725
|
ownerDocument: r,
|
|
1726
1726
|
ownerWindow: i,
|
|
1727
1727
|
eventHandler: o,
|
|
1728
|
-
containerRect:
|
|
1729
|
-
slideRects:
|
|
1728
|
+
containerRect: j,
|
|
1729
|
+
slideRects: G,
|
|
1730
1730
|
animation: W,
|
|
1731
1731
|
axis: L,
|
|
1732
|
-
dragHandler: dr(L, t, r, i, ge, cr(L, i), ce, W,
|
|
1732
|
+
dragHandler: dr(L, t, r, i, ge, cr(L, i), ce, W, Ge, Se, Pe, te, o, P, m, f, p, $, A),
|
|
1733
1733
|
eventStore: nt,
|
|
1734
1734
|
percentOfView: P,
|
|
1735
1735
|
index: te,
|
|
@@ -1737,22 +1737,22 @@ function Mr(t, e, n, r, i, s, o) {
|
|
|
1737
1737
|
limit: U,
|
|
1738
1738
|
location: ce,
|
|
1739
1739
|
offsetLocation: ue,
|
|
1740
|
-
previousLocation:
|
|
1740
|
+
previousLocation: me,
|
|
1741
1741
|
options: s,
|
|
1742
|
-
resizeHandler:
|
|
1742
|
+
resizeHandler: mr(e, o, i, n, L, T, D),
|
|
1743
1743
|
scrollBody: Se,
|
|
1744
1744
|
scrollBounds: fr(U, ue, ge, Se, P),
|
|
1745
|
-
scrollLooper:
|
|
1745
|
+
scrollLooper: yr(X, U, ue, [ce, ue, me, ge]),
|
|
1746
1746
|
scrollProgress: tt,
|
|
1747
1747
|
scrollSnapList: E.map(tt.get),
|
|
1748
1748
|
scrollSnaps: E,
|
|
1749
1749
|
scrollTarget: Pe,
|
|
1750
|
-
scrollTo:
|
|
1750
|
+
scrollTo: Ge,
|
|
1751
1751
|
slideLooper: wr(L, R, X, oe, J, ie, E, ue, n),
|
|
1752
1752
|
slideFocus: Et,
|
|
1753
1753
|
slidesHandler: Ir(e, o, _),
|
|
1754
|
-
slidesInView:
|
|
1755
|
-
slideIndexes:
|
|
1754
|
+
slidesInView: Ft,
|
|
1755
|
+
slideIndexes: z,
|
|
1756
1756
|
slideRegistry: ot,
|
|
1757
1757
|
slidesToScroll: Z,
|
|
1758
1758
|
target: ge,
|
|
@@ -1760,7 +1760,7 @@ function Mr(t, e, n, r, i, s, o) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
return Re;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function jr() {
|
|
1764
1764
|
let t = {}, e;
|
|
1765
1765
|
function n(c) {
|
|
1766
1766
|
e = c;
|
|
@@ -1769,13 +1769,13 @@ function Fr() {
|
|
|
1769
1769
|
return t[c] || [];
|
|
1770
1770
|
}
|
|
1771
1771
|
function i(c) {
|
|
1772
|
-
return r(c).forEach((
|
|
1772
|
+
return r(c).forEach((v) => v(e, c)), a;
|
|
1773
1773
|
}
|
|
1774
|
-
function s(c,
|
|
1775
|
-
return t[c] = r(c).concat([
|
|
1774
|
+
function s(c, v) {
|
|
1775
|
+
return t[c] = r(c).concat([v]), a;
|
|
1776
1776
|
}
|
|
1777
|
-
function o(c,
|
|
1778
|
-
return t[c] = r(c).filter((g) => g !==
|
|
1777
|
+
function o(c, v) {
|
|
1778
|
+
return t[c] = r(c).filter((g) => g !== v), a;
|
|
1779
1779
|
}
|
|
1780
1780
|
function l() {
|
|
1781
1781
|
t = {};
|
|
@@ -1789,7 +1789,7 @@ function Fr() {
|
|
|
1789
1789
|
};
|
|
1790
1790
|
return a;
|
|
1791
1791
|
}
|
|
1792
|
-
const
|
|
1792
|
+
const Fr = {
|
|
1793
1793
|
align: "center",
|
|
1794
1794
|
axis: "x",
|
|
1795
1795
|
container: null,
|
|
@@ -1845,93 +1845,93 @@ function Lr(t) {
|
|
|
1845
1845
|
destroy: r
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1849
|
-
const r = t.ownerDocument, i = r.defaultView, s = Er(i), o = Lr(s), l = Me(), a =
|
|
1848
|
+
function Be(t, e, n) {
|
|
1849
|
+
const r = t.ownerDocument, i = r.defaultView, s = Er(i), o = Lr(s), l = Me(), a = jr(), {
|
|
1850
1850
|
mergeOptions: c,
|
|
1851
|
-
optionsAtMedia:
|
|
1851
|
+
optionsAtMedia: v,
|
|
1852
1852
|
optionsMediaQueries: g
|
|
1853
1853
|
} = s, {
|
|
1854
1854
|
on: k,
|
|
1855
|
-
off:
|
|
1855
|
+
off: m,
|
|
1856
1856
|
emit: f
|
|
1857
1857
|
} = a, h = L;
|
|
1858
|
-
let
|
|
1858
|
+
let y = !1, p, u = c(Fr, Be.globalOptions), T = c(u), _ = [], A, M, C;
|
|
1859
1859
|
function D() {
|
|
1860
1860
|
const {
|
|
1861
|
-
container:
|
|
1861
|
+
container: z,
|
|
1862
1862
|
slides: x
|
|
1863
1863
|
} = T;
|
|
1864
|
-
M = (Ke(
|
|
1864
|
+
M = (Ke(z) ? t.querySelector(z) : z) || t.children[0];
|
|
1865
1865
|
const W = Ke(x) ? M.querySelectorAll(x) : x;
|
|
1866
1866
|
C = [].slice.call(W || M.children);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1869
|
-
const x = Mr(t, M, C, r, i,
|
|
1870
|
-
if (
|
|
1871
|
-
const
|
|
1868
|
+
function j(z) {
|
|
1869
|
+
const x = Mr(t, M, C, r, i, z, a);
|
|
1870
|
+
if (z.loop && !x.slideLooper.canLoop()) {
|
|
1871
|
+
const N = Object.assign({}, z, {
|
|
1872
1872
|
loop: !1
|
|
1873
1873
|
});
|
|
1874
|
-
return
|
|
1874
|
+
return j(N);
|
|
1875
1875
|
}
|
|
1876
1876
|
return x;
|
|
1877
1877
|
}
|
|
1878
|
-
function z
|
|
1879
|
-
|
|
1880
|
-
options:
|
|
1881
|
-
}) =>
|
|
1878
|
+
function G(z, x) {
|
|
1879
|
+
y || (u = c(u, z), T = v(u), _ = x || _, D(), p = j(T), g([u, ..._.map(({
|
|
1880
|
+
options: N
|
|
1881
|
+
}) => N)]).forEach((N) => l.add(N, "change", L)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(ee), p.eventHandler.init(ee), p.resizeHandler.init(ee), p.slidesHandler.init(ee), p.options.loop && p.slideLooper.loop(), M.offsetParent && C.length && p.dragHandler.init(ee), A = o.init(ee, _)));
|
|
1882
1882
|
}
|
|
1883
|
-
function L(
|
|
1884
|
-
const
|
|
1885
|
-
R(),
|
|
1886
|
-
startIndex:
|
|
1887
|
-
},
|
|
1883
|
+
function L(z, x) {
|
|
1884
|
+
const N = Z();
|
|
1885
|
+
R(), G(c({
|
|
1886
|
+
startIndex: N
|
|
1887
|
+
}, z), x), a.emit("reInit");
|
|
1888
1888
|
}
|
|
1889
1889
|
function R() {
|
|
1890
|
-
|
|
1890
|
+
p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(), l.clear();
|
|
1891
1891
|
}
|
|
1892
1892
|
function P() {
|
|
1893
|
-
|
|
1893
|
+
y || (y = !0, l.clear(), R(), a.emit("destroy"), a.clear());
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
!T.active ||
|
|
1895
|
+
function B(z, x, N) {
|
|
1896
|
+
!T.active || y || (p.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : T.duration), p.scrollTo.index(z, N || 0));
|
|
1897
1897
|
}
|
|
1898
|
-
function I(
|
|
1899
|
-
const x =
|
|
1900
|
-
|
|
1898
|
+
function I(z) {
|
|
1899
|
+
const x = p.index.add(1).get();
|
|
1900
|
+
B(x, z, -1);
|
|
1901
1901
|
}
|
|
1902
|
-
function O(
|
|
1903
|
-
const x =
|
|
1904
|
-
|
|
1902
|
+
function O(z) {
|
|
1903
|
+
const x = p.index.add(-1).get();
|
|
1904
|
+
B(x, z, 1);
|
|
1905
1905
|
}
|
|
1906
1906
|
function oe() {
|
|
1907
|
-
return
|
|
1907
|
+
return p.index.add(1).get() !== Z();
|
|
1908
1908
|
}
|
|
1909
1909
|
function J() {
|
|
1910
|
-
return
|
|
1910
|
+
return p.index.add(-1).get() !== Z();
|
|
1911
1911
|
}
|
|
1912
1912
|
function Y() {
|
|
1913
|
-
return
|
|
1913
|
+
return p.scrollSnapList;
|
|
1914
1914
|
}
|
|
1915
1915
|
function de() {
|
|
1916
|
-
return
|
|
1916
|
+
return p.scrollProgress.get(p.offsetLocation.get());
|
|
1917
1917
|
}
|
|
1918
1918
|
function Z() {
|
|
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 Q() {
|
|
1925
|
-
return
|
|
1925
|
+
return p.slidesInView.get();
|
|
1926
1926
|
}
|
|
1927
1927
|
function X() {
|
|
1928
|
-
return
|
|
1928
|
+
return p.slidesInView.get(!1);
|
|
1929
1929
|
}
|
|
1930
1930
|
function S() {
|
|
1931
1931
|
return A;
|
|
1932
1932
|
}
|
|
1933
1933
|
function w() {
|
|
1934
|
-
return
|
|
1934
|
+
return p;
|
|
1935
1935
|
}
|
|
1936
1936
|
function E() {
|
|
1937
1937
|
return t;
|
|
@@ -1948,7 +1948,7 @@ function Ne(t, e, n) {
|
|
|
1948
1948
|
containerNode: U,
|
|
1949
1949
|
internalEngine: w,
|
|
1950
1950
|
destroy: P,
|
|
1951
|
-
off:
|
|
1951
|
+
off: m,
|
|
1952
1952
|
on: k,
|
|
1953
1953
|
emit: f,
|
|
1954
1954
|
plugins: S,
|
|
@@ -1959,15 +1959,15 @@ function Ne(t, e, n) {
|
|
|
1959
1959
|
scrollPrev: O,
|
|
1960
1960
|
scrollProgress: de,
|
|
1961
1961
|
scrollSnapList: Y,
|
|
1962
|
-
scrollTo:
|
|
1962
|
+
scrollTo: B,
|
|
1963
1963
|
selectedScrollSnap: Z,
|
|
1964
1964
|
slideNodes: te,
|
|
1965
1965
|
slidesInView: Q,
|
|
1966
1966
|
slidesNotInView: X
|
|
1967
1967
|
};
|
|
1968
|
-
return
|
|
1968
|
+
return G(e, n), setTimeout(() => a.emit("init"), 0), ee;
|
|
1969
1969
|
}
|
|
1970
|
-
|
|
1970
|
+
Be.globalOptions = void 0;
|
|
1971
1971
|
function et(t = {}, e = []) {
|
|
1972
1972
|
const n = $e(t), r = $e(e), [i, s] = ne(), [o, l] = ne(), a = se(() => {
|
|
1973
1973
|
i && i.reInit(n.current, r.current);
|
|
@@ -1978,21 +1978,21 @@ function et(t = {}, e = []) {
|
|
|
1978
1978
|
or(r.current, e) || (r.current = e, a());
|
|
1979
1979
|
}, [e, a]), q(() => {
|
|
1980
1980
|
if (nr() && o) {
|
|
1981
|
-
|
|
1982
|
-
const c =
|
|
1981
|
+
Be.globalOptions = et.globalOptions;
|
|
1982
|
+
const c = Be(o, n.current, r.current);
|
|
1983
1983
|
return s(c), () => c.destroy();
|
|
1984
1984
|
} else
|
|
1985
1985
|
s(void 0);
|
|
1986
1986
|
}, [o, s]), [l, i];
|
|
1987
1987
|
}
|
|
1988
1988
|
et.globalOptions = void 0;
|
|
1989
|
-
const
|
|
1990
|
-
carouselContainer:
|
|
1991
|
-
viewport:
|
|
1989
|
+
const Br = "_carouselContainer_1bu1s_1", Nr = "_viewport_1bu1s_11", Pr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Rr = "_slideInner_1bu1s_37", zr = "_loaderOverlay_1bu1s_45", Wr = "_image_1bu1s_55", Ur = "_loaded_1bu1s_66", Hr = "_empty_1bu1s_78", Or = "_controls_1bu1s_84", $r = "_arrows_1bu1s_94", Vr = "_dots_1bu1s_104", Kr = "_dot_1bu1s_104", qr = "_dotActive_1bu1s_130", V = {
|
|
1990
|
+
carouselContainer: Br,
|
|
1991
|
+
viewport: Nr,
|
|
1992
1992
|
slides: Pr,
|
|
1993
|
-
slide:
|
|
1993
|
+
slide: Gr,
|
|
1994
1994
|
slideInner: Rr,
|
|
1995
|
-
loaderOverlay:
|
|
1995
|
+
loaderOverlay: zr,
|
|
1996
1996
|
image: Wr,
|
|
1997
1997
|
loaded: Ur,
|
|
1998
1998
|
empty: Hr,
|
|
@@ -2012,48 +2012,48 @@ const Nr = "_carouselContainer_1bu1s_1", Br = "_viewport_1bu1s_11", Pr = "_slide
|
|
|
2012
2012
|
slideSpacing: l = 16,
|
|
2013
2013
|
cornerRadius: a = 0,
|
|
2014
2014
|
"data-color": c,
|
|
2015
|
-
"data-size":
|
|
2015
|
+
"data-size": v
|
|
2016
2016
|
}) => {
|
|
2017
2017
|
const g = {
|
|
2018
2018
|
loop: !0,
|
|
2019
2019
|
align: "start",
|
|
2020
2020
|
containScroll: "trimSnaps",
|
|
2021
2021
|
slidesToScroll: 1
|
|
2022
|
-
}, [k,
|
|
2022
|
+
}, [k, m] = et(g), [f, h] = ne(0), [y, p] = ne([]), [u, T] = ne([]);
|
|
2023
2023
|
q(() => {
|
|
2024
2024
|
T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
|
|
2025
2025
|
}, [t]);
|
|
2026
2026
|
const _ = se((P) => {
|
|
2027
|
-
T((
|
|
2028
|
-
const I = [...
|
|
2027
|
+
T((B) => {
|
|
2028
|
+
const I = [...B];
|
|
2029
2029
|
return I[P] = !0, I;
|
|
2030
2030
|
});
|
|
2031
2031
|
}, []), A = be(() => n * 1e3, [n]), M = se(() => {
|
|
2032
|
-
|
|
2033
|
-
}, [
|
|
2032
|
+
m && h(m.selectedScrollSnap());
|
|
2033
|
+
}, [m]), C = se((P) => m && m.scrollTo(P), [m]), D = se(() => m && m.scrollPrev(), [m]), j = se(() => m && m.scrollNext(), [m]);
|
|
2034
2034
|
q(() => {
|
|
2035
|
-
if (
|
|
2036
|
-
return
|
|
2037
|
-
|
|
2035
|
+
if (m)
|
|
2036
|
+
return m.on("select", M), m.on("reInit", M), p(m.scrollSnapList()), () => {
|
|
2037
|
+
m.off("select", M), m.off("reInit", M);
|
|
2038
2038
|
};
|
|
2039
|
-
}, [
|
|
2040
|
-
|
|
2041
|
-
}, [
|
|
2042
|
-
if (!e || !
|
|
2039
|
+
}, [m, M]), q(() => {
|
|
2040
|
+
m && (m.reInit(), p(m.scrollSnapList()));
|
|
2041
|
+
}, [m, t, o, l]), q(() => {
|
|
2042
|
+
if (!e || !m || !t || t.length <= 1) return;
|
|
2043
2043
|
const P = window.setInterval(() => {
|
|
2044
|
-
|
|
2044
|
+
m.canScrollNext() && m.scrollNext();
|
|
2045
2045
|
}, A);
|
|
2046
2046
|
return () => {
|
|
2047
2047
|
window.clearInterval(P);
|
|
2048
2048
|
};
|
|
2049
|
-
}, [e, A,
|
|
2050
|
-
const
|
|
2051
|
-
return /* @__PURE__ */
|
|
2049
|
+
}, [e, A, m, t]);
|
|
2050
|
+
const G = Math.max(1, o), L = `${100 / G}%`, R = l / 2;
|
|
2051
|
+
return /* @__PURE__ */ F(
|
|
2052
2052
|
"div",
|
|
2053
2053
|
{
|
|
2054
2054
|
className: V.carouselContainer,
|
|
2055
2055
|
"data-color": c,
|
|
2056
|
-
"data-size":
|
|
2056
|
+
"data-size": v,
|
|
2057
2057
|
"data-variant": s,
|
|
2058
2058
|
children: [
|
|
2059
2059
|
/* @__PURE__ */ d("div", { className: V.viewport, ref: k, children: /* @__PURE__ */ d(
|
|
@@ -2064,7 +2064,7 @@ const Nr = "_carouselContainer_1bu1s_1", Br = "_viewport_1bu1s_11", Pr = "_slide
|
|
|
2064
2064
|
marginLeft: `-${R}px`,
|
|
2065
2065
|
marginRight: `-${R}px`
|
|
2066
2066
|
},
|
|
2067
|
-
children: t && t.length > 0 ? t.map((P,
|
|
2067
|
+
children: t && t.length > 0 ? t.map((P, B) => /* @__PURE__ */ d(
|
|
2068
2068
|
"div",
|
|
2069
2069
|
{
|
|
2070
2070
|
className: V.slide,
|
|
@@ -2076,30 +2076,30 @@ const Nr = "_carouselContainer_1bu1s_1", Br = "_viewport_1bu1s_11", Pr = "_slide
|
|
|
2076
2076
|
overflow: "hidden"
|
|
2077
2077
|
// Ensure radius clips content
|
|
2078
2078
|
},
|
|
2079
|
-
children: /* @__PURE__ */
|
|
2080
|
-
!u[
|
|
2079
|
+
children: /* @__PURE__ */ F("div", { className: V.slideInner, style: { borderRadius: `${a}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
|
|
2080
|
+
!u[B] && /* @__PURE__ */ d("div", { className: V.loaderOverlay, children: /* @__PURE__ */ d(Yr, { "aria-label": "Laster bilde" }) }),
|
|
2081
2081
|
/* @__PURE__ */ d(
|
|
2082
2082
|
"img",
|
|
2083
2083
|
{
|
|
2084
|
-
className: `${V.image} ${u[
|
|
2084
|
+
className: `${V.image} ${u[B] ? V.loaded : V.loadingImage}`,
|
|
2085
2085
|
src: P.src,
|
|
2086
2086
|
alt: P.alt,
|
|
2087
|
-
loading:
|
|
2087
|
+
loading: B < G ? "eager" : "lazy",
|
|
2088
2088
|
crossOrigin: "anonymous",
|
|
2089
|
-
onLoad: () => _(
|
|
2089
|
+
onLoad: () => _(B),
|
|
2090
2090
|
onError: (I) => {
|
|
2091
|
-
I.target.style.display = "none", _(
|
|
2091
|
+
I.target.style.display = "none", _(B);
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
)
|
|
2095
2095
|
] })
|
|
2096
2096
|
},
|
|
2097
|
-
`image-${
|
|
2097
|
+
`image-${B}-${P.src}`
|
|
2098
2098
|
)) : /* @__PURE__ */ d("div", { className: V.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ d("div", { className: V.empty, children: "Ingen bilder" }) })
|
|
2099
2099
|
}
|
|
2100
2100
|
) }),
|
|
2101
|
-
(r || i && t && t.length > 1) && /* @__PURE__ */
|
|
2102
|
-
r && /* @__PURE__ */
|
|
2101
|
+
(r || i && t && t.length > 1) && /* @__PURE__ */ F("div", { className: V.controls, "aria-hidden": "false", children: [
|
|
2102
|
+
r && /* @__PURE__ */ F("div", { className: V.arrows, children: [
|
|
2103
2103
|
/* @__PURE__ */ d(
|
|
2104
2104
|
Te,
|
|
2105
2105
|
{
|
|
@@ -2117,25 +2117,25 @@ const Nr = "_carouselContainer_1bu1s_1", Br = "_viewport_1bu1s_11", Pr = "_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__ */ d(Yn, { "aria-hidden": !0 })
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
2125
2125
|
] }),
|
|
2126
|
-
i && t && t.length > 1 && /* @__PURE__ */ d("div", { className: V.dots, role: "tablist", "aria-label": "Bildeposisjon", children:
|
|
2127
|
-
const I =
|
|
2126
|
+
i && t && t.length > 1 && /* @__PURE__ */ d("div", { className: V.dots, role: "tablist", "aria-label": "Bildeposisjon", children: y.map((P, B) => {
|
|
2127
|
+
const I = B === f;
|
|
2128
2128
|
return /* @__PURE__ */ d(
|
|
2129
2129
|
"button",
|
|
2130
2130
|
{
|
|
2131
2131
|
type: "button",
|
|
2132
2132
|
className: `${V.dot} ${I ? V.dotActive : ""}`,
|
|
2133
|
-
onClick: () => C(
|
|
2134
|
-
"aria-label": `Gå til bilde ${
|
|
2133
|
+
onClick: () => C(B),
|
|
2134
|
+
"aria-label": `Gå til bilde ${B + 1}`,
|
|
2135
2135
|
"aria-selected": I,
|
|
2136
2136
|
role: "tab"
|
|
2137
2137
|
},
|
|
2138
|
-
`dot-${
|
|
2138
|
+
`dot-${B}`
|
|
2139
2139
|
);
|
|
2140
2140
|
}) })
|
|
2141
2141
|
] })
|
|
@@ -2144,24 +2144,24 @@ const Nr = "_carouselContainer_1bu1s_1", Br = "_viewport_1bu1s_11", Pr = "_slide
|
|
|
2144
2144
|
);
|
|
2145
2145
|
};
|
|
2146
2146
|
Jr.displayName = "Carousel";
|
|
2147
|
-
const
|
|
2147
|
+
const vi = an, bi = ln, Ti = dn, K = cn, Si = un, xi = pn, Zr = mn, Qr = gn;
|
|
2148
2148
|
Zr.displayName = "Field.Description";
|
|
2149
2149
|
Qr.displayName = "Field.Counter";
|
|
2150
|
-
const Ci = St, Xr =
|
|
2150
|
+
const Ci = St, Xr = pe((t, e) => /* @__PURE__ */ d(fn, { ref: e, ...t }));
|
|
2151
2151
|
Xr.displayName = "Heading";
|
|
2152
|
-
const wi = hn, es =
|
|
2152
|
+
const wi = hn, es = pe((t, e) => /* @__PURE__ */ d(kn, { ref: e, ...t }));
|
|
2153
2153
|
es.displayName = "Label";
|
|
2154
|
-
const Ee =
|
|
2154
|
+
const Ee = yn, Ii = vn, Di = bn, Ai = Tn, Ye = pe(
|
|
2155
2155
|
(t, e) => /* @__PURE__ */ d(Sn, { ref: e, ...t })
|
|
2156
2156
|
);
|
|
2157
2157
|
Ye.displayName = "Paragraph";
|
|
2158
|
-
const _i = xn, Mi = Cn,
|
|
2158
|
+
const _i = xn, Mi = Cn, ji = wn, Le = Object.assign(In, {
|
|
2159
2159
|
Button: _n,
|
|
2160
2160
|
ClearButton: An,
|
|
2161
2161
|
Input: Dn
|
|
2162
|
-
}),
|
|
2162
|
+
}), Fi = Mn, Ei = jn, Li = Fn, ts = En;
|
|
2163
2163
|
ts.displayName = "Suggestion";
|
|
2164
|
-
const Oe = Ln,
|
|
2164
|
+
const Oe = Ln, Bi = Bn, Ni = Nn, Pi = Pn, Gi = Gn, Ri = Rn, zi = zn, Wi = Wn, ns = pe((t, e) => /* @__PURE__ */ d(Un, { ref: e, ...t }));
|
|
2165
2165
|
ns.displayName = "ValidationMessage";
|
|
2166
2166
|
const os = {
|
|
2167
2167
|
NO: {
|
|
@@ -2261,10 +2261,14 @@ const os = {
|
|
|
2261
2261
|
contribute: "Bidra",
|
|
2262
2262
|
home: "Startside",
|
|
2263
2263
|
getStarted: "Kom i gang",
|
|
2264
|
+
styling: "Styling",
|
|
2264
2265
|
designTokens: "Designtokens",
|
|
2265
2266
|
fonts: "Fonter",
|
|
2266
2267
|
icons: "Bruk av ikoner",
|
|
2267
2268
|
figmaMcp: "Fra Figma til Kode (MCP)",
|
|
2269
|
+
introduction: "Introduksjon",
|
|
2270
|
+
cursor: "Cursor",
|
|
2271
|
+
claudeCode: "Claude Code",
|
|
2268
2272
|
componentCreation: "Komponent Kreasjon",
|
|
2269
2273
|
metadataFiles: "Metadata filer",
|
|
2270
2274
|
developerGuide: "Utviklerguide",
|
|
@@ -2416,7 +2420,42 @@ const os = {
|
|
|
2416
2420
|
},
|
|
2417
2421
|
figmaMcp: {
|
|
2418
2422
|
title: "Arbeidsflyt: Fra Figma til Kode med MCP",
|
|
2423
|
+
introTitle: "Introduksjon til MCP og Arbeidsflyt",
|
|
2419
2424
|
intro: "Denne guiden beskriver hvordan vi bruker Model Context Protocol (MCP) for å koble Figma direkte til utviklingsmiljøet. Dette gjør det mulig å hente designspesifikasjoner, tokens og strukturer automatisk, validert mot vårt designsystem.",
|
|
2425
|
+
whatIsMcpTitle: "Hva er MCP?",
|
|
2426
|
+
whatIsMcpText1: "Model Context Protocol (MCP) er en åpen standard som lar AI-assistenter kommunisere direkte med eksterne datakilder og verktøy. I vår kontekst bruker vi MCP til å koble Figma-designfiler direkte til utviklingsmiljøet vårt.",
|
|
2427
|
+
whatIsMcpText2: "Dette betyr at når du gir AI-en en Figma-lenke, kan den automatisk:",
|
|
2428
|
+
whatIsMcpItem1: "Lese designspesifikasjoner direkte fra Figma",
|
|
2429
|
+
whatIsMcpItem2: "Hente eksakte farger, spacing, typografi og andre design tokens",
|
|
2430
|
+
whatIsMcpItem3: "Forstå komponentstrukturen og hierarkiet",
|
|
2431
|
+
whatIsMcpItem4: "Generere kode som matcher designet nøyaktig",
|
|
2432
|
+
whyUseMcpTitle: "Hvorfor bruke MCP?",
|
|
2433
|
+
whyUseMcpText1: "Tradisjonelt har utviklere måttet manuelt konvertere design til kode, noe som kan være tidkrevende og feilutsatt. Med MCP får vi:",
|
|
2434
|
+
whyUseMcpItem1Title: "Nøyaktighet:",
|
|
2435
|
+
whyUseMcpItem1Text: "AI-en leser designet direkte fra kilde, så ingen informasjon går tapt i oversettelsen.",
|
|
2436
|
+
whyUseMcpItem2Title: "Hastighet:",
|
|
2437
|
+
whyUseMcpItem2Text: "Automatisk konvertering fra design til kode sparer timer med manuelt arbeid.",
|
|
2438
|
+
whyUseMcpItem3Title: "Konsistens:",
|
|
2439
|
+
whyUseMcpItem3Text: "Alle design tokens og komponenter brukes konsekvent, validert mot designsystemet vårt.",
|
|
2440
|
+
whyUseMcpItem4Title: "Effektivitet:",
|
|
2441
|
+
whyUseMcpItem4Text: "Mindre tid på repetitivt arbeid, mer tid på å løse faktiske problemer.",
|
|
2442
|
+
howItWorksTitle: "Hvordan fungerer det?",
|
|
2443
|
+
howItWorksIntro: "Prosessen er enkel og følger disse stegene:",
|
|
2444
|
+
stepByStepTitle: "Steg-for-steg oversikt",
|
|
2445
|
+
stepByStep1Title: "1. Oppsett (kun én gang)",
|
|
2446
|
+
stepByStep1Text: "Du setter opp en lokal MCP-server som kobler Figma til AI-assistenten din. Dette krever en Figma Access Token og litt konfigurasjon.",
|
|
2447
|
+
stepByStep2Title: "2. Hent AI Design System Guide",
|
|
2448
|
+
stepByStep2Text: "Du laster ned en spesiallaget guide som inneholder all informasjon om komponenter, tokens og beste praksis. Dette gir AI-en full kontekst om designsystemet vårt.",
|
|
2449
|
+
stepByStep3Title: "3. Kopier Figma-lenke",
|
|
2450
|
+
stepByStep3Text: "I Figma markerer du den delen av designet du vil implementere og kopierer lenken til den spesifikke komponenten eller rammen.",
|
|
2451
|
+
stepByStep4Title: "4. Gi instruksjoner til AI-en",
|
|
2452
|
+
stepByStep4Text: "Du gir AI-en Figma-lenken sammen med instruksjoner om hva du vil lage. AI-en bruker MCP til å lese designet og genererer kode basert på designsystemet vårt.",
|
|
2453
|
+
stepByStep5Title: "5. Review og juster",
|
|
2454
|
+
stepByStep5Text: "AI-en genererer kode som du kan gjennomgå, teste og justere etter behov. Koden følger automatisk design tokens og komponenter fra designsystemet.",
|
|
2455
|
+
nextStepsTitle: "Neste steg",
|
|
2456
|
+
nextStepsText: "Nå som du forstår grunnleggende om MCP og arbeidsflyten, kan du velge mellom:",
|
|
2457
|
+
nextStepsItem1: "Cursor workflow - for brukere av Cursor IDE",
|
|
2458
|
+
nextStepsItem2: "Claude Code workflow - for brukere av Claude Code",
|
|
2420
2459
|
part1Title: "Del 1: Oppsett av Figma MCP Server",
|
|
2421
2460
|
part1Intro: "Dette gjøres kun én gang for å aktivere integrasjonen i Cursor/Windsurf.",
|
|
2422
2461
|
part1Description: 'For at AI-en skal kunne "lese" Figma-filene, må vi sette opp en lokal kobling.',
|
|
@@ -2472,6 +2511,23 @@ const os = {
|
|
|
2472
2511
|
step0_5ClaudeMethod2Title: "Metode 2: Be Claude om å hente den",
|
|
2473
2512
|
step0_5ClaudeMethod2Text: 'Du kan også be Claude Code direkte: "Please fetch the AI Design System Guide from https://norwegianredcross.github.io/DesignSystem/storybook/AI_DESIGN_SYSTEM_GUIDE.md"',
|
|
2474
2513
|
step0_5ClaudeMethod2Note: "Merk: Dette laster ned filen lokalt, akkurat som curl-kommandoen.",
|
|
2514
|
+
step0_5ClaudeSetupTitle: "Steg 0.6: Be Claude om å lese guiden og sette opp prosjektet",
|
|
2515
|
+
step0_5ClaudeSetupIntro: "Før du begynner å konvertere Figma-design til kode, må du be Claude om å lese gjennom AI Design System Guide og verifisere at prosjektet er satt opp korrekt i henhold til guiden. Dette sikrer at alle nødvendige pakker, CSS-imports og font-oppsett er på plass før konvertering.",
|
|
2516
|
+
step0_5ClaudeSetupStep1: "Be Claude om å lese AI Design System Guide: Gi Claude en prompt som ber den lese filen @componentlibrary/AI_DESIGN_SYSTEM_GUIDE.md (eller den nedlastede filen hvis den er i prosjektroten)",
|
|
2517
|
+
step0_5ClaudeSetupStep2: "Be Claude om å verifisere CSS-imports: Gi Claude en prompt som ber den sjekke at CSS-filene er importert i riktig rekkefølge (base styles først, deretter theme)",
|
|
2518
|
+
step0_5ClaudeSetupStep3: "Be Claude om å verifisere font-oppsett: Gi Claude en prompt som ber den sjekke at Source Sans 3 er konfigurert korrekt (se Font Setup-seksjonen i guiden)",
|
|
2519
|
+
step0_5ClaudeSetupStep4: "Be Claude om å verifisere pakke-installasjon: Gi Claude en prompt som ber den sjekke at alle nødvendige pakker er installert (rk-designsystem, @digdir/designsystemet-css, rk-design-tokens)",
|
|
2520
|
+
step0_5ClaudeSetupStep5: "Be Claude om å verifisere prosjektstruktur: Gi Claude en prompt som ber den sjekke at prosjektstrukturen matcher anbefalingene i guiden",
|
|
2521
|
+
step0_5ClaudeSetupPromptTitle: "Ferdig prompt å kopiere:",
|
|
2522
|
+
step0_5ClaudeSetupPrompt: `Les gjennom AI_DESIGN_SYSTEM_GUIDE.md filen og verifiser at prosjektet mitt er satt opp korrekt i henhold til guiden. Sjekk spesifikt:
|
|
2523
|
+
|
|
2524
|
+
1. At CSS-filene er importert i riktig rekkefølge (base styles først, deretter theme)
|
|
2525
|
+
2. At Source Sans 3 font er konfigurert korrekt (se Font Setup-seksjonen)
|
|
2526
|
+
3. At alle nødvendige pakker er installert (rk-designsystem, @digdir/designsystemet-css, rk-design-tokens)
|
|
2527
|
+
4. At prosjektstrukturen matcher anbefalingene i guiden
|
|
2528
|
+
|
|
2529
|
+
Gi meg en oversikt over hva som er korrekt satt opp og hva som eventuelt må fikses.`,
|
|
2530
|
+
step0_5ClaudeSetupNote: "Du trenger ikke gjøre dette manuelt - be Claude om å gjøre det. Dette steget sikrer at prosjektet er riktig konfigurert før du begynner å konvertere Figma-design. Uten korrekt oppsett kan komponenter og design tokens ikke fungere som forventet.",
|
|
2475
2531
|
step0_5ClaudeUsageTitle: "Bruk av guiden i Claude:",
|
|
2476
2532
|
step0_5ClaudeUsageText: "Etter at guiden er lastet ned, referer til den i dine prompts:",
|
|
2477
2533
|
step0_5ClaudeUsageExample: '"Using the AI_DESIGN_SYSTEM_GUIDE.md file and this Figma link [paste link], create a React component..."',
|
|
@@ -3182,10 +3238,14 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
3182
3238
|
contribute: "Contribute",
|
|
3183
3239
|
home: "Home",
|
|
3184
3240
|
getStarted: "Get Started",
|
|
3241
|
+
styling: "Styling",
|
|
3185
3242
|
designTokens: "Design Tokens",
|
|
3186
3243
|
fonts: "Fonts",
|
|
3187
3244
|
icons: "Using Icons",
|
|
3188
3245
|
figmaMcp: "From Figma to Code (MCP)",
|
|
3246
|
+
introduction: "Introduction",
|
|
3247
|
+
cursor: "Cursor",
|
|
3248
|
+
claudeCode: "Claude Code",
|
|
3189
3249
|
componentCreation: "Component Creation",
|
|
3190
3250
|
metadataFiles: "Metadata Files",
|
|
3191
3251
|
developerGuide: "Developer Guide",
|
|
@@ -3340,7 +3400,42 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
3340
3400
|
},
|
|
3341
3401
|
figmaMcp: {
|
|
3342
3402
|
title: "Workflow: From Figma to Code with MCP",
|
|
3403
|
+
introTitle: "Introduction to MCP and Workflow",
|
|
3343
3404
|
intro: "This guide describes how we use Model Context Protocol (MCP) to connect Figma directly to the development environment. This makes it possible to fetch design specifications, tokens, and structures automatically, validated against our design system.",
|
|
3405
|
+
whatIsMcpTitle: "What is MCP?",
|
|
3406
|
+
whatIsMcpText1: "Model Context Protocol (MCP) is an open standard that allows AI assistants to communicate directly with external data sources and tools. In our context, we use MCP to connect Figma design files directly to our development environment.",
|
|
3407
|
+
whatIsMcpText2: "This means that when you give the AI a Figma link, it can automatically:",
|
|
3408
|
+
whatIsMcpItem1: "Read design specifications directly from Figma",
|
|
3409
|
+
whatIsMcpItem2: "Fetch exact colors, spacing, typography, and other design tokens",
|
|
3410
|
+
whatIsMcpItem3: "Understand component structure and hierarchy",
|
|
3411
|
+
whatIsMcpItem4: "Generate code that matches the design accurately",
|
|
3412
|
+
whyUseMcpTitle: "Why use MCP?",
|
|
3413
|
+
whyUseMcpText1: "Traditionally, developers have had to manually convert designs to code, which can be time-consuming and error-prone. With MCP, we get:",
|
|
3414
|
+
whyUseMcpItem1Title: "Accuracy:",
|
|
3415
|
+
whyUseMcpItem1Text: "The AI reads the design directly from the source, so no information is lost in translation.",
|
|
3416
|
+
whyUseMcpItem2Title: "Speed:",
|
|
3417
|
+
whyUseMcpItem2Text: "Automatic conversion from design to code saves hours of manual work.",
|
|
3418
|
+
whyUseMcpItem3Title: "Consistency:",
|
|
3419
|
+
whyUseMcpItem3Text: "All design tokens and components are used consistently, validated against our design system.",
|
|
3420
|
+
whyUseMcpItem4Title: "Efficiency:",
|
|
3421
|
+
whyUseMcpItem4Text: "Less time on repetitive work, more time solving actual problems.",
|
|
3422
|
+
howItWorksTitle: "How does it work?",
|
|
3423
|
+
howItWorksIntro: "The process is simple and follows these steps:",
|
|
3424
|
+
stepByStepTitle: "Step-by-step overview",
|
|
3425
|
+
stepByStep1Title: "1. Setup (one time only)",
|
|
3426
|
+
stepByStep1Text: "You set up a local MCP server that connects Figma to your AI assistant. This requires a Figma Access Token and some configuration.",
|
|
3427
|
+
stepByStep2Title: "2. Fetch AI Design System Guide",
|
|
3428
|
+
stepByStep2Text: "You download a specially crafted guide containing all information about components, tokens, and best practices. This gives the AI full context about our design system.",
|
|
3429
|
+
stepByStep3Title: "3. Copy Figma link",
|
|
3430
|
+
stepByStep3Text: "In Figma, you mark the part of the design you want to implement and copy the link to that specific component or frame.",
|
|
3431
|
+
stepByStep4Title: "4. Give instructions to the AI",
|
|
3432
|
+
stepByStep4Text: "You give the AI the Figma link along with instructions about what you want to create. The AI uses MCP to read the design and generates code based on our design system.",
|
|
3433
|
+
stepByStep5Title: "5. Review and adjust",
|
|
3434
|
+
stepByStep5Text: "The AI generates code that you can review, test, and adjust as needed. The code automatically follows design tokens and components from our design system.",
|
|
3435
|
+
nextStepsTitle: "Next steps",
|
|
3436
|
+
nextStepsText: "Now that you understand the basics of MCP and the workflow, you can choose between:",
|
|
3437
|
+
nextStepsItem1: "Cursor workflow - for Cursor IDE users",
|
|
3438
|
+
nextStepsItem2: "Claude Code workflow - for Claude Code users",
|
|
3344
3439
|
cursorWorkflowTitle: "Complete Workflow: Cursor",
|
|
3345
3440
|
cursorWorkflowIntro: "Follow these steps to set up and use the Figma MCP workflow in Cursor.",
|
|
3346
3441
|
claudeWorkflowTitle: "Complete Workflow: Claude Code",
|
|
@@ -3396,6 +3491,23 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
3396
3491
|
step0_5ClaudeMethod2Title: "Method 2: Ask Claude to fetch it",
|
|
3397
3492
|
step0_5ClaudeMethod2Text: 'You can also ask Claude Code directly: "Please fetch the AI Design System Guide from https://norwegianredcross.github.io/DesignSystem/storybook/AI_DESIGN_SYSTEM_GUIDE.md"',
|
|
3398
3493
|
step0_5ClaudeMethod2Note: "Note: This downloads the file locally, just like the curl command.",
|
|
3494
|
+
step0_5ClaudeSetupTitle: "Step 0.6: Ask Claude to read the guide and set up the project",
|
|
3495
|
+
step0_5ClaudeSetupIntro: "Before you start converting Figma designs to code, you need to ask Claude to read through the AI Design System Guide and verify that the project is set up correctly according to the guide. This ensures all necessary packages, CSS imports, and font setup are in place before conversion.",
|
|
3496
|
+
step0_5ClaudeSetupStep1: "Ask Claude to read AI Design System Guide: Give Claude a prompt asking it to read the file @componentlibrary/AI_DESIGN_SYSTEM_GUIDE.md (or the downloaded file if it's in the project root)",
|
|
3497
|
+
step0_5ClaudeSetupStep2: "Ask Claude to verify CSS imports: Give Claude a prompt asking it to check that CSS files are imported in the correct order (base styles first, then theme)",
|
|
3498
|
+
step0_5ClaudeSetupStep3: "Ask Claude to verify font setup: Give Claude a prompt asking it to check that Source Sans 3 is configured correctly (see Font Setup section in the guide)",
|
|
3499
|
+
step0_5ClaudeSetupStep4: "Ask Claude to verify package installation: Give Claude a prompt asking it to check that all necessary packages are installed (rk-designsystem, @digdir/designsystemet-css, rk-design-tokens)",
|
|
3500
|
+
step0_5ClaudeSetupStep5: "Ask Claude to verify project structure: Give Claude a prompt asking it to check that the project structure matches the recommendations in the guide",
|
|
3501
|
+
step0_5ClaudeSetupPromptTitle: "Ready-to-copy prompt:",
|
|
3502
|
+
step0_5ClaudeSetupPrompt: `Read through the AI_DESIGN_SYSTEM_GUIDE.md file and verify that my project is set up correctly according to the guide. Specifically check:
|
|
3503
|
+
|
|
3504
|
+
1. That CSS files are imported in the correct order (base styles first, then theme)
|
|
3505
|
+
2. That Source Sans 3 font is configured correctly (see Font Setup section)
|
|
3506
|
+
3. That all necessary packages are installed (rk-designsystem, @digdir/designsystemet-css, rk-design-tokens)
|
|
3507
|
+
4. That the project structure matches the recommendations in the guide
|
|
3508
|
+
|
|
3509
|
+
Give me an overview of what is correctly set up and what might need to be fixed.`,
|
|
3510
|
+
step0_5ClaudeSetupNote: "You don't need to do this manually - ask Claude to do it. This step ensures the project is correctly configured before you start converting Figma designs. Without proper setup, components and design tokens may not work as expected.",
|
|
3399
3511
|
step0_5ClaudeUsageTitle: "Using the guide in Claude:",
|
|
3400
3512
|
step0_5ClaudeUsageText: "After the guide is downloaded, reference it in your prompts:",
|
|
3401
3513
|
step0_5ClaudeUsageExample: '"Using the AI_DESIGN_SYSTEM_GUIDE.md file and this Figma link [paste link], create a React component..."',
|
|
@@ -4008,7 +4120,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4008
4120
|
}
|
|
4009
4121
|
}
|
|
4010
4122
|
}
|
|
4011
|
-
},
|
|
4123
|
+
}, jt = Ot(void 0), Ui = ({ children: t }) => {
|
|
4012
4124
|
const [e, n] = ne("NO"), r = (i) => {
|
|
4013
4125
|
const s = i.split(".");
|
|
4014
4126
|
let o = os[e];
|
|
@@ -4019,13 +4131,13 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4019
4131
|
}
|
|
4020
4132
|
return o;
|
|
4021
4133
|
};
|
|
4022
|
-
return /* @__PURE__ */ d(
|
|
4134
|
+
return /* @__PURE__ */ d(jt.Provider, { value: { language: e, setLanguage: n, t: r }, children: t });
|
|
4023
4135
|
}, rs = () => {
|
|
4024
|
-
const t = $t(
|
|
4136
|
+
const t = $t(jt);
|
|
4025
4137
|
if (t === void 0)
|
|
4026
4138
|
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
4027
4139
|
return t;
|
|
4028
|
-
}, ss = "_header_3zql2_1", is = "_languageSwitch_3zql2_36", as = "_searchOverlay_3zql2_40", ls = "_headerExtension_3zql2_45", ds = "_extensionContentWrapper_3zql2_61", cs = "_extensionContent_3zql2_61", us = "_extensionDivider_3zql2_84",
|
|
4140
|
+
}, ss = "_header_3zql2_1", is = "_languageSwitch_3zql2_36", as = "_searchOverlay_3zql2_40", ls = "_headerExtension_3zql2_45", ds = "_extensionContentWrapper_3zql2_61", cs = "_extensionContent_3zql2_61", us = "_extensionDivider_3zql2_84", ps = "_languageLabel_3zql2_98", ms = "_languageLink_3zql2_104", gs = "_headerInner_3zql2_129", fs = "_logoWrapper_3zql2_146", hs = "_logo_3zql2_146", ks = "_secondaryLogoWrapper_3zql2_169", ys = "_slotComponent_3zql2_178", vs = "_slotContainer_3zql2_188", bs = "_slotText_3zql2_196", Ts = "_secondaryLogo_3zql2_169", Ss = "_redCrossLogo_3zql2_223", xs = "_primaryLogo_3zql2_229", Cs = "_navItems_3zql2_233", ws = "_navLink_3zql2_242", Is = "_actions_3zql2_255", Ds = "_ctaButton_3zql2_263", As = "_themeToggle_3zql2_268", _s = "_userInfo_3zql2_273", Ms = "_userName_3zql2_279", js = "_loginLink_3zql2_286", Fs = "_loginText_3zql2_295", Es = "_underline_3zql2_302", Ls = "_searchButtonWrapper_3zql2_308", Bs = "_buttonText_3zql2_312", Ns = "_menuButton_3zql2_317", Ps = "_menuOverlay_3zql2_322", Gs = "_searchContent_3zql2_356", Rs = "_menuContent_3zql2_366", zs = "_menuLeftColumn_3zql2_375", Ws = "_menuRightColumn_3zql2_381", Us = "_slotContent_3zql2_395", Hs = "_navList_3zql2_408", Os = "_menuUtilities_3zql2_415", $s = "_menuBrand_3zql2_422", Vs = "_suggestionsSection_3zql2_426", Ks = "_suggestionsTitle_3zql2_432", qs = "_searchResults_3zql2_441", Ys = "_resultList_3zql2_447", Js = "_resultItem_3zql2_453", Zs = "_resultLink_3zql2_461", Qs = "_suggestionIcon_3zql2_475", Xs = "_suggestionText_3zql2_488", ei = "_highlightedText_3zql2_495", ti = "_remainingText_3zql2_500", ni = "_viewAllLink_3zql2_513", oi = "_noResults_3zql2_548", b = {
|
|
4029
4141
|
header: ss,
|
|
4030
4142
|
languageSwitch: is,
|
|
4031
4143
|
searchOverlay: as,
|
|
@@ -4033,14 +4145,14 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4033
4145
|
extensionContentWrapper: ds,
|
|
4034
4146
|
extensionContent: cs,
|
|
4035
4147
|
extensionDivider: us,
|
|
4036
|
-
languageLabel:
|
|
4037
|
-
languageLink:
|
|
4148
|
+
languageLabel: ps,
|
|
4149
|
+
languageLink: ms,
|
|
4038
4150
|
headerInner: gs,
|
|
4039
4151
|
logoWrapper: fs,
|
|
4040
4152
|
logo: hs,
|
|
4041
4153
|
secondaryLogoWrapper: ks,
|
|
4042
|
-
slotComponent:
|
|
4043
|
-
slotContainer:
|
|
4154
|
+
slotComponent: ys,
|
|
4155
|
+
slotContainer: vs,
|
|
4044
4156
|
slotText: bs,
|
|
4045
4157
|
secondaryLogo: Ts,
|
|
4046
4158
|
redCrossLogo: Ss,
|
|
@@ -4052,16 +4164,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4052
4164
|
themeToggle: As,
|
|
4053
4165
|
userInfo: _s,
|
|
4054
4166
|
userName: Ms,
|
|
4055
|
-
loginLink:
|
|
4056
|
-
loginText:
|
|
4167
|
+
loginLink: js,
|
|
4168
|
+
loginText: Fs,
|
|
4057
4169
|
underline: Es,
|
|
4058
4170
|
searchButtonWrapper: Ls,
|
|
4059
|
-
buttonText:
|
|
4060
|
-
menuButton:
|
|
4171
|
+
buttonText: Bs,
|
|
4172
|
+
menuButton: Ns,
|
|
4061
4173
|
menuOverlay: Ps,
|
|
4062
|
-
searchContent:
|
|
4174
|
+
searchContent: Gs,
|
|
4063
4175
|
menuContent: Rs,
|
|
4064
|
-
menuLeftColumn:
|
|
4176
|
+
menuLeftColumn: zs,
|
|
4065
4177
|
menuRightColumn: Ws,
|
|
4066
4178
|
slotContent: Us,
|
|
4067
4179
|
navList: Hs,
|
|
@@ -4153,26 +4265,26 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4153
4265
|
ctaLabel: l,
|
|
4154
4266
|
ctaIcon: a = /* @__PURE__ */ d(Zn, { "aria-hidden": !0 }),
|
|
4155
4267
|
onCtaClick: c,
|
|
4156
|
-
showThemeToggle:
|
|
4268
|
+
showThemeToggle: v = !1,
|
|
4157
4269
|
secondaryLogo: g = !1,
|
|
4158
4270
|
secondaryLogoSrc: k,
|
|
4159
|
-
secondaryLogoSrcDark:
|
|
4271
|
+
secondaryLogoSrcDark: m,
|
|
4160
4272
|
secondaryLogoAlt: f = "Secondary Logo",
|
|
4161
4273
|
navItems: h,
|
|
4162
|
-
showNavItems:
|
|
4163
|
-
showMenuButton:
|
|
4274
|
+
showNavItems: y = !0,
|
|
4275
|
+
showMenuButton: p = !0,
|
|
4164
4276
|
showHeaderExtension: u = !1,
|
|
4165
4277
|
showModeToggle: T = !1,
|
|
4166
4278
|
showLanguageSwitch: _ = !1
|
|
4167
4279
|
}) => {
|
|
4168
|
-
const [A, M] = ne(!1), [C, D] = ne(!1), [
|
|
4280
|
+
const [A, M] = ne(!1), [C, D] = ne(!1), [j, G] = ne(""), [L, R] = ne("light"), { language: P, setLanguage: B, t: I } = rs(), [O, oe] = ne(!1);
|
|
4169
4281
|
q(() => {
|
|
4170
4282
|
const S = "rk-header-inline-styles";
|
|
4171
4283
|
if (typeof document > "u" || document.getElementById(S)) return;
|
|
4172
4284
|
const w = si(b), E = document.createElement("style");
|
|
4173
4285
|
E.id = S, E.textContent = w, document.head.appendChild(E);
|
|
4174
4286
|
}, []);
|
|
4175
|
-
const J = () => /* @__PURE__ */
|
|
4287
|
+
const J = () => /* @__PURE__ */ F(
|
|
4176
4288
|
"svg",
|
|
4177
4289
|
{
|
|
4178
4290
|
width: "170",
|
|
@@ -4198,7 +4310,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4198
4310
|
}
|
|
4199
4311
|
);
|
|
4200
4312
|
q(() => {
|
|
4201
|
-
M(!1), D(!1),
|
|
4313
|
+
M(!1), D(!1), G("");
|
|
4202
4314
|
}, [t]), q(() => {
|
|
4203
4315
|
if (!(typeof document > "u") && A && O) {
|
|
4204
4316
|
const S = document.body.style.overflow;
|
|
@@ -4269,16 +4381,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4269
4381
|
}, ie = () => {
|
|
4270
4382
|
D(!C), A && M(!1);
|
|
4271
4383
|
}, Q = be(() => {
|
|
4272
|
-
if (!
|
|
4273
|
-
const S =
|
|
4384
|
+
if (!j.trim()) return [];
|
|
4385
|
+
const S = j.toLowerCase();
|
|
4274
4386
|
return ri.filter(
|
|
4275
4387
|
(w) => w.title.toLowerCase().startsWith(S)
|
|
4276
4388
|
);
|
|
4277
|
-
}, [
|
|
4278
|
-
e && e(S), D(!1),
|
|
4389
|
+
}, [j]), X = (S) => {
|
|
4390
|
+
e && e(S), D(!1), G("");
|
|
4279
4391
|
};
|
|
4280
|
-
return /* @__PURE__ */
|
|
4281
|
-
u && /* @__PURE__ */ d("div", { className: b.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */
|
|
4392
|
+
return /* @__PURE__ */ F("header", { className: b.header, "data-open": A ? "true" : "false", children: [
|
|
4393
|
+
u && /* @__PURE__ */ d("div", { className: b.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ F("div", { className: b.extensionContentWrapper, children: [
|
|
4282
4394
|
T && /* @__PURE__ */ d("div", { className: b.extensionContent, children: /* @__PURE__ */ d(
|
|
4283
4395
|
Oe,
|
|
4284
4396
|
{
|
|
@@ -4291,10 +4403,10 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4291
4403
|
}
|
|
4292
4404
|
) }),
|
|
4293
4405
|
T && _ && /* @__PURE__ */ d("div", { className: b.extensionDivider }),
|
|
4294
|
-
_ && /* @__PURE__ */
|
|
4406
|
+
_ && /* @__PURE__ */ F("div", { className: b.languageSwitch, children: [
|
|
4295
4407
|
/* @__PURE__ */ d("span", { className: b.languageLabel, children: I("header.language") }),
|
|
4296
|
-
/* @__PURE__ */
|
|
4297
|
-
/* @__PURE__ */
|
|
4408
|
+
/* @__PURE__ */ F(K.TriggerContext, { children: [
|
|
4409
|
+
/* @__PURE__ */ F(
|
|
4298
4410
|
K.Trigger,
|
|
4299
4411
|
{
|
|
4300
4412
|
className: b.languageLink,
|
|
@@ -4312,17 +4424,17 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4312
4424
|
{
|
|
4313
4425
|
"data-color-scheme": L,
|
|
4314
4426
|
placement: "bottom-end",
|
|
4315
|
-
children: /* @__PURE__ */
|
|
4316
|
-
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () =>
|
|
4317
|
-
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () =>
|
|
4427
|
+
children: /* @__PURE__ */ F(K.List, { children: [
|
|
4428
|
+
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () => B("NO"), children: "Norsk (NO)" }) }),
|
|
4429
|
+
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () => B("EN"), children: "English (EN)" }) })
|
|
4318
4430
|
] })
|
|
4319
4431
|
}
|
|
4320
4432
|
)
|
|
4321
4433
|
] })
|
|
4322
4434
|
] })
|
|
4323
4435
|
] }) }),
|
|
4324
|
-
/* @__PURE__ */
|
|
4325
|
-
/* @__PURE__ */
|
|
4436
|
+
/* @__PURE__ */ F("div", { className: b.headerInner, children: [
|
|
4437
|
+
/* @__PURE__ */ F("div", { className: b.logoWrapper, children: [
|
|
4326
4438
|
/* @__PURE__ */ d(
|
|
4327
4439
|
Ee,
|
|
4328
4440
|
{
|
|
@@ -4336,13 +4448,13 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4336
4448
|
/* @__PURE__ */ d("div", { className: b.secondaryLogoWrapper, children: g && k ? /* @__PURE__ */ d(
|
|
4337
4449
|
"img",
|
|
4338
4450
|
{
|
|
4339
|
-
src: L === "dark" &&
|
|
4451
|
+
src: L === "dark" && m ? m : k,
|
|
4340
4452
|
alt: f,
|
|
4341
4453
|
className: b.secondaryLogo
|
|
4342
4454
|
}
|
|
4343
4455
|
) : g ? /* @__PURE__ */ d("div", { className: b.slotComponent, children: /* @__PURE__ */ d("div", { className: b.slotContainer, children: /* @__PURE__ */ d("p", { className: b.slotText, children: "SLOT" }) }) }) : null })
|
|
4344
4456
|
] }),
|
|
4345
|
-
|
|
4457
|
+
y && h && h.length > 0 && !O && /* @__PURE__ */ d("nav", { className: b.navItems, children: h.map((S, w) => /* @__PURE__ */ d(
|
|
4346
4458
|
Ee,
|
|
4347
4459
|
{
|
|
4348
4460
|
href: S.href,
|
|
@@ -4354,8 +4466,8 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4354
4466
|
},
|
|
4355
4467
|
w
|
|
4356
4468
|
)) }),
|
|
4357
|
-
/* @__PURE__ */
|
|
4358
|
-
o && /* @__PURE__ */
|
|
4469
|
+
/* @__PURE__ */ F("div", { className: b.actions, children: [
|
|
4470
|
+
o && /* @__PURE__ */ F(
|
|
4359
4471
|
Te,
|
|
4360
4472
|
{
|
|
4361
4473
|
variant: "primary",
|
|
@@ -4369,7 +4481,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4369
4481
|
]
|
|
4370
4482
|
}
|
|
4371
4483
|
),
|
|
4372
|
-
!u &&
|
|
4484
|
+
!u && v && /* @__PURE__ */ d("div", { className: b.themeToggle, children: /* @__PURE__ */ d(
|
|
4373
4485
|
Oe,
|
|
4374
4486
|
{
|
|
4375
4487
|
checked: L === "dark",
|
|
@@ -4377,15 +4489,15 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4377
4489
|
"aria-label": I("header.toggleTheme")
|
|
4378
4490
|
}
|
|
4379
4491
|
) }),
|
|
4380
|
-
r && /* @__PURE__ */
|
|
4492
|
+
r && /* @__PURE__ */ F("div", { className: b.userInfo, children: [
|
|
4381
4493
|
/* @__PURE__ */ d(Ye, { "data-size": "md", className: b.userName, children: "Frodo Baggins" }),
|
|
4382
4494
|
/* @__PURE__ */ d(wt, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
|
|
4383
4495
|
] }),
|
|
4384
|
-
s && /* @__PURE__ */
|
|
4496
|
+
s && /* @__PURE__ */ F("a", { href: "#", className: b.loginLink, children: [
|
|
4385
4497
|
/* @__PURE__ */ d("span", { className: b.loginText, children: I("header.login") }),
|
|
4386
4498
|
/* @__PURE__ */ d("div", { className: b.underline })
|
|
4387
4499
|
] }),
|
|
4388
|
-
i && /* @__PURE__ */ d("div", { className: b.searchButtonWrapper, children: /* @__PURE__ */
|
|
4500
|
+
i && /* @__PURE__ */ d("div", { className: b.searchButtonWrapper, children: /* @__PURE__ */ F(
|
|
4389
4501
|
Te,
|
|
4390
4502
|
{
|
|
4391
4503
|
variant: "secondary",
|
|
@@ -4395,12 +4507,12 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4395
4507
|
"aria-expanded": C,
|
|
4396
4508
|
"aria-label": I(C ? "header.closeSearch" : "header.openSearch"),
|
|
4397
4509
|
children: [
|
|
4398
|
-
C ? /* @__PURE__ */ d(
|
|
4510
|
+
C ? /* @__PURE__ */ d(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ d(mt, { "aria-hidden": !0 }),
|
|
4399
4511
|
/* @__PURE__ */ d("span", { className: b.buttonText, children: I(C ? "header.close" : "header.search") })
|
|
4400
4512
|
]
|
|
4401
4513
|
}
|
|
4402
4514
|
) }),
|
|
4403
|
-
(
|
|
4515
|
+
(p || O) && /* @__PURE__ */ F(
|
|
4404
4516
|
Te,
|
|
4405
4517
|
{
|
|
4406
4518
|
variant: "primary",
|
|
@@ -4411,21 +4523,21 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4411
4523
|
"aria-label": I(A ? "header.closeMenu" : "header.openMenu"),
|
|
4412
4524
|
className: b.menuButton,
|
|
4413
4525
|
children: [
|
|
4414
|
-
A ? /* @__PURE__ */ d(
|
|
4526
|
+
A ? /* @__PURE__ */ d(pt, { "aria-hidden": !0 }) : /* @__PURE__ */ d(Jn, { "aria-hidden": !0 }),
|
|
4415
4527
|
/* @__PURE__ */ d("span", { className: b.buttonText, children: I(A ? "header.close" : "header.menu") })
|
|
4416
4528
|
]
|
|
4417
4529
|
}
|
|
4418
4530
|
)
|
|
4419
4531
|
] })
|
|
4420
4532
|
] }),
|
|
4421
|
-
A && /* @__PURE__ */ d("div", { className: b.menuOverlay, children: /* @__PURE__ */
|
|
4533
|
+
A && /* @__PURE__ */ d("div", { className: b.menuOverlay, children: /* @__PURE__ */ F("div", { className: b.menuContent, children: [
|
|
4422
4534
|
/* @__PURE__ */ d("div", { className: b.menuLeftColumn }),
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
O && (_ || T) && /* @__PURE__ */
|
|
4425
|
-
_ && /* @__PURE__ */
|
|
4535
|
+
/* @__PURE__ */ F("div", { className: b.menuRightColumn, children: [
|
|
4536
|
+
O && (_ || T) && /* @__PURE__ */ F("div", { className: b.menuUtilities, children: [
|
|
4537
|
+
_ && /* @__PURE__ */ F("div", { className: b.languageSwitch, children: [
|
|
4426
4538
|
/* @__PURE__ */ d("span", { className: b.languageLabel, children: I("header.language") }),
|
|
4427
|
-
/* @__PURE__ */
|
|
4428
|
-
/* @__PURE__ */
|
|
4539
|
+
/* @__PURE__ */ F(K.TriggerContext, { children: [
|
|
4540
|
+
/* @__PURE__ */ F(
|
|
4429
4541
|
K.Trigger,
|
|
4430
4542
|
{
|
|
4431
4543
|
className: b.languageLink,
|
|
@@ -4443,9 +4555,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4443
4555
|
{
|
|
4444
4556
|
"data-color-scheme": L,
|
|
4445
4557
|
placement: "bottom-start",
|
|
4446
|
-
children: /* @__PURE__ */
|
|
4447
|
-
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () =>
|
|
4448
|
-
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () =>
|
|
4558
|
+
children: /* @__PURE__ */ F(K.List, { children: [
|
|
4559
|
+
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () => B("NO"), children: "Norsk (NO)" }) }),
|
|
4560
|
+
/* @__PURE__ */ d(K.Item, { children: /* @__PURE__ */ d(K.Button, { onClick: () => B("EN"), children: "English (EN)" }) })
|
|
4449
4561
|
] })
|
|
4450
4562
|
}
|
|
4451
4563
|
)
|
|
@@ -4463,9 +4575,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4463
4575
|
}
|
|
4464
4576
|
) })
|
|
4465
4577
|
] }),
|
|
4466
|
-
/* @__PURE__ */
|
|
4578
|
+
/* @__PURE__ */ F("div", { className: b.slotContent, children: [
|
|
4467
4579
|
n,
|
|
4468
|
-
O &&
|
|
4580
|
+
O && y && h && h.length > 0 && /* @__PURE__ */ d("nav", { className: b.navList, children: h.map((S, w) => /* @__PURE__ */ d(
|
|
4469
4581
|
Ee,
|
|
4470
4582
|
{
|
|
4471
4583
|
href: S.href,
|
|
@@ -4481,34 +4593,34 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4481
4593
|
O && /* @__PURE__ */ d("div", { className: b.menuBrand, children: /* @__PURE__ */ d(J, {}) })
|
|
4482
4594
|
] })
|
|
4483
4595
|
] }) }),
|
|
4484
|
-
C && /* @__PURE__ */ d("div", { className: b.searchOverlay, children: /* @__PURE__ */
|
|
4485
|
-
/* @__PURE__ */
|
|
4596
|
+
C && /* @__PURE__ */ d("div", { className: b.searchOverlay, children: /* @__PURE__ */ F("div", { className: b.searchContent, children: [
|
|
4597
|
+
/* @__PURE__ */ F(Le, { children: [
|
|
4486
4598
|
/* @__PURE__ */ d(
|
|
4487
4599
|
Le.Input,
|
|
4488
4600
|
{
|
|
4489
4601
|
"aria-label": I("header.search"),
|
|
4490
4602
|
placeholder: I("header.searchPlaceholder"),
|
|
4491
|
-
value:
|
|
4492
|
-
onChange: (S) =>
|
|
4603
|
+
value: j,
|
|
4604
|
+
onChange: (S) => G(S.target.value)
|
|
4493
4605
|
}
|
|
4494
4606
|
),
|
|
4495
4607
|
/* @__PURE__ */ d(Le.Button, { "aria-label": I("header.search") }),
|
|
4496
|
-
/* @__PURE__ */ d(Le.ClearButton, { onClick: () =>
|
|
4608
|
+
/* @__PURE__ */ d(Le.ClearButton, { onClick: () => G(""), "aria-label": I("header.clearSearch") })
|
|
4497
4609
|
] }),
|
|
4498
|
-
|
|
4610
|
+
j && /* @__PURE__ */ d("div", { className: b.searchResults, children: Q.length > 0 ? /* @__PURE__ */ F("div", { className: b.suggestionsSection, children: [
|
|
4499
4611
|
/* @__PURE__ */ d("h3", { className: b.suggestionsTitle, children: I("header.suggestions") }),
|
|
4500
|
-
/* @__PURE__ */ d("ul", { className: b.resultList, children: Q.slice(0, 5).map((S) => /* @__PURE__ */ d("li", { className: b.resultItem, children: /* @__PURE__ */
|
|
4612
|
+
/* @__PURE__ */ d("ul", { className: b.resultList, children: Q.slice(0, 5).map((S) => /* @__PURE__ */ d("li", { className: b.resultItem, children: /* @__PURE__ */ F(
|
|
4501
4613
|
"button",
|
|
4502
4614
|
{
|
|
4503
4615
|
className: b.resultLink,
|
|
4504
4616
|
onClick: () => X(S.path),
|
|
4505
4617
|
children: [
|
|
4506
|
-
/* @__PURE__ */ d("span", { className: b.suggestionIcon, children: /* @__PURE__ */ d(
|
|
4618
|
+
/* @__PURE__ */ d("span", { className: b.suggestionIcon, children: /* @__PURE__ */ d(mt, { "aria-hidden": !0 }) }),
|
|
4507
4619
|
/* @__PURE__ */ d("span", { className: b.suggestionText, children: (() => {
|
|
4508
|
-
const w = S.title.toLowerCase().indexOf(
|
|
4620
|
+
const w = S.title.toLowerCase().indexOf(j.toLowerCase());
|
|
4509
4621
|
if (w === -1) return /* @__PURE__ */ d("span", { className: b.remainingText, children: S.title });
|
|
4510
|
-
const E = S.title.slice(0, w), U = S.title.slice(w, w +
|
|
4511
|
-
return /* @__PURE__ */
|
|
4622
|
+
const E = S.title.slice(0, w), U = S.title.slice(w, w + j.length), te = S.title.slice(w + j.length);
|
|
4623
|
+
return /* @__PURE__ */ F(Ut, { children: [
|
|
4512
4624
|
/* @__PURE__ */ d("span", { className: b.remainingText, children: E }),
|
|
4513
4625
|
/* @__PURE__ */ d("span", { className: b.highlightedText, children: U }),
|
|
4514
4626
|
/* @__PURE__ */ d("span", { className: b.remainingText, children: te })
|
|
@@ -4517,14 +4629,14 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4517
4629
|
]
|
|
4518
4630
|
}
|
|
4519
4631
|
) }, S.id)) }),
|
|
4520
|
-
Q.length > 5 && /* @__PURE__ */
|
|
4632
|
+
Q.length > 5 && /* @__PURE__ */ F(
|
|
4521
4633
|
Ee,
|
|
4522
4634
|
{
|
|
4523
4635
|
href: "#",
|
|
4524
4636
|
"data-color": "neutral",
|
|
4525
4637
|
className: b.viewAllLink,
|
|
4526
4638
|
onClick: (S) => {
|
|
4527
|
-
S.preventDefault(), e && e(`search/${
|
|
4639
|
+
S.preventDefault(), e && e(`search/${j}`), D(!1), G("");
|
|
4528
4640
|
},
|
|
4529
4641
|
children: [
|
|
4530
4642
|
I("header.viewAll"),
|
|
@@ -4534,10 +4646,10 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
4534
4646
|
]
|
|
4535
4647
|
}
|
|
4536
4648
|
)
|
|
4537
|
-
] }) : /* @__PURE__ */ d("div", { className: b.noResults, children: /* @__PURE__ */
|
|
4649
|
+
] }) : /* @__PURE__ */ d("div", { className: b.noResults, children: /* @__PURE__ */ F(Ye, { children: [
|
|
4538
4650
|
I("header.noResults"),
|
|
4539
4651
|
' "',
|
|
4540
|
-
|
|
4652
|
+
j,
|
|
4541
4653
|
'"'
|
|
4542
4654
|
] }) }) })
|
|
4543
4655
|
] }) })
|
|
@@ -4678,19 +4790,19 @@ export {
|
|
|
4678
4790
|
wt as Avatar,
|
|
4679
4791
|
Xn as Badge,
|
|
4680
4792
|
ui as BadgePosition,
|
|
4681
|
-
|
|
4793
|
+
pi as Breadcrumbs,
|
|
4682
4794
|
gi as BreadcrumbsItem,
|
|
4683
4795
|
fi as BreadcrumbsLink,
|
|
4684
|
-
|
|
4796
|
+
mi as BreadcrumbsList,
|
|
4685
4797
|
Te as Button,
|
|
4686
4798
|
eo as Card,
|
|
4687
4799
|
hi as CardBlock,
|
|
4688
4800
|
Jr as Carousel,
|
|
4689
4801
|
to as Checkbox,
|
|
4690
|
-
|
|
4802
|
+
yi as Chip,
|
|
4691
4803
|
er as DateInput,
|
|
4692
4804
|
Vo as DatePicker,
|
|
4693
|
-
|
|
4805
|
+
vi as Details,
|
|
4694
4806
|
bi as Dialog,
|
|
4695
4807
|
Ti as Divider,
|
|
4696
4808
|
K as Dropdown,
|
|
@@ -4711,22 +4823,22 @@ export {
|
|
|
4711
4823
|
_i as Popover,
|
|
4712
4824
|
Mi as Radio,
|
|
4713
4825
|
Le as Search,
|
|
4714
|
-
|
|
4826
|
+
Fi as Select,
|
|
4715
4827
|
Ei as SkeletonLoader,
|
|
4716
4828
|
Li as SkipLink,
|
|
4717
4829
|
Yr as Spinner,
|
|
4718
4830
|
ts as Suggestion,
|
|
4719
4831
|
Oe as Switch,
|
|
4720
|
-
|
|
4721
|
-
|
|
4832
|
+
Bi as Table,
|
|
4833
|
+
Ni as Tabs,
|
|
4722
4834
|
Pi as Tag,
|
|
4723
|
-
|
|
4835
|
+
Gi as Textarea,
|
|
4724
4836
|
Ri as Textfield,
|
|
4725
|
-
|
|
4837
|
+
zi as ToggleGroup,
|
|
4726
4838
|
Wi as Tooltip,
|
|
4727
4839
|
ns as ValidationMessage,
|
|
4728
4840
|
ki as useCheckboxGroup,
|
|
4729
4841
|
rs as useLanguage,
|
|
4730
4842
|
Ai as usePagination,
|
|
4731
|
-
|
|
4843
|
+
ji as useRadioGroup
|
|
4732
4844
|
};
|