rk-designsystem 1.1.73 → 1.1.75

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.
@@ -1,23 +1,23 @@
1
- import { jsx as s, jsxs as w, Fragment as Vt } from "react/jsx-runtime";
2
- import Ve, { forwardRef as ge, useState as ne, useEffect as Z, useMemo as Se, useCallback as re, useRef as Ke, createContext as Kt, useContext as wt } from "react";
3
- import { Alert as Yt, Avatar as qt, BadgePosition as Xt, Badge as Jt, Breadcrumbs as Zt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as Ye, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as It, Chip as an, Spinner as ln, Details as dn, Dialog as cn, Divider as un, Dropdown as mn, ErrorSummary as pn, Field as gn, FieldDescription as hn, FieldCounter as fn, Heading as kn, Input as yn, Label as vn, Link as bn, List as Tn, Pagination as Sn, usePagination as xn, Paragraph as Cn, Popover as wn, Radio as In, useRadioGroup as Dn, Search as _n, SearchInput as An, SearchClear as Mn, SearchButton as jn, Select as Ln, Skeleton as Fn, SkipLink as En, EXPERIMENTAL_Suggestion as Nn, Switch as Bn, Table as Pn, Tabs as Rn, Tag as zn, Textarea as Gn, Textfield as Wn, ToggleGroup as Un, Tooltip as Hn, ValidationMessage as $n } from "@digdir/designsystemet-react";
4
- import { startOfMonth as be, isValid as He, isSameMonth as pt, startOfWeek as Dt, format as we, addDays as _t, subMonths as On, addMonths as Vn, isSameDay as Kn, isToday as Yn, eachDayOfInterval as qn } from "date-fns";
5
- import { ChevronLeftIcon as Xn, ChevronRightIcon as Jn, ChevronDownIcon as gt, XMarkIcon as ht, MagnifyingGlassIcon as ft, MenuHamburgerIcon as Zn, HeartIcon as Qn } from "@navikt/aksel-icons";
6
- const eo = ge((t, e) => /* @__PURE__ */ s(Yt, { ref: e, ...t }));
1
+ import { jsx as o, jsxs as D, Fragment as Vt } from "react/jsx-runtime";
2
+ import Be, { forwardRef as ge, useState as ne, useEffect as J, useMemo as Se, useCallback as re, useRef as Ke, createContext as Kt, useContext as wt } from "react";
3
+ import { Alert as qt, Avatar as Yt, BadgePosition as Zt, Badge as Xt, Breadcrumbs as Jt, BreadcrumbsList as Qt, BreadcrumbsItem as en, BreadcrumbsLink as tn, Button as qe, Card as nn, CardBlock as on, Checkbox as rn, useCheckboxGroup as sn, Fieldset as It, Chip as an, Spinner as ln, Details as dn, Dialog as cn, Divider as un, Dropdown as mn, ErrorSummary as pn, Field as gn, FieldDescription as hn, FieldCounter as fn, Heading as kn, Input as yn, Label as vn, Link as bn, List as Tn, Pagination as Sn, usePagination as xn, Paragraph as Cn, Popover as wn, Radio as In, useRadioGroup as Dn, Search as _n, SearchInput as An, SearchClear as Ln, SearchButton as Mn, Select as En, Skeleton as jn, SkipLink as Fn, EXPERIMENTAL_Suggestion as Nn, Switch as Bn, Table as Pn, Tabs as zn, Tag as Rn, Textarea as Gn, Textfield as $n, ToggleGroup as Hn, Tooltip as Wn, ValidationMessage as Un } from "@digdir/designsystemet-react";
4
+ import { startOfMonth as be, isValid as Ue, isSameMonth as pt, startOfWeek as Dt, format as we, addDays as _t, subMonths as On, addMonths as Vn, isSameDay as Kn, isToday as qn, eachDayOfInterval as Yn } from "date-fns";
5
+ import { ChevronLeftIcon as Zn, ChevronRightIcon as Xn, ChevronDownIcon as gt, XMarkIcon as ht, MagnifyingGlassIcon as ft, MenuHamburgerIcon as Jn, HeartIcon as Qn } from "@navikt/aksel-icons";
6
+ const eo = ge((t, e) => /* @__PURE__ */ o(qt, { ref: e, ...t }));
7
7
  eo.displayName = "Alert";
8
- const At = ge((t, e) => /* @__PURE__ */ s(qt, { ref: e, ...t }));
8
+ const At = ge((t, e) => /* @__PURE__ */ o(Yt, { ref: e, ...t }));
9
9
  At.displayName = "Avatar";
10
- const to = ge((t, e) => /* @__PURE__ */ s(Jt, { ref: e, ...t }));
10
+ const to = ge((t, e) => /* @__PURE__ */ o(Xt, { ref: e, ...t }));
11
11
  to.displayName = "Badge";
12
- const Pi = Xt, Ri = Zt, zi = Qt, Gi = en, Wi = tn, xe = Ye;
12
+ const Ri = Zt, Gi = Jt, $i = Qt, Hi = en, Wi = tn, xe = qe;
13
13
  xe.displayName = "Button";
14
14
  const no = nn, Ui = on;
15
15
  no.displayName = "Card";
16
- const oo = rn, ro = It, Hi = sn;
16
+ const oo = rn, ro = It, Oi = sn;
17
17
  oo.displayName = "Checkbox";
18
18
  ro.displayName = "Fieldset";
19
- const $i = an;
20
- function $e(t) {
19
+ const Vi = an;
20
+ function Oe(t) {
21
21
  return (e = {}) => {
22
22
  const n = e.width ? String(e.width) : t.defaultWidth;
23
23
  return t.formats[n] || t.formats[t.defaultWidth];
@@ -25,14 +25,14 @@ function $e(t) {
25
25
  }
26
26
  function Ie(t) {
27
27
  return (e, n) => {
28
- const r = n != null && n.context ? String(n.context) : "standalone";
28
+ const s = n != null && n.context ? String(n.context) : "standalone";
29
29
  let a;
30
- if (r === "formatting" && t.formattingValues) {
31
- const o = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : o;
32
- a = t.formattingValues[d] || t.formattingValues[o];
30
+ if (s === "formatting" && t.formattingValues) {
31
+ const r = t.defaultFormattingWidth || t.defaultWidth, d = n != null && n.width ? String(n.width) : r;
32
+ a = t.formattingValues[d] || t.formattingValues[r];
33
33
  } else {
34
- const o = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
35
- a = t.values[d] || t.values[o];
34
+ const r = t.defaultWidth, d = n != null && n.width ? String(n.width) : t.defaultWidth;
35
+ a = t.values[d] || t.values[r];
36
36
  }
37
37
  const i = t.argumentCallback ? t.argumentCallback(e) : e;
38
38
  return a[i];
@@ -40,19 +40,19 @@ function Ie(t) {
40
40
  }
41
41
  function De(t) {
42
42
  return (e, n = {}) => {
43
- const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
43
+ const s = n.width, a = s && t.matchPatterns[s] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
44
44
  if (!i)
45
45
  return null;
46
- const o = i[0], d = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? io(d, (u) => u.test(o)) : (
46
+ const r = i[0], d = s && t.parsePatterns[s] || t.parsePatterns[t.defaultParseWidth], l = Array.isArray(d) ? io(d, (h) => h.test(r)) : (
47
47
  // [TODO] -- I challenge you to fix the type
48
- so(d, (u) => u.test(o))
48
+ so(d, (h) => h.test(r))
49
49
  );
50
50
  let c;
51
51
  c = t.valueCallback ? t.valueCallback(l) : l, c = n.valueCallback ? (
52
52
  // [TODO] -- I challenge you to fix the type
53
53
  n.valueCallback(c)
54
54
  ) : c;
55
- const v = e.slice(o.length);
55
+ const v = e.slice(r.length);
56
56
  return { value: c, rest: v };
57
57
  };
58
58
  }
@@ -68,14 +68,14 @@ function io(t, e) {
68
68
  }
69
69
  function ao(t) {
70
70
  return (e, n = {}) => {
71
- const r = e.match(t.matchPattern);
72
- if (!r) return null;
73
- const a = r[0], i = e.match(t.parsePattern);
71
+ const s = e.match(t.matchPattern);
72
+ if (!s) return null;
73
+ const a = s[0], i = e.match(t.parsePattern);
74
74
  if (!i) return null;
75
- let o = t.valueCallback ? t.valueCallback(i[0]) : i[0];
76
- o = n.valueCallback ? n.valueCallback(o) : o;
75
+ let r = t.valueCallback ? t.valueCallback(i[0]) : i[0];
76
+ r = n.valueCallback ? n.valueCallback(r) : r;
77
77
  const d = e.slice(a.length);
78
- return { value: o, rest: d };
78
+ return { value: r, rest: d };
79
79
  };
80
80
  }
81
81
  const lo = {
@@ -141,9 +141,9 @@ const lo = {
141
141
  other: "nesten {{count}} år"
142
142
  }
143
143
  }, co = (t, e, n) => {
144
- let r;
144
+ let s;
145
145
  const a = lo[t];
146
- return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + r : r + " siden" : r;
146
+ return typeof a == "string" ? s = a : e === 1 ? s = a.one : s = a.other.replace("{{count}}", String(e)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "om " + s : s + " siden" : s;
147
147
  }, uo = {
148
148
  full: "EEEE d. MMMM y",
149
149
  long: "d. MMMM y",
@@ -160,15 +160,15 @@ const lo = {
160
160
  medium: "{{date}} {{time}}",
161
161
  short: "{{date}} {{time}}"
162
162
  }, go = {
163
- date: $e({
163
+ date: Oe({
164
164
  formats: uo,
165
165
  defaultWidth: "full"
166
166
  }),
167
- time: $e({
167
+ time: Oe({
168
168
  formats: mo,
169
169
  defaultWidth: "full"
170
170
  }),
171
- dateTime: $e({
171
+ dateTime: Oe({
172
172
  formats: po,
173
173
  defaultWidth: "full"
174
174
  })
@@ -179,7 +179,7 @@ const lo = {
179
179
  tomorrow: "'i morgen kl.' p",
180
180
  nextWeek: "EEEE 'kl.' p",
181
181
  other: "P"
182
- }, fo = (t, e, n, r) => ho[t], ko = {
182
+ }, fo = (t, e, n, s) => ho[t], ko = {
183
183
  narrow: ["f.Kr.", "e.Kr."],
184
184
  abbreviated: ["f.Kr.", "e.Kr."],
185
185
  wide: ["før Kristus", "etter Kristus"]
@@ -296,11 +296,11 @@ const lo = {
296
296
  wide: /^[1234](\.)? kvartal/i
297
297
  }, Ao = {
298
298
  any: [/1/i, /2/i, /3/i, /4/i]
299
- }, Mo = {
299
+ }, Lo = {
300
300
  narrow: /^[jfmasond]/i,
301
301
  abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
302
302
  wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
303
- }, jo = {
303
+ }, Mo = {
304
304
  narrow: [
305
305
  /^j/i,
306
306
  /^f/i,
@@ -329,14 +329,14 @@ const lo = {
329
329
  /^n/i,
330
330
  /^d/i
331
331
  ]
332
- }, Lo = {
332
+ }, Eo = {
333
333
  narrow: /^[smtofl]/i,
334
334
  short: /^(sø|ma|ti|on|to|fr|lø)/i,
335
335
  abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
336
336
  wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
337
- }, Fo = {
337
+ }, jo = {
338
338
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
339
- }, Eo = {
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
  }, No = {
@@ -370,19 +370,19 @@ const lo = {
370
370
  valueCallback: (t) => t + 1
371
371
  }),
372
372
  month: De({
373
- matchPatterns: Mo,
373
+ matchPatterns: Lo,
374
374
  defaultMatchWidth: "wide",
375
- parsePatterns: jo,
375
+ parsePatterns: Mo,
376
376
  defaultParseWidth: "any"
377
377
  }),
378
378
  day: De({
379
- matchPatterns: Lo,
379
+ matchPatterns: Eo,
380
380
  defaultMatchWidth: "wide",
381
- parsePatterns: Fo,
381
+ parsePatterns: jo,
382
382
  defaultParseWidth: "any"
383
383
  }),
384
384
  dayPeriod: De({
385
- matchPatterns: Eo,
385
+ matchPatterns: Fo,
386
386
  defaultMatchWidth: "any",
387
387
  parsePatterns: No,
388
388
  defaultParseWidth: "any"
@@ -398,7 +398,7 @@ const lo = {
398
398
  weekStartsOn: 1,
399
399
  firstWeekContainsDate: 4
400
400
  }
401
- }, Mt = ({ title: t, ...e }) => /* @__PURE__ */ w(
401
+ }, Lt = ({ title: t, ...e }) => /* @__PURE__ */ D(
402
402
  "svg",
403
403
  {
404
404
  xmlns: "http://www.w3.org/2000/svg",
@@ -410,8 +410,8 @@ const lo = {
410
410
  focusable: "false",
411
411
  ...e,
412
412
  children: [
413
- t && /* @__PURE__ */ s("title", { children: t }),
414
- /* @__PURE__ */ s(
413
+ t && /* @__PURE__ */ o("title", { children: t }),
414
+ /* @__PURE__ */ o(
415
415
  "path",
416
416
  {
417
417
  fillRule: "evenodd",
@@ -423,8 +423,8 @@ const lo = {
423
423
  ]
424
424
  }
425
425
  );
426
- Mt.displayName = "ChevronLeftIcon";
427
- const jt = ({ title: t, ...e }) => /* @__PURE__ */ w(
426
+ Lt.displayName = "ChevronLeftIcon";
427
+ const Mt = ({ title: t, ...e }) => /* @__PURE__ */ D(
428
428
  "svg",
429
429
  {
430
430
  xmlns: "http://www.w3.org/2000/svg",
@@ -436,8 +436,8 @@ const jt = ({ title: t, ...e }) => /* @__PURE__ */ w(
436
436
  focusable: "false",
437
437
  ...e,
438
438
  children: [
439
- t && /* @__PURE__ */ s("title", { children: t }),
440
- /* @__PURE__ */ s(
439
+ t && /* @__PURE__ */ o("title", { children: t }),
440
+ /* @__PURE__ */ o(
441
441
  "path",
442
442
  {
443
443
  fillRule: "evenodd",
@@ -449,137 +449,137 @@ const jt = ({ title: t, ...e }) => /* @__PURE__ */ w(
449
449
  ]
450
450
  }
451
451
  );
452
- jt.displayName = "ChevronRightIcon";
453
- const Po = "_calendarContainer_10l5p_1", Ro = "_calendarHeader_10l5p_14", zo = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", Wo = "_grid_10l5p_41", Uo = "_dayNameCell_10l5p_48", Ho = "_dateCell_10l5p_65", $o = "_dateNumberContainer_10l5p_90", Oo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", oe = {
452
+ Mt.displayName = "ChevronRightIcon";
453
+ const Po = "_calendarContainer_10l5p_1", zo = "_calendarHeader_10l5p_14", Ro = "_monthYear_10l5p_21", Go = "_navigationButtons_10l5p_32", $o = "_grid_10l5p_41", Ho = "_dayNameCell_10l5p_48", Wo = "_dateCell_10l5p_65", Uo = "_dateNumberContainer_10l5p_90", Oo = "_otherMonth_10l5p_103", Vo = "_selectedDate_10l5p_129", oe = {
454
454
  calendarContainer: Po,
455
- calendarHeader: Ro,
456
- monthYear: zo,
455
+ calendarHeader: zo,
456
+ monthYear: Ro,
457
457
  navigationButtons: Go,
458
- grid: Wo,
459
- dayNameCell: Uo,
460
- dateCell: Ho,
461
- dateNumberContainer: $o,
458
+ grid: $o,
459
+ dayNameCell: Ho,
460
+ dateCell: Wo,
461
+ dateNumberContainer: Uo,
462
462
  otherMonth: Oo,
463
463
  selectedDate: Vo
464
464
  }, Ko = (t) => {
465
- const e = be(t), n = Dt(e, { locale: Te }), r = _t(n, 41);
466
- return qn({ start: n, end: r });
467
- }, kt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Yo = ({
465
+ const e = be(t), n = Dt(e, { locale: Te }), s = _t(n, 41);
466
+ return Yn({ start: n, end: s });
467
+ }, kt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), qo = ({
468
468
  initialDate: t = /* @__PURE__ */ new Date(),
469
469
  selectedDate: e = null,
470
470
  // Prop for valgt dato
471
471
  onDateSelect: n,
472
- "data-color": r,
472
+ "data-color": s,
473
473
  // <-- Destrukturert
474
474
  "data-size": a
475
475
  // <-- Destrukturert
476
476
  }) => {
477
- const [i, o] = ne(
478
- be(e && He(e) ? e : t)
477
+ const [i, r] = ne(
478
+ be(e && Ue(e) ? e : t)
479
479
  );
480
- Z(() => {
481
- if (e && He(e)) {
482
- const m = be(e);
483
- pt(m, i) || o(m);
480
+ J(() => {
481
+ if (e && Ue(e)) {
482
+ const p = be(e);
483
+ pt(p, i) || r(p);
484
484
  }
485
485
  }, [e]);
486
486
  const d = Se(() => be(/* @__PURE__ */ new Date()), []), l = Se(() => !1, [i, d]), c = Se(
487
487
  () => Ko(i),
488
488
  [i]
489
489
  ), v = Se(() => {
490
- const m = Dt(/* @__PURE__ */ new Date(), { locale: Te });
490
+ const p = Dt(/* @__PURE__ */ new Date(), { locale: Te });
491
491
  return Array.from({ length: 7 }).map((T, A) => {
492
- const M = we(_t(m, A), "EEEEEE", { locale: Te });
492
+ const M = we(_t(p, A), "EEEEEE", { locale: Te });
493
493
  return kt(M);
494
494
  });
495
- }, []), u = re(() => {
496
- l || o((m) => be(On(m, 1)));
495
+ }, []), h = re(() => {
496
+ l || r((p) => be(On(p, 1)));
497
497
  }, [l]), f = re(() => {
498
- o((m) => be(Vn(m, 1)));
498
+ r((p) => be(Vn(p, 1)));
499
499
  }, []), g = re(
500
- (m) => {
501
- n && n(m);
500
+ (p) => {
501
+ n && n(p);
502
502
  },
503
503
  [n]
504
- ), h = re(
505
- (m, T) => {
506
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), g(T));
504
+ ), u = re(
505
+ (p, T) => {
506
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), g(T));
507
507
  },
508
508
  [g]
509
- ), k = we(i, "MMMM", { locale: Te }), y = we(i, "yyyy", { locale: Te }), p = `${kt(k)} ${y}`;
510
- return /* @__PURE__ */ w(
509
+ ), y = we(i, "MMMM", { locale: Te }), k = we(i, "yyyy", { locale: Te }), m = `${kt(y)} ${k}`;
510
+ return /* @__PURE__ */ D(
511
511
  "div",
512
512
  {
513
513
  className: oe.calendarContainer,
514
- "data-color": r,
514
+ "data-color": s,
515
515
  "data-size": a,
516
516
  children: [
517
- /* @__PURE__ */ w("div", { className: oe.calendarHeader, children: [
518
- /* @__PURE__ */ s("span", { className: oe.monthYear, children: p }),
519
- /* @__PURE__ */ w("div", { className: oe.navigationButtons, children: [
520
- /* @__PURE__ */ s(
521
- Ye,
517
+ /* @__PURE__ */ D("div", { className: oe.calendarHeader, children: [
518
+ /* @__PURE__ */ o("span", { className: oe.monthYear, children: m }),
519
+ /* @__PURE__ */ D("div", { className: oe.navigationButtons, children: [
520
+ /* @__PURE__ */ o(
521
+ qe,
522
522
  {
523
523
  variant: "tertiary",
524
524
  icon: !0,
525
- onClick: u,
525
+ onClick: h,
526
526
  "aria-label": "Forrige måned",
527
527
  disabled: l,
528
- children: /* @__PURE__ */ s(Mt, {})
528
+ children: /* @__PURE__ */ o(Lt, {})
529
529
  }
530
530
  ),
531
- /* @__PURE__ */ s(
532
- Ye,
531
+ /* @__PURE__ */ o(
532
+ qe,
533
533
  {
534
534
  variant: "tertiary",
535
535
  icon: !0,
536
536
  onClick: f,
537
537
  "aria-label": "Neste måned",
538
- children: /* @__PURE__ */ s(jt, {})
538
+ children: /* @__PURE__ */ o(Mt, {})
539
539
  }
540
540
  )
541
541
  ] })
542
542
  ] }),
543
- /* @__PURE__ */ s("div", { className: oe.grid, children: v.map((m) => /* @__PURE__ */ s("div", { className: oe.dayNameCell, children: m }, m)) }),
544
- /* @__PURE__ */ s("div", { className: oe.grid, children: c.map((m) => {
545
- const T = pt(m, i), A = e && He(e) && Kn(m, e), M = Yn(m), C = [
543
+ /* @__PURE__ */ o("div", { className: oe.grid, children: v.map((p) => /* @__PURE__ */ o("div", { className: oe.dayNameCell, children: p }, p)) }),
544
+ /* @__PURE__ */ o("div", { className: oe.grid, children: c.map((p) => {
545
+ const T = pt(p, i), A = e && Ue(e) && Kn(p, e), M = qn(p), x = [
546
546
  oe.dateCell,
547
547
  T ? "" : oe.otherMonth,
548
548
  A ? oe.selectedDate : "",
549
549
  // Utheving basert på prop
550
550
  M && !A ? oe.todayDate : ""
551
551
  ].filter(Boolean).join(" ");
552
- return /* @__PURE__ */ s(
552
+ return /* @__PURE__ */ o(
553
553
  "div",
554
554
  {
555
- className: C,
556
- onClick: () => g(m),
557
- onKeyDown: (D) => h(D, m),
555
+ className: x,
556
+ onClick: () => g(p),
557
+ onKeyDown: (I) => u(I, p),
558
558
  role: "button",
559
559
  tabIndex: 0,
560
560
  "aria-pressed": A ?? !1,
561
- "aria-label": we(m, "PPP", { locale: Te }),
562
- children: /* @__PURE__ */ s("span", { className: oe.dateNumberContainer, children: we(m, "d") })
561
+ "aria-label": we(p, "PPP", { locale: Te }),
562
+ children: /* @__PURE__ */ o("span", { className: oe.dateNumberContainer, children: we(p, "d") })
563
563
  },
564
- m.toISOString()
564
+ p.toISOString()
565
565
  );
566
566
  }) })
567
567
  ]
568
568
  }
569
569
  );
570
570
  };
571
- Yo.displayName = "DatePicker";
572
- const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7_21", Zo = "_inputWrapper_16fx7_30", Qo = "_inputWrapperError_16fx7_42", er = "_suffixButton_16fx7_80", tr = "_suffixButtonInteractive_16fx7_100", ke = {
573
- fieldset: qo,
574
- description: Xo,
575
- error: Jo,
576
- inputWrapper: Zo,
571
+ qo.displayName = "DatePicker";
572
+ const Yo = "_fieldset_16fx7_2", Zo = "_description_16fx7_14", Xo = "_error_16fx7_21", Jo = "_inputWrapper_16fx7_30", Qo = "_inputWrapperError_16fx7_42", er = "_suffixButton_16fx7_80", tr = "_suffixButtonInteractive_16fx7_100", ke = {
573
+ fieldset: Yo,
574
+ description: Zo,
575
+ error: Xo,
576
+ inputWrapper: Jo,
577
577
  inputWrapperError: Qo,
578
578
  suffixButton: er,
579
579
  suffixButtonInteractive: tr
580
580
  }, yt = (t) => {
581
- const e = t.slice(0, 2), n = t.slice(2, 4), r = t.slice(4, 8);
582
- return t.length > 4 ? `${e}.${n}.${r}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
581
+ const e = t.slice(0, 2), n = t.slice(2, 4), s = t.slice(4, 8);
582
+ return t.length > 4 ? `${e}.${n}.${s}` : t.length > 2 ? `${e}.${n}` : t.length > 0 ? e : "";
583
583
  }, vt = (t) => (t || "").replace(/\D/g, ""), bt = (t) => {
584
584
  let e = t;
585
585
  if (e.length >= 2) {
@@ -595,142 +595,142 @@ const qo = "_fieldset_16fx7_2", Xo = "_description_16fx7_14", Jo = "_error_16fx7
595
595
  (t, e) => {
596
596
  const {
597
597
  label: n,
598
- suffixIcon: r,
598
+ suffixIcon: s,
599
599
  onSuffixClick: a,
600
600
  className: i,
601
601
  // For ytre fieldset
602
- inputWrapperClassName: o,
602
+ inputWrapperClassName: r,
603
603
  // For input wrapper div
604
604
  inputClassName: d,
605
605
  // For selve input-elementet
606
606
  value: l,
607
607
  defaultValue: c,
608
608
  onChange: v,
609
- readOnly: u,
609
+ readOnly: h,
610
610
  placeholder: f = "dd.mm.åååå",
611
611
  id: g,
612
- name: h,
613
- required: k,
614
- disabled: y,
615
- onClick: p,
616
- onFocus: m,
612
+ name: u,
613
+ required: y,
614
+ disabled: k,
615
+ onClick: m,
616
+ onFocus: p,
617
617
  // Send ekstern onFocus videre
618
618
  onBlur: T,
619
619
  // Send ekstern onBlur videre
620
620
  autoComplete: A = "off",
621
621
  "aria-label": M,
622
- "aria-labelledby": C,
623
- description: D,
624
- error: _,
622
+ "aria-labelledby": x,
623
+ description: I,
624
+ error: w,
625
625
  // Bruk error-prop for styling
626
626
  "data-color": L,
627
627
  // <-- Destrukturering
628
- "data-size": E,
628
+ "data-size": F,
629
629
  // <-- Destrukturering
630
630
  ...N
631
- } = t, R = l !== void 0, z = Ke(null);
632
- Ve.useImperativeHandle(
631
+ } = t, z = l !== void 0, R = Ke(null);
632
+ Be.useImperativeHandle(
633
633
  e,
634
- () => z.current
634
+ () => R.current
635
635
  );
636
636
  const G = re(
637
637
  (b) => {
638
- const I = vt(b), j = bt(I);
638
+ const _ = vt(b), j = bt(_);
639
639
  return yt(j);
640
640
  },
641
641
  []
642
- ), [W, B] = ne(
642
+ ), [$, B] = ne(
643
643
  () => G(l ?? c)
644
644
  );
645
- Z(() => {
646
- if (R) {
645
+ J(() => {
646
+ if (z) {
647
647
  const b = G(l);
648
- b !== W && (B(b), z.current && z.current.value !== b && (z.current.value = b));
648
+ b !== $ && (B(b), R.current && R.current.value !== b && (R.current.value = b));
649
649
  }
650
- }, [l, R, W, G]);
650
+ }, [l, z, $, G]);
651
651
  const O = re(
652
652
  (b) => {
653
- const I = b.target, j = I.value, K = W, q = vt(j).slice(0, 8), U = bt(q), x = yt(U);
653
+ const _ = b.target, j = _.value, K = $, Y = vt(j).slice(0, 8), H = bt(Y), C = yt(H);
654
654
  let P = 0;
655
- const H = U.length;
656
- H <= 2 ? P = H : H <= 4 ? P = H + 1 : P = H + 2, P = Math.min(P, x.length), requestAnimationFrame(() => {
657
- if (z.current && (B(x), z.current.value = x, z.current.setSelectionRange(P, P), (x !== K || R) && v)) {
658
- const Y = {
655
+ const W = H.length;
656
+ W <= 2 ? P = W : W <= 4 ? P = W + 1 : P = W + 2, P = Math.min(P, C.length), requestAnimationFrame(() => {
657
+ if (R.current && (B(C), R.current.value = C, R.current.setSelectionRange(P, P), (C !== K || z) && v)) {
658
+ const q = {
659
659
  ...b,
660
- target: { ...I, value: x }
660
+ target: { ..._, value: C }
661
661
  };
662
- v(Y, x);
662
+ v(q, C);
663
663
  }
664
664
  });
665
665
  },
666
- [W, R, v, G]
666
+ [$, z, v, G]
667
667
  ), te = [ke.fieldset, i].filter(Boolean).join(" "), Q = [
668
668
  ke.inputWrapper,
669
- o,
670
- _ ? ke.inputWrapperError : ""
669
+ r,
670
+ w ? ke.inputWrapperError : ""
671
671
  ].filter(Boolean).join(" "), se = [
672
672
  d
673
673
  ].filter(Boolean).join(" "), ee = [
674
674
  ke.suffixButton,
675
675
  a ? ke.suffixButtonInteractive : ""
676
676
  ].filter(Boolean).join(" ");
677
- !n && !M && !C && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
678
- const ie = n && typeof n == "string" ? C || `${g}-label` : void 0, ae = D ? `${g}-desc` : void 0, V = _ ? `${g}-err` : void 0, ue = [ae, V].filter(Boolean).join(" ") || void 0;
677
+ !n && !M && !x && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
678
+ const ie = n && typeof n == "string" ? x || `${g}-label` : void 0, ae = I ? `${g}-desc` : void 0, V = w ? `${g}-err` : void 0, ue = [ae, V].filter(Boolean).join(" ") || void 0;
679
679
  return (
680
680
  // --- Bruk data-color og data-size på den ytre wrapperen ---
681
- /* @__PURE__ */ w(
681
+ /* @__PURE__ */ D(
682
682
  "div",
683
683
  {
684
684
  className: te,
685
685
  "data-color": L,
686
- "data-size": E,
686
+ "data-size": F,
687
687
  children: [
688
- n && typeof n == "string" ? /* @__PURE__ */ s("label", { id: ie, htmlFor: g, children: n }) : n,
689
- D && /* @__PURE__ */ s("p", { id: ae, className: ke.description, children: D }),
690
- /* @__PURE__ */ w("div", { className: Q, children: [
691
- /* @__PURE__ */ s(
688
+ n && typeof n == "string" ? /* @__PURE__ */ o("label", { id: ie, htmlFor: g, children: n }) : n,
689
+ I && /* @__PURE__ */ o("p", { id: ae, className: ke.description, children: I }),
690
+ /* @__PURE__ */ D("div", { className: Q, children: [
691
+ /* @__PURE__ */ o(
692
692
  "input",
693
693
  {
694
- ref: z,
694
+ ref: R,
695
695
  type: "text",
696
696
  inputMode: "numeric",
697
697
  pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
698
698
  maxLength: 10,
699
- value: W,
700
- readOnly: u,
699
+ value: $,
700
+ readOnly: h,
701
701
  placeholder: f,
702
702
  id: g,
703
- name: h,
704
- required: k,
705
- disabled: y,
706
- onClick: p,
703
+ name: u,
704
+ required: y,
705
+ disabled: k,
706
+ onClick: m,
707
707
  onChange: O,
708
- onFocus: m,
708
+ onFocus: p,
709
709
  onBlur: T,
710
710
  autoComplete: A,
711
711
  "aria-label": M,
712
712
  "aria-labelledby": ie,
713
713
  "aria-describedby": ue,
714
- "aria-invalid": !!_,
714
+ "aria-invalid": !!w,
715
715
  className: se,
716
716
  ...N
717
717
  }
718
718
  ),
719
- r && /* @__PURE__ */ s(
719
+ s && /* @__PURE__ */ o(
720
720
  "button",
721
721
  {
722
722
  type: "button",
723
723
  className: ee,
724
- onClick: y ? void 0 : a,
725
- tabIndex: a && !y ? 0 : -1,
724
+ onClick: k ? void 0 : a,
725
+ tabIndex: a && !k ? 0 : -1,
726
726
  "aria-hidden": !a,
727
- disabled: y,
727
+ disabled: k,
728
728
  "aria-label": a ? "Åpne datovelger" : void 0,
729
- children: r
729
+ children: s
730
730
  }
731
731
  )
732
732
  ] }),
733
- _ && /* @__PURE__ */ s("p", { id: V, className: ke.error, role: "alert", children: _ })
733
+ w && /* @__PURE__ */ o("p", { id: V, className: ke.error, role: "alert", children: w })
734
734
  ]
735
735
  }
736
736
  )
@@ -747,13 +747,13 @@ function Tt(t) {
747
747
  function rr() {
748
748
  return !!(typeof window < "u" && window.document && window.document.createElement);
749
749
  }
750
- function Ze(t, e) {
751
- const n = Object.keys(t), r = Object.keys(e);
752
- if (n.length !== r.length) return !1;
750
+ function Je(t, e) {
751
+ const n = Object.keys(t), s = Object.keys(e);
752
+ if (n.length !== s.length) return !1;
753
753
  const a = JSON.stringify(Object.keys(t.breakpoints || {})), i = JSON.stringify(Object.keys(e.breakpoints || {}));
754
- return a !== i ? !1 : n.every((o) => {
755
- const d = t[o], l = e[o];
756
- return typeof d == "function" ? `${d}` == `${l}` : !Tt(d) || !Tt(l) ? d === l : Ze(d, l);
754
+ return a !== i ? !1 : n.every((r) => {
755
+ const d = t[r], l = e[r];
756
+ return typeof d == "function" ? `${d}` == `${l}` : !Tt(d) || !Tt(l) ? d === l : Je(d, l);
757
757
  });
758
758
  }
759
759
  function St(t) {
@@ -761,75 +761,75 @@ function St(t) {
761
761
  }
762
762
  function sr(t, e) {
763
763
  if (t.length !== e.length) return !1;
764
- const n = St(t), r = St(e);
764
+ const n = St(t), s = St(e);
765
765
  return n.every((a, i) => {
766
- const o = r[i];
767
- return Ze(a, o);
766
+ const r = s[i];
767
+ return Je(a, r);
768
768
  });
769
769
  }
770
770
  function Qe(t) {
771
771
  return typeof t == "number";
772
772
  }
773
- function qe(t) {
773
+ function Ye(t) {
774
774
  return typeof t == "string";
775
775
  }
776
- function Pe(t) {
776
+ function ze(t) {
777
777
  return typeof t == "boolean";
778
778
  }
779
779
  function xt(t) {
780
780
  return Object.prototype.toString.call(t) === "[object Object]";
781
781
  }
782
- function $(t) {
782
+ function U(t) {
783
783
  return Math.abs(t);
784
784
  }
785
785
  function et(t) {
786
786
  return Math.sign(t);
787
787
  }
788
788
  function Ae(t, e) {
789
- return $(t - e);
789
+ return U(t - e);
790
790
  }
791
791
  function ir(t, e) {
792
- if (t === 0 || e === 0 || $(t) <= $(e)) return 0;
793
- const n = Ae($(t), $(e));
794
- return $(n / t);
792
+ if (t === 0 || e === 0 || U(t) <= U(e)) return 0;
793
+ const n = Ae(U(t), U(e));
794
+ return U(n / t);
795
795
  }
796
796
  function ar(t) {
797
797
  return Math.round(t * 100) / 100;
798
798
  }
799
- function Me(t) {
800
- return je(t).map(Number);
799
+ function Le(t) {
800
+ return Me(t).map(Number);
801
801
  }
802
802
  function le(t) {
803
- return t[Fe(t)];
803
+ return t[je(t)];
804
804
  }
805
- function Fe(t) {
805
+ function je(t) {
806
806
  return Math.max(0, t.length - 1);
807
807
  }
808
808
  function tt(t, e) {
809
- return e === Fe(t);
809
+ return e === je(t);
810
810
  }
811
811
  function Ct(t, e = 0) {
812
- return Array.from(Array(t), (n, r) => e + r);
812
+ return Array.from(Array(t), (n, s) => e + s);
813
813
  }
814
- function je(t) {
814
+ function Me(t) {
815
815
  return Object.keys(t);
816
816
  }
817
- function Lt(t, e) {
818
- return [t, e].reduce((n, r) => (je(r).forEach((a) => {
819
- const i = n[a], o = r[a], d = xt(i) && xt(o);
820
- n[a] = d ? Lt(i, o) : o;
817
+ function Et(t, e) {
818
+ return [t, e].reduce((n, s) => (Me(s).forEach((a) => {
819
+ const i = n[a], r = s[a], d = xt(i) && xt(r);
820
+ n[a] = d ? Et(i, r) : r;
821
821
  }), n), {});
822
822
  }
823
- function Xe(t, e) {
823
+ function Ze(t, e) {
824
824
  return typeof e.MouseEvent < "u" && t instanceof e.MouseEvent;
825
825
  }
826
826
  function lr(t, e) {
827
827
  const n = {
828
- start: r,
828
+ start: s,
829
829
  center: a,
830
830
  end: i
831
831
  };
832
- function r() {
832
+ function s() {
833
833
  return 0;
834
834
  }
835
835
  function a(l) {
@@ -838,64 +838,64 @@ function lr(t, e) {
838
838
  function i(l) {
839
839
  return e - l;
840
840
  }
841
- function o(l, c) {
842
- return qe(t) ? n[t](l) : t(e, l, c);
841
+ function r(l, c) {
842
+ return Ye(t) ? n[t](l) : t(e, l, c);
843
843
  }
844
844
  return {
845
- measure: o
845
+ measure: r
846
846
  };
847
847
  }
848
- function Le() {
848
+ function Ee() {
849
849
  let t = [];
850
- function e(a, i, o, d = {
850
+ function e(a, i, r, d = {
851
851
  passive: !0
852
852
  }) {
853
853
  let l;
854
854
  if ("addEventListener" in a)
855
- a.addEventListener(i, o, d), l = () => a.removeEventListener(i, o, d);
855
+ a.addEventListener(i, r, d), l = () => a.removeEventListener(i, r, d);
856
856
  else {
857
857
  const c = a;
858
- c.addListener(o), l = () => c.removeListener(o);
858
+ c.addListener(r), l = () => c.removeListener(r);
859
859
  }
860
- return t.push(l), r;
860
+ return t.push(l), s;
861
861
  }
862
862
  function n() {
863
863
  t = t.filter((a) => a());
864
864
  }
865
- const r = {
865
+ const s = {
866
866
  add: e,
867
867
  clear: n
868
868
  };
869
- return r;
869
+ return s;
870
870
  }
871
- function dr(t, e, n, r) {
872
- const a = Le(), i = 1e3 / 60;
873
- let o = null, d = 0, l = 0;
871
+ function dr(t, e, n, s) {
872
+ const a = Ee(), i = 1e3 / 60;
873
+ let r = null, d = 0, l = 0;
874
874
  function c() {
875
875
  a.add(t, "visibilitychange", () => {
876
- t.hidden && h();
876
+ t.hidden && u();
877
877
  });
878
878
  }
879
879
  function v() {
880
880
  g(), a.clear();
881
881
  }
882
- function u(y) {
882
+ function h(k) {
883
883
  if (!l) return;
884
- o || (o = y, n(), n());
885
- const p = y - o;
886
- for (o = y, d += p; d >= i; )
884
+ r || (r = k, n(), n());
885
+ const m = k - r;
886
+ for (r = k, d += m; d >= i; )
887
887
  n(), d -= i;
888
- const m = d / i;
889
- r(m), l && (l = e.requestAnimationFrame(u));
888
+ const p = d / i;
889
+ s(p), l && (l = e.requestAnimationFrame(h));
890
890
  }
891
891
  function f() {
892
- l || (l = e.requestAnimationFrame(u));
892
+ l || (l = e.requestAnimationFrame(h));
893
893
  }
894
894
  function g() {
895
- e.cancelAnimationFrame(l), o = null, d = 0, l = 0;
895
+ e.cancelAnimationFrame(l), r = null, d = 0, l = 0;
896
896
  }
897
- function h() {
898
- o = null, d = 0;
897
+ function u() {
898
+ r = null, d = 0;
899
899
  }
900
900
  return {
901
901
  init: c,
@@ -903,26 +903,26 @@ function dr(t, e, n, r) {
903
903
  start: f,
904
904
  stop: g,
905
905
  update: n,
906
- render: r
906
+ render: s
907
907
  };
908
908
  }
909
909
  function cr(t, e) {
910
- const n = e === "rtl", r = t === "y", a = r ? "y" : "x", i = r ? "x" : "y", o = !r && n ? -1 : 1, d = v(), l = u();
911
- function c(h) {
910
+ const n = e === "rtl", s = t === "y", a = s ? "y" : "x", i = s ? "x" : "y", r = !s && n ? -1 : 1, d = v(), l = h();
911
+ function c(u) {
912
912
  const {
913
- height: k,
914
- width: y
915
- } = h;
916
- return r ? k : y;
913
+ height: y,
914
+ width: k
915
+ } = u;
916
+ return s ? y : k;
917
917
  }
918
918
  function v() {
919
- return r ? "top" : n ? "right" : "left";
919
+ return s ? "top" : n ? "right" : "left";
920
920
  }
921
- function u() {
922
- return r ? "bottom" : n ? "left" : "right";
921
+ function h() {
922
+ return s ? "bottom" : n ? "left" : "right";
923
923
  }
924
- function f(h) {
925
- return h * o;
924
+ function f(u) {
925
+ return u * r;
926
926
  }
927
927
  return {
928
928
  scroll: a,
@@ -934,18 +934,18 @@ function cr(t, e) {
934
934
  };
935
935
  }
936
936
  function ye(t = 0, e = 0) {
937
- const n = $(t - e);
938
- function r(c) {
937
+ const n = U(t - e);
938
+ function s(c) {
939
939
  return c < t;
940
940
  }
941
941
  function a(c) {
942
942
  return c > e;
943
943
  }
944
944
  function i(c) {
945
- return r(c) || a(c);
945
+ return s(c) || a(c);
946
946
  }
947
- function o(c) {
948
- return i(c) ? r(c) ? t : e : c;
947
+ function r(c) {
948
+ return i(c) ? s(c) ? t : e : c;
949
949
  }
950
950
  function d(c) {
951
951
  return n ? c - n * Math.ceil((c - e) / n) : c;
@@ -954,154 +954,154 @@ function ye(t = 0, e = 0) {
954
954
  length: n,
955
955
  max: e,
956
956
  min: t,
957
- constrain: o,
957
+ constrain: r,
958
958
  reachedAny: i,
959
959
  reachedMax: a,
960
- reachedMin: r,
960
+ reachedMin: s,
961
961
  removeOffset: d
962
962
  };
963
963
  }
964
- function Ft(t, e, n) {
964
+ function jt(t, e, n) {
965
965
  const {
966
- constrain: r
966
+ constrain: s
967
967
  } = ye(0, t), a = t + 1;
968
- let i = o(e);
969
- function o(f) {
970
- return n ? $((a + f) % a) : r(f);
968
+ let i = r(e);
969
+ function r(f) {
970
+ return n ? U((a + f) % a) : s(f);
971
971
  }
972
972
  function d() {
973
973
  return i;
974
974
  }
975
975
  function l(f) {
976
- return i = o(f), u;
976
+ return i = r(f), h;
977
977
  }
978
978
  function c(f) {
979
979
  return v().set(d() + f);
980
980
  }
981
981
  function v() {
982
- return Ft(t, d(), n);
982
+ return jt(t, d(), n);
983
983
  }
984
- const u = {
984
+ const h = {
985
985
  get: d,
986
986
  set: l,
987
987
  add: c,
988
988
  clone: v
989
989
  };
990
- return u;
990
+ return h;
991
991
  }
992
- function ur(t, e, n, r, a, i, o, d, l, c, v, u, f, g, h, k, y, p, m) {
992
+ function ur(t, e, n, s, a, i, r, d, l, c, v, h, f, g, u, y, k, m, p) {
993
993
  const {
994
994
  cross: T,
995
995
  direction: A
996
- } = t, M = ["INPUT", "SELECT", "TEXTAREA"], C = {
996
+ } = t, M = ["INPUT", "SELECT", "TEXTAREA"], x = {
997
997
  passive: !1
998
- }, D = Le(), _ = Le(), L = ye(50, 225).constrain(g.measure(20)), E = {
998
+ }, I = Ee(), w = Ee(), L = ye(50, 225).constrain(g.measure(20)), F = {
999
999
  mouse: 300,
1000
1000
  touch: 400
1001
1001
  }, N = {
1002
1002
  mouse: 500,
1003
1003
  touch: 600
1004
- }, R = h ? 43 : 25;
1005
- let z = !1, G = 0, W = 0, B = !1, O = !1, te = !1, Q = !1;
1006
- function se(x) {
1007
- if (!m) return;
1008
- function P(Y) {
1009
- (Pe(m) || m(x, Y)) && b(Y);
1004
+ }, z = u ? 43 : 25;
1005
+ let R = !1, G = 0, $ = 0, B = !1, O = !1, te = !1, Q = !1;
1006
+ function se(C) {
1007
+ if (!p) return;
1008
+ function P(q) {
1009
+ (ze(p) || p(C, q)) && b(q);
1010
1010
  }
1011
- const H = e;
1012
- D.add(H, "dragstart", (Y) => Y.preventDefault(), C).add(H, "touchmove", () => {
1013
- }, C).add(H, "touchend", () => {
1014
- }).add(H, "touchstart", P).add(H, "mousedown", P).add(H, "touchcancel", j).add(H, "contextmenu", j).add(H, "click", K, !0);
1011
+ const W = e;
1012
+ I.add(W, "dragstart", (q) => q.preventDefault(), x).add(W, "touchmove", () => {
1013
+ }, x).add(W, "touchend", () => {
1014
+ }).add(W, "touchstart", P).add(W, "mousedown", P).add(W, "touchcancel", j).add(W, "contextmenu", j).add(W, "click", K, !0);
1015
1015
  }
1016
1016
  function ee() {
1017
- D.clear(), _.clear();
1017
+ I.clear(), w.clear();
1018
1018
  }
1019
1019
  function ie() {
1020
- const x = Q ? n : e;
1021
- _.add(x, "touchmove", I, C).add(x, "touchend", j).add(x, "mousemove", I, C).add(x, "mouseup", j);
1020
+ const C = Q ? n : e;
1021
+ w.add(C, "touchmove", _, x).add(C, "touchend", j).add(C, "mousemove", _, x).add(C, "mouseup", j);
1022
1022
  }
1023
- function ae(x) {
1024
- const P = x.nodeName || "";
1023
+ function ae(C) {
1024
+ const P = C.nodeName || "";
1025
1025
  return M.includes(P);
1026
1026
  }
1027
1027
  function V() {
1028
- return (h ? N : E)[Q ? "mouse" : "touch"];
1028
+ return (u ? N : F)[Q ? "mouse" : "touch"];
1029
1029
  }
1030
- function ue(x, P) {
1031
- const H = u.add(et(x) * -1), Y = v.byDistance(x, !h).distance;
1032
- return h || $(x) < L ? Y : y && P ? Y * 0.5 : v.byIndex(H.get(), 0).distance;
1030
+ function ue(C, P) {
1031
+ const W = h.add(et(C) * -1), q = v.byDistance(C, !u).distance;
1032
+ return u || U(C) < L ? q : k && P ? q * 0.5 : v.byIndex(W.get(), 0).distance;
1033
1033
  }
1034
- function b(x) {
1035
- const P = Xe(x, r);
1036
- Q = P, te = h && P && !x.buttons && z, z = Ae(a.get(), o.get()) >= 2, !(P && x.button !== 0) && (ae(x.target) || (B = !0, i.pointerDown(x), c.useFriction(0).useDuration(0), a.set(o), ie(), G = i.readPoint(x), W = i.readPoint(x, T), f.emit("pointerDown")));
1034
+ function b(C) {
1035
+ const P = Ze(C, s);
1036
+ Q = P, te = u && P && !C.buttons && R, R = Ae(a.get(), r.get()) >= 2, !(P && C.button !== 0) && (ae(C.target) || (B = !0, i.pointerDown(C), c.useFriction(0).useDuration(0), a.set(r), ie(), G = i.readPoint(C), $ = i.readPoint(C, T), f.emit("pointerDown")));
1037
1037
  }
1038
- function I(x) {
1039
- if (!Xe(x, r) && x.touches.length >= 2) return j(x);
1040
- const H = i.readPoint(x), Y = i.readPoint(x, T), de = Ae(H, G), me = Ae(Y, W);
1041
- if (!O && !Q && (!x.cancelable || (O = de > me, !O)))
1042
- return j(x);
1043
- const he = i.pointerMove(x);
1044
- de > k && (te = !0), c.useFriction(0.3).useDuration(0.75), d.start(), a.add(A(he)), x.preventDefault();
1038
+ function _(C) {
1039
+ if (!Ze(C, s) && C.touches.length >= 2) return j(C);
1040
+ const W = i.readPoint(C), q = i.readPoint(C, T), de = Ae(W, G), me = Ae(q, $);
1041
+ if (!O && !Q && (!C.cancelable || (O = de > me, !O)))
1042
+ return j(C);
1043
+ const he = i.pointerMove(C);
1044
+ de > y && (te = !0), c.useFriction(0.3).useDuration(0.75), d.start(), a.add(A(he)), C.preventDefault();
1045
1045
  }
1046
- function j(x) {
1047
- const H = v.byDistance(0, !1).index !== u.get(), Y = i.pointerUp(x) * V(), de = ue(A(Y), H), me = ir(Y, de), he = R - 10 * me, pe = p + me / 50;
1048
- O = !1, B = !1, _.clear(), c.useDuration(he).useFriction(pe), l.distance(de, !h), Q = !1, f.emit("pointerUp");
1046
+ function j(C) {
1047
+ const W = v.byDistance(0, !1).index !== h.get(), q = i.pointerUp(C) * V(), de = ue(A(q), W), me = ir(q, de), he = z - 10 * me, pe = m + me / 50;
1048
+ O = !1, B = !1, w.clear(), c.useDuration(he).useFriction(pe), l.distance(de, !u), Q = !1, f.emit("pointerUp");
1049
1049
  }
1050
- function K(x) {
1051
- te && (x.stopPropagation(), x.preventDefault(), te = !1);
1050
+ function K(C) {
1051
+ te && (C.stopPropagation(), C.preventDefault(), te = !1);
1052
1052
  }
1053
- function q() {
1053
+ function Y() {
1054
1054
  return B;
1055
1055
  }
1056
1056
  return {
1057
1057
  init: se,
1058
1058
  destroy: ee,
1059
- pointerDown: q
1059
+ pointerDown: Y
1060
1060
  };
1061
1061
  }
1062
1062
  function mr(t, e) {
1063
- let r, a;
1064
- function i(u) {
1065
- return u.timeStamp;
1063
+ let s, a;
1064
+ function i(h) {
1065
+ return h.timeStamp;
1066
1066
  }
1067
- function o(u, f) {
1068
- const h = `client${(f || t.scroll) === "x" ? "X" : "Y"}`;
1069
- return (Xe(u, e) ? u : u.touches[0])[h];
1067
+ function r(h, f) {
1068
+ const u = `client${(f || t.scroll) === "x" ? "X" : "Y"}`;
1069
+ return (Ze(h, e) ? h : h.touches[0])[u];
1070
1070
  }
1071
- function d(u) {
1072
- return r = u, a = u, o(u);
1071
+ function d(h) {
1072
+ return s = h, a = h, r(h);
1073
1073
  }
1074
- function l(u) {
1075
- const f = o(u) - o(a), g = i(u) - i(r) > 170;
1076
- return a = u, g && (r = u), f;
1074
+ function l(h) {
1075
+ const f = r(h) - r(a), g = i(h) - i(s) > 170;
1076
+ return a = h, g && (s = h), f;
1077
1077
  }
1078
- function c(u) {
1079
- if (!r || !a) return 0;
1080
- const f = o(a) - o(r), g = i(u) - i(r), h = i(u) - i(a) > 170, k = f / g;
1081
- return g && !h && $(k) > 0.1 ? k : 0;
1078
+ function c(h) {
1079
+ if (!s || !a) return 0;
1080
+ const f = r(a) - r(s), g = i(h) - i(s), u = i(h) - i(a) > 170, y = f / g;
1081
+ return g && !u && U(y) > 0.1 ? y : 0;
1082
1082
  }
1083
1083
  return {
1084
1084
  pointerDown: d,
1085
1085
  pointerMove: l,
1086
1086
  pointerUp: c,
1087
- readPoint: o
1087
+ readPoint: r
1088
1088
  };
1089
1089
  }
1090
1090
  function pr() {
1091
1091
  function t(n) {
1092
1092
  const {
1093
- offsetTop: r,
1093
+ offsetTop: s,
1094
1094
  offsetLeft: a,
1095
1095
  offsetWidth: i,
1096
- offsetHeight: o
1096
+ offsetHeight: r
1097
1097
  } = n;
1098
1098
  return {
1099
- top: r,
1099
+ top: s,
1100
1100
  right: a + i,
1101
- bottom: r + o,
1101
+ bottom: s + r,
1102
1102
  left: a,
1103
1103
  width: i,
1104
- height: o
1104
+ height: r
1105
1105
  };
1106
1106
  }
1107
1107
  return {
@@ -1109,137 +1109,137 @@ function pr() {
1109
1109
  };
1110
1110
  }
1111
1111
  function gr(t) {
1112
- function e(r) {
1113
- return t * (r / 100);
1112
+ function e(s) {
1113
+ return t * (s / 100);
1114
1114
  }
1115
1115
  return {
1116
1116
  measure: e
1117
1117
  };
1118
1118
  }
1119
- function hr(t, e, n, r, a, i, o) {
1120
- const d = [t].concat(r);
1121
- let l, c, v = [], u = !1;
1122
- function f(y) {
1123
- return a.measureSize(o.measure(y));
1119
+ function hr(t, e, n, s, a, i, r) {
1120
+ const d = [t].concat(s);
1121
+ let l, c, v = [], h = !1;
1122
+ function f(k) {
1123
+ return a.measureSize(r.measure(k));
1124
1124
  }
1125
- function g(y) {
1125
+ function g(k) {
1126
1126
  if (!i) return;
1127
- c = f(t), v = r.map(f);
1128
- function p(m) {
1129
- for (const T of m) {
1130
- if (u) return;
1131
- const A = T.target === t, M = r.indexOf(T.target), C = A ? c : v[M], D = f(A ? t : r[M]);
1132
- if ($(D - C) >= 0.5) {
1133
- y.reInit(), e.emit("resize");
1127
+ c = f(t), v = s.map(f);
1128
+ function m(p) {
1129
+ for (const T of p) {
1130
+ if (h) return;
1131
+ const A = T.target === t, M = s.indexOf(T.target), x = A ? c : v[M], I = f(A ? t : s[M]);
1132
+ if (U(I - x) >= 0.5) {
1133
+ k.reInit(), e.emit("resize");
1134
1134
  break;
1135
1135
  }
1136
1136
  }
1137
1137
  }
1138
- l = new ResizeObserver((m) => {
1139
- (Pe(i) || i(y, m)) && p(m);
1138
+ l = new ResizeObserver((p) => {
1139
+ (ze(i) || i(k, p)) && m(p);
1140
1140
  }), n.requestAnimationFrame(() => {
1141
- d.forEach((m) => l.observe(m));
1141
+ d.forEach((p) => l.observe(p));
1142
1142
  });
1143
1143
  }
1144
- function h() {
1145
- u = !0, l && l.disconnect();
1144
+ function u() {
1145
+ h = !0, l && l.disconnect();
1146
1146
  }
1147
1147
  return {
1148
1148
  init: g,
1149
- destroy: h
1149
+ destroy: u
1150
1150
  };
1151
1151
  }
1152
- function fr(t, e, n, r, a, i) {
1153
- let o = 0, d = 0, l = a, c = i, v = t.get(), u = 0;
1152
+ function fr(t, e, n, s, a, i) {
1153
+ let r = 0, d = 0, l = a, c = i, v = t.get(), h = 0;
1154
1154
  function f() {
1155
- const C = r.get() - t.get(), D = !l;
1156
- let _ = 0;
1157
- return D ? (o = 0, n.set(r), t.set(r), _ = C) : (n.set(t), o += C / l, o *= c, v += o, t.add(o), _ = v - u), d = et(_), u = v, M;
1155
+ const x = s.get() - t.get(), I = !l;
1156
+ let w = 0;
1157
+ return I ? (r = 0, n.set(s), t.set(s), w = x) : (n.set(t), r += x / l, r *= c, v += r, t.add(r), w = v - h), d = et(w), h = v, M;
1158
1158
  }
1159
1159
  function g() {
1160
- const C = r.get() - e.get();
1161
- return $(C) < 1e-3;
1160
+ const x = s.get() - e.get();
1161
+ return U(x) < 1e-3;
1162
1162
  }
1163
- function h() {
1163
+ function u() {
1164
1164
  return l;
1165
1165
  }
1166
- function k() {
1166
+ function y() {
1167
1167
  return d;
1168
1168
  }
1169
- function y() {
1170
- return o;
1169
+ function k() {
1170
+ return r;
1171
1171
  }
1172
- function p() {
1172
+ function m() {
1173
1173
  return T(a);
1174
1174
  }
1175
- function m() {
1175
+ function p() {
1176
1176
  return A(i);
1177
1177
  }
1178
- function T(C) {
1179
- return l = C, M;
1178
+ function T(x) {
1179
+ return l = x, M;
1180
1180
  }
1181
- function A(C) {
1182
- return c = C, M;
1181
+ function A(x) {
1182
+ return c = x, M;
1183
1183
  }
1184
1184
  const M = {
1185
- direction: k,
1186
- duration: h,
1187
- velocity: y,
1185
+ direction: y,
1186
+ duration: u,
1187
+ velocity: k,
1188
1188
  seek: f,
1189
1189
  settled: g,
1190
- useBaseFriction: m,
1191
- useBaseDuration: p,
1190
+ useBaseFriction: p,
1191
+ useBaseDuration: m,
1192
1192
  useFriction: A,
1193
1193
  useDuration: T
1194
1194
  };
1195
1195
  return M;
1196
1196
  }
1197
- function kr(t, e, n, r, a) {
1198
- const i = a.measure(10), o = a.measure(50), d = ye(0.1, 0.99);
1197
+ function kr(t, e, n, s, a) {
1198
+ const i = a.measure(10), r = a.measure(50), d = ye(0.1, 0.99);
1199
1199
  let l = !1;
1200
1200
  function c() {
1201
1201
  return !(l || !t.reachedAny(n.get()) || !t.reachedAny(e.get()));
1202
1202
  }
1203
1203
  function v(g) {
1204
1204
  if (!c()) return;
1205
- const h = t.reachedMin(e.get()) ? "min" : "max", k = $(t[h] - e.get()), y = n.get() - e.get(), p = d.constrain(k / o);
1206
- n.subtract(y * p), !g && $(y) < i && (n.set(t.constrain(n.get())), r.useDuration(25).useBaseFriction());
1205
+ const u = t.reachedMin(e.get()) ? "min" : "max", y = U(t[u] - e.get()), k = n.get() - e.get(), m = d.constrain(y / r);
1206
+ n.subtract(k * m), !g && U(k) < i && (n.set(t.constrain(n.get())), s.useDuration(25).useBaseFriction());
1207
1207
  }
1208
- function u(g) {
1208
+ function h(g) {
1209
1209
  l = !g;
1210
1210
  }
1211
1211
  return {
1212
1212
  shouldConstrain: c,
1213
1213
  constrain: v,
1214
- toggleActive: u
1214
+ toggleActive: h
1215
1215
  };
1216
1216
  }
1217
- function yr(t, e, n, r, a) {
1218
- const i = ye(-e + t, 0), o = u(), d = v(), l = f();
1219
- function c(h, k) {
1220
- return Ae(h, k) <= 1;
1217
+ function yr(t, e, n, s, a) {
1218
+ const i = ye(-e + t, 0), r = h(), d = v(), l = f();
1219
+ function c(u, y) {
1220
+ return Ae(u, y) <= 1;
1221
1221
  }
1222
1222
  function v() {
1223
- const h = o[0], k = le(o), y = o.lastIndexOf(h), p = o.indexOf(k) + 1;
1224
- return ye(y, p);
1223
+ const u = r[0], y = le(r), k = r.lastIndexOf(u), m = r.indexOf(y) + 1;
1224
+ return ye(k, m);
1225
1225
  }
1226
- function u() {
1227
- return n.map((h, k) => {
1226
+ function h() {
1227
+ return n.map((u, y) => {
1228
1228
  const {
1229
- min: y,
1230
- max: p
1231
- } = i, m = i.constrain(h), T = !k, A = tt(n, k);
1232
- return T ? p : A || c(y, m) ? y : c(p, m) ? p : m;
1233
- }).map((h) => parseFloat(h.toFixed(3)));
1229
+ min: k,
1230
+ max: m
1231
+ } = i, p = i.constrain(u), T = !y, A = tt(n, y);
1232
+ return T ? m : A || c(k, p) ? k : c(m, p) ? m : p;
1233
+ }).map((u) => parseFloat(u.toFixed(3)));
1234
1234
  }
1235
1235
  function f() {
1236
1236
  if (e <= t + a) return [i.max];
1237
- if (r === "keepSnaps") return o;
1237
+ if (s === "keepSnaps") return r;
1238
1238
  const {
1239
- min: h,
1240
- max: k
1239
+ min: u,
1240
+ max: y
1241
1241
  } = d;
1242
- return o.slice(h, k);
1242
+ return r.slice(u, y);
1243
1243
  }
1244
1244
  return {
1245
1245
  snapsContained: l,
@@ -1247,23 +1247,23 @@ function yr(t, e, n, r, a) {
1247
1247
  };
1248
1248
  }
1249
1249
  function vr(t, e, n) {
1250
- const r = e[0], a = n ? r - t : le(e);
1250
+ const s = e[0], a = n ? s - t : le(e);
1251
1251
  return {
1252
- limit: ye(a, r)
1252
+ limit: ye(a, s)
1253
1253
  };
1254
1254
  }
1255
- function br(t, e, n, r) {
1256
- const i = e.min + 0.1, o = e.max + 0.1, {
1255
+ function br(t, e, n, s) {
1256
+ const i = e.min + 0.1, r = e.max + 0.1, {
1257
1257
  reachedMin: d,
1258
1258
  reachedMax: l
1259
- } = ye(i, o);
1259
+ } = ye(i, r);
1260
1260
  function c(f) {
1261
1261
  return f === 1 ? l(n.get()) : f === -1 ? d(n.get()) : !1;
1262
1262
  }
1263
1263
  function v(f) {
1264
1264
  if (!c(f)) return;
1265
1265
  const g = t * (f * -1);
1266
- r.forEach((h) => h.add(g));
1266
+ s.forEach((u) => u.add(g));
1267
1267
  }
1268
1268
  return {
1269
1269
  loop: v
@@ -1274,136 +1274,136 @@ function Tr(t) {
1274
1274
  max: e,
1275
1275
  length: n
1276
1276
  } = t;
1277
- function r(i) {
1278
- const o = i - e;
1279
- return n ? o / -n : 0;
1277
+ function s(i) {
1278
+ const r = i - e;
1279
+ return n ? r / -n : 0;
1280
1280
  }
1281
1281
  return {
1282
- get: r
1282
+ get: s
1283
1283
  };
1284
1284
  }
1285
- function Sr(t, e, n, r, a) {
1285
+ function Sr(t, e, n, s, a) {
1286
1286
  const {
1287
1287
  startEdge: i,
1288
- endEdge: o
1288
+ endEdge: r
1289
1289
  } = t, {
1290
1290
  groupSlides: d
1291
- } = a, l = u().map(e.measure), c = f(), v = g();
1292
- function u() {
1293
- return d(r).map((k) => le(k)[o] - k[0][i]).map($);
1291
+ } = a, l = h().map(e.measure), c = f(), v = g();
1292
+ function h() {
1293
+ return d(s).map((y) => le(y)[r] - y[0][i]).map(U);
1294
1294
  }
1295
1295
  function f() {
1296
- return r.map((k) => n[i] - k[i]).map((k) => -$(k));
1296
+ return s.map((y) => n[i] - y[i]).map((y) => -U(y));
1297
1297
  }
1298
1298
  function g() {
1299
- return d(c).map((k) => k[0]).map((k, y) => k + l[y]);
1299
+ return d(c).map((y) => y[0]).map((y, k) => y + l[k]);
1300
1300
  }
1301
1301
  return {
1302
1302
  snaps: c,
1303
1303
  snapsAligned: v
1304
1304
  };
1305
1305
  }
1306
- function xr(t, e, n, r, a, i) {
1306
+ function xr(t, e, n, s, a, i) {
1307
1307
  const {
1308
- groupSlides: o
1308
+ groupSlides: r
1309
1309
  } = a, {
1310
1310
  min: d,
1311
1311
  max: l
1312
- } = r, c = v();
1312
+ } = s, c = v();
1313
1313
  function v() {
1314
- const f = o(i), g = !t || e === "keepSnaps";
1315
- return n.length === 1 ? [i] : g ? f : f.slice(d, l).map((h, k, y) => {
1316
- const p = !k, m = tt(y, k);
1317
- if (p) {
1318
- const T = le(y[0]) + 1;
1314
+ const f = r(i), g = !t || e === "keepSnaps";
1315
+ return n.length === 1 ? [i] : g ? f : f.slice(d, l).map((u, y, k) => {
1316
+ const m = !y, p = tt(k, y);
1317
+ if (m) {
1318
+ const T = le(k[0]) + 1;
1319
1319
  return Ct(T);
1320
1320
  }
1321
- if (m) {
1322
- const T = Fe(i) - le(y)[0] + 1;
1323
- return Ct(T, le(y)[0]);
1321
+ if (p) {
1322
+ const T = je(i) - le(k)[0] + 1;
1323
+ return Ct(T, le(k)[0]);
1324
1324
  }
1325
- return h;
1325
+ return u;
1326
1326
  });
1327
1327
  }
1328
1328
  return {
1329
1329
  slideRegistry: c
1330
1330
  };
1331
1331
  }
1332
- function Cr(t, e, n, r, a) {
1332
+ function Cr(t, e, n, s, a) {
1333
1333
  const {
1334
1334
  reachedAny: i,
1335
- removeOffset: o,
1335
+ removeOffset: r,
1336
1336
  constrain: d
1337
- } = r;
1338
- function l(h) {
1339
- return h.concat().sort((k, y) => $(k) - $(y))[0];
1337
+ } = s;
1338
+ function l(u) {
1339
+ return u.concat().sort((y, k) => U(y) - U(k))[0];
1340
1340
  }
1341
- function c(h) {
1342
- const k = t ? o(h) : d(h), y = e.map((m, T) => ({
1343
- diff: v(m - k, 0),
1341
+ function c(u) {
1342
+ const y = t ? r(u) : d(u), k = e.map((p, T) => ({
1343
+ diff: v(p - y, 0),
1344
1344
  index: T
1345
- })).sort((m, T) => $(m.diff) - $(T.diff)), {
1346
- index: p
1347
- } = y[0];
1345
+ })).sort((p, T) => U(p.diff) - U(T.diff)), {
1346
+ index: m
1347
+ } = k[0];
1348
1348
  return {
1349
- index: p,
1350
- distance: k
1349
+ index: m,
1350
+ distance: y
1351
1351
  };
1352
1352
  }
1353
- function v(h, k) {
1354
- const y = [h, h + n, h - n];
1355
- if (!t) return h;
1356
- if (!k) return l(y);
1357
- const p = y.filter((m) => et(m) === k);
1358
- return p.length ? l(p) : le(y) - n;
1353
+ function v(u, y) {
1354
+ const k = [u, u + n, u - n];
1355
+ if (!t) return u;
1356
+ if (!y) return l(k);
1357
+ const m = k.filter((p) => et(p) === y);
1358
+ return m.length ? l(m) : le(k) - n;
1359
1359
  }
1360
- function u(h, k) {
1361
- const y = e[h] - a.get(), p = v(y, k);
1360
+ function h(u, y) {
1361
+ const k = e[u] - a.get(), m = v(k, y);
1362
1362
  return {
1363
- index: h,
1364
- distance: p
1363
+ index: u,
1364
+ distance: m
1365
1365
  };
1366
1366
  }
1367
- function f(h, k) {
1368
- const y = a.get() + h, {
1369
- index: p,
1370
- distance: m
1371
- } = c(y), T = !t && i(y);
1372
- if (!k || T) return {
1373
- index: p,
1374
- distance: h
1367
+ function f(u, y) {
1368
+ const k = a.get() + u, {
1369
+ index: m,
1370
+ distance: p
1371
+ } = c(k), T = !t && i(k);
1372
+ if (!y || T) return {
1373
+ index: m,
1374
+ distance: u
1375
1375
  };
1376
- const A = e[p] - m, M = h + v(A, 0);
1376
+ const A = e[m] - p, M = u + v(A, 0);
1377
1377
  return {
1378
- index: p,
1378
+ index: m,
1379
1379
  distance: M
1380
1380
  };
1381
1381
  }
1382
1382
  return {
1383
1383
  byDistance: f,
1384
- byIndex: u,
1384
+ byIndex: h,
1385
1385
  shortcut: v
1386
1386
  };
1387
1387
  }
1388
- function wr(t, e, n, r, a, i, o) {
1389
- function d(u) {
1390
- const f = u.distance, g = u.index !== e.get();
1391
- i.add(f), f && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(u.index), o.emit("select"));
1388
+ function wr(t, e, n, s, a, i, r) {
1389
+ function d(h) {
1390
+ const f = h.distance, g = h.index !== e.get();
1391
+ i.add(f), f && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (n.set(e.get()), e.set(h.index), r.emit("select"));
1392
1392
  }
1393
- function l(u, f) {
1394
- const g = a.byDistance(u, f);
1393
+ function l(h, f) {
1394
+ const g = a.byDistance(h, f);
1395
1395
  d(g);
1396
1396
  }
1397
- function c(u, f) {
1398
- const g = e.clone().set(u), h = a.byIndex(g.get(), f);
1399
- d(h);
1397
+ function c(h, f) {
1398
+ const g = e.clone().set(h), u = a.byIndex(g.get(), f);
1399
+ d(u);
1400
1400
  }
1401
1401
  return {
1402
1402
  distance: l,
1403
1403
  index: c
1404
1404
  };
1405
1405
  }
1406
- function Ir(t, e, n, r, a, i, o, d) {
1406
+ function Ir(t, e, n, s, a, i, r, d) {
1407
1407
  const l = {
1408
1408
  passive: !0,
1409
1409
  capture: !0
@@ -1411,19 +1411,19 @@ function Ir(t, e, n, r, a, i, o, d) {
1411
1411
  let c = 0;
1412
1412
  function v(g) {
1413
1413
  if (!d) return;
1414
- function h(k) {
1414
+ function u(y) {
1415
1415
  if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
1416
- o.emit("slideFocusStart"), t.scrollLeft = 0;
1417
- const m = n.findIndex((T) => T.includes(k));
1418
- Qe(m) && (a.useDuration(0), r.index(m, 0), o.emit("slideFocus"));
1416
+ r.emit("slideFocusStart"), t.scrollLeft = 0;
1417
+ const p = n.findIndex((T) => T.includes(y));
1418
+ Qe(p) && (a.useDuration(0), s.index(p, 0), r.emit("slideFocus"));
1419
1419
  }
1420
- i.add(document, "keydown", u, !1), e.forEach((k, y) => {
1421
- i.add(k, "focus", (p) => {
1422
- (Pe(d) || d(g, p)) && h(y);
1420
+ i.add(document, "keydown", h, !1), e.forEach((y, k) => {
1421
+ i.add(y, "focus", (m) => {
1422
+ (ze(d) || d(g, m)) && u(k);
1423
1423
  }, l);
1424
1424
  });
1425
1425
  }
1426
- function u(g) {
1426
+ function h(g) {
1427
1427
  g.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
1428
1428
  }
1429
1429
  return {
@@ -1435,29 +1435,29 @@ function _e(t) {
1435
1435
  function n() {
1436
1436
  return e;
1437
1437
  }
1438
- function r(l) {
1439
- e = o(l);
1438
+ function s(l) {
1439
+ e = r(l);
1440
1440
  }
1441
1441
  function a(l) {
1442
- e += o(l);
1442
+ e += r(l);
1443
1443
  }
1444
1444
  function i(l) {
1445
- e -= o(l);
1445
+ e -= r(l);
1446
1446
  }
1447
- function o(l) {
1447
+ function r(l) {
1448
1448
  return Qe(l) ? l : l.get();
1449
1449
  }
1450
1450
  return {
1451
1451
  get: n,
1452
- set: r,
1452
+ set: s,
1453
1453
  add: a,
1454
1454
  subtract: i
1455
1455
  };
1456
1456
  }
1457
- function Et(t, e) {
1458
- const n = t.scroll === "x" ? o : d, r = e.style;
1457
+ function Ft(t, e) {
1458
+ const n = t.scroll === "x" ? r : d, s = e.style;
1459
1459
  let a = null, i = !1;
1460
- function o(f) {
1460
+ function r(f) {
1461
1461
  return `translate3d(${f}px,0px,0px)`;
1462
1462
  }
1463
1463
  function d(f) {
@@ -1466,13 +1466,13 @@ function Et(t, e) {
1466
1466
  function l(f) {
1467
1467
  if (i) return;
1468
1468
  const g = ar(t.direction(f));
1469
- g !== a && (r.transform = n(g), a = g);
1469
+ g !== a && (s.transform = n(g), a = g);
1470
1470
  }
1471
1471
  function c(f) {
1472
1472
  i = !f;
1473
1473
  }
1474
1474
  function v() {
1475
- i || (r.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
1475
+ i || (s.transform = "", e.getAttribute("style") || e.removeAttribute("style"));
1476
1476
  }
1477
1477
  return {
1478
1478
  clear: v,
@@ -1480,61 +1480,61 @@ function Et(t, e) {
1480
1480
  toggleActive: c
1481
1481
  };
1482
1482
  }
1483
- function Dr(t, e, n, r, a, i, o, d, l) {
1484
- const v = Me(a), u = Me(a).reverse(), f = p().concat(m());
1485
- function g(D, _) {
1486
- return D.reduce((L, E) => L - a[E], _);
1487
- }
1488
- function h(D, _) {
1489
- return D.reduce((L, E) => g(L, _) > 0 ? L.concat([E]) : L, []);
1490
- }
1491
- function k(D) {
1492
- return i.map((_, L) => ({
1493
- start: _ - r[L] + 0.5 + D,
1494
- end: _ + e - 0.5 + D
1483
+ function Dr(t, e, n, s, a, i, r, d, l) {
1484
+ const v = Le(a), h = Le(a).reverse(), f = m().concat(p());
1485
+ function g(I, w) {
1486
+ return I.reduce((L, F) => L - a[F], w);
1487
+ }
1488
+ function u(I, w) {
1489
+ return I.reduce((L, F) => g(L, w) > 0 ? L.concat([F]) : L, []);
1490
+ }
1491
+ function y(I) {
1492
+ return i.map((w, L) => ({
1493
+ start: w - s[L] + 0.5 + I,
1494
+ end: w + e - 0.5 + I
1495
1495
  }));
1496
1496
  }
1497
- function y(D, _, L) {
1498
- const E = k(_);
1499
- return D.map((N) => {
1500
- const R = L ? 0 : -n, z = L ? n : 0, G = L ? "end" : "start", W = E[N][G];
1497
+ function k(I, w, L) {
1498
+ const F = y(w);
1499
+ return I.map((N) => {
1500
+ const z = L ? 0 : -n, R = L ? n : 0, G = L ? "end" : "start", $ = F[N][G];
1501
1501
  return {
1502
1502
  index: N,
1503
- loopPoint: W,
1503
+ loopPoint: $,
1504
1504
  slideLocation: _e(-1),
1505
- translate: Et(t, l[N]),
1506
- target: () => d.get() > W ? R : z
1505
+ translate: Ft(t, l[N]),
1506
+ target: () => d.get() > $ ? z : R
1507
1507
  };
1508
1508
  });
1509
1509
  }
1510
- function p() {
1511
- const D = o[0], _ = h(u, D);
1512
- return y(_, n, !1);
1513
- }
1514
1510
  function m() {
1515
- const D = e - o[0] - 1, _ = h(v, D);
1516
- return y(_, -n, !0);
1511
+ const I = r[0], w = u(h, I);
1512
+ return k(w, n, !1);
1513
+ }
1514
+ function p() {
1515
+ const I = e - r[0] - 1, w = u(v, I);
1516
+ return k(w, -n, !0);
1517
1517
  }
1518
1518
  function T() {
1519
1519
  return f.every(({
1520
- index: D
1520
+ index: I
1521
1521
  }) => {
1522
- const _ = v.filter((L) => L !== D);
1523
- return g(_, e) <= 0.1;
1522
+ const w = v.filter((L) => L !== I);
1523
+ return g(w, e) <= 0.1;
1524
1524
  });
1525
1525
  }
1526
1526
  function A() {
1527
- f.forEach((D) => {
1527
+ f.forEach((I) => {
1528
1528
  const {
1529
- target: _,
1529
+ target: w,
1530
1530
  translate: L,
1531
- slideLocation: E
1532
- } = D, N = _();
1533
- N !== E.get() && (L.to(N), E.set(N));
1531
+ slideLocation: F
1532
+ } = I, N = w();
1533
+ N !== F.get() && (L.to(N), F.set(N));
1534
1534
  });
1535
1535
  }
1536
1536
  function M() {
1537
- f.forEach((D) => D.translate.clear());
1537
+ f.forEach((I) => I.translate.clear());
1538
1538
  }
1539
1539
  return {
1540
1540
  canLoop: T,
@@ -1544,60 +1544,60 @@ function Dr(t, e, n, r, a, i, o, d, l) {
1544
1544
  };
1545
1545
  }
1546
1546
  function _r(t, e, n) {
1547
- let r, a = !1;
1547
+ let s, a = !1;
1548
1548
  function i(l) {
1549
1549
  if (!n) return;
1550
1550
  function c(v) {
1551
- for (const u of v)
1552
- if (u.type === "childList") {
1551
+ for (const h of v)
1552
+ if (h.type === "childList") {
1553
1553
  l.reInit(), e.emit("slidesChanged");
1554
1554
  break;
1555
1555
  }
1556
1556
  }
1557
- r = new MutationObserver((v) => {
1558
- a || (Pe(n) || n(l, v)) && c(v);
1559
- }), r.observe(t, {
1557
+ s = new MutationObserver((v) => {
1558
+ a || (ze(n) || n(l, v)) && c(v);
1559
+ }), s.observe(t, {
1560
1560
  childList: !0
1561
1561
  });
1562
1562
  }
1563
- function o() {
1564
- r && r.disconnect(), a = !0;
1563
+ function r() {
1564
+ s && s.disconnect(), a = !0;
1565
1565
  }
1566
1566
  return {
1567
1567
  init: i,
1568
- destroy: o
1568
+ destroy: r
1569
1569
  };
1570
1570
  }
1571
- function Ar(t, e, n, r) {
1571
+ function Ar(t, e, n, s) {
1572
1572
  const a = {};
1573
- let i = null, o = null, d, l = !1;
1573
+ let i = null, r = null, d, l = !1;
1574
1574
  function c() {
1575
- d = new IntersectionObserver((h) => {
1576
- l || (h.forEach((k) => {
1577
- const y = e.indexOf(k.target);
1578
- a[y] = k;
1579
- }), i = null, o = null, n.emit("slidesInView"));
1575
+ d = new IntersectionObserver((u) => {
1576
+ l || (u.forEach((y) => {
1577
+ const k = e.indexOf(y.target);
1578
+ a[k] = y;
1579
+ }), i = null, r = null, n.emit("slidesInView"));
1580
1580
  }, {
1581
1581
  root: t.parentElement,
1582
- threshold: r
1583
- }), e.forEach((h) => d.observe(h));
1582
+ threshold: s
1583
+ }), e.forEach((u) => d.observe(u));
1584
1584
  }
1585
1585
  function v() {
1586
1586
  d && d.disconnect(), l = !0;
1587
1587
  }
1588
- function u(h) {
1589
- return je(a).reduce((k, y) => {
1590
- const p = parseInt(y), {
1591
- isIntersecting: m
1592
- } = a[p];
1593
- return (h && m || !h && !m) && k.push(p), k;
1588
+ function h(u) {
1589
+ return Me(a).reduce((y, k) => {
1590
+ const m = parseInt(k), {
1591
+ isIntersecting: p
1592
+ } = a[m];
1593
+ return (u && p || !u && !p) && y.push(m), y;
1594
1594
  }, []);
1595
1595
  }
1596
- function f(h = !0) {
1597
- if (h && i) return i;
1598
- if (!h && o) return o;
1599
- const k = u(h);
1600
- return h && (i = k), h || (o = k), k;
1596
+ function f(u = !0) {
1597
+ if (u && i) return i;
1598
+ if (!u && r) return r;
1599
+ const y = h(u);
1600
+ return u && (i = y), u || (r = y), y;
1601
1601
  }
1602
1602
  return {
1603
1603
  init: c,
@@ -1605,177 +1605,177 @@ function Ar(t, e, n, r) {
1605
1605
  get: f
1606
1606
  };
1607
1607
  }
1608
- function Mr(t, e, n, r, a, i) {
1608
+ function Lr(t, e, n, s, a, i) {
1609
1609
  const {
1610
- measureSize: o,
1610
+ measureSize: r,
1611
1611
  startEdge: d,
1612
1612
  endEdge: l
1613
- } = t, c = n[0] && a, v = h(), u = k(), f = n.map(o), g = y();
1614
- function h() {
1613
+ } = t, c = n[0] && a, v = u(), h = y(), f = n.map(r), g = k();
1614
+ function u() {
1615
1615
  if (!c) return 0;
1616
- const m = n[0];
1617
- return $(e[d] - m[d]);
1616
+ const p = n[0];
1617
+ return U(e[d] - p[d]);
1618
1618
  }
1619
- function k() {
1619
+ function y() {
1620
1620
  if (!c) return 0;
1621
- const m = i.getComputedStyle(le(r));
1622
- return parseFloat(m.getPropertyValue(`margin-${l}`));
1621
+ const p = i.getComputedStyle(le(s));
1622
+ return parseFloat(p.getPropertyValue(`margin-${l}`));
1623
1623
  }
1624
- function y() {
1625
- return n.map((m, T, A) => {
1626
- const M = !T, C = tt(A, T);
1627
- return M ? f[T] + v : C ? f[T] + u : A[T + 1][d] - m[d];
1628
- }).map($);
1624
+ function k() {
1625
+ return n.map((p, T, A) => {
1626
+ const M = !T, x = tt(A, T);
1627
+ return M ? f[T] + v : x ? f[T] + h : A[T + 1][d] - p[d];
1628
+ }).map(U);
1629
1629
  }
1630
1630
  return {
1631
1631
  slideSizes: f,
1632
1632
  slideSizesWithGaps: g,
1633
1633
  startGap: v,
1634
- endGap: u
1634
+ endGap: h
1635
1635
  };
1636
1636
  }
1637
- function jr(t, e, n, r, a, i, o, d, l) {
1637
+ function Mr(t, e, n, s, a, i, r, d, l) {
1638
1638
  const {
1639
1639
  startEdge: c,
1640
1640
  endEdge: v,
1641
- direction: u
1641
+ direction: h
1642
1642
  } = t, f = Qe(n);
1643
- function g(p, m) {
1644
- return Me(p).filter((T) => T % m === 0).map((T) => p.slice(T, T + m));
1645
- }
1646
- function h(p) {
1647
- return p.length ? Me(p).reduce((m, T, A) => {
1648
- const M = le(m) || 0, C = M === 0, D = T === Fe(p), _ = a[c] - i[M][c], L = a[c] - i[T][v], E = !r && C ? u(o) : 0, N = !r && D ? u(d) : 0, R = $(L - N - (_ + E));
1649
- return A && R > e + l && m.push(T), D && m.push(p.length), m;
1650
- }, []).map((m, T, A) => {
1643
+ function g(m, p) {
1644
+ return Le(m).filter((T) => T % p === 0).map((T) => m.slice(T, T + p));
1645
+ }
1646
+ function u(m) {
1647
+ return m.length ? Le(m).reduce((p, T, A) => {
1648
+ const M = le(p) || 0, x = M === 0, I = T === je(m), w = a[c] - i[M][c], L = a[c] - i[T][v], F = !s && x ? h(r) : 0, N = !s && I ? h(d) : 0, z = U(L - N - (w + F));
1649
+ return A && z > e + l && p.push(T), I && p.push(m.length), p;
1650
+ }, []).map((p, T, A) => {
1651
1651
  const M = Math.max(A[T - 1] || 0);
1652
- return p.slice(M, m);
1652
+ return m.slice(M, p);
1653
1653
  }) : [];
1654
1654
  }
1655
- function k(p) {
1656
- return f ? g(p, n) : h(p);
1655
+ function y(m) {
1656
+ return f ? g(m, n) : u(m);
1657
1657
  }
1658
1658
  return {
1659
- groupSlides: k
1659
+ groupSlides: y
1660
1660
  };
1661
1661
  }
1662
- function Lr(t, e, n, r, a, i, o) {
1662
+ function Er(t, e, n, s, a, i, r) {
1663
1663
  const {
1664
1664
  align: d,
1665
1665
  axis: l,
1666
1666
  direction: c,
1667
1667
  startIndex: v,
1668
- loop: u,
1668
+ loop: h,
1669
1669
  duration: f,
1670
1670
  dragFree: g,
1671
- dragThreshold: h,
1672
- inViewThreshold: k,
1673
- slidesToScroll: y,
1674
- skipSnaps: p,
1675
- containScroll: m,
1671
+ dragThreshold: u,
1672
+ inViewThreshold: y,
1673
+ slidesToScroll: k,
1674
+ skipSnaps: m,
1675
+ containScroll: p,
1676
1676
  watchResize: T,
1677
1677
  watchSlides: A,
1678
1678
  watchDrag: M,
1679
- watchFocus: C
1680
- } = i, D = 2, _ = pr(), L = _.measure(e), E = n.map(_.measure), N = cr(l, c), R = N.measureSize(L), z = gr(R), G = lr(d, R), W = !u && !!m, B = u || !!m, {
1679
+ watchFocus: x
1680
+ } = i, I = 2, w = pr(), L = w.measure(e), F = n.map(w.measure), N = cr(l, c), z = N.measureSize(L), R = gr(z), G = lr(d, z), $ = !h && !!p, B = h || !!p, {
1681
1681
  slideSizes: O,
1682
1682
  slideSizesWithGaps: te,
1683
1683
  startGap: Q,
1684
1684
  endGap: se
1685
- } = Mr(N, L, E, n, B, a), ee = jr(N, R, y, u, L, E, Q, se, D), {
1685
+ } = Lr(N, L, F, n, B, a), ee = Mr(N, z, k, h, L, F, Q, se, I), {
1686
1686
  snaps: ie,
1687
1687
  snapsAligned: ae
1688
- } = Sr(N, G, L, E, ee), V = -le(ie) + le(te), {
1688
+ } = Sr(N, G, L, F, ee), V = -le(ie) + le(te), {
1689
1689
  snapsContained: ue,
1690
1690
  scrollContainLimit: b
1691
- } = yr(R, V, ae, m, D), I = W ? ue : ae, {
1691
+ } = yr(z, V, ae, p, I), _ = $ ? ue : ae, {
1692
1692
  limit: j
1693
- } = vr(V, I, u), K = Ft(Fe(I), v, u), q = K.clone(), U = Me(n), x = ({
1693
+ } = vr(V, _, h), K = jt(je(_), v, h), Y = K.clone(), H = Le(n), C = ({
1694
1694
  dragHandler: ve,
1695
- scrollBody: We,
1696
- scrollBounds: Ue,
1695
+ scrollBody: He,
1696
+ scrollBounds: We,
1697
1697
  options: {
1698
- loop: Ee
1698
+ loop: Fe
1699
1699
  }
1700
1700
  }) => {
1701
- Ee || Ue.constrain(ve.pointerDown()), We.seek();
1701
+ Fe || We.constrain(ve.pointerDown()), He.seek();
1702
1702
  }, P = ({
1703
1703
  scrollBody: ve,
1704
- translate: We,
1705
- location: Ue,
1706
- offsetLocation: Ee,
1707
- previousLocation: Rt,
1708
- scrollLooper: zt,
1704
+ translate: He,
1705
+ location: We,
1706
+ offsetLocation: Fe,
1707
+ previousLocation: zt,
1708
+ scrollLooper: Rt,
1709
1709
  slideLooper: Gt,
1710
- dragHandler: Wt,
1711
- animation: Ut,
1710
+ dragHandler: $t,
1711
+ animation: Ht,
1712
1712
  eventHandler: at,
1713
- scrollBounds: Ht,
1713
+ scrollBounds: Wt,
1714
1714
  options: {
1715
1715
  loop: lt
1716
1716
  }
1717
1717
  }, dt) => {
1718
- const ct = ve.settled(), $t = !Ht.shouldConstrain(), ut = lt ? ct : ct && $t, mt = ut && !Wt.pointerDown();
1719
- mt && Ut.stop();
1720
- const Ot = Ue.get() * dt + Rt.get() * (1 - dt);
1721
- Ee.set(Ot), lt && (zt.loop(ve.direction()), Gt.loop()), We.to(Ee.get()), mt && at.emit("settle"), ut || at.emit("scroll");
1722
- }, H = dr(r, a, () => x(Ge), (ve) => P(Ge, ve)), Y = 0.68, de = I[K.get()], me = _e(de), he = _e(de), pe = _e(de), fe = _e(de), Ce = fr(me, pe, he, fe, f, Y), Re = Cr(u, I, V, j, fe), ze = wr(H, K, q, Ce, Re, fe, o), rt = Tr(j), st = Le(), Bt = Ar(e, n, o, k), {
1718
+ const ct = ve.settled(), Ut = !Wt.shouldConstrain(), ut = lt ? ct : ct && Ut, mt = ut && !$t.pointerDown();
1719
+ mt && Ht.stop();
1720
+ const Ot = We.get() * dt + zt.get() * (1 - dt);
1721
+ Fe.set(Ot), lt && (Rt.loop(ve.direction()), Gt.loop()), He.to(Fe.get()), mt && at.emit("settle"), ut || at.emit("scroll");
1722
+ }, W = dr(s, a, () => C($e), (ve) => P($e, ve)), q = 0.68, de = _[K.get()], me = _e(de), he = _e(de), pe = _e(de), fe = _e(de), Ce = fr(me, pe, he, fe, f, q), Re = Cr(h, _, V, j, fe), Ge = wr(W, K, Y, Ce, Re, fe, r), rt = Tr(j), st = Ee(), Bt = Ar(e, n, r, y), {
1723
1723
  slideRegistry: it
1724
- } = xr(W, m, I, b, ee, U), Pt = Ir(t, n, it, ze, Ce, st, o, C), Ge = {
1725
- ownerDocument: r,
1724
+ } = xr($, p, _, b, ee, H), Pt = Ir(t, n, it, Ge, Ce, st, r, x), $e = {
1725
+ ownerDocument: s,
1726
1726
  ownerWindow: a,
1727
- eventHandler: o,
1727
+ eventHandler: r,
1728
1728
  containerRect: L,
1729
- slideRects: E,
1730
- animation: H,
1729
+ slideRects: F,
1730
+ animation: W,
1731
1731
  axis: N,
1732
- dragHandler: ur(N, t, r, a, fe, mr(N, a), me, H, ze, Ce, Re, K, o, z, g, h, p, Y, M),
1732
+ dragHandler: ur(N, t, s, a, fe, mr(N, a), me, W, Ge, Ce, Re, K, r, R, g, u, m, q, M),
1733
1733
  eventStore: st,
1734
- percentOfView: z,
1734
+ percentOfView: R,
1735
1735
  index: K,
1736
- indexPrevious: q,
1736
+ indexPrevious: Y,
1737
1737
  limit: j,
1738
1738
  location: me,
1739
1739
  offsetLocation: pe,
1740
1740
  previousLocation: he,
1741
1741
  options: i,
1742
- resizeHandler: hr(e, o, a, n, N, T, _),
1742
+ resizeHandler: hr(e, r, a, n, N, T, w),
1743
1743
  scrollBody: Ce,
1744
- scrollBounds: kr(j, pe, fe, Ce, z),
1744
+ scrollBounds: kr(j, pe, fe, Ce, R),
1745
1745
  scrollLooper: br(V, j, pe, [me, pe, he, fe]),
1746
1746
  scrollProgress: rt,
1747
- scrollSnapList: I.map(rt.get),
1748
- scrollSnaps: I,
1747
+ scrollSnapList: _.map(rt.get),
1748
+ scrollSnaps: _,
1749
1749
  scrollTarget: Re,
1750
- scrollTo: ze,
1751
- slideLooper: Dr(N, R, V, O, te, ie, I, pe, n),
1750
+ scrollTo: Ge,
1751
+ slideLooper: Dr(N, z, V, O, te, ie, _, pe, n),
1752
1752
  slideFocus: Pt,
1753
- slidesHandler: _r(e, o, A),
1753
+ slidesHandler: _r(e, r, A),
1754
1754
  slidesInView: Bt,
1755
- slideIndexes: U,
1755
+ slideIndexes: H,
1756
1756
  slideRegistry: it,
1757
1757
  slidesToScroll: ee,
1758
1758
  target: fe,
1759
- translate: Et(N, e)
1759
+ translate: Ft(N, e)
1760
1760
  };
1761
- return Ge;
1761
+ return $e;
1762
1762
  }
1763
- function Fr() {
1763
+ function jr() {
1764
1764
  let t = {}, e;
1765
1765
  function n(c) {
1766
1766
  e = c;
1767
1767
  }
1768
- function r(c) {
1768
+ function s(c) {
1769
1769
  return t[c] || [];
1770
1770
  }
1771
1771
  function a(c) {
1772
- return r(c).forEach((v) => v(e, c)), l;
1772
+ return s(c).forEach((v) => v(e, c)), l;
1773
1773
  }
1774
1774
  function i(c, v) {
1775
- return t[c] = r(c).concat([v]), l;
1775
+ return t[c] = s(c).concat([v]), l;
1776
1776
  }
1777
- function o(c, v) {
1778
- return t[c] = r(c).filter((u) => u !== v), l;
1777
+ function r(c, v) {
1778
+ return t[c] = s(c).filter((h) => h !== v), l;
1779
1779
  }
1780
1780
  function d() {
1781
1781
  t = {};
@@ -1783,13 +1783,13 @@ function Fr() {
1783
1783
  const l = {
1784
1784
  init: n,
1785
1785
  emit: a,
1786
- off: o,
1786
+ off: r,
1787
1787
  on: i,
1788
1788
  clear: d
1789
1789
  };
1790
1790
  return l;
1791
1791
  }
1792
- const Er = {
1792
+ const Fr = {
1793
1793
  align: "center",
1794
1794
  axis: "x",
1795
1795
  container: null,
@@ -1812,150 +1812,150 @@ const Er = {
1812
1812
  watchFocus: !0
1813
1813
  };
1814
1814
  function Nr(t) {
1815
- function e(i, o) {
1816
- return Lt(i, o || {});
1815
+ function e(i, r) {
1816
+ return Et(i, r || {});
1817
1817
  }
1818
1818
  function n(i) {
1819
- const o = i.breakpoints || {}, d = je(o).filter((l) => t.matchMedia(l).matches).map((l) => o[l]).reduce((l, c) => e(l, c), {});
1819
+ const r = i.breakpoints || {}, d = Me(r).filter((l) => t.matchMedia(l).matches).map((l) => r[l]).reduce((l, c) => e(l, c), {});
1820
1820
  return e(i, d);
1821
1821
  }
1822
- function r(i) {
1823
- return i.map((o) => je(o.breakpoints || {})).reduce((o, d) => o.concat(d), []).map(t.matchMedia);
1822
+ function s(i) {
1823
+ return i.map((r) => Me(r.breakpoints || {})).reduce((r, d) => r.concat(d), []).map(t.matchMedia);
1824
1824
  }
1825
1825
  return {
1826
1826
  mergeOptions: e,
1827
1827
  optionsAtMedia: n,
1828
- optionsMediaQueries: r
1828
+ optionsMediaQueries: s
1829
1829
  };
1830
1830
  }
1831
1831
  function Br(t) {
1832
1832
  let e = [];
1833
- function n(i, o) {
1834
- return e = o.filter(({
1833
+ function n(i, r) {
1834
+ return e = r.filter(({
1835
1835
  options: d
1836
- }) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(i, t)), o.reduce((d, l) => Object.assign(d, {
1836
+ }) => t.optionsAtMedia(d).active !== !1), e.forEach((d) => d.init(i, t)), r.reduce((d, l) => Object.assign(d, {
1837
1837
  [l.name]: l
1838
1838
  }), {});
1839
1839
  }
1840
- function r() {
1840
+ function s() {
1841
1841
  e = e.filter((i) => i.destroy());
1842
1842
  }
1843
1843
  return {
1844
1844
  init: n,
1845
- destroy: r
1845
+ destroy: s
1846
1846
  };
1847
1847
  }
1848
- function Be(t, e, n) {
1849
- const r = t.ownerDocument, a = r.defaultView, i = Nr(a), o = Br(i), d = Le(), l = Fr(), {
1848
+ function Pe(t, e, n) {
1849
+ const s = t.ownerDocument, a = s.defaultView, i = Nr(a), r = Br(i), d = Ee(), l = jr(), {
1850
1850
  mergeOptions: c,
1851
1851
  optionsAtMedia: v,
1852
- optionsMediaQueries: u
1852
+ optionsMediaQueries: h
1853
1853
  } = i, {
1854
1854
  on: f,
1855
1855
  off: g,
1856
- emit: h
1857
- } = l, k = N;
1858
- let y = !1, p, m = c(Er, Be.globalOptions), T = c(m), A = [], M, C, D;
1859
- function _() {
1856
+ emit: u
1857
+ } = l, y = N;
1858
+ let k = !1, m, p = c(Fr, Pe.globalOptions), T = c(p), A = [], M, x, I;
1859
+ function w() {
1860
1860
  const {
1861
- container: U,
1862
- slides: x
1861
+ container: H,
1862
+ slides: C
1863
1863
  } = T;
1864
- C = (qe(U) ? t.querySelector(U) : U) || t.children[0];
1865
- const H = qe(x) ? C.querySelectorAll(x) : x;
1866
- D = [].slice.call(H || C.children);
1867
- }
1868
- function L(U) {
1869
- const x = Lr(t, C, D, r, a, U, l);
1870
- if (U.loop && !x.slideLooper.canLoop()) {
1871
- const P = Object.assign({}, U, {
1864
+ x = (Ye(H) ? t.querySelector(H) : H) || t.children[0];
1865
+ const W = Ye(C) ? x.querySelectorAll(C) : C;
1866
+ I = [].slice.call(W || x.children);
1867
+ }
1868
+ function L(H) {
1869
+ const C = Er(t, x, I, s, a, H, l);
1870
+ if (H.loop && !C.slideLooper.canLoop()) {
1871
+ const P = Object.assign({}, H, {
1872
1872
  loop: !1
1873
1873
  });
1874
1874
  return L(P);
1875
1875
  }
1876
- return x;
1876
+ return C;
1877
1877
  }
1878
- function E(U, x) {
1879
- y || (m = c(m, U), T = v(m), A = x || A, _(), p = L(T), u([m, ...A.map(({
1878
+ function F(H, C) {
1879
+ k || (p = c(p, H), T = v(p), A = C || A, w(), m = L(T), h([p, ...A.map(({
1880
1880
  options: P
1881
- }) => P)]).forEach((P) => d.add(P, "change", N)), T.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(q), p.eventHandler.init(q), p.resizeHandler.init(q), p.slidesHandler.init(q), p.options.loop && p.slideLooper.loop(), C.offsetParent && D.length && p.dragHandler.init(q), M = o.init(q, A)));
1881
+ }) => P)]).forEach((P) => d.add(P, "change", N)), T.active && (m.translate.to(m.location.get()), m.animation.init(), m.slidesInView.init(), m.slideFocus.init(Y), m.eventHandler.init(Y), m.resizeHandler.init(Y), m.slidesHandler.init(Y), m.options.loop && m.slideLooper.loop(), x.offsetParent && I.length && m.dragHandler.init(Y), M = r.init(Y, A)));
1882
1882
  }
1883
- function N(U, x) {
1883
+ function N(H, C) {
1884
1884
  const P = ee();
1885
- R(), E(c({
1885
+ z(), F(c({
1886
1886
  startIndex: P
1887
- }, U), x), l.emit("reInit");
1888
- }
1889
- function R() {
1890
- p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), o.destroy(), d.clear();
1887
+ }, H), C), l.emit("reInit");
1891
1888
  }
1892
1889
  function z() {
1893
- y || (y = !0, d.clear(), R(), l.emit("destroy"), l.clear());
1890
+ m.dragHandler.destroy(), m.eventStore.clear(), m.translate.clear(), m.slideLooper.clear(), m.resizeHandler.destroy(), m.slidesHandler.destroy(), m.slidesInView.destroy(), m.animation.destroy(), r.destroy(), d.clear();
1894
1891
  }
1895
- function G(U, x, P) {
1896
- !T.active || y || (p.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : T.duration), p.scrollTo.index(U, P || 0));
1892
+ function R() {
1893
+ k || (k = !0, d.clear(), z(), l.emit("destroy"), l.clear());
1897
1894
  }
1898
- function W(U) {
1899
- const x = p.index.add(1).get();
1900
- G(x, U, -1);
1895
+ function G(H, C, P) {
1896
+ !T.active || k || (m.scrollBody.useBaseFriction().useDuration(C === !0 ? 0 : T.duration), m.scrollTo.index(H, P || 0));
1901
1897
  }
1902
- function B(U) {
1903
- const x = p.index.add(-1).get();
1904
- G(x, U, 1);
1898
+ function $(H) {
1899
+ const C = m.index.add(1).get();
1900
+ G(C, H, -1);
1901
+ }
1902
+ function B(H) {
1903
+ const C = m.index.add(-1).get();
1904
+ G(C, H, 1);
1905
1905
  }
1906
1906
  function O() {
1907
- return p.index.add(1).get() !== ee();
1907
+ return m.index.add(1).get() !== ee();
1908
1908
  }
1909
1909
  function te() {
1910
- return p.index.add(-1).get() !== ee();
1910
+ return m.index.add(-1).get() !== ee();
1911
1911
  }
1912
1912
  function Q() {
1913
- return p.scrollSnapList;
1913
+ return m.scrollSnapList;
1914
1914
  }
1915
1915
  function se() {
1916
- return p.scrollProgress.get(p.offsetLocation.get());
1916
+ return m.scrollProgress.get(m.offsetLocation.get());
1917
1917
  }
1918
1918
  function ee() {
1919
- return p.index.get();
1919
+ return m.index.get();
1920
1920
  }
1921
1921
  function ie() {
1922
- return p.indexPrevious.get();
1922
+ return m.indexPrevious.get();
1923
1923
  }
1924
1924
  function ae() {
1925
- return p.slidesInView.get();
1925
+ return m.slidesInView.get();
1926
1926
  }
1927
1927
  function V() {
1928
- return p.slidesInView.get(!1);
1928
+ return m.slidesInView.get(!1);
1929
1929
  }
1930
1930
  function ue() {
1931
1931
  return M;
1932
1932
  }
1933
1933
  function b() {
1934
- return p;
1934
+ return m;
1935
1935
  }
1936
- function I() {
1936
+ function _() {
1937
1937
  return t;
1938
1938
  }
1939
1939
  function j() {
1940
- return C;
1940
+ return x;
1941
1941
  }
1942
1942
  function K() {
1943
- return D;
1943
+ return I;
1944
1944
  }
1945
- const q = {
1945
+ const Y = {
1946
1946
  canScrollNext: O,
1947
1947
  canScrollPrev: te,
1948
1948
  containerNode: j,
1949
1949
  internalEngine: b,
1950
- destroy: z,
1950
+ destroy: R,
1951
1951
  off: g,
1952
1952
  on: f,
1953
- emit: h,
1953
+ emit: u,
1954
1954
  plugins: ue,
1955
1955
  previousScrollSnap: ie,
1956
- reInit: k,
1957
- rootNode: I,
1958
- scrollNext: W,
1956
+ reInit: y,
1957
+ rootNode: _,
1958
+ scrollNext: $,
1959
1959
  scrollPrev: B,
1960
1960
  scrollProgress: se,
1961
1961
  scrollSnapList: Q,
@@ -1965,153 +1965,153 @@ function Be(t, e, n) {
1965
1965
  slidesInView: ae,
1966
1966
  slidesNotInView: V
1967
1967
  };
1968
- return E(e, n), setTimeout(() => l.emit("init"), 0), q;
1968
+ return F(e, n), setTimeout(() => l.emit("init"), 0), Y;
1969
1969
  }
1970
- Be.globalOptions = void 0;
1970
+ Pe.globalOptions = void 0;
1971
1971
  function nt(t = {}, e = []) {
1972
- const n = Ke(t), r = Ke(e), [a, i] = ne(), [o, d] = ne(), l = re(() => {
1973
- a && a.reInit(n.current, r.current);
1972
+ const n = Ke(t), s = Ke(e), [a, i] = ne(), [r, d] = ne(), l = re(() => {
1973
+ a && a.reInit(n.current, s.current);
1974
1974
  }, [a]);
1975
- return Z(() => {
1976
- Ze(n.current, t) || (n.current = t, l());
1977
- }, [t, l]), Z(() => {
1978
- sr(r.current, e) || (r.current = e, l());
1979
- }, [e, l]), Z(() => {
1980
- if (rr() && o) {
1981
- Be.globalOptions = nt.globalOptions;
1982
- const c = Be(o, n.current, r.current);
1975
+ return J(() => {
1976
+ Je(n.current, t) || (n.current = t, l());
1977
+ }, [t, l]), J(() => {
1978
+ sr(s.current, e) || (s.current = e, l());
1979
+ }, [e, l]), J(() => {
1980
+ if (rr() && r) {
1981
+ Pe.globalOptions = nt.globalOptions;
1982
+ const c = Pe(r, n.current, s.current);
1983
1983
  return i(c), () => c.destroy();
1984
1984
  } else
1985
1985
  i(void 0);
1986
- }, [o, i]), [d, a];
1986
+ }, [r, i]), [d, a];
1987
1987
  }
1988
1988
  nt.globalOptions = void 0;
1989
- const Pr = "_carouselContainer_1bu1s_1", Rr = "_viewport_1bu1s_11", zr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", Wr = "_slideInner_1bu1s_37", Ur = "_loaderOverlay_1bu1s_45", Hr = "_image_1bu1s_55", $r = "_loaded_1bu1s_66", Or = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Kr = "_arrows_1bu1s_94", Yr = "_dots_1bu1s_104", qr = "_dot_1bu1s_104", Xr = "_dotActive_1bu1s_130", X = {
1989
+ const Pr = "_carouselContainer_1bu1s_1", zr = "_viewport_1bu1s_11", Rr = "_slides_1bu1s_17", Gr = "_slide_1bu1s_17", $r = "_slideInner_1bu1s_37", Hr = "_loaderOverlay_1bu1s_45", Wr = "_image_1bu1s_55", Ur = "_loaded_1bu1s_66", Or = "_empty_1bu1s_78", Vr = "_controls_1bu1s_84", Kr = "_arrows_1bu1s_94", qr = "_dots_1bu1s_104", Yr = "_dot_1bu1s_104", Zr = "_dotActive_1bu1s_130", Z = {
1990
1990
  carouselContainer: Pr,
1991
- viewport: Rr,
1992
- slides: zr,
1991
+ viewport: zr,
1992
+ slides: Rr,
1993
1993
  slide: Gr,
1994
- slideInner: Wr,
1995
- loaderOverlay: Ur,
1996
- image: Hr,
1997
- loaded: $r,
1994
+ slideInner: $r,
1995
+ loaderOverlay: Hr,
1996
+ image: Wr,
1997
+ loaded: Ur,
1998
1998
  empty: Or,
1999
1999
  controls: Vr,
2000
2000
  arrows: Kr,
2001
- dots: Yr,
2002
- dot: qr,
2003
- dotActive: Xr
2004
- }, Jr = ln, Zr = ({
2001
+ dots: qr,
2002
+ dot: Yr,
2003
+ dotActive: Zr
2004
+ }, Xr = ln, Jr = ({
2005
2005
  images: t,
2006
2006
  autoPlay: e = !1,
2007
2007
  autoDelay: n = 5,
2008
- showArrows: r = !0,
2008
+ showArrows: s = !0,
2009
2009
  showDots: a = !0,
2010
2010
  variant: i,
2011
- slidesPerView: o = 1,
2011
+ slidesPerView: r = 1,
2012
2012
  slideSpacing: d = 16,
2013
2013
  cornerRadius: l = 0,
2014
2014
  "data-color": c,
2015
2015
  "data-size": v
2016
2016
  }) => {
2017
- const u = {
2017
+ const h = {
2018
2018
  loop: !0,
2019
2019
  align: "start",
2020
2020
  containScroll: "trimSnaps",
2021
2021
  slidesToScroll: 1
2022
- }, [f, g] = nt(u), [h, k] = ne(0), [y, p] = ne([]), [m, T] = ne([]);
2023
- Z(() => {
2022
+ }, [f, g] = nt(h), [u, y] = ne(0), [k, m] = ne([]), [p, T] = ne([]);
2023
+ J(() => {
2024
2024
  T(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
2025
2025
  }, [t]);
2026
- const A = re((z) => {
2026
+ const A = re((R) => {
2027
2027
  T((G) => {
2028
- const W = [...G];
2029
- return W[z] = !0, W;
2028
+ const $ = [...G];
2029
+ return $[R] = !0, $;
2030
2030
  });
2031
- }, []), M = Se(() => n * 1e3, [n]), C = re(() => {
2032
- g && k(g.selectedScrollSnap());
2033
- }, [g]), D = re((z) => g && g.scrollTo(z), [g]), _ = re(() => g && g.scrollPrev(), [g]), L = re(() => g && g.scrollNext(), [g]);
2034
- Z(() => {
2031
+ }, []), M = Se(() => n * 1e3, [n]), x = re(() => {
2032
+ g && y(g.selectedScrollSnap());
2033
+ }, [g]), I = re((R) => g && g.scrollTo(R), [g]), w = re(() => g && g.scrollPrev(), [g]), L = re(() => g && g.scrollNext(), [g]);
2034
+ J(() => {
2035
2035
  if (g)
2036
- return g.on("select", C), g.on("reInit", C), p(g.scrollSnapList()), () => {
2037
- g.off("select", C), g.off("reInit", C);
2036
+ return g.on("select", x), g.on("reInit", x), m(g.scrollSnapList()), () => {
2037
+ g.off("select", x), g.off("reInit", x);
2038
2038
  };
2039
- }, [g, C]), Z(() => {
2040
- g && (g.reInit(), p(g.scrollSnapList()));
2041
- }, [g, t, o, d]), Z(() => {
2039
+ }, [g, x]), J(() => {
2040
+ g && (g.reInit(), m(g.scrollSnapList()));
2041
+ }, [g, t, r, d]), J(() => {
2042
2042
  if (!e || !g || !t || t.length <= 1) return;
2043
- const z = window.setInterval(() => {
2043
+ const R = window.setInterval(() => {
2044
2044
  g.canScrollNext() && g.scrollNext();
2045
2045
  }, M);
2046
2046
  return () => {
2047
- window.clearInterval(z);
2047
+ window.clearInterval(R);
2048
2048
  };
2049
2049
  }, [e, M, g, t]);
2050
- const E = Math.max(1, o), N = `${100 / E}%`, R = d / 2;
2051
- return /* @__PURE__ */ w(
2050
+ const F = Math.max(1, r), N = `${100 / F}%`, z = d / 2;
2051
+ return /* @__PURE__ */ D(
2052
2052
  "div",
2053
2053
  {
2054
- className: X.carouselContainer,
2054
+ className: Z.carouselContainer,
2055
2055
  "data-color": c,
2056
2056
  "data-size": v,
2057
2057
  "data-variant": i,
2058
2058
  children: [
2059
- /* @__PURE__ */ s("div", { className: X.viewport, ref: f, children: /* @__PURE__ */ s(
2059
+ /* @__PURE__ */ o("div", { className: Z.viewport, ref: f, children: /* @__PURE__ */ o(
2060
2060
  "div",
2061
2061
  {
2062
- className: X.slides,
2062
+ className: Z.slides,
2063
2063
  style: {
2064
- marginLeft: `-${R}px`,
2065
- marginRight: `-${R}px`
2064
+ marginLeft: `-${z}px`,
2065
+ marginRight: `-${z}px`
2066
2066
  },
2067
- children: t && t.length > 0 ? t.map((z, G) => /* @__PURE__ */ s(
2067
+ children: t && t.length > 0 ? t.map((R, G) => /* @__PURE__ */ o(
2068
2068
  "div",
2069
2069
  {
2070
- className: X.slide,
2070
+ className: Z.slide,
2071
2071
  style: {
2072
2072
  flex: `0 0 ${N}`,
2073
- paddingLeft: `${R}px`,
2074
- paddingRight: `${R}px`,
2073
+ paddingLeft: `${z}px`,
2074
+ paddingRight: `${z}px`,
2075
2075
  borderRadius: l > 0 ? `${l}px` : void 0,
2076
2076
  overflow: "hidden"
2077
2077
  // Ensure radius clips content
2078
2078
  },
2079
- children: /* @__PURE__ */ w("div", { className: X.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
2080
- !m[G] && /* @__PURE__ */ s("div", { className: X.loaderOverlay, children: /* @__PURE__ */ s(Jr, { "aria-label": "Laster bilde" }) }),
2081
- /* @__PURE__ */ s(
2079
+ children: /* @__PURE__ */ D("div", { className: Z.slideInner, style: { borderRadius: `${l}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
2080
+ !p[G] && /* @__PURE__ */ o("div", { className: Z.loaderOverlay, children: /* @__PURE__ */ o(Xr, { "aria-label": "Laster bilde" }) }),
2081
+ /* @__PURE__ */ o(
2082
2082
  "img",
2083
2083
  {
2084
- className: `${X.image} ${m[G] ? X.loaded : X.loadingImage}`,
2085
- src: z.src,
2086
- alt: z.alt,
2087
- loading: G < E ? "eager" : "lazy",
2084
+ className: `${Z.image} ${p[G] ? Z.loaded : Z.loadingImage}`,
2085
+ src: R.src,
2086
+ alt: R.alt,
2087
+ loading: G < F ? "eager" : "lazy",
2088
2088
  crossOrigin: "anonymous",
2089
2089
  onLoad: () => A(G),
2090
- onError: (W) => {
2091
- W.target.style.display = "none", A(G);
2090
+ onError: ($) => {
2091
+ $.target.style.display = "none", A(G);
2092
2092
  }
2093
2093
  }
2094
2094
  )
2095
2095
  ] })
2096
2096
  },
2097
- `image-${G}-${z.src}`
2098
- )) : /* @__PURE__ */ s("div", { className: X.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ s("div", { className: X.empty, children: "Ingen bilder" }) })
2097
+ `image-${G}-${R.src}`
2098
+ )) : /* @__PURE__ */ o("div", { className: Z.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ o("div", { className: Z.empty, children: "Ingen bilder" }) })
2099
2099
  }
2100
2100
  ) }),
2101
- (r || a && t && t.length > 1) && /* @__PURE__ */ w("div", { className: X.controls, "aria-hidden": "false", children: [
2102
- r && /* @__PURE__ */ w("div", { className: X.arrows, children: [
2103
- /* @__PURE__ */ s(
2101
+ (s || a && t && t.length > 1) && /* @__PURE__ */ D("div", { className: Z.controls, "aria-hidden": "false", children: [
2102
+ s && /* @__PURE__ */ D("div", { className: Z.arrows, children: [
2103
+ /* @__PURE__ */ o(
2104
2104
  xe,
2105
2105
  {
2106
2106
  variant: "primary",
2107
2107
  icon: !0,
2108
2108
  "aria-label": "Forrige bilde",
2109
- onClick: _,
2109
+ onClick: w,
2110
2110
  disabled: !t || t.length <= 1,
2111
- children: /* @__PURE__ */ s(Xn, { "aria-hidden": !0 })
2111
+ children: /* @__PURE__ */ o(Zn, { "aria-hidden": !0 })
2112
2112
  }
2113
2113
  ),
2114
- /* @__PURE__ */ s(
2114
+ /* @__PURE__ */ o(
2115
2115
  xe,
2116
2116
  {
2117
2117
  variant: "primary",
@@ -2119,20 +2119,20 @@ const Pr = "_carouselContainer_1bu1s_1", Rr = "_viewport_1bu1s_11", zr = "_slide
2119
2119
  "aria-label": "Neste bilde",
2120
2120
  onClick: L,
2121
2121
  disabled: !t || t.length <= 1,
2122
- children: /* @__PURE__ */ s(Jn, { "aria-hidden": !0 })
2122
+ children: /* @__PURE__ */ o(Xn, { "aria-hidden": !0 })
2123
2123
  }
2124
2124
  )
2125
2125
  ] }),
2126
- a && t && t.length > 1 && /* @__PURE__ */ s("div", { className: X.dots, role: "tablist", "aria-label": "Bildeposisjon", children: y.map((z, G) => {
2127
- const W = G === h;
2128
- return /* @__PURE__ */ s(
2126
+ a && t && t.length > 1 && /* @__PURE__ */ o("div", { className: Z.dots, role: "tablist", "aria-label": "Bildeposisjon", children: k.map((R, G) => {
2127
+ const $ = G === u;
2128
+ return /* @__PURE__ */ o(
2129
2129
  "button",
2130
2130
  {
2131
2131
  type: "button",
2132
- className: `${X.dot} ${W ? X.dotActive : ""}`,
2133
- onClick: () => D(G),
2132
+ className: `${Z.dot} ${$ ? Z.dotActive : ""}`,
2133
+ onClick: () => I(G),
2134
2134
  "aria-label": `Gå til bilde ${G + 1}`,
2135
- "aria-selected": W,
2135
+ "aria-selected": $,
2136
2136
  role: "tab"
2137
2137
  },
2138
2138
  `dot-${G}`
@@ -2143,25 +2143,25 @@ const Pr = "_carouselContainer_1bu1s_1", Rr = "_viewport_1bu1s_11", zr = "_slide
2143
2143
  }
2144
2144
  );
2145
2145
  };
2146
- Zr.displayName = "Carousel";
2147
- const Oi = dn, Vi = cn, Ki = un, J = mn, Yi = pn, qi = gn, Qr = hn, es = fn;
2146
+ Jr.displayName = "Carousel";
2147
+ const Ki = dn, qi = cn, Yi = un, X = mn, Zi = pn, Xi = gn, Qr = hn, es = fn;
2148
2148
  Qr.displayName = "Field.Description";
2149
2149
  es.displayName = "Field.Counter";
2150
- const Xi = It, ts = ge((t, e) => /* @__PURE__ */ s(kn, { ref: e, ...t }));
2150
+ const Ji = It, ts = ge((t, e) => /* @__PURE__ */ o(kn, { ref: e, ...t }));
2151
2151
  ts.displayName = "Heading";
2152
- const Ji = yn, ns = ge((t, e) => /* @__PURE__ */ s(vn, { ref: e, ...t }));
2152
+ const Qi = yn, ns = ge((t, e) => /* @__PURE__ */ o(vn, { ref: e, ...t }));
2153
2153
  ns.displayName = "Label";
2154
- const ce = bn, Zi = Tn, Qi = Sn, ea = xn, Je = ge(
2155
- (t, e) => /* @__PURE__ */ s(Cn, { ref: e, ...t })
2154
+ const ce = bn, ea = Tn, ta = Sn, na = xn, Xe = ge(
2155
+ (t, e) => /* @__PURE__ */ o(Cn, { ref: e, ...t })
2156
2156
  );
2157
- Je.displayName = "Paragraph";
2158
- const ta = wn, na = In, oa = Dn, Ne = Object.assign(_n, {
2159
- Button: jn,
2160
- ClearButton: Mn,
2157
+ Xe.displayName = "Paragraph";
2158
+ const oa = wn, ra = In, sa = Dn, Ne = Object.assign(_n, {
2159
+ Button: Mn,
2160
+ ClearButton: Ln,
2161
2161
  Input: An
2162
- }), ra = Ln, sa = Fn, ia = En, os = Nn;
2162
+ }), ia = En, aa = jn, la = Fn, os = Nn;
2163
2163
  os.displayName = "Suggestion";
2164
- const Oe = Bn, aa = Pn, la = Rn, da = zn, ca = Gn, ua = Wn, ma = Un, pa = Hn, rs = ge((t, e) => /* @__PURE__ */ s($n, { ref: e, ...t }));
2164
+ const Ve = Bn, da = Pn, ca = zn, ua = Rn, ma = Gn, pa = $n, ga = Hn, ha = Wn, rs = ge((t, e) => /* @__PURE__ */ o(Un, { ref: e, ...t }));
2165
2165
  rs.displayName = "ValidationMessage";
2166
2166
  const ss = {
2167
2167
  NO: {
@@ -4120,19 +4120,19 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4120
4120
  }
4121
4121
  }
4122
4122
  }
4123
- }, ot = Kt(void 0), ga = ({ children: t }) => {
4124
- const [e, n] = ne("NO"), r = (a) => {
4123
+ }, ot = Kt(void 0), fa = ({ children: t }) => {
4124
+ const [e, n] = ne("NO"), s = (a) => {
4125
4125
  const i = a.split(".");
4126
- let o = ss[e];
4126
+ let r = ss[e];
4127
4127
  for (const d of i) {
4128
- if (o[d] === void 0)
4128
+ if (r[d] === void 0)
4129
4129
  return console.warn(`Translation missing for key: ${a} in language: ${e}`), a;
4130
- o = o[d];
4130
+ r = r[d];
4131
4131
  }
4132
- return o;
4132
+ return r;
4133
4133
  };
4134
- return /* @__PURE__ */ s(ot.Provider, { value: { language: e, setLanguage: n, t: r }, children: t });
4135
- }, ha = () => {
4134
+ return /* @__PURE__ */ o(ot.Provider, { value: { language: e, setLanguage: n, t: s }, children: t });
4135
+ }, ka = () => {
4136
4136
  const t = wt(ot);
4137
4137
  if (t === void 0)
4138
4138
  throw new Error("useLanguage must be used within a LanguageProvider");
@@ -4183,7 +4183,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4183
4183
  "footer.legal.whistleblowing": "Varsling/Misconduct"
4184
4184
  })[e] || e
4185
4185
  } : t;
4186
- }, is = "_header_ymzss_1", as = "_languageSwitch_ymzss_36", ls = "_searchOverlay_ymzss_40", ds = "_headerExtension_ymzss_45", cs = "_extensionContentWrapper_ymzss_73", us = "_extensionContent_ymzss_73", ms = "_extensionDivider_ymzss_100", ps = "_languageLabel_ymzss_124", gs = "_languageLink_ymzss_140", hs = "_headerInner_ymzss_175", fs = "_logoWrapper_ymzss_192", ks = "_logo_ymzss_192", ys = "_secondaryLogoWrapper_ymzss_215", vs = "_slotComponent_ymzss_224", bs = "_slotContainer_ymzss_234", Ts = "_slotText_ymzss_242", Ss = "_secondaryLogo_ymzss_215", xs = "_redCrossLogo_ymzss_269", Cs = "_primaryLogo_ymzss_275", ws = "_navItems_ymzss_279", Is = "_navLink_ymzss_288", Ds = "_actions_ymzss_301", _s = "_ctaButton_ymzss_309", As = "_themeToggle_ymzss_314", Ms = "_userInfo_ymzss_319", js = "_userName_ymzss_325", Ls = "_loginLink_ymzss_332", Fs = "_loginText_ymzss_341", Es = "_underline_ymzss_348", Ns = "_searchButtonWrapper_ymzss_354", Bs = "_buttonText_ymzss_358", Ps = "_menuButton_ymzss_363", Rs = "_menuOverlay_ymzss_368", zs = "_searchContent_ymzss_402", Gs = "_menuContent_ymzss_412", Ws = "_menuLeftColumn_ymzss_421", Us = "_menuRightColumn_ymzss_427", Hs = "_slotContent_ymzss_441", $s = "_navList_ymzss_454", Os = "_menuUtilities_ymzss_461", Vs = "_menuBrand_ymzss_468", Ks = "_suggestionsSection_ymzss_472", Ys = "_suggestionsTitle_ymzss_478", qs = "_searchResults_ymzss_487", Xs = "_resultList_ymzss_493", Js = "_resultItem_ymzss_499", Zs = "_resultLink_ymzss_507", Qs = "_suggestionIcon_ymzss_521", ei = "_suggestionText_ymzss_534", ti = "_highlightedText_ymzss_541", ni = "_remainingText_ymzss_546", oi = "_viewAllLink_ymzss_559", ri = "_noResults_ymzss_594", S = {
4186
+ }, is = "_header_ymzss_1", as = "_languageSwitch_ymzss_36", ls = "_searchOverlay_ymzss_40", ds = "_headerExtension_ymzss_45", cs = "_extensionContentWrapper_ymzss_73", us = "_extensionContent_ymzss_73", ms = "_extensionDivider_ymzss_100", ps = "_languageLabel_ymzss_124", gs = "_languageLink_ymzss_140", hs = "_headerInner_ymzss_175", fs = "_logoWrapper_ymzss_192", ks = "_logo_ymzss_192", ys = "_secondaryLogoWrapper_ymzss_215", vs = "_slotComponent_ymzss_224", bs = "_slotContainer_ymzss_234", Ts = "_slotText_ymzss_242", Ss = "_secondaryLogo_ymzss_215", xs = "_redCrossLogo_ymzss_269", Cs = "_primaryLogo_ymzss_275", ws = "_navItems_ymzss_279", Is = "_navLink_ymzss_288", Ds = "_actions_ymzss_301", _s = "_ctaButton_ymzss_309", As = "_themeToggle_ymzss_314", Ls = "_userInfo_ymzss_319", Ms = "_userName_ymzss_325", Es = "_loginLink_ymzss_332", js = "_loginText_ymzss_341", Fs = "_underline_ymzss_348", Ns = "_searchButtonWrapper_ymzss_354", Bs = "_buttonText_ymzss_358", Ps = "_menuButton_ymzss_363", zs = "_menuOverlay_ymzss_368", Rs = "_searchContent_ymzss_402", Gs = "_menuContent_ymzss_412", $s = "_menuLeftColumn_ymzss_421", Hs = "_menuRightColumn_ymzss_427", Ws = "_slotContent_ymzss_441", Us = "_navList_ymzss_454", Os = "_menuUtilities_ymzss_461", Vs = "_menuBrand_ymzss_468", Ks = "_suggestionsSection_ymzss_472", qs = "_suggestionsTitle_ymzss_478", Ys = "_searchResults_ymzss_487", Zs = "_resultList_ymzss_493", Xs = "_resultItem_ymzss_499", Js = "_resultLink_ymzss_507", Qs = "_suggestionIcon_ymzss_521", ei = "_suggestionText_ymzss_534", ti = "_highlightedText_ymzss_541", ni = "_remainingText_ymzss_546", oi = "_viewAllLink_ymzss_559", ri = "_noResults_ymzss_594", S = {
4187
4187
  header: is,
4188
4188
  languageSwitch: as,
4189
4189
  searchOverlay: ls,
@@ -4208,29 +4208,29 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4208
4208
  actions: Ds,
4209
4209
  ctaButton: _s,
4210
4210
  themeToggle: As,
4211
- userInfo: Ms,
4212
- userName: js,
4213
- loginLink: Ls,
4214
- loginText: Fs,
4215
- underline: Es,
4211
+ userInfo: Ls,
4212
+ userName: Ms,
4213
+ loginLink: Es,
4214
+ loginText: js,
4215
+ underline: Fs,
4216
4216
  searchButtonWrapper: Ns,
4217
4217
  buttonText: Bs,
4218
4218
  menuButton: Ps,
4219
- menuOverlay: Rs,
4220
- searchContent: zs,
4219
+ menuOverlay: zs,
4220
+ searchContent: Rs,
4221
4221
  menuContent: Gs,
4222
- menuLeftColumn: Ws,
4223
- menuRightColumn: Us,
4224
- slotContent: Hs,
4225
- navList: $s,
4222
+ menuLeftColumn: $s,
4223
+ menuRightColumn: Hs,
4224
+ slotContent: Ws,
4225
+ navList: Us,
4226
4226
  menuUtilities: Os,
4227
4227
  menuBrand: Vs,
4228
4228
  suggestionsSection: Ks,
4229
- suggestionsTitle: Ys,
4230
- searchResults: qs,
4231
- resultList: Xs,
4232
- resultItem: Js,
4233
- resultLink: Zs,
4229
+ suggestionsTitle: qs,
4230
+ searchResults: Ys,
4231
+ resultList: Zs,
4232
+ resultItem: Xs,
4233
+ resultLink: Js,
4234
4234
  suggestionIcon: Qs,
4235
4235
  suggestionText: ei,
4236
4236
  highlightedText: ti,
@@ -4300,38 +4300,38 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4300
4300
  { id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
4301
4301
  { id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
4302
4302
  { id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
4303
- ], fa = ({
4303
+ ], ya = ({
4304
4304
  "data-color": t = "primary",
4305
4305
  activePage: e,
4306
4306
  setPage: n,
4307
- children: r,
4307
+ children: s,
4308
4308
  showUser: a = !0,
4309
4309
  showSearch: i = !0,
4310
- showLogin: o = !0,
4310
+ showLogin: r = !0,
4311
4311
  showCta: d = !1,
4312
4312
  ctaLabel: l,
4313
- ctaIcon: c = /* @__PURE__ */ s(Qn, { "aria-hidden": !0 }),
4313
+ ctaIcon: c = /* @__PURE__ */ o(Qn, { "aria-hidden": !0 }),
4314
4314
  onCtaClick: v,
4315
- showThemeToggle: u = !1,
4315
+ showThemeToggle: h = !1,
4316
4316
  secondaryLogo: f = !1,
4317
4317
  secondaryLogoSrc: g,
4318
- secondaryLogoSrcDark: h,
4319
- secondaryLogoAlt: k = "Secondary Logo",
4320
- navItems: y,
4321
- showNavItems: p = !0,
4322
- showMenuButton: m = !0,
4318
+ secondaryLogoSrcDark: u,
4319
+ secondaryLogoAlt: y = "Secondary Logo",
4320
+ navItems: k,
4321
+ showNavItems: m = !0,
4322
+ showMenuButton: p = !0,
4323
4323
  showHeaderExtension: T = !1,
4324
4324
  showModeToggle: A = !1,
4325
4325
  showLanguageSwitch: M = !1
4326
4326
  }) => {
4327
- const [C, D] = ne(!1), [_, L] = ne(!1), [E, N] = ne(""), [R, z] = ne("light"), { language: G, setLanguage: W, t: B } = Nt(), [O, te] = ne(!1);
4328
- Z(() => {
4327
+ const [x, I] = ne(!1), [w, L] = ne(!1), [F, N] = ne(""), [z, R] = ne("light"), { language: G, setLanguage: $, t: B } = Nt(), [O, te] = ne(!1);
4328
+ J(() => {
4329
4329
  const b = "rk-header-inline-styles";
4330
4330
  if (typeof document > "u" || document.getElementById(b)) return;
4331
- const I = ii(S), j = document.createElement("style");
4332
- j.id = b, j.textContent = I, document.head.appendChild(j);
4331
+ const _ = ii(S), j = document.createElement("style");
4332
+ j.id = b, j.textContent = _, document.head.appendChild(j);
4333
4333
  }, []);
4334
- const Q = () => /* @__PURE__ */ w(
4334
+ const Q = () => /* @__PURE__ */ D(
4335
4335
  "svg",
4336
4336
  {
4337
4337
  width: "170",
@@ -4343,118 +4343,118 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4343
4343
  focusable: "false",
4344
4344
  className: S.redCrossLogo,
4345
4345
  children: [
4346
- /* @__PURE__ */ s("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
4347
- /* @__PURE__ */ s("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
4348
- /* @__PURE__ */ s("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
4349
- /* @__PURE__ */ s("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
4350
- /* @__PURE__ */ s("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
4351
- /* @__PURE__ */ s("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
4352
- /* @__PURE__ */ s("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
4353
- /* @__PURE__ */ s("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
4354
- /* @__PURE__ */ s("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4355
- /* @__PURE__ */ s("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4346
+ /* @__PURE__ */ o("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
4347
+ /* @__PURE__ */ o("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
4348
+ /* @__PURE__ */ o("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
4349
+ /* @__PURE__ */ o("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
4350
+ /* @__PURE__ */ o("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
4351
+ /* @__PURE__ */ o("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
4352
+ /* @__PURE__ */ o("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
4353
+ /* @__PURE__ */ o("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
4354
+ /* @__PURE__ */ o("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4355
+ /* @__PURE__ */ o("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4356
4356
  ]
4357
4357
  }
4358
4358
  );
4359
- Z(() => {
4360
- D(!1), L(!1), N("");
4361
- }, [e]), Z(() => {
4362
- if (!(typeof document > "u") && C && O) {
4359
+ J(() => {
4360
+ I(!1), L(!1), N("");
4361
+ }, [e]), J(() => {
4362
+ if (!(typeof document > "u") && x && O) {
4363
4363
  const b = document.body.style.overflow;
4364
4364
  return document.body.style.overflow = "hidden", () => {
4365
4365
  document.body.style.overflow = b;
4366
4366
  };
4367
4367
  }
4368
- }, [C, O]), Z(() => {
4368
+ }, [x, O]), J(() => {
4369
4369
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
4370
- const b = window.matchMedia("(max-width: 850px)"), I = (j) => te("matches" in j ? j.matches : b.matches);
4371
- return I(b), b.addEventListener ? b.addEventListener("change", I) : b.addListener(I), () => {
4372
- b.removeEventListener ? b.removeEventListener("change", I) : b.removeListener(I);
4370
+ const b = window.matchMedia("(max-width: 850px)"), _ = (j) => te("matches" in j ? j.matches : b.matches);
4371
+ return _(b), b.addEventListener ? b.addEventListener("change", _) : b.addListener(_), () => {
4372
+ b.removeEventListener ? b.removeEventListener("change", _) : b.removeListener(_);
4373
4373
  };
4374
- }, []), Z(() => {
4374
+ }, []), J(() => {
4375
4375
  if (typeof document > "u") return;
4376
4376
  const b = document.querySelector(`.${S.header}`);
4377
4377
  if (!b) return;
4378
- const I = () => {
4378
+ const _ = () => {
4379
4379
  const K = b.offsetHeight;
4380
4380
  document.documentElement.style.setProperty("--header-height-mobile", `${K}px`);
4381
4381
  };
4382
- I(), window.addEventListener("resize", I);
4382
+ _(), window.addEventListener("resize", _);
4383
4383
  const j = new ResizeObserver(() => {
4384
- I();
4384
+ _();
4385
4385
  });
4386
4386
  return j.observe(b), () => {
4387
- window.removeEventListener("resize", I), j.disconnect();
4387
+ window.removeEventListener("resize", _), j.disconnect();
4388
4388
  };
4389
- }, [O]), Z(() => {
4389
+ }, [O]), J(() => {
4390
4390
  if (typeof document > "u") return;
4391
4391
  const b = document.querySelector(`.${S.logoWrapper}`);
4392
4392
  if (!b) return;
4393
- const I = () => {
4393
+ const _ = () => {
4394
4394
  const j = b.offsetWidth;
4395
4395
  document.documentElement.style.setProperty("--rk-logo-width", `${j}px`);
4396
4396
  };
4397
- return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
4398
- }, [O]), Z(() => {
4399
- if (typeof document > "u" || !_) {
4397
+ return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
4398
+ }, [O]), J(() => {
4399
+ if (typeof document > "u" || !w) {
4400
4400
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
4401
4401
  return;
4402
4402
  }
4403
4403
  const b = document.querySelector(`.${S.searchOverlay}`);
4404
4404
  if (!b) return;
4405
- const I = () => {
4405
+ const _ = () => {
4406
4406
  const K = b.offsetHeight;
4407
4407
  document.documentElement.style.setProperty("--rk-search-overlay-height", `${K}px`);
4408
4408
  };
4409
- requestAnimationFrame(I), window.addEventListener("resize", I);
4410
- const j = new ResizeObserver(I);
4409
+ requestAnimationFrame(_), window.addEventListener("resize", _);
4410
+ const j = new ResizeObserver(_);
4411
4411
  return j.observe(b), () => {
4412
- window.removeEventListener("resize", I), j.disconnect();
4412
+ window.removeEventListener("resize", _), j.disconnect();
4413
4413
  };
4414
- }, [_]);
4414
+ }, [w]);
4415
4415
  const se = () => {
4416
- const b = R === "light" ? "dark" : "light";
4417
- z(b), document.documentElement.setAttribute("data-color-scheme", b);
4416
+ const b = z === "light" ? "dark" : "light";
4417
+ R(b), document.documentElement.setAttribute("data-color-scheme", b);
4418
4418
  }, ee = (b) => {
4419
- n && (b.preventDefault(), n("home")), D(!1), L(!1);
4419
+ n && (b.preventDefault(), n("home")), I(!1), L(!1);
4420
4420
  }, ie = () => {
4421
- D(!C), _ && L(!1), !C && typeof document < "u" && requestAnimationFrame(() => {
4421
+ I(!x), w && L(!1), !x && typeof document < "u" && requestAnimationFrame(() => {
4422
4422
  const b = document.querySelector(`.${S.header}`);
4423
4423
  if (b) {
4424
- const I = b.offsetHeight;
4425
- document.documentElement.style.setProperty("--header-height-mobile", `${I}px`);
4424
+ const _ = b.offsetHeight;
4425
+ document.documentElement.style.setProperty("--header-height-mobile", `${_}px`);
4426
4426
  }
4427
4427
  });
4428
4428
  }, ae = () => {
4429
- L(!_), C && D(!1);
4429
+ L(!w), x && I(!1);
4430
4430
  }, V = Se(() => {
4431
- if (!E.trim()) return [];
4432
- const b = E.toLowerCase();
4431
+ if (!F.trim()) return [];
4432
+ const b = F.toLowerCase();
4433
4433
  return si.filter(
4434
- (I) => I.title.toLowerCase().startsWith(b)
4434
+ (_) => _.title.toLowerCase().startsWith(b)
4435
4435
  );
4436
- }, [E]), ue = (b) => {
4436
+ }, [F]), ue = (b) => {
4437
4437
  n && n(b), L(!1), N("");
4438
4438
  };
4439
- return /* @__PURE__ */ w("header", { className: S.header, "data-open": C ? "true" : "false", "data-color": t, children: [
4440
- T && /* @__PURE__ */ s("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ w("div", { className: S.extensionContentWrapper, children: [
4441
- A && /* @__PURE__ */ s("div", { className: S.extensionContent, children: /* @__PURE__ */ s(
4442
- Oe,
4439
+ return /* @__PURE__ */ D("header", { className: S.header, "data-open": x ? "true" : "false", "data-color": t, children: [
4440
+ T && /* @__PURE__ */ o("div", { className: S.headerExtension, "data-color-scheme": "light", children: /* @__PURE__ */ D("div", { className: S.extensionContentWrapper, children: [
4441
+ A && /* @__PURE__ */ o("div", { className: S.extensionContent, children: /* @__PURE__ */ o(
4442
+ Ve,
4443
4443
  {
4444
4444
  "data-size": "sm",
4445
- checked: R === "dark",
4445
+ checked: z === "dark",
4446
4446
  onChange: se,
4447
4447
  label: B("header.darkMode"),
4448
4448
  color: "neutral",
4449
4449
  "data-color-scheme": "light"
4450
4450
  }
4451
4451
  ) }),
4452
- A && M && /* @__PURE__ */ s("div", { className: S.extensionDivider }),
4453
- M && /* @__PURE__ */ w("div", { className: S.languageSwitch, children: [
4454
- /* @__PURE__ */ s("span", { className: S.languageLabel, children: B("header.language") }),
4455
- /* @__PURE__ */ w(J.TriggerContext, { children: [
4456
- /* @__PURE__ */ w(
4457
- J.Trigger,
4452
+ A && M && /* @__PURE__ */ o("div", { className: S.extensionDivider }),
4453
+ M && /* @__PURE__ */ D("div", { className: S.languageSwitch, children: [
4454
+ /* @__PURE__ */ o("span", { className: S.languageLabel, children: B("header.language") }),
4455
+ /* @__PURE__ */ D(X.TriggerContext, { children: [
4456
+ /* @__PURE__ */ D(
4457
+ X.Trigger,
4458
4458
  {
4459
4459
  className: S.languageLink,
4460
4460
  "aria-label": B("header.selectLanguage"),
@@ -4462,46 +4462,46 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4462
4462
  children: [
4463
4463
  G,
4464
4464
  " ",
4465
- /* @__PURE__ */ s(gt, { "aria-hidden": !0 })
4465
+ /* @__PURE__ */ o(gt, { "aria-hidden": !0 })
4466
4466
  ]
4467
4467
  }
4468
4468
  ),
4469
- /* @__PURE__ */ s(
4470
- J,
4469
+ /* @__PURE__ */ o(
4470
+ X,
4471
4471
  {
4472
- "data-color-scheme": R,
4472
+ "data-color-scheme": z,
4473
4473
  placement: "bottom-end",
4474
- children: /* @__PURE__ */ w(J.List, { children: [
4475
- /* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("NO"), children: "Norsk (NO)" }) }),
4476
- /* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("EN"), children: "English (EN)" }) })
4474
+ children: /* @__PURE__ */ D(X.List, { children: [
4475
+ /* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("NO"), children: "Norsk (NO)" }) }),
4476
+ /* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("EN"), children: "English (EN)" }) })
4477
4477
  ] })
4478
4478
  }
4479
4479
  )
4480
4480
  ] })
4481
4481
  ] })
4482
4482
  ] }) }),
4483
- /* @__PURE__ */ w("div", { className: S.headerInner, children: [
4484
- /* @__PURE__ */ w("div", { className: S.logoWrapper, children: [
4485
- /* @__PURE__ */ s(
4483
+ /* @__PURE__ */ D("div", { className: S.headerInner, children: [
4484
+ /* @__PURE__ */ D("div", { className: S.logoWrapper, children: [
4485
+ /* @__PURE__ */ o(
4486
4486
  ce,
4487
4487
  {
4488
4488
  href: "/",
4489
4489
  className: `${S.logo} ${S.primaryLogo}`,
4490
4490
  "aria-label": B("header.homeAriaLabel"),
4491
4491
  onClick: ee,
4492
- children: /* @__PURE__ */ s(Q, {})
4492
+ children: /* @__PURE__ */ o(Q, {})
4493
4493
  }
4494
4494
  ),
4495
- /* @__PURE__ */ s("div", { className: S.secondaryLogoWrapper, children: f && g ? /* @__PURE__ */ s(
4495
+ /* @__PURE__ */ o("div", { className: S.secondaryLogoWrapper, children: f && g ? /* @__PURE__ */ o(
4496
4496
  "img",
4497
4497
  {
4498
- src: R === "dark" && h ? h : g,
4499
- alt: k,
4498
+ src: z === "dark" && u ? u : g,
4499
+ alt: y,
4500
4500
  className: S.secondaryLogo
4501
4501
  }
4502
- ) : f ? /* @__PURE__ */ s("div", { className: S.slotComponent, children: /* @__PURE__ */ s("div", { className: S.slotContainer, children: /* @__PURE__ */ s("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
4502
+ ) : f ? /* @__PURE__ */ o("div", { className: S.slotComponent, children: /* @__PURE__ */ o("div", { className: S.slotContainer, children: /* @__PURE__ */ o("p", { className: S.slotText, children: "SLOT" }) }) }) : null })
4503
4503
  ] }),
4504
- p && y && y.length > 0 && !O && /* @__PURE__ */ s("nav", { className: S.navItems, children: y.map((b, I) => /* @__PURE__ */ s(
4504
+ m && k && k.length > 0 && !O && /* @__PURE__ */ o("nav", { className: S.navItems, children: k.map((b, _) => /* @__PURE__ */ o(
4505
4505
  ce,
4506
4506
  {
4507
4507
  href: b.href,
@@ -4511,10 +4511,10 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4511
4511
  },
4512
4512
  children: b.label
4513
4513
  },
4514
- I
4514
+ _
4515
4515
  )) }),
4516
- /* @__PURE__ */ w("div", { className: S.actions, children: [
4517
- d && /* @__PURE__ */ w(
4516
+ /* @__PURE__ */ D("div", { className: S.actions, children: [
4517
+ d && /* @__PURE__ */ D(
4518
4518
  xe,
4519
4519
  {
4520
4520
  variant: "primary",
@@ -4524,68 +4524,68 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4524
4524
  onClick: v,
4525
4525
  children: [
4526
4526
  c,
4527
- /* @__PURE__ */ s("span", { className: S.buttonText, children: l || B("header.supportUs") })
4527
+ /* @__PURE__ */ o("span", { className: S.buttonText, children: l || B("header.supportUs") })
4528
4528
  ]
4529
4529
  }
4530
4530
  ),
4531
- !T && u && /* @__PURE__ */ s("div", { className: S.themeToggle, children: /* @__PURE__ */ s(
4532
- Oe,
4531
+ !T && h && /* @__PURE__ */ o("div", { className: S.themeToggle, children: /* @__PURE__ */ o(
4532
+ Ve,
4533
4533
  {
4534
- checked: R === "dark",
4534
+ checked: z === "dark",
4535
4535
  onChange: se,
4536
4536
  "aria-label": B("header.toggleTheme")
4537
4537
  }
4538
4538
  ) }),
4539
- a && /* @__PURE__ */ w("div", { className: S.userInfo, children: [
4540
- /* @__PURE__ */ s(Je, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
4541
- /* @__PURE__ */ s(At, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
4539
+ a && /* @__PURE__ */ D("div", { className: S.userInfo, children: [
4540
+ /* @__PURE__ */ o(Xe, { "data-size": "md", className: S.userName, children: "Frodo Baggins" }),
4541
+ /* @__PURE__ */ o(At, { "aria-label": "Frodo Baggins", "data-color": "main", variant: "circle", initials: "FB" })
4542
4542
  ] }),
4543
- o && /* @__PURE__ */ w("a", { href: "#", className: S.loginLink, children: [
4544
- /* @__PURE__ */ s("span", { className: S.loginText, children: B("header.login") }),
4545
- /* @__PURE__ */ s("div", { className: S.underline })
4543
+ r && /* @__PURE__ */ D("a", { href: "#", className: S.loginLink, children: [
4544
+ /* @__PURE__ */ o("span", { className: S.loginText, children: B("header.login") }),
4545
+ /* @__PURE__ */ o("div", { className: S.underline })
4546
4546
  ] }),
4547
- i && /* @__PURE__ */ s("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ w(
4547
+ i && /* @__PURE__ */ o("div", { className: S.searchButtonWrapper, children: /* @__PURE__ */ D(
4548
4548
  xe,
4549
4549
  {
4550
4550
  variant: "secondary",
4551
4551
  "data-color": "main",
4552
4552
  "data-size": "md",
4553
4553
  onClick: ae,
4554
- "aria-expanded": _,
4555
- "aria-label": B(_ ? "header.closeSearch" : "header.openSearch"),
4554
+ "aria-expanded": w,
4555
+ "aria-label": B(w ? "header.closeSearch" : "header.openSearch"),
4556
4556
  children: [
4557
- _ ? /* @__PURE__ */ s(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ s(ft, { "aria-hidden": !0 }),
4558
- /* @__PURE__ */ s("span", { className: S.buttonText, children: B(_ ? "header.close" : "header.search") })
4557
+ w ? /* @__PURE__ */ o(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ o(ft, { "aria-hidden": !0 }),
4558
+ /* @__PURE__ */ o("span", { className: S.buttonText, children: B(w ? "header.close" : "header.search") })
4559
4559
  ]
4560
4560
  }
4561
4561
  ) }),
4562
- (m || O) && /* @__PURE__ */ w(
4562
+ (p || O) && /* @__PURE__ */ D(
4563
4563
  xe,
4564
4564
  {
4565
4565
  variant: "primary",
4566
4566
  "data-color": "main",
4567
4567
  "data-size": "md",
4568
4568
  onClick: ie,
4569
- "aria-expanded": C,
4570
- "aria-label": B(C ? "header.closeMenu" : "header.openMenu"),
4569
+ "aria-expanded": x,
4570
+ "aria-label": B(x ? "header.closeMenu" : "header.openMenu"),
4571
4571
  className: S.menuButton,
4572
4572
  children: [
4573
- C ? /* @__PURE__ */ s(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ s(Zn, { "aria-hidden": !0 }),
4574
- /* @__PURE__ */ s("span", { className: S.buttonText, children: B(C ? "header.close" : "header.menu") })
4573
+ x ? /* @__PURE__ */ o(ht, { "aria-hidden": !0 }) : /* @__PURE__ */ o(Jn, { "aria-hidden": !0 }),
4574
+ /* @__PURE__ */ o("span", { className: S.buttonText, children: B(x ? "header.close" : "header.menu") })
4575
4575
  ]
4576
4576
  }
4577
4577
  )
4578
4578
  ] })
4579
4579
  ] }),
4580
- C && /* @__PURE__ */ s("div", { className: S.menuOverlay, children: /* @__PURE__ */ w("div", { className: S.menuContent, children: [
4581
- /* @__PURE__ */ s("div", { className: S.menuLeftColumn }),
4582
- /* @__PURE__ */ w("div", { className: S.menuRightColumn, children: [
4583
- O && (M || A) && /* @__PURE__ */ w("div", { className: S.menuUtilities, children: [
4584
- M && /* @__PURE__ */ w("div", { className: S.languageSwitch, children: [
4585
- /* @__PURE__ */ s("span", { className: S.languageLabel, children: B("header.language") }),
4586
- /* @__PURE__ */ w(J.TriggerContext, { children: [
4587
- /* @__PURE__ */ w(
4588
- J.Trigger,
4580
+ x && /* @__PURE__ */ o("div", { className: S.menuOverlay, children: /* @__PURE__ */ D("div", { className: S.menuContent, children: [
4581
+ /* @__PURE__ */ o("div", { className: S.menuLeftColumn }),
4582
+ /* @__PURE__ */ D("div", { className: S.menuRightColumn, children: [
4583
+ O && (M || A) && /* @__PURE__ */ D("div", { className: S.menuUtilities, children: [
4584
+ M && /* @__PURE__ */ D("div", { className: S.languageSwitch, children: [
4585
+ /* @__PURE__ */ o("span", { className: S.languageLabel, children: B("header.language") }),
4586
+ /* @__PURE__ */ D(X.TriggerContext, { children: [
4587
+ /* @__PURE__ */ D(
4588
+ X.Trigger,
4589
4589
  {
4590
4590
  className: S.languageLink,
4591
4591
  "aria-label": B("header.selectLanguage"),
@@ -4593,28 +4593,28 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4593
4593
  children: [
4594
4594
  G,
4595
4595
  " ",
4596
- /* @__PURE__ */ s(gt, { "aria-hidden": !0 })
4596
+ /* @__PURE__ */ o(gt, { "aria-hidden": !0 })
4597
4597
  ]
4598
4598
  }
4599
4599
  ),
4600
- /* @__PURE__ */ s(
4601
- J,
4600
+ /* @__PURE__ */ o(
4601
+ X,
4602
4602
  {
4603
- "data-color-scheme": R,
4603
+ "data-color-scheme": z,
4604
4604
  placement: "bottom-start",
4605
- children: /* @__PURE__ */ w(J.List, { children: [
4606
- /* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("NO"), children: "Norsk (NO)" }) }),
4607
- /* @__PURE__ */ s(J.Item, { children: /* @__PURE__ */ s(J.Button, { onClick: () => W("EN"), children: "English (EN)" }) })
4605
+ children: /* @__PURE__ */ D(X.List, { children: [
4606
+ /* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("NO"), children: "Norsk (NO)" }) }),
4607
+ /* @__PURE__ */ o(X.Item, { children: /* @__PURE__ */ o(X.Button, { onClick: () => $("EN"), children: "English (EN)" }) })
4608
4608
  ] })
4609
4609
  }
4610
4610
  )
4611
4611
  ] })
4612
4612
  ] }),
4613
- A && /* @__PURE__ */ s("div", { className: S.extensionContent, children: /* @__PURE__ */ s(
4614
- Oe,
4613
+ A && /* @__PURE__ */ o("div", { className: S.extensionContent, children: /* @__PURE__ */ o(
4614
+ Ve,
4615
4615
  {
4616
4616
  "data-size": "sm",
4617
- checked: R === "dark",
4617
+ checked: z === "dark",
4618
4618
  onChange: se,
4619
4619
  label: B("header.darkMode"),
4620
4620
  color: "neutral",
@@ -4622,9 +4622,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4622
4622
  }
4623
4623
  ) })
4624
4624
  ] }),
4625
- /* @__PURE__ */ w("div", { className: S.slotContent, children: [
4626
- r,
4627
- O && p && y && y.length > 0 && /* @__PURE__ */ s("nav", { className: S.navList, children: y.map((b, I) => /* @__PURE__ */ s(
4625
+ /* @__PURE__ */ D("div", { className: S.slotContent, children: [
4626
+ s,
4627
+ O && m && k && k.length > 0 && /* @__PURE__ */ o("nav", { className: S.navList, children: k.map((b, _) => /* @__PURE__ */ o(
4628
4628
  ce,
4629
4629
  {
4630
4630
  href: b.href,
@@ -4634,56 +4634,56 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4634
4634
  },
4635
4635
  children: b.label
4636
4636
  },
4637
- I
4637
+ _
4638
4638
  )) })
4639
4639
  ] }),
4640
- O && /* @__PURE__ */ s("div", { className: S.menuBrand, children: /* @__PURE__ */ s(Q, {}) })
4640
+ O && /* @__PURE__ */ o("div", { className: S.menuBrand, children: /* @__PURE__ */ o(Q, {}) })
4641
4641
  ] })
4642
4642
  ] }) }),
4643
- _ && /* @__PURE__ */ s("div", { className: S.searchOverlay, children: /* @__PURE__ */ w("div", { className: S.searchContent, children: [
4644
- /* @__PURE__ */ w(Ne, { children: [
4645
- /* @__PURE__ */ s(
4643
+ w && /* @__PURE__ */ o("div", { className: S.searchOverlay, children: /* @__PURE__ */ D("div", { className: S.searchContent, children: [
4644
+ /* @__PURE__ */ D(Ne, { children: [
4645
+ /* @__PURE__ */ o(
4646
4646
  Ne.Input,
4647
4647
  {
4648
4648
  "aria-label": B("header.search"),
4649
4649
  placeholder: B("header.searchPlaceholder"),
4650
- value: E,
4650
+ value: F,
4651
4651
  onChange: (b) => N(b.target.value)
4652
4652
  }
4653
4653
  ),
4654
- /* @__PURE__ */ s(Ne.Button, { "aria-label": B("header.search") }),
4655
- /* @__PURE__ */ s(Ne.ClearButton, { onClick: () => N(""), "aria-label": B("header.clearSearch") })
4654
+ /* @__PURE__ */ o(Ne.Button, { "aria-label": B("header.search") }),
4655
+ /* @__PURE__ */ o(Ne.ClearButton, { onClick: () => N(""), "aria-label": B("header.clearSearch") })
4656
4656
  ] }),
4657
- E && /* @__PURE__ */ s("div", { className: S.searchResults, children: V.length > 0 ? /* @__PURE__ */ w("div", { className: S.suggestionsSection, children: [
4658
- /* @__PURE__ */ s("h3", { className: S.suggestionsTitle, children: B("header.suggestions") }),
4659
- /* @__PURE__ */ s("ul", { className: S.resultList, children: V.slice(0, 5).map((b) => /* @__PURE__ */ s("li", { className: S.resultItem, children: /* @__PURE__ */ w(
4657
+ F && /* @__PURE__ */ o("div", { className: S.searchResults, children: V.length > 0 ? /* @__PURE__ */ D("div", { className: S.suggestionsSection, children: [
4658
+ /* @__PURE__ */ o("h3", { className: S.suggestionsTitle, children: B("header.suggestions") }),
4659
+ /* @__PURE__ */ o("ul", { className: S.resultList, children: V.slice(0, 5).map((b) => /* @__PURE__ */ o("li", { className: S.resultItem, children: /* @__PURE__ */ D(
4660
4660
  "button",
4661
4661
  {
4662
4662
  className: S.resultLink,
4663
4663
  onClick: () => ue(b.path),
4664
4664
  children: [
4665
- /* @__PURE__ */ s("span", { className: S.suggestionIcon, children: /* @__PURE__ */ s(ft, { "aria-hidden": !0 }) }),
4666
- /* @__PURE__ */ s("span", { className: S.suggestionText, children: (() => {
4667
- const I = b.title.toLowerCase().indexOf(E.toLowerCase());
4668
- if (I === -1) return /* @__PURE__ */ s("span", { className: S.remainingText, children: b.title });
4669
- const j = b.title.slice(0, I), K = b.title.slice(I, I + E.length), q = b.title.slice(I + E.length);
4670
- return /* @__PURE__ */ w(Vt, { children: [
4671
- /* @__PURE__ */ s("span", { className: S.remainingText, children: j }),
4672
- /* @__PURE__ */ s("span", { className: S.highlightedText, children: K }),
4673
- /* @__PURE__ */ s("span", { className: S.remainingText, children: q })
4665
+ /* @__PURE__ */ o("span", { className: S.suggestionIcon, children: /* @__PURE__ */ o(ft, { "aria-hidden": !0 }) }),
4666
+ /* @__PURE__ */ o("span", { className: S.suggestionText, children: (() => {
4667
+ const _ = b.title.toLowerCase().indexOf(F.toLowerCase());
4668
+ if (_ === -1) return /* @__PURE__ */ o("span", { className: S.remainingText, children: b.title });
4669
+ const j = b.title.slice(0, _), K = b.title.slice(_, _ + F.length), Y = b.title.slice(_ + F.length);
4670
+ return /* @__PURE__ */ D(Vt, { children: [
4671
+ /* @__PURE__ */ o("span", { className: S.remainingText, children: j }),
4672
+ /* @__PURE__ */ o("span", { className: S.highlightedText, children: K }),
4673
+ /* @__PURE__ */ o("span", { className: S.remainingText, children: Y })
4674
4674
  ] });
4675
4675
  })() })
4676
4676
  ]
4677
4677
  }
4678
4678
  ) }, b.id)) }),
4679
- V.length > 5 && /* @__PURE__ */ w(
4679
+ V.length > 5 && /* @__PURE__ */ D(
4680
4680
  ce,
4681
4681
  {
4682
4682
  href: "#",
4683
4683
  "data-color": "neutral",
4684
4684
  className: S.viewAllLink,
4685
4685
  onClick: (b) => {
4686
- b.preventDefault(), n && n(`search/${E}`), L(!1), N("");
4686
+ b.preventDefault(), n && n(`search/${F}`), L(!1), N("");
4687
4687
  },
4688
4688
  children: [
4689
4689
  B("header.viewAll"),
@@ -4693,10 +4693,10 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
4693
4693
  ]
4694
4694
  }
4695
4695
  )
4696
- ] }) : /* @__PURE__ */ s("div", { className: S.noResults, children: /* @__PURE__ */ w(Je, { children: [
4696
+ ] }) : /* @__PURE__ */ o("div", { className: S.noResults, children: /* @__PURE__ */ D(Xe, { children: [
4697
4697
  B("header.noResults"),
4698
4698
  ' "',
4699
- E,
4699
+ F,
4700
4700
  '"'
4701
4701
  ] }) }) })
4702
4702
  ] }) })
@@ -4844,7 +4844,7 @@ function ii(t) {
4844
4844
  }
4845
4845
  `;
4846
4846
  }
4847
- const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf5vh_26", ci = "_shortcutsSection_cf5vh_35", ui = "_shortcutsColumn_cf5vh_43", mi = "_shortcutsTitle_cf5vh_51", pi = "_shortcutsList_cf5vh_60", gi = "_shortcutLink_cf5vh_69", hi = "_slotComponent_cf5vh_92", fi = "_divider_cf5vh_131", ki = "_contactSection_cf5vh_139", yi = "_contactColumn_cf5vh_146", vi = "_contactTitle_cf5vh_154", bi = "_contactContent_cf5vh_163", Ti = "_legalSection_cf5vh_177", Si = "_copyrightText_cf5vh_184", xi = "_legalLinks_cf5vh_193", Ci = "_legalLink_cf5vh_193", wi = "_whiteSection_cf5vh_223", Ii = "_whiteContainer_cf5vh_228", Di = "_whiteContent_cf5vh_241", _i = "_logo_cf5vh_253", Ai = "_designSystemLogo_cf5vh_260", Mi = "_slotSmall_cf5vh_267", ji = "_slotLarge_cf5vh_278", F = {
4847
+ const ai = "_footer_q7rao_1", li = "_redSection_q7rao_7", di = "_redContainer_q7rao_26", ci = "_shortcutsSection_q7rao_35", ui = "_shortcutsColumn_q7rao_43", mi = "_shortcutsTitle_q7rao_51", pi = "_shortcutsList_q7rao_60", gi = "_shortcutLink_q7rao_69", hi = "_slotComponent_q7rao_92", fi = "_divider_q7rao_131", ki = "_contactSection_q7rao_139", yi = "_contactColumn_q7rao_146", vi = "_contactTitle_q7rao_154", bi = "_contactContent_q7rao_163", Ti = "_legalSection_q7rao_177", Si = "_copyrightText_q7rao_184", xi = "_legalLinks_q7rao_193", Ci = "_legalLink_q7rao_193", wi = "_whiteSection_q7rao_223", Ii = "_whiteContainer_q7rao_228", Di = "_whiteContent_q7rao_241", _i = "_logo_q7rao_253", Ai = "_redCrossLogo_q7rao_261", Li = "_designSystemLogo_q7rao_267", Mi = "_slotSmall_q7rao_274", Ei = "_slotLarge_q7rao_285", E = {
4848
4848
  footer: ai,
4849
4849
  redSection: li,
4850
4850
  redContainer: di,
@@ -4867,169 +4867,456 @@ const ai = "_footer_cf5vh_1", li = "_redSection_cf5vh_7", di = "_redContainer_cf
4867
4867
  whiteContainer: Ii,
4868
4868
  whiteContent: Di,
4869
4869
  logo: _i,
4870
- designSystemLogo: Ai,
4870
+ redCrossLogo: Ai,
4871
+ designSystemLogo: Li,
4871
4872
  slotSmall: Mi,
4872
- slotLarge: ji
4873
- }, ka = ({
4873
+ slotLarge: Ei
4874
+ }, va = ({
4874
4875
  "data-color": t = "additional",
4875
4876
  redSectionSlot: e,
4876
4877
  whiteSectionSlotSmall: n,
4877
- whiteSectionSlotLarge: r,
4878
- showDesignSystemLogo: a = !0,
4879
- designSystemLogoSrc: i = "/designsystemlogofinallight.svg",
4880
- designSystemLogoSrcDark: o = "/designsystemlogofinaldark.svg",
4881
- designSystemLogoAlt: d = "Designsystem Logo",
4882
- shortcutsLinksLeft: l,
4883
- shortcutsLinksRight: c
4878
+ whiteSectionSlotLarge: s,
4879
+ showPrimaryLogo: a = !0,
4880
+ primaryLogoSrc: i,
4881
+ primaryLogoAlt: r = "Røde Kors Logo",
4882
+ secondaryLogo: d = !0,
4883
+ secondaryLogoSrc: l = "/designsystemlogofinallight.svg",
4884
+ secondaryLogoSrcDark: c = "/designsystemlogofinaldark.svg",
4885
+ secondaryLogoAlt: v = "Designsystem Logo",
4886
+ shortcutsLinksLeft: h,
4887
+ shortcutsLinksRight: f
4884
4888
  } = {}) => {
4885
- const v = (/* @__PURE__ */ new Date()).getFullYear(), { t: u } = Nt(), [f, g] = Ve.useState("light");
4886
- Ve.useEffect(() => {
4889
+ const g = (/* @__PURE__ */ new Date()).getFullYear(), { t: u } = Nt();
4890
+ Be.useEffect(() => {
4891
+ const x = "rk-footer-inline-styles";
4892
+ if (typeof document > "u" || document.getElementById(x)) return;
4893
+ const I = ji(E), w = document.createElement("style");
4894
+ w.id = x, w.textContent = I, document.head.appendChild(w);
4895
+ }, []);
4896
+ const [y, k] = Be.useState("light");
4897
+ Be.useEffect(() => {
4887
4898
  if (typeof document > "u") return;
4888
- const m = document.documentElement, T = m.getAttribute("data-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
4889
- g(T);
4890
- const A = window.matchMedia("(prefers-color-scheme: dark)"), M = () => {
4891
- const D = m.getAttribute("data-color-scheme") || (A.matches ? "dark" : "light");
4892
- g(D);
4893
- }, C = new MutationObserver(M);
4894
- return C.observe(m, { attributes: !0, attributeFilter: ["data-color-scheme"] }), A.addEventListener("change", M), () => {
4895
- C.disconnect(), A.removeEventListener("change", M);
4899
+ const x = document.documentElement, I = x.getAttribute("data-color-scheme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
4900
+ k(I);
4901
+ const w = window.matchMedia("(prefers-color-scheme: dark)"), L = () => {
4902
+ const N = x.getAttribute("data-color-scheme") || (w.matches ? "dark" : "light");
4903
+ k(N);
4904
+ }, F = new MutationObserver(L);
4905
+ return F.observe(x, { attributes: !0, attributeFilter: ["data-color-scheme"] }), w.addEventListener("change", L), () => {
4906
+ F.disconnect(), w.removeEventListener("change", L);
4896
4907
  };
4897
4908
  }, []);
4898
- const h = f === "dark" && o ? o : i, k = [
4909
+ const m = y === "dark" && c ? c : l, p = () => /* @__PURE__ */ D(
4910
+ "svg",
4911
+ {
4912
+ width: "170",
4913
+ height: "119",
4914
+ viewBox: "24 0 170 119",
4915
+ fill: "none",
4916
+ xmlns: "http://www.w3.org/2000/svg",
4917
+ "aria-hidden": !0,
4918
+ focusable: "false",
4919
+ className: E.redCrossLogo,
4920
+ children: [
4921
+ /* @__PURE__ */ o("path", { d: "M76.1036 48.1397C77.8925 47.8781 79.6984 47.7525 81.5061 47.7639C84.1713 47.7639 86.0396 48.1669 87.3182 49.1857C87.8735 49.639 88.3149 50.2176 88.6067 50.8744C88.8984 51.5312 89.0323 52.2479 88.9974 52.9665C88.9839 53.9451 88.6724 54.896 88.1049 55.691C87.5373 56.4861 86.7411 57.087 85.8235 57.4129V57.4944C87.0796 58.006 87.7684 59.2104 88.2231 60.8722C88.7813 62.9097 89.3441 65.2688 89.6907 65.9661H85.5309C85.2382 65.4544 84.7835 63.9829 84.2793 61.7597C83.7751 59.5365 83.0097 58.8527 81.344 58.8527H80.1284V65.9661H76.1036V48.1397ZM80.1284 55.9141H81.7312C83.7526 55.9141 84.9546 54.8954 84.9546 53.3151C84.9546 51.6534 83.8336 50.8202 81.9698 50.7931C81.3532 50.7814 80.7368 50.8268 80.1284 50.9289V55.9141Z", fill: "#1E1E1E" }),
4922
+ /* @__PURE__ */ o("path", { d: "M97.8528 52.5633C98.9439 52.5351 100.026 52.7744 101.004 53.2606L102.256 51.4087L103.669 52.4003L102.467 54.2115C103.188 54.8589 103.758 55.6585 104.137 56.5531C104.515 57.4478 104.692 58.4154 104.655 59.3869C104.655 64.0506 101.243 66.2738 97.8573 66.2738C96.7852 66.2984 95.7234 66.059 94.7644 65.5765L93.4543 67.4556L92.1037 66.387L93.2787 64.6438C91.8651 63.4892 91.0277 61.7233 91.0277 59.414C91.0277 55.2891 93.7965 52.5543 97.8213 52.5543L97.8528 52.5633ZM99.2934 55.9411C98.8798 55.6237 98.3731 55.4533 97.8528 55.4566C95.7458 55.4566 94.949 57.5757 94.949 59.4005C94.9265 60.126 95.0909 60.845 95.4262 61.4878L95.4802 61.515L99.2934 55.9411ZM96.4932 62.8552C96.8653 63.1843 97.3486 63.3576 97.8438 63.3397C99.6446 63.3397 100.748 61.7821 100.748 59.4774C100.76 58.7777 100.625 58.0833 100.351 57.4399L100.27 57.4127L96.4932 62.8552Z", fill: "#1E1E1E" }),
4923
+ /* @__PURE__ */ o("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
4924
+ /* @__PURE__ */ o("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
4925
+ /* @__PURE__ */ o("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
4926
+ /* @__PURE__ */ o("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
4927
+ /* @__PURE__ */ o("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
4928
+ /* @__PURE__ */ o("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
4929
+ /* @__PURE__ */ o("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
4930
+ /* @__PURE__ */ o("path", { d: "M87.1426 12.8572H12.8572V87.1429H87.1426V12.8572Z", fill: "#D52B1E" }),
4931
+ /* @__PURE__ */ o("path", { d: "M50 0L24 0C10.7452 0 0 10.7452 0 24L0 50L24 50C37.2548 50 50 37.2548 50 24L50 0Z", fill: "#D52B1E" }),
4932
+ /* @__PURE__ */ o("path", { d: "M50 69L50 95C50 108.255 37.2548 120 24 120L0 120L0 95L0 69L24 69C37.2548 69 50 81.7452 50 95L50 69Z", fill: "#D52B1E" }),
4933
+ /* @__PURE__ */ o("path", { d: "M100 50L100 24C100 10.7452 112.745 0 126 0L150 0L150 24L150 50L126 50C112.745 50 100 37.2548 100 24L100 50Z", fill: "#D52B1E" }),
4934
+ /* @__PURE__ */ o("path", { d: "M100 95C100 108.255 112.745 120 126 120L150 120L150 95L150 69L126 69C112.745 69 100 81.7452 100 95Z", fill: "#D52B1E" })
4935
+ ]
4936
+ }
4937
+ ), T = [
4899
4938
  { label: u("footer.shortcutsLinks.services"), href: "#" },
4900
4939
  { label: u("footer.shortcutsLinks.volunteer"), href: "#" },
4901
4940
  { label: u("footer.shortcutsLinks.ourWork"), href: "#" },
4902
4941
  { label: u("footer.shortcutsLinks.about"), href: "#" },
4903
4942
  { label: u("footer.shortcutsLinks.support"), href: "#" },
4904
4943
  { label: u("footer.shortcutsLinks.contact"), href: "#" }
4905
- ], y = l || k, p = c || k;
4906
- return /* @__PURE__ */ w("footer", { className: F.footer, "data-color": t, children: [
4907
- /* @__PURE__ */ s("div", { className: F.redSection, children: /* @__PURE__ */ w("div", { className: F.redContainer, children: [
4908
- /* @__PURE__ */ w("div", { className: F.shortcutsSection, children: [
4909
- /* @__PURE__ */ w("nav", { className: F.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
4910
- /* @__PURE__ */ s("h3", { className: F.shortcutsTitle, children: u("footer.shortcuts") }),
4911
- /* @__PURE__ */ s("ul", { className: F.shortcutsList, children: y.map((m, T) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(ce, { href: m.href, className: F.shortcutLink, children: m.label }) }, T)) })
4944
+ ], A = h || T, M = f || T;
4945
+ return /* @__PURE__ */ D("footer", { className: E.footer, "data-color": t, children: [
4946
+ /* @__PURE__ */ o("div", { className: E.redSection, children: /* @__PURE__ */ D("div", { className: E.redContainer, children: [
4947
+ /* @__PURE__ */ D("div", { className: E.shortcutsSection, children: [
4948
+ /* @__PURE__ */ D("nav", { className: E.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
4949
+ /* @__PURE__ */ o("h3", { className: E.shortcutsTitle, children: u("footer.shortcuts") }),
4950
+ /* @__PURE__ */ o("ul", { className: E.shortcutsList, children: A.map((x, I) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(ce, { href: x.href, className: E.shortcutLink, children: x.label }) }, I)) })
4912
4951
  ] }),
4913
- /* @__PURE__ */ w("nav", { className: F.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
4914
- /* @__PURE__ */ s("h3", { className: F.shortcutsTitle, children: u("footer.shortcuts") }),
4915
- /* @__PURE__ */ s("ul", { className: F.shortcutsList, children: p.map((m, T) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(ce, { href: m.href, className: F.shortcutLink, children: m.label }) }, T)) })
4952
+ /* @__PURE__ */ D("nav", { className: E.shortcutsColumn, "aria-label": u("footer.shortcuts"), children: [
4953
+ /* @__PURE__ */ o("h3", { className: E.shortcutsTitle, children: u("footer.shortcuts") }),
4954
+ /* @__PURE__ */ o("ul", { className: E.shortcutsList, children: M.map((x, I) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(ce, { href: x.href, className: E.shortcutLink, children: x.label }) }, I)) })
4916
4955
  ] }),
4917
- e && /* @__PURE__ */ s("div", { className: F.slotComponent, children: e })
4956
+ e && /* @__PURE__ */ o("div", { className: E.slotComponent, children: e })
4918
4957
  ] }),
4919
- /* @__PURE__ */ s("div", { className: F.divider }),
4920
- /* @__PURE__ */ w("div", { className: F.contactSection, children: [
4921
- /* @__PURE__ */ w("div", { className: F.contactColumn, children: [
4922
- /* @__PURE__ */ s("h4", { className: F.contactTitle, children: u("footer.contact.visitingAddress") }),
4923
- /* @__PURE__ */ w("div", { className: F.contactContent, children: [
4924
- /* @__PURE__ */ s("p", { children: "Hausmannsgate 7 (Korsegården)" }),
4925
- /* @__PURE__ */ s("p", { children: "0186 Oslo" })
4958
+ /* @__PURE__ */ o("div", { className: E.divider }),
4959
+ /* @__PURE__ */ D("div", { className: E.contactSection, children: [
4960
+ /* @__PURE__ */ D("div", { className: E.contactColumn, children: [
4961
+ /* @__PURE__ */ o("h4", { className: E.contactTitle, children: u("footer.contact.visitingAddress") }),
4962
+ /* @__PURE__ */ D("div", { className: E.contactContent, children: [
4963
+ /* @__PURE__ */ o("p", { children: "Hausmannsgate 7 (Korsegården)" }),
4964
+ /* @__PURE__ */ o("p", { children: "0186 Oslo" })
4926
4965
  ] })
4927
4966
  ] }),
4928
- /* @__PURE__ */ w("div", { className: F.contactColumn, children: [
4929
- /* @__PURE__ */ s("h4", { className: F.contactTitle, children: u("footer.contact.organizationNumber") }),
4930
- /* @__PURE__ */ s("p", { className: F.contactContent, children: "XXX XXX XXX" })
4967
+ /* @__PURE__ */ D("div", { className: E.contactColumn, children: [
4968
+ /* @__PURE__ */ o("h4", { className: E.contactTitle, children: u("footer.contact.organizationNumber") }),
4969
+ /* @__PURE__ */ o("p", { className: E.contactContent, children: "XXX XXX XXX" })
4931
4970
  ] }),
4932
- /* @__PURE__ */ w("div", { className: F.contactColumn, children: [
4933
- /* @__PURE__ */ s("h4", { className: F.contactTitle, children: u("footer.contact.email") }),
4934
- /* @__PURE__ */ s("p", { className: F.contactContent, children: "post@redcross.no" })
4971
+ /* @__PURE__ */ D("div", { className: E.contactColumn, children: [
4972
+ /* @__PURE__ */ o("h4", { className: E.contactTitle, children: u("footer.contact.email") }),
4973
+ /* @__PURE__ */ o("p", { className: E.contactContent, children: "post@redcross.no" })
4935
4974
  ] })
4936
4975
  ] }),
4937
- /* @__PURE__ */ s("div", { className: F.divider }),
4938
- /* @__PURE__ */ w("div", { className: F.legalSection, children: [
4939
- /* @__PURE__ */ w("p", { className: F.copyrightText, children: [
4976
+ /* @__PURE__ */ o("div", { className: E.divider }),
4977
+ /* @__PURE__ */ D("div", { className: E.legalSection, children: [
4978
+ /* @__PURE__ */ D("p", { className: E.copyrightText, children: [
4940
4979
  "© ",
4941
- v,
4980
+ g,
4942
4981
  " ",
4943
4982
  u("footer.copyright")
4944
4983
  ] }),
4945
- /* @__PURE__ */ w("div", { className: F.legalLinks, children: [
4946
- /* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.privacy") }),
4947
- /* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.press") }),
4948
- /* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.procurement") }),
4949
- /* @__PURE__ */ s(ce, { href: "#", className: F.legalLink, children: u("footer.legal.whistleblowing") })
4984
+ /* @__PURE__ */ D("div", { className: E.legalLinks, children: [
4985
+ /* @__PURE__ */ o(ce, { href: "#", className: E.legalLink, children: u("footer.legal.privacy") }),
4986
+ /* @__PURE__ */ o(ce, { href: "#", className: E.legalLink, children: u("footer.legal.press") }),
4987
+ /* @__PURE__ */ o(ce, { href: "#", className: E.legalLink, children: u("footer.legal.procurement") }),
4988
+ /* @__PURE__ */ o(ce, { href: "#", className: E.legalLink, children: u("footer.legal.whistleblowing") })
4950
4989
  ] })
4951
4990
  ] })
4952
4991
  ] }) }),
4953
- /* @__PURE__ */ s("div", { className: F.whiteSection, children: /* @__PURE__ */ s("div", { className: F.whiteContainer, children: /* @__PURE__ */ w("div", { className: F.whiteContent, children: [
4954
- /* @__PURE__ */ s(
4992
+ /* @__PURE__ */ o("div", { className: E.whiteSection, children: /* @__PURE__ */ o("div", { className: E.whiteContainer, children: /* @__PURE__ */ D("div", { className: E.whiteContent, children: [
4993
+ a && (i ? /* @__PURE__ */ o(
4955
4994
  "img",
4956
4995
  {
4957
- src: "/logo-red-cross.svg",
4958
- alt: "Røde Kors Logo",
4959
- className: F.logo,
4996
+ src: i,
4997
+ alt: r,
4998
+ className: E.logo,
4960
4999
  loading: "lazy"
4961
5000
  }
4962
- ),
4963
- a && /* @__PURE__ */ s(
5001
+ ) : /* @__PURE__ */ o("div", { className: E.logo, children: /* @__PURE__ */ o(p, {}) })),
5002
+ d && m && /* @__PURE__ */ o(
4964
5003
  "img",
4965
5004
  {
4966
- src: h,
4967
- alt: d,
4968
- className: F.designSystemLogo,
5005
+ src: m,
5006
+ alt: v,
5007
+ className: E.designSystemLogo,
4969
5008
  loading: "lazy"
4970
5009
  }
4971
5010
  ),
4972
- n && /* @__PURE__ */ s("div", { className: F.slotSmall, children: n }),
4973
- r && /* @__PURE__ */ s("div", { className: F.slotLarge, children: r })
5011
+ n && /* @__PURE__ */ o("div", { className: E.slotSmall, children: n }),
5012
+ s && /* @__PURE__ */ o("div", { className: E.slotLarge, children: s })
4974
5013
  ] }) }) })
4975
5014
  ] });
4976
5015
  };
5016
+ function ji(t) {
5017
+ const e = t;
5018
+ return `
5019
+ .${e.footer} {
5020
+ margin-top: auto;
5021
+ width: 100%;
5022
+ }
5023
+ .${e.redSection} {
5024
+ background-color: var(--ds-color-additional-color-ocean-background-tinted, #f2f4f5);
5025
+ width: 100%;
5026
+ }
5027
+ .${e.footer}[data-color="primary"] .${e.redSection} {
5028
+ background-color: var(--ds-color-primary-color-red-background-tinted);
5029
+ }
5030
+ .${e.footer}[data-color="additional"] .${e.redSection} {
5031
+ background-color: var(--ds-color-additional-color-ocean-background-tinted);
5032
+ }
5033
+ .${e.footer}[data-color="neutral"] .${e.redSection} {
5034
+ background-color: var(--ds-color-neutral-background-tinted);
5035
+ }
5036
+ .${e.redContainer} {
5037
+ width: 100%;
5038
+ max-width: 1440px;
5039
+ margin: 0 auto;
5040
+ padding: var(--ds-size-30, 120px) var(--ds-size-44, 175px);
5041
+ box-sizing: border-box;
5042
+ }
5043
+ .${e.shortcutsSection} {
5044
+ display: flex;
5045
+ gap: var(--ds-size-12, 48px);
5046
+ align-items: flex-start;
5047
+ padding: var(--ds-size-8, 32px) 0;
5048
+ flex-wrap: wrap;
5049
+ }
5050
+ .${e.shortcutsColumn} {
5051
+ display: flex;
5052
+ flex-direction: column;
5053
+ gap: var(--ds-size-6, 24px);
5054
+ width: 257px;
5055
+ flex-shrink: 0;
5056
+ }
5057
+ .${e.shortcutsTitle} {
5058
+ font-size: var(--ds-font-size-7, 30px);
5059
+ font-weight: var(--ds-font-weight-regular);
5060
+ line-height: 1.3;
5061
+ letter-spacing: -0.075px;
5062
+ color: var(--ds-color-primary-color-red-text-default, #57110c);
5063
+ margin: 0;
5064
+ }
5065
+ .${e.shortcutsList} {
5066
+ list-style: none;
5067
+ padding: 0;
5068
+ margin: 0;
5069
+ display: flex;
5070
+ flex-direction: column;
5071
+ gap: var(--ds-size-2, 8px);
5072
+ }
5073
+ .${e.shortcutLink} {
5074
+ font-size: var(--ds-font-size-4, 18px);
5075
+ font-weight: var(--ds-font-weight-regular);
5076
+ line-height: 1.5;
5077
+ letter-spacing: 0.09px;
5078
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
5079
+ text-decoration: underline;
5080
+ text-underline-offset: 2px;
5081
+ transition: color 0.2s ease;
5082
+ }
5083
+ .${e.shortcutLink}:hover {
5084
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
5085
+ opacity: 0.8;
5086
+ }
5087
+ .${e.shortcutLink}:focus {
5088
+ outline: 2px solid var(--ds-color-neutral-border-default, #797979);
5089
+ outline-offset: 2px;
5090
+ border-radius: var(--ds-border-radius-sm);
5091
+ }
5092
+ .${e.slotComponent} {
5093
+ background-color: var(--ds-color-neutral-surface-default, #ffffff);
5094
+ border: 2px dashed var(--ds-color-neutral-border-default, #797979);
5095
+ border-radius: var(--ds-border-radius-lg, 8px);
5096
+ padding: var(--ds-size-6, 24px) var(--ds-size-3, 12px);
5097
+ display: flex;
5098
+ align-items: center;
5099
+ justify-content: center;
5100
+ flex: 1 0 0;
5101
+ min-width: 200px;
5102
+ }
5103
+ .${e.divider} {
5104
+ width: 100%;
5105
+ height: 1px;
5106
+ background-color: var(--ds-color-neutral-border-subtle, #bcbcbc);
5107
+ margin: var(--ds-size-6, 24px) 0;
5108
+ }
5109
+ .${e.contactSection} {
5110
+ display: flex;
5111
+ gap: var(--ds-size-6, 24px);
5112
+ align-items: flex-start;
5113
+ flex-wrap: wrap;
5114
+ }
5115
+ .${e.contactColumn} {
5116
+ display: flex;
5117
+ flex-direction: column;
5118
+ gap: var(--ds-size-1, 4px);
5119
+ flex: 1;
5120
+ min-width: 200px;
5121
+ }
5122
+ .${e.contactTitle} {
5123
+ font-size: var(--ds-font-size-3, 16px);
5124
+ font-weight: var(--ds-font-weight-bold);
5125
+ line-height: 1.5;
5126
+ letter-spacing: 0.04px;
5127
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
5128
+ margin: 0;
5129
+ }
5130
+ .${e.contactContent} {
5131
+ font-size: var(--ds-font-size-3, 16px);
5132
+ font-weight: var(--ds-font-weight-regular);
5133
+ line-height: 1.5;
5134
+ letter-spacing: 0.04px;
5135
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
5136
+ margin: 0;
5137
+ }
5138
+ .${e.contactContent} p {
5139
+ margin: 0;
5140
+ }
5141
+ .${e.legalSection} {
5142
+ display: flex;
5143
+ gap: var(--ds-size-10, 40px);
5144
+ align-items: center;
5145
+ flex-wrap: wrap;
5146
+ }
5147
+ .${e.copyrightText} {
5148
+ font-size: var(--ds-font-size-2, 14px);
5149
+ font-weight: var(--ds-font-weight-regular);
5150
+ line-height: 1.3;
5151
+ letter-spacing: 0.021px;
5152
+ color: var(--ds-color-primary-color-red-text-default, #57110c);
5153
+ margin: 0;
5154
+ }
5155
+ .${e.legalLinks} {
5156
+ display: flex;
5157
+ gap: var(--ds-size-10, 40px);
5158
+ align-items: center;
5159
+ flex-wrap: wrap;
5160
+ }
5161
+ .${e.legalLink} {
5162
+ font-size: var(--ds-font-size-4, 18px);
5163
+ font-weight: var(--ds-font-weight-regular);
5164
+ line-height: 1.5;
5165
+ letter-spacing: 0.09px;
5166
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
5167
+ text-decoration: underline;
5168
+ text-underline-offset: 2px;
5169
+ transition: color 0.2s ease;
5170
+ }
5171
+ .${e.legalLink}:hover {
5172
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
5173
+ opacity: 0.8;
5174
+ }
5175
+ .${e.legalLink}:focus {
5176
+ outline: 2px solid var(--ds-color-neutral-border-default, #797979);
5177
+ outline-offset: 2px;
5178
+ border-radius: var(--ds-border-radius-sm);
5179
+ }
5180
+ .${e.whiteSection} {
5181
+ background-color: white;
5182
+ width: 100%;
5183
+ }
5184
+ .${e.whiteContainer} {
5185
+ width: 100%;
5186
+ max-width: 1440px;
5187
+ margin: 0 auto;
5188
+ padding: var(--ds-size-6, 24px) var(--ds-size-44, 175px);
5189
+ box-sizing: border-box;
5190
+ }
5191
+ .${e.whiteContainer} > * {
5192
+ max-width: 1090px;
5193
+ margin: 0 auto;
5194
+ }
5195
+ .${e.whiteContent} {
5196
+ display: flex;
5197
+ gap: var(--ds-size-20, 80px);
5198
+ align-items: center;
5199
+ flex-wrap: wrap;
5200
+ }
5201
+ .${e.whiteContent} > img:first-of-type + img {
5202
+ margin-left: var(--ds-size-10, 40px);
5203
+ }
5204
+ .${e.logo} {
5205
+ height: 43px;
5206
+ width: auto;
5207
+ display: flex;
5208
+ align-items: center;
5209
+ flex-shrink: 0;
5210
+ }
5211
+ .${e.redCrossLogo} {
5212
+ width: 169px;
5213
+ height: auto;
5214
+ display: block;
5215
+ }
5216
+ .${e.designSystemLogo} {
5217
+ height: 24px;
5218
+ width: auto;
5219
+ display: block;
5220
+ flex-shrink: 0;
5221
+ }
5222
+ .${e.slotSmall} {
5223
+ background-color: var(--ds-color-neutral-surface-default, #ffffff);
5224
+ border: 2px dashed var(--ds-color-neutral-border-default, #797979);
5225
+ border-radius: var(--ds-border-radius-lg, 8px);
5226
+ padding: var(--ds-size-6, 24px) var(--ds-size-3, 12px);
5227
+ display: flex;
5228
+ align-items: center;
5229
+ justify-content: center;
5230
+ flex-shrink: 0;
5231
+ }
5232
+ .${e.slotLarge} {
5233
+ background-color: var(--ds-color-neutral-surface-default, #ffffff);
5234
+ border: 2px dashed var(--ds-color-neutral-border-default, #797979);
5235
+ border-radius: var(--ds-border-radius-lg, 8px);
5236
+ padding: var(--ds-size-6, 24px) var(--ds-size-3, 12px);
5237
+ display: flex;
5238
+ align-items: center;
5239
+ justify-content: center;
5240
+ flex: 1 0 0;
5241
+ min-width: 200px;
5242
+ }
5243
+ @media (max-width: 768px) {
5244
+ .${e.shortcutsSection} {
5245
+ flex-direction: column;
5246
+ }
5247
+ .${e.shortcutsColumn} {
5248
+ width: 100%;
5249
+ }
5250
+ .${e.contactSection} {
5251
+ flex-direction: column;
5252
+ }
5253
+ .${e.legalSection} {
5254
+ flex-direction: column;
5255
+ align-items: flex-start;
5256
+ }
5257
+ .${e.whiteContent} {
5258
+ flex-direction: column;
5259
+ align-items: flex-start;
5260
+ }
5261
+ }
5262
+ `;
5263
+ }
4977
5264
  export {
4978
5265
  eo as Alert,
4979
5266
  At as Avatar,
4980
5267
  to as Badge,
4981
- Pi as BadgePosition,
4982
- Ri as Breadcrumbs,
4983
- Gi as BreadcrumbsItem,
5268
+ Ri as BadgePosition,
5269
+ Gi as Breadcrumbs,
5270
+ Hi as BreadcrumbsItem,
4984
5271
  Wi as BreadcrumbsLink,
4985
- zi as BreadcrumbsList,
5272
+ $i as BreadcrumbsList,
4986
5273
  xe as Button,
4987
5274
  no as Card,
4988
5275
  Ui as CardBlock,
4989
- Zr as Carousel,
5276
+ Jr as Carousel,
4990
5277
  oo as Checkbox,
4991
- $i as Chip,
5278
+ Vi as Chip,
4992
5279
  nr as DateInput,
4993
- Yo as DatePicker,
4994
- Oi as Details,
4995
- Vi as Dialog,
4996
- Ki as Divider,
4997
- J as Dropdown,
4998
- Yi as ErrorSummary,
4999
- qi as Field,
5280
+ qo as DatePicker,
5281
+ Ki as Details,
5282
+ qi as Dialog,
5283
+ Yi as Divider,
5284
+ X as Dropdown,
5285
+ Zi as ErrorSummary,
5286
+ Xi as Field,
5000
5287
  es as FieldCounter,
5001
5288
  Qr as FieldDescription,
5002
- Xi as Fieldset,
5003
- ka as Footer,
5004
- fa as Header,
5289
+ Ji as Fieldset,
5290
+ va as Footer,
5291
+ ya as Header,
5005
5292
  ts as Heading,
5006
- Ji as Input,
5293
+ Qi as Input,
5007
5294
  ns as Label,
5008
- ga as LanguageProvider,
5295
+ fa as LanguageProvider,
5009
5296
  ce as Link,
5010
- Zi as List,
5011
- Qi as Pagination,
5012
- Je as Paragraph,
5013
- ta as Popover,
5014
- na as Radio,
5297
+ ea as List,
5298
+ ta as Pagination,
5299
+ Xe as Paragraph,
5300
+ oa as Popover,
5301
+ ra as Radio,
5015
5302
  Ne as Search,
5016
- ra as Select,
5017
- sa as SkeletonLoader,
5018
- ia as SkipLink,
5019
- Jr as Spinner,
5303
+ ia as Select,
5304
+ aa as SkeletonLoader,
5305
+ la as SkipLink,
5306
+ Xr as Spinner,
5020
5307
  os as Suggestion,
5021
- Oe as Switch,
5022
- aa as Table,
5023
- la as Tabs,
5024
- da as Tag,
5025
- ca as Textarea,
5026
- ua as Textfield,
5027
- ma as ToggleGroup,
5028
- pa as Tooltip,
5308
+ Ve as Switch,
5309
+ da as Table,
5310
+ ca as Tabs,
5311
+ ua as Tag,
5312
+ ma as Textarea,
5313
+ pa as Textfield,
5314
+ ga as ToggleGroup,
5315
+ ha as Tooltip,
5029
5316
  rs as ValidationMessage,
5030
- Hi as useCheckboxGroup,
5031
- ha as useLanguage,
5317
+ Oi as useCheckboxGroup,
5318
+ ka as useLanguage,
5032
5319
  Nt as useLanguageOptional,
5033
- ea as usePagination,
5034
- oa as useRadioGroup
5320
+ na as usePagination,
5321
+ sa as useRadioGroup
5035
5322
  };