digital-rabbit-cl 2.4.3 → 2.4.5
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/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/ImageThumbnail/ImageThumbnail.d.ts +5 -4
- package/dist/components/ImageThumbnail/ImageThumbnail.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +364 -342
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__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)}.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;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__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}.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:2rem;height:2rem}.ImageThumbnail-module__sizeSm___rtC81{width:3rem;height:3rem}.ImageThumbnail-module__sizeMd___GL9qs{width:4rem;height:4rem}.ImageThumbnail-module__sizeLg___E70Oi{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}@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%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { jsx as p, jsxs as
|
|
3
|
-
import E, { createContext as mt, useContext as tr, useState as Y, useLayoutEffect as Tr, useSyncExternalStore as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__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)}.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}.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}@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%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { jsx as p, jsxs as H, Fragment as Ce } from "react/jsx-runtime";
|
|
3
|
+
import E, { createContext as mt, useContext as tr, useState as Y, useLayoutEffect as Tr, useSyncExternalStore as Hr, useEffect as ce, useCallback as xe, useRef as Fe, useMemo as je } from "react";
|
|
4
4
|
import { createPortal as at } from "react-dom";
|
|
5
|
-
const
|
|
6
|
-
button:
|
|
5
|
+
const Ir = "Button-module__button___2ZuB7", jr = "Button-module__sizeSmall___DRT8P", Ur = "Button-module__sizeLarge___yeZSH", Be = {
|
|
6
|
+
button: Ir,
|
|
7
7
|
sizeSmall: jr,
|
|
8
8
|
sizeLarge: Ur
|
|
9
9
|
}, Wr = ({
|
|
@@ -28,15 +28,15 @@ const Hr = "Button-module__button___2ZuB7", jr = "Button-module__sizeSmall___DRT
|
|
|
28
28
|
};
|
|
29
29
|
function rr(e, r) {
|
|
30
30
|
const t = { ...e };
|
|
31
|
-
return
|
|
31
|
+
return De(e) && De(r) && Object.keys(r).forEach((o) => {
|
|
32
32
|
const s = r[o], n = e[o];
|
|
33
|
-
|
|
33
|
+
De(s) && De(n) ? t[o] = rr(
|
|
34
34
|
n,
|
|
35
35
|
s
|
|
36
36
|
) : s !== void 0 && (t[o] = s);
|
|
37
37
|
}), t;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function De(e) {
|
|
40
40
|
return e && typeof e == "object" && !Array.isArray(e);
|
|
41
41
|
}
|
|
42
42
|
function $e(e) {
|
|
@@ -54,7 +54,7 @@ function $e(e) {
|
|
|
54
54
|
unit: o
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const Ke = {
|
|
58
58
|
primary: "#000",
|
|
59
59
|
secondary: "#FFF",
|
|
60
60
|
accent: "#4381C1",
|
|
@@ -62,7 +62,7 @@ const Xe = {
|
|
|
62
62
|
success: "#008000",
|
|
63
63
|
warning: "#FFEB3B"
|
|
64
64
|
}, it = {
|
|
65
|
-
colors:
|
|
65
|
+
colors: Ke,
|
|
66
66
|
fonts: {
|
|
67
67
|
color: "#000",
|
|
68
68
|
lineHeight: 1.5,
|
|
@@ -81,7 +81,7 @@ const Xe = {
|
|
|
81
81
|
textColor: "#FFF",
|
|
82
82
|
paddingHorizontal: 0.35,
|
|
83
83
|
primary: {
|
|
84
|
-
textColor:
|
|
84
|
+
textColor: Ke.secondary
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
inputs: {
|
|
@@ -111,14 +111,14 @@ const Xe = {
|
|
|
111
111
|
padding: "1rem"
|
|
112
112
|
},
|
|
113
113
|
modal: {
|
|
114
|
-
backgroundColor:
|
|
114
|
+
backgroundColor: Ke.secondary,
|
|
115
115
|
backdropColor: "rgba(0, 0, 0, 0.5)",
|
|
116
116
|
boxShadow: "0 10px 40px rgba(0, 0, 0, 0.2)"
|
|
117
117
|
}
|
|
118
|
-
}, or = mt(it),
|
|
118
|
+
}, or = mt(it), Xn = ({ theme: e, children: r }) => {
|
|
119
119
|
const t = e ? rr(it, e) : it;
|
|
120
120
|
return /* @__PURE__ */ p(or.Provider, { value: t, children: r });
|
|
121
|
-
},
|
|
121
|
+
}, I = () => tr(or), qr = ({
|
|
122
122
|
// Core styling
|
|
123
123
|
color: e,
|
|
124
124
|
hoverColor: r,
|
|
@@ -135,7 +135,7 @@ const Xe = {
|
|
|
135
135
|
onClick: d,
|
|
136
136
|
children: h
|
|
137
137
|
}) => {
|
|
138
|
-
const m =
|
|
138
|
+
const m = I(), [C, b] = Y(!1), x = {
|
|
139
139
|
...Wr({
|
|
140
140
|
isActive: C,
|
|
141
141
|
disabled: o,
|
|
@@ -180,8 +180,8 @@ function Zr() {
|
|
|
180
180
|
return At(Gr);
|
|
181
181
|
}
|
|
182
182
|
var sr = [];
|
|
183
|
-
for (var
|
|
184
|
-
sr[
|
|
183
|
+
for (var Me = 0; Me < 256; ++Me)
|
|
184
|
+
sr[Me] = (Me + 256).toString(16).substr(1);
|
|
185
185
|
function Qr(e, r) {
|
|
186
186
|
var t = 0, o = sr;
|
|
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("");
|
|
@@ -195,9 +195,9 @@ function nr(e, r, t) {
|
|
|
195
195
|
r[o + n] = s[n];
|
|
196
196
|
return r || Qr(s);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
container:
|
|
200
|
-
svg:
|
|
198
|
+
const Kr = "Checkbox-module__container___aV9qz", Xr = "Checkbox-module__svg___kkluC", Jr = "Checkbox-module__label___cwRtI", Xe = {
|
|
199
|
+
container: Kr,
|
|
200
|
+
svg: Xr,
|
|
201
201
|
label: Jr
|
|
202
202
|
}, Yr = ({
|
|
203
203
|
color: e = "#000",
|
|
@@ -240,7 +240,7 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
240
240
|
// Element-specific props
|
|
241
241
|
labelProps: i
|
|
242
242
|
}) => {
|
|
243
|
-
const f =
|
|
243
|
+
const f = I(), c = f.colors.error, d = t ? c : e || f.colors.primary, h = ro({
|
|
244
244
|
color: d,
|
|
245
245
|
disabled: r,
|
|
246
246
|
fontSize: ".85em"
|
|
@@ -275,7 +275,7 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
275
275
|
// Element-specific props
|
|
276
276
|
divProps: C
|
|
277
277
|
}) => {
|
|
278
|
-
const b =
|
|
278
|
+
const b = I(), _ = i || nr(), x = b.colors.error, V = n ? x : e || b.colors.primary, g = Yr({
|
|
279
279
|
color: V,
|
|
280
280
|
checkmarkColor: r,
|
|
281
281
|
disabled: s,
|
|
@@ -290,7 +290,7 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
290
290
|
// Top-level style prop overrides
|
|
291
291
|
}, N = {
|
|
292
292
|
width: "1em"
|
|
293
|
-
},
|
|
293
|
+
}, D = {
|
|
294
294
|
fill: o && t ? g.checkboxColor : "transparent",
|
|
295
295
|
strokeWidth: "25",
|
|
296
296
|
stroke: g.checkboxColor
|
|
@@ -298,8 +298,8 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
298
298
|
stroke: g.checkmarkColor,
|
|
299
299
|
strokeWidth: "15",
|
|
300
300
|
fill: "transparent"
|
|
301
|
-
}, Z = [
|
|
302
|
-
return /* @__PURE__ */
|
|
301
|
+
}, Z = [Xe.container, h].filter(Boolean).join(" ");
|
|
302
|
+
return /* @__PURE__ */ H("div", { ...C, className: Z, style: z, children: [
|
|
303
303
|
/* @__PURE__ */ p(
|
|
304
304
|
"input",
|
|
305
305
|
{
|
|
@@ -312,16 +312,16 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
312
312
|
type: "checkbox"
|
|
313
313
|
}
|
|
314
314
|
),
|
|
315
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ H(
|
|
316
316
|
"svg",
|
|
317
317
|
{
|
|
318
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
319
319
|
viewBox: "0 0 100 100",
|
|
320
320
|
onClick: () => F({ target: { checked: !t, name: a, type: "checkbox" } }),
|
|
321
321
|
style: N,
|
|
322
|
-
className:
|
|
322
|
+
className: Xe.svg,
|
|
323
323
|
children: [
|
|
324
|
-
/* @__PURE__ */ p("rect", { x: "0", y: "0", height: "100", width: "100", style:
|
|
324
|
+
/* @__PURE__ */ p("rect", { x: "0", y: "0", height: "100", width: "100", style: D }),
|
|
325
325
|
t && /* @__PURE__ */ p("path", { d: "M 25 45 L 45 65 L 75 30", style: B })
|
|
326
326
|
]
|
|
327
327
|
}
|
|
@@ -330,7 +330,7 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
330
330
|
yt,
|
|
331
331
|
{
|
|
332
332
|
htmlFor: _,
|
|
333
|
-
className:
|
|
333
|
+
className: Xe.label,
|
|
334
334
|
style: { paddingBottom: 0, ...d },
|
|
335
335
|
color: g.checkboxColor,
|
|
336
336
|
disabled: s,
|
|
@@ -339,20 +339,20 @@ const Xr = "Checkbox-module__container___aV9qz", Kr = "Checkbox-module__svg___kk
|
|
|
339
339
|
}
|
|
340
340
|
)
|
|
341
341
|
] });
|
|
342
|
-
},
|
|
343
|
-
const e =
|
|
342
|
+
}, Jn = () => {
|
|
343
|
+
const e = I();
|
|
344
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
|
-
var Le = (e) => e.type === "checkbox",
|
|
349
|
+
var Le = (e) => e.type === "checkbox", _e = (e) => e instanceof Date, ee = (e) => e == null;
|
|
350
350
|
const ar = (e) => typeof e == "object";
|
|
351
|
-
var G = (e) => !ee(e) && !Array.isArray(e) && ar(e) && !
|
|
351
|
+
var G = (e) => !ee(e) && !Array.isArray(e) && ar(e) && !_e(e), ir = (e) => G(e) && e.target ? Le(e.target) ? e.target.checked : e.target.value : e, oo = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, lr = (e, r) => e.has(oo(r)), so = (e) => {
|
|
352
352
|
const r = e.constructor && e.constructor.prototype;
|
|
353
353
|
return G(r) && r.hasOwnProperty("isPrototypeOf");
|
|
354
354
|
}, ht = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
355
|
-
function
|
|
355
|
+
function X(e) {
|
|
356
356
|
let r;
|
|
357
357
|
const t = Array.isArray(e), o = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
358
358
|
if (e instanceof Date)
|
|
@@ -362,7 +362,7 @@ function K(e) {
|
|
|
362
362
|
r = e;
|
|
363
363
|
else
|
|
364
364
|
for (const s in e)
|
|
365
|
-
e.hasOwnProperty(s) && (r[s] =
|
|
365
|
+
e.hasOwnProperty(s) && (r[s] = X(e[s]));
|
|
366
366
|
else
|
|
367
367
|
return e;
|
|
368
368
|
return r;
|
|
@@ -391,13 +391,13 @@ const Te = {
|
|
|
391
391
|
BLUR: "blur",
|
|
392
392
|
FOCUS_OUT: "focusout",
|
|
393
393
|
CHANGE: "change"
|
|
394
|
-
},
|
|
394
|
+
}, ae = {
|
|
395
395
|
onBlur: "onBlur",
|
|
396
396
|
onChange: "onChange",
|
|
397
397
|
onSubmit: "onSubmit",
|
|
398
398
|
onTouched: "onTouched",
|
|
399
399
|
all: "all"
|
|
400
|
-
},
|
|
400
|
+
}, fe = {
|
|
401
401
|
max: "max",
|
|
402
402
|
min: "min",
|
|
403
403
|
maxLength: "maxLength",
|
|
@@ -416,7 +416,7 @@ var ur = (e, r, t, o = !0) => {
|
|
|
416
416
|
Object.defineProperty(s, n, {
|
|
417
417
|
get: () => {
|
|
418
418
|
const a = n;
|
|
419
|
-
return r._proxyFormState[a] !==
|
|
419
|
+
return r._proxyFormState[a] !== ae.all && (r._proxyFormState[a] = !o || ae.all), t && (t[a] = !0), e[a];
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
return s;
|
|
@@ -448,10 +448,10 @@ function no(e) {
|
|
|
448
448
|
}, [t]), E.useMemo(() => ur(a, t, f.current, !1), [a, t]);
|
|
449
449
|
}
|
|
450
450
|
var oe = (e) => typeof e == "string", ct = (e, r, t, o, s) => oe(e) ? (o && r.watch.add(e), w(t, e, s)) : Array.isArray(e) ? e.map((n) => (o && r.watch.add(n), w(t, n))) : (o && (r.watchAll = !0), t), ut = (e) => ee(e) || !ar(e);
|
|
451
|
-
function
|
|
451
|
+
function ie(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
452
452
|
if (ut(e) || ut(r))
|
|
453
453
|
return e === r;
|
|
454
|
-
if (
|
|
454
|
+
if (_e(e) && _e(r))
|
|
455
455
|
return e.getTime() === r.getTime();
|
|
456
456
|
const o = Object.keys(e), s = Object.keys(r);
|
|
457
457
|
if (o.length !== s.length)
|
|
@@ -465,7 +465,7 @@ function ae(e, r, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
465
465
|
return !1;
|
|
466
466
|
if (n !== "ref") {
|
|
467
467
|
const i = r[n];
|
|
468
|
-
if (
|
|
468
|
+
if (_e(a) && _e(i) || G(a) && G(i) || Array.isArray(a) && Array.isArray(i) ? !ie(a, i, t) : a !== i)
|
|
469
469
|
return !1;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
@@ -484,13 +484,13 @@ function ao(e) {
|
|
|
484
484
|
if (!n) {
|
|
485
485
|
const N = ct(o, t._names, z || t._formValues, !1, f.current);
|
|
486
486
|
if (c.current) {
|
|
487
|
-
const
|
|
488
|
-
|
|
487
|
+
const D = c.current(N);
|
|
488
|
+
ie(D, d.current) || (b(D), d.current = D);
|
|
489
489
|
} else
|
|
490
490
|
b(N);
|
|
491
491
|
}
|
|
492
492
|
}, [t._formValues, t._names, n, o]);
|
|
493
|
-
vt(() => ((h.current !== t || !
|
|
493
|
+
vt(() => ((h.current !== t || !ie(m.current, o)) && (h.current = t, m.current = o, x()), t._subscribe({
|
|
494
494
|
name: o,
|
|
495
495
|
formState: {
|
|
496
496
|
values: !0
|
|
@@ -503,7 +503,7 @@ function ao(e) {
|
|
|
503
503
|
const V = h.current !== t, g = m.current, F = E.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;
|
|
@@ -579,13 +579,13 @@ function io(e) {
|
|
|
579
579
|
...h.current.rules,
|
|
580
580
|
...re(h.current.disabled) ? { disabled: h.current.disabled } : {}
|
|
581
581
|
});
|
|
582
|
-
const N = (
|
|
583
|
-
const Z = w(s._fields,
|
|
582
|
+
const N = (D, B) => {
|
|
583
|
+
const Z = w(s._fields, D);
|
|
584
584
|
Z && Z._f && (Z._f.mount = B);
|
|
585
585
|
};
|
|
586
586
|
if (N(t, !0), F) {
|
|
587
|
-
const
|
|
588
|
-
T(s._defaultValues, t,
|
|
587
|
+
const D = X(w(s._options.defaultValues, t, h.current.defaultValue));
|
|
588
|
+
T(s._defaultValues, t, D), U(w(s._formValues, t)) && T(s._formValues, t, D);
|
|
589
589
|
}
|
|
590
590
|
return !i && s.register(t), m.current = t, () => {
|
|
591
591
|
(i ? F && !s._state.action : F) ? s.unregister(t) : N(t, !1);
|
|
@@ -639,12 +639,12 @@ function dr(e, r) {
|
|
|
639
639
|
}
|
|
640
640
|
return t;
|
|
641
641
|
}
|
|
642
|
-
var J = (e) => G(e) && !Object.keys(e).length, St = (e) => e.type === "file",
|
|
642
|
+
var J = (e) => G(e) && !Object.keys(e).length, St = (e) => e.type === "file", le = (e) => typeof e == "function", He = (e) => {
|
|
643
643
|
if (!ht)
|
|
644
644
|
return !1;
|
|
645
645
|
const r = e ? e.ownerDocument : 0;
|
|
646
646
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
647
|
-
}, fr = (e) => e.type === "select-multiple", wt = (e) => e.type === "radio", lo = (e) => wt(e) || Le(e), Je = (e) =>
|
|
647
|
+
}, fr = (e) => e.type === "select-multiple", wt = (e) => e.type === "radio", lo = (e) => wt(e) || Le(e), Je = (e) => He(e) && e.isConnected;
|
|
648
648
|
function co(e, r) {
|
|
649
649
|
const t = r.slice(0, -1).length;
|
|
650
650
|
let o = 0;
|
|
@@ -664,7 +664,7 @@ function q(e, r) {
|
|
|
664
664
|
}
|
|
665
665
|
var fo = (e) => {
|
|
666
666
|
for (const r in e)
|
|
667
|
-
if (
|
|
667
|
+
if (le(e[r]))
|
|
668
668
|
return !0;
|
|
669
669
|
return !1;
|
|
670
670
|
};
|
|
@@ -679,13 +679,13 @@ function dt(e, r = {}) {
|
|
|
679
679
|
function we(e, r, t) {
|
|
680
680
|
t || (t = dt(r));
|
|
681
681
|
for (const o in e)
|
|
682
|
-
mr(e[o]) ? U(r) || ut(t[o]) ? t[o] = dt(e[o], Array.isArray(e[o]) ? [] : {}) : we(e[o], ee(r) ? {} : r[o], t[o]) : t[o] = !
|
|
682
|
+
mr(e[o]) ? U(r) || ut(t[o]) ? t[o] = dt(e[o], Array.isArray(e[o]) ? [] : {}) : we(e[o], ee(r) ? {} : r[o], t[o]) : t[o] = !ie(e[o], r[o]);
|
|
683
683
|
return t;
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const Dt = {
|
|
686
686
|
value: !1,
|
|
687
687
|
isValid: !1
|
|
688
|
-
},
|
|
688
|
+
}, Mt = { value: !0, isValid: !0 };
|
|
689
689
|
var yr = (e) => {
|
|
690
690
|
if (Array.isArray(e)) {
|
|
691
691
|
if (e.length > 1) {
|
|
@@ -694,10 +694,10 @@ var yr = (e) => {
|
|
|
694
694
|
}
|
|
695
695
|
return e[0].checked && !e[0].disabled ? (
|
|
696
696
|
// @ts-expect-error expected to work in the browser
|
|
697
|
-
e[0].attributes && !U(e[0].attributes.value) ? U(e[0].value) || e[0].value === "" ?
|
|
698
|
-
) :
|
|
697
|
+
e[0].attributes && !U(e[0].attributes.value) ? U(e[0].value) || e[0].value === "" ? Mt : { value: e[0].value, isValid: !0 } : Mt
|
|
698
|
+
) : Dt;
|
|
699
699
|
}
|
|
700
|
-
return
|
|
700
|
+
return Dt;
|
|
701
701
|
}, hr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: o }) => U(e) ? e : r ? e === "" ? NaN : e && +e : t && oe(e) ? new Date(e) : o ? o(e) : e;
|
|
702
702
|
const Rt = {
|
|
703
703
|
isValid: !1,
|
|
@@ -723,15 +723,15 @@ var mo = (e, r, t, o) => {
|
|
|
723
723
|
fields: s,
|
|
724
724
|
shouldUseNativeValidation: o
|
|
725
725
|
};
|
|
726
|
-
},
|
|
727
|
-
isOnSubmit: !e || e ===
|
|
728
|
-
isOnBlur: e ===
|
|
729
|
-
isOnChange: e ===
|
|
730
|
-
isOnAll: e ===
|
|
731
|
-
isOnTouch: e ===
|
|
726
|
+
}, Ie = (e) => e instanceof RegExp, Ve = (e) => U(e) ? e : Ie(e) ? e.source : G(e) ? Ie(e.value) ? e.value.source : e.value : e, Tt = (e) => ({
|
|
727
|
+
isOnSubmit: !e || e === ae.onSubmit,
|
|
728
|
+
isOnBlur: e === ae.onBlur,
|
|
729
|
+
isOnChange: e === ae.onChange,
|
|
730
|
+
isOnAll: e === ae.all,
|
|
731
|
+
isOnTouch: e === ae.onTouched
|
|
732
732
|
});
|
|
733
|
-
const
|
|
734
|
-
var yo = (e) => !!e && !!e.validate && !!(
|
|
733
|
+
const Ht = "AsyncFunction";
|
|
734
|
+
var yo = (e) => !!e && !!e.validate && !!(le(e.validate) && e.validate.constructor.name === Ht || G(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Ht)), ho = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), It = (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 Ne = (e, r, t, o) => {
|
|
736
736
|
for (const s of t || Object.keys(e)) {
|
|
737
737
|
const n = w(e, s);
|
|
@@ -780,7 +780,7 @@ function jt(e, r, t) {
|
|
|
780
780
|
var _o = (e, r, t, o) => {
|
|
781
781
|
t(e);
|
|
782
782
|
const { name: s, ...n } = e;
|
|
783
|
-
return J(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o ||
|
|
783
|
+
return J(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o || ae.all));
|
|
784
784
|
}, po = (e, r, t) => !e || !r || e === r || Ee(e).some((o) => o && (t ? o === r : o.startsWith(r) || r.startsWith(o))), go = (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, vo = (e, r) => !_t(w(e, r)).length && q(e, r), bo = (e, r, t) => {
|
|
785
785
|
const o = Ee(w(e, t));
|
|
786
786
|
return T(o, "root", r[t]), T(e, t, o), e;
|
|
@@ -793,7 +793,7 @@ function Ut(e, r, t = "validate") {
|
|
|
793
793
|
ref: r
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
var be = (e) => G(e) && !
|
|
796
|
+
var be = (e) => G(e) && !Ie(e) ? e : {
|
|
797
797
|
value: e,
|
|
798
798
|
message: ""
|
|
799
799
|
}, Wt = async (e, r, t, o, s, n) => {
|
|
@@ -802,59 +802,59 @@ var be = (e) => G(e) && !He(e) ? e : {
|
|
|
802
802
|
return {};
|
|
803
803
|
const F = i ? i[0] : a, z = (L) => {
|
|
804
804
|
s && F.reportValidity && (F.setCustomValidity(re(L) ? "" : L || ""), F.reportValidity());
|
|
805
|
-
}, N = {},
|
|
806
|
-
const te = L ? A :
|
|
805
|
+
}, N = {}, D = wt(a), B = Le(a), Z = D || B, P = (x || St(a)) && U(a.value) && U(g) || He(a) && a.value === "" || g === "" || Array.isArray(g) && !g.length, Q = bt.bind(null, _, o, N), W = (L, A, M, R = fe.maxLength, K = fe.minLength) => {
|
|
806
|
+
const te = L ? A : M;
|
|
807
807
|
N[_] = {
|
|
808
|
-
type: L ? R :
|
|
808
|
+
type: L ? R : K,
|
|
809
809
|
message: te,
|
|
810
810
|
ref: a,
|
|
811
|
-
...Q(L ? R :
|
|
811
|
+
...Q(L ? R : K, te)
|
|
812
812
|
};
|
|
813
813
|
};
|
|
814
|
-
if (n ? !Array.isArray(g) || !g.length : f && (!Z && (P || ee(g)) || re(g) && !g || B && !yr(i).isValid ||
|
|
814
|
+
if (n ? !Array.isArray(g) || !g.length : f && (!Z && (P || ee(g)) || re(g) && !g || B && !yr(i).isValid || D && !_r(i).isValid)) {
|
|
815
815
|
const { value: L, message: A } = oe(f) ? { value: !!f, message: f } : be(f);
|
|
816
816
|
if (L && (N[_] = {
|
|
817
|
-
type:
|
|
817
|
+
type: fe.required,
|
|
818
818
|
message: A,
|
|
819
819
|
ref: F,
|
|
820
|
-
...Q(
|
|
820
|
+
...Q(fe.required, A)
|
|
821
821
|
}, !o))
|
|
822
822
|
return z(A), N;
|
|
823
823
|
}
|
|
824
824
|
if (!P && (!ee(h) || !ee(m))) {
|
|
825
825
|
let L, A;
|
|
826
|
-
const
|
|
826
|
+
const M = be(m), R = be(h);
|
|
827
827
|
if (!ee(g) && !isNaN(g)) {
|
|
828
|
-
const
|
|
829
|
-
ee(
|
|
828
|
+
const K = a.valueAsNumber || g && +g;
|
|
829
|
+
ee(M.value) || (L = K > M.value), ee(R.value) || (A = K < R.value);
|
|
830
830
|
} else {
|
|
831
|
-
const
|
|
832
|
-
oe(
|
|
831
|
+
const K = a.valueAsDate || new Date(g), te = (Ae) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ae), me = a.type == "time", ve = a.type == "week";
|
|
832
|
+
oe(M.value) && g && (L = me ? te(g) > te(M.value) : ve ? g > M.value : K > new Date(M.value)), oe(R.value) && g && (A = me ? te(g) < te(R.value) : ve ? g < R.value : K < new Date(R.value));
|
|
833
833
|
}
|
|
834
|
-
if ((L || A) && (W(!!L,
|
|
834
|
+
if ((L || A) && (W(!!L, M.message, R.message, fe.max, fe.min), !o))
|
|
835
835
|
return z(N[_].message), N;
|
|
836
836
|
}
|
|
837
837
|
if ((c || d) && !P && (oe(g) || n && Array.isArray(g))) {
|
|
838
|
-
const L = be(c), A = be(d),
|
|
839
|
-
if ((
|
|
838
|
+
const L = be(c), A = be(d), M = !ee(L.value) && g.length > +L.value, R = !ee(A.value) && g.length < +A.value;
|
|
839
|
+
if ((M || R) && (W(M, L.message, A.message), !o))
|
|
840
840
|
return z(N[_].message), N;
|
|
841
841
|
}
|
|
842
842
|
if (C && !P && oe(g)) {
|
|
843
843
|
const { value: L, message: A } = be(C);
|
|
844
|
-
if (
|
|
845
|
-
type:
|
|
844
|
+
if (Ie(L) && !g.match(L) && (N[_] = {
|
|
845
|
+
type: fe.pattern,
|
|
846
846
|
message: A,
|
|
847
847
|
ref: a,
|
|
848
|
-
...Q(
|
|
848
|
+
...Q(fe.pattern, A)
|
|
849
849
|
}, !o))
|
|
850
850
|
return z(A), N;
|
|
851
851
|
}
|
|
852
852
|
if (b) {
|
|
853
|
-
if (
|
|
853
|
+
if (le(b)) {
|
|
854
854
|
const L = await b(g, t), A = Ut(L, F);
|
|
855
855
|
if (A && (N[_] = {
|
|
856
856
|
...A,
|
|
857
|
-
...Q(
|
|
857
|
+
...Q(fe.validate, A.message)
|
|
858
858
|
}, !o))
|
|
859
859
|
return z(A.message), N;
|
|
860
860
|
} else if (G(b)) {
|
|
@@ -862,11 +862,11 @@ var be = (e) => G(e) && !He(e) ? e : {
|
|
|
862
862
|
for (const A in b) {
|
|
863
863
|
if (!J(L) && !o)
|
|
864
864
|
break;
|
|
865
|
-
const
|
|
866
|
-
|
|
867
|
-
...
|
|
868
|
-
...Q(A,
|
|
869
|
-
}, z(
|
|
865
|
+
const M = Ut(await b[A](g, t), F, A);
|
|
866
|
+
M && (L = {
|
|
867
|
+
...M,
|
|
868
|
+
...Q(A, M.message)
|
|
869
|
+
}, z(M.message), o && (N[_] = L));
|
|
870
870
|
}
|
|
871
871
|
if (!J(L) && (N[_] = {
|
|
872
872
|
ref: F,
|
|
@@ -878,8 +878,8 @@ var be = (e) => G(e) && !He(e) ? e : {
|
|
|
878
878
|
return z(!0), N;
|
|
879
879
|
};
|
|
880
880
|
const So = {
|
|
881
|
-
mode:
|
|
882
|
-
reValidateMode:
|
|
881
|
+
mode: ae.onSubmit,
|
|
882
|
+
reValidateMode: ae.onChange,
|
|
883
883
|
shouldFocusError: !0
|
|
884
884
|
};
|
|
885
885
|
function wo(e = {}) {
|
|
@@ -890,7 +890,7 @@ function wo(e = {}) {
|
|
|
890
890
|
submitCount: 0,
|
|
891
891
|
isDirty: !1,
|
|
892
892
|
isReady: !1,
|
|
893
|
-
isLoading:
|
|
893
|
+
isLoading: le(r.defaultValues),
|
|
894
894
|
isValidating: !1,
|
|
895
895
|
isSubmitted: !1,
|
|
896
896
|
isSubmitting: !1,
|
|
@@ -901,7 +901,7 @@ function wo(e = {}) {
|
|
|
901
901
|
validatingFields: {},
|
|
902
902
|
errors: r.errors || {},
|
|
903
903
|
disabled: r.disabled || !1
|
|
904
|
-
}, o = {}, s = G(r.defaultValues) || G(r.values) ?
|
|
904
|
+
}, o = {}, s = G(r.defaultValues) || G(r.values) ? X(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : X(s), a = {
|
|
905
905
|
action: !1,
|
|
906
906
|
mount: !1,
|
|
907
907
|
watch: !1
|
|
@@ -927,7 +927,7 @@ function wo(e = {}) {
|
|
|
927
927
|
const m = {
|
|
928
928
|
array: Bt(),
|
|
929
929
|
state: Bt()
|
|
930
|
-
}, C = r.criteriaMode ===
|
|
930
|
+
}, C = r.criteriaMode === ae.all, b = (l) => (u) => {
|
|
931
931
|
clearTimeout(c), c = setTimeout(l, u);
|
|
932
932
|
}, _ = async (l) => {
|
|
933
933
|
if (!r.disabled && (d.isValid || h.isValid || l)) {
|
|
@@ -979,7 +979,7 @@ function wo(e = {}) {
|
|
|
979
979
|
const S = w(o, l);
|
|
980
980
|
if (S) {
|
|
981
981
|
const v = w(n, l, U(y) ? w(s, l) : y);
|
|
982
|
-
U(v) || k && k.defaultChecked || u ? T(n, l, u ? v : Ot(S._f)) :
|
|
982
|
+
U(v) || k && k.defaultChecked || u ? T(n, l, u ? v : Ot(S._f)) : M(l, v), a.mount && _();
|
|
983
983
|
}
|
|
984
984
|
}, N = (l, u, y, k, S) => {
|
|
985
985
|
let v = !1, $ = !1;
|
|
@@ -989,7 +989,7 @@ function wo(e = {}) {
|
|
|
989
989
|
if (!r.disabled) {
|
|
990
990
|
if (!y || k) {
|
|
991
991
|
(d.isDirty || h.isDirty) && ($ = t.isDirty, t.isDirty = O.isDirty = W(), v = $ !== O.isDirty);
|
|
992
|
-
const j =
|
|
992
|
+
const j = ie(w(s, l), u);
|
|
993
993
|
$ = !!w(t.dirtyFields, l), j ? q(t.dirtyFields, l) : T(t.dirtyFields, l, !0), O.dirtyFields = t.dirtyFields, v = v || (d.dirtyFields || h.dirtyFields) && $ !== !j;
|
|
994
994
|
}
|
|
995
995
|
if (y) {
|
|
@@ -999,9 +999,9 @@ function wo(e = {}) {
|
|
|
999
999
|
v && S && m.state.next(O);
|
|
1000
1000
|
}
|
|
1001
1001
|
return v ? O : {};
|
|
1002
|
-
},
|
|
1002
|
+
}, D = (l, u, y, k) => {
|
|
1003
1003
|
const S = w(t.errors, l), v = (d.isValid || h.isValid) && re(u) && t.isValid !== u;
|
|
1004
|
-
if (r.delayError && y ? (f = b(() => g(l, y)), f(r.delayError)) : (clearTimeout(c), f = null, y ? T(t.errors, l, y) : q(t.errors, l)), (y ? !
|
|
1004
|
+
if (r.delayError && y ? (f = b(() => g(l, y)), f(r.delayError)) : (clearTimeout(c), f = null, y ? T(t.errors, l, y) : q(t.errors, l)), (y ? !ie(S, y) : S) || !J(k) || v) {
|
|
1005
1005
|
const $ = {
|
|
1006
1006
|
...k,
|
|
1007
1007
|
...v && re(u) ? { isValid: u } : {},
|
|
@@ -1052,18 +1052,18 @@ function wo(e = {}) {
|
|
|
1052
1052
|
u && (u._f.refs ? u._f.refs.every((y) => !Je(y)) : !Je(u._f.ref)) && We(l);
|
|
1053
1053
|
}
|
|
1054
1054
|
i.unMount = /* @__PURE__ */ new Set();
|
|
1055
|
-
}, W = (l, u) => !r.disabled && (l && u && T(n, l, u), !
|
|
1055
|
+
}, W = (l, u) => !r.disabled && (l && u && T(n, l, u), !ie(Ae(), s)), L = (l, u, y) => ct(l, i, {
|
|
1056
1056
|
...a.mount ? n : U(u) ? s : oe(l) ? { [l]: u } : u
|
|
1057
|
-
}, y, u), A = (l) => _t(w(a.mount ? n : s, l, r.shouldUnregister ? w(s, l, []) : [])),
|
|
1057
|
+
}, y, u), A = (l) => _t(w(a.mount ? n : s, l, r.shouldUnregister ? w(s, l, []) : [])), M = (l, u, y = {}) => {
|
|
1058
1058
|
const k = w(o, l);
|
|
1059
1059
|
let S = u;
|
|
1060
1060
|
if (k) {
|
|
1061
1061
|
const v = k._f;
|
|
1062
|
-
v && (!v.disabled && T(n, l, hr(u, v)), S =
|
|
1062
|
+
v && (!v.disabled && T(n, l, hr(u, v)), S = He(v.ref) && ee(u) ? "" : u, fr(v.ref) ? [...v.ref.options].forEach(($) => $.selected = S.includes($.value)) : v.refs ? Le(v.ref) ? v.refs.forEach(($) => {
|
|
1063
1063
|
(!$.defaultChecked || !$.disabled) && (Array.isArray(S) ? $.checked = !!S.find((O) => O === $.value) : $.checked = S === $.value || !!S);
|
|
1064
1064
|
}) : v.refs.forEach(($) => $.checked = $.value === S) : St(v.ref) ? v.ref.value = "" : (v.ref.value = S, v.ref.type || m.state.next({
|
|
1065
1065
|
name: l,
|
|
1066
|
-
values:
|
|
1066
|
+
values: X(n)
|
|
1067
1067
|
})));
|
|
1068
1068
|
}
|
|
1069
1069
|
(y.shouldDirty || y.shouldTouch) && N(l, S, y.shouldTouch, y.shouldDirty, !0), y.shouldValidate && ve(l);
|
|
@@ -1072,38 +1072,38 @@ function wo(e = {}) {
|
|
|
1072
1072
|
if (!u.hasOwnProperty(k))
|
|
1073
1073
|
return;
|
|
1074
1074
|
const S = u[k], v = l + "." + k, $ = w(o, v);
|
|
1075
|
-
(i.array.has(l) || G(S) || $ && !$._f) && !
|
|
1075
|
+
(i.array.has(l) || G(S) || $ && !$._f) && !_e(S) ? R(v, S, y) : M(v, S, y);
|
|
1076
1076
|
}
|
|
1077
|
-
},
|
|
1078
|
-
const k = w(o, l), S = i.array.has(l), v =
|
|
1077
|
+
}, K = (l, u, y = {}) => {
|
|
1078
|
+
const k = w(o, l), S = i.array.has(l), v = X(u);
|
|
1079
1079
|
T(n, l, v), S ? (m.array.next({
|
|
1080
1080
|
name: l,
|
|
1081
|
-
values:
|
|
1081
|
+
values: X(n)
|
|
1082
1082
|
}), (d.isDirty || d.dirtyFields || h.isDirty || h.dirtyFields) && y.shouldDirty && m.state.next({
|
|
1083
1083
|
name: l,
|
|
1084
1084
|
dirtyFields: we(s, n),
|
|
1085
1085
|
isDirty: W(l, v)
|
|
1086
|
-
})) : k && !k._f && !ee(v) ? R(l, v, y) :
|
|
1086
|
+
})) : k && !k._f && !ee(v) ? R(l, v, y) : M(l, v, y), It(l, i) && m.state.next({ ...t, name: l }), m.state.next({
|
|
1087
1087
|
name: a.mount ? l : void 0,
|
|
1088
|
-
values:
|
|
1088
|
+
values: X(n)
|
|
1089
1089
|
});
|
|
1090
1090
|
}, te = async (l) => {
|
|
1091
1091
|
a.mount = !0;
|
|
1092
1092
|
const u = l.target;
|
|
1093
1093
|
let y = u.name, k = !0;
|
|
1094
1094
|
const S = w(o, y), v = (j) => {
|
|
1095
|
-
k = Number.isNaN(j) ||
|
|
1095
|
+
k = Number.isNaN(j) || _e(j) && isNaN(j.getTime()) || ie(j, w(n, y, j));
|
|
1096
1096
|
}, $ = Tt(r.mode), O = Tt(r.reValidateMode);
|
|
1097
1097
|
if (S) {
|
|
1098
1098
|
let j, se;
|
|
1099
|
-
const Pe = u.type ? Ot(S._f) : ir(l), ye = l.type === Te.BLUR || l.type === Te.FOCUS_OUT,
|
|
1099
|
+
const Pe = u.type ? Ot(S._f) : ir(l), ye = l.type === Te.BLUR || l.type === Te.FOCUS_OUT, Mr = !ho(S._f) && !r.resolver && !w(t.errors, y) && !S._f.deps || go(ye, w(t.touchedFields, y), t.isSubmitted, O, $), Ze = It(y, i, ye);
|
|
1100
1100
|
T(n, y, Pe), ye ? (!u || !u.readOnly) && (S._f.onBlur && S._f.onBlur(l), f && f(0)) : S._f.onChange && S._f.onChange(l);
|
|
1101
1101
|
const Qe = N(y, Pe, ye), Rr = !J(Qe) || Ze;
|
|
1102
1102
|
if (!ye && m.state.next({
|
|
1103
1103
|
name: y,
|
|
1104
1104
|
type: l.type,
|
|
1105
|
-
values:
|
|
1106
|
-
}),
|
|
1105
|
+
values: X(n)
|
|
1106
|
+
}), Mr)
|
|
1107
1107
|
return (d.isValid || h.isValid) && (r.mode === "onBlur" ? ye && _() : ye || _()), Rr && m.state.next({ name: y, ...Ze ? {} : Qe });
|
|
1108
1108
|
if (!ye && Ze && m.state.next({ ...t }), r.resolver) {
|
|
1109
1109
|
const { errors: $t } = await B([y]);
|
|
@@ -1113,7 +1113,7 @@ function wo(e = {}) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
} else
|
|
1115
1115
|
x([y], !0), j = (await Wt(S, i.disabled, n, C, r.shouldUseNativeValidation))[y], x([y]), v(Pe), k && (j ? se = !1 : (d.isValid || h.isValid) && (se = await P(o, !0)));
|
|
1116
|
-
k && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && ve(S._f.deps),
|
|
1116
|
+
k && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && ve(S._f.deps), D(y, se, j, Qe));
|
|
1117
1117
|
}
|
|
1118
1118
|
}, me = (l, u) => {
|
|
1119
1119
|
if (w(t.errors, u) && l.focus)
|
|
@@ -1159,11 +1159,11 @@ function wo(e = {}) {
|
|
|
1159
1159
|
errors: t.errors,
|
|
1160
1160
|
isValid: !1
|
|
1161
1161
|
}), y && y.shouldFocus && k && k.focus && k.focus();
|
|
1162
|
-
}, $r = (l, u) =>
|
|
1162
|
+
}, $r = (l, u) => le(l) ? m.state.subscribe({
|
|
1163
1163
|
next: (y) => "values" in y && l(L(void 0, u), y)
|
|
1164
1164
|
}) : L(l, u, !0), Ct = (l) => m.state.subscribe({
|
|
1165
1165
|
next: (u) => {
|
|
1166
|
-
po(l.name, u.name, l.exact) && _o(u, l.formState || d,
|
|
1166
|
+
po(l.name, u.name, l.exact) && _o(u, l.formState || d, Dr, l.reRenderRoot) && l.callback({
|
|
1167
1167
|
values: { ...n },
|
|
1168
1168
|
...t,
|
|
1169
1169
|
...u,
|
|
@@ -1180,7 +1180,7 @@ function wo(e = {}) {
|
|
|
1180
1180
|
for (const y of l ? Ee(l) : i.mount)
|
|
1181
1181
|
i.mount.delete(y), i.array.delete(y), u.keepValue || (q(o, y), q(n, y)), !u.keepError && q(t.errors, y), !u.keepDirty && q(t.dirtyFields, y), !u.keepTouched && q(t.touchedFields, y), !u.keepIsValidating && q(t.validatingFields, y), !r.shouldUnregister && !u.keepDefaultValue && q(s, y);
|
|
1182
1182
|
m.state.next({
|
|
1183
|
-
values:
|
|
1183
|
+
values: X(n)
|
|
1184
1184
|
}), m.state.next({
|
|
1185
1185
|
...t,
|
|
1186
1186
|
...u.keepDirty ? { isDirty: W() } : {}
|
|
@@ -1247,12 +1247,12 @@ function wo(e = {}) {
|
|
|
1247
1247
|
}, Vt = (l, u) => async (y) => {
|
|
1248
1248
|
let k;
|
|
1249
1249
|
y && (y.preventDefault && y.preventDefault(), y.persist && y.persist());
|
|
1250
|
-
let S =
|
|
1250
|
+
let S = X(n);
|
|
1251
1251
|
if (m.state.next({
|
|
1252
1252
|
isSubmitting: !0
|
|
1253
1253
|
}), r.resolver) {
|
|
1254
1254
|
const { errors: v, values: $ } = await B();
|
|
1255
|
-
t.errors = v, S =
|
|
1255
|
+
t.errors = v, S = X($);
|
|
1256
1256
|
} else
|
|
1257
1257
|
await P(o);
|
|
1258
1258
|
if (i.disabled.size)
|
|
@@ -1278,9 +1278,9 @@ function wo(e = {}) {
|
|
|
1278
1278
|
}), k)
|
|
1279
1279
|
throw k;
|
|
1280
1280
|
}, Pr = (l, u = {}) => {
|
|
1281
|
-
w(o, l) && (U(u.defaultValue) ?
|
|
1281
|
+
w(o, l) && (U(u.defaultValue) ? K(l, X(w(s, l))) : (K(l, u.defaultValue), T(s, l, X(u.defaultValue))), u.keepTouched || q(t.touchedFields, l), u.keepDirty || (q(t.dirtyFields, l), t.isDirty = u.defaultValue ? W(l, X(w(s, l))) : W()), u.keepError || (q(t.errors, l), d.isValid && _()), m.state.next({ ...t }));
|
|
1282
1282
|
}, zt = (l, u = {}) => {
|
|
1283
|
-
const y = l ?
|
|
1283
|
+
const y = l ? X(l) : s, k = X(y), S = J(l), v = S ? s : k;
|
|
1284
1284
|
if (u.keepDefaultValues || (s = y), !u.keepValues) {
|
|
1285
1285
|
if (u.keepDirtyValues) {
|
|
1286
1286
|
const $ = /* @__PURE__ */ new Set([
|
|
@@ -1288,14 +1288,14 @@ function wo(e = {}) {
|
|
|
1288
1288
|
...Object.keys(we(s, n))
|
|
1289
1289
|
]);
|
|
1290
1290
|
for (const O of Array.from($))
|
|
1291
|
-
w(t.dirtyFields, O) ? T(v, O, w(n, O)) :
|
|
1291
|
+
w(t.dirtyFields, O) ? T(v, O, w(n, O)) : K(O, w(v, O));
|
|
1292
1292
|
} else {
|
|
1293
1293
|
if (ht && U(l))
|
|
1294
1294
|
for (const $ of i.mount) {
|
|
1295
1295
|
const O = w(o, $);
|
|
1296
1296
|
if (O && O._f) {
|
|
1297
1297
|
const j = Array.isArray(O._f.refs) ? O._f.refs[0] : O._f.ref;
|
|
1298
|
-
if (
|
|
1298
|
+
if (He(j)) {
|
|
1299
1299
|
const se = j.closest("form");
|
|
1300
1300
|
if (se) {
|
|
1301
1301
|
se.reset();
|
|
@@ -1306,11 +1306,11 @@ function wo(e = {}) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
if (u.keepFieldsRef)
|
|
1308
1308
|
for (const $ of i.mount)
|
|
1309
|
-
|
|
1309
|
+
K($, w(v, $));
|
|
1310
1310
|
else
|
|
1311
1311
|
o = {};
|
|
1312
1312
|
}
|
|
1313
|
-
n = r.shouldUnregister ? u.keepDefaultValues ?
|
|
1313
|
+
n = r.shouldUnregister ? u.keepDefaultValues ? X(s) : {} : X(v), m.array.next({
|
|
1314
1314
|
values: { ...v }
|
|
1315
1315
|
}), m.state.next({
|
|
1316
1316
|
values: { ...v }
|
|
@@ -1326,7 +1326,7 @@ function wo(e = {}) {
|
|
|
1326
1326
|
focus: ""
|
|
1327
1327
|
}, a.mount = !d.isValid || !!u.keepIsValid || !!u.keepDirtyValues || !r.shouldUnregister && !J(v), a.watch = !!r.shouldUnregister, m.state.next({
|
|
1328
1328
|
submitCount: u.keepSubmitCount ? t.submitCount : 0,
|
|
1329
|
-
isDirty: S ? !1 : u.keepDirty ? t.isDirty : !!(u.keepDefaultValues && !
|
|
1329
|
+
isDirty: S ? !1 : u.keepDirty ? t.isDirty : !!(u.keepDefaultValues && !ie(l, s)),
|
|
1330
1330
|
isSubmitted: u.keepIsSubmitted ? t.isSubmitted : !1,
|
|
1331
1331
|
dirtyFields: S ? {} : u.keepDirtyValues ? u.keepDefaultValues && n ? we(s, n) : t.dirtyFields : u.keepDefaultValues && l ? we(s, l) : u.keepDirty ? t.dirtyFields : {},
|
|
1332
1332
|
touchedFields: u.keepTouched ? t.touchedFields : {},
|
|
@@ -1335,13 +1335,13 @@ function wo(e = {}) {
|
|
|
1335
1335
|
isSubmitting: !1,
|
|
1336
1336
|
defaultValues: s
|
|
1337
1337
|
});
|
|
1338
|
-
}, Et = (l, u) => zt(
|
|
1338
|
+
}, Et = (l, u) => zt(le(l) ? l(n) : l, u), Br = (l, u = {}) => {
|
|
1339
1339
|
const y = w(o, l), k = y && y._f;
|
|
1340
1340
|
if (k) {
|
|
1341
1341
|
const S = k.refs ? k.refs[0] : k.ref;
|
|
1342
|
-
S.focus && (S.focus(), u.shouldSelect &&
|
|
1342
|
+
S.focus && (S.focus(), u.shouldSelect && le(S.select) && S.select());
|
|
1343
1343
|
}
|
|
1344
|
-
},
|
|
1344
|
+
}, Dr = (l) => {
|
|
1345
1345
|
t = {
|
|
1346
1346
|
...t,
|
|
1347
1347
|
...l
|
|
@@ -1364,7 +1364,7 @@ function wo(e = {}) {
|
|
|
1364
1364
|
_setErrors: F,
|
|
1365
1365
|
_getFieldArray: A,
|
|
1366
1366
|
_reset: zt,
|
|
1367
|
-
_resetDefaultValues: () =>
|
|
1367
|
+
_resetDefaultValues: () => le(r.defaultValues) && r.defaultValues().then((l) => {
|
|
1368
1368
|
Et(l, r.resetOptions), m.state.next({
|
|
1369
1369
|
isLoading: !1
|
|
1370
1370
|
});
|
|
@@ -1412,7 +1412,7 @@ function wo(e = {}) {
|
|
|
1412
1412
|
register: qe,
|
|
1413
1413
|
handleSubmit: Vt,
|
|
1414
1414
|
watch: $r,
|
|
1415
|
-
setValue:
|
|
1415
|
+
setValue: K,
|
|
1416
1416
|
getValues: Ae,
|
|
1417
1417
|
reset: Et,
|
|
1418
1418
|
resetField: Pr,
|
|
@@ -1431,7 +1431,7 @@ function ko(e = {}) {
|
|
|
1431
1431
|
const r = E.useRef(void 0), t = E.useRef(void 0), [o, s] = E.useState({
|
|
1432
1432
|
isDirty: !1,
|
|
1433
1433
|
isValidating: !1,
|
|
1434
|
-
isLoading:
|
|
1434
|
+
isLoading: le(e.defaultValues),
|
|
1435
1435
|
isSubmitted: !1,
|
|
1436
1436
|
isSubmitting: !1,
|
|
1437
1437
|
isSubmitSuccessful: !1,
|
|
@@ -1443,14 +1443,14 @@ function ko(e = {}) {
|
|
|
1443
1443
|
errors: e.errors || {},
|
|
1444
1444
|
disabled: e.disabled || !1,
|
|
1445
1445
|
isReady: !1,
|
|
1446
|
-
defaultValues:
|
|
1446
|
+
defaultValues: le(e.defaultValues) ? void 0 : e.defaultValues
|
|
1447
1447
|
});
|
|
1448
1448
|
if (!r.current)
|
|
1449
1449
|
if (e.formControl)
|
|
1450
1450
|
r.current = {
|
|
1451
1451
|
...e.formControl,
|
|
1452
1452
|
formState: o
|
|
1453
|
-
}, e.defaultValues && !
|
|
1453
|
+
}, e.defaultValues && !le(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
1454
1454
|
else {
|
|
1455
1455
|
const { formControl: a, ...i } = wo(e);
|
|
1456
1456
|
r.current = {
|
|
@@ -1485,7 +1485,7 @@ function ko(e = {}) {
|
|
|
1485
1485
|
});
|
|
1486
1486
|
}
|
|
1487
1487
|
}, [n, o.isDirty]), E.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();
|
|
@@ -1692,13 +1692,13 @@ function Bo(e, r, t) {
|
|
|
1692
1692
|
throw new Error("Invalid input: not a Zod schema");
|
|
1693
1693
|
}
|
|
1694
1694
|
const kr = E.createContext(null);
|
|
1695
|
-
function
|
|
1695
|
+
function Do() {
|
|
1696
1696
|
const e = E.useContext(kr);
|
|
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 Mo({
|
|
1702
1702
|
onSubmit: e,
|
|
1703
1703
|
children: r,
|
|
1704
1704
|
schema: t,
|
|
@@ -1717,7 +1717,7 @@ function Do({
|
|
|
1717
1717
|
}), d = c.handleSubmit(e);
|
|
1718
1718
|
return /* @__PURE__ */ p(kr.Provider, { value: c, children: /* @__PURE__ */ p("form", { ...f, className: a, style: i, onSubmit: d, children: typeof r == "function" ? r(c) : r }) });
|
|
1719
1719
|
}
|
|
1720
|
-
const
|
|
1720
|
+
const Yn = Mo, Ro = "FormError-module__formError___kaUBn", Oo = {
|
|
1721
1721
|
formError: Ro
|
|
1722
1722
|
}, To = ({
|
|
1723
1723
|
// Color prop
|
|
@@ -1730,16 +1730,16 @@ const Xn = Do, Ro = "FormError-module__formError___kaUBn", Oo = {
|
|
|
1730
1730
|
// Element-specific props
|
|
1731
1731
|
divProps: s
|
|
1732
1732
|
}) => {
|
|
1733
|
-
const n =
|
|
1733
|
+
const n = I(), a = {
|
|
1734
1734
|
"--form-error-margin-top": `calc(${n.fonts.rhythm} * 0.17)`,
|
|
1735
1735
|
color: e || n.colors.error,
|
|
1736
1736
|
...o
|
|
1737
1737
|
// Top level style prop overrides
|
|
1738
1738
|
}, i = [Oo.formError, t].filter(Boolean).join(" ");
|
|
1739
1739
|
return /* @__PURE__ */ p("div", { ...s, className: i, style: a, role: "alert", "aria-live": "polite", children: r });
|
|
1740
|
-
},
|
|
1741
|
-
formGroup:
|
|
1742
|
-
inputWrapper:
|
|
1740
|
+
}, Ho = "FormGroup-module__formGroup___aVI-B", Io = "FormGroup-module__inputWrapper___429QE", jo = "FormGroup-module__indented___t61iz", Uo = "FormGroup-module__disabled___W-tJ0", Wo = "FormGroup-module__required___mO3xA", Se = {
|
|
1741
|
+
formGroup: Ho,
|
|
1742
|
+
inputWrapper: Io,
|
|
1743
1743
|
indented: jo,
|
|
1744
1744
|
disabled: Uo,
|
|
1745
1745
|
required: Wo
|
|
@@ -1763,7 +1763,7 @@ const Xn = Do, Ro = "FormError-module__formError___kaUBn", Oo = {
|
|
|
1763
1763
|
// Element-specific props
|
|
1764
1764
|
divProps: h
|
|
1765
1765
|
}) => {
|
|
1766
|
-
const m =
|
|
1766
|
+
const m = I(), C = [
|
|
1767
1767
|
Se.formGroup,
|
|
1768
1768
|
r ? Se.error : "",
|
|
1769
1769
|
e ? Se.disabled : "",
|
|
@@ -1779,10 +1779,10 @@ const Xn = Do, Ro = "FormError-module__formError___kaUBn", Oo = {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
return x;
|
|
1781
1781
|
});
|
|
1782
|
-
return /* @__PURE__ */
|
|
1783
|
-
n && /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ H("div", { ...h, className: C, style: b, children: [
|
|
1783
|
+
n && /* @__PURE__ */ H(yt, { htmlFor: s, disabled: e, error: r, ...i, children: [
|
|
1784
1784
|
n,
|
|
1785
|
-
t && /* @__PURE__ */
|
|
1785
|
+
t && /* @__PURE__ */ H("span", { className: Se.required, "aria-label": "required", children: [
|
|
1786
1786
|
" ",
|
|
1787
1787
|
"*"
|
|
1788
1788
|
] })
|
|
@@ -1803,7 +1803,7 @@ function ge({
|
|
|
1803
1803
|
indent: f,
|
|
1804
1804
|
labelProps: c
|
|
1805
1805
|
}) {
|
|
1806
|
-
const { control: d } =
|
|
1806
|
+
const { control: d } = Do(), {
|
|
1807
1807
|
field: h,
|
|
1808
1808
|
fieldState: { error: m }
|
|
1809
1809
|
} = io({
|
|
@@ -1839,7 +1839,7 @@ const Go = "Input-module__input___WjT81", Zo = "Input-module__sizeSmall___NFvsi"
|
|
|
1839
1839
|
input: Go,
|
|
1840
1840
|
sizeSmall: Zo,
|
|
1841
1841
|
sizeLarge: Qo
|
|
1842
|
-
},
|
|
1842
|
+
}, Ko = ({
|
|
1843
1843
|
color: e = "#000",
|
|
1844
1844
|
disabled: r = !1,
|
|
1845
1845
|
fontSize: t = "1em",
|
|
@@ -1850,7 +1850,7 @@ const Go = "Input-module__input___WjT81", Zo = "Input-module__sizeSmall___NFvsi"
|
|
|
1850
1850
|
fontSize: t,
|
|
1851
1851
|
opacity: r ? 0.3 : 1,
|
|
1852
1852
|
placeholderOpacity: o
|
|
1853
|
-
}),
|
|
1853
|
+
}), Xo = ({
|
|
1854
1854
|
// State props
|
|
1855
1855
|
disabled: e = !1,
|
|
1856
1856
|
error: r = !1,
|
|
@@ -1874,7 +1874,7 @@ const Go = "Input-module__input___WjT81", Zo = "Input-module__sizeSmall___NFvsi"
|
|
|
1874
1874
|
// Element-specific props
|
|
1875
1875
|
inputProps: b
|
|
1876
1876
|
}) => {
|
|
1877
|
-
const _ =
|
|
1877
|
+
const _ = I(), x = _.colors.error, V = r ? x : t || _.colors.primary, g = Ko({
|
|
1878
1878
|
color: V,
|
|
1879
1879
|
disabled: e,
|
|
1880
1880
|
fontSize: _.fonts.size,
|
|
@@ -1913,7 +1913,7 @@ const Go = "Input-module__input___WjT81", Zo = "Input-module__sizeSmall___NFvsi"
|
|
|
1913
1913
|
}
|
|
1914
1914
|
);
|
|
1915
1915
|
};
|
|
1916
|
-
function
|
|
1916
|
+
function ea({
|
|
1917
1917
|
name: e,
|
|
1918
1918
|
label: r,
|
|
1919
1919
|
required: t,
|
|
@@ -1934,7 +1934,7 @@ function Kn({
|
|
|
1934
1934
|
className: n,
|
|
1935
1935
|
style: a,
|
|
1936
1936
|
children: ({ value: f, onChange: c, onBlur: d, name: h, error: m }) => /* @__PURE__ */ p(
|
|
1937
|
-
|
|
1937
|
+
Xo,
|
|
1938
1938
|
{
|
|
1939
1939
|
...i,
|
|
1940
1940
|
name: h,
|
|
@@ -1984,7 +1984,7 @@ const Jo = "Textarea-module__textarea___Z-y6g", Yo = "Textarea-module__sizeSmall
|
|
|
1984
1984
|
// Element-specific props
|
|
1985
1985
|
textareaProps: b
|
|
1986
1986
|
}) => {
|
|
1987
|
-
const _ =
|
|
1987
|
+
const _ = I(), x = _.colors.error, V = r ? x : t || _.colors.primary, g = ts({
|
|
1988
1988
|
color: V,
|
|
1989
1989
|
disabled: e,
|
|
1990
1990
|
placeholderOpacity: i
|
|
@@ -2022,7 +2022,7 @@ const Jo = "Textarea-module__textarea___Z-y6g", Yo = "Textarea-module__sizeSmall
|
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
};
|
|
2025
|
-
function
|
|
2025
|
+
function ta({
|
|
2026
2026
|
name: e,
|
|
2027
2027
|
label: r,
|
|
2028
2028
|
required: t,
|
|
@@ -2110,7 +2110,7 @@ const os = "Select-module__select___cjdcr", ss = "Select-module__sizeSmall___i1q
|
|
|
2110
2110
|
// Element-specific props
|
|
2111
2111
|
selectProps: C
|
|
2112
2112
|
}) => {
|
|
2113
|
-
const b =
|
|
2113
|
+
const b = I(), _ = b.colors.error, x = r ? _ : t || b.colors.primary, V = as({
|
|
2114
2114
|
color: x,
|
|
2115
2115
|
disabled: e
|
|
2116
2116
|
}), g = {
|
|
@@ -2135,7 +2135,7 @@ const os = "Select-module__select___cjdcr", ss = "Select-module__sizeSmall___i1q
|
|
|
2135
2135
|
o === "small" ? tt.sizeSmall : tt.sizeLarge,
|
|
2136
2136
|
h
|
|
2137
2137
|
].filter(Boolean).join(" ");
|
|
2138
|
-
return /* @__PURE__ */
|
|
2138
|
+
return /* @__PURE__ */ H(
|
|
2139
2139
|
"select",
|
|
2140
2140
|
{
|
|
2141
2141
|
...C,
|
|
@@ -2154,7 +2154,7 @@ const os = "Select-module__select___cjdcr", ss = "Select-module__sizeSmall___i1q
|
|
|
2154
2154
|
}
|
|
2155
2155
|
);
|
|
2156
2156
|
};
|
|
2157
|
-
function
|
|
2157
|
+
function ra({
|
|
2158
2158
|
name: e,
|
|
2159
2159
|
label: r,
|
|
2160
2160
|
required: t,
|
|
@@ -2190,7 +2190,7 @@ function Yn({
|
|
|
2190
2190
|
}
|
|
2191
2191
|
);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function oa({
|
|
2194
2194
|
name: e,
|
|
2195
2195
|
required: r,
|
|
2196
2196
|
rules: t,
|
|
@@ -2251,7 +2251,7 @@ const ls = "Radio-module__container___AQxhk", cs = "Radio-module__svg___zl5kF",
|
|
|
2251
2251
|
// Element-specific props
|
|
2252
2252
|
divProps: h
|
|
2253
2253
|
}) => {
|
|
2254
|
-
const m =
|
|
2254
|
+
const m = I(), C = n || nr(), b = m.colors.error, _ = o ? b : e || m.colors.primary, x = ds({
|
|
2255
2255
|
color: _,
|
|
2256
2256
|
disabled: t
|
|
2257
2257
|
}), V = (B) => {
|
|
@@ -2270,8 +2270,8 @@ const ls = "Radio-module__container___AQxhk", cs = "Radio-module__svg___zl5kF",
|
|
|
2270
2270
|
stroke: x.radioColor
|
|
2271
2271
|
}, N = {
|
|
2272
2272
|
fill: x.radioColor
|
|
2273
|
-
},
|
|
2274
|
-
return /* @__PURE__ */
|
|
2273
|
+
}, D = [rt.container, c].filter(Boolean).join(" ");
|
|
2274
|
+
return /* @__PURE__ */ H("div", { ...h, className: D, style: g, children: [
|
|
2275
2275
|
/* @__PURE__ */ p(
|
|
2276
2276
|
"input",
|
|
2277
2277
|
{
|
|
@@ -2284,7 +2284,7 @@ const ls = "Radio-module__container___AQxhk", cs = "Radio-module__svg___zl5kF",
|
|
|
2284
2284
|
type: "radio"
|
|
2285
2285
|
}
|
|
2286
2286
|
),
|
|
2287
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ H(
|
|
2288
2288
|
"svg",
|
|
2289
2289
|
{
|
|
2290
2290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2312,7 +2312,7 @@ const ls = "Radio-module__container___AQxhk", cs = "Radio-module__svg___zl5kF",
|
|
|
2312
2312
|
)
|
|
2313
2313
|
] });
|
|
2314
2314
|
};
|
|
2315
|
-
function
|
|
2315
|
+
function sa({
|
|
2316
2316
|
name: e,
|
|
2317
2317
|
label: r,
|
|
2318
2318
|
required: t,
|
|
@@ -2346,7 +2346,7 @@ function ta({
|
|
|
2346
2346
|
}
|
|
2347
2347
|
);
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function na({
|
|
2350
2350
|
name: e,
|
|
2351
2351
|
label: r,
|
|
2352
2352
|
required: t,
|
|
@@ -2386,7 +2386,7 @@ function ra({
|
|
|
2386
2386
|
}
|
|
2387
2387
|
);
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function aa({
|
|
2390
2390
|
name: e,
|
|
2391
2391
|
label: r,
|
|
2392
2392
|
required: t,
|
|
@@ -2454,7 +2454,7 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2454
2454
|
visible: t,
|
|
2455
2455
|
border: o
|
|
2456
2456
|
}) => {
|
|
2457
|
-
const s =
|
|
2457
|
+
const s = I(), n = e ? "1.5em" : "2em";
|
|
2458
2458
|
return {
|
|
2459
2459
|
"--hamburger-border-radius": (o == null ? void 0 : o.radius) || s.border.radius,
|
|
2460
2460
|
color: r || "inherit",
|
|
@@ -2484,7 +2484,7 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2484
2484
|
visible: r,
|
|
2485
2485
|
border: n
|
|
2486
2486
|
}), d = [ze.hamburger, s ? ze.open : "", i].filter(Boolean).join(" ");
|
|
2487
|
-
return /* @__PURE__ */
|
|
2487
|
+
return /* @__PURE__ */ H(
|
|
2488
2488
|
"button",
|
|
2489
2489
|
{
|
|
2490
2490
|
ref: o,
|
|
@@ -2500,7 +2500,7 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
);
|
|
2503
|
-
}, ps = "Header-module__header___RUooH", gs = "Header-module__container___t68M9",
|
|
2503
|
+
}, ps = "Header-module__header___RUooH", gs = "Header-module__container___t68M9", Kt = {
|
|
2504
2504
|
header: ps,
|
|
2505
2505
|
container: gs
|
|
2506
2506
|
}, vs = ({
|
|
@@ -2516,7 +2516,7 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2516
2516
|
backgroundColor: c,
|
|
2517
2517
|
color: d
|
|
2518
2518
|
} = {}) => {
|
|
2519
|
-
const h =
|
|
2519
|
+
const h = I();
|
|
2520
2520
|
return {
|
|
2521
2521
|
"--header-max-width": r || h.layout.maxWidth,
|
|
2522
2522
|
"--header-min-width": t,
|
|
@@ -2528,9 +2528,9 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2528
2528
|
backgroundColor: c,
|
|
2529
2529
|
color: d
|
|
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);
|
|
@@ -2559,7 +2559,7 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2559
2559
|
// Element-specific props
|
|
2560
2560
|
headerProps: _
|
|
2561
2561
|
}) => {
|
|
2562
|
-
const x =
|
|
2562
|
+
const x = I(), V = d || x.breakpoints.sm, { maxWidth: g, unit: F } = $e(V), z = ue(`(max-width: ${g}${F})`), N = vs({
|
|
2563
2563
|
isSmallScreen: z,
|
|
2564
2564
|
maxWidth: t,
|
|
2565
2565
|
minWidth: o,
|
|
@@ -2571,11 +2571,11 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2571
2571
|
gap: c,
|
|
2572
2572
|
backgroundColor: e,
|
|
2573
2573
|
color: r
|
|
2574
|
-
}),
|
|
2575
|
-
return /* @__PURE__ */ p("header", { ..._, className:
|
|
2574
|
+
}), D = [Kt.container, C].filter(Boolean).join(" "), B = h ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
|
|
2575
|
+
return /* @__PURE__ */ p("header", { ..._, className: Kt.header, style: B, children: /* @__PURE__ */ p(
|
|
2576
2576
|
"div",
|
|
2577
2577
|
{
|
|
2578
|
-
className:
|
|
2578
|
+
className: D,
|
|
2579
2579
|
style: { ...N, ...b },
|
|
2580
2580
|
children: m
|
|
2581
2581
|
}
|
|
@@ -2586,7 +2586,7 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2586
2586
|
navHeader: ks,
|
|
2587
2587
|
compact: xs,
|
|
2588
2588
|
navDesktop: Cs
|
|
2589
|
-
}, Fs = "Popover-module__triggerWrapper___dZpf6", Vs = "Popover-module__popup___JAvrb", zs = "Popover-module__panelOverlay___1xDU5", Es = "Popover-module__panelOverlayVisible___BgtIQ", Ns = "Popover-module__backdrop___e8qHL", $s = "Popover-module__panel___eUJ2E", Ls = "Popover-module__panelLeft___9nSLp", As = "Popover-module__panelRight___OrQfl", Ps = "Popover-module__panelOpen___hhvV-", Bs = "Popover-module__panelCloseButton___kALaN",
|
|
2589
|
+
}, Fs = "Popover-module__triggerWrapper___dZpf6", Vs = "Popover-module__popup___JAvrb", zs = "Popover-module__panelOverlay___1xDU5", Es = "Popover-module__panelOverlayVisible___BgtIQ", Ns = "Popover-module__backdrop___e8qHL", $s = "Popover-module__panel___eUJ2E", Ls = "Popover-module__panelLeft___9nSLp", As = "Popover-module__panelRight___OrQfl", Ps = "Popover-module__panelOpen___hhvV-", Bs = "Popover-module__panelCloseButton___kALaN", de = {
|
|
2590
2590
|
triggerWrapper: Fs,
|
|
2591
2591
|
popup: Vs,
|
|
2592
2592
|
panelOverlay: zs,
|
|
@@ -2598,11 +2598,11 @@ const fs = "Hamburger-module__hamburger___Tf4-t", ms = "Hamburger-module__line__
|
|
|
2598
2598
|
panelOpen: Ps,
|
|
2599
2599
|
panelCloseButton: Bs
|
|
2600
2600
|
};
|
|
2601
|
-
function
|
|
2601
|
+
function Ds(e, r) {
|
|
2602
2602
|
const [t, o] = Y(!1), [s, n] = Y(!1);
|
|
2603
|
-
|
|
2603
|
+
ce(() => {
|
|
2604
2604
|
r === "panel" && (e ? o(!0) : n(!1));
|
|
2605
|
-
}, [e, r]),
|
|
2605
|
+
}, [e, r]), ce(() => {
|
|
2606
2606
|
if (r !== "panel" || !t || !e) return;
|
|
2607
2607
|
let i, f;
|
|
2608
2608
|
return i = requestAnimationFrame(() => {
|
|
@@ -2616,7 +2616,7 @@ function Ms(e, r) {
|
|
|
2616
2616
|
}, [s]);
|
|
2617
2617
|
return { panelMounted: t, panelVisible: s, handleTransitionEnd: a };
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function Ms(e, r, t, o) {
|
|
2620
2620
|
const [s, n] = Y({}), a = xe(() => {
|
|
2621
2621
|
if (r !== "popup" || !t.current) return;
|
|
2622
2622
|
const i = t.current.getBoundingClientRect(), f = {
|
|
@@ -2630,9 +2630,9 @@ function Ds(e, r, t, o) {
|
|
|
2630
2630
|
transform: "translateX(-50%)"
|
|
2631
2631
|
} : { ...f, left: i.right, transform: "translateX(-100%)" });
|
|
2632
2632
|
}, [r, o, t]);
|
|
2633
|
-
return
|
|
2633
|
+
return ce(() => {
|
|
2634
2634
|
e && r === "popup" && a();
|
|
2635
|
-
}, [e, r, a]),
|
|
2635
|
+
}, [e, r, a]), ce(() => {
|
|
2636
2636
|
if (!(!e || r !== "popup"))
|
|
2637
2637
|
return window.addEventListener("scroll", a, !0), window.addEventListener("resize", a), () => {
|
|
2638
2638
|
window.removeEventListener("scroll", a, !0), window.removeEventListener("resize", a);
|
|
@@ -2655,38 +2655,38 @@ const Cr = ({
|
|
|
2655
2655
|
style: m,
|
|
2656
2656
|
popoverProps: C
|
|
2657
2657
|
}) => {
|
|
2658
|
-
const b =
|
|
2658
|
+
const b = I(), _ = o !== void 0, [x, V] = Y(!1), g = _ ? o : x, F = Fe(null), z = Fe(null), N = xe(
|
|
2659
2659
|
(R) => {
|
|
2660
2660
|
_ || V(R), s == null || s(R);
|
|
2661
2661
|
},
|
|
2662
2662
|
[_, s]
|
|
2663
|
-
),
|
|
2664
|
-
|
|
2663
|
+
), D = xe(() => N(!g), [g, N]), B = xe(() => N(!1), [N]), { panelMounted: Z, panelVisible: P, handleTransitionEnd: Q } = Ds(g, t), { popupPositionStyle: W } = Ms(g, t, F, n);
|
|
2664
|
+
ce(() => {
|
|
2665
2665
|
if (!g || t !== "popup") return;
|
|
2666
|
-
const R = (
|
|
2666
|
+
const R = (K) => {
|
|
2667
2667
|
var te, me;
|
|
2668
|
-
(te = z.current) != null && te.contains(
|
|
2668
|
+
(te = z.current) != null && te.contains(K.target) || (me = F.current) != null && me.contains(K.target) || B();
|
|
2669
2669
|
};
|
|
2670
2670
|
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
2671
|
-
}, [g, t, B]),
|
|
2671
|
+
}, [g, t, B]), ce(() => {
|
|
2672
2672
|
if (!g) return;
|
|
2673
|
-
const R = (
|
|
2674
|
-
|
|
2673
|
+
const R = (K) => {
|
|
2674
|
+
K.key === "Escape" && B();
|
|
2675
2675
|
};
|
|
2676
2676
|
return document.addEventListener("keydown", R), () => document.removeEventListener("keydown", R);
|
|
2677
|
-
}, [g, B]),
|
|
2677
|
+
}, [g, B]), ce(() => {
|
|
2678
2678
|
if (!g || t !== "panel") return;
|
|
2679
2679
|
const R = window.scrollY;
|
|
2680
2680
|
return document.body.style.position = "fixed", document.body.style.top = `-${R}px`, document.body.style.width = "100%", () => {
|
|
2681
2681
|
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, R);
|
|
2682
2682
|
};
|
|
2683
2683
|
}, [g, t]);
|
|
2684
|
-
const L = e ? typeof e == "function" ? e({ onClick:
|
|
2684
|
+
const L = e ? typeof e == "function" ? e({ onClick: D, isOpen: g }) : (
|
|
2685
2685
|
// Non-function trigger: wrap in a span that delegates clicks to the trigger element.
|
|
2686
2686
|
// The wrapped element (e.g. <button>) handles its own keyboard accessibility.
|
|
2687
2687
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
2688
|
-
/* @__PURE__ */ p("span", { onClick:
|
|
2689
|
-
) : null, A = e ? /* @__PURE__ */ p("span", { ref: F, className:
|
|
2688
|
+
/* @__PURE__ */ p("span", { onClick: D, style: { cursor: "pointer", display: "contents" }, children: e })
|
|
2689
|
+
) : null, A = e ? /* @__PURE__ */ p("span", { ref: F, className: de.triggerWrapper, children: L }) : null;
|
|
2690
2690
|
if (t === "popup") {
|
|
2691
2691
|
const R = {
|
|
2692
2692
|
backgroundColor: b.colors.secondary,
|
|
@@ -2695,14 +2695,14 @@ const Cr = ({
|
|
|
2695
2695
|
...W,
|
|
2696
2696
|
...m
|
|
2697
2697
|
};
|
|
2698
|
-
return /* @__PURE__ */
|
|
2698
|
+
return /* @__PURE__ */ H(Ce, { children: [
|
|
2699
2699
|
A,
|
|
2700
2700
|
g && at(
|
|
2701
2701
|
/* @__PURE__ */ p(
|
|
2702
2702
|
"div",
|
|
2703
2703
|
{
|
|
2704
2704
|
ref: z,
|
|
2705
|
-
className: [
|
|
2705
|
+
className: [de.popup, h].filter(Boolean).join(" "),
|
|
2706
2706
|
style: R,
|
|
2707
2707
|
...C,
|
|
2708
2708
|
children: r
|
|
@@ -2712,39 +2712,39 @@ const Cr = ({
|
|
|
2712
2712
|
)
|
|
2713
2713
|
] });
|
|
2714
2714
|
}
|
|
2715
|
-
const
|
|
2715
|
+
const M = {
|
|
2716
2716
|
width: i,
|
|
2717
2717
|
backgroundColor: b.colors.secondary,
|
|
2718
2718
|
...m
|
|
2719
2719
|
};
|
|
2720
|
-
return /* @__PURE__ */
|
|
2720
|
+
return /* @__PURE__ */ H(Ce, { children: [
|
|
2721
2721
|
A,
|
|
2722
2722
|
Z && at(
|
|
2723
|
-
/* @__PURE__ */
|
|
2723
|
+
/* @__PURE__ */ H(
|
|
2724
2724
|
"div",
|
|
2725
2725
|
{
|
|
2726
|
-
className: [
|
|
2726
|
+
className: [de.panelOverlay, P ? de.panelOverlayVisible : ""].filter(Boolean).join(" "),
|
|
2727
2727
|
children: [
|
|
2728
2728
|
/* @__PURE__ */ p(
|
|
2729
2729
|
"div",
|
|
2730
2730
|
{
|
|
2731
|
-
className:
|
|
2731
|
+
className: de.backdrop,
|
|
2732
2732
|
style: { backgroundColor: P ? f : "transparent" },
|
|
2733
2733
|
onClick: d ? B : void 0,
|
|
2734
2734
|
role: "presentation"
|
|
2735
2735
|
}
|
|
2736
2736
|
),
|
|
2737
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ H(
|
|
2738
2738
|
"div",
|
|
2739
2739
|
{
|
|
2740
2740
|
ref: z,
|
|
2741
2741
|
className: [
|
|
2742
|
-
|
|
2743
|
-
a === "right" ?
|
|
2744
|
-
P ?
|
|
2742
|
+
de.panel,
|
|
2743
|
+
a === "right" ? de.panelRight : de.panelLeft,
|
|
2744
|
+
P ? de.panelOpen : "",
|
|
2745
2745
|
h
|
|
2746
2746
|
].filter(Boolean).join(" "),
|
|
2747
|
-
style:
|
|
2747
|
+
style: M,
|
|
2748
2748
|
role: "dialog",
|
|
2749
2749
|
"aria-modal": "true",
|
|
2750
2750
|
onTransitionEnd: Q,
|
|
@@ -2753,7 +2753,7 @@ const Cr = ({
|
|
|
2753
2753
|
!c && /* @__PURE__ */ p(
|
|
2754
2754
|
"button",
|
|
2755
2755
|
{
|
|
2756
|
-
className:
|
|
2756
|
+
className: de.panelCloseButton,
|
|
2757
2757
|
onClick: B,
|
|
2758
2758
|
"aria-label": "Close panel",
|
|
2759
2759
|
type: "button",
|
|
@@ -2796,7 +2796,7 @@ const Cr = ({
|
|
|
2796
2796
|
mobile: t,
|
|
2797
2797
|
desktop: o
|
|
2798
2798
|
}) => {
|
|
2799
|
-
const s =
|
|
2799
|
+
const s = I();
|
|
2800
2800
|
return je(() => e ? {
|
|
2801
2801
|
navStyles: {
|
|
2802
2802
|
...(t == null ? void 0 : t.backgroundColor) && { backgroundColor: t.backgroundColor },
|
|
@@ -2849,19 +2849,19 @@ const Cr = ({
|
|
|
2849
2849
|
...s == null ? void 0 : s.hamburgerProps
|
|
2850
2850
|
}
|
|
2851
2851
|
),
|
|
2852
|
-
children: /* @__PURE__ */
|
|
2852
|
+
children: /* @__PURE__ */ H("nav", { ...c, className: i, style: C, onClickCapture: h, children: [
|
|
2853
2853
|
/* @__PURE__ */ p("div", { className: ke.navHeader }),
|
|
2854
2854
|
typeof d == "function" ? d({ setOpen: r }) : d
|
|
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 }), ia = ({
|
|
2865
2865
|
mobile: e,
|
|
2866
2866
|
desktop: r,
|
|
2867
2867
|
breakpoints: t,
|
|
@@ -2871,12 +2871,12 @@ const Cr = ({
|
|
|
2871
2871
|
navProps: a,
|
|
2872
2872
|
disableMobileTreatment: i = !1
|
|
2873
2873
|
}) => {
|
|
2874
|
-
const [f, c] = Y(!1), d = Fe(null), m = { ...
|
|
2874
|
+
const [f, c] = Y(!1), d = Fe(null), m = { ...I().breakpoints, ...t }, { maxWidth: C, unit: b } = $e(m.md), { maxWidth: _, unit: x } = $e(m.sm), V = ue(`(max-width: ${C}${b})`), g = ue(`(max-width: ${_}${x})`), F = i ? !1 : V, z = i ? !1 : g, { navStyles: N } = Rs({
|
|
2875
2875
|
isMobile: F,
|
|
2876
2876
|
isCompact: z,
|
|
2877
2877
|
mobile: e,
|
|
2878
2878
|
desktop: r
|
|
2879
|
-
}),
|
|
2879
|
+
}), D = { ...N, ...n }, B = (Q) => {
|
|
2880
2880
|
const W = Q.target;
|
|
2881
2881
|
W.closest("[data-navdropdown-trigger]") || W.closest("a, button") && c(!1);
|
|
2882
2882
|
}, Z = [
|
|
@@ -2896,23 +2896,23 @@ const Cr = ({
|
|
|
2896
2896
|
panelWidth: e == null ? void 0 : e.panelWidth,
|
|
2897
2897
|
side: e == null ? void 0 : e.side,
|
|
2898
2898
|
navClassName: Z,
|
|
2899
|
-
cssProps:
|
|
2899
|
+
cssProps: D,
|
|
2900
2900
|
navProps: a,
|
|
2901
2901
|
content: (e == null ? void 0 : e.content) || o,
|
|
2902
2902
|
onNavClick: B
|
|
2903
2903
|
}
|
|
2904
2904
|
) : /* @__PURE__ */ p(
|
|
2905
|
-
|
|
2905
|
+
Hs,
|
|
2906
2906
|
{
|
|
2907
2907
|
setOpen: c,
|
|
2908
2908
|
navClassName: P,
|
|
2909
|
-
cssProps:
|
|
2909
|
+
cssProps: D,
|
|
2910
2910
|
navProps: a,
|
|
2911
2911
|
content: (r == null ? void 0 : r.content) || o
|
|
2912
2912
|
}
|
|
2913
2913
|
) });
|
|
2914
|
-
},
|
|
2915
|
-
trigger:
|
|
2914
|
+
}, Is = "NavDropdown-module__trigger___1PQZp", js = "NavDropdown-module__chevron___ZLAV7", Us = "NavDropdown-module__chevronOpen___9mgjr", ot = {
|
|
2915
|
+
trigger: Is,
|
|
2916
2916
|
chevron: js,
|
|
2917
2917
|
chevronOpen: Us
|
|
2918
2918
|
};
|
|
@@ -2921,7 +2921,7 @@ function Fr({
|
|
|
2921
2921
|
hoverOpacity: r = 0.5,
|
|
2922
2922
|
color: t
|
|
2923
2923
|
} = {}) {
|
|
2924
|
-
const o =
|
|
2924
|
+
const o = I(), [s, n] = Y(!1);
|
|
2925
2925
|
return {
|
|
2926
2926
|
style: {
|
|
2927
2927
|
color: t || o.fonts.color,
|
|
@@ -2933,7 +2933,7 @@ function Fr({
|
|
|
2933
2933
|
onMouseLeave: () => n(!1)
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
|
-
const
|
|
2936
|
+
const la = ({
|
|
2937
2937
|
label: e,
|
|
2938
2938
|
children: r,
|
|
2939
2939
|
dropdownVariant: t = "popup",
|
|
@@ -2958,7 +2958,7 @@ const na = ({
|
|
|
2958
2958
|
panelWidth: s,
|
|
2959
2959
|
isOpen: d,
|
|
2960
2960
|
onOpenChange: h,
|
|
2961
|
-
trigger: ({ onClick: _ }) => /* @__PURE__ */
|
|
2961
|
+
trigger: ({ onClick: _ }) => /* @__PURE__ */ H(
|
|
2962
2962
|
"button",
|
|
2963
2963
|
{
|
|
2964
2964
|
type: "button",
|
|
@@ -3004,7 +3004,7 @@ const na = ({
|
|
|
3004
3004
|
children: r
|
|
3005
3005
|
}
|
|
3006
3006
|
);
|
|
3007
|
-
},
|
|
3007
|
+
}, ca = ({ isActive: e, hoverOpacity: r, color: t, children: o }) => {
|
|
3008
3008
|
const { style: s, onMouseEnter: n, onMouseLeave: a } = Fr({
|
|
3009
3009
|
isActive: e,
|
|
3010
3010
|
hoverOpacity: r,
|
|
@@ -3033,7 +3033,7 @@ const na = ({
|
|
|
3033
3033
|
// Element-specific props
|
|
3034
3034
|
divProps: n
|
|
3035
3035
|
}) => {
|
|
3036
|
-
const a =
|
|
3036
|
+
const a = I(), i = e || a.colors.primary, f = r || a.colors.secondary, c = /* @__PURE__ */ p(
|
|
3037
3037
|
"div",
|
|
3038
3038
|
{
|
|
3039
3039
|
...t ? void 0 : n,
|
|
@@ -3052,7 +3052,7 @@ const na = ({
|
|
|
3052
3052
|
borderTop: `0.1em solid ${f}`
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
3055
|
-
), d = /* @__PURE__ */
|
|
3055
|
+
), d = /* @__PURE__ */ H(Ce, { children: [
|
|
3056
3056
|
c,
|
|
3057
3057
|
/* @__PURE__ */ p("style", { children: `
|
|
3058
3058
|
@keyframes spin {
|
|
@@ -3078,21 +3078,21 @@ const na = ({
|
|
|
3078
3078
|
children: d
|
|
3079
3079
|
}
|
|
3080
3080
|
) : d;
|
|
3081
|
-
},
|
|
3081
|
+
}, ua = ({ children: e, loadingComponent: r }) => {
|
|
3082
3082
|
const [t, o] = Y(!1);
|
|
3083
|
-
return
|
|
3083
|
+
return ce(() => {
|
|
3084
3084
|
requestAnimationFrame(() => {
|
|
3085
3085
|
o(!0);
|
|
3086
3086
|
});
|
|
3087
3087
|
}, []), t ? /* @__PURE__ */ p(Ce, { children: e }) : r || /* @__PURE__ */ p(Vr, {});
|
|
3088
|
-
}, Ws = "Modal-module__backdrop___GVUh4", qs = "Modal-module__modal___aD7aP", Gs = "Modal-module__header___ILG9i", Zs = "Modal-module__title___A5OeE", Qs = "Modal-module__closeButton___3LpSf",
|
|
3088
|
+
}, Ws = "Modal-module__backdrop___GVUh4", qs = "Modal-module__modal___aD7aP", Gs = "Modal-module__header___ILG9i", Zs = "Modal-module__title___A5OeE", Qs = "Modal-module__closeButton___3LpSf", Ks = "Modal-module__content___dWO-B", Xs = "Modal-module__actions___hY6zi", he = {
|
|
3089
3089
|
backdrop: Ws,
|
|
3090
3090
|
modal: qs,
|
|
3091
3091
|
header: Gs,
|
|
3092
3092
|
title: Zs,
|
|
3093
3093
|
closeButton: Qs,
|
|
3094
|
-
content:
|
|
3095
|
-
actions:
|
|
3094
|
+
content: Ks,
|
|
3095
|
+
actions: Xs
|
|
3096
3096
|
}, Js = "Stack-module__stack___yUU-B", Ys = "Stack-module__vertical___sKTyQ", en = "Stack-module__horizontal___YsvtV", st = {
|
|
3097
3097
|
stack: Js,
|
|
3098
3098
|
vertical: Ys,
|
|
@@ -3133,13 +3133,13 @@ const na = ({
|
|
|
3133
3133
|
style: b,
|
|
3134
3134
|
divProps: _
|
|
3135
3135
|
}) => {
|
|
3136
|
-
const x =
|
|
3137
|
-
|
|
3136
|
+
const x = I(), V = Fe(null), g = Fe(null), { maxWidth: F } = $e(x.breakpoints.md), z = ue(`(max-width: ${F - 1}px)`);
|
|
3137
|
+
ce(() => {
|
|
3138
3138
|
if (e)
|
|
3139
3139
|
return g.current = document.activeElement, document.body.style.overflow = "hidden", V.current && V.current.focus(), () => {
|
|
3140
3140
|
document.body.style.overflow = "", g.current && g.current.focus();
|
|
3141
3141
|
};
|
|
3142
|
-
}, [e]),
|
|
3142
|
+
}, [e]), ce(() => {
|
|
3143
3143
|
if (!e || !a) return;
|
|
3144
3144
|
const P = (Q) => {
|
|
3145
3145
|
Q.key === "Escape" && r();
|
|
@@ -3150,7 +3150,7 @@ const na = ({
|
|
|
3150
3150
|
P.target === P.currentTarget && n && r();
|
|
3151
3151
|
};
|
|
3152
3152
|
if (!e) return null;
|
|
3153
|
-
const
|
|
3153
|
+
const D = {
|
|
3154
3154
|
width: c,
|
|
3155
3155
|
maxWidth: d,
|
|
3156
3156
|
backgroundColor: h || x.colors.secondary,
|
|
@@ -3165,19 +3165,19 @@ const na = ({
|
|
|
3165
3165
|
style: B,
|
|
3166
3166
|
onClick: N,
|
|
3167
3167
|
role: "presentation",
|
|
3168
|
-
children: /* @__PURE__ */
|
|
3168
|
+
children: /* @__PURE__ */ H(
|
|
3169
3169
|
"div",
|
|
3170
3170
|
{
|
|
3171
3171
|
ref: V,
|
|
3172
3172
|
className: [he.modal, C].filter(Boolean).join(" "),
|
|
3173
|
-
style:
|
|
3173
|
+
style: D,
|
|
3174
3174
|
role: "dialog",
|
|
3175
3175
|
"aria-modal": "true",
|
|
3176
3176
|
"aria-labelledby": o ? "modal-title" : void 0,
|
|
3177
3177
|
tabIndex: -1,
|
|
3178
3178
|
..._,
|
|
3179
3179
|
children: [
|
|
3180
|
-
/* @__PURE__ */
|
|
3180
|
+
/* @__PURE__ */ H("div", { className: he.header, children: [
|
|
3181
3181
|
o && /* @__PURE__ */ p("h2", { id: "modal-title", className: he.title, children: o }),
|
|
3182
3182
|
!s && /* @__PURE__ */ p(
|
|
3183
3183
|
"button",
|
|
@@ -3230,7 +3230,7 @@ const na = ({
|
|
|
3230
3230
|
}
|
|
3231
3231
|
);
|
|
3232
3232
|
return at(Z, document.body);
|
|
3233
|
-
}, zr = mt(null),
|
|
3233
|
+
}, zr = mt(null), da = ({ children: e }) => {
|
|
3234
3234
|
const [r, t] = Y(null), o = E.useCallback((c) => new Promise((d, h) => {
|
|
3235
3235
|
const m = Math.random().toString(36).substr(2, 9);
|
|
3236
3236
|
t({
|
|
@@ -3288,7 +3288,7 @@ const na = ({
|
|
|
3288
3288
|
}),
|
|
3289
3289
|
[o, s, n, a]
|
|
3290
3290
|
);
|
|
3291
|
-
return /* @__PURE__ */
|
|
3291
|
+
return /* @__PURE__ */ H(zr.Provider, { value: f, children: [
|
|
3292
3292
|
e,
|
|
3293
3293
|
r && /* @__PURE__ */ p(
|
|
3294
3294
|
rn,
|
|
@@ -3303,12 +3303,12 @@ const na = ({
|
|
|
3303
3303
|
}
|
|
3304
3304
|
)
|
|
3305
3305
|
] });
|
|
3306
|
-
},
|
|
3306
|
+
}, fa = () => {
|
|
3307
3307
|
const e = tr(zr);
|
|
3308
3308
|
if (!e)
|
|
3309
3309
|
throw new Error("useModal must be used within a ModalProvider");
|
|
3310
3310
|
return e;
|
|
3311
|
-
}, on = "ResponsiveSection-module__section___gBESK", sn = "ResponsiveSection-module__innerDiv___r1bky",
|
|
3311
|
+
}, on = "ResponsiveSection-module__section___gBESK", sn = "ResponsiveSection-module__innerDiv___r1bky", Xt = {
|
|
3312
3312
|
section: on,
|
|
3313
3313
|
innerDiv: sn
|
|
3314
3314
|
}, Er = ({
|
|
@@ -3333,7 +3333,7 @@ const na = ({
|
|
|
3333
3333
|
// Element-specific props
|
|
3334
3334
|
sectionProps: b
|
|
3335
3335
|
}) => {
|
|
3336
|
-
const _ =
|
|
3336
|
+
const _ = I(), x = ue(`(min-width: ${_.breakpoints.sm})`), V = {
|
|
3337
3337
|
backgroundColor: e,
|
|
3338
3338
|
color: r || _.fonts.color,
|
|
3339
3339
|
margin: f,
|
|
@@ -3346,8 +3346,8 @@ const na = ({
|
|
|
3346
3346
|
"--height": n,
|
|
3347
3347
|
"--section-padding": `${g} ${F}`,
|
|
3348
3348
|
"--gap": c
|
|
3349
|
-
}, N = [
|
|
3350
|
-
return /* @__PURE__ */ p("section", { ...b, className: N, style: V, children: /* @__PURE__ */ p("div", { className:
|
|
3349
|
+
}, N = [Xt.section, m].filter(Boolean).join(" ");
|
|
3350
|
+
return /* @__PURE__ */ p("section", { ...b, className: N, style: V, children: /* @__PURE__ */ p("div", { className: Xt.innerDiv, style: z, children: h }) });
|
|
3351
3351
|
}, nn = "Hero-module__hero___IB2tg", an = "Hero-module__content___rkkfQ", Jt = {
|
|
3352
3352
|
hero: nn,
|
|
3353
3353
|
content: an
|
|
@@ -3364,7 +3364,7 @@ const na = ({
|
|
|
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]), ma = ({
|
|
3368
3368
|
// Color props
|
|
3369
3369
|
color: e,
|
|
3370
3370
|
// Layout props
|
|
@@ -3376,7 +3376,7 @@ const na = ({
|
|
|
3376
3376
|
style: s,
|
|
3377
3377
|
...n
|
|
3378
3378
|
}) => {
|
|
3379
|
-
const a =
|
|
3379
|
+
const a = I(), i = [Jt.hero, o].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, c = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = ue(`(min-width: ${f})`), h = ue(`(min-width: ${c})`), m = ln({ isMd: d, isLg: h, theme: a });
|
|
3380
3380
|
return /* @__PURE__ */ p(
|
|
3381
3381
|
Er,
|
|
3382
3382
|
{
|
|
@@ -3403,7 +3403,7 @@ const na = ({
|
|
|
3403
3403
|
backgroundColor: c,
|
|
3404
3404
|
color: d
|
|
3405
3405
|
} = {}) => {
|
|
3406
|
-
const h =
|
|
3406
|
+
const h = I();
|
|
3407
3407
|
return {
|
|
3408
3408
|
maxWidth: r || h.layout.maxWidth,
|
|
3409
3409
|
minWidth: t,
|
|
@@ -3437,7 +3437,7 @@ const na = ({
|
|
|
3437
3437
|
// Element-specific props
|
|
3438
3438
|
footerProps: b
|
|
3439
3439
|
}) => {
|
|
3440
|
-
const _ =
|
|
3440
|
+
const _ = I(), x = d || _.breakpoints.sm, { maxWidth: V, unit: g } = $e(x), F = ue(`(max-width: ${V}${g})`), z = dn({
|
|
3441
3441
|
isSmallScreen: F,
|
|
3442
3442
|
maxWidth: t,
|
|
3443
3443
|
minWidth: o,
|
|
@@ -3468,7 +3468,7 @@ const na = ({
|
|
|
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]), ya = ({
|
|
3472
3472
|
// Layout props
|
|
3473
3473
|
breakpoint: e,
|
|
3474
3474
|
// Content
|
|
@@ -3481,8 +3481,8 @@ const na = ({
|
|
|
3481
3481
|
// Element-specific props
|
|
3482
3482
|
divProps: a
|
|
3483
3483
|
}) => {
|
|
3484
|
-
const i =
|
|
3485
|
-
return /* @__PURE__ */
|
|
3484
|
+
const i = I(), f = [Oe.card, s].filter(Boolean).join(" "), c = e || i.breakpoints.md, d = ue(`(min-width: ${c})`), h = pn({ isMd: d, theme: i });
|
|
3485
|
+
return /* @__PURE__ */ H(
|
|
3486
3486
|
"div",
|
|
3487
3487
|
{
|
|
3488
3488
|
...a,
|
|
@@ -3513,7 +3513,7 @@ const na = ({
|
|
|
3513
3513
|
}[e]
|
|
3514
3514
|
} : {
|
|
3515
3515
|
"--grid-template-columns": "1fr"
|
|
3516
|
-
}, [e, r, t]),
|
|
3516
|
+
}, [e, r, t]), ha = ({
|
|
3517
3517
|
// Layout props
|
|
3518
3518
|
columns: e = 3,
|
|
3519
3519
|
breakpoints: r,
|
|
@@ -3525,7 +3525,7 @@ const na = ({
|
|
|
3525
3525
|
style: n,
|
|
3526
3526
|
...a
|
|
3527
3527
|
}) => {
|
|
3528
|
-
const i =
|
|
3528
|
+
const i = I(), f = [er.section, s].filter(Boolean).join(" "), c = (r == null ? void 0 : r.md) || i.breakpoints.md, d = (r == null ? void 0 : r.lg) || i.breakpoints.lg, h = ue(`(min-width: ${c})`), m = ue(`(min-width: ${d})`), C = bn({ columns: e, isMd: h, isLg: m }), b = {
|
|
3529
3529
|
"--section-padding-vertical": `calc(${i.fonts.rhythm} * 2)`
|
|
3530
3530
|
}, _ = {
|
|
3531
3531
|
...C,
|
|
@@ -3537,7 +3537,7 @@ const na = ({
|
|
|
3537
3537
|
layoutContainer: Sn,
|
|
3538
3538
|
content: wn,
|
|
3539
3539
|
main: kn
|
|
3540
|
-
},
|
|
3540
|
+
}, _a = ({
|
|
3541
3541
|
// Content
|
|
3542
3542
|
header: e,
|
|
3543
3543
|
footer: r,
|
|
@@ -3552,23 +3552,25 @@ const na = ({
|
|
|
3552
3552
|
mainProps: f
|
|
3553
3553
|
}) => {
|
|
3554
3554
|
const c = [nt.layoutContainer, o].filter(Boolean).join(" ");
|
|
3555
|
-
return /* @__PURE__ */
|
|
3556
|
-
/* @__PURE__ */
|
|
3555
|
+
return /* @__PURE__ */ H("div", { ...i, className: c, style: s, children: [
|
|
3556
|
+
/* @__PURE__ */ H("div", { className: nt.content, children: [
|
|
3557
3557
|
e && /* @__PURE__ */ p(bs, { ...n, children: e }),
|
|
3558
3558
|
/* @__PURE__ */ p("main", { ...f, className: nt.main, children: t })
|
|
3559
3559
|
] }),
|
|
3560
3560
|
r && /* @__PURE__ */ p(fn, { ...a, children: r })
|
|
3561
3561
|
] });
|
|
3562
|
-
}, xn = "FileUpload-module__dropzone___jqua0", Cn = "FileUpload-module__loading___C7PsH", Fn = "FileUpload-module__dragOver___q1zPo", Vn = "FileUpload-module__hiddenInput___RLLPJ", zn = "FileUpload-module__content___yCP0l", En = "FileUpload-
|
|
3562
|
+
}, xn = "FileUpload-module__dropzone___jqua0", Cn = "FileUpload-module__loading___C7PsH", Fn = "FileUpload-module__dragOver___q1zPo", Vn = "FileUpload-module__hiddenInput___RLLPJ", zn = "FileUpload-module__content___yCP0l", En = "FileUpload-module__contentHidden___0Ewoe", Nn = "FileUpload-module__spinnerOverlay___e3Rle", $n = "FileUpload-module__label___lbMkx", Ln = "FileUpload-module__hint___8dXlk", An = "FileUpload-module__errorMessage___8HB3n", ne = {
|
|
3563
3563
|
dropzone: xn,
|
|
3564
3564
|
loading: Cn,
|
|
3565
3565
|
dragOver: Fn,
|
|
3566
3566
|
hiddenInput: Vn,
|
|
3567
3567
|
content: zn,
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3568
|
+
contentHidden: En,
|
|
3569
|
+
spinnerOverlay: Nn,
|
|
3570
|
+
label: $n,
|
|
3571
|
+
hint: Ln,
|
|
3572
|
+
errorMessage: An
|
|
3573
|
+
}, Pn = ({ color: e }) => /* @__PURE__ */ p(
|
|
3572
3574
|
"svg",
|
|
3573
3575
|
{
|
|
3574
3576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3579,7 +3581,7 @@ const na = ({
|
|
|
3579
3581
|
"aria-hidden": !0,
|
|
3580
3582
|
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" })
|
|
3581
3583
|
}
|
|
3582
|
-
),
|
|
3584
|
+
), pa = ({
|
|
3583
3585
|
onUpload: e,
|
|
3584
3586
|
accept: r,
|
|
3585
3587
|
maxSizeBytes: t,
|
|
@@ -3591,7 +3593,7 @@ const na = ({
|
|
|
3591
3593
|
divProps: f,
|
|
3592
3594
|
inputProps: c
|
|
3593
3595
|
}) => {
|
|
3594
|
-
const d =
|
|
3596
|
+
const d = I(), h = Fe(null), [m, C] = Y(!1), [b, _] = Y(null), x = s || b, V = x ? d.colors.error : d.colors.primary, g = x ? d.colors.error : d.colors.primary, F = xe(
|
|
3595
3597
|
(L) => {
|
|
3596
3598
|
if (_(null), t && L.size > t) {
|
|
3597
3599
|
const A = (t / 1048576).toFixed(1);
|
|
@@ -3607,21 +3609,21 @@ const na = ({
|
|
|
3607
3609
|
}, N = (L) => {
|
|
3608
3610
|
var A;
|
|
3609
3611
|
(L.key === "Enter" || L.key === " ") && !o && (L.preventDefault(), (A = h.current) == null || A.click());
|
|
3610
|
-
},
|
|
3611
|
-
var
|
|
3612
|
-
const A = (
|
|
3612
|
+
}, D = (L) => {
|
|
3613
|
+
var M;
|
|
3614
|
+
const A = (M = L.target.files) == null ? void 0 : M[0];
|
|
3613
3615
|
A && F(A), L.target.value = "";
|
|
3614
3616
|
}, B = (L) => {
|
|
3615
3617
|
L.preventDefault(), o || C(!0);
|
|
3616
3618
|
}, Z = () => C(!1), P = (L) => {
|
|
3617
|
-
var
|
|
3619
|
+
var M;
|
|
3618
3620
|
if (L.preventDefault(), C(!1), o) return;
|
|
3619
|
-
const A = (
|
|
3621
|
+
const A = (M = L.dataTransfer.files) == null ? void 0 : M[0];
|
|
3620
3622
|
A && F(A);
|
|
3621
3623
|
}, Q = [
|
|
3622
|
-
|
|
3623
|
-
m &&
|
|
3624
|
-
o &&
|
|
3624
|
+
ne.dropzone,
|
|
3625
|
+
m && ne.dragOver,
|
|
3626
|
+
o && ne.loading,
|
|
3625
3627
|
a
|
|
3626
3628
|
].filter(Boolean).join(" "), W = {
|
|
3627
3629
|
"--upload-color": V,
|
|
@@ -3632,7 +3634,7 @@ const na = ({
|
|
|
3632
3634
|
color: g,
|
|
3633
3635
|
...i
|
|
3634
3636
|
};
|
|
3635
|
-
return /* @__PURE__ */
|
|
3637
|
+
return /* @__PURE__ */ H(
|
|
3636
3638
|
"div",
|
|
3637
3639
|
{
|
|
3638
3640
|
...f,
|
|
@@ -3655,42 +3657,57 @@ const na = ({
|
|
|
3655
3657
|
ref: h,
|
|
3656
3658
|
type: "file",
|
|
3657
3659
|
accept: r,
|
|
3658
|
-
onChange:
|
|
3660
|
+
onChange: D,
|
|
3659
3661
|
disabled: o,
|
|
3660
|
-
className:
|
|
3662
|
+
className: ne.hiddenInput,
|
|
3661
3663
|
tabIndex: -1,
|
|
3662
3664
|
"aria-hidden": !0
|
|
3663
3665
|
}
|
|
3664
3666
|
),
|
|
3665
|
-
o
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3667
|
+
o && /* @__PURE__ */ p(
|
|
3668
|
+
Vr,
|
|
3669
|
+
{
|
|
3670
|
+
fullScreen: !1,
|
|
3671
|
+
className: ne.spinnerOverlay,
|
|
3672
|
+
style: { fontSize: "1.5em" }
|
|
3673
|
+
}
|
|
3674
|
+
),
|
|
3675
|
+
/* @__PURE__ */ H(
|
|
3676
|
+
"div",
|
|
3677
|
+
{
|
|
3678
|
+
className: [ne.content, o && ne.contentHidden].filter(Boolean).join(" "),
|
|
3679
|
+
"aria-hidden": o || void 0,
|
|
3680
|
+
children: [
|
|
3681
|
+
/* @__PURE__ */ p(Pn, { color: V }),
|
|
3682
|
+
/* @__PURE__ */ p("span", { className: ne.label, children: n }),
|
|
3683
|
+
r && /* @__PURE__ */ H("span", { className: ne.hint, children: [
|
|
3684
|
+
"Accepted: ",
|
|
3685
|
+
r
|
|
3686
|
+
] }),
|
|
3687
|
+
t && /* @__PURE__ */ H("span", { className: ne.hint, children: [
|
|
3688
|
+
"Max size: ",
|
|
3689
|
+
(t / (1024 * 1024)).toFixed(1),
|
|
3690
|
+
" MB"
|
|
3691
|
+
] }),
|
|
3692
|
+
x && /* @__PURE__ */ p("span", { className: ne.errorMessage, role: "alert", children: x })
|
|
3693
|
+
]
|
|
3694
|
+
}
|
|
3695
|
+
)
|
|
3679
3696
|
]
|
|
3680
3697
|
}
|
|
3681
3698
|
);
|
|
3682
|
-
},
|
|
3683
|
-
thumbnail:
|
|
3684
|
-
img:
|
|
3685
|
-
sizeXs:
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
removeButton:
|
|
3690
|
-
},
|
|
3691
|
-
skeleton:
|
|
3692
|
-
},
|
|
3693
|
-
const o =
|
|
3699
|
+
}, Bn = "ImageThumbnail-module__thumbnail___-igbe", Dn = "ImageThumbnail-module__img___Q7Z4V", Mn = "ImageThumbnail-module__sizeXs___TvSHV", Rn = "ImageThumbnail-module__sizeSmall___2KnCh", On = "ImageThumbnail-module__sizeDefault___laoQk", Tn = "ImageThumbnail-module__sizeLarge___iwz3o", Hn = "ImageThumbnail-module__removeButton___Ceh1Q", pe = {
|
|
3700
|
+
thumbnail: Bn,
|
|
3701
|
+
img: Dn,
|
|
3702
|
+
sizeXs: Mn,
|
|
3703
|
+
sizeSmall: Rn,
|
|
3704
|
+
sizeDefault: On,
|
|
3705
|
+
sizeLarge: Tn,
|
|
3706
|
+
removeButton: Hn
|
|
3707
|
+
}, In = "Skeleton-module__skeleton___CB4uF", jn = {
|
|
3708
|
+
skeleton: In
|
|
3709
|
+
}, Un = ({ className: e, style: r, divProps: t }) => {
|
|
3710
|
+
const o = I(), s = [jn.skeleton, e].filter(Boolean).join(" ");
|
|
3694
3711
|
return /* @__PURE__ */ p(
|
|
3695
3712
|
"div",
|
|
3696
3713
|
{
|
|
@@ -3701,7 +3718,12 @@ const na = ({
|
|
|
3701
3718
|
"aria-busy": !0
|
|
3702
3719
|
}
|
|
3703
3720
|
);
|
|
3704
|
-
},
|
|
3721
|
+
}, Wn = {
|
|
3722
|
+
xs: pe.sizeXs,
|
|
3723
|
+
small: pe.sizeSmall,
|
|
3724
|
+
default: pe.sizeDefault,
|
|
3725
|
+
large: pe.sizeLarge
|
|
3726
|
+
}, qn = ({ color: e }) => /* @__PURE__ */ H(
|
|
3705
3727
|
"svg",
|
|
3706
3728
|
{
|
|
3707
3729
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3718,7 +3740,7 @@ const na = ({
|
|
|
3718
3740
|
/* @__PURE__ */ p("polyline", { points: "21 15 16 10 5 21" })
|
|
3719
3741
|
]
|
|
3720
3742
|
}
|
|
3721
|
-
),
|
|
3743
|
+
), ga = ({
|
|
3722
3744
|
src: e,
|
|
3723
3745
|
alt: r = "",
|
|
3724
3746
|
size: t = "default",
|
|
@@ -3731,13 +3753,13 @@ const na = ({
|
|
|
3731
3753
|
style: c,
|
|
3732
3754
|
imgProps: d
|
|
3733
3755
|
}) => {
|
|
3734
|
-
const h =
|
|
3735
|
-
|
|
3756
|
+
const h = I(), [m, C] = Y(null), [b, _] = Y(null), [x, V] = Y(null), g = m === e, F = b === e, z = x === e;
|
|
3757
|
+
ce(() => {
|
|
3736
3758
|
if (!e) return;
|
|
3737
3759
|
const W = setTimeout(() => V(e), s);
|
|
3738
3760
|
return () => clearTimeout(W);
|
|
3739
3761
|
}, [e, s]);
|
|
3740
|
-
const N = o || !!e && !g && !F && z,
|
|
3762
|
+
const N = o || !!e && !g && !F && z, D = !o && (!e || F), B = !o && !!e && !F, Z = [pe.thumbnail, Wn[t], f].filter(Boolean).join(" "), P = {
|
|
3741
3763
|
borderRadius: h.border.radius,
|
|
3742
3764
|
...c
|
|
3743
3765
|
}, Q = {
|
|
@@ -3745,23 +3767,23 @@ const na = ({
|
|
|
3745
3767
|
color: h.buttons.primary.textColor,
|
|
3746
3768
|
borderRadius: "50%"
|
|
3747
3769
|
};
|
|
3748
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ H(
|
|
3749
3771
|
"div",
|
|
3750
3772
|
{
|
|
3751
3773
|
className: Z,
|
|
3752
3774
|
style: P,
|
|
3753
|
-
"aria-label":
|
|
3775
|
+
"aria-label": D ? r || "Image placeholder" : void 0,
|
|
3754
3776
|
"aria-busy": N || void 0,
|
|
3755
3777
|
children: [
|
|
3756
|
-
N && /* @__PURE__ */ p(
|
|
3757
|
-
|
|
3758
|
-
|
|
3778
|
+
N && /* @__PURE__ */ p(Un, { style: { borderRadius: "inherit", position: "absolute", inset: 0 } }),
|
|
3779
|
+
D && (i ?? /* @__PURE__ */ p(qn, { color: h.colors.primary })),
|
|
3780
|
+
B && /* @__PURE__ */ p(
|
|
3759
3781
|
"img",
|
|
3760
3782
|
{
|
|
3761
3783
|
...d,
|
|
3762
3784
|
src: e,
|
|
3763
3785
|
alt: r,
|
|
3764
|
-
className:
|
|
3786
|
+
className: pe.img,
|
|
3765
3787
|
style: { opacity: g ? 1 : 0 },
|
|
3766
3788
|
onLoad: () => e && C(e),
|
|
3767
3789
|
onError: () => e && _(e)
|
|
@@ -3771,13 +3793,13 @@ const na = ({
|
|
|
3771
3793
|
"button",
|
|
3772
3794
|
{
|
|
3773
3795
|
type: "button",
|
|
3774
|
-
className:
|
|
3796
|
+
className: pe.removeButton,
|
|
3775
3797
|
style: Q,
|
|
3776
3798
|
onClick: (W) => {
|
|
3777
3799
|
W.stopPropagation(), n();
|
|
3778
3800
|
},
|
|
3779
3801
|
"aria-label": a,
|
|
3780
|
-
children: /* @__PURE__ */
|
|
3802
|
+
children: /* @__PURE__ */ H(
|
|
3781
3803
|
"svg",
|
|
3782
3804
|
{
|
|
3783
3805
|
viewBox: "0 0 10 10",
|
|
@@ -3801,50 +3823,50 @@ const na = ({
|
|
|
3801
3823
|
};
|
|
3802
3824
|
export {
|
|
3803
3825
|
qr as Button,
|
|
3804
|
-
|
|
3826
|
+
Jn as CSSReset,
|
|
3805
3827
|
lt as Checkbox,
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3828
|
+
ya as FeatureCard,
|
|
3829
|
+
ha as FeatureGridSection,
|
|
3830
|
+
pa as FileUpload,
|
|
3809
3831
|
fn as Footer,
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3832
|
+
Yn as Form,
|
|
3833
|
+
oa as FormCheckbox,
|
|
3834
|
+
aa as FormCheckboxGroup,
|
|
3813
3835
|
To as FormError,
|
|
3814
3836
|
ge as FormField,
|
|
3815
3837
|
qo as FormGroup,
|
|
3816
|
-
|
|
3838
|
+
ea as FormInput,
|
|
3817
3839
|
yt as FormLabel,
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3840
|
+
sa as FormRadio,
|
|
3841
|
+
na as FormRadioGroup,
|
|
3842
|
+
ra as FormSelect,
|
|
3843
|
+
ta as FormTextarea,
|
|
3822
3844
|
_s as Hamburger,
|
|
3823
3845
|
bs as Header,
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3846
|
+
ma as Hero,
|
|
3847
|
+
ga as ImageThumbnail,
|
|
3848
|
+
Xo as Input,
|
|
3827
3849
|
Vr as LoadingSpinner,
|
|
3828
3850
|
rn as Modal,
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3851
|
+
da as ModalProvider,
|
|
3852
|
+
la as NavDropdown,
|
|
3853
|
+
ca as NavLink,
|
|
3854
|
+
_a as PageLayout,
|
|
3833
3855
|
Cr as Popover,
|
|
3834
3856
|
xr as Radio,
|
|
3835
|
-
|
|
3857
|
+
ia as ResponsiveNav,
|
|
3836
3858
|
Os as ResponsiveNavContext,
|
|
3837
3859
|
Er as ResponsiveSection,
|
|
3838
3860
|
is as Select,
|
|
3839
|
-
|
|
3861
|
+
Un as Skeleton,
|
|
3840
3862
|
tn as Stack,
|
|
3841
|
-
|
|
3863
|
+
ua as StyleLoader,
|
|
3842
3864
|
rs as Textarea,
|
|
3843
|
-
|
|
3865
|
+
Xn as ThemeProvider,
|
|
3844
3866
|
$e as parseBreakpoint,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3867
|
+
Do as useFormContext,
|
|
3868
|
+
ue as useMediaQuery,
|
|
3869
|
+
fa as useModal,
|
|
3848
3870
|
Fr as useNavLinkStyles,
|
|
3849
|
-
|
|
3871
|
+
I as useTheme
|
|
3850
3872
|
};
|