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