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