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