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