digital-rabbit-cl 1.1.2 → 1.2.1

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