rk-designsystem 1.2.1 → 1.2.2

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,88 +1,101 @@
1
- import { jsx as n, jsxs as a, Fragment as Ce } from "react/jsx-runtime";
2
- import Ne, { forwardRef as ae, useState as Y, useContext as He, createContext as Xe, useEffect as $, useMemo as ue, useCallback as re, useRef as Je } from "react";
3
- import { Alert as Qe, Avatar as et, BadgePosition as tt, Badge as nt, Breadcrumbs as ot, BreadcrumbsItem as rt, BreadcrumbsLink as at, BreadcrumbsList as st, Button as Me, Card as it, CardBlock as lt, Checkbox as dt, useCheckboxGroup as ct, Fieldset as Ue, Chip as pt, Spinner as mt, Details as gt, Dialog as ut, Divider as ht, Dropdown as ft, DropdownButton as kt, DropdownHeading as vt, DropdownItem as bt, DropdownList as yt, DropdownTrigger as xt, DropdownTriggerContext as Tt, ErrorSummary as Ct, Field as wt, FieldCounter as St, FieldDescription as It, Heading as _t, Input as Dt, Label as At, Link as Lt, List as Nt, Pagination as Mt, PaginationButton as jt, PaginationItem as Ft, PaginationList as Bt, usePagination as Et, Paragraph as $t, Popover as Pt, Radio as zt, useRadioGroup as Rt, Search as Gt, SearchInput as Wt, SearchClear as Ht, SearchButton as Ut, Select as Vt, Skeleton as Ot, SkipLink as Kt, EXPERIMENTAL_Suggestion as qt, Switch as Yt, Table as Zt, Tabs as Xt, Tag as Jt, Textarea as Qt, Textfield as en, ToggleGroup as tn, Tooltip as nn, ValidationMessage as on } from "@digdir/designsystemet-react";
4
- import { startOfMonth as me, isValid as Ie, isSameMonth as Fe, startOfWeek as Ve, format as he, addDays as Oe, subMonths as rn, addMonths as an, isSameDay as sn, isToday as ln, eachDayOfInterval as dn } from "date-fns";
1
+ import { jsx as n, jsxs as s, Fragment as Ce } from "react/jsx-runtime";
2
+ import Ne, { forwardRef as se, useState as Y, useContext as He, createContext as Xe, useEffect as $, useMemo as ue, useCallback as re, useRef as Je } from "react";
3
+ import { Alert as Qe, Avatar as et, BadgePosition as tt, Badge as nt, Breadcrumbs as ot, BreadcrumbsItem as rt, BreadcrumbsLink as st, BreadcrumbsList as at, Button as Me, Card as it, CardBlock as lt, Checkbox as dt, useCheckboxGroup as ct, Fieldset as Ue, Chip as pt, Spinner as mt, Details as gt, Dialog as ut, Divider as ht, Dropdown as ft, DropdownButton as kt, DropdownHeading as vt, DropdownItem as bt, DropdownList as yt, DropdownTrigger as xt, DropdownTriggerContext as Tt, ErrorSummary as Ct, Field as wt, FieldCounter as St, FieldDescription as It, Heading as _t, Input as Dt, Label as At, Link as Lt, List as Nt, Pagination as Mt, PaginationButton as jt, PaginationItem as Ft, PaginationList as Bt, usePagination as Et, Paragraph as $t, Popover as Pt, Radio as zt, useRadioGroup as Rt, Search as Gt, SearchInput as Wt, SearchClear as Ht, SearchButton as Ut, Select as Vt, Skeleton as Ot, SkipLink as Kt, EXPERIMENTAL_Suggestion as qt, Switch as Yt, Table as Zt, Tabs as Xt, Tag as Jt, Textarea as Qt, Textfield as en, ToggleGroup as tn, Tooltip as nn, ValidationMessage as on } from "@digdir/designsystemet-react";
4
+ import { startOfMonth as me, isValid as Ie, isSameMonth as Fe, startOfWeek as Ve, format as he, addDays as Oe, subMonths as rn, addMonths as sn, isSameDay as an, isToday as ln, eachDayOfInterval as dn } from "date-fns";
5
5
  import cn from "embla-carousel-react";
6
6
  import { ChevronLeftIcon as pn, ChevronRightIcon as mn, ChevronDownIcon as Be, XMarkIcon as _e, MagnifyingGlassIcon as Ee, MenuHamburgerIcon as $e, HeartIcon as gn } from "@navikt/aksel-icons";
7
- const un = ae((t, e) => /* @__PURE__ */ n(Qe, { ref: e, ...t }));
7
+ const un = se((t, e) => /* @__PURE__ */ n(Qe, { ref: e, ...t }));
8
8
  un.displayName = "Alert";
9
- const Ke = ae((t, e) => /* @__PURE__ */ n(et, { ref: e, ...t }));
9
+ const Ke = se((t, e) => /* @__PURE__ */ n(et, { ref: e, ...t }));
10
10
  Ke.displayName = "Avatar";
11
- const hn = ae((t, e) => /* @__PURE__ */ n(nt, { ref: e, ...t }));
11
+ const hn = se((t, e) => /* @__PURE__ */ n(nt, { ref: e, ...t }));
12
12
  hn.displayName = "Badge";
13
- const Is = tt, _s = ot, Ds = st, As = rt, Ls = at, de = ae(function({ variant: e, shape: r, ...d }, h) {
14
- const k = {};
15
- return e !== void 0 && (k.variant = e), r === "pill" && (k["data-shape"] = "pill"), /* @__PURE__ */ n(Me, { ref: h, ...d, ...k });
13
+ const _a = tt, Da = ot, Aa = at, La = rt, Na = st;
14
+ function fn() {
15
+ return {
16
+ "--dsc-button-background": "var(--ds-color-surface-tinted)",
17
+ "--dsc-button-background--hover": "var(--ds-color-surface-hover)",
18
+ "--dsc-button-background--active": "var(--ds-color-surface-active)",
19
+ "--dsc-button-color": "var(--ds-color-text-default)",
20
+ "--dsc-button-color--hover": "var(--ds-color-text-default)",
21
+ "--dsc-button-border-color": "transparent"
22
+ };
23
+ }
24
+ const de = se(function({ variant: e, shape: o, style: d, ...h }, f) {
25
+ const c = {};
26
+ e === "soft" && Object.assign(c, fn()), o === "pill" && (c.borderRadius = "var(--ds-border-radius-full)");
27
+ const k = Object.keys(c).length === 0 && !d ? void 0 : { ...c, ...d }, D = {};
28
+ return e !== void 0 && (D.variant = e), o === "pill" && (D["data-shape"] = "pill"), /* @__PURE__ */ n(Me, { ref: f, ...h, ...D, style: k });
16
29
  });
17
30
  de.displayName = "Button";
18
- const fn = it, Ns = lt;
19
- fn.displayName = "Card";
20
- const kn = dt, vn = Ue, Ms = ct;
21
- kn.displayName = "Checkbox";
22
- vn.displayName = "Fieldset";
23
- const js = pt;
31
+ const kn = it, Ma = lt;
32
+ kn.displayName = "Card";
33
+ const vn = dt, bn = Ue, ja = ct;
34
+ vn.displayName = "Checkbox";
35
+ bn.displayName = "Fieldset";
36
+ const Fa = pt;
24
37
  function De(t) {
25
38
  return (e = {}) => {
26
- const r = e.width ? String(e.width) : t.defaultWidth;
27
- return t.formats[r] || t.formats[t.defaultWidth];
39
+ const o = e.width ? String(e.width) : t.defaultWidth;
40
+ return t.formats[o] || t.formats[t.defaultWidth];
28
41
  };
29
42
  }
30
43
  function fe(t) {
31
- return (e, r) => {
32
- const d = r != null && r.context ? String(r.context) : "standalone";
44
+ return (e, o) => {
45
+ const d = o != null && o.context ? String(o.context) : "standalone";
33
46
  let h;
34
47
  if (d === "formatting" && t.formattingValues) {
35
- const u = t.defaultFormattingWidth || t.defaultWidth, x = r != null && r.width ? String(r.width) : u;
36
- h = t.formattingValues[x] || t.formattingValues[u];
48
+ const c = t.defaultFormattingWidth || t.defaultWidth, k = o != null && o.width ? String(o.width) : c;
49
+ h = t.formattingValues[k] || t.formattingValues[c];
37
50
  } else {
38
- const u = t.defaultWidth, x = r != null && r.width ? String(r.width) : t.defaultWidth;
39
- h = t.values[x] || t.values[u];
51
+ const c = t.defaultWidth, k = o != null && o.width ? String(o.width) : t.defaultWidth;
52
+ h = t.values[k] || t.values[c];
40
53
  }
41
- const k = t.argumentCallback ? t.argumentCallback(e) : e;
42
- return h[k];
54
+ const f = t.argumentCallback ? t.argumentCallback(e) : e;
55
+ return h[f];
43
56
  };
44
57
  }
45
58
  function ke(t) {
46
- return (e, r = {}) => {
47
- const d = r.width, h = d && t.matchPatterns[d] || t.matchPatterns[t.defaultMatchWidth], k = e.match(h);
48
- if (!k)
59
+ return (e, o = {}) => {
60
+ const d = o.width, h = d && t.matchPatterns[d] || t.matchPatterns[t.defaultMatchWidth], f = e.match(h);
61
+ if (!f)
49
62
  return null;
50
- const u = k[0], x = d && t.parsePatterns[d] || t.parsePatterns[t.defaultParseWidth], F = Array.isArray(x) ? yn(x, (w) => w.test(u)) : (
63
+ const c = f[0], k = d && t.parsePatterns[d] || t.parsePatterns[t.defaultParseWidth], D = Array.isArray(k) ? xn(k, (w) => w.test(c)) : (
51
64
  // [TODO] -- I challenge you to fix the type
52
- bn(x, (w) => w.test(u))
65
+ yn(k, (w) => w.test(c))
53
66
  );
54
67
  let C;
55
- C = t.valueCallback ? t.valueCallback(F) : F, C = r.valueCallback ? (
68
+ C = t.valueCallback ? t.valueCallback(D) : D, C = o.valueCallback ? (
56
69
  // [TODO] -- I challenge you to fix the type
57
- r.valueCallback(C)
70
+ o.valueCallback(C)
58
71
  ) : C;
59
- const U = e.slice(u.length);
72
+ const U = e.slice(c.length);
60
73
  return { value: C, rest: U };
61
74
  };
62
75
  }
63
- function bn(t, e) {
64
- for (const r in t)
65
- if (Object.prototype.hasOwnProperty.call(t, r) && e(t[r]))
66
- return r;
67
- }
68
76
  function yn(t, e) {
69
- for (let r = 0; r < t.length; r++)
70
- if (e(t[r]))
71
- return r;
77
+ for (const o in t)
78
+ if (Object.prototype.hasOwnProperty.call(t, o) && e(t[o]))
79
+ return o;
72
80
  }
73
- function xn(t) {
74
- return (e, r = {}) => {
81
+ function xn(t, e) {
82
+ for (let o = 0; o < t.length; o++)
83
+ if (e(t[o]))
84
+ return o;
85
+ }
86
+ function Tn(t) {
87
+ return (e, o = {}) => {
75
88
  const d = e.match(t.matchPattern);
76
89
  if (!d) return null;
77
- const h = d[0], k = e.match(t.parsePattern);
78
- if (!k) return null;
79
- let u = t.valueCallback ? t.valueCallback(k[0]) : k[0];
80
- u = r.valueCallback ? r.valueCallback(u) : u;
81
- const x = e.slice(h.length);
82
- return { value: u, rest: x };
90
+ const h = d[0], f = e.match(t.parsePattern);
91
+ if (!f) return null;
92
+ let c = t.valueCallback ? t.valueCallback(f[0]) : f[0];
93
+ c = o.valueCallback ? o.valueCallback(c) : c;
94
+ const k = e.slice(h.length);
95
+ return { value: c, rest: k };
83
96
  };
84
97
  }
85
- const Tn = {
98
+ const Cn = {
86
99
  lessThanXSeconds: {
87
100
  one: "mindre enn ett sekund",
88
101
  other: "mindre enn {{count}} sekunder"
@@ -144,54 +157,54 @@ const Tn = {
144
157
  one: "nesten ett år",
145
158
  other: "nesten {{count}} år"
146
159
  }
147
- }, Cn = (t, e, r) => {
160
+ }, wn = (t, e, o) => {
148
161
  let d;
149
- const h = Tn[t];
150
- return typeof h == "string" ? d = h : e === 1 ? d = h.one : d = h.other.replace("{{count}}", String(e)), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "om " + d : d + " siden" : d;
151
- }, wn = {
162
+ const h = Cn[t];
163
+ return typeof h == "string" ? d = h : e === 1 ? d = h.one : d = h.other.replace("{{count}}", String(e)), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "om " + d : d + " siden" : d;
164
+ }, Sn = {
152
165
  full: "EEEE d. MMMM y",
153
166
  long: "d. MMMM y",
154
167
  medium: "d. MMM y",
155
168
  short: "dd.MM.y"
156
- }, Sn = {
169
+ }, In = {
157
170
  full: "'kl'. HH:mm:ss zzzz",
158
171
  long: "HH:mm:ss z",
159
172
  medium: "HH:mm:ss",
160
173
  short: "HH:mm"
161
- }, In = {
174
+ }, _n = {
162
175
  full: "{{date}} 'kl.' {{time}}",
163
176
  long: "{{date}} 'kl.' {{time}}",
164
177
  medium: "{{date}} {{time}}",
165
178
  short: "{{date}} {{time}}"
166
- }, _n = {
179
+ }, Dn = {
167
180
  date: De({
168
- formats: wn,
181
+ formats: Sn,
169
182
  defaultWidth: "full"
170
183
  }),
171
184
  time: De({
172
- formats: Sn,
185
+ formats: In,
173
186
  defaultWidth: "full"
174
187
  }),
175
188
  dateTime: De({
176
- formats: In,
189
+ formats: _n,
177
190
  defaultWidth: "full"
178
191
  })
179
- }, Dn = {
192
+ }, An = {
180
193
  lastWeek: "'forrige' eeee 'kl.' p",
181
194
  yesterday: "'i går kl.' p",
182
195
  today: "'i dag kl.' p",
183
196
  tomorrow: "'i morgen kl.' p",
184
197
  nextWeek: "EEEE 'kl.' p",
185
198
  other: "P"
186
- }, An = (t, e, r, d) => Dn[t], Ln = {
199
+ }, Ln = (t, e, o, d) => An[t], Nn = {
187
200
  narrow: ["f.Kr.", "e.Kr."],
188
201
  abbreviated: ["f.Kr.", "e.Kr."],
189
202
  wide: ["før Kristus", "etter Kristus"]
190
- }, Nn = {
203
+ }, Mn = {
191
204
  narrow: ["1", "2", "3", "4"],
192
205
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
193
206
  wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
194
- }, Mn = {
207
+ }, jn = {
195
208
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
196
209
  abbreviated: [
197
210
  "jan.",
@@ -221,7 +234,7 @@ const Tn = {
221
234
  "november",
222
235
  "desember"
223
236
  ]
224
- }, jn = {
237
+ }, Fn = {
225
238
  narrow: ["S", "M", "T", "O", "T", "F", "L"],
226
239
  short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
227
240
  abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
@@ -234,7 +247,7 @@ const Tn = {
234
247
  "fredag",
235
248
  "lørdag"
236
249
  ]
237
- }, Fn = {
250
+ }, Bn = {
238
251
  narrow: {
239
252
  am: "a",
240
253
  pm: "p",
@@ -265,46 +278,46 @@ const Tn = {
265
278
  evening: "på kvelden",
266
279
  night: "på natten"
267
280
  }
268
- }, Bn = (t, e) => Number(t) + ".", En = {
269
- ordinalNumber: Bn,
281
+ }, En = (t, e) => Number(t) + ".", $n = {
282
+ ordinalNumber: En,
270
283
  era: fe({
271
- values: Ln,
284
+ values: Nn,
272
285
  defaultWidth: "wide"
273
286
  }),
274
287
  quarter: fe({
275
- values: Nn,
288
+ values: Mn,
276
289
  defaultWidth: "wide",
277
290
  argumentCallback: (t) => t - 1
278
291
  }),
279
292
  month: fe({
280
- values: Mn,
293
+ values: jn,
281
294
  defaultWidth: "wide"
282
295
  }),
283
296
  day: fe({
284
- values: jn,
297
+ values: Fn,
285
298
  defaultWidth: "wide"
286
299
  }),
287
300
  dayPeriod: fe({
288
- values: Fn,
301
+ values: Bn,
289
302
  defaultWidth: "wide"
290
303
  })
291
- }, $n = /^(\d+)\.?/i, Pn = /\d+/i, zn = {
304
+ }, Pn = /^(\d+)\.?/i, zn = /\d+/i, Rn = {
292
305
  narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
293
306
  abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
294
307
  wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
295
- }, Rn = {
296
- any: [/^f/i, /^e/i]
297
308
  }, Gn = {
309
+ any: [/^f/i, /^e/i]
310
+ }, Wn = {
298
311
  narrow: /^[1234]/i,
299
312
  abbreviated: /^q[1234]/i,
300
313
  wide: /^[1234](\.)? kvartal/i
301
- }, Wn = {
302
- any: [/1/i, /2/i, /3/i, /4/i]
303
314
  }, Hn = {
315
+ any: [/1/i, /2/i, /3/i, /4/i]
316
+ }, Un = {
304
317
  narrow: /^[jfmasond]/i,
305
318
  abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
306
319
  wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
307
- }, Un = {
320
+ }, Vn = {
308
321
  narrow: [
309
322
  /^j/i,
310
323
  /^f/i,
@@ -333,17 +346,17 @@ const Tn = {
333
346
  /^n/i,
334
347
  /^d/i
335
348
  ]
336
- }, Vn = {
349
+ }, On = {
337
350
  narrow: /^[smtofl]/i,
338
351
  short: /^(sø|ma|ti|on|to|fr|lø)/i,
339
352
  abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
340
353
  wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
341
- }, On = {
342
- any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
343
354
  }, Kn = {
355
+ any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
356
+ }, qn = {
344
357
  narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
345
358
  any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
346
- }, qn = {
359
+ }, Yn = {
347
360
  any: {
348
361
  am: /^a(\.?\s?m\.?)?$/i,
349
362
  pm: /^p(\.?\s?m\.?)?$/i,
@@ -354,55 +367,55 @@ const Tn = {
354
367
  evening: /kveld/i,
355
368
  night: /natt/i
356
369
  }
357
- }, Yn = {
358
- ordinalNumber: xn({
359
- matchPattern: $n,
360
- parsePattern: Pn,
370
+ }, Zn = {
371
+ ordinalNumber: Tn({
372
+ matchPattern: Pn,
373
+ parsePattern: zn,
361
374
  valueCallback: (t) => parseInt(t, 10)
362
375
  }),
363
376
  era: ke({
364
- matchPatterns: zn,
377
+ matchPatterns: Rn,
365
378
  defaultMatchWidth: "wide",
366
- parsePatterns: Rn,
379
+ parsePatterns: Gn,
367
380
  defaultParseWidth: "any"
368
381
  }),
369
382
  quarter: ke({
370
- matchPatterns: Gn,
383
+ matchPatterns: Wn,
371
384
  defaultMatchWidth: "wide",
372
- parsePatterns: Wn,
385
+ parsePatterns: Hn,
373
386
  defaultParseWidth: "any",
374
387
  valueCallback: (t) => t + 1
375
388
  }),
376
389
  month: ke({
377
- matchPatterns: Hn,
390
+ matchPatterns: Un,
378
391
  defaultMatchWidth: "wide",
379
- parsePatterns: Un,
392
+ parsePatterns: Vn,
380
393
  defaultParseWidth: "any"
381
394
  }),
382
395
  day: ke({
383
- matchPatterns: Vn,
396
+ matchPatterns: On,
384
397
  defaultMatchWidth: "wide",
385
- parsePatterns: On,
398
+ parsePatterns: Kn,
386
399
  defaultParseWidth: "any"
387
400
  }),
388
401
  dayPeriod: ke({
389
- matchPatterns: Kn,
402
+ matchPatterns: qn,
390
403
  defaultMatchWidth: "any",
391
- parsePatterns: qn,
404
+ parsePatterns: Yn,
392
405
  defaultParseWidth: "any"
393
406
  })
394
407
  }, ge = {
395
408
  code: "nb",
396
- formatDistance: Cn,
397
- formatLong: _n,
398
- formatRelative: An,
399
- localize: En,
400
- match: Yn,
409
+ formatDistance: wn,
410
+ formatLong: Dn,
411
+ formatRelative: Ln,
412
+ localize: $n,
413
+ match: Zn,
401
414
  options: {
402
415
  weekStartsOn: 1,
403
416
  firstWeekContainsDate: 4
404
417
  }
405
- }, qe = ({ title: t, ...e }) => /* @__PURE__ */ a(
418
+ }, qe = ({ title: t, ...e }) => /* @__PURE__ */ s(
406
419
  "svg",
407
420
  {
408
421
  xmlns: "http://www.w3.org/2000/svg",
@@ -428,7 +441,7 @@ const Tn = {
428
441
  }
429
442
  );
430
443
  qe.displayName = "ChevronLeftIcon";
431
- const Ye = ({ title: t, ...e }) => /* @__PURE__ */ a(
444
+ const Ye = ({ title: t, ...e }) => /* @__PURE__ */ s(
432
445
  "svg",
433
446
  {
434
447
  xmlns: "http://www.w3.org/2000/svg",
@@ -454,19 +467,19 @@ const Ye = ({ title: t, ...e }) => /* @__PURE__ */ a(
454
467
  }
455
468
  );
456
469
  Ye.displayName = "ChevronRightIcon";
457
- const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "_monthYear_htlea_23", Qn = "_navigationButtons_htlea_34", eo = "_grid_htlea_43", to = "_dayNameCell_htlea_51", no = "_dateCell_htlea_69", oo = "_dateNumberContainer_htlea_95", ro = "_otherMonth_htlea_108", ao = "_disabled_htlea_108", so = "_selectedDate_htlea_134", ee = {
458
- calendarContainer: Zn,
459
- calendarHeader: Xn,
460
- monthYear: Jn,
461
- navigationButtons: Qn,
462
- grid: eo,
463
- dayNameCell: to,
464
- dateCell: no,
465
- dateNumberContainer: oo,
466
- otherMonth: ro,
470
+ const Xn = "_calendarContainer_htlea_1", Jn = "_calendarHeader_htlea_16", Qn = "_monthYear_htlea_23", eo = "_navigationButtons_htlea_34", to = "_grid_htlea_43", no = "_dayNameCell_htlea_51", oo = "_dateCell_htlea_69", ro = "_dateNumberContainer_htlea_95", so = "_otherMonth_htlea_108", ao = "_disabled_htlea_108", io = "_selectedDate_htlea_134", ee = {
471
+ calendarContainer: Xn,
472
+ calendarHeader: Jn,
473
+ monthYear: Qn,
474
+ navigationButtons: eo,
475
+ grid: to,
476
+ dayNameCell: no,
477
+ dateCell: oo,
478
+ dateNumberContainer: ro,
479
+ otherMonth: so,
467
480
  disabled: ao,
468
- selectedDate: so
469
- }, io = {
481
+ selectedDate: io
482
+ }, lo = {
470
483
  NO: {
471
484
  // Header
472
485
  header: {
@@ -2551,19 +2564,19 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2551
2564
  openDatePicker: "Open date picker"
2552
2565
  }
2553
2566
  }
2554
- }, je = Xe(void 0), Fs = ({ children: t }) => {
2555
- const [e, r] = Y("NO"), d = (h) => {
2556
- const k = h.split(".");
2557
- let u = io[e];
2558
- for (const x of k) {
2559
- if (u[x] === void 0)
2567
+ }, je = Xe(void 0), Ba = ({ children: t }) => {
2568
+ const [e, o] = Y("NO"), d = (h) => {
2569
+ const f = h.split(".");
2570
+ let c = lo[e];
2571
+ for (const k of f) {
2572
+ if (c[k] === void 0)
2560
2573
  return console.warn(`Translation missing for key: ${h} in language: ${e}`), h;
2561
- u = u[x];
2574
+ c = c[k];
2562
2575
  }
2563
- return u;
2576
+ return c;
2564
2577
  };
2565
- return /* @__PURE__ */ n(je.Provider, { value: { language: e, setLanguage: r, t: d }, children: t });
2566
- }, Bs = () => {
2578
+ return /* @__PURE__ */ n(je.Provider, { value: { language: e, setLanguage: o, t: d }, children: t });
2579
+ }, Ea = () => {
2567
2580
  const t = He(je);
2568
2581
  if (t === void 0)
2569
2582
  throw new Error("useLanguage must be used within a LanguageProvider");
@@ -2629,76 +2642,76 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2629
2642
  "dateInput.openDatePicker": "Åpne datovelger"
2630
2643
  })[e] || e
2631
2644
  } : t;
2632
- }, lo = (t) => {
2633
- const e = me(t), r = Ve(e, { locale: ge }), d = Oe(r, 41);
2634
- return dn({ start: r, end: d });
2635
- }, Pe = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), co = ({
2645
+ }, co = (t) => {
2646
+ const e = me(t), o = Ve(e, { locale: ge }), d = Oe(o, 41);
2647
+ return dn({ start: o, end: d });
2648
+ }, Pe = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), po = ({
2636
2649
  initialDate: t = /* @__PURE__ */ new Date(),
2637
2650
  selectedDate: e = null,
2638
2651
  // Prop for valgt dato
2639
- onDateSelect: r,
2652
+ onDateSelect: o,
2640
2653
  "data-color": d,
2641
2654
  // <-- Destrukturert
2642
2655
  "data-size": h
2643
2656
  // <-- Destrukturert
2644
2657
  }) => {
2645
- const { t: k } = ye();
2658
+ const { t: f } = ye();
2646
2659
  $(() => {
2647
- const c = "rk-datepicker-inline-styles";
2648
- if (typeof document > "u" || document.getElementById(c)) return;
2649
- const A = po(ee), S = document.createElement("style");
2650
- S.id = c, S.textContent = A, document.head.appendChild(S);
2660
+ const p = "rk-datepicker-inline-styles";
2661
+ if (typeof document > "u" || document.getElementById(p)) return;
2662
+ const L = mo(ee), S = document.createElement("style");
2663
+ S.id = p, S.textContent = L, document.head.appendChild(S);
2651
2664
  }, []);
2652
- const [u, x] = Y(
2665
+ const [c, k] = Y(
2653
2666
  me(e && Ie(e) ? e : t)
2654
2667
  );
2655
2668
  $(() => {
2656
2669
  if (e && Ie(e)) {
2657
- const c = me(e);
2658
- Fe(c, u) || x(c);
2670
+ const p = me(e);
2671
+ Fe(p, c) || k(p);
2659
2672
  }
2660
2673
  }, [e]);
2661
- const F = ue(() => me(/* @__PURE__ */ new Date()), []), C = ue(() => !1, [u, F]), U = ue(
2662
- () => lo(u),
2663
- [u]
2674
+ const D = ue(() => me(/* @__PURE__ */ new Date()), []), C = ue(() => !1, [c, D]), U = ue(
2675
+ () => co(c),
2676
+ [c]
2664
2677
  ), w = ue(() => {
2665
- const c = Ve(/* @__PURE__ */ new Date(), { locale: ge });
2666
- return Array.from({ length: 7 }).map((A, S) => {
2667
- const R = he(Oe(c, S), "EEEEEE", { locale: ge });
2678
+ const p = Ve(/* @__PURE__ */ new Date(), { locale: ge });
2679
+ return Array.from({ length: 7 }).map((L, S) => {
2680
+ const R = he(Oe(p, S), "EEEEEE", { locale: ge });
2668
2681
  return Pe(R);
2669
2682
  });
2670
2683
  }, []), P = re(() => {
2671
- C || x((c) => me(rn(c, 1)));
2672
- }, [C]), M = re(() => {
2673
- x((c) => me(an(c, 1)));
2684
+ C || k((p) => me(rn(p, 1)));
2685
+ }, [C]), j = re(() => {
2686
+ k((p) => me(sn(p, 1)));
2674
2687
  }, []), l = re(
2675
- (c) => {
2676
- r && r(c);
2688
+ (p) => {
2689
+ o && o(p);
2677
2690
  },
2678
- [r]
2691
+ [o]
2679
2692
  ), te = re(
2680
- (c, A) => {
2681
- (c.key === "Enter" || c.key === " ") && (c.preventDefault(), l(A));
2693
+ (p, L) => {
2694
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), l(L));
2682
2695
  },
2683
2696
  [l]
2684
- ), z = he(u, "MMMM", { locale: ge }), B = he(u, "yyyy", { locale: ge }), X = `${Pe(z)} ${B}`;
2685
- return /* @__PURE__ */ a(
2697
+ ), z = he(c, "MMMM", { locale: ge }), B = he(c, "yyyy", { locale: ge }), X = `${Pe(z)} ${B}`;
2698
+ return /* @__PURE__ */ s(
2686
2699
  "div",
2687
2700
  {
2688
2701
  className: ee.calendarContainer,
2689
2702
  "data-color": d,
2690
2703
  "data-size": h,
2691
2704
  children: [
2692
- /* @__PURE__ */ a("div", { className: ee.calendarHeader, children: [
2705
+ /* @__PURE__ */ s("div", { className: ee.calendarHeader, children: [
2693
2706
  /* @__PURE__ */ n("span", { className: ee.monthYear, children: X }),
2694
- /* @__PURE__ */ a("div", { className: ee.navigationButtons, children: [
2707
+ /* @__PURE__ */ s("div", { className: ee.navigationButtons, children: [
2695
2708
  /* @__PURE__ */ n(
2696
2709
  Me,
2697
2710
  {
2698
2711
  variant: "tertiary",
2699
2712
  icon: !0,
2700
2713
  onClick: P,
2701
- "aria-label": k("datePicker.previousMonth"),
2714
+ "aria-label": f("datePicker.previousMonth"),
2702
2715
  disabled: C,
2703
2716
  children: /* @__PURE__ */ n(qe, {})
2704
2717
  }
@@ -2708,18 +2721,18 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2708
2721
  {
2709
2722
  variant: "tertiary",
2710
2723
  icon: !0,
2711
- onClick: M,
2712
- "aria-label": k("datePicker.nextMonth"),
2724
+ onClick: j,
2725
+ "aria-label": f("datePicker.nextMonth"),
2713
2726
  children: /* @__PURE__ */ n(Ye, {})
2714
2727
  }
2715
2728
  )
2716
2729
  ] })
2717
2730
  ] }),
2718
- /* @__PURE__ */ n("div", { className: ee.grid, children: w.map((c) => /* @__PURE__ */ n("div", { className: ee.dayNameCell, children: c }, c)) }),
2719
- /* @__PURE__ */ n("div", { className: ee.grid, children: U.map((c) => {
2720
- const A = Fe(c, u), S = e && Ie(e) && sn(c, e), R = ln(c), I = [
2731
+ /* @__PURE__ */ n("div", { className: ee.grid, children: w.map((p) => /* @__PURE__ */ n("div", { className: ee.dayNameCell, children: p }, p)) }),
2732
+ /* @__PURE__ */ n("div", { className: ee.grid, children: U.map((p) => {
2733
+ const L = Fe(p, c), S = e && Ie(e) && an(p, e), R = ln(p), I = [
2721
2734
  ee.dateCell,
2722
- A ? "" : ee.otherMonth,
2735
+ L ? "" : ee.otherMonth,
2723
2736
  S ? ee.selectedDate : "",
2724
2737
  // Utheving basert på prop
2725
2738
  R && !S ? ee.todayDate : ""
@@ -2728,23 +2741,23 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2728
2741
  "div",
2729
2742
  {
2730
2743
  className: I,
2731
- onClick: () => l(c),
2732
- onKeyDown: (G) => te(G, c),
2744
+ onClick: () => l(p),
2745
+ onKeyDown: (G) => te(G, p),
2733
2746
  role: "button",
2734
2747
  tabIndex: 0,
2735
2748
  "aria-pressed": S ?? !1,
2736
- "aria-label": he(c, "PPP", { locale: ge }),
2737
- children: /* @__PURE__ */ n("span", { className: ee.dateNumberContainer, children: he(c, "d") })
2749
+ "aria-label": he(p, "PPP", { locale: ge }),
2750
+ children: /* @__PURE__ */ n("span", { className: ee.dateNumberContainer, children: he(p, "d") })
2738
2751
  },
2739
- c.toISOString()
2752
+ p.toISOString()
2740
2753
  );
2741
2754
  }) })
2742
2755
  ]
2743
2756
  }
2744
2757
  );
2745
2758
  };
2746
- co.displayName = "DatePicker";
2747
- function po(t) {
2759
+ po.displayName = "DatePicker";
2760
+ function mo(t) {
2748
2761
  return `
2749
2762
  .${t.calendarContainer} {
2750
2763
  display: inline-flex;
@@ -2904,60 +2917,60 @@ function po(t) {
2904
2917
  }
2905
2918
  `;
2906
2919
  }
2907
- const mo = "_fieldset_16fx7_2", go = "_description_16fx7_14", uo = "_error_16fx7_21", ho = "_inputWrapper_16fx7_30", fo = "_inputWrapperError_16fx7_42", ko = "_suffixButton_16fx7_80", vo = "_suffixButtonInteractive_16fx7_100", le = {
2908
- fieldset: mo,
2909
- description: go,
2910
- error: uo,
2911
- inputWrapper: ho,
2912
- inputWrapperError: fo,
2913
- suffixButton: ko,
2914
- suffixButtonInteractive: vo
2920
+ const go = "_fieldset_16fx7_2", uo = "_description_16fx7_14", ho = "_error_16fx7_21", fo = "_inputWrapper_16fx7_30", ko = "_inputWrapperError_16fx7_42", vo = "_suffixButton_16fx7_80", bo = "_suffixButtonInteractive_16fx7_100", le = {
2921
+ fieldset: go,
2922
+ description: uo,
2923
+ error: ho,
2924
+ inputWrapper: fo,
2925
+ inputWrapperError: ko,
2926
+ suffixButton: vo,
2927
+ suffixButtonInteractive: bo
2915
2928
  }, ze = (t) => {
2916
- const e = t.slice(0, 2), r = t.slice(2, 4), d = t.slice(4, 8);
2917
- return t.length > 4 ? `${e}.${r}.${d}` : t.length > 2 ? `${e}.${r}` : t.length > 0 ? e : "";
2929
+ const e = t.slice(0, 2), o = t.slice(2, 4), d = t.slice(4, 8);
2930
+ return t.length > 4 ? `${e}.${o}.${d}` : t.length > 2 ? `${e}.${o}` : t.length > 0 ? e : "";
2918
2931
  }, Re = (t) => (t || "").replace(/\D/g, ""), Ge = (t) => {
2919
2932
  let e = t;
2920
2933
  if (e.length >= 2) {
2921
- const r = parseInt(e.substring(0, 2), 10);
2922
- !isNaN(r) && r > 31 && (e = "31" + e.substring(2));
2934
+ const o = parseInt(e.substring(0, 2), 10);
2935
+ !isNaN(o) && o > 31 && (e = "31" + e.substring(2));
2923
2936
  }
2924
2937
  if (e.length >= 4) {
2925
- const r = parseInt(e.substring(2, 4), 10);
2926
- !isNaN(r) && r > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
2938
+ const o = parseInt(e.substring(2, 4), 10);
2939
+ !isNaN(o) && o > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
2927
2940
  }
2928
2941
  return e.slice(0, 8);
2929
- }, bo = ae(
2942
+ }, yo = se(
2930
2943
  (t, e) => {
2931
- const { t: r } = ye();
2944
+ const { t: o } = ye();
2932
2945
  $(() => {
2933
- const N = "rk-dateinput-inline-styles";
2934
- if (typeof document > "u" || document.getElementById(N)) return;
2935
- const ie = yo(le), se = document.createElement("style");
2936
- se.id = N, se.textContent = ie, document.head.appendChild(se);
2946
+ const M = "rk-dateinput-inline-styles";
2947
+ if (typeof document > "u" || document.getElementById(M)) return;
2948
+ const ie = xo(le), ae = document.createElement("style");
2949
+ ae.id = M, ae.textContent = ie, document.head.appendChild(ae);
2937
2950
  }, []);
2938
2951
  const {
2939
2952
  label: d,
2940
2953
  suffixIcon: h,
2941
- onSuffixClick: k,
2942
- className: u,
2954
+ onSuffixClick: f,
2955
+ className: c,
2943
2956
  // For ytre fieldset
2944
- inputWrapperClassName: x,
2957
+ inputWrapperClassName: k,
2945
2958
  // For input wrapper div
2946
- inputClassName: F,
2959
+ inputClassName: D,
2947
2960
  // For selve input-elementet
2948
2961
  value: C,
2949
2962
  defaultValue: U,
2950
2963
  onChange: w,
2951
2964
  readOnly: P,
2952
- placeholder: M = "dd.mm.åååå",
2965
+ placeholder: j = "dd.mm.åååå",
2953
2966
  id: l,
2954
2967
  name: te,
2955
2968
  required: z,
2956
2969
  disabled: B,
2957
2970
  onClick: X,
2958
- onFocus: c,
2971
+ onFocus: p,
2959
2972
  // Send ekstern onFocus videre
2960
- onBlur: A,
2973
+ onBlur: L,
2961
2974
  // Send ekstern onBlur videre
2962
2975
  autoComplete: S = "off",
2963
2976
  "aria-label": R,
@@ -2969,58 +2982,58 @@ const mo = "_fieldset_16fx7_2", go = "_description_16fx7_14", uo = "_error_16fx7
2969
2982
  // <-- Destrukturering
2970
2983
  "data-size": W,
2971
2984
  // <-- Destrukturering
2972
- ...L
2973
- } = t, g = C !== void 0, f = Je(null);
2985
+ ...N
2986
+ } = t, u = C !== void 0, v = Je(null);
2974
2987
  Ne.useImperativeHandle(
2975
2988
  e,
2976
- () => f.current
2989
+ () => v.current
2977
2990
  );
2978
- const b = re(
2979
- (N) => {
2980
- const ie = Re(N), se = Ge(ie);
2981
- return ze(se);
2991
+ const y = re(
2992
+ (M) => {
2993
+ const ie = Re(M), ae = Ge(ie);
2994
+ return ze(ae);
2982
2995
  },
2983
2996
  []
2984
- ), [y, ne] = Y(
2985
- () => b(C ?? U)
2997
+ ), [x, ne] = Y(
2998
+ () => y(C ?? U)
2986
2999
  );
2987
3000
  $(() => {
2988
- if (g) {
2989
- const N = b(C);
2990
- N !== y && (ne(N), f.current && f.current.value !== N && (f.current.value = N));
3001
+ if (u) {
3002
+ const M = y(C);
3003
+ M !== x && (ne(M), v.current && v.current.value !== M && (v.current.value = M));
2991
3004
  }
2992
- }, [C, g, y, b]);
3005
+ }, [C, u, x, y]);
2993
3006
  const Q = re(
2994
- (N) => {
2995
- const ie = N.target, se = ie.value, pe = y, we = Re(se).slice(0, 8), i = Ge(we), p = ze(i);
2996
- let v = 0;
3007
+ (M) => {
3008
+ const ie = M.target, ae = ie.value, pe = x, we = Re(ae).slice(0, 8), i = Ge(we), m = ze(i);
3009
+ let b = 0;
2997
3010
  const q = i.length;
2998
- q <= 2 ? v = q : q <= 4 ? v = q + 1 : v = q + 2, v = Math.min(v, p.length), requestAnimationFrame(() => {
2999
- if (f.current && (ne(p), f.current.value = p, f.current.setSelectionRange(v, v), (p !== pe || g) && w)) {
3011
+ q <= 2 ? b = q : q <= 4 ? b = q + 1 : b = q + 2, b = Math.min(b, m.length), requestAnimationFrame(() => {
3012
+ if (v.current && (ne(m), v.current.value = m, v.current.setSelectionRange(b, b), (m !== pe || u) && w)) {
3000
3013
  const Se = {
3001
- ...N,
3002
- target: { ...ie, value: p }
3014
+ ...M,
3015
+ target: { ...ie, value: m }
3003
3016
  };
3004
- w(Se, p);
3017
+ w(Se, m);
3005
3018
  }
3006
3019
  });
3007
3020
  },
3008
- [y, g, w, b]
3009
- ), _ = [le.fieldset, u].filter(Boolean).join(" "), j = [
3021
+ [x, u, w, y]
3022
+ ), _ = [le.fieldset, c].filter(Boolean).join(" "), F = [
3010
3023
  le.inputWrapper,
3011
- x,
3024
+ k,
3012
3025
  O ? le.inputWrapperError : ""
3013
3026
  ].filter(Boolean).join(" "), K = [
3014
- F
3027
+ D
3015
3028
  ].filter(Boolean).join(" "), T = [
3016
3029
  le.suffixButton,
3017
- k ? le.suffixButtonInteractive : ""
3030
+ f ? le.suffixButtonInteractive : ""
3018
3031
  ].filter(Boolean).join(" ");
3019
3032
  !d && !R && !I && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
3020
- const Z = d && typeof d == "string" ? I || `${l}-label` : void 0, ce = G ? `${l}-desc` : void 0, m = O ? `${l}-err` : void 0, D = [ce, m].filter(Boolean).join(" ") || void 0;
3033
+ const Z = d && typeof d == "string" ? I || `${l}-label` : void 0, ce = G ? `${l}-desc` : void 0, g = O ? `${l}-err` : void 0, A = [ce, g].filter(Boolean).join(" ") || void 0;
3021
3034
  return (
3022
3035
  // --- Bruk data-color og data-size på den ytre wrapperen ---
3023
- /* @__PURE__ */ a(
3036
+ /* @__PURE__ */ s(
3024
3037
  "div",
3025
3038
  {
3026
3039
  className: _,
@@ -3029,33 +3042,33 @@ const mo = "_fieldset_16fx7_2", go = "_description_16fx7_14", uo = "_error_16fx7
3029
3042
  children: [
3030
3043
  d && typeof d == "string" ? /* @__PURE__ */ n("label", { id: Z, htmlFor: l, children: d }) : d,
3031
3044
  G && /* @__PURE__ */ n("p", { id: ce, className: le.description, children: G }),
3032
- /* @__PURE__ */ a("div", { className: j, children: [
3045
+ /* @__PURE__ */ s("div", { className: F, children: [
3033
3046
  /* @__PURE__ */ n(
3034
3047
  "input",
3035
3048
  {
3036
- ref: f,
3049
+ ref: v,
3037
3050
  type: "text",
3038
3051
  inputMode: "numeric",
3039
3052
  pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
3040
3053
  maxLength: 10,
3041
- value: y,
3054
+ value: x,
3042
3055
  readOnly: P,
3043
- placeholder: M,
3056
+ placeholder: j,
3044
3057
  id: l,
3045
3058
  name: te,
3046
3059
  required: z,
3047
3060
  disabled: B,
3048
3061
  onClick: X,
3049
3062
  onChange: Q,
3050
- onFocus: c,
3051
- onBlur: A,
3063
+ onFocus: p,
3064
+ onBlur: L,
3052
3065
  autoComplete: S,
3053
3066
  "aria-label": R,
3054
3067
  "aria-labelledby": Z,
3055
- "aria-describedby": D,
3068
+ "aria-describedby": A,
3056
3069
  "aria-invalid": !!O,
3057
3070
  className: K,
3058
- ...L
3071
+ ...N
3059
3072
  }
3060
3073
  ),
3061
3074
  h && /* @__PURE__ */ n(
@@ -3063,24 +3076,24 @@ const mo = "_fieldset_16fx7_2", go = "_description_16fx7_14", uo = "_error_16fx7
3063
3076
  {
3064
3077
  type: "button",
3065
3078
  className: T,
3066
- onClick: B ? void 0 : k,
3067
- tabIndex: k && !B ? 0 : -1,
3068
- "aria-hidden": !k,
3079
+ onClick: B ? void 0 : f,
3080
+ tabIndex: f && !B ? 0 : -1,
3081
+ "aria-hidden": !f,
3069
3082
  disabled: B,
3070
- "aria-label": k ? r("dateInput.openDatePicker") : void 0,
3083
+ "aria-label": f ? o("dateInput.openDatePicker") : void 0,
3071
3084
  children: h
3072
3085
  }
3073
3086
  )
3074
3087
  ] }),
3075
- O && /* @__PURE__ */ n("p", { id: m, className: le.error, role: "alert", children: O })
3088
+ O && /* @__PURE__ */ n("p", { id: g, className: le.error, role: "alert", children: O })
3076
3089
  ]
3077
3090
  }
3078
3091
  )
3079
3092
  );
3080
3093
  }
3081
3094
  );
3082
- bo.displayName = "DateInput";
3083
- function yo(t) {
3095
+ yo.displayName = "DateInput";
3096
+ function xo(t) {
3084
3097
  return `
3085
3098
  .${t.fieldset} {
3086
3099
  margin-bottom: var(--ds-spacing-4, 16px);
@@ -3173,59 +3186,59 @@ function yo(t) {
3173
3186
  }
3174
3187
  `;
3175
3188
  }
3176
- const xo = "_carouselContainer_eo3g5_1", To = "_viewport_eo3g5_14", Co = "_slides_eo3g5_20", wo = "_slide_eo3g5_20", So = "_slideInner_eo3g5_40", Io = "_loaderOverlay_eo3g5_48", _o = "_image_eo3g5_58", Do = "_loaded_eo3g5_69", Ao = "_loading_eo3g5_73", Lo = "_empty_eo3g5_81", No = "_controls_eo3g5_87", Mo = "_arrows_eo3g5_97", jo = "_dots_eo3g5_107", Fo = "_dot_eo3g5_107", Bo = "_dotActive_eo3g5_133", H = {
3177
- carouselContainer: xo,
3178
- viewport: To,
3179
- slides: Co,
3180
- slide: wo,
3181
- slideInner: So,
3182
- loaderOverlay: Io,
3183
- image: _o,
3184
- loaded: Do,
3185
- loading: Ao,
3186
- empty: Lo,
3187
- controls: No,
3188
- arrows: Mo,
3189
- dots: jo,
3190
- dot: Fo,
3191
- dotActive: Bo
3192
- }, Eo = mt, $o = ({
3189
+ const To = "_carouselContainer_eo3g5_1", Co = "_viewport_eo3g5_14", wo = "_slides_eo3g5_20", So = "_slide_eo3g5_20", Io = "_slideInner_eo3g5_40", _o = "_loaderOverlay_eo3g5_48", Do = "_image_eo3g5_58", Ao = "_loaded_eo3g5_69", Lo = "_loading_eo3g5_73", No = "_empty_eo3g5_81", Mo = "_controls_eo3g5_87", jo = "_arrows_eo3g5_97", Fo = "_dots_eo3g5_107", Bo = "_dot_eo3g5_107", Eo = "_dotActive_eo3g5_133", H = {
3190
+ carouselContainer: To,
3191
+ viewport: Co,
3192
+ slides: wo,
3193
+ slide: So,
3194
+ slideInner: Io,
3195
+ loaderOverlay: _o,
3196
+ image: Do,
3197
+ loaded: Ao,
3198
+ loading: Lo,
3199
+ empty: No,
3200
+ controls: Mo,
3201
+ arrows: jo,
3202
+ dots: Fo,
3203
+ dot: Bo,
3204
+ dotActive: Eo
3205
+ }, $o = mt, Po = ({
3193
3206
  images: t,
3194
3207
  autoPlay: e = !1,
3195
- autoDelay: r = 5,
3208
+ autoDelay: o = 5,
3196
3209
  showArrows: d = !0,
3197
3210
  showDots: h = !0,
3198
- variant: k,
3199
- slidesPerView: u = 1,
3200
- slideSpacing: x = 16,
3201
- cornerRadius: F = 0,
3211
+ variant: f,
3212
+ slidesPerView: c = 1,
3213
+ slideSpacing: k = 16,
3214
+ cornerRadius: D = 0,
3202
3215
  "data-color": C,
3203
3216
  "data-size": U
3204
3217
  }) => {
3205
3218
  const { t: w } = ye();
3206
3219
  $(() => {
3207
- const f = "rk-carousel-inline-styles";
3208
- if (typeof document > "u" || document.getElementById(f)) return;
3209
- const b = Po(H), y = document.createElement("style");
3210
- y.id = f, y.textContent = b, document.head.appendChild(y);
3220
+ const v = "rk-carousel-inline-styles";
3221
+ if (typeof document > "u" || document.getElementById(v)) return;
3222
+ const y = zo(H), x = document.createElement("style");
3223
+ x.id = v, x.textContent = y, document.head.appendChild(x);
3211
3224
  }, []);
3212
3225
  const P = {
3213
3226
  loop: !0,
3214
3227
  align: "start",
3215
3228
  containScroll: "trimSnaps",
3216
3229
  slidesToScroll: 1
3217
- }, [M, l] = cn(P), [te, z] = Y(0), [B, X] = Y([]), [c, A] = Y([]);
3230
+ }, [j, l] = cn(P), [te, z] = Y(0), [B, X] = Y([]), [p, L] = Y([]);
3218
3231
  $(() => {
3219
- A(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
3232
+ L(new Array((t == null ? void 0 : t.length) || 0).fill(!1));
3220
3233
  }, [t]);
3221
- const S = re((f) => {
3222
- A((b) => {
3223
- const y = [...b];
3224
- return y[f] = !0, y;
3234
+ const S = re((v) => {
3235
+ L((y) => {
3236
+ const x = [...y];
3237
+ return x[v] = !0, x;
3225
3238
  });
3226
- }, []), R = ue(() => r * 1e3, [r]), I = re(() => {
3239
+ }, []), R = ue(() => o * 1e3, [o]), I = re(() => {
3227
3240
  l && z(l.selectedScrollSnap());
3228
- }, [l]), G = re((f) => l && l.scrollTo(f), [l]), O = re(() => l && l.scrollPrev(), [l]), J = re(() => l && l.scrollNext(), [l]);
3241
+ }, [l]), G = re((v) => l && l.scrollTo(v), [l]), O = re(() => l && l.scrollPrev(), [l]), J = re(() => l && l.scrollNext(), [l]);
3229
3242
  $(() => {
3230
3243
  if (l)
3231
3244
  return l.on("select", I), l.on("reInit", I), X(l.scrollSnapList()), () => {
@@ -3233,68 +3246,68 @@ const xo = "_carouselContainer_eo3g5_1", To = "_viewport_eo3g5_14", Co = "_slide
3233
3246
  };
3234
3247
  }, [l, I]), $(() => {
3235
3248
  l && (l.reInit(), X(l.scrollSnapList()));
3236
- }, [l, t, u, x]), $(() => {
3249
+ }, [l, t, c, k]), $(() => {
3237
3250
  if (!e || !l || !t || t.length <= 1) return;
3238
- const f = window.setInterval(() => {
3251
+ const v = window.setInterval(() => {
3239
3252
  l.canScrollNext() && l.scrollNext();
3240
3253
  }, R);
3241
3254
  return () => {
3242
- window.clearInterval(f);
3255
+ window.clearInterval(v);
3243
3256
  };
3244
3257
  }, [e, R, l, t]);
3245
- const W = Math.max(1, u), L = `${100 / W}%`, g = x / 2;
3246
- return /* @__PURE__ */ a(
3258
+ const W = Math.max(1, c), N = `${100 / W}%`, u = k / 2;
3259
+ return /* @__PURE__ */ s(
3247
3260
  "div",
3248
3261
  {
3249
3262
  className: H.carouselContainer,
3250
3263
  "data-color": C,
3251
3264
  "data-size": U,
3252
- "data-variant": k,
3265
+ "data-variant": f,
3253
3266
  children: [
3254
- /* @__PURE__ */ n("div", { className: H.viewport, ref: M, children: /* @__PURE__ */ n(
3267
+ /* @__PURE__ */ n("div", { className: H.viewport, ref: j, children: /* @__PURE__ */ n(
3255
3268
  "div",
3256
3269
  {
3257
3270
  className: H.slides,
3258
3271
  style: {
3259
- marginLeft: `-${g}px`,
3260
- marginRight: `-${g}px`
3272
+ marginLeft: `-${u}px`,
3273
+ marginRight: `-${u}px`
3261
3274
  },
3262
- children: t && t.length > 0 ? t.map((f, b) => /* @__PURE__ */ n(
3275
+ children: t && t.length > 0 ? t.map((v, y) => /* @__PURE__ */ n(
3263
3276
  "div",
3264
3277
  {
3265
3278
  className: H.slide,
3266
3279
  style: {
3267
- flex: `0 0 ${L}`,
3268
- paddingLeft: `${g}px`,
3269
- paddingRight: `${g}px`,
3270
- borderRadius: F > 0 ? `${F}px` : void 0,
3280
+ flex: `0 0 ${N}`,
3281
+ paddingLeft: `${u}px`,
3282
+ paddingRight: `${u}px`,
3283
+ borderRadius: D > 0 ? `${D}px` : void 0,
3271
3284
  overflow: "hidden"
3272
3285
  // Ensure radius clips content
3273
3286
  },
3274
- children: /* @__PURE__ */ a("div", { className: H.slideInner, style: { borderRadius: `${F}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
3275
- !c[b] && /* @__PURE__ */ n("div", { className: H.loaderOverlay, children: /* @__PURE__ */ n(Eo, { "aria-label": w("carousel.loading") }) }),
3287
+ children: /* @__PURE__ */ s("div", { className: H.slideInner, style: { borderRadius: `${D}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
3288
+ !p[y] && /* @__PURE__ */ n("div", { className: H.loaderOverlay, children: /* @__PURE__ */ n($o, { "aria-label": w("carousel.loading") }) }),
3276
3289
  /* @__PURE__ */ n(
3277
3290
  "img",
3278
3291
  {
3279
- className: `${H.image} ${c[b] ? H.loaded : H.loadingImage}`,
3280
- src: f.src,
3281
- alt: f.alt,
3282
- loading: b < W ? "eager" : "lazy",
3292
+ className: `${H.image} ${p[y] ? H.loaded : H.loadingImage}`,
3293
+ src: v.src,
3294
+ alt: v.alt,
3295
+ loading: y < W ? "eager" : "lazy",
3283
3296
  crossOrigin: "anonymous",
3284
- onLoad: () => S(b),
3285
- onError: (y) => {
3286
- y.target.style.display = "none", S(b);
3297
+ onLoad: () => S(y),
3298
+ onError: (x) => {
3299
+ x.target.style.display = "none", S(y);
3287
3300
  }
3288
3301
  }
3289
3302
  )
3290
3303
  ] })
3291
3304
  },
3292
- `image-${b}-${f.src}`
3305
+ `image-${y}-${v.src}`
3293
3306
  )) : /* @__PURE__ */ n("div", { className: H.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ n("div", { className: H.empty, children: "Ingen bilder" }) })
3294
3307
  }
3295
3308
  ) }),
3296
- (d || h && t && t.length > 1) && /* @__PURE__ */ a("div", { className: H.controls, "aria-hidden": "false", children: [
3297
- d && /* @__PURE__ */ a("div", { className: H.arrows, children: [
3309
+ (d || h && t && t.length > 1) && /* @__PURE__ */ s("div", { className: H.controls, "aria-hidden": "false", children: [
3310
+ d && /* @__PURE__ */ s("div", { className: H.arrows, children: [
3298
3311
  /* @__PURE__ */ n(
3299
3312
  de,
3300
3313
  {
@@ -3318,19 +3331,19 @@ const xo = "_carouselContainer_eo3g5_1", To = "_viewport_eo3g5_14", Co = "_slide
3318
3331
  }
3319
3332
  )
3320
3333
  ] }),
3321
- h && t && t.length > 1 && /* @__PURE__ */ n("div", { className: H.dots, role: "tablist", "aria-label": w("carousel.imagePosition"), children: B.map((f, b) => {
3322
- const y = b === te;
3334
+ h && t && t.length > 1 && /* @__PURE__ */ n("div", { className: H.dots, role: "tablist", "aria-label": w("carousel.imagePosition"), children: B.map((v, y) => {
3335
+ const x = y === te;
3323
3336
  return /* @__PURE__ */ n(
3324
3337
  "button",
3325
3338
  {
3326
3339
  type: "button",
3327
- className: `${H.dot} ${y ? H.dotActive : ""}`,
3328
- onClick: () => G(b),
3329
- "aria-label": `${w("carousel.goToImage")} ${b + 1}`,
3330
- "aria-selected": y,
3340
+ className: `${H.dot} ${x ? H.dotActive : ""}`,
3341
+ onClick: () => G(y),
3342
+ "aria-label": `${w("carousel.goToImage")} ${y + 1}`,
3343
+ "aria-selected": x,
3331
3344
  role: "tab"
3332
3345
  },
3333
- `dot-${b}`
3346
+ `dot-${y}`
3334
3347
  );
3335
3348
  }) })
3336
3349
  ] })
@@ -3338,8 +3351,8 @@ const xo = "_carouselContainer_eo3g5_1", To = "_viewport_eo3g5_14", Co = "_slide
3338
3351
  }
3339
3352
  );
3340
3353
  };
3341
- $o.displayName = "Carousel";
3342
- function Po(t) {
3354
+ Po.displayName = "Carousel";
3355
+ function zo(t) {
3343
3356
  return `
3344
3357
  .${t.carouselContainer} {
3345
3358
  position: relative;
@@ -3511,11 +3524,11 @@ function Po(t) {
3511
3524
  }
3512
3525
  `;
3513
3526
  }
3514
- const zo = "_crossCorner_1caiu_1", Ro = "_shape_1caiu_6", Ae = {
3515
- crossCorner: zo,
3516
- shape: Ro
3527
+ const Ro = "_crossCorner_1caiu_1", Go = "_shape_1caiu_6", Ae = {
3528
+ crossCorner: Ro,
3529
+ shape: Go
3517
3530
  };
3518
- function Go(t) {
3531
+ function Wo(t) {
3519
3532
  return `
3520
3533
  .${t.crossCorner} {
3521
3534
  display: inline-block;
@@ -3542,38 +3555,38 @@ function Go(t) {
3542
3555
  }
3543
3556
  `;
3544
3557
  }
3545
- const Wo = {
3558
+ const Ho = {
3546
3559
  sm: 48,
3547
3560
  md: 68,
3548
3561
  lg: 96
3549
- }, Ho = {
3562
+ }, Uo = {
3550
3563
  "top-left": 270,
3551
3564
  "top-right": 0,
3552
3565
  "bottom-right": 90,
3553
3566
  "bottom-left": 180
3554
- }, ve = ae(
3567
+ }, ve = se(
3555
3568
  ({
3556
3569
  position: t = "top-left",
3557
3570
  size: e = "md",
3558
- className: r,
3571
+ className: o,
3559
3572
  "aria-label": d,
3560
3573
  "aria-hidden": h = !0,
3561
- "data-color": k,
3562
- "data-size": u,
3563
- ...x
3564
- }, F) => {
3574
+ "data-color": f,
3575
+ "data-size": c,
3576
+ ...k
3577
+ }, D) => {
3565
3578
  $(() => {
3566
3579
  const w = "rk-crosscorner-inline-styles";
3567
3580
  if (typeof document > "u" || document.getElementById(w)) return;
3568
- const P = Go(Ae), M = document.createElement("style");
3569
- M.id = w, M.textContent = P, document.head.appendChild(M);
3581
+ const P = Wo(Ae), j = document.createElement("style");
3582
+ j.id = w, j.textContent = P, document.head.appendChild(j);
3570
3583
  }, []);
3571
- const C = Wo[e], U = Ho[t];
3584
+ const C = Ho[e], U = Uo[t];
3572
3585
  return /* @__PURE__ */ n(
3573
3586
  "svg",
3574
3587
  {
3575
- ref: F,
3576
- className: `${Ae.crossCorner} ${r || ""}`,
3588
+ ref: D,
3589
+ className: `${Ae.crossCorner} ${o || ""}`,
3577
3590
  width: C,
3578
3591
  height: C,
3579
3592
  viewBox: "0 0 68 68",
@@ -3582,12 +3595,12 @@ const Wo = {
3582
3595
  "aria-label": d,
3583
3596
  "aria-hidden": h,
3584
3597
  role: h ? void 0 : "img",
3585
- "data-color": k,
3586
- "data-size": u,
3598
+ "data-color": f,
3599
+ "data-size": c,
3587
3600
  style: {
3588
3601
  transform: U ? `rotate(${U}deg)` : void 0
3589
3602
  },
3590
- ...x,
3603
+ ...k,
3591
3604
  children: /* @__PURE__ */ n(
3592
3605
  "path",
3593
3606
  {
@@ -3600,90 +3613,92 @@ const Wo = {
3600
3613
  }
3601
3614
  );
3602
3615
  ve.displayName = "CrossCorner";
3603
- const Es = gt, $s = ut, Ps = ht, V = ft, zs = xt, Rs = Tt, Gs = vt, Ws = yt, Hs = bt, Us = kt, Vs = Ct, Os = wt, Uo = It, Vo = St;
3604
- Uo.displayName = "Field.Description";
3605
- Vo.displayName = "Field.Counter";
3606
- const Ks = Ue, Oo = ae((t, e) => /* @__PURE__ */ n(_t, { ref: e, ...t }));
3607
- Oo.displayName = "Heading";
3616
+ const $a = gt, Pa = ut, za = ht, V = ft, Ra = xt, Ga = Tt, Wa = vt, Ha = yt, Ua = bt, Va = kt, Oa = Ct, Ka = wt, Vo = It, Oo = St;
3617
+ Vo.displayName = "Field.Description";
3618
+ Oo.displayName = "Field.Counter";
3619
+ const qa = Ue, Ko = se((t, e) => /* @__PURE__ */ n(_t, { ref: e, ...t }));
3620
+ Ko.displayName = "Heading";
3608
3621
  const Ze = Dt;
3609
3622
  Ze.displayName = "Input";
3610
- const Ko = ae((t, e) => /* @__PURE__ */ n(At, { ref: e, ...t }));
3611
- Ko.displayName = "Label";
3612
- const oe = Lt, qs = Nt, qo = Mt, Ys = Bt, Zs = Ft, Xs = jt, Js = Et;
3613
- qo.displayName = "Pagination";
3614
- const be = ae(
3623
+ const qo = se((t, e) => /* @__PURE__ */ n(At, { ref: e, ...t }));
3624
+ qo.displayName = "Label";
3625
+ const oe = Lt, Ya = Nt, Yo = Mt, Za = Bt, Xa = Ft, Ja = jt, Qa = Et;
3626
+ Yo.displayName = "Pagination";
3627
+ const be = se(
3615
3628
  (t, e) => /* @__PURE__ */ n($t, { ref: e, ...t })
3616
3629
  );
3617
3630
  be.displayName = "Paragraph";
3618
- const Qs = Pt, ei = zt, ti = Rt, xe = Object.assign(Gt, {
3631
+ const ei = Pt, ti = zt, ni = Rt, xe = Object.assign(Gt, {
3619
3632
  Button: Ut,
3620
3633
  ClearButton: Ht,
3621
3634
  Input: Wt
3622
- }), ni = Vt, oi = Ot, ri = Kt, Yo = qt;
3623
- Yo.displayName = "Suggestion";
3624
- const Le = Yt, ai = Zt, Te = Xt, Zo = ae(function({ shape: e, ...r }, d) {
3625
- const h = {};
3626
- return e === "rounded" && (h["data-shape"] = "rounded"), /* @__PURE__ */ n(Jt, { ref: d, ...r, ...h });
3635
+ }), oi = Vt, ri = Ot, si = Kt, Zo = qt;
3636
+ Zo.displayName = "Suggestion";
3637
+ const Le = Yt, ai = Zt, Te = Xt, Xo = se(function({ shape: e, style: o, ...d }, h) {
3638
+ const f = {};
3639
+ e === "rounded" && (f.borderRadius = "var(--ds-border-radius-xl)");
3640
+ const c = Object.keys(f).length === 0 && !o ? void 0 : { ...f, ...o }, k = {};
3641
+ return e === "rounded" && (k["data-shape"] = "rounded"), /* @__PURE__ */ n(Jt, { ref: h, ...d, ...k, style: c });
3627
3642
  });
3628
- Zo.displayName = "Tag";
3629
- const si = Qt, Xo = en, ii = tn, li = nn, Jo = ae((t, e) => /* @__PURE__ */ n(on, { ref: e, ...t }));
3630
- Jo.displayName = "ValidationMessage";
3631
- const Qo = "_header_p2hri_1", er = "_languageSwitch_p2hri_37", tr = "_searchOverlay_p2hri_41", nr = "_headerExtension_p2hri_46", or = "_headerExtensionTinted_p2hri_75", rr = "_languageLabel_p2hri_83", ar = "_languageLink_p2hri_88", sr = "_extensionContent_p2hri_93", ir = "_extensionDivider_p2hri_98", lr = "_extensionContentWrapper_p2hri_103", dr = "_headerInner_p2hri_199", cr = "_logoWrapper_p2hri_216", pr = "_logo_p2hri_216", mr = "_secondaryLogoWrapper_p2hri_239", gr = "_slotComponent_p2hri_248", ur = "_slotContainer_p2hri_258", hr = "_slotText_p2hri_266", fr = "_secondaryLogo_p2hri_239", kr = "_redCrossLogo_p2hri_293", vr = "_primaryLogo_p2hri_299", br = "_navItems_p2hri_303", yr = "_navLink_p2hri_312", xr = "_actions_p2hri_325", Tr = "_ctaButton_p2hri_333", Cr = "_themeToggle_p2hri_338", wr = "_userInfo_p2hri_343", Sr = "_userName_p2hri_349", Ir = "_loginLink_p2hri_356", _r = "_loginText_p2hri_365", Dr = "_underline_p2hri_372", Ar = "_searchButtonWrapper_p2hri_378", Lr = "_buttonText_p2hri_382", Nr = "_menuButton_p2hri_387", Mr = "_menuOverlay_p2hri_410", jr = "_searchContent_p2hri_444", Fr = "_menuContent_p2hri_454", Br = "_menuLeftColumn_p2hri_463", Er = "_menuRightColumn_p2hri_469", $r = "_slotContent_p2hri_483", Pr = "_navList_p2hri_496", zr = "_menuUtilities_p2hri_503", Rr = "_menuBrand_p2hri_510", Gr = "_suggestionsSection_p2hri_514", Wr = "_suggestionsTitle_p2hri_520", Hr = "_searchResults_p2hri_529", Ur = "_resultList_p2hri_535", Vr = "_resultItem_p2hri_541", Or = "_resultLink_p2hri_549", Kr = "_suggestionIcon_p2hri_563", qr = "_suggestionText_p2hri_576", Yr = "_highlightedText_p2hri_583", Zr = "_remainingText_p2hri_588", Xr = "_viewAllLink_p2hri_601", Jr = "_noResults_p2hri_636", s = {
3632
- header: Qo,
3633
- languageSwitch: er,
3634
- searchOverlay: tr,
3635
- headerExtension: nr,
3636
- headerExtensionTinted: or,
3637
- languageLabel: rr,
3643
+ Xo.displayName = "Tag";
3644
+ const ii = Qt, Jo = en, li = tn, di = nn, Qo = se((t, e) => /* @__PURE__ */ n(on, { ref: e, ...t }));
3645
+ Qo.displayName = "ValidationMessage";
3646
+ const er = "_header_p2hri_1", tr = "_languageSwitch_p2hri_37", nr = "_searchOverlay_p2hri_41", or = "_headerExtension_p2hri_46", rr = "_headerExtensionTinted_p2hri_75", sr = "_languageLabel_p2hri_83", ar = "_languageLink_p2hri_88", ir = "_extensionContent_p2hri_93", lr = "_extensionDivider_p2hri_98", dr = "_extensionContentWrapper_p2hri_103", cr = "_headerInner_p2hri_199", pr = "_logoWrapper_p2hri_216", mr = "_logo_p2hri_216", gr = "_secondaryLogoWrapper_p2hri_239", ur = "_slotComponent_p2hri_248", hr = "_slotContainer_p2hri_258", fr = "_slotText_p2hri_266", kr = "_secondaryLogo_p2hri_239", vr = "_redCrossLogo_p2hri_293", br = "_primaryLogo_p2hri_299", yr = "_navItems_p2hri_303", xr = "_navLink_p2hri_312", Tr = "_actions_p2hri_325", Cr = "_ctaButton_p2hri_333", wr = "_themeToggle_p2hri_338", Sr = "_userInfo_p2hri_343", Ir = "_userName_p2hri_349", _r = "_loginLink_p2hri_356", Dr = "_loginText_p2hri_365", Ar = "_underline_p2hri_372", Lr = "_searchButtonWrapper_p2hri_378", Nr = "_buttonText_p2hri_382", Mr = "_menuButton_p2hri_387", jr = "_menuOverlay_p2hri_410", Fr = "_searchContent_p2hri_444", Br = "_menuContent_p2hri_454", Er = "_menuLeftColumn_p2hri_463", $r = "_menuRightColumn_p2hri_469", Pr = "_slotContent_p2hri_483", zr = "_navList_p2hri_496", Rr = "_menuUtilities_p2hri_503", Gr = "_menuBrand_p2hri_510", Wr = "_suggestionsSection_p2hri_514", Hr = "_suggestionsTitle_p2hri_520", Ur = "_searchResults_p2hri_529", Vr = "_resultList_p2hri_535", Or = "_resultItem_p2hri_541", Kr = "_resultLink_p2hri_549", qr = "_suggestionIcon_p2hri_563", Yr = "_suggestionText_p2hri_576", Zr = "_highlightedText_p2hri_583", Xr = "_remainingText_p2hri_588", Jr = "_viewAllLink_p2hri_601", Qr = "_noResults_p2hri_636", a = {
3647
+ header: er,
3648
+ languageSwitch: tr,
3649
+ searchOverlay: nr,
3650
+ headerExtension: or,
3651
+ headerExtensionTinted: rr,
3652
+ languageLabel: sr,
3638
3653
  languageLink: ar,
3639
- extensionContent: sr,
3640
- extensionDivider: ir,
3641
- extensionContentWrapper: lr,
3642
- headerInner: dr,
3643
- logoWrapper: cr,
3644
- logo: pr,
3645
- secondaryLogoWrapper: mr,
3646
- slotComponent: gr,
3647
- slotContainer: ur,
3648
- slotText: hr,
3649
- secondaryLogo: fr,
3650
- redCrossLogo: kr,
3651
- primaryLogo: vr,
3652
- navItems: br,
3653
- navLink: yr,
3654
- actions: xr,
3655
- ctaButton: Tr,
3656
- themeToggle: Cr,
3657
- userInfo: wr,
3658
- userName: Sr,
3659
- loginLink: Ir,
3660
- loginText: _r,
3661
- underline: Dr,
3662
- searchButtonWrapper: Ar,
3663
- buttonText: Lr,
3664
- menuButton: Nr,
3665
- menuOverlay: Mr,
3666
- searchContent: jr,
3667
- menuContent: Fr,
3668
- menuLeftColumn: Br,
3669
- menuRightColumn: Er,
3670
- slotContent: $r,
3671
- navList: Pr,
3672
- menuUtilities: zr,
3673
- menuBrand: Rr,
3674
- suggestionsSection: Gr,
3675
- suggestionsTitle: Wr,
3676
- searchResults: Hr,
3677
- resultList: Ur,
3678
- resultItem: Vr,
3679
- resultLink: Or,
3680
- suggestionIcon: Kr,
3681
- suggestionText: qr,
3682
- highlightedText: Yr,
3683
- remainingText: Zr,
3684
- viewAllLink: Xr,
3685
- noResults: Jr
3686
- }, Qr = [
3654
+ extensionContent: ir,
3655
+ extensionDivider: lr,
3656
+ extensionContentWrapper: dr,
3657
+ headerInner: cr,
3658
+ logoWrapper: pr,
3659
+ logo: mr,
3660
+ secondaryLogoWrapper: gr,
3661
+ slotComponent: ur,
3662
+ slotContainer: hr,
3663
+ slotText: fr,
3664
+ secondaryLogo: kr,
3665
+ redCrossLogo: vr,
3666
+ primaryLogo: br,
3667
+ navItems: yr,
3668
+ navLink: xr,
3669
+ actions: Tr,
3670
+ ctaButton: Cr,
3671
+ themeToggle: wr,
3672
+ userInfo: Sr,
3673
+ userName: Ir,
3674
+ loginLink: _r,
3675
+ loginText: Dr,
3676
+ underline: Ar,
3677
+ searchButtonWrapper: Lr,
3678
+ buttonText: Nr,
3679
+ menuButton: Mr,
3680
+ menuOverlay: jr,
3681
+ searchContent: Fr,
3682
+ menuContent: Br,
3683
+ menuLeftColumn: Er,
3684
+ menuRightColumn: $r,
3685
+ slotContent: Pr,
3686
+ navList: zr,
3687
+ menuUtilities: Rr,
3688
+ menuBrand: Gr,
3689
+ suggestionsSection: Wr,
3690
+ suggestionsTitle: Hr,
3691
+ searchResults: Ur,
3692
+ resultList: Vr,
3693
+ resultItem: Or,
3694
+ resultLink: Kr,
3695
+ suggestionIcon: qr,
3696
+ suggestionText: Yr,
3697
+ highlightedText: Zr,
3698
+ remainingText: Xr,
3699
+ viewAllLink: Jr,
3700
+ noResults: Qr
3701
+ }, es = [
3687
3702
  // Pages
3688
3703
  { id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
3689
3704
  { id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
@@ -3747,31 +3762,31 @@ const Qo = "_header_p2hri_1", er = "_languageSwitch_p2hri_37", tr = "_searchOver
3747
3762
  { id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
3748
3763
  { id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
3749
3764
  ];
3750
- function ea(t) {
3765
+ function ts(t) {
3751
3766
  return t.split(/\s+/).map((e) => e[0] ?? "").join("").slice(0, 2).toUpperCase();
3752
3767
  }
3753
- const di = ({
3768
+ const ci = ({
3754
3769
  "data-color": t = "primary",
3755
3770
  activePage: e,
3756
- setPage: r,
3771
+ setPage: o,
3757
3772
  children: d,
3758
3773
  showUser: h = !0,
3759
- showSearch: k = !0,
3760
- showLogin: u = !0,
3761
- showCta: x = !1,
3762
- ctaLabel: F,
3774
+ showSearch: f = !0,
3775
+ showLogin: c = !0,
3776
+ showCta: k = !1,
3777
+ ctaLabel: D,
3763
3778
  ctaIcon: C = /* @__PURE__ */ n(gn, { "aria-hidden": !0 }),
3764
3779
  onCtaClick: U,
3765
3780
  showThemeToggle: w = !1,
3766
3781
  secondaryLogo: P = !1,
3767
- secondaryLogoSrc: M,
3782
+ secondaryLogoSrc: j,
3768
3783
  secondaryLogoSrcDark: l,
3769
3784
  secondaryLogoAlt: te = "Secondary Logo",
3770
3785
  navItems: z,
3771
3786
  showNavItems: B = !0,
3772
3787
  showMenuButton: X = !0,
3773
- showHeaderExtension: c = !1,
3774
- showModeToggle: A = !1,
3788
+ showHeaderExtension: p = !1,
3789
+ showModeToggle: L = !1,
3775
3790
  showLanguageSwitch: S = !1,
3776
3791
  extensionColor: R,
3777
3792
  buttonStyle: I = "default",
@@ -3780,14 +3795,14 @@ const di = ({
3780
3795
  userAvatarSrc: J,
3781
3796
  onUserClick: W
3782
3797
  }) => {
3783
- const [L, g] = Y(!1), [f, b] = Y(!1), [y, ne] = Y(""), [Q, _] = Y("light"), { language: j, setLanguage: K, t: T } = ye(), [Z, ce] = Y(!1);
3798
+ const [N, u] = Y(!1), [v, y] = Y(!1), [x, ne] = Y(""), [Q, _] = Y("light"), { language: F, setLanguage: K, t: T } = ye(), [Z, ce] = Y(!1);
3784
3799
  $(() => {
3785
3800
  const i = "rk-header-inline-styles";
3786
3801
  if (typeof document > "u" || document.getElementById(i)) return;
3787
- const p = ta(s), v = document.createElement("style");
3788
- v.id = i, v.textContent = p, document.head.appendChild(v);
3802
+ const m = ns(a), b = document.createElement("style");
3803
+ b.id = i, b.textContent = m, document.head.appendChild(b);
3789
3804
  }, []);
3790
- const m = () => /* @__PURE__ */ a(
3805
+ const g = () => /* @__PURE__ */ s(
3791
3806
  "svg",
3792
3807
  {
3793
3808
  width: "170",
@@ -3797,7 +3812,7 @@ const di = ({
3797
3812
  xmlns: "http://www.w3.org/2000/svg",
3798
3813
  "aria-hidden": !0,
3799
3814
  focusable: "false",
3800
- className: s.redCrossLogo,
3815
+ className: a.redCrossLogo,
3801
3816
  children: [
3802
3817
  /* @__PURE__ */ n("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" }),
3803
3818
  /* @__PURE__ */ n("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" }),
@@ -3813,110 +3828,110 @@ const di = ({
3813
3828
  }
3814
3829
  );
3815
3830
  $(() => {
3816
- g(!1), b(!1), ne("");
3831
+ u(!1), y(!1), ne("");
3817
3832
  }, [e]), $(() => {
3818
- if (!(typeof document > "u") && L && Z) {
3833
+ if (!(typeof document > "u") && N && Z) {
3819
3834
  const i = document.body.style.overflow;
3820
3835
  return document.body.style.overflow = "hidden", () => {
3821
3836
  document.body.style.overflow = i;
3822
3837
  };
3823
3838
  }
3824
- }, [L, Z]), $(() => {
3839
+ }, [N, Z]), $(() => {
3825
3840
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
3826
- const i = window.matchMedia("(max-width: 850px)"), p = (v) => ce("matches" in v ? v.matches : i.matches);
3827
- return p(i), i.addEventListener ? i.addEventListener("change", p) : i.addListener(p), () => {
3828
- i.removeEventListener ? i.removeEventListener("change", p) : i.removeListener(p);
3841
+ const i = window.matchMedia("(max-width: 850px)"), m = (b) => ce("matches" in b ? b.matches : i.matches);
3842
+ return m(i), i.addEventListener ? i.addEventListener("change", m) : i.addListener(m), () => {
3843
+ i.removeEventListener ? i.removeEventListener("change", m) : i.removeListener(m);
3829
3844
  };
3830
3845
  }, []), $(() => {
3831
3846
  if (typeof document > "u") return;
3832
- const i = document.querySelector(`.${s.header}`);
3847
+ const i = document.querySelector(`.${a.header}`);
3833
3848
  if (!i) return;
3834
- const p = () => {
3849
+ const m = () => {
3835
3850
  const q = i.offsetHeight;
3836
3851
  document.documentElement.style.setProperty("--header-height-mobile", `${q}px`);
3837
3852
  };
3838
- p(), window.addEventListener("resize", p);
3839
- const v = new ResizeObserver(() => {
3840
- p();
3853
+ m(), window.addEventListener("resize", m);
3854
+ const b = new ResizeObserver(() => {
3855
+ m();
3841
3856
  });
3842
- return v.observe(i), () => {
3843
- window.removeEventListener("resize", p), v.disconnect();
3857
+ return b.observe(i), () => {
3858
+ window.removeEventListener("resize", m), b.disconnect();
3844
3859
  };
3845
3860
  }, [Z]), $(() => {
3846
3861
  if (typeof document > "u") return;
3847
- const i = document.querySelector(`.${s.logoWrapper}`);
3862
+ const i = document.querySelector(`.${a.logoWrapper}`);
3848
3863
  if (!i) return;
3849
- const p = () => {
3850
- const v = i.offsetWidth;
3851
- document.documentElement.style.setProperty("--rk-logo-width", `${v}px`);
3864
+ const m = () => {
3865
+ const b = i.offsetWidth;
3866
+ document.documentElement.style.setProperty("--rk-logo-width", `${b}px`);
3852
3867
  };
3853
- return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
3868
+ return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
3854
3869
  }, [Z]), $(() => {
3855
- if (typeof document > "u" || !f) {
3870
+ if (typeof document > "u" || !v) {
3856
3871
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
3857
3872
  return;
3858
3873
  }
3859
- const i = document.querySelector(`.${s.searchOverlay}`);
3874
+ const i = document.querySelector(`.${a.searchOverlay}`);
3860
3875
  if (!i) return;
3861
- const p = () => {
3876
+ const m = () => {
3862
3877
  const q = i.offsetHeight;
3863
3878
  document.documentElement.style.setProperty("--rk-search-overlay-height", `${q}px`);
3864
3879
  };
3865
- requestAnimationFrame(p), window.addEventListener("resize", p);
3866
- const v = new ResizeObserver(p);
3867
- return v.observe(i), () => {
3868
- window.removeEventListener("resize", p), v.disconnect();
3880
+ requestAnimationFrame(m), window.addEventListener("resize", m);
3881
+ const b = new ResizeObserver(m);
3882
+ return b.observe(i), () => {
3883
+ window.removeEventListener("resize", m), b.disconnect();
3869
3884
  };
3870
- }, [f]);
3871
- const D = () => {
3885
+ }, [v]);
3886
+ const A = () => {
3872
3887
  const i = Q === "light" ? "dark" : "light";
3873
3888
  _(i), document.documentElement.setAttribute("data-color-scheme", i);
3874
- }, N = (i) => {
3875
- r && (i.preventDefault(), r("home")), g(!1), b(!1);
3889
+ }, M = (i) => {
3890
+ o && (i.preventDefault(), o("home")), u(!1), y(!1);
3876
3891
  }, ie = () => {
3877
- g(!L), f && b(!1), !L && typeof document < "u" && requestAnimationFrame(() => {
3878
- const i = document.querySelector(`.${s.header}`);
3892
+ u(!N), v && y(!1), !N && typeof document < "u" && requestAnimationFrame(() => {
3893
+ const i = document.querySelector(`.${a.header}`);
3879
3894
  if (i) {
3880
- const p = i.offsetHeight;
3881
- document.documentElement.style.setProperty("--header-height-mobile", `${p}px`);
3895
+ const m = i.offsetHeight;
3896
+ document.documentElement.style.setProperty("--header-height-mobile", `${m}px`);
3882
3897
  }
3883
3898
  });
3884
- }, se = () => {
3885
- b(!f), L && g(!1);
3899
+ }, ae = () => {
3900
+ y(!v), N && u(!1);
3886
3901
  }, pe = ue(() => {
3887
- if (!y.trim()) return [];
3888
- const i = y.toLowerCase();
3889
- return Qr.filter(
3890
- (p) => p.title.toLowerCase().startsWith(i)
3902
+ if (!x.trim()) return [];
3903
+ const i = x.toLowerCase();
3904
+ return es.filter(
3905
+ (m) => m.title.toLowerCase().startsWith(i)
3891
3906
  );
3892
- }, [y]), we = (i) => {
3893
- r && r(i), b(!1), ne("");
3907
+ }, [x]), we = (i) => {
3908
+ o && o(i), y(!1), ne("");
3894
3909
  };
3895
- return /* @__PURE__ */ a("header", { className: s.header, "data-open": L ? "true" : "false", "data-color": t, "data-button-style": I, children: [
3896
- c && /* @__PURE__ */ n("div", { className: `${s.headerExtension}${R === "tinted" ? ` ${s.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": R, children: /* @__PURE__ */ a("div", { className: s.extensionContentWrapper, children: [
3897
- A && /* @__PURE__ */ n("div", { className: s.extensionContent, children: /* @__PURE__ */ n(
3910
+ return /* @__PURE__ */ s("header", { className: a.header, "data-open": N ? "true" : "false", "data-color": t, "data-button-style": I, children: [
3911
+ p && /* @__PURE__ */ n("div", { className: `${a.headerExtension}${R === "tinted" ? ` ${a.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": R, children: /* @__PURE__ */ s("div", { className: a.extensionContentWrapper, children: [
3912
+ L && /* @__PURE__ */ n("div", { className: a.extensionContent, children: /* @__PURE__ */ n(
3898
3913
  Le,
3899
3914
  {
3900
3915
  "data-size": "sm",
3901
3916
  checked: Q === "dark",
3902
- onChange: D,
3917
+ onChange: A,
3903
3918
  label: T("header.darkMode"),
3904
3919
  color: "neutral",
3905
3920
  "data-color-scheme": "light"
3906
3921
  }
3907
3922
  ) }),
3908
- A && S && /* @__PURE__ */ n("div", { className: s.extensionDivider }),
3909
- S && /* @__PURE__ */ a("div", { className: s.languageSwitch, children: [
3910
- /* @__PURE__ */ n("span", { className: s.languageLabel, children: T("header.language") }),
3911
- /* @__PURE__ */ a(V.TriggerContext, { children: [
3912
- /* @__PURE__ */ a(
3923
+ L && S && /* @__PURE__ */ n("div", { className: a.extensionDivider }),
3924
+ S && /* @__PURE__ */ s("div", { className: a.languageSwitch, children: [
3925
+ /* @__PURE__ */ n("span", { className: a.languageLabel, children: T("header.language") }),
3926
+ /* @__PURE__ */ s(V.TriggerContext, { children: [
3927
+ /* @__PURE__ */ s(
3913
3928
  V.Trigger,
3914
3929
  {
3915
- className: s.languageLink,
3930
+ className: a.languageLink,
3916
3931
  "aria-label": T("header.selectLanguage"),
3917
3932
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
3918
3933
  children: [
3919
- j,
3934
+ F,
3920
3935
  " ",
3921
3936
  /* @__PURE__ */ n(Be, { "aria-hidden": !0 })
3922
3937
  ]
@@ -3927,7 +3942,7 @@ const di = ({
3927
3942
  {
3928
3943
  "data-color-scheme": Q,
3929
3944
  placement: "bottom-end",
3930
- children: /* @__PURE__ */ a(V.List, { children: [
3945
+ children: /* @__PURE__ */ s(V.List, { children: [
3931
3946
  /* @__PURE__ */ n(V.Item, { children: /* @__PURE__ */ n(V.Button, { onClick: () => K("NO"), children: "Norsk (NO)" }) }),
3932
3947
  /* @__PURE__ */ n(V.Item, { children: /* @__PURE__ */ n(V.Button, { onClick: () => K("EN"), children: "English (EN)" }) })
3933
3948
  ] })
@@ -3936,84 +3951,84 @@ const di = ({
3936
3951
  ] })
3937
3952
  ] })
3938
3953
  ] }) }),
3939
- /* @__PURE__ */ a("div", { className: s.headerInner, children: [
3940
- /* @__PURE__ */ a("div", { className: s.logoWrapper, children: [
3954
+ /* @__PURE__ */ s("div", { className: a.headerInner, children: [
3955
+ /* @__PURE__ */ s("div", { className: a.logoWrapper, children: [
3941
3956
  /* @__PURE__ */ n(
3942
3957
  oe,
3943
3958
  {
3944
3959
  href: "/",
3945
- className: `${s.logo} ${s.primaryLogo}`,
3960
+ className: `${a.logo} ${a.primaryLogo}`,
3946
3961
  "aria-label": T("header.homeAriaLabel"),
3947
- onClick: N,
3948
- children: /* @__PURE__ */ n(m, {})
3962
+ onClick: M,
3963
+ children: /* @__PURE__ */ n(g, {})
3949
3964
  }
3950
3965
  ),
3951
- /* @__PURE__ */ n("div", { className: s.secondaryLogoWrapper, children: P && M ? /* @__PURE__ */ n(
3966
+ /* @__PURE__ */ n("div", { className: a.secondaryLogoWrapper, children: P && j ? /* @__PURE__ */ n(
3952
3967
  "img",
3953
3968
  {
3954
- src: Q === "dark" && l ? l : M,
3969
+ src: Q === "dark" && l ? l : j,
3955
3970
  alt: te,
3956
- className: s.secondaryLogo
3971
+ className: a.secondaryLogo
3957
3972
  }
3958
- ) : P ? /* @__PURE__ */ n("div", { className: s.slotComponent, children: /* @__PURE__ */ n("div", { className: s.slotContainer, children: /* @__PURE__ */ n("p", { className: s.slotText, children: "SLOT" }) }) }) : null })
3973
+ ) : P ? /* @__PURE__ */ n("div", { className: a.slotComponent, children: /* @__PURE__ */ n("div", { className: a.slotContainer, children: /* @__PURE__ */ n("p", { className: a.slotText, children: "SLOT" }) }) }) : null })
3959
3974
  ] }),
3960
- B && z && z.length > 0 && !Z && /* @__PURE__ */ n("nav", { className: s.navItems, children: z.map((i, p) => /* @__PURE__ */ n(
3975
+ B && z && z.length > 0 && !Z && /* @__PURE__ */ n("nav", { className: a.navItems, children: z.map((i, m) => /* @__PURE__ */ n(
3961
3976
  oe,
3962
3977
  {
3963
3978
  href: i.href,
3964
- className: s.navLink,
3965
- onClick: (v) => {
3966
- r && (v.preventDefault(), r(i.href));
3979
+ className: a.navLink,
3980
+ onClick: (b) => {
3981
+ o && (b.preventDefault(), o(i.href));
3967
3982
  },
3968
3983
  children: i.label
3969
3984
  },
3970
- p
3985
+ m
3971
3986
  )) }),
3972
- /* @__PURE__ */ a("div", { className: s.actions, children: [
3973
- x && /* @__PURE__ */ a(
3987
+ /* @__PURE__ */ s("div", { className: a.actions, children: [
3988
+ k && /* @__PURE__ */ s(
3974
3989
  de,
3975
3990
  {
3976
3991
  variant: "primary",
3977
3992
  "data-color": "main",
3978
3993
  "data-size": "md",
3979
- className: s.ctaButton,
3994
+ className: a.ctaButton,
3980
3995
  onClick: U,
3981
3996
  children: [
3982
3997
  C,
3983
- /* @__PURE__ */ n("span", { className: C ? s.buttonText : void 0, children: F || T("header.supportUs") })
3998
+ /* @__PURE__ */ n("span", { className: C ? a.buttonText : void 0, children: D || T("header.supportUs") })
3984
3999
  ]
3985
4000
  }
3986
4001
  ),
3987
- !c && w && /* @__PURE__ */ n("div", { className: s.themeToggle, children: /* @__PURE__ */ n(
4002
+ !p && w && /* @__PURE__ */ n("div", { className: a.themeToggle, children: /* @__PURE__ */ n(
3988
4003
  Le,
3989
4004
  {
3990
4005
  checked: Q === "dark",
3991
- onChange: D,
4006
+ onChange: A,
3992
4007
  "aria-label": T("header.toggleTheme")
3993
4008
  }
3994
4009
  ) }),
3995
4010
  h && (() => {
3996
- const i = G ?? "Frodo Baggins", p = O ?? (G ? ea(G) : "FB"), v = !!W;
3997
- return /* @__PURE__ */ a(
4011
+ const i = G ?? "Frodo Baggins", m = O ?? (G ? ts(G) : "FB"), b = !!W;
4012
+ return /* @__PURE__ */ s(
3998
4013
  "div",
3999
4014
  {
4000
- className: s.userInfo,
4015
+ className: a.userInfo,
4001
4016
  onClick: W,
4002
- role: v ? "button" : void 0,
4003
- tabIndex: v ? 0 : void 0,
4004
- onKeyDown: v ? (q) => {
4017
+ role: b ? "button" : void 0,
4018
+ tabIndex: b ? 0 : void 0,
4019
+ onKeyDown: b ? (q) => {
4005
4020
  (q.key === "Enter" || q.key === " ") && (q.preventDefault(), W == null || W());
4006
4021
  } : void 0,
4007
- style: v ? { cursor: "pointer" } : void 0,
4022
+ style: b ? { cursor: "pointer" } : void 0,
4008
4023
  children: [
4009
- /* @__PURE__ */ n(be, { "data-size": "md", className: s.userName, children: i }),
4024
+ /* @__PURE__ */ n(be, { "data-size": "md", className: a.userName, children: i }),
4010
4025
  /* @__PURE__ */ n(
4011
4026
  Ke,
4012
4027
  {
4013
4028
  "aria-label": i,
4014
4029
  "data-color": "main",
4015
4030
  variant: "circle",
4016
- initials: J ? void 0 : p,
4031
+ initials: J ? void 0 : m,
4017
4032
  children: J ? /* @__PURE__ */ n(
4018
4033
  "img",
4019
4034
  {
@@ -4028,23 +4043,23 @@ const di = ({
4028
4043
  }
4029
4044
  );
4030
4045
  })(),
4031
- u && /* @__PURE__ */ a("a", { href: "#", className: s.loginLink, children: [
4032
- /* @__PURE__ */ n(be, { "data-size": "md", className: s.loginText, children: T("header.login") }),
4033
- /* @__PURE__ */ n("div", { className: s.underline })
4046
+ c && /* @__PURE__ */ s("a", { href: "#", className: a.loginLink, children: [
4047
+ /* @__PURE__ */ n(be, { "data-size": "md", className: a.loginText, children: T("header.login") }),
4048
+ /* @__PURE__ */ n("div", { className: a.underline })
4034
4049
  ] }),
4035
- k && /* @__PURE__ */ n("div", { className: s.searchButtonWrapper, children: /* @__PURE__ */ a(
4050
+ f && /* @__PURE__ */ n("div", { className: a.searchButtonWrapper, children: /* @__PURE__ */ s(
4036
4051
  de,
4037
4052
  {
4038
4053
  variant: "secondary",
4039
4054
  shape: I === "soft" ? "pill" : void 0,
4040
4055
  "data-color": I === "soft" ? "neutral" : "main",
4041
4056
  "data-size": "md",
4042
- onClick: se,
4043
- "aria-expanded": f,
4044
- "aria-label": T(f ? "header.closeSearch" : "header.openSearch"),
4057
+ onClick: ae,
4058
+ "aria-expanded": v,
4059
+ "aria-label": T(v ? "header.closeSearch" : "header.openSearch"),
4045
4060
  children: [
4046
- f ? /* @__PURE__ */ n(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ n(Ee, { "aria-hidden": !0 }),
4047
- /* @__PURE__ */ n("span", { className: s.buttonText, children: T(f ? "header.close" : "header.search") })
4061
+ v ? /* @__PURE__ */ n(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ n(Ee, { "aria-hidden": !0 }),
4062
+ /* @__PURE__ */ n("span", { className: a.buttonText, children: T(v ? "header.close" : "header.search") })
4048
4063
  ]
4049
4064
  }
4050
4065
  ) }),
@@ -4056,35 +4071,35 @@ const di = ({
4056
4071
  "data-color": "main",
4057
4072
  "data-size": "md",
4058
4073
  onClick: ie,
4059
- "aria-expanded": L,
4060
- "aria-label": T(L ? "header.closeMenu" : "header.openMenu"),
4061
- className: s.menuButton,
4062
- children: I === "soft" ? /* @__PURE__ */ a(Ce, { children: [
4063
- /* @__PURE__ */ n("span", { className: s.buttonText, children: T(L ? "header.close" : "header.menu") }),
4064
- L ? /* @__PURE__ */ n(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ n($e, { "aria-hidden": !0 })
4065
- ] }) : /* @__PURE__ */ a(Ce, { children: [
4066
- L ? /* @__PURE__ */ n(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ n($e, { "aria-hidden": !0 }),
4067
- /* @__PURE__ */ n("span", { className: s.buttonText, children: T(L ? "header.close" : "header.menu") })
4074
+ "aria-expanded": N,
4075
+ "aria-label": T(N ? "header.closeMenu" : "header.openMenu"),
4076
+ className: a.menuButton,
4077
+ children: I === "soft" ? /* @__PURE__ */ s(Ce, { children: [
4078
+ /* @__PURE__ */ n("span", { className: a.buttonText, children: T(N ? "header.close" : "header.menu") }),
4079
+ N ? /* @__PURE__ */ n(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ n($e, { "aria-hidden": !0 })
4080
+ ] }) : /* @__PURE__ */ s(Ce, { children: [
4081
+ N ? /* @__PURE__ */ n(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ n($e, { "aria-hidden": !0 }),
4082
+ /* @__PURE__ */ n("span", { className: a.buttonText, children: T(N ? "header.close" : "header.menu") })
4068
4083
  ] })
4069
4084
  }
4070
4085
  )
4071
4086
  ] })
4072
4087
  ] }),
4073
- L && /* @__PURE__ */ n("div", { className: s.menuOverlay, children: /* @__PURE__ */ a("div", { className: s.menuContent, children: [
4074
- /* @__PURE__ */ n("div", { className: s.menuLeftColumn }),
4075
- /* @__PURE__ */ a("div", { className: s.menuRightColumn, children: [
4076
- Z && (S || A) && /* @__PURE__ */ a("div", { className: s.menuUtilities, children: [
4077
- S && /* @__PURE__ */ a("div", { className: s.languageSwitch, children: [
4078
- /* @__PURE__ */ n("span", { className: s.languageLabel, children: T("header.language") }),
4079
- /* @__PURE__ */ a(V.TriggerContext, { children: [
4080
- /* @__PURE__ */ a(
4088
+ N && /* @__PURE__ */ n("div", { className: a.menuOverlay, children: /* @__PURE__ */ s("div", { className: a.menuContent, children: [
4089
+ /* @__PURE__ */ n("div", { className: a.menuLeftColumn }),
4090
+ /* @__PURE__ */ s("div", { className: a.menuRightColumn, children: [
4091
+ Z && (S || L) && /* @__PURE__ */ s("div", { className: a.menuUtilities, children: [
4092
+ S && /* @__PURE__ */ s("div", { className: a.languageSwitch, children: [
4093
+ /* @__PURE__ */ n("span", { className: a.languageLabel, children: T("header.language") }),
4094
+ /* @__PURE__ */ s(V.TriggerContext, { children: [
4095
+ /* @__PURE__ */ s(
4081
4096
  V.Trigger,
4082
4097
  {
4083
- className: s.languageLink,
4098
+ className: a.languageLink,
4084
4099
  "aria-label": T("header.selectLanguage"),
4085
4100
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4086
4101
  children: [
4087
- j,
4102
+ F,
4088
4103
  " ",
4089
4104
  /* @__PURE__ */ n(Be, { "aria-hidden": !0 })
4090
4105
  ]
@@ -4095,7 +4110,7 @@ const di = ({
4095
4110
  {
4096
4111
  "data-color-scheme": Q,
4097
4112
  placement: "bottom-start",
4098
- children: /* @__PURE__ */ a(V.List, { children: [
4113
+ children: /* @__PURE__ */ s(V.List, { children: [
4099
4114
  /* @__PURE__ */ n(V.Item, { children: /* @__PURE__ */ n(V.Button, { onClick: () => K("NO"), children: "Norsk (NO)" }) }),
4100
4115
  /* @__PURE__ */ n(V.Item, { children: /* @__PURE__ */ n(V.Button, { onClick: () => K("EN"), children: "English (EN)" }) })
4101
4116
  ] })
@@ -4103,80 +4118,80 @@ const di = ({
4103
4118
  )
4104
4119
  ] })
4105
4120
  ] }),
4106
- A && /* @__PURE__ */ n("div", { className: s.extensionContent, children: /* @__PURE__ */ n(
4121
+ L && /* @__PURE__ */ n("div", { className: a.extensionContent, children: /* @__PURE__ */ n(
4107
4122
  Le,
4108
4123
  {
4109
4124
  "data-size": "sm",
4110
4125
  checked: Q === "dark",
4111
- onChange: D,
4126
+ onChange: A,
4112
4127
  label: T("header.darkMode"),
4113
4128
  color: "neutral",
4114
4129
  "data-color-scheme": "light"
4115
4130
  }
4116
4131
  ) })
4117
4132
  ] }),
4118
- /* @__PURE__ */ a("div", { className: s.slotContent, children: [
4133
+ /* @__PURE__ */ s("div", { className: a.slotContent, children: [
4119
4134
  d,
4120
- Z && B && z && z.length > 0 && /* @__PURE__ */ n("nav", { className: s.navList, children: z.map((i, p) => /* @__PURE__ */ n(
4135
+ Z && B && z && z.length > 0 && /* @__PURE__ */ n("nav", { className: a.navList, children: z.map((i, m) => /* @__PURE__ */ n(
4121
4136
  oe,
4122
4137
  {
4123
4138
  href: i.href,
4124
- className: s.navLink,
4125
- onClick: (v) => {
4126
- r && (v.preventDefault(), r(i.href));
4139
+ className: a.navLink,
4140
+ onClick: (b) => {
4141
+ o && (b.preventDefault(), o(i.href));
4127
4142
  },
4128
4143
  children: i.label
4129
4144
  },
4130
- p
4145
+ m
4131
4146
  )) })
4132
4147
  ] }),
4133
- Z && /* @__PURE__ */ n("div", { className: s.menuBrand, children: /* @__PURE__ */ n(m, {}) })
4148
+ Z && /* @__PURE__ */ n("div", { className: a.menuBrand, children: /* @__PURE__ */ n(g, {}) })
4134
4149
  ] })
4135
4150
  ] }) }),
4136
- f && /* @__PURE__ */ n("div", { className: s.searchOverlay, children: /* @__PURE__ */ a("div", { className: s.searchContent, children: [
4137
- /* @__PURE__ */ a(xe, { children: [
4151
+ v && /* @__PURE__ */ n("div", { className: a.searchOverlay, children: /* @__PURE__ */ s("div", { className: a.searchContent, children: [
4152
+ /* @__PURE__ */ s(xe, { children: [
4138
4153
  /* @__PURE__ */ n(
4139
4154
  xe.Input,
4140
4155
  {
4141
4156
  "aria-label": T("header.search"),
4142
4157
  placeholder: T("header.searchPlaceholder"),
4143
- value: y,
4158
+ value: x,
4144
4159
  onChange: (i) => ne(i.target.value)
4145
4160
  }
4146
4161
  ),
4147
4162
  /* @__PURE__ */ n(xe.Button, { "aria-label": T("header.search") }),
4148
4163
  /* @__PURE__ */ n(xe.ClearButton, { onClick: () => ne(""), "aria-label": T("header.clearSearch") })
4149
4164
  ] }),
4150
- y && /* @__PURE__ */ n("div", { className: s.searchResults, children: pe.length > 0 ? /* @__PURE__ */ a("div", { className: s.suggestionsSection, children: [
4151
- /* @__PURE__ */ n("h3", { className: s.suggestionsTitle, children: T("header.suggestions") }),
4152
- /* @__PURE__ */ n("ul", { className: s.resultList, children: pe.slice(0, 5).map((i) => /* @__PURE__ */ n("li", { className: s.resultItem, children: /* @__PURE__ */ a(
4165
+ x && /* @__PURE__ */ n("div", { className: a.searchResults, children: pe.length > 0 ? /* @__PURE__ */ s("div", { className: a.suggestionsSection, children: [
4166
+ /* @__PURE__ */ n("h3", { className: a.suggestionsTitle, children: T("header.suggestions") }),
4167
+ /* @__PURE__ */ n("ul", { className: a.resultList, children: pe.slice(0, 5).map((i) => /* @__PURE__ */ n("li", { className: a.resultItem, children: /* @__PURE__ */ s(
4153
4168
  "button",
4154
4169
  {
4155
- className: s.resultLink,
4170
+ className: a.resultLink,
4156
4171
  onClick: () => we(i.path),
4157
4172
  children: [
4158
- /* @__PURE__ */ n("span", { className: s.suggestionIcon, children: /* @__PURE__ */ n(Ee, { "aria-hidden": !0 }) }),
4159
- /* @__PURE__ */ n("span", { className: s.suggestionText, children: (() => {
4160
- const p = i.title.toLowerCase().indexOf(y.toLowerCase());
4161
- if (p === -1) return /* @__PURE__ */ n("span", { className: s.remainingText, children: i.title });
4162
- const v = i.title.slice(0, p), q = i.title.slice(p, p + y.length), Se = i.title.slice(p + y.length);
4163
- return /* @__PURE__ */ a(Ce, { children: [
4164
- /* @__PURE__ */ n("span", { className: s.remainingText, children: v }),
4165
- /* @__PURE__ */ n("span", { className: s.highlightedText, children: q }),
4166
- /* @__PURE__ */ n("span", { className: s.remainingText, children: Se })
4173
+ /* @__PURE__ */ n("span", { className: a.suggestionIcon, children: /* @__PURE__ */ n(Ee, { "aria-hidden": !0 }) }),
4174
+ /* @__PURE__ */ n("span", { className: a.suggestionText, children: (() => {
4175
+ const m = i.title.toLowerCase().indexOf(x.toLowerCase());
4176
+ if (m === -1) return /* @__PURE__ */ n("span", { className: a.remainingText, children: i.title });
4177
+ const b = i.title.slice(0, m), q = i.title.slice(m, m + x.length), Se = i.title.slice(m + x.length);
4178
+ return /* @__PURE__ */ s(Ce, { children: [
4179
+ /* @__PURE__ */ n("span", { className: a.remainingText, children: b }),
4180
+ /* @__PURE__ */ n("span", { className: a.highlightedText, children: q }),
4181
+ /* @__PURE__ */ n("span", { className: a.remainingText, children: Se })
4167
4182
  ] });
4168
4183
  })() })
4169
4184
  ]
4170
4185
  }
4171
4186
  ) }, i.id)) }),
4172
- pe.length > 5 && /* @__PURE__ */ a(
4187
+ pe.length > 5 && /* @__PURE__ */ s(
4173
4188
  oe,
4174
4189
  {
4175
4190
  href: "#",
4176
4191
  "data-color": "neutral",
4177
- className: s.viewAllLink,
4192
+ className: a.viewAllLink,
4178
4193
  onClick: (i) => {
4179
- i.preventDefault(), r && r(`search/${y}`), b(!1), ne("");
4194
+ i.preventDefault(), o && o(`search/${x}`), y(!1), ne("");
4180
4195
  },
4181
4196
  children: [
4182
4197
  T("header.viewAll"),
@@ -4186,16 +4201,16 @@ const di = ({
4186
4201
  ]
4187
4202
  }
4188
4203
  )
4189
- ] }) : /* @__PURE__ */ n("div", { className: s.noResults, children: /* @__PURE__ */ a(be, { children: [
4204
+ ] }) : /* @__PURE__ */ n("div", { className: a.noResults, children: /* @__PURE__ */ s(be, { children: [
4190
4205
  T("header.noResults"),
4191
4206
  ' "',
4192
- y,
4207
+ x,
4193
4208
  '"'
4194
4209
  ] }) }) })
4195
4210
  ] }) })
4196
4211
  ] });
4197
4212
  };
4198
- function ta(t) {
4213
+ function ns(t) {
4199
4214
  const e = t;
4200
4215
  return `
4201
4216
  .${e.header} {
@@ -4368,97 +4383,97 @@ function ta(t) {
4368
4383
  }
4369
4384
  `;
4370
4385
  }
4371
- const na = "_footer_1l5de_1", oa = "_mainSection_1l5de_7", ra = "_mainContainer_1l5de_25", aa = "_crossCornerTopRight_1l5de_35", sa = "_crossCornerBottomLeft_1l5de_42", ia = "_contentRow_1l5de_50", la = "_newsletterSection_1l5de_60", da = "_newsletterDescription_1l5de_67", ca = "_newsletterForm_1l5de_76", pa = "_newsletterInputGroup_1l5de_82", ma = "_newsletterInput_1l5de_82", ga = "_consentText_1l5de_93", ua = "_linksSection_1l5de_103", ha = "_linksColumn_1l5de_109", fa = "_linksTitle_1l5de_116", ka = "_linksList_1l5de_127", va = "_footerLink_1l5de_136", ba = "_divider_1l5de_158", ya = "_contactSection_1l5de_166", xa = "_contactColumn_1l5de_173", Ta = "_contactTitle_1l5de_181", Ca = "_contactContent_1l5de_190", wa = "_copyrightSection_1l5de_204", Sa = "_copyrightText_1l5de_209", Ia = "_whiteSection_1l5de_219", _a = "_whiteContainer_1l5de_224", Da = "_whiteContent_1l5de_232", Aa = "_logo_1l5de_240", La = "_redCrossLogo_1l5de_254", Na = "_slotLarge_1l5de_260", Ma = "_contentRowContact_1l5de_315", ja = "_socialLinksSection_1l5de_325", Fa = "_socialLinksTitle_1l5de_332", Ba = "_socialLinksList_1l5de_343", Ea = "_socialLink_1l5de_325", $a = "_socialLinkIcon_1l5de_376", Pa = "_contactPersonsSection_1l5de_391", za = "_contactPersonsTitle_1l5de_398", Ra = "_contactPersonsGrid_1l5de_409", Ga = "_contactPersonCard_1l5de_415", Wa = "_contactPersonName_1l5de_422", Ha = "_contactPersonRole_1l5de_431", Ua = "_contactPersonDetails_1l5de_440", Va = "_contactPersonLabel_1l5de_447", Oa = "_contactPersonEmail_1l5de_451", Ka = "_contactPersonPhone_1l5de_452", qa = "_contactPersonAddress_1l5de_453", Ya = "_bottomRowContact_1l5de_474", Za = "_legalLinksRow_1l5de_483", Xa = "_legalLink_1l5de_483", o = {
4372
- footer: na,
4373
- mainSection: oa,
4374
- mainContainer: ra,
4375
- crossCornerTopRight: aa,
4376
- crossCornerBottomLeft: sa,
4377
- contentRow: ia,
4378
- newsletterSection: la,
4379
- newsletterDescription: da,
4380
- newsletterForm: ca,
4381
- newsletterInputGroup: pa,
4382
- newsletterInput: ma,
4383
- consentText: ga,
4384
- linksSection: ua,
4385
- linksColumn: ha,
4386
- linksTitle: fa,
4387
- linksList: ka,
4388
- footerLink: va,
4389
- divider: ba,
4390
- contactSection: ya,
4391
- contactColumn: xa,
4392
- contactTitle: Ta,
4393
- contactContent: Ca,
4394
- copyrightSection: wa,
4395
- copyrightText: Sa,
4396
- whiteSection: Ia,
4397
- whiteContainer: _a,
4398
- whiteContent: Da,
4399
- logo: Aa,
4400
- redCrossLogo: La,
4401
- slotLarge: Na,
4402
- contentRowContact: Ma,
4403
- socialLinksSection: ja,
4404
- socialLinksTitle: Fa,
4405
- socialLinksList: Ba,
4406
- socialLink: Ea,
4407
- socialLinkIcon: $a,
4408
- contactPersonsSection: Pa,
4409
- contactPersonsTitle: za,
4410
- contactPersonsGrid: Ra,
4411
- contactPersonCard: Ga,
4412
- contactPersonName: Wa,
4413
- contactPersonRole: Ha,
4414
- contactPersonDetails: Ua,
4415
- contactPersonLabel: Va,
4416
- contactPersonEmail: Oa,
4417
- contactPersonPhone: Ka,
4418
- contactPersonAddress: qa,
4419
- bottomRowContact: Ya,
4420
- legalLinksRow: Za,
4421
- legalLink: Xa
4422
- }, ci = ({
4386
+ const os = "_footer_1l5de_1", rs = "_mainSection_1l5de_7", ss = "_mainContainer_1l5de_25", as = "_crossCornerTopRight_1l5de_35", is = "_crossCornerBottomLeft_1l5de_42", ls = "_contentRow_1l5de_50", ds = "_newsletterSection_1l5de_60", cs = "_newsletterDescription_1l5de_67", ps = "_newsletterForm_1l5de_76", ms = "_newsletterInputGroup_1l5de_82", gs = "_newsletterInput_1l5de_82", us = "_consentText_1l5de_93", hs = "_linksSection_1l5de_103", fs = "_linksColumn_1l5de_109", ks = "_linksTitle_1l5de_116", vs = "_linksList_1l5de_127", bs = "_footerLink_1l5de_136", ys = "_divider_1l5de_158", xs = "_contactSection_1l5de_166", Ts = "_contactColumn_1l5de_173", Cs = "_contactTitle_1l5de_181", ws = "_contactContent_1l5de_190", Ss = "_copyrightSection_1l5de_204", Is = "_copyrightText_1l5de_209", _s = "_whiteSection_1l5de_219", Ds = "_whiteContainer_1l5de_224", As = "_whiteContent_1l5de_232", Ls = "_logo_1l5de_240", Ns = "_redCrossLogo_1l5de_254", Ms = "_slotLarge_1l5de_260", js = "_contentRowContact_1l5de_315", Fs = "_socialLinksSection_1l5de_325", Bs = "_socialLinksTitle_1l5de_332", Es = "_socialLinksList_1l5de_343", $s = "_socialLink_1l5de_325", Ps = "_socialLinkIcon_1l5de_376", zs = "_contactPersonsSection_1l5de_391", Rs = "_contactPersonsTitle_1l5de_398", Gs = "_contactPersonsGrid_1l5de_409", Ws = "_contactPersonCard_1l5de_415", Hs = "_contactPersonName_1l5de_422", Us = "_contactPersonRole_1l5de_431", Vs = "_contactPersonDetails_1l5de_440", Os = "_contactPersonLabel_1l5de_447", Ks = "_contactPersonEmail_1l5de_451", qs = "_contactPersonPhone_1l5de_452", Ys = "_contactPersonAddress_1l5de_453", Zs = "_bottomRowContact_1l5de_474", Xs = "_legalLinksRow_1l5de_483", Js = "_legalLink_1l5de_483", r = {
4387
+ footer: os,
4388
+ mainSection: rs,
4389
+ mainContainer: ss,
4390
+ crossCornerTopRight: as,
4391
+ crossCornerBottomLeft: is,
4392
+ contentRow: ls,
4393
+ newsletterSection: ds,
4394
+ newsletterDescription: cs,
4395
+ newsletterForm: ps,
4396
+ newsletterInputGroup: ms,
4397
+ newsletterInput: gs,
4398
+ consentText: us,
4399
+ linksSection: hs,
4400
+ linksColumn: fs,
4401
+ linksTitle: ks,
4402
+ linksList: vs,
4403
+ footerLink: bs,
4404
+ divider: ys,
4405
+ contactSection: xs,
4406
+ contactColumn: Ts,
4407
+ contactTitle: Cs,
4408
+ contactContent: ws,
4409
+ copyrightSection: Ss,
4410
+ copyrightText: Is,
4411
+ whiteSection: _s,
4412
+ whiteContainer: Ds,
4413
+ whiteContent: As,
4414
+ logo: Ls,
4415
+ redCrossLogo: Ns,
4416
+ slotLarge: Ms,
4417
+ contentRowContact: js,
4418
+ socialLinksSection: Fs,
4419
+ socialLinksTitle: Bs,
4420
+ socialLinksList: Es,
4421
+ socialLink: $s,
4422
+ socialLinkIcon: Ps,
4423
+ contactPersonsSection: zs,
4424
+ contactPersonsTitle: Rs,
4425
+ contactPersonsGrid: Gs,
4426
+ contactPersonCard: Ws,
4427
+ contactPersonName: Hs,
4428
+ contactPersonRole: Us,
4429
+ contactPersonDetails: Vs,
4430
+ contactPersonLabel: Os,
4431
+ contactPersonEmail: Ks,
4432
+ contactPersonPhone: qs,
4433
+ contactPersonAddress: Ys,
4434
+ bottomRowContact: Zs,
4435
+ legalLinksRow: Xs,
4436
+ legalLink: Js
4437
+ }, pi = ({
4423
4438
  "data-color": t = "neutral",
4424
4439
  variant: e = "default",
4425
- showCrossCorners: r = !1,
4440
+ showCrossCorners: o = !1,
4426
4441
  newsletterDescription: d = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
4427
4442
  newsletterPlaceholder: h = "Input tekst",
4428
- newsletterButtonText: k = "Meld deg på",
4429
- newsletterConsentText: u,
4430
- onNewsletterSubmit: x,
4431
- hideNewsletter: F = !1,
4443
+ newsletterButtonText: f = "Meld deg på",
4444
+ newsletterConsentText: c,
4445
+ onNewsletterSubmit: k,
4446
+ hideNewsletter: D = !1,
4432
4447
  shortcutsLinks: C,
4433
4448
  linksLinks: U,
4434
4449
  shortcutsTitle: w,
4435
4450
  linksTitle: P,
4436
- visitingAddress: M = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
4451
+ visitingAddress: j = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
4437
4452
  organizationNumber: l = "XXX XXX XXX",
4438
4453
  email: te = "post@redcross.no",
4439
4454
  showPrimaryLogo: z = !0,
4440
4455
  primaryLogoSrc: B,
4441
4456
  primaryLogoAlt: X = "Røde Kors Logo",
4442
- whiteSectionSlot: c,
4443
- socialLinks: A = [],
4457
+ whiteSectionSlot: p,
4458
+ socialLinks: L = [],
4444
4459
  contactPersons: S = [],
4445
4460
  legalLinks: R = [],
4446
4461
  socialLinksTitle: I,
4447
4462
  contactPersonsTitle: G
4448
4463
  } = {}) => {
4449
- const O = (/* @__PURE__ */ new Date()).getFullYear(), { t: J } = ye(), [W, L] = Ne.useState(""), g = (m, D) => {
4450
- const N = J(m);
4451
- return N === m ? D : N;
4464
+ const O = (/* @__PURE__ */ new Date()).getFullYear(), { t: J } = ye(), [W, N] = Ne.useState(""), u = (g, A) => {
4465
+ const M = J(g);
4466
+ return M === g ? A : M;
4452
4467
  };
4453
4468
  Ne.useEffect(() => {
4454
- const m = "rk-footer-inline-styles";
4455
- if (typeof document > "u" || document.getElementById(m)) return;
4456
- const D = Ja(o), N = document.createElement("style");
4457
- N.id = m, N.textContent = D, document.head.appendChild(N);
4469
+ const g = "rk-footer-inline-styles";
4470
+ if (typeof document > "u" || document.getElementById(g)) return;
4471
+ const A = Qs(r), M = document.createElement("style");
4472
+ M.id = g, M.textContent = A, document.head.appendChild(M);
4458
4473
  }, []);
4459
- const f = (m) => {
4460
- m.preventDefault(), x == null || x(W);
4461
- }, b = () => /* @__PURE__ */ a(
4474
+ const v = (g) => {
4475
+ g.preventDefault(), k == null || k(W);
4476
+ }, y = () => /* @__PURE__ */ s(
4462
4477
  "svg",
4463
4478
  {
4464
4479
  width: "170",
@@ -4468,7 +4483,7 @@ const na = "_footer_1l5de_1", oa = "_mainSection_1l5de_7", ra = "_mainContainer_
4468
4483
  xmlns: "http://www.w3.org/2000/svg",
4469
4484
  "aria-hidden": !0,
4470
4485
  focusable: "false",
4471
- className: o.redCrossLogo,
4486
+ className: r.redCrossLogo,
4472
4487
  children: [
4473
4488
  /* @__PURE__ */ n("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" }),
4474
4489
  /* @__PURE__ */ n("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" }),
@@ -4482,175 +4497,175 @@ const na = "_footer_1l5de_1", oa = "_mainSection_1l5de_7", ra = "_mainContainer_
4482
4497
  /* @__PURE__ */ n("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4483
4498
  ]
4484
4499
  }
4485
- ), y = [
4486
- { label: g("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
4487
- { label: g("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
4488
- { label: g("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
4489
- { label: g("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
4490
- { label: g("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
4491
- { label: g("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
4500
+ ), x = [
4501
+ { label: u("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
4502
+ { label: u("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
4503
+ { label: u("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
4504
+ { label: u("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
4505
+ { label: u("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
4506
+ { label: u("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
4492
4507
  ], ne = [
4493
- { label: g("footer.legal.privacy", "Personvern"), href: "#" },
4494
- { label: g("footer.legal.press", "For presse"), href: "#" },
4495
- { label: g("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
4496
- { label: g("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
4497
- ], Q = /* @__PURE__ */ a(Ce, { children: [
4508
+ { label: u("footer.legal.privacy", "Personvern"), href: "#" },
4509
+ { label: u("footer.legal.press", "For presse"), href: "#" },
4510
+ { label: u("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
4511
+ { label: u("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
4512
+ ], Q = /* @__PURE__ */ s(Ce, { children: [
4498
4513
  'Ved å trykke "',
4499
- k,
4514
+ f,
4500
4515
  '" samtykker du til å motta nyhetsbrev.',
4501
4516
  /* @__PURE__ */ n("br", {}),
4502
4517
  "Du kan når som helst ",
4503
4518
  /* @__PURE__ */ n(oe, { href: "#", children: "melde deg av" }),
4504
4519
  " nyhetsbrevet uten kostnad."
4505
- ] }), _ = C || y, j = U || ne, K = () => /* @__PURE__ */ a("div", { className: o.socialLinksSection, children: [
4506
- I && /* @__PURE__ */ n("h3", { className: o.socialLinksTitle, children: I }),
4507
- /* @__PURE__ */ n("ul", { className: o.socialLinksList, children: A.map((m, D) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ a(oe, { href: m.href, className: o.socialLink, children: [
4508
- /* @__PURE__ */ n("span", { className: o.socialLinkIcon, children: m.icon }),
4509
- m.label
4510
- ] }) }, D)) })
4511
- ] }), T = ({ person: m }) => /* @__PURE__ */ a("div", { className: o.contactPersonCard, children: [
4512
- /* @__PURE__ */ n("p", { className: o.contactPersonName, children: m.name }),
4513
- /* @__PURE__ */ n("p", { className: o.contactPersonRole, children: m.role }),
4514
- /* @__PURE__ */ a("div", { className: o.contactPersonDetails, children: [
4515
- /* @__PURE__ */ a("p", { className: o.contactPersonEmail, children: [
4516
- /* @__PURE__ */ a("span", { className: o.contactPersonLabel, children: [
4517
- g("footer.contact.email", "E-post"),
4520
+ ] }), _ = C || x, F = U || ne, K = () => /* @__PURE__ */ s("div", { className: r.socialLinksSection, children: [
4521
+ I && /* @__PURE__ */ n("h3", { className: r.socialLinksTitle, children: I }),
4522
+ /* @__PURE__ */ n("ul", { className: r.socialLinksList, children: L.map((g, A) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ s(oe, { href: g.href, className: r.socialLink, children: [
4523
+ /* @__PURE__ */ n("span", { className: r.socialLinkIcon, children: g.icon }),
4524
+ g.label
4525
+ ] }) }, A)) })
4526
+ ] }), T = ({ person: g }) => /* @__PURE__ */ s("div", { className: r.contactPersonCard, children: [
4527
+ /* @__PURE__ */ n("p", { className: r.contactPersonName, children: g.name }),
4528
+ /* @__PURE__ */ n("p", { className: r.contactPersonRole, children: g.role }),
4529
+ /* @__PURE__ */ s("div", { className: r.contactPersonDetails, children: [
4530
+ /* @__PURE__ */ s("p", { className: r.contactPersonEmail, children: [
4531
+ /* @__PURE__ */ s("span", { className: r.contactPersonLabel, children: [
4532
+ u("footer.contact.email", "E-post"),
4518
4533
  ":"
4519
4534
  ] }),
4520
4535
  " ",
4521
- /* @__PURE__ */ n(oe, { href: `mailto:${m.email}`, children: m.email })
4536
+ /* @__PURE__ */ n(oe, { href: `mailto:${g.email}`, children: g.email })
4522
4537
  ] }),
4523
- m.phone && /* @__PURE__ */ a("p", { className: o.contactPersonPhone, children: [
4524
- /* @__PURE__ */ a("span", { className: o.contactPersonLabel, children: [
4525
- g("footer.contact.phone", "Telefon"),
4538
+ g.phone && /* @__PURE__ */ s("p", { className: r.contactPersonPhone, children: [
4539
+ /* @__PURE__ */ s("span", { className: r.contactPersonLabel, children: [
4540
+ u("footer.contact.phone", "Telefon"),
4526
4541
  ":"
4527
4542
  ] }),
4528
4543
  " ",
4529
- m.phone
4544
+ g.phone
4530
4545
  ] }),
4531
- m.address && /* @__PURE__ */ n("p", { className: o.contactPersonAddress, children: m.address })
4546
+ g.address && /* @__PURE__ */ n("p", { className: r.contactPersonAddress, children: g.address })
4532
4547
  ] })
4533
- ] }), Z = () => /* @__PURE__ */ a("div", { className: o.contactPersonsSection, children: [
4534
- G && /* @__PURE__ */ n("h3", { className: o.contactPersonsTitle, children: G }),
4535
- /* @__PURE__ */ n("div", { className: o.contactPersonsGrid, children: S.map((m, D) => /* @__PURE__ */ n(T, { person: m }, D)) })
4536
- ] }), ce = () => /* @__PURE__ */ n("ul", { className: o.legalLinksRow, children: R.map((m, D) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(oe, { href: m.href, className: o.legalLink, children: m.label }) }, D)) });
4537
- return e === "contact" ? /* @__PURE__ */ a("footer", { className: o.footer, "data-color": t, children: [
4538
- /* @__PURE__ */ n("div", { className: o.mainSection, children: /* @__PURE__ */ a("div", { className: o.mainContainer, children: [
4539
- r && /* @__PURE__ */ n("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ n(ve, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
4540
- /* @__PURE__ */ a("div", { className: o.contentRowContact, children: [
4541
- A.length > 0 && /* @__PURE__ */ n(K, {}),
4548
+ ] }), Z = () => /* @__PURE__ */ s("div", { className: r.contactPersonsSection, children: [
4549
+ G && /* @__PURE__ */ n("h3", { className: r.contactPersonsTitle, children: G }),
4550
+ /* @__PURE__ */ n("div", { className: r.contactPersonsGrid, children: S.map((g, A) => /* @__PURE__ */ n(T, { person: g }, A)) })
4551
+ ] }), ce = () => /* @__PURE__ */ n("ul", { className: r.legalLinksRow, children: R.map((g, A) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(oe, { href: g.href, className: r.legalLink, children: g.label }) }, A)) });
4552
+ return e === "contact" ? /* @__PURE__ */ s("footer", { className: r.footer, "data-color": t, children: [
4553
+ /* @__PURE__ */ n("div", { className: r.mainSection, children: /* @__PURE__ */ s("div", { className: r.mainContainer, children: [
4554
+ o && /* @__PURE__ */ n("div", { className: r.crossCornerTopRight, children: /* @__PURE__ */ n(ve, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
4555
+ /* @__PURE__ */ s("div", { className: r.contentRowContact, children: [
4556
+ L.length > 0 && /* @__PURE__ */ n(K, {}),
4542
4557
  S.length > 0 && /* @__PURE__ */ n(Z, {})
4543
4558
  ] }),
4544
- /* @__PURE__ */ n("div", { className: o.divider }),
4545
- /* @__PURE__ */ a("div", { className: o.contactSection, children: [
4546
- /* @__PURE__ */ a("div", { className: o.contactColumn, children: [
4547
- /* @__PURE__ */ n("h4", { className: o.contactTitle, children: g("footer.contact.visitingAddress", "Besøks adresse") }),
4548
- /* @__PURE__ */ n("div", { className: o.contactContent, children: M.map((m, D) => /* @__PURE__ */ n("p", { children: m }, D)) })
4559
+ /* @__PURE__ */ n("div", { className: r.divider }),
4560
+ /* @__PURE__ */ s("div", { className: r.contactSection, children: [
4561
+ /* @__PURE__ */ s("div", { className: r.contactColumn, children: [
4562
+ /* @__PURE__ */ n("h4", { className: r.contactTitle, children: u("footer.contact.visitingAddress", "Besøks adresse") }),
4563
+ /* @__PURE__ */ n("div", { className: r.contactContent, children: j.map((g, A) => /* @__PURE__ */ n("p", { children: g }, A)) })
4549
4564
  ] }),
4550
- /* @__PURE__ */ a("div", { className: o.contactColumn, children: [
4551
- /* @__PURE__ */ n("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4552
- /* @__PURE__ */ n("p", { className: o.contactContent, children: l })
4565
+ /* @__PURE__ */ s("div", { className: r.contactColumn, children: [
4566
+ /* @__PURE__ */ n("h4", { className: r.contactTitle, children: u("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4567
+ /* @__PURE__ */ n("p", { className: r.contactContent, children: l })
4553
4568
  ] }),
4554
- /* @__PURE__ */ a("div", { className: o.contactColumn, children: [
4555
- /* @__PURE__ */ n("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
4556
- /* @__PURE__ */ n("p", { className: o.contactContent, children: te })
4569
+ /* @__PURE__ */ s("div", { className: r.contactColumn, children: [
4570
+ /* @__PURE__ */ n("h4", { className: r.contactTitle, children: u("footer.contact.email", "E-post") }),
4571
+ /* @__PURE__ */ n("p", { className: r.contactContent, children: te })
4557
4572
  ] })
4558
4573
  ] }),
4559
- /* @__PURE__ */ n("div", { className: o.divider }),
4560
- /* @__PURE__ */ a("div", { className: o.bottomRowContact, children: [
4574
+ /* @__PURE__ */ n("div", { className: r.divider }),
4575
+ /* @__PURE__ */ s("div", { className: r.bottomRowContact, children: [
4561
4576
  R.length > 0 && /* @__PURE__ */ n(ce, {}),
4562
- /* @__PURE__ */ a("p", { className: o.copyrightText, children: [
4577
+ /* @__PURE__ */ s("p", { className: r.copyrightText, children: [
4563
4578
  "© ",
4564
4579
  O,
4565
4580
  " ",
4566
- g("footer.copyright", "Rødekors")
4581
+ u("footer.copyright", "Rødekors")
4567
4582
  ] })
4568
4583
  ] }),
4569
- r && /* @__PURE__ */ n("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ n(ve, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4584
+ o && /* @__PURE__ */ n("div", { className: r.crossCornerBottomLeft, children: /* @__PURE__ */ n(ve, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4570
4585
  ] }) }),
4571
- /* @__PURE__ */ n("div", { className: o.whiteSection, children: /* @__PURE__ */ n("div", { className: o.whiteContainer, children: /* @__PURE__ */ a("div", { className: o.whiteContent, children: [
4586
+ /* @__PURE__ */ n("div", { className: r.whiteSection, children: /* @__PURE__ */ n("div", { className: r.whiteContainer, children: /* @__PURE__ */ s("div", { className: r.whiteContent, children: [
4572
4587
  z && (B ? /* @__PURE__ */ n(
4573
4588
  "img",
4574
4589
  {
4575
4590
  src: B,
4576
4591
  alt: X,
4577
- className: o.logo,
4592
+ className: r.logo,
4578
4593
  loading: "lazy"
4579
4594
  }
4580
- ) : /* @__PURE__ */ n("div", { className: o.logo, children: /* @__PURE__ */ n(b, {}) })),
4581
- c && /* @__PURE__ */ n("div", { className: o.slotLarge, children: c })
4595
+ ) : /* @__PURE__ */ n("div", { className: r.logo, children: /* @__PURE__ */ n(y, {}) })),
4596
+ p && /* @__PURE__ */ n("div", { className: r.slotLarge, children: p })
4582
4597
  ] }) }) })
4583
- ] }) : /* @__PURE__ */ a("footer", { className: o.footer, "data-color": t, children: [
4584
- /* @__PURE__ */ n("div", { className: o.mainSection, children: /* @__PURE__ */ a("div", { className: o.mainContainer, children: [
4585
- r && /* @__PURE__ */ n("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ n(ve, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
4586
- /* @__PURE__ */ a("div", { className: o.contentRow, children: [
4587
- !F && /* @__PURE__ */ a("div", { className: o.newsletterSection, children: [
4588
- /* @__PURE__ */ n("p", { className: o.newsletterDescription, children: d }),
4589
- /* @__PURE__ */ n("form", { className: o.newsletterForm, onSubmit: f, children: /* @__PURE__ */ a("div", { className: o.newsletterInputGroup, children: [
4598
+ ] }) : /* @__PURE__ */ s("footer", { className: r.footer, "data-color": t, children: [
4599
+ /* @__PURE__ */ n("div", { className: r.mainSection, children: /* @__PURE__ */ s("div", { className: r.mainContainer, children: [
4600
+ o && /* @__PURE__ */ n("div", { className: r.crossCornerTopRight, children: /* @__PURE__ */ n(ve, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
4601
+ /* @__PURE__ */ s("div", { className: r.contentRow, children: [
4602
+ !D && /* @__PURE__ */ s("div", { className: r.newsletterSection, children: [
4603
+ /* @__PURE__ */ n("p", { className: r.newsletterDescription, children: d }),
4604
+ /* @__PURE__ */ n("form", { className: r.newsletterForm, onSubmit: v, children: /* @__PURE__ */ s("div", { className: r.newsletterInputGroup, children: [
4590
4605
  /* @__PURE__ */ n(
4591
4606
  Ze,
4592
4607
  {
4593
4608
  type: "email",
4594
4609
  placeholder: h,
4595
4610
  value: W,
4596
- onChange: (m) => L(m.target.value),
4597
- className: o.newsletterInput
4611
+ onChange: (g) => N(g.target.value),
4612
+ className: r.newsletterInput
4598
4613
  }
4599
4614
  ),
4600
- /* @__PURE__ */ n(de, { type: "submit", variant: "primary", "data-color": "neutral", children: k })
4615
+ /* @__PURE__ */ n(de, { type: "submit", variant: "primary", "data-color": "neutral", children: f })
4601
4616
  ] }) }),
4602
- /* @__PURE__ */ n("p", { className: o.consentText, children: u || Q })
4617
+ /* @__PURE__ */ n("p", { className: r.consentText, children: c || Q })
4603
4618
  ] }),
4604
- /* @__PURE__ */ a("div", { className: o.linksSection, children: [
4605
- /* @__PURE__ */ a("nav", { className: o.linksColumn, "aria-label": w || g("footer.shortcuts", "Snarveier"), children: [
4606
- /* @__PURE__ */ n("h3", { className: o.linksTitle, children: w || g("footer.shortcuts", "Snarveier") }),
4607
- /* @__PURE__ */ n("ul", { className: o.linksList, children: _.map((m, D) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(oe, { href: m.href, className: o.footerLink, children: m.label }) }, D)) })
4619
+ /* @__PURE__ */ s("div", { className: r.linksSection, children: [
4620
+ /* @__PURE__ */ s("nav", { className: r.linksColumn, "aria-label": w || u("footer.shortcuts", "Snarveier"), children: [
4621
+ /* @__PURE__ */ n("h3", { className: r.linksTitle, children: w || u("footer.shortcuts", "Snarveier") }),
4622
+ /* @__PURE__ */ n("ul", { className: r.linksList, children: _.map((g, A) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(oe, { href: g.href, className: r.footerLink, children: g.label }) }, A)) })
4608
4623
  ] }),
4609
- /* @__PURE__ */ a("nav", { className: o.linksColumn, "aria-label": P || g("footer.links", "Lenker"), children: [
4610
- /* @__PURE__ */ n("h3", { className: o.linksTitle, children: P || g("footer.links", "Lenker") }),
4611
- /* @__PURE__ */ n("ul", { className: o.linksList, children: j.map((m, D) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(oe, { href: m.href, className: o.footerLink, children: m.label }) }, D)) })
4624
+ /* @__PURE__ */ s("nav", { className: r.linksColumn, "aria-label": P || u("footer.links", "Lenker"), children: [
4625
+ /* @__PURE__ */ n("h3", { className: r.linksTitle, children: P || u("footer.links", "Lenker") }),
4626
+ /* @__PURE__ */ n("ul", { className: r.linksList, children: F.map((g, A) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(oe, { href: g.href, className: r.footerLink, children: g.label }) }, A)) })
4612
4627
  ] })
4613
4628
  ] })
4614
4629
  ] }),
4615
- /* @__PURE__ */ n("div", { className: o.divider }),
4616
- /* @__PURE__ */ a("div", { className: o.contactSection, children: [
4617
- /* @__PURE__ */ a("div", { className: o.contactColumn, children: [
4618
- /* @__PURE__ */ n("h4", { className: o.contactTitle, children: g("footer.contact.visitingAddress", "Besøks adresse") }),
4619
- /* @__PURE__ */ n("div", { className: o.contactContent, children: M.map((m, D) => /* @__PURE__ */ n("p", { children: m }, D)) })
4630
+ /* @__PURE__ */ n("div", { className: r.divider }),
4631
+ /* @__PURE__ */ s("div", { className: r.contactSection, children: [
4632
+ /* @__PURE__ */ s("div", { className: r.contactColumn, children: [
4633
+ /* @__PURE__ */ n("h4", { className: r.contactTitle, children: u("footer.contact.visitingAddress", "Besøks adresse") }),
4634
+ /* @__PURE__ */ n("div", { className: r.contactContent, children: j.map((g, A) => /* @__PURE__ */ n("p", { children: g }, A)) })
4620
4635
  ] }),
4621
- /* @__PURE__ */ a("div", { className: o.contactColumn, children: [
4622
- /* @__PURE__ */ n("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4623
- /* @__PURE__ */ n("p", { className: o.contactContent, children: l })
4636
+ /* @__PURE__ */ s("div", { className: r.contactColumn, children: [
4637
+ /* @__PURE__ */ n("h4", { className: r.contactTitle, children: u("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4638
+ /* @__PURE__ */ n("p", { className: r.contactContent, children: l })
4624
4639
  ] }),
4625
- /* @__PURE__ */ a("div", { className: o.contactColumn, children: [
4626
- /* @__PURE__ */ n("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
4627
- /* @__PURE__ */ n("p", { className: o.contactContent, children: te })
4640
+ /* @__PURE__ */ s("div", { className: r.contactColumn, children: [
4641
+ /* @__PURE__ */ n("h4", { className: r.contactTitle, children: u("footer.contact.email", "E-post") }),
4642
+ /* @__PURE__ */ n("p", { className: r.contactContent, children: te })
4628
4643
  ] })
4629
4644
  ] }),
4630
- /* @__PURE__ */ n("div", { className: o.divider }),
4631
- /* @__PURE__ */ n("div", { className: o.copyrightSection, children: /* @__PURE__ */ a("p", { className: o.copyrightText, children: [
4645
+ /* @__PURE__ */ n("div", { className: r.divider }),
4646
+ /* @__PURE__ */ n("div", { className: r.copyrightSection, children: /* @__PURE__ */ s("p", { className: r.copyrightText, children: [
4632
4647
  "© ",
4633
4648
  O,
4634
4649
  " ",
4635
- g("footer.copyright", "Rødekors")
4650
+ u("footer.copyright", "Rødekors")
4636
4651
  ] }) }),
4637
- r && /* @__PURE__ */ n("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ n(ve, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4652
+ o && /* @__PURE__ */ n("div", { className: r.crossCornerBottomLeft, children: /* @__PURE__ */ n(ve, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4638
4653
  ] }) }),
4639
- /* @__PURE__ */ n("div", { className: o.whiteSection, children: /* @__PURE__ */ n("div", { className: o.whiteContainer, children: /* @__PURE__ */ a("div", { className: o.whiteContent, children: [
4654
+ /* @__PURE__ */ n("div", { className: r.whiteSection, children: /* @__PURE__ */ n("div", { className: r.whiteContainer, children: /* @__PURE__ */ s("div", { className: r.whiteContent, children: [
4640
4655
  z && (B ? /* @__PURE__ */ n(
4641
4656
  "img",
4642
4657
  {
4643
4658
  src: B,
4644
4659
  alt: X,
4645
- className: o.logo,
4660
+ className: r.logo,
4646
4661
  loading: "lazy"
4647
4662
  }
4648
- ) : /* @__PURE__ */ n("div", { className: o.logo, children: /* @__PURE__ */ n(b, {}) })),
4649
- c && /* @__PURE__ */ n("div", { className: o.slotLarge, children: c })
4663
+ ) : /* @__PURE__ */ n("div", { className: r.logo, children: /* @__PURE__ */ n(y, {}) })),
4664
+ p && /* @__PURE__ */ n("div", { className: r.slotLarge, children: p })
4650
4665
  ] }) }) })
4651
4666
  ] });
4652
4667
  };
4653
- function Ja(t) {
4668
+ function Qs(t) {
4654
4669
  const e = t;
4655
4670
  return `
4656
4671
  .${e.footer} {
@@ -5075,24 +5090,24 @@ function Ja(t) {
5075
5090
  }
5076
5091
  `;
5077
5092
  }
5078
- const Qa = "_donor_1hxqz_1", es = "_tabsWrapper_1hxqz_14", ts = "_content_1hxqz_35", ns = "_amountSection_1hxqz_47", os = "_amountLabel_1hxqz_55", rs = "_amountButtons_1hxqz_64", as = "_customAmountField_1hxqz_75", ss = "_impactRow_1hxqz_80", is = "_heartIcon_1hxqz_88", ls = "_impactText_1hxqz_102", ds = "_impactAmount_1hxqz_112", cs = "_actionsSection_1hxqz_117", ps = "_vippsButton_1hxqz_127", ms = "_vippsButtonLabel_1hxqz_157", gs = "_vippsLogo_1hxqz_166", us = "_avtalegiroLink_1hxqz_179", hs = "_tabHeartIcon_1hxqz_184", E = {
5079
- donor: Qa,
5080
- tabsWrapper: es,
5081
- content: ts,
5082
- amountSection: ns,
5083
- amountLabel: os,
5084
- amountButtons: rs,
5085
- customAmountField: as,
5086
- impactRow: ss,
5087
- heartIcon: is,
5088
- impactText: ls,
5089
- impactAmount: ds,
5090
- actionsSection: cs,
5091
- vippsButton: ps,
5092
- vippsButtonLabel: ms,
5093
- vippsLogo: gs,
5094
- avtalegiroLink: us,
5095
- tabHeartIcon: hs
5093
+ const ea = "_donor_1hxqz_1", ta = "_tabsWrapper_1hxqz_14", na = "_content_1hxqz_35", oa = "_amountSection_1hxqz_47", ra = "_amountLabel_1hxqz_55", sa = "_amountButtons_1hxqz_64", aa = "_customAmountField_1hxqz_75", ia = "_impactRow_1hxqz_80", la = "_heartIcon_1hxqz_88", da = "_impactText_1hxqz_102", ca = "_impactAmount_1hxqz_112", pa = "_actionsSection_1hxqz_117", ma = "_vippsButton_1hxqz_127", ga = "_vippsButtonLabel_1hxqz_157", ua = "_vippsLogo_1hxqz_166", ha = "_avtalegiroLink_1hxqz_179", fa = "_tabHeartIcon_1hxqz_184", E = {
5094
+ donor: ea,
5095
+ tabsWrapper: ta,
5096
+ content: na,
5097
+ amountSection: oa,
5098
+ amountLabel: ra,
5099
+ amountButtons: sa,
5100
+ customAmountField: aa,
5101
+ impactRow: ia,
5102
+ heartIcon: la,
5103
+ impactText: da,
5104
+ impactAmount: ca,
5105
+ actionsSection: pa,
5106
+ vippsButton: ma,
5107
+ vippsButtonLabel: ga,
5108
+ vippsLogo: ua,
5109
+ avtalegiroLink: ha,
5110
+ tabHeartIcon: fa
5096
5111
  }, We = () => /* @__PURE__ */ n(
5097
5112
  "svg",
5098
5113
  {
@@ -5111,7 +5126,7 @@ const Qa = "_donor_1hxqz_1", es = "_tabsWrapper_1hxqz_14", ts = "_content_1hxqz_
5111
5126
  }
5112
5127
  )
5113
5128
  }
5114
- ), fs = () => /* @__PURE__ */ n(
5129
+ ), ka = () => /* @__PURE__ */ n(
5115
5130
  "svg",
5116
5131
  {
5117
5132
  width: "16",
@@ -5129,7 +5144,7 @@ const Qa = "_donor_1hxqz_1", es = "_tabsWrapper_1hxqz_14", ts = "_content_1hxqz_
5129
5144
  }
5130
5145
  )
5131
5146
  }
5132
- ), ks = () => /* @__PURE__ */ n(
5147
+ ), va = () => /* @__PURE__ */ n(
5133
5148
  "svg",
5134
5149
  {
5135
5150
  width: "64",
@@ -5147,114 +5162,114 @@ const Qa = "_donor_1hxqz_1", es = "_tabsWrapper_1hxqz_14", ts = "_content_1hxqz_
5147
5162
  }
5148
5163
  )
5149
5164
  }
5150
- ), vs = [
5165
+ ), ba = [
5151
5166
  { value: 220, label: "220 kr" },
5152
5167
  { value: 345, label: "345 kr" },
5153
5168
  { value: 660, label: "660 kr" }
5154
- ], pi = ({
5169
+ ], mi = ({
5155
5170
  "data-color": t = "primary",
5156
- amounts: e = vs,
5157
- defaultAmount: r = 345,
5171
+ amounts: e = ba,
5172
+ defaultAmount: o = 345,
5158
5173
  oneTimeLabel: d = "En gang",
5159
5174
  monthlyLabel: h = "Hver måned",
5160
- customAmountPlaceholder: k = "Valgfritt beløp",
5161
- amountLabel: u = "Velg ønsket beløp:",
5162
- impactMessage: x = "En gave på {amount} bidrar til ...",
5163
- vippsButtonLabel: F = "Gi med",
5175
+ customAmountPlaceholder: f = "Valgfritt beløp",
5176
+ amountLabel: c = "Velg ønsket beløp:",
5177
+ impactMessage: k = "En gave på {amount} bidrar til ...",
5178
+ vippsButtonLabel: D = "Gi med",
5164
5179
  avtalegiroLabel: C = "Gi med avtalegiro",
5165
5180
  avtalegiroHref: U = "#",
5166
5181
  currencySuffix: w = "kr",
5167
5182
  onVippsClick: P,
5168
- onAvtalegiroClick: M,
5183
+ onAvtalegiroClick: j,
5169
5184
  onAmountChange: l,
5170
5185
  showVippsButton: te = !0,
5171
5186
  showAvtalegiroLink: z = !0,
5172
5187
  showImpactMessage: B = !0,
5173
5188
  heartVariant: X = "outlined"
5174
5189
  }) => {
5175
- const [c, A] = Y("monthly"), [S, R] = Y(r), [I, G] = Y(""), [O, J] = Y(!1);
5190
+ const [p, L] = Y("monthly"), [S, R] = Y(o), [I, G] = Y(""), [O, J] = Y(!1);
5176
5191
  $(() => {
5177
5192
  const _ = "rk-donor-inline-styles";
5178
5193
  if (typeof document > "u" || document.getElementById(_)) return;
5179
- const j = bs(E), K = document.createElement("style");
5180
- K.id = _, K.textContent = j, document.head.appendChild(K);
5194
+ const F = ya(E), K = document.createElement("style");
5195
+ K.id = _, K.textContent = F, document.head.appendChild(K);
5181
5196
  }, []);
5182
- const W = O && I ? parseInt(I, 10) || 0 : S, L = (_) => {
5183
- R(_), J(!1), G(""), l == null || l(_, c);
5184
- }, g = (_) => {
5185
- const j = _.target.value;
5186
- G(j), J(!0);
5187
- const K = parseInt(j, 10);
5188
- K > 0 && (l == null || l(K, c));
5189
- }, f = () => {
5197
+ const W = O && I ? parseInt(I, 10) || 0 : S, N = (_) => {
5198
+ R(_), J(!1), G(""), l == null || l(_, p);
5199
+ }, u = (_) => {
5200
+ const F = _.target.value;
5201
+ G(F), J(!0);
5202
+ const K = parseInt(F, 10);
5203
+ K > 0 && (l == null || l(K, p));
5204
+ }, v = () => {
5190
5205
  J(!0);
5191
- }, b = (_) => {
5192
- const j = _;
5193
- A(j), l == null || l(W, j);
5194
- }, y = () => {
5195
- P == null || P(W, c);
5206
+ }, y = (_) => {
5207
+ const F = _;
5208
+ L(F), l == null || l(W, F);
5209
+ }, x = () => {
5210
+ P == null || P(W, p);
5196
5211
  }, ne = () => {
5197
- M == null || M();
5212
+ j == null || j();
5198
5213
  }, Q = () => {
5199
- const _ = `${W} ${w}`, j = x.split("{amount}");
5200
- return /* @__PURE__ */ a("span", { children: [
5201
- j[0],
5214
+ const _ = `${W} ${w}`, F = k.split("{amount}");
5215
+ return /* @__PURE__ */ s("span", { children: [
5216
+ F[0],
5202
5217
  /* @__PURE__ */ n("span", { className: E.impactAmount, children: _ }),
5203
- j[1] || ""
5218
+ F[1] || ""
5204
5219
  ] });
5205
5220
  };
5206
- return /* @__PURE__ */ a("div", { className: E.donor, "data-color": t, children: [
5207
- /* @__PURE__ */ n("div", { className: E.tabsWrapper, children: /* @__PURE__ */ n(Te, { defaultValue: "monthly", onChange: b, "data-size": "md", children: /* @__PURE__ */ a(Te.List, { children: [
5221
+ return /* @__PURE__ */ s("div", { className: E.donor, "data-color": t, children: [
5222
+ /* @__PURE__ */ n("div", { className: E.tabsWrapper, children: /* @__PURE__ */ n(Te, { defaultValue: "monthly", onChange: y, "data-size": "md", children: /* @__PURE__ */ s(Te.List, { children: [
5208
5223
  /* @__PURE__ */ n(Te.Tab, { value: "one-time", children: d }),
5209
- /* @__PURE__ */ a(Te.Tab, { value: "monthly", children: [
5224
+ /* @__PURE__ */ s(Te.Tab, { value: "monthly", children: [
5210
5225
  /* @__PURE__ */ n("span", { className: E.tabHeartIcon, children: /* @__PURE__ */ n(We, {}) }),
5211
5226
  h
5212
5227
  ] })
5213
5228
  ] }) }) }),
5214
- /* @__PURE__ */ a("div", { className: E.content, children: [
5215
- /* @__PURE__ */ a("div", { className: E.amountSection, children: [
5216
- /* @__PURE__ */ n(be, { className: E.amountLabel, "data-size": "sm", children: u }),
5229
+ /* @__PURE__ */ s("div", { className: E.content, children: [
5230
+ /* @__PURE__ */ s("div", { className: E.amountSection, children: [
5231
+ /* @__PURE__ */ n(be, { className: E.amountLabel, "data-size": "sm", children: c }),
5217
5232
  /* @__PURE__ */ n("div", { className: E.amountButtons, children: e.map((_) => {
5218
- const j = !O && S === _.value;
5233
+ const F = !O && S === _.value;
5219
5234
  return /* @__PURE__ */ n(
5220
5235
  de,
5221
5236
  {
5222
- variant: j ? "primary" : "secondary",
5223
- "data-color": j ? "accent" : "neutral",
5224
- onClick: () => L(_.value),
5237
+ variant: F ? "primary" : "secondary",
5238
+ "data-color": F ? "accent" : "neutral",
5239
+ onClick: () => N(_.value),
5225
5240
  children: _.label
5226
5241
  },
5227
5242
  _.value
5228
5243
  );
5229
5244
  }) }),
5230
5245
  /* @__PURE__ */ n("div", { className: E.customAmountField, children: /* @__PURE__ */ n(
5231
- Xo,
5246
+ Jo,
5232
5247
  {
5233
- "aria-label": k,
5234
- placeholder: k,
5248
+ "aria-label": f,
5249
+ placeholder: f,
5235
5250
  value: I,
5236
- onChange: g,
5237
- onFocus: f,
5251
+ onChange: u,
5252
+ onFocus: v,
5238
5253
  type: "number",
5239
5254
  min: 1
5240
5255
  }
5241
5256
  ) })
5242
5257
  ] }),
5243
- B && /* @__PURE__ */ a("div", { className: E.impactRow, children: [
5244
- /* @__PURE__ */ n("div", { className: E.heartIcon, children: X === "filled" ? /* @__PURE__ */ n(We, {}) : /* @__PURE__ */ n(fs, {}) }),
5258
+ B && /* @__PURE__ */ s("div", { className: E.impactRow, children: [
5259
+ /* @__PURE__ */ n("div", { className: E.heartIcon, children: X === "filled" ? /* @__PURE__ */ n(We, {}) : /* @__PURE__ */ n(ka, {}) }),
5245
5260
  /* @__PURE__ */ n("p", { className: E.impactText, children: Q() })
5246
5261
  ] }),
5247
- /* @__PURE__ */ a("div", { className: E.actionsSection, children: [
5248
- te && /* @__PURE__ */ a(
5262
+ /* @__PURE__ */ s("div", { className: E.actionsSection, children: [
5263
+ te && /* @__PURE__ */ s(
5249
5264
  "button",
5250
5265
  {
5251
5266
  className: E.vippsButton,
5252
- onClick: y,
5267
+ onClick: x,
5253
5268
  type: "button",
5254
- "aria-label": `${F} Vipps`,
5269
+ "aria-label": `${D} Vipps`,
5255
5270
  children: [
5256
- /* @__PURE__ */ n("span", { className: E.vippsButtonLabel, children: F }),
5257
- /* @__PURE__ */ n("span", { className: E.vippsLogo, children: /* @__PURE__ */ n(ks, {}) })
5271
+ /* @__PURE__ */ n("span", { className: E.vippsButtonLabel, children: D }),
5272
+ /* @__PURE__ */ n("span", { className: E.vippsLogo, children: /* @__PURE__ */ n(va, {}) })
5258
5273
  ]
5259
5274
  }
5260
5275
  ),
@@ -5265,7 +5280,7 @@ const Qa = "_donor_1hxqz_1", es = "_tabsWrapper_1hxqz_14", ts = "_content_1hxqz_
5265
5280
  "data-color": "neutral",
5266
5281
  className: E.avtalegiroLink,
5267
5282
  onClick: (_) => {
5268
- M && (_.preventDefault(), ne());
5283
+ j && (_.preventDefault(), ne());
5269
5284
  },
5270
5285
  children: C
5271
5286
  }
@@ -5274,7 +5289,7 @@ const Qa = "_donor_1hxqz_1", es = "_tabsWrapper_1hxqz_14", ts = "_content_1hxqz_
5274
5289
  ] })
5275
5290
  ] });
5276
5291
  };
5277
- function bs(t) {
5292
+ function ya(t) {
5278
5293
  return `
5279
5294
  .${t.donor} {
5280
5295
  border-radius: 16px;
@@ -5443,69 +5458,69 @@ export {
5443
5458
  un as Alert,
5444
5459
  Ke as Avatar,
5445
5460
  hn as Badge,
5446
- Is as BadgePosition,
5447
- _s as Breadcrumbs,
5448
- As as BreadcrumbsItem,
5449
- Ls as BreadcrumbsLink,
5450
- Ds as BreadcrumbsList,
5461
+ _a as BadgePosition,
5462
+ Da as Breadcrumbs,
5463
+ La as BreadcrumbsItem,
5464
+ Na as BreadcrumbsLink,
5465
+ Aa as BreadcrumbsList,
5451
5466
  de as Button,
5452
- fn as Card,
5453
- Ns as CardBlock,
5454
- $o as Carousel,
5455
- kn as Checkbox,
5456
- js as Chip,
5467
+ kn as Card,
5468
+ Ma as CardBlock,
5469
+ Po as Carousel,
5470
+ vn as Checkbox,
5471
+ Fa as Chip,
5457
5472
  ve as CrossCorner,
5458
- bo as DateInput,
5459
- co as DatePicker,
5460
- Es as Details,
5461
- $s as Dialog,
5462
- Ps as Divider,
5463
- pi as Donor,
5473
+ yo as DateInput,
5474
+ po as DatePicker,
5475
+ $a as Details,
5476
+ Pa as Dialog,
5477
+ za as Divider,
5478
+ mi as Donor,
5464
5479
  V as Dropdown,
5465
- Us as DropdownButton,
5466
- Gs as DropdownHeading,
5467
- Hs as DropdownItem,
5468
- Ws as DropdownList,
5469
- zs as DropdownTrigger,
5470
- Rs as DropdownTriggerContext,
5471
- Vs as ErrorSummary,
5472
- Os as Field,
5473
- Vo as FieldCounter,
5474
- Uo as FieldDescription,
5475
- Ks as Fieldset,
5476
- ci as Footer,
5477
- di as Header,
5478
- Oo as Heading,
5480
+ Va as DropdownButton,
5481
+ Wa as DropdownHeading,
5482
+ Ua as DropdownItem,
5483
+ Ha as DropdownList,
5484
+ Ra as DropdownTrigger,
5485
+ Ga as DropdownTriggerContext,
5486
+ Oa as ErrorSummary,
5487
+ Ka as Field,
5488
+ Oo as FieldCounter,
5489
+ Vo as FieldDescription,
5490
+ qa as Fieldset,
5491
+ pi as Footer,
5492
+ ci as Header,
5493
+ Ko as Heading,
5479
5494
  Ze as Input,
5480
- Ko as Label,
5481
- Fs as LanguageProvider,
5495
+ qo as Label,
5496
+ Ba as LanguageProvider,
5482
5497
  oe as Link,
5483
- qs as List,
5484
- qo as Pagination,
5485
- Xs as PaginationButton,
5486
- Zs as PaginationItem,
5487
- Ys as PaginationList,
5498
+ Ya as List,
5499
+ Yo as Pagination,
5500
+ Ja as PaginationButton,
5501
+ Xa as PaginationItem,
5502
+ Za as PaginationList,
5488
5503
  be as Paragraph,
5489
- Qs as Popover,
5490
- ei as Radio,
5504
+ ei as Popover,
5505
+ ti as Radio,
5491
5506
  xe as Search,
5492
- ni as Select,
5493
- oi as SkeletonLoader,
5494
- ri as SkipLink,
5495
- Eo as Spinner,
5496
- Yo as Suggestion,
5507
+ oi as Select,
5508
+ ri as SkeletonLoader,
5509
+ si as SkipLink,
5510
+ $o as Spinner,
5511
+ Zo as Suggestion,
5497
5512
  Le as Switch,
5498
5513
  ai as Table,
5499
5514
  Te as Tabs,
5500
- Zo as Tag,
5501
- si as Textarea,
5502
- Xo as Textfield,
5503
- ii as ToggleGroup,
5504
- li as Tooltip,
5505
- Jo as ValidationMessage,
5506
- Ms as useCheckboxGroup,
5507
- Bs as useLanguage,
5515
+ Xo as Tag,
5516
+ ii as Textarea,
5517
+ Jo as Textfield,
5518
+ li as ToggleGroup,
5519
+ di as Tooltip,
5520
+ Qo as ValidationMessage,
5521
+ ja as useCheckboxGroup,
5522
+ Ea as useLanguage,
5508
5523
  ye as useLanguageOptional,
5509
- Js as usePagination,
5510
- ti as useRadioGroup
5524
+ Qa as usePagination,
5525
+ ni as useRadioGroup
5511
5526
  };