rk-designsystem 1.2.3 → 1.2.4

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,6 +1,6 @@
1
1
  import { jsx as t, jsxs as r, Fragment as Se } from "react/jsx-runtime";
2
- import Ae, { forwardRef as ie, useState as O, useContext as He, createContext as Je, useEffect as z, useMemo as fe, useCallback as se, useRef as Qe } from "react";
3
- import { Alert as et, Avatar as tt, BadgePosition as nt, Badge as ot, Breadcrumbs as rt, BreadcrumbsItem as at, BreadcrumbsLink as st, BreadcrumbsList as it, Button as Ne, Card as lt, CardBlock as dt, Checkbox as ct, useCheckboxGroup as pt, Fieldset as Ue, Chip as mt, Spinner as gt, Details as ut, Dialog as ht, Divider as ft, Dropdown as kt, DropdownButton as vt, DropdownHeading as bt, DropdownItem as yt, DropdownList as xt, DropdownTrigger as Tt, DropdownTriggerContext as Ct, ErrorSummary as wt, Field as St, FieldCounter as It, FieldDescription as _t, Heading as Dt, Input as Lt, Label as jt, Link as At, List as Nt, Pagination as Mt, PaginationButton as Ft, PaginationItem as Bt, PaginationList as Et, usePagination as $t, Paragraph as Pt, Popover as zt, Radio as Rt, useRadioGroup as Gt, Search as Wt, SearchInput as Ht, SearchClear as Ut, SearchButton as Vt, Select as Ot, Skeleton as Kt, SkipLink as qt, EXPERIMENTAL_Suggestion as Yt, Switch as Zt, Table as Xt, Tabs as Jt, Tag as Qt, Textarea as en, Textfield as tn, ToggleGroup as nn, Tooltip as on, ValidationMessage as rn } from "@digdir/designsystemet-react";
2
+ import Ne, { forwardRef as ie, useState as O, useContext as He, createContext as Je, useEffect as z, useMemo as fe, useCallback as se, useRef as Qe } from "react";
3
+ import { Alert as et, Avatar as tt, BadgePosition as nt, Badge as ot, Breadcrumbs as rt, BreadcrumbsItem as at, BreadcrumbsLink as st, BreadcrumbsList as it, Button as Me, Card as lt, CardBlock as dt, Checkbox as ct, useCheckboxGroup as pt, Fieldset as Ue, Chip as mt, Spinner as gt, Details as ut, Dialog as ht, Divider as ft, Dropdown as kt, DropdownButton as vt, DropdownHeading as bt, DropdownItem as yt, DropdownList as xt, DropdownTrigger as Tt, DropdownTriggerContext as Ct, ErrorSummary as wt, Field as St, FieldCounter as It, FieldDescription as _t, Heading as Dt, Input as Lt, Label as At, Link as Nt, List as Mt, Pagination as jt, PaginationButton as Ft, PaginationItem as Bt, PaginationList as Et, usePagination as $t, Paragraph as Pt, Popover as zt, Radio as Rt, useRadioGroup as Gt, Search as Wt, SearchInput as Ht, SearchClear as Ut, SearchButton as Vt, Select as Ot, Skeleton as Kt, SkipLink as qt, EXPERIMENTAL_Suggestion as Yt, Switch as Zt, Table as Xt, Tabs as Jt, Tag as Qt, Textarea as en, Textfield as tn, ToggleGroup as nn, Tooltip as on, ValidationMessage as rn } from "@digdir/designsystemet-react";
4
4
  import { startOfMonth as ue, isValid as Ie, isSameMonth as Fe, startOfWeek as Ve, format as ke, addDays as Oe, subMonths as an, addMonths as sn, isSameDay as ln, isToday as dn, eachDayOfInterval as cn } from "date-fns";
5
5
  import pn from "embla-carousel-react";
6
6
  import { ChevronLeftIcon as mn, ChevronRightIcon as gn, ChevronDownIcon as Be, XMarkIcon as _e, MagnifyingGlassIcon as Ee, MenuHamburgerIcon as $e, HeartIcon as un } from "@navikt/aksel-icons";
@@ -10,7 +10,7 @@ const Ke = ie((n, e) => /* @__PURE__ */ t(tt, { ref: e, ...n }));
10
10
  Ke.displayName = "Avatar";
11
11
  const fn = ie((n, e) => /* @__PURE__ */ t(ot, { ref: e, ...n }));
12
12
  fn.displayName = "Badge";
13
- const Us = nt, Vs = rt, Os = it, Ks = at, qs = st;
13
+ const Os = nt, Ks = rt, qs = it, Ys = at, Zs = st;
14
14
  function kn() {
15
15
  return {
16
16
  "--dsc-button-background": "var(--ds-color-surface-tinted)",
@@ -22,18 +22,18 @@ function kn() {
22
22
  };
23
23
  }
24
24
  const ce = ie(function({ variant: e, shape: a, style: d, ...h }, f) {
25
- const m = {};
26
- e === "soft" && Object.assign(m, kn()), a === "pill" && (m.borderRadius = "var(--ds-border-radius-full)");
27
- const k = Object.keys(m).length === 0 && !d ? void 0 : { ...m, ...d }, D = {};
28
- return e !== void 0 && (D.variant = e), a === "pill" && (D["data-shape"] = "pill"), /* @__PURE__ */ t(Ne, { ref: f, ...h, ...D, style: k });
25
+ const g = {};
26
+ e === "soft" && Object.assign(g, kn()), a === "pill" && (g.borderRadius = "var(--ds-border-radius-full)");
27
+ const k = Object.keys(g).length === 0 && !d ? void 0 : { ...g, ...d }, D = {};
28
+ return e !== void 0 && (D.variant = e), a === "pill" && (D["data-shape"] = "pill"), /* @__PURE__ */ t(Me, { ref: f, ...h, ...D, style: k });
29
29
  });
30
30
  ce.displayName = "Button";
31
- const vn = lt, Ys = dt;
31
+ const vn = lt, Xs = dt;
32
32
  vn.displayName = "Card";
33
- const bn = ct, yn = Ue, Zs = pt;
33
+ const bn = ct, yn = Ue, Js = pt;
34
34
  bn.displayName = "Checkbox";
35
35
  yn.displayName = "Fieldset";
36
- const Xs = mt;
36
+ const Qs = mt;
37
37
  function De(n) {
38
38
  return (e = {}) => {
39
39
  const a = e.width ? String(e.width) : n.defaultWidth;
@@ -45,11 +45,11 @@ function ve(n) {
45
45
  const d = a != null && a.context ? String(a.context) : "standalone";
46
46
  let h;
47
47
  if (d === "formatting" && n.formattingValues) {
48
- const m = n.defaultFormattingWidth || n.defaultWidth, k = a != null && a.width ? String(a.width) : m;
49
- h = n.formattingValues[k] || n.formattingValues[m];
48
+ const g = n.defaultFormattingWidth || n.defaultWidth, k = a != null && a.width ? String(a.width) : g;
49
+ h = n.formattingValues[k] || n.formattingValues[g];
50
50
  } else {
51
- const m = n.defaultWidth, k = a != null && a.width ? String(a.width) : n.defaultWidth;
52
- h = n.values[k] || n.values[m];
51
+ const g = n.defaultWidth, k = a != null && a.width ? String(a.width) : n.defaultWidth;
52
+ h = n.values[k] || n.values[g];
53
53
  }
54
54
  const f = n.argumentCallback ? n.argumentCallback(e) : e;
55
55
  return h[f];
@@ -60,16 +60,16 @@ function be(n) {
60
60
  const d = a.width, h = d && n.matchPatterns[d] || n.matchPatterns[n.defaultMatchWidth], f = e.match(h);
61
61
  if (!f)
62
62
  return null;
63
- const m = f[0], k = d && n.parsePatterns[d] || n.parsePatterns[n.defaultParseWidth], D = Array.isArray(k) ? Tn(k, (_) => _.test(m)) : (
63
+ const g = f[0], k = d && n.parsePatterns[d] || n.parsePatterns[n.defaultParseWidth], D = Array.isArray(k) ? Tn(k, (_) => _.test(g)) : (
64
64
  // [TODO] -- I challenge you to fix the type
65
- xn(k, (_) => _.test(m))
65
+ xn(k, (_) => _.test(g))
66
66
  );
67
67
  let S;
68
68
  S = n.valueCallback ? n.valueCallback(D) : D, S = a.valueCallback ? (
69
69
  // [TODO] -- I challenge you to fix the type
70
70
  a.valueCallback(S)
71
71
  ) : S;
72
- const R = e.slice(m.length);
72
+ const R = e.slice(g.length);
73
73
  return { value: S, rest: R };
74
74
  };
75
75
  }
@@ -89,10 +89,10 @@ function Cn(n) {
89
89
  if (!d) return null;
90
90
  const h = d[0], f = e.match(n.parsePattern);
91
91
  if (!f) return null;
92
- let m = n.valueCallback ? n.valueCallback(f[0]) : f[0];
93
- m = a.valueCallback ? a.valueCallback(m) : m;
92
+ let g = n.valueCallback ? n.valueCallback(f[0]) : f[0];
93
+ g = a.valueCallback ? a.valueCallback(g) : g;
94
94
  const k = e.slice(h.length);
95
- return { value: m, rest: k };
95
+ return { value: g, rest: k };
96
96
  };
97
97
  }
98
98
  const wn = {
@@ -189,18 +189,18 @@ const wn = {
189
189
  formats: Dn,
190
190
  defaultWidth: "full"
191
191
  })
192
- }, jn = {
192
+ }, An = {
193
193
  lastWeek: "'forrige' eeee 'kl.' p",
194
194
  yesterday: "'i går kl.' p",
195
195
  today: "'i dag kl.' p",
196
196
  tomorrow: "'i morgen kl.' p",
197
197
  nextWeek: "EEEE 'kl.' p",
198
198
  other: "P"
199
- }, An = (n, e, a, d) => jn[n], Nn = {
199
+ }, Nn = (n, e, a, d) => An[n], Mn = {
200
200
  narrow: ["f.Kr.", "e.Kr."],
201
201
  abbreviated: ["f.Kr.", "e.Kr."],
202
202
  wide: ["før Kristus", "etter Kristus"]
203
- }, Mn = {
203
+ }, jn = {
204
204
  narrow: ["1", "2", "3", "4"],
205
205
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
206
206
  wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
@@ -281,11 +281,11 @@ const wn = {
281
281
  }, $n = (n, e) => Number(n) + ".", Pn = {
282
282
  ordinalNumber: $n,
283
283
  era: ve({
284
- values: Nn,
284
+ values: Mn,
285
285
  defaultWidth: "wide"
286
286
  }),
287
287
  quarter: ve({
288
- values: Mn,
288
+ values: jn,
289
289
  defaultWidth: "wide",
290
290
  argumentCallback: (n) => n - 1
291
291
  }),
@@ -408,7 +408,7 @@ const wn = {
408
408
  code: "nb",
409
409
  formatDistance: Sn,
410
410
  formatLong: Ln,
411
- formatRelative: An,
411
+ formatRelative: Nn,
412
412
  localize: Pn,
413
413
  match: Xn,
414
414
  options: {
@@ -2564,25 +2564,25 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2564
2564
  openDatePicker: "Open date picker"
2565
2565
  }
2566
2566
  }
2567
- }, Me = Je(void 0), Js = ({ children: n }) => {
2567
+ }, je = Je(void 0), ei = ({ children: n }) => {
2568
2568
  const [e, a] = O("NO"), d = (h) => {
2569
2569
  const f = h.split(".");
2570
- let m = co[e];
2570
+ let g = co[e];
2571
2571
  for (const k of f) {
2572
- if (m[k] === void 0)
2572
+ if (g[k] === void 0)
2573
2573
  return console.warn(`Translation missing for key: ${h} in language: ${e}`), h;
2574
- m = m[k];
2574
+ g = g[k];
2575
2575
  }
2576
- return m;
2576
+ return g;
2577
2577
  };
2578
- return /* @__PURE__ */ t(Me.Provider, { value: { language: e, setLanguage: a, t: d }, children: n });
2579
- }, Qs = () => {
2580
- const n = He(Me);
2578
+ return /* @__PURE__ */ t(je.Provider, { value: { language: e, setLanguage: a, t: d }, children: n });
2579
+ }, ti = () => {
2580
+ const n = He(je);
2581
2581
  if (n === void 0)
2582
2582
  throw new Error("useLanguage must be used within a LanguageProvider");
2583
2583
  return n;
2584
2584
  }, Te = () => {
2585
- const n = He(Me);
2585
+ const n = He(je);
2586
2586
  return n === void 0 ? {
2587
2587
  language: "NO",
2588
2588
  setLanguage: () => {
@@ -2657,44 +2657,44 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2657
2657
  }) => {
2658
2658
  const { t: f } = Te();
2659
2659
  z(() => {
2660
- const g = "rk-datepicker-inline-styles";
2661
- if (typeof document > "u" || document.getElementById(g)) return;
2660
+ const m = "rk-datepicker-inline-styles";
2661
+ if (typeof document > "u" || document.getElementById(m)) return;
2662
2662
  const M = go(ee), I = document.createElement("style");
2663
- I.id = g, I.textContent = M, document.head.appendChild(I);
2663
+ I.id = m, I.textContent = M, document.head.appendChild(I);
2664
2664
  }, []);
2665
- const [m, k] = O(
2665
+ const [g, k] = O(
2666
2666
  ue(e && Ie(e) ? e : n)
2667
2667
  );
2668
2668
  z(() => {
2669
2669
  if (e && Ie(e)) {
2670
- const g = ue(e);
2671
- Fe(g, m) || k(g);
2670
+ const m = ue(e);
2671
+ Fe(m, g) || k(m);
2672
2672
  }
2673
2673
  }, [e]);
2674
- const D = fe(() => ue(/* @__PURE__ */ new Date()), []), S = fe(() => !1, [m, D]), R = fe(
2675
- () => po(m),
2676
- [m]
2674
+ const D = fe(() => ue(/* @__PURE__ */ new Date()), []), S = fe(() => !1, [g, D]), R = fe(
2675
+ () => po(g),
2676
+ [g]
2677
2677
  ), _ = fe(() => {
2678
- const g = Ve(/* @__PURE__ */ new Date(), { locale: he });
2678
+ const m = Ve(/* @__PURE__ */ new Date(), { locale: he });
2679
2679
  return Array.from({ length: 7 }).map((M, I) => {
2680
- const F = ke(Oe(g, I), "EEEEEE", { locale: he });
2680
+ const F = ke(Oe(m, I), "EEEEEE", { locale: he });
2681
2681
  return Pe(F);
2682
2682
  });
2683
2683
  }, []), V = se(() => {
2684
- S || k((g) => ue(an(g, 1)));
2685
- }, [S]), A = se(() => {
2686
- k((g) => ue(sn(g, 1)));
2684
+ S || k((m) => ue(an(m, 1)));
2685
+ }, [S]), N = se(() => {
2686
+ k((m) => ue(sn(m, 1)));
2687
2687
  }, []), p = se(
2688
- (g) => {
2689
- a && a(g);
2688
+ (m) => {
2689
+ a && a(m);
2690
2690
  },
2691
2691
  [a]
2692
2692
  ), K = se(
2693
- (g, M) => {
2694
- (g.key === "Enter" || g.key === " ") && (g.preventDefault(), p(M));
2693
+ (m, M) => {
2694
+ (m.key === "Enter" || m.key === " ") && (m.preventDefault(), p(M));
2695
2695
  },
2696
2696
  [p]
2697
- ), X = ke(m, "MMMM", { locale: he }), j = ke(m, "yyyy", { locale: he }), q = `${Pe(X)} ${j}`;
2697
+ ), X = ke(g, "MMMM", { locale: he }), A = ke(g, "yyyy", { locale: he }), q = `${Pe(X)} ${A}`;
2698
2698
  return /* @__PURE__ */ r(
2699
2699
  "div",
2700
2700
  {
@@ -2706,7 +2706,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2706
2706
  /* @__PURE__ */ t("span", { className: ee.monthYear, children: q }),
2707
2707
  /* @__PURE__ */ r("div", { className: ee.navigationButtons, children: [
2708
2708
  /* @__PURE__ */ t(
2709
- Ne,
2709
+ Me,
2710
2710
  {
2711
2711
  variant: "tertiary",
2712
2712
  icon: !0,
@@ -2717,20 +2717,20 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2717
2717
  }
2718
2718
  ),
2719
2719
  /* @__PURE__ */ t(
2720
- Ne,
2720
+ Me,
2721
2721
  {
2722
2722
  variant: "tertiary",
2723
2723
  icon: !0,
2724
- onClick: A,
2724
+ onClick: N,
2725
2725
  "aria-label": f("datePicker.nextMonth"),
2726
2726
  children: /* @__PURE__ */ t(Ye, {})
2727
2727
  }
2728
2728
  )
2729
2729
  ] })
2730
2730
  ] }),
2731
- /* @__PURE__ */ t("div", { className: ee.grid, children: _.map((g) => /* @__PURE__ */ t("div", { className: ee.dayNameCell, children: g }, g)) }),
2732
- /* @__PURE__ */ t("div", { className: ee.grid, children: R.map((g) => {
2733
- const M = Fe(g, m), I = e && Ie(e) && ln(g, e), F = dn(g), N = [
2731
+ /* @__PURE__ */ t("div", { className: ee.grid, children: _.map((m) => /* @__PURE__ */ t("div", { className: ee.dayNameCell, children: m }, m)) }),
2732
+ /* @__PURE__ */ t("div", { className: ee.grid, children: R.map((m) => {
2733
+ const M = Fe(m, g), I = e && Ie(e) && ln(m, e), F = dn(m), j = [
2734
2734
  ee.dateCell,
2735
2735
  M ? "" : ee.otherMonth,
2736
2736
  I ? ee.selectedDate : "",
@@ -2740,16 +2740,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2740
2740
  return /* @__PURE__ */ t(
2741
2741
  "div",
2742
2742
  {
2743
- className: N,
2744
- onClick: () => p(g),
2745
- onKeyDown: (L) => K(L, g),
2743
+ className: j,
2744
+ onClick: () => p(m),
2745
+ onKeyDown: (L) => K(L, m),
2746
2746
  role: "button",
2747
2747
  tabIndex: 0,
2748
2748
  "aria-pressed": I ?? !1,
2749
- "aria-label": ke(g, "PPP", { locale: he }),
2750
- children: /* @__PURE__ */ t("span", { className: ee.dateNumberContainer, children: ke(g, "d") })
2749
+ "aria-label": ke(m, "PPP", { locale: he }),
2750
+ children: /* @__PURE__ */ t("span", { className: ee.dateNumberContainer, children: ke(m, "d") })
2751
2751
  },
2752
- g.toISOString()
2752
+ m.toISOString()
2753
2753
  );
2754
2754
  }) })
2755
2755
  ]
@@ -2952,7 +2952,7 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
2952
2952
  label: d,
2953
2953
  suffixIcon: h,
2954
2954
  onSuffixClick: f,
2955
- className: m,
2955
+ className: g,
2956
2956
  // For ytre fieldset
2957
2957
  inputWrapperClassName: k,
2958
2958
  // For input wrapper div
@@ -2962,19 +2962,19 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
2962
2962
  defaultValue: R,
2963
2963
  onChange: _,
2964
2964
  readOnly: V,
2965
- placeholder: A = "dd.mm.åååå",
2965
+ placeholder: N = "dd.mm.åååå",
2966
2966
  id: p,
2967
2967
  name: K,
2968
2968
  required: X,
2969
- disabled: j,
2969
+ disabled: A,
2970
2970
  onClick: q,
2971
- onFocus: g,
2971
+ onFocus: m,
2972
2972
  // Send ekstern onFocus videre
2973
2973
  onBlur: M,
2974
2974
  // Send ekstern onBlur videre
2975
2975
  autoComplete: I = "off",
2976
2976
  "aria-label": F,
2977
- "aria-labelledby": N,
2977
+ "aria-labelledby": j,
2978
2978
  description: L,
2979
2979
  error: G,
2980
2980
  // Bruk error-prop for styling
@@ -2984,7 +2984,7 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
2984
2984
  // <-- Destrukturering
2985
2985
  ...J
2986
2986
  } = n, T = S !== void 0, b = Qe(null);
2987
- Ae.useImperativeHandle(
2987
+ Ne.useImperativeHandle(
2988
2988
  e,
2989
2989
  () => b.current
2990
2990
  );
@@ -2994,13 +2994,13 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
2994
2994
  return ze($);
2995
2995
  },
2996
2996
  []
2997
- ), [C, E] = O(
2997
+ ), [C, B] = O(
2998
2998
  () => l(S ?? R)
2999
2999
  );
3000
3000
  z(() => {
3001
3001
  if (T) {
3002
3002
  const c = l(S);
3003
- c !== C && (E(c), b.current && b.current.value !== c && (b.current.value = c));
3003
+ c !== C && (B(c), b.current && b.current.value !== c && (b.current.value = c));
3004
3004
  }
3005
3005
  }, [S, T, C, l]);
3006
3006
  const Y = se(
@@ -3009,7 +3009,7 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
3009
3009
  let u = 0;
3010
3010
  const x = pe.length;
3011
3011
  x <= 2 ? u = x : x <= 4 ? u = x + 1 : u = x + 2, u = Math.min(u, i.length), requestAnimationFrame(() => {
3012
- if (b.current && (E(i), b.current.value = i, b.current.setSelectionRange(u, u), (i !== oe || T) && _)) {
3012
+ if (b.current && (B(i), b.current.value = i, b.current.setSelectionRange(u, u), (i !== oe || T) && _)) {
3013
3013
  const ae = {
3014
3014
  ...c,
3015
3015
  target: { ...w, value: i }
@@ -3019,7 +3019,7 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
3019
3019
  });
3020
3020
  },
3021
3021
  [C, T, _, l]
3022
- ), y = [de.fieldset, m].filter(Boolean).join(" "), B = [
3022
+ ), y = [de.fieldset, g].filter(Boolean).join(" "), E = [
3023
3023
  de.inputWrapper,
3024
3024
  k,
3025
3025
  G ? de.inputWrapperError : ""
@@ -3029,8 +3029,8 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
3029
3029
  de.suffixButton,
3030
3030
  f ? de.suffixButtonInteractive : ""
3031
3031
  ].filter(Boolean).join(" ");
3032
- !d && !F && !N && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
3033
- const v = d && typeof d == "string" ? N || `${p}-label` : void 0, Z = L ? `${p}-desc` : void 0, me = G ? `${p}-err` : void 0, ge = [Z, me].filter(Boolean).join(" ") || void 0;
3032
+ !d && !F && !j && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
3033
+ const v = d && typeof d == "string" ? j || `${p}-label` : void 0, Z = L ? `${p}-desc` : void 0, me = G ? `${p}-err` : void 0, ge = [Z, me].filter(Boolean).join(" ") || void 0;
3034
3034
  return (
3035
3035
  // --- Bruk data-color og data-size på den ytre wrapperen ---
3036
3036
  /* @__PURE__ */ r(
@@ -3042,7 +3042,7 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
3042
3042
  children: [
3043
3043
  d && typeof d == "string" ? /* @__PURE__ */ t("label", { id: v, htmlFor: p, children: d }) : d,
3044
3044
  L && /* @__PURE__ */ t("p", { id: Z, className: de.description, children: L }),
3045
- /* @__PURE__ */ r("div", { className: B, children: [
3045
+ /* @__PURE__ */ r("div", { className: E, children: [
3046
3046
  /* @__PURE__ */ t(
3047
3047
  "input",
3048
3048
  {
@@ -3053,14 +3053,14 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
3053
3053
  maxLength: 10,
3054
3054
  value: C,
3055
3055
  readOnly: V,
3056
- placeholder: A,
3056
+ placeholder: N,
3057
3057
  id: p,
3058
3058
  name: K,
3059
3059
  required: X,
3060
- disabled: j,
3060
+ disabled: A,
3061
3061
  onClick: q,
3062
3062
  onChange: Y,
3063
- onFocus: g,
3063
+ onFocus: m,
3064
3064
  onBlur: M,
3065
3065
  autoComplete: I,
3066
3066
  "aria-label": F,
@@ -3076,10 +3076,10 @@ const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7
3076
3076
  {
3077
3077
  type: "button",
3078
3078
  className: le,
3079
- onClick: j ? void 0 : f,
3080
- tabIndex: f && !j ? 0 : -1,
3079
+ onClick: A ? void 0 : f,
3080
+ tabIndex: f && !A ? 0 : -1,
3081
3081
  "aria-hidden": !f,
3082
- disabled: j,
3082
+ disabled: A,
3083
3083
  "aria-label": f ? a("dateInput.openDatePicker") : void 0,
3084
3084
  children: h
3085
3085
  }
@@ -3186,7 +3186,7 @@ function To(n) {
3186
3186
  }
3187
3187
  `;
3188
3188
  }
3189
- const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slides_eo3g5_20", Io = "_slide_eo3g5_20", _o = "_slideInner_eo3g5_40", Do = "_loaderOverlay_eo3g5_48", Lo = "_image_eo3g5_58", jo = "_loaded_eo3g5_69", Ao = "_loading_eo3g5_73", No = "_empty_eo3g5_81", Mo = "_controls_eo3g5_87", Fo = "_arrows_eo3g5_97", Bo = "_dots_eo3g5_107", Eo = "_dot_eo3g5_107", $o = "_dotActive_eo3g5_133", W = {
3189
+ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slides_eo3g5_20", Io = "_slide_eo3g5_20", _o = "_slideInner_eo3g5_40", Do = "_loaderOverlay_eo3g5_48", Lo = "_image_eo3g5_58", Ao = "_loaded_eo3g5_69", No = "_loading_eo3g5_73", Mo = "_empty_eo3g5_81", jo = "_controls_eo3g5_87", Fo = "_arrows_eo3g5_97", Bo = "_dots_eo3g5_107", Eo = "_dot_eo3g5_107", $o = "_dotActive_eo3g5_133", W = {
3190
3190
  carouselContainer: Co,
3191
3191
  viewport: wo,
3192
3192
  slides: So,
@@ -3194,10 +3194,10 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3194
3194
  slideInner: _o,
3195
3195
  loaderOverlay: Do,
3196
3196
  image: Lo,
3197
- loaded: jo,
3198
- loading: Ao,
3199
- empty: No,
3200
- controls: Mo,
3197
+ loaded: Ao,
3198
+ loading: No,
3199
+ empty: Mo,
3200
+ controls: jo,
3201
3201
  arrows: Fo,
3202
3202
  dots: Bo,
3203
3203
  dot: Eo,
@@ -3209,7 +3209,7 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3209
3209
  showArrows: d = !0,
3210
3210
  showDots: h = !0,
3211
3211
  variant: f,
3212
- slidesPerView: m = 1,
3212
+ slidesPerView: g = 1,
3213
3213
  slideSpacing: k = 16,
3214
3214
  cornerRadius: D = 0,
3215
3215
  "data-color": S,
@@ -3227,7 +3227,7 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3227
3227
  align: "start",
3228
3228
  containScroll: "trimSnaps",
3229
3229
  slidesToScroll: 1
3230
- }, [A, p] = pn(V), [K, X] = O(0), [j, q] = O([]), [g, M] = O([]);
3230
+ }, [N, p] = pn(V), [K, X] = O(0), [A, q] = O([]), [m, M] = O([]);
3231
3231
  z(() => {
3232
3232
  M(new Array((n == null ? void 0 : n.length) || 0).fill(!1));
3233
3233
  }, [n]);
@@ -3236,17 +3236,17 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3236
3236
  const C = [...l];
3237
3237
  return C[b] = !0, C;
3238
3238
  });
3239
- }, []), F = fe(() => a * 1e3, [a]), N = se(() => {
3239
+ }, []), F = fe(() => a * 1e3, [a]), j = se(() => {
3240
3240
  p && X(p.selectedScrollSnap());
3241
3241
  }, [p]), L = se((b) => p && p.scrollTo(b), [p]), G = se(() => p && p.scrollPrev(), [p]), ne = se(() => p && p.scrollNext(), [p]);
3242
3242
  z(() => {
3243
3243
  if (p)
3244
- return p.on("select", N), p.on("reInit", N), q(p.scrollSnapList()), () => {
3245
- p.off("select", N), p.off("reInit", N);
3244
+ return p.on("select", j), p.on("reInit", j), q(p.scrollSnapList()), () => {
3245
+ p.off("select", j), p.off("reInit", j);
3246
3246
  };
3247
- }, [p, N]), z(() => {
3247
+ }, [p, j]), z(() => {
3248
3248
  p && (p.reInit(), q(p.scrollSnapList()));
3249
- }, [p, n, m, k]), z(() => {
3249
+ }, [p, n, g, k]), z(() => {
3250
3250
  if (!e || !p || !n || n.length <= 1) return;
3251
3251
  const b = window.setInterval(() => {
3252
3252
  p.canScrollNext() && p.scrollNext();
@@ -3255,7 +3255,7 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3255
3255
  window.clearInterval(b);
3256
3256
  };
3257
3257
  }, [e, F, p, n]);
3258
- const H = Math.max(1, m), J = `${100 / H}%`, T = k / 2;
3258
+ const H = Math.max(1, g), J = `${100 / H}%`, T = k / 2;
3259
3259
  return /* @__PURE__ */ r(
3260
3260
  "div",
3261
3261
  {
@@ -3264,7 +3264,7 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3264
3264
  "data-size": R,
3265
3265
  "data-variant": f,
3266
3266
  children: [
3267
- /* @__PURE__ */ t("div", { className: W.viewport, ref: A, children: /* @__PURE__ */ t(
3267
+ /* @__PURE__ */ t("div", { className: W.viewport, ref: N, children: /* @__PURE__ */ t(
3268
3268
  "div",
3269
3269
  {
3270
3270
  className: W.slides,
@@ -3285,11 +3285,11 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3285
3285
  // Ensure radius clips content
3286
3286
  },
3287
3287
  children: /* @__PURE__ */ r("div", { className: W.slideInner, style: { borderRadius: `${D}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
3288
- !g[l] && /* @__PURE__ */ t("div", { className: W.loaderOverlay, children: /* @__PURE__ */ t(Po, { "aria-label": _("carousel.loading") }) }),
3288
+ !m[l] && /* @__PURE__ */ t("div", { className: W.loaderOverlay, children: /* @__PURE__ */ t(Po, { "aria-label": _("carousel.loading") }) }),
3289
3289
  /* @__PURE__ */ t(
3290
3290
  "img",
3291
3291
  {
3292
- className: `${W.image} ${g[l] ? W.loaded : W.loadingImage}`,
3292
+ className: `${W.image} ${m[l] ? W.loaded : W.loadingImage}`,
3293
3293
  src: b.src,
3294
3294
  alt: b.alt,
3295
3295
  loading: l < H ? "eager" : "lazy",
@@ -3331,7 +3331,7 @@ const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slide
3331
3331
  }
3332
3332
  )
3333
3333
  ] }),
3334
- h && n && n.length > 1 && /* @__PURE__ */ t("div", { className: W.dots, role: "tablist", "aria-label": _("carousel.imagePosition"), children: j.map((b, l) => {
3334
+ h && n && n.length > 1 && /* @__PURE__ */ t("div", { className: W.dots, role: "tablist", "aria-label": _("carousel.imagePosition"), children: A.map((b, l) => {
3335
3335
  const C = l === K;
3336
3336
  return /* @__PURE__ */ t(
3337
3337
  "button",
@@ -3572,14 +3572,14 @@ const Uo = {
3572
3572
  "aria-label": d,
3573
3573
  "aria-hidden": h = !0,
3574
3574
  "data-color": f,
3575
- "data-size": m,
3575
+ "data-size": g,
3576
3576
  ...k
3577
3577
  }, D) => {
3578
3578
  z(() => {
3579
3579
  const _ = "rk-crosscorner-inline-styles";
3580
3580
  if (typeof document > "u" || document.getElementById(_)) return;
3581
- const V = Ho(Le), A = document.createElement("style");
3582
- A.id = _, A.textContent = V, document.head.appendChild(A);
3581
+ const V = Ho(Le), N = document.createElement("style");
3582
+ N.id = _, N.textContent = V, document.head.appendChild(N);
3583
3583
  }, []);
3584
3584
  const S = Uo[e], R = Vo[n];
3585
3585
  return /* @__PURE__ */ t(
@@ -3596,7 +3596,7 @@ const Uo = {
3596
3596
  "aria-hidden": h,
3597
3597
  role: h ? void 0 : "img",
3598
3598
  "data-color": f,
3599
- "data-size": m,
3599
+ "data-size": g,
3600
3600
  style: {
3601
3601
  transform: R ? `rotate(${R}deg)` : void 0
3602
3602
  },
@@ -3613,37 +3613,37 @@ const Uo = {
3613
3613
  }
3614
3614
  );
3615
3615
  ye.displayName = "CrossCorner";
3616
- const ei = ut, ti = ht, ni = ft, U = kt, oi = Tt, ri = Ct, ai = bt, si = xt, ii = yt, li = vt, di = wt, ci = St, Oo = _t, Ko = It;
3616
+ const ni = ut, oi = ht, ri = ft, U = kt, ai = Tt, si = Ct, ii = bt, li = xt, di = yt, ci = vt, pi = wt, mi = St, Oo = _t, Ko = It;
3617
3617
  Oo.displayName = "Field.Description";
3618
3618
  Ko.displayName = "Field.Counter";
3619
- const pi = Ue, qo = ie((n, e) => /* @__PURE__ */ t(Dt, { ref: e, ...n }));
3619
+ const gi = Ue, qo = ie((n, e) => /* @__PURE__ */ t(Dt, { ref: e, ...n }));
3620
3620
  qo.displayName = "Heading";
3621
3621
  const Ze = Lt;
3622
3622
  Ze.displayName = "Input";
3623
- const Yo = ie((n, e) => /* @__PURE__ */ t(jt, { ref: e, ...n }));
3623
+ const Yo = ie((n, e) => /* @__PURE__ */ t(At, { ref: e, ...n }));
3624
3624
  Yo.displayName = "Label";
3625
- const te = At, mi = Nt, Zo = Mt, gi = Et, ui = Bt, hi = Ft, fi = $t;
3625
+ const te = Nt, ui = Mt, Zo = jt, hi = Et, fi = Bt, ki = Ft, vi = $t;
3626
3626
  Zo.displayName = "Pagination";
3627
3627
  const xe = ie(
3628
3628
  (n, e) => /* @__PURE__ */ t(Pt, { ref: e, ...n })
3629
3629
  );
3630
3630
  xe.displayName = "Paragraph";
3631
- const ki = zt, vi = Rt, bi = Gt, Ce = Object.assign(Wt, {
3631
+ const bi = zt, yi = Rt, xi = Gt, Ce = Object.assign(Wt, {
3632
3632
  Button: Vt,
3633
3633
  ClearButton: Ut,
3634
3634
  Input: Ht
3635
- }), yi = Ot, xi = Kt, Ti = qt, Xo = Yt;
3635
+ }), Ti = Ot, Ci = Kt, wi = qt, Xo = Yt;
3636
3636
  Xo.displayName = "Suggestion";
3637
- const je = Zt, Ci = Xt, we = Jt, Jo = ie(function({ shape: e, style: a, ...d }, h) {
3637
+ const Ae = Zt, Si = Xt, we = Jt, Jo = ie(function({ shape: e, style: a, ...d }, h) {
3638
3638
  const f = {};
3639
3639
  e === "rounded" && (f.borderRadius = "var(--ds-border-radius-xl)");
3640
- const m = Object.keys(f).length === 0 && !a ? void 0 : { ...f, ...a }, k = {};
3641
- return e === "rounded" && (k["data-shape"] = "rounded"), /* @__PURE__ */ t(Qt, { ref: h, ...d, ...k, style: m });
3640
+ const g = Object.keys(f).length === 0 && !a ? void 0 : { ...f, ...a }, k = {};
3641
+ return e === "rounded" && (k["data-shape"] = "rounded"), /* @__PURE__ */ t(Qt, { ref: h, ...d, ...k, style: g });
3642
3642
  });
3643
3643
  Jo.displayName = "Tag";
3644
- const wi = en, Qo = tn, Si = nn, Ii = on, er = ie((n, e) => /* @__PURE__ */ t(rn, { ref: e, ...n }));
3644
+ const Ii = en, Qo = tn, _i = nn, Di = on, er = ie((n, e) => /* @__PURE__ */ t(rn, { ref: e, ...n }));
3645
3645
  er.displayName = "ValidationMessage";
3646
- const tr = "_header_1h8vy_1", nr = "_languageSwitch_1h8vy_37", or = "_searchOverlay_1h8vy_41", rr = "_headerExtension_1h8vy_46", ar = "_headerExtensionTinted_1h8vy_75", sr = "_languageLabel_1h8vy_83", ir = "_languageLink_1h8vy_88", lr = "_extensionContent_1h8vy_93", dr = "_extensionDivider_1h8vy_98", cr = "_extensionContentWrapper_1h8vy_103", pr = "_headerInner_1h8vy_199", mr = "_logoWrapper_1h8vy_216", gr = "_logo_1h8vy_216", ur = "_secondaryLogoWrapper_1h8vy_239", hr = "_slotComponent_1h8vy_248", fr = "_slotContainer_1h8vy_258", kr = "_slotText_1h8vy_266", vr = "_secondaryLogo_1h8vy_239", br = "_redCrossLogo_1h8vy_293", yr = "_primaryLogo_1h8vy_299", xr = "_navItems_1h8vy_303", Tr = "_navLink_1h8vy_312", Cr = "_actions_1h8vy_325", wr = "_ctaButton_1h8vy_333", Sr = "_themeToggle_1h8vy_338", Ir = "_userInfo_1h8vy_343", _r = "_userName_1h8vy_349", Dr = "_loginLink_1h8vy_356", Lr = "_loginText_1h8vy_365", jr = "_underline_1h8vy_372", Ar = "_searchButtonWrapper_1h8vy_378", Nr = "_buttonText_1h8vy_382", Mr = "_menuButton_1h8vy_387", Fr = "_menuOverlay_1h8vy_410", Br = "_searchContent_1h8vy_444", Er = "_menuContent_1h8vy_454", $r = "_menuLeftColumn_1h8vy_463", Pr = "_menuRightColumn_1h8vy_469", zr = "_slotContent_1h8vy_483", Rr = "_navList_1h8vy_496", Gr = "_menuUtilities_1h8vy_503", Wr = "_menuBrand_1h8vy_510", Hr = "_suggestionsSection_1h8vy_514", Ur = "_suggestionsTitle_1h8vy_520", Vr = "_searchResults_1h8vy_529", Or = "_resultList_1h8vy_535", Kr = "_resultItem_1h8vy_541", qr = "_resultLink_1h8vy_549", Yr = "_suggestionIcon_1h8vy_563", Zr = "_suggestionText_1h8vy_576", Xr = "_highlightedText_1h8vy_583", Jr = "_remainingText_1h8vy_588", Qr = "_viewAllLink_1h8vy_601", ea = "_noResults_1h8vy_636", s = {
3646
+ const tr = "_header_1h8vy_1", nr = "_languageSwitch_1h8vy_37", or = "_searchOverlay_1h8vy_41", rr = "_headerExtension_1h8vy_46", ar = "_headerExtensionTinted_1h8vy_75", sr = "_languageLabel_1h8vy_83", ir = "_languageLink_1h8vy_88", lr = "_extensionContent_1h8vy_93", dr = "_extensionDivider_1h8vy_98", cr = "_extensionContentWrapper_1h8vy_103", pr = "_headerInner_1h8vy_199", mr = "_logoWrapper_1h8vy_216", gr = "_logo_1h8vy_216", ur = "_secondaryLogoWrapper_1h8vy_239", hr = "_slotComponent_1h8vy_248", fr = "_slotContainer_1h8vy_258", kr = "_slotText_1h8vy_266", vr = "_secondaryLogo_1h8vy_239", br = "_redCrossLogo_1h8vy_293", yr = "_primaryLogo_1h8vy_299", xr = "_navItems_1h8vy_303", Tr = "_navLink_1h8vy_312", Cr = "_actions_1h8vy_325", wr = "_ctaButton_1h8vy_333", Sr = "_themeToggle_1h8vy_338", Ir = "_userInfo_1h8vy_343", _r = "_userName_1h8vy_349", Dr = "_loginLink_1h8vy_356", Lr = "_loginText_1h8vy_365", Ar = "_underline_1h8vy_372", Nr = "_searchButtonWrapper_1h8vy_378", Mr = "_buttonText_1h8vy_382", jr = "_menuButton_1h8vy_387", Fr = "_menuOverlay_1h8vy_410", Br = "_searchContent_1h8vy_444", Er = "_menuContent_1h8vy_454", $r = "_menuLeftColumn_1h8vy_463", Pr = "_menuRightColumn_1h8vy_469", zr = "_slotContent_1h8vy_483", Rr = "_navList_1h8vy_496", Gr = "_menuUtilities_1h8vy_503", Wr = "_menuBrand_1h8vy_510", Hr = "_suggestionsSection_1h8vy_514", Ur = "_suggestionsTitle_1h8vy_520", Vr = "_searchResults_1h8vy_529", Or = "_resultList_1h8vy_535", Kr = "_resultItem_1h8vy_541", qr = "_resultLink_1h8vy_549", Yr = "_suggestionIcon_1h8vy_563", Zr = "_suggestionText_1h8vy_576", Xr = "_highlightedText_1h8vy_583", Jr = "_remainingText_1h8vy_588", Qr = "_viewAllLink_1h8vy_601", ea = "_noResults_1h8vy_636", s = {
3647
3647
  header: tr,
3648
3648
  languageSwitch: nr,
3649
3649
  searchOverlay: or,
@@ -3673,10 +3673,10 @@ const tr = "_header_1h8vy_1", nr = "_languageSwitch_1h8vy_37", or = "_searchOver
3673
3673
  userName: _r,
3674
3674
  loginLink: Dr,
3675
3675
  loginText: Lr,
3676
- underline: jr,
3677
- searchButtonWrapper: Ar,
3678
- buttonText: Nr,
3679
- menuButton: Mr,
3676
+ underline: Ar,
3677
+ searchButtonWrapper: Nr,
3678
+ buttonText: Mr,
3679
+ menuButton: jr,
3680
3680
  menuOverlay: Fr,
3681
3681
  searchContent: Br,
3682
3682
  menuContent: Er,
@@ -3765,38 +3765,38 @@ const tr = "_header_1h8vy_1", nr = "_languageSwitch_1h8vy_37", or = "_searchOver
3765
3765
  function na(n) {
3766
3766
  return n.split(/\s+/).map((e) => e[0] ?? "").join("").slice(0, 2).toUpperCase();
3767
3767
  }
3768
- const _i = ({
3768
+ const Li = ({
3769
3769
  variant: n = "default",
3770
3770
  "data-color": e = "primary",
3771
3771
  activePage: a,
3772
3772
  setPage: d,
3773
3773
  children: h,
3774
3774
  showUser: f = !0,
3775
- showSearch: m = !0,
3775
+ showSearch: g = !0,
3776
3776
  showLogin: k = !0,
3777
3777
  showCta: D = !1,
3778
3778
  ctaLabel: S,
3779
3779
  ctaIcon: R = /* @__PURE__ */ t(un, { "aria-hidden": !0 }),
3780
3780
  onCtaClick: _,
3781
3781
  showThemeToggle: V = !1,
3782
- secondaryLogo: A = !1,
3782
+ secondaryLogo: N = !1,
3783
3783
  secondaryLogoSrc: p,
3784
3784
  secondaryLogoSrcDark: K,
3785
3785
  secondaryLogoAlt: X = "Secondary Logo",
3786
- navItems: j,
3786
+ navItems: A,
3787
3787
  showNavItems: q = !0,
3788
- showMenuButton: g = !0,
3788
+ showMenuButton: m = !0,
3789
3789
  showHeaderExtension: M = !1,
3790
3790
  showModeToggle: I = !1,
3791
3791
  showLanguageSwitch: F = !1,
3792
- extensionColor: N,
3792
+ extensionColor: j,
3793
3793
  buttonStyle: L = "default",
3794
3794
  userName: G,
3795
3795
  userInitials: ne,
3796
3796
  userAvatarSrc: H,
3797
3797
  onUserClick: J
3798
3798
  }) => {
3799
- const [T, b] = O(!1), [l, C] = O(!1), [E, Y] = O(""), [y, B] = O("light"), { language: Q, setLanguage: le, t: v } = Te(), [Z, me] = O(!1);
3799
+ const [T, b] = O(!1), [l, C] = O(!1), [B, Y] = O(""), [y, E] = O("light"), { language: Q, setLanguage: le, t: v } = Te(), [Z, me] = O(!1);
3800
3800
  z(() => {
3801
3801
  const i = "rk-header-inline-styles";
3802
3802
  if (typeof document > "u" || document.getElementById(i)) return;
@@ -3886,7 +3886,7 @@ const _i = ({
3886
3886
  }, [l]);
3887
3887
  const c = () => {
3888
3888
  const i = y === "light" ? "dark" : "light";
3889
- B(i), document.documentElement.setAttribute("data-color-scheme", i);
3889
+ E(i), document.documentElement.setAttribute("data-color-scheme", i);
3890
3890
  }, w = (i) => {
3891
3891
  d && (i.preventDefault(), d("home")), b(!1), C(!1);
3892
3892
  }, $ = () => {
@@ -3900,18 +3900,18 @@ const _i = ({
3900
3900
  }, oe = () => {
3901
3901
  C(!l), T && b(!1);
3902
3902
  }, re = fe(() => {
3903
- if (!E.trim()) return [];
3904
- const i = E.toLowerCase();
3903
+ if (!B.trim()) return [];
3904
+ const i = B.toLowerCase();
3905
3905
  return ta.filter(
3906
3906
  (u) => u.title.toLowerCase().startsWith(i)
3907
3907
  );
3908
- }, [E]), pe = (i) => {
3908
+ }, [B]), pe = (i) => {
3909
3909
  d && d(i), C(!1), Y("");
3910
3910
  };
3911
3911
  return /* @__PURE__ */ r("header", { className: s.header, "data-open": T ? "true" : "false", "data-color": e, "data-button-style": L, "data-variant": n, children: [
3912
- M && /* @__PURE__ */ t("div", { className: `${s.headerExtension}${N === "tinted" ? ` ${s.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": N, children: /* @__PURE__ */ r("div", { className: s.extensionContentWrapper, children: [
3912
+ M && /* @__PURE__ */ t("div", { className: `${s.headerExtension}${j === "tinted" ? ` ${s.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": j, children: /* @__PURE__ */ r("div", { className: s.extensionContentWrapper, children: [
3913
3913
  I && /* @__PURE__ */ t("div", { className: s.extensionContent, children: /* @__PURE__ */ t(
3914
- je,
3914
+ Ae,
3915
3915
  {
3916
3916
  "data-size": "sm",
3917
3917
  checked: y === "dark",
@@ -3964,16 +3964,16 @@ const _i = ({
3964
3964
  children: /* @__PURE__ */ t(ge, {})
3965
3965
  }
3966
3966
  ),
3967
- /* @__PURE__ */ t("div", { className: s.secondaryLogoWrapper, children: A && p ? /* @__PURE__ */ t(
3967
+ /* @__PURE__ */ t("div", { className: s.secondaryLogoWrapper, children: N && p ? /* @__PURE__ */ t(
3968
3968
  "img",
3969
3969
  {
3970
3970
  src: y === "dark" && K ? K : p,
3971
3971
  alt: X,
3972
3972
  className: s.secondaryLogo
3973
3973
  }
3974
- ) : A ? /* @__PURE__ */ t("div", { className: s.slotComponent, children: /* @__PURE__ */ t("div", { className: s.slotContainer, children: /* @__PURE__ */ t("p", { className: s.slotText, children: "SLOT" }) }) }) : null })
3974
+ ) : N ? /* @__PURE__ */ t("div", { className: s.slotComponent, children: /* @__PURE__ */ t("div", { className: s.slotContainer, children: /* @__PURE__ */ t("p", { className: s.slotText, children: "SLOT" }) }) }) : null })
3975
3975
  ] }),
3976
- q && j && j.length > 0 && !Z && /* @__PURE__ */ t("nav", { className: s.navItems, children: j.map((i, u) => /* @__PURE__ */ t(
3976
+ q && A && A.length > 0 && !Z && /* @__PURE__ */ t("nav", { className: s.navItems, children: A.map((i, u) => /* @__PURE__ */ t(
3977
3977
  te,
3978
3978
  {
3979
3979
  href: i.href,
@@ -4001,7 +4001,7 @@ const _i = ({
4001
4001
  }
4002
4002
  ),
4003
4003
  !M && V && /* @__PURE__ */ t("div", { className: s.themeToggle, children: /* @__PURE__ */ t(
4004
- je,
4004
+ Ae,
4005
4005
  {
4006
4006
  checked: y === "dark",
4007
4007
  onChange: c,
@@ -4048,7 +4048,7 @@ const _i = ({
4048
4048
  /* @__PURE__ */ t(xe, { "data-size": "md", className: s.loginText, children: v("header.login") }),
4049
4049
  /* @__PURE__ */ t("div", { className: s.underline })
4050
4050
  ] }),
4051
- m && /* @__PURE__ */ t("div", { className: s.searchButtonWrapper, children: /* @__PURE__ */ r(
4051
+ g && /* @__PURE__ */ t("div", { className: s.searchButtonWrapper, children: /* @__PURE__ */ r(
4052
4052
  ce,
4053
4053
  {
4054
4054
  variant: "secondary",
@@ -4064,7 +4064,7 @@ const _i = ({
4064
4064
  ]
4065
4065
  }
4066
4066
  ) }),
4067
- (g || Z) && /* @__PURE__ */ t(
4067
+ (m || Z) && /* @__PURE__ */ t(
4068
4068
  ce,
4069
4069
  {
4070
4070
  variant: L === "soft" ? "soft" : "primary",
@@ -4120,7 +4120,7 @@ const _i = ({
4120
4120
  ] })
4121
4121
  ] }),
4122
4122
  I && /* @__PURE__ */ t("div", { className: s.extensionContent, children: /* @__PURE__ */ t(
4123
- je,
4123
+ Ae,
4124
4124
  {
4125
4125
  "data-size": "sm",
4126
4126
  checked: y === "dark",
@@ -4133,7 +4133,7 @@ const _i = ({
4133
4133
  ] }),
4134
4134
  /* @__PURE__ */ r("div", { className: s.slotContent, children: [
4135
4135
  h,
4136
- Z && q && j && j.length > 0 && /* @__PURE__ */ t("nav", { className: s.navList, children: j.map((i, u) => /* @__PURE__ */ t(
4136
+ Z && q && A && A.length > 0 && /* @__PURE__ */ t("nav", { className: s.navList, children: A.map((i, u) => /* @__PURE__ */ t(
4137
4137
  te,
4138
4138
  {
4139
4139
  href: i.href,
@@ -4156,14 +4156,14 @@ const _i = ({
4156
4156
  {
4157
4157
  "aria-label": v("header.search"),
4158
4158
  placeholder: v("header.searchPlaceholder"),
4159
- value: E,
4159
+ value: B,
4160
4160
  onChange: (i) => Y(i.target.value)
4161
4161
  }
4162
4162
  ),
4163
4163
  /* @__PURE__ */ t(Ce.Button, { "aria-label": v("header.search") }),
4164
4164
  /* @__PURE__ */ t(Ce.ClearButton, { onClick: () => Y(""), "aria-label": v("header.clearSearch") })
4165
4165
  ] }),
4166
- E && /* @__PURE__ */ t("div", { className: s.searchResults, children: re.length > 0 ? /* @__PURE__ */ r("div", { className: s.suggestionsSection, children: [
4166
+ B && /* @__PURE__ */ t("div", { className: s.searchResults, children: re.length > 0 ? /* @__PURE__ */ r("div", { className: s.suggestionsSection, children: [
4167
4167
  /* @__PURE__ */ t("h3", { className: s.suggestionsTitle, children: v("header.suggestions") }),
4168
4168
  /* @__PURE__ */ t("ul", { className: s.resultList, children: re.slice(0, 5).map((i) => /* @__PURE__ */ t("li", { className: s.resultItem, children: /* @__PURE__ */ r(
4169
4169
  "button",
@@ -4173,9 +4173,9 @@ const _i = ({
4173
4173
  children: [
4174
4174
  /* @__PURE__ */ t("span", { className: s.suggestionIcon, children: /* @__PURE__ */ t(Ee, { "aria-hidden": !0 }) }),
4175
4175
  /* @__PURE__ */ t("span", { className: s.suggestionText, children: (() => {
4176
- const u = i.title.toLowerCase().indexOf(E.toLowerCase());
4176
+ const u = i.title.toLowerCase().indexOf(B.toLowerCase());
4177
4177
  if (u === -1) return /* @__PURE__ */ t("span", { className: s.remainingText, children: i.title });
4178
- const x = i.title.slice(0, u), ae = i.title.slice(u, u + E.length), Xe = i.title.slice(u + E.length);
4178
+ const x = i.title.slice(0, u), ae = i.title.slice(u, u + B.length), Xe = i.title.slice(u + B.length);
4179
4179
  return /* @__PURE__ */ r(Se, { children: [
4180
4180
  /* @__PURE__ */ t("span", { className: s.remainingText, children: x }),
4181
4181
  /* @__PURE__ */ t("span", { className: s.highlightedText, children: ae }),
@@ -4192,7 +4192,7 @@ const _i = ({
4192
4192
  "data-color": "neutral",
4193
4193
  className: s.viewAllLink,
4194
4194
  onClick: (i) => {
4195
- i.preventDefault(), d && d(`search/${E}`), C(!1), Y("");
4195
+ i.preventDefault(), d && d(`search/${B}`), C(!1), Y("");
4196
4196
  },
4197
4197
  children: [
4198
4198
  v("header.viewAll"),
@@ -4205,7 +4205,7 @@ const _i = ({
4205
4205
  ] }) : /* @__PURE__ */ t("div", { className: s.noResults, children: /* @__PURE__ */ r(xe, { children: [
4206
4206
  v("header.noResults"),
4207
4207
  ' "',
4208
- E,
4208
+ B,
4209
4209
  '"'
4210
4210
  ] }) }) })
4211
4211
  ] }) })
@@ -4384,7 +4384,7 @@ function oa(n) {
4384
4384
  }
4385
4385
  `;
4386
4386
  }
4387
- const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_fj44n_25", ia = "_crossCornerTopRight_fj44n_35", la = "_crossCornerBottomLeft_fj44n_42", da = "_contentRow_fj44n_50", ca = "_newsletterSection_fj44n_60", pa = "_newsletterDescription_fj44n_67", ma = "_newsletterForm_fj44n_76", ga = "_newsletterInputGroup_fj44n_82", ua = "_newsletterInput_fj44n_82", ha = "_consentText_fj44n_93", fa = "_linksSection_fj44n_103", ka = "_linksColumn_fj44n_109", va = "_linksTitle_fj44n_116", ba = "_linksList_fj44n_127", ya = "_footerLink_fj44n_136", xa = "_divider_fj44n_158", Ta = "_contactSection_fj44n_166", Ca = "_contactColumn_fj44n_173", wa = "_contactTitle_fj44n_181", Sa = "_contactContent_fj44n_190", Ia = "_copyrightSection_fj44n_204", _a = "_copyrightText_fj44n_209", Da = "_whiteSection_fj44n_219", La = "_whiteContainer_fj44n_224", ja = "_whiteContent_fj44n_232", Aa = "_logo_fj44n_240", Na = "_redCrossLogo_fj44n_254", Ma = "_slotLarge_fj44n_260", Fa = "_contentRowContact_fj44n_315", Ba = "_socialLinksSection_fj44n_325", Ea = "_socialLinksTitle_fj44n_332", $a = "_socialLinksList_fj44n_343", Pa = "_socialLink_fj44n_325", za = "_socialLinkIcon_fj44n_376", Ra = "_contactPersonsSection_fj44n_391", Ga = "_contactPersonsTitle_fj44n_398", Wa = "_contactPersonsGrid_fj44n_409", Ha = "_contactPersonCard_fj44n_415", Ua = "_contactPersonName_fj44n_422", Va = "_contactPersonRole_fj44n_431", Oa = "_contactPersonDetails_fj44n_440", Ka = "_contactPersonLabel_fj44n_447", qa = "_contactPersonEmail_fj44n_451", Ya = "_contactPersonPhone_fj44n_452", Za = "_contactPersonAddress_fj44n_453", Xa = "_bottomRowContact_fj44n_474", Ja = "_legalLinksRow_fj44n_483", Qa = "_legalLink_fj44n_483", es = "_dpMain_fj44n_558", ts = "_dpContainer_fj44n_567", ns = "_dpColumns_fj44n_575", os = "_dpColumn_fj44n_575", rs = "_dpColTitle_fj44n_588", as = "_dpList_fj44n_596", ss = "_dpLink_fj44n_605", is = "_dpDivider_fj44n_619", ls = "_dpMeta_fj44n_627", ds = "_dpMetaCol_fj44n_633", cs = "_dpMetaTitle_fj44n_641", ps = "_dpMetaText_fj44n_649", ms = "_dpBottom_fj44n_657", gs = "_dpLegal_fj44n_665", us = "_dpLegalLink_fj44n_674", hs = "_dpCopyright_fj44n_686", o = {
4387
+ const ra = "_footer_12vvu_1", aa = "_mainSection_12vvu_7", sa = "_mainContainer_12vvu_25", ia = "_crossCornerTopRight_12vvu_35", la = "_crossCornerBottomLeft_12vvu_42", da = "_contentRow_12vvu_50", ca = "_newsletterSection_12vvu_60", pa = "_newsletterDescription_12vvu_67", ma = "_newsletterForm_12vvu_76", ga = "_newsletterInputGroup_12vvu_82", ua = "_newsletterInput_12vvu_82", ha = "_consentText_12vvu_93", fa = "_linksSection_12vvu_103", ka = "_linksColumn_12vvu_109", va = "_linksTitle_12vvu_116", ba = "_linksList_12vvu_127", ya = "_footerLink_12vvu_136", xa = "_divider_12vvu_158", Ta = "_contactSection_12vvu_166", Ca = "_contactColumn_12vvu_173", wa = "_contactTitle_12vvu_181", Sa = "_contactContent_12vvu_190", Ia = "_copyrightSection_12vvu_204", _a = "_copyrightText_12vvu_209", Da = "_whiteSection_12vvu_219", La = "_whiteContainer_12vvu_224", Aa = "_whiteContent_12vvu_232", Na = "_logo_12vvu_240", Ma = "_redCrossLogo_12vvu_254", ja = "_slotLarge_12vvu_260", Fa = "_contentRowContact_12vvu_315", Ba = "_socialLinksSection_12vvu_325", Ea = "_socialLinksTitle_12vvu_332", $a = "_socialLinksList_12vvu_343", Pa = "_socialLink_12vvu_325", za = "_socialLinkIcon_12vvu_376", Ra = "_contactPersonsSection_12vvu_391", Ga = "_contactPersonsTitle_12vvu_398", Wa = "_contactPersonsGrid_12vvu_409", Ha = "_contactPersonCard_12vvu_415", Ua = "_contactPersonName_12vvu_422", Va = "_contactPersonRole_12vvu_431", Oa = "_contactPersonDetails_12vvu_440", Ka = "_contactPersonLabel_12vvu_447", qa = "_contactPersonEmail_12vvu_451", Ya = "_contactPersonPhone_12vvu_452", Za = "_contactPersonAddress_12vvu_453", Xa = "_bottomRowContact_12vvu_474", Ja = "_legalLinksRow_12vvu_483", Qa = "_legalLink_12vvu_483", es = "_dpMain_12vvu_558", ts = "_dpContainer_12vvu_567", ns = "_dpColumns_12vvu_575", os = "_dpColumn_12vvu_575", rs = "_dpColTitle_12vvu_588", as = "_dpList_12vvu_596", ss = "_dpLink_12vvu_605", is = "_dpDivider_12vvu_619", ls = "_dpMeta_12vvu_627", ds = "_dpMetaCol_12vvu_633", cs = "_dpMetaTitle_12vvu_641", ps = "_dpMetaText_12vvu_649", ms = "_dpBottom_12vvu_657", gs = "_dpLegal_12vvu_665", us = "_dpLegalLink_12vvu_674", hs = "_dpCopyright_12vvu_686", fs = "_dpLogoBox_12vvu_694", ks = "_dpLogoImg_12vvu_710", o = {
4388
4388
  footer: ra,
4389
4389
  mainSection: aa,
4390
4390
  mainContainer: sa,
@@ -4411,10 +4411,10 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4411
4411
  copyrightText: _a,
4412
4412
  whiteSection: Da,
4413
4413
  whiteContainer: La,
4414
- whiteContent: ja,
4415
- logo: Aa,
4416
- redCrossLogo: Na,
4417
- slotLarge: Ma,
4414
+ whiteContent: Aa,
4415
+ logo: Na,
4416
+ redCrossLogo: Ma,
4417
+ slotLarge: ja,
4418
4418
  contentRowContact: Fa,
4419
4419
  socialLinksSection: Ba,
4420
4420
  socialLinksTitle: Ea,
@@ -4450,49 +4450,51 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4450
4450
  dpBottom: ms,
4451
4451
  dpLegal: gs,
4452
4452
  dpLegalLink: us,
4453
- dpCopyright: hs
4454
- }, Di = ({
4453
+ dpCopyright: hs,
4454
+ dpLogoBox: fs,
4455
+ dpLogoImg: ks
4456
+ }, Ai = ({
4455
4457
  "data-color": n = "neutral",
4456
4458
  variant: e = "default",
4457
4459
  colorScheme: a,
4458
4460
  columns: d,
4459
4461
  showCrossCorners: h = !1,
4460
4462
  newsletterDescription: f = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
4461
- newsletterPlaceholder: m = "Input tekst",
4463
+ newsletterPlaceholder: g = "Input tekst",
4462
4464
  newsletterButtonText: k = "Meld deg på",
4463
4465
  newsletterConsentText: D,
4464
4466
  onNewsletterSubmit: S,
4465
4467
  hideNewsletter: R = !1,
4466
4468
  shortcutsLinks: _,
4467
4469
  linksLinks: V,
4468
- shortcutsTitle: A,
4470
+ shortcutsTitle: N,
4469
4471
  linksTitle: p,
4470
4472
  visitingAddress: K = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
4471
4473
  organizationNumber: X = "XXX XXX XXX",
4472
- email: j = "post@redcross.no",
4474
+ email: A = "post@redcross.no",
4473
4475
  showPrimaryLogo: q = !0,
4474
- primaryLogoSrc: g,
4476
+ primaryLogoSrc: m,
4475
4477
  primaryLogoAlt: M = "Røde Kors Logo",
4476
4478
  whiteSectionSlot: I,
4477
4479
  socialLinks: F = [],
4478
- contactPersons: N = [],
4480
+ contactPersons: j = [],
4479
4481
  legalLinks: L = [],
4480
4482
  socialLinksTitle: G,
4481
4483
  contactPersonsTitle: ne
4482
4484
  } = {}) => {
4483
- const H = (/* @__PURE__ */ new Date()).getFullYear(), { t: J } = Te(), [T, b] = Ae.useState(""), l = (c, w) => {
4485
+ const H = (/* @__PURE__ */ new Date()).getFullYear(), { t: J } = Te(), [T, b] = Ne.useState(""), l = (c, w) => {
4484
4486
  const $ = J(c);
4485
4487
  return $ === c ? w : $;
4486
4488
  };
4487
- Ae.useEffect(() => {
4489
+ Ne.useEffect(() => {
4488
4490
  const c = "rk-footer-inline-styles";
4489
4491
  if (typeof document > "u" || document.getElementById(c)) return;
4490
- const w = fs(o), $ = document.createElement("style");
4492
+ const w = vs(o), $ = document.createElement("style");
4491
4493
  $.id = c, $.textContent = w, document.head.appendChild($);
4492
4494
  }, []);
4493
4495
  const C = (c) => {
4494
4496
  c.preventDefault(), S == null || S(T);
4495
- }, E = () => /* @__PURE__ */ r(
4497
+ }, B = () => /* @__PURE__ */ r(
4496
4498
  "svg",
4497
4499
  {
4498
4500
  width: "170",
@@ -4528,7 +4530,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4528
4530
  { label: l("footer.legal.press", "For presse"), href: "#" },
4529
4531
  { label: l("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
4530
4532
  { label: l("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
4531
- ], B = /* @__PURE__ */ r(Se, { children: [
4533
+ ], E = /* @__PURE__ */ r(Se, { children: [
4532
4534
  'Ved å trykke "',
4533
4535
  k,
4534
4536
  '" samtykker du til å motta nyhetsbrev.',
@@ -4566,7 +4568,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4566
4568
  ] })
4567
4569
  ] }), me = () => /* @__PURE__ */ r("div", { className: o.contactPersonsSection, children: [
4568
4570
  ne && /* @__PURE__ */ t("h3", { className: o.contactPersonsTitle, children: ne }),
4569
- /* @__PURE__ */ t("div", { className: o.contactPersonsGrid, children: N.map((c, w) => /* @__PURE__ */ t(Z, { person: c }, w)) })
4571
+ /* @__PURE__ */ t("div", { className: o.contactPersonsGrid, children: j.map((c, w) => /* @__PURE__ */ t(Z, { person: c }, w)) })
4570
4572
  ] }), ge = () => /* @__PURE__ */ t("ul", { className: o.legalLinksRow, children: L.map((c, w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: c.href, className: o.legalLink, children: c.label }) }, w)) });
4571
4573
  if (e === "columns") {
4572
4574
  const c = [
@@ -4600,7 +4602,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4600
4602
  ] }),
4601
4603
  /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4602
4604
  /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.email", "E-post") }),
4603
- /* @__PURE__ */ t("p", { className: o.dpMetaText, children: j })
4605
+ /* @__PURE__ */ t("p", { className: o.dpMetaText, children: A })
4604
4606
  ] })
4605
4607
  ] }),
4606
4608
  /* @__PURE__ */ t("hr", { className: o.dpDivider }),
@@ -4612,7 +4614,8 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4612
4614
  " ",
4613
4615
  l("footer.copyright", "Røde Kors")
4614
4616
  ] })
4615
- ] })
4617
+ ] }),
4618
+ m ? /* @__PURE__ */ t("img", { src: m, alt: M, className: o.dpLogoImg }) : /* @__PURE__ */ t("div", { className: o.dpLogoBox, "data-color-scheme": "light", children: /* @__PURE__ */ t(B, {}) })
4616
4619
  ] }) }) });
4617
4620
  }
4618
4621
  return e === "contact" ? /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
@@ -4620,7 +4623,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4620
4623
  h && /* @__PURE__ */ t("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ t(ye, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
4621
4624
  /* @__PURE__ */ r("div", { className: o.contentRowContact, children: [
4622
4625
  F.length > 0 && /* @__PURE__ */ t(v, {}),
4623
- N.length > 0 && /* @__PURE__ */ t(me, {})
4626
+ j.length > 0 && /* @__PURE__ */ t(me, {})
4624
4627
  ] }),
4625
4628
  /* @__PURE__ */ t("div", { className: o.divider }),
4626
4629
  /* @__PURE__ */ r("div", { className: o.contactSection, children: [
@@ -4634,7 +4637,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4634
4637
  ] }),
4635
4638
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4636
4639
  /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.email", "E-post") }),
4637
- /* @__PURE__ */ t("p", { className: o.contactContent, children: j })
4640
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: A })
4638
4641
  ] })
4639
4642
  ] }),
4640
4643
  /* @__PURE__ */ t("div", { className: o.divider }),
@@ -4650,15 +4653,15 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4650
4653
  h && /* @__PURE__ */ t("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ t(ye, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4651
4654
  ] }) }),
4652
4655
  /* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
4653
- q && (g ? /* @__PURE__ */ t(
4656
+ q && (m ? /* @__PURE__ */ t(
4654
4657
  "img",
4655
4658
  {
4656
- src: g,
4659
+ src: m,
4657
4660
  alt: M,
4658
4661
  className: o.logo,
4659
4662
  loading: "lazy"
4660
4663
  }
4661
- ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(E, {}) })),
4664
+ ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(B, {}) })),
4662
4665
  I && /* @__PURE__ */ t("div", { className: o.slotLarge, children: I })
4663
4666
  ] }) }) })
4664
4667
  ] }) : /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
@@ -4672,7 +4675,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4672
4675
  Ze,
4673
4676
  {
4674
4677
  type: "email",
4675
- placeholder: m,
4678
+ placeholder: g,
4676
4679
  value: T,
4677
4680
  onChange: (c) => b(c.target.value),
4678
4681
  className: o.newsletterInput
@@ -4680,11 +4683,11 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4680
4683
  ),
4681
4684
  /* @__PURE__ */ t(ce, { type: "submit", variant: "primary", "data-color": "neutral", children: k })
4682
4685
  ] }) }),
4683
- /* @__PURE__ */ t("p", { className: o.consentText, children: D || B })
4686
+ /* @__PURE__ */ t("p", { className: o.consentText, children: D || E })
4684
4687
  ] }),
4685
4688
  /* @__PURE__ */ r("div", { className: o.linksSection, children: [
4686
- /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": A || l("footer.shortcuts", "Snarveier"), children: [
4687
- /* @__PURE__ */ t("h3", { className: o.linksTitle, children: A || l("footer.shortcuts", "Snarveier") }),
4689
+ /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": N || l("footer.shortcuts", "Snarveier"), children: [
4690
+ /* @__PURE__ */ t("h3", { className: o.linksTitle, children: N || l("footer.shortcuts", "Snarveier") }),
4688
4691
  /* @__PURE__ */ t("ul", { className: o.linksList, children: Q.map((c, w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: c.href, className: o.footerLink, children: c.label }) }, w)) })
4689
4692
  ] }),
4690
4693
  /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": p || l("footer.links", "Lenker"), children: [
@@ -4705,7 +4708,7 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4705
4708
  ] }),
4706
4709
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4707
4710
  /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.email", "E-post") }),
4708
- /* @__PURE__ */ t("p", { className: o.contactContent, children: j })
4711
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: A })
4709
4712
  ] })
4710
4713
  ] }),
4711
4714
  /* @__PURE__ */ t("div", { className: o.divider }),
@@ -4718,20 +4721,20 @@ const ra = "_footer_fj44n_1", aa = "_mainSection_fj44n_7", sa = "_mainContainer_
4718
4721
  h && /* @__PURE__ */ t("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ t(ye, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4719
4722
  ] }) }),
4720
4723
  /* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
4721
- q && (g ? /* @__PURE__ */ t(
4724
+ q && (m ? /* @__PURE__ */ t(
4722
4725
  "img",
4723
4726
  {
4724
- src: g,
4727
+ src: m,
4725
4728
  alt: M,
4726
4729
  className: o.logo,
4727
4730
  loading: "lazy"
4728
4731
  }
4729
- ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(E, {}) })),
4732
+ ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(B, {}) })),
4730
4733
  I && /* @__PURE__ */ t("div", { className: o.slotLarge, children: I })
4731
4734
  ] }) }) })
4732
4735
  ] });
4733
4736
  };
4734
- function fs(n) {
4737
+ function vs(n) {
4735
4738
  const e = n;
4736
4739
  return `
4737
4740
  .${e.footer} {
@@ -5156,24 +5159,24 @@ function fs(n) {
5156
5159
  }
5157
5160
  `;
5158
5161
  }
5159
- const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_35", ys = "_amountSection_1hxqz_47", xs = "_amountLabel_1hxqz_55", Ts = "_amountButtons_1hxqz_64", Cs = "_customAmountField_1hxqz_75", ws = "_impactRow_1hxqz_80", Ss = "_heartIcon_1hxqz_88", Is = "_impactText_1hxqz_102", _s = "_impactAmount_1hxqz_112", Ds = "_actionsSection_1hxqz_117", Ls = "_vippsButton_1hxqz_127", js = "_vippsButtonLabel_1hxqz_157", As = "_vippsLogo_1hxqz_166", Ns = "_avtalegiroLink_1hxqz_179", Ms = "_tabHeartIcon_1hxqz_184", P = {
5160
- donor: ks,
5161
- tabsWrapper: vs,
5162
- content: bs,
5163
- amountSection: ys,
5164
- amountLabel: xs,
5165
- amountButtons: Ts,
5166
- customAmountField: Cs,
5167
- impactRow: ws,
5168
- heartIcon: Ss,
5169
- impactText: Is,
5170
- impactAmount: _s,
5171
- actionsSection: Ds,
5172
- vippsButton: Ls,
5173
- vippsButtonLabel: js,
5174
- vippsLogo: As,
5175
- avtalegiroLink: Ns,
5176
- tabHeartIcon: Ms
5162
+ const bs = "_donor_1hxqz_1", ys = "_tabsWrapper_1hxqz_14", xs = "_content_1hxqz_35", Ts = "_amountSection_1hxqz_47", Cs = "_amountLabel_1hxqz_55", ws = "_amountButtons_1hxqz_64", Ss = "_customAmountField_1hxqz_75", Is = "_impactRow_1hxqz_80", _s = "_heartIcon_1hxqz_88", Ds = "_impactText_1hxqz_102", Ls = "_impactAmount_1hxqz_112", As = "_actionsSection_1hxqz_117", Ns = "_vippsButton_1hxqz_127", Ms = "_vippsButtonLabel_1hxqz_157", js = "_vippsLogo_1hxqz_166", Fs = "_avtalegiroLink_1hxqz_179", Bs = "_tabHeartIcon_1hxqz_184", P = {
5163
+ donor: bs,
5164
+ tabsWrapper: ys,
5165
+ content: xs,
5166
+ amountSection: Ts,
5167
+ amountLabel: Cs,
5168
+ amountButtons: ws,
5169
+ customAmountField: Ss,
5170
+ impactRow: Is,
5171
+ heartIcon: _s,
5172
+ impactText: Ds,
5173
+ impactAmount: Ls,
5174
+ actionsSection: As,
5175
+ vippsButton: Ns,
5176
+ vippsButtonLabel: Ms,
5177
+ vippsLogo: js,
5178
+ avtalegiroLink: Fs,
5179
+ tabHeartIcon: Bs
5177
5180
  }, We = () => /* @__PURE__ */ t(
5178
5181
  "svg",
5179
5182
  {
@@ -5192,7 +5195,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5192
5195
  }
5193
5196
  )
5194
5197
  }
5195
- ), Fs = () => /* @__PURE__ */ t(
5198
+ ), Es = () => /* @__PURE__ */ t(
5196
5199
  "svg",
5197
5200
  {
5198
5201
  width: "16",
@@ -5210,7 +5213,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5210
5213
  }
5211
5214
  )
5212
5215
  }
5213
- ), Bs = () => /* @__PURE__ */ t(
5216
+ ), $s = () => /* @__PURE__ */ t(
5214
5217
  "svg",
5215
5218
  {
5216
5219
  width: "64",
@@ -5228,60 +5231,60 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5228
5231
  }
5229
5232
  )
5230
5233
  }
5231
- ), Es = [
5234
+ ), Ps = [
5232
5235
  { value: 220, label: "220 kr" },
5233
5236
  { value: 345, label: "345 kr" },
5234
5237
  { value: 660, label: "660 kr" }
5235
- ], Li = ({
5238
+ ], Ni = ({
5236
5239
  "data-color": n = "primary",
5237
- amounts: e = Es,
5240
+ amounts: e = Ps,
5238
5241
  defaultAmount: a = 345,
5239
5242
  oneTimeLabel: d = "En gang",
5240
5243
  monthlyLabel: h = "Hver måned",
5241
5244
  customAmountPlaceholder: f = "Valgfritt beløp",
5242
- amountLabel: m = "Velg ønsket beløp:",
5245
+ amountLabel: g = "Velg ønsket beløp:",
5243
5246
  impactMessage: k = "En gave på {amount} bidrar til ...",
5244
5247
  vippsButtonLabel: D = "Gi med",
5245
5248
  avtalegiroLabel: S = "Gi med avtalegiro",
5246
5249
  avtalegiroHref: R = "#",
5247
5250
  currencySuffix: _ = "kr",
5248
5251
  onVippsClick: V,
5249
- onAvtalegiroClick: A,
5252
+ onAvtalegiroClick: N,
5250
5253
  onAmountChange: p,
5251
5254
  showVippsButton: K = !0,
5252
5255
  showAvtalegiroLink: X = !0,
5253
- showImpactMessage: j = !0,
5256
+ showImpactMessage: A = !0,
5254
5257
  heartVariant: q = "outlined"
5255
5258
  }) => {
5256
- const [g, M] = O("monthly"), [I, F] = O(a), [N, L] = O(""), [G, ne] = O(!1);
5259
+ const [m, M] = O("monthly"), [I, F] = O(a), [j, L] = O(""), [G, ne] = O(!1);
5257
5260
  z(() => {
5258
5261
  const y = "rk-donor-inline-styles";
5259
5262
  if (typeof document > "u" || document.getElementById(y)) return;
5260
- const B = $s(P), Q = document.createElement("style");
5261
- Q.id = y, Q.textContent = B, document.head.appendChild(Q);
5263
+ const E = zs(P), Q = document.createElement("style");
5264
+ Q.id = y, Q.textContent = E, document.head.appendChild(Q);
5262
5265
  }, []);
5263
- const H = G && N ? parseInt(N, 10) || 0 : I, J = (y) => {
5264
- F(y), ne(!1), L(""), p == null || p(y, g);
5266
+ const H = G && j ? parseInt(j, 10) || 0 : I, J = (y) => {
5267
+ F(y), ne(!1), L(""), p == null || p(y, m);
5265
5268
  }, T = (y) => {
5266
- const B = y.target.value;
5267
- L(B), ne(!0);
5268
- const Q = parseInt(B, 10);
5269
- Q > 0 && (p == null || p(Q, g));
5269
+ const E = y.target.value;
5270
+ L(E), ne(!0);
5271
+ const Q = parseInt(E, 10);
5272
+ Q > 0 && (p == null || p(Q, m));
5270
5273
  }, b = () => {
5271
5274
  ne(!0);
5272
5275
  }, l = (y) => {
5273
- const B = y;
5274
- M(B), p == null || p(H, B);
5276
+ const E = y;
5277
+ M(E), p == null || p(H, E);
5275
5278
  }, C = () => {
5276
- V == null || V(H, g);
5277
- }, E = () => {
5278
- A == null || A();
5279
+ V == null || V(H, m);
5280
+ }, B = () => {
5281
+ N == null || N();
5279
5282
  }, Y = () => {
5280
- const y = `${H} ${_}`, B = k.split("{amount}");
5283
+ const y = `${H} ${_}`, E = k.split("{amount}");
5281
5284
  return /* @__PURE__ */ r("span", { children: [
5282
- B[0],
5285
+ E[0],
5283
5286
  /* @__PURE__ */ t("span", { className: P.impactAmount, children: y }),
5284
- B[1] || ""
5287
+ E[1] || ""
5285
5288
  ] });
5286
5289
  };
5287
5290
  return /* @__PURE__ */ r("div", { className: P.donor, "data-color": n, children: [
@@ -5294,14 +5297,14 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5294
5297
  ] }) }) }),
5295
5298
  /* @__PURE__ */ r("div", { className: P.content, children: [
5296
5299
  /* @__PURE__ */ r("div", { className: P.amountSection, children: [
5297
- /* @__PURE__ */ t(xe, { className: P.amountLabel, "data-size": "sm", children: m }),
5300
+ /* @__PURE__ */ t(xe, { className: P.amountLabel, "data-size": "sm", children: g }),
5298
5301
  /* @__PURE__ */ t("div", { className: P.amountButtons, children: e.map((y) => {
5299
- const B = !G && I === y.value;
5302
+ const E = !G && I === y.value;
5300
5303
  return /* @__PURE__ */ t(
5301
5304
  ce,
5302
5305
  {
5303
- variant: B ? "primary" : "secondary",
5304
- "data-color": B ? "accent" : "neutral",
5306
+ variant: E ? "primary" : "secondary",
5307
+ "data-color": E ? "accent" : "neutral",
5305
5308
  onClick: () => J(y.value),
5306
5309
  children: y.label
5307
5310
  },
@@ -5313,7 +5316,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5313
5316
  {
5314
5317
  "aria-label": f,
5315
5318
  placeholder: f,
5316
- value: N,
5319
+ value: j,
5317
5320
  onChange: T,
5318
5321
  onFocus: b,
5319
5322
  type: "number",
@@ -5321,8 +5324,8 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5321
5324
  }
5322
5325
  ) })
5323
5326
  ] }),
5324
- j && /* @__PURE__ */ r("div", { className: P.impactRow, children: [
5325
- /* @__PURE__ */ t("div", { className: P.heartIcon, children: q === "filled" ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(Fs, {}) }),
5327
+ A && /* @__PURE__ */ r("div", { className: P.impactRow, children: [
5328
+ /* @__PURE__ */ t("div", { className: P.heartIcon, children: q === "filled" ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(Es, {}) }),
5326
5329
  /* @__PURE__ */ t("p", { className: P.impactText, children: Y() })
5327
5330
  ] }),
5328
5331
  /* @__PURE__ */ r("div", { className: P.actionsSection, children: [
@@ -5335,7 +5338,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5335
5338
  "aria-label": `${D} Vipps`,
5336
5339
  children: [
5337
5340
  /* @__PURE__ */ t("span", { className: P.vippsButtonLabel, children: D }),
5338
- /* @__PURE__ */ t("span", { className: P.vippsLogo, children: /* @__PURE__ */ t(Bs, {}) })
5341
+ /* @__PURE__ */ t("span", { className: P.vippsLogo, children: /* @__PURE__ */ t($s, {}) })
5339
5342
  ]
5340
5343
  }
5341
5344
  ),
@@ -5346,7 +5349,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5346
5349
  "data-color": "neutral",
5347
5350
  className: P.avtalegiroLink,
5348
5351
  onClick: (y) => {
5349
- A && (y.preventDefault(), E());
5352
+ N && (y.preventDefault(), B());
5350
5353
  },
5351
5354
  children: S
5352
5355
  }
@@ -5355,7 +5358,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5355
5358
  ] })
5356
5359
  ] });
5357
5360
  };
5358
- function $s(n) {
5361
+ function zs(n) {
5359
5362
  return `
5360
5363
  .${n.donor} {
5361
5364
  border-radius: 16px;
@@ -5524,69 +5527,69 @@ export {
5524
5527
  hn as Alert,
5525
5528
  Ke as Avatar,
5526
5529
  fn as Badge,
5527
- Us as BadgePosition,
5528
- Vs as Breadcrumbs,
5529
- Ks as BreadcrumbsItem,
5530
- qs as BreadcrumbsLink,
5531
- Os as BreadcrumbsList,
5530
+ Os as BadgePosition,
5531
+ Ks as Breadcrumbs,
5532
+ Ys as BreadcrumbsItem,
5533
+ Zs as BreadcrumbsLink,
5534
+ qs as BreadcrumbsList,
5532
5535
  ce as Button,
5533
5536
  vn as Card,
5534
- Ys as CardBlock,
5537
+ Xs as CardBlock,
5535
5538
  zo as Carousel,
5536
5539
  bn as Checkbox,
5537
- Xs as Chip,
5540
+ Qs as Chip,
5538
5541
  ye as CrossCorner,
5539
5542
  xo as DateInput,
5540
5543
  mo as DatePicker,
5541
- ei as Details,
5542
- ti as Dialog,
5543
- ni as Divider,
5544
- Li as Donor,
5544
+ ni as Details,
5545
+ oi as Dialog,
5546
+ ri as Divider,
5547
+ Ni as Donor,
5545
5548
  U as Dropdown,
5546
- li as DropdownButton,
5547
- ai as DropdownHeading,
5548
- ii as DropdownItem,
5549
- si as DropdownList,
5550
- oi as DropdownTrigger,
5551
- ri as DropdownTriggerContext,
5552
- di as ErrorSummary,
5553
- ci as Field,
5549
+ ci as DropdownButton,
5550
+ ii as DropdownHeading,
5551
+ di as DropdownItem,
5552
+ li as DropdownList,
5553
+ ai as DropdownTrigger,
5554
+ si as DropdownTriggerContext,
5555
+ pi as ErrorSummary,
5556
+ mi as Field,
5554
5557
  Ko as FieldCounter,
5555
5558
  Oo as FieldDescription,
5556
- pi as Fieldset,
5557
- Di as Footer,
5558
- _i as Header,
5559
+ gi as Fieldset,
5560
+ Ai as Footer,
5561
+ Li as Header,
5559
5562
  qo as Heading,
5560
5563
  Ze as Input,
5561
5564
  Yo as Label,
5562
- Js as LanguageProvider,
5565
+ ei as LanguageProvider,
5563
5566
  te as Link,
5564
- mi as List,
5567
+ ui as List,
5565
5568
  Zo as Pagination,
5566
- hi as PaginationButton,
5567
- ui as PaginationItem,
5568
- gi as PaginationList,
5569
+ ki as PaginationButton,
5570
+ fi as PaginationItem,
5571
+ hi as PaginationList,
5569
5572
  xe as Paragraph,
5570
- ki as Popover,
5571
- vi as Radio,
5573
+ bi as Popover,
5574
+ yi as Radio,
5572
5575
  Ce as Search,
5573
- yi as Select,
5574
- xi as SkeletonLoader,
5575
- Ti as SkipLink,
5576
+ Ti as Select,
5577
+ Ci as SkeletonLoader,
5578
+ wi as SkipLink,
5576
5579
  Po as Spinner,
5577
5580
  Xo as Suggestion,
5578
- je as Switch,
5579
- Ci as Table,
5581
+ Ae as Switch,
5582
+ Si as Table,
5580
5583
  we as Tabs,
5581
5584
  Jo as Tag,
5582
- wi as Textarea,
5585
+ Ii as Textarea,
5583
5586
  Qo as Textfield,
5584
- Si as ToggleGroup,
5585
- Ii as Tooltip,
5587
+ _i as ToggleGroup,
5588
+ Di as Tooltip,
5586
5589
  er as ValidationMessage,
5587
- Zs as useCheckboxGroup,
5588
- Qs as useLanguage,
5590
+ Js as useCheckboxGroup,
5591
+ ti as useLanguage,
5589
5592
  Te as useLanguageOptional,
5590
- fi as usePagination,
5591
- bi as useRadioGroup
5593
+ vi as usePagination,
5594
+ xi as useRadioGroup
5592
5595
  };