digital-rabbit-cl 1.2.5 → 1.2.7

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