@obosbbl/grunnmuren-react 1.14.0-beta.1 → 1.14.0-beta.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/dist/grunnmuren.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as o, jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { ChevronDown as
|
|
5
|
-
import { useCollapse as
|
|
2
|
+
import { jsx as o, jsxs as f, Fragment as O } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as w, useContext as A, useState as q, useCallback as N, useEffect as fe, useId as $, forwardRef as h, Children as Z, isValidElement as ee, cloneElement as W, useRef as E, useMemo as C, useReducer as ge } from "react";
|
|
4
|
+
import { ChevronDown as te, Warning as re, InfoCircle as ne, LoadingSpinner as he, CheckCircle as pe, MenuAlt as Ae, Close as xe, ChevronRight as ve, ChevronLeft as Ne } from "@obosbbl/grunnmuren-icons";
|
|
5
|
+
import { useCollapse as we } from "react-collapsed";
|
|
6
6
|
import l from "clsx";
|
|
7
|
-
import
|
|
7
|
+
import { useMediaQuery as ae, useUpdateEffect as ye } from "@react-hookz/web";
|
|
8
|
+
import K from "@react-hook/merged-ref";
|
|
8
9
|
const I = () => {
|
|
9
|
-
},
|
|
10
|
+
}, Ie = 300, Ce = "duration-300", X = (e) => {
|
|
10
11
|
const { className: r, ...t } = e;
|
|
11
12
|
return /* @__PURE__ */ o("div", { className: l(r, "flex flex-col gap-2"), ...t });
|
|
12
|
-
},
|
|
13
|
+
}, Y = w({
|
|
13
14
|
isExpanded: !1,
|
|
14
15
|
setExpanded: I,
|
|
15
16
|
// @ts-expect-error noop
|
|
@@ -17,14 +18,14 @@ const I = () => {
|
|
|
17
18
|
// @ts-expect-error noop
|
|
18
19
|
getToggleProps: I,
|
|
19
20
|
onChange: I
|
|
20
|
-
}),
|
|
21
|
-
const { className: r, defaultOpen: t, onChange: n = I, open: a, ...s } = e, i =
|
|
21
|
+
}), Ee = (e) => {
|
|
22
|
+
const { className: r, defaultOpen: t, onChange: n = I, open: a, ...s } = e, i = we({
|
|
22
23
|
defaultExpanded: t,
|
|
23
24
|
isExpanded: a,
|
|
24
|
-
duration:
|
|
25
|
+
duration: Ie,
|
|
25
26
|
easing: "cubic-bezier(0.25, 0.1, 0.25, 1)"
|
|
26
27
|
});
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
28
|
+
return /* @__PURE__ */ o(Y.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ o(
|
|
28
29
|
"div",
|
|
29
30
|
{
|
|
30
31
|
className: l(
|
|
@@ -35,9 +36,9 @@ const I = () => {
|
|
|
35
36
|
...s
|
|
36
37
|
}
|
|
37
38
|
) });
|
|
38
|
-
},
|
|
39
|
-
const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: c } = A(
|
|
40
|
-
return /* @__PURE__ */ o(n, { children: /* @__PURE__ */
|
|
39
|
+
}, Re = (e) => {
|
|
40
|
+
const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: c } = A(Y), m = s({ onClick: () => i(!c) });
|
|
41
|
+
return /* @__PURE__ */ o(n, { children: /* @__PURE__ */ f(
|
|
41
42
|
"button",
|
|
42
43
|
{
|
|
43
44
|
className: l(
|
|
@@ -45,27 +46,27 @@ const I = () => {
|
|
|
45
46
|
"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"
|
|
46
47
|
),
|
|
47
48
|
...a,
|
|
48
|
-
...
|
|
49
|
-
id:
|
|
49
|
+
...m,
|
|
50
|
+
id: oe(m["aria-controls"]),
|
|
50
51
|
children: [
|
|
51
52
|
r,
|
|
52
53
|
/* @__PURE__ */ o(
|
|
53
|
-
|
|
54
|
+
te,
|
|
54
55
|
{
|
|
55
|
-
className: `shrink-0 text-sm ${
|
|
56
|
+
className: `shrink-0 text-sm ${Ce} group-aria-expanded:rotate-180`
|
|
56
57
|
}
|
|
57
58
|
)
|
|
58
59
|
]
|
|
59
60
|
}
|
|
60
61
|
) });
|
|
61
|
-
},
|
|
62
|
-
const { getCollapseProps: r } = A(
|
|
63
|
-
return /* @__PURE__ */ o("div", { ...a, "aria-labelledby":
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const
|
|
62
|
+
}, ke = (e) => {
|
|
63
|
+
const { getCollapseProps: r } = A(Y), { className: t, ...n } = e, a = r();
|
|
64
|
+
return /* @__PURE__ */ o("div", { ...a, "aria-labelledby": oe(a.id), children: /* @__PURE__ */ o("div", { className: l(t, "p-5 pb-10"), ...n }) });
|
|
65
|
+
}, oe = (e) => e + "toggle";
|
|
66
|
+
X.Item = Ee;
|
|
67
|
+
X.Header = Re;
|
|
68
|
+
X.Content = ke;
|
|
69
|
+
const dt = (e) => {
|
|
69
70
|
const { className: r, children: t, heading: n, severity: a = "alert", ...s } = e;
|
|
70
71
|
return /* @__PURE__ */ o(
|
|
71
72
|
"section",
|
|
@@ -76,58 +77,23 @@ const Et = (e) => {
|
|
|
76
77
|
}),
|
|
77
78
|
role: "alert",
|
|
78
79
|
...s,
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ f("div", { className: "flex justify-center", children: [
|
|
80
81
|
/* @__PURE__ */ o(
|
|
81
|
-
|
|
82
|
+
Se,
|
|
82
83
|
{
|
|
83
84
|
className: "mr-4 flex-none md:mr-8 md:text-2xl",
|
|
84
85
|
severity: a
|
|
85
86
|
}
|
|
86
87
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ f("div", { className: "w-prose flex-initial", children: [
|
|
88
89
|
/* @__PURE__ */ o("h2", { className: "h4 mb-2", children: n }),
|
|
89
90
|
t
|
|
90
91
|
] })
|
|
91
92
|
] })
|
|
92
93
|
}
|
|
93
94
|
);
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
Object.defineProperty(N, "__esModule", { value: !0 });
|
|
97
|
-
N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
|
|
98
|
-
var Ve = function() {
|
|
99
|
-
};
|
|
100
|
-
N.noop = Ve;
|
|
101
|
-
function Te(e) {
|
|
102
|
-
for (var r = [], t = 1; t < arguments.length; t++)
|
|
103
|
-
r[t - 1] = arguments[t];
|
|
104
|
-
e && e.addEventListener && e.addEventListener.apply(e, r);
|
|
105
|
-
}
|
|
106
|
-
N.on = Te;
|
|
107
|
-
function Fe(e) {
|
|
108
|
-
for (var r = [], t = 1; t < arguments.length; t++)
|
|
109
|
-
r[t - 1] = arguments[t];
|
|
110
|
-
e && e.removeEventListener && e.removeEventListener.apply(e, r);
|
|
111
|
-
}
|
|
112
|
-
N.off = Fe;
|
|
113
|
-
N.isBrowser = typeof window < "u";
|
|
114
|
-
N.isNavigator = typeof navigator < "u";
|
|
115
|
-
Object.defineProperty(le, "__esModule", { value: !0 });
|
|
116
|
-
var $ = K, Je = N, Oe = function(e, r) {
|
|
117
|
-
return r !== void 0 ? r : Je.isBrowser ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
118
|
-
}, je = function(e, r) {
|
|
119
|
-
var t = $.useState(Oe(e, r)), n = t[0], a = t[1];
|
|
120
|
-
return $.useEffect(function() {
|
|
121
|
-
var s = !0, i = window.matchMedia(e), c = function() {
|
|
122
|
-
s && a(!!i.matches);
|
|
123
|
-
};
|
|
124
|
-
return i.addListener(c), a(i.matches), function() {
|
|
125
|
-
s = !1, i.removeListener(c);
|
|
126
|
-
};
|
|
127
|
-
}, [e]), n;
|
|
128
|
-
}, de = le.default = je;
|
|
129
|
-
const Ze = "(prefers-reduced-motion: reduce)", Ct = (e = !1) => de(Ze, e);
|
|
130
|
-
function ce(e) {
|
|
95
|
+
}, Se = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ o(re, { className: l(r, "text-red") }) : /* @__PURE__ */ o(ne, { className: l(r, "text-orange") }), qe = "(prefers-reduced-motion: reduce)", ct = (e = !1) => ae(qe, { initializeWithValue: e });
|
|
96
|
+
function se(e) {
|
|
131
97
|
switch (e) {
|
|
132
98
|
case "gray":
|
|
133
99
|
return "bg-gray-lightest";
|
|
@@ -141,34 +107,34 @@ function ce(e) {
|
|
|
141
107
|
return "bg-sky-light";
|
|
142
108
|
}
|
|
143
109
|
}
|
|
144
|
-
const
|
|
110
|
+
const Le = (e) => ae("(max-width: 767.9px)", { initializeWithValue: e });
|
|
145
111
|
function L(e, r = !0) {
|
|
146
|
-
const [t, n] =
|
|
112
|
+
const [t, n] = q("indeterminate"), [a, s] = q(), i = N((d) => {
|
|
147
113
|
d.target.checkValidity() && (n("valid"), s(void 0));
|
|
148
|
-
}, []), c =
|
|
114
|
+
}, []), c = N(
|
|
149
115
|
(d) => {
|
|
150
116
|
t !== "indeterminate" && d.target.checkValidity() && (n("valid"), s(void 0));
|
|
151
117
|
},
|
|
152
118
|
[t]
|
|
153
|
-
),
|
|
119
|
+
), m = N((d) => {
|
|
154
120
|
d.preventDefault();
|
|
155
|
-
const
|
|
156
|
-
s(
|
|
121
|
+
const u = d.target.validationMessage;
|
|
122
|
+
s(u), n("invalid");
|
|
157
123
|
}, []);
|
|
158
|
-
return
|
|
159
|
-
var
|
|
124
|
+
return fe(() => {
|
|
125
|
+
var u;
|
|
160
126
|
const { current: d } = e;
|
|
161
127
|
return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
|
|
162
|
-
((
|
|
163
|
-
d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid",
|
|
128
|
+
((u = d == null ? void 0 : d.form) == null ? void 0 : u.noValidate) !== !0 && (d == null || d.addEventListener("blur", i), d == null || d.addEventListener("input", c), d == null || d.addEventListener("invalid", m)), () => {
|
|
129
|
+
d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid", m);
|
|
164
130
|
};
|
|
165
131
|
}, [r, c]), { validity: t, validationMessage: a };
|
|
166
132
|
}
|
|
167
133
|
function R(e) {
|
|
168
|
-
const r =
|
|
134
|
+
const r = $();
|
|
169
135
|
return e ?? r;
|
|
170
136
|
}
|
|
171
|
-
const
|
|
137
|
+
const mt = (e) => {
|
|
172
138
|
const {
|
|
173
139
|
bgColor: r,
|
|
174
140
|
className: t,
|
|
@@ -176,15 +142,15 @@ const St = (e) => {
|
|
|
176
142
|
heading: a,
|
|
177
143
|
image: s,
|
|
178
144
|
...i
|
|
179
|
-
} = e, c =
|
|
180
|
-
return /* @__PURE__ */ o("article", { className: l(t, c, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */
|
|
145
|
+
} = e, c = se(r);
|
|
146
|
+
return /* @__PURE__ */ o("article", { className: l(t, c, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ f("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
|
|
181
147
|
s,
|
|
182
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ f("div", { className: "max-w-prose", children: [
|
|
183
149
|
a && /* @__PURE__ */ o("h2", { className: "h3 mb-4", children: a }),
|
|
184
150
|
n
|
|
185
151
|
] })
|
|
186
152
|
] }) });
|
|
187
|
-
},
|
|
153
|
+
}, ut = (e) => /* @__PURE__ */ o(
|
|
188
154
|
"img",
|
|
189
155
|
{
|
|
190
156
|
loading: "lazy",
|
|
@@ -192,7 +158,7 @@ const St = (e) => {
|
|
|
192
158
|
className: "w-20 flex-none self-center md:w-32 md:self-start",
|
|
193
159
|
...e
|
|
194
160
|
}
|
|
195
|
-
),
|
|
161
|
+
), Me = {
|
|
196
162
|
"standard-primary": "bg-green border-green text-white",
|
|
197
163
|
"standard-secondary": "bg-white border-green text-black",
|
|
198
164
|
"mint-primary": "bg-mint border-mint text-black",
|
|
@@ -201,7 +167,7 @@ const St = (e) => {
|
|
|
201
167
|
"white-secondary": "bg-transparent border-white text-white",
|
|
202
168
|
"light-green-primary": "bg-green-light border-green-light text-black",
|
|
203
169
|
"light-green-secondary": "bg-transparent border-green-light text-green-light"
|
|
204
|
-
},
|
|
170
|
+
}, bt = h((e, r) => {
|
|
205
171
|
const {
|
|
206
172
|
children: t,
|
|
207
173
|
className: n,
|
|
@@ -209,10 +175,10 @@ const St = (e) => {
|
|
|
209
175
|
href: s,
|
|
210
176
|
loading: i,
|
|
211
177
|
type: c = "button",
|
|
212
|
-
variant:
|
|
178
|
+
variant: m = "primary",
|
|
213
179
|
...d
|
|
214
|
-
} = e,
|
|
215
|
-
return /* @__PURE__ */ o(
|
|
180
|
+
} = e, u = A(M), b = Me[`${a ?? u}-${m}`], p = l(n, b, "button"), v = i ? /* @__PURE__ */ o(Pe, { children: t }) : t;
|
|
181
|
+
return /* @__PURE__ */ o(O, { children: s ? /* @__PURE__ */ o(
|
|
216
182
|
"a",
|
|
217
183
|
{
|
|
218
184
|
"aria-busy": i ? !0 : void 0,
|
|
@@ -220,7 +186,7 @@ const St = (e) => {
|
|
|
220
186
|
href: s,
|
|
221
187
|
ref: r,
|
|
222
188
|
className: p,
|
|
223
|
-
children:
|
|
189
|
+
children: v
|
|
224
190
|
}
|
|
225
191
|
) : /* @__PURE__ */ o(
|
|
226
192
|
"button",
|
|
@@ -230,34 +196,34 @@ const St = (e) => {
|
|
|
230
196
|
type: c,
|
|
231
197
|
ref: r,
|
|
232
198
|
className: p,
|
|
233
|
-
children:
|
|
199
|
+
children: v
|
|
234
200
|
}
|
|
235
201
|
) });
|
|
236
|
-
}),
|
|
237
|
-
|
|
202
|
+
}), Pe = (e) => /* @__PURE__ */ f(O, { children: [
|
|
203
|
+
ie(e.children),
|
|
238
204
|
/* @__PURE__ */ o(
|
|
239
205
|
"span",
|
|
240
206
|
{
|
|
241
207
|
className: "!visible absolute bottom-1 left-1 right-1 top-1 grid place-items-center overflow-hidden bg-inherit",
|
|
242
208
|
"aria-hidden": !0,
|
|
243
|
-
children: /* @__PURE__ */ o(
|
|
209
|
+
children: /* @__PURE__ */ o(he, { className: "animate-spin" })
|
|
244
210
|
}
|
|
245
211
|
)
|
|
246
212
|
] });
|
|
247
|
-
function
|
|
248
|
-
return
|
|
249
|
-
if (!
|
|
213
|
+
function ie(e) {
|
|
214
|
+
return Z.map(e, (r) => {
|
|
215
|
+
if (!ee(r))
|
|
250
216
|
return typeof r == "string" ? /* @__PURE__ */ o("span", { children: r }) : r;
|
|
251
217
|
if (r.props.children) {
|
|
252
218
|
const t = {
|
|
253
|
-
children:
|
|
219
|
+
children: ie(r.props.children)
|
|
254
220
|
};
|
|
255
|
-
r =
|
|
221
|
+
r = W(r, t);
|
|
256
222
|
}
|
|
257
223
|
return r;
|
|
258
224
|
});
|
|
259
225
|
}
|
|
260
|
-
const
|
|
226
|
+
const M = w("standard"), le = w(!0), ze = (e, r) => {
|
|
261
227
|
const {
|
|
262
228
|
as: t = "div",
|
|
263
229
|
body: n,
|
|
@@ -266,7 +232,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
266
232
|
rightAlignBody: i = !0,
|
|
267
233
|
...c
|
|
268
234
|
} = e;
|
|
269
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ f(
|
|
270
236
|
t,
|
|
271
237
|
{
|
|
272
238
|
className: l(
|
|
@@ -276,12 +242,12 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
276
242
|
...c,
|
|
277
243
|
ref: r,
|
|
278
244
|
children: [
|
|
279
|
-
/* @__PURE__ */ o(
|
|
245
|
+
/* @__PURE__ */ o(le.Provider, { value: i, children: s }),
|
|
280
246
|
n
|
|
281
247
|
]
|
|
282
248
|
}
|
|
283
249
|
);
|
|
284
|
-
},
|
|
250
|
+
}, Ve = h(ze), Te = h(
|
|
285
251
|
(e, r) => {
|
|
286
252
|
const { className: t, ...n } = e;
|
|
287
253
|
return /* @__PURE__ */ o(
|
|
@@ -293,16 +259,16 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
293
259
|
}
|
|
294
260
|
);
|
|
295
261
|
}
|
|
296
|
-
),
|
|
262
|
+
), Fe = h(
|
|
297
263
|
(e, r) => {
|
|
298
|
-
const { className: t, children: n, ...a } = e, s = A(
|
|
264
|
+
const { className: t, children: n, ...a } = e, s = A(le), i = l(
|
|
299
265
|
t,
|
|
300
266
|
"max-md:rounded-b-3xl w-full",
|
|
301
267
|
s ? "md:rounded-r-3xl" : "md:rounded-l-3xl md:order-1"
|
|
302
268
|
);
|
|
303
|
-
if (
|
|
304
|
-
const c =
|
|
305
|
-
return
|
|
269
|
+
if (ee(n)) {
|
|
270
|
+
const c = Z.only(n);
|
|
271
|
+
return W(c, {
|
|
306
272
|
// @ts-expect-error assume className prop is allowed
|
|
307
273
|
className: i,
|
|
308
274
|
ref: r,
|
|
@@ -311,10 +277,10 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
311
277
|
}
|
|
312
278
|
return /* @__PURE__ */ o("img", { className: i, ref: r, ...a });
|
|
313
279
|
}
|
|
314
|
-
),
|
|
315
|
-
Body:
|
|
316
|
-
Image:
|
|
317
|
-
}),
|
|
280
|
+
), ft = Object.assign({}, Ve, {
|
|
281
|
+
Body: Te,
|
|
282
|
+
Image: Fe
|
|
283
|
+
}), Je = (e, r) => {
|
|
318
284
|
const {
|
|
319
285
|
as: t = "div",
|
|
320
286
|
className: n,
|
|
@@ -332,7 +298,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
332
298
|
ref: r
|
|
333
299
|
}
|
|
334
300
|
);
|
|
335
|
-
},
|
|
301
|
+
}, gt = h(Je), ht = h(
|
|
336
302
|
(e, r) => {
|
|
337
303
|
const { className: t, ...n } = e;
|
|
338
304
|
return /* @__PURE__ */ o(
|
|
@@ -345,9 +311,9 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
345
311
|
}
|
|
346
312
|
);
|
|
347
313
|
}
|
|
348
|
-
),
|
|
314
|
+
), pt = h(
|
|
349
315
|
(e, r) => {
|
|
350
|
-
const { bgColor: t, className: n, ...a } = e, s =
|
|
316
|
+
const { bgColor: t, className: n, ...a } = e, s = se(t);
|
|
351
317
|
return /* @__PURE__ */ o("div", { className: l(s, n), children: /* @__PURE__ */ o(
|
|
352
318
|
"div",
|
|
353
319
|
{
|
|
@@ -357,12 +323,12 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
357
323
|
}
|
|
358
324
|
) });
|
|
359
325
|
}
|
|
360
|
-
),
|
|
326
|
+
), At = h(
|
|
361
327
|
(e, r) => {
|
|
362
328
|
const { className: t, ...n } = e;
|
|
363
329
|
return /* @__PURE__ */ o("div", { className: l(t, "p-8 md:px-10"), ...n, ref: r });
|
|
364
330
|
}
|
|
365
|
-
),
|
|
331
|
+
), xt = h((e, r) => {
|
|
366
332
|
const { className: t, ...n } = e;
|
|
367
333
|
return /* @__PURE__ */ o(
|
|
368
334
|
"a",
|
|
@@ -375,7 +341,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
375
341
|
...n
|
|
376
342
|
}
|
|
377
343
|
);
|
|
378
|
-
}),
|
|
344
|
+
}), vt = h(
|
|
379
345
|
(e, r) => {
|
|
380
346
|
const {
|
|
381
347
|
children: t,
|
|
@@ -384,16 +350,16 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
384
350
|
id: s,
|
|
385
351
|
disableValidation: i = !1,
|
|
386
352
|
...c
|
|
387
|
-
} = e,
|
|
388
|
-
|
|
353
|
+
} = e, m = E(null), { validity: d, validationMessage: u } = L(
|
|
354
|
+
m,
|
|
389
355
|
!i
|
|
390
|
-
),
|
|
391
|
-
return /* @__PURE__ */
|
|
392
|
-
/* @__PURE__ */
|
|
356
|
+
), g = R(s), b = g + "err", p = a || u;
|
|
357
|
+
return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
|
|
358
|
+
/* @__PURE__ */ f("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
|
|
393
359
|
/* @__PURE__ */ o(
|
|
394
360
|
"input",
|
|
395
361
|
{
|
|
396
|
-
id:
|
|
362
|
+
id: g,
|
|
397
363
|
className: l(
|
|
398
364
|
"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",
|
|
399
365
|
{
|
|
@@ -404,32 +370,32 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
404
370
|
ref: r,
|
|
405
371
|
type: "checkbox",
|
|
406
372
|
...c,
|
|
407
|
-
"aria-describedby": p ?
|
|
373
|
+
"aria-describedby": p ? b : void 0,
|
|
408
374
|
"aria-invalid": !!a || d === "invalid"
|
|
409
375
|
}
|
|
410
376
|
),
|
|
411
377
|
t
|
|
412
378
|
] }),
|
|
413
|
-
p && /* @__PURE__ */ o(k, { id:
|
|
379
|
+
p && /* @__PURE__ */ o(k, { id: b, children: p })
|
|
414
380
|
] });
|
|
415
381
|
}
|
|
416
|
-
),
|
|
382
|
+
), je = {
|
|
417
383
|
sky: "bg-sky border-sky",
|
|
418
384
|
"red-light": "bg-red-light border-red-light",
|
|
419
385
|
mint: "bg-mint border-mint",
|
|
420
386
|
"orange-light": "bg-orange-light border-orange-light",
|
|
421
387
|
"green-light": "bg-green-light border-green-light",
|
|
422
388
|
"blue-light": "bg-blue-light border-blue-light"
|
|
423
|
-
},
|
|
389
|
+
}, Oe = {
|
|
424
390
|
sky: "text-blue-dark",
|
|
425
391
|
"red-light": "text-red",
|
|
426
392
|
mint: "text-green",
|
|
427
393
|
"orange-light": "text-black",
|
|
428
394
|
"green-light": "text-green",
|
|
429
395
|
"blue-light": "text-blue-dark"
|
|
430
|
-
},
|
|
431
|
-
const { className: r, color: t, icon: n, children: a, variant: s = "filled" } = e, i = t &&
|
|
432
|
-
return /* @__PURE__ */
|
|
396
|
+
}, Nt = (e) => {
|
|
397
|
+
const { className: r, color: t, icon: n, children: a, variant: s = "filled" } = e, i = t && je[t], c = t && Oe[t];
|
|
398
|
+
return /* @__PURE__ */ f(
|
|
433
399
|
"div",
|
|
434
400
|
{
|
|
435
401
|
className: l(
|
|
@@ -451,9 +417,9 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
451
417
|
]
|
|
452
418
|
}
|
|
453
419
|
);
|
|
454
|
-
},
|
|
420
|
+
}, wt = (e) => {
|
|
455
421
|
const { className: r, children: t, ...n } = e;
|
|
456
|
-
return /* @__PURE__ */ o(
|
|
422
|
+
return /* @__PURE__ */ o(M.Provider, { value: "white", children: /* @__PURE__ */ o(
|
|
457
423
|
"footer",
|
|
458
424
|
{
|
|
459
425
|
className: l(
|
|
@@ -465,9 +431,9 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
465
431
|
children: /* @__PURE__ */ o("div", { className: "container", children: t })
|
|
466
432
|
}
|
|
467
433
|
) });
|
|
468
|
-
},
|
|
434
|
+
}, yt = (e) => {
|
|
469
435
|
const { heading: r, children: t, className: n, ...a } = e;
|
|
470
|
-
return /* @__PURE__ */
|
|
436
|
+
return /* @__PURE__ */ f(
|
|
471
437
|
"form",
|
|
472
438
|
{
|
|
473
439
|
className: l(
|
|
@@ -476,12 +442,12 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
476
442
|
),
|
|
477
443
|
...a,
|
|
478
444
|
children: [
|
|
479
|
-
r && /* @__PURE__ */ o(
|
|
445
|
+
r && /* @__PURE__ */ o(Ze, { children: r }),
|
|
480
446
|
/* @__PURE__ */ o("div", { className: "p-6 md:p-10", children: t })
|
|
481
447
|
]
|
|
482
448
|
}
|
|
483
449
|
);
|
|
484
|
-
},
|
|
450
|
+
}, Ze = (e) => {
|
|
485
451
|
const { className: r, ...t } = e;
|
|
486
452
|
return /* @__PURE__ */ o(
|
|
487
453
|
"h2",
|
|
@@ -493,7 +459,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
493
459
|
...t
|
|
494
460
|
}
|
|
495
461
|
);
|
|
496
|
-
},
|
|
462
|
+
}, It = (e) => {
|
|
497
463
|
const { className: r, ...t } = e;
|
|
498
464
|
return /* @__PURE__ */ o(
|
|
499
465
|
"div",
|
|
@@ -509,7 +475,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
509
475
|
);
|
|
510
476
|
}, k = (e) => {
|
|
511
477
|
const { children: r, className: t, ...n } = e;
|
|
512
|
-
return /* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ f(
|
|
513
479
|
"div",
|
|
514
480
|
{
|
|
515
481
|
className: l(
|
|
@@ -519,17 +485,17 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
519
485
|
"aria-live": "polite",
|
|
520
486
|
...n,
|
|
521
487
|
children: [
|
|
522
|
-
/* @__PURE__ */ o(
|
|
488
|
+
/* @__PURE__ */ o(re, { className: "text-red flex-shrink-0" }),
|
|
523
489
|
r
|
|
524
490
|
]
|
|
525
491
|
}
|
|
526
492
|
);
|
|
527
|
-
},
|
|
493
|
+
}, P = (e) => {
|
|
528
494
|
const { className: r, children: t, ...n } = e;
|
|
529
495
|
return /* @__PURE__ */ o("div", { className: l(r, "text-gray-dark text-sm"), ...n, children: t });
|
|
530
|
-
},
|
|
496
|
+
}, z = (e) => {
|
|
531
497
|
const { className: r, children: t, isRequired: n, isInvalid: a, ...s } = e;
|
|
532
|
-
return /* @__PURE__ */
|
|
498
|
+
return /* @__PURE__ */ f(
|
|
533
499
|
"label",
|
|
534
500
|
{
|
|
535
501
|
className: l(r, "block cursor-pointer font-semibold"),
|
|
@@ -549,9 +515,9 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
549
515
|
]
|
|
550
516
|
}
|
|
551
517
|
);
|
|
552
|
-
},
|
|
518
|
+
}, Ct = (e) => {
|
|
553
519
|
const { className: r, heading: t, text: n, ...a } = e;
|
|
554
|
-
return /* @__PURE__ */
|
|
520
|
+
return /* @__PURE__ */ f(
|
|
555
521
|
"div",
|
|
556
522
|
{
|
|
557
523
|
className: l(
|
|
@@ -575,7 +541,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
575
541
|
]
|
|
576
542
|
}
|
|
577
543
|
);
|
|
578
|
-
},
|
|
544
|
+
}, We = (e) => {
|
|
579
545
|
const { className: r, collapsed: t, step: n, onClick: a, children: s, formStatus: i } = e;
|
|
580
546
|
return /* @__PURE__ */ o(
|
|
581
547
|
"button",
|
|
@@ -583,13 +549,19 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
583
549
|
type: "button",
|
|
584
550
|
"aria-disabled": t,
|
|
585
551
|
onClick: a,
|
|
586
|
-
className: l(
|
|
587
|
-
|
|
588
|
-
"border-
|
|
589
|
-
|
|
590
|
-
|
|
552
|
+
className: l(
|
|
553
|
+
r,
|
|
554
|
+
"border-blue-dark w-full rounded-t-lg border-2 py-4 pl-4 md:py-8 ",
|
|
555
|
+
{
|
|
556
|
+
"bg-blue-dark": !t,
|
|
557
|
+
"border-black bg-white": t && i !== "completed",
|
|
558
|
+
"border-green bg-green text-white": t && i === "completed",
|
|
559
|
+
"rounded-t-2xl md:rounded-t-3xl": n === 1,
|
|
560
|
+
"rounded-lg": t
|
|
561
|
+
}
|
|
562
|
+
),
|
|
591
563
|
children: /* @__PURE__ */ o(
|
|
592
|
-
|
|
564
|
+
Ke,
|
|
593
565
|
{
|
|
594
566
|
collapsed: t,
|
|
595
567
|
step: n,
|
|
@@ -599,7 +571,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
599
571
|
)
|
|
600
572
|
}
|
|
601
573
|
);
|
|
602
|
-
},
|
|
574
|
+
}, Ke = (e) => {
|
|
603
575
|
const { collapsed: r, step: t, children: n, formStatus: a } = e, s = C(() => {
|
|
604
576
|
switch (a) {
|
|
605
577
|
case "blank":
|
|
@@ -614,10 +586,10 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
614
586
|
case "blank":
|
|
615
587
|
return /* @__PURE__ */ o("div", { children: t });
|
|
616
588
|
case "completed":
|
|
617
|
-
return /* @__PURE__ */ o(
|
|
589
|
+
return /* @__PURE__ */ o(pe, { className: "h-10 w-10 md:h-12 md:w-12" });
|
|
618
590
|
}
|
|
619
591
|
}, [a, t, r]);
|
|
620
|
-
return /* @__PURE__ */
|
|
592
|
+
return /* @__PURE__ */ f(
|
|
621
593
|
"h2",
|
|
622
594
|
{
|
|
623
595
|
className: l(
|
|
@@ -656,7 +628,7 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
656
628
|
]
|
|
657
629
|
}
|
|
658
630
|
);
|
|
659
|
-
},
|
|
631
|
+
}, Q = w([
|
|
660
632
|
{
|
|
661
633
|
activeStep: 1,
|
|
662
634
|
formData: {}
|
|
@@ -664,29 +636,45 @@ const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
|
664
636
|
() => {
|
|
665
637
|
}
|
|
666
638
|
]);
|
|
667
|
-
function
|
|
668
|
-
const [
|
|
639
|
+
function Et() {
|
|
640
|
+
const [e] = A(Q);
|
|
641
|
+
return {
|
|
642
|
+
activeStep: e.activeStep,
|
|
643
|
+
formData: e.formData
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
function Xe(e) {
|
|
647
|
+
const [r, t] = A(Q), n = N(async () => {
|
|
669
648
|
t({ type: "PREV_STEP" });
|
|
670
|
-
}, [t]), a =
|
|
671
|
-
(
|
|
649
|
+
}, [t]), a = N(
|
|
650
|
+
(c) => {
|
|
672
651
|
t({
|
|
673
652
|
type: "SET_FORM_STEP_DATA",
|
|
674
653
|
formId: `form${e}`,
|
|
675
|
-
formValues:
|
|
676
|
-
})
|
|
654
|
+
formValues: c
|
|
655
|
+
});
|
|
677
656
|
},
|
|
678
657
|
[t, e]
|
|
658
|
+
), s = N(() => {
|
|
659
|
+
t({ type: "NEXT_STEP" });
|
|
660
|
+
}, [t]), i = N(
|
|
661
|
+
(c) => {
|
|
662
|
+
a(c), s();
|
|
663
|
+
},
|
|
664
|
+
[s, a]
|
|
679
665
|
);
|
|
680
666
|
return {
|
|
681
667
|
isActive: r.activeStep === e,
|
|
682
668
|
activeStep: r.activeStep,
|
|
683
|
-
setActiveStep: (
|
|
669
|
+
setActiveStep: (c) => t({ type: "SET_STEP", step: c }),
|
|
684
670
|
previousFormStep: n,
|
|
685
|
-
|
|
671
|
+
nextFormStep: s,
|
|
672
|
+
submitAndNextFormStep: i,
|
|
673
|
+
setFormData: a,
|
|
686
674
|
formData: r.formData
|
|
687
675
|
};
|
|
688
676
|
}
|
|
689
|
-
function
|
|
677
|
+
function Ye(e, r) {
|
|
690
678
|
switch (r.type) {
|
|
691
679
|
case "NEXT_STEP":
|
|
692
680
|
return {
|
|
@@ -713,75 +701,57 @@ function rt(e, r) {
|
|
|
713
701
|
};
|
|
714
702
|
}
|
|
715
703
|
}
|
|
716
|
-
function
|
|
717
|
-
const [r, t] =
|
|
704
|
+
function Rt({ children: e }) {
|
|
705
|
+
const [r, t] = ge(Ye, {
|
|
718
706
|
activeStep: 1,
|
|
719
707
|
formData: {}
|
|
720
708
|
}), n = C(() => [r, t], [r, t]);
|
|
721
|
-
return /* @__PURE__ */ o(
|
|
709
|
+
return /* @__PURE__ */ o(Q.Provider, { value: n, children: e });
|
|
722
710
|
}
|
|
723
|
-
|
|
724
|
-
Object.defineProperty(T, "__esModule", { value: !0 });
|
|
725
|
-
T.useFirstMountState = void 0;
|
|
726
|
-
var nt = K;
|
|
727
|
-
function at() {
|
|
728
|
-
var e = nt.useRef(!0);
|
|
729
|
-
return e.current ? (e.current = !1, !0) : e.current;
|
|
730
|
-
}
|
|
731
|
-
T.useFirstMountState = at;
|
|
732
|
-
Object.defineProperty(be, "__esModule", { value: !0 });
|
|
733
|
-
var ot = K, st = T, it = function(e, r) {
|
|
734
|
-
var t = st.useFirstMountState();
|
|
735
|
-
ot.useEffect(function() {
|
|
736
|
-
if (!t)
|
|
737
|
-
return e();
|
|
738
|
-
}, r);
|
|
739
|
-
}, lt = be.default = it;
|
|
740
|
-
const Kt = (e) => {
|
|
711
|
+
const kt = (e) => {
|
|
741
712
|
const {
|
|
742
713
|
children: r,
|
|
743
714
|
heading: t,
|
|
744
715
|
step: n,
|
|
745
716
|
formStatus: a = "blank",
|
|
746
717
|
onSubmit: s,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
718
|
+
className: i,
|
|
719
|
+
...c
|
|
720
|
+
} = e, { isActive: m, setActiveStep: d, activeStep: u } = Xe(n), g = E(null), b = N(() => {
|
|
721
|
+
n < u && d(n);
|
|
722
|
+
}, [u, n, d]);
|
|
723
|
+
return ye(() => {
|
|
724
|
+
var p;
|
|
725
|
+
m && ((p = g.current) == null || p.scrollIntoView({ behavior: "smooth" }));
|
|
726
|
+
}, [m]), /* @__PURE__ */ f(
|
|
755
727
|
"form",
|
|
756
728
|
{
|
|
757
|
-
className: l(
|
|
758
|
-
"border-
|
|
759
|
-
|
|
760
|
-
{ "border-none": a === "completed" && !c }
|
|
761
|
-
),
|
|
729
|
+
className: l("block", i, {
|
|
730
|
+
"border-none": a === "completed" && !m
|
|
731
|
+
}),
|
|
762
732
|
onSubmit: s,
|
|
763
|
-
ref:
|
|
764
|
-
...
|
|
733
|
+
ref: g,
|
|
734
|
+
...c,
|
|
765
735
|
children: [
|
|
766
736
|
/* @__PURE__ */ o(
|
|
767
|
-
|
|
737
|
+
We,
|
|
768
738
|
{
|
|
769
739
|
step: n,
|
|
770
740
|
formStatus: a,
|
|
771
|
-
collapsed: !
|
|
772
|
-
onClick:
|
|
741
|
+
collapsed: !m,
|
|
742
|
+
onClick: b,
|
|
773
743
|
children: t
|
|
774
744
|
}
|
|
775
745
|
),
|
|
776
|
-
|
|
746
|
+
m && /* @__PURE__ */ o("div", { className: "border-blue-dark relative rounded-b-lg border-2 p-6 md:p-10", children: r })
|
|
777
747
|
]
|
|
778
748
|
}
|
|
779
749
|
);
|
|
780
750
|
};
|
|
781
|
-
function
|
|
751
|
+
function de(e) {
|
|
782
752
|
return e !== "vertical-split" && e !== "below-center" && e !== "below-left";
|
|
783
753
|
}
|
|
784
|
-
const
|
|
754
|
+
const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), St = h((e, r) => {
|
|
785
755
|
const {
|
|
786
756
|
bgColor: t = "white",
|
|
787
757
|
children: n,
|
|
@@ -789,19 +759,19 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
789
759
|
contentPosition: s = "below-center",
|
|
790
760
|
image: i,
|
|
791
761
|
...c
|
|
792
|
-
} = e,
|
|
762
|
+
} = e, m = i != null, d = m ? s : "below-center", u = C(
|
|
793
763
|
() => ({
|
|
794
764
|
bgColor: t,
|
|
795
765
|
contentPosition: d,
|
|
796
|
-
hasImage:
|
|
766
|
+
hasImage: m
|
|
797
767
|
}),
|
|
798
|
-
[t, d,
|
|
768
|
+
[t, d, m]
|
|
799
769
|
);
|
|
800
770
|
return /* @__PURE__ */ o(
|
|
801
|
-
|
|
771
|
+
M.Provider,
|
|
802
772
|
{
|
|
803
773
|
value: t === "white" ? "standard" : "mint",
|
|
804
|
-
children: /* @__PURE__ */ o(
|
|
774
|
+
children: /* @__PURE__ */ o(V.Provider, { value: u, children: /* @__PURE__ */ f(
|
|
805
775
|
"div",
|
|
806
776
|
{
|
|
807
777
|
className: l(
|
|
@@ -812,7 +782,7 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
812
782
|
"md:grid-cols-[50%,50%]": d === "vertical-split"
|
|
813
783
|
}
|
|
814
784
|
),
|
|
815
|
-
style:
|
|
785
|
+
style: de(d) ? { gridTemplateAreas: '"hero"' } : void 0,
|
|
816
786
|
...c,
|
|
817
787
|
ref: r,
|
|
818
788
|
children: [
|
|
@@ -823,10 +793,10 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
823
793
|
) })
|
|
824
794
|
}
|
|
825
795
|
);
|
|
826
|
-
}),
|
|
796
|
+
}), qt = h(
|
|
827
797
|
(e, r) => {
|
|
828
|
-
const { contentPosition: t } = A(
|
|
829
|
-
return /* @__PURE__ */
|
|
798
|
+
const { contentPosition: t } = A(V);
|
|
799
|
+
return /* @__PURE__ */ f(
|
|
830
800
|
"picture",
|
|
831
801
|
{
|
|
832
802
|
className: l(e.className, "aspect-w-6 aspect-h-7 block", {
|
|
@@ -851,10 +821,10 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
851
821
|
}
|
|
852
822
|
);
|
|
853
823
|
}
|
|
854
|
-
),
|
|
824
|
+
), Lt = h(
|
|
855
825
|
(e, r) => {
|
|
856
|
-
const { bgColor: t, contentPosition: n, hasImage: a } = A(
|
|
857
|
-
return /* @__PURE__ */
|
|
826
|
+
const { bgColor: t, contentPosition: n, hasImage: a } = A(V), { children: s, className: i, heading: c, description: m, ...d } = e, u = de(n);
|
|
827
|
+
return /* @__PURE__ */ f(
|
|
858
828
|
"div",
|
|
859
829
|
{
|
|
860
830
|
className: l(
|
|
@@ -876,7 +846,7 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
876
846
|
// Below left style
|
|
877
847
|
"md:-mt-32 md:ml-[8%] md:max-w-[58%] md:text-left": n === "below-left",
|
|
878
848
|
// styles for when the contain is fully contained within the image
|
|
879
|
-
"md:mx-32 md:my-9 md:w-2/5":
|
|
849
|
+
"md:mx-32 md:my-9 md:w-2/5": u,
|
|
880
850
|
"self-end justify-self-start": n === "bottom-left",
|
|
881
851
|
"self-start justify-self-start": n === "top-left",
|
|
882
852
|
"self-start justify-self-end": n === "top-right",
|
|
@@ -885,19 +855,19 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
885
855
|
}
|
|
886
856
|
),
|
|
887
857
|
...d,
|
|
888
|
-
style:
|
|
858
|
+
style: u ? { gridArea: "hero" } : void 0,
|
|
889
859
|
ref: r,
|
|
890
860
|
children: [
|
|
891
861
|
/* @__PURE__ */ o("h1", { children: c }),
|
|
892
|
-
|
|
862
|
+
m && /* @__PURE__ */ o("p", { className: "text-lg font-semibold md:text-xl", children: m }),
|
|
893
863
|
s
|
|
894
864
|
]
|
|
895
865
|
}
|
|
896
866
|
);
|
|
897
867
|
}
|
|
898
|
-
),
|
|
868
|
+
), Mt = h(
|
|
899
869
|
(e, r) => {
|
|
900
|
-
const { className: t, ...n } = e, { contentPosition: a } = A(
|
|
870
|
+
const { className: t, ...n } = e, { contentPosition: a } = A(V);
|
|
901
871
|
return /* @__PURE__ */ o(
|
|
902
872
|
"div",
|
|
903
873
|
{
|
|
@@ -914,7 +884,7 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
914
884
|
}
|
|
915
885
|
);
|
|
916
886
|
}
|
|
917
|
-
),
|
|
887
|
+
), ce = h((e, r) => {
|
|
918
888
|
const {
|
|
919
889
|
className: t,
|
|
920
890
|
isInvalid: n,
|
|
@@ -922,10 +892,10 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
922
892
|
as: s,
|
|
923
893
|
type: i,
|
|
924
894
|
rightAddon: c,
|
|
925
|
-
leftAddon:
|
|
895
|
+
leftAddon: m,
|
|
926
896
|
...d
|
|
927
|
-
} = e,
|
|
928
|
-
return /* @__PURE__ */
|
|
897
|
+
} = e, u = s ?? "input", g = Qe(u, i);
|
|
898
|
+
return /* @__PURE__ */ f(
|
|
929
899
|
"div",
|
|
930
900
|
{
|
|
931
901
|
className: l(
|
|
@@ -936,20 +906,20 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
936
906
|
"border-red focus-within:border-red": n,
|
|
937
907
|
"w-fit": a != null,
|
|
938
908
|
"w-full": a == null,
|
|
939
|
-
"pl-4":
|
|
909
|
+
"pl-4": m,
|
|
940
910
|
"pr-4": c
|
|
941
911
|
}
|
|
942
912
|
),
|
|
943
913
|
children: [
|
|
944
|
-
|
|
914
|
+
m,
|
|
945
915
|
/* @__PURE__ */ o(
|
|
946
|
-
|
|
916
|
+
u,
|
|
947
917
|
{
|
|
948
918
|
"aria-invalid": n,
|
|
949
919
|
ref: r,
|
|
950
920
|
className: "focus:none placeholder-gray w-full rounded-lg border-none px-4 py-3.5 focus:outline-none",
|
|
951
921
|
size: a,
|
|
952
|
-
type:
|
|
922
|
+
type: g,
|
|
953
923
|
...d
|
|
954
924
|
}
|
|
955
925
|
),
|
|
@@ -958,28 +928,28 @@ const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
958
928
|
}
|
|
959
929
|
);
|
|
960
930
|
});
|
|
961
|
-
function
|
|
931
|
+
function Qe(e, r) {
|
|
962
932
|
if (r != null)
|
|
963
933
|
return r;
|
|
964
934
|
if (e === "input")
|
|
965
935
|
return "text";
|
|
966
936
|
}
|
|
967
|
-
const
|
|
937
|
+
const Pt = (e) => {
|
|
968
938
|
let r = "";
|
|
969
|
-
return e.icon && (r = "inline-flex items-center gap-2"), /* @__PURE__ */
|
|
939
|
+
return e.icon && (r = "inline-flex items-center gap-2"), /* @__PURE__ */ f("a", { className: r, href: e.href, children: [
|
|
970
940
|
e.icon,
|
|
971
941
|
e.children
|
|
972
942
|
] });
|
|
973
|
-
},
|
|
943
|
+
}, S = w({
|
|
974
944
|
setIsExpanded: I,
|
|
975
945
|
isExpanded: !1,
|
|
976
946
|
collapsibleId: ""
|
|
977
|
-
}),
|
|
978
|
-
const { className: r, children: t, ...n } = e, a =
|
|
947
|
+
}), zt = (e) => {
|
|
948
|
+
const { className: r, children: t, ...n } = e, a = $(), [s, i] = q(!1), c = C(
|
|
979
949
|
() => ({ isExpanded: s, setIsExpanded: i, collapsibleId: a }),
|
|
980
950
|
[s, a]
|
|
981
951
|
);
|
|
982
|
-
return /* @__PURE__ */ o(
|
|
952
|
+
return /* @__PURE__ */ o(M.Provider, { value: "white", children: /* @__PURE__ */ o(S.Provider, { value: c, children: /* @__PURE__ */ o(
|
|
983
953
|
"div",
|
|
984
954
|
{
|
|
985
955
|
className: l(
|
|
@@ -990,8 +960,8 @@ const Qt = (e) => {
|
|
|
990
960
|
children: /* @__PURE__ */ o("div", { className: "container", children: t })
|
|
991
961
|
}
|
|
992
962
|
) }) });
|
|
993
|
-
},
|
|
994
|
-
const { className: r, children: t, ...n } = e, { isExpanded: a } = A(
|
|
963
|
+
}, Vt = (e) => {
|
|
964
|
+
const { className: r, children: t, ...n } = e, { isExpanded: a } = A(S);
|
|
995
965
|
return /* @__PURE__ */ o(
|
|
996
966
|
"nav",
|
|
997
967
|
{
|
|
@@ -1006,7 +976,7 @@ const Qt = (e) => {
|
|
|
1006
976
|
children: t
|
|
1007
977
|
}
|
|
1008
978
|
);
|
|
1009
|
-
},
|
|
979
|
+
}, Tt = h(
|
|
1010
980
|
(e, r) => {
|
|
1011
981
|
const { active: t, className: n, children: a, ...s } = e;
|
|
1012
982
|
return /* @__PURE__ */ o(
|
|
@@ -1026,10 +996,10 @@ const Qt = (e) => {
|
|
|
1026
996
|
}
|
|
1027
997
|
);
|
|
1028
998
|
}
|
|
1029
|
-
),
|
|
1030
|
-
const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(
|
|
1031
|
-
let n =
|
|
1032
|
-
return e && (n =
|
|
999
|
+
), Ue = () => {
|
|
1000
|
+
const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(S);
|
|
1001
|
+
let n = Ae, a = "Meny";
|
|
1002
|
+
return e && (n = xe, a = "Lukk"), /* @__PURE__ */ f(
|
|
1033
1003
|
"button",
|
|
1034
1004
|
{
|
|
1035
1005
|
"aria-controls": t,
|
|
@@ -1043,9 +1013,9 @@ const Qt = (e) => {
|
|
|
1043
1013
|
]
|
|
1044
1014
|
}
|
|
1045
1015
|
);
|
|
1046
|
-
},
|
|
1016
|
+
}, Ft = (e) => {
|
|
1047
1017
|
const { className: r, children: t, logo: n, ...a } = e;
|
|
1048
|
-
return /* @__PURE__ */
|
|
1018
|
+
return /* @__PURE__ */ f(
|
|
1049
1019
|
"div",
|
|
1050
1020
|
{
|
|
1051
1021
|
className: l(r, "flex items-center justify-between gap-8"),
|
|
@@ -1053,12 +1023,12 @@ const Qt = (e) => {
|
|
|
1053
1023
|
children: [
|
|
1054
1024
|
n,
|
|
1055
1025
|
/* @__PURE__ */ o("div", { className: "hidden md:block", children: t }),
|
|
1056
|
-
/* @__PURE__ */ o(
|
|
1026
|
+
/* @__PURE__ */ o(Ue, {})
|
|
1057
1027
|
]
|
|
1058
1028
|
}
|
|
1059
1029
|
);
|
|
1060
|
-
},
|
|
1061
|
-
const { className: r, children: t, ...n } = e, { collapsibleId: a, isExpanded: s } = A(
|
|
1030
|
+
}, Jt = (e) => {
|
|
1031
|
+
const { className: r, children: t, ...n } = e, { collapsibleId: a, isExpanded: s } = A(S);
|
|
1062
1032
|
return /* @__PURE__ */ o(
|
|
1063
1033
|
"div",
|
|
1064
1034
|
{
|
|
@@ -1071,10 +1041,10 @@ const Qt = (e) => {
|
|
|
1071
1041
|
children: t
|
|
1072
1042
|
}
|
|
1073
1043
|
);
|
|
1074
|
-
},
|
|
1075
|
-
const { isExpanded: r } = A(
|
|
1076
|
-
return !r || !t ? null : /* @__PURE__ */ o(
|
|
1077
|
-
}, y = 2,
|
|
1044
|
+
}, jt = (e) => {
|
|
1045
|
+
const { isExpanded: r } = A(S), t = Le(!1);
|
|
1046
|
+
return !r || !t ? null : /* @__PURE__ */ o(O, { children: e.children });
|
|
1047
|
+
}, y = 2, T = w({ currentPage: 0, pageCount: 0 }), Ot = (e) => {
|
|
1078
1048
|
const {
|
|
1079
1049
|
className: r,
|
|
1080
1050
|
page: t,
|
|
@@ -1083,91 +1053,91 @@ const Qt = (e) => {
|
|
|
1083
1053
|
getItemHref: s,
|
|
1084
1054
|
getItemAriaLabel: i,
|
|
1085
1055
|
nextPageAriaLabel: c,
|
|
1086
|
-
prevPageAriaLabel:
|
|
1056
|
+
prevPageAriaLabel: m,
|
|
1087
1057
|
...d
|
|
1088
|
-
} = e,
|
|
1058
|
+
} = e, u = C(
|
|
1089
1059
|
() => ({
|
|
1090
1060
|
currentPage: Math.max(1, Math.min(t, n)),
|
|
1091
1061
|
pageCount: Math.max(1, n)
|
|
1092
1062
|
}),
|
|
1093
1063
|
[t, n]
|
|
1094
|
-
),
|
|
1095
|
-
a && (p.preventDefault(), a(
|
|
1064
|
+
), g = (b) => (p) => {
|
|
1065
|
+
a && (p.preventDefault(), a(b));
|
|
1096
1066
|
};
|
|
1097
|
-
return /* @__PURE__ */ o(
|
|
1067
|
+
return /* @__PURE__ */ o(T.Provider, { value: u, children: /* @__PURE__ */ f(
|
|
1098
1068
|
"nav",
|
|
1099
1069
|
{
|
|
1100
1070
|
className: l("flex justify-center gap-2 sm:gap-4", r),
|
|
1101
1071
|
...d,
|
|
1102
1072
|
children: [
|
|
1103
1073
|
/* @__PURE__ */ o(
|
|
1104
|
-
|
|
1074
|
+
He,
|
|
1105
1075
|
{
|
|
1106
|
-
"aria-label":
|
|
1076
|
+
"aria-label": m,
|
|
1107
1077
|
href: s(t - 1),
|
|
1108
|
-
onClick:
|
|
1078
|
+
onClick: g(t - 1)
|
|
1109
1079
|
}
|
|
1110
1080
|
),
|
|
1111
1081
|
/* @__PURE__ */ o(
|
|
1112
|
-
|
|
1082
|
+
G,
|
|
1113
1083
|
{
|
|
1114
1084
|
page: 1,
|
|
1115
1085
|
href: s(1),
|
|
1116
|
-
onClick:
|
|
1086
|
+
onClick: g(1),
|
|
1117
1087
|
"aria-label": i(1),
|
|
1118
1088
|
selected: t === 1
|
|
1119
1089
|
}
|
|
1120
1090
|
),
|
|
1121
|
-
n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(
|
|
1122
|
-
/* @__PURE__ */ o(
|
|
1123
|
-
|
|
1091
|
+
n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(De, {}),
|
|
1092
|
+
/* @__PURE__ */ o(Ge, { children: (b) => /* @__PURE__ */ o(
|
|
1093
|
+
G,
|
|
1124
1094
|
{
|
|
1125
|
-
href: s(
|
|
1126
|
-
onClick:
|
|
1127
|
-
"aria-label": i(
|
|
1128
|
-
page:
|
|
1129
|
-
selected:
|
|
1095
|
+
href: s(b),
|
|
1096
|
+
onClick: g(b),
|
|
1097
|
+
"aria-label": i(b),
|
|
1098
|
+
page: b,
|
|
1099
|
+
selected: b === t
|
|
1130
1100
|
},
|
|
1131
|
-
|
|
1101
|
+
b
|
|
1132
1102
|
) }),
|
|
1133
1103
|
/* @__PURE__ */ o(
|
|
1134
|
-
|
|
1104
|
+
Be,
|
|
1135
1105
|
{
|
|
1136
1106
|
"aria-label": c,
|
|
1137
1107
|
href: s(t + 1),
|
|
1138
|
-
onClick:
|
|
1108
|
+
onClick: g(t + 1)
|
|
1139
1109
|
}
|
|
1140
1110
|
)
|
|
1141
1111
|
]
|
|
1142
1112
|
}
|
|
1143
1113
|
) });
|
|
1144
|
-
},
|
|
1145
|
-
const { currentPage: t, pageCount: n } = A(
|
|
1114
|
+
}, Be = h((e, r) => {
|
|
1115
|
+
const { currentPage: t, pageCount: n } = A(T), a = t >= n;
|
|
1146
1116
|
return /* @__PURE__ */ o(
|
|
1147
|
-
|
|
1117
|
+
U,
|
|
1148
1118
|
{
|
|
1149
1119
|
"aria-hidden": a,
|
|
1150
1120
|
className: a ? "invisible" : void 0,
|
|
1151
1121
|
ref: r,
|
|
1152
1122
|
rel: "next",
|
|
1153
1123
|
...e,
|
|
1154
|
-
children: /* @__PURE__ */ o(
|
|
1124
|
+
children: /* @__PURE__ */ o(ve, {})
|
|
1155
1125
|
}
|
|
1156
1126
|
);
|
|
1157
|
-
}),
|
|
1158
|
-
const { currentPage: t } = A(
|
|
1127
|
+
}), He = h((e, r) => {
|
|
1128
|
+
const { currentPage: t } = A(T), n = t <= 1;
|
|
1159
1129
|
return /* @__PURE__ */ o(
|
|
1160
|
-
|
|
1130
|
+
U,
|
|
1161
1131
|
{
|
|
1162
1132
|
"aria-hidden": n,
|
|
1163
1133
|
className: n ? "invisible" : void 0,
|
|
1164
1134
|
ref: r,
|
|
1165
1135
|
rel: "prev",
|
|
1166
1136
|
...e,
|
|
1167
|
-
children: /* @__PURE__ */ o(
|
|
1137
|
+
children: /* @__PURE__ */ o(Ne, {})
|
|
1168
1138
|
}
|
|
1169
1139
|
);
|
|
1170
|
-
}),
|
|
1140
|
+
}), U = h((e, r) => {
|
|
1171
1141
|
const { className: t, ...n } = e;
|
|
1172
1142
|
return /* @__PURE__ */ o(
|
|
1173
1143
|
"a",
|
|
@@ -1180,8 +1150,8 @@ const Qt = (e) => {
|
|
|
1180
1150
|
...n
|
|
1181
1151
|
}
|
|
1182
1152
|
);
|
|
1183
|
-
}),
|
|
1184
|
-
const { currentPage: r, pageCount: t } = A(
|
|
1153
|
+
}), De = () => /* @__PURE__ */ o("span", { className: "flex h-9 w-9 cursor-default items-center justify-center border-2 border-transparent sm:h-10 sm:w-10", children: "..." }), Ge = ({ children: e }) => {
|
|
1154
|
+
const { currentPage: r, pageCount: t } = A(T), n = Math.min(
|
|
1185
1155
|
Math.max(2 + y * 2, r + y),
|
|
1186
1156
|
t
|
|
1187
1157
|
);
|
|
@@ -1190,10 +1160,10 @@ const Qt = (e) => {
|
|
|
1190
1160
|
1
|
|
1191
1161
|
);
|
|
1192
1162
|
return a - y === 0 && (a = a - 1), Array.from({ length: n - a }, (i, c) => a + c + 1).map((i) => e(i));
|
|
1193
|
-
},
|
|
1163
|
+
}, G = h((e, r) => {
|
|
1194
1164
|
const { page: t, selected: n, ...a } = e;
|
|
1195
|
-
return /* @__PURE__ */ o(
|
|
1196
|
-
}),
|
|
1165
|
+
return /* @__PURE__ */ o(U, { "aria-current": n ? "page" : void 0, ref: r, ...a, children: t });
|
|
1166
|
+
}), me = w({
|
|
1197
1167
|
defaultValue: void 0,
|
|
1198
1168
|
isControlled: !1,
|
|
1199
1169
|
name: void 0,
|
|
@@ -1201,17 +1171,17 @@ const Qt = (e) => {
|
|
|
1201
1171
|
required: !1,
|
|
1202
1172
|
value: void 0,
|
|
1203
1173
|
error: !1
|
|
1204
|
-
}),
|
|
1205
|
-
const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: c, onChange:
|
|
1206
|
-
return /* @__PURE__ */
|
|
1174
|
+
}), Zt = h((e, r) => {
|
|
1175
|
+
const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: c, onChange: m, required: d, value: u, error: g } = A(me);
|
|
1176
|
+
return /* @__PURE__ */ f("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
|
|
1207
1177
|
/* @__PURE__ */ o(
|
|
1208
1178
|
"input",
|
|
1209
1179
|
{
|
|
1210
|
-
className: l("radio",
|
|
1180
|
+
className: l("radio", g && "border-red"),
|
|
1211
1181
|
defaultChecked: i ? void 0 : a.value === s,
|
|
1212
|
-
checked: i ? a.value ===
|
|
1182
|
+
checked: i ? a.value === u : void 0,
|
|
1213
1183
|
name: c,
|
|
1214
|
-
onChange: i ?
|
|
1184
|
+
onChange: i ? m : void 0,
|
|
1215
1185
|
required: d,
|
|
1216
1186
|
type: "radio",
|
|
1217
1187
|
ref: r,
|
|
@@ -1220,7 +1190,7 @@ const Qt = (e) => {
|
|
|
1220
1190
|
),
|
|
1221
1191
|
t
|
|
1222
1192
|
] });
|
|
1223
|
-
}),
|
|
1193
|
+
}), Wt = h(
|
|
1224
1194
|
(e, r) => {
|
|
1225
1195
|
const t = "value" in e, {
|
|
1226
1196
|
className: n,
|
|
@@ -1228,57 +1198,57 @@ const Qt = (e) => {
|
|
|
1228
1198
|
description: s,
|
|
1229
1199
|
error: i,
|
|
1230
1200
|
id: c,
|
|
1231
|
-
children:
|
|
1201
|
+
children: m,
|
|
1232
1202
|
label: d,
|
|
1233
|
-
name:
|
|
1234
|
-
onChange:
|
|
1235
|
-
required:
|
|
1203
|
+
name: u,
|
|
1204
|
+
onChange: g,
|
|
1205
|
+
required: b,
|
|
1236
1206
|
value: p,
|
|
1237
|
-
...
|
|
1238
|
-
} = e,
|
|
1239
|
-
(
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1207
|
+
...v
|
|
1208
|
+
} = e, x = N(
|
|
1209
|
+
(ue) => {
|
|
1210
|
+
const be = ue.target.value;
|
|
1211
|
+
g == null || g(be);
|
|
1242
1212
|
},
|
|
1243
|
-
[
|
|
1244
|
-
),
|
|
1213
|
+
[g]
|
|
1214
|
+
), F = C(
|
|
1245
1215
|
() => ({
|
|
1246
1216
|
defaultValue: a,
|
|
1247
1217
|
isControlled: t,
|
|
1248
|
-
name:
|
|
1249
|
-
onChange:
|
|
1250
|
-
required:
|
|
1218
|
+
name: u,
|
|
1219
|
+
onChange: x,
|
|
1220
|
+
required: b,
|
|
1251
1221
|
value: p,
|
|
1252
1222
|
error: !!i
|
|
1253
1223
|
}),
|
|
1254
|
-
[a, t,
|
|
1255
|
-
),
|
|
1256
|
-
return /* @__PURE__ */ o(
|
|
1224
|
+
[a, t, u, x, b, p, i]
|
|
1225
|
+
), J = R(c), B = `${J}:label`, H = `${J}:help`, D = J + "err", j = i;
|
|
1226
|
+
return /* @__PURE__ */ o(me.Provider, { value: F, children: /* @__PURE__ */ f(
|
|
1257
1227
|
"div",
|
|
1258
1228
|
{
|
|
1259
1229
|
"aria-describedby": l({
|
|
1260
|
-
[
|
|
1261
|
-
[
|
|
1230
|
+
[D]: j,
|
|
1231
|
+
[H]: s
|
|
1262
1232
|
}) || void 0,
|
|
1263
1233
|
"aria-invalid": !!i,
|
|
1264
|
-
"aria-labelledby": d ?
|
|
1234
|
+
"aria-labelledby": d ? B : void 0,
|
|
1265
1235
|
className: l(n, "flex flex-col gap-4"),
|
|
1266
1236
|
role: "radiogroup",
|
|
1267
1237
|
ref: r,
|
|
1268
|
-
...
|
|
1238
|
+
...v,
|
|
1269
1239
|
children: [
|
|
1270
|
-
d && /* @__PURE__ */ o(
|
|
1271
|
-
s && /* @__PURE__ */ o(
|
|
1272
|
-
|
|
1273
|
-
|
|
1240
|
+
d && /* @__PURE__ */ o(z, { id: B, isRequired: b, isInvalid: !!i, children: d }),
|
|
1241
|
+
s && /* @__PURE__ */ o(P, { id: H, children: s }),
|
|
1242
|
+
m,
|
|
1243
|
+
j && /* @__PURE__ */ o(k, { id: D, children: j })
|
|
1274
1244
|
]
|
|
1275
1245
|
}
|
|
1276
1246
|
) });
|
|
1277
1247
|
}
|
|
1278
|
-
),
|
|
1248
|
+
), _e = h(
|
|
1279
1249
|
(e, r) => {
|
|
1280
1250
|
const { children: t, className: n, isInvalid: a, size: s, ...i } = e, c = s === "small";
|
|
1281
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ f("div", { className: l(n, "relative", c && "text-sm"), children: [
|
|
1282
1252
|
/* @__PURE__ */ o(
|
|
1283
1253
|
"select",
|
|
1284
1254
|
{
|
|
@@ -1294,7 +1264,7 @@ const Qt = (e) => {
|
|
|
1294
1264
|
}
|
|
1295
1265
|
),
|
|
1296
1266
|
/* @__PURE__ */ o(
|
|
1297
|
-
|
|
1267
|
+
te,
|
|
1298
1268
|
{
|
|
1299
1269
|
className: l(
|
|
1300
1270
|
"pointer-events-none absolute bottom-0 top-0 my-auto",
|
|
@@ -1304,7 +1274,7 @@ const Qt = (e) => {
|
|
|
1304
1274
|
)
|
|
1305
1275
|
] });
|
|
1306
1276
|
}
|
|
1307
|
-
),
|
|
1277
|
+
), Kt = h(
|
|
1308
1278
|
(e, r) => {
|
|
1309
1279
|
const {
|
|
1310
1280
|
description: t,
|
|
@@ -1313,41 +1283,41 @@ const Qt = (e) => {
|
|
|
1313
1283
|
label: s,
|
|
1314
1284
|
disableValidation: i = !1,
|
|
1315
1285
|
...c
|
|
1316
|
-
} = e,
|
|
1317
|
-
|
|
1286
|
+
} = e, m = E(null), d = K(m, r), { validity: u, validationMessage: g } = L(
|
|
1287
|
+
m,
|
|
1318
1288
|
!i
|
|
1319
|
-
),
|
|
1320
|
-
return /* @__PURE__ */
|
|
1289
|
+
), b = R(a), p = b + "help", v = b + "err", x = n || g;
|
|
1290
|
+
return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
|
|
1321
1291
|
/* @__PURE__ */ o(
|
|
1322
|
-
|
|
1292
|
+
z,
|
|
1323
1293
|
{
|
|
1324
|
-
htmlFor:
|
|
1294
|
+
htmlFor: b,
|
|
1325
1295
|
isRequired: e.required,
|
|
1326
|
-
isInvalid: !!n ||
|
|
1296
|
+
isInvalid: !!n || u === "invalid",
|
|
1327
1297
|
children: s
|
|
1328
1298
|
}
|
|
1329
1299
|
),
|
|
1330
|
-
t && /* @__PURE__ */ o(
|
|
1300
|
+
t && /* @__PURE__ */ o(P, { id: p, children: t }),
|
|
1331
1301
|
/* @__PURE__ */ o(
|
|
1332
|
-
|
|
1302
|
+
_e,
|
|
1333
1303
|
{
|
|
1334
|
-
id:
|
|
1304
|
+
id: b,
|
|
1335
1305
|
ref: d,
|
|
1336
1306
|
...c,
|
|
1337
|
-
isInvalid: !!n ||
|
|
1307
|
+
isInvalid: !!n || u === "invalid",
|
|
1338
1308
|
"aria-describedby": l({
|
|
1339
|
-
[
|
|
1309
|
+
[v]: x,
|
|
1340
1310
|
[p]: t
|
|
1341
1311
|
}) || void 0
|
|
1342
1312
|
}
|
|
1343
1313
|
),
|
|
1344
|
-
|
|
1314
|
+
x && /* @__PURE__ */ o(k, { id: v, children: x })
|
|
1345
1315
|
] });
|
|
1346
1316
|
}
|
|
1347
|
-
),
|
|
1348
|
-
const { heading: r, children: t, closeSnackbar: n } = e, [a, s] =
|
|
1349
|
-
return /* @__PURE__ */ o("div", { className: "container max-w-[59rem]", children: /* @__PURE__ */ o("div", { className: "bg-orange-light px-8 py-4 max-md:p-4", children: /* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */ o(
|
|
1317
|
+
), Xt = (e) => {
|
|
1318
|
+
const { heading: r, children: t, closeSnackbar: n } = e, [a, s] = q(!1);
|
|
1319
|
+
return /* @__PURE__ */ o("div", { className: "container max-w-[59rem]", children: /* @__PURE__ */ o("div", { className: "bg-orange-light px-8 py-4 max-md:p-4", children: /* @__PURE__ */ f("div", { className: "snackbar grid items-center", children: [
|
|
1320
|
+
/* @__PURE__ */ o(ne, { className: "text-orange snackbar-icon mr-4 self-start md:mr-8 md:text-2xl" }),
|
|
1351
1321
|
/* @__PURE__ */ o(
|
|
1352
1322
|
"h3",
|
|
1353
1323
|
{
|
|
@@ -1360,20 +1330,20 @@ const Qt = (e) => {
|
|
|
1360
1330
|
children: r
|
|
1361
1331
|
}
|
|
1362
1332
|
),
|
|
1363
|
-
/* @__PURE__ */
|
|
1333
|
+
/* @__PURE__ */ f("div", { className: "snackbar-actions flex justify-end gap-4 max-md:mt-3 md:ml-4", children: [
|
|
1364
1334
|
/* @__PURE__ */ o(
|
|
1365
|
-
|
|
1335
|
+
_,
|
|
1366
1336
|
{
|
|
1367
1337
|
"aria-expanded": a,
|
|
1368
1338
|
onClick: () => s(!a),
|
|
1369
1339
|
children: a ? "Les mindre" : "Les mer"
|
|
1370
1340
|
}
|
|
1371
1341
|
),
|
|
1372
|
-
/* @__PURE__ */ o(
|
|
1342
|
+
/* @__PURE__ */ o(_, { onClick: n, children: "Ok" })
|
|
1373
1343
|
] }),
|
|
1374
1344
|
a && t
|
|
1375
1345
|
] }) }) });
|
|
1376
|
-
},
|
|
1346
|
+
}, _ = (e) => /* @__PURE__ */ o(
|
|
1377
1347
|
"button",
|
|
1378
1348
|
{
|
|
1379
1349
|
className: l(
|
|
@@ -1383,21 +1353,21 @@ const Qt = (e) => {
|
|
|
1383
1353
|
...e,
|
|
1384
1354
|
children: e.children
|
|
1385
1355
|
}
|
|
1386
|
-
),
|
|
1356
|
+
), Yt = (e) => /* @__PURE__ */ o(
|
|
1387
1357
|
"div",
|
|
1388
1358
|
{
|
|
1389
1359
|
className: "snackbar-content my-4 max-h-[50vh] max-w-prose overflow-y-auto",
|
|
1390
1360
|
...e,
|
|
1391
1361
|
children: e.children
|
|
1392
1362
|
}
|
|
1393
|
-
),
|
|
1363
|
+
), $e = (e) => {
|
|
1394
1364
|
const { align: r = "center", children: t, className: n, ...a } = e;
|
|
1395
|
-
return /* @__PURE__ */ o("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...a, children:
|
|
1365
|
+
return /* @__PURE__ */ o("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...a, children: Z.map(t, (s) => W(s, {
|
|
1396
1366
|
align: r
|
|
1397
1367
|
})) });
|
|
1398
|
-
},
|
|
1368
|
+
}, et = (e) => {
|
|
1399
1369
|
const { className: r, children: t, bullet: n, align: a = "center", ...s } = e;
|
|
1400
|
-
return /* @__PURE__ */
|
|
1370
|
+
return /* @__PURE__ */ f(
|
|
1401
1371
|
"li",
|
|
1402
1372
|
{
|
|
1403
1373
|
className: l(
|
|
@@ -1407,12 +1377,12 @@ const Qt = (e) => {
|
|
|
1407
1377
|
),
|
|
1408
1378
|
...s,
|
|
1409
1379
|
children: [
|
|
1410
|
-
/* @__PURE__ */ o(
|
|
1380
|
+
/* @__PURE__ */ o(tt, { align: a, children: n }),
|
|
1411
1381
|
t
|
|
1412
1382
|
]
|
|
1413
1383
|
}
|
|
1414
1384
|
);
|
|
1415
|
-
},
|
|
1385
|
+
}, tt = ({ align: e, ...r }) => /* @__PURE__ */ o(
|
|
1416
1386
|
"span",
|
|
1417
1387
|
{
|
|
1418
1388
|
"aria-hidden": !0,
|
|
@@ -1426,8 +1396,8 @@ const Qt = (e) => {
|
|
|
1426
1396
|
...r
|
|
1427
1397
|
}
|
|
1428
1398
|
);
|
|
1429
|
-
|
|
1430
|
-
const
|
|
1399
|
+
$e.Item = et;
|
|
1400
|
+
const Qt = h(
|
|
1431
1401
|
(e, r) => {
|
|
1432
1402
|
const {
|
|
1433
1403
|
description: t,
|
|
@@ -1436,39 +1406,39 @@ const ir = g(
|
|
|
1436
1406
|
label: s,
|
|
1437
1407
|
disableValidation: i = !1,
|
|
1438
1408
|
...c
|
|
1439
|
-
} = e,
|
|
1440
|
-
|
|
1409
|
+
} = e, m = E(null), d = K(m, r), { validity: u, validationMessage: g } = L(
|
|
1410
|
+
m,
|
|
1441
1411
|
!i
|
|
1442
|
-
),
|
|
1443
|
-
return /* @__PURE__ */
|
|
1412
|
+
), b = R(a), p = b + "help", v = b + "err", x = n || g;
|
|
1413
|
+
return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
|
|
1444
1414
|
/* @__PURE__ */ o(
|
|
1445
|
-
|
|
1415
|
+
z,
|
|
1446
1416
|
{
|
|
1447
|
-
htmlFor:
|
|
1417
|
+
htmlFor: b,
|
|
1448
1418
|
isRequired: e.required,
|
|
1449
|
-
isInvalid: !!n ||
|
|
1419
|
+
isInvalid: !!n || u === "invalid",
|
|
1450
1420
|
children: s
|
|
1451
1421
|
}
|
|
1452
1422
|
),
|
|
1453
|
-
t && /* @__PURE__ */ o(
|
|
1423
|
+
t && /* @__PURE__ */ o(P, { id: p, children: t }),
|
|
1454
1424
|
/* @__PURE__ */ o(
|
|
1455
|
-
|
|
1425
|
+
ce,
|
|
1456
1426
|
{
|
|
1457
1427
|
as: "textarea",
|
|
1458
1428
|
ref: d,
|
|
1459
|
-
id:
|
|
1429
|
+
id: b,
|
|
1460
1430
|
...c,
|
|
1461
|
-
isInvalid: !!n ||
|
|
1431
|
+
isInvalid: !!n || u === "invalid",
|
|
1462
1432
|
"aria-describedby": l({
|
|
1463
|
-
[
|
|
1433
|
+
[v]: x,
|
|
1464
1434
|
[p]: t
|
|
1465
1435
|
}) || void 0
|
|
1466
1436
|
}
|
|
1467
1437
|
),
|
|
1468
|
-
|
|
1438
|
+
x && /* @__PURE__ */ o(k, { id: v, children: x })
|
|
1469
1439
|
] });
|
|
1470
1440
|
}
|
|
1471
|
-
),
|
|
1441
|
+
), Ut = h(
|
|
1472
1442
|
(e, r) => {
|
|
1473
1443
|
const {
|
|
1474
1444
|
description: t,
|
|
@@ -1477,99 +1447,99 @@ const ir = g(
|
|
|
1477
1447
|
label: s,
|
|
1478
1448
|
type: i = "text",
|
|
1479
1449
|
disableValidation: c = !1,
|
|
1480
|
-
...
|
|
1481
|
-
} = e, d =
|
|
1450
|
+
...m
|
|
1451
|
+
} = e, d = E(null), { validity: u, validationMessage: g } = L(
|
|
1482
1452
|
d,
|
|
1483
1453
|
!c
|
|
1484
|
-
),
|
|
1485
|
-
return /* @__PURE__ */
|
|
1454
|
+
), b = R(a), p = b + "help", v = b + "err", x = n || g, F = K(d, r);
|
|
1455
|
+
return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
|
|
1486
1456
|
/* @__PURE__ */ o(
|
|
1487
|
-
|
|
1457
|
+
z,
|
|
1488
1458
|
{
|
|
1489
|
-
htmlFor:
|
|
1459
|
+
htmlFor: b,
|
|
1490
1460
|
isRequired: e.required,
|
|
1491
|
-
isInvalid: !!n ||
|
|
1461
|
+
isInvalid: !!n || u === "invalid",
|
|
1492
1462
|
children: s
|
|
1493
1463
|
}
|
|
1494
1464
|
),
|
|
1495
|
-
t && /* @__PURE__ */ o(
|
|
1465
|
+
t && /* @__PURE__ */ o(P, { id: p, children: t }),
|
|
1496
1466
|
/* @__PURE__ */ o(
|
|
1497
|
-
|
|
1467
|
+
ce,
|
|
1498
1468
|
{
|
|
1499
|
-
id:
|
|
1500
|
-
ref:
|
|
1469
|
+
id: b,
|
|
1470
|
+
ref: F,
|
|
1501
1471
|
type: i,
|
|
1502
|
-
...
|
|
1503
|
-
isInvalid: !!n ||
|
|
1472
|
+
...m,
|
|
1473
|
+
isInvalid: !!n || u === "invalid",
|
|
1504
1474
|
"aria-describedby": l({
|
|
1505
|
-
[
|
|
1475
|
+
[v]: x,
|
|
1506
1476
|
[p]: t
|
|
1507
1477
|
}) || void 0
|
|
1508
1478
|
}
|
|
1509
1479
|
),
|
|
1510
|
-
|
|
1480
|
+
x && /* @__PURE__ */ o(k, { id: v, children: x })
|
|
1511
1481
|
] });
|
|
1512
1482
|
}
|
|
1513
1483
|
);
|
|
1514
1484
|
export {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1485
|
+
X as Accordion,
|
|
1486
|
+
ke as AccordionContent,
|
|
1487
|
+
Re as AccordionHeader,
|
|
1488
|
+
Ee as AccordionItem,
|
|
1489
|
+
dt as Alert,
|
|
1490
|
+
mt as Banner,
|
|
1491
|
+
ut as BannerImage,
|
|
1492
|
+
bt as Button,
|
|
1493
|
+
M as ButtonColorContext,
|
|
1494
|
+
ft as Campaign,
|
|
1495
|
+
gt as Card,
|
|
1496
|
+
At as CardContent,
|
|
1497
|
+
ht as CardImage,
|
|
1498
|
+
xt as CardLinkOverlay,
|
|
1499
|
+
pt as CardList,
|
|
1500
|
+
vt as Checkbox,
|
|
1501
|
+
Nt as Chip,
|
|
1502
|
+
wt as Footer,
|
|
1503
|
+
yt as Form,
|
|
1504
|
+
It as FormError,
|
|
1535
1505
|
k as FormErrorMessage,
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1506
|
+
Ze as FormHeading,
|
|
1507
|
+
P as FormHelperText,
|
|
1508
|
+
z as FormLabel,
|
|
1509
|
+
kt as FormStep,
|
|
1510
|
+
We as FormStepHeader,
|
|
1511
|
+
Ke as FormStepHeaderContent,
|
|
1512
|
+
Rt as FormStepProvider,
|
|
1513
|
+
Ct as FormSuccess,
|
|
1514
|
+
St as Hero,
|
|
1515
|
+
Mt as HeroActions,
|
|
1516
|
+
Lt as HeroContent,
|
|
1517
|
+
V as HeroContext,
|
|
1518
|
+
qt as HeroImage,
|
|
1519
|
+
ce as Input,
|
|
1520
|
+
Pt as Link,
|
|
1521
|
+
zt as Navbar,
|
|
1522
|
+
Jt as NavbarCollapsible,
|
|
1523
|
+
Ft as NavbarContent,
|
|
1524
|
+
jt as NavbarExpandedMobileContent,
|
|
1525
|
+
Tt as NavbarItem,
|
|
1526
|
+
Vt as NavbarItems,
|
|
1527
|
+
Ot as Pagination,
|
|
1528
|
+
Zt as Radio,
|
|
1529
|
+
Wt as RadioGroup,
|
|
1530
|
+
Kt as Select,
|
|
1531
|
+
Xt as Snackbar,
|
|
1532
|
+
_ as SnackbarButton,
|
|
1533
|
+
Yt as SnackbarContent,
|
|
1534
|
+
$e as StepList,
|
|
1535
|
+
et as StepListItem,
|
|
1536
|
+
Qt as TextArea,
|
|
1537
|
+
Ut as TextField,
|
|
1538
|
+
se as useBlockBackgroundColor,
|
|
1569
1539
|
R as useFallbackId,
|
|
1540
|
+
Et as useFormContext,
|
|
1570
1541
|
L as useFormControlValidity,
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
We as useScreenMaxWidthMd
|
|
1542
|
+
Xe as useFormStepContext,
|
|
1543
|
+
ct as usePrefersReducedMotion,
|
|
1544
|
+
Le as useScreenMaxWidthMd
|
|
1575
1545
|
};
|