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