digital-rabbit-cl 1.2.1 → 1.2.3

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