rk-designsystem 1.2.5 → 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,87 +1,95 @@
1
- import { jsx as t, jsxs as r, Fragment as Ge } from "react/jsx-runtime";
2
- import Le, { forwardRef as se, useState as Z, useContext as We, createContext as Ze, useEffect as R, useMemo as he, useCallback as ae, useRef as Xe } from "react";
3
- import { Alert as Je, Avatar as Qe, BadgePosition as et, Badge as tt, Breadcrumbs as nt, BreadcrumbsItem as ot, BreadcrumbsLink as rt, BreadcrumbsList as at, Button as Ae, Card as st, CardBlock as it, Checkbox as lt, useCheckboxGroup as dt, Fieldset as He, Chip as ct, Spinner as pt, Details as mt, Dialog as gt, Divider as ut, Dropdown as ht, DropdownButton as ft, DropdownHeading as kt, DropdownItem as vt, DropdownList as bt, DropdownTrigger as yt, DropdownTriggerContext as xt, ErrorSummary as Tt, Field as Ct, FieldCounter as wt, FieldDescription as St, Heading as It, Input as _t, Label as Dt, Link as Lt, List as At, Pagination as Nt, PaginationButton as Mt, PaginationItem as jt, PaginationList as Ft, usePagination as Bt, Paragraph as Et, Popover as Pt, Radio as $t, useRadioGroup as zt, Search as Rt, SearchInput as Gt, SearchClear as Wt, SearchButton as Ht, Select as Ut, Skeleton as Vt, SkipLink as Ot, EXPERIMENTAL_Suggestion as Kt, Switch as qt, Table as Yt, Tabs as Zt, Tag as Xt, Textarea as Jt, Textfield as Qt, ToggleGroup as en, Tooltip as tn, ValidationMessage as nn } from "@digdir/designsystemet-react";
4
- import { startOfMonth as ge, isValid as Se, isSameMonth as Me, startOfWeek as Ue, format as fe, addDays as Ve, subMonths as on, addMonths as rn, isSameDay as an, isToday as sn, eachDayOfInterval as ln } from "date-fns";
5
- import dn from "embla-carousel-react";
6
- import { ChevronLeftIcon as cn, ChevronRightIcon as pn, ChevronDownIcon as je, XMarkIcon as Fe, MagnifyingGlassIcon as Be, MenuHamburgerIcon as mn, HeartIcon as gn } from "@navikt/aksel-icons";
7
- const un = se((n, e) => /* @__PURE__ */ t(Je, { ref: e, ...n }));
8
- un.displayName = "Alert";
9
- const Oe = se((n, e) => /* @__PURE__ */ t(Qe, { ref: e, ...n }));
10
- Oe.displayName = "Avatar";
11
- const hn = se((n, e) => /* @__PURE__ */ t(tt, { ref: e, ...n }));
12
- hn.displayName = "Badge";
13
- const Us = et, Vs = nt, Os = at, Ks = ot, qs = rt, de = se(function({ variant: e, ...a }, d) {
14
- return /* @__PURE__ */ t(Ae, { ref: d, variant: e, ...a });
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
+ ] });
15
15
  });
16
- de.displayName = "Button";
17
- const fn = st, Ys = it;
18
- fn.displayName = "Card";
19
- const kn = lt, vn = He, Zs = dt;
20
- kn.displayName = "Checkbox";
21
- vn.displayName = "Fieldset";
22
- const Xs = ct;
23
- function Ie(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) {
24
32
  return (e = {}) => {
25
33
  const a = e.width ? String(e.width) : n.defaultWidth;
26
34
  return n.formats[a] || n.formats[n.defaultWidth];
27
35
  };
28
36
  }
29
- function ke(n) {
37
+ function _e(n) {
30
38
  return (e, a) => {
31
- const d = a != null && a.context ? String(a.context) : "standalone";
32
- let h;
33
- if (d === "formatting" && n.formattingValues) {
34
- const u = n.defaultFormattingWidth || n.defaultWidth, v = a != null && a.width ? String(a.width) : u;
35
- h = n.formattingValues[v] || n.formattingValues[u];
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];
36
44
  } else {
37
- const u = n.defaultWidth, v = a != null && a.width ? String(a.width) : n.defaultWidth;
38
- h = n.values[v] || n.values[u];
45
+ const f = n.defaultWidth, x = a != null && a.width ? String(a.width) : n.defaultWidth;
46
+ k = n.values[x] || n.values[f];
39
47
  }
40
- const k = n.argumentCallback ? n.argumentCallback(e) : e;
41
- return h[k];
48
+ const y = n.argumentCallback ? n.argumentCallback(e) : e;
49
+ return k[y];
42
50
  };
43
51
  }
44
- function ve(n) {
52
+ function Ie(n) {
45
53
  return (e, a = {}) => {
46
- const d = a.width, h = d && n.matchPatterns[d] || n.matchPatterns[n.defaultMatchWidth], k = e.match(h);
47
- if (!k)
54
+ const c = a.width, k = c && n.matchPatterns[c] || n.matchPatterns[n.defaultMatchWidth], y = e.match(k);
55
+ if (!y)
48
56
  return null;
49
- const u = k[0], v = d && n.parsePatterns[d] || n.parsePatterns[n.defaultParseWidth], M = Array.isArray(v) ? yn(v, (I) => I.test(u)) : (
57
+ const f = y[0], x = c && n.parsePatterns[c] || n.parsePatterns[n.defaultParseWidth], B = Array.isArray(x) ? Pn(x, (L) => L.test(f)) : (
50
58
  // [TODO] -- I challenge you to fix the type
51
- bn(v, (I) => I.test(u))
59
+ Fn(x, (L) => L.test(f))
52
60
  );
53
- let C;
54
- C = n.valueCallback ? n.valueCallback(M) : M, C = a.valueCallback ? (
61
+ let I;
62
+ I = n.valueCallback ? n.valueCallback(B) : B, I = a.valueCallback ? (
55
63
  // [TODO] -- I challenge you to fix the type
56
- a.valueCallback(C)
57
- ) : C;
58
- const G = e.slice(u.length);
59
- return { value: C, rest: G };
64
+ a.valueCallback(I)
65
+ ) : I;
66
+ const J = e.slice(f.length);
67
+ return { value: I, rest: J };
60
68
  };
61
69
  }
62
- function bn(n, e) {
70
+ function Fn(n, e) {
63
71
  for (const a in n)
64
72
  if (Object.prototype.hasOwnProperty.call(n, a) && e(n[a]))
65
73
  return a;
66
74
  }
67
- function yn(n, e) {
75
+ function Pn(n, e) {
68
76
  for (let a = 0; a < n.length; a++)
69
77
  if (e(n[a]))
70
78
  return a;
71
79
  }
72
- function xn(n) {
80
+ function $n(n) {
73
81
  return (e, a = {}) => {
74
- const d = e.match(n.matchPattern);
75
- if (!d) return null;
76
- const h = d[0], k = e.match(n.parsePattern);
77
- if (!k) return null;
78
- let u = n.valueCallback ? n.valueCallback(k[0]) : k[0];
79
- u = a.valueCallback ? a.valueCallback(u) : u;
80
- const v = e.slice(h.length);
81
- return { value: u, rest: v };
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 };
82
90
  };
83
91
  }
84
- const Tn = {
92
+ const zn = {
85
93
  lessThanXSeconds: {
86
94
  one: "mindre enn ett sekund",
87
95
  other: "mindre enn {{count}} sekunder"
@@ -143,54 +151,54 @@ const Tn = {
143
151
  one: "nesten ett år",
144
152
  other: "nesten {{count}} år"
145
153
  }
146
- }, Cn = (n, e, a) => {
147
- let d;
148
- const h = Tn[n];
149
- 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;
150
- }, wn = {
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 = {
151
159
  full: "EEEE d. MMMM y",
152
160
  long: "d. MMMM y",
153
161
  medium: "d. MMM y",
154
162
  short: "dd.MM.y"
155
- }, Sn = {
163
+ }, Hn = {
156
164
  full: "'kl'. HH:mm:ss zzzz",
157
165
  long: "HH:mm:ss z",
158
166
  medium: "HH:mm:ss",
159
167
  short: "HH:mm"
160
- }, In = {
168
+ }, Wn = {
161
169
  full: "{{date}} 'kl.' {{time}}",
162
170
  long: "{{date}} 'kl.' {{time}}",
163
171
  medium: "{{date}} {{time}}",
164
172
  short: "{{date}} {{time}}"
165
- }, _n = {
166
- date: Ie({
167
- formats: wn,
173
+ }, Un = {
174
+ date: $e({
175
+ formats: Gn,
168
176
  defaultWidth: "full"
169
177
  }),
170
- time: Ie({
171
- formats: Sn,
178
+ time: $e({
179
+ formats: Hn,
172
180
  defaultWidth: "full"
173
181
  }),
174
- dateTime: Ie({
175
- formats: In,
182
+ dateTime: $e({
183
+ formats: Wn,
176
184
  defaultWidth: "full"
177
185
  })
178
- }, Dn = {
186
+ }, Vn = {
179
187
  lastWeek: "'forrige' eeee 'kl.' p",
180
188
  yesterday: "'i går kl.' p",
181
189
  today: "'i dag kl.' p",
182
190
  tomorrow: "'i morgen kl.' p",
183
191
  nextWeek: "EEEE 'kl.' p",
184
192
  other: "P"
185
- }, Ln = (n, e, a, d) => Dn[n], An = {
193
+ }, On = (n, e, a, c) => Vn[n], Kn = {
186
194
  narrow: ["f.Kr.", "e.Kr."],
187
195
  abbreviated: ["f.Kr.", "e.Kr."],
188
196
  wide: ["før Kristus", "etter Kristus"]
189
- }, Nn = {
197
+ }, Zn = {
190
198
  narrow: ["1", "2", "3", "4"],
191
199
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
192
200
  wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
193
- }, Mn = {
201
+ }, qn = {
194
202
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
195
203
  abbreviated: [
196
204
  "jan.",
@@ -220,7 +228,7 @@ const Tn = {
220
228
  "november",
221
229
  "desember"
222
230
  ]
223
- }, jn = {
231
+ }, Yn = {
224
232
  narrow: ["S", "M", "T", "O", "T", "F", "L"],
225
233
  short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
226
234
  abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
@@ -233,7 +241,7 @@ const Tn = {
233
241
  "fredag",
234
242
  "lørdag"
235
243
  ]
236
- }, Fn = {
244
+ }, Xn = {
237
245
  narrow: {
238
246
  am: "a",
239
247
  pm: "p",
@@ -264,46 +272,46 @@ const Tn = {
264
272
  evening: "på kvelden",
265
273
  night: "på natten"
266
274
  }
267
- }, Bn = (n, e) => Number(n) + ".", En = {
268
- ordinalNumber: Bn,
269
- era: ke({
270
- values: An,
275
+ }, Jn = (n, e) => Number(n) + ".", Qn = {
276
+ ordinalNumber: Jn,
277
+ era: _e({
278
+ values: Kn,
271
279
  defaultWidth: "wide"
272
280
  }),
273
- quarter: ke({
274
- values: Nn,
281
+ quarter: _e({
282
+ values: Zn,
275
283
  defaultWidth: "wide",
276
284
  argumentCallback: (n) => n - 1
277
285
  }),
278
- month: ke({
279
- values: Mn,
286
+ month: _e({
287
+ values: qn,
280
288
  defaultWidth: "wide"
281
289
  }),
282
- day: ke({
283
- values: jn,
290
+ day: _e({
291
+ values: Yn,
284
292
  defaultWidth: "wide"
285
293
  }),
286
- dayPeriod: ke({
287
- values: Fn,
294
+ dayPeriod: _e({
295
+ values: Xn,
288
296
  defaultWidth: "wide"
289
297
  })
290
- }, Pn = /^(\d+)\.?/i, $n = /\d+/i, zn = {
298
+ }, eo = /^(\d+)\.?/i, to = /\d+/i, no = {
291
299
  narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
292
300
  abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
293
301
  wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
294
- }, Rn = {
302
+ }, oo = {
295
303
  any: [/^f/i, /^e/i]
296
- }, Gn = {
304
+ }, ro = {
297
305
  narrow: /^[1234]/i,
298
306
  abbreviated: /^q[1234]/i,
299
307
  wide: /^[1234](\.)? kvartal/i
300
- }, Wn = {
308
+ }, ao = {
301
309
  any: [/1/i, /2/i, /3/i, /4/i]
302
- }, Hn = {
310
+ }, so = {
303
311
  narrow: /^[jfmasond]/i,
304
312
  abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
305
313
  wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
306
- }, Un = {
314
+ }, io = {
307
315
  narrow: [
308
316
  /^j/i,
309
317
  /^f/i,
@@ -332,17 +340,17 @@ const Tn = {
332
340
  /^n/i,
333
341
  /^d/i
334
342
  ]
335
- }, Vn = {
343
+ }, lo = {
336
344
  narrow: /^[smtofl]/i,
337
345
  short: /^(sø|ma|ti|on|to|fr|lø)/i,
338
346
  abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
339
347
  wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
340
- }, On = {
348
+ }, co = {
341
349
  any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
342
- }, Kn = {
350
+ }, po = {
343
351
  narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
344
352
  any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
345
- }, qn = {
353
+ }, mo = {
346
354
  any: {
347
355
  am: /^a(\.?\s?m\.?)?$/i,
348
356
  pm: /^p(\.?\s?m\.?)?$/i,
@@ -353,55 +361,55 @@ const Tn = {
353
361
  evening: /kveld/i,
354
362
  night: /natt/i
355
363
  }
356
- }, Yn = {
357
- ordinalNumber: xn({
358
- matchPattern: Pn,
359
- parsePattern: $n,
364
+ }, go = {
365
+ ordinalNumber: $n({
366
+ matchPattern: eo,
367
+ parsePattern: to,
360
368
  valueCallback: (n) => parseInt(n, 10)
361
369
  }),
362
- era: ve({
363
- matchPatterns: zn,
370
+ era: Ie({
371
+ matchPatterns: no,
364
372
  defaultMatchWidth: "wide",
365
- parsePatterns: Rn,
373
+ parsePatterns: oo,
366
374
  defaultParseWidth: "any"
367
375
  }),
368
- quarter: ve({
369
- matchPatterns: Gn,
376
+ quarter: Ie({
377
+ matchPatterns: ro,
370
378
  defaultMatchWidth: "wide",
371
- parsePatterns: Wn,
379
+ parsePatterns: ao,
372
380
  defaultParseWidth: "any",
373
381
  valueCallback: (n) => n + 1
374
382
  }),
375
- month: ve({
376
- matchPatterns: Hn,
383
+ month: Ie({
384
+ matchPatterns: so,
377
385
  defaultMatchWidth: "wide",
378
- parsePatterns: Un,
386
+ parsePatterns: io,
379
387
  defaultParseWidth: "any"
380
388
  }),
381
- day: ve({
382
- matchPatterns: Vn,
389
+ day: Ie({
390
+ matchPatterns: lo,
383
391
  defaultMatchWidth: "wide",
384
- parsePatterns: On,
392
+ parsePatterns: co,
385
393
  defaultParseWidth: "any"
386
394
  }),
387
- dayPeriod: ve({
388
- matchPatterns: Kn,
395
+ dayPeriod: Ie({
396
+ matchPatterns: po,
389
397
  defaultMatchWidth: "any",
390
- parsePatterns: qn,
398
+ parsePatterns: mo,
391
399
  defaultParseWidth: "any"
392
400
  })
393
- }, ue = {
401
+ }, he = {
394
402
  code: "nb",
395
- formatDistance: Cn,
396
- formatLong: _n,
397
- formatRelative: Ln,
398
- localize: En,
399
- match: Yn,
403
+ formatDistance: Rn,
404
+ formatLong: Un,
405
+ formatRelative: On,
406
+ localize: Qn,
407
+ match: go,
400
408
  options: {
401
409
  weekStartsOn: 1,
402
410
  firstWeekContainsDate: 4
403
411
  }
404
- }, Ke = ({ title: n, ...e }) => /* @__PURE__ */ r(
412
+ }, st = ({ title: n, ...e }) => /* @__PURE__ */ r(
405
413
  "svg",
406
414
  {
407
415
  xmlns: "http://www.w3.org/2000/svg",
@@ -426,8 +434,8 @@ const Tn = {
426
434
  ]
427
435
  }
428
436
  );
429
- Ke.displayName = "ChevronLeftIcon";
430
- const qe = ({ title: n, ...e }) => /* @__PURE__ */ r(
437
+ st.displayName = "ChevronLeftIcon";
438
+ const it = ({ title: n, ...e }) => /* @__PURE__ */ r(
431
439
  "svg",
432
440
  {
433
441
  xmlns: "http://www.w3.org/2000/svg",
@@ -452,20 +460,21 @@ const qe = ({ title: n, ...e }) => /* @__PURE__ */ r(
452
460
  ]
453
461
  }
454
462
  );
455
- qe.displayName = "ChevronRightIcon";
456
- const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "_monthYear_htlea_23", Qn = "_navigationButtons_htlea_34", eo = "_grid_htlea_43", to = "_dayNameCell_htlea_51", no = "_dateCell_htlea_69", oo = "_dateNumberContainer_htlea_95", ro = "_otherMonth_htlea_108", ao = "_disabled_htlea_108", so = "_selectedDate_htlea_134", oe = {
457
- calendarContainer: Zn,
458
- calendarHeader: Xn,
459
- monthYear: Jn,
460
- navigationButtons: Qn,
461
- grid: eo,
462
- dayNameCell: to,
463
- dateCell: no,
464
- dateNumberContainer: oo,
465
- otherMonth: ro,
466
- disabled: ao,
467
- selectedDate: so
468
- }, io = {
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 = {
469
478
  NO: {
470
479
  // Header
471
480
  header: {
@@ -486,6 +495,7 @@ const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "
486
495
  suggestions: "Forslag til søk",
487
496
  viewAll: "Vis alle resultater",
488
497
  noResults: "Ingen treff funnet for",
498
+ suggestionCount: "{count} forslag",
489
499
  selectLanguage: "Velg språk",
490
500
  homeAriaLabel: "Norges Røde Kors Hjem",
491
501
  nav: {
@@ -493,6 +503,7 @@ const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "
493
503
  components: "Komponenter",
494
504
  code: "Kode",
495
505
  tokens: "Tokens",
506
+ skipToContent: "Hopp til hovedinnhold",
496
507
  work: "Vårt arbeid",
497
508
  volunteer: "Bli frivillig",
498
509
  courses: "Kurs og opplæring"
@@ -502,6 +513,16 @@ const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "
502
513
  home: {
503
514
  heroTitle: "Røde Kors Designsystem",
504
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
+ },
505
526
  searchComponents: "Søk i komponenter",
506
527
  exploreSystem: "Utforsk systemet",
507
528
  componentsDesc: "Bibliotek med ferdige React-komponenter.",
@@ -510,6 +531,11 @@ const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "
510
531
  tokensDesc: "Design tokens, farger og spacing.",
511
532
  universalDesign: "Universell utforming",
512
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
+ },
513
539
  readGuidelines: "Les retningslinjene",
514
540
  consistentBrand: "Konsistent merkevare",
515
541
  consistentBrandText: "Design tokens sikrer at Røde Kors sin visuelle profil ivaretas på alle flater.",
@@ -581,7 +607,11 @@ const Zn = "_calendarContainer_htlea_1", Xn = "_calendarHeader_htlea_16", Jn = "
581
607
  intro: "Designsystemet inneholder grunnleggende komponenter som kan settes sammen på mange ulike måter og i forskjellige mønstre.",
582
608
  searchPlaceholder: "Søk etter komponent...",
583
609
  searchAriaLabel: "Søk i komponenter",
584
- 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"
585
615
  },
586
616
  // Code Page
587
617
  code: {
@@ -1495,7 +1525,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1495
1525
  previousImage: "Forrige bilde",
1496
1526
  nextImage: "Neste bilde",
1497
1527
  imagePosition: "Bildeposisjon",
1498
- goToImage: "Gå til bilde"
1528
+ goToImage: "Gå til bilde",
1529
+ pauseAutoplay: "Pause automatisk avspilling",
1530
+ resumeAutoplay: "Start automatisk avspilling"
1499
1531
  },
1500
1532
  // DatePicker
1501
1533
  datePicker: {
@@ -1527,6 +1559,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1527
1559
  suggestions: "Search suggestions",
1528
1560
  viewAll: "View all results",
1529
1561
  noResults: "No results found for",
1562
+ suggestionCount: "{count} suggestions",
1530
1563
  selectLanguage: "Select language",
1531
1564
  homeAriaLabel: "Norwegian Red Cross Home",
1532
1565
  nav: {
@@ -1534,6 +1567,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1534
1567
  components: "Components",
1535
1568
  code: "Code",
1536
1569
  tokens: "Tokens",
1570
+ skipToContent: "Skip to main content",
1537
1571
  work: "Our Work",
1538
1572
  volunteer: "Volunteer",
1539
1573
  courses: "Courses & Training"
@@ -1543,6 +1577,16 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1543
1577
  home: {
1544
1578
  heroTitle: "Red Cross Design System",
1545
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
+ },
1546
1590
  searchComponents: "Search components",
1547
1591
  exploreSystem: "Explore the system",
1548
1592
  componentsDesc: "Library with ready-made React components.",
@@ -1551,6 +1595,11 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1551
1595
  tokensDesc: "Design tokens, colors, and spacing.",
1552
1596
  universalDesign: "Universal Design",
1553
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
+ },
1554
1603
  readGuidelines: "Read guidelines",
1555
1604
  consistentBrand: "Consistent Brand",
1556
1605
  consistentBrandText: "Design tokens ensure the Red Cross visual profile is maintained across all surfaces.",
@@ -1622,7 +1671,11 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
1622
1671
  intro: "The design system contains fundamental components that can be combined in many different ways and in different patterns.",
1623
1672
  searchPlaceholder: "Search for component...",
1624
1673
  searchAriaLabel: "Search components",
1625
- 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"
1626
1679
  },
1627
1680
  // Code Page
1628
1681
  code: {
@@ -2538,7 +2591,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2538
2591
  previousImage: "Previous image",
2539
2592
  nextImage: "Next image",
2540
2593
  imagePosition: "Image position",
2541
- goToImage: "Go to image"
2594
+ goToImage: "Go to image",
2595
+ pauseAutoplay: "Pause autoplay",
2596
+ resumeAutoplay: "Resume autoplay"
2542
2597
  },
2543
2598
  // DatePicker
2544
2599
  datePicker: {
@@ -2550,25 +2605,25 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2550
2605
  openDatePicker: "Open date picker"
2551
2606
  }
2552
2607
  }
2553
- }, Ne = Ze(void 0), Js = ({ children: n }) => {
2554
- const [e, a] = Z("NO"), d = (h) => {
2555
- const k = h.split(".");
2556
- let u = io[e];
2557
- for (const v of k) {
2558
- if (u[v] === void 0)
2559
- return console.warn(`Translation missing for key: ${h} in language: ${e}`), h;
2560
- u = u[v];
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];
2561
2616
  }
2562
- return u;
2617
+ return f;
2563
2618
  };
2564
- return /* @__PURE__ */ t(Ne.Provider, { value: { language: e, setLanguage: a, t: d }, children: n });
2565
- }, Qs = () => {
2566
- const n = We(Ne);
2619
+ return /* @__PURE__ */ t(Ue.Provider, { value: { language: e, setLanguage: a, t: c }, children: n });
2620
+ }, Ti = () => {
2621
+ const n = nt(Ue);
2567
2622
  if (n === void 0)
2568
2623
  throw new Error("useLanguage must be used within a LanguageProvider");
2569
2624
  return n;
2570
- }, xe = () => {
2571
- const n = We(Ne);
2625
+ }, Be = () => {
2626
+ const n = nt(Ue);
2572
2627
  return n === void 0 ? {
2573
2628
  language: "NO",
2574
2629
  setLanguage: () => {
@@ -2595,6 +2650,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2595
2650
  "header.suggestions": "Forslag",
2596
2651
  "header.viewAll": "Se alle",
2597
2652
  "header.noResults": "Ingen resultater for",
2653
+ "header.suggestionCount": "{count} forslag",
2598
2654
  // Footer translations
2599
2655
  "footer.shortcuts": "Snarveier",
2600
2656
  "footer.shortcutsLinks.services": "Tilbudene",
@@ -2621,6 +2677,8 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2621
2677
  "carousel.nextImage": "Neste bilde",
2622
2678
  "carousel.imagePosition": "Bildeposisjon",
2623
2679
  "carousel.goToImage": "Gå til bilde",
2680
+ "carousel.pauseAutoplay": "Pause automatisk avspilling",
2681
+ "carousel.resumeAutoplay": "Start automatisk avspilling",
2624
2682
  // DatePicker translations
2625
2683
  "datePicker.previousMonth": "Forrige måned",
2626
2684
  "datePicker.nextMonth": "Neste måned",
@@ -2628,122 +2686,182 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
2628
2686
  "dateInput.openDatePicker": "Åpne datovelger"
2629
2687
  })[e] || e
2630
2688
  } : n;
2631
- }, lo = (n) => {
2632
- const e = ge(n), a = Ue(e, { locale: ue }), d = Ve(a, 41);
2633
- return ln({ start: a, end: d });
2634
- }, Ee = (n) => n && n.charAt(0).toUpperCase() + n.slice(1), co = ({
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 = ({
2635
2696
  initialDate: n = /* @__PURE__ */ new Date(),
2636
2697
  selectedDate: e = null,
2637
- // Prop for valgt dato
2638
2698
  onDateSelect: a,
2639
- "data-color": d,
2640
- // <-- Destrukturert
2641
- "data-size": h
2642
- // <-- Destrukturert
2699
+ "data-color": c,
2700
+ "data-size": k
2643
2701
  }) => {
2644
- const { t: k } = xe();
2645
- R(() => {
2646
- const m = "rk-datepicker-inline-styles";
2647
- if (typeof document > "u" || document.getElementById(m)) return;
2648
- const L = po(oe), w = document.createElement("style");
2649
- w.id = m, w.textContent = L, document.head.appendChild(w);
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);
2650
2708
  }, []);
2651
- const [u, v] = Z(
2652
- ge(e && Se(e) ? e : n)
2653
- );
2654
- R(() => {
2655
- if (e && Se(e)) {
2656
- const m = ge(e);
2657
- Me(m, u) || v(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
+ );
2658
2721
  }
2659
- }, [e]);
2660
- const M = he(() => ge(/* @__PURE__ */ new Date()), []), C = he(() => !1, [u, M]), G = he(
2661
- () => lo(u),
2662
- [u]
2663
- ), I = he(() => {
2664
- const m = Ue(/* @__PURE__ */ new Date(), { locale: ue });
2665
- return Array.from({ length: 7 }).map((L, w) => {
2666
- const j = fe(Ve(m, w), "EEEEEE", { locale: ue });
2667
- return Ee(j);
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;
2668
2749
  });
2669
- }, []), V = ae(() => {
2670
- C || v((m) => ge(on(m, 1)));
2671
- }, [C]), D = ae(() => {
2672
- v((m) => ge(rn(m, 1)));
2673
- }, []), p = ae(
2674
- (m) => {
2675
- a && a(m);
2750
+ }, []), K = ce(() => {
2751
+ x((d) => {
2752
+ const l = be(Oe(d, 1));
2753
+ return I((v) => Le(v, l)), l;
2754
+ });
2755
+ }, []), N = ce(
2756
+ (d) => {
2757
+ I(d), a == null || a(d);
2676
2758
  },
2677
2759
  [a]
2678
- ), X = ae(
2679
- (m, L) => {
2680
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), p(L));
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
+ }
2681
2796
  },
2682
- [p]
2683
- ), ne = fe(u, "MMMM", { locale: ue }), _ = fe(u, "yyyy", { locale: ue }), J = `${Ee(ne)} ${_}`;
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);
2684
2799
  return /* @__PURE__ */ r(
2685
2800
  "div",
2686
2801
  {
2687
- className: oe.calendarContainer,
2688
- "data-color": d,
2689
- "data-size": h,
2802
+ className: de.calendarContainer,
2803
+ "data-color": c,
2804
+ "data-size": k,
2690
2805
  children: [
2691
- /* @__PURE__ */ r("div", { className: oe.calendarHeader, children: [
2692
- /* @__PURE__ */ t("span", { className: oe.monthYear, children: J }),
2693
- /* @__PURE__ */ r("div", { className: oe.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: [
2694
2809
  /* @__PURE__ */ t(
2695
- Ae,
2810
+ Ge,
2696
2811
  {
2697
2812
  variant: "tertiary",
2698
2813
  icon: !0,
2699
- onClick: V,
2700
- "aria-label": k("datePicker.previousMonth"),
2701
- disabled: C,
2702
- children: /* @__PURE__ */ t(Ke, {})
2814
+ onClick: Q,
2815
+ "aria-label": y("datePicker.previousMonth"),
2816
+ children: /* @__PURE__ */ t(st, {})
2703
2817
  }
2704
2818
  ),
2705
2819
  /* @__PURE__ */ t(
2706
- Ae,
2820
+ Ge,
2707
2821
  {
2708
2822
  variant: "tertiary",
2709
2823
  icon: !0,
2710
- onClick: D,
2711
- "aria-label": k("datePicker.nextMonth"),
2712
- children: /* @__PURE__ */ t(qe, {})
2824
+ onClick: K,
2825
+ "aria-label": y("datePicker.nextMonth"),
2826
+ children: /* @__PURE__ */ t(it, {})
2713
2827
  }
2714
2828
  )
2715
2829
  ] })
2716
2830
  ] }),
2717
- /* @__PURE__ */ t("div", { className: oe.grid, children: I.map((m) => /* @__PURE__ */ t("div", { className: oe.dayNameCell, children: m }, m)) }),
2718
- /* @__PURE__ */ t("div", { className: oe.grid, children: G.map((m) => {
2719
- const L = Me(m, u), w = e && Se(e) && an(m, e), j = sn(m), A = [
2720
- oe.dateCell,
2721
- L ? "" : oe.otherMonth,
2722
- w ? oe.selectedDate : "",
2723
- // Utheving basert på prop
2724
- j && !w ? oe.todayDate : ""
2725
- ].filter(Boolean).join(" ");
2726
- return /* @__PURE__ */ t(
2727
- "div",
2728
- {
2729
- className: A,
2730
- onClick: () => p(m),
2731
- onKeyDown: (F) => X(F, m),
2732
- role: "button",
2733
- tabIndex: 0,
2734
- "aria-pressed": w ?? !1,
2735
- "aria-label": fe(m, "PPP", { locale: ue }),
2736
- children: /* @__PURE__ */ t("span", { className: oe.dateNumberContainer, children: fe(m, "d") })
2737
- },
2738
- m.toISOString()
2739
- );
2740
- }) })
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
+ ] })
2741
2859
  ]
2742
2860
  }
2743
2861
  );
2744
2862
  };
2745
- co.displayName = "DatePicker";
2746
- function po(n) {
2863
+ Lo.displayName = "DatePicker";
2864
+ function Do(n) {
2747
2865
  return `
2748
2866
  .${n.calendarContainer} {
2749
2867
  display: inline-flex;
@@ -2780,12 +2898,15 @@ function po(n) {
2780
2898
  .${n.navigationButtons} > button:disabled svg {
2781
2899
  opacity: var(--ds-opacity-disabled, 0.3);
2782
2900
  }
2783
- .${n.grid} {
2901
+ .${n.gridWrapper} {
2902
+ width: 100%;
2903
+ overflow: hidden;
2904
+ }
2905
+ .${n.gridRow} {
2784
2906
  display: grid;
2785
2907
  grid-template-columns: repeat(7, 1fr);
2786
2908
  width: 100%;
2787
2909
  text-align: center;
2788
- overflow: hidden;
2789
2910
  }
2790
2911
  .${n.dayNameCell} {
2791
2912
  display: flex;
@@ -2822,6 +2943,12 @@ function po(n) {
2822
2943
  user-select: none;
2823
2944
  min-width: 0;
2824
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
+ }
2825
2952
  .${n.dateNumberContainer} {
2826
2953
  display: flex;
2827
2954
  justify-content: center;
@@ -2873,11 +3000,11 @@ function po(n) {
2873
3000
  }
2874
3001
  .${n.dayNameCell} {
2875
3002
  padding: var(--ds-size-1, 4px);
2876
- font-size: var(--ds-body-2xs-font-size, 12px);
3003
+ font-size: var(--ds-font-size-1, 12px);
2877
3004
  }
2878
3005
  .${n.dateCell} {
2879
3006
  padding: var(--ds-size-2, 8px);
2880
- font-size: var(--ds-body-2xs-font-size, 12px);
3007
+ font-size: var(--ds-font-size-1, 12px);
2881
3008
  }
2882
3009
  .${n.dateNumberContainer} {
2883
3010
  width: 20px;
@@ -2903,203 +3030,191 @@ function po(n) {
2903
3030
  }
2904
3031
  `;
2905
3032
  }
2906
- const mo = "_fieldset_16fx7_2", go = "_description_16fx7_14", uo = "_error_16fx7_21", ho = "_inputWrapper_16fx7_30", fo = "_inputWrapperError_16fx7_42", ko = "_suffixButton_16fx7_80", vo = "_suffixButtonInteractive_16fx7_100", le = {
2907
- fieldset: mo,
2908
- description: go,
2909
- error: uo,
2910
- inputWrapper: ho,
2911
- inputWrapperError: fo,
2912
- suffixButton: ko,
2913
- suffixButtonInteractive: vo
2914
- }, Pe = (n) => {
2915
- const e = n.slice(0, 2), a = n.slice(2, 4), d = n.slice(4, 8);
2916
- return n.length > 4 ? `${e}.${a}.${d}` : n.length > 2 ? `${e}.${a}` : n.length > 0 ? e : "";
2917
- }, $e = (n) => (n || "").replace(/\D/g, ""), ze = (n) => {
2918
- let e = n;
2919
- if (e.length >= 2) {
2920
- const a = parseInt(e.substring(0, 2), 10);
2921
- !isNaN(a) && a > 31 && (e = "31" + e.substring(2));
2922
- }
2923
- if (e.length >= 4) {
2924
- const a = parseInt(e.substring(2, 4), 10);
2925
- !isNaN(a) && a > 12 && (e = e.substring(0, 2) + "12" + e.substring(4));
2926
- }
2927
- return e.slice(0, 8);
2928
- }, bo = se(
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(
2929
3049
  (n, e) => {
2930
- const { t: a } = xe();
2931
- R(() => {
2932
- const c = "rk-dateinput-inline-styles";
2933
- if (typeof document > "u" || document.getElementById(c)) return;
2934
- const T = yo(le), $ = document.createElement("style");
2935
- $.id = c, $.textContent = T, 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);
2936
3056
  }, []);
2937
3057
  const {
2938
- label: d,
2939
- suffixIcon: h,
2940
- onSuffixClick: k,
2941
- className: u,
2942
- // For ytre fieldset
2943
- inputWrapperClassName: v,
2944
- // For input wrapper div
2945
- inputClassName: M,
2946
- // For selve input-elementet
2947
- value: C,
2948
- defaultValue: G,
2949
- onChange: I,
2950
- readOnly: V,
2951
- placeholder: D = "dd.mm.åååå",
2952
- id: p,
2953
- name: X,
2954
- required: ne,
2955
- disabled: _,
2956
- onClick: J,
2957
- onFocus: m,
2958
- // Send ekstern onFocus videre
2959
- onBlur: L,
2960
- // Send ekstern onBlur videre
2961
- autoComplete: w = "off",
2962
- "aria-label": j,
2963
- "aria-labelledby": A,
2964
- description: F,
2965
- error: O,
2966
- // Bruk error-prop for styling
2967
- "data-color": Q,
2968
- // <-- Destrukturering
2969
- "data-size": P,
2970
- // <-- Destrukturering
2971
- ...B
2972
- } = n, E = C !== void 0, f = Xe(null);
2973
- Le.useImperativeHandle(
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,
3071
+ name: K,
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(
2974
3087
  e,
2975
- () => f.current
3088
+ () => g.current
2976
3089
  );
2977
- const l = ae(
2978
- (c) => {
2979
- const T = $e(c), $ = ze(T);
2980
- return Pe($);
3090
+ const se = Ee(null), ee = ce(
3091
+ (A, ae) => {
3092
+ A !== se.current && (se.current = A, R == null || R(A, ae));
2981
3093
  },
3094
+ [R]
3095
+ ), te = ce(
3096
+ (A) => Me(ze(A)),
2982
3097
  []
2983
- ), [y, ee] = Z(
2984
- () => l(C ?? G)
3098
+ ), [ne, z] = Z(
3099
+ () => te(I ?? J)
2985
3100
  );
2986
- R(() => {
2987
- if (E) {
2988
- const c = l(C);
2989
- c !== y && (ee(c), f.current && f.current.value !== c && (f.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));
2990
3105
  }
2991
- }, [C, E, y, l]);
2992
- const H = ae(
2993
- (c) => {
2994
- const T = c.target, $ = T.value, q = y, ie = $e($).slice(0, 8), i = ze(ie), g = Pe(i);
2995
- let b = 0;
2996
- const Y = i.length;
2997
- Y <= 2 ? b = Y : Y <= 4 ? b = Y + 1 : b = Y + 2, b = Math.min(b, g.length), requestAnimationFrame(() => {
2998
- if (f.current && (ee(g), f.current.value = g, f.current.setSelectionRange(b, b), (g !== q || E) && I)) {
2999
- const we = {
3000
- ...c,
3001
- target: { ...T, value: g }
3002
- };
3003
- I(we, g);
3004
- }
3005
- });
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);
3006
3121
  },
3007
- [y, E, I, l]
3008
- ), S = [le.fieldset, u].filter(Boolean).join(" "), N = [
3009
- le.inputWrapper,
3010
- v,
3011
- O ? le.inputWrapperError : ""
3012
- ].filter(Boolean).join(" "), K = [
3013
- M
3014
- ].filter(Boolean).join(" "), x = [
3015
- le.suffixButton,
3016
- k ? le.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 : ""
3017
3132
  ].filter(Boolean).join(" ");
3018
- !d && !j && !A && console.warn("Advarsel: DateInput-komponenten bør ha label, aria-label, eller aria-labelledby for tilgjengelighet.");
3019
- const te = d && typeof d == "string" ? A || `${p}-label` : void 0, me = F ? `${p}-desc` : void 0, ce = O ? `${p}-err` : void 0, pe = [me, ce].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;
3020
3135
  return (
3021
3136
  // --- Bruk data-color og data-size på den ytre wrapperen ---
3022
3137
  /* @__PURE__ */ r(
3023
3138
  "div",
3024
3139
  {
3025
- className: S,
3026
- "data-color": Q,
3027
- "data-size": P,
3140
+ className: h,
3141
+ "data-color": v,
3142
+ "data-size": S,
3028
3143
  children: [
3029
- d && typeof d == "string" ? /* @__PURE__ */ t("label", { id: te, htmlFor: p, children: d }) : d,
3030
- F && /* @__PURE__ */ t("p", { id: me, className: le.description, children: F }),
3031
- /* @__PURE__ */ r("div", { className: N, 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: [
3032
3147
  /* @__PURE__ */ t(
3033
3148
  "input",
3034
3149
  {
3035
- ref: f,
3150
+ ref: g,
3036
3151
  type: "text",
3037
3152
  inputMode: "numeric",
3038
3153
  pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
3039
3154
  maxLength: 10,
3040
- value: y,
3041
- readOnly: V,
3042
- placeholder: D,
3043
- id: p,
3044
- name: X,
3045
- required: ne,
3046
- disabled: _,
3047
- onClick: J,
3048
- onChange: H,
3049
- onFocus: m,
3050
- onBlur: L,
3051
- autoComplete: w,
3052
- "aria-label": j,
3053
- "aria-labelledby": te,
3054
- "aria-describedby": pe,
3055
- "aria-invalid": !!O,
3056
- className: K,
3057
- ...B
3155
+ value: ne,
3156
+ readOnly: G,
3157
+ placeholder: p,
3158
+ id: M,
3159
+ name: K,
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
3058
3173
  }
3059
3174
  ),
3060
- h && /* @__PURE__ */ t(
3175
+ k && /* @__PURE__ */ t(
3061
3176
  "button",
3062
3177
  {
3063
3178
  type: "button",
3064
- className: x,
3065
- onClick: _ ? void 0 : k,
3066
- tabIndex: k && !_ ? 0 : -1,
3067
- "aria-hidden": !k,
3068
- disabled: _,
3069
- "aria-label": k ? a("dateInput.openDatePicker") : void 0,
3070
- 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
3071
3186
  }
3072
3187
  )
3073
3188
  ] }),
3074
- O && /* @__PURE__ */ t("p", { id: ce, className: le.error, role: "alert", children: O })
3189
+ l && /* @__PURE__ */ t("p", { id: ge, className: ue.error, role: "alert", children: l })
3075
3190
  ]
3076
3191
  }
3077
3192
  )
3078
3193
  );
3079
3194
  }
3080
3195
  );
3081
- bo.displayName = "DateInput";
3082
- function yo(n) {
3196
+ Po.displayName = "DateInput";
3197
+ function $o(n) {
3083
3198
  return `
3084
3199
  .${n.fieldset} {
3085
- margin-bottom: var(--ds-spacing-4, 16px);
3200
+ margin-bottom: var(--ds-size-4, 16px);
3086
3201
  }
3087
3202
  .${n.fieldset} label {
3088
3203
  display: block;
3089
- margin-bottom: var(--ds-spacing-1, 4px);
3204
+ margin-bottom: var(--ds-size-1, 4px);
3090
3205
  font-weight: var(--ds-font-weight-medium, 500);
3091
3206
  color: var(--ds-color-text-default, #2b2b2b);
3092
3207
  }
3093
3208
  .${n.description} {
3094
- font-size: var(--ds-font-size-sm, 14px);
3209
+ font-size: var(--ds-font-size-2, 14px);
3095
3210
  color: var(--ds-color-text-subtle, #5d5d5d);
3096
- margin-top: var(--ds-spacing-1, 4px);
3097
- margin-bottom: var(--ds-spacing-2, 8px);
3211
+ margin-top: var(--ds-size-1, 4px);
3212
+ margin-bottom: var(--ds-size-2, 8px);
3098
3213
  }
3099
3214
  .${n.error} {
3100
- font-size: var(--ds-font-size-sm, 14px);
3215
+ font-size: var(--ds-font-size-2, 14px);
3101
3216
  color: var(--ds-color-danger-text-default, #c30000);
3102
- margin-top: var(--ds-spacing-1, 4px);
3217
+ margin-top: var(--ds-size-1, 4px);
3103
3218
  }
3104
3219
  .${n.inputWrapper} {
3105
3220
  display: flex;
@@ -3116,7 +3231,7 @@ function yo(n) {
3116
3231
  }
3117
3232
  .${n.inputWrapper}:focus-within {
3118
3233
  outline: var(--ds-border-width-focus, 3px) solid var(--ds-color-focus-outer, #2B2B2B);
3119
- outline-offset: var(--ds-focus-outline-offset, 2px);
3234
+ outline-offset: var(--ds-border-width-focus, 2px);
3120
3235
  }
3121
3236
  .${n.inputWrapper} input {
3122
3237
  box-sizing: border-box;
@@ -3137,7 +3252,7 @@ function yo(n) {
3137
3252
  .${n.inputWrapper} input:disabled {
3138
3253
  opacity: var(--ds-opacity-disabled, 0.5);
3139
3254
  cursor: not-allowed;
3140
- background-color: var(--ds-color-neutral-surface-subtle, #f0f0f0);
3255
+ background-color: var(--ds-color-neutral-surface-tinted, #f0f0f0);
3141
3256
  color: var(--ds-color-neutral-text-subtle, #5d5d5d);
3142
3257
  }
3143
3258
  .${n.suffixButton} {
@@ -3172,173 +3287,204 @@ function yo(n) {
3172
3287
  }
3173
3288
  `;
3174
3289
  }
3175
- const xo = "_carouselContainer_eo3g5_1", To = "_viewport_eo3g5_14", Co = "_slides_eo3g5_20", wo = "_slide_eo3g5_20", So = "_slideInner_eo3g5_40", Io = "_loaderOverlay_eo3g5_48", _o = "_image_eo3g5_58", Do = "_loaded_eo3g5_69", Lo = "_loading_eo3g5_73", Ao = "_empty_eo3g5_81", No = "_controls_eo3g5_87", Mo = "_arrows_eo3g5_97", jo = "_dots_eo3g5_107", Fo = "_dot_eo3g5_107", Bo = "_dotActive_eo3g5_133", W = {
3176
- carouselContainer: xo,
3177
- viewport: To,
3178
- slides: Co,
3179
- slide: wo,
3180
- slideInner: So,
3181
- loaderOverlay: Io,
3182
- image: _o,
3183
- loaded: Do,
3184
- loading: Lo,
3185
- empty: Ao,
3186
- controls: No,
3187
- arrows: Mo,
3188
- dots: jo,
3189
- dot: Fo,
3190
- dotActive: Bo
3191
- }, Eo = pt, Po = ({
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 = ({
3192
3308
  images: n,
3193
3309
  autoPlay: e = !1,
3194
3310
  autoDelay: a = 5,
3195
- showArrows: d = !0,
3196
- showDots: h = !0,
3197
- variant: k,
3198
- slidesPerView: u = 1,
3199
- slideSpacing: v = 16,
3200
- cornerRadius: M = 0,
3201
- "data-color": C,
3202
- "data-size": G
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
3203
3319
  }) => {
3204
- const { t: I } = xe();
3205
- R(() => {
3206
- const f = "rk-carousel-inline-styles";
3207
- if (typeof document > "u" || document.getElementById(f)) return;
3208
- const l = $o(W), y = document.createElement("style");
3209
- y.id = f, y.textContent = l, document.head.appendChild(y);
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);
3210
3326
  }, []);
3211
- const V = {
3327
+ const R = {
3212
3328
  loop: !0,
3213
3329
  align: "start",
3214
3330
  containScroll: "trimSnaps",
3215
3331
  slidesToScroll: 1
3216
- }, [D, p] = dn(V), [X, ne] = Z(0), [_, J] = Z([]), [m, L] = Z([]);
3217
- R(() => {
3218
- L(new Array((n == null ? void 0 : n.length) || 0).fill(!1));
3219
- }, [n]);
3220
- const w = ae((f) => {
3221
- L((l) => {
3222
- const y = [...l];
3223
- return y[f] = !0, y;
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;
3224
3347
  });
3225
- }, []), j = he(() => a * 1e3, [a]), A = ae(() => {
3226
- p && ne(p.selectedScrollSnap());
3227
- }, [p]), F = ae((f) => p && p.scrollTo(f), [p]), O = ae(() => p && p.scrollPrev(), [p]), Q = ae(() => p && p.scrollNext(), [p]);
3228
- R(() => {
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(() => {
3229
3352
  if (p)
3230
- return p.on("select", A), p.on("reInit", A), J(p.scrollSnapList()), () => {
3231
- p.off("select", A), p.off("reInit", A);
3353
+ return p.on("select", d), p.on("reInit", d), w(p.scrollSnapList()), () => {
3354
+ p.off("select", d), p.off("reInit", d);
3232
3355
  };
3233
- }, [p, A]), R(() => {
3234
- p && (p.reInit(), J(p.scrollSnapList()));
3235
- }, [p, n, u, v]), R(() => {
3236
- if (!e || !p || !n || n.length <= 1) return;
3237
- const f = 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(() => {
3238
3363
  p.canScrollNext() && p.scrollNext();
3239
- }, j);
3364
+ }, $);
3240
3365
  return () => {
3241
- window.clearInterval(f);
3366
+ window.clearInterval(h);
3242
3367
  };
3243
- }, [e, j, p, n]);
3244
- const P = Math.max(1, u), B = `${100 / P}%`, E = v / 2;
3368
+ }, [ne, $, p, n]);
3369
+ const z = Math.max(1, f), ie = `${100 / z}%`, T = x / 2;
3245
3370
  return /* @__PURE__ */ r(
3246
3371
  "div",
3247
3372
  {
3248
- className: W.carouselContainer,
3249
- "data-color": C,
3250
- "data-size": G,
3251
- "data-variant": k,
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,
3252
3383
  children: [
3253
- /* @__PURE__ */ t("div", { className: W.viewport, ref: D, children: /* @__PURE__ */ t(
3384
+ /* @__PURE__ */ t("div", { className: X.viewport, ref: G, children: /* @__PURE__ */ t(
3254
3385
  "div",
3255
3386
  {
3256
- className: W.slides,
3387
+ className: X.slides,
3257
3388
  style: {
3258
- marginLeft: `-${E}px`,
3259
- marginRight: `-${E}px`
3389
+ marginLeft: `-${T}px`,
3390
+ marginRight: `-${T}px`
3260
3391
  },
3261
- children: n && n.length > 0 ? n.map((f, l) => /* @__PURE__ */ t(
3392
+ children: n && n.length > 0 ? n.map((h, C) => /* @__PURE__ */ t(
3262
3393
  "div",
3263
3394
  {
3264
- className: W.slide,
3395
+ className: X.slide,
3265
3396
  style: {
3266
- flex: `0 0 ${B}`,
3267
- paddingLeft: `${E}px`,
3268
- paddingRight: `${E}px`,
3269
- borderRadius: M > 0 ? `${M}px` : void 0,
3397
+ flex: `0 0 ${ie}`,
3398
+ paddingLeft: `${T}px`,
3399
+ paddingRight: `${T}px`,
3400
+ borderRadius: B > 0 ? `${B}px` : void 0,
3270
3401
  overflow: "hidden"
3271
3402
  // Ensure radius clips content
3272
3403
  },
3273
- children: /* @__PURE__ */ r("div", { className: W.slideInner, style: { borderRadius: `${M}px`, overflow: "hidden", position: "relative", width: "100%", height: "100%" }, children: [
3274
- !m[l] && /* @__PURE__ */ t("div", { className: W.loaderOverlay, children: /* @__PURE__ */ t(Eo, { "aria-label": I("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") }) }),
3275
3406
  /* @__PURE__ */ t(
3276
3407
  "img",
3277
3408
  {
3278
- className: `${W.image} ${m[l] ? W.loaded : W.loadingImage}`,
3279
- src: f.src,
3280
- alt: f.alt,
3281
- loading: l < P ? "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",
3282
3416
  crossOrigin: "anonymous",
3283
- onLoad: () => w(l),
3284
- onError: (y) => {
3285
- y.target.style.display = "none", w(l);
3417
+ onLoad: () => Y(C),
3418
+ onError: (j) => {
3419
+ j.target.style.display = "none", Y(C);
3286
3420
  }
3287
3421
  }
3288
3422
  )
3289
3423
  ] })
3290
3424
  },
3291
- `image-${l}-${f.src}`
3292
- )) : /* @__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" }) })
3293
3427
  }
3294
3428
  ) }),
3295
- (d || h && n && n.length > 1) && /* @__PURE__ */ r("div", { className: W.controls, "aria-hidden": "false", children: [
3296
- 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: [
3297
3431
  /* @__PURE__ */ t(
3298
- de,
3432
+ fe,
3299
3433
  {
3300
3434
  variant: "primary",
3301
3435
  icon: !0,
3302
- "aria-label": I("carousel.previousImage"),
3303
- onClick: O,
3436
+ "aria-label": L("carousel.previousImage"),
3437
+ onClick: v,
3304
3438
  disabled: !n || n.length <= 1,
3305
- children: /* @__PURE__ */ t(cn, { "aria-hidden": !0 })
3439
+ children: /* @__PURE__ */ t(Sn, { "aria-hidden": !0 })
3306
3440
  }
3307
3441
  ),
3308
3442
  /* @__PURE__ */ t(
3309
- de,
3443
+ fe,
3310
3444
  {
3311
3445
  variant: "primary",
3312
3446
  icon: !0,
3313
- "aria-label": I("carousel.nextImage"),
3314
- onClick: Q,
3447
+ "aria-label": L("carousel.nextImage"),
3448
+ onClick: S,
3315
3449
  disabled: !n || n.length <= 1,
3316
- children: /* @__PURE__ */ t(pn, { "aria-hidden": !0 })
3450
+ children: /* @__PURE__ */ t(_n, { "aria-hidden": !0 })
3317
3451
  }
3318
3452
  )
3319
3453
  ] }),
3320
- h && n && n.length > 1 && /* @__PURE__ */ t("div", { className: W.dots, role: "tablist", "aria-label": I("carousel.imagePosition"), children: _.map((f, l) => {
3321
- const y = l === X;
3322
- 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(
3323
3456
  "button",
3324
3457
  {
3325
3458
  type: "button",
3326
- className: `${W.dot} ${y ? W.dotActive : ""}`,
3327
- onClick: () => F(l),
3328
- "aria-label": `${I("carousel.goToImage")} ${l + 1}`,
3329
- "aria-selected": y,
3330
- role: "tab"
3331
- },
3332
- `dot-${l}`
3333
- );
3334
- }) })
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
+ ] })
3335
3481
  ] })
3336
3482
  ]
3337
3483
  }
3338
3484
  );
3339
3485
  };
3340
- Po.displayName = "Carousel";
3341
- function $o(n) {
3486
+ nr.displayName = "Carousel";
3487
+ function or(n) {
3342
3488
  return `
3343
3489
  .${n.carouselContainer} {
3344
3490
  position: relative;
@@ -3379,7 +3525,7 @@ function $o(n) {
3379
3525
  position: relative;
3380
3526
  width: 100%;
3381
3527
  height: 100%;
3382
- background-color: var(--ds-color-neutral-surface-subtle, #f5f5f5);
3528
+ background-color: var(--ds-color-neutral-surface-tinted, #f5f5f5);
3383
3529
  overflow: hidden;
3384
3530
  }
3385
3531
  .${n.loaderOverlay} {
@@ -3409,11 +3555,11 @@ function $o(n) {
3409
3555
  align-items: center;
3410
3556
  gap: var(--ds-size-2, 8px);
3411
3557
  color: var(--ds-color-text-subtle, #5d5d5d);
3412
- font-size: var(--ds-font-size-sm, 14px);
3558
+ font-size: var(--ds-font-size-2, 14px);
3413
3559
  }
3414
3560
  .${n.empty} {
3415
3561
  color: var(--ds-color-text-subtle, #5d5d5d);
3416
- font-size: var(--ds-font-size-sm, 14px);
3562
+ font-size: var(--ds-font-size-2, 14px);
3417
3563
  text-align: center;
3418
3564
  }
3419
3565
  .${n.controls} {
@@ -3440,6 +3586,7 @@ function $o(n) {
3440
3586
  transform: translateX(-50%);
3441
3587
  bottom: var(--ds-size-3, 12px);
3442
3588
  display: inline-flex;
3589
+ align-items: center;
3443
3590
  gap: var(--ds-size-2, 8px);
3444
3591
  pointer-events: auto;
3445
3592
  background-color: rgba(255, 255, 255, 0.1);
@@ -3458,6 +3605,20 @@ function $o(n) {
3458
3605
  cursor: pointer;
3459
3606
  transition: all 0.2s ease;
3460
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
+ }
3461
3622
  .${n.dotActive} {
3462
3623
  background-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
3463
3624
  border-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
@@ -3510,225 +3671,471 @@ function $o(n) {
3510
3671
  }
3511
3672
  `;
3512
3673
  }
3513
- const zo = "_crossCorner_1caiu_1", Ro = "_shape_1caiu_6", _e = {
3514
- crossCorner: zo,
3515
- shape: Ro
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
3516
3680
  };
3517
- function Go(n) {
3681
+ function dr(n) {
3518
3682
  return `
3519
- .${n.crossCorner} {
3683
+ .${n.graphicElement} {
3520
3684
  display: inline-block;
3521
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);
3522
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. */
3523
3692
  .${n.shape} {
3524
- fill: var(--ds-color-base-default, #DA4236);
3693
+ fill: var(--graphic-element-color);
3525
3694
  }
3526
- /* Color variants via data-color attribute */
3527
- .${n.crossCorner}[data-color="accent"] .${n.shape} {
3528
- fill: var(--ds-color-accent-base-default, #DA4236);
3695
+ /* Outline variant: thin stroke, no fill */
3696
+ .${n.graphicElement}[data-variant="outline"] {
3697
+ overflow: visible;
3529
3698
  }
3530
- .${n.crossCorner}[data-color="brand1"] .${n.shape} {
3531
- 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;
3532
3703
  }
3533
- .${n.crossCorner}[data-color="brand2"] .${n.shape} {
3534
- 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);
3535
3707
  }
3536
- .${n.crossCorner}[data-color="brand3"] .${n.shape} {
3537
- fill: var(--ds-color-brand3-base-default, #F5F5F5);
3708
+ .${n.faceTop} {
3709
+ fill: var(--graphic-element-face-top);
3538
3710
  }
3539
- .${n.crossCorner}[data-color="neutral"] .${n.shape} {
3540
- fill: var(--ds-color-neutral-base-default, #5D5D5D);
3711
+ .${n.faceRight} {
3712
+ fill: var(--graphic-element-color);
3541
3713
  }
3542
3714
  `;
3543
3715
  }
3544
- const Wo = {
3545
- sm: 48,
3546
- md: 68,
3547
- lg: 96
3548
- }, Ho = {
3716
+ const cr = {
3717
+ sm: 24,
3718
+ md: 34,
3719
+ lg: 48
3720
+ }, pr = {
3549
3721
  "top-left": 270,
3550
3722
  "top-right": 0,
3551
3723
  "bottom-right": 90,
3552
3724
  "bottom-left": 180
3553
- }, be = se(
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(
3554
3940
  ({
3555
- position: n = "top-left",
3556
- size: e = "md",
3557
- className: a,
3558
- "aria-label": d,
3559
- "aria-hidden": h = !0,
3560
- "data-color": k,
3561
- "data-size": u,
3562
- ...v
3563
- }, M) => {
3564
- R(() => {
3565
- const I = "rk-crosscorner-inline-styles";
3566
- if (typeof document > "u" || document.getElementById(I)) return;
3567
- const V = Go(_e), D = document.createElement("style");
3568
- D.id = I, D.textContent = V, document.head.appendChild(D);
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);
3569
3958
  }, []);
3570
- const C = Wo[e], G = Ho[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;
3571
3960
  return /* @__PURE__ */ t(
3572
3961
  "svg",
3573
3962
  {
3574
- ref: M,
3575
- className: `${_e.crossCorner} ${a || ""}`,
3576
- width: C,
3577
- height: C,
3578
- 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}`,
3579
3968
  fill: "none",
3580
3969
  xmlns: "http://www.w3.org/2000/svg",
3581
- "aria-label": d,
3582
- "aria-hidden": h,
3583
- role: h ? void 0 : "img",
3584
- "data-color": k,
3585
- "data-size": u,
3586
- style: {
3587
- transform: G ? `rotate(${G}deg)` : void 0
3588
- },
3589
- ...v,
3590
- 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(
3591
3979
  "path",
3592
3980
  {
3593
- d: "M68 0V33.8203H67.998V68H34.1777V33.8203H0V0H68Z",
3594
- className: _e.shape
3981
+ d: Q === "outline" ? G.outline : G.solid,
3982
+ className: we.shape,
3983
+ vectorEffect: "non-scaling-stroke"
3595
3984
  }
3596
- )
3985
+ ) })
3597
3986
  }
3598
3987
  );
3599
3988
  }
3600
3989
  );
3601
- be.displayName = "CrossCorner";
3602
- const ei = mt, ti = gt, ni = ut, U = ht, oi = yt, ri = xt, ai = kt, si = bt, ii = vt, li = ft, di = Tt, ci = Ct, Uo = St, Vo = wt;
3603
- Uo.displayName = "Field.Description";
3604
- Vo.displayName = "Field.Counter";
3605
- const pi = He, Oo = se((n, e) => /* @__PURE__ */ t(It, { ref: e, ...n }));
3606
- Oo.displayName = "Heading";
3607
- const Ye = _t;
3608
- Ye.displayName = "Input";
3609
- const Ko = se((n, e) => /* @__PURE__ */ t(Dt, { ref: e, ...n }));
3610
- Ko.displayName = "Label";
3611
- const re = Lt, mi = At, qo = Nt, gi = Ft, ui = jt, hi = Mt, fi = Bt;
3612
- qo.displayName = "Pagination";
3613
- const ye = se(
3614
- (n, e) => /* @__PURE__ */ t(Et, { 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 })
3615
4002
  );
3616
- ye.displayName = "Paragraph";
3617
- const ki = Pt, vi = $t, bi = zt, Te = Object.assign(Rt, {
3618
- Button: Ht,
3619
- ClearButton: Wt,
3620
- Input: Gt
3621
- }), yi = Ut, xi = Vt, Ti = Ot, Yo = Kt;
3622
- Yo.displayName = "Suggestion";
3623
- const De = qt, Ci = Yt, Ce = Zt, Zo = se(function({ shape: e, style: a, ...d }, h) {
3624
- const k = {};
3625
- e === "rounded" && (k.borderRadius = "var(--ds-border-radius-xl)");
3626
- const u = Object.keys(k).length === 0 && !a ? void 0 : { ...k, ...a }, v = {};
3627
- return e === "rounded" && (v["data-shape"] = "rounded"), /* @__PURE__ */ t(Xt, { ref: h, ...d, ...v, style: u });
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 });
3628
4015
  });
3629
- Zo.displayName = "Tag";
3630
- const wi = Jt, Xo = Qt, Si = en, Ii = tn, Jo = se((n, e) => /* @__PURE__ */ t(nn, { ref: e, ...n }));
3631
- Jo.displayName = "ValidationMessage";
3632
- const Qo = "_header_ae1dv_1", er = "_languageSwitch_ae1dv_37", tr = "_searchOverlay_ae1dv_41", nr = "_headerExtension_ae1dv_46", or = "_headerExtensionTinted_ae1dv_75", rr = "_languageLabel_ae1dv_83", ar = "_languageLink_ae1dv_88", sr = "_extensionContent_ae1dv_93", ir = "_extensionDivider_ae1dv_98", lr = "_extensionContentWrapper_ae1dv_103", dr = "_headerInner_ae1dv_199", cr = "_logoWrapper_ae1dv_216", pr = "_logo_ae1dv_216", mr = "_secondaryLogoWrapper_ae1dv_239", gr = "_slotComponent_ae1dv_248", ur = "_slotContainer_ae1dv_258", hr = "_slotText_ae1dv_266", fr = "_secondaryLogo_ae1dv_239", kr = "_redCrossLogo_ae1dv_293", vr = "_primaryLogo_ae1dv_299", br = "_navItems_ae1dv_303", yr = "_navLink_ae1dv_312", xr = "_actions_ae1dv_325", Tr = "_ctaButton_ae1dv_333", Cr = "_themeToggle_ae1dv_338", wr = "_userInfo_ae1dv_343", Sr = "_userName_ae1dv_349", Ir = "_loginLink_ae1dv_356", _r = "_loginText_ae1dv_365", Dr = "_underline_ae1dv_372", Lr = "_searchButtonWrapper_ae1dv_378", Ar = "_buttonText_ae1dv_382", Nr = "_menuButton_ae1dv_387", Mr = "_menuOverlay_ae1dv_392", jr = "_searchContent_ae1dv_426", Fr = "_menuContent_ae1dv_436", Br = "_menuLeftColumn_ae1dv_445", Er = "_menuRightColumn_ae1dv_451", Pr = "_slotContent_ae1dv_465", $r = "_navList_ae1dv_478", zr = "_menuUtilities_ae1dv_485", Rr = "_menuBrand_ae1dv_492", Gr = "_suggestionsSection_ae1dv_496", Wr = "_suggestionsTitle_ae1dv_502", Hr = "_searchResults_ae1dv_511", Ur = "_resultList_ae1dv_517", Vr = "_resultItem_ae1dv_523", Or = "_resultLink_ae1dv_531", Kr = "_suggestionIcon_ae1dv_545", qr = "_suggestionText_ae1dv_558", Yr = "_highlightedText_ae1dv_565", Zr = "_remainingText_ae1dv_570", Xr = "_viewAllLink_ae1dv_583", Jr = "_noResults_ae1dv_618", s = {
3633
- header: Qo,
3634
- languageSwitch: er,
3635
- searchOverlay: tr,
3636
- headerExtension: nr,
3637
- headerExtensionTinted: or,
3638
- languageLabel: rr,
3639
- languageLink: ar,
3640
- extensionContent: sr,
3641
- extensionDivider: ir,
3642
- extensionContentWrapper: lr,
3643
- headerInner: dr,
3644
- logoWrapper: cr,
3645
- logo: pr,
3646
- secondaryLogoWrapper: mr,
3647
- slotComponent: gr,
3648
- slotContainer: ur,
3649
- slotText: hr,
3650
- secondaryLogo: fr,
3651
- redCrossLogo: kr,
3652
- primaryLogo: vr,
3653
- navItems: br,
3654
- navLink: yr,
3655
- actions: xr,
3656
- ctaButton: Tr,
3657
- themeToggle: Cr,
3658
- userInfo: wr,
3659
- userName: Sr,
3660
- loginLink: Ir,
3661
- loginText: _r,
3662
- underline: Dr,
3663
- searchButtonWrapper: Lr,
3664
- buttonText: Ar,
3665
- menuButton: Nr,
3666
- menuOverlay: Mr,
3667
- searchContent: jr,
3668
- menuContent: Fr,
3669
- menuLeftColumn: Br,
3670
- menuRightColumn: Er,
3671
- slotContent: Pr,
3672
- navList: $r,
3673
- menuUtilities: zr,
3674
- menuBrand: Rr,
3675
- suggestionsSection: Gr,
3676
- suggestionsTitle: Wr,
3677
- searchResults: Hr,
3678
- resultList: Ur,
3679
- resultItem: Vr,
3680
- resultLink: Or,
3681
- suggestionIcon: Kr,
3682
- suggestionText: qr,
3683
- highlightedText: Yr,
3684
- remainingText: Zr,
3685
- viewAllLink: Xr,
3686
- noResults: Jr
3687
- }, Qr = [
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 = [
3688
4075
  // Pages
3689
4076
  { id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
3690
4077
  { id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
3691
4078
  { id: "design", title: "Design", category: "Page", path: "design", description: "Designretningslinjer og prinsipper" },
3692
4079
  { id: "code", title: "Kode", category: "Page", path: "code", description: "Utviklerdokumentasjon og oppsett" },
3693
- // Components
4080
+ { id: "tokens", title: "Tokens", category: "Page", path: "tokens", description: "Design tokens: farger, størrelser og typografi" },
4081
+ // Components (samme utvalg som komponentkatalogen)
3694
4082
  { id: "alert", title: "Alert", category: "Component", path: "components", description: "Varselbokser for viktige meldinger" },
3695
4083
  { id: "avatar", title: "Avatar", category: "Component", path: "components", description: "Profilbilder og initialer" },
3696
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" },
3697
4086
  { id: "button", title: "Button", category: "Component", path: "components", description: "Knapper for handlinger" },
3698
4087
  { id: "card", title: "Card", category: "Component", path: "components", description: "Kort for gruppering av innhold" },
3699
4088
  { id: "carousel", title: "Carousel", category: "Component", path: "components", description: "Bildekarusell" },
3700
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" },
3701
4094
  { id: "dialog", title: "Dialog", category: "Component", path: "components", description: "Modale vinduer" },
4095
+ { id: "divider", title: "Divider", category: "Component", path: "components", description: "Skillelinjer" },
3702
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" },
3703
4101
  { id: "header", title: "Header", category: "Component", path: "components", description: "Topptekst og navigasjon" },
3704
- { id: "herosection", title: "HeroSection", category: "Component", path: "components", description: "Store introduksjonsseksjoner" },
3705
4102
  { id: "input", title: "Input", category: "Component", path: "components", description: "Tekstfelt for brukerinput" },
3706
4103
  { id: "link", title: "Link", category: "Component", path: "components", description: "Lenker til andre sider" },
3707
4104
  { id: "list", title: "List", category: "Component", path: "components", description: "Ordnede og uordnede lister" },
3708
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" },
3709
4107
  { id: "radio", title: "Radio", category: "Component", path: "components", description: "Valg av ett alternativ" },
3710
4108
  { id: "search", title: "Search", category: "Component", path: "components", description: "Søkefelter" },
3711
4109
  { id: "select", title: "Select", category: "Component", path: "components", description: "Valgmeny" },
3712
- { 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" },
3713
4114
  { id: "switch", title: "Switch", category: "Component", path: "components", description: "Av/på bryter" },
3714
4115
  { id: "table", title: "Table", category: "Component", path: "components", description: "Tabeller for data" },
3715
4116
  { id: "tabs", title: "Tabs", category: "Component", path: "components", description: "Faner for inndeling av innhold" },
3716
4117
  { id: "tag", title: "Tag", category: "Component", path: "components", description: "Merkelapper og emneknagger" },
3717
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" },
3718
4121
  { id: "tooltip", title: "Tooltip", category: "Component", path: "components", description: "Hjelpetekster ved hover" },
3719
- // Design Docs - For Designere
4122
+ // Design — For designere
3720
4123
  { id: "figma-oppkobling", title: "Figma tilkobling", category: "Design", path: "design/figma-oppkobling", description: "Hvordan koble til Figma-biblioteket" },
3721
4124
  { id: "oppstart", title: "Oppstart", category: "Design", path: "design/oppstart", description: "Oppsett av arbeidsområde" },
3722
- { 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" },
3723
4126
  { id: "praktiske-eksempler", title: "Praktiske eksempler", category: "Design", path: "design/praktiske-eksempler", description: "Eksempler på bruk av designsystemet" },
3724
4127
  { id: "token-studio", title: "Token Studio", category: "Design", path: "design/token-studio", description: "Bruk av Token Studio" },
3725
- // Design Docs - Farger
4128
+ // Design — Farger
3726
4129
  { id: "fargesystem", title: "Sette opp ditt eget fargesystem", category: "Design", path: "design/fargesystem", description: "Hvordan sette opp farger" },
3727
4130
  { id: "temabygger", title: "Temabygger", category: "Design", path: "design/temabygger", description: "Designsystemets temagenerator" },
3728
4131
  { id: "bruk-farger", title: "Bruk fargene", category: "Design", path: "design/bruk-farger", description: "Bruk genererte farger" },
3729
- // 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
3730
4137
  { id: "foresla-design", title: "Foreslå nytt design", category: "Design", path: "design/foresla-design", description: "Hvordan bidra med nytt design" },
3731
- // Design Docs - Designelementer
4138
+ // Design — Designelementer
3732
4139
  { id: "hva-er-design-tokens", title: "Hva er design tokens", category: "Design", path: "design/hva-er-design-tokens", description: "Introduksjon til design tokens" },
3733
4140
  { id: "design-tokens-i-figma", title: "Design tokens i Figma", category: "Design", path: "design/design-tokens-i-figma", description: "Bruke tokens i Figma" },
3734
4141
  { id: "farger-navnestruktur", title: "Farger: Navnestruktur", category: "Design", path: "design/farger-navnestruktur", description: "Navngiving av farger" },
@@ -3740,55 +4147,67 @@ const Qo = "_header_ae1dv_1", er = "_languageSwitch_ae1dv_37", tr = "_searchOver
3740
4147
  { id: "storrelse-tokens", title: "Størrelse-tokens", category: "Design", path: "design/storrelse-tokens", description: "Tokens for størrelser" },
3741
4148
  { id: "font-family", title: "Typografi: Font-family", category: "Design", path: "design/font-family", description: "Font-familier" },
3742
4149
  { id: "typografi-tokens", title: "Typografi-tokens", category: "Design", path: "design/typografi-tokens", description: "Tokens for typografi" },
3743
- // Code Docs
3744
- { id: "code-intro", title: "Oversikt (Kode)", category: "Code", path: "code/intro", description: "Startside for kode" },
4150
+ // Code
3745
4151
  { id: "kom-i-gang", title: "Kom i gang (Kode)", category: "Code", path: "code/kom-i-gang", description: "Installasjon og oppsett" },
3746
- { id: "figma-mcp", title: "Fra Figma til Kode (MCP)", category: "Code", path: "code/figma-mcp", description: "Automatisert arbeidsflyt med MCP" },
3747
- { id: "komponent-kreasjon", title: "Komponent Kreasjon", category: "Code", path: "code/komponent-kreasjon", description: "Opprette nye komponenter" },
3748
- { id: "progression", title: "Progresjon", category: "Code", path: "code/progression", description: "Fra design til ferdig komponent" },
3749
- { 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" }
3750
4161
  ];
3751
- function ea(n) {
4162
+ function wa(n) {
3752
4163
  return n.split(/\s+/).map((e) => e[0] ?? "").join("").slice(0, 2).toUpperCase();
3753
4164
  }
3754
- const _i = ({
4165
+ const Yi = ({
3755
4166
  variant: n = "default",
3756
4167
  "data-color": e = "primary",
3757
4168
  activePage: a,
3758
- setPage: d,
3759
- children: h,
3760
- showUser: k = !0,
3761
- showSearch: u = !0,
3762
- showLogin: v = !0,
3763
- showCta: M = !1,
3764
- ctaLabel: C,
3765
- ctaIcon: G = /* @__PURE__ */ t(gn, { "aria-hidden": !0 }),
3766
- onCtaClick: I,
3767
- showThemeToggle: V = !1,
3768
- secondaryLogo: D = !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,
3769
4180
  secondaryLogoSrc: p,
3770
- secondaryLogoSrcDark: X,
3771
- secondaryLogoAlt: ne = "Secondary Logo",
3772
- navItems: _,
3773
- showNavItems: J = !0,
3774
- showMenuButton: m = !0,
3775
- showHeaderExtension: L = !1,
3776
- showModeToggle: w = !1,
3777
- showLanguageSwitch: j = !1,
3778
- extensionColor: A,
3779
- userName: F,
3780
- userInitials: O,
3781
- userAvatarSrc: Q,
3782
- onUserClick: P
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
3783
4194
  }) => {
3784
- const [B, E] = Z(!1), [f, l] = Z(!1), [y, ee] = Z(""), [H, S] = Z("light"), { language: N, setLanguage: K, t: x } = xe(), [te, me] = Z(!1);
3785
- R(() => {
3786
- const i = "rk-header-inline-styles";
3787
- if (typeof document > "u" || document.getElementById(i)) return;
3788
- const g = ta(s), b = document.createElement("style");
3789
- b.id = i, b.textContent = g, document.head.appendChild(b);
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);
3790
4209
  }, []);
3791
- const ce = () => /* @__PURE__ */ r(
4210
+ const le = () => /* @__PURE__ */ r(
3792
4211
  "svg",
3793
4212
  {
3794
4213
  width: "170",
@@ -3798,7 +4217,7 @@ const _i = ({
3798
4217
  xmlns: "http://www.w3.org/2000/svg",
3799
4218
  "aria-hidden": !0,
3800
4219
  focusable: "false",
3801
- className: s.redCrossLogo,
4220
+ className: i.redCrossLogo,
3802
4221
  children: [
3803
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" }),
3804
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" }),
@@ -3813,212 +4232,222 @@ const _i = ({
3813
4232
  ]
3814
4233
  }
3815
4234
  );
3816
- R(() => {
3817
- E(!1), l(!1), ee("");
3818
- }, [a]), R(() => {
3819
- if (!(typeof document > "u") && B && te) {
3820
- 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;
3821
4240
  return document.body.style.overflow = "hidden", () => {
3822
- document.body.style.overflow = i;
4241
+ document.body.style.overflow = s;
3823
4242
  };
3824
4243
  }
3825
- }, [B, te]), R(() => {
4244
+ }, [S, u]), U(() => {
3826
4245
  if (typeof window > "u" || typeof window.matchMedia > "u") return;
3827
- const i = window.matchMedia("(max-width: 850px)"), g = (b) => me("matches" in b ? b.matches : i.matches);
3828
- return g(i), i.addEventListener ? i.addEventListener("change", g) : i.addListener(g), () => {
3829
- i.removeEventListener ? i.removeEventListener("change", g) : i.removeListener(g);
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);
3830
4249
  };
3831
- }, []), R(() => {
4250
+ }, []), U(() => {
3832
4251
  if (typeof document > "u") return;
3833
- const i = document.querySelector(`.${s.header}`);
3834
- if (!i) return;
3835
- const g = () => {
3836
- const Y = i.offsetHeight;
3837
- document.documentElement.style.setProperty("--header-height-mobile", `${Y}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`);
3838
4257
  };
3839
- g(), window.addEventListener("resize", g);
4258
+ m(), window.addEventListener("resize", m);
3840
4259
  const b = new ResizeObserver(() => {
3841
- g();
4260
+ m();
3842
4261
  });
3843
- return b.observe(i), () => {
3844
- window.removeEventListener("resize", g), b.disconnect();
4262
+ return b.observe(s), () => {
4263
+ window.removeEventListener("resize", m), b.disconnect();
3845
4264
  };
3846
- }, [te]), R(() => {
4265
+ }, [u]), U(() => {
3847
4266
  if (typeof document > "u") return;
3848
- const i = document.querySelector(`.${s.logoWrapper}`);
3849
- if (!i) return;
3850
- const g = () => {
3851
- const b = i.offsetWidth;
4267
+ const s = document.querySelector(`.${i.logoWrapper}`);
4268
+ if (!s) return;
4269
+ const m = () => {
4270
+ const b = s.offsetWidth;
3852
4271
  document.documentElement.style.setProperty("--rk-logo-width", `${b}px`);
3853
4272
  };
3854
- return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
3855
- }, [te]), R(() => {
3856
- if (typeof document > "u" || !f) {
4273
+ return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
4274
+ }, [u]), U(() => {
4275
+ if (typeof document > "u" || !D) {
3857
4276
  document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
3858
4277
  return;
3859
4278
  }
3860
- const i = document.querySelector(`.${s.searchOverlay}`);
3861
- if (!i) return;
3862
- const g = () => {
3863
- const Y = i.offsetHeight;
3864
- document.documentElement.style.setProperty("--rk-search-overlay-height", `${Y}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`);
3865
4284
  };
3866
- requestAnimationFrame(g), window.addEventListener("resize", g);
3867
- const b = new ResizeObserver(g);
3868
- return b.observe(i), () => {
3869
- window.removeEventListener("resize", g), b.disconnect();
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();
3870
4289
  };
3871
- }, [f]);
3872
- const pe = () => {
3873
- const i = H === "light" ? "dark" : "light";
3874
- S(i), document.documentElement.setAttribute("data-color-scheme", i);
3875
- }, c = (i) => {
3876
- d && (i.preventDefault(), d("home")), E(!1), l(!1);
3877
- }, T = () => {
3878
- E(!B), f && l(!1), !B && typeof document < "u" && requestAnimationFrame(() => {
3879
- const i = document.querySelector(`.${s.header}`);
3880
- if (i) {
3881
- const g = i.offsetHeight;
3882
- document.documentElement.style.setProperty("--header-height-mobile", `${g}px`);
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()));
4295
+ };
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`);
3883
4312
  }
3884
4313
  });
3885
- }, $ = () => {
3886
- l(!f), B && E(!1);
3887
- }, q = he(() => {
3888
- if (!y.trim()) return [];
3889
- const i = y.toLowerCase();
3890
- return Qr.filter(
3891
- (g) => g.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)
3892
4321
  );
3893
- }, [y]), ie = (i) => {
3894
- d && d(i), l(!1), ee("");
4322
+ }, [z]), ae = (s) => {
4323
+ c && c(s), g(!1), ie("");
3895
4324
  };
3896
- return /* @__PURE__ */ r("header", { className: s.header, "data-open": B ? "true" : "false", "data-color": e, "data-variant": n, children: [
3897
- L && /* @__PURE__ */ t("div", { className: `${s.headerExtension}${A === "tinted" ? ` ${s.headerExtensionTinted}` : ""}`, "data-color-scheme": "light", "data-extension-color": A, children: /* @__PURE__ */ r("div", { className: s.extensionContentWrapper, children: [
3898
- w && /* @__PURE__ */ t("div", { className: s.extensionContent, children: /* @__PURE__ */ t(
3899
- De,
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,
3900
4329
  {
3901
4330
  "data-size": "sm",
3902
- checked: H === "dark",
3903
- onChange: pe,
3904
- label: x("header.darkMode"),
4331
+ checked: T === "dark",
4332
+ onChange: re,
4333
+ label: _("header.darkMode"),
3905
4334
  color: "neutral",
3906
4335
  "data-color-scheme": "light"
3907
4336
  }
3908
4337
  ) }),
3909
- w && j && /* @__PURE__ */ t("div", { className: s.extensionDivider }),
3910
- j && /* @__PURE__ */ r("div", { className: s.languageSwitch, children: [
3911
- /* @__PURE__ */ t("span", { className: s.languageLabel, children: x("header.language") }),
3912
- /* @__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: [
3913
4342
  /* @__PURE__ */ r(
3914
- U.Trigger,
4343
+ oe.Trigger,
3915
4344
  {
3916
- className: s.languageLink,
3917
- "aria-label": x("header.selectLanguage"),
4345
+ className: i.languageLink,
4346
+ "aria-label": _("header.selectLanguage"),
3918
4347
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
3919
4348
  children: [
3920
- N,
4349
+ C,
3921
4350
  " ",
3922
- /* @__PURE__ */ t(je, { "aria-hidden": !0 })
4351
+ /* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
3923
4352
  ]
3924
4353
  }
3925
4354
  ),
3926
4355
  /* @__PURE__ */ t(
3927
- U,
4356
+ oe,
3928
4357
  {
3929
- "data-color-scheme": H,
4358
+ "data-color-scheme": T,
3930
4359
  placement: "bottom-end",
3931
- children: /* @__PURE__ */ r(U.List, { children: [
3932
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => K("NO"), children: "Norsk (NO)" }) }),
3933
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => K("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)" }) })
3934
4363
  ] })
3935
4364
  }
3936
4365
  )
3937
4366
  ] })
3938
4367
  ] })
3939
4368
  ] }) }),
3940
- /* @__PURE__ */ r("div", { className: s.headerInner, children: [
3941
- /* @__PURE__ */ r("div", { className: s.logoWrapper, children: [
4369
+ /* @__PURE__ */ r("div", { className: i.headerInner, children: [
4370
+ /* @__PURE__ */ r("div", { className: i.logoWrapper, children: [
3942
4371
  /* @__PURE__ */ t(
3943
- re,
4372
+ pe,
3944
4373
  {
3945
4374
  href: "/",
3946
- className: `${s.logo} ${s.primaryLogo}`,
3947
- "aria-label": x("header.homeAriaLabel"),
3948
- onClick: c,
3949
- children: /* @__PURE__ */ t(ce, {})
4375
+ className: `${i.logo} ${i.primaryLogo}`,
4376
+ "aria-label": _("header.homeAriaLabel"),
4377
+ onClick: ge,
4378
+ children: /* @__PURE__ */ t(le, {})
3950
4379
  }
3951
4380
  ),
3952
- /* @__PURE__ */ t("div", { className: s.secondaryLogoWrapper, children: D && p ? /* @__PURE__ */ t(
4381
+ /* @__PURE__ */ t("div", { className: i.secondaryLogoWrapper, children: G && p ? /* @__PURE__ */ t(
3953
4382
  "img",
3954
4383
  {
3955
- src: H === "dark" && X ? X : p,
3956
- alt: ne,
3957
- className: s.secondaryLogo
4384
+ src: T === "dark" && Q ? Q : p,
4385
+ alt: K,
4386
+ className: i.secondaryLogo
3958
4387
  }
3959
- ) : D ? /* @__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 })
3960
4389
  ] }),
3961
- J && _ && _.length > 0 && !te && /* @__PURE__ */ t("nav", { className: s.navItems, children: _.map((i, g) => /* @__PURE__ */ t(
3962
- re,
4390
+ w && N && N.length > 0 && !u && /* @__PURE__ */ t("nav", { className: i.navItems, children: N.map((s, m) => /* @__PURE__ */ t(
4391
+ pe,
3963
4392
  {
3964
- href: i.href,
3965
- className: s.navLink,
4393
+ href: s.href,
4394
+ className: i.navLink,
3966
4395
  onClick: (b) => {
3967
- d && (b.preventDefault(), d(i.href));
4396
+ c && (b.preventDefault(), c(s.href));
3968
4397
  },
3969
- children: i.label
4398
+ children: s.label
3970
4399
  },
3971
- g
4400
+ m
3972
4401
  )) }),
3973
- /* @__PURE__ */ r("div", { className: s.actions, children: [
3974
- M && /* @__PURE__ */ r(
3975
- de,
4402
+ /* @__PURE__ */ r("div", { className: i.actions, children: [
4403
+ B && /* @__PURE__ */ r(
4404
+ fe,
3976
4405
  {
3977
4406
  variant: "primary",
3978
4407
  "data-color": "main",
3979
4408
  "data-size": "md",
3980
- className: s.ctaButton,
3981
- onClick: I,
4409
+ className: i.ctaButton,
4410
+ onClick: L,
3982
4411
  children: [
3983
- G,
3984
- /* @__PURE__ */ t("span", { className: G ? s.buttonText : void 0, children: C || x("header.supportUs") })
4412
+ J,
4413
+ /* @__PURE__ */ t("span", { className: J ? i.buttonText : void 0, children: I || _("header.supportUs") })
3985
4414
  ]
3986
4415
  }
3987
4416
  ),
3988
- !L && V && /* @__PURE__ */ t("div", { className: s.themeToggle, children: /* @__PURE__ */ t(
3989
- De,
4417
+ !P && R && /* @__PURE__ */ t("div", { className: i.themeToggle, children: /* @__PURE__ */ t(
4418
+ Re,
3990
4419
  {
3991
- checked: H === "dark",
3992
- onChange: pe,
3993
- "aria-label": x("header.toggleTheme")
4420
+ checked: T === "dark",
4421
+ onChange: re,
4422
+ "aria-label": _("header.toggleTheme")
3994
4423
  }
3995
4424
  ) }),
3996
- k && (() => {
3997
- const i = F ?? "Frodo Baggins", g = O ?? (F ? ea(F) : "FB"), b = !!P;
4425
+ y && (() => {
4426
+ const s = $ ?? "Frodo Baggins", m = d ?? ($ ? wa($) : "FB"), b = !!v;
3998
4427
  return /* @__PURE__ */ r(
3999
4428
  "div",
4000
4429
  {
4001
- className: s.userInfo,
4002
- onClick: P,
4430
+ className: i.userInfo,
4431
+ onClick: v,
4003
4432
  role: b ? "button" : void 0,
4004
4433
  tabIndex: b ? 0 : void 0,
4005
- onKeyDown: b ? (Y) => {
4006
- (Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), P == null || P());
4434
+ onKeyDown: b ? (V) => {
4435
+ (V.key === "Enter" || V.key === " ") && (V.preventDefault(), v == null || v());
4007
4436
  } : void 0,
4008
4437
  style: b ? { cursor: "pointer" } : void 0,
4009
4438
  children: [
4010
- /* @__PURE__ */ t(ye, { "data-size": "md", className: s.userName, children: i }),
4439
+ /* @__PURE__ */ t(Ne, { "data-size": "md", className: i.userName, children: s }),
4011
4440
  /* @__PURE__ */ t(
4012
- Oe,
4441
+ at,
4013
4442
  {
4014
- "aria-label": i,
4443
+ "aria-label": s,
4015
4444
  "data-color": "main",
4016
4445
  variant: "circle",
4017
- initials: Q ? void 0 : g,
4018
- children: Q ? /* @__PURE__ */ t(
4446
+ initials: l ? void 0 : m,
4447
+ children: l ? /* @__PURE__ */ t(
4019
4448
  "img",
4020
4449
  {
4021
- src: Q,
4450
+ src: l,
4022
4451
  alt: "",
4023
4452
  style: { width: "100%", height: "100%", objectFit: "cover" }
4024
4453
  }
@@ -4029,169 +4458,173 @@ const _i = ({
4029
4458
  }
4030
4459
  );
4031
4460
  })(),
4032
- v && /* @__PURE__ */ r("a", { href: "#", className: s.loginLink, children: [
4033
- /* @__PURE__ */ t(ye, { "data-size": "md", className: s.loginText, children: x("header.login") }),
4034
- /* @__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 })
4035
4464
  ] }),
4036
- u && /* @__PURE__ */ t("div", { className: s.searchButtonWrapper, children: /* @__PURE__ */ r(
4037
- de,
4465
+ f && /* @__PURE__ */ t("div", { className: i.searchButtonWrapper, children: /* @__PURE__ */ r(
4466
+ fe,
4038
4467
  {
4468
+ ref: ee,
4039
4469
  variant: "secondary",
4040
4470
  "data-color": "main",
4041
4471
  "data-size": "md",
4042
- onClick: $,
4043
- "aria-expanded": f,
4044
- "aria-label": x(f ? "header.closeSearch" : "header.openSearch"),
4472
+ onClick: Se,
4473
+ "aria-expanded": D,
4474
+ "aria-label": _(D ? "header.closeSearch" : "header.openSearch"),
4045
4475
  children: [
4046
- f ? /* @__PURE__ */ t(Fe, { "aria-hidden": !0 }) : /* @__PURE__ */ t(Be, { "aria-hidden": !0 }),
4047
- /* @__PURE__ */ t("span", { className: s.buttonText, children: x(f ? "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") })
4048
4478
  ]
4049
4479
  }
4050
4480
  ) }),
4051
- (m || te) && /* @__PURE__ */ r(
4052
- de,
4481
+ (H || u) && /* @__PURE__ */ r(
4482
+ fe,
4053
4483
  {
4484
+ ref: se,
4054
4485
  variant: "primary",
4055
4486
  "data-color": "main",
4056
4487
  "data-size": "md",
4057
- onClick: T,
4058
- "aria-expanded": B,
4059
- "aria-label": x(B ? "header.closeMenu" : "header.openMenu"),
4060
- className: s.menuButton,
4488
+ onClick: xe,
4489
+ "aria-expanded": S,
4490
+ "aria-label": _(S ? "header.closeMenu" : "header.openMenu"),
4491
+ className: i.menuButton,
4061
4492
  children: [
4062
- B ? /* @__PURE__ */ t(Fe, { "aria-hidden": !0 }) : /* @__PURE__ */ t(mn, { "aria-hidden": !0 }),
4063
- /* @__PURE__ */ t("span", { className: s.buttonText, children: x(B ? "header.close" : "header.menu") })
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") })
4064
4495
  ]
4065
4496
  }
4066
4497
  )
4067
4498
  ] })
4068
4499
  ] }),
4069
- B && /* @__PURE__ */ t("div", { className: s.menuOverlay, children: /* @__PURE__ */ r("div", { className: s.menuContent, children: [
4070
- /* @__PURE__ */ t("div", { className: s.menuLeftColumn }),
4071
- /* @__PURE__ */ r("div", { className: s.menuRightColumn, children: [
4072
- te && (j || w) && /* @__PURE__ */ r("div", { className: s.menuUtilities, children: [
4073
- j && /* @__PURE__ */ r("div", { className: s.languageSwitch, children: [
4074
- /* @__PURE__ */ t("span", { className: s.languageLabel, children: x("header.language") }),
4075
- /* @__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: [
4076
4507
  /* @__PURE__ */ r(
4077
- U.Trigger,
4508
+ oe.Trigger,
4078
4509
  {
4079
- className: s.languageLink,
4080
- "aria-label": x("header.selectLanguage"),
4510
+ className: i.languageLink,
4511
+ "aria-label": _("header.selectLanguage"),
4081
4512
  style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
4082
4513
  children: [
4083
- N,
4514
+ C,
4084
4515
  " ",
4085
- /* @__PURE__ */ t(je, { "aria-hidden": !0 })
4516
+ /* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
4086
4517
  ]
4087
4518
  }
4088
4519
  ),
4089
4520
  /* @__PURE__ */ t(
4090
- U,
4521
+ oe,
4091
4522
  {
4092
- "data-color-scheme": H,
4523
+ "data-color-scheme": T,
4093
4524
  placement: "bottom-start",
4094
- children: /* @__PURE__ */ r(U.List, { children: [
4095
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => K("NO"), children: "Norsk (NO)" }) }),
4096
- /* @__PURE__ */ t(U.Item, { children: /* @__PURE__ */ t(U.Button, { onClick: () => K("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)" }) })
4097
4528
  ] })
4098
4529
  }
4099
4530
  )
4100
4531
  ] })
4101
4532
  ] }),
4102
- w && /* @__PURE__ */ t("div", { className: s.extensionContent, children: /* @__PURE__ */ t(
4103
- De,
4533
+ E && /* @__PURE__ */ t("div", { className: i.extensionContent, children: /* @__PURE__ */ t(
4534
+ Re,
4104
4535
  {
4105
4536
  "data-size": "sm",
4106
- checked: H === "dark",
4107
- onChange: pe,
4108
- label: x("header.darkMode"),
4537
+ checked: T === "dark",
4538
+ onChange: re,
4539
+ label: _("header.darkMode"),
4109
4540
  color: "neutral",
4110
4541
  "data-color-scheme": "light"
4111
4542
  }
4112
4543
  ) })
4113
4544
  ] }),
4114
- /* @__PURE__ */ r("div", { className: s.slotContent, children: [
4115
- h,
4116
- te && J && _ && _.length > 0 && /* @__PURE__ */ t("nav", { className: s.navList, children: _.map((i, g) => /* @__PURE__ */ t(
4117
- re,
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,
4118
4549
  {
4119
- href: i.href,
4120
- className: s.navLink,
4550
+ href: s.href,
4551
+ className: i.navLink,
4121
4552
  onClick: (b) => {
4122
- d && (b.preventDefault(), d(i.href));
4553
+ c && (b.preventDefault(), c(s.href));
4123
4554
  },
4124
- children: i.label
4555
+ children: s.label
4125
4556
  },
4126
- g
4557
+ m
4127
4558
  )) })
4128
4559
  ] }),
4129
- te && /* @__PURE__ */ t("div", { className: s.menuBrand, children: /* @__PURE__ */ t(ce, {}) })
4560
+ u && /* @__PURE__ */ t("div", { className: i.menuBrand, children: /* @__PURE__ */ t(le, {}) })
4130
4561
  ] })
4131
4562
  ] }) }),
4132
- f && /* @__PURE__ */ t("div", { className: s.searchOverlay, children: /* @__PURE__ */ r("div", { className: s.searchContent, children: [
4133
- /* @__PURE__ */ r(Te, { children: [
4563
+ D && /* @__PURE__ */ t("div", { className: i.searchOverlay, children: /* @__PURE__ */ r("div", { className: i.searchContent, children: [
4564
+ /* @__PURE__ */ r(Pe, { children: [
4134
4565
  /* @__PURE__ */ t(
4135
- Te.Input,
4566
+ Pe.Input,
4136
4567
  {
4137
- "aria-label": x("header.search"),
4138
- placeholder: x("header.searchPlaceholder"),
4139
- value: y,
4140
- onChange: (i) => ee(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)
4141
4573
  }
4142
4574
  ),
4143
- /* @__PURE__ */ t(Te.Button, { "aria-label": x("header.search") }),
4144
- /* @__PURE__ */ t(Te.ClearButton, { onClick: () => ee(""), "aria-label": x("header.clearSearch") })
4575
+ /* @__PURE__ */ t(Pe.Button, { "aria-label": _("header.search") }),
4576
+ /* @__PURE__ */ t(Pe.ClearButton, { onClick: () => ie(""), "aria-label": _("header.clearSearch") })
4145
4577
  ] }),
4146
- y && /* @__PURE__ */ t("div", { className: s.searchResults, children: q.length > 0 ? /* @__PURE__ */ r("div", { className: s.suggestionsSection, children: [
4147
- /* @__PURE__ */ t("h3", { className: s.suggestionsTitle, children: x("header.suggestions") }),
4148
- /* @__PURE__ */ t("ul", { className: s.resultList, children: q.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(
4149
4582
  "button",
4150
4583
  {
4151
- className: s.resultLink,
4152
- onClick: () => ie(i.path),
4584
+ className: i.resultLink,
4585
+ onClick: () => ae(s.path),
4153
4586
  children: [
4154
- /* @__PURE__ */ t("span", { className: s.suggestionIcon, children: /* @__PURE__ */ t(Be, { "aria-hidden": !0 }) }),
4155
- /* @__PURE__ */ t("span", { className: s.suggestionText, children: (() => {
4156
- const g = i.title.toLowerCase().indexOf(y.toLowerCase());
4157
- if (g === -1) return /* @__PURE__ */ t("span", { className: s.remainingText, children: i.title });
4158
- const b = i.title.slice(0, g), Y = i.title.slice(g, g + y.length), we = i.title.slice(g + y.length);
4159
- return /* @__PURE__ */ r(Ge, { children: [
4160
- /* @__PURE__ */ t("span", { className: s.remainingText, children: b }),
4161
- /* @__PURE__ */ t("span", { className: s.highlightedText, children: Y }),
4162
- /* @__PURE__ */ t("span", { className: s.remainingText, children: we })
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 })
4163
4596
  ] });
4164
4597
  })() })
4165
4598
  ]
4166
4599
  }
4167
- ) }, i.id)) }),
4168
- q.length > 5 && /* @__PURE__ */ r(
4169
- re,
4600
+ ) }, s.id)) }),
4601
+ A.length > 5 && /* @__PURE__ */ r(
4602
+ pe,
4170
4603
  {
4171
4604
  href: "#",
4172
4605
  "data-color": "neutral",
4173
- className: s.viewAllLink,
4174
- onClick: (i) => {
4175
- i.preventDefault(), d && d(`search/${y}`), l(!1), ee("");
4606
+ className: i.viewAllLink,
4607
+ onClick: (s) => {
4608
+ s.preventDefault(), c && c(`search/${encodeURIComponent(z)}`), g(!1), ie("");
4176
4609
  },
4177
4610
  children: [
4178
- x("header.viewAll"),
4611
+ _("header.viewAll"),
4179
4612
  " (",
4180
- q.length,
4613
+ A.length,
4181
4614
  ")"
4182
4615
  ]
4183
4616
  }
4184
4617
  )
4185
- ] }) : /* @__PURE__ */ t("div", { className: s.noResults, children: /* @__PURE__ */ r(ye, { children: [
4186
- x("header.noResults"),
4618
+ ] }) : /* @__PURE__ */ t("div", { className: i.noResults, children: /* @__PURE__ */ r(Ne, { children: [
4619
+ _("header.noResults"),
4187
4620
  ' "',
4188
- y,
4621
+ z,
4189
4622
  '"'
4190
4623
  ] }) }) })
4191
4624
  ] }) })
4192
4625
  ] });
4193
4626
  };
4194
- function ta(n) {
4627
+ function Sa(n) {
4195
4628
  const e = n;
4196
4629
  return `
4197
4630
  .${e.header} {
@@ -4252,10 +4685,10 @@ function ta(n) {
4252
4685
  align-items: center;
4253
4686
  gap: var(--ds-size-4);
4254
4687
  }
4255
- .${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; }
4256
4689
  .${e.extensionDivider} { width: 1px; height: 18px; background-color: rgba(247,233,232,1); }
4257
4690
  .${e.languageSwitch} { display: flex; align-items: center; gap: var(--ds-size-2); }
4258
- .${e.languageLabel} { font-size: var(--ds-font-size-md); color: #ECECEC; }
4691
+ .${e.languageLabel} { font-size: var(--ds-font-size-3); color: #ECECEC; }
4259
4692
  .${e.languageLink} { color: white; text-decoration: none; display: flex; align-items: center; gap: 4px; }
4260
4693
  .${e.header}[data-color="primary"] .${e.languageLabel} { color: #ECECEC; }
4261
4694
  .${e.header}[data-color="neutral"] .${e.languageLabel} { color: var(--ds-color-neutral-text-default); }
@@ -4273,16 +4706,16 @@ function ta(n) {
4273
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); }
4274
4707
  .${e.secondaryLogo} { height: 24px; width: auto; display: block; }
4275
4708
  .${e.navItems} { display: flex; gap: 40px; align-items: center; margin-left: 24px; flex-grow: 1; justify-content: center; }
4276
- .${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; }
4277
4710
  .${e.navLink}:hover { text-decoration: underline; }
4278
4711
  .${e.actions} { display: flex; align-items: center; gap: var(--ds-size-6); flex-shrink: 0; margin-left: auto; }
4279
4712
  .${e.ctaButton} { display: flex; align-items: center; }
4280
4713
  .${e.themeToggle} { display: flex; align-items: center; }
4281
4714
  .${e.userInfo} { display: flex; align-items: center; gap: var(--ds-size-3); }
4282
- .${e.userName} { display: block; font-family: inherit; font-size: var(--ds-font-size-md); color: var(--ds-color-neutral-text-default); }
4283
- .${e.loginLink} { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ds-color-main-text-subtle); gap: 2px; }
4284
- .${e.loginText} { font-family: inherit; font-size: var(--ds-font-size-md); font-weight: var(--ds-font-weight-regular); line-height: 1.5; }
4285
- .${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); }
4286
4719
  .${e.searchButtonWrapper} { display: flex; }
4287
4720
  .${e.buttonText} { display: inline-block; margin-left: var(--ds-size-2); }
4288
4721
  .${e.menuButton} { display: flex; align-items: center; }
@@ -4302,12 +4735,12 @@ function ta(n) {
4302
4735
  .${e.menuContent} { max-width: 1364px; margin: 0 auto; display: flex; flex-direction: row; align-items: stretch; box-sizing: border-box; }
4303
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); }
4304
4737
  .${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
4305
- .${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; }
4306
4739
  .${e.navList} { display: flex; flex-direction: column; gap: var(--ds-size-3); align-items: flex-start; }
4307
4740
  .${e.menuBrand} { display: none; }
4308
4741
  .${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
4309
4742
  .${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
4310
- .${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; }
4311
4744
  .${e.searchResults} { margin-top: var(--ds-size-4); max-height: 400px; overflow-y: auto; }
4312
4745
  .${e.resultList} { list-style: none; padding: 0; margin: 0; }
4313
4746
  .${e.resultItem} { border-bottom: none; }
@@ -4317,10 +4750,10 @@ function ta(n) {
4317
4750
  text-align: left; cursor: pointer; gap: var(--ds-size-4); text-decoration: none;
4318
4751
  }
4319
4752
  .${e.suggestionIcon} { font-size: 20px; color: var(--ds-color-neutral-text-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
4320
- .${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; }
4321
4754
  .${e.highlightedText} { color: var(--ds-color-primary-color-red-text-default); font-weight: var(--ds-font-weight-medium); }
4322
4755
  .${e.remainingText} { color: var(--ds-color-neutral-border-subtle); }
4323
- .${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; }
4324
4757
  .${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
4325
4758
  @media (max-width: 850px) {
4326
4759
  .${e.header} { z-index: 10000; position: relative; }
@@ -4356,116 +4789,114 @@ function ta(n) {
4356
4789
  }
4357
4790
  `;
4358
4791
  }
4359
- const na = "_footer_12vvu_1", oa = "_mainSection_12vvu_7", ra = "_mainContainer_12vvu_25", aa = "_crossCornerTopRight_12vvu_35", sa = "_crossCornerBottomLeft_12vvu_42", ia = "_contentRow_12vvu_50", la = "_newsletterSection_12vvu_60", da = "_newsletterDescription_12vvu_67", ca = "_newsletterForm_12vvu_76", pa = "_newsletterInputGroup_12vvu_82", ma = "_newsletterInput_12vvu_82", ga = "_consentText_12vvu_93", ua = "_linksSection_12vvu_103", ha = "_linksColumn_12vvu_109", fa = "_linksTitle_12vvu_116", ka = "_linksList_12vvu_127", va = "_footerLink_12vvu_136", ba = "_divider_12vvu_158", ya = "_contactSection_12vvu_166", xa = "_contactColumn_12vvu_173", Ta = "_contactTitle_12vvu_181", Ca = "_contactContent_12vvu_190", wa = "_copyrightSection_12vvu_204", Sa = "_copyrightText_12vvu_209", Ia = "_whiteSection_12vvu_219", _a = "_whiteContainer_12vvu_224", Da = "_whiteContent_12vvu_232", La = "_logo_12vvu_240", Aa = "_redCrossLogo_12vvu_254", Na = "_slotLarge_12vvu_260", Ma = "_contentRowContact_12vvu_315", ja = "_socialLinksSection_12vvu_325", Fa = "_socialLinksTitle_12vvu_332", Ba = "_socialLinksList_12vvu_343", Ea = "_socialLink_12vvu_325", Pa = "_socialLinkIcon_12vvu_376", $a = "_contactPersonsSection_12vvu_391", za = "_contactPersonsTitle_12vvu_398", Ra = "_contactPersonsGrid_12vvu_409", Ga = "_contactPersonCard_12vvu_415", Wa = "_contactPersonName_12vvu_422", Ha = "_contactPersonRole_12vvu_431", Ua = "_contactPersonDetails_12vvu_440", Va = "_contactPersonLabel_12vvu_447", Oa = "_contactPersonEmail_12vvu_451", Ka = "_contactPersonPhone_12vvu_452", qa = "_contactPersonAddress_12vvu_453", Ya = "_bottomRowContact_12vvu_474", Za = "_legalLinksRow_12vvu_483", Xa = "_legalLink_12vvu_483", Ja = "_dpMain_12vvu_558", Qa = "_dpContainer_12vvu_567", es = "_dpColumns_12vvu_575", ts = "_dpColumn_12vvu_575", ns = "_dpColTitle_12vvu_588", os = "_dpList_12vvu_596", rs = "_dpLink_12vvu_605", as = "_dpDivider_12vvu_619", ss = "_dpMeta_12vvu_627", is = "_dpMetaCol_12vvu_633", ls = "_dpMetaTitle_12vvu_641", ds = "_dpMetaText_12vvu_649", cs = "_dpBottom_12vvu_657", ps = "_dpLegal_12vvu_665", ms = "_dpLegalLink_12vvu_674", gs = "_dpCopyright_12vvu_686", us = "_dpLogoBox_12vvu_694", hs = "_dpLogoImg_12vvu_710", o = {
4360
- footer: na,
4361
- mainSection: oa,
4362
- mainContainer: ra,
4363
- crossCornerTopRight: aa,
4364
- crossCornerBottomLeft: sa,
4365
- contentRow: ia,
4366
- newsletterSection: la,
4367
- newsletterDescription: da,
4368
- newsletterForm: ca,
4369
- newsletterInputGroup: pa,
4370
- newsletterInput: ma,
4371
- consentText: ga,
4372
- linksSection: ua,
4373
- linksColumn: ha,
4374
- linksTitle: fa,
4375
- linksList: ka,
4376
- footerLink: va,
4377
- divider: ba,
4378
- contactSection: ya,
4379
- contactColumn: xa,
4380
- contactTitle: Ta,
4381
- contactContent: Ca,
4382
- copyrightSection: wa,
4383
- copyrightText: Sa,
4384
- whiteSection: Ia,
4385
- whiteContainer: _a,
4386
- whiteContent: Da,
4387
- logo: La,
4388
- redCrossLogo: Aa,
4389
- slotLarge: Na,
4390
- contentRowContact: Ma,
4391
- socialLinksSection: ja,
4392
- socialLinksTitle: Fa,
4393
- socialLinksList: Ba,
4394
- socialLink: Ea,
4395
- socialLinkIcon: Pa,
4396
- contactPersonsSection: $a,
4397
- contactPersonsTitle: za,
4398
- contactPersonsGrid: Ra,
4399
- contactPersonCard: Ga,
4400
- contactPersonName: Wa,
4401
- contactPersonRole: Ha,
4402
- contactPersonDetails: Ua,
4403
- contactPersonLabel: Va,
4404
- contactPersonEmail: Oa,
4405
- contactPersonPhone: Ka,
4406
- contactPersonAddress: qa,
4407
- bottomRowContact: Ya,
4408
- legalLinksRow: Za,
4409
- legalLink: Xa,
4410
- dpMain: Ja,
4411
- dpContainer: Qa,
4412
- dpColumns: es,
4413
- dpColumn: ts,
4414
- dpColTitle: ns,
4415
- dpList: os,
4416
- dpLink: rs,
4417
- dpDivider: as,
4418
- dpMeta: ss,
4419
- dpMetaCol: is,
4420
- dpMetaTitle: ls,
4421
- dpMetaText: ds,
4422
- dpBottom: cs,
4423
- dpLegal: ps,
4424
- dpLegalLink: ms,
4425
- dpCopyright: gs,
4426
- dpLogoBox: us,
4427
- dpLogoImg: hs
4428
- }, Di = ({
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 = ({
4429
4860
  "data-color": n = "neutral",
4430
4861
  variant: e = "default",
4431
4862
  colorScheme: a,
4432
- columns: d,
4433
- showCrossCorners: h = !1,
4434
- newsletterDescription: k = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
4435
- newsletterPlaceholder: u = "Input tekst",
4436
- newsletterButtonText: v = "Meld deg på",
4437
- newsletterConsentText: M,
4438
- onNewsletterSubmit: C,
4439
- hideNewsletter: G = !1,
4440
- shortcutsLinks: I,
4441
- linksLinks: V,
4442
- shortcutsTitle: D,
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,
4443
4874
  linksTitle: p,
4444
- visitingAddress: X = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
4445
- organizationNumber: ne = "XXX XXX XXX",
4446
- email: _ = "post@redcross.no",
4447
- showPrimaryLogo: J = !0,
4448
- primaryLogoSrc: m,
4449
- primaryLogoAlt: L = "Røde Kors Logo",
4450
- whiteSectionSlot: w,
4451
- socialLinks: j = [],
4452
- contactPersons: A = [],
4453
- legalLinks: F = [],
4454
- socialLinksTitle: O,
4455
- contactPersonsTitle: Q
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
4456
4887
  } = {}) => {
4457
- const P = (/* @__PURE__ */ new Date()).getFullYear(), { t: B } = xe(), [E, f] = Le.useState(""), l = (c, T) => {
4458
- const $ = B(c);
4459
- return $ === c ? T : $;
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;
4460
4891
  };
4461
- Le.useEffect(() => {
4462
- const c = "rk-footer-inline-styles";
4463
- if (typeof document > "u" || document.getElementById(c)) return;
4464
- const T = fs(o), $ = document.createElement("style");
4465
- $.id = c, $.textContent = T, 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);
4466
4897
  }, []);
4467
- const y = (c) => {
4468
- c.preventDefault(), C == null || C(E);
4898
+ const se = (u) => {
4899
+ u.preventDefault(), I == null || I(F);
4469
4900
  }, ee = () => /* @__PURE__ */ r(
4470
4901
  "svg",
4471
4902
  {
@@ -4490,223 +4921,233 @@ const na = "_footer_12vvu_1", oa = "_mainSection_12vvu_7", ra = "_mainContainer_
4490
4921
  /* @__PURE__ */ t("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
4491
4922
  ]
4492
4923
  }
4493
- ), H = [
4494
- { label: l("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
4495
- { label: l("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
4496
- { label: l("footer.shortcutsLinks.ourWork", "Vårt arbeid"), href: "#" },
4497
- { label: l("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
4498
- { label: l("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
4499
- { label: l("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
4500
- ], S = [
4501
- { label: l("footer.legal.privacy", "Personvern"), href: "#" },
4502
- { label: l("footer.legal.press", "For presse"), href: "#" },
4503
- { label: l("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
4504
- { label: l("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
4505
- ], N = /* @__PURE__ */ r(Ge, { 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: [
4506
4937
  'Ved å trykke "',
4507
- v,
4938
+ x,
4508
4939
  '" samtykker du til å motta nyhetsbrev.',
4509
4940
  /* @__PURE__ */ t("br", {}),
4510
4941
  "Du kan når som helst ",
4511
- /* @__PURE__ */ t(re, { href: "#", children: "melde deg av" }),
4942
+ /* @__PURE__ */ t(pe, { href: "#", children: "melde deg av" }),
4512
4943
  " nyhetsbrevet uten kostnad."
4513
- ] }), K = I || H, x = V || S, te = () => /* @__PURE__ */ r("div", { className: o.socialLinksSection, children: [
4514
- O && /* @__PURE__ */ t("h3", { className: o.socialLinksTitle, children: O }),
4515
- /* @__PURE__ */ t("ul", { className: o.socialLinksList, children: j.map((c, T) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ r(re, { href: c.href, className: o.socialLink, children: [
4516
- /* @__PURE__ */ t("span", { className: o.socialLinkIcon, children: c.icon }),
4517
- c.label
4518
- ] }) }, T)) })
4519
- ] }), me = ({ person: c }) => /* @__PURE__ */ r("div", { className: o.contactPersonCard, children: [
4520
- /* @__PURE__ */ t("p", { className: o.contactPersonName, children: c.name }),
4521
- /* @__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 }),
4522
4953
  /* @__PURE__ */ r("div", { className: o.contactPersonDetails, children: [
4523
4954
  /* @__PURE__ */ r("p", { className: o.contactPersonEmail, children: [
4524
4955
  /* @__PURE__ */ r("span", { className: o.contactPersonLabel, children: [
4525
- l("footer.contact.email", "E-post"),
4956
+ g("footer.contact.email", "E-post"),
4526
4957
  ":"
4527
4958
  ] }),
4528
4959
  " ",
4529
- /* @__PURE__ */ t(re, { href: `mailto:${c.email}`, children: c.email })
4960
+ /* @__PURE__ */ t(pe, { href: `mailto:${u.email}`, children: u.email })
4530
4961
  ] }),
4531
- c.phone && /* @__PURE__ */ r("p", { className: o.contactPersonPhone, children: [
4962
+ u.phone && /* @__PURE__ */ r("p", { className: o.contactPersonPhone, children: [
4532
4963
  /* @__PURE__ */ r("span", { className: o.contactPersonLabel, children: [
4533
- l("footer.contact.phone", "Telefon"),
4964
+ g("footer.contact.phone", "Telefon"),
4534
4965
  ":"
4535
4966
  ] }),
4536
4967
  " ",
4537
- c.phone
4968
+ u.phone
4538
4969
  ] }),
4539
- c.address && /* @__PURE__ */ t("p", { className: o.contactPersonAddress, children: c.address })
4970
+ u.address && /* @__PURE__ */ t("p", { className: o.contactPersonAddress, children: u.address })
4540
4971
  ] })
4541
- ] }), ce = () => /* @__PURE__ */ r("div", { className: o.contactPersonsSection, children: [
4542
- Q && /* @__PURE__ */ t("h3", { className: o.contactPersonsTitle, children: Q }),
4543
- /* @__PURE__ */ t("div", { className: o.contactPersonsGrid, children: A.map((c, T) => /* @__PURE__ */ t(me, { person: c }, T)) })
4544
- ] }), pe = () => /* @__PURE__ */ t("ul", { className: o.legalLinksRow, children: F.map((c, T) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(re, { href: c.href, className: o.legalLink, children: c.label }) }, T)) });
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)) });
4545
4976
  if (e === "columns") {
4546
- const c = [
4977
+ const u = [
4547
4978
  {
4548
- title: l("footer.contact.title", "Kontakt"),
4549
- links: H
4979
+ title: g("footer.contact.title", "Kontakt"),
4980
+ links: te
4550
4981
  },
4551
4982
  {
4552
- title: l("footer.bidra", "Bidra"),
4553
- links: H
4983
+ title: g("footer.bidra", "Bidra"),
4984
+ links: te
4554
4985
  },
4555
4986
  {
4556
- title: l("footer.shortcuts", "Snarveier"),
4557
- links: H
4987
+ title: g("footer.shortcuts", "Snarveier"),
4988
+ links: te
4558
4989
  }
4559
- ], T = d && d.length > 0 ? d : c, $ = F.length > 0 ? F : S;
4560
- 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: [
4561
- /* @__PURE__ */ t("div", { className: o.dpColumns, children: T.map((q, ie) => /* @__PURE__ */ r("nav", { className: o.dpColumn, "aria-label": q.title, children: [
4562
- /* @__PURE__ */ t("h3", { className: o.dpColTitle, children: q.title }),
4563
- /* @__PURE__ */ t("ul", { className: o.dpList, children: q.links.map((i, g) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(re, { href: i.href, className: o.dpLink, children: i.label }) }, g)) })
4564
- ] }, ie)) }),
4565
- /* @__PURE__ */ t("hr", { className: o.dpDivider }),
4566
- /* @__PURE__ */ r("div", { className: o.dpMeta, children: [
4567
- /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4568
- /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.visitingAddress", "Besøksadresse") }),
4569
- X.map((q, ie) => /* @__PURE__ */ t("p", { className: o.dpMetaText, children: q }, ie))
4570
- ] }),
4571
- /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4572
- /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4573
- /* @__PURE__ */ t("p", { className: o.dpMetaText, children: ne })
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
+ ] })
4574
5011
  ] }),
4575
- /* @__PURE__ */ r("div", { className: o.dpMetaCol, children: [
4576
- /* @__PURE__ */ t("h4", { className: o.dpMetaTitle, children: l("footer.contact.email", "E-post") }),
4577
- /* @__PURE__ */ t("p", { className: o.dpMetaText, children: _ })
4578
- ] })
4579
- ] }),
4580
- /* @__PURE__ */ t("hr", { className: o.dpDivider }),
4581
- /* @__PURE__ */ r("div", { className: o.dpBottom, children: [
4582
- /* @__PURE__ */ t("ul", { className: o.dpLegal, children: $.map((q, ie) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(re, { href: q.href, className: o.dpLegalLink, children: q.label }) }, ie)) }),
4583
- /* @__PURE__ */ r("p", { className: o.dpCopyright, children: [
4584
- "© ",
4585
- P,
4586
- " ",
4587
- 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
+ ] })
4588
5021
  ] })
4589
- ] }),
4590
- m ? /* @__PURE__ */ t("img", { src: m, alt: L, className: o.dpLogoImg }) : /* @__PURE__ */ t("div", { className: o.dpLogoBox, "data-color-scheme": "light", children: /* @__PURE__ */ t(ee, {}) })
4591
- ] }) }) });
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
+ ] });
4592
5033
  }
4593
5034
  return e === "contact" ? /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
4594
5035
  /* @__PURE__ */ t("div", { className: o.mainSection, children: /* @__PURE__ */ r("div", { className: o.mainContainer, children: [
4595
- h && /* @__PURE__ */ t("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ t(be, { 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 }) }),
4596
5037
  /* @__PURE__ */ r("div", { className: o.contentRowContact, children: [
4597
- j.length > 0 && /* @__PURE__ */ t(te, {}),
4598
- A.length > 0 && /* @__PURE__ */ t(ce, {})
5038
+ q.length > 0 && /* @__PURE__ */ t(h, {}),
5039
+ Y.length > 0 && /* @__PURE__ */ t(j, {})
4599
5040
  ] }),
4600
5041
  /* @__PURE__ */ t("div", { className: o.divider }),
4601
5042
  /* @__PURE__ */ r("div", { className: o.contactSection, children: [
4602
5043
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4603
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.visitingAddress", "Besøks adresse") }),
4604
- /* @__PURE__ */ t("div", { className: o.contactContent, children: X.map((c, T) => /* @__PURE__ */ t("p", { children: c }, T)) })
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)) })
4605
5046
  ] }),
4606
5047
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4607
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4608
- /* @__PURE__ */ t("p", { className: o.contactContent, children: ne })
5048
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
5049
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: K })
4609
5050
  ] }),
4610
5051
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4611
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.email", "E-post") }),
4612
- /* @__PURE__ */ t("p", { className: o.contactContent, children: _ })
5052
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
5053
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: N })
4613
5054
  ] })
4614
5055
  ] }),
4615
5056
  /* @__PURE__ */ t("div", { className: o.divider }),
4616
5057
  /* @__PURE__ */ r("div", { className: o.bottomRowContact, children: [
4617
- F.length > 0 && /* @__PURE__ */ t(pe, {}),
5058
+ $.length > 0 && /* @__PURE__ */ t(_, {}),
4618
5059
  /* @__PURE__ */ r("p", { className: o.copyrightText, children: [
4619
5060
  "© ",
4620
- P,
5061
+ v,
4621
5062
  " ",
4622
- l("footer.copyright", "Rødekors")
5063
+ g("footer.copyright", "Rødekors")
4623
5064
  ] })
4624
5065
  ] }),
4625
- h && /* @__PURE__ */ t("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ t(be, { 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 }) })
4626
5067
  ] }) }),
4627
5068
  /* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
4628
- J && (m ? /* @__PURE__ */ t(
5069
+ w && (H ? /* @__PURE__ */ t(
4629
5070
  "img",
4630
5071
  {
4631
- src: m,
4632
- alt: L,
5072
+ src: H,
5073
+ alt: P,
4633
5074
  className: o.logo,
4634
5075
  loading: "lazy"
4635
5076
  }
4636
5077
  ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) })),
4637
- w && /* @__PURE__ */ t("div", { className: o.slotLarge, children: w })
5078
+ E && /* @__PURE__ */ t("div", { className: o.slotLarge, children: E })
4638
5079
  ] }) }) })
4639
5080
  ] }) : /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
4640
5081
  /* @__PURE__ */ t("div", { className: o.mainSection, children: /* @__PURE__ */ r("div", { className: o.mainContainer, children: [
4641
- h && /* @__PURE__ */ t("div", { className: o.crossCornerTopRight, children: /* @__PURE__ */ t(be, { 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 }) }),
4642
5083
  /* @__PURE__ */ r("div", { className: o.contentRow, children: [
4643
- !G && /* @__PURE__ */ r("div", { className: o.newsletterSection, children: [
4644
- /* @__PURE__ */ t("p", { className: o.newsletterDescription, children: k }),
4645
- /* @__PURE__ */ t("form", { className: o.newsletterForm, onSubmit: y, 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: [
4646
5087
  /* @__PURE__ */ t(
4647
- Ye,
5088
+ dt,
4648
5089
  {
4649
5090
  type: "email",
4650
- placeholder: u,
4651
- value: E,
4652
- onChange: (c) => f(c.target.value),
5091
+ placeholder: f,
5092
+ value: F,
5093
+ onChange: (u) => D(u.target.value),
4653
5094
  className: o.newsletterInput
4654
5095
  }
4655
5096
  ),
4656
- /* @__PURE__ */ t(de, { type: "submit", variant: "primary", "data-color": "neutral", children: v })
5097
+ /* @__PURE__ */ t(fe, { type: "submit", variant: "primary", "data-color": "neutral", children: x })
4657
5098
  ] }) }),
4658
- /* @__PURE__ */ t("p", { className: o.consentText, children: M || N })
5099
+ /* @__PURE__ */ t("p", { className: o.consentText, children: B || z })
4659
5100
  ] }),
4660
5101
  /* @__PURE__ */ r("div", { className: o.linksSection, children: [
4661
- /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": D || l("footer.shortcuts", "Snarveier"), children: [
4662
- /* @__PURE__ */ t("h3", { className: o.linksTitle, children: D || l("footer.shortcuts", "Snarveier") }),
4663
- /* @__PURE__ */ t("ul", { className: o.linksList, children: K.map((c, T) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(re, { href: c.href, className: o.footerLink, children: c.label }) }, T)) })
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)) })
4664
5105
  ] }),
4665
- /* @__PURE__ */ r("nav", { className: o.linksColumn, "aria-label": p || l("footer.links", "Lenker"), children: [
4666
- /* @__PURE__ */ t("h3", { className: o.linksTitle, children: p || l("footer.links", "Lenker") }),
4667
- /* @__PURE__ */ t("ul", { className: o.linksList, children: x.map((c, T) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(re, { href: c.href, className: o.footerLink, children: c.label }) }, T)) })
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)) })
4668
5109
  ] })
4669
5110
  ] })
4670
5111
  ] }),
4671
5112
  /* @__PURE__ */ t("div", { className: o.divider }),
4672
5113
  /* @__PURE__ */ r("div", { className: o.contactSection, children: [
4673
5114
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4674
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.visitingAddress", "Besøks adresse") }),
4675
- /* @__PURE__ */ t("div", { className: o.contactContent, children: X.map((c, T) => /* @__PURE__ */ t("p", { children: c }, T)) })
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)) })
4676
5117
  ] }),
4677
5118
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4678
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.organizationNumber", "Organisasjonsnummer") }),
4679
- /* @__PURE__ */ t("p", { className: o.contactContent, children: ne })
5119
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
5120
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: K })
4680
5121
  ] }),
4681
5122
  /* @__PURE__ */ r("div", { className: o.contactColumn, children: [
4682
- /* @__PURE__ */ t("h4", { className: o.contactTitle, children: l("footer.contact.email", "E-post") }),
4683
- /* @__PURE__ */ t("p", { className: o.contactContent, children: _ })
5123
+ /* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
5124
+ /* @__PURE__ */ t("p", { className: o.contactContent, children: N })
4684
5125
  ] })
4685
5126
  ] }),
4686
5127
  /* @__PURE__ */ t("div", { className: o.divider }),
4687
5128
  /* @__PURE__ */ t("div", { className: o.copyrightSection, children: /* @__PURE__ */ r("p", { className: o.copyrightText, children: [
4688
5129
  "© ",
4689
- P,
5130
+ v,
4690
5131
  " ",
4691
- l("footer.copyright", "Rødekors")
5132
+ g("footer.copyright", "Rødekors")
4692
5133
  ] }) }),
4693
- h && /* @__PURE__ */ t("div", { className: o.crossCornerBottomLeft, children: /* @__PURE__ */ t(be, { 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 }) })
4694
5135
  ] }) }),
4695
5136
  /* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
4696
- J && (m ? /* @__PURE__ */ t(
5137
+ w && (H ? /* @__PURE__ */ t(
4697
5138
  "img",
4698
5139
  {
4699
- src: m,
4700
- alt: L,
5140
+ src: H,
5141
+ alt: P,
4701
5142
  className: o.logo,
4702
5143
  loading: "lazy"
4703
5144
  }
4704
5145
  ) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) })),
4705
- w && /* @__PURE__ */ t("div", { className: o.slotLarge, children: w })
5146
+ E && /* @__PURE__ */ t("div", { className: o.slotLarge, children: E })
4706
5147
  ] }) }) })
4707
5148
  ] });
4708
5149
  };
4709
- function fs(n) {
5150
+ function $s(n) {
4710
5151
  const e = n;
4711
5152
  return `
4712
5153
  .${e.footer} {
@@ -4731,16 +5172,16 @@ function fs(n) {
4731
5172
  width: 100%;
4732
5173
  max-width: 1440px;
4733
5174
  margin: 0 auto;
4734
- padding: var(--ds-size-30, 120px) var(--ds-size-44, 175px);
5175
+ padding: var(--ds-size-30, 120px) 175px;
4735
5176
  box-sizing: border-box;
4736
5177
  }
4737
- .${e.crossCornerTopRight} {
5178
+ .${e.graphicElementTopRight} {
4738
5179
  display: flex;
4739
5180
  justify-content: flex-end;
4740
5181
  width: 100%;
4741
5182
  margin-bottom: var(--ds-size-6, 24px);
4742
5183
  }
4743
- .${e.crossCornerBottomLeft} {
5184
+ .${e.graphicElementBottomLeft} {
4744
5185
  display: flex;
4745
5186
  justify-content: flex-start;
4746
5187
  width: 100%;
@@ -4849,7 +5290,7 @@ function fs(n) {
4849
5290
  }
4850
5291
  .${e.contactTitle} {
4851
5292
  font-size: var(--ds-font-size-3, 16px);
4852
- font-weight: var(--ds-font-weight-bold);
5293
+ font-weight: var(--ds-font-weight-semibold);
4853
5294
  line-height: 1.5;
4854
5295
  letter-spacing: 0.04px;
4855
5296
  color: var(--ds-color-neutral-text-default, #2b2b2b);
@@ -4886,7 +5327,7 @@ function fs(n) {
4886
5327
  width: 100%;
4887
5328
  max-width: 1440px;
4888
5329
  margin: 0 auto;
4889
- padding: var(--ds-size-6, 24px) var(--ds-size-44, 175px);
5330
+ padding: var(--ds-size-6, 24px) 175px;
4890
5331
  box-sizing: border-box;
4891
5332
  }
4892
5333
  .${e.whiteContent} {
@@ -4922,7 +5363,7 @@ function fs(n) {
4922
5363
  }
4923
5364
  @media (max-width: 1024px) {
4924
5365
  .${e.mainContainer} {
4925
- padding: var(--ds-size-16, 64px) var(--ds-size-8, 32px);
5366
+ padding: var(--ds-size-15, 64px) var(--ds-size-8, 32px);
4926
5367
  }
4927
5368
  .${e.whiteContainer} {
4928
5369
  padding: var(--ds-size-6, 24px) var(--ds-size-8, 32px);
@@ -5032,7 +5473,7 @@ function fs(n) {
5032
5473
  }
5033
5474
  .${e.contactPersonName} {
5034
5475
  font-size: var(--ds-font-size-4, 18px);
5035
- font-weight: var(--ds-font-weight-bold);
5476
+ font-weight: var(--ds-font-weight-semibold);
5036
5477
  line-height: 1.5;
5037
5478
  letter-spacing: 0.09px;
5038
5479
  color: var(--ds-color-neutral-text-default, #2b2b2b);
@@ -5131,25 +5572,26 @@ function fs(n) {
5131
5572
  }
5132
5573
  `;
5133
5574
  }
5134
- const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_35", ys = "_amountSection_1hxqz_47", xs = "_amountLabel_1hxqz_55", Ts = "_amountButtons_1hxqz_64", Cs = "_customAmountField_1hxqz_75", ws = "_impactRow_1hxqz_80", Ss = "_heartIcon_1hxqz_88", Is = "_impactText_1hxqz_102", _s = "_impactAmount_1hxqz_112", Ds = "_actionsSection_1hxqz_117", Ls = "_vippsButton_1hxqz_127", As = "_vippsButtonLabel_1hxqz_157", Ns = "_vippsLogo_1hxqz_166", Ms = "_avtalegiroLink_1hxqz_179", js = "_tabHeartIcon_1hxqz_184", z = {
5135
- donor: ks,
5136
- tabsWrapper: vs,
5137
- content: bs,
5138
- amountSection: ys,
5139
- amountLabel: xs,
5140
- amountButtons: Ts,
5141
- customAmountField: Cs,
5142
- impactRow: ws,
5143
- heartIcon: Ss,
5144
- impactText: Is,
5145
- impactAmount: _s,
5146
- actionsSection: Ds,
5147
- vippsButton: Ls,
5148
- vippsButtonLabel: As,
5149
- vippsLogo: Ns,
5150
- avtalegiroLink: Ms,
5151
- tabHeartIcon: js
5152
- }, Re = () => /* @__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(
5153
5595
  "svg",
5154
5596
  {
5155
5597
  width: "19",
@@ -5167,7 +5609,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5167
5609
  }
5168
5610
  )
5169
5611
  }
5170
- ), Fs = () => /* @__PURE__ */ t(
5612
+ ), oi = () => /* @__PURE__ */ t(
5171
5613
  "svg",
5172
5614
  {
5173
5615
  width: "16",
@@ -5185,7 +5627,7 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5185
5627
  }
5186
5628
  )
5187
5629
  }
5188
- ), Bs = () => /* @__PURE__ */ t(
5630
+ ), ri = () => /* @__PURE__ */ t(
5189
5631
  "svg",
5190
5632
  {
5191
5633
  width: "64",
@@ -5203,134 +5645,154 @@ const ks = "_donor_1hxqz_1", vs = "_tabsWrapper_1hxqz_14", bs = "_content_1hxqz_
5203
5645
  }
5204
5646
  )
5205
5647
  }
5206
- ), Es = [
5648
+ ), ai = [
5207
5649
  { value: 220, label: "220 kr" },
5208
5650
  { value: 345, label: "345 kr" },
5209
5651
  { value: 660, label: "660 kr" }
5210
- ], Li = ({
5652
+ ], Ji = ({
5211
5653
  "data-color": n = "primary",
5212
- amounts: e = Es,
5654
+ amounts: e = ai,
5213
5655
  defaultAmount: a = 345,
5214
- oneTimeLabel: d = "En gang",
5215
- monthlyLabel: h = "Hver måned",
5216
- customAmountPlaceholder: k = "Valgfritt beløp",
5217
- amountLabel: u = "Velg ønsket beløp:",
5218
- impactMessage: v = "En gave på {amount} bidrar til ...",
5219
- vippsButtonLabel: M = "Gi med",
5220
- avtalegiroLabel: C = "Gi med avtalegiro",
5221
- avtalegiroHref: G = "#",
5222
- currencySuffix: I = "kr",
5223
- onVippsClick: V,
5224
- onAvtalegiroClick: D,
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,
5225
5667
  onAmountChange: p,
5226
- showVippsButton: X = !0,
5227
- showAvtalegiroLink: ne = !0,
5228
- showImpactMessage: _ = !0,
5229
- heartVariant: J = "outlined"
5668
+ showVippsButton: Q = !0,
5669
+ showAvtalegiroLink: K = !0,
5670
+ showImpactMessage: N = !0,
5671
+ heartVariant: w = "outlined"
5230
5672
  }) => {
5231
- const [m, L] = Z("monthly"), [w, j] = Z(a), [A, F] = Z(""), [O, Q] = Z(!1);
5232
- R(() => {
5233
- const S = "rk-donor-inline-styles";
5234
- if (typeof document > "u" || document.getElementById(S)) return;
5235
- const N = Ps(z), K = document.createElement("style");
5236
- K.id = S, K.textContent = N, document.head.appendChild(K);
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);
5237
5679
  }, []);
5238
- const P = O && A ? parseInt(A, 10) || 0 : w, B = (S) => {
5239
- j(S), Q(!1), F(""), p == null || p(S, m);
5240
- }, E = (S) => {
5241
- const N = S.target.value;
5242
- F(N), Q(!0);
5243
- const K = parseInt(N, 10);
5244
- K > 0 && (p == null || p(K, m));
5245
- }, f = () => {
5246
- Q(!0);
5247
- }, l = (S) => {
5248
- const N = S;
5249
- L(N), p == null || p(P, N);
5250
- }, y = () => {
5251
- V == null || V(P, m);
5252
- }, ee = () => {
5253
- D == null || D();
5254
- }, H = () => {
5255
- const S = `${P} ${I}`, N = v.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}");
5256
5698
  return /* @__PURE__ */ r("span", { children: [
5257
- N[0],
5258
- /* @__PURE__ */ t("span", { className: z.impactAmount, children: S }),
5259
- N[1] || ""
5699
+ h[0],
5700
+ /* @__PURE__ */ t("span", { className: O.impactAmount, children: T }),
5701
+ h[1] || ""
5260
5702
  ] });
5261
- };
5262
- return /* @__PURE__ */ r("div", { className: z.donor, "data-color": n, children: [
5263
- /* @__PURE__ */ t("div", { className: z.tabsWrapper, children: /* @__PURE__ */ t(Ce, { defaultValue: "monthly", onChange: l, "data-size": "md", children: /* @__PURE__ */ r(Ce.List, { children: [
5264
- /* @__PURE__ */ t(Ce.Tab, { value: "one-time", children: d }),
5265
- /* @__PURE__ */ r(Ce.Tab, { value: "monthly", children: [
5266
- /* @__PURE__ */ t("span", { className: z.tabHeartIcon, children: /* @__PURE__ */ t(Re, {}) }),
5267
- h
5268
- ] })
5269
- ] }) }) }),
5270
- /* @__PURE__ */ r("div", { className: z.content, children: [
5271
- /* @__PURE__ */ r("div", { className: z.amountSection, children: [
5272
- /* @__PURE__ */ t(ye, { className: z.amountLabel, "data-size": "sm", children: u }),
5273
- /* @__PURE__ */ t("div", { className: z.amountButtons, children: e.map((S) => {
5274
- const N = !O && w === S.value;
5275
- return /* @__PURE__ */ t(
5276
- de,
5277
- {
5278
- variant: N ? "primary" : "secondary",
5279
- "data-color": N ? "accent" : "neutral",
5280
- onClick: () => B(S.value),
5281
- children: S.label
5282
- },
5283
- S.value
5284
- );
5285
- }) }),
5286
- /* @__PURE__ */ t("div", { className: z.customAmountField, children: /* @__PURE__ */ t(
5287
- Xo,
5288
- {
5289
- "aria-label": k,
5290
- placeholder: k,
5291
- value: A,
5292
- onChange: E,
5293
- onFocus: f,
5294
- type: "number",
5295
- min: 1
5296
- }
5297
- ) })
5298
- ] }),
5299
- _ && /* @__PURE__ */ r("div", { className: z.impactRow, children: [
5300
- /* @__PURE__ */ t("div", { className: z.heartIcon, children: J === "filled" ? /* @__PURE__ */ t(Re, {}) : /* @__PURE__ */ t(Fs, {}) }),
5301
- /* @__PURE__ */ t("p", { className: z.impactText, children: H() })
5302
- ] }),
5303
- /* @__PURE__ */ r("div", { className: z.actionsSection, children: [
5304
- X && /* @__PURE__ */ r(
5305
- "button",
5306
- {
5307
- className: z.vippsButton,
5308
- onClick: y,
5309
- type: "button",
5310
- "aria-label": `${M} Vipps`,
5311
- children: [
5312
- /* @__PURE__ */ t("span", { className: z.vippsButtonLabel, children: M }),
5313
- /* @__PURE__ */ t("span", { className: z.vippsLogo, children: /* @__PURE__ */ t(Bs, {}) })
5314
- ]
5315
- }
5316
- ),
5317
- ne && /* @__PURE__ */ t(
5318
- re,
5319
- {
5320
- href: G,
5321
- "data-color": "neutral",
5322
- className: z.avtalegiroLink,
5323
- onClick: (S) => {
5324
- D && (S.preventDefault(), ee());
5325
- },
5326
- children: C
5327
- }
5328
- )
5329
- ] })
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
+ )
5330
5772
  ] })
5331
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
+ ) });
5332
5794
  };
5333
- function Ps(n) {
5795
+ function si(n) {
5334
5796
  return `
5335
5797
  .${n.donor} {
5336
5798
  border-radius: 16px;
@@ -5352,6 +5814,10 @@ function Ps(n) {
5352
5814
  display: flex !important;
5353
5815
  width: 100% !important;
5354
5816
  }
5817
+ .${n.tabPanel} {
5818
+ width: 100%;
5819
+ padding: 0;
5820
+ }
5355
5821
  .${n.tabsWrapper} [role="tab"] {
5356
5822
  flex: 1 1 50% !important;
5357
5823
  display: inline-flex !important;
@@ -5496,72 +5962,72 @@ function Ps(n) {
5496
5962
  `;
5497
5963
  }
5498
5964
  export {
5499
- un as Alert,
5500
- Oe as Avatar,
5501
- hn as Badge,
5502
- Us as BadgePosition,
5503
- Vs as Breadcrumbs,
5504
- Ks as BreadcrumbsItem,
5505
- qs as BreadcrumbsLink,
5506
- Os as BreadcrumbsList,
5507
- de as Button,
5508
- fn as Card,
5509
- Ys as CardBlock,
5510
- Po as Carousel,
5511
- kn as Checkbox,
5512
- Xs as Chip,
5513
- be as CrossCorner,
5514
- bo as DateInput,
5515
- co as DatePicker,
5516
- ei as Details,
5517
- ti as Dialog,
5518
- ni as Divider,
5519
- Li as Donor,
5520
- U as Dropdown,
5521
- li as DropdownButton,
5522
- ai as DropdownHeading,
5523
- ii as DropdownItem,
5524
- si as DropdownList,
5525
- oi as DropdownTrigger,
5526
- ri as DropdownTriggerContext,
5527
- di as ErrorSummary,
5528
- ci as Field,
5529
- Vo as FieldCounter,
5530
- Uo as FieldDescription,
5531
- pi as Fieldset,
5532
- Di as Footer,
5533
- _i as Header,
5534
- Oo as Heading,
5535
- Ye as Input,
5536
- Ko as Label,
5537
- Js as LanguageProvider,
5538
- re as Link,
5539
- mi as List,
5540
- qo as Pagination,
5541
- hi as PaginationButton,
5542
- ui as PaginationItem,
5543
- gi as PaginationList,
5544
- ye as Paragraph,
5545
- ki as Popover,
5546
- vi as Radio,
5547
- Te as Search,
5548
- yi as Select,
5549
- xi as SkeletonLoader,
5550
- Ti as SkipLink,
5551
- Eo as Spinner,
5552
- Yo as Suggestion,
5553
- De as Switch,
5554
- Ci as Table,
5555
- Ce as Tabs,
5556
- Zo as Tag,
5557
- wi as Textarea,
5558
- Xo as Textfield,
5559
- Si as ToggleGroup,
5560
- Ii as Tooltip,
5561
- Jo as ValidationMessage,
5562
- Zs as useCheckboxGroup,
5563
- Qs as useLanguage,
5564
- xe as useLanguageOptional,
5565
- fi as usePagination,
5566
- bi 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
5567
6033
  };