@obosbbl/grunnmuren-react 1.12.4 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/Button.d.ts +2 -2
- package/dist/Chip/Chip.d.ts +1 -1
- package/dist/grunnmuren.mjs +551 -552
- package/dist/hooks/useBlockBackgroundColor.d.ts +1 -1
- package/package.json +22 -22
package/dist/grunnmuren.mjs
CHANGED
|
@@ -1,89 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as a, jsxs as g, Fragment as Z } from "react/jsx-runtime";
|
|
3
|
-
import he, {
|
|
4
|
-
import { ChevronDown as
|
|
5
|
-
import ye from "react-collapsed";
|
|
3
|
+
import he, { createContext as I, useContext as A, useState as k, useCallback as q, useEffect as pe, useId as ee, forwardRef as b, Children as W, isValidElement as te, cloneElement as K, useRef as L, useMemo as M } from "react";
|
|
4
|
+
import { ChevronDown as re, Warning as ne, InfoCircle as ae, LoadingSpinner as Ae, MenuAlt as xe, Close as ve, ChevronRight as Ne, ChevronLeft as we } from "@obosbbl/grunnmuren-icons";
|
|
5
|
+
import { useCollapse as ye } from "react-collapsed";
|
|
6
6
|
import l from "clsx";
|
|
7
7
|
import Y from "@react-hook/merged-ref";
|
|
8
8
|
const y = () => {
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
|
|
13
|
-
var Ie = function() {
|
|
14
|
-
};
|
|
15
|
-
N.noop = Ie;
|
|
16
|
-
function Ce(e) {
|
|
17
|
-
for (var t = [], r = 1; r < arguments.length; r++)
|
|
18
|
-
t[r - 1] = arguments[r];
|
|
19
|
-
e && e.addEventListener && e.addEventListener.apply(e, t);
|
|
20
|
-
}
|
|
21
|
-
N.on = Ce;
|
|
22
|
-
function Ee(e) {
|
|
23
|
-
for (var t = [], r = 1; r < arguments.length; r++)
|
|
24
|
-
t[r - 1] = arguments[r];
|
|
25
|
-
e && e.removeEventListener && e.removeEventListener.apply(e, t);
|
|
26
|
-
}
|
|
27
|
-
N.off = Ee;
|
|
28
|
-
N.isBrowser = typeof window < "u";
|
|
29
|
-
N.isNavigator = typeof navigator < "u";
|
|
30
|
-
Object.defineProperty(oe, "__esModule", { value: !0 });
|
|
31
|
-
var D = he, Re = N, qe = function(e, t) {
|
|
32
|
-
return t !== void 0 ? t : Re.isBrowser ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
33
|
-
}, Le = function(e, t) {
|
|
34
|
-
var r = D.useState(qe(e, t)), n = r[0], o = r[1];
|
|
35
|
-
return D.useEffect(function() {
|
|
36
|
-
var s = !0, i = window.matchMedia(e), c = function() {
|
|
37
|
-
s && o(!!i.matches);
|
|
38
|
-
};
|
|
39
|
-
return i.addListener(c), o(i.matches), function() {
|
|
40
|
-
s = !1, i.removeListener(c);
|
|
41
|
-
};
|
|
42
|
-
}, [e]), n;
|
|
43
|
-
}, se = oe.default = Le;
|
|
44
|
-
const Me = "(prefers-reduced-motion: reduce)", ke = (e = !1) => se(Me, e);
|
|
45
|
-
function ie(e) {
|
|
46
|
-
switch (e) {
|
|
47
|
-
case "gray":
|
|
48
|
-
return "bg-gray-concrete";
|
|
49
|
-
case "green":
|
|
50
|
-
return "bg-green-lightest";
|
|
51
|
-
case "yellow":
|
|
52
|
-
return "bg-yellow";
|
|
53
|
-
case "blue":
|
|
54
|
-
return "bg-blue-lightest";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
const ze = (e) => se("(max-width: 767.9px)", e);
|
|
58
|
-
function z(e, t = !0) {
|
|
59
|
-
const [r, n] = L("indeterminate"), [o, s] = L(), i = q((d) => {
|
|
60
|
-
d.target.checkValidity() && (n("valid"), s(void 0));
|
|
61
|
-
}, []), c = q(
|
|
62
|
-
(d) => {
|
|
63
|
-
r !== "indeterminate" && d.target.checkValidity() && (n("valid"), s(void 0));
|
|
64
|
-
},
|
|
65
|
-
[r]
|
|
66
|
-
), u = q((d) => {
|
|
67
|
-
d.preventDefault();
|
|
68
|
-
const m = d.target.validationMessage;
|
|
69
|
-
s(m), n("invalid");
|
|
70
|
-
}, []);
|
|
71
|
-
return pe(() => {
|
|
72
|
-
var m;
|
|
73
|
-
const { current: d } = e;
|
|
74
|
-
return t && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
|
|
75
|
-
((m = d == null ? void 0 : d.form) == null ? void 0 : m.noValidate) !== !0 && (d == null || d.addEventListener("blur", i), d == null || d.addEventListener("input", c), d == null || d.addEventListener("invalid", u)), () => {
|
|
76
|
-
d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid", u);
|
|
77
|
-
};
|
|
78
|
-
}, [t, c]), { validity: r, validationMessage: o };
|
|
79
|
-
}
|
|
80
|
-
function C(e) {
|
|
81
|
-
const t = ee();
|
|
82
|
-
return e ?? t;
|
|
83
|
-
}
|
|
84
|
-
const Pe = 300, Se = "duration-300", X = (e) => {
|
|
85
|
-
const { className: t, ...r } = e;
|
|
86
|
-
return /* @__PURE__ */ a("div", { className: l(t, "flex flex-col gap-2"), ...r });
|
|
9
|
+
}, Ie = 300, Ce = "duration-300", X = (e) => {
|
|
10
|
+
const { className: r, ...t } = e;
|
|
11
|
+
return /* @__PURE__ */ a("div", { className: l(r, "flex flex-col gap-2"), ...t });
|
|
87
12
|
}, B = I({
|
|
88
13
|
isExpanded: !1,
|
|
89
14
|
setExpanded: y,
|
|
@@ -92,106 +17,174 @@ const Pe = 300, Se = "duration-300", X = (e) => {
|
|
|
92
17
|
// @ts-expect-error noop
|
|
93
18
|
getToggleProps: y,
|
|
94
19
|
onChange: y
|
|
95
|
-
}),
|
|
96
|
-
const
|
|
97
|
-
defaultExpanded:
|
|
20
|
+
}), Ee = (e) => {
|
|
21
|
+
const { className: r, defaultOpen: t, onChange: n = y, open: s, ...o } = e, i = ye({
|
|
22
|
+
defaultExpanded: t,
|
|
98
23
|
isExpanded: s,
|
|
99
|
-
duration:
|
|
100
|
-
hasDisabledAnimation: t,
|
|
24
|
+
duration: Ie,
|
|
101
25
|
easing: "cubic-bezier(0.25, 0.1, 0.25, 1)"
|
|
102
26
|
});
|
|
103
|
-
return /* @__PURE__ */ a(B.Provider, { value: { onChange:
|
|
27
|
+
return /* @__PURE__ */ a(B.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ a(
|
|
104
28
|
"div",
|
|
105
29
|
{
|
|
106
30
|
className: l(
|
|
107
31
|
r,
|
|
108
32
|
"rounded-sm border-b-2 border-l-4 border-solid",
|
|
109
|
-
|
|
33
|
+
i.isExpanded ? "border-l-green-dark" : "border-l-green"
|
|
110
34
|
),
|
|
111
|
-
...
|
|
35
|
+
...o
|
|
112
36
|
}
|
|
113
37
|
) });
|
|
114
|
-
},
|
|
115
|
-
const { children:
|
|
38
|
+
}, Re = (e) => {
|
|
39
|
+
const { children: r, className: t, as: n = "h3", ...s } = e, { getToggleProps: o, onChange: i, isExpanded: c } = A(B), u = o({ onClick: () => i(!c) });
|
|
116
40
|
return /* @__PURE__ */ a(n, { children: /* @__PURE__ */ g(
|
|
117
41
|
"button",
|
|
118
42
|
{
|
|
119
43
|
className: l(
|
|
120
|
-
|
|
44
|
+
t,
|
|
121
45
|
"focus-visible:outline-blue-dark aria-expanded:bg-green-dark group flex min-h-[4rem] w-full items-center justify-between px-5 py-4 text-left text-lg font-semibold focus:outline-none focus-visible:outline-4 focus-visible:outline-offset-0 aria-expanded:text-white"
|
|
122
46
|
),
|
|
123
|
-
...
|
|
47
|
+
...s,
|
|
124
48
|
...u,
|
|
125
|
-
id:
|
|
49
|
+
id: se(u["aria-controls"]),
|
|
126
50
|
children: [
|
|
127
|
-
|
|
51
|
+
r,
|
|
128
52
|
/* @__PURE__ */ a(
|
|
129
|
-
|
|
53
|
+
re,
|
|
130
54
|
{
|
|
131
|
-
className: `shrink-0 text-sm ${
|
|
55
|
+
className: `shrink-0 text-sm ${Ce} group-aria-expanded:rotate-180`
|
|
132
56
|
}
|
|
133
57
|
)
|
|
134
58
|
]
|
|
135
59
|
}
|
|
136
60
|
) });
|
|
137
|
-
},
|
|
138
|
-
const { getCollapseProps:
|
|
139
|
-
return /* @__PURE__ */ a(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
}, le = (e) => e + "toggle";
|
|
149
|
-
X.Item = Ve;
|
|
150
|
-
X.Header = Je;
|
|
151
|
-
X.Content = Oe;
|
|
152
|
-
const mr = (e) => {
|
|
153
|
-
const { className: t, children: r, heading: n, severity: o = "alert", ...s } = e;
|
|
61
|
+
}, qe = (e) => {
|
|
62
|
+
const { getCollapseProps: r } = A(B), { className: t, ...n } = e, s = r();
|
|
63
|
+
return /* @__PURE__ */ a("div", { ...s, "aria-labelledby": se(s.id), children: /* @__PURE__ */ a("div", { className: l(t, "p-5 pb-10"), ...n }) });
|
|
64
|
+
}, se = (e) => e + "toggle";
|
|
65
|
+
X.Item = Ee;
|
|
66
|
+
X.Header = Re;
|
|
67
|
+
X.Content = qe;
|
|
68
|
+
const ct = (e) => {
|
|
69
|
+
const { className: r, children: t, heading: n, severity: s = "alert", ...o } = e;
|
|
154
70
|
return /* @__PURE__ */ a(
|
|
155
71
|
"section",
|
|
156
72
|
{
|
|
157
|
-
className: l(
|
|
158
|
-
"bg-orange-light":
|
|
159
|
-
"bg-red-light":
|
|
73
|
+
className: l(r, "p-4 md:py-8", {
|
|
74
|
+
"bg-orange-light": s === "info",
|
|
75
|
+
"bg-red-light": s === "alert"
|
|
160
76
|
}),
|
|
161
77
|
role: "alert",
|
|
162
|
-
...
|
|
78
|
+
...o,
|
|
163
79
|
children: /* @__PURE__ */ g("div", { className: "flex justify-center", children: [
|
|
164
80
|
/* @__PURE__ */ a(
|
|
165
|
-
|
|
81
|
+
ke,
|
|
166
82
|
{
|
|
167
83
|
className: "mr-4 flex-none md:mr-8 md:text-2xl",
|
|
168
|
-
severity:
|
|
84
|
+
severity: s
|
|
169
85
|
}
|
|
170
86
|
),
|
|
171
87
|
/* @__PURE__ */ g("div", { className: "w-prose flex-initial", children: [
|
|
172
88
|
/* @__PURE__ */ a("h2", { className: "h4 mb-2", children: n }),
|
|
173
|
-
|
|
89
|
+
t
|
|
174
90
|
] })
|
|
175
91
|
] })
|
|
176
92
|
}
|
|
177
93
|
);
|
|
178
|
-
},
|
|
94
|
+
}, ke = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ a(ne, { className: l(r, "text-red") }) : /* @__PURE__ */ a(ae, { className: l(r, "text-orange") });
|
|
95
|
+
var oe = {}, N = {};
|
|
96
|
+
Object.defineProperty(N, "__esModule", { value: !0 });
|
|
97
|
+
N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
|
|
98
|
+
var Le = function() {
|
|
99
|
+
};
|
|
100
|
+
N.noop = Le;
|
|
101
|
+
function Me(e) {
|
|
102
|
+
for (var r = [], t = 1; t < arguments.length; t++)
|
|
103
|
+
r[t - 1] = arguments[t];
|
|
104
|
+
e && e.addEventListener && e.addEventListener.apply(e, r);
|
|
105
|
+
}
|
|
106
|
+
N.on = Me;
|
|
107
|
+
function ze(e) {
|
|
108
|
+
for (var r = [], t = 1; t < arguments.length; t++)
|
|
109
|
+
r[t - 1] = arguments[t];
|
|
110
|
+
e && e.removeEventListener && e.removeEventListener.apply(e, r);
|
|
111
|
+
}
|
|
112
|
+
N.off = ze;
|
|
113
|
+
N.isBrowser = typeof window < "u";
|
|
114
|
+
N.isNavigator = typeof navigator < "u";
|
|
115
|
+
Object.defineProperty(oe, "__esModule", { value: !0 });
|
|
116
|
+
var D = he, Pe = N, Se = function(e, r) {
|
|
117
|
+
return r !== void 0 ? r : Pe.isBrowser ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
118
|
+
}, Ve = function(e, r) {
|
|
119
|
+
var t = D.useState(Se(e, r)), n = t[0], s = t[1];
|
|
120
|
+
return D.useEffect(function() {
|
|
121
|
+
var o = !0, i = window.matchMedia(e), c = function() {
|
|
122
|
+
o && s(!!i.matches);
|
|
123
|
+
};
|
|
124
|
+
return i.addListener(c), s(i.matches), function() {
|
|
125
|
+
o = !1, i.removeListener(c);
|
|
126
|
+
};
|
|
127
|
+
}, [e]), n;
|
|
128
|
+
}, ie = oe.default = Ve;
|
|
129
|
+
const Je = "(prefers-reduced-motion: reduce)", mt = (e = !1) => ie(Je, e);
|
|
130
|
+
function le(e) {
|
|
131
|
+
switch (e) {
|
|
132
|
+
case "gray":
|
|
133
|
+
return "bg-gray-lightest";
|
|
134
|
+
case "green":
|
|
135
|
+
case "mint":
|
|
136
|
+
return "bg-mint-light";
|
|
137
|
+
case "yellow":
|
|
138
|
+
return "bg-yellow";
|
|
139
|
+
case "blue":
|
|
140
|
+
case "sky":
|
|
141
|
+
return "bg-sky-light";
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const Oe = (e) => ie("(max-width: 767.9px)", e);
|
|
145
|
+
function z(e, r = !0) {
|
|
146
|
+
const [t, n] = k("indeterminate"), [s, o] = k(), i = q((d) => {
|
|
147
|
+
d.target.checkValidity() && (n("valid"), o(void 0));
|
|
148
|
+
}, []), c = q(
|
|
149
|
+
(d) => {
|
|
150
|
+
t !== "indeterminate" && d.target.checkValidity() && (n("valid"), o(void 0));
|
|
151
|
+
},
|
|
152
|
+
[t]
|
|
153
|
+
), u = q((d) => {
|
|
154
|
+
d.preventDefault();
|
|
155
|
+
const m = d.target.validationMessage;
|
|
156
|
+
o(m), n("invalid");
|
|
157
|
+
}, []);
|
|
158
|
+
return pe(() => {
|
|
159
|
+
var m;
|
|
160
|
+
const { current: d } = e;
|
|
161
|
+
return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
|
|
162
|
+
((m = d == null ? void 0 : d.form) == null ? void 0 : m.noValidate) !== !0 && (d == null || d.addEventListener("blur", i), d == null || d.addEventListener("input", c), d == null || d.addEventListener("invalid", u)), () => {
|
|
163
|
+
d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid", u);
|
|
164
|
+
};
|
|
165
|
+
}, [r, c]), { validity: t, validationMessage: s };
|
|
166
|
+
}
|
|
167
|
+
function C(e) {
|
|
168
|
+
const r = ee();
|
|
169
|
+
return e ?? r;
|
|
170
|
+
}
|
|
171
|
+
const ut = (e) => {
|
|
179
172
|
const {
|
|
180
|
-
bgColor:
|
|
181
|
-
className:
|
|
173
|
+
bgColor: r,
|
|
174
|
+
className: t,
|
|
182
175
|
children: n,
|
|
183
|
-
heading:
|
|
184
|
-
image:
|
|
176
|
+
heading: s,
|
|
177
|
+
image: o,
|
|
185
178
|
...i
|
|
186
|
-
} = e, c =
|
|
187
|
-
return /* @__PURE__ */ a("article", { className: l(
|
|
188
|
-
|
|
179
|
+
} = e, c = le(r);
|
|
180
|
+
return /* @__PURE__ */ a("article", { className: l(t, c, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ g("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
|
|
181
|
+
o,
|
|
189
182
|
/* @__PURE__ */ g("div", { className: "max-w-prose", children: [
|
|
190
|
-
|
|
183
|
+
s && /* @__PURE__ */ a("h2", { className: "h3 mb-4", children: s }),
|
|
191
184
|
n
|
|
192
185
|
] })
|
|
193
186
|
] }) });
|
|
194
|
-
},
|
|
187
|
+
}, ft = (e) => /* @__PURE__ */ a(
|
|
195
188
|
"img",
|
|
196
189
|
{
|
|
197
190
|
loading: "lazy",
|
|
@@ -199,33 +192,35 @@ const mr = (e) => {
|
|
|
199
192
|
className: "w-20 flex-none self-center md:w-32 md:self-start",
|
|
200
193
|
...e
|
|
201
194
|
}
|
|
202
|
-
),
|
|
195
|
+
), Te = {
|
|
203
196
|
"standard-primary": "bg-green border-green text-white",
|
|
204
197
|
"standard-secondary": "bg-white border-green text-black",
|
|
205
|
-
"
|
|
206
|
-
"
|
|
198
|
+
"mint-primary": "bg-mint border-mint text-black",
|
|
199
|
+
"mint-secondary": "bg-transparent border-mint text-mint",
|
|
207
200
|
"white-primary": "bg-white border-white text-black",
|
|
208
|
-
"white-secondary": "bg-transparent border-white text-white"
|
|
209
|
-
|
|
201
|
+
"white-secondary": "bg-transparent border-white text-white",
|
|
202
|
+
"light-green-primary": "bg-green-light border-green-light text-black",
|
|
203
|
+
"light-green-secondary": "bg-transparent border-green-light text-green-light"
|
|
204
|
+
}, gt = b((e, r) => {
|
|
210
205
|
const {
|
|
211
|
-
children:
|
|
206
|
+
children: t,
|
|
212
207
|
className: n,
|
|
213
|
-
color:
|
|
214
|
-
href:
|
|
208
|
+
color: s,
|
|
209
|
+
href: o,
|
|
215
210
|
loading: i,
|
|
216
211
|
type: c = "button",
|
|
217
212
|
variant: u = "primary",
|
|
218
213
|
...d
|
|
219
|
-
} = e, m = A(P), f =
|
|
220
|
-
return /* @__PURE__ */ a(Z, { children:
|
|
214
|
+
} = e, m = A(P), f = Te[`${s ?? m}-${u}`], p = l(n, f, "button"), v = i ? /* @__PURE__ */ a(je, { children: t }) : t;
|
|
215
|
+
return /* @__PURE__ */ a(Z, { children: o ? /* @__PURE__ */ a(
|
|
221
216
|
"a",
|
|
222
217
|
{
|
|
223
218
|
"aria-busy": i ? !0 : void 0,
|
|
224
219
|
...d,
|
|
225
|
-
href:
|
|
226
|
-
ref:
|
|
220
|
+
href: o,
|
|
221
|
+
ref: r,
|
|
227
222
|
className: p,
|
|
228
|
-
children:
|
|
223
|
+
children: v
|
|
229
224
|
}
|
|
230
225
|
) : /* @__PURE__ */ a(
|
|
231
226
|
"button",
|
|
@@ -233,166 +228,166 @@ const mr = (e) => {
|
|
|
233
228
|
"aria-busy": i ? !0 : void 0,
|
|
234
229
|
...d,
|
|
235
230
|
type: c,
|
|
236
|
-
ref:
|
|
231
|
+
ref: r,
|
|
237
232
|
className: p,
|
|
238
|
-
children:
|
|
233
|
+
children: v
|
|
239
234
|
}
|
|
240
235
|
) });
|
|
241
|
-
}),
|
|
236
|
+
}), je = (e) => /* @__PURE__ */ g(Z, { children: [
|
|
242
237
|
de(e.children),
|
|
243
238
|
/* @__PURE__ */ a(
|
|
244
239
|
"span",
|
|
245
240
|
{
|
|
246
|
-
className: "!visible absolute
|
|
241
|
+
className: "!visible absolute bottom-1 left-1 right-1 top-1 grid place-items-center overflow-hidden bg-inherit",
|
|
247
242
|
"aria-hidden": !0,
|
|
248
243
|
children: /* @__PURE__ */ a(Ae, { className: "animate-spin" })
|
|
249
244
|
}
|
|
250
245
|
)
|
|
251
246
|
] });
|
|
252
247
|
function de(e) {
|
|
253
|
-
return W.map(e, (
|
|
254
|
-
if (!
|
|
255
|
-
return typeof
|
|
256
|
-
if (
|
|
257
|
-
const
|
|
258
|
-
children: de(
|
|
248
|
+
return W.map(e, (r) => {
|
|
249
|
+
if (!te(r))
|
|
250
|
+
return typeof r == "string" ? /* @__PURE__ */ a("span", { children: r }) : r;
|
|
251
|
+
if (r.props.children) {
|
|
252
|
+
const t = {
|
|
253
|
+
children: de(r.props.children)
|
|
259
254
|
};
|
|
260
|
-
|
|
255
|
+
r = K(r, t);
|
|
261
256
|
}
|
|
262
|
-
return
|
|
257
|
+
return r;
|
|
263
258
|
});
|
|
264
259
|
}
|
|
265
|
-
const P = I("standard"), ce = I(!0),
|
|
260
|
+
const P = I("standard"), ce = I(!0), Fe = (e, r) => {
|
|
266
261
|
const {
|
|
267
|
-
as:
|
|
262
|
+
as: t = "div",
|
|
268
263
|
body: n,
|
|
269
|
-
className:
|
|
270
|
-
image:
|
|
264
|
+
className: s,
|
|
265
|
+
image: o,
|
|
271
266
|
rightAlignBody: i = !0,
|
|
272
267
|
...c
|
|
273
268
|
} = e;
|
|
274
269
|
return /* @__PURE__ */ g(
|
|
275
|
-
|
|
270
|
+
t,
|
|
276
271
|
{
|
|
277
272
|
className: l(
|
|
278
|
-
|
|
273
|
+
s,
|
|
279
274
|
"grid gap-8 md:grid-flow-col md:grid-cols-[50%,50%] md:gap-0"
|
|
280
275
|
),
|
|
281
276
|
...c,
|
|
282
|
-
ref:
|
|
277
|
+
ref: r,
|
|
283
278
|
children: [
|
|
284
|
-
/* @__PURE__ */ a(ce.Provider, { value: i, children:
|
|
279
|
+
/* @__PURE__ */ a(ce.Provider, { value: i, children: o }),
|
|
285
280
|
n
|
|
286
281
|
]
|
|
287
282
|
}
|
|
288
283
|
);
|
|
289
|
-
},
|
|
290
|
-
(e,
|
|
291
|
-
const { className:
|
|
284
|
+
}, Ze = b(Fe), We = b(
|
|
285
|
+
(e, r) => {
|
|
286
|
+
const { className: t, ...n } = e;
|
|
292
287
|
return /* @__PURE__ */ a(
|
|
293
288
|
"div",
|
|
294
289
|
{
|
|
295
|
-
className: l(
|
|
296
|
-
ref:
|
|
290
|
+
className: l(t, "md:mx-18 self-center"),
|
|
291
|
+
ref: r,
|
|
297
292
|
...n
|
|
298
293
|
}
|
|
299
294
|
);
|
|
300
295
|
}
|
|
301
|
-
),
|
|
302
|
-
(e,
|
|
303
|
-
const { className:
|
|
304
|
-
|
|
296
|
+
), Ke = b(
|
|
297
|
+
(e, r) => {
|
|
298
|
+
const { className: t, children: n, ...s } = e, o = A(ce), i = l(
|
|
299
|
+
t,
|
|
305
300
|
"max-md:rounded-b-3xl w-full",
|
|
306
|
-
|
|
301
|
+
o ? "md:rounded-r-3xl" : "md:rounded-l-3xl md:order-1"
|
|
307
302
|
);
|
|
308
|
-
if (
|
|
303
|
+
if (te(n)) {
|
|
309
304
|
const c = W.only(n);
|
|
310
305
|
return K(c, {
|
|
311
306
|
// @ts-expect-error assume className prop is allowed
|
|
312
307
|
className: i,
|
|
313
|
-
ref:
|
|
314
|
-
...
|
|
308
|
+
ref: r,
|
|
309
|
+
...s
|
|
315
310
|
});
|
|
316
311
|
}
|
|
317
|
-
return /* @__PURE__ */ a("img", { className: i, ref:
|
|
312
|
+
return /* @__PURE__ */ a("img", { className: i, ref: r, ...s });
|
|
318
313
|
}
|
|
319
|
-
),
|
|
320
|
-
Body:
|
|
321
|
-
Image:
|
|
322
|
-
}),
|
|
314
|
+
), bt = Object.assign({}, Ze, {
|
|
315
|
+
Body: We,
|
|
316
|
+
Image: Ke
|
|
317
|
+
}), Ye = (e, r) => {
|
|
323
318
|
const {
|
|
324
|
-
as:
|
|
319
|
+
as: t = "div",
|
|
325
320
|
className: n,
|
|
326
|
-
bgColor:
|
|
327
|
-
...
|
|
321
|
+
bgColor: s = "white",
|
|
322
|
+
...o
|
|
328
323
|
} = e;
|
|
329
324
|
return /* @__PURE__ */ a(
|
|
330
|
-
|
|
325
|
+
t,
|
|
331
326
|
{
|
|
332
327
|
className: l(n, "relative overflow-hidden rounded-3xl", {
|
|
333
|
-
"border-2 border-solid bg-white":
|
|
334
|
-
"bg-gray-light":
|
|
328
|
+
"border-2 border-solid bg-white": s === "white",
|
|
329
|
+
"bg-gray-light": s === "gray"
|
|
335
330
|
}),
|
|
336
|
-
...
|
|
337
|
-
ref:
|
|
331
|
+
...o,
|
|
332
|
+
ref: r
|
|
338
333
|
}
|
|
339
334
|
);
|
|
340
|
-
},
|
|
341
|
-
(e,
|
|
342
|
-
const { className:
|
|
335
|
+
}, ht = b(Ye), pt = b(
|
|
336
|
+
(e, r) => {
|
|
337
|
+
const { className: t, ...n } = e;
|
|
343
338
|
return /* @__PURE__ */ a(
|
|
344
339
|
"img",
|
|
345
340
|
{
|
|
346
|
-
className: l(
|
|
341
|
+
className: l(t, "w-full object-cover"),
|
|
347
342
|
loading: "lazy",
|
|
348
343
|
...n,
|
|
349
|
-
ref:
|
|
344
|
+
ref: r
|
|
350
345
|
}
|
|
351
346
|
);
|
|
352
347
|
}
|
|
353
|
-
),
|
|
354
|
-
(e,
|
|
355
|
-
const { bgColor:
|
|
356
|
-
return /* @__PURE__ */ a("div", { className: l(
|
|
348
|
+
), At = b(
|
|
349
|
+
(e, r) => {
|
|
350
|
+
const { bgColor: t, className: n, ...s } = e, o = le(t);
|
|
351
|
+
return /* @__PURE__ */ a("div", { className: l(o, n), children: /* @__PURE__ */ a(
|
|
357
352
|
"div",
|
|
358
353
|
{
|
|
359
354
|
className: "container grid grid-cols-1 gap-12 py-16 md:grid-cols-2 md:py-20 lg:py-24",
|
|
360
|
-
...
|
|
361
|
-
ref:
|
|
355
|
+
...s,
|
|
356
|
+
ref: r
|
|
362
357
|
}
|
|
363
358
|
) });
|
|
364
359
|
}
|
|
365
|
-
),
|
|
366
|
-
(e,
|
|
367
|
-
const { className:
|
|
368
|
-
return /* @__PURE__ */ a("div", { className: l(
|
|
360
|
+
), xt = b(
|
|
361
|
+
(e, r) => {
|
|
362
|
+
const { className: t, ...n } = e;
|
|
363
|
+
return /* @__PURE__ */ a("div", { className: l(t, "p-8 md:px-10"), ...n, ref: r });
|
|
369
364
|
}
|
|
370
|
-
),
|
|
371
|
-
const { className:
|
|
365
|
+
), vt = b((e, r) => {
|
|
366
|
+
const { className: t, ...n } = e;
|
|
372
367
|
return /* @__PURE__ */ a(
|
|
373
368
|
"a",
|
|
374
369
|
{
|
|
375
370
|
className: l(
|
|
376
|
-
|
|
377
|
-
"no-underline before:absolute before:
|
|
371
|
+
t,
|
|
372
|
+
"no-underline before:absolute before:left-0 before:top-0 before:block before:h-full before:w-full hover:underline"
|
|
378
373
|
),
|
|
379
|
-
ref:
|
|
374
|
+
ref: r,
|
|
380
375
|
...n
|
|
381
376
|
}
|
|
382
377
|
);
|
|
383
|
-
}),
|
|
384
|
-
(e,
|
|
378
|
+
}), Nt = b(
|
|
379
|
+
(e, r) => {
|
|
385
380
|
const {
|
|
386
|
-
children:
|
|
381
|
+
children: t,
|
|
387
382
|
className: n,
|
|
388
|
-
error:
|
|
389
|
-
id:
|
|
383
|
+
error: s,
|
|
384
|
+
id: o,
|
|
390
385
|
disableValidation: i = !1,
|
|
391
386
|
...c
|
|
392
|
-
} = e, u =
|
|
387
|
+
} = e, u = L(null), { validity: d, validationMessage: m } = z(
|
|
393
388
|
u,
|
|
394
389
|
!i
|
|
395
|
-
), h = C(
|
|
390
|
+
), h = C(o), f = h + "err", p = s || m;
|
|
396
391
|
return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
|
|
397
392
|
/* @__PURE__ */ g("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
|
|
398
393
|
/* @__PURE__ */ a(
|
|
@@ -402,139 +397,143 @@ const P = I("standard"), ce = I(!0), Ze = (e, t) => {
|
|
|
402
397
|
className: l(
|
|
403
398
|
"checkbox checked:bg-green checked:border-green grid h-[1.25em] w-[1.25em] flex-none translate-y-[0.1em] cursor-pointer appearance-none place-content-center rounded border-2 border-solid bg-white text-white focus:outline-none focus:ring-2",
|
|
404
399
|
{
|
|
405
|
-
"border-gray-dark focus:ring-black": !
|
|
406
|
-
"border-red focus:ring-red": !!
|
|
400
|
+
"border-gray-dark focus:ring-black": !s,
|
|
401
|
+
"border-red focus:ring-red": !!s
|
|
407
402
|
}
|
|
408
403
|
),
|
|
409
|
-
ref:
|
|
404
|
+
ref: r,
|
|
410
405
|
type: "checkbox",
|
|
411
406
|
...c,
|
|
412
407
|
"aria-describedby": p ? f : void 0,
|
|
413
|
-
"aria-invalid": !!
|
|
408
|
+
"aria-invalid": !!s || d === "invalid"
|
|
414
409
|
}
|
|
415
410
|
),
|
|
416
|
-
|
|
411
|
+
t
|
|
417
412
|
] }),
|
|
418
413
|
p && /* @__PURE__ */ a(E, { id: f, children: p })
|
|
419
414
|
] });
|
|
420
415
|
}
|
|
421
|
-
),
|
|
422
|
-
|
|
416
|
+
), Xe = {
|
|
417
|
+
sky: "bg-sky border-sky",
|
|
423
418
|
"red-light": "bg-red-light border-red-light",
|
|
419
|
+
mint: "bg-mint border-mint",
|
|
420
|
+
"orange-light": "bg-orange-light border-orange-light",
|
|
424
421
|
"green-light": "bg-green-light border-green-light",
|
|
425
|
-
"
|
|
426
|
-
},
|
|
427
|
-
|
|
422
|
+
"blue-light": "bg-blue-light border-blue-light"
|
|
423
|
+
}, Be = {
|
|
424
|
+
sky: "text-blue-dark",
|
|
428
425
|
"red-light": "text-red",
|
|
426
|
+
mint: "text-green",
|
|
427
|
+
"orange-light": "text-black",
|
|
429
428
|
"green-light": "text-green",
|
|
430
|
-
"
|
|
431
|
-
},
|
|
432
|
-
const { className:
|
|
429
|
+
"blue-light": "text-blue-dark"
|
|
430
|
+
}, wt = (e) => {
|
|
431
|
+
const { className: r, color: t, icon: n, children: s, variant: o = "filled" } = e, i = t && Xe[t], c = t && Be[t];
|
|
433
432
|
return /* @__PURE__ */ g(
|
|
434
433
|
"div",
|
|
435
434
|
{
|
|
436
435
|
className: l(
|
|
437
436
|
"inline-flex items-center gap-0.5 overflow-hidden rounded-lg border-2 text-sm font-semibold",
|
|
438
437
|
i,
|
|
439
|
-
|
|
438
|
+
r
|
|
440
439
|
),
|
|
441
440
|
children: [
|
|
442
441
|
n && /* @__PURE__ */ a("div", { className: l("px-3 py-2", c), children: n }),
|
|
443
442
|
/* @__PURE__ */ a(
|
|
444
443
|
"div",
|
|
445
444
|
{
|
|
446
|
-
className: l("flex-1 py-2
|
|
447
|
-
"bg-white":
|
|
445
|
+
className: l("flex-1 px-4 py-2", {
|
|
446
|
+
"bg-white": o === "outline"
|
|
448
447
|
}),
|
|
449
|
-
children:
|
|
448
|
+
children: s
|
|
450
449
|
}
|
|
451
450
|
)
|
|
452
451
|
]
|
|
453
452
|
}
|
|
454
453
|
);
|
|
455
|
-
},
|
|
456
|
-
const { className:
|
|
454
|
+
}, yt = (e) => {
|
|
455
|
+
const { className: r, children: t, ...n } = e;
|
|
457
456
|
return /* @__PURE__ */ a(P.Provider, { value: "white", children: /* @__PURE__ */ a(
|
|
458
457
|
"footer",
|
|
459
458
|
{
|
|
460
459
|
className: l(
|
|
461
|
-
|
|
460
|
+
r,
|
|
462
461
|
// calculated height for psuedo element fixes rendering artifict that sometimes occurs on specific screen sizes and zoom levels
|
|
463
462
|
"bg-blue pt-18 relative pb-12 text-white before:absolute before:-top-px before:left-0 before:right-0 before:h-[calc(1.5rem_+_1px)] before:rounded-b-3xl before:bg-white "
|
|
464
463
|
),
|
|
465
464
|
...n,
|
|
466
|
-
children: /* @__PURE__ */ a("div", { className: "container", children:
|
|
465
|
+
children: /* @__PURE__ */ a("div", { className: "container", children: t })
|
|
467
466
|
}
|
|
468
467
|
) });
|
|
469
|
-
},
|
|
470
|
-
const { heading:
|
|
468
|
+
}, It = (e) => {
|
|
469
|
+
const { heading: r, children: t, className: n, ...s } = e;
|
|
471
470
|
return /* @__PURE__ */ g(
|
|
472
471
|
"form",
|
|
473
472
|
{
|
|
474
473
|
className: l(
|
|
475
474
|
n,
|
|
476
|
-
"border-blue-dark block overflow-hidden rounded-
|
|
475
|
+
"border-blue-dark block overflow-hidden rounded-b-lg rounded-t-3xl border-2"
|
|
477
476
|
),
|
|
478
|
-
...
|
|
477
|
+
...s,
|
|
479
478
|
children: [
|
|
480
|
-
|
|
481
|
-
/* @__PURE__ */ a("div", { className: "p-6 md:p-10", children:
|
|
479
|
+
r && /* @__PURE__ */ a(Qe, { children: r }),
|
|
480
|
+
/* @__PURE__ */ a("div", { className: "p-6 md:p-10", children: t })
|
|
482
481
|
]
|
|
483
482
|
}
|
|
484
483
|
);
|
|
485
|
-
},
|
|
486
|
-
const { className:
|
|
484
|
+
}, Qe = (e) => {
|
|
485
|
+
const { className: r, ...t } = e;
|
|
487
486
|
return /* @__PURE__ */ a(
|
|
488
487
|
"h2",
|
|
489
488
|
{
|
|
490
489
|
className: l(
|
|
491
|
-
|
|
490
|
+
r,
|
|
492
491
|
"bg-blue-dark p-6 text-xl font-bold text-white md:px-10 md:py-8 md:text-2xl"
|
|
493
492
|
),
|
|
494
|
-
...
|
|
493
|
+
...t
|
|
495
494
|
}
|
|
496
495
|
);
|
|
497
|
-
},
|
|
498
|
-
const { className:
|
|
496
|
+
}, Ct = (e) => {
|
|
497
|
+
const { className: r, ...t } = e;
|
|
499
498
|
return /* @__PURE__ */ a(
|
|
500
499
|
"div",
|
|
501
500
|
{
|
|
502
501
|
"aria-live": "polite",
|
|
503
502
|
className: l(
|
|
504
|
-
|
|
503
|
+
r,
|
|
505
504
|
"border-red bg-red-light rounded-lg border-2 p-6 text-sm"
|
|
506
505
|
),
|
|
507
|
-
...
|
|
506
|
+
...t,
|
|
508
507
|
children: "Beklager! Noe gikk dessverre galt under innesendingen av skjemaet. Prøv gjerne igjen om en stund."
|
|
509
508
|
}
|
|
510
509
|
);
|
|
511
510
|
}, E = (e) => {
|
|
512
|
-
const { children:
|
|
511
|
+
const { children: r, className: t, ...n } = e;
|
|
513
512
|
return /* @__PURE__ */ g(
|
|
514
513
|
"div",
|
|
515
514
|
{
|
|
516
515
|
className: l(
|
|
517
|
-
|
|
518
|
-
"bg-red-light text-red flex items-center gap-2 rounded py-1
|
|
516
|
+
t,
|
|
517
|
+
"bg-red-light text-red flex items-center gap-2 rounded px-2 py-1 text-sm"
|
|
519
518
|
),
|
|
520
519
|
"aria-live": "polite",
|
|
521
520
|
...n,
|
|
522
521
|
children: [
|
|
523
522
|
/* @__PURE__ */ a(ne, { className: "text-red flex-shrink-0" }),
|
|
524
|
-
|
|
523
|
+
r
|
|
525
524
|
]
|
|
526
525
|
}
|
|
527
526
|
);
|
|
528
527
|
}, S = (e) => {
|
|
529
|
-
const { className:
|
|
530
|
-
return /* @__PURE__ */ a("div", { className: l(
|
|
528
|
+
const { className: r, children: t, ...n } = e;
|
|
529
|
+
return /* @__PURE__ */ a("div", { className: l(r, "text-gray-dark text-sm"), ...n, children: t });
|
|
531
530
|
}, V = (e) => {
|
|
532
|
-
const { className:
|
|
531
|
+
const { className: r, children: t, isRequired: n, isInvalid: s, ...o } = e;
|
|
533
532
|
return /* @__PURE__ */ g(
|
|
534
533
|
"label",
|
|
535
534
|
{
|
|
536
|
-
className: l(
|
|
537
|
-
...
|
|
535
|
+
className: l(r, "block cursor-pointer font-semibold"),
|
|
536
|
+
...o,
|
|
538
537
|
children: [
|
|
539
538
|
n && /* @__PURE__ */ a(
|
|
540
539
|
"span",
|
|
@@ -542,25 +541,25 @@ const P = I("standard"), ce = I(!0), Ze = (e, t) => {
|
|
|
542
541
|
"aria-hidden": !0,
|
|
543
542
|
className: l(
|
|
544
543
|
"mr-1 select-none",
|
|
545
|
-
|
|
544
|
+
s ? "text-red" : "text-blue"
|
|
546
545
|
),
|
|
547
546
|
children: "*"
|
|
548
547
|
}
|
|
549
548
|
),
|
|
550
|
-
|
|
549
|
+
t
|
|
551
550
|
]
|
|
552
551
|
}
|
|
553
552
|
);
|
|
554
|
-
},
|
|
555
|
-
const { className:
|
|
553
|
+
}, Et = (e) => {
|
|
554
|
+
const { className: r, heading: t, text: n, ...s } = e;
|
|
556
555
|
return /* @__PURE__ */ g(
|
|
557
556
|
"div",
|
|
558
557
|
{
|
|
559
558
|
className: l(
|
|
560
|
-
|
|
561
|
-
"bg-gray-
|
|
559
|
+
r,
|
|
560
|
+
"bg-gray-lightest flex flex-col gap-8 p-8 text-center"
|
|
562
561
|
),
|
|
563
|
-
...
|
|
562
|
+
...s,
|
|
564
563
|
children: [
|
|
565
564
|
/* @__PURE__ */ a(
|
|
566
565
|
"img",
|
|
@@ -572,7 +571,7 @@ const P = I("standard"), ce = I(!0), Ze = (e, t) => {
|
|
|
572
571
|
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmUAAAIgCAMAAADzxO7KAAABzlBMVEVHcEwfq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Aep84eqc8fq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9AeqM4fq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9AZT5oZQpMaU50cfr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l+uIi4O7u1T+8PcKoRF4YY0moRFwbzQJjUB5G82PiYuDuzfriIuDu+8IjYC/9wiNgL8LhEbA3TtXCI3A82w0iYuDe6NJaAT8vF5PaATc3SM0Av4uERoBd2e+JS4O/o3mJSp/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQzf4fvVAR8mmt7fEAAAAASUVORK5CYII="
|
|
573
572
|
}
|
|
574
573
|
),
|
|
575
|
-
|
|
574
|
+
t && /* @__PURE__ */ a("h2", { className: "text-blue text-2xl", children: t }),
|
|
576
575
|
n && /* @__PURE__ */ a("p", { className: "text-lg", children: n })
|
|
577
576
|
]
|
|
578
577
|
}
|
|
@@ -581,31 +580,31 @@ const P = I("standard"), ce = I(!0), Ze = (e, t) => {
|
|
|
581
580
|
function me(e) {
|
|
582
581
|
return e !== "vertical-split" && e !== "below-center" && e !== "below-left";
|
|
583
582
|
}
|
|
584
|
-
const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }),
|
|
583
|
+
const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), Rt = b((e, r) => {
|
|
585
584
|
const {
|
|
586
|
-
bgColor:
|
|
585
|
+
bgColor: t = "white",
|
|
587
586
|
children: n,
|
|
588
|
-
className:
|
|
589
|
-
contentPosition:
|
|
587
|
+
className: s,
|
|
588
|
+
contentPosition: o = "below-center",
|
|
590
589
|
image: i,
|
|
591
590
|
...c
|
|
592
|
-
} = e, u = i != null, d = u ?
|
|
591
|
+
} = e, u = i != null, d = u ? o : "below-center", m = M(
|
|
593
592
|
() => ({
|
|
594
|
-
bgColor:
|
|
593
|
+
bgColor: t,
|
|
595
594
|
contentPosition: d,
|
|
596
595
|
hasImage: u
|
|
597
596
|
}),
|
|
598
|
-
[
|
|
597
|
+
[t, d, u]
|
|
599
598
|
);
|
|
600
599
|
return /* @__PURE__ */ a(
|
|
601
600
|
P.Provider,
|
|
602
601
|
{
|
|
603
|
-
value:
|
|
602
|
+
value: t === "white" ? "standard" : "mint",
|
|
604
603
|
children: /* @__PURE__ */ a(J.Provider, { value: m, children: /* @__PURE__ */ g(
|
|
605
604
|
"div",
|
|
606
605
|
{
|
|
607
606
|
className: l(
|
|
608
|
-
|
|
607
|
+
s,
|
|
609
608
|
// disable padding on small screens so the hero image is flush with the screen edges
|
|
610
609
|
"container px-0 md:grid lg:px-4",
|
|
611
610
|
{
|
|
@@ -614,7 +613,7 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
614
613
|
),
|
|
615
614
|
style: me(d) ? { gridTemplateAreas: '"hero"' } : void 0,
|
|
616
615
|
...c,
|
|
617
|
-
ref:
|
|
616
|
+
ref: r,
|
|
618
617
|
children: [
|
|
619
618
|
i,
|
|
620
619
|
n
|
|
@@ -623,19 +622,19 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
623
622
|
) })
|
|
624
623
|
}
|
|
625
624
|
);
|
|
626
|
-
}),
|
|
627
|
-
(e,
|
|
628
|
-
const { contentPosition:
|
|
625
|
+
}), qt = b(
|
|
626
|
+
(e, r) => {
|
|
627
|
+
const { contentPosition: t } = A(J);
|
|
629
628
|
return /* @__PURE__ */ g(
|
|
630
629
|
"picture",
|
|
631
630
|
{
|
|
632
631
|
className: l(e.className, "aspect-w-6 aspect-h-7 block", {
|
|
633
|
-
"sm:aspect-w-8 sm:aspect-h-4":
|
|
632
|
+
"sm:aspect-w-8 sm:aspect-h-4": t !== "vertical-split",
|
|
634
633
|
// calculate a square aspect ratio
|
|
635
|
-
"sm:aspect-w-8 sm:aspect-h-8":
|
|
634
|
+
"sm:aspect-w-8 sm:aspect-h-8": t === "vertical-split"
|
|
636
635
|
}),
|
|
637
|
-
style:
|
|
638
|
-
ref:
|
|
636
|
+
style: t !== "vertical-split" && t !== "below-center" && t !== "below-left" ? { gridArea: "hero" } : void 0,
|
|
637
|
+
ref: r,
|
|
639
638
|
children: [
|
|
640
639
|
/* @__PURE__ */ a("source", { media: "(min-width: 768px)", srcSet: e.mdSrc }),
|
|
641
640
|
/* @__PURE__ */ a(
|
|
@@ -651,32 +650,32 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
651
650
|
}
|
|
652
651
|
);
|
|
653
652
|
}
|
|
654
|
-
),
|
|
655
|
-
(e,
|
|
656
|
-
const { bgColor:
|
|
653
|
+
), kt = b(
|
|
654
|
+
(e, r) => {
|
|
655
|
+
const { bgColor: t, contentPosition: n, hasImage: s } = A(J), { children: o, className: i, heading: c, description: u, ...d } = e, m = me(n);
|
|
657
656
|
return /* @__PURE__ */ g(
|
|
658
657
|
"div",
|
|
659
658
|
{
|
|
660
659
|
className: l(
|
|
661
660
|
i,
|
|
662
|
-
"relative grid grid-flow-row grid-cols-[minmax(auto,_37rem)] content-center gap-6 rounded-3xl py-10
|
|
661
|
+
"relative grid grid-flow-row grid-cols-[minmax(auto,_37rem)] content-center gap-6 rounded-3xl px-6 py-10 text-center max-md:mx-4 md:p-12",
|
|
663
662
|
{
|
|
664
663
|
// On mobile we use negative margin on the content to pull the content up into the image
|
|
665
|
-
"max-md:-mt-18":
|
|
666
|
-
"text-white":
|
|
667
|
-
"bg-green-dark":
|
|
668
|
-
"bg-blue-dark":
|
|
669
|
-
"bg-white":
|
|
664
|
+
"max-md:-mt-18": s,
|
|
665
|
+
"text-white": t !== "white",
|
|
666
|
+
"bg-green-dark": t === "green",
|
|
667
|
+
"bg-blue-dark": t === "blue",
|
|
668
|
+
"bg-white": t === "white",
|
|
670
669
|
// vertical split
|
|
671
670
|
// vertically center the content, remove the border radius on the edge, add some negative margin to pull the image beneath the hero content, left align the content
|
|
672
|
-
"md:z-10 md:-order-1 md
|
|
671
|
+
"md:z-10 md:-order-1 md:-mr-5 md:mt-0 md:justify-center md:rounded-l-none md:text-left": n === "vertical-split",
|
|
673
672
|
// below center/content header
|
|
674
673
|
"justify-center md:mx-auto md:w-4/5": n === "below-center",
|
|
675
|
-
"md:-mt-18":
|
|
674
|
+
"md:-mt-18": s && n === "below-center",
|
|
676
675
|
// Below left style
|
|
677
|
-
"md:ml-[8%] md
|
|
676
|
+
"md:-mt-32 md:ml-[8%] md:max-w-[58%] md:text-left": n === "below-left",
|
|
678
677
|
// styles for when the contain is fully contained within the image
|
|
679
|
-
"md:
|
|
678
|
+
"md:mx-32 md:my-9 md:w-2/5": m,
|
|
680
679
|
"self-end justify-self-start": n === "bottom-left",
|
|
681
680
|
"self-start justify-self-start": n === "top-left",
|
|
682
681
|
"self-start justify-self-end": n === "top-right",
|
|
@@ -686,56 +685,56 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
686
685
|
),
|
|
687
686
|
...d,
|
|
688
687
|
style: m ? { gridArea: "hero" } : void 0,
|
|
689
|
-
ref:
|
|
688
|
+
ref: r,
|
|
690
689
|
children: [
|
|
691
690
|
/* @__PURE__ */ a("h1", { children: c }),
|
|
692
691
|
u && /* @__PURE__ */ a("p", { className: "text-lg font-semibold md:text-xl", children: u }),
|
|
693
|
-
|
|
692
|
+
o
|
|
694
693
|
]
|
|
695
694
|
}
|
|
696
695
|
);
|
|
697
696
|
}
|
|
698
|
-
),
|
|
699
|
-
(e,
|
|
700
|
-
const { className:
|
|
697
|
+
), Lt = b(
|
|
698
|
+
(e, r) => {
|
|
699
|
+
const { className: t, ...n } = e, { contentPosition: s } = A(J);
|
|
701
700
|
return /* @__PURE__ */ a(
|
|
702
701
|
"div",
|
|
703
702
|
{
|
|
704
703
|
className: l(
|
|
705
|
-
|
|
704
|
+
t,
|
|
706
705
|
"grid items-center justify-center justify-items-center gap-4 md:grid-flow-col",
|
|
707
706
|
// Left align actions/buttons
|
|
708
707
|
{
|
|
709
|
-
"md:justify-start":
|
|
708
|
+
"md:justify-start": s === "vertical-split" || s === "below-left"
|
|
710
709
|
}
|
|
711
710
|
),
|
|
712
711
|
...n,
|
|
713
|
-
ref:
|
|
712
|
+
ref: r
|
|
714
713
|
}
|
|
715
714
|
);
|
|
716
715
|
}
|
|
717
|
-
), ue = b((e,
|
|
716
|
+
), ue = b((e, r) => {
|
|
718
717
|
const {
|
|
719
|
-
className:
|
|
718
|
+
className: t,
|
|
720
719
|
isInvalid: n,
|
|
721
|
-
size:
|
|
722
|
-
as:
|
|
720
|
+
size: s,
|
|
721
|
+
as: o,
|
|
723
722
|
type: i,
|
|
724
723
|
rightAddon: c,
|
|
725
724
|
leftAddon: u,
|
|
726
725
|
...d
|
|
727
|
-
} = e, m =
|
|
726
|
+
} = e, m = o ?? "input", h = Ue(m, i);
|
|
728
727
|
return /* @__PURE__ */ g(
|
|
729
728
|
"div",
|
|
730
729
|
{
|
|
731
730
|
className: l(
|
|
732
|
-
|
|
731
|
+
t,
|
|
733
732
|
"relative flex items-center rounded-lg border border-b-[3px] focus-within:-ml-[2px] focus-within:-mt-[2px] focus-within:border-[3px] focus-within:shadow",
|
|
734
733
|
{
|
|
735
734
|
"focus-within:border-blue-dark border-black": !n,
|
|
736
735
|
"border-red focus-within:border-red": n,
|
|
737
|
-
"w-fit":
|
|
738
|
-
"w-full":
|
|
736
|
+
"w-fit": s != null,
|
|
737
|
+
"w-full": s == null,
|
|
739
738
|
"pl-4": u,
|
|
740
739
|
"pr-4": c
|
|
741
740
|
}
|
|
@@ -746,9 +745,9 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
746
745
|
m,
|
|
747
746
|
{
|
|
748
747
|
"aria-invalid": n,
|
|
749
|
-
ref:
|
|
748
|
+
ref: r,
|
|
750
749
|
className: "focus:none placeholder-gray w-full rounded-lg border-none px-4 py-3.5 focus:outline-none",
|
|
751
|
-
size:
|
|
750
|
+
size: s,
|
|
752
751
|
type: h,
|
|
753
752
|
...d
|
|
754
753
|
}
|
|
@@ -758,15 +757,15 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
758
757
|
}
|
|
759
758
|
);
|
|
760
759
|
});
|
|
761
|
-
function
|
|
762
|
-
if (
|
|
763
|
-
return
|
|
760
|
+
function Ue(e, r) {
|
|
761
|
+
if (r != null)
|
|
762
|
+
return r;
|
|
764
763
|
if (e === "input")
|
|
765
764
|
return "text";
|
|
766
765
|
}
|
|
767
|
-
const
|
|
768
|
-
let
|
|
769
|
-
return e.icon && (
|
|
766
|
+
const Mt = (e) => {
|
|
767
|
+
let r = "";
|
|
768
|
+
return e.icon && (r = "inline-flex items-center gap-2"), /* @__PURE__ */ g("a", { className: r, href: e.href, children: [
|
|
770
769
|
e.icon,
|
|
771
770
|
e.children
|
|
772
771
|
] });
|
|
@@ -774,225 +773,225 @@ const kr = (e) => {
|
|
|
774
773
|
setIsExpanded: y,
|
|
775
774
|
isExpanded: !1,
|
|
776
775
|
collapsibleId: ""
|
|
777
|
-
}),
|
|
778
|
-
const { className:
|
|
779
|
-
() => ({ isExpanded:
|
|
780
|
-
[
|
|
776
|
+
}), zt = (e) => {
|
|
777
|
+
const { className: r, children: t, ...n } = e, s = ee(), [o, i] = k(!1), c = M(
|
|
778
|
+
() => ({ isExpanded: o, setIsExpanded: i, collapsibleId: s }),
|
|
779
|
+
[o, s]
|
|
781
780
|
);
|
|
782
781
|
return /* @__PURE__ */ a(P.Provider, { value: "white", children: /* @__PURE__ */ a(R.Provider, { value: c, children: /* @__PURE__ */ a(
|
|
783
782
|
"div",
|
|
784
783
|
{
|
|
785
784
|
className: l(
|
|
786
|
-
|
|
787
|
-
"bg-blue relative pt-6
|
|
785
|
+
r,
|
|
786
|
+
"bg-blue relative pb-12 pt-6 text-white before:absolute before:bottom-0 before:left-0 before:right-0 before:h-6 before:rounded-t-3xl before:bg-white md:pb-14 md:pt-8"
|
|
788
787
|
),
|
|
789
788
|
...n,
|
|
790
|
-
children: /* @__PURE__ */ a("div", { className: "container", children:
|
|
789
|
+
children: /* @__PURE__ */ a("div", { className: "container", children: t })
|
|
791
790
|
}
|
|
792
791
|
) }) });
|
|
793
|
-
},
|
|
794
|
-
const { className:
|
|
792
|
+
}, Pt = (e) => {
|
|
793
|
+
const { className: r, children: t, ...n } = e, { isExpanded: s } = A(R);
|
|
795
794
|
return /* @__PURE__ */ a(
|
|
796
795
|
"nav",
|
|
797
796
|
{
|
|
798
797
|
className: l(
|
|
799
|
-
|
|
798
|
+
r,
|
|
800
799
|
"my-8 flex flex-col md:mb-0 md:flex md:flex-row md:flex-wrap md:gap-x-8",
|
|
801
800
|
{
|
|
802
|
-
hidden: !
|
|
801
|
+
hidden: !s
|
|
803
802
|
}
|
|
804
803
|
),
|
|
805
804
|
...n,
|
|
806
|
-
children:
|
|
805
|
+
children: t
|
|
807
806
|
}
|
|
808
807
|
);
|
|
809
|
-
},
|
|
810
|
-
(e,
|
|
811
|
-
const { active:
|
|
808
|
+
}, St = b(
|
|
809
|
+
(e, r) => {
|
|
810
|
+
const { active: t, className: n, children: s, ...o } = e;
|
|
812
811
|
return /* @__PURE__ */ a(
|
|
813
812
|
"a",
|
|
814
813
|
{
|
|
815
|
-
"aria-current":
|
|
814
|
+
"aria-current": t ? "page" : void 0,
|
|
816
815
|
className: l(
|
|
817
816
|
n,
|
|
818
817
|
"border-b border-[#0156E0] py-3 no-underline md:border-b-2 md:border-transparent md:py-2 md:hover:border-white",
|
|
819
818
|
{
|
|
820
|
-
"md:bg-blue-dark font-bold md:-mx-3 md:rounded-t-lg md:px-3":
|
|
819
|
+
"md:bg-blue-dark font-bold md:-mx-3 md:rounded-t-lg md:px-3": t
|
|
821
820
|
}
|
|
822
821
|
),
|
|
823
|
-
ref:
|
|
824
|
-
...
|
|
825
|
-
children:
|
|
822
|
+
ref: r,
|
|
823
|
+
...o,
|
|
824
|
+
children: s
|
|
826
825
|
}
|
|
827
826
|
);
|
|
828
827
|
}
|
|
829
|
-
),
|
|
830
|
-
const { isExpanded: e, setIsExpanded:
|
|
831
|
-
let n =
|
|
832
|
-
return e && (n =
|
|
828
|
+
), Ge = () => {
|
|
829
|
+
const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(R);
|
|
830
|
+
let n = xe, s = "Meny";
|
|
831
|
+
return e && (n = ve, s = "Lukk"), /* @__PURE__ */ g(
|
|
833
832
|
"button",
|
|
834
833
|
{
|
|
835
|
-
"aria-controls":
|
|
834
|
+
"aria-controls": t,
|
|
836
835
|
"aria-expanded": e,
|
|
837
836
|
className: "inline-flex items-center gap-2 md:hidden",
|
|
838
|
-
onClick: () =>
|
|
837
|
+
onClick: () => r((o) => !o),
|
|
839
838
|
children: [
|
|
840
|
-
|
|
839
|
+
s,
|
|
841
840
|
" ",
|
|
842
841
|
/* @__PURE__ */ a(n, {})
|
|
843
842
|
]
|
|
844
843
|
}
|
|
845
844
|
);
|
|
846
|
-
},
|
|
847
|
-
const { className:
|
|
845
|
+
}, Vt = (e) => {
|
|
846
|
+
const { className: r, children: t, logo: n, ...s } = e;
|
|
848
847
|
return /* @__PURE__ */ g(
|
|
849
848
|
"div",
|
|
850
849
|
{
|
|
851
|
-
className: l(
|
|
852
|
-
...
|
|
850
|
+
className: l(r, "flex items-center justify-between gap-8"),
|
|
851
|
+
...s,
|
|
853
852
|
children: [
|
|
854
853
|
n,
|
|
855
|
-
/* @__PURE__ */ a("div", { className: "hidden md:block", children:
|
|
856
|
-
/* @__PURE__ */ a(
|
|
854
|
+
/* @__PURE__ */ a("div", { className: "hidden md:block", children: t }),
|
|
855
|
+
/* @__PURE__ */ a(Ge, {})
|
|
857
856
|
]
|
|
858
857
|
}
|
|
859
858
|
);
|
|
860
|
-
},
|
|
861
|
-
const { className:
|
|
859
|
+
}, Jt = (e) => {
|
|
860
|
+
const { className: r, children: t, ...n } = e, { collapsibleId: s, isExpanded: o } = A(R);
|
|
862
861
|
return /* @__PURE__ */ a(
|
|
863
862
|
"div",
|
|
864
863
|
{
|
|
865
864
|
...n,
|
|
866
|
-
"aria-hidden": !
|
|
867
|
-
className: l(
|
|
868
|
-
hidden: !
|
|
865
|
+
"aria-hidden": !o,
|
|
866
|
+
className: l(r, "md:-mb-8 md:block", {
|
|
867
|
+
hidden: !o
|
|
869
868
|
}),
|
|
870
|
-
id:
|
|
871
|
-
children:
|
|
869
|
+
id: s,
|
|
870
|
+
children: t
|
|
872
871
|
}
|
|
873
872
|
);
|
|
874
|
-
},
|
|
875
|
-
const { isExpanded:
|
|
876
|
-
return !
|
|
877
|
-
}, w = 2, O = I({ currentPage: 0, pageCount: 0 }),
|
|
873
|
+
}, Ot = (e) => {
|
|
874
|
+
const { isExpanded: r } = A(R), t = Oe(!1);
|
|
875
|
+
return !r || !t ? null : /* @__PURE__ */ a(Z, { children: e.children });
|
|
876
|
+
}, w = 2, O = I({ currentPage: 0, pageCount: 0 }), Tt = (e) => {
|
|
878
877
|
const {
|
|
879
|
-
className:
|
|
880
|
-
page:
|
|
878
|
+
className: r,
|
|
879
|
+
page: t,
|
|
881
880
|
count: n,
|
|
882
|
-
onChange:
|
|
883
|
-
getItemHref:
|
|
881
|
+
onChange: s,
|
|
882
|
+
getItemHref: o,
|
|
884
883
|
getItemAriaLabel: i,
|
|
885
884
|
nextPageAriaLabel: c,
|
|
886
885
|
prevPageAriaLabel: u,
|
|
887
886
|
...d
|
|
888
|
-
} = e, m =
|
|
887
|
+
} = e, m = M(
|
|
889
888
|
() => ({
|
|
890
|
-
currentPage: Math.max(1, Math.min(
|
|
889
|
+
currentPage: Math.max(1, Math.min(t, n)),
|
|
891
890
|
pageCount: Math.max(1, n)
|
|
892
891
|
}),
|
|
893
|
-
[
|
|
892
|
+
[t, n]
|
|
894
893
|
), h = (f) => (p) => {
|
|
895
|
-
|
|
894
|
+
s && (p.preventDefault(), s(f));
|
|
896
895
|
};
|
|
897
896
|
return /* @__PURE__ */ a(O.Provider, { value: m, children: /* @__PURE__ */ g(
|
|
898
897
|
"nav",
|
|
899
898
|
{
|
|
900
|
-
className: l("flex justify-center gap-2 sm:gap-4",
|
|
899
|
+
className: l("flex justify-center gap-2 sm:gap-4", r),
|
|
901
900
|
...d,
|
|
902
901
|
children: [
|
|
903
902
|
/* @__PURE__ */ a(
|
|
904
|
-
|
|
903
|
+
De,
|
|
905
904
|
{
|
|
906
905
|
"aria-label": u,
|
|
907
|
-
href:
|
|
908
|
-
onClick: h(
|
|
906
|
+
href: o(t - 1),
|
|
907
|
+
onClick: h(t - 1)
|
|
909
908
|
}
|
|
910
909
|
),
|
|
911
910
|
/* @__PURE__ */ a(
|
|
912
911
|
_,
|
|
913
912
|
{
|
|
914
913
|
page: 1,
|
|
915
|
-
href:
|
|
914
|
+
href: o(1),
|
|
916
915
|
onClick: h(1),
|
|
917
916
|
"aria-label": i(1),
|
|
918
|
-
selected:
|
|
917
|
+
selected: t === 1
|
|
919
918
|
}
|
|
920
919
|
),
|
|
921
|
-
n > 2 + w * 2 &&
|
|
922
|
-
/* @__PURE__ */ a(
|
|
920
|
+
n > 2 + w * 2 && t > w + 2 && /* @__PURE__ */ a(_e, {}),
|
|
921
|
+
/* @__PURE__ */ a($e, { children: (f) => /* @__PURE__ */ a(
|
|
923
922
|
_,
|
|
924
923
|
{
|
|
925
|
-
href:
|
|
924
|
+
href: o(f),
|
|
926
925
|
onClick: h(f),
|
|
927
926
|
"aria-label": i(f),
|
|
928
927
|
page: f,
|
|
929
|
-
selected: f ===
|
|
928
|
+
selected: f === t
|
|
930
929
|
},
|
|
931
930
|
f
|
|
932
931
|
) }),
|
|
933
932
|
/* @__PURE__ */ a(
|
|
934
|
-
|
|
933
|
+
He,
|
|
935
934
|
{
|
|
936
935
|
"aria-label": c,
|
|
937
|
-
href:
|
|
938
|
-
onClick: h(
|
|
936
|
+
href: o(t + 1),
|
|
937
|
+
onClick: h(t + 1)
|
|
939
938
|
}
|
|
940
939
|
)
|
|
941
940
|
]
|
|
942
941
|
}
|
|
943
942
|
) });
|
|
944
|
-
},
|
|
945
|
-
const { currentPage:
|
|
943
|
+
}, He = b((e, r) => {
|
|
944
|
+
const { currentPage: t, pageCount: n } = A(O), s = t >= n;
|
|
946
945
|
return /* @__PURE__ */ a(
|
|
947
946
|
Q,
|
|
948
947
|
{
|
|
949
|
-
"aria-hidden":
|
|
950
|
-
className:
|
|
951
|
-
ref:
|
|
948
|
+
"aria-hidden": s,
|
|
949
|
+
className: s ? "invisible" : void 0,
|
|
950
|
+
ref: r,
|
|
952
951
|
rel: "next",
|
|
953
952
|
...e,
|
|
954
953
|
children: /* @__PURE__ */ a(Ne, {})
|
|
955
954
|
}
|
|
956
955
|
);
|
|
957
|
-
}),
|
|
958
|
-
const { currentPage:
|
|
956
|
+
}), De = b((e, r) => {
|
|
957
|
+
const { currentPage: t } = A(O), n = t <= 1;
|
|
959
958
|
return /* @__PURE__ */ a(
|
|
960
959
|
Q,
|
|
961
960
|
{
|
|
962
961
|
"aria-hidden": n,
|
|
963
962
|
className: n ? "invisible" : void 0,
|
|
964
|
-
ref:
|
|
963
|
+
ref: r,
|
|
965
964
|
rel: "prev",
|
|
966
965
|
...e,
|
|
967
966
|
children: /* @__PURE__ */ a(we, {})
|
|
968
967
|
}
|
|
969
968
|
);
|
|
970
|
-
}), Q = b((e,
|
|
971
|
-
const { className:
|
|
969
|
+
}), Q = b((e, r) => {
|
|
970
|
+
const { className: t, ...n } = e;
|
|
972
971
|
return /* @__PURE__ */ a(
|
|
973
972
|
"a",
|
|
974
973
|
{
|
|
975
974
|
className: l(
|
|
976
|
-
|
|
977
|
-
"aria-[current]:border-green hover:bg-gray-
|
|
975
|
+
t,
|
|
976
|
+
"aria-[current]:border-green hover:bg-gray-lightest flex h-9 w-9 items-center justify-center rounded-lg border-2 border-transparent no-underline sm:h-10 sm:w-10"
|
|
978
977
|
),
|
|
979
|
-
ref:
|
|
978
|
+
ref: r,
|
|
980
979
|
...n
|
|
981
980
|
}
|
|
982
981
|
);
|
|
983
|
-
}),
|
|
984
|
-
const { currentPage:
|
|
985
|
-
Math.max(2 + w * 2,
|
|
986
|
-
|
|
982
|
+
}), _e = () => /* @__PURE__ */ a("span", { className: "flex h-9 w-9 cursor-default items-center justify-center border-2 border-transparent sm:h-10 sm:w-10", children: "..." }), $e = ({ children: e }) => {
|
|
983
|
+
const { currentPage: r, pageCount: t } = A(O), n = Math.min(
|
|
984
|
+
Math.max(2 + w * 2, r + w),
|
|
985
|
+
t
|
|
987
986
|
);
|
|
988
|
-
let
|
|
989
|
-
Math.min(
|
|
987
|
+
let s = Math.max(
|
|
988
|
+
Math.min(r - w, n - w * 2),
|
|
990
989
|
1
|
|
991
990
|
);
|
|
992
|
-
return
|
|
993
|
-
}, _ = b((e,
|
|
994
|
-
const { page:
|
|
995
|
-
return /* @__PURE__ */ a(Q, { "aria-current": n ? "page" : void 0, ref:
|
|
991
|
+
return s - w === 0 && (s = s - 1), Array.from({ length: n - s }, (i, c) => s + c + 1).map((i) => e(i));
|
|
992
|
+
}, _ = b((e, r) => {
|
|
993
|
+
const { page: t, selected: n, ...s } = e;
|
|
994
|
+
return /* @__PURE__ */ a(Q, { "aria-current": n ? "page" : void 0, ref: r, ...s, children: t });
|
|
996
995
|
}), fe = I({
|
|
997
996
|
defaultValue: void 0,
|
|
998
997
|
isControlled: !1,
|
|
@@ -1001,31 +1000,31 @@ const kr = (e) => {
|
|
|
1001
1000
|
required: !1,
|
|
1002
1001
|
value: void 0,
|
|
1003
1002
|
error: !1
|
|
1004
|
-
}),
|
|
1005
|
-
const { children:
|
|
1003
|
+
}), jt = b((e, r) => {
|
|
1004
|
+
const { children: t, className: n, ...s } = e, { defaultValue: o, isControlled: i, name: c, onChange: u, required: d, value: m, error: h } = A(fe);
|
|
1006
1005
|
return /* @__PURE__ */ g("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
|
|
1007
1006
|
/* @__PURE__ */ a(
|
|
1008
1007
|
"input",
|
|
1009
1008
|
{
|
|
1010
1009
|
className: l("radio", h && "border-red"),
|
|
1011
|
-
defaultChecked: i ? void 0 :
|
|
1012
|
-
checked: i ?
|
|
1010
|
+
defaultChecked: i ? void 0 : s.value === o,
|
|
1011
|
+
checked: i ? s.value === m : void 0,
|
|
1013
1012
|
name: c,
|
|
1014
1013
|
onChange: i ? u : void 0,
|
|
1015
1014
|
required: d,
|
|
1016
1015
|
type: "radio",
|
|
1017
|
-
ref:
|
|
1018
|
-
...
|
|
1016
|
+
ref: r,
|
|
1017
|
+
...s
|
|
1019
1018
|
}
|
|
1020
1019
|
),
|
|
1021
|
-
|
|
1020
|
+
t
|
|
1022
1021
|
] });
|
|
1023
|
-
}),
|
|
1024
|
-
(e,
|
|
1025
|
-
const
|
|
1022
|
+
}), Ft = b(
|
|
1023
|
+
(e, r) => {
|
|
1024
|
+
const t = "value" in e, {
|
|
1026
1025
|
className: n,
|
|
1027
|
-
defaultValue:
|
|
1028
|
-
description:
|
|
1026
|
+
defaultValue: s,
|
|
1027
|
+
description: o,
|
|
1029
1028
|
error: i,
|
|
1030
1029
|
id: c,
|
|
1031
1030
|
children: u,
|
|
@@ -1034,89 +1033,89 @@ const kr = (e) => {
|
|
|
1034
1033
|
onChange: h,
|
|
1035
1034
|
required: f,
|
|
1036
1035
|
value: p,
|
|
1037
|
-
...
|
|
1038
|
-
} = e,
|
|
1036
|
+
...v
|
|
1037
|
+
} = e, x = q(
|
|
1039
1038
|
(ge) => {
|
|
1040
1039
|
const be = ge.target.value;
|
|
1041
1040
|
h == null || h(be);
|
|
1042
1041
|
},
|
|
1043
1042
|
[h]
|
|
1044
|
-
), T =
|
|
1043
|
+
), T = M(
|
|
1045
1044
|
() => ({
|
|
1046
|
-
defaultValue:
|
|
1047
|
-
isControlled:
|
|
1045
|
+
defaultValue: s,
|
|
1046
|
+
isControlled: t,
|
|
1048
1047
|
name: m,
|
|
1049
|
-
onChange:
|
|
1048
|
+
onChange: x,
|
|
1050
1049
|
required: f,
|
|
1051
1050
|
value: p,
|
|
1052
|
-
error:
|
|
1051
|
+
error: !!i
|
|
1053
1052
|
}),
|
|
1054
|
-
[
|
|
1053
|
+
[s, t, m, x, f, p, i]
|
|
1055
1054
|
), j = C(c), U = `${j}:label`, G = `${j}:help`, H = j + "err", F = i;
|
|
1056
1055
|
return /* @__PURE__ */ a(fe.Provider, { value: T, children: /* @__PURE__ */ g(
|
|
1057
1056
|
"div",
|
|
1058
1057
|
{
|
|
1059
1058
|
"aria-describedby": l({
|
|
1060
1059
|
[H]: F,
|
|
1061
|
-
[G]:
|
|
1060
|
+
[G]: o
|
|
1062
1061
|
}) || void 0,
|
|
1063
1062
|
"aria-invalid": !!i,
|
|
1064
1063
|
"aria-labelledby": d ? U : void 0,
|
|
1065
1064
|
className: l(n, "flex flex-col gap-4"),
|
|
1066
1065
|
role: "radiogroup",
|
|
1067
|
-
ref:
|
|
1068
|
-
...
|
|
1066
|
+
ref: r,
|
|
1067
|
+
...v,
|
|
1069
1068
|
children: [
|
|
1070
1069
|
d && /* @__PURE__ */ a(V, { id: U, isRequired: f, isInvalid: !!i, children: d }),
|
|
1071
|
-
|
|
1070
|
+
o && /* @__PURE__ */ a(S, { id: G, children: o }),
|
|
1072
1071
|
u,
|
|
1073
1072
|
F && /* @__PURE__ */ a(E, { id: H, children: F })
|
|
1074
1073
|
]
|
|
1075
1074
|
}
|
|
1076
1075
|
) });
|
|
1077
1076
|
}
|
|
1078
|
-
),
|
|
1079
|
-
(e,
|
|
1080
|
-
const { children:
|
|
1077
|
+
), et = b(
|
|
1078
|
+
(e, r) => {
|
|
1079
|
+
const { children: t, className: n, isInvalid: s, size: o, ...i } = e, c = o === "small";
|
|
1081
1080
|
return /* @__PURE__ */ g("div", { className: l(n, "relative", c && "text-sm"), children: [
|
|
1082
1081
|
/* @__PURE__ */ a(
|
|
1083
1082
|
"select",
|
|
1084
1083
|
{
|
|
1085
|
-
"aria-invalid":
|
|
1084
|
+
"aria-invalid": s,
|
|
1086
1085
|
...i,
|
|
1087
1086
|
className: l(
|
|
1088
|
-
"w-full cursor-pointer appearance-none border border-b-[3px] bg-white focus:-
|
|
1087
|
+
"w-full cursor-pointer appearance-none border border-b-[3px] bg-white focus:-ml-0.5 focus:-mt-0.5 focus:border-[3px] focus:shadow focus:outline-none",
|
|
1089
1088
|
c ? "rounded px-3.5 py-2" : "rounded-lg px-4 py-3.5",
|
|
1090
|
-
|
|
1089
|
+
s ? "border-red focus:border-red" : "focus:border-blue-dark border-black"
|
|
1091
1090
|
),
|
|
1092
|
-
ref:
|
|
1093
|
-
children:
|
|
1091
|
+
ref: r,
|
|
1092
|
+
children: t
|
|
1094
1093
|
}
|
|
1095
1094
|
),
|
|
1096
1095
|
/* @__PURE__ */ a(
|
|
1097
|
-
|
|
1096
|
+
re,
|
|
1098
1097
|
{
|
|
1099
1098
|
className: l(
|
|
1100
|
-
"pointer-events-none absolute
|
|
1099
|
+
"pointer-events-none absolute bottom-0 top-0 my-auto",
|
|
1101
1100
|
c ? "right-3.5" : "right-4"
|
|
1102
1101
|
)
|
|
1103
1102
|
}
|
|
1104
1103
|
)
|
|
1105
1104
|
] });
|
|
1106
1105
|
}
|
|
1107
|
-
),
|
|
1108
|
-
(e,
|
|
1106
|
+
), Zt = b(
|
|
1107
|
+
(e, r) => {
|
|
1109
1108
|
const {
|
|
1110
|
-
description:
|
|
1109
|
+
description: t,
|
|
1111
1110
|
error: n,
|
|
1112
|
-
id:
|
|
1113
|
-
label:
|
|
1111
|
+
id: s,
|
|
1112
|
+
label: o,
|
|
1114
1113
|
disableValidation: i = !1,
|
|
1115
1114
|
...c
|
|
1116
|
-
} = e, u =
|
|
1115
|
+
} = e, u = L(null), d = Y(u, r), { validity: m, validationMessage: h } = z(
|
|
1117
1116
|
u,
|
|
1118
1117
|
!i
|
|
1119
|
-
), f = C(
|
|
1118
|
+
), f = C(s), p = f + "help", v = f + "err", x = n || h;
|
|
1120
1119
|
return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
|
|
1121
1120
|
/* @__PURE__ */ a(
|
|
1122
1121
|
V,
|
|
@@ -1124,28 +1123,28 @@ const kr = (e) => {
|
|
|
1124
1123
|
htmlFor: f,
|
|
1125
1124
|
isRequired: e.required,
|
|
1126
1125
|
isInvalid: !!n || m === "invalid",
|
|
1127
|
-
children:
|
|
1126
|
+
children: o
|
|
1128
1127
|
}
|
|
1129
1128
|
),
|
|
1130
|
-
|
|
1129
|
+
t && /* @__PURE__ */ a(S, { id: p, children: t }),
|
|
1131
1130
|
/* @__PURE__ */ a(
|
|
1132
|
-
|
|
1131
|
+
et,
|
|
1133
1132
|
{
|
|
1134
1133
|
id: f,
|
|
1135
1134
|
ref: d,
|
|
1136
1135
|
...c,
|
|
1137
1136
|
isInvalid: !!n || m === "invalid",
|
|
1138
1137
|
"aria-describedby": l({
|
|
1139
|
-
[
|
|
1140
|
-
[p]:
|
|
1138
|
+
[v]: x,
|
|
1139
|
+
[p]: t
|
|
1141
1140
|
}) || void 0
|
|
1142
1141
|
}
|
|
1143
1142
|
),
|
|
1144
|
-
|
|
1143
|
+
x && /* @__PURE__ */ a(E, { id: v, children: x })
|
|
1145
1144
|
] });
|
|
1146
1145
|
}
|
|
1147
|
-
),
|
|
1148
|
-
const { heading:
|
|
1146
|
+
), Wt = (e) => {
|
|
1147
|
+
const { heading: r, children: t, closeSnackbar: n } = e, [s, o] = k(!1);
|
|
1149
1148
|
return /* @__PURE__ */ a("div", { className: "container max-w-[59rem]", children: /* @__PURE__ */ a("div", { className: "bg-orange-light px-8 py-4 max-md:p-4", children: /* @__PURE__ */ g("div", { className: "snackbar grid items-center", children: [
|
|
1150
1149
|
/* @__PURE__ */ a(ae, { className: "text-orange snackbar-icon mr-4 self-start md:mr-8 md:text-2xl" }),
|
|
1151
1150
|
/* @__PURE__ */ a(
|
|
@@ -1154,24 +1153,24 @@ const kr = (e) => {
|
|
|
1154
1153
|
className: l(
|
|
1155
1154
|
"snackbar-header min-w-0 max-w-prose text-base font-medium",
|
|
1156
1155
|
{
|
|
1157
|
-
"overflow-hidden overflow-ellipsis whitespace-nowrap": !
|
|
1156
|
+
"overflow-hidden overflow-ellipsis whitespace-nowrap": !s
|
|
1158
1157
|
}
|
|
1159
1158
|
),
|
|
1160
|
-
children:
|
|
1159
|
+
children: r
|
|
1161
1160
|
}
|
|
1162
1161
|
),
|
|
1163
1162
|
/* @__PURE__ */ g("div", { className: "snackbar-actions flex justify-end gap-4 max-md:mt-3 md:ml-4", children: [
|
|
1164
1163
|
/* @__PURE__ */ a(
|
|
1165
1164
|
$,
|
|
1166
1165
|
{
|
|
1167
|
-
"aria-expanded":
|
|
1168
|
-
onClick: () =>
|
|
1169
|
-
children:
|
|
1166
|
+
"aria-expanded": s,
|
|
1167
|
+
onClick: () => o(!s),
|
|
1168
|
+
children: s ? "Les mindre" : "Les mer"
|
|
1170
1169
|
}
|
|
1171
1170
|
),
|
|
1172
1171
|
/* @__PURE__ */ a($, { onClick: n, children: "Ok" })
|
|
1173
1172
|
] }),
|
|
1174
|
-
|
|
1173
|
+
s && t
|
|
1175
1174
|
] }) }) });
|
|
1176
1175
|
}, $ = (e) => /* @__PURE__ */ a(
|
|
1177
1176
|
"button",
|
|
@@ -1183,63 +1182,63 @@ const kr = (e) => {
|
|
|
1183
1182
|
...e,
|
|
1184
1183
|
children: e.children
|
|
1185
1184
|
}
|
|
1186
|
-
),
|
|
1185
|
+
), Kt = (e) => /* @__PURE__ */ a(
|
|
1187
1186
|
"div",
|
|
1188
1187
|
{
|
|
1189
1188
|
className: "snackbar-content my-4 max-h-[50vh] max-w-prose overflow-y-auto",
|
|
1190
1189
|
...e,
|
|
1191
1190
|
children: e.children
|
|
1192
1191
|
}
|
|
1193
|
-
),
|
|
1194
|
-
const { align:
|
|
1195
|
-
return /* @__PURE__ */ a("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...
|
|
1196
|
-
align:
|
|
1192
|
+
), tt = (e) => {
|
|
1193
|
+
const { align: r = "center", children: t, className: n, ...s } = e;
|
|
1194
|
+
return /* @__PURE__ */ a("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...s, children: W.map(t, (o) => K(o, {
|
|
1195
|
+
align: r
|
|
1197
1196
|
})) });
|
|
1198
|
-
},
|
|
1199
|
-
const { className:
|
|
1197
|
+
}, rt = (e) => {
|
|
1198
|
+
const { className: r, children: t, bullet: n, align: s = "center", ...o } = e;
|
|
1200
1199
|
return /* @__PURE__ */ g(
|
|
1201
1200
|
"li",
|
|
1202
1201
|
{
|
|
1203
1202
|
className: l(
|
|
1204
|
-
|
|
1203
|
+
r,
|
|
1205
1204
|
"group relative flex gap-4 text-sm md:gap-8 md:text-base",
|
|
1206
|
-
{ "items-center":
|
|
1205
|
+
{ "items-center": s === "center" }
|
|
1207
1206
|
),
|
|
1208
|
-
...
|
|
1207
|
+
...o,
|
|
1209
1208
|
children: [
|
|
1210
|
-
/* @__PURE__ */ a(
|
|
1211
|
-
|
|
1209
|
+
/* @__PURE__ */ a(nt, { align: s, children: n }),
|
|
1210
|
+
t
|
|
1212
1211
|
]
|
|
1213
1212
|
}
|
|
1214
1213
|
);
|
|
1215
|
-
},
|
|
1214
|
+
}, nt = ({ align: e, ...r }) => /* @__PURE__ */ a(
|
|
1216
1215
|
"span",
|
|
1217
1216
|
{
|
|
1218
1217
|
"aria-hidden": !0,
|
|
1219
1218
|
className: l(
|
|
1220
1219
|
"text-green after:bg-gray-light before:bg-gray-light grid h-10 w-10 flex-none place-content-center justify-items-center rounded-full border-2 text-sm font-bold after:absolute after:bottom-0 after:w-0.5 after:translate-x-1/2 group-last:after:hidden md:h-20 md:w-20 md:text-xl",
|
|
1221
1220
|
{
|
|
1222
|
-
"before:absolute before:
|
|
1223
|
-
"after
|
|
1221
|
+
"before:absolute before:bottom-1/2 before:top-0 before:w-0.5 before:-translate-y-5 before:translate-x-1/2 after:top-1/2 after:translate-y-5 group-first:before:hidden before:md:-translate-y-10 after:md:translate-y-10": e === "center",
|
|
1222
|
+
"after:-bottom-8 after:top-10 after:md:-bottom-12 after:md:top-20": e === "top"
|
|
1224
1223
|
}
|
|
1225
1224
|
),
|
|
1226
|
-
...
|
|
1225
|
+
...r
|
|
1227
1226
|
}
|
|
1228
1227
|
);
|
|
1229
|
-
|
|
1230
|
-
const
|
|
1231
|
-
(e,
|
|
1228
|
+
tt.Item = rt;
|
|
1229
|
+
const Yt = b(
|
|
1230
|
+
(e, r) => {
|
|
1232
1231
|
const {
|
|
1233
|
-
description:
|
|
1232
|
+
description: t,
|
|
1234
1233
|
error: n,
|
|
1235
|
-
id:
|
|
1236
|
-
label:
|
|
1234
|
+
id: s,
|
|
1235
|
+
label: o,
|
|
1237
1236
|
disableValidation: i = !1,
|
|
1238
1237
|
...c
|
|
1239
|
-
} = e, u =
|
|
1238
|
+
} = e, u = L(null), d = Y(u, r), { validity: m, validationMessage: h } = z(
|
|
1240
1239
|
u,
|
|
1241
1240
|
!i
|
|
1242
|
-
), f = C(
|
|
1241
|
+
), f = C(s), p = f + "help", v = f + "err", x = n || h;
|
|
1243
1242
|
return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
|
|
1244
1243
|
/* @__PURE__ */ a(
|
|
1245
1244
|
V,
|
|
@@ -1247,10 +1246,10 @@ const Yr = b(
|
|
|
1247
1246
|
htmlFor: f,
|
|
1248
1247
|
isRequired: e.required,
|
|
1249
1248
|
isInvalid: !!n || m === "invalid",
|
|
1250
|
-
children:
|
|
1249
|
+
children: o
|
|
1251
1250
|
}
|
|
1252
1251
|
),
|
|
1253
|
-
|
|
1252
|
+
t && /* @__PURE__ */ a(S, { id: p, children: t }),
|
|
1254
1253
|
/* @__PURE__ */ a(
|
|
1255
1254
|
ue,
|
|
1256
1255
|
{
|
|
@@ -1260,28 +1259,28 @@ const Yr = b(
|
|
|
1260
1259
|
...c,
|
|
1261
1260
|
isInvalid: !!n || m === "invalid",
|
|
1262
1261
|
"aria-describedby": l({
|
|
1263
|
-
[
|
|
1264
|
-
[p]:
|
|
1262
|
+
[v]: x,
|
|
1263
|
+
[p]: t
|
|
1265
1264
|
}) || void 0
|
|
1266
1265
|
}
|
|
1267
1266
|
),
|
|
1268
|
-
|
|
1267
|
+
x && /* @__PURE__ */ a(E, { id: v, children: x })
|
|
1269
1268
|
] });
|
|
1270
1269
|
}
|
|
1271
|
-
),
|
|
1272
|
-
(e,
|
|
1270
|
+
), Xt = b(
|
|
1271
|
+
(e, r) => {
|
|
1273
1272
|
const {
|
|
1274
|
-
description:
|
|
1273
|
+
description: t,
|
|
1275
1274
|
error: n,
|
|
1276
|
-
id:
|
|
1277
|
-
label:
|
|
1275
|
+
id: s,
|
|
1276
|
+
label: o,
|
|
1278
1277
|
type: i = "text",
|
|
1279
1278
|
disableValidation: c = !1,
|
|
1280
1279
|
...u
|
|
1281
|
-
} = e, d =
|
|
1280
|
+
} = e, d = L(null), { validity: m, validationMessage: h } = z(
|
|
1282
1281
|
d,
|
|
1283
1282
|
!c
|
|
1284
|
-
), f = C(
|
|
1283
|
+
), f = C(s), p = f + "help", v = f + "err", x = n || h, T = Y(d, r);
|
|
1285
1284
|
return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
|
|
1286
1285
|
/* @__PURE__ */ a(
|
|
1287
1286
|
V,
|
|
@@ -1289,10 +1288,10 @@ const Yr = b(
|
|
|
1289
1288
|
htmlFor: f,
|
|
1290
1289
|
isRequired: e.required,
|
|
1291
1290
|
isInvalid: !!n || m === "invalid",
|
|
1292
|
-
children:
|
|
1291
|
+
children: o
|
|
1293
1292
|
}
|
|
1294
1293
|
),
|
|
1295
|
-
|
|
1294
|
+
t && /* @__PURE__ */ a(S, { id: p, children: t }),
|
|
1296
1295
|
/* @__PURE__ */ a(
|
|
1297
1296
|
ue,
|
|
1298
1297
|
{
|
|
@@ -1302,69 +1301,69 @@ const Yr = b(
|
|
|
1302
1301
|
...u,
|
|
1303
1302
|
isInvalid: !!n || m === "invalid",
|
|
1304
1303
|
"aria-describedby": l({
|
|
1305
|
-
[
|
|
1306
|
-
[p]:
|
|
1304
|
+
[v]: x,
|
|
1305
|
+
[p]: t
|
|
1307
1306
|
}) || void 0
|
|
1308
1307
|
}
|
|
1309
1308
|
),
|
|
1310
|
-
|
|
1309
|
+
x && /* @__PURE__ */ a(E, { id: v, children: x })
|
|
1311
1310
|
] });
|
|
1312
1311
|
}
|
|
1313
1312
|
);
|
|
1314
1313
|
export {
|
|
1315
1314
|
X as Accordion,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1315
|
+
qe as AccordionContent,
|
|
1316
|
+
Re as AccordionHeader,
|
|
1317
|
+
Ee as AccordionItem,
|
|
1318
|
+
ct as Alert,
|
|
1319
|
+
ut as Banner,
|
|
1320
|
+
ft as BannerImage,
|
|
1321
|
+
gt as Button,
|
|
1323
1322
|
P as ButtonColorContext,
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1323
|
+
bt as Campaign,
|
|
1324
|
+
ht as Card,
|
|
1325
|
+
xt as CardContent,
|
|
1326
|
+
pt as CardImage,
|
|
1327
|
+
vt as CardLinkOverlay,
|
|
1328
|
+
At as CardList,
|
|
1329
|
+
Nt as Checkbox,
|
|
1330
|
+
wt as Chip,
|
|
1331
|
+
yt as Footer,
|
|
1332
|
+
It as Form,
|
|
1333
|
+
Ct as FormError,
|
|
1335
1334
|
E as FormErrorMessage,
|
|
1336
|
-
|
|
1335
|
+
Qe as FormHeading,
|
|
1337
1336
|
S as FormHelperText,
|
|
1338
1337
|
V as FormLabel,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1338
|
+
Et as FormSuccess,
|
|
1339
|
+
Rt as Hero,
|
|
1340
|
+
Lt as HeroActions,
|
|
1341
|
+
kt as HeroContent,
|
|
1343
1342
|
J as HeroContext,
|
|
1344
|
-
|
|
1343
|
+
qt as HeroImage,
|
|
1345
1344
|
ue as Input,
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1345
|
+
Mt as Link,
|
|
1346
|
+
zt as Navbar,
|
|
1347
|
+
Jt as NavbarCollapsible,
|
|
1348
|
+
Vt as NavbarContent,
|
|
1349
|
+
Ot as NavbarExpandedMobileContent,
|
|
1350
|
+
St as NavbarItem,
|
|
1351
|
+
Pt as NavbarItems,
|
|
1352
|
+
Tt as Pagination,
|
|
1353
|
+
jt as Radio,
|
|
1354
|
+
Ft as RadioGroup,
|
|
1355
|
+
Zt as Select,
|
|
1356
|
+
Wt as Snackbar,
|
|
1358
1357
|
$ as SnackbarButton,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1358
|
+
Kt as SnackbarContent,
|
|
1359
|
+
tt as StepList,
|
|
1360
|
+
rt as StepListItem,
|
|
1361
|
+
Yt as TextArea,
|
|
1362
|
+
Xt as TextField,
|
|
1363
|
+
le as useBlockBackgroundColor,
|
|
1365
1364
|
C as useFallbackId,
|
|
1366
1365
|
z as useFormControlValidity,
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1366
|
+
ie as useMedia,
|
|
1367
|
+
mt as usePrefersReducedMotion,
|
|
1368
|
+
Oe as useScreenMaxWidthMd
|
|
1370
1369
|
};
|