rk-designsystem 1.2.4 → 1.3.0

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,101 +1,95 @@
1
- import { jsx as t, jsxs as r, Fragment as Se } from "react/jsx-runtime";
2
- import Ne, { forwardRef as ie, useState as O, useContext as He, createContext as Je, useEffect as z, useMemo as fe, useCallback as se, useRef as Qe } from "react";
3
- import { Alert as et, Avatar as tt, BadgePosition as nt, Badge as ot, Breadcrumbs as rt, BreadcrumbsItem as at, BreadcrumbsLink as st, BreadcrumbsList as it, Button as Me, Card as lt, CardBlock as dt, Checkbox as ct, useCheckboxGroup as pt, Fieldset as Ue, Chip as mt, Spinner as gt, Details as ut, Dialog as ht, Divider as ft, Dropdown as kt, DropdownButton as vt, DropdownHeading as bt, DropdownItem as yt, DropdownList as xt, DropdownTrigger as Tt, DropdownTriggerContext as Ct, ErrorSummary as wt, Field as St, FieldCounter as It, FieldDescription as _t, Heading as Dt, Input as Lt, Label as At, Link as Nt, List as Mt, Pagination as jt, PaginationButton as Ft, PaginationItem as Bt, PaginationList as Et, usePagination as $t, Paragraph as Pt, Popover as zt, Radio as Rt, useRadioGroup as Gt, Search as Wt, SearchInput as Ht, SearchClear as Ut, SearchButton as Vt, Select as Ot, Skeleton as Kt, SkipLink as qt, EXPERIMENTAL_Suggestion as Yt, Switch as Zt, Table as Xt, Tabs as Jt, Tag as Qt, Textarea as en, Textfield as tn, ToggleGroup as nn, Tooltip as on, ValidationMessage as rn } from "@digdir/designsystemet-react";
4
- import { startOfMonth as ue, isValid as Ie, isSameMonth as Fe, startOfWeek as Ve, format as ke, addDays as Oe, subMonths as an, addMonths as sn, isSameDay as ln, isToday as dn, eachDayOfInterval as cn } from "date-fns";
5
- import pn from "embla-carousel-react";
6
- import { ChevronLeftIcon as mn, ChevronRightIcon as gn, ChevronDownIcon as Be, XMarkIcon as _e, MagnifyingGlassIcon as Ee, MenuHamburgerIcon as $e, HeartIcon as un } from "@navikt/aksel-icons";
7
- const hn = ie((n, e) => /* @__PURE__ */ t(et, { ref: e, ...n }));
8
- hn.displayName = "Alert";
9
- const Ke = ie((n, e) => /* @__PURE__ */ t(tt, { ref: e, ...n }));
10
- Ke.displayName = "Avatar";
11
- const fn = ie((n, e) => /* @__PURE__ */ t(ot, { ref: e, ...n }));
12
- fn.displayName = "Badge";
13
- const Os = nt, Ks = rt, qs = it, Ys = at, Zs = st;
14
- function kn() {
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 ce = ie(function({ variant: e, shape: a, style: d, ...h }, f) {
25
- const g = {};
26
- e === "soft" && Object.assign(g, kn()), a === "pill" && (g.borderRadius = "var(--ds-border-radius-full)");
27
- const k = Object.keys(g).length === 0 && !d ? void 0 : { ...g, ...d }, D = {};
28
- return e !== void 0 && (D.variant = e), a === "pill" && (D["data-shape"] = "pill"), /* @__PURE__ */ t(Me, { ref: f, ...h, ...D, style: k });
1
+ import { jsx as t, jsxs as r, Fragment as tt } from "react/jsx-runtime";
2
+ import ye, { forwardRef as me, useState as Z, useContext as nt, createContext as pt, useEffect as U, useRef as Ee, useMemo as Ae, useCallback as ce, useId as We } from "react";
3
+ import { Heading as mt, Alert as gt, Avatar as ut, BadgePosition as ht, Badge as ft, Breadcrumbs as kt, BreadcrumbsItem as vt, BreadcrumbsLink as bt, BreadcrumbsList as yt, Button as Ge, Card as xt, CardBlock as Tt, Checkbox as Ct, useCheckboxGroup as wt, Fieldset as ot, Chip as St, Spinner as _t, Details as It, Dialog as Lt, Divider as Dt, Dropdown as Mt, DropdownButton as jt, DropdownHeading as At, DropdownItem as Nt, DropdownList as Et, DropdownTrigger as Bt, DropdownTriggerContext as Ft, ErrorSummary as Pt, Field as $t, FieldCounter as zt, FieldDescription as Rt, Input as Gt, Label as Ht, Link as Wt, List as Ut, Pagination as Vt, PaginationButton as Ot, PaginationItem as Kt, PaginationList as Zt, usePagination as qt, Paragraph as Yt, Popover as Xt, Radio as Jt, useRadioGroup as Qt, Search as en, SearchInput as tn, SearchClear as nn, SearchButton as on, Select as rn, Skeleton as an, SkipLink as sn, EXPERIMENTAL_Suggestion as ln, Switch as dn, Table as cn, Tabs as pn, Tag as mn, Textarea as gn, Textfield as un, ToggleGroup as hn, Tooltip as fn, ValidationMessage as kn } from "@digdir/designsystemet-react";
4
+ import { startOfMonth as be, isValid as De, isSameMonth as Fe, format as ve, startOfWeek as He, addDays as Ce, subMonths as Ve, addMonths as Oe, endOfWeek as vn, isSameDay as Ke, isToday as bn, eachDayOfInterval as yn, getDaysInMonth as xn, setDate as Tn, parse as Cn } from "date-fns";
5
+ import wn from "embla-carousel-react";
6
+ import { ChevronLeftIcon as Sn, ChevronRightIcon as _n, PlayIcon as In, PauseIcon as Ln, ChevronDownIcon as Ze, XMarkIcon as qe, MagnifyingGlassIcon as Ye, MenuHamburgerIcon as Dn, HeartIcon as Mn } from "@navikt/aksel-icons";
7
+ const rt = me((n, e) => /* @__PURE__ */ t(mt, { ref: e, ...n }));
8
+ rt.displayName = "Heading";
9
+ const jn = me((n, e) => {
10
+ const { title: a, titleLevel: c, children: k, ...y } = n;
11
+ return /* @__PURE__ */ r(gt, { ref: e, ...y, children: [
12
+ a && (c ? /* @__PURE__ */ t(rt, { level: c, "data-size": "2xs", style: { marginBottom: "var(--ds-size-1)" }, children: a }) : /* @__PURE__ */ t("p", { className: "ds-heading", "data-size": "2xs", style: { marginBottom: "var(--ds-size-1)" }, children: a })),
13
+ k
14
+ ] });
29
15
  });
30
- ce.displayName = "Button";
31
- const vn = lt, Xs = dt;
32
- vn.displayName = "Card";
33
- const bn = ct, yn = Ue, Js = pt;
34
- bn.displayName = "Checkbox";
35
- yn.displayName = "Fieldset";
36
- const Qs = mt;
37
- function De(n) {
16
+ jn.displayName = "Alert";
17
+ const at = me((n, e) => /* @__PURE__ */ t(ut, { ref: e, ...n }));
18
+ at.displayName = "Avatar";
19
+ const An = me((n, e) => /* @__PURE__ */ t(ft, { ref: e, ...n }));
20
+ An.displayName = "Badge";
21
+ const gi = ht, ui = kt, hi = yt, fi = vt, ki = bt, fe = me(function({ variant: e, ...a }, c) {
22
+ return /* @__PURE__ */ t(Ge, { ref: c, variant: e, ...a });
23
+ });
24
+ fe.displayName = "Button";
25
+ const Nn = xt, vi = Tt;
26
+ Nn.displayName = "Card";
27
+ const En = Ct, Bn = ot, bi = wt;
28
+ En.displayName = "Checkbox";
29
+ Bn.displayName = "Fieldset";
30
+ const yi = St;
31
+ function $e(n) {
38
32
  return (e = {}) => {
39
33
  const a = e.width ? String(e.width) : n.defaultWidth;
40
34
  return n.formats[a] || n.formats[n.defaultWidth];
41
35
  };
42
36
  }
43
- function ve(n) {
37
+ function _e(n) {
44
38
  return (e, a) => {
45
- const d = a != null && a.context ? String(a.context) : "standalone";
46
- let h;
47
- if (d === "formatting" && n.formattingValues) {
48
- const g = n.defaultFormattingWidth || n.defaultWidth, k = a != null && a.width ? String(a.width) : g;
49
- h = n.formattingValues[k] || n.formattingValues[g];
39
+ const c = a != null && a.context ? String(a.context) : "standalone";
40
+ let k;
41
+ if (c === "formatting" && n.formattingValues) {
42
+ const f = n.defaultFormattingWidth || n.defaultWidth, x = a != null && a.width ? String(a.width) : f;
43
+ k = n.formattingValues[x] || n.formattingValues[f];
50
44
  } else {
51
- const g = n.defaultWidth, k = a != null && a.width ? String(a.width) : n.defaultWidth;
52
- h = n.values[k] || n.values[g];
45
+ const f = n.defaultWidth, x = a != null && a.width ? String(a.width) : n.defaultWidth;
46
+ k = n.values[x] || n.values[f];
53
47
  }
54
- const f = n.argumentCallback ? n.argumentCallback(e) : e;
55
- return h[f];
48
+ const y = n.argumentCallback ? n.argumentCallback(e) : e;
49
+ return k[y];
56
50
  };
57
51
  }
58
- function be(n) {
52
+ function Ie(n) {
59
53
  return (e, a = {}) => {
60
- const d = a.width, h = d && n.matchPatterns[d] || n.matchPatterns[n.defaultMatchWidth], f = e.match(h);
61
- if (!f)
54
+ const c = a.width, k = c && n.matchPatterns[c] || n.matchPatterns[n.defaultMatchWidth], y = e.match(k);
55
+ if (!y)
62
56
  return null;
63
- const g = f[0], k = d && n.parsePatterns[d] || n.parsePatterns[n.defaultParseWidth], D = Array.isArray(k) ? Tn(k, (_) => _.test(g)) : (
57
+ const f = y[0], x = c && n.parsePatterns[c] || n.parsePatterns[n.defaultParseWidth], B = Array.isArray(x) ? Pn(x, (L) => L.test(f)) : (
64
58
  // [TODO] -- I challenge you to fix the type
65
- xn(k, (_) => _.test(g))
59
+ Fn(x, (L) => L.test(f))
66
60
  );
67
- let S;
68
- S = n.valueCallback ? n.valueCallback(D) : D, S = a.valueCallback ? (
61
+ let I;
62
+ I = n.valueCallback ? n.valueCallback(B) : B, I = a.valueCallback ? (
69
63
  // [TODO] -- I challenge you to fix the type
70
- a.valueCallback(S)
71
- ) : S;
72
- const R = e.slice(g.length);
73
- return { value: S, rest: R };
64
+ a.valueCallback(I)
65
+ ) : I;
66
+ const J = e.slice(f.length);
67
+ return { value: I, rest: J };
74
68
  };
75
69
  }
76
- function xn(n, e) {
70
+ function Fn(n, e) {
77
71
  for (const a in n)
78
72
  if (Object.prototype.hasOwnProperty.call(n, a) && e(n[a]))
79
73
  return a;
80
74
  }
81
- function Tn(n, e) {
75
+ function Pn(n, e) {
82
76
  for (let a = 0; a < n.length; a++)
83
77
  if (e(n[a]))
84
78
  return a;
85
79
  }
86
- function Cn(n) {
80
+ function $n(n) {
87
81
  return (e, a = {}) => {
88
- const d = e.match(n.matchPattern);
89
- if (!d) return null;
90
- const h = d[0], f = e.match(n.parsePattern);
91
- if (!f) return null;
92
- let g = n.valueCallback ? n.valueCallback(f[0]) : f[0];
93
- g = a.valueCallback ? a.valueCallback(g) : g;
94
- const k = e.slice(h.length);
95
- return { value: g, rest: k };
82
+ const c = e.match(n.matchPattern);
83
+ if (!c) return null;
84
+ const k = c[0], y = e.match(n.parsePattern);
85
+ if (!y) return null;
86
+ let f = n.valueCallback ? n.valueCallback(y[0]) : y[0];
87
+ f = a.valueCallback ? a.valueCallback(f) : f;
88
+ const x = e.slice(k.length);
89
+ return { value: f, rest: x };
96
90
  };
97
91
  }
98
- const wn = {
92
+ const zn = {
99
93
  lessThanXSeconds: {
100
94
  one: "mindre enn ett sekund",
101
95
  other: "mindre enn {{count}} sekunder"
@@ -157,54 +151,54 @@ const wn = {
157
151
  one: "nesten ett år",
158
152
  other: "nesten {{count}} år"
159
153
  }
160
- }, Sn = (n, e, a) => {
161
- let d;
162
- const h = wn[n];
163
- return typeof h == "string" ? d = h : e === 1 ? d = h.one : d = h.other.replace("{{count}}", String(e)), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "om " + d : d + " siden" : d;
164
- }, In = {
154
+ }, Rn = (n, e, a) => {
155
+ let c;
156
+ const k = zn[n];
157
+ return typeof k == "string" ? c = k : e === 1 ? c = k.one : c = k.other.replace("{{count}}", String(e)), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "om " + c : c + " siden" : c;
158
+ }, Gn = {
165
159
  full: "EEEE d. MMMM y",
166
160
  long: "d. MMMM y",
167
161
  medium: "d. MMM y",
168
162
  short: "dd.MM.y"
169
- }, _n = {
163
+ }, Hn = {
170
164
  full: "'kl'. HH:mm:ss zzzz",
171
165
  long: "HH:mm:ss z",
172
166
  medium: "HH:mm:ss",
173
167
  short: "HH:mm"
174
- }, Dn = {
168
+ }, Wn = {
175
169
  full: "{{date}} 'kl.' {{time}}",
176
170
  long: "{{date}} 'kl.' {{time}}",
177
171
  medium: "{{date}} {{time}}",
178
172
  short: "{{date}} {{time}}"
179
- }, Ln = {
180
- date: De({
181
- formats: In,
173
+ }, Un = {
174
+ date: $e({
175
+ formats: Gn,
182
176
  defaultWidth: "full"
183
177
  }),
184
- time: De({
185
- formats: _n,
178
+ time: $e({
179
+ formats: Hn,
186
180
  defaultWidth: "full"
187
181
  }),
188
- dateTime: De({
189
- formats: Dn,
182
+ dateTime: $e({
183
+ formats: Wn,
190
184
  defaultWidth: "full"
191
185
  })
192
- }, An = {
186
+ }, Vn = {
193
187
  lastWeek: "'forrige' eeee 'kl.' p",
194
188
  yesterday: "'i går kl.' p",
195
189
  today: "'i dag kl.' p",
196
190
  tomorrow: "'i morgen kl.' p",
197
191
  nextWeek: "EEEE 'kl.' p",
198
192
  other: "P"
199
- }, Nn = (n, e, a, d) => An[n], Mn = {
193
+ }, On = (n, e, a, c) => Vn[n], Kn = {
200
194
  narrow: ["f.Kr.", "e.Kr."],
201
195
  abbreviated: ["f.Kr.", "e.Kr."],
202
196
  wide: ["før Kristus", "etter Kristus"]
203
- }, jn = {
197
+ }, Zn = {
204
198
  narrow: ["1", "2", "3", "4"],
205
199
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
206
200
  wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
207
- }, Fn = {
201
+ }, qn = {
208
202
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
209
203
  abbreviated: [
210
204
  "jan.",
@@ -234,7 +228,7 @@ const wn = {
234
228
  "november",
235
229
  "desember"
236
230
  ]
237
- }, Bn = {
231
+ }, Yn = {
238
232
  narrow: ["S", "M", "T", "O", "T", "F", "L"],
239
233
  short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
240
234
  abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
@@ -247,7 +241,7 @@ const wn = {
247
241
  "fredag",
248
242
  "lørdag"
249
243
  ]
250
- }, En = {
244
+ }, Xn = {
251
245
  narrow: {
252
246
  am: "a",
253
247
  pm: "p",
@@ -278,46 +272,46 @@ const wn = {
278
272
  evening: "på kvelden",
279
273
  night: "på natten"
280
274
  }
281
- }, $n = (n, e) => Number(n) + ".", Pn = {
282
- ordinalNumber: $n,
283
- era: ve({
284
- values: Mn,
275
+ }, Jn = (n, e) => Number(n) + ".", Qn = {
276
+ ordinalNumber: Jn,
277
+ era: _e({
278
+ values: Kn,
285
279
  defaultWidth: "wide"
286
280
  }),
287
- quarter: ve({
288
- values: jn,
281
+ quarter: _e({
282
+ values: Zn,
289
283
  defaultWidth: "wide",
290
284
  argumentCallback: (n) => n - 1
291
285
  }),
292
- month: ve({
293
- values: Fn,
286
+ month: _e({
287
+ values: qn,
294
288
  defaultWidth: "wide"
295
289
  }),
296
- day: ve({
297
- values: Bn,
290
+ day: _e({
291
+ values: Yn,
298
292
  defaultWidth: "wide"
299
293
  }),
300
- dayPeriod: ve({
301
- values: En,
294
+ dayPeriod: _e({
295
+ values: Xn,
302
296
  defaultWidth: "wide"
303
297
  })
304
- }, zn = /^(\d+)\.?/i, Rn = /\d+/i, Gn = {
298
+ }, eo = /^(\d+)\.?/i, to = /\d+/i, no = {
305
299
  narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
306
300
  abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
307
301
  wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
308
- }, Wn = {
302
+ }, oo = {
309
303
  any: [/^f/i, /^e/i]
310
- }, Hn = {
304
+ }, ro = {
311
305
  narrow: /^[1234]/i,
312
306
  abbreviated: /^q[1234]/i,
313
307
  wide: /^[1234](\.)? kvartal/i
314
- }, Un = {
308
+ }, ao = {
315
309
  any: [/1/i, /2/i, /3/i, /4/i]
316
- }, Vn = {
310
+ }, so = {
317
311
  narrow: /^[jfmasond]/i,
318
312
  abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
319
313
  wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
320
- }, On = {
314
+ }, io = {
321
315
  narrow: [
322
316
  /^j/i,
323
317
  /^f/i,
@@ -346,17 +340,17 @@ const wn = {
346
340
  /^n/i,
347
341
  /^d/i
348
342
  ]
349
- }, Kn = {
343
+ }, lo = {
350
344
  narrow: /^[smtofl]/i,
351
345
  short: /^(sø|ma|ti|on|to|fr|lø)/i,
352
346
  abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
353
347
  wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
354
- }, qn = {
348
+ }, co = {
355
349
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
356
- }, Yn = {
350
+ }, po = {
357
351
  narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
358
352
  any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
359
- }, Zn = {
353
+ }, mo = {
360
354
  any: {
361
355
  am: /^a(\.?\s?m\.?)?$/i,
362
356
  pm: /^p(\.?\s?m\.?)?$/i,
@@ -367,55 +361,55 @@ const wn = {
367
361
  evening: /kveld/i,
368
362
  night: /natt/i
369
363
  }
370
- }, Xn = {
371
- ordinalNumber: Cn({
372
- matchPattern: zn,
373
- parsePattern: Rn,
364
+ }, go = {
365
+ ordinalNumber: $n({
366
+ matchPattern: eo,
367
+ parsePattern: to,
374
368
  valueCallback: (n) => parseInt(n, 10)
375
369
  }),
376
- era: be({
377
- matchPatterns: Gn,
370
+ era: Ie({
371
+ matchPatterns: no,
378
372
  defaultMatchWidth: "wide",
379
- parsePatterns: Wn,
373
+ parsePatterns: oo,
380
374
  defaultParseWidth: "any"
381
375
  }),
382
- quarter: be({
383
- matchPatterns: Hn,
376
+ quarter: Ie({
377
+ matchPatterns: ro,
384
378
  defaultMatchWidth: "wide",
385
- parsePatterns: Un,
379
+ parsePatterns: ao,
386
380
  defaultParseWidth: "any",
387
381
  valueCallback: (n) => n + 1
388
382
  }),
389
- month: be({
390
- matchPatterns: Vn,
383
+ month: Ie({
384
+ matchPatterns: so,
391
385
  defaultMatchWidth: "wide",
392
- parsePatterns: On,
386
+ parsePatterns: io,
393
387
  defaultParseWidth: "any"
394
388
  }),
395
- day: be({
396
- matchPatterns: Kn,
389
+ day: Ie({
390
+ matchPatterns: lo,
397
391
  defaultMatchWidth: "wide",
398
- parsePatterns: qn,
392
+ parsePatterns: co,
399
393
  defaultParseWidth: "any"
400
394
  }),
401
- dayPeriod: be({
402
- matchPatterns: Yn,
395
+ dayPeriod: Ie({
396
+ matchPatterns: po,
403
397
  defaultMatchWidth: "any",
404
- parsePatterns: Zn,
398
+ parsePatterns: mo,
405
399
  defaultParseWidth: "any"
406
400
  })
407
401
  }, he = {
408
402
  code: "nb",
409
- formatDistance: Sn,
410
- formatLong: Ln,
411
- formatRelative: Nn,
412
- localize: Pn,
413
- match: Xn,
403
+ formatDistance: Rn,
404
+ formatLong: Un,
405
+ formatRelative: On,
406
+ localize: Qn,
407
+ match: go,
414
408
  options: {
415
409
  weekStartsOn: 1,
416
410
  firstWeekContainsDate: 4
417
411
  }
418
- }, qe = ({ title: n, ...e }) => /* @__PURE__ */ r(
412
+ }, st = ({ title: n, ...e }) => /* @__PURE__ */ r(
419
413
  "svg",
420
414
  {
421
415
  xmlns: "http://www.w3.org/2000/svg",
@@ -440,8 +434,8 @@ const wn = {
440
434
  ]
441
435
  }
442
436
  );
443
- qe.displayName = "ChevronLeftIcon";
444
- const Ye = ({ title: n, ...e }) => /* @__PURE__ */ r(
437
+ st.displayName = "ChevronLeftIcon";
438
+ const it = ({ title: n, ...e }) => /* @__PURE__ */ r(
445
439
  "svg",
446
440
  {
447
441
  xmlns: "http://www.w3.org/2000/svg",
@@ -466,20 +460,21 @@ const Ye = ({ title: n, ...e }) => /* @__PURE__ */ r(
466
460
  ]
467
461
  }
468
462
  );
469
- Ye.displayName = "ChevronRightIcon";
470
- const Jn = "_calendarContainer_htlea_1", Qn = "_calendarHeader_htlea_16", eo = "_monthYear_htlea_23", to = "_navigationButtons_htlea_34", no = "_grid_htlea_43", oo = "_dayNameCell_htlea_51", ro = "_dateCell_htlea_69", ao = "_dateNumberContainer_htlea_95", so = "_otherMonth_htlea_108", io = "_disabled_htlea_108", lo = "_selectedDate_htlea_134", ee = {
471
- calendarContainer: Jn,
472
- calendarHeader: Qn,
473
- monthYear: eo,
474
- navigationButtons: to,
475
- grid: no,
476
- dayNameCell: oo,
477
- dateCell: ro,
478
- dateNumberContainer: ao,
479
- otherMonth: so,
480
- disabled: io,
481
- selectedDate: lo
482
- }, co = {
463
+ it.displayName = "ChevronRightIcon";
464
+ const uo = "_calendarContainer_1ukqo_1", ho = "_calendarHeader_1ukqo_16", fo = "_monthYear_1ukqo_23", ko = "_navigationButtons_1ukqo_34", vo = "_gridWrapper_1ukqo_43", bo = "_gridRow_1ukqo_48", yo = "_dayNameCell_1ukqo_55", xo = "_dateCell_1ukqo_73", To = "_dateNumberContainer_1ukqo_106", Co = "_otherMonth_1ukqo_119", wo = "_disabled_1ukqo_119", So = "_selectedDate_1ukqo_145", de = {
465
+ calendarContainer: uo,
466
+ calendarHeader: ho,
467
+ monthYear: fo,
468
+ navigationButtons: ko,
469
+ gridWrapper: vo,
470
+ gridRow: bo,
471
+ dayNameCell: yo,
472
+ dateCell: xo,
473
+ dateNumberContainer: To,
474
+ otherMonth: Co,
475
+ disabled: wo,
476
+ selectedDate: So
477
+ }, _o = {
483
478
  NO: {
484
479
  // Header
485
480
  header: {
@@ -500,6 +495,7 @@ const Jn = "_calendarContainer_htlea_1", Qn = "_calendarHeader_htlea_16", eo = "
500
495
  suggestions: "Forslag til søk",
501
496
  viewAll: "Vis alle resultater",
502
497
  noResults: "Ingen treff funnet for",
498
+ suggestionCount: "{count} forslag",
503
499
  selectLanguage: "Velg språk",
504
500
  homeAriaLabel: "Norges Røde Kors Hjem",
505
501
  nav: {
@@ -507,6 +503,7 @@ const Jn = "_calendarContainer_htlea_1", Qn = "_calendarHeader_htlea_16", eo = "
507
503
  components: "Komponenter",
508
504
  code: "Kode",
509
505
  tokens: "Tokens",
506
+ skipToContent: "Hopp til hovedinnhold",
510
507
  work: "Vårt arbeid",
511
508
  volunteer: "Bli frivillig",
512
509
  courses: "Kurs og opplæring"
@@ -516,6 +513,16 @@ const Jn = "_calendarContainer_htlea_1", Qn = "_calendarHeader_htlea_16", eo = "
516
513
  home: {
517
514
  heroTitle: "Røde Kors Designsystem",
518
515
  heroLead: "Felles komponentbibliotek og retningslinjer for design og utvikling av digitale løsninger i Røde Kors.",
516
+ hero: {
517
+ kicker: "For designere og utviklere",
518
+ title: "Ett felles designspråk for Røde Kors",
519
+ lead: "Ferdige React-komponenter, designtokens og retningslinjer — bygget på Digdir Designsystemet og tilpasset Røde Kors sin visuelle identitet.",
520
+ primaryCta: "Kom i gang",
521
+ secondaryCta: "Utforsk komponenter",
522
+ specimenButton: "Bli frivillig",
523
+ breadcrumbLabel: "Du er her",
524
+ breadcrumbHome: "Hjem"
525
+ },
519
526
  searchComponents: "Søk i komponenter",
520
527
  exploreSystem: "Utforsk systemet",
521
528
  componentsDesc: "Bibliotek med ferdige React-komponenter.",
@@ -524,6 +531,11 @@ const Jn = "_calendarContainer_htlea_1", Qn = "_calendarHeader_htlea_16", eo = "
524
531
  tokensDesc: "Design tokens, farger og spacing.",
525
532
  universalDesign: "Universell utforming",
526
533
  universalDesignText: "Innebygd tilgjengelighet som standard. Vi følger WCAG 2.1-kravene strengt.",
534
+ palette: {
535
+ title: "Varme farger",
536
+ lead: "Fargepaletten er utvidet med varme, nøytrale toner som komplementerer rød uten å konkurrere med den — og gir flaten mer pust.",
537
+ link: "Se alle tokens"
538
+ },
527
539
  readGuidelines: "Les retningslinjene",
528
540
  consistentBrand: "Konsistent merkevare",
529
541
  consistentBrandText: "Design tokens sikrer at Røde Kors sin visuelle profil ivaretas på alle flater.",
@@ -595,7 +607,11 @@ const Jn = "_calendarContainer_htlea_1", Qn = "_calendarHeader_htlea_16", eo = "
595
607
  intro: "Designsystemet inneholder grunnleggende komponenter som kan settes sammen på mange ulike måter og i forskjellige mønstre.",
596
608
  searchPlaceholder: "Søk etter komponent...",
597
609
  searchAriaLabel: "Søk i komponenter",
598
- noResults: "Ingen komponenter funnet for"
610
+ noResults: "Ingen komponenter funnet for",
611
+ openLabel: "Les mer",
612
+ ctaTitle: "Utforsk komponentene i Storybook",
613
+ ctaText: "Se alle varianter, tilstander og kodeeksempler i den interaktive dokumentasjonen.",
614
+ ctaButton: "Åpne Storybook"
599
615
  },
600
616
  // Code Page
601
617
  code: {
@@ -1509,7 +1525,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1509
1525
  previousImage: "Forrige bilde",
1510
1526
  nextImage: "Neste bilde",
1511
1527
  imagePosition: "Bildeposisjon",
1512
- goToImage: "Gå til bilde"
1528
+ goToImage: "Gå til bilde",
1529
+ pauseAutoplay: "Pause automatisk avspilling",
1530
+ resumeAutoplay: "Start automatisk avspilling"
1513
1531
  },
1514
1532
  // DatePicker
1515
1533
  datePicker: {
@@ -1541,6 +1559,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1541
1559
  suggestions: "Search suggestions",
1542
1560
  viewAll: "View all results",
1543
1561
  noResults: "No results found for",
1562
+ suggestionCount: "{count} suggestions",
1544
1563
  selectLanguage: "Select language",
1545
1564
  homeAriaLabel: "Norwegian Red Cross Home",
1546
1565
  nav: {
@@ -1548,6 +1567,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1548
1567
  components: "Components",
1549
1568
  code: "Code",
1550
1569
  tokens: "Tokens",
1570
+ skipToContent: "Skip to main content",
1551
1571
  work: "Our Work",
1552
1572
  volunteer: "Volunteer",
1553
1573
  courses: "Courses & Training"
@@ -1557,6 +1577,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1557
1577
  home: {
1558
1578
  heroTitle: "Red Cross Design System",
1559
1579
  heroLead: "Common component library and guidelines for design and development of digital solutions in Red Cross.",
1580
+ hero: {
1581
+ kicker: "For designers and developers",
1582
+ title: "One shared design language for the Red Cross",
1583
+ lead: "Ready-made React components, design tokens and guidelines — built on the Digdir Design System and tailored to the Red Cross visual identity.",
1584
+ primaryCta: "Get started",
1585
+ secondaryCta: "Explore components",
1586
+ specimenButton: "Volunteer",
1587
+ breadcrumbLabel: "You are here",
1588
+ breadcrumbHome: "Home"
1589
+ },
1560
1590
  searchComponents: "Search components",
1561
1591
  exploreSystem: "Explore the system",
1562
1592
  componentsDesc: "Library with ready-made React components.",
@@ -1565,6 +1595,11 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1565
1595
  tokensDesc: "Design tokens, colors, and spacing.",
1566
1596
  universalDesign: "Universal Design",
1567
1597
  universalDesignText: "Built-in accessibility by default. We strictly follow WCAG 2.1 requirements.",
1598
+ palette: {
1599
+ title: "Warm colors",
1600
+ lead: "The color palette has been extended with warm, neutral tones that complement red without competing with it — giving the surface more room to breathe.",
1601
+ link: "See all tokens"
1602
+ },
1568
1603
  readGuidelines: "Read guidelines",
1569
1604
  consistentBrand: "Consistent Brand",
1570
1605
  consistentBrandText: "Design tokens ensure the Red Cross visual profile is maintained across all surfaces.",
@@ -1636,7 +1671,11 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1636
1671
  intro: "The design system contains fundamental components that can be combined in many different ways and in different patterns.",
1637
1672
  searchPlaceholder: "Search for component...",
1638
1673
  searchAriaLabel: "Search components",
1639
- noResults: "No components found for"
1674
+ noResults: "No components found for",
1675
+ openLabel: "Learn more",
1676
+ ctaTitle: "Explore the components in Storybook",
1677
+ ctaText: "See every variant, state and code example in the interactive documentation.",
1678
+ ctaButton: "Open Storybook"
1640
1679
  },
1641
1680
  // Code Page
1642
1681
  code: {
@@ -2552,7 +2591,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2552
2591
  previousImage: "Previous image",
2553
2592
  nextImage: "Next image",
2554
2593
  imagePosition: "Image position",
2555
- goToImage: "Go to image"
2594
+ goToImage: "Go to image",
2595
+ pauseAutoplay: "Pause autoplay",
2596
+ resumeAutoplay: "Resume autoplay"
2556
2597
  },
2557
2598
  // DatePicker
2558
2599
  datePicker: {
@@ -2564,25 +2605,25 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2564
2605
  openDatePicker: "Open date picker"
2565
2606
  }
2566
2607
  }
2567
- }, je = Je(void 0), ei = ({ children: n }) => {
2568
- const [e, a] = O("NO"), d = (h) => {
2569
- const f = h.split(".");
2570
- let g = co[e];
2571
- for (const k of f) {
2572
- if (g[k] === void 0)
2573
- return console.warn(`Translation missing for key: ${h} in language: ${e}`), h;
2574
- g = g[k];
2608
+ }, Ue = pt(void 0), xi = ({ children: n }) => {
2609
+ const [e, a] = Z("NO"), c = (k) => {
2610
+ const y = k.split(".");
2611
+ let f = _o[e];
2612
+ for (const x of y) {
2613
+ if (f[x] === void 0)
2614
+ return console.warn(`Translation missing for key: ${k} in language: ${e}`), k;
2615
+ f = f[x];
2575
2616
  }
2576
- return g;
2617
+ return f;
2577
2618
  };
2578
- return /* @__PURE__ */ t(je.Provider, { value: { language: e, setLanguage: a, t: d }, children: n });
2579
- }, ti = () => {
2580
- const n = He(je);
2619
+ return /* @__PURE__ */ t(Ue.Provider, { value: { language: e, setLanguage: a, t: c }, children: n });
2620
+ }, Ti = () => {
2621
+ const n = nt(Ue);
2581
2622
  if (n === void 0)
2582
2623
  throw new Error("useLanguage must be used within a LanguageProvider");
2583
2624
  return n;
2584
- }, Te = () => {
2585
- const n = He(je);
2625
+ }, Be = () => {
2626
+ const n = nt(Ue);
2586
2627
  return n === void 0 ? {
2587
2628
  language: "NO",
2588
2629
  setLanguage: () => {
@@ -2609,6 +2650,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2609
2650
  "header.suggestions": "Forslag",
2610
2651
  "header.viewAll": "Se alle",
2611
2652
  "header.noResults": "Ingen resultater for",
2653
+ "header.suggestionCount": "{count} forslag",
2612
2654
  // Footer translations
2613
2655
  "footer.shortcuts": "Snarveier",
2614
2656
  "footer.shortcutsLinks.services": "Tilbudene",
@@ -2635,6 +2677,8 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2635
2677
  "carousel.nextImage": "Neste bilde",
2636
2678
  "carousel.imagePosition": "Bildeposisjon",
2637
2679
  "carousel.goToImage": "Gå til bilde",
2680
+ "carousel.pauseAutoplay": "Pause automatisk avspilling",
2681
+ "carousel.resumeAutoplay": "Start automatisk avspilling",
2638
2682
  // DatePicker translations
2639
2683
  "datePicker.previousMonth": "Forrige måned",
2640
2684
  "datePicker.nextMonth": "Neste måned",
@@ -2642,122 +2686,182 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2642
2686
  "dateInput.openDatePicker": "Åpne datovelger"
2643
2687
  })[e] || e
2644
2688
  } : n;
2645
- }, po = (n) => {
2646
- const e = ue(n), a = Ve(e, { locale: he }), d = Oe(a, 41);
2647
- return cn({ start: a, end: d });
2648
- }, Pe = (n) => n && n.charAt(0).toUpperCase() + n.slice(1), mo = ({
2689
+ }, Io = (n) => {
2690
+ const e = be(n), a = He(e, { locale: he }), c = Ce(a, 41);
2691
+ return yn({ start: a, end: c });
2692
+ }, Xe = (n) => n && n.charAt(0).toUpperCase() + n.slice(1), Le = (n, e) => {
2693
+ const a = Math.min(n.getDate(), xn(e));
2694
+ return Tn(be(e), a);
2695
+ }, Lo = ({
2649
2696
  initialDate: n = /* @__PURE__ */ new Date(),
2650
2697
  selectedDate: e = null,
2651
- // Prop for valgt dato
2652
2698
  onDateSelect: a,
2653
- "data-color": d,
2654
- // <-- Destrukturert
2655
- "data-size": h
2656
- // <-- Destrukturert
2699
+ "data-color": c,
2700
+ "data-size": k
2657
2701
  }) => {
2658
- const { t: f } = Te();
2659
- z(() => {
2660
- const m = "rk-datepicker-inline-styles";
2661
- if (typeof document > "u" || document.getElementById(m)) return;
2662
- const M = go(ee), I = document.createElement("style");
2663
- I.id = m, I.textContent = M, document.head.appendChild(I);
2702
+ const { t: y } = Be();
2703
+ U(() => {
2704
+ const d = "rk-datepicker-inline-styles";
2705
+ if (typeof document > "u" || document.getElementById(d)) return;
2706
+ const l = Do(de), v = document.createElement("style");
2707
+ v.id = d, v.textContent = l, document.head.appendChild(v);
2664
2708
  }, []);
2665
- const [g, k] = O(
2666
- ue(e && Ie(e) ? e : n)
2667
- );
2668
- z(() => {
2669
- if (e && Ie(e)) {
2670
- const m = ue(e);
2671
- Fe(m, g) || k(m);
2709
+ const [f, x] = Z(
2710
+ be(e && De(e) ? e : n)
2711
+ ), [B, I] = Z(
2712
+ () => e && De(e) ? e : n
2713
+ ), J = Ee(null), L = Ee(!1);
2714
+ U(() => {
2715
+ if (e && De(e)) {
2716
+ I(e);
2717
+ const d = be(e);
2718
+ x(
2719
+ (l) => Fe(d, l) ? l : d
2720
+ );
2672
2721
  }
2673
- }, [e]);
2674
- const D = fe(() => ue(/* @__PURE__ */ new Date()), []), S = fe(() => !1, [g, D]), R = fe(
2675
- () => po(g),
2676
- [g]
2677
- ), _ = fe(() => {
2678
- const m = Ve(/* @__PURE__ */ new Date(), { locale: he });
2679
- return Array.from({ length: 7 }).map((M, I) => {
2680
- const F = ke(Oe(m, I), "EEEEEE", { locale: he });
2681
- return Pe(F);
2722
+ }, [e]), U(() => {
2723
+ var l;
2724
+ if (!L.current) return;
2725
+ L.current = !1;
2726
+ const d = (l = J.current) == null ? void 0 : l.querySelector(
2727
+ `[data-date="${ve(B, "yyyy-MM-dd")}"]`
2728
+ );
2729
+ d == null || d.focus();
2730
+ }, [B, f]);
2731
+ const R = Ae(
2732
+ () => Io(f),
2733
+ [f]
2734
+ ), G = Ae(() => {
2735
+ const d = [];
2736
+ for (let l = 0; l < R.length; l += 7)
2737
+ d.push(R.slice(l, l + 7));
2738
+ return d;
2739
+ }, [R]), p = Ae(() => {
2740
+ const d = He(/* @__PURE__ */ new Date(), { locale: he });
2741
+ return Array.from({ length: 7 }).map((l, v) => {
2742
+ const S = ve(Ce(d, v), "EEEEEE", { locale: he });
2743
+ return Xe(S);
2744
+ });
2745
+ }, []), Q = ce(() => {
2746
+ x((d) => {
2747
+ const l = be(Ve(d, 1));
2748
+ return I((v) => Le(v, l)), l;
2749
+ });
2750
+ }, []), K = ce(() => {
2751
+ x((d) => {
2752
+ const l = be(Oe(d, 1));
2753
+ return I((v) => Le(v, l)), l;
2682
2754
  });
2683
- }, []), V = se(() => {
2684
- S || k((m) => ue(an(m, 1)));
2685
- }, [S]), N = se(() => {
2686
- k((m) => ue(sn(m, 1)));
2687
- }, []), p = se(
2688
- (m) => {
2689
- a && a(m);
2755
+ }, []), N = ce(
2756
+ (d) => {
2757
+ I(d), a == null || a(d);
2690
2758
  },
2691
2759
  [a]
2692
- ), K = se(
2693
- (m, M) => {
2694
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), p(M));
2760
+ ), w = ce((d) => {
2761
+ L.current = !0, I(d), x(
2762
+ (l) => Fe(d, l) ? l : be(d)
2763
+ );
2764
+ }, []), H = ce(
2765
+ (d, l) => {
2766
+ switch (d.key) {
2767
+ case "Enter":
2768
+ case " ":
2769
+ d.preventDefault(), N(l);
2770
+ return;
2771
+ case "ArrowLeft":
2772
+ d.preventDefault(), w(Ce(l, -1));
2773
+ return;
2774
+ case "ArrowRight":
2775
+ d.preventDefault(), w(Ce(l, 1));
2776
+ return;
2777
+ case "ArrowUp":
2778
+ d.preventDefault(), w(Ce(l, -7));
2779
+ return;
2780
+ case "ArrowDown":
2781
+ d.preventDefault(), w(Ce(l, 7));
2782
+ return;
2783
+ case "Home":
2784
+ d.preventDefault(), w(He(l, { locale: he }));
2785
+ return;
2786
+ case "End":
2787
+ d.preventDefault(), w(vn(l, { locale: he }));
2788
+ return;
2789
+ case "PageUp":
2790
+ d.preventDefault(), w(Le(l, Ve(l, 1)));
2791
+ return;
2792
+ case "PageDown":
2793
+ d.preventDefault(), w(Le(l, Oe(l, 1)));
2794
+ return;
2795
+ }
2695
2796
  },
2696
- [p]
2697
- ), X = ke(g, "MMMM", { locale: he }), A = ke(g, "yyyy", { locale: he }), q = `${Pe(X)} ${A}`;
2797
+ [N, w]
2798
+ ), P = ve(f, "MMMM", { locale: he }), E = ve(f, "yyyy", { locale: he }), q = `${Xe(P)} ${E}`, Y = We(), $ = Fe(B, f) ? B : Le(B, f);
2698
2799
  return /* @__PURE__ */ r(
2699
2800
  "div",
2700
2801
  {
2701
- className: ee.calendarContainer,
2702
- "data-color": d,
2703
- "data-size": h,
2802
+ className: de.calendarContainer,
2803
+ "data-color": c,
2804
+ "data-size": k,
2704
2805
  children: [
2705
- /* @__PURE__ */ r("div", { className: ee.calendarHeader, children: [
2706
- /* @__PURE__ */ t("span", { className: ee.monthYear, children: q }),
2707
- /* @__PURE__ */ r("div", { className: ee.navigationButtons, children: [
2806
+ /* @__PURE__ */ r("div", { className: de.calendarHeader, children: [
2807
+ /* @__PURE__ */ t("span", { className: de.monthYear, id: Y, "aria-live": "polite", children: q }),
2808
+ /* @__PURE__ */ r("div", { className: de.navigationButtons, children: [
2708
2809
  /* @__PURE__ */ t(
2709
- Me,
2810
+ Ge,
2710
2811
  {
2711
2812
  variant: "tertiary",
2712
2813
  icon: !0,
2713
- onClick: V,
2714
- "aria-label": f("datePicker.previousMonth"),
2715
- disabled: S,
2716
- children: /* @__PURE__ */ t(qe, {})
2814
+ onClick: Q,
2815
+ "aria-label": y("datePicker.previousMonth"),
2816
+ children: /* @__PURE__ */ t(st, {})
2717
2817
  }
2718
2818
  ),
2719
2819
  /* @__PURE__ */ t(
2720
- Me,
2820
+ Ge,
2721
2821
  {
2722
2822
  variant: "tertiary",
2723
2823
  icon: !0,
2724
- onClick: N,
2725
- "aria-label": f("datePicker.nextMonth"),
2726
- children: /* @__PURE__ */ t(Ye, {})
2824
+ onClick: K,
2825
+ "aria-label": y("datePicker.nextMonth"),
2826
+ children: /* @__PURE__ */ t(it, {})
2727
2827
  }
2728
2828
  )
2729
2829
  ] })
2730
2830
  ] }),
2731
- /* @__PURE__ */ t("div", { className: ee.grid, children: _.map((m) => /* @__PURE__ */ t("div", { className: ee.dayNameCell, children: m }, m)) }),
2732
- /* @__PURE__ */ t("div", { className: ee.grid, children: R.map((m) => {
2733
- const M = Fe(m, g), I = e && Ie(e) && ln(m, e), F = dn(m), j = [
2734
- ee.dateCell,
2735
- M ? "" : ee.otherMonth,
2736
- I ? ee.selectedDate : "",
2737
- // Utheving basert på prop
2738
- F && !I ? ee.todayDate : ""
2739
- ].filter(Boolean).join(" ");
2740
- return /* @__PURE__ */ t(
2741
- "div",
2742
- {
2743
- className: j,
2744
- onClick: () => p(m),
2745
- onKeyDown: (L) => K(L, m),
2746
- role: "button",
2747
- tabIndex: 0,
2748
- "aria-pressed": I ?? !1,
2749
- "aria-label": ke(m, "PPP", { locale: he }),
2750
- children: /* @__PURE__ */ t("span", { className: ee.dateNumberContainer, children: ke(m, "d") })
2751
- },
2752
- m.toISOString()
2753
- );
2754
- }) })
2831
+ /* @__PURE__ */ r("div", { role: "grid", "aria-labelledby": Y, className: de.gridWrapper, ref: J, children: [
2832
+ /* @__PURE__ */ t("div", { role: "row", className: de.gridRow, children: p.map((d) => /* @__PURE__ */ t("div", { role: "columnheader", className: de.dayNameCell, children: d }, d)) }),
2833
+ G.map((d) => /* @__PURE__ */ t("div", { role: "row", className: de.gridRow, children: d.map((l) => {
2834
+ const v = Fe(l, f), S = e && De(e) && Ke(l, e), F = bn(l), D = v && Ke(l, $), g = [
2835
+ de.dateCell,
2836
+ v ? "" : de.otherMonth,
2837
+ S ? de.selectedDate : "",
2838
+ F && !S ? de.todayDate : ""
2839
+ ].filter(Boolean).join(" ");
2840
+ return /* @__PURE__ */ t(
2841
+ "div",
2842
+ {
2843
+ role: "gridcell",
2844
+ className: g,
2845
+ "data-date": ve(l, "yyyy-MM-dd"),
2846
+ onClick: v ? () => N(l) : void 0,
2847
+ onKeyDown: v ? (se) => H(se, l) : void 0,
2848
+ tabIndex: v ? D ? 0 : -1 : void 0,
2849
+ "aria-selected": v ? !!S : void 0,
2850
+ "aria-disabled": !v || void 0,
2851
+ "aria-current": F ? "date" : void 0,
2852
+ "aria-label": ve(l, "PPP", { locale: he }),
2853
+ children: /* @__PURE__ */ t("span", { className: de.dateNumberContainer, children: ve(l, "d") })
2854
+ },
2855
+ l.toISOString()
2856
+ );
2857
+ }) }, d[0].toISOString()))
2858
+ ] })
2755
2859
  ]
2756
2860
  }
2757
2861
  );
2758
2862
  };
2759
- mo.displayName = "DatePicker";
2760
- function go(n) {
2863
+ Lo.displayName = "DatePicker";
2864
+ function Do(n) {
2761
2865
  return `
2762
2866
  .${n.calendarContainer} {
2763
2867
  display: inline-flex;
@@ -2794,12 +2898,15 @@ function go(n) {
2794
2898
  .${n.navigationButtons} > button:disabled svg {
2795
2899
  opacity: var(--ds-opacity-disabled, 0.3);
2796
2900
  }
2797
- .${n.grid} {
2901
+ .${n.gridWrapper} {
2902
+ width: 100%;
2903
+ overflow: hidden;
2904
+ }
2905
+ .${n.gridRow} {
2798
2906
  display: grid;
2799
2907
  grid-template-columns: repeat(7, 1fr);
2800
2908
  width: 100%;
2801
2909
  text-align: center;
2802
- overflow: hidden;
2803
2910
  }
2804
2911
  .${n.dayNameCell} {
2805
2912
  display: flex;
@@ -2836,6 +2943,12 @@ function go(n) {
2836
2943
  user-select: none;
2837
2944
  min-width: 0;
2838
2945
  }
2946
+ .${n.dateCell}:focus-visible {
2947
+ outline: var(--ds-border-width-focus, 3px) solid var(--ds-color-focus-outer, #2b2b2b);
2948
+ outline-offset: calc(-1 * var(--ds-border-width-focus, 3px));
2949
+ position: relative;
2950
+ z-index: 2;
2951
+ }
2839
2952
  .${n.dateNumberContainer} {
2840
2953
  display: flex;
2841
2954
  justify-content: center;
@@ -2887,11 +3000,11 @@ function go(n) {
2887
3000
  }
2888
3001
  .${n.dayNameCell} {
2889
3002
  padding: var(--ds-size-1, 4px);
2890
- font-size: var(--ds-body-2xs-font-size, 12px);
3003
+ font-size: var(--ds-font-size-1, 12px);
2891
3004
  }
2892
3005
  .${n.dateCell} {
2893
3006
  padding: var(--ds-size-2, 8px);
2894
- font-size: var(--ds-body-2xs-font-size, 12px);
3007
+ font-size: var(--ds-font-size-1, 12px);
2895
3008
  }
2896
3009
  .${n.dateNumberContainer} {
2897
3010
  width: 20px;
@@ -2917,203 +3030,191 @@ function go(n) {
2917
3030
  }
2918
3031
  `;
2919
3032
  }
2920
- const uo = "_fieldset_16fx7_2", ho = "_description_16fx7_14", fo = "_error_16fx7_21", ko = "_inputWrapper_16fx7_30", vo = "_inputWrapperError_16fx7_42", bo = "_suffixButton_16fx7_80", yo = "_suffixButtonInteractive_16fx7_100", de = {
2921
- fieldset: uo,
2922
- description: ho,
2923
- error: fo,
2924
- inputWrapper: ko,
2925
- inputWrapperError: vo,
2926
- suffixButton: bo,
2927
- suffixButtonInteractive: yo
2928
- }, ze = (n) => {
2929
- const e = n.slice(0, 2), a = n.slice(2, 4), d = n.slice(4, 8);
2930
- return n.length > 4 ? `${e}.${a}.${d}` : n.length > 2 ? `${e}.${a}` : n.length > 0 ? e : "";
2931
- }, Re = (n) => (n || "").replace(/\D/g, ""), Ge = (n) => {
2932
- let e = n;
2933
- if (e.length >= 2) {
2934
- const a = parseInt(e.substring(0, 2), 10);
2935
- !isNaN(a) && a > 31 && (e = "31" + e.substring(2));
2936
- }
2937
- if (e.length >= 4) {
2938
- const a = parseInt(e.substring(2, 4), 10);
2939
- !isNaN(a) && a > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
2940
- }
2941
- return e.slice(0, 8);
2942
- }, xo = ie(
3033
+ const Mo = "_fieldset_1d1ez_2", jo = "_description_1d1ez_14", Ao = "_error_1d1ez_21", No = "_inputWrapper_1d1ez_30", Eo = "_inputWrapperError_1d1ez_42", Bo = "_suffixButton_1d1ez_80", Fo = "_suffixButtonInteractive_1d1ez_100", ue = {
3034
+ fieldset: Mo,
3035
+ description: jo,
3036
+ error: Ao,
3037
+ inputWrapper: No,
3038
+ inputWrapperError: Eo,
3039
+ suffixButton: Bo,
3040
+ suffixButtonInteractive: Fo
3041
+ }, Me = (n) => {
3042
+ const e = n.slice(0, 2), a = n.slice(2, 4), c = n.slice(4, 8);
3043
+ return n.length > 4 ? `${e}.${a}.${c}` : n.length > 2 ? `${e}.${a}` : n.length > 0 ? e : "";
3044
+ }, ze = (n) => (n || "").replace(/\D/g, "").slice(0, 8), Je = (n) => {
3045
+ if (n.length < 8) return null;
3046
+ const e = Cn(Me(n), "dd.MM.yyyy", /* @__PURE__ */ new Date());
3047
+ return De(e);
3048
+ }, Po = me(
2943
3049
  (n, e) => {
2944
- const { t: a } = Te();
2945
- z(() => {
2946
- const c = "rk-dateinput-inline-styles";
2947
- if (typeof document > "u" || document.getElementById(c)) return;
2948
- const w = To(de), $ = document.createElement("style");
2949
- $.id = c, $.textContent = w, document.head.appendChild($);
3050
+ const { t: a } = Be();
3051
+ U(() => {
3052
+ const A = "rk-dateinput-inline-styles";
3053
+ if (typeof document > "u" || document.getElementById(A)) return;
3054
+ const ae = $o(ue), s = document.createElement("style");
3055
+ s.id = A, s.textContent = ae, document.head.appendChild(s);
2950
3056
  }, []);
2951
3057
  const {
2952
- label: d,
2953
- suffixIcon: h,
2954
- onSuffixClick: f,
2955
- className: g,
2956
- // For ytre fieldset
2957
- inputWrapperClassName: k,
2958
- // For input wrapper div
2959
- inputClassName: D,
2960
- // For selve input-elementet
2961
- value: S,
2962
- defaultValue: R,
2963
- onChange: _,
2964
- readOnly: V,
2965
- placeholder: N = "dd.mm.åååå",
2966
- id: p,
3058
+ label: c,
3059
+ suffixIcon: k,
3060
+ onSuffixClick: y,
3061
+ className: f,
3062
+ inputWrapperClassName: x,
3063
+ inputClassName: B,
3064
+ value: I,
3065
+ defaultValue: J,
3066
+ onChange: L,
3067
+ onValidationChange: R,
3068
+ readOnly: G,
3069
+ placeholder: p = "dd.mm.åååå",
3070
+ id: Q,
2967
3071
  name: K,
2968
- required: X,
2969
- disabled: A,
2970
- onClick: q,
2971
- onFocus: m,
2972
- // Send ekstern onFocus videre
2973
- onBlur: M,
2974
- // Send ekstern onBlur videre
2975
- autoComplete: I = "off",
2976
- "aria-label": F,
2977
- "aria-labelledby": j,
2978
- description: L,
2979
- error: G,
2980
- // Bruk error-prop for styling
2981
- "data-color": ne,
2982
- // <-- Destrukturering
2983
- "data-size": H,
2984
- // <-- Destrukturering
2985
- ...J
2986
- } = n, T = S !== void 0, b = Qe(null);
2987
- Ne.useImperativeHandle(
3072
+ required: N,
3073
+ disabled: w,
3074
+ onClick: H,
3075
+ onFocus: P,
3076
+ onBlur: E,
3077
+ autoComplete: q = "off",
3078
+ "aria-label": Y,
3079
+ "aria-labelledby": $,
3080
+ description: d,
3081
+ error: l,
3082
+ "data-color": v,
3083
+ "data-size": S,
3084
+ ...F
3085
+ } = n, D = I !== void 0, g = Ee(null);
3086
+ ye.useImperativeHandle(
2988
3087
  e,
2989
- () => b.current
3088
+ () => g.current
2990
3089
  );
2991
- const l = se(
2992
- (c) => {
2993
- const w = Re(c), $ = Ge(w);
2994
- return ze($);
3090
+ const se = Ee(null), ee = ce(
3091
+ (A, ae) => {
3092
+ A !== se.current && (se.current = A, R == null || R(A, ae));
2995
3093
  },
3094
+ [R]
3095
+ ), te = ce(
3096
+ (A) => Me(ze(A)),
2996
3097
  []
2997
- ), [C, B] = O(
2998
- () => l(S ?? R)
3098
+ ), [ne, z] = Z(
3099
+ () => te(I ?? J)
2999
3100
  );
3000
- z(() => {
3001
- if (T) {
3002
- const c = l(S);
3003
- c !== C && (B(c), b.current && b.current.value !== c && (b.current.value = c));
3101
+ U(() => {
3102
+ if (D) {
3103
+ const A = te(I);
3104
+ A !== ne && (z(A), g.current && g.current.value !== A && (g.current.value = A));
3004
3105
  }
3005
- }, [S, T, C, l]);
3006
- const Y = se(
3007
- (c) => {
3008
- const w = c.target, $ = w.value, oe = C, re = Re($).slice(0, 8), pe = Ge(re), i = ze(pe);
3009
- let u = 0;
3010
- const x = pe.length;
3011
- x <= 2 ? u = x : x <= 4 ? u = x + 1 : u = x + 2, u = Math.min(u, i.length), requestAnimationFrame(() => {
3012
- if (b.current && (B(i), b.current.value = i, b.current.setSelectionRange(u, u), (i !== oe || T) && _)) {
3013
- const ae = {
3014
- ...c,
3015
- target: { ...w, value: i }
3016
- };
3017
- _(ae, i);
3018
- }
3019
- });
3106
+ }, [I, D, ne, te]);
3107
+ const ie = ce(
3108
+ (A) => {
3109
+ const ae = A.target, s = ne, m = ze(ae.value), b = Me(m);
3110
+ let V = 0;
3111
+ const ke = m.length;
3112
+ ke <= 2 ? V = ke : ke <= 4 ? V = ke + 1 : V = ke + 2, V = Math.min(V, b.length), z(b), ae.value = b, ae.setSelectionRange(V, V), (b !== s || D) && (L == null || L(A, b));
3113
+ const ct = Je(m);
3114
+ (m.length === 0 || m.length === 8) && ee(m.length === 0 ? null : ct, b);
3115
+ },
3116
+ [ne, D, L, ee]
3117
+ ), T = ce(
3118
+ (A) => {
3119
+ const ae = ze(A.target.value);
3120
+ ae.length === 0 ? ee(null, "") : ae.length < 8 ? ee(!1, Me(ae)) : ee(Je(ae), Me(ae)), E == null || E(A);
3020
3121
  },
3021
- [C, T, _, l]
3022
- ), y = [de.fieldset, g].filter(Boolean).join(" "), E = [
3023
- de.inputWrapper,
3024
- k,
3025
- G ? de.inputWrapperError : ""
3026
- ].filter(Boolean).join(" "), Q = [
3027
- D
3028
- ].filter(Boolean).join(" "), le = [
3029
- de.suffixButton,
3030
- f ? de.suffixButtonInteractive : ""
3122
+ [E, ee]
3123
+ ), h = [ue.fieldset, f].filter(Boolean).join(" "), C = [
3124
+ ue.inputWrapper,
3125
+ x,
3126
+ l ? ue.inputWrapperError : ""
3127
+ ].filter(Boolean).join(" "), j = [
3128
+ B
3129
+ ].filter(Boolean).join(" "), _ = [
3130
+ ue.suffixButton,
3131
+ y ? ue.suffixButtonInteractive : ""
3031
3132
  ].filter(Boolean).join(" ");
3032
- !d && !F && !j && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
3033
- const v = d && typeof d == "string" ? j || `${p}-label` : void 0, Z = L ? `${p}-desc` : void 0, me = G ? `${p}-err` : void 0, ge = [Z, me].filter(Boolean).join(" ") || void 0;
3133
+ !c && !Y && !$ && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
3134
+ const u = We(), M = Q ?? `dateinput${u}`, le = c && typeof c == "string" ? `${M}-label` : void 0, re = d ? `${M}-desc` : void 0, ge = l ? `${M}-err` : void 0, xe = [re, ge].filter(Boolean).join(" ") || void 0, Se = $ ?? le;
3034
3135
  return (
3035
3136
  // --- Bruk data-color og data-size på den ytre wrapperen ---
3036
3137
  /* @__PURE__ */ r(
3037
3138
  "div",
3038
3139
  {
3039
- className: y,
3040
- "data-color": ne,
3041
- "data-size": H,
3140
+ className: h,
3141
+ "data-color": v,
3142
+ "data-size": S,
3042
3143
  children: [
3043
- d && typeof d == "string" ? /* @__PURE__ */ t("label", { id: v, htmlFor: p, children: d }) : d,
3044
- L && /* @__PURE__ */ t("p", { id: Z, className: de.description, children: L }),
3045
- /* @__PURE__ */ r("div", { className: E, children: [
3144
+ c && typeof c == "string" ? /* @__PURE__ */ t("label", { id: le, htmlFor: M, children: c }) : c,
3145
+ d && /* @__PURE__ */ t("p", { id: re, className: ue.description, children: d }),
3146
+ /* @__PURE__ */ r("div", { className: C, children: [
3046
3147
  /* @__PURE__ */ t(
3047
3148
  "input",
3048
3149
  {
3049
- ref: b,
3150
+ ref: g,
3050
3151
  type: "text",
3051
3152
  inputMode: "numeric",
3052
3153
  pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
3053
3154
  maxLength: 10,
3054
- value: C,
3055
- readOnly: V,
3056
- placeholder: N,
3057
- id: p,
3155
+ value: ne,
3156
+ readOnly: G,
3157
+ placeholder: p,
3158
+ id: M,
3058
3159
  name: K,
3059
- required: X,
3060
- disabled: A,
3061
- onClick: q,
3062
- onChange: Y,
3063
- onFocus: m,
3064
- onBlur: M,
3065
- autoComplete: I,
3066
- "aria-label": F,
3067
- "aria-labelledby": v,
3068
- "aria-describedby": ge,
3069
- "aria-invalid": !!G,
3070
- className: Q,
3071
- ...J
3160
+ required: N,
3161
+ disabled: w,
3162
+ onClick: H,
3163
+ onChange: ie,
3164
+ onFocus: P,
3165
+ onBlur: T,
3166
+ autoComplete: q,
3167
+ "aria-label": Y,
3168
+ "aria-labelledby": Se,
3169
+ "aria-describedby": xe,
3170
+ "aria-invalid": !!l,
3171
+ className: j,
3172
+ ...F
3072
3173
  }
3073
3174
  ),
3074
- h && /* @__PURE__ */ t(
3175
+ k && /* @__PURE__ */ t(
3075
3176
  "button",
3076
3177
  {
3077
3178
  type: "button",
3078
- className: le,
3079
- onClick: A ? void 0 : f,
3080
- tabIndex: f && !A ? 0 : -1,
3081
- "aria-hidden": !f,
3082
- disabled: A,
3083
- "aria-label": f ? a("dateInput.openDatePicker") : void 0,
3084
- children: h
3179
+ className: _,
3180
+ onClick: w ? void 0 : y,
3181
+ tabIndex: y && !w ? 0 : -1,
3182
+ "aria-hidden": !y,
3183
+ disabled: w,
3184
+ "aria-label": y ? a("dateInput.openDatePicker") : void 0,
3185
+ children: k
3085
3186
  }
3086
3187
  )
3087
3188
  ] }),
3088
- G && /* @__PURE__ */ t("p", { id: me, className: de.error, role: "alert", children: G })
3189
+ l && /* @__PURE__ */ t("p", { id: ge, className: ue.error, role: "alert", children: l })
3089
3190
  ]
3090
3191
  }
3091
3192
  )
3092
3193
  );
3093
3194
  }
3094
3195
  );
3095
- xo.displayName = "DateInput";
3096
- function To(n) {
3196
+ Po.displayName = "DateInput";
3197
+ function $o(n) {
3097
3198
  return `
3098
3199
  .${n.fieldset} {
3099
- margin-bottom: var(--ds-spacing-4, 16px);
3200
+ margin-bottom: var(--ds-size-4, 16px);
3100
3201
  }
3101
3202
  .${n.fieldset} label {
3102
3203
  display: block;
3103
- margin-bottom: var(--ds-spacing-1, 4px);
3204
+ margin-bottom: var(--ds-size-1, 4px);
3104
3205
  font-weight: var(--ds-font-weight-medium, 500);
3105
3206
  color: var(--ds-color-text-default, #2b2b2b);
3106
3207
  }
3107
3208
  .${n.description} {
3108
- font-size: var(--ds-font-size-sm, 14px);
3209
+ font-size: var(--ds-font-size-2, 14px);
3109
3210
  color: var(--ds-color-text-subtle, #5d5d5d);
3110
- margin-top: var(--ds-spacing-1, 4px);
3111
- margin-bottom: var(--ds-spacing-2, 8px);
3211
+ margin-top: var(--ds-size-1, 4px);
3212
+ margin-bottom: var(--ds-size-2, 8px);
3112
3213
  }
3113
3214
  .${n.error} {
3114
- font-size: var(--ds-font-size-sm, 14px);
3215
+ font-size: var(--ds-font-size-2, 14px);
3115
3216
  color: var(--ds-color-danger-text-default, #c30000);
3116
- margin-top: var(--ds-spacing-1, 4px);
3217
+ margin-top: var(--ds-size-1, 4px);
3117
3218
  }
3118
3219
  .${n.inputWrapper} {
3119
3220
  display: flex;
@@ -3130,7 +3231,7 @@ function To(n) {
3130
3231
  }
3131
3232
  .${n.inputWrapper}:focus-within {
3132
3233
  outline: var(--ds-border-width-focus, 3px) solid var(--ds-color-focus-outer, #2B2B2B);
3133
- outline-offset: var(--ds-focus-outline-offset, 2px);
3234
+ outline-offset: var(--ds-border-width-focus, 2px);
3134
3235
  }
3135
3236
  .${n.inputWrapper} input {
3136
3237
  box-sizing: border-box;
@@ -3151,7 +3252,7 @@ function To(n) {
3151
3252
  .${n.inputWrapper} input:disabled {
3152
3253
  opacity: var(--ds-opacity-disabled, 0.5);
3153
3254
  cursor: not-allowed;
3154
- background-color: var(--ds-color-neutral-surface-subtle, #f0f0f0);
3255
+ background-color: var(--ds-color-neutral-surface-tinted, #f0f0f0);
3155
3256
  color: var(--ds-color-neutral-text-subtle, #5d5d5d);
3156
3257
  }
3157
3258
  .${n.suffixButton} {
@@ -3186,173 +3287,204 @@ function To(n) {
3186
3287
  }
3187
3288
  `;
3188
3289
  }
3189
- const Co = "_carouselContainer_eo3g5_1", wo = "_viewport_eo3g5_14", So = "_slides_eo3g5_20", Io = "_slide_eo3g5_20", _o = "_slideInner_eo3g5_40", Do = "_loaderOverlay_eo3g5_48", Lo = "_image_eo3g5_58", Ao = "_loaded_eo3g5_69", No = "_loading_eo3g5_73", Mo = "_empty_eo3g5_81", jo = "_controls_eo3g5_87", Fo = "_arrows_eo3g5_97", Bo = "_dots_eo3g5_107", Eo = "_dot_eo3g5_107", $o = "_dotActive_eo3g5_133", W = {
3190
- carouselContainer: Co,
3191
- viewport: wo,
3192
- slides: So,
3193
- slide: Io,
3194
- slideInner: _o,
3195
- loaderOverlay: Do,
3196
- image: Lo,
3197
- loaded: Ao,
3198
- loading: No,
3199
- empty: Mo,
3200
- controls: jo,
3201
- arrows: Fo,
3202
- dots: Bo,
3203
- dot: Eo,
3204
- dotActive: $o
3205
- }, Po = gt, zo = ({
3290
+ const zo = "_carouselContainer_oit30_1", Ro = "_viewport_oit30_14", Go = "_slides_oit30_20", Ho = "_slide_oit30_20", Wo = "_slideInner_oit30_40", Uo = "_loaderOverlay_oit30_48", Vo = "_image_oit30_58", Oo = "_loaded_oit30_69", Ko = "_loading_oit30_73", Zo = "_empty_oit30_81", qo = "_controls_oit30_87", Yo = "_arrows_oit30_97", Xo = "_dots_oit30_107", Jo = "_playPause_oit30_122", Qo = "_dot_oit30_107", er = "_dotActive_oit30_153", X = {
3291
+ carouselContainer: zo,
3292
+ viewport: Ro,
3293
+ slides: Go,
3294
+ slide: Ho,
3295
+ slideInner: Wo,
3296
+ loaderOverlay: Uo,
3297
+ image: Vo,
3298
+ loaded: Oo,
3299
+ loading: Ko,
3300
+ empty: Zo,
3301
+ controls: qo,
3302
+ arrows: Yo,
3303
+ dots: Xo,
3304
+ playPause: Jo,
3305
+ dot: Qo,
3306
+ dotActive: er
3307
+ }, tr = _t, nr = ({
3206
3308
  images: n,
3207
3309
  autoPlay: e = !1,
3208
3310
  autoDelay: a = 5,
3209
- showArrows: d = !0,
3210
- showDots: h = !0,
3211
- variant: f,
3212
- slidesPerView: g = 1,
3213
- slideSpacing: k = 16,
3214
- cornerRadius: D = 0,
3215
- "data-color": S,
3216
- "data-size": R
3311
+ showArrows: c = !0,
3312
+ showDots: k = !0,
3313
+ variant: y,
3314
+ slidesPerView: f = 1,
3315
+ slideSpacing: x = 16,
3316
+ cornerRadius: B = 0,
3317
+ "data-color": I,
3318
+ "data-size": J
3217
3319
  }) => {
3218
- const { t: _ } = Te();
3219
- z(() => {
3220
- const b = "rk-carousel-inline-styles";
3221
- if (typeof document > "u" || document.getElementById(b)) return;
3222
- const l = Ro(W), C = document.createElement("style");
3223
- C.id = b, C.textContent = l, document.head.appendChild(C);
3320
+ const { t: L } = Be();
3321
+ U(() => {
3322
+ const h = "rk-carousel-inline-styles";
3323
+ if (typeof document > "u" || document.getElementById(h)) return;
3324
+ const C = or(X), j = document.createElement("style");
3325
+ j.id = h, j.textContent = C, document.head.appendChild(j);
3224
3326
  }, []);
3225
- const V = {
3327
+ const R = {
3226
3328
  loop: !0,
3227
3329
  align: "start",
3228
3330
  containScroll: "trimSnaps",
3229
3331
  slidesToScroll: 1
3230
- }, [N, p] = pn(V), [K, X] = O(0), [A, q] = O([]), [m, M] = O([]);
3231
- z(() => {
3232
- M(new Array((n == null ? void 0 : n.length) || 0).fill(!1));
3233
- }, [n]);
3234
- const I = se((b) => {
3235
- M((l) => {
3236
- const C = [...l];
3237
- return C[b] = !0, C;
3332
+ }, [G, p] = wn(R), [Q, K] = Z(0), [N, w] = Z([]), [H, P] = Z([]), E = Ee([]), q = (n ?? []).map((h) => h.src).join(`
3333
+ `);
3334
+ U(() => {
3335
+ P(
3336
+ (n ?? []).map((h, C) => {
3337
+ const j = E.current[C];
3338
+ return !!(j && j.complete && j.naturalWidth > 0);
3339
+ })
3340
+ );
3341
+ }, [q]);
3342
+ const Y = ce((h) => {
3343
+ P((C) => {
3344
+ if (C[h]) return C;
3345
+ const j = [...C];
3346
+ return j[h] = !0, j;
3238
3347
  });
3239
- }, []), F = fe(() => a * 1e3, [a]), j = se(() => {
3240
- p && X(p.selectedScrollSnap());
3241
- }, [p]), L = se((b) => p && p.scrollTo(b), [p]), G = se(() => p && p.scrollPrev(), [p]), ne = se(() => p && p.scrollNext(), [p]);
3242
- z(() => {
3348
+ }, []), $ = Ae(() => a * 1e3, [a]), d = ce(() => {
3349
+ p && K(p.selectedScrollSnap());
3350
+ }, [p]), l = ce((h) => p && p.scrollTo(h), [p]), v = ce(() => p && p.scrollPrev(), [p]), S = ce(() => p && p.scrollNext(), [p]);
3351
+ U(() => {
3243
3352
  if (p)
3244
- return p.on("select", j), p.on("reInit", j), q(p.scrollSnapList()), () => {
3245
- p.off("select", j), p.off("reInit", j);
3353
+ return p.on("select", d), p.on("reInit", d), w(p.scrollSnapList()), () => {
3354
+ p.off("select", d), p.off("reInit", d);
3246
3355
  };
3247
- }, [p, j]), z(() => {
3248
- p && (p.reInit(), q(p.scrollSnapList()));
3249
- }, [p, n, g, k]), z(() => {
3250
- if (!e || !p || !n || n.length <= 1) return;
3251
- const b = window.setInterval(() => {
3356
+ }, [p, d]), U(() => {
3357
+ p && (p.reInit(), w(p.scrollSnapList()));
3358
+ }, [p, n, f, x]);
3359
+ const [F, D] = Z(!1), [g, se] = Z(!1), [ee, te] = Z(!1), ne = e && !F && !g && !ee;
3360
+ U(() => {
3361
+ if (!ne || !p || !n || n.length <= 1) return;
3362
+ const h = window.setInterval(() => {
3252
3363
  p.canScrollNext() && p.scrollNext();
3253
- }, F);
3364
+ }, $);
3254
3365
  return () => {
3255
- window.clearInterval(b);
3366
+ window.clearInterval(h);
3256
3367
  };
3257
- }, [e, F, p, n]);
3258
- const H = Math.max(1, g), J = `${100 / H}%`, T = k / 2;
3368
+ }, [ne, $, p, n]);
3369
+ const z = Math.max(1, f), ie = `${100 / z}%`, T = x / 2;
3259
3370
  return /* @__PURE__ */ r(
3260
3371
  "div",
3261
3372
  {
3262
- className: W.carouselContainer,
3263
- "data-color": S,
3264
- "data-size": R,
3265
- "data-variant": f,
3373
+ className: X.carouselContainer,
3374
+ "data-color": I,
3375
+ "data-size": J,
3376
+ "data-variant": y,
3377
+ onMouseEnter: e ? () => se(!0) : void 0,
3378
+ onMouseLeave: e ? () => se(!1) : void 0,
3379
+ onFocus: e ? () => te(!0) : void 0,
3380
+ onBlur: e ? (h) => {
3381
+ h.currentTarget.contains(h.relatedTarget) || te(!1);
3382
+ } : void 0,
3266
3383
  children: [
3267
- /* @__PURE__ */ t("div", { className: W.viewport, ref: N, children: /* @__PURE__ */ t(
3384
+ /* @__PURE__ */ t("div", { className: X.viewport, ref: G, children: /* @__PURE__ */ t(
3268
3385
  "div",
3269
3386
  {
3270
- className: W.slides,
3387
+ className: X.slides,
3271
3388
  style: {
3272
3389
  marginLeft: `-${T}px`,
3273
3390
  marginRight: `-${T}px`
3274
3391
  },
3275
- children: n && n.length > 0 ? n.map((b, l) => /* @__PURE__ */ t(
3392
+ children: n && n.length > 0 ? n.map((h, C) => /* @__PURE__ */ t(
3276
3393
  "div",
3277
3394
  {
3278
- className: W.slide,
3395
+ className: X.slide,
3279
3396
  style: {
3280
- flex: `0 0 ${J}`,
3397
+ flex: `0 0 ${ie}`,
3281
3398
  paddingLeft: `${T}px`,
3282
3399
  paddingRight: `${T}px`,
3283
- borderRadius: D > 0 ? `${D}px` : void 0,
3400
+ borderRadius: B > 0 ? `${B}px` : void 0,
3284
3401
  overflow: "hidden"
3285
3402
  // Ensure radius clips content
3286
3403
  },
3287
- children: /* @__PURE__ */ r("div", { className: W.slideInner, style: { borderRadius: `${D}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
3288
- !m[l] && /* @__PURE__ */ t("div", { className: W.loaderOverlay, children: /* @__PURE__ */ t(Po, { "aria-label": _("carousel.loading") }) }),
3404
+ children: /* @__PURE__ */ r("div", { className: X.slideInner, style: { borderRadius: `${B}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
3405
+ !H[C] && /* @__PURE__ */ t("div", { className: X.loaderOverlay, children: /* @__PURE__ */ t(tr, { "aria-label": L("carousel.loading") }) }),
3289
3406
  /* @__PURE__ */ t(
3290
3407
  "img",
3291
3408
  {
3292
- className: `${W.image} ${m[l] ? W.loaded : W.loadingImage}`,
3293
- src: b.src,
3294
- alt: b.alt,
3295
- loading: l < H ? "eager" : "lazy",
3409
+ ref: (j) => {
3410
+ E.current[C] = j;
3411
+ },
3412
+ className: `${X.image} ${H[C] ? X.loaded : X.loadingImage}`,
3413
+ src: h.src,
3414
+ alt: h.alt,
3415
+ loading: C < z ? "eager" : "lazy",
3296
3416
  crossOrigin: "anonymous",
3297
- onLoad: () => I(l),
3298
- onError: (C) => {
3299
- C.target.style.display = "none", I(l);
3417
+ onLoad: () => Y(C),
3418
+ onError: (j) => {
3419
+ j.target.style.display = "none", Y(C);
3300
3420
  }
3301
3421
  }
3302
3422
  )
3303
3423
  ] })
3304
3424
  },
3305
- `image-${l}-${b.src}`
3306
- )) : /* @__PURE__ */ t("div", { className: W.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ t("div", { className: W.empty, children: "Ingen bilder" }) })
3425
+ `image-${C}-${h.src}`
3426
+ )) : /* @__PURE__ */ t("div", { className: X.slide, style: { flex: "0 0 100%" }, children: /* @__PURE__ */ t("div", { className: X.empty, children: "Ingen bilder" }) })
3307
3427
  }
3308
3428
  ) }),
3309
- (d || h && n && n.length > 1) && /* @__PURE__ */ r("div", { className: W.controls, "aria-hidden": "false", children: [
3310
- d && /* @__PURE__ */ r("div", { className: W.arrows, children: [
3429
+ (c || k && n && n.length > 1) && /* @__PURE__ */ r("div", { className: X.controls, "aria-hidden": "false", children: [
3430
+ c && /* @__PURE__ */ r("div", { className: X.arrows, children: [
3311
3431
  /* @__PURE__ */ t(
3312
- ce,
3432
+ fe,
3313
3433
  {
3314
3434
  variant: "primary",
3315
3435
  icon: !0,
3316
- "aria-label": _("carousel.previousImage"),
3317
- onClick: G,
3436
+ "aria-label": L("carousel.previousImage"),
3437
+ onClick: v,
3318
3438
  disabled: !n || n.length <= 1,
3319
- children: /* @__PURE__ */ t(mn, { "aria-hidden": !0 })
3439
+ children: /* @__PURE__ */ t(Sn, { "aria-hidden": !0 })
3320
3440
  }
3321
3441
  ),
3322
3442
  /* @__PURE__ */ t(
3323
- ce,
3443
+ fe,
3324
3444
  {
3325
3445
  variant: "primary",
3326
3446
  icon: !0,
3327
- "aria-label": _("carousel.nextImage"),
3328
- onClick: ne,
3447
+ "aria-label": L("carousel.nextImage"),
3448
+ onClick: S,
3329
3449
  disabled: !n || n.length <= 1,
3330
- children: /* @__PURE__ */ t(gn, { "aria-hidden": !0 })
3450
+ children: /* @__PURE__ */ t(_n, { "aria-hidden": !0 })
3331
3451
  }
3332
3452
  )
3333
3453
  ] }),
3334
- h && n && n.length > 1 && /* @__PURE__ */ t("div", { className: W.dots, role: "tablist", "aria-label": _("carousel.imagePosition"), children: A.map((b, l) => {
3335
- const C = l === K;
3336
- return /* @__PURE__ */ t(
3454
+ k && n && n.length > 1 && /* @__PURE__ */ r("div", { className: X.dots, role: "group", "aria-label": L("carousel.imagePosition"), children: [
3455
+ e && /* @__PURE__ */ t(
3337
3456
  "button",
3338
3457
  {
3339
3458
  type: "button",
3340
- className: `${W.dot} ${C ? W.dotActive : ""}`,
3341
- onClick: () => L(l),
3342
- "aria-label": `${_("carousel.goToImage")} ${l + 1}`,
3343
- "aria-selected": C,
3344
- role: "tab"
3345
- },
3346
- `dot-${l}`
3347
- );
3348
- }) })
3459
+ className: X.playPause,
3460
+ onClick: () => D((h) => !h),
3461
+ "aria-label": L(F ? "carousel.resumeAutoplay" : "carousel.pauseAutoplay"),
3462
+ "aria-pressed": F,
3463
+ children: F ? /* @__PURE__ */ t(In, { "aria-hidden": !0 }) : /* @__PURE__ */ t(Ln, { "aria-hidden": !0 })
3464
+ }
3465
+ ),
3466
+ N.map((h, C) => {
3467
+ const j = C === Q;
3468
+ return /* @__PURE__ */ t(
3469
+ "button",
3470
+ {
3471
+ type: "button",
3472
+ className: `${X.dot} ${j ? X.dotActive : ""}`,
3473
+ onClick: () => l(C),
3474
+ "aria-label": `${L("carousel.goToImage")} ${C + 1}`,
3475
+ "aria-current": j || void 0
3476
+ },
3477
+ `dot-${C}`
3478
+ );
3479
+ })
3480
+ ] })
3349
3481
  ] })
3350
3482
  ]
3351
3483
  }
3352
3484
  );
3353
3485
  };
3354
- zo.displayName = "Carousel";
3355
- function Ro(n) {
3486
+ nr.displayName = "Carousel";
3487
+ function or(n) {
3356
3488
  return `
3357
3489
  .${n.carouselContainer} {
3358
3490
  position: relative;
@@ -3393,7 +3525,7 @@ function Ro(n) {
3393
3525
  position: relative;
3394
3526
  width: 100%;
3395
3527
  height: 100%;
3396
- background-color: var(--ds-color-neutral-surface-subtle, #f5f5f5);
3528
+ background-color: var(--ds-color-neutral-surface-tinted, #f5f5f5);
3397
3529
  overflow: hidden;
3398
3530
  }
3399
3531
  .${n.loaderOverlay} {
@@ -3423,11 +3555,11 @@ function Ro(n) {
3423
3555
  align-items: center;
3424
3556
  gap: var(--ds-size-2, 8px);
3425
3557
  color: var(--ds-color-text-subtle, #5d5d5d);
3426
- font-size: var(--ds-font-size-sm, 14px);
3558
+ font-size: var(--ds-font-size-2, 14px);
3427
3559
  }
3428
3560
  .${n.empty} {
3429
3561
  color: var(--ds-color-text-subtle, #5d5d5d);
3430
- font-size: var(--ds-font-size-sm, 14px);
3562
+ font-size: var(--ds-font-size-2, 14px);
3431
3563
  text-align: center;
3432
3564
  }
3433
3565
  .${n.controls} {
@@ -3454,6 +3586,7 @@ function Ro(n) {
3454
3586
  transform: translateX(-50%);
3455
3587
  bottom: var(--ds-size-3, 12px);
3456
3588
  display: inline-flex;
3589
+ align-items: center;
3457
3590
  gap: var(--ds-size-2, 8px);
3458
3591
  pointer-events: auto;
3459
3592
  background-color: rgba(255, 255, 255, 0.1);
@@ -3472,6 +3605,20 @@ function Ro(n) {
3472
3605
  cursor: pointer;
3473
3606
  transition: all 0.2s ease;
3474
3607
  }
3608
+ .${n.playPause} {
3609
+ display: inline-flex;
3610
+ align-items: center;
3611
+ justify-content: center;
3612
+ width: var(--ds-size-6, 24px);
3613
+ height: var(--ds-size-6, 24px);
3614
+ border-radius: 999px;
3615
+ border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #d6d6d6);
3616
+ background-color: rgba(255, 255, 255, 0.85);
3617
+ color: var(--ds-color-neutral-text-default, #2b2b2b);
3618
+ padding: 0;
3619
+ margin: 0;
3620
+ cursor: pointer;
3621
+ }
3475
3622
  .${n.dotActive} {
3476
3623
  background-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
3477
3624
  border-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
@@ -3524,225 +3671,471 @@ function Ro(n) {
3524
3671
  }
3525
3672
  `;
3526
3673
  }
3527
- const Go = "_crossCorner_1caiu_1", Wo = "_shape_1caiu_6", Le = {
3528
- crossCorner: Go,
3529
- shape: Wo
3674
+ const rr = "_graphicElement_134cx_1", ar = "_shape_134cx_12", sr = "_faceFront_134cx_28", ir = "_faceTop_134cx_32", lr = "_faceRight_134cx_36", we = {
3675
+ graphicElement: rr,
3676
+ shape: ar,
3677
+ faceFront: sr,
3678
+ faceTop: ir,
3679
+ faceRight: lr
3530
3680
  };
3531
- function Ho(n) {
3681
+ function dr(n) {
3532
3682
  return `
3533
- .${n.crossCorner} {
3683
+ .${n.graphicElement} {
3534
3684
  display: inline-block;
3535
3685
  flex-shrink: 0;
3686
+ --graphic-element-color: var(--ds-color-base-default, #DA4236);
3687
+ --graphic-element-face-front: var(--ds-color-border-subtle, #EEABA6);
3688
+ --graphic-element-face-top: var(--ds-color-surface-active, #E5776F);
3536
3689
  }
3690
+ /* data-color scoping: the theme's [data-color] scopes swap the generic
3691
+ --ds-color-* variables, so no per-ramp rules are needed here. */
3537
3692
  .${n.shape} {
3538
- fill: var(--ds-color-base-default, #DA4236);
3693
+ fill: var(--graphic-element-color);
3539
3694
  }
3540
- /* Color variants via data-color attribute */
3541
- .${n.crossCorner}[data-color="accent"] .${n.shape} {
3542
- fill: var(--ds-color-accent-base-default, #DA4236);
3695
+ /* Outline variant: thin stroke, no fill */
3696
+ .${n.graphicElement}[data-variant="outline"] {
3697
+ overflow: visible;
3543
3698
  }
3544
- .${n.crossCorner}[data-color="brand1"] .${n.shape} {
3545
- fill: var(--ds-color-brand1-base-default, #DA4236);
3699
+ .${n.graphicElement}[data-variant="outline"] .${n.shape} {
3700
+ fill: none;
3701
+ stroke: var(--graphic-element-color);
3702
+ stroke-width: 2px;
3546
3703
  }
3547
- .${n.crossCorner}[data-color="brand2"] .${n.shape} {
3548
- fill: var(--ds-color-brand2-base-default, #1E2B3C);
3704
+ /* Isometric variant: three token-driven cube faces */
3705
+ .${n.faceFront} {
3706
+ fill: var(--graphic-element-face-front);
3549
3707
  }
3550
- .${n.crossCorner}[data-color="brand3"] .${n.shape} {
3551
- fill: var(--ds-color-brand3-base-default, #F5F5F5);
3708
+ .${n.faceTop} {
3709
+ fill: var(--graphic-element-face-top);
3552
3710
  }
3553
- .${n.crossCorner}[data-color="neutral"] .${n.shape} {
3554
- fill: var(--ds-color-neutral-base-default, #5D5D5D);
3711
+ .${n.faceRight} {
3712
+ fill: var(--graphic-element-color);
3555
3713
  }
3556
3714
  `;
3557
3715
  }
3558
- const Uo = {
3559
- sm: 48,
3560
- md: 68,
3561
- lg: 96
3562
- }, Vo = {
3716
+ const cr = {
3717
+ sm: 24,
3718
+ md: 34,
3719
+ lg: 48
3720
+ }, pr = {
3563
3721
  "top-left": 270,
3564
3722
  "top-right": 0,
3565
3723
  "bottom-right": 90,
3566
3724
  "bottom-left": 180
3567
- }, ye = ie(
3725
+ }, mr = {
3726
+ // One unit square. Outline: bottom edge only.
3727
+ square: {
3728
+ viewBoxW: 34,
3729
+ viewBoxH: 34,
3730
+ solid: "M0 0H34V34H0V0Z",
3731
+ outline: "M0 34H34"
3732
+ },
3733
+ // Three cells of a 2x2 grid with the TOP-LEFT cell missing:
3734
+ // (1,0), (0,1), (1,1). Outline: bottom + right edges (open step).
3735
+ corner: {
3736
+ viewBoxW: 68,
3737
+ viewBoxH: 68,
3738
+ solid: "M34 0H68V68H0V34H34V0Z",
3739
+ outline: "M0 68H68V0"
3740
+ },
3741
+ // The corner rotated -90deg: (0,0), (1,0), (1,1) - top bar plus the
3742
+ // bottom-right cell (this is the legacy CrossCorner form).
3743
+ // Outline: top + right edges.
3744
+ angle: {
3745
+ viewBoxW: 68,
3746
+ viewBoxH: 68,
3747
+ solid: "M0 0H68V68H34V34H0V0Z",
3748
+ outline: "M0 0H68V68"
3749
+ },
3750
+ // Three unit squares rotated 45deg (diamonds, radius 24 = U*sqrt(2)/2):
3751
+ // two side by side on top (centers (24,24) and (72,24)) and one
3752
+ // centered below/between them (center (48,48)). Their union forms
3753
+ // the angular heart. Outline: only the two bottom edges (open V).
3754
+ heart: {
3755
+ viewBoxW: 96,
3756
+ viewBoxH: 72,
3757
+ solid: "M24 0L48 24L72 0L96 24L48 72L0 24L24 0Z",
3758
+ outline: "M0 24L48 72L96 24"
3759
+ },
3760
+ // Four cells: a 3x1 row plus one center cell above it -
3761
+ // (1,0), (0,1), (1,1), (2,1). T pointing up.
3762
+ // Outline: 2U horizontal line with a 1U tick rising from its midpoint.
3763
+ tee: {
3764
+ viewBoxW: 102,
3765
+ viewBoxH: 68,
3766
+ solid: "M34 0H68V34H102V68H0V34H34V0Z",
3767
+ outline: "M17 68H85M51 34V68"
3768
+ },
3769
+ // Three cells in a row. Outline: bottom edge (one 3U line).
3770
+ bar: {
3771
+ viewBoxW: 102,
3772
+ viewBoxH: 34,
3773
+ solid: "M0 0H102V34H0V0Z",
3774
+ outline: "M0 34H102"
3775
+ },
3776
+ // Four cells with NO center cell: (1,0), (0,1), (2,1), (1,2) -
3777
+ // the gapped, checkerboard-style cross.
3778
+ // Outline: full-height vertical axis plus two 1U horizontal ticks,
3779
+ // leaving a gap over the (empty) center cell.
3780
+ cross: {
3781
+ viewBoxW: 102,
3782
+ viewBoxH: 102,
3783
+ solid: "M34 0H68V34H34V0ZM0 34H34V68H0V34ZM68 34H102V68H68V34ZM34 68H68V102H34V68Z",
3784
+ outline: "M51 0V102M0 51H34M68 51H102"
3785
+ }
3786
+ }, W = {
3787
+ cube: {
3788
+ w: 58.89,
3789
+ h: 68,
3790
+ faces: [
3791
+ { face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
3792
+ { face: "right", d: "M29.44 34L58.89 17L58.89 51L29.44 68Z" },
3793
+ { face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" }
3794
+ ]
3795
+ },
3796
+ cornerStanding: {
3797
+ w: 88.33,
3798
+ h: 102,
3799
+ faces: [
3800
+ { face: "top", d: "M0 34L29.44 17L58.89 34L29.44 51Z" },
3801
+ { face: "front", d: "M0 34L29.44 51L29.44 85L0 68Z" },
3802
+ { face: "right", d: "M58.89 68L88.33 51L88.33 85L58.89 102Z" },
3803
+ { face: "front", d: "M29.44 51L58.89 68L58.89 102L29.44 85Z" },
3804
+ { face: "top", d: "M29.44 17L58.89 0L88.33 17L58.89 34Z" },
3805
+ { face: "right", d: "M58.89 34L88.33 17L88.33 51L58.89 68Z" },
3806
+ { face: "front", d: "M29.44 17L58.89 34L58.89 68L29.44 51Z" }
3807
+ ]
3808
+ },
3809
+ cornerLying: {
3810
+ w: 117.78,
3811
+ h: 85,
3812
+ faces: [
3813
+ { face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" },
3814
+ { face: "top", d: "M0 17L29.44 34L58.89 17L29.44 0Z" },
3815
+ { face: "right", d: "M88.33 34L117.78 17L117.78 51L88.33 68Z" },
3816
+ { face: "top", d: "M58.89 17L88.33 34L117.78 17L88.33 0Z" },
3817
+ { face: "front", d: "M29.44 34L58.89 51L58.89 85L29.44 68Z" },
3818
+ { face: "right", d: "M58.89 51L88.33 34L88.33 68L58.89 85Z" },
3819
+ { face: "top", d: "M29.44 34L58.89 51L88.33 34L58.89 17Z" }
3820
+ ]
3821
+ },
3822
+ angleStanding: {
3823
+ w: 88.33,
3824
+ h: 119,
3825
+ faces: [
3826
+ { face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
3827
+ { face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" },
3828
+ { face: "right", d: "M58.89 85L88.33 68L88.33 102L58.89 119Z" },
3829
+ { face: "front", d: "M29.44 68L58.89 85L58.89 119L29.44 102Z" },
3830
+ { face: "top", d: "M29.44 34L58.89 17L88.33 34L58.89 51Z" },
3831
+ { face: "right", d: "M58.89 51L88.33 34L88.33 68L58.89 85Z" },
3832
+ { face: "front", d: "M29.44 34L58.89 51L58.89 85L29.44 68Z" }
3833
+ ]
3834
+ },
3835
+ angleLying: {
3836
+ w: 88.33,
3837
+ h: 102,
3838
+ faces: [
3839
+ { face: "right", d: "M58.89 34L88.33 17L88.33 51L58.89 68Z" },
3840
+ { face: "top", d: "M29.44 17L58.89 34L88.33 17L58.89 0Z" },
3841
+ { face: "front", d: "M0 34L29.44 51L29.44 85L0 68Z" },
3842
+ { face: "top", d: "M0 34L29.44 51L58.89 34L29.44 17Z" },
3843
+ { face: "front", d: "M29.44 51L58.89 68L58.89 102L29.44 85Z" },
3844
+ { face: "right", d: "M58.89 68L88.33 51L88.33 85L58.89 102Z" },
3845
+ { face: "top", d: "M29.44 51L58.89 68L88.33 51L58.89 34Z" }
3846
+ ]
3847
+ },
3848
+ heart: {
3849
+ w: 102,
3850
+ h: 88.33,
3851
+ faces: [
3852
+ { face: "front", d: "M17 0L34 29.44L17 58.89L0 29.44Z" },
3853
+ { face: "top", d: "M17 0L51 0L68 29.44L34 29.44Z" },
3854
+ { face: "right", d: "M51 58.89L85 58.89L68 88.33L34 88.33Z" },
3855
+ { face: "front", d: "M34 29.44L51 58.89L34 88.33L17 58.89Z" },
3856
+ { face: "right", d: "M68 29.44L102 29.44L85 58.89L51 58.89Z" },
3857
+ { face: "front", d: "M51 0L68 29.44L51 58.89L34 29.44Z" },
3858
+ { face: "top", d: "M51 0L85 0L102 29.44L68 29.44Z" }
3859
+ ]
3860
+ },
3861
+ heartMirrored: {
3862
+ w: 102,
3863
+ h: 88.33,
3864
+ faces: [
3865
+ { face: "front", d: "M85 0L68 29.44L85 58.89L102 29.44Z" },
3866
+ { face: "top", d: "M85 0L51 0L34 29.44L68 29.44Z" },
3867
+ { face: "right", d: "M51 58.89L17 58.89L34 88.33L68 88.33Z" },
3868
+ { face: "front", d: "M68 29.44L51 58.89L68 88.33L85 58.89Z" },
3869
+ { face: "right", d: "M34 29.44L0 29.44L17 58.89L51 58.89Z" },
3870
+ { face: "front", d: "M51 0L34 29.44L51 58.89L68 29.44Z" },
3871
+ { face: "top", d: "M51 0L17 0L0 29.44L34 29.44Z" }
3872
+ ]
3873
+ },
3874
+ barHorizontal: {
3875
+ w: 117.78,
3876
+ h: 102,
3877
+ faces: [
3878
+ { face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
3879
+ { face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" },
3880
+ { face: "top", d: "M29.44 34L58.89 17L88.33 34L58.89 51Z" },
3881
+ { face: "front", d: "M29.44 34L58.89 51L58.89 85L29.44 68Z" },
3882
+ { face: "top", d: "M58.89 51L88.33 34L117.78 51L88.33 68Z" },
3883
+ { face: "right", d: "M88.33 68L117.78 51L117.78 85L88.33 102Z" },
3884
+ { face: "front", d: "M58.89 51L88.33 68L88.33 102L58.89 85Z" }
3885
+ ]
3886
+ },
3887
+ barVertical: {
3888
+ w: 58.89,
3889
+ h: 136,
3890
+ faces: [
3891
+ { face: "right", d: "M29.44 102L58.89 85L58.89 119L29.44 136Z" },
3892
+ { face: "front", d: "M0 85L29.44 102L29.44 136L0 119Z" },
3893
+ { face: "right", d: "M29.44 68L58.89 51L58.89 85L29.44 102Z" },
3894
+ { face: "front", d: "M0 51L29.44 68L29.44 102L0 85Z" },
3895
+ { face: "top", d: "M0 17L29.44 0L58.89 17L29.44 34Z" },
3896
+ { face: "right", d: "M29.44 34L58.89 17L58.89 51L29.44 68Z" },
3897
+ { face: "front", d: "M0 17L29.44 34L29.44 68L0 51Z" }
3898
+ ]
3899
+ }
3900
+ }, lt = {
3901
+ square: {
3902
+ "top-left": W.cube,
3903
+ "top-right": W.cube,
3904
+ "bottom-left": W.cube,
3905
+ "bottom-right": W.cube
3906
+ },
3907
+ corner: {
3908
+ "top-left": W.cornerStanding,
3909
+ "top-right": W.cornerStanding,
3910
+ "bottom-left": W.cornerLying,
3911
+ "bottom-right": W.cornerLying
3912
+ },
3913
+ angle: {
3914
+ "top-left": W.angleStanding,
3915
+ "top-right": W.angleStanding,
3916
+ "bottom-left": W.angleLying,
3917
+ "bottom-right": W.angleLying
3918
+ },
3919
+ heart: {
3920
+ "top-left": W.heart,
3921
+ "top-right": W.heart,
3922
+ "bottom-left": W.heart,
3923
+ "bottom-right": W.heart
3924
+ },
3925
+ bar: {
3926
+ "top-left": W.barVertical,
3927
+ "top-right": W.barHorizontal,
3928
+ "bottom-left": W.barHorizontal,
3929
+ "bottom-right": W.barVertical
3930
+ }
3931
+ }, Qe = 34, gr = {
3932
+ front: we.faceFront,
3933
+ top: we.faceTop,
3934
+ right: we.faceRight
3935
+ };
3936
+ function ur(n) {
3937
+ return n in lt;
3938
+ }
3939
+ const je = me(
3568
3940
  ({
3569
- position: n = "top-left",
3570
- size: e = "md",
3571
- className: a,
3572
- "aria-label": d,
3573
- "aria-hidden": h = !0,
3574
- "data-color": f,
3575
- "data-size": g,
3576
- ...k
3577
- }, D) => {
3578
- z(() => {
3579
- const _ = "rk-crosscorner-inline-styles";
3580
- if (typeof document > "u" || document.getElementById(_)) return;
3581
- const V = Ho(Le), N = document.createElement("style");
3582
- N.id = _, N.textContent = V, document.head.appendChild(N);
3941
+ shape: n = "corner",
3942
+ variant: e = "solid",
3943
+ position: a = "top-left",
3944
+ size: c = "md",
3945
+ mirrored: k = !1,
3946
+ className: y,
3947
+ "aria-label": f,
3948
+ "aria-hidden": x = !0,
3949
+ "data-color": B,
3950
+ "data-size": I,
3951
+ ...J
3952
+ }, L) => {
3953
+ U(() => {
3954
+ const d = "rk-graphic-element-inline-styles";
3955
+ if (typeof document > "u" || document.getElementById(d)) return;
3956
+ const l = dr(we), v = document.createElement("style");
3957
+ v.id = d, v.textContent = l, document.head.appendChild(v);
3583
3958
  }, []);
3584
- const S = Uo[e], R = Vo[n];
3959
+ const R = cr[c], G = mr[n], p = e === "isometric" && ur(n) ? n === "heart" && k ? W.heartMirrored : lt[n][a] : void 0, Q = e === "isometric" && !p ? "solid" : e, K = p ? 0 : pr[a], N = p ? p.w : G.viewBoxW, w = p ? p.h : G.viewBoxH, H = K === 90 || K === 270, P = H ? w : N, E = H ? N : w, q = Math.round(R * P / Qe), Y = Math.round(R * E / Qe), $ = K === 90 ? `rotate(90) translate(0 ${-w})` : K === 180 ? `rotate(180) translate(${-N} ${-w})` : K === 270 ? `rotate(-90) translate(${-N} 0)` : void 0;
3585
3960
  return /* @__PURE__ */ t(
3586
3961
  "svg",
3587
3962
  {
3588
- ref: D,
3589
- className: `${Le.crossCorner} ${a || ""}`,
3590
- width: S,
3591
- height: S,
3592
- viewBox: "0 0 68 68",
3963
+ ref: L,
3964
+ className: `${we.graphicElement} ${y || ""}`,
3965
+ width: q,
3966
+ height: Y,
3967
+ viewBox: `0 0 ${P} ${E}`,
3593
3968
  fill: "none",
3594
3969
  xmlns: "http://www.w3.org/2000/svg",
3595
- "aria-label": d,
3596
- "aria-hidden": h,
3597
- role: h ? void 0 : "img",
3598
- "data-color": f,
3599
- "data-size": g,
3600
- style: {
3601
- transform: R ? `rotate(${R}deg)` : void 0
3602
- },
3603
- ...k,
3604
- children: /* @__PURE__ */ t(
3970
+ "aria-label": f,
3971
+ "aria-hidden": x,
3972
+ role: x ? void 0 : "img",
3973
+ "data-shape": n,
3974
+ "data-variant": Q,
3975
+ "data-color": B,
3976
+ "data-size": I,
3977
+ ...J,
3978
+ children: /* @__PURE__ */ t("g", { transform: $, children: p ? p.faces.map((d, l) => /* @__PURE__ */ t("path", { d: d.d, className: gr[d.face] }, l)) : /* @__PURE__ */ t(
3605
3979
  "path",
3606
3980
  {
3607
- d: "M68 0V33.8203H67.998V68H34.1777V33.8203H0V0H68Z",
3608
- className: Le.shape
3981
+ d: Q === "outline" ? G.outline : G.solid,
3982
+ className: we.shape,
3983
+ vectorEffect: "non-scaling-stroke"
3609
3984
  }
3610
- )
3985
+ ) })
3611
3986
  }
3612
3987
  );
3613
3988
  }
3614
3989
  );
3615
- ye.displayName = "CrossCorner";
3616
- const ni = ut, oi = ht, ri = ft, U = kt, ai = Tt, si = Ct, ii = bt, li = xt, di = yt, ci = vt, pi = wt, mi = St, Oo = _t, Ko = It;
3617
- Oo.displayName = "Field.Description";
3618
- Ko.displayName = "Field.Counter";
3619
- const gi = Ue, qo = ie((n, e) => /* @__PURE__ */ t(Dt, { ref: e, ...n }));
3620
- qo.displayName = "Heading";
3621
- const Ze = Lt;
3622
- Ze.displayName = "Input";
3623
- const Yo = ie((n, e) => /* @__PURE__ */ t(At, { ref: e, ...n }));
3624
- Yo.displayName = "Label";
3625
- const te = Nt, ui = Mt, Zo = jt, hi = Et, fi = Bt, ki = Ft, vi = $t;
3626
- Zo.displayName = "Pagination";
3627
- const xe = ie(
3628
- (n, e) => /* @__PURE__ */ t(Pt, { ref: e, ...n })
3990
+ je.displayName = "GraphicElement";
3991
+ const Ci = It, wi = Lt, Si = Dt, oe = Mt, _i = Bt, Ii = Ft, Li = At, Di = Et, Mi = Nt, ji = jt, Ai = Pt, Ni = $t, hr = Rt, fr = zt;
3992
+ hr.displayName = "Field.Description";
3993
+ fr.displayName = "Field.Counter";
3994
+ const Ei = ot, dt = Gt;
3995
+ dt.displayName = "Input";
3996
+ const kr = me((n, e) => /* @__PURE__ */ t(Ht, { ref: e, ...n }));
3997
+ kr.displayName = "Label";
3998
+ const pe = Wt, Bi = Ut, vr = Vt, Fi = Zt, Pi = Kt, $i = Ot, zi = qt;
3999
+ vr.displayName = "Pagination";
4000
+ const Ne = me(
4001
+ (n, e) => /* @__PURE__ */ t(Yt, { ref: e, ...n })
3629
4002
  );
3630
- xe.displayName = "Paragraph";
3631
- const bi = zt, yi = Rt, xi = Gt, Ce = Object.assign(Wt, {
3632
- Button: Vt,
3633
- ClearButton: Ut,
3634
- Input: Ht
3635
- }), Ti = Ot, Ci = Kt, wi = qt, Xo = Yt;
3636
- Xo.displayName = "Suggestion";
3637
- const Ae = Zt, Si = Xt, we = Jt, Jo = ie(function({ shape: e, style: a, ...d }, h) {
3638
- const f = {};
3639
- e === "rounded" && (f.borderRadius = "var(--ds-border-radius-xl)");
3640
- const g = Object.keys(f).length === 0 && !a ? void 0 : { ...f, ...a }, k = {};
3641
- return e === "rounded" && (k["data-shape"] = "rounded"), /* @__PURE__ */ t(Qt, { ref: h, ...d, ...k, style: g });
4003
+ Ne.displayName = "Paragraph";
4004
+ const Ri = Xt, Gi = Jt, Hi = Qt, Pe = Object.assign(en, {
4005
+ Button: on,
4006
+ ClearButton: nn,
4007
+ Input: tn
4008
+ }), Wi = rn, Ui = an, Vi = sn, br = ln;
4009
+ br.displayName = "Suggestion";
4010
+ const Re = dn, Oi = cn, Te = pn, yr = me(function({ shape: e, style: a, ...c }, k) {
4011
+ const y = {};
4012
+ e === "rounded" && (y.borderRadius = "var(--ds-border-radius-xl)");
4013
+ const f = Object.keys(y).length === 0 && !a ? void 0 : { ...y, ...a }, x = {};
4014
+ return e === "rounded" && (x["data-shape"] = "rounded"), /* @__PURE__ */ t(mn, { ref: k, ...c, ...x, style: f });
3642
4015
  });
3643
- Jo.displayName = "Tag";
3644
- const Ii = en, Qo = tn, _i = nn, Di = on, er = ie((n, e) => /* @__PURE__ */ t(rn, { ref: e, ...n }));
3645
- er.displayName = "ValidationMessage";
3646
- const tr = "_header_1h8vy_1", nr = "_languageSwitch_1h8vy_37", or = "_searchOverlay_1h8vy_41", rr = "_headerExtension_1h8vy_46", ar = "_headerExtensionTinted_1h8vy_75", sr = "_languageLabel_1h8vy_83", ir = "_languageLink_1h8vy_88", lr = "_extensionContent_1h8vy_93", dr = "_extensionDivider_1h8vy_98", cr = "_extensionContentWrapper_1h8vy_103", pr = "_headerInner_1h8vy_199", mr = "_logoWrapper_1h8vy_216", gr = "_logo_1h8vy_216", ur = "_secondaryLogoWrapper_1h8vy_239", hr = "_slotComponent_1h8vy_248", fr = "_slotContainer_1h8vy_258", kr = "_slotText_1h8vy_266", vr = "_secondaryLogo_1h8vy_239", br = "_redCrossLogo_1h8vy_293", yr = "_primaryLogo_1h8vy_299", xr = "_navItems_1h8vy_303", Tr = "_navLink_1h8vy_312", Cr = "_actions_1h8vy_325", wr = "_ctaButton_1h8vy_333", Sr = "_themeToggle_1h8vy_338", Ir = "_userInfo_1h8vy_343", _r = "_userName_1h8vy_349", Dr = "_loginLink_1h8vy_356", Lr = "_loginText_1h8vy_365", Ar = "_underline_1h8vy_372", Nr = "_searchButtonWrapper_1h8vy_378", Mr = "_buttonText_1h8vy_382", jr = "_menuButton_1h8vy_387", Fr = "_menuOverlay_1h8vy_410", Br = "_searchContent_1h8vy_444", Er = "_menuContent_1h8vy_454", $r = "_menuLeftColumn_1h8vy_463", Pr = "_menuRightColumn_1h8vy_469", zr = "_slotContent_1h8vy_483", Rr = "_navList_1h8vy_496", Gr = "_menuUtilities_1h8vy_503", Wr = "_menuBrand_1h8vy_510", Hr = "_suggestionsSection_1h8vy_514", Ur = "_suggestionsTitle_1h8vy_520", Vr = "_searchResults_1h8vy_529", Or = "_resultList_1h8vy_535", Kr = "_resultItem_1h8vy_541", qr = "_resultLink_1h8vy_549", Yr = "_suggestionIcon_1h8vy_563", Zr = "_suggestionText_1h8vy_576", Xr = "_highlightedText_1h8vy_583", Jr = "_remainingText_1h8vy_588", Qr = "_viewAllLink_1h8vy_601", ea = "_noResults_1h8vy_636", s = {
3647
- header: tr,
3648
- languageSwitch: nr,
3649
- searchOverlay: or,
3650
- headerExtension: rr,
3651
- headerExtensionTinted: ar,
3652
- languageLabel: sr,
3653
- languageLink: ir,
3654
- extensionContent: lr,
3655
- extensionDivider: dr,
3656
- extensionContentWrapper: cr,
3657
- headerInner: pr,
3658
- logoWrapper: mr,
3659
- logo: gr,
3660
- secondaryLogoWrapper: ur,
3661
- slotComponent: hr,
3662
- slotContainer: fr,
3663
- slotText: kr,
3664
- secondaryLogo: vr,
3665
- redCrossLogo: br,
3666
- primaryLogo: yr,
3667
- navItems: xr,
3668
- navLink: Tr,
3669
- actions: Cr,
3670
- ctaButton: wr,
3671
- themeToggle: Sr,
3672
- userInfo: Ir,
3673
- userName: _r,
3674
- loginLink: Dr,
3675
- loginText: Lr,
3676
- underline: Ar,
3677
- searchButtonWrapper: Nr,
3678
- buttonText: Mr,
3679
- menuButton: jr,
3680
- menuOverlay: Fr,
3681
- searchContent: Br,
3682
- menuContent: Er,
3683
- menuLeftColumn: $r,
3684
- menuRightColumn: Pr,
3685
- slotContent: zr,
3686
- navList: Rr,
3687
- menuUtilities: Gr,
3688
- menuBrand: Wr,
3689
- suggestionsSection: Hr,
3690
- suggestionsTitle: Ur,
3691
- searchResults: Vr,
3692
- resultList: Or,
3693
- resultItem: Kr,
3694
- resultLink: qr,
3695
- suggestionIcon: Yr,
3696
- suggestionText: Zr,
3697
- highlightedText: Xr,
3698
- remainingText: Jr,
3699
- viewAllLink: Qr,
3700
- noResults: ea
3701
- }, ta = [
4016
+ yr.displayName = "Tag";
4017
+ const Ki = gn, xr = un, Zi = hn, qi = fn, Tr = me((n, e) => /* @__PURE__ */ t(kn, { ref: e, ...n }));
4018
+ Tr.displayName = "ValidationMessage";
4019
+ const Cr = "_header_4177j_1", wr = "_languageSwitch_4177j_37", Sr = "_searchOverlay_4177j_41", _r = "_headerExtension_4177j_46", Ir = "_headerExtensionTinted_4177j_75", Lr = "_languageLabel_4177j_83", Dr = "_languageLink_4177j_88", Mr = "_extensionContent_4177j_93", jr = "_extensionDivider_4177j_98", Ar = "_extensionContentWrapper_4177j_103", Nr = "_headerInner_4177j_199", Er = "_logoWrapper_4177j_216", Br = "_logo_4177j_216", Fr = "_secondaryLogoWrapper_4177j_239", Pr = "_slotComponent_4177j_248", $r = "_slotContainer_4177j_258", zr = "_slotText_4177j_266", Rr = "_secondaryLogo_4177j_239", Gr = "_redCrossLogo_4177j_293", Hr = "_primaryLogo_4177j_299", Wr = "_navItems_4177j_303", Ur = "_navLink_4177j_312", Vr = "_actions_4177j_325", Or = "_ctaButton_4177j_333", Kr = "_themeToggle_4177j_338", Zr = "_userInfo_4177j_343", qr = "_userName_4177j_349", Yr = "_loginLink_4177j_356", Xr = "_loginText_4177j_365", Jr = "_underline_4177j_372", Qr = "_searchButtonWrapper_4177j_378", ea = "_buttonText_4177j_382", ta = "_menuButton_4177j_387", na = "_menuOverlay_4177j_392", oa = "_searchContent_4177j_426", ra = "_menuContent_4177j_436", aa = "_menuLeftColumn_4177j_445", sa = "_menuRightColumn_4177j_451", ia = "_slotContent_4177j_465", la = "_navList_4177j_478", da = "_menuUtilities_4177j_485", ca = "_menuBrand_4177j_492", pa = "_suggestionsSection_4177j_496", ma = "_suggestionsTitle_4177j_502", ga = "_searchResults_4177j_511", ua = "_resultList_4177j_517", ha = "_resultItem_4177j_523", fa = "_resultLink_4177j_531", ka = "_suggestionIcon_4177j_545", va = "_suggestionText_4177j_558", ba = "_highlightedText_4177j_565", ya = "_remainingText_4177j_570", xa = "_viewAllLink_4177j_583", Ta = "_noResults_4177j_618", i = {
4020
+ header: Cr,
4021
+ languageSwitch: wr,
4022
+ searchOverlay: Sr,
4023
+ headerExtension: _r,
4024
+ headerExtensionTinted: Ir,
4025
+ languageLabel: Lr,
4026
+ languageLink: Dr,
4027
+ extensionContent: Mr,
4028
+ extensionDivider: jr,
4029
+ extensionContentWrapper: Ar,
4030
+ headerInner: Nr,
4031
+ logoWrapper: Er,
4032
+ logo: Br,
4033
+ secondaryLogoWrapper: Fr,
4034
+ slotComponent: Pr,
4035
+ slotContainer: $r,
4036
+ slotText: zr,
4037
+ secondaryLogo: Rr,
4038
+ redCrossLogo: Gr,
4039
+ primaryLogo: Hr,
4040
+ navItems: Wr,
4041
+ navLink: Ur,
4042
+ actions: Vr,
4043
+ ctaButton: Or,
4044
+ themeToggle: Kr,
4045
+ userInfo: Zr,
4046
+ userName: qr,
4047
+ loginLink: Yr,
4048
+ loginText: Xr,
4049
+ underline: Jr,
4050
+ searchButtonWrapper: Qr,
4051
+ buttonText: ea,
4052
+ menuButton: ta,
4053
+ menuOverlay: na,
4054
+ searchContent: oa,
4055
+ menuContent: ra,
4056
+ menuLeftColumn: aa,
4057
+ menuRightColumn: sa,
4058
+ slotContent: ia,
4059
+ navList: la,
4060
+ menuUtilities: da,
4061
+ menuBrand: ca,
4062
+ suggestionsSection: pa,
4063
+ suggestionsTitle: ma,
4064
+ searchResults: ga,
4065
+ resultList: ua,
4066
+ resultItem: ha,
4067
+ resultLink: fa,
4068
+ suggestionIcon: ka,
4069
+ suggestionText: va,
4070
+ highlightedText: ba,
4071
+ remainingText: ya,
4072
+ viewAllLink: xa,
4073
+ noResults: Ta
4074
+ }, Ca = [
3702
4075
  // Pages
3703
4076
  { id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
3704
4077
  { id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
3705
4078
  { id: "design", title: "Design", category: "Page", path: "design", description: "Designretningslinjer og prinsipper" },
3706
4079
  { id: "code", title: "Kode", category: "Page", path: "code", description: "Utviklerdokumentasjon og oppsett" },
3707
- // Components
4080
+ { id: "tokens", title: "Tokens", category: "Page", path: "tokens", description: "Design tokens: farger, størrelser og typografi" },
4081
+ // Components (samme utvalg som komponentkatalogen)
3708
4082
  { id: "alert", title: "Alert", category: "Component", path: "components", description: "Varselbokser for viktige meldinger" },
3709
4083
  { id: "avatar", title: "Avatar", category: "Component", path: "components", description: "Profilbilder og initialer" },
3710
4084
  { id: "badge", title: "Badge", category: "Component", path: "components", description: "Små merker for status eller antall" },
4085
+ { id: "breadcrumbs", title: "Breadcrumbs", category: "Component", path: "components", description: "Brødsmulesti for navigasjon" },
3711
4086
  { id: "button", title: "Button", category: "Component", path: "components", description: "Knapper for handlinger" },
3712
4087
  { id: "card", title: "Card", category: "Component", path: "components", description: "Kort for gruppering av innhold" },
3713
4088
  { id: "carousel", title: "Carousel", category: "Component", path: "components", description: "Bildekarusell" },
3714
4089
  { id: "checkbox", title: "Checkbox", category: "Component", path: "components", description: "Valg av flere alternativer" },
4090
+ { id: "chip", title: "Chip", category: "Component", path: "components", description: "Filtrering og valg i kompakte merker" },
4091
+ { id: "dateinput", title: "DateInput", category: "Component", path: "components", description: "Tekstfelt for dato (dd.mm.åååå)" },
4092
+ { id: "datepicker", title: "DatePicker", category: "Component", path: "components", description: "Kalender for valg av dato" },
4093
+ { id: "details", title: "Details", category: "Component", path: "components", description: "Ekspanderbare seksjoner" },
3715
4094
  { id: "dialog", title: "Dialog", category: "Component", path: "components", description: "Modale vinduer" },
4095
+ { id: "divider", title: "Divider", category: "Component", path: "components", description: "Skillelinjer" },
3716
4096
  { id: "dropdown", title: "Dropdown", category: "Component", path: "components", description: "Nedtrekksmenyer" },
4097
+ { id: "errorsummary", title: "ErrorSummary", category: "Component", path: "components", description: "Oppsummering av skjemafeil" },
4098
+ { id: "field", title: "Field", category: "Component", path: "components", description: "Feltoppsett med etikett og beskrivelse" },
4099
+ { id: "fieldset", title: "Fieldset", category: "Component", path: "components", description: "Gruppering av skjemafelt" },
4100
+ { id: "graphicelement", title: "GraphicElement", category: "Component", path: "components", description: "Grafiske merkevareelementer fra designretningen" },
3717
4101
  { id: "header", title: "Header", category: "Component", path: "components", description: "Topptekst og navigasjon" },
3718
- { id: "herosection", title: "HeroSection", category: "Component", path: "components", description: "Store introduksjonsseksjoner" },
3719
4102
  { id: "input", title: "Input", category: "Component", path: "components", description: "Tekstfelt for brukerinput" },
3720
4103
  { id: "link", title: "Link", category: "Component", path: "components", description: "Lenker til andre sider" },
3721
4104
  { id: "list", title: "List", category: "Component", path: "components", description: "Ordnede og uordnede lister" },
3722
4105
  { id: "pagination", title: "Pagination", category: "Component", path: "components", description: "Navigasjon mellom sider" },
4106
+ { id: "popover", title: "Popover", category: "Component", path: "components", description: "Flytende innholdsbokser" },
3723
4107
  { id: "radio", title: "Radio", category: "Component", path: "components", description: "Valg av ett alternativ" },
3724
4108
  { id: "search", title: "Search", category: "Component", path: "components", description: "Søkefelter" },
3725
4109
  { id: "select", title: "Select", category: "Component", path: "components", description: "Valgmeny" },
3726
- { id: "spinner", title: "Spinner", category: "Component", path: "components", description: "Lasteindikator" },
4110
+ { id: "skeletonloader", title: "SkeletonLoader", category: "Component", path: "components", description: "Plassholdere under lasting" },
4111
+ { id: "skiplink", title: "SkipLink", category: "Component", path: "components", description: "Hopp til hovedinnhold" },
4112
+ { id: "spinnerloader", title: "SpinnerLoader", category: "Component", path: "components", description: "Lasteindikator" },
4113
+ { id: "suggestion", title: "Suggestion", category: "Component", path: "components", description: "Søkefelt med forslag" },
3727
4114
  { id: "switch", title: "Switch", category: "Component", path: "components", description: "Av/på bryter" },
3728
4115
  { id: "table", title: "Table", category: "Component", path: "components", description: "Tabeller for data" },
3729
4116
  { id: "tabs", title: "Tabs", category: "Component", path: "components", description: "Faner for inndeling av innhold" },
3730
4117
  { id: "tag", title: "Tag", category: "Component", path: "components", description: "Merkelapper og emneknagger" },
3731
4118
  { id: "textarea", title: "Textarea", category: "Component", path: "components", description: "Flerlinjers tekstfelt" },
4119
+ { id: "textfield", title: "Textfield", category: "Component", path: "components", description: "Komplett tekstfelt med etikett" },
4120
+ { id: "togglegroup", title: "ToggleGroup", category: "Component", path: "components", description: "Grupperte veksleknapper" },
3732
4121
  { id: "tooltip", title: "Tooltip", category: "Component", path: "components", description: "Hjelpetekster ved hover" },
3733
- // Design Docs - For Designere
4122
+ // Design — For designere
3734
4123
  { id: "figma-oppkobling", title: "Figma tilkobling", category: "Design", path: "design/figma-oppkobling", description: "Hvordan koble til Figma-biblioteket" },
3735
4124
  { id: "oppstart", title: "Oppstart", category: "Design", path: "design/oppstart", description: "Oppsett av arbeidsområde" },
3736
- { id: "lage-komponenter", title: "Lage ett nytt komponent", category: "Design", path: "design/lage-komponenter", description: "Veileder for komponentbygging" },
4125
+ { id: "lage-komponenter", title: "Lage en ny komponent", category: "Design", path: "design/lage-komponenter", description: "Veileder for komponentbygging" },
3737
4126
  { id: "praktiske-eksempler", title: "Praktiske eksempler", category: "Design", path: "design/praktiske-eksempler", description: "Eksempler på bruk av designsystemet" },
3738
4127
  { id: "token-studio", title: "Token Studio", category: "Design", path: "design/token-studio", description: "Bruk av Token Studio" },
3739
- // Design Docs - Farger
4128
+ // Design — Farger
3740
4129
  { id: "fargesystem", title: "Sette opp ditt eget fargesystem", category: "Design", path: "design/fargesystem", description: "Hvordan sette opp farger" },
3741
4130
  { id: "temabygger", title: "Temabygger", category: "Design", path: "design/temabygger", description: "Designsystemets temagenerator" },
3742
4131
  { id: "bruk-farger", title: "Bruk fargene", category: "Design", path: "design/bruk-farger", description: "Bruk genererte farger" },
3743
- // Design Docs - Bidra
4132
+ // Design — Guider
4133
+ { id: "vedlikeholde-design-tokens", title: "Vedlikeholde design tokens", category: "Design", path: "design/vedlikeholde-design-tokens", description: "Endre tokens og publisere ny versjon" },
4134
+ { id: "endre-bygge-tema", title: "Endre og bygge tema", category: "Design", path: "design/endre-bygge-tema", description: "Temaoppsett og bygging av tokens" },
4135
+ { id: "koble-tokens-til-figma", title: "Koble tokens til Figma", category: "Design", path: "design/koble-tokens-til-figma", description: "Synkronisere tokens med Figma" },
4136
+ // Design — Bidra
3744
4137
  { id: "foresla-design", title: "Foreslå nytt design", category: "Design", path: "design/foresla-design", description: "Hvordan bidra med nytt design" },
3745
- // Design Docs - Designelementer
4138
+ // Design — Designelementer
3746
4139
  { id: "hva-er-design-tokens", title: "Hva er design tokens", category: "Design", path: "design/hva-er-design-tokens", description: "Introduksjon til design tokens" },
3747
4140
  { id: "design-tokens-i-figma", title: "Design tokens i Figma", category: "Design", path: "design/design-tokens-i-figma", description: "Bruke tokens i Figma" },
3748
4141
  { id: "farger-navnestruktur", title: "Farger: Navnestruktur", category: "Design", path: "design/farger-navnestruktur", description: "Navngiving av farger" },
@@ -3754,56 +4147,67 @@ const tr = "_header_1h8vy_1", nr = "_languageSwitch_1h8vy_37", or = "_searchOver
3754
4147
  { id: "storrelse-tokens", title: "Størrelse-tokens", category: "Design", path: "design/storrelse-tokens", description: "Tokens for størrelser" },
3755
4148
  { id: "font-family", title: "Typografi: Font-family", category: "Design", path: "design/font-family", description: "Font-familier" },
3756
4149
  { id: "typografi-tokens", title: "Typografi-tokens", category: "Design", path: "design/typografi-tokens", description: "Tokens for typografi" },
3757
- // Code Docs
3758
- { id: "code-intro", title: "Oversikt (Kode)", category: "Code", path: "code/intro", description: "Startside for kode" },
4150
+ // Code
3759
4151
  { id: "kom-i-gang", title: "Kom i gang (Kode)", category: "Code", path: "code/kom-i-gang", description: "Installasjon og oppsett" },
3760
- { id: "figma-mcp", title: "Fra Figma til Kode (MCP)", category: "Code", path: "code/figma-mcp", description: "Automatisert arbeidsflyt med MCP" },
3761
- { id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
3762
- { id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
3763
- { id: "metadata-files", title: "Metadata filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
4152
+ { id: "code-design-tokens", title: "Design tokens (Kode)", category: "Code", path: "code/design-tokens", description: "Bruke tokens i kode" },
4153
+ { id: "fonts", title: "Fonter", category: "Code", path: "code/fonts", description: "Oppsett av Source Sans 3" },
4154
+ { id: "icons", title: "Ikoner", category: "Code", path: "code/icons", description: "Ikonbibliotek og bruk" },
4155
+ { id: "contributing", title: "Bidra med kode", category: "Code", path: "code/contributing", description: "Retningslinjer for bidrag" },
4156
+ { id: "figma-mcp-intro", title: "Fra Figma til kode (MCP)", category: "Code", path: "code/figma-mcp-intro", description: "Automatisert arbeidsflyt med MCP" },
4157
+ { id: "figma-mcp-cursor", title: "Figma MCP i Cursor", category: "Code", path: "code/figma-mcp-cursor", description: "Oppsett av MCP i Cursor" },
4158
+ { id: "figma-mcp-claude", title: "Figma MCP i Claude", category: "Code", path: "code/figma-mcp-claude", description: "Oppsett av MCP i Claude" },
4159
+ { id: "komponent-kreasjon", title: "Komponentkreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
4160
+ { id: "metadata-files", title: "Metadata-filer", category: "Code", path: "code/metadata-files", description: "Struktur og bruk av metadata.json" }
3764
4161
  ];
3765
- function na(n) {
4162
+ function wa(n) {
3766
4163
  return n.split(/\s+/).map((e) => e[0] ?? "").join("").slice(0, 2).toUpperCase();
3767
4164
  }
3768
- const Li = ({
4165
+ const Yi = ({
3769
4166
  variant: n = "default",
3770
4167
  "data-color": e = "primary",
3771
4168
  activePage: a,
3772
- setPage: d,
3773
- children: h,
3774
- showUser: f = !0,
3775
- showSearch: g = !0,
3776
- showLogin: k = !0,
3777
- showCta: D = !1,
3778
- ctaLabel: S,
3779
- ctaIcon: R = /* @__PURE__ */ t(un, { "aria-hidden": !0 }),
3780
- onCtaClick: _,
3781
- showThemeToggle: V = !1,
3782
- secondaryLogo: N = !1,
4169
+ setPage: c,
4170
+ children: k,
4171
+ showUser: y = !0,
4172
+ showSearch: f = !0,
4173
+ showLogin: x = !0,
4174
+ showCta: B = !1,
4175
+ ctaLabel: I,
4176
+ ctaIcon: J = /* @__PURE__ */ t(Mn, { "aria-hidden": !0 }),
4177
+ onCtaClick: L,
4178
+ showThemeToggle: R = !1,
4179
+ secondaryLogo: G = !1,
3783
4180
  secondaryLogoSrc: p,
3784
- secondaryLogoSrcDark: K,
3785
- secondaryLogoAlt: X = "Secondary Logo",
3786
- navItems: A,
3787
- showNavItems: q = !0,
3788
- showMenuButton: m = !0,
3789
- showHeaderExtension: M = !1,
3790
- showModeToggle: I = !1,
3791
- showLanguageSwitch: F = !1,
3792
- extensionColor: j,
3793
- buttonStyle: L = "default",
3794
- userName: G,
3795
- userInitials: ne,
3796
- userAvatarSrc: H,
3797
- onUserClick: J
4181
+ secondaryLogoSrcDark: Q,
4182
+ secondaryLogoAlt: K = "Secondary Logo",
4183
+ navItems: N,
4184
+ showNavItems: w = !0,
4185
+ showMenuButton: H = !0,
4186
+ showHeaderExtension: P = !1,
4187
+ showModeToggle: E = !1,
4188
+ showLanguageSwitch: q = !1,
4189
+ extensionColor: Y,
4190
+ userName: $,
4191
+ userInitials: d,
4192
+ userAvatarSrc: l,
4193
+ onUserClick: v
3798
4194
  }) => {
3799
- const [T, b] = O(!1), [l, C] = O(!1), [B, Y] = O(""), [y, E] = O("light"), { language: Q, setLanguage: le, t: v } = Te(), [Z, me] = O(!1);
3800
- z(() => {
3801
- const i = "rk-header-inline-styles";
3802
- if (typeof document > "u" || document.getElementById(i)) return;
3803
- const u = oa(s), x = document.createElement("style");
3804
- x.id = i, x.textContent = u, document.head.appendChild(x);
4195
+ const [S, F] = Z(!1), [D, g] = Z(!1), se = ye.useRef(null), ee = ye.useRef(null), te = ye.useRef(null), ne = ye.useRef(null), [z, ie] = Z(""), [T, h] = Z(() => {
4196
+ var s;
4197
+ if (typeof document < "u") {
4198
+ const m = document.documentElement.getAttribute("data-color-scheme");
4199
+ if (m === "dark" || m === "light") return m;
4200
+ if ((s = window.matchMedia) != null && s.call(window, "(prefers-color-scheme: dark)").matches) return "dark";
4201
+ }
4202
+ return "light";
4203
+ }), { language: C, setLanguage: j, t: _ } = Be(), [u, M] = Z(!1);
4204
+ U(() => {
4205
+ const s = "rk-header-inline-styles";
4206
+ if (typeof document > "u" || document.getElementById(s)) return;
4207
+ const m = Sa(i), b = document.createElement("style");
4208
+ b.id = s, b.textContent = m, document.head.appendChild(b);
3805
4209
  }, []);
3806
- const ge = () => /* @__PURE__ */ r(
4210
+ const le = () => /* @__PURE__ */ r(
3807
4211
  "svg",
3808
4212
  {
3809
4213
  width: "170",
@@ -3813,7 +4217,7 @@ const Li = ({
3813
4217
  xmlns: "http://www.w3.org/2000/svg",
3814
4218
  "aria-hidden": !0,
3815
4219
  focusable: "false",
3816
- className: s.redCrossLogo,
4220
+ className: i.redCrossLogo,
3817
4221
  children: [
3818
4222
  /* @__PURE__ */ t("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" }),
3819
4223
  /* @__PURE__ */ t("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" }),
@@ -3828,212 +4232,222 @@ const Li = ({
3828
4232
  ]
3829
4233
  }
3830
4234
  );
3831
- z(() => {
3832
- b(!1), C(!1), Y("");
3833
- }, [a]), z(() => {
3834
- if (!(typeof document > "u") && T && Z) {
3835
- const i = document.body.style.overflow;
4235
+ U(() => {
4236
+ F(!1), g(!1), ie("");
4237
+ }, [a]), U(() => {
4238
+ if (!(typeof document > "u") && S && u) {
4239
+ const s = document.body.style.overflow;
3836
4240
  return document.body.style.overflow = "hidden", () => {
3837
- document.body.style.overflow = i;
4241
+ document.body.style.overflow = s;
3838
4242
  };
3839
4243
  }
3840
- }, [T, Z]), z(() => {
4244
+ }, [S, u]), U(() => {
3841
4245
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
3842
- const i = window.matchMedia("(max-width: 850px)"), u = (x) => me("matches" in x ? x.matches : i.matches);
3843
- return u(i), i.addEventListener ? i.addEventListener("change", u) : i.addListener(u), () => {
3844
- i.removeEventListener ? i.removeEventListener("change", u) : i.removeListener(u);
4246
+ const s = window.matchMedia("(max-width: 850px)"), m = (b) => M("matches" in b ? b.matches : s.matches);
4247
+ return m(s), s.addEventListener ? s.addEventListener("change", m) : s.addListener(m), () => {
4248
+ s.removeEventListener ? s.removeEventListener("change", m) : s.removeListener(m);
3845
4249
  };
3846
- }, []), z(() => {
4250
+ }, []), U(() => {
3847
4251
  if (typeof document > "u") return;
3848
- const i = document.querySelector(`.${s.header}`);
3849
- if (!i) return;
3850
- const u = () => {
3851
- const ae = i.offsetHeight;
3852
- document.documentElement.style.setProperty("--header-height-mobile", `${ae}px`);
4252
+ const s = document.querySelector(`.${i.header}`);
4253
+ if (!s) return;
4254
+ const m = () => {
4255
+ const V = s.offsetHeight;
4256
+ document.documentElement.style.setProperty("--header-height-mobile", `${V}px`);
3853
4257
  };
3854
- u(), window.addEventListener("resize", u);
3855
- const x = new ResizeObserver(() => {
3856
- u();
4258
+ m(), window.addEventListener("resize", m);
4259
+ const b = new ResizeObserver(() => {
4260
+ m();
3857
4261
  });
3858
- return x.observe(i), () => {
3859
- window.removeEventListener("resize", u), x.disconnect();
4262
+ return b.observe(s), () => {
4263
+ window.removeEventListener("resize", m), b.disconnect();
3860
4264
  };
3861
- }, [Z]), z(() => {
4265
+ }, [u]), U(() => {
3862
4266
  if (typeof document > "u") return;
3863
- const i = document.querySelector(`.${s.logoWrapper}`);
3864
- if (!i) return;
3865
- const u = () => {
3866
- const x = i.offsetWidth;
3867
- document.documentElement.style.setProperty("--rk-logo-width", `${x}px`);
4267
+ const s = document.querySelector(`.${i.logoWrapper}`);
4268
+ if (!s) return;
4269
+ const m = () => {
4270
+ const b = s.offsetWidth;
4271
+ document.documentElement.style.setProperty("--rk-logo-width", `${b}px`);
3868
4272
  };
3869
- return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
3870
- }, [Z]), z(() => {
3871
- if (typeof document > "u" || !l) {
4273
+ return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
4274
+ }, [u]), U(() => {
4275
+ if (typeof document > "u" || !D) {
3872
4276
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
3873
4277
  return;
3874
4278
  }
3875
- const i = document.querySelector(`.${s.searchOverlay}`);
3876
- if (!i) return;
3877
- const u = () => {
3878
- const ae = i.offsetHeight;
3879
- document.documentElement.style.setProperty("--rk-search-overlay-height", `${ae}px`);
4279
+ const s = document.querySelector(`.${i.searchOverlay}`);
4280
+ if (!s) return;
4281
+ const m = () => {
4282
+ const V = s.offsetHeight;
4283
+ document.documentElement.style.setProperty("--rk-search-overlay-height", `${V}px`);
4284
+ };
4285
+ requestAnimationFrame(m), window.addEventListener("resize", m);
4286
+ const b = new ResizeObserver(m);
4287
+ return b.observe(s), () => {
4288
+ window.removeEventListener("resize", m), b.disconnect();
3880
4289
  };
3881
- requestAnimationFrame(u), window.addEventListener("resize", u);
3882
- const x = new ResizeObserver(u);
3883
- return x.observe(i), () => {
3884
- window.removeEventListener("resize", u), x.disconnect();
4290
+ }, [D]), U(() => {
4291
+ if (!S && !D) return;
4292
+ const s = (m) => {
4293
+ var b, V;
4294
+ m.key === "Escape" && (S && (F(!1), (b = se.current) == null || b.focus()), D && (g(!1), (V = ee.current) == null || V.focus()));
3885
4295
  };
3886
- }, [l]);
3887
- const c = () => {
3888
- const i = y === "light" ? "dark" : "light";
3889
- E(i), document.documentElement.setAttribute("data-color-scheme", i);
3890
- }, w = (i) => {
3891
- d && (i.preventDefault(), d("home")), b(!1), C(!1);
3892
- }, $ = () => {
3893
- b(!T), l && C(!1), !T && typeof document < "u" && requestAnimationFrame(() => {
3894
- const i = document.querySelector(`.${s.header}`);
3895
- if (i) {
3896
- const u = i.offsetHeight;
3897
- document.documentElement.style.setProperty("--header-height-mobile", `${u}px`);
4296
+ return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
4297
+ }, [S, D]), U(() => {
4298
+ var s, m, b;
4299
+ D ? (s = ne.current) == null || s.focus() : S && ((b = (m = te.current) == null ? void 0 : m.querySelector('a[href], button, input, select, [tabindex]:not([tabindex="-1"])')) == null || b.focus());
4300
+ }, [S, D]);
4301
+ const re = () => {
4302
+ const s = T === "light" ? "dark" : "light";
4303
+ h(s), document.documentElement.setAttribute("data-color-scheme", s);
4304
+ }, ge = (s) => {
4305
+ c && (s.preventDefault(), c("home")), F(!1), g(!1);
4306
+ }, xe = () => {
4307
+ F(!S), D && g(!1), !S && typeof document < "u" && requestAnimationFrame(() => {
4308
+ const s = document.querySelector(`.${i.header}`);
4309
+ if (s) {
4310
+ const m = s.offsetHeight;
4311
+ document.documentElement.style.setProperty("--header-height-mobile", `${m}px`);
3898
4312
  }
3899
4313
  });
3900
- }, oe = () => {
3901
- C(!l), T && b(!1);
3902
- }, re = fe(() => {
3903
- if (!B.trim()) return [];
3904
- const i = B.toLowerCase();
3905
- return ta.filter(
3906
- (u) => u.title.toLowerCase().startsWith(i)
4314
+ }, Se = () => {
4315
+ g(!D), S && F(!1);
4316
+ }, A = Ae(() => {
4317
+ if (!z.trim()) return [];
4318
+ const s = z.toLowerCase();
4319
+ return Ca.filter(
4320
+ (m) => m.title.toLowerCase().startsWith(s)
3907
4321
  );
3908
- }, [B]), pe = (i) => {
3909
- d && d(i), C(!1), Y("");
4322
+ }, [z]), ae = (s) => {
4323
+ c && c(s), g(!1), ie("");
3910
4324
  };
3911
- return /* @__PURE__ */ r("header", { className: s.header, "data-open": T ? "true" : "false", "data-color": e, "data-button-style": L, "data-variant": n, children: [
3912
- M && /* @__PURE__ */ t("div", { className: `${s.headerExtension}${j === "tinted" ? ` ${s.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": j, children: /* @__PURE__ */ r("div", { className: s.extensionContentWrapper, children: [
3913
- I && /* @__PURE__ */ t("div", { className: s.extensionContent, children: /* @__PURE__ */ t(
3914
- Ae,
4325
+ return /* @__PURE__ */ r("header", { className: i.header, "data-open": S ? "true" : "false", "data-color": e, "data-variant": n, children: [
4326
+ P && /* @__PURE__ */ t("div", { className: `${i.headerExtension}${Y === "tinted" ? ` ${i.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": Y, children: /* @__PURE__ */ r("div", { className: i.extensionContentWrapper, children: [
4327
+ E && /* @__PURE__ */ t("div", { className: i.extensionContent, children: /* @__PURE__ */ t(
4328
+ Re,
3915
4329
  {
3916
4330
  "data-size": "sm",
3917
- checked: y === "dark",
3918
- onChange: c,
3919
- label: v("header.darkMode"),
4331
+ checked: T === "dark",
4332
+ onChange: re,
4333
+ label: _("header.darkMode"),
3920
4334
  color: "neutral",
3921
4335
  "data-color-scheme": "light"
3922
4336
  }
3923
4337
  ) }),
3924
- I && F && /* @__PURE__ */ t("div", { className: s.extensionDivider }),
3925
- F && /* @__PURE__ */ r("div", { className: s.languageSwitch, children: [
3926
- /* @__PURE__ */ t("span", { className: s.languageLabel, children: v("header.language") }),
3927
- /* @__PURE__ */ r(U.TriggerContext, { children: [
4338
+ E && q && /* @__PURE__ */ t("div", { className: i.extensionDivider }),
4339
+ q && /* @__PURE__ */ r("div", { className: i.languageSwitch, children: [
4340
+ /* @__PURE__ */ t("span", { className: i.languageLabel, children: _("header.language") }),
4341
+ /* @__PURE__ */ r(oe.TriggerContext, { children: [
3928
4342
  /* @__PURE__ */ r(
3929
- U.Trigger,
4343
+ oe.Trigger,
3930
4344
  {
3931
- className: s.languageLink,
3932
- "aria-label": v("header.selectLanguage"),
4345
+ className: i.languageLink,
4346
+ "aria-label": _("header.selectLanguage"),
3933
4347
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
3934
4348
  children: [
3935
- Q,
4349
+ C,
3936
4350
  " ",
3937
- /* @__PURE__ */ t(Be, { "aria-hidden": !0 })
4351
+ /* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
3938
4352
  ]
3939
4353
  }
3940
4354
  ),
3941
4355
  /* @__PURE__ */ t(
3942
- U,
4356
+ oe,
3943
4357
  {
3944
- "data-color-scheme": y,
4358
+ "data-color-scheme": T,
3945
4359
  placement: "bottom-end",
3946
- children: /* @__PURE__ */ r(U.List, { children: [
3947
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => le("NO"), children: "Norsk (NO)" }) }),
3948
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => le("EN"), children: "English (EN)" }) })
4360
+ children: /* @__PURE__ */ r(oe.List, { children: [
4361
+ /* @__PURE__ */ t(oe.Item, { children: /* @__PURE__ */ t(oe.Button, { onClick: () => j("NO"), children: "Norsk (NO)" }) }),
4362
+ /* @__PURE__ */ t(oe.Item, { children: /* @__PURE__ */ t(oe.Button, { onClick: () => j("EN"), children: "English (EN)" }) })
3949
4363
  ] })
3950
4364
  }
3951
4365
  )
3952
4366
  ] })
3953
4367
  ] })
3954
4368
  ] }) }),
3955
- /* @__PURE__ */ r("div", { className: s.headerInner, children: [
3956
- /* @__PURE__ */ r("div", { className: s.logoWrapper, children: [
4369
+ /* @__PURE__ */ r("div", { className: i.headerInner, children: [
4370
+ /* @__PURE__ */ r("div", { className: i.logoWrapper, children: [
3957
4371
  /* @__PURE__ */ t(
3958
- te,
4372
+ pe,
3959
4373
  {
3960
4374
  href: "/",
3961
- className: `${s.logo} ${s.primaryLogo}`,
3962
- "aria-label": v("header.homeAriaLabel"),
3963
- onClick: w,
3964
- children: /* @__PURE__ */ t(ge, {})
4375
+ className: `${i.logo} ${i.primaryLogo}`,
4376
+ "aria-label": _("header.homeAriaLabel"),
4377
+ onClick: ge,
4378
+ children: /* @__PURE__ */ t(le, {})
3965
4379
  }
3966
4380
  ),
3967
- /* @__PURE__ */ t("div", { className: s.secondaryLogoWrapper, children: N && p ? /* @__PURE__ */ t(
4381
+ /* @__PURE__ */ t("div", { className: i.secondaryLogoWrapper, children: G && p ? /* @__PURE__ */ t(
3968
4382
  "img",
3969
4383
  {
3970
- src: y === "dark" && K ? K : p,
3971
- alt: X,
3972
- className: s.secondaryLogo
4384
+ src: T === "dark" && Q ? Q : p,
4385
+ alt: K,
4386
+ className: i.secondaryLogo
3973
4387
  }
3974
- ) : N ? /* @__PURE__ */ t("div", { className: s.slotComponent, children: /* @__PURE__ */ t("div", { className: s.slotContainer, children: /* @__PURE__ */ t("p", { className: s.slotText, children: "SLOT" }) }) }) : null })
4388
+ ) : G ? /* @__PURE__ */ t("div", { className: i.slotComponent, children: /* @__PURE__ */ t("div", { className: i.slotContainer, children: /* @__PURE__ */ t("p", { className: i.slotText, children: "SLOT" }) }) }) : null })
3975
4389
  ] }),
3976
- q && A && A.length > 0 && !Z && /* @__PURE__ */ t("nav", { className: s.navItems, children: A.map((i, u) => /* @__PURE__ */ t(
3977
- te,
4390
+ w && N && N.length > 0 && !u && /* @__PURE__ */ t("nav", { className: i.navItems, children: N.map((s, m) => /* @__PURE__ */ t(
4391
+ pe,
3978
4392
  {
3979
- href: i.href,
3980
- className: s.navLink,
3981
- onClick: (x) => {
3982
- d && (x.preventDefault(), d(i.href));
4393
+ href: s.href,
4394
+ className: i.navLink,
4395
+ onClick: (b) => {
4396
+ c && (b.preventDefault(), c(s.href));
3983
4397
  },
3984
- children: i.label
4398
+ children: s.label
3985
4399
  },
3986
- u
4400
+ m
3987
4401
  )) }),
3988
- /* @__PURE__ */ r("div", { className: s.actions, children: [
3989
- D && /* @__PURE__ */ r(
3990
- ce,
4402
+ /* @__PURE__ */ r("div", { className: i.actions, children: [
4403
+ B && /* @__PURE__ */ r(
4404
+ fe,
3991
4405
  {
3992
4406
  variant: "primary",
3993
4407
  "data-color": "main",
3994
4408
  "data-size": "md",
3995
- className: s.ctaButton,
3996
- onClick: _,
4409
+ className: i.ctaButton,
4410
+ onClick: L,
3997
4411
  children: [
3998
- R,
3999
- /* @__PURE__ */ t("span", { className: R ? s.buttonText : void 0, children: S || v("header.supportUs") })
4412
+ J,
4413
+ /* @__PURE__ */ t("span", { className: J ? i.buttonText : void 0, children: I || _("header.supportUs") })
4000
4414
  ]
4001
4415
  }
4002
4416
  ),
4003
- !M && V && /* @__PURE__ */ t("div", { className: s.themeToggle, children: /* @__PURE__ */ t(
4004
- Ae,
4417
+ !P && R && /* @__PURE__ */ t("div", { className: i.themeToggle, children: /* @__PURE__ */ t(
4418
+ Re,
4005
4419
  {
4006
- checked: y === "dark",
4007
- onChange: c,
4008
- "aria-label": v("header.toggleTheme")
4420
+ checked: T === "dark",
4421
+ onChange: re,
4422
+ "aria-label": _("header.toggleTheme")
4009
4423
  }
4010
4424
  ) }),
4011
- f && (() => {
4012
- const i = G ?? "Frodo Baggins", u = ne ?? (G ? na(G) : "FB"), x = !!J;
4425
+ y && (() => {
4426
+ const s = $ ?? "Frodo Baggins", m = d ?? ($ ? wa($) : "FB"), b = !!v;
4013
4427
  return /* @__PURE__ */ r(
4014
4428
  "div",
4015
4429
  {
4016
- className: s.userInfo,
4017
- onClick: J,
4018
- role: x ? "button" : void 0,
4019
- tabIndex: x ? 0 : void 0,
4020
- onKeyDown: x ? (ae) => {
4021
- (ae.key === "Enter" || ae.key === " ") && (ae.preventDefault(), J == null || J());
4430
+ className: i.userInfo,
4431
+ onClick: v,
4432
+ role: b ? "button" : void 0,
4433
+ tabIndex: b ? 0 : void 0,
4434
+ onKeyDown: b ? (V) => {
4435
+ (V.key === "Enter" || V.key === " ") && (V.preventDefault(), v == null || v());
4022
4436
  } : void 0,
4023
- style: x ? { cursor: "pointer" } : void 0,
4437
+ style: b ? { cursor: "pointer" } : void 0,
4024
4438
  children: [
4025
- /* @__PURE__ */ t(xe, { "data-size": "md", className: s.userName, children: i }),
4439
+ /* @__PURE__ */ t(Ne, { "data-size": "md", className: i.userName, children: s }),
4026
4440
  /* @__PURE__ */ t(
4027
- Ke,
4441
+ at,
4028
4442
  {
4029
- "aria-label": i,
4443
+ "aria-label": s,
4030
4444
  "data-color": "main",
4031
4445
  variant: "circle",
4032
- initials: H ? void 0 : u,
4033
- children: H ? /* @__PURE__ */ t(
4446
+ initials: l ? void 0 : m,
4447
+ children: l ? /* @__PURE__ */ t(
4034
4448
  "img",
4035
4449
  {
4036
- src: H,
4450
+ src: l,
4037
4451
  alt: "",
4038
4452
  style: { width: "100%", height: "100%", objectFit: "cover" }
4039
4453
  }
@@ -4044,174 +4458,173 @@ const Li = ({
4044
4458
  }
4045
4459
  );
4046
4460
  })(),
4047
- k && /* @__PURE__ */ r("a", { href: "#", className: s.loginLink, children: [
4048
- /* @__PURE__ */ t(xe, { "data-size": "md", className: s.loginText, children: v("header.login") }),
4049
- /* @__PURE__ */ t("div", { className: s.underline })
4461
+ x && /* @__PURE__ */ r("a", { href: "#", className: i.loginLink, children: [
4462
+ /* @__PURE__ */ t(Ne, { "data-size": "md", className: i.loginText, children: _("header.login") }),
4463
+ /* @__PURE__ */ t("div", { className: i.underline })
4050
4464
  ] }),
4051
- g && /* @__PURE__ */ t("div", { className: s.searchButtonWrapper, children: /* @__PURE__ */ r(
4052
- ce,
4465
+ f && /* @__PURE__ */ t("div", { className: i.searchButtonWrapper, children: /* @__PURE__ */ r(
4466
+ fe,
4053
4467
  {
4468
+ ref: ee,
4054
4469
  variant: "secondary",
4055
- shape: L === "soft" ? "pill" : void 0,
4056
- "data-color": L === "soft" ? "neutral" : "main",
4470
+ "data-color": "main",
4057
4471
  "data-size": "md",
4058
- onClick: oe,
4059
- "aria-expanded": l,
4060
- "aria-label": v(l ? "header.closeSearch" : "header.openSearch"),
4472
+ onClick: Se,
4473
+ "aria-expanded": D,
4474
+ "aria-label": _(D ? "header.closeSearch" : "header.openSearch"),
4061
4475
  children: [
4062
- l ? /* @__PURE__ */ t(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ t(Ee, { "aria-hidden": !0 }),
4063
- /* @__PURE__ */ t("span", { className: s.buttonText, children: v(l ? "header.close" : "header.search") })
4476
+ D ? /* @__PURE__ */ t(qe, { "aria-hidden": !0 }) : /* @__PURE__ */ t(Ye, { "aria-hidden": !0 }),
4477
+ /* @__PURE__ */ t("span", { className: i.buttonText, children: _(D ? "header.close" : "header.search") })
4064
4478
  ]
4065
4479
  }
4066
4480
  ) }),
4067
- (m || Z) && /* @__PURE__ */ t(
4068
- ce,
4481
+ (H || u) && /* @__PURE__ */ r(
4482
+ fe,
4069
4483
  {
4070
- variant: L === "soft" ? "soft" : "primary",
4071
- shape: L === "soft" ? "pill" : void 0,
4484
+ ref: se,
4485
+ variant: "primary",
4072
4486
  "data-color": "main",
4073
4487
  "data-size": "md",
4074
- onClick: $,
4075
- "aria-expanded": T,
4076
- "aria-label": v(T ? "header.closeMenu" : "header.openMenu"),
4077
- className: s.menuButton,
4078
- children: L === "soft" ? /* @__PURE__ */ r(Se, { children: [
4079
- /* @__PURE__ */ t("span", { className: s.buttonText, children: v(T ? "header.close" : "header.menu") }),
4080
- T ? /* @__PURE__ */ t(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ t($e, { "aria-hidden": !0 })
4081
- ] }) : /* @__PURE__ */ r(Se, { children: [
4082
- T ? /* @__PURE__ */ t(_e, { "aria-hidden": !0 }) : /* @__PURE__ */ t($e, { "aria-hidden": !0 }),
4083
- /* @__PURE__ */ t("span", { className: s.buttonText, children: v(T ? "header.close" : "header.menu") })
4084
- ] })
4488
+ onClick: xe,
4489
+ "aria-expanded": S,
4490
+ "aria-label": _(S ? "header.closeMenu" : "header.openMenu"),
4491
+ className: i.menuButton,
4492
+ children: [
4493
+ S ? /* @__PURE__ */ t(qe, { "aria-hidden": !0 }) : /* @__PURE__ */ t(Dn, { "aria-hidden": !0 }),
4494
+ /* @__PURE__ */ t("span", { className: i.buttonText, children: _(S ? "header.close" : "header.menu") })
4495
+ ]
4085
4496
  }
4086
4497
  )
4087
4498
  ] })
4088
4499
  ] }),
4089
- T && /* @__PURE__ */ t("div", { className: s.menuOverlay, children: /* @__PURE__ */ r("div", { className: s.menuContent, children: [
4090
- /* @__PURE__ */ t("div", { className: s.menuLeftColumn }),
4091
- /* @__PURE__ */ r("div", { className: s.menuRightColumn, children: [
4092
- Z && (F || I) && /* @__PURE__ */ r("div", { className: s.menuUtilities, children: [
4093
- F && /* @__PURE__ */ r("div", { className: s.languageSwitch, children: [
4094
- /* @__PURE__ */ t("span", { className: s.languageLabel, children: v("header.language") }),
4095
- /* @__PURE__ */ r(U.TriggerContext, { children: [
4500
+ S && /* @__PURE__ */ t("div", { className: i.menuOverlay, ref: te, children: /* @__PURE__ */ r("div", { className: i.menuContent, children: [
4501
+ /* @__PURE__ */ t("div", { className: i.menuLeftColumn }),
4502
+ /* @__PURE__ */ r("div", { className: i.menuRightColumn, children: [
4503
+ u && (q || E) && /* @__PURE__ */ r("div", { className: i.menuUtilities, children: [
4504
+ q && /* @__PURE__ */ r("div", { className: i.languageSwitch, children: [
4505
+ /* @__PURE__ */ t("span", { className: i.languageLabel, children: _("header.language") }),
4506
+ /* @__PURE__ */ r(oe.TriggerContext, { children: [
4096
4507
  /* @__PURE__ */ r(
4097
- U.Trigger,
4508
+ oe.Trigger,
4098
4509
  {
4099
- className: s.languageLink,
4100
- "aria-label": v("header.selectLanguage"),
4510
+ className: i.languageLink,
4511
+ "aria-label": _("header.selectLanguage"),
4101
4512
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4102
4513
  children: [
4103
- Q,
4514
+ C,
4104
4515
  " ",
4105
- /* @__PURE__ */ t(Be, { "aria-hidden": !0 })
4516
+ /* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
4106
4517
  ]
4107
4518
  }
4108
4519
  ),
4109
4520
  /* @__PURE__ */ t(
4110
- U,
4521
+ oe,
4111
4522
  {
4112
- "data-color-scheme": y,
4523
+ "data-color-scheme": T,
4113
4524
  placement: "bottom-start",
4114
- children: /* @__PURE__ */ r(U.List, { children: [
4115
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => le("NO"), children: "Norsk (NO)" }) }),
4116
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => le("EN"), children: "English (EN)" }) })
4525
+ children: /* @__PURE__ */ r(oe.List, { children: [
4526
+ /* @__PURE__ */ t(oe.Item, { children: /* @__PURE__ */ t(oe.Button, { onClick: () => j("NO"), children: "Norsk (NO)" }) }),
4527
+ /* @__PURE__ */ t(oe.Item, { children: /* @__PURE__ */ t(oe.Button, { onClick: () => j("EN"), children: "English (EN)" }) })
4117
4528
  ] })
4118
4529
  }
4119
4530
  )
4120
4531
  ] })
4121
4532
  ] }),
4122
- I && /* @__PURE__ */ t("div", { className: s.extensionContent, children: /* @__PURE__ */ t(
4123
- Ae,
4533
+ E && /* @__PURE__ */ t("div", { className: i.extensionContent, children: /* @__PURE__ */ t(
4534
+ Re,
4124
4535
  {
4125
4536
  "data-size": "sm",
4126
- checked: y === "dark",
4127
- onChange: c,
4128
- label: v("header.darkMode"),
4537
+ checked: T === "dark",
4538
+ onChange: re,
4539
+ label: _("header.darkMode"),
4129
4540
  color: "neutral",
4130
4541
  "data-color-scheme": "light"
4131
4542
  }
4132
4543
  ) })
4133
4544
  ] }),
4134
- /* @__PURE__ */ r("div", { className: s.slotContent, children: [
4135
- h,
4136
- Z && q && A && A.length > 0 && /* @__PURE__ */ t("nav", { className: s.navList, children: A.map((i, u) => /* @__PURE__ */ t(
4137
- te,
4545
+ /* @__PURE__ */ r("div", { className: i.slotContent, children: [
4546
+ k,
4547
+ u && w && N && N.length > 0 && /* @__PURE__ */ t("nav", { className: i.navList, children: N.map((s, m) => /* @__PURE__ */ t(
4548
+ pe,
4138
4549
  {
4139
- href: i.href,
4140
- className: s.navLink,
4141
- onClick: (x) => {
4142
- d && (x.preventDefault(), d(i.href));
4550
+ href: s.href,
4551
+ className: i.navLink,
4552
+ onClick: (b) => {
4553
+ c && (b.preventDefault(), c(s.href));
4143
4554
  },
4144
- children: i.label
4555
+ children: s.label
4145
4556
  },
4146
- u
4557
+ m
4147
4558
  )) })
4148
4559
  ] }),
4149
- Z && /* @__PURE__ */ t("div", { className: s.menuBrand, children: /* @__PURE__ */ t(ge, {}) })
4560
+ u && /* @__PURE__ */ t("div", { className: i.menuBrand, children: /* @__PURE__ */ t(le, {}) })
4150
4561
  ] })
4151
4562
  ] }) }),
4152
- l && /* @__PURE__ */ t("div", { className: s.searchOverlay, children: /* @__PURE__ */ r("div", { className: s.searchContent, children: [
4153
- /* @__PURE__ */ r(Ce, { children: [
4563
+ D && /* @__PURE__ */ t("div", { className: i.searchOverlay, children: /* @__PURE__ */ r("div", { className: i.searchContent, children: [
4564
+ /* @__PURE__ */ r(Pe, { children: [
4154
4565
  /* @__PURE__ */ t(
4155
- Ce.Input,
4566
+ Pe.Input,
4156
4567
  {
4157
- "aria-label": v("header.search"),
4158
- placeholder: v("header.searchPlaceholder"),
4159
- value: B,
4160
- onChange: (i) => Y(i.target.value)
4568
+ ref: ne,
4569
+ "aria-label": _("header.search"),
4570
+ placeholder: _("header.searchPlaceholder"),
4571
+ value: z,
4572
+ onChange: (s) => ie(s.target.value)
4161
4573
  }
4162
4574
  ),
4163
- /* @__PURE__ */ t(Ce.Button, { "aria-label": v("header.search") }),
4164
- /* @__PURE__ */ t(Ce.ClearButton, { onClick: () => Y(""), "aria-label": v("header.clearSearch") })
4575
+ /* @__PURE__ */ t(Pe.Button, { "aria-label": _("header.search") }),
4576
+ /* @__PURE__ */ t(Pe.ClearButton, { onClick: () => ie(""), "aria-label": _("header.clearSearch") })
4165
4577
  ] }),
4166
- B && /* @__PURE__ */ t("div", { className: s.searchResults, children: re.length > 0 ? /* @__PURE__ */ r("div", { className: s.suggestionsSection, children: [
4167
- /* @__PURE__ */ t("h3", { className: s.suggestionsTitle, children: v("header.suggestions") }),
4168
- /* @__PURE__ */ t("ul", { className: s.resultList, children: re.slice(0, 5).map((i) => /* @__PURE__ */ t("li", { className: s.resultItem, children: /* @__PURE__ */ r(
4578
+ z && /* @__PURE__ */ t("div", { role: "status", className: "ds-sr-only", children: A.length > 0 ? _("header.suggestionCount").replace("{count}", String(Math.min(A.length, 5))) : `${_("header.noResults")} ${z}` }),
4579
+ z && /* @__PURE__ */ t("div", { className: i.searchResults, children: A.length > 0 ? /* @__PURE__ */ r("div", { className: i.suggestionsSection, children: [
4580
+ /* @__PURE__ */ t("h3", { className: i.suggestionsTitle, children: _("header.suggestions") }),
4581
+ /* @__PURE__ */ t("ul", { className: i.resultList, children: A.slice(0, 5).map((s) => /* @__PURE__ */ t("li", { className: i.resultItem, children: /* @__PURE__ */ r(
4169
4582
  "button",
4170
4583
  {
4171
- className: s.resultLink,
4172
- onClick: () => pe(i.path),
4584
+ className: i.resultLink,
4585
+ onClick: () => ae(s.path),
4173
4586
  children: [
4174
- /* @__PURE__ */ t("span", { className: s.suggestionIcon, children: /* @__PURE__ */ t(Ee, { "aria-hidden": !0 }) }),
4175
- /* @__PURE__ */ t("span", { className: s.suggestionText, children: (() => {
4176
- const u = i.title.toLowerCase().indexOf(B.toLowerCase());
4177
- if (u === -1) return /* @__PURE__ */ t("span", { className: s.remainingText, children: i.title });
4178
- const x = i.title.slice(0, u), ae = i.title.slice(u, u + B.length), Xe = i.title.slice(u + B.length);
4179
- return /* @__PURE__ */ r(Se, { children: [
4180
- /* @__PURE__ */ t("span", { className: s.remainingText, children: x }),
4181
- /* @__PURE__ */ t("span", { className: s.highlightedText, children: ae }),
4182
- /* @__PURE__ */ t("span", { className: s.remainingText, children: Xe })
4587
+ /* @__PURE__ */ t("span", { className: i.suggestionIcon, children: /* @__PURE__ */ t(Ye, { "aria-hidden": !0 }) }),
4588
+ /* @__PURE__ */ t("span", { className: i.suggestionText, children: (() => {
4589
+ const m = s.title.toLowerCase().indexOf(z.toLowerCase());
4590
+ if (m === -1) return /* @__PURE__ */ t("span", { className: i.remainingText, children: s.title });
4591
+ const b = s.title.slice(0, m), V = s.title.slice(m, m + z.length), ke = s.title.slice(m + z.length);
4592
+ return /* @__PURE__ */ r(tt, { children: [
4593
+ /* @__PURE__ */ t("span", { className: i.remainingText, children: b }),
4594
+ /* @__PURE__ */ t("span", { className: i.highlightedText, children: V }),
4595
+ /* @__PURE__ */ t("span", { className: i.remainingText, children: ke })
4183
4596
  ] });
4184
4597
  })() })
4185
4598
  ]
4186
4599
  }
4187
- ) }, i.id)) }),
4188
- re.length > 5 && /* @__PURE__ */ r(
4189
- te,
4600
+ ) }, s.id)) }),
4601
+ A.length > 5 && /* @__PURE__ */ r(
4602
+ pe,
4190
4603
  {
4191
4604
  href: "#",
4192
4605
  "data-color": "neutral",
4193
- className: s.viewAllLink,
4194
- onClick: (i) => {
4195
- i.preventDefault(), d && d(`search/${B}`), C(!1), Y("");
4606
+ className: i.viewAllLink,
4607
+ onClick: (s) => {
4608
+ s.preventDefault(), c && c(`search/${encodeURIComponent(z)}`), g(!1), ie("");
4196
4609
  },
4197
4610
  children: [
4198
- v("header.viewAll"),
4611
+ _("header.viewAll"),
4199
4612
  " (",
4200
- re.length,
4613
+ A.length,
4201
4614
  ")"
4202
4615
  ]
4203
4616
  }
4204
4617
  )
4205
- ] }) : /* @__PURE__ */ t("div", { className: s.noResults, children: /* @__PURE__ */ r(xe, { children: [
4206
- v("header.noResults"),
4618
+ ] }) : /* @__PURE__ */ t("div", { className: i.noResults, children: /* @__PURE__ */ r(Ne, { children: [
4619
+ _("header.noResults"),
4207
4620
  ' "',
4208
- B,
4621
+ z,
4209
4622
  '"'
4210
4623
  ] }) }) })
4211
4624
  ] }) })
4212
4625
  ] });
4213
4626
  };
4214
- function oa(n) {
4627
+ function Sa(n) {
4215
4628
  const e = n;
4216
4629
  return `
4217
4630
  .${e.header} {
@@ -4272,10 +4685,10 @@ function oa(n) {
4272
4685
  align-items: center;
4273
4686
  gap: var(--ds-size-4);
4274
4687
  }
4275
- .${e.extensionContent} .ds-label { font-size: var(--ds-font-size-md) !important; }
4688
+ .${e.extensionContent} .ds-label { font-size: var(--ds-font-size-3) !important; }
4276
4689
  .${e.extensionDivider} { width: 1px; height: 18px; background-color: rgba(247,233,232,1); }
4277
4690
  .${e.languageSwitch} { display: flex; align-items: center; gap: var(--ds-size-2); }
4278
- .${e.languageLabel} { font-size: var(--ds-font-size-md); color: #ECECEC; }
4691
+ .${e.languageLabel} { font-size: var(--ds-font-size-3); color: #ECECEC; }
4279
4692
  .${e.languageLink} { color: white; text-decoration: none; display: flex; align-items: center; gap: 4px; }
4280
4693
  .${e.header}[data-color="primary"] .${e.languageLabel} { color: #ECECEC; }
4281
4694
  .${e.header}[data-color="neutral"] .${e.languageLabel} { color: var(--ds-color-neutral-text-default); }
@@ -4293,27 +4706,19 @@ function oa(n) {
4293
4706
  .${e.secondaryLogoWrapper} { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 var(--ds-size-6); background: var(--ds-color-neutral-background-default); }
4294
4707
  .${e.secondaryLogo} { height: 24px; width: auto; display: block; }
4295
4708
  .${e.navItems} { display: flex; gap: 40px; align-items: center; margin-left: 24px; flex-grow: 1; justify-content: center; }
4296
- .${e.navLink} { color: var(--ds-color-primary-color-red-text-default); font-family: inherit; font-size: var(--ds-font-size-md); text-decoration: none; font-weight: var(--ds-font-weight-regular); letter-spacing: 0.09px; }
4709
+ .${e.navLink} { color: var(--ds-color-primary-color-red-text-default); font-family: inherit; font-size: var(--ds-font-size-3); text-decoration: none; font-weight: var(--ds-font-weight-regular); letter-spacing: 0.09px; }
4297
4710
  .${e.navLink}:hover { text-decoration: underline; }
4298
4711
  .${e.actions} { display: flex; align-items: center; gap: var(--ds-size-6); flex-shrink: 0; margin-left: auto; }
4299
4712
  .${e.ctaButton} { display: flex; align-items: center; }
4300
4713
  .${e.themeToggle} { display: flex; align-items: center; }
4301
4714
  .${e.userInfo} { display: flex; align-items: center; gap: var(--ds-size-3); }
4302
- .${e.userName} { display: block; font-family: inherit; font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-default); }
4303
- .${e.loginLink} { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ds-color-main-text-subtle); gap: 2px; }
4304
- .${e.loginText} { font-family: inherit; font-size: var(--ds-font-size-md); font-weight: var(--ds-font-weight-regular); line-height: 1.5; }
4305
- .${e.underline} { width: 100%; height: 1px; background-color: var(--ds-color-main-border-strong); }
4715
+ .${e.userName} { display: block; font-family: inherit; font-size: var(--ds-font-size-3); color: var(--ds-color-neutral-text-default); }
4716
+ .${e.loginLink} { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ds-color-primary-color-red-text-subtle); gap: 2px; }
4717
+ .${e.loginText} { font-family: inherit; font-size: var(--ds-font-size-3); font-weight: var(--ds-font-weight-regular); line-height: 1.5; }
4718
+ .${e.underline} { width: 100%; height: 1px; background-color: var(--ds-color-primary-color-red-border-strong); }
4306
4719
  .${e.searchButtonWrapper} { display: flex; }
4307
4720
  .${e.buttonText} { display: inline-block; margin-left: var(--ds-size-2); }
4308
4721
  .${e.menuButton} { display: flex; align-items: center; }
4309
- .${e.header}[data-button-style="soft"] .${e.actions} { gap: var(--ds-size-2); }
4310
- .${e.header}[data-button-style="soft"] .${e.searchButtonWrapper} .ds-button,
4311
- .${e.header}[data-button-style="soft"] .${e.menuButton} {
4312
- --dsc-button-padding: 0 var(--ds-size-4);
4313
- height: var(--ds-size-12);
4314
- }
4315
- .${e.header}[data-button-style="soft"] .${e.searchButtonWrapper} .${e.buttonText},
4316
- .${e.header}[data-button-style="soft"] .${e.menuButton} .${e.buttonText} { margin-left: 0; }
4317
4722
  .${e.menuOverlay}, .${e.searchOverlay} {
4318
4723
  position: absolute; top: 100%; left: 0; width: 100%;
4319
4724
  background-color: var(--ds-color-neutral-background-default);
@@ -4330,12 +4735,12 @@ function oa(n) {
4330
4735
  .${e.menuContent} { max-width: 1364px; margin: 0 auto; display: flex; flex-direction: row; align-items: stretch; box-sizing: border-box; }
4331
4736
  .${e.menuLeftColumn} { width: calc(217px + var(--ds-size-6)); flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: var(--ds-size-6); }
4332
4737
  .${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
4333
- .${e.slotContent} { width: 100%; padding: var(--ds-size-10) 0; text-align: left; color: var(--ds-color-neutral-text-subtle); font-size: var(--ds-font-size-md); border-radius: var(--ds-border-radius-md); display: flex; flex-direction: column; gap: var(--ds-size-4); align-items: flex-start; }
4738
+ .${e.slotContent} { width: 100%; padding: var(--ds-size-10) 0; text-align: left; color: var(--ds-color-neutral-text-subtle); font-size: var(--ds-font-size-3); border-radius: var(--ds-border-radius-md); display: flex; flex-direction: column; gap: var(--ds-size-4); align-items: flex-start; }
4334
4739
  .${e.navList} { display: flex; flex-direction: column; gap: var(--ds-size-3); align-items: flex-start; }
4335
4740
  .${e.menuBrand} { display: none; }
4336
4741
  .${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
4337
4742
  .${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
4338
- .${e.suggestionsTitle} { font-family: inherit; font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-subtle); font-weight: var(--ds-font-weight-regular); margin: 0; letter-spacing: 0.09px; }
4743
+ .${e.suggestionsTitle} { font-family: inherit; font-size: var(--ds-font-size-3); color: var(--ds-color-neutral-text-subtle); font-weight: var(--ds-font-weight-regular); margin: 0; letter-spacing: 0.09px; }
4339
4744
  .${e.searchResults} { margin-top: var(--ds-size-4); max-height: 400px; overflow-y: auto; }
4340
4745
  .${e.resultList} { list-style: none; padding: 0; margin: 0; }
4341
4746
  .${e.resultItem} { border-bottom: none; }
@@ -4345,10 +4750,10 @@ function oa(n) {
4345
4750
  text-align: left; cursor: pointer; gap: var(--ds-size-4); text-decoration: none;
4346
4751
  }
4347
4752
  .${e.suggestionIcon} { font-size: 20px; color: var(--ds-color-neutral-text-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
4348
- .${e.suggestionText} { font-family: inherit; font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-default); line-height: 1.5; }
4753
+ .${e.suggestionText} { font-family: inherit; font-size: var(--ds-font-size-3); color: var(--ds-color-neutral-text-default); line-height: 1.5; }
4349
4754
  .${e.highlightedText} { color: var(--ds-color-primary-color-red-text-default); font-weight: var(--ds-font-weight-medium); }
4350
4755
  .${e.remainingText} { color: var(--ds-color-neutral-border-subtle); }
4351
- .${e.viewAllLink} { display: block; padding: var(--ds-size-3); text-align: left; font-size: var(--ds-font-size-sm); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-neutral-text-default); text-decoration: none; }
4756
+ .${e.viewAllLink} { display: block; padding: var(--ds-size-3); text-align: left; font-size: var(--ds-font-size-2); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-neutral-text-default); text-decoration: none; }
4352
4757
  .${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
4353
4758
  @media (max-width: 850px) {
4354
4759
  .${e.header} { z-index: 10000; position: relative; }
@@ -4384,117 +4789,115 @@ function oa(n) {
4384
4789
  }
4385
4790
  `;
4386
4791
  }
4387
- const ra = "_footer_12vvu_1", aa = "_mainSection_12vvu_7", sa = "_mainContainer_12vvu_25", ia = "_crossCornerTopRight_12vvu_35", la = "_crossCornerBottomLeft_12vvu_42", da = "_contentRow_12vvu_50", ca = "_newsletterSection_12vvu_60", pa = "_newsletterDescription_12vvu_67", ma = "_newsletterForm_12vvu_76", ga = "_newsletterInputGroup_12vvu_82", ua = "_newsletterInput_12vvu_82", ha = "_consentText_12vvu_93", fa = "_linksSection_12vvu_103", ka = "_linksColumn_12vvu_109", va = "_linksTitle_12vvu_116", ba = "_linksList_12vvu_127", ya = "_footerLink_12vvu_136", xa = "_divider_12vvu_158", Ta = "_contactSection_12vvu_166", Ca = "_contactColumn_12vvu_173", wa = "_contactTitle_12vvu_181", Sa = "_contactContent_12vvu_190", Ia = "_copyrightSection_12vvu_204", _a = "_copyrightText_12vvu_209", Da = "_whiteSection_12vvu_219", La = "_whiteContainer_12vvu_224", Aa = "_whiteContent_12vvu_232", Na = "_logo_12vvu_240", Ma = "_redCrossLogo_12vvu_254", ja = "_slotLarge_12vvu_260", Fa = "_contentRowContact_12vvu_315", Ba = "_socialLinksSection_12vvu_325", Ea = "_socialLinksTitle_12vvu_332", $a = "_socialLinksList_12vvu_343", Pa = "_socialLink_12vvu_325", za = "_socialLinkIcon_12vvu_376", Ra = "_contactPersonsSection_12vvu_391", Ga = "_contactPersonsTitle_12vvu_398", Wa = "_contactPersonsGrid_12vvu_409", Ha = "_contactPersonCard_12vvu_415", Ua = "_contactPersonName_12vvu_422", Va = "_contactPersonRole_12vvu_431", Oa = "_contactPersonDetails_12vvu_440", Ka = "_contactPersonLabel_12vvu_447", qa = "_contactPersonEmail_12vvu_451", Ya = "_contactPersonPhone_12vvu_452", Za = "_contactPersonAddress_12vvu_453", Xa = "_bottomRowContact_12vvu_474", Ja = "_legalLinksRow_12vvu_483", Qa = "_legalLink_12vvu_483", es = "_dpMain_12vvu_558", ts = "_dpContainer_12vvu_567", ns = "_dpColumns_12vvu_575", os = "_dpColumn_12vvu_575", rs = "_dpColTitle_12vvu_588", as = "_dpList_12vvu_596", ss = "_dpLink_12vvu_605", is = "_dpDivider_12vvu_619", ls = "_dpMeta_12vvu_627", ds = "_dpMetaCol_12vvu_633", cs = "_dpMetaTitle_12vvu_641", ps = "_dpMetaText_12vvu_649", ms = "_dpBottom_12vvu_657", gs = "_dpLegal_12vvu_665", us = "_dpLegalLink_12vvu_674", hs = "_dpCopyright_12vvu_686", fs = "_dpLogoBox_12vvu_694", ks = "_dpLogoImg_12vvu_710", o = {
4388
- footer: ra,
4389
- mainSection: aa,
4390
- mainContainer: sa,
4391
- crossCornerTopRight: ia,
4392
- crossCornerBottomLeft: la,
4393
- contentRow: da,
4394
- newsletterSection: ca,
4395
- newsletterDescription: pa,
4396
- newsletterForm: ma,
4397
- newsletterInputGroup: ga,
4398
- newsletterInput: ua,
4399
- consentText: ha,
4400
- linksSection: fa,
4401
- linksColumn: ka,
4402
- linksTitle: va,
4403
- linksList: ba,
4404
- footerLink: ya,
4405
- divider: xa,
4406
- contactSection: Ta,
4407
- contactColumn: Ca,
4408
- contactTitle: wa,
4409
- contactContent: Sa,
4410
- copyrightSection: Ia,
4411
- copyrightText: _a,
4412
- whiteSection: Da,
4413
- whiteContainer: La,
4414
- whiteContent: Aa,
4415
- logo: Na,
4416
- redCrossLogo: Ma,
4417
- slotLarge: ja,
4418
- contentRowContact: Fa,
4419
- socialLinksSection: Ba,
4420
- socialLinksTitle: Ea,
4421
- socialLinksList: $a,
4422
- socialLink: Pa,
4423
- socialLinkIcon: za,
4424
- contactPersonsSection: Ra,
4425
- contactPersonsTitle: Ga,
4426
- contactPersonsGrid: Wa,
4427
- contactPersonCard: Ha,
4428
- contactPersonName: Ua,
4429
- contactPersonRole: Va,
4430
- contactPersonDetails: Oa,
4431
- contactPersonLabel: Ka,
4432
- contactPersonEmail: qa,
4433
- contactPersonPhone: Ya,
4434
- contactPersonAddress: Za,
4435
- bottomRowContact: Xa,
4436
- legalLinksRow: Ja,
4437
- legalLink: Qa,
4438
- dpMain: es,
4439
- dpContainer: ts,
4440
- dpColumns: ns,
4441
- dpColumn: os,
4442
- dpColTitle: rs,
4443
- dpList: as,
4444
- dpLink: ss,
4445
- dpDivider: is,
4446
- dpMeta: ls,
4447
- dpMetaCol: ds,
4448
- dpMetaTitle: cs,
4449
- dpMetaText: ps,
4450
- dpBottom: ms,
4451
- dpLegal: gs,
4452
- dpLegalLink: us,
4453
- dpCopyright: hs,
4454
- dpLogoBox: fs,
4455
- dpLogoImg: ks
4456
- }, Ai = ({
4792
+ const _a = "_footer_61pj1_1", Ia = "_mainSection_61pj1_7", La = "_mainContainer_61pj1_25", Da = "_graphicElementTopRight_61pj1_35", Ma = "_graphicElementBottomLeft_61pj1_42", ja = "_contentRow_61pj1_50", Aa = "_newsletterSection_61pj1_60", Na = "_newsletterDescription_61pj1_67", Ea = "_newsletterForm_61pj1_76", Ba = "_newsletterInputGroup_61pj1_82", Fa = "_newsletterInput_61pj1_82", Pa = "_consentText_61pj1_93", $a = "_linksSection_61pj1_103", za = "_linksColumn_61pj1_109", Ra = "_linksTitle_61pj1_116", Ga = "_linksList_61pj1_127", Ha = "_footerLink_61pj1_136", Wa = "_divider_61pj1_158", Ua = "_contactSection_61pj1_166", Va = "_contactColumn_61pj1_173", Oa = "_contactTitle_61pj1_181", Ka = "_contactContent_61pj1_190", Za = "_copyrightSection_61pj1_204", qa = "_copyrightText_61pj1_209", Ya = "_whiteSection_61pj1_219", Xa = "_whiteContainer_61pj1_224", Ja = "_whiteContent_61pj1_232", Qa = "_logo_61pj1_240", es = "_redCrossLogo_61pj1_254", ts = "_slotLarge_61pj1_260", ns = "_contentRowContact_61pj1_315", os = "_socialLinksSection_61pj1_325", rs = "_socialLinksTitle_61pj1_332", as = "_socialLinksList_61pj1_343", ss = "_socialLink_61pj1_325", is = "_socialLinkIcon_61pj1_376", ls = "_contactPersonsSection_61pj1_391", ds = "_contactPersonsTitle_61pj1_398", cs = "_contactPersonsGrid_61pj1_409", ps = "_contactPersonCard_61pj1_415", ms = "_contactPersonName_61pj1_422", gs = "_contactPersonRole_61pj1_431", us = "_contactPersonDetails_61pj1_440", hs = "_contactPersonLabel_61pj1_447", fs = "_contactPersonEmail_61pj1_451", ks = "_contactPersonPhone_61pj1_452", vs = "_contactPersonAddress_61pj1_453", bs = "_bottomRowContact_61pj1_474", ys = "_legalLinksRow_61pj1_483", xs = "_legalLink_61pj1_483", Ts = "_dpMain_61pj1_558", Cs = "_dpContainer_61pj1_567", ws = "_dpColumns_61pj1_575", Ss = "_dpColumn_61pj1_575", _s = "_dpColTitle_61pj1_588", Is = "_dpList_61pj1_596", Ls = "_dpLink_61pj1_605", Ds = "_dpDivider_61pj1_619", Ms = "_dpMeta_61pj1_627", js = "_dpMetaCol_61pj1_633", As = "_dpMetaTitle_61pj1_641", Ns = "_dpMetaText_61pj1_649", Es = "_dpBottom_61pj1_657", Bs = "_dpLegal_61pj1_665", Fs = "_dpLegalLink_61pj1_674", Ps = "_dpCopyright_61pj1_686", o = {
4793
+ footer: _a,
4794
+ mainSection: Ia,
4795
+ mainContainer: La,
4796
+ graphicElementTopRight: Da,
4797
+ graphicElementBottomLeft: Ma,
4798
+ contentRow: ja,
4799
+ newsletterSection: Aa,
4800
+ newsletterDescription: Na,
4801
+ newsletterForm: Ea,
4802
+ newsletterInputGroup: Ba,
4803
+ newsletterInput: Fa,
4804
+ consentText: Pa,
4805
+ linksSection: $a,
4806
+ linksColumn: za,
4807
+ linksTitle: Ra,
4808
+ linksList: Ga,
4809
+ footerLink: Ha,
4810
+ divider: Wa,
4811
+ contactSection: Ua,
4812
+ contactColumn: Va,
4813
+ contactTitle: Oa,
4814
+ contactContent: Ka,
4815
+ copyrightSection: Za,
4816
+ copyrightText: qa,
4817
+ whiteSection: Ya,
4818
+ whiteContainer: Xa,
4819
+ whiteContent: Ja,
4820
+ logo: Qa,
4821
+ redCrossLogo: es,
4822
+ slotLarge: ts,
4823
+ contentRowContact: ns,
4824
+ socialLinksSection: os,
4825
+ socialLinksTitle: rs,
4826
+ socialLinksList: as,
4827
+ socialLink: ss,
4828
+ socialLinkIcon: is,
4829
+ contactPersonsSection: ls,
4830
+ contactPersonsTitle: ds,
4831
+ contactPersonsGrid: cs,
4832
+ contactPersonCard: ps,
4833
+ contactPersonName: ms,
4834
+ contactPersonRole: gs,
4835
+ contactPersonDetails: us,
4836
+ contactPersonLabel: hs,
4837
+ contactPersonEmail: fs,
4838
+ contactPersonPhone: ks,
4839
+ contactPersonAddress: vs,
4840
+ bottomRowContact: bs,
4841
+ legalLinksRow: ys,
4842
+ legalLink: xs,
4843
+ dpMain: Ts,
4844
+ dpContainer: Cs,
4845
+ dpColumns: ws,
4846
+ dpColumn: Ss,
4847
+ dpColTitle: _s,
4848
+ dpList: Is,
4849
+ dpLink: Ls,
4850
+ dpDivider: Ds,
4851
+ dpMeta: Ms,
4852
+ dpMetaCol: js,
4853
+ dpMetaTitle: As,
4854
+ dpMetaText: Ns,
4855
+ dpBottom: Es,
4856
+ dpLegal: Bs,
4857
+ dpLegalLink: Fs,
4858
+ dpCopyright: Ps
4859
+ }, Xi = ({
4457
4860
  "data-color": n = "neutral",
4458
4861
  variant: e = "default",
4459
4862
  colorScheme: a,
4460
- columns: d,
4461
- showCrossCorners: h = !1,
4462
- newsletterDescription: f = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
4463
- newsletterPlaceholder: g = "Input tekst",
4464
- newsletterButtonText: k = "Meld deg på",
4465
- newsletterConsentText: D,
4466
- onNewsletterSubmit: S,
4467
- hideNewsletter: R = !1,
4468
- shortcutsLinks: _,
4469
- linksLinks: V,
4470
- shortcutsTitle: N,
4863
+ columns: c,
4864
+ showGraphicElements: k = !1,
4865
+ newsletterDescription: y = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
4866
+ newsletterPlaceholder: f = "Input tekst",
4867
+ newsletterButtonText: x = "Meld deg på",
4868
+ newsletterConsentText: B,
4869
+ onNewsletterSubmit: I,
4870
+ hideNewsletter: J = !1,
4871
+ shortcutsLinks: L,
4872
+ linksLinks: R,
4873
+ shortcutsTitle: G,
4471
4874
  linksTitle: p,
4472
- visitingAddress: K = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
4473
- organizationNumber: X = "XXX XXX XXX",
4474
- email: A = "post@redcross.no",
4475
- showPrimaryLogo: q = !0,
4476
- primaryLogoSrc: m,
4477
- primaryLogoAlt: M = "Røde Kors Logo",
4478
- whiteSectionSlot: I,
4479
- socialLinks: F = [],
4480
- contactPersons: j = [],
4481
- legalLinks: L = [],
4482
- socialLinksTitle: G,
4483
- contactPersonsTitle: ne
4875
+ visitingAddress: Q = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
4876
+ organizationNumber: K = "XXX XXX XXX",
4877
+ email: N = "post@redcross.no",
4878
+ showPrimaryLogo: w = !0,
4879
+ primaryLogoSrc: H,
4880
+ primaryLogoAlt: P = "Røde Kors Logo",
4881
+ whiteSectionSlot: E,
4882
+ socialLinks: q = [],
4883
+ contactPersons: Y = [],
4884
+ legalLinks: $ = [],
4885
+ socialLinksTitle: d,
4886
+ contactPersonsTitle: l
4484
4887
  } = {}) => {
4485
- const H = (/* @__PURE__ */ new Date()).getFullYear(), { t: J } = Te(), [T, b] = Ne.useState(""), l = (c, w) => {
4486
- const $ = J(c);
4487
- return $ === c ? w : $;
4888
+ const v = (/* @__PURE__ */ new Date()).getFullYear(), { t: S } = Be(), [F, D] = ye.useState(""), g = (u, M) => {
4889
+ const le = S(u);
4890
+ return le === u ? M : le;
4488
4891
  };
4489
- Ne.useEffect(() => {
4490
- const c = "rk-footer-inline-styles";
4491
- if (typeof document > "u" || document.getElementById(c)) return;
4492
- const w = vs(o), $ = document.createElement("style");
4493
- $.id = c, $.textContent = w, document.head.appendChild($);
4892
+ ye.useEffect(() => {
4893
+ const u = "rk-footer-inline-styles";
4894
+ if (typeof document > "u" || document.getElementById(u)) return;
4895
+ const M = $s(o), le = document.createElement("style");
4896
+ le.id = u, le.textContent = M, document.head.appendChild(le);
4494
4897
  }, []);
4495
- const C = (c) => {
4496
- c.preventDefault(), S == null || S(T);
4497
- }, B = () => /* @__PURE__ */ r(
4898
+ const se = (u) => {
4899
+ u.preventDefault(), I == null || I(F);
4900
+ }, ee = () => /* @__PURE__ */ r(
4498
4901
  "svg",
4499
4902
  {
4500
4903
  width: "170",
@@ -4518,223 +4921,233 @@ const ra = "_footer_12vvu_1", aa = "_mainSection_12vvu_7", sa = "_mainContainer_
4518
4921
  /* @__PURE__ */ t("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4519
4922
  ]
4520
4923
  }
4521
- ), Y = [
4522
- { label: l("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
4523
- { label: l("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
4524
- { label: l("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
4525
- { label: l("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
4526
- { label: l("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
4527
- { label: l("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
4528
- ], y = [
4529
- { label: l("footer.legal.privacy", "Personvern"), href: "#" },
4530
- { label: l("footer.legal.press", "For presse"), href: "#" },
4531
- { label: l("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
4532
- { label: l("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
4533
- ], E = /* @__PURE__ */ r(Se, { children: [
4924
+ ), te = [
4925
+ { label: g("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
4926
+ { label: g("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
4927
+ { label: g("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
4928
+ { label: g("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
4929
+ { label: g("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
4930
+ { label: g("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
4931
+ ], ne = [
4932
+ { label: g("footer.legal.privacy", "Personvern"), href: "#" },
4933
+ { label: g("footer.legal.press", "For presse"), href: "#" },
4934
+ { label: g("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
4935
+ { label: g("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
4936
+ ], z = /* @__PURE__ */ r(tt, { children: [
4534
4937
  'Ved å trykke "',
4535
- k,
4938
+ x,
4536
4939
  '" samtykker du til å motta nyhetsbrev.',
4537
4940
  /* @__PURE__ */ t("br", {}),
4538
4941
  "Du kan når som helst ",
4539
- /* @__PURE__ */ t(te, { href: "#", children: "melde deg av" }),
4942
+ /* @__PURE__ */ t(pe, { href: "#", children: "melde deg av" }),
4540
4943
  " nyhetsbrevet uten kostnad."
4541
- ] }), Q = _ || Y, le = V || y, v = () => /* @__PURE__ */ r("div", { className: o.socialLinksSection, children: [
4542
- G && /* @__PURE__ */ t("h3", { className: o.socialLinksTitle, children: G }),
4543
- /* @__PURE__ */ t("ul", { className: o.socialLinksList, children: F.map((c, w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ r(te, { href: c.href, className: o.socialLink, children: [
4544
- /* @__PURE__ */ t("span", { className: o.socialLinkIcon, children: c.icon }),
4545
- c.label
4546
- ] }) }, w)) })
4547
- ] }), Z = ({ person: c }) => /* @__PURE__ */ r("div", { className: o.contactPersonCard, children: [
4548
- /* @__PURE__ */ t("p", { className: o.contactPersonName, children: c.name }),
4549
- /* @__PURE__ */ t("p", { className: o.contactPersonRole, children: c.role }),
4944
+ ] }), ie = L || te, T = R || ne, h = () => /* @__PURE__ */ r("div", { className: o.socialLinksSection, children: [
4945
+ d && /* @__PURE__ */ t("h3", { className: o.socialLinksTitle, children: d }),
4946
+ /* @__PURE__ */ t("ul", { className: o.socialLinksList, children: q.map((u, M) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ r(pe, { href: u.href, className: o.socialLink, children: [
4947
+ /* @__PURE__ */ t("span", { className: o.socialLinkIcon, children: u.icon }),
4948
+ u.label
4949
+ ] }) }, M)) })
4950
+ ] }), C = ({ person: u }) => /* @__PURE__ */ r("div", { className: o.contactPersonCard, children: [
4951
+ /* @__PURE__ */ t("p", { className: o.contactPersonName, children: u.name }),
4952
+ /* @__PURE__ */ t("p", { className: o.contactPersonRole, children: u.role }),
4550
4953
  /* @__PURE__ */ r("div", { className: o.contactPersonDetails, children: [
4551
4954
  /* @__PURE__ */ r("p", { className: o.contactPersonEmail, children: [
4552
4955
  /* @__PURE__ */ r("span", { className: o.contactPersonLabel, children: [
4553
- l("footer.contact.email", "E-post"),
4956
+ g("footer.contact.email", "E-post"),
4554
4957
  ":"
4555
4958
  ] }),
4556
4959
  " ",
4557
- /* @__PURE__ */ t(te, { href: `mailto:${c.email}`, children: c.email })
4960
+ /* @__PURE__ */ t(pe, { href: `mailto:${u.email}`, children: u.email })
4558
4961
  ] }),
4559
- c.phone && /* @__PURE__ */ r("p", { className: o.contactPersonPhone, children: [
4962
+ u.phone && /* @__PURE__ */ r("p", { className: o.contactPersonPhone, children: [
4560
4963
  /* @__PURE__ */ r("span", { className: o.contactPersonLabel, children: [
4561
- l("footer.contact.phone", "Telefon"),
4964
+ g("footer.contact.phone", "Telefon"),
4562
4965
  ":"
4563
4966
  ] }),
4564
4967
  " ",
4565
- c.phone
4968
+ u.phone
4566
4969
  ] }),
4567
- c.address && /* @__PURE__ */ t("p", { className: o.contactPersonAddress, children: c.address })
4970
+ u.address && /* @__PURE__ */ t("p", { className: o.contactPersonAddress, children: u.address })
4568
4971
  ] })
4569
- ] }), me = () => /* @__PURE__ */ r("div", { className: o.contactPersonsSection, children: [
4570
- ne && /* @__PURE__ */ t("h3", { className: o.contactPersonsTitle, children: ne }),
4571
- /* @__PURE__ */ t("div", { className: o.contactPersonsGrid, children: j.map((c, w) => /* @__PURE__ */ t(Z, { person: c }, w)) })
4572
- ] }), ge = () => /* @__PURE__ */ t("ul", { className: o.legalLinksRow, children: L.map((c, w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: c.href, className: o.legalLink, children: c.label }) }, w)) });
4972
+ ] }), j = () => /* @__PURE__ */ r("div", { className: o.contactPersonsSection, children: [
4973
+ l && /* @__PURE__ */ t("h3", { className: o.contactPersonsTitle, children: l }),
4974
+ /* @__PURE__ */ t("div", { className: o.contactPersonsGrid, children: Y.map((u, M) => /* @__PURE__ */ t(C, { person: u }, M)) })
4975
+ ] }), _ = () => /* @__PURE__ */ t("ul", { className: o.legalLinksRow, children: $.map((u, M) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(pe, { href: u.href, className: o.legalLink, children: u.label }) }, M)) });
4573
4976
  if (e === "columns") {
4574
- const c = [
4977
+ const u = [
4575
4978
  {
4576
- title: l("footer.contact.title", "Kontakt"),
4577
- links: Y
4979
+ title: g("footer.contact.title", "Kontakt"),
4980
+ links: te
4578
4981
  },
4579
4982
  {
4580
- title: l("footer.bidra", "Bidra"),
4581
- links: Y
4983
+ title: g("footer.bidra", "Bidra"),
4984
+ links: te
4582
4985
  },
4583
4986
  {
4584
- title: l("footer.shortcuts", "Snarveier"),
4585
- links: Y
4987
+ title: g("footer.shortcuts", "Snarveier"),
4988
+ links: te
4586
4989
  }
4587
- ], w = d && d.length > 0 ? d : c, $ = L.length > 0 ? L : y;
4588
- return /* @__PURE__ */ t("footer", { className: o.footer, "data-color": n, "data-color-scheme": a, children: /* @__PURE__ */ t("div", { className: o.dpMain, children: /* @__PURE__ */ r("div", { className: o.dpContainer, children: [
4589
- /* @__PURE__ */ t("div", { className: o.dpColumns, children: w.map((oe, re) => /* @__PURE__ */ r("nav", { className: o.dpColumn, "aria-label": oe.title, children: [
4590
- /* @__PURE__ */ t("h3", { className: o.dpColTitle, children: oe.title }),
4591
- /* @__PURE__ */ t("ul", { className: o.dpList, children: oe.links.map((pe, i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: pe.href, className: o.dpLink, children: pe.label }) }, i)) })
4592
- ] }, re)) }),
4593
- /* @__PURE__ */ t("hr", { className: o.dpDivider }),
4594
- /* @__PURE__ */ r("div", { className: o.dpMeta, children: [
4595
- /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4596
- /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.visitingAddress", "Besøksadresse") }),
4597
- K.map((oe, re) => /* @__PURE__ */ t("p", { className: o.dpMetaText, children: oe }, re))
4598
- ] }),
4599
- /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4600
- /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4601
- /* @__PURE__ */ t("p", { className: o.dpMetaText, children: X })
4990
+ ], M = c && c.length > 0 ? c : u, le = $.length > 0 ? $ : ne;
4991
+ return /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, "data-color-scheme": a, children: [
4992
+ /* @__PURE__ */ t("div", { className: o.dpMain, children: /* @__PURE__ */ r("div", { className: o.dpContainer, children: [
4993
+ /* @__PURE__ */ t("div", { className: o.dpColumns, children: M.map((re, ge) => /* @__PURE__ */ r("nav", { className: o.dpColumn, "aria-label": re.title, children: [
4994
+ /* @__PURE__ */ t("h3", { className: o.dpColTitle, children: re.title }),
4995
+ /* @__PURE__ */ t("ul", { className: o.dpList, children: re.links.map((xe, Se) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(pe, { href: xe.href, className: o.dpLink, children: xe.label }) }, Se)) })
4996
+ ] }, ge)) }),
4997
+ /* @__PURE__ */ t("hr", { className: o.dpDivider }),
4998
+ /* @__PURE__ */ r("div", { className: o.dpMeta, children: [
4999
+ /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
5000
+ /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: g("footer.contact.visitingAddress", "Besøksadresse") }),
5001
+ Q.map((re, ge) => /* @__PURE__ */ t("p", { className: o.dpMetaText, children: re }, ge))
5002
+ ] }),
5003
+ /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
5004
+ /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
5005
+ /* @__PURE__ */ t("p", { className: o.dpMetaText, children: K })
5006
+ ] }),
5007
+ /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
5008
+ /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: g("footer.contact.email", "E-post") }),
5009
+ /* @__PURE__ */ t("p", { className: o.dpMetaText, children: N })
5010
+ ] })
4602
5011
  ] }),
4603
- /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4604
- /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.email", "E-post") }),
4605
- /* @__PURE__ */ t("p", { className: o.dpMetaText, children: A })
4606
- ] })
4607
- ] }),
4608
- /* @__PURE__ */ t("hr", { className: o.dpDivider }),
4609
- /* @__PURE__ */ r("div", { className: o.dpBottom, children: [
4610
- /* @__PURE__ */ t("ul", { className: o.dpLegal, children: $.map((oe, re) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: oe.href, className: o.dpLegalLink, children: oe.label }) }, re)) }),
4611
- /* @__PURE__ */ r("p", { className: o.dpCopyright, children: [
4612
- "© ",
4613
- H,
4614
- " ",
4615
- l("footer.copyright", "Røde Kors")
5012
+ /* @__PURE__ */ t("hr", { className: o.dpDivider }),
5013
+ /* @__PURE__ */ r("div", { className: o.dpBottom, children: [
5014
+ /* @__PURE__ */ t("ul", { className: o.dpLegal, children: le.map((re, ge) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(pe, { href: re.href, className: o.dpLegalLink, children: re.label }) }, ge)) }),
5015
+ /* @__PURE__ */ r("p", { className: o.dpCopyright, children: [
5016
+ "© ",
5017
+ v,
5018
+ " ",
5019
+ g("footer.copyright", "Røde Kors")
5020
+ ] })
4616
5021
  ] })
4617
- ] }),
4618
- m ? /* @__PURE__ */ t("img", { src: m, alt: M, className: o.dpLogoImg }) : /* @__PURE__ */ t("div", { className: o.dpLogoBox, "data-color-scheme": "light", children: /* @__PURE__ */ t(B, {}) })
4619
- ] }) }) });
5022
+ ] }) }),
5023
+ w && /* @__PURE__ */ t("div", { className: o.whiteSection, "data-color-scheme": "light", children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ t("div", { className: o.whiteContent, children: H ? /* @__PURE__ */ t(
5024
+ "img",
5025
+ {
5026
+ src: H,
5027
+ alt: P,
5028
+ className: o.logo,
5029
+ loading: "lazy"
5030
+ }
5031
+ ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) }) }) }) })
5032
+ ] });
4620
5033
  }
4621
5034
  return e === "contact" ? /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
4622
5035
  /* @__PURE__ */ t("div", { className: o.mainSection, children: /* @__PURE__ */ r("div", { className: o.mainContainer, children: [
4623
- h && /* @__PURE__ */ t("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ t(ye, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
5036
+ k && /* @__PURE__ */ t("div", { className: o.graphicElementTopRight, children: /* @__PURE__ */ t(je, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
4624
5037
  /* @__PURE__ */ r("div", { className: o.contentRowContact, children: [
4625
- F.length > 0 && /* @__PURE__ */ t(v, {}),
4626
- j.length > 0 && /* @__PURE__ */ t(me, {})
5038
+ q.length > 0 && /* @__PURE__ */ t(h, {}),
5039
+ Y.length > 0 && /* @__PURE__ */ t(j, {})
4627
5040
  ] }),
4628
5041
  /* @__PURE__ */ t("div", { className: o.divider }),
4629
5042
  /* @__PURE__ */ r("div", { className: o.contactSection, children: [
4630
5043
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4631
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.visitingAddress", "Besøks adresse") }),
4632
- /* @__PURE__ */ t("div", { className: o.contactContent, children: K.map((c, w) => /* @__PURE__ */ t("p", { children: c }, w)) })
5044
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.visitingAddress", "Besøks adresse") }),
5045
+ /* @__PURE__ */ t("div", { className: o.contactContent, children: Q.map((u, M) => /* @__PURE__ */ t("p", { children: u }, M)) })
4633
5046
  ] }),
4634
5047
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4635
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4636
- /* @__PURE__ */ t("p", { className: o.contactContent, children: X })
5048
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
5049
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: K })
4637
5050
  ] }),
4638
5051
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4639
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.email", "E-post") }),
4640
- /* @__PURE__ */ t("p", { className: o.contactContent, children: A })
5052
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
5053
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: N })
4641
5054
  ] })
4642
5055
  ] }),
4643
5056
  /* @__PURE__ */ t("div", { className: o.divider }),
4644
5057
  /* @__PURE__ */ r("div", { className: o.bottomRowContact, children: [
4645
- L.length > 0 && /* @__PURE__ */ t(ge, {}),
5058
+ $.length > 0 && /* @__PURE__ */ t(_, {}),
4646
5059
  /* @__PURE__ */ r("p", { className: o.copyrightText, children: [
4647
5060
  "© ",
4648
- H,
5061
+ v,
4649
5062
  " ",
4650
- l("footer.copyright", "Rødekors")
5063
+ g("footer.copyright", "Rødekors")
4651
5064
  ] })
4652
5065
  ] }),
4653
- h && /* @__PURE__ */ t("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ t(ye, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
5066
+ k && /* @__PURE__ */ t("div", { className: o.graphicElementBottomLeft, children: /* @__PURE__ */ t(je, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4654
5067
  ] }) }),
4655
5068
  /* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
4656
- q && (m ? /* @__PURE__ */ t(
5069
+ w && (H ? /* @__PURE__ */ t(
4657
5070
  "img",
4658
5071
  {
4659
- src: m,
4660
- alt: M,
5072
+ src: H,
5073
+ alt: P,
4661
5074
  className: o.logo,
4662
5075
  loading: "lazy"
4663
5076
  }
4664
- ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(B, {}) })),
4665
- I && /* @__PURE__ */ t("div", { className: o.slotLarge, children: I })
5077
+ ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) })),
5078
+ E && /* @__PURE__ */ t("div", { className: o.slotLarge, children: E })
4666
5079
  ] }) }) })
4667
5080
  ] }) : /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
4668
5081
  /* @__PURE__ */ t("div", { className: o.mainSection, children: /* @__PURE__ */ r("div", { className: o.mainContainer, children: [
4669
- h && /* @__PURE__ */ t("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ t(ye, { position: "top-right", size: "md", "aria-hidden": !0 }) }),
5082
+ k && /* @__PURE__ */ t("div", { className: o.graphicElementTopRight, children: /* @__PURE__ */ t(je, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
4670
5083
  /* @__PURE__ */ r("div", { className: o.contentRow, children: [
4671
- !R && /* @__PURE__ */ r("div", { className: o.newsletterSection, children: [
4672
- /* @__PURE__ */ t("p", { className: o.newsletterDescription, children: f }),
4673
- /* @__PURE__ */ t("form", { className: o.newsletterForm, onSubmit: C, children: /* @__PURE__ */ r("div", { className: o.newsletterInputGroup, children: [
5084
+ !J && /* @__PURE__ */ r("div", { className: o.newsletterSection, children: [
5085
+ /* @__PURE__ */ t("p", { className: o.newsletterDescription, children: y }),
5086
+ /* @__PURE__ */ t("form", { className: o.newsletterForm, onSubmit: se, children: /* @__PURE__ */ r("div", { className: o.newsletterInputGroup, children: [
4674
5087
  /* @__PURE__ */ t(
4675
- Ze,
5088
+ dt,
4676
5089
  {
4677
5090
  type: "email",
4678
- placeholder: g,
4679
- value: T,
4680
- onChange: (c) => b(c.target.value),
5091
+ placeholder: f,
5092
+ value: F,
5093
+ onChange: (u) => D(u.target.value),
4681
5094
  className: o.newsletterInput
4682
5095
  }
4683
5096
  ),
4684
- /* @__PURE__ */ t(ce, { type: "submit", variant: "primary", "data-color": "neutral", children: k })
5097
+ /* @__PURE__ */ t(fe, { type: "submit", variant: "primary", "data-color": "neutral", children: x })
4685
5098
  ] }) }),
4686
- /* @__PURE__ */ t("p", { className: o.consentText, children: D || E })
5099
+ /* @__PURE__ */ t("p", { className: o.consentText, children: B || z })
4687
5100
  ] }),
4688
5101
  /* @__PURE__ */ r("div", { className: o.linksSection, children: [
4689
- /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": N || l("footer.shortcuts", "Snarveier"), children: [
4690
- /* @__PURE__ */ t("h3", { className: o.linksTitle, children: N || l("footer.shortcuts", "Snarveier") }),
4691
- /* @__PURE__ */ t("ul", { className: o.linksList, children: Q.map((c, w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: c.href, className: o.footerLink, children: c.label }) }, w)) })
5102
+ /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": G || g("footer.shortcuts", "Snarveier"), children: [
5103
+ /* @__PURE__ */ t("h3", { className: o.linksTitle, children: G || g("footer.shortcuts", "Snarveier") }),
5104
+ /* @__PURE__ */ t("ul", { className: o.linksList, children: ie.map((u, M) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(pe, { href: u.href, className: o.footerLink, children: u.label }) }, M)) })
4692
5105
  ] }),
4693
- /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": p || l("footer.links", "Lenker"), children: [
4694
- /* @__PURE__ */ t("h3", { className: o.linksTitle, children: p || l("footer.links", "Lenker") }),
4695
- /* @__PURE__ */ t("ul", { className: o.linksList, children: le.map((c, w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(te, { href: c.href, className: o.footerLink, children: c.label }) }, w)) })
5106
+ /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": p || g("footer.links", "Lenker"), children: [
5107
+ /* @__PURE__ */ t("h3", { className: o.linksTitle, children: p || g("footer.links", "Lenker") }),
5108
+ /* @__PURE__ */ t("ul", { className: o.linksList, children: T.map((u, M) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(pe, { href: u.href, className: o.footerLink, children: u.label }) }, M)) })
4696
5109
  ] })
4697
5110
  ] })
4698
5111
  ] }),
4699
5112
  /* @__PURE__ */ t("div", { className: o.divider }),
4700
5113
  /* @__PURE__ */ r("div", { className: o.contactSection, children: [
4701
5114
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4702
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.visitingAddress", "Besøks adresse") }),
4703
- /* @__PURE__ */ t("div", { className: o.contactContent, children: K.map((c, w) => /* @__PURE__ */ t("p", { children: c }, w)) })
5115
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.visitingAddress", "Besøks adresse") }),
5116
+ /* @__PURE__ */ t("div", { className: o.contactContent, children: Q.map((u, M) => /* @__PURE__ */ t("p", { children: u }, M)) })
4704
5117
  ] }),
4705
5118
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4706
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4707
- /* @__PURE__ */ t("p", { className: o.contactContent, children: X })
5119
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
5120
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: K })
4708
5121
  ] }),
4709
5122
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4710
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.email", "E-post") }),
4711
- /* @__PURE__ */ t("p", { className: o.contactContent, children: A })
5123
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
5124
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: N })
4712
5125
  ] })
4713
5126
  ] }),
4714
5127
  /* @__PURE__ */ t("div", { className: o.divider }),
4715
5128
  /* @__PURE__ */ t("div", { className: o.copyrightSection, children: /* @__PURE__ */ r("p", { className: o.copyrightText, children: [
4716
5129
  "© ",
4717
- H,
5130
+ v,
4718
5131
  " ",
4719
- l("footer.copyright", "Rødekors")
5132
+ g("footer.copyright", "Rødekors")
4720
5133
  ] }) }),
4721
- h && /* @__PURE__ */ t("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ t(ye, { position: "bottom-left", size: "md", "aria-hidden": !0 }) })
5134
+ k && /* @__PURE__ */ t("div", { className: o.graphicElementBottomLeft, children: /* @__PURE__ */ t(je, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
4722
5135
  ] }) }),
4723
5136
  /* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
4724
- q && (m ? /* @__PURE__ */ t(
5137
+ w && (H ? /* @__PURE__ */ t(
4725
5138
  "img",
4726
5139
  {
4727
- src: m,
4728
- alt: M,
5140
+ src: H,
5141
+ alt: P,
4729
5142
  className: o.logo,
4730
5143
  loading: "lazy"
4731
5144
  }
4732
- ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(B, {}) })),
4733
- I && /* @__PURE__ */ t("div", { className: o.slotLarge, children: I })
5145
+ ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) })),
5146
+ E && /* @__PURE__ */ t("div", { className: o.slotLarge, children: E })
4734
5147
  ] }) }) })
4735
5148
  ] });
4736
5149
  };
4737
- function vs(n) {
5150
+ function $s(n) {
4738
5151
  const e = n;
4739
5152
  return `
4740
5153
  .${e.footer} {
@@ -4759,16 +5172,16 @@ function vs(n) {
4759
5172
  width: 100%;
4760
5173
  max-width: 1440px;
4761
5174
  margin: 0 auto;
4762
- padding: var(--ds-size-30, 120px) var(--ds-size-44, 175px);
5175
+ padding: var(--ds-size-30, 120px) 175px;
4763
5176
  box-sizing: border-box;
4764
5177
  }
4765
- .${e.crossCornerTopRight} {
5178
+ .${e.graphicElementTopRight} {
4766
5179
  display: flex;
4767
5180
  justify-content: flex-end;
4768
5181
  width: 100%;
4769
5182
  margin-bottom: var(--ds-size-6, 24px);
4770
5183
  }
4771
- .${e.crossCornerBottomLeft} {
5184
+ .${e.graphicElementBottomLeft} {
4772
5185
  display: flex;
4773
5186
  justify-content: flex-start;
4774
5187
  width: 100%;
@@ -4877,7 +5290,7 @@ function vs(n) {
4877
5290
  }
4878
5291
  .${e.contactTitle} {
4879
5292
  font-size: var(--ds-font-size-3, 16px);
4880
- font-weight: var(--ds-font-weight-bold);
5293
+ font-weight: var(--ds-font-weight-semibold);
4881
5294
  line-height: 1.5;
4882
5295
  letter-spacing: 0.04px;
4883
5296
  color: var(--ds-color-neutral-text-default, #2b2b2b);
@@ -4914,7 +5327,7 @@ function vs(n) {
4914
5327
  width: 100%;
4915
5328
  max-width: 1440px;
4916
5329
  margin: 0 auto;
4917
- padding: var(--ds-size-6, 24px) var(--ds-size-44, 175px);
5330
+ padding: var(--ds-size-6, 24px) 175px;
4918
5331
  box-sizing: border-box;
4919
5332
  }
4920
5333
  .${e.whiteContent} {
@@ -4950,7 +5363,7 @@ function vs(n) {
4950
5363
  }
4951
5364
  @media (max-width: 1024px) {
4952
5365
  .${e.mainContainer} {
4953
- padding: var(--ds-size-16, 64px) var(--ds-size-8, 32px);
5366
+ padding: var(--ds-size-15, 64px) var(--ds-size-8, 32px);
4954
5367
  }
4955
5368
  .${e.whiteContainer} {
4956
5369
  padding: var(--ds-size-6, 24px) var(--ds-size-8, 32px);
@@ -5060,7 +5473,7 @@ function vs(n) {
5060
5473
  }
5061
5474
  .${e.contactPersonName} {
5062
5475
  font-size: var(--ds-font-size-4, 18px);
5063
- font-weight: var(--ds-font-weight-bold);
5476
+ font-weight: var(--ds-font-weight-semibold);
5064
5477
  line-height: 1.5;
5065
5478
  letter-spacing: 0.09px;
5066
5479
  color: var(--ds-color-neutral-text-default, #2b2b2b);
@@ -5159,25 +5572,26 @@ function vs(n) {
5159
5572
  }
5160
5573
  `;
5161
5574
  }
5162
- const bs = "_donor_1hxqz_1", ys = "_tabsWrapper_1hxqz_14", xs = "_content_1hxqz_35", Ts = "_amountSection_1hxqz_47", Cs = "_amountLabel_1hxqz_55", ws = "_amountButtons_1hxqz_64", Ss = "_customAmountField_1hxqz_75", Is = "_impactRow_1hxqz_80", _s = "_heartIcon_1hxqz_88", Ds = "_impactText_1hxqz_102", Ls = "_impactAmount_1hxqz_112", As = "_actionsSection_1hxqz_117", Ns = "_vippsButton_1hxqz_127", Ms = "_vippsButtonLabel_1hxqz_157", js = "_vippsLogo_1hxqz_166", Fs = "_avtalegiroLink_1hxqz_179", Bs = "_tabHeartIcon_1hxqz_184", P = {
5163
- donor: bs,
5164
- tabsWrapper: ys,
5165
- content: xs,
5166
- amountSection: Ts,
5167
- amountLabel: Cs,
5168
- amountButtons: ws,
5169
- customAmountField: Ss,
5170
- impactRow: Is,
5171
- heartIcon: _s,
5172
- impactText: Ds,
5173
- impactAmount: Ls,
5174
- actionsSection: As,
5175
- vippsButton: Ns,
5176
- vippsButtonLabel: Ms,
5177
- vippsLogo: js,
5178
- avtalegiroLink: Fs,
5179
- tabHeartIcon: Bs
5180
- }, We = () => /* @__PURE__ */ t(
5575
+ const zs = "_donor_xzqak_1", Rs = "_tabsWrapper_xzqak_14", Gs = "_content_xzqak_35", Hs = "_amountSection_xzqak_47", Ws = "_amountLabel_xzqak_55", Us = "_amountButtons_xzqak_64", Vs = "_customAmountField_xzqak_75", Os = "_impactRow_xzqak_80", Ks = "_heartIcon_xzqak_88", Zs = "_impactText_xzqak_102", qs = "_impactAmount_xzqak_112", Ys = "_actionsSection_xzqak_117", Xs = "_vippsButton_xzqak_127", Js = "_vippsButtonLabel_xzqak_157", Qs = "_vippsLogo_xzqak_166", ei = "_avtalegiroLink_xzqak_179", ti = "_tabHeartIcon_xzqak_184", ni = "_tabPanel_xzqak_214", O = {
5576
+ donor: zs,
5577
+ tabsWrapper: Rs,
5578
+ content: Gs,
5579
+ amountSection: Hs,
5580
+ amountLabel: Ws,
5581
+ amountButtons: Us,
5582
+ customAmountField: Vs,
5583
+ impactRow: Os,
5584
+ heartIcon: Ks,
5585
+ impactText: Zs,
5586
+ impactAmount: qs,
5587
+ actionsSection: Ys,
5588
+ vippsButton: Xs,
5589
+ vippsButtonLabel: Js,
5590
+ vippsLogo: Qs,
5591
+ avtalegiroLink: ei,
5592
+ tabHeartIcon: ti,
5593
+ tabPanel: ni
5594
+ }, et = () => /* @__PURE__ */ t(
5181
5595
  "svg",
5182
5596
  {
5183
5597
  width: "19",
@@ -5195,7 +5609,7 @@ const bs = "_donor_1hxqz_1", ys = "_tabsWrapper_1hxqz_14", xs = "_content_1hxqz_
5195
5609
  }
5196
5610
  )
5197
5611
  }
5198
- ), Es = () => /* @__PURE__ */ t(
5612
+ ), oi = () => /* @__PURE__ */ t(
5199
5613
  "svg",
5200
5614
  {
5201
5615
  width: "16",
@@ -5213,7 +5627,7 @@ const bs = "_donor_1hxqz_1", ys = "_tabsWrapper_1hxqz_14", xs = "_content_1hxqz_
5213
5627
  }
5214
5628
  )
5215
5629
  }
5216
- ), $s = () => /* @__PURE__ */ t(
5630
+ ), ri = () => /* @__PURE__ */ t(
5217
5631
  "svg",
5218
5632
  {
5219
5633
  width: "64",
@@ -5231,134 +5645,154 @@ const bs = "_donor_1hxqz_1", ys = "_tabsWrapper_1hxqz_14", xs = "_content_1hxqz_
5231
5645
  }
5232
5646
  )
5233
5647
  }
5234
- ), Ps = [
5648
+ ), ai = [
5235
5649
  { value: 220, label: "220 kr" },
5236
5650
  { value: 345, label: "345 kr" },
5237
5651
  { value: 660, label: "660 kr" }
5238
- ], Ni = ({
5652
+ ], Ji = ({
5239
5653
  "data-color": n = "primary",
5240
- amounts: e = Ps,
5654
+ amounts: e = ai,
5241
5655
  defaultAmount: a = 345,
5242
- oneTimeLabel: d = "En gang",
5243
- monthlyLabel: h = "Hver måned",
5244
- customAmountPlaceholder: f = "Valgfritt beløp",
5245
- amountLabel: g = "Velg ønsket beløp:",
5246
- impactMessage: k = "En gave på {amount} bidrar til ...",
5247
- vippsButtonLabel: D = "Gi med",
5248
- avtalegiroLabel: S = "Gi med avtalegiro",
5249
- avtalegiroHref: R = "#",
5250
- currencySuffix: _ = "kr",
5251
- onVippsClick: V,
5252
- onAvtalegiroClick: N,
5656
+ oneTimeLabel: c = "En gang",
5657
+ monthlyLabel: k = "Hver måned",
5658
+ customAmountPlaceholder: y = "Valgfritt beløp",
5659
+ amountLabel: f = "Velg ønsket beløp:",
5660
+ impactMessage: x = "En gave på {amount} bidrar til ...",
5661
+ vippsButtonLabel: B = "Gi med",
5662
+ avtalegiroLabel: I = "Gi med avtalegiro",
5663
+ avtalegiroHref: J = "#",
5664
+ currencySuffix: L = "kr",
5665
+ onVippsClick: R,
5666
+ onAvtalegiroClick: G,
5253
5667
  onAmountChange: p,
5254
- showVippsButton: K = !0,
5255
- showAvtalegiroLink: X = !0,
5256
- showImpactMessage: A = !0,
5257
- heartVariant: q = "outlined"
5668
+ showVippsButton: Q = !0,
5669
+ showAvtalegiroLink: K = !0,
5670
+ showImpactMessage: N = !0,
5671
+ heartVariant: w = "outlined"
5258
5672
  }) => {
5259
- const [m, M] = O("monthly"), [I, F] = O(a), [j, L] = O(""), [G, ne] = O(!1);
5260
- z(() => {
5261
- const y = "rk-donor-inline-styles";
5262
- if (typeof document > "u" || document.getElementById(y)) return;
5263
- const E = zs(P), Q = document.createElement("style");
5264
- Q.id = y, Q.textContent = E, document.head.appendChild(Q);
5673
+ const H = We(), [P, E] = Z("monthly"), [q, Y] = Z(a), [$, d] = Z(""), [l, v] = Z(!1);
5674
+ U(() => {
5675
+ const T = "rk-donor-inline-styles";
5676
+ if (typeof document > "u" || document.getElementById(T)) return;
5677
+ const h = si(O), C = document.createElement("style");
5678
+ C.id = T, C.textContent = h, document.head.appendChild(C);
5265
5679
  }, []);
5266
- const H = G && j ? parseInt(j, 10) || 0 : I, J = (y) => {
5267
- F(y), ne(!1), L(""), p == null || p(y, m);
5268
- }, T = (y) => {
5269
- const E = y.target.value;
5270
- L(E), ne(!0);
5271
- const Q = parseInt(E, 10);
5272
- Q > 0 && (p == null || p(Q, m));
5273
- }, b = () => {
5274
- ne(!0);
5275
- }, l = (y) => {
5276
- const E = y;
5277
- M(E), p == null || p(H, E);
5278
- }, C = () => {
5279
- V == null || V(H, m);
5280
- }, B = () => {
5281
- N == null || N();
5282
- }, Y = () => {
5283
- const y = `${H} ${_}`, E = k.split("{amount}");
5680
+ const S = parseInt($, 10), F = l && $ && S > 0 ? S : q, D = (T) => {
5681
+ Y(T), v(!1), d(""), p == null || p(T, P);
5682
+ }, g = (T) => {
5683
+ const h = T.target.value;
5684
+ d(h), v(!0);
5685
+ const C = parseInt(h, 10);
5686
+ C > 0 && (p == null || p(C, P));
5687
+ }, se = () => {
5688
+ v(!0);
5689
+ }, ee = (T) => {
5690
+ const h = T;
5691
+ E(h), p == null || p(F, h);
5692
+ }, te = () => {
5693
+ F > 0 && (R == null || R(F, P));
5694
+ }, ne = () => {
5695
+ G == null || G();
5696
+ }, z = () => {
5697
+ const T = `${F} ${L}`, h = x.split("{amount}");
5284
5698
  return /* @__PURE__ */ r("span", { children: [
5285
- E[0],
5286
- /* @__PURE__ */ t("span", { className: P.impactAmount, children: y }),
5287
- E[1] || ""
5699
+ h[0],
5700
+ /* @__PURE__ */ t("span", { className: O.impactAmount, children: T }),
5701
+ h[1] || ""
5288
5702
  ] });
5289
- };
5290
- return /* @__PURE__ */ r("div", { className: P.donor, "data-color": n, children: [
5291
- /* @__PURE__ */ t("div", { className: P.tabsWrapper, children: /* @__PURE__ */ t(we, { defaultValue: "monthly", onChange: l, "data-size": "md", children: /* @__PURE__ */ r(we.List, { children: [
5292
- /* @__PURE__ */ t(we.Tab, { value: "one-time", children: d }),
5293
- /* @__PURE__ */ r(we.Tab, { value: "monthly", children: [
5294
- /* @__PURE__ */ t("span", { className: P.tabHeartIcon, children: /* @__PURE__ */ t(We, {}) }),
5295
- h
5296
- ] })
5297
- ] }) }) }),
5298
- /* @__PURE__ */ r("div", { className: P.content, children: [
5299
- /* @__PURE__ */ r("div", { className: P.amountSection, children: [
5300
- /* @__PURE__ */ t(xe, { className: P.amountLabel, "data-size": "sm", children: g }),
5301
- /* @__PURE__ */ t("div", { className: P.amountButtons, children: e.map((y) => {
5302
- const E = !G && I === y.value;
5303
- return /* @__PURE__ */ t(
5304
- ce,
5305
- {
5306
- variant: E ? "primary" : "secondary",
5307
- "data-color": E ? "accent" : "neutral",
5308
- onClick: () => J(y.value),
5309
- children: y.label
5310
- },
5311
- y.value
5312
- );
5313
- }) }),
5314
- /* @__PURE__ */ t("div", { className: P.customAmountField, children: /* @__PURE__ */ t(
5315
- Qo,
5316
- {
5317
- "aria-label": f,
5318
- placeholder: f,
5319
- value: j,
5320
- onChange: T,
5321
- onFocus: b,
5322
- type: "number",
5323
- min: 1
5324
- }
5325
- ) })
5326
- ] }),
5327
- A && /* @__PURE__ */ r("div", { className: P.impactRow, children: [
5328
- /* @__PURE__ */ t("div", { className: P.heartIcon, children: q === "filled" ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(Es, {}) }),
5329
- /* @__PURE__ */ t("p", { className: P.impactText, children: Y() })
5330
- ] }),
5331
- /* @__PURE__ */ r("div", { className: P.actionsSection, children: [
5332
- K && /* @__PURE__ */ r(
5333
- "button",
5334
- {
5335
- className: P.vippsButton,
5336
- onClick: C,
5337
- type: "button",
5338
- "aria-label": `${D} Vipps`,
5339
- children: [
5340
- /* @__PURE__ */ t("span", { className: P.vippsButtonLabel, children: D }),
5341
- /* @__PURE__ */ t("span", { className: P.vippsLogo, children: /* @__PURE__ */ t($s, {}) })
5342
- ]
5343
- }
5344
- ),
5345
- X && /* @__PURE__ */ t(
5346
- te,
5347
- {
5348
- href: R,
5349
- "data-color": "neutral",
5350
- className: P.avtalegiroLink,
5351
- onClick: (y) => {
5352
- N && (y.preventDefault(), B());
5353
- },
5354
- children: S
5355
- }
5356
- )
5357
- ] })
5703
+ }, ie = /* @__PURE__ */ r("div", { className: O.content, children: [
5704
+ /* @__PURE__ */ r("div", { className: O.amountSection, children: [
5705
+ /* @__PURE__ */ t(Ne, { className: O.amountLabel, "data-size": "sm", id: H, children: f }),
5706
+ /* @__PURE__ */ t(
5707
+ "div",
5708
+ {
5709
+ className: O.amountButtons,
5710
+ role: "group",
5711
+ "aria-labelledby": H,
5712
+ children: e.map((T) => {
5713
+ const h = !l && q === T.value;
5714
+ return /* @__PURE__ */ t(
5715
+ fe,
5716
+ {
5717
+ variant: h ? "primary" : "secondary",
5718
+ "data-color": h ? "accent" : "neutral",
5719
+ "aria-pressed": h,
5720
+ onClick: () => D(T.value),
5721
+ children: T.label
5722
+ },
5723
+ T.value
5724
+ );
5725
+ })
5726
+ }
5727
+ ),
5728
+ /* @__PURE__ */ t("div", { className: O.customAmountField, children: /* @__PURE__ */ t(
5729
+ xr,
5730
+ {
5731
+ "aria-label": y,
5732
+ placeholder: y,
5733
+ value: $,
5734
+ onChange: g,
5735
+ onFocus: se,
5736
+ type: "number",
5737
+ min: 1
5738
+ }
5739
+ ) })
5740
+ ] }),
5741
+ N && /* @__PURE__ */ r("div", { className: O.impactRow, children: [
5742
+ /* @__PURE__ */ t("div", { className: O.heartIcon, children: w === "filled" ? /* @__PURE__ */ t(et, {}) : /* @__PURE__ */ t(oi, {}) }),
5743
+ /* @__PURE__ */ t("p", { className: O.impactText, children: z() })
5744
+ ] }),
5745
+ /* @__PURE__ */ r("div", { className: O.actionsSection, children: [
5746
+ Q && /* @__PURE__ */ r(
5747
+ "button",
5748
+ {
5749
+ className: O.vippsButton,
5750
+ onClick: te,
5751
+ type: "button",
5752
+ "aria-label": `${B} Vipps`,
5753
+ "data-brand-exception": "vipps",
5754
+ children: [
5755
+ /* @__PURE__ */ t("span", { className: O.vippsButtonLabel, children: B }),
5756
+ /* @__PURE__ */ t("span", { className: O.vippsLogo, children: /* @__PURE__ */ t(ri, {}) })
5757
+ ]
5758
+ }
5759
+ ),
5760
+ K && /* @__PURE__ */ t(
5761
+ pe,
5762
+ {
5763
+ href: J,
5764
+ "data-color": "neutral",
5765
+ className: O.avtalegiroLink,
5766
+ onClick: (T) => {
5767
+ G && (T.preventDefault(), ne());
5768
+ },
5769
+ children: I
5770
+ }
5771
+ )
5358
5772
  ] })
5359
5773
  ] });
5774
+ return /* @__PURE__ */ t("div", { className: O.donor, "data-color": n, children: /* @__PURE__ */ r(
5775
+ Te,
5776
+ {
5777
+ defaultValue: "monthly",
5778
+ onChange: ee,
5779
+ "data-size": "md",
5780
+ className: O.tabsWrapper,
5781
+ children: [
5782
+ /* @__PURE__ */ r(Te.List, { children: [
5783
+ /* @__PURE__ */ t(Te.Tab, { value: "one-time", children: c }),
5784
+ /* @__PURE__ */ r(Te.Tab, { value: "monthly", children: [
5785
+ /* @__PURE__ */ t("span", { className: O.tabHeartIcon, children: /* @__PURE__ */ t(et, {}) }),
5786
+ k
5787
+ ] })
5788
+ ] }),
5789
+ /* @__PURE__ */ t(Te.Panel, { value: "one-time", className: O.tabPanel, children: P === "one-time" ? ie : null }),
5790
+ /* @__PURE__ */ t(Te.Panel, { value: "monthly", className: O.tabPanel, children: P === "monthly" ? ie : null })
5791
+ ]
5792
+ }
5793
+ ) });
5360
5794
  };
5361
- function zs(n) {
5795
+ function si(n) {
5362
5796
  return `
5363
5797
  .${n.donor} {
5364
5798
  border-radius: 16px;
@@ -5380,6 +5814,10 @@ function zs(n) {
5380
5814
  display: flex !important;
5381
5815
  width: 100% !important;
5382
5816
  }
5817
+ .${n.tabPanel} {
5818
+ width: 100%;
5819
+ padding: 0;
5820
+ }
5383
5821
  .${n.tabsWrapper} [role="tab"] {
5384
5822
  flex: 1 1 50% !important;
5385
5823
  display: inline-flex !important;
@@ -5524,72 +5962,72 @@ function zs(n) {
5524
5962
  `;
5525
5963
  }
5526
5964
  export {
5527
- hn as Alert,
5528
- Ke as Avatar,
5529
- fn as Badge,
5530
- Os as BadgePosition,
5531
- Ks as Breadcrumbs,
5532
- Ys as BreadcrumbsItem,
5533
- Zs as BreadcrumbsLink,
5534
- qs as BreadcrumbsList,
5535
- ce as Button,
5536
- vn as Card,
5537
- Xs as CardBlock,
5538
- zo as Carousel,
5539
- bn as Checkbox,
5540
- Qs as Chip,
5541
- ye as CrossCorner,
5542
- xo as DateInput,
5543
- mo as DatePicker,
5544
- ni as Details,
5545
- oi as Dialog,
5546
- ri as Divider,
5547
- Ni as Donor,
5548
- U as Dropdown,
5549
- ci as DropdownButton,
5550
- ii as DropdownHeading,
5551
- di as DropdownItem,
5552
- li as DropdownList,
5553
- ai as DropdownTrigger,
5554
- si as DropdownTriggerContext,
5555
- pi as ErrorSummary,
5556
- mi as Field,
5557
- Ko as FieldCounter,
5558
- Oo as FieldDescription,
5559
- gi as Fieldset,
5560
- Ai as Footer,
5561
- Li as Header,
5562
- qo as Heading,
5563
- Ze as Input,
5564
- Yo as Label,
5565
- ei as LanguageProvider,
5566
- te as Link,
5567
- ui as List,
5568
- Zo as Pagination,
5569
- ki as PaginationButton,
5570
- fi as PaginationItem,
5571
- hi as PaginationList,
5572
- xe as Paragraph,
5573
- bi as Popover,
5574
- yi as Radio,
5575
- Ce as Search,
5576
- Ti as Select,
5577
- Ci as SkeletonLoader,
5578
- wi as SkipLink,
5579
- Po as Spinner,
5580
- Xo as Suggestion,
5581
- Ae as Switch,
5582
- Si as Table,
5583
- we as Tabs,
5584
- Jo as Tag,
5585
- Ii as Textarea,
5586
- Qo as Textfield,
5587
- _i as ToggleGroup,
5588
- Di as Tooltip,
5589
- er as ValidationMessage,
5590
- Js as useCheckboxGroup,
5591
- ti as useLanguage,
5592
- Te as useLanguageOptional,
5593
- vi as usePagination,
5594
- xi as useRadioGroup
5965
+ jn as Alert,
5966
+ at as Avatar,
5967
+ An as Badge,
5968
+ gi as BadgePosition,
5969
+ ui as Breadcrumbs,
5970
+ fi as BreadcrumbsItem,
5971
+ ki as BreadcrumbsLink,
5972
+ hi as BreadcrumbsList,
5973
+ fe as Button,
5974
+ Nn as Card,
5975
+ vi as CardBlock,
5976
+ nr as Carousel,
5977
+ En as Checkbox,
5978
+ yi as Chip,
5979
+ Po as DateInput,
5980
+ Lo as DatePicker,
5981
+ Ci as Details,
5982
+ wi as Dialog,
5983
+ Si as Divider,
5984
+ Ji as Donor,
5985
+ oe as Dropdown,
5986
+ ji as DropdownButton,
5987
+ Li as DropdownHeading,
5988
+ Mi as DropdownItem,
5989
+ Di as DropdownList,
5990
+ _i as DropdownTrigger,
5991
+ Ii as DropdownTriggerContext,
5992
+ Ai as ErrorSummary,
5993
+ Ni as Field,
5994
+ fr as FieldCounter,
5995
+ hr as FieldDescription,
5996
+ Ei as Fieldset,
5997
+ Xi as Footer,
5998
+ je as GraphicElement,
5999
+ Yi as Header,
6000
+ rt as Heading,
6001
+ dt as Input,
6002
+ kr as Label,
6003
+ xi as LanguageProvider,
6004
+ pe as Link,
6005
+ Bi as List,
6006
+ vr as Pagination,
6007
+ $i as PaginationButton,
6008
+ Pi as PaginationItem,
6009
+ Fi as PaginationList,
6010
+ Ne as Paragraph,
6011
+ Ri as Popover,
6012
+ Gi as Radio,
6013
+ Pe as Search,
6014
+ Wi as Select,
6015
+ Ui as SkeletonLoader,
6016
+ Vi as SkipLink,
6017
+ tr as Spinner,
6018
+ br as Suggestion,
6019
+ Re as Switch,
6020
+ Oi as Table,
6021
+ Te as Tabs,
6022
+ yr as Tag,
6023
+ Ki as Textarea,
6024
+ xr as Textfield,
6025
+ Zi as ToggleGroup,
6026
+ qi as Tooltip,
6027
+ Tr as ValidationMessage,
6028
+ bi as useCheckboxGroup,
6029
+ Ti as useLanguage,
6030
+ Be as useLanguageOptional,
6031
+ zi as usePagination,
6032
+ Hi as useRadioGroup
5595
6033
  };