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