digital-rabbit-cl 1.0.31 → 1.0.34

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.
@@ -1,7 +1,8 @@
1
- import { jsx as _, jsxs as z, Fragment as ee } from "react/jsx-runtime";
2
- import $, { createContext as te, useContext as oe, useState as Z, useLayoutEffect as se, useSyncExternalStore as ne, useMemo as q, useRef as T, useEffect as j } from "react";
3
- const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT8P", le = "Button-module__sizeDefault___iwWOV", H = {
4
- button: re,
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:.15em;border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:.1em .5em}.Button-module__sizeDefault___iwWOV{padding:.25em .5em}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:.25em}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}.Input-module__input___WjT81{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:.1em .25em}.Input-module__sizeDefault___AxPA0{padding:.25em .5em}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.35em;-webkit-user-select:none;user-select:none}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:.15em;border-style:solid;border-radius:0;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:.1em 1.75em .1em .25em}.Select-module__sizeDefault___EiWvW{padding:.25em 2em .25em .5em}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:.15em;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:.1em .25em}.Textarea-module__sizeDefault___LL2Uc{padding:.25em .5em}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:4.25rem;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.5rem 3rem;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.75rem 2rem}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as p, jsxs as z, Fragment as W } from "react/jsx-runtime";
3
+ import N, { createContext as te, useContext as oe, useState as E, useLayoutEffect as se, useSyncExternalStore as re, useMemo as G, useRef as A, useEffect as D } from "react";
4
+ const ne = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT8P", le = "Button-module__sizeDefault___iwWOV", $ = {
5
+ button: ne,
5
6
  sizeSmall: ae,
6
7
  sizeDefault: le
7
8
  }, ce = ({
@@ -9,28 +10,28 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
9
10
  disabled: t,
10
11
  buttonColor: o = "#FFF",
11
12
  textColor: s = "#000",
12
- hoverColor: n,
13
- hoverTextColor: r,
13
+ hoverColor: r,
14
+ hoverTextColor: n,
14
15
  outline: l
15
16
  }) => {
16
17
  let a, i, u;
17
- l ? (a = "transparent", i = o, u = o, e && (a = n || o, i = n || o, u = r || s)) : (a = o, i = o, u = s, e && (a = n || o, i = n || o, u = r || s));
18
- let y = 1;
19
- return t ? y = 0.3 : e && (y = n || l ? 1 : 0.75), {
18
+ l ? (a = "transparent", i = o, u = o, e && (a = r || o, i = r || o, u = n || s)) : (a = o, i = o, u = s, e && (a = r || o, i = r || o, u = n || s));
19
+ let f = 1;
20
+ return t ? f = 0.3 : e && (f = r || l ? 1 : 0.75), {
20
21
  backgroundColor: a,
21
22
  borderColor: i,
22
23
  color: u,
23
- opacity: y
24
+ opacity: f
24
25
  };
25
- }, V = {
26
+ }, O = {
26
27
  primary: "#FFF",
27
28
  secondary: "#000",
28
29
  accent: "#4381C1",
29
30
  error: "#F00",
30
31
  success: "#008000",
31
32
  warning: "#FFEB3B"
32
- }, v = {
33
- colors: V,
33
+ }, x = {
34
+ colors: O,
34
35
  fonts: {
35
36
  color: "#000",
36
37
  lineHeight: 1.5,
@@ -48,7 +49,7 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
48
49
  buttons: {
49
50
  textColor: "#FFF",
50
51
  primary: {
51
- textColor: V.secondary
52
+ textColor: O.secondary
52
53
  }
53
54
  },
54
55
  borderRadius: "0px",
@@ -63,78 +64,78 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
63
64
  wrapperPaddingSm: "0.5rem",
64
65
  wrapperPadding: "1rem"
65
66
  }
66
- }, G = te(v), Je = ({ theme: e = {}, children: t }) => {
67
+ }, J = te(x), Ke = ({ theme: e = {}, children: t }) => {
67
68
  var s;
68
69
  const o = {
69
- ...v,
70
+ ...x,
70
71
  ...e,
71
72
  colors: {
72
- ...v.colors,
73
+ ...x.colors,
73
74
  ...e.colors
74
75
  },
75
76
  fonts: {
76
- ...v.fonts,
77
+ ...x.fonts,
77
78
  ...e.fonts
78
79
  },
79
80
  buttons: {
80
- ...v.buttons,
81
+ ...x.buttons,
81
82
  ...e.buttons,
82
83
  primary: {
83
- ...v.buttons.primary,
84
+ ...x.buttons.primary,
84
85
  ...(s = e.buttons) == null ? void 0 : s.primary
85
86
  }
86
87
  },
87
88
  breakpoints: {
88
- ...v.breakpoints,
89
+ ...x.breakpoints,
89
90
  ...e.breakpoints
90
91
  },
91
92
  layout: {
92
- ...v.layout,
93
+ ...x.layout,
93
94
  ...e.layout
94
95
  }
95
96
  };
96
- return /* @__PURE__ */ _(G.Provider, { value: o, children: t });
97
- }, h = () => oe(G), Ke = ({
97
+ return /* @__PURE__ */ p(J.Provider, { value: o, children: t });
98
+ }, _ = () => oe(J), Xe = ({
98
99
  color: e,
99
100
  hoverColor: t,
100
101
  hoverTextColor: o,
101
102
  textColor: s,
102
- outline: n = !1,
103
- size: r,
103
+ outline: r = !1,
104
+ size: n,
104
105
  type: l = "button",
105
106
  buttonProps: a = {},
106
107
  children: i,
107
108
  disabled: u = !1,
108
- onClick: y,
109
- fontSize: d
109
+ onClick: f,
110
+ fontSize: m
110
111
  }) => {
111
- const m = h(), [c, p] = Z(!1);
112
- let f;
113
- s ? f = s : f = e ? m.buttons.textColor : m.buttons.primary.textColor;
112
+ const d = _(), [c, y] = E(!1);
113
+ let h;
114
+ s ? h = s : h = e ? d.buttons.textColor : d.buttons.primary.textColor;
114
115
  const g = {
115
116
  ...ce({
116
117
  isActive: c,
117
118
  disabled: u,
118
- buttonColor: e || m.colors.primary,
119
- textColor: f,
119
+ buttonColor: e || d.colors.primary,
120
+ textColor: h,
120
121
  hoverColor: t,
121
122
  hoverTextColor: o,
122
- outline: n
123
+ outline: r
123
124
  }),
124
- fontSize: d || m.fonts.size
125
+ fontSize: m || d.fonts.size
125
126
  }, S = [
126
- H.button,
127
- r === "small" ? H.sizeSmall : H.sizeDefault,
128
- n ? H.outline : ""
127
+ $.button,
128
+ n === "small" ? $.sizeSmall : $.sizeDefault,
129
+ r ? $.outline : ""
129
130
  ].filter(Boolean).join(" ");
130
- return /* @__PURE__ */ _(
131
+ return /* @__PURE__ */ p(
131
132
  "button",
132
133
  {
133
134
  className: S,
134
135
  disabled: u,
135
- onClick: y,
136
- onMouseEnter: () => p(!0),
137
- onMouseLeave: () => p(!1),
136
+ onClick: f,
137
+ onMouseEnter: () => y(!0),
138
+ onMouseLeave: () => y(!1),
138
139
  type: l,
139
140
  ...a,
140
141
  style: {
@@ -145,30 +146,30 @@ const re = "Button-module__button___2ZuB7", ae = "Button-module__sizeSmall___DRT
145
146
  }
146
147
  );
147
148
  };
148
- var A = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), ie = new Uint8Array(16);
149
+ var U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), ie = new Uint8Array(16);
149
150
  function ue() {
150
- if (!A)
151
+ if (!U)
151
152
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
152
- return A(ie);
153
+ return U(ie);
153
154
  }
154
- var J = [];
155
- for (var P = 0; P < 256; ++P)
156
- J[P] = (P + 256).toString(16).substr(1);
157
- function me(e, t) {
158
- var o = 0, s = J;
155
+ var K = [];
156
+ for (var H = 0; H < 256; ++H)
157
+ K[H] = (H + 256).toString(16).substr(1);
158
+ function de(e, t) {
159
+ var o = 0, s = K;
159
160
  return [s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], "-", s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]], s[e[o++]]].join("");
160
161
  }
161
- function K(e, t, o) {
162
+ function X(e, t, o) {
162
163
  var s = t && o || 0;
163
164
  typeof e == "string" && (t = e === "binary" ? new Array(16) : null, e = null), e = e || {};
164
- var n = e.random || (e.rng || ue)();
165
- if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t)
166
- for (var r = 0; r < 16; ++r)
167
- t[s + r] = n[r];
168
- return t || me(n);
165
+ var r = e.random || (e.rng || ue)();
166
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t)
167
+ for (var n = 0; n < 16; ++n)
168
+ t[s + n] = r[n];
169
+ return t || de(r);
169
170
  }
170
- const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kkluC", ye = "Checkbox-module__label___cwRtI", R = {
171
- container: de,
171
+ const me = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kkluC", ye = "Checkbox-module__label___cwRtI", R = {
172
+ container: me,
172
173
  svg: pe,
173
174
  label: ye
174
175
  }, fe = ({
@@ -177,56 +178,56 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
177
178
  disabled: o = !1,
178
179
  inverted: s = !1
179
180
  }) => {
180
- let n = e;
181
- return t ? n = t : s && (n = "white"), {
181
+ let r = e;
182
+ return t ? r = t : s && (r = "white"), {
182
183
  boxColor: e,
183
- checkmarkColor: n,
184
+ checkmarkColor: r,
184
185
  cursor: o ? "default" : "pointer",
185
186
  opacity: o ? 0.3 : 1
186
187
  };
187
- }, Xe = ({
188
+ }, Ye = ({
188
189
  checked: e = !1,
189
190
  checkmarkColor: t,
190
191
  color: o,
191
192
  disabled: s = !1,
192
- fontSize: n,
193
- id: r,
193
+ fontSize: r,
194
+ id: n,
194
195
  inverted: l = !1,
195
196
  label: a,
196
197
  labelStyle: i,
197
198
  name: u,
198
- onChange: y,
199
- style: d,
200
- ...m
199
+ onChange: f,
200
+ style: m,
201
+ ...d
201
202
  }) => {
202
- const c = h(), p = r || K(), f = fe({
203
+ const c = _(), y = n || X(), h = fe({
203
204
  color: o || c.colors.primary,
204
205
  checkmarkColor: t,
205
206
  disabled: s,
206
207
  inverted: l
207
- }), b = (x) => {
208
- s || y(x);
208
+ }), b = (v) => {
209
+ s || f(v);
209
210
  }, g = {
210
- cursor: f.cursor,
211
- fontSize: n || c.fonts.size,
212
- opacity: f.opacity,
213
- ...d
211
+ cursor: h.cursor,
212
+ fontSize: r || c.fonts.size,
213
+ opacity: h.opacity,
214
+ ...m
214
215
  }, S = {
215
- width: n || "1rem"
216
+ width: r || "1rem"
216
217
  }, w = {
217
- color: f.boxColor,
218
- cursor: f.cursor,
219
- fontSize: n || "1rem",
218
+ color: h.boxColor,
219
+ cursor: h.cursor,
220
+ fontSize: r || "1rem",
220
221
  ...i
221
222
  };
222
- return /* @__PURE__ */ z("div", { className: R.container, style: g, ...m, children: [
223
- /* @__PURE__ */ _(
223
+ return /* @__PURE__ */ z("div", { className: R.container, style: g, ...d, children: [
224
+ /* @__PURE__ */ p(
224
225
  "input",
225
226
  {
226
- id: p,
227
+ id: y,
227
228
  checked: e,
228
229
  disabled: s,
229
- onChange: (x) => b({ target: { checked: x.target.checked, name: u, type: "checkbox" } }),
230
+ onChange: (v) => b({ target: { checked: v.target.checked, name: u, type: "checkbox" } }),
230
231
  name: u,
231
232
  style: { display: "none" },
232
233
  type: "checkbox"
@@ -241,7 +242,7 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
241
242
  style: S,
242
243
  className: R.svg,
243
244
  children: [
244
- /* @__PURE__ */ _(
245
+ /* @__PURE__ */ p(
245
246
  "rect",
246
247
  {
247
248
  x: "0",
@@ -249,17 +250,17 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
249
250
  height: "100",
250
251
  width: "100",
251
252
  style: {
252
- fill: l && e ? f.boxColor : "transparent",
253
+ fill: l && e ? h.boxColor : "transparent",
253
254
  strokeWidth: "25",
254
- stroke: f.boxColor
255
+ stroke: h.boxColor
255
256
  }
256
257
  }
257
258
  ),
258
- e && /* @__PURE__ */ _(
259
+ e && /* @__PURE__ */ p(
259
260
  "path",
260
261
  {
261
262
  d: "M 25 45 L 45 65 L 75 30",
262
- stroke: f.checkmarkColor,
263
+ stroke: h.checkmarkColor,
263
264
  strokeWidth: "15",
264
265
  fill: "transparent"
265
266
  }
@@ -267,17 +268,17 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
267
268
  ]
268
269
  }
269
270
  ),
270
- a && /* @__PURE__ */ _("label", { htmlFor: p, className: R.label, style: w, children: a })
271
+ a && /* @__PURE__ */ p("label", { htmlFor: y, className: R.label, style: w, children: a })
271
272
  ] });
272
- }, Ye = () => {
273
- const e = h();
273
+ }, et = () => {
274
+ const e = _();
274
275
  return se(() => {
275
276
  const t = document.documentElement;
276
277
  e.fonts && (e.fonts.fontFamily && t.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && t.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && t.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && t.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && t.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && t.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && t.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && t.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && t.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && t.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && t.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && t.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && t.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && t.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && t.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && t.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && t.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && t.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.wrapperPaddingSm && t.style.setProperty("--layout-wrapper-padding-sm", e.layout.wrapperPaddingSm), e.layout.wrapperPadding && t.style.setProperty("--layout-wrapper-padding", e.layout.wrapperPadding));
277
278
  }, [e]), null;
278
- }, _e = "FormLabel-module__label___0M-fo", he = "FormLabel-module__disabled___ktIFp", O = {
279
- label: _e,
280
- disabled: he
279
+ }, he = "FormLabel-module__label___0M-fo", _e = "FormLabel-module__disabled___ktIFp", q = {
280
+ label: he,
281
+ disabled: _e
281
282
  }, ge = ({
282
283
  color: e = "#000",
283
284
  disabled: t = !1,
@@ -287,16 +288,16 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
287
288
  fontSize: o,
288
289
  opacity: t ? 0.5 : 1,
289
290
  cursor: t ? "not-allowed" : "default"
290
- }), et = ({
291
+ }), tt = ({
291
292
  children: e,
292
293
  color: t,
293
294
  disabled: o = !1,
294
295
  fontSize: s,
295
- htmlFor: n,
296
- style: r,
296
+ htmlFor: r,
297
+ style: n,
297
298
  ...l
298
299
  }) => {
299
- const a = h(), i = ge({
300
+ const a = _(), i = ge({
300
301
  color: t || a.colors.primary,
301
302
  disabled: o,
302
303
  fontSize: s || ".85em"
@@ -305,26 +306,26 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
305
306
  fontSize: i.fontSize,
306
307
  opacity: i.opacity,
307
308
  cursor: i.cursor,
308
- ...r
309
- }, y = [
310
- O.label,
311
- o ? O.disabled : ""
309
+ ...n
310
+ }, f = [
311
+ q.label,
312
+ o ? q.disabled : ""
312
313
  ].filter(Boolean).join(" ");
313
- return /* @__PURE__ */ _(
314
+ return /* @__PURE__ */ p(
314
315
  "label",
315
316
  {
316
- className: y,
317
- htmlFor: n,
317
+ className: f,
318
+ htmlFor: r,
318
319
  style: u,
319
320
  ...l,
320
321
  children: e
321
322
  }
322
323
  );
323
- }, Se = "Input-module__input___WjT81", be = "Input-module__sizeSmall___NFvsi", xe = "Input-module__sizeDefault___AxPA0", F = {
324
+ }, Se = "Input-module__input___WjT81", be = "Input-module__sizeSmall___NFvsi", ve = "Input-module__sizeDefault___AxPA0", F = {
324
325
  input: Se,
325
326
  sizeSmall: be,
326
- sizeDefault: xe
327
- }, ve = ({
327
+ sizeDefault: ve
328
+ }, xe = ({
328
329
  color: e = "#000",
329
330
  disabled: t = !1,
330
331
  fontSize: o = "1em",
@@ -335,51 +336,51 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
335
336
  fontSize: o,
336
337
  opacity: t ? 0.3 : 1,
337
338
  placeholderOpacity: s
338
- }), tt = ({
339
+ }), ot = ({
339
340
  color: e,
340
341
  disabled: t = !1,
341
342
  fontSize: o,
342
343
  name: s = "",
343
- onChange: n,
344
- placeholder: r,
344
+ onChange: r,
345
+ placeholder: n,
345
346
  placeholderOpacity: l = 0.3,
346
347
  size: a,
347
348
  style: i,
348
349
  type: u = "text",
349
- value: y = "",
350
- ...d
350
+ value: f = "",
351
+ ...m
351
352
  }) => {
352
- const m = h(), c = ve({
353
- color: e || m.colors.primary,
353
+ const d = _(), c = xe({
354
+ color: e || d.colors.primary,
354
355
  disabled: t,
355
- fontSize: o || m.fonts.size,
356
+ fontSize: o || d.fonts.size,
356
357
  placeholderOpacity: l
357
- }), p = {
358
+ }), y = {
358
359
  "--placeholder-opacity": c.placeholderOpacity,
359
360
  borderColor: c.borderColor,
360
361
  color: c.color,
361
362
  fontSize: c.fontSize,
362
363
  opacity: c.opacity,
363
364
  ...i
364
- }, f = [
365
+ }, h = [
365
366
  F.input,
366
367
  a === "small" ? F.sizeSmall : F.sizeDefault
367
368
  ].filter(Boolean).join(" ");
368
- return /* @__PURE__ */ _(
369
+ return /* @__PURE__ */ p(
369
370
  "input",
370
371
  {
371
- className: f,
372
+ className: h,
372
373
  disabled: t,
373
374
  name: s,
374
- onChange: n,
375
- placeholder: r,
376
- style: p,
375
+ onChange: r,
376
+ placeholder: n,
377
+ style: y,
377
378
  type: u,
378
- value: y,
379
- ...d
379
+ value: f,
380
+ ...m
380
381
  }
381
382
  );
382
- }, ze = "Radio-module__container___AQxhk", ke = "Radio-module__svg___zl5kF", we = "Radio-module__label___vAFIP", M = {
383
+ }, ze = "Radio-module__container___AQxhk", ke = "Radio-module__svg___zl5kF", we = "Radio-module__label___vAFIP", I = {
383
384
  container: ze,
384
385
  svg: ke,
385
386
  label: we
@@ -390,31 +391,31 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
390
391
  radioColor: e,
391
392
  cursor: t ? "default" : "pointer",
392
393
  opacity: t ? 0.3 : 1
393
- }), ot = ({
394
+ }), st = ({
394
395
  checked: e = !1,
395
396
  color: t,
396
397
  disabled: o = !1,
397
398
  fontSize: s,
398
- id: n,
399
- label: r,
399
+ id: r,
400
+ label: n,
400
401
  labelStyle: l,
401
402
  name: a,
402
403
  onChange: i,
403
404
  style: u,
404
- ...y
405
+ ...f
405
406
  }) => {
406
- const d = h(), m = n || K(), c = Ce({
407
- color: t || d.colors.primary,
407
+ const m = _(), d = r || X(), c = Ce({
408
+ color: t || m.colors.primary,
408
409
  disabled: o
409
- }), p = (x) => {
410
- o || i(x);
411
- }, f = {
410
+ }), y = (v) => {
411
+ o || i(v);
412
+ }, h = {
412
413
  cursor: c.cursor,
413
- fontSize: s || d.fonts.size,
414
+ fontSize: s || m.fonts.size,
414
415
  opacity: c.opacity,
415
416
  ...u
416
417
  }, b = {
417
- width: s || d.fonts.size
418
+ width: s || m.fonts.size
418
419
  }, g = {
419
420
  fill: "transparent",
420
421
  strokeWidth: "12.5",
@@ -424,18 +425,18 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
424
425
  }, w = {
425
426
  color: c.radioColor,
426
427
  cursor: c.cursor,
427
- fontSize: s || d.fonts.size,
428
+ fontSize: s || m.fonts.size,
428
429
  ...l
429
430
  };
430
- return /* @__PURE__ */ z("div", { className: M.container, style: f, ...y, children: [
431
- /* @__PURE__ */ _(
431
+ return /* @__PURE__ */ z("div", { className: I.container, style: h, ...f, children: [
432
+ /* @__PURE__ */ p(
432
433
  "input",
433
434
  {
434
- id: m,
435
+ id: d,
435
436
  checked: e,
436
437
  disabled: o,
437
438
  name: a,
438
- onChange: (x) => p({ target: { checked: x.target.checked, name: a, type: "radio" } }),
439
+ onChange: (v) => y({ target: { checked: v.target.checked, name: a, type: "radio" } }),
439
440
  style: { display: "none" },
440
441
  type: "radio"
441
442
  }
@@ -445,11 +446,11 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
445
446
  {
446
447
  xmlns: "http://www.w3.org/2000/svg",
447
448
  viewBox: "0 0 100 100",
448
- onClick: () => p({ target: { checked: !e, name: a, type: "radio" } }),
449
- className: M.svg,
449
+ onClick: () => y({ target: { checked: !e, name: a, type: "radio" } }),
450
+ className: I.svg,
450
451
  style: b,
451
452
  children: [
452
- /* @__PURE__ */ _(
453
+ /* @__PURE__ */ p(
453
454
  "circle",
454
455
  {
455
456
  cx: "50",
@@ -459,7 +460,7 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
459
460
  style: g
460
461
  }
461
462
  ),
462
- e && /* @__PURE__ */ _(
463
+ e && /* @__PURE__ */ p(
463
464
  "circle",
464
465
  {
465
466
  cx: "50",
@@ -471,21 +472,21 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
471
472
  ]
472
473
  }
473
474
  ),
474
- r && /* @__PURE__ */ _(
475
+ n && /* @__PURE__ */ p(
475
476
  "label",
476
477
  {
477
- htmlFor: m,
478
- className: M.label,
478
+ htmlFor: d,
479
+ className: I.label,
479
480
  style: w,
480
- children: r
481
+ children: n
481
482
  }
482
483
  )
483
484
  ] });
484
- }, He = "Select-module__select___cjdcr", Pe = "Select-module__sizeSmall___i1quj", Ne = "Select-module__sizeDefault___EiWvW", I = {
485
- select: He,
486
- sizeSmall: Pe,
487
- sizeDefault: Ne
488
- }, $e = ({
485
+ }, $e = "Select-module__select___cjdcr", He = "Select-module__sizeSmall___i1quj", Pe = "Select-module__sizeDefault___EiWvW", M = {
486
+ select: $e,
487
+ sizeSmall: He,
488
+ sizeDefault: Pe
489
+ }, Ne = ({
489
490
  color: e = "#000",
490
491
  disabled: t = !1
491
492
  }) => ({
@@ -493,18 +494,18 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
493
494
  borderColor: e,
494
495
  cursor: t ? "default" : "pointer",
495
496
  opacity: t ? 0.3 : 1,
496
- backgroundImage: ((r) => {
497
+ backgroundImage: ((n) => {
497
498
  const l = `
498
499
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
499
500
  <path
500
501
  d="M 30 42.5 L 50 22.5 L 70 42.5"
501
- stroke="${r}"
502
+ stroke="${n}"
502
503
  stroke-width="11"
503
504
  fill="transparent"
504
505
  />
505
506
  <path
506
507
  d="M 30 58.5 L 50 78.5 L 70 58.5"
507
- stroke="${r}"
508
+ stroke="${n}"
508
509
  stroke-width="11"
509
510
  fill="transparent"
510
511
  />
@@ -512,59 +513,59 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
512
513
  `.trim();
513
514
  return `url("data:image/svg+xml,${encodeURIComponent(l)}")`;
514
515
  })(e)
515
- }), st = ({
516
+ }), rt = ({
516
517
  children: e,
517
518
  color: t,
518
519
  disabled: o = !1,
519
520
  fontSize: s,
520
- name: n = "",
521
- onChange: r,
521
+ name: r = "",
522
+ onChange: n,
522
523
  placeholder: l = "",
523
524
  size: a,
524
525
  style: i,
525
526
  value: u = "",
526
- ...y
527
+ ...f
527
528
  }) => {
528
- const d = h(), m = $e({
529
- color: t || d.colors.primary,
529
+ const m = _(), d = Ne({
530
+ color: t || m.colors.primary,
530
531
  disabled: o
531
532
  }), c = {
532
- backgroundImage: m.backgroundImage,
533
+ backgroundImage: d.backgroundImage,
533
534
  backgroundPosition: "right center",
534
535
  backgroundRepeat: "no-repeat",
535
536
  backgroundSize: "auto 85%",
536
537
  backgroundColor: "transparent",
537
- borderColor: m.borderColor,
538
- color: m.color,
539
- cursor: m.cursor,
540
- fontSize: s || d.fonts.size,
541
- opacity: m.opacity,
538
+ borderColor: d.borderColor,
539
+ color: d.color,
540
+ cursor: d.cursor,
541
+ fontSize: s || m.fonts.size,
542
+ opacity: d.opacity,
542
543
  ...i
543
- }, p = [
544
- I.select,
545
- a === "small" ? I.sizeSmall : I.sizeDefault
544
+ }, y = [
545
+ M.select,
546
+ a === "small" ? M.sizeSmall : M.sizeDefault
546
547
  ].filter(Boolean).join(" ");
547
548
  return /* @__PURE__ */ z(
548
549
  "select",
549
550
  {
550
- className: p,
551
+ className: y,
551
552
  disabled: o,
552
- name: n,
553
- onChange: r,
553
+ name: r,
554
+ onChange: n,
554
555
  style: c,
555
556
  value: u,
556
- ...y,
557
+ ...f,
557
558
  children: [
558
- l !== "" && /* @__PURE__ */ _("option", { disabled: !0, value: "", children: l }),
559
+ l !== "" && /* @__PURE__ */ p("option", { disabled: !0, value: "", children: l }),
559
560
  e
560
561
  ]
561
562
  }
562
563
  );
563
- }, Re = "Textarea-module__textarea___Z-y6g", Fe = "Textarea-module__sizeSmall___HHFEM", Me = "Textarea-module__sizeDefault___LL2Uc", B = {
564
+ }, Re = "Textarea-module__textarea___Z-y6g", Fe = "Textarea-module__sizeSmall___HHFEM", Ie = "Textarea-module__sizeDefault___LL2Uc", B = {
564
565
  textarea: Re,
565
566
  sizeSmall: Fe,
566
- sizeDefault: Me
567
- }, Ie = ({
567
+ sizeDefault: Ie
568
+ }, Me = ({
568
569
  color: e = "#000",
569
570
  disabled: t = !1,
570
571
  placeholderOpacity: o = 0.3
@@ -578,102 +579,102 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
578
579
  disabled: t = !1,
579
580
  fontSize: o,
580
581
  name: s = "",
581
- onChange: n,
582
- placeholder: r,
582
+ onChange: r,
583
+ placeholder: n,
583
584
  placeholderOpacity: l = 0.3,
584
585
  rows: a = 3,
585
586
  size: i,
586
587
  style: u,
587
- value: y = "",
588
- ...d
588
+ value: f = "",
589
+ ...m
589
590
  }) => {
590
- const m = h(), c = Ie({
591
- color: e || m.colors.primary,
591
+ const d = _(), c = Me({
592
+ color: e || d.colors.primary,
592
593
  disabled: t,
593
594
  placeholderOpacity: l
594
- }), p = `textarea-placeholder-${$.useId ? $.useId() : Math.random().toString(36)}`;
595
- $.useEffect(() => {
595
+ }), y = `textarea-placeholder-${N.useId ? N.useId() : Math.random().toString(36)}`;
596
+ N.useEffect(() => {
596
597
  const g = document.createElement("style");
597
- return g.id = p, g.textContent = `
598
- .${p}::placeholder {
598
+ return g.id = y, g.textContent = `
599
+ .${y}::placeholder {
599
600
  color: inherit;
600
601
  opacity: ${c.placeholderOpacity};
601
602
  }
602
603
  `, document.head.appendChild(g), () => {
603
- const S = document.getElementById(p);
604
+ const S = document.getElementById(y);
604
605
  S && S.remove();
605
606
  };
606
- }, [p, c.placeholderOpacity]);
607
- const f = {
607
+ }, [y, c.placeholderOpacity]);
608
+ const h = {
608
609
  borderColor: c.borderColor,
609
610
  color: c.color,
610
- fontSize: o || m.fonts.size,
611
+ fontSize: o || d.fonts.size,
611
612
  opacity: c.opacity,
612
613
  ...u
613
614
  }, b = [
614
615
  B.textarea,
615
616
  i === "small" ? B.sizeSmall : B.sizeDefault,
616
- p
617
+ y
617
618
  ].filter(Boolean).join(" ");
618
- return /* @__PURE__ */ _(
619
+ return /* @__PURE__ */ p(
619
620
  "textarea",
620
621
  {
621
622
  className: b,
622
623
  disabled: t,
623
624
  name: s,
624
- onChange: n,
625
- placeholder: r,
625
+ onChange: r,
626
+ placeholder: n,
626
627
  rows: a,
627
- style: f,
628
- value: y,
629
- ...d
628
+ style: h,
629
+ value: f,
630
+ ...m
630
631
  }
631
632
  );
632
- }, Be = "Header-module__header___RUooH", De = "Header-module__container___t68M9", U = {
633
+ }, Be = "Header-module__header___RUooH", De = "Header-module__container___t68M9", Q = {
633
634
  header: Be,
634
635
  container: De
635
- }, We = ({
636
+ }, Le = ({
636
637
  isSmallScreen: e = !1,
637
638
  maxWidth: t,
638
639
  paddingSm: o,
639
640
  padding: s,
640
- fontSize: n
641
+ fontSize: r
641
642
  } = {}) => {
642
- const r = h();
643
+ const n = _();
643
644
  return {
644
- "--header-max-width": t || r.layout.maxWidth,
645
- "--header-padding": e ? o || r.layout.wrapperPaddingSm : s || r.layout.wrapperPadding,
646
- "--header-font-size": e ? "0.75rem" : n || r.fonts.size
645
+ "--header-max-width": t || n.layout.maxWidth,
646
+ "--header-padding": e ? o || n.layout.wrapperPaddingSm : s || n.layout.wrapperPadding,
647
+ "--header-font-size": e ? "0.75rem" : r || n.fonts.size
647
648
  };
648
- }, D = (e) => {
649
+ }, L = (e) => {
649
650
  const t = typeof window < "u" && typeof window.matchMedia == "function";
650
- return ne((r) => {
651
+ return re((n) => {
651
652
  if (!t) return () => {
652
653
  };
653
654
  const l = window.matchMedia(e);
654
- return l.addEventListener("change", r), () => l.removeEventListener("change", r);
655
+ return l.addEventListener("change", n), () => l.removeEventListener("change", n);
655
656
  }, () => t ? window.matchMedia(e).matches : !1, () => !1);
656
- }, rt = ({
657
+ }, at = ({
657
658
  children: e,
658
659
  breakPointSm: t,
659
660
  maxWidth: o,
660
661
  paddingSm: s,
661
- padding: n,
662
- fontSize: r,
662
+ padding: r,
663
+ fontSize: n,
663
664
  style: l = {},
664
665
  headerProps: a = {},
665
666
  headerRef: i
666
667
  }) => {
667
- const u = h(), d = (t || u.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), m = d ? parseInt(d[1], 10) - 1 : 474, c = d ? d[2] : "px", p = D(`(max-width: ${m}${c})`), f = We({
668
- isSmallScreen: p,
668
+ const u = _(), m = (t || u.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), d = m ? parseInt(m[1], 10) - 1 : 474, c = m ? m[2] : "px", y = L(`(max-width: ${d}${c})`), h = Le({
669
+ isSmallScreen: y,
669
670
  maxWidth: o,
670
671
  paddingSm: s,
671
- padding: n,
672
- fontSize: r
672
+ padding: r,
673
+ fontSize: n
673
674
  });
674
- return /* @__PURE__ */ _("header", { ref: i, className: U.header, ...a, children: /* @__PURE__ */ _("div", { className: U.container, style: { ...f, ...l }, children: e }) });
675
- }, Le = "ResponsiveNav-module__nav___xOfv5", Ee = "ResponsiveNav-module__navMobile___h795P", Te = "ResponsiveNav-module__open___WDCAf", je = "ResponsiveNav-module__navDesktop___9wscZ", N = {
676
- nav: Le,
675
+ return /* @__PURE__ */ p("header", { ref: i, className: Q.header, ...a, children: /* @__PURE__ */ p("div", { className: Q.container, style: { ...h, ...l }, children: e }) });
676
+ }, We = "ResponsiveNav-module__nav___xOfv5", Ee = "ResponsiveNav-module__navMobile___h795P", Te = "ResponsiveNav-module__open___WDCAf", je = "ResponsiveNav-module__navDesktop___9wscZ", P = {
677
+ nav: We,
677
678
  navMobile: Ee,
678
679
  open: Te,
679
680
  navDesktop: je
@@ -682,24 +683,24 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
682
683
  isCompact: t,
683
684
  mobileBackground: o,
684
685
  mobileColor: s,
685
- mobileActiveBackground: n,
686
- mobileActiveColor: r,
686
+ mobileActiveBackground: r,
687
+ mobileActiveColor: n,
687
688
  mobileButtonHoverColor: l
688
689
  }) => {
689
- const a = h();
690
- return q(() => ({
690
+ const a = _();
691
+ return G(() => ({
691
692
  ...e ? {
692
693
  "--mobile-nav-background": o || a.colors.accent,
693
694
  "--mobile-nav-color": s || a.colors.primary,
694
- "--mobile-nav-active-background": n || a.colors.primary,
695
- "--mobile-nav-active-color": r || a.colors.accent,
695
+ "--mobile-nav-active-background": r || a.colors.primary,
696
+ "--mobile-nav-active-color": n || a.colors.accent,
696
697
  "--mobile-nav-button-hover-text-color": l || o || a.colors.accent
697
698
  } : {}
698
699
  }), [
699
700
  o,
700
701
  s,
701
- n,
702
702
  r,
703
+ n,
703
704
  l,
704
705
  a.colors.accent,
705
706
  a.colors.primary,
@@ -710,128 +711,177 @@ const de = "Checkbox-module__container___aV9qz", pe = "Checkbox-module__svg___kk
710
711
  hamburger: Ae,
711
712
  line: Oe,
712
713
  open: Ue
713
- }, Qe = ({ compact: e, color: t, visible: o, borderRadius: s }) => {
714
- const n = h();
715
- return q(() => {
716
- const r = e ? { right: ".5em" } : {};
714
+ }, qe = ({ compact: e, color: t, visible: o, borderRadius: s }) => {
715
+ const r = _();
716
+ return G(() => {
717
+ const n = e ? { right: ".5em" } : {};
717
718
  return {
718
- "--hamburger-border-radius": s || n.borderRadius || "10px",
719
+ "--hamburger-border-radius": s || r.borderRadius || "10px",
719
720
  color: t || "inherit",
720
721
  display: o ? "flex" : "none",
721
- ...r
722
+ ...n
722
723
  };
723
- }, [t, o, e, s, n.borderRadius]);
724
- }, Ze = ({
724
+ }, [t, o, e, s, r.borderRadius]);
725
+ }, Qe = ({
725
726
  visible: e,
726
727
  compact: t,
727
728
  color: o,
728
729
  hamburgerRef: s,
729
- open: n = !1,
730
- setOpen: r,
730
+ open: r = !1,
731
+ setOpen: n,
731
732
  buttonProps: l,
732
733
  borderRadius: a
733
734
  }) => {
734
- const i = Qe({
735
+ const i = qe({
735
736
  compact: t,
736
737
  color: o,
737
738
  visible: e,
738
739
  borderRadius: a
739
740
  }), u = [
740
741
  C.hamburger,
741
- n ? C.open : ""
742
+ r ? C.open : ""
742
743
  ].filter(Boolean).join(" ");
743
744
  return /* @__PURE__ */ z(
744
745
  "button",
745
746
  {
746
747
  ref: s,
747
748
  className: u,
748
- onClick: () => r(!n),
749
+ onClick: () => n(!r),
749
750
  style: i,
750
751
  "aria-label": "Toggle menu",
751
- "aria-expanded": n,
752
+ "aria-expanded": r,
752
753
  ...l,
753
754
  children: [
754
- /* @__PURE__ */ _("div", { className: C.line }),
755
- /* @__PURE__ */ _("div", { className: C.line }),
756
- /* @__PURE__ */ _("div", { className: C.line })
755
+ /* @__PURE__ */ p("div", { className: C.line }),
756
+ /* @__PURE__ */ p("div", { className: C.line }),
757
+ /* @__PURE__ */ p("div", { className: C.line })
757
758
  ]
758
759
  }
759
760
  );
760
761
  };
761
- function Q(e) {
762
+ function Z(e) {
762
763
  const o = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
763
764
  return { maxWidth: o, unit: s };
764
765
  }
765
- const at = ({
766
+ const lt = ({
766
767
  breakPointMd: e,
767
768
  breakPointSm: t,
768
769
  children: o,
769
770
  mobileBackground: s,
770
- mobileColor: n,
771
- mobileActiveBackground: r,
771
+ mobileColor: r,
772
+ mobileActiveBackground: n,
772
773
  mobileActiveColor: l,
773
774
  mobileButtonHoverColor: a,
774
775
  style: i,
775
776
  navProps: u
776
777
  }) => {
777
- const [y, d] = Z(!1), m = T(null), c = T(null), p = h(), f = e || p.breakpoints.md, b = t || p.breakpoints.sm, { maxWidth: g, unit: S } = Q(f), { maxWidth: w, unit: x } = Q(b), k = D(`(max-width: ${g}${S})`), W = D(`(max-width: ${w}${x})`), X = Ve({
778
+ const [f, m] = E(!1), d = A(null), c = A(null), y = _(), h = e || y.breakpoints.md, b = t || y.breakpoints.sm, { maxWidth: g, unit: S } = Z(h), { maxWidth: w, unit: v } = Z(b), k = L(`(max-width: ${g}${S})`), T = L(`(max-width: ${w}${v})`), Y = Ve({
778
779
  isMobile: k,
779
- isCompact: W,
780
+ isCompact: T,
780
781
  mobileBackground: s,
781
- mobileColor: n,
782
- mobileActiveBackground: r,
782
+ mobileColor: r,
783
+ mobileActiveBackground: n,
783
784
  mobileActiveColor: l,
784
785
  mobileButtonHoverColor: a
785
786
  });
786
- j(() => {
787
- k || d(!1);
788
- }, [k]), j(() => {
789
- const L = (E) => {
790
- !c.current || c.current.contains(E.target) || m.current && m.current.contains(E.target) || d(!1);
787
+ D(() => {
788
+ k || m(!1);
789
+ }, [k]), D(() => {
790
+ const j = (V) => {
791
+ !c.current || c.current.contains(V.target) || d.current && d.current.contains(V.target) || m(!1);
791
792
  };
792
- return document.addEventListener("mousedown", L), () => {
793
- document.removeEventListener("mousedown", L);
793
+ return document.addEventListener("mousedown", j), () => {
794
+ document.removeEventListener("mousedown", j);
794
795
  };
795
- }, [m, c, d]);
796
- const Y = [
797
- N.nav,
798
- k ? N.navMobile : N.navDesktop,
799
- k && y ? N.open : ""
796
+ }, [d, c, m]);
797
+ const ee = [
798
+ P.nav,
799
+ k ? P.navMobile : P.navDesktop,
800
+ k && f ? P.open : ""
800
801
  ].filter(Boolean).join(" ");
801
- return /* @__PURE__ */ z(ee, { children: [
802
- /* @__PURE__ */ _(
803
- Ze,
802
+ return /* @__PURE__ */ z(W, { children: [
803
+ /* @__PURE__ */ p(
804
+ Qe,
804
805
  {
805
- hamburgerRef: m,
806
+ hamburgerRef: d,
806
807
  visible: k,
807
- compact: W,
808
- open: y,
809
- setOpen: d
808
+ compact: T,
809
+ open: f,
810
+ setOpen: m
810
811
  }
811
812
  ),
812
- /* @__PURE__ */ _(
813
+ /* @__PURE__ */ p(
813
814
  "nav",
814
815
  {
815
816
  ref: c,
816
- className: Y,
817
- style: { ...X, ...i },
817
+ className: ee,
818
+ style: { ...Y, ...i },
818
819
  ...u,
819
- children: typeof o == "function" ? o({ setOpen: d }) : o
820
+ children: typeof o == "function" ? o({ setOpen: m }) : o
820
821
  }
821
822
  )
822
823
  ] });
824
+ }, Ze = ({
825
+ size: e = 2.5,
826
+ color: t,
827
+ innerColor: o,
828
+ fullScreen: s = !0
829
+ }) => {
830
+ const r = _(), n = t || r.colors.primary, l = o || r.colors.secondary, a = /* @__PURE__ */ z(W, { children: [
831
+ /* @__PURE__ */ p(
832
+ "div",
833
+ {
834
+ style: {
835
+ border: `0.25em solid ${n}`,
836
+ borderTop: `0.25em solid ${l}`,
837
+ borderRadius: "50%",
838
+ width: `${e}em`,
839
+ height: `${e}em`,
840
+ animation: "spin 1s linear infinite"
841
+ }
842
+ }
843
+ ),
844
+ /* @__PURE__ */ p("style", { children: `
845
+ @keyframes spin {
846
+ 0% { transform: rotate(0deg); }
847
+ 100% { transform: rotate(360deg); }
848
+ }
849
+ ` })
850
+ ] });
851
+ return s ? /* @__PURE__ */ p(
852
+ "div",
853
+ {
854
+ style: {
855
+ display: "flex",
856
+ justifyContent: "center",
857
+ alignItems: "center",
858
+ height: "100vh",
859
+ width: "100vw"
860
+ },
861
+ children: a
862
+ }
863
+ ) : a;
864
+ }, ct = ({ children: e, loadingComponent: t }) => {
865
+ const [o, s] = E(!1);
866
+ return D(() => {
867
+ requestAnimationFrame(() => {
868
+ s(!0);
869
+ });
870
+ }, []), o ? /* @__PURE__ */ p(W, { children: e }) : t || /* @__PURE__ */ p(Ze, {});
823
871
  };
824
872
  export {
825
- Ke as Button,
826
- Ye as CSSReset,
827
- Xe as Checkbox,
828
- et as FormLabel,
829
- rt as Header,
830
- tt as Input,
831
- ot as Radio,
832
- at as ResponsiveNav,
833
- st as Select,
873
+ Xe as Button,
874
+ et as CSSReset,
875
+ Ye as Checkbox,
876
+ tt as FormLabel,
877
+ at as Header,
878
+ ot as Input,
879
+ Ze as LoadingSpinner,
880
+ st as Radio,
881
+ lt as ResponsiveNav,
882
+ rt as Select,
883
+ ct as StyleLoader,
834
884
  nt as Textarea,
835
- Je as ThemeProvider,
836
- h as useTheme
885
+ Ke as ThemeProvider,
886
+ _ as useTheme
837
887
  };