digital-rabbit-cl 1.3.12 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +1 -1
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/useResponsiveNavStyles.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +432 -430
- package/dist/digital-rabbit-cl.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{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:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.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:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.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}: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}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;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:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;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::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.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-style:solid;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:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.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:.25em;-webkit-user-select:none;user-select:none}.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:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.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)}.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);position:relative}.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{flex-direction:column;font-size:2rem;height:100vh;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%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.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:var(--desktop-hover-opacity)}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { jsx as
|
|
3
|
-
import z, { createContext as kr, useContext as zr, useState as st, useLayoutEffect as $r, useSyncExternalStore as
|
|
4
|
-
const
|
|
5
|
-
button:
|
|
2
|
+
import { jsx as C, jsxs as Z, Fragment as xe } from "react/jsx-runtime";
|
|
3
|
+
import z, { createContext as kr, useContext as zr, useState as st, useLayoutEffect as $r, useSyncExternalStore as Ar, useMemo as De, useRef as Ft, useEffect as Ke } from "react";
|
|
4
|
+
const Er = "Button-module__button___2ZuB7", Nr = "Button-module__sizeSmall___DRT8P", Rr = "Button-module__sizeLarge___yeZSH", Ve = {
|
|
5
|
+
button: Er,
|
|
6
6
|
sizeSmall: Nr,
|
|
7
7
|
sizeLarge: Rr
|
|
8
|
-
},
|
|
8
|
+
}, Br = ({
|
|
9
9
|
isActive: e,
|
|
10
10
|
disabled: r,
|
|
11
11
|
backgroundColor: t,
|
|
@@ -16,10 +16,10 @@ const Ar = "Button-module__button___2ZuB7", Nr = "Button-module__sizeSmall___DRT
|
|
|
16
16
|
theme: l
|
|
17
17
|
}) => {
|
|
18
18
|
const d = t || l.colors.primary;
|
|
19
|
-
let
|
|
20
|
-
i ?
|
|
19
|
+
let u;
|
|
20
|
+
i ? u = s || d : s ? u = s : u = t ? l.buttons.textColor : l.buttons.primary.textColor;
|
|
21
21
|
let y, m, h;
|
|
22
|
-
i ? (y = "transparent", m =
|
|
22
|
+
i ? (y = "transparent", m = u, h = u, e && (y = o || u, m = o || u, h = n || l.buttons.textColor)) : (y = d, m = d, h = u, e && (y = o || d, m = o || d, h = n || u));
|
|
23
23
|
let x = 1;
|
|
24
24
|
return r ? x = 0.3 : e && (x = o ? 1 : 0.75), {
|
|
25
25
|
backgroundColor: y,
|
|
@@ -41,7 +41,7 @@ function Gt(e, r) {
|
|
|
41
41
|
function ke(e) {
|
|
42
42
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ee(e) {
|
|
45
45
|
const r = e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);
|
|
46
46
|
if (!r) {
|
|
47
47
|
const o = parseInt(e, 10), n = e.replace(/[0-9.]/g, "") || "px";
|
|
@@ -56,7 +56,7 @@ function Ae(e) {
|
|
|
56
56
|
unit: s
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const Ct = {
|
|
60
60
|
primary: "#000",
|
|
61
61
|
secondary: "#FFF",
|
|
62
62
|
accent: "#4381C1",
|
|
@@ -64,7 +64,7 @@ const wt = {
|
|
|
64
64
|
success: "#008000",
|
|
65
65
|
warning: "#FFEB3B"
|
|
66
66
|
}, Je = {
|
|
67
|
-
colors:
|
|
67
|
+
colors: Ct,
|
|
68
68
|
fonts: {
|
|
69
69
|
color: "#000",
|
|
70
70
|
lineHeight: 1.5,
|
|
@@ -83,7 +83,7 @@ const wt = {
|
|
|
83
83
|
textColor: "#FFF",
|
|
84
84
|
paddingHorizontal: 0.35,
|
|
85
85
|
primary: {
|
|
86
|
-
textColor:
|
|
86
|
+
textColor: Ct.secondary
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
inputs: {
|
|
@@ -114,7 +114,7 @@ const wt = {
|
|
|
114
114
|
}
|
|
115
115
|
}, Zt = kr(Je), Io = ({ theme: e, children: r }) => {
|
|
116
116
|
const t = e ? Gt(Je, e) : Je;
|
|
117
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ C(Zt.Provider, { value: t, children: r });
|
|
118
118
|
}, H = () => zr(Zt), Uo = ({
|
|
119
119
|
// Color props
|
|
120
120
|
backgroundColor: e,
|
|
@@ -128,13 +128,13 @@ const wt = {
|
|
|
128
128
|
type: l = "button",
|
|
129
129
|
// Standard React props
|
|
130
130
|
className: d,
|
|
131
|
-
style:
|
|
131
|
+
style: u,
|
|
132
132
|
buttonProps: y = {},
|
|
133
133
|
onClick: m,
|
|
134
134
|
children: h
|
|
135
135
|
}) => {
|
|
136
|
-
const x = H(), [F, g] = st(!1),
|
|
137
|
-
...
|
|
136
|
+
const x = H(), [F, g] = st(!1), w = {
|
|
137
|
+
...Br({
|
|
138
138
|
isActive: F,
|
|
139
139
|
disabled: o,
|
|
140
140
|
backgroundColor: e,
|
|
@@ -149,7 +149,7 @@ const wt = {
|
|
|
149
149
|
borderRadius: x.border.radius,
|
|
150
150
|
"--button-padding-small": `calc(${x.fonts.rhythm} * ${x.sizes.small.paddingVertical}) calc(${x.fonts.rhythm} * ${x.buttons.paddingHorizontal})`,
|
|
151
151
|
"--button-padding-large": `calc(${x.fonts.rhythm} * ${x.sizes.large.paddingVertical}) calc(${x.fonts.rhythm} * ${x.buttons.paddingHorizontal})`,
|
|
152
|
-
...
|
|
152
|
+
...u
|
|
153
153
|
// Top-level style overrides
|
|
154
154
|
}, b = [
|
|
155
155
|
Ve.button,
|
|
@@ -157,7 +157,7 @@ const wt = {
|
|
|
157
157
|
i ? Ve.outline : "",
|
|
158
158
|
d
|
|
159
159
|
].filter(Boolean).join(" ");
|
|
160
|
-
return /* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ C(
|
|
161
161
|
"button",
|
|
162
162
|
{
|
|
163
163
|
...y,
|
|
@@ -167,16 +167,16 @@ const wt = {
|
|
|
167
167
|
onMouseEnter: () => g(!0),
|
|
168
168
|
onMouseLeave: () => g(!1),
|
|
169
169
|
type: l,
|
|
170
|
-
style:
|
|
170
|
+
style: w,
|
|
171
171
|
children: h
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
};
|
|
175
|
-
var
|
|
176
|
-
function
|
|
177
|
-
if (!
|
|
175
|
+
var wt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Dr = new Uint8Array(16);
|
|
176
|
+
function Pr() {
|
|
177
|
+
if (!wt)
|
|
178
178
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
179
|
-
return
|
|
179
|
+
return wt(Dr);
|
|
180
180
|
}
|
|
181
181
|
var Qt = [];
|
|
182
182
|
for (var ze = 0; ze < 256; ++ze)
|
|
@@ -188,7 +188,7 @@ function Lr(e, r) {
|
|
|
188
188
|
function Kt(e, r, t) {
|
|
189
189
|
var s = r && t || 0;
|
|
190
190
|
typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
191
|
-
var o = e.random || (e.rng ||
|
|
191
|
+
var o = e.random || (e.rng || Pr)();
|
|
192
192
|
if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, r)
|
|
193
193
|
for (var n = 0; n < 16; ++n)
|
|
194
194
|
r[s + n] = o[n];
|
|
@@ -239,7 +239,7 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
239
239
|
// Element-specific props
|
|
240
240
|
labelProps: l
|
|
241
241
|
}) => {
|
|
242
|
-
const d = H(),
|
|
242
|
+
const d = H(), u = d.colors.error, y = t ? u : e || d.colors.primary, m = Ur({
|
|
243
243
|
color: y,
|
|
244
244
|
disabled: r,
|
|
245
245
|
fontSize: ".85em"
|
|
@@ -252,7 +252,7 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
252
252
|
...i
|
|
253
253
|
// Top level style prop overrides
|
|
254
254
|
}, x = [Vt.label, r ? Vt.disabled : "", n].filter(Boolean).join(" ");
|
|
255
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ C("label", { ...l, className: x, htmlFor: s, style: h, children: o });
|
|
256
256
|
}, Ye = ({
|
|
257
257
|
// Color props
|
|
258
258
|
color: e,
|
|
@@ -266,7 +266,7 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
266
266
|
name: i,
|
|
267
267
|
id: l,
|
|
268
268
|
onChange: d,
|
|
269
|
-
label:
|
|
269
|
+
label: u,
|
|
270
270
|
labelStyle: y,
|
|
271
271
|
// Style overrides
|
|
272
272
|
className: m,
|
|
@@ -274,12 +274,12 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
274
274
|
// Element-specific props
|
|
275
275
|
divProps: x
|
|
276
276
|
}) => {
|
|
277
|
-
const F = H(), g = l || Kt(), k = F.colors.error,
|
|
278
|
-
color:
|
|
277
|
+
const F = H(), g = l || Kt(), k = F.colors.error, w = n ? k : e || F.colors.primary, b = Mr({
|
|
278
|
+
color: w,
|
|
279
279
|
checkmarkColor: r,
|
|
280
280
|
disabled: o,
|
|
281
281
|
inverted: s
|
|
282
|
-
}),
|
|
282
|
+
}), A = (U) => {
|
|
283
283
|
o || d(U);
|
|
284
284
|
}, $ = {
|
|
285
285
|
cursor: b.cursor,
|
|
@@ -287,7 +287,7 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
287
287
|
opacity: b.opacity,
|
|
288
288
|
...h
|
|
289
289
|
// Top-level style prop overrides
|
|
290
|
-
},
|
|
290
|
+
}, E = {
|
|
291
291
|
width: "1em"
|
|
292
292
|
}, O = {
|
|
293
293
|
fill: s && t ? b.checkboxColor : "transparent",
|
|
@@ -299,13 +299,13 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
299
299
|
fill: "transparent"
|
|
300
300
|
}, te = [je.container, m].filter(Boolean).join(" ");
|
|
301
301
|
return /* @__PURE__ */ Z("div", { ...x, className: te, style: $, children: [
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ C(
|
|
303
303
|
"input",
|
|
304
304
|
{
|
|
305
305
|
id: g,
|
|
306
306
|
checked: t,
|
|
307
307
|
disabled: o,
|
|
308
|
-
onChange: (U) =>
|
|
308
|
+
onChange: (U) => A({ target: { checked: U.target.checked, name: i, type: "checkbox" } }),
|
|
309
309
|
name: i,
|
|
310
310
|
style: { display: "none" },
|
|
311
311
|
type: "checkbox"
|
|
@@ -316,16 +316,16 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
316
316
|
{
|
|
317
317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
318
318
|
viewBox: "0 0 100 100",
|
|
319
|
-
onClick: () =>
|
|
320
|
-
style:
|
|
319
|
+
onClick: () => A({ target: { checked: !t, name: i, type: "checkbox" } }),
|
|
320
|
+
style: E,
|
|
321
321
|
className: je.svg,
|
|
322
322
|
children: [
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
-
t && /* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ C("rect", { x: "0", y: "0", height: "100", width: "100", style: O }),
|
|
324
|
+
t && /* @__PURE__ */ C("path", { d: "M 25 45 L 45 65 L 75 30", style: M })
|
|
325
325
|
]
|
|
326
326
|
}
|
|
327
327
|
),
|
|
328
|
-
|
|
328
|
+
u && /* @__PURE__ */ C(
|
|
329
329
|
ot,
|
|
330
330
|
{
|
|
331
331
|
htmlFor: g,
|
|
@@ -334,7 +334,7 @@ const Hr = "Checkbox-module__container___aV9qz", Or = "Checkbox-module__svg___kk
|
|
|
334
334
|
color: b.checkboxColor,
|
|
335
335
|
disabled: o,
|
|
336
336
|
error: n,
|
|
337
|
-
children:
|
|
337
|
+
children: u
|
|
338
338
|
}
|
|
339
339
|
)
|
|
340
340
|
] });
|
|
@@ -366,20 +366,20 @@ function W(e) {
|
|
|
366
366
|
return e;
|
|
367
367
|
return r;
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var Pe = (e) => /^\w*$/.test(e), L = (e) => e === void 0, it = (e) => Array.isArray(e) ? e.filter(Boolean) : [], at = (e) => it(e.replace(/["|']|\]/g, "").split(/\.|\[/)), v = (e, r, t) => {
|
|
370
370
|
if (!r || !I(e))
|
|
371
371
|
return t;
|
|
372
|
-
const s = (
|
|
372
|
+
const s = (Pe(r) ? [r] : at(r)).reduce((o, n) => K(o) ? o : o[n], e);
|
|
373
373
|
return L(s) || s === e ? L(e[r]) ? t : e[r] : s;
|
|
374
|
-
}, Y = (e) => typeof e == "boolean",
|
|
374
|
+
}, Y = (e) => typeof e == "boolean", D = (e, r, t) => {
|
|
375
375
|
let s = -1;
|
|
376
|
-
const o =
|
|
376
|
+
const o = Pe(r) ? [r] : at(r), n = o.length, i = n - 1;
|
|
377
377
|
for (; ++s < n; ) {
|
|
378
378
|
const l = o[s];
|
|
379
379
|
let d = t;
|
|
380
380
|
if (s !== i) {
|
|
381
|
-
const
|
|
382
|
-
d = I(
|
|
381
|
+
const u = e[l];
|
|
382
|
+
d = I(u) || Array.isArray(u) ? u : isNaN(+o[s + 1]) ? {} : [];
|
|
383
383
|
}
|
|
384
384
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
385
385
|
return;
|
|
@@ -436,10 +436,10 @@ function Gr(e) {
|
|
|
436
436
|
name: o,
|
|
437
437
|
formState: d.current,
|
|
438
438
|
exact: n,
|
|
439
|
-
callback: (
|
|
439
|
+
callback: (u) => {
|
|
440
440
|
!s && l({
|
|
441
441
|
...t._formState,
|
|
442
|
-
...
|
|
442
|
+
...u
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
}), [o, s, n]), z.useEffect(() => {
|
|
@@ -471,22 +471,22 @@ function se(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
471
471
|
return !0;
|
|
472
472
|
}
|
|
473
473
|
function Zr(e) {
|
|
474
|
-
const r = lt(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: i, compute: l } = e || {}, d = z.useRef(o),
|
|
475
|
-
|
|
474
|
+
const r = lt(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: i, compute: l } = e || {}, d = z.useRef(o), u = z.useRef(l), y = z.useRef(void 0), m = z.useRef(t), h = z.useRef(s);
|
|
475
|
+
u.current = l;
|
|
476
476
|
const [x, F] = z.useState(() => {
|
|
477
477
|
const $ = t._getWatch(s, d.current);
|
|
478
|
-
return
|
|
478
|
+
return u.current ? u.current($) : $;
|
|
479
479
|
}), g = z.useCallback(($) => {
|
|
480
|
-
const
|
|
481
|
-
return
|
|
480
|
+
const E = Xe(s, t._names, $ || t._formValues, !1, d.current);
|
|
481
|
+
return u.current ? u.current(E) : E;
|
|
482
482
|
}, [t._formValues, t._names, s]), k = z.useCallback(($) => {
|
|
483
483
|
if (!n) {
|
|
484
|
-
const
|
|
485
|
-
if (
|
|
486
|
-
const O =
|
|
484
|
+
const E = Xe(s, t._names, $ || t._formValues, !1, d.current);
|
|
485
|
+
if (u.current) {
|
|
486
|
+
const O = u.current(E);
|
|
487
487
|
se(O, y.current) || (F(O), y.current = O);
|
|
488
488
|
} else
|
|
489
|
-
F(
|
|
489
|
+
F(E);
|
|
490
490
|
}
|
|
491
491
|
}, [t._formValues, t._names, n, s]);
|
|
492
492
|
ct(() => ((m.current !== t || !se(h.current, s)) && (m.current = t, h.current = s, k()), t._subscribe({
|
|
@@ -499,16 +499,16 @@ function Zr(e) {
|
|
|
499
499
|
k($.values);
|
|
500
500
|
}
|
|
501
501
|
})), [t, i, s, k]), z.useEffect(() => t._removeUnmounted());
|
|
502
|
-
const
|
|
502
|
+
const w = m.current !== t, b = h.current, A = z.useMemo(() => {
|
|
503
503
|
if (n)
|
|
504
504
|
return null;
|
|
505
|
-
const $ = !
|
|
506
|
-
return
|
|
507
|
-
}, [n,
|
|
508
|
-
return
|
|
505
|
+
const $ = !w && !se(b, s);
|
|
506
|
+
return w || $ ? g() : null;
|
|
507
|
+
}, [n, w, s, b, g]);
|
|
508
|
+
return A !== null ? A : x;
|
|
509
509
|
}
|
|
510
510
|
function Qr(e) {
|
|
511
|
-
const r = lt(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: i } = e, l = Xt(o._names.array, t), d = z.useMemo(() => v(o._formValues, t, v(o._defaultValues, t, i)), [o, t, i]),
|
|
511
|
+
const r = lt(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: i } = e, l = Xt(o._names.array, t), d = z.useMemo(() => v(o._formValues, t, v(o._defaultValues, t, i)), [o, t, i]), u = Zr({
|
|
512
512
|
control: o,
|
|
513
513
|
name: t,
|
|
514
514
|
defaultValue: d,
|
|
@@ -519,7 +519,7 @@ function Qr(e) {
|
|
|
519
519
|
exact: !0
|
|
520
520
|
}), m = z.useRef(e), h = z.useRef(void 0), x = z.useRef(o.register(t, {
|
|
521
521
|
...e.rules,
|
|
522
|
-
value:
|
|
522
|
+
value: u,
|
|
523
523
|
...Y(e.disabled) ? { disabled: e.disabled } : {}
|
|
524
524
|
}));
|
|
525
525
|
m.current = e;
|
|
@@ -544,9 +544,9 @@ function Qr(e) {
|
|
|
544
544
|
enumerable: !0,
|
|
545
545
|
get: () => v(y.errors, t)
|
|
546
546
|
}
|
|
547
|
-
}), [y, t]), g = z.useCallback((
|
|
547
|
+
}), [y, t]), g = z.useCallback((A) => x.current.onChange({
|
|
548
548
|
target: {
|
|
549
|
-
value: Yt(
|
|
549
|
+
value: Yt(A),
|
|
550
550
|
name: t
|
|
551
551
|
},
|
|
552
552
|
type: Ne.CHANGE
|
|
@@ -556,38 +556,38 @@ function Qr(e) {
|
|
|
556
556
|
name: t
|
|
557
557
|
},
|
|
558
558
|
type: Ne.BLUR
|
|
559
|
-
}), [t, o._formValues]),
|
|
559
|
+
}), [t, o._formValues]), w = z.useCallback((A) => {
|
|
560
560
|
const $ = v(o._fields, t);
|
|
561
|
-
$ &&
|
|
562
|
-
focus: () =>
|
|
563
|
-
select: () =>
|
|
564
|
-
setCustomValidity: (
|
|
565
|
-
reportValidity: () =>
|
|
561
|
+
$ && A && ($._f.ref = {
|
|
562
|
+
focus: () => A.focus && A.focus(),
|
|
563
|
+
select: () => A.select && A.select(),
|
|
564
|
+
setCustomValidity: (E) => A.setCustomValidity(E),
|
|
565
|
+
reportValidity: () => A.reportValidity()
|
|
566
566
|
});
|
|
567
567
|
}, [o._fields, t]), b = z.useMemo(() => ({
|
|
568
568
|
name: t,
|
|
569
|
-
value:
|
|
569
|
+
value: u,
|
|
570
570
|
...Y(s) || y.disabled ? { disabled: y.disabled || s } : {},
|
|
571
571
|
onChange: g,
|
|
572
572
|
onBlur: k,
|
|
573
|
-
ref:
|
|
574
|
-
}), [t, s, y.disabled, g, k,
|
|
573
|
+
ref: w
|
|
574
|
+
}), [t, s, y.disabled, g, k, w, u]);
|
|
575
575
|
return z.useEffect(() => {
|
|
576
|
-
const
|
|
576
|
+
const A = o._options.shouldUnregister || n, $ = h.current;
|
|
577
577
|
$ && $ !== t && !l && o.unregister($), o.register(t, {
|
|
578
578
|
...m.current.rules,
|
|
579
579
|
...Y(m.current.disabled) ? { disabled: m.current.disabled } : {}
|
|
580
580
|
});
|
|
581
|
-
const
|
|
581
|
+
const E = (O, M) => {
|
|
582
582
|
const te = v(o._fields, O);
|
|
583
583
|
te && te._f && (te._f.mount = M);
|
|
584
584
|
};
|
|
585
|
-
if (
|
|
585
|
+
if (E(t, !0), A) {
|
|
586
586
|
const O = W(v(o._options.defaultValues, t, m.current.defaultValue));
|
|
587
|
-
|
|
587
|
+
D(o._defaultValues, t, O), L(v(o._formValues, t)) && D(o._formValues, t, O);
|
|
588
588
|
}
|
|
589
589
|
return !l && o.register(t), h.current = t, () => {
|
|
590
|
-
(l ?
|
|
590
|
+
(l ? A && !o._state.action : A) ? o.unregister(t) : E(t, !1);
|
|
591
591
|
};
|
|
592
592
|
}, [t, o, l, n]), z.useEffect(() => {
|
|
593
593
|
o._setDisabledField({
|
|
@@ -658,7 +658,7 @@ function Yr(e) {
|
|
|
658
658
|
return !0;
|
|
659
659
|
}
|
|
660
660
|
function j(e, r) {
|
|
661
|
-
const t = Array.isArray(r) ? r :
|
|
661
|
+
const t = Array.isArray(r) ? r : Pe(r) ? [r] : at(r), s = t.length === 1 ? e : Jr(e, t), o = t.length - 1, n = t[o];
|
|
662
662
|
return s && delete s[n], o !== 0 && (I(s) && G(s) || Array.isArray(s) && Yr(s)) && j(e, t.slice(0, -1)), e;
|
|
663
663
|
}
|
|
664
664
|
var Xr = (e) => {
|
|
@@ -698,15 +698,15 @@ var nr = (e) => {
|
|
|
698
698
|
}
|
|
699
699
|
return zt;
|
|
700
700
|
}, ir = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => L(e) ? e : r ? e === "" ? NaN : e && +e : t && X(e) ? new Date(e) : s ? s(e) : e;
|
|
701
|
-
const
|
|
701
|
+
const At = {
|
|
702
702
|
isValid: !1,
|
|
703
703
|
value: null
|
|
704
704
|
};
|
|
705
705
|
var ar = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
|
|
706
706
|
isValid: !0,
|
|
707
707
|
value: t.value
|
|
708
|
-
} : r,
|
|
709
|
-
function
|
|
708
|
+
} : r, At) : At;
|
|
709
|
+
function Et(e) {
|
|
710
710
|
const r = e.ref;
|
|
711
711
|
return dt(r) ? r.files : ft(r) ? ar(e.refs).value : sr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Fe(r) ? nr(e.refs).value : ir(L(r.value) ? e.ref.value : r.value, e);
|
|
712
712
|
}
|
|
@@ -714,7 +714,7 @@ var es = (e, r, t, s) => {
|
|
|
714
714
|
const o = {};
|
|
715
715
|
for (const n of e) {
|
|
716
716
|
const i = v(r, n);
|
|
717
|
-
i &&
|
|
717
|
+
i && D(o, n, i._f);
|
|
718
718
|
}
|
|
719
719
|
return {
|
|
720
720
|
criteriaMode: t,
|
|
@@ -722,7 +722,7 @@ var es = (e, r, t, s) => {
|
|
|
722
722
|
fields: o,
|
|
723
723
|
shouldUseNativeValidation: s
|
|
724
724
|
};
|
|
725
|
-
},
|
|
725
|
+
}, Be = (e) => e instanceof RegExp, pe = (e) => L(e) ? e : Be(e) ? e.source : I(e) ? Be(e.value) ? e.value.source : e.value : e, Nt = (e) => ({
|
|
726
726
|
isOnSubmit: !e || e === re.onSubmit,
|
|
727
727
|
isOnBlur: e === re.onBlur,
|
|
728
728
|
isOnChange: e === re.onChange,
|
|
@@ -730,7 +730,7 @@ var es = (e, r, t, s) => {
|
|
|
730
730
|
isOnTouch: e === re.onTouched
|
|
731
731
|
});
|
|
732
732
|
const Rt = "AsyncFunction";
|
|
733
|
-
var ts = (e) => !!e && !!e.validate && !!(oe(e.validate) && e.validate.constructor.name === Rt || I(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Rt)), rs = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate),
|
|
733
|
+
var ts = (e) => !!e && !!e.validate && !!(oe(e.validate) && e.validate.constructor.name === Rt || I(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Rt)), rs = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Bt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
|
|
734
734
|
const Se = (e, r, t, s) => {
|
|
735
735
|
for (const o of t || Object.keys(e)) {
|
|
736
736
|
const n = v(e, o);
|
|
@@ -748,9 +748,9 @@ const Se = (e, r, t, s) => {
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
|
-
function
|
|
751
|
+
function Dt(e, r, t) {
|
|
752
752
|
const s = v(e, t);
|
|
753
|
-
if (s ||
|
|
753
|
+
if (s || Pe(t))
|
|
754
754
|
return {
|
|
755
755
|
error: s,
|
|
756
756
|
name: t
|
|
@@ -782,9 +782,9 @@ var ss = (e, r, t, s) => {
|
|
|
782
782
|
return G(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((i) => r[i] === (!s || re.all));
|
|
783
783
|
}, os = (e, r, t) => !e || !r || e === r || be(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), ns = (e, r, t, s, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(r || e) : (t ? s.isOnBlur : o.isOnBlur) ? !e : (t ? s.isOnChange : o.isOnChange) ? e : !0, is = (e, r) => !it(v(e, r)).length && j(e, r), as = (e, r, t) => {
|
|
784
784
|
const s = be(v(e, t));
|
|
785
|
-
return
|
|
785
|
+
return D(s, "root", r[t]), D(e, t, s), e;
|
|
786
786
|
};
|
|
787
|
-
function
|
|
787
|
+
function Pt(e, r, t = "validate") {
|
|
788
788
|
if (X(e) || Array.isArray(e) && e.every(X) || Y(e) && !e)
|
|
789
789
|
return {
|
|
790
790
|
type: t,
|
|
@@ -792,18 +792,18 @@ function Bt(e, r, t = "validate") {
|
|
|
792
792
|
ref: r
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
|
-
var ye = (e) => I(e) && !
|
|
795
|
+
var ye = (e) => I(e) && !Be(e) ? e : {
|
|
796
796
|
value: e,
|
|
797
797
|
message: ""
|
|
798
798
|
}, Lt = async (e, r, t, s, o, n) => {
|
|
799
|
-
const { ref: i, refs: l, required: d, maxLength:
|
|
800
|
-
if (!
|
|
799
|
+
const { ref: i, refs: l, required: d, maxLength: u, minLength: y, min: m, max: h, pattern: x, validate: F, name: g, valueAsNumber: k, mount: w } = e._f, b = v(t, g);
|
|
800
|
+
if (!w || r.has(g))
|
|
801
801
|
return {};
|
|
802
|
-
const
|
|
803
|
-
o &&
|
|
804
|
-
},
|
|
802
|
+
const A = l ? l[0] : i, $ = (N) => {
|
|
803
|
+
o && A.reportValidity && (A.setCustomValidity(Y(N) ? "" : N || ""), A.reportValidity());
|
|
804
|
+
}, E = {}, O = ft(i), M = Fe(i), te = O || M, U = (k || dt(i)) && L(i.value) && L(b) || Re(i) && i.value === "" || b === "" || Array.isArray(b) && !b.length, ae = ut.bind(null, g, s, E), J = (N, R, T, q = le.maxLength, Q = le.minLength) => {
|
|
805
805
|
const ne = N ? R : T;
|
|
806
|
-
|
|
806
|
+
E[g] = {
|
|
807
807
|
type: N ? q : Q,
|
|
808
808
|
message: ne,
|
|
809
809
|
ref: i,
|
|
@@ -812,13 +812,13 @@ var ye = (e) => I(e) && !De(e) ? e : {
|
|
|
812
812
|
};
|
|
813
813
|
if (n ? !Array.isArray(b) || !b.length : d && (!te && (U || K(b)) || Y(b) && !b || M && !nr(l).isValid || O && !ar(l).isValid)) {
|
|
814
814
|
const { value: N, message: R } = X(d) ? { value: !!d, message: d } : ye(d);
|
|
815
|
-
if (N && (
|
|
815
|
+
if (N && (E[g] = {
|
|
816
816
|
type: le.required,
|
|
817
817
|
message: R,
|
|
818
|
-
ref:
|
|
818
|
+
ref: A,
|
|
819
819
|
...ae(le.required, R)
|
|
820
820
|
}, !s))
|
|
821
|
-
return $(R),
|
|
821
|
+
return $(R), E;
|
|
822
822
|
}
|
|
823
823
|
if (!U && (!K(m) || !K(h))) {
|
|
824
824
|
let N, R;
|
|
@@ -827,54 +827,54 @@ var ye = (e) => I(e) && !De(e) ? e : {
|
|
|
827
827
|
const Q = i.valueAsNumber || b && +b;
|
|
828
828
|
K(T.value) || (N = Q > T.value), K(q.value) || (R = Q < q.value);
|
|
829
829
|
} else {
|
|
830
|
-
const Q = i.valueAsDate || new Date(b), ne = (
|
|
830
|
+
const Q = i.valueAsDate || new Date(b), ne = (Ce) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ce), _e = i.type == "time", fe = i.type == "week";
|
|
831
831
|
X(T.value) && b && (N = _e ? ne(b) > ne(T.value) : fe ? b > T.value : Q > new Date(T.value)), X(q.value) && b && (R = _e ? ne(b) < ne(q.value) : fe ? b < q.value : Q < new Date(q.value));
|
|
832
832
|
}
|
|
833
833
|
if ((N || R) && (J(!!N, T.message, q.message, le.max, le.min), !s))
|
|
834
|
-
return $(
|
|
834
|
+
return $(E[g].message), E;
|
|
835
835
|
}
|
|
836
|
-
if ((
|
|
837
|
-
const N = ye(
|
|
836
|
+
if ((u || y) && !U && (X(b) || n && Array.isArray(b))) {
|
|
837
|
+
const N = ye(u), R = ye(y), T = !K(N.value) && b.length > +N.value, q = !K(R.value) && b.length < +R.value;
|
|
838
838
|
if ((T || q) && (J(T, N.message, R.message), !s))
|
|
839
|
-
return $(
|
|
839
|
+
return $(E[g].message), E;
|
|
840
840
|
}
|
|
841
841
|
if (x && !U && X(b)) {
|
|
842
842
|
const { value: N, message: R } = ye(x);
|
|
843
|
-
if (
|
|
843
|
+
if (Be(N) && !b.match(N) && (E[g] = {
|
|
844
844
|
type: le.pattern,
|
|
845
845
|
message: R,
|
|
846
846
|
ref: i,
|
|
847
847
|
...ae(le.pattern, R)
|
|
848
848
|
}, !s))
|
|
849
|
-
return $(R),
|
|
849
|
+
return $(R), E;
|
|
850
850
|
}
|
|
851
851
|
if (F) {
|
|
852
852
|
if (oe(F)) {
|
|
853
|
-
const N = await F(b, t), R =
|
|
854
|
-
if (R && (
|
|
853
|
+
const N = await F(b, t), R = Pt(N, A);
|
|
854
|
+
if (R && (E[g] = {
|
|
855
855
|
...R,
|
|
856
856
|
...ae(le.validate, R.message)
|
|
857
857
|
}, !s))
|
|
858
|
-
return $(R.message),
|
|
858
|
+
return $(R.message), E;
|
|
859
859
|
} else if (I(F)) {
|
|
860
860
|
let N = {};
|
|
861
861
|
for (const R in F) {
|
|
862
862
|
if (!G(N) && !s)
|
|
863
863
|
break;
|
|
864
|
-
const T =
|
|
864
|
+
const T = Pt(await F[R](b, t), A, R);
|
|
865
865
|
T && (N = {
|
|
866
866
|
...T,
|
|
867
867
|
...ae(R, T.message)
|
|
868
|
-
}, $(T.message), s && (
|
|
868
|
+
}, $(T.message), s && (E[g] = N));
|
|
869
869
|
}
|
|
870
|
-
if (!G(N) && (
|
|
871
|
-
ref:
|
|
870
|
+
if (!G(N) && (E[g] = {
|
|
871
|
+
ref: A,
|
|
872
872
|
...N
|
|
873
873
|
}, !s))
|
|
874
|
-
return
|
|
874
|
+
return E;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
return $(!0),
|
|
877
|
+
return $(!0), E;
|
|
878
878
|
};
|
|
879
879
|
const ls = {
|
|
880
880
|
mode: re.onSubmit,
|
|
@@ -910,7 +910,7 @@ function cs(e = {}) {
|
|
|
910
910
|
unMount: /* @__PURE__ */ new Set(),
|
|
911
911
|
array: /* @__PURE__ */ new Set(),
|
|
912
912
|
watch: /* @__PURE__ */ new Set()
|
|
913
|
-
}, d,
|
|
913
|
+
}, d, u = 0;
|
|
914
914
|
const y = {
|
|
915
915
|
isDirty: !1,
|
|
916
916
|
dirtyFields: !1,
|
|
@@ -927,7 +927,7 @@ function cs(e = {}) {
|
|
|
927
927
|
array: kt(),
|
|
928
928
|
state: kt()
|
|
929
929
|
}, x = r.criteriaMode === re.all, F = (a) => (c) => {
|
|
930
|
-
clearTimeout(
|
|
930
|
+
clearTimeout(u), u = setTimeout(a, c);
|
|
931
931
|
}, g = async (a) => {
|
|
932
932
|
if (!r.disabled && (y.isValid || m.isValid || a)) {
|
|
933
933
|
const c = r.resolver ? G((await M()).errors) : await U(s, !0);
|
|
@@ -936,25 +936,25 @@ function cs(e = {}) {
|
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
938
|
}, k = (a, c) => {
|
|
939
|
-
!r.disabled && (y.isValidating || y.validatingFields || m.isValidating || m.validatingFields) && ((a || Array.from(l.mount)).forEach((
|
|
940
|
-
|
|
939
|
+
!r.disabled && (y.isValidating || y.validatingFields || m.isValidating || m.validatingFields) && ((a || Array.from(l.mount)).forEach((f) => {
|
|
940
|
+
f && (c ? D(t.validatingFields, f, c) : j(t.validatingFields, f));
|
|
941
941
|
}), h.state.next({
|
|
942
942
|
validatingFields: t.validatingFields,
|
|
943
943
|
isValidating: !G(t.validatingFields)
|
|
944
944
|
}));
|
|
945
|
-
},
|
|
946
|
-
if (S &&
|
|
945
|
+
}, w = (a, c = [], f, S, p = !0, _ = !0) => {
|
|
946
|
+
if (S && f && !r.disabled) {
|
|
947
947
|
if (i.action = !0, _ && Array.isArray(v(s, a))) {
|
|
948
|
-
const V =
|
|
949
|
-
p &&
|
|
948
|
+
const V = f(v(s, a), S.argA, S.argB);
|
|
949
|
+
p && D(s, a, V);
|
|
950
950
|
}
|
|
951
951
|
if (_ && Array.isArray(v(t.errors, a))) {
|
|
952
|
-
const V =
|
|
953
|
-
p &&
|
|
952
|
+
const V = f(v(t.errors, a), S.argA, S.argB);
|
|
953
|
+
p && D(t.errors, a, V), is(t.errors, a);
|
|
954
954
|
}
|
|
955
955
|
if ((y.touchedFields || m.touchedFields) && _ && Array.isArray(v(t.touchedFields, a))) {
|
|
956
|
-
const V =
|
|
957
|
-
p &&
|
|
956
|
+
const V = f(v(t.touchedFields, a), S.argA, S.argB);
|
|
957
|
+
p && D(t.touchedFields, a, V);
|
|
958
958
|
}
|
|
959
959
|
(y.dirtyFields || m.dirtyFields) && (t.dirtyFields = ge(o, n)), h.state.next({
|
|
960
960
|
name: a,
|
|
@@ -964,43 +964,43 @@ function cs(e = {}) {
|
|
|
964
964
|
isValid: t.isValid
|
|
965
965
|
});
|
|
966
966
|
} else
|
|
967
|
-
|
|
967
|
+
D(n, a, c);
|
|
968
968
|
}, b = (a, c) => {
|
|
969
|
-
|
|
969
|
+
D(t.errors, a, c), h.state.next({
|
|
970
970
|
errors: t.errors
|
|
971
971
|
});
|
|
972
|
-
},
|
|
972
|
+
}, A = (a) => {
|
|
973
973
|
t.errors = a, h.state.next({
|
|
974
974
|
errors: t.errors,
|
|
975
975
|
isValid: !1
|
|
976
976
|
});
|
|
977
|
-
}, $ = (a, c,
|
|
977
|
+
}, $ = (a, c, f, S) => {
|
|
978
978
|
const p = v(s, a);
|
|
979
979
|
if (p) {
|
|
980
|
-
const _ = v(n, a, L(
|
|
981
|
-
L(_) || S && S.defaultChecked || c ?
|
|
980
|
+
const _ = v(n, a, L(f) ? v(o, a) : f);
|
|
981
|
+
L(_) || S && S.defaultChecked || c ? D(n, a, c ? _ : Et(p._f)) : T(a, _), i.mount && g();
|
|
982
982
|
}
|
|
983
|
-
},
|
|
983
|
+
}, E = (a, c, f, S, p) => {
|
|
984
984
|
let _ = !1, V = !1;
|
|
985
|
-
const
|
|
985
|
+
const B = {
|
|
986
986
|
name: a
|
|
987
987
|
};
|
|
988
988
|
if (!r.disabled) {
|
|
989
|
-
if (!
|
|
990
|
-
(y.isDirty || m.isDirty) && (V = t.isDirty, t.isDirty =
|
|
991
|
-
const
|
|
992
|
-
V = !!v(t.dirtyFields, a),
|
|
989
|
+
if (!f || S) {
|
|
990
|
+
(y.isDirty || m.isDirty) && (V = t.isDirty, t.isDirty = B.isDirty = J(), _ = V !== B.isDirty);
|
|
991
|
+
const P = se(v(o, a), c);
|
|
992
|
+
V = !!v(t.dirtyFields, a), P ? j(t.dirtyFields, a) : D(t.dirtyFields, a, !0), B.dirtyFields = t.dirtyFields, _ = _ || (y.dirtyFields || m.dirtyFields) && V !== !P;
|
|
993
993
|
}
|
|
994
|
-
if (
|
|
995
|
-
const
|
|
996
|
-
|
|
994
|
+
if (f) {
|
|
995
|
+
const P = v(t.touchedFields, a);
|
|
996
|
+
P || (D(t.touchedFields, a, f), B.touchedFields = t.touchedFields, _ = _ || (y.touchedFields || m.touchedFields) && P !== f);
|
|
997
997
|
}
|
|
998
|
-
_ && p && h.state.next(
|
|
998
|
+
_ && p && h.state.next(B);
|
|
999
999
|
}
|
|
1000
|
-
return _ ?
|
|
1001
|
-
}, O = (a, c,
|
|
1000
|
+
return _ ? B : {};
|
|
1001
|
+
}, O = (a, c, f, S) => {
|
|
1002
1002
|
const p = v(t.errors, a), _ = (y.isValid || m.isValid) && Y(c) && t.isValid !== c;
|
|
1003
|
-
if (r.delayError &&
|
|
1003
|
+
if (r.delayError && f ? (d = F(() => b(a, f)), d(r.delayError)) : (clearTimeout(u), d = null, f ? D(t.errors, a, f) : j(t.errors, a)), (f ? !se(p, f) : p) || !G(S) || _) {
|
|
1004
1004
|
const V = {
|
|
1005
1005
|
...S,
|
|
1006
1006
|
..._ && Y(c) ? { isValid: c } : {},
|
|
@@ -1019,14 +1019,14 @@ function cs(e = {}) {
|
|
|
1019
1019
|
}, te = async (a) => {
|
|
1020
1020
|
const { errors: c } = await M(a);
|
|
1021
1021
|
if (a)
|
|
1022
|
-
for (const
|
|
1023
|
-
const S = v(c,
|
|
1024
|
-
S ?
|
|
1022
|
+
for (const f of a) {
|
|
1023
|
+
const S = v(c, f);
|
|
1024
|
+
S ? D(t.errors, f, S) : j(t.errors, f);
|
|
1025
1025
|
}
|
|
1026
1026
|
else
|
|
1027
1027
|
t.errors = c;
|
|
1028
1028
|
return c;
|
|
1029
|
-
}, U = async (a, c,
|
|
1029
|
+
}, U = async (a, c, f = {
|
|
1030
1030
|
valid: !0
|
|
1031
1031
|
}) => {
|
|
1032
1032
|
for (const S in a) {
|
|
@@ -1034,109 +1034,109 @@ function cs(e = {}) {
|
|
|
1034
1034
|
if (p) {
|
|
1035
1035
|
const { _f: _, ...V } = p;
|
|
1036
1036
|
if (_) {
|
|
1037
|
-
const
|
|
1038
|
-
|
|
1039
|
-
const ee = await Lt(p, l.disabled, n, x, r.shouldUseNativeValidation && !c,
|
|
1040
|
-
if (
|
|
1037
|
+
const B = l.array.has(_.name), P = p._f && ts(p._f);
|
|
1038
|
+
P && y.validatingFields && k([_.name], !0);
|
|
1039
|
+
const ee = await Lt(p, l.disabled, n, x, r.shouldUseNativeValidation && !c, B);
|
|
1040
|
+
if (P && y.validatingFields && k([_.name]), ee[_.name] && (f.valid = !1, c))
|
|
1041
1041
|
break;
|
|
1042
|
-
!c && (v(ee, _.name) ?
|
|
1042
|
+
!c && (v(ee, _.name) ? B ? as(t.errors, ee, _.name) : D(t.errors, _.name, ee[_.name]) : j(t.errors, _.name));
|
|
1043
1043
|
}
|
|
1044
|
-
!G(V) && await U(V, c,
|
|
1044
|
+
!G(V) && await U(V, c, f);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
return
|
|
1047
|
+
return f.valid;
|
|
1048
1048
|
}, ae = () => {
|
|
1049
1049
|
for (const a of l.unMount) {
|
|
1050
1050
|
const c = v(s, a);
|
|
1051
|
-
c && (c._f.refs ? c._f.refs.every((
|
|
1051
|
+
c && (c._f.refs ? c._f.refs.every((f) => !Ie(f)) : !Ie(c._f.ref)) && Le(a);
|
|
1052
1052
|
}
|
|
1053
1053
|
l.unMount = /* @__PURE__ */ new Set();
|
|
1054
|
-
}, J = (a, c) => !r.disabled && (a && c &&
|
|
1054
|
+
}, J = (a, c) => !r.disabled && (a && c && D(n, a, c), !se(Ce(), o)), N = (a, c, f) => Xe(a, l, {
|
|
1055
1055
|
...i.mount ? n : L(c) ? o : X(a) ? { [a]: c } : c
|
|
1056
|
-
},
|
|
1056
|
+
}, f, c), R = (a) => it(v(i.mount ? n : o, a, r.shouldUnregister ? v(o, a, []) : [])), T = (a, c, f = {}) => {
|
|
1057
1057
|
const S = v(s, a);
|
|
1058
1058
|
let p = c;
|
|
1059
1059
|
if (S) {
|
|
1060
1060
|
const _ = S._f;
|
|
1061
|
-
_ && (!_.disabled &&
|
|
1062
|
-
(!V.defaultChecked || !V.disabled) && (Array.isArray(p) ? V.checked = !!p.find((
|
|
1061
|
+
_ && (!_.disabled && D(n, a, ir(c, _)), p = Re(_.ref) && K(c) ? "" : c, sr(_.ref) ? [..._.ref.options].forEach((V) => V.selected = p.includes(V.value)) : _.refs ? Fe(_.ref) ? _.refs.forEach((V) => {
|
|
1062
|
+
(!V.defaultChecked || !V.disabled) && (Array.isArray(p) ? V.checked = !!p.find((B) => B === V.value) : V.checked = p === V.value || !!p);
|
|
1063
1063
|
}) : _.refs.forEach((V) => V.checked = V.value === p) : dt(_.ref) ? _.ref.value = "" : (_.ref.value = p, _.ref.type || h.state.next({
|
|
1064
1064
|
name: a,
|
|
1065
1065
|
values: W(n)
|
|
1066
1066
|
})));
|
|
1067
1067
|
}
|
|
1068
|
-
(
|
|
1069
|
-
}, q = (a, c,
|
|
1068
|
+
(f.shouldDirty || f.shouldTouch) && E(a, p, f.shouldTouch, f.shouldDirty, !0), f.shouldValidate && fe(a);
|
|
1069
|
+
}, q = (a, c, f) => {
|
|
1070
1070
|
for (const S in c) {
|
|
1071
1071
|
if (!c.hasOwnProperty(S))
|
|
1072
1072
|
return;
|
|
1073
1073
|
const p = c[S], _ = a + "." + S, V = v(s, _);
|
|
1074
|
-
(l.array.has(a) || I(p) || V && !V._f) && !ue(p) ? q(_, p,
|
|
1074
|
+
(l.array.has(a) || I(p) || V && !V._f) && !ue(p) ? q(_, p, f) : T(_, p, f);
|
|
1075
1075
|
}
|
|
1076
|
-
}, Q = (a, c,
|
|
1076
|
+
}, Q = (a, c, f = {}) => {
|
|
1077
1077
|
const S = v(s, a), p = l.array.has(a), _ = W(c);
|
|
1078
|
-
|
|
1078
|
+
D(n, a, _), p ? (h.array.next({
|
|
1079
1079
|
name: a,
|
|
1080
1080
|
values: W(n)
|
|
1081
|
-
}), (y.isDirty || y.dirtyFields || m.isDirty || m.dirtyFields) &&
|
|
1081
|
+
}), (y.isDirty || y.dirtyFields || m.isDirty || m.dirtyFields) && f.shouldDirty && h.state.next({
|
|
1082
1082
|
name: a,
|
|
1083
1083
|
dirtyFields: ge(o, n),
|
|
1084
1084
|
isDirty: J(a, _)
|
|
1085
|
-
})) : S && !S._f && !K(_) ? q(a, _,
|
|
1085
|
+
})) : S && !S._f && !K(_) ? q(a, _, f) : T(a, _, f), Bt(a, l) && h.state.next({ ...t, name: a }), h.state.next({
|
|
1086
1086
|
name: i.mount ? a : void 0,
|
|
1087
1087
|
values: W(n)
|
|
1088
1088
|
});
|
|
1089
1089
|
}, ne = async (a) => {
|
|
1090
1090
|
i.mount = !0;
|
|
1091
1091
|
const c = a.target;
|
|
1092
|
-
let
|
|
1093
|
-
const p = v(s,
|
|
1094
|
-
S = Number.isNaN(
|
|
1095
|
-
}, V = Nt(r.mode),
|
|
1092
|
+
let f = c.name, S = !0;
|
|
1093
|
+
const p = v(s, f), _ = (P) => {
|
|
1094
|
+
S = Number.isNaN(P) || ue(P) && isNaN(P.getTime()) || se(P, v(n, f, P));
|
|
1095
|
+
}, V = Nt(r.mode), B = Nt(r.reValidateMode);
|
|
1096
1096
|
if (p) {
|
|
1097
|
-
let
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1100
|
-
const Me =
|
|
1097
|
+
let P, ee;
|
|
1098
|
+
const we = c.type ? Et(p._f) : Yt(a), ce = a.type === Ne.BLUR || a.type === Ne.FOCUS_OUT, Cr = !rs(p._f) && !r.resolver && !v(t.errors, f) && !p._f.deps || ns(ce, v(t.touchedFields, f), t.isSubmitted, B, V), Te = Bt(f, l, ce);
|
|
1099
|
+
D(n, f, we), ce ? (!c || !c.readOnly) && (p._f.onBlur && p._f.onBlur(a), d && d(0)) : p._f.onChange && p._f.onChange(a);
|
|
1100
|
+
const Me = E(f, we, ce), wr = !G(Me) || Te;
|
|
1101
1101
|
if (!ce && h.state.next({
|
|
1102
|
-
name:
|
|
1102
|
+
name: f,
|
|
1103
1103
|
type: a.type,
|
|
1104
1104
|
values: W(n)
|
|
1105
|
-
}),
|
|
1106
|
-
return (y.isValid || m.isValid) && (r.mode === "onBlur" ? ce && g() : ce || g()),
|
|
1105
|
+
}), Cr)
|
|
1106
|
+
return (y.isValid || m.isValid) && (r.mode === "onBlur" ? ce && g() : ce || g()), wr && h.state.next({ name: f, ...Te ? {} : Me });
|
|
1107
1107
|
if (!ce && Te && h.state.next({ ...t }), r.resolver) {
|
|
1108
|
-
const { errors: St } = await M([
|
|
1109
|
-
if (_(
|
|
1110
|
-
const Vr =
|
|
1111
|
-
|
|
1108
|
+
const { errors: St } = await M([f]);
|
|
1109
|
+
if (_(we), S) {
|
|
1110
|
+
const Vr = Dt(t.errors, s, f), xt = Dt(St, s, Vr.name || f);
|
|
1111
|
+
P = xt.error, f = xt.name, ee = G(St);
|
|
1112
1112
|
}
|
|
1113
1113
|
} else
|
|
1114
|
-
k([
|
|
1115
|
-
S && (p._f.deps && (!Array.isArray(p._f.deps) || p._f.deps.length > 0) && fe(p._f.deps), O(
|
|
1114
|
+
k([f], !0), P = (await Lt(p, l.disabled, n, x, r.shouldUseNativeValidation))[f], k([f]), _(we), S && (P ? ee = !1 : (y.isValid || m.isValid) && (ee = await U(s, !0)));
|
|
1115
|
+
S && (p._f.deps && (!Array.isArray(p._f.deps) || p._f.deps.length > 0) && fe(p._f.deps), O(f, ee, P, Me));
|
|
1116
1116
|
}
|
|
1117
1117
|
}, _e = (a, c) => {
|
|
1118
1118
|
if (v(t.errors, c) && a.focus)
|
|
1119
1119
|
return a.focus(), 1;
|
|
1120
1120
|
}, fe = async (a, c = {}) => {
|
|
1121
|
-
let
|
|
1121
|
+
let f, S;
|
|
1122
1122
|
const p = be(a);
|
|
1123
1123
|
if (r.resolver) {
|
|
1124
1124
|
const _ = await te(L(a) ? a : p);
|
|
1125
|
-
|
|
1125
|
+
f = G(_), S = a ? !p.some((V) => v(_, V)) : f;
|
|
1126
1126
|
} else a ? (S = (await Promise.all(p.map(async (_) => {
|
|
1127
1127
|
const V = v(s, _);
|
|
1128
1128
|
return await U(V && V._f ? { [_]: V } : V);
|
|
1129
|
-
}))).every(Boolean), !(!S && !t.isValid) && g()) : S =
|
|
1129
|
+
}))).every(Boolean), !(!S && !t.isValid) && g()) : S = f = await U(s);
|
|
1130
1130
|
return h.state.next({
|
|
1131
|
-
...!X(a) || (y.isValid || m.isValid) &&
|
|
1132
|
-
...r.resolver || !a ? { isValid:
|
|
1131
|
+
...!X(a) || (y.isValid || m.isValid) && f !== t.isValid ? {} : { name: a },
|
|
1132
|
+
...r.resolver || !a ? { isValid: f } : {},
|
|
1133
1133
|
errors: t.errors
|
|
1134
1134
|
}), c.shouldFocus && !S && Se(s, _e, a ? p : l.mount), S;
|
|
1135
|
-
},
|
|
1136
|
-
let
|
|
1135
|
+
}, Ce = (a, c) => {
|
|
1136
|
+
let f = {
|
|
1137
1137
|
...i.mount ? n : o
|
|
1138
1138
|
};
|
|
1139
|
-
return c && (
|
|
1139
|
+
return c && (f = rr(c.dirtyFields ? t.dirtyFields : t.touchedFields, f)), L(a) ? f : X(a) ? v(f, a) : a.map((S) => v(f, S));
|
|
1140
1140
|
}, yt = (a, c) => ({
|
|
1141
1141
|
invalid: !!v((c || t).errors, a),
|
|
1142
1142
|
isDirty: !!v((c || t).dirtyFields, a),
|
|
@@ -1147,19 +1147,19 @@ function cs(e = {}) {
|
|
|
1147
1147
|
a && be(a).forEach((c) => j(t.errors, c)), h.state.next({
|
|
1148
1148
|
errors: a ? t.errors : {}
|
|
1149
1149
|
});
|
|
1150
|
-
}, mt = (a, c,
|
|
1151
|
-
const S = (v(s, a, { _f: {} })._f || {}).ref, p = v(t.errors, a) || {}, { ref: _, message: V, type:
|
|
1152
|
-
|
|
1153
|
-
...
|
|
1150
|
+
}, mt = (a, c, f) => {
|
|
1151
|
+
const S = (v(s, a, { _f: {} })._f || {}).ref, p = v(t.errors, a) || {}, { ref: _, message: V, type: B, ...P } = p;
|
|
1152
|
+
D(t.errors, a, {
|
|
1153
|
+
...P,
|
|
1154
1154
|
...c,
|
|
1155
1155
|
ref: S
|
|
1156
1156
|
}), h.state.next({
|
|
1157
1157
|
name: a,
|
|
1158
1158
|
errors: t.errors,
|
|
1159
1159
|
isValid: !1
|
|
1160
|
-
}),
|
|
1160
|
+
}), f && f.shouldFocus && S && S.focus && S.focus();
|
|
1161
1161
|
}, pr = (a, c) => oe(a) ? h.state.subscribe({
|
|
1162
|
-
next: (
|
|
1162
|
+
next: (f) => "values" in f && a(N(void 0, c), f)
|
|
1163
1163
|
}) : N(a, c, !0), ht = (a) => h.state.subscribe({
|
|
1164
1164
|
next: (c) => {
|
|
1165
1165
|
os(a.name, c.name, a.exact) && ss(c, a.formState || y, Fr, a.reRenderRoot) && a.callback({
|
|
@@ -1176,8 +1176,8 @@ function cs(e = {}) {
|
|
|
1176
1176
|
...a,
|
|
1177
1177
|
formState: m
|
|
1178
1178
|
})), Le = (a, c = {}) => {
|
|
1179
|
-
for (const
|
|
1180
|
-
l.mount.delete(
|
|
1179
|
+
for (const f of a ? be(a) : l.mount)
|
|
1180
|
+
l.mount.delete(f), l.array.delete(f), c.keepValue || (j(s, f), j(n, f)), !c.keepError && j(t.errors, f), !c.keepDirty && j(t.dirtyFields, f), !c.keepTouched && j(t.touchedFields, f), !c.keepIsValidating && j(t.validatingFields, f), !r.shouldUnregister && !c.keepDefaultValue && j(o, f);
|
|
1181
1181
|
h.state.next({
|
|
1182
1182
|
values: W(n)
|
|
1183
1183
|
}), h.state.next({
|
|
@@ -1187,17 +1187,17 @@ function cs(e = {}) {
|
|
|
1187
1187
|
}, gt = ({ disabled: a, name: c }) => {
|
|
1188
1188
|
(Y(a) && i.mount || a || l.disabled.has(c)) && (a ? l.disabled.add(c) : l.disabled.delete(c));
|
|
1189
1189
|
}, He = (a, c = {}) => {
|
|
1190
|
-
let
|
|
1190
|
+
let f = v(s, a);
|
|
1191
1191
|
const S = Y(c.disabled) || Y(r.disabled);
|
|
1192
|
-
return
|
|
1193
|
-
...
|
|
1192
|
+
return D(s, a, {
|
|
1193
|
+
...f || {},
|
|
1194
1194
|
_f: {
|
|
1195
|
-
...
|
|
1195
|
+
...f && f._f ? f._f : { ref: { name: a } },
|
|
1196
1196
|
name: a,
|
|
1197
1197
|
mount: !0,
|
|
1198
1198
|
...c
|
|
1199
1199
|
}
|
|
1200
|
-
}), l.mount.add(a),
|
|
1200
|
+
}), l.mount.add(a), f ? gt({
|
|
1201
1201
|
disabled: Y(c.disabled) ? c.disabled : r.disabled,
|
|
1202
1202
|
name: a
|
|
1203
1203
|
}) : $(a, !0, c.value), {
|
|
@@ -1215,16 +1215,16 @@ function cs(e = {}) {
|
|
|
1215
1215
|
onBlur: ne,
|
|
1216
1216
|
ref: (p) => {
|
|
1217
1217
|
if (p) {
|
|
1218
|
-
He(a, c),
|
|
1219
|
-
const _ = L(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, V = Kr(_),
|
|
1220
|
-
if (V ?
|
|
1218
|
+
He(a, c), f = v(s, a);
|
|
1219
|
+
const _ = L(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, V = Kr(_), B = f._f.refs || [];
|
|
1220
|
+
if (V ? B.find((P) => P === _) : _ === f._f.ref)
|
|
1221
1221
|
return;
|
|
1222
|
-
|
|
1222
|
+
D(s, a, {
|
|
1223
1223
|
_f: {
|
|
1224
|
-
...
|
|
1224
|
+
...f._f,
|
|
1225
1225
|
...V ? {
|
|
1226
1226
|
refs: [
|
|
1227
|
-
...
|
|
1227
|
+
...B.filter(Ie),
|
|
1228
1228
|
_,
|
|
1229
1229
|
...Array.isArray(v(o, a)) ? [{}] : []
|
|
1230
1230
|
],
|
|
@@ -1233,19 +1233,19 @@ function cs(e = {}) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
}), $(a, !1, void 0, _);
|
|
1235
1235
|
} else
|
|
1236
|
-
|
|
1236
|
+
f = v(s, a, {}), f._f && (f._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Xt(l.array, a) && i.action) && l.unMount.add(a);
|
|
1237
1237
|
}
|
|
1238
1238
|
};
|
|
1239
1239
|
}, Oe = () => r.shouldFocusError && Se(s, _e, l.mount), br = (a) => {
|
|
1240
|
-
Y(a) && (h.state.next({ disabled: a }), Se(s, (c,
|
|
1241
|
-
const S = v(s,
|
|
1240
|
+
Y(a) && (h.state.next({ disabled: a }), Se(s, (c, f) => {
|
|
1241
|
+
const S = v(s, f);
|
|
1242
1242
|
S && (c.disabled = S._f.disabled || a, Array.isArray(S._f.refs) && S._f.refs.forEach((p) => {
|
|
1243
1243
|
p.disabled = S._f.disabled || a;
|
|
1244
1244
|
}));
|
|
1245
1245
|
}, 0, !1));
|
|
1246
|
-
}, _t = (a, c) => async (
|
|
1246
|
+
}, _t = (a, c) => async (f) => {
|
|
1247
1247
|
let S;
|
|
1248
|
-
|
|
1248
|
+
f && (f.preventDefault && f.preventDefault(), f.persist && f.persist());
|
|
1249
1249
|
let p = W(n);
|
|
1250
1250
|
if (h.state.next({
|
|
1251
1251
|
isSubmitting: !0
|
|
@@ -1262,12 +1262,12 @@ function cs(e = {}) {
|
|
|
1262
1262
|
errors: {}
|
|
1263
1263
|
});
|
|
1264
1264
|
try {
|
|
1265
|
-
await a(p,
|
|
1265
|
+
await a(p, f);
|
|
1266
1266
|
} catch (_) {
|
|
1267
1267
|
S = _;
|
|
1268
1268
|
}
|
|
1269
1269
|
} else
|
|
1270
|
-
c && await c({ ...t.errors },
|
|
1270
|
+
c && await c({ ...t.errors }, f), Oe(), setTimeout(Oe);
|
|
1271
1271
|
if (h.state.next({
|
|
1272
1272
|
isSubmitted: !0,
|
|
1273
1273
|
isSubmitting: !1,
|
|
@@ -1277,25 +1277,25 @@ function cs(e = {}) {
|
|
|
1277
1277
|
}), S)
|
|
1278
1278
|
throw S;
|
|
1279
1279
|
}, Sr = (a, c = {}) => {
|
|
1280
|
-
v(s, a) && (L(c.defaultValue) ? Q(a, W(v(o, a))) : (Q(a, c.defaultValue),
|
|
1280
|
+
v(s, a) && (L(c.defaultValue) ? Q(a, W(v(o, a))) : (Q(a, c.defaultValue), D(o, a, W(c.defaultValue))), c.keepTouched || j(t.touchedFields, a), c.keepDirty || (j(t.dirtyFields, a), t.isDirty = c.defaultValue ? J(a, W(v(o, a))) : J()), c.keepError || (j(t.errors, a), y.isValid && g()), h.state.next({ ...t }));
|
|
1281
1281
|
}, pt = (a, c = {}) => {
|
|
1282
|
-
const
|
|
1283
|
-
if (c.keepDefaultValues || (o =
|
|
1282
|
+
const f = a ? W(a) : o, S = W(f), p = G(a), _ = p ? o : S;
|
|
1283
|
+
if (c.keepDefaultValues || (o = f), !c.keepValues) {
|
|
1284
1284
|
if (c.keepDirtyValues) {
|
|
1285
1285
|
const V = /* @__PURE__ */ new Set([
|
|
1286
1286
|
...l.mount,
|
|
1287
1287
|
...Object.keys(ge(o, n))
|
|
1288
1288
|
]);
|
|
1289
|
-
for (const
|
|
1290
|
-
v(t.dirtyFields,
|
|
1289
|
+
for (const B of Array.from(V))
|
|
1290
|
+
v(t.dirtyFields, B) ? D(_, B, v(n, B)) : Q(B, v(_, B));
|
|
1291
1291
|
} else {
|
|
1292
1292
|
if (nt && L(a))
|
|
1293
1293
|
for (const V of l.mount) {
|
|
1294
|
-
const
|
|
1295
|
-
if (
|
|
1296
|
-
const
|
|
1297
|
-
if (Re(
|
|
1298
|
-
const ee =
|
|
1294
|
+
const B = v(s, V);
|
|
1295
|
+
if (B && B._f) {
|
|
1296
|
+
const P = Array.isArray(B._f.refs) ? B._f.refs[0] : B._f.ref;
|
|
1297
|
+
if (Re(P)) {
|
|
1298
|
+
const ee = P.closest("form");
|
|
1299
1299
|
if (ee) {
|
|
1300
1300
|
ee.reset();
|
|
1301
1301
|
break;
|
|
@@ -1335,7 +1335,7 @@ function cs(e = {}) {
|
|
|
1335
1335
|
defaultValues: o
|
|
1336
1336
|
});
|
|
1337
1337
|
}, vt = (a, c) => pt(oe(a) ? a(n) : a, c), xr = (a, c = {}) => {
|
|
1338
|
-
const
|
|
1338
|
+
const f = v(s, a), S = f && f._f;
|
|
1339
1339
|
if (S) {
|
|
1340
1340
|
const p = S.refs ? S.refs[0] : S.ref;
|
|
1341
1341
|
p.focus && (p.focus(), c.shouldSelect && oe(p.select) && p.select());
|
|
@@ -1358,9 +1358,9 @@ function cs(e = {}) {
|
|
|
1358
1358
|
_getWatch: N,
|
|
1359
1359
|
_getDirty: J,
|
|
1360
1360
|
_setValid: g,
|
|
1361
|
-
_setFieldArray:
|
|
1361
|
+
_setFieldArray: w,
|
|
1362
1362
|
_setDisabledField: gt,
|
|
1363
|
-
_setErrors:
|
|
1363
|
+
_setErrors: A,
|
|
1364
1364
|
_getFieldArray: R,
|
|
1365
1365
|
_reset: pt,
|
|
1366
1366
|
_resetDefaultValues: () => oe(r.defaultValues) && r.defaultValues().then((a) => {
|
|
@@ -1412,7 +1412,7 @@ function cs(e = {}) {
|
|
|
1412
1412
|
handleSubmit: _t,
|
|
1413
1413
|
watch: pr,
|
|
1414
1414
|
setValue: Q,
|
|
1415
|
-
getValues:
|
|
1415
|
+
getValues: Ce,
|
|
1416
1416
|
reset: vt,
|
|
1417
1417
|
resetField: Sr,
|
|
1418
1418
|
clearErrors: _r,
|
|
@@ -1509,8 +1509,8 @@ const Ht = (e, r, t) => {
|
|
|
1509
1509
|
const o = v(r.fields, s), n = Object.assign(e[s] || {}, { ref: o && o.ref });
|
|
1510
1510
|
if (ds(r.names || Object.keys(e), s)) {
|
|
1511
1511
|
const i = Object.assign({}, v(t, s));
|
|
1512
|
-
|
|
1513
|
-
} else
|
|
1512
|
+
D(i, "root", n), D(t, s, i);
|
|
1513
|
+
} else D(t, s, n);
|
|
1514
1514
|
}
|
|
1515
1515
|
return t;
|
|
1516
1516
|
}, ds = (e, r) => {
|
|
@@ -1522,11 +1522,11 @@ function Tt(e) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
function lr(e, r, t) {
|
|
1524
1524
|
function s(l, d) {
|
|
1525
|
-
var
|
|
1525
|
+
var u;
|
|
1526
1526
|
Object.defineProperty(l, "_zod", {
|
|
1527
1527
|
value: l._zod ?? {},
|
|
1528
1528
|
enumerable: !1
|
|
1529
|
-
}), (
|
|
1529
|
+
}), (u = l._zod).traits ?? (u.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, d);
|
|
1530
1530
|
for (const y in i.prototype)
|
|
1531
1531
|
y in l || Object.defineProperty(l, y, { value: i.prototype[y].bind(l) });
|
|
1532
1532
|
l._zod.constr = i, l._zod.def = d;
|
|
@@ -1537,16 +1537,16 @@ function lr(e, r, t) {
|
|
|
1537
1537
|
Object.defineProperty(n, "name", { value: e });
|
|
1538
1538
|
function i(l) {
|
|
1539
1539
|
var d;
|
|
1540
|
-
const
|
|
1541
|
-
s(
|
|
1542
|
-
for (const y of
|
|
1540
|
+
const u = t != null && t.Parent ? new n() : this;
|
|
1541
|
+
s(u, l), (d = u._zod).deferred ?? (d.deferred = []);
|
|
1542
|
+
for (const y of u._zod.deferred)
|
|
1543
1543
|
y();
|
|
1544
|
-
return
|
|
1544
|
+
return u;
|
|
1545
1545
|
}
|
|
1546
1546
|
return Object.defineProperty(i, "init", { value: s }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
1547
1547
|
value: (l) => {
|
|
1548
|
-
var d,
|
|
1549
|
-
return t != null && t.Parent && l instanceof t.Parent ? !0 : (
|
|
1548
|
+
var d, u;
|
|
1549
|
+
return t != null && t.Parent && l instanceof t.Parent ? !0 : (u = (d = l == null ? void 0 : l._zod) == null ? void 0 : d.traits) == null ? void 0 : u.has(e);
|
|
1550
1550
|
}
|
|
1551
1551
|
}), Object.defineProperty(i, "name", { value: e }), i;
|
|
1552
1552
|
}
|
|
@@ -1568,10 +1568,10 @@ function $e(e) {
|
|
|
1568
1568
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1569
1569
|
}
|
|
1570
1570
|
function dr(e, r, t) {
|
|
1571
|
-
var o, n, i, l, d,
|
|
1571
|
+
var o, n, i, l, d, u;
|
|
1572
1572
|
const s = { ...e, path: e.path ?? [] };
|
|
1573
1573
|
if (!e.message) {
|
|
1574
|
-
const y = $e((i = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : i.call(n, e)) ?? $e((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? $e((d = t.customError) == null ? void 0 : d.call(t, e)) ?? $e((
|
|
1574
|
+
const y = $e((i = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : i.call(n, e)) ?? $e((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? $e((d = t.customError) == null ? void 0 : d.call(t, e)) ?? $e((u = t.localeError) == null ? void 0 : u.call(t, e)) ?? "Invalid input";
|
|
1575
1575
|
s.message = y;
|
|
1576
1576
|
}
|
|
1577
1577
|
return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
|
|
@@ -1625,8 +1625,8 @@ function bs(e, r) {
|
|
|
1625
1625
|
return e.push(m);
|
|
1626
1626
|
});
|
|
1627
1627
|
}), r) {
|
|
1628
|
-
var d = t[i].types,
|
|
1629
|
-
t[i] = ut(i, r, t, o,
|
|
1628
|
+
var d = t[i].types, u = d && d[s.code];
|
|
1629
|
+
t[i] = ut(i, r, t, o, u ? [].concat(u, s.message) : s.message);
|
|
1630
1630
|
}
|
|
1631
1631
|
e.shift();
|
|
1632
1632
|
}
|
|
@@ -1644,8 +1644,8 @@ function Ss(e, r) {
|
|
|
1644
1644
|
return e.push(m);
|
|
1645
1645
|
});
|
|
1646
1646
|
}), r) {
|
|
1647
|
-
var d = t[i].types,
|
|
1648
|
-
t[i] = ut(i, r, t, o,
|
|
1647
|
+
var d = t[i].types, u = d && d[s.code];
|
|
1648
|
+
t[i] = ut(i, r, t, o, u ? [].concat(u, s.message) : s.message);
|
|
1649
1649
|
}
|
|
1650
1650
|
e.shift();
|
|
1651
1651
|
}
|
|
@@ -1697,7 +1697,7 @@ function Fs() {
|
|
|
1697
1697
|
throw new Error("useFormContext must be used within a Form component");
|
|
1698
1698
|
return e;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function Cs({
|
|
1701
1701
|
onSubmit: e,
|
|
1702
1702
|
children: r,
|
|
1703
1703
|
schema: t,
|
|
@@ -1708,16 +1708,16 @@ function ws({
|
|
|
1708
1708
|
style: l,
|
|
1709
1709
|
formProps: d
|
|
1710
1710
|
}) {
|
|
1711
|
-
const
|
|
1711
|
+
const u = us({
|
|
1712
1712
|
resolver: t ? xs(t) : void 0,
|
|
1713
1713
|
defaultValues: s,
|
|
1714
1714
|
mode: o,
|
|
1715
1715
|
reValidateMode: n
|
|
1716
|
-
}), y =
|
|
1717
|
-
return /* @__PURE__ */
|
|
1716
|
+
}), y = u.handleSubmit(e);
|
|
1717
|
+
return /* @__PURE__ */ C(mr.Provider, { value: u, children: /* @__PURE__ */ C("form", { ...d, className: i, style: l, onSubmit: y, children: typeof r == "function" ? r(u) : r }) });
|
|
1718
1718
|
}
|
|
1719
|
-
const qo =
|
|
1720
|
-
formError:
|
|
1719
|
+
const qo = Cs, ws = "FormError-module__formError___kaUBn", Vs = {
|
|
1720
|
+
formError: ws
|
|
1721
1721
|
}, ks = ({
|
|
1722
1722
|
// Color prop
|
|
1723
1723
|
color: e,
|
|
@@ -1735,12 +1735,12 @@ const qo = ws, Cs = "FormError-module__formError___kaUBn", Vs = {
|
|
|
1735
1735
|
...s
|
|
1736
1736
|
// Top level style prop overrides
|
|
1737
1737
|
}, l = [Vs.formError, t].filter(Boolean).join(" ");
|
|
1738
|
-
return /* @__PURE__ */
|
|
1739
|
-
}, zs = "FormGroup-module__formGroup___aVI-B", $s = "FormGroup-module__inputWrapper___429QE",
|
|
1738
|
+
return /* @__PURE__ */ C("div", { ...o, className: l, style: i, role: "alert", "aria-live": "polite", children: r });
|
|
1739
|
+
}, zs = "FormGroup-module__formGroup___aVI-B", $s = "FormGroup-module__inputWrapper___429QE", As = "FormGroup-module__indented___t61iz", Es = "FormGroup-module__disabled___W-tJ0", Ns = "FormGroup-module__required___mO3xA", me = {
|
|
1740
1740
|
formGroup: zs,
|
|
1741
1741
|
inputWrapper: $s,
|
|
1742
|
-
indented:
|
|
1743
|
-
disabled:
|
|
1742
|
+
indented: As,
|
|
1743
|
+
disabled: Es,
|
|
1744
1744
|
required: Ns
|
|
1745
1745
|
}, Rs = ({
|
|
1746
1746
|
// State props
|
|
@@ -1757,7 +1757,7 @@ const qo = ws, Cs = "FormError-module__formError___kaUBn", Vs = {
|
|
|
1757
1757
|
// Content
|
|
1758
1758
|
children: d,
|
|
1759
1759
|
// Style overrides
|
|
1760
|
-
className:
|
|
1760
|
+
className: u,
|
|
1761
1761
|
style: y,
|
|
1762
1762
|
// Element-specific props
|
|
1763
1763
|
divProps: m
|
|
@@ -1766,15 +1766,15 @@ const qo = ws, Cs = "FormError-module__formError___kaUBn", Vs = {
|
|
|
1766
1766
|
me.formGroup,
|
|
1767
1767
|
r ? me.error : "",
|
|
1768
1768
|
e ? me.disabled : "",
|
|
1769
|
-
|
|
1769
|
+
u
|
|
1770
1770
|
].filter(Boolean).join(" "), F = {
|
|
1771
1771
|
"--form-group-margin-bottom": `calc(${h.fonts.rhythm} * 0.35)`,
|
|
1772
1772
|
...y
|
|
1773
1773
|
}, g = z.Children.map(d, (k) => {
|
|
1774
1774
|
if (z.isValidElement(k)) {
|
|
1775
|
-
const
|
|
1776
|
-
if (e && k.props.disabled === void 0 && (
|
|
1777
|
-
return z.cloneElement(k,
|
|
1775
|
+
const w = {};
|
|
1776
|
+
if (e && k.props.disabled === void 0 && (w.disabled = !0), r && k.props.error === void 0 && (w.error = !0), o && k.props.id === void 0 && (w.id = o), Object.keys(w).length > 0)
|
|
1777
|
+
return z.cloneElement(k, w);
|
|
1778
1778
|
}
|
|
1779
1779
|
return k;
|
|
1780
1780
|
});
|
|
@@ -1786,8 +1786,8 @@ const qo = ws, Cs = "FormError-module__formError___kaUBn", Vs = {
|
|
|
1786
1786
|
"*"
|
|
1787
1787
|
] })
|
|
1788
1788
|
] }),
|
|
1789
|
-
/* @__PURE__ */
|
|
1790
|
-
r && i && /* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ C("div", { className: `${me.inputWrapper} ${s ? me.indented : ""}`, children: g }),
|
|
1790
|
+
r && i && /* @__PURE__ */ C(ks, { children: i })
|
|
1791
1791
|
] });
|
|
1792
1792
|
};
|
|
1793
1793
|
function de({
|
|
@@ -1800,7 +1800,7 @@ function de({
|
|
|
1800
1800
|
className: i,
|
|
1801
1801
|
style: l,
|
|
1802
1802
|
indent: d,
|
|
1803
|
-
labelProps:
|
|
1803
|
+
labelProps: u
|
|
1804
1804
|
}) {
|
|
1805
1805
|
const { control: y } = Fs(), {
|
|
1806
1806
|
field: m,
|
|
@@ -1810,7 +1810,7 @@ function de({
|
|
|
1810
1810
|
control: y,
|
|
1811
1811
|
rules: o
|
|
1812
1812
|
});
|
|
1813
|
-
return /* @__PURE__ */
|
|
1813
|
+
return /* @__PURE__ */ C(
|
|
1814
1814
|
Rs,
|
|
1815
1815
|
{
|
|
1816
1816
|
label: r,
|
|
@@ -1822,7 +1822,7 @@ function de({
|
|
|
1822
1822
|
className: i,
|
|
1823
1823
|
style: l,
|
|
1824
1824
|
indent: d,
|
|
1825
|
-
labelProps:
|
|
1825
|
+
labelProps: u,
|
|
1826
1826
|
children: s({
|
|
1827
1827
|
value: m.value,
|
|
1828
1828
|
onChange: m.onChange,
|
|
@@ -1834,10 +1834,10 @@ function de({
|
|
|
1834
1834
|
}
|
|
1835
1835
|
);
|
|
1836
1836
|
}
|
|
1837
|
-
const
|
|
1838
|
-
input:
|
|
1839
|
-
sizeSmall:
|
|
1840
|
-
sizeLarge:
|
|
1837
|
+
const Bs = "Input-module__input___WjT81", Ds = "Input-module__sizeSmall___NFvsi", Ps = "Input-module__sizeLarge___4Boj3", Ue = {
|
|
1838
|
+
input: Bs,
|
|
1839
|
+
sizeSmall: Ds,
|
|
1840
|
+
sizeLarge: Ps
|
|
1841
1841
|
}, Ls = ({
|
|
1842
1842
|
color: e = "#000",
|
|
1843
1843
|
disabled: r = !1,
|
|
@@ -1863,7 +1863,7 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1863
1863
|
placeholder: i,
|
|
1864
1864
|
placeholderOpacity: l = 0.3,
|
|
1865
1865
|
type: d = "text",
|
|
1866
|
-
value:
|
|
1866
|
+
value: u = "",
|
|
1867
1867
|
// Event handlers
|
|
1868
1868
|
onChange: y,
|
|
1869
1869
|
onBlur: m,
|
|
@@ -1873,12 +1873,12 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1873
1873
|
// Element-specific props
|
|
1874
1874
|
inputProps: F
|
|
1875
1875
|
}) => {
|
|
1876
|
-
const g = H(), k = g.colors.error,
|
|
1877
|
-
color:
|
|
1876
|
+
const g = H(), k = g.colors.error, w = r ? k : t || g.colors.primary, b = Ls({
|
|
1877
|
+
color: w,
|
|
1878
1878
|
disabled: e,
|
|
1879
1879
|
fontSize: g.fonts.size,
|
|
1880
1880
|
placeholderOpacity: l
|
|
1881
|
-
}),
|
|
1881
|
+
}), A = {
|
|
1882
1882
|
"--placeholder-opacity": b.placeholderOpacity,
|
|
1883
1883
|
"--input-padding-small": `calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
1884
1884
|
"--input-padding-large": `calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
@@ -1895,7 +1895,7 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1895
1895
|
s === "small" ? Ue.sizeSmall : Ue.sizeLarge,
|
|
1896
1896
|
h
|
|
1897
1897
|
].filter(Boolean).join(" ");
|
|
1898
|
-
return /* @__PURE__ */
|
|
1898
|
+
return /* @__PURE__ */ C(
|
|
1899
1899
|
"input",
|
|
1900
1900
|
{
|
|
1901
1901
|
...F,
|
|
@@ -1907,8 +1907,8 @@ const Ds = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1907
1907
|
onBlur: m,
|
|
1908
1908
|
placeholder: i,
|
|
1909
1909
|
type: d,
|
|
1910
|
-
value:
|
|
1911
|
-
style:
|
|
1910
|
+
value: u,
|
|
1911
|
+
style: A
|
|
1912
1912
|
}
|
|
1913
1913
|
);
|
|
1914
1914
|
};
|
|
@@ -1922,7 +1922,7 @@ function Go({
|
|
|
1922
1922
|
style: i,
|
|
1923
1923
|
...l
|
|
1924
1924
|
}) {
|
|
1925
|
-
return /* @__PURE__ */
|
|
1925
|
+
return /* @__PURE__ */ C(
|
|
1926
1926
|
de,
|
|
1927
1927
|
{
|
|
1928
1928
|
name: e,
|
|
@@ -1932,13 +1932,13 @@ function Go({
|
|
|
1932
1932
|
disabled: o,
|
|
1933
1933
|
className: n,
|
|
1934
1934
|
style: i,
|
|
1935
|
-
children: ({ value: d, onChange:
|
|
1935
|
+
children: ({ value: d, onChange: u, onBlur: y, name: m, error: h }) => /* @__PURE__ */ C(
|
|
1936
1936
|
Hs,
|
|
1937
1937
|
{
|
|
1938
1938
|
...l,
|
|
1939
1939
|
name: m,
|
|
1940
1940
|
value: d || "",
|
|
1941
|
-
onChange: (x) =>
|
|
1941
|
+
onChange: (x) => u(x.target.value),
|
|
1942
1942
|
inputProps: { onBlur: y },
|
|
1943
1943
|
error: h
|
|
1944
1944
|
}
|
|
@@ -1973,7 +1973,7 @@ const Os = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall
|
|
|
1973
1973
|
placeholder: i,
|
|
1974
1974
|
placeholderOpacity: l = 0.3,
|
|
1975
1975
|
rows: d = 3,
|
|
1976
|
-
value:
|
|
1976
|
+
value: u = "",
|
|
1977
1977
|
// Event handlers
|
|
1978
1978
|
onChange: y,
|
|
1979
1979
|
onBlur: m,
|
|
@@ -1983,11 +1983,11 @@ const Os = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall
|
|
|
1983
1983
|
// Element-specific props
|
|
1984
1984
|
textareaProps: F
|
|
1985
1985
|
}) => {
|
|
1986
|
-
const g = H(), k = g.colors.error,
|
|
1987
|
-
color:
|
|
1986
|
+
const g = H(), k = g.colors.error, w = r ? k : t || g.colors.primary, b = js({
|
|
1987
|
+
color: w,
|
|
1988
1988
|
disabled: e,
|
|
1989
1989
|
placeholderOpacity: l
|
|
1990
|
-
}),
|
|
1990
|
+
}), A = {
|
|
1991
1991
|
"--placeholder-opacity": b.placeholderOpacity,
|
|
1992
1992
|
"--textarea-padding-small": `calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
1993
1993
|
"--textarea-padding-large": `calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
@@ -2004,7 +2004,7 @@ const Os = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall
|
|
|
2004
2004
|
s === "small" ? We.sizeSmall : We.sizeLarge,
|
|
2005
2005
|
h
|
|
2006
2006
|
].filter(Boolean).join(" ");
|
|
2007
|
-
return /* @__PURE__ */
|
|
2007
|
+
return /* @__PURE__ */ C(
|
|
2008
2008
|
"textarea",
|
|
2009
2009
|
{
|
|
2010
2010
|
...F,
|
|
@@ -2016,8 +2016,8 @@ const Os = "Textarea-module__textarea___Z-y6g", Ts = "Textarea-module__sizeSmall
|
|
|
2016
2016
|
onBlur: m,
|
|
2017
2017
|
placeholder: i,
|
|
2018
2018
|
rows: d,
|
|
2019
|
-
value:
|
|
2020
|
-
style:
|
|
2019
|
+
value: u,
|
|
2020
|
+
style: A
|
|
2021
2021
|
}
|
|
2022
2022
|
);
|
|
2023
2023
|
};
|
|
@@ -2031,7 +2031,7 @@ function Zo({
|
|
|
2031
2031
|
style: i,
|
|
2032
2032
|
...l
|
|
2033
2033
|
}) {
|
|
2034
|
-
return /* @__PURE__ */
|
|
2034
|
+
return /* @__PURE__ */ C(
|
|
2035
2035
|
de,
|
|
2036
2036
|
{
|
|
2037
2037
|
name: e,
|
|
@@ -2041,13 +2041,13 @@ function Zo({
|
|
|
2041
2041
|
disabled: o,
|
|
2042
2042
|
className: n,
|
|
2043
2043
|
style: i,
|
|
2044
|
-
children: ({ value: d, onChange:
|
|
2044
|
+
children: ({ value: d, onChange: u, onBlur: y, name: m, error: h }) => /* @__PURE__ */ C(
|
|
2045
2045
|
Is,
|
|
2046
2046
|
{
|
|
2047
2047
|
...l,
|
|
2048
2048
|
name: m,
|
|
2049
2049
|
value: d || "",
|
|
2050
|
-
onChange: (x) =>
|
|
2050
|
+
onChange: (x) => u(x.target.value),
|
|
2051
2051
|
onBlur: y,
|
|
2052
2052
|
error: h
|
|
2053
2053
|
}
|
|
@@ -2101,7 +2101,7 @@ const Us = "Select-module__select___cjdcr", Ws = "Select-module__sizeSmall___i1q
|
|
|
2101
2101
|
value: l = "",
|
|
2102
2102
|
// Event handlers
|
|
2103
2103
|
onChange: d,
|
|
2104
|
-
onBlur:
|
|
2104
|
+
onBlur: u,
|
|
2105
2105
|
// Standard React props
|
|
2106
2106
|
children: y,
|
|
2107
2107
|
className: m,
|
|
@@ -2109,27 +2109,27 @@ const Us = "Select-module__select___cjdcr", Ws = "Select-module__sizeSmall___i1q
|
|
|
2109
2109
|
// Element-specific props
|
|
2110
2110
|
selectProps: x
|
|
2111
2111
|
}) => {
|
|
2112
|
-
const F = H(), g = F.colors.error, k = r ? g : t || F.colors.primary,
|
|
2112
|
+
const F = H(), g = F.colors.error, k = r ? g : t || F.colors.primary, w = Gs({
|
|
2113
2113
|
color: k,
|
|
2114
2114
|
disabled: e
|
|
2115
2115
|
}), b = {
|
|
2116
2116
|
"--select-padding-small": `calc(${F.fonts.rhythm} * ${F.sizes.small.paddingVertical}) calc(${F.fonts.rhythm} * 1.2) calc(${F.fonts.rhythm} * ${F.sizes.small.paddingVertical}) calc(${F.fonts.rhythm} * ${F.inputs.paddingHorizontal})`,
|
|
2117
2117
|
"--select-padding-large": `calc(${F.fonts.rhythm} * ${F.sizes.large.paddingVertical}) calc(${F.fonts.rhythm} * 1.4) calc(${F.fonts.rhythm} * ${F.sizes.large.paddingVertical}) calc(${F.fonts.rhythm} * ${F.inputs.paddingHorizontal})`,
|
|
2118
|
-
backgroundImage:
|
|
2118
|
+
backgroundImage: w.backgroundImage,
|
|
2119
2119
|
backgroundPosition: "right center",
|
|
2120
2120
|
backgroundRepeat: "no-repeat",
|
|
2121
2121
|
backgroundSize: "auto 85%",
|
|
2122
2122
|
backgroundColor: "transparent",
|
|
2123
|
-
borderColor:
|
|
2123
|
+
borderColor: w.borderColor,
|
|
2124
2124
|
borderWidth: F.border.width,
|
|
2125
2125
|
borderRadius: F.border.radius,
|
|
2126
|
-
color:
|
|
2127
|
-
cursor:
|
|
2126
|
+
color: w.color,
|
|
2127
|
+
cursor: w.cursor,
|
|
2128
2128
|
fontSize: F.fonts.size,
|
|
2129
|
-
opacity:
|
|
2129
|
+
opacity: w.opacity,
|
|
2130
2130
|
...h
|
|
2131
2131
|
// Top level style overrides
|
|
2132
|
-
},
|
|
2132
|
+
}, A = [
|
|
2133
2133
|
qe.select,
|
|
2134
2134
|
s === "small" ? qe.sizeSmall : qe.sizeLarge,
|
|
2135
2135
|
m
|
|
@@ -2138,16 +2138,16 @@ const Us = "Select-module__select___cjdcr", Ws = "Select-module__sizeSmall___i1q
|
|
|
2138
2138
|
"select",
|
|
2139
2139
|
{
|
|
2140
2140
|
...x,
|
|
2141
|
-
className:
|
|
2141
|
+
className: A,
|
|
2142
2142
|
disabled: e,
|
|
2143
2143
|
id: o,
|
|
2144
2144
|
name: n,
|
|
2145
2145
|
onChange: d,
|
|
2146
|
-
onBlur:
|
|
2146
|
+
onBlur: u,
|
|
2147
2147
|
value: l,
|
|
2148
2148
|
style: b,
|
|
2149
2149
|
children: [
|
|
2150
|
-
i !== "" && /* @__PURE__ */
|
|
2150
|
+
i !== "" && /* @__PURE__ */ C("option", { disabled: !0, value: "", children: i }),
|
|
2151
2151
|
y
|
|
2152
2152
|
]
|
|
2153
2153
|
}
|
|
@@ -2164,7 +2164,7 @@ function Qo({
|
|
|
2164
2164
|
children: l,
|
|
2165
2165
|
...d
|
|
2166
2166
|
}) {
|
|
2167
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ C(
|
|
2168
2168
|
de,
|
|
2169
2169
|
{
|
|
2170
2170
|
name: e,
|
|
@@ -2174,12 +2174,12 @@ function Qo({
|
|
|
2174
2174
|
disabled: o,
|
|
2175
2175
|
className: n,
|
|
2176
2176
|
style: i,
|
|
2177
|
-
children: ({ value:
|
|
2177
|
+
children: ({ value: u, onChange: y, onBlur: m, name: h, error: x }) => /* @__PURE__ */ C(
|
|
2178
2178
|
Zs,
|
|
2179
2179
|
{
|
|
2180
2180
|
...d,
|
|
2181
2181
|
name: h,
|
|
2182
|
-
value:
|
|
2182
|
+
value: u || "",
|
|
2183
2183
|
onChange: (F) => y(F.target.value),
|
|
2184
2184
|
onBlur: m,
|
|
2185
2185
|
error: x,
|
|
@@ -2198,7 +2198,7 @@ function Ko({
|
|
|
2198
2198
|
style: n,
|
|
2199
2199
|
...i
|
|
2200
2200
|
}) {
|
|
2201
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ C(
|
|
2202
2202
|
de,
|
|
2203
2203
|
{
|
|
2204
2204
|
name: e,
|
|
@@ -2207,11 +2207,11 @@ function Ko({
|
|
|
2207
2207
|
disabled: s,
|
|
2208
2208
|
className: o,
|
|
2209
2209
|
style: n,
|
|
2210
|
-
children: ({ value: l, onChange: d, name:
|
|
2210
|
+
children: ({ value: l, onChange: d, name: u, error: y }) => /* @__PURE__ */ C(
|
|
2211
2211
|
Ye,
|
|
2212
2212
|
{
|
|
2213
2213
|
...i,
|
|
2214
|
-
name:
|
|
2214
|
+
name: u,
|
|
2215
2215
|
checked: !!l,
|
|
2216
2216
|
onChange: (m) => d(m.target.checked),
|
|
2217
2217
|
error: y
|
|
@@ -2245,7 +2245,7 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
|
|
|
2245
2245
|
label: l,
|
|
2246
2246
|
labelStyle: d,
|
|
2247
2247
|
// Style overrides
|
|
2248
|
-
className:
|
|
2248
|
+
className: u,
|
|
2249
2249
|
style: y,
|
|
2250
2250
|
// Element-specific props
|
|
2251
2251
|
divProps: m
|
|
@@ -2253,7 +2253,7 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
|
|
|
2253
2253
|
const h = H(), x = n || Kt(), F = h.colors.error, g = s ? F : e || h.colors.primary, k = Ys({
|
|
2254
2254
|
color: g,
|
|
2255
2255
|
disabled: t
|
|
2256
|
-
}),
|
|
2256
|
+
}), w = (M) => {
|
|
2257
2257
|
t || i(M);
|
|
2258
2258
|
}, b = {
|
|
2259
2259
|
cursor: k.cursor,
|
|
@@ -2261,24 +2261,24 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
|
|
|
2261
2261
|
opacity: k.opacity,
|
|
2262
2262
|
...y
|
|
2263
2263
|
// Top level style overrides
|
|
2264
|
-
},
|
|
2264
|
+
}, A = {
|
|
2265
2265
|
width: "1em"
|
|
2266
2266
|
}, $ = {
|
|
2267
2267
|
fill: "transparent",
|
|
2268
2268
|
strokeWidth: "12.5",
|
|
2269
2269
|
stroke: k.radioColor
|
|
2270
|
-
},
|
|
2270
|
+
}, E = {
|
|
2271
2271
|
fill: k.radioColor
|
|
2272
|
-
}, O = [Ge.container,
|
|
2272
|
+
}, O = [Ge.container, u].filter(Boolean).join(" ");
|
|
2273
2273
|
return /* @__PURE__ */ Z("div", { ...m, className: O, style: b, children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ C(
|
|
2275
2275
|
"input",
|
|
2276
2276
|
{
|
|
2277
2277
|
id: x,
|
|
2278
2278
|
checked: r,
|
|
2279
2279
|
disabled: t,
|
|
2280
2280
|
name: o,
|
|
2281
|
-
onChange: (M) =>
|
|
2281
|
+
onChange: (M) => w({ target: { checked: M.target.checked, name: o, type: "radio" } }),
|
|
2282
2282
|
style: { display: "none" },
|
|
2283
2283
|
type: "radio"
|
|
2284
2284
|
}
|
|
@@ -2288,16 +2288,16 @@ const Qs = "Radio-module__container___AQxhk", Ks = "Radio-module__svg___zl5kF",
|
|
|
2288
2288
|
{
|
|
2289
2289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2290
2290
|
viewBox: "0 0 100 100",
|
|
2291
|
-
onClick: () =>
|
|
2291
|
+
onClick: () => w({ target: { checked: !r, name: o, type: "radio" } }),
|
|
2292
2292
|
className: Ge.svg,
|
|
2293
|
-
style:
|
|
2293
|
+
style: A,
|
|
2294
2294
|
children: [
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
r && /* @__PURE__ */
|
|
2295
|
+
/* @__PURE__ */ C("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: $ }),
|
|
2296
|
+
r && /* @__PURE__ */ C("circle", { cx: "50", cy: "50", r: "25", style: E })
|
|
2297
2297
|
]
|
|
2298
2298
|
}
|
|
2299
2299
|
),
|
|
2300
|
-
l && /* @__PURE__ */
|
|
2300
|
+
l && /* @__PURE__ */ C(
|
|
2301
2301
|
ot,
|
|
2302
2302
|
{
|
|
2303
2303
|
htmlFor: x,
|
|
@@ -2322,7 +2322,7 @@ function Jo({
|
|
|
2322
2322
|
value: l,
|
|
2323
2323
|
...d
|
|
2324
2324
|
}) {
|
|
2325
|
-
return /* @__PURE__ */
|
|
2325
|
+
return /* @__PURE__ */ C(
|
|
2326
2326
|
de,
|
|
2327
2327
|
{
|
|
2328
2328
|
name: e,
|
|
@@ -2331,12 +2331,12 @@ function Jo({
|
|
|
2331
2331
|
disabled: o,
|
|
2332
2332
|
className: n,
|
|
2333
2333
|
style: i,
|
|
2334
|
-
children: ({ value:
|
|
2334
|
+
children: ({ value: u, onChange: y, name: m, error: h }) => /* @__PURE__ */ C(
|
|
2335
2335
|
hr,
|
|
2336
2336
|
{
|
|
2337
2337
|
...d,
|
|
2338
2338
|
name: m,
|
|
2339
|
-
checked:
|
|
2339
|
+
checked: u === l,
|
|
2340
2340
|
onChange: () => y(l),
|
|
2341
2341
|
error: h,
|
|
2342
2342
|
label: r
|
|
@@ -2355,7 +2355,7 @@ function Yo({
|
|
|
2355
2355
|
style: i,
|
|
2356
2356
|
indent: l = !0
|
|
2357
2357
|
}) {
|
|
2358
|
-
return /* @__PURE__ */
|
|
2358
|
+
return /* @__PURE__ */ C(
|
|
2359
2359
|
de,
|
|
2360
2360
|
{
|
|
2361
2361
|
name: e,
|
|
@@ -2370,12 +2370,12 @@ function Yo({
|
|
|
2370
2370
|
marginBottom: ".25em"
|
|
2371
2371
|
}
|
|
2372
2372
|
},
|
|
2373
|
-
children: ({ value: d, onChange:
|
|
2373
|
+
children: ({ value: d, onChange: u, name: y, error: m }) => /* @__PURE__ */ C(xe, { children: s.map((h) => /* @__PURE__ */ C(
|
|
2374
2374
|
hr,
|
|
2375
2375
|
{
|
|
2376
2376
|
name: y,
|
|
2377
2377
|
checked: d === h.value,
|
|
2378
|
-
onChange: () =>
|
|
2378
|
+
onChange: () => u(h.value),
|
|
2379
2379
|
label: h.label,
|
|
2380
2380
|
disabled: o || h.disabled,
|
|
2381
2381
|
error: m
|
|
@@ -2396,7 +2396,7 @@ function Xo({
|
|
|
2396
2396
|
style: l,
|
|
2397
2397
|
indent: d = !0
|
|
2398
2398
|
}) {
|
|
2399
|
-
return /* @__PURE__ */
|
|
2399
|
+
return /* @__PURE__ */ C(
|
|
2400
2400
|
de,
|
|
2401
2401
|
{
|
|
2402
2402
|
name: e,
|
|
@@ -2411,11 +2411,11 @@ function Xo({
|
|
|
2411
2411
|
marginBottom: ".25em"
|
|
2412
2412
|
}
|
|
2413
2413
|
},
|
|
2414
|
-
children: ({ value:
|
|
2415
|
-
const x = Array.isArray(
|
|
2416
|
-
y(k ? [...x, g] : x.filter((
|
|
2414
|
+
children: ({ value: u, onChange: y, name: m, error: h }) => {
|
|
2415
|
+
const x = Array.isArray(u) ? u : [], F = (g, k) => {
|
|
2416
|
+
y(k ? [...x, g] : x.filter((w) => w !== g));
|
|
2417
2417
|
};
|
|
2418
|
-
return /* @__PURE__ */
|
|
2418
|
+
return /* @__PURE__ */ C(xe, { children: s ? s.map((g) => /* @__PURE__ */ C(
|
|
2419
2419
|
Ye,
|
|
2420
2420
|
{
|
|
2421
2421
|
name: `${m}[]`,
|
|
@@ -2432,7 +2432,7 @@ function Xo({
|
|
|
2432
2432
|
return z.cloneElement(g, {
|
|
2433
2433
|
name: `${m}[]`,
|
|
2434
2434
|
checked: x.includes(k),
|
|
2435
|
-
onChange: (
|
|
2435
|
+
onChange: (w) => F(k, w.target.checked),
|
|
2436
2436
|
error: h || g.props.error,
|
|
2437
2437
|
disabled: n || g.props.disabled
|
|
2438
2438
|
});
|
|
@@ -2477,7 +2477,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2477
2477
|
className: l,
|
|
2478
2478
|
style: d
|
|
2479
2479
|
}) => {
|
|
2480
|
-
const
|
|
2480
|
+
const u = ro({
|
|
2481
2481
|
compact: t,
|
|
2482
2482
|
color: e,
|
|
2483
2483
|
visible: r,
|
|
@@ -2489,13 +2489,13 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2489
2489
|
ref: s,
|
|
2490
2490
|
className: y,
|
|
2491
2491
|
onClick: () => i(!o),
|
|
2492
|
-
style: { ...
|
|
2492
|
+
style: { ...u, ...d },
|
|
2493
2493
|
"aria-label": "Toggle menu",
|
|
2494
2494
|
"aria-expanded": o,
|
|
2495
2495
|
children: [
|
|
2496
|
-
/* @__PURE__ */
|
|
2497
|
-
/* @__PURE__ */
|
|
2498
|
-
/* @__PURE__ */
|
|
2496
|
+
/* @__PURE__ */ C("div", { className: ve.line }),
|
|
2497
|
+
/* @__PURE__ */ C("div", { className: ve.line }),
|
|
2498
|
+
/* @__PURE__ */ C("div", { className: ve.line })
|
|
2499
2499
|
]
|
|
2500
2500
|
}
|
|
2501
2501
|
);
|
|
@@ -2512,7 +2512,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2512
2512
|
padding: i,
|
|
2513
2513
|
margin: l,
|
|
2514
2514
|
gap: d,
|
|
2515
|
-
backgroundColor:
|
|
2515
|
+
backgroundColor: u,
|
|
2516
2516
|
color: y
|
|
2517
2517
|
} = {}) => {
|
|
2518
2518
|
const m = H();
|
|
@@ -2524,12 +2524,12 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2524
2524
|
"--header-padding": e ? n || m.layout.paddingSm : i || m.layout.padding,
|
|
2525
2525
|
"--header-margin": l,
|
|
2526
2526
|
"--header-gap": d,
|
|
2527
|
-
backgroundColor:
|
|
2527
|
+
backgroundColor: u,
|
|
2528
2528
|
color: y
|
|
2529
2529
|
};
|
|
2530
2530
|
}, ie = (e) => {
|
|
2531
2531
|
const r = typeof window < "u" && typeof window.matchMedia == "function";
|
|
2532
|
-
return
|
|
2532
|
+
return Ar((n) => {
|
|
2533
2533
|
if (!r) return () => {
|
|
2534
2534
|
};
|
|
2535
2535
|
const i = window.matchMedia(e);
|
|
@@ -2547,7 +2547,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2547
2547
|
padding: i,
|
|
2548
2548
|
paddingSm: l,
|
|
2549
2549
|
margin: d,
|
|
2550
|
-
gap:
|
|
2550
|
+
gap: u,
|
|
2551
2551
|
breakpoint: y,
|
|
2552
2552
|
fixed: m = !1,
|
|
2553
2553
|
// Content
|
|
@@ -2558,7 +2558,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2558
2558
|
// Element-specific props
|
|
2559
2559
|
headerProps: g
|
|
2560
2560
|
}) => {
|
|
2561
|
-
const k = H(),
|
|
2561
|
+
const k = H(), w = y || k.breakpoints.sm, { maxWidth: b, unit: A } = Ee(w), $ = ie(`(max-width: ${b}${A})`), E = io({
|
|
2562
2562
|
isSmallScreen: $,
|
|
2563
2563
|
maxWidth: t,
|
|
2564
2564
|
minWidth: s,
|
|
@@ -2567,15 +2567,15 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2567
2567
|
paddingSm: l,
|
|
2568
2568
|
padding: i,
|
|
2569
2569
|
margin: d,
|
|
2570
|
-
gap:
|
|
2570
|
+
gap: u,
|
|
2571
2571
|
backgroundColor: e,
|
|
2572
2572
|
color: r
|
|
2573
2573
|
}), O = [jt.container, x].filter(Boolean).join(" "), M = m ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
|
|
2574
|
-
return /* @__PURE__ */
|
|
2574
|
+
return /* @__PURE__ */ C("header", { ...g, className: jt.header, style: M, children: /* @__PURE__ */ C(
|
|
2575
2575
|
"div",
|
|
2576
2576
|
{
|
|
2577
2577
|
className: O,
|
|
2578
|
-
style: { ...
|
|
2578
|
+
style: { ...E, ...F },
|
|
2579
2579
|
children: h
|
|
2580
2580
|
}
|
|
2581
2581
|
) });
|
|
@@ -2592,42 +2592,44 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2592
2592
|
mobile: t,
|
|
2593
2593
|
desktop: s
|
|
2594
2594
|
}) => {
|
|
2595
|
-
const o = H()
|
|
2596
|
-
return
|
|
2595
|
+
const o = H();
|
|
2596
|
+
return De(() => {
|
|
2597
2597
|
if (e) {
|
|
2598
|
-
const
|
|
2598
|
+
const n = (t == null ? void 0 : t.backgroundColor) || o.colors.primary, i = (t == null ? void 0 : t.color) || o.colors.secondary, l = (t == null ? void 0 : t.activeBackgroundColor) || o.colors.secondary, d = (t == null ? void 0 : t.activeColor) || o.colors.primary, u = r || t != null && t.compact ? "1.5rem" : "2rem";
|
|
2599
2599
|
return {
|
|
2600
2600
|
navStyles: {
|
|
2601
|
-
backgroundColor:
|
|
2602
|
-
color:
|
|
2603
|
-
fontSize:
|
|
2601
|
+
backgroundColor: n,
|
|
2602
|
+
color: i,
|
|
2603
|
+
fontSize: u,
|
|
2604
2604
|
...t == null ? void 0 : t.style
|
|
2605
2605
|
},
|
|
2606
2606
|
linkActiveStyles: {
|
|
2607
|
-
backgroundColor:
|
|
2608
|
-
color:
|
|
2607
|
+
backgroundColor: l,
|
|
2608
|
+
color: d
|
|
2609
2609
|
},
|
|
2610
2610
|
linkHoverStyles: {
|
|
2611
2611
|
// No hover styles on mobile (touch devices)
|
|
2612
2612
|
}
|
|
2613
2613
|
};
|
|
2614
2614
|
} else {
|
|
2615
|
-
const
|
|
2615
|
+
const n = s == null ? void 0 : s.backgroundColor, i = (s == null ? void 0 : s.color) || o.fonts.color, l = (s == null ? void 0 : s.hoverOpacity) ?? 0.5, d = s == null ? void 0 : s.activeBackgroundColor, u = s == null ? void 0 : s.activeColor;
|
|
2616
2616
|
return {
|
|
2617
2617
|
navStyles: {
|
|
2618
|
-
...
|
|
2619
|
-
color:
|
|
2618
|
+
...n && { backgroundColor: n },
|
|
2619
|
+
color: i,
|
|
2620
2620
|
...s == null ? void 0 : s.style
|
|
2621
2621
|
},
|
|
2622
2622
|
linkActiveStyles: {
|
|
2623
|
-
|
|
2623
|
+
...d && { backgroundColor: d },
|
|
2624
|
+
...u && { color: u },
|
|
2625
|
+
opacity: d || u ? 1 : l
|
|
2624
2626
|
},
|
|
2625
2627
|
linkHoverStyles: {
|
|
2626
|
-
opacity:
|
|
2628
|
+
opacity: l
|
|
2627
2629
|
}
|
|
2628
2630
|
};
|
|
2629
2631
|
}
|
|
2630
|
-
}, [e, r, t, s, o
|
|
2632
|
+
}, [e, r, t, s, o]);
|
|
2631
2633
|
}, en = ({
|
|
2632
2634
|
mobile: e,
|
|
2633
2635
|
desktop: r,
|
|
@@ -2638,54 +2640,54 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2638
2640
|
navProps: i
|
|
2639
2641
|
}) => {
|
|
2640
2642
|
var J;
|
|
2641
|
-
const [l, d] = st(!1),
|
|
2642
|
-
isMobile:
|
|
2643
|
+
const [l, d] = st(!1), u = Ft(null), y = Ft(null), m = H(), h = { ...m.breakpoints, ...t }, { maxWidth: x, unit: F } = Ee(h.md), { maxWidth: g, unit: k } = Ee(h.sm), w = ie(`(max-width: ${x}${F})`), b = ie(`(max-width: ${g}${k})`), { navStyles: A, linkActiveStyles: $, linkHoverStyles: E } = ho({
|
|
2644
|
+
isMobile: w,
|
|
2643
2645
|
isCompact: b,
|
|
2644
2646
|
mobile: e,
|
|
2645
2647
|
desktop: r
|
|
2646
2648
|
}), O = {
|
|
2647
|
-
...
|
|
2649
|
+
...A,
|
|
2648
2650
|
// Mobile active state colors
|
|
2649
2651
|
...$.backgroundColor && {
|
|
2650
2652
|
"--mobile-active-bg": $.backgroundColor
|
|
2651
2653
|
},
|
|
2652
2654
|
...$.color && { "--mobile-active-color": $.color },
|
|
2653
2655
|
// Desktop hover opacity
|
|
2654
|
-
...
|
|
2655
|
-
"--desktop-hover-opacity":
|
|
2656
|
+
...E.opacity !== void 0 && {
|
|
2657
|
+
"--desktop-hover-opacity": E.opacity
|
|
2656
2658
|
}
|
|
2657
2659
|
};
|
|
2658
2660
|
Ke(() => {
|
|
2659
|
-
if (
|
|
2661
|
+
if (w && l) {
|
|
2660
2662
|
const N = window.scrollY;
|
|
2661
2663
|
return document.body.style.position = "fixed", document.body.style.top = `-${N}px`, document.body.style.width = "100%", () => {
|
|
2662
2664
|
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, N);
|
|
2663
2665
|
};
|
|
2664
2666
|
}
|
|
2665
|
-
}, [
|
|
2667
|
+
}, [w, l]), Ke(() => {
|
|
2666
2668
|
const N = (R) => {
|
|
2667
|
-
!y.current || y.current.contains(R.target) ||
|
|
2669
|
+
!y.current || y.current.contains(R.target) || u.current && u.current.contains(R.target) || d(!1);
|
|
2668
2670
|
};
|
|
2669
2671
|
return document.addEventListener("mousedown", N), () => {
|
|
2670
2672
|
document.removeEventListener("mousedown", N);
|
|
2671
2673
|
};
|
|
2672
|
-
}, [
|
|
2674
|
+
}, [u, y, d]);
|
|
2673
2675
|
const M = [
|
|
2674
2676
|
he.nav,
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2677
|
+
w ? he.navMobile : he.navDesktop,
|
|
2678
|
+
w && l ? he.open : "",
|
|
2679
|
+
w && (b || e != null && e.compact) ? he.compact : "",
|
|
2678
2680
|
o
|
|
2679
2681
|
].filter(Boolean).join(" "), te = (N) => {
|
|
2680
|
-
if (!
|
|
2682
|
+
if (!w) return;
|
|
2681
2683
|
N.target.closest("a, button") && d(!1);
|
|
2682
|
-
}, U =
|
|
2684
|
+
}, U = w ? (e == null ? void 0 : e.content) || s : (r == null ? void 0 : r.content) || s, ae = l ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || m.colors.secondary : (J = e == null ? void 0 : e.hamburgerProps) == null ? void 0 : J.color;
|
|
2683
2685
|
return /* @__PURE__ */ Z(xe, { children: [
|
|
2684
|
-
/* @__PURE__ */
|
|
2686
|
+
/* @__PURE__ */ C(
|
|
2685
2687
|
so,
|
|
2686
2688
|
{
|
|
2687
|
-
hamburgerRef:
|
|
2688
|
-
visible:
|
|
2689
|
+
hamburgerRef: u,
|
|
2690
|
+
visible: w,
|
|
2689
2691
|
compact: b,
|
|
2690
2692
|
open: l,
|
|
2691
2693
|
setOpen: d,
|
|
@@ -2702,7 +2704,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2702
2704
|
style: { ...O, ...n },
|
|
2703
2705
|
onClickCapture: te,
|
|
2704
2706
|
children: [
|
|
2705
|
-
|
|
2707
|
+
w && l && /* @__PURE__ */ C("div", { className: he.navHeader }),
|
|
2706
2708
|
typeof U == "function" ? U({ setOpen: d }) : U
|
|
2707
2709
|
]
|
|
2708
2710
|
}
|
|
@@ -2720,7 +2722,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2720
2722
|
// Element-specific props
|
|
2721
2723
|
divProps: n
|
|
2722
2724
|
}) => {
|
|
2723
|
-
const i = H(), l = e || i.colors.primary, d = r || i.colors.secondary,
|
|
2725
|
+
const i = H(), l = e || i.colors.primary, d = r || i.colors.secondary, u = /* @__PURE__ */ C(
|
|
2724
2726
|
"div",
|
|
2725
2727
|
{
|
|
2726
2728
|
...t ? void 0 : n,
|
|
@@ -2740,15 +2742,15 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2740
2742
|
}
|
|
2741
2743
|
}
|
|
2742
2744
|
), y = /* @__PURE__ */ Z(xe, { children: [
|
|
2743
|
-
|
|
2744
|
-
/* @__PURE__ */
|
|
2745
|
+
u,
|
|
2746
|
+
/* @__PURE__ */ C("style", { children: `
|
|
2745
2747
|
@keyframes spin {
|
|
2746
2748
|
0% { transform: rotate(0deg); }
|
|
2747
2749
|
100% { transform: rotate(360deg); }
|
|
2748
2750
|
}
|
|
2749
2751
|
` })
|
|
2750
2752
|
] });
|
|
2751
|
-
return t ? /* @__PURE__ */
|
|
2753
|
+
return t ? /* @__PURE__ */ C(
|
|
2752
2754
|
"div",
|
|
2753
2755
|
{
|
|
2754
2756
|
...n,
|
|
@@ -2771,7 +2773,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2771
2773
|
requestAnimationFrame(() => {
|
|
2772
2774
|
s(!0);
|
|
2773
2775
|
});
|
|
2774
|
-
}, []), t ? /* @__PURE__ */
|
|
2776
|
+
}, []), t ? /* @__PURE__ */ C(xe, { children: e }) : r || /* @__PURE__ */ C(go, {});
|
|
2775
2777
|
}, _o = "Stack-module__stack___yUU-B", po = "Stack-module__vertical___sKTyQ", vo = "Stack-module__horizontal___YsvtV", Ze = {
|
|
2776
2778
|
stack: _o,
|
|
2777
2779
|
vertical: po,
|
|
@@ -2792,7 +2794,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2792
2794
|
e === "row" ? Ze.horizontal : Ze.vertical,
|
|
2793
2795
|
t
|
|
2794
2796
|
].filter(Boolean).join(" ");
|
|
2795
|
-
return /* @__PURE__ */
|
|
2797
|
+
return /* @__PURE__ */ C("div", { ...o, className: n, style: s, children: r });
|
|
2796
2798
|
}, bo = "ResponsiveSection-module__section___gBESK", So = "ResponsiveSection-module__innerDiv___r1bky", It = {
|
|
2797
2799
|
section: bo,
|
|
2798
2800
|
innerDiv: So
|
|
@@ -2808,7 +2810,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2808
2810
|
padding: i,
|
|
2809
2811
|
paddingSm: l,
|
|
2810
2812
|
margin: d,
|
|
2811
|
-
gap:
|
|
2813
|
+
gap: u,
|
|
2812
2814
|
verticalRhythm: y = 3,
|
|
2813
2815
|
// Content
|
|
2814
2816
|
children: m,
|
|
@@ -2818,29 +2820,29 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2818
2820
|
// Element-specific props
|
|
2819
2821
|
sectionProps: F
|
|
2820
2822
|
}) => {
|
|
2821
|
-
const g = H(), k = ie(`(min-width: ${g.breakpoints.sm})`),
|
|
2823
|
+
const g = H(), k = ie(`(min-width: ${g.breakpoints.sm})`), w = {
|
|
2822
2824
|
backgroundColor: e,
|
|
2823
2825
|
color: r || g.fonts.color,
|
|
2824
2826
|
margin: d,
|
|
2825
2827
|
...x
|
|
2826
2828
|
// Top level style prop overrides
|
|
2827
|
-
}, b = `calc(${g.fonts.rhythm} * ${y})`,
|
|
2829
|
+
}, b = `calc(${g.fonts.rhythm} * ${y})`, A = k ? i || g.layout.padding : l || g.layout.paddingSm, $ = {
|
|
2828
2830
|
"--max-width": t || g.layout.maxWidth,
|
|
2829
2831
|
"--min-width": s,
|
|
2830
2832
|
"--width": o,
|
|
2831
2833
|
"--height": n,
|
|
2832
|
-
"--section-padding": `${b} ${
|
|
2833
|
-
"--gap":
|
|
2834
|
-
},
|
|
2835
|
-
return /* @__PURE__ */
|
|
2834
|
+
"--section-padding": `${b} ${A}`,
|
|
2835
|
+
"--gap": u
|
|
2836
|
+
}, E = [It.section, h].filter(Boolean).join(" ");
|
|
2837
|
+
return /* @__PURE__ */ C("section", { ...F, className: E, style: w, children: /* @__PURE__ */ C("div", { className: It.innerDiv, style: $, children: m }) });
|
|
2836
2838
|
}, xo = "Hero-module__hero___IB2tg", Fo = "Hero-module__content___rkkfQ", Ut = {
|
|
2837
2839
|
hero: xo,
|
|
2838
2840
|
content: Fo
|
|
2839
|
-
},
|
|
2841
|
+
}, Co = ({
|
|
2840
2842
|
isMd: e = !1,
|
|
2841
2843
|
isLg: r = !1,
|
|
2842
2844
|
theme: t
|
|
2843
|
-
}) =>
|
|
2845
|
+
}) => De(() => {
|
|
2844
2846
|
const { rhythm: s } = t.fonts;
|
|
2845
2847
|
let o = `calc(${s} * 2) 0`, n = "2rem", i = "1.125rem";
|
|
2846
2848
|
return r ? (o = `calc(${s} * 4) 0`, n = "3.5rem", i = "1.5rem") : e && (o = `calc(${s} * 3.5) 0`, n = "3rem", i = "1.25rem"), {
|
|
@@ -2861,19 +2863,19 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2861
2863
|
style: o,
|
|
2862
2864
|
...n
|
|
2863
2865
|
}) => {
|
|
2864
|
-
const i = H(), l = [Ut.hero, s].filter(Boolean).join(" "), d = (r == null ? void 0 : r.md) || i.breakpoints.md,
|
|
2865
|
-
return /* @__PURE__ */
|
|
2866
|
+
const i = H(), l = [Ut.hero, s].filter(Boolean).join(" "), d = (r == null ? void 0 : r.md) || i.breakpoints.md, u = (r == null ? void 0 : r.lg) || i.breakpoints.lg, y = ie(`(min-width: ${d})`), m = ie(`(min-width: ${u})`), h = Co({ isMd: y, isLg: m, theme: i });
|
|
2867
|
+
return /* @__PURE__ */ C(
|
|
2866
2868
|
gr,
|
|
2867
2869
|
{
|
|
2868
2870
|
className: l,
|
|
2869
2871
|
color: e || i.fonts.color,
|
|
2870
2872
|
style: { ...h, ...o },
|
|
2871
2873
|
...n,
|
|
2872
|
-
children: /* @__PURE__ */
|
|
2874
|
+
children: /* @__PURE__ */ C("div", { className: Ut.content, children: t })
|
|
2873
2875
|
}
|
|
2874
2876
|
);
|
|
2875
|
-
},
|
|
2876
|
-
footer:
|
|
2877
|
+
}, wo = "Footer-module__footer___A76NF", Vo = "Footer-module__container___QneNs", Wt = {
|
|
2878
|
+
footer: wo,
|
|
2877
2879
|
container: Vo
|
|
2878
2880
|
}, ko = ({
|
|
2879
2881
|
isSmallScreen: e = !1,
|
|
@@ -2885,7 +2887,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2885
2887
|
padding: i,
|
|
2886
2888
|
margin: l,
|
|
2887
2889
|
gap: d,
|
|
2888
|
-
backgroundColor:
|
|
2890
|
+
backgroundColor: u,
|
|
2889
2891
|
color: y
|
|
2890
2892
|
} = {}) => {
|
|
2891
2893
|
const m = H();
|
|
@@ -2897,7 +2899,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2897
2899
|
padding: e ? n || m.layout.paddingSm : i || m.layout.padding,
|
|
2898
2900
|
margin: l,
|
|
2899
2901
|
gap: d,
|
|
2900
|
-
backgroundColor:
|
|
2902
|
+
backgroundColor: u,
|
|
2901
2903
|
color: y || m.fonts.color
|
|
2902
2904
|
};
|
|
2903
2905
|
}, zo = ({
|
|
@@ -2912,7 +2914,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2912
2914
|
padding: i,
|
|
2913
2915
|
paddingSm: l,
|
|
2914
2916
|
margin: d,
|
|
2915
|
-
gap:
|
|
2917
|
+
gap: u,
|
|
2916
2918
|
breakPoint: y,
|
|
2917
2919
|
// Content
|
|
2918
2920
|
children: m,
|
|
@@ -2922,8 +2924,8 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2922
2924
|
// Element-specific props
|
|
2923
2925
|
footerProps: F
|
|
2924
2926
|
}) => {
|
|
2925
|
-
const g = H(), k = y || g.breakpoints.sm, { maxWidth:
|
|
2926
|
-
isSmallScreen:
|
|
2927
|
+
const g = H(), k = y || g.breakpoints.sm, { maxWidth: w, unit: b } = Ee(k), A = ie(`(max-width: ${w}${b})`), $ = ko({
|
|
2928
|
+
isSmallScreen: A,
|
|
2927
2929
|
maxWidth: t,
|
|
2928
2930
|
minWidth: s,
|
|
2929
2931
|
width: o,
|
|
@@ -2931,20 +2933,20 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2931
2933
|
paddingSm: l,
|
|
2932
2934
|
padding: i,
|
|
2933
2935
|
margin: d,
|
|
2934
|
-
gap:
|
|
2936
|
+
gap: u,
|
|
2935
2937
|
backgroundColor: e,
|
|
2936
2938
|
color: r
|
|
2937
|
-
}),
|
|
2938
|
-
return /* @__PURE__ */
|
|
2939
|
-
}, $o = "FeatureCard-module__card___XQt66",
|
|
2939
|
+
}), E = [Wt.container, h].filter(Boolean).join(" ");
|
|
2940
|
+
return /* @__PURE__ */ C("footer", { ...F, className: Wt.footer, children: /* @__PURE__ */ C("div", { className: E, style: { ...$, ...x }, children: m }) });
|
|
2941
|
+
}, $o = "FeatureCard-module__card___XQt66", Ao = "FeatureCard-module__icon___dXJ92", Eo = "FeatureCard-module__title___KxXyA", No = "FeatureCard-module__content___68xkw", Ae = {
|
|
2940
2942
|
card: $o,
|
|
2941
|
-
icon:
|
|
2942
|
-
title:
|
|
2943
|
+
icon: Ao,
|
|
2944
|
+
title: Eo,
|
|
2943
2945
|
content: No
|
|
2944
2946
|
}, Ro = ({
|
|
2945
2947
|
isMd: e = !1,
|
|
2946
2948
|
theme: r
|
|
2947
|
-
}) =>
|
|
2949
|
+
}) => De(() => {
|
|
2948
2950
|
const { rhythm: t } = r.fonts;
|
|
2949
2951
|
return {
|
|
2950
2952
|
"--feature-icon-font-size": e ? "3rem" : "2.5rem",
|
|
@@ -2966,7 +2968,7 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2966
2968
|
// Element-specific props
|
|
2967
2969
|
divProps: i
|
|
2968
2970
|
}) => {
|
|
2969
|
-
const l = H(), d = [
|
|
2971
|
+
const l = H(), d = [Ae.card, o].filter(Boolean).join(" "), u = e || l.breakpoints.md, y = ie(`(min-width: ${u})`), m = Ro({ isMd: y, theme: l });
|
|
2970
2972
|
return /* @__PURE__ */ Z(
|
|
2971
2973
|
"div",
|
|
2972
2974
|
{
|
|
@@ -2974,20 +2976,20 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
2974
2976
|
className: d,
|
|
2975
2977
|
style: { ...m, ...n },
|
|
2976
2978
|
children: [
|
|
2977
|
-
r && /* @__PURE__ */
|
|
2978
|
-
/* @__PURE__ */
|
|
2979
|
-
/* @__PURE__ */
|
|
2979
|
+
r && /* @__PURE__ */ C("div", { className: Ae.icon, children: r }),
|
|
2980
|
+
/* @__PURE__ */ C("h3", { className: Ae.title, children: t }),
|
|
2981
|
+
/* @__PURE__ */ C("div", { className: Ae.content, children: s })
|
|
2980
2982
|
]
|
|
2981
2983
|
}
|
|
2982
2984
|
);
|
|
2983
|
-
},
|
|
2984
|
-
section:
|
|
2985
|
-
grid:
|
|
2986
|
-
},
|
|
2985
|
+
}, Bo = "FeatureGridSection-module__section___wZrbC", Do = "FeatureGridSection-module__grid___iwPJv", qt = {
|
|
2986
|
+
section: Bo,
|
|
2987
|
+
grid: Do
|
|
2988
|
+
}, Po = ({
|
|
2987
2989
|
columns: e,
|
|
2988
2990
|
isMd: r = !1,
|
|
2989
2991
|
isLg: t = !1
|
|
2990
|
-
}) =>
|
|
2992
|
+
}) => De(() => r ? r && !t && (e === 3 || e === 4) ? {
|
|
2991
2993
|
"--grid-template-columns": "repeat(2, 1fr)"
|
|
2992
2994
|
} : {
|
|
2993
2995
|
"--grid-template-columns": {
|
|
@@ -3010,14 +3012,14 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
3010
3012
|
style: n,
|
|
3011
3013
|
...i
|
|
3012
3014
|
}) => {
|
|
3013
|
-
const l = H(), d = [qt.section, o].filter(Boolean).join(" "),
|
|
3015
|
+
const l = H(), d = [qt.section, o].filter(Boolean).join(" "), u = (r == null ? void 0 : r.md) || l.breakpoints.md, y = (r == null ? void 0 : r.lg) || l.breakpoints.lg, m = ie(`(min-width: ${u})`), h = ie(`(min-width: ${y})`), x = Po({ columns: e, isMd: m, isLg: h }), F = {
|
|
3014
3016
|
"--section-padding-vertical": `calc(${l.fonts.rhythm} * 2)`
|
|
3015
3017
|
}, g = {
|
|
3016
3018
|
...x,
|
|
3017
3019
|
gap: t,
|
|
3018
3020
|
...n
|
|
3019
3021
|
};
|
|
3020
|
-
return /* @__PURE__ */
|
|
3022
|
+
return /* @__PURE__ */ C(gr, { className: d, style: F, ...i, children: /* @__PURE__ */ C("div", { className: qt.grid, style: g, children: s }) });
|
|
3021
3023
|
}, Lo = "PageLayout-module__layoutContainer___diLdT", Ho = "PageLayout-module__content___h2mBr", Oo = "PageLayout-module__main___Sw7Pv", Qe = {
|
|
3022
3024
|
layoutContainer: Lo,
|
|
3023
3025
|
content: Ho,
|
|
@@ -3036,13 +3038,13 @@ const Xs = "Hamburger-module__hamburger___Tf4-t", eo = "Hamburger-module__line__
|
|
|
3036
3038
|
divProps: l,
|
|
3037
3039
|
mainProps: d
|
|
3038
3040
|
}) => {
|
|
3039
|
-
const
|
|
3040
|
-
return /* @__PURE__ */ Z("div", { ...l, className:
|
|
3041
|
+
const u = [Qe.layoutContainer, s].filter(Boolean).join(" ");
|
|
3042
|
+
return /* @__PURE__ */ Z("div", { ...l, className: u, style: o, children: [
|
|
3041
3043
|
/* @__PURE__ */ Z("div", { className: Qe.content, children: [
|
|
3042
|
-
e && /* @__PURE__ */
|
|
3043
|
-
/* @__PURE__ */
|
|
3044
|
+
e && /* @__PURE__ */ C(ao, { ...n, children: e }),
|
|
3045
|
+
/* @__PURE__ */ C("main", { ...d, className: Qe.main, children: t })
|
|
3044
3046
|
] }),
|
|
3045
|
-
r && /* @__PURE__ */
|
|
3047
|
+
r && /* @__PURE__ */ C(zo, { ...i, children: r })
|
|
3046
3048
|
] });
|
|
3047
3049
|
};
|
|
3048
3050
|
export {
|
|
@@ -3078,7 +3080,7 @@ export {
|
|
|
3078
3080
|
tn as StyleLoader,
|
|
3079
3081
|
Is as Textarea,
|
|
3080
3082
|
Io as ThemeProvider,
|
|
3081
|
-
|
|
3083
|
+
Ee as parseBreakpoint,
|
|
3082
3084
|
Fs as useFormContext,
|
|
3083
3085
|
H as useTheme
|
|
3084
3086
|
};
|