digital-rabbit-cl 2.0.7 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Hamburger/Hamburger.d.ts +1 -1
- package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +2 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +971 -964
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
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)}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavItem-module__trigger___og97w{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:700;gap:.375rem;padding:0;text-decoration:none}.NavItem-module__trigger___og97w:hover,.NavItem-module__triggerOpen___7lIFg{opacity:var(--desktop-hover-opacity, .5)}.NavItem-module__chevron___awf4c{align-items:center;display:inline-flex;transition:transform .2s ease}.NavItem-module__chevronOpen___ZtUGj{transform:rotate(180deg)}.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
|
-
import { jsx as
|
|
3
|
-
import
|
|
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;min-height:100%;text-align:left;text-transform:uppercase;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.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)}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavItem-module__trigger___og97w{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:700;gap:.375rem;padding:0;text-decoration:none}.NavItem-module__trigger___og97w:hover,.NavItem-module__triggerOpen___7lIFg{opacity:var(--desktop-hover-opacity, .5)}.NavItem-module__chevron___awf4c{align-items:center;display:inline-flex;transition:transform .2s ease}.NavItem-module__chevronOpen___ZtUGj{transform:rotate(180deg)}.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
|
+
import { jsx as p, jsxs as U, Fragment as pe } from "react/jsx-runtime";
|
|
3
|
+
import x, { createContext as mt, useContext as er, useState as ye, useLayoutEffect as Rr, useSyncExternalStore as Or, useRef as Ee, useCallback as Le, useEffect as de, useMemo as We } from "react";
|
|
4
4
|
import { createPortal as at } from "react-dom";
|
|
5
|
-
const
|
|
6
|
-
button:
|
|
5
|
+
const Mr = "Button-module__button___2ZuB7", Dr = "Button-module__sizeSmall___DRT8P", Hr = "Button-module__sizeLarge___yeZSH", Pe = {
|
|
6
|
+
button: Mr,
|
|
7
7
|
sizeSmall: Dr,
|
|
8
|
-
sizeLarge:
|
|
9
|
-
},
|
|
8
|
+
sizeLarge: Hr
|
|
9
|
+
}, jr = ({
|
|
10
10
|
isActive: e,
|
|
11
11
|
disabled: r,
|
|
12
12
|
color: t,
|
|
@@ -54,7 +54,7 @@ function $e(e) {
|
|
|
54
54
|
unit: o
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const Je = {
|
|
58
58
|
primary: "#000",
|
|
59
59
|
secondary: "#FFF",
|
|
60
60
|
accent: "#4381C1",
|
|
@@ -62,7 +62,7 @@ const Ye = {
|
|
|
62
62
|
success: "#008000",
|
|
63
63
|
warning: "#FFEB3B"
|
|
64
64
|
}, it = {
|
|
65
|
-
colors:
|
|
65
|
+
colors: Je,
|
|
66
66
|
fonts: {
|
|
67
67
|
color: "#000",
|
|
68
68
|
lineHeight: 1.5,
|
|
@@ -81,7 +81,7 @@ const Ye = {
|
|
|
81
81
|
textColor: "#FFF",
|
|
82
82
|
paddingHorizontal: 0.35,
|
|
83
83
|
primary: {
|
|
84
|
-
textColor:
|
|
84
|
+
textColor: Je.secondary
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
inputs: {
|
|
@@ -111,14 +111,14 @@ const Ye = {
|
|
|
111
111
|
padding: "1rem"
|
|
112
112
|
},
|
|
113
113
|
modal: {
|
|
114
|
-
backgroundColor:
|
|
114
|
+
backgroundColor: Je.secondary,
|
|
115
115
|
backdropColor: "rgba(0, 0, 0, 0.5)",
|
|
116
116
|
boxShadow: "0 10px 40px rgba(0, 0, 0, 0.2)"
|
|
117
117
|
}
|
|
118
|
-
}, rr = mt(it),
|
|
118
|
+
}, rr = mt(it), wn = ({ theme: e, children: r }) => {
|
|
119
119
|
const t = e ? tr(it, e) : it;
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
},
|
|
120
|
+
return /* @__PURE__ */ p(rr.Provider, { value: t, children: r });
|
|
121
|
+
}, T = () => er(rr), Tr = ({
|
|
122
122
|
// Core styling
|
|
123
123
|
color: e,
|
|
124
124
|
hoverColor: r,
|
|
@@ -135,8 +135,8 @@ const Ye = {
|
|
|
135
135
|
onClick: d,
|
|
136
136
|
children: h
|
|
137
137
|
}) => {
|
|
138
|
-
const y =
|
|
139
|
-
...
|
|
138
|
+
const y = T(), [V, w] = ye(!1), k = {
|
|
139
|
+
...jr({
|
|
140
140
|
isActive: V,
|
|
141
141
|
disabled: o,
|
|
142
142
|
color: e,
|
|
@@ -152,54 +152,54 @@ const Ye = {
|
|
|
152
152
|
"--button-padding-large": `calc(${y.fonts.rhythm} * ${y.sizes.large.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,
|
|
153
153
|
...f
|
|
154
154
|
// Top-level style overrides
|
|
155
|
-
},
|
|
155
|
+
}, E = [
|
|
156
156
|
Pe.button,
|
|
157
157
|
s === "small" ? Pe.sizeSmall : Pe.sizeLarge,
|
|
158
158
|
n ? Pe.outline : "",
|
|
159
159
|
l
|
|
160
160
|
].filter(Boolean).join(" ");
|
|
161
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ p(
|
|
162
162
|
"button",
|
|
163
163
|
{
|
|
164
164
|
...u,
|
|
165
|
-
className:
|
|
165
|
+
className: E,
|
|
166
166
|
disabled: o,
|
|
167
167
|
onClick: d,
|
|
168
168
|
onMouseEnter: () => w(!0),
|
|
169
169
|
onMouseLeave: () => w(!1),
|
|
170
170
|
type: a,
|
|
171
|
-
style:
|
|
171
|
+
style: k,
|
|
172
172
|
children: h
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
175
|
};
|
|
176
|
-
var Nt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto),
|
|
177
|
-
function
|
|
176
|
+
var Nt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Ir = new Uint8Array(16);
|
|
177
|
+
function Wr() {
|
|
178
178
|
if (!Nt)
|
|
179
179
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
180
|
-
return Nt(
|
|
180
|
+
return Nt(Ir);
|
|
181
181
|
}
|
|
182
182
|
var or = [];
|
|
183
183
|
for (var Oe = 0; Oe < 256; ++Oe)
|
|
184
184
|
or[Oe] = (Oe + 256).toString(16).substr(1);
|
|
185
|
-
function
|
|
185
|
+
function Ur(e, r) {
|
|
186
186
|
var t = 0, o = or;
|
|
187
187
|
return [o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]]].join("");
|
|
188
188
|
}
|
|
189
189
|
function sr(e, r, t) {
|
|
190
190
|
var o = r && t || 0;
|
|
191
191
|
typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
192
|
-
var s = e.random || (e.rng ||
|
|
192
|
+
var s = e.random || (e.rng || Wr)();
|
|
193
193
|
if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, r)
|
|
194
194
|
for (var n = 0; n < 16; ++n)
|
|
195
195
|
r[o + n] = s[n];
|
|
196
|
-
return r ||
|
|
196
|
+
return r || Ur(s);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
container:
|
|
200
|
-
svg:
|
|
201
|
-
label:
|
|
202
|
-
},
|
|
198
|
+
const qr = "Checkbox-module__container___aV9qz", Gr = "Checkbox-module__svg___kkluC", Zr = "Checkbox-module__label___cwRtI", Xe = {
|
|
199
|
+
container: qr,
|
|
200
|
+
svg: Gr,
|
|
201
|
+
label: Zr
|
|
202
|
+
}, Qr = ({
|
|
203
203
|
color: e = "#000",
|
|
204
204
|
checkmarkColor: r,
|
|
205
205
|
disabled: t = !1,
|
|
@@ -212,10 +212,10 @@ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kk
|
|
|
212
212
|
cursor: t ? "default" : "pointer",
|
|
213
213
|
opacity: t ? 0.3 : 1
|
|
214
214
|
};
|
|
215
|
-
},
|
|
216
|
-
label:
|
|
217
|
-
disabled:
|
|
218
|
-
},
|
|
215
|
+
}, Kr = "FormLabel-module__label___0M-fo", Jr = "FormLabel-module__disabled___ktIFp", Bt = {
|
|
216
|
+
label: Kr,
|
|
217
|
+
disabled: Jr
|
|
218
|
+
}, Xr = ({
|
|
219
219
|
color: e = "#000",
|
|
220
220
|
disabled: r = !1,
|
|
221
221
|
fontSize: t = ".85em"
|
|
@@ -240,7 +240,7 @@ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kk
|
|
|
240
240
|
// Element-specific props
|
|
241
241
|
labelProps: l
|
|
242
242
|
}) => {
|
|
243
|
-
const f =
|
|
243
|
+
const f = T(), u = f.colors.error, d = t ? u : e || f.colors.primary, h = Xr({
|
|
244
244
|
color: d,
|
|
245
245
|
disabled: r,
|
|
246
246
|
fontSize: ".85em"
|
|
@@ -252,8 +252,8 @@ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kk
|
|
|
252
252
|
cursor: h.cursor,
|
|
253
253
|
...a
|
|
254
254
|
// Top level style prop overrides
|
|
255
|
-
}, V = [
|
|
256
|
-
return /* @__PURE__ */
|
|
255
|
+
}, V = [Bt.label, r ? Bt.disabled : "", n].filter(Boolean).join(" ");
|
|
256
|
+
return /* @__PURE__ */ p("label", { ...l, className: V, htmlFor: o, style: y, children: s });
|
|
257
257
|
}, lt = ({
|
|
258
258
|
// Color props
|
|
259
259
|
color: e,
|
|
@@ -275,38 +275,38 @@ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kk
|
|
|
275
275
|
// Element-specific props
|
|
276
276
|
divProps: V
|
|
277
277
|
}) => {
|
|
278
|
-
const w =
|
|
279
|
-
color:
|
|
278
|
+
const w = T(), g = l || sr(), k = w.colors.error, E = n ? k : e || w.colors.primary, _ = Qr({
|
|
279
|
+
color: E,
|
|
280
280
|
checkmarkColor: r,
|
|
281
281
|
disabled: s,
|
|
282
282
|
inverted: o
|
|
283
|
-
}),
|
|
284
|
-
s || f(
|
|
285
|
-
},
|
|
283
|
+
}), z = (P) => {
|
|
284
|
+
s || f(P);
|
|
285
|
+
}, $ = {
|
|
286
286
|
cursor: _.cursor,
|
|
287
287
|
fontSize: w.fonts.size,
|
|
288
288
|
opacity: _.opacity,
|
|
289
289
|
...y
|
|
290
290
|
// Top-level style prop overrides
|
|
291
|
-
},
|
|
291
|
+
}, A = {
|
|
292
292
|
width: "1em"
|
|
293
|
-
},
|
|
293
|
+
}, R = {
|
|
294
294
|
fill: o && t ? _.checkboxColor : "transparent",
|
|
295
295
|
strokeWidth: "25",
|
|
296
296
|
stroke: _.checkboxColor
|
|
297
|
-
},
|
|
297
|
+
}, H = {
|
|
298
298
|
stroke: _.checkmarkColor,
|
|
299
299
|
strokeWidth: "15",
|
|
300
300
|
fill: "transparent"
|
|
301
|
-
},
|
|
302
|
-
return /* @__PURE__ */ U("div", { ...V, className:
|
|
303
|
-
/* @__PURE__ */
|
|
301
|
+
}, Q = [Xe.container, h].filter(Boolean).join(" ");
|
|
302
|
+
return /* @__PURE__ */ U("div", { ...V, className: Q, style: $, children: [
|
|
303
|
+
/* @__PURE__ */ p(
|
|
304
304
|
"input",
|
|
305
305
|
{
|
|
306
306
|
id: g,
|
|
307
307
|
checked: t,
|
|
308
308
|
disabled: s,
|
|
309
|
-
onChange: (
|
|
309
|
+
onChange: (P) => z({ target: { checked: P.target.checked, name: a, type: "checkbox" } }),
|
|
310
310
|
name: a,
|
|
311
311
|
style: { display: "none" },
|
|
312
312
|
type: "checkbox"
|
|
@@ -317,20 +317,20 @@ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kk
|
|
|
317
317
|
{
|
|
318
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
319
319
|
viewBox: "0 0 100 100",
|
|
320
|
-
onClick: () =>
|
|
321
|
-
style:
|
|
322
|
-
className:
|
|
320
|
+
onClick: () => z({ target: { checked: !t, name: a, type: "checkbox" } }),
|
|
321
|
+
style: A,
|
|
322
|
+
className: Xe.svg,
|
|
323
323
|
children: [
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
t && /* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ p("rect", { x: "0", y: "0", height: "100", width: "100", style: R }),
|
|
325
|
+
t && /* @__PURE__ */ p("path", { d: "M 25 45 L 45 65 L 75 30", style: H })
|
|
326
326
|
]
|
|
327
327
|
}
|
|
328
328
|
),
|
|
329
|
-
u && /* @__PURE__ */
|
|
329
|
+
u && /* @__PURE__ */ p(
|
|
330
330
|
yt,
|
|
331
331
|
{
|
|
332
332
|
htmlFor: g,
|
|
333
|
-
className:
|
|
333
|
+
className: Xe.label,
|
|
334
334
|
style: { paddingBottom: 0, ...d },
|
|
335
335
|
color: _.checkboxColor,
|
|
336
336
|
disabled: s,
|
|
@@ -339,40 +339,40 @@ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kk
|
|
|
339
339
|
}
|
|
340
340
|
)
|
|
341
341
|
] });
|
|
342
|
-
},
|
|
343
|
-
const e =
|
|
344
|
-
return
|
|
342
|
+
}, Cn = () => {
|
|
343
|
+
const e = T();
|
|
344
|
+
return Rr(() => {
|
|
345
345
|
const r = document.documentElement;
|
|
346
346
|
e.fonts && (e.fonts.fontFamily && r.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && r.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && r.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && r.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && r.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && r.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && r.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && r.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && r.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && r.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && r.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && r.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && r.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && r.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && r.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && r.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && r.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && r.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.paddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.paddingSm), e.layout.padding && r.style.setProperty("--layout-wrapper-padding", e.layout.padding));
|
|
347
347
|
}, [e]), null;
|
|
348
348
|
};
|
|
349
349
|
var Ae = (e) => e.type === "checkbox", _e = (e) => e instanceof Date, te = (e) => e == null;
|
|
350
350
|
const nr = (e) => typeof e == "object";
|
|
351
|
-
var
|
|
351
|
+
var G = (e) => !te(e) && !Array.isArray(e) && nr(e) && !_e(e), ar = (e) => G(e) && e.target ? Ae(e.target) ? e.target.checked : e.target.value : e, Yr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ir = (e, r) => e.has(Yr(r)), eo = (e) => {
|
|
352
352
|
const r = e.constructor && e.constructor.prototype;
|
|
353
|
-
return
|
|
353
|
+
return G(r) && r.hasOwnProperty("isPrototypeOf");
|
|
354
354
|
}, ht = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
355
|
-
function
|
|
355
|
+
function Z(e) {
|
|
356
356
|
let r;
|
|
357
357
|
const t = Array.isArray(e), o = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
358
358
|
if (e instanceof Date)
|
|
359
359
|
r = new Date(e);
|
|
360
|
-
else if (!(ht && (e instanceof Blob || o)) && (t ||
|
|
361
|
-
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !
|
|
360
|
+
else if (!(ht && (e instanceof Blob || o)) && (t || G(e)))
|
|
361
|
+
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !eo(e))
|
|
362
362
|
r = e;
|
|
363
363
|
else
|
|
364
364
|
for (const s in e)
|
|
365
|
-
e.hasOwnProperty(s) && (r[s] =
|
|
365
|
+
e.hasOwnProperty(s) && (r[s] = Z(e[s]));
|
|
366
366
|
else
|
|
367
367
|
return e;
|
|
368
368
|
return r;
|
|
369
369
|
}
|
|
370
|
-
var Ue = (e) => /^\w*$/.test(e),
|
|
371
|
-
if (!r || !
|
|
370
|
+
var Ue = (e) => /^\w*$/.test(e), W = (e) => e === void 0, gt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], _t = (e) => gt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), S = (e, r, t) => {
|
|
371
|
+
if (!r || !G(e))
|
|
372
372
|
return t;
|
|
373
373
|
const o = (Ue(r) ? [r] : _t(r)).reduce((s, n) => te(s) ? s : s[n], e);
|
|
374
|
-
return
|
|
375
|
-
}, re = (e) => typeof e == "boolean",
|
|
374
|
+
return W(o) || o === e ? W(e[r]) ? t : e[r] : o;
|
|
375
|
+
}, re = (e) => typeof e == "boolean", D = (e, r, t) => {
|
|
376
376
|
let o = -1;
|
|
377
377
|
const s = Ue(r) ? [r] : _t(r), n = s.length, a = n - 1;
|
|
378
378
|
for (; ++o < n; ) {
|
|
@@ -380,18 +380,18 @@ var Ue = (e) => /^\w*$/.test(e), q = (e) => e === void 0, gt = (e) => Array.isAr
|
|
|
380
380
|
let f = t;
|
|
381
381
|
if (o !== a) {
|
|
382
382
|
const u = e[l];
|
|
383
|
-
f =
|
|
383
|
+
f = G(u) || Array.isArray(u) ? u : isNaN(+s[o + 1]) ? {} : [];
|
|
384
384
|
}
|
|
385
385
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
386
386
|
return;
|
|
387
387
|
e[l] = f, e = e[l];
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
|
-
const
|
|
390
|
+
const je = {
|
|
391
391
|
BLUR: "blur",
|
|
392
392
|
FOCUS_OUT: "focusout",
|
|
393
393
|
CHANGE: "change"
|
|
394
|
-
},
|
|
394
|
+
}, ae = {
|
|
395
395
|
onBlur: "onBlur",
|
|
396
396
|
onChange: "onChange",
|
|
397
397
|
onSubmit: "onSubmit",
|
|
@@ -405,9 +405,9 @@ const Te = {
|
|
|
405
405
|
pattern: "pattern",
|
|
406
406
|
required: "required",
|
|
407
407
|
validate: "validate"
|
|
408
|
-
}, lr =
|
|
408
|
+
}, lr = x.createContext(null);
|
|
409
409
|
lr.displayName = "HookFormContext";
|
|
410
|
-
const pt = () =>
|
|
410
|
+
const pt = () => x.useContext(lr);
|
|
411
411
|
var cr = (e, r, t, o = !0) => {
|
|
412
412
|
const s = {
|
|
413
413
|
defaultValues: r._defaultValues
|
|
@@ -416,14 +416,14 @@ var cr = (e, r, t, o = !0) => {
|
|
|
416
416
|
Object.defineProperty(s, n, {
|
|
417
417
|
get: () => {
|
|
418
418
|
const a = n;
|
|
419
|
-
return r._proxyFormState[a] !==
|
|
419
|
+
return r._proxyFormState[a] !== ae.all && (r._proxyFormState[a] = !o || ae.all), t && (t[a] = !0), e[a];
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
return s;
|
|
423
423
|
};
|
|
424
|
-
const vt = typeof window < "u" ?
|
|
425
|
-
function
|
|
426
|
-
const r = pt(), { control: t = r.control, disabled: o, name: s, exact: n } = e || {}, [a, l] =
|
|
424
|
+
const vt = typeof window < "u" ? x.useLayoutEffect : x.useEffect;
|
|
425
|
+
function to(e) {
|
|
426
|
+
const r = pt(), { control: t = r.control, disabled: o, name: s, exact: n } = e || {}, [a, l] = x.useState(t._formState), f = x.useRef({
|
|
427
427
|
isDirty: !1,
|
|
428
428
|
isLoading: !1,
|
|
429
429
|
dirtyFields: !1,
|
|
@@ -443,12 +443,12 @@ function eo(e) {
|
|
|
443
443
|
...u
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
}), [s, o, n]),
|
|
446
|
+
}), [s, o, n]), x.useEffect(() => {
|
|
447
447
|
f.current.isValid && t._setValid(!0);
|
|
448
|
-
}, [t]),
|
|
448
|
+
}, [t]), x.useMemo(() => cr(a, t, f.current, !1), [a, t]);
|
|
449
449
|
}
|
|
450
450
|
var oe = (e) => typeof e == "string", ct = (e, r, t, o, s) => oe(e) ? (o && r.watch.add(e), S(t, e, s)) : Array.isArray(e) ? e.map((n) => (o && r.watch.add(n), S(t, n))) : (o && (r.watchAll = !0), t), ut = (e) => te(e) || !nr(e);
|
|
451
|
-
function
|
|
451
|
+
function ie(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
452
452
|
if (ut(e) || ut(r))
|
|
453
453
|
return e === r;
|
|
454
454
|
if (_e(e) && _e(r))
|
|
@@ -465,66 +465,66 @@ function le(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
465
465
|
return !1;
|
|
466
466
|
if (n !== "ref") {
|
|
467
467
|
const l = r[n];
|
|
468
|
-
if (_e(a) && _e(l) ||
|
|
468
|
+
if (_e(a) && _e(l) || G(a) && G(l) || Array.isArray(a) && Array.isArray(l) ? !ie(a, l, t) : a !== l)
|
|
469
469
|
return !1;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
return !0;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
const r = pt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute: l } = e || {}, f =
|
|
474
|
+
function ro(e) {
|
|
475
|
+
const r = pt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute: l } = e || {}, f = x.useRef(s), u = x.useRef(l), d = x.useRef(void 0), h = x.useRef(t), y = x.useRef(o);
|
|
476
476
|
u.current = l;
|
|
477
|
-
const [V, w] =
|
|
478
|
-
const
|
|
479
|
-
return u.current ? u.current(
|
|
480
|
-
}), g =
|
|
481
|
-
const
|
|
482
|
-
return u.current ? u.current(
|
|
483
|
-
}, [t._formValues, t._names, o]),
|
|
477
|
+
const [V, w] = x.useState(() => {
|
|
478
|
+
const $ = t._getWatch(o, f.current);
|
|
479
|
+
return u.current ? u.current($) : $;
|
|
480
|
+
}), g = x.useCallback(($) => {
|
|
481
|
+
const A = ct(o, t._names, $ || t._formValues, !1, f.current);
|
|
482
|
+
return u.current ? u.current(A) : A;
|
|
483
|
+
}, [t._formValues, t._names, o]), k = x.useCallback(($) => {
|
|
484
484
|
if (!n) {
|
|
485
|
-
const
|
|
485
|
+
const A = ct(o, t._names, $ || t._formValues, !1, f.current);
|
|
486
486
|
if (u.current) {
|
|
487
|
-
const
|
|
488
|
-
|
|
487
|
+
const R = u.current(A);
|
|
488
|
+
ie(R, d.current) || (w(R), d.current = R);
|
|
489
489
|
} else
|
|
490
|
-
w(
|
|
490
|
+
w(A);
|
|
491
491
|
}
|
|
492
492
|
}, [t._formValues, t._names, n, o]);
|
|
493
|
-
vt(() => ((h.current !== t || !
|
|
493
|
+
vt(() => ((h.current !== t || !ie(y.current, o)) && (h.current = t, y.current = o, k()), t._subscribe({
|
|
494
494
|
name: o,
|
|
495
495
|
formState: {
|
|
496
496
|
values: !0
|
|
497
497
|
},
|
|
498
498
|
exact: a,
|
|
499
|
-
callback: (
|
|
500
|
-
|
|
499
|
+
callback: ($) => {
|
|
500
|
+
k($.values);
|
|
501
501
|
}
|
|
502
|
-
})), [t, a, o,
|
|
503
|
-
const
|
|
502
|
+
})), [t, a, o, k]), x.useEffect(() => t._removeUnmounted());
|
|
503
|
+
const E = h.current !== t, _ = y.current, z = x.useMemo(() => {
|
|
504
504
|
if (n)
|
|
505
505
|
return null;
|
|
506
|
-
const
|
|
507
|
-
return
|
|
508
|
-
}, [n,
|
|
509
|
-
return
|
|
506
|
+
const $ = !E && !ie(_, o);
|
|
507
|
+
return E || $ ? g() : null;
|
|
508
|
+
}, [n, E, o, _, g]);
|
|
509
|
+
return z !== null ? z : V;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
const r = pt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e, l = ir(s._names.array, t), f =
|
|
511
|
+
function oo(e) {
|
|
512
|
+
const r = pt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e, l = ir(s._names.array, t), f = x.useMemo(() => S(s._formValues, t, S(s._defaultValues, t, a)), [s, t, a]), u = ro({
|
|
513
513
|
control: s,
|
|
514
514
|
name: t,
|
|
515
515
|
defaultValue: f,
|
|
516
516
|
exact: !0
|
|
517
|
-
}), d =
|
|
517
|
+
}), d = to({
|
|
518
518
|
control: s,
|
|
519
519
|
name: t,
|
|
520
520
|
exact: !0
|
|
521
|
-
}), h =
|
|
521
|
+
}), h = x.useRef(e), y = x.useRef(void 0), V = x.useRef(s.register(t, {
|
|
522
522
|
...e.rules,
|
|
523
523
|
value: u,
|
|
524
524
|
...re(e.disabled) ? { disabled: e.disabled } : {}
|
|
525
525
|
}));
|
|
526
526
|
h.current = e;
|
|
527
|
-
const w =
|
|
527
|
+
const w = x.useMemo(() => Object.defineProperties({}, {
|
|
528
528
|
invalid: {
|
|
529
529
|
enumerable: !0,
|
|
530
530
|
get: () => !!S(d.errors, t)
|
|
@@ -545,57 +545,57 @@ function ro(e) {
|
|
|
545
545
|
enumerable: !0,
|
|
546
546
|
get: () => S(d.errors, t)
|
|
547
547
|
}
|
|
548
|
-
}), [d, t]), g =
|
|
548
|
+
}), [d, t]), g = x.useCallback((z) => V.current.onChange({
|
|
549
549
|
target: {
|
|
550
|
-
value: ar(
|
|
550
|
+
value: ar(z),
|
|
551
551
|
name: t
|
|
552
552
|
},
|
|
553
|
-
type:
|
|
554
|
-
}), [t]),
|
|
553
|
+
type: je.CHANGE
|
|
554
|
+
}), [t]), k = x.useCallback(() => V.current.onBlur({
|
|
555
555
|
target: {
|
|
556
556
|
value: S(s._formValues, t),
|
|
557
557
|
name: t
|
|
558
558
|
},
|
|
559
|
-
type:
|
|
560
|
-
}), [t, s._formValues]),
|
|
561
|
-
const
|
|
562
|
-
|
|
563
|
-
focus: () =>
|
|
564
|
-
select: () =>
|
|
565
|
-
setCustomValidity: (
|
|
566
|
-
reportValidity: () =>
|
|
559
|
+
type: je.BLUR
|
|
560
|
+
}), [t, s._formValues]), E = x.useCallback((z) => {
|
|
561
|
+
const $ = S(s._fields, t);
|
|
562
|
+
$ && z && ($._f.ref = {
|
|
563
|
+
focus: () => z.focus && z.focus(),
|
|
564
|
+
select: () => z.select && z.select(),
|
|
565
|
+
setCustomValidity: (A) => z.setCustomValidity(A),
|
|
566
|
+
reportValidity: () => z.reportValidity()
|
|
567
567
|
});
|
|
568
|
-
}, [s._fields, t]), _ =
|
|
568
|
+
}, [s._fields, t]), _ = x.useMemo(() => ({
|
|
569
569
|
name: t,
|
|
570
570
|
value: u,
|
|
571
571
|
...re(o) || d.disabled ? { disabled: d.disabled || o } : {},
|
|
572
572
|
onChange: g,
|
|
573
|
-
onBlur:
|
|
574
|
-
ref:
|
|
575
|
-
}), [t, o, d.disabled, g,
|
|
576
|
-
return
|
|
577
|
-
const
|
|
578
|
-
|
|
573
|
+
onBlur: k,
|
|
574
|
+
ref: E
|
|
575
|
+
}), [t, o, d.disabled, g, k, E, u]);
|
|
576
|
+
return x.useEffect(() => {
|
|
577
|
+
const z = s._options.shouldUnregister || n, $ = y.current;
|
|
578
|
+
$ && $ !== t && !l && s.unregister($), s.register(t, {
|
|
579
579
|
...h.current.rules,
|
|
580
580
|
...re(h.current.disabled) ? { disabled: h.current.disabled } : {}
|
|
581
581
|
});
|
|
582
|
-
const
|
|
583
|
-
const
|
|
584
|
-
|
|
582
|
+
const A = (R, H) => {
|
|
583
|
+
const Q = S(s._fields, R);
|
|
584
|
+
Q && Q._f && (Q._f.mount = H);
|
|
585
585
|
};
|
|
586
|
-
if (
|
|
587
|
-
const
|
|
588
|
-
|
|
586
|
+
if (A(t, !0), z) {
|
|
587
|
+
const R = Z(S(s._options.defaultValues, t, h.current.defaultValue));
|
|
588
|
+
D(s._defaultValues, t, R), W(S(s._formValues, t)) && D(s._formValues, t, R);
|
|
589
589
|
}
|
|
590
590
|
return !l && s.register(t), y.current = t, () => {
|
|
591
|
-
(l ?
|
|
591
|
+
(l ? z && !s._state.action : z) ? s.unregister(t) : A(t, !1);
|
|
592
592
|
};
|
|
593
|
-
}, [t, s, l, n]),
|
|
593
|
+
}, [t, s, l, n]), x.useEffect(() => {
|
|
594
594
|
s._setDisabledField({
|
|
595
595
|
disabled: o,
|
|
596
596
|
name: t
|
|
597
597
|
});
|
|
598
|
-
}, [o, t, s]),
|
|
598
|
+
}, [o, t, s]), x.useMemo(() => ({
|
|
599
599
|
field: _,
|
|
600
600
|
formState: d,
|
|
601
601
|
fieldState: w
|
|
@@ -607,7 +607,7 @@ var bt = (e, r, t, o, s) => r ? {
|
|
|
607
607
|
...t[e] && t[e].types ? t[e].types : {},
|
|
608
608
|
[o]: s || !0
|
|
609
609
|
}
|
|
610
|
-
} : {},
|
|
610
|
+
} : {}, Ve = (e) => Array.isArray(e) ? e : [e], Lt = () => {
|
|
611
611
|
let e = [];
|
|
612
612
|
return {
|
|
613
613
|
get observers() {
|
|
@@ -632,54 +632,54 @@ function ur(e, r) {
|
|
|
632
632
|
for (const o in e)
|
|
633
633
|
if (e.hasOwnProperty(o)) {
|
|
634
634
|
const s = e[o], n = r[o];
|
|
635
|
-
if (s &&
|
|
635
|
+
if (s && G(s) && n) {
|
|
636
636
|
const a = ur(s, n);
|
|
637
|
-
|
|
637
|
+
G(a) && (t[o] = a);
|
|
638
638
|
} else e[o] && (t[o] = n);
|
|
639
639
|
}
|
|
640
640
|
return t;
|
|
641
641
|
}
|
|
642
|
-
var ee = (e) =>
|
|
642
|
+
var ee = (e) => G(e) && !Object.keys(e).length, St = (e) => e.type === "file", le = (e) => typeof e == "function", Te = (e) => {
|
|
643
643
|
if (!ht)
|
|
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
|
-
}, dr = (e) => e.type === "select-multiple", wt = (e) => e.type === "radio",
|
|
648
|
-
function
|
|
647
|
+
}, dr = (e) => e.type === "select-multiple", wt = (e) => e.type === "radio", so = (e) => wt(e) || Ae(e), Ye = (e) => Te(e) && e.isConnected;
|
|
648
|
+
function no(e, r) {
|
|
649
649
|
const t = r.slice(0, -1).length;
|
|
650
650
|
let o = 0;
|
|
651
651
|
for (; o < t; )
|
|
652
|
-
e =
|
|
652
|
+
e = W(e) ? o++ : e[r[o++]];
|
|
653
653
|
return e;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function ao(e) {
|
|
656
656
|
for (const r in e)
|
|
657
|
-
if (e.hasOwnProperty(r) && !
|
|
657
|
+
if (e.hasOwnProperty(r) && !W(e[r]))
|
|
658
658
|
return !1;
|
|
659
659
|
return !0;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
const t = Array.isArray(r) ? r : Ue(r) ? [r] : _t(r), o = t.length === 1 ? e :
|
|
663
|
-
return o && delete o[n], s !== 0 && (
|
|
661
|
+
function q(e, r) {
|
|
662
|
+
const t = Array.isArray(r) ? r : Ue(r) ? [r] : _t(r), o = t.length === 1 ? e : no(e, t), s = t.length - 1, n = t[s];
|
|
663
|
+
return o && delete o[n], s !== 0 && (G(o) && ee(o) || Array.isArray(o) && ao(o)) && q(e, t.slice(0, -1)), e;
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var io = (e) => {
|
|
666
666
|
for (const r in e)
|
|
667
|
-
if (
|
|
667
|
+
if (le(e[r]))
|
|
668
668
|
return !0;
|
|
669
669
|
return !1;
|
|
670
670
|
};
|
|
671
671
|
function fr(e) {
|
|
672
|
-
return Array.isArray(e) ||
|
|
672
|
+
return Array.isArray(e) || G(e) && !io(e);
|
|
673
673
|
}
|
|
674
674
|
function dt(e, r = {}) {
|
|
675
675
|
for (const t in e)
|
|
676
|
-
fr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, dt(e[t], r[t])) :
|
|
676
|
+
fr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, dt(e[t], r[t])) : W(e[t]) || (r[t] = !0);
|
|
677
677
|
return r;
|
|
678
678
|
}
|
|
679
679
|
function Ce(e, r, t) {
|
|
680
680
|
t || (t = dt(r));
|
|
681
681
|
for (const o in e)
|
|
682
|
-
fr(e[o]) ?
|
|
682
|
+
fr(e[o]) ? W(r) || ut(t[o]) ? t[o] = dt(e[o], Array.isArray(e[o]) ? [] : {}) : Ce(e[o], te(r) ? {} : r[o], t[o]) : t[o] = !ie(e[o], r[o]);
|
|
683
683
|
return t;
|
|
684
684
|
}
|
|
685
685
|
const Pt = {
|
|
@@ -694,11 +694,11 @@ var mr = (e) => {
|
|
|
694
694
|
}
|
|
695
695
|
return e[0].checked && !e[0].disabled ? (
|
|
696
696
|
// @ts-expect-error expected to work in the browser
|
|
697
|
-
e[0].attributes && !
|
|
697
|
+
e[0].attributes && !W(e[0].attributes.value) ? W(e[0].value) || e[0].value === "" ? Rt : { value: e[0].value, isValid: !0 } : Rt
|
|
698
698
|
) : Pt;
|
|
699
699
|
}
|
|
700
700
|
return Pt;
|
|
701
|
-
}, yr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: o }) =>
|
|
701
|
+
}, yr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: o }) => W(e) ? e : r ? e === "" ? NaN : e && +e : t && oe(e) ? new Date(e) : o ? o(e) : e;
|
|
702
702
|
const Ot = {
|
|
703
703
|
isValid: !1,
|
|
704
704
|
value: null
|
|
@@ -707,15 +707,15 @@ var hr = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disab
|
|
|
707
707
|
isValid: !0,
|
|
708
708
|
value: t.value
|
|
709
709
|
} : r, Ot) : Ot;
|
|
710
|
-
function
|
|
710
|
+
function Mt(e) {
|
|
711
711
|
const r = e.ref;
|
|
712
|
-
return St(r) ? r.files : wt(r) ? hr(e.refs).value : dr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Ae(r) ? mr(e.refs).value : yr(
|
|
712
|
+
return St(r) ? r.files : wt(r) ? hr(e.refs).value : dr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Ae(r) ? mr(e.refs).value : yr(W(r.value) ? e.ref.value : r.value, e);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
714
|
+
var lo = (e, r, t, o) => {
|
|
715
715
|
const s = {};
|
|
716
716
|
for (const n of e) {
|
|
717
717
|
const a = S(r, n);
|
|
718
|
-
a &&
|
|
718
|
+
a && D(s, n, a._f);
|
|
719
719
|
}
|
|
720
720
|
return {
|
|
721
721
|
criteriaMode: t,
|
|
@@ -723,16 +723,16 @@ var io = (e, r, t, o) => {
|
|
|
723
723
|
fields: s,
|
|
724
724
|
shouldUseNativeValidation: o
|
|
725
725
|
};
|
|
726
|
-
}, Ie = (e) => e instanceof RegExp,
|
|
727
|
-
isOnSubmit: !e || e ===
|
|
728
|
-
isOnBlur: e ===
|
|
729
|
-
isOnChange: e ===
|
|
730
|
-
isOnAll: e ===
|
|
731
|
-
isOnTouch: e ===
|
|
726
|
+
}, Ie = (e) => e instanceof RegExp, xe = (e) => W(e) ? e : Ie(e) ? e.source : G(e) ? Ie(e.value) ? e.value.source : e.value : e, Dt = (e) => ({
|
|
727
|
+
isOnSubmit: !e || e === ae.onSubmit,
|
|
728
|
+
isOnBlur: e === ae.onBlur,
|
|
729
|
+
isOnChange: e === ae.onChange,
|
|
730
|
+
isOnAll: e === ae.all,
|
|
731
|
+
isOnTouch: e === ae.onTouched
|
|
732
732
|
});
|
|
733
733
|
const Ht = "AsyncFunction";
|
|
734
|
-
var
|
|
735
|
-
const
|
|
734
|
+
var co = (e) => !!e && !!e.validate && !!(le(e.validate) && e.validate.constructor.name === Ht || G(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Ht)), uo = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), jt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((o) => e.startsWith(o) && /^\.\w+/.test(e.slice(o.length))));
|
|
735
|
+
const ze = (e, r, t, o) => {
|
|
736
736
|
for (const s of t || Object.keys(e)) {
|
|
737
737
|
const n = S(e, s);
|
|
738
738
|
if (n) {
|
|
@@ -742,14 +742,14 @@ const Ee = (e, r, t, o) => {
|
|
|
742
742
|
return !0;
|
|
743
743
|
if (a.ref && r(a.ref, a.name) && !o)
|
|
744
744
|
return !0;
|
|
745
|
-
if (
|
|
745
|
+
if (ze(l, r))
|
|
746
746
|
break;
|
|
747
|
-
} else if (
|
|
747
|
+
} else if (G(l) && ze(l, r))
|
|
748
748
|
break;
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
};
|
|
752
|
-
function
|
|
752
|
+
function Tt(e, r, t) {
|
|
753
753
|
const o = S(e, t);
|
|
754
754
|
if (o || Ue(t))
|
|
755
755
|
return {
|
|
@@ -777,13 +777,13 @@ function jt(e, r, t) {
|
|
|
777
777
|
name: t
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var fo = (e, r, t, o) => {
|
|
781
781
|
t(e);
|
|
782
782
|
const { name: s, ...n } = e;
|
|
783
|
-
return ee(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o ||
|
|
784
|
-
},
|
|
785
|
-
const o =
|
|
786
|
-
return
|
|
783
|
+
return ee(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o || ae.all));
|
|
784
|
+
}, mo = (e, r, t) => !e || !r || e === r || Ve(e).some((o) => o && (t ? o === r : o.startsWith(r) || r.startsWith(o))), yo = (e, r, t, o, s) => s.isOnAll ? !1 : !t && s.isOnTouch ? !(r || e) : (t ? o.isOnBlur : s.isOnBlur) ? !e : (t ? o.isOnChange : s.isOnChange) ? e : !0, ho = (e, r) => !gt(S(e, r)).length && q(e, r), go = (e, r, t) => {
|
|
785
|
+
const o = Ve(S(e, t));
|
|
786
|
+
return D(o, "root", r[t]), D(e, t, o), e;
|
|
787
787
|
};
|
|
788
788
|
function It(e, r, t = "validate") {
|
|
789
789
|
if (oe(e) || Array.isArray(e) && e.every(oe) || re(e) && !e)
|
|
@@ -793,104 +793,104 @@ function It(e, r, t = "validate") {
|
|
|
793
793
|
ref: r
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
var be = (e) =>
|
|
796
|
+
var be = (e) => G(e) && !Ie(e) ? e : {
|
|
797
797
|
value: e,
|
|
798
798
|
message: ""
|
|
799
799
|
}, Wt = async (e, r, t, o, s, n) => {
|
|
800
|
-
const { ref: a, refs: l, required: f, maxLength: u, minLength: d, min: h, max: y, pattern: V, validate: w, name: g, valueAsNumber:
|
|
801
|
-
if (
|
|
800
|
+
const { ref: a, refs: l, required: f, maxLength: u, minLength: d, min: h, max: y, pattern: V, validate: w, name: g, valueAsNumber: k, mount: E } = e._f, _ = S(t, g);
|
|
801
|
+
if (!E || r.has(g))
|
|
802
802
|
return {};
|
|
803
|
-
const
|
|
804
|
-
s &&
|
|
805
|
-
},
|
|
806
|
-
const se = N ?
|
|
807
|
-
|
|
808
|
-
type: N ?
|
|
803
|
+
const z = l ? l[0] : a, $ = (N) => {
|
|
804
|
+
s && z.reportValidity && (z.setCustomValidity(re(N) ? "" : N || ""), z.reportValidity());
|
|
805
|
+
}, A = {}, R = wt(a), H = Ae(a), Q = R || H, P = (k || St(a)) && W(a.value) && W(_) || Te(a) && a.value === "" || _ === "" || Array.isArray(_) && !_.length, K = bt.bind(null, g, o, A), J = (N, B, L, I = fe.maxLength, X = fe.minLength) => {
|
|
806
|
+
const se = N ? B : L;
|
|
807
|
+
A[g] = {
|
|
808
|
+
type: N ? I : X,
|
|
809
809
|
message: se,
|
|
810
810
|
ref: a,
|
|
811
|
-
...
|
|
811
|
+
...K(N ? I : X, se)
|
|
812
812
|
};
|
|
813
813
|
};
|
|
814
|
-
if (n ? !Array.isArray(_) || !_.length : f && (!
|
|
815
|
-
const { value: N, message:
|
|
816
|
-
if (N && (
|
|
814
|
+
if (n ? !Array.isArray(_) || !_.length : f && (!Q && (P || te(_)) || re(_) && !_ || H && !mr(l).isValid || R && !hr(l).isValid)) {
|
|
815
|
+
const { value: N, message: B } = oe(f) ? { value: !!f, message: f } : be(f);
|
|
816
|
+
if (N && (A[g] = {
|
|
817
817
|
type: fe.required,
|
|
818
|
-
message:
|
|
819
|
-
ref:
|
|
820
|
-
...
|
|
818
|
+
message: B,
|
|
819
|
+
ref: z,
|
|
820
|
+
...K(fe.required, B)
|
|
821
821
|
}, !o))
|
|
822
|
-
return
|
|
822
|
+
return $(B), A;
|
|
823
823
|
}
|
|
824
|
-
if (!
|
|
825
|
-
let N,
|
|
826
|
-
const
|
|
824
|
+
if (!P && (!te(h) || !te(y))) {
|
|
825
|
+
let N, B;
|
|
826
|
+
const L = be(y), I = be(h);
|
|
827
827
|
if (!te(_) && !isNaN(_)) {
|
|
828
|
-
const
|
|
829
|
-
te(
|
|
828
|
+
const X = a.valueAsNumber || _ && +_;
|
|
829
|
+
te(L.value) || (N = X > L.value), te(I.value) || (B = X < I.value);
|
|
830
830
|
} else {
|
|
831
|
-
const
|
|
832
|
-
oe(
|
|
831
|
+
const X = a.valueAsDate || new Date(_), se = (Y) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Y), he = a.type == "time", O = a.type == "week";
|
|
832
|
+
oe(L.value) && _ && (N = he ? se(_) > se(L.value) : O ? _ > L.value : X > new Date(L.value)), oe(I.value) && _ && (B = he ? se(_) < se(I.value) : O ? _ < I.value : X < new Date(I.value));
|
|
833
833
|
}
|
|
834
|
-
if ((N ||
|
|
835
|
-
return
|
|
834
|
+
if ((N || B) && (J(!!N, L.message, I.message, fe.max, fe.min), !o))
|
|
835
|
+
return $(A[g].message), A;
|
|
836
836
|
}
|
|
837
|
-
if ((u || d) && !
|
|
838
|
-
const N = be(u),
|
|
839
|
-
if ((
|
|
840
|
-
return
|
|
837
|
+
if ((u || d) && !P && (oe(_) || n && Array.isArray(_))) {
|
|
838
|
+
const N = be(u), B = be(d), L = !te(N.value) && _.length > +N.value, I = !te(B.value) && _.length < +B.value;
|
|
839
|
+
if ((L || I) && (J(L, N.message, B.message), !o))
|
|
840
|
+
return $(A[g].message), A;
|
|
841
841
|
}
|
|
842
|
-
if (V && !
|
|
843
|
-
const { value: N, message:
|
|
844
|
-
if (Ie(N) && !_.match(N) && (
|
|
842
|
+
if (V && !P && oe(_)) {
|
|
843
|
+
const { value: N, message: B } = be(V);
|
|
844
|
+
if (Ie(N) && !_.match(N) && (A[g] = {
|
|
845
845
|
type: fe.pattern,
|
|
846
|
-
message:
|
|
846
|
+
message: B,
|
|
847
847
|
ref: a,
|
|
848
|
-
...
|
|
848
|
+
...K(fe.pattern, B)
|
|
849
849
|
}, !o))
|
|
850
|
-
return
|
|
850
|
+
return $(B), A;
|
|
851
851
|
}
|
|
852
852
|
if (w) {
|
|
853
|
-
if (
|
|
854
|
-
const N = await w(_, t),
|
|
855
|
-
if (
|
|
856
|
-
...
|
|
857
|
-
...
|
|
853
|
+
if (le(w)) {
|
|
854
|
+
const N = await w(_, t), B = It(N, z);
|
|
855
|
+
if (B && (A[g] = {
|
|
856
|
+
...B,
|
|
857
|
+
...K(fe.validate, B.message)
|
|
858
858
|
}, !o))
|
|
859
|
-
return
|
|
860
|
-
} else if (
|
|
859
|
+
return $(B.message), A;
|
|
860
|
+
} else if (G(w)) {
|
|
861
861
|
let N = {};
|
|
862
|
-
for (const
|
|
862
|
+
for (const B in w) {
|
|
863
863
|
if (!ee(N) && !o)
|
|
864
864
|
break;
|
|
865
|
-
const
|
|
866
|
-
|
|
867
|
-
...
|
|
868
|
-
...
|
|
869
|
-
},
|
|
865
|
+
const L = It(await w[B](_, t), z, B);
|
|
866
|
+
L && (N = {
|
|
867
|
+
...L,
|
|
868
|
+
...K(B, L.message)
|
|
869
|
+
}, $(L.message), o && (A[g] = N));
|
|
870
870
|
}
|
|
871
|
-
if (!ee(N) && (
|
|
872
|
-
ref:
|
|
871
|
+
if (!ee(N) && (A[g] = {
|
|
872
|
+
ref: z,
|
|
873
873
|
...N
|
|
874
874
|
}, !o))
|
|
875
|
-
return
|
|
875
|
+
return A;
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
return
|
|
878
|
+
return $(!0), A;
|
|
879
879
|
};
|
|
880
|
-
const
|
|
881
|
-
mode:
|
|
882
|
-
reValidateMode:
|
|
880
|
+
const _o = {
|
|
881
|
+
mode: ae.onSubmit,
|
|
882
|
+
reValidateMode: ae.onChange,
|
|
883
883
|
shouldFocusError: !0
|
|
884
884
|
};
|
|
885
|
-
function
|
|
885
|
+
function po(e = {}) {
|
|
886
886
|
let r = {
|
|
887
|
-
...
|
|
887
|
+
..._o,
|
|
888
888
|
...e
|
|
889
889
|
}, t = {
|
|
890
890
|
submitCount: 0,
|
|
891
891
|
isDirty: !1,
|
|
892
892
|
isReady: !1,
|
|
893
|
-
isLoading:
|
|
893
|
+
isLoading: le(r.defaultValues),
|
|
894
894
|
isValidating: !1,
|
|
895
895
|
isSubmitted: !1,
|
|
896
896
|
isSubmitting: !1,
|
|
@@ -901,7 +901,7 @@ function _o(e = {}) {
|
|
|
901
901
|
validatingFields: {},
|
|
902
902
|
errors: r.errors || {},
|
|
903
903
|
disabled: r.disabled || !1
|
|
904
|
-
}, o = {}, s =
|
|
904
|
+
}, o = {}, s = G(r.defaultValues) || G(r.values) ? Z(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : Z(s), a = {
|
|
905
905
|
action: !1,
|
|
906
906
|
mount: !1,
|
|
907
907
|
watch: !1
|
|
@@ -925,37 +925,37 @@ function _o(e = {}) {
|
|
|
925
925
|
...d
|
|
926
926
|
};
|
|
927
927
|
const y = {
|
|
928
|
-
array:
|
|
929
|
-
state:
|
|
930
|
-
}, V = r.criteriaMode ===
|
|
928
|
+
array: Lt(),
|
|
929
|
+
state: Lt()
|
|
930
|
+
}, V = r.criteriaMode === ae.all, w = (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 ? ee((await
|
|
934
|
+
const c = r.resolver ? ee((await H()).errors) : await P(o, !0);
|
|
935
935
|
c !== t.isValid && y.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((m) => {
|
|
941
|
-
m && (c ?
|
|
941
|
+
m && (c ? D(t.validatingFields, m, c) : q(t.validatingFields, m));
|
|
942
942
|
}), y.state.next({
|
|
943
943
|
validatingFields: t.validatingFields,
|
|
944
944
|
isValidating: !ee(t.validatingFields)
|
|
945
945
|
}));
|
|
946
|
-
},
|
|
946
|
+
}, E = (i, c = [], m, C, b = !0, v = !0) => {
|
|
947
947
|
if (C && m && !r.disabled) {
|
|
948
|
-
if (a.action = !0,
|
|
949
|
-
const
|
|
950
|
-
b &&
|
|
948
|
+
if (a.action = !0, v && Array.isArray(S(o, i))) {
|
|
949
|
+
const F = m(S(o, i), C.argA, C.argB);
|
|
950
|
+
b && D(o, i, F);
|
|
951
951
|
}
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
954
|
-
b &&
|
|
952
|
+
if (v && Array.isArray(S(t.errors, i))) {
|
|
953
|
+
const F = m(S(t.errors, i), C.argA, C.argB);
|
|
954
|
+
b && D(t.errors, i, F), ho(t.errors, i);
|
|
955
955
|
}
|
|
956
|
-
if ((d.touchedFields || h.touchedFields) &&
|
|
957
|
-
const
|
|
958
|
-
b &&
|
|
956
|
+
if ((d.touchedFields || h.touchedFields) && v && Array.isArray(S(t.touchedFields, i))) {
|
|
957
|
+
const F = m(S(t.touchedFields, i), C.argA, C.argB);
|
|
958
|
+
b && D(t.touchedFields, i, F);
|
|
959
959
|
}
|
|
960
960
|
(d.dirtyFields || h.dirtyFields) && (t.dirtyFields = Ce(s, n)), y.state.next({
|
|
961
961
|
name: i,
|
|
@@ -965,179 +965,179 @@ function _o(e = {}) {
|
|
|
965
965
|
isValid: t.isValid
|
|
966
966
|
});
|
|
967
967
|
} else
|
|
968
|
-
|
|
968
|
+
D(n, i, c);
|
|
969
969
|
}, _ = (i, c) => {
|
|
970
|
-
|
|
970
|
+
D(t.errors, i, c), y.state.next({
|
|
971
971
|
errors: t.errors
|
|
972
972
|
});
|
|
973
|
-
},
|
|
973
|
+
}, z = (i) => {
|
|
974
974
|
t.errors = i, y.state.next({
|
|
975
975
|
errors: t.errors,
|
|
976
976
|
isValid: !1
|
|
977
977
|
});
|
|
978
|
-
},
|
|
978
|
+
}, $ = (i, c, m, C) => {
|
|
979
979
|
const b = S(o, i);
|
|
980
980
|
if (b) {
|
|
981
|
-
const
|
|
982
|
-
|
|
981
|
+
const v = S(n, i, W(m) ? S(s, i) : m);
|
|
982
|
+
W(v) || C && C.defaultChecked || c ? D(n, i, c ? v : Mt(b._f)) : L(i, v), a.mount && g();
|
|
983
983
|
}
|
|
984
|
-
},
|
|
985
|
-
let
|
|
986
|
-
const
|
|
984
|
+
}, A = (i, c, m, C, b) => {
|
|
985
|
+
let v = !1, F = !1;
|
|
986
|
+
const M = {
|
|
987
987
|
name: i
|
|
988
988
|
};
|
|
989
989
|
if (!r.disabled) {
|
|
990
990
|
if (!m || C) {
|
|
991
|
-
(d.isDirty || h.isDirty) && (
|
|
992
|
-
const
|
|
993
|
-
|
|
991
|
+
(d.isDirty || h.isDirty) && (F = t.isDirty, t.isDirty = M.isDirty = J(), v = F !== M.isDirty);
|
|
992
|
+
const j = ie(S(s, i), c);
|
|
993
|
+
F = !!S(t.dirtyFields, i), j ? q(t.dirtyFields, i) : D(t.dirtyFields, i, !0), M.dirtyFields = t.dirtyFields, v = v || (d.dirtyFields || h.dirtyFields) && F !== !j;
|
|
994
994
|
}
|
|
995
995
|
if (m) {
|
|
996
|
-
const
|
|
997
|
-
|
|
996
|
+
const j = S(t.touchedFields, i);
|
|
997
|
+
j || (D(t.touchedFields, i, m), M.touchedFields = t.touchedFields, v = v || (d.touchedFields || h.touchedFields) && j !== m);
|
|
998
998
|
}
|
|
999
|
-
|
|
999
|
+
v && b && y.state.next(M);
|
|
1000
1000
|
}
|
|
1001
|
-
return
|
|
1002
|
-
},
|
|
1003
|
-
const b = S(t.errors, i),
|
|
1004
|
-
if (r.delayError && m ? (f = w(() => _(i, m)), f(r.delayError)) : (clearTimeout(u), f = null, m ?
|
|
1005
|
-
const
|
|
1001
|
+
return v ? M : {};
|
|
1002
|
+
}, R = (i, c, m, C) => {
|
|
1003
|
+
const b = S(t.errors, i), v = (d.isValid || h.isValid) && re(c) && t.isValid !== c;
|
|
1004
|
+
if (r.delayError && m ? (f = w(() => _(i, m)), f(r.delayError)) : (clearTimeout(u), f = null, m ? D(t.errors, i, m) : q(t.errors, i)), (m ? !ie(b, m) : b) || !ee(C) || v) {
|
|
1005
|
+
const F = {
|
|
1006
1006
|
...C,
|
|
1007
|
-
...
|
|
1007
|
+
...v && re(c) ? { isValid: c } : {},
|
|
1008
1008
|
errors: t.errors,
|
|
1009
1009
|
name: i
|
|
1010
1010
|
};
|
|
1011
1011
|
t = {
|
|
1012
1012
|
...t,
|
|
1013
|
-
...
|
|
1014
|
-
}, y.state.next(
|
|
1013
|
+
...F
|
|
1014
|
+
}, y.state.next(F);
|
|
1015
1015
|
}
|
|
1016
|
-
},
|
|
1017
|
-
|
|
1018
|
-
const c = await r.resolver(n, r.context,
|
|
1019
|
-
return
|
|
1020
|
-
},
|
|
1021
|
-
const { errors: c } = await
|
|
1016
|
+
}, H = async (i) => {
|
|
1017
|
+
k(i, !0);
|
|
1018
|
+
const c = await r.resolver(n, r.context, lo(i || l.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
|
|
1019
|
+
return k(i), c;
|
|
1020
|
+
}, Q = async (i) => {
|
|
1021
|
+
const { errors: c } = await H(i);
|
|
1022
1022
|
if (i)
|
|
1023
1023
|
for (const m of i) {
|
|
1024
1024
|
const C = S(c, m);
|
|
1025
|
-
C ?
|
|
1025
|
+
C ? D(t.errors, m, C) : q(t.errors, m);
|
|
1026
1026
|
}
|
|
1027
1027
|
else
|
|
1028
1028
|
t.errors = c;
|
|
1029
1029
|
return c;
|
|
1030
|
-
},
|
|
1030
|
+
}, P = async (i, c, m = {
|
|
1031
1031
|
valid: !0
|
|
1032
1032
|
}) => {
|
|
1033
1033
|
for (const C in i) {
|
|
1034
1034
|
const b = i[C];
|
|
1035
1035
|
if (b) {
|
|
1036
|
-
const { _f:
|
|
1037
|
-
if (
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1040
|
-
const ne = await Wt(b, l.disabled, n, V, r.shouldUseNativeValidation && !c,
|
|
1041
|
-
if (
|
|
1036
|
+
const { _f: v, ...F } = b;
|
|
1037
|
+
if (v) {
|
|
1038
|
+
const M = l.array.has(v.name), j = b._f && co(b._f);
|
|
1039
|
+
j && d.validatingFields && k([v.name], !0);
|
|
1040
|
+
const ne = await Wt(b, l.disabled, n, V, r.shouldUseNativeValidation && !c, M);
|
|
1041
|
+
if (j && d.validatingFields && k([v.name]), ne[v.name] && (m.valid = !1, c))
|
|
1042
1042
|
break;
|
|
1043
|
-
!c && (S(ne,
|
|
1043
|
+
!c && (S(ne, v.name) ? M ? go(t.errors, ne, v.name) : D(t.errors, v.name, ne[v.name]) : q(t.errors, v.name));
|
|
1044
1044
|
}
|
|
1045
|
-
!ee(
|
|
1045
|
+
!ee(F) && await P(F, c, m);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
return m.valid;
|
|
1049
|
-
},
|
|
1049
|
+
}, K = () => {
|
|
1050
1050
|
for (const i of l.unMount) {
|
|
1051
1051
|
const c = S(o, i);
|
|
1052
|
-
c && (c._f.refs ? c._f.refs.every((m) => !
|
|
1052
|
+
c && (c._f.refs ? c._f.refs.every((m) => !Ye(m)) : !Ye(c._f.ref)) && qe(i);
|
|
1053
1053
|
}
|
|
1054
1054
|
l.unMount = /* @__PURE__ */ new Set();
|
|
1055
|
-
}, J = (i, c) => !r.disabled && (i && c &&
|
|
1056
|
-
...a.mount ? n :
|
|
1057
|
-
}, m, c),
|
|
1055
|
+
}, J = (i, c) => !r.disabled && (i && c && D(n, i, c), !ie(Y(), s)), N = (i, c, m) => ct(i, l, {
|
|
1056
|
+
...a.mount ? n : W(c) ? s : oe(i) ? { [i]: c } : c
|
|
1057
|
+
}, m, c), B = (i) => gt(S(a.mount ? n : s, i, r.shouldUnregister ? S(s, i, []) : [])), L = (i, c, m = {}) => {
|
|
1058
1058
|
const C = S(o, i);
|
|
1059
1059
|
let b = c;
|
|
1060
1060
|
if (C) {
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
(!
|
|
1064
|
-
}) :
|
|
1061
|
+
const v = C._f;
|
|
1062
|
+
v && (!v.disabled && D(n, i, yr(c, v)), b = Te(v.ref) && te(c) ? "" : c, dr(v.ref) ? [...v.ref.options].forEach((F) => F.selected = b.includes(F.value)) : v.refs ? Ae(v.ref) ? v.refs.forEach((F) => {
|
|
1063
|
+
(!F.defaultChecked || !F.disabled) && (Array.isArray(b) ? F.checked = !!b.find((M) => M === F.value) : F.checked = b === F.value || !!b);
|
|
1064
|
+
}) : v.refs.forEach((F) => F.checked = F.value === b) : St(v.ref) ? v.ref.value = "" : (v.ref.value = b, v.ref.type || y.state.next({
|
|
1065
1065
|
name: i,
|
|
1066
|
-
values:
|
|
1066
|
+
values: Z(n)
|
|
1067
1067
|
})));
|
|
1068
1068
|
}
|
|
1069
|
-
(m.shouldDirty || m.shouldTouch) &&
|
|
1070
|
-
},
|
|
1069
|
+
(m.shouldDirty || m.shouldTouch) && A(i, b, m.shouldTouch, m.shouldDirty, !0), m.shouldValidate && O(i);
|
|
1070
|
+
}, I = (i, c, m) => {
|
|
1071
1071
|
for (const C in c) {
|
|
1072
1072
|
if (!c.hasOwnProperty(C))
|
|
1073
1073
|
return;
|
|
1074
|
-
const b = c[C],
|
|
1075
|
-
(l.array.has(i) ||
|
|
1074
|
+
const b = c[C], v = i + "." + C, F = S(o, v);
|
|
1075
|
+
(l.array.has(i) || G(b) || F && !F._f) && !_e(b) ? I(v, b, m) : L(v, b, m);
|
|
1076
1076
|
}
|
|
1077
|
-
},
|
|
1078
|
-
const C = S(o, i), b = l.array.has(i),
|
|
1079
|
-
|
|
1077
|
+
}, X = (i, c, m = {}) => {
|
|
1078
|
+
const C = S(o, i), b = l.array.has(i), v = Z(c);
|
|
1079
|
+
D(n, i, v), b ? (y.array.next({
|
|
1080
1080
|
name: i,
|
|
1081
|
-
values:
|
|
1081
|
+
values: Z(n)
|
|
1082
1082
|
}), (d.isDirty || d.dirtyFields || h.isDirty || h.dirtyFields) && m.shouldDirty && y.state.next({
|
|
1083
1083
|
name: i,
|
|
1084
1084
|
dirtyFields: Ce(s, n),
|
|
1085
|
-
isDirty: J(i,
|
|
1086
|
-
})) : C && !C._f && !te(
|
|
1085
|
+
isDirty: J(i, v)
|
|
1086
|
+
})) : C && !C._f && !te(v) ? I(i, v, m) : L(i, v, m), jt(i, l) && y.state.next({ ...t, name: i }), y.state.next({
|
|
1087
1087
|
name: a.mount ? i : void 0,
|
|
1088
|
-
values:
|
|
1088
|
+
values: Z(n)
|
|
1089
1089
|
});
|
|
1090
1090
|
}, se = async (i) => {
|
|
1091
1091
|
a.mount = !0;
|
|
1092
1092
|
const c = i.target;
|
|
1093
1093
|
let m = c.name, C = !0;
|
|
1094
|
-
const b = S(o, m),
|
|
1095
|
-
C = Number.isNaN(
|
|
1096
|
-
},
|
|
1094
|
+
const b = S(o, m), v = (j) => {
|
|
1095
|
+
C = Number.isNaN(j) || _e(j) && isNaN(j.getTime()) || ie(j, S(n, m, j));
|
|
1096
|
+
}, F = Dt(r.mode), M = Dt(r.reValidateMode);
|
|
1097
1097
|
if (b) {
|
|
1098
|
-
let
|
|
1099
|
-
const
|
|
1100
|
-
|
|
1101
|
-
const Ke =
|
|
1098
|
+
let j, ne;
|
|
1099
|
+
const Be = c.type ? Mt(b._f) : ar(i), me = i.type === je.BLUR || i.type === je.FOCUS_OUT, Br = !uo(b._f) && !r.resolver && !S(t.errors, m) && !b._f.deps || yo(me, S(t.touchedFields, m), t.isSubmitted, M, F), Qe = jt(m, l, me);
|
|
1100
|
+
D(n, m, Be), me ? (!c || !c.readOnly) && (b._f.onBlur && b._f.onBlur(i), f && f(0)) : b._f.onChange && b._f.onChange(i);
|
|
1101
|
+
const Ke = A(m, Be, me), Lr = !ee(Ke) || Qe;
|
|
1102
1102
|
if (!me && y.state.next({
|
|
1103
1103
|
name: m,
|
|
1104
1104
|
type: i.type,
|
|
1105
|
-
values:
|
|
1106
|
-
}),
|
|
1105
|
+
values: Z(n)
|
|
1106
|
+
}), Br)
|
|
1107
1107
|
return (d.isValid || h.isValid) && (r.mode === "onBlur" ? me && g() : me || g()), Lr && y.state.next({ name: m, ...Qe ? {} : Ke });
|
|
1108
1108
|
if (!me && Qe && y.state.next({ ...t }), r.resolver) {
|
|
1109
|
-
const { errors: $t } = await
|
|
1110
|
-
if (
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1109
|
+
const { errors: $t } = await H([m]);
|
|
1110
|
+
if (v(Be), C) {
|
|
1111
|
+
const Pr = Tt(t.errors, o, m), At = Tt($t, o, Pr.name || m);
|
|
1112
|
+
j = At.error, m = At.name, ne = ee($t);
|
|
1113
1113
|
}
|
|
1114
1114
|
} else
|
|
1115
|
-
|
|
1116
|
-
C && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && O(b._f.deps),
|
|
1115
|
+
k([m], !0), j = (await Wt(b, l.disabled, n, V, r.shouldUseNativeValidation))[m], k([m]), v(Be), C && (j ? ne = !1 : (d.isValid || h.isValid) && (ne = await P(o, !0)));
|
|
1116
|
+
C && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && O(b._f.deps), R(m, ne, j, Ke));
|
|
1117
1117
|
}
|
|
1118
1118
|
}, he = (i, c) => {
|
|
1119
1119
|
if (S(t.errors, c) && i.focus)
|
|
1120
1120
|
return i.focus(), 1;
|
|
1121
1121
|
}, O = async (i, c = {}) => {
|
|
1122
1122
|
let m, C;
|
|
1123
|
-
const b =
|
|
1123
|
+
const b = Ve(i);
|
|
1124
1124
|
if (r.resolver) {
|
|
1125
|
-
const
|
|
1126
|
-
m = ee(
|
|
1127
|
-
} else i ? (C = (await Promise.all(b.map(async (
|
|
1128
|
-
const
|
|
1129
|
-
return await
|
|
1130
|
-
}))).every(Boolean), !(!C && !t.isValid) && g()) : C = m = await
|
|
1125
|
+
const v = await Q(W(i) ? i : b);
|
|
1126
|
+
m = ee(v), C = i ? !b.some((F) => S(v, F)) : m;
|
|
1127
|
+
} else i ? (C = (await Promise.all(b.map(async (v) => {
|
|
1128
|
+
const F = S(o, v);
|
|
1129
|
+
return await P(F && F._f ? { [v]: F } : F);
|
|
1130
|
+
}))).every(Boolean), !(!C && !t.isValid) && g()) : C = m = await P(o);
|
|
1131
1131
|
return y.state.next({
|
|
1132
1132
|
...!oe(i) || (d.isValid || h.isValid) && m !== t.isValid ? {} : { name: i },
|
|
1133
1133
|
...r.resolver || !i ? { isValid: m } : {},
|
|
1134
1134
|
errors: t.errors
|
|
1135
|
-
}), c.shouldFocus && !C &&
|
|
1136
|
-
},
|
|
1135
|
+
}), c.shouldFocus && !C && ze(o, he, i ? b : l.mount), C;
|
|
1136
|
+
}, Y = (i, c) => {
|
|
1137
1137
|
let m = {
|
|
1138
1138
|
...a.mount ? n : s
|
|
1139
1139
|
};
|
|
1140
|
-
return c && (m = ur(c.dirtyFields ? t.dirtyFields : t.touchedFields, m)),
|
|
1140
|
+
return c && (m = ur(c.dirtyFields ? t.dirtyFields : t.touchedFields, m)), W(i) ? m : oe(i) ? S(m, i) : i.map((C) => S(m, C));
|
|
1141
1141
|
}, ke = (i, c) => ({
|
|
1142
1142
|
invalid: !!S((c || t).errors, i),
|
|
1143
1143
|
isDirty: !!S((c || t).dirtyFields, i),
|
|
@@ -1145,13 +1145,13 @@ function _o(e = {}) {
|
|
|
1145
1145
|
isValidating: !!S(t.validatingFields, i),
|
|
1146
1146
|
isTouched: !!S((c || t).touchedFields, i)
|
|
1147
1147
|
}), Ne = (i) => {
|
|
1148
|
-
i &&
|
|
1148
|
+
i && Ve(i).forEach((c) => q(t.errors, c)), y.state.next({
|
|
1149
1149
|
errors: i ? t.errors : {}
|
|
1150
1150
|
});
|
|
1151
1151
|
}, Ct = (i, c, m) => {
|
|
1152
|
-
const C = (S(o, i, { _f: {} })._f || {}).ref, b = S(t.errors, i) || {}, { ref:
|
|
1153
|
-
|
|
1154
|
-
...
|
|
1152
|
+
const C = (S(o, i, { _f: {} })._f || {}).ref, b = S(t.errors, i) || {}, { ref: v, message: F, type: M, ...j } = b;
|
|
1153
|
+
D(t.errors, i, {
|
|
1154
|
+
...j,
|
|
1155
1155
|
...c,
|
|
1156
1156
|
ref: C
|
|
1157
1157
|
}), y.state.next({
|
|
@@ -1159,38 +1159,38 @@ function _o(e = {}) {
|
|
|
1159
1159
|
errors: t.errors,
|
|
1160
1160
|
isValid: !1
|
|
1161
1161
|
}), m && m.shouldFocus && C && C.focus && C.focus();
|
|
1162
|
-
},
|
|
1162
|
+
}, Vr = (i, c) => le(i) ? y.state.subscribe({
|
|
1163
1163
|
next: (m) => "values" in m && i(N(void 0, c), m)
|
|
1164
|
-
}) : N(i, c, !0),
|
|
1164
|
+
}) : N(i, c, !0), kt = (i) => y.state.subscribe({
|
|
1165
1165
|
next: (c) => {
|
|
1166
|
-
|
|
1166
|
+
mo(i.name, c.name, i.exact) && fo(c, i.formState || d, Nr, i.reRenderRoot) && i.callback({
|
|
1167
1167
|
values: { ...n },
|
|
1168
1168
|
...t,
|
|
1169
1169
|
...c,
|
|
1170
1170
|
defaultValues: s
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
}).unsubscribe,
|
|
1173
|
+
}).unsubscribe, zr = (i) => (a.mount = !0, h = {
|
|
1174
1174
|
...h,
|
|
1175
1175
|
...i.formState
|
|
1176
|
-
},
|
|
1176
|
+
}, kt({
|
|
1177
1177
|
...i,
|
|
1178
1178
|
formState: h
|
|
1179
1179
|
})), qe = (i, c = {}) => {
|
|
1180
|
-
for (const m of i ?
|
|
1181
|
-
l.mount.delete(m), l.array.delete(m), c.keepValue || (
|
|
1180
|
+
for (const m of i ? Ve(i) : l.mount)
|
|
1181
|
+
l.mount.delete(m), l.array.delete(m), c.keepValue || (q(o, m), q(n, m)), !c.keepError && q(t.errors, m), !c.keepDirty && q(t.dirtyFields, m), !c.keepTouched && q(t.touchedFields, m), !c.keepIsValidating && q(t.validatingFields, m), !r.shouldUnregister && !c.keepDefaultValue && q(s, m);
|
|
1182
1182
|
y.state.next({
|
|
1183
|
-
values:
|
|
1183
|
+
values: Z(n)
|
|
1184
1184
|
}), y.state.next({
|
|
1185
1185
|
...t,
|
|
1186
1186
|
...c.keepDirty ? { isDirty: J() } : {}
|
|
1187
1187
|
}), !c.keepIsValid && g();
|
|
1188
|
-
},
|
|
1188
|
+
}, xt = ({ disabled: i, name: c }) => {
|
|
1189
1189
|
(re(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
|
|
1190
1190
|
}, Ge = (i, c = {}) => {
|
|
1191
1191
|
let m = S(o, i);
|
|
1192
1192
|
const C = re(c.disabled) || re(r.disabled);
|
|
1193
|
-
return
|
|
1193
|
+
return D(o, i, {
|
|
1194
1194
|
...m || {},
|
|
1195
1195
|
_f: {
|
|
1196
1196
|
...m && m._f ? m._f : { ref: { name: i } },
|
|
@@ -1198,18 +1198,18 @@ function _o(e = {}) {
|
|
|
1198
1198
|
mount: !0,
|
|
1199
1199
|
...c
|
|
1200
1200
|
}
|
|
1201
|
-
}), l.mount.add(i), m ?
|
|
1201
|
+
}), l.mount.add(i), m ? xt({
|
|
1202
1202
|
disabled: re(c.disabled) ? c.disabled : r.disabled,
|
|
1203
1203
|
name: i
|
|
1204
|
-
}) :
|
|
1204
|
+
}) : $(i, !0, c.value), {
|
|
1205
1205
|
...C ? { disabled: c.disabled || r.disabled } : {},
|
|
1206
1206
|
...r.progressive ? {
|
|
1207
1207
|
required: !!c.required,
|
|
1208
|
-
min:
|
|
1209
|
-
max:
|
|
1210
|
-
minLength:
|
|
1211
|
-
maxLength:
|
|
1212
|
-
pattern:
|
|
1208
|
+
min: xe(c.min),
|
|
1209
|
+
max: xe(c.max),
|
|
1210
|
+
minLength: xe(c.minLength),
|
|
1211
|
+
maxLength: xe(c.maxLength),
|
|
1212
|
+
pattern: xe(c.pattern)
|
|
1213
1213
|
} : {},
|
|
1214
1214
|
name: i,
|
|
1215
1215
|
onChange: se,
|
|
@@ -1217,28 +1217,28 @@ function _o(e = {}) {
|
|
|
1217
1217
|
ref: (b) => {
|
|
1218
1218
|
if (b) {
|
|
1219
1219
|
Ge(i, c), m = S(o, i);
|
|
1220
|
-
const
|
|
1221
|
-
if (
|
|
1220
|
+
const v = W(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, F = so(v), M = m._f.refs || [];
|
|
1221
|
+
if (F ? M.find((j) => j === v) : v === m._f.ref)
|
|
1222
1222
|
return;
|
|
1223
|
-
|
|
1223
|
+
D(o, i, {
|
|
1224
1224
|
_f: {
|
|
1225
1225
|
...m._f,
|
|
1226
|
-
...
|
|
1226
|
+
...F ? {
|
|
1227
1227
|
refs: [
|
|
1228
|
-
...
|
|
1229
|
-
|
|
1228
|
+
...M.filter(Ye),
|
|
1229
|
+
v,
|
|
1230
1230
|
...Array.isArray(S(s, i)) ? [{}] : []
|
|
1231
1231
|
],
|
|
1232
|
-
ref: { type:
|
|
1233
|
-
} : { ref:
|
|
1232
|
+
ref: { type: v.type, name: i }
|
|
1233
|
+
} : { ref: v }
|
|
1234
1234
|
}
|
|
1235
|
-
}),
|
|
1235
|
+
}), $(i, !1, void 0, v);
|
|
1236
1236
|
} else
|
|
1237
1237
|
m = S(o, i, {}), m._f && (m._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(ir(l.array, i) && a.action) && l.unMount.add(i);
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
|
-
}, Ze = () => r.shouldFocusError &&
|
|
1241
|
-
re(i) && (y.state.next({ disabled: i }),
|
|
1240
|
+
}, Ze = () => r.shouldFocusError && ze(o, he, l.mount), Er = (i) => {
|
|
1241
|
+
re(i) && (y.state.next({ disabled: i }), ze(o, (c, m) => {
|
|
1242
1242
|
const C = S(o, m);
|
|
1243
1243
|
C && (c.disabled = C._f.disabled || i, Array.isArray(C._f.refs) && C._f.refs.forEach((b) => {
|
|
1244
1244
|
b.disabled = C._f.disabled || i;
|
|
@@ -1247,25 +1247,25 @@ function _o(e = {}) {
|
|
|
1247
1247
|
}, Ft = (i, c) => async (m) => {
|
|
1248
1248
|
let C;
|
|
1249
1249
|
m && (m.preventDefault && m.preventDefault(), m.persist && m.persist());
|
|
1250
|
-
let b =
|
|
1250
|
+
let b = Z(n);
|
|
1251
1251
|
if (y.state.next({
|
|
1252
1252
|
isSubmitting: !0
|
|
1253
1253
|
}), r.resolver) {
|
|
1254
|
-
const { errors:
|
|
1255
|
-
t.errors =
|
|
1254
|
+
const { errors: v, values: F } = await H();
|
|
1255
|
+
t.errors = v, b = Z(F);
|
|
1256
1256
|
} else
|
|
1257
|
-
await
|
|
1257
|
+
await P(o);
|
|
1258
1258
|
if (l.disabled.size)
|
|
1259
|
-
for (const
|
|
1260
|
-
|
|
1261
|
-
if (
|
|
1259
|
+
for (const v of l.disabled)
|
|
1260
|
+
q(b, v);
|
|
1261
|
+
if (q(t.errors, "root"), ee(t.errors)) {
|
|
1262
1262
|
y.state.next({
|
|
1263
1263
|
errors: {}
|
|
1264
1264
|
});
|
|
1265
1265
|
try {
|
|
1266
1266
|
await i(b, m);
|
|
1267
|
-
} catch (
|
|
1268
|
-
C =
|
|
1267
|
+
} catch (v) {
|
|
1268
|
+
C = v;
|
|
1269
1269
|
}
|
|
1270
1270
|
} else
|
|
1271
1271
|
c && await c({ ...t.errors }, m), Ze(), setTimeout(Ze);
|
|
@@ -1277,26 +1277,26 @@ function _o(e = {}) {
|
|
|
1277
1277
|
errors: t.errors
|
|
1278
1278
|
}), C)
|
|
1279
1279
|
throw C;
|
|
1280
|
-
},
|
|
1281
|
-
S(o, i) && (
|
|
1280
|
+
}, $r = (i, c = {}) => {
|
|
1281
|
+
S(o, i) && (W(c.defaultValue) ? X(i, Z(S(s, i))) : (X(i, c.defaultValue), D(s, i, Z(c.defaultValue))), c.keepTouched || q(t.touchedFields, i), c.keepDirty || (q(t.dirtyFields, i), t.isDirty = c.defaultValue ? J(i, Z(S(s, i))) : J()), c.keepError || (q(t.errors, i), d.isValid && g()), y.state.next({ ...t }));
|
|
1282
1282
|
}, Vt = (i, c = {}) => {
|
|
1283
|
-
const m = i ?
|
|
1283
|
+
const m = i ? Z(i) : s, C = Z(m), b = ee(i), v = b ? s : C;
|
|
1284
1284
|
if (c.keepDefaultValues || (s = m), !c.keepValues) {
|
|
1285
1285
|
if (c.keepDirtyValues) {
|
|
1286
|
-
const
|
|
1286
|
+
const F = /* @__PURE__ */ new Set([
|
|
1287
1287
|
...l.mount,
|
|
1288
1288
|
...Object.keys(Ce(s, n))
|
|
1289
1289
|
]);
|
|
1290
|
-
for (const
|
|
1291
|
-
S(t.dirtyFields,
|
|
1290
|
+
for (const M of Array.from(F))
|
|
1291
|
+
S(t.dirtyFields, M) ? D(v, M, S(n, M)) : X(M, S(v, M));
|
|
1292
1292
|
} else {
|
|
1293
|
-
if (ht &&
|
|
1294
|
-
for (const
|
|
1295
|
-
const
|
|
1296
|
-
if (
|
|
1297
|
-
const
|
|
1298
|
-
if (
|
|
1299
|
-
const ne =
|
|
1293
|
+
if (ht && W(i))
|
|
1294
|
+
for (const F of l.mount) {
|
|
1295
|
+
const M = S(o, F);
|
|
1296
|
+
if (M && M._f) {
|
|
1297
|
+
const j = Array.isArray(M._f.refs) ? M._f.refs[0] : M._f.ref;
|
|
1298
|
+
if (Te(j)) {
|
|
1299
|
+
const ne = j.closest("form");
|
|
1300
1300
|
if (ne) {
|
|
1301
1301
|
ne.reset();
|
|
1302
1302
|
break;
|
|
@@ -1305,15 +1305,15 @@ function _o(e = {}) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
if (c.keepFieldsRef)
|
|
1308
|
-
for (const
|
|
1309
|
-
|
|
1308
|
+
for (const F of l.mount)
|
|
1309
|
+
X(F, S(v, F));
|
|
1310
1310
|
else
|
|
1311
1311
|
o = {};
|
|
1312
1312
|
}
|
|
1313
|
-
n = r.shouldUnregister ? c.keepDefaultValues ?
|
|
1314
|
-
values: { ...
|
|
1313
|
+
n = r.shouldUnregister ? c.keepDefaultValues ? Z(s) : {} : Z(v), y.array.next({
|
|
1314
|
+
values: { ...v }
|
|
1315
1315
|
}), y.state.next({
|
|
1316
|
-
values: { ...
|
|
1316
|
+
values: { ...v }
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
l = {
|
|
@@ -1324,9 +1324,9 @@ function _o(e = {}) {
|
|
|
1324
1324
|
watch: /* @__PURE__ */ new Set(),
|
|
1325
1325
|
watchAll: !1,
|
|
1326
1326
|
focus: ""
|
|
1327
|
-
}, a.mount = !d.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !ee(
|
|
1327
|
+
}, a.mount = !d.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !ee(v), a.watch = !!r.shouldUnregister, y.state.next({
|
|
1328
1328
|
submitCount: c.keepSubmitCount ? t.submitCount : 0,
|
|
1329
|
-
isDirty: b ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !
|
|
1329
|
+
isDirty: b ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !ie(i, s)),
|
|
1330
1330
|
isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1331
1331
|
dirtyFields: b ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? Ce(s, n) : t.dirtyFields : c.keepDefaultValues && i ? Ce(s, i) : c.keepDirty ? t.dirtyFields : {},
|
|
1332
1332
|
touchedFields: c.keepTouched ? t.touchedFields : {},
|
|
@@ -1335,13 +1335,13 @@ function _o(e = {}) {
|
|
|
1335
1335
|
isSubmitting: !1,
|
|
1336
1336
|
defaultValues: s
|
|
1337
1337
|
});
|
|
1338
|
-
}, zt = (i, c) => Vt(
|
|
1338
|
+
}, zt = (i, c) => Vt(le(i) ? i(n) : i, c), Ar = (i, c = {}) => {
|
|
1339
1339
|
const m = S(o, i), C = m && m._f;
|
|
1340
1340
|
if (C) {
|
|
1341
1341
|
const b = C.refs ? C.refs[0] : C.ref;
|
|
1342
|
-
b.focus && (b.focus(), c.shouldSelect &&
|
|
1342
|
+
b.focus && (b.focus(), c.shouldSelect && le(b.select) && b.select());
|
|
1343
1343
|
}
|
|
1344
|
-
},
|
|
1344
|
+
}, Nr = (i) => {
|
|
1345
1345
|
t = {
|
|
1346
1346
|
...t,
|
|
1347
1347
|
...i
|
|
@@ -1353,24 +1353,24 @@ function _o(e = {}) {
|
|
|
1353
1353
|
getFieldState: ke,
|
|
1354
1354
|
handleSubmit: Ft,
|
|
1355
1355
|
setError: Ct,
|
|
1356
|
-
_subscribe:
|
|
1357
|
-
_runSchema:
|
|
1356
|
+
_subscribe: kt,
|
|
1357
|
+
_runSchema: H,
|
|
1358
1358
|
_focusError: Ze,
|
|
1359
1359
|
_getWatch: N,
|
|
1360
1360
|
_getDirty: J,
|
|
1361
1361
|
_setValid: g,
|
|
1362
|
-
_setFieldArray:
|
|
1363
|
-
_setDisabledField:
|
|
1364
|
-
_setErrors:
|
|
1365
|
-
_getFieldArray:
|
|
1362
|
+
_setFieldArray: E,
|
|
1363
|
+
_setDisabledField: xt,
|
|
1364
|
+
_setErrors: z,
|
|
1365
|
+
_getFieldArray: B,
|
|
1366
1366
|
_reset: Vt,
|
|
1367
|
-
_resetDefaultValues: () =>
|
|
1367
|
+
_resetDefaultValues: () => le(r.defaultValues) && r.defaultValues().then((i) => {
|
|
1368
1368
|
zt(i, r.resetOptions), y.state.next({
|
|
1369
1369
|
isLoading: !1
|
|
1370
1370
|
});
|
|
1371
1371
|
}),
|
|
1372
|
-
_removeUnmounted:
|
|
1373
|
-
_disableForm:
|
|
1372
|
+
_removeUnmounted: K,
|
|
1373
|
+
_disableForm: Er,
|
|
1374
1374
|
_subjects: y,
|
|
1375
1375
|
_proxyFormState: d,
|
|
1376
1376
|
get _fields() {
|
|
@@ -1407,19 +1407,19 @@ function _o(e = {}) {
|
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
1409
|
},
|
|
1410
|
-
subscribe:
|
|
1410
|
+
subscribe: zr,
|
|
1411
1411
|
trigger: O,
|
|
1412
1412
|
register: Ge,
|
|
1413
1413
|
handleSubmit: Ft,
|
|
1414
|
-
watch:
|
|
1415
|
-
setValue:
|
|
1416
|
-
getValues:
|
|
1414
|
+
watch: Vr,
|
|
1415
|
+
setValue: X,
|
|
1416
|
+
getValues: Y,
|
|
1417
1417
|
reset: zt,
|
|
1418
|
-
resetField:
|
|
1418
|
+
resetField: $r,
|
|
1419
1419
|
clearErrors: Ne,
|
|
1420
1420
|
unregister: qe,
|
|
1421
1421
|
setError: Ct,
|
|
1422
|
-
setFocus:
|
|
1422
|
+
setFocus: Ar,
|
|
1423
1423
|
getFieldState: ke
|
|
1424
1424
|
};
|
|
1425
1425
|
return {
|
|
@@ -1427,11 +1427,11 @@ function _o(e = {}) {
|
|
|
1427
1427
|
formControl: Et
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
const r =
|
|
1430
|
+
function vo(e = {}) {
|
|
1431
|
+
const r = x.useRef(void 0), t = x.useRef(void 0), [o, s] = x.useState({
|
|
1432
1432
|
isDirty: !1,
|
|
1433
1433
|
isValidating: !1,
|
|
1434
|
-
isLoading:
|
|
1434
|
+
isLoading: le(e.defaultValues),
|
|
1435
1435
|
isSubmitted: !1,
|
|
1436
1436
|
isSubmitting: !1,
|
|
1437
1437
|
isSubmitSuccessful: !1,
|
|
@@ -1443,16 +1443,16 @@ function po(e = {}) {
|
|
|
1443
1443
|
errors: e.errors || {},
|
|
1444
1444
|
disabled: e.disabled || !1,
|
|
1445
1445
|
isReady: !1,
|
|
1446
|
-
defaultValues:
|
|
1446
|
+
defaultValues: le(e.defaultValues) ? void 0 : e.defaultValues
|
|
1447
1447
|
});
|
|
1448
1448
|
if (!r.current)
|
|
1449
1449
|
if (e.formControl)
|
|
1450
1450
|
r.current = {
|
|
1451
1451
|
...e.formControl,
|
|
1452
1452
|
formState: o
|
|
1453
|
-
}, e.defaultValues && !
|
|
1453
|
+
}, e.defaultValues && !le(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1454
1454
|
else {
|
|
1455
|
-
const { formControl: a, ...l } =
|
|
1455
|
+
const { formControl: a, ...l } = po(e);
|
|
1456
1456
|
r.current = {
|
|
1457
1457
|
...l,
|
|
1458
1458
|
formState: o
|
|
@@ -1469,27 +1469,27 @@ function po(e = {}) {
|
|
|
1469
1469
|
...l,
|
|
1470
1470
|
isReady: !0
|
|
1471
1471
|
})), n._formState.isReady = !0, a;
|
|
1472
|
-
}, [n]),
|
|
1472
|
+
}, [n]), x.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), x.useEffect(() => {
|
|
1473
1473
|
e.mode && (n._options.mode = e.mode), e.reValidateMode && (n._options.reValidateMode = e.reValidateMode);
|
|
1474
|
-
}, [n, e.mode, e.reValidateMode]),
|
|
1474
|
+
}, [n, e.mode, e.reValidateMode]), x.useEffect(() => {
|
|
1475
1475
|
e.errors && (n._setErrors(e.errors), n._focusError());
|
|
1476
|
-
}, [n, e.errors]),
|
|
1476
|
+
}, [n, e.errors]), x.useEffect(() => {
|
|
1477
1477
|
e.shouldUnregister && n._subjects.state.next({
|
|
1478
1478
|
values: n._getWatch()
|
|
1479
1479
|
});
|
|
1480
|
-
}, [n, e.shouldUnregister]),
|
|
1480
|
+
}, [n, e.shouldUnregister]), x.useEffect(() => {
|
|
1481
1481
|
if (n._proxyFormState.isDirty) {
|
|
1482
1482
|
const a = n._getDirty();
|
|
1483
1483
|
a !== o.isDirty && n._subjects.state.next({
|
|
1484
1484
|
isDirty: a
|
|
1485
1485
|
});
|
|
1486
1486
|
}
|
|
1487
|
-
}, [n, o.isDirty]),
|
|
1488
|
-
e.values && !
|
|
1487
|
+
}, [n, o.isDirty]), x.useEffect(() => {
|
|
1488
|
+
e.values && !ie(e.values, t.current) ? (n._reset(e.values, {
|
|
1489
1489
|
keepFieldsRef: !0,
|
|
1490
1490
|
...n._options.resetOptions
|
|
1491
1491
|
}), t.current = e.values, s((a) => ({ ...a }))) : n._resetDefaultValues();
|
|
1492
|
-
}, [n, e.values]),
|
|
1492
|
+
}, [n, e.values]), x.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
1494
|
}), r.current.formState = cr(o, n), r.current;
|
|
1495
1495
|
}
|
|
@@ -1508,13 +1508,13 @@ const Ut = (e, r, t) => {
|
|
|
1508
1508
|
const t = {};
|
|
1509
1509
|
for (const o in e) {
|
|
1510
1510
|
const s = S(r.fields, o), n = Object.assign(e[o] || {}, { ref: s && s.ref });
|
|
1511
|
-
if (
|
|
1511
|
+
if (bo(r.names || Object.keys(e), o)) {
|
|
1512
1512
|
const a = Object.assign({}, S(t, o));
|
|
1513
|
-
|
|
1514
|
-
} else
|
|
1513
|
+
D(a, "root", n), D(t, o, a);
|
|
1514
|
+
} else D(t, o, n);
|
|
1515
1515
|
}
|
|
1516
1516
|
return t;
|
|
1517
|
-
},
|
|
1517
|
+
}, bo = (e, r) => {
|
|
1518
1518
|
const t = Gt(r);
|
|
1519
1519
|
return e.some((o) => Gt(o).match(`^${t}\\.\\d+`));
|
|
1520
1520
|
};
|
|
@@ -1551,28 +1551,28 @@ function gr(e, r, t) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
}), Object.defineProperty(a, "name", { value: e }), a;
|
|
1553
1553
|
}
|
|
1554
|
-
class
|
|
1554
|
+
class So extends Error {
|
|
1555
1555
|
constructor() {
|
|
1556
1556
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1559
|
+
const wo = {};
|
|
1560
1560
|
function _r(e) {
|
|
1561
|
-
return
|
|
1561
|
+
return wo;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function Co(e, r) {
|
|
1564
1564
|
return typeof r == "bigint" ? r.toString() : r;
|
|
1565
1565
|
}
|
|
1566
1566
|
const pr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
1567
1567
|
};
|
|
1568
|
-
function
|
|
1568
|
+
function Me(e) {
|
|
1569
1569
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1570
1570
|
}
|
|
1571
1571
|
function vr(e, r, t) {
|
|
1572
1572
|
var s, n, a, l, f, u;
|
|
1573
1573
|
const o = { ...e, path: e.path ?? [] };
|
|
1574
1574
|
if (!e.message) {
|
|
1575
|
-
const d =
|
|
1575
|
+
const d = Me((a = (n = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? Me((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? Me((f = t.customError) == null ? void 0 : f.call(t, e)) ?? Me((u = t.localeError) == null ? void 0 : u.call(t, e)) ?? "Invalid input";
|
|
1576
1576
|
o.message = d;
|
|
1577
1577
|
}
|
|
1578
1578
|
return delete o.inst, delete o.continue, r != null && r.reportInput || delete o.input, o;
|
|
@@ -1584,20 +1584,20 @@ const br = (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, Co, 2), Object.defineProperty(e, "toString", {
|
|
1588
1588
|
value: () => e.message,
|
|
1589
1589
|
enumerable: !1
|
|
1590
1590
|
});
|
|
1591
|
-
},
|
|
1591
|
+
}, ko = gr("$ZodError", br), Sr = gr("$ZodError", br, { Parent: Error }), xo = (e) => (r, t, o, s) => {
|
|
1592
1592
|
const n = o ? Object.assign(o, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
|
|
1593
1593
|
if (a instanceof Promise)
|
|
1594
|
-
throw new
|
|
1594
|
+
throw new So();
|
|
1595
1595
|
if (a.issues.length) {
|
|
1596
1596
|
const l = new ((s == null ? void 0 : s.Err) ?? e)(a.issues.map((f) => vr(f, n, _r())));
|
|
1597
1597
|
throw pr(l, s == null ? void 0 : s.callee), l;
|
|
1598
1598
|
}
|
|
1599
1599
|
return a.value;
|
|
1600
|
-
},
|
|
1600
|
+
}, Fo = /* @__PURE__ */ xo(Sr), Vo = (e) => async (r, t, o, s) => {
|
|
1601
1601
|
const n = o ? Object.assign(o, { 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) {
|
|
@@ -1605,7 +1605,7 @@ const br = (e, r) => {
|
|
|
1605
1605
|
throw pr(l, s == null ? void 0 : s.callee), l;
|
|
1606
1606
|
}
|
|
1607
1607
|
return a.value;
|
|
1608
|
-
},
|
|
1608
|
+
}, zo = /* @__PURE__ */ Vo(Sr);
|
|
1609
1609
|
function Zt(e, r) {
|
|
1610
1610
|
try {
|
|
1611
1611
|
var t = e();
|
|
@@ -1614,7 +1614,7 @@ function Zt(e, r) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
return t && t.then ? t.then(void 0, r) : t;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Eo(e, r) {
|
|
1618
1618
|
for (var t = {}; e.length; ) {
|
|
1619
1619
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1620
1620
|
if (!t[a]) if ("unionErrors" in o) {
|
|
@@ -1633,7 +1633,7 @@ function zo(e, r) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
return t;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function $o(e, r) {
|
|
1637
1637
|
for (var t = {}; e.length; ) {
|
|
1638
1638
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1639
1639
|
if (!t[a]) if (o.code === "invalid_union" && o.errors.length > 0) {
|
|
@@ -1652,7 +1652,7 @@ function Eo(e, r) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
return t;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function Ao(e, r, t) {
|
|
1656
1656
|
if (t === void 0 && (t = {}), (function(o) {
|
|
1657
1657
|
return "_def" in o && typeof o._def == "object" && "typeName" in o._def;
|
|
1658
1658
|
})(e)) return function(o, s, n) {
|
|
@@ -1664,7 +1664,7 @@ function $o(e, r, t) {
|
|
|
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: qt(
|
|
1667
|
+
})(a)) return { values: {}, errors: qt(Eo(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1668
1668
|
throw a;
|
|
1669
1669
|
}));
|
|
1670
1670
|
} catch (a) {
|
|
@@ -1676,13 +1676,13 @@ function $o(e, r, t) {
|
|
|
1676
1676
|
})(e)) return function(o, s, n) {
|
|
1677
1677
|
try {
|
|
1678
1678
|
return Promise.resolve(Zt(function() {
|
|
1679
|
-
return Promise.resolve((t.mode === "sync" ?
|
|
1679
|
+
return Promise.resolve((t.mode === "sync" ? Fo : zo)(e, o, r)).then(function(a) {
|
|
1680
1680
|
return n.shouldUseNativeValidation && ft({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
|
|
1681
1681
|
});
|
|
1682
1682
|
}, function(a) {
|
|
1683
1683
|
if ((function(l) {
|
|
1684
|
-
return l instanceof
|
|
1685
|
-
})(a)) return { values: {}, errors: qt(
|
|
1684
|
+
return l instanceof ko;
|
|
1685
|
+
})(a)) return { values: {}, errors: qt($o(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1686
1686
|
throw a;
|
|
1687
1687
|
}));
|
|
1688
1688
|
} catch (a) {
|
|
@@ -1691,14 +1691,14 @@ function $o(e, r, t) {
|
|
|
1691
1691
|
};
|
|
1692
1692
|
throw new Error("Invalid input: not a Zod schema");
|
|
1693
1693
|
}
|
|
1694
|
-
const wr =
|
|
1695
|
-
function
|
|
1696
|
-
const e =
|
|
1694
|
+
const wr = x.createContext(null);
|
|
1695
|
+
function No() {
|
|
1696
|
+
const e = x.useContext(wr);
|
|
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 Bo({
|
|
1702
1702
|
onSubmit: e,
|
|
1703
1703
|
children: r,
|
|
1704
1704
|
schema: t,
|
|
@@ -1709,17 +1709,17 @@ function No({
|
|
|
1709
1709
|
style: l,
|
|
1710
1710
|
formProps: f
|
|
1711
1711
|
}) {
|
|
1712
|
-
const u =
|
|
1713
|
-
resolver: t ?
|
|
1712
|
+
const u = vo({
|
|
1713
|
+
resolver: t ? Ao(t) : void 0,
|
|
1714
1714
|
defaultValues: o,
|
|
1715
1715
|
mode: s,
|
|
1716
1716
|
reValidateMode: n
|
|
1717
1717
|
}), d = u.handleSubmit(e);
|
|
1718
|
-
return /* @__PURE__ */
|
|
1718
|
+
return /* @__PURE__ */ p(wr.Provider, { value: u, children: /* @__PURE__ */ p("form", { ...f, className: a, style: l, onSubmit: d, children: typeof r == "function" ? r(u) : r }) });
|
|
1719
1719
|
}
|
|
1720
|
-
const kn =
|
|
1720
|
+
const kn = Bo, Lo = "FormError-module__formError___kaUBn", Po = {
|
|
1721
1721
|
formError: Lo
|
|
1722
|
-
},
|
|
1722
|
+
}, Ro = ({
|
|
1723
1723
|
// Color prop
|
|
1724
1724
|
color: e,
|
|
1725
1725
|
// Content
|
|
@@ -1730,19 +1730,19 @@ const kn = No, Lo = "FormError-module__formError___kaUBn", Bo = {
|
|
|
1730
1730
|
// Element-specific props
|
|
1731
1731
|
divProps: s
|
|
1732
1732
|
}) => {
|
|
1733
|
-
const n =
|
|
1733
|
+
const n = T(), a = {
|
|
1734
1734
|
"--form-error-margin-top": `calc(${n.fonts.rhythm} * 0.17)`,
|
|
1735
1735
|
color: e || n.colors.error,
|
|
1736
1736
|
...o
|
|
1737
1737
|
// Top level style prop overrides
|
|
1738
|
-
}, l = [
|
|
1739
|
-
return /* @__PURE__ */
|
|
1740
|
-
},
|
|
1741
|
-
formGroup:
|
|
1742
|
-
inputWrapper:
|
|
1738
|
+
}, l = [Po.formError, t].filter(Boolean).join(" ");
|
|
1739
|
+
return /* @__PURE__ */ p("div", { ...s, className: l, style: a, role: "alert", "aria-live": "polite", children: r });
|
|
1740
|
+
}, Oo = "FormGroup-module__formGroup___aVI-B", Mo = "FormGroup-module__inputWrapper___429QE", Do = "FormGroup-module__indented___t61iz", Ho = "FormGroup-module__disabled___W-tJ0", jo = "FormGroup-module__required___mO3xA", Se = {
|
|
1741
|
+
formGroup: Oo,
|
|
1742
|
+
inputWrapper: Mo,
|
|
1743
1743
|
indented: Do,
|
|
1744
|
-
disabled:
|
|
1745
|
-
required:
|
|
1744
|
+
disabled: Ho,
|
|
1745
|
+
required: jo
|
|
1746
1746
|
}, To = ({
|
|
1747
1747
|
// State props
|
|
1748
1748
|
disabled: e = !1,
|
|
@@ -1763,7 +1763,7 @@ const kn = No, Lo = "FormError-module__formError___kaUBn", Bo = {
|
|
|
1763
1763
|
// Element-specific props
|
|
1764
1764
|
divProps: h
|
|
1765
1765
|
}) => {
|
|
1766
|
-
const y =
|
|
1766
|
+
const y = T(), V = [
|
|
1767
1767
|
Se.formGroup,
|
|
1768
1768
|
r ? Se.error : "",
|
|
1769
1769
|
e ? Se.disabled : "",
|
|
@@ -1771,13 +1771,13 @@ const kn = No, Lo = "FormError-module__formError___kaUBn", Bo = {
|
|
|
1771
1771
|
].filter(Boolean).join(" "), w = {
|
|
1772
1772
|
"--form-group-margin-bottom": `calc(${y.fonts.rhythm} * 0.35)`,
|
|
1773
1773
|
...d
|
|
1774
|
-
}, g =
|
|
1775
|
-
if (
|
|
1776
|
-
const
|
|
1777
|
-
if (e &&
|
|
1778
|
-
return
|
|
1774
|
+
}, g = x.Children.map(f, (k) => {
|
|
1775
|
+
if (x.isValidElement(k)) {
|
|
1776
|
+
const E = {};
|
|
1777
|
+
if (e && k.props.disabled === void 0 && (E.disabled = !0), r && k.props.error === void 0 && (E.error = !0), s && k.props.id === void 0 && k.type !== x.Fragment && (E.id = s), Object.keys(E).length > 0)
|
|
1778
|
+
return x.cloneElement(k, E);
|
|
1779
1779
|
}
|
|
1780
|
-
return
|
|
1780
|
+
return k;
|
|
1781
1781
|
});
|
|
1782
1782
|
return /* @__PURE__ */ U("div", { ...h, className: V, style: w, children: [
|
|
1783
1783
|
n && /* @__PURE__ */ U(yt, { htmlFor: s, disabled: e, error: r, ...l, children: [
|
|
@@ -1787,8 +1787,8 @@ const kn = No, Lo = "FormError-module__formError___kaUBn", Bo = {
|
|
|
1787
1787
|
"*"
|
|
1788
1788
|
] })
|
|
1789
1789
|
] }),
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
r && a && /* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ p("div", { className: `${Se.inputWrapper} ${o ? Se.indented : ""}`, children: g }),
|
|
1791
|
+
r && a && /* @__PURE__ */ p(Ro, { children: a })
|
|
1792
1792
|
] });
|
|
1793
1793
|
};
|
|
1794
1794
|
function ve({
|
|
@@ -1803,15 +1803,15 @@ function ve({
|
|
|
1803
1803
|
indent: f,
|
|
1804
1804
|
labelProps: u
|
|
1805
1805
|
}) {
|
|
1806
|
-
const { control: d } =
|
|
1806
|
+
const { control: d } = No(), {
|
|
1807
1807
|
field: h,
|
|
1808
1808
|
fieldState: { error: y }
|
|
1809
|
-
} =
|
|
1809
|
+
} = oo({
|
|
1810
1810
|
name: e,
|
|
1811
1811
|
control: d,
|
|
1812
1812
|
rules: s
|
|
1813
1813
|
});
|
|
1814
|
-
return /* @__PURE__ */
|
|
1814
|
+
return /* @__PURE__ */ p(
|
|
1815
1815
|
To,
|
|
1816
1816
|
{
|
|
1817
1817
|
label: r,
|
|
@@ -1835,11 +1835,11 @@ function ve({
|
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
1837
|
}
|
|
1838
|
-
const
|
|
1839
|
-
input:
|
|
1840
|
-
sizeSmall:
|
|
1841
|
-
sizeLarge:
|
|
1842
|
-
},
|
|
1838
|
+
const Io = "Input-module__input___WjT81", Wo = "Input-module__sizeSmall___NFvsi", Uo = "Input-module__sizeLarge___4Boj3", et = {
|
|
1839
|
+
input: Io,
|
|
1840
|
+
sizeSmall: Wo,
|
|
1841
|
+
sizeLarge: Uo
|
|
1842
|
+
}, qo = ({
|
|
1843
1843
|
color: e = "#000",
|
|
1844
1844
|
disabled: r = !1,
|
|
1845
1845
|
fontSize: t = "1em",
|
|
@@ -1850,7 +1850,7 @@ const jo = "Input-module__input___WjT81", Io = "Input-module__sizeSmall___NFvsi"
|
|
|
1850
1850
|
fontSize: t,
|
|
1851
1851
|
opacity: r ? 0.3 : 1,
|
|
1852
1852
|
placeholderOpacity: o
|
|
1853
|
-
}),
|
|
1853
|
+
}), Go = ({
|
|
1854
1854
|
// State props
|
|
1855
1855
|
disabled: e = !1,
|
|
1856
1856
|
error: r = !1,
|
|
@@ -1874,12 +1874,12 @@ const jo = "Input-module__input___WjT81", Io = "Input-module__sizeSmall___NFvsi"
|
|
|
1874
1874
|
// Element-specific props
|
|
1875
1875
|
inputProps: w
|
|
1876
1876
|
}) => {
|
|
1877
|
-
const g =
|
|
1878
|
-
color:
|
|
1877
|
+
const g = T(), k = g.colors.error, E = r ? k : t || g.colors.primary, _ = qo({
|
|
1878
|
+
color: E,
|
|
1879
1879
|
disabled: e,
|
|
1880
1880
|
fontSize: g.fonts.size,
|
|
1881
1881
|
placeholderOpacity: l
|
|
1882
|
-
}),
|
|
1882
|
+
}), z = {
|
|
1883
1883
|
"--placeholder-opacity": _.placeholderOpacity,
|
|
1884
1884
|
"--input-padding-small": `calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
1885
1885
|
"--input-padding-large": `calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
@@ -1891,16 +1891,16 @@ const jo = "Input-module__input___WjT81", Io = "Input-module__sizeSmall___NFvsi"
|
|
|
1891
1891
|
opacity: _.opacity,
|
|
1892
1892
|
...V
|
|
1893
1893
|
// Top level style prop overrides
|
|
1894
|
-
},
|
|
1894
|
+
}, $ = [
|
|
1895
1895
|
et.input,
|
|
1896
1896
|
o === "small" ? et.sizeSmall : et.sizeLarge,
|
|
1897
1897
|
y
|
|
1898
1898
|
].filter(Boolean).join(" ");
|
|
1899
|
-
return /* @__PURE__ */
|
|
1899
|
+
return /* @__PURE__ */ p(
|
|
1900
1900
|
"input",
|
|
1901
1901
|
{
|
|
1902
1902
|
...w,
|
|
1903
|
-
className:
|
|
1903
|
+
className: $,
|
|
1904
1904
|
disabled: e,
|
|
1905
1905
|
id: s,
|
|
1906
1906
|
name: n,
|
|
@@ -1909,11 +1909,11 @@ const jo = "Input-module__input___WjT81", Io = "Input-module__sizeSmall___NFvsi"
|
|
|
1909
1909
|
placeholder: a,
|
|
1910
1910
|
type: f,
|
|
1911
1911
|
value: u,
|
|
1912
|
-
style:
|
|
1912
|
+
style: z
|
|
1913
1913
|
}
|
|
1914
1914
|
);
|
|
1915
1915
|
};
|
|
1916
|
-
function
|
|
1916
|
+
function xn({
|
|
1917
1917
|
name: e,
|
|
1918
1918
|
label: r,
|
|
1919
1919
|
required: t,
|
|
@@ -1923,7 +1923,7 @@ function Fn({
|
|
|
1923
1923
|
style: a,
|
|
1924
1924
|
...l
|
|
1925
1925
|
}) {
|
|
1926
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ p(
|
|
1927
1927
|
ve,
|
|
1928
1928
|
{
|
|
1929
1929
|
name: e,
|
|
@@ -1933,8 +1933,8 @@ function Fn({
|
|
|
1933
1933
|
disabled: s,
|
|
1934
1934
|
className: n,
|
|
1935
1935
|
style: a,
|
|
1936
|
-
children: ({ value: f, onChange: u, onBlur: d, name: h, error: y }) => /* @__PURE__ */
|
|
1937
|
-
|
|
1936
|
+
children: ({ value: f, onChange: u, onBlur: d, name: h, error: y }) => /* @__PURE__ */ p(
|
|
1937
|
+
Go,
|
|
1938
1938
|
{
|
|
1939
1939
|
...l,
|
|
1940
1940
|
name: h,
|
|
@@ -1947,11 +1947,11 @@ function Fn({
|
|
|
1947
1947
|
}
|
|
1948
1948
|
);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1951
|
-
textarea:
|
|
1952
|
-
sizeSmall:
|
|
1953
|
-
sizeLarge:
|
|
1954
|
-
},
|
|
1950
|
+
const Zo = "Textarea-module__textarea___Z-y6g", Qo = "Textarea-module__sizeSmall___HHFEM", Ko = "Textarea-module__sizeLarge___5a3sf", tt = {
|
|
1951
|
+
textarea: Zo,
|
|
1952
|
+
sizeSmall: Qo,
|
|
1953
|
+
sizeLarge: Ko
|
|
1954
|
+
}, Jo = ({
|
|
1955
1955
|
color: e = "#000",
|
|
1956
1956
|
disabled: r = !1,
|
|
1957
1957
|
placeholderOpacity: t = 0.3
|
|
@@ -1960,7 +1960,7 @@ const Go = "Textarea-module__textarea___Z-y6g", Zo = "Textarea-module__sizeSmall
|
|
|
1960
1960
|
borderColor: e,
|
|
1961
1961
|
opacity: r ? 0.3 : 1,
|
|
1962
1962
|
placeholderOpacity: t
|
|
1963
|
-
}),
|
|
1963
|
+
}), Xo = ({
|
|
1964
1964
|
// State props
|
|
1965
1965
|
disabled: e = !1,
|
|
1966
1966
|
error: r = !1,
|
|
@@ -1984,11 +1984,11 @@ const Go = "Textarea-module__textarea___Z-y6g", Zo = "Textarea-module__sizeSmall
|
|
|
1984
1984
|
// Element-specific props
|
|
1985
1985
|
textareaProps: w
|
|
1986
1986
|
}) => {
|
|
1987
|
-
const g =
|
|
1988
|
-
color:
|
|
1987
|
+
const g = T(), k = g.colors.error, E = r ? k : t || g.colors.primary, _ = Jo({
|
|
1988
|
+
color: E,
|
|
1989
1989
|
disabled: e,
|
|
1990
1990
|
placeholderOpacity: l
|
|
1991
|
-
}),
|
|
1991
|
+
}), z = {
|
|
1992
1992
|
"--placeholder-opacity": _.placeholderOpacity,
|
|
1993
1993
|
"--textarea-padding-small": `calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
1994
1994
|
"--textarea-padding-large": `calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
|
|
@@ -2000,16 +2000,16 @@ const Go = "Textarea-module__textarea___Z-y6g", Zo = "Textarea-module__sizeSmall
|
|
|
2000
2000
|
opacity: _.opacity,
|
|
2001
2001
|
...V
|
|
2002
2002
|
// Top level style overrides
|
|
2003
|
-
},
|
|
2003
|
+
}, $ = [
|
|
2004
2004
|
tt.textarea,
|
|
2005
2005
|
o === "small" ? tt.sizeSmall : tt.sizeLarge,
|
|
2006
2006
|
y
|
|
2007
2007
|
].filter(Boolean).join(" ");
|
|
2008
|
-
return /* @__PURE__ */
|
|
2008
|
+
return /* @__PURE__ */ p(
|
|
2009
2009
|
"textarea",
|
|
2010
2010
|
{
|
|
2011
2011
|
...w,
|
|
2012
|
-
className:
|
|
2012
|
+
className: $,
|
|
2013
2013
|
disabled: e,
|
|
2014
2014
|
id: s,
|
|
2015
2015
|
name: n,
|
|
@@ -2018,11 +2018,11 @@ const Go = "Textarea-module__textarea___Z-y6g", Zo = "Textarea-module__sizeSmall
|
|
|
2018
2018
|
placeholder: a,
|
|
2019
2019
|
rows: f,
|
|
2020
2020
|
value: u,
|
|
2021
|
-
style:
|
|
2021
|
+
style: z
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
};
|
|
2025
|
-
function
|
|
2025
|
+
function Fn({
|
|
2026
2026
|
name: e,
|
|
2027
2027
|
label: r,
|
|
2028
2028
|
required: t,
|
|
@@ -2032,7 +2032,7 @@ function Vn({
|
|
|
2032
2032
|
style: a,
|
|
2033
2033
|
...l
|
|
2034
2034
|
}) {
|
|
2035
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ p(
|
|
2036
2036
|
ve,
|
|
2037
2037
|
{
|
|
2038
2038
|
name: e,
|
|
@@ -2042,8 +2042,8 @@ function Vn({
|
|
|
2042
2042
|
disabled: s,
|
|
2043
2043
|
className: n,
|
|
2044
2044
|
style: a,
|
|
2045
|
-
children: ({ value: f, onChange: u, onBlur: d, name: h, error: y }) => /* @__PURE__ */
|
|
2046
|
-
|
|
2045
|
+
children: ({ value: f, onChange: u, onBlur: d, name: h, error: y }) => /* @__PURE__ */ p(
|
|
2046
|
+
Xo,
|
|
2047
2047
|
{
|
|
2048
2048
|
...l,
|
|
2049
2049
|
name: h,
|
|
@@ -2056,11 +2056,11 @@ function Vn({
|
|
|
2056
2056
|
}
|
|
2057
2057
|
);
|
|
2058
2058
|
}
|
|
2059
|
-
const
|
|
2060
|
-
select:
|
|
2061
|
-
sizeSmall:
|
|
2062
|
-
sizeLarge:
|
|
2063
|
-
},
|
|
2059
|
+
const Yo = "Select-module__select___cjdcr", es = "Select-module__sizeSmall___i1quj", ts = "Select-module__sizeLarge___eBA1T", rt = {
|
|
2060
|
+
select: Yo,
|
|
2061
|
+
sizeSmall: es,
|
|
2062
|
+
sizeLarge: ts
|
|
2063
|
+
}, rs = ({
|
|
2064
2064
|
color: e = "#000",
|
|
2065
2065
|
disabled: r = !1
|
|
2066
2066
|
}) => ({
|
|
@@ -2087,7 +2087,7 @@ const Jo = "Select-module__select___cjdcr", Xo = "Select-module__sizeSmall___i1q
|
|
|
2087
2087
|
`.trim();
|
|
2088
2088
|
return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
|
|
2089
2089
|
})(e)
|
|
2090
|
-
}),
|
|
2090
|
+
}), os = ({
|
|
2091
2091
|
// State props
|
|
2092
2092
|
disabled: e = !1,
|
|
2093
2093
|
error: r = !1,
|
|
@@ -2110,27 +2110,27 @@ const Jo = "Select-module__select___cjdcr", Xo = "Select-module__sizeSmall___i1q
|
|
|
2110
2110
|
// Element-specific props
|
|
2111
2111
|
selectProps: V
|
|
2112
2112
|
}) => {
|
|
2113
|
-
const w =
|
|
2114
|
-
color:
|
|
2113
|
+
const w = T(), g = w.colors.error, k = r ? g : t || w.colors.primary, E = rs({
|
|
2114
|
+
color: k,
|
|
2115
2115
|
disabled: e
|
|
2116
2116
|
}), _ = {
|
|
2117
2117
|
"--select-padding-small": `calc(${w.fonts.rhythm} * ${w.sizes.small.paddingVertical}) calc(${w.fonts.rhythm} * 1.2) calc(${w.fonts.rhythm} * ${w.sizes.small.paddingVertical}) calc(${w.fonts.rhythm} * ${w.inputs.paddingHorizontal})`,
|
|
2118
2118
|
"--select-padding-large": `calc(${w.fonts.rhythm} * ${w.sizes.large.paddingVertical}) calc(${w.fonts.rhythm} * 1.4) calc(${w.fonts.rhythm} * ${w.sizes.large.paddingVertical}) calc(${w.fonts.rhythm} * ${w.inputs.paddingHorizontal})`,
|
|
2119
|
-
backgroundImage:
|
|
2119
|
+
backgroundImage: E.backgroundImage,
|
|
2120
2120
|
backgroundPosition: "right center",
|
|
2121
2121
|
backgroundRepeat: "no-repeat",
|
|
2122
2122
|
backgroundSize: "auto 85%",
|
|
2123
2123
|
backgroundColor: "transparent",
|
|
2124
|
-
borderColor:
|
|
2124
|
+
borderColor: E.borderColor,
|
|
2125
2125
|
borderWidth: w.border.width,
|
|
2126
2126
|
borderRadius: w.border.radius,
|
|
2127
|
-
color:
|
|
2128
|
-
cursor:
|
|
2127
|
+
color: E.color,
|
|
2128
|
+
cursor: E.cursor,
|
|
2129
2129
|
fontSize: w.fonts.size,
|
|
2130
|
-
opacity:
|
|
2130
|
+
opacity: E.opacity,
|
|
2131
2131
|
...y
|
|
2132
2132
|
// Top level style overrides
|
|
2133
|
-
},
|
|
2133
|
+
}, z = [
|
|
2134
2134
|
rt.select,
|
|
2135
2135
|
o === "small" ? rt.sizeSmall : rt.sizeLarge,
|
|
2136
2136
|
h
|
|
@@ -2139,7 +2139,7 @@ const Jo = "Select-module__select___cjdcr", Xo = "Select-module__sizeSmall___i1q
|
|
|
2139
2139
|
"select",
|
|
2140
2140
|
{
|
|
2141
2141
|
...V,
|
|
2142
|
-
className:
|
|
2142
|
+
className: z,
|
|
2143
2143
|
disabled: e,
|
|
2144
2144
|
id: s,
|
|
2145
2145
|
name: n,
|
|
@@ -2148,13 +2148,13 @@ const Jo = "Select-module__select___cjdcr", Xo = "Select-module__sizeSmall___i1q
|
|
|
2148
2148
|
value: l,
|
|
2149
2149
|
style: _,
|
|
2150
2150
|
children: [
|
|
2151
|
-
a !== "" && /* @__PURE__ */
|
|
2151
|
+
a !== "" && /* @__PURE__ */ p("option", { disabled: !0, value: "", children: a }),
|
|
2152
2152
|
d
|
|
2153
2153
|
]
|
|
2154
2154
|
}
|
|
2155
2155
|
);
|
|
2156
2156
|
};
|
|
2157
|
-
function
|
|
2157
|
+
function Vn({
|
|
2158
2158
|
name: e,
|
|
2159
2159
|
label: r,
|
|
2160
2160
|
required: t,
|
|
@@ -2165,7 +2165,7 @@ function zn({
|
|
|
2165
2165
|
children: l,
|
|
2166
2166
|
...f
|
|
2167
2167
|
}) {
|
|
2168
|
-
return /* @__PURE__ */
|
|
2168
|
+
return /* @__PURE__ */ p(
|
|
2169
2169
|
ve,
|
|
2170
2170
|
{
|
|
2171
2171
|
name: e,
|
|
@@ -2175,8 +2175,8 @@ function zn({
|
|
|
2175
2175
|
disabled: s,
|
|
2176
2176
|
className: n,
|
|
2177
2177
|
style: a,
|
|
2178
|
-
children: ({ value: u, onChange: d, onBlur: h, name: y, error: V }) => /* @__PURE__ */
|
|
2179
|
-
|
|
2178
|
+
children: ({ value: u, onChange: d, onBlur: h, name: y, error: V }) => /* @__PURE__ */ p(
|
|
2179
|
+
os,
|
|
2180
2180
|
{
|
|
2181
2181
|
...f,
|
|
2182
2182
|
name: y,
|
|
@@ -2190,7 +2190,7 @@ function zn({
|
|
|
2190
2190
|
}
|
|
2191
2191
|
);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function zn({
|
|
2194
2194
|
name: e,
|
|
2195
2195
|
required: r,
|
|
2196
2196
|
rules: t,
|
|
@@ -2199,7 +2199,7 @@ function En({
|
|
|
2199
2199
|
style: n,
|
|
2200
2200
|
...a
|
|
2201
2201
|
}) {
|
|
2202
|
-
return /* @__PURE__ */
|
|
2202
|
+
return /* @__PURE__ */ p(
|
|
2203
2203
|
ve,
|
|
2204
2204
|
{
|
|
2205
2205
|
name: e,
|
|
@@ -2208,7 +2208,7 @@ function En({
|
|
|
2208
2208
|
disabled: o,
|
|
2209
2209
|
className: s,
|
|
2210
2210
|
style: n,
|
|
2211
|
-
children: ({ value: l, onChange: f, name: u, error: d }) => /* @__PURE__ */
|
|
2211
|
+
children: ({ value: l, onChange: f, name: u, error: d }) => /* @__PURE__ */ p(
|
|
2212
2212
|
lt,
|
|
2213
2213
|
{
|
|
2214
2214
|
...a,
|
|
@@ -2221,11 +2221,11 @@ function En({
|
|
|
2221
2221
|
}
|
|
2222
2222
|
);
|
|
2223
2223
|
}
|
|
2224
|
-
const
|
|
2225
|
-
container:
|
|
2226
|
-
svg:
|
|
2227
|
-
label:
|
|
2228
|
-
},
|
|
2224
|
+
const ss = "Radio-module__container___AQxhk", ns = "Radio-module__svg___zl5kF", as = "Radio-module__label___vAFIP", ot = {
|
|
2225
|
+
container: ss,
|
|
2226
|
+
svg: ns,
|
|
2227
|
+
label: as
|
|
2228
|
+
}, is = ({
|
|
2229
2229
|
color: e = "#000",
|
|
2230
2230
|
disabled: r = !1
|
|
2231
2231
|
}) => ({
|
|
@@ -2251,35 +2251,35 @@ const os = "Radio-module__container___AQxhk", ss = "Radio-module__svg___zl5kF",
|
|
|
2251
2251
|
// Element-specific props
|
|
2252
2252
|
divProps: h
|
|
2253
2253
|
}) => {
|
|
2254
|
-
const y =
|
|
2254
|
+
const y = T(), V = n || sr(), w = y.colors.error, g = o ? w : e || y.colors.primary, k = is({
|
|
2255
2255
|
color: g,
|
|
2256
2256
|
disabled: t
|
|
2257
|
-
}),
|
|
2258
|
-
t || a(
|
|
2257
|
+
}), E = (H) => {
|
|
2258
|
+
t || a(H);
|
|
2259
2259
|
}, _ = {
|
|
2260
|
-
cursor:
|
|
2260
|
+
cursor: k.cursor,
|
|
2261
2261
|
fontSize: y.fonts.size,
|
|
2262
|
-
opacity:
|
|
2262
|
+
opacity: k.opacity,
|
|
2263
2263
|
...d
|
|
2264
2264
|
// Top level style overrides
|
|
2265
|
-
},
|
|
2265
|
+
}, z = {
|
|
2266
2266
|
width: "1em"
|
|
2267
|
-
},
|
|
2267
|
+
}, $ = {
|
|
2268
2268
|
fill: "transparent",
|
|
2269
2269
|
strokeWidth: "12.5",
|
|
2270
|
-
stroke:
|
|
2271
|
-
},
|
|
2272
|
-
fill:
|
|
2273
|
-
},
|
|
2274
|
-
return /* @__PURE__ */ U("div", { ...h, className:
|
|
2275
|
-
/* @__PURE__ */
|
|
2270
|
+
stroke: k.radioColor
|
|
2271
|
+
}, A = {
|
|
2272
|
+
fill: k.radioColor
|
|
2273
|
+
}, R = [ot.container, u].filter(Boolean).join(" ");
|
|
2274
|
+
return /* @__PURE__ */ U("div", { ...h, className: R, style: _, children: [
|
|
2275
|
+
/* @__PURE__ */ p(
|
|
2276
2276
|
"input",
|
|
2277
2277
|
{
|
|
2278
2278
|
id: V,
|
|
2279
2279
|
checked: r,
|
|
2280
2280
|
disabled: t,
|
|
2281
2281
|
name: s,
|
|
2282
|
-
onChange: (
|
|
2282
|
+
onChange: (H) => E({ target: { checked: H.target.checked, name: s, type: "radio" } }),
|
|
2283
2283
|
style: { display: "none" },
|
|
2284
2284
|
type: "radio"
|
|
2285
2285
|
}
|
|
@@ -2289,22 +2289,22 @@ const os = "Radio-module__container___AQxhk", ss = "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: () => E({ target: { checked: !r, name: s, type: "radio" } }),
|
|
2293
2293
|
className: ot.svg,
|
|
2294
|
-
style:
|
|
2294
|
+
style: z,
|
|
2295
2295
|
children: [
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
r && /* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ p("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: $ }),
|
|
2297
|
+
r && /* @__PURE__ */ p("circle", { cx: "50", cy: "50", r: "25", style: A })
|
|
2298
2298
|
]
|
|
2299
2299
|
}
|
|
2300
2300
|
),
|
|
2301
|
-
l && /* @__PURE__ */
|
|
2301
|
+
l && /* @__PURE__ */ p(
|
|
2302
2302
|
yt,
|
|
2303
2303
|
{
|
|
2304
2304
|
htmlFor: V,
|
|
2305
2305
|
className: ot.label,
|
|
2306
2306
|
style: { paddingBottom: 0, ...f },
|
|
2307
|
-
color:
|
|
2307
|
+
color: k.radioColor,
|
|
2308
2308
|
disabled: t,
|
|
2309
2309
|
error: o,
|
|
2310
2310
|
children: l
|
|
@@ -2312,7 +2312,7 @@ const os = "Radio-module__container___AQxhk", ss = "Radio-module__svg___zl5kF",
|
|
|
2312
2312
|
)
|
|
2313
2313
|
] });
|
|
2314
2314
|
};
|
|
2315
|
-
function
|
|
2315
|
+
function En({
|
|
2316
2316
|
name: e,
|
|
2317
2317
|
label: r,
|
|
2318
2318
|
required: t,
|
|
@@ -2323,7 +2323,7 @@ function $n({
|
|
|
2323
2323
|
value: l,
|
|
2324
2324
|
...f
|
|
2325
2325
|
}) {
|
|
2326
|
-
return /* @__PURE__ */
|
|
2326
|
+
return /* @__PURE__ */ p(
|
|
2327
2327
|
ve,
|
|
2328
2328
|
{
|
|
2329
2329
|
name: e,
|
|
@@ -2332,7 +2332,7 @@ function $n({
|
|
|
2332
2332
|
disabled: s,
|
|
2333
2333
|
className: n,
|
|
2334
2334
|
style: a,
|
|
2335
|
-
children: ({ value: u, onChange: d, name: h, error: y }) => /* @__PURE__ */
|
|
2335
|
+
children: ({ value: u, onChange: d, name: h, error: y }) => /* @__PURE__ */ p(
|
|
2336
2336
|
Cr,
|
|
2337
2337
|
{
|
|
2338
2338
|
...f,
|
|
@@ -2346,7 +2346,7 @@ function $n({
|
|
|
2346
2346
|
}
|
|
2347
2347
|
);
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function $n({
|
|
2350
2350
|
name: e,
|
|
2351
2351
|
label: r,
|
|
2352
2352
|
required: t,
|
|
@@ -2356,7 +2356,7 @@ function An({
|
|
|
2356
2356
|
style: a,
|
|
2357
2357
|
indent: l = !0
|
|
2358
2358
|
}) {
|
|
2359
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ p(
|
|
2360
2360
|
ve,
|
|
2361
2361
|
{
|
|
2362
2362
|
name: e,
|
|
@@ -2371,7 +2371,7 @@ function An({
|
|
|
2371
2371
|
marginBottom: ".25em"
|
|
2372
2372
|
}
|
|
2373
2373
|
},
|
|
2374
|
-
children: ({ value: f, onChange: u, name: d, error: h }) => /* @__PURE__ */
|
|
2374
|
+
children: ({ value: f, onChange: u, name: d, error: h }) => /* @__PURE__ */ p(pe, { children: o.map((y) => /* @__PURE__ */ p(
|
|
2375
2375
|
Cr,
|
|
2376
2376
|
{
|
|
2377
2377
|
name: d,
|
|
@@ -2386,7 +2386,7 @@ function An({
|
|
|
2386
2386
|
}
|
|
2387
2387
|
);
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function An({
|
|
2390
2390
|
name: e,
|
|
2391
2391
|
label: r,
|
|
2392
2392
|
required: t,
|
|
@@ -2397,7 +2397,7 @@ function Nn({
|
|
|
2397
2397
|
style: l,
|
|
2398
2398
|
indent: f = !0
|
|
2399
2399
|
}) {
|
|
2400
|
-
return /* @__PURE__ */
|
|
2400
|
+
return /* @__PURE__ */ p(
|
|
2401
2401
|
ve,
|
|
2402
2402
|
{
|
|
2403
2403
|
name: e,
|
|
@@ -2413,27 +2413,27 @@ function Nn({
|
|
|
2413
2413
|
}
|
|
2414
2414
|
},
|
|
2415
2415
|
children: ({ value: u, onChange: d, name: h, error: y }) => {
|
|
2416
|
-
const V = Array.isArray(u) ? u : [], w = (g,
|
|
2417
|
-
d(
|
|
2416
|
+
const V = Array.isArray(u) ? u : [], w = (g, k) => {
|
|
2417
|
+
d(k ? [...V, g] : V.filter((E) => E !== g));
|
|
2418
2418
|
};
|
|
2419
|
-
return /* @__PURE__ */
|
|
2419
|
+
return /* @__PURE__ */ p(pe, { children: o ? o.map((g) => /* @__PURE__ */ p(
|
|
2420
2420
|
lt,
|
|
2421
2421
|
{
|
|
2422
2422
|
name: `${h}[]`,
|
|
2423
2423
|
checked: V.includes(g.value),
|
|
2424
|
-
onChange: (
|
|
2424
|
+
onChange: (k) => w(g.value, k.target.checked),
|
|
2425
2425
|
label: g.label,
|
|
2426
2426
|
disabled: n || g.disabled,
|
|
2427
2427
|
error: y
|
|
2428
2428
|
},
|
|
2429
2429
|
g.value
|
|
2430
|
-
)) :
|
|
2431
|
-
if (
|
|
2432
|
-
const
|
|
2433
|
-
return
|
|
2430
|
+
)) : x.Children.map(s, (g) => {
|
|
2431
|
+
if (x.isValidElement(g) && g.type === lt) {
|
|
2432
|
+
const k = g.props.value || g.props.name;
|
|
2433
|
+
return x.cloneElement(g, {
|
|
2434
2434
|
name: `${h}[]`,
|
|
2435
|
-
checked: V.includes(
|
|
2436
|
-
onChange: (
|
|
2435
|
+
checked: V.includes(k),
|
|
2436
|
+
onChange: (E) => w(k, E.target.checked),
|
|
2437
2437
|
error: y || g.props.error,
|
|
2438
2438
|
disabled: n || g.props.disabled
|
|
2439
2439
|
});
|
|
@@ -2444,17 +2444,17 @@ function Nn({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
);
|
|
2446
2446
|
}
|
|
2447
|
-
const
|
|
2448
|
-
hamburger:
|
|
2449
|
-
line:
|
|
2450
|
-
open:
|
|
2451
|
-
},
|
|
2447
|
+
const ls = "Hamburger-module__hamburger___Tf4-t", cs = "Hamburger-module__line___gybZM", us = "Hamburger-module__open___gRswh", Fe = {
|
|
2448
|
+
hamburger: ls,
|
|
2449
|
+
line: cs,
|
|
2450
|
+
open: us
|
|
2451
|
+
}, ds = ({
|
|
2452
2452
|
compact: e,
|
|
2453
2453
|
color: r,
|
|
2454
2454
|
visible: t,
|
|
2455
2455
|
border: o
|
|
2456
2456
|
}) => {
|
|
2457
|
-
const s =
|
|
2457
|
+
const s = T(), n = e ? "1.5em" : "2em";
|
|
2458
2458
|
return {
|
|
2459
2459
|
"--hamburger-border-radius": (o == null ? void 0 : o.radius) || s.border.radius,
|
|
2460
2460
|
color: r || "inherit",
|
|
@@ -2462,7 +2462,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2462
2462
|
width: n,
|
|
2463
2463
|
height: n
|
|
2464
2464
|
};
|
|
2465
|
-
},
|
|
2465
|
+
}, fs = ({
|
|
2466
2466
|
// Color props
|
|
2467
2467
|
color: e,
|
|
2468
2468
|
// State/variant props
|
|
@@ -2478,12 +2478,12 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2478
2478
|
className: l,
|
|
2479
2479
|
style: f
|
|
2480
2480
|
}) => {
|
|
2481
|
-
const u =
|
|
2481
|
+
const u = ds({
|
|
2482
2482
|
compact: t,
|
|
2483
2483
|
color: e,
|
|
2484
2484
|
visible: r,
|
|
2485
2485
|
border: n
|
|
2486
|
-
}), d = [
|
|
2486
|
+
}), d = [Fe.hamburger, s ? Fe.open : "", l].filter(Boolean).join(" ");
|
|
2487
2487
|
return /* @__PURE__ */ U(
|
|
2488
2488
|
"button",
|
|
2489
2489
|
{
|
|
@@ -2494,16 +2494,16 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2494
2494
|
"aria-label": "Toggle menu",
|
|
2495
2495
|
"aria-expanded": s,
|
|
2496
2496
|
children: [
|
|
2497
|
-
/* @__PURE__ */
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2497
|
+
/* @__PURE__ */ p("div", { className: Fe.line }),
|
|
2498
|
+
/* @__PURE__ */ p("div", { className: Fe.line }),
|
|
2499
|
+
/* @__PURE__ */ p("div", { className: Fe.line })
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
);
|
|
2503
|
-
},
|
|
2504
|
-
header:
|
|
2505
|
-
container:
|
|
2506
|
-
},
|
|
2503
|
+
}, ms = "Header-module__header___RUooH", ys = "Header-module__container___t68M9", Qt = {
|
|
2504
|
+
header: ms,
|
|
2505
|
+
container: ys
|
|
2506
|
+
}, hs = ({
|
|
2507
2507
|
isSmallScreen: e = !1,
|
|
2508
2508
|
maxWidth: r,
|
|
2509
2509
|
minWidth: t,
|
|
@@ -2516,7 +2516,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2516
2516
|
backgroundColor: u,
|
|
2517
2517
|
color: d
|
|
2518
2518
|
} = {}) => {
|
|
2519
|
-
const h =
|
|
2519
|
+
const h = T();
|
|
2520
2520
|
return {
|
|
2521
2521
|
"--header-max-width": r || h.layout.maxWidth,
|
|
2522
2522
|
"--header-min-width": t,
|
|
@@ -2528,15 +2528,15 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2528
2528
|
backgroundColor: u,
|
|
2529
2529
|
color: d
|
|
2530
2530
|
};
|
|
2531
|
-
},
|
|
2531
|
+
}, ce = (e) => {
|
|
2532
2532
|
const r = typeof window < "u" && typeof window.matchMedia == "function";
|
|
2533
|
-
return
|
|
2533
|
+
return Or((n) => {
|
|
2534
2534
|
if (!r) return () => {
|
|
2535
2535
|
};
|
|
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
|
+
}, gs = ({
|
|
2540
2540
|
// Color props
|
|
2541
2541
|
backgroundColor: e,
|
|
2542
2542
|
color: r,
|
|
@@ -2559,8 +2559,8 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2559
2559
|
// Element-specific props
|
|
2560
2560
|
headerProps: g
|
|
2561
2561
|
}) => {
|
|
2562
|
-
const
|
|
2563
|
-
isSmallScreen:
|
|
2562
|
+
const k = T(), E = d || k.breakpoints.sm, { maxWidth: _, unit: z } = $e(E), $ = ce(`(max-width: ${_}${z})`), A = hs({
|
|
2563
|
+
isSmallScreen: $,
|
|
2564
2564
|
maxWidth: t,
|
|
2565
2565
|
minWidth: o,
|
|
2566
2566
|
width: s,
|
|
@@ -2571,164 +2571,33 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2571
2571
|
gap: u,
|
|
2572
2572
|
backgroundColor: e,
|
|
2573
2573
|
color: r
|
|
2574
|
-
}),
|
|
2575
|
-
return /* @__PURE__ */
|
|
2574
|
+
}), R = [Qt.container, V].filter(Boolean).join(" "), H = h ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
|
|
2575
|
+
return /* @__PURE__ */ p("header", { ...g, className: Qt.header, style: H, children: /* @__PURE__ */ p(
|
|
2576
2576
|
"div",
|
|
2577
2577
|
{
|
|
2578
|
-
className:
|
|
2579
|
-
style: { ...
|
|
2578
|
+
className: R,
|
|
2579
|
+
style: { ...A, ...w },
|
|
2580
2580
|
children: y
|
|
2581
2581
|
}
|
|
2582
2582
|
) });
|
|
2583
|
-
},
|
|
2584
|
-
nav:
|
|
2585
|
-
navMobile:
|
|
2586
|
-
navHeader:
|
|
2587
|
-
compact:
|
|
2588
|
-
open: bs,
|
|
2583
|
+
}, _s = "ResponsiveNav-module__nav___xOfv5", ps = "ResponsiveNav-module__navMobile___h795P", vs = "ResponsiveNav-module__navHeader___Me8bB", bs = "ResponsiveNav-module__compact___UhuAE", Ss = "ResponsiveNav-module__navDesktop___9wscZ", we = {
|
|
2584
|
+
nav: _s,
|
|
2585
|
+
navMobile: ps,
|
|
2586
|
+
navHeader: vs,
|
|
2587
|
+
compact: bs,
|
|
2589
2588
|
navDesktop: Ss
|
|
2590
|
-
}, ws =
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
backgroundColor: n,
|
|
2603
|
-
color: a,
|
|
2604
|
-
fontSize: u,
|
|
2605
|
-
...t == null ? void 0 : t.style
|
|
2606
|
-
},
|
|
2607
|
-
linkActiveStyles: {
|
|
2608
|
-
backgroundColor: l,
|
|
2609
|
-
color: f
|
|
2610
|
-
},
|
|
2611
|
-
linkHoverStyles: {
|
|
2612
|
-
// No hover styles on mobile (touch devices)
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
|
-
} else {
|
|
2616
|
-
const n = o == null ? void 0 : o.backgroundColor, a = (o == null ? void 0 : o.color) || s.fonts.color, l = (o == null ? void 0 : o.hoverOpacity) ?? 0.5, f = o == null ? void 0 : o.activeBackgroundColor, u = o == null ? void 0 : o.activeColor;
|
|
2617
|
-
return {
|
|
2618
|
-
navStyles: {
|
|
2619
|
-
...n && { backgroundColor: n },
|
|
2620
|
-
color: a,
|
|
2621
|
-
...o == null ? void 0 : o.style
|
|
2622
|
-
},
|
|
2623
|
-
linkActiveStyles: {
|
|
2624
|
-
...f && { backgroundColor: f },
|
|
2625
|
-
...u && { color: u },
|
|
2626
|
-
opacity: f || u ? 1 : l
|
|
2627
|
-
},
|
|
2628
|
-
linkHoverStyles: {
|
|
2629
|
-
opacity: l
|
|
2630
|
-
}
|
|
2631
|
-
};
|
|
2632
|
-
}
|
|
2633
|
-
}, [e, r, t, o, s]);
|
|
2634
|
-
}, Cs = mt({
|
|
2635
|
-
isMobile: !1,
|
|
2636
|
-
setOpen: () => {
|
|
2637
|
-
}
|
|
2638
|
-
}), Ln = ({
|
|
2639
|
-
mobile: e,
|
|
2640
|
-
desktop: r,
|
|
2641
|
-
breakpoints: t,
|
|
2642
|
-
children: o,
|
|
2643
|
-
className: s,
|
|
2644
|
-
style: n,
|
|
2645
|
-
navProps: a,
|
|
2646
|
-
disableMobileTreatment: l = !1
|
|
2647
|
-
}) => {
|
|
2648
|
-
var P;
|
|
2649
|
-
const [f, u] = ye(!1), d = xe(null), h = xe(null), y = I(), V = { ...y.breakpoints, ...t }, { maxWidth: w, unit: g } = $e(V.md), { maxWidth: x, unit: $ } = $e(V.sm), _ = ue(`(max-width: ${w}${g})`), A = ue(`(max-width: ${x}${$})`), k = l ? !1 : _, E = l ? !1 : A, { navStyles: H, linkActiveStyles: R, linkHoverStyles: K } = ws({
|
|
2650
|
-
isMobile: k,
|
|
2651
|
-
isCompact: E,
|
|
2652
|
-
mobile: e,
|
|
2653
|
-
desktop: r
|
|
2654
|
-
}), B = {
|
|
2655
|
-
...H,
|
|
2656
|
-
// Mobile active state colors
|
|
2657
|
-
...R.backgroundColor && {
|
|
2658
|
-
"--mobile-active-bg": R.backgroundColor
|
|
2659
|
-
},
|
|
2660
|
-
...R.color && { "--mobile-active-color": R.color },
|
|
2661
|
-
// Desktop hover opacity
|
|
2662
|
-
...K.opacity !== void 0 && {
|
|
2663
|
-
"--desktop-hover-opacity": K.opacity
|
|
2664
|
-
}
|
|
2665
|
-
};
|
|
2666
|
-
ae(() => {
|
|
2667
|
-
if (k && f) {
|
|
2668
|
-
const j = window.scrollY;
|
|
2669
|
-
return document.body.style.position = "fixed", document.body.style.top = `-${j}px`, document.body.style.width = "100%", () => {
|
|
2670
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, j);
|
|
2671
|
-
};
|
|
2672
|
-
}
|
|
2673
|
-
}, [k, f]), ae(() => {
|
|
2674
|
-
const j = (W) => {
|
|
2675
|
-
!h.current || h.current.contains(W.target) || d.current && d.current.contains(W.target) || u(!1);
|
|
2676
|
-
};
|
|
2677
|
-
return document.addEventListener("mousedown", j), () => {
|
|
2678
|
-
document.removeEventListener("mousedown", j);
|
|
2679
|
-
};
|
|
2680
|
-
}, [d, h, u]);
|
|
2681
|
-
const Y = [
|
|
2682
|
-
we.nav,
|
|
2683
|
-
k ? we.navMobile : we.navDesktop,
|
|
2684
|
-
k && f ? we.open : "",
|
|
2685
|
-
k && (E || e != null && e.compact) ? we.compact : "",
|
|
2686
|
-
s
|
|
2687
|
-
].filter(Boolean).join(" "), J = (j) => {
|
|
2688
|
-
if (!k) return;
|
|
2689
|
-
const W = j.target;
|
|
2690
|
-
W.closest("[data-navitem-trigger]") || W.closest("a, button") && u(!1);
|
|
2691
|
-
}, N = k ? (e == null ? void 0 : e.content) || o : (r == null ? void 0 : r.content) || o, L = f ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || y.colors.secondary : (P = e == null ? void 0 : e.hamburgerProps) == null ? void 0 : P.color;
|
|
2692
|
-
return /* @__PURE__ */ v(Cs.Provider, { value: { isMobile: k, setOpen: u }, children: /* @__PURE__ */ U(pe, { children: [
|
|
2693
|
-
/* @__PURE__ */ v(
|
|
2694
|
-
ds,
|
|
2695
|
-
{
|
|
2696
|
-
hamburgerRef: d,
|
|
2697
|
-
visible: k,
|
|
2698
|
-
compact: E,
|
|
2699
|
-
open: f,
|
|
2700
|
-
setOpen: u,
|
|
2701
|
-
color: L,
|
|
2702
|
-
...e == null ? void 0 : e.hamburgerProps
|
|
2703
|
-
}
|
|
2704
|
-
),
|
|
2705
|
-
/* @__PURE__ */ U(
|
|
2706
|
-
"nav",
|
|
2707
|
-
{
|
|
2708
|
-
...a,
|
|
2709
|
-
ref: h,
|
|
2710
|
-
className: Y,
|
|
2711
|
-
style: { ...B, ...n },
|
|
2712
|
-
onClickCapture: J,
|
|
2713
|
-
children: [
|
|
2714
|
-
k && f && /* @__PURE__ */ v("div", { className: we.navHeader }),
|
|
2715
|
-
typeof N == "function" ? N({ setOpen: u }) : N
|
|
2716
|
-
]
|
|
2717
|
-
}
|
|
2718
|
-
)
|
|
2719
|
-
] }) });
|
|
2720
|
-
}, xs = "Popover-module__triggerWrapper___dZpf6", ks = "Popover-module__popup___JAvrb", Fs = "Popover-module__panelOverlay___1xDU5", Vs = "Popover-module__panelOverlayVisible___BgtIQ", zs = "Popover-module__backdrop___e8qHL", Es = "Popover-module__panel___eUJ2E", $s = "Popover-module__panelLeft___9nSLp", As = "Popover-module__panelRight___OrQfl", Ns = "Popover-module__panelOpen___hhvV-", Ls = "Popover-module__panelCloseButton___kALaN", de = {
|
|
2721
|
-
triggerWrapper: xs,
|
|
2722
|
-
popup: ks,
|
|
2723
|
-
panelOverlay: Fs,
|
|
2724
|
-
panelOverlayVisible: Vs,
|
|
2725
|
-
backdrop: zs,
|
|
2726
|
-
panel: Es,
|
|
2727
|
-
panelLeft: $s,
|
|
2728
|
-
panelRight: As,
|
|
2729
|
-
panelOpen: Ns,
|
|
2730
|
-
panelCloseButton: Ls
|
|
2731
|
-
}, Bs = ({
|
|
2589
|
+
}, ws = "Popover-module__triggerWrapper___dZpf6", Cs = "Popover-module__popup___JAvrb", ks = "Popover-module__panelOverlay___1xDU5", xs = "Popover-module__panelOverlayVisible___BgtIQ", Fs = "Popover-module__backdrop___e8qHL", Vs = "Popover-module__panel___eUJ2E", zs = "Popover-module__panelLeft___9nSLp", Es = "Popover-module__panelRight___OrQfl", $s = "Popover-module__panelOpen___hhvV-", As = "Popover-module__panelCloseButton___kALaN", ue = {
|
|
2590
|
+
triggerWrapper: ws,
|
|
2591
|
+
popup: Cs,
|
|
2592
|
+
panelOverlay: ks,
|
|
2593
|
+
panelOverlayVisible: xs,
|
|
2594
|
+
backdrop: Fs,
|
|
2595
|
+
panel: Vs,
|
|
2596
|
+
panelLeft: zs,
|
|
2597
|
+
panelRight: Es,
|
|
2598
|
+
panelOpen: $s,
|
|
2599
|
+
panelCloseButton: As
|
|
2600
|
+
}, kr = ({
|
|
2732
2601
|
trigger: e,
|
|
2733
2602
|
children: r,
|
|
2734
2603
|
variant: t = "popup",
|
|
@@ -2744,85 +2613,85 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2744
2613
|
style: y,
|
|
2745
2614
|
popoverProps: V
|
|
2746
2615
|
}) => {
|
|
2747
|
-
const w =
|
|
2616
|
+
const w = T(), g = o !== void 0, [k, E] = ye(!1), _ = g ? o : k, [z, $] = ye(!1), [A, R] = ye(!1), H = Ee(null), Q = Ee(null), [P, K] = ye({}), J = Le(
|
|
2748
2617
|
(O) => {
|
|
2749
|
-
g ||
|
|
2618
|
+
g || E(O), s == null || s(O);
|
|
2750
2619
|
},
|
|
2751
2620
|
[g, s]
|
|
2752
|
-
), N =
|
|
2753
|
-
|
|
2754
|
-
t === "panel" && (_ ?
|
|
2755
|
-
}, [_, t]),
|
|
2756
|
-
if (t !== "panel" || !
|
|
2757
|
-
let O,
|
|
2621
|
+
), N = Le(() => J(!_), [_, J]), B = Le(() => J(!1), [J]);
|
|
2622
|
+
de(() => {
|
|
2623
|
+
t === "panel" && (_ ? $(!0) : R(!1));
|
|
2624
|
+
}, [_, t]), de(() => {
|
|
2625
|
+
if (t !== "panel" || !z || !_) return;
|
|
2626
|
+
let O, Y;
|
|
2758
2627
|
return O = requestAnimationFrame(() => {
|
|
2759
|
-
|
|
2628
|
+
Y = requestAnimationFrame(() => R(!0));
|
|
2760
2629
|
}), () => {
|
|
2761
|
-
cancelAnimationFrame(O), cancelAnimationFrame(
|
|
2630
|
+
cancelAnimationFrame(O), cancelAnimationFrame(Y);
|
|
2762
2631
|
};
|
|
2763
|
-
}, [
|
|
2764
|
-
const
|
|
2765
|
-
if (t !== "popup" || !
|
|
2766
|
-
const O =
|
|
2632
|
+
}, [z, _, t]);
|
|
2633
|
+
const L = Le(() => {
|
|
2634
|
+
if (t !== "popup" || !H.current) return;
|
|
2635
|
+
const O = H.current.getBoundingClientRect(), Y = {
|
|
2767
2636
|
position: "fixed",
|
|
2768
2637
|
top: O.bottom + 4,
|
|
2769
2638
|
zIndex: 999
|
|
2770
2639
|
};
|
|
2771
|
-
|
|
2772
|
-
...
|
|
2640
|
+
K(n === "bottom-start" ? { ...Y, left: O.left } : n === "bottom" ? {
|
|
2641
|
+
...Y,
|
|
2773
2642
|
left: O.left + O.width / 2,
|
|
2774
2643
|
transform: "translateX(-50%)"
|
|
2775
|
-
} : { ...
|
|
2644
|
+
} : { ...Y, left: O.right, transform: "translateX(-100%)" });
|
|
2776
2645
|
}, [t, n]);
|
|
2777
|
-
|
|
2778
|
-
_ && t === "popup" &&
|
|
2779
|
-
}, [_, t,
|
|
2646
|
+
de(() => {
|
|
2647
|
+
_ && t === "popup" && L();
|
|
2648
|
+
}, [_, t, L]), de(() => {
|
|
2780
2649
|
if (!(!_ || t !== "popup"))
|
|
2781
|
-
return window.addEventListener("scroll",
|
|
2782
|
-
window.removeEventListener("scroll",
|
|
2650
|
+
return window.addEventListener("scroll", L, !0), window.addEventListener("resize", L), () => {
|
|
2651
|
+
window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L);
|
|
2783
2652
|
};
|
|
2784
|
-
}, [_, t,
|
|
2653
|
+
}, [_, t, L]), de(() => {
|
|
2785
2654
|
if (!_ || t !== "popup") return;
|
|
2786
|
-
const O = (
|
|
2655
|
+
const O = (Y) => {
|
|
2787
2656
|
var ke, Ne;
|
|
2788
|
-
(ke =
|
|
2657
|
+
(ke = Q.current) != null && ke.contains(Y.target) || (Ne = H.current) != null && Ne.contains(Y.target) || B();
|
|
2789
2658
|
};
|
|
2790
2659
|
return document.addEventListener("mousedown", O), () => document.removeEventListener("mousedown", O);
|
|
2791
|
-
}, [_, t,
|
|
2660
|
+
}, [_, t, B]), de(() => {
|
|
2792
2661
|
if (!_) return;
|
|
2793
|
-
const O = (
|
|
2794
|
-
|
|
2662
|
+
const O = (Y) => {
|
|
2663
|
+
Y.key === "Escape" && B();
|
|
2795
2664
|
};
|
|
2796
2665
|
return document.addEventListener("keydown", O), () => document.removeEventListener("keydown", O);
|
|
2797
|
-
}, [_,
|
|
2666
|
+
}, [_, B]), de(() => {
|
|
2798
2667
|
if (!_ || t !== "panel") return;
|
|
2799
2668
|
const O = window.scrollY;
|
|
2800
2669
|
return document.body.style.position = "fixed", document.body.style.top = `-${O}px`, document.body.style.width = "100%", () => {
|
|
2801
2670
|
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, O);
|
|
2802
2671
|
};
|
|
2803
2672
|
}, [_, t]);
|
|
2804
|
-
const
|
|
2673
|
+
const I = e ? typeof e == "function" ? e({ onClick: N, isOpen: _ }) : (
|
|
2805
2674
|
// Non-function trigger: wrap in a span that delegates clicks to the trigger element.
|
|
2806
2675
|
// The wrapped element (e.g. <button>) handles its own keyboard accessibility.
|
|
2807
2676
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
2808
|
-
/* @__PURE__ */
|
|
2809
|
-
),
|
|
2677
|
+
/* @__PURE__ */ p("span", { onClick: N, style: { cursor: "pointer", display: "contents" }, children: e })
|
|
2678
|
+
) : null, X = e ? /* @__PURE__ */ p("span", { ref: H, className: ue.triggerWrapper, children: I }) : null;
|
|
2810
2679
|
if (t === "popup") {
|
|
2811
2680
|
const O = {
|
|
2812
2681
|
backgroundColor: w.colors.secondary,
|
|
2813
2682
|
borderRadius: w.border.radius,
|
|
2814
2683
|
boxShadow: "0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",
|
|
2815
|
-
...
|
|
2684
|
+
...P,
|
|
2816
2685
|
...y
|
|
2817
2686
|
};
|
|
2818
2687
|
return /* @__PURE__ */ U(pe, { children: [
|
|
2819
|
-
|
|
2688
|
+
X,
|
|
2820
2689
|
_ && at(
|
|
2821
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ p(
|
|
2822
2691
|
"div",
|
|
2823
2692
|
{
|
|
2824
|
-
ref:
|
|
2825
|
-
className: [
|
|
2693
|
+
ref: Q,
|
|
2694
|
+
className: [ue.popup, h].filter(Boolean).join(" "),
|
|
2826
2695
|
style: O,
|
|
2827
2696
|
...V,
|
|
2828
2697
|
children: r
|
|
@@ -2837,33 +2706,33 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2837
2706
|
backgroundColor: w.colors.secondary,
|
|
2838
2707
|
...y
|
|
2839
2708
|
}, he = () => {
|
|
2840
|
-
|
|
2709
|
+
A || $(!1);
|
|
2841
2710
|
};
|
|
2842
2711
|
return /* @__PURE__ */ U(pe, { children: [
|
|
2843
|
-
|
|
2844
|
-
|
|
2712
|
+
X,
|
|
2713
|
+
z && at(
|
|
2845
2714
|
/* @__PURE__ */ U(
|
|
2846
2715
|
"div",
|
|
2847
2716
|
{
|
|
2848
|
-
className: [
|
|
2717
|
+
className: [ue.panelOverlay, A ? ue.panelOverlayVisible : ""].filter(Boolean).join(" "),
|
|
2849
2718
|
children: [
|
|
2850
|
-
/* @__PURE__ */
|
|
2719
|
+
/* @__PURE__ */ p(
|
|
2851
2720
|
"div",
|
|
2852
2721
|
{
|
|
2853
|
-
className:
|
|
2854
|
-
style: { backgroundColor:
|
|
2855
|
-
onClick: d ?
|
|
2722
|
+
className: ue.backdrop,
|
|
2723
|
+
style: { backgroundColor: A ? f : "transparent" },
|
|
2724
|
+
onClick: d ? B : void 0,
|
|
2856
2725
|
role: "presentation"
|
|
2857
2726
|
}
|
|
2858
2727
|
),
|
|
2859
2728
|
/* @__PURE__ */ U(
|
|
2860
2729
|
"div",
|
|
2861
2730
|
{
|
|
2862
|
-
ref:
|
|
2731
|
+
ref: Q,
|
|
2863
2732
|
className: [
|
|
2864
|
-
|
|
2865
|
-
a === "right" ?
|
|
2866
|
-
|
|
2733
|
+
ue.panel,
|
|
2734
|
+
a === "right" ? ue.panelRight : ue.panelLeft,
|
|
2735
|
+
A ? ue.panelOpen : "",
|
|
2867
2736
|
h
|
|
2868
2737
|
].filter(Boolean).join(" "),
|
|
2869
2738
|
style: se,
|
|
@@ -2872,14 +2741,14 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2872
2741
|
onTransitionEnd: he,
|
|
2873
2742
|
...V,
|
|
2874
2743
|
children: [
|
|
2875
|
-
!u && /* @__PURE__ */
|
|
2744
|
+
!u && /* @__PURE__ */ p(
|
|
2876
2745
|
"button",
|
|
2877
2746
|
{
|
|
2878
|
-
className:
|
|
2879
|
-
onClick:
|
|
2747
|
+
className: ue.panelCloseButton,
|
|
2748
|
+
onClick: B,
|
|
2880
2749
|
"aria-label": "Close panel",
|
|
2881
2750
|
type: "button",
|
|
2882
|
-
children: /* @__PURE__ */
|
|
2751
|
+
children: /* @__PURE__ */ p(
|
|
2883
2752
|
"svg",
|
|
2884
2753
|
{
|
|
2885
2754
|
width: "100%",
|
|
@@ -2888,7 +2757,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2888
2757
|
fill: "none",
|
|
2889
2758
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2890
2759
|
"aria-hidden": "true",
|
|
2891
|
-
children: /* @__PURE__ */
|
|
2760
|
+
children: /* @__PURE__ */ p(
|
|
2892
2761
|
"path",
|
|
2893
2762
|
{
|
|
2894
2763
|
d: "M15 5L5 15M5 5L15 15",
|
|
@@ -2912,11 +2781,149 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2912
2781
|
document.body
|
|
2913
2782
|
)
|
|
2914
2783
|
] });
|
|
2915
|
-
},
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2784
|
+
}, Ns = ({
|
|
2785
|
+
isMobile: e,
|
|
2786
|
+
isCompact: r,
|
|
2787
|
+
mobile: t,
|
|
2788
|
+
desktop: o
|
|
2789
|
+
}) => {
|
|
2790
|
+
const s = T();
|
|
2791
|
+
return We(() => {
|
|
2792
|
+
if (e) {
|
|
2793
|
+
const n = (t == null ? void 0 : t.backgroundColor) || s.colors.primary, a = (t == null ? void 0 : t.color) || s.colors.secondary, l = (t == null ? void 0 : t.activeBackgroundColor) || s.colors.secondary, f = (t == null ? void 0 : t.activeColor) || s.colors.primary, u = r || t != null && t.compact ? "1.5rem" : "2rem";
|
|
2794
|
+
return {
|
|
2795
|
+
navStyles: {
|
|
2796
|
+
backgroundColor: n,
|
|
2797
|
+
color: a,
|
|
2798
|
+
fontSize: u,
|
|
2799
|
+
...t == null ? void 0 : t.style
|
|
2800
|
+
},
|
|
2801
|
+
linkActiveStyles: {
|
|
2802
|
+
backgroundColor: l,
|
|
2803
|
+
color: f
|
|
2804
|
+
},
|
|
2805
|
+
linkHoverStyles: {
|
|
2806
|
+
// No hover styles on mobile (touch devices)
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2809
|
+
} else {
|
|
2810
|
+
const n = o == null ? void 0 : o.backgroundColor, a = (o == null ? void 0 : o.color) || s.fonts.color, l = (o == null ? void 0 : o.hoverOpacity) ?? 0.5, f = o == null ? void 0 : o.activeBackgroundColor, u = o == null ? void 0 : o.activeColor;
|
|
2811
|
+
return {
|
|
2812
|
+
navStyles: {
|
|
2813
|
+
...n && { backgroundColor: n },
|
|
2814
|
+
color: a,
|
|
2815
|
+
...o == null ? void 0 : o.style
|
|
2816
|
+
},
|
|
2817
|
+
linkActiveStyles: {
|
|
2818
|
+
...f && { backgroundColor: f },
|
|
2819
|
+
...u && { color: u },
|
|
2820
|
+
opacity: f || u ? 1 : l
|
|
2821
|
+
},
|
|
2822
|
+
linkHoverStyles: {
|
|
2823
|
+
opacity: l
|
|
2824
|
+
}
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
}, [e, r, t, o, s]);
|
|
2828
|
+
}, Bs = mt({
|
|
2829
|
+
isMobile: !1,
|
|
2830
|
+
setOpen: () => {
|
|
2831
|
+
}
|
|
2832
|
+
}), Nn = ({
|
|
2833
|
+
mobile: e,
|
|
2834
|
+
desktop: r,
|
|
2835
|
+
breakpoints: t,
|
|
2836
|
+
children: o,
|
|
2837
|
+
className: s,
|
|
2838
|
+
style: n,
|
|
2839
|
+
navProps: a,
|
|
2840
|
+
disableMobileTreatment: l = !1
|
|
2841
|
+
}) => {
|
|
2842
|
+
const [f, u] = ye(!1), d = Ee(null), h = T(), y = { ...h.breakpoints, ...t }, { maxWidth: V, unit: w } = $e(y.md), { maxWidth: g, unit: k } = $e(y.sm), E = ce(`(max-width: ${V}${w})`), _ = ce(`(max-width: ${g}${k})`), z = l ? !1 : E, $ = l ? !1 : _, { navStyles: A, linkActiveStyles: R, linkHoverStyles: H } = Ns({
|
|
2843
|
+
isMobile: z,
|
|
2844
|
+
isCompact: $,
|
|
2845
|
+
mobile: e,
|
|
2846
|
+
desktop: r
|
|
2847
|
+
}), Q = {
|
|
2848
|
+
...A,
|
|
2849
|
+
// Mobile active state colors
|
|
2850
|
+
...R.backgroundColor && {
|
|
2851
|
+
"--mobile-active-bg": R.backgroundColor
|
|
2852
|
+
},
|
|
2853
|
+
...R.color && { "--mobile-active-color": R.color },
|
|
2854
|
+
// Desktop hover opacity
|
|
2855
|
+
...H.opacity !== void 0 && {
|
|
2856
|
+
"--desktop-hover-opacity": H.opacity
|
|
2857
|
+
}
|
|
2858
|
+
}, P = (L) => {
|
|
2859
|
+
const I = L.target;
|
|
2860
|
+
I.closest("[data-navitem-trigger]") || I.closest("a, button") && u(!1);
|
|
2861
|
+
}, K = [
|
|
2862
|
+
we.nav,
|
|
2863
|
+
we.navMobile,
|
|
2864
|
+
$ || e != null && e.compact ? we.compact : "",
|
|
2865
|
+
s
|
|
2866
|
+
].filter(Boolean).join(" "), J = [we.nav, we.navDesktop, s].filter(Boolean).join(" "), N = (e == null ? void 0 : e.content) || o, B = (r == null ? void 0 : r.content) || o;
|
|
2867
|
+
return /* @__PURE__ */ p(Bs.Provider, { value: { isMobile: z, setOpen: u }, children: /* @__PURE__ */ p(pe, { children: z ? (
|
|
2868
|
+
// Mobile: Hamburger as trigger for a full-screen Popover panel.
|
|
2869
|
+
// Popover handles scroll lock, Escape key, backdrop, and slide animation.
|
|
2870
|
+
// When open, a z-index is applied to the hamburger wrapper so it stays above the
|
|
2871
|
+
// panel overlay — without setting z-index on the global triggerWrapper (which would
|
|
2872
|
+
// cause NavItem panel dropdowns to appear behind their own triggers).
|
|
2873
|
+
/* @__PURE__ */ p(
|
|
2874
|
+
kr,
|
|
2875
|
+
{
|
|
2876
|
+
variant: "panel",
|
|
2877
|
+
side: "right",
|
|
2878
|
+
panelWidth: "100%",
|
|
2879
|
+
isOpen: f,
|
|
2880
|
+
onOpenChange: u,
|
|
2881
|
+
hideCloseButton: !0,
|
|
2882
|
+
style: { padding: 0, backgroundColor: A.backgroundColor },
|
|
2883
|
+
trigger: ({ isOpen: L }) => /* @__PURE__ */ p("div", { style: L ? { position: "relative", zIndex: 1001 } : void 0, children: /* @__PURE__ */ p(
|
|
2884
|
+
fs,
|
|
2885
|
+
{
|
|
2886
|
+
hamburgerRef: d,
|
|
2887
|
+
visible: !0,
|
|
2888
|
+
compact: $,
|
|
2889
|
+
open: L,
|
|
2890
|
+
setOpen: (I) => u(I),
|
|
2891
|
+
color: L ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || h.colors.secondary : void 0,
|
|
2892
|
+
...e == null ? void 0 : e.hamburgerProps
|
|
2893
|
+
}
|
|
2894
|
+
) }),
|
|
2895
|
+
children: /* @__PURE__ */ U(
|
|
2896
|
+
"nav",
|
|
2897
|
+
{
|
|
2898
|
+
...a,
|
|
2899
|
+
className: K,
|
|
2900
|
+
style: { ...Q, ...n },
|
|
2901
|
+
onClickCapture: P,
|
|
2902
|
+
children: [
|
|
2903
|
+
/* @__PURE__ */ p("div", { className: we.navHeader }),
|
|
2904
|
+
typeof N == "function" ? N({ setOpen: u }) : N
|
|
2905
|
+
]
|
|
2906
|
+
}
|
|
2907
|
+
)
|
|
2908
|
+
}
|
|
2909
|
+
)
|
|
2910
|
+
) : (
|
|
2911
|
+
// Desktop: standard horizontal nav
|
|
2912
|
+
/* @__PURE__ */ p(
|
|
2913
|
+
"nav",
|
|
2914
|
+
{
|
|
2915
|
+
...a,
|
|
2916
|
+
className: J,
|
|
2917
|
+
style: { ...Q, ...n },
|
|
2918
|
+
children: typeof B == "function" ? B({ setOpen: u }) : B
|
|
2919
|
+
}
|
|
2920
|
+
)
|
|
2921
|
+
) }) });
|
|
2922
|
+
}, Ls = "NavItem-module__trigger___og97w", Ps = "NavItem-module__triggerOpen___7lIFg", Rs = "NavItem-module__chevron___awf4c", Os = "NavItem-module__chevronOpen___ZtUGj", De = {
|
|
2923
|
+
trigger: Ls,
|
|
2924
|
+
triggerOpen: Ps,
|
|
2925
|
+
chevron: Rs,
|
|
2926
|
+
chevronOpen: Os
|
|
2920
2927
|
}, Bn = ({
|
|
2921
2928
|
label: e,
|
|
2922
2929
|
children: r,
|
|
@@ -2928,9 +2935,9 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2928
2935
|
style: l,
|
|
2929
2936
|
buttonProps: f
|
|
2930
2937
|
}) => {
|
|
2931
|
-
const u =
|
|
2932
|
-
return /* @__PURE__ */
|
|
2933
|
-
|
|
2938
|
+
const u = T(), d = n || u.fonts.color;
|
|
2939
|
+
return /* @__PURE__ */ p(
|
|
2940
|
+
kr,
|
|
2934
2941
|
{
|
|
2935
2942
|
variant: t,
|
|
2936
2943
|
side: o,
|
|
@@ -2939,19 +2946,19 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2939
2946
|
"button",
|
|
2940
2947
|
{
|
|
2941
2948
|
type: "button",
|
|
2942
|
-
className: [
|
|
2949
|
+
className: [De.trigger, y ? De.triggerOpen : "", a].filter(Boolean).join(" "),
|
|
2943
2950
|
style: { color: d, ...l },
|
|
2944
2951
|
"data-navitem-trigger": !0,
|
|
2945
2952
|
onClick: h,
|
|
2946
2953
|
...f,
|
|
2947
2954
|
children: [
|
|
2948
2955
|
e,
|
|
2949
|
-
/* @__PURE__ */
|
|
2956
|
+
/* @__PURE__ */ p(
|
|
2950
2957
|
"span",
|
|
2951
2958
|
{
|
|
2952
|
-
className: [
|
|
2959
|
+
className: [De.chevron, y ? De.chevronOpen : ""].filter(Boolean).join(" "),
|
|
2953
2960
|
"aria-hidden": "true",
|
|
2954
|
-
children: /* @__PURE__ */
|
|
2961
|
+
children: /* @__PURE__ */ p(
|
|
2955
2962
|
"svg",
|
|
2956
2963
|
{
|
|
2957
2964
|
width: "12",
|
|
@@ -2959,7 +2966,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2959
2966
|
viewBox: "0 0 12 12",
|
|
2960
2967
|
fill: "none",
|
|
2961
2968
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2962
|
-
children: /* @__PURE__ */
|
|
2969
|
+
children: /* @__PURE__ */ p(
|
|
2963
2970
|
"path",
|
|
2964
2971
|
{
|
|
2965
2972
|
d: "M2 4L6 8L10 4",
|
|
@@ -2991,7 +2998,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
2991
2998
|
// Element-specific props
|
|
2992
2999
|
divProps: n
|
|
2993
3000
|
}) => {
|
|
2994
|
-
const a =
|
|
3001
|
+
const a = T(), l = e || a.colors.primary, f = r || a.colors.secondary, u = /* @__PURE__ */ p(
|
|
2995
3002
|
"div",
|
|
2996
3003
|
{
|
|
2997
3004
|
...t ? void 0 : n,
|
|
@@ -3012,14 +3019,14 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3012
3019
|
}
|
|
3013
3020
|
), d = /* @__PURE__ */ U(pe, { children: [
|
|
3014
3021
|
u,
|
|
3015
|
-
/* @__PURE__ */
|
|
3022
|
+
/* @__PURE__ */ p("style", { children: `
|
|
3016
3023
|
@keyframes spin {
|
|
3017
3024
|
0% { transform: rotate(0deg); }
|
|
3018
3025
|
100% { transform: rotate(360deg); }
|
|
3019
3026
|
}
|
|
3020
3027
|
` })
|
|
3021
3028
|
] });
|
|
3022
|
-
return t ? /* @__PURE__ */
|
|
3029
|
+
return t ? /* @__PURE__ */ p(
|
|
3023
3030
|
"div",
|
|
3024
3031
|
{
|
|
3025
3032
|
...n,
|
|
@@ -3036,26 +3043,26 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3036
3043
|
children: d
|
|
3037
3044
|
}
|
|
3038
3045
|
) : d;
|
|
3039
|
-
},
|
|
3046
|
+
}, Ln = ({ children: e, loadingComponent: r }) => {
|
|
3040
3047
|
const [t, o] = ye(!1);
|
|
3041
|
-
return
|
|
3048
|
+
return de(() => {
|
|
3042
3049
|
requestAnimationFrame(() => {
|
|
3043
3050
|
o(!0);
|
|
3044
3051
|
});
|
|
3045
|
-
}, []), t ? /* @__PURE__ */
|
|
3046
|
-
},
|
|
3047
|
-
backdrop:
|
|
3048
|
-
modal:
|
|
3052
|
+
}, []), t ? /* @__PURE__ */ p(pe, { children: e }) : r || /* @__PURE__ */ p(Ms, {});
|
|
3053
|
+
}, Ds = "Modal-module__backdrop___GVUh4", Hs = "Modal-module__modal___aD7aP", js = "Modal-module__header___ILG9i", Ts = "Modal-module__title___A5OeE", Is = "Modal-module__closeButton___3LpSf", Ws = "Modal-module__content___dWO-B", Us = "Modal-module__actions___hY6zi", ge = {
|
|
3054
|
+
backdrop: Ds,
|
|
3055
|
+
modal: Hs,
|
|
3049
3056
|
header: js,
|
|
3050
|
-
title:
|
|
3051
|
-
closeButton:
|
|
3052
|
-
content:
|
|
3053
|
-
actions:
|
|
3054
|
-
},
|
|
3055
|
-
stack:
|
|
3056
|
-
vertical:
|
|
3057
|
-
horizontal:
|
|
3058
|
-
},
|
|
3057
|
+
title: Ts,
|
|
3058
|
+
closeButton: Is,
|
|
3059
|
+
content: Ws,
|
|
3060
|
+
actions: Us
|
|
3061
|
+
}, qs = "Stack-module__stack___yUU-B", Gs = "Stack-module__vertical___sKTyQ", Zs = "Stack-module__horizontal___YsvtV", st = {
|
|
3062
|
+
stack: qs,
|
|
3063
|
+
vertical: Gs,
|
|
3064
|
+
horizontal: Zs
|
|
3065
|
+
}, Qs = ({
|
|
3059
3066
|
// Layout props
|
|
3060
3067
|
direction: e = "row",
|
|
3061
3068
|
// Content
|
|
@@ -3071,8 +3078,8 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3071
3078
|
e === "column" ? st.vertical : st.horizontal,
|
|
3072
3079
|
t
|
|
3073
3080
|
].filter(Boolean).join(" ");
|
|
3074
|
-
return /* @__PURE__ */
|
|
3075
|
-
},
|
|
3081
|
+
return /* @__PURE__ */ p("div", { ...s, className: n, style: o, children: r });
|
|
3082
|
+
}, Ks = ({
|
|
3076
3083
|
isOpen: e,
|
|
3077
3084
|
onClose: r,
|
|
3078
3085
|
children: t,
|
|
@@ -3090,44 +3097,44 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3090
3097
|
style: w,
|
|
3091
3098
|
divProps: g
|
|
3092
3099
|
}) => {
|
|
3093
|
-
const
|
|
3094
|
-
|
|
3100
|
+
const k = T(), E = Ee(null), _ = Ee(null), { maxWidth: z } = $e(k.breakpoints.md), $ = ce(`(max-width: ${z - 1}px)`);
|
|
3101
|
+
de(() => {
|
|
3095
3102
|
if (e)
|
|
3096
|
-
return _.current = document.activeElement, document.body.style.overflow = "hidden",
|
|
3103
|
+
return _.current = document.activeElement, document.body.style.overflow = "hidden", E.current && E.current.focus(), () => {
|
|
3097
3104
|
document.body.style.overflow = "", _.current && _.current.focus();
|
|
3098
3105
|
};
|
|
3099
|
-
}, [e]),
|
|
3106
|
+
}, [e]), de(() => {
|
|
3100
3107
|
if (!e || !a) return;
|
|
3101
|
-
const
|
|
3102
|
-
|
|
3108
|
+
const P = (K) => {
|
|
3109
|
+
K.key === "Escape" && r();
|
|
3103
3110
|
};
|
|
3104
|
-
return document.addEventListener("keydown",
|
|
3111
|
+
return document.addEventListener("keydown", P), () => document.removeEventListener("keydown", P);
|
|
3105
3112
|
}, [e, a, r]);
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3113
|
+
const A = (P) => {
|
|
3114
|
+
P.target === P.currentTarget && n && r();
|
|
3108
3115
|
};
|
|
3109
3116
|
if (!e) return null;
|
|
3110
|
-
const
|
|
3117
|
+
const R = {
|
|
3111
3118
|
width: u,
|
|
3112
3119
|
maxWidth: d,
|
|
3113
|
-
backgroundColor: h ||
|
|
3114
|
-
borderRadius:
|
|
3120
|
+
backgroundColor: h || k.colors.secondary,
|
|
3121
|
+
borderRadius: k.border.radius,
|
|
3115
3122
|
...w
|
|
3116
|
-
},
|
|
3123
|
+
}, H = {
|
|
3117
3124
|
backgroundColor: y
|
|
3118
|
-
},
|
|
3125
|
+
}, Q = /* @__PURE__ */ p(
|
|
3119
3126
|
"div",
|
|
3120
3127
|
{
|
|
3121
3128
|
className: ge.backdrop,
|
|
3122
|
-
style:
|
|
3123
|
-
onClick:
|
|
3129
|
+
style: H,
|
|
3130
|
+
onClick: A,
|
|
3124
3131
|
role: "presentation",
|
|
3125
3132
|
children: /* @__PURE__ */ U(
|
|
3126
3133
|
"div",
|
|
3127
3134
|
{
|
|
3128
|
-
ref:
|
|
3135
|
+
ref: E,
|
|
3129
3136
|
className: [ge.modal, V].filter(Boolean).join(" "),
|
|
3130
|
-
style:
|
|
3137
|
+
style: R,
|
|
3131
3138
|
role: "dialog",
|
|
3132
3139
|
"aria-modal": "true",
|
|
3133
3140
|
"aria-labelledby": o ? "modal-title" : void 0,
|
|
@@ -3135,15 +3142,15 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3135
3142
|
...g,
|
|
3136
3143
|
children: [
|
|
3137
3144
|
/* @__PURE__ */ U("div", { className: ge.header, children: [
|
|
3138
|
-
o && /* @__PURE__ */
|
|
3139
|
-
!s && /* @__PURE__ */
|
|
3145
|
+
o && /* @__PURE__ */ p("h2", { id: "modal-title", className: ge.title, children: o }),
|
|
3146
|
+
!s && /* @__PURE__ */ p(
|
|
3140
3147
|
"button",
|
|
3141
3148
|
{
|
|
3142
3149
|
className: ge.closeButton,
|
|
3143
3150
|
onClick: r,
|
|
3144
3151
|
"aria-label": "Close modal",
|
|
3145
3152
|
type: "button",
|
|
3146
|
-
children: /* @__PURE__ */
|
|
3153
|
+
children: /* @__PURE__ */ p(
|
|
3147
3154
|
"svg",
|
|
3148
3155
|
{
|
|
3149
3156
|
width: "100%",
|
|
@@ -3152,7 +3159,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3152
3159
|
fill: "none",
|
|
3153
3160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3154
3161
|
"aria-hidden": "true",
|
|
3155
|
-
children: /* @__PURE__ */
|
|
3162
|
+
children: /* @__PURE__ */ p(
|
|
3156
3163
|
"path",
|
|
3157
3164
|
{
|
|
3158
3165
|
d: "M15 5L5 15M5 5L15 15",
|
|
@@ -3167,28 +3174,28 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3167
3174
|
}
|
|
3168
3175
|
)
|
|
3169
3176
|
] }),
|
|
3170
|
-
/* @__PURE__ */
|
|
3171
|
-
l.length > 0 && /* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ p("div", { className: ge.content, children: t }),
|
|
3178
|
+
l.length > 0 && /* @__PURE__ */ p(Qs, { direction: $ ? "column" : "row", className: ge.actions, children: l.map((P, K) => /* @__PURE__ */ p(
|
|
3172
3179
|
Tr,
|
|
3173
3180
|
{
|
|
3174
|
-
color:
|
|
3175
|
-
outline:
|
|
3176
|
-
disabled:
|
|
3181
|
+
color: P.color,
|
|
3182
|
+
outline: P.variant === "outline",
|
|
3183
|
+
disabled: P.disabled,
|
|
3177
3184
|
onClick: () => {
|
|
3178
|
-
|
|
3185
|
+
P.onClick ? P.onClick(f || r) : f ? f(P.value) : r();
|
|
3179
3186
|
},
|
|
3180
|
-
children:
|
|
3187
|
+
children: P.label
|
|
3181
3188
|
},
|
|
3182
|
-
|
|
3189
|
+
K
|
|
3183
3190
|
)) })
|
|
3184
3191
|
]
|
|
3185
3192
|
}
|
|
3186
3193
|
)
|
|
3187
3194
|
}
|
|
3188
3195
|
);
|
|
3189
|
-
return at(
|
|
3190
|
-
}, xr = mt(null),
|
|
3191
|
-
const [r, t] = ye(null), o =
|
|
3196
|
+
return at(Q, document.body);
|
|
3197
|
+
}, xr = mt(null), Pn = ({ children: e }) => {
|
|
3198
|
+
const [r, t] = ye(null), o = x.useCallback((u) => new Promise((d, h) => {
|
|
3192
3199
|
const y = Math.random().toString(36).substr(2, 9);
|
|
3193
3200
|
t({
|
|
3194
3201
|
id: y,
|
|
@@ -3199,9 +3206,9 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3199
3206
|
resolve: d,
|
|
3200
3207
|
reject: h
|
|
3201
3208
|
});
|
|
3202
|
-
}), []), s =
|
|
3209
|
+
}), []), s = x.useCallback((u) => {
|
|
3203
3210
|
t((d) => (d && d.resolve(u), null));
|
|
3204
|
-
}, []), n =
|
|
3211
|
+
}, []), n = x.useCallback(
|
|
3205
3212
|
(u) => o({
|
|
3206
3213
|
title: u.title || "Confirm",
|
|
3207
3214
|
content: u.message,
|
|
@@ -3220,7 +3227,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3220
3227
|
options: u.options
|
|
3221
3228
|
}),
|
|
3222
3229
|
[o]
|
|
3223
|
-
), a =
|
|
3230
|
+
), a = x.useCallback(
|
|
3224
3231
|
(u) => o({
|
|
3225
3232
|
title: u.title || "Alert",
|
|
3226
3233
|
content: u.message,
|
|
@@ -3234,9 +3241,9 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3234
3241
|
options: u.options
|
|
3235
3242
|
}),
|
|
3236
3243
|
[o]
|
|
3237
|
-
), l =
|
|
3244
|
+
), l = x.useCallback(() => {
|
|
3238
3245
|
s();
|
|
3239
|
-
}, [s]), f =
|
|
3246
|
+
}, [s]), f = x.useMemo(
|
|
3240
3247
|
() => ({
|
|
3241
3248
|
show: o,
|
|
3242
3249
|
resolve: s,
|
|
@@ -3247,8 +3254,8 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3247
3254
|
);
|
|
3248
3255
|
return /* @__PURE__ */ U(xr.Provider, { value: f, children: [
|
|
3249
3256
|
e,
|
|
3250
|
-
r && /* @__PURE__ */
|
|
3251
|
-
|
|
3257
|
+
r && /* @__PURE__ */ p(
|
|
3258
|
+
Ks,
|
|
3252
3259
|
{
|
|
3253
3260
|
isOpen: !0,
|
|
3254
3261
|
onClose: l,
|
|
@@ -3260,7 +3267,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3260
3267
|
}
|
|
3261
3268
|
)
|
|
3262
3269
|
] });
|
|
3263
|
-
},
|
|
3270
|
+
}, Rn = () => {
|
|
3264
3271
|
const e = er(xr);
|
|
3265
3272
|
if (!e)
|
|
3266
3273
|
throw new Error("useModal must be used within a ModalProvider");
|
|
@@ -3268,7 +3275,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3268
3275
|
}, Js = "ResponsiveSection-module__section___gBESK", Xs = "ResponsiveSection-module__innerDiv___r1bky", Kt = {
|
|
3269
3276
|
section: Js,
|
|
3270
3277
|
innerDiv: Xs
|
|
3271
|
-
},
|
|
3278
|
+
}, Fr = ({
|
|
3272
3279
|
// Color props
|
|
3273
3280
|
backgroundColor: e,
|
|
3274
3281
|
color: r,
|
|
@@ -3290,25 +3297,25 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3290
3297
|
// Element-specific props
|
|
3291
3298
|
sectionProps: w
|
|
3292
3299
|
}) => {
|
|
3293
|
-
const g =
|
|
3300
|
+
const g = T(), k = ce(`(min-width: ${g.breakpoints.sm})`), E = {
|
|
3294
3301
|
backgroundColor: e,
|
|
3295
3302
|
color: r || g.fonts.color,
|
|
3296
3303
|
margin: f,
|
|
3297
3304
|
...V
|
|
3298
3305
|
// Top level style prop overrides
|
|
3299
|
-
}, _ = `calc(${g.fonts.rhythm} * ${d})`,
|
|
3306
|
+
}, _ = `calc(${g.fonts.rhythm} * ${d})`, z = k ? a || g.layout.padding : l || g.layout.paddingSm, $ = {
|
|
3300
3307
|
"--max-width": t || g.layout.maxWidth,
|
|
3301
3308
|
"--min-width": o,
|
|
3302
3309
|
"--width": s,
|
|
3303
3310
|
"--height": n,
|
|
3304
|
-
"--section-padding": `${_} ${
|
|
3311
|
+
"--section-padding": `${_} ${z}`,
|
|
3305
3312
|
"--gap": u
|
|
3306
|
-
},
|
|
3307
|
-
return /* @__PURE__ */
|
|
3308
|
-
},
|
|
3309
|
-
hero:
|
|
3310
|
-
content:
|
|
3311
|
-
},
|
|
3313
|
+
}, A = [Kt.section, y].filter(Boolean).join(" ");
|
|
3314
|
+
return /* @__PURE__ */ p("section", { ...w, className: A, style: E, children: /* @__PURE__ */ p("div", { className: Kt.innerDiv, style: $, children: h }) });
|
|
3315
|
+
}, Ys = "Hero-module__hero___IB2tg", en = "Hero-module__content___rkkfQ", Jt = {
|
|
3316
|
+
hero: Ys,
|
|
3317
|
+
content: en
|
|
3318
|
+
}, tn = ({
|
|
3312
3319
|
isMd: e = !1,
|
|
3313
3320
|
isLg: r = !1,
|
|
3314
3321
|
theme: t
|
|
@@ -3321,7 +3328,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3321
3328
|
"--hero-p-font-size": a,
|
|
3322
3329
|
"--hero-h1-margin-bottom": `calc(${o} * 0.7)`
|
|
3323
3330
|
};
|
|
3324
|
-
}, [e, r, t.fonts]),
|
|
3331
|
+
}, [e, r, t.fonts]), On = ({
|
|
3325
3332
|
// Color props
|
|
3326
3333
|
color: e,
|
|
3327
3334
|
// Layout props
|
|
@@ -3333,21 +3340,21 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3333
3340
|
style: s,
|
|
3334
3341
|
...n
|
|
3335
3342
|
}) => {
|
|
3336
|
-
const a =
|
|
3337
|
-
return /* @__PURE__ */
|
|
3338
|
-
|
|
3343
|
+
const a = T(), l = [Jt.hero, o].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, u = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = ce(`(min-width: ${f})`), h = ce(`(min-width: ${u})`), y = tn({ isMd: d, isLg: h, theme: a });
|
|
3344
|
+
return /* @__PURE__ */ p(
|
|
3345
|
+
Fr,
|
|
3339
3346
|
{
|
|
3340
3347
|
className: l,
|
|
3341
3348
|
color: e || a.fonts.color,
|
|
3342
3349
|
style: { ...y, ...s },
|
|
3343
3350
|
...n,
|
|
3344
|
-
children: /* @__PURE__ */
|
|
3351
|
+
children: /* @__PURE__ */ p("div", { className: Jt.content, children: t })
|
|
3345
3352
|
}
|
|
3346
3353
|
);
|
|
3347
|
-
},
|
|
3348
|
-
footer:
|
|
3349
|
-
container:
|
|
3350
|
-
},
|
|
3354
|
+
}, rn = "Footer-module__footer___A76NF", on = "Footer-module__container___QneNs", Xt = {
|
|
3355
|
+
footer: rn,
|
|
3356
|
+
container: on
|
|
3357
|
+
}, sn = ({
|
|
3351
3358
|
isSmallScreen: e = !1,
|
|
3352
3359
|
maxWidth: r,
|
|
3353
3360
|
minWidth: t,
|
|
@@ -3360,7 +3367,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3360
3367
|
backgroundColor: u,
|
|
3361
3368
|
color: d
|
|
3362
3369
|
} = {}) => {
|
|
3363
|
-
const h =
|
|
3370
|
+
const h = T();
|
|
3364
3371
|
return {
|
|
3365
3372
|
maxWidth: r || h.layout.maxWidth,
|
|
3366
3373
|
minWidth: t,
|
|
@@ -3372,7 +3379,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3372
3379
|
backgroundColor: u,
|
|
3373
3380
|
color: d || h.fonts.color
|
|
3374
3381
|
};
|
|
3375
|
-
},
|
|
3382
|
+
}, nn = ({
|
|
3376
3383
|
// Color props
|
|
3377
3384
|
backgroundColor: e,
|
|
3378
3385
|
color: r,
|
|
@@ -3394,8 +3401,8 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3394
3401
|
// Element-specific props
|
|
3395
3402
|
footerProps: w
|
|
3396
3403
|
}) => {
|
|
3397
|
-
const g =
|
|
3398
|
-
isSmallScreen:
|
|
3404
|
+
const g = T(), k = d || g.breakpoints.sm, { maxWidth: E, unit: _ } = $e(k), z = ce(`(max-width: ${E}${_})`), $ = sn({
|
|
3405
|
+
isSmallScreen: z,
|
|
3399
3406
|
maxWidth: t,
|
|
3400
3407
|
minWidth: o,
|
|
3401
3408
|
width: s,
|
|
@@ -3406,14 +3413,14 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3406
3413
|
gap: u,
|
|
3407
3414
|
backgroundColor: e,
|
|
3408
3415
|
color: r
|
|
3409
|
-
}),
|
|
3410
|
-
return /* @__PURE__ */
|
|
3411
|
-
},
|
|
3412
|
-
card:
|
|
3413
|
-
icon:
|
|
3414
|
-
title:
|
|
3415
|
-
content:
|
|
3416
|
-
},
|
|
3416
|
+
}), A = [Xt.container, y].filter(Boolean).join(" ");
|
|
3417
|
+
return /* @__PURE__ */ p("footer", { ...w, className: Xt.footer, children: /* @__PURE__ */ p("div", { className: A, style: { ...$, ...V }, children: h }) });
|
|
3418
|
+
}, an = "FeatureCard-module__card___XQt66", ln = "FeatureCard-module__icon___dXJ92", cn = "FeatureCard-module__title___KxXyA", un = "FeatureCard-module__content___68xkw", He = {
|
|
3419
|
+
card: an,
|
|
3420
|
+
icon: ln,
|
|
3421
|
+
title: cn,
|
|
3422
|
+
content: un
|
|
3423
|
+
}, dn = ({
|
|
3417
3424
|
isMd: e = !1,
|
|
3418
3425
|
theme: r
|
|
3419
3426
|
}) => We(() => {
|
|
@@ -3438,7 +3445,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3438
3445
|
// Element-specific props
|
|
3439
3446
|
divProps: a
|
|
3440
3447
|
}) => {
|
|
3441
|
-
const l =
|
|
3448
|
+
const l = T(), f = [He.card, s].filter(Boolean).join(" "), u = e || l.breakpoints.md, d = ce(`(min-width: ${u})`), h = dn({ isMd: d, theme: l });
|
|
3442
3449
|
return /* @__PURE__ */ U(
|
|
3443
3450
|
"div",
|
|
3444
3451
|
{
|
|
@@ -3446,16 +3453,16 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3446
3453
|
className: f,
|
|
3447
3454
|
style: { ...h, ...n },
|
|
3448
3455
|
children: [
|
|
3449
|
-
r && /* @__PURE__ */
|
|
3450
|
-
/* @__PURE__ */
|
|
3451
|
-
/* @__PURE__ */
|
|
3456
|
+
r && /* @__PURE__ */ p("div", { className: He.icon, children: r }),
|
|
3457
|
+
/* @__PURE__ */ p("h3", { className: He.title, children: t }),
|
|
3458
|
+
/* @__PURE__ */ p("div", { className: He.content, children: o })
|
|
3452
3459
|
]
|
|
3453
3460
|
}
|
|
3454
3461
|
);
|
|
3455
|
-
},
|
|
3456
|
-
section:
|
|
3457
|
-
grid:
|
|
3458
|
-
},
|
|
3462
|
+
}, fn = "FeatureGridSection-module__section___wZrbC", mn = "FeatureGridSection-module__grid___iwPJv", Yt = {
|
|
3463
|
+
section: fn,
|
|
3464
|
+
grid: mn
|
|
3465
|
+
}, yn = ({
|
|
3459
3466
|
columns: e,
|
|
3460
3467
|
isMd: r = !1,
|
|
3461
3468
|
isLg: t = !1
|
|
@@ -3470,7 +3477,7 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3470
3477
|
}[e]
|
|
3471
3478
|
} : {
|
|
3472
3479
|
"--grid-template-columns": "1fr"
|
|
3473
|
-
}, [e, r, t]),
|
|
3480
|
+
}, [e, r, t]), Dn = ({
|
|
3474
3481
|
// Layout props
|
|
3475
3482
|
columns: e = 3,
|
|
3476
3483
|
breakpoints: r,
|
|
@@ -3482,19 +3489,19 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3482
3489
|
style: n,
|
|
3483
3490
|
...a
|
|
3484
3491
|
}) => {
|
|
3485
|
-
const l =
|
|
3492
|
+
const l = T(), f = [Yt.section, s].filter(Boolean).join(" "), u = (r == null ? void 0 : r.md) || l.breakpoints.md, d = (r == null ? void 0 : r.lg) || l.breakpoints.lg, h = ce(`(min-width: ${u})`), y = ce(`(min-width: ${d})`), V = yn({ columns: e, isMd: h, isLg: y }), w = {
|
|
3486
3493
|
"--section-padding-vertical": `calc(${l.fonts.rhythm} * 2)`
|
|
3487
3494
|
}, g = {
|
|
3488
3495
|
...V,
|
|
3489
3496
|
gap: t,
|
|
3490
3497
|
...n
|
|
3491
3498
|
};
|
|
3492
|
-
return /* @__PURE__ */
|
|
3493
|
-
},
|
|
3494
|
-
layoutContainer:
|
|
3495
|
-
content:
|
|
3496
|
-
main:
|
|
3497
|
-
},
|
|
3499
|
+
return /* @__PURE__ */ p(Fr, { className: f, style: w, ...a, children: /* @__PURE__ */ p("div", { className: Yt.grid, style: g, children: o }) });
|
|
3500
|
+
}, hn = "PageLayout-module__layoutContainer___diLdT", gn = "PageLayout-module__content___h2mBr", _n = "PageLayout-module__main___Sw7Pv", nt = {
|
|
3501
|
+
layoutContainer: hn,
|
|
3502
|
+
content: gn,
|
|
3503
|
+
main: _n
|
|
3504
|
+
}, Hn = ({
|
|
3498
3505
|
// Content
|
|
3499
3506
|
header: e,
|
|
3500
3507
|
footer: r,
|
|
@@ -3511,53 +3518,53 @@ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line__
|
|
|
3511
3518
|
const u = [nt.layoutContainer, o].filter(Boolean).join(" ");
|
|
3512
3519
|
return /* @__PURE__ */ U("div", { ...l, className: u, style: s, children: [
|
|
3513
3520
|
/* @__PURE__ */ U("div", { className: nt.content, children: [
|
|
3514
|
-
e && /* @__PURE__ */
|
|
3515
|
-
/* @__PURE__ */
|
|
3521
|
+
e && /* @__PURE__ */ p(gs, { ...n, children: e }),
|
|
3522
|
+
/* @__PURE__ */ p("main", { ...f, className: nt.main, children: t })
|
|
3516
3523
|
] }),
|
|
3517
|
-
r && /* @__PURE__ */
|
|
3524
|
+
r && /* @__PURE__ */ p(nn, { ...a, children: r })
|
|
3518
3525
|
] });
|
|
3519
3526
|
};
|
|
3520
3527
|
export {
|
|
3521
3528
|
Tr as Button,
|
|
3522
|
-
|
|
3529
|
+
Cn as CSSReset,
|
|
3523
3530
|
lt as Checkbox,
|
|
3524
3531
|
Mn as FeatureCard,
|
|
3525
|
-
|
|
3526
|
-
|
|
3532
|
+
Dn as FeatureGridSection,
|
|
3533
|
+
nn as Footer,
|
|
3527
3534
|
kn as Form,
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3535
|
+
zn as FormCheckbox,
|
|
3536
|
+
An as FormCheckboxGroup,
|
|
3537
|
+
Ro as FormError,
|
|
3531
3538
|
ve as FormField,
|
|
3532
3539
|
To as FormGroup,
|
|
3533
|
-
|
|
3540
|
+
xn as FormInput,
|
|
3534
3541
|
yt as FormLabel,
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3542
|
+
En as FormRadio,
|
|
3543
|
+
$n as FormRadioGroup,
|
|
3544
|
+
Vn as FormSelect,
|
|
3545
|
+
Fn as FormTextarea,
|
|
3546
|
+
fs as Hamburger,
|
|
3547
|
+
gs as Header,
|
|
3548
|
+
On as Hero,
|
|
3549
|
+
Go as Input,
|
|
3543
3550
|
Ms as LoadingSpinner,
|
|
3544
|
-
|
|
3545
|
-
|
|
3551
|
+
Ks as Modal,
|
|
3552
|
+
Pn as ModalProvider,
|
|
3546
3553
|
Bn as NavItem,
|
|
3547
|
-
|
|
3548
|
-
|
|
3554
|
+
Hn as PageLayout,
|
|
3555
|
+
kr as Popover,
|
|
3549
3556
|
Cr as Radio,
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3557
|
+
Nn as ResponsiveNav,
|
|
3558
|
+
Bs as ResponsiveNavContext,
|
|
3559
|
+
Fr as ResponsiveSection,
|
|
3560
|
+
os as Select,
|
|
3561
|
+
Qs as Stack,
|
|
3562
|
+
Ln as StyleLoader,
|
|
3563
|
+
Xo as Textarea,
|
|
3564
|
+
wn as ThemeProvider,
|
|
3558
3565
|
$e as parseBreakpoint,
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3566
|
+
No as useFormContext,
|
|
3567
|
+
ce as useMediaQuery,
|
|
3568
|
+
Rn as useModal,
|
|
3569
|
+
T as useTheme
|
|
3563
3570
|
};
|