digital-rabbit-cl 1.2.4 → 1.2.6
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/CSSReset/CSSReset.d.ts +2 -2
- package/dist/components/CSSReset/CSSReset.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/components/StyleLoader/StyleLoader.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +449 -482
- package/dist/digital-rabbit-cl.umd.js +3 -3
- package/dist/theme/ThemeContext.d.ts +1 -4
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- 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-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___iwWOV{padding:var(--button-padding-default)}.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-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___AxPA0{padding:var(--input-padding-default)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___LL2Uc{padding:var(--textarea-padding-default)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-width:var(--border-width, .15em);border-style:solid;border-radius:var(--border-radius, 0px);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__sizeDefault___EiWvW{padding:var(--select-padding-default)}.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:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:var(--nav-padding-top);position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:var(--nav-link-padding);text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:var(--nav-button-margin)}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.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;font-size:var(--footer-font-size);max-width:var(--footer-max-width);padding:var(--footer-padding)}.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, #0066cc)}.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, #666)}.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__header___ChdTF{flex-shrink:0}.PageLayout-module__main___Sw7Pv{flex:1}.PageLayout-module__mainPadded___ZKio3{padding:var(--main-padding-vertical) 0}.PageLayout-module__footer___DUw6m{flex-shrink:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { jsx as w, jsxs as Q, Fragment as
|
|
3
|
-
import V, { createContext as
|
|
4
|
-
const
|
|
5
|
-
button:
|
|
6
|
-
sizeSmall:
|
|
7
|
-
sizeDefault:
|
|
8
|
-
},
|
|
2
|
+
import { jsx as w, jsxs as Q, Fragment as Je } from "react/jsx-runtime";
|
|
3
|
+
import V, { createContext as Fr, useContext as xr, useState as Xe, useEffect as Ye, useMemo as be, useSyncExternalStore as kr, useRef as vt } from "react";
|
|
4
|
+
const Vr = "Button-module__button___2ZuB7", Cr = "Button-module__sizeSmall___DRT8P", Er = "Button-module__sizeDefault___iwWOV", ke = {
|
|
5
|
+
button: Vr,
|
|
6
|
+
sizeSmall: Cr,
|
|
7
|
+
sizeDefault: Er
|
|
8
|
+
}, zr = ({
|
|
9
9
|
isActive: e,
|
|
10
10
|
disabled: r,
|
|
11
11
|
buttonColor: t = "#FFF",
|
|
@@ -30,7 +30,7 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
30
30
|
error: "#F00",
|
|
31
31
|
success: "#008000",
|
|
32
32
|
warning: "#FFEB3B"
|
|
33
|
-
},
|
|
33
|
+
}, jt = {
|
|
34
34
|
colors: bt,
|
|
35
35
|
fonts: {
|
|
36
36
|
color: "#000",
|
|
@@ -53,7 +53,7 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
border: {
|
|
56
|
-
radius: "
|
|
56
|
+
radius: "5px",
|
|
57
57
|
width: "0.15em"
|
|
58
58
|
},
|
|
59
59
|
breakpoints: {
|
|
@@ -67,42 +67,7 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
67
67
|
wrapperPaddingSm: "0.5rem",
|
|
68
68
|
wrapperPadding: "1rem"
|
|
69
69
|
}
|
|
70
|
-
}, Wt =
|
|
71
|
-
var s;
|
|
72
|
-
const t = {
|
|
73
|
-
...ce,
|
|
74
|
-
...e,
|
|
75
|
-
colors: {
|
|
76
|
-
...ce.colors,
|
|
77
|
-
...e.colors
|
|
78
|
-
},
|
|
79
|
-
fonts: {
|
|
80
|
-
...ce.fonts,
|
|
81
|
-
...e.fonts
|
|
82
|
-
},
|
|
83
|
-
buttons: {
|
|
84
|
-
...ce.buttons,
|
|
85
|
-
...e.buttons,
|
|
86
|
-
primary: {
|
|
87
|
-
...ce.buttons.primary,
|
|
88
|
-
...(s = e.buttons) == null ? void 0 : s.primary
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
border: {
|
|
92
|
-
...ce.border,
|
|
93
|
-
...e.border
|
|
94
|
-
},
|
|
95
|
-
breakpoints: {
|
|
96
|
-
...ce.breakpoints,
|
|
97
|
-
...e.breakpoints
|
|
98
|
-
},
|
|
99
|
-
layout: {
|
|
100
|
-
...ce.layout,
|
|
101
|
-
...e.layout
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
return /* @__PURE__ */ w(Wt.Provider, { value: t, children: r });
|
|
105
|
-
}, L = () => Fr(Wt), Io = ({
|
|
70
|
+
}, Wt = Fr(jt), Mo = ({ theme: e = jt, children: r }) => /* @__PURE__ */ w(Wt.Provider, { value: e, children: r }), L = () => xr(Wt), To = ({
|
|
106
71
|
color: e,
|
|
107
72
|
hoverColor: r,
|
|
108
73
|
hoverTextColor: t,
|
|
@@ -116,11 +81,11 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
116
81
|
onClick: y,
|
|
117
82
|
fontSize: h
|
|
118
83
|
}) => {
|
|
119
|
-
const f = L(), [b, C] =
|
|
84
|
+
const f = L(), [b, C] = Xe(!1);
|
|
120
85
|
let S;
|
|
121
86
|
s ? S = s : S = e ? f.buttons.textColor : f.buttons.primary.textColor;
|
|
122
87
|
const R = {
|
|
123
|
-
|
|
88
|
+
...zr({
|
|
124
89
|
isActive: b,
|
|
125
90
|
disabled: m,
|
|
126
91
|
buttonColor: e || f.colors.primary,
|
|
@@ -134,15 +99,15 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
134
99
|
"--border-radius": f.border.radius,
|
|
135
100
|
"--button-padding-small": `calc(${f.fonts.rhythm} * 0.07) calc(${f.fonts.rhythm} * 0.35)`,
|
|
136
101
|
"--button-padding-default": `calc(${f.fonts.rhythm} * 0.17) calc(${f.fonts.rhythm} * 0.35)`
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
o === "small" ?
|
|
140
|
-
n ?
|
|
102
|
+
}, F = [
|
|
103
|
+
ke.button,
|
|
104
|
+
o === "small" ? ke.sizeSmall : ke.sizeDefault,
|
|
105
|
+
n ? ke.outline : ""
|
|
141
106
|
].filter(Boolean).join(" ");
|
|
142
107
|
return /* @__PURE__ */ w(
|
|
143
108
|
"button",
|
|
144
109
|
{
|
|
145
|
-
className:
|
|
110
|
+
className: F,
|
|
146
111
|
disabled: m,
|
|
147
112
|
onClick: y,
|
|
148
113
|
onMouseEnter: () => C(!0),
|
|
@@ -157,33 +122,33 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
157
122
|
}
|
|
158
123
|
);
|
|
159
124
|
};
|
|
160
|
-
var St = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto),
|
|
161
|
-
function
|
|
125
|
+
var St = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), $r = new Uint8Array(16);
|
|
126
|
+
function Ar() {
|
|
162
127
|
if (!St)
|
|
163
128
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
164
|
-
return St(
|
|
129
|
+
return St($r);
|
|
165
130
|
}
|
|
166
131
|
var qt = [];
|
|
167
|
-
for (var
|
|
168
|
-
qt[
|
|
169
|
-
function
|
|
132
|
+
for (var Ve = 0; Ve < 256; ++Ve)
|
|
133
|
+
qt[Ve] = (Ve + 256).toString(16).substr(1);
|
|
134
|
+
function Pr(e, r) {
|
|
170
135
|
var t = 0, s = qt;
|
|
171
136
|
return [s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]]].join("");
|
|
172
137
|
}
|
|
173
138
|
function Gt(e, r, t) {
|
|
174
139
|
var s = r && t || 0;
|
|
175
140
|
typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
176
|
-
var n = e.random || (e.rng ||
|
|
141
|
+
var n = e.random || (e.rng || Ar)();
|
|
177
142
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, r)
|
|
178
143
|
for (var o = 0; o < 16; ++o)
|
|
179
144
|
r[s + o] = n[o];
|
|
180
|
-
return r ||
|
|
145
|
+
return r || Pr(n);
|
|
181
146
|
}
|
|
182
|
-
const
|
|
183
|
-
container:
|
|
184
|
-
svg:
|
|
185
|
-
label:
|
|
186
|
-
},
|
|
147
|
+
const Dr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kkluC", Rr = "Checkbox-module__label___cwRtI", Te = {
|
|
148
|
+
container: Dr,
|
|
149
|
+
svg: Nr,
|
|
150
|
+
label: Rr
|
|
151
|
+
}, Br = ({
|
|
187
152
|
color: e = "#000",
|
|
188
153
|
checkmarkColor: r,
|
|
189
154
|
disabled: t = !1,
|
|
@@ -196,9 +161,9 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
196
161
|
cursor: t ? "default" : "pointer",
|
|
197
162
|
opacity: t ? 0.3 : 1
|
|
198
163
|
};
|
|
199
|
-
},
|
|
200
|
-
label:
|
|
201
|
-
disabled:
|
|
164
|
+
}, Or = "FormLabel-module__label___0M-fo", Lr = "FormLabel-module__disabled___ktIFp", wt = {
|
|
165
|
+
label: Or,
|
|
166
|
+
disabled: Lr
|
|
202
167
|
}, Mr = ({
|
|
203
168
|
color: e = "#000",
|
|
204
169
|
disabled: r = !1,
|
|
@@ -231,7 +196,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
231
196
|
...l
|
|
232
197
|
}, b = [wt.label, t ? wt.disabled : ""].filter(Boolean).join(" ");
|
|
233
198
|
return /* @__PURE__ */ w("label", { className: b, htmlFor: o, style: f, ...a, children: e });
|
|
234
|
-
},
|
|
199
|
+
}, Tr = ({
|
|
235
200
|
checked: e = !1,
|
|
236
201
|
checkmarkColor: r,
|
|
237
202
|
color: t,
|
|
@@ -247,7 +212,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
247
212
|
style: f,
|
|
248
213
|
...b
|
|
249
214
|
}) => {
|
|
250
|
-
const C = L(), S = l || Gt(), k = C.colors.error, R = n ? k : t || C.colors.primary,
|
|
215
|
+
const C = L(), S = l || Gt(), k = C.colors.error, R = n ? k : t || C.colors.primary, F = Br({
|
|
251
216
|
color: R,
|
|
252
217
|
checkmarkColor: r,
|
|
253
218
|
disabled: s,
|
|
@@ -255,14 +220,14 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
255
220
|
}), $ = (O) => {
|
|
256
221
|
s || h(O);
|
|
257
222
|
}, z = {
|
|
258
|
-
cursor:
|
|
223
|
+
cursor: F.cursor,
|
|
259
224
|
fontSize: o || C.fonts.size,
|
|
260
|
-
opacity:
|
|
225
|
+
opacity: F.opacity,
|
|
261
226
|
...f
|
|
262
227
|
}, E = {
|
|
263
228
|
width: o || "1rem"
|
|
264
229
|
};
|
|
265
|
-
return /* @__PURE__ */ Q("div", { className:
|
|
230
|
+
return /* @__PURE__ */ Q("div", { className: Te.container, style: z, ...b, children: [
|
|
266
231
|
/* @__PURE__ */ w(
|
|
267
232
|
"input",
|
|
268
233
|
{
|
|
@@ -282,7 +247,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
282
247
|
viewBox: "0 0 100 100",
|
|
283
248
|
onClick: () => $({ target: { checked: !e, name: y, type: "checkbox" } }),
|
|
284
249
|
style: E,
|
|
285
|
-
className:
|
|
250
|
+
className: Te.svg,
|
|
286
251
|
children: [
|
|
287
252
|
/* @__PURE__ */ w(
|
|
288
253
|
"rect",
|
|
@@ -292,9 +257,9 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
292
257
|
height: "100",
|
|
293
258
|
width: "100",
|
|
294
259
|
style: {
|
|
295
|
-
fill: a && e ?
|
|
260
|
+
fill: a && e ? F.boxColor : "transparent",
|
|
296
261
|
strokeWidth: "25",
|
|
297
|
-
stroke:
|
|
262
|
+
stroke: F.boxColor
|
|
298
263
|
}
|
|
299
264
|
}
|
|
300
265
|
),
|
|
@@ -302,7 +267,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
302
267
|
"path",
|
|
303
268
|
{
|
|
304
269
|
d: "M 25 45 L 45 65 L 75 30",
|
|
305
|
-
stroke:
|
|
270
|
+
stroke: F.checkmarkColor,
|
|
306
271
|
strokeWidth: "15",
|
|
307
272
|
fill: "transparent"
|
|
308
273
|
}
|
|
@@ -314,9 +279,9 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
314
279
|
et,
|
|
315
280
|
{
|
|
316
281
|
htmlFor: S,
|
|
317
|
-
className:
|
|
282
|
+
className: Te.label,
|
|
318
283
|
style: m,
|
|
319
|
-
color:
|
|
284
|
+
color: F.boxColor,
|
|
320
285
|
disabled: s,
|
|
321
286
|
error: n,
|
|
322
287
|
fontSize: o,
|
|
@@ -324,16 +289,17 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
324
289
|
}
|
|
325
290
|
)
|
|
326
291
|
] });
|
|
327
|
-
},
|
|
292
|
+
}, Io = () => {
|
|
328
293
|
const e = L();
|
|
329
|
-
return
|
|
294
|
+
return Ye(() => {
|
|
295
|
+
if (typeof document > "u") return;
|
|
330
296
|
const r = document.documentElement;
|
|
331
297
|
e.fonts && (e.fonts.fontFamily && r.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && r.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && r.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && r.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && r.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && r.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && r.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && r.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && r.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && r.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && r.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && r.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && r.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && r.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && r.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && r.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && r.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && r.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.wrapperPaddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.wrapperPaddingSm), e.layout.wrapperPadding && r.style.setProperty("--layout-wrapper-padding", e.layout.wrapperPadding));
|
|
332
298
|
}, [e]), null;
|
|
333
299
|
};
|
|
334
|
-
var
|
|
300
|
+
var Se = (e) => e.type === "checkbox", ue = (e) => e instanceof Date, Z = (e) => e == null;
|
|
335
301
|
const Zt = (e) => typeof e == "object";
|
|
336
|
-
var H = (e) => !Z(e) && !Array.isArray(e) && Zt(e) && !
|
|
302
|
+
var H = (e) => !Z(e) && !Array.isArray(e) && Zt(e) && !ue(e), Qt = (e) => H(e) && e.target ? Se(e.target) ? e.target.checked : e.target.value : e, Ir = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Kt = (e, r) => e.has(Ir(r)), Hr = (e) => {
|
|
337
303
|
const r = e.constructor && e.constructor.prototype;
|
|
338
304
|
return H(r) && r.hasOwnProperty("isPrototypeOf");
|
|
339
305
|
}, tt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -343,7 +309,7 @@ function U(e) {
|
|
|
343
309
|
if (e instanceof Date)
|
|
344
310
|
r = new Date(e);
|
|
345
311
|
else if (!(tt && (e instanceof Blob || s)) && (t || H(e)))
|
|
346
|
-
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !
|
|
312
|
+
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Hr(e))
|
|
347
313
|
r = e;
|
|
348
314
|
else
|
|
349
315
|
for (const n in e)
|
|
@@ -352,14 +318,14 @@ function U(e) {
|
|
|
352
318
|
return e;
|
|
353
319
|
return r;
|
|
354
320
|
}
|
|
355
|
-
var
|
|
321
|
+
var Ne = (e) => /^\w*$/.test(e), M = (e) => e === void 0, rt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], st = (e) => rt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), p = (e, r, t) => {
|
|
356
322
|
if (!r || !H(e))
|
|
357
323
|
return t;
|
|
358
|
-
const s = (
|
|
359
|
-
return
|
|
324
|
+
const s = (Ne(r) ? [r] : st(r)).reduce((n, o) => Z(n) ? n : n[o], e);
|
|
325
|
+
return M(s) || s === e ? M(e[r]) ? t : e[r] : s;
|
|
360
326
|
}, K = (e) => typeof e == "boolean", D = (e, r, t) => {
|
|
361
327
|
let s = -1;
|
|
362
|
-
const n =
|
|
328
|
+
const n = Ne(r) ? [r] : st(r), o = n.length, l = o - 1;
|
|
363
329
|
for (; ++s < o; ) {
|
|
364
330
|
const a = n[s];
|
|
365
331
|
let d = t;
|
|
@@ -372,7 +338,7 @@ var Re = (e) => /^\w*$/.test(e), T = (e) => e === void 0, rt = (e) => Array.isAr
|
|
|
372
338
|
e[a] = d, e = e[a];
|
|
373
339
|
}
|
|
374
340
|
};
|
|
375
|
-
const
|
|
341
|
+
const Ae = {
|
|
376
342
|
BLUR: "blur",
|
|
377
343
|
FOCUS_OUT: "focusout",
|
|
378
344
|
CHANGE: "change"
|
|
@@ -407,7 +373,7 @@ var Xt = (e, r, t, s = !0) => {
|
|
|
407
373
|
return n;
|
|
408
374
|
};
|
|
409
375
|
const nt = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
|
|
410
|
-
function
|
|
376
|
+
function Ur(e) {
|
|
411
377
|
const r = ot(), { control: t = r.control, disabled: s, name: n, exact: o } = e || {}, [l, a] = V.useState(t._formState), d = V.useRef({
|
|
412
378
|
isDirty: !1,
|
|
413
379
|
isLoading: !1,
|
|
@@ -432,11 +398,11 @@ function jr(e) {
|
|
|
432
398
|
d.current.isValid && t._setValid(!0);
|
|
433
399
|
}, [t]), V.useMemo(() => Xt(l, t, d.current, !1), [l, t]);
|
|
434
400
|
}
|
|
435
|
-
var J = (e) => typeof e == "string",
|
|
401
|
+
var J = (e) => typeof e == "string", Ge = (e, r, t, s, n) => J(e) ? (s && r.watch.add(e), p(t, e, n)) : Array.isArray(e) ? e.map((o) => (s && r.watch.add(o), p(t, o))) : (s && (r.watchAll = !0), t), Ze = (e) => Z(e) || !Zt(e);
|
|
436
402
|
function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
437
|
-
if (
|
|
403
|
+
if (Ze(e) || Ze(r))
|
|
438
404
|
return e === r;
|
|
439
|
-
if (
|
|
405
|
+
if (ue(e) && ue(r))
|
|
440
406
|
return e.getTime() === r.getTime();
|
|
441
407
|
const s = Object.keys(e), n = Object.keys(r);
|
|
442
408
|
if (s.length !== n.length)
|
|
@@ -450,24 +416,24 @@ function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
450
416
|
return !1;
|
|
451
417
|
if (o !== "ref") {
|
|
452
418
|
const a = r[o];
|
|
453
|
-
if (
|
|
419
|
+
if (ue(l) && ue(a) || H(l) && H(a) || Array.isArray(l) && Array.isArray(a) ? !te(l, a, t) : l !== a)
|
|
454
420
|
return !1;
|
|
455
421
|
}
|
|
456
422
|
}
|
|
457
423
|
return !0;
|
|
458
424
|
}
|
|
459
|
-
function
|
|
425
|
+
function jr(e) {
|
|
460
426
|
const r = ot(), { control: t = r.control, name: s, defaultValue: n, disabled: o, exact: l, compute: a } = e || {}, d = V.useRef(n), m = V.useRef(a), y = V.useRef(void 0), h = V.useRef(t), f = V.useRef(s);
|
|
461
427
|
m.current = a;
|
|
462
428
|
const [b, C] = V.useState(() => {
|
|
463
429
|
const z = t._getWatch(s, d.current);
|
|
464
430
|
return m.current ? m.current(z) : z;
|
|
465
431
|
}), S = V.useCallback((z) => {
|
|
466
|
-
const E =
|
|
432
|
+
const E = Ge(s, t._names, z || t._formValues, !1, d.current);
|
|
467
433
|
return m.current ? m.current(E) : E;
|
|
468
434
|
}, [t._formValues, t._names, s]), k = V.useCallback((z) => {
|
|
469
435
|
if (!o) {
|
|
470
|
-
const E =
|
|
436
|
+
const E = Ge(s, t._names, z || t._formValues, !1, d.current);
|
|
471
437
|
if (m.current) {
|
|
472
438
|
const O = m.current(E);
|
|
473
439
|
te(O, y.current) || (C(O), y.current = O);
|
|
@@ -485,21 +451,21 @@ function Wr(e) {
|
|
|
485
451
|
k(z.values);
|
|
486
452
|
}
|
|
487
453
|
})), [t, l, s, k]), V.useEffect(() => t._removeUnmounted());
|
|
488
|
-
const R = h.current !== t,
|
|
454
|
+
const R = h.current !== t, F = f.current, $ = V.useMemo(() => {
|
|
489
455
|
if (o)
|
|
490
456
|
return null;
|
|
491
|
-
const z = !R && !te(
|
|
457
|
+
const z = !R && !te(F, s);
|
|
492
458
|
return R || z ? S() : null;
|
|
493
|
-
}, [o, R, s,
|
|
459
|
+
}, [o, R, s, F, S]);
|
|
494
460
|
return $ !== null ? $ : b;
|
|
495
461
|
}
|
|
496
|
-
function
|
|
497
|
-
const r = ot(), { name: t, disabled: s, control: n = r.control, shouldUnregister: o, defaultValue: l } = e, a = Kt(n._names.array, t), d = V.useMemo(() => p(n._formValues, t, p(n._defaultValues, t, l)), [n, t, l]), m =
|
|
462
|
+
function Wr(e) {
|
|
463
|
+
const r = ot(), { name: t, disabled: s, control: n = r.control, shouldUnregister: o, defaultValue: l } = e, a = Kt(n._names.array, t), d = V.useMemo(() => p(n._formValues, t, p(n._defaultValues, t, l)), [n, t, l]), m = jr({
|
|
498
464
|
control: n,
|
|
499
465
|
name: t,
|
|
500
466
|
defaultValue: d,
|
|
501
467
|
exact: !0
|
|
502
|
-
}), y =
|
|
468
|
+
}), y = Ur({
|
|
503
469
|
control: n,
|
|
504
470
|
name: t,
|
|
505
471
|
exact: !0
|
|
@@ -535,13 +501,13 @@ function qr(e) {
|
|
|
535
501
|
value: Qt($),
|
|
536
502
|
name: t
|
|
537
503
|
},
|
|
538
|
-
type:
|
|
504
|
+
type: Ae.CHANGE
|
|
539
505
|
}), [t]), k = V.useCallback(() => b.current.onBlur({
|
|
540
506
|
target: {
|
|
541
507
|
value: p(n._formValues, t),
|
|
542
508
|
name: t
|
|
543
509
|
},
|
|
544
|
-
type:
|
|
510
|
+
type: Ae.BLUR
|
|
545
511
|
}), [t, n._formValues]), R = V.useCallback(($) => {
|
|
546
512
|
const z = p(n._fields, t);
|
|
547
513
|
z && $ && (z._f.ref = {
|
|
@@ -550,7 +516,7 @@ function qr(e) {
|
|
|
550
516
|
setCustomValidity: (E) => $.setCustomValidity(E),
|
|
551
517
|
reportValidity: () => $.reportValidity()
|
|
552
518
|
});
|
|
553
|
-
}, [n._fields, t]),
|
|
519
|
+
}, [n._fields, t]), F = V.useMemo(() => ({
|
|
554
520
|
name: t,
|
|
555
521
|
value: m,
|
|
556
522
|
...K(s) || y.disabled ? { disabled: y.disabled || s } : {},
|
|
@@ -570,7 +536,7 @@ function qr(e) {
|
|
|
570
536
|
};
|
|
571
537
|
if (E(t, !0), $) {
|
|
572
538
|
const O = U(p(n._options.defaultValues, t, h.current.defaultValue));
|
|
573
|
-
D(n._defaultValues, t, O),
|
|
539
|
+
D(n._defaultValues, t, O), M(p(n._formValues, t)) && D(n._formValues, t, O);
|
|
574
540
|
}
|
|
575
541
|
return !a && n.register(t), f.current = t, () => {
|
|
576
542
|
(a ? $ && !n._state.action : $) ? n.unregister(t) : E(t, !1);
|
|
@@ -581,10 +547,10 @@ function qr(e) {
|
|
|
581
547
|
name: t
|
|
582
548
|
});
|
|
583
549
|
}, [s, t, n]), V.useMemo(() => ({
|
|
584
|
-
field:
|
|
550
|
+
field: F,
|
|
585
551
|
formState: y,
|
|
586
552
|
fieldState: C
|
|
587
|
-
}), [
|
|
553
|
+
}), [F, y, C]);
|
|
588
554
|
}
|
|
589
555
|
var it = (e, r, t, s, n) => r ? {
|
|
590
556
|
...t[e],
|
|
@@ -592,7 +558,7 @@ var it = (e, r, t, s, n) => r ? {
|
|
|
592
558
|
...t[e] && t[e].types ? t[e].types : {},
|
|
593
559
|
[s]: n || !0
|
|
594
560
|
}
|
|
595
|
-
} : {},
|
|
561
|
+
} : {}, pe = (e) => Array.isArray(e) ? e : [e], Ft = () => {
|
|
596
562
|
let e = [];
|
|
597
563
|
return {
|
|
598
564
|
get observers() {
|
|
@@ -624,50 +590,50 @@ function Yt(e, r) {
|
|
|
624
590
|
}
|
|
625
591
|
return t;
|
|
626
592
|
}
|
|
627
|
-
var W = (e) => H(e) && !Object.keys(e).length, at = (e) => e.type === "file", re = (e) => typeof e == "function",
|
|
593
|
+
var W = (e) => H(e) && !Object.keys(e).length, at = (e) => e.type === "file", re = (e) => typeof e == "function", Pe = (e) => {
|
|
628
594
|
if (!tt)
|
|
629
595
|
return !1;
|
|
630
596
|
const r = e ? e.ownerDocument : 0;
|
|
631
597
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
632
|
-
}, er = (e) => e.type === "select-multiple", lt = (e) => e.type === "radio",
|
|
633
|
-
function
|
|
598
|
+
}, er = (e) => e.type === "select-multiple", lt = (e) => e.type === "radio", qr = (e) => lt(e) || Se(e), Ie = (e) => Pe(e) && e.isConnected;
|
|
599
|
+
function Gr(e, r) {
|
|
634
600
|
const t = r.slice(0, -1).length;
|
|
635
601
|
let s = 0;
|
|
636
602
|
for (; s < t; )
|
|
637
|
-
e =
|
|
603
|
+
e = M(e) ? s++ : e[r[s++]];
|
|
638
604
|
return e;
|
|
639
605
|
}
|
|
640
|
-
function
|
|
606
|
+
function Zr(e) {
|
|
641
607
|
for (const r in e)
|
|
642
|
-
if (e.hasOwnProperty(r) && !
|
|
608
|
+
if (e.hasOwnProperty(r) && !M(e[r]))
|
|
643
609
|
return !1;
|
|
644
610
|
return !0;
|
|
645
611
|
}
|
|
646
612
|
function I(e, r) {
|
|
647
|
-
const t = Array.isArray(r) ? r :
|
|
648
|
-
return s && delete s[o], n !== 0 && (H(s) && W(s) || Array.isArray(s) &&
|
|
613
|
+
const t = Array.isArray(r) ? r : Ne(r) ? [r] : st(r), s = t.length === 1 ? e : Gr(e, t), n = t.length - 1, o = t[n];
|
|
614
|
+
return s && delete s[o], n !== 0 && (H(s) && W(s) || Array.isArray(s) && Zr(s)) && I(e, t.slice(0, -1)), e;
|
|
649
615
|
}
|
|
650
|
-
var
|
|
616
|
+
var Qr = (e) => {
|
|
651
617
|
for (const r in e)
|
|
652
618
|
if (re(e[r]))
|
|
653
619
|
return !0;
|
|
654
620
|
return !1;
|
|
655
621
|
};
|
|
656
622
|
function tr(e) {
|
|
657
|
-
return Array.isArray(e) || H(e) && !
|
|
623
|
+
return Array.isArray(e) || H(e) && !Qr(e);
|
|
658
624
|
}
|
|
659
|
-
function
|
|
625
|
+
function Qe(e, r = {}) {
|
|
660
626
|
for (const t in e)
|
|
661
|
-
tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {},
|
|
627
|
+
tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, Qe(e[t], r[t])) : M(e[t]) || (r[t] = !0);
|
|
662
628
|
return r;
|
|
663
629
|
}
|
|
664
|
-
function
|
|
665
|
-
t || (t =
|
|
630
|
+
function me(e, r, t) {
|
|
631
|
+
t || (t = Qe(r));
|
|
666
632
|
for (const s in e)
|
|
667
|
-
tr(e[s]) ?
|
|
633
|
+
tr(e[s]) ? M(r) || Ze(t[s]) ? t[s] = Qe(e[s], Array.isArray(e[s]) ? [] : {}) : me(e[s], Z(r) ? {} : r[s], t[s]) : t[s] = !te(e[s], r[s]);
|
|
668
634
|
return t;
|
|
669
635
|
}
|
|
670
|
-
const
|
|
636
|
+
const xt = {
|
|
671
637
|
value: !1,
|
|
672
638
|
isValid: !1
|
|
673
639
|
}, kt = { value: !0, isValid: !0 };
|
|
@@ -679,11 +645,11 @@ var rr = (e) => {
|
|
|
679
645
|
}
|
|
680
646
|
return e[0].checked && !e[0].disabled ? (
|
|
681
647
|
// @ts-expect-error expected to work in the browser
|
|
682
|
-
e[0].attributes && !
|
|
683
|
-
) :
|
|
648
|
+
e[0].attributes && !M(e[0].attributes.value) ? M(e[0].value) || e[0].value === "" ? kt : { value: e[0].value, isValid: !0 } : kt
|
|
649
|
+
) : xt;
|
|
684
650
|
}
|
|
685
|
-
return
|
|
686
|
-
}, sr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) =>
|
|
651
|
+
return xt;
|
|
652
|
+
}, sr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => M(e) ? e : r ? e === "" ? NaN : e && +e : t && J(e) ? new Date(e) : s ? s(e) : e;
|
|
687
653
|
const Vt = {
|
|
688
654
|
isValid: !1,
|
|
689
655
|
value: null
|
|
@@ -694,9 +660,9 @@ var or = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disab
|
|
|
694
660
|
} : r, Vt) : Vt;
|
|
695
661
|
function Ct(e) {
|
|
696
662
|
const r = e.ref;
|
|
697
|
-
return at(r) ? r.files : lt(r) ? or(e.refs).value : er(r) ? [...r.selectedOptions].map(({ value: t }) => t) :
|
|
663
|
+
return at(r) ? r.files : lt(r) ? or(e.refs).value : er(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Se(r) ? rr(e.refs).value : sr(M(r.value) ? e.ref.value : r.value, e);
|
|
698
664
|
}
|
|
699
|
-
var
|
|
665
|
+
var Kr = (e, r, t, s) => {
|
|
700
666
|
const n = {};
|
|
701
667
|
for (const o of e) {
|
|
702
668
|
const l = p(r, o);
|
|
@@ -708,7 +674,7 @@ var Jr = (e, r, t, s) => {
|
|
|
708
674
|
fields: n,
|
|
709
675
|
shouldUseNativeValidation: s
|
|
710
676
|
};
|
|
711
|
-
},
|
|
677
|
+
}, De = (e) => e instanceof RegExp, _e = (e) => M(e) ? e : De(e) ? e.source : H(e) ? De(e.value) ? e.value.source : e.value : e, Et = (e) => ({
|
|
712
678
|
isOnSubmit: !e || e === ee.onSubmit,
|
|
713
679
|
isOnBlur: e === ee.onBlur,
|
|
714
680
|
isOnChange: e === ee.onChange,
|
|
@@ -716,8 +682,8 @@ var Jr = (e, r, t, s) => {
|
|
|
716
682
|
isOnTouch: e === ee.onTouched
|
|
717
683
|
});
|
|
718
684
|
const zt = "AsyncFunction";
|
|
719
|
-
var
|
|
720
|
-
const
|
|
685
|
+
var Jr = (e) => !!e && !!e.validate && !!(re(e.validate) && e.validate.constructor.name === zt || H(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === zt)), Xr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), $t = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
|
|
686
|
+
const ve = (e, r, t, s) => {
|
|
721
687
|
for (const n of t || Object.keys(e)) {
|
|
722
688
|
const o = p(e, n);
|
|
723
689
|
if (o) {
|
|
@@ -727,16 +693,16 @@ const be = (e, r, t, s) => {
|
|
|
727
693
|
return !0;
|
|
728
694
|
if (l.ref && r(l.ref, l.name) && !s)
|
|
729
695
|
return !0;
|
|
730
|
-
if (
|
|
696
|
+
if (ve(a, r))
|
|
731
697
|
break;
|
|
732
|
-
} else if (H(a) &&
|
|
698
|
+
} else if (H(a) && ve(a, r))
|
|
733
699
|
break;
|
|
734
700
|
}
|
|
735
701
|
}
|
|
736
702
|
};
|
|
737
703
|
function At(e, r, t) {
|
|
738
704
|
const s = p(e, t);
|
|
739
|
-
if (s ||
|
|
705
|
+
if (s || Ne(t))
|
|
740
706
|
return {
|
|
741
707
|
error: s,
|
|
742
708
|
name: t
|
|
@@ -762,12 +728,12 @@ function At(e, r, t) {
|
|
|
762
728
|
name: t
|
|
763
729
|
};
|
|
764
730
|
}
|
|
765
|
-
var
|
|
731
|
+
var Yr = (e, r, t, s) => {
|
|
766
732
|
t(e);
|
|
767
733
|
const { name: n, ...o } = e;
|
|
768
734
|
return W(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((l) => r[l] === (!s || ee.all));
|
|
769
|
-
},
|
|
770
|
-
const s =
|
|
735
|
+
}, es = (e, r, t) => !e || !r || e === r || pe(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), ts = (e, r, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(r || e) : (t ? s.isOnBlur : n.isOnBlur) ? !e : (t ? s.isOnChange : n.isOnChange) ? e : !0, rs = (e, r) => !rt(p(e, r)).length && I(e, r), ss = (e, r, t) => {
|
|
736
|
+
const s = pe(p(e, t));
|
|
771
737
|
return D(s, "root", r[t]), D(e, t, s), e;
|
|
772
738
|
};
|
|
773
739
|
function Pt(e, r, t = "validate") {
|
|
@@ -778,17 +744,17 @@ function Pt(e, r, t = "validate") {
|
|
|
778
744
|
ref: r
|
|
779
745
|
};
|
|
780
746
|
}
|
|
781
|
-
var
|
|
747
|
+
var fe = (e) => H(e) && !De(e) ? e : {
|
|
782
748
|
value: e,
|
|
783
749
|
message: ""
|
|
784
750
|
}, Dt = async (e, r, t, s, n, o) => {
|
|
785
|
-
const { ref: l, refs: a, required: d, maxLength: m, minLength: y, min: h, max: f, pattern: b, validate: C, name: S, valueAsNumber: k, mount: R } = e._f,
|
|
751
|
+
const { ref: l, refs: a, required: d, maxLength: m, minLength: y, min: h, max: f, pattern: b, validate: C, name: S, valueAsNumber: k, mount: R } = e._f, F = p(t, S);
|
|
786
752
|
if (!R || r.has(S))
|
|
787
753
|
return {};
|
|
788
754
|
const $ = a ? a[0] : l, z = (A) => {
|
|
789
755
|
n && $.reportValidity && ($.setCustomValidity(K(A) ? "" : A || ""), $.reportValidity());
|
|
790
|
-
}, E = {}, O = lt(l), X =
|
|
791
|
-
const ne = A ? N :
|
|
756
|
+
}, E = {}, O = lt(l), X = Se(l), ae = O || X, q = (k || at(l)) && M(l.value) && M(F) || Pe(l) && l.value === "" || F === "" || Array.isArray(F) && !F.length, se = it.bind(null, S, s, E), oe = (A, N, T, j = le.maxLength, G = le.minLength) => {
|
|
757
|
+
const ne = A ? N : T;
|
|
792
758
|
E[S] = {
|
|
793
759
|
type: A ? j : G,
|
|
794
760
|
message: ne,
|
|
@@ -796,8 +762,8 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
796
762
|
...se(A ? j : G, ne)
|
|
797
763
|
};
|
|
798
764
|
};
|
|
799
|
-
if (o ? !Array.isArray(
|
|
800
|
-
const { value: A, message: N } = J(d) ? { value: !!d, message: d } :
|
|
765
|
+
if (o ? !Array.isArray(F) || !F.length : d && (!ae && (q || Z(F)) || K(F) && !F || X && !rr(a).isValid || O && !or(a).isValid)) {
|
|
766
|
+
const { value: A, message: N } = J(d) ? { value: !!d, message: d } : fe(d);
|
|
801
767
|
if (A && (E[S] = {
|
|
802
768
|
type: le.required,
|
|
803
769
|
message: N,
|
|
@@ -808,25 +774,25 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
808
774
|
}
|
|
809
775
|
if (!q && (!Z(h) || !Z(f))) {
|
|
810
776
|
let A, N;
|
|
811
|
-
const
|
|
812
|
-
if (!Z(
|
|
813
|
-
const G = l.valueAsNumber ||
|
|
814
|
-
Z(
|
|
777
|
+
const T = fe(f), j = fe(h);
|
|
778
|
+
if (!Z(F) && !isNaN(F)) {
|
|
779
|
+
const G = l.valueAsNumber || F && +F;
|
|
780
|
+
Z(T.value) || (A = G > T.value), Z(j.value) || (N = G < j.value);
|
|
815
781
|
} else {
|
|
816
|
-
const G = l.valueAsDate || new Date(
|
|
817
|
-
J(
|
|
782
|
+
const G = l.valueAsDate || new Date(F), ne = (Fe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Fe), he = l.type == "time", de = l.type == "week";
|
|
783
|
+
J(T.value) && F && (A = he ? ne(F) > ne(T.value) : de ? F > T.value : G > new Date(T.value)), J(j.value) && F && (N = he ? ne(F) < ne(j.value) : de ? F < j.value : G < new Date(j.value));
|
|
818
784
|
}
|
|
819
|
-
if ((A || N) && (oe(!!A,
|
|
785
|
+
if ((A || N) && (oe(!!A, T.message, j.message, le.max, le.min), !s))
|
|
820
786
|
return z(E[S].message), E;
|
|
821
787
|
}
|
|
822
|
-
if ((m || y) && !q && (J(
|
|
823
|
-
const A =
|
|
824
|
-
if ((
|
|
788
|
+
if ((m || y) && !q && (J(F) || o && Array.isArray(F))) {
|
|
789
|
+
const A = fe(m), N = fe(y), T = !Z(A.value) && F.length > +A.value, j = !Z(N.value) && F.length < +N.value;
|
|
790
|
+
if ((T || j) && (oe(T, A.message, N.message), !s))
|
|
825
791
|
return z(E[S].message), E;
|
|
826
792
|
}
|
|
827
|
-
if (b && !q && J(
|
|
828
|
-
const { value: A, message: N } =
|
|
829
|
-
if (
|
|
793
|
+
if (b && !q && J(F)) {
|
|
794
|
+
const { value: A, message: N } = fe(b);
|
|
795
|
+
if (De(A) && !F.match(A) && (E[S] = {
|
|
830
796
|
type: le.pattern,
|
|
831
797
|
message: N,
|
|
832
798
|
ref: l,
|
|
@@ -836,7 +802,7 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
836
802
|
}
|
|
837
803
|
if (C) {
|
|
838
804
|
if (re(C)) {
|
|
839
|
-
const A = await C(
|
|
805
|
+
const A = await C(F, t), N = Pt(A, $);
|
|
840
806
|
if (N && (E[S] = {
|
|
841
807
|
...N,
|
|
842
808
|
...se(le.validate, N.message)
|
|
@@ -847,11 +813,11 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
847
813
|
for (const N in C) {
|
|
848
814
|
if (!W(A) && !s)
|
|
849
815
|
break;
|
|
850
|
-
const
|
|
851
|
-
|
|
852
|
-
...
|
|
853
|
-
...se(N,
|
|
854
|
-
}, z(
|
|
816
|
+
const T = Pt(await C[N](F, t), $, N);
|
|
817
|
+
T && (A = {
|
|
818
|
+
...T,
|
|
819
|
+
...se(N, T.message)
|
|
820
|
+
}, z(T.message), s && (E[S] = A));
|
|
855
821
|
}
|
|
856
822
|
if (!W(A) && (E[S] = {
|
|
857
823
|
ref: $,
|
|
@@ -862,14 +828,14 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
862
828
|
}
|
|
863
829
|
return z(!0), E;
|
|
864
830
|
};
|
|
865
|
-
const
|
|
831
|
+
const os = {
|
|
866
832
|
mode: ee.onSubmit,
|
|
867
833
|
reValidateMode: ee.onChange,
|
|
868
834
|
shouldFocusError: !0
|
|
869
835
|
};
|
|
870
|
-
function
|
|
836
|
+
function ns(e = {}) {
|
|
871
837
|
let r = {
|
|
872
|
-
...
|
|
838
|
+
...os,
|
|
873
839
|
...e
|
|
874
840
|
}, t = {
|
|
875
841
|
submitCount: 0,
|
|
@@ -910,8 +876,8 @@ function is(e = {}) {
|
|
|
910
876
|
...y
|
|
911
877
|
};
|
|
912
878
|
const f = {
|
|
913
|
-
array:
|
|
914
|
-
state:
|
|
879
|
+
array: Ft(),
|
|
880
|
+
state: Ft()
|
|
915
881
|
}, b = r.criteriaMode === ee.all, C = (i) => (c) => {
|
|
916
882
|
clearTimeout(m), m = setTimeout(i, c);
|
|
917
883
|
}, S = async (i) => {
|
|
@@ -931,18 +897,18 @@ function is(e = {}) {
|
|
|
931
897
|
}, R = (i, c = [], u, v, g = !0, _ = !0) => {
|
|
932
898
|
if (v && u && !r.disabled) {
|
|
933
899
|
if (l.action = !0, _ && Array.isArray(p(s, i))) {
|
|
934
|
-
const
|
|
935
|
-
g && D(s, i,
|
|
900
|
+
const x = u(p(s, i), v.argA, v.argB);
|
|
901
|
+
g && D(s, i, x);
|
|
936
902
|
}
|
|
937
903
|
if (_ && Array.isArray(p(t.errors, i))) {
|
|
938
|
-
const
|
|
939
|
-
g && D(t.errors, i,
|
|
904
|
+
const x = u(p(t.errors, i), v.argA, v.argB);
|
|
905
|
+
g && D(t.errors, i, x), rs(t.errors, i);
|
|
940
906
|
}
|
|
941
907
|
if ((y.touchedFields || h.touchedFields) && _ && Array.isArray(p(t.touchedFields, i))) {
|
|
942
|
-
const
|
|
943
|
-
g && D(t.touchedFields, i,
|
|
908
|
+
const x = u(p(t.touchedFields, i), v.argA, v.argB);
|
|
909
|
+
g && D(t.touchedFields, i, x);
|
|
944
910
|
}
|
|
945
|
-
(y.dirtyFields || h.dirtyFields) && (t.dirtyFields =
|
|
911
|
+
(y.dirtyFields || h.dirtyFields) && (t.dirtyFields = me(n, o)), f.state.next({
|
|
946
912
|
name: i,
|
|
947
913
|
isDirty: oe(i, c),
|
|
948
914
|
dirtyFields: t.dirtyFields,
|
|
@@ -951,7 +917,7 @@ function is(e = {}) {
|
|
|
951
917
|
});
|
|
952
918
|
} else
|
|
953
919
|
D(o, i, c);
|
|
954
|
-
},
|
|
920
|
+
}, F = (i, c) => {
|
|
955
921
|
D(t.errors, i, c), f.state.next({
|
|
956
922
|
errors: t.errors
|
|
957
923
|
});
|
|
@@ -963,19 +929,19 @@ function is(e = {}) {
|
|
|
963
929
|
}, z = (i, c, u, v) => {
|
|
964
930
|
const g = p(s, i);
|
|
965
931
|
if (g) {
|
|
966
|
-
const _ = p(o, i,
|
|
967
|
-
|
|
932
|
+
const _ = p(o, i, M(u) ? p(n, i) : u);
|
|
933
|
+
M(_) || v && v.defaultChecked || c ? D(o, i, c ? _ : Ct(g._f)) : T(i, _), l.mount && S();
|
|
968
934
|
}
|
|
969
935
|
}, E = (i, c, u, v, g) => {
|
|
970
|
-
let _ = !1,
|
|
936
|
+
let _ = !1, x = !1;
|
|
971
937
|
const P = {
|
|
972
938
|
name: i
|
|
973
939
|
};
|
|
974
940
|
if (!r.disabled) {
|
|
975
941
|
if (!u || v) {
|
|
976
|
-
(y.isDirty || h.isDirty) && (
|
|
942
|
+
(y.isDirty || h.isDirty) && (x = t.isDirty, t.isDirty = P.isDirty = oe(), _ = x !== P.isDirty);
|
|
977
943
|
const B = te(p(n, i), c);
|
|
978
|
-
|
|
944
|
+
x = !!p(t.dirtyFields, i), B ? I(t.dirtyFields, i) : D(t.dirtyFields, i, !0), P.dirtyFields = t.dirtyFields, _ = _ || (y.dirtyFields || h.dirtyFields) && x !== !B;
|
|
979
945
|
}
|
|
980
946
|
if (u) {
|
|
981
947
|
const B = p(t.touchedFields, i);
|
|
@@ -986,8 +952,8 @@ function is(e = {}) {
|
|
|
986
952
|
return _ ? P : {};
|
|
987
953
|
}, O = (i, c, u, v) => {
|
|
988
954
|
const g = p(t.errors, i), _ = (y.isValid || h.isValid) && K(c) && t.isValid !== c;
|
|
989
|
-
if (r.delayError && u ? (d = C(() =>
|
|
990
|
-
const
|
|
955
|
+
if (r.delayError && u ? (d = C(() => F(i, u)), d(r.delayError)) : (clearTimeout(m), d = null, u ? D(t.errors, i, u) : I(t.errors, i)), (u ? !te(g, u) : g) || !W(v) || _) {
|
|
956
|
+
const x = {
|
|
991
957
|
...v,
|
|
992
958
|
..._ && K(c) ? { isValid: c } : {},
|
|
993
959
|
errors: t.errors,
|
|
@@ -995,12 +961,12 @@ function is(e = {}) {
|
|
|
995
961
|
};
|
|
996
962
|
t = {
|
|
997
963
|
...t,
|
|
998
|
-
...
|
|
999
|
-
}, f.state.next(
|
|
964
|
+
...x
|
|
965
|
+
}, f.state.next(x);
|
|
1000
966
|
}
|
|
1001
967
|
}, X = async (i) => {
|
|
1002
968
|
k(i, !0);
|
|
1003
|
-
const c = await r.resolver(o, r.context,
|
|
969
|
+
const c = await r.resolver(o, r.context, Kr(i || a.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
|
|
1004
970
|
return k(i), c;
|
|
1005
971
|
}, ae = async (i) => {
|
|
1006
972
|
const { errors: c } = await X(i);
|
|
@@ -1018,46 +984,46 @@ function is(e = {}) {
|
|
|
1018
984
|
for (const v in i) {
|
|
1019
985
|
const g = i[v];
|
|
1020
986
|
if (g) {
|
|
1021
|
-
const { _f: _, ...
|
|
987
|
+
const { _f: _, ...x } = g;
|
|
1022
988
|
if (_) {
|
|
1023
|
-
const P = a.array.has(_.name), B = g._f &&
|
|
989
|
+
const P = a.array.has(_.name), B = g._f && Jr(g._f);
|
|
1024
990
|
B && y.validatingFields && k([_.name], !0);
|
|
1025
991
|
const Y = await Dt(g, a.disabled, o, b, r.shouldUseNativeValidation && !c, P);
|
|
1026
992
|
if (B && y.validatingFields && k([_.name]), Y[_.name] && (u.valid = !1, c))
|
|
1027
993
|
break;
|
|
1028
|
-
!c && (p(Y, _.name) ? P ?
|
|
994
|
+
!c && (p(Y, _.name) ? P ? ss(t.errors, Y, _.name) : D(t.errors, _.name, Y[_.name]) : I(t.errors, _.name));
|
|
1029
995
|
}
|
|
1030
|
-
!W(
|
|
996
|
+
!W(x) && await q(x, c, u);
|
|
1031
997
|
}
|
|
1032
998
|
}
|
|
1033
999
|
return u.valid;
|
|
1034
1000
|
}, se = () => {
|
|
1035
1001
|
for (const i of a.unMount) {
|
|
1036
1002
|
const c = p(s, i);
|
|
1037
|
-
c && (c._f.refs ? c._f.refs.every((u) => !
|
|
1003
|
+
c && (c._f.refs ? c._f.refs.every((u) => !Ie(u)) : !Ie(c._f.ref)) && Re(i);
|
|
1038
1004
|
}
|
|
1039
1005
|
a.unMount = /* @__PURE__ */ new Set();
|
|
1040
|
-
}, oe = (i, c) => !r.disabled && (i && c && D(o, i, c), !te(Fe(), n)), A = (i, c, u) =>
|
|
1041
|
-
...l.mount ? o :
|
|
1042
|
-
}, u, c), N = (i) => rt(p(l.mount ? o : n, i, r.shouldUnregister ? p(n, i, []) : [])),
|
|
1006
|
+
}, oe = (i, c) => !r.disabled && (i && c && D(o, i, c), !te(Fe(), n)), A = (i, c, u) => Ge(i, a, {
|
|
1007
|
+
...l.mount ? o : M(c) ? n : J(i) ? { [i]: c } : c
|
|
1008
|
+
}, u, c), N = (i) => rt(p(l.mount ? o : n, i, r.shouldUnregister ? p(n, i, []) : [])), T = (i, c, u = {}) => {
|
|
1043
1009
|
const v = p(s, i);
|
|
1044
1010
|
let g = c;
|
|
1045
1011
|
if (v) {
|
|
1046
1012
|
const _ = v._f;
|
|
1047
|
-
_ && (!_.disabled && D(o, i, sr(c, _)), g =
|
|
1048
|
-
(!
|
|
1049
|
-
}) : _.refs.forEach((
|
|
1013
|
+
_ && (!_.disabled && D(o, i, sr(c, _)), g = Pe(_.ref) && Z(c) ? "" : c, er(_.ref) ? [..._.ref.options].forEach((x) => x.selected = g.includes(x.value)) : _.refs ? Se(_.ref) ? _.refs.forEach((x) => {
|
|
1014
|
+
(!x.defaultChecked || !x.disabled) && (Array.isArray(g) ? x.checked = !!g.find((P) => P === x.value) : x.checked = g === x.value || !!g);
|
|
1015
|
+
}) : _.refs.forEach((x) => x.checked = x.value === g) : at(_.ref) ? _.ref.value = "" : (_.ref.value = g, _.ref.type || f.state.next({
|
|
1050
1016
|
name: i,
|
|
1051
1017
|
values: U(o)
|
|
1052
1018
|
})));
|
|
1053
1019
|
}
|
|
1054
|
-
(u.shouldDirty || u.shouldTouch) && E(i, g, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate &&
|
|
1020
|
+
(u.shouldDirty || u.shouldTouch) && E(i, g, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && de(i);
|
|
1055
1021
|
}, j = (i, c, u) => {
|
|
1056
1022
|
for (const v in c) {
|
|
1057
1023
|
if (!c.hasOwnProperty(v))
|
|
1058
1024
|
return;
|
|
1059
|
-
const g = c[v], _ = i + "." + v,
|
|
1060
|
-
(a.array.has(i) || H(g) ||
|
|
1025
|
+
const g = c[v], _ = i + "." + v, x = p(s, _);
|
|
1026
|
+
(a.array.has(i) || H(g) || x && !x._f) && !ue(g) ? j(_, g, u) : T(_, g, u);
|
|
1061
1027
|
}
|
|
1062
1028
|
}, G = (i, c, u = {}) => {
|
|
1063
1029
|
const v = p(s, i), g = a.array.has(i), _ = U(c);
|
|
@@ -1066,9 +1032,9 @@ function is(e = {}) {
|
|
|
1066
1032
|
values: U(o)
|
|
1067
1033
|
}), (y.isDirty || y.dirtyFields || h.isDirty || h.dirtyFields) && u.shouldDirty && f.state.next({
|
|
1068
1034
|
name: i,
|
|
1069
|
-
dirtyFields:
|
|
1035
|
+
dirtyFields: me(n, o),
|
|
1070
1036
|
isDirty: oe(i, _)
|
|
1071
|
-
})) : v && !v._f && !Z(_) ? j(i, _, u) :
|
|
1037
|
+
})) : v && !v._f && !Z(_) ? j(i, _, u) : T(i, _, u), $t(i, a) && f.state.next({ ...t, name: i }), f.state.next({
|
|
1072
1038
|
name: l.mount ? i : void 0,
|
|
1073
1039
|
values: U(o)
|
|
1074
1040
|
});
|
|
@@ -1077,52 +1043,52 @@ function is(e = {}) {
|
|
|
1077
1043
|
const c = i.target;
|
|
1078
1044
|
let u = c.name, v = !0;
|
|
1079
1045
|
const g = p(s, u), _ = (B) => {
|
|
1080
|
-
v = Number.isNaN(B) ||
|
|
1081
|
-
},
|
|
1046
|
+
v = Number.isNaN(B) || ue(B) && isNaN(B.getTime()) || te(B, p(o, u, B));
|
|
1047
|
+
}, x = Et(r.mode), P = Et(r.reValidateMode);
|
|
1082
1048
|
if (g) {
|
|
1083
1049
|
let B, Y;
|
|
1084
|
-
const
|
|
1085
|
-
D(o, u,
|
|
1086
|
-
const Me = E(u,
|
|
1087
|
-
if (!
|
|
1050
|
+
const xe = c.type ? Ct(g._f) : Qt(i), ce = i.type === Ae.BLUR || i.type === Ae.FOCUS_OUT, br = !Xr(g._f) && !r.resolver && !p(t.errors, u) && !g._f.deps || ts(ce, p(t.touchedFields, u), t.isSubmitted, P, x), Le = $t(u, a, ce);
|
|
1051
|
+
D(o, u, xe), ce ? (!c || !c.readOnly) && (g._f.onBlur && g._f.onBlur(i), d && d(0)) : g._f.onChange && g._f.onChange(i);
|
|
1052
|
+
const Me = E(u, xe, ce), Sr = !W(Me) || Le;
|
|
1053
|
+
if (!ce && f.state.next({
|
|
1088
1054
|
name: u,
|
|
1089
1055
|
type: i.type,
|
|
1090
1056
|
values: U(o)
|
|
1091
1057
|
}), br)
|
|
1092
|
-
return (y.isValid || h.isValid) && (r.mode === "onBlur" ?
|
|
1093
|
-
if (!
|
|
1058
|
+
return (y.isValid || h.isValid) && (r.mode === "onBlur" ? ce && S() : ce || S()), Sr && f.state.next({ name: u, ...Le ? {} : Me });
|
|
1059
|
+
if (!ce && Le && f.state.next({ ...t }), r.resolver) {
|
|
1094
1060
|
const { errors: gt } = await X([u]);
|
|
1095
|
-
if (_(
|
|
1061
|
+
if (_(xe), v) {
|
|
1096
1062
|
const wr = At(t.errors, s, u), pt = At(gt, s, wr.name || u);
|
|
1097
1063
|
B = pt.error, u = pt.name, Y = W(gt);
|
|
1098
1064
|
}
|
|
1099
1065
|
} else
|
|
1100
|
-
k([u], !0), B = (await Dt(g, a.disabled, o, b, r.shouldUseNativeValidation))[u], k([u]), _(
|
|
1101
|
-
v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) &&
|
|
1066
|
+
k([u], !0), B = (await Dt(g, a.disabled, o, b, r.shouldUseNativeValidation))[u], k([u]), _(xe), v && (B ? Y = !1 : (y.isValid || h.isValid) && (Y = await q(s, !0)));
|
|
1067
|
+
v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) && de(g._f.deps), O(u, Y, B, Me));
|
|
1102
1068
|
}
|
|
1103
|
-
},
|
|
1069
|
+
}, he = (i, c) => {
|
|
1104
1070
|
if (p(t.errors, c) && i.focus)
|
|
1105
1071
|
return i.focus(), 1;
|
|
1106
|
-
},
|
|
1072
|
+
}, de = async (i, c = {}) => {
|
|
1107
1073
|
let u, v;
|
|
1108
|
-
const g =
|
|
1074
|
+
const g = pe(i);
|
|
1109
1075
|
if (r.resolver) {
|
|
1110
|
-
const _ = await ae(
|
|
1111
|
-
u = W(_), v = i ? !g.some((
|
|
1076
|
+
const _ = await ae(M(i) ? i : g);
|
|
1077
|
+
u = W(_), v = i ? !g.some((x) => p(_, x)) : u;
|
|
1112
1078
|
} else i ? (v = (await Promise.all(g.map(async (_) => {
|
|
1113
|
-
const
|
|
1114
|
-
return await q(
|
|
1079
|
+
const x = p(s, _);
|
|
1080
|
+
return await q(x && x._f ? { [_]: x } : x);
|
|
1115
1081
|
}))).every(Boolean), !(!v && !t.isValid) && S()) : v = u = await q(s);
|
|
1116
1082
|
return f.state.next({
|
|
1117
1083
|
...!J(i) || (y.isValid || h.isValid) && u !== t.isValid ? {} : { name: i },
|
|
1118
1084
|
...r.resolver || !i ? { isValid: u } : {},
|
|
1119
1085
|
errors: t.errors
|
|
1120
|
-
}), c.shouldFocus && !v &&
|
|
1086
|
+
}), c.shouldFocus && !v && ve(s, he, i ? g : a.mount), v;
|
|
1121
1087
|
}, Fe = (i, c) => {
|
|
1122
1088
|
let u = {
|
|
1123
1089
|
...l.mount ? o : n
|
|
1124
1090
|
};
|
|
1125
|
-
return c && (u = Yt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)),
|
|
1091
|
+
return c && (u = Yt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), M(i) ? u : J(i) ? p(u, i) : i.map((v) => p(u, v));
|
|
1126
1092
|
}, ct = (i, c) => ({
|
|
1127
1093
|
invalid: !!p((c || t).errors, i),
|
|
1128
1094
|
isDirty: !!p((c || t).dirtyFields, i),
|
|
@@ -1130,11 +1096,11 @@ function is(e = {}) {
|
|
|
1130
1096
|
isValidating: !!p(t.validatingFields, i),
|
|
1131
1097
|
isTouched: !!p((c || t).touchedFields, i)
|
|
1132
1098
|
}), yr = (i) => {
|
|
1133
|
-
i &&
|
|
1099
|
+
i && pe(i).forEach((c) => I(t.errors, c)), f.state.next({
|
|
1134
1100
|
errors: i ? t.errors : {}
|
|
1135
1101
|
});
|
|
1136
1102
|
}, ut = (i, c, u) => {
|
|
1137
|
-
const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: _, message:
|
|
1103
|
+
const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: _, message: x, type: P, ...B } = g;
|
|
1138
1104
|
D(t.errors, i, {
|
|
1139
1105
|
...B,
|
|
1140
1106
|
...c,
|
|
@@ -1148,7 +1114,7 @@ function is(e = {}) {
|
|
|
1148
1114
|
next: (u) => "values" in u && i(A(void 0, c), u)
|
|
1149
1115
|
}) : A(i, c, !0), dt = (i) => f.state.subscribe({
|
|
1150
1116
|
next: (c) => {
|
|
1151
|
-
|
|
1117
|
+
es(i.name, c.name, i.exact) && Yr(c, i.formState || y, vr, i.reRenderRoot) && i.callback({
|
|
1152
1118
|
values: { ...o },
|
|
1153
1119
|
...t,
|
|
1154
1120
|
...c,
|
|
@@ -1161,8 +1127,8 @@ function is(e = {}) {
|
|
|
1161
1127
|
}, dt({
|
|
1162
1128
|
...i,
|
|
1163
1129
|
formState: h
|
|
1164
|
-
})),
|
|
1165
|
-
for (const u of i ?
|
|
1130
|
+
})), Re = (i, c = {}) => {
|
|
1131
|
+
for (const u of i ? pe(i) : a.mount)
|
|
1166
1132
|
a.mount.delete(u), a.array.delete(u), c.keepValue || (I(s, u), I(o, u)), !c.keepError && I(t.errors, u), !c.keepDirty && I(t.dirtyFields, u), !c.keepTouched && I(t.touchedFields, u), !c.keepIsValidating && I(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && I(n, u);
|
|
1167
1133
|
f.state.next({
|
|
1168
1134
|
values: U(o)
|
|
@@ -1172,7 +1138,7 @@ function is(e = {}) {
|
|
|
1172
1138
|
}), !c.keepIsValid && S();
|
|
1173
1139
|
}, ft = ({ disabled: i, name: c }) => {
|
|
1174
1140
|
(K(i) && l.mount || i || a.disabled.has(c)) && (i ? a.disabled.add(c) : a.disabled.delete(c));
|
|
1175
|
-
},
|
|
1141
|
+
}, Be = (i, c = {}) => {
|
|
1176
1142
|
let u = p(s, i);
|
|
1177
1143
|
const v = K(c.disabled) || K(r.disabled);
|
|
1178
1144
|
return D(s, i, {
|
|
@@ -1190,27 +1156,27 @@ function is(e = {}) {
|
|
|
1190
1156
|
...v ? { disabled: c.disabled || r.disabled } : {},
|
|
1191
1157
|
...r.progressive ? {
|
|
1192
1158
|
required: !!c.required,
|
|
1193
|
-
min:
|
|
1194
|
-
max:
|
|
1195
|
-
minLength:
|
|
1196
|
-
maxLength:
|
|
1197
|
-
pattern:
|
|
1159
|
+
min: _e(c.min),
|
|
1160
|
+
max: _e(c.max),
|
|
1161
|
+
minLength: _e(c.minLength),
|
|
1162
|
+
maxLength: _e(c.maxLength),
|
|
1163
|
+
pattern: _e(c.pattern)
|
|
1198
1164
|
} : {},
|
|
1199
1165
|
name: i,
|
|
1200
1166
|
onChange: ne,
|
|
1201
1167
|
onBlur: ne,
|
|
1202
1168
|
ref: (g) => {
|
|
1203
1169
|
if (g) {
|
|
1204
|
-
|
|
1205
|
-
const _ =
|
|
1206
|
-
if (
|
|
1170
|
+
Be(i, c), u = p(s, i);
|
|
1171
|
+
const _ = M(g.value) && g.querySelectorAll && g.querySelectorAll("input,select,textarea")[0] || g, x = qr(_), P = u._f.refs || [];
|
|
1172
|
+
if (x ? P.find((B) => B === _) : _ === u._f.ref)
|
|
1207
1173
|
return;
|
|
1208
1174
|
D(s, i, {
|
|
1209
1175
|
_f: {
|
|
1210
1176
|
...u._f,
|
|
1211
|
-
...
|
|
1177
|
+
...x ? {
|
|
1212
1178
|
refs: [
|
|
1213
|
-
...P.filter(
|
|
1179
|
+
...P.filter(Ie),
|
|
1214
1180
|
_,
|
|
1215
1181
|
...Array.isArray(p(n, i)) ? [{}] : []
|
|
1216
1182
|
],
|
|
@@ -1222,8 +1188,8 @@ function is(e = {}) {
|
|
|
1222
1188
|
u = p(s, i, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Kt(a.array, i) && l.action) && a.unMount.add(i);
|
|
1223
1189
|
}
|
|
1224
1190
|
};
|
|
1225
|
-
},
|
|
1226
|
-
K(i) && (f.state.next({ disabled: i }),
|
|
1191
|
+
}, Oe = () => r.shouldFocusError && ve(s, he, a.mount), _r = (i) => {
|
|
1192
|
+
K(i) && (f.state.next({ disabled: i }), ve(s, (c, u) => {
|
|
1227
1193
|
const v = p(s, u);
|
|
1228
1194
|
v && (c.disabled = v._f.disabled || i, Array.isArray(v._f.refs) && v._f.refs.forEach((g) => {
|
|
1229
1195
|
g.disabled = v._f.disabled || i;
|
|
@@ -1236,8 +1202,8 @@ function is(e = {}) {
|
|
|
1236
1202
|
if (f.state.next({
|
|
1237
1203
|
isSubmitting: !0
|
|
1238
1204
|
}), r.resolver) {
|
|
1239
|
-
const { errors: _, values:
|
|
1240
|
-
t.errors = _, g = U(
|
|
1205
|
+
const { errors: _, values: x } = await X();
|
|
1206
|
+
t.errors = _, g = U(x);
|
|
1241
1207
|
} else
|
|
1242
1208
|
await q(s);
|
|
1243
1209
|
if (a.disabled.size)
|
|
@@ -1253,7 +1219,7 @@ function is(e = {}) {
|
|
|
1253
1219
|
v = _;
|
|
1254
1220
|
}
|
|
1255
1221
|
} else
|
|
1256
|
-
c && await c({ ...t.errors }, u),
|
|
1222
|
+
c && await c({ ...t.errors }, u), Oe(), setTimeout(Oe);
|
|
1257
1223
|
if (f.state.next({
|
|
1258
1224
|
isSubmitted: !0,
|
|
1259
1225
|
isSubmitting: !1,
|
|
@@ -1263,24 +1229,24 @@ function is(e = {}) {
|
|
|
1263
1229
|
}), v)
|
|
1264
1230
|
throw v;
|
|
1265
1231
|
}, gr = (i, c = {}) => {
|
|
1266
|
-
p(s, i) && (
|
|
1232
|
+
p(s, i) && (M(c.defaultValue) ? G(i, U(p(n, i))) : (G(i, c.defaultValue), D(n, i, U(c.defaultValue))), c.keepTouched || I(t.touchedFields, i), c.keepDirty || (I(t.dirtyFields, i), t.isDirty = c.defaultValue ? oe(i, U(p(n, i))) : oe()), c.keepError || (I(t.errors, i), y.isValid && S()), f.state.next({ ...t }));
|
|
1267
1233
|
}, mt = (i, c = {}) => {
|
|
1268
1234
|
const u = i ? U(i) : n, v = U(u), g = W(i), _ = g ? n : v;
|
|
1269
1235
|
if (c.keepDefaultValues || (n = u), !c.keepValues) {
|
|
1270
1236
|
if (c.keepDirtyValues) {
|
|
1271
|
-
const
|
|
1237
|
+
const x = /* @__PURE__ */ new Set([
|
|
1272
1238
|
...a.mount,
|
|
1273
|
-
...Object.keys(
|
|
1239
|
+
...Object.keys(me(n, o))
|
|
1274
1240
|
]);
|
|
1275
|
-
for (const P of Array.from(
|
|
1241
|
+
for (const P of Array.from(x))
|
|
1276
1242
|
p(t.dirtyFields, P) ? D(_, P, p(o, P)) : G(P, p(_, P));
|
|
1277
1243
|
} else {
|
|
1278
|
-
if (tt &&
|
|
1279
|
-
for (const
|
|
1280
|
-
const P = p(s,
|
|
1244
|
+
if (tt && M(i))
|
|
1245
|
+
for (const x of a.mount) {
|
|
1246
|
+
const P = p(s, x);
|
|
1281
1247
|
if (P && P._f) {
|
|
1282
1248
|
const B = Array.isArray(P._f.refs) ? P._f.refs[0] : P._f.ref;
|
|
1283
|
-
if (
|
|
1249
|
+
if (Pe(B)) {
|
|
1284
1250
|
const Y = B.closest("form");
|
|
1285
1251
|
if (Y) {
|
|
1286
1252
|
Y.reset();
|
|
@@ -1290,8 +1256,8 @@ function is(e = {}) {
|
|
|
1290
1256
|
}
|
|
1291
1257
|
}
|
|
1292
1258
|
if (c.keepFieldsRef)
|
|
1293
|
-
for (const
|
|
1294
|
-
G(
|
|
1259
|
+
for (const x of a.mount)
|
|
1260
|
+
G(x, p(_, x));
|
|
1295
1261
|
else
|
|
1296
1262
|
s = {};
|
|
1297
1263
|
}
|
|
@@ -1313,7 +1279,7 @@ function is(e = {}) {
|
|
|
1313
1279
|
submitCount: c.keepSubmitCount ? t.submitCount : 0,
|
|
1314
1280
|
isDirty: g ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !te(i, n)),
|
|
1315
1281
|
isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1316
|
-
dirtyFields: g ? {} : c.keepDirtyValues ? c.keepDefaultValues && o ?
|
|
1282
|
+
dirtyFields: g ? {} : c.keepDirtyValues ? c.keepDefaultValues && o ? me(n, o) : t.dirtyFields : c.keepDefaultValues && i ? me(n, i) : c.keepDirty ? t.dirtyFields : {},
|
|
1317
1283
|
touchedFields: c.keepTouched ? t.touchedFields : {},
|
|
1318
1284
|
errors: c.keepErrors ? t.errors : {},
|
|
1319
1285
|
isSubmitSuccessful: c.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
@@ -1333,14 +1299,14 @@ function is(e = {}) {
|
|
|
1333
1299
|
};
|
|
1334
1300
|
}, _t = {
|
|
1335
1301
|
control: {
|
|
1336
|
-
register:
|
|
1337
|
-
unregister:
|
|
1302
|
+
register: Be,
|
|
1303
|
+
unregister: Re,
|
|
1338
1304
|
getFieldState: ct,
|
|
1339
1305
|
handleSubmit: yt,
|
|
1340
1306
|
setError: ut,
|
|
1341
1307
|
_subscribe: dt,
|
|
1342
1308
|
_runSchema: X,
|
|
1343
|
-
_focusError:
|
|
1309
|
+
_focusError: Oe,
|
|
1344
1310
|
_getWatch: A,
|
|
1345
1311
|
_getDirty: oe,
|
|
1346
1312
|
_setValid: S,
|
|
@@ -1393,8 +1359,8 @@ function is(e = {}) {
|
|
|
1393
1359
|
}
|
|
1394
1360
|
},
|
|
1395
1361
|
subscribe: hr,
|
|
1396
|
-
trigger:
|
|
1397
|
-
register:
|
|
1362
|
+
trigger: de,
|
|
1363
|
+
register: Be,
|
|
1398
1364
|
handleSubmit: yt,
|
|
1399
1365
|
watch: mr,
|
|
1400
1366
|
setValue: G,
|
|
@@ -1402,7 +1368,7 @@ function is(e = {}) {
|
|
|
1402
1368
|
reset: ht,
|
|
1403
1369
|
resetField: gr,
|
|
1404
1370
|
clearErrors: yr,
|
|
1405
|
-
unregister:
|
|
1371
|
+
unregister: Re,
|
|
1406
1372
|
setError: ut,
|
|
1407
1373
|
setFocus: pr,
|
|
1408
1374
|
getFieldState: ct
|
|
@@ -1412,7 +1378,7 @@ function is(e = {}) {
|
|
|
1412
1378
|
formControl: _t
|
|
1413
1379
|
};
|
|
1414
1380
|
}
|
|
1415
|
-
function
|
|
1381
|
+
function is(e = {}) {
|
|
1416
1382
|
const r = V.useRef(void 0), t = V.useRef(void 0), [s, n] = V.useState({
|
|
1417
1383
|
isDirty: !1,
|
|
1418
1384
|
isValidating: !1,
|
|
@@ -1437,7 +1403,7 @@ function as(e = {}) {
|
|
|
1437
1403
|
formState: s
|
|
1438
1404
|
}, e.defaultValues && !re(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1439
1405
|
else {
|
|
1440
|
-
const { formControl: l, ...a } =
|
|
1406
|
+
const { formControl: l, ...a } = ns(e);
|
|
1441
1407
|
r.current = {
|
|
1442
1408
|
...a,
|
|
1443
1409
|
formState: s
|
|
@@ -1483,23 +1449,23 @@ const Nt = (e, r, t) => {
|
|
|
1483
1449
|
const s = p(t, r);
|
|
1484
1450
|
e.setCustomValidity(s && s.message || ""), e.reportValidity();
|
|
1485
1451
|
}
|
|
1486
|
-
},
|
|
1452
|
+
}, Ke = (e, r) => {
|
|
1487
1453
|
for (const t in r.fields) {
|
|
1488
1454
|
const s = r.fields[t];
|
|
1489
1455
|
s && s.ref && "reportValidity" in s.ref ? Nt(s.ref, t, e) : s && s.refs && s.refs.forEach((n) => Nt(n, t, e));
|
|
1490
1456
|
}
|
|
1491
1457
|
}, Rt = (e, r) => {
|
|
1492
|
-
r.shouldUseNativeValidation &&
|
|
1458
|
+
r.shouldUseNativeValidation && Ke(e, r);
|
|
1493
1459
|
const t = {};
|
|
1494
1460
|
for (const s in e) {
|
|
1495
1461
|
const n = p(r.fields, s), o = Object.assign(e[s] || {}, { ref: n && n.ref });
|
|
1496
|
-
if (
|
|
1462
|
+
if (as(r.names || Object.keys(e), s)) {
|
|
1497
1463
|
const l = Object.assign({}, p(t, s));
|
|
1498
1464
|
D(l, "root", o), D(t, s, l);
|
|
1499
1465
|
} else D(t, s, o);
|
|
1500
1466
|
}
|
|
1501
1467
|
return t;
|
|
1502
|
-
},
|
|
1468
|
+
}, as = (e, r) => {
|
|
1503
1469
|
const t = Bt(r);
|
|
1504
1470
|
return e.some((s) => Bt(s).match(`^${t}\\.\\d+`));
|
|
1505
1471
|
};
|
|
@@ -1536,28 +1502,28 @@ function nr(e, r, t) {
|
|
|
1536
1502
|
}
|
|
1537
1503
|
}), Object.defineProperty(l, "name", { value: e }), l;
|
|
1538
1504
|
}
|
|
1539
|
-
class
|
|
1505
|
+
class ls extends Error {
|
|
1540
1506
|
constructor() {
|
|
1541
1507
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
1542
1508
|
}
|
|
1543
1509
|
}
|
|
1544
|
-
const
|
|
1510
|
+
const cs = {};
|
|
1545
1511
|
function ir(e) {
|
|
1546
|
-
return
|
|
1512
|
+
return cs;
|
|
1547
1513
|
}
|
|
1548
|
-
function
|
|
1514
|
+
function us(e, r) {
|
|
1549
1515
|
return typeof r == "bigint" ? r.toString() : r;
|
|
1550
1516
|
}
|
|
1551
1517
|
const ar = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
1552
1518
|
};
|
|
1553
|
-
function
|
|
1519
|
+
function Ce(e) {
|
|
1554
1520
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1555
1521
|
}
|
|
1556
1522
|
function lr(e, r, t) {
|
|
1557
1523
|
var n, o, l, a, d, m;
|
|
1558
1524
|
const s = { ...e, path: e.path ?? [] };
|
|
1559
1525
|
if (!e.message) {
|
|
1560
|
-
const y =
|
|
1526
|
+
const y = Ce((l = (o = (n = e.inst) == null ? void 0 : n._zod.def) == null ? void 0 : o.error) == null ? void 0 : l.call(o, e)) ?? Ce((a = r == null ? void 0 : r.error) == null ? void 0 : a.call(r, e)) ?? Ce((d = t.customError) == null ? void 0 : d.call(t, e)) ?? Ce((m = t.localeError) == null ? void 0 : m.call(t, e)) ?? "Invalid input";
|
|
1561
1527
|
s.message = y;
|
|
1562
1528
|
}
|
|
1563
1529
|
return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
|
|
@@ -1569,20 +1535,20 @@ const cr = (e, r) => {
|
|
|
1569
1535
|
}), Object.defineProperty(e, "issues", {
|
|
1570
1536
|
value: r,
|
|
1571
1537
|
enumerable: !1
|
|
1572
|
-
}), e.message = JSON.stringify(r,
|
|
1538
|
+
}), e.message = JSON.stringify(r, us, 2), Object.defineProperty(e, "toString", {
|
|
1573
1539
|
value: () => e.message,
|
|
1574
1540
|
enumerable: !1
|
|
1575
1541
|
});
|
|
1576
|
-
},
|
|
1542
|
+
}, ds = nr("$ZodError", cr), ur = nr("$ZodError", cr, { Parent: Error }), fs = (e) => (r, t, s, n) => {
|
|
1577
1543
|
const o = s ? Object.assign(s, { async: !1 }) : { async: !1 }, l = r._zod.run({ value: t, issues: [] }, o);
|
|
1578
1544
|
if (l instanceof Promise)
|
|
1579
|
-
throw new
|
|
1545
|
+
throw new ls();
|
|
1580
1546
|
if (l.issues.length) {
|
|
1581
1547
|
const a = new ((n == null ? void 0 : n.Err) ?? e)(l.issues.map((d) => lr(d, o, ir())));
|
|
1582
1548
|
throw ar(a, n == null ? void 0 : n.callee), a;
|
|
1583
1549
|
}
|
|
1584
1550
|
return l.value;
|
|
1585
|
-
},
|
|
1551
|
+
}, ys = /* @__PURE__ */ fs(ur), ms = (e) => async (r, t, s, n) => {
|
|
1586
1552
|
const o = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
1587
1553
|
let l = r._zod.run({ value: t, issues: [] }, o);
|
|
1588
1554
|
if (l instanceof Promise && (l = await l), l.issues.length) {
|
|
@@ -1590,7 +1556,7 @@ const cr = (e, r) => {
|
|
|
1590
1556
|
throw ar(a, n == null ? void 0 : n.callee), a;
|
|
1591
1557
|
}
|
|
1592
1558
|
return l.value;
|
|
1593
|
-
},
|
|
1559
|
+
}, hs = /* @__PURE__ */ ms(ur);
|
|
1594
1560
|
function Ot(e, r) {
|
|
1595
1561
|
try {
|
|
1596
1562
|
var t = e();
|
|
@@ -1599,7 +1565,7 @@ function Ot(e, r) {
|
|
|
1599
1565
|
}
|
|
1600
1566
|
return t && t.then ? t.then(void 0, r) : t;
|
|
1601
1567
|
}
|
|
1602
|
-
function
|
|
1568
|
+
function _s(e, r) {
|
|
1603
1569
|
for (var t = {}; e.length; ) {
|
|
1604
1570
|
var s = e[0], n = s.code, o = s.message, l = s.path.join(".");
|
|
1605
1571
|
if (!t[l]) if ("unionErrors" in s) {
|
|
@@ -1618,7 +1584,7 @@ function gs(e, r) {
|
|
|
1618
1584
|
}
|
|
1619
1585
|
return t;
|
|
1620
1586
|
}
|
|
1621
|
-
function
|
|
1587
|
+
function gs(e, r) {
|
|
1622
1588
|
for (var t = {}; e.length; ) {
|
|
1623
1589
|
var s = e[0], n = s.code, o = s.message, l = s.path.join(".");
|
|
1624
1590
|
if (!t[l]) if (s.code === "invalid_union" && s.errors.length > 0) {
|
|
@@ -1637,19 +1603,19 @@ function ps(e, r) {
|
|
|
1637
1603
|
}
|
|
1638
1604
|
return t;
|
|
1639
1605
|
}
|
|
1640
|
-
function
|
|
1606
|
+
function ps(e, r, t) {
|
|
1641
1607
|
if (t === void 0 && (t = {}), (function(s) {
|
|
1642
1608
|
return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
|
|
1643
1609
|
})(e)) return function(s, n, o) {
|
|
1644
1610
|
try {
|
|
1645
1611
|
return Promise.resolve(Ot(function() {
|
|
1646
1612
|
return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(l) {
|
|
1647
|
-
return o.shouldUseNativeValidation &&
|
|
1613
|
+
return o.shouldUseNativeValidation && Ke({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : l };
|
|
1648
1614
|
});
|
|
1649
1615
|
}, function(l) {
|
|
1650
1616
|
if ((function(a) {
|
|
1651
1617
|
return Array.isArray(a == null ? void 0 : a.issues);
|
|
1652
|
-
})(l)) return { values: {}, errors: Rt(
|
|
1618
|
+
})(l)) return { values: {}, errors: Rt(_s(l.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
|
|
1653
1619
|
throw l;
|
|
1654
1620
|
}));
|
|
1655
1621
|
} catch (l) {
|
|
@@ -1661,13 +1627,13 @@ function vs(e, r, t) {
|
|
|
1661
1627
|
})(e)) return function(s, n, o) {
|
|
1662
1628
|
try {
|
|
1663
1629
|
return Promise.resolve(Ot(function() {
|
|
1664
|
-
return Promise.resolve((t.mode === "sync" ?
|
|
1665
|
-
return o.shouldUseNativeValidation &&
|
|
1630
|
+
return Promise.resolve((t.mode === "sync" ? ys : hs)(e, s, r)).then(function(l) {
|
|
1631
|
+
return o.shouldUseNativeValidation && Ke({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : l };
|
|
1666
1632
|
});
|
|
1667
1633
|
}, function(l) {
|
|
1668
1634
|
if ((function(a) {
|
|
1669
|
-
return a instanceof
|
|
1670
|
-
})(l)) return { values: {}, errors: Rt(
|
|
1635
|
+
return a instanceof ds;
|
|
1636
|
+
})(l)) return { values: {}, errors: Rt(gs(l.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
|
|
1671
1637
|
throw l;
|
|
1672
1638
|
}));
|
|
1673
1639
|
} catch (l) {
|
|
@@ -1677,13 +1643,13 @@ function vs(e, r, t) {
|
|
|
1677
1643
|
throw new Error("Invalid input: not a Zod schema");
|
|
1678
1644
|
}
|
|
1679
1645
|
const dr = V.createContext(null);
|
|
1680
|
-
function
|
|
1646
|
+
function vs() {
|
|
1681
1647
|
const e = V.useContext(dr);
|
|
1682
1648
|
if (!e)
|
|
1683
1649
|
throw new Error("useFormContext must be used within a Form component");
|
|
1684
1650
|
return e;
|
|
1685
1651
|
}
|
|
1686
|
-
function
|
|
1652
|
+
function bs({
|
|
1687
1653
|
onSubmit: e,
|
|
1688
1654
|
children: r,
|
|
1689
1655
|
schema: t,
|
|
@@ -1692,16 +1658,16 @@ function Ss({
|
|
|
1692
1658
|
reValidateMode: o = "onChange",
|
|
1693
1659
|
...l
|
|
1694
1660
|
}) {
|
|
1695
|
-
const a =
|
|
1696
|
-
resolver: t ?
|
|
1661
|
+
const a = is({
|
|
1662
|
+
resolver: t ? ps(t) : void 0,
|
|
1697
1663
|
defaultValues: s,
|
|
1698
1664
|
mode: n,
|
|
1699
1665
|
reValidateMode: o
|
|
1700
1666
|
}), d = a.handleSubmit(e);
|
|
1701
1667
|
return /* @__PURE__ */ w(dr.Provider, { value: a, children: /* @__PURE__ */ w("form", { onSubmit: d, ...l, children: typeof r == "function" ? r(a) : r }) });
|
|
1702
1668
|
}
|
|
1703
|
-
const
|
|
1704
|
-
formError:
|
|
1669
|
+
const Ho = bs, Ss = "FormError-module__formError___kaUBn", ws = {
|
|
1670
|
+
formError: Ss
|
|
1705
1671
|
}, Fs = ({ children: e, className: r, style: t }) => {
|
|
1706
1672
|
const s = L(), n = {
|
|
1707
1673
|
"--form-error-margin-top": `calc(${s.fonts.rhythm} * 0.17)`,
|
|
@@ -1711,20 +1677,20 @@ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
|
|
|
1711
1677
|
return /* @__PURE__ */ w(
|
|
1712
1678
|
"div",
|
|
1713
1679
|
{
|
|
1714
|
-
className: `${
|
|
1680
|
+
className: `${ws.formError} ${r || ""}`.trim(),
|
|
1715
1681
|
style: n,
|
|
1716
1682
|
role: "alert",
|
|
1717
1683
|
"aria-live": "polite",
|
|
1718
1684
|
children: e
|
|
1719
1685
|
}
|
|
1720
1686
|
);
|
|
1721
|
-
},
|
|
1722
|
-
formGroup:
|
|
1723
|
-
inputWrapper:
|
|
1724
|
-
indented:
|
|
1725
|
-
disabled:
|
|
1726
|
-
required:
|
|
1727
|
-
},
|
|
1687
|
+
}, xs = "FormGroup-module__formGroup___aVI-B", ks = "FormGroup-module__inputWrapper___429QE", Vs = "FormGroup-module__indented___t61iz", Cs = "FormGroup-module__disabled___W-tJ0", Es = "FormGroup-module__required___mO3xA", ye = {
|
|
1688
|
+
formGroup: xs,
|
|
1689
|
+
inputWrapper: ks,
|
|
1690
|
+
indented: Vs,
|
|
1691
|
+
disabled: Cs,
|
|
1692
|
+
required: Es
|
|
1693
|
+
}, zs = ({
|
|
1728
1694
|
children: e,
|
|
1729
1695
|
label: r,
|
|
1730
1696
|
name: t,
|
|
@@ -1738,9 +1704,9 @@ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
|
|
|
1738
1704
|
labelProps: y
|
|
1739
1705
|
}) => {
|
|
1740
1706
|
const h = L(), f = [
|
|
1741
|
-
|
|
1742
|
-
s ?
|
|
1743
|
-
o ?
|
|
1707
|
+
ye.formGroup,
|
|
1708
|
+
s ? ye.error : "",
|
|
1709
|
+
o ? ye.disabled : "",
|
|
1744
1710
|
d
|
|
1745
1711
|
].filter(Boolean).join(" "), b = {
|
|
1746
1712
|
"--form-group-margin-bottom": `calc(${h.fonts.rhythm} * 0.35)`,
|
|
@@ -1756,16 +1722,16 @@ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
|
|
|
1756
1722
|
return /* @__PURE__ */ Q("div", { className: f, style: b, children: [
|
|
1757
1723
|
r && /* @__PURE__ */ Q(et, { htmlFor: t, disabled: o, error: s, ...y, children: [
|
|
1758
1724
|
r,
|
|
1759
|
-
l && /* @__PURE__ */ Q("span", { className:
|
|
1725
|
+
l && /* @__PURE__ */ Q("span", { className: ye.required, "aria-label": "required", children: [
|
|
1760
1726
|
" ",
|
|
1761
1727
|
"*"
|
|
1762
1728
|
] })
|
|
1763
1729
|
] }),
|
|
1764
|
-
/* @__PURE__ */ w("div", { className: `${
|
|
1730
|
+
/* @__PURE__ */ w("div", { className: `${ye.inputWrapper} ${a ? ye.indented : ""}`, children: C }),
|
|
1765
1731
|
s && n && /* @__PURE__ */ w(Fs, { children: n })
|
|
1766
1732
|
] });
|
|
1767
1733
|
};
|
|
1768
|
-
function
|
|
1734
|
+
function we({
|
|
1769
1735
|
name: e,
|
|
1770
1736
|
label: r,
|
|
1771
1737
|
required: t,
|
|
@@ -1777,16 +1743,16 @@ function xe({
|
|
|
1777
1743
|
indent: d,
|
|
1778
1744
|
labelProps: m
|
|
1779
1745
|
}) {
|
|
1780
|
-
const { control: y } =
|
|
1746
|
+
const { control: y } = vs(), {
|
|
1781
1747
|
field: h,
|
|
1782
1748
|
fieldState: { error: f }
|
|
1783
|
-
} =
|
|
1749
|
+
} = Wr({
|
|
1784
1750
|
name: e,
|
|
1785
1751
|
control: y,
|
|
1786
1752
|
rules: n
|
|
1787
1753
|
});
|
|
1788
1754
|
return /* @__PURE__ */ w(
|
|
1789
|
-
|
|
1755
|
+
zs,
|
|
1790
1756
|
{
|
|
1791
1757
|
label: r,
|
|
1792
1758
|
name: e,
|
|
@@ -1809,11 +1775,11 @@ function xe({
|
|
|
1809
1775
|
}
|
|
1810
1776
|
);
|
|
1811
1777
|
}
|
|
1812
|
-
const
|
|
1813
|
-
input:
|
|
1814
|
-
sizeSmall:
|
|
1815
|
-
sizeDefault:
|
|
1816
|
-
},
|
|
1778
|
+
const $s = "Input-module__input___WjT81", As = "Input-module__sizeSmall___NFvsi", Ps = "Input-module__sizeDefault___AxPA0", He = {
|
|
1779
|
+
input: $s,
|
|
1780
|
+
sizeSmall: As,
|
|
1781
|
+
sizeDefault: Ps
|
|
1782
|
+
}, Ds = ({
|
|
1817
1783
|
color: e = "#000",
|
|
1818
1784
|
disabled: r = !1,
|
|
1819
1785
|
fontSize: t = "1em",
|
|
@@ -1824,7 +1790,7 @@ const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1824
1790
|
fontSize: t,
|
|
1825
1791
|
opacity: r ? 0.3 : 1,
|
|
1826
1792
|
placeholderOpacity: s
|
|
1827
|
-
}),
|
|
1793
|
+
}), Ns = ({
|
|
1828
1794
|
color: e,
|
|
1829
1795
|
disabled: r = !1,
|
|
1830
1796
|
error: t = !1,
|
|
@@ -1839,7 +1805,7 @@ const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1839
1805
|
value: h = "",
|
|
1840
1806
|
...f
|
|
1841
1807
|
}) => {
|
|
1842
|
-
const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k =
|
|
1808
|
+
const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k = Ds({
|
|
1843
1809
|
color: S,
|
|
1844
1810
|
disabled: r,
|
|
1845
1811
|
fontSize: s || b.fonts.size,
|
|
@@ -1855,11 +1821,11 @@ const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1855
1821
|
fontSize: k.fontSize,
|
|
1856
1822
|
opacity: k.opacity,
|
|
1857
1823
|
...m
|
|
1858
|
-
},
|
|
1824
|
+
}, F = [He.input, d === "small" ? He.sizeSmall : He.sizeDefault].filter(Boolean).join(" ");
|
|
1859
1825
|
return /* @__PURE__ */ w(
|
|
1860
1826
|
"input",
|
|
1861
1827
|
{
|
|
1862
|
-
className:
|
|
1828
|
+
className: F,
|
|
1863
1829
|
disabled: r,
|
|
1864
1830
|
name: n,
|
|
1865
1831
|
onChange: o,
|
|
@@ -1871,7 +1837,7 @@ const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1871
1837
|
}
|
|
1872
1838
|
);
|
|
1873
1839
|
};
|
|
1874
|
-
function
|
|
1840
|
+
function Uo({
|
|
1875
1841
|
name: e,
|
|
1876
1842
|
label: r,
|
|
1877
1843
|
required: t,
|
|
@@ -1882,7 +1848,7 @@ function jo({
|
|
|
1882
1848
|
...a
|
|
1883
1849
|
}) {
|
|
1884
1850
|
return /* @__PURE__ */ w(
|
|
1885
|
-
|
|
1851
|
+
we,
|
|
1886
1852
|
{
|
|
1887
1853
|
name: e,
|
|
1888
1854
|
label: r,
|
|
@@ -1892,7 +1858,7 @@ function jo({
|
|
|
1892
1858
|
className: o,
|
|
1893
1859
|
style: l,
|
|
1894
1860
|
children: ({ value: d, onChange: m, onBlur: y, name: h, error: f }) => /* @__PURE__ */ w(
|
|
1895
|
-
|
|
1861
|
+
Ns,
|
|
1896
1862
|
{
|
|
1897
1863
|
...a,
|
|
1898
1864
|
name: h,
|
|
@@ -1905,11 +1871,11 @@ function jo({
|
|
|
1905
1871
|
}
|
|
1906
1872
|
);
|
|
1907
1873
|
}
|
|
1908
|
-
const
|
|
1909
|
-
textarea:
|
|
1910
|
-
sizeSmall:
|
|
1911
|
-
sizeDefault:
|
|
1912
|
-
},
|
|
1874
|
+
const Rs = "Textarea-module__textarea___Z-y6g", Bs = "Textarea-module__sizeSmall___HHFEM", Os = "Textarea-module__sizeDefault___LL2Uc", Ue = {
|
|
1875
|
+
textarea: Rs,
|
|
1876
|
+
sizeSmall: Bs,
|
|
1877
|
+
sizeDefault: Os
|
|
1878
|
+
}, Ls = ({
|
|
1913
1879
|
color: e = "#000",
|
|
1914
1880
|
disabled: r = !1,
|
|
1915
1881
|
placeholderOpacity: t = 0.3
|
|
@@ -1933,7 +1899,7 @@ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall
|
|
|
1933
1899
|
value: h = "",
|
|
1934
1900
|
...f
|
|
1935
1901
|
}) => {
|
|
1936
|
-
const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k =
|
|
1902
|
+
const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k = Ls({
|
|
1937
1903
|
color: S,
|
|
1938
1904
|
disabled: r,
|
|
1939
1905
|
placeholderOpacity: a
|
|
@@ -1948,11 +1914,11 @@ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall
|
|
|
1948
1914
|
fontSize: s || b.fonts.size,
|
|
1949
1915
|
opacity: k.opacity,
|
|
1950
1916
|
...y
|
|
1951
|
-
},
|
|
1917
|
+
}, F = [Ue.textarea, m === "small" ? Ue.sizeSmall : Ue.sizeDefault].filter(Boolean).join(" ");
|
|
1952
1918
|
return /* @__PURE__ */ w(
|
|
1953
1919
|
"textarea",
|
|
1954
1920
|
{
|
|
1955
|
-
className:
|
|
1921
|
+
className: F,
|
|
1956
1922
|
disabled: r,
|
|
1957
1923
|
name: n,
|
|
1958
1924
|
onChange: o,
|
|
@@ -1964,7 +1930,7 @@ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall
|
|
|
1964
1930
|
}
|
|
1965
1931
|
);
|
|
1966
1932
|
};
|
|
1967
|
-
function
|
|
1933
|
+
function jo({
|
|
1968
1934
|
name: e,
|
|
1969
1935
|
label: r,
|
|
1970
1936
|
required: t,
|
|
@@ -1975,7 +1941,7 @@ function Wo({
|
|
|
1975
1941
|
...a
|
|
1976
1942
|
}) {
|
|
1977
1943
|
return /* @__PURE__ */ w(
|
|
1978
|
-
|
|
1944
|
+
we,
|
|
1979
1945
|
{
|
|
1980
1946
|
name: e,
|
|
1981
1947
|
label: r,
|
|
@@ -1998,11 +1964,11 @@ function Wo({
|
|
|
1998
1964
|
}
|
|
1999
1965
|
);
|
|
2000
1966
|
}
|
|
2001
|
-
const
|
|
2002
|
-
select:
|
|
2003
|
-
sizeSmall:
|
|
2004
|
-
sizeDefault:
|
|
2005
|
-
},
|
|
1967
|
+
const Ts = "Select-module__select___cjdcr", Is = "Select-module__sizeSmall___i1quj", Hs = "Select-module__sizeDefault___EiWvW", je = {
|
|
1968
|
+
select: Ts,
|
|
1969
|
+
sizeSmall: Is,
|
|
1970
|
+
sizeDefault: Hs
|
|
1971
|
+
}, Us = ({
|
|
2006
1972
|
color: e = "#000",
|
|
2007
1973
|
disabled: r = !1
|
|
2008
1974
|
}) => ({
|
|
@@ -2029,7 +1995,7 @@ const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1q
|
|
|
2029
1995
|
`.trim();
|
|
2030
1996
|
return `url("data:image/svg+xml,${encodeURIComponent(l)}")`;
|
|
2031
1997
|
})(e)
|
|
2032
|
-
}),
|
|
1998
|
+
}), js = ({
|
|
2033
1999
|
children: e,
|
|
2034
2000
|
color: r,
|
|
2035
2001
|
disabled: t = !1,
|
|
@@ -2043,7 +2009,7 @@ const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1q
|
|
|
2043
2009
|
value: y = "",
|
|
2044
2010
|
...h
|
|
2045
2011
|
}) => {
|
|
2046
|
-
const f = L(), b = f.colors.error, C = s ? b : r || f.colors.primary, S =
|
|
2012
|
+
const f = L(), b = f.colors.error, C = s ? b : r || f.colors.primary, S = Us({
|
|
2047
2013
|
color: C,
|
|
2048
2014
|
disabled: t
|
|
2049
2015
|
}), k = {
|
|
@@ -2062,7 +2028,7 @@ const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1q
|
|
|
2062
2028
|
fontSize: n || f.fonts.size,
|
|
2063
2029
|
opacity: S.opacity,
|
|
2064
2030
|
...m
|
|
2065
|
-
}, R = [
|
|
2031
|
+
}, R = [je.select, d === "small" ? je.sizeSmall : je.sizeDefault].filter(Boolean).join(" ");
|
|
2066
2032
|
return /* @__PURE__ */ Q(
|
|
2067
2033
|
"select",
|
|
2068
2034
|
{
|
|
@@ -2080,7 +2046,7 @@ const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1q
|
|
|
2080
2046
|
}
|
|
2081
2047
|
);
|
|
2082
2048
|
};
|
|
2083
|
-
function
|
|
2049
|
+
function Wo({
|
|
2084
2050
|
name: e,
|
|
2085
2051
|
label: r,
|
|
2086
2052
|
required: t,
|
|
@@ -2092,7 +2058,7 @@ function qo({
|
|
|
2092
2058
|
...d
|
|
2093
2059
|
}) {
|
|
2094
2060
|
return /* @__PURE__ */ w(
|
|
2095
|
-
|
|
2061
|
+
we,
|
|
2096
2062
|
{
|
|
2097
2063
|
name: e,
|
|
2098
2064
|
label: r,
|
|
@@ -2102,7 +2068,7 @@ function qo({
|
|
|
2102
2068
|
className: o,
|
|
2103
2069
|
style: l,
|
|
2104
2070
|
children: ({ value: m, onChange: y, onBlur: h, name: f, error: b }) => /* @__PURE__ */ w(
|
|
2105
|
-
|
|
2071
|
+
js,
|
|
2106
2072
|
{
|
|
2107
2073
|
...d,
|
|
2108
2074
|
name: f,
|
|
@@ -2116,7 +2082,7 @@ function qo({
|
|
|
2116
2082
|
}
|
|
2117
2083
|
);
|
|
2118
2084
|
}
|
|
2119
|
-
function
|
|
2085
|
+
function qo({
|
|
2120
2086
|
name: e,
|
|
2121
2087
|
required: r,
|
|
2122
2088
|
rules: t,
|
|
@@ -2126,7 +2092,7 @@ function Go({
|
|
|
2126
2092
|
...l
|
|
2127
2093
|
}) {
|
|
2128
2094
|
return /* @__PURE__ */ w(
|
|
2129
|
-
|
|
2095
|
+
we,
|
|
2130
2096
|
{
|
|
2131
2097
|
name: e,
|
|
2132
2098
|
required: r,
|
|
@@ -2135,7 +2101,7 @@ function Go({
|
|
|
2135
2101
|
className: n,
|
|
2136
2102
|
style: o,
|
|
2137
2103
|
children: ({ value: a, onChange: d, name: m, error: y }) => /* @__PURE__ */ w(
|
|
2138
|
-
|
|
2104
|
+
Tr,
|
|
2139
2105
|
{
|
|
2140
2106
|
...l,
|
|
2141
2107
|
name: m,
|
|
@@ -2147,18 +2113,18 @@ function Go({
|
|
|
2147
2113
|
}
|
|
2148
2114
|
);
|
|
2149
2115
|
}
|
|
2150
|
-
const
|
|
2151
|
-
container:
|
|
2152
|
-
svg:
|
|
2153
|
-
label:
|
|
2154
|
-
},
|
|
2116
|
+
const Ws = "Radio-module__container___AQxhk", qs = "Radio-module__svg___zl5kF", Gs = "Radio-module__label___vAFIP", We = {
|
|
2117
|
+
container: Ws,
|
|
2118
|
+
svg: qs,
|
|
2119
|
+
label: Gs
|
|
2120
|
+
}, Zs = ({
|
|
2155
2121
|
color: e = "#000",
|
|
2156
2122
|
disabled: r = !1
|
|
2157
2123
|
}) => ({
|
|
2158
2124
|
radioColor: e,
|
|
2159
2125
|
cursor: r ? "default" : "pointer",
|
|
2160
2126
|
opacity: r ? 0.3 : 1
|
|
2161
|
-
}),
|
|
2127
|
+
}), Qs = ({
|
|
2162
2128
|
checked: e = !1,
|
|
2163
2129
|
color: r,
|
|
2164
2130
|
disabled: t = !1,
|
|
@@ -2172,12 +2138,12 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2172
2138
|
style: y,
|
|
2173
2139
|
...h
|
|
2174
2140
|
}) => {
|
|
2175
|
-
const f = L(), b = o || Gt(), C = f.colors.error, S = s ? C : r || f.colors.primary, k =
|
|
2141
|
+
const f = L(), b = o || Gt(), C = f.colors.error, S = s ? C : r || f.colors.primary, k = Zs({
|
|
2176
2142
|
color: S,
|
|
2177
2143
|
disabled: t
|
|
2178
2144
|
}), R = (O) => {
|
|
2179
2145
|
t || m(O);
|
|
2180
|
-
},
|
|
2146
|
+
}, F = {
|
|
2181
2147
|
cursor: k.cursor,
|
|
2182
2148
|
fontSize: n || f.fonts.size,
|
|
2183
2149
|
opacity: k.opacity,
|
|
@@ -2191,7 +2157,7 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2191
2157
|
}, E = {
|
|
2192
2158
|
fill: k.radioColor
|
|
2193
2159
|
};
|
|
2194
|
-
return /* @__PURE__ */ Q("div", { className:
|
|
2160
|
+
return /* @__PURE__ */ Q("div", { className: We.container, style: F, ...h, children: [
|
|
2195
2161
|
/* @__PURE__ */ w(
|
|
2196
2162
|
"input",
|
|
2197
2163
|
{
|
|
@@ -2210,7 +2176,7 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2210
2176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2211
2177
|
viewBox: "0 0 100 100",
|
|
2212
2178
|
onClick: () => R({ target: { checked: !e, name: d, type: "radio" } }),
|
|
2213
|
-
className:
|
|
2179
|
+
className: We.svg,
|
|
2214
2180
|
style: $,
|
|
2215
2181
|
children: [
|
|
2216
2182
|
/* @__PURE__ */ w("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: z }),
|
|
@@ -2222,7 +2188,7 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2222
2188
|
et,
|
|
2223
2189
|
{
|
|
2224
2190
|
htmlFor: b,
|
|
2225
|
-
className:
|
|
2191
|
+
className: We.label,
|
|
2226
2192
|
style: a,
|
|
2227
2193
|
color: k.radioColor,
|
|
2228
2194
|
disabled: t,
|
|
@@ -2233,7 +2199,7 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2233
2199
|
)
|
|
2234
2200
|
] });
|
|
2235
2201
|
};
|
|
2236
|
-
function
|
|
2202
|
+
function Go({
|
|
2237
2203
|
name: e,
|
|
2238
2204
|
label: r,
|
|
2239
2205
|
required: t,
|
|
@@ -2245,7 +2211,7 @@ function Zo({
|
|
|
2245
2211
|
...d
|
|
2246
2212
|
}) {
|
|
2247
2213
|
return /* @__PURE__ */ w(
|
|
2248
|
-
|
|
2214
|
+
we,
|
|
2249
2215
|
{
|
|
2250
2216
|
name: e,
|
|
2251
2217
|
required: t,
|
|
@@ -2254,7 +2220,7 @@ function Zo({
|
|
|
2254
2220
|
className: o,
|
|
2255
2221
|
style: l,
|
|
2256
2222
|
children: ({ value: m, onChange: y, name: h, error: f }) => /* @__PURE__ */ w(
|
|
2257
|
-
|
|
2223
|
+
Qs,
|
|
2258
2224
|
{
|
|
2259
2225
|
...d,
|
|
2260
2226
|
name: h,
|
|
@@ -2267,18 +2233,18 @@ function Zo({
|
|
|
2267
2233
|
}
|
|
2268
2234
|
);
|
|
2269
2235
|
}
|
|
2270
|
-
const
|
|
2271
|
-
hamburger:
|
|
2272
|
-
line:
|
|
2273
|
-
open:
|
|
2274
|
-
},
|
|
2236
|
+
const Ks = "Hamburger-module__hamburger___Tf4-t", Js = "Hamburger-module__line___gybZM", Xs = "Hamburger-module__open___gRswh", ge = {
|
|
2237
|
+
hamburger: Ks,
|
|
2238
|
+
line: Js,
|
|
2239
|
+
open: Xs
|
|
2240
|
+
}, Ys = ({
|
|
2275
2241
|
compact: e,
|
|
2276
2242
|
color: r,
|
|
2277
2243
|
visible: t,
|
|
2278
2244
|
borderRadius: s
|
|
2279
2245
|
}) => {
|
|
2280
2246
|
const n = L();
|
|
2281
|
-
return
|
|
2247
|
+
return be(() => {
|
|
2282
2248
|
const o = e ? { right: ".5em" } : {};
|
|
2283
2249
|
return {
|
|
2284
2250
|
"--hamburger-border-radius": s || n.borderRadius || "10px",
|
|
@@ -2287,7 +2253,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2287
2253
|
...o
|
|
2288
2254
|
};
|
|
2289
2255
|
}, [r, t, e, s, n.borderRadius]);
|
|
2290
|
-
},
|
|
2256
|
+
}, eo = ({
|
|
2291
2257
|
visible: e,
|
|
2292
2258
|
compact: r,
|
|
2293
2259
|
color: t,
|
|
@@ -2297,12 +2263,12 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2297
2263
|
buttonProps: l,
|
|
2298
2264
|
borderRadius: a
|
|
2299
2265
|
}) => {
|
|
2300
|
-
const d =
|
|
2266
|
+
const d = Ys({
|
|
2301
2267
|
compact: r,
|
|
2302
2268
|
color: t,
|
|
2303
2269
|
visible: e,
|
|
2304
2270
|
borderRadius: a
|
|
2305
|
-
}), m = [
|
|
2271
|
+
}), m = [ge.hamburger, n ? ge.open : ""].filter(Boolean).join(" ");
|
|
2306
2272
|
return /* @__PURE__ */ Q(
|
|
2307
2273
|
"button",
|
|
2308
2274
|
{
|
|
@@ -2314,16 +2280,16 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2314
2280
|
"aria-expanded": n,
|
|
2315
2281
|
...l,
|
|
2316
2282
|
children: [
|
|
2317
|
-
/* @__PURE__ */ w("div", { className:
|
|
2318
|
-
/* @__PURE__ */ w("div", { className:
|
|
2319
|
-
/* @__PURE__ */ w("div", { className:
|
|
2283
|
+
/* @__PURE__ */ w("div", { className: ge.line }),
|
|
2284
|
+
/* @__PURE__ */ w("div", { className: ge.line }),
|
|
2285
|
+
/* @__PURE__ */ w("div", { className: ge.line })
|
|
2320
2286
|
]
|
|
2321
2287
|
}
|
|
2322
2288
|
);
|
|
2323
|
-
},
|
|
2324
|
-
header:
|
|
2325
|
-
container:
|
|
2326
|
-
},
|
|
2289
|
+
}, to = "Header-module__header___RUooH", ro = "Header-module__container___t68M9", Lt = {
|
|
2290
|
+
header: to,
|
|
2291
|
+
container: ro
|
|
2292
|
+
}, so = ({
|
|
2327
2293
|
isSmallScreen: e = !1,
|
|
2328
2294
|
maxWidth: r,
|
|
2329
2295
|
paddingSm: t,
|
|
@@ -2338,13 +2304,13 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2338
2304
|
};
|
|
2339
2305
|
}, ie = (e) => {
|
|
2340
2306
|
const r = typeof window < "u" && typeof window.matchMedia == "function";
|
|
2341
|
-
return
|
|
2307
|
+
return kr((o) => {
|
|
2342
2308
|
if (!r) return () => {
|
|
2343
2309
|
};
|
|
2344
2310
|
const l = window.matchMedia(e);
|
|
2345
2311
|
return l.addEventListener("change", o), () => l.removeEventListener("change", o);
|
|
2346
2312
|
}, () => r ? window.matchMedia(e).matches : !1, () => !1);
|
|
2347
|
-
},
|
|
2313
|
+
}, oo = ({
|
|
2348
2314
|
children: e,
|
|
2349
2315
|
breakPointSm: r,
|
|
2350
2316
|
maxWidth: t,
|
|
@@ -2355,7 +2321,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2355
2321
|
headerProps: a = {},
|
|
2356
2322
|
headerRef: d
|
|
2357
2323
|
}) => {
|
|
2358
|
-
const m = L(), h = (r || m.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), f = h ? parseInt(h[1], 10) - 1 : 474, b = h ? h[2] : "px", C = ie(`(max-width: ${f}${b})`), S =
|
|
2324
|
+
const m = L(), h = (r || m.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), f = h ? parseInt(h[1], 10) - 1 : 474, b = h ? h[2] : "px", C = ie(`(max-width: ${f}${b})`), S = so({
|
|
2359
2325
|
isSmallScreen: C,
|
|
2360
2326
|
maxWidth: t,
|
|
2361
2327
|
paddingSm: s,
|
|
@@ -2370,12 +2336,12 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2370
2336
|
children: e
|
|
2371
2337
|
}
|
|
2372
2338
|
) });
|
|
2373
|
-
},
|
|
2374
|
-
nav:
|
|
2375
|
-
navMobile:
|
|
2376
|
-
open:
|
|
2377
|
-
navDesktop:
|
|
2378
|
-
},
|
|
2339
|
+
}, no = "ResponsiveNav-module__nav___xOfv5", io = "ResponsiveNav-module__navMobile___h795P", ao = "ResponsiveNav-module__open___WDCAf", lo = "ResponsiveNav-module__navDesktop___9wscZ", Ee = {
|
|
2340
|
+
nav: no,
|
|
2341
|
+
navMobile: io,
|
|
2342
|
+
open: ao,
|
|
2343
|
+
navDesktop: lo
|
|
2344
|
+
}, co = ({
|
|
2379
2345
|
isMobile: e,
|
|
2380
2346
|
isCompact: r,
|
|
2381
2347
|
mobileBackground: t,
|
|
@@ -2385,7 +2351,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2385
2351
|
mobileButtonHoverColor: l
|
|
2386
2352
|
}) => {
|
|
2387
2353
|
const a = L();
|
|
2388
|
-
return
|
|
2354
|
+
return be(() => {
|
|
2389
2355
|
const { rhythm: d } = a.fonts;
|
|
2390
2356
|
return {
|
|
2391
2357
|
...e ? {
|
|
@@ -2412,11 +2378,11 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2412
2378
|
r
|
|
2413
2379
|
]);
|
|
2414
2380
|
};
|
|
2415
|
-
function
|
|
2381
|
+
function Mt(e) {
|
|
2416
2382
|
const t = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
|
|
2417
2383
|
return { maxWidth: t, unit: s };
|
|
2418
2384
|
}
|
|
2419
|
-
const
|
|
2385
|
+
const Zo = ({
|
|
2420
2386
|
breakPointMd: e,
|
|
2421
2387
|
breakPointSm: r,
|
|
2422
2388
|
children: t,
|
|
@@ -2428,7 +2394,7 @@ const Qo = ({
|
|
|
2428
2394
|
style: d,
|
|
2429
2395
|
navProps: m
|
|
2430
2396
|
}) => {
|
|
2431
|
-
const [y, h] =
|
|
2397
|
+
const [y, h] = Xe(!1), f = vt(null), b = vt(null), C = L(), S = e || C.breakpoints.md, k = r || C.breakpoints.sm, { maxWidth: R, unit: F } = Mt(S), { maxWidth: $, unit: z } = Mt(k), E = ie(`(max-width: ${R}${F})`), O = ie(`(max-width: ${$}${z})`), X = co({
|
|
2432
2398
|
isMobile: E,
|
|
2433
2399
|
isCompact: O,
|
|
2434
2400
|
mobileBackground: s,
|
|
@@ -2437,7 +2403,8 @@ const Qo = ({
|
|
|
2437
2403
|
mobileActiveColor: l,
|
|
2438
2404
|
mobileButtonHoverColor: a
|
|
2439
2405
|
});
|
|
2440
|
-
|
|
2406
|
+
Ye(() => {
|
|
2407
|
+
if (typeof document > "u") return;
|
|
2441
2408
|
const q = (se) => {
|
|
2442
2409
|
!b.current || b.current.contains(se.target) || f.current && f.current.contains(se.target) || h(!1);
|
|
2443
2410
|
};
|
|
@@ -2446,13 +2413,13 @@ const Qo = ({
|
|
|
2446
2413
|
};
|
|
2447
2414
|
}, [f, b, h]);
|
|
2448
2415
|
const ae = [
|
|
2449
|
-
|
|
2450
|
-
E ?
|
|
2451
|
-
E && y ?
|
|
2416
|
+
Ee.nav,
|
|
2417
|
+
E ? Ee.navMobile : Ee.navDesktop,
|
|
2418
|
+
E && y ? Ee.open : ""
|
|
2452
2419
|
].filter(Boolean).join(" ");
|
|
2453
|
-
return /* @__PURE__ */ Q(
|
|
2420
|
+
return /* @__PURE__ */ Q(Je, { children: [
|
|
2454
2421
|
/* @__PURE__ */ w(
|
|
2455
|
-
|
|
2422
|
+
eo,
|
|
2456
2423
|
{
|
|
2457
2424
|
hamburgerRef: f,
|
|
2458
2425
|
visible: E,
|
|
@@ -2472,13 +2439,13 @@ const Qo = ({
|
|
|
2472
2439
|
}
|
|
2473
2440
|
)
|
|
2474
2441
|
] });
|
|
2475
|
-
},
|
|
2442
|
+
}, uo = ({
|
|
2476
2443
|
size: e = 2.5,
|
|
2477
2444
|
color: r,
|
|
2478
2445
|
innerColor: t,
|
|
2479
2446
|
fullScreen: s = !0
|
|
2480
2447
|
}) => {
|
|
2481
|
-
const n = L(), o = r || n.colors.primary, l = t || n.colors.secondary, a = /* @__PURE__ */ Q(
|
|
2448
|
+
const n = L(), o = r || n.colors.primary, l = t || n.colors.secondary, a = /* @__PURE__ */ Q(Je, { children: [
|
|
2482
2449
|
/* @__PURE__ */ w(
|
|
2483
2450
|
"div",
|
|
2484
2451
|
{
|
|
@@ -2512,18 +2479,18 @@ const Qo = ({
|
|
|
2512
2479
|
children: a
|
|
2513
2480
|
}
|
|
2514
2481
|
) : a;
|
|
2515
|
-
},
|
|
2516
|
-
const [t, s] =
|
|
2517
|
-
return
|
|
2518
|
-
requestAnimationFrame(() => {
|
|
2482
|
+
}, Qo = ({ children: e, loadingComponent: r }) => {
|
|
2483
|
+
const [t, s] = Xe(!1);
|
|
2484
|
+
return Ye(() => {
|
|
2485
|
+
typeof requestAnimationFrame < "u" ? requestAnimationFrame(() => {
|
|
2519
2486
|
s(!0);
|
|
2520
|
-
});
|
|
2521
|
-
}, []), t ? /* @__PURE__ */ w(
|
|
2522
|
-
},
|
|
2523
|
-
stack:
|
|
2524
|
-
vertical:
|
|
2525
|
-
horizontal:
|
|
2526
|
-
},
|
|
2487
|
+
}) : s(!0);
|
|
2488
|
+
}, []), t ? /* @__PURE__ */ w(Je, { children: e }) : r || /* @__PURE__ */ w(uo, {});
|
|
2489
|
+
}, fo = "Stack-module__stack___yUU-B", yo = "Stack-module__vertical___sKTyQ", mo = "Stack-module__horizontal___YsvtV", qe = {
|
|
2490
|
+
stack: fo,
|
|
2491
|
+
vertical: yo,
|
|
2492
|
+
horizontal: mo
|
|
2493
|
+
}, Ko = ({
|
|
2527
2494
|
children: e,
|
|
2528
2495
|
direction: r = "column",
|
|
2529
2496
|
className: t,
|
|
@@ -2531,14 +2498,14 @@ const Qo = ({
|
|
|
2531
2498
|
...n
|
|
2532
2499
|
}) => {
|
|
2533
2500
|
const o = [
|
|
2534
|
-
|
|
2535
|
-
r === "row" ?
|
|
2501
|
+
qe.stack,
|
|
2502
|
+
r === "row" ? qe.horizontal : qe.vertical,
|
|
2536
2503
|
t
|
|
2537
2504
|
].filter(Boolean).join(" ");
|
|
2538
2505
|
return /* @__PURE__ */ w("div", { className: o, style: s, ...n, children: e });
|
|
2539
|
-
},
|
|
2540
|
-
section:
|
|
2541
|
-
innerDiv:
|
|
2506
|
+
}, ho = "ResponsiveSection-module__section___gBESK", _o = "ResponsiveSection-module__innerDiv___r1bky", Tt = {
|
|
2507
|
+
section: ho,
|
|
2508
|
+
innerDiv: _o
|
|
2542
2509
|
}, fr = ({
|
|
2543
2510
|
children: e,
|
|
2544
2511
|
background: r,
|
|
@@ -2555,16 +2522,16 @@ const Qo = ({
|
|
|
2555
2522
|
}, y = `calc(${a.fonts.rhythm} * ${o})`, h = d ? a.layout.wrapperPadding : a.layout.wrapperPaddingSm, f = {
|
|
2556
2523
|
"--max-width": a.layout.maxWidth,
|
|
2557
2524
|
"--section-padding": `${y} ${h}`
|
|
2558
|
-
}, b = [
|
|
2559
|
-
return /* @__PURE__ */ w("section", { className: b, style: m, ...l, children: /* @__PURE__ */ w("div", { className:
|
|
2560
|
-
},
|
|
2561
|
-
hero:
|
|
2562
|
-
content:
|
|
2563
|
-
},
|
|
2525
|
+
}, b = [Tt.section, s].filter(Boolean).join(" ");
|
|
2526
|
+
return /* @__PURE__ */ w("section", { className: b, style: m, ...l, children: /* @__PURE__ */ w("div", { className: Tt.innerDiv, style: f, children: e }) });
|
|
2527
|
+
}, go = "Hero-module__hero___IB2tg", po = "Hero-module__content___rkkfQ", It = {
|
|
2528
|
+
hero: go,
|
|
2529
|
+
content: po
|
|
2530
|
+
}, vo = ({
|
|
2564
2531
|
isMd: e = !1,
|
|
2565
2532
|
isLg: r = !1,
|
|
2566
2533
|
theme: t
|
|
2567
|
-
}) =>
|
|
2534
|
+
}) => be(() => {
|
|
2568
2535
|
const { rhythm: s } = t.fonts;
|
|
2569
2536
|
let n = `calc(${s} * 2) 0`, o = "2rem", l = "1.125rem";
|
|
2570
2537
|
return r ? (n = `calc(${s} * 4) 0`, o = "3.5rem", l = "1.5rem") : e && (n = `calc(${s} * 3.5) 0`, o = "3rem", l = "1.25rem"), {
|
|
@@ -2573,7 +2540,7 @@ const Qo = ({
|
|
|
2573
2540
|
"--hero-p-font-size": l,
|
|
2574
2541
|
"--hero-h1-margin-bottom": `calc(${s} * 0.7)`
|
|
2575
2542
|
};
|
|
2576
|
-
}, [e, r, t.fonts]),
|
|
2543
|
+
}, [e, r, t.fonts]), Jo = ({
|
|
2577
2544
|
children: e,
|
|
2578
2545
|
className: r,
|
|
2579
2546
|
color: t,
|
|
@@ -2582,7 +2549,7 @@ const Qo = ({
|
|
|
2582
2549
|
style: o,
|
|
2583
2550
|
...l
|
|
2584
2551
|
}) => {
|
|
2585
|
-
const a = L(), d = [It.hero, r].filter(Boolean).join(" "), m = s || a.breakpoints.md, y = n || a.breakpoints.lg, h = ie(`(min-width: ${m})`), f = ie(`(min-width: ${y})`), b =
|
|
2552
|
+
const a = L(), d = [It.hero, r].filter(Boolean).join(" "), m = s || a.breakpoints.md, y = n || a.breakpoints.lg, h = ie(`(min-width: ${m})`), f = ie(`(min-width: ${y})`), b = vo({ isMd: h, isLg: f, theme: a });
|
|
2586
2553
|
return /* @__PURE__ */ w(
|
|
2587
2554
|
fr,
|
|
2588
2555
|
{
|
|
@@ -2593,10 +2560,10 @@ const Qo = ({
|
|
|
2593
2560
|
children: /* @__PURE__ */ w("div", { className: It.content, children: e })
|
|
2594
2561
|
}
|
|
2595
2562
|
);
|
|
2596
|
-
},
|
|
2597
|
-
footer:
|
|
2598
|
-
container:
|
|
2599
|
-
},
|
|
2563
|
+
}, bo = "Footer-module__footer___A76NF", So = "Footer-module__container___QneNs", Ht = {
|
|
2564
|
+
footer: bo,
|
|
2565
|
+
container: So
|
|
2566
|
+
}, wo = ({
|
|
2600
2567
|
isSmallScreen: e = !1,
|
|
2601
2568
|
maxWidth: r,
|
|
2602
2569
|
paddingSm: t,
|
|
@@ -2626,7 +2593,7 @@ const Qo = ({
|
|
|
2626
2593
|
footerProps: m = {},
|
|
2627
2594
|
footerRef: y
|
|
2628
2595
|
}) => {
|
|
2629
|
-
const h = L(), b = (r || h.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), C = b ? parseInt(b[1], 10) - 1 : 474, S = b ? b[2] : "px", k = ie(`(max-width: ${C}${S})`), R =
|
|
2596
|
+
const h = L(), b = (r || h.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), C = b ? parseInt(b[1], 10) - 1 : 474, S = b ? b[2] : "px", k = ie(`(max-width: ${C}${S})`), R = wo({
|
|
2630
2597
|
isSmallScreen: k,
|
|
2631
2598
|
maxWidth: t,
|
|
2632
2599
|
paddingSm: s,
|
|
@@ -2643,15 +2610,15 @@ const Qo = ({
|
|
|
2643
2610
|
children: e
|
|
2644
2611
|
}
|
|
2645
2612
|
) });
|
|
2646
|
-
},
|
|
2647
|
-
card:
|
|
2648
|
-
icon:
|
|
2649
|
-
title:
|
|
2650
|
-
content:
|
|
2651
|
-
},
|
|
2613
|
+
}, xo = "FeatureCard-module__card___XQt66", ko = "FeatureCard-module__icon___dXJ92", Vo = "FeatureCard-module__title___KxXyA", Co = "FeatureCard-module__content___68xkw", ze = {
|
|
2614
|
+
card: xo,
|
|
2615
|
+
icon: ko,
|
|
2616
|
+
title: Vo,
|
|
2617
|
+
content: Co
|
|
2618
|
+
}, Eo = ({
|
|
2652
2619
|
isMd: e = !1,
|
|
2653
2620
|
theme: r
|
|
2654
|
-
}) =>
|
|
2621
|
+
}) => be(() => {
|
|
2655
2622
|
const { rhythm: t } = r.fonts;
|
|
2656
2623
|
return {
|
|
2657
2624
|
"--feature-icon-font-size": e ? "3rem" : "2.5rem",
|
|
@@ -2660,7 +2627,7 @@ const Qo = ({
|
|
|
2660
2627
|
"--feature-icon-margin-bottom": `calc(${t} * 0.7)`,
|
|
2661
2628
|
"--feature-title-margin-bottom": `calc(${t} * 0.5)`
|
|
2662
2629
|
};
|
|
2663
|
-
}, [e, r.fonts]),
|
|
2630
|
+
}, [e, r.fonts]), Xo = ({
|
|
2664
2631
|
icon: e,
|
|
2665
2632
|
title: r,
|
|
2666
2633
|
children: t,
|
|
@@ -2668,20 +2635,20 @@ const Qo = ({
|
|
|
2668
2635
|
style: n,
|
|
2669
2636
|
breakPointMd: o
|
|
2670
2637
|
}) => {
|
|
2671
|
-
const l = L(), a = [
|
|
2638
|
+
const l = L(), a = [ze.card, s].filter(Boolean).join(" "), d = o || l.breakpoints.md, m = ie(`(min-width: ${d})`), y = Eo({ isMd: m, theme: l });
|
|
2672
2639
|
return /* @__PURE__ */ Q("div", { className: a, style: { ...y, ...n }, children: [
|
|
2673
|
-
e && /* @__PURE__ */ w("div", { className:
|
|
2674
|
-
/* @__PURE__ */ w("h3", { className:
|
|
2675
|
-
/* @__PURE__ */ w("div", { className:
|
|
2640
|
+
e && /* @__PURE__ */ w("div", { className: ze.icon, children: e }),
|
|
2641
|
+
/* @__PURE__ */ w("h3", { className: ze.title, children: r }),
|
|
2642
|
+
/* @__PURE__ */ w("div", { className: ze.content, children: t })
|
|
2676
2643
|
] });
|
|
2677
|
-
},
|
|
2678
|
-
section:
|
|
2679
|
-
grid:
|
|
2680
|
-
},
|
|
2644
|
+
}, zo = "FeatureGridSection-module__section___wZrbC", $o = "FeatureGridSection-module__grid___iwPJv", Ut = {
|
|
2645
|
+
section: zo,
|
|
2646
|
+
grid: $o
|
|
2647
|
+
}, Ao = ({
|
|
2681
2648
|
columns: e,
|
|
2682
2649
|
isMd: r = !1,
|
|
2683
2650
|
isLg: t = !1
|
|
2684
|
-
}) =>
|
|
2651
|
+
}) => be(() => r ? r && !t && (e === 3 || e === 4) ? {
|
|
2685
2652
|
"--grid-template-columns": "repeat(2, 1fr)"
|
|
2686
2653
|
} : {
|
|
2687
2654
|
"--grid-template-columns": {
|
|
@@ -2692,7 +2659,7 @@ const Qo = ({
|
|
|
2692
2659
|
}[e]
|
|
2693
2660
|
} : {
|
|
2694
2661
|
"--grid-template-columns": "1fr"
|
|
2695
|
-
}, [e, r, t]),
|
|
2662
|
+
}, [e, r, t]), Yo = ({
|
|
2696
2663
|
children: e,
|
|
2697
2664
|
columns: r = 3,
|
|
2698
2665
|
className: t,
|
|
@@ -2701,16 +2668,16 @@ const Qo = ({
|
|
|
2701
2668
|
style: o,
|
|
2702
2669
|
...l
|
|
2703
2670
|
}) => {
|
|
2704
|
-
const a = L(), d = [Ut.section, t].filter(Boolean).join(" "), m = s || a.breakpoints.md, y = n || a.breakpoints.lg, h = ie(`(min-width: ${m})`), f = ie(`(min-width: ${y})`), b =
|
|
2671
|
+
const a = L(), d = [Ut.section, t].filter(Boolean).join(" "), m = s || a.breakpoints.md, y = n || a.breakpoints.lg, h = ie(`(min-width: ${m})`), f = ie(`(min-width: ${y})`), b = Ao({ columns: r, isMd: h, isLg: f }), C = {
|
|
2705
2672
|
"--section-padding-vertical": `calc(${a.fonts.rhythm} * 2)`
|
|
2706
2673
|
};
|
|
2707
2674
|
return /* @__PURE__ */ w(fr, { className: d, style: C, ...l, children: /* @__PURE__ */ w("div", { className: Ut.grid, style: { ...b, ...o }, children: e }) });
|
|
2708
|
-
},
|
|
2709
|
-
layoutContainer:
|
|
2710
|
-
content:
|
|
2711
|
-
main:
|
|
2712
|
-
mainPadded:
|
|
2713
|
-
},
|
|
2675
|
+
}, Po = "PageLayout-module__layoutContainer___diLdT", Do = "PageLayout-module__content___h2mBr", No = "PageLayout-module__main___Sw7Pv", Ro = "PageLayout-module__mainPadded___ZKio3", $e = {
|
|
2676
|
+
layoutContainer: Po,
|
|
2677
|
+
content: Do,
|
|
2678
|
+
main: No,
|
|
2679
|
+
mainPadded: Ro
|
|
2680
|
+
}, en = ({
|
|
2714
2681
|
children: e,
|
|
2715
2682
|
header: r,
|
|
2716
2683
|
footer: t,
|
|
@@ -2718,48 +2685,48 @@ const Qo = ({
|
|
|
2718
2685
|
className: n,
|
|
2719
2686
|
style: o
|
|
2720
2687
|
}) => {
|
|
2721
|
-
const l = L(), a = [
|
|
2688
|
+
const l = L(), a = [$e.layoutContainer, n].filter(Boolean).join(" "), d = [$e.main, s ? $e.mainPadded : ""].filter(Boolean).join(" "), m = s ? {
|
|
2722
2689
|
"--main-padding-vertical": `calc(${l.fonts.rhythm} * 1.4)`
|
|
2723
2690
|
} : void 0;
|
|
2724
2691
|
return /* @__PURE__ */ Q("div", { className: a, style: o, children: [
|
|
2725
|
-
/* @__PURE__ */ Q("div", { className:
|
|
2726
|
-
r && /* @__PURE__ */ w(
|
|
2692
|
+
/* @__PURE__ */ Q("div", { className: $e.content, children: [
|
|
2693
|
+
r && /* @__PURE__ */ w(oo, { children: r }),
|
|
2727
2694
|
/* @__PURE__ */ w("main", { className: d, style: m, children: e })
|
|
2728
2695
|
] }),
|
|
2729
2696
|
t && /* @__PURE__ */ w(Fo, { children: t })
|
|
2730
2697
|
] });
|
|
2731
2698
|
};
|
|
2732
2699
|
export {
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2700
|
+
To as Button,
|
|
2701
|
+
Io as CSSReset,
|
|
2702
|
+
Tr as Checkbox,
|
|
2703
|
+
Xo as FeatureCard,
|
|
2704
|
+
Yo as FeatureGridSection,
|
|
2738
2705
|
Fo as Footer,
|
|
2739
|
-
|
|
2740
|
-
|
|
2706
|
+
Ho as Form,
|
|
2707
|
+
qo as FormCheckbox,
|
|
2741
2708
|
Fs as FormError,
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2709
|
+
we as FormField,
|
|
2710
|
+
zs as FormGroup,
|
|
2711
|
+
Uo as FormInput,
|
|
2745
2712
|
et as FormLabel,
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2713
|
+
Go as FormRadio,
|
|
2714
|
+
Wo as FormSelect,
|
|
2715
|
+
jo as FormTextarea,
|
|
2716
|
+
eo as Hamburger,
|
|
2717
|
+
oo as Header,
|
|
2718
|
+
Jo as Hero,
|
|
2719
|
+
Ns as Input,
|
|
2720
|
+
uo as LoadingSpinner,
|
|
2721
|
+
en as PageLayout,
|
|
2722
|
+
Qs as Radio,
|
|
2723
|
+
Zo as ResponsiveNav,
|
|
2757
2724
|
fr as ResponsiveSection,
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2725
|
+
js as Select,
|
|
2726
|
+
Ko as Stack,
|
|
2727
|
+
Qo as StyleLoader,
|
|
2761
2728
|
Ms as Textarea,
|
|
2762
2729
|
Mo as ThemeProvider,
|
|
2763
|
-
|
|
2730
|
+
vs as useFormContext,
|
|
2764
2731
|
L as useTheme
|
|
2765
2732
|
};
|