rk-designsystem 1.3.4 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/components/Carousel/index.js +215 -166
- package/dist/components/Carousel/styles.module.css.js +35 -31
- package/dist/components/DateInput/index.js +85 -87
- package/dist/components/DateInput/styles.module.css.js +1 -1
- package/dist/components/DatePicker/index.js +197 -175
- package/dist/components/DatePicker/styles.module.css.js +20 -20
- package/dist/components/Donor/index.js +71 -68
- package/dist/components/Donor/styles.module.css.js +22 -22
- package/dist/components/Footer/index.js +88 -86
- package/dist/components/GraphicElement/index.js +3 -3
- package/dist/components/Header/index.js +277 -242
- package/dist/components/Header/styles.module.css.js +49 -49
- package/dist/context/LanguageContext.js +17 -14
- package/dist/index.d.ts +44 -5
- package/dist/rk-designsystem.css +1 -1
- package/dist/translations/index.js +10 -2
- package/package.json +18 -26
- package/dist/utils/search-index.js +0 -106
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as n, jsx as t, Fragment as
|
|
3
|
-
import
|
|
2
|
+
import { jsxs as n, jsx as t, Fragment as ie } from "react/jsx-runtime";
|
|
3
|
+
import F from "react";
|
|
4
4
|
import e from "./styles.module.css.js";
|
|
5
5
|
import { Link as c } from "../Link/index.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Input as
|
|
6
|
+
import { Button as se } from "../Button/index.js";
|
|
7
|
+
import { Input as le } from "../Input/index.js";
|
|
8
8
|
import { GraphicElement as u } from "../GraphicElement/index.js";
|
|
9
|
-
import { RedCrossLogo as
|
|
10
|
-
import { useLanguageOptional as
|
|
11
|
-
const
|
|
9
|
+
import { RedCrossLogo as P } from "../../assets/logos/RedCrossLogo.js";
|
|
10
|
+
import { useLanguageOptional as oe } from "../../context/LanguageContext.js";
|
|
11
|
+
const ve = ({
|
|
12
12
|
"data-color": p = "neutral",
|
|
13
13
|
variant: a = "default",
|
|
14
|
-
colorScheme:
|
|
15
|
-
columns:
|
|
14
|
+
colorScheme: v,
|
|
15
|
+
columns: w,
|
|
16
16
|
showGraphicElements: m = !1,
|
|
17
17
|
newsletterDescription: K = "Tekst om rødekors som kan være rundt 2 linjebrudd i lengde.",
|
|
18
18
|
newsletterPlaceholder: O = "Input tekst",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
newsletterInputLabel: V,
|
|
20
|
+
newsletterButtonText: T = "Meld deg på",
|
|
21
|
+
newsletterConsentText: G,
|
|
22
|
+
onNewsletterSubmit: N,
|
|
23
|
+
hideNewsletter: W = !1,
|
|
24
|
+
shortcutsLinks: Y,
|
|
25
|
+
linksLinks: A,
|
|
26
|
+
shortcutsTitle: R,
|
|
27
|
+
linksTitle: S,
|
|
28
|
+
visitingAddress: b = ["Hausmannsgate 7 (Korsegården)", "0186 Oslo"],
|
|
29
|
+
organizationNumber: k = "XXX XXX XXX",
|
|
30
|
+
email: z = "post@redcross.no",
|
|
31
|
+
showPrimaryLogo: $ = !0,
|
|
31
32
|
primaryLogoSrc: d,
|
|
32
|
-
primaryLogoAlt:
|
|
33
|
+
primaryLogoAlt: C = "Røde Kors Logo",
|
|
33
34
|
whiteSectionSlot: f,
|
|
34
|
-
socialLinks:
|
|
35
|
+
socialLinks: E = [],
|
|
35
36
|
contactPersons: j = [],
|
|
36
37
|
legalLinks: g = [],
|
|
37
|
-
socialLinksTitle:
|
|
38
|
-
contactPersonsTitle:
|
|
38
|
+
socialLinksTitle: M,
|
|
39
|
+
contactPersonsTitle: I
|
|
39
40
|
} = {}) => {
|
|
40
|
-
const
|
|
41
|
-
const o =
|
|
41
|
+
const y = (/* @__PURE__ */ new Date()).getFullYear(), { t: H } = oe(), L = p === "primary" ? "primary-color-red" : p === "additional" ? "additional-color-ocean" : p, [B, q] = F.useState(""), s = (i, l) => {
|
|
42
|
+
const o = H(i);
|
|
42
43
|
return o === i ? l : o;
|
|
43
44
|
};
|
|
44
|
-
|
|
45
|
+
F.useEffect(() => {
|
|
45
46
|
const i = "rk-footer-inline-styles";
|
|
46
47
|
if (typeof document > "u" || document.getElementById(i)) return;
|
|
47
|
-
const l =
|
|
48
|
+
const l = re(e), o = document.createElement("style");
|
|
48
49
|
o.id = i, o.textContent = l, document.head.prepend(o);
|
|
49
50
|
}, []);
|
|
50
|
-
const
|
|
51
|
-
i.preventDefault(),
|
|
51
|
+
const J = (i) => {
|
|
52
|
+
i.preventDefault(), N == null || N(B);
|
|
52
53
|
}, x = [
|
|
53
54
|
{ label: s("footer.shortcutsLinks.services", "Tilbudene"), href: "#" },
|
|
54
55
|
{ label: s("footer.shortcutsLinks.volunteer", "Bli frivillig"), href: "#" },
|
|
@@ -56,26 +57,26 @@ const ue = ({
|
|
|
56
57
|
{ label: s("footer.shortcutsLinks.about", "Om Røde Kors"), href: "#" },
|
|
57
58
|
{ label: s("footer.shortcutsLinks.support", "Støtt arbeidet"), href: "#" },
|
|
58
59
|
{ label: s("footer.shortcutsLinks.contact", "Kontakt oss"), href: "#" }
|
|
59
|
-
],
|
|
60
|
+
], D = [
|
|
60
61
|
{ label: s("footer.legal.privacy", "Personvern"), href: "#" },
|
|
61
62
|
{ label: s("footer.legal.press", "For presse"), href: "#" },
|
|
62
63
|
{ label: s("footer.legal.procurement", "Regler for innkjøp"), href: "#" },
|
|
63
64
|
{ label: s("footer.legal.whistleblowing", "Varsling/Misconduct"), href: "#" }
|
|
64
|
-
],
|
|
65
|
+
], Q = /* @__PURE__ */ n(ie, { children: [
|
|
65
66
|
'Ved å trykke "',
|
|
66
|
-
|
|
67
|
+
T,
|
|
67
68
|
'" samtykker du til å motta nyhetsbrev.',
|
|
68
69
|
/* @__PURE__ */ t("br", {}),
|
|
69
70
|
"Du kan når som helst ",
|
|
70
71
|
/* @__PURE__ */ t(c, { href: "#", children: "melde deg av" }),
|
|
71
72
|
" nyhetsbrevet uten kostnad."
|
|
72
|
-
] }),
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */ t("ul", { className: e.socialLinksList, children:
|
|
73
|
+
] }), U = Y || x, Z = A || D, _ = () => /* @__PURE__ */ n("div", { className: e.socialLinksSection, children: [
|
|
74
|
+
M && /* @__PURE__ */ t("h3", { className: e.socialLinksTitle, children: M }),
|
|
75
|
+
/* @__PURE__ */ t("ul", { className: e.socialLinksList, children: E.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ n(c, { href: i.href, className: e.socialLink, children: [
|
|
75
76
|
/* @__PURE__ */ t("span", { className: e.socialLinkIcon, children: i.icon }),
|
|
76
77
|
i.label
|
|
77
78
|
] }) }, l)) })
|
|
78
|
-
] }),
|
|
79
|
+
] }), ee = ({ person: i }) => /* @__PURE__ */ n("div", { className: e.contactPersonCard, children: [
|
|
79
80
|
/* @__PURE__ */ t("p", { className: e.contactPersonName, children: i.name }),
|
|
80
81
|
/* @__PURE__ */ t("p", { className: e.contactPersonRole, children: i.role }),
|
|
81
82
|
/* @__PURE__ */ n("div", { className: e.contactPersonDetails, children: [
|
|
@@ -97,10 +98,10 @@ const ue = ({
|
|
|
97
98
|
] }),
|
|
98
99
|
i.address && /* @__PURE__ */ t("p", { className: e.contactPersonAddress, children: i.address })
|
|
99
100
|
] })
|
|
100
|
-
] }),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */ t("div", { className: e.contactPersonsGrid, children: j.map((i, l) => /* @__PURE__ */ t(
|
|
103
|
-
] }),
|
|
101
|
+
] }), te = () => /* @__PURE__ */ n("div", { className: e.contactPersonsSection, children: [
|
|
102
|
+
I && /* @__PURE__ */ t("h3", { className: e.contactPersonsTitle, children: I }),
|
|
103
|
+
/* @__PURE__ */ t("div", { className: e.contactPersonsGrid, children: j.map((i, l) => /* @__PURE__ */ t(ee, { person: i }, l)) })
|
|
104
|
+
] }), ae = () => /* @__PURE__ */ t("ul", { className: e.legalLinksRow, children: g.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.legalLink, children: i.label }) }, l)) });
|
|
104
105
|
if (a === "columns") {
|
|
105
106
|
const i = [
|
|
106
107
|
{
|
|
@@ -115,26 +116,26 @@ const ue = ({
|
|
|
115
116
|
title: s("footer.shortcuts", "Snarveier"),
|
|
116
117
|
links: x
|
|
117
118
|
}
|
|
118
|
-
], l =
|
|
119
|
-
return /* @__PURE__ */ n("footer", { className: e.footer, "data-color":
|
|
119
|
+
], l = w && w.length > 0 ? w : i, o = g.length > 0 ? g : D;
|
|
120
|
+
return /* @__PURE__ */ n("footer", { className: e.footer, "data-color": L, "data-color-scheme": v, children: [
|
|
120
121
|
/* @__PURE__ */ t("div", { className: e.dpMain, children: /* @__PURE__ */ n("div", { className: e.dpContainer, children: [
|
|
121
122
|
/* @__PURE__ */ t("div", { className: e.dpColumns, children: l.map((r, h) => /* @__PURE__ */ n("nav", { className: e.dpColumn, "aria-label": r.title, children: [
|
|
122
123
|
/* @__PURE__ */ t("h3", { className: e.dpColTitle, children: r.title }),
|
|
123
|
-
/* @__PURE__ */ t("ul", { className: e.dpList, children: r.links.map((
|
|
124
|
+
/* @__PURE__ */ t("ul", { className: e.dpList, children: r.links.map((X, ne) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: X.href, className: e.dpLink, children: X.label }) }, ne)) })
|
|
124
125
|
] }, h)) }),
|
|
125
126
|
/* @__PURE__ */ t("hr", { className: e.dpDivider }),
|
|
126
127
|
/* @__PURE__ */ n("div", { className: e.dpMeta, children: [
|
|
127
128
|
/* @__PURE__ */ n("div", { className: e.dpMetaCol, children: [
|
|
128
129
|
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: s("footer.contact.visitingAddress", "Besøksadresse") }),
|
|
129
|
-
|
|
130
|
+
b.map((r, h) => /* @__PURE__ */ t("p", { className: e.dpMetaText, children: r }, h))
|
|
130
131
|
] }),
|
|
131
132
|
/* @__PURE__ */ n("div", { className: e.dpMetaCol, children: [
|
|
132
133
|
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: s("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
133
|
-
/* @__PURE__ */ t("p", { className: e.dpMetaText, children:
|
|
134
|
+
/* @__PURE__ */ t("p", { className: e.dpMetaText, children: k })
|
|
134
135
|
] }),
|
|
135
136
|
/* @__PURE__ */ n("div", { className: e.dpMetaCol, children: [
|
|
136
137
|
/* @__PURE__ */ t("h4", { className: e.dpMetaTitle, children: s("footer.contact.email", "E-post") }),
|
|
137
|
-
/* @__PURE__ */ t("p", { className: e.dpMetaText, children:
|
|
138
|
+
/* @__PURE__ */ t("p", { className: e.dpMetaText, children: z })
|
|
138
139
|
] })
|
|
139
140
|
] }),
|
|
140
141
|
/* @__PURE__ */ t("hr", { className: e.dpDivider }),
|
|
@@ -142,51 +143,51 @@ const ue = ({
|
|
|
142
143
|
/* @__PURE__ */ t("ul", { className: e.dpLegal, children: o.map((r, h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: r.href, className: e.dpLegalLink, children: r.label }) }, h)) }),
|
|
143
144
|
/* @__PURE__ */ n("p", { className: e.dpCopyright, children: [
|
|
144
145
|
"© ",
|
|
145
|
-
|
|
146
|
+
y,
|
|
146
147
|
" ",
|
|
147
148
|
s("footer.copyright", "Røde Kors")
|
|
148
149
|
] })
|
|
149
150
|
] })
|
|
150
151
|
] }) }),
|
|
151
|
-
|
|
152
|
+
$ && /* @__PURE__ */ t("div", { className: e.whiteSection, "data-color-scheme": "light", children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */ t("div", { className: e.whiteContent, children: d ? /* @__PURE__ */ t(
|
|
152
153
|
"img",
|
|
153
154
|
{
|
|
154
155
|
src: d,
|
|
155
|
-
alt:
|
|
156
|
+
alt: C,
|
|
156
157
|
className: e.logo,
|
|
157
158
|
loading: "lazy"
|
|
158
159
|
}
|
|
159
|
-
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(
|
|
160
|
+
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(P, { className: e.redCrossLogo }) }) }) }) })
|
|
160
161
|
] });
|
|
161
162
|
}
|
|
162
|
-
return a === "contact" ? /* @__PURE__ */ n("footer", { className: e.footer, "data-color":
|
|
163
|
+
return a === "contact" ? /* @__PURE__ */ n("footer", { className: e.footer, "data-color": L, "data-color-scheme": v, children: [
|
|
163
164
|
/* @__PURE__ */ t("div", { className: e.mainSection, children: /* @__PURE__ */ n("div", { className: e.mainContainer, children: [
|
|
164
165
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementTopRight, children: /* @__PURE__ */ t(u, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
|
|
165
166
|
/* @__PURE__ */ n("div", { className: e.contentRowContact, children: [
|
|
166
|
-
|
|
167
|
-
j.length > 0 && /* @__PURE__ */ t(
|
|
167
|
+
E.length > 0 && /* @__PURE__ */ t(_, {}),
|
|
168
|
+
j.length > 0 && /* @__PURE__ */ t(te, {})
|
|
168
169
|
] }),
|
|
169
170
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
170
171
|
/* @__PURE__ */ n("div", { className: e.contactSection, children: [
|
|
171
172
|
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
172
173
|
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.visitingAddress", "Besøks adresse") }),
|
|
173
|
-
/* @__PURE__ */ t("div", { className: e.contactContent, children:
|
|
174
|
+
/* @__PURE__ */ t("div", { className: e.contactContent, children: b.map((i, l) => /* @__PURE__ */ t("p", { children: i }, l)) })
|
|
174
175
|
] }),
|
|
175
176
|
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
176
177
|
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
177
|
-
/* @__PURE__ */ t("p", { className: e.contactContent, children:
|
|
178
|
+
/* @__PURE__ */ t("p", { className: e.contactContent, children: k })
|
|
178
179
|
] }),
|
|
179
180
|
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
180
181
|
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.email", "E-post") }),
|
|
181
|
-
/* @__PURE__ */ t("p", { className: e.contactContent, children:
|
|
182
|
+
/* @__PURE__ */ t("p", { className: e.contactContent, children: z })
|
|
182
183
|
] })
|
|
183
184
|
] }),
|
|
184
185
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
185
186
|
/* @__PURE__ */ n("div", { className: e.bottomRowContact, children: [
|
|
186
|
-
g.length > 0 && /* @__PURE__ */ t(
|
|
187
|
+
g.length > 0 && /* @__PURE__ */ t(ae, {}),
|
|
187
188
|
/* @__PURE__ */ n("p", { className: e.copyrightText, children: [
|
|
188
189
|
"© ",
|
|
189
|
-
|
|
190
|
+
y,
|
|
190
191
|
" ",
|
|
191
192
|
s("footer.copyright", "Rødekors")
|
|
192
193
|
] })
|
|
@@ -194,46 +195,47 @@ const ue = ({
|
|
|
194
195
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementBottomLeft, children: /* @__PURE__ */ t(u, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
|
|
195
196
|
] }) }),
|
|
196
197
|
/* @__PURE__ */ t("div", { className: e.whiteSection, children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */ n("div", { className: e.whiteContent, children: [
|
|
197
|
-
|
|
198
|
+
$ && (d ? /* @__PURE__ */ t(
|
|
198
199
|
"img",
|
|
199
200
|
{
|
|
200
201
|
src: d,
|
|
201
|
-
alt:
|
|
202
|
+
alt: C,
|
|
202
203
|
className: e.logo,
|
|
203
204
|
loading: "lazy"
|
|
204
205
|
}
|
|
205
|
-
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(
|
|
206
|
+
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(P, { className: e.redCrossLogo }) })),
|
|
206
207
|
f && /* @__PURE__ */ t("div", { className: e.slotLarge, children: f })
|
|
207
208
|
] }) }) })
|
|
208
|
-
] }) : /* @__PURE__ */ n("footer", { className: e.footer, "data-color":
|
|
209
|
+
] }) : /* @__PURE__ */ n("footer", { className: e.footer, "data-color": L, "data-color-scheme": v, children: [
|
|
209
210
|
/* @__PURE__ */ t("div", { className: e.mainSection, children: /* @__PURE__ */ n("div", { className: e.mainContainer, children: [
|
|
210
211
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementTopRight, children: /* @__PURE__ */ t(u, { shape: "angle", position: "top-right", size: "md", "aria-hidden": !0 }) }),
|
|
211
212
|
/* @__PURE__ */ n("div", { className: e.contentRow, children: [
|
|
212
|
-
!
|
|
213
|
+
!W && /* @__PURE__ */ n("div", { className: e.newsletterSection, children: [
|
|
213
214
|
/* @__PURE__ */ t("p", { className: e.newsletterDescription, children: K }),
|
|
214
|
-
/* @__PURE__ */ t("form", { className: e.newsletterForm, onSubmit:
|
|
215
|
+
/* @__PURE__ */ t("form", { className: e.newsletterForm, onSubmit: J, children: /* @__PURE__ */ n("div", { className: e.newsletterInputGroup, children: [
|
|
215
216
|
/* @__PURE__ */ t(
|
|
216
|
-
|
|
217
|
+
le,
|
|
217
218
|
{
|
|
218
219
|
type: "email",
|
|
220
|
+
"aria-label": V ?? s("footer.newsletterEmailLabel", "E-postadresse"),
|
|
219
221
|
placeholder: O,
|
|
220
|
-
value:
|
|
221
|
-
onChange: (i) =>
|
|
222
|
+
value: B,
|
|
223
|
+
onChange: (i) => q(i.target.value),
|
|
222
224
|
className: e.newsletterInput
|
|
223
225
|
}
|
|
224
226
|
),
|
|
225
|
-
/* @__PURE__ */ t(
|
|
227
|
+
/* @__PURE__ */ t(se, { type: "submit", variant: "primary", "data-color": "neutral", children: T })
|
|
226
228
|
] }) }),
|
|
227
|
-
/* @__PURE__ */ t("p", { className: e.consentText, children:
|
|
229
|
+
/* @__PURE__ */ t("p", { className: e.consentText, children: G || Q })
|
|
228
230
|
] }),
|
|
229
231
|
/* @__PURE__ */ n("div", { className: e.linksSection, children: [
|
|
230
|
-
/* @__PURE__ */ n("nav", { className: e.linksColumn, "aria-label":
|
|
231
|
-
/* @__PURE__ */ t("h3", { className: e.linksTitle, children:
|
|
232
|
-
/* @__PURE__ */ t("ul", { className: e.linksList, children: Q.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.footerLink, children: i.label }) }, l)) })
|
|
233
|
-
] }),
|
|
234
|
-
/* @__PURE__ */ n("nav", { className: e.linksColumn, "aria-label": R || s("footer.links", "Lenker"), children: [
|
|
235
|
-
/* @__PURE__ */ t("h3", { className: e.linksTitle, children: R || s("footer.links", "Lenker") }),
|
|
232
|
+
/* @__PURE__ */ n("nav", { className: e.linksColumn, "aria-label": R || s("footer.shortcuts", "Snarveier"), children: [
|
|
233
|
+
/* @__PURE__ */ t("h3", { className: e.linksTitle, children: R || s("footer.shortcuts", "Snarveier") }),
|
|
236
234
|
/* @__PURE__ */ t("ul", { className: e.linksList, children: U.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.footerLink, children: i.label }) }, l)) })
|
|
235
|
+
] }),
|
|
236
|
+
/* @__PURE__ */ n("nav", { className: e.linksColumn, "aria-label": S || s("footer.links", "Lenker"), children: [
|
|
237
|
+
/* @__PURE__ */ t("h3", { className: e.linksTitle, children: S || s("footer.links", "Lenker") }),
|
|
238
|
+
/* @__PURE__ */ t("ul", { className: e.linksList, children: Z.map((i, l) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(c, { href: i.href, className: e.footerLink, children: i.label }) }, l)) })
|
|
237
239
|
] })
|
|
238
240
|
] })
|
|
239
241
|
] }),
|
|
@@ -241,41 +243,41 @@ const ue = ({
|
|
|
241
243
|
/* @__PURE__ */ n("div", { className: e.contactSection, children: [
|
|
242
244
|
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
243
245
|
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.visitingAddress", "Besøks adresse") }),
|
|
244
|
-
/* @__PURE__ */ t("div", { className: e.contactContent, children:
|
|
246
|
+
/* @__PURE__ */ t("div", { className: e.contactContent, children: b.map((i, l) => /* @__PURE__ */ t("p", { children: i }, l)) })
|
|
245
247
|
] }),
|
|
246
248
|
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
247
249
|
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.organizationNumber", "Organisasjonsnummer") }),
|
|
248
|
-
/* @__PURE__ */ t("p", { className: e.contactContent, children:
|
|
250
|
+
/* @__PURE__ */ t("p", { className: e.contactContent, children: k })
|
|
249
251
|
] }),
|
|
250
252
|
/* @__PURE__ */ n("div", { className: e.contactColumn, children: [
|
|
251
253
|
/* @__PURE__ */ t("h4", { className: e.contactTitle, children: s("footer.contact.email", "E-post") }),
|
|
252
|
-
/* @__PURE__ */ t("p", { className: e.contactContent, children:
|
|
254
|
+
/* @__PURE__ */ t("p", { className: e.contactContent, children: z })
|
|
253
255
|
] })
|
|
254
256
|
] }),
|
|
255
257
|
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
256
258
|
/* @__PURE__ */ t("div", { className: e.copyrightSection, children: /* @__PURE__ */ n("p", { className: e.copyrightText, children: [
|
|
257
259
|
"© ",
|
|
258
|
-
|
|
260
|
+
y,
|
|
259
261
|
" ",
|
|
260
262
|
s("footer.copyright", "Rødekors")
|
|
261
263
|
] }) }),
|
|
262
264
|
m && /* @__PURE__ */ t("div", { className: e.graphicElementBottomLeft, children: /* @__PURE__ */ t(u, { shape: "angle", position: "bottom-left", size: "md", "aria-hidden": !0 }) })
|
|
263
265
|
] }) }),
|
|
264
266
|
/* @__PURE__ */ t("div", { className: e.whiteSection, children: /* @__PURE__ */ t("div", { className: e.whiteContainer, children: /* @__PURE__ */ n("div", { className: e.whiteContent, children: [
|
|
265
|
-
|
|
267
|
+
$ && (d ? /* @__PURE__ */ t(
|
|
266
268
|
"img",
|
|
267
269
|
{
|
|
268
270
|
src: d,
|
|
269
|
-
alt:
|
|
271
|
+
alt: C,
|
|
270
272
|
className: e.logo,
|
|
271
273
|
loading: "lazy"
|
|
272
274
|
}
|
|
273
|
-
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(
|
|
275
|
+
) : /* @__PURE__ */ t("div", { className: e.logo, children: /* @__PURE__ */ t(P, { className: e.redCrossLogo }) })),
|
|
274
276
|
f && /* @__PURE__ */ t("div", { className: e.slotLarge, children: f })
|
|
275
277
|
] }) }) })
|
|
276
278
|
] });
|
|
277
279
|
};
|
|
278
|
-
function
|
|
280
|
+
function re(p) {
|
|
279
281
|
const a = p;
|
|
280
282
|
return `
|
|
281
283
|
.${a.footer} {
|
|
@@ -713,5 +715,5 @@ function oe(p) {
|
|
|
713
715
|
`;
|
|
714
716
|
}
|
|
715
717
|
export {
|
|
716
|
-
|
|
718
|
+
ve as Footer
|
|
717
719
|
};
|
|
@@ -253,9 +253,9 @@ const N = {
|
|
|
253
253
|
"bottom-right": e.barVertical
|
|
254
254
|
}
|
|
255
255
|
}, v = 34, z = {
|
|
256
|
-
front: a.faceFront,
|
|
257
|
-
top: a.faceTop,
|
|
258
|
-
right: a.faceRight
|
|
256
|
+
front: a.faceFront ?? "",
|
|
257
|
+
top: a.faceTop ?? "",
|
|
258
|
+
right: a.faceRight ?? ""
|
|
259
259
|
};
|
|
260
260
|
function P(t) {
|
|
261
261
|
return t in H;
|