digital-rabbit-cl 2.4.10 → 2.4.12
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/CSSReset/CSSReset.d.ts.map +1 -1
- package/dist/components/FeatureGrid/FeatureGrid.d.ts +13 -0
- package/dist/components/FeatureGrid/FeatureGrid.d.ts.map +1 -0
- package/dist/components/FeatureGrid/index.d.ts +3 -0
- package/dist/components/FeatureGrid/index.d.ts.map +1 -0
- package/dist/components/FeatureGrid/useFeatureGridStyles.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +757 -736
- package/dist/digital-rabbit-cl.umd.js +22 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/theme/ThemeContext.d.ts +1 -0
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +0 -10
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +0 -1
- package/dist/components/FeatureGridSection/index.d.ts +0 -3
- package/dist/components/FeatureGridSection/index.d.ts.map +0 -1
- package/dist/components/FeatureGridSection/useFeatureGridStyles.d.ts.map +0 -1
- /package/dist/components/{FeatureGridSection → FeatureGrid}/useFeatureGridStyles.d.ts +0 -0
|
@@ -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);overflow-wrap:break-word}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;overflow-wrap:break-word}.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__navMobile___h795P{flex-direction:column;min-height:100%;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__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.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}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{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}.Stack-module__vertical___sKTyQ{flex-direction:column}.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__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.MediaCard-module__card___9pZ7C{display:flex;overflow:hidden}.MediaCard-module__clickable___Rae9n{cursor:pointer;transition:opacity .15s ease}.MediaCard-module__clickable___Rae9n:hover{opacity:.85}.MediaCard-module__vertical___GWtOA{flex-direction:column}.MediaCard-module__vertical___GWtOA .MediaCard-module__imageWrapper___HUiag{width:100%}.MediaCard-module__horizontal___qlK4y{flex-direction:row;align-items:var(--media-card-align-items, center)}.MediaCard-module__horizontal___qlK4y .MediaCard-module__imageWrapper___HUiag{width:var(--media-card-image-width, 7em);flex-shrink:0;padding-top:var(--media-card-image-padding-top, 0)}.MediaCard-module__content___MlqE4{flex:1;min-width:0}.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}.FileUpload-module__dropzone___jqua0{border-style:dashed;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative;text-align:center;transition:opacity .15s ease,background-color .15s ease;width:100%}.FileUpload-module__dropzone___jqua0:hover:not(.FileUpload-module__loading___C7PsH){background-color:#00000008}.FileUpload-module__dropzone___jqua0:focus-visible{outline:2px solid var(--upload-color, currentColor);outline-offset:2px}.FileUpload-module__dragOver___q1zPo{background-color:#0000000f}.FileUpload-module__loading___C7PsH{cursor:not-allowed;opacity:.6}.FileUpload-module__hiddenInput___RLLPJ{display:none}.FileUpload-module__content___yCP0l{display:flex;flex-direction:column;align-items:center;gap:.35rem}.FileUpload-module__contentHidden___0Ewoe{visibility:hidden}.FileUpload-module__spinnerOverlay___e3Rle{position:absolute}.FileUpload-module__label___lbMkx{font-weight:600}.FileUpload-module__hint___8dXlk{font-size:.85em;opacity:.7}.FileUpload-module__errorMessage___8HB3n{font-size:.85em;font-weight:600;margin-top:.25rem}.Image-module__container___sVJdZ{position:relative;overflow:hidden;width:100%}.Image-module__img___pKhPw{width:100%;height:100%;object-fit:cover;display:block;position:absolute;top:0;right:0;bottom:0;left:0}.Image-module__fallback___wysuM{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}@keyframes Skeleton-module__pulse___8RWFn{0%,to{opacity:.4}50%{opacity:1}}.Skeleton-module__skeleton___CB4uF{background-color:var(--skeleton-color, color-mix(in srgb, currentColor 20%, transparent));animation:Skeleton-module__pulse___8RWFn 2s ease-in-out infinite;display:block;width:100%;height:100%}.ImageThumbnail-module__thumbnail___-igbe{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.ImageThumbnail-module__img___Q7Z4V{width:100%;height:100%;object-fit:cover;display:block}.ImageThumbnail-module__sizeXs___TvSHV{width:1.25em;height:1.25em}.ImageThumbnail-module__sizeSmall___2KnCh{width:3em;height:3em}.ImageThumbnail-module__sizeDefault___laoQk{width:4em;height:4em}.ImageThumbnail-module__sizeLarge___iwz3o{width:5em;height:5em}.ImageThumbnail-module__removeButton___Ceh1Q{position:absolute;top:.25rem;right:.25rem;width:1.1rem;height:1.1rem;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;opacity:.6;transition:opacity .15s ease}.ImageThumbnail-module__removeButton___Ceh1Q:hover{opacity:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { jsx as
|
|
3
|
-
import N, { createContext as ht, useContext as or, useState as J, useLayoutEffect as
|
|
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;--font-size-mobile: 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);overflow-wrap:break-word}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;overflow-wrap:break-word}.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__navMobile___h795P{flex-direction:column;min-height:100%;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__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.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}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{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}.Stack-module__vertical___sKTyQ{flex-direction:column}.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))}.FeatureGrid-module__grid___6sW6f{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.MediaCard-module__card___9pZ7C{display:flex;overflow:hidden}.MediaCard-module__clickable___Rae9n{cursor:pointer;transition:opacity .15s ease}.MediaCard-module__clickable___Rae9n:hover{opacity:.85}.MediaCard-module__vertical___GWtOA{flex-direction:column}.MediaCard-module__vertical___GWtOA .MediaCard-module__imageWrapper___HUiag{width:100%}.MediaCard-module__horizontal___qlK4y{flex-direction:row;align-items:var(--media-card-align-items, center)}.MediaCard-module__horizontal___qlK4y .MediaCard-module__imageWrapper___HUiag{width:var(--media-card-image-width, 7em);flex-shrink:0;padding-top:var(--media-card-image-padding-top, 0)}.MediaCard-module__content___MlqE4{flex:1;min-width:0}.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}.FileUpload-module__dropzone___jqua0{border-style:dashed;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative;text-align:center;transition:opacity .15s ease,background-color .15s ease;width:100%}.FileUpload-module__dropzone___jqua0:hover:not(.FileUpload-module__loading___C7PsH){background-color:#00000008}.FileUpload-module__dropzone___jqua0:focus-visible{outline:2px solid var(--upload-color, currentColor);outline-offset:2px}.FileUpload-module__dragOver___q1zPo{background-color:#0000000f}.FileUpload-module__loading___C7PsH{cursor:not-allowed;opacity:.6}.FileUpload-module__hiddenInput___RLLPJ{display:none}.FileUpload-module__content___yCP0l{display:flex;flex-direction:column;align-items:center;gap:.35rem}.FileUpload-module__contentHidden___0Ewoe{visibility:hidden}.FileUpload-module__spinnerOverlay___e3Rle{position:absolute}.FileUpload-module__label___lbMkx{font-weight:600}.FileUpload-module__hint___8dXlk{font-size:.85em;opacity:.7}.FileUpload-module__errorMessage___8HB3n{font-size:.85em;font-weight:600;margin-top:.25rem}.Image-module__container___sVJdZ{position:relative;overflow:hidden;width:100%}.Image-module__img___pKhPw{width:100%;height:100%;object-fit:cover;display:block;position:absolute;top:0;right:0;bottom:0;left:0}.Image-module__fallback___wysuM{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}@keyframes Skeleton-module__pulse___8RWFn{0%,to{opacity:.4}50%{opacity:1}}.Skeleton-module__skeleton___CB4uF{background-color:var(--skeleton-color, color-mix(in srgb, currentColor 20%, transparent));animation:Skeleton-module__pulse___8RWFn 2s ease-in-out infinite;display:block;width:100%;height:100%}.ImageThumbnail-module__thumbnail___-igbe{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.ImageThumbnail-module__img___Q7Z4V{width:100%;height:100%;object-fit:cover;display:block}.ImageThumbnail-module__sizeXs___TvSHV{width:1.25em;height:1.25em}.ImageThumbnail-module__sizeSmall___2KnCh{width:3em;height:3em}.ImageThumbnail-module__sizeDefault___laoQk{width:4em;height:4em}.ImageThumbnail-module__sizeLarge___iwz3o{width:5em;height:5em}.ImageThumbnail-module__removeButton___Ceh1Q{position:absolute;top:.25rem;right:.25rem;width:1.1rem;height:1.1rem;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;opacity:.6;transition:opacity .15s ease}.ImageThumbnail-module__removeButton___Ceh1Q:hover{opacity:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { jsx as _, jsxs as D, Fragment as Fe } from "react/jsx-runtime";
|
|
3
|
+
import N, { createContext as ht, useContext as or, useState as J, useLayoutEffect as Pt, useSyncExternalStore as Hr, useEffect as ne, useCallback as Ce, useRef as Ve, useMemo as We } from "react";
|
|
4
4
|
import { createPortal as lt } from "react-dom";
|
|
5
|
-
const
|
|
6
|
-
button:
|
|
7
|
-
sizeSmall:
|
|
8
|
-
sizeLarge:
|
|
9
|
-
},
|
|
5
|
+
const jr = "Button-module__button___2ZuB7", Wr = "Button-module__sizeSmall___DRT8P", Ur = "Button-module__sizeLarge___yeZSH", Be = {
|
|
6
|
+
button: jr,
|
|
7
|
+
sizeSmall: Wr,
|
|
8
|
+
sizeLarge: Ur
|
|
9
|
+
}, qr = ({
|
|
10
10
|
isActive: e,
|
|
11
11
|
disabled: r,
|
|
12
12
|
color: t,
|
|
@@ -16,12 +16,12 @@ const Ur = "Button-module__button___2ZuB7", qr = "Button-module__sizeSmall___DRT
|
|
|
16
16
|
theme: a
|
|
17
17
|
}) => {
|
|
18
18
|
const i = t || a.colors.primary, f = a.buttons.textColor;
|
|
19
|
-
let c,
|
|
20
|
-
n ? (c = "transparent",
|
|
19
|
+
let c, d, y;
|
|
20
|
+
n ? (c = "transparent", d = i, y = i, e && (c = o || i, d = o || i, y = s || f)) : (c = i, d = i, y = f, e && (c = o || i, d = o || i, y = s || f));
|
|
21
21
|
let m = 1;
|
|
22
22
|
return r ? m = 0.3 : e && !o && (m = 0.75), {
|
|
23
23
|
backgroundColor: c,
|
|
24
|
-
borderColor:
|
|
24
|
+
borderColor: d,
|
|
25
25
|
color: y,
|
|
26
26
|
opacity: m
|
|
27
27
|
};
|
|
@@ -69,7 +69,8 @@ const Xe = {
|
|
|
69
69
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
70
70
|
fontWeightHeader: 700,
|
|
71
71
|
size: "22px",
|
|
72
|
-
|
|
72
|
+
sizeMobile: "16px",
|
|
73
|
+
rhythm: "1.45em",
|
|
73
74
|
fontSizeH1: "2.5rem",
|
|
74
75
|
fontSizeH2: "1.75rem",
|
|
75
76
|
fontSizeH3: "1.38316rem",
|
|
@@ -117,8 +118,8 @@ const Xe = {
|
|
|
117
118
|
}
|
|
118
119
|
}, nr = ht(ct), ia = ({ theme: e, children: r }) => {
|
|
119
120
|
const t = e ? sr(ct, e) : ct;
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
}, R = () => or(nr),
|
|
121
|
+
return /* @__PURE__ */ _(nr.Provider, { value: t, children: r });
|
|
122
|
+
}, R = () => or(nr), Gr = ({
|
|
122
123
|
// Core styling
|
|
123
124
|
color: e,
|
|
124
125
|
hoverColor: r,
|
|
@@ -132,11 +133,11 @@ const Xe = {
|
|
|
132
133
|
className: i,
|
|
133
134
|
style: f,
|
|
134
135
|
buttonProps: c = {},
|
|
135
|
-
onClick:
|
|
136
|
+
onClick: d,
|
|
136
137
|
children: y
|
|
137
138
|
}) => {
|
|
138
139
|
const m = R(), [C, b] = J(!1), k = {
|
|
139
|
-
...
|
|
140
|
+
...qr({
|
|
140
141
|
isActive: C,
|
|
141
142
|
disabled: o,
|
|
142
143
|
color: e,
|
|
@@ -145,7 +146,7 @@ const Xe = {
|
|
|
145
146
|
outline: n,
|
|
146
147
|
theme: m
|
|
147
148
|
}),
|
|
148
|
-
fontSize:
|
|
149
|
+
fontSize: "1em",
|
|
149
150
|
borderWidth: m.border.width,
|
|
150
151
|
borderRadius: m.border.radius,
|
|
151
152
|
"--button-padding-small": `calc(${m.fonts.rhythm} * ${m.sizes.small.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,
|
|
@@ -158,13 +159,13 @@ const Xe = {
|
|
|
158
159
|
n ? Be.outline : "",
|
|
159
160
|
i
|
|
160
161
|
].filter(Boolean).join(" ");
|
|
161
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ _(
|
|
162
163
|
"button",
|
|
163
164
|
{
|
|
164
165
|
...c,
|
|
165
166
|
className: V,
|
|
166
167
|
disabled: o,
|
|
167
|
-
onClick:
|
|
168
|
+
onClick: d,
|
|
168
169
|
onMouseEnter: () => b(!0),
|
|
169
170
|
onMouseLeave: () => b(!1),
|
|
170
171
|
type: a,
|
|
@@ -173,33 +174,33 @@ const Xe = {
|
|
|
173
174
|
}
|
|
174
175
|
);
|
|
175
176
|
};
|
|
176
|
-
var
|
|
177
|
-
function
|
|
178
|
-
if (!
|
|
177
|
+
var Bt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Zr = new Uint8Array(16);
|
|
178
|
+
function Kr() {
|
|
179
|
+
if (!Bt)
|
|
179
180
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
180
|
-
return
|
|
181
|
+
return Bt(Zr);
|
|
181
182
|
}
|
|
182
183
|
var ar = [];
|
|
183
184
|
for (var Re = 0; Re < 256; ++Re)
|
|
184
185
|
ar[Re] = (Re + 256).toString(16).substr(1);
|
|
185
|
-
function
|
|
186
|
+
function Qr(e, r) {
|
|
186
187
|
var t = 0, o = ar;
|
|
187
188
|
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
189
|
}
|
|
189
190
|
function ir(e, r, t) {
|
|
190
191
|
var o = r && t || 0;
|
|
191
192
|
typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
192
|
-
var s = e.random || (e.rng ||
|
|
193
|
+
var s = e.random || (e.rng || Kr)();
|
|
193
194
|
if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, r)
|
|
194
195
|
for (var n = 0; n < 16; ++n)
|
|
195
196
|
r[o + n] = s[n];
|
|
196
|
-
return r ||
|
|
197
|
+
return r || Qr(s);
|
|
197
198
|
}
|
|
198
|
-
const
|
|
199
|
-
container:
|
|
200
|
-
svg:
|
|
201
|
-
label:
|
|
202
|
-
},
|
|
199
|
+
const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kkluC", Yr = "Checkbox-module__label___cwRtI", Je = {
|
|
200
|
+
container: Xr,
|
|
201
|
+
svg: Jr,
|
|
202
|
+
label: Yr
|
|
203
|
+
}, eo = ({
|
|
203
204
|
color: e = "#000",
|
|
204
205
|
checkmarkColor: r,
|
|
205
206
|
disabled: t = !1,
|
|
@@ -212,10 +213,10 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
212
213
|
cursor: t ? "default" : "pointer",
|
|
213
214
|
opacity: t ? 0.3 : 1
|
|
214
215
|
};
|
|
215
|
-
},
|
|
216
|
-
label:
|
|
217
|
-
disabled:
|
|
218
|
-
},
|
|
216
|
+
}, to = "FormLabel-module__label___0M-fo", ro = "FormLabel-module__disabled___ktIFp", Dt = {
|
|
217
|
+
label: to,
|
|
218
|
+
disabled: ro
|
|
219
|
+
}, oo = ({
|
|
219
220
|
color: e = "#000",
|
|
220
221
|
disabled: r = !1,
|
|
221
222
|
fontSize: t = ".85em"
|
|
@@ -240,8 +241,8 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
240
241
|
// Element-specific props
|
|
241
242
|
labelProps: i
|
|
242
243
|
}) => {
|
|
243
|
-
const f = R(), c = f.colors.error,
|
|
244
|
-
color:
|
|
244
|
+
const f = R(), c = f.colors.error, d = t ? c : e || f.colors.primary, y = oo({
|
|
245
|
+
color: d,
|
|
245
246
|
disabled: r,
|
|
246
247
|
fontSize: ".85em"
|
|
247
248
|
}), m = {
|
|
@@ -252,9 +253,9 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
252
253
|
cursor: y.cursor,
|
|
253
254
|
...a
|
|
254
255
|
// Top level style prop overrides
|
|
255
|
-
}, C = [
|
|
256
|
-
return /* @__PURE__ */
|
|
257
|
-
},
|
|
256
|
+
}, C = [Dt.label, r ? Dt.disabled : "", n].filter(Boolean).join(" ");
|
|
257
|
+
return /* @__PURE__ */ _("label", { ...i, className: C, htmlFor: o, style: m, children: s });
|
|
258
|
+
}, dt = ({
|
|
258
259
|
// Color props
|
|
259
260
|
color: e,
|
|
260
261
|
checkmarkColor: r,
|
|
@@ -268,23 +269,23 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
268
269
|
id: i,
|
|
269
270
|
onChange: f,
|
|
270
271
|
label: c,
|
|
271
|
-
labelStyle:
|
|
272
|
+
labelStyle: d,
|
|
272
273
|
// Style overrides
|
|
273
274
|
className: y,
|
|
274
275
|
style: m,
|
|
275
276
|
// Element-specific props
|
|
276
277
|
divProps: C
|
|
277
278
|
}) => {
|
|
278
|
-
const b = R(),
|
|
279
|
+
const b = R(), p = i || ir(), k = b.colors.error, V = n ? k : e || b.colors.primary, g = eo({
|
|
279
280
|
color: V,
|
|
280
281
|
checkmarkColor: r,
|
|
281
282
|
disabled: s,
|
|
282
283
|
inverted: o
|
|
283
|
-
}), F = (
|
|
284
|
-
s || f(
|
|
284
|
+
}), F = (M) => {
|
|
285
|
+
s || f(M);
|
|
285
286
|
}, z = {
|
|
286
287
|
cursor: g.cursor,
|
|
287
|
-
fontSize:
|
|
288
|
+
fontSize: "1em",
|
|
288
289
|
opacity: g.opacity,
|
|
289
290
|
...m
|
|
290
291
|
// Top-level style prop overrides
|
|
@@ -294,19 +295,19 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
294
295
|
fill: o && t ? g.checkboxColor : "transparent",
|
|
295
296
|
strokeWidth: "25",
|
|
296
297
|
stroke: g.checkboxColor
|
|
297
|
-
},
|
|
298
|
+
}, P = {
|
|
298
299
|
stroke: g.checkmarkColor,
|
|
299
300
|
strokeWidth: "15",
|
|
300
301
|
fill: "transparent"
|
|
301
302
|
}, U = [Je.container, y].filter(Boolean).join(" ");
|
|
302
303
|
return /* @__PURE__ */ D("div", { ...C, className: U, style: z, children: [
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ _(
|
|
304
305
|
"input",
|
|
305
306
|
{
|
|
306
|
-
id:
|
|
307
|
+
id: p,
|
|
307
308
|
checked: t,
|
|
308
309
|
disabled: s,
|
|
309
|
-
onChange: (
|
|
310
|
+
onChange: (M) => F({ target: { checked: M.target.checked, name: a, type: "checkbox" } }),
|
|
310
311
|
name: a,
|
|
311
312
|
style: { display: "none" },
|
|
312
313
|
type: "checkbox"
|
|
@@ -321,17 +322,17 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
321
322
|
style: E,
|
|
322
323
|
className: Je.svg,
|
|
323
324
|
children: [
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
t && /* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ _("rect", { x: "0", y: "0", height: "100", width: "100", style: B }),
|
|
326
|
+
t && /* @__PURE__ */ _("path", { d: "M 25 45 L 45 65 L 75 30", style: P })
|
|
326
327
|
]
|
|
327
328
|
}
|
|
328
329
|
),
|
|
329
|
-
c && /* @__PURE__ */
|
|
330
|
+
c && /* @__PURE__ */ _(
|
|
330
331
|
_t,
|
|
331
332
|
{
|
|
332
|
-
htmlFor:
|
|
333
|
+
htmlFor: p,
|
|
333
334
|
className: Je.label,
|
|
334
|
-
style: { paddingBottom: 0, ...
|
|
335
|
+
style: { paddingBottom: 0, ...d },
|
|
335
336
|
color: g.checkboxColor,
|
|
336
337
|
disabled: s,
|
|
337
338
|
error: n,
|
|
@@ -341,14 +342,39 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
341
342
|
] });
|
|
342
343
|
}, la = () => {
|
|
343
344
|
const e = R();
|
|
344
|
-
return
|
|
345
|
+
return Pt(() => {
|
|
345
346
|
const r = document.documentElement;
|
|
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
|
+
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.sizeMobile && r.style.setProperty("--font-size-mobile", e.fonts.sizeMobile), 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));
|
|
348
|
+
}, [e]), Pt(() => {
|
|
349
|
+
const r = "dr-cl-responsive-tokens";
|
|
350
|
+
let t = document.getElementById(r);
|
|
351
|
+
return t || (t = document.createElement("style"), t.id = r, document.head.appendChild(t)), t.textContent = `
|
|
352
|
+
@media (max-width: ${e.breakpoints.md}) {
|
|
353
|
+
html {
|
|
354
|
+
font-size: var(--font-size-mobile);
|
|
355
|
+
--model-order-form-layout-direction: column;
|
|
356
|
+
--model-order-form-image-width: 100%;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@media (max-width: ${e.breakpoints.sm}) {
|
|
361
|
+
html {
|
|
362
|
+
--order-list-card-gap: 0.6em;
|
|
363
|
+
--order-list-card-align-items: flex-start;
|
|
364
|
+
--order-list-card-image-width: 4.5em;
|
|
365
|
+
--order-list-card-image-padding-top: 0.4em;
|
|
366
|
+
--order-list-content-padding: 0.4em 0.75em 0.4em 0;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
`, () => {
|
|
370
|
+
const o = document.getElementById(r);
|
|
371
|
+
o && document.head.removeChild(o);
|
|
372
|
+
};
|
|
347
373
|
}, [e]), null;
|
|
348
374
|
};
|
|
349
375
|
var Ae = (e) => e.type === "checkbox", _e = (e) => e instanceof Date, ee = (e) => e == null;
|
|
350
376
|
const lr = (e) => typeof e == "object";
|
|
351
|
-
var Z = (e) => !ee(e) && !Array.isArray(e) && lr(e) && !_e(e), cr = (e) => Z(e) && e.target ? Ae(e.target) ? e.target.checked : e.target.value : e,
|
|
377
|
+
var Z = (e) => !ee(e) && !Array.isArray(e) && lr(e) && !_e(e), cr = (e) => Z(e) && e.target ? Ae(e.target) ? e.target.checked : e.target.value : e, so = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, dr = (e, r) => e.has(so(r)), no = (e) => {
|
|
352
378
|
const r = e.constructor && e.constructor.prototype;
|
|
353
379
|
return Z(r) && r.hasOwnProperty("isPrototypeOf");
|
|
354
380
|
}, pt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -358,7 +384,7 @@ function X(e) {
|
|
|
358
384
|
if (e instanceof Date)
|
|
359
385
|
r = new Date(e);
|
|
360
386
|
else if (!(pt && (e instanceof Blob || o)) && (t || Z(e)))
|
|
361
|
-
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !
|
|
387
|
+
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !no(e))
|
|
362
388
|
r = e;
|
|
363
389
|
else
|
|
364
390
|
for (const s in e)
|
|
@@ -405,9 +431,9 @@ const Te = {
|
|
|
405
431
|
pattern: "pattern",
|
|
406
432
|
required: "required",
|
|
407
433
|
validate: "validate"
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
const bt = () => N.useContext(
|
|
434
|
+
}, ur = N.createContext(null);
|
|
435
|
+
ur.displayName = "HookFormContext";
|
|
436
|
+
const bt = () => N.useContext(ur);
|
|
411
437
|
var fr = (e, r, t, o = !0) => {
|
|
412
438
|
const s = {
|
|
413
439
|
defaultValues: r._defaultValues
|
|
@@ -422,7 +448,7 @@ var fr = (e, r, t, o = !0) => {
|
|
|
422
448
|
return s;
|
|
423
449
|
};
|
|
424
450
|
const St = typeof window < "u" ? N.useLayoutEffect : N.useEffect;
|
|
425
|
-
function
|
|
451
|
+
function ao(e) {
|
|
426
452
|
const r = bt(), { control: t = r.control, disabled: o, name: s, exact: n } = e || {}, [a, i] = N.useState(t._formState), f = N.useRef({
|
|
427
453
|
isDirty: !1,
|
|
428
454
|
isLoading: !1,
|
|
@@ -447,7 +473,7 @@ function lo(e) {
|
|
|
447
473
|
f.current.isValid && t._setValid(!0);
|
|
448
474
|
}, [t]), N.useMemo(() => fr(a, t, f.current, !1), [a, t]);
|
|
449
475
|
}
|
|
450
|
-
var oe = (e) => typeof e == "string",
|
|
476
|
+
var oe = (e) => typeof e == "string", ut = (e, r, t, o, s) => oe(e) ? (o && r.watch.add(e), w(t, e, s)) : Array.isArray(e) ? e.map((n) => (o && r.watch.add(n), w(t, n))) : (o && (r.watchAll = !0), t), ft = (e) => ee(e) || !lr(e);
|
|
451
477
|
function le(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
452
478
|
if (ft(e) || ft(r))
|
|
453
479
|
return e === r;
|
|
@@ -471,21 +497,21 @@ function le(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
471
497
|
}
|
|
472
498
|
return !0;
|
|
473
499
|
}
|
|
474
|
-
function
|
|
475
|
-
const r = bt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute: i } = e || {}, f = N.useRef(s), c = N.useRef(i),
|
|
500
|
+
function io(e) {
|
|
501
|
+
const r = bt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute: i } = e || {}, f = N.useRef(s), c = N.useRef(i), d = N.useRef(void 0), y = N.useRef(t), m = N.useRef(o);
|
|
476
502
|
c.current = i;
|
|
477
503
|
const [C, b] = N.useState(() => {
|
|
478
504
|
const z = t._getWatch(o, f.current);
|
|
479
505
|
return c.current ? c.current(z) : z;
|
|
480
|
-
}),
|
|
481
|
-
const E =
|
|
506
|
+
}), p = N.useCallback((z) => {
|
|
507
|
+
const E = ut(o, t._names, z || t._formValues, !1, f.current);
|
|
482
508
|
return c.current ? c.current(E) : E;
|
|
483
509
|
}, [t._formValues, t._names, o]), k = N.useCallback((z) => {
|
|
484
510
|
if (!n) {
|
|
485
|
-
const E =
|
|
511
|
+
const E = ut(o, t._names, z || t._formValues, !1, f.current);
|
|
486
512
|
if (c.current) {
|
|
487
513
|
const B = c.current(E);
|
|
488
|
-
le(B,
|
|
514
|
+
le(B, d.current) || (b(B), d.current = B);
|
|
489
515
|
} else
|
|
490
516
|
b(E);
|
|
491
517
|
}
|
|
@@ -504,17 +530,17 @@ function co(e) {
|
|
|
504
530
|
if (n)
|
|
505
531
|
return null;
|
|
506
532
|
const z = !V && !le(g, o);
|
|
507
|
-
return V || z ?
|
|
508
|
-
}, [n, V, o, g,
|
|
533
|
+
return V || z ? p() : null;
|
|
534
|
+
}, [n, V, o, g, p]);
|
|
509
535
|
return F !== null ? F : C;
|
|
510
536
|
}
|
|
511
|
-
function
|
|
512
|
-
const r = bt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e, i =
|
|
537
|
+
function lo(e) {
|
|
538
|
+
const r = bt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e, i = dr(s._names.array, t), f = N.useMemo(() => w(s._formValues, t, w(s._defaultValues, t, a)), [s, t, a]), c = io({
|
|
513
539
|
control: s,
|
|
514
540
|
name: t,
|
|
515
541
|
defaultValue: f,
|
|
516
542
|
exact: !0
|
|
517
|
-
}),
|
|
543
|
+
}), d = ao({
|
|
518
544
|
control: s,
|
|
519
545
|
name: t,
|
|
520
546
|
exact: !0
|
|
@@ -527,25 +553,25 @@ function uo(e) {
|
|
|
527
553
|
const b = N.useMemo(() => Object.defineProperties({}, {
|
|
528
554
|
invalid: {
|
|
529
555
|
enumerable: !0,
|
|
530
|
-
get: () => !!w(
|
|
556
|
+
get: () => !!w(d.errors, t)
|
|
531
557
|
},
|
|
532
558
|
isDirty: {
|
|
533
559
|
enumerable: !0,
|
|
534
|
-
get: () => !!w(
|
|
560
|
+
get: () => !!w(d.dirtyFields, t)
|
|
535
561
|
},
|
|
536
562
|
isTouched: {
|
|
537
563
|
enumerable: !0,
|
|
538
|
-
get: () => !!w(
|
|
564
|
+
get: () => !!w(d.touchedFields, t)
|
|
539
565
|
},
|
|
540
566
|
isValidating: {
|
|
541
567
|
enumerable: !0,
|
|
542
|
-
get: () => !!w(
|
|
568
|
+
get: () => !!w(d.validatingFields, t)
|
|
543
569
|
},
|
|
544
570
|
error: {
|
|
545
571
|
enumerable: !0,
|
|
546
|
-
get: () => w(
|
|
572
|
+
get: () => w(d.errors, t)
|
|
547
573
|
}
|
|
548
|
-
}), [
|
|
574
|
+
}), [d, t]), p = N.useCallback((F) => C.current.onChange({
|
|
549
575
|
target: {
|
|
550
576
|
value: cr(F),
|
|
551
577
|
name: t
|
|
@@ -568,20 +594,20 @@ function uo(e) {
|
|
|
568
594
|
}, [s._fields, t]), g = N.useMemo(() => ({
|
|
569
595
|
name: t,
|
|
570
596
|
value: c,
|
|
571
|
-
...re(o) ||
|
|
572
|
-
onChange:
|
|
597
|
+
...re(o) || d.disabled ? { disabled: d.disabled || o } : {},
|
|
598
|
+
onChange: p,
|
|
573
599
|
onBlur: k,
|
|
574
600
|
ref: V
|
|
575
|
-
}), [t, o,
|
|
601
|
+
}), [t, o, d.disabled, p, k, V, c]);
|
|
576
602
|
return N.useEffect(() => {
|
|
577
603
|
const F = s._options.shouldUnregister || n, z = m.current;
|
|
578
604
|
z && z !== t && !i && s.unregister(z), s.register(t, {
|
|
579
605
|
...y.current.rules,
|
|
580
606
|
...re(y.current.disabled) ? { disabled: y.current.disabled } : {}
|
|
581
607
|
});
|
|
582
|
-
const E = (B,
|
|
608
|
+
const E = (B, P) => {
|
|
583
609
|
const U = w(s._fields, B);
|
|
584
|
-
U && U._f && (U._f.mount =
|
|
610
|
+
U && U._f && (U._f.mount = P);
|
|
585
611
|
};
|
|
586
612
|
if (E(t, !0), F) {
|
|
587
613
|
const B = X(w(s._options.defaultValues, t, y.current.defaultValue));
|
|
@@ -597,9 +623,9 @@ function uo(e) {
|
|
|
597
623
|
});
|
|
598
624
|
}, [o, t, s]), N.useMemo(() => ({
|
|
599
625
|
field: g,
|
|
600
|
-
formState:
|
|
626
|
+
formState: d,
|
|
601
627
|
fieldState: b
|
|
602
|
-
}), [g,
|
|
628
|
+
}), [g, d, b]);
|
|
603
629
|
}
|
|
604
630
|
var wt = (e, r, t, o, s) => r ? {
|
|
605
631
|
...t[e],
|
|
@@ -607,7 +633,7 @@ var wt = (e, r, t, o, s) => r ? {
|
|
|
607
633
|
...t[e] && t[e].types ? t[e].types : {},
|
|
608
634
|
[o]: s || !0
|
|
609
635
|
}
|
|
610
|
-
} : {}, Ne = (e) => Array.isArray(e) ? e : [e],
|
|
636
|
+
} : {}, Ne = (e) => Array.isArray(e) ? e : [e], Rt = () => {
|
|
611
637
|
let e = [];
|
|
612
638
|
return {
|
|
613
639
|
get observers() {
|
|
@@ -644,32 +670,32 @@ var Y = (e) => Z(e) && !Object.keys(e).length, kt = (e) => e.type === "file", ce
|
|
|
644
670
|
return !1;
|
|
645
671
|
const r = e ? e.ownerDocument : 0;
|
|
646
672
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
647
|
-
}, yr = (e) => e.type === "select-multiple", xt = (e) => e.type === "radio",
|
|
648
|
-
function
|
|
673
|
+
}, yr = (e) => e.type === "select-multiple", xt = (e) => e.type === "radio", co = (e) => xt(e) || Ae(e), Ye = (e) => He(e) && e.isConnected;
|
|
674
|
+
function uo(e, r) {
|
|
649
675
|
const t = r.slice(0, -1).length;
|
|
650
676
|
let o = 0;
|
|
651
677
|
for (; o < t; )
|
|
652
678
|
e = W(e) ? o++ : e[r[o++]];
|
|
653
679
|
return e;
|
|
654
680
|
}
|
|
655
|
-
function
|
|
681
|
+
function fo(e) {
|
|
656
682
|
for (const r in e)
|
|
657
683
|
if (e.hasOwnProperty(r) && !W(e[r]))
|
|
658
684
|
return !1;
|
|
659
685
|
return !0;
|
|
660
686
|
}
|
|
661
687
|
function G(e, r) {
|
|
662
|
-
const t = Array.isArray(r) ? r : Ue(r) ? [r] : vt(r), o = t.length === 1 ? e :
|
|
663
|
-
return o && delete o[n], s !== 0 && (Z(o) && Y(o) || Array.isArray(o) &&
|
|
688
|
+
const t = Array.isArray(r) ? r : Ue(r) ? [r] : vt(r), o = t.length === 1 ? e : uo(e, t), s = t.length - 1, n = t[s];
|
|
689
|
+
return o && delete o[n], s !== 0 && (Z(o) && Y(o) || Array.isArray(o) && fo(o)) && G(e, t.slice(0, -1)), e;
|
|
664
690
|
}
|
|
665
|
-
var
|
|
691
|
+
var mo = (e) => {
|
|
666
692
|
for (const r in e)
|
|
667
693
|
if (ce(e[r]))
|
|
668
694
|
return !0;
|
|
669
695
|
return !1;
|
|
670
696
|
};
|
|
671
697
|
function hr(e) {
|
|
672
|
-
return Array.isArray(e) || Z(e) && !
|
|
698
|
+
return Array.isArray(e) || Z(e) && !mo(e);
|
|
673
699
|
}
|
|
674
700
|
function mt(e, r = {}) {
|
|
675
701
|
for (const t in e)
|
|
@@ -682,10 +708,10 @@ function ke(e, r, t) {
|
|
|
682
708
|
hr(e[o]) ? W(r) || ft(t[o]) ? t[o] = mt(e[o], Array.isArray(e[o]) ? [] : {}) : ke(e[o], ee(r) ? {} : r[o], t[o]) : t[o] = !le(e[o], r[o]);
|
|
683
709
|
return t;
|
|
684
710
|
}
|
|
685
|
-
const
|
|
711
|
+
const Ot = {
|
|
686
712
|
value: !1,
|
|
687
713
|
isValid: !1
|
|
688
|
-
},
|
|
714
|
+
}, It = { value: !0, isValid: !0 };
|
|
689
715
|
var _r = (e) => {
|
|
690
716
|
if (Array.isArray(e)) {
|
|
691
717
|
if (e.length > 1) {
|
|
@@ -694,24 +720,24 @@ var _r = (e) => {
|
|
|
694
720
|
}
|
|
695
721
|
return e[0].checked && !e[0].disabled ? (
|
|
696
722
|
// @ts-expect-error expected to work in the browser
|
|
697
|
-
e[0].attributes && !W(e[0].attributes.value) ? W(e[0].value) || e[0].value === "" ?
|
|
698
|
-
) :
|
|
723
|
+
e[0].attributes && !W(e[0].attributes.value) ? W(e[0].value) || e[0].value === "" ? It : { value: e[0].value, isValid: !0 } : It
|
|
724
|
+
) : Ot;
|
|
699
725
|
}
|
|
700
|
-
return
|
|
726
|
+
return Ot;
|
|
701
727
|
}, pr = (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
|
-
const
|
|
728
|
+
const Tt = {
|
|
703
729
|
isValid: !1,
|
|
704
730
|
value: null
|
|
705
731
|
};
|
|
706
732
|
var gr = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
|
|
707
733
|
isValid: !0,
|
|
708
734
|
value: t.value
|
|
709
|
-
} : r,
|
|
710
|
-
function
|
|
735
|
+
} : r, Tt) : Tt;
|
|
736
|
+
function Ht(e) {
|
|
711
737
|
const r = e.ref;
|
|
712
738
|
return kt(r) ? r.files : xt(r) ? gr(e.refs).value : yr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Ae(r) ? _r(e.refs).value : pr(W(r.value) ? e.ref.value : r.value, e);
|
|
713
739
|
}
|
|
714
|
-
var
|
|
740
|
+
var yo = (e, r, t, o) => {
|
|
715
741
|
const s = {};
|
|
716
742
|
for (const n of e) {
|
|
717
743
|
const a = w(r, n);
|
|
@@ -723,15 +749,15 @@ var _o = (e, r, t, o) => {
|
|
|
723
749
|
fields: s,
|
|
724
750
|
shouldUseNativeValidation: o
|
|
725
751
|
};
|
|
726
|
-
}, je = (e) => e instanceof RegExp, ze = (e) => W(e) ? e : je(e) ? e.source : Z(e) ? je(e.value) ? e.value.source : e.value : e,
|
|
752
|
+
}, je = (e) => e instanceof RegExp, ze = (e) => W(e) ? e : je(e) ? e.source : Z(e) ? je(e.value) ? e.value.source : e.value : e, jt = (e) => ({
|
|
727
753
|
isOnSubmit: !e || e === ie.onSubmit,
|
|
728
754
|
isOnBlur: e === ie.onBlur,
|
|
729
755
|
isOnChange: e === ie.onChange,
|
|
730
756
|
isOnAll: e === ie.all,
|
|
731
757
|
isOnTouch: e === ie.onTouched
|
|
732
758
|
});
|
|
733
|
-
const
|
|
734
|
-
var
|
|
759
|
+
const Wt = "AsyncFunction";
|
|
760
|
+
var ho = (e) => !!e && !!e.validate && !!(ce(e.validate) && e.validate.constructor.name === Wt || Z(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Wt)), _o = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Ut = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((o) => e.startsWith(o) && /^\.\w+/.test(e.slice(o.length))));
|
|
735
761
|
const $e = (e, r, t, o) => {
|
|
736
762
|
for (const s of t || Object.keys(e)) {
|
|
737
763
|
const n = w(e, s);
|
|
@@ -749,7 +775,7 @@ const $e = (e, r, t, o) => {
|
|
|
749
775
|
}
|
|
750
776
|
}
|
|
751
777
|
};
|
|
752
|
-
function
|
|
778
|
+
function qt(e, r, t) {
|
|
753
779
|
const o = w(e, t);
|
|
754
780
|
if (o || Ue(t))
|
|
755
781
|
return {
|
|
@@ -777,15 +803,15 @@ function Ut(e, r, t) {
|
|
|
777
803
|
name: t
|
|
778
804
|
};
|
|
779
805
|
}
|
|
780
|
-
var
|
|
806
|
+
var po = (e, r, t, o) => {
|
|
781
807
|
t(e);
|
|
782
808
|
const { name: s, ...n } = e;
|
|
783
809
|
return Y(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o || ie.all));
|
|
784
|
-
},
|
|
810
|
+
}, go = (e, r, t) => !e || !r || e === r || Ne(e).some((o) => o && (t ? o === r : o.startsWith(r) || r.startsWith(o))), vo = (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, bo = (e, r) => !gt(w(e, r)).length && G(e, r), So = (e, r, t) => {
|
|
785
811
|
const o = Ne(w(e, t));
|
|
786
812
|
return H(o, "root", r[t]), H(e, t, o), e;
|
|
787
813
|
};
|
|
788
|
-
function
|
|
814
|
+
function Gt(e, r, t = "validate") {
|
|
789
815
|
if (oe(e) || Array.isArray(e) && e.every(oe) || re(e) && !e)
|
|
790
816
|
return {
|
|
791
817
|
type: t,
|
|
@@ -796,24 +822,24 @@ function qt(e, r, t = "validate") {
|
|
|
796
822
|
var be = (e) => Z(e) && !je(e) ? e : {
|
|
797
823
|
value: e,
|
|
798
824
|
message: ""
|
|
799
|
-
},
|
|
800
|
-
const { ref: a, refs: i, required: f, maxLength: c, minLength:
|
|
801
|
-
if (!V || r.has(
|
|
825
|
+
}, Zt = async (e, r, t, o, s, n) => {
|
|
826
|
+
const { ref: a, refs: i, required: f, maxLength: c, minLength: d, min: y, max: m, pattern: C, validate: b, name: p, valueAsNumber: k, mount: V } = e._f, g = w(t, p);
|
|
827
|
+
if (!V || r.has(p))
|
|
802
828
|
return {};
|
|
803
829
|
const F = i ? i[0] : a, z = (L) => {
|
|
804
830
|
s && F.reportValidity && (F.setCustomValidity(re(L) ? "" : L || ""), F.reportValidity());
|
|
805
|
-
}, E = {}, B = xt(a),
|
|
831
|
+
}, E = {}, B = xt(a), P = Ae(a), U = B || P, M = (k || kt(a)) && W(a.value) && W(g) || He(a) && a.value === "" || g === "" || Array.isArray(g) && !g.length, K = wt.bind(null, p, o, E), q = (L, A, O, I = fe.maxLength, Q = fe.minLength) => {
|
|
806
832
|
const te = L ? A : O;
|
|
807
|
-
E[
|
|
833
|
+
E[p] = {
|
|
808
834
|
type: L ? I : Q,
|
|
809
835
|
message: te,
|
|
810
836
|
ref: a,
|
|
811
837
|
...K(L ? I : Q, te)
|
|
812
838
|
};
|
|
813
839
|
};
|
|
814
|
-
if (n ? !Array.isArray(g) || !g.length : f && (!U && (
|
|
840
|
+
if (n ? !Array.isArray(g) || !g.length : f && (!U && (M || ee(g)) || re(g) && !g || P && !_r(i).isValid || B && !gr(i).isValid)) {
|
|
815
841
|
const { value: L, message: A } = oe(f) ? { value: !!f, message: f } : be(f);
|
|
816
|
-
if (L && (E[
|
|
842
|
+
if (L && (E[p] = {
|
|
817
843
|
type: fe.required,
|
|
818
844
|
message: A,
|
|
819
845
|
ref: F,
|
|
@@ -821,27 +847,27 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
821
847
|
}, !o))
|
|
822
848
|
return z(A), E;
|
|
823
849
|
}
|
|
824
|
-
if (!
|
|
850
|
+
if (!M && (!ee(y) || !ee(m))) {
|
|
825
851
|
let L, A;
|
|
826
852
|
const O = be(m), I = be(y);
|
|
827
853
|
if (!ee(g) && !isNaN(g)) {
|
|
828
854
|
const Q = a.valueAsNumber || g && +g;
|
|
829
855
|
ee(O.value) || (L = Q > O.value), ee(I.value) || (A = Q < I.value);
|
|
830
856
|
} else {
|
|
831
|
-
const Q = a.valueAsDate || new Date(g), te = (
|
|
857
|
+
const Q = a.valueAsDate || new Date(g), te = (Me) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Me), me = a.type == "time", ve = a.type == "week";
|
|
832
858
|
oe(O.value) && g && (L = me ? te(g) > te(O.value) : ve ? g > O.value : Q > new Date(O.value)), oe(I.value) && g && (A = me ? te(g) < te(I.value) : ve ? g < I.value : Q < new Date(I.value));
|
|
833
859
|
}
|
|
834
860
|
if ((L || A) && (q(!!L, O.message, I.message, fe.max, fe.min), !o))
|
|
835
|
-
return z(E[
|
|
861
|
+
return z(E[p].message), E;
|
|
836
862
|
}
|
|
837
|
-
if ((c ||
|
|
838
|
-
const L = be(c), A = be(
|
|
863
|
+
if ((c || d) && !M && (oe(g) || n && Array.isArray(g))) {
|
|
864
|
+
const L = be(c), A = be(d), O = !ee(L.value) && g.length > +L.value, I = !ee(A.value) && g.length < +A.value;
|
|
839
865
|
if ((O || I) && (q(O, L.message, A.message), !o))
|
|
840
|
-
return z(E[
|
|
866
|
+
return z(E[p].message), E;
|
|
841
867
|
}
|
|
842
|
-
if (C && !
|
|
868
|
+
if (C && !M && oe(g)) {
|
|
843
869
|
const { value: L, message: A } = be(C);
|
|
844
|
-
if (je(L) && !g.match(L) && (E[
|
|
870
|
+
if (je(L) && !g.match(L) && (E[p] = {
|
|
845
871
|
type: fe.pattern,
|
|
846
872
|
message: A,
|
|
847
873
|
ref: a,
|
|
@@ -851,8 +877,8 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
851
877
|
}
|
|
852
878
|
if (b) {
|
|
853
879
|
if (ce(b)) {
|
|
854
|
-
const L = await b(g, t), A =
|
|
855
|
-
if (A && (E[
|
|
880
|
+
const L = await b(g, t), A = Gt(L, F);
|
|
881
|
+
if (A && (E[p] = {
|
|
856
882
|
...A,
|
|
857
883
|
...K(fe.validate, A.message)
|
|
858
884
|
}, !o))
|
|
@@ -862,13 +888,13 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
862
888
|
for (const A in b) {
|
|
863
889
|
if (!Y(L) && !o)
|
|
864
890
|
break;
|
|
865
|
-
const O =
|
|
891
|
+
const O = Gt(await b[A](g, t), F, A);
|
|
866
892
|
O && (L = {
|
|
867
893
|
...O,
|
|
868
894
|
...K(A, O.message)
|
|
869
|
-
}, z(O.message), o && (E[
|
|
895
|
+
}, z(O.message), o && (E[p] = L));
|
|
870
896
|
}
|
|
871
|
-
if (!Y(L) && (E[
|
|
897
|
+
if (!Y(L) && (E[p] = {
|
|
872
898
|
ref: F,
|
|
873
899
|
...L
|
|
874
900
|
}, !o))
|
|
@@ -877,14 +903,14 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
877
903
|
}
|
|
878
904
|
return z(!0), E;
|
|
879
905
|
};
|
|
880
|
-
const
|
|
906
|
+
const wo = {
|
|
881
907
|
mode: ie.onSubmit,
|
|
882
908
|
reValidateMode: ie.onChange,
|
|
883
909
|
shouldFocusError: !0
|
|
884
910
|
};
|
|
885
|
-
function
|
|
911
|
+
function ko(e = {}) {
|
|
886
912
|
let r = {
|
|
887
|
-
...
|
|
913
|
+
...wo,
|
|
888
914
|
...e
|
|
889
915
|
}, t = {
|
|
890
916
|
submitCount: 0,
|
|
@@ -912,7 +938,7 @@ function Co(e = {}) {
|
|
|
912
938
|
array: /* @__PURE__ */ new Set(),
|
|
913
939
|
watch: /* @__PURE__ */ new Set()
|
|
914
940
|
}, f, c = 0;
|
|
915
|
-
const
|
|
941
|
+
const d = {
|
|
916
942
|
isDirty: !1,
|
|
917
943
|
dirtyFields: !1,
|
|
918
944
|
validatingFields: !1,
|
|
@@ -922,28 +948,28 @@ function Co(e = {}) {
|
|
|
922
948
|
errors: !1
|
|
923
949
|
};
|
|
924
950
|
let y = {
|
|
925
|
-
...
|
|
951
|
+
...d
|
|
926
952
|
};
|
|
927
953
|
const m = {
|
|
928
|
-
array:
|
|
929
|
-
state:
|
|
930
|
-
}, C = r.criteriaMode === ie.all, b = (l) => (
|
|
931
|
-
clearTimeout(c), c = setTimeout(l,
|
|
932
|
-
},
|
|
933
|
-
if (!r.disabled && (
|
|
934
|
-
const
|
|
935
|
-
|
|
936
|
-
isValid:
|
|
954
|
+
array: Rt(),
|
|
955
|
+
state: Rt()
|
|
956
|
+
}, C = r.criteriaMode === ie.all, b = (l) => (u) => {
|
|
957
|
+
clearTimeout(c), c = setTimeout(l, u);
|
|
958
|
+
}, p = async (l) => {
|
|
959
|
+
if (!r.disabled && (d.isValid || y.isValid || l)) {
|
|
960
|
+
const u = r.resolver ? Y((await P()).errors) : await M(o, !0);
|
|
961
|
+
u !== t.isValid && m.state.next({
|
|
962
|
+
isValid: u
|
|
937
963
|
});
|
|
938
964
|
}
|
|
939
|
-
}, k = (l,
|
|
940
|
-
!r.disabled && (
|
|
941
|
-
h && (
|
|
965
|
+
}, k = (l, u) => {
|
|
966
|
+
!r.disabled && (d.isValidating || d.validatingFields || y.isValidating || y.validatingFields) && ((l || Array.from(i.mount)).forEach((h) => {
|
|
967
|
+
h && (u ? H(t.validatingFields, h, u) : G(t.validatingFields, h));
|
|
942
968
|
}), m.state.next({
|
|
943
969
|
validatingFields: t.validatingFields,
|
|
944
970
|
isValidating: !Y(t.validatingFields)
|
|
945
971
|
}));
|
|
946
|
-
}, V = (l,
|
|
972
|
+
}, V = (l, u = [], h, x, S = !0, v = !0) => {
|
|
947
973
|
if (x && h && !r.disabled) {
|
|
948
974
|
if (a.action = !0, v && Array.isArray(w(o, l))) {
|
|
949
975
|
const $ = h(w(o, l), x.argA, x.argB);
|
|
@@ -951,23 +977,23 @@ function Co(e = {}) {
|
|
|
951
977
|
}
|
|
952
978
|
if (v && Array.isArray(w(t.errors, l))) {
|
|
953
979
|
const $ = h(w(t.errors, l), x.argA, x.argB);
|
|
954
|
-
S && H(t.errors, l, $),
|
|
980
|
+
S && H(t.errors, l, $), bo(t.errors, l);
|
|
955
981
|
}
|
|
956
|
-
if ((
|
|
982
|
+
if ((d.touchedFields || y.touchedFields) && v && Array.isArray(w(t.touchedFields, l))) {
|
|
957
983
|
const $ = h(w(t.touchedFields, l), x.argA, x.argB);
|
|
958
984
|
S && H(t.touchedFields, l, $);
|
|
959
985
|
}
|
|
960
|
-
(
|
|
986
|
+
(d.dirtyFields || y.dirtyFields) && (t.dirtyFields = ke(s, n)), m.state.next({
|
|
961
987
|
name: l,
|
|
962
|
-
isDirty: q(l,
|
|
988
|
+
isDirty: q(l, u),
|
|
963
989
|
dirtyFields: t.dirtyFields,
|
|
964
990
|
errors: t.errors,
|
|
965
991
|
isValid: t.isValid
|
|
966
992
|
});
|
|
967
993
|
} else
|
|
968
|
-
H(n, l,
|
|
969
|
-
}, g = (l,
|
|
970
|
-
H(t.errors, l,
|
|
994
|
+
H(n, l, u);
|
|
995
|
+
}, g = (l, u) => {
|
|
996
|
+
H(t.errors, l, u), m.state.next({
|
|
971
997
|
errors: t.errors
|
|
972
998
|
});
|
|
973
999
|
}, F = (l) => {
|
|
@@ -975,36 +1001,36 @@ function Co(e = {}) {
|
|
|
975
1001
|
errors: t.errors,
|
|
976
1002
|
isValid: !1
|
|
977
1003
|
});
|
|
978
|
-
}, z = (l,
|
|
1004
|
+
}, z = (l, u, h, x) => {
|
|
979
1005
|
const S = w(o, l);
|
|
980
1006
|
if (S) {
|
|
981
1007
|
const v = w(n, l, W(h) ? w(s, l) : h);
|
|
982
|
-
W(v) || x && x.defaultChecked ||
|
|
1008
|
+
W(v) || x && x.defaultChecked || u ? H(n, l, u ? v : Ht(S._f)) : O(l, v), a.mount && p();
|
|
983
1009
|
}
|
|
984
|
-
}, E = (l,
|
|
1010
|
+
}, E = (l, u, h, x, S) => {
|
|
985
1011
|
let v = !1, $ = !1;
|
|
986
1012
|
const T = {
|
|
987
1013
|
name: l
|
|
988
1014
|
};
|
|
989
1015
|
if (!r.disabled) {
|
|
990
1016
|
if (!h || x) {
|
|
991
|
-
(
|
|
992
|
-
const j = le(w(s, l),
|
|
993
|
-
$ = !!w(t.dirtyFields, l), j ? G(t.dirtyFields, l) : H(t.dirtyFields, l, !0), T.dirtyFields = t.dirtyFields, v = v || (
|
|
1017
|
+
(d.isDirty || y.isDirty) && ($ = t.isDirty, t.isDirty = T.isDirty = q(), v = $ !== T.isDirty);
|
|
1018
|
+
const j = le(w(s, l), u);
|
|
1019
|
+
$ = !!w(t.dirtyFields, l), j ? G(t.dirtyFields, l) : H(t.dirtyFields, l, !0), T.dirtyFields = t.dirtyFields, v = v || (d.dirtyFields || y.dirtyFields) && $ !== !j;
|
|
994
1020
|
}
|
|
995
1021
|
if (h) {
|
|
996
1022
|
const j = w(t.touchedFields, l);
|
|
997
|
-
j || (H(t.touchedFields, l, h), T.touchedFields = t.touchedFields, v = v || (
|
|
1023
|
+
j || (H(t.touchedFields, l, h), T.touchedFields = t.touchedFields, v = v || (d.touchedFields || y.touchedFields) && j !== h);
|
|
998
1024
|
}
|
|
999
1025
|
v && S && m.state.next(T);
|
|
1000
1026
|
}
|
|
1001
1027
|
return v ? T : {};
|
|
1002
|
-
}, B = (l,
|
|
1003
|
-
const S = w(t.errors, l), v = (
|
|
1028
|
+
}, B = (l, u, h, x) => {
|
|
1029
|
+
const S = w(t.errors, l), v = (d.isValid || y.isValid) && re(u) && t.isValid !== u;
|
|
1004
1030
|
if (r.delayError && h ? (f = b(() => g(l, h)), f(r.delayError)) : (clearTimeout(c), f = null, h ? H(t.errors, l, h) : G(t.errors, l)), (h ? !le(S, h) : S) || !Y(x) || v) {
|
|
1005
1031
|
const $ = {
|
|
1006
1032
|
...x,
|
|
1007
|
-
...v && re(
|
|
1033
|
+
...v && re(u) ? { isValid: u } : {},
|
|
1008
1034
|
errors: t.errors,
|
|
1009
1035
|
name: l
|
|
1010
1036
|
};
|
|
@@ -1013,21 +1039,21 @@ function Co(e = {}) {
|
|
|
1013
1039
|
...$
|
|
1014
1040
|
}, m.state.next($);
|
|
1015
1041
|
}
|
|
1016
|
-
},
|
|
1042
|
+
}, P = async (l) => {
|
|
1017
1043
|
k(l, !0);
|
|
1018
|
-
const
|
|
1019
|
-
return k(l),
|
|
1044
|
+
const u = await r.resolver(n, r.context, yo(l || i.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
|
|
1045
|
+
return k(l), u;
|
|
1020
1046
|
}, U = async (l) => {
|
|
1021
|
-
const { errors:
|
|
1047
|
+
const { errors: u } = await P(l);
|
|
1022
1048
|
if (l)
|
|
1023
1049
|
for (const h of l) {
|
|
1024
|
-
const x = w(
|
|
1050
|
+
const x = w(u, h);
|
|
1025
1051
|
x ? H(t.errors, h, x) : G(t.errors, h);
|
|
1026
1052
|
}
|
|
1027
1053
|
else
|
|
1028
|
-
t.errors =
|
|
1029
|
-
return
|
|
1030
|
-
},
|
|
1054
|
+
t.errors = u;
|
|
1055
|
+
return u;
|
|
1056
|
+
}, M = async (l, u, h = {
|
|
1031
1057
|
valid: !0
|
|
1032
1058
|
}) => {
|
|
1033
1059
|
for (const x in l) {
|
|
@@ -1035,31 +1061,31 @@ function Co(e = {}) {
|
|
|
1035
1061
|
if (S) {
|
|
1036
1062
|
const { _f: v, ...$ } = S;
|
|
1037
1063
|
if (v) {
|
|
1038
|
-
const T = i.array.has(v.name), j = S._f &&
|
|
1039
|
-
j &&
|
|
1040
|
-
const se = await
|
|
1041
|
-
if (j &&
|
|
1064
|
+
const T = i.array.has(v.name), j = S._f && ho(S._f);
|
|
1065
|
+
j && d.validatingFields && k([v.name], !0);
|
|
1066
|
+
const se = await Zt(S, i.disabled, n, C, r.shouldUseNativeValidation && !u, T);
|
|
1067
|
+
if (j && d.validatingFields && k([v.name]), se[v.name] && (h.valid = !1, u))
|
|
1042
1068
|
break;
|
|
1043
|
-
!
|
|
1069
|
+
!u && (w(se, v.name) ? T ? So(t.errors, se, v.name) : H(t.errors, v.name, se[v.name]) : G(t.errors, v.name));
|
|
1044
1070
|
}
|
|
1045
|
-
!Y($) && await
|
|
1071
|
+
!Y($) && await M($, u, h);
|
|
1046
1072
|
}
|
|
1047
1073
|
}
|
|
1048
1074
|
return h.valid;
|
|
1049
1075
|
}, K = () => {
|
|
1050
1076
|
for (const l of i.unMount) {
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1077
|
+
const u = w(o, l);
|
|
1078
|
+
u && (u._f.refs ? u._f.refs.every((h) => !Ye(h)) : !Ye(u._f.ref)) && qe(l);
|
|
1053
1079
|
}
|
|
1054
1080
|
i.unMount = /* @__PURE__ */ new Set();
|
|
1055
|
-
}, q = (l,
|
|
1056
|
-
...a.mount ? n : W(
|
|
1057
|
-
}, h,
|
|
1081
|
+
}, q = (l, u) => !r.disabled && (l && u && H(n, l, u), !le(Me(), s)), L = (l, u, h) => ut(l, i, {
|
|
1082
|
+
...a.mount ? n : W(u) ? s : oe(l) ? { [l]: u } : u
|
|
1083
|
+
}, h, u), A = (l) => gt(w(a.mount ? n : s, l, r.shouldUnregister ? w(s, l, []) : [])), O = (l, u, h = {}) => {
|
|
1058
1084
|
const x = w(o, l);
|
|
1059
|
-
let S =
|
|
1085
|
+
let S = u;
|
|
1060
1086
|
if (x) {
|
|
1061
1087
|
const v = x._f;
|
|
1062
|
-
v && (!v.disabled && H(n, l, pr(
|
|
1088
|
+
v && (!v.disabled && H(n, l, pr(u, v)), S = He(v.ref) && ee(u) ? "" : u, yr(v.ref) ? [...v.ref.options].forEach(($) => $.selected = S.includes($.value)) : v.refs ? Ae(v.ref) ? v.refs.forEach(($) => {
|
|
1063
1089
|
(!$.defaultChecked || !$.disabled) && (Array.isArray(S) ? $.checked = !!S.find((T) => T === $.value) : $.checked = S === $.value || !!S);
|
|
1064
1090
|
}) : v.refs.forEach(($) => $.checked = $.value === S) : kt(v.ref) ? v.ref.value = "" : (v.ref.value = S, v.ref.type || m.state.next({
|
|
1065
1091
|
name: l,
|
|
@@ -1067,58 +1093,58 @@ function Co(e = {}) {
|
|
|
1067
1093
|
})));
|
|
1068
1094
|
}
|
|
1069
1095
|
(h.shouldDirty || h.shouldTouch) && E(l, S, h.shouldTouch, h.shouldDirty, !0), h.shouldValidate && ve(l);
|
|
1070
|
-
}, I = (l,
|
|
1071
|
-
for (const x in
|
|
1072
|
-
if (!
|
|
1096
|
+
}, I = (l, u, h) => {
|
|
1097
|
+
for (const x in u) {
|
|
1098
|
+
if (!u.hasOwnProperty(x))
|
|
1073
1099
|
return;
|
|
1074
|
-
const S =
|
|
1100
|
+
const S = u[x], v = l + "." + x, $ = w(o, v);
|
|
1075
1101
|
(i.array.has(l) || Z(S) || $ && !$._f) && !_e(S) ? I(v, S, h) : O(v, S, h);
|
|
1076
1102
|
}
|
|
1077
|
-
}, Q = (l,
|
|
1078
|
-
const x = w(o, l), S = i.array.has(l), v = X(
|
|
1103
|
+
}, Q = (l, u, h = {}) => {
|
|
1104
|
+
const x = w(o, l), S = i.array.has(l), v = X(u);
|
|
1079
1105
|
H(n, l, v), S ? (m.array.next({
|
|
1080
1106
|
name: l,
|
|
1081
1107
|
values: X(n)
|
|
1082
|
-
}), (
|
|
1108
|
+
}), (d.isDirty || d.dirtyFields || y.isDirty || y.dirtyFields) && h.shouldDirty && m.state.next({
|
|
1083
1109
|
name: l,
|
|
1084
1110
|
dirtyFields: ke(s, n),
|
|
1085
1111
|
isDirty: q(l, v)
|
|
1086
|
-
})) : x && !x._f && !ee(v) ? I(l, v, h) : O(l, v, h),
|
|
1112
|
+
})) : x && !x._f && !ee(v) ? I(l, v, h) : O(l, v, h), Ut(l, i) && m.state.next({ ...t, name: l }), m.state.next({
|
|
1087
1113
|
name: a.mount ? l : void 0,
|
|
1088
1114
|
values: X(n)
|
|
1089
1115
|
});
|
|
1090
1116
|
}, te = async (l) => {
|
|
1091
1117
|
a.mount = !0;
|
|
1092
|
-
const
|
|
1093
|
-
let h =
|
|
1118
|
+
const u = l.target;
|
|
1119
|
+
let h = u.name, x = !0;
|
|
1094
1120
|
const S = w(o, h), v = (j) => {
|
|
1095
1121
|
x = Number.isNaN(j) || _e(j) && isNaN(j.getTime()) || le(j, w(n, h, j));
|
|
1096
|
-
}, $ =
|
|
1122
|
+
}, $ = jt(r.mode), T = jt(r.reValidateMode);
|
|
1097
1123
|
if (S) {
|
|
1098
1124
|
let j, se;
|
|
1099
|
-
const
|
|
1100
|
-
H(n, h,
|
|
1101
|
-
const Qe = E(h,
|
|
1125
|
+
const Pe = u.type ? Ht(S._f) : cr(l), ye = l.type === Te.BLUR || l.type === Te.FOCUS_OUT, Or = !_o(S._f) && !r.resolver && !w(t.errors, h) && !S._f.deps || vo(ye, w(t.touchedFields, h), t.isSubmitted, T, $), Ke = Ut(h, i, ye);
|
|
1126
|
+
H(n, h, Pe), ye ? (!u || !u.readOnly) && (S._f.onBlur && S._f.onBlur(l), f && f(0)) : S._f.onChange && S._f.onChange(l);
|
|
1127
|
+
const Qe = E(h, Pe, ye), Ir = !Y(Qe) || Ke;
|
|
1102
1128
|
if (!ye && m.state.next({
|
|
1103
1129
|
name: h,
|
|
1104
1130
|
type: l.type,
|
|
1105
1131
|
values: X(n)
|
|
1106
|
-
}),
|
|
1107
|
-
return (
|
|
1132
|
+
}), Or)
|
|
1133
|
+
return (d.isValid || y.isValid) && (r.mode === "onBlur" ? ye && p() : ye || p()), Ir && m.state.next({ name: h, ...Ke ? {} : Qe });
|
|
1108
1134
|
if (!ye && Ke && m.state.next({ ...t }), r.resolver) {
|
|
1109
|
-
const { errors: At } = await
|
|
1110
|
-
if (v(
|
|
1111
|
-
const
|
|
1112
|
-
j =
|
|
1135
|
+
const { errors: At } = await P([h]);
|
|
1136
|
+
if (v(Pe), x) {
|
|
1137
|
+
const Tr = qt(t.errors, o, h), Mt = qt(At, o, Tr.name || h);
|
|
1138
|
+
j = Mt.error, h = Mt.name, se = Y(At);
|
|
1113
1139
|
}
|
|
1114
1140
|
} else
|
|
1115
|
-
k([h], !0), j = (await
|
|
1141
|
+
k([h], !0), j = (await Zt(S, i.disabled, n, C, r.shouldUseNativeValidation))[h], k([h]), v(Pe), x && (j ? se = !1 : (d.isValid || y.isValid) && (se = await M(o, !0)));
|
|
1116
1142
|
x && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && ve(S._f.deps), B(h, se, j, Qe));
|
|
1117
1143
|
}
|
|
1118
|
-
}, me = (l,
|
|
1119
|
-
if (w(t.errors,
|
|
1144
|
+
}, me = (l, u) => {
|
|
1145
|
+
if (w(t.errors, u) && l.focus)
|
|
1120
1146
|
return l.focus(), 1;
|
|
1121
|
-
}, ve = async (l,
|
|
1147
|
+
}, ve = async (l, u = {}) => {
|
|
1122
1148
|
let h, x;
|
|
1123
1149
|
const S = Ne(l);
|
|
1124
1150
|
if (r.resolver) {
|
|
@@ -1126,47 +1152,47 @@ function Co(e = {}) {
|
|
|
1126
1152
|
h = Y(v), x = l ? !S.some(($) => w(v, $)) : h;
|
|
1127
1153
|
} else l ? (x = (await Promise.all(S.map(async (v) => {
|
|
1128
1154
|
const $ = w(o, v);
|
|
1129
|
-
return await
|
|
1130
|
-
}))).every(Boolean), !(!x && !t.isValid) &&
|
|
1155
|
+
return await M($ && $._f ? { [v]: $ } : $);
|
|
1156
|
+
}))).every(Boolean), !(!x && !t.isValid) && p()) : x = h = await M(o);
|
|
1131
1157
|
return m.state.next({
|
|
1132
|
-
...!oe(l) || (
|
|
1158
|
+
...!oe(l) || (d.isValid || y.isValid) && h !== t.isValid ? {} : { name: l },
|
|
1133
1159
|
...r.resolver || !l ? { isValid: h } : {},
|
|
1134
1160
|
errors: t.errors
|
|
1135
|
-
}),
|
|
1136
|
-
},
|
|
1161
|
+
}), u.shouldFocus && !x && $e(o, me, l ? S : i.mount), x;
|
|
1162
|
+
}, Me = (l, u) => {
|
|
1137
1163
|
let h = {
|
|
1138
1164
|
...a.mount ? n : s
|
|
1139
1165
|
};
|
|
1140
|
-
return
|
|
1141
|
-
}, Ct = (l,
|
|
1142
|
-
invalid: !!w((
|
|
1143
|
-
isDirty: !!w((
|
|
1144
|
-
error: w((
|
|
1166
|
+
return u && (h = mr(u.dirtyFields ? t.dirtyFields : t.touchedFields, h)), W(l) ? h : oe(l) ? w(h, l) : l.map((x) => w(h, x));
|
|
1167
|
+
}, Ct = (l, u) => ({
|
|
1168
|
+
invalid: !!w((u || t).errors, l),
|
|
1169
|
+
isDirty: !!w((u || t).dirtyFields, l),
|
|
1170
|
+
error: w((u || t).errors, l),
|
|
1145
1171
|
isValidating: !!w(t.validatingFields, l),
|
|
1146
|
-
isTouched: !!w((
|
|
1147
|
-
}),
|
|
1148
|
-
l && Ne(l).forEach((
|
|
1172
|
+
isTouched: !!w((u || t).touchedFields, l)
|
|
1173
|
+
}), Lr = (l) => {
|
|
1174
|
+
l && Ne(l).forEach((u) => G(t.errors, u)), m.state.next({
|
|
1149
1175
|
errors: l ? t.errors : {}
|
|
1150
1176
|
});
|
|
1151
|
-
}, Ft = (l,
|
|
1177
|
+
}, Ft = (l, u, h) => {
|
|
1152
1178
|
const x = (w(o, l, { _f: {} })._f || {}).ref, S = w(t.errors, l) || {}, { ref: v, message: $, type: T, ...j } = S;
|
|
1153
1179
|
H(t.errors, l, {
|
|
1154
1180
|
...j,
|
|
1155
|
-
...
|
|
1181
|
+
...u,
|
|
1156
1182
|
ref: x
|
|
1157
1183
|
}), m.state.next({
|
|
1158
1184
|
name: l,
|
|
1159
1185
|
errors: t.errors,
|
|
1160
1186
|
isValid: !1
|
|
1161
1187
|
}), h && h.shouldFocus && x && x.focus && x.focus();
|
|
1162
|
-
},
|
|
1163
|
-
next: (h) => "values" in h && l(L(void 0,
|
|
1164
|
-
}) : L(l,
|
|
1165
|
-
next: (
|
|
1166
|
-
|
|
1188
|
+
}, Ar = (l, u) => ce(l) ? m.state.subscribe({
|
|
1189
|
+
next: (h) => "values" in h && l(L(void 0, u), h)
|
|
1190
|
+
}) : L(l, u, !0), Vt = (l) => m.state.subscribe({
|
|
1191
|
+
next: (u) => {
|
|
1192
|
+
go(l.name, u.name, l.exact) && po(u, l.formState || d, Rr, l.reRenderRoot) && l.callback({
|
|
1167
1193
|
values: { ...n },
|
|
1168
1194
|
...t,
|
|
1169
|
-
...
|
|
1195
|
+
...u,
|
|
1170
1196
|
defaultValues: s
|
|
1171
1197
|
});
|
|
1172
1198
|
}
|
|
@@ -1176,48 +1202,48 @@ function Co(e = {}) {
|
|
|
1176
1202
|
}, Vt({
|
|
1177
1203
|
...l,
|
|
1178
1204
|
formState: y
|
|
1179
|
-
})), qe = (l,
|
|
1205
|
+
})), qe = (l, u = {}) => {
|
|
1180
1206
|
for (const h of l ? Ne(l) : i.mount)
|
|
1181
|
-
i.mount.delete(h), i.array.delete(h),
|
|
1207
|
+
i.mount.delete(h), i.array.delete(h), u.keepValue || (G(o, h), G(n, h)), !u.keepError && G(t.errors, h), !u.keepDirty && G(t.dirtyFields, h), !u.keepTouched && G(t.touchedFields, h), !u.keepIsValidating && G(t.validatingFields, h), !r.shouldUnregister && !u.keepDefaultValue && G(s, h);
|
|
1182
1208
|
m.state.next({
|
|
1183
1209
|
values: X(n)
|
|
1184
1210
|
}), m.state.next({
|
|
1185
1211
|
...t,
|
|
1186
|
-
...
|
|
1187
|
-
}), !
|
|
1188
|
-
}, zt = ({ disabled: l, name:
|
|
1189
|
-
(re(l) && a.mount || l || i.disabled.has(
|
|
1190
|
-
}, Ge = (l,
|
|
1212
|
+
...u.keepDirty ? { isDirty: q() } : {}
|
|
1213
|
+
}), !u.keepIsValid && p();
|
|
1214
|
+
}, zt = ({ disabled: l, name: u }) => {
|
|
1215
|
+
(re(l) && a.mount || l || i.disabled.has(u)) && (l ? i.disabled.add(u) : i.disabled.delete(u));
|
|
1216
|
+
}, Ge = (l, u = {}) => {
|
|
1191
1217
|
let h = w(o, l);
|
|
1192
|
-
const x = re(
|
|
1218
|
+
const x = re(u.disabled) || re(r.disabled);
|
|
1193
1219
|
return H(o, l, {
|
|
1194
1220
|
...h || {},
|
|
1195
1221
|
_f: {
|
|
1196
1222
|
...h && h._f ? h._f : { ref: { name: l } },
|
|
1197
1223
|
name: l,
|
|
1198
1224
|
mount: !0,
|
|
1199
|
-
...
|
|
1225
|
+
...u
|
|
1200
1226
|
}
|
|
1201
1227
|
}), i.mount.add(l), h ? zt({
|
|
1202
|
-
disabled: re(
|
|
1228
|
+
disabled: re(u.disabled) ? u.disabled : r.disabled,
|
|
1203
1229
|
name: l
|
|
1204
|
-
}) : z(l, !0,
|
|
1205
|
-
...x ? { disabled:
|
|
1230
|
+
}) : z(l, !0, u.value), {
|
|
1231
|
+
...x ? { disabled: u.disabled || r.disabled } : {},
|
|
1206
1232
|
...r.progressive ? {
|
|
1207
|
-
required: !!
|
|
1208
|
-
min: ze(
|
|
1209
|
-
max: ze(
|
|
1210
|
-
minLength: ze(
|
|
1211
|
-
maxLength: ze(
|
|
1212
|
-
pattern: ze(
|
|
1233
|
+
required: !!u.required,
|
|
1234
|
+
min: ze(u.min),
|
|
1235
|
+
max: ze(u.max),
|
|
1236
|
+
minLength: ze(u.minLength),
|
|
1237
|
+
maxLength: ze(u.maxLength),
|
|
1238
|
+
pattern: ze(u.pattern)
|
|
1213
1239
|
} : {},
|
|
1214
1240
|
name: l,
|
|
1215
1241
|
onChange: te,
|
|
1216
1242
|
onBlur: te,
|
|
1217
1243
|
ref: (S) => {
|
|
1218
1244
|
if (S) {
|
|
1219
|
-
Ge(l,
|
|
1220
|
-
const v = W(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, $ =
|
|
1245
|
+
Ge(l, u), h = w(o, l);
|
|
1246
|
+
const v = W(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, $ = co(v), T = h._f.refs || [];
|
|
1221
1247
|
if ($ ? T.find((j) => j === v) : v === h._f.ref)
|
|
1222
1248
|
return;
|
|
1223
1249
|
H(o, l, {
|
|
@@ -1234,27 +1260,27 @@ function Co(e = {}) {
|
|
|
1234
1260
|
}
|
|
1235
1261
|
}), z(l, !1, void 0, v);
|
|
1236
1262
|
} else
|
|
1237
|
-
h = w(o, l, {}), h._f && (h._f.mount = !1), (r.shouldUnregister ||
|
|
1263
|
+
h = w(o, l, {}), h._f && (h._f.mount = !1), (r.shouldUnregister || u.shouldUnregister) && !(dr(i.array, l) && a.action) && i.unMount.add(l);
|
|
1238
1264
|
}
|
|
1239
1265
|
};
|
|
1240
|
-
}, Ze = () => r.shouldFocusError && $e(o, me, i.mount),
|
|
1241
|
-
re(l) && (m.state.next({ disabled: l }), $e(o, (
|
|
1266
|
+
}, Ze = () => r.shouldFocusError && $e(o, me, i.mount), Pr = (l) => {
|
|
1267
|
+
re(l) && (m.state.next({ disabled: l }), $e(o, (u, h) => {
|
|
1242
1268
|
const x = w(o, h);
|
|
1243
|
-
x && (
|
|
1269
|
+
x && (u.disabled = x._f.disabled || l, Array.isArray(x._f.refs) && x._f.refs.forEach((S) => {
|
|
1244
1270
|
S.disabled = x._f.disabled || l;
|
|
1245
1271
|
}));
|
|
1246
1272
|
}, 0, !1));
|
|
1247
|
-
}, Et = (l,
|
|
1273
|
+
}, Et = (l, u) => async (h) => {
|
|
1248
1274
|
let x;
|
|
1249
1275
|
h && (h.preventDefault && h.preventDefault(), h.persist && h.persist());
|
|
1250
1276
|
let S = X(n);
|
|
1251
1277
|
if (m.state.next({
|
|
1252
1278
|
isSubmitting: !0
|
|
1253
1279
|
}), r.resolver) {
|
|
1254
|
-
const { errors: v, values: $ } = await
|
|
1280
|
+
const { errors: v, values: $ } = await P();
|
|
1255
1281
|
t.errors = v, S = X($);
|
|
1256
1282
|
} else
|
|
1257
|
-
await
|
|
1283
|
+
await M(o);
|
|
1258
1284
|
if (i.disabled.size)
|
|
1259
1285
|
for (const v of i.disabled)
|
|
1260
1286
|
G(S, v);
|
|
@@ -1268,7 +1294,7 @@ function Co(e = {}) {
|
|
|
1268
1294
|
x = v;
|
|
1269
1295
|
}
|
|
1270
1296
|
} else
|
|
1271
|
-
|
|
1297
|
+
u && await u({ ...t.errors }, h), Ze(), setTimeout(Ze);
|
|
1272
1298
|
if (m.state.next({
|
|
1273
1299
|
isSubmitted: !0,
|
|
1274
1300
|
isSubmitting: !1,
|
|
@@ -1277,12 +1303,12 @@ function Co(e = {}) {
|
|
|
1277
1303
|
errors: t.errors
|
|
1278
1304
|
}), x)
|
|
1279
1305
|
throw x;
|
|
1280
|
-
},
|
|
1281
|
-
w(o, l) && (W(
|
|
1282
|
-
}, Nt = (l,
|
|
1306
|
+
}, Br = (l, u = {}) => {
|
|
1307
|
+
w(o, l) && (W(u.defaultValue) ? Q(l, X(w(s, l))) : (Q(l, u.defaultValue), H(s, l, X(u.defaultValue))), u.keepTouched || G(t.touchedFields, l), u.keepDirty || (G(t.dirtyFields, l), t.isDirty = u.defaultValue ? q(l, X(w(s, l))) : q()), u.keepError || (G(t.errors, l), d.isValid && p()), m.state.next({ ...t }));
|
|
1308
|
+
}, Nt = (l, u = {}) => {
|
|
1283
1309
|
const h = l ? X(l) : s, x = X(h), S = Y(l), v = S ? s : x;
|
|
1284
|
-
if (
|
|
1285
|
-
if (
|
|
1310
|
+
if (u.keepDefaultValues || (s = h), !u.keepValues) {
|
|
1311
|
+
if (u.keepDirtyValues) {
|
|
1286
1312
|
const $ = /* @__PURE__ */ new Set([
|
|
1287
1313
|
...i.mount,
|
|
1288
1314
|
...Object.keys(ke(s, n))
|
|
@@ -1304,44 +1330,44 @@ function Co(e = {}) {
|
|
|
1304
1330
|
}
|
|
1305
1331
|
}
|
|
1306
1332
|
}
|
|
1307
|
-
if (
|
|
1333
|
+
if (u.keepFieldsRef)
|
|
1308
1334
|
for (const $ of i.mount)
|
|
1309
1335
|
Q($, w(v, $));
|
|
1310
1336
|
else
|
|
1311
1337
|
o = {};
|
|
1312
1338
|
}
|
|
1313
|
-
n = r.shouldUnregister ?
|
|
1339
|
+
n = r.shouldUnregister ? u.keepDefaultValues ? X(s) : {} : X(v), m.array.next({
|
|
1314
1340
|
values: { ...v }
|
|
1315
1341
|
}), m.state.next({
|
|
1316
1342
|
values: { ...v }
|
|
1317
1343
|
});
|
|
1318
1344
|
}
|
|
1319
1345
|
i = {
|
|
1320
|
-
mount:
|
|
1346
|
+
mount: u.keepDirtyValues ? i.mount : /* @__PURE__ */ new Set(),
|
|
1321
1347
|
unMount: /* @__PURE__ */ new Set(),
|
|
1322
1348
|
array: /* @__PURE__ */ new Set(),
|
|
1323
1349
|
disabled: /* @__PURE__ */ new Set(),
|
|
1324
1350
|
watch: /* @__PURE__ */ new Set(),
|
|
1325
1351
|
watchAll: !1,
|
|
1326
1352
|
focus: ""
|
|
1327
|
-
}, a.mount = !
|
|
1328
|
-
submitCount:
|
|
1329
|
-
isDirty: S ? !1 :
|
|
1330
|
-
isSubmitted:
|
|
1331
|
-
dirtyFields: S ? {} :
|
|
1332
|
-
touchedFields:
|
|
1333
|
-
errors:
|
|
1334
|
-
isSubmitSuccessful:
|
|
1353
|
+
}, a.mount = !d.isValid || !!u.keepIsValid || !!u.keepDirtyValues || !r.shouldUnregister && !Y(v), a.watch = !!r.shouldUnregister, m.state.next({
|
|
1354
|
+
submitCount: u.keepSubmitCount ? t.submitCount : 0,
|
|
1355
|
+
isDirty: S ? !1 : u.keepDirty ? t.isDirty : !!(u.keepDefaultValues && !le(l, s)),
|
|
1356
|
+
isSubmitted: u.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1357
|
+
dirtyFields: S ? {} : u.keepDirtyValues ? u.keepDefaultValues && n ? ke(s, n) : t.dirtyFields : u.keepDefaultValues && l ? ke(s, l) : u.keepDirty ? t.dirtyFields : {},
|
|
1358
|
+
touchedFields: u.keepTouched ? t.touchedFields : {},
|
|
1359
|
+
errors: u.keepErrors ? t.errors : {},
|
|
1360
|
+
isSubmitSuccessful: u.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
1335
1361
|
isSubmitting: !1,
|
|
1336
1362
|
defaultValues: s
|
|
1337
1363
|
});
|
|
1338
|
-
}, $t = (l,
|
|
1364
|
+
}, $t = (l, u) => Nt(ce(l) ? l(n) : l, u), Dr = (l, u = {}) => {
|
|
1339
1365
|
const h = w(o, l), x = h && h._f;
|
|
1340
1366
|
if (x) {
|
|
1341
1367
|
const S = x.refs ? x.refs[0] : x.ref;
|
|
1342
|
-
S.focus && (S.focus(),
|
|
1368
|
+
S.focus && (S.focus(), u.shouldSelect && ce(S.select) && S.select());
|
|
1343
1369
|
}
|
|
1344
|
-
},
|
|
1370
|
+
}, Rr = (l) => {
|
|
1345
1371
|
t = {
|
|
1346
1372
|
...t,
|
|
1347
1373
|
...l
|
|
@@ -1354,11 +1380,11 @@ function Co(e = {}) {
|
|
|
1354
1380
|
handleSubmit: Et,
|
|
1355
1381
|
setError: Ft,
|
|
1356
1382
|
_subscribe: Vt,
|
|
1357
|
-
_runSchema:
|
|
1383
|
+
_runSchema: P,
|
|
1358
1384
|
_focusError: Ze,
|
|
1359
1385
|
_getWatch: L,
|
|
1360
1386
|
_getDirty: q,
|
|
1361
|
-
_setValid:
|
|
1387
|
+
_setValid: p,
|
|
1362
1388
|
_setFieldArray: V,
|
|
1363
1389
|
_setDisabledField: zt,
|
|
1364
1390
|
_setErrors: F,
|
|
@@ -1370,9 +1396,9 @@ function Co(e = {}) {
|
|
|
1370
1396
|
});
|
|
1371
1397
|
}),
|
|
1372
1398
|
_removeUnmounted: K,
|
|
1373
|
-
_disableForm:
|
|
1399
|
+
_disableForm: Pr,
|
|
1374
1400
|
_subjects: m,
|
|
1375
|
-
_proxyFormState:
|
|
1401
|
+
_proxyFormState: d,
|
|
1376
1402
|
get _fields() {
|
|
1377
1403
|
return o;
|
|
1378
1404
|
},
|
|
@@ -1411,15 +1437,15 @@ function Co(e = {}) {
|
|
|
1411
1437
|
trigger: ve,
|
|
1412
1438
|
register: Ge,
|
|
1413
1439
|
handleSubmit: Et,
|
|
1414
|
-
watch:
|
|
1440
|
+
watch: Ar,
|
|
1415
1441
|
setValue: Q,
|
|
1416
|
-
getValues:
|
|
1442
|
+
getValues: Me,
|
|
1417
1443
|
reset: $t,
|
|
1418
|
-
resetField:
|
|
1419
|
-
clearErrors:
|
|
1444
|
+
resetField: Br,
|
|
1445
|
+
clearErrors: Lr,
|
|
1420
1446
|
unregister: qe,
|
|
1421
1447
|
setError: Ft,
|
|
1422
|
-
setFocus:
|
|
1448
|
+
setFocus: Dr,
|
|
1423
1449
|
getFieldState: Ct
|
|
1424
1450
|
};
|
|
1425
1451
|
return {
|
|
@@ -1427,7 +1453,7 @@ function Co(e = {}) {
|
|
|
1427
1453
|
formControl: Lt
|
|
1428
1454
|
};
|
|
1429
1455
|
}
|
|
1430
|
-
function
|
|
1456
|
+
function xo(e = {}) {
|
|
1431
1457
|
const r = N.useRef(void 0), t = N.useRef(void 0), [o, s] = N.useState({
|
|
1432
1458
|
isDirty: !1,
|
|
1433
1459
|
isValidating: !1,
|
|
@@ -1452,7 +1478,7 @@ function Fo(e = {}) {
|
|
|
1452
1478
|
formState: o
|
|
1453
1479
|
}, e.defaultValues && !ce(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1454
1480
|
else {
|
|
1455
|
-
const { formControl: a, ...i } =
|
|
1481
|
+
const { formControl: a, ...i } = ko(e);
|
|
1456
1482
|
r.current = {
|
|
1457
1483
|
...i,
|
|
1458
1484
|
formState: o
|
|
@@ -1493,7 +1519,7 @@ function Fo(e = {}) {
|
|
|
1493
1519
|
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
1520
|
}), r.current.formState = fr(o, n), r.current;
|
|
1495
1521
|
}
|
|
1496
|
-
const
|
|
1522
|
+
const Kt = (e, r, t) => {
|
|
1497
1523
|
if (e && "reportValidity" in e) {
|
|
1498
1524
|
const o = w(t, r);
|
|
1499
1525
|
e.setCustomValidity(o && o.message || ""), e.reportValidity();
|
|
@@ -1501,24 +1527,24 @@ const Zt = (e, r, t) => {
|
|
|
1501
1527
|
}, yt = (e, r) => {
|
|
1502
1528
|
for (const t in r.fields) {
|
|
1503
1529
|
const o = r.fields[t];
|
|
1504
|
-
o && o.ref && "reportValidity" in o.ref ?
|
|
1530
|
+
o && o.ref && "reportValidity" in o.ref ? Kt(o.ref, t, e) : o && o.refs && o.refs.forEach((s) => Kt(s, t, e));
|
|
1505
1531
|
}
|
|
1506
|
-
},
|
|
1532
|
+
}, Qt = (e, r) => {
|
|
1507
1533
|
r.shouldUseNativeValidation && yt(e, r);
|
|
1508
1534
|
const t = {};
|
|
1509
1535
|
for (const o in e) {
|
|
1510
1536
|
const s = w(r.fields, o), n = Object.assign(e[o] || {}, { ref: s && s.ref });
|
|
1511
|
-
if (
|
|
1537
|
+
if (Co(r.names || Object.keys(e), o)) {
|
|
1512
1538
|
const a = Object.assign({}, w(t, o));
|
|
1513
1539
|
H(a, "root", n), H(t, o, a);
|
|
1514
1540
|
} else H(t, o, n);
|
|
1515
1541
|
}
|
|
1516
1542
|
return t;
|
|
1517
|
-
},
|
|
1518
|
-
const t =
|
|
1519
|
-
return e.some((o) =>
|
|
1543
|
+
}, Co = (e, r) => {
|
|
1544
|
+
const t = Xt(r);
|
|
1545
|
+
return e.some((o) => Xt(o).match(`^${t}\\.\\d+`));
|
|
1520
1546
|
};
|
|
1521
|
-
function
|
|
1547
|
+
function Xt(e) {
|
|
1522
1548
|
return e.replace(/\]|\[/g, "");
|
|
1523
1549
|
}
|
|
1524
1550
|
function vr(e, r, t) {
|
|
@@ -1528,8 +1554,8 @@ function vr(e, r, t) {
|
|
|
1528
1554
|
value: i._zod ?? {},
|
|
1529
1555
|
enumerable: !1
|
|
1530
1556
|
}), (c = i._zod).traits ?? (c.traits = /* @__PURE__ */ new Set()), i._zod.traits.add(e), r(i, f);
|
|
1531
|
-
for (const
|
|
1532
|
-
|
|
1557
|
+
for (const d in a.prototype)
|
|
1558
|
+
d in i || Object.defineProperty(i, d, { value: a.prototype[d].bind(i) });
|
|
1533
1559
|
i._zod.constr = a, i._zod.def = f;
|
|
1534
1560
|
}
|
|
1535
1561
|
const s = (t == null ? void 0 : t.Parent) ?? Object;
|
|
@@ -1540,8 +1566,8 @@ function vr(e, r, t) {
|
|
|
1540
1566
|
var f;
|
|
1541
1567
|
const c = t != null && t.Parent ? new n() : this;
|
|
1542
1568
|
o(c, i), (f = c._zod).deferred ?? (f.deferred = []);
|
|
1543
|
-
for (const
|
|
1544
|
-
|
|
1569
|
+
for (const d of c._zod.deferred)
|
|
1570
|
+
d();
|
|
1545
1571
|
return c;
|
|
1546
1572
|
}
|
|
1547
1573
|
return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, {
|
|
@@ -1551,16 +1577,16 @@ function vr(e, r, t) {
|
|
|
1551
1577
|
}
|
|
1552
1578
|
}), Object.defineProperty(a, "name", { value: e }), a;
|
|
1553
1579
|
}
|
|
1554
|
-
class
|
|
1580
|
+
class Fo extends Error {
|
|
1555
1581
|
constructor() {
|
|
1556
1582
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
1557
1583
|
}
|
|
1558
1584
|
}
|
|
1559
|
-
const
|
|
1585
|
+
const Vo = {};
|
|
1560
1586
|
function br(e) {
|
|
1561
|
-
return
|
|
1587
|
+
return Vo;
|
|
1562
1588
|
}
|
|
1563
|
-
function
|
|
1589
|
+
function zo(e, r) {
|
|
1564
1590
|
return typeof r == "bigint" ? r.toString() : r;
|
|
1565
1591
|
}
|
|
1566
1592
|
const Sr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
@@ -1572,8 +1598,8 @@ function wr(e, r, t) {
|
|
|
1572
1598
|
var s, n, a, i, f, c;
|
|
1573
1599
|
const o = { ...e, path: e.path ?? [] };
|
|
1574
1600
|
if (!e.message) {
|
|
1575
|
-
const
|
|
1576
|
-
o.message =
|
|
1601
|
+
const d = Oe((a = (n = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? Oe((i = r == null ? void 0 : r.error) == null ? void 0 : i.call(r, e)) ?? Oe((f = t.customError) == null ? void 0 : f.call(t, e)) ?? Oe((c = t.localeError) == null ? void 0 : c.call(t, e)) ?? "Invalid input";
|
|
1602
|
+
o.message = d;
|
|
1577
1603
|
}
|
|
1578
1604
|
return delete o.inst, delete o.continue, r != null && r.reportInput || delete o.input, o;
|
|
1579
1605
|
}
|
|
@@ -1584,20 +1610,20 @@ const kr = (e, r) => {
|
|
|
1584
1610
|
}), Object.defineProperty(e, "issues", {
|
|
1585
1611
|
value: r,
|
|
1586
1612
|
enumerable: !1
|
|
1587
|
-
}), e.message = JSON.stringify(r,
|
|
1613
|
+
}), e.message = JSON.stringify(r, zo, 2), Object.defineProperty(e, "toString", {
|
|
1588
1614
|
value: () => e.message,
|
|
1589
1615
|
enumerable: !1
|
|
1590
1616
|
});
|
|
1591
|
-
},
|
|
1617
|
+
}, Eo = vr("$ZodError", kr), xr = vr("$ZodError", kr, { Parent: Error }), No = (e) => (r, t, o, s) => {
|
|
1592
1618
|
const n = o ? Object.assign(o, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
|
|
1593
1619
|
if (a instanceof Promise)
|
|
1594
|
-
throw new
|
|
1620
|
+
throw new Fo();
|
|
1595
1621
|
if (a.issues.length) {
|
|
1596
1622
|
const i = new ((s == null ? void 0 : s.Err) ?? e)(a.issues.map((f) => wr(f, n, br())));
|
|
1597
1623
|
throw Sr(i, s == null ? void 0 : s.callee), i;
|
|
1598
1624
|
}
|
|
1599
1625
|
return a.value;
|
|
1600
|
-
},
|
|
1626
|
+
}, $o = /* @__PURE__ */ No(xr), Lo = (e) => async (r, t, o, s) => {
|
|
1601
1627
|
const n = o ? Object.assign(o, { async: !0 }) : { async: !0 };
|
|
1602
1628
|
let a = r._zod.run({ value: t, issues: [] }, n);
|
|
1603
1629
|
if (a instanceof Promise && (a = await a), a.issues.length) {
|
|
@@ -1605,8 +1631,8 @@ const kr = (e, r) => {
|
|
|
1605
1631
|
throw Sr(i, s == null ? void 0 : s.callee), i;
|
|
1606
1632
|
}
|
|
1607
1633
|
return a.value;
|
|
1608
|
-
},
|
|
1609
|
-
function
|
|
1634
|
+
}, Ao = /* @__PURE__ */ Lo(xr);
|
|
1635
|
+
function Jt(e, r) {
|
|
1610
1636
|
try {
|
|
1611
1637
|
var t = e();
|
|
1612
1638
|
} catch (o) {
|
|
@@ -1614,15 +1640,15 @@ function Xt(e, r) {
|
|
|
1614
1640
|
}
|
|
1615
1641
|
return t && t.then ? t.then(void 0, r) : t;
|
|
1616
1642
|
}
|
|
1617
|
-
function
|
|
1643
|
+
function Mo(e, r) {
|
|
1618
1644
|
for (var t = {}; e.length; ) {
|
|
1619
1645
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1620
1646
|
if (!t[a]) if ("unionErrors" in o) {
|
|
1621
1647
|
var i = o.unionErrors[0].errors[0];
|
|
1622
1648
|
t[a] = { message: i.message, type: i.code };
|
|
1623
1649
|
} else t[a] = { message: n, type: s };
|
|
1624
|
-
if ("unionErrors" in o && o.unionErrors.forEach(function(
|
|
1625
|
-
return
|
|
1650
|
+
if ("unionErrors" in o && o.unionErrors.forEach(function(d) {
|
|
1651
|
+
return d.errors.forEach(function(y) {
|
|
1626
1652
|
return e.push(y);
|
|
1627
1653
|
});
|
|
1628
1654
|
}), r) {
|
|
@@ -1633,15 +1659,15 @@ function Bo(e, r) {
|
|
|
1633
1659
|
}
|
|
1634
1660
|
return t;
|
|
1635
1661
|
}
|
|
1636
|
-
function
|
|
1662
|
+
function Po(e, r) {
|
|
1637
1663
|
for (var t = {}; e.length; ) {
|
|
1638
1664
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1639
1665
|
if (!t[a]) if (o.code === "invalid_union" && o.errors.length > 0) {
|
|
1640
1666
|
var i = o.errors[0][0];
|
|
1641
1667
|
t[a] = { message: i.message, type: i.code };
|
|
1642
1668
|
} else t[a] = { message: n, type: s };
|
|
1643
|
-
if (o.code === "invalid_union" && o.errors.forEach(function(
|
|
1644
|
-
return
|
|
1669
|
+
if (o.code === "invalid_union" && o.errors.forEach(function(d) {
|
|
1670
|
+
return d.forEach(function(y) {
|
|
1645
1671
|
return e.push(y);
|
|
1646
1672
|
});
|
|
1647
1673
|
}), r) {
|
|
@@ -1652,19 +1678,19 @@ function Do(e, r) {
|
|
|
1652
1678
|
}
|
|
1653
1679
|
return t;
|
|
1654
1680
|
}
|
|
1655
|
-
function
|
|
1681
|
+
function Bo(e, r, t) {
|
|
1656
1682
|
if (t === void 0 && (t = {}), (function(o) {
|
|
1657
1683
|
return "_def" in o && typeof o._def == "object" && "typeName" in o._def;
|
|
1658
1684
|
})(e)) return function(o, s, n) {
|
|
1659
1685
|
try {
|
|
1660
|
-
return Promise.resolve(
|
|
1686
|
+
return Promise.resolve(Jt(function() {
|
|
1661
1687
|
return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](o, r)).then(function(a) {
|
|
1662
1688
|
return n.shouldUseNativeValidation && yt({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
|
|
1663
1689
|
});
|
|
1664
1690
|
}, function(a) {
|
|
1665
1691
|
if ((function(i) {
|
|
1666
1692
|
return Array.isArray(i == null ? void 0 : i.issues);
|
|
1667
|
-
})(a)) return { values: {}, errors:
|
|
1693
|
+
})(a)) return { values: {}, errors: Qt(Mo(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1668
1694
|
throw a;
|
|
1669
1695
|
}));
|
|
1670
1696
|
} catch (a) {
|
|
@@ -1675,14 +1701,14 @@ function Ro(e, r, t) {
|
|
|
1675
1701
|
return "_zod" in o && typeof o._zod == "object";
|
|
1676
1702
|
})(e)) return function(o, s, n) {
|
|
1677
1703
|
try {
|
|
1678
|
-
return Promise.resolve(
|
|
1679
|
-
return Promise.resolve((t.mode === "sync" ?
|
|
1704
|
+
return Promise.resolve(Jt(function() {
|
|
1705
|
+
return Promise.resolve((t.mode === "sync" ? $o : Ao)(e, o, r)).then(function(a) {
|
|
1680
1706
|
return n.shouldUseNativeValidation && yt({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
|
|
1681
1707
|
});
|
|
1682
1708
|
}, function(a) {
|
|
1683
1709
|
if ((function(i) {
|
|
1684
|
-
return i instanceof
|
|
1685
|
-
})(a)) return { values: {}, errors:
|
|
1710
|
+
return i instanceof Eo;
|
|
1711
|
+
})(a)) return { values: {}, errors: Qt(Po(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1686
1712
|
throw a;
|
|
1687
1713
|
}));
|
|
1688
1714
|
} catch (a) {
|
|
@@ -1692,13 +1718,13 @@ function Ro(e, r, t) {
|
|
|
1692
1718
|
throw new Error("Invalid input: not a Zod schema");
|
|
1693
1719
|
}
|
|
1694
1720
|
const Cr = N.createContext(null);
|
|
1695
|
-
function
|
|
1721
|
+
function Do() {
|
|
1696
1722
|
const e = N.useContext(Cr);
|
|
1697
1723
|
if (!e)
|
|
1698
1724
|
throw new Error("useFormContext must be used within a Form component");
|
|
1699
1725
|
return e;
|
|
1700
1726
|
}
|
|
1701
|
-
function
|
|
1727
|
+
function Ro({
|
|
1702
1728
|
onSubmit: e,
|
|
1703
1729
|
children: r,
|
|
1704
1730
|
schema: t,
|
|
@@ -1709,17 +1735,17 @@ function Io({
|
|
|
1709
1735
|
style: i,
|
|
1710
1736
|
formProps: f
|
|
1711
1737
|
}) {
|
|
1712
|
-
const c =
|
|
1713
|
-
resolver: t ?
|
|
1738
|
+
const c = xo({
|
|
1739
|
+
resolver: t ? Bo(t) : void 0,
|
|
1714
1740
|
defaultValues: o,
|
|
1715
1741
|
mode: s,
|
|
1716
1742
|
reValidateMode: n
|
|
1717
|
-
}),
|
|
1718
|
-
return /* @__PURE__ */
|
|
1743
|
+
}), d = c.handleSubmit(e);
|
|
1744
|
+
return /* @__PURE__ */ _(Cr.Provider, { value: c, children: /* @__PURE__ */ _("form", { ...f, className: a, style: i, onSubmit: d, children: typeof r == "function" ? r(c) : r }) });
|
|
1719
1745
|
}
|
|
1720
|
-
const ca =
|
|
1721
|
-
formError:
|
|
1722
|
-
},
|
|
1746
|
+
const ca = Ro, Oo = "FormError-module__formError___kaUBn", Io = {
|
|
1747
|
+
formError: Oo
|
|
1748
|
+
}, To = ({
|
|
1723
1749
|
// Color prop
|
|
1724
1750
|
color: e,
|
|
1725
1751
|
// Content
|
|
@@ -1735,15 +1761,15 @@ const ca = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1735
1761
|
color: e || n.colors.error,
|
|
1736
1762
|
...o
|
|
1737
1763
|
// Top level style prop overrides
|
|
1738
|
-
}, i = [
|
|
1739
|
-
return /* @__PURE__ */
|
|
1740
|
-
},
|
|
1741
|
-
formGroup:
|
|
1742
|
-
inputWrapper:
|
|
1743
|
-
indented:
|
|
1744
|
-
disabled:
|
|
1745
|
-
required:
|
|
1746
|
-
},
|
|
1764
|
+
}, i = [Io.formError, t].filter(Boolean).join(" ");
|
|
1765
|
+
return /* @__PURE__ */ _("div", { ...s, className: i, style: a, role: "alert", "aria-live": "polite", children: r });
|
|
1766
|
+
}, Ho = "FormGroup-module__formGroup___aVI-B", jo = "FormGroup-module__inputWrapper___429QE", Wo = "FormGroup-module__indented___t61iz", Uo = "FormGroup-module__disabled___W-tJ0", qo = "FormGroup-module__required___mO3xA", Se = {
|
|
1767
|
+
formGroup: Ho,
|
|
1768
|
+
inputWrapper: jo,
|
|
1769
|
+
indented: Wo,
|
|
1770
|
+
disabled: Uo,
|
|
1771
|
+
required: qo
|
|
1772
|
+
}, Go = ({
|
|
1747
1773
|
// State props
|
|
1748
1774
|
disabled: e = !1,
|
|
1749
1775
|
error: r = !1,
|
|
@@ -1759,7 +1785,7 @@ const ca = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1759
1785
|
children: f,
|
|
1760
1786
|
// Style overrides
|
|
1761
1787
|
className: c,
|
|
1762
|
-
style:
|
|
1788
|
+
style: d,
|
|
1763
1789
|
// Element-specific props
|
|
1764
1790
|
divProps: y
|
|
1765
1791
|
}) => {
|
|
@@ -1770,8 +1796,8 @@ const ca = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1770
1796
|
c
|
|
1771
1797
|
].filter(Boolean).join(" "), b = {
|
|
1772
1798
|
"--form-group-margin-bottom": `calc(${m.fonts.rhythm} * 0.35)`,
|
|
1773
|
-
...
|
|
1774
|
-
},
|
|
1799
|
+
...d
|
|
1800
|
+
}, p = N.Children.map(f, (k) => {
|
|
1775
1801
|
if (N.isValidElement(k)) {
|
|
1776
1802
|
const V = {};
|
|
1777
1803
|
if (e && k.props.disabled === void 0 && (V.disabled = !0), r && k.props.error === void 0 && (V.error = !0), s && k.props.id === void 0 && k.type !== N.Fragment && (V.id = s), Object.keys(V).length > 0)
|
|
@@ -1787,8 +1813,8 @@ const ca = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1787
1813
|
"*"
|
|
1788
1814
|
] })
|
|
1789
1815
|
] }),
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
r && a && /* @__PURE__ */
|
|
1816
|
+
/* @__PURE__ */ _("div", { className: `${Se.inputWrapper} ${o ? Se.indented : ""}`, children: p }),
|
|
1817
|
+
r && a && /* @__PURE__ */ _(To, { children: a })
|
|
1792
1818
|
] });
|
|
1793
1819
|
};
|
|
1794
1820
|
function ge({
|
|
@@ -1803,16 +1829,16 @@ function ge({
|
|
|
1803
1829
|
indent: f,
|
|
1804
1830
|
labelProps: c
|
|
1805
1831
|
}) {
|
|
1806
|
-
const { control:
|
|
1832
|
+
const { control: d } = Do(), {
|
|
1807
1833
|
field: y,
|
|
1808
1834
|
fieldState: { error: m }
|
|
1809
|
-
} =
|
|
1835
|
+
} = lo({
|
|
1810
1836
|
name: e,
|
|
1811
|
-
control:
|
|
1837
|
+
control: d,
|
|
1812
1838
|
rules: s
|
|
1813
1839
|
});
|
|
1814
|
-
return /* @__PURE__ */
|
|
1815
|
-
|
|
1840
|
+
return /* @__PURE__ */ _(
|
|
1841
|
+
Go,
|
|
1816
1842
|
{
|
|
1817
1843
|
label: r,
|
|
1818
1844
|
name: e,
|
|
@@ -1835,11 +1861,11 @@ function ge({
|
|
|
1835
1861
|
}
|
|
1836
1862
|
);
|
|
1837
1863
|
}
|
|
1838
|
-
const
|
|
1839
|
-
input:
|
|
1840
|
-
sizeSmall:
|
|
1841
|
-
sizeLarge:
|
|
1842
|
-
},
|
|
1864
|
+
const Zo = "Input-module__input___WjT81", Ko = "Input-module__sizeSmall___NFvsi", Qo = "Input-module__sizeLarge___4Boj3", et = {
|
|
1865
|
+
input: Zo,
|
|
1866
|
+
sizeSmall: Ko,
|
|
1867
|
+
sizeLarge: Qo
|
|
1868
|
+
}, Xo = ({
|
|
1843
1869
|
color: e = "#000",
|
|
1844
1870
|
disabled: r = !1,
|
|
1845
1871
|
fontSize: t = "1em",
|
|
@@ -1850,7 +1876,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1850
1876
|
fontSize: t,
|
|
1851
1877
|
opacity: r ? 0.3 : 1,
|
|
1852
1878
|
placeholderOpacity: o
|
|
1853
|
-
}),
|
|
1879
|
+
}), Jo = ({
|
|
1854
1880
|
// State props
|
|
1855
1881
|
disabled: e = !1,
|
|
1856
1882
|
error: r = !1,
|
|
@@ -1866,7 +1892,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1866
1892
|
type: f = "text",
|
|
1867
1893
|
value: c = "",
|
|
1868
1894
|
// Event handlers
|
|
1869
|
-
onChange:
|
|
1895
|
+
onChange: d,
|
|
1870
1896
|
onBlur: y,
|
|
1871
1897
|
// Standard React props
|
|
1872
1898
|
className: m,
|
|
@@ -1874,18 +1900,17 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1874
1900
|
// Element-specific props
|
|
1875
1901
|
inputProps: b
|
|
1876
1902
|
}) => {
|
|
1877
|
-
const
|
|
1903
|
+
const p = R(), k = p.colors.error, V = r ? k : t || p.colors.primary, g = Xo({
|
|
1878
1904
|
color: V,
|
|
1879
1905
|
disabled: e,
|
|
1880
|
-
fontSize: _.fonts.size,
|
|
1881
1906
|
placeholderOpacity: i
|
|
1882
1907
|
}), F = {
|
|
1883
1908
|
"--placeholder-opacity": g.placeholderOpacity,
|
|
1884
|
-
"--input-padding-small": `calc(${
|
|
1885
|
-
"--input-padding-large": `calc(${
|
|
1909
|
+
"--input-padding-small": `calc(${p.fonts.rhythm} * ${p.sizes.small.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,
|
|
1910
|
+
"--input-padding-large": `calc(${p.fonts.rhythm} * ${p.sizes.large.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,
|
|
1886
1911
|
borderColor: g.borderColor,
|
|
1887
|
-
borderWidth:
|
|
1888
|
-
borderRadius:
|
|
1912
|
+
borderWidth: p.border.width,
|
|
1913
|
+
borderRadius: p.border.radius,
|
|
1889
1914
|
color: g.color,
|
|
1890
1915
|
fontSize: g.fontSize,
|
|
1891
1916
|
opacity: g.opacity,
|
|
@@ -1896,7 +1921,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1896
1921
|
o === "small" ? et.sizeSmall : et.sizeLarge,
|
|
1897
1922
|
m
|
|
1898
1923
|
].filter(Boolean).join(" ");
|
|
1899
|
-
return /* @__PURE__ */
|
|
1924
|
+
return /* @__PURE__ */ _(
|
|
1900
1925
|
"input",
|
|
1901
1926
|
{
|
|
1902
1927
|
...b,
|
|
@@ -1904,7 +1929,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1904
1929
|
disabled: e,
|
|
1905
1930
|
id: s,
|
|
1906
1931
|
name: n,
|
|
1907
|
-
onChange:
|
|
1932
|
+
onChange: d,
|
|
1908
1933
|
onBlur: y,
|
|
1909
1934
|
placeholder: a,
|
|
1910
1935
|
type: f,
|
|
@@ -1913,7 +1938,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1913
1938
|
}
|
|
1914
1939
|
);
|
|
1915
1940
|
};
|
|
1916
|
-
function
|
|
1941
|
+
function da({
|
|
1917
1942
|
name: e,
|
|
1918
1943
|
label: r,
|
|
1919
1944
|
required: t,
|
|
@@ -1923,7 +1948,7 @@ function ua({
|
|
|
1923
1948
|
style: a,
|
|
1924
1949
|
...i
|
|
1925
1950
|
}) {
|
|
1926
|
-
return /* @__PURE__ */
|
|
1951
|
+
return /* @__PURE__ */ _(
|
|
1927
1952
|
ge,
|
|
1928
1953
|
{
|
|
1929
1954
|
name: e,
|
|
@@ -1933,25 +1958,25 @@ function ua({
|
|
|
1933
1958
|
disabled: s,
|
|
1934
1959
|
className: n,
|
|
1935
1960
|
style: a,
|
|
1936
|
-
children: ({ value: f, onChange: c, onBlur:
|
|
1937
|
-
|
|
1961
|
+
children: ({ value: f, onChange: c, onBlur: d, name: y, error: m }) => /* @__PURE__ */ _(
|
|
1962
|
+
Jo,
|
|
1938
1963
|
{
|
|
1939
1964
|
...i,
|
|
1940
1965
|
name: y,
|
|
1941
1966
|
value: f || "",
|
|
1942
1967
|
onChange: (C) => c(C.target.value),
|
|
1943
|
-
onBlur:
|
|
1968
|
+
onBlur: d,
|
|
1944
1969
|
error: m
|
|
1945
1970
|
}
|
|
1946
1971
|
)
|
|
1947
1972
|
}
|
|
1948
1973
|
);
|
|
1949
1974
|
}
|
|
1950
|
-
const
|
|
1951
|
-
textarea:
|
|
1952
|
-
sizeSmall:
|
|
1953
|
-
sizeLarge:
|
|
1954
|
-
},
|
|
1975
|
+
const Yo = "Textarea-module__textarea___Z-y6g", es = "Textarea-module__sizeSmall___HHFEM", ts = "Textarea-module__sizeLarge___5a3sf", tt = {
|
|
1976
|
+
textarea: Yo,
|
|
1977
|
+
sizeSmall: es,
|
|
1978
|
+
sizeLarge: ts
|
|
1979
|
+
}, rs = ({
|
|
1955
1980
|
color: e = "#000",
|
|
1956
1981
|
disabled: r = !1,
|
|
1957
1982
|
placeholderOpacity: t = 0.3
|
|
@@ -1960,7 +1985,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
1960
1985
|
borderColor: e,
|
|
1961
1986
|
opacity: r ? 0.3 : 1,
|
|
1962
1987
|
placeholderOpacity: t
|
|
1963
|
-
}),
|
|
1988
|
+
}), os = ({
|
|
1964
1989
|
// State props
|
|
1965
1990
|
disabled: e = !1,
|
|
1966
1991
|
error: r = !1,
|
|
@@ -1976,7 +2001,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
1976
2001
|
rows: f = 3,
|
|
1977
2002
|
value: c = "",
|
|
1978
2003
|
// Event handlers
|
|
1979
|
-
onChange:
|
|
2004
|
+
onChange: d,
|
|
1980
2005
|
onBlur: y,
|
|
1981
2006
|
// Standard React props
|
|
1982
2007
|
className: m,
|
|
@@ -1984,19 +2009,19 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
1984
2009
|
// Element-specific props
|
|
1985
2010
|
textareaProps: b
|
|
1986
2011
|
}) => {
|
|
1987
|
-
const
|
|
2012
|
+
const p = R(), k = p.colors.error, V = r ? k : t || p.colors.primary, g = rs({
|
|
1988
2013
|
color: V,
|
|
1989
2014
|
disabled: e,
|
|
1990
2015
|
placeholderOpacity: i
|
|
1991
2016
|
}), F = {
|
|
1992
2017
|
"--placeholder-opacity": g.placeholderOpacity,
|
|
1993
|
-
"--textarea-padding-small": `calc(${
|
|
1994
|
-
"--textarea-padding-large": `calc(${
|
|
2018
|
+
"--textarea-padding-small": `calc(${p.fonts.rhythm} * ${p.sizes.small.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,
|
|
2019
|
+
"--textarea-padding-large": `calc(${p.fonts.rhythm} * ${p.sizes.large.paddingVertical}) calc(${p.fonts.rhythm} * ${p.inputs.paddingHorizontal})`,
|
|
1995
2020
|
borderColor: g.borderColor,
|
|
1996
|
-
borderWidth:
|
|
1997
|
-
borderRadius:
|
|
2021
|
+
borderWidth: p.border.width,
|
|
2022
|
+
borderRadius: p.border.radius,
|
|
1998
2023
|
color: g.color,
|
|
1999
|
-
fontSize:
|
|
2024
|
+
fontSize: "1em",
|
|
2000
2025
|
opacity: g.opacity,
|
|
2001
2026
|
...C
|
|
2002
2027
|
// Top level style overrides
|
|
@@ -2005,7 +2030,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
2005
2030
|
o === "small" ? tt.sizeSmall : tt.sizeLarge,
|
|
2006
2031
|
m
|
|
2007
2032
|
].filter(Boolean).join(" ");
|
|
2008
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ _(
|
|
2009
2034
|
"textarea",
|
|
2010
2035
|
{
|
|
2011
2036
|
...b,
|
|
@@ -2013,7 +2038,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
2013
2038
|
disabled: e,
|
|
2014
2039
|
id: s,
|
|
2015
2040
|
name: n,
|
|
2016
|
-
onChange:
|
|
2041
|
+
onChange: d,
|
|
2017
2042
|
onBlur: y,
|
|
2018
2043
|
placeholder: a,
|
|
2019
2044
|
rows: f,
|
|
@@ -2022,7 +2047,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
2022
2047
|
}
|
|
2023
2048
|
);
|
|
2024
2049
|
};
|
|
2025
|
-
function
|
|
2050
|
+
function ua({
|
|
2026
2051
|
name: e,
|
|
2027
2052
|
label: r,
|
|
2028
2053
|
required: t,
|
|
@@ -2032,7 +2057,7 @@ function da({
|
|
|
2032
2057
|
style: a,
|
|
2033
2058
|
...i
|
|
2034
2059
|
}) {
|
|
2035
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ _(
|
|
2036
2061
|
ge,
|
|
2037
2062
|
{
|
|
2038
2063
|
name: e,
|
|
@@ -2042,25 +2067,25 @@ function da({
|
|
|
2042
2067
|
disabled: s,
|
|
2043
2068
|
className: n,
|
|
2044
2069
|
style: a,
|
|
2045
|
-
children: ({ value: f, onChange: c, onBlur:
|
|
2046
|
-
|
|
2070
|
+
children: ({ value: f, onChange: c, onBlur: d, name: y, error: m }) => /* @__PURE__ */ _(
|
|
2071
|
+
os,
|
|
2047
2072
|
{
|
|
2048
2073
|
...i,
|
|
2049
2074
|
name: y,
|
|
2050
2075
|
value: f || "",
|
|
2051
2076
|
onChange: (C) => c(C.target.value),
|
|
2052
|
-
onBlur:
|
|
2077
|
+
onBlur: d,
|
|
2053
2078
|
error: m
|
|
2054
2079
|
}
|
|
2055
2080
|
)
|
|
2056
2081
|
}
|
|
2057
2082
|
);
|
|
2058
2083
|
}
|
|
2059
|
-
const
|
|
2060
|
-
select:
|
|
2061
|
-
sizeSmall:
|
|
2062
|
-
sizeLarge:
|
|
2063
|
-
},
|
|
2084
|
+
const ss = "Select-module__select___cjdcr", ns = "Select-module__sizeSmall___i1quj", as = "Select-module__sizeLarge___eBA1T", rt = {
|
|
2085
|
+
select: ss,
|
|
2086
|
+
sizeSmall: ns,
|
|
2087
|
+
sizeLarge: as
|
|
2088
|
+
}, is = ({
|
|
2064
2089
|
color: e = "#000",
|
|
2065
2090
|
disabled: r = !1
|
|
2066
2091
|
}) => ({
|
|
@@ -2087,7 +2112,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2087
2112
|
`.trim();
|
|
2088
2113
|
return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
|
|
2089
2114
|
})(e)
|
|
2090
|
-
}),
|
|
2115
|
+
}), ls = ({
|
|
2091
2116
|
// State props
|
|
2092
2117
|
disabled: e = !1,
|
|
2093
2118
|
error: r = !1,
|
|
@@ -2104,13 +2129,13 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2104
2129
|
onChange: f,
|
|
2105
2130
|
onBlur: c,
|
|
2106
2131
|
// Standard React props
|
|
2107
|
-
children:
|
|
2132
|
+
children: d,
|
|
2108
2133
|
className: y,
|
|
2109
2134
|
style: m,
|
|
2110
2135
|
// Element-specific props
|
|
2111
2136
|
selectProps: C
|
|
2112
2137
|
}) => {
|
|
2113
|
-
const b = R(),
|
|
2138
|
+
const b = R(), p = b.colors.error, k = r ? p : t || b.colors.primary, V = is({
|
|
2114
2139
|
color: k,
|
|
2115
2140
|
disabled: e
|
|
2116
2141
|
}), g = {
|
|
@@ -2126,7 +2151,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2126
2151
|
borderRadius: b.border.radius,
|
|
2127
2152
|
color: V.color,
|
|
2128
2153
|
cursor: V.cursor,
|
|
2129
|
-
fontSize:
|
|
2154
|
+
fontSize: "1em",
|
|
2130
2155
|
opacity: V.opacity,
|
|
2131
2156
|
...m
|
|
2132
2157
|
// Top level style overrides
|
|
@@ -2148,8 +2173,8 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2148
2173
|
value: i,
|
|
2149
2174
|
style: g,
|
|
2150
2175
|
children: [
|
|
2151
|
-
a !== "" && /* @__PURE__ */
|
|
2152
|
-
|
|
2176
|
+
a !== "" && /* @__PURE__ */ _("option", { disabled: !0, value: "", children: a }),
|
|
2177
|
+
d
|
|
2153
2178
|
]
|
|
2154
2179
|
}
|
|
2155
2180
|
);
|
|
@@ -2165,7 +2190,7 @@ function fa({
|
|
|
2165
2190
|
children: i,
|
|
2166
2191
|
...f
|
|
2167
2192
|
}) {
|
|
2168
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ _(
|
|
2169
2194
|
ge,
|
|
2170
2195
|
{
|
|
2171
2196
|
name: e,
|
|
@@ -2175,13 +2200,13 @@ function fa({
|
|
|
2175
2200
|
disabled: s,
|
|
2176
2201
|
className: n,
|
|
2177
2202
|
style: a,
|
|
2178
|
-
children: ({ value: c, onChange:
|
|
2179
|
-
|
|
2203
|
+
children: ({ value: c, onChange: d, onBlur: y, name: m, error: C }) => /* @__PURE__ */ _(
|
|
2204
|
+
ls,
|
|
2180
2205
|
{
|
|
2181
2206
|
...f,
|
|
2182
2207
|
name: m,
|
|
2183
2208
|
value: c || "",
|
|
2184
|
-
onChange: (b) =>
|
|
2209
|
+
onChange: (b) => d(b.target.value),
|
|
2185
2210
|
onBlur: y,
|
|
2186
2211
|
error: C,
|
|
2187
2212
|
children: i
|
|
@@ -2199,7 +2224,7 @@ function ma({
|
|
|
2199
2224
|
style: n,
|
|
2200
2225
|
...a
|
|
2201
2226
|
}) {
|
|
2202
|
-
return /* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ _(
|
|
2203
2228
|
ge,
|
|
2204
2229
|
{
|
|
2205
2230
|
name: e,
|
|
@@ -2208,24 +2233,24 @@ function ma({
|
|
|
2208
2233
|
disabled: o,
|
|
2209
2234
|
className: s,
|
|
2210
2235
|
style: n,
|
|
2211
|
-
children: ({ value: i, onChange: f, name: c, error:
|
|
2212
|
-
|
|
2236
|
+
children: ({ value: i, onChange: f, name: c, error: d }) => /* @__PURE__ */ _(
|
|
2237
|
+
dt,
|
|
2213
2238
|
{
|
|
2214
2239
|
...a,
|
|
2215
2240
|
name: c,
|
|
2216
2241
|
checked: !!i,
|
|
2217
2242
|
onChange: (y) => f(y.target.checked),
|
|
2218
|
-
error:
|
|
2243
|
+
error: d
|
|
2219
2244
|
}
|
|
2220
2245
|
)
|
|
2221
2246
|
}
|
|
2222
2247
|
);
|
|
2223
2248
|
}
|
|
2224
|
-
const
|
|
2225
|
-
container:
|
|
2226
|
-
svg:
|
|
2227
|
-
label:
|
|
2228
|
-
},
|
|
2249
|
+
const cs = "Radio-module__container___AQxhk", ds = "Radio-module__svg___zl5kF", us = "Radio-module__label___vAFIP", ot = {
|
|
2250
|
+
container: cs,
|
|
2251
|
+
svg: ds,
|
|
2252
|
+
label: us
|
|
2253
|
+
}, fs = ({
|
|
2229
2254
|
color: e = "#000",
|
|
2230
2255
|
disabled: r = !1
|
|
2231
2256
|
}) => ({
|
|
@@ -2247,20 +2272,20 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2247
2272
|
labelStyle: f,
|
|
2248
2273
|
// Style overrides
|
|
2249
2274
|
className: c,
|
|
2250
|
-
style:
|
|
2275
|
+
style: d,
|
|
2251
2276
|
// Element-specific props
|
|
2252
2277
|
divProps: y
|
|
2253
2278
|
}) => {
|
|
2254
|
-
const m = R(), C = n || ir(), b = m.colors.error,
|
|
2255
|
-
color:
|
|
2279
|
+
const m = R(), C = n || ir(), b = m.colors.error, p = o ? b : e || m.colors.primary, k = fs({
|
|
2280
|
+
color: p,
|
|
2256
2281
|
disabled: t
|
|
2257
|
-
}), V = (
|
|
2258
|
-
t || a(
|
|
2282
|
+
}), V = (P) => {
|
|
2283
|
+
t || a(P);
|
|
2259
2284
|
}, g = {
|
|
2260
2285
|
cursor: k.cursor,
|
|
2261
|
-
fontSize:
|
|
2286
|
+
fontSize: "1em",
|
|
2262
2287
|
opacity: k.opacity,
|
|
2263
|
-
...
|
|
2288
|
+
...d
|
|
2264
2289
|
// Top level style overrides
|
|
2265
2290
|
}, F = {
|
|
2266
2291
|
width: "1em"
|
|
@@ -2272,14 +2297,14 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2272
2297
|
fill: k.radioColor
|
|
2273
2298
|
}, B = [ot.container, c].filter(Boolean).join(" ");
|
|
2274
2299
|
return /* @__PURE__ */ D("div", { ...y, className: B, style: g, children: [
|
|
2275
|
-
/* @__PURE__ */
|
|
2300
|
+
/* @__PURE__ */ _(
|
|
2276
2301
|
"input",
|
|
2277
2302
|
{
|
|
2278
2303
|
id: C,
|
|
2279
2304
|
checked: r,
|
|
2280
2305
|
disabled: t,
|
|
2281
2306
|
name: s,
|
|
2282
|
-
onChange: (
|
|
2307
|
+
onChange: (P) => V({ target: { checked: P.target.checked, name: s, type: "radio" } }),
|
|
2283
2308
|
style: { display: "none" },
|
|
2284
2309
|
type: "radio"
|
|
2285
2310
|
}
|
|
@@ -2293,12 +2318,12 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2293
2318
|
className: ot.svg,
|
|
2294
2319
|
style: F,
|
|
2295
2320
|
children: [
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
r && /* @__PURE__ */
|
|
2321
|
+
/* @__PURE__ */ _("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: z }),
|
|
2322
|
+
r && /* @__PURE__ */ _("circle", { cx: "50", cy: "50", r: "25", style: E })
|
|
2298
2323
|
]
|
|
2299
2324
|
}
|
|
2300
2325
|
),
|
|
2301
|
-
i && /* @__PURE__ */
|
|
2326
|
+
i && /* @__PURE__ */ _(
|
|
2302
2327
|
_t,
|
|
2303
2328
|
{
|
|
2304
2329
|
htmlFor: C,
|
|
@@ -2323,7 +2348,7 @@ function ya({
|
|
|
2323
2348
|
value: i,
|
|
2324
2349
|
...f
|
|
2325
2350
|
}) {
|
|
2326
|
-
return /* @__PURE__ */
|
|
2351
|
+
return /* @__PURE__ */ _(
|
|
2327
2352
|
ge,
|
|
2328
2353
|
{
|
|
2329
2354
|
name: e,
|
|
@@ -2332,13 +2357,13 @@ function ya({
|
|
|
2332
2357
|
disabled: s,
|
|
2333
2358
|
className: n,
|
|
2334
2359
|
style: a,
|
|
2335
|
-
children: ({ value: c, onChange:
|
|
2360
|
+
children: ({ value: c, onChange: d, name: y, error: m }) => /* @__PURE__ */ _(
|
|
2336
2361
|
Fr,
|
|
2337
2362
|
{
|
|
2338
2363
|
...f,
|
|
2339
2364
|
name: y,
|
|
2340
2365
|
checked: c === i,
|
|
2341
|
-
onChange: () =>
|
|
2366
|
+
onChange: () => d(i),
|
|
2342
2367
|
error: m,
|
|
2343
2368
|
label: r
|
|
2344
2369
|
}
|
|
@@ -2356,7 +2381,7 @@ function ha({
|
|
|
2356
2381
|
style: a,
|
|
2357
2382
|
indent: i = !0
|
|
2358
2383
|
}) {
|
|
2359
|
-
return /* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ _(
|
|
2360
2385
|
ge,
|
|
2361
2386
|
{
|
|
2362
2387
|
name: e,
|
|
@@ -2371,10 +2396,10 @@ function ha({
|
|
|
2371
2396
|
marginBottom: ".25em"
|
|
2372
2397
|
}
|
|
2373
2398
|
},
|
|
2374
|
-
children: ({ value: f, onChange: c, name:
|
|
2399
|
+
children: ({ value: f, onChange: c, name: d, error: y }) => /* @__PURE__ */ _(Fe, { children: o.map((m) => /* @__PURE__ */ _(
|
|
2375
2400
|
Fr,
|
|
2376
2401
|
{
|
|
2377
|
-
name:
|
|
2402
|
+
name: d,
|
|
2378
2403
|
checked: f === m.value,
|
|
2379
2404
|
onChange: () => c(m.value),
|
|
2380
2405
|
label: m.label,
|
|
@@ -2397,7 +2422,7 @@ function _a({
|
|
|
2397
2422
|
style: i,
|
|
2398
2423
|
indent: f = !0
|
|
2399
2424
|
}) {
|
|
2400
|
-
return /* @__PURE__ */
|
|
2425
|
+
return /* @__PURE__ */ _(
|
|
2401
2426
|
ge,
|
|
2402
2427
|
{
|
|
2403
2428
|
name: e,
|
|
@@ -2412,43 +2437,43 @@ function _a({
|
|
|
2412
2437
|
marginBottom: ".25em"
|
|
2413
2438
|
}
|
|
2414
2439
|
},
|
|
2415
|
-
children: ({ value: c, onChange:
|
|
2416
|
-
const C = Array.isArray(c) ? c : [], b = (
|
|
2417
|
-
|
|
2440
|
+
children: ({ value: c, onChange: d, name: y, error: m }) => {
|
|
2441
|
+
const C = Array.isArray(c) ? c : [], b = (p, k) => {
|
|
2442
|
+
d(k ? [...C, p] : C.filter((V) => V !== p));
|
|
2418
2443
|
};
|
|
2419
|
-
return /* @__PURE__ */
|
|
2420
|
-
|
|
2444
|
+
return /* @__PURE__ */ _(Fe, { children: o ? o.map((p) => /* @__PURE__ */ _(
|
|
2445
|
+
dt,
|
|
2421
2446
|
{
|
|
2422
2447
|
name: `${y}[]`,
|
|
2423
|
-
checked: C.includes(
|
|
2424
|
-
onChange: (k) => b(
|
|
2425
|
-
label:
|
|
2426
|
-
disabled: n ||
|
|
2448
|
+
checked: C.includes(p.value),
|
|
2449
|
+
onChange: (k) => b(p.value, k.target.checked),
|
|
2450
|
+
label: p.label,
|
|
2451
|
+
disabled: n || p.disabled,
|
|
2427
2452
|
error: m
|
|
2428
2453
|
},
|
|
2429
|
-
|
|
2430
|
-
)) : N.Children.map(s, (
|
|
2431
|
-
if (N.isValidElement(
|
|
2432
|
-
const k =
|
|
2433
|
-
return N.cloneElement(
|
|
2454
|
+
p.value
|
|
2455
|
+
)) : N.Children.map(s, (p) => {
|
|
2456
|
+
if (N.isValidElement(p) && p.type === dt) {
|
|
2457
|
+
const k = p.props.value || p.props.name;
|
|
2458
|
+
return N.cloneElement(p, {
|
|
2434
2459
|
name: `${y}[]`,
|
|
2435
2460
|
checked: C.includes(k),
|
|
2436
2461
|
onChange: (V) => b(k, V.target.checked),
|
|
2437
|
-
error: m ||
|
|
2438
|
-
disabled: n ||
|
|
2462
|
+
error: m || p.props.error,
|
|
2463
|
+
disabled: n || p.props.disabled
|
|
2439
2464
|
});
|
|
2440
2465
|
}
|
|
2441
|
-
return
|
|
2466
|
+
return p;
|
|
2442
2467
|
}) });
|
|
2443
2468
|
}
|
|
2444
2469
|
}
|
|
2445
2470
|
);
|
|
2446
2471
|
}
|
|
2447
|
-
const
|
|
2448
|
-
hamburger:
|
|
2449
|
-
line:
|
|
2450
|
-
open:
|
|
2451
|
-
},
|
|
2472
|
+
const ms = "Hamburger-module__hamburger___Tf4-t", ys = "Hamburger-module__line___gybZM", hs = "Hamburger-module__open___gRswh", Ee = {
|
|
2473
|
+
hamburger: ms,
|
|
2474
|
+
line: ys,
|
|
2475
|
+
open: hs
|
|
2476
|
+
}, _s = ({
|
|
2452
2477
|
compact: e,
|
|
2453
2478
|
color: r,
|
|
2454
2479
|
visible: t,
|
|
@@ -2462,7 +2487,7 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2462
2487
|
width: n,
|
|
2463
2488
|
height: n
|
|
2464
2489
|
};
|
|
2465
|
-
},
|
|
2490
|
+
}, ps = ({
|
|
2466
2491
|
// Color props
|
|
2467
2492
|
color: e,
|
|
2468
2493
|
// State/variant props
|
|
@@ -2478,32 +2503,32 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2478
2503
|
className: i,
|
|
2479
2504
|
style: f
|
|
2480
2505
|
}) => {
|
|
2481
|
-
const c =
|
|
2506
|
+
const c = _s({
|
|
2482
2507
|
compact: t,
|
|
2483
2508
|
color: e,
|
|
2484
2509
|
visible: r,
|
|
2485
2510
|
border: n
|
|
2486
|
-
}),
|
|
2511
|
+
}), d = [Ee.hamburger, s ? Ee.open : "", i].filter(Boolean).join(" ");
|
|
2487
2512
|
return /* @__PURE__ */ D(
|
|
2488
2513
|
"button",
|
|
2489
2514
|
{
|
|
2490
2515
|
ref: o,
|
|
2491
|
-
className:
|
|
2516
|
+
className: d,
|
|
2492
2517
|
onClick: () => a(!s),
|
|
2493
2518
|
style: { ...c, ...f },
|
|
2494
2519
|
"aria-label": "Toggle menu",
|
|
2495
2520
|
"aria-expanded": s,
|
|
2496
2521
|
children: [
|
|
2497
|
-
/* @__PURE__ */
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2522
|
+
/* @__PURE__ */ _("div", { className: Ee.line }),
|
|
2523
|
+
/* @__PURE__ */ _("div", { className: Ee.line }),
|
|
2524
|
+
/* @__PURE__ */ _("div", { className: Ee.line })
|
|
2500
2525
|
]
|
|
2501
2526
|
}
|
|
2502
2527
|
);
|
|
2503
|
-
},
|
|
2504
|
-
header:
|
|
2505
|
-
container:
|
|
2506
|
-
},
|
|
2528
|
+
}, gs = "Header-module__header___RUooH", vs = "Header-module__container___t68M9", Yt = {
|
|
2529
|
+
header: gs,
|
|
2530
|
+
container: vs
|
|
2531
|
+
}, bs = ({
|
|
2507
2532
|
isSmallScreen: e = !1,
|
|
2508
2533
|
maxWidth: r,
|
|
2509
2534
|
minWidth: t,
|
|
@@ -2514,7 +2539,7 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2514
2539
|
margin: i,
|
|
2515
2540
|
gap: f,
|
|
2516
2541
|
backgroundColor: c,
|
|
2517
|
-
color:
|
|
2542
|
+
color: d
|
|
2518
2543
|
} = {}) => {
|
|
2519
2544
|
const y = R();
|
|
2520
2545
|
return {
|
|
@@ -2526,17 +2551,17 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2526
2551
|
"--header-margin": i,
|
|
2527
2552
|
"--header-gap": f,
|
|
2528
2553
|
backgroundColor: c,
|
|
2529
|
-
color:
|
|
2554
|
+
color: d
|
|
2530
2555
|
};
|
|
2531
|
-
},
|
|
2556
|
+
}, de = (e) => {
|
|
2532
2557
|
const r = typeof window < "u" && typeof window.matchMedia == "function";
|
|
2533
|
-
return
|
|
2558
|
+
return Hr((n) => {
|
|
2534
2559
|
if (!r) return () => {
|
|
2535
2560
|
};
|
|
2536
2561
|
const a = window.matchMedia(e);
|
|
2537
2562
|
return a.addEventListener("change", n), () => a.removeEventListener("change", n);
|
|
2538
2563
|
}, () => r ? window.matchMedia(e).matches : !1, () => !1);
|
|
2539
|
-
},
|
|
2564
|
+
}, Ss = ({
|
|
2540
2565
|
// Color props
|
|
2541
2566
|
backgroundColor: e,
|
|
2542
2567
|
color: r,
|
|
@@ -2549,7 +2574,7 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2549
2574
|
paddingSm: i,
|
|
2550
2575
|
margin: f,
|
|
2551
2576
|
gap: c,
|
|
2552
|
-
breakpoint:
|
|
2577
|
+
breakpoint: d,
|
|
2553
2578
|
fixed: y = !1,
|
|
2554
2579
|
// Content
|
|
2555
2580
|
children: m,
|
|
@@ -2557,9 +2582,9 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2557
2582
|
className: C,
|
|
2558
2583
|
style: b,
|
|
2559
2584
|
// Element-specific props
|
|
2560
|
-
headerProps:
|
|
2585
|
+
headerProps: p
|
|
2561
2586
|
}) => {
|
|
2562
|
-
const k = R(), V =
|
|
2587
|
+
const k = R(), V = d || k.breakpoints.sm, { maxWidth: g, unit: F } = Le(V), z = de(`(max-width: ${g}${F})`), E = bs({
|
|
2563
2588
|
isSmallScreen: z,
|
|
2564
2589
|
maxWidth: t,
|
|
2565
2590
|
minWidth: o,
|
|
@@ -2571,8 +2596,8 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2571
2596
|
gap: c,
|
|
2572
2597
|
backgroundColor: e,
|
|
2573
2598
|
color: r
|
|
2574
|
-
}), B = [
|
|
2575
|
-
return /* @__PURE__ */
|
|
2599
|
+
}), B = [Yt.container, C].filter(Boolean).join(" "), P = y ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
|
|
2600
|
+
return /* @__PURE__ */ _("header", { ...p, className: Yt.header, style: P, children: /* @__PURE__ */ _(
|
|
2576
2601
|
"div",
|
|
2577
2602
|
{
|
|
2578
2603
|
className: B,
|
|
@@ -2580,25 +2605,25 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2580
2605
|
children: m
|
|
2581
2606
|
}
|
|
2582
2607
|
) });
|
|
2583
|
-
},
|
|
2584
|
-
nav:
|
|
2585
|
-
navMobile:
|
|
2586
|
-
navHeader:
|
|
2587
|
-
compact:
|
|
2588
|
-
navDesktop:
|
|
2589
|
-
},
|
|
2590
|
-
triggerWrapper:
|
|
2591
|
-
popup:
|
|
2592
|
-
panelOverlay:
|
|
2593
|
-
panelOverlayVisible:
|
|
2594
|
-
backdrop:
|
|
2595
|
-
panel:
|
|
2596
|
-
panelLeft:
|
|
2597
|
-
panelRight:
|
|
2598
|
-
panelOpen:
|
|
2599
|
-
panelCloseButton:
|
|
2608
|
+
}, ws = "ResponsiveNav-module__nav___xOfv5", ks = "ResponsiveNav-module__navMobile___h795P", xs = "ResponsiveNav-module__navHeader___Me8bB", Cs = "ResponsiveNav-module__compact___UhuAE", Fs = "ResponsiveNav-module__navDesktop___9wscZ", xe = {
|
|
2609
|
+
nav: ws,
|
|
2610
|
+
navMobile: ks,
|
|
2611
|
+
navHeader: xs,
|
|
2612
|
+
compact: Cs,
|
|
2613
|
+
navDesktop: Fs
|
|
2614
|
+
}, Vs = "Popover-module__triggerWrapper___dZpf6", zs = "Popover-module__popup___JAvrb", Es = "Popover-module__panelOverlay___1xDU5", Ns = "Popover-module__panelOverlayVisible___BgtIQ", $s = "Popover-module__backdrop___e8qHL", Ls = "Popover-module__panel___eUJ2E", As = "Popover-module__panelLeft___9nSLp", Ms = "Popover-module__panelRight___OrQfl", Ps = "Popover-module__panelOpen___hhvV-", Bs = "Popover-module__panelCloseButton___kALaN", ue = {
|
|
2615
|
+
triggerWrapper: Vs,
|
|
2616
|
+
popup: zs,
|
|
2617
|
+
panelOverlay: Es,
|
|
2618
|
+
panelOverlayVisible: Ns,
|
|
2619
|
+
backdrop: $s,
|
|
2620
|
+
panel: Ls,
|
|
2621
|
+
panelLeft: As,
|
|
2622
|
+
panelRight: Ms,
|
|
2623
|
+
panelOpen: Ps,
|
|
2624
|
+
panelCloseButton: Bs
|
|
2600
2625
|
};
|
|
2601
|
-
function
|
|
2626
|
+
function Ds(e, r) {
|
|
2602
2627
|
const [t, o] = J(!1), [s, n] = J(!1);
|
|
2603
2628
|
ne(() => {
|
|
2604
2629
|
r === "panel" && (e ? o(!0) : n(!1));
|
|
@@ -2616,7 +2641,7 @@ function Os(e, r) {
|
|
|
2616
2641
|
}, [s]);
|
|
2617
2642
|
return { panelMounted: t, panelVisible: s, handleTransitionEnd: a };
|
|
2618
2643
|
}
|
|
2619
|
-
function
|
|
2644
|
+
function Rs(e, r, t, o) {
|
|
2620
2645
|
const [s, n] = J({}), a = Ce(() => {
|
|
2621
2646
|
if (r !== "popup" || !t.current) return;
|
|
2622
2647
|
const i = t.current.getBoundingClientRect(), f = {
|
|
@@ -2650,31 +2675,31 @@ const Vr = ({
|
|
|
2650
2675
|
panelWidth: i = "75%",
|
|
2651
2676
|
backdropColor: f = "rgba(0, 0, 0, 0.5)",
|
|
2652
2677
|
hideCloseButton: c = !1,
|
|
2653
|
-
closeOnBackdropClick:
|
|
2678
|
+
closeOnBackdropClick: d = !0,
|
|
2654
2679
|
className: y,
|
|
2655
2680
|
style: m,
|
|
2656
2681
|
popoverProps: C
|
|
2657
2682
|
}) => {
|
|
2658
|
-
const b = R(),
|
|
2683
|
+
const b = R(), p = o !== void 0, [k, V] = J(!1), g = p ? o : k, F = Ve(null), z = Ve(null), E = Ce(
|
|
2659
2684
|
(I) => {
|
|
2660
|
-
|
|
2685
|
+
p || V(I), s == null || s(I);
|
|
2661
2686
|
},
|
|
2662
|
-
[
|
|
2663
|
-
), B = Ce(() => E(!g), [g, E]),
|
|
2687
|
+
[p, s]
|
|
2688
|
+
), B = Ce(() => E(!g), [g, E]), P = Ce(() => E(!1), [E]), { panelMounted: U, panelVisible: M, handleTransitionEnd: K } = Ds(g, t), { popupPositionStyle: q } = Rs(g, t, F, n);
|
|
2664
2689
|
ne(() => {
|
|
2665
2690
|
if (!g || t !== "popup") return;
|
|
2666
2691
|
const I = (Q) => {
|
|
2667
2692
|
var te, me;
|
|
2668
|
-
(te = z.current) != null && te.contains(Q.target) || (me = F.current) != null && me.contains(Q.target) ||
|
|
2693
|
+
(te = z.current) != null && te.contains(Q.target) || (me = F.current) != null && me.contains(Q.target) || P();
|
|
2669
2694
|
};
|
|
2670
2695
|
return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
|
|
2671
|
-
}, [g, t,
|
|
2696
|
+
}, [g, t, P]), ne(() => {
|
|
2672
2697
|
if (!g) return;
|
|
2673
2698
|
const I = (Q) => {
|
|
2674
|
-
Q.key === "Escape" &&
|
|
2699
|
+
Q.key === "Escape" && P();
|
|
2675
2700
|
};
|
|
2676
2701
|
return document.addEventListener("keydown", I), () => document.removeEventListener("keydown", I);
|
|
2677
|
-
}, [g,
|
|
2702
|
+
}, [g, P]), ne(() => {
|
|
2678
2703
|
if (!g || t !== "panel") return;
|
|
2679
2704
|
const I = window.scrollY;
|
|
2680
2705
|
return document.body.style.position = "fixed", document.body.style.top = `-${I}px`, document.body.style.width = "100%", () => {
|
|
@@ -2685,8 +2710,8 @@ const Vr = ({
|
|
|
2685
2710
|
// Non-function trigger: wrap in a span that delegates clicks to the trigger element.
|
|
2686
2711
|
// The wrapped element (e.g. <button>) handles its own keyboard accessibility.
|
|
2687
2712
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
) : null, A = e ? /* @__PURE__ */
|
|
2713
|
+
/* @__PURE__ */ _("span", { onClick: B, style: { cursor: "pointer", display: "contents" }, children: e })
|
|
2714
|
+
) : null, A = e ? /* @__PURE__ */ _("span", { ref: F, className: ue.triggerWrapper, children: L }) : null;
|
|
2690
2715
|
if (t === "popup") {
|
|
2691
2716
|
const I = {
|
|
2692
2717
|
backgroundColor: b.colors.secondary,
|
|
@@ -2698,11 +2723,11 @@ const Vr = ({
|
|
|
2698
2723
|
return /* @__PURE__ */ D(Fe, { children: [
|
|
2699
2724
|
A,
|
|
2700
2725
|
g && lt(
|
|
2701
|
-
/* @__PURE__ */
|
|
2726
|
+
/* @__PURE__ */ _(
|
|
2702
2727
|
"div",
|
|
2703
2728
|
{
|
|
2704
2729
|
ref: z,
|
|
2705
|
-
className: [
|
|
2730
|
+
className: [ue.popup, y].filter(Boolean).join(" "),
|
|
2706
2731
|
style: I,
|
|
2707
2732
|
...C,
|
|
2708
2733
|
children: r
|
|
@@ -2723,14 +2748,14 @@ const Vr = ({
|
|
|
2723
2748
|
/* @__PURE__ */ D(
|
|
2724
2749
|
"div",
|
|
2725
2750
|
{
|
|
2726
|
-
className: [
|
|
2751
|
+
className: [ue.panelOverlay, M ? ue.panelOverlayVisible : ""].filter(Boolean).join(" "),
|
|
2727
2752
|
children: [
|
|
2728
|
-
/* @__PURE__ */
|
|
2753
|
+
/* @__PURE__ */ _(
|
|
2729
2754
|
"div",
|
|
2730
2755
|
{
|
|
2731
|
-
className:
|
|
2732
|
-
style: { backgroundColor:
|
|
2733
|
-
onClick:
|
|
2756
|
+
className: ue.backdrop,
|
|
2757
|
+
style: { backgroundColor: M ? f : "transparent" },
|
|
2758
|
+
onClick: d ? P : void 0,
|
|
2734
2759
|
role: "presentation"
|
|
2735
2760
|
}
|
|
2736
2761
|
),
|
|
@@ -2739,9 +2764,9 @@ const Vr = ({
|
|
|
2739
2764
|
{
|
|
2740
2765
|
ref: z,
|
|
2741
2766
|
className: [
|
|
2742
|
-
|
|
2743
|
-
a === "right" ?
|
|
2744
|
-
|
|
2767
|
+
ue.panel,
|
|
2768
|
+
a === "right" ? ue.panelRight : ue.panelLeft,
|
|
2769
|
+
M ? ue.panelOpen : "",
|
|
2745
2770
|
y
|
|
2746
2771
|
].filter(Boolean).join(" "),
|
|
2747
2772
|
style: O,
|
|
@@ -2750,14 +2775,14 @@ const Vr = ({
|
|
|
2750
2775
|
onTransitionEnd: K,
|
|
2751
2776
|
...C,
|
|
2752
2777
|
children: [
|
|
2753
|
-
!c && /* @__PURE__ */
|
|
2778
|
+
!c && /* @__PURE__ */ _(
|
|
2754
2779
|
"button",
|
|
2755
2780
|
{
|
|
2756
|
-
className:
|
|
2757
|
-
onClick:
|
|
2781
|
+
className: ue.panelCloseButton,
|
|
2782
|
+
onClick: P,
|
|
2758
2783
|
"aria-label": "Close panel",
|
|
2759
2784
|
type: "button",
|
|
2760
|
-
children: /* @__PURE__ */
|
|
2785
|
+
children: /* @__PURE__ */ _(
|
|
2761
2786
|
"svg",
|
|
2762
2787
|
{
|
|
2763
2788
|
width: "100%",
|
|
@@ -2766,7 +2791,7 @@ const Vr = ({
|
|
|
2766
2791
|
fill: "none",
|
|
2767
2792
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2768
2793
|
"aria-hidden": "true",
|
|
2769
|
-
children: /* @__PURE__ */
|
|
2794
|
+
children: /* @__PURE__ */ _(
|
|
2770
2795
|
"path",
|
|
2771
2796
|
{
|
|
2772
2797
|
d: "M15 5L5 15M5 5L15 15",
|
|
@@ -2790,7 +2815,7 @@ const Vr = ({
|
|
|
2790
2815
|
document.body
|
|
2791
2816
|
)
|
|
2792
2817
|
] });
|
|
2793
|
-
},
|
|
2818
|
+
}, Os = ({
|
|
2794
2819
|
isMobile: e,
|
|
2795
2820
|
isCompact: r,
|
|
2796
2821
|
mobile: t,
|
|
@@ -2810,11 +2835,11 @@ const Vr = ({
|
|
|
2810
2835
|
...o == null ? void 0 : o.style
|
|
2811
2836
|
}
|
|
2812
2837
|
}, [e, r, t, o, s]);
|
|
2813
|
-
},
|
|
2838
|
+
}, Is = ht({
|
|
2814
2839
|
isMobile: !1,
|
|
2815
2840
|
setOpen: () => {
|
|
2816
2841
|
}
|
|
2817
|
-
}),
|
|
2842
|
+
}), Ts = ({
|
|
2818
2843
|
open: e,
|
|
2819
2844
|
setOpen: r,
|
|
2820
2845
|
hamburgerRef: t,
|
|
@@ -2825,11 +2850,11 @@ const Vr = ({
|
|
|
2825
2850
|
navClassName: i,
|
|
2826
2851
|
cssProps: f,
|
|
2827
2852
|
navProps: c,
|
|
2828
|
-
content:
|
|
2853
|
+
content: d,
|
|
2829
2854
|
onNavClick: y
|
|
2830
2855
|
}) => {
|
|
2831
2856
|
const { backgroundColor: m, ...C } = f;
|
|
2832
|
-
return /* @__PURE__ */
|
|
2857
|
+
return /* @__PURE__ */ _(
|
|
2833
2858
|
Vr,
|
|
2834
2859
|
{
|
|
2835
2860
|
variant: "panel",
|
|
@@ -2838,30 +2863,30 @@ const Vr = ({
|
|
|
2838
2863
|
isOpen: e,
|
|
2839
2864
|
onOpenChange: r,
|
|
2840
2865
|
style: m ? { backgroundColor: m } : void 0,
|
|
2841
|
-
trigger: ({ onClick: b }) => /* @__PURE__ */
|
|
2842
|
-
|
|
2866
|
+
trigger: ({ onClick: b }) => /* @__PURE__ */ _(
|
|
2867
|
+
ps,
|
|
2843
2868
|
{
|
|
2844
2869
|
hamburgerRef: t,
|
|
2845
2870
|
visible: !0,
|
|
2846
2871
|
compact: o,
|
|
2847
2872
|
open: !1,
|
|
2848
|
-
setOpen: (
|
|
2873
|
+
setOpen: (p) => b(),
|
|
2849
2874
|
...s == null ? void 0 : s.hamburgerProps
|
|
2850
2875
|
}
|
|
2851
2876
|
),
|
|
2852
2877
|
children: /* @__PURE__ */ D("nav", { ...c, className: i, style: C, onClickCapture: y, children: [
|
|
2853
|
-
/* @__PURE__ */
|
|
2854
|
-
typeof
|
|
2878
|
+
/* @__PURE__ */ _("div", { className: xe.navHeader }),
|
|
2879
|
+
typeof d == "function" ? d({ setOpen: r }) : d
|
|
2855
2880
|
] })
|
|
2856
2881
|
}
|
|
2857
2882
|
);
|
|
2858
|
-
},
|
|
2883
|
+
}, Hs = ({
|
|
2859
2884
|
setOpen: e,
|
|
2860
2885
|
navClassName: r,
|
|
2861
2886
|
cssProps: t,
|
|
2862
2887
|
navProps: o,
|
|
2863
2888
|
content: s
|
|
2864
|
-
}) => /* @__PURE__ */
|
|
2889
|
+
}) => /* @__PURE__ */ _("nav", { ...o, className: r, style: t, children: typeof s == "function" ? s({ setOpen: e }) : s }), pa = ({
|
|
2865
2890
|
mobile: e,
|
|
2866
2891
|
desktop: r,
|
|
2867
2892
|
breakpoints: t,
|
|
@@ -2871,12 +2896,12 @@ const Vr = ({
|
|
|
2871
2896
|
navProps: a,
|
|
2872
2897
|
disableMobileTreatment: i = !1
|
|
2873
2898
|
}) => {
|
|
2874
|
-
const [f, c] = J(!1),
|
|
2899
|
+
const [f, c] = J(!1), d = Ve(null), m = { ...R().breakpoints, ...t }, { maxWidth: C, unit: b } = Le(m.md), { maxWidth: p, unit: k } = Le(m.sm), V = de(`(max-width: ${C}${b})`), g = de(`(max-width: ${p}${k})`), F = i ? !1 : V, z = i ? !1 : g, { navStyles: E } = Os({
|
|
2875
2900
|
isMobile: F,
|
|
2876
2901
|
isCompact: z,
|
|
2877
2902
|
mobile: e,
|
|
2878
2903
|
desktop: r
|
|
2879
|
-
}), B = { ...E, ...n },
|
|
2904
|
+
}), B = { ...E, ...n }, P = (K) => {
|
|
2880
2905
|
const q = K.target;
|
|
2881
2906
|
q.closest("[data-navdropdown-trigger]") || q.closest("a, button") && c(!1);
|
|
2882
2907
|
}, U = [
|
|
@@ -2884,13 +2909,13 @@ const Vr = ({
|
|
|
2884
2909
|
xe.navMobile,
|
|
2885
2910
|
z || e != null && e.compact ? xe.compact : "",
|
|
2886
2911
|
s
|
|
2887
|
-
].filter(Boolean).join(" "),
|
|
2888
|
-
return /* @__PURE__ */
|
|
2889
|
-
|
|
2912
|
+
].filter(Boolean).join(" "), M = [xe.nav, xe.navDesktop, s].filter(Boolean).join(" ");
|
|
2913
|
+
return /* @__PURE__ */ _(Is.Provider, { value: { isMobile: F, setOpen: c }, children: F ? /* @__PURE__ */ _(
|
|
2914
|
+
Ts,
|
|
2890
2915
|
{
|
|
2891
2916
|
open: f,
|
|
2892
2917
|
setOpen: c,
|
|
2893
|
-
hamburgerRef:
|
|
2918
|
+
hamburgerRef: d,
|
|
2894
2919
|
isCompact: z,
|
|
2895
2920
|
mobile: e,
|
|
2896
2921
|
panelWidth: e == null ? void 0 : e.panelWidth,
|
|
@@ -2899,22 +2924,22 @@ const Vr = ({
|
|
|
2899
2924
|
cssProps: B,
|
|
2900
2925
|
navProps: a,
|
|
2901
2926
|
content: (e == null ? void 0 : e.content) || o,
|
|
2902
|
-
onNavClick:
|
|
2927
|
+
onNavClick: P
|
|
2903
2928
|
}
|
|
2904
|
-
) : /* @__PURE__ */
|
|
2905
|
-
|
|
2929
|
+
) : /* @__PURE__ */ _(
|
|
2930
|
+
Hs,
|
|
2906
2931
|
{
|
|
2907
2932
|
setOpen: c,
|
|
2908
|
-
navClassName:
|
|
2933
|
+
navClassName: M,
|
|
2909
2934
|
cssProps: B,
|
|
2910
2935
|
navProps: a,
|
|
2911
2936
|
content: (r == null ? void 0 : r.content) || o
|
|
2912
2937
|
}
|
|
2913
2938
|
) });
|
|
2914
|
-
},
|
|
2915
|
-
trigger:
|
|
2916
|
-
chevron:
|
|
2917
|
-
chevronOpen:
|
|
2939
|
+
}, js = "NavDropdown-module__trigger___1PQZp", Ws = "NavDropdown-module__chevron___ZLAV7", Us = "NavDropdown-module__chevronOpen___9mgjr", st = {
|
|
2940
|
+
trigger: js,
|
|
2941
|
+
chevron: Ws,
|
|
2942
|
+
chevronOpen: Us
|
|
2918
2943
|
};
|
|
2919
2944
|
function zr({
|
|
2920
2945
|
isActive: e = !1,
|
|
@@ -2945,38 +2970,38 @@ const ga = ({
|
|
|
2945
2970
|
style: f,
|
|
2946
2971
|
buttonProps: c
|
|
2947
2972
|
}) => {
|
|
2948
|
-
const [
|
|
2973
|
+
const [d, y] = J(!1), {
|
|
2949
2974
|
style: m,
|
|
2950
2975
|
onMouseEnter: C,
|
|
2951
2976
|
onMouseLeave: b
|
|
2952
|
-
} = zr({ isActive:
|
|
2953
|
-
return /* @__PURE__ */
|
|
2977
|
+
} = zr({ isActive: d, color: n, hoverOpacity: a });
|
|
2978
|
+
return /* @__PURE__ */ _(
|
|
2954
2979
|
Vr,
|
|
2955
2980
|
{
|
|
2956
2981
|
variant: t,
|
|
2957
2982
|
side: o,
|
|
2958
2983
|
panelWidth: s,
|
|
2959
|
-
isOpen:
|
|
2984
|
+
isOpen: d,
|
|
2960
2985
|
onOpenChange: y,
|
|
2961
|
-
trigger: ({ onClick:
|
|
2986
|
+
trigger: ({ onClick: p }) => /* @__PURE__ */ D(
|
|
2962
2987
|
"button",
|
|
2963
2988
|
{
|
|
2964
2989
|
type: "button",
|
|
2965
2990
|
className: [st.trigger, i].filter(Boolean).join(" "),
|
|
2966
2991
|
style: { ...m, ...f },
|
|
2967
2992
|
"data-navdropdown-trigger": !0,
|
|
2968
|
-
onClick:
|
|
2993
|
+
onClick: p,
|
|
2969
2994
|
onMouseEnter: C,
|
|
2970
2995
|
onMouseLeave: b,
|
|
2971
2996
|
...c,
|
|
2972
2997
|
children: [
|
|
2973
2998
|
e,
|
|
2974
|
-
/* @__PURE__ */
|
|
2999
|
+
/* @__PURE__ */ _(
|
|
2975
3000
|
"span",
|
|
2976
3001
|
{
|
|
2977
|
-
className: [st.chevron,
|
|
3002
|
+
className: [st.chevron, d ? st.chevronOpen : ""].filter(Boolean).join(" "),
|
|
2978
3003
|
"aria-hidden": "true",
|
|
2979
|
-
children: /* @__PURE__ */
|
|
3004
|
+
children: /* @__PURE__ */ _(
|
|
2980
3005
|
"svg",
|
|
2981
3006
|
{
|
|
2982
3007
|
width: "12",
|
|
@@ -2984,7 +3009,7 @@ const ga = ({
|
|
|
2984
3009
|
viewBox: "0 0 12 12",
|
|
2985
3010
|
fill: "none",
|
|
2986
3011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2987
|
-
children: /* @__PURE__ */
|
|
3012
|
+
children: /* @__PURE__ */ _(
|
|
2988
3013
|
"path",
|
|
2989
3014
|
{
|
|
2990
3015
|
d: "M2 4L6 8L10 4",
|
|
@@ -3033,7 +3058,7 @@ const ga = ({
|
|
|
3033
3058
|
// Element-specific props
|
|
3034
3059
|
divProps: n
|
|
3035
3060
|
}) => {
|
|
3036
|
-
const a = R(), i = e || a.colors.primary, f = r || a.colors.secondary, c = /* @__PURE__ */
|
|
3061
|
+
const a = R(), i = e || a.colors.primary, f = r || a.colors.secondary, c = /* @__PURE__ */ _(
|
|
3037
3062
|
"div",
|
|
3038
3063
|
{
|
|
3039
3064
|
...t ? void 0 : n,
|
|
@@ -3052,16 +3077,16 @@ const ga = ({
|
|
|
3052
3077
|
borderTop: `0.1em solid ${f}`
|
|
3053
3078
|
}
|
|
3054
3079
|
}
|
|
3055
|
-
),
|
|
3080
|
+
), d = /* @__PURE__ */ D(Fe, { children: [
|
|
3056
3081
|
c,
|
|
3057
|
-
/* @__PURE__ */
|
|
3082
|
+
/* @__PURE__ */ _("style", { children: `
|
|
3058
3083
|
@keyframes spin {
|
|
3059
3084
|
0% { transform: rotate(0deg); }
|
|
3060
3085
|
100% { transform: rotate(360deg); }
|
|
3061
3086
|
}
|
|
3062
3087
|
` })
|
|
3063
3088
|
] });
|
|
3064
|
-
return t ? /* @__PURE__ */
|
|
3089
|
+
return t ? /* @__PURE__ */ _(
|
|
3065
3090
|
"div",
|
|
3066
3091
|
{
|
|
3067
3092
|
...n,
|
|
@@ -3075,29 +3100,29 @@ const ga = ({
|
|
|
3075
3100
|
...s
|
|
3076
3101
|
// Top level style prop overrides
|
|
3077
3102
|
},
|
|
3078
|
-
children:
|
|
3103
|
+
children: d
|
|
3079
3104
|
}
|
|
3080
|
-
) :
|
|
3105
|
+
) : d;
|
|
3081
3106
|
}, ba = ({ children: e, loadingComponent: r }) => {
|
|
3082
3107
|
const [t, o] = J(!1);
|
|
3083
3108
|
return ne(() => {
|
|
3084
3109
|
requestAnimationFrame(() => {
|
|
3085
3110
|
o(!0);
|
|
3086
3111
|
});
|
|
3087
|
-
}, []), t ? /* @__PURE__ */
|
|
3088
|
-
},
|
|
3089
|
-
backdrop:
|
|
3090
|
-
modal:
|
|
3091
|
-
header:
|
|
3092
|
-
title:
|
|
3093
|
-
closeButton:
|
|
3094
|
-
content:
|
|
3095
|
-
actions:
|
|
3096
|
-
},
|
|
3097
|
-
stack:
|
|
3098
|
-
vertical:
|
|
3099
|
-
horizontal:
|
|
3100
|
-
},
|
|
3112
|
+
}, []), t ? /* @__PURE__ */ _(Fe, { children: e }) : r || /* @__PURE__ */ _(Er, {});
|
|
3113
|
+
}, qs = "Modal-module__backdrop___GVUh4", Gs = "Modal-module__modal___aD7aP", Zs = "Modal-module__header___ILG9i", Ks = "Modal-module__title___A5OeE", Qs = "Modal-module__closeButton___3LpSf", Xs = "Modal-module__content___dWO-B", Js = "Modal-module__actions___hY6zi", he = {
|
|
3114
|
+
backdrop: qs,
|
|
3115
|
+
modal: Gs,
|
|
3116
|
+
header: Zs,
|
|
3117
|
+
title: Ks,
|
|
3118
|
+
closeButton: Qs,
|
|
3119
|
+
content: Xs,
|
|
3120
|
+
actions: Js
|
|
3121
|
+
}, Ys = "Stack-module__stack___yUU-B", en = "Stack-module__vertical___sKTyQ", tn = "Stack-module__horizontal___YsvtV", nt = {
|
|
3122
|
+
stack: Ys,
|
|
3123
|
+
vertical: en,
|
|
3124
|
+
horizontal: tn
|
|
3125
|
+
}, rn = ({
|
|
3101
3126
|
// Layout props
|
|
3102
3127
|
direction: e = "row",
|
|
3103
3128
|
gap: r = "0.5em",
|
|
@@ -3114,8 +3139,8 @@ const ga = ({
|
|
|
3114
3139
|
e === "column" ? nt.vertical : nt.horizontal,
|
|
3115
3140
|
o
|
|
3116
3141
|
].filter(Boolean).join(" ");
|
|
3117
|
-
return /* @__PURE__ */
|
|
3118
|
-
},
|
|
3142
|
+
return /* @__PURE__ */ _("div", { ...n, className: a, style: { gap: r, ...s }, children: t });
|
|
3143
|
+
}, on = ({
|
|
3119
3144
|
isOpen: e,
|
|
3120
3145
|
onClose: r,
|
|
3121
3146
|
children: t,
|
|
@@ -3126,14 +3151,14 @@ const ga = ({
|
|
|
3126
3151
|
actions: i = [],
|
|
3127
3152
|
resolveModal: f,
|
|
3128
3153
|
width: c = "500px",
|
|
3129
|
-
maxWidth:
|
|
3154
|
+
maxWidth: d = "90vw",
|
|
3130
3155
|
backgroundColor: y,
|
|
3131
3156
|
backdropColor: m = "rgba(0, 0, 0, 0.5)",
|
|
3132
3157
|
className: C,
|
|
3133
3158
|
style: b,
|
|
3134
|
-
divProps:
|
|
3159
|
+
divProps: p
|
|
3135
3160
|
}) => {
|
|
3136
|
-
const k = R(), V = Ve(null), g = Ve(null), { maxWidth: F } = Le(k.breakpoints.md), z =
|
|
3161
|
+
const k = R(), V = Ve(null), g = Ve(null), { maxWidth: F } = Le(k.breakpoints.md), z = de(`(max-width: ${F - 1}px)`);
|
|
3137
3162
|
ne(() => {
|
|
3138
3163
|
if (e)
|
|
3139
3164
|
return g.current = document.activeElement, document.body.style.overflow = "hidden", V.current && V.current.focus(), () => {
|
|
@@ -3141,28 +3166,28 @@ const ga = ({
|
|
|
3141
3166
|
};
|
|
3142
3167
|
}, [e]), ne(() => {
|
|
3143
3168
|
if (!e || !a) return;
|
|
3144
|
-
const
|
|
3169
|
+
const M = (K) => {
|
|
3145
3170
|
K.key === "Escape" && r();
|
|
3146
3171
|
};
|
|
3147
|
-
return document.addEventListener("keydown",
|
|
3172
|
+
return document.addEventListener("keydown", M), () => document.removeEventListener("keydown", M);
|
|
3148
3173
|
}, [e, a, r]);
|
|
3149
|
-
const E = (
|
|
3150
|
-
|
|
3174
|
+
const E = (M) => {
|
|
3175
|
+
M.target === M.currentTarget && n && r();
|
|
3151
3176
|
};
|
|
3152
3177
|
if (!e) return null;
|
|
3153
3178
|
const B = {
|
|
3154
3179
|
width: c,
|
|
3155
|
-
maxWidth:
|
|
3180
|
+
maxWidth: d,
|
|
3156
3181
|
backgroundColor: y || k.colors.secondary,
|
|
3157
3182
|
borderRadius: k.border.radius,
|
|
3158
3183
|
...b
|
|
3159
|
-
},
|
|
3184
|
+
}, P = {
|
|
3160
3185
|
backgroundColor: m
|
|
3161
|
-
}, U = /* @__PURE__ */
|
|
3186
|
+
}, U = /* @__PURE__ */ _(
|
|
3162
3187
|
"div",
|
|
3163
3188
|
{
|
|
3164
3189
|
className: he.backdrop,
|
|
3165
|
-
style:
|
|
3190
|
+
style: P,
|
|
3166
3191
|
onClick: E,
|
|
3167
3192
|
role: "presentation",
|
|
3168
3193
|
children: /* @__PURE__ */ D(
|
|
@@ -3175,18 +3200,18 @@ const ga = ({
|
|
|
3175
3200
|
"aria-modal": "true",
|
|
3176
3201
|
"aria-labelledby": o ? "modal-title" : void 0,
|
|
3177
3202
|
tabIndex: -1,
|
|
3178
|
-
...
|
|
3203
|
+
...p,
|
|
3179
3204
|
children: [
|
|
3180
3205
|
/* @__PURE__ */ D("div", { className: he.header, children: [
|
|
3181
|
-
o && /* @__PURE__ */
|
|
3182
|
-
!s && /* @__PURE__ */
|
|
3206
|
+
o && /* @__PURE__ */ _("h2", { id: "modal-title", className: he.title, children: o }),
|
|
3207
|
+
!s && /* @__PURE__ */ _(
|
|
3183
3208
|
"button",
|
|
3184
3209
|
{
|
|
3185
3210
|
className: he.closeButton,
|
|
3186
3211
|
onClick: r,
|
|
3187
3212
|
"aria-label": "Close modal",
|
|
3188
3213
|
type: "button",
|
|
3189
|
-
children: /* @__PURE__ */
|
|
3214
|
+
children: /* @__PURE__ */ _(
|
|
3190
3215
|
"svg",
|
|
3191
3216
|
{
|
|
3192
3217
|
width: "100%",
|
|
@@ -3195,7 +3220,7 @@ const ga = ({
|
|
|
3195
3220
|
fill: "none",
|
|
3196
3221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3197
3222
|
"aria-hidden": "true",
|
|
3198
|
-
children: /* @__PURE__ */
|
|
3223
|
+
children: /* @__PURE__ */ _(
|
|
3199
3224
|
"path",
|
|
3200
3225
|
{
|
|
3201
3226
|
d: "M15 5L5 15M5 5L15 15",
|
|
@@ -3210,17 +3235,17 @@ const ga = ({
|
|
|
3210
3235
|
}
|
|
3211
3236
|
)
|
|
3212
3237
|
] }),
|
|
3213
|
-
/* @__PURE__ */
|
|
3214
|
-
i.length > 0 && /* @__PURE__ */
|
|
3215
|
-
|
|
3238
|
+
/* @__PURE__ */ _("div", { className: he.content, children: t }),
|
|
3239
|
+
i.length > 0 && /* @__PURE__ */ _(rn, { direction: z ? "column" : "row", className: he.actions, children: i.map((M, K) => /* @__PURE__ */ _(
|
|
3240
|
+
Gr,
|
|
3216
3241
|
{
|
|
3217
|
-
color:
|
|
3218
|
-
outline:
|
|
3219
|
-
disabled:
|
|
3242
|
+
color: M.color,
|
|
3243
|
+
outline: M.variant === "outline",
|
|
3244
|
+
disabled: M.disabled,
|
|
3220
3245
|
onClick: () => {
|
|
3221
|
-
|
|
3246
|
+
M.onClick ? M.onClick(f || r) : f ? f(M.value) : r();
|
|
3222
3247
|
},
|
|
3223
|
-
children:
|
|
3248
|
+
children: M.label
|
|
3224
3249
|
},
|
|
3225
3250
|
K
|
|
3226
3251
|
)) })
|
|
@@ -3231,7 +3256,7 @@ const ga = ({
|
|
|
3231
3256
|
);
|
|
3232
3257
|
return lt(U, document.body);
|
|
3233
3258
|
}, Nr = ht(null), Sa = ({ children: e }) => {
|
|
3234
|
-
const [r, t] = J(null), o = N.useCallback((c) => new Promise((
|
|
3259
|
+
const [r, t] = J(null), o = N.useCallback((c) => new Promise((d, y) => {
|
|
3235
3260
|
const m = Math.random().toString(36).substr(2, 9);
|
|
3236
3261
|
t({
|
|
3237
3262
|
id: m,
|
|
@@ -3239,11 +3264,11 @@ const ga = ({
|
|
|
3239
3264
|
title: c.title,
|
|
3240
3265
|
actions: c.actions,
|
|
3241
3266
|
options: c.options,
|
|
3242
|
-
resolve:
|
|
3267
|
+
resolve: d,
|
|
3243
3268
|
reject: y
|
|
3244
3269
|
});
|
|
3245
3270
|
}), []), s = N.useCallback((c) => {
|
|
3246
|
-
t((
|
|
3271
|
+
t((d) => (d && d.resolve(c), null));
|
|
3247
3272
|
}, []), n = N.useCallback(
|
|
3248
3273
|
(c) => o({
|
|
3249
3274
|
title: c.title || "Confirm",
|
|
@@ -3252,12 +3277,12 @@ const ga = ({
|
|
|
3252
3277
|
{
|
|
3253
3278
|
label: c.cancelLabel || "Cancel",
|
|
3254
3279
|
variant: "outline",
|
|
3255
|
-
onClick: (
|
|
3280
|
+
onClick: (d) => d(!1)
|
|
3256
3281
|
},
|
|
3257
3282
|
{
|
|
3258
3283
|
label: c.confirmLabel || "Confirm",
|
|
3259
3284
|
color: c.confirmColor,
|
|
3260
|
-
onClick: (
|
|
3285
|
+
onClick: (d) => d(!0)
|
|
3261
3286
|
}
|
|
3262
3287
|
],
|
|
3263
3288
|
options: c.options
|
|
@@ -3271,7 +3296,7 @@ const ga = ({
|
|
|
3271
3296
|
{
|
|
3272
3297
|
label: c.okLabel || "OK",
|
|
3273
3298
|
color: c.okColor,
|
|
3274
|
-
onClick: (
|
|
3299
|
+
onClick: (d) => d()
|
|
3275
3300
|
}
|
|
3276
3301
|
],
|
|
3277
3302
|
options: c.options
|
|
@@ -3290,8 +3315,8 @@ const ga = ({
|
|
|
3290
3315
|
);
|
|
3291
3316
|
return /* @__PURE__ */ D(Nr.Provider, { value: f, children: [
|
|
3292
3317
|
e,
|
|
3293
|
-
r && /* @__PURE__ */
|
|
3294
|
-
|
|
3318
|
+
r && /* @__PURE__ */ _(
|
|
3319
|
+
on,
|
|
3295
3320
|
{
|
|
3296
3321
|
isOpen: !0,
|
|
3297
3322
|
onClose: i,
|
|
@@ -3308,10 +3333,10 @@ const ga = ({
|
|
|
3308
3333
|
if (!e)
|
|
3309
3334
|
throw new Error("useModal must be used within a ModalProvider");
|
|
3310
3335
|
return e;
|
|
3311
|
-
},
|
|
3312
|
-
section:
|
|
3313
|
-
innerDiv:
|
|
3314
|
-
},
|
|
3336
|
+
}, sn = "ResponsiveSection-module__section___gBESK", nn = "ResponsiveSection-module__innerDiv___r1bky", er = {
|
|
3337
|
+
section: sn,
|
|
3338
|
+
innerDiv: nn
|
|
3339
|
+
}, an = ({
|
|
3315
3340
|
// Color props
|
|
3316
3341
|
backgroundColor: e,
|
|
3317
3342
|
color: r,
|
|
@@ -3324,7 +3349,7 @@ const ga = ({
|
|
|
3324
3349
|
paddingSm: i,
|
|
3325
3350
|
margin: f,
|
|
3326
3351
|
gap: c,
|
|
3327
|
-
verticalRhythm:
|
|
3352
|
+
verticalRhythm: d = 3,
|
|
3328
3353
|
// Content
|
|
3329
3354
|
children: y,
|
|
3330
3355
|
// Style overrides
|
|
@@ -3333,24 +3358,24 @@ const ga = ({
|
|
|
3333
3358
|
// Element-specific props
|
|
3334
3359
|
sectionProps: b
|
|
3335
3360
|
}) => {
|
|
3336
|
-
const
|
|
3361
|
+
const p = R(), k = de(`(min-width: ${p.breakpoints.sm})`), V = {
|
|
3337
3362
|
backgroundColor: e,
|
|
3338
|
-
color: r ||
|
|
3363
|
+
color: r || p.fonts.color,
|
|
3339
3364
|
margin: f,
|
|
3340
3365
|
...C
|
|
3341
3366
|
// Top level style prop overrides
|
|
3342
|
-
}, g = `calc(${
|
|
3343
|
-
"--max-width": t ||
|
|
3367
|
+
}, g = `calc(${p.fonts.rhythm} * ${d})`, F = k ? a || p.layout.padding : i || p.layout.paddingSm, z = {
|
|
3368
|
+
"--max-width": t || p.layout.maxWidth,
|
|
3344
3369
|
"--min-width": o,
|
|
3345
3370
|
"--width": s,
|
|
3346
3371
|
"--height": n,
|
|
3347
3372
|
"--section-padding": `${g} ${F}`,
|
|
3348
3373
|
"--gap": c
|
|
3349
|
-
}, E = [
|
|
3350
|
-
return /* @__PURE__ */
|
|
3351
|
-
},
|
|
3352
|
-
hero:
|
|
3353
|
-
content:
|
|
3374
|
+
}, E = [er.section, m].filter(Boolean).join(" ");
|
|
3375
|
+
return /* @__PURE__ */ _("section", { ...b, className: E, style: V, children: /* @__PURE__ */ _("div", { className: er.innerDiv, style: z, children: y }) });
|
|
3376
|
+
}, ln = "Hero-module__hero___IB2tg", cn = "Hero-module__content___rkkfQ", tr = {
|
|
3377
|
+
hero: ln,
|
|
3378
|
+
content: cn
|
|
3354
3379
|
}, dn = ({
|
|
3355
3380
|
isMd: e = !1,
|
|
3356
3381
|
isLg: r = !1,
|
|
@@ -3376,21 +3401,21 @@ const ga = ({
|
|
|
3376
3401
|
style: s,
|
|
3377
3402
|
...n
|
|
3378
3403
|
}) => {
|
|
3379
|
-
const a = R(), i = [
|
|
3380
|
-
return /* @__PURE__ */
|
|
3381
|
-
|
|
3404
|
+
const a = R(), i = [tr.hero, o].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, c = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = de(`(min-width: ${f})`), y = de(`(min-width: ${c})`), m = dn({ isMd: d, isLg: y, theme: a });
|
|
3405
|
+
return /* @__PURE__ */ _(
|
|
3406
|
+
an,
|
|
3382
3407
|
{
|
|
3383
3408
|
className: i,
|
|
3384
3409
|
color: e || a.fonts.color,
|
|
3385
3410
|
style: { ...m, ...s },
|
|
3386
3411
|
...n,
|
|
3387
|
-
children: /* @__PURE__ */
|
|
3412
|
+
children: /* @__PURE__ */ _("div", { className: tr.content, children: t })
|
|
3388
3413
|
}
|
|
3389
3414
|
);
|
|
3390
|
-
},
|
|
3391
|
-
footer:
|
|
3392
|
-
container:
|
|
3393
|
-
},
|
|
3415
|
+
}, un = "Footer-module__footer___A76NF", fn = "Footer-module__container___QneNs", rr = {
|
|
3416
|
+
footer: un,
|
|
3417
|
+
container: fn
|
|
3418
|
+
}, mn = ({
|
|
3394
3419
|
isSmallScreen: e = !1,
|
|
3395
3420
|
maxWidth: r,
|
|
3396
3421
|
minWidth: t,
|
|
@@ -3401,7 +3426,7 @@ const ga = ({
|
|
|
3401
3426
|
margin: i,
|
|
3402
3427
|
gap: f,
|
|
3403
3428
|
backgroundColor: c,
|
|
3404
|
-
color:
|
|
3429
|
+
color: d
|
|
3405
3430
|
} = {}) => {
|
|
3406
3431
|
const y = R();
|
|
3407
3432
|
return {
|
|
@@ -3413,9 +3438,9 @@ const ga = ({
|
|
|
3413
3438
|
margin: i,
|
|
3414
3439
|
gap: f,
|
|
3415
3440
|
backgroundColor: c,
|
|
3416
|
-
color:
|
|
3441
|
+
color: d || y.fonts.color
|
|
3417
3442
|
};
|
|
3418
|
-
},
|
|
3443
|
+
}, yn = ({
|
|
3419
3444
|
// Color props
|
|
3420
3445
|
backgroundColor: e,
|
|
3421
3446
|
color: r,
|
|
@@ -3428,7 +3453,7 @@ const ga = ({
|
|
|
3428
3453
|
paddingSm: i,
|
|
3429
3454
|
margin: f,
|
|
3430
3455
|
gap: c,
|
|
3431
|
-
breakPoint:
|
|
3456
|
+
breakPoint: d,
|
|
3432
3457
|
// Content
|
|
3433
3458
|
children: y,
|
|
3434
3459
|
// Style overrides
|
|
@@ -3437,7 +3462,7 @@ const ga = ({
|
|
|
3437
3462
|
// Element-specific props
|
|
3438
3463
|
footerProps: b
|
|
3439
3464
|
}) => {
|
|
3440
|
-
const
|
|
3465
|
+
const p = R(), k = d || p.breakpoints.sm, { maxWidth: V, unit: g } = Le(k), F = de(`(max-width: ${V}${g})`), z = mn({
|
|
3441
3466
|
isSmallScreen: F,
|
|
3442
3467
|
maxWidth: t,
|
|
3443
3468
|
minWidth: o,
|
|
@@ -3449,14 +3474,14 @@ const ga = ({
|
|
|
3449
3474
|
gap: c,
|
|
3450
3475
|
backgroundColor: e,
|
|
3451
3476
|
color: r
|
|
3452
|
-
}), E = [
|
|
3453
|
-
return /* @__PURE__ */
|
|
3454
|
-
},
|
|
3455
|
-
card:
|
|
3456
|
-
icon:
|
|
3457
|
-
title:
|
|
3458
|
-
content:
|
|
3459
|
-
},
|
|
3477
|
+
}), E = [rr.container, m].filter(Boolean).join(" ");
|
|
3478
|
+
return /* @__PURE__ */ _("footer", { ...b, className: rr.footer, children: /* @__PURE__ */ _("div", { className: E, style: { ...z, ...C }, children: y }) });
|
|
3479
|
+
}, hn = "FeatureCard-module__card___XQt66", _n = "FeatureCard-module__icon___dXJ92", pn = "FeatureCard-module__title___KxXyA", gn = "FeatureCard-module__content___68xkw", Ie = {
|
|
3480
|
+
card: hn,
|
|
3481
|
+
icon: _n,
|
|
3482
|
+
title: pn,
|
|
3483
|
+
content: gn
|
|
3484
|
+
}, vn = ({
|
|
3460
3485
|
isMd: e = !1,
|
|
3461
3486
|
theme: r
|
|
3462
3487
|
}) => We(() => {
|
|
@@ -3481,7 +3506,7 @@ const ga = ({
|
|
|
3481
3506
|
// Element-specific props
|
|
3482
3507
|
divProps: a
|
|
3483
3508
|
}) => {
|
|
3484
|
-
const i = R(), f = [Ie.card, s].filter(Boolean).join(" "), c = e || i.breakpoints.md,
|
|
3509
|
+
const i = R(), f = [Ie.card, s].filter(Boolean).join(" "), c = e || i.breakpoints.md, d = de(`(min-width: ${c})`), y = vn({ isMd: d, theme: i });
|
|
3485
3510
|
return /* @__PURE__ */ D(
|
|
3486
3511
|
"div",
|
|
3487
3512
|
{
|
|
@@ -3489,14 +3514,14 @@ const ga = ({
|
|
|
3489
3514
|
className: f,
|
|
3490
3515
|
style: { ...y, ...n },
|
|
3491
3516
|
children: [
|
|
3492
|
-
r && /* @__PURE__ */
|
|
3493
|
-
/* @__PURE__ */
|
|
3494
|
-
/* @__PURE__ */
|
|
3517
|
+
r && /* @__PURE__ */ _("div", { className: Ie.icon, children: r }),
|
|
3518
|
+
/* @__PURE__ */ _("h3", { className: Ie.title, children: t }),
|
|
3519
|
+
/* @__PURE__ */ _("div", { className: Ie.content, children: o })
|
|
3495
3520
|
]
|
|
3496
3521
|
}
|
|
3497
3522
|
);
|
|
3498
|
-
},
|
|
3499
|
-
grid:
|
|
3523
|
+
}, bn = "FeatureGrid-module__grid___6sW6f", Sn = {
|
|
3524
|
+
grid: bn
|
|
3500
3525
|
}, wn = ({
|
|
3501
3526
|
columns: e,
|
|
3502
3527
|
isMd: r = !1,
|
|
@@ -3513,23 +3538,19 @@ const ga = ({
|
|
|
3513
3538
|
} : {
|
|
3514
3539
|
"--grid-template-columns": "1fr"
|
|
3515
3540
|
}, [e, r, t]), Ca = ({
|
|
3516
|
-
// Layout props
|
|
3517
3541
|
columns: e = 3,
|
|
3518
3542
|
breakpoints: r,
|
|
3519
3543
|
gap: t,
|
|
3520
|
-
// Content
|
|
3521
3544
|
children: o,
|
|
3522
|
-
// Style overrides
|
|
3523
3545
|
className: s,
|
|
3524
|
-
style: n
|
|
3525
|
-
...a
|
|
3546
|
+
style: n
|
|
3526
3547
|
}) => {
|
|
3527
|
-
const
|
|
3528
|
-
...wn({ columns: e, isMd:
|
|
3548
|
+
const a = R(), i = (r == null ? void 0 : r.md) || a.breakpoints.md, f = (r == null ? void 0 : r.lg) || a.breakpoints.lg, c = de(`(min-width: ${i})`), d = de(`(min-width: ${f})`), m = {
|
|
3549
|
+
...wn({ columns: e, isMd: c, isLg: d }),
|
|
3529
3550
|
gap: t,
|
|
3530
3551
|
...n
|
|
3531
3552
|
};
|
|
3532
|
-
return /* @__PURE__ */
|
|
3553
|
+
return /* @__PURE__ */ _("div", { className: [Sn.grid, s].filter(Boolean).join(" "), style: m, children: o });
|
|
3533
3554
|
}, kn = "MediaCard-module__card___9pZ7C", xn = "MediaCard-module__clickable___Rae9n", Cn = "MediaCard-module__vertical___GWtOA", Fn = "MediaCard-module__imageWrapper___HUiag", Vn = "MediaCard-module__horizontal___qlK4y", zn = "MediaCard-module__content___MlqE4", we = {
|
|
3534
3555
|
card: kn,
|
|
3535
3556
|
clickable: xn,
|
|
@@ -3549,13 +3570,13 @@ const ga = ({
|
|
|
3549
3570
|
actions: f,
|
|
3550
3571
|
divProps: c
|
|
3551
3572
|
}) => {
|
|
3552
|
-
const
|
|
3573
|
+
const d = R(), y = [
|
|
3553
3574
|
we.card,
|
|
3554
3575
|
e === "row" ? we.horizontal : we.vertical,
|
|
3555
3576
|
i ? we.clickable : void 0,
|
|
3556
3577
|
n
|
|
3557
3578
|
].filter(Boolean).join(" "), m = {
|
|
3558
|
-
borderRadius:
|
|
3579
|
+
borderRadius: d.border.radius,
|
|
3559
3580
|
...o && { backgroundColor: o },
|
|
3560
3581
|
...t && e === "row" && { "--media-card-image-width": t },
|
|
3561
3582
|
...a
|
|
@@ -3573,8 +3594,8 @@ const ga = ({
|
|
|
3573
3594
|
role: i ? "button" : void 0,
|
|
3574
3595
|
tabIndex: i ? 0 : void 0,
|
|
3575
3596
|
children: [
|
|
3576
|
-
r && /* @__PURE__ */
|
|
3577
|
-
/* @__PURE__ */
|
|
3597
|
+
r && /* @__PURE__ */ _("div", { className: we.imageWrapper, children: r }),
|
|
3598
|
+
/* @__PURE__ */ _("div", { className: we.content, children: s }),
|
|
3578
3599
|
f
|
|
3579
3600
|
]
|
|
3580
3601
|
}
|
|
@@ -3600,23 +3621,23 @@ const ga = ({
|
|
|
3600
3621
|
const c = [at.layoutContainer, o].filter(Boolean).join(" ");
|
|
3601
3622
|
return /* @__PURE__ */ D("div", { ...i, className: c, style: s, children: [
|
|
3602
3623
|
/* @__PURE__ */ D("div", { className: at.content, children: [
|
|
3603
|
-
e && /* @__PURE__ */
|
|
3604
|
-
/* @__PURE__ */
|
|
3624
|
+
e && /* @__PURE__ */ _(Ss, { ...n, children: e }),
|
|
3625
|
+
/* @__PURE__ */ _("main", { ...f, className: at.main, children: t })
|
|
3605
3626
|
] }),
|
|
3606
|
-
r && /* @__PURE__ */
|
|
3627
|
+
r && /* @__PURE__ */ _(yn, { ...a, children: r })
|
|
3607
3628
|
] });
|
|
3608
|
-
}, Ln = "FileUpload-module__dropzone___jqua0", An = "FileUpload-module__loading___C7PsH",
|
|
3629
|
+
}, Ln = "FileUpload-module__dropzone___jqua0", An = "FileUpload-module__loading___C7PsH", Mn = "FileUpload-module__dragOver___q1zPo", Pn = "FileUpload-module__hiddenInput___RLLPJ", Bn = "FileUpload-module__content___yCP0l", Dn = "FileUpload-module__contentHidden___0Ewoe", Rn = "FileUpload-module__spinnerOverlay___e3Rle", On = "FileUpload-module__label___lbMkx", In = "FileUpload-module__hint___8dXlk", Tn = "FileUpload-module__errorMessage___8HB3n", ae = {
|
|
3609
3630
|
dropzone: Ln,
|
|
3610
3631
|
loading: An,
|
|
3611
|
-
dragOver:
|
|
3612
|
-
hiddenInput:
|
|
3632
|
+
dragOver: Mn,
|
|
3633
|
+
hiddenInput: Pn,
|
|
3613
3634
|
content: Bn,
|
|
3614
3635
|
contentHidden: Dn,
|
|
3615
3636
|
spinnerOverlay: Rn,
|
|
3616
3637
|
label: On,
|
|
3617
3638
|
hint: In,
|
|
3618
3639
|
errorMessage: Tn
|
|
3619
|
-
}, Hn = ({ color: e }) => /* @__PURE__ */
|
|
3640
|
+
}, Hn = ({ color: e }) => /* @__PURE__ */ _(
|
|
3620
3641
|
"svg",
|
|
3621
3642
|
{
|
|
3622
3643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3625,7 +3646,7 @@ const ga = ({
|
|
|
3625
3646
|
width: "48",
|
|
3626
3647
|
height: "48",
|
|
3627
3648
|
"aria-hidden": !0,
|
|
3628
|
-
children: /* @__PURE__ */
|
|
3649
|
+
children: /* @__PURE__ */ _("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })
|
|
3629
3650
|
}
|
|
3630
3651
|
), za = ({
|
|
3631
3652
|
onUpload: e,
|
|
@@ -3639,11 +3660,11 @@ const ga = ({
|
|
|
3639
3660
|
divProps: f,
|
|
3640
3661
|
inputProps: c
|
|
3641
3662
|
}) => {
|
|
3642
|
-
const
|
|
3663
|
+
const d = R(), y = Ve(null), [m, C] = J(!1), [b, p] = J(null), k = s || b, V = k ? d.colors.error : d.colors.primary, g = k ? d.colors.error : d.colors.primary, F = Ce(
|
|
3643
3664
|
(L) => {
|
|
3644
|
-
if (
|
|
3665
|
+
if (p(null), t && L.size > t) {
|
|
3645
3666
|
const A = (t / 1048576).toFixed(1);
|
|
3646
|
-
|
|
3667
|
+
p(`File exceeds maximum size of ${A} MB`);
|
|
3647
3668
|
return;
|
|
3648
3669
|
}
|
|
3649
3670
|
e(L);
|
|
@@ -3659,9 +3680,9 @@ const ga = ({
|
|
|
3659
3680
|
var O;
|
|
3660
3681
|
const A = (O = L.target.files) == null ? void 0 : O[0];
|
|
3661
3682
|
A && F(A), L.target.value = "";
|
|
3662
|
-
},
|
|
3683
|
+
}, P = (L) => {
|
|
3663
3684
|
L.preventDefault(), o || C(!0);
|
|
3664
|
-
}, U = () => C(!1),
|
|
3685
|
+
}, U = () => C(!1), M = (L) => {
|
|
3665
3686
|
var O;
|
|
3666
3687
|
if (L.preventDefault(), C(!1), o) return;
|
|
3667
3688
|
const A = (O = L.dataTransfer.files) == null ? void 0 : O[0];
|
|
@@ -3674,9 +3695,9 @@ const ga = ({
|
|
|
3674
3695
|
].filter(Boolean).join(" "), q = {
|
|
3675
3696
|
"--upload-color": V,
|
|
3676
3697
|
borderColor: V,
|
|
3677
|
-
borderWidth:
|
|
3678
|
-
borderRadius:
|
|
3679
|
-
fontSize:
|
|
3698
|
+
borderWidth: d.border.width,
|
|
3699
|
+
borderRadius: d.border.radius,
|
|
3700
|
+
fontSize: "1em",
|
|
3680
3701
|
color: g,
|
|
3681
3702
|
...i
|
|
3682
3703
|
};
|
|
@@ -3688,15 +3709,15 @@ const ga = ({
|
|
|
3688
3709
|
style: q,
|
|
3689
3710
|
onClick: z,
|
|
3690
3711
|
onKeyDown: E,
|
|
3691
|
-
onDragOver:
|
|
3712
|
+
onDragOver: P,
|
|
3692
3713
|
onDragLeave: U,
|
|
3693
|
-
onDrop:
|
|
3714
|
+
onDrop: M,
|
|
3694
3715
|
role: "button",
|
|
3695
3716
|
tabIndex: o ? -1 : 0,
|
|
3696
3717
|
"aria-disabled": o,
|
|
3697
3718
|
"aria-label": n,
|
|
3698
3719
|
children: [
|
|
3699
|
-
/* @__PURE__ */
|
|
3720
|
+
/* @__PURE__ */ _(
|
|
3700
3721
|
"input",
|
|
3701
3722
|
{
|
|
3702
3723
|
...c,
|
|
@@ -3710,7 +3731,7 @@ const ga = ({
|
|
|
3710
3731
|
"aria-hidden": !0
|
|
3711
3732
|
}
|
|
3712
3733
|
),
|
|
3713
|
-
o && /* @__PURE__ */
|
|
3734
|
+
o && /* @__PURE__ */ _(
|
|
3714
3735
|
Er,
|
|
3715
3736
|
{
|
|
3716
3737
|
fullScreen: !1,
|
|
@@ -3724,8 +3745,8 @@ const ga = ({
|
|
|
3724
3745
|
className: [ae.content, o && ae.contentHidden].filter(Boolean).join(" "),
|
|
3725
3746
|
"aria-hidden": o || void 0,
|
|
3726
3747
|
children: [
|
|
3727
|
-
/* @__PURE__ */
|
|
3728
|
-
/* @__PURE__ */
|
|
3748
|
+
/* @__PURE__ */ _(Hn, { color: V }),
|
|
3749
|
+
/* @__PURE__ */ _("span", { className: ae.label, children: n }),
|
|
3729
3750
|
r && /* @__PURE__ */ D("span", { className: ae.hint, children: [
|
|
3730
3751
|
"Accepted: ",
|
|
3731
3752
|
r
|
|
@@ -3735,7 +3756,7 @@ const ga = ({
|
|
|
3735
3756
|
(t / (1024 * 1024)).toFixed(1),
|
|
3736
3757
|
" MB"
|
|
3737
3758
|
] }),
|
|
3738
|
-
k && /* @__PURE__ */
|
|
3759
|
+
k && /* @__PURE__ */ _("span", { className: ae.errorMessage, role: "alert", children: k })
|
|
3739
3760
|
]
|
|
3740
3761
|
}
|
|
3741
3762
|
)
|
|
@@ -3748,9 +3769,9 @@ const ga = ({
|
|
|
3748
3769
|
fallback: Un
|
|
3749
3770
|
}, qn = "Skeleton-module__skeleton___CB4uF", Gn = {
|
|
3750
3771
|
skeleton: qn
|
|
3751
|
-
},
|
|
3772
|
+
}, $r = ({ className: e, style: r, divProps: t }) => {
|
|
3752
3773
|
const o = R(), s = [Gn.skeleton, e].filter(Boolean).join(" ");
|
|
3753
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ _(
|
|
3754
3775
|
"div",
|
|
3755
3776
|
{
|
|
3756
3777
|
...t,
|
|
@@ -3771,13 +3792,13 @@ const ga = ({
|
|
|
3771
3792
|
style: i,
|
|
3772
3793
|
imgProps: f
|
|
3773
3794
|
}) => {
|
|
3774
|
-
const c = R(), [
|
|
3795
|
+
const c = R(), [d, y] = J(null), [m, C] = J(null), [b, p] = J(null), k = d === e, V = m === e, g = b === e;
|
|
3775
3796
|
ne(() => {
|
|
3776
3797
|
if (!e) return;
|
|
3777
|
-
const U = setTimeout(() =>
|
|
3798
|
+
const U = setTimeout(() => p(e), s);
|
|
3778
3799
|
return () => clearTimeout(U);
|
|
3779
3800
|
}, [e, s]);
|
|
3780
|
-
const F = o || !!e && !k && !V && g, z = !o && (!e || V), E = !o && !!e && !V, B = [it.container, a].filter(Boolean).join(" "),
|
|
3801
|
+
const F = o || !!e && !k && !V && g, z = !o && (!e || V), E = !o && !!e && !V, B = [it.container, a].filter(Boolean).join(" "), P = {
|
|
3781
3802
|
aspectRatio: t,
|
|
3782
3803
|
borderRadius: c.border.radius,
|
|
3783
3804
|
...i
|
|
@@ -3786,13 +3807,13 @@ const ga = ({
|
|
|
3786
3807
|
"div",
|
|
3787
3808
|
{
|
|
3788
3809
|
className: B,
|
|
3789
|
-
style:
|
|
3810
|
+
style: P,
|
|
3790
3811
|
"aria-label": z ? r || "Image placeholder" : void 0,
|
|
3791
3812
|
"aria-busy": F || void 0,
|
|
3792
3813
|
children: [
|
|
3793
|
-
F && /* @__PURE__ */
|
|
3794
|
-
z && /* @__PURE__ */
|
|
3795
|
-
E && /* @__PURE__ */
|
|
3814
|
+
F && /* @__PURE__ */ _($r, { style: { borderRadius: "inherit", position: "absolute", inset: 0 } }),
|
|
3815
|
+
z && /* @__PURE__ */ _("div", { className: it.fallback, children: n ?? null }),
|
|
3816
|
+
E && /* @__PURE__ */ _(
|
|
3796
3817
|
"img",
|
|
3797
3818
|
{
|
|
3798
3819
|
...f,
|
|
@@ -3832,9 +3853,9 @@ const ga = ({
|
|
|
3832
3853
|
height: "40%",
|
|
3833
3854
|
"aria-hidden": !0,
|
|
3834
3855
|
children: [
|
|
3835
|
-
/* @__PURE__ */
|
|
3836
|
-
/* @__PURE__ */
|
|
3837
|
-
/* @__PURE__ */
|
|
3856
|
+
/* @__PURE__ */ _("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
3857
|
+
/* @__PURE__ */ _("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
|
|
3858
|
+
/* @__PURE__ */ _("polyline", { points: "21 15 16 10 5 21" })
|
|
3838
3859
|
]
|
|
3839
3860
|
}
|
|
3840
3861
|
), Na = ({
|
|
@@ -3848,15 +3869,15 @@ const ga = ({
|
|
|
3848
3869
|
fallback: i,
|
|
3849
3870
|
className: f,
|
|
3850
3871
|
style: c,
|
|
3851
|
-
imgProps:
|
|
3872
|
+
imgProps: d
|
|
3852
3873
|
}) => {
|
|
3853
|
-
const y = R(), [m, C] = J(null), [b,
|
|
3874
|
+
const y = R(), [m, C] = J(null), [b, p] = J(null), [k, V] = J(null), g = m === e, F = b === e, z = k === e;
|
|
3854
3875
|
ne(() => {
|
|
3855
3876
|
if (!e) return;
|
|
3856
3877
|
const q = setTimeout(() => V(e), s);
|
|
3857
3878
|
return () => clearTimeout(q);
|
|
3858
3879
|
}, [e, s]);
|
|
3859
|
-
const E = o || !!e && !g && !F && z, B = !o && (!e || F),
|
|
3880
|
+
const E = o || !!e && !g && !F && z, B = !o && (!e || F), P = !o && !!e && !F, U = [pe.thumbnail, ta[t], f].filter(Boolean).join(" "), M = {
|
|
3860
3881
|
borderRadius: y.border.radius,
|
|
3861
3882
|
...c
|
|
3862
3883
|
}, K = {
|
|
@@ -3868,25 +3889,25 @@ const ga = ({
|
|
|
3868
3889
|
"div",
|
|
3869
3890
|
{
|
|
3870
3891
|
className: U,
|
|
3871
|
-
style:
|
|
3892
|
+
style: M,
|
|
3872
3893
|
"aria-label": B ? r || "Image placeholder" : void 0,
|
|
3873
3894
|
"aria-busy": E || void 0,
|
|
3874
3895
|
children: [
|
|
3875
|
-
E && /* @__PURE__ */
|
|
3876
|
-
B && (i ?? /* @__PURE__ */
|
|
3877
|
-
|
|
3896
|
+
E && /* @__PURE__ */ _($r, { style: { borderRadius: "inherit", position: "absolute", inset: 0 } }),
|
|
3897
|
+
B && (i ?? /* @__PURE__ */ _(ra, { color: y.colors.primary })),
|
|
3898
|
+
P && /* @__PURE__ */ _(
|
|
3878
3899
|
"img",
|
|
3879
3900
|
{
|
|
3880
|
-
...
|
|
3901
|
+
...d,
|
|
3881
3902
|
src: e,
|
|
3882
3903
|
alt: r,
|
|
3883
3904
|
className: pe.img,
|
|
3884
3905
|
style: { opacity: g ? 1 : 0 },
|
|
3885
3906
|
onLoad: () => e && C(e),
|
|
3886
|
-
onError: () => e &&
|
|
3907
|
+
onError: () => e && p(e)
|
|
3887
3908
|
}
|
|
3888
3909
|
),
|
|
3889
|
-
n && /* @__PURE__ */
|
|
3910
|
+
n && /* @__PURE__ */ _(
|
|
3890
3911
|
"button",
|
|
3891
3912
|
{
|
|
3892
3913
|
type: "button",
|
|
@@ -3907,8 +3928,8 @@ const ga = ({
|
|
|
3907
3928
|
strokeWidth: y.fonts.fontWeightHeader >= 700 ? 2 : 1.5,
|
|
3908
3929
|
"aria-hidden": !0,
|
|
3909
3930
|
children: [
|
|
3910
|
-
/* @__PURE__ */
|
|
3911
|
-
/* @__PURE__ */
|
|
3931
|
+
/* @__PURE__ */ _("line", { x1: "2", y1: "2", x2: "8", y2: "8" }),
|
|
3932
|
+
/* @__PURE__ */ _("line", { x1: "8", y1: "2", x2: "2", y2: "8" })
|
|
3912
3933
|
]
|
|
3913
3934
|
}
|
|
3914
3935
|
)
|
|
@@ -3919,34 +3940,34 @@ const ga = ({
|
|
|
3919
3940
|
);
|
|
3920
3941
|
};
|
|
3921
3942
|
export {
|
|
3922
|
-
|
|
3943
|
+
Gr as Button,
|
|
3923
3944
|
la as CSSReset,
|
|
3924
|
-
|
|
3945
|
+
dt as Checkbox,
|
|
3925
3946
|
xa as FeatureCard,
|
|
3926
|
-
Ca as
|
|
3947
|
+
Ca as FeatureGrid,
|
|
3927
3948
|
za as FileUpload,
|
|
3928
|
-
|
|
3949
|
+
yn as Footer,
|
|
3929
3950
|
ca as Form,
|
|
3930
3951
|
ma as FormCheckbox,
|
|
3931
3952
|
_a as FormCheckboxGroup,
|
|
3932
|
-
|
|
3953
|
+
To as FormError,
|
|
3933
3954
|
ge as FormField,
|
|
3934
|
-
|
|
3935
|
-
|
|
3955
|
+
Go as FormGroup,
|
|
3956
|
+
da as FormInput,
|
|
3936
3957
|
_t as FormLabel,
|
|
3937
3958
|
ya as FormRadio,
|
|
3938
3959
|
ha as FormRadioGroup,
|
|
3939
3960
|
fa as FormSelect,
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3961
|
+
ua as FormTextarea,
|
|
3962
|
+
ps as Hamburger,
|
|
3963
|
+
Ss as Header,
|
|
3943
3964
|
ka as Hero,
|
|
3944
3965
|
Ea as Image,
|
|
3945
3966
|
Na as ImageThumbnail,
|
|
3946
|
-
|
|
3967
|
+
Jo as Input,
|
|
3947
3968
|
Er as LoadingSpinner,
|
|
3948
3969
|
Fa as MediaCard,
|
|
3949
|
-
|
|
3970
|
+
on as Modal,
|
|
3950
3971
|
Sa as ModalProvider,
|
|
3951
3972
|
ga as NavDropdown,
|
|
3952
3973
|
va as NavLink,
|
|
@@ -3954,17 +3975,17 @@ export {
|
|
|
3954
3975
|
Vr as Popover,
|
|
3955
3976
|
Fr as Radio,
|
|
3956
3977
|
pa as ResponsiveNav,
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3978
|
+
Is as ResponsiveNavContext,
|
|
3979
|
+
an as ResponsiveSection,
|
|
3980
|
+
ls as Select,
|
|
3981
|
+
$r as Skeleton,
|
|
3982
|
+
rn as Stack,
|
|
3962
3983
|
ba as StyleLoader,
|
|
3963
|
-
|
|
3984
|
+
os as Textarea,
|
|
3964
3985
|
ia as ThemeProvider,
|
|
3965
3986
|
Le as parseBreakpoint,
|
|
3966
|
-
|
|
3967
|
-
|
|
3987
|
+
Do as useFormContext,
|
|
3988
|
+
de as useMediaQuery,
|
|
3968
3989
|
wa as useModal,
|
|
3969
3990
|
zr as useNavLinkStyles,
|
|
3970
3991
|
R as useTheme
|