digital-rabbit-cl 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
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 xr, useContext as Fr, useState as
|
|
4
|
-
const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT8P", zr = "Button-module__sizeDefault___iwWOV",
|
|
2
|
+
import { jsx as w, jsxs as Q, Fragment as Je } from "react/jsx-runtime";
|
|
3
|
+
import V, { createContext as xr, useContext as Fr, useState as Xe, useLayoutEffect as kr, useMemo as be, useSyncExternalStore as Vr, useRef as pt, useEffect as Ut } from "react";
|
|
4
|
+
const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT8P", zr = "Button-module__sizeDefault___iwWOV", ke = {
|
|
5
5
|
button: Cr,
|
|
6
6
|
sizeSmall: Er,
|
|
7
7
|
sizeDefault: zr
|
|
@@ -23,15 +23,15 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
23
23
|
color: m,
|
|
24
24
|
opacity: y
|
|
25
25
|
};
|
|
26
|
-
},
|
|
26
|
+
}, vt = {
|
|
27
27
|
primary: "#000",
|
|
28
28
|
secondary: "#FFF",
|
|
29
29
|
accent: "#4381C1",
|
|
30
30
|
error: "#F00",
|
|
31
31
|
success: "#008000",
|
|
32
32
|
warning: "#FFEB3B"
|
|
33
|
-
},
|
|
34
|
-
colors:
|
|
33
|
+
}, jt = {
|
|
34
|
+
colors: vt,
|
|
35
35
|
fonts: {
|
|
36
36
|
color: "#000",
|
|
37
37
|
lineHeight: 1.5,
|
|
@@ -49,11 +49,11 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
49
49
|
buttons: {
|
|
50
50
|
textColor: "#FFF",
|
|
51
51
|
primary: {
|
|
52
|
-
textColor:
|
|
52
|
+
textColor: vt.secondary
|
|
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 = xr(
|
|
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 = xr(jt), To = ({ theme: e = jt, children: r }) => /* @__PURE__ */ w(Wt.Provider, { value: e, children: r }), L = () => Fr(Wt), Io = ({
|
|
106
71
|
color: e,
|
|
107
72
|
hoverColor: r,
|
|
108
73
|
hoverTextColor: t,
|
|
@@ -116,7 +81,7 @@ 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 = {
|
|
@@ -135,9 +100,9 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
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
102
|
}, x = [
|
|
138
|
-
|
|
139
|
-
o === "small" ?
|
|
140
|
-
n ?
|
|
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",
|
|
@@ -157,15 +122,15 @@ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT
|
|
|
157
122
|
}
|
|
158
123
|
);
|
|
159
124
|
};
|
|
160
|
-
var
|
|
125
|
+
var bt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Ar = new Uint8Array(16);
|
|
161
126
|
function Pr() {
|
|
162
|
-
if (!
|
|
127
|
+
if (!bt)
|
|
163
128
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
164
|
-
return
|
|
129
|
+
return bt(Ar);
|
|
165
130
|
}
|
|
166
131
|
var qt = [];
|
|
167
|
-
for (var
|
|
168
|
-
qt[
|
|
132
|
+
for (var Ve = 0; Ve < 256; ++Ve)
|
|
133
|
+
qt[Ve] = (Ve + 256).toString(16).substr(1);
|
|
169
134
|
function Dr(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("");
|
|
@@ -179,7 +144,7 @@ function Gt(e, r, t) {
|
|
|
179
144
|
r[s + o] = n[o];
|
|
180
145
|
return r || Dr(n);
|
|
181
146
|
}
|
|
182
|
-
const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kkluC", Br = "Checkbox-module__label___cwRtI",
|
|
147
|
+
const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kkluC", Br = "Checkbox-module__label___cwRtI", Te = {
|
|
183
148
|
container: Nr,
|
|
184
149
|
svg: Rr,
|
|
185
150
|
label: Br
|
|
@@ -196,10 +161,10 @@ 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
|
-
}, Lr = "FormLabel-module__label___0M-fo",
|
|
164
|
+
}, Lr = "FormLabel-module__label___0M-fo", Mr = "FormLabel-module__disabled___ktIFp", St = {
|
|
200
165
|
label: Lr,
|
|
201
|
-
disabled:
|
|
202
|
-
},
|
|
166
|
+
disabled: Mr
|
|
167
|
+
}, Tr = ({
|
|
203
168
|
color: e = "#000",
|
|
204
169
|
disabled: r = !1,
|
|
205
170
|
fontSize: t = ".85em"
|
|
@@ -208,7 +173,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
208
173
|
fontSize: t,
|
|
209
174
|
opacity: r ? 0.5 : 1,
|
|
210
175
|
cursor: r ? "not-allowed" : "default"
|
|
211
|
-
}),
|
|
176
|
+
}), Ye = ({
|
|
212
177
|
children: e,
|
|
213
178
|
color: r,
|
|
214
179
|
disabled: t = !1,
|
|
@@ -218,7 +183,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
218
183
|
style: l,
|
|
219
184
|
...a
|
|
220
185
|
}) => {
|
|
221
|
-
const d = L(), m = d.colors.error, y = s ? m : r || d.colors.primary, h =
|
|
186
|
+
const d = L(), m = d.colors.error, y = s ? m : r || d.colors.primary, h = Tr({
|
|
222
187
|
color: y,
|
|
223
188
|
disabled: t,
|
|
224
189
|
fontSize: n || ".85em"
|
|
@@ -229,7 +194,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
229
194
|
opacity: h.opacity,
|
|
230
195
|
cursor: h.cursor,
|
|
231
196
|
...l
|
|
232
|
-
}, b = [
|
|
197
|
+
}, b = [St.label, t ? St.disabled : ""].filter(Boolean).join(" ");
|
|
233
198
|
return /* @__PURE__ */ w("label", { className: b, htmlFor: o, style: f, ...a, children: e });
|
|
234
199
|
}, Ir = ({
|
|
235
200
|
checked: e = !1,
|
|
@@ -262,7 +227,7 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
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",
|
|
@@ -311,10 +276,10 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
311
276
|
}
|
|
312
277
|
),
|
|
313
278
|
d && /* @__PURE__ */ w(
|
|
314
|
-
|
|
279
|
+
Ye,
|
|
315
280
|
{
|
|
316
281
|
htmlFor: S,
|
|
317
|
-
className:
|
|
282
|
+
className: Te.label,
|
|
318
283
|
style: m,
|
|
319
284
|
color: x.boxColor,
|
|
320
285
|
disabled: s,
|
|
@@ -331,18 +296,18 @@ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kk
|
|
|
331
296
|
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
297
|
}, [e]), null;
|
|
333
298
|
};
|
|
334
|
-
var
|
|
299
|
+
var Se = (e) => e.type === "checkbox", ue = (e) => e instanceof Date, Z = (e) => e == null;
|
|
335
300
|
const Zt = (e) => typeof e == "object";
|
|
336
|
-
var H = (e) => !Z(e) && !Array.isArray(e) && Zt(e) && !
|
|
301
|
+
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, Hr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Kt = (e, r) => e.has(Hr(r)), Ur = (e) => {
|
|
337
302
|
const r = e.constructor && e.constructor.prototype;
|
|
338
303
|
return H(r) && r.hasOwnProperty("isPrototypeOf");
|
|
339
|
-
},
|
|
304
|
+
}, et = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
340
305
|
function U(e) {
|
|
341
306
|
let r;
|
|
342
307
|
const t = Array.isArray(e), s = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
343
308
|
if (e instanceof Date)
|
|
344
309
|
r = new Date(e);
|
|
345
|
-
else if (!(
|
|
310
|
+
else if (!(et && (e instanceof Blob || s)) && (t || H(e)))
|
|
346
311
|
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Ur(e))
|
|
347
312
|
r = e;
|
|
348
313
|
else
|
|
@@ -352,14 +317,14 @@ function U(e) {
|
|
|
352
317
|
return e;
|
|
353
318
|
return r;
|
|
354
319
|
}
|
|
355
|
-
var
|
|
320
|
+
var Ne = (e) => /^\w*$/.test(e), M = (e) => e === void 0, tt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], rt = (e) => tt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), p = (e, r, t) => {
|
|
356
321
|
if (!r || !H(e))
|
|
357
322
|
return t;
|
|
358
|
-
const s = (
|
|
359
|
-
return
|
|
323
|
+
const s = (Ne(r) ? [r] : rt(r)).reduce((n, o) => Z(n) ? n : n[o], e);
|
|
324
|
+
return M(s) || s === e ? M(e[r]) ? t : e[r] : s;
|
|
360
325
|
}, K = (e) => typeof e == "boolean", D = (e, r, t) => {
|
|
361
326
|
let s = -1;
|
|
362
|
-
const n =
|
|
327
|
+
const n = Ne(r) ? [r] : rt(r), o = n.length, l = o - 1;
|
|
363
328
|
for (; ++s < o; ) {
|
|
364
329
|
const a = n[s];
|
|
365
330
|
let d = t;
|
|
@@ -372,7 +337,7 @@ var Re = (e) => /^\w*$/.test(e), T = (e) => e === void 0, rt = (e) => Array.isAr
|
|
|
372
337
|
e[a] = d, e = e[a];
|
|
373
338
|
}
|
|
374
339
|
};
|
|
375
|
-
const
|
|
340
|
+
const Ae = {
|
|
376
341
|
BLUR: "blur",
|
|
377
342
|
FOCUS_OUT: "focusout",
|
|
378
343
|
CHANGE: "change"
|
|
@@ -392,7 +357,7 @@ const Pe = {
|
|
|
392
357
|
validate: "validate"
|
|
393
358
|
}, Jt = V.createContext(null);
|
|
394
359
|
Jt.displayName = "HookFormContext";
|
|
395
|
-
const
|
|
360
|
+
const st = () => V.useContext(Jt);
|
|
396
361
|
var Xt = (e, r, t, s = !0) => {
|
|
397
362
|
const n = {
|
|
398
363
|
defaultValues: r._defaultValues
|
|
@@ -406,9 +371,9 @@ var Xt = (e, r, t, s = !0) => {
|
|
|
406
371
|
});
|
|
407
372
|
return n;
|
|
408
373
|
};
|
|
409
|
-
const
|
|
374
|
+
const ot = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
|
|
410
375
|
function jr(e) {
|
|
411
|
-
const r =
|
|
376
|
+
const r = st(), { control: t = r.control, disabled: s, name: n, exact: o } = e || {}, [l, a] = V.useState(t._formState), d = V.useRef({
|
|
412
377
|
isDirty: !1,
|
|
413
378
|
isLoading: !1,
|
|
414
379
|
dirtyFields: !1,
|
|
@@ -418,7 +383,7 @@ function jr(e) {
|
|
|
418
383
|
isValid: !1,
|
|
419
384
|
errors: !1
|
|
420
385
|
});
|
|
421
|
-
return
|
|
386
|
+
return ot(() => t._subscribe({
|
|
422
387
|
name: n,
|
|
423
388
|
formState: d.current,
|
|
424
389
|
exact: o,
|
|
@@ -432,11 +397,11 @@ function jr(e) {
|
|
|
432
397
|
d.current.isValid && t._setValid(!0);
|
|
433
398
|
}, [t]), V.useMemo(() => Xt(l, t, d.current, !1), [l, t]);
|
|
434
399
|
}
|
|
435
|
-
var J = (e) => typeof e == "string",
|
|
400
|
+
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
401
|
function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
437
|
-
if (
|
|
402
|
+
if (Ze(e) || Ze(r))
|
|
438
403
|
return e === r;
|
|
439
|
-
if (
|
|
404
|
+
if (ue(e) && ue(r))
|
|
440
405
|
return e.getTime() === r.getTime();
|
|
441
406
|
const s = Object.keys(e), n = Object.keys(r);
|
|
442
407
|
if (s.length !== n.length)
|
|
@@ -450,24 +415,24 @@ function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
450
415
|
return !1;
|
|
451
416
|
if (o !== "ref") {
|
|
452
417
|
const a = r[o];
|
|
453
|
-
if (
|
|
418
|
+
if (ue(l) && ue(a) || H(l) && H(a) || Array.isArray(l) && Array.isArray(a) ? !te(l, a, t) : l !== a)
|
|
454
419
|
return !1;
|
|
455
420
|
}
|
|
456
421
|
}
|
|
457
422
|
return !0;
|
|
458
423
|
}
|
|
459
424
|
function Wr(e) {
|
|
460
|
-
const r =
|
|
425
|
+
const r = st(), { 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
426
|
m.current = a;
|
|
462
427
|
const [b, C] = V.useState(() => {
|
|
463
428
|
const z = t._getWatch(s, d.current);
|
|
464
429
|
return m.current ? m.current(z) : z;
|
|
465
430
|
}), S = V.useCallback((z) => {
|
|
466
|
-
const E =
|
|
431
|
+
const E = Ge(s, t._names, z || t._formValues, !1, d.current);
|
|
467
432
|
return m.current ? m.current(E) : E;
|
|
468
433
|
}, [t._formValues, t._names, s]), k = V.useCallback((z) => {
|
|
469
434
|
if (!o) {
|
|
470
|
-
const E =
|
|
435
|
+
const E = Ge(s, t._names, z || t._formValues, !1, d.current);
|
|
471
436
|
if (m.current) {
|
|
472
437
|
const O = m.current(E);
|
|
473
438
|
te(O, y.current) || (C(O), y.current = O);
|
|
@@ -475,7 +440,7 @@ function Wr(e) {
|
|
|
475
440
|
C(E);
|
|
476
441
|
}
|
|
477
442
|
}, [t._formValues, t._names, o, s]);
|
|
478
|
-
|
|
443
|
+
ot(() => ((h.current !== t || !te(f.current, s)) && (h.current = t, f.current = s, k()), t._subscribe({
|
|
479
444
|
name: s,
|
|
480
445
|
formState: {
|
|
481
446
|
values: !0
|
|
@@ -494,7 +459,7 @@ function Wr(e) {
|
|
|
494
459
|
return $ !== null ? $ : b;
|
|
495
460
|
}
|
|
496
461
|
function qr(e) {
|
|
497
|
-
const r =
|
|
462
|
+
const r = st(), { 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 = Wr({
|
|
498
463
|
control: n,
|
|
499
464
|
name: t,
|
|
500
465
|
defaultValue: d,
|
|
@@ -535,13 +500,13 @@ function qr(e) {
|
|
|
535
500
|
value: Qt($),
|
|
536
501
|
name: t
|
|
537
502
|
},
|
|
538
|
-
type:
|
|
503
|
+
type: Ae.CHANGE
|
|
539
504
|
}), [t]), k = V.useCallback(() => b.current.onBlur({
|
|
540
505
|
target: {
|
|
541
506
|
value: p(n._formValues, t),
|
|
542
507
|
name: t
|
|
543
508
|
},
|
|
544
|
-
type:
|
|
509
|
+
type: Ae.BLUR
|
|
545
510
|
}), [t, n._formValues]), R = V.useCallback(($) => {
|
|
546
511
|
const z = p(n._fields, t);
|
|
547
512
|
z && $ && (z._f.ref = {
|
|
@@ -570,7 +535,7 @@ function qr(e) {
|
|
|
570
535
|
};
|
|
571
536
|
if (E(t, !0), $) {
|
|
572
537
|
const O = U(p(n._options.defaultValues, t, h.current.defaultValue));
|
|
573
|
-
D(n._defaultValues, t, O),
|
|
538
|
+
D(n._defaultValues, t, O), M(p(n._formValues, t)) && D(n._formValues, t, O);
|
|
574
539
|
}
|
|
575
540
|
return !a && n.register(t), f.current = t, () => {
|
|
576
541
|
(a ? $ && !n._state.action : $) ? n.unregister(t) : E(t, !1);
|
|
@@ -586,13 +551,13 @@ function qr(e) {
|
|
|
586
551
|
fieldState: C
|
|
587
552
|
}), [x, y, C]);
|
|
588
553
|
}
|
|
589
|
-
var
|
|
554
|
+
var nt = (e, r, t, s, n) => r ? {
|
|
590
555
|
...t[e],
|
|
591
556
|
types: {
|
|
592
557
|
...t[e] && t[e].types ? t[e].types : {},
|
|
593
558
|
[s]: n || !0
|
|
594
559
|
}
|
|
595
|
-
} : {},
|
|
560
|
+
} : {}, pe = (e) => Array.isArray(e) ? e : [e], wt = () => {
|
|
596
561
|
let e = [];
|
|
597
562
|
return {
|
|
598
563
|
get observers() {
|
|
@@ -624,27 +589,27 @@ function Yt(e, r) {
|
|
|
624
589
|
}
|
|
625
590
|
return t;
|
|
626
591
|
}
|
|
627
|
-
var W = (e) => H(e) && !Object.keys(e).length,
|
|
628
|
-
if (!
|
|
592
|
+
var W = (e) => H(e) && !Object.keys(e).length, it = (e) => e.type === "file", re = (e) => typeof e == "function", Pe = (e) => {
|
|
593
|
+
if (!et)
|
|
629
594
|
return !1;
|
|
630
595
|
const r = e ? e.ownerDocument : 0;
|
|
631
596
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
632
|
-
}, er = (e) => e.type === "select-multiple",
|
|
597
|
+
}, er = (e) => e.type === "select-multiple", at = (e) => e.type === "radio", Gr = (e) => at(e) || Se(e), Ie = (e) => Pe(e) && e.isConnected;
|
|
633
598
|
function Zr(e, r) {
|
|
634
599
|
const t = r.slice(0, -1).length;
|
|
635
600
|
let s = 0;
|
|
636
601
|
for (; s < t; )
|
|
637
|
-
e =
|
|
602
|
+
e = M(e) ? s++ : e[r[s++]];
|
|
638
603
|
return e;
|
|
639
604
|
}
|
|
640
605
|
function Qr(e) {
|
|
641
606
|
for (const r in e)
|
|
642
|
-
if (e.hasOwnProperty(r) && !
|
|
607
|
+
if (e.hasOwnProperty(r) && !M(e[r]))
|
|
643
608
|
return !1;
|
|
644
609
|
return !0;
|
|
645
610
|
}
|
|
646
611
|
function I(e, r) {
|
|
647
|
-
const t = Array.isArray(r) ? r :
|
|
612
|
+
const t = Array.isArray(r) ? r : Ne(r) ? [r] : rt(r), s = t.length === 1 ? e : Zr(e, t), n = t.length - 1, o = t[n];
|
|
648
613
|
return s && delete s[o], n !== 0 && (H(s) && W(s) || Array.isArray(s) && Qr(s)) && I(e, t.slice(0, -1)), e;
|
|
649
614
|
}
|
|
650
615
|
var Kr = (e) => {
|
|
@@ -656,21 +621,21 @@ var Kr = (e) => {
|
|
|
656
621
|
function tr(e) {
|
|
657
622
|
return Array.isArray(e) || H(e) && !Kr(e);
|
|
658
623
|
}
|
|
659
|
-
function
|
|
624
|
+
function Qe(e, r = {}) {
|
|
660
625
|
for (const t in e)
|
|
661
|
-
tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {},
|
|
626
|
+
tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, Qe(e[t], r[t])) : M(e[t]) || (r[t] = !0);
|
|
662
627
|
return r;
|
|
663
628
|
}
|
|
664
|
-
function
|
|
665
|
-
t || (t =
|
|
629
|
+
function me(e, r, t) {
|
|
630
|
+
t || (t = Qe(r));
|
|
666
631
|
for (const s in e)
|
|
667
|
-
tr(e[s]) ?
|
|
632
|
+
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
633
|
return t;
|
|
669
634
|
}
|
|
670
|
-
const
|
|
635
|
+
const xt = {
|
|
671
636
|
value: !1,
|
|
672
637
|
isValid: !1
|
|
673
|
-
},
|
|
638
|
+
}, Ft = { value: !0, isValid: !0 };
|
|
674
639
|
var rr = (e) => {
|
|
675
640
|
if (Array.isArray(e)) {
|
|
676
641
|
if (e.length > 1) {
|
|
@@ -679,22 +644,22 @@ var rr = (e) => {
|
|
|
679
644
|
}
|
|
680
645
|
return e[0].checked && !e[0].disabled ? (
|
|
681
646
|
// @ts-expect-error expected to work in the browser
|
|
682
|
-
e[0].attributes && !
|
|
683
|
-
) :
|
|
647
|
+
e[0].attributes && !M(e[0].attributes.value) ? M(e[0].value) || e[0].value === "" ? Ft : { value: e[0].value, isValid: !0 } : Ft
|
|
648
|
+
) : xt;
|
|
684
649
|
}
|
|
685
|
-
return
|
|
686
|
-
}, sr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) =>
|
|
687
|
-
const
|
|
650
|
+
return xt;
|
|
651
|
+
}, 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;
|
|
652
|
+
const kt = {
|
|
688
653
|
isValid: !1,
|
|
689
654
|
value: null
|
|
690
655
|
};
|
|
691
656
|
var or = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
|
|
692
657
|
isValid: !0,
|
|
693
658
|
value: t.value
|
|
694
|
-
} : r,
|
|
695
|
-
function
|
|
659
|
+
} : r, kt) : kt;
|
|
660
|
+
function Vt(e) {
|
|
696
661
|
const r = e.ref;
|
|
697
|
-
return
|
|
662
|
+
return it(r) ? r.files : at(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
663
|
}
|
|
699
664
|
var Jr = (e, r, t, s) => {
|
|
700
665
|
const n = {};
|
|
@@ -708,16 +673,16 @@ var Jr = (e, r, t, s) => {
|
|
|
708
673
|
fields: n,
|
|
709
674
|
shouldUseNativeValidation: s
|
|
710
675
|
};
|
|
711
|
-
},
|
|
676
|
+
}, 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, Ct = (e) => ({
|
|
712
677
|
isOnSubmit: !e || e === ee.onSubmit,
|
|
713
678
|
isOnBlur: e === ee.onBlur,
|
|
714
679
|
isOnChange: e === ee.onChange,
|
|
715
680
|
isOnAll: e === ee.all,
|
|
716
681
|
isOnTouch: e === ee.onTouched
|
|
717
682
|
});
|
|
718
|
-
const
|
|
719
|
-
var Xr = (e) => !!e && !!e.validate && !!(re(e.validate) && e.validate.constructor.name ===
|
|
720
|
-
const
|
|
683
|
+
const Et = "AsyncFunction";
|
|
684
|
+
var Xr = (e) => !!e && !!e.validate && !!(re(e.validate) && e.validate.constructor.name === Et || H(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Et)), Yr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), zt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
|
|
685
|
+
const ve = (e, r, t, s) => {
|
|
721
686
|
for (const n of t || Object.keys(e)) {
|
|
722
687
|
const o = p(e, n);
|
|
723
688
|
if (o) {
|
|
@@ -727,16 +692,16 @@ const be = (e, r, t, s) => {
|
|
|
727
692
|
return !0;
|
|
728
693
|
if (l.ref && r(l.ref, l.name) && !s)
|
|
729
694
|
return !0;
|
|
730
|
-
if (
|
|
695
|
+
if (ve(a, r))
|
|
731
696
|
break;
|
|
732
|
-
} else if (H(a) &&
|
|
697
|
+
} else if (H(a) && ve(a, r))
|
|
733
698
|
break;
|
|
734
699
|
}
|
|
735
700
|
}
|
|
736
701
|
};
|
|
737
|
-
function
|
|
702
|
+
function $t(e, r, t) {
|
|
738
703
|
const s = p(e, t);
|
|
739
|
-
if (s ||
|
|
704
|
+
if (s || Ne(t))
|
|
740
705
|
return {
|
|
741
706
|
error: s,
|
|
742
707
|
name: t
|
|
@@ -766,11 +731,11 @@ var es = (e, r, t, s) => {
|
|
|
766
731
|
t(e);
|
|
767
732
|
const { name: n, ...o } = e;
|
|
768
733
|
return W(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((l) => r[l] === (!s || ee.all));
|
|
769
|
-
}, ts = (e, r, t) => !e || !r || e === r ||
|
|
770
|
-
const s =
|
|
734
|
+
}, ts = (e, r, t) => !e || !r || e === r || pe(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), rs = (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, ss = (e, r) => !tt(p(e, r)).length && I(e, r), os = (e, r, t) => {
|
|
735
|
+
const s = pe(p(e, t));
|
|
771
736
|
return D(s, "root", r[t]), D(e, t, s), e;
|
|
772
737
|
};
|
|
773
|
-
function
|
|
738
|
+
function At(e, r, t = "validate") {
|
|
774
739
|
if (J(e) || Array.isArray(e) && e.every(J) || K(e) && !e)
|
|
775
740
|
return {
|
|
776
741
|
type: t,
|
|
@@ -778,17 +743,17 @@ function Pt(e, r, t = "validate") {
|
|
|
778
743
|
ref: r
|
|
779
744
|
};
|
|
780
745
|
}
|
|
781
|
-
var
|
|
746
|
+
var fe = (e) => H(e) && !De(e) ? e : {
|
|
782
747
|
value: e,
|
|
783
748
|
message: ""
|
|
784
|
-
},
|
|
749
|
+
}, Pt = async (e, r, t, s, n, o) => {
|
|
785
750
|
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, x = p(t, S);
|
|
786
751
|
if (!R || r.has(S))
|
|
787
752
|
return {};
|
|
788
753
|
const $ = a ? a[0] : l, z = (A) => {
|
|
789
754
|
n && $.reportValidity && ($.setCustomValidity(K(A) ? "" : A || ""), $.reportValidity());
|
|
790
|
-
}, E = {}, O =
|
|
791
|
-
const ne = A ? N :
|
|
755
|
+
}, E = {}, O = at(l), X = Se(l), ae = O || X, q = (k || it(l)) && M(l.value) && M(x) || Pe(l) && l.value === "" || x === "" || Array.isArray(x) && !x.length, se = nt.bind(null, S, s, E), oe = (A, N, T, j = le.maxLength, G = le.minLength) => {
|
|
756
|
+
const ne = A ? N : T;
|
|
792
757
|
E[S] = {
|
|
793
758
|
type: A ? j : G,
|
|
794
759
|
message: ne,
|
|
@@ -797,7 +762,7 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
797
762
|
};
|
|
798
763
|
};
|
|
799
764
|
if (o ? !Array.isArray(x) || !x.length : d && (!ae && (q || Z(x)) || K(x) && !x || X && !rr(a).isValid || O && !or(a).isValid)) {
|
|
800
|
-
const { value: A, message: N } = J(d) ? { value: !!d, message: d } :
|
|
765
|
+
const { value: A, message: N } = J(d) ? { value: !!d, message: d } : fe(d);
|
|
801
766
|
if (A && (E[S] = {
|
|
802
767
|
type: le.required,
|
|
803
768
|
message: N,
|
|
@@ -808,25 +773,25 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
808
773
|
}
|
|
809
774
|
if (!q && (!Z(h) || !Z(f))) {
|
|
810
775
|
let A, N;
|
|
811
|
-
const
|
|
776
|
+
const T = fe(f), j = fe(h);
|
|
812
777
|
if (!Z(x) && !isNaN(x)) {
|
|
813
778
|
const G = l.valueAsNumber || x && +x;
|
|
814
|
-
Z(
|
|
779
|
+
Z(T.value) || (A = G > T.value), Z(j.value) || (N = G < j.value);
|
|
815
780
|
} else {
|
|
816
|
-
const G = l.valueAsDate || new Date(x), ne = (
|
|
817
|
-
J(
|
|
781
|
+
const G = l.valueAsDate || new Date(x), ne = (xe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + xe), he = l.type == "time", de = l.type == "week";
|
|
782
|
+
J(T.value) && x && (A = he ? ne(x) > ne(T.value) : de ? x > T.value : G > new Date(T.value)), J(j.value) && x && (N = he ? ne(x) < ne(j.value) : de ? x < j.value : G < new Date(j.value));
|
|
818
783
|
}
|
|
819
|
-
if ((A || N) && (oe(!!A,
|
|
784
|
+
if ((A || N) && (oe(!!A, T.message, j.message, le.max, le.min), !s))
|
|
820
785
|
return z(E[S].message), E;
|
|
821
786
|
}
|
|
822
787
|
if ((m || y) && !q && (J(x) || o && Array.isArray(x))) {
|
|
823
|
-
const A =
|
|
824
|
-
if ((
|
|
788
|
+
const A = fe(m), N = fe(y), T = !Z(A.value) && x.length > +A.value, j = !Z(N.value) && x.length < +N.value;
|
|
789
|
+
if ((T || j) && (oe(T, A.message, N.message), !s))
|
|
825
790
|
return z(E[S].message), E;
|
|
826
791
|
}
|
|
827
792
|
if (b && !q && J(x)) {
|
|
828
|
-
const { value: A, message: N } =
|
|
829
|
-
if (
|
|
793
|
+
const { value: A, message: N } = fe(b);
|
|
794
|
+
if (De(A) && !x.match(A) && (E[S] = {
|
|
830
795
|
type: le.pattern,
|
|
831
796
|
message: N,
|
|
832
797
|
ref: l,
|
|
@@ -836,7 +801,7 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
836
801
|
}
|
|
837
802
|
if (C) {
|
|
838
803
|
if (re(C)) {
|
|
839
|
-
const A = await C(x, t), N =
|
|
804
|
+
const A = await C(x, t), N = At(A, $);
|
|
840
805
|
if (N && (E[S] = {
|
|
841
806
|
...N,
|
|
842
807
|
...se(le.validate, N.message)
|
|
@@ -847,11 +812,11 @@ var ye = (e) => H(e) && !Ne(e) ? e : {
|
|
|
847
812
|
for (const N in C) {
|
|
848
813
|
if (!W(A) && !s)
|
|
849
814
|
break;
|
|
850
|
-
const
|
|
851
|
-
|
|
852
|
-
...
|
|
853
|
-
...se(N,
|
|
854
|
-
}, z(
|
|
815
|
+
const T = At(await C[N](x, t), $, N);
|
|
816
|
+
T && (A = {
|
|
817
|
+
...T,
|
|
818
|
+
...se(N, T.message)
|
|
819
|
+
}, z(T.message), s && (E[S] = A));
|
|
855
820
|
}
|
|
856
821
|
if (!W(A) && (E[S] = {
|
|
857
822
|
ref: $,
|
|
@@ -910,8 +875,8 @@ function is(e = {}) {
|
|
|
910
875
|
...y
|
|
911
876
|
};
|
|
912
877
|
const f = {
|
|
913
|
-
array:
|
|
914
|
-
state:
|
|
878
|
+
array: wt(),
|
|
879
|
+
state: wt()
|
|
915
880
|
}, b = r.criteriaMode === ee.all, C = (i) => (c) => {
|
|
916
881
|
clearTimeout(m), m = setTimeout(i, c);
|
|
917
882
|
}, S = async (i) => {
|
|
@@ -942,7 +907,7 @@ function is(e = {}) {
|
|
|
942
907
|
const F = u(p(t.touchedFields, i), v.argA, v.argB);
|
|
943
908
|
g && D(t.touchedFields, i, F);
|
|
944
909
|
}
|
|
945
|
-
(y.dirtyFields || h.dirtyFields) && (t.dirtyFields =
|
|
910
|
+
(y.dirtyFields || h.dirtyFields) && (t.dirtyFields = me(n, o)), f.state.next({
|
|
946
911
|
name: i,
|
|
947
912
|
isDirty: oe(i, c),
|
|
948
913
|
dirtyFields: t.dirtyFields,
|
|
@@ -963,8 +928,8 @@ function is(e = {}) {
|
|
|
963
928
|
}, z = (i, c, u, v) => {
|
|
964
929
|
const g = p(s, i);
|
|
965
930
|
if (g) {
|
|
966
|
-
const _ = p(o, i,
|
|
967
|
-
|
|
931
|
+
const _ = p(o, i, M(u) ? p(n, i) : u);
|
|
932
|
+
M(_) || v && v.defaultChecked || c ? D(o, i, c ? _ : Vt(g._f)) : T(i, _), l.mount && S();
|
|
968
933
|
}
|
|
969
934
|
}, E = (i, c, u, v, g) => {
|
|
970
935
|
let _ = !1, F = !1;
|
|
@@ -1022,7 +987,7 @@ function is(e = {}) {
|
|
|
1022
987
|
if (_) {
|
|
1023
988
|
const P = a.array.has(_.name), B = g._f && Xr(g._f);
|
|
1024
989
|
B && y.validatingFields && k([_.name], !0);
|
|
1025
|
-
const Y = await
|
|
990
|
+
const Y = await Pt(g, a.disabled, o, b, r.shouldUseNativeValidation && !c, P);
|
|
1026
991
|
if (B && y.validatingFields && k([_.name]), Y[_.name] && (u.valid = !1, c))
|
|
1027
992
|
break;
|
|
1028
993
|
!c && (p(Y, _.name) ? P ? os(t.errors, Y, _.name) : D(t.errors, _.name, Y[_.name]) : I(t.errors, _.name));
|
|
@@ -1034,30 +999,30 @@ function is(e = {}) {
|
|
|
1034
999
|
}, se = () => {
|
|
1035
1000
|
for (const i of a.unMount) {
|
|
1036
1001
|
const c = p(s, i);
|
|
1037
|
-
c && (c._f.refs ? c._f.refs.every((u) => !
|
|
1002
|
+
c && (c._f.refs ? c._f.refs.every((u) => !Ie(u)) : !Ie(c._f.ref)) && Re(i);
|
|
1038
1003
|
}
|
|
1039
1004
|
a.unMount = /* @__PURE__ */ new Set();
|
|
1040
|
-
}, oe = (i, c) => !r.disabled && (i && c && D(o, i, c), !te(
|
|
1041
|
-
...l.mount ? o :
|
|
1042
|
-
}, u, c), N = (i) =>
|
|
1005
|
+
}, oe = (i, c) => !r.disabled && (i && c && D(o, i, c), !te(xe(), n)), A = (i, c, u) => Ge(i, a, {
|
|
1006
|
+
...l.mount ? o : M(c) ? n : J(i) ? { [i]: c } : c
|
|
1007
|
+
}, u, c), N = (i) => tt(p(l.mount ? o : n, i, r.shouldUnregister ? p(n, i, []) : [])), T = (i, c, u = {}) => {
|
|
1043
1008
|
const v = p(s, i);
|
|
1044
1009
|
let g = c;
|
|
1045
1010
|
if (v) {
|
|
1046
1011
|
const _ = v._f;
|
|
1047
|
-
_ && (!_.disabled && D(o, i, sr(c, _)), g =
|
|
1012
|
+
_ && (!_.disabled && D(o, i, sr(c, _)), g = Pe(_.ref) && Z(c) ? "" : c, er(_.ref) ? [..._.ref.options].forEach((F) => F.selected = g.includes(F.value)) : _.refs ? Se(_.ref) ? _.refs.forEach((F) => {
|
|
1048
1013
|
(!F.defaultChecked || !F.disabled) && (Array.isArray(g) ? F.checked = !!g.find((P) => P === F.value) : F.checked = g === F.value || !!g);
|
|
1049
|
-
}) : _.refs.forEach((F) => F.checked = F.value === g) :
|
|
1014
|
+
}) : _.refs.forEach((F) => F.checked = F.value === g) : it(_.ref) ? _.ref.value = "" : (_.ref.value = g, _.ref.type || f.state.next({
|
|
1050
1015
|
name: i,
|
|
1051
1016
|
values: U(o)
|
|
1052
1017
|
})));
|
|
1053
1018
|
}
|
|
1054
|
-
(u.shouldDirty || u.shouldTouch) && E(i, g, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate &&
|
|
1019
|
+
(u.shouldDirty || u.shouldTouch) && E(i, g, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && de(i);
|
|
1055
1020
|
}, j = (i, c, u) => {
|
|
1056
1021
|
for (const v in c) {
|
|
1057
1022
|
if (!c.hasOwnProperty(v))
|
|
1058
1023
|
return;
|
|
1059
1024
|
const g = c[v], _ = i + "." + v, F = p(s, _);
|
|
1060
|
-
(a.array.has(i) || H(g) || F && !F._f) && !
|
|
1025
|
+
(a.array.has(i) || H(g) || F && !F._f) && !ue(g) ? j(_, g, u) : T(_, g, u);
|
|
1061
1026
|
}
|
|
1062
1027
|
}, G = (i, c, u = {}) => {
|
|
1063
1028
|
const v = p(s, i), g = a.array.has(i), _ = U(c);
|
|
@@ -1066,9 +1031,9 @@ function is(e = {}) {
|
|
|
1066
1031
|
values: U(o)
|
|
1067
1032
|
}), (y.isDirty || y.dirtyFields || h.isDirty || h.dirtyFields) && u.shouldDirty && f.state.next({
|
|
1068
1033
|
name: i,
|
|
1069
|
-
dirtyFields:
|
|
1034
|
+
dirtyFields: me(n, o),
|
|
1070
1035
|
isDirty: oe(i, _)
|
|
1071
|
-
})) : v && !v._f && !Z(_) ? j(i, _, u) :
|
|
1036
|
+
})) : v && !v._f && !Z(_) ? j(i, _, u) : T(i, _, u), zt(i, a) && f.state.next({ ...t, name: i }), f.state.next({
|
|
1072
1037
|
name: l.mount ? i : void 0,
|
|
1073
1038
|
values: U(o)
|
|
1074
1039
|
});
|
|
@@ -1077,37 +1042,37 @@ function is(e = {}) {
|
|
|
1077
1042
|
const c = i.target;
|
|
1078
1043
|
let u = c.name, v = !0;
|
|
1079
1044
|
const g = p(s, u), _ = (B) => {
|
|
1080
|
-
v = Number.isNaN(B) ||
|
|
1081
|
-
}, F =
|
|
1045
|
+
v = Number.isNaN(B) || ue(B) && isNaN(B.getTime()) || te(B, p(o, u, B));
|
|
1046
|
+
}, F = Ct(r.mode), P = Ct(r.reValidateMode);
|
|
1082
1047
|
if (g) {
|
|
1083
1048
|
let B, Y;
|
|
1084
|
-
const
|
|
1085
|
-
D(o, u,
|
|
1086
|
-
const Me = E(u,
|
|
1087
|
-
if (!
|
|
1049
|
+
const Fe = c.type ? Vt(g._f) : Qt(i), ce = i.type === Ae.BLUR || i.type === Ae.FOCUS_OUT, br = !Yr(g._f) && !r.resolver && !p(t.errors, u) && !g._f.deps || rs(ce, p(t.touchedFields, u), t.isSubmitted, P, F), Le = zt(u, a, ce);
|
|
1050
|
+
D(o, u, Fe), ce ? (!c || !c.readOnly) && (g._f.onBlur && g._f.onBlur(i), d && d(0)) : g._f.onChange && g._f.onChange(i);
|
|
1051
|
+
const Me = E(u, Fe, ce), Sr = !W(Me) || Le;
|
|
1052
|
+
if (!ce && f.state.next({
|
|
1088
1053
|
name: u,
|
|
1089
1054
|
type: i.type,
|
|
1090
1055
|
values: U(o)
|
|
1091
1056
|
}), br)
|
|
1092
|
-
return (y.isValid || h.isValid) && (r.mode === "onBlur" ?
|
|
1093
|
-
if (!
|
|
1094
|
-
const { errors:
|
|
1095
|
-
if (_(
|
|
1096
|
-
const wr =
|
|
1097
|
-
B =
|
|
1057
|
+
return (y.isValid || h.isValid) && (r.mode === "onBlur" ? ce && S() : ce || S()), Sr && f.state.next({ name: u, ...Le ? {} : Me });
|
|
1058
|
+
if (!ce && Le && f.state.next({ ...t }), r.resolver) {
|
|
1059
|
+
const { errors: _t } = await X([u]);
|
|
1060
|
+
if (_(Fe), v) {
|
|
1061
|
+
const wr = $t(t.errors, s, u), gt = $t(_t, s, wr.name || u);
|
|
1062
|
+
B = gt.error, u = gt.name, Y = W(_t);
|
|
1098
1063
|
}
|
|
1099
1064
|
} else
|
|
1100
|
-
k([u], !0), B = (await
|
|
1101
|
-
v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) &&
|
|
1065
|
+
k([u], !0), B = (await Pt(g, a.disabled, o, b, r.shouldUseNativeValidation))[u], k([u]), _(Fe), v && (B ? Y = !1 : (y.isValid || h.isValid) && (Y = await q(s, !0)));
|
|
1066
|
+
v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) && de(g._f.deps), O(u, Y, B, Me));
|
|
1102
1067
|
}
|
|
1103
|
-
},
|
|
1068
|
+
}, he = (i, c) => {
|
|
1104
1069
|
if (p(t.errors, c) && i.focus)
|
|
1105
1070
|
return i.focus(), 1;
|
|
1106
|
-
},
|
|
1071
|
+
}, de = async (i, c = {}) => {
|
|
1107
1072
|
let u, v;
|
|
1108
|
-
const g =
|
|
1073
|
+
const g = pe(i);
|
|
1109
1074
|
if (r.resolver) {
|
|
1110
|
-
const _ = await ae(
|
|
1075
|
+
const _ = await ae(M(i) ? i : g);
|
|
1111
1076
|
u = W(_), v = i ? !g.some((F) => p(_, F)) : u;
|
|
1112
1077
|
} else i ? (v = (await Promise.all(g.map(async (_) => {
|
|
1113
1078
|
const F = p(s, _);
|
|
@@ -1117,23 +1082,23 @@ function is(e = {}) {
|
|
|
1117
1082
|
...!J(i) || (y.isValid || h.isValid) && u !== t.isValid ? {} : { name: i },
|
|
1118
1083
|
...r.resolver || !i ? { isValid: u } : {},
|
|
1119
1084
|
errors: t.errors
|
|
1120
|
-
}), c.shouldFocus && !v &&
|
|
1121
|
-
},
|
|
1085
|
+
}), c.shouldFocus && !v && ve(s, he, i ? g : a.mount), v;
|
|
1086
|
+
}, xe = (i, c) => {
|
|
1122
1087
|
let u = {
|
|
1123
1088
|
...l.mount ? o : n
|
|
1124
1089
|
};
|
|
1125
|
-
return c && (u = Yt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)),
|
|
1126
|
-
},
|
|
1090
|
+
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));
|
|
1091
|
+
}, lt = (i, c) => ({
|
|
1127
1092
|
invalid: !!p((c || t).errors, i),
|
|
1128
1093
|
isDirty: !!p((c || t).dirtyFields, i),
|
|
1129
1094
|
error: p((c || t).errors, i),
|
|
1130
1095
|
isValidating: !!p(t.validatingFields, i),
|
|
1131
1096
|
isTouched: !!p((c || t).touchedFields, i)
|
|
1132
1097
|
}), yr = (i) => {
|
|
1133
|
-
i &&
|
|
1098
|
+
i && pe(i).forEach((c) => I(t.errors, c)), f.state.next({
|
|
1134
1099
|
errors: i ? t.errors : {}
|
|
1135
1100
|
});
|
|
1136
|
-
},
|
|
1101
|
+
}, ct = (i, c, u) => {
|
|
1137
1102
|
const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: _, message: F, type: P, ...B } = g;
|
|
1138
1103
|
D(t.errors, i, {
|
|
1139
1104
|
...B,
|
|
@@ -1146,7 +1111,7 @@ function is(e = {}) {
|
|
|
1146
1111
|
}), u && u.shouldFocus && v && v.focus && v.focus();
|
|
1147
1112
|
}, mr = (i, c) => re(i) ? f.state.subscribe({
|
|
1148
1113
|
next: (u) => "values" in u && i(A(void 0, c), u)
|
|
1149
|
-
}) : A(i, c, !0),
|
|
1114
|
+
}) : A(i, c, !0), ut = (i) => f.state.subscribe({
|
|
1150
1115
|
next: (c) => {
|
|
1151
1116
|
ts(i.name, c.name, i.exact) && es(c, i.formState || y, vr, i.reRenderRoot) && i.callback({
|
|
1152
1117
|
values: { ...o },
|
|
@@ -1158,11 +1123,11 @@ function is(e = {}) {
|
|
|
1158
1123
|
}).unsubscribe, hr = (i) => (l.mount = !0, h = {
|
|
1159
1124
|
...h,
|
|
1160
1125
|
...i.formState
|
|
1161
|
-
},
|
|
1126
|
+
}, ut({
|
|
1162
1127
|
...i,
|
|
1163
1128
|
formState: h
|
|
1164
|
-
})),
|
|
1165
|
-
for (const u of i ?
|
|
1129
|
+
})), Re = (i, c = {}) => {
|
|
1130
|
+
for (const u of i ? pe(i) : a.mount)
|
|
1166
1131
|
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
1132
|
f.state.next({
|
|
1168
1133
|
values: U(o)
|
|
@@ -1170,9 +1135,9 @@ function is(e = {}) {
|
|
|
1170
1135
|
...t,
|
|
1171
1136
|
...c.keepDirty ? { isDirty: oe() } : {}
|
|
1172
1137
|
}), !c.keepIsValid && S();
|
|
1173
|
-
},
|
|
1138
|
+
}, dt = ({ disabled: i, name: c }) => {
|
|
1174
1139
|
(K(i) && l.mount || i || a.disabled.has(c)) && (i ? a.disabled.add(c) : a.disabled.delete(c));
|
|
1175
|
-
},
|
|
1140
|
+
}, Be = (i, c = {}) => {
|
|
1176
1141
|
let u = p(s, i);
|
|
1177
1142
|
const v = K(c.disabled) || K(r.disabled);
|
|
1178
1143
|
return D(s, i, {
|
|
@@ -1183,26 +1148,26 @@ function is(e = {}) {
|
|
|
1183
1148
|
mount: !0,
|
|
1184
1149
|
...c
|
|
1185
1150
|
}
|
|
1186
|
-
}), a.mount.add(i), u ?
|
|
1151
|
+
}), a.mount.add(i), u ? dt({
|
|
1187
1152
|
disabled: K(c.disabled) ? c.disabled : r.disabled,
|
|
1188
1153
|
name: i
|
|
1189
1154
|
}) : z(i, !0, c.value), {
|
|
1190
1155
|
...v ? { disabled: c.disabled || r.disabled } : {},
|
|
1191
1156
|
...r.progressive ? {
|
|
1192
1157
|
required: !!c.required,
|
|
1193
|
-
min:
|
|
1194
|
-
max:
|
|
1195
|
-
minLength:
|
|
1196
|
-
maxLength:
|
|
1197
|
-
pattern:
|
|
1158
|
+
min: _e(c.min),
|
|
1159
|
+
max: _e(c.max),
|
|
1160
|
+
minLength: _e(c.minLength),
|
|
1161
|
+
maxLength: _e(c.maxLength),
|
|
1162
|
+
pattern: _e(c.pattern)
|
|
1198
1163
|
} : {},
|
|
1199
1164
|
name: i,
|
|
1200
1165
|
onChange: ne,
|
|
1201
1166
|
onBlur: ne,
|
|
1202
1167
|
ref: (g) => {
|
|
1203
1168
|
if (g) {
|
|
1204
|
-
|
|
1205
|
-
const _ =
|
|
1169
|
+
Be(i, c), u = p(s, i);
|
|
1170
|
+
const _ = M(g.value) && g.querySelectorAll && g.querySelectorAll("input,select,textarea")[0] || g, F = Gr(_), P = u._f.refs || [];
|
|
1206
1171
|
if (F ? P.find((B) => B === _) : _ === u._f.ref)
|
|
1207
1172
|
return;
|
|
1208
1173
|
D(s, i, {
|
|
@@ -1210,7 +1175,7 @@ function is(e = {}) {
|
|
|
1210
1175
|
...u._f,
|
|
1211
1176
|
...F ? {
|
|
1212
1177
|
refs: [
|
|
1213
|
-
...P.filter(
|
|
1178
|
+
...P.filter(Ie),
|
|
1214
1179
|
_,
|
|
1215
1180
|
...Array.isArray(p(n, i)) ? [{}] : []
|
|
1216
1181
|
],
|
|
@@ -1222,14 +1187,14 @@ function is(e = {}) {
|
|
|
1222
1187
|
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
1188
|
}
|
|
1224
1189
|
};
|
|
1225
|
-
},
|
|
1226
|
-
K(i) && (f.state.next({ disabled: i }),
|
|
1190
|
+
}, Oe = () => r.shouldFocusError && ve(s, he, a.mount), _r = (i) => {
|
|
1191
|
+
K(i) && (f.state.next({ disabled: i }), ve(s, (c, u) => {
|
|
1227
1192
|
const v = p(s, u);
|
|
1228
1193
|
v && (c.disabled = v._f.disabled || i, Array.isArray(v._f.refs) && v._f.refs.forEach((g) => {
|
|
1229
1194
|
g.disabled = v._f.disabled || i;
|
|
1230
1195
|
}));
|
|
1231
1196
|
}, 0, !1));
|
|
1232
|
-
},
|
|
1197
|
+
}, ft = (i, c) => async (u) => {
|
|
1233
1198
|
let v;
|
|
1234
1199
|
u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
|
|
1235
1200
|
let g = U(o);
|
|
@@ -1253,7 +1218,7 @@ function is(e = {}) {
|
|
|
1253
1218
|
v = _;
|
|
1254
1219
|
}
|
|
1255
1220
|
} else
|
|
1256
|
-
c && await c({ ...t.errors }, u),
|
|
1221
|
+
c && await c({ ...t.errors }, u), Oe(), setTimeout(Oe);
|
|
1257
1222
|
if (f.state.next({
|
|
1258
1223
|
isSubmitted: !0,
|
|
1259
1224
|
isSubmitting: !1,
|
|
@@ -1263,24 +1228,24 @@ function is(e = {}) {
|
|
|
1263
1228
|
}), v)
|
|
1264
1229
|
throw v;
|
|
1265
1230
|
}, gr = (i, c = {}) => {
|
|
1266
|
-
p(s, i) && (
|
|
1267
|
-
},
|
|
1231
|
+
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 }));
|
|
1232
|
+
}, yt = (i, c = {}) => {
|
|
1268
1233
|
const u = i ? U(i) : n, v = U(u), g = W(i), _ = g ? n : v;
|
|
1269
1234
|
if (c.keepDefaultValues || (n = u), !c.keepValues) {
|
|
1270
1235
|
if (c.keepDirtyValues) {
|
|
1271
1236
|
const F = /* @__PURE__ */ new Set([
|
|
1272
1237
|
...a.mount,
|
|
1273
|
-
...Object.keys(
|
|
1238
|
+
...Object.keys(me(n, o))
|
|
1274
1239
|
]);
|
|
1275
1240
|
for (const P of Array.from(F))
|
|
1276
1241
|
p(t.dirtyFields, P) ? D(_, P, p(o, P)) : G(P, p(_, P));
|
|
1277
1242
|
} else {
|
|
1278
|
-
if (
|
|
1243
|
+
if (et && M(i))
|
|
1279
1244
|
for (const F of a.mount) {
|
|
1280
1245
|
const P = p(s, F);
|
|
1281
1246
|
if (P && P._f) {
|
|
1282
1247
|
const B = Array.isArray(P._f.refs) ? P._f.refs[0] : P._f.ref;
|
|
1283
|
-
if (
|
|
1248
|
+
if (Pe(B)) {
|
|
1284
1249
|
const Y = B.closest("form");
|
|
1285
1250
|
if (Y) {
|
|
1286
1251
|
Y.reset();
|
|
@@ -1313,14 +1278,14 @@ function is(e = {}) {
|
|
|
1313
1278
|
submitCount: c.keepSubmitCount ? t.submitCount : 0,
|
|
1314
1279
|
isDirty: g ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !te(i, n)),
|
|
1315
1280
|
isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1316
|
-
dirtyFields: g ? {} : c.keepDirtyValues ? c.keepDefaultValues && o ?
|
|
1281
|
+
dirtyFields: g ? {} : c.keepDirtyValues ? c.keepDefaultValues && o ? me(n, o) : t.dirtyFields : c.keepDefaultValues && i ? me(n, i) : c.keepDirty ? t.dirtyFields : {},
|
|
1317
1282
|
touchedFields: c.keepTouched ? t.touchedFields : {},
|
|
1318
1283
|
errors: c.keepErrors ? t.errors : {},
|
|
1319
1284
|
isSubmitSuccessful: c.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
1320
1285
|
isSubmitting: !1,
|
|
1321
1286
|
defaultValues: n
|
|
1322
1287
|
});
|
|
1323
|
-
},
|
|
1288
|
+
}, mt = (i, c) => yt(re(i) ? i(o) : i, c), pr = (i, c = {}) => {
|
|
1324
1289
|
const u = p(s, i), v = u && u._f;
|
|
1325
1290
|
if (v) {
|
|
1326
1291
|
const g = v.refs ? v.refs[0] : v.ref;
|
|
@@ -1331,26 +1296,26 @@ function is(e = {}) {
|
|
|
1331
1296
|
...t,
|
|
1332
1297
|
...i
|
|
1333
1298
|
};
|
|
1334
|
-
},
|
|
1299
|
+
}, ht = {
|
|
1335
1300
|
control: {
|
|
1336
|
-
register:
|
|
1337
|
-
unregister:
|
|
1338
|
-
getFieldState:
|
|
1339
|
-
handleSubmit:
|
|
1340
|
-
setError:
|
|
1341
|
-
_subscribe:
|
|
1301
|
+
register: Be,
|
|
1302
|
+
unregister: Re,
|
|
1303
|
+
getFieldState: lt,
|
|
1304
|
+
handleSubmit: ft,
|
|
1305
|
+
setError: ct,
|
|
1306
|
+
_subscribe: ut,
|
|
1342
1307
|
_runSchema: X,
|
|
1343
|
-
_focusError:
|
|
1308
|
+
_focusError: Oe,
|
|
1344
1309
|
_getWatch: A,
|
|
1345
1310
|
_getDirty: oe,
|
|
1346
1311
|
_setValid: S,
|
|
1347
1312
|
_setFieldArray: R,
|
|
1348
|
-
_setDisabledField:
|
|
1313
|
+
_setDisabledField: dt,
|
|
1349
1314
|
_setErrors: $,
|
|
1350
1315
|
_getFieldArray: N,
|
|
1351
|
-
_reset:
|
|
1316
|
+
_reset: yt,
|
|
1352
1317
|
_resetDefaultValues: () => re(r.defaultValues) && r.defaultValues().then((i) => {
|
|
1353
|
-
|
|
1318
|
+
mt(i, r.resetOptions), f.state.next({
|
|
1354
1319
|
isLoading: !1
|
|
1355
1320
|
});
|
|
1356
1321
|
}),
|
|
@@ -1393,23 +1358,23 @@ function is(e = {}) {
|
|
|
1393
1358
|
}
|
|
1394
1359
|
},
|
|
1395
1360
|
subscribe: hr,
|
|
1396
|
-
trigger:
|
|
1397
|
-
register:
|
|
1398
|
-
handleSubmit:
|
|
1361
|
+
trigger: de,
|
|
1362
|
+
register: Be,
|
|
1363
|
+
handleSubmit: ft,
|
|
1399
1364
|
watch: mr,
|
|
1400
1365
|
setValue: G,
|
|
1401
|
-
getValues:
|
|
1402
|
-
reset:
|
|
1366
|
+
getValues: xe,
|
|
1367
|
+
reset: mt,
|
|
1403
1368
|
resetField: gr,
|
|
1404
1369
|
clearErrors: yr,
|
|
1405
|
-
unregister:
|
|
1406
|
-
setError:
|
|
1370
|
+
unregister: Re,
|
|
1371
|
+
setError: ct,
|
|
1407
1372
|
setFocus: pr,
|
|
1408
|
-
getFieldState:
|
|
1373
|
+
getFieldState: lt
|
|
1409
1374
|
};
|
|
1410
1375
|
return {
|
|
1411
|
-
...
|
|
1412
|
-
formControl:
|
|
1376
|
+
...ht,
|
|
1377
|
+
formControl: ht
|
|
1413
1378
|
};
|
|
1414
1379
|
}
|
|
1415
1380
|
function as(e = {}) {
|
|
@@ -1444,7 +1409,7 @@ function as(e = {}) {
|
|
|
1444
1409
|
};
|
|
1445
1410
|
}
|
|
1446
1411
|
const o = r.current.control;
|
|
1447
|
-
return o._options = e,
|
|
1412
|
+
return o._options = e, ot(() => {
|
|
1448
1413
|
const l = o._subscribe({
|
|
1449
1414
|
formState: o._proxyFormState,
|
|
1450
1415
|
callback: () => n({ ...o._formState }),
|
|
@@ -1478,18 +1443,18 @@ function as(e = {}) {
|
|
|
1478
1443
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
|
|
1479
1444
|
}), r.current.formState = Xt(s, o), r.current;
|
|
1480
1445
|
}
|
|
1481
|
-
const
|
|
1446
|
+
const Dt = (e, r, t) => {
|
|
1482
1447
|
if (e && "reportValidity" in e) {
|
|
1483
1448
|
const s = p(t, r);
|
|
1484
1449
|
e.setCustomValidity(s && s.message || ""), e.reportValidity();
|
|
1485
1450
|
}
|
|
1486
|
-
},
|
|
1451
|
+
}, Ke = (e, r) => {
|
|
1487
1452
|
for (const t in r.fields) {
|
|
1488
1453
|
const s = r.fields[t];
|
|
1489
|
-
s && s.ref && "reportValidity" in s.ref ?
|
|
1454
|
+
s && s.ref && "reportValidity" in s.ref ? Dt(s.ref, t, e) : s && s.refs && s.refs.forEach((n) => Dt(n, t, e));
|
|
1490
1455
|
}
|
|
1491
|
-
},
|
|
1492
|
-
r.shouldUseNativeValidation &&
|
|
1456
|
+
}, Nt = (e, r) => {
|
|
1457
|
+
r.shouldUseNativeValidation && Ke(e, r);
|
|
1493
1458
|
const t = {};
|
|
1494
1459
|
for (const s in e) {
|
|
1495
1460
|
const n = p(r.fields, s), o = Object.assign(e[s] || {}, { ref: n && n.ref });
|
|
@@ -1500,10 +1465,10 @@ const Nt = (e, r, t) => {
|
|
|
1500
1465
|
}
|
|
1501
1466
|
return t;
|
|
1502
1467
|
}, ls = (e, r) => {
|
|
1503
|
-
const t =
|
|
1504
|
-
return e.some((s) =>
|
|
1468
|
+
const t = Rt(r);
|
|
1469
|
+
return e.some((s) => Rt(s).match(`^${t}\\.\\d+`));
|
|
1505
1470
|
};
|
|
1506
|
-
function
|
|
1471
|
+
function Rt(e) {
|
|
1507
1472
|
return e.replace(/\]|\[/g, "");
|
|
1508
1473
|
}
|
|
1509
1474
|
function nr(e, r, t) {
|
|
@@ -1550,14 +1515,14 @@ function ds(e, r) {
|
|
|
1550
1515
|
}
|
|
1551
1516
|
const ar = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
1552
1517
|
};
|
|
1553
|
-
function
|
|
1518
|
+
function Ce(e) {
|
|
1554
1519
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1555
1520
|
}
|
|
1556
1521
|
function lr(e, r, t) {
|
|
1557
1522
|
var n, o, l, a, d, m;
|
|
1558
1523
|
const s = { ...e, path: e.path ?? [] };
|
|
1559
1524
|
if (!e.message) {
|
|
1560
|
-
const y =
|
|
1525
|
+
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
1526
|
s.message = y;
|
|
1562
1527
|
}
|
|
1563
1528
|
return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
|
|
@@ -1591,7 +1556,7 @@ const cr = (e, r) => {
|
|
|
1591
1556
|
}
|
|
1592
1557
|
return l.value;
|
|
1593
1558
|
}, _s = /* @__PURE__ */ hs(ur);
|
|
1594
|
-
function
|
|
1559
|
+
function Bt(e, r) {
|
|
1595
1560
|
try {
|
|
1596
1561
|
var t = e();
|
|
1597
1562
|
} catch (s) {
|
|
@@ -1612,7 +1577,7 @@ function gs(e, r) {
|
|
|
1612
1577
|
});
|
|
1613
1578
|
}), r) {
|
|
1614
1579
|
var d = t[l].types, m = d && d[s.code];
|
|
1615
|
-
t[l] =
|
|
1580
|
+
t[l] = nt(l, r, t, n, m ? [].concat(m, s.message) : s.message);
|
|
1616
1581
|
}
|
|
1617
1582
|
e.shift();
|
|
1618
1583
|
}
|
|
@@ -1631,7 +1596,7 @@ function ps(e, r) {
|
|
|
1631
1596
|
});
|
|
1632
1597
|
}), r) {
|
|
1633
1598
|
var d = t[l].types, m = d && d[s.code];
|
|
1634
|
-
t[l] =
|
|
1599
|
+
t[l] = nt(l, r, t, n, m ? [].concat(m, s.message) : s.message);
|
|
1635
1600
|
}
|
|
1636
1601
|
e.shift();
|
|
1637
1602
|
}
|
|
@@ -1642,14 +1607,14 @@ function vs(e, r, t) {
|
|
|
1642
1607
|
return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
|
|
1643
1608
|
})(e)) return function(s, n, o) {
|
|
1644
1609
|
try {
|
|
1645
|
-
return Promise.resolve(
|
|
1610
|
+
return Promise.resolve(Bt(function() {
|
|
1646
1611
|
return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(l) {
|
|
1647
|
-
return o.shouldUseNativeValidation &&
|
|
1612
|
+
return o.shouldUseNativeValidation && Ke({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : l };
|
|
1648
1613
|
});
|
|
1649
1614
|
}, function(l) {
|
|
1650
1615
|
if ((function(a) {
|
|
1651
1616
|
return Array.isArray(a == null ? void 0 : a.issues);
|
|
1652
|
-
})(l)) return { values: {}, errors:
|
|
1617
|
+
})(l)) return { values: {}, errors: Nt(gs(l.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
|
|
1653
1618
|
throw l;
|
|
1654
1619
|
}));
|
|
1655
1620
|
} catch (l) {
|
|
@@ -1660,14 +1625,14 @@ function vs(e, r, t) {
|
|
|
1660
1625
|
return "_zod" in s && typeof s._zod == "object";
|
|
1661
1626
|
})(e)) return function(s, n, o) {
|
|
1662
1627
|
try {
|
|
1663
|
-
return Promise.resolve(
|
|
1628
|
+
return Promise.resolve(Bt(function() {
|
|
1664
1629
|
return Promise.resolve((t.mode === "sync" ? ms : _s)(e, s, r)).then(function(l) {
|
|
1665
|
-
return o.shouldUseNativeValidation &&
|
|
1630
|
+
return o.shouldUseNativeValidation && Ke({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : l };
|
|
1666
1631
|
});
|
|
1667
1632
|
}, function(l) {
|
|
1668
1633
|
if ((function(a) {
|
|
1669
1634
|
return a instanceof fs;
|
|
1670
|
-
})(l)) return { values: {}, errors:
|
|
1635
|
+
})(l)) return { values: {}, errors: Nt(ps(l.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
|
|
1671
1636
|
throw l;
|
|
1672
1637
|
}));
|
|
1673
1638
|
} catch (l) {
|
|
@@ -1718,7 +1683,7 @@ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
|
|
|
1718
1683
|
children: e
|
|
1719
1684
|
}
|
|
1720
1685
|
);
|
|
1721
|
-
}, ks = "FormGroup-module__formGroup___aVI-B", Vs = "FormGroup-module__inputWrapper___429QE", Cs = "FormGroup-module__indented___t61iz", Es = "FormGroup-module__disabled___W-tJ0", zs = "FormGroup-module__required___mO3xA",
|
|
1686
|
+
}, ks = "FormGroup-module__formGroup___aVI-B", Vs = "FormGroup-module__inputWrapper___429QE", Cs = "FormGroup-module__indented___t61iz", Es = "FormGroup-module__disabled___W-tJ0", zs = "FormGroup-module__required___mO3xA", ye = {
|
|
1722
1687
|
formGroup: ks,
|
|
1723
1688
|
inputWrapper: Vs,
|
|
1724
1689
|
indented: Cs,
|
|
@@ -1738,9 +1703,9 @@ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
|
|
|
1738
1703
|
labelProps: y
|
|
1739
1704
|
}) => {
|
|
1740
1705
|
const h = L(), f = [
|
|
1741
|
-
|
|
1742
|
-
s ?
|
|
1743
|
-
o ?
|
|
1706
|
+
ye.formGroup,
|
|
1707
|
+
s ? ye.error : "",
|
|
1708
|
+
o ? ye.disabled : "",
|
|
1744
1709
|
d
|
|
1745
1710
|
].filter(Boolean).join(" "), b = {
|
|
1746
1711
|
"--form-group-margin-bottom": `calc(${h.fonts.rhythm} * 0.35)`,
|
|
@@ -1754,18 +1719,18 @@ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
|
|
|
1754
1719
|
return S;
|
|
1755
1720
|
});
|
|
1756
1721
|
return /* @__PURE__ */ Q("div", { className: f, style: b, children: [
|
|
1757
|
-
r && /* @__PURE__ */ Q(
|
|
1722
|
+
r && /* @__PURE__ */ Q(Ye, { htmlFor: t, disabled: o, error: s, ...y, children: [
|
|
1758
1723
|
r,
|
|
1759
|
-
l && /* @__PURE__ */ Q("span", { className:
|
|
1724
|
+
l && /* @__PURE__ */ Q("span", { className: ye.required, "aria-label": "required", children: [
|
|
1760
1725
|
" ",
|
|
1761
1726
|
"*"
|
|
1762
1727
|
] })
|
|
1763
1728
|
] }),
|
|
1764
|
-
/* @__PURE__ */ w("div", { className: `${
|
|
1729
|
+
/* @__PURE__ */ w("div", { className: `${ye.inputWrapper} ${a ? ye.indented : ""}`, children: C }),
|
|
1765
1730
|
s && n && /* @__PURE__ */ w(Fs, { children: n })
|
|
1766
1731
|
] });
|
|
1767
1732
|
};
|
|
1768
|
-
function
|
|
1733
|
+
function we({
|
|
1769
1734
|
name: e,
|
|
1770
1735
|
label: r,
|
|
1771
1736
|
required: t,
|
|
@@ -1809,7 +1774,7 @@ function xe({
|
|
|
1809
1774
|
}
|
|
1810
1775
|
);
|
|
1811
1776
|
}
|
|
1812
|
-
const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi", Ds = "Input-module__sizeDefault___AxPA0",
|
|
1777
|
+
const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi", Ds = "Input-module__sizeDefault___AxPA0", He = {
|
|
1813
1778
|
input: As,
|
|
1814
1779
|
sizeSmall: Ps,
|
|
1815
1780
|
sizeDefault: Ds
|
|
@@ -1855,7 +1820,7 @@ const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi"
|
|
|
1855
1820
|
fontSize: k.fontSize,
|
|
1856
1821
|
opacity: k.opacity,
|
|
1857
1822
|
...m
|
|
1858
|
-
}, x = [
|
|
1823
|
+
}, x = [He.input, d === "small" ? He.sizeSmall : He.sizeDefault].filter(Boolean).join(" ");
|
|
1859
1824
|
return /* @__PURE__ */ w(
|
|
1860
1825
|
"input",
|
|
1861
1826
|
{
|
|
@@ -1882,7 +1847,7 @@ function jo({
|
|
|
1882
1847
|
...a
|
|
1883
1848
|
}) {
|
|
1884
1849
|
return /* @__PURE__ */ w(
|
|
1885
|
-
|
|
1850
|
+
we,
|
|
1886
1851
|
{
|
|
1887
1852
|
name: e,
|
|
1888
1853
|
label: r,
|
|
@@ -1905,11 +1870,11 @@ function jo({
|
|
|
1905
1870
|
}
|
|
1906
1871
|
);
|
|
1907
1872
|
}
|
|
1908
|
-
const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall___HHFEM", Ls = "Textarea-module__sizeDefault___LL2Uc",
|
|
1873
|
+
const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall___HHFEM", Ls = "Textarea-module__sizeDefault___LL2Uc", Ue = {
|
|
1909
1874
|
textarea: Bs,
|
|
1910
1875
|
sizeSmall: Os,
|
|
1911
1876
|
sizeDefault: Ls
|
|
1912
|
-
},
|
|
1877
|
+
}, Ms = ({
|
|
1913
1878
|
color: e = "#000",
|
|
1914
1879
|
disabled: r = !1,
|
|
1915
1880
|
placeholderOpacity: t = 0.3
|
|
@@ -1918,7 +1883,7 @@ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall
|
|
|
1918
1883
|
borderColor: e,
|
|
1919
1884
|
opacity: r ? 0.3 : 1,
|
|
1920
1885
|
placeholderOpacity: t
|
|
1921
|
-
}),
|
|
1886
|
+
}), Ts = ({
|
|
1922
1887
|
color: e,
|
|
1923
1888
|
disabled: r = !1,
|
|
1924
1889
|
error: t = !1,
|
|
@@ -1933,7 +1898,7 @@ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall
|
|
|
1933
1898
|
value: h = "",
|
|
1934
1899
|
...f
|
|
1935
1900
|
}) => {
|
|
1936
|
-
const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k =
|
|
1901
|
+
const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k = Ms({
|
|
1937
1902
|
color: S,
|
|
1938
1903
|
disabled: r,
|
|
1939
1904
|
placeholderOpacity: a
|
|
@@ -1948,7 +1913,7 @@ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall
|
|
|
1948
1913
|
fontSize: s || b.fonts.size,
|
|
1949
1914
|
opacity: k.opacity,
|
|
1950
1915
|
...y
|
|
1951
|
-
}, x = [
|
|
1916
|
+
}, x = [Ue.textarea, m === "small" ? Ue.sizeSmall : Ue.sizeDefault].filter(Boolean).join(" ");
|
|
1952
1917
|
return /* @__PURE__ */ w(
|
|
1953
1918
|
"textarea",
|
|
1954
1919
|
{
|
|
@@ -1975,7 +1940,7 @@ function Wo({
|
|
|
1975
1940
|
...a
|
|
1976
1941
|
}) {
|
|
1977
1942
|
return /* @__PURE__ */ w(
|
|
1978
|
-
|
|
1943
|
+
we,
|
|
1979
1944
|
{
|
|
1980
1945
|
name: e,
|
|
1981
1946
|
label: r,
|
|
@@ -1985,7 +1950,7 @@ function Wo({
|
|
|
1985
1950
|
className: o,
|
|
1986
1951
|
style: l,
|
|
1987
1952
|
children: ({ value: d, onChange: m, onBlur: y, name: h, error: f }) => /* @__PURE__ */ w(
|
|
1988
|
-
|
|
1953
|
+
Ts,
|
|
1989
1954
|
{
|
|
1990
1955
|
...a,
|
|
1991
1956
|
name: h,
|
|
@@ -1998,7 +1963,7 @@ function Wo({
|
|
|
1998
1963
|
}
|
|
1999
1964
|
);
|
|
2000
1965
|
}
|
|
2001
|
-
const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1quj", Us = "Select-module__sizeDefault___EiWvW",
|
|
1966
|
+
const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1quj", Us = "Select-module__sizeDefault___EiWvW", je = {
|
|
2002
1967
|
select: Is,
|
|
2003
1968
|
sizeSmall: Hs,
|
|
2004
1969
|
sizeDefault: Us
|
|
@@ -2062,7 +2027,7 @@ const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1q
|
|
|
2062
2027
|
fontSize: n || f.fonts.size,
|
|
2063
2028
|
opacity: S.opacity,
|
|
2064
2029
|
...m
|
|
2065
|
-
}, R = [
|
|
2030
|
+
}, R = [je.select, d === "small" ? je.sizeSmall : je.sizeDefault].filter(Boolean).join(" ");
|
|
2066
2031
|
return /* @__PURE__ */ Q(
|
|
2067
2032
|
"select",
|
|
2068
2033
|
{
|
|
@@ -2092,7 +2057,7 @@ function qo({
|
|
|
2092
2057
|
...d
|
|
2093
2058
|
}) {
|
|
2094
2059
|
return /* @__PURE__ */ w(
|
|
2095
|
-
|
|
2060
|
+
we,
|
|
2096
2061
|
{
|
|
2097
2062
|
name: e,
|
|
2098
2063
|
label: r,
|
|
@@ -2126,7 +2091,7 @@ function Go({
|
|
|
2126
2091
|
...l
|
|
2127
2092
|
}) {
|
|
2128
2093
|
return /* @__PURE__ */ w(
|
|
2129
|
-
|
|
2094
|
+
we,
|
|
2130
2095
|
{
|
|
2131
2096
|
name: e,
|
|
2132
2097
|
required: r,
|
|
@@ -2147,7 +2112,7 @@ function Go({
|
|
|
2147
2112
|
}
|
|
2148
2113
|
);
|
|
2149
2114
|
}
|
|
2150
|
-
const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF", Zs = "Radio-module__label___vAFIP",
|
|
2115
|
+
const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF", Zs = "Radio-module__label___vAFIP", We = {
|
|
2151
2116
|
container: qs,
|
|
2152
2117
|
svg: Gs,
|
|
2153
2118
|
label: Zs
|
|
@@ -2191,7 +2156,7 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2191
2156
|
}, E = {
|
|
2192
2157
|
fill: k.radioColor
|
|
2193
2158
|
};
|
|
2194
|
-
return /* @__PURE__ */ Q("div", { className:
|
|
2159
|
+
return /* @__PURE__ */ Q("div", { className: We.container, style: x, ...h, children: [
|
|
2195
2160
|
/* @__PURE__ */ w(
|
|
2196
2161
|
"input",
|
|
2197
2162
|
{
|
|
@@ -2210,7 +2175,7 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2210
2175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2211
2176
|
viewBox: "0 0 100 100",
|
|
2212
2177
|
onClick: () => R({ target: { checked: !e, name: d, type: "radio" } }),
|
|
2213
|
-
className:
|
|
2178
|
+
className: We.svg,
|
|
2214
2179
|
style: $,
|
|
2215
2180
|
children: [
|
|
2216
2181
|
/* @__PURE__ */ w("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: z }),
|
|
@@ -2219,10 +2184,10 @@ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF",
|
|
|
2219
2184
|
}
|
|
2220
2185
|
),
|
|
2221
2186
|
l && /* @__PURE__ */ w(
|
|
2222
|
-
|
|
2187
|
+
Ye,
|
|
2223
2188
|
{
|
|
2224
2189
|
htmlFor: b,
|
|
2225
|
-
className:
|
|
2190
|
+
className: We.label,
|
|
2226
2191
|
style: a,
|
|
2227
2192
|
color: k.radioColor,
|
|
2228
2193
|
disabled: t,
|
|
@@ -2245,7 +2210,7 @@ function Zo({
|
|
|
2245
2210
|
...d
|
|
2246
2211
|
}) {
|
|
2247
2212
|
return /* @__PURE__ */ w(
|
|
2248
|
-
|
|
2213
|
+
we,
|
|
2249
2214
|
{
|
|
2250
2215
|
name: e,
|
|
2251
2216
|
required: t,
|
|
@@ -2267,7 +2232,7 @@ function Zo({
|
|
|
2267
2232
|
}
|
|
2268
2233
|
);
|
|
2269
2234
|
}
|
|
2270
|
-
const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line___gybZM", Ys = "Hamburger-module__open___gRswh",
|
|
2235
|
+
const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line___gybZM", Ys = "Hamburger-module__open___gRswh", ge = {
|
|
2271
2236
|
hamburger: Js,
|
|
2272
2237
|
line: Xs,
|
|
2273
2238
|
open: Ys
|
|
@@ -2278,7 +2243,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2278
2243
|
borderRadius: s
|
|
2279
2244
|
}) => {
|
|
2280
2245
|
const n = L();
|
|
2281
|
-
return
|
|
2246
|
+
return be(() => {
|
|
2282
2247
|
const o = e ? { right: ".5em" } : {};
|
|
2283
2248
|
return {
|
|
2284
2249
|
"--hamburger-border-radius": s || n.borderRadius || "10px",
|
|
@@ -2302,7 +2267,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2302
2267
|
color: t,
|
|
2303
2268
|
visible: e,
|
|
2304
2269
|
borderRadius: a
|
|
2305
|
-
}), m = [
|
|
2270
|
+
}), m = [ge.hamburger, n ? ge.open : ""].filter(Boolean).join(" ");
|
|
2306
2271
|
return /* @__PURE__ */ Q(
|
|
2307
2272
|
"button",
|
|
2308
2273
|
{
|
|
@@ -2314,13 +2279,13 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2314
2279
|
"aria-expanded": n,
|
|
2315
2280
|
...l,
|
|
2316
2281
|
children: [
|
|
2317
|
-
/* @__PURE__ */ w("div", { className:
|
|
2318
|
-
/* @__PURE__ */ w("div", { className:
|
|
2319
|
-
/* @__PURE__ */ w("div", { className:
|
|
2282
|
+
/* @__PURE__ */ w("div", { className: ge.line }),
|
|
2283
|
+
/* @__PURE__ */ w("div", { className: ge.line }),
|
|
2284
|
+
/* @__PURE__ */ w("div", { className: ge.line })
|
|
2320
2285
|
]
|
|
2321
2286
|
}
|
|
2322
2287
|
);
|
|
2323
|
-
}, ro = "Header-module__header___RUooH", so = "Header-module__container___t68M9",
|
|
2288
|
+
}, ro = "Header-module__header___RUooH", so = "Header-module__container___t68M9", Ot = {
|
|
2324
2289
|
header: ro,
|
|
2325
2290
|
container: so
|
|
2326
2291
|
}, oo = ({
|
|
@@ -2362,15 +2327,15 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2362
2327
|
padding: n,
|
|
2363
2328
|
fontSize: o
|
|
2364
2329
|
});
|
|
2365
|
-
return /* @__PURE__ */ w("header", { ref: d, className:
|
|
2330
|
+
return /* @__PURE__ */ w("header", { ref: d, className: Ot.header, ...a, children: /* @__PURE__ */ w(
|
|
2366
2331
|
"div",
|
|
2367
2332
|
{
|
|
2368
|
-
className:
|
|
2333
|
+
className: Ot.container,
|
|
2369
2334
|
style: { ...S, ...l },
|
|
2370
2335
|
children: e
|
|
2371
2336
|
}
|
|
2372
2337
|
) });
|
|
2373
|
-
}, io = "ResponsiveNav-module__nav___xOfv5", ao = "ResponsiveNav-module__navMobile___h795P", lo = "ResponsiveNav-module__open___WDCAf", co = "ResponsiveNav-module__navDesktop___9wscZ",
|
|
2338
|
+
}, io = "ResponsiveNav-module__nav___xOfv5", ao = "ResponsiveNav-module__navMobile___h795P", lo = "ResponsiveNav-module__open___WDCAf", co = "ResponsiveNav-module__navDesktop___9wscZ", Ee = {
|
|
2374
2339
|
nav: io,
|
|
2375
2340
|
navMobile: ao,
|
|
2376
2341
|
open: lo,
|
|
@@ -2385,7 +2350,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2385
2350
|
mobileButtonHoverColor: l
|
|
2386
2351
|
}) => {
|
|
2387
2352
|
const a = L();
|
|
2388
|
-
return
|
|
2353
|
+
return be(() => {
|
|
2389
2354
|
const { rhythm: d } = a.fonts;
|
|
2390
2355
|
return {
|
|
2391
2356
|
...e ? {
|
|
@@ -2412,7 +2377,7 @@ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line__
|
|
|
2412
2377
|
r
|
|
2413
2378
|
]);
|
|
2414
2379
|
};
|
|
2415
|
-
function
|
|
2380
|
+
function Lt(e) {
|
|
2416
2381
|
const t = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
|
|
2417
2382
|
return { maxWidth: t, unit: s };
|
|
2418
2383
|
}
|
|
@@ -2428,7 +2393,7 @@ const Qo = ({
|
|
|
2428
2393
|
style: d,
|
|
2429
2394
|
navProps: m
|
|
2430
2395
|
}) => {
|
|
2431
|
-
const [y, h] =
|
|
2396
|
+
const [y, h] = Xe(!1), f = pt(null), b = pt(null), C = L(), S = e || C.breakpoints.md, k = r || C.breakpoints.sm, { maxWidth: R, unit: x } = Lt(S), { maxWidth: $, unit: z } = Lt(k), E = ie(`(max-width: ${R}${x})`), O = ie(`(max-width: ${$}${z})`), X = uo({
|
|
2432
2397
|
isMobile: E,
|
|
2433
2398
|
isCompact: O,
|
|
2434
2399
|
mobileBackground: s,
|
|
@@ -2437,7 +2402,7 @@ const Qo = ({
|
|
|
2437
2402
|
mobileActiveColor: l,
|
|
2438
2403
|
mobileButtonHoverColor: a
|
|
2439
2404
|
});
|
|
2440
|
-
|
|
2405
|
+
Ut(() => {
|
|
2441
2406
|
const q = (se) => {
|
|
2442
2407
|
!b.current || b.current.contains(se.target) || f.current && f.current.contains(se.target) || h(!1);
|
|
2443
2408
|
};
|
|
@@ -2446,11 +2411,11 @@ const Qo = ({
|
|
|
2446
2411
|
};
|
|
2447
2412
|
}, [f, b, h]);
|
|
2448
2413
|
const ae = [
|
|
2449
|
-
|
|
2450
|
-
E ?
|
|
2451
|
-
E && y ?
|
|
2414
|
+
Ee.nav,
|
|
2415
|
+
E ? Ee.navMobile : Ee.navDesktop,
|
|
2416
|
+
E && y ? Ee.open : ""
|
|
2452
2417
|
].filter(Boolean).join(" ");
|
|
2453
|
-
return /* @__PURE__ */ Q(
|
|
2418
|
+
return /* @__PURE__ */ Q(Je, { children: [
|
|
2454
2419
|
/* @__PURE__ */ w(
|
|
2455
2420
|
to,
|
|
2456
2421
|
{
|
|
@@ -2478,7 +2443,7 @@ const Qo = ({
|
|
|
2478
2443
|
innerColor: t,
|
|
2479
2444
|
fullScreen: s = !0
|
|
2480
2445
|
}) => {
|
|
2481
|
-
const n = L(), o = r || n.colors.primary, l = t || n.colors.secondary, a = /* @__PURE__ */ Q(
|
|
2446
|
+
const n = L(), o = r || n.colors.primary, l = t || n.colors.secondary, a = /* @__PURE__ */ Q(Je, { children: [
|
|
2482
2447
|
/* @__PURE__ */ w(
|
|
2483
2448
|
"div",
|
|
2484
2449
|
{
|
|
@@ -2513,13 +2478,13 @@ const Qo = ({
|
|
|
2513
2478
|
}
|
|
2514
2479
|
) : a;
|
|
2515
2480
|
}, Ko = ({ children: e, loadingComponent: r }) => {
|
|
2516
|
-
const [t, s] =
|
|
2517
|
-
return
|
|
2481
|
+
const [t, s] = Xe(!1);
|
|
2482
|
+
return Ut(() => {
|
|
2518
2483
|
requestAnimationFrame(() => {
|
|
2519
2484
|
s(!0);
|
|
2520
2485
|
});
|
|
2521
|
-
}, []), t ? /* @__PURE__ */ w(
|
|
2522
|
-
}, yo = "Stack-module__stack___yUU-B", mo = "Stack-module__vertical___sKTyQ", ho = "Stack-module__horizontal___YsvtV",
|
|
2486
|
+
}, []), t ? /* @__PURE__ */ w(Je, { children: e }) : r || /* @__PURE__ */ w(fo, {});
|
|
2487
|
+
}, yo = "Stack-module__stack___yUU-B", mo = "Stack-module__vertical___sKTyQ", ho = "Stack-module__horizontal___YsvtV", qe = {
|
|
2523
2488
|
stack: yo,
|
|
2524
2489
|
vertical: mo,
|
|
2525
2490
|
horizontal: ho
|
|
@@ -2531,8 +2496,8 @@ const Qo = ({
|
|
|
2531
2496
|
...n
|
|
2532
2497
|
}) => {
|
|
2533
2498
|
const o = [
|
|
2534
|
-
|
|
2535
|
-
r === "row" ?
|
|
2499
|
+
qe.stack,
|
|
2500
|
+
r === "row" ? qe.horizontal : qe.vertical,
|
|
2536
2501
|
t
|
|
2537
2502
|
].filter(Boolean).join(" ");
|
|
2538
2503
|
return /* @__PURE__ */ w("div", { className: o, style: s, ...n, children: e });
|
|
@@ -2557,14 +2522,14 @@ const Qo = ({
|
|
|
2557
2522
|
"--section-padding": `${y} ${h}`
|
|
2558
2523
|
}, b = [Mt.section, s].filter(Boolean).join(" ");
|
|
2559
2524
|
return /* @__PURE__ */ w("section", { className: b, style: m, ...l, children: /* @__PURE__ */ w("div", { className: Mt.innerDiv, style: f, children: e }) });
|
|
2560
|
-
}, po = "Hero-module__hero___IB2tg", vo = "Hero-module__content___rkkfQ",
|
|
2525
|
+
}, po = "Hero-module__hero___IB2tg", vo = "Hero-module__content___rkkfQ", Tt = {
|
|
2561
2526
|
hero: po,
|
|
2562
2527
|
content: vo
|
|
2563
2528
|
}, bo = ({
|
|
2564
2529
|
isMd: e = !1,
|
|
2565
2530
|
isLg: r = !1,
|
|
2566
2531
|
theme: t
|
|
2567
|
-
}) =>
|
|
2532
|
+
}) => be(() => {
|
|
2568
2533
|
const { rhythm: s } = t.fonts;
|
|
2569
2534
|
let n = `calc(${s} * 2) 0`, o = "2rem", l = "1.125rem";
|
|
2570
2535
|
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"), {
|
|
@@ -2582,7 +2547,7 @@ const Qo = ({
|
|
|
2582
2547
|
style: o,
|
|
2583
2548
|
...l
|
|
2584
2549
|
}) => {
|
|
2585
|
-
const a = L(), d = [
|
|
2550
|
+
const a = L(), d = [Tt.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 = bo({ isMd: h, isLg: f, theme: a });
|
|
2586
2551
|
return /* @__PURE__ */ w(
|
|
2587
2552
|
fr,
|
|
2588
2553
|
{
|
|
@@ -2590,10 +2555,10 @@ const Qo = ({
|
|
|
2590
2555
|
color: t || a.fonts.color,
|
|
2591
2556
|
style: { ...b, ...o },
|
|
2592
2557
|
...l,
|
|
2593
|
-
children: /* @__PURE__ */ w("div", { className:
|
|
2558
|
+
children: /* @__PURE__ */ w("div", { className: Tt.content, children: e })
|
|
2594
2559
|
}
|
|
2595
2560
|
);
|
|
2596
|
-
}, So = "Footer-module__footer___A76NF", wo = "Footer-module__container___QneNs",
|
|
2561
|
+
}, So = "Footer-module__footer___A76NF", wo = "Footer-module__container___QneNs", It = {
|
|
2597
2562
|
footer: So,
|
|
2598
2563
|
container: wo
|
|
2599
2564
|
}, xo = ({
|
|
@@ -2635,15 +2600,15 @@ const Qo = ({
|
|
|
2635
2600
|
background: l,
|
|
2636
2601
|
color: a
|
|
2637
2602
|
});
|
|
2638
|
-
return /* @__PURE__ */ w("footer", { ref: y, className:
|
|
2603
|
+
return /* @__PURE__ */ w("footer", { ref: y, className: It.footer, ...m, children: /* @__PURE__ */ w(
|
|
2639
2604
|
"div",
|
|
2640
2605
|
{
|
|
2641
|
-
className:
|
|
2606
|
+
className: It.container,
|
|
2642
2607
|
style: { ...R, ...d },
|
|
2643
2608
|
children: e
|
|
2644
2609
|
}
|
|
2645
2610
|
) });
|
|
2646
|
-
}, ko = "FeatureCard-module__card___XQt66", Vo = "FeatureCard-module__icon___dXJ92", Co = "FeatureCard-module__title___KxXyA", Eo = "FeatureCard-module__content___68xkw",
|
|
2611
|
+
}, ko = "FeatureCard-module__card___XQt66", Vo = "FeatureCard-module__icon___dXJ92", Co = "FeatureCard-module__title___KxXyA", Eo = "FeatureCard-module__content___68xkw", ze = {
|
|
2647
2612
|
card: ko,
|
|
2648
2613
|
icon: Vo,
|
|
2649
2614
|
title: Co,
|
|
@@ -2651,7 +2616,7 @@ const Qo = ({
|
|
|
2651
2616
|
}, zo = ({
|
|
2652
2617
|
isMd: e = !1,
|
|
2653
2618
|
theme: r
|
|
2654
|
-
}) =>
|
|
2619
|
+
}) => be(() => {
|
|
2655
2620
|
const { rhythm: t } = r.fonts;
|
|
2656
2621
|
return {
|
|
2657
2622
|
"--feature-icon-font-size": e ? "3rem" : "2.5rem",
|
|
@@ -2668,20 +2633,20 @@ const Qo = ({
|
|
|
2668
2633
|
style: n,
|
|
2669
2634
|
breakPointMd: o
|
|
2670
2635
|
}) => {
|
|
2671
|
-
const l = L(), a = [
|
|
2636
|
+
const l = L(), a = [ze.card, s].filter(Boolean).join(" "), d = o || l.breakpoints.md, m = ie(`(min-width: ${d})`), y = zo({ isMd: m, theme: l });
|
|
2672
2637
|
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:
|
|
2638
|
+
e && /* @__PURE__ */ w("div", { className: ze.icon, children: e }),
|
|
2639
|
+
/* @__PURE__ */ w("h3", { className: ze.title, children: r }),
|
|
2640
|
+
/* @__PURE__ */ w("div", { className: ze.content, children: t })
|
|
2676
2641
|
] });
|
|
2677
|
-
}, $o = "FeatureGridSection-module__section___wZrbC", Ao = "FeatureGridSection-module__grid___iwPJv",
|
|
2642
|
+
}, $o = "FeatureGridSection-module__section___wZrbC", Ao = "FeatureGridSection-module__grid___iwPJv", Ht = {
|
|
2678
2643
|
section: $o,
|
|
2679
2644
|
grid: Ao
|
|
2680
2645
|
}, Po = ({
|
|
2681
2646
|
columns: e,
|
|
2682
2647
|
isMd: r = !1,
|
|
2683
2648
|
isLg: t = !1
|
|
2684
|
-
}) =>
|
|
2649
|
+
}) => be(() => r ? r && !t && (e === 3 || e === 4) ? {
|
|
2685
2650
|
"--grid-template-columns": "repeat(2, 1fr)"
|
|
2686
2651
|
} : {
|
|
2687
2652
|
"--grid-template-columns": {
|
|
@@ -2701,11 +2666,11 @@ const Qo = ({
|
|
|
2701
2666
|
style: o,
|
|
2702
2667
|
...l
|
|
2703
2668
|
}) => {
|
|
2704
|
-
const a = L(), d = [
|
|
2669
|
+
const a = L(), d = [Ht.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 = Po({ columns: r, isMd: h, isLg: f }), C = {
|
|
2705
2670
|
"--section-padding-vertical": `calc(${a.fonts.rhythm} * 2)`
|
|
2706
2671
|
};
|
|
2707
|
-
return /* @__PURE__ */ w(fr, { className: d, style: C, ...l, children: /* @__PURE__ */ w("div", { className:
|
|
2708
|
-
}, Do = "PageLayout-module__layoutContainer___diLdT", No = "PageLayout-module__content___h2mBr", Ro = "PageLayout-module__main___Sw7Pv", Bo = "PageLayout-module__mainPadded___ZKio3",
|
|
2672
|
+
return /* @__PURE__ */ w(fr, { className: d, style: C, ...l, children: /* @__PURE__ */ w("div", { className: Ht.grid, style: { ...b, ...o }, children: e }) });
|
|
2673
|
+
}, Do = "PageLayout-module__layoutContainer___diLdT", No = "PageLayout-module__content___h2mBr", Ro = "PageLayout-module__main___Sw7Pv", Bo = "PageLayout-module__mainPadded___ZKio3", $e = {
|
|
2709
2674
|
layoutContainer: Do,
|
|
2710
2675
|
content: No,
|
|
2711
2676
|
main: Ro,
|
|
@@ -2718,11 +2683,11 @@ const Qo = ({
|
|
|
2718
2683
|
className: n,
|
|
2719
2684
|
style: o
|
|
2720
2685
|
}) => {
|
|
2721
|
-
const l = L(), a = [
|
|
2686
|
+
const l = L(), a = [$e.layoutContainer, n].filter(Boolean).join(" "), d = [$e.main, s ? $e.mainPadded : ""].filter(Boolean).join(" "), m = s ? {
|
|
2722
2687
|
"--main-padding-vertical": `calc(${l.fonts.rhythm} * 1.4)`
|
|
2723
2688
|
} : void 0;
|
|
2724
2689
|
return /* @__PURE__ */ Q("div", { className: a, style: o, children: [
|
|
2725
|
-
/* @__PURE__ */ Q("div", { className:
|
|
2690
|
+
/* @__PURE__ */ Q("div", { className: $e.content, children: [
|
|
2726
2691
|
r && /* @__PURE__ */ w(no, { children: r }),
|
|
2727
2692
|
/* @__PURE__ */ w("main", { className: d, style: m, children: e })
|
|
2728
2693
|
] }),
|
|
@@ -2739,10 +2704,10 @@ export {
|
|
|
2739
2704
|
Uo as Form,
|
|
2740
2705
|
Go as FormCheckbox,
|
|
2741
2706
|
Fs as FormError,
|
|
2742
|
-
|
|
2707
|
+
we as FormField,
|
|
2743
2708
|
$s as FormGroup,
|
|
2744
2709
|
jo as FormInput,
|
|
2745
|
-
|
|
2710
|
+
Ye as FormLabel,
|
|
2746
2711
|
Zo as FormRadio,
|
|
2747
2712
|
qo as FormSelect,
|
|
2748
2713
|
Wo as FormTextarea,
|
|
@@ -2758,8 +2723,8 @@ export {
|
|
|
2758
2723
|
Ws as Select,
|
|
2759
2724
|
Jo as Stack,
|
|
2760
2725
|
Ko as StyleLoader,
|
|
2761
|
-
|
|
2762
|
-
|
|
2726
|
+
Ts as Textarea,
|
|
2727
|
+
To as ThemeProvider,
|
|
2763
2728
|
bs as useFormContext,
|
|
2764
2729
|
L as useTheme
|
|
2765
2730
|
};
|