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