digital-rabbit-cl 1.4.3 → 2.0.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
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:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.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);position:relative}.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{flex-direction:column;font-size:2rem;height:100vh;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%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.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:var(--desktop-hover-opacity)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.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)}})();
|
|
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:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.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);position:relative}.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{flex-direction:column;font-size:2rem;height:100vh;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%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.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:var(--desktop-hover-opacity)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.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
2
|
import { jsx as S, jsxs as G, Fragment as ke } from "react/jsx-runtime";
|
|
3
3
|
import V, { createContext as Zt, useContext as Qt, useState as Me, useLayoutEffect as Ar, useSyncExternalStore as Nr, useMemo as He, useRef as Pe, useEffect as xe } from "react";
|
|
4
4
|
import { createPortal as Br } from "react-dom";
|
|
@@ -10,16 +10,16 @@ const Pr = "Button-module__button___2ZuB7", Rr = "Button-module__sizeSmall___DRT
|
|
|
10
10
|
isActive: e,
|
|
11
11
|
disabled: r,
|
|
12
12
|
color: t,
|
|
13
|
-
hoverColor:
|
|
14
|
-
hoverTextColor:
|
|
13
|
+
hoverColor: s,
|
|
14
|
+
hoverTextColor: o,
|
|
15
15
|
outline: n,
|
|
16
16
|
theme: a
|
|
17
17
|
}) => {
|
|
18
18
|
const l = t || a.colors.primary, f = a.buttons.textColor;
|
|
19
19
|
let u, d, h;
|
|
20
|
-
n ? (u = "transparent", d = l, h = l, e && (u =
|
|
20
|
+
n ? (u = "transparent", d = l, h = l, e && (u = s || l, d = s || l, h = o || f)) : (u = l, d = l, h = f, e && (u = s || l, d = s || l, h = o || f));
|
|
21
21
|
let m = 1;
|
|
22
|
-
return r ? m = 0.3 : e && !
|
|
22
|
+
return r ? m = 0.3 : e && !s && (m = 0.75), {
|
|
23
23
|
backgroundColor: u,
|
|
24
24
|
borderColor: d,
|
|
25
25
|
color: h,
|
|
@@ -28,12 +28,12 @@ const Pr = "Button-module__button___2ZuB7", Rr = "Button-module__sizeSmall___DRT
|
|
|
28
28
|
};
|
|
29
29
|
function Kt(e, r) {
|
|
30
30
|
const t = { ...e };
|
|
31
|
-
return Ee(e) && Ee(r) && Object.keys(r).forEach((
|
|
32
|
-
const
|
|
33
|
-
Ee(
|
|
31
|
+
return Ee(e) && Ee(r) && Object.keys(r).forEach((s) => {
|
|
32
|
+
const o = r[s], n = e[s];
|
|
33
|
+
Ee(o) && Ee(n) ? t[s] = Kt(
|
|
34
34
|
n,
|
|
35
|
-
|
|
36
|
-
) :
|
|
35
|
+
o
|
|
36
|
+
) : o !== void 0 && (t[s] = o);
|
|
37
37
|
}), t;
|
|
38
38
|
}
|
|
39
39
|
function Ee(e) {
|
|
@@ -42,16 +42,16 @@ function Ee(e) {
|
|
|
42
42
|
function we(e) {
|
|
43
43
|
const r = e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);
|
|
44
44
|
if (!r) {
|
|
45
|
-
const
|
|
45
|
+
const o = parseInt(e, 10), n = e.replace(/[0-9.]/g, "") || "px";
|
|
46
46
|
return {
|
|
47
|
-
maxWidth: isNaN(
|
|
47
|
+
maxWidth: isNaN(o) ? 768 : o - 1,
|
|
48
48
|
unit: n
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
const t = parseFloat(r[1]),
|
|
51
|
+
const t = parseFloat(r[1]), s = r[2];
|
|
52
52
|
return {
|
|
53
53
|
maxWidth: t - 1,
|
|
54
|
-
unit:
|
|
54
|
+
unit: s
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
const Ge = {
|
|
@@ -115,7 +115,7 @@ const Ge = {
|
|
|
115
115
|
backdropColor: "rgba(0, 0, 0, 0.5)",
|
|
116
116
|
boxShadow: "0 10px 40px rgba(0, 0, 0, 0.2)"
|
|
117
117
|
}
|
|
118
|
-
}, Yt = Zt(tt),
|
|
118
|
+
}, Yt = Zt(tt), sn = ({ theme: e, children: r }) => {
|
|
119
119
|
const t = e ? Kt(tt, e) : tt;
|
|
120
120
|
return /* @__PURE__ */ S(Yt.Provider, { value: t, children: r });
|
|
121
121
|
}, H = () => Qt(Yt), Mr = ({
|
|
@@ -124,8 +124,8 @@ const Ge = {
|
|
|
124
124
|
hoverColor: r,
|
|
125
125
|
hoverTextColor: t,
|
|
126
126
|
// Variant props
|
|
127
|
-
disabled:
|
|
128
|
-
size:
|
|
127
|
+
disabled: s = !1,
|
|
128
|
+
size: o = "large",
|
|
129
129
|
outline: n = !1,
|
|
130
130
|
type: a = "button",
|
|
131
131
|
// Standard React props
|
|
@@ -135,10 +135,10 @@ const Ge = {
|
|
|
135
135
|
onClick: d,
|
|
136
136
|
children: h
|
|
137
137
|
}) => {
|
|
138
|
-
const m = H(), [z, x] = Me(!1),
|
|
138
|
+
const m = H(), [z, x] = Me(!1), k = {
|
|
139
139
|
...Dr({
|
|
140
140
|
isActive: z,
|
|
141
|
-
disabled:
|
|
141
|
+
disabled: s,
|
|
142
142
|
color: e,
|
|
143
143
|
hoverColor: r,
|
|
144
144
|
hoverTextColor: t,
|
|
@@ -152,9 +152,9 @@ const Ge = {
|
|
|
152
152
|
"--button-padding-large": `calc(${m.fonts.rhythm} * ${m.sizes.large.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,
|
|
153
153
|
...f
|
|
154
154
|
// Top-level style overrides
|
|
155
|
-
},
|
|
155
|
+
}, w = [
|
|
156
156
|
$e.button,
|
|
157
|
-
|
|
157
|
+
o === "small" ? $e.sizeSmall : $e.sizeLarge,
|
|
158
158
|
n ? $e.outline : "",
|
|
159
159
|
l
|
|
160
160
|
].filter(Boolean).join(" ");
|
|
@@ -162,13 +162,13 @@ const Ge = {
|
|
|
162
162
|
"button",
|
|
163
163
|
{
|
|
164
164
|
...u,
|
|
165
|
-
className:
|
|
166
|
-
disabled:
|
|
165
|
+
className: w,
|
|
166
|
+
disabled: s,
|
|
167
167
|
onClick: d,
|
|
168
168
|
onMouseEnter: () => x(!0),
|
|
169
169
|
onMouseLeave: () => x(!1),
|
|
170
170
|
type: a,
|
|
171
|
-
style:
|
|
171
|
+
style: k,
|
|
172
172
|
children: h
|
|
173
173
|
}
|
|
174
174
|
);
|
|
@@ -183,17 +183,17 @@ var Jt = [];
|
|
|
183
183
|
for (var Ae = 0; Ae < 256; ++Ae)
|
|
184
184
|
Jt[Ae] = (Ae + 256).toString(16).substr(1);
|
|
185
185
|
function Tr(e, r) {
|
|
186
|
-
var t = 0,
|
|
187
|
-
return [
|
|
186
|
+
var t = 0, s = Jt;
|
|
187
|
+
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("");
|
|
188
188
|
}
|
|
189
189
|
function Xt(e, r, t) {
|
|
190
|
-
var
|
|
190
|
+
var s = r && t || 0;
|
|
191
191
|
typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
192
|
-
var
|
|
193
|
-
if (
|
|
192
|
+
var o = e.random || (e.rng || Or)();
|
|
193
|
+
if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, r)
|
|
194
194
|
for (var n = 0; n < 16; ++n)
|
|
195
|
-
r[
|
|
196
|
-
return r || Tr(
|
|
195
|
+
r[s + n] = o[n];
|
|
196
|
+
return r || Tr(o);
|
|
197
197
|
}
|
|
198
198
|
const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kkluC", Ur = "Checkbox-module__label___cwRtI", qe = {
|
|
199
199
|
container: jr,
|
|
@@ -203,12 +203,12 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
203
203
|
color: e = "#000",
|
|
204
204
|
checkmarkColor: r,
|
|
205
205
|
disabled: t = !1,
|
|
206
|
-
inverted:
|
|
206
|
+
inverted: s = !1
|
|
207
207
|
}) => {
|
|
208
|
-
let
|
|
209
|
-
return r ?
|
|
208
|
+
let o = e;
|
|
209
|
+
return r ? o = r : s && (o = "white"), {
|
|
210
210
|
checkboxColor: e,
|
|
211
|
-
checkmarkColor:
|
|
211
|
+
checkmarkColor: o,
|
|
212
212
|
cursor: t ? "default" : "pointer",
|
|
213
213
|
opacity: t ? 0.3 : 1
|
|
214
214
|
};
|
|
@@ -231,9 +231,9 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
231
231
|
disabled: r = !1,
|
|
232
232
|
error: t = !1,
|
|
233
233
|
// Label-specific props
|
|
234
|
-
htmlFor:
|
|
234
|
+
htmlFor: s,
|
|
235
235
|
// Content
|
|
236
|
-
children:
|
|
236
|
+
children: o,
|
|
237
237
|
// Style overrides
|
|
238
238
|
className: n,
|
|
239
239
|
style: a,
|
|
@@ -253,15 +253,15 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
253
253
|
...a
|
|
254
254
|
// Top level style prop overrides
|
|
255
255
|
}, z = [Vt.label, r ? Vt.disabled : "", n].filter(Boolean).join(" ");
|
|
256
|
-
return /* @__PURE__ */ S("label", { ...l, className: z, htmlFor:
|
|
256
|
+
return /* @__PURE__ */ S("label", { ...l, className: z, htmlFor: s, style: m, children: o });
|
|
257
257
|
}, rt = ({
|
|
258
258
|
// Color props
|
|
259
259
|
color: e,
|
|
260
260
|
checkmarkColor: r,
|
|
261
261
|
// State/variant props
|
|
262
262
|
checked: t = !1,
|
|
263
|
-
inverted:
|
|
264
|
-
disabled:
|
|
263
|
+
inverted: s = !1,
|
|
264
|
+
disabled: o = !1,
|
|
265
265
|
error: n = !1,
|
|
266
266
|
// Form props
|
|
267
267
|
name: a,
|
|
@@ -275,13 +275,13 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
275
275
|
// Element-specific props
|
|
276
276
|
divProps: z
|
|
277
277
|
}) => {
|
|
278
|
-
const x = H(), g = l || Xt(),
|
|
279
|
-
color:
|
|
278
|
+
const x = H(), g = l || Xt(), k = x.colors.error, w = n ? k : e || x.colors.primary, b = Wr({
|
|
279
|
+
color: w,
|
|
280
280
|
checkmarkColor: r,
|
|
281
|
-
disabled:
|
|
282
|
-
inverted:
|
|
281
|
+
disabled: o,
|
|
282
|
+
inverted: s
|
|
283
283
|
}), E = (B) => {
|
|
284
|
-
|
|
284
|
+
o || f(B);
|
|
285
285
|
}, $ = {
|
|
286
286
|
cursor: b.cursor,
|
|
287
287
|
fontSize: x.fonts.size,
|
|
@@ -291,7 +291,7 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
291
291
|
}, A = {
|
|
292
292
|
width: "1em"
|
|
293
293
|
}, M = {
|
|
294
|
-
fill:
|
|
294
|
+
fill: s && t ? b.checkboxColor : "transparent",
|
|
295
295
|
strokeWidth: "25",
|
|
296
296
|
stroke: b.checkboxColor
|
|
297
297
|
}, O = {
|
|
@@ -305,7 +305,7 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
305
305
|
{
|
|
306
306
|
id: g,
|
|
307
307
|
checked: t,
|
|
308
|
-
disabled:
|
|
308
|
+
disabled: o,
|
|
309
309
|
onChange: (B) => E({ target: { checked: B.target.checked, name: a, type: "checkbox" } }),
|
|
310
310
|
name: a,
|
|
311
311
|
style: { display: "none" },
|
|
@@ -333,13 +333,13 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
|
|
|
333
333
|
className: qe.label,
|
|
334
334
|
style: { paddingBottom: 0, ...d },
|
|
335
335
|
color: b.checkboxColor,
|
|
336
|
-
disabled:
|
|
336
|
+
disabled: o,
|
|
337
337
|
error: n,
|
|
338
338
|
children: u
|
|
339
339
|
}
|
|
340
340
|
)
|
|
341
341
|
] });
|
|
342
|
-
},
|
|
342
|
+
}, on = () => {
|
|
343
343
|
const e = H();
|
|
344
344
|
return Ar(() => {
|
|
345
345
|
const r = document.documentElement;
|
|
@@ -354,15 +354,15 @@ var U = (e) => !K(e) && !Array.isArray(e) && er(e) && !de(e), tr = (e) => U(e) &
|
|
|
354
354
|
}, lt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
355
355
|
function W(e) {
|
|
356
356
|
let r;
|
|
357
|
-
const t = Array.isArray(e),
|
|
357
|
+
const t = Array.isArray(e), s = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
358
358
|
if (e instanceof Date)
|
|
359
359
|
r = new Date(e);
|
|
360
|
-
else if (!(lt && (e instanceof Blob ||
|
|
360
|
+
else if (!(lt && (e instanceof Blob || s)) && (t || U(e)))
|
|
361
361
|
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Kr(e))
|
|
362
362
|
r = e;
|
|
363
363
|
else
|
|
364
|
-
for (const
|
|
365
|
-
e.hasOwnProperty(
|
|
364
|
+
for (const o in e)
|
|
365
|
+
e.hasOwnProperty(o) && (r[o] = W(e[o]));
|
|
366
366
|
else
|
|
367
367
|
return e;
|
|
368
368
|
return r;
|
|
@@ -370,17 +370,17 @@ function W(e) {
|
|
|
370
370
|
var Oe = (e) => /^\w*$/.test(e), T = (e) => e === void 0, ct = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ut = (e) => ct(e.replace(/["|']|\]/g, "").split(/\.|\[/)), v = (e, r, t) => {
|
|
371
371
|
if (!r || !U(e))
|
|
372
372
|
return t;
|
|
373
|
-
const
|
|
374
|
-
return T(
|
|
373
|
+
const s = (Oe(r) ? [r] : ut(r)).reduce((o, n) => K(o) ? o : o[n], e);
|
|
374
|
+
return T(s) || s === e ? T(e[r]) ? t : e[r] : s;
|
|
375
375
|
}, ee = (e) => typeof e == "boolean", L = (e, r, t) => {
|
|
376
|
-
let
|
|
377
|
-
const
|
|
378
|
-
for (; ++
|
|
379
|
-
const l = s
|
|
376
|
+
let s = -1;
|
|
377
|
+
const o = Oe(r) ? [r] : ut(r), n = o.length, a = n - 1;
|
|
378
|
+
for (; ++s < n; ) {
|
|
379
|
+
const l = o[s];
|
|
380
380
|
let f = t;
|
|
381
|
-
if (
|
|
381
|
+
if (s !== a) {
|
|
382
382
|
const u = e[l];
|
|
383
|
-
f = U(u) || Array.isArray(u) ? u : isNaN(+s
|
|
383
|
+
f = U(u) || Array.isArray(u) ? u : isNaN(+o[s + 1]) ? {} : [];
|
|
384
384
|
}
|
|
385
385
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
386
386
|
return;
|
|
@@ -391,7 +391,7 @@ const Re = {
|
|
|
391
391
|
BLUR: "blur",
|
|
392
392
|
FOCUS_OUT: "focusout",
|
|
393
393
|
CHANGE: "change"
|
|
394
|
-
},
|
|
394
|
+
}, se = {
|
|
395
395
|
onBlur: "onBlur",
|
|
396
396
|
onChange: "onChange",
|
|
397
397
|
onSubmit: "onSubmit",
|
|
@@ -405,25 +405,25 @@ const Re = {
|
|
|
405
405
|
pattern: "pattern",
|
|
406
406
|
required: "required",
|
|
407
407
|
validate: "validate"
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
const dt = () => V.useContext(
|
|
411
|
-
var
|
|
412
|
-
const
|
|
408
|
+
}, sr = V.createContext(null);
|
|
409
|
+
sr.displayName = "HookFormContext";
|
|
410
|
+
const dt = () => V.useContext(sr);
|
|
411
|
+
var or = (e, r, t, s = !0) => {
|
|
412
|
+
const o = {
|
|
413
413
|
defaultValues: r._defaultValues
|
|
414
414
|
};
|
|
415
415
|
for (const n in e)
|
|
416
|
-
Object.defineProperty(
|
|
416
|
+
Object.defineProperty(o, n, {
|
|
417
417
|
get: () => {
|
|
418
418
|
const a = n;
|
|
419
|
-
return r._proxyFormState[a] !==
|
|
419
|
+
return r._proxyFormState[a] !== se.all && (r._proxyFormState[a] = !s || se.all), t && (t[a] = !0), e[a];
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
|
-
return
|
|
422
|
+
return o;
|
|
423
423
|
};
|
|
424
424
|
const ft = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
|
|
425
425
|
function Yr(e) {
|
|
426
|
-
const r = dt(), { control: t = r.control, disabled:
|
|
426
|
+
const r = dt(), { control: t = r.control, disabled: s, name: o, exact: n } = e || {}, [a, l] = V.useState(t._formState), f = V.useRef({
|
|
427
427
|
isDirty: !1,
|
|
428
428
|
isLoading: !1,
|
|
429
429
|
dirtyFields: !1,
|
|
@@ -434,91 +434,91 @@ function Yr(e) {
|
|
|
434
434
|
errors: !1
|
|
435
435
|
});
|
|
436
436
|
return ft(() => t._subscribe({
|
|
437
|
-
name:
|
|
437
|
+
name: o,
|
|
438
438
|
formState: f.current,
|
|
439
439
|
exact: n,
|
|
440
440
|
callback: (u) => {
|
|
441
|
-
!
|
|
441
|
+
!s && l({
|
|
442
442
|
...t._formState,
|
|
443
443
|
...u
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
}), [
|
|
446
|
+
}), [o, s, n]), V.useEffect(() => {
|
|
447
447
|
f.current.isValid && t._setValid(!0);
|
|
448
|
-
}, [t]), V.useMemo(() =>
|
|
448
|
+
}, [t]), V.useMemo(() => or(a, t, f.current, !1), [a, t]);
|
|
449
449
|
}
|
|
450
|
-
var te = (e) => typeof e == "string",
|
|
451
|
-
function
|
|
452
|
-
if (
|
|
450
|
+
var te = (e) => typeof e == "string", st = (e, r, t, s, o) => te(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), ot = (e) => K(e) || !er(e);
|
|
451
|
+
function oe(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
452
|
+
if (ot(e) || ot(r))
|
|
453
453
|
return e === r;
|
|
454
454
|
if (de(e) && de(r))
|
|
455
455
|
return e.getTime() === r.getTime();
|
|
456
|
-
const
|
|
457
|
-
if (
|
|
456
|
+
const s = Object.keys(e), o = Object.keys(r);
|
|
457
|
+
if (s.length !== o.length)
|
|
458
458
|
return !1;
|
|
459
459
|
if (t.has(e) || t.has(r))
|
|
460
460
|
return !0;
|
|
461
461
|
t.add(e), t.add(r);
|
|
462
|
-
for (const n of
|
|
462
|
+
for (const n of s) {
|
|
463
463
|
const a = e[n];
|
|
464
|
-
if (!
|
|
464
|
+
if (!o.includes(n))
|
|
465
465
|
return !1;
|
|
466
466
|
if (n !== "ref") {
|
|
467
467
|
const l = r[n];
|
|
468
|
-
if (de(a) && de(l) || U(a) && U(l) || Array.isArray(a) && Array.isArray(l) ? !
|
|
468
|
+
if (de(a) && de(l) || U(a) && U(l) || Array.isArray(a) && Array.isArray(l) ? !oe(a, l, t) : a !== l)
|
|
469
469
|
return !1;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
return !0;
|
|
473
473
|
}
|
|
474
474
|
function Jr(e) {
|
|
475
|
-
const r = dt(), { control: t = r.control, name:
|
|
475
|
+
const r = dt(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: a, compute: l } = e || {}, f = V.useRef(o), u = V.useRef(l), d = V.useRef(void 0), h = V.useRef(t), m = V.useRef(s);
|
|
476
476
|
u.current = l;
|
|
477
477
|
const [z, x] = V.useState(() => {
|
|
478
|
-
const $ = t._getWatch(
|
|
478
|
+
const $ = t._getWatch(s, f.current);
|
|
479
479
|
return u.current ? u.current($) : $;
|
|
480
480
|
}), g = V.useCallback(($) => {
|
|
481
|
-
const A =
|
|
481
|
+
const A = st(s, t._names, $ || t._formValues, !1, f.current);
|
|
482
482
|
return u.current ? u.current(A) : A;
|
|
483
|
-
}, [t._formValues, t._names,
|
|
483
|
+
}, [t._formValues, t._names, s]), k = V.useCallback(($) => {
|
|
484
484
|
if (!n) {
|
|
485
|
-
const A =
|
|
485
|
+
const A = st(s, t._names, $ || t._formValues, !1, f.current);
|
|
486
486
|
if (u.current) {
|
|
487
487
|
const M = u.current(A);
|
|
488
|
-
|
|
488
|
+
oe(M, d.current) || (x(M), d.current = M);
|
|
489
489
|
} else
|
|
490
490
|
x(A);
|
|
491
491
|
}
|
|
492
|
-
}, [t._formValues, t._names, n,
|
|
493
|
-
ft(() => ((h.current !== t || !
|
|
494
|
-
name:
|
|
492
|
+
}, [t._formValues, t._names, n, s]);
|
|
493
|
+
ft(() => ((h.current !== t || !oe(m.current, s)) && (h.current = t, m.current = s, k()), t._subscribe({
|
|
494
|
+
name: s,
|
|
495
495
|
formState: {
|
|
496
496
|
values: !0
|
|
497
497
|
},
|
|
498
498
|
exact: a,
|
|
499
499
|
callback: ($) => {
|
|
500
|
-
|
|
500
|
+
k($.values);
|
|
501
501
|
}
|
|
502
|
-
})), [t, a,
|
|
503
|
-
const
|
|
502
|
+
})), [t, a, s, k]), V.useEffect(() => t._removeUnmounted());
|
|
503
|
+
const w = h.current !== t, b = m.current, E = V.useMemo(() => {
|
|
504
504
|
if (n)
|
|
505
505
|
return null;
|
|
506
|
-
const $ = !
|
|
507
|
-
return
|
|
508
|
-
}, [n,
|
|
506
|
+
const $ = !w && !oe(b, s);
|
|
507
|
+
return w || $ ? g() : null;
|
|
508
|
+
}, [n, w, s, b, g]);
|
|
509
509
|
return E !== null ? E : z;
|
|
510
510
|
}
|
|
511
511
|
function Xr(e) {
|
|
512
|
-
const r = dt(), { name: t, disabled:
|
|
513
|
-
control:
|
|
512
|
+
const r = dt(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: a } = e, l = rr(o._names.array, t), f = V.useMemo(() => v(o._formValues, t, v(o._defaultValues, t, a)), [o, t, a]), u = Jr({
|
|
513
|
+
control: o,
|
|
514
514
|
name: t,
|
|
515
515
|
defaultValue: f,
|
|
516
516
|
exact: !0
|
|
517
517
|
}), d = Yr({
|
|
518
|
-
control:
|
|
518
|
+
control: o,
|
|
519
519
|
name: t,
|
|
520
520
|
exact: !0
|
|
521
|
-
}), h = V.useRef(e), m = V.useRef(void 0), z = V.useRef(
|
|
521
|
+
}), h = V.useRef(e), m = V.useRef(void 0), z = V.useRef(o.register(t, {
|
|
522
522
|
...e.rules,
|
|
523
523
|
value: u,
|
|
524
524
|
...ee(e.disabled) ? { disabled: e.disabled } : {}
|
|
@@ -551,61 +551,61 @@ function Xr(e) {
|
|
|
551
551
|
name: t
|
|
552
552
|
},
|
|
553
553
|
type: Re.CHANGE
|
|
554
|
-
}), [t]),
|
|
554
|
+
}), [t]), k = V.useCallback(() => z.current.onBlur({
|
|
555
555
|
target: {
|
|
556
|
-
value: v(
|
|
556
|
+
value: v(o._formValues, t),
|
|
557
557
|
name: t
|
|
558
558
|
},
|
|
559
559
|
type: Re.BLUR
|
|
560
|
-
}), [t,
|
|
561
|
-
const $ = v(
|
|
560
|
+
}), [t, o._formValues]), w = V.useCallback((E) => {
|
|
561
|
+
const $ = v(o._fields, t);
|
|
562
562
|
$ && E && ($._f.ref = {
|
|
563
563
|
focus: () => E.focus && E.focus(),
|
|
564
564
|
select: () => E.select && E.select(),
|
|
565
565
|
setCustomValidity: (A) => E.setCustomValidity(A),
|
|
566
566
|
reportValidity: () => E.reportValidity()
|
|
567
567
|
});
|
|
568
|
-
}, [
|
|
568
|
+
}, [o._fields, t]), b = V.useMemo(() => ({
|
|
569
569
|
name: t,
|
|
570
570
|
value: u,
|
|
571
|
-
...ee(
|
|
571
|
+
...ee(s) || d.disabled ? { disabled: d.disabled || s } : {},
|
|
572
572
|
onChange: g,
|
|
573
|
-
onBlur:
|
|
574
|
-
ref:
|
|
575
|
-
}), [t,
|
|
573
|
+
onBlur: k,
|
|
574
|
+
ref: w
|
|
575
|
+
}), [t, s, d.disabled, g, k, w, u]);
|
|
576
576
|
return V.useEffect(() => {
|
|
577
|
-
const E =
|
|
578
|
-
$ && $ !== t && !l &&
|
|
577
|
+
const E = o._options.shouldUnregister || n, $ = m.current;
|
|
578
|
+
$ && $ !== t && !l && o.unregister($), o.register(t, {
|
|
579
579
|
...h.current.rules,
|
|
580
580
|
...ee(h.current.disabled) ? { disabled: h.current.disabled } : {}
|
|
581
581
|
});
|
|
582
582
|
const A = (M, O) => {
|
|
583
|
-
const Y = v(
|
|
583
|
+
const Y = v(o._fields, M);
|
|
584
584
|
Y && Y._f && (Y._f.mount = O);
|
|
585
585
|
};
|
|
586
586
|
if (A(t, !0), E) {
|
|
587
|
-
const M = W(v(
|
|
588
|
-
L(
|
|
587
|
+
const M = W(v(o._options.defaultValues, t, h.current.defaultValue));
|
|
588
|
+
L(o._defaultValues, t, M), T(v(o._formValues, t)) && L(o._formValues, t, M);
|
|
589
589
|
}
|
|
590
|
-
return !l &&
|
|
591
|
-
(l ? E && !
|
|
590
|
+
return !l && o.register(t), m.current = t, () => {
|
|
591
|
+
(l ? E && !o._state.action : E) ? o.unregister(t) : A(t, !1);
|
|
592
592
|
};
|
|
593
|
-
}, [t,
|
|
594
|
-
|
|
595
|
-
disabled:
|
|
593
|
+
}, [t, o, l, n]), V.useEffect(() => {
|
|
594
|
+
o._setDisabledField({
|
|
595
|
+
disabled: s,
|
|
596
596
|
name: t
|
|
597
597
|
});
|
|
598
|
-
}, [
|
|
598
|
+
}, [s, t, o]), V.useMemo(() => ({
|
|
599
599
|
field: b,
|
|
600
600
|
formState: d,
|
|
601
601
|
fieldState: x
|
|
602
602
|
}), [b, d, x]);
|
|
603
603
|
}
|
|
604
|
-
var yt = (e, r, t,
|
|
604
|
+
var yt = (e, r, t, s, o) => r ? {
|
|
605
605
|
...t[e],
|
|
606
606
|
types: {
|
|
607
607
|
...t[e] && t[e].types ? t[e].types : {},
|
|
608
|
-
[
|
|
608
|
+
[s]: o || !0
|
|
609
609
|
}
|
|
610
610
|
} : {}, Se = (e) => Array.isArray(e) ? e : [e], zt = () => {
|
|
611
611
|
let e = [];
|
|
@@ -613,13 +613,13 @@ var yt = (e, r, t, o, s) => r ? {
|
|
|
613
613
|
get observers() {
|
|
614
614
|
return e;
|
|
615
615
|
},
|
|
616
|
-
next: (
|
|
616
|
+
next: (o) => {
|
|
617
617
|
for (const n of e)
|
|
618
|
-
n.next && n.next(
|
|
618
|
+
n.next && n.next(o);
|
|
619
619
|
},
|
|
620
|
-
subscribe: (
|
|
620
|
+
subscribe: (o) => (e.push(o), {
|
|
621
621
|
unsubscribe: () => {
|
|
622
|
-
e = e.filter((n) => n !==
|
|
622
|
+
e = e.filter((n) => n !== o);
|
|
623
623
|
}
|
|
624
624
|
}),
|
|
625
625
|
unsubscribe: () => {
|
|
@@ -629,13 +629,13 @@ var yt = (e, r, t, o, s) => r ? {
|
|
|
629
629
|
};
|
|
630
630
|
function nr(e, r) {
|
|
631
631
|
const t = {};
|
|
632
|
-
for (const
|
|
633
|
-
if (e.hasOwnProperty(
|
|
634
|
-
const
|
|
635
|
-
if (
|
|
636
|
-
const a = nr(
|
|
637
|
-
U(a) && (t[
|
|
638
|
-
} else e[
|
|
632
|
+
for (const s in e)
|
|
633
|
+
if (e.hasOwnProperty(s)) {
|
|
634
|
+
const o = e[s], n = r[s];
|
|
635
|
+
if (o && U(o) && n) {
|
|
636
|
+
const a = nr(o, n);
|
|
637
|
+
U(a) && (t[s] = a);
|
|
638
|
+
} else e[s] && (t[s] = n);
|
|
639
639
|
}
|
|
640
640
|
return t;
|
|
641
641
|
}
|
|
@@ -644,32 +644,32 @@ var Z = (e) => U(e) && !Object.keys(e).length, mt = (e) => e.type === "file", ne
|
|
|
644
644
|
return !1;
|
|
645
645
|
const r = e ? e.ownerDocument : 0;
|
|
646
646
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
647
|
-
}, ar = (e) => e.type === "select-multiple", ht = (e) => e.type === "radio",
|
|
648
|
-
function
|
|
647
|
+
}, ar = (e) => e.type === "select-multiple", ht = (e) => e.type === "radio", es = (e) => ht(e) || Fe(e), Ze = (e) => Le(e) && e.isConnected;
|
|
648
|
+
function ts(e, r) {
|
|
649
649
|
const t = r.slice(0, -1).length;
|
|
650
|
-
let
|
|
651
|
-
for (;
|
|
652
|
-
e = T(e) ?
|
|
650
|
+
let s = 0;
|
|
651
|
+
for (; s < t; )
|
|
652
|
+
e = T(e) ? s++ : e[r[s++]];
|
|
653
653
|
return e;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function rs(e) {
|
|
656
656
|
for (const r in e)
|
|
657
657
|
if (e.hasOwnProperty(r) && !T(e[r]))
|
|
658
658
|
return !1;
|
|
659
659
|
return !0;
|
|
660
660
|
}
|
|
661
661
|
function I(e, r) {
|
|
662
|
-
const t = Array.isArray(r) ? r : Oe(r) ? [r] : ut(r),
|
|
663
|
-
return
|
|
662
|
+
const t = Array.isArray(r) ? r : Oe(r) ? [r] : ut(r), s = t.length === 1 ? e : ts(e, t), o = t.length - 1, n = t[o];
|
|
663
|
+
return s && delete s[n], o !== 0 && (U(s) && Z(s) || Array.isArray(s) && rs(s)) && I(e, t.slice(0, -1)), e;
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var ss = (e) => {
|
|
666
666
|
for (const r in e)
|
|
667
667
|
if (ne(e[r]))
|
|
668
668
|
return !0;
|
|
669
669
|
return !1;
|
|
670
670
|
};
|
|
671
671
|
function ir(e) {
|
|
672
|
-
return Array.isArray(e) || U(e) && !
|
|
672
|
+
return Array.isArray(e) || U(e) && !ss(e);
|
|
673
673
|
}
|
|
674
674
|
function nt(e, r = {}) {
|
|
675
675
|
for (const t in e)
|
|
@@ -678,8 +678,8 @@ function nt(e, r = {}) {
|
|
|
678
678
|
}
|
|
679
679
|
function _e(e, r, t) {
|
|
680
680
|
t || (t = nt(r));
|
|
681
|
-
for (const
|
|
682
|
-
ir(e[
|
|
681
|
+
for (const s in e)
|
|
682
|
+
ir(e[s]) ? T(r) || ot(t[s]) ? t[s] = nt(e[s], Array.isArray(e[s]) ? [] : {}) : _e(e[s], K(r) ? {} : r[s], t[s]) : t[s] = !oe(e[s], r[s]);
|
|
683
683
|
return t;
|
|
684
684
|
}
|
|
685
685
|
const $t = {
|
|
@@ -698,7 +698,7 @@ var lr = (e) => {
|
|
|
698
698
|
) : $t;
|
|
699
699
|
}
|
|
700
700
|
return $t;
|
|
701
|
-
}, cr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs:
|
|
701
|
+
}, cr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t && te(e) ? new Date(e) : s ? s(e) : e;
|
|
702
702
|
const At = {
|
|
703
703
|
isValid: !1,
|
|
704
704
|
value: null
|
|
@@ -711,36 +711,36 @@ function Nt(e) {
|
|
|
711
711
|
const r = e.ref;
|
|
712
712
|
return mt(r) ? r.files : ht(r) ? ur(e.refs).value : ar(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Fe(r) ? lr(e.refs).value : cr(T(r.value) ? e.ref.value : r.value, e);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
715
|
-
const
|
|
714
|
+
var os = (e, r, t, s) => {
|
|
715
|
+
const o = {};
|
|
716
716
|
for (const n of e) {
|
|
717
717
|
const a = v(r, n);
|
|
718
|
-
a && L(
|
|
718
|
+
a && L(o, n, a._f);
|
|
719
719
|
}
|
|
720
720
|
return {
|
|
721
721
|
criteriaMode: t,
|
|
722
722
|
names: [...e],
|
|
723
|
-
fields:
|
|
724
|
-
shouldUseNativeValidation:
|
|
723
|
+
fields: o,
|
|
724
|
+
shouldUseNativeValidation: s
|
|
725
725
|
};
|
|
726
726
|
}, De = (e) => e instanceof RegExp, ve = (e) => T(e) ? e : De(e) ? e.source : U(e) ? De(e.value) ? e.value.source : e.value : e, Bt = (e) => ({
|
|
727
|
-
isOnSubmit: !e || e ===
|
|
728
|
-
isOnBlur: e ===
|
|
729
|
-
isOnChange: e ===
|
|
730
|
-
isOnAll: e ===
|
|
731
|
-
isOnTouch: e ===
|
|
727
|
+
isOnSubmit: !e || e === se.onSubmit,
|
|
728
|
+
isOnBlur: e === se.onBlur,
|
|
729
|
+
isOnChange: e === se.onChange,
|
|
730
|
+
isOnAll: e === se.all,
|
|
731
|
+
isOnTouch: e === se.onTouched
|
|
732
732
|
});
|
|
733
733
|
const Pt = "AsyncFunction";
|
|
734
|
-
var
|
|
735
|
-
const Ce = (e, r, t,
|
|
736
|
-
for (const
|
|
737
|
-
const n = v(e,
|
|
734
|
+
var ns = (e) => !!e && !!e.validate && !!(ne(e.validate) && e.validate.constructor.name === Pt || U(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Pt)), as = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Rt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
|
|
735
|
+
const Ce = (e, r, t, s) => {
|
|
736
|
+
for (const o of t || Object.keys(e)) {
|
|
737
|
+
const n = v(e, o);
|
|
738
738
|
if (n) {
|
|
739
739
|
const { _f: a, ...l } = n;
|
|
740
740
|
if (a) {
|
|
741
|
-
if (a.refs && a.refs[0] && r(a.refs[0],
|
|
741
|
+
if (a.refs && a.refs[0] && r(a.refs[0], o) && !s)
|
|
742
742
|
return !0;
|
|
743
|
-
if (a.ref && r(a.ref, a.name) && !
|
|
743
|
+
if (a.ref && r(a.ref, a.name) && !s)
|
|
744
744
|
return !0;
|
|
745
745
|
if (Ce(l, r))
|
|
746
746
|
break;
|
|
@@ -750,15 +750,15 @@ const Ce = (e, r, t, o) => {
|
|
|
750
750
|
}
|
|
751
751
|
};
|
|
752
752
|
function Lt(e, r, t) {
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
753
|
+
const s = v(e, t);
|
|
754
|
+
if (s || Oe(t))
|
|
755
755
|
return {
|
|
756
|
-
error:
|
|
756
|
+
error: s,
|
|
757
757
|
name: t
|
|
758
758
|
};
|
|
759
|
-
const
|
|
760
|
-
for (;
|
|
761
|
-
const n =
|
|
759
|
+
const o = t.split(".");
|
|
760
|
+
for (; o.length; ) {
|
|
761
|
+
const n = o.join("."), a = v(r, n), l = v(e, n);
|
|
762
762
|
if (a && !Array.isArray(a) && t !== n)
|
|
763
763
|
return { name: t };
|
|
764
764
|
if (l && l.type)
|
|
@@ -771,19 +771,19 @@ function Lt(e, r, t) {
|
|
|
771
771
|
name: `${n}.root`,
|
|
772
772
|
error: l.root
|
|
773
773
|
};
|
|
774
|
-
|
|
774
|
+
o.pop();
|
|
775
775
|
}
|
|
776
776
|
return {
|
|
777
777
|
name: t
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var is = (e, r, t, s) => {
|
|
781
781
|
t(e);
|
|
782
|
-
const { name:
|
|
783
|
-
return Z(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!
|
|
784
|
-
},
|
|
785
|
-
const
|
|
786
|
-
return L(
|
|
782
|
+
const { name: o, ...n } = e;
|
|
783
|
+
return Z(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!s || se.all));
|
|
784
|
+
}, ls = (e, r, t) => !e || !r || e === r || Se(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), cs = (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, us = (e, r) => !ct(v(e, r)).length && I(e, r), ds = (e, r, t) => {
|
|
785
|
+
const s = Se(v(e, t));
|
|
786
|
+
return L(s, "root", r[t]), L(e, t, s), e;
|
|
787
787
|
};
|
|
788
788
|
function Dt(e, r, t = "validate") {
|
|
789
789
|
if (te(e) || Array.isArray(e) && e.every(te) || ee(e) && !e)
|
|
@@ -796,13 +796,13 @@ function Dt(e, r, t = "validate") {
|
|
|
796
796
|
var me = (e) => U(e) && !De(e) ? e : {
|
|
797
797
|
value: e,
|
|
798
798
|
message: ""
|
|
799
|
-
}, Mt = async (e, r, t,
|
|
800
|
-
const { ref: a, refs: l, required: f, maxLength: u, minLength: d, min: h, max: m, pattern: z, validate: x, name: g, valueAsNumber:
|
|
801
|
-
if (!
|
|
799
|
+
}, Mt = async (e, r, t, s, o, n) => {
|
|
800
|
+
const { ref: a, refs: l, required: f, maxLength: u, minLength: d, min: h, max: m, pattern: z, validate: x, name: g, valueAsNumber: k, mount: w } = e._f, b = v(t, g);
|
|
801
|
+
if (!w || r.has(g))
|
|
802
802
|
return {};
|
|
803
803
|
const E = l ? l[0] : a, $ = (N) => {
|
|
804
|
-
|
|
805
|
-
}, A = {}, M = ht(a), O = Fe(a), Y = M || O, B = (
|
|
804
|
+
o && E.reportValidity && (E.setCustomValidity(ee(N) ? "" : N || ""), E.reportValidity());
|
|
805
|
+
}, A = {}, M = ht(a), O = Fe(a), Y = M || O, B = (k || mt(a)) && T(a.value) && T(b) || Le(a) && a.value === "" || b === "" || Array.isArray(b) && !b.length, J = yt.bind(null, g, s, A), X = (N, P, j, q = le.maxLength, Q = le.minLength) => {
|
|
806
806
|
const ie = N ? P : j;
|
|
807
807
|
A[g] = {
|
|
808
808
|
type: N ? q : Q,
|
|
@@ -818,7 +818,7 @@ var me = (e) => U(e) && !De(e) ? e : {
|
|
|
818
818
|
message: P,
|
|
819
819
|
ref: E,
|
|
820
820
|
...J(le.required, P)
|
|
821
|
-
}, !
|
|
821
|
+
}, !s))
|
|
822
822
|
return $(P), A;
|
|
823
823
|
}
|
|
824
824
|
if (!B && (!K(h) || !K(m))) {
|
|
@@ -831,12 +831,12 @@ var me = (e) => U(e) && !De(e) ? e : {
|
|
|
831
831
|
const Q = a.valueAsDate || new Date(b), ie = (Ve) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ve), pe = a.type == "time", ye = a.type == "week";
|
|
832
832
|
te(j.value) && b && (N = pe ? ie(b) > ie(j.value) : ye ? b > j.value : Q > new Date(j.value)), te(q.value) && b && (P = pe ? ie(b) < ie(q.value) : ye ? b < q.value : Q < new Date(q.value));
|
|
833
833
|
}
|
|
834
|
-
if ((N || P) && (X(!!N, j.message, q.message, le.max, le.min), !
|
|
834
|
+
if ((N || P) && (X(!!N, j.message, q.message, le.max, le.min), !s))
|
|
835
835
|
return $(A[g].message), A;
|
|
836
836
|
}
|
|
837
837
|
if ((u || d) && !B && (te(b) || n && Array.isArray(b))) {
|
|
838
838
|
const N = me(u), P = me(d), j = !K(N.value) && b.length > +N.value, q = !K(P.value) && b.length < +P.value;
|
|
839
|
-
if ((j || q) && (X(j, N.message, P.message), !
|
|
839
|
+
if ((j || q) && (X(j, N.message, P.message), !s))
|
|
840
840
|
return $(A[g].message), A;
|
|
841
841
|
}
|
|
842
842
|
if (z && !B && te(b)) {
|
|
@@ -846,7 +846,7 @@ var me = (e) => U(e) && !De(e) ? e : {
|
|
|
846
846
|
message: P,
|
|
847
847
|
ref: a,
|
|
848
848
|
...J(le.pattern, P)
|
|
849
|
-
}, !
|
|
849
|
+
}, !s))
|
|
850
850
|
return $(P), A;
|
|
851
851
|
}
|
|
852
852
|
if (x) {
|
|
@@ -855,36 +855,36 @@ var me = (e) => U(e) && !De(e) ? e : {
|
|
|
855
855
|
if (P && (A[g] = {
|
|
856
856
|
...P,
|
|
857
857
|
...J(le.validate, P.message)
|
|
858
|
-
}, !
|
|
858
|
+
}, !s))
|
|
859
859
|
return $(P.message), A;
|
|
860
860
|
} else if (U(x)) {
|
|
861
861
|
let N = {};
|
|
862
862
|
for (const P in x) {
|
|
863
|
-
if (!Z(N) && !
|
|
863
|
+
if (!Z(N) && !s)
|
|
864
864
|
break;
|
|
865
865
|
const j = Dt(await x[P](b, t), E, P);
|
|
866
866
|
j && (N = {
|
|
867
867
|
...j,
|
|
868
868
|
...J(P, j.message)
|
|
869
|
-
}, $(j.message),
|
|
869
|
+
}, $(j.message), s && (A[g] = N));
|
|
870
870
|
}
|
|
871
871
|
if (!Z(N) && (A[g] = {
|
|
872
872
|
ref: E,
|
|
873
873
|
...N
|
|
874
|
-
}, !
|
|
874
|
+
}, !s))
|
|
875
875
|
return A;
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
return $(!0), A;
|
|
879
879
|
};
|
|
880
|
-
const
|
|
881
|
-
mode:
|
|
882
|
-
reValidateMode:
|
|
880
|
+
const fs = {
|
|
881
|
+
mode: se.onSubmit,
|
|
882
|
+
reValidateMode: se.onChange,
|
|
883
883
|
shouldFocusError: !0
|
|
884
884
|
};
|
|
885
|
-
function
|
|
885
|
+
function ys(e = {}) {
|
|
886
886
|
let r = {
|
|
887
|
-
...
|
|
887
|
+
...fs,
|
|
888
888
|
...e
|
|
889
889
|
}, t = {
|
|
890
890
|
submitCount: 0,
|
|
@@ -901,7 +901,7 @@ function mo(e = {}) {
|
|
|
901
901
|
validatingFields: {},
|
|
902
902
|
errors: r.errors || {},
|
|
903
903
|
disabled: r.disabled || !1
|
|
904
|
-
},
|
|
904
|
+
}, s = {}, o = U(r.defaultValues) || U(r.values) ? W(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : W(o), a = {
|
|
905
905
|
action: !1,
|
|
906
906
|
mount: !1,
|
|
907
907
|
watch: !1
|
|
@@ -927,37 +927,37 @@ function mo(e = {}) {
|
|
|
927
927
|
const m = {
|
|
928
928
|
array: zt(),
|
|
929
929
|
state: zt()
|
|
930
|
-
}, z = r.criteriaMode ===
|
|
930
|
+
}, z = r.criteriaMode === se.all, x = (i) => (c) => {
|
|
931
931
|
clearTimeout(u), u = setTimeout(i, c);
|
|
932
932
|
}, g = async (i) => {
|
|
933
933
|
if (!r.disabled && (d.isValid || h.isValid || i)) {
|
|
934
|
-
const c = r.resolver ? Z((await O()).errors) : await B(
|
|
934
|
+
const c = r.resolver ? Z((await O()).errors) : await B(s, !0);
|
|
935
935
|
c !== t.isValid && m.state.next({
|
|
936
936
|
isValid: c
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
|
-
},
|
|
939
|
+
}, k = (i, c) => {
|
|
940
940
|
!r.disabled && (d.isValidating || d.validatingFields || h.isValidating || h.validatingFields) && ((i || Array.from(l.mount)).forEach((y) => {
|
|
941
941
|
y && (c ? L(t.validatingFields, y, c) : I(t.validatingFields, y));
|
|
942
942
|
}), m.state.next({
|
|
943
943
|
validatingFields: t.validatingFields,
|
|
944
944
|
isValidating: !Z(t.validatingFields)
|
|
945
945
|
}));
|
|
946
|
-
},
|
|
946
|
+
}, w = (i, c = [], y, C, p = !0, _ = !0) => {
|
|
947
947
|
if (C && y && !r.disabled) {
|
|
948
|
-
if (a.action = !0, _ && Array.isArray(v(
|
|
949
|
-
const F = y(v(
|
|
950
|
-
p && L(
|
|
948
|
+
if (a.action = !0, _ && Array.isArray(v(s, i))) {
|
|
949
|
+
const F = y(v(s, i), C.argA, C.argB);
|
|
950
|
+
p && L(s, i, F);
|
|
951
951
|
}
|
|
952
952
|
if (_ && Array.isArray(v(t.errors, i))) {
|
|
953
953
|
const F = y(v(t.errors, i), C.argA, C.argB);
|
|
954
|
-
p && L(t.errors, i, F),
|
|
954
|
+
p && L(t.errors, i, F), us(t.errors, i);
|
|
955
955
|
}
|
|
956
956
|
if ((d.touchedFields || h.touchedFields) && _ && Array.isArray(v(t.touchedFields, i))) {
|
|
957
957
|
const F = y(v(t.touchedFields, i), C.argA, C.argB);
|
|
958
958
|
p && L(t.touchedFields, i, F);
|
|
959
959
|
}
|
|
960
|
-
(d.dirtyFields || h.dirtyFields) && (t.dirtyFields = _e(
|
|
960
|
+
(d.dirtyFields || h.dirtyFields) && (t.dirtyFields = _e(o, n)), m.state.next({
|
|
961
961
|
name: i,
|
|
962
962
|
isDirty: X(i, c),
|
|
963
963
|
dirtyFields: t.dirtyFields,
|
|
@@ -976,9 +976,9 @@ function mo(e = {}) {
|
|
|
976
976
|
isValid: !1
|
|
977
977
|
});
|
|
978
978
|
}, $ = (i, c, y, C) => {
|
|
979
|
-
const p = v(
|
|
979
|
+
const p = v(s, i);
|
|
980
980
|
if (p) {
|
|
981
|
-
const _ = v(n, i, T(y) ? v(
|
|
981
|
+
const _ = v(n, i, T(y) ? v(o, i) : y);
|
|
982
982
|
T(_) || C && C.defaultChecked || c ? L(n, i, c ? _ : Nt(p._f)) : j(i, _), a.mount && g();
|
|
983
983
|
}
|
|
984
984
|
}, A = (i, c, y, C, p) => {
|
|
@@ -989,7 +989,7 @@ function mo(e = {}) {
|
|
|
989
989
|
if (!r.disabled) {
|
|
990
990
|
if (!y || C) {
|
|
991
991
|
(d.isDirty || h.isDirty) && (F = t.isDirty, t.isDirty = R.isDirty = X(), _ = F !== R.isDirty);
|
|
992
|
-
const D =
|
|
992
|
+
const D = oe(v(o, i), c);
|
|
993
993
|
F = !!v(t.dirtyFields, i), D ? I(t.dirtyFields, i) : L(t.dirtyFields, i, !0), R.dirtyFields = t.dirtyFields, _ = _ || (d.dirtyFields || h.dirtyFields) && F !== !D;
|
|
994
994
|
}
|
|
995
995
|
if (y) {
|
|
@@ -1001,7 +1001,7 @@ function mo(e = {}) {
|
|
|
1001
1001
|
return _ ? R : {};
|
|
1002
1002
|
}, M = (i, c, y, C) => {
|
|
1003
1003
|
const p = v(t.errors, i), _ = (d.isValid || h.isValid) && ee(c) && t.isValid !== c;
|
|
1004
|
-
if (r.delayError && y ? (f = x(() => b(i, y)), f(r.delayError)) : (clearTimeout(u), f = null, y ? L(t.errors, i, y) : I(t.errors, i)), (y ? !
|
|
1004
|
+
if (r.delayError && y ? (f = x(() => b(i, y)), f(r.delayError)) : (clearTimeout(u), f = null, y ? L(t.errors, i, y) : I(t.errors, i)), (y ? !oe(p, y) : p) || !Z(C) || _) {
|
|
1005
1005
|
const F = {
|
|
1006
1006
|
...C,
|
|
1007
1007
|
..._ && ee(c) ? { isValid: c } : {},
|
|
@@ -1014,9 +1014,9 @@ function mo(e = {}) {
|
|
|
1014
1014
|
}, m.state.next(F);
|
|
1015
1015
|
}
|
|
1016
1016
|
}, O = async (i) => {
|
|
1017
|
-
|
|
1018
|
-
const c = await r.resolver(n, r.context,
|
|
1019
|
-
return
|
|
1017
|
+
k(i, !0);
|
|
1018
|
+
const c = await r.resolver(n, r.context, os(i || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
|
|
1019
|
+
return k(i), c;
|
|
1020
1020
|
}, Y = async (i) => {
|
|
1021
1021
|
const { errors: c } = await O(i);
|
|
1022
1022
|
if (i)
|
|
@@ -1035,12 +1035,12 @@ function mo(e = {}) {
|
|
|
1035
1035
|
if (p) {
|
|
1036
1036
|
const { _f: _, ...F } = p;
|
|
1037
1037
|
if (_) {
|
|
1038
|
-
const R = l.array.has(_.name), D = p._f &&
|
|
1039
|
-
D && d.validatingFields &&
|
|
1038
|
+
const R = l.array.has(_.name), D = p._f && ns(p._f);
|
|
1039
|
+
D && d.validatingFields && k([_.name], !0);
|
|
1040
1040
|
const re = await Mt(p, l.disabled, n, z, r.shouldUseNativeValidation && !c, R);
|
|
1041
|
-
if (D && d.validatingFields &&
|
|
1041
|
+
if (D && d.validatingFields && k([_.name]), re[_.name] && (y.valid = !1, c))
|
|
1042
1042
|
break;
|
|
1043
|
-
!c && (v(re, _.name) ? R ?
|
|
1043
|
+
!c && (v(re, _.name) ? R ? ds(t.errors, re, _.name) : L(t.errors, _.name, re[_.name]) : I(t.errors, _.name));
|
|
1044
1044
|
}
|
|
1045
1045
|
!Z(F) && await B(F, c, y);
|
|
1046
1046
|
}
|
|
@@ -1048,14 +1048,14 @@ function mo(e = {}) {
|
|
|
1048
1048
|
return y.valid;
|
|
1049
1049
|
}, J = () => {
|
|
1050
1050
|
for (const i of l.unMount) {
|
|
1051
|
-
const c = v(
|
|
1051
|
+
const c = v(s, i);
|
|
1052
1052
|
c && (c._f.refs ? c._f.refs.every((y) => !Ze(y)) : !Ze(c._f.ref)) && Te(i);
|
|
1053
1053
|
}
|
|
1054
1054
|
l.unMount = /* @__PURE__ */ new Set();
|
|
1055
|
-
}, X = (i, c) => !r.disabled && (i && c && L(n, i, c), !
|
|
1056
|
-
...a.mount ? n : T(c) ?
|
|
1057
|
-
}, y, c), P = (i) => ct(v(a.mount ? n :
|
|
1058
|
-
const C = v(
|
|
1055
|
+
}, X = (i, c) => !r.disabled && (i && c && L(n, i, c), !oe(Ve(), o)), N = (i, c, y) => st(i, l, {
|
|
1056
|
+
...a.mount ? n : T(c) ? o : te(i) ? { [i]: c } : c
|
|
1057
|
+
}, y, c), P = (i) => ct(v(a.mount ? n : o, i, r.shouldUnregister ? v(o, i, []) : [])), j = (i, c, y = {}) => {
|
|
1058
|
+
const C = v(s, i);
|
|
1059
1059
|
let p = c;
|
|
1060
1060
|
if (C) {
|
|
1061
1061
|
const _ = C._f;
|
|
@@ -1071,17 +1071,17 @@ function mo(e = {}) {
|
|
|
1071
1071
|
for (const C in c) {
|
|
1072
1072
|
if (!c.hasOwnProperty(C))
|
|
1073
1073
|
return;
|
|
1074
|
-
const p = c[C], _ = i + "." + C, F = v(
|
|
1074
|
+
const p = c[C], _ = i + "." + C, F = v(s, _);
|
|
1075
1075
|
(l.array.has(i) || U(p) || F && !F._f) && !de(p) ? q(_, p, y) : j(_, p, y);
|
|
1076
1076
|
}
|
|
1077
1077
|
}, Q = (i, c, y = {}) => {
|
|
1078
|
-
const C = v(
|
|
1078
|
+
const C = v(s, i), p = l.array.has(i), _ = W(c);
|
|
1079
1079
|
L(n, i, _), p ? (m.array.next({
|
|
1080
1080
|
name: i,
|
|
1081
1081
|
values: W(n)
|
|
1082
1082
|
}), (d.isDirty || d.dirtyFields || h.isDirty || h.dirtyFields) && y.shouldDirty && m.state.next({
|
|
1083
1083
|
name: i,
|
|
1084
|
-
dirtyFields: _e(
|
|
1084
|
+
dirtyFields: _e(o, n),
|
|
1085
1085
|
isDirty: X(i, _)
|
|
1086
1086
|
})) : C && !C._f && !K(_) ? q(i, _, y) : j(i, _, y), Rt(i, l) && m.state.next({ ...t, name: i }), m.state.next({
|
|
1087
1087
|
name: a.mount ? i : void 0,
|
|
@@ -1091,12 +1091,12 @@ function mo(e = {}) {
|
|
|
1091
1091
|
a.mount = !0;
|
|
1092
1092
|
const c = i.target;
|
|
1093
1093
|
let y = c.name, C = !0;
|
|
1094
|
-
const p = v(
|
|
1095
|
-
C = Number.isNaN(D) || de(D) && isNaN(D.getTime()) ||
|
|
1094
|
+
const p = v(s, y), _ = (D) => {
|
|
1095
|
+
C = Number.isNaN(D) || de(D) && isNaN(D.getTime()) || oe(D, v(n, y, D));
|
|
1096
1096
|
}, F = Bt(r.mode), R = Bt(r.reValidateMode);
|
|
1097
1097
|
if (p) {
|
|
1098
1098
|
let D, re;
|
|
1099
|
-
const ze = c.type ? Nt(p._f) : tr(i), ce = i.type === Re.BLUR || i.type === Re.FOCUS_OUT, zr = !
|
|
1099
|
+
const ze = c.type ? Nt(p._f) : tr(i), ce = i.type === Re.BLUR || i.type === Re.FOCUS_OUT, zr = !as(p._f) && !r.resolver && !v(t.errors, y) && !p._f.deps || cs(ce, v(t.touchedFields, y), t.isSubmitted, R, F), Ue = Rt(y, l, ce);
|
|
1100
1100
|
L(n, y, ze), ce ? (!c || !c.readOnly) && (p._f.onBlur && p._f.onBlur(i), f && f(0)) : p._f.onChange && p._f.onChange(i);
|
|
1101
1101
|
const We = A(y, ze, ce), $r = !Z(We) || Ue;
|
|
1102
1102
|
if (!ce && m.state.next({
|
|
@@ -1108,11 +1108,11 @@ function mo(e = {}) {
|
|
|
1108
1108
|
if (!ce && Ue && m.state.next({ ...t }), r.resolver) {
|
|
1109
1109
|
const { errors: wt } = await O([y]);
|
|
1110
1110
|
if (_(ze), C) {
|
|
1111
|
-
const Er = Lt(t.errors,
|
|
1111
|
+
const Er = Lt(t.errors, s, y), kt = Lt(wt, s, Er.name || y);
|
|
1112
1112
|
D = kt.error, y = kt.name, re = Z(wt);
|
|
1113
1113
|
}
|
|
1114
1114
|
} else
|
|
1115
|
-
|
|
1115
|
+
k([y], !0), D = (await Mt(p, l.disabled, n, z, r.shouldUseNativeValidation))[y], k([y]), _(ze), C && (D ? re = !1 : (d.isValid || h.isValid) && (re = await B(s, !0)));
|
|
1116
1116
|
C && (p._f.deps && (!Array.isArray(p._f.deps) || p._f.deps.length > 0) && ye(p._f.deps), M(y, re, D, We));
|
|
1117
1117
|
}
|
|
1118
1118
|
}, pe = (i, c) => {
|
|
@@ -1125,17 +1125,17 @@ function mo(e = {}) {
|
|
|
1125
1125
|
const _ = await Y(T(i) ? i : p);
|
|
1126
1126
|
y = Z(_), C = i ? !p.some((F) => v(_, F)) : y;
|
|
1127
1127
|
} else i ? (C = (await Promise.all(p.map(async (_) => {
|
|
1128
|
-
const F = v(
|
|
1128
|
+
const F = v(s, _);
|
|
1129
1129
|
return await B(F && F._f ? { [_]: F } : F);
|
|
1130
|
-
}))).every(Boolean), !(!C && !t.isValid) && g()) : C = y = await B(
|
|
1130
|
+
}))).every(Boolean), !(!C && !t.isValid) && g()) : C = y = await B(s);
|
|
1131
1131
|
return m.state.next({
|
|
1132
1132
|
...!te(i) || (d.isValid || h.isValid) && y !== t.isValid ? {} : { name: i },
|
|
1133
1133
|
...r.resolver || !i ? { isValid: y } : {},
|
|
1134
1134
|
errors: t.errors
|
|
1135
|
-
}), c.shouldFocus && !C && Ce(
|
|
1135
|
+
}), c.shouldFocus && !C && Ce(s, pe, i ? p : l.mount), C;
|
|
1136
1136
|
}, Ve = (i, c) => {
|
|
1137
1137
|
let y = {
|
|
1138
|
-
...a.mount ? n :
|
|
1138
|
+
...a.mount ? n : o
|
|
1139
1139
|
};
|
|
1140
1140
|
return c && (y = nr(c.dirtyFields ? t.dirtyFields : t.touchedFields, y)), T(i) ? y : te(i) ? v(y, i) : i.map((C) => v(y, C));
|
|
1141
1141
|
}, gt = (i, c) => ({
|
|
@@ -1149,7 +1149,7 @@ function mo(e = {}) {
|
|
|
1149
1149
|
errors: i ? t.errors : {}
|
|
1150
1150
|
});
|
|
1151
1151
|
}, _t = (i, c, y) => {
|
|
1152
|
-
const C = (v(
|
|
1152
|
+
const C = (v(s, i, { _f: {} })._f || {}).ref, p = v(t.errors, i) || {}, { ref: _, message: F, type: R, ...D } = p;
|
|
1153
1153
|
L(t.errors, i, {
|
|
1154
1154
|
...D,
|
|
1155
1155
|
...c,
|
|
@@ -1163,11 +1163,11 @@ function mo(e = {}) {
|
|
|
1163
1163
|
next: (y) => "values" in y && i(N(void 0, c), y)
|
|
1164
1164
|
}) : N(i, c, !0), pt = (i) => m.state.subscribe({
|
|
1165
1165
|
next: (c) => {
|
|
1166
|
-
|
|
1166
|
+
ls(i.name, c.name, i.exact) && is(c, i.formState || d, Vr, i.reRenderRoot) && i.callback({
|
|
1167
1167
|
values: { ...n },
|
|
1168
1168
|
...t,
|
|
1169
1169
|
...c,
|
|
1170
|
-
defaultValues:
|
|
1170
|
+
defaultValues: o
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
1173
|
}).unsubscribe, xr = (i) => (a.mount = !0, h = {
|
|
@@ -1178,7 +1178,7 @@ function mo(e = {}) {
|
|
|
1178
1178
|
formState: h
|
|
1179
1179
|
})), Te = (i, c = {}) => {
|
|
1180
1180
|
for (const y of i ? Se(i) : l.mount)
|
|
1181
|
-
l.mount.delete(y), l.array.delete(y), c.keepValue || (I(
|
|
1181
|
+
l.mount.delete(y), l.array.delete(y), c.keepValue || (I(s, y), I(n, y)), !c.keepError && I(t.errors, y), !c.keepDirty && I(t.dirtyFields, y), !c.keepTouched && I(t.touchedFields, y), !c.keepIsValidating && I(t.validatingFields, y), !r.shouldUnregister && !c.keepDefaultValue && I(o, y);
|
|
1182
1182
|
m.state.next({
|
|
1183
1183
|
values: W(n)
|
|
1184
1184
|
}), m.state.next({
|
|
@@ -1188,9 +1188,9 @@ function mo(e = {}) {
|
|
|
1188
1188
|
}, vt = ({ disabled: i, name: c }) => {
|
|
1189
1189
|
(ee(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
|
|
1190
1190
|
}, je = (i, c = {}) => {
|
|
1191
|
-
let y = v(
|
|
1191
|
+
let y = v(s, i);
|
|
1192
1192
|
const C = ee(c.disabled) || ee(r.disabled);
|
|
1193
|
-
return L(
|
|
1193
|
+
return L(s, i, {
|
|
1194
1194
|
...y || {},
|
|
1195
1195
|
_f: {
|
|
1196
1196
|
...y && y._f ? y._f : { ref: { name: i } },
|
|
@@ -1216,30 +1216,30 @@ function mo(e = {}) {
|
|
|
1216
1216
|
onBlur: ie,
|
|
1217
1217
|
ref: (p) => {
|
|
1218
1218
|
if (p) {
|
|
1219
|
-
je(i, c), y = v(
|
|
1220
|
-
const _ = T(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, F =
|
|
1219
|
+
je(i, c), y = v(s, i);
|
|
1220
|
+
const _ = T(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, F = es(_), R = y._f.refs || [];
|
|
1221
1221
|
if (F ? R.find((D) => D === _) : _ === y._f.ref)
|
|
1222
1222
|
return;
|
|
1223
|
-
L(
|
|
1223
|
+
L(s, i, {
|
|
1224
1224
|
_f: {
|
|
1225
1225
|
...y._f,
|
|
1226
1226
|
...F ? {
|
|
1227
1227
|
refs: [
|
|
1228
1228
|
...R.filter(Ze),
|
|
1229
1229
|
_,
|
|
1230
|
-
...Array.isArray(v(
|
|
1230
|
+
...Array.isArray(v(o, i)) ? [{}] : []
|
|
1231
1231
|
],
|
|
1232
1232
|
ref: { type: _.type, name: i }
|
|
1233
1233
|
} : { ref: _ }
|
|
1234
1234
|
}
|
|
1235
1235
|
}), $(i, !1, void 0, _);
|
|
1236
1236
|
} else
|
|
1237
|
-
y = v(
|
|
1237
|
+
y = v(s, i, {}), y._f && (y._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(rr(l.array, i) && a.action) && l.unMount.add(i);
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
|
-
}, Ie = () => r.shouldFocusError && Ce(
|
|
1241
|
-
ee(i) && (m.state.next({ disabled: i }), Ce(
|
|
1242
|
-
const C = v(
|
|
1240
|
+
}, Ie = () => r.shouldFocusError && Ce(s, pe, l.mount), wr = (i) => {
|
|
1241
|
+
ee(i) && (m.state.next({ disabled: i }), Ce(s, (c, y) => {
|
|
1242
|
+
const C = v(s, y);
|
|
1243
1243
|
C && (c.disabled = C._f.disabled || i, Array.isArray(C._f.refs) && C._f.refs.forEach((p) => {
|
|
1244
1244
|
p.disabled = C._f.disabled || i;
|
|
1245
1245
|
}));
|
|
@@ -1254,7 +1254,7 @@ function mo(e = {}) {
|
|
|
1254
1254
|
const { errors: _, values: F } = await O();
|
|
1255
1255
|
t.errors = _, p = W(F);
|
|
1256
1256
|
} else
|
|
1257
|
-
await B(
|
|
1257
|
+
await B(s);
|
|
1258
1258
|
if (l.disabled.size)
|
|
1259
1259
|
for (const _ of l.disabled)
|
|
1260
1260
|
I(p, _);
|
|
@@ -1278,21 +1278,21 @@ function mo(e = {}) {
|
|
|
1278
1278
|
}), C)
|
|
1279
1279
|
throw C;
|
|
1280
1280
|
}, kr = (i, c = {}) => {
|
|
1281
|
-
v(
|
|
1281
|
+
v(s, i) && (T(c.defaultValue) ? Q(i, W(v(o, i))) : (Q(i, c.defaultValue), L(o, i, W(c.defaultValue))), c.keepTouched || I(t.touchedFields, i), c.keepDirty || (I(t.dirtyFields, i), t.isDirty = c.defaultValue ? X(i, W(v(o, i))) : X()), c.keepError || (I(t.errors, i), d.isValid && g()), m.state.next({ ...t }));
|
|
1282
1282
|
}, St = (i, c = {}) => {
|
|
1283
|
-
const y = i ? W(i) :
|
|
1284
|
-
if (c.keepDefaultValues || (
|
|
1283
|
+
const y = i ? W(i) : o, C = W(y), p = Z(i), _ = p ? o : C;
|
|
1284
|
+
if (c.keepDefaultValues || (o = y), !c.keepValues) {
|
|
1285
1285
|
if (c.keepDirtyValues) {
|
|
1286
1286
|
const F = /* @__PURE__ */ new Set([
|
|
1287
1287
|
...l.mount,
|
|
1288
|
-
...Object.keys(_e(
|
|
1288
|
+
...Object.keys(_e(o, n))
|
|
1289
1289
|
]);
|
|
1290
1290
|
for (const R of Array.from(F))
|
|
1291
1291
|
v(t.dirtyFields, R) ? L(_, R, v(n, R)) : Q(R, v(_, R));
|
|
1292
1292
|
} else {
|
|
1293
1293
|
if (lt && T(i))
|
|
1294
1294
|
for (const F of l.mount) {
|
|
1295
|
-
const R = v(
|
|
1295
|
+
const R = v(s, F);
|
|
1296
1296
|
if (R && R._f) {
|
|
1297
1297
|
const D = Array.isArray(R._f.refs) ? R._f.refs[0] : R._f.ref;
|
|
1298
1298
|
if (Le(D)) {
|
|
@@ -1308,9 +1308,9 @@ function mo(e = {}) {
|
|
|
1308
1308
|
for (const F of l.mount)
|
|
1309
1309
|
Q(F, v(_, F));
|
|
1310
1310
|
else
|
|
1311
|
-
|
|
1311
|
+
s = {};
|
|
1312
1312
|
}
|
|
1313
|
-
n = r.shouldUnregister ? c.keepDefaultValues ? W(
|
|
1313
|
+
n = r.shouldUnregister ? c.keepDefaultValues ? W(o) : {} : W(_), m.array.next({
|
|
1314
1314
|
values: { ..._ }
|
|
1315
1315
|
}), m.state.next({
|
|
1316
1316
|
values: { ..._ }
|
|
@@ -1326,17 +1326,17 @@ function mo(e = {}) {
|
|
|
1326
1326
|
focus: ""
|
|
1327
1327
|
}, a.mount = !d.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !Z(_), a.watch = !!r.shouldUnregister, m.state.next({
|
|
1328
1328
|
submitCount: c.keepSubmitCount ? t.submitCount : 0,
|
|
1329
|
-
isDirty: p ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !
|
|
1329
|
+
isDirty: p ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !oe(i, o)),
|
|
1330
1330
|
isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1331
|
-
dirtyFields: p ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? _e(
|
|
1331
|
+
dirtyFields: p ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? _e(o, n) : t.dirtyFields : c.keepDefaultValues && i ? _e(o, i) : c.keepDirty ? t.dirtyFields : {},
|
|
1332
1332
|
touchedFields: c.keepTouched ? t.touchedFields : {},
|
|
1333
1333
|
errors: c.keepErrors ? t.errors : {},
|
|
1334
1334
|
isSubmitSuccessful: c.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
1335
1335
|
isSubmitting: !1,
|
|
1336
|
-
defaultValues:
|
|
1336
|
+
defaultValues: o
|
|
1337
1337
|
});
|
|
1338
1338
|
}, Ct = (i, c) => St(ne(i) ? i(n) : i, c), Fr = (i, c = {}) => {
|
|
1339
|
-
const y = v(
|
|
1339
|
+
const y = v(s, i), C = y && y._f;
|
|
1340
1340
|
if (C) {
|
|
1341
1341
|
const p = C.refs ? C.refs[0] : C.ref;
|
|
1342
1342
|
p.focus && (p.focus(), c.shouldSelect && ne(p.select) && p.select());
|
|
@@ -1359,7 +1359,7 @@ function mo(e = {}) {
|
|
|
1359
1359
|
_getWatch: N,
|
|
1360
1360
|
_getDirty: X,
|
|
1361
1361
|
_setValid: g,
|
|
1362
|
-
_setFieldArray:
|
|
1362
|
+
_setFieldArray: w,
|
|
1363
1363
|
_setDisabledField: vt,
|
|
1364
1364
|
_setErrors: E,
|
|
1365
1365
|
_getFieldArray: P,
|
|
@@ -1374,7 +1374,7 @@ function mo(e = {}) {
|
|
|
1374
1374
|
_subjects: m,
|
|
1375
1375
|
_proxyFormState: d,
|
|
1376
1376
|
get _fields() {
|
|
1377
|
-
return
|
|
1377
|
+
return s;
|
|
1378
1378
|
},
|
|
1379
1379
|
get _formValues() {
|
|
1380
1380
|
return n;
|
|
@@ -1386,7 +1386,7 @@ function mo(e = {}) {
|
|
|
1386
1386
|
a = i;
|
|
1387
1387
|
},
|
|
1388
1388
|
get _defaultValues() {
|
|
1389
|
-
return
|
|
1389
|
+
return o;
|
|
1390
1390
|
},
|
|
1391
1391
|
get _names() {
|
|
1392
1392
|
return l;
|
|
@@ -1427,8 +1427,8 @@ function mo(e = {}) {
|
|
|
1427
1427
|
formControl: xt
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
const r = V.useRef(void 0), t = V.useRef(void 0), [
|
|
1430
|
+
function ms(e = {}) {
|
|
1431
|
+
const r = V.useRef(void 0), t = V.useRef(void 0), [s, o] = V.useState({
|
|
1432
1432
|
isDirty: !1,
|
|
1433
1433
|
isValidating: !1,
|
|
1434
1434
|
isLoading: ne(e.defaultValues),
|
|
@@ -1449,23 +1449,23 @@ function ho(e = {}) {
|
|
|
1449
1449
|
if (e.formControl)
|
|
1450
1450
|
r.current = {
|
|
1451
1451
|
...e.formControl,
|
|
1452
|
-
formState:
|
|
1452
|
+
formState: s
|
|
1453
1453
|
}, e.defaultValues && !ne(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1454
1454
|
else {
|
|
1455
|
-
const { formControl: a, ...l } =
|
|
1455
|
+
const { formControl: a, ...l } = ys(e);
|
|
1456
1456
|
r.current = {
|
|
1457
1457
|
...l,
|
|
1458
|
-
formState:
|
|
1458
|
+
formState: s
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
1461
|
const n = r.current.control;
|
|
1462
1462
|
return n._options = e, ft(() => {
|
|
1463
1463
|
const a = n._subscribe({
|
|
1464
1464
|
formState: n._proxyFormState,
|
|
1465
|
-
callback: () =>
|
|
1465
|
+
callback: () => o({ ...n._formState }),
|
|
1466
1466
|
reRenderRoot: !0
|
|
1467
1467
|
});
|
|
1468
|
-
return
|
|
1468
|
+
return o((l) => ({
|
|
1469
1469
|
...l,
|
|
1470
1470
|
isReady: !0
|
|
1471
1471
|
})), n._formState.isReady = !0, a;
|
|
@@ -1480,49 +1480,49 @@ function ho(e = {}) {
|
|
|
1480
1480
|
}, [n, e.shouldUnregister]), V.useEffect(() => {
|
|
1481
1481
|
if (n._proxyFormState.isDirty) {
|
|
1482
1482
|
const a = n._getDirty();
|
|
1483
|
-
a !==
|
|
1483
|
+
a !== s.isDirty && n._subjects.state.next({
|
|
1484
1484
|
isDirty: a
|
|
1485
1485
|
});
|
|
1486
1486
|
}
|
|
1487
|
-
}, [n,
|
|
1488
|
-
e.values && !
|
|
1487
|
+
}, [n, s.isDirty]), V.useEffect(() => {
|
|
1488
|
+
e.values && !oe(e.values, t.current) ? (n._reset(e.values, {
|
|
1489
1489
|
keepFieldsRef: !0,
|
|
1490
1490
|
...n._options.resetOptions
|
|
1491
|
-
}), t.current = e.values,
|
|
1491
|
+
}), t.current = e.values, o((a) => ({ ...a }))) : n._resetDefaultValues();
|
|
1492
1492
|
}, [n, e.values]), V.useEffect(() => {
|
|
1493
1493
|
n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
|
|
1494
|
-
}), r.current.formState =
|
|
1494
|
+
}), r.current.formState = or(s, n), r.current;
|
|
1495
1495
|
}
|
|
1496
1496
|
const Ht = (e, r, t) => {
|
|
1497
1497
|
if (e && "reportValidity" in e) {
|
|
1498
|
-
const
|
|
1499
|
-
e.setCustomValidity(
|
|
1498
|
+
const s = v(t, r);
|
|
1499
|
+
e.setCustomValidity(s && s.message || ""), e.reportValidity();
|
|
1500
1500
|
}
|
|
1501
1501
|
}, at = (e, r) => {
|
|
1502
1502
|
for (const t in r.fields) {
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1503
|
+
const s = r.fields[t];
|
|
1504
|
+
s && s.ref && "reportValidity" in s.ref ? Ht(s.ref, t, e) : s && s.refs && s.refs.forEach((o) => Ht(o, t, e));
|
|
1505
1505
|
}
|
|
1506
1506
|
}, Ot = (e, r) => {
|
|
1507
1507
|
r.shouldUseNativeValidation && at(e, r);
|
|
1508
1508
|
const t = {};
|
|
1509
|
-
for (const
|
|
1510
|
-
const
|
|
1511
|
-
if (
|
|
1512
|
-
const a = Object.assign({}, v(t,
|
|
1513
|
-
L(a, "root", n), L(t,
|
|
1514
|
-
} else L(t,
|
|
1509
|
+
for (const s in e) {
|
|
1510
|
+
const o = v(r.fields, s), n = Object.assign(e[s] || {}, { ref: o && o.ref });
|
|
1511
|
+
if (hs(r.names || Object.keys(e), s)) {
|
|
1512
|
+
const a = Object.assign({}, v(t, s));
|
|
1513
|
+
L(a, "root", n), L(t, s, a);
|
|
1514
|
+
} else L(t, s, n);
|
|
1515
1515
|
}
|
|
1516
1516
|
return t;
|
|
1517
|
-
},
|
|
1517
|
+
}, hs = (e, r) => {
|
|
1518
1518
|
const t = Tt(r);
|
|
1519
|
-
return e.some((
|
|
1519
|
+
return e.some((s) => Tt(s).match(`^${t}\\.\\d+`));
|
|
1520
1520
|
};
|
|
1521
1521
|
function Tt(e) {
|
|
1522
1522
|
return e.replace(/\]|\[/g, "");
|
|
1523
1523
|
}
|
|
1524
1524
|
function dr(e, r, t) {
|
|
1525
|
-
function
|
|
1525
|
+
function s(l, f) {
|
|
1526
1526
|
var u;
|
|
1527
1527
|
Object.defineProperty(l, "_zod", {
|
|
1528
1528
|
value: l._zod ?? {},
|
|
@@ -1532,35 +1532,35 @@ function dr(e, r, t) {
|
|
|
1532
1532
|
d in l || Object.defineProperty(l, d, { value: a.prototype[d].bind(l) });
|
|
1533
1533
|
l._zod.constr = a, l._zod.def = f;
|
|
1534
1534
|
}
|
|
1535
|
-
const
|
|
1536
|
-
class n extends
|
|
1535
|
+
const o = (t == null ? void 0 : t.Parent) ?? Object;
|
|
1536
|
+
class n extends o {
|
|
1537
1537
|
}
|
|
1538
1538
|
Object.defineProperty(n, "name", { value: e });
|
|
1539
1539
|
function a(l) {
|
|
1540
1540
|
var f;
|
|
1541
1541
|
const u = t != null && t.Parent ? new n() : this;
|
|
1542
|
-
|
|
1542
|
+
s(u, l), (f = u._zod).deferred ?? (f.deferred = []);
|
|
1543
1543
|
for (const d of u._zod.deferred)
|
|
1544
1544
|
d();
|
|
1545
1545
|
return u;
|
|
1546
1546
|
}
|
|
1547
|
-
return Object.defineProperty(a, "init", { value:
|
|
1547
|
+
return Object.defineProperty(a, "init", { value: s }), Object.defineProperty(a, Symbol.hasInstance, {
|
|
1548
1548
|
value: (l) => {
|
|
1549
1549
|
var f, u;
|
|
1550
1550
|
return t != null && t.Parent && l instanceof t.Parent ? !0 : (u = (f = l == null ? void 0 : l._zod) == null ? void 0 : f.traits) == null ? void 0 : u.has(e);
|
|
1551
1551
|
}
|
|
1552
1552
|
}), Object.defineProperty(a, "name", { value: e }), a;
|
|
1553
1553
|
}
|
|
1554
|
-
class
|
|
1554
|
+
class gs extends Error {
|
|
1555
1555
|
constructor() {
|
|
1556
1556
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1559
|
+
const _s = {};
|
|
1560
1560
|
function fr(e) {
|
|
1561
|
-
return
|
|
1561
|
+
return _s;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function ps(e, r) {
|
|
1564
1564
|
return typeof r == "bigint" ? r.toString() : r;
|
|
1565
1565
|
}
|
|
1566
1566
|
const yr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
@@ -1569,13 +1569,13 @@ function Ne(e) {
|
|
|
1569
1569
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1570
1570
|
}
|
|
1571
1571
|
function mr(e, r, t) {
|
|
1572
|
-
var
|
|
1573
|
-
const
|
|
1572
|
+
var o, n, a, l, f, u;
|
|
1573
|
+
const s = { ...e, path: e.path ?? [] };
|
|
1574
1574
|
if (!e.message) {
|
|
1575
|
-
const d = Ne((a = (n = (
|
|
1576
|
-
|
|
1575
|
+
const d = Ne((a = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? Ne((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? Ne((f = t.customError) == null ? void 0 : f.call(t, e)) ?? Ne((u = t.localeError) == null ? void 0 : u.call(t, e)) ?? "Invalid input";
|
|
1576
|
+
s.message = d;
|
|
1577
1577
|
}
|
|
1578
|
-
return delete
|
|
1578
|
+
return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
|
|
1579
1579
|
}
|
|
1580
1580
|
const hr = (e, r) => {
|
|
1581
1581
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
@@ -1584,105 +1584,105 @@ const hr = (e, r) => {
|
|
|
1584
1584
|
}), Object.defineProperty(e, "issues", {
|
|
1585
1585
|
value: r,
|
|
1586
1586
|
enumerable: !1
|
|
1587
|
-
}), e.message = JSON.stringify(r,
|
|
1587
|
+
}), e.message = JSON.stringify(r, ps, 2), Object.defineProperty(e, "toString", {
|
|
1588
1588
|
value: () => e.message,
|
|
1589
1589
|
enumerable: !1
|
|
1590
1590
|
});
|
|
1591
|
-
},
|
|
1592
|
-
const n =
|
|
1591
|
+
}, vs = dr("$ZodError", hr), gr = dr("$ZodError", hr, { Parent: Error }), bs = (e) => (r, t, s, o) => {
|
|
1592
|
+
const n = s ? Object.assign(s, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
|
|
1593
1593
|
if (a instanceof Promise)
|
|
1594
|
-
throw new
|
|
1594
|
+
throw new gs();
|
|
1595
1595
|
if (a.issues.length) {
|
|
1596
|
-
const l = new ((
|
|
1597
|
-
throw yr(l,
|
|
1596
|
+
const l = new ((o == null ? void 0 : o.Err) ?? e)(a.issues.map((f) => mr(f, n, fr())));
|
|
1597
|
+
throw yr(l, o == null ? void 0 : o.callee), l;
|
|
1598
1598
|
}
|
|
1599
1599
|
return a.value;
|
|
1600
|
-
},
|
|
1601
|
-
const n =
|
|
1600
|
+
}, Ss = /* @__PURE__ */ bs(gr), Cs = (e) => async (r, t, s, o) => {
|
|
1601
|
+
const n = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
1602
1602
|
let a = r._zod.run({ value: t, issues: [] }, n);
|
|
1603
1603
|
if (a instanceof Promise && (a = await a), a.issues.length) {
|
|
1604
|
-
const l = new ((
|
|
1605
|
-
throw yr(l,
|
|
1604
|
+
const l = new ((o == null ? void 0 : o.Err) ?? e)(a.issues.map((f) => mr(f, n, fr())));
|
|
1605
|
+
throw yr(l, o == null ? void 0 : o.callee), l;
|
|
1606
1606
|
}
|
|
1607
1607
|
return a.value;
|
|
1608
|
-
},
|
|
1608
|
+
}, xs = /* @__PURE__ */ Cs(gr);
|
|
1609
1609
|
function jt(e, r) {
|
|
1610
1610
|
try {
|
|
1611
1611
|
var t = e();
|
|
1612
|
-
} catch (
|
|
1613
|
-
return r(
|
|
1612
|
+
} catch (s) {
|
|
1613
|
+
return r(s);
|
|
1614
1614
|
}
|
|
1615
1615
|
return t && t.then ? t.then(void 0, r) : t;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function ws(e, r) {
|
|
1618
1618
|
for (var t = {}; e.length; ) {
|
|
1619
|
-
var
|
|
1620
|
-
if (!t[a]) if ("unionErrors" in
|
|
1621
|
-
var l =
|
|
1619
|
+
var s = e[0], o = s.code, n = s.message, a = s.path.join(".");
|
|
1620
|
+
if (!t[a]) if ("unionErrors" in s) {
|
|
1621
|
+
var l = s.unionErrors[0].errors[0];
|
|
1622
1622
|
t[a] = { message: l.message, type: l.code };
|
|
1623
|
-
} else t[a] = { message: n, type:
|
|
1624
|
-
if ("unionErrors" in
|
|
1623
|
+
} else t[a] = { message: n, type: o };
|
|
1624
|
+
if ("unionErrors" in s && s.unionErrors.forEach(function(d) {
|
|
1625
1625
|
return d.errors.forEach(function(h) {
|
|
1626
1626
|
return e.push(h);
|
|
1627
1627
|
});
|
|
1628
1628
|
}), r) {
|
|
1629
|
-
var f = t[a].types, u = f && f[
|
|
1630
|
-
t[a] = yt(a, r, t,
|
|
1629
|
+
var f = t[a].types, u = f && f[s.code];
|
|
1630
|
+
t[a] = yt(a, r, t, o, u ? [].concat(u, s.message) : s.message);
|
|
1631
1631
|
}
|
|
1632
1632
|
e.shift();
|
|
1633
1633
|
}
|
|
1634
1634
|
return t;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function ks(e, r) {
|
|
1637
1637
|
for (var t = {}; e.length; ) {
|
|
1638
|
-
var
|
|
1639
|
-
if (!t[a]) if (
|
|
1640
|
-
var l =
|
|
1638
|
+
var s = e[0], o = s.code, n = s.message, a = s.path.join(".");
|
|
1639
|
+
if (!t[a]) if (s.code === "invalid_union" && s.errors.length > 0) {
|
|
1640
|
+
var l = s.errors[0][0];
|
|
1641
1641
|
t[a] = { message: l.message, type: l.code };
|
|
1642
|
-
} else t[a] = { message: n, type:
|
|
1643
|
-
if (
|
|
1642
|
+
} else t[a] = { message: n, type: o };
|
|
1643
|
+
if (s.code === "invalid_union" && s.errors.forEach(function(d) {
|
|
1644
1644
|
return d.forEach(function(h) {
|
|
1645
1645
|
return e.push(h);
|
|
1646
1646
|
});
|
|
1647
1647
|
}), r) {
|
|
1648
|
-
var f = t[a].types, u = f && f[
|
|
1649
|
-
t[a] = yt(a, r, t,
|
|
1648
|
+
var f = t[a].types, u = f && f[s.code];
|
|
1649
|
+
t[a] = yt(a, r, t, o, u ? [].concat(u, s.message) : s.message);
|
|
1650
1650
|
}
|
|
1651
1651
|
e.shift();
|
|
1652
1652
|
}
|
|
1653
1653
|
return t;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1656
|
-
if (t === void 0 && (t = {}), (function(
|
|
1657
|
-
return "_def" in
|
|
1658
|
-
})(e)) return function(
|
|
1655
|
+
function Fs(e, r, t) {
|
|
1656
|
+
if (t === void 0 && (t = {}), (function(s) {
|
|
1657
|
+
return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
|
|
1658
|
+
})(e)) return function(s, o, n) {
|
|
1659
1659
|
try {
|
|
1660
1660
|
return Promise.resolve(jt(function() {
|
|
1661
|
-
return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](
|
|
1662
|
-
return n.shouldUseNativeValidation && at({}, n), { errors: {}, values: t.raw ? Object.assign({},
|
|
1661
|
+
return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(a) {
|
|
1662
|
+
return n.shouldUseNativeValidation && at({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
|
|
1663
1663
|
});
|
|
1664
1664
|
}, function(a) {
|
|
1665
1665
|
if ((function(l) {
|
|
1666
1666
|
return Array.isArray(l == null ? void 0 : l.issues);
|
|
1667
|
-
})(a)) return { values: {}, errors: Ot(
|
|
1667
|
+
})(a)) return { values: {}, errors: Ot(ws(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1668
1668
|
throw a;
|
|
1669
1669
|
}));
|
|
1670
1670
|
} catch (a) {
|
|
1671
1671
|
return Promise.reject(a);
|
|
1672
1672
|
}
|
|
1673
1673
|
};
|
|
1674
|
-
if ((function(
|
|
1675
|
-
return "_zod" in
|
|
1676
|
-
})(e)) return function(
|
|
1674
|
+
if ((function(s) {
|
|
1675
|
+
return "_zod" in s && typeof s._zod == "object";
|
|
1676
|
+
})(e)) return function(s, o, n) {
|
|
1677
1677
|
try {
|
|
1678
1678
|
return Promise.resolve(jt(function() {
|
|
1679
|
-
return Promise.resolve((t.mode === "sync" ?
|
|
1680
|
-
return n.shouldUseNativeValidation && at({}, n), { errors: {}, values: t.raw ? Object.assign({},
|
|
1679
|
+
return Promise.resolve((t.mode === "sync" ? Ss : xs)(e, s, r)).then(function(a) {
|
|
1680
|
+
return n.shouldUseNativeValidation && at({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
|
|
1681
1681
|
});
|
|
1682
1682
|
}, function(a) {
|
|
1683
1683
|
if ((function(l) {
|
|
1684
|
-
return l instanceof
|
|
1685
|
-
})(a)) return { values: {}, errors: Ot(
|
|
1684
|
+
return l instanceof vs;
|
|
1685
|
+
})(a)) return { values: {}, errors: Ot(ks(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1686
1686
|
throw a;
|
|
1687
1687
|
}));
|
|
1688
1688
|
} catch (a) {
|
|
@@ -1692,66 +1692,66 @@ function Vo(e, r, t) {
|
|
|
1692
1692
|
throw new Error("Invalid input: not a Zod schema");
|
|
1693
1693
|
}
|
|
1694
1694
|
const _r = V.createContext(null);
|
|
1695
|
-
function
|
|
1695
|
+
function Vs() {
|
|
1696
1696
|
const e = V.useContext(_r);
|
|
1697
1697
|
if (!e)
|
|
1698
1698
|
throw new Error("useFormContext must be used within a Form component");
|
|
1699
1699
|
return e;
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function zs({
|
|
1702
1702
|
onSubmit: e,
|
|
1703
1703
|
children: r,
|
|
1704
1704
|
schema: t,
|
|
1705
|
-
defaultValues:
|
|
1706
|
-
mode:
|
|
1705
|
+
defaultValues: s,
|
|
1706
|
+
mode: o = "onSubmit",
|
|
1707
1707
|
reValidateMode: n = "onChange",
|
|
1708
1708
|
className: a,
|
|
1709
1709
|
style: l,
|
|
1710
1710
|
formProps: f
|
|
1711
1711
|
}) {
|
|
1712
|
-
const u =
|
|
1713
|
-
resolver: t ?
|
|
1714
|
-
defaultValues:
|
|
1715
|
-
mode:
|
|
1712
|
+
const u = ms({
|
|
1713
|
+
resolver: t ? Fs(t) : void 0,
|
|
1714
|
+
defaultValues: s,
|
|
1715
|
+
mode: o,
|
|
1716
1716
|
reValidateMode: n
|
|
1717
1717
|
}), d = u.handleSubmit(e);
|
|
1718
1718
|
return /* @__PURE__ */ S(_r.Provider, { value: u, children: /* @__PURE__ */ S("form", { ...f, className: a, style: l, onSubmit: d, children: typeof r == "function" ? r(u) : r }) });
|
|
1719
1719
|
}
|
|
1720
|
-
const nn =
|
|
1721
|
-
formError:
|
|
1722
|
-
},
|
|
1720
|
+
const nn = zs, $s = "FormError-module__formError___kaUBn", Es = {
|
|
1721
|
+
formError: $s
|
|
1722
|
+
}, As = ({
|
|
1723
1723
|
// Color prop
|
|
1724
1724
|
color: e,
|
|
1725
1725
|
// Content
|
|
1726
1726
|
children: r,
|
|
1727
1727
|
// Style overrides
|
|
1728
1728
|
className: t,
|
|
1729
|
-
style:
|
|
1729
|
+
style: s,
|
|
1730
1730
|
// Element-specific props
|
|
1731
|
-
divProps:
|
|
1731
|
+
divProps: o
|
|
1732
1732
|
}) => {
|
|
1733
1733
|
const n = H(), a = {
|
|
1734
1734
|
"--form-error-margin-top": `calc(${n.fonts.rhythm} * 0.17)`,
|
|
1735
1735
|
color: e || n.colors.error,
|
|
1736
|
-
...
|
|
1736
|
+
...s
|
|
1737
1737
|
// Top level style prop overrides
|
|
1738
|
-
}, l = [
|
|
1739
|
-
return /* @__PURE__ */ S("div", { ...
|
|
1740
|
-
},
|
|
1741
|
-
formGroup:
|
|
1742
|
-
inputWrapper:
|
|
1743
|
-
indented:
|
|
1744
|
-
disabled:
|
|
1745
|
-
required:
|
|
1746
|
-
},
|
|
1738
|
+
}, l = [Es.formError, t].filter(Boolean).join(" ");
|
|
1739
|
+
return /* @__PURE__ */ S("div", { ...o, className: l, style: a, role: "alert", "aria-live": "polite", children: r });
|
|
1740
|
+
}, Ns = "FormGroup-module__formGroup___aVI-B", Bs = "FormGroup-module__inputWrapper___429QE", Ps = "FormGroup-module__indented___t61iz", Rs = "FormGroup-module__disabled___W-tJ0", Ls = "FormGroup-module__required___mO3xA", he = {
|
|
1741
|
+
formGroup: Ns,
|
|
1742
|
+
inputWrapper: Bs,
|
|
1743
|
+
indented: Ps,
|
|
1744
|
+
disabled: Rs,
|
|
1745
|
+
required: Ls
|
|
1746
|
+
}, Ds = ({
|
|
1747
1747
|
// State props
|
|
1748
1748
|
disabled: e = !1,
|
|
1749
1749
|
error: r = !1,
|
|
1750
1750
|
required: t = !1,
|
|
1751
1751
|
// Variant props
|
|
1752
|
-
indent:
|
|
1752
|
+
indent: s = !1,
|
|
1753
1753
|
// Form props
|
|
1754
|
-
name:
|
|
1754
|
+
name: o,
|
|
1755
1755
|
label: n,
|
|
1756
1756
|
errorMessage: a,
|
|
1757
1757
|
labelProps: l,
|
|
@@ -1771,48 +1771,48 @@ const nn = $o, Eo = "FormError-module__formError___kaUBn", Ao = {
|
|
|
1771
1771
|
].filter(Boolean).join(" "), x = {
|
|
1772
1772
|
"--form-group-margin-bottom": `calc(${m.fonts.rhythm} * 0.35)`,
|
|
1773
1773
|
...d
|
|
1774
|
-
}, g = V.Children.map(f, (
|
|
1775
|
-
if (V.isValidElement(
|
|
1776
|
-
const
|
|
1777
|
-
if (e &&
|
|
1778
|
-
return V.cloneElement(
|
|
1774
|
+
}, g = V.Children.map(f, (k) => {
|
|
1775
|
+
if (V.isValidElement(k)) {
|
|
1776
|
+
const w = {};
|
|
1777
|
+
if (e && k.props.disabled === void 0 && (w.disabled = !0), r && k.props.error === void 0 && (w.error = !0), o && k.props.id === void 0 && (w.id = o), Object.keys(w).length > 0)
|
|
1778
|
+
return V.cloneElement(k, w);
|
|
1779
1779
|
}
|
|
1780
|
-
return
|
|
1780
|
+
return k;
|
|
1781
1781
|
});
|
|
1782
1782
|
return /* @__PURE__ */ G("div", { ...h, className: z, style: x, children: [
|
|
1783
|
-
n && /* @__PURE__ */ G(it, { htmlFor:
|
|
1783
|
+
n && /* @__PURE__ */ G(it, { htmlFor: o, disabled: e, error: r, ...l, children: [
|
|
1784
1784
|
n,
|
|
1785
1785
|
t && /* @__PURE__ */ G("span", { className: he.required, "aria-label": "required", children: [
|
|
1786
1786
|
" ",
|
|
1787
1787
|
"*"
|
|
1788
1788
|
] })
|
|
1789
1789
|
] }),
|
|
1790
|
-
/* @__PURE__ */ S("div", { className: `${he.inputWrapper} ${
|
|
1791
|
-
r && a && /* @__PURE__ */ S(
|
|
1790
|
+
/* @__PURE__ */ S("div", { className: `${he.inputWrapper} ${s ? he.indented : ""}`, children: g }),
|
|
1791
|
+
r && a && /* @__PURE__ */ S(As, { children: a })
|
|
1792
1792
|
] });
|
|
1793
1793
|
};
|
|
1794
1794
|
function fe({
|
|
1795
1795
|
name: e,
|
|
1796
1796
|
label: r,
|
|
1797
1797
|
required: t,
|
|
1798
|
-
children:
|
|
1799
|
-
rules:
|
|
1798
|
+
children: s,
|
|
1799
|
+
rules: o,
|
|
1800
1800
|
disabled: n,
|
|
1801
1801
|
className: a,
|
|
1802
1802
|
style: l,
|
|
1803
1803
|
indent: f,
|
|
1804
1804
|
labelProps: u
|
|
1805
1805
|
}) {
|
|
1806
|
-
const { control: d } =
|
|
1806
|
+
const { control: d } = Vs(), {
|
|
1807
1807
|
field: h,
|
|
1808
1808
|
fieldState: { error: m }
|
|
1809
1809
|
} = Xr({
|
|
1810
1810
|
name: e,
|
|
1811
1811
|
control: d,
|
|
1812
|
-
rules:
|
|
1812
|
+
rules: o
|
|
1813
1813
|
});
|
|
1814
1814
|
return /* @__PURE__ */ S(
|
|
1815
|
-
|
|
1815
|
+
Ds,
|
|
1816
1816
|
{
|
|
1817
1817
|
label: r,
|
|
1818
1818
|
name: e,
|
|
@@ -1824,7 +1824,7 @@ function fe({
|
|
|
1824
1824
|
style: l,
|
|
1825
1825
|
indent: f,
|
|
1826
1826
|
labelProps: u,
|
|
1827
|
-
children:
|
|
1827
|
+
children: s({
|
|
1828
1828
|
value: h.value,
|
|
1829
1829
|
onChange: h.onChange,
|
|
1830
1830
|
onBlur: h.onBlur,
|
|
@@ -1835,31 +1835,31 @@ function fe({
|
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
1837
|
}
|
|
1838
|
-
const
|
|
1839
|
-
input:
|
|
1840
|
-
sizeSmall:
|
|
1841
|
-
sizeLarge:
|
|
1842
|
-
},
|
|
1838
|
+
const Ms = "Input-module__input___WjT81", Hs = "Input-module__sizeSmall___NFvsi", Os = "Input-module__sizeLarge___4Boj3", Qe = {
|
|
1839
|
+
input: Ms,
|
|
1840
|
+
sizeSmall: Hs,
|
|
1841
|
+
sizeLarge: Os
|
|
1842
|
+
}, Ts = ({
|
|
1843
1843
|
color: e = "#000",
|
|
1844
1844
|
disabled: r = !1,
|
|
1845
1845
|
fontSize: t = "1em",
|
|
1846
|
-
placeholderOpacity:
|
|
1846
|
+
placeholderOpacity: s = 0.3
|
|
1847
1847
|
}) => ({
|
|
1848
1848
|
borderColor: e,
|
|
1849
1849
|
color: e,
|
|
1850
1850
|
fontSize: t,
|
|
1851
1851
|
opacity: r ? 0.3 : 1,
|
|
1852
|
-
placeholderOpacity:
|
|
1853
|
-
}),
|
|
1852
|
+
placeholderOpacity: s
|
|
1853
|
+
}), js = ({
|
|
1854
1854
|
// State props
|
|
1855
1855
|
disabled: e = !1,
|
|
1856
1856
|
error: r = !1,
|
|
1857
1857
|
// Color prop
|
|
1858
1858
|
color: t,
|
|
1859
1859
|
// Size variant
|
|
1860
|
-
size:
|
|
1860
|
+
size: s = "large",
|
|
1861
1861
|
// Form props
|
|
1862
|
-
id:
|
|
1862
|
+
id: o,
|
|
1863
1863
|
name: n = "",
|
|
1864
1864
|
placeholder: a,
|
|
1865
1865
|
placeholderOpacity: l = 0.3,
|
|
@@ -1874,8 +1874,8 @@ const Ho = "Input-module__input___WjT81", Oo = "Input-module__sizeSmall___NFvsi"
|
|
|
1874
1874
|
// Element-specific props
|
|
1875
1875
|
inputProps: x
|
|
1876
1876
|
}) => {
|
|
1877
|
-
const g = H(),
|
|
1878
|
-
color:
|
|
1877
|
+
const g = H(), k = g.colors.error, w = r ? k : t || g.colors.primary, b = Ts({
|
|
1878
|
+
color: w,
|
|
1879
1879
|
disabled: e,
|
|
1880
1880
|
fontSize: g.fonts.size,
|
|
1881
1881
|
placeholderOpacity: l
|
|
@@ -1893,7 +1893,7 @@ const Ho = "Input-module__input___WjT81", Oo = "Input-module__sizeSmall___NFvsi"
|
|
|
1893
1893
|
// Top level style prop overrides
|
|
1894
1894
|
}, $ = [
|
|
1895
1895
|
Qe.input,
|
|
1896
|
-
|
|
1896
|
+
s === "small" ? Qe.sizeSmall : Qe.sizeLarge,
|
|
1897
1897
|
m
|
|
1898
1898
|
].filter(Boolean).join(" ");
|
|
1899
1899
|
return /* @__PURE__ */ S(
|
|
@@ -1902,7 +1902,7 @@ const Ho = "Input-module__input___WjT81", Oo = "Input-module__sizeSmall___NFvsi"
|
|
|
1902
1902
|
...x,
|
|
1903
1903
|
className: $,
|
|
1904
1904
|
disabled: e,
|
|
1905
|
-
id:
|
|
1905
|
+
id: o,
|
|
1906
1906
|
name: n,
|
|
1907
1907
|
onChange: d,
|
|
1908
1908
|
onBlur: h,
|
|
@@ -1917,8 +1917,8 @@ function an({
|
|
|
1917
1917
|
name: e,
|
|
1918
1918
|
label: r,
|
|
1919
1919
|
required: t,
|
|
1920
|
-
rules:
|
|
1921
|
-
disabled:
|
|
1920
|
+
rules: s,
|
|
1921
|
+
disabled: o,
|
|
1922
1922
|
className: n,
|
|
1923
1923
|
style: a,
|
|
1924
1924
|
...l
|
|
@@ -1929,12 +1929,12 @@ function an({
|
|
|
1929
1929
|
name: e,
|
|
1930
1930
|
label: r,
|
|
1931
1931
|
required: t,
|
|
1932
|
-
rules:
|
|
1933
|
-
disabled:
|
|
1932
|
+
rules: s,
|
|
1933
|
+
disabled: o,
|
|
1934
1934
|
className: n,
|
|
1935
1935
|
style: a,
|
|
1936
1936
|
children: ({ value: f, onChange: u, onBlur: d, name: h, error: m }) => /* @__PURE__ */ S(
|
|
1937
|
-
|
|
1937
|
+
js,
|
|
1938
1938
|
{
|
|
1939
1939
|
...l,
|
|
1940
1940
|
name: h,
|
|
@@ -1947,11 +1947,11 @@ function an({
|
|
|
1947
1947
|
}
|
|
1948
1948
|
);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1951
|
-
textarea:
|
|
1952
|
-
sizeSmall:
|
|
1953
|
-
sizeLarge:
|
|
1954
|
-
},
|
|
1950
|
+
const Is = "Textarea-module__textarea___Z-y6g", Us = "Textarea-module__sizeSmall___HHFEM", Ws = "Textarea-module__sizeLarge___5a3sf", Ke = {
|
|
1951
|
+
textarea: Is,
|
|
1952
|
+
sizeSmall: Us,
|
|
1953
|
+
sizeLarge: Ws
|
|
1954
|
+
}, Gs = ({
|
|
1955
1955
|
color: e = "#000",
|
|
1956
1956
|
disabled: r = !1,
|
|
1957
1957
|
placeholderOpacity: t = 0.3
|
|
@@ -1960,16 +1960,16 @@ const Uo = "Textarea-module__textarea___Z-y6g", Wo = "Textarea-module__sizeSmall
|
|
|
1960
1960
|
borderColor: e,
|
|
1961
1961
|
opacity: r ? 0.3 : 1,
|
|
1962
1962
|
placeholderOpacity: t
|
|
1963
|
-
}),
|
|
1963
|
+
}), qs = ({
|
|
1964
1964
|
// State props
|
|
1965
1965
|
disabled: e = !1,
|
|
1966
1966
|
error: r = !1,
|
|
1967
1967
|
// Color prop
|
|
1968
1968
|
color: t,
|
|
1969
1969
|
// Size variant
|
|
1970
|
-
size:
|
|
1970
|
+
size: s = "large",
|
|
1971
1971
|
// Form props
|
|
1972
|
-
id:
|
|
1972
|
+
id: o,
|
|
1973
1973
|
name: n = "",
|
|
1974
1974
|
placeholder: a,
|
|
1975
1975
|
placeholderOpacity: l = 0.3,
|
|
@@ -1984,8 +1984,8 @@ const Uo = "Textarea-module__textarea___Z-y6g", Wo = "Textarea-module__sizeSmall
|
|
|
1984
1984
|
// Element-specific props
|
|
1985
1985
|
textareaProps: x
|
|
1986
1986
|
}) => {
|
|
1987
|
-
const g = H(),
|
|
1988
|
-
color:
|
|
1987
|
+
const g = H(), k = g.colors.error, w = r ? k : t || g.colors.primary, b = Gs({
|
|
1988
|
+
color: w,
|
|
1989
1989
|
disabled: e,
|
|
1990
1990
|
placeholderOpacity: l
|
|
1991
1991
|
}), E = {
|
|
@@ -2002,7 +2002,7 @@ const Uo = "Textarea-module__textarea___Z-y6g", Wo = "Textarea-module__sizeSmall
|
|
|
2002
2002
|
// Top level style overrides
|
|
2003
2003
|
}, $ = [
|
|
2004
2004
|
Ke.textarea,
|
|
2005
|
-
|
|
2005
|
+
s === "small" ? Ke.sizeSmall : Ke.sizeLarge,
|
|
2006
2006
|
m
|
|
2007
2007
|
].filter(Boolean).join(" ");
|
|
2008
2008
|
return /* @__PURE__ */ S(
|
|
@@ -2011,7 +2011,7 @@ const Uo = "Textarea-module__textarea___Z-y6g", Wo = "Textarea-module__sizeSmall
|
|
|
2011
2011
|
...x,
|
|
2012
2012
|
className: $,
|
|
2013
2013
|
disabled: e,
|
|
2014
|
-
id:
|
|
2014
|
+
id: o,
|
|
2015
2015
|
name: n,
|
|
2016
2016
|
onChange: d,
|
|
2017
2017
|
onBlur: h,
|
|
@@ -2026,8 +2026,8 @@ function ln({
|
|
|
2026
2026
|
name: e,
|
|
2027
2027
|
label: r,
|
|
2028
2028
|
required: t,
|
|
2029
|
-
rules:
|
|
2030
|
-
disabled:
|
|
2029
|
+
rules: s,
|
|
2030
|
+
disabled: o,
|
|
2031
2031
|
className: n,
|
|
2032
2032
|
style: a,
|
|
2033
2033
|
...l
|
|
@@ -2038,12 +2038,12 @@ function ln({
|
|
|
2038
2038
|
name: e,
|
|
2039
2039
|
label: r,
|
|
2040
2040
|
required: t,
|
|
2041
|
-
rules:
|
|
2042
|
-
disabled:
|
|
2041
|
+
rules: s,
|
|
2042
|
+
disabled: o,
|
|
2043
2043
|
className: n,
|
|
2044
2044
|
style: a,
|
|
2045
2045
|
children: ({ value: f, onChange: u, onBlur: d, name: h, error: m }) => /* @__PURE__ */ S(
|
|
2046
|
-
|
|
2046
|
+
qs,
|
|
2047
2047
|
{
|
|
2048
2048
|
...l,
|
|
2049
2049
|
name: h,
|
|
@@ -2056,11 +2056,11 @@ function ln({
|
|
|
2056
2056
|
}
|
|
2057
2057
|
);
|
|
2058
2058
|
}
|
|
2059
|
-
const
|
|
2060
|
-
select:
|
|
2061
|
-
sizeSmall:
|
|
2062
|
-
sizeLarge:
|
|
2063
|
-
},
|
|
2059
|
+
const Zs = "Select-module__select___cjdcr", Qs = "Select-module__sizeSmall___i1quj", Ks = "Select-module__sizeLarge___eBA1T", Ye = {
|
|
2060
|
+
select: Zs,
|
|
2061
|
+
sizeSmall: Qs,
|
|
2062
|
+
sizeLarge: Ks
|
|
2063
|
+
}, Ys = ({
|
|
2064
2064
|
color: e = "#000",
|
|
2065
2065
|
disabled: r = !1
|
|
2066
2066
|
}) => ({
|
|
@@ -2087,16 +2087,16 @@ const Qo = "Select-module__select___cjdcr", Ko = "Select-module__sizeSmall___i1q
|
|
|
2087
2087
|
`.trim();
|
|
2088
2088
|
return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
|
|
2089
2089
|
})(e)
|
|
2090
|
-
}),
|
|
2090
|
+
}), Js = ({
|
|
2091
2091
|
// State props
|
|
2092
2092
|
disabled: e = !1,
|
|
2093
2093
|
error: r = !1,
|
|
2094
2094
|
// Color prop
|
|
2095
2095
|
color: t,
|
|
2096
2096
|
// Size variant
|
|
2097
|
-
size:
|
|
2097
|
+
size: s = "large",
|
|
2098
2098
|
// Form props
|
|
2099
|
-
id:
|
|
2099
|
+
id: o,
|
|
2100
2100
|
name: n = "",
|
|
2101
2101
|
placeholder: a = "",
|
|
2102
2102
|
value: l = "",
|
|
@@ -2110,29 +2110,29 @@ const Qo = "Select-module__select___cjdcr", Ko = "Select-module__sizeSmall___i1q
|
|
|
2110
2110
|
// Element-specific props
|
|
2111
2111
|
selectProps: z
|
|
2112
2112
|
}) => {
|
|
2113
|
-
const x = H(), g = x.colors.error,
|
|
2114
|
-
color:
|
|
2113
|
+
const x = H(), g = x.colors.error, k = r ? g : t || x.colors.primary, w = Ys({
|
|
2114
|
+
color: k,
|
|
2115
2115
|
disabled: e
|
|
2116
2116
|
}), b = {
|
|
2117
2117
|
"--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})`,
|
|
2118
2118
|
"--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})`,
|
|
2119
|
-
backgroundImage:
|
|
2119
|
+
backgroundImage: w.backgroundImage,
|
|
2120
2120
|
backgroundPosition: "right center",
|
|
2121
2121
|
backgroundRepeat: "no-repeat",
|
|
2122
2122
|
backgroundSize: "auto 85%",
|
|
2123
2123
|
backgroundColor: "transparent",
|
|
2124
|
-
borderColor:
|
|
2124
|
+
borderColor: w.borderColor,
|
|
2125
2125
|
borderWidth: x.border.width,
|
|
2126
2126
|
borderRadius: x.border.radius,
|
|
2127
|
-
color:
|
|
2128
|
-
cursor:
|
|
2127
|
+
color: w.color,
|
|
2128
|
+
cursor: w.cursor,
|
|
2129
2129
|
fontSize: x.fonts.size,
|
|
2130
|
-
opacity:
|
|
2130
|
+
opacity: w.opacity,
|
|
2131
2131
|
...m
|
|
2132
2132
|
// Top level style overrides
|
|
2133
2133
|
}, E = [
|
|
2134
2134
|
Ye.select,
|
|
2135
|
-
|
|
2135
|
+
s === "small" ? Ye.sizeSmall : Ye.sizeLarge,
|
|
2136
2136
|
h
|
|
2137
2137
|
].filter(Boolean).join(" ");
|
|
2138
2138
|
return /* @__PURE__ */ G(
|
|
@@ -2141,7 +2141,7 @@ const Qo = "Select-module__select___cjdcr", Ko = "Select-module__sizeSmall___i1q
|
|
|
2141
2141
|
...z,
|
|
2142
2142
|
className: E,
|
|
2143
2143
|
disabled: e,
|
|
2144
|
-
id:
|
|
2144
|
+
id: o,
|
|
2145
2145
|
name: n,
|
|
2146
2146
|
onChange: f,
|
|
2147
2147
|
onBlur: u,
|
|
@@ -2158,8 +2158,8 @@ function cn({
|
|
|
2158
2158
|
name: e,
|
|
2159
2159
|
label: r,
|
|
2160
2160
|
required: t,
|
|
2161
|
-
rules:
|
|
2162
|
-
disabled:
|
|
2161
|
+
rules: s,
|
|
2162
|
+
disabled: o,
|
|
2163
2163
|
className: n,
|
|
2164
2164
|
style: a,
|
|
2165
2165
|
children: l,
|
|
@@ -2171,12 +2171,12 @@ function cn({
|
|
|
2171
2171
|
name: e,
|
|
2172
2172
|
label: r,
|
|
2173
2173
|
required: t,
|
|
2174
|
-
rules:
|
|
2175
|
-
disabled:
|
|
2174
|
+
rules: s,
|
|
2175
|
+
disabled: o,
|
|
2176
2176
|
className: n,
|
|
2177
2177
|
style: a,
|
|
2178
2178
|
children: ({ value: u, onChange: d, onBlur: h, name: m, error: z }) => /* @__PURE__ */ S(
|
|
2179
|
-
|
|
2179
|
+
Js,
|
|
2180
2180
|
{
|
|
2181
2181
|
...f,
|
|
2182
2182
|
name: m,
|
|
@@ -2194,8 +2194,8 @@ function un({
|
|
|
2194
2194
|
name: e,
|
|
2195
2195
|
required: r,
|
|
2196
2196
|
rules: t,
|
|
2197
|
-
disabled:
|
|
2198
|
-
className:
|
|
2197
|
+
disabled: s,
|
|
2198
|
+
className: o,
|
|
2199
2199
|
style: n,
|
|
2200
2200
|
...a
|
|
2201
2201
|
}) {
|
|
@@ -2205,8 +2205,8 @@ function un({
|
|
|
2205
2205
|
name: e,
|
|
2206
2206
|
required: r,
|
|
2207
2207
|
rules: t,
|
|
2208
|
-
disabled:
|
|
2209
|
-
className:
|
|
2208
|
+
disabled: s,
|
|
2209
|
+
className: o,
|
|
2210
2210
|
style: n,
|
|
2211
2211
|
children: ({ value: l, onChange: f, name: u, error: d }) => /* @__PURE__ */ S(
|
|
2212
2212
|
rt,
|
|
@@ -2221,11 +2221,11 @@ function un({
|
|
|
2221
2221
|
}
|
|
2222
2222
|
);
|
|
2223
2223
|
}
|
|
2224
|
-
const
|
|
2225
|
-
container:
|
|
2226
|
-
svg:
|
|
2227
|
-
label:
|
|
2228
|
-
},
|
|
2224
|
+
const Xs = "Radio-module__container___AQxhk", eo = "Radio-module__svg___zl5kF", to = "Radio-module__label___vAFIP", Je = {
|
|
2225
|
+
container: Xs,
|
|
2226
|
+
svg: eo,
|
|
2227
|
+
label: to
|
|
2228
|
+
}, ro = ({
|
|
2229
2229
|
color: e = "#000",
|
|
2230
2230
|
disabled: r = !1
|
|
2231
2231
|
}) => ({
|
|
@@ -2238,9 +2238,9 @@ const es = "Radio-module__container___AQxhk", ts = "Radio-module__svg___zl5kF",
|
|
|
2238
2238
|
// State props
|
|
2239
2239
|
checked: r = !1,
|
|
2240
2240
|
disabled: t = !1,
|
|
2241
|
-
error:
|
|
2241
|
+
error: s = !1,
|
|
2242
2242
|
// Form props
|
|
2243
|
-
name:
|
|
2243
|
+
name: o,
|
|
2244
2244
|
id: n,
|
|
2245
2245
|
onChange: a,
|
|
2246
2246
|
label: l,
|
|
@@ -2251,15 +2251,15 @@ const es = "Radio-module__container___AQxhk", ts = "Radio-module__svg___zl5kF",
|
|
|
2251
2251
|
// Element-specific props
|
|
2252
2252
|
divProps: h
|
|
2253
2253
|
}) => {
|
|
2254
|
-
const m = H(), z = n || Xt(), x = m.colors.error, g =
|
|
2254
|
+
const m = H(), z = n || Xt(), x = m.colors.error, g = s ? x : e || m.colors.primary, k = ro({
|
|
2255
2255
|
color: g,
|
|
2256
2256
|
disabled: t
|
|
2257
|
-
}),
|
|
2257
|
+
}), w = (O) => {
|
|
2258
2258
|
t || a(O);
|
|
2259
2259
|
}, b = {
|
|
2260
|
-
cursor:
|
|
2260
|
+
cursor: k.cursor,
|
|
2261
2261
|
fontSize: m.fonts.size,
|
|
2262
|
-
opacity:
|
|
2262
|
+
opacity: k.opacity,
|
|
2263
2263
|
...d
|
|
2264
2264
|
// Top level style overrides
|
|
2265
2265
|
}, E = {
|
|
@@ -2267,9 +2267,9 @@ const es = "Radio-module__container___AQxhk", ts = "Radio-module__svg___zl5kF",
|
|
|
2267
2267
|
}, $ = {
|
|
2268
2268
|
fill: "transparent",
|
|
2269
2269
|
strokeWidth: "12.5",
|
|
2270
|
-
stroke:
|
|
2270
|
+
stroke: k.radioColor
|
|
2271
2271
|
}, A = {
|
|
2272
|
-
fill:
|
|
2272
|
+
fill: k.radioColor
|
|
2273
2273
|
}, M = [Je.container, u].filter(Boolean).join(" ");
|
|
2274
2274
|
return /* @__PURE__ */ G("div", { ...h, className: M, style: b, children: [
|
|
2275
2275
|
/* @__PURE__ */ S(
|
|
@@ -2278,8 +2278,8 @@ const es = "Radio-module__container___AQxhk", ts = "Radio-module__svg___zl5kF",
|
|
|
2278
2278
|
id: z,
|
|
2279
2279
|
checked: r,
|
|
2280
2280
|
disabled: t,
|
|
2281
|
-
name:
|
|
2282
|
-
onChange: (O) =>
|
|
2281
|
+
name: o,
|
|
2282
|
+
onChange: (O) => w({ target: { checked: O.target.checked, name: o, type: "radio" } }),
|
|
2283
2283
|
style: { display: "none" },
|
|
2284
2284
|
type: "radio"
|
|
2285
2285
|
}
|
|
@@ -2289,7 +2289,7 @@ const es = "Radio-module__container___AQxhk", ts = "Radio-module__svg___zl5kF",
|
|
|
2289
2289
|
{
|
|
2290
2290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2291
2291
|
viewBox: "0 0 100 100",
|
|
2292
|
-
onClick: () =>
|
|
2292
|
+
onClick: () => w({ target: { checked: !r, name: o, type: "radio" } }),
|
|
2293
2293
|
className: Je.svg,
|
|
2294
2294
|
style: E,
|
|
2295
2295
|
children: [
|
|
@@ -2304,9 +2304,9 @@ const es = "Radio-module__container___AQxhk", ts = "Radio-module__svg___zl5kF",
|
|
|
2304
2304
|
htmlFor: z,
|
|
2305
2305
|
className: Je.label,
|
|
2306
2306
|
style: { paddingBottom: 0, ...f },
|
|
2307
|
-
color:
|
|
2307
|
+
color: k.radioColor,
|
|
2308
2308
|
disabled: t,
|
|
2309
|
-
error:
|
|
2309
|
+
error: s,
|
|
2310
2310
|
children: l
|
|
2311
2311
|
}
|
|
2312
2312
|
)
|
|
@@ -2316,8 +2316,8 @@ function dn({
|
|
|
2316
2316
|
name: e,
|
|
2317
2317
|
label: r,
|
|
2318
2318
|
required: t,
|
|
2319
|
-
rules:
|
|
2320
|
-
disabled:
|
|
2319
|
+
rules: s,
|
|
2320
|
+
disabled: o,
|
|
2321
2321
|
className: n,
|
|
2322
2322
|
style: a,
|
|
2323
2323
|
value: l,
|
|
@@ -2328,8 +2328,8 @@ function dn({
|
|
|
2328
2328
|
{
|
|
2329
2329
|
name: e,
|
|
2330
2330
|
required: t,
|
|
2331
|
-
rules:
|
|
2332
|
-
disabled:
|
|
2331
|
+
rules: s,
|
|
2332
|
+
disabled: o,
|
|
2333
2333
|
className: n,
|
|
2334
2334
|
style: a,
|
|
2335
2335
|
children: ({ value: u, onChange: d, name: h, error: m }) => /* @__PURE__ */ S(
|
|
@@ -2350,8 +2350,8 @@ function fn({
|
|
|
2350
2350
|
name: e,
|
|
2351
2351
|
label: r,
|
|
2352
2352
|
required: t,
|
|
2353
|
-
options:
|
|
2354
|
-
disabled:
|
|
2353
|
+
options: s,
|
|
2354
|
+
disabled: o,
|
|
2355
2355
|
className: n,
|
|
2356
2356
|
style: a,
|
|
2357
2357
|
indent: l = !0
|
|
@@ -2362,7 +2362,7 @@ function fn({
|
|
|
2362
2362
|
name: e,
|
|
2363
2363
|
label: r,
|
|
2364
2364
|
required: t,
|
|
2365
|
-
disabled:
|
|
2365
|
+
disabled: o,
|
|
2366
2366
|
className: n,
|
|
2367
2367
|
style: a,
|
|
2368
2368
|
indent: l,
|
|
@@ -2371,14 +2371,14 @@ function fn({
|
|
|
2371
2371
|
marginBottom: ".25em"
|
|
2372
2372
|
}
|
|
2373
2373
|
},
|
|
2374
|
-
children: ({ value: f, onChange: u, name: d, error: h }) => /* @__PURE__ */ S(ke, { children:
|
|
2374
|
+
children: ({ value: f, onChange: u, name: d, error: h }) => /* @__PURE__ */ S(ke, { children: s.map((m) => /* @__PURE__ */ S(
|
|
2375
2375
|
pr,
|
|
2376
2376
|
{
|
|
2377
2377
|
name: d,
|
|
2378
2378
|
checked: f === m.value,
|
|
2379
2379
|
onChange: () => u(m.value),
|
|
2380
2380
|
label: m.label,
|
|
2381
|
-
disabled:
|
|
2381
|
+
disabled: o || m.disabled,
|
|
2382
2382
|
error: h
|
|
2383
2383
|
},
|
|
2384
2384
|
m.value
|
|
@@ -2390,8 +2390,8 @@ function yn({
|
|
|
2390
2390
|
name: e,
|
|
2391
2391
|
label: r,
|
|
2392
2392
|
required: t,
|
|
2393
|
-
options:
|
|
2394
|
-
children:
|
|
2393
|
+
options: s,
|
|
2394
|
+
children: o,
|
|
2395
2395
|
disabled: n,
|
|
2396
2396
|
className: a,
|
|
2397
2397
|
style: l,
|
|
@@ -2413,27 +2413,27 @@ function yn({
|
|
|
2413
2413
|
}
|
|
2414
2414
|
},
|
|
2415
2415
|
children: ({ value: u, onChange: d, name: h, error: m }) => {
|
|
2416
|
-
const z = Array.isArray(u) ? u : [], x = (g,
|
|
2417
|
-
d(
|
|
2416
|
+
const z = Array.isArray(u) ? u : [], x = (g, k) => {
|
|
2417
|
+
d(k ? [...z, g] : z.filter((w) => w !== g));
|
|
2418
2418
|
};
|
|
2419
|
-
return /* @__PURE__ */ S(ke, { children:
|
|
2419
|
+
return /* @__PURE__ */ S(ke, { children: s ? s.map((g) => /* @__PURE__ */ S(
|
|
2420
2420
|
rt,
|
|
2421
2421
|
{
|
|
2422
2422
|
name: `${h}[]`,
|
|
2423
2423
|
checked: z.includes(g.value),
|
|
2424
|
-
onChange: (
|
|
2424
|
+
onChange: (k) => x(g.value, k.target.checked),
|
|
2425
2425
|
label: g.label,
|
|
2426
2426
|
disabled: n || g.disabled,
|
|
2427
2427
|
error: m
|
|
2428
2428
|
},
|
|
2429
2429
|
g.value
|
|
2430
|
-
)) : V.Children.map(
|
|
2430
|
+
)) : V.Children.map(o, (g) => {
|
|
2431
2431
|
if (V.isValidElement(g) && g.type === rt) {
|
|
2432
|
-
const
|
|
2432
|
+
const k = g.props.value || g.props.name;
|
|
2433
2433
|
return V.cloneElement(g, {
|
|
2434
2434
|
name: `${h}[]`,
|
|
2435
|
-
checked: z.includes(
|
|
2436
|
-
onChange: (
|
|
2435
|
+
checked: z.includes(k),
|
|
2436
|
+
onChange: (w) => x(k, w.target.checked),
|
|
2437
2437
|
error: m || g.props.error,
|
|
2438
2438
|
disabled: n || g.props.disabled
|
|
2439
2439
|
});
|
|
@@ -2444,32 +2444,32 @@ function yn({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
);
|
|
2446
2446
|
}
|
|
2447
|
-
const
|
|
2448
|
-
hamburger:
|
|
2449
|
-
line:
|
|
2450
|
-
open:
|
|
2451
|
-
},
|
|
2447
|
+
const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line___gybZM", no = "Hamburger-module__open___gRswh", be = {
|
|
2448
|
+
hamburger: so,
|
|
2449
|
+
line: oo,
|
|
2450
|
+
open: no
|
|
2451
|
+
}, ao = ({
|
|
2452
2452
|
compact: e,
|
|
2453
2453
|
color: r,
|
|
2454
2454
|
visible: t,
|
|
2455
|
-
border:
|
|
2455
|
+
border: s
|
|
2456
2456
|
}) => {
|
|
2457
|
-
const
|
|
2457
|
+
const o = H(), n = e ? "1.5em" : "2em";
|
|
2458
2458
|
return {
|
|
2459
|
-
"--hamburger-border-radius": (
|
|
2459
|
+
"--hamburger-border-radius": (s == null ? void 0 : s.radius) || o.border.radius,
|
|
2460
2460
|
color: r || "inherit",
|
|
2461
2461
|
display: t ? "flex" : "none",
|
|
2462
2462
|
width: n,
|
|
2463
2463
|
height: n
|
|
2464
2464
|
};
|
|
2465
|
-
},
|
|
2465
|
+
}, io = ({
|
|
2466
2466
|
// Color props
|
|
2467
2467
|
color: e,
|
|
2468
2468
|
// State/variant props
|
|
2469
2469
|
visible: r,
|
|
2470
2470
|
compact: t,
|
|
2471
|
-
hamburgerRef:
|
|
2472
|
-
open:
|
|
2471
|
+
hamburgerRef: s,
|
|
2472
|
+
open: o = !1,
|
|
2473
2473
|
// Layout props
|
|
2474
2474
|
border: n,
|
|
2475
2475
|
// Form props
|
|
@@ -2478,21 +2478,21 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2478
2478
|
className: l,
|
|
2479
2479
|
style: f
|
|
2480
2480
|
}) => {
|
|
2481
|
-
const u =
|
|
2481
|
+
const u = ao({
|
|
2482
2482
|
compact: t,
|
|
2483
2483
|
color: e,
|
|
2484
2484
|
visible: r,
|
|
2485
2485
|
border: n
|
|
2486
|
-
}), d = [be.hamburger,
|
|
2486
|
+
}), d = [be.hamburger, o ? be.open : "", l].filter(Boolean).join(" ");
|
|
2487
2487
|
return /* @__PURE__ */ G(
|
|
2488
2488
|
"button",
|
|
2489
2489
|
{
|
|
2490
|
-
ref:
|
|
2490
|
+
ref: s,
|
|
2491
2491
|
className: d,
|
|
2492
|
-
onClick: () => a(!
|
|
2492
|
+
onClick: () => a(!o),
|
|
2493
2493
|
style: { ...u, ...f },
|
|
2494
2494
|
"aria-label": "Toggle menu",
|
|
2495
|
-
"aria-expanded":
|
|
2495
|
+
"aria-expanded": o,
|
|
2496
2496
|
children: [
|
|
2497
2497
|
/* @__PURE__ */ S("div", { className: be.line }),
|
|
2498
2498
|
/* @__PURE__ */ S("div", { className: be.line }),
|
|
@@ -2500,15 +2500,15 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
);
|
|
2503
|
-
},
|
|
2504
|
-
header:
|
|
2505
|
-
container:
|
|
2506
|
-
},
|
|
2503
|
+
}, lo = "Header-module__header___RUooH", co = "Header-module__container___t68M9", It = {
|
|
2504
|
+
header: lo,
|
|
2505
|
+
container: co
|
|
2506
|
+
}, uo = ({
|
|
2507
2507
|
isSmallScreen: e = !1,
|
|
2508
2508
|
maxWidth: r,
|
|
2509
2509
|
minWidth: t,
|
|
2510
|
-
width:
|
|
2511
|
-
height:
|
|
2510
|
+
width: s,
|
|
2511
|
+
height: o,
|
|
2512
2512
|
paddingSm: n,
|
|
2513
2513
|
padding: a,
|
|
2514
2514
|
margin: l,
|
|
@@ -2520,8 +2520,8 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2520
2520
|
return {
|
|
2521
2521
|
"--header-max-width": r || h.layout.maxWidth,
|
|
2522
2522
|
"--header-min-width": t,
|
|
2523
|
-
"--header-width":
|
|
2524
|
-
"--header-height":
|
|
2523
|
+
"--header-width": s,
|
|
2524
|
+
"--header-height": o,
|
|
2525
2525
|
"--header-padding": e ? n || h.layout.paddingSm : a || h.layout.padding,
|
|
2526
2526
|
"--header-margin": l,
|
|
2527
2527
|
"--header-gap": f,
|
|
@@ -2536,14 +2536,14 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2536
2536
|
const a = window.matchMedia(e);
|
|
2537
2537
|
return a.addEventListener("change", n), () => a.removeEventListener("change", n);
|
|
2538
2538
|
}, () => r ? window.matchMedia(e).matches : !1, () => !1);
|
|
2539
|
-
},
|
|
2539
|
+
}, fo = ({
|
|
2540
2540
|
// Color props
|
|
2541
2541
|
backgroundColor: e,
|
|
2542
2542
|
color: r,
|
|
2543
2543
|
// Layout props
|
|
2544
2544
|
maxWidth: t,
|
|
2545
|
-
minWidth:
|
|
2546
|
-
width:
|
|
2545
|
+
minWidth: s,
|
|
2546
|
+
width: o,
|
|
2547
2547
|
height: n,
|
|
2548
2548
|
padding: a,
|
|
2549
2549
|
paddingSm: l,
|
|
@@ -2559,11 +2559,11 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2559
2559
|
// Element-specific props
|
|
2560
2560
|
headerProps: g
|
|
2561
2561
|
}) => {
|
|
2562
|
-
const
|
|
2562
|
+
const k = H(), w = d || k.breakpoints.sm, { maxWidth: b, unit: E } = we(w), $ = ae(`(max-width: ${b}${E})`), A = uo({
|
|
2563
2563
|
isSmallScreen: $,
|
|
2564
2564
|
maxWidth: t,
|
|
2565
|
-
minWidth:
|
|
2566
|
-
width:
|
|
2565
|
+
minWidth: s,
|
|
2566
|
+
width: o,
|
|
2567
2567
|
height: n,
|
|
2568
2568
|
paddingSm: l,
|
|
2569
2569
|
padding: a,
|
|
@@ -2580,23 +2580,23 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2580
2580
|
children: m
|
|
2581
2581
|
}
|
|
2582
2582
|
) });
|
|
2583
|
-
},
|
|
2584
|
-
nav:
|
|
2585
|
-
navMobile:
|
|
2586
|
-
navHeader:
|
|
2587
|
-
compact:
|
|
2588
|
-
open:
|
|
2589
|
-
navDesktop:
|
|
2590
|
-
},
|
|
2583
|
+
}, yo = "ResponsiveNav-module__nav___xOfv5", mo = "ResponsiveNav-module__navMobile___h795P", ho = "ResponsiveNav-module__navHeader___Me8bB", go = "ResponsiveNav-module__compact___UhuAE", _o = "ResponsiveNav-module__open___WDCAf", po = "ResponsiveNav-module__navDesktop___9wscZ", ge = {
|
|
2584
|
+
nav: yo,
|
|
2585
|
+
navMobile: mo,
|
|
2586
|
+
navHeader: ho,
|
|
2587
|
+
compact: go,
|
|
2588
|
+
open: _o,
|
|
2589
|
+
navDesktop: po
|
|
2590
|
+
}, vo = ({
|
|
2591
2591
|
isMobile: e,
|
|
2592
2592
|
isCompact: r,
|
|
2593
2593
|
mobile: t,
|
|
2594
|
-
desktop:
|
|
2594
|
+
desktop: s
|
|
2595
2595
|
}) => {
|
|
2596
|
-
const
|
|
2596
|
+
const o = H();
|
|
2597
2597
|
return He(() => {
|
|
2598
2598
|
if (e) {
|
|
2599
|
-
const n = (t == null ? void 0 : t.backgroundColor) ||
|
|
2599
|
+
const n = (t == null ? void 0 : t.backgroundColor) || o.colors.primary, a = (t == null ? void 0 : t.color) || o.colors.secondary, l = (t == null ? void 0 : t.activeBackgroundColor) || o.colors.secondary, f = (t == null ? void 0 : t.activeColor) || o.colors.primary, u = r || t != null && t.compact ? "1.5rem" : "2rem";
|
|
2600
2600
|
return {
|
|
2601
2601
|
navStyles: {
|
|
2602
2602
|
backgroundColor: n,
|
|
@@ -2613,12 +2613,12 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2613
2613
|
}
|
|
2614
2614
|
};
|
|
2615
2615
|
} else {
|
|
2616
|
-
const n =
|
|
2616
|
+
const n = s == null ? void 0 : s.backgroundColor, a = (s == null ? void 0 : s.color) || o.fonts.color, l = (s == null ? void 0 : s.hoverOpacity) ?? 0.5, f = s == null ? void 0 : s.activeBackgroundColor, u = s == null ? void 0 : s.activeColor;
|
|
2617
2617
|
return {
|
|
2618
2618
|
navStyles: {
|
|
2619
2619
|
...n && { backgroundColor: n },
|
|
2620
2620
|
color: a,
|
|
2621
|
-
...
|
|
2621
|
+
...s == null ? void 0 : s.style
|
|
2622
2622
|
},
|
|
2623
2623
|
linkActiveStyles: {
|
|
2624
2624
|
...f && { backgroundColor: f },
|
|
@@ -2630,19 +2630,19 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2630
2630
|
}
|
|
2631
2631
|
};
|
|
2632
2632
|
}
|
|
2633
|
-
}, [e, r, t,
|
|
2633
|
+
}, [e, r, t, s, o]);
|
|
2634
2634
|
}, mn = ({
|
|
2635
2635
|
mobile: e,
|
|
2636
2636
|
desktop: r,
|
|
2637
2637
|
breakpoints: t,
|
|
2638
|
-
children:
|
|
2639
|
-
className:
|
|
2638
|
+
children: s,
|
|
2639
|
+
className: o,
|
|
2640
2640
|
style: n,
|
|
2641
2641
|
navProps: a
|
|
2642
2642
|
}) => {
|
|
2643
2643
|
var X;
|
|
2644
|
-
const [l, f] = Me(!1), u = Pe(null), d = Pe(null), h = H(), m = { ...h.breakpoints, ...t }, { maxWidth: z, unit: x } = we(m.md), { maxWidth: g, unit:
|
|
2645
|
-
isMobile:
|
|
2644
|
+
const [l, f] = Me(!1), u = Pe(null), d = Pe(null), h = H(), m = { ...h.breakpoints, ...t }, { maxWidth: z, unit: x } = we(m.md), { maxWidth: g, unit: k } = we(m.sm), w = ae(`(max-width: ${z}${x})`), b = ae(`(max-width: ${g}${k})`), { navStyles: E, linkActiveStyles: $, linkHoverStyles: A } = vo({
|
|
2645
|
+
isMobile: w,
|
|
2646
2646
|
isCompact: b,
|
|
2647
2647
|
mobile: e,
|
|
2648
2648
|
desktop: r
|
|
@@ -2659,13 +2659,13 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2659
2659
|
}
|
|
2660
2660
|
};
|
|
2661
2661
|
xe(() => {
|
|
2662
|
-
if (
|
|
2662
|
+
if (w && l) {
|
|
2663
2663
|
const N = window.scrollY;
|
|
2664
2664
|
return document.body.style.position = "fixed", document.body.style.top = `-${N}px`, document.body.style.width = "100%", () => {
|
|
2665
2665
|
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, N);
|
|
2666
2666
|
};
|
|
2667
2667
|
}
|
|
2668
|
-
}, [
|
|
2668
|
+
}, [w, l]), xe(() => {
|
|
2669
2669
|
const N = (P) => {
|
|
2670
2670
|
!d.current || d.current.contains(P.target) || u.current && u.current.contains(P.target) || f(!1);
|
|
2671
2671
|
};
|
|
@@ -2675,20 +2675,20 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2675
2675
|
}, [u, d, f]);
|
|
2676
2676
|
const O = [
|
|
2677
2677
|
ge.nav,
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2678
|
+
w ? ge.navMobile : ge.navDesktop,
|
|
2679
|
+
w && l ? ge.open : "",
|
|
2680
|
+
w && (b || e != null && e.compact) ? ge.compact : "",
|
|
2681
|
+
o
|
|
2682
2682
|
].filter(Boolean).join(" "), Y = (N) => {
|
|
2683
|
-
if (!
|
|
2683
|
+
if (!w) return;
|
|
2684
2684
|
N.target.closest("a, button") && f(!1);
|
|
2685
|
-
}, B =
|
|
2685
|
+
}, B = w ? (e == null ? void 0 : e.content) || s : (r == null ? void 0 : r.content) || s, J = l ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || h.colors.secondary : (X = e == null ? void 0 : e.hamburgerProps) == null ? void 0 : X.color;
|
|
2686
2686
|
return /* @__PURE__ */ G(ke, { children: [
|
|
2687
2687
|
/* @__PURE__ */ S(
|
|
2688
|
-
|
|
2688
|
+
io,
|
|
2689
2689
|
{
|
|
2690
2690
|
hamburgerRef: u,
|
|
2691
|
-
visible:
|
|
2691
|
+
visible: w,
|
|
2692
2692
|
compact: b,
|
|
2693
2693
|
open: l,
|
|
2694
2694
|
setOpen: f,
|
|
@@ -2705,21 +2705,21 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2705
2705
|
style: { ...M, ...n },
|
|
2706
2706
|
onClickCapture: Y,
|
|
2707
2707
|
children: [
|
|
2708
|
-
|
|
2708
|
+
w && l && /* @__PURE__ */ S("div", { className: ge.navHeader }),
|
|
2709
2709
|
typeof B == "function" ? B({ setOpen: f }) : B
|
|
2710
2710
|
]
|
|
2711
2711
|
}
|
|
2712
2712
|
)
|
|
2713
2713
|
] });
|
|
2714
|
-
},
|
|
2714
|
+
}, bo = ({
|
|
2715
2715
|
// Color props
|
|
2716
2716
|
color: e,
|
|
2717
2717
|
backgroundColor: r,
|
|
2718
2718
|
// State/variant props
|
|
2719
2719
|
fullScreen: t = !0,
|
|
2720
2720
|
// Style overrides
|
|
2721
|
-
className:
|
|
2722
|
-
style:
|
|
2721
|
+
className: s,
|
|
2722
|
+
style: o,
|
|
2723
2723
|
// Element-specific props
|
|
2724
2724
|
divProps: n
|
|
2725
2725
|
}) => {
|
|
@@ -2727,7 +2727,7 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2727
2727
|
"div",
|
|
2728
2728
|
{
|
|
2729
2729
|
...t ? void 0 : n,
|
|
2730
|
-
className: t ? void 0 :
|
|
2730
|
+
className: t ? void 0 : s,
|
|
2731
2731
|
style: {
|
|
2732
2732
|
fontSize: "2.5em",
|
|
2733
2733
|
// Default size
|
|
@@ -2735,7 +2735,7 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2735
2735
|
width: "1em",
|
|
2736
2736
|
height: "1em",
|
|
2737
2737
|
animation: "spin 1s linear infinite",
|
|
2738
|
-
...t ? {} :
|
|
2738
|
+
...t ? {} : o,
|
|
2739
2739
|
// Apply user style (can override fontSize, etc.)
|
|
2740
2740
|
border: `0.1em solid ${l}`,
|
|
2741
2741
|
// Color borders always take precedence
|
|
@@ -2755,61 +2755,61 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2755
2755
|
"div",
|
|
2756
2756
|
{
|
|
2757
2757
|
...n,
|
|
2758
|
-
className:
|
|
2758
|
+
className: s,
|
|
2759
2759
|
style: {
|
|
2760
2760
|
display: "flex",
|
|
2761
2761
|
justifyContent: "center",
|
|
2762
2762
|
alignItems: "center",
|
|
2763
2763
|
height: "100vh",
|
|
2764
2764
|
width: "100vw",
|
|
2765
|
-
...
|
|
2765
|
+
...o
|
|
2766
2766
|
// Top level style prop overrides
|
|
2767
2767
|
},
|
|
2768
2768
|
children: d
|
|
2769
2769
|
}
|
|
2770
2770
|
) : d;
|
|
2771
2771
|
}, hn = ({ children: e, loadingComponent: r }) => {
|
|
2772
|
-
const [t,
|
|
2772
|
+
const [t, s] = Me(!1);
|
|
2773
2773
|
return xe(() => {
|
|
2774
2774
|
requestAnimationFrame(() => {
|
|
2775
|
-
|
|
2775
|
+
s(!0);
|
|
2776
2776
|
});
|
|
2777
|
-
}, []), t ? /* @__PURE__ */ S(ke, { children: e }) : r || /* @__PURE__ */ S(
|
|
2778
|
-
},
|
|
2779
|
-
backdrop:
|
|
2780
|
-
modal:
|
|
2781
|
-
header:
|
|
2782
|
-
title:
|
|
2783
|
-
closeButton:
|
|
2784
|
-
content:
|
|
2785
|
-
actions:
|
|
2786
|
-
},
|
|
2787
|
-
stack:
|
|
2788
|
-
vertical: $
|
|
2789
|
-
horizontal:
|
|
2790
|
-
},
|
|
2777
|
+
}, []), t ? /* @__PURE__ */ S(ke, { children: e }) : r || /* @__PURE__ */ S(bo, {});
|
|
2778
|
+
}, So = "Modal-module__backdrop___GVUh4", Co = "Modal-module__modal___aD7aP", xo = "Modal-module__header___ILG9i", wo = "Modal-module__title___A5OeE", ko = "Modal-module__closeButton___3LpSf", Fo = "Modal-module__content___dWO-B", Vo = "Modal-module__actions___hY6zi", ue = {
|
|
2779
|
+
backdrop: So,
|
|
2780
|
+
modal: Co,
|
|
2781
|
+
header: xo,
|
|
2782
|
+
title: wo,
|
|
2783
|
+
closeButton: ko,
|
|
2784
|
+
content: Fo,
|
|
2785
|
+
actions: Vo
|
|
2786
|
+
}, zo = "Stack-module__stack___yUU-B", $o = "Stack-module__vertical___sKTyQ", Eo = "Stack-module__horizontal___YsvtV", Xe = {
|
|
2787
|
+
stack: zo,
|
|
2788
|
+
vertical: $o,
|
|
2789
|
+
horizontal: Eo
|
|
2790
|
+
}, Ao = ({
|
|
2791
2791
|
// Layout props
|
|
2792
2792
|
direction: e = "row",
|
|
2793
2793
|
// Content
|
|
2794
2794
|
children: r,
|
|
2795
2795
|
// Style overrides
|
|
2796
2796
|
className: t,
|
|
2797
|
-
style:
|
|
2797
|
+
style: s,
|
|
2798
2798
|
// Element-specific props
|
|
2799
|
-
divProps:
|
|
2799
|
+
divProps: o
|
|
2800
2800
|
}) => {
|
|
2801
2801
|
const n = [
|
|
2802
2802
|
Xe.stack,
|
|
2803
2803
|
e === "column" ? Xe.vertical : Xe.horizontal,
|
|
2804
2804
|
t
|
|
2805
2805
|
].filter(Boolean).join(" ");
|
|
2806
|
-
return /* @__PURE__ */ S("div", { ...
|
|
2807
|
-
},
|
|
2806
|
+
return /* @__PURE__ */ S("div", { ...o, className: n, style: s, children: r });
|
|
2807
|
+
}, No = ({
|
|
2808
2808
|
isOpen: e,
|
|
2809
2809
|
onClose: r,
|
|
2810
2810
|
children: t,
|
|
2811
|
-
title:
|
|
2812
|
-
hideCloseButton:
|
|
2811
|
+
title: s,
|
|
2812
|
+
hideCloseButton: o = !1,
|
|
2813
2813
|
closeOnBackdropClick: n = !0,
|
|
2814
2814
|
closeOnEscape: a = !0,
|
|
2815
2815
|
actions: l = [],
|
|
@@ -2817,15 +2817,15 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2817
2817
|
width: u = "500px",
|
|
2818
2818
|
maxWidth: d = "90vw",
|
|
2819
2819
|
backgroundColor: h,
|
|
2820
|
-
backdropColor: m,
|
|
2820
|
+
backdropColor: m = "rgba(0, 0, 0, 0.5)",
|
|
2821
2821
|
className: z,
|
|
2822
2822
|
style: x,
|
|
2823
2823
|
divProps: g
|
|
2824
2824
|
}) => {
|
|
2825
|
-
const
|
|
2825
|
+
const k = H(), w = Pe(null), b = Pe(null), { maxWidth: E } = we(k.breakpoints.md), $ = ae(`(max-width: ${E - 1}px)`);
|
|
2826
2826
|
xe(() => {
|
|
2827
2827
|
if (e)
|
|
2828
|
-
return b.current = document.activeElement, document.body.style.overflow = "hidden",
|
|
2828
|
+
return b.current = document.activeElement, document.body.style.overflow = "hidden", w.current && w.current.focus(), () => {
|
|
2829
2829
|
document.body.style.overflow = "", b.current && b.current.focus();
|
|
2830
2830
|
};
|
|
2831
2831
|
}, [e]), xe(() => {
|
|
@@ -2842,12 +2842,11 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2842
2842
|
const M = {
|
|
2843
2843
|
width: u,
|
|
2844
2844
|
maxWidth: d,
|
|
2845
|
-
backgroundColor: h ||
|
|
2846
|
-
borderRadius:
|
|
2847
|
-
boxShadow: w.modal.boxShadow,
|
|
2845
|
+
backgroundColor: h || k.colors.secondary,
|
|
2846
|
+
borderRadius: k.border.radius,
|
|
2848
2847
|
...x
|
|
2849
2848
|
}, O = {
|
|
2850
|
-
backgroundColor: m
|
|
2849
|
+
backgroundColor: m
|
|
2851
2850
|
}, Y = /* @__PURE__ */ S(
|
|
2852
2851
|
"div",
|
|
2853
2852
|
{
|
|
@@ -2858,18 +2857,18 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2858
2857
|
children: /* @__PURE__ */ G(
|
|
2859
2858
|
"div",
|
|
2860
2859
|
{
|
|
2861
|
-
ref:
|
|
2860
|
+
ref: w,
|
|
2862
2861
|
className: [ue.modal, z].filter(Boolean).join(" "),
|
|
2863
2862
|
style: M,
|
|
2864
2863
|
role: "dialog",
|
|
2865
2864
|
"aria-modal": "true",
|
|
2866
|
-
"aria-labelledby":
|
|
2865
|
+
"aria-labelledby": s ? "modal-title" : void 0,
|
|
2867
2866
|
tabIndex: -1,
|
|
2868
2867
|
...g,
|
|
2869
2868
|
children: [
|
|
2870
2869
|
/* @__PURE__ */ G("div", { className: ue.header, children: [
|
|
2871
|
-
|
|
2872
|
-
!
|
|
2870
|
+
s && /* @__PURE__ */ S("h2", { id: "modal-title", className: ue.title, children: s }),
|
|
2871
|
+
!o && /* @__PURE__ */ S(
|
|
2873
2872
|
"button",
|
|
2874
2873
|
{
|
|
2875
2874
|
className: ue.closeButton,
|
|
@@ -2901,7 +2900,7 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2901
2900
|
)
|
|
2902
2901
|
] }),
|
|
2903
2902
|
/* @__PURE__ */ S("div", { className: ue.content, children: t }),
|
|
2904
|
-
l.length > 0 && /* @__PURE__ */ S(
|
|
2903
|
+
l.length > 0 && /* @__PURE__ */ S(Ao, { direction: $ ? "column" : "row", className: ue.actions, children: l.map((B, J) => /* @__PURE__ */ S(
|
|
2905
2904
|
Mr,
|
|
2906
2905
|
{
|
|
2907
2906
|
color: B.color,
|
|
@@ -2921,7 +2920,7 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2921
2920
|
);
|
|
2922
2921
|
return Br(Y, document.body);
|
|
2923
2922
|
}, vr = Zt(null), gn = ({ children: e }) => {
|
|
2924
|
-
const [r, t] = Me(null),
|
|
2923
|
+
const [r, t] = Me(null), s = V.useCallback((u) => new Promise((d, h) => {
|
|
2925
2924
|
const m = Math.random().toString(36).substr(2, 9);
|
|
2926
2925
|
t({
|
|
2927
2926
|
id: m,
|
|
@@ -2932,10 +2931,10 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2932
2931
|
resolve: d,
|
|
2933
2932
|
reject: h
|
|
2934
2933
|
});
|
|
2935
|
-
}), []),
|
|
2934
|
+
}), []), o = V.useCallback((u) => {
|
|
2936
2935
|
t((d) => (d && d.resolve(u), null));
|
|
2937
2936
|
}, []), n = V.useCallback(
|
|
2938
|
-
(u) =>
|
|
2937
|
+
(u) => s({
|
|
2939
2938
|
title: u.title || "Confirm",
|
|
2940
2939
|
content: u.message,
|
|
2941
2940
|
actions: [
|
|
@@ -2952,9 +2951,9 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2952
2951
|
],
|
|
2953
2952
|
options: u.options
|
|
2954
2953
|
}),
|
|
2955
|
-
[
|
|
2954
|
+
[s]
|
|
2956
2955
|
), a = V.useCallback(
|
|
2957
|
-
(u) =>
|
|
2956
|
+
(u) => s({
|
|
2958
2957
|
title: u.title || "Alert",
|
|
2959
2958
|
content: u.message,
|
|
2960
2959
|
actions: [
|
|
@@ -2966,30 +2965,30 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2966
2965
|
],
|
|
2967
2966
|
options: u.options
|
|
2968
2967
|
}),
|
|
2969
|
-
[
|
|
2968
|
+
[s]
|
|
2970
2969
|
), l = V.useCallback(() => {
|
|
2971
|
-
|
|
2972
|
-
}, [
|
|
2970
|
+
o();
|
|
2971
|
+
}, [o]), f = V.useMemo(
|
|
2973
2972
|
() => ({
|
|
2974
|
-
show:
|
|
2975
|
-
resolve:
|
|
2973
|
+
show: s,
|
|
2974
|
+
resolve: o,
|
|
2976
2975
|
confirm: n,
|
|
2977
2976
|
alert: a
|
|
2978
2977
|
}),
|
|
2979
|
-
[
|
|
2978
|
+
[s, o, n, a]
|
|
2980
2979
|
);
|
|
2981
2980
|
return /* @__PURE__ */ G(vr.Provider, { value: f, children: [
|
|
2982
2981
|
e,
|
|
2983
2982
|
r && /* @__PURE__ */ S(
|
|
2984
|
-
|
|
2983
|
+
No,
|
|
2985
2984
|
{
|
|
2986
2985
|
isOpen: !0,
|
|
2987
2986
|
onClose: l,
|
|
2988
2987
|
title: r.title,
|
|
2989
2988
|
actions: r.actions,
|
|
2990
|
-
resolveModal:
|
|
2989
|
+
resolveModal: o,
|
|
2991
2990
|
...r.options,
|
|
2992
|
-
children: typeof r.content == "function" ? r.content(
|
|
2991
|
+
children: typeof r.content == "function" ? r.content(o) : r.content
|
|
2993
2992
|
}
|
|
2994
2993
|
)
|
|
2995
2994
|
] });
|
|
@@ -2998,17 +2997,17 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
2998
2997
|
if (!e)
|
|
2999
2998
|
throw new Error("useModal must be used within a ModalProvider");
|
|
3000
2999
|
return e;
|
|
3001
|
-
},
|
|
3002
|
-
section:
|
|
3003
|
-
innerDiv:
|
|
3000
|
+
}, Bo = "ResponsiveSection-module__section___gBESK", Po = "ResponsiveSection-module__innerDiv___r1bky", Ut = {
|
|
3001
|
+
section: Bo,
|
|
3002
|
+
innerDiv: Po
|
|
3004
3003
|
}, br = ({
|
|
3005
3004
|
// Color props
|
|
3006
3005
|
backgroundColor: e,
|
|
3007
3006
|
color: r,
|
|
3008
3007
|
// Layout props
|
|
3009
3008
|
maxWidth: t,
|
|
3010
|
-
minWidth:
|
|
3011
|
-
width:
|
|
3009
|
+
minWidth: s,
|
|
3010
|
+
width: o,
|
|
3012
3011
|
height: n,
|
|
3013
3012
|
padding: a,
|
|
3014
3013
|
paddingSm: l,
|
|
@@ -3023,36 +3022,36 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3023
3022
|
// Element-specific props
|
|
3024
3023
|
sectionProps: x
|
|
3025
3024
|
}) => {
|
|
3026
|
-
const g = H(),
|
|
3025
|
+
const g = H(), k = ae(`(min-width: ${g.breakpoints.sm})`), w = {
|
|
3027
3026
|
backgroundColor: e,
|
|
3028
3027
|
color: r || g.fonts.color,
|
|
3029
3028
|
margin: f,
|
|
3030
3029
|
...z
|
|
3031
3030
|
// Top level style prop overrides
|
|
3032
|
-
}, b = `calc(${g.fonts.rhythm} * ${d})`, E =
|
|
3031
|
+
}, b = `calc(${g.fonts.rhythm} * ${d})`, E = k ? a || g.layout.padding : l || g.layout.paddingSm, $ = {
|
|
3033
3032
|
"--max-width": t || g.layout.maxWidth,
|
|
3034
|
-
"--min-width":
|
|
3035
|
-
"--width":
|
|
3033
|
+
"--min-width": s,
|
|
3034
|
+
"--width": o,
|
|
3036
3035
|
"--height": n,
|
|
3037
3036
|
"--section-padding": `${b} ${E}`,
|
|
3038
3037
|
"--gap": u
|
|
3039
3038
|
}, A = [Ut.section, m].filter(Boolean).join(" ");
|
|
3040
|
-
return /* @__PURE__ */ S("section", { ...x, className: A, style:
|
|
3041
|
-
},
|
|
3042
|
-
hero:
|
|
3043
|
-
content:
|
|
3044
|
-
},
|
|
3039
|
+
return /* @__PURE__ */ S("section", { ...x, className: A, style: w, children: /* @__PURE__ */ S("div", { className: Ut.innerDiv, style: $, children: h }) });
|
|
3040
|
+
}, Ro = "Hero-module__hero___IB2tg", Lo = "Hero-module__content___rkkfQ", Wt = {
|
|
3041
|
+
hero: Ro,
|
|
3042
|
+
content: Lo
|
|
3043
|
+
}, Do = ({
|
|
3045
3044
|
isMd: e = !1,
|
|
3046
3045
|
isLg: r = !1,
|
|
3047
3046
|
theme: t
|
|
3048
3047
|
}) => He(() => {
|
|
3049
|
-
const { rhythm:
|
|
3050
|
-
let
|
|
3051
|
-
return r ? (
|
|
3052
|
-
"--hero-padding":
|
|
3048
|
+
const { rhythm: s } = t.fonts;
|
|
3049
|
+
let o = `calc(${s} * 2) 0`, n = "2rem", a = "1.125rem";
|
|
3050
|
+
return r ? (o = `calc(${s} * 4) 0`, n = "3.5rem", a = "1.5rem") : e && (o = `calc(${s} * 3.5) 0`, n = "3rem", a = "1.25rem"), {
|
|
3051
|
+
"--hero-padding": o,
|
|
3053
3052
|
"--hero-h1-font-size": n,
|
|
3054
3053
|
"--hero-p-font-size": a,
|
|
3055
|
-
"--hero-h1-margin-bottom": `calc(${
|
|
3054
|
+
"--hero-h1-margin-bottom": `calc(${s} * 0.7)`
|
|
3056
3055
|
};
|
|
3057
3056
|
}, [e, r, t.fonts]), pn = ({
|
|
3058
3057
|
// Color props
|
|
@@ -3062,30 +3061,30 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3062
3061
|
// Content
|
|
3063
3062
|
children: t,
|
|
3064
3063
|
// Style overrides
|
|
3065
|
-
className:
|
|
3066
|
-
style:
|
|
3064
|
+
className: s,
|
|
3065
|
+
style: o,
|
|
3067
3066
|
...n
|
|
3068
3067
|
}) => {
|
|
3069
|
-
const a = H(), l = [Wt.hero,
|
|
3068
|
+
const a = H(), l = [Wt.hero, s].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, u = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = ae(`(min-width: ${f})`), h = ae(`(min-width: ${u})`), m = Do({ isMd: d, isLg: h, theme: a });
|
|
3070
3069
|
return /* @__PURE__ */ S(
|
|
3071
3070
|
br,
|
|
3072
3071
|
{
|
|
3073
3072
|
className: l,
|
|
3074
3073
|
color: e || a.fonts.color,
|
|
3075
|
-
style: { ...m, ...
|
|
3074
|
+
style: { ...m, ...o },
|
|
3076
3075
|
...n,
|
|
3077
3076
|
children: /* @__PURE__ */ S("div", { className: Wt.content, children: t })
|
|
3078
3077
|
}
|
|
3079
3078
|
);
|
|
3080
|
-
},
|
|
3081
|
-
footer:
|
|
3082
|
-
container:
|
|
3083
|
-
},
|
|
3079
|
+
}, Mo = "Footer-module__footer___A76NF", Ho = "Footer-module__container___QneNs", Gt = {
|
|
3080
|
+
footer: Mo,
|
|
3081
|
+
container: Ho
|
|
3082
|
+
}, Oo = ({
|
|
3084
3083
|
isSmallScreen: e = !1,
|
|
3085
3084
|
maxWidth: r,
|
|
3086
3085
|
minWidth: t,
|
|
3087
|
-
width:
|
|
3088
|
-
height:
|
|
3086
|
+
width: s,
|
|
3087
|
+
height: o,
|
|
3089
3088
|
paddingSm: n,
|
|
3090
3089
|
padding: a,
|
|
3091
3090
|
margin: l,
|
|
@@ -3097,22 +3096,22 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3097
3096
|
return {
|
|
3098
3097
|
maxWidth: r || h.layout.maxWidth,
|
|
3099
3098
|
minWidth: t,
|
|
3100
|
-
width:
|
|
3101
|
-
height:
|
|
3099
|
+
width: s,
|
|
3100
|
+
height: o,
|
|
3102
3101
|
padding: e ? n || h.layout.paddingSm : a || h.layout.padding,
|
|
3103
3102
|
margin: l,
|
|
3104
3103
|
gap: f,
|
|
3105
3104
|
backgroundColor: u,
|
|
3106
3105
|
color: d || h.fonts.color
|
|
3107
3106
|
};
|
|
3108
|
-
},
|
|
3107
|
+
}, To = ({
|
|
3109
3108
|
// Color props
|
|
3110
3109
|
backgroundColor: e,
|
|
3111
3110
|
color: r,
|
|
3112
3111
|
// Layout props
|
|
3113
3112
|
maxWidth: t,
|
|
3114
|
-
minWidth:
|
|
3115
|
-
width:
|
|
3113
|
+
minWidth: s,
|
|
3114
|
+
width: o,
|
|
3116
3115
|
height: n,
|
|
3117
3116
|
padding: a,
|
|
3118
3117
|
paddingSm: l,
|
|
@@ -3127,11 +3126,11 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3127
3126
|
// Element-specific props
|
|
3128
3127
|
footerProps: x
|
|
3129
3128
|
}) => {
|
|
3130
|
-
const g = H(),
|
|
3129
|
+
const g = H(), k = d || g.breakpoints.sm, { maxWidth: w, unit: b } = we(k), E = ae(`(max-width: ${w}${b})`), $ = Oo({
|
|
3131
3130
|
isSmallScreen: E,
|
|
3132
3131
|
maxWidth: t,
|
|
3133
|
-
minWidth:
|
|
3134
|
-
width:
|
|
3132
|
+
minWidth: s,
|
|
3133
|
+
width: o,
|
|
3135
3134
|
height: n,
|
|
3136
3135
|
paddingSm: l,
|
|
3137
3136
|
padding: a,
|
|
@@ -3141,12 +3140,12 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3141
3140
|
color: r
|
|
3142
3141
|
}), A = [Gt.container, m].filter(Boolean).join(" ");
|
|
3143
3142
|
return /* @__PURE__ */ S("footer", { ...x, className: Gt.footer, children: /* @__PURE__ */ S("div", { className: A, style: { ...$, ...z }, children: h }) });
|
|
3144
|
-
},
|
|
3145
|
-
card:
|
|
3146
|
-
icon:
|
|
3147
|
-
title:
|
|
3148
|
-
content:
|
|
3149
|
-
},
|
|
3143
|
+
}, jo = "FeatureCard-module__card___XQt66", Io = "FeatureCard-module__icon___dXJ92", Uo = "FeatureCard-module__title___KxXyA", Wo = "FeatureCard-module__content___68xkw", Be = {
|
|
3144
|
+
card: jo,
|
|
3145
|
+
icon: Io,
|
|
3146
|
+
title: Uo,
|
|
3147
|
+
content: Wo
|
|
3148
|
+
}, Go = ({
|
|
3150
3149
|
isMd: e = !1,
|
|
3151
3150
|
theme: r
|
|
3152
3151
|
}) => He(() => {
|
|
@@ -3164,14 +3163,14 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3164
3163
|
// Content
|
|
3165
3164
|
icon: r,
|
|
3166
3165
|
title: t,
|
|
3167
|
-
children:
|
|
3166
|
+
children: s,
|
|
3168
3167
|
// Style overrides
|
|
3169
|
-
className:
|
|
3168
|
+
className: o,
|
|
3170
3169
|
style: n,
|
|
3171
3170
|
// Element-specific props
|
|
3172
3171
|
divProps: a
|
|
3173
3172
|
}) => {
|
|
3174
|
-
const l = H(), f = [Be.card,
|
|
3173
|
+
const l = H(), f = [Be.card, o].filter(Boolean).join(" "), u = e || l.breakpoints.md, d = ae(`(min-width: ${u})`), h = Go({ isMd: d, theme: l });
|
|
3175
3174
|
return /* @__PURE__ */ G(
|
|
3176
3175
|
"div",
|
|
3177
3176
|
{
|
|
@@ -3181,14 +3180,14 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3181
3180
|
children: [
|
|
3182
3181
|
r && /* @__PURE__ */ S("div", { className: Be.icon, children: r }),
|
|
3183
3182
|
/* @__PURE__ */ S("h3", { className: Be.title, children: t }),
|
|
3184
|
-
/* @__PURE__ */ S("div", { className: Be.content, children:
|
|
3183
|
+
/* @__PURE__ */ S("div", { className: Be.content, children: s })
|
|
3185
3184
|
]
|
|
3186
3185
|
}
|
|
3187
3186
|
);
|
|
3188
|
-
},
|
|
3189
|
-
section:
|
|
3190
|
-
grid:
|
|
3191
|
-
},
|
|
3187
|
+
}, qo = "FeatureGridSection-module__section___wZrbC", Zo = "FeatureGridSection-module__grid___iwPJv", qt = {
|
|
3188
|
+
section: qo,
|
|
3189
|
+
grid: Zo
|
|
3190
|
+
}, Qo = ({
|
|
3192
3191
|
columns: e,
|
|
3193
3192
|
isMd: r = !1,
|
|
3194
3193
|
isLg: t = !1
|
|
@@ -3209,84 +3208,84 @@ const ss = "Hamburger-module__hamburger___Tf4-t", ns = "Hamburger-module__line__
|
|
|
3209
3208
|
breakpoints: r,
|
|
3210
3209
|
gap: t,
|
|
3211
3210
|
// Content
|
|
3212
|
-
children:
|
|
3211
|
+
children: s,
|
|
3213
3212
|
// Style overrides
|
|
3214
|
-
className:
|
|
3213
|
+
className: o,
|
|
3215
3214
|
style: n,
|
|
3216
3215
|
...a
|
|
3217
3216
|
}) => {
|
|
3218
|
-
const l = H(), f = [qt.section,
|
|
3217
|
+
const l = H(), f = [qt.section, o].filter(Boolean).join(" "), u = (r == null ? void 0 : r.md) || l.breakpoints.md, d = (r == null ? void 0 : r.lg) || l.breakpoints.lg, h = ae(`(min-width: ${u})`), m = ae(`(min-width: ${d})`), z = Qo({ columns: e, isMd: h, isLg: m }), x = {
|
|
3219
3218
|
"--section-padding-vertical": `calc(${l.fonts.rhythm} * 2)`
|
|
3220
3219
|
}, g = {
|
|
3221
3220
|
...z,
|
|
3222
3221
|
gap: t,
|
|
3223
3222
|
...n
|
|
3224
3223
|
};
|
|
3225
|
-
return /* @__PURE__ */ S(br, { className: f, style: x, ...a, children: /* @__PURE__ */ S("div", { className: qt.grid, style: g, children:
|
|
3226
|
-
},
|
|
3227
|
-
layoutContainer:
|
|
3228
|
-
content:
|
|
3229
|
-
main:
|
|
3224
|
+
return /* @__PURE__ */ S(br, { className: f, style: x, ...a, children: /* @__PURE__ */ S("div", { className: qt.grid, style: g, children: s }) });
|
|
3225
|
+
}, Ko = "PageLayout-module__layoutContainer___diLdT", Yo = "PageLayout-module__content___h2mBr", Jo = "PageLayout-module__main___Sw7Pv", et = {
|
|
3226
|
+
layoutContainer: Ko,
|
|
3227
|
+
content: Yo,
|
|
3228
|
+
main: Jo
|
|
3230
3229
|
}, Sn = ({
|
|
3231
3230
|
// Content
|
|
3232
3231
|
header: e,
|
|
3233
3232
|
footer: r,
|
|
3234
3233
|
children: t,
|
|
3235
3234
|
// Style overrides
|
|
3236
|
-
className:
|
|
3237
|
-
style:
|
|
3235
|
+
className: s,
|
|
3236
|
+
style: o,
|
|
3238
3237
|
// Element-specific props
|
|
3239
3238
|
headerProps: n,
|
|
3240
3239
|
footerProps: a,
|
|
3241
3240
|
divProps: l,
|
|
3242
3241
|
mainProps: f
|
|
3243
3242
|
}) => {
|
|
3244
|
-
const u = [et.layoutContainer,
|
|
3245
|
-
return /* @__PURE__ */ G("div", { ...l, className: u, style:
|
|
3243
|
+
const u = [et.layoutContainer, s].filter(Boolean).join(" ");
|
|
3244
|
+
return /* @__PURE__ */ G("div", { ...l, className: u, style: o, children: [
|
|
3246
3245
|
/* @__PURE__ */ G("div", { className: et.content, children: [
|
|
3247
|
-
e && /* @__PURE__ */ S(
|
|
3246
|
+
e && /* @__PURE__ */ S(fo, { ...n, children: e }),
|
|
3248
3247
|
/* @__PURE__ */ S("main", { ...f, className: et.main, children: t })
|
|
3249
3248
|
] }),
|
|
3250
|
-
r && /* @__PURE__ */ S(
|
|
3249
|
+
r && /* @__PURE__ */ S(To, { ...a, children: r })
|
|
3251
3250
|
] });
|
|
3252
3251
|
};
|
|
3253
3252
|
export {
|
|
3254
3253
|
Mr as Button,
|
|
3255
|
-
|
|
3254
|
+
on as CSSReset,
|
|
3256
3255
|
rt as Checkbox,
|
|
3257
3256
|
vn as FeatureCard,
|
|
3258
3257
|
bn as FeatureGridSection,
|
|
3259
|
-
|
|
3258
|
+
To as Footer,
|
|
3260
3259
|
nn as Form,
|
|
3261
3260
|
un as FormCheckbox,
|
|
3262
3261
|
yn as FormCheckboxGroup,
|
|
3263
|
-
|
|
3262
|
+
As as FormError,
|
|
3264
3263
|
fe as FormField,
|
|
3265
|
-
|
|
3264
|
+
Ds as FormGroup,
|
|
3266
3265
|
an as FormInput,
|
|
3267
3266
|
it as FormLabel,
|
|
3268
3267
|
dn as FormRadio,
|
|
3269
3268
|
fn as FormRadioGroup,
|
|
3270
3269
|
cn as FormSelect,
|
|
3271
3270
|
ln as FormTextarea,
|
|
3272
|
-
|
|
3273
|
-
|
|
3271
|
+
io as Hamburger,
|
|
3272
|
+
fo as Header,
|
|
3274
3273
|
pn as Hero,
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3274
|
+
js as Input,
|
|
3275
|
+
bo as LoadingSpinner,
|
|
3276
|
+
No as Modal,
|
|
3278
3277
|
gn as ModalProvider,
|
|
3279
3278
|
Sn as PageLayout,
|
|
3280
3279
|
pr as Radio,
|
|
3281
3280
|
mn as ResponsiveNav,
|
|
3282
3281
|
br as ResponsiveSection,
|
|
3283
|
-
|
|
3284
|
-
|
|
3282
|
+
Js as Select,
|
|
3283
|
+
Ao as Stack,
|
|
3285
3284
|
hn as StyleLoader,
|
|
3286
|
-
|
|
3287
|
-
|
|
3285
|
+
qs as Textarea,
|
|
3286
|
+
sn as ThemeProvider,
|
|
3288
3287
|
we as parseBreakpoint,
|
|
3289
|
-
|
|
3288
|
+
Vs as useFormContext,
|
|
3290
3289
|
ae as useMediaQuery,
|
|
3291
3290
|
_n as useModal,
|
|
3292
3291
|
H as useTheme
|