rk-designsystem 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -7
- package/dist/assets/images/ChevronLeftIcon.js +31 -0
- package/dist/assets/images/ChevronRightIcon.js +31 -0
- package/dist/components/Alert/index.js +16 -0
- package/dist/components/Avatar/index.js +9 -0
- package/dist/components/Badge/index.js +11 -0
- package/dist/components/Breadcrumbs/index.js +9 -0
- package/dist/components/Button/index.js +11 -0
- package/dist/components/Card/index.js +8 -0
- package/dist/components/Carousel/index.js +379 -0
- package/dist/components/Carousel/styles.module.css.js +38 -0
- package/dist/components/Checkbox/index.js +10 -0
- package/dist/components/Chip/index.js +6 -0
- package/dist/components/DateInput/index.js +258 -0
- package/dist/components/DateInput/styles.module.css.js +20 -0
- package/dist/components/DatePicker/index.js +360 -0
- package/dist/components/DatePicker/styles.module.css.js +30 -0
- package/dist/components/Details/index.js +6 -0
- package/dist/components/Dialog/index.js +6 -0
- package/dist/components/Divider/index.js +6 -0
- package/dist/components/Donor/index.js +382 -0
- package/dist/components/Donor/styles.module.css.js +42 -0
- package/dist/components/Dropdown/index.js +12 -0
- package/dist/components/ErrorSummary/index.js +6 -0
- package/dist/components/Field/index.js +10 -0
- package/dist/components/Fieldset/index.js +6 -0
- package/dist/components/Footer/index.js +722 -0
- package/dist/components/Footer/styles.module.css.js +138 -0
- package/dist/components/GraphicElement/index.js +317 -0
- package/dist/components/GraphicElement/styles.module.css.js +16 -0
- package/dist/components/Header/index.js +677 -0
- package/dist/components/Header/styles.module.css.js +114 -0
- package/dist/components/Heading/index.js +9 -0
- package/dist/components/Input/index.js +7 -0
- package/dist/components/Label/index.js +9 -0
- package/dist/components/Link/index.js +6 -0
- package/dist/components/List/index.js +6 -0
- package/dist/components/Pagination/index.js +11 -0
- package/dist/components/Paragraph/index.js +11 -0
- package/dist/components/Popover/index.js +6 -0
- package/dist/components/Radio/index.js +7 -0
- package/dist/components/Search/index.js +10 -0
- package/dist/components/Select/index.js +6 -0
- package/dist/components/SkeletonLoader/index.js +6 -0
- package/dist/components/SkipLink/index.js +6 -0
- package/dist/components/SpinnerLoader/index.js +6 -0
- package/dist/components/Suggestion/index.js +7 -0
- package/dist/components/Switch/index.js +6 -0
- package/dist/components/Table/index.js +6 -0
- package/dist/components/Tabs/index.js +6 -0
- package/dist/components/Tag/index.js +14 -0
- package/dist/components/Textarea/index.js +6 -0
- package/dist/components/Textfield/index.js +6 -0
- package/dist/components/ToggleGroup/index.js +6 -0
- package/dist/components/Tooltip/index.js +6 -0
- package/dist/components/ValidationMessage/index.js +9 -0
- package/dist/context/LanguageContext.js +91 -0
- package/dist/index.d.ts +170 -147
- package/dist/index.js +118 -0
- package/dist/rk-designsystem.css +1 -1
- package/dist/{componentlibrary.es.js → translations/index.js} +267 -3904
- package/dist/utils/search-index.js +106 -0
- package/package.json +21 -35
- package/dist/componentlibrary.umd.js +0 -1266
|
@@ -1,480 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Heading as mt, Alert as gt, Avatar as ut, BadgePosition as ht, Badge as ft, Breadcrumbs as kt, BreadcrumbsItem as vt, BreadcrumbsLink as bt, BreadcrumbsList as yt, Button as Ge, Card as xt, CardBlock as Tt, Checkbox as Ct, useCheckboxGroup as wt, Fieldset as ot, Chip as St, Spinner as _t, Details as It, Dialog as Lt, Divider as Dt, Dropdown as Mt, DropdownButton as jt, DropdownHeading as At, DropdownItem as Nt, DropdownList as Et, DropdownTrigger as Bt, DropdownTriggerContext as Ft, ErrorSummary as Pt, Field as $t, FieldCounter as zt, FieldDescription as Rt, Input as Gt, Label as Ht, Link as Wt, List as Ut, Pagination as Vt, PaginationButton as Ot, PaginationItem as Kt, PaginationList as Zt, usePagination as qt, Paragraph as Yt, Popover as Xt, Radio as Jt, useRadioGroup as Qt, Search as en, SearchInput as tn, SearchClear as nn, SearchButton as on, Select as rn, Skeleton as an, SkipLink as sn, EXPERIMENTAL_Suggestion as ln, Switch as dn, Table as cn, Tabs as pn, Tag as mn, Textarea as gn, Textfield as un, ToggleGroup as hn, Tooltip as fn, ValidationMessage as kn } from "@digdir/designsystemet-react";
|
|
4
|
-
import { startOfMonth as be, isValid as De, isSameMonth as Fe, format as ve, startOfWeek as He, addDays as Ce, subMonths as Ve, addMonths as Oe, endOfWeek as vn, isSameDay as Ke, isToday as bn, eachDayOfInterval as yn, getDaysInMonth as xn, setDate as Tn, parse as Cn } from "date-fns";
|
|
5
|
-
import wn from "embla-carousel-react";
|
|
6
|
-
import { ChevronLeftIcon as Sn, ChevronRightIcon as _n, PlayIcon as In, PauseIcon as Ln, ChevronDownIcon as Ze, XMarkIcon as qe, MagnifyingGlassIcon as Ye, MenuHamburgerIcon as Dn, HeartIcon as Mn } from "@navikt/aksel-icons";
|
|
7
|
-
const rt = me((n, e) => /* @__PURE__ */ t(mt, { ref: e, ...n }));
|
|
8
|
-
rt.displayName = "Heading";
|
|
9
|
-
const jn = me((n, e) => {
|
|
10
|
-
const { title: a, titleLevel: c, children: k, ...y } = n;
|
|
11
|
-
return /* @__PURE__ */ r(gt, { ref: e, ...y, children: [
|
|
12
|
-
a && (c ? /* @__PURE__ */ t(rt, { level: c, "data-size": "2xs", style: { marginBottom: "var(--ds-size-1)" }, children: a }) : /* @__PURE__ */ t("p", { className: "ds-heading", "data-size": "2xs", style: { marginBottom: "var(--ds-size-1)" }, children: a })),
|
|
13
|
-
k
|
|
14
|
-
] });
|
|
15
|
-
});
|
|
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) {
|
|
32
|
-
return (e = {}) => {
|
|
33
|
-
const a = e.width ? String(e.width) : n.defaultWidth;
|
|
34
|
-
return n.formats[a] || n.formats[n.defaultWidth];
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function _e(n) {
|
|
38
|
-
return (e, a) => {
|
|
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];
|
|
44
|
-
} else {
|
|
45
|
-
const f = n.defaultWidth, x = a != null && a.width ? String(a.width) : n.defaultWidth;
|
|
46
|
-
k = n.values[x] || n.values[f];
|
|
47
|
-
}
|
|
48
|
-
const y = n.argumentCallback ? n.argumentCallback(e) : e;
|
|
49
|
-
return k[y];
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function Ie(n) {
|
|
53
|
-
return (e, a = {}) => {
|
|
54
|
-
const c = a.width, k = c && n.matchPatterns[c] || n.matchPatterns[n.defaultMatchWidth], y = e.match(k);
|
|
55
|
-
if (!y)
|
|
56
|
-
return null;
|
|
57
|
-
const f = y[0], x = c && n.parsePatterns[c] || n.parsePatterns[n.defaultParseWidth], B = Array.isArray(x) ? Pn(x, (L) => L.test(f)) : (
|
|
58
|
-
// [TODO] -- I challenge you to fix the type
|
|
59
|
-
Fn(x, (L) => L.test(f))
|
|
60
|
-
);
|
|
61
|
-
let I;
|
|
62
|
-
I = n.valueCallback ? n.valueCallback(B) : B, I = a.valueCallback ? (
|
|
63
|
-
// [TODO] -- I challenge you to fix the type
|
|
64
|
-
a.valueCallback(I)
|
|
65
|
-
) : I;
|
|
66
|
-
const J = e.slice(f.length);
|
|
67
|
-
return { value: I, rest: J };
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function Fn(n, e) {
|
|
71
|
-
for (const a in n)
|
|
72
|
-
if (Object.prototype.hasOwnProperty.call(n, a) && e(n[a]))
|
|
73
|
-
return a;
|
|
74
|
-
}
|
|
75
|
-
function Pn(n, e) {
|
|
76
|
-
for (let a = 0; a < n.length; a++)
|
|
77
|
-
if (e(n[a]))
|
|
78
|
-
return a;
|
|
79
|
-
}
|
|
80
|
-
function $n(n) {
|
|
81
|
-
return (e, a = {}) => {
|
|
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 };
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
const zn = {
|
|
93
|
-
lessThanXSeconds: {
|
|
94
|
-
one: "mindre enn ett sekund",
|
|
95
|
-
other: "mindre enn {{count}} sekunder"
|
|
96
|
-
},
|
|
97
|
-
xSeconds: {
|
|
98
|
-
one: "ett sekund",
|
|
99
|
-
other: "{{count}} sekunder"
|
|
100
|
-
},
|
|
101
|
-
halfAMinute: "et halvt minutt",
|
|
102
|
-
lessThanXMinutes: {
|
|
103
|
-
one: "mindre enn ett minutt",
|
|
104
|
-
other: "mindre enn {{count}} minutter"
|
|
105
|
-
},
|
|
106
|
-
xMinutes: {
|
|
107
|
-
one: "ett minutt",
|
|
108
|
-
other: "{{count}} minutter"
|
|
109
|
-
},
|
|
110
|
-
aboutXHours: {
|
|
111
|
-
one: "omtrent en time",
|
|
112
|
-
other: "omtrent {{count}} timer"
|
|
113
|
-
},
|
|
114
|
-
xHours: {
|
|
115
|
-
one: "en time",
|
|
116
|
-
other: "{{count}} timer"
|
|
117
|
-
},
|
|
118
|
-
xDays: {
|
|
119
|
-
one: "en dag",
|
|
120
|
-
other: "{{count}} dager"
|
|
121
|
-
},
|
|
122
|
-
aboutXWeeks: {
|
|
123
|
-
one: "omtrent en uke",
|
|
124
|
-
other: "omtrent {{count}} uker"
|
|
125
|
-
},
|
|
126
|
-
xWeeks: {
|
|
127
|
-
one: "en uke",
|
|
128
|
-
other: "{{count}} uker"
|
|
129
|
-
},
|
|
130
|
-
aboutXMonths: {
|
|
131
|
-
one: "omtrent en måned",
|
|
132
|
-
other: "omtrent {{count}} måneder"
|
|
133
|
-
},
|
|
134
|
-
xMonths: {
|
|
135
|
-
one: "en måned",
|
|
136
|
-
other: "{{count}} måneder"
|
|
137
|
-
},
|
|
138
|
-
aboutXYears: {
|
|
139
|
-
one: "omtrent ett år",
|
|
140
|
-
other: "omtrent {{count}} år"
|
|
141
|
-
},
|
|
142
|
-
xYears: {
|
|
143
|
-
one: "ett år",
|
|
144
|
-
other: "{{count}} år"
|
|
145
|
-
},
|
|
146
|
-
overXYears: {
|
|
147
|
-
one: "over ett år",
|
|
148
|
-
other: "over {{count}} år"
|
|
149
|
-
},
|
|
150
|
-
almostXYears: {
|
|
151
|
-
one: "nesten ett år",
|
|
152
|
-
other: "nesten {{count}} år"
|
|
153
|
-
}
|
|
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 = {
|
|
159
|
-
full: "EEEE d. MMMM y",
|
|
160
|
-
long: "d. MMMM y",
|
|
161
|
-
medium: "d. MMM y",
|
|
162
|
-
short: "dd.MM.y"
|
|
163
|
-
}, Hn = {
|
|
164
|
-
full: "'kl'. HH:mm:ss zzzz",
|
|
165
|
-
long: "HH:mm:ss z",
|
|
166
|
-
medium: "HH:mm:ss",
|
|
167
|
-
short: "HH:mm"
|
|
168
|
-
}, Wn = {
|
|
169
|
-
full: "{{date}} 'kl.' {{time}}",
|
|
170
|
-
long: "{{date}} 'kl.' {{time}}",
|
|
171
|
-
medium: "{{date}} {{time}}",
|
|
172
|
-
short: "{{date}} {{time}}"
|
|
173
|
-
}, Un = {
|
|
174
|
-
date: $e({
|
|
175
|
-
formats: Gn,
|
|
176
|
-
defaultWidth: "full"
|
|
177
|
-
}),
|
|
178
|
-
time: $e({
|
|
179
|
-
formats: Hn,
|
|
180
|
-
defaultWidth: "full"
|
|
181
|
-
}),
|
|
182
|
-
dateTime: $e({
|
|
183
|
-
formats: Wn,
|
|
184
|
-
defaultWidth: "full"
|
|
185
|
-
})
|
|
186
|
-
}, Vn = {
|
|
187
|
-
lastWeek: "'forrige' eeee 'kl.' p",
|
|
188
|
-
yesterday: "'i går kl.' p",
|
|
189
|
-
today: "'i dag kl.' p",
|
|
190
|
-
tomorrow: "'i morgen kl.' p",
|
|
191
|
-
nextWeek: "EEEE 'kl.' p",
|
|
192
|
-
other: "P"
|
|
193
|
-
}, On = (n, e, a, c) => Vn[n], Kn = {
|
|
194
|
-
narrow: ["f.Kr.", "e.Kr."],
|
|
195
|
-
abbreviated: ["f.Kr.", "e.Kr."],
|
|
196
|
-
wide: ["før Kristus", "etter Kristus"]
|
|
197
|
-
}, Zn = {
|
|
198
|
-
narrow: ["1", "2", "3", "4"],
|
|
199
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
200
|
-
wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
|
|
201
|
-
}, qn = {
|
|
202
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
203
|
-
abbreviated: [
|
|
204
|
-
"jan.",
|
|
205
|
-
"feb.",
|
|
206
|
-
"mars",
|
|
207
|
-
"apr.",
|
|
208
|
-
"mai",
|
|
209
|
-
"juni",
|
|
210
|
-
"juli",
|
|
211
|
-
"aug.",
|
|
212
|
-
"sep.",
|
|
213
|
-
"okt.",
|
|
214
|
-
"nov.",
|
|
215
|
-
"des."
|
|
216
|
-
],
|
|
217
|
-
wide: [
|
|
218
|
-
"januar",
|
|
219
|
-
"februar",
|
|
220
|
-
"mars",
|
|
221
|
-
"april",
|
|
222
|
-
"mai",
|
|
223
|
-
"juni",
|
|
224
|
-
"juli",
|
|
225
|
-
"august",
|
|
226
|
-
"september",
|
|
227
|
-
"oktober",
|
|
228
|
-
"november",
|
|
229
|
-
"desember"
|
|
230
|
-
]
|
|
231
|
-
}, Yn = {
|
|
232
|
-
narrow: ["S", "M", "T", "O", "T", "F", "L"],
|
|
233
|
-
short: ["sø", "ma", "ti", "on", "to", "fr", "lø"],
|
|
234
|
-
abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
|
235
|
-
wide: [
|
|
236
|
-
"søndag",
|
|
237
|
-
"mandag",
|
|
238
|
-
"tirsdag",
|
|
239
|
-
"onsdag",
|
|
240
|
-
"torsdag",
|
|
241
|
-
"fredag",
|
|
242
|
-
"lørdag"
|
|
243
|
-
]
|
|
244
|
-
}, Xn = {
|
|
245
|
-
narrow: {
|
|
246
|
-
am: "a",
|
|
247
|
-
pm: "p",
|
|
248
|
-
midnight: "midnatt",
|
|
249
|
-
noon: "middag",
|
|
250
|
-
morning: "på morg.",
|
|
251
|
-
afternoon: "på etterm.",
|
|
252
|
-
evening: "på kvelden",
|
|
253
|
-
night: "på natten"
|
|
254
|
-
},
|
|
255
|
-
abbreviated: {
|
|
256
|
-
am: "a.m.",
|
|
257
|
-
pm: "p.m.",
|
|
258
|
-
midnight: "midnatt",
|
|
259
|
-
noon: "middag",
|
|
260
|
-
morning: "på morg.",
|
|
261
|
-
afternoon: "på etterm.",
|
|
262
|
-
evening: "på kvelden",
|
|
263
|
-
night: "på natten"
|
|
264
|
-
},
|
|
265
|
-
wide: {
|
|
266
|
-
am: "a.m.",
|
|
267
|
-
pm: "p.m.",
|
|
268
|
-
midnight: "midnatt",
|
|
269
|
-
noon: "middag",
|
|
270
|
-
morning: "på morgenen",
|
|
271
|
-
afternoon: "på ettermiddagen",
|
|
272
|
-
evening: "på kvelden",
|
|
273
|
-
night: "på natten"
|
|
274
|
-
}
|
|
275
|
-
}, Jn = (n, e) => Number(n) + ".", Qn = {
|
|
276
|
-
ordinalNumber: Jn,
|
|
277
|
-
era: _e({
|
|
278
|
-
values: Kn,
|
|
279
|
-
defaultWidth: "wide"
|
|
280
|
-
}),
|
|
281
|
-
quarter: _e({
|
|
282
|
-
values: Zn,
|
|
283
|
-
defaultWidth: "wide",
|
|
284
|
-
argumentCallback: (n) => n - 1
|
|
285
|
-
}),
|
|
286
|
-
month: _e({
|
|
287
|
-
values: qn,
|
|
288
|
-
defaultWidth: "wide"
|
|
289
|
-
}),
|
|
290
|
-
day: _e({
|
|
291
|
-
values: Yn,
|
|
292
|
-
defaultWidth: "wide"
|
|
293
|
-
}),
|
|
294
|
-
dayPeriod: _e({
|
|
295
|
-
values: Xn,
|
|
296
|
-
defaultWidth: "wide"
|
|
297
|
-
})
|
|
298
|
-
}, eo = /^(\d+)\.?/i, to = /\d+/i, no = {
|
|
299
|
-
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
300
|
-
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
|
|
301
|
-
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i
|
|
302
|
-
}, oo = {
|
|
303
|
-
any: [/^f/i, /^e/i]
|
|
304
|
-
}, ro = {
|
|
305
|
-
narrow: /^[1234]/i,
|
|
306
|
-
abbreviated: /^q[1234]/i,
|
|
307
|
-
wide: /^[1234](\.)? kvartal/i
|
|
308
|
-
}, ao = {
|
|
309
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
310
|
-
}, so = {
|
|
311
|
-
narrow: /^[jfmasond]/i,
|
|
312
|
-
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
|
|
313
|
-
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i
|
|
314
|
-
}, io = {
|
|
315
|
-
narrow: [
|
|
316
|
-
/^j/i,
|
|
317
|
-
/^f/i,
|
|
318
|
-
/^m/i,
|
|
319
|
-
/^a/i,
|
|
320
|
-
/^m/i,
|
|
321
|
-
/^j/i,
|
|
322
|
-
/^j/i,
|
|
323
|
-
/^a/i,
|
|
324
|
-
/^s/i,
|
|
325
|
-
/^o/i,
|
|
326
|
-
/^n/i,
|
|
327
|
-
/^d/i
|
|
328
|
-
],
|
|
329
|
-
any: [
|
|
330
|
-
/^ja/i,
|
|
331
|
-
/^f/i,
|
|
332
|
-
/^mar/i,
|
|
333
|
-
/^ap/i,
|
|
334
|
-
/^mai/i,
|
|
335
|
-
/^jun/i,
|
|
336
|
-
/^jul/i,
|
|
337
|
-
/^aug/i,
|
|
338
|
-
/^s/i,
|
|
339
|
-
/^o/i,
|
|
340
|
-
/^n/i,
|
|
341
|
-
/^d/i
|
|
342
|
-
]
|
|
343
|
-
}, lo = {
|
|
344
|
-
narrow: /^[smtofl]/i,
|
|
345
|
-
short: /^(sø|ma|ti|on|to|fr|lø)/i,
|
|
346
|
-
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
|
|
347
|
-
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i
|
|
348
|
-
}, co = {
|
|
349
|
-
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i]
|
|
350
|
-
}, po = {
|
|
351
|
-
narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
|
|
352
|
-
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i
|
|
353
|
-
}, mo = {
|
|
354
|
-
any: {
|
|
355
|
-
am: /^a(\.?\s?m\.?)?$/i,
|
|
356
|
-
pm: /^p(\.?\s?m\.?)?$/i,
|
|
357
|
-
midnight: /^midn/i,
|
|
358
|
-
noon: /^midd/i,
|
|
359
|
-
morning: /morgen/i,
|
|
360
|
-
afternoon: /ettermiddag/i,
|
|
361
|
-
evening: /kveld/i,
|
|
362
|
-
night: /natt/i
|
|
363
|
-
}
|
|
364
|
-
}, go = {
|
|
365
|
-
ordinalNumber: $n({
|
|
366
|
-
matchPattern: eo,
|
|
367
|
-
parsePattern: to,
|
|
368
|
-
valueCallback: (n) => parseInt(n, 10)
|
|
369
|
-
}),
|
|
370
|
-
era: Ie({
|
|
371
|
-
matchPatterns: no,
|
|
372
|
-
defaultMatchWidth: "wide",
|
|
373
|
-
parsePatterns: oo,
|
|
374
|
-
defaultParseWidth: "any"
|
|
375
|
-
}),
|
|
376
|
-
quarter: Ie({
|
|
377
|
-
matchPatterns: ro,
|
|
378
|
-
defaultMatchWidth: "wide",
|
|
379
|
-
parsePatterns: ao,
|
|
380
|
-
defaultParseWidth: "any",
|
|
381
|
-
valueCallback: (n) => n + 1
|
|
382
|
-
}),
|
|
383
|
-
month: Ie({
|
|
384
|
-
matchPatterns: so,
|
|
385
|
-
defaultMatchWidth: "wide",
|
|
386
|
-
parsePatterns: io,
|
|
387
|
-
defaultParseWidth: "any"
|
|
388
|
-
}),
|
|
389
|
-
day: Ie({
|
|
390
|
-
matchPatterns: lo,
|
|
391
|
-
defaultMatchWidth: "wide",
|
|
392
|
-
parsePatterns: co,
|
|
393
|
-
defaultParseWidth: "any"
|
|
394
|
-
}),
|
|
395
|
-
dayPeriod: Ie({
|
|
396
|
-
matchPatterns: po,
|
|
397
|
-
defaultMatchWidth: "any",
|
|
398
|
-
parsePatterns: mo,
|
|
399
|
-
defaultParseWidth: "any"
|
|
400
|
-
})
|
|
401
|
-
}, he = {
|
|
402
|
-
code: "nb",
|
|
403
|
-
formatDistance: Rn,
|
|
404
|
-
formatLong: Un,
|
|
405
|
-
formatRelative: On,
|
|
406
|
-
localize: Qn,
|
|
407
|
-
match: go,
|
|
408
|
-
options: {
|
|
409
|
-
weekStartsOn: 1,
|
|
410
|
-
firstWeekContainsDate: 4
|
|
411
|
-
}
|
|
412
|
-
}, st = ({ title: n, ...e }) => /* @__PURE__ */ r(
|
|
413
|
-
"svg",
|
|
414
|
-
{
|
|
415
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
416
|
-
width: "1em",
|
|
417
|
-
height: "1em",
|
|
418
|
-
viewBox: "0 0 28 28",
|
|
419
|
-
fill: "none",
|
|
420
|
-
"aria-hidden": n ? void 0 : !0,
|
|
421
|
-
focusable: "false",
|
|
422
|
-
...e,
|
|
423
|
-
children: [
|
|
424
|
-
n && /* @__PURE__ */ t("title", { children: n }),
|
|
425
|
-
/* @__PURE__ */ t(
|
|
426
|
-
"path",
|
|
427
|
-
{
|
|
428
|
-
fillRule: "evenodd",
|
|
429
|
-
clipRule: "evenodd",
|
|
430
|
-
d: "M16.952 6.96459C16.6103 6.62289 16.0563 6.62289 15.7146 6.96459L9.2979 13.3813C8.95621 13.723 8.95621 14.277 9.2979 14.6187L15.7146 21.0354C16.0563 21.3771 16.6103 21.3771 16.952 21.0354C17.2937 20.6937 17.2937 20.1396 16.952 19.7979L11.1541 14L16.952 8.20203C17.2937 7.86032 17.2937 7.3063 16.952 6.96459Z",
|
|
431
|
-
fill: "currentColor"
|
|
432
|
-
}
|
|
433
|
-
)
|
|
434
|
-
]
|
|
435
|
-
}
|
|
436
|
-
);
|
|
437
|
-
st.displayName = "ChevronLeftIcon";
|
|
438
|
-
const it = ({ title: n, ...e }) => /* @__PURE__ */ r(
|
|
439
|
-
"svg",
|
|
440
|
-
{
|
|
441
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
442
|
-
width: "1em",
|
|
443
|
-
height: "1em",
|
|
444
|
-
viewBox: "0 0 28 28",
|
|
445
|
-
fill: "none",
|
|
446
|
-
"aria-hidden": n ? void 0 : !0,
|
|
447
|
-
focusable: "false",
|
|
448
|
-
...e,
|
|
449
|
-
children: [
|
|
450
|
-
n && /* @__PURE__ */ t("title", { children: n }),
|
|
451
|
-
/* @__PURE__ */ t(
|
|
452
|
-
"path",
|
|
453
|
-
{
|
|
454
|
-
fillRule: "evenodd",
|
|
455
|
-
clipRule: "evenodd",
|
|
456
|
-
d: "M11.048 6.96459C11.3897 6.62289 11.9437 6.62289 12.2854 6.96459L18.7021 13.3813C19.0438 13.723 19.0438 14.277 18.7021 14.6187L12.2854 21.0354C11.9437 21.3771 11.3897 21.3771 11.048 21.0354C10.7063 20.6937 10.7063 20.1396 11.048 19.7979L16.8459 14L11.048 8.20203C10.7063 7.86032 10.7063 7.3063 11.048 6.96459Z",
|
|
457
|
-
fill: "currentColor"
|
|
458
|
-
}
|
|
459
|
-
)
|
|
460
|
-
]
|
|
461
|
-
}
|
|
462
|
-
);
|
|
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 = {
|
|
1
|
+
"use client";
|
|
2
|
+
const e = {
|
|
478
3
|
NO: {
|
|
479
4
|
// Header
|
|
480
5
|
header: {
|
|
@@ -500,6 +25,7 @@ const uo = "_calendarContainer_1ukqo_1", ho = "_calendarHeader_1ukqo_16", fo = "
|
|
|
500
25
|
homeAriaLabel: "Norges Røde Kors Hjem",
|
|
501
26
|
nav: {
|
|
502
27
|
design: "Design",
|
|
28
|
+
designDirection: "Designretning",
|
|
503
29
|
components: "Komponenter",
|
|
504
30
|
code: "Kode",
|
|
505
31
|
tokens: "Tokens",
|
|
@@ -601,6 +127,29 @@ const uo = "_calendarContainer_1ukqo_1", ho = "_calendarHeader_1ukqo_16", fo = "
|
|
|
601
127
|
alerts: "Varsler",
|
|
602
128
|
status: "Status"
|
|
603
129
|
},
|
|
130
|
+
// Search Results Page
|
|
131
|
+
searchResults: {
|
|
132
|
+
title: "Søkeresultater",
|
|
133
|
+
forQuery: 'for "{query}"',
|
|
134
|
+
count: "{count} treff funnet",
|
|
135
|
+
// Separate singular form: the {count} template can't inflect the
|
|
136
|
+
// sentence, so consumers pick countOne when there is exactly one hit.
|
|
137
|
+
countOne: "1 treff funnet",
|
|
138
|
+
noResults: 'Ingen resultater funnet for "{query}". Prøv et annet søkeord.',
|
|
139
|
+
// Keys mirror SearchItem['category'] so the page can look up the
|
|
140
|
+
// label directly from the raw category value.
|
|
141
|
+
categories: {
|
|
142
|
+
Component: "Komponent",
|
|
143
|
+
Page: "Side",
|
|
144
|
+
Design: "Design",
|
|
145
|
+
Code: "Kode"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
whatsNew: {
|
|
149
|
+
title: "Hva er nytt",
|
|
150
|
+
intro: "Alle utgivelser av rk-designsystem, hentet direkte fra changeloggen. Hver endring lenker til pull requesten der den ble innført.",
|
|
151
|
+
releaseLink: "Se utgivelsen på GitHub"
|
|
152
|
+
},
|
|
604
153
|
// Components Page
|
|
605
154
|
components: {
|
|
606
155
|
title: "Komponenter",
|
|
@@ -662,7 +211,8 @@ const uo = "_calendarContainer_1ukqo_1", ho = "_calendarHeader_1ukqo_16", fo = "
|
|
|
662
211
|
pnpmTitle: "pnpm",
|
|
663
212
|
note: "Viktig: Bruk className, IKKE variable. variable oppretter bare en CSS-variabel uten å faktisk bruke fonten.",
|
|
664
213
|
stylesTitle: "2. Sett opp layout med font",
|
|
665
|
-
|
|
214
|
+
stylesSimple: "Det enkleste oppsettet er én import som laster alt: Digdir-basen, Røde Kors-temaet, komponentstilene og Source Sans 3:",
|
|
215
|
+
stylesText1: "Vil du heller styre fonten selv med next/font i Next.js, importer stilene enkeltvis — husk da også komponentstilene (rk-designsystem.css):",
|
|
666
216
|
stylesText2: "Bruk sourceSans3.className på body-elementet for å aktivere fonten.",
|
|
667
217
|
appRouterExample: "Eksempel for Next.js (App Router - src/app/layout.tsx):",
|
|
668
218
|
pagesRouterExample: "Eksempel for Next.js (Pages Router - pages/_app.tsx):",
|
|
@@ -1071,7 +621,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
1071
621
|
componentSizes: "Komponentstørrelser",
|
|
1072
622
|
sizeTokens: "Størrelse-tokens",
|
|
1073
623
|
fontFamily: "Font-family",
|
|
1074
|
-
typoTokens: "Typografi-tokens"
|
|
624
|
+
typoTokens: "Typografi-tokens",
|
|
625
|
+
designDirection: "Designretning",
|
|
626
|
+
directionOverview: "Prinsipper og virkemidler"
|
|
1075
627
|
},
|
|
1076
628
|
intro: {
|
|
1077
629
|
title: "Design i Røde Kors",
|
|
@@ -1081,6 +633,109 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
1081
633
|
colors: "Farger",
|
|
1082
634
|
seeColors: "Se farger"
|
|
1083
635
|
},
|
|
636
|
+
direction: {
|
|
637
|
+
title: "Designretning",
|
|
638
|
+
intro: "Digitale produkter fra Røde Kors skal kommunisere i tråd med den digitale designprofilen. Designretningen samler prinsippene og virkemidlene som gir rk.no og resten av det digitale økosystemet et helhetlig uttrykk.",
|
|
639
|
+
principlesTitle: "Prinsippene",
|
|
640
|
+
principlesIntro: "Tre prinsipper ligger til grunn for alle designvalg i digitale flater:",
|
|
641
|
+
trustworthyTitle: "Troverdig",
|
|
642
|
+
trustworthyText: "Brukeren skal oppleve Røde Kors som trygg, ærlig og til å stole på.",
|
|
643
|
+
clearTitle: "Tydelig",
|
|
644
|
+
clearText: "Brukeren skal raskt forstå hva innholdet er, hvor de er, hva de kan gjøre, og hvordan de kommer videre.",
|
|
645
|
+
humanTitle: "Medmenneskelig",
|
|
646
|
+
humanText: "Brukeren skal møte en varm, nær og inkluderende digital opplevelse i tråd med vårt prinsipp om humanitet.",
|
|
647
|
+
meansTitle: "Virkemidlene",
|
|
648
|
+
meansIntro: "Prinsippene omsettes i praksis gjennom seks virkemidler. Hvert virkemiddel dokumenteres i egne artikler i denne seksjonen.",
|
|
649
|
+
warmTitle: "Varm",
|
|
650
|
+
warmText: "Avrundede former, varme nøytrale farger og vennlig typografi skaper et uttrykk som oppleves nært, menneskelig og trygt.",
|
|
651
|
+
scaleTitle: "Skala",
|
|
652
|
+
scaleText: "Designet skal vise at Røde Kors er til stede både nært brukeren og som en global bevegelse — lokalt, nasjonalt og internasjonalt.",
|
|
653
|
+
redThreadTitle: "Rød tråd (kors)",
|
|
654
|
+
redThreadText: "Et grafisk formspråk avledet av korsets ytterpunkter binder flatene sammen uten å konkurrere med logoen.",
|
|
655
|
+
storytellingTitle: "Mennesker i fokus",
|
|
656
|
+
storytellingText: "Ekte historier fra virkelige situasjoner, med ekte mennesker og ekte bilder, løftes frem som et bærende element.",
|
|
657
|
+
socialTitle: "Sosial tilstedeværelse",
|
|
658
|
+
socialText: "Innhold skal være enkelt å dele og kunne distribueres til flere kanaler uten dobbeltarbeid.",
|
|
659
|
+
progressTitle: "Framdrift og effekt",
|
|
660
|
+
progressText: "Handling skal synlig skape effekt — gjennom framdriftsindikatorer, konkrete resultater og tydelige eksempler på hva bidrag muliggjør.",
|
|
661
|
+
stableTitle: "Det som ikke endres",
|
|
662
|
+
stableText1: "Ikke alt endres. Noen elementer er kjernen i Røde Kors sin visuelle identitet og skal forbli stabile på tvers av konsept, tema og kanal.",
|
|
663
|
+
stableText2: "Bilder og tekst er de viktigste — de bærer historiene og menneskene som gjør merkevaren ekte. Valg av stil og tone skal fremheve kvaliteten i disse virkemidlene, ikke stjele oppmerksomhet fra dem. Klarspråkprinsippene for Røde Kors gjelder fortsatt for all tekst.",
|
|
664
|
+
approvalNote: "Eksemplene som vises er ikke endelig UI. De er tidlige eksempler brukt for å illustrere hvordan prinsippene og designretningen kan oversettes til rk.no.",
|
|
665
|
+
feelsTitle: "Rk.no skal føles",
|
|
666
|
+
feel1: "Tillitvekkende",
|
|
667
|
+
feel2: "Tydelig",
|
|
668
|
+
feel3: "Menneskelig",
|
|
669
|
+
feel4: "Lokal og global",
|
|
670
|
+
feel5: "Upartisk",
|
|
671
|
+
feel6: "Handlingsorientert",
|
|
672
|
+
// {n}/{total} interpoleres manuelt med .replace, som ellers i appen.
|
|
673
|
+
chapterLabel: "Kapittel {n} av {total}",
|
|
674
|
+
chapterNavLabel: "Kapittelnavigasjon",
|
|
675
|
+
heroPhotoAlt: "Frivillige fra Røde Kors Hjelpekorps i aksjon i fjellet",
|
|
676
|
+
chapterWarm: "Varm — farger og typografi",
|
|
677
|
+
colorSystemTitle: "Fargesystemet",
|
|
678
|
+
colorSystemText: "Røde Kors sin fargepalett er utvidet med varme nøytrale toner som komplementerer rød uten å konkurrere med den. De nye fargene skaper rom for nyanse, i bakgrunner, seksjoner og støtteelementer og gir flaten mer pust uten at merkevarefargen mister sin tyngde.",
|
|
679
|
+
colorBalanceTitle: "Fargebalanse",
|
|
680
|
+
colorBalanceText: "Farge brukes konsekvent og med tilbakeholdenhet — jo mer hvitt som omgir den, jo sterkere fremstår merkevarefargen. Variasjon i fargebruk må alltid sees i sammenheng med helhet, CTA-hierarki og den funksjonen fargen er satt til å løse.",
|
|
681
|
+
paletteTitle: "Utvidet fargepalett",
|
|
682
|
+
paletteText: "Røde Kors sin fargepalett er utvidet med varme nøytrale toner som komplementerer rød uten å konkurrere med den. De nye fargene skaper rom for nyanse — i bakgrunner, seksjoner og støtteelementer — og gir flaten mer pust uten at merkevarefargen mister sin tyngde. Endringer og tilpasninger sikrer også at vi oppfyller kravene til universell utforming.",
|
|
683
|
+
hierarchyTitle: "Fargehierarki",
|
|
684
|
+
hierarchyText: "Røde Kors betjener over en million brukere på tvers av vidt forskjellige digitale tjenester og behov. Alle handlinger teller — men ikke alle er like viktige i samme øyeblikk. Et tydelig knappehierarki gjør systemet intuitivt og trygt å navigere, uansett hvem du er eller hva du er der for å gjøre.",
|
|
685
|
+
primaryBtnTitle: "Primærknapp",
|
|
686
|
+
primaryBtnText: "Rød, fylt. Brukes til den viktigste handlingen per side: gi, meld deg på, søk hjelp. Kan brukes på foto og bakgrunnsfarger.",
|
|
687
|
+
secondaryBtnTitle: "Sekundærknapp",
|
|
688
|
+
secondaryBtnText: "Varm nøytral eller mørk med outline.",
|
|
689
|
+
tertiaryBtnTitle: "Tertiærknapp",
|
|
690
|
+
tertiaryBtnText: "Outlined.",
|
|
691
|
+
textButtonTitle: "Text button",
|
|
692
|
+
textButtonText: "Tekstlenke med pil eller understrek. For de minste handlingene: tilbake, avbryt, mer info. NB: Skal ikke brukes uten ikon.",
|
|
693
|
+
textLinkTitle: "Text link",
|
|
694
|
+
textLinkText: "Rød på hover skaper bevissthet rundt rød som et interaksjonselement.",
|
|
695
|
+
typographyTitle: "Typografi",
|
|
696
|
+
typographyText1: "I dag bruker Røde Kors Myriad Pro som hovedfont og Duplicate Ionic som serif-font, hovedsakelig for trykt og redaksjonelt innhold som Røde Kors-magasinet. For rk.no foreslår vi å bruke Source Sans 3 som hovedfont og Source Serif 4 som redaksjonell støttefont. Fontene har et uttrykk som ligger nær dagens typografiske retning, men er bedre egnet for digital bruk.",
|
|
697
|
+
typographyText2: "De er open source, enklere å forvalte lisensmessig, godt egnet for universell utforming, og mer robuste i et digitalt designsystem på tvers av nettsted, skjemaer, brukerflyter og redaksjonelle flater. Dersom vi ikke ønsker å bruke en serif-font, kan Source Sans 3 brukes som komplett typografisk system: Bold til store titler og tydelig hierarki, Regular til brødtekst og UI-elementer.",
|
|
698
|
+
typographyText3: "Flere offentlige designsystemer bruker i dag open source-fonter utviklet for digitale flater: NAVs Aksel bruker Source Sans 3, NVE bruker Source Sans Pro / Source Sans 3, mens Digdir Designsystemet og Udir bruker Inter. Fontvalg i digitale tjenester bør vurderes ut fra lesbarhet, universell utforming, teknisk robusthet, skalerbarhet og lisensforvaltning — ikke bare ut fra trykt merkevareprofil.",
|
|
699
|
+
adaptTitle: "Originalt og tilpasset",
|
|
700
|
+
adaptText: "Digdir-komponentene tilpasses designretningen. En av endringene er redusering av primær-CTA: mindre lakserosa, som i stedet flyttes mot knappene, mens beige brukes til accordions og kort.",
|
|
701
|
+
chapterRedThread: "Rød tråd (kors)",
|
|
702
|
+
redWhyTitle: "Hvorfor?",
|
|
703
|
+
redWhyText: "Krysset er Røde Kors sitt sterkeste visuelle virkemiddel, men det er reservert for logoen. For å ta korsformen i bruk i layout og grafiske elementer uten å konkurrere med logoen, bruker vi et avledet formspråk: rektangler og flater som refererer til kryss-geometrien uten å kopiere den.",
|
|
704
|
+
redExplainTitle: "Forklaring",
|
|
705
|
+
redExplainText: "Vi foreslår å bruke deler av Røde Kors-korset som et fleksibelt visuelt system. Formen hentes fra ytterpunktene i korset — de fire armene som skaper strukturen — og kan brukes som grafisk element på tvers av digitale flater.",
|
|
706
|
+
redElementsTitle: "Grafiske elementer",
|
|
707
|
+
redElementsText: "Kryssets fire armer deles opp og brukes som selvstendige grafiske elementer — vinkler, piler, hjørner og hjerter. Alle avledet av samme grunnform. Disse elementene kan fungere som visuelle koblinger på tvers av digitale produkter. De kan brukes i ulike farger, størrelser og komposisjoner for å skape gjenkjennelighet, retning og sammenheng mellom flater.",
|
|
708
|
+
redImportantTitle: "Viktig",
|
|
709
|
+
redImportantText: "Disse formene skal brukes som grafiske, dekorative eller strukturerende elementer. De skal ikke brukes som knapper, navigasjon eller interaktive elementer, slik at vi unngår forvirring og bevarer tydeligheten i brukeropplevelsen.",
|
|
710
|
+
chapterPeople: "Mennesker i fokus",
|
|
711
|
+
peopleWhyText: "For at Røde Kors sine digitale produkter skal oppleves som varme, troverdige, inkluderende og nære, bør mennesker og deres historier løftes frem som et bærende element. Det betyr at vi må løfte frem ekte historier fra frivillige, ansatte og mennesker som er engasjert i Røde Kors sitt arbeid — lokalt, nasjonalt og internasjonalt.",
|
|
712
|
+
realPeopleTitle: "Ekte mennesker",
|
|
713
|
+
realPeopleText: "Dette bør ikke være tomme eller oppstilte testimonials, men ekte fortellinger fra virkelige situasjoner, med ekte mennesker, ekte bilder og konkrete eksempler på hvordan Røde Kors er til stede i samfunnet. Gjennom personlige vitnesbyrd kan vi vise bredden i organisasjonen på en mer menneskelig måte: hvem vi er, hva vi gjør, hvorfor arbeidet betyr noe, og hvordan folk kan bidra.",
|
|
714
|
+
quoteExampleTitle: "Eksempel: sitatkort",
|
|
715
|
+
quoteExampleText: "Sitatkort brukes for å formidle noe menneskelig. Kortet har et bilde som bærer stemning, ikke bare informasjon, og overskriften er mer som en setning enn en kategori. Her kan display-fonten brukes — dette er der varmen bor.",
|
|
716
|
+
articleExampleTitle: "Eksempel: artikkelside",
|
|
717
|
+
articleExampleText: "Historiefortelling gjør Røde Kors mer nært og menneskelig, bygger tillit gjennom ekte erfaringer, viser mangfoldet i frivilligheten og synliggjør arbeidet lokalt, nasjonalt og internasjonalt.",
|
|
718
|
+
chapterSocial: "Sosial tilstedeværelse",
|
|
719
|
+
socialWhyText1: "For at Røde Kors sine digitale produkter skal oppleves mer nære, levende og lokale, bør vi integrere prinsipper fra sosiale medier direkte i nettstedet. I dag bruker mange lokalforeninger Facebook aktivt fordi det oppleves mer sosialt og umiddelbart. De kan publisere innlegg, få kommentarer fra frivillige, dele aktiviteter og vise at det faktisk skjer noe lokalt.",
|
|
720
|
+
socialWhyText2: "Målet er å gjøre Røde Kors sine digitale produkter mer levende, delbare og engasjerende, samtidig som vi beholder eierskap til innhold, data og brukeropplevelse.",
|
|
721
|
+
shareTitle: "Gjøre innhold enkelt å dele",
|
|
722
|
+
shareText: "Artikler, aktiviteter, kampanjer og historier bør alltid ha en enkel og tydelig måte å deles på. Hvis vi ønsker at folk skal engasjere seg, må vi gjøre det lett for dem å spre innhold videre i egne nettverk.",
|
|
723
|
+
noDuplicateTitle: "Unngå dobbeltarbeid",
|
|
724
|
+
noDuplicateText: "Innhold bør ikke måtte publiseres manuelt flere steder. Når noe publiseres i CMS-et, bør det kunne distribueres til flere kanaler: rk.no, lokale sider, nyhetsbrev og sosiale medier. På samme måte bør relevant sosialt innhold kunne hentes inn og gjenbrukes der det styrker brukeropplevelsen.",
|
|
725
|
+
chapterProgress: "Framdrift og effekt",
|
|
726
|
+
progressWhyText1: "For at Røde Kors sine digitale produkter skal oppleves mer troverdige, tydelige og motiverende, må vi vise at handling skaper effekt. Effekten bør vises gjennom tydelig framdrift, konkrete resultater og enkle eksempler — ikke bare generelle budskap.",
|
|
727
|
+
progressWhyText2: "Selv når vi ikke har eksakte tall, kan vi vise retning: hvor langt en kampanje har kommet, hvor mange frivillige som trengs, hvilke aktiviteter som er i gang, eller hvilke mål vi jobber mot. Målet er å gi brukeren følelsen av at det nytter — og at små handlinger er en del av noe større.",
|
|
728
|
+
campaignTitle: "Framdriftsindikatorer på kampanjer",
|
|
729
|
+
campaignText: "Vi kan synliggjøre fremgang og effekt på ulike måter, for eksempel gjennom innsamlingsresultater, frivilligbehov, lokale initiativer eller annen informasjon som viser hvilken forskjell bidrag og innsats gjør. Hvordan dette løses bør vurderes ut fra brukerbehov, redaksjonelle behov og tekniske muligheter.",
|
|
730
|
+
thanksTitle: "Synlig effekt etter donasjon",
|
|
731
|
+
thanksText: "Etter at brukeren har gitt penger, bør vi vise hva bidraget kan være med på å muliggjøre.",
|
|
732
|
+
activityTitle: "Effekt på aktivitetssider",
|
|
733
|
+
activityText: "Aktivitetssider bør vise hva aktiviteten faktisk skaper, ikke bare hva den er.",
|
|
734
|
+
localTitle: "Lokale resultater",
|
|
735
|
+
localText: "Lokale sider bør vise hva som skjer i området: aktiviteter, frivillige, behov og små resultater over tid.",
|
|
736
|
+
actionOrientedTitle: "Handlingsorientert",
|
|
737
|
+
actionOrientedText: "Vi skal alltid vise at handling skaper effekt. Donasjoner, frivillighet, deling og deltakelse skal ikke oppleves som isolerte handlinger, men som bidrag til en større framdrift. Gjennom tydelige resultater, visuelle indikatorer og konkrete eksempler kan rodekors.no gjøre Røde Kors sitt arbeid mer håndgripelig, motiverende og troverdig."
|
|
738
|
+
},
|
|
1084
739
|
tokens: {
|
|
1085
740
|
whatIsTitle: "Hva er design tokens",
|
|
1086
741
|
whatIsText1: '"Design Tokens" styrer hvordan komponentene skal se ut i forhold til farger, typografi, størrelser, avstander, former osv. Design tokens sørger vi for at både designere og utviklere arbeider etter de samme reglene og retningslinjene.',
|
|
@@ -1564,6 +1219,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
1564
1219
|
homeAriaLabel: "Norwegian Red Cross Home",
|
|
1565
1220
|
nav: {
|
|
1566
1221
|
design: "Design",
|
|
1222
|
+
designDirection: "Design Direction",
|
|
1567
1223
|
components: "Components",
|
|
1568
1224
|
code: "Code",
|
|
1569
1225
|
tokens: "Tokens",
|
|
@@ -1665,6 +1321,29 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
1665
1321
|
alerts: "Alerts",
|
|
1666
1322
|
status: "Status"
|
|
1667
1323
|
},
|
|
1324
|
+
// Search Results Page
|
|
1325
|
+
searchResults: {
|
|
1326
|
+
title: "Search results",
|
|
1327
|
+
forQuery: 'for "{query}"',
|
|
1328
|
+
count: "{count} results found",
|
|
1329
|
+
// Separate singular form: the {count} template can't inflect the
|
|
1330
|
+
// sentence, so consumers pick countOne when there is exactly one hit.
|
|
1331
|
+
countOne: "1 result found",
|
|
1332
|
+
noResults: 'No results found for "{query}". Try a different search term.',
|
|
1333
|
+
// Keys mirror SearchItem['category'] so the page can look up the
|
|
1334
|
+
// label directly from the raw category value.
|
|
1335
|
+
categories: {
|
|
1336
|
+
Component: "Component",
|
|
1337
|
+
Page: "Page",
|
|
1338
|
+
Design: "Design",
|
|
1339
|
+
Code: "Code"
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
whatsNew: {
|
|
1343
|
+
title: "What's new",
|
|
1344
|
+
intro: "Every release of rk-designsystem, taken directly from the changelog. Each change links to the pull request that introduced it.",
|
|
1345
|
+
releaseLink: "View the release on GitHub"
|
|
1346
|
+
},
|
|
1668
1347
|
// Components Page
|
|
1669
1348
|
components: {
|
|
1670
1349
|
title: "Components",
|
|
@@ -1726,7 +1405,8 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
1726
1405
|
pnpmTitle: "pnpm",
|
|
1727
1406
|
note: "Important: Use className, NOT variable. The variable option only creates a CSS custom property without actually applying the font.",
|
|
1728
1407
|
stylesTitle: "2. Setup Layout with Font",
|
|
1729
|
-
|
|
1408
|
+
stylesSimple: "The simplest setup is a single import that loads everything: the Digdir base, the Røde Kors theme, the component styles and Source Sans 3:",
|
|
1409
|
+
stylesText1: "If you prefer to control the font yourself with next/font in Next.js, import the styles individually — remember the component styles (rk-designsystem.css) too:",
|
|
1730
1410
|
stylesText2: "Use sourceSans3.className on the body element to apply the font.",
|
|
1731
1411
|
appRouterExample: "Example for Next.js (App Router - src/app/layout.tsx):",
|
|
1732
1412
|
pagesRouterExample: "Example for Next.js (Pages Router - pages/_app.tsx):",
|
|
@@ -2137,7 +1817,9 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2137
1817
|
componentSizes: "Component Sizes",
|
|
2138
1818
|
sizeTokens: "Size Tokens",
|
|
2139
1819
|
fontFamily: "Font Family",
|
|
2140
|
-
typoTokens: "Typography Tokens"
|
|
1820
|
+
typoTokens: "Typography Tokens",
|
|
1821
|
+
designDirection: "Design Direction",
|
|
1822
|
+
directionOverview: "Principles and approaches"
|
|
2141
1823
|
},
|
|
2142
1824
|
intro: {
|
|
2143
1825
|
title: "Design in Red Cross",
|
|
@@ -2147,6 +1829,109 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2147
1829
|
colors: "Colors",
|
|
2148
1830
|
seeColors: "See colors"
|
|
2149
1831
|
},
|
|
1832
|
+
direction: {
|
|
1833
|
+
title: "Design Direction",
|
|
1834
|
+
intro: "Digital products from the Red Cross should communicate in line with the digital design profile. The design direction gathers the principles and approaches that give rk.no and the rest of the digital ecosystem a coherent expression.",
|
|
1835
|
+
principlesTitle: "The Principles",
|
|
1836
|
+
principlesIntro: "Three principles underpin every design decision on digital surfaces:",
|
|
1837
|
+
trustworthyTitle: "Trustworthy",
|
|
1838
|
+
trustworthyText: "Users should experience the Red Cross as safe, honest and reliable.",
|
|
1839
|
+
clearTitle: "Clear",
|
|
1840
|
+
clearText: "Users should quickly understand what the content is, where they are, what they can do, and how to move on.",
|
|
1841
|
+
humanTitle: "Humane",
|
|
1842
|
+
humanText: "Users should meet a warm, close and inclusive digital experience, in line with our principle of humanity.",
|
|
1843
|
+
meansTitle: "The Approaches",
|
|
1844
|
+
meansIntro: "The principles are put into practice through six approaches. Each approach is documented in its own article in this section.",
|
|
1845
|
+
warmTitle: "Warm",
|
|
1846
|
+
warmText: "Rounded shapes, warm neutral colors and friendly typography create an expression that feels close, human and safe.",
|
|
1847
|
+
scaleTitle: "Scale",
|
|
1848
|
+
scaleText: "The design should show that the Red Cross is present both close to the user and as a global movement — locally, nationally and internationally.",
|
|
1849
|
+
redThreadTitle: "Red thread (cross)",
|
|
1850
|
+
redThreadText: "A graphic language derived from the outer points of the cross ties the surfaces together without competing with the logo.",
|
|
1851
|
+
storytellingTitle: "People in focus",
|
|
1852
|
+
storytellingText: "Real stories from real situations, with real people and real photos, are lifted forward as a load-bearing element.",
|
|
1853
|
+
socialTitle: "Social presence",
|
|
1854
|
+
socialText: "Content should be easy to share and possible to distribute to several channels without duplicate work.",
|
|
1855
|
+
progressTitle: "Progress and impact",
|
|
1856
|
+
progressText: "Action should visibly create impact — through progress indicators, concrete results and clear examples of what contributions make possible.",
|
|
1857
|
+
stableTitle: "What does not change",
|
|
1858
|
+
stableText1: "Not everything changes. Some elements are the core of the Red Cross visual identity and should stay stable across concepts, themes and channels.",
|
|
1859
|
+
stableText2: "Photos and text are the most important — they carry the stories and the people that make the brand real. Choices of style and tone should highlight the quality of these carriers, not steal attention from them. The Red Cross plain-language principles still apply to all text.",
|
|
1860
|
+
approvalNote: "The examples shown are not final UI. They are early examples used to illustrate how the principles and the design direction can translate to rk.no.",
|
|
1861
|
+
feelsTitle: "Rk.no should feel",
|
|
1862
|
+
feel1: "Trustworthy",
|
|
1863
|
+
feel2: "Clear",
|
|
1864
|
+
feel3: "Human",
|
|
1865
|
+
feel4: "Local and global",
|
|
1866
|
+
feel5: "Impartial",
|
|
1867
|
+
feel6: "Action-oriented",
|
|
1868
|
+
// {n}/{total} interpoleres manuelt med .replace, som ellers i appen.
|
|
1869
|
+
chapterLabel: "Chapter {n} of {total}",
|
|
1870
|
+
chapterNavLabel: "Chapter navigation",
|
|
1871
|
+
heroPhotoAlt: "Red Cross search and rescue volunteers in action in the mountains",
|
|
1872
|
+
chapterWarm: "Warm — colors and typography",
|
|
1873
|
+
colorSystemTitle: "The color system",
|
|
1874
|
+
colorSystemText: "The Red Cross color palette has been extended with warm neutral tones that complement red without competing with it. The new colors create room for nuance — in backgrounds, sections and supporting elements — and give the surface more breathing room without the brand color losing its weight.",
|
|
1875
|
+
colorBalanceTitle: "Color balance",
|
|
1876
|
+
colorBalanceText: "Color is used consistently and with restraint — the more white that surrounds it, the stronger the brand color appears. Variation in color use must always be seen in relation to the whole, the CTA hierarchy and the function the color is set to solve.",
|
|
1877
|
+
paletteTitle: "Extended color palette",
|
|
1878
|
+
paletteText: "The Red Cross color palette has been extended with warm neutral tones that complement red without competing with it. The new colors create room for nuance — in backgrounds, sections and supporting elements — and give the surface more breathing room without the brand color losing its weight. The changes and adjustments also ensure that we meet accessibility requirements.",
|
|
1879
|
+
hierarchyTitle: "Color hierarchy",
|
|
1880
|
+
hierarchyText: "The Red Cross serves over a million users across widely different digital services and needs. Every action counts — but not all are equally important in the same moment. A clear button hierarchy makes the system intuitive and safe to navigate, no matter who you are or what you are there to do.",
|
|
1881
|
+
primaryBtnTitle: "Primary button",
|
|
1882
|
+
primaryBtnText: "Red, filled. Used for the most important action per page: donate, sign up, seek help. Can be used on photos and background colors.",
|
|
1883
|
+
secondaryBtnTitle: "Secondary button",
|
|
1884
|
+
secondaryBtnText: "Warm neutral or dark with an outline.",
|
|
1885
|
+
tertiaryBtnTitle: "Tertiary button",
|
|
1886
|
+
tertiaryBtnText: "Outlined.",
|
|
1887
|
+
textButtonTitle: "Text button",
|
|
1888
|
+
textButtonText: "Text link with an arrow or underline. For the smallest actions: back, cancel, more info. Note: must not be used without an icon.",
|
|
1889
|
+
textLinkTitle: "Text link",
|
|
1890
|
+
textLinkText: "Red on hover builds awareness of red as an interaction element.",
|
|
1891
|
+
typographyTitle: "Typography",
|
|
1892
|
+
typographyText1: "Today the Red Cross uses Myriad Pro as its main font and Duplicate Ionic as its serif font, mainly for print and editorial content such as the Red Cross magazine. For rk.no we propose Source Sans 3 as the main font and Source Serif 4 as an editorial supporting font. The fonts have an expression close to the current typographic direction, but are better suited for digital use.",
|
|
1893
|
+
typographyText2: "They are open source, easier to manage license-wise, well suited for accessibility, and more robust in a digital design system across websites, forms, user flows and editorial surfaces. If we do not want a serif font, Source Sans 3 can be used as a complete typographic system: Bold for large titles and clear hierarchy, Regular for body text and UI elements.",
|
|
1894
|
+
typographyText3: "Several public design systems already use open source fonts developed for digital surfaces: NAV's Aksel uses Source Sans 3, NVE uses Source Sans Pro / Source Sans 3, while the Digdir design system and Udir use Inter. Font choices in digital services should be judged on readability, accessibility, technical robustness, scalability and license management — not just on the printed brand profile.",
|
|
1895
|
+
adaptTitle: "Original and adapted",
|
|
1896
|
+
adaptText: "The Digdir components are adapted to the design direction. One of the changes is reducing the primary CTA: less salmon pink, shifted toward the buttons instead, with beige used for accordions and cards.",
|
|
1897
|
+
chapterRedThread: "Red thread (cross)",
|
|
1898
|
+
redWhyTitle: "Why?",
|
|
1899
|
+
redWhyText: "The cross is the Red Cross's strongest visual element, but it is reserved for the logo. To put the cross shape to use in layout and graphic elements without competing with the logo, we use a derived language of form: rectangles and surfaces that reference the cross geometry without copying it.",
|
|
1900
|
+
redExplainTitle: "Explanation",
|
|
1901
|
+
redExplainText: "We propose using parts of the Red Cross cross as a flexible visual system. The shape is taken from the outer points of the cross — the four arms that create its structure — and can be used as a graphic element across digital surfaces.",
|
|
1902
|
+
redElementsTitle: "Graphic elements",
|
|
1903
|
+
redElementsText: "The four arms of the cross are split up and used as independent graphic elements — angles, arrows, corners and hearts. All derived from the same base shape. These elements can act as visual connections across digital products. They can be used in different colors, sizes and compositions to create recognition, direction and coherence between surfaces.",
|
|
1904
|
+
redImportantTitle: "Important",
|
|
1905
|
+
redImportantText: "These shapes are to be used as graphic, decorative or structuring elements. They must not be used as buttons, navigation or interactive elements, so we avoid confusion and preserve clarity in the user experience.",
|
|
1906
|
+
chapterPeople: "People in focus",
|
|
1907
|
+
peopleWhyText: "For the Red Cross's digital products to feel warm, trustworthy, inclusive and close, people and their stories should be lifted forward as a load-bearing element. That means highlighting real stories from volunteers, employees and people engaged in the Red Cross's work — locally, nationally and internationally.",
|
|
1908
|
+
realPeopleTitle: "Real people",
|
|
1909
|
+
realPeopleText: "These should not be empty or staged testimonials, but real accounts from real situations, with real people, real photos and concrete examples of how the Red Cross is present in society. Through personal testimony we can show the breadth of the organization in a more human way: who we are, what we do, why the work matters, and how people can contribute.",
|
|
1910
|
+
quoteExampleTitle: "Example: quote cards",
|
|
1911
|
+
quoteExampleText: "Quote cards are used to convey something human. The card has a photo that carries mood, not just information, and the heading reads more like a sentence than a category. The display font can be used here — this is where the warmth lives.",
|
|
1912
|
+
articleExampleTitle: "Example: article page",
|
|
1913
|
+
articleExampleText: "Storytelling makes the Red Cross more close and human, builds trust through real experiences, shows the diversity of the volunteer community and makes the work visible locally, nationally and internationally.",
|
|
1914
|
+
chapterSocial: "Social presence",
|
|
1915
|
+
socialWhyText1: "For the Red Cross's digital products to feel more close, alive and local, we should integrate principles from social media directly into the website. Today many local branches use Facebook actively because it feels more social and immediate. They can publish posts, get comments from volunteers, share activities and show that things are actually happening locally.",
|
|
1916
|
+
socialWhyText2: "The goal is to make the Red Cross's digital products more alive, shareable and engaging, while keeping ownership of content, data and the user experience.",
|
|
1917
|
+
shareTitle: "Make content easy to share",
|
|
1918
|
+
shareText: "Articles, activities, campaigns and stories should always have a simple and clear way to be shared. If we want people to engage, we must make it easy for them to spread content onward in their own networks.",
|
|
1919
|
+
noDuplicateTitle: "Avoid duplicate work",
|
|
1920
|
+
noDuplicateText: "Content should not have to be published manually in several places. When something is published in the CMS, it should be distributable to several channels: rk.no, local pages, newsletters and social media. In the same way, relevant social content should be possible to pull in and reuse where it strengthens the user experience.",
|
|
1921
|
+
chapterProgress: "Progress and impact",
|
|
1922
|
+
progressWhyText1: "For the Red Cross's digital products to feel more trustworthy, clear and motivating, we must show that action creates impact. The impact should be shown through clear progress, concrete results and simple examples — not just general messaging.",
|
|
1923
|
+
progressWhyText2: "Even when we do not have exact numbers, we can show direction: how far a campaign has come, how many volunteers are needed, which activities are underway, or which goals we are working toward. The goal is to give users the feeling that it helps — and that small actions are part of something bigger.",
|
|
1924
|
+
campaignTitle: "Progress indicators on campaigns",
|
|
1925
|
+
campaignText: "We can make progress and impact visible in different ways, for example through fundraising results, volunteer needs, local initiatives or other information that shows the difference contributions and effort make. How this is solved should be judged on user needs, editorial needs and technical possibilities.",
|
|
1926
|
+
thanksTitle: "Visible impact after donating",
|
|
1927
|
+
thanksText: "After users have donated, we should show what their contribution can help make possible.",
|
|
1928
|
+
activityTitle: "Impact on activity pages",
|
|
1929
|
+
activityText: "Activity pages should show what the activity actually creates, not just what it is.",
|
|
1930
|
+
localTitle: "Local results",
|
|
1931
|
+
localText: "Local pages should show what is happening in the area: activities, volunteers, needs and small results over time.",
|
|
1932
|
+
actionOrientedTitle: "Action-oriented",
|
|
1933
|
+
actionOrientedText: "We must always show that action creates impact. Donations, volunteering, sharing and participation should not feel like isolated actions, but like contributions to a larger progress. Through clear results, visual indicators and concrete examples, rodekors.no can make the Red Cross's work more tangible, motivating and trustworthy."
|
|
1934
|
+
},
|
|
2150
1935
|
tokens: {
|
|
2151
1936
|
whatIsTitle: "What are Design Tokens",
|
|
2152
1937
|
whatIsText1: '"Design Tokens" control how components look regarding colors, typography, sizes, spacing, shapes etc. Design tokens ensure both designers and developers work by the same rules and guidelines.',
|
|
@@ -2605,3429 +2390,7 @@ Map design elements to our existing components where possible (e.g. Buttons, Hea
|
|
|
2605
2390
|
openDatePicker: "Open date picker"
|
|
2606
2391
|
}
|
|
2607
2392
|
}
|
|
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];
|
|
2616
|
-
}
|
|
2617
|
-
return f;
|
|
2618
|
-
};
|
|
2619
|
-
return /* @__PURE__ */ t(Ue.Provider, { value: { language: e, setLanguage: a, t: c }, children: n });
|
|
2620
|
-
}, Ti = () => {
|
|
2621
|
-
const n = nt(Ue);
|
|
2622
|
-
if (n === void 0)
|
|
2623
|
-
throw new Error("useLanguage must be used within a LanguageProvider");
|
|
2624
|
-
return n;
|
|
2625
|
-
}, Be = () => {
|
|
2626
|
-
const n = nt(Ue);
|
|
2627
|
-
return n === void 0 ? {
|
|
2628
|
-
language: "NO",
|
|
2629
|
-
setLanguage: () => {
|
|
2630
|
-
console.warn("LanguageProvider is not available. Language changes will not work.");
|
|
2631
|
-
},
|
|
2632
|
-
t: (e) => ({
|
|
2633
|
-
// Header translations
|
|
2634
|
-
"header.darkMode": "Nattmodus",
|
|
2635
|
-
"header.language": "Språk",
|
|
2636
|
-
"header.selectLanguage": "Velg språk",
|
|
2637
|
-
"header.homeAriaLabel": "Norges Røde Kors Hjem",
|
|
2638
|
-
"header.login": "Logg inn",
|
|
2639
|
-
"header.search": "Søk",
|
|
2640
|
-
"header.close": "Lukk",
|
|
2641
|
-
"header.closeSearch": "Lukk søk",
|
|
2642
|
-
"header.openSearch": "Åpne søk",
|
|
2643
|
-
"header.menu": "Meny",
|
|
2644
|
-
"header.closeMenu": "Lukk meny",
|
|
2645
|
-
"header.openMenu": "Åpne meny",
|
|
2646
|
-
"header.supportUs": "Støtt oss",
|
|
2647
|
-
"header.toggleTheme": "Bytt tema",
|
|
2648
|
-
"header.searchPlaceholder": "Søk...",
|
|
2649
|
-
"header.clearSearch": "Tøm søk",
|
|
2650
|
-
"header.suggestions": "Forslag",
|
|
2651
|
-
"header.viewAll": "Se alle",
|
|
2652
|
-
"header.noResults": "Ingen resultater for",
|
|
2653
|
-
"header.suggestionCount": "{count} forslag",
|
|
2654
|
-
// Footer translations
|
|
2655
|
-
"footer.shortcuts": "Snarveier",
|
|
2656
|
-
"footer.shortcutsLinks.services": "Tilbudene",
|
|
2657
|
-
"footer.shortcutsLinks.volunteer": "Bli frivillig",
|
|
2658
|
-
"footer.shortcutsLinks.ourWork": "Vårt arbeid",
|
|
2659
|
-
"footer.shortcutsLinks.about": "Om Røde Kors",
|
|
2660
|
-
"footer.shortcutsLinks.support": "Støtt arbeidet",
|
|
2661
|
-
"footer.shortcutsLinks.contact": "Kontakt oss",
|
|
2662
|
-
"footer.contact.visitingAddress": "Besøks adresse",
|
|
2663
|
-
"footer.contact.organizationNumber": "Organisasjonsnummer",
|
|
2664
|
-
"footer.contact.email": "E-post",
|
|
2665
|
-
"footer.contact.phone": "Telefon",
|
|
2666
|
-
"footer.contact.title": "Kontakt",
|
|
2667
|
-
"footer.followUs": "Følg oss",
|
|
2668
|
-
"footer.links": "Lenker",
|
|
2669
|
-
"footer.copyright": "Rødekors",
|
|
2670
|
-
"footer.legal.privacy": "Personvern",
|
|
2671
|
-
"footer.legal.press": "For presse",
|
|
2672
|
-
"footer.legal.procurement": "Regler for innkjøp",
|
|
2673
|
-
"footer.legal.whistleblowing": "Varsling/Misconduct",
|
|
2674
|
-
// Carousel translations
|
|
2675
|
-
"carousel.loading": "Laster bilde",
|
|
2676
|
-
"carousel.previousImage": "Forrige bilde",
|
|
2677
|
-
"carousel.nextImage": "Neste bilde",
|
|
2678
|
-
"carousel.imagePosition": "Bildeposisjon",
|
|
2679
|
-
"carousel.goToImage": "Gå til bilde",
|
|
2680
|
-
"carousel.pauseAutoplay": "Pause automatisk avspilling",
|
|
2681
|
-
"carousel.resumeAutoplay": "Start automatisk avspilling",
|
|
2682
|
-
// DatePicker translations
|
|
2683
|
-
"datePicker.previousMonth": "Forrige måned",
|
|
2684
|
-
"datePicker.nextMonth": "Neste måned",
|
|
2685
|
-
// DateInput translations
|
|
2686
|
-
"dateInput.openDatePicker": "Åpne datovelger"
|
|
2687
|
-
})[e] || e
|
|
2688
|
-
} : n;
|
|
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 = ({
|
|
2696
|
-
initialDate: n = /* @__PURE__ */ new Date(),
|
|
2697
|
-
selectedDate: e = null,
|
|
2698
|
-
onDateSelect: a,
|
|
2699
|
-
"data-color": c,
|
|
2700
|
-
"data-size": k
|
|
2701
|
-
}) => {
|
|
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);
|
|
2708
|
-
}, []);
|
|
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
|
-
);
|
|
2721
|
-
}
|
|
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;
|
|
2754
|
-
});
|
|
2755
|
-
}, []), N = ce(
|
|
2756
|
-
(d) => {
|
|
2757
|
-
I(d), a == null || a(d);
|
|
2758
|
-
},
|
|
2759
|
-
[a]
|
|
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
|
-
}
|
|
2796
|
-
},
|
|
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);
|
|
2799
|
-
return /* @__PURE__ */ r(
|
|
2800
|
-
"div",
|
|
2801
|
-
{
|
|
2802
|
-
className: de.calendarContainer,
|
|
2803
|
-
"data-color": c,
|
|
2804
|
-
"data-size": k,
|
|
2805
|
-
children: [
|
|
2806
|
-
/* @__PURE__ */ r("div", { className: de.calendarHeader, children: [
|
|
2807
|
-
/* @__PURE__ */ t("span", { className: de.monthYear, id: Y, "aria-live": "polite", children: q }),
|
|
2808
|
-
/* @__PURE__ */ r("div", { className: de.navigationButtons, children: [
|
|
2809
|
-
/* @__PURE__ */ t(
|
|
2810
|
-
Ge,
|
|
2811
|
-
{
|
|
2812
|
-
variant: "tertiary",
|
|
2813
|
-
icon: !0,
|
|
2814
|
-
onClick: Q,
|
|
2815
|
-
"aria-label": y("datePicker.previousMonth"),
|
|
2816
|
-
children: /* @__PURE__ */ t(st, {})
|
|
2817
|
-
}
|
|
2818
|
-
),
|
|
2819
|
-
/* @__PURE__ */ t(
|
|
2820
|
-
Ge,
|
|
2821
|
-
{
|
|
2822
|
-
variant: "tertiary",
|
|
2823
|
-
icon: !0,
|
|
2824
|
-
onClick: K,
|
|
2825
|
-
"aria-label": y("datePicker.nextMonth"),
|
|
2826
|
-
children: /* @__PURE__ */ t(it, {})
|
|
2827
|
-
}
|
|
2828
|
-
)
|
|
2829
|
-
] })
|
|
2830
|
-
] }),
|
|
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
|
-
] })
|
|
2859
|
-
]
|
|
2860
|
-
}
|
|
2861
|
-
);
|
|
2862
|
-
};
|
|
2863
|
-
Lo.displayName = "DatePicker";
|
|
2864
|
-
function Do(n) {
|
|
2865
|
-
return `
|
|
2866
|
-
.${n.calendarContainer} {
|
|
2867
|
-
display: inline-flex;
|
|
2868
|
-
padding: var(--ds-size-8, 32px);
|
|
2869
|
-
flex-direction: column;
|
|
2870
|
-
align-items: flex-start;
|
|
2871
|
-
gap: var(--ds-size-3, 12px);
|
|
2872
|
-
border: 1px solid var(--ds-color-border-subtle, #ccc);
|
|
2873
|
-
border-radius: var(--ds-border-radius-md, 4px);
|
|
2874
|
-
background-color: var(--ds-color-background-default, #fff);
|
|
2875
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
2876
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
2877
|
-
max-width: 100%;
|
|
2878
|
-
box-sizing: border-box;
|
|
2879
|
-
}
|
|
2880
|
-
.${n.calendarHeader} {
|
|
2881
|
-
display: flex;
|
|
2882
|
-
justify-content: space-between;
|
|
2883
|
-
align-items: center;
|
|
2884
|
-
align-self: stretch;
|
|
2885
|
-
}
|
|
2886
|
-
.${n.monthYear} {
|
|
2887
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
2888
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
2889
|
-
font-size: var(--ds-heading-sm-font-size, 1.5rem);
|
|
2890
|
-
font-weight: var(--ds-heading-sm-font-weight, 500);
|
|
2891
|
-
line-height: var(--ds-heading-sm-line-height, 1.3);
|
|
2892
|
-
margin: 0;
|
|
2893
|
-
}
|
|
2894
|
-
.${n.navigationButtons} {
|
|
2895
|
-
display: flex;
|
|
2896
|
-
gap: var(--ds-size-1, 4px);
|
|
2897
|
-
}
|
|
2898
|
-
.${n.navigationButtons} > button:disabled svg {
|
|
2899
|
-
opacity: var(--ds-opacity-disabled, 0.3);
|
|
2900
|
-
}
|
|
2901
|
-
.${n.gridWrapper} {
|
|
2902
|
-
width: 100%;
|
|
2903
|
-
overflow: hidden;
|
|
2904
|
-
}
|
|
2905
|
-
.${n.gridRow} {
|
|
2906
|
-
display: grid;
|
|
2907
|
-
grid-template-columns: repeat(7, 1fr);
|
|
2908
|
-
width: 100%;
|
|
2909
|
-
text-align: center;
|
|
2910
|
-
}
|
|
2911
|
-
.${n.dayNameCell} {
|
|
2912
|
-
display: flex;
|
|
2913
|
-
padding: var(--ds-size-2, 8px);
|
|
2914
|
-
flex-direction: column;
|
|
2915
|
-
justify-content: center;
|
|
2916
|
-
align-items: center;
|
|
2917
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
2918
|
-
text-align: center;
|
|
2919
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
2920
|
-
font-size: var(--ds-body-xs-font-size, 14px);
|
|
2921
|
-
font-weight: var(--ds-font-weight-semibold, 600);
|
|
2922
|
-
line-height: var(--ds-body-short-xs-line-height, 1.3);
|
|
2923
|
-
box-sizing: border-box;
|
|
2924
|
-
min-width: 0;
|
|
2925
|
-
}
|
|
2926
|
-
.${n.dateCell} {
|
|
2927
|
-
display: flex;
|
|
2928
|
-
padding: var(--ds-size-5, 22px);
|
|
2929
|
-
flex-direction: column;
|
|
2930
|
-
justify-content: center;
|
|
2931
|
-
align-items: center;
|
|
2932
|
-
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #bcbcbc);
|
|
2933
|
-
box-sizing: border-box;
|
|
2934
|
-
margin: -0.5px;
|
|
2935
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
2936
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
2937
|
-
text-align: center;
|
|
2938
|
-
font-size: var(--ds-body-xs-font-size, 14px);
|
|
2939
|
-
font-weight: var(--ds-body-xs-font-weight, 400);
|
|
2940
|
-
line-height: var(--ds-body-short-xs-line-height, 1.3);
|
|
2941
|
-
cursor: pointer;
|
|
2942
|
-
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
2943
|
-
user-select: none;
|
|
2944
|
-
min-width: 0;
|
|
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
|
-
}
|
|
2952
|
-
.${n.dateNumberContainer} {
|
|
2953
|
-
display: flex;
|
|
2954
|
-
justify-content: center;
|
|
2955
|
-
align-items: center;
|
|
2956
|
-
width: 24px;
|
|
2957
|
-
height: 24px;
|
|
2958
|
-
border-radius: 50%;
|
|
2959
|
-
transition: color 0.15s ease-in-out, font-weight 0.15s ease-in-out;
|
|
2960
|
-
line-height: 1;
|
|
2961
|
-
box-sizing: border-box;
|
|
2962
|
-
background-color: transparent;
|
|
2963
|
-
}
|
|
2964
|
-
.${n.dateCell}:hover:not(.${n.otherMonth}):not(.${n.disabled}) {
|
|
2965
|
-
background-color: var(--ds-color-surface-hover, #eee);
|
|
2966
|
-
position: relative;
|
|
2967
|
-
z-index: 1;
|
|
2968
|
-
}
|
|
2969
|
-
.${n.otherMonth} {
|
|
2970
|
-
color: var(--ds-color-text-subtle, #aaa);
|
|
2971
|
-
cursor: default;
|
|
2972
|
-
pointer-events: none;
|
|
2973
|
-
background-color: var(--ds-color-surface-tinted, #e8e8e8);
|
|
2974
|
-
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #bcbcbc);
|
|
2975
|
-
margin: -0.5px;
|
|
2976
|
-
}
|
|
2977
|
-
.${n.selectedDate} {
|
|
2978
|
-
background-color: var(--ds-color-base-default, #C30000);
|
|
2979
|
-
border-color: var(--ds-color-base-default, #C30000);
|
|
2980
|
-
color: var(--ds-color-base-contrast-default, #fff);
|
|
2981
|
-
position: relative;
|
|
2982
|
-
z-index: 1;
|
|
2983
|
-
}
|
|
2984
|
-
.${n.selectedDate} .${n.dateNumberContainer} {
|
|
2985
|
-
color: var(--ds-color-base-contrast-default, #fff);
|
|
2986
|
-
font-weight: var(--ds-font-weight-semibold, 600);
|
|
2987
|
-
background-color: transparent;
|
|
2988
|
-
}
|
|
2989
|
-
.${n.todayDate} .${n.dateNumberContainer} {
|
|
2990
|
-
font-weight: var(--ds-font-weight-semibold, 600);
|
|
2991
|
-
}
|
|
2992
|
-
@media (max-width: 480px) {
|
|
2993
|
-
.${n.calendarContainer} {
|
|
2994
|
-
padding: var(--ds-size-4, 16px);
|
|
2995
|
-
gap: var(--ds-size-2, 8px);
|
|
2996
|
-
width: 100%;
|
|
2997
|
-
}
|
|
2998
|
-
.${n.monthYear} {
|
|
2999
|
-
font-size: var(--ds-heading-xs-font-size, 1.125rem);
|
|
3000
|
-
}
|
|
3001
|
-
.${n.dayNameCell} {
|
|
3002
|
-
padding: var(--ds-size-1, 4px);
|
|
3003
|
-
font-size: var(--ds-font-size-1, 12px);
|
|
3004
|
-
}
|
|
3005
|
-
.${n.dateCell} {
|
|
3006
|
-
padding: var(--ds-size-2, 8px);
|
|
3007
|
-
font-size: var(--ds-font-size-1, 12px);
|
|
3008
|
-
}
|
|
3009
|
-
.${n.dateNumberContainer} {
|
|
3010
|
-
width: 20px;
|
|
3011
|
-
height: 20px;
|
|
3012
|
-
}
|
|
3013
|
-
}
|
|
3014
|
-
@media (max-width: 360px) {
|
|
3015
|
-
.${n.calendarContainer} {
|
|
3016
|
-
padding: var(--ds-size-2, 8px);
|
|
3017
|
-
}
|
|
3018
|
-
.${n.dayNameCell} {
|
|
3019
|
-
padding: 2px;
|
|
3020
|
-
font-size: 10px;
|
|
3021
|
-
}
|
|
3022
|
-
.${n.dateCell} {
|
|
3023
|
-
padding: var(--ds-size-1, 4px);
|
|
3024
|
-
font-size: 11px;
|
|
3025
|
-
}
|
|
3026
|
-
.${n.dateNumberContainer} {
|
|
3027
|
-
width: 16px;
|
|
3028
|
-
height: 16px;
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
`;
|
|
3032
|
-
}
|
|
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(
|
|
3049
|
-
(n, e) => {
|
|
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);
|
|
3056
|
-
}, []);
|
|
3057
|
-
const {
|
|
3058
|
-
label: c,
|
|
3059
|
-
suffixIcon: k,
|
|
3060
|
-
onSuffixClick: y,
|
|
3061
|
-
className: f,
|
|
3062
|
-
inputWrapperClassName: x,
|
|
3063
|
-
inputClassName: B,
|
|
3064
|
-
value: I,
|
|
3065
|
-
defaultValue: J,
|
|
3066
|
-
onChange: L,
|
|
3067
|
-
onValidationChange: R,
|
|
3068
|
-
readOnly: G,
|
|
3069
|
-
placeholder: p = "dd.mm.åååå",
|
|
3070
|
-
id: Q,
|
|
3071
|
-
name: K,
|
|
3072
|
-
required: N,
|
|
3073
|
-
disabled: w,
|
|
3074
|
-
onClick: H,
|
|
3075
|
-
onFocus: P,
|
|
3076
|
-
onBlur: E,
|
|
3077
|
-
autoComplete: q = "off",
|
|
3078
|
-
"aria-label": Y,
|
|
3079
|
-
"aria-labelledby": $,
|
|
3080
|
-
description: d,
|
|
3081
|
-
error: l,
|
|
3082
|
-
"data-color": v,
|
|
3083
|
-
"data-size": S,
|
|
3084
|
-
...F
|
|
3085
|
-
} = n, D = I !== void 0, g = Ee(null);
|
|
3086
|
-
ye.useImperativeHandle(
|
|
3087
|
-
e,
|
|
3088
|
-
() => g.current
|
|
3089
|
-
);
|
|
3090
|
-
const se = Ee(null), ee = ce(
|
|
3091
|
-
(A, ae) => {
|
|
3092
|
-
A !== se.current && (se.current = A, R == null || R(A, ae));
|
|
3093
|
-
},
|
|
3094
|
-
[R]
|
|
3095
|
-
), te = ce(
|
|
3096
|
-
(A) => Me(ze(A)),
|
|
3097
|
-
[]
|
|
3098
|
-
), [ne, z] = Z(
|
|
3099
|
-
() => te(I ?? J)
|
|
3100
|
-
);
|
|
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));
|
|
3105
|
-
}
|
|
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);
|
|
3121
|
-
},
|
|
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 : ""
|
|
3132
|
-
].filter(Boolean).join(" ");
|
|
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;
|
|
3135
|
-
return (
|
|
3136
|
-
// --- Bruk data-color og data-size på den ytre wrapperen ---
|
|
3137
|
-
/* @__PURE__ */ r(
|
|
3138
|
-
"div",
|
|
3139
|
-
{
|
|
3140
|
-
className: h,
|
|
3141
|
-
"data-color": v,
|
|
3142
|
-
"data-size": S,
|
|
3143
|
-
children: [
|
|
3144
|
-
c && typeof c == "string" ? /* @__PURE__ */ t("label", { id: le, htmlFor: M, children: c }) : c,
|
|
3145
|
-
d && /* @__PURE__ */ t("p", { id: re, className: ue.description, children: d }),
|
|
3146
|
-
/* @__PURE__ */ r("div", { className: C, children: [
|
|
3147
|
-
/* @__PURE__ */ t(
|
|
3148
|
-
"input",
|
|
3149
|
-
{
|
|
3150
|
-
ref: g,
|
|
3151
|
-
type: "text",
|
|
3152
|
-
inputMode: "numeric",
|
|
3153
|
-
pattern: "\\d{2}\\.\\d{2}\\.\\d{4}",
|
|
3154
|
-
maxLength: 10,
|
|
3155
|
-
value: ne,
|
|
3156
|
-
readOnly: G,
|
|
3157
|
-
placeholder: p,
|
|
3158
|
-
id: M,
|
|
3159
|
-
name: K,
|
|
3160
|
-
required: N,
|
|
3161
|
-
disabled: w,
|
|
3162
|
-
onClick: H,
|
|
3163
|
-
onChange: ie,
|
|
3164
|
-
onFocus: P,
|
|
3165
|
-
onBlur: T,
|
|
3166
|
-
autoComplete: q,
|
|
3167
|
-
"aria-label": Y,
|
|
3168
|
-
"aria-labelledby": Se,
|
|
3169
|
-
"aria-describedby": xe,
|
|
3170
|
-
"aria-invalid": !!l,
|
|
3171
|
-
className: j,
|
|
3172
|
-
...F
|
|
3173
|
-
}
|
|
3174
|
-
),
|
|
3175
|
-
k && /* @__PURE__ */ t(
|
|
3176
|
-
"button",
|
|
3177
|
-
{
|
|
3178
|
-
type: "button",
|
|
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
|
|
3186
|
-
}
|
|
3187
|
-
)
|
|
3188
|
-
] }),
|
|
3189
|
-
l && /* @__PURE__ */ t("p", { id: ge, className: ue.error, role: "alert", children: l })
|
|
3190
|
-
]
|
|
3191
|
-
}
|
|
3192
|
-
)
|
|
3193
|
-
);
|
|
3194
|
-
}
|
|
3195
|
-
);
|
|
3196
|
-
Po.displayName = "DateInput";
|
|
3197
|
-
function $o(n) {
|
|
3198
|
-
return `
|
|
3199
|
-
.${n.fieldset} {
|
|
3200
|
-
margin-bottom: var(--ds-size-4, 16px);
|
|
3201
|
-
}
|
|
3202
|
-
.${n.fieldset} label {
|
|
3203
|
-
display: block;
|
|
3204
|
-
margin-bottom: var(--ds-size-1, 4px);
|
|
3205
|
-
font-weight: var(--ds-font-weight-medium, 500);
|
|
3206
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
3207
|
-
}
|
|
3208
|
-
.${n.description} {
|
|
3209
|
-
font-size: var(--ds-font-size-2, 14px);
|
|
3210
|
-
color: var(--ds-color-text-subtle, #5d5d5d);
|
|
3211
|
-
margin-top: var(--ds-size-1, 4px);
|
|
3212
|
-
margin-bottom: var(--ds-size-2, 8px);
|
|
3213
|
-
}
|
|
3214
|
-
.${n.error} {
|
|
3215
|
-
font-size: var(--ds-font-size-2, 14px);
|
|
3216
|
-
color: var(--ds-color-danger-text-default, #c30000);
|
|
3217
|
-
margin-top: var(--ds-size-1, 4px);
|
|
3218
|
-
}
|
|
3219
|
-
.${n.inputWrapper} {
|
|
3220
|
-
display: flex;
|
|
3221
|
-
align-items: stretch;
|
|
3222
|
-
width: 100%;
|
|
3223
|
-
position: relative;
|
|
3224
|
-
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-default, #797979);
|
|
3225
|
-
border-radius: var(--ds-border-radius-md, 4px);
|
|
3226
|
-
overflow: hidden;
|
|
3227
|
-
transition: border-color 0.1s ease-out, outline 0.1s ease-out;
|
|
3228
|
-
}
|
|
3229
|
-
.${n.inputWrapperError} {
|
|
3230
|
-
border-color: var(--ds-color-danger-border-default, #c30000);
|
|
3231
|
-
}
|
|
3232
|
-
.${n.inputWrapper}:focus-within {
|
|
3233
|
-
outline: var(--ds-border-width-focus, 3px) solid var(--ds-color-focus-outer, #2B2B2B);
|
|
3234
|
-
outline-offset: var(--ds-border-width-focus, 2px);
|
|
3235
|
-
}
|
|
3236
|
-
.${n.inputWrapper} input {
|
|
3237
|
-
box-sizing: border-box;
|
|
3238
|
-
flex-grow: 1;
|
|
3239
|
-
width: auto;
|
|
3240
|
-
min-width: 0;
|
|
3241
|
-
background-color: var(--ds-color-background-default, #fff);
|
|
3242
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
3243
|
-
border: none;
|
|
3244
|
-
border-radius: 0;
|
|
3245
|
-
outline: none;
|
|
3246
|
-
padding: var(--ds-size-2, 8px) var(--ds-size-3, 12px);
|
|
3247
|
-
font-family: inherit;
|
|
3248
|
-
font-size: inherit;
|
|
3249
|
-
appearance: none;
|
|
3250
|
-
-webkit-appearance: none;
|
|
3251
|
-
}
|
|
3252
|
-
.${n.inputWrapper} input:disabled {
|
|
3253
|
-
opacity: var(--ds-opacity-disabled, 0.5);
|
|
3254
|
-
cursor: not-allowed;
|
|
3255
|
-
background-color: var(--ds-color-neutral-surface-tinted, #f0f0f0);
|
|
3256
|
-
color: var(--ds-color-neutral-text-subtle, #5d5d5d);
|
|
3257
|
-
}
|
|
3258
|
-
.${n.suffixButton} {
|
|
3259
|
-
display: inline-flex;
|
|
3260
|
-
align-items: center;
|
|
3261
|
-
justify-content: center;
|
|
3262
|
-
flex-shrink: 0;
|
|
3263
|
-
padding: 0 var(--ds-size-3, 12px);
|
|
3264
|
-
margin: 0;
|
|
3265
|
-
border: none;
|
|
3266
|
-
border-radius: 0;
|
|
3267
|
-
border-left: var(--ds-border-width-default, 1px) solid var(--ds-color-border-default, #797979);
|
|
3268
|
-
background-color: var(--ds-color-surface-tinted, #e8e8e8);
|
|
3269
|
-
color: var(--ds-color-text-subtle, #5d5d5d);
|
|
3270
|
-
font-size: 1.25rem;
|
|
3271
|
-
box-sizing: border-box;
|
|
3272
|
-
cursor: default;
|
|
3273
|
-
transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
|
|
3274
|
-
}
|
|
3275
|
-
.${n.suffixButtonInteractive} {
|
|
3276
|
-
cursor: pointer;
|
|
3277
|
-
}
|
|
3278
|
-
.${n.suffixButtonInteractive}:hover:not(:disabled) {
|
|
3279
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
3280
|
-
background-color: var(--ds-color-surface-hover, #dadada);
|
|
3281
|
-
}
|
|
3282
|
-
.${n.suffixButton}:disabled {
|
|
3283
|
-
opacity: var(--ds-opacity-disabled, 0.3);
|
|
3284
|
-
cursor: not-allowed;
|
|
3285
|
-
background-color: var(--ds-color-neutral-surface-tinted, #e8e8e8);
|
|
3286
|
-
border-left-color: var(--ds-color-neutral-border-default, #797979);
|
|
3287
|
-
}
|
|
3288
|
-
`;
|
|
3289
|
-
}
|
|
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 = ({
|
|
3308
|
-
images: n,
|
|
3309
|
-
autoPlay: e = !1,
|
|
3310
|
-
autoDelay: a = 5,
|
|
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
|
|
3319
|
-
}) => {
|
|
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);
|
|
3326
|
-
}, []);
|
|
3327
|
-
const R = {
|
|
3328
|
-
loop: !0,
|
|
3329
|
-
align: "start",
|
|
3330
|
-
containScroll: "trimSnaps",
|
|
3331
|
-
slidesToScroll: 1
|
|
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;
|
|
3347
|
-
});
|
|
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(() => {
|
|
3352
|
-
if (p)
|
|
3353
|
-
return p.on("select", d), p.on("reInit", d), w(p.scrollSnapList()), () => {
|
|
3354
|
-
p.off("select", d), p.off("reInit", d);
|
|
3355
|
-
};
|
|
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(() => {
|
|
3363
|
-
p.canScrollNext() && p.scrollNext();
|
|
3364
|
-
}, $);
|
|
3365
|
-
return () => {
|
|
3366
|
-
window.clearInterval(h);
|
|
3367
|
-
};
|
|
3368
|
-
}, [ne, $, p, n]);
|
|
3369
|
-
const z = Math.max(1, f), ie = `${100 / z}%`, T = x / 2;
|
|
3370
|
-
return /* @__PURE__ */ r(
|
|
3371
|
-
"div",
|
|
3372
|
-
{
|
|
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,
|
|
3383
|
-
children: [
|
|
3384
|
-
/* @__PURE__ */ t("div", { className: X.viewport, ref: G, children: /* @__PURE__ */ t(
|
|
3385
|
-
"div",
|
|
3386
|
-
{
|
|
3387
|
-
className: X.slides,
|
|
3388
|
-
style: {
|
|
3389
|
-
marginLeft: `-${T}px`,
|
|
3390
|
-
marginRight: `-${T}px`
|
|
3391
|
-
},
|
|
3392
|
-
children: n && n.length > 0 ? n.map((h, C) => /* @__PURE__ */ t(
|
|
3393
|
-
"div",
|
|
3394
|
-
{
|
|
3395
|
-
className: X.slide,
|
|
3396
|
-
style: {
|
|
3397
|
-
flex: `0 0 ${ie}`,
|
|
3398
|
-
paddingLeft: `${T}px`,
|
|
3399
|
-
paddingRight: `${T}px`,
|
|
3400
|
-
borderRadius: B > 0 ? `${B}px` : void 0,
|
|
3401
|
-
overflow: "hidden"
|
|
3402
|
-
// Ensure radius clips content
|
|
3403
|
-
},
|
|
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") }) }),
|
|
3406
|
-
/* @__PURE__ */ t(
|
|
3407
|
-
"img",
|
|
3408
|
-
{
|
|
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",
|
|
3416
|
-
crossOrigin: "anonymous",
|
|
3417
|
-
onLoad: () => Y(C),
|
|
3418
|
-
onError: (j) => {
|
|
3419
|
-
j.target.style.display = "none", Y(C);
|
|
3420
|
-
}
|
|
3421
|
-
}
|
|
3422
|
-
)
|
|
3423
|
-
] })
|
|
3424
|
-
},
|
|
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" }) })
|
|
3427
|
-
}
|
|
3428
|
-
) }),
|
|
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: [
|
|
3431
|
-
/* @__PURE__ */ t(
|
|
3432
|
-
fe,
|
|
3433
|
-
{
|
|
3434
|
-
variant: "primary",
|
|
3435
|
-
icon: !0,
|
|
3436
|
-
"aria-label": L("carousel.previousImage"),
|
|
3437
|
-
onClick: v,
|
|
3438
|
-
disabled: !n || n.length <= 1,
|
|
3439
|
-
children: /* @__PURE__ */ t(Sn, { "aria-hidden": !0 })
|
|
3440
|
-
}
|
|
3441
|
-
),
|
|
3442
|
-
/* @__PURE__ */ t(
|
|
3443
|
-
fe,
|
|
3444
|
-
{
|
|
3445
|
-
variant: "primary",
|
|
3446
|
-
icon: !0,
|
|
3447
|
-
"aria-label": L("carousel.nextImage"),
|
|
3448
|
-
onClick: S,
|
|
3449
|
-
disabled: !n || n.length <= 1,
|
|
3450
|
-
children: /* @__PURE__ */ t(_n, { "aria-hidden": !0 })
|
|
3451
|
-
}
|
|
3452
|
-
)
|
|
3453
|
-
] }),
|
|
3454
|
-
k && n && n.length > 1 && /* @__PURE__ */ r("div", { className: X.dots, role: "group", "aria-label": L("carousel.imagePosition"), children: [
|
|
3455
|
-
e && /* @__PURE__ */ t(
|
|
3456
|
-
"button",
|
|
3457
|
-
{
|
|
3458
|
-
type: "button",
|
|
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
|
-
] })
|
|
3481
|
-
] })
|
|
3482
|
-
]
|
|
3483
|
-
}
|
|
3484
|
-
);
|
|
3485
|
-
};
|
|
3486
|
-
nr.displayName = "Carousel";
|
|
3487
|
-
function or(n) {
|
|
3488
|
-
return `
|
|
3489
|
-
.${n.carouselContainer} {
|
|
3490
|
-
position: relative;
|
|
3491
|
-
display: block;
|
|
3492
|
-
width: 100%;
|
|
3493
|
-
height: 100%;
|
|
3494
|
-
min-height: 200px;
|
|
3495
|
-
background-color: var(--ds-color-background-default, #fff);
|
|
3496
|
-
color: var(--ds-color-text-default, #2b2b2b);
|
|
3497
|
-
border-radius: var(--ds-border-radius-md, 4px);
|
|
3498
|
-
box-sizing: border-box;
|
|
3499
|
-
max-width: 100%;
|
|
3500
|
-
}
|
|
3501
|
-
.${n.viewport} {
|
|
3502
|
-
overflow: hidden;
|
|
3503
|
-
width: 100%;
|
|
3504
|
-
height: 100%;
|
|
3505
|
-
}
|
|
3506
|
-
.${n.slides} {
|
|
3507
|
-
display: flex;
|
|
3508
|
-
height: 100%;
|
|
3509
|
-
user-select: none;
|
|
3510
|
-
-webkit-touch-callout: none;
|
|
3511
|
-
-khtml-user-select: none;
|
|
3512
|
-
-moz-user-select: none;
|
|
3513
|
-
-ms-user-select: none;
|
|
3514
|
-
}
|
|
3515
|
-
.${n.slide} {
|
|
3516
|
-
position: relative;
|
|
3517
|
-
min-width: 0;
|
|
3518
|
-
height: 100%;
|
|
3519
|
-
display: flex;
|
|
3520
|
-
align-items: center;
|
|
3521
|
-
justify-content: center;
|
|
3522
|
-
box-sizing: border-box;
|
|
3523
|
-
}
|
|
3524
|
-
.${n.slideInner} {
|
|
3525
|
-
position: relative;
|
|
3526
|
-
width: 100%;
|
|
3527
|
-
height: 100%;
|
|
3528
|
-
background-color: var(--ds-color-neutral-surface-tinted, #f5f5f5);
|
|
3529
|
-
overflow: hidden;
|
|
3530
|
-
}
|
|
3531
|
-
.${n.loaderOverlay} {
|
|
3532
|
-
position: absolute;
|
|
3533
|
-
inset: 0;
|
|
3534
|
-
display: flex;
|
|
3535
|
-
align-items: center;
|
|
3536
|
-
justify-content: center;
|
|
3537
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
3538
|
-
z-index: 2;
|
|
3539
|
-
}
|
|
3540
|
-
.${n.image} {
|
|
3541
|
-
position: absolute;
|
|
3542
|
-
inset: 0;
|
|
3543
|
-
width: 100%;
|
|
3544
|
-
height: 100%;
|
|
3545
|
-
object-fit: cover;
|
|
3546
|
-
opacity: 0;
|
|
3547
|
-
transition: opacity 0.3s ease-in-out;
|
|
3548
|
-
z-index: 1;
|
|
3549
|
-
}
|
|
3550
|
-
.${n.image}.${n.loaded} {
|
|
3551
|
-
opacity: 1;
|
|
3552
|
-
}
|
|
3553
|
-
.${n.loading} {
|
|
3554
|
-
display: inline-flex;
|
|
3555
|
-
align-items: center;
|
|
3556
|
-
gap: var(--ds-size-2, 8px);
|
|
3557
|
-
color: var(--ds-color-text-subtle, #5d5d5d);
|
|
3558
|
-
font-size: var(--ds-font-size-2, 14px);
|
|
3559
|
-
}
|
|
3560
|
-
.${n.empty} {
|
|
3561
|
-
color: var(--ds-color-text-subtle, #5d5d5d);
|
|
3562
|
-
font-size: var(--ds-font-size-2, 14px);
|
|
3563
|
-
text-align: center;
|
|
3564
|
-
}
|
|
3565
|
-
.${n.controls} {
|
|
3566
|
-
position: absolute;
|
|
3567
|
-
inset: 0;
|
|
3568
|
-
display: flex;
|
|
3569
|
-
align-items: center;
|
|
3570
|
-
justify-content: center;
|
|
3571
|
-
pointer-events: none;
|
|
3572
|
-
z-index: 10;
|
|
3573
|
-
}
|
|
3574
|
-
.${n.arrows} {
|
|
3575
|
-
display: flex;
|
|
3576
|
-
align-items: center;
|
|
3577
|
-
justify-content: space-between;
|
|
3578
|
-
width: 100%;
|
|
3579
|
-
padding: 0 var(--ds-size-4, 16px);
|
|
3580
|
-
box-sizing: border-box;
|
|
3581
|
-
pointer-events: auto;
|
|
3582
|
-
}
|
|
3583
|
-
.${n.dots} {
|
|
3584
|
-
position: absolute;
|
|
3585
|
-
left: 50%;
|
|
3586
|
-
transform: translateX(-50%);
|
|
3587
|
-
bottom: var(--ds-size-3, 12px);
|
|
3588
|
-
display: inline-flex;
|
|
3589
|
-
align-items: center;
|
|
3590
|
-
gap: var(--ds-size-2, 8px);
|
|
3591
|
-
pointer-events: auto;
|
|
3592
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
3593
|
-
backdrop-filter: blur(4px);
|
|
3594
|
-
padding: var(--ds-size-1, 4px) var(--ds-size-2, 8px);
|
|
3595
|
-
border-radius: 999px;
|
|
3596
|
-
}
|
|
3597
|
-
.${n.dot} {
|
|
3598
|
-
width: 12px;
|
|
3599
|
-
height: 12px;
|
|
3600
|
-
border-radius: 999px;
|
|
3601
|
-
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #d6d6d6);
|
|
3602
|
-
background-color: rgba(255, 255, 255, 0.6);
|
|
3603
|
-
padding: 0;
|
|
3604
|
-
margin: 0;
|
|
3605
|
-
cursor: pointer;
|
|
3606
|
-
transition: all 0.2s ease;
|
|
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
|
-
}
|
|
3622
|
-
.${n.dotActive} {
|
|
3623
|
-
background-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
|
|
3624
|
-
border-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
|
|
3625
|
-
transform: scale(1.1);
|
|
3626
|
-
}
|
|
3627
|
-
@media (max-width: 640px) {
|
|
3628
|
-
.${n.carouselContainer} {
|
|
3629
|
-
height: auto;
|
|
3630
|
-
min-height: 150px;
|
|
3631
|
-
aspect-ratio: 16 / 9;
|
|
3632
|
-
}
|
|
3633
|
-
.${n.viewport} {
|
|
3634
|
-
aspect-ratio: 16 / 9;
|
|
3635
|
-
height: auto;
|
|
3636
|
-
}
|
|
3637
|
-
.${n.slides} {
|
|
3638
|
-
height: auto;
|
|
3639
|
-
min-height: 150px;
|
|
3640
|
-
}
|
|
3641
|
-
.${n.slide} {
|
|
3642
|
-
height: auto;
|
|
3643
|
-
min-height: 150px;
|
|
3644
|
-
}
|
|
3645
|
-
.${n.slideInner} {
|
|
3646
|
-
aspect-ratio: 16 / 9;
|
|
3647
|
-
height: auto;
|
|
3648
|
-
}
|
|
3649
|
-
.${n.arrows} {
|
|
3650
|
-
padding: 0 var(--ds-size-2, 8px);
|
|
3651
|
-
}
|
|
3652
|
-
.${n.dots} {
|
|
3653
|
-
bottom: var(--ds-size-2, 8px);
|
|
3654
|
-
gap: var(--ds-size-1, 4px);
|
|
3655
|
-
}
|
|
3656
|
-
.${n.dot} {
|
|
3657
|
-
width: 10px;
|
|
3658
|
-
height: 10px;
|
|
3659
|
-
}
|
|
3660
|
-
}
|
|
3661
|
-
@media (max-width: 400px) {
|
|
3662
|
-
.${n.carouselContainer} {
|
|
3663
|
-
min-height: 120px;
|
|
3664
|
-
}
|
|
3665
|
-
.${n.arrows} {
|
|
3666
|
-
padding: 0 var(--ds-size-1, 4px);
|
|
3667
|
-
}
|
|
3668
|
-
.${n.arrows} button {
|
|
3669
|
-
transform: scale(0.85);
|
|
3670
|
-
}
|
|
3671
|
-
}
|
|
3672
|
-
`;
|
|
3673
|
-
}
|
|
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
|
|
3680
|
-
};
|
|
3681
|
-
function dr(n) {
|
|
3682
|
-
return `
|
|
3683
|
-
.${n.graphicElement} {
|
|
3684
|
-
display: inline-block;
|
|
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);
|
|
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. */
|
|
3692
|
-
.${n.shape} {
|
|
3693
|
-
fill: var(--graphic-element-color);
|
|
3694
|
-
}
|
|
3695
|
-
/* Outline variant: thin stroke, no fill */
|
|
3696
|
-
.${n.graphicElement}[data-variant="outline"] {
|
|
3697
|
-
overflow: visible;
|
|
3698
|
-
}
|
|
3699
|
-
.${n.graphicElement}[data-variant="outline"] .${n.shape} {
|
|
3700
|
-
fill: none;
|
|
3701
|
-
stroke: var(--graphic-element-color);
|
|
3702
|
-
stroke-width: 2px;
|
|
3703
|
-
}
|
|
3704
|
-
/* Isometric variant: three token-driven cube faces */
|
|
3705
|
-
.${n.faceFront} {
|
|
3706
|
-
fill: var(--graphic-element-face-front);
|
|
3707
|
-
}
|
|
3708
|
-
.${n.faceTop} {
|
|
3709
|
-
fill: var(--graphic-element-face-top);
|
|
3710
|
-
}
|
|
3711
|
-
.${n.faceRight} {
|
|
3712
|
-
fill: var(--graphic-element-color);
|
|
3713
|
-
}
|
|
3714
|
-
`;
|
|
3715
|
-
}
|
|
3716
|
-
const cr = {
|
|
3717
|
-
sm: 24,
|
|
3718
|
-
md: 34,
|
|
3719
|
-
lg: 48
|
|
3720
|
-
}, pr = {
|
|
3721
|
-
"top-left": 270,
|
|
3722
|
-
"top-right": 0,
|
|
3723
|
-
"bottom-right": 90,
|
|
3724
|
-
"bottom-left": 180
|
|
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(
|
|
3940
|
-
({
|
|
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);
|
|
3958
|
-
}, []);
|
|
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;
|
|
3960
|
-
return /* @__PURE__ */ t(
|
|
3961
|
-
"svg",
|
|
3962
|
-
{
|
|
3963
|
-
ref: L,
|
|
3964
|
-
className: `${we.graphicElement} ${y || ""}`,
|
|
3965
|
-
width: q,
|
|
3966
|
-
height: Y,
|
|
3967
|
-
viewBox: `0 0 ${P} ${E}`,
|
|
3968
|
-
fill: "none",
|
|
3969
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
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(
|
|
3979
|
-
"path",
|
|
3980
|
-
{
|
|
3981
|
-
d: Q === "outline" ? G.outline : G.solid,
|
|
3982
|
-
className: we.shape,
|
|
3983
|
-
vectorEffect: "non-scaling-stroke"
|
|
3984
|
-
}
|
|
3985
|
-
) })
|
|
3986
|
-
}
|
|
3987
|
-
);
|
|
3988
|
-
}
|
|
3989
|
-
);
|
|
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 })
|
|
4002
|
-
);
|
|
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 });
|
|
4015
|
-
});
|
|
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 = [
|
|
4075
|
-
// Pages
|
|
4076
|
-
{ id: "home", title: "Hjem", category: "Page", path: "home", description: "Forsiden" },
|
|
4077
|
-
{ id: "components", title: "Komponenter", category: "Page", path: "components", description: "Oversikt over alle komponenter" },
|
|
4078
|
-
{ id: "design", title: "Design", category: "Page", path: "design", description: "Designretningslinjer og prinsipper" },
|
|
4079
|
-
{ id: "code", title: "Kode", category: "Page", path: "code", description: "Utviklerdokumentasjon og oppsett" },
|
|
4080
|
-
{ id: "tokens", title: "Tokens", category: "Page", path: "tokens", description: "Design tokens: farger, størrelser og typografi" },
|
|
4081
|
-
// Components (samme utvalg som komponentkatalogen)
|
|
4082
|
-
{ id: "alert", title: "Alert", category: "Component", path: "components", description: "Varselbokser for viktige meldinger" },
|
|
4083
|
-
{ id: "avatar", title: "Avatar", category: "Component", path: "components", description: "Profilbilder og initialer" },
|
|
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" },
|
|
4086
|
-
{ id: "button", title: "Button", category: "Component", path: "components", description: "Knapper for handlinger" },
|
|
4087
|
-
{ id: "card", title: "Card", category: "Component", path: "components", description: "Kort for gruppering av innhold" },
|
|
4088
|
-
{ id: "carousel", title: "Carousel", category: "Component", path: "components", description: "Bildekarusell" },
|
|
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" },
|
|
4094
|
-
{ id: "dialog", title: "Dialog", category: "Component", path: "components", description: "Modale vinduer" },
|
|
4095
|
-
{ id: "divider", title: "Divider", category: "Component", path: "components", description: "Skillelinjer" },
|
|
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" },
|
|
4101
|
-
{ id: "header", title: "Header", category: "Component", path: "components", description: "Topptekst og navigasjon" },
|
|
4102
|
-
{ id: "input", title: "Input", category: "Component", path: "components", description: "Tekstfelt for brukerinput" },
|
|
4103
|
-
{ id: "link", title: "Link", category: "Component", path: "components", description: "Lenker til andre sider" },
|
|
4104
|
-
{ id: "list", title: "List", category: "Component", path: "components", description: "Ordnede og uordnede lister" },
|
|
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" },
|
|
4107
|
-
{ id: "radio", title: "Radio", category: "Component", path: "components", description: "Valg av ett alternativ" },
|
|
4108
|
-
{ id: "search", title: "Search", category: "Component", path: "components", description: "Søkefelter" },
|
|
4109
|
-
{ id: "select", title: "Select", category: "Component", path: "components", description: "Valgmeny" },
|
|
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" },
|
|
4114
|
-
{ id: "switch", title: "Switch", category: "Component", path: "components", description: "Av/på bryter" },
|
|
4115
|
-
{ id: "table", title: "Table", category: "Component", path: "components", description: "Tabeller for data" },
|
|
4116
|
-
{ id: "tabs", title: "Tabs", category: "Component", path: "components", description: "Faner for inndeling av innhold" },
|
|
4117
|
-
{ id: "tag", title: "Tag", category: "Component", path: "components", description: "Merkelapper og emneknagger" },
|
|
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" },
|
|
4121
|
-
{ id: "tooltip", title: "Tooltip", category: "Component", path: "components", description: "Hjelpetekster ved hover" },
|
|
4122
|
-
// Design — For designere
|
|
4123
|
-
{ id: "figma-oppkobling", title: "Figma tilkobling", category: "Design", path: "design/figma-oppkobling", description: "Hvordan koble til Figma-biblioteket" },
|
|
4124
|
-
{ id: "oppstart", title: "Oppstart", category: "Design", path: "design/oppstart", description: "Oppsett av arbeidsområde" },
|
|
4125
|
-
{ id: "lage-komponenter", title: "Lage en ny komponent", category: "Design", path: "design/lage-komponenter", description: "Veileder for komponentbygging" },
|
|
4126
|
-
{ id: "praktiske-eksempler", title: "Praktiske eksempler", category: "Design", path: "design/praktiske-eksempler", description: "Eksempler på bruk av designsystemet" },
|
|
4127
|
-
{ id: "token-studio", title: "Token Studio", category: "Design", path: "design/token-studio", description: "Bruk av Token Studio" },
|
|
4128
|
-
// Design — Farger
|
|
4129
|
-
{ id: "fargesystem", title: "Sette opp ditt eget fargesystem", category: "Design", path: "design/fargesystem", description: "Hvordan sette opp farger" },
|
|
4130
|
-
{ id: "temabygger", title: "Temabygger", category: "Design", path: "design/temabygger", description: "Designsystemets temagenerator" },
|
|
4131
|
-
{ id: "bruk-farger", title: "Bruk fargene", category: "Design", path: "design/bruk-farger", description: "Bruk genererte farger" },
|
|
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
|
|
4137
|
-
{ id: "foresla-design", title: "Foreslå nytt design", category: "Design", path: "design/foresla-design", description: "Hvordan bidra med nytt design" },
|
|
4138
|
-
// Design — Designelementer
|
|
4139
|
-
{ id: "hva-er-design-tokens", title: "Hva er design tokens", category: "Design", path: "design/hva-er-design-tokens", description: "Introduksjon til design tokens" },
|
|
4140
|
-
{ id: "design-tokens-i-figma", title: "Design tokens i Figma", category: "Design", path: "design/design-tokens-i-figma", description: "Bruke tokens i Figma" },
|
|
4141
|
-
{ id: "farger-navnestruktur", title: "Farger: Navnestruktur", category: "Design", path: "design/farger-navnestruktur", description: "Navngiving av farger" },
|
|
4142
|
-
{ id: "farger-oversikt", title: "Farger: Oversikt", category: "Design", path: "design/farger-oversikt", description: "Oversikt og forklaringer av farger" },
|
|
4143
|
-
{ id: "farge-tokens", title: "Farge-tokens", category: "Design", path: "design/farge-tokens", description: "Tokens for farger" },
|
|
4144
|
-
{ id: "skygger-bruk", title: "Bruk av skygger", category: "Design", path: "design/skygger-bruk", description: "Retningslinjer for skygger" },
|
|
4145
|
-
{ id: "skygge-tokens", title: "Skygge-tokens", category: "Design", path: "design/skygge-tokens", description: "Tokens for skygger" },
|
|
4146
|
-
{ id: "komponent-storrelser", title: "Komponentstørrelser", category: "Design", path: "design/komponent-storrelser", description: "Størrelsesguide for komponenter" },
|
|
4147
|
-
{ id: "storrelse-tokens", title: "Størrelse-tokens", category: "Design", path: "design/storrelse-tokens", description: "Tokens for størrelser" },
|
|
4148
|
-
{ id: "font-family", title: "Typografi: Font-family", category: "Design", path: "design/font-family", description: "Font-familier" },
|
|
4149
|
-
{ id: "typografi-tokens", title: "Typografi-tokens", category: "Design", path: "design/typografi-tokens", description: "Tokens for typografi" },
|
|
4150
|
-
// Code
|
|
4151
|
-
{ id: "kom-i-gang", title: "Kom i gang (Kode)", category: "Code", path: "code/kom-i-gang", description: "Installasjon og oppsett" },
|
|
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" }
|
|
4161
|
-
];
|
|
4162
|
-
function wa(n) {
|
|
4163
|
-
return n.split(/\s+/).map((e) => e[0] ?? "").join("").slice(0, 2).toUpperCase();
|
|
4164
|
-
}
|
|
4165
|
-
const Yi = ({
|
|
4166
|
-
variant: n = "default",
|
|
4167
|
-
"data-color": e = "primary",
|
|
4168
|
-
activePage: a,
|
|
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,
|
|
4180
|
-
secondaryLogoSrc: p,
|
|
4181
|
-
secondaryLogoSrcDark: Q,
|
|
4182
|
-
secondaryLogoAlt: K = "Secondary Logo",
|
|
4183
|
-
navItems: N,
|
|
4184
|
-
showNavItems: w = !0,
|
|
4185
|
-
showMenuButton: H = !0,
|
|
4186
|
-
showHeaderExtension: P = !1,
|
|
4187
|
-
showModeToggle: E = !1,
|
|
4188
|
-
showLanguageSwitch: q = !1,
|
|
4189
|
-
extensionColor: Y,
|
|
4190
|
-
userName: $,
|
|
4191
|
-
userInitials: d,
|
|
4192
|
-
userAvatarSrc: l,
|
|
4193
|
-
onUserClick: v
|
|
4194
|
-
}) => {
|
|
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);
|
|
4209
|
-
}, []);
|
|
4210
|
-
const le = () => /* @__PURE__ */ r(
|
|
4211
|
-
"svg",
|
|
4212
|
-
{
|
|
4213
|
-
width: "170",
|
|
4214
|
-
height: "119",
|
|
4215
|
-
viewBox: "24 0 170 119",
|
|
4216
|
-
fill: "none",
|
|
4217
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4218
|
-
"aria-hidden": !0,
|
|
4219
|
-
focusable: "false",
|
|
4220
|
-
className: i.redCrossLogo,
|
|
4221
|
-
children: [
|
|
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" }),
|
|
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" }),
|
|
4224
|
-
/* @__PURE__ */ t("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
|
|
4225
|
-
/* @__PURE__ */ t("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
|
|
4226
|
-
/* @__PURE__ */ t("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
|
|
4227
|
-
/* @__PURE__ */ t("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
|
|
4228
|
-
/* @__PURE__ */ t("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
|
|
4229
|
-
/* @__PURE__ */ t("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
|
|
4230
|
-
/* @__PURE__ */ t("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4231
|
-
/* @__PURE__ */ t("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4232
|
-
]
|
|
4233
|
-
}
|
|
4234
|
-
);
|
|
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;
|
|
4240
|
-
return document.body.style.overflow = "hidden", () => {
|
|
4241
|
-
document.body.style.overflow = s;
|
|
4242
|
-
};
|
|
4243
|
-
}
|
|
4244
|
-
}, [S, u]), U(() => {
|
|
4245
|
-
if (typeof window > "u" || typeof window.matchMedia > "u") return;
|
|
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);
|
|
4249
|
-
};
|
|
4250
|
-
}, []), U(() => {
|
|
4251
|
-
if (typeof document > "u") return;
|
|
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`);
|
|
4257
|
-
};
|
|
4258
|
-
m(), window.addEventListener("resize", m);
|
|
4259
|
-
const b = new ResizeObserver(() => {
|
|
4260
|
-
m();
|
|
4261
|
-
});
|
|
4262
|
-
return b.observe(s), () => {
|
|
4263
|
-
window.removeEventListener("resize", m), b.disconnect();
|
|
4264
|
-
};
|
|
4265
|
-
}, [u]), U(() => {
|
|
4266
|
-
if (typeof document > "u") return;
|
|
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`);
|
|
4272
|
-
};
|
|
4273
|
-
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
4274
|
-
}, [u]), U(() => {
|
|
4275
|
-
if (typeof document > "u" || !D) {
|
|
4276
|
-
document.documentElement.style.setProperty("--rk-search-overlay-height", "0px");
|
|
4277
|
-
return;
|
|
4278
|
-
}
|
|
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();
|
|
4289
|
-
};
|
|
4290
|
-
}, [D]), U(() => {
|
|
4291
|
-
if (!S && !D) return;
|
|
4292
|
-
const s = (m) => {
|
|
4293
|
-
var b, V;
|
|
4294
|
-
m.key === "Escape" && (S && (F(!1), (b = se.current) == null || b.focus()), D && (g(!1), (V = ee.current) == null || V.focus()));
|
|
4295
|
-
};
|
|
4296
|
-
return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
|
|
4297
|
-
}, [S, D]), U(() => {
|
|
4298
|
-
var s, m, b;
|
|
4299
|
-
D ? (s = ne.current) == null || s.focus() : S && ((b = (m = te.current) == null ? void 0 : m.querySelector('a[href], button, input, select, [tabindex]:not([tabindex="-1"])')) == null || b.focus());
|
|
4300
|
-
}, [S, D]);
|
|
4301
|
-
const re = () => {
|
|
4302
|
-
const s = T === "light" ? "dark" : "light";
|
|
4303
|
-
h(s), document.documentElement.setAttribute("data-color-scheme", s);
|
|
4304
|
-
}, ge = (s) => {
|
|
4305
|
-
c && (s.preventDefault(), c("home")), F(!1), g(!1);
|
|
4306
|
-
}, xe = () => {
|
|
4307
|
-
F(!S), D && g(!1), !S && typeof document < "u" && requestAnimationFrame(() => {
|
|
4308
|
-
const s = document.querySelector(`.${i.header}`);
|
|
4309
|
-
if (s) {
|
|
4310
|
-
const m = s.offsetHeight;
|
|
4311
|
-
document.documentElement.style.setProperty("--header-height-mobile", `${m}px`);
|
|
4312
|
-
}
|
|
4313
|
-
});
|
|
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)
|
|
4321
|
-
);
|
|
4322
|
-
}, [z]), ae = (s) => {
|
|
4323
|
-
c && c(s), g(!1), ie("");
|
|
4324
|
-
};
|
|
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,
|
|
4329
|
-
{
|
|
4330
|
-
"data-size": "sm",
|
|
4331
|
-
checked: T === "dark",
|
|
4332
|
-
onChange: re,
|
|
4333
|
-
label: _("header.darkMode"),
|
|
4334
|
-
color: "neutral",
|
|
4335
|
-
"data-color-scheme": "light"
|
|
4336
|
-
}
|
|
4337
|
-
) }),
|
|
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: [
|
|
4342
|
-
/* @__PURE__ */ r(
|
|
4343
|
-
oe.Trigger,
|
|
4344
|
-
{
|
|
4345
|
-
className: i.languageLink,
|
|
4346
|
-
"aria-label": _("header.selectLanguage"),
|
|
4347
|
-
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4348
|
-
children: [
|
|
4349
|
-
C,
|
|
4350
|
-
" ",
|
|
4351
|
-
/* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
|
|
4352
|
-
]
|
|
4353
|
-
}
|
|
4354
|
-
),
|
|
4355
|
-
/* @__PURE__ */ t(
|
|
4356
|
-
oe,
|
|
4357
|
-
{
|
|
4358
|
-
"data-color-scheme": T,
|
|
4359
|
-
placement: "bottom-end",
|
|
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)" }) })
|
|
4363
|
-
] })
|
|
4364
|
-
}
|
|
4365
|
-
)
|
|
4366
|
-
] })
|
|
4367
|
-
] })
|
|
4368
|
-
] }) }),
|
|
4369
|
-
/* @__PURE__ */ r("div", { className: i.headerInner, children: [
|
|
4370
|
-
/* @__PURE__ */ r("div", { className: i.logoWrapper, children: [
|
|
4371
|
-
/* @__PURE__ */ t(
|
|
4372
|
-
pe,
|
|
4373
|
-
{
|
|
4374
|
-
href: "/",
|
|
4375
|
-
className: `${i.logo} ${i.primaryLogo}`,
|
|
4376
|
-
"aria-label": _("header.homeAriaLabel"),
|
|
4377
|
-
onClick: ge,
|
|
4378
|
-
children: /* @__PURE__ */ t(le, {})
|
|
4379
|
-
}
|
|
4380
|
-
),
|
|
4381
|
-
/* @__PURE__ */ t("div", { className: i.secondaryLogoWrapper, children: G && p ? /* @__PURE__ */ t(
|
|
4382
|
-
"img",
|
|
4383
|
-
{
|
|
4384
|
-
src: T === "dark" && Q ? Q : p,
|
|
4385
|
-
alt: K,
|
|
4386
|
-
className: i.secondaryLogo
|
|
4387
|
-
}
|
|
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 })
|
|
4389
|
-
] }),
|
|
4390
|
-
w && N && N.length > 0 && !u && /* @__PURE__ */ t("nav", { className: i.navItems, children: N.map((s, m) => /* @__PURE__ */ t(
|
|
4391
|
-
pe,
|
|
4392
|
-
{
|
|
4393
|
-
href: s.href,
|
|
4394
|
-
className: i.navLink,
|
|
4395
|
-
onClick: (b) => {
|
|
4396
|
-
c && (b.preventDefault(), c(s.href));
|
|
4397
|
-
},
|
|
4398
|
-
children: s.label
|
|
4399
|
-
},
|
|
4400
|
-
m
|
|
4401
|
-
)) }),
|
|
4402
|
-
/* @__PURE__ */ r("div", { className: i.actions, children: [
|
|
4403
|
-
B && /* @__PURE__ */ r(
|
|
4404
|
-
fe,
|
|
4405
|
-
{
|
|
4406
|
-
variant: "primary",
|
|
4407
|
-
"data-color": "main",
|
|
4408
|
-
"data-size": "md",
|
|
4409
|
-
className: i.ctaButton,
|
|
4410
|
-
onClick: L,
|
|
4411
|
-
children: [
|
|
4412
|
-
J,
|
|
4413
|
-
/* @__PURE__ */ t("span", { className: J ? i.buttonText : void 0, children: I || _("header.supportUs") })
|
|
4414
|
-
]
|
|
4415
|
-
}
|
|
4416
|
-
),
|
|
4417
|
-
!P && R && /* @__PURE__ */ t("div", { className: i.themeToggle, children: /* @__PURE__ */ t(
|
|
4418
|
-
Re,
|
|
4419
|
-
{
|
|
4420
|
-
checked: T === "dark",
|
|
4421
|
-
onChange: re,
|
|
4422
|
-
"aria-label": _("header.toggleTheme")
|
|
4423
|
-
}
|
|
4424
|
-
) }),
|
|
4425
|
-
y && (() => {
|
|
4426
|
-
const s = $ ?? "Frodo Baggins", m = d ?? ($ ? wa($) : "FB"), b = !!v;
|
|
4427
|
-
return /* @__PURE__ */ r(
|
|
4428
|
-
"div",
|
|
4429
|
-
{
|
|
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());
|
|
4436
|
-
} : void 0,
|
|
4437
|
-
style: b ? { cursor: "pointer" } : void 0,
|
|
4438
|
-
children: [
|
|
4439
|
-
/* @__PURE__ */ t(Ne, { "data-size": "md", className: i.userName, children: s }),
|
|
4440
|
-
/* @__PURE__ */ t(
|
|
4441
|
-
at,
|
|
4442
|
-
{
|
|
4443
|
-
"aria-label": s,
|
|
4444
|
-
"data-color": "main",
|
|
4445
|
-
variant: "circle",
|
|
4446
|
-
initials: l ? void 0 : m,
|
|
4447
|
-
children: l ? /* @__PURE__ */ t(
|
|
4448
|
-
"img",
|
|
4449
|
-
{
|
|
4450
|
-
src: l,
|
|
4451
|
-
alt: "",
|
|
4452
|
-
style: { width: "100%", height: "100%", objectFit: "cover" }
|
|
4453
|
-
}
|
|
4454
|
-
) : void 0
|
|
4455
|
-
}
|
|
4456
|
-
)
|
|
4457
|
-
]
|
|
4458
|
-
}
|
|
4459
|
-
);
|
|
4460
|
-
})(),
|
|
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 })
|
|
4464
|
-
] }),
|
|
4465
|
-
f && /* @__PURE__ */ t("div", { className: i.searchButtonWrapper, children: /* @__PURE__ */ r(
|
|
4466
|
-
fe,
|
|
4467
|
-
{
|
|
4468
|
-
ref: ee,
|
|
4469
|
-
variant: "secondary",
|
|
4470
|
-
"data-color": "main",
|
|
4471
|
-
"data-size": "md",
|
|
4472
|
-
onClick: Se,
|
|
4473
|
-
"aria-expanded": D,
|
|
4474
|
-
"aria-label": _(D ? "header.closeSearch" : "header.openSearch"),
|
|
4475
|
-
children: [
|
|
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") })
|
|
4478
|
-
]
|
|
4479
|
-
}
|
|
4480
|
-
) }),
|
|
4481
|
-
(H || u) && /* @__PURE__ */ r(
|
|
4482
|
-
fe,
|
|
4483
|
-
{
|
|
4484
|
-
ref: se,
|
|
4485
|
-
variant: "primary",
|
|
4486
|
-
"data-color": "main",
|
|
4487
|
-
"data-size": "md",
|
|
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
|
-
]
|
|
4496
|
-
}
|
|
4497
|
-
)
|
|
4498
|
-
] })
|
|
4499
|
-
] }),
|
|
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: [
|
|
4507
|
-
/* @__PURE__ */ r(
|
|
4508
|
-
oe.Trigger,
|
|
4509
|
-
{
|
|
4510
|
-
className: i.languageLink,
|
|
4511
|
-
"aria-label": _("header.selectLanguage"),
|
|
4512
|
-
style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", font: "inherit" },
|
|
4513
|
-
children: [
|
|
4514
|
-
C,
|
|
4515
|
-
" ",
|
|
4516
|
-
/* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
|
|
4517
|
-
]
|
|
4518
|
-
}
|
|
4519
|
-
),
|
|
4520
|
-
/* @__PURE__ */ t(
|
|
4521
|
-
oe,
|
|
4522
|
-
{
|
|
4523
|
-
"data-color-scheme": T,
|
|
4524
|
-
placement: "bottom-start",
|
|
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)" }) })
|
|
4528
|
-
] })
|
|
4529
|
-
}
|
|
4530
|
-
)
|
|
4531
|
-
] })
|
|
4532
|
-
] }),
|
|
4533
|
-
E && /* @__PURE__ */ t("div", { className: i.extensionContent, children: /* @__PURE__ */ t(
|
|
4534
|
-
Re,
|
|
4535
|
-
{
|
|
4536
|
-
"data-size": "sm",
|
|
4537
|
-
checked: T === "dark",
|
|
4538
|
-
onChange: re,
|
|
4539
|
-
label: _("header.darkMode"),
|
|
4540
|
-
color: "neutral",
|
|
4541
|
-
"data-color-scheme": "light"
|
|
4542
|
-
}
|
|
4543
|
-
) })
|
|
4544
|
-
] }),
|
|
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,
|
|
4549
|
-
{
|
|
4550
|
-
href: s.href,
|
|
4551
|
-
className: i.navLink,
|
|
4552
|
-
onClick: (b) => {
|
|
4553
|
-
c && (b.preventDefault(), c(s.href));
|
|
4554
|
-
},
|
|
4555
|
-
children: s.label
|
|
4556
|
-
},
|
|
4557
|
-
m
|
|
4558
|
-
)) })
|
|
4559
|
-
] }),
|
|
4560
|
-
u && /* @__PURE__ */ t("div", { className: i.menuBrand, children: /* @__PURE__ */ t(le, {}) })
|
|
4561
|
-
] })
|
|
4562
|
-
] }) }),
|
|
4563
|
-
D && /* @__PURE__ */ t("div", { className: i.searchOverlay, children: /* @__PURE__ */ r("div", { className: i.searchContent, children: [
|
|
4564
|
-
/* @__PURE__ */ r(Pe, { children: [
|
|
4565
|
-
/* @__PURE__ */ t(
|
|
4566
|
-
Pe.Input,
|
|
4567
|
-
{
|
|
4568
|
-
ref: ne,
|
|
4569
|
-
"aria-label": _("header.search"),
|
|
4570
|
-
placeholder: _("header.searchPlaceholder"),
|
|
4571
|
-
value: z,
|
|
4572
|
-
onChange: (s) => ie(s.target.value)
|
|
4573
|
-
}
|
|
4574
|
-
),
|
|
4575
|
-
/* @__PURE__ */ t(Pe.Button, { "aria-label": _("header.search") }),
|
|
4576
|
-
/* @__PURE__ */ t(Pe.ClearButton, { onClick: () => ie(""), "aria-label": _("header.clearSearch") })
|
|
4577
|
-
] }),
|
|
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(
|
|
4582
|
-
"button",
|
|
4583
|
-
{
|
|
4584
|
-
className: i.resultLink,
|
|
4585
|
-
onClick: () => ae(s.path),
|
|
4586
|
-
children: [
|
|
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 })
|
|
4596
|
-
] });
|
|
4597
|
-
})() })
|
|
4598
|
-
]
|
|
4599
|
-
}
|
|
4600
|
-
) }, s.id)) }),
|
|
4601
|
-
A.length > 5 && /* @__PURE__ */ r(
|
|
4602
|
-
pe,
|
|
4603
|
-
{
|
|
4604
|
-
href: "#",
|
|
4605
|
-
"data-color": "neutral",
|
|
4606
|
-
className: i.viewAllLink,
|
|
4607
|
-
onClick: (s) => {
|
|
4608
|
-
s.preventDefault(), c && c(`search/${encodeURIComponent(z)}`), g(!1), ie("");
|
|
4609
|
-
},
|
|
4610
|
-
children: [
|
|
4611
|
-
_("header.viewAll"),
|
|
4612
|
-
" (",
|
|
4613
|
-
A.length,
|
|
4614
|
-
")"
|
|
4615
|
-
]
|
|
4616
|
-
}
|
|
4617
|
-
)
|
|
4618
|
-
] }) : /* @__PURE__ */ t("div", { className: i.noResults, children: /* @__PURE__ */ r(Ne, { children: [
|
|
4619
|
-
_("header.noResults"),
|
|
4620
|
-
' "',
|
|
4621
|
-
z,
|
|
4622
|
-
'"'
|
|
4623
|
-
] }) }) })
|
|
4624
|
-
] }) })
|
|
4625
|
-
] });
|
|
4626
|
-
};
|
|
4627
|
-
function Sa(n) {
|
|
4628
|
-
const e = n;
|
|
4629
|
-
return `
|
|
4630
|
-
.${e.header} {
|
|
4631
|
-
width: 100%;
|
|
4632
|
-
background-color: var(--ds-color-neutral-background-default);
|
|
4633
|
-
border-bottom: none;
|
|
4634
|
-
position: relative;
|
|
4635
|
-
z-index: 1000;
|
|
4636
|
-
display: flex;
|
|
4637
|
-
flex-direction: column;
|
|
4638
|
-
font-family: 'Source Sans 3', sans-serif;
|
|
4639
|
-
}
|
|
4640
|
-
.${e.headerExtension} {
|
|
4641
|
-
background-color: var(--ds-color-primary-color-red-base-default, #D52B1E);
|
|
4642
|
-
width: 100%;
|
|
4643
|
-
height: 44px;
|
|
4644
|
-
padding: 0 var(--ds-size-6);
|
|
4645
|
-
display: flex;
|
|
4646
|
-
justify-content: center;
|
|
4647
|
-
align-items: center;
|
|
4648
|
-
box-sizing: border-box;
|
|
4649
|
-
color: white;
|
|
4650
|
-
}
|
|
4651
|
-
.${e.header}[data-color="primary"] .${e.headerExtension} {
|
|
4652
|
-
background-color: var(--ds-color-primary-color-red-base-default);
|
|
4653
|
-
color: white;
|
|
4654
|
-
}
|
|
4655
|
-
.${e.header}[data-color="neutral"] .${e.headerExtension} {
|
|
4656
|
-
background-color: var(--ds-color-neutral-base-default);
|
|
4657
|
-
color: var(--ds-color-neutral-text-default);
|
|
4658
|
-
}
|
|
4659
|
-
.${e.headerExtensionTinted},
|
|
4660
|
-
.${e.headerExtension}[data-extension-color="tinted"] {
|
|
4661
|
-
background: var(--ds-color-primary-color-red-surface-tinted, #FAE4E2) !important;
|
|
4662
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
4663
|
-
}
|
|
4664
|
-
.${e.header} .${e.headerExtensionTinted} .${e.languageLabel},
|
|
4665
|
-
.${e.header} .${e.headerExtension}[data-extension-color="tinted"] .${e.languageLabel} {
|
|
4666
|
-
color: var(--ds-color-neutral-text-default, #2B2B2B) !important;
|
|
4667
|
-
}
|
|
4668
|
-
.${e.header} .${e.headerExtensionTinted} .${e.languageLink},
|
|
4669
|
-
.${e.header} .${e.headerExtension}[data-extension-color="tinted"] .${e.languageLink} {
|
|
4670
|
-
color: var(--ds-color-neutral-text-default, #2B2B2B) !important;
|
|
4671
|
-
}
|
|
4672
|
-
.${e.header} .${e.headerExtensionTinted} .${e.extensionContent} .ds-label,
|
|
4673
|
-
.${e.header} .${e.headerExtension}[data-extension-color="tinted"] .${e.extensionContent} .ds-label {
|
|
4674
|
-
color: var(--ds-color-neutral-text-default, #2B2B2B) !important;
|
|
4675
|
-
}
|
|
4676
|
-
.${e.header} .${e.headerExtensionTinted} .${e.extensionDivider},
|
|
4677
|
-
.${e.header} .${e.headerExtension}[data-extension-color="tinted"] .${e.extensionDivider} {
|
|
4678
|
-
background-color: var(--ds-color-neutral-border-subtle, #bcbcbc);
|
|
4679
|
-
}
|
|
4680
|
-
.${e.extensionContentWrapper} {
|
|
4681
|
-
width: 100%;
|
|
4682
|
-
max-width: 1364px;
|
|
4683
|
-
display: flex;
|
|
4684
|
-
justify-content: flex-end;
|
|
4685
|
-
align-items: center;
|
|
4686
|
-
gap: var(--ds-size-4);
|
|
4687
|
-
}
|
|
4688
|
-
.${e.extensionContent} .ds-label { font-size: var(--ds-font-size-3) !important; }
|
|
4689
|
-
.${e.extensionDivider} { width: 1px; height: 18px; background-color: rgba(247,233,232,1); }
|
|
4690
|
-
.${e.languageSwitch} { display: flex; align-items: center; gap: var(--ds-size-2); }
|
|
4691
|
-
.${e.languageLabel} { font-size: var(--ds-font-size-3); color: #ECECEC; }
|
|
4692
|
-
.${e.languageLink} { color: white; text-decoration: none; display: flex; align-items: center; gap: 4px; }
|
|
4693
|
-
.${e.header}[data-color="primary"] .${e.languageLabel} { color: #ECECEC; }
|
|
4694
|
-
.${e.header}[data-color="neutral"] .${e.languageLabel} { color: var(--ds-color-neutral-text-default); }
|
|
4695
|
-
.${e.header}[data-color="primary"] .${e.languageLink} { color: white !important; }
|
|
4696
|
-
.${e.header}[data-color="neutral"] .${e.languageLink} { color: var(--ds-color-neutral-text-default) !important; }
|
|
4697
|
-
.${e.languageSwitch} [popover] { margin-top: 0 !important; background-color: var(--ds-color-neutral-background-default) !important; position: fixed !important; overflow: visible; z-index: 20000 !important; }
|
|
4698
|
-
.${e.headerInner} {
|
|
4699
|
-
display: flex; align-items: center; justify-content: space-between;
|
|
4700
|
-
min-height: 119px; width: 100%; max-width: 1364px;
|
|
4701
|
-
margin: 0 auto; padding: 0 var(--ds-size-6); box-sizing: border-box; gap: var(--ds-size-6);
|
|
4702
|
-
}
|
|
4703
|
-
.${e.logoWrapper} { display: flex; align-items: center; height: 119px; flex-shrink: 0; background-color: white; }
|
|
4704
|
-
.${e.logo} { display: flex; align-items: center; justify-content: center; width: 217px; height: 100%; text-decoration: none; color: inherit; flex-shrink: 0; }
|
|
4705
|
-
.${e.redCrossLogo} { width: 169px; height: auto; display: block; }
|
|
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); }
|
|
4707
|
-
.${e.secondaryLogo} { height: 24px; width: auto; display: block; }
|
|
4708
|
-
.${e.navItems} { display: flex; gap: 40px; align-items: center; margin-left: 24px; flex-grow: 1; justify-content: center; }
|
|
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; }
|
|
4710
|
-
.${e.navLink}:hover { text-decoration: underline; }
|
|
4711
|
-
.${e.actions} { display: flex; align-items: center; gap: var(--ds-size-6); flex-shrink: 0; margin-left: auto; }
|
|
4712
|
-
.${e.ctaButton} { display: flex; align-items: center; }
|
|
4713
|
-
.${e.themeToggle} { display: flex; align-items: center; }
|
|
4714
|
-
.${e.userInfo} { display: flex; align-items: center; gap: var(--ds-size-3); }
|
|
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); }
|
|
4719
|
-
.${e.searchButtonWrapper} { display: flex; }
|
|
4720
|
-
.${e.buttonText} { display: inline-block; margin-left: var(--ds-size-2); }
|
|
4721
|
-
.${e.menuButton} { display: flex; align-items: center; }
|
|
4722
|
-
.${e.menuOverlay}, .${e.searchOverlay} {
|
|
4723
|
-
position: absolute; top: 100%; left: 0; width: 100%;
|
|
4724
|
-
background-color: var(--ds-color-neutral-background-default);
|
|
4725
|
-
border-bottom: none;
|
|
4726
|
-
box-shadow: none; z-index: 999;
|
|
4727
|
-
}
|
|
4728
|
-
.${e.searchOverlay} { padding: var(--ds-size-10) 0; }
|
|
4729
|
-
.${e.searchOverlay}::before { display: none; }
|
|
4730
|
-
.${e.searchContent} {
|
|
4731
|
-
max-width: 1364px; margin: 0 auto;
|
|
4732
|
-
padding: var(--ds-size-6) var(--ds-size-6) var(--ds-size-6) calc(217px + var(--ds-size-6) + var(--ds-size-4));
|
|
4733
|
-
display: flex; flex-direction: column; align-items: stretch; box-sizing: border-box;
|
|
4734
|
-
}
|
|
4735
|
-
.${e.menuContent} { max-width: 1364px; margin: 0 auto; display: flex; flex-direction: row; align-items: stretch; box-sizing: border-box; }
|
|
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); }
|
|
4737
|
-
.${e.menuRightColumn} { flex: 1; display: flex; flex-direction: column; padding: 48px 24px 80px 24px; gap: 24px; }
|
|
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; }
|
|
4739
|
-
.${e.navList} { display: flex; flex-direction: column; gap: var(--ds-size-3); align-items: flex-start; }
|
|
4740
|
-
.${e.menuBrand} { display: none; }
|
|
4741
|
-
.${e.menuUtilities} { display: flex; justify-content: space-between; align-items: center; width: 100%; }
|
|
4742
|
-
.${e.suggestionsSection} { display: flex; flex-direction: column; gap: var(--ds-size-4); }
|
|
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; }
|
|
4744
|
-
.${e.searchResults} { margin-top: var(--ds-size-4); max-height: 400px; overflow-y: auto; }
|
|
4745
|
-
.${e.resultList} { list-style: none; padding: 0; margin: 0; }
|
|
4746
|
-
.${e.resultItem} { border-bottom: none; }
|
|
4747
|
-
.${e.resultLink} {
|
|
4748
|
-
display: flex; flex-direction: row; align-items: center; width: 100%;
|
|
4749
|
-
padding: var(--ds-size-2) 0; background: none; border: none;
|
|
4750
|
-
text-align: left; cursor: pointer; gap: var(--ds-size-4); text-decoration: none;
|
|
4751
|
-
}
|
|
4752
|
-
.${e.suggestionIcon} { font-size: 20px; color: var(--ds-color-neutral-text-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
|
4753
|
-
.${e.suggestionText} { font-family: inherit; font-size: var(--ds-font-size-3); color: var(--ds-color-neutral-text-default); line-height: 1.5; }
|
|
4754
|
-
.${e.highlightedText} { color: var(--ds-color-primary-color-red-text-default); font-weight: var(--ds-font-weight-medium); }
|
|
4755
|
-
.${e.remainingText} { color: var(--ds-color-neutral-border-subtle); }
|
|
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; }
|
|
4757
|
-
.${e.noResults} { padding: var(--ds-size-4); text-align: center; color: var(--ds-color-neutral-text-subtle); }
|
|
4758
|
-
@media (max-width: 850px) {
|
|
4759
|
-
.${e.header} { z-index: 10000; position: relative; }
|
|
4760
|
-
.${e.headerExtension} { display: none; }
|
|
4761
|
-
.${e.headerInner} { padding: var(--ds-size-5) var(--ds-size-6); min-height: auto; }
|
|
4762
|
-
.${e.navItems} { display: none; }
|
|
4763
|
-
.${e.logoWrapper} { gap: var(--ds-size-2); }
|
|
4764
|
-
.${e.logo} { height: 40px; }
|
|
4765
|
-
/* Mobile: always hide primary logo in header */
|
|
4766
|
-
.${e.primaryLogo} { display: none; }
|
|
4767
|
-
.${e.secondaryLogo} { height: 28px; }
|
|
4768
|
-
.${e.secondaryLogoWrapper} { padding: 0; }
|
|
4769
|
-
.${e.actions} { gap: var(--ds-size-4); }
|
|
4770
|
-
.${e.userName} { display: none; }
|
|
4771
|
-
.${e.menuButton} .${e.buttonText} { display: none; }
|
|
4772
|
-
.${e.searchButtonWrapper} .${e.buttonText} { display: inline; }
|
|
4773
|
-
.${e.menuOverlay} { position: fixed; top: var(--header-height-mobile, 70px); left: 0; right: 0; bottom: 0; width: 100vw; height: calc(100vh - var(--header-height-mobile, 70px)); z-index: 9999; border-radius: 0; border: none; overflow-y: auto; }
|
|
4774
|
-
.${e.searchOverlay} { width: 100%; right: 0; left: 0; border-radius: 0; border: none; }
|
|
4775
|
-
.${e.searchContent} { padding: var(--ds-size-6); }
|
|
4776
|
-
.${e.menuContent} { flex-direction: column; padding: 0; min-height: 100%; }
|
|
4777
|
-
.${e.menuRightColumn} { padding: var(--ds-size-4) var(--ds-size-6) var(--ds-size-6) var(--ds-size-6); gap: var(--ds-size-4); flex: 1; display: flex; flex-direction: column; min-height: 0; }
|
|
4778
|
-
.${e.slotContent} { padding: 0; }
|
|
4779
|
-
.${e.menuLeftColumn} { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: var(--ds-size-6); }
|
|
4780
|
-
.${e.menuBrand} { display: flex; justify-content: flex-start; margin-top: auto; padding: var(--ds-size-6); margin-left: calc(-1 * var(--ds-size-6)); margin-right: calc(-1 * var(--ds-size-6)); margin-bottom: calc(-1 * var(--ds-size-6)); background-color: white; }
|
|
4781
|
-
.${e.menuUtilities} .${e.languageSwitch} [popover] { background-color: var(--ds-color-neutral-background-default) !important; margin-top: 0 !important; position: fixed !important; overflow: visible; z-index: 20000 !important; }
|
|
4782
|
-
@media (prefers-color-scheme: light) {
|
|
4783
|
-
.${e.menuUtilities} .${e.languageLabel} { color: var(--ds-color-neutral-text-default, #2B2B2B); }
|
|
4784
|
-
.${e.menuUtilities} .${e.languageLink} { color: var(--ds-color-neutral-text-default, #2B2B2B) !important; }
|
|
4785
|
-
}
|
|
4786
|
-
[data-color-scheme="light"] .${e.menuUtilities} .${e.languageLabel} { color: var(--ds-color-neutral-text-default, #2B2B2B); }
|
|
4787
|
-
[data-color-scheme="light"] .${e.menuUtilities} .${e.languageLink} { color: var(--ds-color-neutral-text-default, #2B2B2B) !important; }
|
|
4788
|
-
.${e.searchOverlay}::before { display: none; }
|
|
4789
|
-
}
|
|
4790
|
-
`;
|
|
4791
|
-
}
|
|
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 = ({
|
|
4860
|
-
"data-color": n = "neutral",
|
|
4861
|
-
variant: e = "default",
|
|
4862
|
-
colorScheme: a,
|
|
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,
|
|
4874
|
-
linksTitle: p,
|
|
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
|
|
4887
|
-
} = {}) => {
|
|
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;
|
|
4891
|
-
};
|
|
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);
|
|
4897
|
-
}, []);
|
|
4898
|
-
const se = (u) => {
|
|
4899
|
-
u.preventDefault(), I == null || I(F);
|
|
4900
|
-
}, ee = () => /* @__PURE__ */ r(
|
|
4901
|
-
"svg",
|
|
4902
|
-
{
|
|
4903
|
-
width: "170",
|
|
4904
|
-
height: "119",
|
|
4905
|
-
viewBox: "24 0 170 119",
|
|
4906
|
-
fill: "none",
|
|
4907
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4908
|
-
"aria-hidden": !0,
|
|
4909
|
-
focusable: "false",
|
|
4910
|
-
className: o.redCrossLogo,
|
|
4911
|
-
children: [
|
|
4912
|
-
/* @__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" }),
|
|
4913
|
-
/* @__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" }),
|
|
4914
|
-
/* @__PURE__ */ t("path", { d: "M119.76 46.9351V62.0537C119.76 63.5253 119.814 65.0829 119.868 65.9659H116.266L116.077 64.037H116.01C115.593 64.7375 114.998 65.3131 114.285 65.7041C113.573 66.095 112.769 66.287 111.958 66.2602C108.865 66.2602 106.384 63.6068 106.384 59.5317C106.384 55.1079 109.085 52.5632 112.237 52.5632C113.835 52.5632 115.087 53.1247 115.676 54.0393H115.726V46.9351H119.76ZM115.708 58.4088C115.708 58.1914 115.681 57.8971 115.658 57.6843C115.556 57.1295 115.266 56.6274 114.838 56.2627C114.41 55.8981 113.869 55.6933 113.308 55.683C111.467 55.683 110.508 57.3447 110.508 59.4094C110.508 61.6327 111.602 63.0318 113.281 63.0318C113.838 63.0337 114.378 62.8389 114.807 62.4814C115.235 62.1239 115.526 61.6264 115.627 61.0757C115.702 60.7676 115.737 60.451 115.73 60.1339L115.708 58.4088Z", fill: "#1E1E1E" }),
|
|
4915
|
-
/* @__PURE__ */ t("path", { d: "M126.13 60.6869C126.265 62.3758 127.931 63.1772 129.808 63.1772C131.029 63.1934 132.245 63.013 133.41 62.6429L133.946 65.4049C132.438 65.9752 130.838 66.2562 129.227 66.2335C124.802 66.2335 122.272 63.6345 122.272 59.5322C122.272 56.2088 124.325 52.5366 128.854 52.5366C133.063 52.5366 134.666 55.8329 134.666 59.0794C134.666 59.6271 134.62 60.1738 134.531 60.714L126.13 60.6869ZM130.902 57.8977C130.902 56.9061 130.475 55.2443 128.611 55.2443C126.904 55.2443 126.211 56.8246 126.103 57.8977H130.902Z", fill: "#1E1E1E" }),
|
|
4916
|
-
/* @__PURE__ */ t("path", { d: "M142.603 47.8994H146.623V55.8866H146.7C147.1 55.1893 147.501 54.5283 147.929 53.9034L151.981 47.8994H156.978L151.035 55.5969L157.297 65.9703H152.57L148.172 58.1687L146.623 60.0704V65.9567H142.598L142.603 47.8994Z", fill: "#1E1E1E" }),
|
|
4917
|
-
/* @__PURE__ */ t("path", { d: "M164.294 66.2599C160.485 66.2599 157.541 63.7424 157.541 59.5043C157.541 55.2662 160.309 52.563 164.496 52.563C168.494 52.563 171.159 55.325 171.159 59.2643C171.159 64.0639 167.774 66.2599 164.307 66.2599H164.294ZM164.375 63.3394C165.946 63.3394 166.959 61.7592 166.959 59.4001C166.959 57.4395 166.216 55.4563 164.375 55.4563C162.43 55.4563 161.709 57.4667 161.709 59.4001C161.709 61.6641 162.641 63.3394 164.348 63.3394H164.375Z", fill: "#1E1E1E" }),
|
|
4918
|
-
/* @__PURE__ */ t("path", { d: "M173.676 57.1727C173.676 55.2438 173.622 54.0031 173.568 52.8576H177.062L177.197 55.271H177.3C177.535 54.507 178 53.8353 178.63 53.3486C179.261 52.8619 180.026 52.5843 180.821 52.5542C181.105 52.5425 181.391 52.5607 181.672 52.6086V56.4392C181.303 56.3736 180.93 56.3387 180.555 56.335C179.06 56.335 178.048 57.1365 177.782 58.3997C177.726 58.6983 177.699 59.0015 177.701 59.3053V65.9659H173.649L173.676 57.1727Z", fill: "#1E1E1E" }),
|
|
4919
|
-
/* @__PURE__ */ t("path", { d: "M183.752 62.4023C184.824 62.9936 186.018 63.3283 187.241 63.3803C188.47 63.3803 188.974 62.9275 188.974 62.28C188.974 61.6325 188.573 61.2613 187.056 60.7768C184.355 59.8712 183.351 58.3951 183.351 56.8375C183.351 54.3969 185.404 52.5496 188.654 52.5496C189.92 52.5283 191.175 52.7848 192.332 53.3012L191.612 56.1357C190.741 55.6712 189.775 55.4155 188.789 55.3886C187.803 55.3886 187.241 55.787 187.241 56.4571C187.241 57.1273 187.749 57.4216 189.348 57.9604C191.828 58.8162 192.868 60.0795 192.891 62.0084C192.891 64.4444 190.973 66.2691 187.241 66.2691C185.784 66.2951 184.341 65.974 183.031 65.3318L183.752 62.4023Z", fill: "#1E1E1E" }),
|
|
4920
|
-
/* @__PURE__ */ t("path", { d: "M50.1985 39.8037H37.1426V79.1965H50.1985V39.8037Z", fill: "#D52B1E" }),
|
|
4921
|
-
/* @__PURE__ */ t("path", { d: "M63.2545 52.9331H24.0869V66.0625H63.2545V52.9331Z", fill: "#D52B1E" })
|
|
4922
|
-
]
|
|
4923
|
-
}
|
|
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: [
|
|
4937
|
-
'Ved å trykke "',
|
|
4938
|
-
x,
|
|
4939
|
-
'" samtykker du til å motta nyhetsbrev.',
|
|
4940
|
-
/* @__PURE__ */ t("br", {}),
|
|
4941
|
-
"Du kan når som helst ",
|
|
4942
|
-
/* @__PURE__ */ t(pe, { href: "#", children: "melde deg av" }),
|
|
4943
|
-
" nyhetsbrevet uten kostnad."
|
|
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 }),
|
|
4953
|
-
/* @__PURE__ */ r("div", { className: o.contactPersonDetails, children: [
|
|
4954
|
-
/* @__PURE__ */ r("p", { className: o.contactPersonEmail, children: [
|
|
4955
|
-
/* @__PURE__ */ r("span", { className: o.contactPersonLabel, children: [
|
|
4956
|
-
g("footer.contact.email", "E-post"),
|
|
4957
|
-
":"
|
|
4958
|
-
] }),
|
|
4959
|
-
" ",
|
|
4960
|
-
/* @__PURE__ */ t(pe, { href: `mailto:${u.email}`, children: u.email })
|
|
4961
|
-
] }),
|
|
4962
|
-
u.phone && /* @__PURE__ */ r("p", { className: o.contactPersonPhone, children: [
|
|
4963
|
-
/* @__PURE__ */ r("span", { className: o.contactPersonLabel, children: [
|
|
4964
|
-
g("footer.contact.phone", "Telefon"),
|
|
4965
|
-
":"
|
|
4966
|
-
] }),
|
|
4967
|
-
" ",
|
|
4968
|
-
u.phone
|
|
4969
|
-
] }),
|
|
4970
|
-
u.address && /* @__PURE__ */ t("p", { className: o.contactPersonAddress, children: u.address })
|
|
4971
|
-
] })
|
|
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)) });
|
|
4976
|
-
if (e === "columns") {
|
|
4977
|
-
const u = [
|
|
4978
|
-
{
|
|
4979
|
-
title: g("footer.contact.title", "Kontakt"),
|
|
4980
|
-
links: te
|
|
4981
|
-
},
|
|
4982
|
-
{
|
|
4983
|
-
title: g("footer.bidra", "Bidra"),
|
|
4984
|
-
links: te
|
|
4985
|
-
},
|
|
4986
|
-
{
|
|
4987
|
-
title: g("footer.shortcuts", "Snarveier"),
|
|
4988
|
-
links: te
|
|
4989
|
-
}
|
|
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
|
-
] })
|
|
5011
|
-
] }),
|
|
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
|
-
] })
|
|
5021
|
-
] })
|
|
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
|
-
] });
|
|
5033
|
-
}
|
|
5034
|
-
return e === "contact" ? /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
|
|
5035
|
-
/* @__PURE__ */ t("div", { className: o.mainSection, children: /* @__PURE__ */ r("div", { className: o.mainContainer, children: [
|
|
5036
|
-
k && /* @__PURE__ */ t("div", { className: o.graphicElementTopRight, children: /* @__PURE__ */ t(je, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
|
|
5037
|
-
/* @__PURE__ */ r("div", { className: o.contentRowContact, children: [
|
|
5038
|
-
q.length > 0 && /* @__PURE__ */ t(h, {}),
|
|
5039
|
-
Y.length > 0 && /* @__PURE__ */ t(j, {})
|
|
5040
|
-
] }),
|
|
5041
|
-
/* @__PURE__ */ t("div", { className: o.divider }),
|
|
5042
|
-
/* @__PURE__ */ r("div", { className: o.contactSection, children: [
|
|
5043
|
-
/* @__PURE__ */ r("div", { className: o.contactColumn, 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)) })
|
|
5046
|
-
] }),
|
|
5047
|
-
/* @__PURE__ */ r("div", { className: o.contactColumn, children: [
|
|
5048
|
-
/* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
5049
|
-
/* @__PURE__ */ t("p", { className: o.contactContent, children: K })
|
|
5050
|
-
] }),
|
|
5051
|
-
/* @__PURE__ */ r("div", { className: o.contactColumn, children: [
|
|
5052
|
-
/* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
|
|
5053
|
-
/* @__PURE__ */ t("p", { className: o.contactContent, children: N })
|
|
5054
|
-
] })
|
|
5055
|
-
] }),
|
|
5056
|
-
/* @__PURE__ */ t("div", { className: o.divider }),
|
|
5057
|
-
/* @__PURE__ */ r("div", { className: o.bottomRowContact, children: [
|
|
5058
|
-
$.length > 0 && /* @__PURE__ */ t(_, {}),
|
|
5059
|
-
/* @__PURE__ */ r("p", { className: o.copyrightText, children: [
|
|
5060
|
-
"© ",
|
|
5061
|
-
v,
|
|
5062
|
-
" ",
|
|
5063
|
-
g("footer.copyright", "Rødekors")
|
|
5064
|
-
] })
|
|
5065
|
-
] }),
|
|
5066
|
-
k && /* @__PURE__ */ t("div", { className: o.graphicElementBottomLeft, children: /* @__PURE__ */ t(je, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
|
|
5067
|
-
] }) }),
|
|
5068
|
-
/* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
|
|
5069
|
-
w && (H ? /* @__PURE__ */ t(
|
|
5070
|
-
"img",
|
|
5071
|
-
{
|
|
5072
|
-
src: H,
|
|
5073
|
-
alt: P,
|
|
5074
|
-
className: o.logo,
|
|
5075
|
-
loading: "lazy"
|
|
5076
|
-
}
|
|
5077
|
-
) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) })),
|
|
5078
|
-
E && /* @__PURE__ */ t("div", { className: o.slotLarge, children: E })
|
|
5079
|
-
] }) }) })
|
|
5080
|
-
] }) : /* @__PURE__ */ r("footer", { className: o.footer, "data-color": n, children: [
|
|
5081
|
-
/* @__PURE__ */ t("div", { className: o.mainSection, children: /* @__PURE__ */ r("div", { className: o.mainContainer, children: [
|
|
5082
|
-
k && /* @__PURE__ */ t("div", { className: o.graphicElementTopRight, children: /* @__PURE__ */ t(je, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
|
|
5083
|
-
/* @__PURE__ */ r("div", { className: o.contentRow, children: [
|
|
5084
|
-
!J && /* @__PURE__ */ r("div", { className: o.newsletterSection, children: [
|
|
5085
|
-
/* @__PURE__ */ t("p", { className: o.newsletterDescription, children: y }),
|
|
5086
|
-
/* @__PURE__ */ t("form", { className: o.newsletterForm, onSubmit: se, children: /* @__PURE__ */ r("div", { className: o.newsletterInputGroup, children: [
|
|
5087
|
-
/* @__PURE__ */ t(
|
|
5088
|
-
dt,
|
|
5089
|
-
{
|
|
5090
|
-
type: "email",
|
|
5091
|
-
placeholder: f,
|
|
5092
|
-
value: F,
|
|
5093
|
-
onChange: (u) => D(u.target.value),
|
|
5094
|
-
className: o.newsletterInput
|
|
5095
|
-
}
|
|
5096
|
-
),
|
|
5097
|
-
/* @__PURE__ */ t(fe, { type: "submit", variant: "primary", "data-color": "neutral", children: x })
|
|
5098
|
-
] }) }),
|
|
5099
|
-
/* @__PURE__ */ t("p", { className: o.consentText, children: B || z })
|
|
5100
|
-
] }),
|
|
5101
|
-
/* @__PURE__ */ r("div", { className: o.linksSection, 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)) })
|
|
5105
|
-
] }),
|
|
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)) })
|
|
5109
|
-
] })
|
|
5110
|
-
] })
|
|
5111
|
-
] }),
|
|
5112
|
-
/* @__PURE__ */ t("div", { className: o.divider }),
|
|
5113
|
-
/* @__PURE__ */ r("div", { className: o.contactSection, children: [
|
|
5114
|
-
/* @__PURE__ */ r("div", { className: o.contactColumn, 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)) })
|
|
5117
|
-
] }),
|
|
5118
|
-
/* @__PURE__ */ r("div", { className: o.contactColumn, children: [
|
|
5119
|
-
/* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
5120
|
-
/* @__PURE__ */ t("p", { className: o.contactContent, children: K })
|
|
5121
|
-
] }),
|
|
5122
|
-
/* @__PURE__ */ r("div", { className: o.contactColumn, children: [
|
|
5123
|
-
/* @__PURE__ */ t("h4", { className: o.contactTitle, children: g("footer.contact.email", "E-post") }),
|
|
5124
|
-
/* @__PURE__ */ t("p", { className: o.contactContent, children: N })
|
|
5125
|
-
] })
|
|
5126
|
-
] }),
|
|
5127
|
-
/* @__PURE__ */ t("div", { className: o.divider }),
|
|
5128
|
-
/* @__PURE__ */ t("div", { className: o.copyrightSection, children: /* @__PURE__ */ r("p", { className: o.copyrightText, children: [
|
|
5129
|
-
"© ",
|
|
5130
|
-
v,
|
|
5131
|
-
" ",
|
|
5132
|
-
g("footer.copyright", "Rødekors")
|
|
5133
|
-
] }) }),
|
|
5134
|
-
k && /* @__PURE__ */ t("div", { className: o.graphicElementBottomLeft, children: /* @__PURE__ */ t(je, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
|
|
5135
|
-
] }) }),
|
|
5136
|
-
/* @__PURE__ */ t("div", { className: o.whiteSection, children: /* @__PURE__ */ t("div", { className: o.whiteContainer, children: /* @__PURE__ */ r("div", { className: o.whiteContent, children: [
|
|
5137
|
-
w && (H ? /* @__PURE__ */ t(
|
|
5138
|
-
"img",
|
|
5139
|
-
{
|
|
5140
|
-
src: H,
|
|
5141
|
-
alt: P,
|
|
5142
|
-
className: o.logo,
|
|
5143
|
-
loading: "lazy"
|
|
5144
|
-
}
|
|
5145
|
-
) : /* @__PURE__ */ t("div", { className: o.logo, children: /* @__PURE__ */ t(ee, {}) })),
|
|
5146
|
-
E && /* @__PURE__ */ t("div", { className: o.slotLarge, children: E })
|
|
5147
|
-
] }) }) })
|
|
5148
|
-
] });
|
|
5149
|
-
};
|
|
5150
|
-
function $s(n) {
|
|
5151
|
-
const e = n;
|
|
5152
|
-
return `
|
|
5153
|
-
.${e.footer} {
|
|
5154
|
-
margin-top: auto;
|
|
5155
|
-
width: 100%;
|
|
5156
|
-
}
|
|
5157
|
-
.${e.mainSection} {
|
|
5158
|
-
background-color: var(--ds-color-neutral-background-default, #ffffff);
|
|
5159
|
-
width: 100%;
|
|
5160
|
-
}
|
|
5161
|
-
.${e.footer}[data-color="primary"] .${e.mainSection} {
|
|
5162
|
-
background-color: var(--ds-color-primary-color-red-background-tinted);
|
|
5163
|
-
}
|
|
5164
|
-
.${e.footer}[data-color="additional"] .${e.mainSection} {
|
|
5165
|
-
background-color: var(--ds-color-additional-color-ocean-background-tinted);
|
|
5166
|
-
}
|
|
5167
|
-
.${e.footer}[data-color="neutral"] .${e.mainSection} {
|
|
5168
|
-
background-color: var(--ds-color-neutral-background-tinted, #f5f5f5);
|
|
5169
|
-
}
|
|
5170
|
-
.${e.mainContainer} {
|
|
5171
|
-
position: relative;
|
|
5172
|
-
width: 100%;
|
|
5173
|
-
max-width: 1440px;
|
|
5174
|
-
margin: 0 auto;
|
|
5175
|
-
padding: var(--ds-size-30, 120px) 175px;
|
|
5176
|
-
box-sizing: border-box;
|
|
5177
|
-
}
|
|
5178
|
-
.${e.graphicElementTopRight} {
|
|
5179
|
-
display: flex;
|
|
5180
|
-
justify-content: flex-end;
|
|
5181
|
-
width: 100%;
|
|
5182
|
-
margin-bottom: var(--ds-size-6, 24px);
|
|
5183
|
-
}
|
|
5184
|
-
.${e.graphicElementBottomLeft} {
|
|
5185
|
-
display: flex;
|
|
5186
|
-
justify-content: flex-start;
|
|
5187
|
-
width: 100%;
|
|
5188
|
-
margin-top: var(--ds-size-6, 24px);
|
|
5189
|
-
}
|
|
5190
|
-
.${e.contentRow} {
|
|
5191
|
-
display: flex;
|
|
5192
|
-
justify-content: space-between;
|
|
5193
|
-
align-items: flex-start;
|
|
5194
|
-
gap: var(--ds-size-12, 48px);
|
|
5195
|
-
padding: var(--ds-size-8, 32px) 0;
|
|
5196
|
-
flex-wrap: wrap;
|
|
5197
|
-
}
|
|
5198
|
-
.${e.newsletterSection} {
|
|
5199
|
-
display: flex;
|
|
5200
|
-
flex-direction: column;
|
|
5201
|
-
gap: var(--ds-size-6, 24px);
|
|
5202
|
-
max-width: 440px;
|
|
5203
|
-
}
|
|
5204
|
-
.${e.newsletterDescription} {
|
|
5205
|
-
font-size: var(--ds-font-size-5, 21px);
|
|
5206
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5207
|
-
line-height: 1.5;
|
|
5208
|
-
letter-spacing: 0.105px;
|
|
5209
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5210
|
-
margin: 0;
|
|
5211
|
-
}
|
|
5212
|
-
.${e.newsletterForm} {
|
|
5213
|
-
display: flex;
|
|
5214
|
-
flex-direction: column;
|
|
5215
|
-
gap: var(--ds-size-6, 24px);
|
|
5216
|
-
}
|
|
5217
|
-
.${e.newsletterInputGroup} {
|
|
5218
|
-
display: flex;
|
|
5219
|
-
gap: var(--ds-size-2, 8px);
|
|
5220
|
-
align-items: flex-end;
|
|
5221
|
-
}
|
|
5222
|
-
.${e.newsletterInput} {
|
|
5223
|
-
flex: 1;
|
|
5224
|
-
min-width: 200px;
|
|
5225
|
-
}
|
|
5226
|
-
.${e.consentText} {
|
|
5227
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5228
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5229
|
-
line-height: 1.3;
|
|
5230
|
-
letter-spacing: 0.04px;
|
|
5231
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5232
|
-
margin: 0;
|
|
5233
|
-
}
|
|
5234
|
-
.${e.linksSection} {
|
|
5235
|
-
display: flex;
|
|
5236
|
-
gap: var(--ds-size-12, 48px);
|
|
5237
|
-
flex-wrap: wrap;
|
|
5238
|
-
}
|
|
5239
|
-
.${e.linksColumn} {
|
|
5240
|
-
display: flex;
|
|
5241
|
-
flex-direction: column;
|
|
5242
|
-
gap: var(--ds-size-2, 8px);
|
|
5243
|
-
min-width: 150px;
|
|
5244
|
-
}
|
|
5245
|
-
.${e.linksTitle} {
|
|
5246
|
-
font-size: var(--ds-font-size-7, 30px);
|
|
5247
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5248
|
-
line-height: 1.3;
|
|
5249
|
-
letter-spacing: -0.075px;
|
|
5250
|
-
color: var(--ds-color-primary-color-red-text-subtle, #b42419);
|
|
5251
|
-
margin: 0;
|
|
5252
|
-
text-decoration: underline;
|
|
5253
|
-
text-underline-offset: 4px;
|
|
5254
|
-
}
|
|
5255
|
-
.${e.linksList} {
|
|
5256
|
-
list-style: none;
|
|
5257
|
-
padding: 0;
|
|
5258
|
-
margin: 0;
|
|
5259
|
-
display: flex;
|
|
5260
|
-
flex-direction: column;
|
|
5261
|
-
gap: var(--ds-size-2, 8px);
|
|
5262
|
-
}
|
|
5263
|
-
.${e.footerLink} {
|
|
5264
|
-
font-size: var(--ds-font-size-4, 18px);
|
|
5265
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5266
|
-
line-height: 1.5;
|
|
5267
|
-
letter-spacing: 0.09px;
|
|
5268
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5269
|
-
text-decoration: underline;
|
|
5270
|
-
text-underline-offset: 2px;
|
|
5271
|
-
}
|
|
5272
|
-
.${e.divider} {
|
|
5273
|
-
width: 100%;
|
|
5274
|
-
height: 1px;
|
|
5275
|
-
background-color: var(--ds-color-neutral-border-subtle, #bcbcbc);
|
|
5276
|
-
margin: var(--ds-size-6, 24px) 0;
|
|
5277
|
-
}
|
|
5278
|
-
.${e.contactSection} {
|
|
5279
|
-
display: flex;
|
|
5280
|
-
gap: var(--ds-size-6, 24px);
|
|
5281
|
-
align-items: flex-start;
|
|
5282
|
-
flex-wrap: wrap;
|
|
5283
|
-
}
|
|
5284
|
-
.${e.contactColumn} {
|
|
5285
|
-
display: flex;
|
|
5286
|
-
flex-direction: column;
|
|
5287
|
-
gap: var(--ds-size-1, 4px);
|
|
5288
|
-
flex: 1;
|
|
5289
|
-
min-width: 200px;
|
|
5290
|
-
}
|
|
5291
|
-
.${e.contactTitle} {
|
|
5292
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5293
|
-
font-weight: var(--ds-font-weight-semibold);
|
|
5294
|
-
line-height: 1.5;
|
|
5295
|
-
letter-spacing: 0.04px;
|
|
5296
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5297
|
-
margin: 0;
|
|
5298
|
-
}
|
|
5299
|
-
.${e.contactContent} {
|
|
5300
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5301
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5302
|
-
line-height: 1.5;
|
|
5303
|
-
letter-spacing: 0.04px;
|
|
5304
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5305
|
-
margin: 0;
|
|
5306
|
-
}
|
|
5307
|
-
.${e.contactContent} p {
|
|
5308
|
-
margin: 0;
|
|
5309
|
-
}
|
|
5310
|
-
.${e.copyrightSection} {
|
|
5311
|
-
display: flex;
|
|
5312
|
-
align-items: center;
|
|
5313
|
-
}
|
|
5314
|
-
.${e.copyrightText} {
|
|
5315
|
-
font-size: var(--ds-font-size-2, 14px);
|
|
5316
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5317
|
-
line-height: 1.3;
|
|
5318
|
-
letter-spacing: 0.021px;
|
|
5319
|
-
color: var(--ds-color-neutral-text-subtle, #5d5d5d);
|
|
5320
|
-
margin: 0;
|
|
5321
|
-
}
|
|
5322
|
-
.${e.whiteSection} {
|
|
5323
|
-
background-color: white;
|
|
5324
|
-
width: 100%;
|
|
5325
|
-
}
|
|
5326
|
-
.${e.whiteContainer} {
|
|
5327
|
-
width: 100%;
|
|
5328
|
-
max-width: 1440px;
|
|
5329
|
-
margin: 0 auto;
|
|
5330
|
-
padding: var(--ds-size-6, 24px) 175px;
|
|
5331
|
-
box-sizing: border-box;
|
|
5332
|
-
}
|
|
5333
|
-
.${e.whiteContent} {
|
|
5334
|
-
display: flex;
|
|
5335
|
-
justify-content: space-between;
|
|
5336
|
-
align-items: center;
|
|
5337
|
-
gap: var(--ds-size-10, 40px);
|
|
5338
|
-
flex-wrap: wrap;
|
|
5339
|
-
}
|
|
5340
|
-
.${e.logo} {
|
|
5341
|
-
display: flex;
|
|
5342
|
-
align-items: center;
|
|
5343
|
-
justify-content: center;
|
|
5344
|
-
height: 43px;
|
|
5345
|
-
flex-shrink: 0;
|
|
5346
|
-
}
|
|
5347
|
-
.${e.redCrossLogo} {
|
|
5348
|
-
width: 169px;
|
|
5349
|
-
height: auto;
|
|
5350
|
-
display: block;
|
|
5351
|
-
}
|
|
5352
|
-
.${e.slotLarge} {
|
|
5353
|
-
background-color: var(--ds-color-neutral-surface-default, #ffffff);
|
|
5354
|
-
border: 2px dashed var(--ds-color-neutral-border-default, #797979);
|
|
5355
|
-
border-radius: var(--ds-border-radius-lg, 8px);
|
|
5356
|
-
padding: var(--ds-size-6, 24px) var(--ds-size-3, 12px);
|
|
5357
|
-
display: flex;
|
|
5358
|
-
align-items: center;
|
|
5359
|
-
justify-content: center;
|
|
5360
|
-
flex: 1;
|
|
5361
|
-
max-width: 596px;
|
|
5362
|
-
min-width: 200px;
|
|
5363
|
-
}
|
|
5364
|
-
@media (max-width: 1024px) {
|
|
5365
|
-
.${e.mainContainer} {
|
|
5366
|
-
padding: var(--ds-size-15, 64px) var(--ds-size-8, 32px);
|
|
5367
|
-
}
|
|
5368
|
-
.${e.whiteContainer} {
|
|
5369
|
-
padding: var(--ds-size-6, 24px) var(--ds-size-8, 32px);
|
|
5370
|
-
}
|
|
5371
|
-
}
|
|
5372
|
-
@media (max-width: 768px) {
|
|
5373
|
-
.${e.contentRow} {
|
|
5374
|
-
flex-direction: column;
|
|
5375
|
-
}
|
|
5376
|
-
.${e.newsletterSection} {
|
|
5377
|
-
max-width: 100%;
|
|
5378
|
-
}
|
|
5379
|
-
.${e.linksSection} {
|
|
5380
|
-
width: 100%;
|
|
5381
|
-
}
|
|
5382
|
-
.${e.contactSection} {
|
|
5383
|
-
flex-direction: column;
|
|
5384
|
-
}
|
|
5385
|
-
.${e.whiteContent} {
|
|
5386
|
-
flex-direction: column;
|
|
5387
|
-
align-items: flex-start;
|
|
5388
|
-
}
|
|
5389
|
-
.${e.slotLarge} {
|
|
5390
|
-
width: 100%;
|
|
5391
|
-
max-width: none;
|
|
5392
|
-
}
|
|
5393
|
-
}
|
|
5394
|
-
/* Contact Variant Styles */
|
|
5395
|
-
.${e.contentRowContact} {
|
|
5396
|
-
display: flex;
|
|
5397
|
-
justify-content: space-between;
|
|
5398
|
-
align-items: flex-start;
|
|
5399
|
-
gap: var(--ds-size-12, 48px);
|
|
5400
|
-
padding: var(--ds-size-8, 32px) 0;
|
|
5401
|
-
flex-wrap: wrap;
|
|
5402
|
-
}
|
|
5403
|
-
.${e.socialLinksSection} {
|
|
5404
|
-
display: flex;
|
|
5405
|
-
flex-direction: column;
|
|
5406
|
-
gap: var(--ds-size-4, 16px);
|
|
5407
|
-
min-width: 200px;
|
|
5408
|
-
}
|
|
5409
|
-
.${e.socialLinksTitle} {
|
|
5410
|
-
font-size: var(--ds-font-size-7, 30px);
|
|
5411
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5412
|
-
line-height: 1.3;
|
|
5413
|
-
letter-spacing: -0.075px;
|
|
5414
|
-
color: var(--ds-color-primary-color-red-text-subtle, #b42419);
|
|
5415
|
-
margin: 0;
|
|
5416
|
-
text-decoration: underline;
|
|
5417
|
-
text-underline-offset: 4px;
|
|
5418
|
-
}
|
|
5419
|
-
.${e.socialLinksList} {
|
|
5420
|
-
list-style: none;
|
|
5421
|
-
padding: 0;
|
|
5422
|
-
margin: 0;
|
|
5423
|
-
display: flex;
|
|
5424
|
-
flex-direction: column;
|
|
5425
|
-
gap: var(--ds-size-2, 8px);
|
|
5426
|
-
}
|
|
5427
|
-
.${e.socialLink} {
|
|
5428
|
-
display: flex;
|
|
5429
|
-
align-items: center;
|
|
5430
|
-
gap: var(--ds-size-2, 8px);
|
|
5431
|
-
font-size: var(--ds-font-size-4, 18px);
|
|
5432
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5433
|
-
line-height: 1.5;
|
|
5434
|
-
letter-spacing: 0.09px;
|
|
5435
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5436
|
-
text-decoration: underline;
|
|
5437
|
-
text-underline-offset: 2px;
|
|
5438
|
-
}
|
|
5439
|
-
.${e.socialLinkIcon} {
|
|
5440
|
-
display: flex;
|
|
5441
|
-
align-items: center;
|
|
5442
|
-
justify-content: center;
|
|
5443
|
-
width: 24px;
|
|
5444
|
-
height: 24px;
|
|
5445
|
-
flex-shrink: 0;
|
|
5446
|
-
}
|
|
5447
|
-
.${e.contactPersonsSection} {
|
|
5448
|
-
display: flex;
|
|
5449
|
-
flex-direction: column;
|
|
5450
|
-
gap: var(--ds-size-4, 16px);
|
|
5451
|
-
flex: 1;
|
|
5452
|
-
}
|
|
5453
|
-
.${e.contactPersonsTitle} {
|
|
5454
|
-
font-size: var(--ds-font-size-7, 30px);
|
|
5455
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5456
|
-
line-height: 1.3;
|
|
5457
|
-
letter-spacing: -0.075px;
|
|
5458
|
-
color: var(--ds-color-primary-color-red-text-subtle, #b42419);
|
|
5459
|
-
margin: 0;
|
|
5460
|
-
text-decoration: underline;
|
|
5461
|
-
text-underline-offset: 4px;
|
|
5462
|
-
}
|
|
5463
|
-
.${e.contactPersonsGrid} {
|
|
5464
|
-
display: grid;
|
|
5465
|
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
5466
|
-
gap: var(--ds-size-12, 48px);
|
|
5467
|
-
}
|
|
5468
|
-
.${e.contactPersonCard} {
|
|
5469
|
-
display: flex;
|
|
5470
|
-
flex-direction: column;
|
|
5471
|
-
gap: var(--ds-size-1, 4px);
|
|
5472
|
-
min-width: 0;
|
|
5473
|
-
}
|
|
5474
|
-
.${e.contactPersonName} {
|
|
5475
|
-
font-size: var(--ds-font-size-4, 18px);
|
|
5476
|
-
font-weight: var(--ds-font-weight-semibold);
|
|
5477
|
-
line-height: 1.5;
|
|
5478
|
-
letter-spacing: 0.09px;
|
|
5479
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5480
|
-
margin: 0;
|
|
5481
|
-
}
|
|
5482
|
-
.${e.contactPersonRole} {
|
|
5483
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5484
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5485
|
-
line-height: 1.5;
|
|
5486
|
-
letter-spacing: 0.04px;
|
|
5487
|
-
color: var(--ds-color-neutral-text-subtle, #5d5d5d);
|
|
5488
|
-
margin: 0;
|
|
5489
|
-
}
|
|
5490
|
-
.${e.contactPersonDetails} {
|
|
5491
|
-
display: flex;
|
|
5492
|
-
flex-direction: column;
|
|
5493
|
-
gap: var(--ds-size-1, 4px);
|
|
5494
|
-
margin-top: var(--ds-size-2, 8px);
|
|
5495
|
-
}
|
|
5496
|
-
.${e.contactPersonLabel} {
|
|
5497
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5498
|
-
}
|
|
5499
|
-
.${e.contactPersonEmail},
|
|
5500
|
-
.${e.contactPersonPhone},
|
|
5501
|
-
.${e.contactPersonAddress} {
|
|
5502
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5503
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5504
|
-
line-height: 1.5;
|
|
5505
|
-
letter-spacing: 0.04px;
|
|
5506
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5507
|
-
margin: 0;
|
|
5508
|
-
word-break: break-word;
|
|
5509
|
-
}
|
|
5510
|
-
.${e.contactPersonEmail} a {
|
|
5511
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5512
|
-
text-decoration: underline;
|
|
5513
|
-
text-underline-offset: 2px;
|
|
5514
|
-
}
|
|
5515
|
-
.${e.bottomRowContact} {
|
|
5516
|
-
display: flex;
|
|
5517
|
-
justify-content: space-between;
|
|
5518
|
-
align-items: center;
|
|
5519
|
-
flex-wrap: wrap;
|
|
5520
|
-
gap: var(--ds-size-4, 16px);
|
|
5521
|
-
}
|
|
5522
|
-
.${e.legalLinksRow} {
|
|
5523
|
-
display: flex;
|
|
5524
|
-
gap: var(--ds-size-6, 24px);
|
|
5525
|
-
flex-wrap: wrap;
|
|
5526
|
-
list-style: none;
|
|
5527
|
-
padding: 0;
|
|
5528
|
-
margin: 0;
|
|
5529
|
-
}
|
|
5530
|
-
.${e.legalLink} {
|
|
5531
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5532
|
-
font-weight: var(--ds-font-weight-regular);
|
|
5533
|
-
line-height: 1.5;
|
|
5534
|
-
letter-spacing: 0.04px;
|
|
5535
|
-
color: var(--ds-color-neutral-text-default, #2b2b2b);
|
|
5536
|
-
text-decoration: underline;
|
|
5537
|
-
text-underline-offset: 2px;
|
|
5538
|
-
}
|
|
5539
|
-
@media (max-width: 1024px) {
|
|
5540
|
-
.${e.contentRowContact} {
|
|
5541
|
-
gap: var(--ds-size-8, 32px);
|
|
5542
|
-
}
|
|
5543
|
-
.${e.contactPersonsGrid} {
|
|
5544
|
-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
5545
|
-
gap: var(--ds-size-6, 24px);
|
|
5546
|
-
}
|
|
5547
|
-
}
|
|
5548
|
-
@media (max-width: 768px) {
|
|
5549
|
-
.${e.contentRowContact} {
|
|
5550
|
-
flex-direction: column;
|
|
5551
|
-
}
|
|
5552
|
-
.${e.socialLinksSection} {
|
|
5553
|
-
width: 100%;
|
|
5554
|
-
}
|
|
5555
|
-
.${e.contactPersonsSection} {
|
|
5556
|
-
width: 100%;
|
|
5557
|
-
}
|
|
5558
|
-
.${e.contactPersonsGrid} {
|
|
5559
|
-
grid-template-columns: 1fr;
|
|
5560
|
-
}
|
|
5561
|
-
.${e.contactPersonCard} {
|
|
5562
|
-
max-width: none;
|
|
5563
|
-
}
|
|
5564
|
-
.${e.bottomRowContact} {
|
|
5565
|
-
flex-direction: column;
|
|
5566
|
-
align-items: flex-start;
|
|
5567
|
-
}
|
|
5568
|
-
.${e.legalLinksRow} {
|
|
5569
|
-
flex-direction: column;
|
|
5570
|
-
gap: var(--ds-size-2, 8px);
|
|
5571
|
-
}
|
|
5572
|
-
}
|
|
5573
|
-
`;
|
|
5574
|
-
}
|
|
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(
|
|
5595
|
-
"svg",
|
|
5596
|
-
{
|
|
5597
|
-
width: "19",
|
|
5598
|
-
height: "18",
|
|
5599
|
-
viewBox: "0 0 19.2905 18.125",
|
|
5600
|
-
fill: "none",
|
|
5601
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5602
|
-
"aria-hidden": "true",
|
|
5603
|
-
focusable: "false",
|
|
5604
|
-
children: /* @__PURE__ */ t(
|
|
5605
|
-
"path",
|
|
5606
|
-
{
|
|
5607
|
-
d: "M13.7703 0C15.2893 5.94513e-05 16.5938 0.76302 17.6755 1.84473C20.0479 4.2172 19.8818 8.19893 16.6755 11.4053L10.1765 17.9043C10.0359 18.0449 9.84412 18.1249 9.64527 18.125C9.44642 18.125 9.25564 18.0458 9.115 17.9053L2.615 11.4053C-0.591399 8.19889 -0.757477 4.21721 1.615 1.84473C2.69673 0.763025 4.00125 0 5.52027 0C6.86917 5.33075e-05 8.24623 0.601427 9.64527 1.84375C11.0443 0.601491 12.4214 0 13.7703 0Z",
|
|
5608
|
-
fill: "#B42419"
|
|
5609
|
-
}
|
|
5610
|
-
)
|
|
5611
|
-
}
|
|
5612
|
-
), oi = () => /* @__PURE__ */ t(
|
|
5613
|
-
"svg",
|
|
5614
|
-
{
|
|
5615
|
-
width: "16",
|
|
5616
|
-
height: "15",
|
|
5617
|
-
viewBox: "0 0 25.721 24.166",
|
|
5618
|
-
fill: "none",
|
|
5619
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5620
|
-
"aria-hidden": "true",
|
|
5621
|
-
focusable: "false",
|
|
5622
|
-
children: /* @__PURE__ */ t(
|
|
5623
|
-
"path",
|
|
5624
|
-
{
|
|
5625
|
-
d: "M18.3605 0C20.3858 2.70913e-05 22.1252 1.01674 23.5675 2.45898C26.7308 5.62229 26.5097 10.9318 22.2345 15.207L13.5685 23.873C13.381 24.0605 13.1256 24.166 12.8605 24.166C12.5953 24.166 12.341 24.0606 12.1535 23.873L3.48648 15.207C-0.78872 10.9319 -1.00983 5.6223 2.15347 2.45898C3.59576 1.01676 5.33517 -7.94691e-07 7.3605 0C9.15905 2.54762e-05 10.9951 0.801582 12.8605 2.45801C14.7259 0.801611 16.562 0 18.3605 0ZM18.3605 2C17.0526 2 15.4585 2.64907 13.5675 4.54004C13.38 4.72756 13.1257 4.83299 12.8605 4.83301C12.5953 4.83301 12.341 4.72755 12.1535 4.54004C10.2625 2.64908 8.6684 2.00003 7.3605 2C6.05266 2 4.7918 2.64884 3.56753 3.87305C1.39752 6.04307 1.17573 10.0682 4.90054 13.793L12.8605 21.752L20.8205 13.793C24.5452 10.0682 24.3235 6.04306 22.1535 3.87305C20.9292 2.64881 19.6683 2.00003 18.3605 2Z",
|
|
5626
|
-
fill: "#D52B1E"
|
|
5627
|
-
}
|
|
5628
|
-
)
|
|
5629
|
-
}
|
|
5630
|
-
), ri = () => /* @__PURE__ */ t(
|
|
5631
|
-
"svg",
|
|
5632
|
-
{
|
|
5633
|
-
width: "64",
|
|
5634
|
-
height: "16",
|
|
5635
|
-
viewBox: "0 0 64 16",
|
|
5636
|
-
fill: "none",
|
|
5637
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5638
|
-
"aria-hidden": "true",
|
|
5639
|
-
focusable: "false",
|
|
5640
|
-
children: /* @__PURE__ */ t(
|
|
5641
|
-
"path",
|
|
5642
|
-
{
|
|
5643
|
-
d: "M34.0879 0C36.392 2.1216e-05 39.0869 1.89904 39.0869 5.95996C39.0868 10.2022 36.4949 12.2627 33.8408 12.2627C32.4216 12.2627 31.1671 11.7169 30.2002 10.4238V16H27.2998V0.323242H30.2002V1.91895C31.0027 0.82803 32.2573 0 34.0879 0ZM48.0156 0C50.3197 0.000234933 53.0137 1.89927 53.0137 5.95996C53.0136 10.2021 50.4223 12.2625 47.7686 12.2627C46.3493 12.2627 45.0939 11.7169 44.127 10.4238V16H41.2266V0.323242H44.1279V1.91895C44.9302 0.828069 46.185 0 48.0156 0ZM12.2402 6.58594C12.7958 6.20212 13.5569 6.36346 14.0508 7.09082C15.285 8.86842 16.8693 10.081 18.9053 10.0811L19.2695 10.0693C21.0418 9.95993 22.0986 9.0452 23.1016 7.75781C23.6771 7.01059 24.4387 6.86826 24.9531 7.27246C25.5084 7.69677 25.5289 8.46462 24.9531 9.21191C23.4106 11.2322 21.4357 12.4443 18.9053 12.4443C16.1488 12.4443 13.7835 10.9494 12.0762 8.38379C11.6033 7.71699 11.726 6.94964 12.2402 6.58594ZM59.1445 0C61.5312 0 63.2798 1.09116 64 3.83887L61.3877 4.24219C61.3465 2.84847 60.4618 2.42489 59.207 2.4248C58.2195 2.4248 57.499 2.84883 57.499 3.51562C57.4992 4.04069 57.8697 4.58616 58.9805 4.78809L60.9756 5.15137C62.9298 5.51551 63.9795 6.76793 63.9795 8.48535C63.9792 11.0102 61.6543 12.2627 59.4736 12.2627C57.1698 12.2626 54.6192 11.0904 54.208 8.24219L56.8203 7.83789C56.9644 9.31277 57.8903 9.83881 59.3711 9.83887C60.5024 9.83887 61.2636 9.43452 61.2637 8.72754C61.2637 8.10123 60.9141 7.63618 59.6797 7.41406L57.8691 7.09082C55.9565 6.74715 54.7842 5.41356 54.7842 3.7168C54.7844 1.09068 57.211 7.8171e-05 59.1445 0ZM5.9248 8.16113L8.63965 0.302734H11.8281L7.09668 11.959H4.73145L0 0.302734H3.18848L5.9248 8.16113ZM33.1826 2.50488C31.5988 2.50497 30.2003 3.61605 30.2002 6.10059C30.2002 8.4844 31.5987 9.73711 33.1621 9.7373C34.643 9.7373 36.166 8.56534 36.166 6.10059C36.1659 3.67634 34.6431 2.50488 33.1826 2.50488ZM47.1104 2.50488C45.5265 2.50488 44.1271 3.61595 44.127 6.10059C44.127 8.48459 45.5262 9.7373 47.0898 9.7373C48.5708 9.73729 50.0928 8.56533 50.0928 6.10059C50.0926 3.67645 48.5708 2.50499 47.1104 2.50488ZM21.0039 2.06055C21.8679 2.06067 22.6084 2.70741 22.6084 3.63672L22.5996 3.80762C22.5149 4.64394 21.8138 5.2118 21.0039 5.21191C20.1401 5.21191 19.3996 4.56573 19.3994 3.63672C19.3994 2.70732 20.14 2.06055 21.0039 2.06055Z",
|
|
5644
|
-
fill: "white"
|
|
5645
|
-
}
|
|
5646
|
-
)
|
|
5647
|
-
}
|
|
5648
|
-
), ai = [
|
|
5649
|
-
{ value: 220, label: "220 kr" },
|
|
5650
|
-
{ value: 345, label: "345 kr" },
|
|
5651
|
-
{ value: 660, label: "660 kr" }
|
|
5652
|
-
], Ji = ({
|
|
5653
|
-
"data-color": n = "primary",
|
|
5654
|
-
amounts: e = ai,
|
|
5655
|
-
defaultAmount: a = 345,
|
|
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,
|
|
5667
|
-
onAmountChange: p,
|
|
5668
|
-
showVippsButton: Q = !0,
|
|
5669
|
-
showAvtalegiroLink: K = !0,
|
|
5670
|
-
showImpactMessage: N = !0,
|
|
5671
|
-
heartVariant: w = "outlined"
|
|
5672
|
-
}) => {
|
|
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);
|
|
5679
|
-
}, []);
|
|
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}");
|
|
5698
|
-
return /* @__PURE__ */ r("span", { children: [
|
|
5699
|
-
h[0],
|
|
5700
|
-
/* @__PURE__ */ t("span", { className: O.impactAmount, children: T }),
|
|
5701
|
-
h[1] || ""
|
|
5702
|
-
] });
|
|
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
|
-
)
|
|
5772
|
-
] })
|
|
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
|
-
) });
|
|
5794
2393
|
};
|
|
5795
|
-
function si(n) {
|
|
5796
|
-
return `
|
|
5797
|
-
.${n.donor} {
|
|
5798
|
-
border-radius: 16px;
|
|
5799
|
-
overflow: hidden;
|
|
5800
|
-
background-color: var(--ds-color-primary-color-red-surface-default, #ffffff);
|
|
5801
|
-
display: flex;
|
|
5802
|
-
flex-direction: column;
|
|
5803
|
-
align-items: center;
|
|
5804
|
-
width: 100%;
|
|
5805
|
-
max-width: 344px;
|
|
5806
|
-
padding-top: var(--ds-size-2, 8px);
|
|
5807
|
-
}
|
|
5808
|
-
.${n.tabsWrapper} {
|
|
5809
|
-
width: 100%;
|
|
5810
|
-
overflow: hidden;
|
|
5811
|
-
border-radius: 4px;
|
|
5812
|
-
}
|
|
5813
|
-
.${n.tabsWrapper} [role="tablist"] {
|
|
5814
|
-
display: flex !important;
|
|
5815
|
-
width: 100% !important;
|
|
5816
|
-
}
|
|
5817
|
-
.${n.tabPanel} {
|
|
5818
|
-
width: 100%;
|
|
5819
|
-
padding: 0;
|
|
5820
|
-
}
|
|
5821
|
-
.${n.tabsWrapper} [role="tab"] {
|
|
5822
|
-
flex: 1 1 50% !important;
|
|
5823
|
-
display: inline-flex !important;
|
|
5824
|
-
align-items: center !important;
|
|
5825
|
-
justify-content: center !important;
|
|
5826
|
-
text-align: center;
|
|
5827
|
-
white-space: nowrap;
|
|
5828
|
-
}
|
|
5829
|
-
.${n.content} {
|
|
5830
|
-
display: flex;
|
|
5831
|
-
flex-direction: column;
|
|
5832
|
-
gap: var(--ds-size-6, 24px);
|
|
5833
|
-
align-items: center;
|
|
5834
|
-
justify-content: center;
|
|
5835
|
-
padding: var(--ds-size-6, 24px);
|
|
5836
|
-
width: 100%;
|
|
5837
|
-
box-sizing: border-box;
|
|
5838
|
-
}
|
|
5839
|
-
.${n.amountSection} {
|
|
5840
|
-
display: flex;
|
|
5841
|
-
flex-direction: column;
|
|
5842
|
-
gap: var(--ds-size-2, 8px);
|
|
5843
|
-
align-items: flex-start;
|
|
5844
|
-
width: 296px;
|
|
5845
|
-
}
|
|
5846
|
-
.${n.amountLabel} {
|
|
5847
|
-
font-weight: var(--ds-font-weight-regular, 400);
|
|
5848
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5849
|
-
line-height: 1.5;
|
|
5850
|
-
letter-spacing: 0.04px;
|
|
5851
|
-
color: var(--ds-color-neutral-text-default, #333333);
|
|
5852
|
-
margin: 0;
|
|
5853
|
-
}
|
|
5854
|
-
.${n.amountButtons} {
|
|
5855
|
-
display: flex;
|
|
5856
|
-
gap: var(--ds-size-2, 8px);
|
|
5857
|
-
align-items: flex-start;
|
|
5858
|
-
width: 100%;
|
|
5859
|
-
}
|
|
5860
|
-
.${n.amountButtons} > button {
|
|
5861
|
-
flex: 1;
|
|
5862
|
-
}
|
|
5863
|
-
.${n.customAmountField} {
|
|
5864
|
-
width: 100%;
|
|
5865
|
-
}
|
|
5866
|
-
.${n.impactRow} {
|
|
5867
|
-
display: flex;
|
|
5868
|
-
gap: var(--ds-size-3, 12px);
|
|
5869
|
-
align-items: center;
|
|
5870
|
-
width: 296px;
|
|
5871
|
-
min-height: 48px;
|
|
5872
|
-
}
|
|
5873
|
-
.${n.heartIcon} {
|
|
5874
|
-
width: 32px;
|
|
5875
|
-
height: 32px;
|
|
5876
|
-
flex-shrink: 0;
|
|
5877
|
-
display: flex;
|
|
5878
|
-
align-items: center;
|
|
5879
|
-
justify-content: center;
|
|
5880
|
-
}
|
|
5881
|
-
.${n.heartIcon} svg {
|
|
5882
|
-
width: 19px;
|
|
5883
|
-
height: 18px;
|
|
5884
|
-
}
|
|
5885
|
-
.${n.impactText} {
|
|
5886
|
-
flex: 1;
|
|
5887
|
-
font-weight: var(--ds-font-weight-regular, 400);
|
|
5888
|
-
font-size: var(--ds-font-size-3, 16px);
|
|
5889
|
-
line-height: 1.5;
|
|
5890
|
-
letter-spacing: 0.04px;
|
|
5891
|
-
color: var(--ds-color-neutral-text-default, #333333);
|
|
5892
|
-
margin: 0;
|
|
5893
|
-
}
|
|
5894
|
-
.${n.impactAmount} {
|
|
5895
|
-
font-weight: var(--ds-font-weight-semibold, 600);
|
|
5896
|
-
}
|
|
5897
|
-
.${n.actionsSection} {
|
|
5898
|
-
display: flex;
|
|
5899
|
-
flex-direction: column;
|
|
5900
|
-
gap: var(--ds-size-2, 8px);
|
|
5901
|
-
align-items: center;
|
|
5902
|
-
justify-content: center;
|
|
5903
|
-
width: 296px;
|
|
5904
|
-
}
|
|
5905
|
-
.${n.vippsButton} {
|
|
5906
|
-
display: flex;
|
|
5907
|
-
gap: 6px;
|
|
5908
|
-
align-items: center;
|
|
5909
|
-
justify-content: center;
|
|
5910
|
-
width: 300px;
|
|
5911
|
-
height: 44px;
|
|
5912
|
-
padding: 12px 16px;
|
|
5913
|
-
background-color: #ff5b24;
|
|
5914
|
-
border: none;
|
|
5915
|
-
border-radius: var(--ds-border-radius-xl, 12px);
|
|
5916
|
-
overflow: hidden;
|
|
5917
|
-
cursor: pointer;
|
|
5918
|
-
transition: opacity 0.15s ease;
|
|
5919
|
-
font-family: inherit;
|
|
5920
|
-
}
|
|
5921
|
-
.${n.vippsButton}:hover {
|
|
5922
|
-
opacity: 0.9;
|
|
5923
|
-
}
|
|
5924
|
-
.${n.vippsButton}:active {
|
|
5925
|
-
opacity: 0.8;
|
|
5926
|
-
}
|
|
5927
|
-
.${n.vippsButton}:focus-visible {
|
|
5928
|
-
outline: 2px solid var(--ds-color-neutral-border-default, #797979);
|
|
5929
|
-
outline-offset: 2px;
|
|
5930
|
-
}
|
|
5931
|
-
.${n.vippsButtonLabel} {
|
|
5932
|
-
font-family: inherit;
|
|
5933
|
-
font-weight: 700;
|
|
5934
|
-
font-size: 18.5px;
|
|
5935
|
-
line-height: 1;
|
|
5936
|
-
color: #ffffff;
|
|
5937
|
-
white-space: nowrap;
|
|
5938
|
-
}
|
|
5939
|
-
.${n.vippsLogo} {
|
|
5940
|
-
display: flex;
|
|
5941
|
-
flex-direction: column;
|
|
5942
|
-
align-items: flex-start;
|
|
5943
|
-
flex-shrink: 0;
|
|
5944
|
-
}
|
|
5945
|
-
.${n.vippsLogo} svg {
|
|
5946
|
-
width: 64px;
|
|
5947
|
-
height: 16px;
|
|
5948
|
-
}
|
|
5949
|
-
.${n.avtalegiroLink} {
|
|
5950
|
-
text-align: center;
|
|
5951
|
-
}
|
|
5952
|
-
.${n.tabHeartIcon} {
|
|
5953
|
-
display: inline-flex;
|
|
5954
|
-
align-items: center;
|
|
5955
|
-
margin-right: 4px;
|
|
5956
|
-
vertical-align: middle;
|
|
5957
|
-
}
|
|
5958
|
-
.${n.tabHeartIcon} svg {
|
|
5959
|
-
width: 16px;
|
|
5960
|
-
height: 15px;
|
|
5961
|
-
}
|
|
5962
|
-
`;
|
|
5963
|
-
}
|
|
5964
2394
|
export {
|
|
5965
|
-
|
|
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
|
|
2395
|
+
e as translations
|
|
6033
2396
|
};
|