@obosbbl/grunnmuren-react 1.14.0-beta.0 → 1.14.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/grunnmuren.mjs +270 -254
- package/package.json +1 -1
package/dist/grunnmuren.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as o, jsxs as b, Fragment as
|
|
3
|
-
import
|
|
4
|
-
import { ChevronDown as
|
|
5
|
-
import { useCollapse as
|
|
2
|
+
import { jsx as o, jsxs as b, Fragment as W } from "react/jsx-runtime";
|
|
3
|
+
import K, { createContext as w, useContext as A, useState as M, useCallback as E, useEffect as xe, useId as re, forwardRef as g, Children as X, isValidElement as ne, cloneElement as Y, useRef as S, useMemo as C, useReducer as Ne } from "react";
|
|
4
|
+
import { ChevronDown as ae, Warning as oe, InfoCircle as se, LoadingSpinner as we, CheckCircle as ye, MenuAlt as Ie, Close as Ee, ChevronRight as Ce, ChevronLeft as Se } from "@obosbbl/grunnmuren-icons";
|
|
5
|
+
import { useCollapse as Re } from "react-collapsed";
|
|
6
6
|
import l from "clsx";
|
|
7
|
-
import
|
|
8
|
-
import X from "@react-hook/merged-ref";
|
|
7
|
+
import B from "@react-hook/merged-ref";
|
|
9
8
|
const I = () => {
|
|
10
|
-
},
|
|
9
|
+
}, ke = 300, qe = "duration-300", U = (e) => {
|
|
11
10
|
const { className: r, ...t } = e;
|
|
12
11
|
return /* @__PURE__ */ o("div", { className: l(r, "flex flex-col gap-2"), ...t });
|
|
13
|
-
},
|
|
12
|
+
}, Q = w({
|
|
14
13
|
isExpanded: !1,
|
|
15
14
|
setExpanded: I,
|
|
16
15
|
// @ts-expect-error noop
|
|
@@ -18,14 +17,14 @@ const I = () => {
|
|
|
18
17
|
// @ts-expect-error noop
|
|
19
18
|
getToggleProps: I,
|
|
20
19
|
onChange: I
|
|
21
|
-
}),
|
|
22
|
-
const { className: r, defaultOpen: t, onChange: n = I, open: a, ...s } = e, i =
|
|
20
|
+
}), Me = (e) => {
|
|
21
|
+
const { className: r, defaultOpen: t, onChange: n = I, open: a, ...s } = e, i = Re({
|
|
23
22
|
defaultExpanded: t,
|
|
24
23
|
isExpanded: a,
|
|
25
|
-
duration:
|
|
24
|
+
duration: ke,
|
|
26
25
|
easing: "cubic-bezier(0.25, 0.1, 0.25, 1)"
|
|
27
26
|
});
|
|
28
|
-
return /* @__PURE__ */ o(
|
|
27
|
+
return /* @__PURE__ */ o(Q.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ o(
|
|
29
28
|
"div",
|
|
30
29
|
{
|
|
31
30
|
className: l(
|
|
@@ -36,8 +35,8 @@ const I = () => {
|
|
|
36
35
|
...s
|
|
37
36
|
}
|
|
38
37
|
) });
|
|
39
|
-
},
|
|
40
|
-
const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: c } = A(
|
|
38
|
+
}, Le = (e) => {
|
|
39
|
+
const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: c } = A(Q), u = s({ onClick: () => i(!c) });
|
|
41
40
|
return /* @__PURE__ */ o(n, { children: /* @__PURE__ */ b(
|
|
42
41
|
"button",
|
|
43
42
|
{
|
|
@@ -47,26 +46,26 @@ const I = () => {
|
|
|
47
46
|
),
|
|
48
47
|
...a,
|
|
49
48
|
...u,
|
|
50
|
-
id:
|
|
49
|
+
id: ie(u["aria-controls"]),
|
|
51
50
|
children: [
|
|
52
51
|
r,
|
|
53
52
|
/* @__PURE__ */ o(
|
|
54
|
-
|
|
53
|
+
ae,
|
|
55
54
|
{
|
|
56
|
-
className: `shrink-0 text-sm ${
|
|
55
|
+
className: `shrink-0 text-sm ${qe} group-aria-expanded:rotate-180`
|
|
57
56
|
}
|
|
58
57
|
)
|
|
59
58
|
]
|
|
60
59
|
}
|
|
61
60
|
) });
|
|
62
|
-
},
|
|
63
|
-
const { getCollapseProps: r } = A(
|
|
64
|
-
return /* @__PURE__ */ o("div", { ...a, "aria-labelledby":
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const
|
|
61
|
+
}, Pe = (e) => {
|
|
62
|
+
const { getCollapseProps: r } = A(Q), { className: t, ...n } = e, a = r();
|
|
63
|
+
return /* @__PURE__ */ o("div", { ...a, "aria-labelledby": ie(a.id), children: /* @__PURE__ */ o("div", { className: l(t, "p-5 pb-10"), ...n }) });
|
|
64
|
+
}, ie = (e) => e + "toggle";
|
|
65
|
+
U.Item = Me;
|
|
66
|
+
U.Header = Le;
|
|
67
|
+
U.Content = Pe;
|
|
68
|
+
const Et = (e) => {
|
|
70
69
|
const { className: r, children: t, heading: n, severity: a = "alert", ...s } = e;
|
|
71
70
|
return /* @__PURE__ */ o(
|
|
72
71
|
"section",
|
|
@@ -79,7 +78,7 @@ const vt = (e) => {
|
|
|
79
78
|
...s,
|
|
80
79
|
children: /* @__PURE__ */ b("div", { className: "flex justify-center", children: [
|
|
81
80
|
/* @__PURE__ */ o(
|
|
82
|
-
|
|
81
|
+
ze,
|
|
83
82
|
{
|
|
84
83
|
className: "mr-4 flex-none md:mr-8 md:text-2xl",
|
|
85
84
|
severity: a
|
|
@@ -92,33 +91,33 @@ const vt = (e) => {
|
|
|
92
91
|
] })
|
|
93
92
|
}
|
|
94
93
|
);
|
|
95
|
-
},
|
|
96
|
-
var
|
|
94
|
+
}, ze = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ o(oe, { className: l(r, "text-red") }) : /* @__PURE__ */ o(se, { className: l(r, "text-orange") });
|
|
95
|
+
var le = {}, N = {};
|
|
97
96
|
Object.defineProperty(N, "__esModule", { value: !0 });
|
|
98
97
|
N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
|
|
99
|
-
var
|
|
98
|
+
var Ve = function() {
|
|
100
99
|
};
|
|
101
|
-
N.noop =
|
|
102
|
-
function
|
|
100
|
+
N.noop = Ve;
|
|
101
|
+
function Te(e) {
|
|
103
102
|
for (var r = [], t = 1; t < arguments.length; t++)
|
|
104
103
|
r[t - 1] = arguments[t];
|
|
105
104
|
e && e.addEventListener && e.addEventListener.apply(e, r);
|
|
106
105
|
}
|
|
107
|
-
N.on =
|
|
108
|
-
function
|
|
106
|
+
N.on = Te;
|
|
107
|
+
function Fe(e) {
|
|
109
108
|
for (var r = [], t = 1; t < arguments.length; t++)
|
|
110
109
|
r[t - 1] = arguments[t];
|
|
111
110
|
e && e.removeEventListener && e.removeEventListener.apply(e, r);
|
|
112
111
|
}
|
|
113
|
-
N.off =
|
|
112
|
+
N.off = Fe;
|
|
114
113
|
N.isBrowser = typeof window < "u";
|
|
115
114
|
N.isNavigator = typeof navigator < "u";
|
|
116
|
-
Object.defineProperty(
|
|
117
|
-
var
|
|
118
|
-
return r !== void 0 ? r :
|
|
119
|
-
},
|
|
120
|
-
var t =
|
|
121
|
-
return
|
|
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() {
|
|
122
121
|
var s = !0, i = window.matchMedia(e), c = function() {
|
|
123
122
|
s && a(!!i.matches);
|
|
124
123
|
};
|
|
@@ -126,9 +125,9 @@ var G = pe, Fe = N, Je = function(e, r) {
|
|
|
126
125
|
s = !1, i.removeListener(c);
|
|
127
126
|
};
|
|
128
127
|
}, [e]), n;
|
|
129
|
-
},
|
|
130
|
-
const
|
|
131
|
-
function
|
|
128
|
+
}, de = le.default = je;
|
|
129
|
+
const Ze = "(prefers-reduced-motion: reduce)", Ct = (e = !1) => de(Ze, e);
|
|
130
|
+
function ce(e) {
|
|
132
131
|
switch (e) {
|
|
133
132
|
case "gray":
|
|
134
133
|
return "bg-gray-lightest";
|
|
@@ -142,7 +141,7 @@ function le(e) {
|
|
|
142
141
|
return "bg-sky-light";
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
|
-
const
|
|
144
|
+
const We = (e) => de("(max-width: 767.9px)", e);
|
|
146
145
|
function L(e, r = !0) {
|
|
147
146
|
const [t, n] = M("indeterminate"), [a, s] = M(), i = E((d) => {
|
|
148
147
|
d.target.checkValidity() && (n("valid"), s(void 0));
|
|
@@ -156,7 +155,7 @@ function L(e, r = !0) {
|
|
|
156
155
|
const m = d.target.validationMessage;
|
|
157
156
|
s(m), n("invalid");
|
|
158
157
|
}, []);
|
|
159
|
-
return
|
|
158
|
+
return xe(() => {
|
|
160
159
|
var m;
|
|
161
160
|
const { current: d } = e;
|
|
162
161
|
return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
|
|
@@ -165,11 +164,11 @@ function L(e, r = !0) {
|
|
|
165
164
|
};
|
|
166
165
|
}, [r, c]), { validity: t, validationMessage: a };
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
const r =
|
|
167
|
+
function R(e) {
|
|
168
|
+
const r = re();
|
|
170
169
|
return e ?? r;
|
|
171
170
|
}
|
|
172
|
-
const
|
|
171
|
+
const St = (e) => {
|
|
173
172
|
const {
|
|
174
173
|
bgColor: r,
|
|
175
174
|
className: t,
|
|
@@ -177,7 +176,7 @@ const Nt = (e) => {
|
|
|
177
176
|
heading: a,
|
|
178
177
|
image: s,
|
|
179
178
|
...i
|
|
180
|
-
} = e, c =
|
|
179
|
+
} = e, c = ce(r);
|
|
181
180
|
return /* @__PURE__ */ o("article", { className: l(t, c, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ b("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
|
|
182
181
|
s,
|
|
183
182
|
/* @__PURE__ */ b("div", { className: "max-w-prose", children: [
|
|
@@ -185,7 +184,7 @@ const Nt = (e) => {
|
|
|
185
184
|
n
|
|
186
185
|
] })
|
|
187
186
|
] }) });
|
|
188
|
-
},
|
|
187
|
+
}, Rt = (e) => /* @__PURE__ */ o(
|
|
189
188
|
"img",
|
|
190
189
|
{
|
|
191
190
|
loading: "lazy",
|
|
@@ -193,7 +192,7 @@ const Nt = (e) => {
|
|
|
193
192
|
className: "w-20 flex-none self-center md:w-32 md:self-start",
|
|
194
193
|
...e
|
|
195
194
|
}
|
|
196
|
-
),
|
|
195
|
+
), Ke = {
|
|
197
196
|
"standard-primary": "bg-green border-green text-white",
|
|
198
197
|
"standard-secondary": "bg-white border-green text-black",
|
|
199
198
|
"mint-primary": "bg-mint border-mint text-black",
|
|
@@ -202,7 +201,7 @@ const Nt = (e) => {
|
|
|
202
201
|
"white-secondary": "bg-transparent border-white text-white",
|
|
203
202
|
"light-green-primary": "bg-green-light border-green-light text-black",
|
|
204
203
|
"light-green-secondary": "bg-transparent border-green-light text-green-light"
|
|
205
|
-
},
|
|
204
|
+
}, kt = g((e, r) => {
|
|
206
205
|
const {
|
|
207
206
|
children: t,
|
|
208
207
|
className: n,
|
|
@@ -212,8 +211,8 @@ const Nt = (e) => {
|
|
|
212
211
|
type: c = "button",
|
|
213
212
|
variant: u = "primary",
|
|
214
213
|
...d
|
|
215
|
-
} = e, m = A(P), f =
|
|
216
|
-
return /* @__PURE__ */ o(
|
|
214
|
+
} = e, m = A(P), f = Ke[`${a ?? m}-${u}`], p = l(n, f, "button"), x = i ? /* @__PURE__ */ o(Xe, { children: t }) : t;
|
|
215
|
+
return /* @__PURE__ */ o(W, { children: s ? /* @__PURE__ */ o(
|
|
217
216
|
"a",
|
|
218
217
|
{
|
|
219
218
|
"aria-busy": i ? !0 : void 0,
|
|
@@ -234,31 +233,31 @@ const Nt = (e) => {
|
|
|
234
233
|
children: x
|
|
235
234
|
}
|
|
236
235
|
) });
|
|
237
|
-
}),
|
|
238
|
-
|
|
236
|
+
}), Xe = (e) => /* @__PURE__ */ b(W, { children: [
|
|
237
|
+
me(e.children),
|
|
239
238
|
/* @__PURE__ */ o(
|
|
240
239
|
"span",
|
|
241
240
|
{
|
|
242
241
|
className: "!visible absolute bottom-1 left-1 right-1 top-1 grid place-items-center overflow-hidden bg-inherit",
|
|
243
242
|
"aria-hidden": !0,
|
|
244
|
-
children: /* @__PURE__ */ o(
|
|
243
|
+
children: /* @__PURE__ */ o(we, { className: "animate-spin" })
|
|
245
244
|
}
|
|
246
245
|
)
|
|
247
246
|
] });
|
|
248
|
-
function
|
|
249
|
-
return
|
|
250
|
-
if (!
|
|
247
|
+
function me(e) {
|
|
248
|
+
return X.map(e, (r) => {
|
|
249
|
+
if (!ne(r))
|
|
251
250
|
return typeof r == "string" ? /* @__PURE__ */ o("span", { children: r }) : r;
|
|
252
251
|
if (r.props.children) {
|
|
253
252
|
const t = {
|
|
254
|
-
children:
|
|
253
|
+
children: me(r.props.children)
|
|
255
254
|
};
|
|
256
|
-
r =
|
|
255
|
+
r = Y(r, t);
|
|
257
256
|
}
|
|
258
257
|
return r;
|
|
259
258
|
});
|
|
260
259
|
}
|
|
261
|
-
const P = w("standard"),
|
|
260
|
+
const P = w("standard"), ue = w(!0), Ye = (e, r) => {
|
|
262
261
|
const {
|
|
263
262
|
as: t = "div",
|
|
264
263
|
body: n,
|
|
@@ -277,12 +276,12 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
277
276
|
...c,
|
|
278
277
|
ref: r,
|
|
279
278
|
children: [
|
|
280
|
-
/* @__PURE__ */ o(
|
|
279
|
+
/* @__PURE__ */ o(ue.Provider, { value: i, children: s }),
|
|
281
280
|
n
|
|
282
281
|
]
|
|
283
282
|
}
|
|
284
283
|
);
|
|
285
|
-
},
|
|
284
|
+
}, Be = g(Ye), Ue = g(
|
|
286
285
|
(e, r) => {
|
|
287
286
|
const { className: t, ...n } = e;
|
|
288
287
|
return /* @__PURE__ */ o(
|
|
@@ -294,16 +293,16 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
294
293
|
}
|
|
295
294
|
);
|
|
296
295
|
}
|
|
297
|
-
),
|
|
296
|
+
), Qe = g(
|
|
298
297
|
(e, r) => {
|
|
299
|
-
const { className: t, children: n, ...a } = e, s = A(
|
|
298
|
+
const { className: t, children: n, ...a } = e, s = A(ue), i = l(
|
|
300
299
|
t,
|
|
301
300
|
"max-md:rounded-b-3xl w-full",
|
|
302
301
|
s ? "md:rounded-r-3xl" : "md:rounded-l-3xl md:order-1"
|
|
303
302
|
);
|
|
304
|
-
if (
|
|
305
|
-
const c =
|
|
306
|
-
return
|
|
303
|
+
if (ne(n)) {
|
|
304
|
+
const c = X.only(n);
|
|
305
|
+
return Y(c, {
|
|
307
306
|
// @ts-expect-error assume className prop is allowed
|
|
308
307
|
className: i,
|
|
309
308
|
ref: r,
|
|
@@ -312,10 +311,10 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
312
311
|
}
|
|
313
312
|
return /* @__PURE__ */ o("img", { className: i, ref: r, ...a });
|
|
314
313
|
}
|
|
315
|
-
),
|
|
316
|
-
Body:
|
|
317
|
-
Image:
|
|
318
|
-
}),
|
|
314
|
+
), qt = Object.assign({}, Be, {
|
|
315
|
+
Body: Ue,
|
|
316
|
+
Image: Qe
|
|
317
|
+
}), He = (e, r) => {
|
|
319
318
|
const {
|
|
320
319
|
as: t = "div",
|
|
321
320
|
className: n,
|
|
@@ -333,7 +332,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
333
332
|
ref: r
|
|
334
333
|
}
|
|
335
334
|
);
|
|
336
|
-
},
|
|
335
|
+
}, Mt = g(He), Lt = g(
|
|
337
336
|
(e, r) => {
|
|
338
337
|
const { className: t, ...n } = e;
|
|
339
338
|
return /* @__PURE__ */ o(
|
|
@@ -346,9 +345,9 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
346
345
|
}
|
|
347
346
|
);
|
|
348
347
|
}
|
|
349
|
-
),
|
|
348
|
+
), Pt = g(
|
|
350
349
|
(e, r) => {
|
|
351
|
-
const { bgColor: t, className: n, ...a } = e, s =
|
|
350
|
+
const { bgColor: t, className: n, ...a } = e, s = ce(t);
|
|
352
351
|
return /* @__PURE__ */ o("div", { className: l(s, n), children: /* @__PURE__ */ o(
|
|
353
352
|
"div",
|
|
354
353
|
{
|
|
@@ -358,12 +357,12 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
358
357
|
}
|
|
359
358
|
) });
|
|
360
359
|
}
|
|
361
|
-
),
|
|
360
|
+
), zt = g(
|
|
362
361
|
(e, r) => {
|
|
363
362
|
const { className: t, ...n } = e;
|
|
364
363
|
return /* @__PURE__ */ o("div", { className: l(t, "p-8 md:px-10"), ...n, ref: r });
|
|
365
364
|
}
|
|
366
|
-
),
|
|
365
|
+
), Vt = g((e, r) => {
|
|
367
366
|
const { className: t, ...n } = e;
|
|
368
367
|
return /* @__PURE__ */ o(
|
|
369
368
|
"a",
|
|
@@ -376,7 +375,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
376
375
|
...n
|
|
377
376
|
}
|
|
378
377
|
);
|
|
379
|
-
}),
|
|
378
|
+
}), Tt = g(
|
|
380
379
|
(e, r) => {
|
|
381
380
|
const {
|
|
382
381
|
children: t,
|
|
@@ -385,10 +384,10 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
385
384
|
id: s,
|
|
386
385
|
disableValidation: i = !1,
|
|
387
386
|
...c
|
|
388
|
-
} = e, u =
|
|
387
|
+
} = e, u = S(null), { validity: d, validationMessage: m } = L(
|
|
389
388
|
u,
|
|
390
389
|
!i
|
|
391
|
-
), h =
|
|
390
|
+
), h = R(s), f = h + "err", p = a || m;
|
|
392
391
|
return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
|
|
393
392
|
/* @__PURE__ */ b("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
|
|
394
393
|
/* @__PURE__ */ o(
|
|
@@ -414,22 +413,22 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
414
413
|
p && /* @__PURE__ */ o(k, { id: f, children: p })
|
|
415
414
|
] });
|
|
416
415
|
}
|
|
417
|
-
),
|
|
416
|
+
), De = {
|
|
418
417
|
sky: "bg-sky border-sky",
|
|
419
418
|
"red-light": "bg-red-light border-red-light",
|
|
420
419
|
mint: "bg-mint border-mint",
|
|
421
420
|
"orange-light": "bg-orange-light border-orange-light",
|
|
422
421
|
"green-light": "bg-green-light border-green-light",
|
|
423
422
|
"blue-light": "bg-blue-light border-blue-light"
|
|
424
|
-
},
|
|
423
|
+
}, Ge = {
|
|
425
424
|
sky: "text-blue-dark",
|
|
426
425
|
"red-light": "text-red",
|
|
427
426
|
mint: "text-green",
|
|
428
427
|
"orange-light": "text-black",
|
|
429
428
|
"green-light": "text-green",
|
|
430
429
|
"blue-light": "text-blue-dark"
|
|
431
|
-
},
|
|
432
|
-
const { className: r, color: t, icon: n, children: a, variant: s = "filled" } = e, i = t &&
|
|
430
|
+
}, Ft = (e) => {
|
|
431
|
+
const { className: r, color: t, icon: n, children: a, variant: s = "filled" } = e, i = t && De[t], c = t && Ge[t];
|
|
433
432
|
return /* @__PURE__ */ b(
|
|
434
433
|
"div",
|
|
435
434
|
{
|
|
@@ -452,7 +451,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
452
451
|
]
|
|
453
452
|
}
|
|
454
453
|
);
|
|
455
|
-
},
|
|
454
|
+
}, Jt = (e) => {
|
|
456
455
|
const { className: r, children: t, ...n } = e;
|
|
457
456
|
return /* @__PURE__ */ o(P.Provider, { value: "white", children: /* @__PURE__ */ o(
|
|
458
457
|
"footer",
|
|
@@ -466,7 +465,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
466
465
|
children: /* @__PURE__ */ o("div", { className: "container", children: t })
|
|
467
466
|
}
|
|
468
467
|
) });
|
|
469
|
-
},
|
|
468
|
+
}, Ot = (e) => {
|
|
470
469
|
const { heading: r, children: t, className: n, ...a } = e;
|
|
471
470
|
return /* @__PURE__ */ b(
|
|
472
471
|
"form",
|
|
@@ -477,12 +476,12 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
477
476
|
),
|
|
478
477
|
...a,
|
|
479
478
|
children: [
|
|
480
|
-
r && /* @__PURE__ */ o(
|
|
479
|
+
r && /* @__PURE__ */ o(_e, { children: r }),
|
|
481
480
|
/* @__PURE__ */ o("div", { className: "p-6 md:p-10", children: t })
|
|
482
481
|
]
|
|
483
482
|
}
|
|
484
483
|
);
|
|
485
|
-
},
|
|
484
|
+
}, _e = (e) => {
|
|
486
485
|
const { className: r, ...t } = e;
|
|
487
486
|
return /* @__PURE__ */ o(
|
|
488
487
|
"h2",
|
|
@@ -494,7 +493,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
494
493
|
...t
|
|
495
494
|
}
|
|
496
495
|
);
|
|
497
|
-
},
|
|
496
|
+
}, jt = (e) => {
|
|
498
497
|
const { className: r, ...t } = e;
|
|
499
498
|
return /* @__PURE__ */ o(
|
|
500
499
|
"div",
|
|
@@ -520,7 +519,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
520
519
|
"aria-live": "polite",
|
|
521
520
|
...n,
|
|
522
521
|
children: [
|
|
523
|
-
/* @__PURE__ */ o(
|
|
522
|
+
/* @__PURE__ */ o(oe, { className: "text-red flex-shrink-0" }),
|
|
524
523
|
r
|
|
525
524
|
]
|
|
526
525
|
}
|
|
@@ -550,7 +549,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
550
549
|
]
|
|
551
550
|
}
|
|
552
551
|
);
|
|
553
|
-
},
|
|
552
|
+
}, Zt = (e) => {
|
|
554
553
|
const { className: r, heading: t, text: n, ...a } = e;
|
|
555
554
|
return /* @__PURE__ */ b(
|
|
556
555
|
"div",
|
|
@@ -576,7 +575,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
576
575
|
]
|
|
577
576
|
}
|
|
578
577
|
);
|
|
579
|
-
},
|
|
578
|
+
}, $e = (e) => {
|
|
580
579
|
const { className: r, collapsed: t, step: n, onClick: a, children: s, formStatus: i } = e;
|
|
581
580
|
return /* @__PURE__ */ o(
|
|
582
581
|
"button",
|
|
@@ -590,7 +589,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
590
589
|
"border-green bg-green text-white": t && i === "completed"
|
|
591
590
|
}),
|
|
592
591
|
children: /* @__PURE__ */ o(
|
|
593
|
-
|
|
592
|
+
et,
|
|
594
593
|
{
|
|
595
594
|
collapsed: t,
|
|
596
595
|
step: n,
|
|
@@ -600,7 +599,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
600
599
|
)
|
|
601
600
|
}
|
|
602
601
|
);
|
|
603
|
-
},
|
|
602
|
+
}, et = (e) => {
|
|
604
603
|
const { collapsed: r, step: t, children: n, formStatus: a } = e, s = C(() => {
|
|
605
604
|
switch (a) {
|
|
606
605
|
case "blank":
|
|
@@ -615,7 +614,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
615
614
|
case "blank":
|
|
616
615
|
return /* @__PURE__ */ o("div", { children: t });
|
|
617
616
|
case "completed":
|
|
618
|
-
return /* @__PURE__ */ o(
|
|
617
|
+
return /* @__PURE__ */ o(ye, { className: "h-10 w-10 md:h-12 md:w-12" });
|
|
619
618
|
}
|
|
620
619
|
}, [a, t, r]);
|
|
621
620
|
return /* @__PURE__ */ b(
|
|
@@ -657,7 +656,7 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
657
656
|
]
|
|
658
657
|
}
|
|
659
658
|
);
|
|
660
|
-
},
|
|
659
|
+
}, fe = w([
|
|
661
660
|
{
|
|
662
661
|
activeStep: 1,
|
|
663
662
|
formData: {}
|
|
@@ -665,8 +664,8 @@ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
|
|
|
665
664
|
() => {
|
|
666
665
|
}
|
|
667
666
|
]);
|
|
668
|
-
function
|
|
669
|
-
const [r, t] = A(
|
|
667
|
+
function tt(e) {
|
|
668
|
+
const [r, t] = A(fe), n = E(async () => {
|
|
670
669
|
t({ type: "PREV_STEP" });
|
|
671
670
|
}, [t]), a = E(
|
|
672
671
|
(s) => {
|
|
@@ -687,7 +686,7 @@ function et(e) {
|
|
|
687
686
|
formData: r.formData
|
|
688
687
|
};
|
|
689
688
|
}
|
|
690
|
-
function
|
|
689
|
+
function rt(e, r) {
|
|
691
690
|
switch (r.type) {
|
|
692
691
|
case "NEXT_STEP":
|
|
693
692
|
return {
|
|
@@ -714,14 +713,31 @@ function tt(e, r) {
|
|
|
714
713
|
};
|
|
715
714
|
}
|
|
716
715
|
}
|
|
717
|
-
function
|
|
718
|
-
const [r, t] =
|
|
716
|
+
function Wt({ children: e }) {
|
|
717
|
+
const [r, t] = Ne(rt, {
|
|
719
718
|
activeStep: 1,
|
|
720
719
|
formData: {}
|
|
721
720
|
}), n = C(() => [r, t], [r, t]);
|
|
722
|
-
return /* @__PURE__ */ o(
|
|
721
|
+
return /* @__PURE__ */ o(fe.Provider, { value: n, children: e });
|
|
723
722
|
}
|
|
724
|
-
|
|
723
|
+
var be = {}, T = {};
|
|
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) => {
|
|
725
741
|
const {
|
|
726
742
|
children: r,
|
|
727
743
|
heading: t,
|
|
@@ -729,10 +745,10 @@ const Ft = (e) => {
|
|
|
729
745
|
formStatus: a = "blank",
|
|
730
746
|
onSubmit: s,
|
|
731
747
|
...i
|
|
732
|
-
} = e, { isActive: c, setActiveStep: u, activeStep: d } =
|
|
748
|
+
} = e, { isActive: c, setActiveStep: u, activeStep: d } = tt(n), m = S(null), h = E(() => {
|
|
733
749
|
n < d && u(n);
|
|
734
750
|
}, [d, n, u]);
|
|
735
|
-
return
|
|
751
|
+
return lt(() => {
|
|
736
752
|
var f;
|
|
737
753
|
c && ((f = m.current) == null || f.scrollIntoView({ behavior: "smooth" }));
|
|
738
754
|
}, [c]), /* @__PURE__ */ b(
|
|
@@ -748,7 +764,7 @@ const Ft = (e) => {
|
|
|
748
764
|
...i,
|
|
749
765
|
children: [
|
|
750
766
|
/* @__PURE__ */ o(
|
|
751
|
-
|
|
767
|
+
$e,
|
|
752
768
|
{
|
|
753
769
|
step: n,
|
|
754
770
|
formStatus: a,
|
|
@@ -762,10 +778,10 @@ const Ft = (e) => {
|
|
|
762
778
|
}
|
|
763
779
|
);
|
|
764
780
|
};
|
|
765
|
-
function
|
|
781
|
+
function ge(e) {
|
|
766
782
|
return e !== "vertical-split" && e !== "below-center" && e !== "below-left";
|
|
767
783
|
}
|
|
768
|
-
const
|
|
784
|
+
const F = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), Xt = g((e, r) => {
|
|
769
785
|
const {
|
|
770
786
|
bgColor: t = "white",
|
|
771
787
|
children: n,
|
|
@@ -785,7 +801,7 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
785
801
|
P.Provider,
|
|
786
802
|
{
|
|
787
803
|
value: t === "white" ? "standard" : "mint",
|
|
788
|
-
children: /* @__PURE__ */ o(
|
|
804
|
+
children: /* @__PURE__ */ o(F.Provider, { value: m, children: /* @__PURE__ */ b(
|
|
789
805
|
"div",
|
|
790
806
|
{
|
|
791
807
|
className: l(
|
|
@@ -796,7 +812,7 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
796
812
|
"md:grid-cols-[50%,50%]": d === "vertical-split"
|
|
797
813
|
}
|
|
798
814
|
),
|
|
799
|
-
style:
|
|
815
|
+
style: ge(d) ? { gridTemplateAreas: '"hero"' } : void 0,
|
|
800
816
|
...c,
|
|
801
817
|
ref: r,
|
|
802
818
|
children: [
|
|
@@ -807,9 +823,9 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
807
823
|
) })
|
|
808
824
|
}
|
|
809
825
|
);
|
|
810
|
-
}),
|
|
826
|
+
}), Yt = g(
|
|
811
827
|
(e, r) => {
|
|
812
|
-
const { contentPosition: t } = A(
|
|
828
|
+
const { contentPosition: t } = A(F);
|
|
813
829
|
return /* @__PURE__ */ b(
|
|
814
830
|
"picture",
|
|
815
831
|
{
|
|
@@ -835,9 +851,9 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
835
851
|
}
|
|
836
852
|
);
|
|
837
853
|
}
|
|
838
|
-
),
|
|
854
|
+
), Bt = g(
|
|
839
855
|
(e, r) => {
|
|
840
|
-
const { bgColor: t, contentPosition: n, hasImage: a } = A(
|
|
856
|
+
const { bgColor: t, contentPosition: n, hasImage: a } = A(F), { children: s, className: i, heading: c, description: u, ...d } = e, m = ge(n);
|
|
841
857
|
return /* @__PURE__ */ b(
|
|
842
858
|
"div",
|
|
843
859
|
{
|
|
@@ -879,9 +895,9 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
879
895
|
}
|
|
880
896
|
);
|
|
881
897
|
}
|
|
882
|
-
),
|
|
898
|
+
), Ut = g(
|
|
883
899
|
(e, r) => {
|
|
884
|
-
const { className: t, ...n } = e, { contentPosition: a } = A(
|
|
900
|
+
const { className: t, ...n } = e, { contentPosition: a } = A(F);
|
|
885
901
|
return /* @__PURE__ */ o(
|
|
886
902
|
"div",
|
|
887
903
|
{
|
|
@@ -898,7 +914,7 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
898
914
|
}
|
|
899
915
|
);
|
|
900
916
|
}
|
|
901
|
-
),
|
|
917
|
+
), he = g((e, r) => {
|
|
902
918
|
const {
|
|
903
919
|
className: t,
|
|
904
920
|
isInvalid: n,
|
|
@@ -908,7 +924,7 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
908
924
|
rightAddon: c,
|
|
909
925
|
leftAddon: u,
|
|
910
926
|
...d
|
|
911
|
-
} = e, m = s ?? "input", h =
|
|
927
|
+
} = e, m = s ?? "input", h = dt(m, i);
|
|
912
928
|
return /* @__PURE__ */ b(
|
|
913
929
|
"div",
|
|
914
930
|
{
|
|
@@ -942,13 +958,13 @@ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
942
958
|
}
|
|
943
959
|
);
|
|
944
960
|
});
|
|
945
|
-
function
|
|
961
|
+
function dt(e, r) {
|
|
946
962
|
if (r != null)
|
|
947
963
|
return r;
|
|
948
964
|
if (e === "input")
|
|
949
965
|
return "text";
|
|
950
966
|
}
|
|
951
|
-
const
|
|
967
|
+
const Qt = (e) => {
|
|
952
968
|
let r = "";
|
|
953
969
|
return e.icon && (r = "inline-flex items-center gap-2"), /* @__PURE__ */ b("a", { className: r, href: e.href, children: [
|
|
954
970
|
e.icon,
|
|
@@ -958,8 +974,8 @@ const Wt = (e) => {
|
|
|
958
974
|
setIsExpanded: I,
|
|
959
975
|
isExpanded: !1,
|
|
960
976
|
collapsibleId: ""
|
|
961
|
-
}),
|
|
962
|
-
const { className: r, children: t, ...n } = e, a =
|
|
977
|
+
}), Ht = (e) => {
|
|
978
|
+
const { className: r, children: t, ...n } = e, a = re(), [s, i] = M(!1), c = C(
|
|
963
979
|
() => ({ isExpanded: s, setIsExpanded: i, collapsibleId: a }),
|
|
964
980
|
[s, a]
|
|
965
981
|
);
|
|
@@ -974,7 +990,7 @@ const Wt = (e) => {
|
|
|
974
990
|
children: /* @__PURE__ */ o("div", { className: "container", children: t })
|
|
975
991
|
}
|
|
976
992
|
) }) });
|
|
977
|
-
},
|
|
993
|
+
}, Dt = (e) => {
|
|
978
994
|
const { className: r, children: t, ...n } = e, { isExpanded: a } = A(q);
|
|
979
995
|
return /* @__PURE__ */ o(
|
|
980
996
|
"nav",
|
|
@@ -990,7 +1006,7 @@ const Wt = (e) => {
|
|
|
990
1006
|
children: t
|
|
991
1007
|
}
|
|
992
1008
|
);
|
|
993
|
-
},
|
|
1009
|
+
}, Gt = g(
|
|
994
1010
|
(e, r) => {
|
|
995
1011
|
const { active: t, className: n, children: a, ...s } = e;
|
|
996
1012
|
return /* @__PURE__ */ o(
|
|
@@ -1010,10 +1026,10 @@ const Wt = (e) => {
|
|
|
1010
1026
|
}
|
|
1011
1027
|
);
|
|
1012
1028
|
}
|
|
1013
|
-
),
|
|
1029
|
+
), ct = () => {
|
|
1014
1030
|
const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(q);
|
|
1015
|
-
let n =
|
|
1016
|
-
return e && (n =
|
|
1031
|
+
let n = Ie, a = "Meny";
|
|
1032
|
+
return e && (n = Ee, a = "Lukk"), /* @__PURE__ */ b(
|
|
1017
1033
|
"button",
|
|
1018
1034
|
{
|
|
1019
1035
|
"aria-controls": t,
|
|
@@ -1027,7 +1043,7 @@ const Wt = (e) => {
|
|
|
1027
1043
|
]
|
|
1028
1044
|
}
|
|
1029
1045
|
);
|
|
1030
|
-
},
|
|
1046
|
+
}, _t = (e) => {
|
|
1031
1047
|
const { className: r, children: t, logo: n, ...a } = e;
|
|
1032
1048
|
return /* @__PURE__ */ b(
|
|
1033
1049
|
"div",
|
|
@@ -1037,11 +1053,11 @@ const Wt = (e) => {
|
|
|
1037
1053
|
children: [
|
|
1038
1054
|
n,
|
|
1039
1055
|
/* @__PURE__ */ o("div", { className: "hidden md:block", children: t }),
|
|
1040
|
-
/* @__PURE__ */ o(
|
|
1056
|
+
/* @__PURE__ */ o(ct, {})
|
|
1041
1057
|
]
|
|
1042
1058
|
}
|
|
1043
1059
|
);
|
|
1044
|
-
},
|
|
1060
|
+
}, $t = (e) => {
|
|
1045
1061
|
const { className: r, children: t, ...n } = e, { collapsibleId: a, isExpanded: s } = A(q);
|
|
1046
1062
|
return /* @__PURE__ */ o(
|
|
1047
1063
|
"div",
|
|
@@ -1055,10 +1071,10 @@ const Wt = (e) => {
|
|
|
1055
1071
|
children: t
|
|
1056
1072
|
}
|
|
1057
1073
|
);
|
|
1058
|
-
},
|
|
1059
|
-
const { isExpanded: r } = A(q), t =
|
|
1060
|
-
return !r || !t ? null : /* @__PURE__ */ o(
|
|
1061
|
-
}, y = 2,
|
|
1074
|
+
}, er = (e) => {
|
|
1075
|
+
const { isExpanded: r } = A(q), t = We(!1);
|
|
1076
|
+
return !r || !t ? null : /* @__PURE__ */ o(W, { children: e.children });
|
|
1077
|
+
}, y = 2, J = w({ currentPage: 0, pageCount: 0 }), tr = (e) => {
|
|
1062
1078
|
const {
|
|
1063
1079
|
className: r,
|
|
1064
1080
|
page: t,
|
|
@@ -1078,14 +1094,14 @@ const Wt = (e) => {
|
|
|
1078
1094
|
), h = (f) => (p) => {
|
|
1079
1095
|
a && (p.preventDefault(), a(f));
|
|
1080
1096
|
};
|
|
1081
|
-
return /* @__PURE__ */ o(
|
|
1097
|
+
return /* @__PURE__ */ o(J.Provider, { value: m, children: /* @__PURE__ */ b(
|
|
1082
1098
|
"nav",
|
|
1083
1099
|
{
|
|
1084
1100
|
className: l("flex justify-center gap-2 sm:gap-4", r),
|
|
1085
1101
|
...d,
|
|
1086
1102
|
children: [
|
|
1087
1103
|
/* @__PURE__ */ o(
|
|
1088
|
-
|
|
1104
|
+
ut,
|
|
1089
1105
|
{
|
|
1090
1106
|
"aria-label": u,
|
|
1091
1107
|
href: s(t - 1),
|
|
@@ -1093,7 +1109,7 @@ const Wt = (e) => {
|
|
|
1093
1109
|
}
|
|
1094
1110
|
),
|
|
1095
1111
|
/* @__PURE__ */ o(
|
|
1096
|
-
|
|
1112
|
+
ee,
|
|
1097
1113
|
{
|
|
1098
1114
|
page: 1,
|
|
1099
1115
|
href: s(1),
|
|
@@ -1102,9 +1118,9 @@ const Wt = (e) => {
|
|
|
1102
1118
|
selected: t === 1
|
|
1103
1119
|
}
|
|
1104
1120
|
),
|
|
1105
|
-
n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(
|
|
1106
|
-
/* @__PURE__ */ o(
|
|
1107
|
-
|
|
1121
|
+
n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(ft, {}),
|
|
1122
|
+
/* @__PURE__ */ o(bt, { children: (f) => /* @__PURE__ */ o(
|
|
1123
|
+
ee,
|
|
1108
1124
|
{
|
|
1109
1125
|
href: s(f),
|
|
1110
1126
|
onClick: h(f),
|
|
@@ -1115,7 +1131,7 @@ const Wt = (e) => {
|
|
|
1115
1131
|
f
|
|
1116
1132
|
) }),
|
|
1117
1133
|
/* @__PURE__ */ o(
|
|
1118
|
-
|
|
1134
|
+
mt,
|
|
1119
1135
|
{
|
|
1120
1136
|
"aria-label": c,
|
|
1121
1137
|
href: s(t + 1),
|
|
@@ -1125,33 +1141,33 @@ const Wt = (e) => {
|
|
|
1125
1141
|
]
|
|
1126
1142
|
}
|
|
1127
1143
|
) });
|
|
1128
|
-
},
|
|
1129
|
-
const { currentPage: t, pageCount: n } = A(
|
|
1144
|
+
}, mt = g((e, r) => {
|
|
1145
|
+
const { currentPage: t, pageCount: n } = A(J), a = t >= n;
|
|
1130
1146
|
return /* @__PURE__ */ o(
|
|
1131
|
-
|
|
1147
|
+
H,
|
|
1132
1148
|
{
|
|
1133
1149
|
"aria-hidden": a,
|
|
1134
1150
|
className: a ? "invisible" : void 0,
|
|
1135
1151
|
ref: r,
|
|
1136
1152
|
rel: "next",
|
|
1137
1153
|
...e,
|
|
1138
|
-
children: /* @__PURE__ */ o(
|
|
1154
|
+
children: /* @__PURE__ */ o(Ce, {})
|
|
1139
1155
|
}
|
|
1140
1156
|
);
|
|
1141
|
-
}),
|
|
1142
|
-
const { currentPage: t } = A(
|
|
1157
|
+
}), ut = g((e, r) => {
|
|
1158
|
+
const { currentPage: t } = A(J), n = t <= 1;
|
|
1143
1159
|
return /* @__PURE__ */ o(
|
|
1144
|
-
|
|
1160
|
+
H,
|
|
1145
1161
|
{
|
|
1146
1162
|
"aria-hidden": n,
|
|
1147
1163
|
className: n ? "invisible" : void 0,
|
|
1148
1164
|
ref: r,
|
|
1149
1165
|
rel: "prev",
|
|
1150
1166
|
...e,
|
|
1151
|
-
children: /* @__PURE__ */ o(
|
|
1167
|
+
children: /* @__PURE__ */ o(Se, {})
|
|
1152
1168
|
}
|
|
1153
1169
|
);
|
|
1154
|
-
}),
|
|
1170
|
+
}), H = g((e, r) => {
|
|
1155
1171
|
const { className: t, ...n } = e;
|
|
1156
1172
|
return /* @__PURE__ */ o(
|
|
1157
1173
|
"a",
|
|
@@ -1164,8 +1180,8 @@ const Wt = (e) => {
|
|
|
1164
1180
|
...n
|
|
1165
1181
|
}
|
|
1166
1182
|
);
|
|
1167
|
-
}),
|
|
1168
|
-
const { currentPage: r, pageCount: t } = A(
|
|
1183
|
+
}), ft = () => /* @__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: "..." }), bt = ({ children: e }) => {
|
|
1184
|
+
const { currentPage: r, pageCount: t } = A(J), n = Math.min(
|
|
1169
1185
|
Math.max(2 + y * 2, r + y),
|
|
1170
1186
|
t
|
|
1171
1187
|
);
|
|
@@ -1174,10 +1190,10 @@ const Wt = (e) => {
|
|
|
1174
1190
|
1
|
|
1175
1191
|
);
|
|
1176
1192
|
return a - y === 0 && (a = a - 1), Array.from({ length: n - a }, (i, c) => a + c + 1).map((i) => e(i));
|
|
1177
|
-
},
|
|
1193
|
+
}, ee = g((e, r) => {
|
|
1178
1194
|
const { page: t, selected: n, ...a } = e;
|
|
1179
|
-
return /* @__PURE__ */ o(
|
|
1180
|
-
}),
|
|
1195
|
+
return /* @__PURE__ */ o(H, { "aria-current": n ? "page" : void 0, ref: r, ...a, children: t });
|
|
1196
|
+
}), pe = w({
|
|
1181
1197
|
defaultValue: void 0,
|
|
1182
1198
|
isControlled: !1,
|
|
1183
1199
|
name: void 0,
|
|
@@ -1185,8 +1201,8 @@ const Wt = (e) => {
|
|
|
1185
1201
|
required: !1,
|
|
1186
1202
|
value: void 0,
|
|
1187
1203
|
error: !1
|
|
1188
|
-
}),
|
|
1189
|
-
const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: c, onChange: u, required: d, value: m, error: h } = A(
|
|
1204
|
+
}), rr = g((e, r) => {
|
|
1205
|
+
const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: c, onChange: u, required: d, value: m, error: h } = A(pe);
|
|
1190
1206
|
return /* @__PURE__ */ b("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
|
|
1191
1207
|
/* @__PURE__ */ o(
|
|
1192
1208
|
"input",
|
|
@@ -1204,7 +1220,7 @@ const Wt = (e) => {
|
|
|
1204
1220
|
),
|
|
1205
1221
|
t
|
|
1206
1222
|
] });
|
|
1207
|
-
}),
|
|
1223
|
+
}), nr = g(
|
|
1208
1224
|
(e, r) => {
|
|
1209
1225
|
const t = "value" in e, {
|
|
1210
1226
|
className: n,
|
|
@@ -1220,12 +1236,12 @@ const Wt = (e) => {
|
|
|
1220
1236
|
value: p,
|
|
1221
1237
|
...x
|
|
1222
1238
|
} = e, v = E(
|
|
1223
|
-
(
|
|
1224
|
-
const
|
|
1225
|
-
h == null || h(
|
|
1239
|
+
(Ae) => {
|
|
1240
|
+
const ve = Ae.target.value;
|
|
1241
|
+
h == null || h(ve);
|
|
1226
1242
|
},
|
|
1227
1243
|
[h]
|
|
1228
|
-
),
|
|
1244
|
+
), O = C(
|
|
1229
1245
|
() => ({
|
|
1230
1246
|
defaultValue: a,
|
|
1231
1247
|
isControlled: t,
|
|
@@ -1236,30 +1252,30 @@ const Wt = (e) => {
|
|
|
1236
1252
|
error: !!i
|
|
1237
1253
|
}),
|
|
1238
1254
|
[a, t, m, v, f, p, i]
|
|
1239
|
-
),
|
|
1240
|
-
return /* @__PURE__ */ o(
|
|
1255
|
+
), j = R(c), D = `${j}:label`, G = `${j}:help`, _ = j + "err", Z = i;
|
|
1256
|
+
return /* @__PURE__ */ o(pe.Provider, { value: O, children: /* @__PURE__ */ b(
|
|
1241
1257
|
"div",
|
|
1242
1258
|
{
|
|
1243
1259
|
"aria-describedby": l({
|
|
1244
|
-
[
|
|
1245
|
-
[
|
|
1260
|
+
[_]: Z,
|
|
1261
|
+
[G]: s
|
|
1246
1262
|
}) || void 0,
|
|
1247
1263
|
"aria-invalid": !!i,
|
|
1248
|
-
"aria-labelledby": d ?
|
|
1264
|
+
"aria-labelledby": d ? D : void 0,
|
|
1249
1265
|
className: l(n, "flex flex-col gap-4"),
|
|
1250
1266
|
role: "radiogroup",
|
|
1251
1267
|
ref: r,
|
|
1252
1268
|
...x,
|
|
1253
1269
|
children: [
|
|
1254
|
-
d && /* @__PURE__ */ o(V, { id:
|
|
1255
|
-
s && /* @__PURE__ */ o(z, { id:
|
|
1270
|
+
d && /* @__PURE__ */ o(V, { id: D, isRequired: f, isInvalid: !!i, children: d }),
|
|
1271
|
+
s && /* @__PURE__ */ o(z, { id: G, children: s }),
|
|
1256
1272
|
u,
|
|
1257
|
-
|
|
1273
|
+
Z && /* @__PURE__ */ o(k, { id: _, children: Z })
|
|
1258
1274
|
]
|
|
1259
1275
|
}
|
|
1260
1276
|
) });
|
|
1261
1277
|
}
|
|
1262
|
-
),
|
|
1278
|
+
), gt = g(
|
|
1263
1279
|
(e, r) => {
|
|
1264
1280
|
const { children: t, className: n, isInvalid: a, size: s, ...i } = e, c = s === "small";
|
|
1265
1281
|
return /* @__PURE__ */ b("div", { className: l(n, "relative", c && "text-sm"), children: [
|
|
@@ -1278,7 +1294,7 @@ const Wt = (e) => {
|
|
|
1278
1294
|
}
|
|
1279
1295
|
),
|
|
1280
1296
|
/* @__PURE__ */ o(
|
|
1281
|
-
|
|
1297
|
+
ae,
|
|
1282
1298
|
{
|
|
1283
1299
|
className: l(
|
|
1284
1300
|
"pointer-events-none absolute bottom-0 top-0 my-auto",
|
|
@@ -1288,7 +1304,7 @@ const Wt = (e) => {
|
|
|
1288
1304
|
)
|
|
1289
1305
|
] });
|
|
1290
1306
|
}
|
|
1291
|
-
),
|
|
1307
|
+
), ar = g(
|
|
1292
1308
|
(e, r) => {
|
|
1293
1309
|
const {
|
|
1294
1310
|
description: t,
|
|
@@ -1297,10 +1313,10 @@ const Wt = (e) => {
|
|
|
1297
1313
|
label: s,
|
|
1298
1314
|
disableValidation: i = !1,
|
|
1299
1315
|
...c
|
|
1300
|
-
} = e, u =
|
|
1316
|
+
} = e, u = S(null), d = B(u, r), { validity: m, validationMessage: h } = L(
|
|
1301
1317
|
u,
|
|
1302
1318
|
!i
|
|
1303
|
-
), f =
|
|
1319
|
+
), f = R(a), p = f + "help", x = f + "err", v = n || h;
|
|
1304
1320
|
return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
|
|
1305
1321
|
/* @__PURE__ */ o(
|
|
1306
1322
|
V,
|
|
@@ -1313,7 +1329,7 @@ const Wt = (e) => {
|
|
|
1313
1329
|
),
|
|
1314
1330
|
t && /* @__PURE__ */ o(z, { id: p, children: t }),
|
|
1315
1331
|
/* @__PURE__ */ o(
|
|
1316
|
-
|
|
1332
|
+
gt,
|
|
1317
1333
|
{
|
|
1318
1334
|
id: f,
|
|
1319
1335
|
ref: d,
|
|
@@ -1328,10 +1344,10 @@ const Wt = (e) => {
|
|
|
1328
1344
|
v && /* @__PURE__ */ o(k, { id: x, children: v })
|
|
1329
1345
|
] });
|
|
1330
1346
|
}
|
|
1331
|
-
),
|
|
1347
|
+
), or = (e) => {
|
|
1332
1348
|
const { heading: r, children: t, closeSnackbar: n } = e, [a, s] = M(!1);
|
|
1333
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__ */ b("div", { className: "snackbar grid items-center", children: [
|
|
1334
|
-
/* @__PURE__ */ o(
|
|
1350
|
+
/* @__PURE__ */ o(se, { className: "text-orange snackbar-icon mr-4 self-start md:mr-8 md:text-2xl" }),
|
|
1335
1351
|
/* @__PURE__ */ o(
|
|
1336
1352
|
"h3",
|
|
1337
1353
|
{
|
|
@@ -1346,18 +1362,18 @@ const Wt = (e) => {
|
|
|
1346
1362
|
),
|
|
1347
1363
|
/* @__PURE__ */ b("div", { className: "snackbar-actions flex justify-end gap-4 max-md:mt-3 md:ml-4", children: [
|
|
1348
1364
|
/* @__PURE__ */ o(
|
|
1349
|
-
|
|
1365
|
+
te,
|
|
1350
1366
|
{
|
|
1351
1367
|
"aria-expanded": a,
|
|
1352
1368
|
onClick: () => s(!a),
|
|
1353
1369
|
children: a ? "Les mindre" : "Les mer"
|
|
1354
1370
|
}
|
|
1355
1371
|
),
|
|
1356
|
-
/* @__PURE__ */ o(
|
|
1372
|
+
/* @__PURE__ */ o(te, { onClick: n, children: "Ok" })
|
|
1357
1373
|
] }),
|
|
1358
1374
|
a && t
|
|
1359
1375
|
] }) }) });
|
|
1360
|
-
},
|
|
1376
|
+
}, te = (e) => /* @__PURE__ */ o(
|
|
1361
1377
|
"button",
|
|
1362
1378
|
{
|
|
1363
1379
|
className: l(
|
|
@@ -1367,19 +1383,19 @@ const Wt = (e) => {
|
|
|
1367
1383
|
...e,
|
|
1368
1384
|
children: e.children
|
|
1369
1385
|
}
|
|
1370
|
-
),
|
|
1386
|
+
), sr = (e) => /* @__PURE__ */ o(
|
|
1371
1387
|
"div",
|
|
1372
1388
|
{
|
|
1373
1389
|
className: "snackbar-content my-4 max-h-[50vh] max-w-prose overflow-y-auto",
|
|
1374
1390
|
...e,
|
|
1375
1391
|
children: e.children
|
|
1376
1392
|
}
|
|
1377
|
-
),
|
|
1393
|
+
), ht = (e) => {
|
|
1378
1394
|
const { align: r = "center", children: t, className: n, ...a } = e;
|
|
1379
|
-
return /* @__PURE__ */ o("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...a, children:
|
|
1395
|
+
return /* @__PURE__ */ o("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...a, children: X.map(t, (s) => Y(s, {
|
|
1380
1396
|
align: r
|
|
1381
1397
|
})) });
|
|
1382
|
-
},
|
|
1398
|
+
}, pt = (e) => {
|
|
1383
1399
|
const { className: r, children: t, bullet: n, align: a = "center", ...s } = e;
|
|
1384
1400
|
return /* @__PURE__ */ b(
|
|
1385
1401
|
"li",
|
|
@@ -1391,12 +1407,12 @@ const Wt = (e) => {
|
|
|
1391
1407
|
),
|
|
1392
1408
|
...s,
|
|
1393
1409
|
children: [
|
|
1394
|
-
/* @__PURE__ */ o(
|
|
1410
|
+
/* @__PURE__ */ o(At, { align: a, children: n }),
|
|
1395
1411
|
t
|
|
1396
1412
|
]
|
|
1397
1413
|
}
|
|
1398
1414
|
);
|
|
1399
|
-
},
|
|
1415
|
+
}, At = ({ align: e, ...r }) => /* @__PURE__ */ o(
|
|
1400
1416
|
"span",
|
|
1401
1417
|
{
|
|
1402
1418
|
"aria-hidden": !0,
|
|
@@ -1410,8 +1426,8 @@ const Wt = (e) => {
|
|
|
1410
1426
|
...r
|
|
1411
1427
|
}
|
|
1412
1428
|
);
|
|
1413
|
-
|
|
1414
|
-
const
|
|
1429
|
+
ht.Item = pt;
|
|
1430
|
+
const ir = g(
|
|
1415
1431
|
(e, r) => {
|
|
1416
1432
|
const {
|
|
1417
1433
|
description: t,
|
|
@@ -1420,10 +1436,10 @@ const tr = g(
|
|
|
1420
1436
|
label: s,
|
|
1421
1437
|
disableValidation: i = !1,
|
|
1422
1438
|
...c
|
|
1423
|
-
} = e, u =
|
|
1439
|
+
} = e, u = S(null), d = B(u, r), { validity: m, validationMessage: h } = L(
|
|
1424
1440
|
u,
|
|
1425
1441
|
!i
|
|
1426
|
-
), f =
|
|
1442
|
+
), f = R(a), p = f + "help", x = f + "err", v = n || h;
|
|
1427
1443
|
return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
|
|
1428
1444
|
/* @__PURE__ */ o(
|
|
1429
1445
|
V,
|
|
@@ -1436,7 +1452,7 @@ const tr = g(
|
|
|
1436
1452
|
),
|
|
1437
1453
|
t && /* @__PURE__ */ o(z, { id: p, children: t }),
|
|
1438
1454
|
/* @__PURE__ */ o(
|
|
1439
|
-
|
|
1455
|
+
he,
|
|
1440
1456
|
{
|
|
1441
1457
|
as: "textarea",
|
|
1442
1458
|
ref: d,
|
|
@@ -1452,7 +1468,7 @@ const tr = g(
|
|
|
1452
1468
|
v && /* @__PURE__ */ o(k, { id: x, children: v })
|
|
1453
1469
|
] });
|
|
1454
1470
|
}
|
|
1455
|
-
),
|
|
1471
|
+
), lr = g(
|
|
1456
1472
|
(e, r) => {
|
|
1457
1473
|
const {
|
|
1458
1474
|
description: t,
|
|
@@ -1462,10 +1478,10 @@ const tr = g(
|
|
|
1462
1478
|
type: i = "text",
|
|
1463
1479
|
disableValidation: c = !1,
|
|
1464
1480
|
...u
|
|
1465
|
-
} = e, d =
|
|
1481
|
+
} = e, d = S(null), { validity: m, validationMessage: h } = L(
|
|
1466
1482
|
d,
|
|
1467
1483
|
!c
|
|
1468
|
-
), f =
|
|
1484
|
+
), f = R(a), p = f + "help", x = f + "err", v = n || h, O = B(d, r);
|
|
1469
1485
|
return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
|
|
1470
1486
|
/* @__PURE__ */ o(
|
|
1471
1487
|
V,
|
|
@@ -1478,10 +1494,10 @@ const tr = g(
|
|
|
1478
1494
|
),
|
|
1479
1495
|
t && /* @__PURE__ */ o(z, { id: p, children: t }),
|
|
1480
1496
|
/* @__PURE__ */ o(
|
|
1481
|
-
|
|
1497
|
+
he,
|
|
1482
1498
|
{
|
|
1483
1499
|
id: f,
|
|
1484
|
-
ref:
|
|
1500
|
+
ref: O,
|
|
1485
1501
|
type: i,
|
|
1486
1502
|
...u,
|
|
1487
1503
|
isInvalid: !!n || m === "invalid",
|
|
@@ -1496,64 +1512,64 @@ const tr = g(
|
|
|
1496
1512
|
}
|
|
1497
1513
|
);
|
|
1498
1514
|
export {
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1515
|
+
U as Accordion,
|
|
1516
|
+
Pe as AccordionContent,
|
|
1517
|
+
Le as AccordionHeader,
|
|
1518
|
+
Me as AccordionItem,
|
|
1519
|
+
Et as Alert,
|
|
1520
|
+
St as Banner,
|
|
1521
|
+
Rt as BannerImage,
|
|
1522
|
+
kt as Button,
|
|
1507
1523
|
P as ButtonColorContext,
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1524
|
+
qt as Campaign,
|
|
1525
|
+
Mt as Card,
|
|
1526
|
+
zt as CardContent,
|
|
1527
|
+
Lt as CardImage,
|
|
1528
|
+
Vt as CardLinkOverlay,
|
|
1529
|
+
Pt as CardList,
|
|
1530
|
+
Tt as Checkbox,
|
|
1531
|
+
Ft as Chip,
|
|
1532
|
+
Jt as Footer,
|
|
1533
|
+
Ot as Form,
|
|
1534
|
+
jt as FormError,
|
|
1519
1535
|
k as FormErrorMessage,
|
|
1520
|
-
|
|
1536
|
+
_e as FormHeading,
|
|
1521
1537
|
z as FormHelperText,
|
|
1522
1538
|
V as FormLabel,
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1539
|
+
Kt as FormStep,
|
|
1540
|
+
$e as FormStepHeader,
|
|
1541
|
+
et as FormStepHeaderContent,
|
|
1542
|
+
Wt as FormStepProvider,
|
|
1543
|
+
Zt as FormSuccess,
|
|
1544
|
+
Xt as Hero,
|
|
1545
|
+
Ut as HeroActions,
|
|
1546
|
+
Bt as HeroContent,
|
|
1547
|
+
F as HeroContext,
|
|
1548
|
+
Yt as HeroImage,
|
|
1549
|
+
he as Input,
|
|
1550
|
+
Qt as Link,
|
|
1551
|
+
Ht as Navbar,
|
|
1552
|
+
$t as NavbarCollapsible,
|
|
1553
|
+
_t as NavbarContent,
|
|
1554
|
+
er as NavbarExpandedMobileContent,
|
|
1555
|
+
Gt as NavbarItem,
|
|
1556
|
+
Dt as NavbarItems,
|
|
1557
|
+
tr as Pagination,
|
|
1558
|
+
rr as Radio,
|
|
1559
|
+
nr as RadioGroup,
|
|
1560
|
+
ar as Select,
|
|
1561
|
+
or as Snackbar,
|
|
1562
|
+
te as SnackbarButton,
|
|
1563
|
+
sr as SnackbarContent,
|
|
1564
|
+
ht as StepList,
|
|
1565
|
+
pt as StepListItem,
|
|
1566
|
+
ir as TextArea,
|
|
1567
|
+
lr as TextField,
|
|
1568
|
+
ce as useBlockBackgroundColor,
|
|
1569
|
+
R as useFallbackId,
|
|
1554
1570
|
L as useFormControlValidity,
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1571
|
+
tt as useFormStepContext,
|
|
1572
|
+
de as useMedia,
|
|
1573
|
+
Ct as usePrefersReducedMotion,
|
|
1574
|
+
We as useScreenMaxWidthMd
|
|
1559
1575
|
};
|