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