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