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