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