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