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