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