digital-rabbit-cl 2.4.9 → 2.4.11
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/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/digital-rabbit-cl.es.js +710 -717
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.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__section___wZrbC{padding:var(--section-padding-vertical) 0}.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)}})();
|
|
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))}.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
2
|
import { jsx as p, jsxs as D, Fragment as Fe } from "react/jsx-runtime";
|
|
3
|
-
import N, { createContext as ht, useContext as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
6
|
-
button:
|
|
7
|
-
sizeSmall:
|
|
8
|
-
sizeLarge:
|
|
9
|
-
},
|
|
3
|
+
import N, { createContext as ht, useContext as rr, useState as J, useLayoutEffect as Tr, useSyncExternalStore as Hr, useEffect as ne, useCallback as Ce, useRef as Ve, useMemo as We } from "react";
|
|
4
|
+
import { createPortal as it } from "react-dom";
|
|
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,
|
|
@@ -15,9 +15,9 @@ const Ur = "Button-module__button___2ZuB7", qr = "Button-module__sizeSmall___DRT
|
|
|
15
15
|
outline: n,
|
|
16
16
|
theme: a
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
18
|
+
const l = t || a.colors.primary, f = a.buttons.textColor;
|
|
19
19
|
let c, u, y;
|
|
20
|
-
n ? (c = "transparent", u =
|
|
20
|
+
n ? (c = "transparent", u = l, y = l, e && (c = o || l, u = o || l, y = s || f)) : (c = l, u = l, y = f, e && (c = o || l, u = o || l, y = s || f));
|
|
21
21
|
let m = 1;
|
|
22
22
|
return r ? m = 0.3 : e && !o && (m = 0.75), {
|
|
23
23
|
backgroundColor: c,
|
|
@@ -26,11 +26,11 @@ const Ur = "Button-module__button___2ZuB7", qr = "Button-module__sizeSmall___DRT
|
|
|
26
26
|
opacity: m
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function or(e, r) {
|
|
30
30
|
const t = { ...e };
|
|
31
31
|
return De(e) && De(r) && Object.keys(r).forEach((o) => {
|
|
32
32
|
const s = r[o], n = e[o];
|
|
33
|
-
De(s) && De(n) ? t[o] =
|
|
33
|
+
De(s) && De(n) ? t[o] = or(
|
|
34
34
|
n,
|
|
35
35
|
s
|
|
36
36
|
) : s !== void 0 && (t[o] = s);
|
|
@@ -115,10 +115,10 @@ const Xe = {
|
|
|
115
115
|
backdropColor: "rgba(0, 0, 0, 0.5)",
|
|
116
116
|
boxShadow: "0 10px 40px rgba(0, 0, 0, 0.2)"
|
|
117
117
|
}
|
|
118
|
-
},
|
|
119
|
-
const t = e ?
|
|
120
|
-
return /* @__PURE__ */ p(
|
|
121
|
-
}, R = () =>
|
|
118
|
+
}, sr = ht(ct), la = ({ theme: e, children: r }) => {
|
|
119
|
+
const t = e ? or(ct, e) : ct;
|
|
120
|
+
return /* @__PURE__ */ p(sr.Provider, { value: t, children: r });
|
|
121
|
+
}, R = () => rr(sr), Gr = ({
|
|
122
122
|
// Core styling
|
|
123
123
|
color: e,
|
|
124
124
|
hoverColor: r,
|
|
@@ -129,14 +129,14 @@ const Xe = {
|
|
|
129
129
|
outline: n = !1,
|
|
130
130
|
type: a = "button",
|
|
131
131
|
// Standard React props
|
|
132
|
-
className:
|
|
132
|
+
className: l,
|
|
133
133
|
style: f,
|
|
134
134
|
buttonProps: c = {},
|
|
135
135
|
onClick: u,
|
|
136
136
|
children: y
|
|
137
137
|
}) => {
|
|
138
138
|
const m = R(), [C, b] = J(!1), k = {
|
|
139
|
-
...
|
|
139
|
+
...qr({
|
|
140
140
|
isActive: C,
|
|
141
141
|
disabled: o,
|
|
142
142
|
color: e,
|
|
@@ -156,7 +156,7 @@ const Xe = {
|
|
|
156
156
|
Be.button,
|
|
157
157
|
s === "small" ? Be.sizeSmall : Be.sizeLarge,
|
|
158
158
|
n ? Be.outline : "",
|
|
159
|
-
|
|
159
|
+
l
|
|
160
160
|
].filter(Boolean).join(" ");
|
|
161
161
|
return /* @__PURE__ */ p(
|
|
162
162
|
"button",
|
|
@@ -173,33 +173,33 @@ const Xe = {
|
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
175
|
};
|
|
176
|
-
var Mt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto),
|
|
177
|
-
function
|
|
176
|
+
var Mt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Zr = new Uint8Array(16);
|
|
177
|
+
function Kr() {
|
|
178
178
|
if (!Mt)
|
|
179
179
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
180
|
-
return Mt(
|
|
180
|
+
return Mt(Zr);
|
|
181
181
|
}
|
|
182
|
-
var
|
|
182
|
+
var nr = [];
|
|
183
183
|
for (var Re = 0; Re < 256; ++Re)
|
|
184
|
-
|
|
185
|
-
function
|
|
186
|
-
var t = 0, o =
|
|
184
|
+
nr[Re] = (Re + 256).toString(16).substr(1);
|
|
185
|
+
function Qr(e, r) {
|
|
186
|
+
var t = 0, o = nr;
|
|
187
187
|
return [o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]]].join("");
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function ar(e, r, t) {
|
|
190
190
|
var o = r && t || 0;
|
|
191
191
|
typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
|
|
192
|
-
var s = e.random || (e.rng ||
|
|
192
|
+
var s = e.random || (e.rng || Kr)();
|
|
193
193
|
if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, r)
|
|
194
194
|
for (var n = 0; n < 16; ++n)
|
|
195
195
|
r[o + n] = s[n];
|
|
196
|
-
return r ||
|
|
196
|
+
return r || Qr(s);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
container:
|
|
200
|
-
svg:
|
|
201
|
-
label:
|
|
202
|
-
},
|
|
198
|
+
const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kkluC", Yr = "Checkbox-module__label___cwRtI", Je = {
|
|
199
|
+
container: Xr,
|
|
200
|
+
svg: Jr,
|
|
201
|
+
label: Yr
|
|
202
|
+
}, eo = ({
|
|
203
203
|
color: e = "#000",
|
|
204
204
|
checkmarkColor: r,
|
|
205
205
|
disabled: t = !1,
|
|
@@ -212,10 +212,10 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
212
212
|
cursor: t ? "default" : "pointer",
|
|
213
213
|
opacity: t ? 0.3 : 1
|
|
214
214
|
};
|
|
215
|
-
},
|
|
216
|
-
label:
|
|
217
|
-
disabled:
|
|
218
|
-
},
|
|
215
|
+
}, to = "FormLabel-module__label___0M-fo", ro = "FormLabel-module__disabled___ktIFp", Bt = {
|
|
216
|
+
label: to,
|
|
217
|
+
disabled: ro
|
|
218
|
+
}, oo = ({
|
|
219
219
|
color: e = "#000",
|
|
220
220
|
disabled: r = !1,
|
|
221
221
|
fontSize: t = ".85em"
|
|
@@ -238,9 +238,9 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
238
238
|
className: n,
|
|
239
239
|
style: a,
|
|
240
240
|
// Element-specific props
|
|
241
|
-
labelProps:
|
|
241
|
+
labelProps: l
|
|
242
242
|
}) => {
|
|
243
|
-
const f = R(), c = f.colors.error, u = t ? c : e || f.colors.primary, y =
|
|
243
|
+
const f = R(), c = f.colors.error, u = t ? c : e || f.colors.primary, y = oo({
|
|
244
244
|
color: u,
|
|
245
245
|
disabled: r,
|
|
246
246
|
fontSize: ".85em"
|
|
@@ -253,7 +253,7 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
253
253
|
...a
|
|
254
254
|
// Top level style prop overrides
|
|
255
255
|
}, C = [Bt.label, r ? Bt.disabled : "", n].filter(Boolean).join(" ");
|
|
256
|
-
return /* @__PURE__ */ p("label", { ...
|
|
256
|
+
return /* @__PURE__ */ p("label", { ...l, className: C, htmlFor: o, style: m, children: s });
|
|
257
257
|
}, ut = ({
|
|
258
258
|
// Color props
|
|
259
259
|
color: e,
|
|
@@ -265,7 +265,7 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
265
265
|
error: n = !1,
|
|
266
266
|
// Form props
|
|
267
267
|
name: a,
|
|
268
|
-
id:
|
|
268
|
+
id: l,
|
|
269
269
|
onChange: f,
|
|
270
270
|
label: c,
|
|
271
271
|
labelStyle: u,
|
|
@@ -275,7 +275,7 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
275
275
|
// Element-specific props
|
|
276
276
|
divProps: C
|
|
277
277
|
}) => {
|
|
278
|
-
const b = R(), _ =
|
|
278
|
+
const b = R(), _ = l || ar(), k = b.colors.error, V = n ? k : e || b.colors.primary, g = eo({
|
|
279
279
|
color: V,
|
|
280
280
|
checkmarkColor: r,
|
|
281
281
|
disabled: s,
|
|
@@ -339,16 +339,16 @@ const Yr = "Checkbox-module__container___aV9qz", eo = "Checkbox-module__svg___kk
|
|
|
339
339
|
}
|
|
340
340
|
)
|
|
341
341
|
] });
|
|
342
|
-
},
|
|
342
|
+
}, ia = () => {
|
|
343
343
|
const e = R();
|
|
344
|
-
return
|
|
344
|
+
return Tr(() => {
|
|
345
345
|
const r = document.documentElement;
|
|
346
346
|
e.fonts && (e.fonts.fontFamily && r.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && r.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && r.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && r.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && r.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && r.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && r.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && r.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && r.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && r.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && r.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && r.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && r.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && r.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && r.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && r.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && r.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && r.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.paddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.paddingSm), e.layout.padding && r.style.setProperty("--layout-wrapper-padding", e.layout.padding));
|
|
347
347
|
}, [e]), null;
|
|
348
348
|
};
|
|
349
349
|
var Ae = (e) => e.type === "checkbox", _e = (e) => e instanceof Date, ee = (e) => e == null;
|
|
350
350
|
const lr = (e) => typeof e == "object";
|
|
351
|
-
var Z = (e) => !ee(e) && !Array.isArray(e) && lr(e) && !_e(e),
|
|
351
|
+
var Z = (e) => !ee(e) && !Array.isArray(e) && lr(e) && !_e(e), ir = (e) => Z(e) && e.target ? Ae(e.target) ? e.target.checked : e.target.value : e, so = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, cr = (e, r) => e.has(so(r)), no = (e) => {
|
|
352
352
|
const r = e.constructor && e.constructor.prototype;
|
|
353
353
|
return Z(r) && r.hasOwnProperty("isPrototypeOf");
|
|
354
354
|
}, pt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -358,7 +358,7 @@ function X(e) {
|
|
|
358
358
|
if (e instanceof Date)
|
|
359
359
|
r = new Date(e);
|
|
360
360
|
else if (!(pt && (e instanceof Blob || o)) && (t || Z(e)))
|
|
361
|
-
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !
|
|
361
|
+
if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !no(e))
|
|
362
362
|
r = e;
|
|
363
363
|
else
|
|
364
364
|
for (const s in e)
|
|
@@ -376,22 +376,22 @@ var Ue = (e) => /^\w*$/.test(e), W = (e) => e === void 0, gt = (e) => Array.isAr
|
|
|
376
376
|
let o = -1;
|
|
377
377
|
const s = Ue(r) ? [r] : vt(r), n = s.length, a = n - 1;
|
|
378
378
|
for (; ++o < n; ) {
|
|
379
|
-
const
|
|
379
|
+
const l = s[o];
|
|
380
380
|
let f = t;
|
|
381
381
|
if (o !== a) {
|
|
382
|
-
const c = e[
|
|
382
|
+
const c = e[l];
|
|
383
383
|
f = Z(c) || Array.isArray(c) ? c : isNaN(+s[o + 1]) ? {} : [];
|
|
384
384
|
}
|
|
385
|
-
if (
|
|
385
|
+
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
386
386
|
return;
|
|
387
|
-
e[
|
|
387
|
+
e[l] = f, e = e[l];
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
const Te = {
|
|
391
391
|
BLUR: "blur",
|
|
392
392
|
FOCUS_OUT: "focusout",
|
|
393
393
|
CHANGE: "change"
|
|
394
|
-
},
|
|
394
|
+
}, le = {
|
|
395
395
|
onBlur: "onBlur",
|
|
396
396
|
onChange: "onChange",
|
|
397
397
|
onSubmit: "onSubmit",
|
|
@@ -405,10 +405,10 @@ const Te = {
|
|
|
405
405
|
pattern: "pattern",
|
|
406
406
|
required: "required",
|
|
407
407
|
validate: "validate"
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
const bt = () => N.useContext(
|
|
411
|
-
var
|
|
408
|
+
}, ur = N.createContext(null);
|
|
409
|
+
ur.displayName = "HookFormContext";
|
|
410
|
+
const bt = () => N.useContext(ur);
|
|
411
|
+
var dr = (e, r, t, o = !0) => {
|
|
412
412
|
const s = {
|
|
413
413
|
defaultValues: r._defaultValues
|
|
414
414
|
};
|
|
@@ -416,14 +416,14 @@ var fr = (e, r, t, o = !0) => {
|
|
|
416
416
|
Object.defineProperty(s, n, {
|
|
417
417
|
get: () => {
|
|
418
418
|
const a = n;
|
|
419
|
-
return r._proxyFormState[a] !==
|
|
419
|
+
return r._proxyFormState[a] !== le.all && (r._proxyFormState[a] = !o || le.all), t && (t[a] = !0), e[a];
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
return s;
|
|
423
423
|
};
|
|
424
424
|
const St = typeof window < "u" ? N.useLayoutEffect : N.useEffect;
|
|
425
|
-
function
|
|
426
|
-
const r = bt(), { control: t = r.control, disabled: o, name: s, exact: n } = e || {}, [a,
|
|
425
|
+
function ao(e) {
|
|
426
|
+
const r = bt(), { control: t = r.control, disabled: o, name: s, exact: n } = e || {}, [a, l] = N.useState(t._formState), f = N.useRef({
|
|
427
427
|
isDirty: !1,
|
|
428
428
|
isLoading: !1,
|
|
429
429
|
dirtyFields: !1,
|
|
@@ -438,17 +438,17 @@ function lo(e) {
|
|
|
438
438
|
formState: f.current,
|
|
439
439
|
exact: n,
|
|
440
440
|
callback: (c) => {
|
|
441
|
-
!o &&
|
|
441
|
+
!o && l({
|
|
442
442
|
...t._formState,
|
|
443
443
|
...c
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}), [s, o, n]), N.useEffect(() => {
|
|
447
447
|
f.current.isValid && t._setValid(!0);
|
|
448
|
-
}, [t]), N.useMemo(() =>
|
|
448
|
+
}, [t]), N.useMemo(() => dr(a, t, f.current, !1), [a, t]);
|
|
449
449
|
}
|
|
450
450
|
var oe = (e) => typeof e == "string", dt = (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
|
-
function
|
|
451
|
+
function ie(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
452
452
|
if (ft(e) || ft(r))
|
|
453
453
|
return e === r;
|
|
454
454
|
if (_e(e) && _e(r))
|
|
@@ -464,16 +464,16 @@ function le(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
464
464
|
if (!s.includes(n))
|
|
465
465
|
return !1;
|
|
466
466
|
if (n !== "ref") {
|
|
467
|
-
const
|
|
468
|
-
if (_e(a) && _e(
|
|
467
|
+
const l = r[n];
|
|
468
|
+
if (_e(a) && _e(l) || Z(a) && Z(l) || Array.isArray(a) && Array.isArray(l) ? !ie(a, l, t) : a !== l)
|
|
469
469
|
return !1;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
return !0;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
const r = bt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute:
|
|
476
|
-
c.current =
|
|
474
|
+
function lo(e) {
|
|
475
|
+
const r = bt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute: l } = e || {}, f = N.useRef(s), c = N.useRef(l), u = N.useRef(void 0), y = N.useRef(t), m = N.useRef(o);
|
|
476
|
+
c.current = l;
|
|
477
477
|
const [C, b] = N.useState(() => {
|
|
478
478
|
const z = t._getWatch(o, f.current);
|
|
479
479
|
return c.current ? c.current(z) : z;
|
|
@@ -485,12 +485,12 @@ function co(e) {
|
|
|
485
485
|
const E = dt(o, t._names, z || t._formValues, !1, f.current);
|
|
486
486
|
if (c.current) {
|
|
487
487
|
const B = c.current(E);
|
|
488
|
-
|
|
488
|
+
ie(B, u.current) || (b(B), u.current = B);
|
|
489
489
|
} else
|
|
490
490
|
b(E);
|
|
491
491
|
}
|
|
492
492
|
}, [t._formValues, t._names, n, o]);
|
|
493
|
-
St(() => ((y.current !== t || !
|
|
493
|
+
St(() => ((y.current !== t || !ie(m.current, o)) && (y.current = t, m.current = o, k()), t._subscribe({
|
|
494
494
|
name: o,
|
|
495
495
|
formState: {
|
|
496
496
|
values: !0
|
|
@@ -503,18 +503,18 @@ function co(e) {
|
|
|
503
503
|
const V = y.current !== t, g = m.current, F = N.useMemo(() => {
|
|
504
504
|
if (n)
|
|
505
505
|
return null;
|
|
506
|
-
const z = !V && !
|
|
506
|
+
const z = !V && !ie(g, o);
|
|
507
507
|
return V || z ? _() : null;
|
|
508
508
|
}, [n, V, o, g, _]);
|
|
509
509
|
return F !== null ? F : C;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
const r = bt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e,
|
|
511
|
+
function io(e) {
|
|
512
|
+
const r = bt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e, l = cr(s._names.array, t), f = N.useMemo(() => w(s._formValues, t, w(s._defaultValues, t, a)), [s, t, a]), c = lo({
|
|
513
513
|
control: s,
|
|
514
514
|
name: t,
|
|
515
515
|
defaultValue: f,
|
|
516
516
|
exact: !0
|
|
517
|
-
}), u =
|
|
517
|
+
}), u = ao({
|
|
518
518
|
control: s,
|
|
519
519
|
name: t,
|
|
520
520
|
exact: !0
|
|
@@ -547,7 +547,7 @@ function uo(e) {
|
|
|
547
547
|
}
|
|
548
548
|
}), [u, t]), _ = N.useCallback((F) => C.current.onChange({
|
|
549
549
|
target: {
|
|
550
|
-
value:
|
|
550
|
+
value: ir(F),
|
|
551
551
|
name: t
|
|
552
552
|
},
|
|
553
553
|
type: Te.CHANGE
|
|
@@ -575,7 +575,7 @@ function uo(e) {
|
|
|
575
575
|
}), [t, o, u.disabled, _, k, V, c]);
|
|
576
576
|
return N.useEffect(() => {
|
|
577
577
|
const F = s._options.shouldUnregister || n, z = m.current;
|
|
578
|
-
z && z !== t && !
|
|
578
|
+
z && z !== t && !l && s.unregister(z), s.register(t, {
|
|
579
579
|
...y.current.rules,
|
|
580
580
|
...re(y.current.disabled) ? { disabled: y.current.disabled } : {}
|
|
581
581
|
});
|
|
@@ -587,10 +587,10 @@ function uo(e) {
|
|
|
587
587
|
const B = X(w(s._options.defaultValues, t, y.current.defaultValue));
|
|
588
588
|
H(s._defaultValues, t, B), W(w(s._formValues, t)) && H(s._formValues, t, B);
|
|
589
589
|
}
|
|
590
|
-
return !
|
|
591
|
-
(
|
|
590
|
+
return !l && s.register(t), m.current = t, () => {
|
|
591
|
+
(l ? F && !s._state.action : F) ? s.unregister(t) : E(t, !1);
|
|
592
592
|
};
|
|
593
|
-
}, [t, s,
|
|
593
|
+
}, [t, s, l, n]), N.useEffect(() => {
|
|
594
594
|
s._setDisabledField({
|
|
595
595
|
disabled: o,
|
|
596
596
|
name: t
|
|
@@ -627,13 +627,13 @@ var wt = (e, r, t, o, s) => r ? {
|
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
629
|
};
|
|
630
|
-
function
|
|
630
|
+
function fr(e, r) {
|
|
631
631
|
const t = {};
|
|
632
632
|
for (const o in e)
|
|
633
633
|
if (e.hasOwnProperty(o)) {
|
|
634
634
|
const s = e[o], n = r[o];
|
|
635
635
|
if (s && Z(s) && n) {
|
|
636
|
-
const a =
|
|
636
|
+
const a = fr(s, n);
|
|
637
637
|
Z(a) && (t[o] = a);
|
|
638
638
|
} else e[o] && (t[o] = n);
|
|
639
639
|
}
|
|
@@ -644,49 +644,49 @@ var Y = (e) => Z(e) && !Object.keys(e).length, kt = (e) => e.type === "file", ce
|
|
|
644
644
|
return !1;
|
|
645
645
|
const r = e ? e.ownerDocument : 0;
|
|
646
646
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
647
|
-
},
|
|
648
|
-
function
|
|
647
|
+
}, mr = (e) => e.type === "select-multiple", xt = (e) => e.type === "radio", co = (e) => xt(e) || Ae(e), Ye = (e) => He(e) && e.isConnected;
|
|
648
|
+
function uo(e, r) {
|
|
649
649
|
const t = r.slice(0, -1).length;
|
|
650
650
|
let o = 0;
|
|
651
651
|
for (; o < t; )
|
|
652
652
|
e = W(e) ? o++ : e[r[o++]];
|
|
653
653
|
return e;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function fo(e) {
|
|
656
656
|
for (const r in e)
|
|
657
657
|
if (e.hasOwnProperty(r) && !W(e[r]))
|
|
658
658
|
return !1;
|
|
659
659
|
return !0;
|
|
660
660
|
}
|
|
661
661
|
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) &&
|
|
662
|
+
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];
|
|
663
|
+
return o && delete o[n], s !== 0 && (Z(o) && Y(o) || Array.isArray(o) && fo(o)) && G(e, t.slice(0, -1)), e;
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var mo = (e) => {
|
|
666
666
|
for (const r in e)
|
|
667
667
|
if (ce(e[r]))
|
|
668
668
|
return !0;
|
|
669
669
|
return !1;
|
|
670
670
|
};
|
|
671
|
-
function
|
|
672
|
-
return Array.isArray(e) || Z(e) && !
|
|
671
|
+
function yr(e) {
|
|
672
|
+
return Array.isArray(e) || Z(e) && !mo(e);
|
|
673
673
|
}
|
|
674
674
|
function mt(e, r = {}) {
|
|
675
675
|
for (const t in e)
|
|
676
|
-
|
|
676
|
+
yr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, mt(e[t], r[t])) : W(e[t]) || (r[t] = !0);
|
|
677
677
|
return r;
|
|
678
678
|
}
|
|
679
679
|
function ke(e, r, t) {
|
|
680
680
|
t || (t = mt(r));
|
|
681
681
|
for (const o in e)
|
|
682
|
-
|
|
682
|
+
yr(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] = !ie(e[o], r[o]);
|
|
683
683
|
return t;
|
|
684
684
|
}
|
|
685
685
|
const Rt = {
|
|
686
686
|
value: !1,
|
|
687
687
|
isValid: !1
|
|
688
688
|
}, Ot = { value: !0, isValid: !0 };
|
|
689
|
-
var
|
|
689
|
+
var hr = (e) => {
|
|
690
690
|
if (Array.isArray(e)) {
|
|
691
691
|
if (e.length > 1) {
|
|
692
692
|
const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
|
|
@@ -698,20 +698,20 @@ var _r = (e) => {
|
|
|
698
698
|
) : Rt;
|
|
699
699
|
}
|
|
700
700
|
return Rt;
|
|
701
|
-
},
|
|
701
|
+
}, _r = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: o }) => W(e) ? e : r ? e === "" ? NaN : e && +e : t && oe(e) ? new Date(e) : o ? o(e) : e;
|
|
702
702
|
const It = {
|
|
703
703
|
isValid: !1,
|
|
704
704
|
value: null
|
|
705
705
|
};
|
|
706
|
-
var
|
|
706
|
+
var pr = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
|
|
707
707
|
isValid: !0,
|
|
708
708
|
value: t.value
|
|
709
709
|
} : r, It) : It;
|
|
710
710
|
function Tt(e) {
|
|
711
711
|
const r = e.ref;
|
|
712
|
-
return kt(r) ? r.files : xt(r) ?
|
|
712
|
+
return kt(r) ? r.files : xt(r) ? pr(e.refs).value : mr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Ae(r) ? hr(e.refs).value : _r(W(r.value) ? e.ref.value : r.value, e);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
714
|
+
var yo = (e, r, t, o) => {
|
|
715
715
|
const s = {};
|
|
716
716
|
for (const n of e) {
|
|
717
717
|
const a = w(r, n);
|
|
@@ -724,27 +724,27 @@ var _o = (e, r, t, o) => {
|
|
|
724
724
|
shouldUseNativeValidation: o
|
|
725
725
|
};
|
|
726
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, Ht = (e) => ({
|
|
727
|
-
isOnSubmit: !e || e ===
|
|
728
|
-
isOnBlur: e ===
|
|
729
|
-
isOnChange: e ===
|
|
730
|
-
isOnAll: e ===
|
|
731
|
-
isOnTouch: e ===
|
|
727
|
+
isOnSubmit: !e || e === le.onSubmit,
|
|
728
|
+
isOnBlur: e === le.onBlur,
|
|
729
|
+
isOnChange: e === le.onChange,
|
|
730
|
+
isOnAll: e === le.all,
|
|
731
|
+
isOnTouch: e === le.onTouched
|
|
732
732
|
});
|
|
733
733
|
const jt = "AsyncFunction";
|
|
734
|
-
var
|
|
734
|
+
var ho = (e) => !!e && !!e.validate && !!(ce(e.validate) && e.validate.constructor.name === jt || Z(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === jt)), _o = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Wt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((o) => e.startsWith(o) && /^\.\w+/.test(e.slice(o.length))));
|
|
735
735
|
const $e = (e, r, t, o) => {
|
|
736
736
|
for (const s of t || Object.keys(e)) {
|
|
737
737
|
const n = w(e, s);
|
|
738
738
|
if (n) {
|
|
739
|
-
const { _f: a, ...
|
|
739
|
+
const { _f: a, ...l } = n;
|
|
740
740
|
if (a) {
|
|
741
741
|
if (a.refs && a.refs[0] && r(a.refs[0], s) && !o)
|
|
742
742
|
return !0;
|
|
743
743
|
if (a.ref && r(a.ref, a.name) && !o)
|
|
744
744
|
return !0;
|
|
745
|
-
if ($e(
|
|
745
|
+
if ($e(l, r))
|
|
746
746
|
break;
|
|
747
|
-
} else if (Z(
|
|
747
|
+
} else if (Z(l) && $e(l, r))
|
|
748
748
|
break;
|
|
749
749
|
}
|
|
750
750
|
}
|
|
@@ -758,18 +758,18 @@ function Ut(e, r, t) {
|
|
|
758
758
|
};
|
|
759
759
|
const s = t.split(".");
|
|
760
760
|
for (; s.length; ) {
|
|
761
|
-
const n = s.join("."), a = w(r, n),
|
|
761
|
+
const n = s.join("."), a = w(r, n), l = w(e, n);
|
|
762
762
|
if (a && !Array.isArray(a) && t !== n)
|
|
763
763
|
return { name: t };
|
|
764
|
-
if (
|
|
764
|
+
if (l && l.type)
|
|
765
765
|
return {
|
|
766
766
|
name: n,
|
|
767
|
-
error:
|
|
767
|
+
error: l
|
|
768
768
|
};
|
|
769
|
-
if (
|
|
769
|
+
if (l && l.root && l.root.type)
|
|
770
770
|
return {
|
|
771
771
|
name: `${n}.root`,
|
|
772
|
-
error:
|
|
772
|
+
error: l.root
|
|
773
773
|
};
|
|
774
774
|
s.pop();
|
|
775
775
|
}
|
|
@@ -777,11 +777,11 @@ function Ut(e, r, t) {
|
|
|
777
777
|
name: t
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var po = (e, r, t, o) => {
|
|
781
781
|
t(e);
|
|
782
782
|
const { name: s, ...n } = e;
|
|
783
|
-
return Y(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o ||
|
|
784
|
-
},
|
|
783
|
+
return Y(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o || le.all));
|
|
784
|
+
}, 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
785
|
const o = Ne(w(e, t));
|
|
786
786
|
return H(o, "root", r[t]), H(e, t, o), e;
|
|
787
787
|
};
|
|
@@ -797,10 +797,10 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
797
797
|
value: e,
|
|
798
798
|
message: ""
|
|
799
799
|
}, Gt = async (e, r, t, o, s, n) => {
|
|
800
|
-
const { ref: a, refs:
|
|
800
|
+
const { ref: a, refs: l, required: f, maxLength: c, minLength: u, min: y, max: m, pattern: C, validate: b, name: _, valueAsNumber: k, mount: V } = e._f, g = w(t, _);
|
|
801
801
|
if (!V || r.has(_))
|
|
802
802
|
return {};
|
|
803
|
-
const F =
|
|
803
|
+
const F = l ? l[0] : a, z = (L) => {
|
|
804
804
|
s && F.reportValidity && (F.setCustomValidity(re(L) ? "" : L || ""), F.reportValidity());
|
|
805
805
|
}, E = {}, B = xt(a), M = Ae(a), U = B || M, P = (k || kt(a)) && W(a.value) && W(g) || He(a) && a.value === "" || g === "" || Array.isArray(g) && !g.length, K = wt.bind(null, _, o, E), q = (L, A, O, I = fe.maxLength, Q = fe.minLength) => {
|
|
806
806
|
const te = L ? A : O;
|
|
@@ -811,7 +811,7 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
811
811
|
...K(L ? I : Q, te)
|
|
812
812
|
};
|
|
813
813
|
};
|
|
814
|
-
if (n ? !Array.isArray(g) || !g.length : f && (!U && (P || ee(g)) || re(g) && !g || M && !
|
|
814
|
+
if (n ? !Array.isArray(g) || !g.length : f && (!U && (P || ee(g)) || re(g) && !g || M && !hr(l).isValid || B && !pr(l).isValid)) {
|
|
815
815
|
const { value: L, message: A } = oe(f) ? { value: !!f, message: f } : be(f);
|
|
816
816
|
if (L && (E[_] = {
|
|
817
817
|
type: fe.required,
|
|
@@ -877,14 +877,14 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
877
877
|
}
|
|
878
878
|
return z(!0), E;
|
|
879
879
|
};
|
|
880
|
-
const
|
|
881
|
-
mode:
|
|
882
|
-
reValidateMode:
|
|
880
|
+
const wo = {
|
|
881
|
+
mode: le.onSubmit,
|
|
882
|
+
reValidateMode: le.onChange,
|
|
883
883
|
shouldFocusError: !0
|
|
884
884
|
};
|
|
885
|
-
function
|
|
885
|
+
function ko(e = {}) {
|
|
886
886
|
let r = {
|
|
887
|
-
...
|
|
887
|
+
...wo,
|
|
888
888
|
...e
|
|
889
889
|
}, t = {
|
|
890
890
|
submitCount: 0,
|
|
@@ -905,7 +905,7 @@ function Co(e = {}) {
|
|
|
905
905
|
action: !1,
|
|
906
906
|
mount: !1,
|
|
907
907
|
watch: !1
|
|
908
|
-
},
|
|
908
|
+
}, l = {
|
|
909
909
|
mount: /* @__PURE__ */ new Set(),
|
|
910
910
|
disabled: /* @__PURE__ */ new Set(),
|
|
911
911
|
unMount: /* @__PURE__ */ new Set(),
|
|
@@ -927,281 +927,281 @@ function Co(e = {}) {
|
|
|
927
927
|
const m = {
|
|
928
928
|
array: Dt(),
|
|
929
929
|
state: Dt()
|
|
930
|
-
}, C = r.criteriaMode ===
|
|
931
|
-
clearTimeout(c), c = setTimeout(
|
|
932
|
-
}, _ = async (
|
|
933
|
-
if (!r.disabled && (u.isValid || y.isValid ||
|
|
930
|
+
}, C = r.criteriaMode === le.all, b = (i) => (d) => {
|
|
931
|
+
clearTimeout(c), c = setTimeout(i, d);
|
|
932
|
+
}, _ = async (i) => {
|
|
933
|
+
if (!r.disabled && (u.isValid || y.isValid || i)) {
|
|
934
934
|
const d = r.resolver ? Y((await M()).errors) : await P(o, !0);
|
|
935
935
|
d !== t.isValid && m.state.next({
|
|
936
936
|
isValid: d
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
|
-
}, k = (
|
|
940
|
-
!r.disabled && (u.isValidating || u.validatingFields || y.isValidating || y.validatingFields) && ((
|
|
939
|
+
}, k = (i, d) => {
|
|
940
|
+
!r.disabled && (u.isValidating || u.validatingFields || y.isValidating || y.validatingFields) && ((i || Array.from(l.mount)).forEach((h) => {
|
|
941
941
|
h && (d ? H(t.validatingFields, h, d) : G(t.validatingFields, h));
|
|
942
942
|
}), m.state.next({
|
|
943
943
|
validatingFields: t.validatingFields,
|
|
944
944
|
isValidating: !Y(t.validatingFields)
|
|
945
945
|
}));
|
|
946
|
-
}, V = (
|
|
946
|
+
}, V = (i, d = [], h, x, S = !0, v = !0) => {
|
|
947
947
|
if (x && h && !r.disabled) {
|
|
948
|
-
if (a.action = !0, v && Array.isArray(w(o,
|
|
949
|
-
const $ = h(w(o,
|
|
950
|
-
S && H(o,
|
|
948
|
+
if (a.action = !0, v && Array.isArray(w(o, i))) {
|
|
949
|
+
const $ = h(w(o, i), x.argA, x.argB);
|
|
950
|
+
S && H(o, i, $);
|
|
951
951
|
}
|
|
952
|
-
if (v && Array.isArray(w(t.errors,
|
|
953
|
-
const $ = h(w(t.errors,
|
|
954
|
-
S && H(t.errors,
|
|
952
|
+
if (v && Array.isArray(w(t.errors, i))) {
|
|
953
|
+
const $ = h(w(t.errors, i), x.argA, x.argB);
|
|
954
|
+
S && H(t.errors, i, $), bo(t.errors, i);
|
|
955
955
|
}
|
|
956
|
-
if ((u.touchedFields || y.touchedFields) && v && Array.isArray(w(t.touchedFields,
|
|
957
|
-
const $ = h(w(t.touchedFields,
|
|
958
|
-
S && H(t.touchedFields,
|
|
956
|
+
if ((u.touchedFields || y.touchedFields) && v && Array.isArray(w(t.touchedFields, i))) {
|
|
957
|
+
const $ = h(w(t.touchedFields, i), x.argA, x.argB);
|
|
958
|
+
S && H(t.touchedFields, i, $);
|
|
959
959
|
}
|
|
960
960
|
(u.dirtyFields || y.dirtyFields) && (t.dirtyFields = ke(s, n)), m.state.next({
|
|
961
|
-
name:
|
|
962
|
-
isDirty: q(
|
|
961
|
+
name: i,
|
|
962
|
+
isDirty: q(i, d),
|
|
963
963
|
dirtyFields: t.dirtyFields,
|
|
964
964
|
errors: t.errors,
|
|
965
965
|
isValid: t.isValid
|
|
966
966
|
});
|
|
967
967
|
} else
|
|
968
|
-
H(n,
|
|
969
|
-
}, g = (
|
|
970
|
-
H(t.errors,
|
|
968
|
+
H(n, i, d);
|
|
969
|
+
}, g = (i, d) => {
|
|
970
|
+
H(t.errors, i, d), m.state.next({
|
|
971
971
|
errors: t.errors
|
|
972
972
|
});
|
|
973
|
-
}, F = (
|
|
974
|
-
t.errors =
|
|
973
|
+
}, F = (i) => {
|
|
974
|
+
t.errors = i, m.state.next({
|
|
975
975
|
errors: t.errors,
|
|
976
976
|
isValid: !1
|
|
977
977
|
});
|
|
978
|
-
}, z = (
|
|
979
|
-
const S = w(o,
|
|
978
|
+
}, z = (i, d, h, x) => {
|
|
979
|
+
const S = w(o, i);
|
|
980
980
|
if (S) {
|
|
981
|
-
const v = w(n,
|
|
982
|
-
W(v) || x && x.defaultChecked || d ? H(n,
|
|
981
|
+
const v = w(n, i, W(h) ? w(s, i) : h);
|
|
982
|
+
W(v) || x && x.defaultChecked || d ? H(n, i, d ? v : Tt(S._f)) : O(i, v), a.mount && _();
|
|
983
983
|
}
|
|
984
|
-
}, E = (
|
|
984
|
+
}, E = (i, d, h, x, S) => {
|
|
985
985
|
let v = !1, $ = !1;
|
|
986
986
|
const T = {
|
|
987
|
-
name:
|
|
987
|
+
name: i
|
|
988
988
|
};
|
|
989
989
|
if (!r.disabled) {
|
|
990
990
|
if (!h || x) {
|
|
991
991
|
(u.isDirty || y.isDirty) && ($ = t.isDirty, t.isDirty = T.isDirty = q(), v = $ !== T.isDirty);
|
|
992
|
-
const j =
|
|
993
|
-
$ = !!w(t.dirtyFields,
|
|
992
|
+
const j = ie(w(s, i), d);
|
|
993
|
+
$ = !!w(t.dirtyFields, i), j ? G(t.dirtyFields, i) : H(t.dirtyFields, i, !0), T.dirtyFields = t.dirtyFields, v = v || (u.dirtyFields || y.dirtyFields) && $ !== !j;
|
|
994
994
|
}
|
|
995
995
|
if (h) {
|
|
996
|
-
const j = w(t.touchedFields,
|
|
997
|
-
j || (H(t.touchedFields,
|
|
996
|
+
const j = w(t.touchedFields, i);
|
|
997
|
+
j || (H(t.touchedFields, i, h), T.touchedFields = t.touchedFields, v = v || (u.touchedFields || y.touchedFields) && j !== h);
|
|
998
998
|
}
|
|
999
999
|
v && S && m.state.next(T);
|
|
1000
1000
|
}
|
|
1001
1001
|
return v ? T : {};
|
|
1002
|
-
}, B = (
|
|
1003
|
-
const S = w(t.errors,
|
|
1004
|
-
if (r.delayError && h ? (f = b(() => g(
|
|
1002
|
+
}, B = (i, d, h, x) => {
|
|
1003
|
+
const S = w(t.errors, i), v = (u.isValid || y.isValid) && re(d) && t.isValid !== d;
|
|
1004
|
+
if (r.delayError && h ? (f = b(() => g(i, h)), f(r.delayError)) : (clearTimeout(c), f = null, h ? H(t.errors, i, h) : G(t.errors, i)), (h ? !ie(S, h) : S) || !Y(x) || v) {
|
|
1005
1005
|
const $ = {
|
|
1006
1006
|
...x,
|
|
1007
1007
|
...v && re(d) ? { isValid: d } : {},
|
|
1008
1008
|
errors: t.errors,
|
|
1009
|
-
name:
|
|
1009
|
+
name: i
|
|
1010
1010
|
};
|
|
1011
1011
|
t = {
|
|
1012
1012
|
...t,
|
|
1013
1013
|
...$
|
|
1014
1014
|
}, m.state.next($);
|
|
1015
1015
|
}
|
|
1016
|
-
}, M = async (
|
|
1017
|
-
k(
|
|
1018
|
-
const d = await r.resolver(n, r.context,
|
|
1019
|
-
return k(
|
|
1020
|
-
}, U = async (
|
|
1021
|
-
const { errors: d } = await M(
|
|
1022
|
-
if (
|
|
1023
|
-
for (const h of
|
|
1016
|
+
}, M = async (i) => {
|
|
1017
|
+
k(i, !0);
|
|
1018
|
+
const d = await r.resolver(n, r.context, yo(i || l.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
|
|
1019
|
+
return k(i), d;
|
|
1020
|
+
}, U = async (i) => {
|
|
1021
|
+
const { errors: d } = await M(i);
|
|
1022
|
+
if (i)
|
|
1023
|
+
for (const h of i) {
|
|
1024
1024
|
const x = w(d, h);
|
|
1025
1025
|
x ? H(t.errors, h, x) : G(t.errors, h);
|
|
1026
1026
|
}
|
|
1027
1027
|
else
|
|
1028
1028
|
t.errors = d;
|
|
1029
1029
|
return d;
|
|
1030
|
-
}, P = async (
|
|
1030
|
+
}, P = async (i, d, h = {
|
|
1031
1031
|
valid: !0
|
|
1032
1032
|
}) => {
|
|
1033
|
-
for (const x in
|
|
1034
|
-
const S =
|
|
1033
|
+
for (const x in i) {
|
|
1034
|
+
const S = i[x];
|
|
1035
1035
|
if (S) {
|
|
1036
1036
|
const { _f: v, ...$ } = S;
|
|
1037
1037
|
if (v) {
|
|
1038
|
-
const T =
|
|
1038
|
+
const T = l.array.has(v.name), j = S._f && ho(S._f);
|
|
1039
1039
|
j && u.validatingFields && k([v.name], !0);
|
|
1040
|
-
const se = await Gt(S,
|
|
1040
|
+
const se = await Gt(S, l.disabled, n, C, r.shouldUseNativeValidation && !d, T);
|
|
1041
1041
|
if (j && u.validatingFields && k([v.name]), se[v.name] && (h.valid = !1, d))
|
|
1042
1042
|
break;
|
|
1043
|
-
!d && (w(se, v.name) ? T ?
|
|
1043
|
+
!d && (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
1044
|
}
|
|
1045
1045
|
!Y($) && await P($, d, h);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
return h.valid;
|
|
1049
1049
|
}, K = () => {
|
|
1050
|
-
for (const
|
|
1051
|
-
const d = w(o,
|
|
1052
|
-
d && (d._f.refs ? d._f.refs.every((h) => !Ye(h)) : !Ye(d._f.ref)) && qe(
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
}, q = (
|
|
1056
|
-
...a.mount ? n : W(d) ? s : oe(
|
|
1057
|
-
}, h, d), A = (
|
|
1058
|
-
const x = w(o,
|
|
1050
|
+
for (const i of l.unMount) {
|
|
1051
|
+
const d = w(o, i);
|
|
1052
|
+
d && (d._f.refs ? d._f.refs.every((h) => !Ye(h)) : !Ye(d._f.ref)) && qe(i);
|
|
1053
|
+
}
|
|
1054
|
+
l.unMount = /* @__PURE__ */ new Set();
|
|
1055
|
+
}, q = (i, d) => !r.disabled && (i && d && H(n, i, d), !ie(Pe(), s)), L = (i, d, h) => dt(i, l, {
|
|
1056
|
+
...a.mount ? n : W(d) ? s : oe(i) ? { [i]: d } : d
|
|
1057
|
+
}, h, d), A = (i) => gt(w(a.mount ? n : s, i, r.shouldUnregister ? w(s, i, []) : [])), O = (i, d, h = {}) => {
|
|
1058
|
+
const x = w(o, i);
|
|
1059
1059
|
let S = d;
|
|
1060
1060
|
if (x) {
|
|
1061
1061
|
const v = x._f;
|
|
1062
|
-
v && (!v.disabled && H(n,
|
|
1062
|
+
v && (!v.disabled && H(n, i, _r(d, v)), S = He(v.ref) && ee(d) ? "" : d, mr(v.ref) ? [...v.ref.options].forEach(($) => $.selected = S.includes($.value)) : v.refs ? Ae(v.ref) ? v.refs.forEach(($) => {
|
|
1063
1063
|
(!$.defaultChecked || !$.disabled) && (Array.isArray(S) ? $.checked = !!S.find((T) => T === $.value) : $.checked = S === $.value || !!S);
|
|
1064
1064
|
}) : v.refs.forEach(($) => $.checked = $.value === S) : kt(v.ref) ? v.ref.value = "" : (v.ref.value = S, v.ref.type || m.state.next({
|
|
1065
|
-
name:
|
|
1065
|
+
name: i,
|
|
1066
1066
|
values: X(n)
|
|
1067
1067
|
})));
|
|
1068
1068
|
}
|
|
1069
|
-
(h.shouldDirty || h.shouldTouch) && E(
|
|
1070
|
-
}, I = (
|
|
1069
|
+
(h.shouldDirty || h.shouldTouch) && E(i, S, h.shouldTouch, h.shouldDirty, !0), h.shouldValidate && ve(i);
|
|
1070
|
+
}, I = (i, d, h) => {
|
|
1071
1071
|
for (const x in d) {
|
|
1072
1072
|
if (!d.hasOwnProperty(x))
|
|
1073
1073
|
return;
|
|
1074
|
-
const S = d[x], v =
|
|
1075
|
-
(
|
|
1074
|
+
const S = d[x], v = i + "." + x, $ = w(o, v);
|
|
1075
|
+
(l.array.has(i) || Z(S) || $ && !$._f) && !_e(S) ? I(v, S, h) : O(v, S, h);
|
|
1076
1076
|
}
|
|
1077
|
-
}, Q = (
|
|
1078
|
-
const x = w(o,
|
|
1079
|
-
H(n,
|
|
1080
|
-
name:
|
|
1077
|
+
}, Q = (i, d, h = {}) => {
|
|
1078
|
+
const x = w(o, i), S = l.array.has(i), v = X(d);
|
|
1079
|
+
H(n, i, v), S ? (m.array.next({
|
|
1080
|
+
name: i,
|
|
1081
1081
|
values: X(n)
|
|
1082
1082
|
}), (u.isDirty || u.dirtyFields || y.isDirty || y.dirtyFields) && h.shouldDirty && m.state.next({
|
|
1083
|
-
name:
|
|
1083
|
+
name: i,
|
|
1084
1084
|
dirtyFields: ke(s, n),
|
|
1085
|
-
isDirty: q(
|
|
1086
|
-
})) : x && !x._f && !ee(v) ? I(
|
|
1087
|
-
name: a.mount ?
|
|
1085
|
+
isDirty: q(i, v)
|
|
1086
|
+
})) : x && !x._f && !ee(v) ? I(i, v, h) : O(i, v, h), Wt(i, l) && m.state.next({ ...t, name: i }), m.state.next({
|
|
1087
|
+
name: a.mount ? i : void 0,
|
|
1088
1088
|
values: X(n)
|
|
1089
1089
|
});
|
|
1090
|
-
}, te = async (
|
|
1090
|
+
}, te = async (i) => {
|
|
1091
1091
|
a.mount = !0;
|
|
1092
|
-
const d =
|
|
1092
|
+
const d = i.target;
|
|
1093
1093
|
let h = d.name, x = !0;
|
|
1094
1094
|
const S = w(o, h), v = (j) => {
|
|
1095
|
-
x = Number.isNaN(j) || _e(j) && isNaN(j.getTime()) ||
|
|
1095
|
+
x = Number.isNaN(j) || _e(j) && isNaN(j.getTime()) || ie(j, w(n, h, j));
|
|
1096
1096
|
}, $ = Ht(r.mode), T = Ht(r.reValidateMode);
|
|
1097
1097
|
if (S) {
|
|
1098
1098
|
let j, se;
|
|
1099
|
-
const Me = d.type ? Tt(S._f) :
|
|
1100
|
-
H(n, h, Me), ye ? (!d || !d.readOnly) && (S._f.onBlur && S._f.onBlur(
|
|
1101
|
-
const Qe = E(h, Me, ye),
|
|
1099
|
+
const Me = d.type ? Tt(S._f) : ir(i), ye = i.type === Te.BLUR || i.type === Te.FOCUS_OUT, Rr = !_o(S._f) && !r.resolver && !w(t.errors, h) && !S._f.deps || vo(ye, w(t.touchedFields, h), t.isSubmitted, T, $), Ke = Wt(h, l, ye);
|
|
1100
|
+
H(n, h, Me), ye ? (!d || !d.readOnly) && (S._f.onBlur && S._f.onBlur(i), f && f(0)) : S._f.onChange && S._f.onChange(i);
|
|
1101
|
+
const Qe = E(h, Me, ye), Or = !Y(Qe) || Ke;
|
|
1102
1102
|
if (!ye && m.state.next({
|
|
1103
1103
|
name: h,
|
|
1104
|
-
type:
|
|
1104
|
+
type: i.type,
|
|
1105
1105
|
values: X(n)
|
|
1106
|
-
}),
|
|
1107
|
-
return (u.isValid || y.isValid) && (r.mode === "onBlur" ? ye && _() : ye || _()),
|
|
1106
|
+
}), Rr)
|
|
1107
|
+
return (u.isValid || y.isValid) && (r.mode === "onBlur" ? ye && _() : ye || _()), Or && m.state.next({ name: h, ...Ke ? {} : Qe });
|
|
1108
1108
|
if (!ye && Ke && m.state.next({ ...t }), r.resolver) {
|
|
1109
1109
|
const { errors: At } = await M([h]);
|
|
1110
1110
|
if (v(Me), x) {
|
|
1111
|
-
const
|
|
1111
|
+
const Ir = Ut(t.errors, o, h), Pt = Ut(At, o, Ir.name || h);
|
|
1112
1112
|
j = Pt.error, h = Pt.name, se = Y(At);
|
|
1113
1113
|
}
|
|
1114
1114
|
} else
|
|
1115
|
-
k([h], !0), j = (await Gt(S,
|
|
1115
|
+
k([h], !0), j = (await Gt(S, l.disabled, n, C, r.shouldUseNativeValidation))[h], k([h]), v(Me), x && (j ? se = !1 : (u.isValid || y.isValid) && (se = await P(o, !0)));
|
|
1116
1116
|
x && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && ve(S._f.deps), B(h, se, j, Qe));
|
|
1117
1117
|
}
|
|
1118
|
-
}, me = (
|
|
1119
|
-
if (w(t.errors, d) &&
|
|
1120
|
-
return
|
|
1121
|
-
}, ve = async (
|
|
1118
|
+
}, me = (i, d) => {
|
|
1119
|
+
if (w(t.errors, d) && i.focus)
|
|
1120
|
+
return i.focus(), 1;
|
|
1121
|
+
}, ve = async (i, d = {}) => {
|
|
1122
1122
|
let h, x;
|
|
1123
|
-
const S = Ne(
|
|
1123
|
+
const S = Ne(i);
|
|
1124
1124
|
if (r.resolver) {
|
|
1125
|
-
const v = await U(W(
|
|
1126
|
-
h = Y(v), x =
|
|
1127
|
-
} else
|
|
1125
|
+
const v = await U(W(i) ? i : S);
|
|
1126
|
+
h = Y(v), x = i ? !S.some(($) => w(v, $)) : h;
|
|
1127
|
+
} else i ? (x = (await Promise.all(S.map(async (v) => {
|
|
1128
1128
|
const $ = w(o, v);
|
|
1129
1129
|
return await P($ && $._f ? { [v]: $ } : $);
|
|
1130
1130
|
}))).every(Boolean), !(!x && !t.isValid) && _()) : x = h = await P(o);
|
|
1131
1131
|
return m.state.next({
|
|
1132
|
-
...!oe(
|
|
1133
|
-
...r.resolver || !
|
|
1132
|
+
...!oe(i) || (u.isValid || y.isValid) && h !== t.isValid ? {} : { name: i },
|
|
1133
|
+
...r.resolver || !i ? { isValid: h } : {},
|
|
1134
1134
|
errors: t.errors
|
|
1135
|
-
}), d.shouldFocus && !x && $e(o, me,
|
|
1136
|
-
}, Pe = (
|
|
1135
|
+
}), d.shouldFocus && !x && $e(o, me, i ? S : l.mount), x;
|
|
1136
|
+
}, Pe = (i, d) => {
|
|
1137
1137
|
let h = {
|
|
1138
1138
|
...a.mount ? n : s
|
|
1139
1139
|
};
|
|
1140
|
-
return d && (h =
|
|
1141
|
-
}, Ct = (
|
|
1142
|
-
invalid: !!w((d || t).errors,
|
|
1143
|
-
isDirty: !!w((d || t).dirtyFields,
|
|
1144
|
-
error: w((d || t).errors,
|
|
1145
|
-
isValidating: !!w(t.validatingFields,
|
|
1146
|
-
isTouched: !!w((d || t).touchedFields,
|
|
1147
|
-
}),
|
|
1148
|
-
|
|
1149
|
-
errors:
|
|
1140
|
+
return d && (h = fr(d.dirtyFields ? t.dirtyFields : t.touchedFields, h)), W(i) ? h : oe(i) ? w(h, i) : i.map((x) => w(h, x));
|
|
1141
|
+
}, Ct = (i, d) => ({
|
|
1142
|
+
invalid: !!w((d || t).errors, i),
|
|
1143
|
+
isDirty: !!w((d || t).dirtyFields, i),
|
|
1144
|
+
error: w((d || t).errors, i),
|
|
1145
|
+
isValidating: !!w(t.validatingFields, i),
|
|
1146
|
+
isTouched: !!w((d || t).touchedFields, i)
|
|
1147
|
+
}), $r = (i) => {
|
|
1148
|
+
i && Ne(i).forEach((d) => G(t.errors, d)), m.state.next({
|
|
1149
|
+
errors: i ? t.errors : {}
|
|
1150
1150
|
});
|
|
1151
|
-
}, Ft = (
|
|
1152
|
-
const x = (w(o,
|
|
1153
|
-
H(t.errors,
|
|
1151
|
+
}, Ft = (i, d, h) => {
|
|
1152
|
+
const x = (w(o, i, { _f: {} })._f || {}).ref, S = w(t.errors, i) || {}, { ref: v, message: $, type: T, ...j } = S;
|
|
1153
|
+
H(t.errors, i, {
|
|
1154
1154
|
...j,
|
|
1155
1155
|
...d,
|
|
1156
1156
|
ref: x
|
|
1157
1157
|
}), m.state.next({
|
|
1158
|
-
name:
|
|
1158
|
+
name: i,
|
|
1159
1159
|
errors: t.errors,
|
|
1160
1160
|
isValid: !1
|
|
1161
1161
|
}), h && h.shouldFocus && x && x.focus && x.focus();
|
|
1162
|
-
},
|
|
1163
|
-
next: (h) => "values" in h &&
|
|
1164
|
-
}) : L(
|
|
1162
|
+
}, Lr = (i, d) => ce(i) ? m.state.subscribe({
|
|
1163
|
+
next: (h) => "values" in h && i(L(void 0, d), h)
|
|
1164
|
+
}) : L(i, d, !0), Vt = (i) => m.state.subscribe({
|
|
1165
1165
|
next: (d) => {
|
|
1166
|
-
|
|
1166
|
+
go(i.name, d.name, i.exact) && po(d, i.formState || u, Dr, i.reRenderRoot) && i.callback({
|
|
1167
1167
|
values: { ...n },
|
|
1168
1168
|
...t,
|
|
1169
1169
|
...d,
|
|
1170
1170
|
defaultValues: s
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
}).unsubscribe,
|
|
1173
|
+
}).unsubscribe, Ar = (i) => (a.mount = !0, y = {
|
|
1174
1174
|
...y,
|
|
1175
|
-
...
|
|
1175
|
+
...i.formState
|
|
1176
1176
|
}, Vt({
|
|
1177
|
-
...
|
|
1177
|
+
...i,
|
|
1178
1178
|
formState: y
|
|
1179
|
-
})), qe = (
|
|
1180
|
-
for (const h of
|
|
1181
|
-
|
|
1179
|
+
})), qe = (i, d = {}) => {
|
|
1180
|
+
for (const h of i ? Ne(i) : l.mount)
|
|
1181
|
+
l.mount.delete(h), l.array.delete(h), d.keepValue || (G(o, h), G(n, h)), !d.keepError && G(t.errors, h), !d.keepDirty && G(t.dirtyFields, h), !d.keepTouched && G(t.touchedFields, h), !d.keepIsValidating && G(t.validatingFields, h), !r.shouldUnregister && !d.keepDefaultValue && G(s, h);
|
|
1182
1182
|
m.state.next({
|
|
1183
1183
|
values: X(n)
|
|
1184
1184
|
}), m.state.next({
|
|
1185
1185
|
...t,
|
|
1186
1186
|
...d.keepDirty ? { isDirty: q() } : {}
|
|
1187
1187
|
}), !d.keepIsValid && _();
|
|
1188
|
-
}, zt = ({ disabled:
|
|
1189
|
-
(re(
|
|
1190
|
-
}, Ge = (
|
|
1191
|
-
let h = w(o,
|
|
1188
|
+
}, zt = ({ disabled: i, name: d }) => {
|
|
1189
|
+
(re(i) && a.mount || i || l.disabled.has(d)) && (i ? l.disabled.add(d) : l.disabled.delete(d));
|
|
1190
|
+
}, Ge = (i, d = {}) => {
|
|
1191
|
+
let h = w(o, i);
|
|
1192
1192
|
const x = re(d.disabled) || re(r.disabled);
|
|
1193
|
-
return H(o,
|
|
1193
|
+
return H(o, i, {
|
|
1194
1194
|
...h || {},
|
|
1195
1195
|
_f: {
|
|
1196
|
-
...h && h._f ? h._f : { ref: { name:
|
|
1197
|
-
name:
|
|
1196
|
+
...h && h._f ? h._f : { ref: { name: i } },
|
|
1197
|
+
name: i,
|
|
1198
1198
|
mount: !0,
|
|
1199
1199
|
...d
|
|
1200
1200
|
}
|
|
1201
|
-
}),
|
|
1201
|
+
}), l.mount.add(i), h ? zt({
|
|
1202
1202
|
disabled: re(d.disabled) ? d.disabled : r.disabled,
|
|
1203
|
-
name:
|
|
1204
|
-
}) : z(
|
|
1203
|
+
name: i
|
|
1204
|
+
}) : z(i, !0, d.value), {
|
|
1205
1205
|
...x ? { disabled: d.disabled || r.disabled } : {},
|
|
1206
1206
|
...r.progressive ? {
|
|
1207
1207
|
required: !!d.required,
|
|
@@ -1211,40 +1211,40 @@ function Co(e = {}) {
|
|
|
1211
1211
|
maxLength: ze(d.maxLength),
|
|
1212
1212
|
pattern: ze(d.pattern)
|
|
1213
1213
|
} : {},
|
|
1214
|
-
name:
|
|
1214
|
+
name: i,
|
|
1215
1215
|
onChange: te,
|
|
1216
1216
|
onBlur: te,
|
|
1217
1217
|
ref: (S) => {
|
|
1218
1218
|
if (S) {
|
|
1219
|
-
Ge(
|
|
1220
|
-
const v = W(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, $ =
|
|
1219
|
+
Ge(i, d), h = w(o, i);
|
|
1220
|
+
const v = W(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, $ = co(v), T = h._f.refs || [];
|
|
1221
1221
|
if ($ ? T.find((j) => j === v) : v === h._f.ref)
|
|
1222
1222
|
return;
|
|
1223
|
-
H(o,
|
|
1223
|
+
H(o, i, {
|
|
1224
1224
|
_f: {
|
|
1225
1225
|
...h._f,
|
|
1226
1226
|
...$ ? {
|
|
1227
1227
|
refs: [
|
|
1228
1228
|
...T.filter(Ye),
|
|
1229
1229
|
v,
|
|
1230
|
-
...Array.isArray(w(s,
|
|
1230
|
+
...Array.isArray(w(s, i)) ? [{}] : []
|
|
1231
1231
|
],
|
|
1232
|
-
ref: { type: v.type, name:
|
|
1232
|
+
ref: { type: v.type, name: i }
|
|
1233
1233
|
} : { ref: v }
|
|
1234
1234
|
}
|
|
1235
|
-
}), z(
|
|
1235
|
+
}), z(i, !1, void 0, v);
|
|
1236
1236
|
} else
|
|
1237
|
-
h = w(o,
|
|
1237
|
+
h = w(o, i, {}), h._f && (h._f.mount = !1), (r.shouldUnregister || d.shouldUnregister) && !(cr(l.array, i) && a.action) && l.unMount.add(i);
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
|
-
}, Ze = () => r.shouldFocusError && $e(o, me,
|
|
1241
|
-
re(
|
|
1240
|
+
}, Ze = () => r.shouldFocusError && $e(o, me, l.mount), Pr = (i) => {
|
|
1241
|
+
re(i) && (m.state.next({ disabled: i }), $e(o, (d, h) => {
|
|
1242
1242
|
const x = w(o, h);
|
|
1243
|
-
x && (d.disabled = x._f.disabled ||
|
|
1244
|
-
S.disabled = x._f.disabled ||
|
|
1243
|
+
x && (d.disabled = x._f.disabled || i, Array.isArray(x._f.refs) && x._f.refs.forEach((S) => {
|
|
1244
|
+
S.disabled = x._f.disabled || i;
|
|
1245
1245
|
}));
|
|
1246
1246
|
}, 0, !1));
|
|
1247
|
-
}, Et = (
|
|
1247
|
+
}, Et = (i, d) => async (h) => {
|
|
1248
1248
|
let x;
|
|
1249
1249
|
h && (h.preventDefault && h.preventDefault(), h.persist && h.persist());
|
|
1250
1250
|
let S = X(n);
|
|
@@ -1255,15 +1255,15 @@ function Co(e = {}) {
|
|
|
1255
1255
|
t.errors = v, S = X($);
|
|
1256
1256
|
} else
|
|
1257
1257
|
await P(o);
|
|
1258
|
-
if (
|
|
1259
|
-
for (const v of
|
|
1258
|
+
if (l.disabled.size)
|
|
1259
|
+
for (const v of l.disabled)
|
|
1260
1260
|
G(S, v);
|
|
1261
1261
|
if (G(t.errors, "root"), Y(t.errors)) {
|
|
1262
1262
|
m.state.next({
|
|
1263
1263
|
errors: {}
|
|
1264
1264
|
});
|
|
1265
1265
|
try {
|
|
1266
|
-
await
|
|
1266
|
+
await i(S, h);
|
|
1267
1267
|
} catch (v) {
|
|
1268
1268
|
x = v;
|
|
1269
1269
|
}
|
|
@@ -1277,21 +1277,21 @@ function Co(e = {}) {
|
|
|
1277
1277
|
errors: t.errors
|
|
1278
1278
|
}), x)
|
|
1279
1279
|
throw x;
|
|
1280
|
-
},
|
|
1281
|
-
w(o,
|
|
1282
|
-
}, Nt = (
|
|
1283
|
-
const h =
|
|
1280
|
+
}, Mr = (i, d = {}) => {
|
|
1281
|
+
w(o, i) && (W(d.defaultValue) ? Q(i, X(w(s, i))) : (Q(i, d.defaultValue), H(s, i, X(d.defaultValue))), d.keepTouched || G(t.touchedFields, i), d.keepDirty || (G(t.dirtyFields, i), t.isDirty = d.defaultValue ? q(i, X(w(s, i))) : q()), d.keepError || (G(t.errors, i), u.isValid && _()), m.state.next({ ...t }));
|
|
1282
|
+
}, Nt = (i, d = {}) => {
|
|
1283
|
+
const h = i ? X(i) : s, x = X(h), S = Y(i), v = S ? s : x;
|
|
1284
1284
|
if (d.keepDefaultValues || (s = h), !d.keepValues) {
|
|
1285
1285
|
if (d.keepDirtyValues) {
|
|
1286
1286
|
const $ = /* @__PURE__ */ new Set([
|
|
1287
|
-
...
|
|
1287
|
+
...l.mount,
|
|
1288
1288
|
...Object.keys(ke(s, n))
|
|
1289
1289
|
]);
|
|
1290
1290
|
for (const T of Array.from($))
|
|
1291
1291
|
w(t.dirtyFields, T) ? H(v, T, w(n, T)) : Q(T, w(v, T));
|
|
1292
1292
|
} else {
|
|
1293
|
-
if (pt && W(
|
|
1294
|
-
for (const $ of
|
|
1293
|
+
if (pt && W(i))
|
|
1294
|
+
for (const $ of l.mount) {
|
|
1295
1295
|
const T = w(o, $);
|
|
1296
1296
|
if (T && T._f) {
|
|
1297
1297
|
const j = Array.isArray(T._f.refs) ? T._f.refs[0] : T._f.ref;
|
|
@@ -1305,7 +1305,7 @@ function Co(e = {}) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
if (d.keepFieldsRef)
|
|
1308
|
-
for (const $ of
|
|
1308
|
+
for (const $ of l.mount)
|
|
1309
1309
|
Q($, w(v, $));
|
|
1310
1310
|
else
|
|
1311
1311
|
o = {};
|
|
@@ -1316,8 +1316,8 @@ function Co(e = {}) {
|
|
|
1316
1316
|
values: { ...v }
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
|
-
|
|
1320
|
-
mount: d.keepDirtyValues ?
|
|
1319
|
+
l = {
|
|
1320
|
+
mount: d.keepDirtyValues ? l.mount : /* @__PURE__ */ new Set(),
|
|
1321
1321
|
unMount: /* @__PURE__ */ new Set(),
|
|
1322
1322
|
array: /* @__PURE__ */ new Set(),
|
|
1323
1323
|
disabled: /* @__PURE__ */ new Set(),
|
|
@@ -1326,25 +1326,25 @@ function Co(e = {}) {
|
|
|
1326
1326
|
focus: ""
|
|
1327
1327
|
}, a.mount = !u.isValid || !!d.keepIsValid || !!d.keepDirtyValues || !r.shouldUnregister && !Y(v), a.watch = !!r.shouldUnregister, m.state.next({
|
|
1328
1328
|
submitCount: d.keepSubmitCount ? t.submitCount : 0,
|
|
1329
|
-
isDirty: S ? !1 : d.keepDirty ? t.isDirty : !!(d.keepDefaultValues && !
|
|
1329
|
+
isDirty: S ? !1 : d.keepDirty ? t.isDirty : !!(d.keepDefaultValues && !ie(i, s)),
|
|
1330
1330
|
isSubmitted: d.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1331
|
-
dirtyFields: S ? {} : d.keepDirtyValues ? d.keepDefaultValues && n ? ke(s, n) : t.dirtyFields : d.keepDefaultValues &&
|
|
1331
|
+
dirtyFields: S ? {} : d.keepDirtyValues ? d.keepDefaultValues && n ? ke(s, n) : t.dirtyFields : d.keepDefaultValues && i ? ke(s, i) : d.keepDirty ? t.dirtyFields : {},
|
|
1332
1332
|
touchedFields: d.keepTouched ? t.touchedFields : {},
|
|
1333
1333
|
errors: d.keepErrors ? t.errors : {},
|
|
1334
1334
|
isSubmitSuccessful: d.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
1335
1335
|
isSubmitting: !1,
|
|
1336
1336
|
defaultValues: s
|
|
1337
1337
|
});
|
|
1338
|
-
}, $t = (
|
|
1339
|
-
const h = w(o,
|
|
1338
|
+
}, $t = (i, d) => Nt(ce(i) ? i(n) : i, d), Br = (i, d = {}) => {
|
|
1339
|
+
const h = w(o, i), x = h && h._f;
|
|
1340
1340
|
if (x) {
|
|
1341
1341
|
const S = x.refs ? x.refs[0] : x.ref;
|
|
1342
1342
|
S.focus && (S.focus(), d.shouldSelect && ce(S.select) && S.select());
|
|
1343
1343
|
}
|
|
1344
|
-
},
|
|
1344
|
+
}, Dr = (i) => {
|
|
1345
1345
|
t = {
|
|
1346
1346
|
...t,
|
|
1347
|
-
...
|
|
1347
|
+
...i
|
|
1348
1348
|
};
|
|
1349
1349
|
}, Lt = {
|
|
1350
1350
|
control: {
|
|
@@ -1364,13 +1364,13 @@ function Co(e = {}) {
|
|
|
1364
1364
|
_setErrors: F,
|
|
1365
1365
|
_getFieldArray: A,
|
|
1366
1366
|
_reset: Nt,
|
|
1367
|
-
_resetDefaultValues: () => ce(r.defaultValues) && r.defaultValues().then((
|
|
1368
|
-
$t(
|
|
1367
|
+
_resetDefaultValues: () => ce(r.defaultValues) && r.defaultValues().then((i) => {
|
|
1368
|
+
$t(i, r.resetOptions), m.state.next({
|
|
1369
1369
|
isLoading: !1
|
|
1370
1370
|
});
|
|
1371
1371
|
}),
|
|
1372
1372
|
_removeUnmounted: K,
|
|
1373
|
-
_disableForm:
|
|
1373
|
+
_disableForm: Pr,
|
|
1374
1374
|
_subjects: m,
|
|
1375
1375
|
_proxyFormState: u,
|
|
1376
1376
|
get _fields() {
|
|
@@ -1382,17 +1382,17 @@ function Co(e = {}) {
|
|
|
1382
1382
|
get _state() {
|
|
1383
1383
|
return a;
|
|
1384
1384
|
},
|
|
1385
|
-
set _state(
|
|
1386
|
-
a =
|
|
1385
|
+
set _state(i) {
|
|
1386
|
+
a = i;
|
|
1387
1387
|
},
|
|
1388
1388
|
get _defaultValues() {
|
|
1389
1389
|
return s;
|
|
1390
1390
|
},
|
|
1391
1391
|
get _names() {
|
|
1392
|
-
return
|
|
1392
|
+
return l;
|
|
1393
1393
|
},
|
|
1394
|
-
set _names(
|
|
1395
|
-
|
|
1394
|
+
set _names(i) {
|
|
1395
|
+
l = i;
|
|
1396
1396
|
},
|
|
1397
1397
|
get _formState() {
|
|
1398
1398
|
return t;
|
|
@@ -1400,26 +1400,26 @@ function Co(e = {}) {
|
|
|
1400
1400
|
get _options() {
|
|
1401
1401
|
return r;
|
|
1402
1402
|
},
|
|
1403
|
-
set _options(
|
|
1403
|
+
set _options(i) {
|
|
1404
1404
|
r = {
|
|
1405
1405
|
...r,
|
|
1406
|
-
...
|
|
1406
|
+
...i
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
1409
|
},
|
|
1410
|
-
subscribe:
|
|
1410
|
+
subscribe: Ar,
|
|
1411
1411
|
trigger: ve,
|
|
1412
1412
|
register: Ge,
|
|
1413
1413
|
handleSubmit: Et,
|
|
1414
|
-
watch:
|
|
1414
|
+
watch: Lr,
|
|
1415
1415
|
setValue: Q,
|
|
1416
1416
|
getValues: Pe,
|
|
1417
1417
|
reset: $t,
|
|
1418
|
-
resetField:
|
|
1419
|
-
clearErrors:
|
|
1418
|
+
resetField: Mr,
|
|
1419
|
+
clearErrors: $r,
|
|
1420
1420
|
unregister: qe,
|
|
1421
1421
|
setError: Ft,
|
|
1422
|
-
setFocus:
|
|
1422
|
+
setFocus: Br,
|
|
1423
1423
|
getFieldState: Ct
|
|
1424
1424
|
};
|
|
1425
1425
|
return {
|
|
@@ -1427,7 +1427,7 @@ function Co(e = {}) {
|
|
|
1427
1427
|
formControl: Lt
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function xo(e = {}) {
|
|
1431
1431
|
const r = N.useRef(void 0), t = N.useRef(void 0), [o, s] = N.useState({
|
|
1432
1432
|
isDirty: !1,
|
|
1433
1433
|
isValidating: !1,
|
|
@@ -1452,9 +1452,9 @@ function Fo(e = {}) {
|
|
|
1452
1452
|
formState: o
|
|
1453
1453
|
}, e.defaultValues && !ce(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1454
1454
|
else {
|
|
1455
|
-
const { formControl: a, ...
|
|
1455
|
+
const { formControl: a, ...l } = ko(e);
|
|
1456
1456
|
r.current = {
|
|
1457
|
-
...
|
|
1457
|
+
...l,
|
|
1458
1458
|
formState: o
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
@@ -1465,8 +1465,8 @@ function Fo(e = {}) {
|
|
|
1465
1465
|
callback: () => s({ ...n._formState }),
|
|
1466
1466
|
reRenderRoot: !0
|
|
1467
1467
|
});
|
|
1468
|
-
return s((
|
|
1469
|
-
...
|
|
1468
|
+
return s((l) => ({
|
|
1469
|
+
...l,
|
|
1470
1470
|
isReady: !0
|
|
1471
1471
|
})), n._formState.isReady = !0, a;
|
|
1472
1472
|
}, [n]), N.useEffect(() => n._disableForm(e.disabled), [n, e.disabled]), N.useEffect(() => {
|
|
@@ -1485,13 +1485,13 @@ function Fo(e = {}) {
|
|
|
1485
1485
|
});
|
|
1486
1486
|
}
|
|
1487
1487
|
}, [n, o.isDirty]), N.useEffect(() => {
|
|
1488
|
-
e.values && !
|
|
1488
|
+
e.values && !ie(e.values, t.current) ? (n._reset(e.values, {
|
|
1489
1489
|
keepFieldsRef: !0,
|
|
1490
1490
|
...n._options.resetOptions
|
|
1491
1491
|
}), t.current = e.values, s((a) => ({ ...a }))) : n._resetDefaultValues();
|
|
1492
1492
|
}, [n, e.values]), N.useEffect(() => {
|
|
1493
1493
|
n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
|
|
1494
|
-
}), r.current.formState =
|
|
1494
|
+
}), r.current.formState = dr(o, n), r.current;
|
|
1495
1495
|
}
|
|
1496
1496
|
const Zt = (e, r, t) => {
|
|
1497
1497
|
if (e && "reportValidity" in e) {
|
|
@@ -1508,104 +1508,104 @@ const Zt = (e, r, t) => {
|
|
|
1508
1508
|
const t = {};
|
|
1509
1509
|
for (const o in e) {
|
|
1510
1510
|
const s = w(r.fields, o), n = Object.assign(e[o] || {}, { ref: s && s.ref });
|
|
1511
|
-
if (
|
|
1511
|
+
if (Co(r.names || Object.keys(e), o)) {
|
|
1512
1512
|
const a = Object.assign({}, w(t, o));
|
|
1513
1513
|
H(a, "root", n), H(t, o, a);
|
|
1514
1514
|
} else H(t, o, n);
|
|
1515
1515
|
}
|
|
1516
1516
|
return t;
|
|
1517
|
-
},
|
|
1517
|
+
}, Co = (e, r) => {
|
|
1518
1518
|
const t = Qt(r);
|
|
1519
1519
|
return e.some((o) => Qt(o).match(`^${t}\\.\\d+`));
|
|
1520
1520
|
};
|
|
1521
1521
|
function Qt(e) {
|
|
1522
1522
|
return e.replace(/\]|\[/g, "");
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
function o(
|
|
1524
|
+
function gr(e, r, t) {
|
|
1525
|
+
function o(l, f) {
|
|
1526
1526
|
var c;
|
|
1527
|
-
Object.defineProperty(
|
|
1528
|
-
value:
|
|
1527
|
+
Object.defineProperty(l, "_zod", {
|
|
1528
|
+
value: l._zod ?? {},
|
|
1529
1529
|
enumerable: !1
|
|
1530
|
-
}), (c =
|
|
1530
|
+
}), (c = l._zod).traits ?? (c.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, f);
|
|
1531
1531
|
for (const u in a.prototype)
|
|
1532
|
-
u in
|
|
1533
|
-
|
|
1532
|
+
u in l || Object.defineProperty(l, u, { value: a.prototype[u].bind(l) });
|
|
1533
|
+
l._zod.constr = a, l._zod.def = f;
|
|
1534
1534
|
}
|
|
1535
1535
|
const s = (t == null ? void 0 : t.Parent) ?? Object;
|
|
1536
1536
|
class n extends s {
|
|
1537
1537
|
}
|
|
1538
1538
|
Object.defineProperty(n, "name", { value: e });
|
|
1539
|
-
function a(
|
|
1539
|
+
function a(l) {
|
|
1540
1540
|
var f;
|
|
1541
1541
|
const c = t != null && t.Parent ? new n() : this;
|
|
1542
|
-
o(c,
|
|
1542
|
+
o(c, l), (f = c._zod).deferred ?? (f.deferred = []);
|
|
1543
1543
|
for (const u of c._zod.deferred)
|
|
1544
1544
|
u();
|
|
1545
1545
|
return c;
|
|
1546
1546
|
}
|
|
1547
1547
|
return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, {
|
|
1548
|
-
value: (
|
|
1548
|
+
value: (l) => {
|
|
1549
1549
|
var f, c;
|
|
1550
|
-
return t != null && t.Parent &&
|
|
1550
|
+
return t != null && t.Parent && l instanceof t.Parent ? !0 : (c = (f = l == null ? void 0 : l._zod) == null ? void 0 : f.traits) == null ? void 0 : c.has(e);
|
|
1551
1551
|
}
|
|
1552
1552
|
}), Object.defineProperty(a, "name", { value: e }), a;
|
|
1553
1553
|
}
|
|
1554
|
-
class
|
|
1554
|
+
class Fo extends Error {
|
|
1555
1555
|
constructor() {
|
|
1556
1556
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1559
|
+
const Vo = {};
|
|
1560
|
+
function vr(e) {
|
|
1561
|
+
return Vo;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function zo(e, r) {
|
|
1564
1564
|
return typeof r == "bigint" ? r.toString() : r;
|
|
1565
1565
|
}
|
|
1566
|
-
const
|
|
1566
|
+
const br = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
1567
1567
|
};
|
|
1568
1568
|
function Oe(e) {
|
|
1569
1569
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1572
|
-
var s, n, a,
|
|
1571
|
+
function Sr(e, r, t) {
|
|
1572
|
+
var s, n, a, l, f, c;
|
|
1573
1573
|
const o = { ...e, path: e.path ?? [] };
|
|
1574
1574
|
if (!e.message) {
|
|
1575
|
-
const u = 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((
|
|
1575
|
+
const u = 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((l = r == null ? void 0 : r.error) == null ? void 0 : l.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";
|
|
1576
1576
|
o.message = u;
|
|
1577
1577
|
}
|
|
1578
1578
|
return delete o.inst, delete o.continue, r != null && r.reportInput || delete o.input, o;
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1580
|
+
const wr = (e, r) => {
|
|
1581
1581
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
1582
1582
|
value: e._zod,
|
|
1583
1583
|
enumerable: !1
|
|
1584
1584
|
}), Object.defineProperty(e, "issues", {
|
|
1585
1585
|
value: r,
|
|
1586
1586
|
enumerable: !1
|
|
1587
|
-
}), e.message = JSON.stringify(r,
|
|
1587
|
+
}), e.message = JSON.stringify(r, zo, 2), Object.defineProperty(e, "toString", {
|
|
1588
1588
|
value: () => e.message,
|
|
1589
1589
|
enumerable: !1
|
|
1590
1590
|
});
|
|
1591
|
-
},
|
|
1591
|
+
}, Eo = gr("$ZodError", wr), kr = gr("$ZodError", wr, { Parent: Error }), No = (e) => (r, t, o, s) => {
|
|
1592
1592
|
const n = o ? Object.assign(o, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
|
|
1593
1593
|
if (a instanceof Promise)
|
|
1594
|
-
throw new
|
|
1594
|
+
throw new Fo();
|
|
1595
1595
|
if (a.issues.length) {
|
|
1596
|
-
const
|
|
1597
|
-
throw
|
|
1596
|
+
const l = new ((s == null ? void 0 : s.Err) ?? e)(a.issues.map((f) => Sr(f, n, vr())));
|
|
1597
|
+
throw br(l, s == null ? void 0 : s.callee), l;
|
|
1598
1598
|
}
|
|
1599
1599
|
return a.value;
|
|
1600
|
-
},
|
|
1600
|
+
}, $o = /* @__PURE__ */ No(kr), Lo = (e) => async (r, t, o, s) => {
|
|
1601
1601
|
const n = o ? Object.assign(o, { async: !0 }) : { async: !0 };
|
|
1602
1602
|
let a = r._zod.run({ value: t, issues: [] }, n);
|
|
1603
1603
|
if (a instanceof Promise && (a = await a), a.issues.length) {
|
|
1604
|
-
const
|
|
1605
|
-
throw
|
|
1604
|
+
const l = new ((s == null ? void 0 : s.Err) ?? e)(a.issues.map((f) => Sr(f, n, vr())));
|
|
1605
|
+
throw br(l, s == null ? void 0 : s.callee), l;
|
|
1606
1606
|
}
|
|
1607
1607
|
return a.value;
|
|
1608
|
-
},
|
|
1608
|
+
}, Ao = /* @__PURE__ */ Lo(kr);
|
|
1609
1609
|
function Xt(e, r) {
|
|
1610
1610
|
try {
|
|
1611
1611
|
var t = e();
|
|
@@ -1614,12 +1614,12 @@ function Xt(e, r) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
return t && t.then ? t.then(void 0, r) : t;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Po(e, r) {
|
|
1618
1618
|
for (var t = {}; e.length; ) {
|
|
1619
1619
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1620
1620
|
if (!t[a]) if ("unionErrors" in o) {
|
|
1621
|
-
var
|
|
1622
|
-
t[a] = { message:
|
|
1621
|
+
var l = o.unionErrors[0].errors[0];
|
|
1622
|
+
t[a] = { message: l.message, type: l.code };
|
|
1623
1623
|
} else t[a] = { message: n, type: s };
|
|
1624
1624
|
if ("unionErrors" in o && o.unionErrors.forEach(function(u) {
|
|
1625
1625
|
return u.errors.forEach(function(y) {
|
|
@@ -1633,12 +1633,12 @@ function Bo(e, r) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
return t;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function Mo(e, r) {
|
|
1637
1637
|
for (var t = {}; e.length; ) {
|
|
1638
1638
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1639
1639
|
if (!t[a]) if (o.code === "invalid_union" && o.errors.length > 0) {
|
|
1640
|
-
var
|
|
1641
|
-
t[a] = { message:
|
|
1640
|
+
var l = o.errors[0][0];
|
|
1641
|
+
t[a] = { message: l.message, type: l.code };
|
|
1642
1642
|
} else t[a] = { message: n, type: s };
|
|
1643
1643
|
if (o.code === "invalid_union" && o.errors.forEach(function(u) {
|
|
1644
1644
|
return u.forEach(function(y) {
|
|
@@ -1652,7 +1652,7 @@ function Do(e, r) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
return t;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function Bo(e, r, t) {
|
|
1656
1656
|
if (t === void 0 && (t = {}), (function(o) {
|
|
1657
1657
|
return "_def" in o && typeof o._def == "object" && "typeName" in o._def;
|
|
1658
1658
|
})(e)) return function(o, s, n) {
|
|
@@ -1662,9 +1662,9 @@ function Ro(e, r, t) {
|
|
|
1662
1662
|
return n.shouldUseNativeValidation && yt({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
|
|
1663
1663
|
});
|
|
1664
1664
|
}, function(a) {
|
|
1665
|
-
if ((function(
|
|
1666
|
-
return Array.isArray(
|
|
1667
|
-
})(a)) return { values: {}, errors: Kt(
|
|
1665
|
+
if ((function(l) {
|
|
1666
|
+
return Array.isArray(l == null ? void 0 : l.issues);
|
|
1667
|
+
})(a)) return { values: {}, errors: Kt(Po(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1668
1668
|
throw a;
|
|
1669
1669
|
}));
|
|
1670
1670
|
} catch (a) {
|
|
@@ -1676,13 +1676,13 @@ function Ro(e, r, t) {
|
|
|
1676
1676
|
})(e)) return function(o, s, n) {
|
|
1677
1677
|
try {
|
|
1678
1678
|
return Promise.resolve(Xt(function() {
|
|
1679
|
-
return Promise.resolve((t.mode === "sync" ?
|
|
1679
|
+
return Promise.resolve((t.mode === "sync" ? $o : Ao)(e, o, r)).then(function(a) {
|
|
1680
1680
|
return n.shouldUseNativeValidation && yt({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
|
|
1681
1681
|
});
|
|
1682
1682
|
}, function(a) {
|
|
1683
|
-
if ((function(
|
|
1684
|
-
return
|
|
1685
|
-
})(a)) return { values: {}, errors: Kt(
|
|
1683
|
+
if ((function(l) {
|
|
1684
|
+
return l instanceof Eo;
|
|
1685
|
+
})(a)) return { values: {}, errors: Kt(Mo(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1686
1686
|
throw a;
|
|
1687
1687
|
}));
|
|
1688
1688
|
} catch (a) {
|
|
@@ -1691,14 +1691,14 @@ function Ro(e, r, t) {
|
|
|
1691
1691
|
};
|
|
1692
1692
|
throw new Error("Invalid input: not a Zod schema");
|
|
1693
1693
|
}
|
|
1694
|
-
const
|
|
1695
|
-
function
|
|
1696
|
-
const e = N.useContext(
|
|
1694
|
+
const xr = N.createContext(null);
|
|
1695
|
+
function Do() {
|
|
1696
|
+
const e = N.useContext(xr);
|
|
1697
1697
|
if (!e)
|
|
1698
1698
|
throw new Error("useFormContext must be used within a Form component");
|
|
1699
1699
|
return e;
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function Ro({
|
|
1702
1702
|
onSubmit: e,
|
|
1703
1703
|
children: r,
|
|
1704
1704
|
schema: t,
|
|
@@ -1706,20 +1706,20 @@ function Io({
|
|
|
1706
1706
|
mode: s = "onSubmit",
|
|
1707
1707
|
reValidateMode: n = "onChange",
|
|
1708
1708
|
className: a,
|
|
1709
|
-
style:
|
|
1709
|
+
style: l,
|
|
1710
1710
|
formProps: f
|
|
1711
1711
|
}) {
|
|
1712
|
-
const c =
|
|
1713
|
-
resolver: t ?
|
|
1712
|
+
const c = xo({
|
|
1713
|
+
resolver: t ? Bo(t) : void 0,
|
|
1714
1714
|
defaultValues: o,
|
|
1715
1715
|
mode: s,
|
|
1716
1716
|
reValidateMode: n
|
|
1717
1717
|
}), u = c.handleSubmit(e);
|
|
1718
|
-
return /* @__PURE__ */ p(
|
|
1718
|
+
return /* @__PURE__ */ p(xr.Provider, { value: c, children: /* @__PURE__ */ p("form", { ...f, className: a, style: l, onSubmit: u, children: typeof r == "function" ? r(c) : r }) });
|
|
1719
1719
|
}
|
|
1720
|
-
const
|
|
1721
|
-
formError:
|
|
1722
|
-
},
|
|
1720
|
+
const ca = Ro, Oo = "FormError-module__formError___kaUBn", Io = {
|
|
1721
|
+
formError: Oo
|
|
1722
|
+
}, To = ({
|
|
1723
1723
|
// Color prop
|
|
1724
1724
|
color: e,
|
|
1725
1725
|
// Content
|
|
@@ -1735,15 +1735,15 @@ const ua = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1735
1735
|
color: e || n.colors.error,
|
|
1736
1736
|
...o
|
|
1737
1737
|
// Top level style prop overrides
|
|
1738
|
-
},
|
|
1739
|
-
return /* @__PURE__ */ p("div", { ...s, className:
|
|
1740
|
-
},
|
|
1741
|
-
formGroup:
|
|
1742
|
-
inputWrapper:
|
|
1743
|
-
indented:
|
|
1744
|
-
disabled:
|
|
1745
|
-
required:
|
|
1746
|
-
},
|
|
1738
|
+
}, l = [Io.formError, t].filter(Boolean).join(" ");
|
|
1739
|
+
return /* @__PURE__ */ p("div", { ...s, className: l, style: a, role: "alert", "aria-live": "polite", children: r });
|
|
1740
|
+
}, 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 = {
|
|
1741
|
+
formGroup: Ho,
|
|
1742
|
+
inputWrapper: jo,
|
|
1743
|
+
indented: Wo,
|
|
1744
|
+
disabled: Uo,
|
|
1745
|
+
required: qo
|
|
1746
|
+
}, Go = ({
|
|
1747
1747
|
// State props
|
|
1748
1748
|
disabled: e = !1,
|
|
1749
1749
|
error: r = !1,
|
|
@@ -1754,7 +1754,7 @@ const ua = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1754
1754
|
name: s,
|
|
1755
1755
|
label: n,
|
|
1756
1756
|
errorMessage: a,
|
|
1757
|
-
labelProps:
|
|
1757
|
+
labelProps: l,
|
|
1758
1758
|
// Content
|
|
1759
1759
|
children: f,
|
|
1760
1760
|
// Style overrides
|
|
@@ -1780,7 +1780,7 @@ const ua = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1780
1780
|
return k;
|
|
1781
1781
|
});
|
|
1782
1782
|
return /* @__PURE__ */ D("div", { ...y, className: C, style: b, children: [
|
|
1783
|
-
n && /* @__PURE__ */ D(_t, { htmlFor: s, disabled: e, error: r, ...
|
|
1783
|
+
n && /* @__PURE__ */ D(_t, { htmlFor: s, disabled: e, error: r, ...l, children: [
|
|
1784
1784
|
n,
|
|
1785
1785
|
t && /* @__PURE__ */ D("span", { className: Se.required, "aria-label": "required", children: [
|
|
1786
1786
|
" ",
|
|
@@ -1788,7 +1788,7 @@ const ua = Io, To = "FormError-module__formError___kaUBn", Ho = {
|
|
|
1788
1788
|
] })
|
|
1789
1789
|
] }),
|
|
1790
1790
|
/* @__PURE__ */ p("div", { className: `${Se.inputWrapper} ${o ? Se.indented : ""}`, children: _ }),
|
|
1791
|
-
r && a && /* @__PURE__ */ p(
|
|
1791
|
+
r && a && /* @__PURE__ */ p(To, { children: a })
|
|
1792
1792
|
] });
|
|
1793
1793
|
};
|
|
1794
1794
|
function ge({
|
|
@@ -1799,20 +1799,20 @@ function ge({
|
|
|
1799
1799
|
rules: s,
|
|
1800
1800
|
disabled: n,
|
|
1801
1801
|
className: a,
|
|
1802
|
-
style:
|
|
1802
|
+
style: l,
|
|
1803
1803
|
indent: f,
|
|
1804
1804
|
labelProps: c
|
|
1805
1805
|
}) {
|
|
1806
|
-
const { control: u } =
|
|
1806
|
+
const { control: u } = Do(), {
|
|
1807
1807
|
field: y,
|
|
1808
1808
|
fieldState: { error: m }
|
|
1809
|
-
} =
|
|
1809
|
+
} = io({
|
|
1810
1810
|
name: e,
|
|
1811
1811
|
control: u,
|
|
1812
1812
|
rules: s
|
|
1813
1813
|
});
|
|
1814
1814
|
return /* @__PURE__ */ p(
|
|
1815
|
-
|
|
1815
|
+
Go,
|
|
1816
1816
|
{
|
|
1817
1817
|
label: r,
|
|
1818
1818
|
name: e,
|
|
@@ -1821,7 +1821,7 @@ function ge({
|
|
|
1821
1821
|
disabled: n,
|
|
1822
1822
|
required: t,
|
|
1823
1823
|
className: a,
|
|
1824
|
-
style:
|
|
1824
|
+
style: l,
|
|
1825
1825
|
indent: f,
|
|
1826
1826
|
labelProps: c,
|
|
1827
1827
|
children: o({
|
|
@@ -1835,11 +1835,11 @@ function ge({
|
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
1837
|
}
|
|
1838
|
-
const
|
|
1839
|
-
input:
|
|
1840
|
-
sizeSmall:
|
|
1841
|
-
sizeLarge:
|
|
1842
|
-
},
|
|
1838
|
+
const Zo = "Input-module__input___WjT81", Ko = "Input-module__sizeSmall___NFvsi", Qo = "Input-module__sizeLarge___4Boj3", et = {
|
|
1839
|
+
input: Zo,
|
|
1840
|
+
sizeSmall: Ko,
|
|
1841
|
+
sizeLarge: Qo
|
|
1842
|
+
}, Xo = ({
|
|
1843
1843
|
color: e = "#000",
|
|
1844
1844
|
disabled: r = !1,
|
|
1845
1845
|
fontSize: t = "1em",
|
|
@@ -1850,7 +1850,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1850
1850
|
fontSize: t,
|
|
1851
1851
|
opacity: r ? 0.3 : 1,
|
|
1852
1852
|
placeholderOpacity: o
|
|
1853
|
-
}),
|
|
1853
|
+
}), Jo = ({
|
|
1854
1854
|
// State props
|
|
1855
1855
|
disabled: e = !1,
|
|
1856
1856
|
error: r = !1,
|
|
@@ -1862,7 +1862,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1862
1862
|
id: s,
|
|
1863
1863
|
name: n = "",
|
|
1864
1864
|
placeholder: a,
|
|
1865
|
-
placeholderOpacity:
|
|
1865
|
+
placeholderOpacity: l = 0.3,
|
|
1866
1866
|
type: f = "text",
|
|
1867
1867
|
value: c = "",
|
|
1868
1868
|
// Event handlers
|
|
@@ -1874,11 +1874,11 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1874
1874
|
// Element-specific props
|
|
1875
1875
|
inputProps: b
|
|
1876
1876
|
}) => {
|
|
1877
|
-
const _ = R(), k = _.colors.error, V = r ? k : t || _.colors.primary, g =
|
|
1877
|
+
const _ = R(), k = _.colors.error, V = r ? k : t || _.colors.primary, g = Xo({
|
|
1878
1878
|
color: V,
|
|
1879
1879
|
disabled: e,
|
|
1880
1880
|
fontSize: _.fonts.size,
|
|
1881
|
-
placeholderOpacity:
|
|
1881
|
+
placeholderOpacity: l
|
|
1882
1882
|
}), F = {
|
|
1883
1883
|
"--placeholder-opacity": g.placeholderOpacity,
|
|
1884
1884
|
"--input-padding-small": `calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,
|
|
@@ -1913,7 +1913,7 @@ const Qo = "Input-module__input___WjT81", Xo = "Input-module__sizeSmall___NFvsi"
|
|
|
1913
1913
|
}
|
|
1914
1914
|
);
|
|
1915
1915
|
};
|
|
1916
|
-
function
|
|
1916
|
+
function ua({
|
|
1917
1917
|
name: e,
|
|
1918
1918
|
label: r,
|
|
1919
1919
|
required: t,
|
|
@@ -1921,7 +1921,7 @@ function da({
|
|
|
1921
1921
|
disabled: s,
|
|
1922
1922
|
className: n,
|
|
1923
1923
|
style: a,
|
|
1924
|
-
...
|
|
1924
|
+
...l
|
|
1925
1925
|
}) {
|
|
1926
1926
|
return /* @__PURE__ */ p(
|
|
1927
1927
|
ge,
|
|
@@ -1934,9 +1934,9 @@ function da({
|
|
|
1934
1934
|
className: n,
|
|
1935
1935
|
style: a,
|
|
1936
1936
|
children: ({ value: f, onChange: c, onBlur: u, name: y, error: m }) => /* @__PURE__ */ p(
|
|
1937
|
-
|
|
1937
|
+
Jo,
|
|
1938
1938
|
{
|
|
1939
|
-
...
|
|
1939
|
+
...l,
|
|
1940
1940
|
name: y,
|
|
1941
1941
|
value: f || "",
|
|
1942
1942
|
onChange: (C) => c(C.target.value),
|
|
@@ -1947,11 +1947,11 @@ function da({
|
|
|
1947
1947
|
}
|
|
1948
1948
|
);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1951
|
-
textarea:
|
|
1952
|
-
sizeSmall:
|
|
1953
|
-
sizeLarge:
|
|
1954
|
-
},
|
|
1950
|
+
const Yo = "Textarea-module__textarea___Z-y6g", es = "Textarea-module__sizeSmall___HHFEM", ts = "Textarea-module__sizeLarge___5a3sf", tt = {
|
|
1951
|
+
textarea: Yo,
|
|
1952
|
+
sizeSmall: es,
|
|
1953
|
+
sizeLarge: ts
|
|
1954
|
+
}, rs = ({
|
|
1955
1955
|
color: e = "#000",
|
|
1956
1956
|
disabled: r = !1,
|
|
1957
1957
|
placeholderOpacity: t = 0.3
|
|
@@ -1960,7 +1960,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
1960
1960
|
borderColor: e,
|
|
1961
1961
|
opacity: r ? 0.3 : 1,
|
|
1962
1962
|
placeholderOpacity: t
|
|
1963
|
-
}),
|
|
1963
|
+
}), os = ({
|
|
1964
1964
|
// State props
|
|
1965
1965
|
disabled: e = !1,
|
|
1966
1966
|
error: r = !1,
|
|
@@ -1972,7 +1972,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
1972
1972
|
id: s,
|
|
1973
1973
|
name: n = "",
|
|
1974
1974
|
placeholder: a,
|
|
1975
|
-
placeholderOpacity:
|
|
1975
|
+
placeholderOpacity: l = 0.3,
|
|
1976
1976
|
rows: f = 3,
|
|
1977
1977
|
value: c = "",
|
|
1978
1978
|
// Event handlers
|
|
@@ -1984,10 +1984,10 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
1984
1984
|
// Element-specific props
|
|
1985
1985
|
textareaProps: b
|
|
1986
1986
|
}) => {
|
|
1987
|
-
const _ = R(), k = _.colors.error, V = r ? k : t || _.colors.primary, g =
|
|
1987
|
+
const _ = R(), k = _.colors.error, V = r ? k : t || _.colors.primary, g = rs({
|
|
1988
1988
|
color: V,
|
|
1989
1989
|
disabled: e,
|
|
1990
|
-
placeholderOpacity:
|
|
1990
|
+
placeholderOpacity: l
|
|
1991
1991
|
}), F = {
|
|
1992
1992
|
"--placeholder-opacity": g.placeholderOpacity,
|
|
1993
1993
|
"--textarea-padding-small": `calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,
|
|
@@ -2022,7 +2022,7 @@ const ts = "Textarea-module__textarea___Z-y6g", rs = "Textarea-module__sizeSmall
|
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
};
|
|
2025
|
-
function
|
|
2025
|
+
function da({
|
|
2026
2026
|
name: e,
|
|
2027
2027
|
label: r,
|
|
2028
2028
|
required: t,
|
|
@@ -2030,7 +2030,7 @@ function fa({
|
|
|
2030
2030
|
disabled: s,
|
|
2031
2031
|
className: n,
|
|
2032
2032
|
style: a,
|
|
2033
|
-
...
|
|
2033
|
+
...l
|
|
2034
2034
|
}) {
|
|
2035
2035
|
return /* @__PURE__ */ p(
|
|
2036
2036
|
ge,
|
|
@@ -2043,9 +2043,9 @@ function fa({
|
|
|
2043
2043
|
className: n,
|
|
2044
2044
|
style: a,
|
|
2045
2045
|
children: ({ value: f, onChange: c, onBlur: u, name: y, error: m }) => /* @__PURE__ */ p(
|
|
2046
|
-
|
|
2046
|
+
os,
|
|
2047
2047
|
{
|
|
2048
|
-
...
|
|
2048
|
+
...l,
|
|
2049
2049
|
name: y,
|
|
2050
2050
|
value: f || "",
|
|
2051
2051
|
onChange: (C) => c(C.target.value),
|
|
@@ -2056,11 +2056,11 @@ function fa({
|
|
|
2056
2056
|
}
|
|
2057
2057
|
);
|
|
2058
2058
|
}
|
|
2059
|
-
const
|
|
2060
|
-
select:
|
|
2061
|
-
sizeSmall:
|
|
2062
|
-
sizeLarge:
|
|
2063
|
-
},
|
|
2059
|
+
const ss = "Select-module__select___cjdcr", ns = "Select-module__sizeSmall___i1quj", as = "Select-module__sizeLarge___eBA1T", rt = {
|
|
2060
|
+
select: ss,
|
|
2061
|
+
sizeSmall: ns,
|
|
2062
|
+
sizeLarge: as
|
|
2063
|
+
}, ls = ({
|
|
2064
2064
|
color: e = "#000",
|
|
2065
2065
|
disabled: r = !1
|
|
2066
2066
|
}) => ({
|
|
@@ -2087,7 +2087,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2087
2087
|
`.trim();
|
|
2088
2088
|
return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
|
|
2089
2089
|
})(e)
|
|
2090
|
-
}),
|
|
2090
|
+
}), is = ({
|
|
2091
2091
|
// State props
|
|
2092
2092
|
disabled: e = !1,
|
|
2093
2093
|
error: r = !1,
|
|
@@ -2099,7 +2099,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2099
2099
|
id: s,
|
|
2100
2100
|
name: n = "",
|
|
2101
2101
|
placeholder: a = "",
|
|
2102
|
-
value:
|
|
2102
|
+
value: l = "",
|
|
2103
2103
|
// Event handlers
|
|
2104
2104
|
onChange: f,
|
|
2105
2105
|
onBlur: c,
|
|
@@ -2110,7 +2110,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2110
2110
|
// Element-specific props
|
|
2111
2111
|
selectProps: C
|
|
2112
2112
|
}) => {
|
|
2113
|
-
const b = R(), _ = b.colors.error, k = r ? _ : t || b.colors.primary, V =
|
|
2113
|
+
const b = R(), _ = b.colors.error, k = r ? _ : t || b.colors.primary, V = ls({
|
|
2114
2114
|
color: k,
|
|
2115
2115
|
disabled: e
|
|
2116
2116
|
}), g = {
|
|
@@ -2145,7 +2145,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2145
2145
|
name: n,
|
|
2146
2146
|
onChange: f,
|
|
2147
2147
|
onBlur: c,
|
|
2148
|
-
value:
|
|
2148
|
+
value: l,
|
|
2149
2149
|
style: g,
|
|
2150
2150
|
children: [
|
|
2151
2151
|
a !== "" && /* @__PURE__ */ p("option", { disabled: !0, value: "", children: a }),
|
|
@@ -2154,7 +2154,7 @@ const as = "Select-module__select___cjdcr", is = "Select-module__sizeSmall___i1q
|
|
|
2154
2154
|
}
|
|
2155
2155
|
);
|
|
2156
2156
|
};
|
|
2157
|
-
function
|
|
2157
|
+
function fa({
|
|
2158
2158
|
name: e,
|
|
2159
2159
|
label: r,
|
|
2160
2160
|
required: t,
|
|
@@ -2162,7 +2162,7 @@ function ma({
|
|
|
2162
2162
|
disabled: s,
|
|
2163
2163
|
className: n,
|
|
2164
2164
|
style: a,
|
|
2165
|
-
children:
|
|
2165
|
+
children: l,
|
|
2166
2166
|
...f
|
|
2167
2167
|
}) {
|
|
2168
2168
|
return /* @__PURE__ */ p(
|
|
@@ -2176,7 +2176,7 @@ function ma({
|
|
|
2176
2176
|
className: n,
|
|
2177
2177
|
style: a,
|
|
2178
2178
|
children: ({ value: c, onChange: u, onBlur: y, name: m, error: C }) => /* @__PURE__ */ p(
|
|
2179
|
-
|
|
2179
|
+
is,
|
|
2180
2180
|
{
|
|
2181
2181
|
...f,
|
|
2182
2182
|
name: m,
|
|
@@ -2184,13 +2184,13 @@ function ma({
|
|
|
2184
2184
|
onChange: (b) => u(b.target.value),
|
|
2185
2185
|
onBlur: y,
|
|
2186
2186
|
error: C,
|
|
2187
|
-
children:
|
|
2187
|
+
children: l
|
|
2188
2188
|
}
|
|
2189
2189
|
)
|
|
2190
2190
|
}
|
|
2191
2191
|
);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function ma({
|
|
2194
2194
|
name: e,
|
|
2195
2195
|
required: r,
|
|
2196
2196
|
rules: t,
|
|
@@ -2208,12 +2208,12 @@ function ya({
|
|
|
2208
2208
|
disabled: o,
|
|
2209
2209
|
className: s,
|
|
2210
2210
|
style: n,
|
|
2211
|
-
children: ({ value:
|
|
2211
|
+
children: ({ value: l, onChange: f, name: c, error: u }) => /* @__PURE__ */ p(
|
|
2212
2212
|
ut,
|
|
2213
2213
|
{
|
|
2214
2214
|
...a,
|
|
2215
2215
|
name: c,
|
|
2216
|
-
checked: !!
|
|
2216
|
+
checked: !!l,
|
|
2217
2217
|
onChange: (y) => f(y.target.checked),
|
|
2218
2218
|
error: u
|
|
2219
2219
|
}
|
|
@@ -2221,18 +2221,18 @@ function ya({
|
|
|
2221
2221
|
}
|
|
2222
2222
|
);
|
|
2223
2223
|
}
|
|
2224
|
-
const
|
|
2225
|
-
container:
|
|
2226
|
-
svg:
|
|
2227
|
-
label:
|
|
2228
|
-
},
|
|
2224
|
+
const cs = "Radio-module__container___AQxhk", us = "Radio-module__svg___zl5kF", ds = "Radio-module__label___vAFIP", ot = {
|
|
2225
|
+
container: cs,
|
|
2226
|
+
svg: us,
|
|
2227
|
+
label: ds
|
|
2228
|
+
}, fs = ({
|
|
2229
2229
|
color: e = "#000",
|
|
2230
2230
|
disabled: r = !1
|
|
2231
2231
|
}) => ({
|
|
2232
2232
|
radioColor: e,
|
|
2233
2233
|
cursor: r ? "default" : "pointer",
|
|
2234
2234
|
opacity: r ? 0.3 : 1
|
|
2235
|
-
}),
|
|
2235
|
+
}), Cr = ({
|
|
2236
2236
|
// Color prop
|
|
2237
2237
|
color: e,
|
|
2238
2238
|
// State props
|
|
@@ -2243,7 +2243,7 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2243
2243
|
name: s,
|
|
2244
2244
|
id: n,
|
|
2245
2245
|
onChange: a,
|
|
2246
|
-
label:
|
|
2246
|
+
label: l,
|
|
2247
2247
|
labelStyle: f,
|
|
2248
2248
|
// Style overrides
|
|
2249
2249
|
className: c,
|
|
@@ -2251,7 +2251,7 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2251
2251
|
// Element-specific props
|
|
2252
2252
|
divProps: y
|
|
2253
2253
|
}) => {
|
|
2254
|
-
const m = R(), C = n ||
|
|
2254
|
+
const m = R(), C = n || ar(), b = m.colors.error, _ = o ? b : e || m.colors.primary, k = fs({
|
|
2255
2255
|
color: _,
|
|
2256
2256
|
disabled: t
|
|
2257
2257
|
}), V = (M) => {
|
|
@@ -2298,7 +2298,7 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2298
2298
|
]
|
|
2299
2299
|
}
|
|
2300
2300
|
),
|
|
2301
|
-
|
|
2301
|
+
l && /* @__PURE__ */ p(
|
|
2302
2302
|
_t,
|
|
2303
2303
|
{
|
|
2304
2304
|
htmlFor: C,
|
|
@@ -2307,12 +2307,12 @@ const ds = "Radio-module__container___AQxhk", fs = "Radio-module__svg___zl5kF",
|
|
|
2307
2307
|
color: k.radioColor,
|
|
2308
2308
|
disabled: t,
|
|
2309
2309
|
error: o,
|
|
2310
|
-
children:
|
|
2310
|
+
children: l
|
|
2311
2311
|
}
|
|
2312
2312
|
)
|
|
2313
2313
|
] });
|
|
2314
2314
|
};
|
|
2315
|
-
function
|
|
2315
|
+
function ya({
|
|
2316
2316
|
name: e,
|
|
2317
2317
|
label: r,
|
|
2318
2318
|
required: t,
|
|
@@ -2320,7 +2320,7 @@ function ha({
|
|
|
2320
2320
|
disabled: s,
|
|
2321
2321
|
className: n,
|
|
2322
2322
|
style: a,
|
|
2323
|
-
value:
|
|
2323
|
+
value: l,
|
|
2324
2324
|
...f
|
|
2325
2325
|
}) {
|
|
2326
2326
|
return /* @__PURE__ */ p(
|
|
@@ -2333,12 +2333,12 @@ function ha({
|
|
|
2333
2333
|
className: n,
|
|
2334
2334
|
style: a,
|
|
2335
2335
|
children: ({ value: c, onChange: u, name: y, error: m }) => /* @__PURE__ */ p(
|
|
2336
|
-
|
|
2336
|
+
Cr,
|
|
2337
2337
|
{
|
|
2338
2338
|
...f,
|
|
2339
2339
|
name: y,
|
|
2340
|
-
checked: c ===
|
|
2341
|
-
onChange: () => u(
|
|
2340
|
+
checked: c === l,
|
|
2341
|
+
onChange: () => u(l),
|
|
2342
2342
|
error: m,
|
|
2343
2343
|
label: r
|
|
2344
2344
|
}
|
|
@@ -2346,7 +2346,7 @@ function ha({
|
|
|
2346
2346
|
}
|
|
2347
2347
|
);
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function ha({
|
|
2350
2350
|
name: e,
|
|
2351
2351
|
label: r,
|
|
2352
2352
|
required: t,
|
|
@@ -2354,7 +2354,7 @@ function _a({
|
|
|
2354
2354
|
disabled: s,
|
|
2355
2355
|
className: n,
|
|
2356
2356
|
style: a,
|
|
2357
|
-
indent:
|
|
2357
|
+
indent: l = !0
|
|
2358
2358
|
}) {
|
|
2359
2359
|
return /* @__PURE__ */ p(
|
|
2360
2360
|
ge,
|
|
@@ -2365,14 +2365,14 @@ function _a({
|
|
|
2365
2365
|
disabled: s,
|
|
2366
2366
|
className: n,
|
|
2367
2367
|
style: a,
|
|
2368
|
-
indent:
|
|
2368
|
+
indent: l,
|
|
2369
2369
|
labelProps: {
|
|
2370
2370
|
style: {
|
|
2371
2371
|
marginBottom: ".25em"
|
|
2372
2372
|
}
|
|
2373
2373
|
},
|
|
2374
2374
|
children: ({ value: f, onChange: c, name: u, error: y }) => /* @__PURE__ */ p(Fe, { children: o.map((m) => /* @__PURE__ */ p(
|
|
2375
|
-
|
|
2375
|
+
Cr,
|
|
2376
2376
|
{
|
|
2377
2377
|
name: u,
|
|
2378
2378
|
checked: f === m.value,
|
|
@@ -2386,7 +2386,7 @@ function _a({
|
|
|
2386
2386
|
}
|
|
2387
2387
|
);
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function _a({
|
|
2390
2390
|
name: e,
|
|
2391
2391
|
label: r,
|
|
2392
2392
|
required: t,
|
|
@@ -2394,7 +2394,7 @@ function pa({
|
|
|
2394
2394
|
children: s,
|
|
2395
2395
|
disabled: n,
|
|
2396
2396
|
className: a,
|
|
2397
|
-
style:
|
|
2397
|
+
style: l,
|
|
2398
2398
|
indent: f = !0
|
|
2399
2399
|
}) {
|
|
2400
2400
|
return /* @__PURE__ */ p(
|
|
@@ -2405,7 +2405,7 @@ function pa({
|
|
|
2405
2405
|
required: t,
|
|
2406
2406
|
disabled: n,
|
|
2407
2407
|
className: a,
|
|
2408
|
-
style:
|
|
2408
|
+
style: l,
|
|
2409
2409
|
indent: f,
|
|
2410
2410
|
labelProps: {
|
|
2411
2411
|
style: {
|
|
@@ -2444,11 +2444,11 @@ function pa({
|
|
|
2444
2444
|
}
|
|
2445
2445
|
);
|
|
2446
2446
|
}
|
|
2447
|
-
const
|
|
2448
|
-
hamburger:
|
|
2449
|
-
line:
|
|
2450
|
-
open:
|
|
2451
|
-
},
|
|
2447
|
+
const ms = "Hamburger-module__hamburger___Tf4-t", ys = "Hamburger-module__line___gybZM", hs = "Hamburger-module__open___gRswh", Ee = {
|
|
2448
|
+
hamburger: ms,
|
|
2449
|
+
line: ys,
|
|
2450
|
+
open: hs
|
|
2451
|
+
}, _s = ({
|
|
2452
2452
|
compact: e,
|
|
2453
2453
|
color: r,
|
|
2454
2454
|
visible: t,
|
|
@@ -2462,7 +2462,7 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2462
2462
|
width: n,
|
|
2463
2463
|
height: n
|
|
2464
2464
|
};
|
|
2465
|
-
},
|
|
2465
|
+
}, ps = ({
|
|
2466
2466
|
// Color props
|
|
2467
2467
|
color: e,
|
|
2468
2468
|
// State/variant props
|
|
@@ -2475,15 +2475,15 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2475
2475
|
// Form props
|
|
2476
2476
|
setOpen: a,
|
|
2477
2477
|
// Style overrides
|
|
2478
|
-
className:
|
|
2478
|
+
className: l,
|
|
2479
2479
|
style: f
|
|
2480
2480
|
}) => {
|
|
2481
|
-
const c =
|
|
2481
|
+
const c = _s({
|
|
2482
2482
|
compact: t,
|
|
2483
2483
|
color: e,
|
|
2484
2484
|
visible: r,
|
|
2485
2485
|
border: n
|
|
2486
|
-
}), u = [Ee.hamburger, s ? Ee.open : "",
|
|
2486
|
+
}), u = [Ee.hamburger, s ? Ee.open : "", l].filter(Boolean).join(" ");
|
|
2487
2487
|
return /* @__PURE__ */ D(
|
|
2488
2488
|
"button",
|
|
2489
2489
|
{
|
|
@@ -2500,10 +2500,10 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
);
|
|
2503
|
-
},
|
|
2504
|
-
header:
|
|
2505
|
-
container:
|
|
2506
|
-
},
|
|
2503
|
+
}, gs = "Header-module__header___RUooH", vs = "Header-module__container___t68M9", Jt = {
|
|
2504
|
+
header: gs,
|
|
2505
|
+
container: vs
|
|
2506
|
+
}, bs = ({
|
|
2507
2507
|
isSmallScreen: e = !1,
|
|
2508
2508
|
maxWidth: r,
|
|
2509
2509
|
minWidth: t,
|
|
@@ -2511,7 +2511,7 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2511
2511
|
height: s,
|
|
2512
2512
|
paddingSm: n,
|
|
2513
2513
|
padding: a,
|
|
2514
|
-
margin:
|
|
2514
|
+
margin: l,
|
|
2515
2515
|
gap: f,
|
|
2516
2516
|
backgroundColor: c,
|
|
2517
2517
|
color: u
|
|
@@ -2523,20 +2523,20 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2523
2523
|
"--header-width": o,
|
|
2524
2524
|
"--header-height": s,
|
|
2525
2525
|
"--header-padding": e ? n || y.layout.paddingSm : a || y.layout.padding,
|
|
2526
|
-
"--header-margin":
|
|
2526
|
+
"--header-margin": l,
|
|
2527
2527
|
"--header-gap": f,
|
|
2528
2528
|
backgroundColor: c,
|
|
2529
2529
|
color: u
|
|
2530
2530
|
};
|
|
2531
2531
|
}, ue = (e) => {
|
|
2532
2532
|
const r = typeof window < "u" && typeof window.matchMedia == "function";
|
|
2533
|
-
return
|
|
2533
|
+
return Hr((n) => {
|
|
2534
2534
|
if (!r) return () => {
|
|
2535
2535
|
};
|
|
2536
2536
|
const a = window.matchMedia(e);
|
|
2537
2537
|
return a.addEventListener("change", n), () => a.removeEventListener("change", n);
|
|
2538
2538
|
}, () => r ? window.matchMedia(e).matches : !1, () => !1);
|
|
2539
|
-
},
|
|
2539
|
+
}, Ss = ({
|
|
2540
2540
|
// Color props
|
|
2541
2541
|
backgroundColor: e,
|
|
2542
2542
|
color: r,
|
|
@@ -2546,7 +2546,7 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2546
2546
|
width: s,
|
|
2547
2547
|
height: n,
|
|
2548
2548
|
padding: a,
|
|
2549
|
-
paddingSm:
|
|
2549
|
+
paddingSm: l,
|
|
2550
2550
|
margin: f,
|
|
2551
2551
|
gap: c,
|
|
2552
2552
|
breakpoint: u,
|
|
@@ -2559,13 +2559,13 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2559
2559
|
// Element-specific props
|
|
2560
2560
|
headerProps: _
|
|
2561
2561
|
}) => {
|
|
2562
|
-
const k = R(), V = u || k.breakpoints.sm, { maxWidth: g, unit: F } = Le(V), z = ue(`(max-width: ${g}${F})`), E =
|
|
2562
|
+
const k = R(), V = u || k.breakpoints.sm, { maxWidth: g, unit: F } = Le(V), z = ue(`(max-width: ${g}${F})`), E = bs({
|
|
2563
2563
|
isSmallScreen: z,
|
|
2564
2564
|
maxWidth: t,
|
|
2565
2565
|
minWidth: o,
|
|
2566
2566
|
width: s,
|
|
2567
2567
|
height: n,
|
|
2568
|
-
paddingSm:
|
|
2568
|
+
paddingSm: l,
|
|
2569
2569
|
padding: a,
|
|
2570
2570
|
margin: f,
|
|
2571
2571
|
gap: c,
|
|
@@ -2580,35 +2580,35 @@ const hs = "Hamburger-module__hamburger___Tf4-t", _s = "Hamburger-module__line__
|
|
|
2580
2580
|
children: m
|
|
2581
2581
|
}
|
|
2582
2582
|
) });
|
|
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:
|
|
2583
|
+
}, 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 = {
|
|
2584
|
+
nav: ws,
|
|
2585
|
+
navMobile: ks,
|
|
2586
|
+
navHeader: xs,
|
|
2587
|
+
compact: Cs,
|
|
2588
|
+
navDesktop: Fs
|
|
2589
|
+
}, 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", Ps = "Popover-module__panelRight___OrQfl", Ms = "Popover-module__panelOpen___hhvV-", Bs = "Popover-module__panelCloseButton___kALaN", de = {
|
|
2590
|
+
triggerWrapper: Vs,
|
|
2591
|
+
popup: zs,
|
|
2592
|
+
panelOverlay: Es,
|
|
2593
|
+
panelOverlayVisible: Ns,
|
|
2594
|
+
backdrop: $s,
|
|
2595
|
+
panel: Ls,
|
|
2596
|
+
panelLeft: As,
|
|
2597
|
+
panelRight: Ps,
|
|
2598
|
+
panelOpen: Ms,
|
|
2599
|
+
panelCloseButton: Bs
|
|
2600
2600
|
};
|
|
2601
|
-
function
|
|
2601
|
+
function Ds(e, r) {
|
|
2602
2602
|
const [t, o] = J(!1), [s, n] = J(!1);
|
|
2603
2603
|
ne(() => {
|
|
2604
2604
|
r === "panel" && (e ? o(!0) : n(!1));
|
|
2605
2605
|
}, [e, r]), ne(() => {
|
|
2606
2606
|
if (r !== "panel" || !t || !e) return;
|
|
2607
|
-
let
|
|
2608
|
-
return
|
|
2607
|
+
let l, f;
|
|
2608
|
+
return l = requestAnimationFrame(() => {
|
|
2609
2609
|
f = requestAnimationFrame(() => n(!0));
|
|
2610
2610
|
}), () => {
|
|
2611
|
-
cancelAnimationFrame(
|
|
2611
|
+
cancelAnimationFrame(l), cancelAnimationFrame(f);
|
|
2612
2612
|
};
|
|
2613
2613
|
}, [t, e, r]);
|
|
2614
2614
|
const a = Ce(() => {
|
|
@@ -2616,19 +2616,19 @@ function Os(e, r) {
|
|
|
2616
2616
|
}, [s]);
|
|
2617
2617
|
return { panelMounted: t, panelVisible: s, handleTransitionEnd: a };
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function Rs(e, r, t, o) {
|
|
2620
2620
|
const [s, n] = J({}), a = Ce(() => {
|
|
2621
2621
|
if (r !== "popup" || !t.current) return;
|
|
2622
|
-
const
|
|
2622
|
+
const l = t.current.getBoundingClientRect(), f = {
|
|
2623
2623
|
position: "fixed",
|
|
2624
|
-
top:
|
|
2624
|
+
top: l.bottom + 4,
|
|
2625
2625
|
zIndex: 999
|
|
2626
2626
|
};
|
|
2627
|
-
n(o === "bottom-start" ? { ...f, left:
|
|
2627
|
+
n(o === "bottom-start" ? { ...f, left: l.left } : o === "bottom" ? {
|
|
2628
2628
|
...f,
|
|
2629
|
-
left:
|
|
2629
|
+
left: l.left + l.width / 2,
|
|
2630
2630
|
transform: "translateX(-50%)"
|
|
2631
|
-
} : { ...f, left:
|
|
2631
|
+
} : { ...f, left: l.right, transform: "translateX(-100%)" });
|
|
2632
2632
|
}, [r, o, t]);
|
|
2633
2633
|
return ne(() => {
|
|
2634
2634
|
e && r === "popup" && a();
|
|
@@ -2639,7 +2639,7 @@ function Is(e, r, t, o) {
|
|
|
2639
2639
|
};
|
|
2640
2640
|
}, [e, r, a]), { popupPositionStyle: s };
|
|
2641
2641
|
}
|
|
2642
|
-
const
|
|
2642
|
+
const Fr = ({
|
|
2643
2643
|
trigger: e,
|
|
2644
2644
|
children: r,
|
|
2645
2645
|
variant: t = "popup",
|
|
@@ -2647,7 +2647,7 @@ const Vr = ({
|
|
|
2647
2647
|
onOpenChange: s,
|
|
2648
2648
|
placement: n = "bottom-start",
|
|
2649
2649
|
side: a = "left",
|
|
2650
|
-
panelWidth:
|
|
2650
|
+
panelWidth: l = "75%",
|
|
2651
2651
|
backdropColor: f = "rgba(0, 0, 0, 0.5)",
|
|
2652
2652
|
hideCloseButton: c = !1,
|
|
2653
2653
|
closeOnBackdropClick: u = !0,
|
|
@@ -2660,7 +2660,7 @@ const Vr = ({
|
|
|
2660
2660
|
_ || V(I), s == null || s(I);
|
|
2661
2661
|
},
|
|
2662
2662
|
[_, s]
|
|
2663
|
-
), B = Ce(() => E(!g), [g, E]), M = Ce(() => E(!1), [E]), { panelMounted: U, panelVisible: P, handleTransitionEnd: K } =
|
|
2663
|
+
), B = Ce(() => E(!g), [g, E]), M = Ce(() => E(!1), [E]), { panelMounted: U, panelVisible: P, handleTransitionEnd: K } = Ds(g, t), { popupPositionStyle: q } = Rs(g, t, F, n);
|
|
2664
2664
|
ne(() => {
|
|
2665
2665
|
if (!g || t !== "popup") return;
|
|
2666
2666
|
const I = (Q) => {
|
|
@@ -2697,7 +2697,7 @@ const Vr = ({
|
|
|
2697
2697
|
};
|
|
2698
2698
|
return /* @__PURE__ */ D(Fe, { children: [
|
|
2699
2699
|
A,
|
|
2700
|
-
g &&
|
|
2700
|
+
g && it(
|
|
2701
2701
|
/* @__PURE__ */ p(
|
|
2702
2702
|
"div",
|
|
2703
2703
|
{
|
|
@@ -2713,13 +2713,13 @@ const Vr = ({
|
|
|
2713
2713
|
] });
|
|
2714
2714
|
}
|
|
2715
2715
|
const O = {
|
|
2716
|
-
width:
|
|
2716
|
+
width: l,
|
|
2717
2717
|
backgroundColor: b.colors.secondary,
|
|
2718
2718
|
...m
|
|
2719
2719
|
};
|
|
2720
2720
|
return /* @__PURE__ */ D(Fe, { children: [
|
|
2721
2721
|
A,
|
|
2722
|
-
U &&
|
|
2722
|
+
U && it(
|
|
2723
2723
|
/* @__PURE__ */ D(
|
|
2724
2724
|
"div",
|
|
2725
2725
|
{
|
|
@@ -2790,7 +2790,7 @@ const Vr = ({
|
|
|
2790
2790
|
document.body
|
|
2791
2791
|
)
|
|
2792
2792
|
] });
|
|
2793
|
-
},
|
|
2793
|
+
}, Os = ({
|
|
2794
2794
|
isMobile: e,
|
|
2795
2795
|
isCompact: r,
|
|
2796
2796
|
mobile: t,
|
|
@@ -2810,11 +2810,11 @@ const Vr = ({
|
|
|
2810
2810
|
...o == null ? void 0 : o.style
|
|
2811
2811
|
}
|
|
2812
2812
|
}, [e, r, t, o, s]);
|
|
2813
|
-
},
|
|
2813
|
+
}, Is = ht({
|
|
2814
2814
|
isMobile: !1,
|
|
2815
2815
|
setOpen: () => {
|
|
2816
2816
|
}
|
|
2817
|
-
}),
|
|
2817
|
+
}), Ts = ({
|
|
2818
2818
|
open: e,
|
|
2819
2819
|
setOpen: r,
|
|
2820
2820
|
hamburgerRef: t,
|
|
@@ -2822,7 +2822,7 @@ const Vr = ({
|
|
|
2822
2822
|
mobile: s,
|
|
2823
2823
|
panelWidth: n,
|
|
2824
2824
|
side: a,
|
|
2825
|
-
navClassName:
|
|
2825
|
+
navClassName: l,
|
|
2826
2826
|
cssProps: f,
|
|
2827
2827
|
navProps: c,
|
|
2828
2828
|
content: u,
|
|
@@ -2830,7 +2830,7 @@ const Vr = ({
|
|
|
2830
2830
|
}) => {
|
|
2831
2831
|
const { backgroundColor: m, ...C } = f;
|
|
2832
2832
|
return /* @__PURE__ */ p(
|
|
2833
|
-
|
|
2833
|
+
Fr,
|
|
2834
2834
|
{
|
|
2835
2835
|
variant: "panel",
|
|
2836
2836
|
side: a || "right",
|
|
@@ -2839,7 +2839,7 @@ const Vr = ({
|
|
|
2839
2839
|
onOpenChange: r,
|
|
2840
2840
|
style: m ? { backgroundColor: m } : void 0,
|
|
2841
2841
|
trigger: ({ onClick: b }) => /* @__PURE__ */ p(
|
|
2842
|
-
|
|
2842
|
+
ps,
|
|
2843
2843
|
{
|
|
2844
2844
|
hamburgerRef: t,
|
|
2845
2845
|
visible: !0,
|
|
@@ -2849,19 +2849,19 @@ const Vr = ({
|
|
|
2849
2849
|
...s == null ? void 0 : s.hamburgerProps
|
|
2850
2850
|
}
|
|
2851
2851
|
),
|
|
2852
|
-
children: /* @__PURE__ */ D("nav", { ...c, className:
|
|
2852
|
+
children: /* @__PURE__ */ D("nav", { ...c, className: l, style: C, onClickCapture: y, children: [
|
|
2853
2853
|
/* @__PURE__ */ p("div", { className: xe.navHeader }),
|
|
2854
2854
|
typeof u == "function" ? u({ setOpen: r }) : u
|
|
2855
2855
|
] })
|
|
2856
2856
|
}
|
|
2857
2857
|
);
|
|
2858
|
-
},
|
|
2858
|
+
}, Hs = ({
|
|
2859
2859
|
setOpen: e,
|
|
2860
2860
|
navClassName: r,
|
|
2861
2861
|
cssProps: t,
|
|
2862
2862
|
navProps: o,
|
|
2863
2863
|
content: s
|
|
2864
|
-
}) => /* @__PURE__ */ p("nav", { ...o, className: r, style: t, children: typeof s == "function" ? s({ setOpen: e }) : s }),
|
|
2864
|
+
}) => /* @__PURE__ */ p("nav", { ...o, className: r, style: t, children: typeof s == "function" ? s({ setOpen: e }) : s }), pa = ({
|
|
2865
2865
|
mobile: e,
|
|
2866
2866
|
desktop: r,
|
|
2867
2867
|
breakpoints: t,
|
|
@@ -2869,9 +2869,9 @@ const Vr = ({
|
|
|
2869
2869
|
className: s,
|
|
2870
2870
|
style: n,
|
|
2871
2871
|
navProps: a,
|
|
2872
|
-
disableMobileTreatment:
|
|
2872
|
+
disableMobileTreatment: l = !1
|
|
2873
2873
|
}) => {
|
|
2874
|
-
const [f, c] = J(!1), u = Ve(null), m = { ...R().breakpoints, ...t }, { maxWidth: C, unit: b } = Le(m.md), { maxWidth: _, unit: k } = Le(m.sm), V = ue(`(max-width: ${C}${b})`), g = ue(`(max-width: ${_}${k})`), F =
|
|
2874
|
+
const [f, c] = J(!1), u = Ve(null), m = { ...R().breakpoints, ...t }, { maxWidth: C, unit: b } = Le(m.md), { maxWidth: _, unit: k } = Le(m.sm), V = ue(`(max-width: ${C}${b})`), g = ue(`(max-width: ${_}${k})`), F = l ? !1 : V, z = l ? !1 : g, { navStyles: E } = Os({
|
|
2875
2875
|
isMobile: F,
|
|
2876
2876
|
isCompact: z,
|
|
2877
2877
|
mobile: e,
|
|
@@ -2885,8 +2885,8 @@ const Vr = ({
|
|
|
2885
2885
|
z || e != null && e.compact ? xe.compact : "",
|
|
2886
2886
|
s
|
|
2887
2887
|
].filter(Boolean).join(" "), P = [xe.nav, xe.navDesktop, s].filter(Boolean).join(" ");
|
|
2888
|
-
return /* @__PURE__ */ p(
|
|
2889
|
-
|
|
2888
|
+
return /* @__PURE__ */ p(Is.Provider, { value: { isMobile: F, setOpen: c }, children: F ? /* @__PURE__ */ p(
|
|
2889
|
+
Ts,
|
|
2890
2890
|
{
|
|
2891
2891
|
open: f,
|
|
2892
2892
|
setOpen: c,
|
|
@@ -2902,7 +2902,7 @@ const Vr = ({
|
|
|
2902
2902
|
onNavClick: M
|
|
2903
2903
|
}
|
|
2904
2904
|
) : /* @__PURE__ */ p(
|
|
2905
|
-
|
|
2905
|
+
Hs,
|
|
2906
2906
|
{
|
|
2907
2907
|
setOpen: c,
|
|
2908
2908
|
navClassName: P,
|
|
@@ -2911,12 +2911,12 @@ const Vr = ({
|
|
|
2911
2911
|
content: (r == null ? void 0 : r.content) || o
|
|
2912
2912
|
}
|
|
2913
2913
|
) });
|
|
2914
|
-
},
|
|
2915
|
-
trigger:
|
|
2916
|
-
chevron:
|
|
2917
|
-
chevronOpen:
|
|
2914
|
+
}, js = "NavDropdown-module__trigger___1PQZp", Ws = "NavDropdown-module__chevron___ZLAV7", Us = "NavDropdown-module__chevronOpen___9mgjr", st = {
|
|
2915
|
+
trigger: js,
|
|
2916
|
+
chevron: Ws,
|
|
2917
|
+
chevronOpen: Us
|
|
2918
2918
|
};
|
|
2919
|
-
function
|
|
2919
|
+
function Vr({
|
|
2920
2920
|
isActive: e = !1,
|
|
2921
2921
|
hoverOpacity: r = 0.5,
|
|
2922
2922
|
color: t
|
|
@@ -2933,7 +2933,7 @@ function zr({
|
|
|
2933
2933
|
onMouseLeave: () => n(!1)
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
|
-
const
|
|
2936
|
+
const ga = ({
|
|
2937
2937
|
label: e,
|
|
2938
2938
|
children: r,
|
|
2939
2939
|
dropdownVariant: t = "popup",
|
|
@@ -2941,7 +2941,7 @@ const va = ({
|
|
|
2941
2941
|
panelWidth: s = "75%",
|
|
2942
2942
|
color: n,
|
|
2943
2943
|
hoverOpacity: a,
|
|
2944
|
-
className:
|
|
2944
|
+
className: l,
|
|
2945
2945
|
style: f,
|
|
2946
2946
|
buttonProps: c
|
|
2947
2947
|
}) => {
|
|
@@ -2949,9 +2949,9 @@ const va = ({
|
|
|
2949
2949
|
style: m,
|
|
2950
2950
|
onMouseEnter: C,
|
|
2951
2951
|
onMouseLeave: b
|
|
2952
|
-
} =
|
|
2952
|
+
} = Vr({ isActive: u, color: n, hoverOpacity: a });
|
|
2953
2953
|
return /* @__PURE__ */ p(
|
|
2954
|
-
|
|
2954
|
+
Fr,
|
|
2955
2955
|
{
|
|
2956
2956
|
variant: t,
|
|
2957
2957
|
side: o,
|
|
@@ -2962,7 +2962,7 @@ const va = ({
|
|
|
2962
2962
|
"button",
|
|
2963
2963
|
{
|
|
2964
2964
|
type: "button",
|
|
2965
|
-
className: [st.trigger,
|
|
2965
|
+
className: [st.trigger, l].filter(Boolean).join(" "),
|
|
2966
2966
|
style: { ...m, ...f },
|
|
2967
2967
|
"data-navdropdown-trigger": !0,
|
|
2968
2968
|
onClick: _,
|
|
@@ -3004,24 +3004,24 @@ const va = ({
|
|
|
3004
3004
|
children: r
|
|
3005
3005
|
}
|
|
3006
3006
|
);
|
|
3007
|
-
},
|
|
3008
|
-
const { style: s, onMouseEnter: n, onMouseLeave: a } =
|
|
3007
|
+
}, va = ({ isActive: e, hoverOpacity: r, color: t, children: o }) => {
|
|
3008
|
+
const { style: s, onMouseEnter: n, onMouseLeave: a } = Vr({
|
|
3009
3009
|
isActive: e,
|
|
3010
3010
|
hoverOpacity: r,
|
|
3011
3011
|
color: t
|
|
3012
3012
|
});
|
|
3013
3013
|
return N.cloneElement(o, {
|
|
3014
3014
|
style: { ...s, ...o.props.style },
|
|
3015
|
-
onMouseEnter: (
|
|
3015
|
+
onMouseEnter: (l) => {
|
|
3016
3016
|
var f, c;
|
|
3017
|
-
n(), (c = (f = o.props).onMouseEnter) == null || c.call(f,
|
|
3017
|
+
n(), (c = (f = o.props).onMouseEnter) == null || c.call(f, l);
|
|
3018
3018
|
},
|
|
3019
|
-
onMouseLeave: (
|
|
3019
|
+
onMouseLeave: (l) => {
|
|
3020
3020
|
var f, c;
|
|
3021
|
-
a(), (c = (f = o.props).onMouseLeave) == null || c.call(f,
|
|
3021
|
+
a(), (c = (f = o.props).onMouseLeave) == null || c.call(f, l);
|
|
3022
3022
|
}
|
|
3023
3023
|
});
|
|
3024
|
-
},
|
|
3024
|
+
}, zr = ({
|
|
3025
3025
|
// Color props
|
|
3026
3026
|
color: e,
|
|
3027
3027
|
backgroundColor: r,
|
|
@@ -3033,7 +3033,7 @@ const va = ({
|
|
|
3033
3033
|
// Element-specific props
|
|
3034
3034
|
divProps: n
|
|
3035
3035
|
}) => {
|
|
3036
|
-
const a = R(),
|
|
3036
|
+
const a = R(), l = e || a.colors.primary, f = r || a.colors.secondary, c = /* @__PURE__ */ p(
|
|
3037
3037
|
"div",
|
|
3038
3038
|
{
|
|
3039
3039
|
...t ? void 0 : n,
|
|
@@ -3047,7 +3047,7 @@ const va = ({
|
|
|
3047
3047
|
animation: "spin 1s linear infinite",
|
|
3048
3048
|
...t ? {} : s,
|
|
3049
3049
|
// Apply user style (can override fontSize, etc.)
|
|
3050
|
-
border: `0.1em solid ${
|
|
3050
|
+
border: `0.1em solid ${l}`,
|
|
3051
3051
|
// Color borders always take precedence
|
|
3052
3052
|
borderTop: `0.1em solid ${f}`
|
|
3053
3053
|
}
|
|
@@ -3078,26 +3078,26 @@ const va = ({
|
|
|
3078
3078
|
children: u
|
|
3079
3079
|
}
|
|
3080
3080
|
) : u;
|
|
3081
|
-
},
|
|
3081
|
+
}, ba = ({ children: e, loadingComponent: r }) => {
|
|
3082
3082
|
const [t, o] = J(!1);
|
|
3083
3083
|
return ne(() => {
|
|
3084
3084
|
requestAnimationFrame(() => {
|
|
3085
3085
|
o(!0);
|
|
3086
3086
|
});
|
|
3087
|
-
}, []), t ? /* @__PURE__ */ p(Fe, { children: e }) : r || /* @__PURE__ */ p(
|
|
3088
|
-
},
|
|
3089
|
-
backdrop:
|
|
3090
|
-
modal:
|
|
3091
|
-
header:
|
|
3092
|
-
title:
|
|
3093
|
-
closeButton:
|
|
3094
|
-
content:
|
|
3095
|
-
actions:
|
|
3096
|
-
},
|
|
3097
|
-
stack:
|
|
3098
|
-
vertical:
|
|
3099
|
-
horizontal:
|
|
3100
|
-
},
|
|
3087
|
+
}, []), t ? /* @__PURE__ */ p(Fe, { children: e }) : r || /* @__PURE__ */ p(zr, {});
|
|
3088
|
+
}, 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 = {
|
|
3089
|
+
backdrop: qs,
|
|
3090
|
+
modal: Gs,
|
|
3091
|
+
header: Zs,
|
|
3092
|
+
title: Ks,
|
|
3093
|
+
closeButton: Qs,
|
|
3094
|
+
content: Xs,
|
|
3095
|
+
actions: Js
|
|
3096
|
+
}, Ys = "Stack-module__stack___yUU-B", en = "Stack-module__vertical___sKTyQ", tn = "Stack-module__horizontal___YsvtV", nt = {
|
|
3097
|
+
stack: Ys,
|
|
3098
|
+
vertical: en,
|
|
3099
|
+
horizontal: tn
|
|
3100
|
+
}, rn = ({
|
|
3101
3101
|
// Layout props
|
|
3102
3102
|
direction: e = "row",
|
|
3103
3103
|
gap: r = "0.5em",
|
|
@@ -3115,7 +3115,7 @@ const va = ({
|
|
|
3115
3115
|
o
|
|
3116
3116
|
].filter(Boolean).join(" ");
|
|
3117
3117
|
return /* @__PURE__ */ p("div", { ...n, className: a, style: { gap: r, ...s }, children: t });
|
|
3118
|
-
},
|
|
3118
|
+
}, on = ({
|
|
3119
3119
|
isOpen: e,
|
|
3120
3120
|
onClose: r,
|
|
3121
3121
|
children: t,
|
|
@@ -3123,7 +3123,7 @@ const va = ({
|
|
|
3123
3123
|
hideCloseButton: s = !1,
|
|
3124
3124
|
closeOnBackdropClick: n = !0,
|
|
3125
3125
|
closeOnEscape: a = !0,
|
|
3126
|
-
actions:
|
|
3126
|
+
actions: l = [],
|
|
3127
3127
|
resolveModal: f,
|
|
3128
3128
|
width: c = "500px",
|
|
3129
3129
|
maxWidth: u = "90vw",
|
|
@@ -3211,8 +3211,8 @@ const va = ({
|
|
|
3211
3211
|
)
|
|
3212
3212
|
] }),
|
|
3213
3213
|
/* @__PURE__ */ p("div", { className: he.content, children: t }),
|
|
3214
|
-
|
|
3215
|
-
|
|
3214
|
+
l.length > 0 && /* @__PURE__ */ p(rn, { direction: z ? "column" : "row", className: he.actions, children: l.map((P, K) => /* @__PURE__ */ p(
|
|
3215
|
+
Gr,
|
|
3216
3216
|
{
|
|
3217
3217
|
color: P.color,
|
|
3218
3218
|
outline: P.variant === "outline",
|
|
@@ -3229,8 +3229,8 @@ const va = ({
|
|
|
3229
3229
|
)
|
|
3230
3230
|
}
|
|
3231
3231
|
);
|
|
3232
|
-
return
|
|
3233
|
-
},
|
|
3232
|
+
return it(U, document.body);
|
|
3233
|
+
}, Er = ht(null), Sa = ({ children: e }) => {
|
|
3234
3234
|
const [r, t] = J(null), o = N.useCallback((c) => new Promise((u, y) => {
|
|
3235
3235
|
const m = Math.random().toString(36).substr(2, 9);
|
|
3236
3236
|
t({
|
|
@@ -3277,7 +3277,7 @@ const va = ({
|
|
|
3277
3277
|
options: c.options
|
|
3278
3278
|
}),
|
|
3279
3279
|
[o]
|
|
3280
|
-
),
|
|
3280
|
+
), l = N.useCallback(() => {
|
|
3281
3281
|
s();
|
|
3282
3282
|
}, [s]), f = N.useMemo(
|
|
3283
3283
|
() => ({
|
|
@@ -3288,13 +3288,13 @@ const va = ({
|
|
|
3288
3288
|
}),
|
|
3289
3289
|
[o, s, n, a]
|
|
3290
3290
|
);
|
|
3291
|
-
return /* @__PURE__ */ D(
|
|
3291
|
+
return /* @__PURE__ */ D(Er.Provider, { value: f, children: [
|
|
3292
3292
|
e,
|
|
3293
3293
|
r && /* @__PURE__ */ p(
|
|
3294
|
-
|
|
3294
|
+
on,
|
|
3295
3295
|
{
|
|
3296
3296
|
isOpen: !0,
|
|
3297
|
-
onClose:
|
|
3297
|
+
onClose: l,
|
|
3298
3298
|
title: r.title,
|
|
3299
3299
|
actions: r.actions,
|
|
3300
3300
|
resolveModal: s,
|
|
@@ -3303,15 +3303,15 @@ const va = ({
|
|
|
3303
3303
|
}
|
|
3304
3304
|
)
|
|
3305
3305
|
] });
|
|
3306
|
-
},
|
|
3307
|
-
const e =
|
|
3306
|
+
}, wa = () => {
|
|
3307
|
+
const e = rr(Er);
|
|
3308
3308
|
if (!e)
|
|
3309
3309
|
throw new Error("useModal must be used within a ModalProvider");
|
|
3310
3310
|
return e;
|
|
3311
|
-
},
|
|
3312
|
-
section:
|
|
3313
|
-
innerDiv:
|
|
3314
|
-
},
|
|
3311
|
+
}, sn = "ResponsiveSection-module__section___gBESK", nn = "ResponsiveSection-module__innerDiv___r1bky", Yt = {
|
|
3312
|
+
section: sn,
|
|
3313
|
+
innerDiv: nn
|
|
3314
|
+
}, an = ({
|
|
3315
3315
|
// Color props
|
|
3316
3316
|
backgroundColor: e,
|
|
3317
3317
|
color: r,
|
|
@@ -3321,7 +3321,7 @@ const va = ({
|
|
|
3321
3321
|
width: s,
|
|
3322
3322
|
height: n,
|
|
3323
3323
|
padding: a,
|
|
3324
|
-
paddingSm:
|
|
3324
|
+
paddingSm: l,
|
|
3325
3325
|
margin: f,
|
|
3326
3326
|
gap: c,
|
|
3327
3327
|
verticalRhythm: u = 3,
|
|
@@ -3339,7 +3339,7 @@ const va = ({
|
|
|
3339
3339
|
margin: f,
|
|
3340
3340
|
...C
|
|
3341
3341
|
// Top level style prop overrides
|
|
3342
|
-
}, g = `calc(${_.fonts.rhythm} * ${u})`, F = k ? a || _.layout.padding :
|
|
3342
|
+
}, g = `calc(${_.fonts.rhythm} * ${u})`, F = k ? a || _.layout.padding : l || _.layout.paddingSm, z = {
|
|
3343
3343
|
"--max-width": t || _.layout.maxWidth,
|
|
3344
3344
|
"--min-width": o,
|
|
3345
3345
|
"--width": s,
|
|
@@ -3348,10 +3348,10 @@ const va = ({
|
|
|
3348
3348
|
"--gap": c
|
|
3349
3349
|
}, E = [Yt.section, m].filter(Boolean).join(" ");
|
|
3350
3350
|
return /* @__PURE__ */ p("section", { ...b, className: E, style: V, children: /* @__PURE__ */ p("div", { className: Yt.innerDiv, style: z, children: y }) });
|
|
3351
|
-
},
|
|
3352
|
-
hero:
|
|
3353
|
-
content:
|
|
3354
|
-
},
|
|
3351
|
+
}, ln = "Hero-module__hero___IB2tg", cn = "Hero-module__content___rkkfQ", er = {
|
|
3352
|
+
hero: ln,
|
|
3353
|
+
content: cn
|
|
3354
|
+
}, un = ({
|
|
3355
3355
|
isMd: e = !1,
|
|
3356
3356
|
isLg: r = !1,
|
|
3357
3357
|
theme: t
|
|
@@ -3364,7 +3364,7 @@ const va = ({
|
|
|
3364
3364
|
"--hero-p-font-size": a,
|
|
3365
3365
|
"--hero-h1-margin-bottom": `calc(${o} * 0.7)`
|
|
3366
3366
|
};
|
|
3367
|
-
}, [e, r, t.fonts]),
|
|
3367
|
+
}, [e, r, t.fonts]), ka = ({
|
|
3368
3368
|
// Color props
|
|
3369
3369
|
color: e,
|
|
3370
3370
|
// Layout props
|
|
@@ -3376,21 +3376,21 @@ const va = ({
|
|
|
3376
3376
|
style: s,
|
|
3377
3377
|
...n
|
|
3378
3378
|
}) => {
|
|
3379
|
-
const a = R(),
|
|
3379
|
+
const a = R(), l = [er.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, u = ue(`(min-width: ${f})`), y = ue(`(min-width: ${c})`), m = un({ isMd: u, isLg: y, theme: a });
|
|
3380
3380
|
return /* @__PURE__ */ p(
|
|
3381
|
-
|
|
3381
|
+
an,
|
|
3382
3382
|
{
|
|
3383
|
-
className:
|
|
3383
|
+
className: l,
|
|
3384
3384
|
color: e || a.fonts.color,
|
|
3385
3385
|
style: { ...m, ...s },
|
|
3386
3386
|
...n,
|
|
3387
3387
|
children: /* @__PURE__ */ p("div", { className: er.content, children: t })
|
|
3388
3388
|
}
|
|
3389
3389
|
);
|
|
3390
|
-
},
|
|
3391
|
-
footer:
|
|
3392
|
-
container:
|
|
3393
|
-
},
|
|
3390
|
+
}, dn = "Footer-module__footer___A76NF", fn = "Footer-module__container___QneNs", tr = {
|
|
3391
|
+
footer: dn,
|
|
3392
|
+
container: fn
|
|
3393
|
+
}, mn = ({
|
|
3394
3394
|
isSmallScreen: e = !1,
|
|
3395
3395
|
maxWidth: r,
|
|
3396
3396
|
minWidth: t,
|
|
@@ -3398,7 +3398,7 @@ const va = ({
|
|
|
3398
3398
|
height: s,
|
|
3399
3399
|
paddingSm: n,
|
|
3400
3400
|
padding: a,
|
|
3401
|
-
margin:
|
|
3401
|
+
margin: l,
|
|
3402
3402
|
gap: f,
|
|
3403
3403
|
backgroundColor: c,
|
|
3404
3404
|
color: u
|
|
@@ -3410,12 +3410,12 @@ const va = ({
|
|
|
3410
3410
|
width: o,
|
|
3411
3411
|
height: s,
|
|
3412
3412
|
padding: e ? n || y.layout.paddingSm : a || y.layout.padding,
|
|
3413
|
-
margin:
|
|
3413
|
+
margin: l,
|
|
3414
3414
|
gap: f,
|
|
3415
3415
|
backgroundColor: c,
|
|
3416
3416
|
color: u || y.fonts.color
|
|
3417
3417
|
};
|
|
3418
|
-
},
|
|
3418
|
+
}, yn = ({
|
|
3419
3419
|
// Color props
|
|
3420
3420
|
backgroundColor: e,
|
|
3421
3421
|
color: r,
|
|
@@ -3425,7 +3425,7 @@ const va = ({
|
|
|
3425
3425
|
width: s,
|
|
3426
3426
|
height: n,
|
|
3427
3427
|
padding: a,
|
|
3428
|
-
paddingSm:
|
|
3428
|
+
paddingSm: l,
|
|
3429
3429
|
margin: f,
|
|
3430
3430
|
gap: c,
|
|
3431
3431
|
breakPoint: u,
|
|
@@ -3437,13 +3437,13 @@ const va = ({
|
|
|
3437
3437
|
// Element-specific props
|
|
3438
3438
|
footerProps: b
|
|
3439
3439
|
}) => {
|
|
3440
|
-
const _ = R(), k = u || _.breakpoints.sm, { maxWidth: V, unit: g } = Le(k), F = ue(`(max-width: ${V}${g})`), z =
|
|
3440
|
+
const _ = R(), k = u || _.breakpoints.sm, { maxWidth: V, unit: g } = Le(k), F = ue(`(max-width: ${V}${g})`), z = mn({
|
|
3441
3441
|
isSmallScreen: F,
|
|
3442
3442
|
maxWidth: t,
|
|
3443
3443
|
minWidth: o,
|
|
3444
3444
|
width: s,
|
|
3445
3445
|
height: n,
|
|
3446
|
-
paddingSm:
|
|
3446
|
+
paddingSm: l,
|
|
3447
3447
|
padding: a,
|
|
3448
3448
|
margin: f,
|
|
3449
3449
|
gap: c,
|
|
@@ -3451,12 +3451,12 @@ const va = ({
|
|
|
3451
3451
|
color: r
|
|
3452
3452
|
}), E = [tr.container, m].filter(Boolean).join(" ");
|
|
3453
3453
|
return /* @__PURE__ */ p("footer", { ...b, className: tr.footer, children: /* @__PURE__ */ p("div", { className: E, style: { ...z, ...C }, children: y }) });
|
|
3454
|
-
},
|
|
3455
|
-
card:
|
|
3456
|
-
icon:
|
|
3457
|
-
title:
|
|
3458
|
-
content:
|
|
3459
|
-
},
|
|
3454
|
+
}, hn = "FeatureCard-module__card___XQt66", _n = "FeatureCard-module__icon___dXJ92", pn = "FeatureCard-module__title___KxXyA", gn = "FeatureCard-module__content___68xkw", Ie = {
|
|
3455
|
+
card: hn,
|
|
3456
|
+
icon: _n,
|
|
3457
|
+
title: pn,
|
|
3458
|
+
content: gn
|
|
3459
|
+
}, vn = ({
|
|
3460
3460
|
isMd: e = !1,
|
|
3461
3461
|
theme: r
|
|
3462
3462
|
}) => We(() => {
|
|
@@ -3468,7 +3468,7 @@ const va = ({
|
|
|
3468
3468
|
"--feature-icon-margin-bottom": `calc(${t} * 0.7)`,
|
|
3469
3469
|
"--feature-title-margin-bottom": `calc(${t} * 0.5)`
|
|
3470
3470
|
};
|
|
3471
|
-
}, [e, r.fonts]),
|
|
3471
|
+
}, [e, r.fonts]), xa = ({
|
|
3472
3472
|
// Layout props
|
|
3473
3473
|
breakpoint: e,
|
|
3474
3474
|
// Content
|
|
@@ -3481,7 +3481,7 @@ const va = ({
|
|
|
3481
3481
|
// Element-specific props
|
|
3482
3482
|
divProps: a
|
|
3483
3483
|
}) => {
|
|
3484
|
-
const
|
|
3484
|
+
const l = R(), f = [Ie.card, s].filter(Boolean).join(" "), c = e || l.breakpoints.md, u = ue(`(min-width: ${c})`), y = vn({ isMd: u, theme: l });
|
|
3485
3485
|
return /* @__PURE__ */ D(
|
|
3486
3486
|
"div",
|
|
3487
3487
|
{
|
|
@@ -3495,10 +3495,9 @@ const va = ({
|
|
|
3495
3495
|
]
|
|
3496
3496
|
}
|
|
3497
3497
|
);
|
|
3498
|
-
},
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
}, kn = ({
|
|
3498
|
+
}, bn = "FeatureGrid-module__grid___6sW6f", Sn = {
|
|
3499
|
+
grid: bn
|
|
3500
|
+
}, wn = ({
|
|
3502
3501
|
columns: e,
|
|
3503
3502
|
isMd: r = !1,
|
|
3504
3503
|
isLg: t = !1
|
|
@@ -3513,34 +3512,28 @@ const va = ({
|
|
|
3513
3512
|
}[e]
|
|
3514
3513
|
} : {
|
|
3515
3514
|
"--grid-template-columns": "1fr"
|
|
3516
|
-
}, [e, r, t]),
|
|
3517
|
-
// Layout props
|
|
3515
|
+
}, [e, r, t]), Ca = ({
|
|
3518
3516
|
columns: e = 3,
|
|
3519
3517
|
breakpoints: r,
|
|
3520
3518
|
gap: t,
|
|
3521
|
-
// Content
|
|
3522
3519
|
children: o,
|
|
3523
|
-
// Style overrides
|
|
3524
3520
|
className: s,
|
|
3525
|
-
style: n
|
|
3526
|
-
...a
|
|
3521
|
+
style: n
|
|
3527
3522
|
}) => {
|
|
3528
|
-
const
|
|
3529
|
-
|
|
3530
|
-
}, _ = {
|
|
3531
|
-
...C,
|
|
3523
|
+
const a = R(), l = (r == null ? void 0 : r.md) || a.breakpoints.md, f = (r == null ? void 0 : r.lg) || a.breakpoints.lg, c = ue(`(min-width: ${l})`), u = ue(`(min-width: ${f})`), m = {
|
|
3524
|
+
...wn({ columns: e, isMd: c, isLg: u }),
|
|
3532
3525
|
gap: t,
|
|
3533
3526
|
...n
|
|
3534
3527
|
};
|
|
3535
|
-
return /* @__PURE__ */ p(
|
|
3536
|
-
},
|
|
3537
|
-
card:
|
|
3538
|
-
clickable:
|
|
3539
|
-
vertical:
|
|
3540
|
-
imageWrapper:
|
|
3541
|
-
horizontal:
|
|
3542
|
-
content:
|
|
3543
|
-
},
|
|
3528
|
+
return /* @__PURE__ */ p("div", { className: [Sn.grid, s].filter(Boolean).join(" "), style: m, children: o });
|
|
3529
|
+
}, 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 = {
|
|
3530
|
+
card: kn,
|
|
3531
|
+
clickable: xn,
|
|
3532
|
+
vertical: Cn,
|
|
3533
|
+
imageWrapper: Fn,
|
|
3534
|
+
horizontal: Vn,
|
|
3535
|
+
content: zn
|
|
3536
|
+
}, Fa = ({
|
|
3544
3537
|
direction: e = "column",
|
|
3545
3538
|
imageSlot: r,
|
|
3546
3539
|
imageWidth: t,
|
|
@@ -3548,14 +3541,14 @@ const va = ({
|
|
|
3548
3541
|
children: s,
|
|
3549
3542
|
className: n,
|
|
3550
3543
|
style: a,
|
|
3551
|
-
onClick:
|
|
3544
|
+
onClick: l,
|
|
3552
3545
|
actions: f,
|
|
3553
3546
|
divProps: c
|
|
3554
3547
|
}) => {
|
|
3555
3548
|
const u = R(), y = [
|
|
3556
3549
|
we.card,
|
|
3557
3550
|
e === "row" ? we.horizontal : we.vertical,
|
|
3558
|
-
|
|
3551
|
+
l ? we.clickable : void 0,
|
|
3559
3552
|
n
|
|
3560
3553
|
].filter(Boolean).join(" "), m = {
|
|
3561
3554
|
borderRadius: u.border.radius,
|
|
@@ -3569,12 +3562,12 @@ const va = ({
|
|
|
3569
3562
|
...c,
|
|
3570
3563
|
className: y,
|
|
3571
3564
|
style: m,
|
|
3572
|
-
onClick:
|
|
3573
|
-
onKeyDown:
|
|
3574
|
-
|
|
3565
|
+
onClick: l,
|
|
3566
|
+
onKeyDown: l ? (b) => {
|
|
3567
|
+
l && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), l());
|
|
3575
3568
|
} : void 0,
|
|
3576
|
-
role:
|
|
3577
|
-
tabIndex:
|
|
3569
|
+
role: l ? "button" : void 0,
|
|
3570
|
+
tabIndex: l ? 0 : void 0,
|
|
3578
3571
|
children: [
|
|
3579
3572
|
r && /* @__PURE__ */ p("div", { className: we.imageWrapper, children: r }),
|
|
3580
3573
|
/* @__PURE__ */ p("div", { className: we.content, children: s }),
|
|
@@ -3582,11 +3575,11 @@ const va = ({
|
|
|
3582
3575
|
]
|
|
3583
3576
|
}
|
|
3584
3577
|
);
|
|
3585
|
-
},
|
|
3586
|
-
layoutContainer:
|
|
3587
|
-
content:
|
|
3588
|
-
main:
|
|
3589
|
-
},
|
|
3578
|
+
}, En = "PageLayout-module__layoutContainer___diLdT", Nn = "PageLayout-module__content___h2mBr", $n = "PageLayout-module__main___Sw7Pv", at = {
|
|
3579
|
+
layoutContainer: En,
|
|
3580
|
+
content: Nn,
|
|
3581
|
+
main: $n
|
|
3582
|
+
}, Va = ({
|
|
3590
3583
|
// Content
|
|
3591
3584
|
header: e,
|
|
3592
3585
|
footer: r,
|
|
@@ -3597,29 +3590,29 @@ const va = ({
|
|
|
3597
3590
|
// Element-specific props
|
|
3598
3591
|
headerProps: n,
|
|
3599
3592
|
footerProps: a,
|
|
3600
|
-
divProps:
|
|
3593
|
+
divProps: l,
|
|
3601
3594
|
mainProps: f
|
|
3602
3595
|
}) => {
|
|
3603
3596
|
const c = [at.layoutContainer, o].filter(Boolean).join(" ");
|
|
3604
|
-
return /* @__PURE__ */ D("div", { ...
|
|
3597
|
+
return /* @__PURE__ */ D("div", { ...l, className: c, style: s, children: [
|
|
3605
3598
|
/* @__PURE__ */ D("div", { className: at.content, children: [
|
|
3606
|
-
e && /* @__PURE__ */ p(
|
|
3599
|
+
e && /* @__PURE__ */ p(Ss, { ...n, children: e }),
|
|
3607
3600
|
/* @__PURE__ */ p("main", { ...f, className: at.main, children: t })
|
|
3608
3601
|
] }),
|
|
3609
|
-
r && /* @__PURE__ */ p(
|
|
3602
|
+
r && /* @__PURE__ */ p(yn, { ...a, children: r })
|
|
3610
3603
|
] });
|
|
3611
|
-
},
|
|
3612
|
-
dropzone:
|
|
3613
|
-
loading:
|
|
3614
|
-
dragOver:
|
|
3615
|
-
hiddenInput:
|
|
3616
|
-
content:
|
|
3617
|
-
contentHidden:
|
|
3618
|
-
spinnerOverlay:
|
|
3619
|
-
label:
|
|
3620
|
-
hint:
|
|
3621
|
-
errorMessage:
|
|
3622
|
-
},
|
|
3604
|
+
}, Ln = "FileUpload-module__dropzone___jqua0", An = "FileUpload-module__loading___C7PsH", Pn = "FileUpload-module__dragOver___q1zPo", Mn = "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 = {
|
|
3605
|
+
dropzone: Ln,
|
|
3606
|
+
loading: An,
|
|
3607
|
+
dragOver: Pn,
|
|
3608
|
+
hiddenInput: Mn,
|
|
3609
|
+
content: Bn,
|
|
3610
|
+
contentHidden: Dn,
|
|
3611
|
+
spinnerOverlay: Rn,
|
|
3612
|
+
label: On,
|
|
3613
|
+
hint: In,
|
|
3614
|
+
errorMessage: Tn
|
|
3615
|
+
}, Hn = ({ color: e }) => /* @__PURE__ */ p(
|
|
3623
3616
|
"svg",
|
|
3624
3617
|
{
|
|
3625
3618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3630,7 +3623,7 @@ const va = ({
|
|
|
3630
3623
|
"aria-hidden": !0,
|
|
3631
3624
|
children: /* @__PURE__ */ p("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" })
|
|
3632
3625
|
}
|
|
3633
|
-
),
|
|
3626
|
+
), za = ({
|
|
3634
3627
|
onUpload: e,
|
|
3635
3628
|
accept: r,
|
|
3636
3629
|
maxSizeBytes: t,
|
|
@@ -3638,7 +3631,7 @@ const va = ({
|
|
|
3638
3631
|
error: s,
|
|
3639
3632
|
label: n = "Click or drag & drop a file here",
|
|
3640
3633
|
className: a,
|
|
3641
|
-
style:
|
|
3634
|
+
style: l,
|
|
3642
3635
|
divProps: f,
|
|
3643
3636
|
inputProps: c
|
|
3644
3637
|
}) => {
|
|
@@ -3681,7 +3674,7 @@ const va = ({
|
|
|
3681
3674
|
borderRadius: u.border.radius,
|
|
3682
3675
|
fontSize: u.fonts.size,
|
|
3683
3676
|
color: g,
|
|
3684
|
-
...
|
|
3677
|
+
...l
|
|
3685
3678
|
};
|
|
3686
3679
|
return /* @__PURE__ */ D(
|
|
3687
3680
|
"div",
|
|
@@ -3714,7 +3707,7 @@ const va = ({
|
|
|
3714
3707
|
}
|
|
3715
3708
|
),
|
|
3716
3709
|
o && /* @__PURE__ */ p(
|
|
3717
|
-
|
|
3710
|
+
zr,
|
|
3718
3711
|
{
|
|
3719
3712
|
fullScreen: !1,
|
|
3720
3713
|
className: ae.spinnerOverlay,
|
|
@@ -3727,7 +3720,7 @@ const va = ({
|
|
|
3727
3720
|
className: [ae.content, o && ae.contentHidden].filter(Boolean).join(" "),
|
|
3728
3721
|
"aria-hidden": o || void 0,
|
|
3729
3722
|
children: [
|
|
3730
|
-
/* @__PURE__ */ p(
|
|
3723
|
+
/* @__PURE__ */ p(Hn, { color: V }),
|
|
3731
3724
|
/* @__PURE__ */ p("span", { className: ae.label, children: n }),
|
|
3732
3725
|
r && /* @__PURE__ */ D("span", { className: ae.hint, children: [
|
|
3733
3726
|
"Accepted: ",
|
|
@@ -3745,14 +3738,14 @@ const va = ({
|
|
|
3745
3738
|
]
|
|
3746
3739
|
}
|
|
3747
3740
|
);
|
|
3748
|
-
},
|
|
3749
|
-
container:
|
|
3750
|
-
img:
|
|
3751
|
-
fallback:
|
|
3752
|
-
},
|
|
3753
|
-
skeleton:
|
|
3754
|
-
},
|
|
3755
|
-
const o = R(), s = [
|
|
3741
|
+
}, jn = "Image-module__container___sVJdZ", Wn = "Image-module__img___pKhPw", Un = "Image-module__fallback___wysuM", lt = {
|
|
3742
|
+
container: jn,
|
|
3743
|
+
img: Wn,
|
|
3744
|
+
fallback: Un
|
|
3745
|
+
}, qn = "Skeleton-module__skeleton___CB4uF", Gn = {
|
|
3746
|
+
skeleton: qn
|
|
3747
|
+
}, Nr = ({ className: e, style: r, divProps: t }) => {
|
|
3748
|
+
const o = R(), s = [Gn.skeleton, e].filter(Boolean).join(" ");
|
|
3756
3749
|
return /* @__PURE__ */ p(
|
|
3757
3750
|
"div",
|
|
3758
3751
|
{
|
|
@@ -3763,7 +3756,7 @@ const va = ({
|
|
|
3763
3756
|
"aria-busy": !0
|
|
3764
3757
|
}
|
|
3765
3758
|
);
|
|
3766
|
-
},
|
|
3759
|
+
}, Ea = ({
|
|
3767
3760
|
src: e,
|
|
3768
3761
|
alt: r = "",
|
|
3769
3762
|
aspectRatio: t = "1 / 1",
|
|
@@ -3771,7 +3764,7 @@ const va = ({
|
|
|
3771
3764
|
skeletonDelay: s = 150,
|
|
3772
3765
|
fallback: n,
|
|
3773
3766
|
className: a,
|
|
3774
|
-
style:
|
|
3767
|
+
style: l,
|
|
3775
3768
|
imgProps: f
|
|
3776
3769
|
}) => {
|
|
3777
3770
|
const c = R(), [u, y] = J(null), [m, C] = J(null), [b, _] = J(null), k = u === e, V = m === e, g = b === e;
|
|
@@ -3780,10 +3773,10 @@ const va = ({
|
|
|
3780
3773
|
const U = setTimeout(() => _(e), s);
|
|
3781
3774
|
return () => clearTimeout(U);
|
|
3782
3775
|
}, [e, s]);
|
|
3783
|
-
const F = o || !!e && !k && !V && g, z = !o && (!e || V), E = !o && !!e && !V, B = [
|
|
3776
|
+
const F = o || !!e && !k && !V && g, z = !o && (!e || V), E = !o && !!e && !V, B = [lt.container, a].filter(Boolean).join(" "), M = {
|
|
3784
3777
|
aspectRatio: t,
|
|
3785
3778
|
borderRadius: c.border.radius,
|
|
3786
|
-
...
|
|
3779
|
+
...l
|
|
3787
3780
|
};
|
|
3788
3781
|
return /* @__PURE__ */ D(
|
|
3789
3782
|
"div",
|
|
@@ -3793,15 +3786,15 @@ const va = ({
|
|
|
3793
3786
|
"aria-label": z ? r || "Image placeholder" : void 0,
|
|
3794
3787
|
"aria-busy": F || void 0,
|
|
3795
3788
|
children: [
|
|
3796
|
-
F && /* @__PURE__ */ p(
|
|
3797
|
-
z && /* @__PURE__ */ p("div", { className:
|
|
3789
|
+
F && /* @__PURE__ */ p(Nr, { style: { borderRadius: "inherit", position: "absolute", inset: 0 } }),
|
|
3790
|
+
z && /* @__PURE__ */ p("div", { className: lt.fallback, children: n ?? null }),
|
|
3798
3791
|
E && /* @__PURE__ */ p(
|
|
3799
3792
|
"img",
|
|
3800
3793
|
{
|
|
3801
3794
|
...f,
|
|
3802
3795
|
src: e,
|
|
3803
3796
|
alt: r,
|
|
3804
|
-
className:
|
|
3797
|
+
className: lt.img,
|
|
3805
3798
|
style: { opacity: k ? 1 : 0 },
|
|
3806
3799
|
onLoad: () => e && y(e),
|
|
3807
3800
|
onError: () => e && C(e)
|
|
@@ -3810,20 +3803,20 @@ const va = ({
|
|
|
3810
3803
|
]
|
|
3811
3804
|
}
|
|
3812
3805
|
);
|
|
3813
|
-
},
|
|
3814
|
-
thumbnail:
|
|
3815
|
-
img:
|
|
3816
|
-
sizeXs:
|
|
3817
|
-
sizeSmall:
|
|
3818
|
-
sizeDefault:
|
|
3819
|
-
sizeLarge:
|
|
3820
|
-
removeButton:
|
|
3821
|
-
},
|
|
3806
|
+
}, Zn = "ImageThumbnail-module__thumbnail___-igbe", Kn = "ImageThumbnail-module__img___Q7Z4V", Qn = "ImageThumbnail-module__sizeXs___TvSHV", Xn = "ImageThumbnail-module__sizeSmall___2KnCh", Jn = "ImageThumbnail-module__sizeDefault___laoQk", Yn = "ImageThumbnail-module__sizeLarge___iwz3o", ea = "ImageThumbnail-module__removeButton___Ceh1Q", pe = {
|
|
3807
|
+
thumbnail: Zn,
|
|
3808
|
+
img: Kn,
|
|
3809
|
+
sizeXs: Qn,
|
|
3810
|
+
sizeSmall: Xn,
|
|
3811
|
+
sizeDefault: Jn,
|
|
3812
|
+
sizeLarge: Yn,
|
|
3813
|
+
removeButton: ea
|
|
3814
|
+
}, ta = {
|
|
3822
3815
|
xs: pe.sizeXs,
|
|
3823
3816
|
small: pe.sizeSmall,
|
|
3824
3817
|
default: pe.sizeDefault,
|
|
3825
3818
|
large: pe.sizeLarge
|
|
3826
|
-
},
|
|
3819
|
+
}, ra = ({ color: e }) => /* @__PURE__ */ D(
|
|
3827
3820
|
"svg",
|
|
3828
3821
|
{
|
|
3829
3822
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3840,7 +3833,7 @@ const va = ({
|
|
|
3840
3833
|
/* @__PURE__ */ p("polyline", { points: "21 15 16 10 5 21" })
|
|
3841
3834
|
]
|
|
3842
3835
|
}
|
|
3843
|
-
),
|
|
3836
|
+
), Na = ({
|
|
3844
3837
|
src: e,
|
|
3845
3838
|
alt: r = "",
|
|
3846
3839
|
size: t = "default",
|
|
@@ -3848,7 +3841,7 @@ const va = ({
|
|
|
3848
3841
|
skeletonDelay: s = 500,
|
|
3849
3842
|
onRemove: n,
|
|
3850
3843
|
removeLabel: a = "Remove",
|
|
3851
|
-
fallback:
|
|
3844
|
+
fallback: l,
|
|
3852
3845
|
className: f,
|
|
3853
3846
|
style: c,
|
|
3854
3847
|
imgProps: u
|
|
@@ -3859,7 +3852,7 @@ const va = ({
|
|
|
3859
3852
|
const q = setTimeout(() => V(e), s);
|
|
3860
3853
|
return () => clearTimeout(q);
|
|
3861
3854
|
}, [e, s]);
|
|
3862
|
-
const E = o || !!e && !g && !F && z, B = !o && (!e || F), M = !o && !!e && !F, U = [pe.thumbnail,
|
|
3855
|
+
const E = o || !!e && !g && !F && z, B = !o && (!e || F), M = !o && !!e && !F, U = [pe.thumbnail, ta[t], f].filter(Boolean).join(" "), P = {
|
|
3863
3856
|
borderRadius: y.border.radius,
|
|
3864
3857
|
...c
|
|
3865
3858
|
}, K = {
|
|
@@ -3875,8 +3868,8 @@ const va = ({
|
|
|
3875
3868
|
"aria-label": B ? r || "Image placeholder" : void 0,
|
|
3876
3869
|
"aria-busy": E || void 0,
|
|
3877
3870
|
children: [
|
|
3878
|
-
E && /* @__PURE__ */ p(
|
|
3879
|
-
B && (
|
|
3871
|
+
E && /* @__PURE__ */ p(Nr, { style: { borderRadius: "inherit", position: "absolute", inset: 0 } }),
|
|
3872
|
+
B && (l ?? /* @__PURE__ */ p(ra, { color: y.colors.primary })),
|
|
3880
3873
|
M && /* @__PURE__ */ p(
|
|
3881
3874
|
"img",
|
|
3882
3875
|
{
|
|
@@ -3922,53 +3915,53 @@ const va = ({
|
|
|
3922
3915
|
);
|
|
3923
3916
|
};
|
|
3924
3917
|
export {
|
|
3925
|
-
|
|
3926
|
-
|
|
3918
|
+
Gr as Button,
|
|
3919
|
+
ia as CSSReset,
|
|
3927
3920
|
ut as Checkbox,
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3921
|
+
xa as FeatureCard,
|
|
3922
|
+
Ca as FeatureGrid,
|
|
3923
|
+
za as FileUpload,
|
|
3924
|
+
yn as Footer,
|
|
3925
|
+
ca as Form,
|
|
3926
|
+
ma as FormCheckbox,
|
|
3927
|
+
_a as FormCheckboxGroup,
|
|
3928
|
+
To as FormError,
|
|
3936
3929
|
ge as FormField,
|
|
3937
|
-
|
|
3938
|
-
|
|
3930
|
+
Go as FormGroup,
|
|
3931
|
+
ua as FormInput,
|
|
3939
3932
|
_t as FormLabel,
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3933
|
+
ya as FormRadio,
|
|
3934
|
+
ha as FormRadioGroup,
|
|
3935
|
+
fa as FormSelect,
|
|
3936
|
+
da as FormTextarea,
|
|
3937
|
+
ps as Hamburger,
|
|
3938
|
+
Ss as Header,
|
|
3939
|
+
ka as Hero,
|
|
3940
|
+
Ea as Image,
|
|
3941
|
+
Na as ImageThumbnail,
|
|
3942
|
+
Jo as Input,
|
|
3943
|
+
zr as LoadingSpinner,
|
|
3944
|
+
Fa as MediaCard,
|
|
3945
|
+
on as Modal,
|
|
3946
|
+
Sa as ModalProvider,
|
|
3947
|
+
ga as NavDropdown,
|
|
3948
|
+
va as NavLink,
|
|
3949
|
+
Va as PageLayout,
|
|
3950
|
+
Fr as Popover,
|
|
3951
|
+
Cr as Radio,
|
|
3952
|
+
pa as ResponsiveNav,
|
|
3953
|
+
Is as ResponsiveNavContext,
|
|
3954
|
+
an as ResponsiveSection,
|
|
3955
|
+
is as Select,
|
|
3956
|
+
Nr as Skeleton,
|
|
3957
|
+
rn as Stack,
|
|
3958
|
+
ba as StyleLoader,
|
|
3959
|
+
os as Textarea,
|
|
3967
3960
|
la as ThemeProvider,
|
|
3968
3961
|
Le as parseBreakpoint,
|
|
3969
|
-
|
|
3962
|
+
Do as useFormContext,
|
|
3970
3963
|
ue as useMediaQuery,
|
|
3971
|
-
|
|
3972
|
-
|
|
3964
|
+
wa as useModal,
|
|
3965
|
+
Vr as useNavLinkStyles,
|
|
3973
3966
|
R as useTheme
|
|
3974
3967
|
};
|