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