digital-rabbit-cl 1.2.6 → 1.2.8
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 +26 -9
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/CSSReset/CSSReset.d.ts +2 -2
- package/dist/components/CSSReset/CSSReset.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +20 -8
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/FeatureCard/FeatureCard.d.ts +3 -5
- package/dist/components/FeatureCard/FeatureCard.d.ts.map +1 -1
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +2 -2
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +1 -1
- package/dist/components/Footer/Footer.d.ts +12 -10
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/useFooterStyles.d.ts +11 -3
- package/dist/components/Footer/useFooterStyles.d.ts.map +1 -1
- package/dist/components/FormError/FormError.d.ts +6 -4
- package/dist/components/FormError/FormError.d.ts.map +1 -1
- package/dist/components/FormGroup/FormGroup.d.ts +21 -7
- package/dist/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/dist/components/FormLabel/FormLabel.d.ts +9 -7
- package/dist/components/FormLabel/FormLabel.d.ts.map +1 -1
- package/dist/components/Hamburger/Hamburger.d.ts +3 -2
- package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
- package/dist/components/Hamburger/useHamburgerStyles.d.ts +3 -2
- package/dist/components/Hamburger/useHamburgerStyles.d.ts.map +1 -1
- package/dist/components/Header/Header.d.ts +13 -9
- package/dist/components/Header/Header.d.ts.map +1 -1
- package/dist/components/Header/useHeaderStyles.d.ts +15 -3
- package/dist/components/Header/useHeaderStyles.d.ts.map +1 -1
- package/dist/components/Hero/Hero.d.ts +2 -2
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +20 -11
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +8 -16
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/PageLayout/PageLayout.d.ts +3 -5
- package/dist/components/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +14 -8
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +8 -3
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/components/ResponsiveSection/ResponsiveSection.d.ts +9 -6
- package/dist/components/ResponsiveSection/ResponsiveSection.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +20 -10
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +3 -5
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/StyleLoader/StyleLoader.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +20 -11
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +1642 -1533
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/theme/ThemeContext.d.ts +29 -8
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/utils/componentProps.d.ts +247 -0
- package/dist/utils/componentProps.d.ts.map +1 -0
- package/package.json +3 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeDefault___iwWOV{padding:var(--button-padding-default)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeDefault___AxPA0{padding:var(--input-padding-default)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeDefault___LL2Uc{padding:var(--textarea-padding-default)}.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-width:var(--border-width, .15em);border-style:solid;border-radius:var(--border-radius, 0px);box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeDefault___EiWvW{padding:var(--select-padding-default)}.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:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.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)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:var(--nav-padding-top);position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:var(--nav-link-padding);text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:var(--nav-button-margin)}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--footer-font-size);max-width:var(--footer-max-width);padding:var(--footer-padding)}.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, #0066cc)}.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, #666)}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__header___ChdTF{flex-shrink:0}.PageLayout-module__main___Sw7Pv{flex:1}.PageLayout-module__mainPadded___ZKio3{padding:var(--main-padding-vertical) 0}.PageLayout-module__footer___DUw6m{flex-shrink:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
(function(z,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],g):(z=typeof globalThis<"u"?globalThis:z||self,g(z.DigitalRabbitCL={},z.jsxRuntime,z.React))})(this,(function(z,g,F){"use strict";const Fe={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeDefault:"Button-module__sizeDefault___iwWOV"},br=({isActive:e,disabled:r,buttonColor:t="#FFF",textColor:s="#000",hoverColor:o,hoverTextColor:n,outline:l})=>{let a,d,m;l?(a="transparent",d=t,m=t,e&&(a=o||t,d=o||t,m=n||s)):(a=t,d=t,m=s,e&&(a=o||t,d=o||t,m=n||s));let y=1;return r?y=.3:e&&(y=o||l?1:.75),{backgroundColor:a,borderColor:d,color:m,opacity:y}},it={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},at={colors:it,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",primary:{textColor:it.secondary}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",wrapperPaddingSm:"0.5rem",wrapperPadding:"1rem"}},lt=F.createContext(at),Sr=({theme:e=at,children:r})=>g.jsx(lt.Provider,{value:e,children:r}),T=()=>F.useContext(lt),Fr=({color:e,hoverColor:r,hoverTextColor:t,textColor:s,outline:o=!1,size:n,type:l="button",buttonProps:a={},children:d,disabled:m=!1,onClick:y,fontSize:h})=>{const f=T(),[S,C]=F.useState(!1);let w;s?w=s:w=e?f.buttons.textColor:f.buttons.primary.textColor;const O={...br({isActive:S,disabled:m,buttonColor:e||f.colors.primary,textColor:w,hoverColor:r,hoverTextColor:t,outline:o}),fontSize:h||f.fonts.size,"--border-width":f.border.width,"--border-radius":f.border.radius,"--button-padding-small":`calc(${f.fonts.rhythm} * 0.07) calc(${f.fonts.rhythm} * 0.35)`,"--button-padding-default":`calc(${f.fonts.rhythm} * 0.17) calc(${f.fonts.rhythm} * 0.35)`},k=[Fe.button,n==="small"?Fe.sizeSmall:Fe.sizeDefault,o?Fe.outline:""].filter(Boolean).join(" ");return g.jsx("button",{className:k,disabled:m,onClick:y,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),type:l,...a,style:{...O,...a.style},children:d})};var ct=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),wr=new Uint8Array(16);function kr(){if(!ct)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ct(wr)}for(var ut=[],we=0;we<256;++we)ut[we]=(we+256).toString(16).substr(1);function Vr(e,r){var t=0,s=ut;return[s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]]].join("")}function dt(e,r,t){var s=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||kr)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r)for(var n=0;n<16;++n)r[s+n]=o[n];return r||Vr(o)}const Be={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},xr=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:s=!1})=>{let o=e;return r?o=r:s&&(o="white"),{boxColor:e,checkmarkColor:o,cursor:t?"default":"pointer",opacity:t?.3:1}},ft={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Cr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),ke=({children:e,color:r,disabled:t=!1,error:s=!1,fontSize:o,htmlFor:n,style:l,...a})=>{const d=T(),m=d.colors.error,y=s?m:r||d.colors.primary,h=Cr({color:y,disabled:t,fontSize:o||".85em"}),f={"--form-label-padding-bottom":`calc(${d.fonts.rhythm} * 0.17)`,color:h.color,fontSize:h.fontSize,opacity:h.opacity,cursor:h.cursor,...l},S=[ft.label,t?ft.disabled:""].filter(Boolean).join(" ");return g.jsx("label",{className:S,htmlFor:n,style:f,...a,children:e})},yt=({checked:e=!1,checkmarkColor:r,color:t,disabled:s=!1,error:o=!1,fontSize:n,id:l,inverted:a=!1,label:d,labelStyle:m,name:y,onChange:h,style:f,...S})=>{const C=T(),w=l||dt(),x=C.colors.error,O=o?x:t||C.colors.primary,k=xr({color:O,checkmarkColor:r,disabled:s,inverted:a}),A=M=>{s||h(M)},E={cursor:k.cursor,fontSize:n||C.fonts.size,opacity:k.opacity,...f},$={width:n||"1rem"};return g.jsxs("div",{className:Be.container,style:E,...S,children:[g.jsx("input",{id:w,checked:e,disabled:s,onChange:M=>A({target:{checked:M.target.checked,name:y,type:"checkbox"}}),name:y,style:{display:"none"},type:"checkbox"}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>A({target:{checked:!e,name:y,type:"checkbox"}}),style:$,className:Be.svg,children:[g.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:{fill:a&&e?k.boxColor:"transparent",strokeWidth:"25",stroke:k.boxColor}}),e&&g.jsx("path",{d:"M 25 45 L 45 65 L 75 30",stroke:k.checkmarkColor,strokeWidth:"15",fill:"transparent"})]}),d&&g.jsx(ke,{htmlFor:w,className:Be.label,style:m,color:k.boxColor,disabled:s,error:o,fontSize:n,children:d})]})},$r=()=>{const e=T();return F.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement;e.fonts&&(e.fonts.fontFamily&&r.style.setProperty("--font-family",e.fonts.fontFamily),e.fonts.size&&r.style.setProperty("--font-size",e.fonts.size),e.fonts.lineHeight!==void 0&&r.style.setProperty("--line-height",e.fonts.lineHeight.toString()),e.fonts.fontWeightHeader!==void 0&&r.style.setProperty("--font-weight-header",e.fonts.fontWeightHeader.toString()),e.fonts.fontSizeH1&&r.style.setProperty("--font-size-h1",e.fonts.fontSizeH1),e.fonts.fontSizeH2&&r.style.setProperty("--font-size-h2",e.fonts.fontSizeH2),e.fonts.fontSizeH3&&r.style.setProperty("--font-size-h3",e.fonts.fontSizeH3),e.fonts.fontSizeH4&&r.style.setProperty("--font-size-h4",e.fonts.fontSizeH4),e.fonts.fontSizeH5&&r.style.setProperty("--font-size-h5",e.fonts.fontSizeH5),e.fonts.fontSizeH6&&r.style.setProperty("--font-size-h6",e.fonts.fontSizeH6)),e.colors&&(e.colors.primary&&r.style.setProperty("--primary-color",e.colors.primary),e.colors.secondary&&r.style.setProperty("--background-color",e.colors.secondary),e.colors.accent&&r.style.setProperty("--accent-color",e.colors.accent)),e.breakpoints&&(e.breakpoints.xs&&r.style.setProperty("--breakpoint-xs",e.breakpoints.xs),e.breakpoints.sm&&r.style.setProperty("--breakpoint-sm",e.breakpoints.sm),e.breakpoints.md&&r.style.setProperty("--breakpoint-md",e.breakpoints.md),e.breakpoints.lg&&r.style.setProperty("--breakpoint-lg",e.breakpoints.lg)),e.layout&&(e.layout.maxWidth&&r.style.setProperty("--layout-max-width",e.layout.maxWidth),e.layout.wrapperPaddingSm&&r.style.setProperty("--layout-wrapper-padding-sm",e.layout.wrapperPaddingSm),e.layout.wrapperPadding&&r.style.setProperty("--layout-wrapper-padding",e.layout.wrapperPadding))},[e]),null};var _e=e=>e.type==="checkbox",ue=e=>e instanceof Date,Z=e=>e==null;const mt=e=>typeof e=="object";var U=e=>!Z(e)&&!Array.isArray(e)&&mt(e)&&!ue(e),ht=e=>U(e)&&e.target?_e(e.target)?e.target.checked:e.target.value:e,zr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,_t=(e,r)=>e.has(zr(r)),Er=e=>{const r=e.constructor&&e.constructor.prototype;return U(r)&&r.hasOwnProperty("isPrototypeOf")},Oe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function W(e){let r;const t=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Oe&&(e instanceof Blob||s))&&(t||U(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Er(e))r=e;else for(const o in e)e.hasOwnProperty(o)&&(r[o]=W(e[o]));else return e;return r}var Ve=e=>/^\w*$/.test(e),I=e=>e===void 0,Le=e=>Array.isArray(e)?e.filter(Boolean):[],Te=e=>Le(e.replace(/["|']|\]/g,"").split(/\.|\[/)),v=(e,r,t)=>{if(!r||!U(e))return t;const s=(Ve(r)?[r]:Te(r)).reduce((o,n)=>Z(o)?o:o[n],e);return I(s)||s===e?I(e[r])?t:e[r]:s},J=e=>typeof e=="boolean",P=(e,r,t)=>{let s=-1;const o=Ve(r)?[r]:Te(r),n=o.length,l=n-1;for(;++s<n;){const a=o[s];let d=t;if(s!==l){const m=e[a];d=U(m)||Array.isArray(m)?m:isNaN(+o[s+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=d,e=e[a]}};const xe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ee={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ae={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},gt=F.createContext(null);gt.displayName="HookFormContext";const Me=()=>F.useContext(gt);var pt=(e,r,t,s=!0)=>{const o={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(o,n,{get:()=>{const l=n;return r._proxyFormState[l]!==ee.all&&(r._proxyFormState[l]=!s||ee.all),t&&(t[l]=!0),e[l]}});return o};const Ie=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Ar(e){const r=Me(),{control:t=r.control,disabled:s,name:o,exact:n}=e||{},[l,a]=F.useState(t._formState),d=F.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ie(()=>t._subscribe({name:o,formState:d.current,exact:n,callback:m=>{!s&&a({...t._formState,...m})}}),[o,s,n]),F.useEffect(()=>{d.current.isValid&&t._setValid(!0)},[t]),F.useMemo(()=>pt(l,t,d.current,!1),[l,t])}var X=e=>typeof e=="string",He=(e,r,t,s,o)=>X(e)?(s&&r.watch.add(e),v(t,e,o)):Array.isArray(e)?e.map(n=>(s&&r.watch.add(n),v(t,n))):(s&&(r.watchAll=!0),t),Ue=e=>Z(e)||!mt(e);function te(e,r,t=new WeakSet){if(Ue(e)||Ue(r))return e===r;if(ue(e)&&ue(r))return e.getTime()===r.getTime();const s=Object.keys(e),o=Object.keys(r);if(s.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of s){const l=e[n];if(!o.includes(n))return!1;if(n!=="ref"){const a=r[n];if(ue(l)&&ue(a)||U(l)&&U(a)||Array.isArray(l)&&Array.isArray(a)?!te(l,a,t):l!==a)return!1}}return!0}function Dr(e){const r=Me(),{control:t=r.control,name:s,defaultValue:o,disabled:n,exact:l,compute:a}=e||{},d=F.useRef(o),m=F.useRef(a),y=F.useRef(void 0),h=F.useRef(t),f=F.useRef(s);m.current=a;const[S,C]=F.useState(()=>{const E=t._getWatch(s,d.current);return m.current?m.current(E):E}),w=F.useCallback(E=>{const $=He(s,t._names,E||t._formValues,!1,d.current);return m.current?m.current($):$},[t._formValues,t._names,s]),x=F.useCallback(E=>{if(!n){const $=He(s,t._names,E||t._formValues,!1,d.current);if(m.current){const M=m.current($);te(M,y.current)||(C(M),y.current=M)}else C($)}},[t._formValues,t._names,n,s]);Ie(()=>((h.current!==t||!te(f.current,s))&&(h.current=t,f.current=s,x()),t._subscribe({name:s,formState:{values:!0},exact:l,callback:E=>{x(E.values)}})),[t,l,s,x]),F.useEffect(()=>t._removeUnmounted());const O=h.current!==t,k=f.current,A=F.useMemo(()=>{if(n)return null;const E=!O&&!te(k,s);return O||E?w():null},[n,O,s,k,w]);return A!==null?A:S}function Pr(e){const r=Me(),{name:t,disabled:s,control:o=r.control,shouldUnregister:n,defaultValue:l}=e,a=_t(o._names.array,t),d=F.useMemo(()=>v(o._formValues,t,v(o._defaultValues,t,l)),[o,t,l]),m=Dr({control:o,name:t,defaultValue:d,exact:!0}),y=Ar({control:o,name:t,exact:!0}),h=F.useRef(e),f=F.useRef(void 0),S=F.useRef(o.register(t,{...e.rules,value:m,...J(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const C=F.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!v(y.errors,t)},isDirty:{enumerable:!0,get:()=>!!v(y.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!v(y.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!v(y.validatingFields,t)},error:{enumerable:!0,get:()=>v(y.errors,t)}}),[y,t]),w=F.useCallback(A=>S.current.onChange({target:{value:ht(A),name:t},type:xe.CHANGE}),[t]),x=F.useCallback(()=>S.current.onBlur({target:{value:v(o._formValues,t),name:t},type:xe.BLUR}),[t,o._formValues]),O=F.useCallback(A=>{const E=v(o._fields,t);E&&A&&(E._f.ref={focus:()=>A.focus&&A.focus(),select:()=>A.select&&A.select(),setCustomValidity:$=>A.setCustomValidity($),reportValidity:()=>A.reportValidity()})},[o._fields,t]),k=F.useMemo(()=>({name:t,value:m,...J(s)||y.disabled?{disabled:y.disabled||s}:{},onChange:w,onBlur:x,ref:O}),[t,s,y.disabled,w,x,O,m]);return F.useEffect(()=>{const A=o._options.shouldUnregister||n,E=f.current;E&&E!==t&&!a&&o.unregister(E),o.register(t,{...h.current.rules,...J(h.current.disabled)?{disabled:h.current.disabled}:{}});const $=(M,Y)=>{const le=v(o._fields,M);le&&le._f&&(le._f.mount=Y)};if($(t,!0),A){const M=W(v(o._options.defaultValues,t,h.current.defaultValue));P(o._defaultValues,t,M),I(v(o._formValues,t))&&P(o._formValues,t,M)}return!a&&o.register(t),f.current=t,()=>{(a?A&&!o._state.action:A)?o.unregister(t):$(t,!1)}},[t,o,a,n]),F.useEffect(()=>{o._setDisabledField({disabled:s,name:t})},[s,t,o]),F.useMemo(()=>({field:k,formState:y,fieldState:C}),[k,y,C])}var je=(e,r,t,s,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:o||!0}}:{},ge=e=>Array.isArray(e)?e:[e],vt=()=>{let e=[];return{get observers(){return e},next:o=>{for(const n of e)n.next&&n.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(n=>n!==o)}}),unsubscribe:()=>{e=[]}}};function bt(e,r){const t={};for(const s in e)if(e.hasOwnProperty(s)){const o=e[s],n=r[s];if(o&&U(o)&&n){const l=bt(o,n);U(l)&&(t[s]=l)}else e[s]&&(t[s]=n)}return t}var q=e=>U(e)&&!Object.keys(e).length,We=e=>e.type==="file",re=e=>typeof e=="function",Ce=e=>{if(!Oe)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},St=e=>e.type==="select-multiple",qe=e=>e.type==="radio",Nr=e=>qe(e)||_e(e),Ge=e=>Ce(e)&&e.isConnected;function Br(e,r){const t=r.slice(0,-1).length;let s=0;for(;s<t;)e=I(e)?s++:e[r[s++]];return e}function Or(e){for(const r in e)if(e.hasOwnProperty(r)&&!I(e[r]))return!1;return!0}function j(e,r){const t=Array.isArray(r)?r:Ve(r)?[r]:Te(r),s=t.length===1?e:Br(e,t),o=t.length-1,n=t[o];return s&&delete s[n],o!==0&&(U(s)&&q(s)||Array.isArray(s)&&Or(s))&&j(e,t.slice(0,-1)),e}var Lr=e=>{for(const r in e)if(re(e[r]))return!0;return!1};function Ft(e){return Array.isArray(e)||U(e)&&!Lr(e)}function Ze(e,r={}){for(const t in e)Ft(e[t])?(r[t]=Array.isArray(e[t])?[]:{},Ze(e[t],r[t])):I(e[t])||(r[t]=!0);return r}function de(e,r,t){t||(t=Ze(r));for(const s in e)Ft(e[s])?I(r)||Ue(t[s])?t[s]=Ze(e[s],Array.isArray(e[s])?[]:{}):de(e[s],Z(r)?{}:r[s],t[s]):t[s]=!te(e[s],r[s]);return t}const wt={value:!1,isValid:!1},kt={value:!0,isValid:!0};var Vt=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&&!I(e[0].attributes.value)?I(e[0].value)||e[0].value===""?kt:{value:e[0].value,isValid:!0}:kt:wt}return wt},xt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>I(e)?e:r?e===""?NaN:e&&+e:t&&X(e)?new Date(e):s?s(e):e;const Ct={isValid:!1,value:null};var $t=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ct):Ct;function zt(e){const r=e.ref;return We(r)?r.files:qe(r)?$t(e.refs).value:St(r)?[...r.selectedOptions].map(({value:t})=>t):_e(r)?Vt(e.refs).value:xt(I(r.value)?e.ref.value:r.value,e)}var Tr=(e,r,t,s)=>{const o={};for(const n of e){const l=v(r,n);l&&P(o,n,l._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:s}},$e=e=>e instanceof RegExp,pe=e=>I(e)?e:$e(e)?e.source:U(e)?$e(e.value)?e.value.source:e.value:e,Et=e=>({isOnSubmit:!e||e===ee.onSubmit,isOnBlur:e===ee.onBlur,isOnChange:e===ee.onChange,isOnAll:e===ee.all,isOnTouch:e===ee.onTouched});const At="AsyncFunction";var Mr=e=>!!e&&!!e.validate&&!!(re(e.validate)&&e.validate.constructor.name===At||U(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===At)),Ir=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Dt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const ve=(e,r,t,s)=>{for(const o of t||Object.keys(e)){const n=v(e,o);if(n){const{_f:l,...a}=n;if(l){if(l.refs&&l.refs[0]&&r(l.refs[0],o)&&!s)return!0;if(l.ref&&r(l.ref,l.name)&&!s)return!0;if(ve(a,r))break}else if(U(a)&&ve(a,r))break}}};function Pt(e,r,t){const s=v(e,t);if(s||Ve(t))return{error:s,name:t};const o=t.split(".");for(;o.length;){const n=o.join("."),l=v(r,n),a=v(e,n);if(l&&!Array.isArray(l)&&t!==n)return{name:t};if(a&&a.type)return{name:n,error:a};if(a&&a.root&&a.root.type)return{name:`${n}.root`,error:a.root};o.pop()}return{name:t}}var Hr=(e,r,t,s)=>{t(e);const{name:o,...n}=e;return q(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(l=>r[l]===(!s||ee.all))},Ur=(e,r,t)=>!e||!r||e===r||ge(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s))),jr=(e,r,t,s,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?s.isOnBlur:o.isOnBlur)?!e:(t?s.isOnChange:o.isOnChange)?e:!0,Wr=(e,r)=>!Le(v(e,r)).length&&j(e,r),qr=(e,r,t)=>{const s=ge(v(e,t));return P(s,"root",r[t]),P(e,t,s),e};function Nt(e,r,t="validate"){if(X(e)||Array.isArray(e)&&e.every(X)||J(e)&&!e)return{type:t,message:X(e)?e:"",ref:r}}var fe=e=>U(e)&&!$e(e)?e:{value:e,message:""},Bt=async(e,r,t,s,o,n)=>{const{ref:l,refs:a,required:d,maxLength:m,minLength:y,min:h,max:f,pattern:S,validate:C,name:w,valueAsNumber:x,mount:O}=e._f,k=v(t,w);if(!O||r.has(w))return{};const A=a?a[0]:l,E=D=>{o&&A.reportValidity&&(A.setCustomValidity(J(D)?"":D||""),A.reportValidity())},$={},M=qe(l),Y=_e(l),le=M||Y,Q=(x||We(l))&&I(l.value)&&I(k)||Ce(l)&&l.value===""||k===""||Array.isArray(k)&&!k.length,oe=je.bind(null,w,s,$),ne=(D,B,H,G=ae.maxLength,K=ae.minLength)=>{const ie=D?B:H;$[w]={type:D?G:K,message:ie,ref:l,...oe(D?G:K,ie)}};if(n?!Array.isArray(k)||!k.length:d&&(!le&&(Q||Z(k))||J(k)&&!k||Y&&!Vt(a).isValid||M&&!$t(a).isValid)){const{value:D,message:B}=X(d)?{value:!!d,message:d}:fe(d);if(D&&($[w]={type:ae.required,message:B,ref:A,...oe(ae.required,B)},!s))return E(B),$}if(!Q&&(!Z(h)||!Z(f))){let D,B;const H=fe(f),G=fe(h);if(!Z(k)&&!isNaN(k)){const K=l.valueAsNumber||k&&+k;Z(H.value)||(D=K>H.value),Z(G.value)||(B=K<G.value)}else{const K=l.valueAsDate||new Date(k),ie=Pe=>new Date(new Date().toDateString()+" "+Pe),Se=l.type=="time",he=l.type=="week";X(H.value)&&k&&(D=Se?ie(k)>ie(H.value):he?k>H.value:K>new Date(H.value)),X(G.value)&&k&&(B=Se?ie(k)<ie(G.value):he?k<G.value:K<new Date(G.value))}if((D||B)&&(ne(!!D,H.message,G.message,ae.max,ae.min),!s))return E($[w].message),$}if((m||y)&&!Q&&(X(k)||n&&Array.isArray(k))){const D=fe(m),B=fe(y),H=!Z(D.value)&&k.length>+D.value,G=!Z(B.value)&&k.length<+B.value;if((H||G)&&(ne(H,D.message,B.message),!s))return E($[w].message),$}if(S&&!Q&&X(k)){const{value:D,message:B}=fe(S);if($e(D)&&!k.match(D)&&($[w]={type:ae.pattern,message:B,ref:l,...oe(ae.pattern,B)},!s))return E(B),$}if(C){if(re(C)){const D=await C(k,t),B=Nt(D,A);if(B&&($[w]={...B,...oe(ae.validate,B.message)},!s))return E(B.message),$}else if(U(C)){let D={};for(const B in C){if(!q(D)&&!s)break;const H=Nt(await C[B](k,t),A,B);H&&(D={...H,...oe(B,H.message)},E(H.message),s&&($[w]=D))}if(!q(D)&&($[w]={ref:A,...D},!s))return $}}return E(!0),$};const Gr={mode:ee.onSubmit,reValidateMode:ee.onChange,shouldFocusError:!0};function Zr(e={}){let r={...Gr,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:re(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},o=U(r.defaultValues)||U(r.values)?W(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:W(o),l={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,m=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...y};const f={array:vt(),state:vt()},S=r.criteriaMode===ee.all,C=i=>c=>{clearTimeout(m),m=setTimeout(i,c)},w=async i=>{if(!r.disabled&&(y.isValid||h.isValid||i)){const c=r.resolver?q((await Y()).errors):await Q(s,!0);c!==t.isValid&&f.state.next({isValid:c})}},x=(i,c)=>{!r.disabled&&(y.isValidating||y.validatingFields||h.isValidating||h.validatingFields)&&((i||Array.from(a.mount)).forEach(u=>{u&&(c?P(t.validatingFields,u,c):j(t.validatingFields,u))}),f.state.next({validatingFields:t.validatingFields,isValidating:!q(t.validatingFields)}))},O=(i,c=[],u,b,p=!0,_=!0)=>{if(b&&u&&!r.disabled){if(l.action=!0,_&&Array.isArray(v(s,i))){const V=u(v(s,i),b.argA,b.argB);p&&P(s,i,V)}if(_&&Array.isArray(v(t.errors,i))){const V=u(v(t.errors,i),b.argA,b.argB);p&&P(t.errors,i,V),Wr(t.errors,i)}if((y.touchedFields||h.touchedFields)&&_&&Array.isArray(v(t.touchedFields,i))){const V=u(v(t.touchedFields,i),b.argA,b.argB);p&&P(t.touchedFields,i,V)}(y.dirtyFields||h.dirtyFields)&&(t.dirtyFields=de(o,n)),f.state.next({name:i,isDirty:ne(i,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else P(n,i,c)},k=(i,c)=>{P(t.errors,i,c),f.state.next({errors:t.errors})},A=i=>{t.errors=i,f.state.next({errors:t.errors,isValid:!1})},E=(i,c,u,b)=>{const p=v(s,i);if(p){const _=v(n,i,I(u)?v(o,i):u);I(_)||b&&b.defaultChecked||c?P(n,i,c?_:zt(p._f)):H(i,_),l.mount&&w()}},$=(i,c,u,b,p)=>{let _=!1,V=!1;const N={name:i};if(!r.disabled){if(!u||b){(y.isDirty||h.isDirty)&&(V=t.isDirty,t.isDirty=N.isDirty=ne(),_=V!==N.isDirty);const L=te(v(o,i),c);V=!!v(t.dirtyFields,i),L?j(t.dirtyFields,i):P(t.dirtyFields,i,!0),N.dirtyFields=t.dirtyFields,_=_||(y.dirtyFields||h.dirtyFields)&&V!==!L}if(u){const L=v(t.touchedFields,i);L||(P(t.touchedFields,i,u),N.touchedFields=t.touchedFields,_=_||(y.touchedFields||h.touchedFields)&&L!==u)}_&&p&&f.state.next(N)}return _?N:{}},M=(i,c,u,b)=>{const p=v(t.errors,i),_=(y.isValid||h.isValid)&&J(c)&&t.isValid!==c;if(r.delayError&&u?(d=C(()=>k(i,u)),d(r.delayError)):(clearTimeout(m),d=null,u?P(t.errors,i,u):j(t.errors,i)),(u?!te(p,u):p)||!q(b)||_){const V={...b,..._&&J(c)?{isValid:c}:{},errors:t.errors,name:i};t={...t,...V},f.state.next(V)}},Y=async i=>{x(i,!0);const c=await r.resolver(n,r.context,Tr(i||a.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return x(i),c},le=async i=>{const{errors:c}=await Y(i);if(i)for(const u of i){const b=v(c,u);b?P(t.errors,u,b):j(t.errors,u)}else t.errors=c;return c},Q=async(i,c,u={valid:!0})=>{for(const b in i){const p=i[b];if(p){const{_f:_,...V}=p;if(_){const N=a.array.has(_.name),L=p._f&&Mr(p._f);L&&y.validatingFields&&x([_.name],!0);const R=await Bt(p,a.disabled,n,S,r.shouldUseNativeValidation&&!c,N);if(L&&y.validatingFields&&x([_.name]),R[_.name]&&(u.valid=!1,c))break;!c&&(v(R,_.name)?N?qr(t.errors,R,_.name):P(t.errors,_.name,R[_.name]):j(t.errors,_.name))}!q(V)&&await Q(V,c,u)}}return u.valid},oe=()=>{for(const i of a.unMount){const c=v(s,i);c&&(c._f.refs?c._f.refs.every(u=>!Ge(u)):!Ge(c._f.ref))&&tt(i)}a.unMount=new Set},ne=(i,c)=>!r.disabled&&(i&&c&&P(n,i,c),!te(Pe(),o)),D=(i,c,u)=>He(i,a,{...l.mount?n:I(c)?o:X(i)?{[i]:c}:c},u,c),B=i=>Le(v(l.mount?n:o,i,r.shouldUnregister?v(o,i,[]):[])),H=(i,c,u={})=>{const b=v(s,i);let p=c;if(b){const _=b._f;_&&(!_.disabled&&P(n,i,xt(c,_)),p=Ce(_.ref)&&Z(c)?"":c,St(_.ref)?[..._.ref.options].forEach(V=>V.selected=p.includes(V.value)):_.refs?_e(_.ref)?_.refs.forEach(V=>{(!V.defaultChecked||!V.disabled)&&(Array.isArray(p)?V.checked=!!p.find(N=>N===V.value):V.checked=p===V.value||!!p)}):_.refs.forEach(V=>V.checked=V.value===p):We(_.ref)?_.ref.value="":(_.ref.value=p,_.ref.type||f.state.next({name:i,values:W(n)})))}(u.shouldDirty||u.shouldTouch)&&$(i,p,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&he(i)},G=(i,c,u)=>{for(const b in c){if(!c.hasOwnProperty(b))return;const p=c[b],_=i+"."+b,V=v(s,_);(a.array.has(i)||U(p)||V&&!V._f)&&!ue(p)?G(_,p,u):H(_,p,u)}},K=(i,c,u={})=>{const b=v(s,i),p=a.array.has(i),_=W(c);P(n,i,_),p?(f.array.next({name:i,values:W(n)}),(y.isDirty||y.dirtyFields||h.isDirty||h.dirtyFields)&&u.shouldDirty&&f.state.next({name:i,dirtyFields:de(o,n),isDirty:ne(i,_)})):b&&!b._f&&!Z(_)?G(i,_,u):H(i,_,u),Dt(i,a)&&f.state.next({...t,name:i}),f.state.next({name:l.mount?i:void 0,values:W(n)})},ie=async i=>{l.mount=!0;const c=i.target;let u=c.name,b=!0;const p=v(s,u),_=L=>{b=Number.isNaN(L)||ue(L)&&isNaN(L.getTime())||te(L,v(n,u,L))},V=Et(r.mode),N=Et(r.reValidateMode);if(p){let L,R;const Ne=c.type?zt(p._f):ht(i),ce=i.type===xe.BLUR||i.type===xe.FOCUS_OUT,Ts=!Ir(p._f)&&!r.resolver&&!v(t.errors,u)&&!p._f.deps||jr(ce,v(t.touchedFields,u),t.isSubmitted,N,V),ot=Dt(u,a,ce);P(n,u,Ne),ce?(!c||!c.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),d&&d(0)):p._f.onChange&&p._f.onChange(i);const nt=$(u,Ne,ce),Ms=!q(nt)||ot;if(!ce&&f.state.next({name:u,type:i.type,values:W(n)}),Ts)return(y.isValid||h.isValid)&&(r.mode==="onBlur"?ce&&w():ce||w()),Ms&&f.state.next({name:u,...ot?{}:nt});if(!ce&&ot&&f.state.next({...t}),r.resolver){const{errors:pr}=await Y([u]);if(_(Ne),b){const Is=Pt(t.errors,s,u),vr=Pt(pr,s,Is.name||u);L=vr.error,u=vr.name,R=q(pr)}}else x([u],!0),L=(await Bt(p,a.disabled,n,S,r.shouldUseNativeValidation))[u],x([u]),_(Ne),b&&(L?R=!1:(y.isValid||h.isValid)&&(R=await Q(s,!0)));b&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&he(p._f.deps),M(u,R,L,nt))}},Se=(i,c)=>{if(v(t.errors,c)&&i.focus)return i.focus(),1},he=async(i,c={})=>{let u,b;const p=ge(i);if(r.resolver){const _=await le(I(i)?i:p);u=q(_),b=i?!p.some(V=>v(_,V)):u}else i?(b=(await Promise.all(p.map(async _=>{const V=v(s,_);return await Q(V&&V._f?{[_]:V}:V)}))).every(Boolean),!(!b&&!t.isValid)&&w()):b=u=await Q(s);return f.state.next({...!X(i)||(y.isValid||h.isValid)&&u!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:u}:{},errors:t.errors}),c.shouldFocus&&!b&&ve(s,Se,i?p:a.mount),b},Pe=(i,c)=>{let u={...l.mount?n:o};return c&&(u=bt(c.dirtyFields?t.dirtyFields:t.touchedFields,u)),I(i)?u:X(i)?v(u,i):i.map(b=>v(u,b))},ur=(i,c)=>({invalid:!!v((c||t).errors,i),isDirty:!!v((c||t).dirtyFields,i),error:v((c||t).errors,i),isValidating:!!v(t.validatingFields,i),isTouched:!!v((c||t).touchedFields,i)}),As=i=>{i&&ge(i).forEach(c=>j(t.errors,c)),f.state.next({errors:i?t.errors:{}})},dr=(i,c,u)=>{const b=(v(s,i,{_f:{}})._f||{}).ref,p=v(t.errors,i)||{},{ref:_,message:V,type:N,...L}=p;P(t.errors,i,{...L,...c,ref:b}),f.state.next({name:i,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&b&&b.focus&&b.focus()},Ds=(i,c)=>re(i)?f.state.subscribe({next:u=>"values"in u&&i(D(void 0,c),u)}):D(i,c,!0),fr=i=>f.state.subscribe({next:c=>{Ur(i.name,c.name,i.exact)&&Hr(c,i.formState||y,Ls,i.reRenderRoot)&&i.callback({values:{...n},...t,...c,defaultValues:o})}}).unsubscribe,Ps=i=>(l.mount=!0,h={...h,...i.formState},fr({...i,formState:h})),tt=(i,c={})=>{for(const u of i?ge(i):a.mount)a.mount.delete(u),a.array.delete(u),c.keepValue||(j(s,u),j(n,u)),!c.keepError&&j(t.errors,u),!c.keepDirty&&j(t.dirtyFields,u),!c.keepTouched&&j(t.touchedFields,u),!c.keepIsValidating&&j(t.validatingFields,u),!r.shouldUnregister&&!c.keepDefaultValue&&j(o,u);f.state.next({values:W(n)}),f.state.next({...t,...c.keepDirty?{isDirty:ne()}:{}}),!c.keepIsValid&&w()},yr=({disabled:i,name:c})=>{(J(i)&&l.mount||i||a.disabled.has(c))&&(i?a.disabled.add(c):a.disabled.delete(c))},rt=(i,c={})=>{let u=v(s,i);const b=J(c.disabled)||J(r.disabled);return P(s,i,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:i}},name:i,mount:!0,...c}}),a.mount.add(i),u?yr({disabled:J(c.disabled)?c.disabled:r.disabled,name:i}):E(i,!0,c.value),{...b?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:pe(c.min),max:pe(c.max),minLength:pe(c.minLength),maxLength:pe(c.maxLength),pattern:pe(c.pattern)}:{},name:i,onChange:ie,onBlur:ie,ref:p=>{if(p){rt(i,c),u=v(s,i);const _=I(p.value)&&p.querySelectorAll&&p.querySelectorAll("input,select,textarea")[0]||p,V=Nr(_),N=u._f.refs||[];if(V?N.find(L=>L===_):_===u._f.ref)return;P(s,i,{_f:{...u._f,...V?{refs:[...N.filter(Ge),_,...Array.isArray(v(o,i))?[{}]:[]],ref:{type:_.type,name:i}}:{ref:_}}}),E(i,!1,void 0,_)}else u=v(s,i,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(_t(a.array,i)&&l.action)&&a.unMount.add(i)}}},st=()=>r.shouldFocusError&&ve(s,Se,a.mount),Ns=i=>{J(i)&&(f.state.next({disabled:i}),ve(s,(c,u)=>{const b=v(s,u);b&&(c.disabled=b._f.disabled||i,Array.isArray(b._f.refs)&&b._f.refs.forEach(p=>{p.disabled=b._f.disabled||i}))},0,!1))},mr=(i,c)=>async u=>{let b;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let p=W(n);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:_,values:V}=await Y();t.errors=_,p=W(V)}else await Q(s);if(a.disabled.size)for(const _ of a.disabled)j(p,_);if(j(t.errors,"root"),q(t.errors)){f.state.next({errors:{}});try{await i(p,u)}catch(_){b=_}}else c&&await c({...t.errors},u),st(),setTimeout(st);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(t.errors)&&!b,submitCount:t.submitCount+1,errors:t.errors}),b)throw b},Bs=(i,c={})=>{v(s,i)&&(I(c.defaultValue)?K(i,W(v(o,i))):(K(i,c.defaultValue),P(o,i,W(c.defaultValue))),c.keepTouched||j(t.touchedFields,i),c.keepDirty||(j(t.dirtyFields,i),t.isDirty=c.defaultValue?ne(i,W(v(o,i))):ne()),c.keepError||(j(t.errors,i),y.isValid&&w()),f.state.next({...t}))},hr=(i,c={})=>{const u=i?W(i):o,b=W(u),p=q(i),_=p?o:b;if(c.keepDefaultValues||(o=u),!c.keepValues){if(c.keepDirtyValues){const V=new Set([...a.mount,...Object.keys(de(o,n))]);for(const N of Array.from(V))v(t.dirtyFields,N)?P(_,N,v(n,N)):K(N,v(_,N))}else{if(Oe&&I(i))for(const V of a.mount){const N=v(s,V);if(N&&N._f){const L=Array.isArray(N._f.refs)?N._f.refs[0]:N._f.ref;if(Ce(L)){const R=L.closest("form");if(R){R.reset();break}}}}if(c.keepFieldsRef)for(const V of a.mount)K(V,v(_,V));else s={}}n=r.shouldUnregister?c.keepDefaultValues?W(o):{}:W(_),f.array.next({values:{..._}}),f.state.next({values:{..._}})}a={mount:c.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!y.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!q(_),l.watch=!!r.shouldUnregister,f.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:p?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!te(i,o)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:p?{}:c.keepDirtyValues?c.keepDefaultValues&&n?de(o,n):t.dirtyFields:c.keepDefaultValues&&i?de(o,i):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},_r=(i,c)=>hr(re(i)?i(n):i,c),Os=(i,c={})=>{const u=v(s,i),b=u&&u._f;if(b){const p=b.refs?b.refs[0]:b.ref;p.focus&&(p.focus(),c.shouldSelect&&re(p.select)&&p.select())}},Ls=i=>{t={...t,...i}},gr={control:{register:rt,unregister:tt,getFieldState:ur,handleSubmit:mr,setError:dr,_subscribe:fr,_runSchema:Y,_focusError:st,_getWatch:D,_getDirty:ne,_setValid:w,_setFieldArray:O,_setDisabledField:yr,_setErrors:A,_getFieldArray:B,_reset:hr,_resetDefaultValues:()=>re(r.defaultValues)&&r.defaultValues().then(i=>{_r(i,r.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:oe,_disableForm:Ns,_subjects:f,_proxyFormState:y,get _fields(){return s},get _formValues(){return n},get _state(){return l},set _state(i){l=i},get _defaultValues(){return o},get _names(){return a},set _names(i){a=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:Ps,trigger:he,register:rt,handleSubmit:mr,watch:Ds,setValue:K,getValues:Pe,reset:_r,resetField:Bs,clearErrors:As,unregister:tt,setError:dr,setFocus:Os,getFieldState:ur};return{...gr,formControl:gr}}function Qr(e={}){const r=F.useRef(void 0),t=F.useRef(void 0),[s,o]=F.useState({isDirty:!1,isValidating:!1,isLoading:re(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:re(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:s},e.defaultValues&&!re(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...a}=Zr(e);r.current={...a,formState:s}}const n=r.current.control;return n._options=e,Ie(()=>{const l=n._subscribe({formState:n._proxyFormState,callback:()=>o({...n._formState}),reRenderRoot:!0});return o(a=>({...a,isReady:!0})),n._formState.isReady=!0,l},[n]),F.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),F.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),F.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),F.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),F.useEffect(()=>{if(n._proxyFormState.isDirty){const l=n._getDirty();l!==s.isDirty&&n._subjects.state.next({isDirty:l})}},[n,s.isDirty]),F.useEffect(()=>{e.values&&!te(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,o(l=>({...l}))):n._resetDefaultValues()},[n,e.values]),F.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=pt(s,n),r.current}const Ot=(e,r,t)=>{if(e&&"reportValidity"in e){const s=v(t,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Qe=(e,r)=>{for(const t in r.fields){const s=r.fields[t];s&&s.ref&&"reportValidity"in s.ref?Ot(s.ref,t,e):s&&s.refs&&s.refs.forEach(o=>Ot(o,t,e))}},Lt=(e,r)=>{r.shouldUseNativeValidation&&Qe(e,r);const t={};for(const s in e){const o=v(r.fields,s),n=Object.assign(e[s]||{},{ref:o&&o.ref});if(Kr(r.names||Object.keys(e),s)){const l=Object.assign({},v(t,s));P(l,"root",n),P(t,s,l)}else P(t,s,n)}return t},Kr=(e,r)=>{const t=Tt(r);return e.some(s=>Tt(s).match(`^${t}\\.\\d+`))};function Tt(e){return e.replace(/\]|\[/g,"")}function Mt(e,r,t){function s(a,d){var m;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(m=a._zod).traits??(m.traits=new Set),a._zod.traits.add(e),r(a,d);for(const y in l.prototype)y in a||Object.defineProperty(a,y,{value:l.prototype[y].bind(a)});a._zod.constr=l,a._zod.def=d}const o=(t==null?void 0:t.Parent)??Object;class n extends o{}Object.defineProperty(n,"name",{value:e});function l(a){var d;const m=t!=null&&t.Parent?new n:this;s(m,a),(d=m._zod).deferred??(d.deferred=[]);for(const y of m._zod.deferred)y();return m}return Object.defineProperty(l,"init",{value:s}),Object.defineProperty(l,Symbol.hasInstance,{value:a=>{var d,m;return t!=null&&t.Parent&&a instanceof t.Parent?!0:(m=(d=a==null?void 0:a._zod)==null?void 0:d.traits)==null?void 0:m.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}class Jr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Xr={};function It(e){return Xr}function Yr(e,r){return typeof r=="bigint"?r.toString():r}const Ht="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ze(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ut(e,r,t){var o,n,l,a,d,m;const s={...e,path:e.path??[]};if(!e.message){const y=ze((l=(n=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:n.error)==null?void 0:l.call(n,e))??ze((a=r==null?void 0:r.error)==null?void 0:a.call(r,e))??ze((d=t.customError)==null?void 0:d.call(t,e))??ze((m=t.localeError)==null?void 0:m.call(t,e))??"Invalid input";s.message=y}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const jt=(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,Yr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Rr=Mt("$ZodError",jt),Wt=Mt("$ZodError",jt,{Parent:Error}),es=(e=>(r,t,s,o)=>{const n=s?Object.assign(s,{async:!1}):{async:!1},l=r._zod.run({value:t,issues:[]},n);if(l instanceof Promise)throw new Jr;if(l.issues.length){const a=new((o==null?void 0:o.Err)??e)(l.issues.map(d=>Ut(d,n,It())));throw Ht(a,o==null?void 0:o.callee),a}return l.value})(Wt),ts=(e=>async(r,t,s,o)=>{const n=s?Object.assign(s,{async:!0}):{async:!0};let l=r._zod.run({value:t,issues:[]},n);if(l instanceof Promise&&(l=await l),l.issues.length){const a=new((o==null?void 0:o.Err)??e)(l.issues.map(d=>Ut(d,n,It())));throw Ht(a,o==null?void 0:o.callee),a}return l.value})(Wt);function qt(e,r){try{var t=e()}catch(s){return r(s)}return t&&t.then?t.then(void 0,r):t}function rs(e,r){for(var t={};e.length;){var s=e[0],o=s.code,n=s.message,l=s.path.join(".");if(!t[l])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];t[l]={message:a.message,type:a.code}}else t[l]={message:n,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(y){return y.errors.forEach(function(h){return e.push(h)})}),r){var d=t[l].types,m=d&&d[s.code];t[l]=je(l,r,t,o,m?[].concat(m,s.message):s.message)}e.shift()}return t}function ss(e,r){for(var t={};e.length;){var s=e[0],o=s.code,n=s.message,l=s.path.join(".");if(!t[l])if(s.code==="invalid_union"&&s.errors.length>0){var a=s.errors[0][0];t[l]={message:a.message,type:a.code}}else t[l]={message:n,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(y){return y.forEach(function(h){return e.push(h)})}),r){var d=t[l].types,m=d&&d[s.code];t[l]=je(l,r,t,o,m?[].concat(m,s.message):s.message)}e.shift()}return t}function os(e,r,t){if(t===void 0&&(t={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,o,n){try{return Promise.resolve(qt(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(l){return n.shouldUseNativeValidation&&Qe({},n),{errors:{},values:t.raw?Object.assign({},s):l}})},function(l){if((function(a){return Array.isArray(a==null?void 0:a.issues)})(l))return{values:{},errors:Lt(rs(l.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw l}))}catch(l){return Promise.reject(l)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,o,n){try{return Promise.resolve(qt(function(){return Promise.resolve((t.mode==="sync"?es:ts)(e,s,r)).then(function(l){return n.shouldUseNativeValidation&&Qe({},n),{errors:{},values:t.raw?Object.assign({},s):l}})},function(l){if((function(a){return a instanceof Rr})(l))return{values:{},errors:Lt(ss(l.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}const Gt=F.createContext(null);function Zt(){const e=F.useContext(Gt);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function ns({onSubmit:e,children:r,schema:t,defaultValues:s,mode:o="onSubmit",reValidateMode:n="onChange",...l}){const a=Qr({resolver:t?os(t):void 0,defaultValues:s,mode:o,reValidateMode:n}),d=a.handleSubmit(e);return g.jsx(Gt.Provider,{value:a,children:g.jsx("form",{onSubmit:d,...l,children:typeof r=="function"?r(a):r})})}const is=ns,as={formError:"FormError-module__formError___kaUBn"},Qt=({children:e,className:r,style:t})=>{const s=T(),o={"--form-error-margin-top":`calc(${s.fonts.rhythm} * 0.17)`,color:s.colors.error,...t};return g.jsx("div",{className:`${as.formError} ${r||""}`.trim(),style:o,role:"alert","aria-live":"polite",children:e})},ye={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"},Kt=({children:e,label:r,name:t,error:s=!1,errorMessage:o,disabled:n=!1,required:l=!1,indent:a=!1,className:d,style:m,labelProps:y})=>{const h=T(),f=[ye.formGroup,s?ye.error:"",n?ye.disabled:"",d].filter(Boolean).join(" "),S={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...m},C=F.Children.map(e,w=>{if(F.isValidElement(w)){const x={};if(n&&w.props.disabled===void 0&&(x.disabled=!0),s&&w.props.error===void 0&&(x.error=!0),t&&w.props.id===void 0&&(x.id=t),Object.keys(x).length>0)return F.cloneElement(w,x)}return w});return g.jsxs("div",{className:f,style:S,children:[r&&g.jsxs(ke,{htmlFor:t,disabled:n,error:s,...y,children:[r,l&&g.jsxs("span",{className:ye.required,"aria-label":"required",children:[" ","*"]})]}),g.jsx("div",{className:`${ye.inputWrapper} ${a?ye.indented:""}`,children:C}),s&&o&&g.jsx(Qt,{children:o})]})};function me({name:e,label:r,required:t,children:s,rules:o,disabled:n,className:l,style:a,indent:d,labelProps:m}){const{control:y}=Zt(),{field:h,fieldState:{error:f}}=Pr({name:e,control:y,rules:o});return g.jsx(Kt,{label:r,name:e,error:!!f,errorMessage:f==null?void 0:f.message,disabled:n,required:t,className:l,style:a,indent:d,labelProps:m,children:s({value:h.value,onChange:h.onChange,onBlur:h.onBlur,name:h.name,error:!!f,indent:d})})}const Ke={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeDefault:"Input-module__sizeDefault___AxPA0"},ls=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:s=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:s}),Jt=({color:e,disabled:r=!1,error:t=!1,fontSize:s,name:o="",onChange:n,placeholder:l,placeholderOpacity:a=.3,size:d,style:m,type:y="text",value:h="",...f})=>{const S=T(),C=S.colors.error,w=t?C:e||S.colors.primary,x=ls({color:w,disabled:r,fontSize:s||S.fonts.size,placeholderOpacity:a}),O={"--placeholder-opacity":x.placeholderOpacity,"--border-width":S.border.width,"--border-radius":S.border.radius,"--input-padding-small":`calc(${S.fonts.rhythm} * 0.07) calc(${S.fonts.rhythm} * 0.17)`,"--input-padding-default":`calc(${S.fonts.rhythm} * 0.17) calc(${S.fonts.rhythm} * 0.35)`,borderColor:x.borderColor,color:x.color,fontSize:x.fontSize,opacity:x.opacity,...m},k=[Ke.input,d==="small"?Ke.sizeSmall:Ke.sizeDefault].filter(Boolean).join(" ");return g.jsx("input",{className:k,disabled:r,name:o,onChange:n,placeholder:l,style:O,type:y,value:h,...f})};function cs({name:e,label:r,required:t,rules:s,disabled:o,className:n,style:l,...a}){return g.jsx(me,{name:e,label:r,required:t,rules:s,disabled:o,className:n,style:l,children:({value:d,onChange:m,onBlur:y,name:h,error:f})=>g.jsx(Jt,{...a,name:h,value:d||"",onChange:S=>m(S.target.value),onBlur:y,error:f})})}const Je={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeDefault:"Textarea-module__sizeDefault___LL2Uc"},us=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),Xt=({color:e,disabled:r=!1,error:t=!1,fontSize:s,name:o="",onChange:n,placeholder:l,placeholderOpacity:a=.3,rows:d=3,size:m,style:y,value:h="",...f})=>{const S=T(),C=S.colors.error,w=t?C:e||S.colors.primary,x=us({color:w,disabled:r,placeholderOpacity:a}),O={"--placeholder-opacity":x.placeholderOpacity,"--border-width":S.border.width,"--border-radius":S.border.radius,"--textarea-padding-small":`calc(${S.fonts.rhythm} * 0.07) calc(${S.fonts.rhythm} * 0.17)`,"--textarea-padding-default":`calc(${S.fonts.rhythm} * 0.17) calc(${S.fonts.rhythm} * 0.35)`,borderColor:x.borderColor,color:x.color,fontSize:s||S.fonts.size,opacity:x.opacity,...y},k=[Je.textarea,m==="small"?Je.sizeSmall:Je.sizeDefault].filter(Boolean).join(" ");return g.jsx("textarea",{className:k,disabled:r,name:o,onChange:n,placeholder:l,rows:d,style:O,value:h,...f})};function ds({name:e,label:r,required:t,rules:s,disabled:o,className:n,style:l,...a}){return g.jsx(me,{name:e,label:r,required:t,rules:s,disabled:o,className:n,style:l,children:({value:d,onChange:m,onBlur:y,name:h,error:f})=>g.jsx(Xt,{...a,name:h,value:d||"",onChange:S=>m(S.target.value),onBlur:y,error:f})})}const Xe={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeDefault:"Select-module__sizeDefault___EiWvW"},fs=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const l=`
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.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)}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:var(--nav-padding-top);position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:var(--nav-link-padding);text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:var(--nav-button-margin)}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:.5}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--footer-font-size);max-width:var(--footer-max-width);padding:var(--footer-padding)}.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, #0066cc)}.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, #666)}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__header___ChdTF{flex-shrink:0}.PageLayout-module__main___Sw7Pv{flex:1}.PageLayout-module__footer___DUw6m{flex-shrink:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function(N,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],v):(N=typeof globalThis<"u"?globalThis:N||self,v(N.DigitalRabbitCL={},N.jsxRuntime,N.React))})(this,(function(N,v,w){"use strict";const Fe={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},Fr=({isActive:e,disabled:r,buttonColor:t="#FFF",textColor:s="#000",hoverColor:o,hoverTextColor:n,outline:i})=>{let l,d,f;i?(l="transparent",d=t,f=t,e&&(l=o||t,d=o||t,f=n||s)):(l=t,d=t,f=s,e&&(l=o||t,d=o||t,f=n||s));let y=1;return r?y=.3:e&&(y=o||i?1:.75),{backgroundColor:l,borderColor:d,color:f,opacity:y}},lt={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},Be={colors:lt,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",paddingHorizontal:.35,primary:{textColor:lt.secondary}},inputs:{paddingHorizontal:.27},sizes:{small:{paddingVertical:.07},large:{paddingVertical:.17}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"}},ct=w.createContext(Be);function ut(e,r){const t={...e};return Ve(e)&&Ve(r)&&Object.keys(r).forEach(s=>{const o=r[s],n=e[s];Ve(o)&&Ve(n)?t[s]=ut(n,o):o!==void 0&&(t[s]=o)}),t}function Ve(e){return e&&typeof e=="object"&&!Array.isArray(e)}const Vr=({theme:e,children:r})=>{const t=e?ut(Be,e):Be;return v.jsx(ct.Provider,{value:t,children:r})},H=()=>w.useContext(ct),wr=({color:e,textColor:r,hoverColor:t,hoverTextColor:s,disabled:o=!1,size:n="large",outline:i=!1,type:l="button",className:d,style:f,buttonProps:y={},onClick:m,children:h})=>{const k=H(),[V,_]=w.useState(!1);let $;r?$=r:$=e?k.buttons.textColor:k.buttons.primary.textColor;const E=e||k.colors.primary,C={...Fr({isActive:V,disabled:o,buttonColor:E,textColor:$,hoverColor:t,hoverTextColor:s,outline:i}),fontSize:k.fonts.size,borderWidth:k.border.width,borderRadius:k.border.radius,"--button-padding-small":`calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * ${k.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * ${k.buttons.paddingHorizontal})`},z=[Fe.button,n==="small"?Fe.sizeSmall:Fe.sizeLarge,i?Fe.outline:"",d].filter(Boolean).join(" ");return v.jsx("button",{className:z,disabled:o,onClick:m,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),type:l,...y,style:{...C,...f,...y.style},children:h})};var dt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),kr=new Uint8Array(16);function xr(){if(!dt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dt(kr)}for(var ft=[],we=0;we<256;++we)ft[we]=(we+256).toString(16).substr(1);function Cr(e,r){var t=0,s=ft;return[s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],"-",s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]],s[e[t++]]].join("")}function yt(e,r,t){var s=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||xr)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r)for(var n=0;n<16;++n)r[s+n]=o[n];return r||Cr(o)}const Oe={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},zr=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:s=!1})=>{let o=e;return r?o=r:s&&(o="white"),{boxColor:e,checkmarkColor:o,cursor:t?"default":"pointer",opacity:t?.3:1}},mt={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},$r=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),ke=({children:e,color:r,disabled:t=!1,error:s=!1,htmlFor:o,className:n,style:i,labelProps:l})=>{const d=H(),f=d.colors.error,y=s?f:r||d.colors.primary,m=$r({color:y,disabled:t,fontSize:".85em"}),h={"--form-label-padding-bottom":`calc(${d.fonts.rhythm} * 0.17)`,color:m.color,fontSize:m.fontSize,opacity:m.opacity,cursor:m.cursor,...i,...l==null?void 0:l.style},k=[mt.label,t?mt.disabled:"",n].filter(Boolean).join(" ");return v.jsx("label",{className:k,htmlFor:o,style:h,...l,children:e})},ht=({checked:e=!1,checkmarkColor:r,color:t,disabled:s=!1,error:o=!1,id:n,inverted:i=!1,label:l,labelStyle:d,name:f,onChange:y,className:m,style:h})=>{const k=H(),V=n||yt(),_=k.colors.error,$=o?_:t||k.colors.primary,E=zr({color:$,checkmarkColor:r,disabled:s,inverted:i}),S=T=>{s||y(T)},C={cursor:E.cursor,fontSize:k.fonts.size,opacity:E.opacity,...h},z={width:"1rem"},A=[Oe.container,m].filter(Boolean).join(" ");return v.jsxs("div",{className:A,style:C,children:[v.jsx("input",{id:V,checked:e,disabled:s,onChange:T=>S({target:{checked:T.target.checked,name:f,type:"checkbox"}}),name:f,style:{display:"none"},type:"checkbox"}),v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>S({target:{checked:!e,name:f,type:"checkbox"}}),style:z,className:Oe.svg,children:[v.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:{fill:i&&e?E.boxColor:"transparent",strokeWidth:"25",stroke:E.boxColor}}),e&&v.jsx("path",{d:"M 25 45 L 45 65 L 75 30",stroke:E.checkmarkColor,strokeWidth:"15",fill:"transparent"})]}),l&&v.jsx(ke,{htmlFor:V,className:Oe.label,style:{paddingBottom:0,...d},color:E.boxColor,disabled:s,error:o,children:l})]})},Er=()=>{const e=H();return w.useLayoutEffect(()=>{const r=document.documentElement;e.fonts&&(e.fonts.fontFamily&&r.style.setProperty("--font-family",e.fonts.fontFamily),e.fonts.size&&r.style.setProperty("--font-size",e.fonts.size),e.fonts.lineHeight!==void 0&&r.style.setProperty("--line-height",e.fonts.lineHeight.toString()),e.fonts.fontWeightHeader!==void 0&&r.style.setProperty("--font-weight-header",e.fonts.fontWeightHeader.toString()),e.fonts.fontSizeH1&&r.style.setProperty("--font-size-h1",e.fonts.fontSizeH1),e.fonts.fontSizeH2&&r.style.setProperty("--font-size-h2",e.fonts.fontSizeH2),e.fonts.fontSizeH3&&r.style.setProperty("--font-size-h3",e.fonts.fontSizeH3),e.fonts.fontSizeH4&&r.style.setProperty("--font-size-h4",e.fonts.fontSizeH4),e.fonts.fontSizeH5&&r.style.setProperty("--font-size-h5",e.fonts.fontSizeH5),e.fonts.fontSizeH6&&r.style.setProperty("--font-size-h6",e.fonts.fontSizeH6)),e.colors&&(e.colors.primary&&r.style.setProperty("--primary-color",e.colors.primary),e.colors.secondary&&r.style.setProperty("--background-color",e.colors.secondary),e.colors.accent&&r.style.setProperty("--accent-color",e.colors.accent)),e.breakpoints&&(e.breakpoints.xs&&r.style.setProperty("--breakpoint-xs",e.breakpoints.xs),e.breakpoints.sm&&r.style.setProperty("--breakpoint-sm",e.breakpoints.sm),e.breakpoints.md&&r.style.setProperty("--breakpoint-md",e.breakpoints.md),e.breakpoints.lg&&r.style.setProperty("--breakpoint-lg",e.breakpoints.lg)),e.layout&&(e.layout.maxWidth&&r.style.setProperty("--layout-max-width",e.layout.maxWidth),e.layout.paddingSm&&r.style.setProperty("--layout-wrapper-padding-sm",e.layout.paddingSm),e.layout.padding&&r.style.setProperty("--layout-wrapper-padding",e.layout.padding))},[e]),null};var ge=e=>e.type==="checkbox",ce=e=>e instanceof Date,Q=e=>e==null;const gt=e=>typeof e=="object";var P=e=>!Q(e)&&!Array.isArray(e)&>(e)&&!ce(e),_t=e=>P(e)&&e.target?ge(e.target)?e.target.checked:e.target.value:e,Ar=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vt=(e,r)=>e.has(Ar(r)),Nr=e=>{const r=e.constructor&&e.constructor.prototype;return P(r)&&r.hasOwnProperty("isPrototypeOf")},Te=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function W(e){let r;const t=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Te&&(e instanceof Blob||s))&&(t||P(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Nr(e))r=e;else for(const o in e)e.hasOwnProperty(o)&&(r[o]=W(e[o]));else return e;return r}var xe=e=>/^\w*$/.test(e),j=e=>e===void 0,Me=e=>Array.isArray(e)?e.filter(Boolean):[],He=e=>Me(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,r,t)=>{if(!r||!P(e))return t;const s=(xe(r)?[r]:He(r)).reduce((o,n)=>Q(o)?o:o[n],e);return j(s)||s===e?j(e[r])?t:e[r]:s},J=e=>typeof e=="boolean",L=(e,r,t)=>{let s=-1;const o=xe(r)?[r]:He(r),n=o.length,i=n-1;for(;++s<n;){const l=o[s];let d=t;if(s!==i){const f=e[l];d=P(f)||Array.isArray(f)?f:isNaN(+o[s+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const Ce={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},R={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ae={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},pt=w.createContext(null);pt.displayName="HookFormContext";const je=()=>w.useContext(pt);var bt=(e,r,t,s=!0)=>{const o={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(o,n,{get:()=>{const i=n;return r._proxyFormState[i]!==R.all&&(r._proxyFormState[i]=!s||R.all),t&&(t[i]=!0),e[i]}});return o};const Ie=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Dr(e){const r=je(),{control:t=r.control,disabled:s,name:o,exact:n}=e||{},[i,l]=w.useState(t._formState),d=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ie(()=>t._subscribe({name:o,formState:d.current,exact:n,callback:f=>{!s&&l({...t._formState,...f})}}),[o,s,n]),w.useEffect(()=>{d.current.isValid&&t._setValid(!0)},[t]),w.useMemo(()=>bt(i,t,d.current,!1),[i,t])}var X=e=>typeof e=="string",Pe=(e,r,t,s,o)=>X(e)?(s&&r.watch.add(e),b(t,e,o)):Array.isArray(e)?e.map(n=>(s&&r.watch.add(n),b(t,n))):(s&&(r.watchAll=!0),t),Ue=e=>Q(e)||!gt(e);function ee(e,r,t=new WeakSet){if(Ue(e)||Ue(r))return e===r;if(ce(e)&&ce(r))return e.getTime()===r.getTime();const s=Object.keys(e),o=Object.keys(r);if(s.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of s){const i=e[n];if(!o.includes(n))return!1;if(n!=="ref"){const l=r[n];if(ce(i)&&ce(l)||P(i)&&P(l)||Array.isArray(i)&&Array.isArray(l)?!ee(i,l,t):i!==l)return!1}}return!0}function Lr(e){const r=je(),{control:t=r.control,name:s,defaultValue:o,disabled:n,exact:i,compute:l}=e||{},d=w.useRef(o),f=w.useRef(l),y=w.useRef(void 0),m=w.useRef(t),h=w.useRef(s);f.current=l;const[k,V]=w.useState(()=>{const z=t._getWatch(s,d.current);return f.current?f.current(z):z}),_=w.useCallback(z=>{const A=Pe(s,t._names,z||t._formValues,!1,d.current);return f.current?f.current(A):A},[t._formValues,t._names,s]),$=w.useCallback(z=>{if(!n){const A=Pe(s,t._names,z||t._formValues,!1,d.current);if(f.current){const T=f.current(A);ee(T,y.current)||(V(T),y.current=T)}else V(A)}},[t._formValues,t._names,n,s]);Ie(()=>((m.current!==t||!ee(h.current,s))&&(m.current=t,h.current=s,$()),t._subscribe({name:s,formState:{values:!0},exact:i,callback:z=>{$(z.values)}})),[t,i,s,$]),w.useEffect(()=>t._removeUnmounted());const E=m.current!==t,S=h.current,C=w.useMemo(()=>{if(n)return null;const z=!E&&!ee(S,s);return E||z?_():null},[n,E,s,S,_]);return C!==null?C:k}function Br(e){const r=je(),{name:t,disabled:s,control:o=r.control,shouldUnregister:n,defaultValue:i}=e,l=vt(o._names.array,t),d=w.useMemo(()=>b(o._formValues,t,b(o._defaultValues,t,i)),[o,t,i]),f=Lr({control:o,name:t,defaultValue:d,exact:!0}),y=Dr({control:o,name:t,exact:!0}),m=w.useRef(e),h=w.useRef(void 0),k=w.useRef(o.register(t,{...e.rules,value:f,...J(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const V=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(y.errors,t)},isDirty:{enumerable:!0,get:()=>!!b(y.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!b(y.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!b(y.validatingFields,t)},error:{enumerable:!0,get:()=>b(y.errors,t)}}),[y,t]),_=w.useCallback(C=>k.current.onChange({target:{value:_t(C),name:t},type:Ce.CHANGE}),[t]),$=w.useCallback(()=>k.current.onBlur({target:{value:b(o._formValues,t),name:t},type:Ce.BLUR}),[t,o._formValues]),E=w.useCallback(C=>{const z=b(o._fields,t);z&&C&&(z._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:A=>C.setCustomValidity(A),reportValidity:()=>C.reportValidity()})},[o._fields,t]),S=w.useMemo(()=>({name:t,value:f,...J(s)||y.disabled?{disabled:y.disabled||s}:{},onChange:_,onBlur:$,ref:E}),[t,s,y.disabled,_,$,E,f]);return w.useEffect(()=>{const C=o._options.shouldUnregister||n,z=h.current;z&&z!==t&&!l&&o.unregister(z),o.register(t,{...m.current.rules,...J(m.current.disabled)?{disabled:m.current.disabled}:{}});const A=(T,q)=>{const oe=b(o._fields,T);oe&&oe._f&&(oe._f.mount=q)};if(A(t,!0),C){const T=W(b(o._options.defaultValues,t,m.current.defaultValue));L(o._defaultValues,t,T),j(b(o._formValues,t))&&L(o._formValues,t,T)}return!l&&o.register(t),h.current=t,()=>{(l?C&&!o._state.action:C)?o.unregister(t):A(t,!1)}},[t,o,l,n]),w.useEffect(()=>{o._setDisabledField({disabled:s,name:t})},[s,t,o]),w.useMemo(()=>({field:S,formState:y,fieldState:V}),[S,y,V])}var We=(e,r,t,s,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:o||!0}}:{},_e=e=>Array.isArray(e)?e:[e],St=()=>{let e=[];return{get observers(){return e},next:o=>{for(const n of e)n.next&&n.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(n=>n!==o)}}),unsubscribe:()=>{e=[]}}};function Ft(e,r){const t={};for(const s in e)if(e.hasOwnProperty(s)){const o=e[s],n=r[s];if(o&&P(o)&&n){const i=Ft(o,n);P(i)&&(t[s]=i)}else e[s]&&(t[s]=n)}return t}var G=e=>P(e)&&!Object.keys(e).length,qe=e=>e.type==="file",te=e=>typeof e=="function",ze=e=>{if(!Te)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Vt=e=>e.type==="select-multiple",Ge=e=>e.type==="radio",Or=e=>Ge(e)||ge(e),Ze=e=>ze(e)&&e.isConnected;function Tr(e,r){const t=r.slice(0,-1).length;let s=0;for(;s<t;)e=j(e)?s++:e[r[s++]];return e}function Mr(e){for(const r in e)if(e.hasOwnProperty(r)&&!j(e[r]))return!1;return!0}function U(e,r){const t=Array.isArray(r)?r:xe(r)?[r]:He(r),s=t.length===1?e:Tr(e,t),o=t.length-1,n=t[o];return s&&delete s[n],o!==0&&(P(s)&&G(s)||Array.isArray(s)&&Mr(s))&&U(e,t.slice(0,-1)),e}var Hr=e=>{for(const r in e)if(te(e[r]))return!0;return!1};function wt(e){return Array.isArray(e)||P(e)&&!Hr(e)}function Qe(e,r={}){for(const t in e)wt(e[t])?(r[t]=Array.isArray(e[t])?[]:{},Qe(e[t],r[t])):j(e[t])||(r[t]=!0);return r}function de(e,r,t){t||(t=Qe(r));for(const s in e)wt(e[s])?j(r)||Ue(t[s])?t[s]=Qe(e[s],Array.isArray(e[s])?[]:{}):de(e[s],Q(r)?{}:r[s],t[s]):t[s]=!ee(e[s],r[s]);return t}const kt={value:!1,isValid:!1},xt={value:!0,isValid:!0};var Ct=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&&!j(e[0].attributes.value)?j(e[0].value)||e[0].value===""?xt:{value:e[0].value,isValid:!0}:xt:kt}return kt},zt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>j(e)?e:r?e===""?NaN:e&&+e:t&&X(e)?new Date(e):s?s(e):e;const $t={isValid:!1,value:null};var Et=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,$t):$t;function At(e){const r=e.ref;return qe(r)?r.files:Ge(r)?Et(e.refs).value:Vt(r)?[...r.selectedOptions].map(({value:t})=>t):ge(r)?Ct(e.refs).value:zt(j(r.value)?e.ref.value:r.value,e)}var jr=(e,r,t,s)=>{const o={};for(const n of e){const i=b(r,n);i&&L(o,n,i._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:s}},$e=e=>e instanceof RegExp,ve=e=>j(e)?e:$e(e)?e.source:P(e)?$e(e.value)?e.value.source:e.value:e,Nt=e=>({isOnSubmit:!e||e===R.onSubmit,isOnBlur:e===R.onBlur,isOnChange:e===R.onChange,isOnAll:e===R.all,isOnTouch:e===R.onTouched});const Dt="AsyncFunction";var Ir=e=>!!e&&!!e.validate&&!!(te(e.validate)&&e.validate.constructor.name===Dt||P(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Dt)),Pr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Lt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const pe=(e,r,t,s)=>{for(const o of t||Object.keys(e)){const n=b(e,o);if(n){const{_f:i,...l}=n;if(i){if(i.refs&&i.refs[0]&&r(i.refs[0],o)&&!s)return!0;if(i.ref&&r(i.ref,i.name)&&!s)return!0;if(pe(l,r))break}else if(P(l)&&pe(l,r))break}}};function Bt(e,r,t){const s=b(e,t);if(s||xe(t))return{error:s,name:t};const o=t.split(".");for(;o.length;){const n=o.join("."),i=b(r,n),l=b(e,n);if(i&&!Array.isArray(i)&&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};o.pop()}return{name:t}}var Ur=(e,r,t,s)=>{t(e);const{name:o,...n}=e;return G(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(i=>r[i]===(!s||R.all))},Wr=(e,r,t)=>!e||!r||e===r||_e(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s))),qr=(e,r,t,s,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?s.isOnBlur:o.isOnBlur)?!e:(t?s.isOnChange:o.isOnChange)?e:!0,Gr=(e,r)=>!Me(b(e,r)).length&&U(e,r),Zr=(e,r,t)=>{const s=_e(b(e,t));return L(s,"root",r[t]),L(e,t,s),e};function Ot(e,r,t="validate"){if(X(e)||Array.isArray(e)&&e.every(X)||J(e)&&!e)return{type:t,message:X(e)?e:"",ref:r}}var fe=e=>P(e)&&!$e(e)?e:{value:e,message:""},Tt=async(e,r,t,s,o,n)=>{const{ref:i,refs:l,required:d,maxLength:f,minLength:y,min:m,max:h,pattern:k,validate:V,name:_,valueAsNumber:$,mount:E}=e._f,S=b(t,_);if(!E||r.has(_))return{};const C=l?l[0]:i,z=D=>{o&&C.reportValidity&&(C.setCustomValidity(J(D)?"":D||""),C.reportValidity())},A={},T=Ge(i),q=ge(i),oe=T||q,re=($||qe(i))&&j(i.value)&&j(S)||ze(i)&&i.value===""||S===""||Array.isArray(S)&&!S.length,ue=We.bind(null,_,s,A),ne=(D,O,I,Z=ae.maxLength,K=ae.minLength)=>{const ie=D?O:I;A[_]={type:D?Z:K,message:ie,ref:i,...ue(D?Z:K,ie)}};if(n?!Array.isArray(S)||!S.length:d&&(!oe&&(re||Q(S))||J(S)&&!S||q&&!Ct(l).isValid||T&&!Et(l).isValid)){const{value:D,message:O}=X(d)?{value:!!d,message:d}:fe(d);if(D&&(A[_]={type:ae.required,message:O,ref:C,...ue(ae.required,O)},!s))return z(O),A}if(!re&&(!Q(m)||!Q(h))){let D,O;const I=fe(h),Z=fe(m);if(!Q(S)&&!isNaN(S)){const K=i.valueAsNumber||S&&+S;Q(I.value)||(D=K>I.value),Q(Z.value)||(O=K<Z.value)}else{const K=i.valueAsDate||new Date(S),ie=De=>new Date(new Date().toDateString()+" "+De),Se=i.type=="time",he=i.type=="week";X(I.value)&&S&&(D=Se?ie(S)>ie(I.value):he?S>I.value:K>new Date(I.value)),X(Z.value)&&S&&(O=Se?ie(S)<ie(Z.value):he?S<Z.value:K<new Date(Z.value))}if((D||O)&&(ne(!!D,I.message,Z.message,ae.max,ae.min),!s))return z(A[_].message),A}if((f||y)&&!re&&(X(S)||n&&Array.isArray(S))){const D=fe(f),O=fe(y),I=!Q(D.value)&&S.length>+D.value,Z=!Q(O.value)&&S.length<+O.value;if((I||Z)&&(ne(I,D.message,O.message),!s))return z(A[_].message),A}if(k&&!re&&X(S)){const{value:D,message:O}=fe(k);if($e(D)&&!S.match(D)&&(A[_]={type:ae.pattern,message:O,ref:i,...ue(ae.pattern,O)},!s))return z(O),A}if(V){if(te(V)){const D=await V(S,t),O=Ot(D,C);if(O&&(A[_]={...O,...ue(ae.validate,O.message)},!s))return z(O.message),A}else if(P(V)){let D={};for(const O in V){if(!G(D)&&!s)break;const I=Ot(await V[O](S,t),C,O);I&&(D={...I,...ue(O,I.message)},z(I.message),s&&(A[_]=D))}if(!G(D)&&(A[_]={ref:C,...D},!s))return A}}return z(!0),A};const Qr={mode:R.onSubmit,reValidateMode:R.onChange,shouldFocusError:!0};function Kr(e={}){let r={...Qr,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:te(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},o=P(r.defaultValues)||P(r.values)?W(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:W(o),i={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,f=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...y};const h={array:St(),state:St()},k=r.criteriaMode===R.all,V=a=>c=>{clearTimeout(f),f=setTimeout(a,c)},_=async a=>{if(!r.disabled&&(y.isValid||m.isValid||a)){const c=r.resolver?G((await q()).errors):await re(s,!0);c!==t.isValid&&h.state.next({isValid:c})}},$=(a,c)=>{!r.disabled&&(y.isValidating||y.validatingFields||m.isValidating||m.validatingFields)&&((a||Array.from(l.mount)).forEach(u=>{u&&(c?L(t.validatingFields,u,c):U(t.validatingFields,u))}),h.state.next({validatingFields:t.validatingFields,isValidating:!G(t.validatingFields)}))},E=(a,c=[],u,F,p=!0,g=!0)=>{if(F&&u&&!r.disabled){if(i.action=!0,g&&Array.isArray(b(s,a))){const x=u(b(s,a),F.argA,F.argB);p&&L(s,a,x)}if(g&&Array.isArray(b(t.errors,a))){const x=u(b(t.errors,a),F.argA,F.argB);p&&L(t.errors,a,x),Gr(t.errors,a)}if((y.touchedFields||m.touchedFields)&&g&&Array.isArray(b(t.touchedFields,a))){const x=u(b(t.touchedFields,a),F.argA,F.argB);p&&L(t.touchedFields,a,x)}(y.dirtyFields||m.dirtyFields)&&(t.dirtyFields=de(o,n)),h.state.next({name:a,isDirty:ne(a,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else L(n,a,c)},S=(a,c)=>{L(t.errors,a,c),h.state.next({errors:t.errors})},C=a=>{t.errors=a,h.state.next({errors:t.errors,isValid:!1})},z=(a,c,u,F)=>{const p=b(s,a);if(p){const g=b(n,a,j(u)?b(o,a):u);j(g)||F&&F.defaultChecked||c?L(n,a,c?g:At(p._f)):I(a,g),i.mount&&_()}},A=(a,c,u,F,p)=>{let g=!1,x=!1;const B={name:a};if(!r.disabled){if(!u||F){(y.isDirty||m.isDirty)&&(x=t.isDirty,t.isDirty=B.isDirty=ne(),g=x!==B.isDirty);const M=ee(b(o,a),c);x=!!b(t.dirtyFields,a),M?U(t.dirtyFields,a):L(t.dirtyFields,a,!0),B.dirtyFields=t.dirtyFields,g=g||(y.dirtyFields||m.dirtyFields)&&x!==!M}if(u){const M=b(t.touchedFields,a);M||(L(t.touchedFields,a,u),B.touchedFields=t.touchedFields,g=g||(y.touchedFields||m.touchedFields)&&M!==u)}g&&p&&h.state.next(B)}return g?B:{}},T=(a,c,u,F)=>{const p=b(t.errors,a),g=(y.isValid||m.isValid)&&J(c)&&t.isValid!==c;if(r.delayError&&u?(d=V(()=>S(a,u)),d(r.delayError)):(clearTimeout(f),d=null,u?L(t.errors,a,u):U(t.errors,a)),(u?!ee(p,u):p)||!G(F)||g){const x={...F,...g&&J(c)?{isValid:c}:{},errors:t.errors,name:a};t={...t,...x},h.state.next(x)}},q=async a=>{$(a,!0);const c=await r.resolver(n,r.context,jr(a||l.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return $(a),c},oe=async a=>{const{errors:c}=await q(a);if(a)for(const u of a){const F=b(c,u);F?L(t.errors,u,F):U(t.errors,u)}else t.errors=c;return c},re=async(a,c,u={valid:!0})=>{for(const F in a){const p=a[F];if(p){const{_f:g,...x}=p;if(g){const B=l.array.has(g.name),M=p._f&&Ir(p._f);M&&y.validatingFields&&$([g.name],!0);const Y=await Tt(p,l.disabled,n,k,r.shouldUseNativeValidation&&!c,B);if(M&&y.validatingFields&&$([g.name]),Y[g.name]&&(u.valid=!1,c))break;!c&&(b(Y,g.name)?B?Zr(t.errors,Y,g.name):L(t.errors,g.name,Y[g.name]):U(t.errors,g.name))}!G(x)&&await re(x,c,u)}}return u.valid},ue=()=>{for(const a of l.unMount){const c=b(s,a);c&&(c._f.refs?c._f.refs.every(u=>!Ze(u)):!Ze(c._f.ref))&&st(a)}l.unMount=new Set},ne=(a,c)=>!r.disabled&&(a&&c&&L(n,a,c),!ee(De(),o)),D=(a,c,u)=>Pe(a,l,{...i.mount?n:j(c)?o:X(a)?{[a]:c}:c},u,c),O=a=>Me(b(i.mount?n:o,a,r.shouldUnregister?b(o,a,[]):[])),I=(a,c,u={})=>{const F=b(s,a);let p=c;if(F){const g=F._f;g&&(!g.disabled&&L(n,a,zt(c,g)),p=ze(g.ref)&&Q(c)?"":c,Vt(g.ref)?[...g.ref.options].forEach(x=>x.selected=p.includes(x.value)):g.refs?ge(g.ref)?g.refs.forEach(x=>{(!x.defaultChecked||!x.disabled)&&(Array.isArray(p)?x.checked=!!p.find(B=>B===x.value):x.checked=p===x.value||!!p)}):g.refs.forEach(x=>x.checked=x.value===p):qe(g.ref)?g.ref.value="":(g.ref.value=p,g.ref.type||h.state.next({name:a,values:W(n)})))}(u.shouldDirty||u.shouldTouch)&&A(a,p,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&he(a)},Z=(a,c,u)=>{for(const F in c){if(!c.hasOwnProperty(F))return;const p=c[F],g=a+"."+F,x=b(s,g);(l.array.has(a)||P(p)||x&&!x._f)&&!ce(p)?Z(g,p,u):I(g,p,u)}},K=(a,c,u={})=>{const F=b(s,a),p=l.array.has(a),g=W(c);L(n,a,g),p?(h.array.next({name:a,values:W(n)}),(y.isDirty||y.dirtyFields||m.isDirty||m.dirtyFields)&&u.shouldDirty&&h.state.next({name:a,dirtyFields:de(o,n),isDirty:ne(a,g)})):F&&!F._f&&!Q(g)?Z(a,g,u):I(a,g,u),Lt(a,l)&&h.state.next({...t,name:a}),h.state.next({name:i.mount?a:void 0,values:W(n)})},ie=async a=>{i.mount=!0;const c=a.target;let u=c.name,F=!0;const p=b(s,u),g=M=>{F=Number.isNaN(M)||ce(M)&&isNaN(M.getTime())||ee(M,b(n,u,M))},x=Nt(r.mode),B=Nt(r.reValidateMode);if(p){let M,Y;const Le=c.type?At(p._f):_t(a),le=a.type===Ce.BLUR||a.type===Ce.FOCUS_OUT,js=!Pr(p._f)&&!r.resolver&&!b(t.errors,u)&&!p._f.deps||qr(le,b(t.touchedFields,u),t.isSubmitted,B,x),it=Lt(u,l,le);L(n,u,Le),le?(!c||!c.readOnly)&&(p._f.onBlur&&p._f.onBlur(a),d&&d(0)):p._f.onChange&&p._f.onChange(a);const at=A(u,Le,le),Is=!G(at)||it;if(!le&&h.state.next({name:u,type:a.type,values:W(n)}),js)return(y.isValid||m.isValid)&&(r.mode==="onBlur"?le&&_():le||_()),Is&&h.state.next({name:u,...it?{}:at});if(!le&&it&&h.state.next({...t}),r.resolver){const{errors:br}=await q([u]);if(g(Le),F){const Ps=Bt(t.errors,s,u),Sr=Bt(br,s,Ps.name||u);M=Sr.error,u=Sr.name,Y=G(br)}}else $([u],!0),M=(await Tt(p,l.disabled,n,k,r.shouldUseNativeValidation))[u],$([u]),g(Le),F&&(M?Y=!1:(y.isValid||m.isValid)&&(Y=await re(s,!0)));F&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&he(p._f.deps),T(u,Y,M,at))}},Se=(a,c)=>{if(b(t.errors,c)&&a.focus)return a.focus(),1},he=async(a,c={})=>{let u,F;const p=_e(a);if(r.resolver){const g=await oe(j(a)?a:p);u=G(g),F=a?!p.some(x=>b(g,x)):u}else a?(F=(await Promise.all(p.map(async g=>{const x=b(s,g);return await re(x&&x._f?{[g]:x}:x)}))).every(Boolean),!(!F&&!t.isValid)&&_()):F=u=await re(s);return h.state.next({...!X(a)||(y.isValid||m.isValid)&&u!==t.isValid?{}:{name:a},...r.resolver||!a?{isValid:u}:{},errors:t.errors}),c.shouldFocus&&!F&&pe(s,Se,a?p:l.mount),F},De=(a,c)=>{let u={...i.mount?n:o};return c&&(u=Ft(c.dirtyFields?t.dirtyFields:t.touchedFields,u)),j(a)?u:X(a)?b(u,a):a.map(F=>b(u,F))},fr=(a,c)=>({invalid:!!b((c||t).errors,a),isDirty:!!b((c||t).dirtyFields,a),error:b((c||t).errors,a),isValidating:!!b(t.validatingFields,a),isTouched:!!b((c||t).touchedFields,a)}),Ds=a=>{a&&_e(a).forEach(c=>U(t.errors,c)),h.state.next({errors:a?t.errors:{}})},yr=(a,c,u)=>{const F=(b(s,a,{_f:{}})._f||{}).ref,p=b(t.errors,a)||{},{ref:g,message:x,type:B,...M}=p;L(t.errors,a,{...M,...c,ref:F}),h.state.next({name:a,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&F&&F.focus&&F.focus()},Ls=(a,c)=>te(a)?h.state.subscribe({next:u=>"values"in u&&a(D(void 0,c),u)}):D(a,c,!0),mr=a=>h.state.subscribe({next:c=>{Wr(a.name,c.name,a.exact)&&Ur(c,a.formState||y,Hs,a.reRenderRoot)&&a.callback({values:{...n},...t,...c,defaultValues:o})}}).unsubscribe,Bs=a=>(i.mount=!0,m={...m,...a.formState},mr({...a,formState:m})),st=(a,c={})=>{for(const u of a?_e(a):l.mount)l.mount.delete(u),l.array.delete(u),c.keepValue||(U(s,u),U(n,u)),!c.keepError&&U(t.errors,u),!c.keepDirty&&U(t.dirtyFields,u),!c.keepTouched&&U(t.touchedFields,u),!c.keepIsValidating&&U(t.validatingFields,u),!r.shouldUnregister&&!c.keepDefaultValue&&U(o,u);h.state.next({values:W(n)}),h.state.next({...t,...c.keepDirty?{isDirty:ne()}:{}}),!c.keepIsValid&&_()},hr=({disabled:a,name:c})=>{(J(a)&&i.mount||a||l.disabled.has(c))&&(a?l.disabled.add(c):l.disabled.delete(c))},ot=(a,c={})=>{let u=b(s,a);const F=J(c.disabled)||J(r.disabled);return L(s,a,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:a}},name:a,mount:!0,...c}}),l.mount.add(a),u?hr({disabled:J(c.disabled)?c.disabled:r.disabled,name:a}):z(a,!0,c.value),{...F?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:ve(c.min),max:ve(c.max),minLength:ve(c.minLength),maxLength:ve(c.maxLength),pattern:ve(c.pattern)}:{},name:a,onChange:ie,onBlur:ie,ref:p=>{if(p){ot(a,c),u=b(s,a);const g=j(p.value)&&p.querySelectorAll&&p.querySelectorAll("input,select,textarea")[0]||p,x=Or(g),B=u._f.refs||[];if(x?B.find(M=>M===g):g===u._f.ref)return;L(s,a,{_f:{...u._f,...x?{refs:[...B.filter(Ze),g,...Array.isArray(b(o,a))?[{}]:[]],ref:{type:g.type,name:a}}:{ref:g}}}),z(a,!1,void 0,g)}else u=b(s,a,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(vt(l.array,a)&&i.action)&&l.unMount.add(a)}}},nt=()=>r.shouldFocusError&&pe(s,Se,l.mount),Os=a=>{J(a)&&(h.state.next({disabled:a}),pe(s,(c,u)=>{const F=b(s,u);F&&(c.disabled=F._f.disabled||a,Array.isArray(F._f.refs)&&F._f.refs.forEach(p=>{p.disabled=F._f.disabled||a}))},0,!1))},gr=(a,c)=>async u=>{let F;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let p=W(n);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:g,values:x}=await q();t.errors=g,p=W(x)}else await re(s);if(l.disabled.size)for(const g of l.disabled)U(p,g);if(U(t.errors,"root"),G(t.errors)){h.state.next({errors:{}});try{await a(p,u)}catch(g){F=g}}else c&&await c({...t.errors},u),nt(),setTimeout(nt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:G(t.errors)&&!F,submitCount:t.submitCount+1,errors:t.errors}),F)throw F},Ts=(a,c={})=>{b(s,a)&&(j(c.defaultValue)?K(a,W(b(o,a))):(K(a,c.defaultValue),L(o,a,W(c.defaultValue))),c.keepTouched||U(t.touchedFields,a),c.keepDirty||(U(t.dirtyFields,a),t.isDirty=c.defaultValue?ne(a,W(b(o,a))):ne()),c.keepError||(U(t.errors,a),y.isValid&&_()),h.state.next({...t}))},_r=(a,c={})=>{const u=a?W(a):o,F=W(u),p=G(a),g=p?o:F;if(c.keepDefaultValues||(o=u),!c.keepValues){if(c.keepDirtyValues){const x=new Set([...l.mount,...Object.keys(de(o,n))]);for(const B of Array.from(x))b(t.dirtyFields,B)?L(g,B,b(n,B)):K(B,b(g,B))}else{if(Te&&j(a))for(const x of l.mount){const B=b(s,x);if(B&&B._f){const M=Array.isArray(B._f.refs)?B._f.refs[0]:B._f.ref;if(ze(M)){const Y=M.closest("form");if(Y){Y.reset();break}}}}if(c.keepFieldsRef)for(const x of l.mount)K(x,b(g,x));else s={}}n=r.shouldUnregister?c.keepDefaultValues?W(o):{}:W(g),h.array.next({values:{...g}}),h.state.next({values:{...g}})}l={mount:c.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!y.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!G(g),i.watch=!!r.shouldUnregister,h.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:p?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ee(a,o)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:p?{}:c.keepDirtyValues?c.keepDefaultValues&&n?de(o,n):t.dirtyFields:c.keepDefaultValues&&a?de(o,a):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},vr=(a,c)=>_r(te(a)?a(n):a,c),Ms=(a,c={})=>{const u=b(s,a),F=u&&u._f;if(F){const p=F.refs?F.refs[0]:F.ref;p.focus&&(p.focus(),c.shouldSelect&&te(p.select)&&p.select())}},Hs=a=>{t={...t,...a}},pr={control:{register:ot,unregister:st,getFieldState:fr,handleSubmit:gr,setError:yr,_subscribe:mr,_runSchema:q,_focusError:nt,_getWatch:D,_getDirty:ne,_setValid:_,_setFieldArray:E,_setDisabledField:hr,_setErrors:C,_getFieldArray:O,_reset:_r,_resetDefaultValues:()=>te(r.defaultValues)&&r.defaultValues().then(a=>{vr(a,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:ue,_disableForm:Os,_subjects:h,_proxyFormState:y,get _fields(){return s},get _formValues(){return n},get _state(){return i},set _state(a){i=a},get _defaultValues(){return o},get _names(){return l},set _names(a){l=a},get _formState(){return t},get _options(){return r},set _options(a){r={...r,...a}}},subscribe:Bs,trigger:he,register:ot,handleSubmit:gr,watch:Ls,setValue:K,getValues:De,reset:vr,resetField:Ts,clearErrors:Ds,unregister:st,setError:yr,setFocus:Ms,getFieldState:fr};return{...pr,formControl:pr}}function Jr(e={}){const r=w.useRef(void 0),t=w.useRef(void 0),[s,o]=w.useState({isDirty:!1,isValidating:!1,isLoading:te(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:te(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:s},e.defaultValues&&!te(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...l}=Kr(e);r.current={...l,formState:s}}const n=r.current.control;return n._options=e,Ie(()=>{const i=n._subscribe({formState:n._proxyFormState,callback:()=>o({...n._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),n._formState.isReady=!0,i},[n]),w.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),w.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),w.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),w.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),w.useEffect(()=>{if(n._proxyFormState.isDirty){const i=n._getDirty();i!==s.isDirty&&n._subjects.state.next({isDirty:i})}},[n,s.isDirty]),w.useEffect(()=>{e.values&&!ee(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,o(i=>({...i}))):n._resetDefaultValues()},[n,e.values]),w.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=bt(s,n),r.current}const Mt=(e,r,t)=>{if(e&&"reportValidity"in e){const s=b(t,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Ke=(e,r)=>{for(const t in r.fields){const s=r.fields[t];s&&s.ref&&"reportValidity"in s.ref?Mt(s.ref,t,e):s&&s.refs&&s.refs.forEach(o=>Mt(o,t,e))}},Ht=(e,r)=>{r.shouldUseNativeValidation&&Ke(e,r);const t={};for(const s in e){const o=b(r.fields,s),n=Object.assign(e[s]||{},{ref:o&&o.ref});if(Xr(r.names||Object.keys(e),s)){const i=Object.assign({},b(t,s));L(i,"root",n),L(t,s,i)}else L(t,s,n)}return t},Xr=(e,r)=>{const t=jt(r);return e.some(s=>jt(s).match(`^${t}\\.\\d+`))};function jt(e){return e.replace(/\]|\[/g,"")}function It(e,r,t){function s(l,d){var f;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(f=l._zod).traits??(f.traits=new Set),l._zod.traits.add(e),r(l,d);for(const y in i.prototype)y in l||Object.defineProperty(l,y,{value:i.prototype[y].bind(l)});l._zod.constr=i,l._zod.def=d}const o=(t==null?void 0:t.Parent)??Object;class n extends o{}Object.defineProperty(n,"name",{value:e});function i(l){var d;const f=t!=null&&t.Parent?new n:this;s(f,l),(d=f._zod).deferred??(d.deferred=[]);for(const y of f._zod.deferred)y();return f}return Object.defineProperty(i,"init",{value:s}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var d,f;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(f=(d=l==null?void 0:l._zod)==null?void 0:d.traits)==null?void 0:f.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Yr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Rr={};function Pt(e){return Rr}function es(e,r){return typeof r=="bigint"?r.toString():r}const Ut="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ee(e){return typeof e=="string"?e:e==null?void 0:e.message}function Wt(e,r,t){var o,n,i,l,d,f;const s={...e,path:e.path??[]};if(!e.message){const y=Ee((i=(n=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:n.error)==null?void 0:i.call(n,e))??Ee((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??Ee((d=t.customError)==null?void 0:d.call(t,e))??Ee((f=t.localeError)==null?void 0:f.call(t,e))??"Invalid input";s.message=y}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const qt=(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,es,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ts=It("$ZodError",qt),Gt=It("$ZodError",qt,{Parent:Error}),rs=(e=>(r,t,s,o)=>{const n=s?Object.assign(s,{async:!1}):{async:!1},i=r._zod.run({value:t,issues:[]},n);if(i instanceof Promise)throw new Yr;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(d=>Wt(d,n,Pt())));throw Ut(l,o==null?void 0:o.callee),l}return i.value})(Gt),ss=(e=>async(r,t,s,o)=>{const n=s?Object.assign(s,{async:!0}):{async:!0};let i=r._zod.run({value:t,issues:[]},n);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(d=>Wt(d,n,Pt())));throw Ut(l,o==null?void 0:o.callee),l}return i.value})(Gt);function Zt(e,r){try{var t=e()}catch(s){return r(s)}return t&&t.then?t.then(void 0,r):t}function os(e,r){for(var t={};e.length;){var s=e[0],o=s.code,n=s.message,i=s.path.join(".");if(!t[i])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];t[i]={message:l.message,type:l.code}}else t[i]={message:n,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(y){return y.errors.forEach(function(m){return e.push(m)})}),r){var d=t[i].types,f=d&&d[s.code];t[i]=We(i,r,t,o,f?[].concat(f,s.message):s.message)}e.shift()}return t}function ns(e,r){for(var t={};e.length;){var s=e[0],o=s.code,n=s.message,i=s.path.join(".");if(!t[i])if(s.code==="invalid_union"&&s.errors.length>0){var l=s.errors[0][0];t[i]={message:l.message,type:l.code}}else t[i]={message:n,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(y){return y.forEach(function(m){return e.push(m)})}),r){var d=t[i].types,f=d&&d[s.code];t[i]=We(i,r,t,o,f?[].concat(f,s.message):s.message)}e.shift()}return t}function is(e,r,t){if(t===void 0&&(t={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(e))return function(s,o,n){try{return Promise.resolve(Zt(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(i){return n.shouldUseNativeValidation&&Ke({},n),{errors:{},values:t.raw?Object.assign({},s):i}})},function(i){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(i))return{values:{},errors:Ht(os(i.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw i}))}catch(i){return Promise.reject(i)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(e))return function(s,o,n){try{return Promise.resolve(Zt(function(){return Promise.resolve((t.mode==="sync"?rs:ss)(e,s,r)).then(function(i){return n.shouldUseNativeValidation&&Ke({},n),{errors:{},values:t.raw?Object.assign({},s):i}})},function(i){if((function(l){return l instanceof ts})(i))return{values:{},errors:Ht(ns(i.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw i}))}catch(i){return Promise.reject(i)}};throw new Error("Invalid input: not a Zod schema")}const Qt=w.createContext(null);function Kt(){const e=w.useContext(Qt);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function as({onSubmit:e,children:r,schema:t,defaultValues:s,mode:o="onSubmit",reValidateMode:n="onChange",...i}){const l=Jr({resolver:t?is(t):void 0,defaultValues:s,mode:o,reValidateMode:n}),d=l.handleSubmit(e);return v.jsx(Qt.Provider,{value:l,children:v.jsx("form",{onSubmit:d,...i,children:typeof r=="function"?r(l):r})})}const ls=as,cs={formError:"FormError-module__formError___kaUBn"},Jt=({children:e,className:r,style:t,color:s,divProps:o})=>{const n=H(),i={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:s||n.colors.error,...t,...o==null?void 0:o.style},l=[cs.formError,r].filter(Boolean).join(" ");return v.jsx("div",{className:l,style:i,role:"alert","aria-live":"polite",...o,children:e})},ye={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"},Xt=({children:e,label:r,name:t,error:s=!1,errorMessage:o,disabled:n=!1,required:i=!1,indent:l=!1,className:d,style:f,labelProps:y,divProps:m})=>{const h=H(),k=[ye.formGroup,s?ye.error:"",n?ye.disabled:"",d].filter(Boolean).join(" "),V={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...f,...m==null?void 0:m.style},_=w.Children.map(e,$=>{if(w.isValidElement($)){const E={};if(n&&$.props.disabled===void 0&&(E.disabled=!0),s&&$.props.error===void 0&&(E.error=!0),t&&$.props.id===void 0&&(E.id=t),Object.keys(E).length>0)return w.cloneElement($,E)}return $});return v.jsxs("div",{className:k,style:V,...m,children:[r&&v.jsxs(ke,{htmlFor:t,disabled:n,error:s,...y,children:[r,i&&v.jsxs("span",{className:ye.required,"aria-label":"required",children:[" ","*"]})]}),v.jsx("div",{className:`${ye.inputWrapper} ${l?ye.indented:""}`,children:_}),s&&o&&v.jsx(Jt,{children:o})]})};function me({name:e,label:r,required:t,children:s,rules:o,disabled:n,className:i,style:l,indent:d,labelProps:f}){const{control:y}=Kt(),{field:m,fieldState:{error:h}}=Br({name:e,control:y,rules:o});return v.jsx(Xt,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:i,style:l,indent:d,labelProps:f,children:s({value:m.value,onChange:m.onChange,onBlur:m.onBlur,name:m.name,error:!!h,indent:d})})}const Je={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},us=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:s=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:s}),Yt=({color:e,disabled:r=!1,error:t=!1,id:s,name:o="",onChange:n,onBlur:i,placeholder:l,placeholderOpacity:d=.3,size:f="large",className:y,style:m,type:h="text",value:k="",inputProps:V})=>{const _=H(),$=_.colors.error,E=t?$:e||_.colors.primary,S=us({color:E,disabled:r,fontSize:_.fonts.size,placeholderOpacity:d}),C={"--placeholder-opacity":S.placeholderOpacity,"--input-padding-small":`calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,"--input-padding-large":`calc(${_.fonts.rhythm} * ${_.sizes.large.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,borderColor:S.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:S.color,fontSize:S.fontSize,opacity:S.opacity,...m,...V==null?void 0:V.style},z=[Je.input,f==="small"?Je.sizeSmall:Je.sizeLarge,y].filter(Boolean).join(" ");return v.jsx("input",{className:z,disabled:r,id:s,name:o,onChange:n,onBlur:i,placeholder:l,type:h,value:k,...V,style:C})};function ds({name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,...l}){return v.jsx(me,{name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,children:({value:d,onChange:f,onBlur:y,name:m,error:h})=>v.jsx(Yt,{...l,name:m,value:d||"",onChange:k=>f(k.target.value),inputProps:{onBlur:y},error:h})})}const Xe={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},fs=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),Rt=({color:e,disabled:r=!1,error:t=!1,id:s,name:o="",onChange:n,onBlur:i,placeholder:l,placeholderOpacity:d=.3,rows:f=3,size:y="large",className:m,style:h,value:k="",textareaProps:V})=>{const _=H(),$=_.colors.error,E=t?$:e||_.colors.primary,S=fs({color:E,disabled:r,placeholderOpacity:d}),C={"--placeholder-opacity":S.placeholderOpacity,"--textarea-padding-small":`calc(${_.fonts.rhythm} * ${_.sizes.small.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,"--textarea-padding-large":`calc(${_.fonts.rhythm} * ${_.sizes.large.paddingVertical}) calc(${_.fonts.rhythm} * ${_.inputs.paddingHorizontal})`,borderColor:S.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:S.color,fontSize:_.fonts.size,opacity:S.opacity,...h,...V==null?void 0:V.style},z=[Xe.textarea,y==="small"?Xe.sizeSmall:Xe.sizeLarge,m].filter(Boolean).join(" ");return v.jsx("textarea",{className:z,disabled:r,id:s,name:o,onChange:n,onBlur:i,placeholder:l,rows:f,value:k,...V,style:C})};function ys({name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,...l}){return v.jsx(me,{name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,children:({value:d,onChange:f,onBlur:y,name:m,error:h})=>v.jsx(Rt,{...l,name:m,value:d||"",onChange:k=>f(k.target.value),onBlur:y,error:h})})}const Ye={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},ms=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const i=`
|
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
4
4
|
<path
|
|
5
5
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
fill="transparent"
|
|
15
15
|
/>
|
|
16
16
|
</svg>
|
|
17
|
-
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(
|
|
17
|
+
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(i)}")`})(e)}),er=({children:e,color:r,disabled:t=!1,error:s=!1,id:o,name:n="",onChange:i,onBlur:l,placeholder:d="",size:f="large",className:y,style:m,value:h="",selectProps:k})=>{const V=H(),_=V.colors.error,$=s?_:r||V.colors.primary,E=ms({color:$,disabled:t}),S={"--select-padding-small":`calc(${V.fonts.rhythm} * ${V.sizes.small.paddingVertical}) calc(${V.fonts.rhythm} * 1.2) calc(${V.fonts.rhythm} * ${V.sizes.small.paddingVertical}) calc(${V.fonts.rhythm} * ${V.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${V.fonts.rhythm} * ${V.sizes.large.paddingVertical}) calc(${V.fonts.rhythm} * 1.4) calc(${V.fonts.rhythm} * ${V.sizes.large.paddingVertical}) calc(${V.fonts.rhythm} * ${V.inputs.paddingHorizontal})`,backgroundImage:E.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:E.borderColor,borderWidth:V.border.width,borderRadius:V.border.radius,color:E.color,cursor:E.cursor,fontSize:V.fonts.size,opacity:E.opacity,...m,...k==null?void 0:k.style},C=[Ye.select,f==="small"?Ye.sizeSmall:Ye.sizeLarge,y].filter(Boolean).join(" ");return v.jsxs("select",{className:C,disabled:t,id:o,name:n,onChange:i,onBlur:l,value:h,...k,style:S,children:[d!==""&&v.jsx("option",{disabled:!0,value:"",children:d}),e]})};function hs({name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,children:l,...d}){return v.jsx(me,{name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,children:({value:f,onChange:y,onBlur:m,name:h,error:k})=>v.jsx(er,{...d,name:h,value:f||"",onChange:V=>y(V.target.value),onBlur:m,error:k,children:l})})}function gs({name:e,required:r,rules:t,disabled:s,className:o,style:n,...i}){return v.jsx(me,{name:e,required:r,rules:t,disabled:s,className:o,style:n,children:({value:l,onChange:d,name:f,error:y})=>v.jsx(ht,{...i,name:f,checked:!!l,onChange:m=>d(m.target.checked),error:y})})}const Re={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},_s=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),tr=({checked:e=!1,color:r,disabled:t=!1,error:s=!1,id:o,label:n,labelStyle:i,name:l,onChange:d,className:f,style:y})=>{const m=H(),h=o||yt(),k=m.colors.error,V=s?k:r||m.colors.primary,_=_s({color:V,disabled:t}),$=T=>{t||d(T)},E={cursor:_.cursor,fontSize:m.fonts.size,opacity:_.opacity,...y},S={width:m.fonts.size},C={fill:"transparent",strokeWidth:"12.5",stroke:_.radioColor},z={fill:_.radioColor},A=[Re.container,f].filter(Boolean).join(" ");return v.jsxs("div",{className:A,style:E,children:[v.jsx("input",{id:h,checked:e,disabled:t,name:l,onChange:T=>$({target:{checked:T.target.checked,name:l,type:"radio"}}),style:{display:"none"},type:"radio"}),v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>$({target:{checked:!e,name:l,type:"radio"}}),className:Re.svg,style:S,children:[v.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:C}),e&&v.jsx("circle",{cx:"50",cy:"50",r:"25",style:z})]}),n&&v.jsx(ke,{htmlFor:h,className:Re.label,style:{paddingBottom:0,...i},color:_.radioColor,disabled:t,error:s,children:n})]})};function vs({name:e,label:r,required:t,rules:s,disabled:o,className:n,style:i,value:l,...d}){return v.jsx(me,{name:e,required:t,rules:s,disabled:o,className:n,style:i,children:({value:f,onChange:y,name:m,error:h})=>v.jsx(tr,{...d,name:m,checked:f===l,onChange:()=>y(l),error:h,label:r})})}const be={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},ps=({compact:e,color:r,visible:t,border:s})=>{const o=H();return w.useMemo(()=>{const n=e?{right:".5em"}:{};return{"--hamburger-border-radius":(s==null?void 0:s.radius)||o.border.radius||"10px",color:r||"inherit",display:t?"flex":"none",...n}},[r,t,e,s==null?void 0:s.radius,o.border.radius])},rr=({visible:e,compact:r,color:t,hamburgerRef:s,open:o=!1,setOpen:n,buttonProps:i,border:l})=>{const d=ps({compact:r,color:t,visible:e,border:l}),f=[be.hamburger,o?be.open:""].filter(Boolean).join(" ");return v.jsxs("button",{ref:s,className:f,onClick:()=>n(!o),style:d,"aria-label":"Toggle menu","aria-expanded":o,...i,children:[v.jsx("div",{className:be.line}),v.jsx("div",{className:be.line}),v.jsx("div",{className:be.line})]})},sr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},bs=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:s,height:o,paddingSm:n,padding:i,margin:l,gap:d,background:f,color:y}={})=>{const m=H();return{"--header-max-width":r||m.layout.maxWidth,"--header-min-width":t,"--header-width":s,"--header-height":o,"--header-padding":e?n||m.layout.paddingSm:i||m.layout.padding,"--header-margin":l,"--header-gap":d,background:f,color:y}},se=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const i=window.matchMedia(e);return i.addEventListener("change",n),()=>i.removeEventListener("change",n)},s=()=>r?window.matchMedia(e).matches:!1,o=()=>!1;return w.useSyncExternalStore(t,s,o)},or=({children:e,breakpoint:r,maxWidth:t,minWidth:s,width:o,height:n,paddingSm:i,padding:l,margin:d,gap:f,background:y,color:m,className:h,style:k={},headerProps:V={},headerRef:_})=>{const $=H(),S=(r||$.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/),C=S?parseInt(S[1],10)-1:474,z=S?S[2]:"px",A=se(`(max-width: ${C}${z})`),T=bs({isSmallScreen:A,maxWidth:t,minWidth:s,width:o,height:n,paddingSm:i,padding:l,margin:d,gap:f,background:y,color:m}),q=[sr.container,h].filter(Boolean).join(" ");return v.jsx("header",{ref:_,className:sr.header,...V,children:v.jsx("div",{className:q,style:{...T,...k},children:e})})},Ae={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",open:"ResponsiveNav-module__open___WDCAf",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},Ss=({isMobile:e,isCompact:r,mobileBackground:t,mobileColor:s,mobileActiveBackground:o,mobileActiveColor:n,mobileButtonHoverColor:i})=>{const l=H();return w.useMemo(()=>{const{rhythm:d}=l.fonts;return{...e?{"--mobile-nav-background":t||l.colors.accent,"--mobile-nav-color":s||l.colors.primary,"--mobile-nav-active-background":o||l.colors.primary,"--mobile-nav-active-color":n||l.colors.accent,"--mobile-nav-button-hover-text-color":i||t||l.colors.accent,"--nav-padding-top":`calc(${d} * 3)`,"--nav-link-padding":`calc(${d} * 0.35) calc(${d} * 2)`,"--nav-button-margin":`calc(${d} * 0.5) calc(${d} * 1.4)`}:{}}},[t,s,o,n,i,l.colors.accent,l.colors.primary,l.fonts,e,r])};function nr(e){const t=parseInt(e)-1,s=e.replace(/[0-9]/g,"");return{maxWidth:t,unit:s}}const Fs=({breakpoints:e,children:r,mobileBackground:t,mobileColor:s,mobileActiveBackground:o,mobileActiveColor:n,mobileButtonHoverColor:i,style:l,navProps:d})=>{const[f,y]=w.useState(!1),m=w.useRef(null),h=w.useRef(null),V={...H().breakpoints,...e},{maxWidth:_,unit:$}=nr(V.md),{maxWidth:E,unit:S}=nr(V.sm),C=se(`(max-width: ${_}${$})`),z=se(`(max-width: ${E}${S})`),A=Ss({isMobile:C,isCompact:z,mobileBackground:t,mobileColor:s,mobileActiveBackground:o,mobileActiveColor:n,mobileButtonHoverColor:i});w.useEffect(()=>{const q=oe=>{!h.current||h.current.contains(oe.target)||m.current&&m.current.contains(oe.target)||y(!1)};return document.addEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}},[m,h,y]);const T=[Ae.nav,C?Ae.navMobile:Ae.navDesktop,C&&f?Ae.open:""].filter(Boolean).join(" ");return v.jsxs(v.Fragment,{children:[v.jsx(rr,{hamburgerRef:m,visible:C,compact:z,open:f,setOpen:y}),v.jsx("nav",{ref:h,className:T,style:{...A,...l},...d,children:typeof r=="function"?r({setOpen:y}):r})]})},ir=({color:e,background:r,fullScreen:t=!0,className:s,style:o})=>{const n=H(),i=e||n.colors.primary,l=r||n.colors.secondary,d=v.jsx("div",{className:t?void 0:s,style:{fontSize:"2.5em",border:`0.1em solid ${i}`,borderTop:`0.1em solid ${l}`,borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...!t&&o||{}}}),f=v.jsxs(v.Fragment,{children:[d,v.jsx("style",{children:`
|
|
18
18
|
@keyframes spin {
|
|
19
19
|
0% { transform: rotate(0deg); }
|
|
20
20
|
100% { transform: rotate(360deg); }
|
|
21
21
|
}
|
|
22
|
-
`})]});return
|
|
22
|
+
`})]});return t?v.jsx("div",{className:s,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...o},children:f}):f},Vs=({children:e,loadingComponent:r})=>{const[t,s]=w.useState(!1);return w.useEffect(()=>{requestAnimationFrame(()=>{s(!0)})},[]),t?v.jsx(v.Fragment,{children:e}):r||v.jsx(ir,{})},et={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},ws=({children:e,direction:r="column",className:t,style:s,divProps:o})=>{const n=[et.stack,r==="row"?et.horizontal:et.vertical,t].filter(Boolean).join(" ");return v.jsx("div",{className:n,style:s,...o,children:e})},ar={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},tt=({children:e,background:r,color:t,maxWidth:s,minWidth:o,width:n,height:i,padding:l,paddingSm:d,margin:f,gap:y,className:m,style:h,verticalRhythm:k=3,sectionProps:V={}})=>{const _=H(),$=se(`(min-width: ${_.breakpoints.sm})`),E={background:r,color:t||_.fonts.color,margin:f,...h,...V==null?void 0:V.style},S=`calc(${_.fonts.rhythm} * ${k})`,C=$?l||_.layout.padding:d||_.layout.paddingSm,z={"--max-width":s||_.layout.maxWidth,"--min-width":o,"--width":n,"--height":i,"--section-padding":`${S} ${C}`,"--gap":y},A=[ar.section,m].filter(Boolean).join(" ");return v.jsx("section",{className:A,style:E,...V,children:v.jsx("div",{className:ar.innerDiv,style:z,children:e})})},lr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},ks=({isMd:e=!1,isLg:r=!1,theme:t})=>w.useMemo(()=>{const{rhythm:s}=t.fonts;let o=`calc(${s} * 2) 0`,n="2rem",i="1.125rem";return r?(o=`calc(${s} * 4) 0`,n="3.5rem",i="1.5rem"):e&&(o=`calc(${s} * 3.5) 0`,n="3rem",i="1.25rem"),{"--hero-padding":o,"--hero-h1-font-size":n,"--hero-p-font-size":i,"--hero-h1-margin-bottom":`calc(${s} * 0.7)`}},[e,r,t.fonts]),xs=({children:e,className:r,color:t,breakpoints:s,style:o,...n})=>{const i=H(),l=[lr.hero,r].filter(Boolean).join(" "),d=(s==null?void 0:s.md)||i.breakpoints.md,f=(s==null?void 0:s.lg)||i.breakpoints.lg,y=se(`(min-width: ${d})`),m=se(`(min-width: ${f})`),h=ks({isMd:y,isLg:m,theme:i});return v.jsx(tt,{className:l,color:t||i.fonts.color,style:{...h,...o},...n,children:v.jsx("div",{className:lr.content,children:e})})},cr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},Cs=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:s,height:o,paddingSm:n,padding:i,margin:l,gap:d,background:f,color:y}={})=>{const m=H();return{"--footer-max-width":r||m.layout.maxWidth,"--footer-min-width":t,"--footer-width":s,"--footer-height":o,"--footer-padding":e?n||m.layout.paddingSm:i||m.layout.padding,"--footer-margin":l,"--footer-gap":d,background:f,color:y||m.fonts.color}},ur=({children:e,breakPoint:r,maxWidth:t,minWidth:s,width:o,height:n,paddingSm:i,padding:l,margin:d,gap:f,background:y,color:m,className:h,style:k={},footerProps:V={},footerRef:_})=>{const $=H(),S=(r||$.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/),C=S?parseInt(S[1],10)-1:474,z=S?S[2]:"px",A=se(`(max-width: ${C}${z})`),T=Cs({isSmallScreen:A,maxWidth:t,minWidth:s,width:o,height:n,paddingSm:i,padding:l,margin:d,gap:f,background:y,color:m}),q=[cr.container,h].filter(Boolean).join(" ");return v.jsx("footer",{ref:_,className:cr.footer,...V,children:v.jsx("div",{className:q,style:{...T,...k},children:e})})},Ne={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},zs=({isMd:e=!1,theme:r})=>w.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]),$s=({icon:e,title:r,children:t,className:s,style:o,breakpoint:n})=>{const i=H(),l=[Ne.card,s].filter(Boolean).join(" "),d=n||i.breakpoints.md,f=se(`(min-width: ${d})`),y=zs({isMd:f,theme:i});return v.jsxs("div",{className:l,style:{...y,...o},children:[e&&v.jsx("div",{className:Ne.icon,children:e}),v.jsx("h3",{className:Ne.title,children:r}),v.jsx("div",{className:Ne.content,children:t})]})},dr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},Es=({columns:e,isMd:r=!1,isLg:t=!1})=>w.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]),As=({children:e,columns:r=3,className:t,breakpoints:s,style:o,...n})=>{const i=H(),l=[dr.section,t].filter(Boolean).join(" "),d=(s==null?void 0:s.md)||i.breakpoints.md,f=(s==null?void 0:s.lg)||i.breakpoints.lg,y=se(`(min-width: ${d})`),m=se(`(min-width: ${f})`),h=Es({columns:r,isMd:y,isLg:m}),k={"--section-padding-vertical":`calc(${i.fonts.rhythm} * 2)`};return v.jsx(tt,{className:l,style:k,...n,children:v.jsx("div",{className:dr.grid,style:{...h,...o},children:e})})},rt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},Ns=({children:e,header:r,footer:t,className:s,style:o,mainStyle:n})=>{const i=[rt.layoutContainer,s].filter(Boolean).join(" ");return v.jsxs("div",{className:i,style:o,children:[v.jsxs("div",{className:rt.content,children:[r&&v.jsx(or,{children:r}),v.jsx("main",{className:rt.main,style:n,children:e})]}),t&&v.jsx(ur,{children:t})]})};N.Button=wr,N.CSSReset=Er,N.Checkbox=ht,N.FeatureCard=$s,N.FeatureGridSection=As,N.Footer=ur,N.Form=ls,N.FormCheckbox=gs,N.FormError=Jt,N.FormField=me,N.FormGroup=Xt,N.FormInput=ds,N.FormLabel=ke,N.FormRadio=vs,N.FormSelect=hs,N.FormTextarea=ys,N.Hamburger=rr,N.Header=or,N.Hero=xs,N.Input=Yt,N.LoadingSpinner=ir,N.PageLayout=Ns,N.Radio=tr,N.ResponsiveNav=Fs,N.ResponsiveSection=tt,N.Select=er,N.Stack=ws,N.StyleLoader=Vs,N.Textarea=Rt,N.ThemeProvider=Vr,N.useFormContext=Kt,N.useTheme=H,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ export { default as FeatureCard } from './components/FeatureCard';
|
|
|
22
22
|
export { default as FeatureGridSection } from './components/FeatureGridSection';
|
|
23
23
|
export { default as PageLayout } from './components/PageLayout';
|
|
24
24
|
export { ThemeProvider, useTheme } from './theme';
|
|
25
|
-
export type { Theme, ThemeColors, ThemeFonts, ThemeButtons, ThemeBreakpoints, ThemeLayout, ThemeProviderProps, DeepPartial, } from './theme';
|
|
25
|
+
export type { Theme, ThemeColors, ThemeFonts, ThemeButtons, ThemeBorder, ThemeBreakpoints, ThemeLayout, ThemeProviderProps, DeepPartial, } from './theme';
|
|
26
|
+
export type { TypographyProps, ColorProps, BorderProps, LayoutProps, BreakpointProps, StateProps, HoverProps, BaseComponentProps, FormElementProps, TextInputProps, LayoutComponentStyleProps, ElementSpecificProps, SizeVariant, ColorVariant, } from './utils/componentProps';
|
|
26
27
|
export type { ButtonProps } from './components/Button';
|
|
27
28
|
export type { CheckboxProps } from './components/Checkbox';
|
|
28
29
|
export type { FormProps, FormFieldProps, FormInputProps, FormTextareaProps, FormSelectProps, FormCheckboxProps, FormRadioProps, } from './components/Form';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,GACZ,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,GACZ,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/test-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAiB,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../src/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAiB,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA4D5D,UAAU,sBAAuB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACrE,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,EAAE,EAAE,YAAY,EAChB,EAAE,KAAU,EAAE,GAAG,aAAa,EAAE,GAAE,sBAA2B,gIAuD9D;AAGD,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -23,10 +23,22 @@ export interface ThemeFonts {
|
|
|
23
23
|
}
|
|
24
24
|
export interface ThemeButtons {
|
|
25
25
|
textColor: string;
|
|
26
|
+
paddingHorizontal: number;
|
|
26
27
|
primary: {
|
|
27
28
|
textColor: string;
|
|
28
29
|
};
|
|
29
30
|
}
|
|
31
|
+
export interface ThemeInputs {
|
|
32
|
+
paddingHorizontal: number;
|
|
33
|
+
}
|
|
34
|
+
export interface ThemeSizes {
|
|
35
|
+
small: {
|
|
36
|
+
paddingVertical: number;
|
|
37
|
+
};
|
|
38
|
+
large: {
|
|
39
|
+
paddingVertical: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
30
42
|
export interface ThemeBreakpoints {
|
|
31
43
|
xs: string;
|
|
32
44
|
sm: string;
|
|
@@ -35,8 +47,8 @@ export interface ThemeBreakpoints {
|
|
|
35
47
|
}
|
|
36
48
|
export interface ThemeLayout {
|
|
37
49
|
maxWidth: string;
|
|
38
|
-
|
|
39
|
-
|
|
50
|
+
paddingSm: string;
|
|
51
|
+
padding: string;
|
|
40
52
|
}
|
|
41
53
|
export interface ThemeBorder {
|
|
42
54
|
radius: string;
|
|
@@ -46,23 +58,35 @@ export interface Theme {
|
|
|
46
58
|
colors: ThemeColors;
|
|
47
59
|
fonts: ThemeFonts;
|
|
48
60
|
buttons: ThemeButtons;
|
|
61
|
+
inputs: ThemeInputs;
|
|
62
|
+
sizes: ThemeSizes;
|
|
49
63
|
border: ThemeBorder;
|
|
50
64
|
breakpoints: ThemeBreakpoints;
|
|
51
65
|
layout: ThemeLayout;
|
|
52
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Helper type to make all properties of an object (and nested objects) optional
|
|
69
|
+
* Used for partial theme overrides
|
|
70
|
+
*/
|
|
71
|
+
export type DeepPartial<T> = {
|
|
72
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
73
|
+
};
|
|
53
74
|
declare const ThemeContext: React.Context<Theme>;
|
|
54
75
|
export interface ThemeProviderProps {
|
|
55
|
-
theme?: Theme
|
|
76
|
+
theme?: DeepPartial<Theme>;
|
|
56
77
|
children: ReactNode;
|
|
57
78
|
}
|
|
58
79
|
/**
|
|
59
80
|
* ThemeProvider - Provides theme values to all components
|
|
60
81
|
*
|
|
82
|
+
* Accepts partial theme objects and merges them with default values.
|
|
83
|
+
* You only need to provide the properties you want to override.
|
|
84
|
+
*
|
|
61
85
|
* Supports the colors/fonts structure:
|
|
62
86
|
* - colors: { primary, secondary, accent, error, success, warning }
|
|
63
87
|
* - fonts: { color, lineHeight, fontFamily, fontWeightHeader, size, rhythm, fontSizeH1-H6 }
|
|
64
88
|
* - breakpoints: { xs, sm, md, lg }
|
|
65
|
-
* - layout: { maxWidth,
|
|
89
|
+
* - layout: { maxWidth, paddingSm, padding }
|
|
66
90
|
*
|
|
67
91
|
* @example
|
|
68
92
|
* ```jsx
|
|
@@ -74,10 +98,7 @@ export interface ThemeProviderProps {
|
|
|
74
98
|
* },
|
|
75
99
|
* fonts: {
|
|
76
100
|
* color: 'white',
|
|
77
|
-
*
|
|
78
|
-
* size: '22px',
|
|
79
|
-
* fontSizeH1: '2.5rem',
|
|
80
|
-
* fontSizeH2: '1.75rem'
|
|
101
|
+
* size: '22px'
|
|
81
102
|
* }
|
|
82
103
|
* }}>
|
|
83
104
|
* <App />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,KAAK,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AA+DF,QAAA,MAAM,YAAY,sBAAqC,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;CACrB;AA+BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAGtD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,QAAO,KAE3B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ThemeProvider, useTheme } from './ThemeContext';
|
|
2
2
|
export { default as ThemeContext } from './ThemeContext';
|
|
3
|
-
export type { Theme, ThemeColors, ThemeFonts, ThemeButtons, ThemeBreakpoints, ThemeLayout, ThemeProviderProps, DeepPartial, } from './ThemeContext';
|
|
3
|
+
export type { Theme, ThemeColors, ThemeFonts, ThemeButtons, ThemeBorder, ThemeBreakpoints, ThemeLayout, ThemeProviderProps, DeepPartial, } from './ThemeContext';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
|