digital-rabbit-cl 3.3.2-rc.0 → 3.3.3
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/Button/Button.d.ts +9 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/useButtonStyles.d.ts +2 -1
- package/dist/components/Button/useButtonStyles.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +30 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/Collapsible/index.d.ts +3 -0
- package/dist/components/Collapsible/index.d.ts.map +1 -0
- package/dist/digital-rabbit-cl.es.js +1304 -1170
- package/dist/digital-rabbit-cl.umd.js +9 -9
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
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{font-size:var(--dr-button-small-font-size);padding:var(--dr-button-small-padding-v) var(--dr-button-small-padding-h)}.Button-module__sizeLarge___yeZSH{font-size:var(--dr-button-font-size);padding:var(--dr-button-padding-v) var(--dr-button-padding-h)}.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-size:var(--dr-form-label-font-size);font-weight:700;padding-bottom:var(--dr-form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--font-size-md: 15px;--font-size-sm: 14px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--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;--dr-input-font-size: 1em;--dr-input-padding-v: .25em;--dr-input-padding-h: .4em;--dr-input-small-font-size: 1em;--dr-input-small-padding-v: .1em;--dr-input-small-padding-h: .4em;--dr-button-font-size: 1em;--dr-button-padding-v: .25em;--dr-button-padding-h: .5em;--dr-button-small-font-size: 1em;--dr-button-small-padding-v: .1em;--dr-button-small-padding-h: .5em;--dr-form-label-font-size: .85em;--dr-form-label-padding-bottom: .25em;--dr-checkbox-size: 1em;--dr-radio-size: 1em}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:1em;line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header);overflow-wrap:break-word}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em;overflow-wrap:break-word}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{font-size:var(--dr-input-small-font-size);padding:var(--dr-input-small-padding-v) var(--dr-input-small-padding-h)}.Input-module__sizeLarge___4Boj3{font-size:var(--dr-input-font-size);padding:var(--dr-input-padding-v) var(--dr-input-padding-h)}.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{font-size:var(--dr-input-small-font-size);padding:var(--dr-input-small-padding-v) var(--dr-input-small-padding-h)}.Textarea-module__sizeLarge___5a3sf{font-size:var(--dr-input-font-size);padding:var(--dr-input-padding-v) var(--dr-input-padding-h)}.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{font-size:var(--dr-input-small-font-size);padding:var(--dr-input-small-padding-v) calc(var(--dr-input-small-padding-h) * 3) var(--dr-input-small-padding-v) var(--dr-input-small-padding-h)}.Select-module__sizeLarge___eBA1T{font-size:var(--dr-input-font-size);padding:var(--dr-input-padding-v) calc(var(--dr-input-padding-h) * 3) var(--dr-input-padding-v) var(--dr-input-padding-h)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;min-height:100%;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex}.Stack-module__vertical___sKTyQ{flex-direction:column}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGrid-module__grid___6sW6f{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.MediaCard-module__card___9pZ7C{display:flex;overflow:hidden}.MediaCard-module__clickable___Rae9n{cursor:pointer;transition:opacity .15s ease}.MediaCard-module__clickable___Rae9n:hover{opacity:.85}.MediaCard-module__vertical___GWtOA{flex-direction:column}.MediaCard-module__vertical___GWtOA .MediaCard-module__imageWrapper___HUiag{width:100%}.MediaCard-module__horizontal___qlK4y{flex-direction:row;align-items:var(--media-card-align-items, center)}.MediaCard-module__horizontal___qlK4y .MediaCard-module__imageWrapper___HUiag{width:var(--media-card-image-width, 7em);flex-shrink:0;padding-top:var(--media-card-image-padding-top, 0)}.MediaCard-module__content___MlqE4{flex:1;min-width:0}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}.FileUpload-module__dropzone___jqua0{border-style:dashed;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative;text-align:center;transition:opacity .15s ease,background-color .15s ease;width:100%}.FileUpload-module__dropzone___jqua0:hover:not(.FileUpload-module__loading___C7PsH){background-color:#00000008}.FileUpload-module__dropzone___jqua0:focus-visible{outline:2px solid var(--upload-color, currentColor);outline-offset:2px}.FileUpload-module__dragOver___q1zPo{background-color:#0000000f}.FileUpload-module__loading___C7PsH{cursor:not-allowed;opacity:.6}.FileUpload-module__hiddenInput___RLLPJ{display:none}.FileUpload-module__content___yCP0l{display:flex;flex-direction:column;align-items:center;gap:.35rem}.FileUpload-module__contentHidden___0Ewoe{visibility:hidden}.FileUpload-module__spinnerOverlay___e3Rle{position:absolute}.FileUpload-module__label___lbMkx{font-weight:600}.FileUpload-module__hint___8dXlk{font-size:.85em;opacity:.7}.FileUpload-module__errorMessage___8HB3n{font-size:.85em;font-weight:600;margin-top:.25rem}.Image-module__container___sVJdZ{position:relative;overflow:hidden;width:100%}.Image-module__img___pKhPw{width:100%;height:100%;object-fit:cover;display:block;position:absolute;top:0;right:0;bottom:0;left:0}.Image-module__fallback___wysuM{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}@keyframes Skeleton-module__pulse___8RWFn{0%,to{opacity:.4}50%{opacity:1}}.Skeleton-module__skeleton___CB4uF{background-color:var(--skeleton-color, color-mix(in srgb, currentColor 20%, transparent));animation:Skeleton-module__pulse___8RWFn 2s ease-in-out infinite;display:block;width:100%;height:100%}.ImageThumbnail-module__thumbnail___-igbe{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.ImageThumbnail-module__img___Q7Z4V{width:100%;height:100%;object-fit:cover;display:block}.ImageThumbnail-module__sizeXs___TvSHV{width:1.25em;height:1.25em}.ImageThumbnail-module__sizeSmall___2KnCh{width:3em;height:3em}.ImageThumbnail-module__sizeDefault___laoQk{width:4em;height:4em}.ImageThumbnail-module__sizeLarge___iwz3o{width:5em;height:5em}.ImageThumbnail-module__removeButton___Ceh1Q{position:absolute;top:.25rem;right:.25rem;width:1.1rem;height:1.1rem;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;opacity:.6;transition:opacity .15s ease}.ImageThumbnail-module__removeButton___Ceh1Q:hover{opacity:1}.Tooltip-module__triggerWrapper___wMSun{display:inline-block}.Tooltip-module__tooltip___UA7H9{pointer-events:none;max-width:280px;padding:.4rem .6rem;font-size:.875rem;line-height:1.3;word-wrap:break-word}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
(function(
|
|
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{font-size:var(--dr-button-small-font-size);padding:var(--dr-button-small-padding-v) var(--dr-button-small-padding-h)}.Button-module__sizeLarge___yeZSH{font-size:var(--dr-button-font-size);padding:var(--dr-button-padding-v) var(--dr-button-padding-h)}.Button-module__ghost___1KINV{border-color:transparent;background-color:transparent}.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:.45em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-size:var(--dr-form-label-font-size);font-weight:700;padding-bottom:var(--dr-form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--font-size-md: 15px;--font-size-sm: 14px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--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;--dr-input-font-size: 1em;--dr-input-padding-v: .25em;--dr-input-padding-h: .4em;--dr-input-small-font-size: 1em;--dr-input-small-padding-v: .1em;--dr-input-small-padding-h: .4em;--dr-button-font-size: 1em;--dr-button-padding-v: .25em;--dr-button-padding-h: .5em;--dr-button-small-font-size: 1em;--dr-button-small-padding-v: .1em;--dr-button-small-padding-h: .5em;--dr-form-label-font-size: .85em;--dr-form-label-padding-bottom: .25em;--dr-checkbox-size: 1em;--dr-radio-size: 1em}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:1em;line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header);overflow-wrap:break-word}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em;overflow-wrap:break-word}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{font-size:var(--dr-input-small-font-size);padding:var(--dr-input-small-padding-v) var(--dr-input-small-padding-h)}.Input-module__sizeLarge___4Boj3{font-size:var(--dr-input-font-size);padding:var(--dr-input-padding-v) var(--dr-input-padding-h)}.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{font-size:var(--dr-input-small-font-size);padding:var(--dr-input-small-padding-v) var(--dr-input-small-padding-h)}.Textarea-module__sizeLarge___5a3sf{font-size:var(--dr-input-font-size);padding:var(--dr-input-padding-v) var(--dr-input-padding-h)}.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{font-size:var(--dr-input-small-font-size);padding:var(--dr-input-small-padding-v) calc(var(--dr-input-small-padding-h) * 3) var(--dr-input-small-padding-v) var(--dr-input-small-padding-h)}.Select-module__sizeLarge___eBA1T{font-size:var(--dr-input-font-size);padding:var(--dr-input-padding-v) calc(var(--dr-input-padding-h) * 3) var(--dr-input-padding-v) var(--dr-input-padding-h)}.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:.45em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;min-height:100%;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex}.Stack-module__vertical___sKTyQ{flex-direction:column}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGrid-module__grid___6sW6f{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.MediaCard-module__card___9pZ7C{display:flex;overflow:hidden}.MediaCard-module__clickable___Rae9n{cursor:pointer;transition:opacity .15s ease}.MediaCard-module__clickable___Rae9n:hover{opacity:.85}.MediaCard-module__vertical___GWtOA{flex-direction:column}.MediaCard-module__vertical___GWtOA .MediaCard-module__imageWrapper___HUiag{width:100%}.MediaCard-module__horizontal___qlK4y{flex-direction:row;align-items:var(--media-card-align-items, center)}.MediaCard-module__horizontal___qlK4y .MediaCard-module__imageWrapper___HUiag{width:var(--media-card-image-width, 7em);flex-shrink:0;padding-top:var(--media-card-image-padding-top, 0)}.MediaCard-module__content___MlqE4{flex:1;min-width:0}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}.FileUpload-module__dropzone___jqua0{border-style:dashed;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative;text-align:center;transition:opacity .15s ease,background-color .15s ease;width:100%}.FileUpload-module__dropzone___jqua0:hover:not(.FileUpload-module__loading___C7PsH){background-color:#00000008}.FileUpload-module__dropzone___jqua0:focus-visible{outline:2px solid var(--upload-color, currentColor);outline-offset:2px}.FileUpload-module__dragOver___q1zPo{background-color:#0000000f}.FileUpload-module__loading___C7PsH{cursor:not-allowed;opacity:.6}.FileUpload-module__hiddenInput___RLLPJ{display:none}.FileUpload-module__content___yCP0l{display:flex;flex-direction:column;align-items:center;gap:.35rem}.FileUpload-module__contentHidden___0Ewoe{visibility:hidden}.FileUpload-module__spinnerOverlay___e3Rle{position:absolute}.FileUpload-module__label___lbMkx{font-weight:600}.FileUpload-module__hint___8dXlk{font-size:.85em;opacity:.7}.FileUpload-module__errorMessage___8HB3n{font-size:.85em;font-weight:600;margin-top:.25rem}.Image-module__container___sVJdZ{position:relative;overflow:hidden;width:100%}.Image-module__img___pKhPw{width:100%;height:100%;object-fit:cover;display:block;position:absolute;top:0;right:0;bottom:0;left:0}.Image-module__fallback___wysuM{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}@keyframes Skeleton-module__pulse___8RWFn{0%,to{opacity:.4}50%{opacity:1}}.Skeleton-module__skeleton___CB4uF{background-color:var(--skeleton-color, color-mix(in srgb, currentColor 20%, transparent));animation:Skeleton-module__pulse___8RWFn 2s ease-in-out infinite;display:block;width:100%;height:100%}.ImageThumbnail-module__thumbnail___-igbe{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.ImageThumbnail-module__img___Q7Z4V{width:100%;height:100%;object-fit:cover;display:block}.ImageThumbnail-module__sizeXs___TvSHV{width:1.25em;height:1.25em}.ImageThumbnail-module__sizeSmall___2KnCh{width:3em;height:3em}.ImageThumbnail-module__sizeDefault___laoQk{width:4em;height:4em}.ImageThumbnail-module__sizeLarge___iwz3o{width:5em;height:5em}.ImageThumbnail-module__removeButton___Ceh1Q{position:absolute;top:.25rem;right:.25rem;width:1.1rem;height:1.1rem;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;opacity:.6;transition:opacity .15s ease}.ImageThumbnail-module__removeButton___Ceh1Q:hover{opacity:1}.Tooltip-module__triggerWrapper___wMSun{display:inline-block}.Tooltip-module__tooltip___UA7H9{pointer-events:none;max-width:280px;padding:.4rem .6rem;font-size:.875rem;line-height:1.3;word-wrap:break-word}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function($,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],u):($=typeof globalThis<"u"?globalThis:$||self,u($.DigitalRabbitCL={},$.jsxRuntime,$.React,$.ReactDOM))})(this,(function($,u,p,Le){"use strict";const Fe={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH",ghost:"Button-module__ghost___1KINV"},Wr=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,ghost:a=!1,theme:l})=>{var w;const d=t||l.colors.primary,c=l.buttons.textColor,m=!n&&!t?((w=l.buttons.primary)==null?void 0:w.textColor)??c:c;let h,v,S;a?(h="transparent",v="transparent",S=d,e&&(S=s||d)):n?(h="transparent",v=d,S=d,e&&(h=o||d,v=o||d,S=s||c)):(h=d,v=d,S=m,e&&(h=o||d,v=o||d,S=s||m));let _=1;return r?_=.3:e&&!o&&(_=.75),{backgroundColor:h,borderColor:v,color:S,opacity:_}};function wt(e,r){const t={...e};return Ne(e)&&Ne(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];Ne(s)&&Ne(n)?t[o]=wt(n,s):s!==void 0&&(t[o]=s)}),t}function Ne(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ve(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const Be={primary:"#000",secondary:"#FFF",secondaryBackground:"#1e1e1f",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},Ue={colors:Be,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",sizeMd:"19px",sizeSm:"17px",rhythm:"1.45em"},buttons:{textColor:"#FFF",primary:{textColor:Be.secondary}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"},cards:{backgroundColor:Be.secondaryBackground},modal:{backgroundColor:Be.secondaryBackground,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"},responsive:{default:{input:{fontSize:"1em",paddingVertical:"0.25em",paddingHorizontal:"0.4em"},inputSmall:{fontSize:"1em",paddingVertical:"0.1em",paddingHorizontal:"0.4em"},button:{fontSize:"1em",paddingVertical:"0.25em",paddingHorizontal:"0.5em"},buttonSmall:{fontSize:"1em",paddingVertical:"0.1em",paddingHorizontal:"0.5em"},formLabel:{fontSize:"0.85em",paddingBottom:"0.25em"},checkbox:{size:"1em"},radio:{size:"1em"}},md:{input:{fontSize:"17px",paddingVertical:"0.35em",paddingHorizontal:"0.5em"},inputSmall:{fontSize:"17px",paddingVertical:"0.2em",paddingHorizontal:"0.5em"},button:{fontSize:"17px",paddingVertical:"0.35em",paddingHorizontal:"0.6em"},buttonSmall:{fontSize:"17px",paddingVertical:"0.2em",paddingHorizontal:"0.6em"},formLabel:{fontSize:"15px",paddingBottom:"0.3em"},checkbox:{size:"18px"},radio:{size:"18px"}},sm:{input:{fontSize:"16px",paddingVertical:"0.4em",paddingHorizontal:"0.55em"},inputSmall:{fontSize:"16px",paddingVertical:"0.25em",paddingHorizontal:"0.55em"},button:{fontSize:"16px",paddingVertical:"0.4em",paddingHorizontal:"0.65em"},buttonSmall:{fontSize:"16px",paddingVertical:"0.25em",paddingHorizontal:"0.65em"},formLabel:{fontSize:"16px",paddingBottom:"0.35em"},checkbox:{size:"20px"},radio:{size:"20px"}}},typography:{heading:{h1:{fontSize:"2.5rem",mdFontSize:"2rem",smFontSize:"1.75rem"},h2:{fontSize:"1.75rem",mdFontSize:"1.5rem",smFontSize:"1.35rem"},h3:{fontSize:"1.38316rem"},h4:{fontSize:"1rem"},h5:{fontSize:"0.85028rem"},h6:{fontSize:"0.78405rem"}},text:{default:{fontSize:"1em"},sm:{fontSize:"0.85em"},xs:{fontSize:"0.75em"},lg:{fontSize:"1.25em"}}}},Ct=p.createContext(Ue),jr=({theme:e,children:r})=>{const t=e?wt(Ue,e):Ue;return u.jsx(Ct.Provider,{value:t,children:r})},D=()=>p.useContext(Ct),Ft=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,ghost:a=!1,type:l="button",className:d,style:c,buttonProps:f={},onClick:m,children:h})=>{const v=D(),[S,_]=p.useState(!1),x={...Wr({isActive:S,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,ghost:a,theme:v}),borderWidth:v.border.width,borderRadius:v.border.radius,...c},b=[Fe.button,s==="small"?Fe.sizeSmall:Fe.sizeLarge,a?Fe.ghost:n?Fe.outline:"",d].filter(Boolean).join(" ");return u.jsx("button",{...f,className:b,disabled:o,onClick:m,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),type:l,style:x,children:h})};var xt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Hr=new Uint8Array(16);function Ur(){if(!xt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xt(Hr)}for(var zt=[],Me=0;Me<256;++Me)zt[Me]=(Me+256).toString(16).substr(1);function qr(e,r){var t=0,o=zt;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("")}function Vt(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Ur)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||qr(s)}const qe={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Gr=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},Et={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Zr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),Ae=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const d=D(),c=d.colors.error,f=t?c:e||d.colors.primary,m=Zr({color:f,disabled:r}),h={color:m.color,opacity:m.opacity,cursor:m.cursor,...a},v=[Et.label,r?Et.disabled:"",n].filter(Boolean).join(" ");return u.jsx("label",{...l,className:v,htmlFor:o,style:h,children:s})},Pe=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:d,label:c,labelStyle:f,className:m,style:h,divProps:v})=>{const S=D(),_=l||Vt(),w=S.colors.error,x=n?w:e||S.colors.primary,b=Gr({color:x,checkmarkColor:r,disabled:s,inverted:o}),z=A=>{s||d(A)},E={cursor:b.cursor,opacity:b.opacity,...h},L={width:"var(--dr-checkbox-size)",height:"var(--dr-checkbox-size)"},O={fill:o&&t?b.checkboxColor:"transparent",strokeWidth:"25",stroke:b.checkboxColor},M={stroke:b.checkmarkColor,strokeWidth:"15",fill:"transparent"},j=[qe.container,m].filter(Boolean).join(" ");return u.jsxs("div",{...v,className:j,style:E,children:[u.jsx("input",{id:_,checked:t,disabled:s,onChange:A=>z({target:{checked:A.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>z({target:{checked:!t,name:a,type:"checkbox"}}),style:L,className:qe.svg,children:[u.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:O}),t&&u.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:M})]}),c&&u.jsx(Ae,{htmlFor:_,className:qe.label,style:{paddingBottom:0,...f},color:b.checkboxColor,disabled:s,error:n,children:c})]})},Kr=()=>{const e=D();return p.useLayoutEffect(()=>{const r=document.documentElement,t=(l,d)=>{d!=null&&r.style.setProperty(l,String(d))},{fonts:o,colors:s,breakpoints:n,layout:a}=e;o&&(t("--font-family",o.fontFamily),t("--font-size",o.size),t("--font-size-md",o.sizeMd),t("--font-size-sm",o.sizeSm),t("--line-height",o.lineHeight),t("--font-weight-header",o.fontWeightHeader)),s&&(t("--primary-color",s.primary),t("--background-color",s.secondary),t("--accent-color",s.accent)),n&&(t("--breakpoint-xs",n.xs),t("--breakpoint-sm",n.sm),t("--breakpoint-md",n.md),t("--breakpoint-lg",n.lg)),a&&(t("--layout-max-width",a.maxWidth),t("--layout-wrapper-padding-sm",a.paddingSm),t("--layout-wrapper-padding",a.padding))},[e]),p.useLayoutEffect(()=>{const r="dr-cl-responsive-tokens";let t=document.getElementById(r);t||(t=document.createElement("style"),t.id=r,document.head.appendChild(t));const o=(m,h)=>{const v=[];return h.fontSize&&v.push(` --dr-${m}-font-size: ${h.fontSize};`),h.paddingVertical&&v.push(` --dr-${m}-padding-v: ${h.paddingVertical};`),h.paddingHorizontal&&v.push(` --dr-${m}-padding-h: ${h.paddingHorizontal};`),v},s=m=>{var v,S,_,w;const h=[];return m.input&&h.push(...o("input",m.input)),m.inputSmall&&h.push(...o("input-small",m.inputSmall)),m.button&&h.push(...o("button",m.button)),m.buttonSmall&&h.push(...o("button-small",m.buttonSmall)),(v=m.formLabel)!=null&&v.fontSize&&h.push(` --dr-form-label-font-size: ${m.formLabel.fontSize};`),(S=m.formLabel)!=null&&S.paddingBottom&&h.push(` --dr-form-label-padding-bottom: ${m.formLabel.paddingBottom};`),(_=m.checkbox)!=null&&_.size&&h.push(` --dr-checkbox-size: ${m.checkbox.size};`),(w=m.radio)!=null&&w.size&&h.push(` --dr-radio-size: ${m.radio.size};`),h},n=(m,h)=>`@media (max-width: ${m}) {
|
|
3
3
|
:root {
|
|
4
4
|
${h.split(`
|
|
5
|
-
`).map(
|
|
5
|
+
`).map(v=>` ${v}`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
8
|
}`,{responsive:a,fonts:l,breakpoints:d}=e,c=[];l.sizeMd&&c.push(`@media (max-width: ${d.md}) {
|
|
@@ -12,10 +12,10 @@ ${h.split(`
|
|
|
12
12
|
}`),c.push(`:root {
|
|
13
13
|
${s(a.default).join(`
|
|
14
14
|
`)}
|
|
15
|
-
}`);const
|
|
16
|
-
`);
|
|
15
|
+
}`);const f=[[a.md,d.md],[a.sm,d.sm],[a.xs,d.xs]];for(const[m,h]of f){if(!m)continue;const v=s(m).join(`
|
|
16
|
+
`);v&&c.push(n(h,v))}return t.textContent=c.join(`
|
|
17
17
|
|
|
18
|
-
`),()=>{const f=document.getElementById(r);f&&document.head.removeChild(f)}},[e]),null};var Fe=e=>e.type==="checkbox",ye=e=>e instanceof Date,ee=e=>e==null;const $t=e=>typeof e=="object";var K=e=>!ee(e)&&!Array.isArray(e)&&$t(e)&&!ye(e),Lt=e=>K(e)&&e.target?Fe(e.target)?e.target.checked:e.target.value:e,Qr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nt=(e,r)=>e.has(Qr(r)),Xr=e=>{const r=e.constructor&&e.constructor.prototype;return K(r)&&r.hasOwnProperty("isPrototypeOf")},Ge=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function X(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Ge&&(e instanceof Blob||o))&&(t||K(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Xr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=X(e[s]));else return e;return r}var De=e=>/^\w*$/.test(e),q=e=>e===void 0,Ze=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>Ze(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,r,t)=>{if(!r||!K(e))return t;const o=(De(r)?[r]:Ke(r)).reduce((s,n)=>ee(s)?s:s[n],e);return q(o)||o===e?q(e[r])?t:e[r]:o},te=e=>typeof e=="boolean",T=(e,r,t)=>{let o=-1;const s=De(r)?[r]:Ke(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let d=t;if(o!==a){const c=e[l];d=K(c)||Array.isArray(c)?c:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const Pe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ue={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Bt=_.createContext(null);Bt.displayName="HookFormContext";const Qe=()=>_.useContext(Bt);var Mt=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==ne.all&&(r._proxyFormState[a]=!o||ne.all),t&&(t[a]=!0),e[a]}});return s};const Xe=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Jr(e){const r=Qe(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=_.useState(t._formState),d=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Xe(()=>t._subscribe({name:s,formState:d.current,exact:n,callback:c=>{!o&&l({...t._formState,...c})}}),[s,o,n]),_.useEffect(()=>{d.current.isValid&&t._setValid(!0)},[t]),_.useMemo(()=>Mt(a,t,d.current,!1),[a,t])}var re=e=>typeof e=="string",Je=(e,r,t,o,s)=>re(e)?(o&&r.watch.add(e),C(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),C(t,n))):(o&&(r.watchAll=!0),t),Ye=e=>ee(e)||!$t(e);function ae(e,r,t=new WeakSet){if(Ye(e)||Ye(r))return e===r;if(ye(e)&&ye(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(ye(a)&&ye(l)||K(a)&&K(l)||Array.isArray(a)&&Array.isArray(l)?!ae(a,l,t):a!==l)return!1}}return!0}function Yr(e){const r=Qe(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},d=_.useRef(s),c=_.useRef(l),m=_.useRef(void 0),f=_.useRef(t),h=_.useRef(o);c.current=l;const[b,k]=_.useState(()=>{const $=t._getWatch(o,d.current);return c.current?c.current($):$}),g=_.useCallback($=>{const L=Je(o,t._names,$||t._formValues,!1,d.current);return c.current?c.current(L):L},[t._formValues,t._names,o]),F=_.useCallback($=>{if(!n){const L=Je(o,t._names,$||t._formValues,!1,d.current);if(c.current){const D=c.current(L);ae(D,m.current)||(k(D),m.current=D)}else k(L)}},[t._formValues,t._names,n,o]);Xe(()=>((f.current!==t||!ae(h.current,o))&&(f.current=t,h.current=o,F()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:$=>{F($.values)}})),[t,a,o,F]),_.useEffect(()=>t._removeUnmounted());const V=f.current!==t,v=h.current,z=_.useMemo(()=>{if(n)return null;const $=!V&&!ae(v,o);return V||$?g():null},[n,V,o,v,g]);return z!==null?z:b}function Rr(e){const r=Qe(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=Nt(s._names.array,t),d=_.useMemo(()=>C(s._formValues,t,C(s._defaultValues,t,a)),[s,t,a]),c=Yr({control:s,name:t,defaultValue:d,exact:!0}),m=Jr({control:s,name:t,exact:!0}),f=_.useRef(e),h=_.useRef(void 0),b=_.useRef(s.register(t,{...e.rules,value:c,...te(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const k=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!C(m.errors,t)},isDirty:{enumerable:!0,get:()=>!!C(m.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!C(m.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!C(m.validatingFields,t)},error:{enumerable:!0,get:()=>C(m.errors,t)}}),[m,t]),g=_.useCallback(z=>b.current.onChange({target:{value:Lt(z),name:t},type:Pe.CHANGE}),[t]),F=_.useCallback(()=>b.current.onBlur({target:{value:C(s._formValues,t),name:t},type:Pe.BLUR}),[t,s._formValues]),V=_.useCallback(z=>{const $=C(s._fields,t);$&&z&&($._f.ref={focus:()=>z.focus&&z.focus(),select:()=>z.select&&z.select(),setCustomValidity:L=>z.setCustomValidity(L),reportValidity:()=>z.reportValidity()})},[s._fields,t]),v=_.useMemo(()=>({name:t,value:c,...te(o)||m.disabled?{disabled:m.disabled||o}:{},onChange:g,onBlur:F,ref:V}),[t,o,m.disabled,g,F,V,c]);return _.useEffect(()=>{const z=s._options.shouldUnregister||n,$=h.current;$&&$!==t&&!l&&s.unregister($),s.register(t,{...f.current.rules,...te(f.current.disabled)?{disabled:f.current.disabled}:{}});const L=(D,O)=>{const H=C(s._fields,D);H&&H._f&&(H._f.mount=O)};if(L(t,!0),z){const D=X(C(s._options.defaultValues,t,f.current.defaultValue));T(s._defaultValues,t,D),q(C(s._formValues,t))&&T(s._formValues,t,D)}return!l&&s.register(t),h.current=t,()=>{(l?z&&!s._state.action:z)?s.unregister(t):L(t,!1)}},[t,s,l,n]),_.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),_.useMemo(()=>({field:v,formState:m,fieldState:k}),[v,m,k])}var Re=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},xe=e=>Array.isArray(e)?e:[e],At=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Ot(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&K(s)&&n){const a=Ot(s,n);K(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var R=e=>K(e)&&!Object.keys(e).length,et=e=>e.type==="file",le=e=>typeof e=="function",Te=e=>{if(!Ge)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Dt=e=>e.type==="select-multiple",tt=e=>e.type==="radio",eo=e=>tt(e)||Fe(e),rt=e=>Te(e)&&e.isConnected;function to(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=q(e)?o++:e[r[o++]];return e}function ro(e){for(const r in e)if(e.hasOwnProperty(r)&&!q(e[r]))return!1;return!0}function Q(e,r){const t=Array.isArray(r)?r:De(r)?[r]:Ke(r),o=t.length===1?e:to(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(K(o)&&R(o)||Array.isArray(o)&&ro(o))&&Q(e,t.slice(0,-1)),e}var oo=e=>{for(const r in e)if(le(e[r]))return!0;return!1};function Pt(e){return Array.isArray(e)||K(e)&&!oo(e)}function ot(e,r={}){for(const t in e)Pt(e[t])?(r[t]=Array.isArray(e[t])?[]:{},ot(e[t],r[t])):q(e[t])||(r[t]=!0);return r}function be(e,r,t){t||(t=ot(r));for(const o in e)Pt(e[o])?q(r)||Ye(t[o])?t[o]=ot(e[o],Array.isArray(e[o])?[]:{}):be(e[o],ee(r)?{}:r[o],t[o]):t[o]=!ae(e[o],r[o]);return t}const Tt={value:!1,isValid:!1},It={value:!0,isValid:!0};var Wt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!q(e[0].attributes.value)?q(e[0].value)||e[0].value===""?It:{value:e[0].value,isValid:!0}:It:Tt}return Tt},jt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>q(e)?e:r?e===""?NaN:e&&+e:t&&re(e)?new Date(e):o?o(e):e;const Ht={isValid:!1,value:null};var Ut=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ht):Ht;function qt(e){const r=e.ref;return et(r)?r.files:tt(r)?Ut(e.refs).value:Dt(r)?[...r.selectedOptions].map(({value:t})=>t):Fe(r)?Wt(e.refs).value:jt(q(r.value)?e.ref.value:r.value,e)}var so=(e,r,t,o)=>{const s={};for(const n of e){const a=C(r,n);a&&T(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Ie=e=>e instanceof RegExp,ze=e=>q(e)?e:Ie(e)?e.source:K(e)?Ie(e.value)?e.value.source:e.value:e,Gt=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched});const Zt="AsyncFunction";var no=e=>!!e&&!!e.validate&&!!(le(e.validate)&&e.validate.constructor.name===Zt||K(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Zt)),ao=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Kt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Ve=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=C(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(Ve(l,r))break}else if(K(l)&&Ve(l,r))break}}};function Qt(e,r,t){const o=C(e,t);if(o||De(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=C(r,n),l=C(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var lo=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return R(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||ne.all))},io=(e,r,t)=>!e||!r||e===r||xe(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),co=(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,uo=(e,r)=>!Ze(C(e,r)).length&&Q(e,r),fo=(e,r,t)=>{const o=xe(C(e,t));return T(o,"root",r[t]),T(e,t,o),e};function Xt(e,r,t="validate"){if(re(e)||Array.isArray(e)&&e.every(re)||te(e)&&!e)return{type:t,message:re(e)?e:"",ref:r}}var Se=e=>K(e)&&!Ie(e)?e:{value:e,message:""},Jt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:d,maxLength:c,minLength:m,min:f,max:h,pattern:b,validate:k,name:g,valueAsNumber:F,mount:V}=e._f,v=C(t,g);if(!V||r.has(g))return{};const z=l?l[0]:a,$=B=>{s&&z.reportValidity&&(z.setCustomValidity(te(B)?"":B||""),z.reportValidity())},L={},D=tt(a),O=Fe(a),H=D||O,M=(F||et(a))&&q(a.value)&&q(v)||Te(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,G=Re.bind(null,g,o,L),Z=(B,A,I,J=ue.maxLength,Y=ue.minLength)=>{const U=B?A:I;L[g]={type:B?J:Y,message:U,ref:a,...G(B?J:Y,U)}};if(n?!Array.isArray(v)||!v.length:d&&(!H&&(M||ee(v))||te(v)&&!v||O&&!Wt(l).isValid||D&&!Ut(l).isValid)){const{value:B,message:A}=re(d)?{value:!!d,message:d}:Se(d);if(B&&(L[g]={type:ue.required,message:A,ref:z,...G(ue.required,A)},!o))return $(A),L}if(!M&&(!ee(f)||!ee(h))){let B,A;const I=Se(h),J=Se(f);if(!ee(v)&&!isNaN(v)){const Y=a.valueAsNumber||v&&+v;ee(I.value)||(B=Y>I.value),ee(J.value)||(A=Y<J.value)}else{const Y=a.valueAsDate||new Date(v),U=ge=>new Date(new Date().toDateString()+" "+ge),de=a.type=="time",fe=a.type=="week";re(I.value)&&v&&(B=de?U(v)>U(I.value):fe?v>I.value:Y>new Date(I.value)),re(J.value)&&v&&(A=de?U(v)<U(J.value):fe?v<J.value:Y<new Date(J.value))}if((B||A)&&(Z(!!B,I.message,J.message,ue.max,ue.min),!o))return $(L[g].message),L}if((c||m)&&!M&&(re(v)||n&&Array.isArray(v))){const B=Se(c),A=Se(m),I=!ee(B.value)&&v.length>+B.value,J=!ee(A.value)&&v.length<+A.value;if((I||J)&&(Z(I,B.message,A.message),!o))return $(L[g].message),L}if(b&&!M&&re(v)){const{value:B,message:A}=Se(b);if(Ie(B)&&!v.match(B)&&(L[g]={type:ue.pattern,message:A,ref:a,...G(ue.pattern,A)},!o))return $(A),L}if(k){if(le(k)){const B=await k(v,t),A=Xt(B,z);if(A&&(L[g]={...A,...G(ue.validate,A.message)},!o))return $(A.message),L}else if(K(k)){let B={};for(const A in k){if(!R(B)&&!o)break;const I=Xt(await k[A](v,t),z,A);I&&(B={...I,...G(A,I.message)},$(I.message),o&&(L[g]=B))}if(!R(B)&&(L[g]={ref:z,...B},!o))return L}}return $(!0),L};const mo={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0};function ho(e={}){let r={...mo,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:le(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=K(r.defaultValues)||K(r.values)?X(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:X(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,c=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...m};const h={array:At(),state:At()},b=r.criteriaMode===ne.all,k=i=>y=>{clearTimeout(c),c=setTimeout(i,y)},g=async i=>{if(!r.disabled&&(m.isValid||f.isValid||i)){const y=r.resolver?R((await O()).errors):await M(o,!0);y!==t.isValid&&h.state.next({isValid:y})}},F=(i,y)=>{!r.disabled&&(m.isValidating||m.validatingFields||f.isValidating||f.validatingFields)&&((i||Array.from(l.mount)).forEach(p=>{p&&(y?T(t.validatingFields,p,y):Q(t.validatingFields,p))}),h.state.next({validatingFields:t.validatingFields,isValidating:!R(t.validatingFields)}))},V=(i,y=[],p,x,w=!0,S=!0)=>{if(x&&p&&!r.disabled){if(a.action=!0,S&&Array.isArray(C(o,i))){const N=p(C(o,i),x.argA,x.argB);w&&T(o,i,N)}if(S&&Array.isArray(C(t.errors,i))){const N=p(C(t.errors,i),x.argA,x.argB);w&&T(t.errors,i,N),uo(t.errors,i)}if((m.touchedFields||f.touchedFields)&&S&&Array.isArray(C(t.touchedFields,i))){const N=p(C(t.touchedFields,i),x.argA,x.argB);w&&T(t.touchedFields,i,N)}(m.dirtyFields||f.dirtyFields)&&(t.dirtyFields=be(s,n)),h.state.next({name:i,isDirty:Z(i,y),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else T(n,i,y)},v=(i,y)=>{T(t.errors,i,y),h.state.next({errors:t.errors})},z=i=>{t.errors=i,h.state.next({errors:t.errors,isValid:!1})},$=(i,y,p,x)=>{const w=C(o,i);if(w){const S=C(n,i,q(p)?C(s,i):p);q(S)||x&&x.defaultChecked||y?T(n,i,y?S:qt(w._f)):I(i,S),a.mount&&g()}},L=(i,y,p,x,w)=>{let S=!1,N=!1;const W={name:i};if(!r.disabled){if(!p||x){(m.isDirty||f.isDirty)&&(N=t.isDirty,t.isDirty=W.isDirty=Z(),S=N!==W.isDirty);const j=ae(C(s,i),y);N=!!C(t.dirtyFields,i),j?Q(t.dirtyFields,i):T(t.dirtyFields,i,!0),W.dirtyFields=t.dirtyFields,S=S||(m.dirtyFields||f.dirtyFields)&&N!==!j}if(p){const j=C(t.touchedFields,i);j||(T(t.touchedFields,i,p),W.touchedFields=t.touchedFields,S=S||(m.touchedFields||f.touchedFields)&&j!==p)}S&&w&&h.state.next(W)}return S?W:{}},D=(i,y,p,x)=>{const w=C(t.errors,i),S=(m.isValid||f.isValid)&&te(y)&&t.isValid!==y;if(r.delayError&&p?(d=k(()=>v(i,p)),d(r.delayError)):(clearTimeout(c),d=null,p?T(t.errors,i,p):Q(t.errors,i)),(p?!ae(w,p):w)||!R(x)||S){const N={...x,...S&&te(y)?{isValid:y}:{},errors:t.errors,name:i};t={...t,...N},h.state.next(N)}},O=async i=>{F(i,!0);const y=await r.resolver(n,r.context,so(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(i),y},H=async i=>{const{errors:y}=await O(i);if(i)for(const p of i){const x=C(y,p);x?T(t.errors,p,x):Q(t.errors,p)}else t.errors=y;return y},M=async(i,y,p={valid:!0})=>{for(const x in i){const w=i[x];if(w){const{_f:S,...N}=w;if(S){const W=l.array.has(S.name),j=w._f&&no(w._f);j&&m.validatingFields&&F([S.name],!0);const se=await Jt(w,l.disabled,n,b,r.shouldUseNativeValidation&&!y,W);if(j&&m.validatingFields&&F([S.name]),se[S.name]&&(p.valid=!1,y))break;!y&&(C(se,S.name)?W?fo(t.errors,se,S.name):T(t.errors,S.name,se[S.name]):Q(t.errors,S.name))}!R(N)&&await M(N,y,p)}}return p.valid},G=()=>{for(const i of l.unMount){const y=C(o,i);y&&(y._f.refs?y._f.refs.every(p=>!rt(p)):!rt(y._f.ref))&>(i)}l.unMount=new Set},Z=(i,y)=>!r.disabled&&(i&&y&&T(n,i,y),!ae(ge(),s)),B=(i,y,p)=>Je(i,l,{...a.mount?n:q(y)?s:re(i)?{[i]:y}:y},p,y),A=i=>Ze(C(a.mount?n:s,i,r.shouldUnregister?C(s,i,[]):[])),I=(i,y,p={})=>{const x=C(o,i);let w=y;if(x){const S=x._f;S&&(!S.disabled&&T(n,i,jt(y,S)),w=Te(S.ref)&&ee(y)?"":y,Dt(S.ref)?[...S.ref.options].forEach(N=>N.selected=w.includes(N.value)):S.refs?Fe(S.ref)?S.refs.forEach(N=>{(!N.defaultChecked||!N.disabled)&&(Array.isArray(w)?N.checked=!!w.find(W=>W===N.value):N.checked=w===N.value||!!w)}):S.refs.forEach(N=>N.checked=N.value===w):et(S.ref)?S.ref.value="":(S.ref.value=w,S.ref.type||h.state.next({name:i,values:X(n)})))}(p.shouldDirty||p.shouldTouch)&&L(i,w,p.shouldTouch,p.shouldDirty,!0),p.shouldValidate&&fe(i)},J=(i,y,p)=>{for(const x in y){if(!y.hasOwnProperty(x))return;const w=y[x],S=i+"."+x,N=C(o,S);(l.array.has(i)||K(w)||N&&!N._f)&&!ye(w)?J(S,w,p):I(S,w,p)}},Y=(i,y,p={})=>{const x=C(o,i),w=l.array.has(i),S=X(y);T(n,i,S),w?(h.array.next({name:i,values:X(n)}),(m.isDirty||m.dirtyFields||f.isDirty||f.dirtyFields)&&p.shouldDirty&&h.state.next({name:i,dirtyFields:be(s,n),isDirty:Z(i,S)})):x&&!x._f&&!ee(S)?J(i,S,p):I(i,S,p),Kt(i,l)&&h.state.next({...t,name:i}),h.state.next({name:a.mount?i:void 0,values:X(n)})},U=async i=>{a.mount=!0;const y=i.target;let p=y.name,x=!0;const w=C(o,p),S=j=>{x=Number.isNaN(j)||ye(j)&&isNaN(j.getTime())||ae(j,C(n,p,j))},N=Gt(r.mode),W=Gt(r.reValidateMode);if(w){let j,se;const He=y.type?qt(w._f):Lt(i),he=i.type===Pe.BLUR||i.type===Pe.FOCUS_OUT,Es=!ao(w._f)&&!r.resolver&&!C(t.errors,p)&&!w._f.deps||co(he,C(t.touchedFields,p),t.isSubmitted,W,N),St=Kt(p,l,he);T(n,p,He),he?(!y||!y.readOnly)&&(w._f.onBlur&&w._f.onBlur(i),d&&d(0)):w._f.onChange&&w._f.onChange(i);const kt=L(p,He,he),$s=!R(kt)||St;if(!he&&h.state.next({name:p,type:i.type,values:X(n)}),Es)return(m.isValid||f.isValid)&&(r.mode==="onBlur"?he&&g():he||g()),$s&&h.state.next({name:p,...St?{}:kt});if(!he&&St&&h.state.next({...t}),r.resolver){const{errors:Tr}=await O([p]);if(S(He),x){const Ls=Qt(t.errors,o,p),Ir=Qt(Tr,o,Ls.name||p);j=Ir.error,p=Ir.name,se=R(Tr)}}else F([p],!0),j=(await Jt(w,l.disabled,n,b,r.shouldUseNativeValidation))[p],F([p]),S(He),x&&(j?se=!1:(m.isValid||f.isValid)&&(se=await M(o,!0)));x&&(w._f.deps&&(!Array.isArray(w._f.deps)||w._f.deps.length>0)&&fe(w._f.deps),D(p,se,j,kt))}},de=(i,y)=>{if(C(t.errors,y)&&i.focus)return i.focus(),1},fe=async(i,y={})=>{let p,x;const w=xe(i);if(r.resolver){const S=await H(q(i)?i:w);p=R(S),x=i?!w.some(N=>C(S,N)):p}else i?(x=(await Promise.all(w.map(async S=>{const N=C(o,S);return await M(N&&N._f?{[S]:N}:N)}))).every(Boolean),!(!x&&!t.isValid)&&g()):x=p=await M(o);return h.state.next({...!re(i)||(m.isValid||f.isValid)&&p!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:p}:{},errors:t.errors}),y.shouldFocus&&!x&&Ve(o,de,i?w:l.mount),x},ge=(i,y)=>{let p={...a.mount?n:s};return y&&(p=Ot(y.dirtyFields?t.dirtyFields:t.touchedFields,p)),q(i)?p:re(i)?C(p,i):i.map(x=>C(p,x))},Lr=(i,y)=>({invalid:!!C((y||t).errors,i),isDirty:!!C((y||t).dirtyFields,i),error:C((y||t).errors,i),isValidating:!!C(t.validatingFields,i),isTouched:!!C((y||t).touchedFields,i)}),ks=i=>{i&&xe(i).forEach(y=>Q(t.errors,y)),h.state.next({errors:i?t.errors:{}})},Nr=(i,y,p)=>{const x=(C(o,i,{_f:{}})._f||{}).ref,w=C(t.errors,i)||{},{ref:S,message:N,type:W,...j}=w;T(t.errors,i,{...j,...y,ref:x}),h.state.next({name:i,errors:t.errors,isValid:!1}),p&&p.shouldFocus&&x&&x.focus&&x.focus()},ws=(i,y)=>le(i)?h.state.subscribe({next:p=>"values"in p&&i(B(void 0,y),p)}):B(i,y,!0),Br=i=>h.state.subscribe({next:y=>{io(i.name,y.name,i.exact)&&lo(y,i.formState||m,Vs,i.reRenderRoot)&&i.callback({values:{...n},...t,...y,defaultValues:s})}}).unsubscribe,Cs=i=>(a.mount=!0,f={...f,...i.formState},Br({...i,formState:f})),gt=(i,y={})=>{for(const p of i?xe(i):l.mount)l.mount.delete(p),l.array.delete(p),y.keepValue||(Q(o,p),Q(n,p)),!y.keepError&&Q(t.errors,p),!y.keepDirty&&Q(t.dirtyFields,p),!y.keepTouched&&Q(t.touchedFields,p),!y.keepIsValidating&&Q(t.validatingFields,p),!r.shouldUnregister&&!y.keepDefaultValue&&Q(s,p);h.state.next({values:X(n)}),h.state.next({...t,...y.keepDirty?{isDirty:Z()}:{}}),!y.keepIsValid&&g()},Mr=({disabled:i,name:y})=>{(te(i)&&a.mount||i||l.disabled.has(y))&&(i?l.disabled.add(y):l.disabled.delete(y))},vt=(i,y={})=>{let p=C(o,i);const x=te(y.disabled)||te(r.disabled);return T(o,i,{...p||{},_f:{...p&&p._f?p._f:{ref:{name:i}},name:i,mount:!0,...y}}),l.mount.add(i),p?Mr({disabled:te(y.disabled)?y.disabled:r.disabled,name:i}):$(i,!0,y.value),{...x?{disabled:y.disabled||r.disabled}:{},...r.progressive?{required:!!y.required,min:ze(y.min),max:ze(y.max),minLength:ze(y.minLength),maxLength:ze(y.maxLength),pattern:ze(y.pattern)}:{},name:i,onChange:U,onBlur:U,ref:w=>{if(w){vt(i,y),p=C(o,i);const S=q(w.value)&&w.querySelectorAll&&w.querySelectorAll("input,select,textarea")[0]||w,N=eo(S),W=p._f.refs||[];if(N?W.find(j=>j===S):S===p._f.ref)return;T(o,i,{_f:{...p._f,...N?{refs:[...W.filter(rt),S,...Array.isArray(C(s,i))?[{}]:[]],ref:{type:S.type,name:i}}:{ref:S}}}),$(i,!1,void 0,S)}else p=C(o,i,{}),p._f&&(p._f.mount=!1),(r.shouldUnregister||y.shouldUnregister)&&!(Nt(l.array,i)&&a.action)&&l.unMount.add(i)}}},bt=()=>r.shouldFocusError&&Ve(o,de,l.mount),Fs=i=>{te(i)&&(h.state.next({disabled:i}),Ve(o,(y,p)=>{const x=C(o,p);x&&(y.disabled=x._f.disabled||i,Array.isArray(x._f.refs)&&x._f.refs.forEach(w=>{w.disabled=x._f.disabled||i}))},0,!1))},Ar=(i,y)=>async p=>{let x;p&&(p.preventDefault&&p.preventDefault(),p.persist&&p.persist());let w=X(n);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:S,values:N}=await O();t.errors=S,w=X(N)}else await M(o);if(l.disabled.size)for(const S of l.disabled)Q(w,S);if(Q(t.errors,"root"),R(t.errors)){h.state.next({errors:{}});try{await i(w,p)}catch(S){x=S}}else y&&await y({...t.errors},p),bt(),setTimeout(bt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:R(t.errors)&&!x,submitCount:t.submitCount+1,errors:t.errors}),x)throw x},xs=(i,y={})=>{C(o,i)&&(q(y.defaultValue)?Y(i,X(C(s,i))):(Y(i,y.defaultValue),T(s,i,X(y.defaultValue))),y.keepTouched||Q(t.touchedFields,i),y.keepDirty||(Q(t.dirtyFields,i),t.isDirty=y.defaultValue?Z(i,X(C(s,i))):Z()),y.keepError||(Q(t.errors,i),m.isValid&&g()),h.state.next({...t}))},Or=(i,y={})=>{const p=i?X(i):s,x=X(p),w=R(i),S=w?s:x;if(y.keepDefaultValues||(s=p),!y.keepValues){if(y.keepDirtyValues){const N=new Set([...l.mount,...Object.keys(be(s,n))]);for(const W of Array.from(N))C(t.dirtyFields,W)?T(S,W,C(n,W)):Y(W,C(S,W))}else{if(Ge&&q(i))for(const N of l.mount){const W=C(o,N);if(W&&W._f){const j=Array.isArray(W._f.refs)?W._f.refs[0]:W._f.ref;if(Te(j)){const se=j.closest("form");if(se){se.reset();break}}}}if(y.keepFieldsRef)for(const N of l.mount)Y(N,C(S,N));else o={}}n=r.shouldUnregister?y.keepDefaultValues?X(s):{}:X(S),h.array.next({values:{...S}}),h.state.next({values:{...S}})}l={mount:y.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!m.isValid||!!y.keepIsValid||!!y.keepDirtyValues||!r.shouldUnregister&&!R(S),a.watch=!!r.shouldUnregister,h.state.next({submitCount:y.keepSubmitCount?t.submitCount:0,isDirty:w?!1:y.keepDirty?t.isDirty:!!(y.keepDefaultValues&&!ae(i,s)),isSubmitted:y.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:w?{}:y.keepDirtyValues?y.keepDefaultValues&&n?be(s,n):t.dirtyFields:y.keepDefaultValues&&i?be(s,i):y.keepDirty?t.dirtyFields:{},touchedFields:y.keepTouched?t.touchedFields:{},errors:y.keepErrors?t.errors:{},isSubmitSuccessful:y.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Dr=(i,y)=>Or(le(i)?i(n):i,y),zs=(i,y={})=>{const p=C(o,i),x=p&&p._f;if(x){const w=x.refs?x.refs[0]:x.ref;w.focus&&(w.focus(),y.shouldSelect&&le(w.select)&&w.select())}},Vs=i=>{t={...t,...i}},Pr={control:{register:vt,unregister:gt,getFieldState:Lr,handleSubmit:Ar,setError:Nr,_subscribe:Br,_runSchema:O,_focusError:bt,_getWatch:B,_getDirty:Z,_setValid:g,_setFieldArray:V,_setDisabledField:Mr,_setErrors:z,_getFieldArray:A,_reset:Or,_resetDefaultValues:()=>le(r.defaultValues)&&r.defaultValues().then(i=>{Dr(i,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:G,_disableForm:Fs,_subjects:h,_proxyFormState:m,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:Cs,trigger:fe,register:vt,handleSubmit:Ar,watch:ws,setValue:Y,getValues:ge,reset:Dr,resetField:xs,clearErrors:ks,unregister:gt,setError:Nr,setFocus:zs,getFieldState:Lr};return{...Pr,formControl:Pr}}function yo(e={}){const r=_.useRef(void 0),t=_.useRef(void 0),[o,s]=_.useState({isDirty:!1,isValidating:!1,isLoading:le(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:le(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!le(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=ho(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Xe(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),_.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),_.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),_.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),_.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),_.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),_.useEffect(()=>{e.values&&!ae(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),_.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=Mt(o,n),r.current}const Yt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=C(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},st=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Yt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Yt(s,t,e))}},Rt=(e,r)=>{r.shouldUseNativeValidation&&st(e,r);const t={};for(const o in e){const s=C(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(po(r.names||Object.keys(e),o)){const a=Object.assign({},C(t,o));T(a,"root",n),T(t,o,a)}else T(t,o,n)}return t},po=(e,r)=>{const t=er(r);return e.some(o=>er(o).match(`^${t}\\.\\d+`))};function er(e){return e.replace(/\]|\[/g,"")}function tr(e,r,t){function o(l,d){var c;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(c=l._zod).traits??(c.traits=new Set),l._zod.traits.add(e),r(l,d);for(const m in a.prototype)m in l||Object.defineProperty(l,m,{value:a.prototype[m].bind(l)});l._zod.constr=a,l._zod.def=d}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var d;const c=t!=null&&t.Parent?new n:this;o(c,l),(d=c._zod).deferred??(d.deferred=[]);for(const m of c._zod.deferred)m();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var d,c;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(c=(d=l==null?void 0:l._zod)==null?void 0:d.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class _o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const go={};function rr(e){return go}function vo(e,r){return typeof r=="bigint"?r.toString():r}const or="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function We(e){return typeof e=="string"?e:e==null?void 0:e.message}function sr(e,r,t){var s,n,a,l,d,c;const o={...e,path:e.path??[]};if(!e.message){const m=We((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??We((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??We((d=t.customError)==null?void 0:d.call(t,e))??We((c=t.localeError)==null?void 0:c.call(t,e))??"Invalid input";o.message=m}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const nr=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,vo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},bo=tr("$ZodError",nr),ar=tr("$ZodError",nr,{Parent:Error}),So=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new _o;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(d=>sr(d,n,rr())));throw or(l,s==null?void 0:s.callee),l}return a.value})(ar),ko=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(d=>sr(d,n,rr())));throw or(l,s==null?void 0:s.callee),l}return a.value})(ar);function lr(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function wo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(m){return m.errors.forEach(function(f){return e.push(f)})}),r){var d=t[a].types,c=d&&d[o.code];t[a]=Re(a,r,t,s,c?[].concat(c,o.message):o.message)}e.shift()}return t}function Co(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(m){return m.forEach(function(f){return e.push(f)})}),r){var d=t[a].types,c=d&&d[o.code];t[a]=Re(a,r,t,s,c?[].concat(c,o.message):o.message)}e.shift()}return t}function Fo(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(lr(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Rt(wo(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(lr(function(){return Promise.resolve((t.mode==="sync"?So:ko)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof bo})(a))return{values:{},errors:Rt(Co(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const ir=_.createContext(null);function cr(){const e=_.useContext(ir);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function xo({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:d}){const c=yo({resolver:t?Fo(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),m=c.handleSubmit(e);return u.jsx(ir.Provider,{value:c,children:u.jsx("form",{...d,className:a,style:l,onSubmit:m,children:typeof r=="function"?r(c):r})})}const zo=xo,Vo={formError:"FormError-module__formError___kaUBn"},dr=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=P(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[Vo.formError,t].filter(Boolean).join(" ");return u.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},ke={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},ur=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:d,className:c,style:m,divProps:f})=>{const h=P(),b=[ke.formGroup,r?ke.error:"",e?ke.disabled:"",c].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...m},g=_.Children.map(d,F=>{if(_.isValidElement(F)){const V={};if(e&&F.props.disabled===void 0&&(V.disabled=!0),r&&F.props.error===void 0&&(V.error=!0),s&&F.props.id===void 0&&F.type!==_.Fragment&&(V.id=s),Object.keys(V).length>0)return _.cloneElement(F,V)}return F});return u.jsxs("div",{...f,className:b,style:k,children:[n&&u.jsxs(Ae,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&u.jsxs("span",{className:ke.required,"aria-label":"required",children:[" ","*"]})]}),u.jsx("div",{className:`${ke.inputWrapper} ${o?ke.indented:""}`,children:g}),r&&a&&u.jsx(dr,{children:a})]})};function me({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:d,labelProps:c}){const{control:m}=cr(),{field:f,fieldState:{error:h}}=Rr({name:e,control:m,rules:s});return u.jsx(ur,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:a,style:l,indent:d,labelProps:c,children:o({value:f.value,onChange:f.onChange,onBlur:f.onBlur,name:f.name,error:!!h,indent:d})})}const nt={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},Eo=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),fr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:d="text",value:c="",onChange:m,onBlur:f,className:h,style:b,inputProps:k})=>{const g=P(),F=g.colors.error,V=r?F:t||g.colors.primary,v=Eo({color:V,disabled:e,placeholderOpacity:l}),z={"--placeholder-opacity":v.placeholderOpacity,borderColor:v.borderColor,borderWidth:g.border.width,borderRadius:g.border.radius,color:v.color,opacity:v.opacity,...b},$=[nt.input,o==="small"?nt.sizeSmall:nt.sizeLarge,h].filter(Boolean).join(" ");return u.jsx("input",{...k,className:$,disabled:e,id:s,name:n,onChange:m,onBlur:f,placeholder:a,type:d,value:c,style:z})};function $o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return u.jsx(me,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:c,onBlur:m,name:f,error:h})=>u.jsx(fr,{...l,name:f,value:d||"",onChange:b=>c(b.target.value),onBlur:m,error:h})})}const at={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},Lo=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),mr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:d=3,value:c="",onChange:m,onBlur:f,className:h,style:b,textareaProps:k})=>{const g=P(),F=g.colors.error,V=r?F:t||g.colors.primary,v=Lo({color:V,disabled:e,placeholderOpacity:l}),z={"--placeholder-opacity":v.placeholderOpacity,borderColor:v.borderColor,borderWidth:g.border.width,borderRadius:g.border.radius,color:v.color,opacity:v.opacity,...b},$=[at.textarea,o==="small"?at.sizeSmall:at.sizeLarge,h].filter(Boolean).join(" ");return u.jsx("textarea",{...k,className:$,disabled:e,id:s,name:n,onChange:m,onBlur:f,placeholder:a,rows:d,value:c,style:z})};function No({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return u.jsx(me,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:c,onBlur:m,name:f,error:h})=>u.jsx(mr,{...l,name:f,value:d||"",onChange:b=>c(b.target.value),onBlur:m,error:h})})}const lt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},Bo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
|
|
18
|
+
`),()=>{const m=document.getElementById(r);m&&document.head.removeChild(m)}},[e]),null};var xe=e=>e.type==="checkbox",ye=e=>e instanceof Date,ee=e=>e==null;const $t=e=>typeof e=="object";var K=e=>!ee(e)&&!Array.isArray(e)&&$t(e)&&!ye(e),Lt=e=>K(e)&&e.target?xe(e.target)?e.target.checked:e.target.value:e,Qr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nt=(e,r)=>e.has(Qr(r)),Xr=e=>{const r=e.constructor&&e.constructor.prototype;return K(r)&&r.hasOwnProperty("isPrototypeOf")},Ge=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function X(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Ge&&(e instanceof Blob||o))&&(t||K(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Xr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=X(e[s]));else return e;return r}var Oe=e=>/^\w*$/.test(e),q=e=>e===void 0,Ze=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>Ze(e.replace(/["|']|\]/g,"").split(/\.|\[/)),F=(e,r,t)=>{if(!r||!K(e))return t;const o=(Oe(r)?[r]:Ke(r)).reduce((s,n)=>ee(s)?s:s[n],e);return q(o)||o===e?q(e[r])?t:e[r]:o},te=e=>typeof e=="boolean",I=(e,r,t)=>{let o=-1;const s=Oe(r)?[r]:Ke(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let d=t;if(o!==a){const c=e[l];d=K(c)||Array.isArray(c)?c:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const De={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ue={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Bt=p.createContext(null);Bt.displayName="HookFormContext";const Qe=()=>p.useContext(Bt);var Mt=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==ne.all&&(r._proxyFormState[a]=!o||ne.all),t&&(t[a]=!0),e[a]}});return s};const Xe=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Jr(e){const r=Qe(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=p.useState(t._formState),d=p.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Xe(()=>t._subscribe({name:s,formState:d.current,exact:n,callback:c=>{!o&&l({...t._formState,...c})}}),[s,o,n]),p.useEffect(()=>{d.current.isValid&&t._setValid(!0)},[t]),p.useMemo(()=>Mt(a,t,d.current,!1),[a,t])}var re=e=>typeof e=="string",Je=(e,r,t,o,s)=>re(e)?(o&&r.watch.add(e),F(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),F(t,n))):(o&&(r.watchAll=!0),t),Ye=e=>ee(e)||!$t(e);function ae(e,r,t=new WeakSet){if(Ye(e)||Ye(r))return e===r;if(ye(e)&&ye(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(ye(a)&&ye(l)||K(a)&&K(l)||Array.isArray(a)&&Array.isArray(l)?!ae(a,l,t):a!==l)return!1}}return!0}function Yr(e){const r=Qe(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},d=p.useRef(s),c=p.useRef(l),f=p.useRef(void 0),m=p.useRef(t),h=p.useRef(o);c.current=l;const[v,S]=p.useState(()=>{const E=t._getWatch(o,d.current);return c.current?c.current(E):E}),_=p.useCallback(E=>{const L=Je(o,t._names,E||t._formValues,!1,d.current);return c.current?c.current(L):L},[t._formValues,t._names,o]),w=p.useCallback(E=>{if(!n){const L=Je(o,t._names,E||t._formValues,!1,d.current);if(c.current){const O=c.current(L);ae(O,f.current)||(S(O),f.current=O)}else S(L)}},[t._formValues,t._names,n,o]);Xe(()=>((m.current!==t||!ae(h.current,o))&&(m.current=t,h.current=o,w()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:E=>{w(E.values)}})),[t,a,o,w]),p.useEffect(()=>t._removeUnmounted());const x=m.current!==t,b=h.current,z=p.useMemo(()=>{if(n)return null;const E=!x&&!ae(b,o);return x||E?_():null},[n,x,o,b,_]);return z!==null?z:v}function Rr(e){const r=Qe(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=Nt(s._names.array,t),d=p.useMemo(()=>F(s._formValues,t,F(s._defaultValues,t,a)),[s,t,a]),c=Yr({control:s,name:t,defaultValue:d,exact:!0}),f=Jr({control:s,name:t,exact:!0}),m=p.useRef(e),h=p.useRef(void 0),v=p.useRef(s.register(t,{...e.rules,value:c,...te(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const S=p.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(f.errors,t)},isDirty:{enumerable:!0,get:()=>!!F(f.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!F(f.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!F(f.validatingFields,t)},error:{enumerable:!0,get:()=>F(f.errors,t)}}),[f,t]),_=p.useCallback(z=>v.current.onChange({target:{value:Lt(z),name:t},type:De.CHANGE}),[t]),w=p.useCallback(()=>v.current.onBlur({target:{value:F(s._formValues,t),name:t},type:De.BLUR}),[t,s._formValues]),x=p.useCallback(z=>{const E=F(s._fields,t);E&&z&&(E._f.ref={focus:()=>z.focus&&z.focus(),select:()=>z.select&&z.select(),setCustomValidity:L=>z.setCustomValidity(L),reportValidity:()=>z.reportValidity()})},[s._fields,t]),b=p.useMemo(()=>({name:t,value:c,...te(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:_,onBlur:w,ref:x}),[t,o,f.disabled,_,w,x,c]);return p.useEffect(()=>{const z=s._options.shouldUnregister||n,E=h.current;E&&E!==t&&!l&&s.unregister(E),s.register(t,{...m.current.rules,...te(m.current.disabled)?{disabled:m.current.disabled}:{}});const L=(O,M)=>{const j=F(s._fields,O);j&&j._f&&(j._f.mount=M)};if(L(t,!0),z){const O=X(F(s._options.defaultValues,t,m.current.defaultValue));I(s._defaultValues,t,O),q(F(s._formValues,t))&&I(s._formValues,t,O)}return!l&&s.register(t),h.current=t,()=>{(l?z&&!s._state.action:z)?s.unregister(t):L(t,!1)}},[t,s,l,n]),p.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),p.useMemo(()=>({field:b,formState:f,fieldState:S}),[b,f,S])}var Re=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},ze=e=>Array.isArray(e)?e:[e],At=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Pt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&K(s)&&n){const a=Pt(s,n);K(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var R=e=>K(e)&&!Object.keys(e).length,et=e=>e.type==="file",le=e=>typeof e=="function",Ie=e=>{if(!Ge)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Ot=e=>e.type==="select-multiple",tt=e=>e.type==="radio",eo=e=>tt(e)||xe(e),rt=e=>Ie(e)&&e.isConnected;function to(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=q(e)?o++:e[r[o++]];return e}function ro(e){for(const r in e)if(e.hasOwnProperty(r)&&!q(e[r]))return!1;return!0}function Q(e,r){const t=Array.isArray(r)?r:Oe(r)?[r]:Ke(r),o=t.length===1?e:to(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(K(o)&&R(o)||Array.isArray(o)&&ro(o))&&Q(e,t.slice(0,-1)),e}var oo=e=>{for(const r in e)if(le(e[r]))return!0;return!1};function Dt(e){return Array.isArray(e)||K(e)&&!oo(e)}function ot(e,r={}){for(const t in e)Dt(e[t])?(r[t]=Array.isArray(e[t])?[]:{},ot(e[t],r[t])):q(e[t])||(r[t]=!0);return r}function be(e,r,t){t||(t=ot(r));for(const o in e)Dt(e[o])?q(r)||Ye(t[o])?t[o]=ot(e[o],Array.isArray(e[o])?[]:{}):be(e[o],ee(r)?{}:r[o],t[o]):t[o]=!ae(e[o],r[o]);return t}const It={value:!1,isValid:!1},Tt={value:!0,isValid:!0};var Wt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!q(e[0].attributes.value)?q(e[0].value)||e[0].value===""?Tt:{value:e[0].value,isValid:!0}:Tt:It}return It},jt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>q(e)?e:r?e===""?NaN:e&&+e:t&&re(e)?new Date(e):o?o(e):e;const Ht={isValid:!1,value:null};var Ut=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ht):Ht;function qt(e){const r=e.ref;return et(r)?r.files:tt(r)?Ut(e.refs).value:Ot(r)?[...r.selectedOptions].map(({value:t})=>t):xe(r)?Wt(e.refs).value:jt(q(r.value)?e.ref.value:r.value,e)}var so=(e,r,t,o)=>{const s={};for(const n of e){const a=F(r,n);a&&I(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Te=e=>e instanceof RegExp,Ve=e=>q(e)?e:Te(e)?e.source:K(e)?Te(e.value)?e.value.source:e.value:e,Gt=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched});const Zt="AsyncFunction";var no=e=>!!e&&!!e.validate&&!!(le(e.validate)&&e.validate.constructor.name===Zt||K(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Zt)),ao=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Kt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Ee=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=F(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(Ee(l,r))break}else if(K(l)&&Ee(l,r))break}}};function Qt(e,r,t){const o=F(e,t);if(o||Oe(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=F(r,n),l=F(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var lo=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return R(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||ne.all))},io=(e,r,t)=>!e||!r||e===r||ze(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),co=(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,uo=(e,r)=>!Ze(F(e,r)).length&&Q(e,r),fo=(e,r,t)=>{const o=ze(F(e,t));return I(o,"root",r[t]),I(e,t,o),e};function Xt(e,r,t="validate"){if(re(e)||Array.isArray(e)&&e.every(re)||te(e)&&!e)return{type:t,message:re(e)?e:"",ref:r}}var Se=e=>K(e)&&!Te(e)?e:{value:e,message:""},Jt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:d,maxLength:c,minLength:f,min:m,max:h,pattern:v,validate:S,name:_,valueAsNumber:w,mount:x}=e._f,b=F(t,_);if(!x||r.has(_))return{};const z=l?l[0]:a,E=B=>{s&&z.reportValidity&&(z.setCustomValidity(te(B)?"":B||""),z.reportValidity())},L={},O=tt(a),M=xe(a),j=O||M,A=(w||et(a))&&q(a.value)&&q(b)||Ie(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,G=Re.bind(null,_,o,L),Z=(B,P,T,J=ue.maxLength,Y=ue.minLength)=>{const U=B?P:T;L[_]={type:B?J:Y,message:U,ref:a,...G(B?J:Y,U)}};if(n?!Array.isArray(b)||!b.length:d&&(!j&&(A||ee(b))||te(b)&&!b||M&&!Wt(l).isValid||O&&!Ut(l).isValid)){const{value:B,message:P}=re(d)?{value:!!d,message:d}:Se(d);if(B&&(L[_]={type:ue.required,message:P,ref:z,...G(ue.required,P)},!o))return E(P),L}if(!A&&(!ee(m)||!ee(h))){let B,P;const T=Se(h),J=Se(m);if(!ee(b)&&!isNaN(b)){const Y=a.valueAsNumber||b&&+b;ee(T.value)||(B=Y>T.value),ee(J.value)||(P=Y<J.value)}else{const Y=a.valueAsDate||new Date(b),U=_e=>new Date(new Date().toDateString()+" "+_e),de=a.type=="time",fe=a.type=="week";re(T.value)&&b&&(B=de?U(b)>U(T.value):fe?b>T.value:Y>new Date(T.value)),re(J.value)&&b&&(P=de?U(b)<U(J.value):fe?b<J.value:Y<new Date(J.value))}if((B||P)&&(Z(!!B,T.message,J.message,ue.max,ue.min),!o))return E(L[_].message),L}if((c||f)&&!A&&(re(b)||n&&Array.isArray(b))){const B=Se(c),P=Se(f),T=!ee(B.value)&&b.length>+B.value,J=!ee(P.value)&&b.length<+P.value;if((T||J)&&(Z(T,B.message,P.message),!o))return E(L[_].message),L}if(v&&!A&&re(b)){const{value:B,message:P}=Se(v);if(Te(B)&&!b.match(B)&&(L[_]={type:ue.pattern,message:P,ref:a,...G(ue.pattern,P)},!o))return E(P),L}if(S){if(le(S)){const B=await S(b,t),P=Xt(B,z);if(P&&(L[_]={...P,...G(ue.validate,P.message)},!o))return E(P.message),L}else if(K(S)){let B={};for(const P in S){if(!R(B)&&!o)break;const T=Xt(await S[P](b,t),z,P);T&&(B={...T,...G(P,T.message)},E(T.message),o&&(L[_]=B))}if(!R(B)&&(L[_]={ref:z,...B},!o))return L}}return E(!0),L};const mo={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0};function ho(e={}){let r={...mo,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:le(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=K(r.defaultValues)||K(r.values)?X(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:X(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,c=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...f};const h={array:At(),state:At()},v=r.criteriaMode===ne.all,S=i=>y=>{clearTimeout(c),c=setTimeout(i,y)},_=async i=>{if(!r.disabled&&(f.isValid||m.isValid||i)){const y=r.resolver?R((await M()).errors):await A(o,!0);y!==t.isValid&&h.state.next({isValid:y})}},w=(i,y)=>{!r.disabled&&(f.isValidating||f.validatingFields||m.isValidating||m.validatingFields)&&((i||Array.from(l.mount)).forEach(g=>{g&&(y?I(t.validatingFields,g,y):Q(t.validatingFields,g))}),h.state.next({validatingFields:t.validatingFields,isValidating:!R(t.validatingFields)}))},x=(i,y=[],g,V,C=!0,k=!0)=>{if(V&&g&&!r.disabled){if(a.action=!0,k&&Array.isArray(F(o,i))){const N=g(F(o,i),V.argA,V.argB);C&&I(o,i,N)}if(k&&Array.isArray(F(t.errors,i))){const N=g(F(t.errors,i),V.argA,V.argB);C&&I(t.errors,i,N),uo(t.errors,i)}if((f.touchedFields||m.touchedFields)&&k&&Array.isArray(F(t.touchedFields,i))){const N=g(F(t.touchedFields,i),V.argA,V.argB);C&&I(t.touchedFields,i,N)}(f.dirtyFields||m.dirtyFields)&&(t.dirtyFields=be(s,n)),h.state.next({name:i,isDirty:Z(i,y),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else I(n,i,y)},b=(i,y)=>{I(t.errors,i,y),h.state.next({errors:t.errors})},z=i=>{t.errors=i,h.state.next({errors:t.errors,isValid:!1})},E=(i,y,g,V)=>{const C=F(o,i);if(C){const k=F(n,i,q(g)?F(s,i):g);q(k)||V&&V.defaultChecked||y?I(n,i,y?k:qt(C._f)):T(i,k),a.mount&&_()}},L=(i,y,g,V,C)=>{let k=!1,N=!1;const W={name:i};if(!r.disabled){if(!g||V){(f.isDirty||m.isDirty)&&(N=t.isDirty,t.isDirty=W.isDirty=Z(),k=N!==W.isDirty);const H=ae(F(s,i),y);N=!!F(t.dirtyFields,i),H?Q(t.dirtyFields,i):I(t.dirtyFields,i,!0),W.dirtyFields=t.dirtyFields,k=k||(f.dirtyFields||m.dirtyFields)&&N!==!H}if(g){const H=F(t.touchedFields,i);H||(I(t.touchedFields,i,g),W.touchedFields=t.touchedFields,k=k||(f.touchedFields||m.touchedFields)&&H!==g)}k&&C&&h.state.next(W)}return k?W:{}},O=(i,y,g,V)=>{const C=F(t.errors,i),k=(f.isValid||m.isValid)&&te(y)&&t.isValid!==y;if(r.delayError&&g?(d=S(()=>b(i,g)),d(r.delayError)):(clearTimeout(c),d=null,g?I(t.errors,i,g):Q(t.errors,i)),(g?!ae(C,g):C)||!R(V)||k){const N={...V,...k&&te(y)?{isValid:y}:{},errors:t.errors,name:i};t={...t,...N},h.state.next(N)}},M=async i=>{w(i,!0);const y=await r.resolver(n,r.context,so(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return w(i),y},j=async i=>{const{errors:y}=await M(i);if(i)for(const g of i){const V=F(y,g);V?I(t.errors,g,V):Q(t.errors,g)}else t.errors=y;return y},A=async(i,y,g={valid:!0})=>{for(const V in i){const C=i[V];if(C){const{_f:k,...N}=C;if(k){const W=l.array.has(k.name),H=C._f&&no(C._f);H&&f.validatingFields&&w([k.name],!0);const se=await Jt(C,l.disabled,n,v,r.shouldUseNativeValidation&&!y,W);if(H&&f.validatingFields&&w([k.name]),se[k.name]&&(g.valid=!1,y))break;!y&&(F(se,k.name)?W?fo(t.errors,se,k.name):I(t.errors,k.name,se[k.name]):Q(t.errors,k.name))}!R(N)&&await A(N,y,g)}}return g.valid},G=()=>{for(const i of l.unMount){const y=F(o,i);y&&(y._f.refs?y._f.refs.every(g=>!rt(g)):!rt(y._f.ref))&&_t(i)}l.unMount=new Set},Z=(i,y)=>!r.disabled&&(i&&y&&I(n,i,y),!ae(_e(),s)),B=(i,y,g)=>Je(i,l,{...a.mount?n:q(y)?s:re(i)?{[i]:y}:y},g,y),P=i=>Ze(F(a.mount?n:s,i,r.shouldUnregister?F(s,i,[]):[])),T=(i,y,g={})=>{const V=F(o,i);let C=y;if(V){const k=V._f;k&&(!k.disabled&&I(n,i,jt(y,k)),C=Ie(k.ref)&&ee(y)?"":y,Ot(k.ref)?[...k.ref.options].forEach(N=>N.selected=C.includes(N.value)):k.refs?xe(k.ref)?k.refs.forEach(N=>{(!N.defaultChecked||!N.disabled)&&(Array.isArray(C)?N.checked=!!C.find(W=>W===N.value):N.checked=C===N.value||!!C)}):k.refs.forEach(N=>N.checked=N.value===C):et(k.ref)?k.ref.value="":(k.ref.value=C,k.ref.type||h.state.next({name:i,values:X(n)})))}(g.shouldDirty||g.shouldTouch)&&L(i,C,g.shouldTouch,g.shouldDirty,!0),g.shouldValidate&&fe(i)},J=(i,y,g)=>{for(const V in y){if(!y.hasOwnProperty(V))return;const C=y[V],k=i+"."+V,N=F(o,k);(l.array.has(i)||K(C)||N&&!N._f)&&!ye(C)?J(k,C,g):T(k,C,g)}},Y=(i,y,g={})=>{const V=F(o,i),C=l.array.has(i),k=X(y);I(n,i,k),C?(h.array.next({name:i,values:X(n)}),(f.isDirty||f.dirtyFields||m.isDirty||m.dirtyFields)&&g.shouldDirty&&h.state.next({name:i,dirtyFields:be(s,n),isDirty:Z(i,k)})):V&&!V._f&&!ee(k)?J(i,k,g):T(i,k,g),Kt(i,l)&&h.state.next({...t,name:i}),h.state.next({name:a.mount?i:void 0,values:X(n)})},U=async i=>{a.mount=!0;const y=i.target;let g=y.name,V=!0;const C=F(o,g),k=H=>{V=Number.isNaN(H)||ye(H)&&isNaN(H.getTime())||ae(H,F(n,g,H))},N=Gt(r.mode),W=Gt(r.reValidateMode);if(C){let H,se;const He=y.type?qt(C._f):Lt(i),he=i.type===De.BLUR||i.type===De.FOCUS_OUT,Ns=!ao(C._f)&&!r.resolver&&!F(t.errors,g)&&!C._f.deps||co(he,F(t.touchedFields,g),t.isSubmitted,W,N),St=Kt(g,l,he);I(n,g,He),he?(!y||!y.readOnly)&&(C._f.onBlur&&C._f.onBlur(i),d&&d(0)):C._f.onChange&&C._f.onChange(i);const kt=L(g,He,he),Bs=!R(kt)||St;if(!he&&h.state.next({name:g,type:i.type,values:X(n)}),Ns)return(f.isValid||m.isValid)&&(r.mode==="onBlur"?he&&_():he||_()),Bs&&h.state.next({name:g,...St?{}:kt});if(!he&&St&&h.state.next({...t}),r.resolver){const{errors:Ir}=await M([g]);if(k(He),V){const Ms=Qt(t.errors,o,g),Tr=Qt(Ir,o,Ms.name||g);H=Tr.error,g=Tr.name,se=R(Ir)}}else w([g],!0),H=(await Jt(C,l.disabled,n,v,r.shouldUseNativeValidation))[g],w([g]),k(He),V&&(H?se=!1:(f.isValid||m.isValid)&&(se=await A(o,!0)));V&&(C._f.deps&&(!Array.isArray(C._f.deps)||C._f.deps.length>0)&&fe(C._f.deps),O(g,se,H,kt))}},de=(i,y)=>{if(F(t.errors,y)&&i.focus)return i.focus(),1},fe=async(i,y={})=>{let g,V;const C=ze(i);if(r.resolver){const k=await j(q(i)?i:C);g=R(k),V=i?!C.some(N=>F(k,N)):g}else i?(V=(await Promise.all(C.map(async k=>{const N=F(o,k);return await A(N&&N._f?{[k]:N}:N)}))).every(Boolean),!(!V&&!t.isValid)&&_()):V=g=await A(o);return h.state.next({...!re(i)||(f.isValid||m.isValid)&&g!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:g}:{},errors:t.errors}),y.shouldFocus&&!V&&Ee(o,de,i?C:l.mount),V},_e=(i,y)=>{let g={...a.mount?n:s};return y&&(g=Pt(y.dirtyFields?t.dirtyFields:t.touchedFields,g)),q(i)?g:re(i)?F(g,i):i.map(V=>F(g,V))},Lr=(i,y)=>({invalid:!!F((y||t).errors,i),isDirty:!!F((y||t).dirtyFields,i),error:F((y||t).errors,i),isValidating:!!F(t.validatingFields,i),isTouched:!!F((y||t).touchedFields,i)}),Fs=i=>{i&&ze(i).forEach(y=>Q(t.errors,y)),h.state.next({errors:i?t.errors:{}})},Nr=(i,y,g)=>{const V=(F(o,i,{_f:{}})._f||{}).ref,C=F(t.errors,i)||{},{ref:k,message:N,type:W,...H}=C;I(t.errors,i,{...H,...y,ref:V}),h.state.next({name:i,errors:t.errors,isValid:!1}),g&&g.shouldFocus&&V&&V.focus&&V.focus()},xs=(i,y)=>le(i)?h.state.subscribe({next:g=>"values"in g&&i(B(void 0,y),g)}):B(i,y,!0),Br=i=>h.state.subscribe({next:y=>{io(i.name,y.name,i.exact)&&lo(y,i.formState||f,Ls,i.reRenderRoot)&&i.callback({values:{...n},...t,...y,defaultValues:s})}}).unsubscribe,zs=i=>(a.mount=!0,m={...m,...i.formState},Br({...i,formState:m})),_t=(i,y={})=>{for(const g of i?ze(i):l.mount)l.mount.delete(g),l.array.delete(g),y.keepValue||(Q(o,g),Q(n,g)),!y.keepError&&Q(t.errors,g),!y.keepDirty&&Q(t.dirtyFields,g),!y.keepTouched&&Q(t.touchedFields,g),!y.keepIsValidating&&Q(t.validatingFields,g),!r.shouldUnregister&&!y.keepDefaultValue&&Q(s,g);h.state.next({values:X(n)}),h.state.next({...t,...y.keepDirty?{isDirty:Z()}:{}}),!y.keepIsValid&&_()},Mr=({disabled:i,name:y})=>{(te(i)&&a.mount||i||l.disabled.has(y))&&(i?l.disabled.add(y):l.disabled.delete(y))},vt=(i,y={})=>{let g=F(o,i);const V=te(y.disabled)||te(r.disabled);return I(o,i,{...g||{},_f:{...g&&g._f?g._f:{ref:{name:i}},name:i,mount:!0,...y}}),l.mount.add(i),g?Mr({disabled:te(y.disabled)?y.disabled:r.disabled,name:i}):E(i,!0,y.value),{...V?{disabled:y.disabled||r.disabled}:{},...r.progressive?{required:!!y.required,min:Ve(y.min),max:Ve(y.max),minLength:Ve(y.minLength),maxLength:Ve(y.maxLength),pattern:Ve(y.pattern)}:{},name:i,onChange:U,onBlur:U,ref:C=>{if(C){vt(i,y),g=F(o,i);const k=q(C.value)&&C.querySelectorAll&&C.querySelectorAll("input,select,textarea")[0]||C,N=eo(k),W=g._f.refs||[];if(N?W.find(H=>H===k):k===g._f.ref)return;I(o,i,{_f:{...g._f,...N?{refs:[...W.filter(rt),k,...Array.isArray(F(s,i))?[{}]:[]],ref:{type:k.type,name:i}}:{ref:k}}}),E(i,!1,void 0,k)}else g=F(o,i,{}),g._f&&(g._f.mount=!1),(r.shouldUnregister||y.shouldUnregister)&&!(Nt(l.array,i)&&a.action)&&l.unMount.add(i)}}},bt=()=>r.shouldFocusError&&Ee(o,de,l.mount),Vs=i=>{te(i)&&(h.state.next({disabled:i}),Ee(o,(y,g)=>{const V=F(o,g);V&&(y.disabled=V._f.disabled||i,Array.isArray(V._f.refs)&&V._f.refs.forEach(C=>{C.disabled=V._f.disabled||i}))},0,!1))},Ar=(i,y)=>async g=>{let V;g&&(g.preventDefault&&g.preventDefault(),g.persist&&g.persist());let C=X(n);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:k,values:N}=await M();t.errors=k,C=X(N)}else await A(o);if(l.disabled.size)for(const k of l.disabled)Q(C,k);if(Q(t.errors,"root"),R(t.errors)){h.state.next({errors:{}});try{await i(C,g)}catch(k){V=k}}else y&&await y({...t.errors},g),bt(),setTimeout(bt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:R(t.errors)&&!V,submitCount:t.submitCount+1,errors:t.errors}),V)throw V},Es=(i,y={})=>{F(o,i)&&(q(y.defaultValue)?Y(i,X(F(s,i))):(Y(i,y.defaultValue),I(s,i,X(y.defaultValue))),y.keepTouched||Q(t.touchedFields,i),y.keepDirty||(Q(t.dirtyFields,i),t.isDirty=y.defaultValue?Z(i,X(F(s,i))):Z()),y.keepError||(Q(t.errors,i),f.isValid&&_()),h.state.next({...t}))},Pr=(i,y={})=>{const g=i?X(i):s,V=X(g),C=R(i),k=C?s:V;if(y.keepDefaultValues||(s=g),!y.keepValues){if(y.keepDirtyValues){const N=new Set([...l.mount,...Object.keys(be(s,n))]);for(const W of Array.from(N))F(t.dirtyFields,W)?I(k,W,F(n,W)):Y(W,F(k,W))}else{if(Ge&&q(i))for(const N of l.mount){const W=F(o,N);if(W&&W._f){const H=Array.isArray(W._f.refs)?W._f.refs[0]:W._f.ref;if(Ie(H)){const se=H.closest("form");if(se){se.reset();break}}}}if(y.keepFieldsRef)for(const N of l.mount)Y(N,F(k,N));else o={}}n=r.shouldUnregister?y.keepDefaultValues?X(s):{}:X(k),h.array.next({values:{...k}}),h.state.next({values:{...k}})}l={mount:y.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!y.keepIsValid||!!y.keepDirtyValues||!r.shouldUnregister&&!R(k),a.watch=!!r.shouldUnregister,h.state.next({submitCount:y.keepSubmitCount?t.submitCount:0,isDirty:C?!1:y.keepDirty?t.isDirty:!!(y.keepDefaultValues&&!ae(i,s)),isSubmitted:y.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:C?{}:y.keepDirtyValues?y.keepDefaultValues&&n?be(s,n):t.dirtyFields:y.keepDefaultValues&&i?be(s,i):y.keepDirty?t.dirtyFields:{},touchedFields:y.keepTouched?t.touchedFields:{},errors:y.keepErrors?t.errors:{},isSubmitSuccessful:y.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Or=(i,y)=>Pr(le(i)?i(n):i,y),$s=(i,y={})=>{const g=F(o,i),V=g&&g._f;if(V){const C=V.refs?V.refs[0]:V.ref;C.focus&&(C.focus(),y.shouldSelect&&le(C.select)&&C.select())}},Ls=i=>{t={...t,...i}},Dr={control:{register:vt,unregister:_t,getFieldState:Lr,handleSubmit:Ar,setError:Nr,_subscribe:Br,_runSchema:M,_focusError:bt,_getWatch:B,_getDirty:Z,_setValid:_,_setFieldArray:x,_setDisabledField:Mr,_setErrors:z,_getFieldArray:P,_reset:Pr,_resetDefaultValues:()=>le(r.defaultValues)&&r.defaultValues().then(i=>{Or(i,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:G,_disableForm:Vs,_subjects:h,_proxyFormState:f,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:zs,trigger:fe,register:vt,handleSubmit:Ar,watch:xs,setValue:Y,getValues:_e,reset:Or,resetField:Es,clearErrors:Fs,unregister:_t,setError:Nr,setFocus:$s,getFieldState:Lr};return{...Dr,formControl:Dr}}function yo(e={}){const r=p.useRef(void 0),t=p.useRef(void 0),[o,s]=p.useState({isDirty:!1,isValidating:!1,isLoading:le(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:le(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!le(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=ho(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Xe(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),p.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),p.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),p.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),p.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),p.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),p.useEffect(()=>{e.values&&!ae(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),p.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=Mt(o,n),r.current}const Yt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=F(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},st=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Yt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Yt(s,t,e))}},Rt=(e,r)=>{r.shouldUseNativeValidation&&st(e,r);const t={};for(const o in e){const s=F(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(po(r.names||Object.keys(e),o)){const a=Object.assign({},F(t,o));I(a,"root",n),I(t,o,a)}else I(t,o,n)}return t},po=(e,r)=>{const t=er(r);return e.some(o=>er(o).match(`^${t}\\.\\d+`))};function er(e){return e.replace(/\]|\[/g,"")}function tr(e,r,t){function o(l,d){var c;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(c=l._zod).traits??(c.traits=new Set),l._zod.traits.add(e),r(l,d);for(const f in a.prototype)f in l||Object.defineProperty(l,f,{value:a.prototype[f].bind(l)});l._zod.constr=a,l._zod.def=d}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var d;const c=t!=null&&t.Parent?new n:this;o(c,l),(d=c._zod).deferred??(d.deferred=[]);for(const f of c._zod.deferred)f();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var d,c;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(c=(d=l==null?void 0:l._zod)==null?void 0:d.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class go extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const _o={};function rr(e){return _o}function vo(e,r){return typeof r=="bigint"?r.toString():r}const or="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function We(e){return typeof e=="string"?e:e==null?void 0:e.message}function sr(e,r,t){var s,n,a,l,d,c;const o={...e,path:e.path??[]};if(!e.message){const f=We((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??We((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??We((d=t.customError)==null?void 0:d.call(t,e))??We((c=t.localeError)==null?void 0:c.call(t,e))??"Invalid input";o.message=f}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const nr=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,vo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},bo=tr("$ZodError",nr),ar=tr("$ZodError",nr,{Parent:Error}),So=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new go;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(d=>sr(d,n,rr())));throw or(l,s==null?void 0:s.callee),l}return a.value})(ar),ko=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(d=>sr(d,n,rr())));throw or(l,s==null?void 0:s.callee),l}return a.value})(ar);function lr(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function wo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(f){return f.errors.forEach(function(m){return e.push(m)})}),r){var d=t[a].types,c=d&&d[o.code];t[a]=Re(a,r,t,s,c?[].concat(c,o.message):o.message)}e.shift()}return t}function Co(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(f){return f.forEach(function(m){return e.push(m)})}),r){var d=t[a].types,c=d&&d[o.code];t[a]=Re(a,r,t,s,c?[].concat(c,o.message):o.message)}e.shift()}return t}function Fo(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(lr(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Rt(wo(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(lr(function(){return Promise.resolve((t.mode==="sync"?So:ko)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&st({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof bo})(a))return{values:{},errors:Rt(Co(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const ir=p.createContext(null);function cr(){const e=p.useContext(ir);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function xo({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:d}){const c=yo({resolver:t?Fo(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),f=c.handleSubmit(e);return u.jsx(ir.Provider,{value:c,children:u.jsx("form",{...d,className:a,style:l,onSubmit:f,children:typeof r=="function"?r(c):r})})}const zo=xo,Vo={formError:"FormError-module__formError___kaUBn"},dr=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=D(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[Vo.formError,t].filter(Boolean).join(" ");return u.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},ke={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},ur=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:d,className:c,style:f,divProps:m})=>{const h=D(),v=[ke.formGroup,r?ke.error:"",e?ke.disabled:"",c].filter(Boolean).join(" "),S={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...f},_=p.Children.map(d,w=>{if(p.isValidElement(w)){const x={};if(e&&w.props.disabled===void 0&&(x.disabled=!0),r&&w.props.error===void 0&&(x.error=!0),s&&w.props.id===void 0&&w.type!==p.Fragment&&(x.id=s),Object.keys(x).length>0)return p.cloneElement(w,x)}return w});return u.jsxs("div",{...m,className:v,style:S,children:[n&&u.jsxs(Ae,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&u.jsxs("span",{className:ke.required,"aria-label":"required",children:[" ","*"]})]}),u.jsx("div",{className:`${ke.inputWrapper} ${o?ke.indented:""}`,children:_}),r&&a&&u.jsx(dr,{children:a})]})};function me({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:d,labelProps:c}){const{control:f}=cr(),{field:m,fieldState:{error:h}}=Rr({name:e,control:f,rules:s});return u.jsx(ur,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:a,style:l,indent:d,labelProps:c,children:o({value:m.value,onChange:m.onChange,onBlur:m.onBlur,name:m.name,error:!!h,indent:d})})}const nt={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},Eo=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),fr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:d="text",value:c="",onChange:f,onBlur:m,className:h,style:v,inputProps:S})=>{const _=D(),w=_.colors.error,x=r?w:t||_.colors.primary,b=Eo({color:x,disabled:e,placeholderOpacity:l}),z={"--placeholder-opacity":b.placeholderOpacity,borderColor:b.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:b.color,opacity:b.opacity,...v},E=[nt.input,o==="small"?nt.sizeSmall:nt.sizeLarge,h].filter(Boolean).join(" ");return u.jsx("input",{...S,className:E,disabled:e,id:s,name:n,onChange:f,onBlur:m,placeholder:a,type:d,value:c,style:z})};function $o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return u.jsx(me,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:c,onBlur:f,name:m,error:h})=>u.jsx(fr,{...l,name:m,value:d||"",onChange:v=>c(v.target.value),onBlur:f,error:h})})}const at={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},Lo=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),mr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:d=3,value:c="",onChange:f,onBlur:m,className:h,style:v,textareaProps:S})=>{const _=D(),w=_.colors.error,x=r?w:t||_.colors.primary,b=Lo({color:x,disabled:e,placeholderOpacity:l}),z={"--placeholder-opacity":b.placeholderOpacity,borderColor:b.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:b.color,opacity:b.opacity,...v},E=[at.textarea,o==="small"?at.sizeSmall:at.sizeLarge,h].filter(Boolean).join(" ");return u.jsx("textarea",{...S,className:E,disabled:e,id:s,name:n,onChange:f,onBlur:m,placeholder:a,rows:d,value:c,style:z})};function No({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return u.jsx(me,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:d,onChange:c,onBlur:f,name:m,error:h})=>u.jsx(mr,{...l,name:m,value:d||"",onChange:v=>c(v.target.value),onBlur:f,error:h})})}const lt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},Bo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
|
|
19
19
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
20
20
|
<path
|
|
21
21
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
@@ -30,10 +30,10 @@ ${s(a.default).join(`
|
|
|
30
30
|
fill="transparent"
|
|
31
31
|
/>
|
|
32
32
|
</svg>
|
|
33
|
-
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),hr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:d,onBlur:c,children:m,className:f,style:h,selectProps:b})=>{const k=P(),g=k.colors.error,F=r?g:t||k.colors.primary,V=Bo({color:F,disabled:e}),v={backgroundImage:V.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:V.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:V.color,cursor:V.cursor,opacity:V.opacity,...h},z=[lt.select,o==="small"?lt.sizeSmall:lt.sizeLarge,f].filter(Boolean).join(" ");return u.jsxs("select",{...b,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:c,value:l,style:v,children:[a!==""&&u.jsx("option",{disabled:!0,value:"",children:a}),m]})};function Mo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...d}){return u.jsx(me,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:c,onChange:m,onBlur:f,name:h,error:b})=>u.jsx(hr,{...d,name:h,value:c||"",onChange:k=>m(k.target.value),onBlur:f,error:b,children:l})})}function Ao({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return u.jsx(me,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:d,name:c,error:m})=>u.jsx(Oe,{...a,name:c,checked:!!l,onChange:f=>d(f.target.checked),error:m})})}const it={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Oo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),ct=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:d,className:c,style:m,divProps:f})=>{const h=P(),b=n||Vt(),k=h.colors.error,g=o?k:e||h.colors.primary,F=Oo({color:g,disabled:t}),V=O=>{t||a(O)},v={cursor:F.cursor,opacity:F.opacity,...m},z={width:"var(--dr-radio-size)",height:"var(--dr-radio-size)"},$={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},L={fill:F.radioColor},D=[it.container,c].filter(Boolean).join(" ");return u.jsxs("div",{...f,className:D,style:v,children:[u.jsx("input",{id:b,checked:r,disabled:t,name:s,onChange:O=>V({target:{checked:O.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>V({target:{checked:!r,name:s,type:"radio"}}),className:it.svg,style:z,children:[u.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:$}),r&&u.jsx("circle",{cx:"50",cy:"50",r:"25",style:L})]}),l&&u.jsx(Ae,{htmlFor:b,className:it.label,style:{paddingBottom:0,...d},color:F.radioColor,disabled:t,error:o,children:l})]})};function Do({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...d}){return u.jsx(me,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:c,onChange:m,name:f,error:h})=>u.jsx(ct,{...d,name:f,checked:c===l,onChange:()=>m(l),error:h,label:r})})}function Po({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return u.jsx(me,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:d,onChange:c,name:m,error:f})=>u.jsx(u.Fragment,{children:o.map(h=>u.jsx(ct,{name:m,checked:d===h.value,onChange:()=>c(h.value),label:h.label,disabled:s||h.disabled,error:f},h.value))})})}function To({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:d=!0}){return u.jsx(me,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:d,labelProps:{style:{marginBottom:".25em"}},children:({value:c,onChange:m,name:f,error:h})=>{const b=Array.isArray(c)?c:[],k=(g,F)=>{m(F?[...b,g]:b.filter(V=>V!==g))};return u.jsx(u.Fragment,{children:o?o.map(g=>u.jsx(Oe,{name:`${f}[]`,checked:b.includes(g.value),onChange:F=>k(g.value,F.target.checked),label:g.label,disabled:n||g.disabled,error:h},g.value)):_.Children.map(s,g=>{if(_.isValidElement(g)&&g.type===Oe){const F=g.props.value||g.props.name;return _.cloneElement(g,{name:`${f}[]`,checked:b.includes(F),onChange:V=>k(F,V.target.checked),error:h||g.props.error,disabled:n||g.props.disabled})}return g})})}})}const Ee={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},Io=({compact:e,color:r,visible:t,border:o})=>{const s=P(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},yr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:d})=>{const c=Io({compact:t,color:e,visible:r,border:n}),m=[Ee.hamburger,s?Ee.open:"",l].filter(Boolean).join(" ");return u.jsxs("button",{ref:o,className:m,onClick:()=>a(!s),style:{...c,...d},"aria-label":"Toggle menu","aria-expanded":s,children:[u.jsx("div",{className:Ee.line}),u.jsx("div",{className:Ee.line}),u.jsx("div",{className:Ee.line})]})},pr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Wo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:d,backgroundColor:c,color:m}={})=>{const f=P();return{"--header-max-width":r||f.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||f.layout.paddingSm:a||f.layout.padding,"--header-margin":l,"--header-gap":d,backgroundColor:c,color:m}},oe=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return _.useSyncExternalStore(t,o,s)},_r=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:c,breakpoint:m,fixed:f=!1,children:h,className:b,style:k,headerProps:g})=>{const F=P(),V=m||F.breakpoints.sm,{maxWidth:v,unit:z}=ve(V),$=oe(`(max-width: ${v}${z})`),L=Wo({isSmallScreen:$,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:d,gap:c,backgroundColor:e,color:r}),D=[pr.container,b].filter(Boolean).join(" "),O=f?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return u.jsx("header",{...g,className:pr.header,style:O,children:u.jsx("div",{className:D,style:{...L,...k},children:h})})},we={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},ce={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"};function jo(e,r){const[t,o]=_.useState(!1),[s,n]=_.useState(!1);_.useEffect(()=>{r==="panel"&&(e?o(!0):n(!1))},[e,r]),_.useEffect(()=>{if(r!=="panel"||!t||!e)return;let l,d;return l=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>n(!0))}),()=>{cancelAnimationFrame(l),cancelAnimationFrame(d)}},[t,e,r]);const a=_.useCallback(()=>{s||o(!1)},[s]);return{panelMounted:t,panelVisible:s,handleTransitionEnd:a}}function gr(e){const[r,t]=e.split("-");return{side:r,align:t??"center"}}const Ho={start:0,center:.5,end:1},Uo={start:"0",center:"-50%",end:"-100%"};function qo(e,r,t,o){const s=r==="top"||r==="bottom",n={top:e.top-o,bottom:e.bottom+o,left:e.left-o,right:e.right+o}[r],a=r==="top"||r==="left"?"-100%":"0",l=s?e.left:e.top,d=s?e.width:e.height,c=l+d*Ho[t],m=Uo[t],[f,h,b,k]=s?[c,n,m,a]:[n,c,a,m];return{position:"fixed",zIndex:999,left:f,top:h,transform:`translate(${b}, ${k})`}}function vr({open:e,triggerRef:r,side:t,align:o="center",offset:s=8,enabled:n=!0}){const[a,l]=_.useState({}),d=_.useCallback(()=>{if(!n||!r.current)return;const c=r.current.getBoundingClientRect();l(qo(c,t,o,s))},[n,r,t,o,s]);return _.useEffect(()=>{e&&n&&d()},[e,n,d]),_.useEffect(()=>{if(!(!e||!n))return window.addEventListener("scroll",d,!0),window.addEventListener("resize",d),()=>{window.removeEventListener("scroll",d,!0),window.removeEventListener("resize",d)}},[e,n,d]),{positionStyle:a,updatePosition:d}}const dt=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:l="75%",backdropColor:d="rgba(0, 0, 0, 0.5)",hideCloseButton:c=!1,closeOnBackdropClick:m=!0,className:f,style:h,popoverProps:b})=>{const k=P(),g=o!==void 0,[F,V]=_.useState(!1),v=g?o:F,z=_.useRef(null),$=_.useRef(null),L=_.useCallback(U=>{g||V(U),s==null||s(U)},[g,s]),D=_.useCallback(()=>L(!v),[v,L]),O=_.useCallback(()=>L(!1),[L]),{panelMounted:H,panelVisible:M,handleTransitionEnd:G}=jo(v,t),{side:Z,align:B}=gr(n),{positionStyle:A}=vr({open:v,triggerRef:z,side:Z,align:B,offset:4,enabled:t==="popup"});_.useEffect(()=>{if(!v||t!=="popup")return;const U=de=>{var fe,ge;(fe=$.current)!=null&&fe.contains(de.target)||(ge=z.current)!=null&&ge.contains(de.target)||O()};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[v,t,O]),_.useEffect(()=>{if(!v)return;const U=de=>{de.key==="Escape"&&O()};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[v,O]),_.useEffect(()=>{if(!v||t!=="panel")return;const U=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${U}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,U)}},[v,t]);const I=e?typeof e=="function"?e({onClick:D,isOpen:v}):u.jsx("span",{onClick:D,style:{cursor:"pointer",display:"contents"},children:e}):null,J=e?u.jsx("span",{ref:z,className:ce.triggerWrapper,children:I}):null;if(t==="popup"){const U={backgroundColor:k.colors.secondaryBackground,borderRadius:k.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...A,...h};return u.jsxs(u.Fragment,{children:[J,v&&$e.createPortal(u.jsx("div",{ref:$,className:[ce.popup,f].filter(Boolean).join(" "),style:U,...b,children:r}),document.body)]})}const Y={width:l,backgroundColor:k.colors.secondaryBackground,...h};return u.jsxs(u.Fragment,{children:[J,H&&$e.createPortal(u.jsxs("div",{className:[ce.panelOverlay,M?ce.panelOverlayVisible:""].filter(Boolean).join(" "),children:[u.jsx("div",{className:ce.backdrop,style:{backgroundColor:M?d:"transparent"},onClick:m?O:void 0,role:"presentation"}),u.jsxs("div",{ref:$,className:[ce.panel,a==="right"?ce.panelRight:ce.panelLeft,M?ce.panelOpen:"",f].filter(Boolean).join(" "),style:Y,role:"dialog","aria-modal":"true",onTransitionEnd:G,...b,children:[!c&&u.jsx("button",{className:ce.panelCloseButton,onClick:O,"aria-label":"Close panel",type:"button",children:u.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:u.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},Go=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=P();return _.useMemo(()=>e?{navStyles:{...(t==null?void 0:t.backgroundColor)&&{backgroundColor:t.backgroundColor},color:(t==null?void 0:t.color)||s.fonts.color,...t==null?void 0:t.style}}:{navStyles:{...(o==null?void 0:o.backgroundColor)&&{backgroundColor:o.backgroundColor},color:(o==null?void 0:o.color)||s.fonts.color,...o==null?void 0:o.style}},[e,r,t,o,s])},br=_.createContext({isMobile:!1,setOpen:()=>{}}),Zo=({open:e,setOpen:r,hamburgerRef:t,isCompact:o,mobile:s,panelWidth:n,side:a,navClassName:l,cssProps:d,navProps:c,content:m,onNavClick:f})=>{const{backgroundColor:h,...b}=d;return u.jsx(dt,{variant:"panel",side:a||"right",panelWidth:n||"75%",isOpen:e,onOpenChange:r,style:h?{backgroundColor:h}:void 0,trigger:({onClick:k})=>u.jsx(yr,{hamburgerRef:t,visible:!0,compact:o,open:!1,setOpen:g=>k(),...s==null?void 0:s.hamburgerProps}),children:u.jsxs("nav",{...c,className:l,style:b,onClickCapture:f,children:[u.jsx("div",{className:we.navHeader}),typeof m=="function"?m({setOpen:r}):m]})})},Ko=({setOpen:e,navClassName:r,cssProps:t,navProps:o,content:s})=>u.jsx("nav",{...o,className:r,style:t,children:typeof s=="function"?s({setOpen:e}):s}),Qo=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:l=!1})=>{const[d,c]=_.useState(!1),m=_.useRef(null),h={...P().breakpoints,...t},{maxWidth:b,unit:k}=ve(h.md),{maxWidth:g,unit:F}=ve(h.sm),V=oe(`(max-width: ${b}${k})`),v=oe(`(max-width: ${g}${F})`),z=l?!1:V,$=l?!1:v,{navStyles:L}=Go({isMobile:z,isCompact:$,mobile:e,desktop:r}),D={...L,...n},O=G=>{const Z=G.target;Z.closest("[data-navdropdown-trigger]")||Z.closest("a, button")&&c(!1)},H=[we.nav,we.navMobile,$||e!=null&&e.compact?we.compact:"",s].filter(Boolean).join(" "),M=[we.nav,we.navDesktop,s].filter(Boolean).join(" ");return u.jsx(br.Provider,{value:{isMobile:z,setOpen:c},children:z?u.jsx(Zo,{open:d,setOpen:c,hamburgerRef:m,isCompact:$,mobile:e,panelWidth:e==null?void 0:e.panelWidth,side:e==null?void 0:e.side,navClassName:H,cssProps:D,navProps:a,content:(e==null?void 0:e.content)||o,onNavClick:O}):u.jsx(Ko,{setOpen:c,navClassName:M,cssProps:D,navProps:a,content:(r==null?void 0:r.content)||o})})},ut={trigger:"NavDropdown-module__trigger___1PQZp",chevron:"NavDropdown-module__chevron___ZLAV7",chevronOpen:"NavDropdown-module__chevronOpen___9mgjr"};function ft({isActive:e=!1,hoverOpacity:r=.5,color:t}={}){const o=P(),[s,n]=_.useState(!1);return{style:{color:t||o.fonts.color,fontWeight:700,textDecoration:"none",opacity:e||s?r:1},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}}const Xo=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,hoverOpacity:a,className:l,style:d,buttonProps:c})=>{const[m,f]=_.useState(!1),{style:h,onMouseEnter:b,onMouseLeave:k}=ft({isActive:m,color:n,hoverOpacity:a});return u.jsx(dt,{variant:t,side:o,panelWidth:s,isOpen:m,onOpenChange:f,trigger:({onClick:g})=>u.jsxs("button",{type:"button",className:[ut.trigger,l].filter(Boolean).join(" "),style:{...h,...d},"data-navdropdown-trigger":!0,onClick:g,onMouseEnter:b,onMouseLeave:k,...c,children:[e,u.jsx("span",{className:[ut.chevron,m?ut.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},Jo=({isActive:e,hoverOpacity:r,color:t,children:o})=>{const{style:s,onMouseEnter:n,onMouseLeave:a}=ft({isActive:e,hoverOpacity:r,color:t});return _.cloneElement(o,{style:{...s,...o.props.style},onMouseEnter:l=>{var d,c;n(),(c=(d=o.props).onMouseEnter)==null||c.call(d,l)},onMouseLeave:l=>{var d,c;a(),(c=(d=o.props).onMouseLeave)==null||c.call(d,l)}})},mt=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=P(),l=e||a.colors.primary,d=r||a.colors.secondary,c=u.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${d}`}}),m=u.jsxs(u.Fragment,{children:[c,u.jsx("style",{children:`
|
|
33
|
+
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),hr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:d,onBlur:c,children:f,className:m,style:h,selectProps:v})=>{const S=D(),_=S.colors.error,w=r?_:t||S.colors.primary,x=Bo({color:w,disabled:e}),b={backgroundImage:x.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:x.borderColor,borderWidth:S.border.width,borderRadius:S.border.radius,color:x.color,cursor:x.cursor,opacity:x.opacity,...h},z=[lt.select,o==="small"?lt.sizeSmall:lt.sizeLarge,m].filter(Boolean).join(" ");return u.jsxs("select",{...v,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:c,value:l,style:b,children:[a!==""&&u.jsx("option",{disabled:!0,value:"",children:a}),f]})};function Mo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...d}){return u.jsx(me,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:c,onChange:f,onBlur:m,name:h,error:v})=>u.jsx(hr,{...d,name:h,value:c||"",onChange:S=>f(S.target.value),onBlur:m,error:v,children:l})})}function Ao({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return u.jsx(me,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:d,name:c,error:f})=>u.jsx(Pe,{...a,name:c,checked:!!l,onChange:m=>d(m.target.checked),error:f})})}const it={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Po=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),ct=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:d,className:c,style:f,divProps:m})=>{const h=D(),v=n||Vt(),S=h.colors.error,_=o?S:e||h.colors.primary,w=Po({color:_,disabled:t}),x=M=>{t||a(M)},b={cursor:w.cursor,opacity:w.opacity,...f},z={width:"var(--dr-radio-size)",height:"var(--dr-radio-size)"},E={fill:"transparent",strokeWidth:"12.5",stroke:w.radioColor},L={fill:w.radioColor},O=[it.container,c].filter(Boolean).join(" ");return u.jsxs("div",{...m,className:O,style:b,children:[u.jsx("input",{id:v,checked:r,disabled:t,name:s,onChange:M=>x({target:{checked:M.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>x({target:{checked:!r,name:s,type:"radio"}}),className:it.svg,style:z,children:[u.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:E}),r&&u.jsx("circle",{cx:"50",cy:"50",r:"25",style:L})]}),l&&u.jsx(Ae,{htmlFor:v,className:it.label,style:{paddingBottom:0,...d},color:w.radioColor,disabled:t,error:o,children:l})]})};function Oo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...d}){return u.jsx(me,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:c,onChange:f,name:m,error:h})=>u.jsx(ct,{...d,name:m,checked:c===l,onChange:()=>f(l),error:h,label:r})})}function Do({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return u.jsx(me,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:d,onChange:c,name:f,error:m})=>u.jsx(u.Fragment,{children:o.map(h=>u.jsx(ct,{name:f,checked:d===h.value,onChange:()=>c(h.value),label:h.label,disabled:s||h.disabled,error:m},h.value))})})}function Io({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:d=!0}){return u.jsx(me,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:d,labelProps:{style:{marginBottom:".25em"}},children:({value:c,onChange:f,name:m,error:h})=>{const v=Array.isArray(c)?c:[],S=(_,w)=>{f(w?[...v,_]:v.filter(x=>x!==_))};return u.jsx(u.Fragment,{children:o?o.map(_=>u.jsx(Pe,{name:`${m}[]`,checked:v.includes(_.value),onChange:w=>S(_.value,w.target.checked),label:_.label,disabled:n||_.disabled,error:h},_.value)):p.Children.map(s,_=>{if(p.isValidElement(_)&&_.type===Pe){const w=_.props.value||_.props.name;return p.cloneElement(_,{name:`${m}[]`,checked:v.includes(w),onChange:x=>S(w,x.target.checked),error:h||_.props.error,disabled:n||_.props.disabled})}return _})})}})}const $e={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},To=({compact:e,color:r,visible:t,border:o})=>{const s=D(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},yr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:d})=>{const c=To({compact:t,color:e,visible:r,border:n}),f=[$e.hamburger,s?$e.open:"",l].filter(Boolean).join(" ");return u.jsxs("button",{ref:o,className:f,onClick:()=>a(!s),style:{...c,...d},"aria-label":"Toggle menu","aria-expanded":s,children:[u.jsx("div",{className:$e.line}),u.jsx("div",{className:$e.line}),u.jsx("div",{className:$e.line})]})},pr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Wo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:d,backgroundColor:c,color:f}={})=>{const m=D();return{"--header-max-width":r||m.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||m.layout.paddingSm:a||m.layout.padding,"--header-margin":l,"--header-gap":d,backgroundColor:c,color:f}},oe=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return p.useSyncExternalStore(t,o,s)},gr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:c,breakpoint:f,fixed:m=!1,children:h,className:v,style:S,headerProps:_})=>{const w=D(),x=f||w.breakpoints.sm,{maxWidth:b,unit:z}=ve(x),E=oe(`(max-width: ${b}${z})`),L=Wo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:d,gap:c,backgroundColor:e,color:r}),O=[pr.container,v].filter(Boolean).join(" "),M=m?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return u.jsx("header",{..._,className:pr.header,style:M,children:u.jsx("div",{className:O,style:{...L,...S},children:h})})},we={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},ce={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"};function jo(e,r){const[t,o]=p.useState(!1),[s,n]=p.useState(!1);p.useEffect(()=>{r==="panel"&&(e?o(!0):n(!1))},[e,r]),p.useEffect(()=>{if(r!=="panel"||!t||!e)return;let l,d;return l=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>n(!0))}),()=>{cancelAnimationFrame(l),cancelAnimationFrame(d)}},[t,e,r]);const a=p.useCallback(()=>{s||o(!1)},[s]);return{panelMounted:t,panelVisible:s,handleTransitionEnd:a}}function _r(e){const[r,t]=e.split("-");return{side:r,align:t??"center"}}const Ho={start:0,center:.5,end:1},Uo={start:"0",center:"-50%",end:"-100%"};function qo(e,r,t,o){const s=r==="top"||r==="bottom",n={top:e.top-o,bottom:e.bottom+o,left:e.left-o,right:e.right+o}[r],a=r==="top"||r==="left"?"-100%":"0",l=s?e.left:e.top,d=s?e.width:e.height,c=l+d*Ho[t],f=Uo[t],[m,h,v,S]=s?[c,n,f,a]:[n,c,a,f];return{position:"fixed",zIndex:999,left:m,top:h,transform:`translate(${v}, ${S})`}}function vr({open:e,triggerRef:r,side:t,align:o="center",offset:s=8,enabled:n=!0}){const[a,l]=p.useState({}),d=p.useCallback(()=>{if(!n||!r.current)return;const c=r.current.getBoundingClientRect();l(qo(c,t,o,s))},[n,r,t,o,s]);return p.useEffect(()=>{e&&n&&d()},[e,n,d]),p.useEffect(()=>{if(!(!e||!n))return window.addEventListener("scroll",d,!0),window.addEventListener("resize",d),()=>{window.removeEventListener("scroll",d,!0),window.removeEventListener("resize",d)}},[e,n,d]),{positionStyle:a,updatePosition:d}}const dt=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:l="75%",backdropColor:d="rgba(0, 0, 0, 0.5)",hideCloseButton:c=!1,closeOnBackdropClick:f=!0,className:m,style:h,popoverProps:v})=>{const S=D(),_=o!==void 0,[w,x]=p.useState(!1),b=_?o:w,z=p.useRef(null),E=p.useRef(null),L=p.useCallback(U=>{_||x(U),s==null||s(U)},[_,s]),O=p.useCallback(()=>L(!b),[b,L]),M=p.useCallback(()=>L(!1),[L]),{panelMounted:j,panelVisible:A,handleTransitionEnd:G}=jo(b,t),{side:Z,align:B}=_r(n),{positionStyle:P}=vr({open:b,triggerRef:z,side:Z,align:B,offset:4,enabled:t==="popup"});p.useEffect(()=>{if(!b||t!=="popup")return;const U=de=>{var fe,_e;(fe=E.current)!=null&&fe.contains(de.target)||(_e=z.current)!=null&&_e.contains(de.target)||M()};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[b,t,M]),p.useEffect(()=>{if(!b)return;const U=de=>{de.key==="Escape"&&M()};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[b,M]),p.useEffect(()=>{if(!b||t!=="panel")return;const U=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${U}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,U)}},[b,t]);const T=e?typeof e=="function"?e({onClick:O,isOpen:b}):u.jsx("span",{onClick:O,style:{cursor:"pointer",display:"contents"},children:e}):null,J=e?u.jsx("span",{ref:z,className:ce.triggerWrapper,children:T}):null;if(t==="popup"){const U={backgroundColor:S.colors.secondaryBackground,borderRadius:S.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...P,...h};return u.jsxs(u.Fragment,{children:[J,b&&Le.createPortal(u.jsx("div",{ref:E,className:[ce.popup,m].filter(Boolean).join(" "),style:U,...v,children:r}),document.body)]})}const Y={width:l,backgroundColor:S.colors.secondaryBackground,...h};return u.jsxs(u.Fragment,{children:[J,j&&Le.createPortal(u.jsxs("div",{className:[ce.panelOverlay,A?ce.panelOverlayVisible:""].filter(Boolean).join(" "),children:[u.jsx("div",{className:ce.backdrop,style:{backgroundColor:A?d:"transparent"},onClick:f?M:void 0,role:"presentation"}),u.jsxs("div",{ref:E,className:[ce.panel,a==="right"?ce.panelRight:ce.panelLeft,A?ce.panelOpen:"",m].filter(Boolean).join(" "),style:Y,role:"dialog","aria-modal":"true",onTransitionEnd:G,...v,children:[!c&&u.jsx("button",{className:ce.panelCloseButton,onClick:M,"aria-label":"Close panel",type:"button",children:u.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:u.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},Go=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=D();return p.useMemo(()=>e?{navStyles:{...(t==null?void 0:t.backgroundColor)&&{backgroundColor:t.backgroundColor},color:(t==null?void 0:t.color)||s.fonts.color,...t==null?void 0:t.style}}:{navStyles:{...(o==null?void 0:o.backgroundColor)&&{backgroundColor:o.backgroundColor},color:(o==null?void 0:o.color)||s.fonts.color,...o==null?void 0:o.style}},[e,r,t,o,s])},br=p.createContext({isMobile:!1,setOpen:()=>{}}),Zo=({open:e,setOpen:r,hamburgerRef:t,isCompact:o,mobile:s,panelWidth:n,side:a,navClassName:l,cssProps:d,navProps:c,content:f,onNavClick:m})=>{const{backgroundColor:h,...v}=d;return u.jsx(dt,{variant:"panel",side:a||"right",panelWidth:n||"75%",isOpen:e,onOpenChange:r,style:h?{backgroundColor:h}:void 0,trigger:({onClick:S})=>u.jsx(yr,{hamburgerRef:t,visible:!0,compact:o,open:!1,setOpen:_=>S(),...s==null?void 0:s.hamburgerProps}),children:u.jsxs("nav",{...c,className:l,style:v,onClickCapture:m,children:[u.jsx("div",{className:we.navHeader}),typeof f=="function"?f({setOpen:r}):f]})})},Ko=({setOpen:e,navClassName:r,cssProps:t,navProps:o,content:s})=>u.jsx("nav",{...o,className:r,style:t,children:typeof s=="function"?s({setOpen:e}):s}),Qo=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:l=!1})=>{const[d,c]=p.useState(!1),f=p.useRef(null),h={...D().breakpoints,...t},{maxWidth:v,unit:S}=ve(h.md),{maxWidth:_,unit:w}=ve(h.sm),x=oe(`(max-width: ${v}${S})`),b=oe(`(max-width: ${_}${w})`),z=l?!1:x,E=l?!1:b,{navStyles:L}=Go({isMobile:z,isCompact:E,mobile:e,desktop:r}),O={...L,...n},M=G=>{const Z=G.target;Z.closest("[data-navdropdown-trigger]")||Z.closest("a, button")&&c(!1)},j=[we.nav,we.navMobile,E||e!=null&&e.compact?we.compact:"",s].filter(Boolean).join(" "),A=[we.nav,we.navDesktop,s].filter(Boolean).join(" ");return u.jsx(br.Provider,{value:{isMobile:z,setOpen:c},children:z?u.jsx(Zo,{open:d,setOpen:c,hamburgerRef:f,isCompact:E,mobile:e,panelWidth:e==null?void 0:e.panelWidth,side:e==null?void 0:e.side,navClassName:j,cssProps:O,navProps:a,content:(e==null?void 0:e.content)||o,onNavClick:M}):u.jsx(Ko,{setOpen:c,navClassName:A,cssProps:O,navProps:a,content:(r==null?void 0:r.content)||o})})},ut={trigger:"NavDropdown-module__trigger___1PQZp",chevron:"NavDropdown-module__chevron___ZLAV7",chevronOpen:"NavDropdown-module__chevronOpen___9mgjr"};function ft({isActive:e=!1,hoverOpacity:r=.5,color:t}={}){const o=D(),[s,n]=p.useState(!1);return{style:{color:t||o.fonts.color,fontWeight:700,textDecoration:"none",opacity:e||s?r:1},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}}const Xo=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,hoverOpacity:a,className:l,style:d,buttonProps:c})=>{const[f,m]=p.useState(!1),{style:h,onMouseEnter:v,onMouseLeave:S}=ft({isActive:f,color:n,hoverOpacity:a});return u.jsx(dt,{variant:t,side:o,panelWidth:s,isOpen:f,onOpenChange:m,trigger:({onClick:_})=>u.jsxs("button",{type:"button",className:[ut.trigger,l].filter(Boolean).join(" "),style:{...h,...d},"data-navdropdown-trigger":!0,onClick:_,onMouseEnter:v,onMouseLeave:S,...c,children:[e,u.jsx("span",{className:[ut.chevron,f?ut.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},Jo=({isActive:e,hoverOpacity:r,color:t,children:o})=>{const{style:s,onMouseEnter:n,onMouseLeave:a}=ft({isActive:e,hoverOpacity:r,color:t});return p.cloneElement(o,{style:{...s,...o.props.style},onMouseEnter:l=>{var d,c;n(),(c=(d=o.props).onMouseEnter)==null||c.call(d,l)},onMouseLeave:l=>{var d,c;a(),(c=(d=o.props).onMouseLeave)==null||c.call(d,l)}})},mt=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=D(),l=e||a.colors.primary,d=r||a.colors.secondary,c=u.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${d}`}}),f=u.jsxs(u.Fragment,{children:[c,u.jsx("style",{children:`
|
|
34
34
|
@keyframes spin {
|
|
35
35
|
0% { transform: rotate(0deg); }
|
|
36
36
|
100% { transform: rotate(360deg); }
|
|
37
37
|
}
|
|
38
|
-
`})]});return t?u.jsx("div",{...n,"data-loading":"true",className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:m}):m},Yo=({children:e,loadingComponent:r})=>{const[t,o]=_.useState(!1);return _.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?u.jsx(u.Fragment,{children:e}):r||u.jsx(mt,{})},pe={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},ht={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},Sr=({direction:e="row",gap:r="0.5em",children:t,className:o,style:s,divProps:n})=>{const a=[ht.stack,e==="column"?ht.vertical:ht.horizontal,o].filter(Boolean).join(" ");return u.jsx("div",{...n,className:a,style:{gap:r,...s},children:t})},kr=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:d,width:c="500px",maxWidth:m="90vw",backgroundColor:f,backdropColor:h="rgba(0, 0, 0, 0.5)",className:b,style:k,divProps:g})=>{const F=P(),V=_.useRef(null),v=_.useRef(null),{maxWidth:z}=ve(F.breakpoints.md),$=oe(`(max-width: ${z-1}px)`);_.useEffect(()=>{if(e)return v.current=document.activeElement,document.body.style.overflow="hidden",V.current&&V.current.focus(),()=>{document.body.style.overflow="",v.current&&v.current.focus()}},[e]),_.useEffect(()=>{if(!e||!a)return;const M=G=>{G.key==="Escape"&&r()};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[e,a,r]);const L=M=>{M.target===M.currentTarget&&n&&r()};if(!e)return null;const D={width:c,maxWidth:m,backgroundColor:f||F.colors.secondary,borderRadius:F.border.radius,...k},O={backgroundColor:h},H=u.jsx("div",{className:pe.backdrop,style:O,onClick:L,role:"presentation",children:u.jsxs("div",{ref:V,className:[pe.modal,b].filter(Boolean).join(" "),style:D,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,...g,children:[u.jsxs("div",{className:pe.header,children:[o&&u.jsx("h2",{id:"modal-title",className:pe.title,children:o}),!s&&u.jsx("button",{className:pe.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:u.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:u.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u.jsx("div",{className:pe.content,children:t}),l.length>0&&u.jsx(Sr,{direction:$?"column":"row",className:pe.actions,children:l.map((M,G)=>u.jsx(Ft,{color:M.color,outline:M.variant==="outline",disabled:M.disabled,onClick:()=>{M.onClick?M.onClick(d||r):d?d(M.value):r()},children:M.label},G))})]})});return $e.createPortal(H,document.body)},wr=_.createContext(null),Ro=({children:e})=>{const[r,t]=_.useState(null),o=_.useCallback(c=>new Promise((m,f)=>{const h=Math.random().toString(36).substr(2,9);t({id:h,content:c.content,title:c.title,actions:c.actions,options:c.options,resolve:m,reject:f})}),[]),s=_.useCallback(c=>{t(m=>(m&&m.resolve(c),null))},[]),n=_.useCallback(c=>o({title:c.title||"Confirm",content:c.message,actions:[{label:c.cancelLabel||"Cancel",variant:"outline",onClick:m=>m(!1)},{label:c.confirmLabel||"Confirm",color:c.confirmColor,onClick:m=>m(!0)}],options:c.options}),[o]),a=_.useCallback(c=>o({title:c.title||"Alert",content:c.message,actions:[{label:c.okLabel||"OK",color:c.okColor,onClick:m=>m()}],options:c.options}),[o]),l=_.useCallback(()=>{s()},[s]),d=_.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return u.jsxs(wr.Provider,{value:d,children:[e,r&&u.jsx(kr,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},es=()=>{const e=_.useContext(wr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},Cr=({children:e,className:r,style:t,padding:o="0.5em",border:s=!1,backgroundColor:n,divProps:a})=>{const l=P();return u.jsx("div",{...a,className:r,style:{padding:o,borderRadius:l.border.radius,fontSize:"1em",backgroundColor:n??l.cards.backgroundColor,...s&&{borderWidth:l.border.width,borderStyle:"solid",borderColor:l.colors.primary},...t},children:e})},Fr={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},xr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:c,verticalRhythm:m=3,children:f,className:h,style:b,sectionProps:k})=>{const g=P(),F=oe(`(min-width: ${g.breakpoints.sm})`),V={backgroundColor:e,color:r||g.fonts.color,margin:d,...b},v=`calc(${g.fonts.rhythm} * ${m})`,z=F?a||g.layout.padding:l||g.layout.paddingSm,$={"--max-width":t||g.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${v} ${z}`,"--gap":c},L=[Fr.section,h].filter(Boolean).join(" ");return u.jsx("section",{...k,className:L,style:V,children:u.jsx("div",{className:Fr.innerDiv,style:$,children:f})})},zr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},ts=({isMd:e=!1,isLg:r=!1,theme:t})=>_.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),rs=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=P(),l=[zr.hero,o].filter(Boolean).join(" "),d=(r==null?void 0:r.md)||a.breakpoints.md,c=(r==null?void 0:r.lg)||a.breakpoints.lg,m=oe(`(min-width: ${d})`),f=oe(`(min-width: ${c})`),h=ts({isMd:m,isLg:f,theme:a});return u.jsx(xr,{className:l,color:e||a.fonts.color,style:{...h,...s},...n,children:u.jsx("div",{className:zr.content,children:t})})},Vr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},os=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:d,backgroundColor:c,color:m}={})=>{const f=P();return{maxWidth:r||f.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||f.layout.paddingSm:a||f.layout.padding,margin:l,gap:d,backgroundColor:c,color:m||f.fonts.color}},Er=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:c,breakPoint:m,children:f,className:h,style:b,footerProps:k})=>{const g=P(),F=m||g.breakpoints.sm,{maxWidth:V,unit:v}=ve(F),z=oe(`(max-width: ${V}${v})`),$=os({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:d,gap:c,backgroundColor:e,color:r}),L=[Vr.container,h].filter(Boolean).join(" ");return u.jsx("footer",{...k,className:Vr.footer,children:u.jsx("div",{className:L,style:{...$,...b},children:f})})},je={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},ss=({isMd:e=!1,theme:r})=>_.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),ns=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=P(),d=[je.card,s].filter(Boolean).join(" "),c=e||l.breakpoints.md,m=oe(`(min-width: ${c})`),f=ss({isMd:m,theme:l});return u.jsxs("div",{...a,className:d,style:{...f,...n},children:[r&&u.jsx("div",{className:je.icon,children:r}),u.jsx("h3",{className:je.title,children:t}),u.jsx("div",{className:je.content,children:o})]})},as={grid:"FeatureGrid-module__grid___6sW6f"},ls=({columns:e,isMd:r=!1,isLg:t=!1})=>_.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),is=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n})=>{const a=P(),l=(r==null?void 0:r.md)||a.breakpoints.md,d=(r==null?void 0:r.lg)||a.breakpoints.lg,c=oe(`(min-width: ${l})`),m=oe(`(min-width: ${d})`),h={...ls({columns:e,isMd:c,isLg:m}),gap:t,...n};return u.jsx("div",{className:[as.grid,s].filter(Boolean).join(" "),style:h,children:o})},Ce={card:"MediaCard-module__card___9pZ7C",clickable:"MediaCard-module__clickable___Rae9n",vertical:"MediaCard-module__vertical___GWtOA",imageWrapper:"MediaCard-module__imageWrapper___HUiag",horizontal:"MediaCard-module__horizontal___qlK4y",content:"MediaCard-module__content___MlqE4"},cs=({direction:e="column",imageSlot:r,imageWidth:t,border:o,backgroundColor:s,padding:n="0",children:a,className:l,style:d,onClick:c,actions:m,divProps:f})=>{const h=[Ce.card,e==="row"?Ce.horizontal:Ce.vertical,c?Ce.clickable:void 0,l].filter(Boolean).join(" "),b=k=>{c&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c())};return u.jsxs(Cr,{border:o,backgroundColor:s,padding:n,className:h,style:{...t&&e==="row"&&{"--media-card-image-width":t},...d},divProps:{...f,onClick:c,onKeyDown:c?b:void 0,role:c?"button":void 0,tabIndex:c?0:void 0},children:[r&&u.jsx("div",{className:Ce.imageWrapper,children:r}),u.jsx("div",{className:Ce.content,children:a}),m]})},yt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},ds=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:d})=>{const c=[yt.layoutContainer,o].filter(Boolean).join(" ");return u.jsxs("div",{...l,className:c,style:s,children:[u.jsxs("div",{className:yt.content,children:[e&&u.jsx(_r,{...n,children:e}),u.jsx("main",{...d,className:yt.main,children:t})]}),r&&u.jsx(Er,{...a,children:r})]})},ie={dropzone:"FileUpload-module__dropzone___jqua0",loading:"FileUpload-module__loading___C7PsH",dragOver:"FileUpload-module__dragOver___q1zPo",hiddenInput:"FileUpload-module__hiddenInput___RLLPJ",content:"FileUpload-module__content___yCP0l",contentHidden:"FileUpload-module__contentHidden___0Ewoe",spinnerOverlay:"FileUpload-module__spinnerOverlay___e3Rle",label:"FileUpload-module__label___lbMkx",hint:"FileUpload-module__hint___8dXlk",errorMessage:"FileUpload-module__errorMessage___8HB3n"},us=({color:e})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:e,width:"48",height:"48","aria-hidden":!0,children:u.jsx("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"})}),fs=({onUpload:e,accept:r,maxSizeBytes:t,loading:o=!1,error:s,label:n="Click or drag & drop a file here",className:a,style:l,divProps:d,inputProps:c})=>{const m=P(),f=_.useRef(null),[h,b]=_.useState(!1),[k,g]=_.useState(null),F=s||k,V=F?m.colors.error:m.colors.primary,v=F?m.colors.error:m.colors.primary,z=_.useCallback(B=>{if(g(null),t&&B.size>t){const A=(t/1048576).toFixed(1);g(`File exceeds maximum size of ${A} MB`);return}e(B)},[t,e]),$=()=>{var B;o||(B=f.current)==null||B.click()},L=B=>{var A;(B.key==="Enter"||B.key===" ")&&!o&&(B.preventDefault(),(A=f.current)==null||A.click())},D=B=>{var I;const A=(I=B.target.files)==null?void 0:I[0];A&&z(A),B.target.value=""},O=B=>{B.preventDefault(),o||b(!0)},H=()=>b(!1),M=B=>{var I;if(B.preventDefault(),b(!1),o)return;const A=(I=B.dataTransfer.files)==null?void 0:I[0];A&&z(A)},G=[ie.dropzone,h&&ie.dragOver,o&&ie.loading,a].filter(Boolean).join(" "),Z={"--upload-color":V,borderColor:V,borderWidth:m.border.width,borderRadius:m.border.radius,fontSize:"1em",color:v,...l};return u.jsxs("div",{...d,className:G,style:Z,onClick:$,onKeyDown:L,onDragOver:O,onDragLeave:H,onDrop:M,role:"button",tabIndex:o?-1:0,"aria-disabled":o,"aria-label":n,children:[u.jsx("input",{...c,ref:f,type:"file",accept:r,onChange:D,disabled:o,className:ie.hiddenInput,tabIndex:-1,"aria-hidden":!0}),o&&u.jsx(mt,{fullScreen:!1,className:ie.spinnerOverlay,style:{fontSize:"1.5em"}}),u.jsxs("div",{className:[ie.content,o&&ie.contentHidden].filter(Boolean).join(" "),"aria-hidden":o||void 0,children:[u.jsx(us,{color:V}),u.jsx("span",{className:ie.label,children:n}),r&&u.jsxs("span",{className:ie.hint,children:["Accepted: ",r]}),t&&u.jsxs("span",{className:ie.hint,children:["Max size: ",(t/(1024*1024)).toFixed(1)," MB"]}),F&&u.jsx("span",{className:ie.errorMessage,role:"alert",children:F})]})]})},pt={container:"Image-module__container___sVJdZ",img:"Image-module__img___pKhPw",fallback:"Image-module__fallback___wysuM"},ms={skeleton:"Skeleton-module__skeleton___CB4uF"},_t=({className:e,style:r,divProps:t})=>{const o=P(),s=[ms.skeleton,e].filter(Boolean).join(" ");return u.jsx("div",{...t,className:s,style:{borderRadius:o.border.radius,...r},"aria-label":"Loading","aria-busy":!0})},hs=({src:e,alt:r="",aspectRatio:t="1 / 1",loading:o=!1,skeletonDelay:s=150,fallback:n,className:a,style:l,imgProps:d})=>{const c=P(),[m,f]=_.useState(null),[h,b]=_.useState(null),[k,g]=_.useState(null),F=m===e,V=h===e,v=k===e;_.useEffect(()=>{if(!e)return;const H=setTimeout(()=>g(e),s);return()=>clearTimeout(H)},[e,s]);const z=o||!!e&&!F&&!V&&v,$=!o&&(!e||V),L=!o&&!!e&&!V,D=[pt.container,a].filter(Boolean).join(" "),O={aspectRatio:t,borderRadius:c.border.radius,...l};return u.jsxs("div",{className:D,style:O,"aria-label":$?r||"Image placeholder":void 0,"aria-busy":z||void 0,children:[z&&u.jsx(_t,{style:{borderRadius:"inherit",position:"absolute",inset:0}}),$&&u.jsx("div",{className:pt.fallback,children:n??null}),L&&u.jsx("img",{...d,src:e,alt:r,className:pt.img,style:{opacity:F?1:0},onLoad:()=>e&&f(e),onError:()=>e&&b(e)})]})},_e={thumbnail:"ImageThumbnail-module__thumbnail___-igbe",img:"ImageThumbnail-module__img___Q7Z4V",sizeXs:"ImageThumbnail-module__sizeXs___TvSHV",sizeSmall:"ImageThumbnail-module__sizeSmall___2KnCh",sizeDefault:"ImageThumbnail-module__sizeDefault___laoQk",sizeLarge:"ImageThumbnail-module__sizeLarge___iwz3o",removeButton:"ImageThumbnail-module__removeButton___Ceh1Q"},ys={xs:_e.sizeXs,small:_e.sizeSmall,default:_e.sizeDefault,large:_e.sizeLarge},ps=({color:e})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"1.5",width:"40%",height:"40%","aria-hidden":!0,children:[u.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),u.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),u.jsx("polyline",{points:"21 15 16 10 5 21"})]}),_s=({src:e,alt:r="",size:t="default",loading:o=!1,skeletonDelay:s=500,onRemove:n,removeLabel:a="Remove",fallback:l,className:d,style:c,imgProps:m})=>{const f=P(),[h,b]=_.useState(null),[k,g]=_.useState(null),[F,V]=_.useState(null),v=h===e,z=k===e,$=F===e;_.useEffect(()=>{if(!e)return;const Z=setTimeout(()=>V(e),s);return()=>clearTimeout(Z)},[e,s]);const L=o||!!e&&!v&&!z&&$,D=!o&&(!e||z),O=!o&&!!e&&!z,H=[_e.thumbnail,ys[t],d].filter(Boolean).join(" "),M={borderRadius:f.border.radius,...c},G={background:f.colors.primary,color:f.buttons.primary.textColor,borderRadius:"50%"};return u.jsxs("div",{className:H,style:M,"aria-label":D?r||"Image placeholder":void 0,"aria-busy":L||void 0,children:[L&&u.jsx(_t,{style:{borderRadius:"inherit",position:"absolute",inset:0}}),D&&(l??u.jsx(ps,{color:f.colors.primary})),O&&u.jsx("img",{...m,src:e,alt:r,className:_e.img,style:{opacity:v?1:0},onLoad:()=>e&&b(e),onError:()=>e&&g(e)}),n&&u.jsx("button",{type:"button",className:_e.removeButton,style:G,onClick:Z=>{Z.stopPropagation(),n()},"aria-label":a,children:u.jsxs("svg",{viewBox:"0 0 10 10",width:"60%",height:"60%",fill:"none",stroke:"currentColor",strokeWidth:f.fonts.fontWeightHeader>=700?2:1.5,"aria-hidden":!0,children:[u.jsx("line",{x1:"2",y1:"2",x2:"8",y2:"8"}),u.jsx("line",{x1:"8",y1:"2",x2:"2",y2:"8"})]})})]})},gs=({level:e,tag:r,className:t,style:o,children:s})=>{const n=P(),a=r??`h${e}`,l=n.typography.heading[a],c=`dr-heading-${_.useId().replace(/:/g,"")}`,m=_.useMemo(()=>{const k=[];return l.mdFontSize&&k.push(`@media (max-width: ${n.breakpoints.md}) { .${c} { font-size: ${l.mdFontSize}; } }`),l.smFontSize&&k.push(`@media (max-width: ${n.breakpoints.sm}) { .${c} { font-size: ${l.smFontSize}; } }`),k.join(`
|
|
39
|
-
`)},[c,l.mdFontSize,l.smFontSize,n.breakpoints.md,n.breakpoints.sm]),
|
|
38
|
+
`})]});return t?u.jsx("div",{...n,"data-loading":"true",className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:f}):f},Yo=({children:e,loadingComponent:r})=>{const[t,o]=p.useState(!1);return p.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?u.jsx(u.Fragment,{children:e}):r||u.jsx(mt,{})},pe={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},ht={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},Sr=({direction:e="row",gap:r="0.5em",children:t,className:o,style:s,divProps:n})=>{const a=[ht.stack,e==="column"?ht.vertical:ht.horizontal,o].filter(Boolean).join(" ");return u.jsx("div",{...n,className:a,style:{gap:r,...s},children:t})},kr=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:d,width:c="500px",maxWidth:f="90vw",backgroundColor:m,backdropColor:h="rgba(0, 0, 0, 0.5)",className:v,style:S,divProps:_})=>{const w=D(),x=p.useRef(null),b=p.useRef(null),{maxWidth:z}=ve(w.breakpoints.md),E=oe(`(max-width: ${z-1}px)`);p.useEffect(()=>{if(e)return b.current=document.activeElement,document.body.style.overflow="hidden",x.current&&x.current.focus(),()=>{document.body.style.overflow="",b.current&&b.current.focus()}},[e]),p.useEffect(()=>{if(!e||!a)return;const A=G=>{G.key==="Escape"&&r()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[e,a,r]);const L=A=>{A.target===A.currentTarget&&n&&r()};if(!e)return null;const O={width:c,maxWidth:f,backgroundColor:m||w.colors.secondary,borderRadius:w.border.radius,...S},M={backgroundColor:h},j=u.jsx("div",{className:pe.backdrop,style:M,onClick:L,role:"presentation",children:u.jsxs("div",{ref:x,className:[pe.modal,v].filter(Boolean).join(" "),style:O,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,..._,children:[u.jsxs("div",{className:pe.header,children:[o&&u.jsx("h2",{id:"modal-title",className:pe.title,children:o}),!s&&u.jsx("button",{className:pe.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:u.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:u.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u.jsx("div",{className:pe.content,children:t}),l.length>0&&u.jsx(Sr,{direction:E?"column":"row",className:pe.actions,children:l.map((A,G)=>u.jsx(Ft,{color:A.color,outline:A.variant==="outline",disabled:A.disabled,onClick:()=>{A.onClick?A.onClick(d||r):d?d(A.value):r()},children:A.label},G))})]})});return Le.createPortal(j,document.body)},wr=p.createContext(null),Ro=({children:e})=>{const[r,t]=p.useState(null),o=p.useCallback(c=>new Promise((f,m)=>{const h=Math.random().toString(36).substr(2,9);t({id:h,content:c.content,title:c.title,actions:c.actions,options:c.options,resolve:f,reject:m})}),[]),s=p.useCallback(c=>{t(f=>(f&&f.resolve(c),null))},[]),n=p.useCallback(c=>o({title:c.title||"Confirm",content:c.message,actions:[{label:c.cancelLabel||"Cancel",variant:"outline",onClick:f=>f(!1)},{label:c.confirmLabel||"Confirm",color:c.confirmColor,onClick:f=>f(!0)}],options:c.options}),[o]),a=p.useCallback(c=>o({title:c.title||"Alert",content:c.message,actions:[{label:c.okLabel||"OK",color:c.okColor,onClick:f=>f()}],options:c.options}),[o]),l=p.useCallback(()=>{s()},[s]),d=p.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return u.jsxs(wr.Provider,{value:d,children:[e,r&&u.jsx(kr,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},es=()=>{const e=p.useContext(wr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},Cr=({children:e,className:r,style:t,padding:o="0.5em",border:s=!1,backgroundColor:n,divProps:a})=>{const l=D();return u.jsx("div",{...a,className:r,style:{padding:o,borderRadius:l.border.radius,fontSize:"1em",backgroundColor:n??l.cards.backgroundColor,...s&&{borderWidth:l.border.width,borderStyle:"solid",borderColor:l.colors.primary},...t},children:e})},ts={xs:{chevronButton:"0.75em",headerPadding:"0.1em 0.25em",bodyPadding:"0 0.5em 0.5em 1.5em"},small:{chevronButton:"1em",headerPadding:"0.25em 0.25em",bodyPadding:"0 0.5em 0.75em 1.75em"},default:{chevronButton:"1.5em",headerPadding:"0.75em 0.25em",bodyPadding:"0 0.5em 1em 2em"},large:{chevronButton:"2em",headerPadding:"1em 0.25em",bodyPadding:"0 0.5em 1.25em 2.5em"}},rs=({header:e,children:r,className:t,style:o,defaultOpen:s=!1,open:n,onOpenChange:a,border:l=!1,hideChevron:d=!1,headerPadding:c,bodyPadding:f,size:m="default",chevronStyle:h})=>{const v=D(),S=p.useId(),_=`collapsible-header-${S}`,w=`collapsible-body-${S}`,x=ts[m],b=c??x.headerPadding,z=f??x.bodyPadding,E=n!==void 0,[L,O]=p.useState(s),M=E?n:L,j=p.useCallback(()=>{const A=!M;E||O(A),a==null||a(A)},[M,E,a]);return u.jsxs("div",{className:t,style:{borderRadius:v.border.radius,...l&&{borderWidth:v.border.width,borderStyle:"solid",borderColor:`${v.colors.primary}33`},...o},children:[u.jsxs("div",{id:_,style:{display:"flex",alignItems:"center",gap:"0.15em",padding:b,userSelect:"none"},children:[!d&&u.jsx("button",{type:"button",onClick:j,"aria-expanded":M,"aria-controls":w,"aria-label":M?"Collapse":"Expand",title:M?"Collapse":"Expand",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:x.chevronButton,height:x.chevronButton,background:"transparent",border:"none",padding:0,cursor:"pointer",color:"inherit",flexShrink:0,...h},children:u.jsx(os,{open:M})}),u.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"0.5em"},children:e})]}),M&&u.jsx("div",{id:w,role:"region","aria-labelledby":_,style:{padding:z},children:r})]})},os=({open:e})=>u.jsx("svg",{width:"0.75em",height:"0.75em",viewBox:"0 0 12 12","aria-hidden":"true",style:{transform:e?"rotate(0deg)":"rotate(-90deg)"},children:u.jsx("path",{d:"M2 4 L6 8 L10 4",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})}),Fr={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},xr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:c,verticalRhythm:f=3,children:m,className:h,style:v,sectionProps:S})=>{const _=D(),w=oe(`(min-width: ${_.breakpoints.sm})`),x={backgroundColor:e,color:r||_.fonts.color,margin:d,...v},b=`calc(${_.fonts.rhythm} * ${f})`,z=w?a||_.layout.padding:l||_.layout.paddingSm,E={"--max-width":t||_.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${b} ${z}`,"--gap":c},L=[Fr.section,h].filter(Boolean).join(" ");return u.jsx("section",{...S,className:L,style:x,children:u.jsx("div",{className:Fr.innerDiv,style:E,children:m})})},zr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},ss=({isMd:e=!1,isLg:r=!1,theme:t})=>p.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),ns=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=D(),l=[zr.hero,o].filter(Boolean).join(" "),d=(r==null?void 0:r.md)||a.breakpoints.md,c=(r==null?void 0:r.lg)||a.breakpoints.lg,f=oe(`(min-width: ${d})`),m=oe(`(min-width: ${c})`),h=ss({isMd:f,isLg:m,theme:a});return u.jsx(xr,{className:l,color:e||a.fonts.color,style:{...h,...s},...n,children:u.jsx("div",{className:zr.content,children:t})})},Vr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},as=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:d,backgroundColor:c,color:f}={})=>{const m=D();return{maxWidth:r||m.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||m.layout.paddingSm:a||m.layout.padding,margin:l,gap:d,backgroundColor:c,color:f||m.fonts.color}},Er=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:d,gap:c,breakPoint:f,children:m,className:h,style:v,footerProps:S})=>{const _=D(),w=f||_.breakpoints.sm,{maxWidth:x,unit:b}=ve(w),z=oe(`(max-width: ${x}${b})`),E=as({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:d,gap:c,backgroundColor:e,color:r}),L=[Vr.container,h].filter(Boolean).join(" ");return u.jsx("footer",{...S,className:Vr.footer,children:u.jsx("div",{className:L,style:{...E,...v},children:m})})},je={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},ls=({isMd:e=!1,theme:r})=>p.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),is=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=D(),d=[je.card,s].filter(Boolean).join(" "),c=e||l.breakpoints.md,f=oe(`(min-width: ${c})`),m=ls({isMd:f,theme:l});return u.jsxs("div",{...a,className:d,style:{...m,...n},children:[r&&u.jsx("div",{className:je.icon,children:r}),u.jsx("h3",{className:je.title,children:t}),u.jsx("div",{className:je.content,children:o})]})},cs={grid:"FeatureGrid-module__grid___6sW6f"},ds=({columns:e,isMd:r=!1,isLg:t=!1})=>p.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),us=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n})=>{const a=D(),l=(r==null?void 0:r.md)||a.breakpoints.md,d=(r==null?void 0:r.lg)||a.breakpoints.lg,c=oe(`(min-width: ${l})`),f=oe(`(min-width: ${d})`),h={...ds({columns:e,isMd:c,isLg:f}),gap:t,...n};return u.jsx("div",{className:[cs.grid,s].filter(Boolean).join(" "),style:h,children:o})},Ce={card:"MediaCard-module__card___9pZ7C",clickable:"MediaCard-module__clickable___Rae9n",vertical:"MediaCard-module__vertical___GWtOA",imageWrapper:"MediaCard-module__imageWrapper___HUiag",horizontal:"MediaCard-module__horizontal___qlK4y",content:"MediaCard-module__content___MlqE4"},fs=({direction:e="column",imageSlot:r,imageWidth:t,border:o,backgroundColor:s,padding:n="0",children:a,className:l,style:d,onClick:c,actions:f,divProps:m})=>{const h=[Ce.card,e==="row"?Ce.horizontal:Ce.vertical,c?Ce.clickable:void 0,l].filter(Boolean).join(" "),v=S=>{c&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c())};return u.jsxs(Cr,{border:o,backgroundColor:s,padding:n,className:h,style:{...t&&e==="row"&&{"--media-card-image-width":t},...d},divProps:{...m,onClick:c,onKeyDown:c?v:void 0,role:c?"button":void 0,tabIndex:c?0:void 0},children:[r&&u.jsx("div",{className:Ce.imageWrapper,children:r}),u.jsx("div",{className:Ce.content,children:a}),f]})},yt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},ms=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:d})=>{const c=[yt.layoutContainer,o].filter(Boolean).join(" ");return u.jsxs("div",{...l,className:c,style:s,children:[u.jsxs("div",{className:yt.content,children:[e&&u.jsx(gr,{...n,children:e}),u.jsx("main",{...d,className:yt.main,children:t})]}),r&&u.jsx(Er,{...a,children:r})]})},ie={dropzone:"FileUpload-module__dropzone___jqua0",loading:"FileUpload-module__loading___C7PsH",dragOver:"FileUpload-module__dragOver___q1zPo",hiddenInput:"FileUpload-module__hiddenInput___RLLPJ",content:"FileUpload-module__content___yCP0l",contentHidden:"FileUpload-module__contentHidden___0Ewoe",spinnerOverlay:"FileUpload-module__spinnerOverlay___e3Rle",label:"FileUpload-module__label___lbMkx",hint:"FileUpload-module__hint___8dXlk",errorMessage:"FileUpload-module__errorMessage___8HB3n"},hs=({color:e})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:e,width:"48",height:"48","aria-hidden":!0,children:u.jsx("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"})}),ys=({onUpload:e,accept:r,maxSizeBytes:t,loading:o=!1,error:s,label:n="Click or drag & drop a file here",className:a,style:l,divProps:d,inputProps:c})=>{const f=D(),m=p.useRef(null),[h,v]=p.useState(!1),[S,_]=p.useState(null),w=s||S,x=w?f.colors.error:f.colors.primary,b=w?f.colors.error:f.colors.primary,z=p.useCallback(B=>{if(_(null),t&&B.size>t){const P=(t/1048576).toFixed(1);_(`File exceeds maximum size of ${P} MB`);return}e(B)},[t,e]),E=()=>{var B;o||(B=m.current)==null||B.click()},L=B=>{var P;(B.key==="Enter"||B.key===" ")&&!o&&(B.preventDefault(),(P=m.current)==null||P.click())},O=B=>{var T;const P=(T=B.target.files)==null?void 0:T[0];P&&z(P),B.target.value=""},M=B=>{B.preventDefault(),o||v(!0)},j=()=>v(!1),A=B=>{var T;if(B.preventDefault(),v(!1),o)return;const P=(T=B.dataTransfer.files)==null?void 0:T[0];P&&z(P)},G=[ie.dropzone,h&&ie.dragOver,o&&ie.loading,a].filter(Boolean).join(" "),Z={"--upload-color":x,borderColor:x,borderWidth:f.border.width,borderRadius:f.border.radius,fontSize:"1em",color:b,...l};return u.jsxs("div",{...d,className:G,style:Z,onClick:E,onKeyDown:L,onDragOver:M,onDragLeave:j,onDrop:A,role:"button",tabIndex:o?-1:0,"aria-disabled":o,"aria-label":n,children:[u.jsx("input",{...c,ref:m,type:"file",accept:r,onChange:O,disabled:o,className:ie.hiddenInput,tabIndex:-1,"aria-hidden":!0}),o&&u.jsx(mt,{fullScreen:!1,className:ie.spinnerOverlay,style:{fontSize:"1.5em"}}),u.jsxs("div",{className:[ie.content,o&&ie.contentHidden].filter(Boolean).join(" "),"aria-hidden":o||void 0,children:[u.jsx(hs,{color:x}),u.jsx("span",{className:ie.label,children:n}),r&&u.jsxs("span",{className:ie.hint,children:["Accepted: ",r]}),t&&u.jsxs("span",{className:ie.hint,children:["Max size: ",(t/(1024*1024)).toFixed(1)," MB"]}),w&&u.jsx("span",{className:ie.errorMessage,role:"alert",children:w})]})]})},pt={container:"Image-module__container___sVJdZ",img:"Image-module__img___pKhPw",fallback:"Image-module__fallback___wysuM"},ps={skeleton:"Skeleton-module__skeleton___CB4uF"},gt=({className:e,style:r,divProps:t})=>{const o=D(),s=[ps.skeleton,e].filter(Boolean).join(" ");return u.jsx("div",{...t,className:s,style:{borderRadius:o.border.radius,...r},"aria-label":"Loading","aria-busy":!0})},gs=({src:e,alt:r="",aspectRatio:t="1 / 1",loading:o=!1,skeletonDelay:s=150,fallback:n,className:a,style:l,imgProps:d})=>{const c=D(),[f,m]=p.useState(null),[h,v]=p.useState(null),[S,_]=p.useState(null),w=f===e,x=h===e,b=S===e;p.useEffect(()=>{if(!e)return;const j=setTimeout(()=>_(e),s);return()=>clearTimeout(j)},[e,s]);const z=o||!!e&&!w&&!x&&b,E=!o&&(!e||x),L=!o&&!!e&&!x,O=[pt.container,a].filter(Boolean).join(" "),M={aspectRatio:t,borderRadius:c.border.radius,...l};return u.jsxs("div",{className:O,style:M,"aria-label":E?r||"Image placeholder":void 0,"aria-busy":z||void 0,children:[z&&u.jsx(gt,{style:{borderRadius:"inherit",position:"absolute",inset:0}}),E&&u.jsx("div",{className:pt.fallback,children:n??null}),L&&u.jsx("img",{...d,src:e,alt:r,className:pt.img,style:{opacity:w?1:0},onLoad:()=>e&&m(e),onError:()=>e&&v(e)})]})},ge={thumbnail:"ImageThumbnail-module__thumbnail___-igbe",img:"ImageThumbnail-module__img___Q7Z4V",sizeXs:"ImageThumbnail-module__sizeXs___TvSHV",sizeSmall:"ImageThumbnail-module__sizeSmall___2KnCh",sizeDefault:"ImageThumbnail-module__sizeDefault___laoQk",sizeLarge:"ImageThumbnail-module__sizeLarge___iwz3o",removeButton:"ImageThumbnail-module__removeButton___Ceh1Q"},_s={xs:ge.sizeXs,small:ge.sizeSmall,default:ge.sizeDefault,large:ge.sizeLarge},vs=({color:e})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"1.5",width:"40%",height:"40%","aria-hidden":!0,children:[u.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),u.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),u.jsx("polyline",{points:"21 15 16 10 5 21"})]}),bs=({src:e,alt:r="",size:t="default",loading:o=!1,skeletonDelay:s=500,onRemove:n,removeLabel:a="Remove",fallback:l,className:d,style:c,imgProps:f})=>{const m=D(),[h,v]=p.useState(null),[S,_]=p.useState(null),[w,x]=p.useState(null),b=h===e,z=S===e,E=w===e;p.useEffect(()=>{if(!e)return;const Z=setTimeout(()=>x(e),s);return()=>clearTimeout(Z)},[e,s]);const L=o||!!e&&!b&&!z&&E,O=!o&&(!e||z),M=!o&&!!e&&!z,j=[ge.thumbnail,_s[t],d].filter(Boolean).join(" "),A={borderRadius:m.border.radius,...c},G={background:m.colors.primary,color:m.buttons.primary.textColor,borderRadius:"50%"};return u.jsxs("div",{className:j,style:A,"aria-label":O?r||"Image placeholder":void 0,"aria-busy":L||void 0,children:[L&&u.jsx(gt,{style:{borderRadius:"inherit",position:"absolute",inset:0}}),O&&(l??u.jsx(vs,{color:m.colors.primary})),M&&u.jsx("img",{...f,src:e,alt:r,className:ge.img,style:{opacity:b?1:0},onLoad:()=>e&&v(e),onError:()=>e&&_(e)}),n&&u.jsx("button",{type:"button",className:ge.removeButton,style:G,onClick:Z=>{Z.stopPropagation(),n()},"aria-label":a,children:u.jsxs("svg",{viewBox:"0 0 10 10",width:"60%",height:"60%",fill:"none",stroke:"currentColor",strokeWidth:m.fonts.fontWeightHeader>=700?2:1.5,"aria-hidden":!0,children:[u.jsx("line",{x1:"2",y1:"2",x2:"8",y2:"8"}),u.jsx("line",{x1:"8",y1:"2",x2:"2",y2:"8"})]})})]})},Ss=({level:e,tag:r,className:t,style:o,children:s})=>{const n=D(),a=r??`h${e}`,l=n.typography.heading[a],c=`dr-heading-${p.useId().replace(/:/g,"")}`,f=p.useMemo(()=>{const S=[];return l.mdFontSize&&S.push(`@media (max-width: ${n.breakpoints.md}) { .${c} { font-size: ${l.mdFontSize}; } }`),l.smFontSize&&S.push(`@media (max-width: ${n.breakpoints.sm}) { .${c} { font-size: ${l.smFontSize}; } }`),S.join(`
|
|
39
|
+
`)},[c,l.mdFontSize,l.smFontSize,n.breakpoints.md,n.breakpoints.sm]),m={fontSize:l.fontSize,...l.lineHeight!==void 0&&{lineHeight:l.lineHeight},...l.fontWeight!==void 0&&{fontWeight:l.fontWeight},...o},h=[c,t].filter(Boolean).join(" "),v=`h${e}`;return u.jsxs(u.Fragment,{children:[f&&u.jsx("style",{children:f}),p.createElement(v,{className:h,style:m},s)]})},ks=({size:e="default",as:r="p",className:t,style:o,children:s})=>{const a=D().typography.text[e],l={fontSize:a.fontSize,...a.lineHeight!==void 0&&{lineHeight:a.lineHeight},...o};return p.createElement(r,{className:t,style:l},s)},ws=({variant:e="default",className:r,style:t,children:o})=>{const s=D();let n,a,l;switch(e){case"caption":n=s.typography.text.xs.fontSize,l=700;break;case"subtle":n=s.typography.text.sm.fontSize,a=.7;break;case"default":default:n=s.typography.text.sm.fontSize,l=700;break}const d={fontSize:n,...a!==void 0&&{opacity:a},...l!==void 0&&{fontWeight:l},...t};return u.jsx("span",{className:r,style:d,children:o})},$r={triggerWrapper:"Tooltip-module__triggerWrapper___wMSun",tooltip:"Tooltip-module__tooltip___UA7H9"},Cs=({children:e,content:r,placement:t="top",openDelay:o=200,closeDelay:s=100,offset:n=8,disabled:a=!1,color:l,backgroundColor:d,className:c,style:f,tooltipProps:m})=>{const h=D(),v=p.useRef(null),S=p.useRef(null),_=p.useRef(null),[w,x]=p.useState(!1),b=p.useId(),z=w&&!a&&!!r,{side:E,align:L}=_r(t),{positionStyle:O}=vr({open:z,triggerRef:v,side:E,align:L,offset:n}),M=()=>{S.current&&clearTimeout(S.current),_.current&&clearTimeout(_.current),S.current=null,_.current=null},j=p.useCallback(()=>{M(),S.current=setTimeout(()=>x(!0),o)},[o]),A=p.useCallback(()=>{M(),_.current=setTimeout(()=>x(!1),s)},[s]),G={backgroundColor:d||h.colors.secondaryBackground,color:l,borderRadius:h.border.radius,...O,...f};return u.jsxs(u.Fragment,{children:[u.jsx("span",{ref:v,className:$r.triggerWrapper,onMouseEnter:j,onMouseLeave:A,onFocus:j,onBlur:A,"aria-describedby":z?b:void 0,children:e}),z&&Le.createPortal(u.jsx("div",{id:b,role:"tooltip",className:[$r.tooltip,c].filter(Boolean).join(" "),style:G,...m,children:r}),document.body)]})};$.Button=Ft,$.CSSReset=Kr,$.Card=Cr,$.Checkbox=Pe,$.Collapsible=rs,$.FeatureCard=is,$.FeatureGrid=us,$.FileUpload=ys,$.Footer=Er,$.Form=zo,$.FormCheckbox=Ao,$.FormCheckboxGroup=Io,$.FormError=dr,$.FormField=me,$.FormGroup=ur,$.FormInput=$o,$.FormLabel=Ae,$.FormRadio=Oo,$.FormRadioGroup=Do,$.FormSelect=Mo,$.FormTextarea=No,$.Hamburger=yr,$.Header=gr,$.Heading=Ss,$.Hero=ns,$.Image=gs,$.ImageThumbnail=bs,$.Input=fr,$.Label=ws,$.LoadingSpinner=mt,$.MediaCard=fs,$.Modal=kr,$.ModalProvider=Ro,$.NavDropdown=Xo,$.NavLink=Jo,$.PageLayout=ms,$.Popover=dt,$.Radio=ct,$.ResponsiveNav=Qo,$.ResponsiveNavContext=br,$.ResponsiveSection=xr,$.Select=hr,$.Skeleton=gt,$.Stack=Sr,$.StyleLoader=Yo,$.Text=ks,$.Textarea=mr,$.ThemeProvider=jr,$.Tooltip=Cs,$.parseBreakpoint=ve,$.useFormContext=cr,$.useMediaQuery=oe,$.useModal=es,$.useNavLinkStyles=ft,$.useTheme=D,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export { default as LoadingSpinner } from './components/LoadingSpinner';
|
|
|
20
20
|
export { default as Modal, ModalProvider, useModal } from './components/Modal';
|
|
21
21
|
export { default as Card } from './components/Card';
|
|
22
22
|
export type { CardProps } from './components/Card';
|
|
23
|
+
export { default as Collapsible } from './components/Collapsible';
|
|
24
|
+
export type { CollapsibleProps } from './components/Collapsible';
|
|
23
25
|
export { default as Stack } from './components/Stack';
|
|
24
26
|
export { default as ResponsiveSection } from './components/ResponsiveSection';
|
|
25
27
|
export { default as Hero } from './components/Hero';
|