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