digital-rabbit-cl 1.2.8 → 1.3.1

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