digital-rabbit-cl 1.4.3 → 2.0.2
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.
|
@@ -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-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;font-size:2rem;height:100vh;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%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.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:var(--desktop-hover-opacity)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex;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}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
(function(E,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(E=typeof globalThis<"u"?globalThis:E||self,g(E.DigitalRabbitCL={},E.jsxRuntime,E.React,E.ReactDOM))})(this,(function(E,g,b,xr){"use strict";const we={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},$r=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const l=t||a.colors.primary,f=a.buttons.textColor;let u,d,m;n?(u="transparent",d=l,m=l,e&&(u=o||l,d=o||l,m=s||f)):(u=l,d=l,m=f,e&&(u=o||l,d=o||l,m=s||f));let h=1;return r?h=.3:e&&!o&&(h=.75),{backgroundColor:u,borderColor:d,color:m,opacity:h}};function yt(e,r){const t={...e};return Ve(e)&&Ve(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];Ve(s)&&Ve(n)?t[o]=yt(n,s):s!==void 0&&(t[o]=s)}),t}function Ve(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ye(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const He={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},Oe={colors:He,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:He.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"},modal:{backgroundColor:He.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},ht=b.createContext(Oe),zr=({theme:e,children:r})=>{const t=e?yt(Oe,e):Oe;return g.jsx(ht.Provider,{value:t,children:r})},O=()=>b.useContext(ht),mt=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:l,style:f,buttonProps:u={},onClick:d,children:m})=>{const h=O(),[$,k]=b.useState(!1),w={...$r({isActive:$,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:h}),fontSize:h.fonts.size,borderWidth:h.border.width,borderRadius:h.border.radius,"--button-padding-small":`calc(${h.fonts.rhythm} * ${h.sizes.small.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${h.fonts.rhythm} * ${h.sizes.large.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,...f},V=[we.button,s==="small"?we.sizeSmall:we.sizeLarge,n?we.outline:"",l].filter(Boolean).join(" ");return g.jsx("button",{...u,className:V,disabled:o,onClick:d,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),type:a,style:w,children:m})};var gt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Er=new Uint8Array(16);function Ar(){if(!gt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gt(Er)}for(var _t=[],xe=0;xe<256;++xe)_t[xe]=(xe+256).toString(16).substr(1);function Nr(e,r){var t=0,o=_t;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function vt(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Ar)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Nr(s)}const Te={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Br=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},pt={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Lr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),$e=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const f=O(),u=f.colors.error,d=t?u:e||f.colors.primary,m=Lr({color:d,disabled:r,fontSize:".85em"}),h={"--form-label-padding-bottom":`calc(${f.fonts.rhythm} * 0.17)`,color:m.color,fontSize:m.fontSize,opacity:m.opacity,cursor:m.cursor,...a},$=[pt.label,r?pt.disabled:"",n].filter(Boolean).join(" ");return g.jsx("label",{...l,className:$,htmlFor:o,style:h,children:s})},ze=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:f,label:u,labelStyle:d,className:m,style:h,divProps:$})=>{const k=O(),_=l||vt(),w=k.colors.error,V=n?w:e||k.colors.primary,C=Br({color:V,checkmarkColor:r,disabled:s,inverted:o}),A=L=>{s||f(L)},z={cursor:C.cursor,fontSize:k.fonts.size,opacity:C.opacity,...h},N={width:"1em"},T={fill:o&&t?C.checkboxColor:"transparent",strokeWidth:"25",stroke:C.checkboxColor},I={stroke:C.checkmarkColor,strokeWidth:"15",fill:"transparent"},R=[Te.container,m].filter(Boolean).join(" ");return g.jsxs("div",{...$,className:R,style:z,children:[g.jsx("input",{id:_,checked:t,disabled:s,onChange:L=>A({target:{checked:L.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>A({target:{checked:!t,name:a,type:"checkbox"}}),style:N,className:Te.svg,children:[g.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:T}),t&&g.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:I})]}),u&&g.jsx($e,{htmlFor:_,className:Te.label,style:{paddingBottom:0,...d},color:C.checkboxColor,disabled:s,error:n,children:u})]})},Pr=()=>{const e=O();return b.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 pe=e=>e.type==="checkbox",de=e=>e instanceof Date,K=e=>e==null;const bt=e=>typeof e=="object";var W=e=>!K(e)&&!Array.isArray(e)&&bt(e)&&!de(e),St=e=>W(e)&&e.target?pe(e.target)?e.target.checked:e.target.value:e,Mr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ct=(e,r)=>e.has(Mr(r)),Dr=e=>{const r=e.constructor&&e.constructor.prototype;return W(r)&&r.hasOwnProperty("isPrototypeOf")},je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function q(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(je&&(e instanceof Blob||o))&&(t||W(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Dr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=q(e[s]));else return e;return r}var Ee=e=>/^\w*$/.test(e),j=e=>e===void 0,Ie=e=>Array.isArray(e)?e.filter(Boolean):[],Ue=e=>Ie(e.replace(/["|']|\]/g,"").split(/\.|\[/)),S=(e,r,t)=>{if(!r||!W(e))return t;const o=(Ee(r)?[r]:Ue(r)).reduce((s,n)=>K(s)?s:s[n],e);return j(o)||o===e?j(e[r])?t:e[r]:o},J=e=>typeof e=="boolean",M=(e,r,t)=>{let o=-1;const s=Ee(r)?[r]:Ue(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let f=t;if(o!==a){const u=e[l];f=W(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=f,e=e[l]}};const Ae={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},se={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},le={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ft=b.createContext(null);Ft.displayName="HookFormContext";const We=()=>b.useContext(Ft);var kt=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==se.all&&(r._proxyFormState[a]=!o||se.all),t&&(t[a]=!0),e[a]}});return s};const Ge=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Hr(e){const r=We(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=b.useState(t._formState),f=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ge(()=>t._subscribe({name:s,formState:f.current,exact:n,callback:u=>{!o&&l({...t._formState,...u})}}),[s,o,n]),b.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),b.useMemo(()=>kt(a,t,f.current,!1),[a,t])}var X=e=>typeof e=="string",qe=(e,r,t,o,s)=>X(e)?(o&&r.watch.add(e),S(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),S(t,n))):(o&&(r.watchAll=!0),t),Ze=e=>K(e)||!bt(e);function ne(e,r,t=new WeakSet){if(Ze(e)||Ze(r))return e===r;if(de(e)&&de(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(de(a)&&de(l)||W(a)&&W(l)||Array.isArray(a)&&Array.isArray(l)?!ne(a,l,t):a!==l)return!1}}return!0}function Or(e){const r=We(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},f=b.useRef(s),u=b.useRef(l),d=b.useRef(void 0),m=b.useRef(t),h=b.useRef(o);u.current=l;const[$,k]=b.useState(()=>{const z=t._getWatch(o,f.current);return u.current?u.current(z):z}),_=b.useCallback(z=>{const N=qe(o,t._names,z||t._formValues,!1,f.current);return u.current?u.current(N):N},[t._formValues,t._names,o]),w=b.useCallback(z=>{if(!n){const N=qe(o,t._names,z||t._formValues,!1,f.current);if(u.current){const T=u.current(N);ne(T,d.current)||(k(T),d.current=T)}else k(N)}},[t._formValues,t._names,n,o]);Ge(()=>((m.current!==t||!ne(h.current,o))&&(m.current=t,h.current=o,w()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:z=>{w(z.values)}})),[t,a,o,w]),b.useEffect(()=>t._removeUnmounted());const V=m.current!==t,C=h.current,A=b.useMemo(()=>{if(n)return null;const z=!V&&!ne(C,o);return V||z?_():null},[n,V,o,C,_]);return A!==null?A:$}function Tr(e){const r=We(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=Ct(s._names.array,t),f=b.useMemo(()=>S(s._formValues,t,S(s._defaultValues,t,a)),[s,t,a]),u=Or({control:s,name:t,defaultValue:f,exact:!0}),d=Hr({control:s,name:t,exact:!0}),m=b.useRef(e),h=b.useRef(void 0),$=b.useRef(s.register(t,{...e.rules,value:u,...J(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const k=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!S(d.errors,t)},isDirty:{enumerable:!0,get:()=>!!S(d.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!S(d.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!S(d.validatingFields,t)},error:{enumerable:!0,get:()=>S(d.errors,t)}}),[d,t]),_=b.useCallback(A=>$.current.onChange({target:{value:St(A),name:t},type:Ae.CHANGE}),[t]),w=b.useCallback(()=>$.current.onBlur({target:{value:S(s._formValues,t),name:t},type:Ae.BLUR}),[t,s._formValues]),V=b.useCallback(A=>{const z=S(s._fields,t);z&&A&&(z._f.ref={focus:()=>A.focus&&A.focus(),select:()=>A.select&&A.select(),setCustomValidity:N=>A.setCustomValidity(N),reportValidity:()=>A.reportValidity()})},[s._fields,t]),C=b.useMemo(()=>({name:t,value:u,...J(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:_,onBlur:w,ref:V}),[t,o,d.disabled,_,w,V,u]);return b.useEffect(()=>{const A=s._options.shouldUnregister||n,z=h.current;z&&z!==t&&!l&&s.unregister(z),s.register(t,{...m.current.rules,...J(m.current.disabled)?{disabled:m.current.disabled}:{}});const N=(T,I)=>{const R=S(s._fields,T);R&&R._f&&(R._f.mount=I)};if(N(t,!0),A){const T=q(S(s._options.defaultValues,t,m.current.defaultValue));M(s._defaultValues,t,T),j(S(s._formValues,t))&&M(s._formValues,t,T)}return!l&&s.register(t),h.current=t,()=>{(l?A&&!s._state.action:A)?s.unregister(t):N(t,!1)}},[t,s,l,n]),b.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),b.useMemo(()=>({field:C,formState:d,fieldState:k}),[C,d,k])}var Qe=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},be=e=>Array.isArray(e)?e:[e],wt=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Vt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&W(s)&&n){const a=Vt(s,n);W(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var Z=e=>W(e)&&!Object.keys(e).length,Ke=e=>e.type==="file",ae=e=>typeof e=="function",Ne=e=>{if(!je)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},xt=e=>e.type==="select-multiple",Ye=e=>e.type==="radio",jr=e=>Ye(e)||pe(e),Je=e=>Ne(e)&&e.isConnected;function Ir(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=j(e)?o++:e[r[o++]];return e}function Ur(e){for(const r in e)if(e.hasOwnProperty(r)&&!j(e[r]))return!1;return!0}function G(e,r){const t=Array.isArray(r)?r:Ee(r)?[r]:Ue(r),o=t.length===1?e:Ir(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(W(o)&&Z(o)||Array.isArray(o)&&Ur(o))&&G(e,t.slice(0,-1)),e}var Wr=e=>{for(const r in e)if(ae(e[r]))return!0;return!1};function $t(e){return Array.isArray(e)||W(e)&&!Wr(e)}function Xe(e,r={}){for(const t in e)$t(e[t])?(r[t]=Array.isArray(e[t])?[]:{},Xe(e[t],r[t])):j(e[t])||(r[t]=!0);return r}function he(e,r,t){t||(t=Xe(r));for(const o in e)$t(e[o])?j(r)||Ze(t[o])?t[o]=Xe(e[o],Array.isArray(e[o])?[]:{}):he(e[o],K(r)?{}:r[o],t[o]):t[o]=!ne(e[o],r[o]);return t}const zt={value:!1,isValid:!1},Et={value:!0,isValid:!0};var At=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===""?Et:{value:e[0].value,isValid:!0}:Et:zt}return zt},Nt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>j(e)?e:r?e===""?NaN:e&&+e:t&&X(e)?new Date(e):o?o(e):e;const Bt={isValid:!1,value:null};var Lt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Bt):Bt;function Pt(e){const r=e.ref;return Ke(r)?r.files:Ye(r)?Lt(e.refs).value:xt(r)?[...r.selectedOptions].map(({value:t})=>t):pe(r)?At(e.refs).value:Nt(j(r.value)?e.ref.value:r.value,e)}var Gr=(e,r,t,o)=>{const s={};for(const n of e){const a=S(r,n);a&&M(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Be=e=>e instanceof RegExp,Se=e=>j(e)?e:Be(e)?e.source:W(e)?Be(e.value)?e.value.source:e.value:e,Mt=e=>({isOnSubmit:!e||e===se.onSubmit,isOnBlur:e===se.onBlur,isOnChange:e===se.onChange,isOnAll:e===se.all,isOnTouch:e===se.onTouched});const Dt="AsyncFunction";var qr=e=>!!e&&!!e.validate&&!!(ae(e.validate)&&e.validate.constructor.name===Dt||W(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Dt)),Zr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ht=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Ce=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=S(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(Ce(l,r))break}else if(W(l)&&Ce(l,r))break}}};function Ot(e,r,t){const o=S(e,t);if(o||Ee(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=S(r,n),l=S(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var Qr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return Z(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||se.all))},Kr=(e,r,t)=>!e||!r||e===r||be(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),Yr=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,Jr=(e,r)=>!Ie(S(e,r)).length&&G(e,r),Xr=(e,r,t)=>{const o=be(S(e,t));return M(o,"root",r[t]),M(e,t,o),e};function Tt(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 me=e=>W(e)&&!Be(e)?e:{value:e,message:""},jt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:f,maxLength:u,minLength:d,min:m,max:h,pattern:$,validate:k,name:_,valueAsNumber:w,mount:V}=e._f,C=S(t,_);if(!V||r.has(_))return{};const A=l?l[0]:a,z=B=>{s&&A.reportValidity&&(A.setCustomValidity(J(B)?"":B||""),A.reportValidity())},N={},T=Ye(a),I=pe(a),R=T||I,L=(w||Ke(a))&&j(a.value)&&j(C)||Ne(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,ee=Qe.bind(null,_,o,N),te=(B,P,U,Q=le.maxLength,Y=le.minLength)=>{const ie=B?P:U;N[_]={type:B?Q:Y,message:ie,ref:a,...ee(B?Q:Y,ie)}};if(n?!Array.isArray(C)||!C.length:f&&(!R&&(L||K(C))||J(C)&&!C||I&&!At(l).isValid||T&&!Lt(l).isValid)){const{value:B,message:P}=X(f)?{value:!!f,message:f}:me(f);if(B&&(N[_]={type:le.required,message:P,ref:A,...ee(le.required,P)},!o))return z(P),N}if(!L&&(!K(m)||!K(h))){let B,P;const U=me(h),Q=me(m);if(!K(C)&&!isNaN(C)){const Y=a.valueAsNumber||C&&+C;K(U.value)||(B=Y>U.value),K(Q.value)||(P=Y<Q.value)}else{const Y=a.valueAsDate||new Date(C),ie=Me=>new Date(new Date().toDateString()+" "+Me),ke=a.type=="time",ve=a.type=="week";X(U.value)&&C&&(B=ke?ie(C)>ie(U.value):ve?C>U.value:Y>new Date(U.value)),X(Q.value)&&C&&(P=ke?ie(C)<ie(Q.value):ve?C<Q.value:Y<new Date(Q.value))}if((B||P)&&(te(!!B,U.message,Q.message,le.max,le.min),!o))return z(N[_].message),N}if((u||d)&&!L&&(X(C)||n&&Array.isArray(C))){const B=me(u),P=me(d),U=!K(B.value)&&C.length>+B.value,Q=!K(P.value)&&C.length<+P.value;if((U||Q)&&(te(U,B.message,P.message),!o))return z(N[_].message),N}if($&&!L&&X(C)){const{value:B,message:P}=me($);if(Be(B)&&!C.match(B)&&(N[_]={type:le.pattern,message:P,ref:a,...ee(le.pattern,P)},!o))return z(P),N}if(k){if(ae(k)){const B=await k(C,t),P=Tt(B,A);if(P&&(N[_]={...P,...ee(le.validate,P.message)},!o))return z(P.message),N}else if(W(k)){let B={};for(const P in k){if(!Z(B)&&!o)break;const U=Tt(await k[P](C,t),A,P);U&&(B={...U,...ee(P,U.message)},z(U.message),o&&(N[_]=B))}if(!Z(B)&&(N[_]={ref:A,...B},!o))return N}}return z(!0),N};const Rr={mode:se.onSubmit,reValidateMode:se.onChange,shouldFocusError:!0};function eo(e={}){let r={...Rr,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:ae(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=W(r.defaultValues)||W(r.values)?q(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:q(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...d};const h={array:wt(),state:wt()},$=r.criteriaMode===se.all,k=i=>c=>{clearTimeout(u),u=setTimeout(i,c)},_=async i=>{if(!r.disabled&&(d.isValid||m.isValid||i)){const c=r.resolver?Z((await I()).errors):await L(o,!0);c!==t.isValid&&h.state.next({isValid:c})}},w=(i,c)=>{!r.disabled&&(d.isValidating||d.validatingFields||m.isValidating||m.validatingFields)&&((i||Array.from(l.mount)).forEach(y=>{y&&(c?M(t.validatingFields,y,c):G(t.validatingFields,y))}),h.state.next({validatingFields:t.validatingFields,isValidating:!Z(t.validatingFields)}))},V=(i,c=[],y,F,p=!0,v=!0)=>{if(F&&y&&!r.disabled){if(a.action=!0,v&&Array.isArray(S(o,i))){const x=y(S(o,i),F.argA,F.argB);p&&M(o,i,x)}if(v&&Array.isArray(S(t.errors,i))){const x=y(S(t.errors,i),F.argA,F.argB);p&&M(t.errors,i,x),Jr(t.errors,i)}if((d.touchedFields||m.touchedFields)&&v&&Array.isArray(S(t.touchedFields,i))){const x=y(S(t.touchedFields,i),F.argA,F.argB);p&&M(t.touchedFields,i,x)}(d.dirtyFields||m.dirtyFields)&&(t.dirtyFields=he(s,n)),h.state.next({name:i,isDirty:te(i,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else M(n,i,c)},C=(i,c)=>{M(t.errors,i,c),h.state.next({errors:t.errors})},A=i=>{t.errors=i,h.state.next({errors:t.errors,isValid:!1})},z=(i,c,y,F)=>{const p=S(o,i);if(p){const v=S(n,i,j(y)?S(s,i):y);j(v)||F&&F.defaultChecked||c?M(n,i,c?v:Pt(p._f)):U(i,v),a.mount&&_()}},N=(i,c,y,F,p)=>{let v=!1,x=!1;const D={name:i};if(!r.disabled){if(!y||F){(d.isDirty||m.isDirty)&&(x=t.isDirty,t.isDirty=D.isDirty=te(),v=x!==D.isDirty);const H=ne(S(s,i),c);x=!!S(t.dirtyFields,i),H?G(t.dirtyFields,i):M(t.dirtyFields,i,!0),D.dirtyFields=t.dirtyFields,v=v||(d.dirtyFields||m.dirtyFields)&&x!==!H}if(y){const H=S(t.touchedFields,i);H||(M(t.touchedFields,i,y),D.touchedFields=t.touchedFields,v=v||(d.touchedFields||m.touchedFields)&&H!==y)}v&&p&&h.state.next(D)}return v?D:{}},T=(i,c,y,F)=>{const p=S(t.errors,i),v=(d.isValid||m.isValid)&&J(c)&&t.isValid!==c;if(r.delayError&&y?(f=k(()=>C(i,y)),f(r.delayError)):(clearTimeout(u),f=null,y?M(t.errors,i,y):G(t.errors,i)),(y?!ne(p,y):p)||!Z(F)||v){const x={...F,...v&&J(c)?{isValid:c}:{},errors:t.errors,name:i};t={...t,...x},h.state.next(x)}},I=async i=>{w(i,!0);const c=await r.resolver(n,r.context,Gr(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return w(i),c},R=async i=>{const{errors:c}=await I(i);if(i)for(const y of i){const F=S(c,y);F?M(t.errors,y,F):G(t.errors,y)}else t.errors=c;return c},L=async(i,c,y={valid:!0})=>{for(const F in i){const p=i[F];if(p){const{_f:v,...x}=p;if(v){const D=l.array.has(v.name),H=p._f&&qr(p._f);H&&d.validatingFields&&w([v.name],!0);const oe=await jt(p,l.disabled,n,$,r.shouldUseNativeValidation&&!c,D);if(H&&d.validatingFields&&w([v.name]),oe[v.name]&&(y.valid=!1,c))break;!c&&(S(oe,v.name)?D?Xr(t.errors,oe,v.name):M(t.errors,v.name,oe[v.name]):G(t.errors,v.name))}!Z(x)&&await L(x,c,y)}}return y.valid},ee=()=>{for(const i of l.unMount){const c=S(o,i);c&&(c._f.refs?c._f.refs.every(y=>!Je(y)):!Je(c._f.ref))&<(i)}l.unMount=new Set},te=(i,c)=>!r.disabled&&(i&&c&&M(n,i,c),!ne(Me(),s)),B=(i,c,y)=>qe(i,l,{...a.mount?n:j(c)?s:X(i)?{[i]:c}:c},y,c),P=i=>Ie(S(a.mount?n:s,i,r.shouldUnregister?S(s,i,[]):[])),U=(i,c,y={})=>{const F=S(o,i);let p=c;if(F){const v=F._f;v&&(!v.disabled&&M(n,i,Nt(c,v)),p=Ne(v.ref)&&K(c)?"":c,xt(v.ref)?[...v.ref.options].forEach(x=>x.selected=p.includes(x.value)):v.refs?pe(v.ref)?v.refs.forEach(x=>{(!x.defaultChecked||!x.disabled)&&(Array.isArray(p)?x.checked=!!p.find(D=>D===x.value):x.checked=p===x.value||!!p)}):v.refs.forEach(x=>x.checked=x.value===p):Ke(v.ref)?v.ref.value="":(v.ref.value=p,v.ref.type||h.state.next({name:i,values:q(n)})))}(y.shouldDirty||y.shouldTouch)&&N(i,p,y.shouldTouch,y.shouldDirty,!0),y.shouldValidate&&ve(i)},Q=(i,c,y)=>{for(const F in c){if(!c.hasOwnProperty(F))return;const p=c[F],v=i+"."+F,x=S(o,v);(l.array.has(i)||W(p)||x&&!x._f)&&!de(p)?Q(v,p,y):U(v,p,y)}},Y=(i,c,y={})=>{const F=S(o,i),p=l.array.has(i),v=q(c);M(n,i,v),p?(h.array.next({name:i,values:q(n)}),(d.isDirty||d.dirtyFields||m.isDirty||m.dirtyFields)&&y.shouldDirty&&h.state.next({name:i,dirtyFields:he(s,n),isDirty:te(i,v)})):F&&!F._f&&!K(v)?Q(i,v,y):U(i,v,y),Ht(i,l)&&h.state.next({...t,name:i}),h.state.next({name:a.mount?i:void 0,values:q(n)})},ie=async i=>{a.mount=!0;const c=i.target;let y=c.name,F=!0;const p=S(o,y),v=H=>{F=Number.isNaN(H)||de(H)&&isNaN(H.getTime())||ne(H,S(n,y,H))},x=Mt(r.mode),D=Mt(r.reValidateMode);if(p){let H,oe;const De=c.type?Pt(p._f):St(i),ue=i.type===Ae.BLUR||i.type===Ae.FOCUS_OUT,Ko=!Zr(p._f)&&!r.resolver&&!S(t.errors,y)&&!p._f.deps||Yr(ue,S(t.touchedFields,y),t.isSubmitted,D,x),dt=Ht(y,l,ue);M(n,y,De),ue?(!c||!c.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),f&&f(0)):p._f.onChange&&p._f.onChange(i);const ft=N(y,De,ue),Yo=!Z(ft)||dt;if(!ue&&h.state.next({name:y,type:i.type,values:q(n)}),Ko)return(d.isValid||m.isValid)&&(r.mode==="onBlur"?ue&&_():ue||_()),Yo&&h.state.next({name:y,...dt?{}:ft});if(!ue&&dt&&h.state.next({...t}),r.resolver){const{errors:wr}=await I([y]);if(v(De),F){const Jo=Ot(t.errors,o,y),Vr=Ot(wr,o,Jo.name||y);H=Vr.error,y=Vr.name,oe=Z(wr)}}else w([y],!0),H=(await jt(p,l.disabled,n,$,r.shouldUseNativeValidation))[y],w([y]),v(De),F&&(H?oe=!1:(d.isValid||m.isValid)&&(oe=await L(o,!0)));F&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&ve(p._f.deps),T(y,oe,H,ft))}},ke=(i,c)=>{if(S(t.errors,c)&&i.focus)return i.focus(),1},ve=async(i,c={})=>{let y,F;const p=be(i);if(r.resolver){const v=await R(j(i)?i:p);y=Z(v),F=i?!p.some(x=>S(v,x)):y}else i?(F=(await Promise.all(p.map(async v=>{const x=S(o,v);return await L(x&&x._f?{[v]:x}:x)}))).every(Boolean),!(!F&&!t.isValid)&&_()):F=y=await L(o);return h.state.next({...!X(i)||(d.isValid||m.isValid)&&y!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:y}:{},errors:t.errors}),c.shouldFocus&&!F&&Ce(o,ke,i?p:l.mount),F},Me=(i,c)=>{let y={...a.mount?n:s};return c&&(y=Vt(c.dirtyFields?t.dirtyFields:t.touchedFields,y)),j(i)?y:X(i)?S(y,i):i.map(F=>S(y,F))},_r=(i,c)=>({invalid:!!S((c||t).errors,i),isDirty:!!S((c||t).dirtyFields,i),error:S((c||t).errors,i),isValidating:!!S(t.validatingFields,i),isTouched:!!S((c||t).touchedFields,i)}),Io=i=>{i&&be(i).forEach(c=>G(t.errors,c)),h.state.next({errors:i?t.errors:{}})},vr=(i,c,y)=>{const F=(S(o,i,{_f:{}})._f||{}).ref,p=S(t.errors,i)||{},{ref:v,message:x,type:D,...H}=p;M(t.errors,i,{...H,...c,ref:F}),h.state.next({name:i,errors:t.errors,isValid:!1}),y&&y.shouldFocus&&F&&F.focus&&F.focus()},Uo=(i,c)=>ae(i)?h.state.subscribe({next:y=>"values"in y&&i(B(void 0,c),y)}):B(i,c,!0),pr=i=>h.state.subscribe({next:c=>{Kr(i.name,c.name,i.exact)&&Qr(c,i.formState||d,Qo,i.reRenderRoot)&&i.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,Wo=i=>(a.mount=!0,m={...m,...i.formState},pr({...i,formState:m})),lt=(i,c={})=>{for(const y of i?be(i):l.mount)l.mount.delete(y),l.array.delete(y),c.keepValue||(G(o,y),G(n,y)),!c.keepError&&G(t.errors,y),!c.keepDirty&&G(t.dirtyFields,y),!c.keepTouched&&G(t.touchedFields,y),!c.keepIsValidating&&G(t.validatingFields,y),!r.shouldUnregister&&!c.keepDefaultValue&&G(s,y);h.state.next({values:q(n)}),h.state.next({...t,...c.keepDirty?{isDirty:te()}:{}}),!c.keepIsValid&&_()},br=({disabled:i,name:c})=>{(J(i)&&a.mount||i||l.disabled.has(c))&&(i?l.disabled.add(c):l.disabled.delete(c))},ct=(i,c={})=>{let y=S(o,i);const F=J(c.disabled)||J(r.disabled);return M(o,i,{...y||{},_f:{...y&&y._f?y._f:{ref:{name:i}},name:i,mount:!0,...c}}),l.mount.add(i),y?br({disabled:J(c.disabled)?c.disabled:r.disabled,name:i}):z(i,!0,c.value),{...F?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:Se(c.min),max:Se(c.max),minLength:Se(c.minLength),maxLength:Se(c.maxLength),pattern:Se(c.pattern)}:{},name:i,onChange:ie,onBlur:ie,ref:p=>{if(p){ct(i,c),y=S(o,i);const v=j(p.value)&&p.querySelectorAll&&p.querySelectorAll("input,select,textarea")[0]||p,x=jr(v),D=y._f.refs||[];if(x?D.find(H=>H===v):v===y._f.ref)return;M(o,i,{_f:{...y._f,...x?{refs:[...D.filter(Je),v,...Array.isArray(S(s,i))?[{}]:[]],ref:{type:v.type,name:i}}:{ref:v}}}),z(i,!1,void 0,v)}else y=S(o,i,{}),y._f&&(y._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(Ct(l.array,i)&&a.action)&&l.unMount.add(i)}}},ut=()=>r.shouldFocusError&&Ce(o,ke,l.mount),Go=i=>{J(i)&&(h.state.next({disabled:i}),Ce(o,(c,y)=>{const F=S(o,y);F&&(c.disabled=F._f.disabled||i,Array.isArray(F._f.refs)&&F._f.refs.forEach(p=>{p.disabled=F._f.disabled||i}))},0,!1))},Sr=(i,c)=>async y=>{let F;y&&(y.preventDefault&&y.preventDefault(),y.persist&&y.persist());let p=q(n);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:v,values:x}=await I();t.errors=v,p=q(x)}else await L(o);if(l.disabled.size)for(const v of l.disabled)G(p,v);if(G(t.errors,"root"),Z(t.errors)){h.state.next({errors:{}});try{await i(p,y)}catch(v){F=v}}else c&&await c({...t.errors},y),ut(),setTimeout(ut);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Z(t.errors)&&!F,submitCount:t.submitCount+1,errors:t.errors}),F)throw F},qo=(i,c={})=>{S(o,i)&&(j(c.defaultValue)?Y(i,q(S(s,i))):(Y(i,c.defaultValue),M(s,i,q(c.defaultValue))),c.keepTouched||G(t.touchedFields,i),c.keepDirty||(G(t.dirtyFields,i),t.isDirty=c.defaultValue?te(i,q(S(s,i))):te()),c.keepError||(G(t.errors,i),d.isValid&&_()),h.state.next({...t}))},Cr=(i,c={})=>{const y=i?q(i):s,F=q(y),p=Z(i),v=p?s:F;if(c.keepDefaultValues||(s=y),!c.keepValues){if(c.keepDirtyValues){const x=new Set([...l.mount,...Object.keys(he(s,n))]);for(const D of Array.from(x))S(t.dirtyFields,D)?M(v,D,S(n,D)):Y(D,S(v,D))}else{if(je&&j(i))for(const x of l.mount){const D=S(o,x);if(D&&D._f){const H=Array.isArray(D._f.refs)?D._f.refs[0]:D._f.ref;if(Ne(H)){const oe=H.closest("form");if(oe){oe.reset();break}}}}if(c.keepFieldsRef)for(const x of l.mount)Y(x,S(v,x));else o={}}n=r.shouldUnregister?c.keepDefaultValues?q(s):{}:q(v),h.array.next({values:{...v}}),h.state.next({values:{...v}})}l={mount:c.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!Z(v),a.watch=!!r.shouldUnregister,h.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:p?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ne(i,s)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:p?{}:c.keepDirtyValues?c.keepDefaultValues&&n?he(s,n):t.dirtyFields:c.keepDefaultValues&&i?he(s,i):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Fr=(i,c)=>Cr(ae(i)?i(n):i,c),Zo=(i,c={})=>{const y=S(o,i),F=y&&y._f;if(F){const p=F.refs?F.refs[0]:F.ref;p.focus&&(p.focus(),c.shouldSelect&&ae(p.select)&&p.select())}},Qo=i=>{t={...t,...i}},kr={control:{register:ct,unregister:lt,getFieldState:_r,handleSubmit:Sr,setError:vr,_subscribe:pr,_runSchema:I,_focusError:ut,_getWatch:B,_getDirty:te,_setValid:_,_setFieldArray:V,_setDisabledField:br,_setErrors:A,_getFieldArray:P,_reset:Cr,_resetDefaultValues:()=>ae(r.defaultValues)&&r.defaultValues().then(i=>{Fr(i,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Go,_subjects:h,_proxyFormState:d,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:Wo,trigger:ve,register:ct,handleSubmit:Sr,watch:Uo,setValue:Y,getValues:Me,reset:Fr,resetField:qo,clearErrors:Io,unregister:lt,setError:vr,setFocus:Zo,getFieldState:_r};return{...kr,formControl:kr}}function to(e={}){const r=b.useRef(void 0),t=b.useRef(void 0),[o,s]=b.useState({isDirty:!1,isValidating:!1,isLoading:ae(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:ae(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!ae(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=eo(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Ge(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),b.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),b.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),b.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),b.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),b.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),b.useEffect(()=>{e.values&&!ne(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),b.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=kt(o,n),r.current}const It=(e,r,t)=>{if(e&&"reportValidity"in e){const o=S(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},Re=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?It(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>It(s,t,e))}},Ut=(e,r)=>{r.shouldUseNativeValidation&&Re(e,r);const t={};for(const o in e){const s=S(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(ro(r.names||Object.keys(e),o)){const a=Object.assign({},S(t,o));M(a,"root",n),M(t,o,a)}else M(t,o,n)}return t},ro=(e,r)=>{const t=Wt(r);return e.some(o=>Wt(o).match(`^${t}\\.\\d+`))};function Wt(e){return e.replace(/\]|\[/g,"")}function Gt(e,r,t){function o(l,f){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),r(l,f);for(const d in a.prototype)d in l||Object.defineProperty(l,d,{value:a.prototype[d].bind(l)});l._zod.constr=a,l._zod.def=f}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var f;const u=t!=null&&t.Parent?new n:this;o(u,l),(f=u._zod).deferred??(f.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var f,u;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(u=(f=l==null?void 0:l._zod)==null?void 0:f.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class oo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const so={};function qt(e){return so}function no(e,r){return typeof r=="bigint"?r.toString():r}const Zt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Le(e){return typeof e=="string"?e:e==null?void 0:e.message}function Qt(e,r,t){var s,n,a,l,f,u;const o={...e,path:e.path??[]};if(!e.message){const d=Le((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??Le((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??Le((f=t.customError)==null?void 0:f.call(t,e))??Le((u=t.localeError)==null?void 0:u.call(t,e))??"Invalid input";o.message=d}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const Kt=(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,no,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ao=Gt("$ZodError",Kt),Yt=Gt("$ZodError",Kt,{Parent:Error}),io=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new oo;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Qt(f,n,qt())));throw Zt(l,s==null?void 0:s.callee),l}return a.value})(Yt),lo=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Qt(f,n,qt())));throw Zt(l,s==null?void 0:s.callee),l}return a.value})(Yt);function Jt(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function co(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(d){return d.errors.forEach(function(m){return e.push(m)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Qe(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function uo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(d){return d.forEach(function(m){return e.push(m)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Qe(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function fo(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(Jt(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&Re({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Ut(co(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(Jt(function(){return Promise.resolve((t.mode==="sync"?io:lo)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&Re({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof ao})(a))return{values:{},errors:Ut(uo(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Xt=b.createContext(null);function Rt(){const e=b.useContext(Xt);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function yo({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:f}){const u=to({resolver:t?fo(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),d=u.handleSubmit(e);return g.jsx(Xt.Provider,{value:u,children:g.jsx("form",{...f,className:a,style:l,onSubmit:d,children:typeof r=="function"?r(u):r})})}const ho=yo,mo={formError:"FormError-module__formError___kaUBn"},er=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=O(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[mo.formError,t].filter(Boolean).join(" ");return g.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},ge={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"},tr=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:f,className:u,style:d,divProps:m})=>{const h=O(),$=[ge.formGroup,r?ge.error:"",e?ge.disabled:"",u].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...d},_=b.Children.map(f,w=>{if(b.isValidElement(w)){const V={};if(e&&w.props.disabled===void 0&&(V.disabled=!0),r&&w.props.error===void 0&&(V.error=!0),s&&w.props.id===void 0&&(V.id=s),Object.keys(V).length>0)return b.cloneElement(w,V)}return w});return g.jsxs("div",{...m,className:$,style:k,children:[n&&g.jsxs($e,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&g.jsxs("span",{className:ge.required,"aria-label":"required",children:[" ","*"]})]}),g.jsx("div",{className:`${ge.inputWrapper} ${o?ge.indented:""}`,children:_}),r&&a&&g.jsx(er,{children:a})]})};function ce({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:f,labelProps:u}){const{control:d}=Rt(),{field:m,fieldState:{error:h}}=Tr({name:e,control:d,rules:s});return g.jsx(tr,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:a,style:l,indent:f,labelProps:u,children:o({value:m.value,onChange:m.onChange,onBlur:m.onBlur,name:m.name,error:!!h,indent:f})})}const et={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},go=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),rr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:f="text",value:u="",onChange:d,onBlur:m,className:h,style:$,inputProps:k})=>{const _=O(),w=_.colors.error,V=r?w:t||_.colors.primary,C=go({color:V,disabled:e,fontSize:_.fonts.size,placeholderOpacity:l}),A={"--placeholder-opacity":C.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:C.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:C.color,fontSize:C.fontSize,opacity:C.opacity,...$},z=[et.input,o==="small"?et.sizeSmall:et.sizeLarge,h].filter(Boolean).join(" ");return g.jsx("input",{...k,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:m,placeholder:a,type:f,value:u,style:A})};function _o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return g.jsx(ce,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:m,error:h})=>g.jsx(rr,{...l,name:m,value:f||"",onChange:$=>u($.target.value),onBlur:d,error:h})})}const tt={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},vo=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),or=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:f=3,value:u="",onChange:d,onBlur:m,className:h,style:$,textareaProps:k})=>{const _=O(),w=_.colors.error,V=r?w:t||_.colors.primary,C=vo({color:V,disabled:e,placeholderOpacity:l}),A={"--placeholder-opacity":C.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:C.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:C.color,fontSize:_.fonts.size,opacity:C.opacity,...$},z=[tt.textarea,o==="small"?tt.sizeSmall:tt.sizeLarge,h].filter(Boolean).join(" ");return g.jsx("textarea",{...k,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:m,placeholder:a,rows:f,value:u,style:A})};function po({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return g.jsx(ce,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:m,error:h})=>g.jsx(or,{...l,name:m,value:f||"",onChange:$=>u($.target.value),onBlur:d,error:h})})}const rt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},bo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;font-size:2rem;height:100vh;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%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.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:var(--desktop-hover-opacity)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex;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}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function(E,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(E=typeof globalThis<"u"?globalThis:E||self,g(E.DigitalRabbitCL={},E.jsxRuntime,E.React,E.ReactDOM))})(this,(function(E,g,b,xr){"use strict";const we={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},$r=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const l=t||a.colors.primary,f=a.buttons.textColor;let u,d,m;n?(u="transparent",d=l,m=l,e&&(u=o||l,d=o||l,m=s||f)):(u=l,d=l,m=f,e&&(u=o||l,d=o||l,m=s||f));let h=1;return r?h=.3:e&&!o&&(h=.75),{backgroundColor:u,borderColor:d,color:m,opacity:h}};function yt(e,r){const t={...e};return Ve(e)&&Ve(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];Ve(s)&&Ve(n)?t[o]=yt(n,s):s!==void 0&&(t[o]=s)}),t}function Ve(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ye(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const He={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},Oe={colors:He,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:He.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"},modal:{backgroundColor:He.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},ht=b.createContext(Oe),zr=({theme:e,children:r})=>{const t=e?yt(Oe,e):Oe;return g.jsx(ht.Provider,{value:t,children:r})},O=()=>b.useContext(ht),mt=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:l,style:f,buttonProps:u={},onClick:d,children:m})=>{const h=O(),[$,k]=b.useState(!1),V={...$r({isActive:$,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:h}),fontSize:h.fonts.size,borderWidth:h.border.width,borderRadius:h.border.radius,"--button-padding-small":`calc(${h.fonts.rhythm} * ${h.sizes.small.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${h.fonts.rhythm} * ${h.sizes.large.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,...f},w=[we.button,s==="small"?we.sizeSmall:we.sizeLarge,n?we.outline:"",l].filter(Boolean).join(" ");return g.jsx("button",{...u,className:w,disabled:o,onClick:d,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),type:a,style:V,children:m})};var gt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Er=new Uint8Array(16);function Ar(){if(!gt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gt(Er)}for(var _t=[],xe=0;xe<256;++xe)_t[xe]=(xe+256).toString(16).substr(1);function Nr(e,r){var t=0,o=_t;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function vt(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Ar)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Nr(s)}const Te={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Br=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},pt={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Lr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),$e=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const f=O(),u=f.colors.error,d=t?u:e||f.colors.primary,m=Lr({color:d,disabled:r,fontSize:".85em"}),h={"--form-label-padding-bottom":`calc(${f.fonts.rhythm} * 0.17)`,color:m.color,fontSize:m.fontSize,opacity:m.opacity,cursor:m.cursor,...a},$=[pt.label,r?pt.disabled:"",n].filter(Boolean).join(" ");return g.jsx("label",{...l,className:$,htmlFor:o,style:h,children:s})},ze=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:f,label:u,labelStyle:d,className:m,style:h,divProps:$})=>{const k=O(),_=l||vt(),V=k.colors.error,w=n?V:e||k.colors.primary,C=Br({color:w,checkmarkColor:r,disabled:s,inverted:o}),A=L=>{s||f(L)},z={cursor:C.cursor,fontSize:k.fonts.size,opacity:C.opacity,...h},N={width:"1em"},T={fill:o&&t?C.checkboxColor:"transparent",strokeWidth:"25",stroke:C.checkboxColor},I={stroke:C.checkmarkColor,strokeWidth:"15",fill:"transparent"},R=[Te.container,m].filter(Boolean).join(" ");return g.jsxs("div",{...$,className:R,style:z,children:[g.jsx("input",{id:_,checked:t,disabled:s,onChange:L=>A({target:{checked:L.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>A({target:{checked:!t,name:a,type:"checkbox"}}),style:N,className:Te.svg,children:[g.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:T}),t&&g.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:I})]}),u&&g.jsx($e,{htmlFor:_,className:Te.label,style:{paddingBottom:0,...d},color:C.checkboxColor,disabled:s,error:n,children:u})]})},Pr=()=>{const e=O();return b.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 pe=e=>e.type==="checkbox",de=e=>e instanceof Date,K=e=>e==null;const bt=e=>typeof e=="object";var W=e=>!K(e)&&!Array.isArray(e)&&bt(e)&&!de(e),St=e=>W(e)&&e.target?pe(e.target)?e.target.checked:e.target.value:e,Mr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ct=(e,r)=>e.has(Mr(r)),Dr=e=>{const r=e.constructor&&e.constructor.prototype;return W(r)&&r.hasOwnProperty("isPrototypeOf")},je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function q(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(je&&(e instanceof Blob||o))&&(t||W(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Dr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=q(e[s]));else return e;return r}var Ee=e=>/^\w*$/.test(e),j=e=>e===void 0,Ie=e=>Array.isArray(e)?e.filter(Boolean):[],Ue=e=>Ie(e.replace(/["|']|\]/g,"").split(/\.|\[/)),S=(e,r,t)=>{if(!r||!W(e))return t;const o=(Ee(r)?[r]:Ue(r)).reduce((s,n)=>K(s)?s:s[n],e);return j(o)||o===e?j(e[r])?t:e[r]:o},J=e=>typeof e=="boolean",M=(e,r,t)=>{let o=-1;const s=Ee(r)?[r]:Ue(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let f=t;if(o!==a){const u=e[l];f=W(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=f,e=e[l]}};const Ae={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},se={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},le={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ft=b.createContext(null);Ft.displayName="HookFormContext";const We=()=>b.useContext(Ft);var kt=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==se.all&&(r._proxyFormState[a]=!o||se.all),t&&(t[a]=!0),e[a]}});return s};const Ge=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Hr(e){const r=We(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=b.useState(t._formState),f=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ge(()=>t._subscribe({name:s,formState:f.current,exact:n,callback:u=>{!o&&l({...t._formState,...u})}}),[s,o,n]),b.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),b.useMemo(()=>kt(a,t,f.current,!1),[a,t])}var X=e=>typeof e=="string",qe=(e,r,t,o,s)=>X(e)?(o&&r.watch.add(e),S(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),S(t,n))):(o&&(r.watchAll=!0),t),Ze=e=>K(e)||!bt(e);function ne(e,r,t=new WeakSet){if(Ze(e)||Ze(r))return e===r;if(de(e)&&de(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(de(a)&&de(l)||W(a)&&W(l)||Array.isArray(a)&&Array.isArray(l)?!ne(a,l,t):a!==l)return!1}}return!0}function Or(e){const r=We(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},f=b.useRef(s),u=b.useRef(l),d=b.useRef(void 0),m=b.useRef(t),h=b.useRef(o);u.current=l;const[$,k]=b.useState(()=>{const z=t._getWatch(o,f.current);return u.current?u.current(z):z}),_=b.useCallback(z=>{const N=qe(o,t._names,z||t._formValues,!1,f.current);return u.current?u.current(N):N},[t._formValues,t._names,o]),V=b.useCallback(z=>{if(!n){const N=qe(o,t._names,z||t._formValues,!1,f.current);if(u.current){const T=u.current(N);ne(T,d.current)||(k(T),d.current=T)}else k(N)}},[t._formValues,t._names,n,o]);Ge(()=>((m.current!==t||!ne(h.current,o))&&(m.current=t,h.current=o,V()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:z=>{V(z.values)}})),[t,a,o,V]),b.useEffect(()=>t._removeUnmounted());const w=m.current!==t,C=h.current,A=b.useMemo(()=>{if(n)return null;const z=!w&&!ne(C,o);return w||z?_():null},[n,w,o,C,_]);return A!==null?A:$}function Tr(e){const r=We(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=Ct(s._names.array,t),f=b.useMemo(()=>S(s._formValues,t,S(s._defaultValues,t,a)),[s,t,a]),u=Or({control:s,name:t,defaultValue:f,exact:!0}),d=Hr({control:s,name:t,exact:!0}),m=b.useRef(e),h=b.useRef(void 0),$=b.useRef(s.register(t,{...e.rules,value:u,...J(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const k=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!S(d.errors,t)},isDirty:{enumerable:!0,get:()=>!!S(d.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!S(d.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!S(d.validatingFields,t)},error:{enumerable:!0,get:()=>S(d.errors,t)}}),[d,t]),_=b.useCallback(A=>$.current.onChange({target:{value:St(A),name:t},type:Ae.CHANGE}),[t]),V=b.useCallback(()=>$.current.onBlur({target:{value:S(s._formValues,t),name:t},type:Ae.BLUR}),[t,s._formValues]),w=b.useCallback(A=>{const z=S(s._fields,t);z&&A&&(z._f.ref={focus:()=>A.focus&&A.focus(),select:()=>A.select&&A.select(),setCustomValidity:N=>A.setCustomValidity(N),reportValidity:()=>A.reportValidity()})},[s._fields,t]),C=b.useMemo(()=>({name:t,value:u,...J(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:_,onBlur:V,ref:w}),[t,o,d.disabled,_,V,w,u]);return b.useEffect(()=>{const A=s._options.shouldUnregister||n,z=h.current;z&&z!==t&&!l&&s.unregister(z),s.register(t,{...m.current.rules,...J(m.current.disabled)?{disabled:m.current.disabled}:{}});const N=(T,I)=>{const R=S(s._fields,T);R&&R._f&&(R._f.mount=I)};if(N(t,!0),A){const T=q(S(s._options.defaultValues,t,m.current.defaultValue));M(s._defaultValues,t,T),j(S(s._formValues,t))&&M(s._formValues,t,T)}return!l&&s.register(t),h.current=t,()=>{(l?A&&!s._state.action:A)?s.unregister(t):N(t,!1)}},[t,s,l,n]),b.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),b.useMemo(()=>({field:C,formState:d,fieldState:k}),[C,d,k])}var Qe=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},be=e=>Array.isArray(e)?e:[e],wt=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Vt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&W(s)&&n){const a=Vt(s,n);W(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var Z=e=>W(e)&&!Object.keys(e).length,Ke=e=>e.type==="file",ae=e=>typeof e=="function",Ne=e=>{if(!je)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},xt=e=>e.type==="select-multiple",Ye=e=>e.type==="radio",jr=e=>Ye(e)||pe(e),Je=e=>Ne(e)&&e.isConnected;function Ir(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=j(e)?o++:e[r[o++]];return e}function Ur(e){for(const r in e)if(e.hasOwnProperty(r)&&!j(e[r]))return!1;return!0}function G(e,r){const t=Array.isArray(r)?r:Ee(r)?[r]:Ue(r),o=t.length===1?e:Ir(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(W(o)&&Z(o)||Array.isArray(o)&&Ur(o))&&G(e,t.slice(0,-1)),e}var Wr=e=>{for(const r in e)if(ae(e[r]))return!0;return!1};function $t(e){return Array.isArray(e)||W(e)&&!Wr(e)}function Xe(e,r={}){for(const t in e)$t(e[t])?(r[t]=Array.isArray(e[t])?[]:{},Xe(e[t],r[t])):j(e[t])||(r[t]=!0);return r}function he(e,r,t){t||(t=Xe(r));for(const o in e)$t(e[o])?j(r)||Ze(t[o])?t[o]=Xe(e[o],Array.isArray(e[o])?[]:{}):he(e[o],K(r)?{}:r[o],t[o]):t[o]=!ne(e[o],r[o]);return t}const zt={value:!1,isValid:!1},Et={value:!0,isValid:!0};var At=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===""?Et:{value:e[0].value,isValid:!0}:Et:zt}return zt},Nt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>j(e)?e:r?e===""?NaN:e&&+e:t&&X(e)?new Date(e):o?o(e):e;const Bt={isValid:!1,value:null};var Lt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Bt):Bt;function Pt(e){const r=e.ref;return Ke(r)?r.files:Ye(r)?Lt(e.refs).value:xt(r)?[...r.selectedOptions].map(({value:t})=>t):pe(r)?At(e.refs).value:Nt(j(r.value)?e.ref.value:r.value,e)}var Gr=(e,r,t,o)=>{const s={};for(const n of e){const a=S(r,n);a&&M(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Be=e=>e instanceof RegExp,Se=e=>j(e)?e:Be(e)?e.source:W(e)?Be(e.value)?e.value.source:e.value:e,Mt=e=>({isOnSubmit:!e||e===se.onSubmit,isOnBlur:e===se.onBlur,isOnChange:e===se.onChange,isOnAll:e===se.all,isOnTouch:e===se.onTouched});const Dt="AsyncFunction";var qr=e=>!!e&&!!e.validate&&!!(ae(e.validate)&&e.validate.constructor.name===Dt||W(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Dt)),Zr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ht=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Ce=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=S(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(Ce(l,r))break}else if(W(l)&&Ce(l,r))break}}};function Ot(e,r,t){const o=S(e,t);if(o||Ee(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=S(r,n),l=S(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var Qr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return Z(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||se.all))},Kr=(e,r,t)=>!e||!r||e===r||be(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),Yr=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,Jr=(e,r)=>!Ie(S(e,r)).length&&G(e,r),Xr=(e,r,t)=>{const o=be(S(e,t));return M(o,"root",r[t]),M(e,t,o),e};function Tt(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 me=e=>W(e)&&!Be(e)?e:{value:e,message:""},jt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:f,maxLength:u,minLength:d,min:m,max:h,pattern:$,validate:k,name:_,valueAsNumber:V,mount:w}=e._f,C=S(t,_);if(!w||r.has(_))return{};const A=l?l[0]:a,z=B=>{s&&A.reportValidity&&(A.setCustomValidity(J(B)?"":B||""),A.reportValidity())},N={},T=Ye(a),I=pe(a),R=T||I,L=(V||Ke(a))&&j(a.value)&&j(C)||Ne(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,ee=Qe.bind(null,_,o,N),te=(B,P,U,Q=le.maxLength,Y=le.minLength)=>{const ie=B?P:U;N[_]={type:B?Q:Y,message:ie,ref:a,...ee(B?Q:Y,ie)}};if(n?!Array.isArray(C)||!C.length:f&&(!R&&(L||K(C))||J(C)&&!C||I&&!At(l).isValid||T&&!Lt(l).isValid)){const{value:B,message:P}=X(f)?{value:!!f,message:f}:me(f);if(B&&(N[_]={type:le.required,message:P,ref:A,...ee(le.required,P)},!o))return z(P),N}if(!L&&(!K(m)||!K(h))){let B,P;const U=me(h),Q=me(m);if(!K(C)&&!isNaN(C)){const Y=a.valueAsNumber||C&&+C;K(U.value)||(B=Y>U.value),K(Q.value)||(P=Y<Q.value)}else{const Y=a.valueAsDate||new Date(C),ie=Me=>new Date(new Date().toDateString()+" "+Me),ke=a.type=="time",ve=a.type=="week";X(U.value)&&C&&(B=ke?ie(C)>ie(U.value):ve?C>U.value:Y>new Date(U.value)),X(Q.value)&&C&&(P=ke?ie(C)<ie(Q.value):ve?C<Q.value:Y<new Date(Q.value))}if((B||P)&&(te(!!B,U.message,Q.message,le.max,le.min),!o))return z(N[_].message),N}if((u||d)&&!L&&(X(C)||n&&Array.isArray(C))){const B=me(u),P=me(d),U=!K(B.value)&&C.length>+B.value,Q=!K(P.value)&&C.length<+P.value;if((U||Q)&&(te(U,B.message,P.message),!o))return z(N[_].message),N}if($&&!L&&X(C)){const{value:B,message:P}=me($);if(Be(B)&&!C.match(B)&&(N[_]={type:le.pattern,message:P,ref:a,...ee(le.pattern,P)},!o))return z(P),N}if(k){if(ae(k)){const B=await k(C,t),P=Tt(B,A);if(P&&(N[_]={...P,...ee(le.validate,P.message)},!o))return z(P.message),N}else if(W(k)){let B={};for(const P in k){if(!Z(B)&&!o)break;const U=Tt(await k[P](C,t),A,P);U&&(B={...U,...ee(P,U.message)},z(U.message),o&&(N[_]=B))}if(!Z(B)&&(N[_]={ref:A,...B},!o))return N}}return z(!0),N};const Rr={mode:se.onSubmit,reValidateMode:se.onChange,shouldFocusError:!0};function eo(e={}){let r={...Rr,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:ae(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=W(r.defaultValues)||W(r.values)?q(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:q(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...d};const h={array:wt(),state:wt()},$=r.criteriaMode===se.all,k=i=>c=>{clearTimeout(u),u=setTimeout(i,c)},_=async i=>{if(!r.disabled&&(d.isValid||m.isValid||i)){const c=r.resolver?Z((await I()).errors):await L(o,!0);c!==t.isValid&&h.state.next({isValid:c})}},V=(i,c)=>{!r.disabled&&(d.isValidating||d.validatingFields||m.isValidating||m.validatingFields)&&((i||Array.from(l.mount)).forEach(y=>{y&&(c?M(t.validatingFields,y,c):G(t.validatingFields,y))}),h.state.next({validatingFields:t.validatingFields,isValidating:!Z(t.validatingFields)}))},w=(i,c=[],y,F,p=!0,v=!0)=>{if(F&&y&&!r.disabled){if(a.action=!0,v&&Array.isArray(S(o,i))){const x=y(S(o,i),F.argA,F.argB);p&&M(o,i,x)}if(v&&Array.isArray(S(t.errors,i))){const x=y(S(t.errors,i),F.argA,F.argB);p&&M(t.errors,i,x),Jr(t.errors,i)}if((d.touchedFields||m.touchedFields)&&v&&Array.isArray(S(t.touchedFields,i))){const x=y(S(t.touchedFields,i),F.argA,F.argB);p&&M(t.touchedFields,i,x)}(d.dirtyFields||m.dirtyFields)&&(t.dirtyFields=he(s,n)),h.state.next({name:i,isDirty:te(i,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else M(n,i,c)},C=(i,c)=>{M(t.errors,i,c),h.state.next({errors:t.errors})},A=i=>{t.errors=i,h.state.next({errors:t.errors,isValid:!1})},z=(i,c,y,F)=>{const p=S(o,i);if(p){const v=S(n,i,j(y)?S(s,i):y);j(v)||F&&F.defaultChecked||c?M(n,i,c?v:Pt(p._f)):U(i,v),a.mount&&_()}},N=(i,c,y,F,p)=>{let v=!1,x=!1;const D={name:i};if(!r.disabled){if(!y||F){(d.isDirty||m.isDirty)&&(x=t.isDirty,t.isDirty=D.isDirty=te(),v=x!==D.isDirty);const H=ne(S(s,i),c);x=!!S(t.dirtyFields,i),H?G(t.dirtyFields,i):M(t.dirtyFields,i,!0),D.dirtyFields=t.dirtyFields,v=v||(d.dirtyFields||m.dirtyFields)&&x!==!H}if(y){const H=S(t.touchedFields,i);H||(M(t.touchedFields,i,y),D.touchedFields=t.touchedFields,v=v||(d.touchedFields||m.touchedFields)&&H!==y)}v&&p&&h.state.next(D)}return v?D:{}},T=(i,c,y,F)=>{const p=S(t.errors,i),v=(d.isValid||m.isValid)&&J(c)&&t.isValid!==c;if(r.delayError&&y?(f=k(()=>C(i,y)),f(r.delayError)):(clearTimeout(u),f=null,y?M(t.errors,i,y):G(t.errors,i)),(y?!ne(p,y):p)||!Z(F)||v){const x={...F,...v&&J(c)?{isValid:c}:{},errors:t.errors,name:i};t={...t,...x},h.state.next(x)}},I=async i=>{V(i,!0);const c=await r.resolver(n,r.context,Gr(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return V(i),c},R=async i=>{const{errors:c}=await I(i);if(i)for(const y of i){const F=S(c,y);F?M(t.errors,y,F):G(t.errors,y)}else t.errors=c;return c},L=async(i,c,y={valid:!0})=>{for(const F in i){const p=i[F];if(p){const{_f:v,...x}=p;if(v){const D=l.array.has(v.name),H=p._f&&qr(p._f);H&&d.validatingFields&&V([v.name],!0);const oe=await jt(p,l.disabled,n,$,r.shouldUseNativeValidation&&!c,D);if(H&&d.validatingFields&&V([v.name]),oe[v.name]&&(y.valid=!1,c))break;!c&&(S(oe,v.name)?D?Xr(t.errors,oe,v.name):M(t.errors,v.name,oe[v.name]):G(t.errors,v.name))}!Z(x)&&await L(x,c,y)}}return y.valid},ee=()=>{for(const i of l.unMount){const c=S(o,i);c&&(c._f.refs?c._f.refs.every(y=>!Je(y)):!Je(c._f.ref))&<(i)}l.unMount=new Set},te=(i,c)=>!r.disabled&&(i&&c&&M(n,i,c),!ne(Me(),s)),B=(i,c,y)=>qe(i,l,{...a.mount?n:j(c)?s:X(i)?{[i]:c}:c},y,c),P=i=>Ie(S(a.mount?n:s,i,r.shouldUnregister?S(s,i,[]):[])),U=(i,c,y={})=>{const F=S(o,i);let p=c;if(F){const v=F._f;v&&(!v.disabled&&M(n,i,Nt(c,v)),p=Ne(v.ref)&&K(c)?"":c,xt(v.ref)?[...v.ref.options].forEach(x=>x.selected=p.includes(x.value)):v.refs?pe(v.ref)?v.refs.forEach(x=>{(!x.defaultChecked||!x.disabled)&&(Array.isArray(p)?x.checked=!!p.find(D=>D===x.value):x.checked=p===x.value||!!p)}):v.refs.forEach(x=>x.checked=x.value===p):Ke(v.ref)?v.ref.value="":(v.ref.value=p,v.ref.type||h.state.next({name:i,values:q(n)})))}(y.shouldDirty||y.shouldTouch)&&N(i,p,y.shouldTouch,y.shouldDirty,!0),y.shouldValidate&&ve(i)},Q=(i,c,y)=>{for(const F in c){if(!c.hasOwnProperty(F))return;const p=c[F],v=i+"."+F,x=S(o,v);(l.array.has(i)||W(p)||x&&!x._f)&&!de(p)?Q(v,p,y):U(v,p,y)}},Y=(i,c,y={})=>{const F=S(o,i),p=l.array.has(i),v=q(c);M(n,i,v),p?(h.array.next({name:i,values:q(n)}),(d.isDirty||d.dirtyFields||m.isDirty||m.dirtyFields)&&y.shouldDirty&&h.state.next({name:i,dirtyFields:he(s,n),isDirty:te(i,v)})):F&&!F._f&&!K(v)?Q(i,v,y):U(i,v,y),Ht(i,l)&&h.state.next({...t,name:i}),h.state.next({name:a.mount?i:void 0,values:q(n)})},ie=async i=>{a.mount=!0;const c=i.target;let y=c.name,F=!0;const p=S(o,y),v=H=>{F=Number.isNaN(H)||de(H)&&isNaN(H.getTime())||ne(H,S(n,y,H))},x=Mt(r.mode),D=Mt(r.reValidateMode);if(p){let H,oe;const De=c.type?Pt(p._f):St(i),ue=i.type===Ae.BLUR||i.type===Ae.FOCUS_OUT,Ko=!Zr(p._f)&&!r.resolver&&!S(t.errors,y)&&!p._f.deps||Yr(ue,S(t.touchedFields,y),t.isSubmitted,D,x),dt=Ht(y,l,ue);M(n,y,De),ue?(!c||!c.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),f&&f(0)):p._f.onChange&&p._f.onChange(i);const ft=N(y,De,ue),Yo=!Z(ft)||dt;if(!ue&&h.state.next({name:y,type:i.type,values:q(n)}),Ko)return(d.isValid||m.isValid)&&(r.mode==="onBlur"?ue&&_():ue||_()),Yo&&h.state.next({name:y,...dt?{}:ft});if(!ue&&dt&&h.state.next({...t}),r.resolver){const{errors:wr}=await I([y]);if(v(De),F){const Jo=Ot(t.errors,o,y),Vr=Ot(wr,o,Jo.name||y);H=Vr.error,y=Vr.name,oe=Z(wr)}}else V([y],!0),H=(await jt(p,l.disabled,n,$,r.shouldUseNativeValidation))[y],V([y]),v(De),F&&(H?oe=!1:(d.isValid||m.isValid)&&(oe=await L(o,!0)));F&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&ve(p._f.deps),T(y,oe,H,ft))}},ke=(i,c)=>{if(S(t.errors,c)&&i.focus)return i.focus(),1},ve=async(i,c={})=>{let y,F;const p=be(i);if(r.resolver){const v=await R(j(i)?i:p);y=Z(v),F=i?!p.some(x=>S(v,x)):y}else i?(F=(await Promise.all(p.map(async v=>{const x=S(o,v);return await L(x&&x._f?{[v]:x}:x)}))).every(Boolean),!(!F&&!t.isValid)&&_()):F=y=await L(o);return h.state.next({...!X(i)||(d.isValid||m.isValid)&&y!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:y}:{},errors:t.errors}),c.shouldFocus&&!F&&Ce(o,ke,i?p:l.mount),F},Me=(i,c)=>{let y={...a.mount?n:s};return c&&(y=Vt(c.dirtyFields?t.dirtyFields:t.touchedFields,y)),j(i)?y:X(i)?S(y,i):i.map(F=>S(y,F))},_r=(i,c)=>({invalid:!!S((c||t).errors,i),isDirty:!!S((c||t).dirtyFields,i),error:S((c||t).errors,i),isValidating:!!S(t.validatingFields,i),isTouched:!!S((c||t).touchedFields,i)}),Io=i=>{i&&be(i).forEach(c=>G(t.errors,c)),h.state.next({errors:i?t.errors:{}})},vr=(i,c,y)=>{const F=(S(o,i,{_f:{}})._f||{}).ref,p=S(t.errors,i)||{},{ref:v,message:x,type:D,...H}=p;M(t.errors,i,{...H,...c,ref:F}),h.state.next({name:i,errors:t.errors,isValid:!1}),y&&y.shouldFocus&&F&&F.focus&&F.focus()},Uo=(i,c)=>ae(i)?h.state.subscribe({next:y=>"values"in y&&i(B(void 0,c),y)}):B(i,c,!0),pr=i=>h.state.subscribe({next:c=>{Kr(i.name,c.name,i.exact)&&Qr(c,i.formState||d,Qo,i.reRenderRoot)&&i.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,Wo=i=>(a.mount=!0,m={...m,...i.formState},pr({...i,formState:m})),lt=(i,c={})=>{for(const y of i?be(i):l.mount)l.mount.delete(y),l.array.delete(y),c.keepValue||(G(o,y),G(n,y)),!c.keepError&&G(t.errors,y),!c.keepDirty&&G(t.dirtyFields,y),!c.keepTouched&&G(t.touchedFields,y),!c.keepIsValidating&&G(t.validatingFields,y),!r.shouldUnregister&&!c.keepDefaultValue&&G(s,y);h.state.next({values:q(n)}),h.state.next({...t,...c.keepDirty?{isDirty:te()}:{}}),!c.keepIsValid&&_()},br=({disabled:i,name:c})=>{(J(i)&&a.mount||i||l.disabled.has(c))&&(i?l.disabled.add(c):l.disabled.delete(c))},ct=(i,c={})=>{let y=S(o,i);const F=J(c.disabled)||J(r.disabled);return M(o,i,{...y||{},_f:{...y&&y._f?y._f:{ref:{name:i}},name:i,mount:!0,...c}}),l.mount.add(i),y?br({disabled:J(c.disabled)?c.disabled:r.disabled,name:i}):z(i,!0,c.value),{...F?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:Se(c.min),max:Se(c.max),minLength:Se(c.minLength),maxLength:Se(c.maxLength),pattern:Se(c.pattern)}:{},name:i,onChange:ie,onBlur:ie,ref:p=>{if(p){ct(i,c),y=S(o,i);const v=j(p.value)&&p.querySelectorAll&&p.querySelectorAll("input,select,textarea")[0]||p,x=jr(v),D=y._f.refs||[];if(x?D.find(H=>H===v):v===y._f.ref)return;M(o,i,{_f:{...y._f,...x?{refs:[...D.filter(Je),v,...Array.isArray(S(s,i))?[{}]:[]],ref:{type:v.type,name:i}}:{ref:v}}}),z(i,!1,void 0,v)}else y=S(o,i,{}),y._f&&(y._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(Ct(l.array,i)&&a.action)&&l.unMount.add(i)}}},ut=()=>r.shouldFocusError&&Ce(o,ke,l.mount),Go=i=>{J(i)&&(h.state.next({disabled:i}),Ce(o,(c,y)=>{const F=S(o,y);F&&(c.disabled=F._f.disabled||i,Array.isArray(F._f.refs)&&F._f.refs.forEach(p=>{p.disabled=F._f.disabled||i}))},0,!1))},Sr=(i,c)=>async y=>{let F;y&&(y.preventDefault&&y.preventDefault(),y.persist&&y.persist());let p=q(n);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:v,values:x}=await I();t.errors=v,p=q(x)}else await L(o);if(l.disabled.size)for(const v of l.disabled)G(p,v);if(G(t.errors,"root"),Z(t.errors)){h.state.next({errors:{}});try{await i(p,y)}catch(v){F=v}}else c&&await c({...t.errors},y),ut(),setTimeout(ut);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Z(t.errors)&&!F,submitCount:t.submitCount+1,errors:t.errors}),F)throw F},qo=(i,c={})=>{S(o,i)&&(j(c.defaultValue)?Y(i,q(S(s,i))):(Y(i,c.defaultValue),M(s,i,q(c.defaultValue))),c.keepTouched||G(t.touchedFields,i),c.keepDirty||(G(t.dirtyFields,i),t.isDirty=c.defaultValue?te(i,q(S(s,i))):te()),c.keepError||(G(t.errors,i),d.isValid&&_()),h.state.next({...t}))},Cr=(i,c={})=>{const y=i?q(i):s,F=q(y),p=Z(i),v=p?s:F;if(c.keepDefaultValues||(s=y),!c.keepValues){if(c.keepDirtyValues){const x=new Set([...l.mount,...Object.keys(he(s,n))]);for(const D of Array.from(x))S(t.dirtyFields,D)?M(v,D,S(n,D)):Y(D,S(v,D))}else{if(je&&j(i))for(const x of l.mount){const D=S(o,x);if(D&&D._f){const H=Array.isArray(D._f.refs)?D._f.refs[0]:D._f.ref;if(Ne(H)){const oe=H.closest("form");if(oe){oe.reset();break}}}}if(c.keepFieldsRef)for(const x of l.mount)Y(x,S(v,x));else o={}}n=r.shouldUnregister?c.keepDefaultValues?q(s):{}:q(v),h.array.next({values:{...v}}),h.state.next({values:{...v}})}l={mount:c.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!Z(v),a.watch=!!r.shouldUnregister,h.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:p?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ne(i,s)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:p?{}:c.keepDirtyValues?c.keepDefaultValues&&n?he(s,n):t.dirtyFields:c.keepDefaultValues&&i?he(s,i):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Fr=(i,c)=>Cr(ae(i)?i(n):i,c),Zo=(i,c={})=>{const y=S(o,i),F=y&&y._f;if(F){const p=F.refs?F.refs[0]:F.ref;p.focus&&(p.focus(),c.shouldSelect&&ae(p.select)&&p.select())}},Qo=i=>{t={...t,...i}},kr={control:{register:ct,unregister:lt,getFieldState:_r,handleSubmit:Sr,setError:vr,_subscribe:pr,_runSchema:I,_focusError:ut,_getWatch:B,_getDirty:te,_setValid:_,_setFieldArray:w,_setDisabledField:br,_setErrors:A,_getFieldArray:P,_reset:Cr,_resetDefaultValues:()=>ae(r.defaultValues)&&r.defaultValues().then(i=>{Fr(i,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Go,_subjects:h,_proxyFormState:d,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:Wo,trigger:ve,register:ct,handleSubmit:Sr,watch:Uo,setValue:Y,getValues:Me,reset:Fr,resetField:qo,clearErrors:Io,unregister:lt,setError:vr,setFocus:Zo,getFieldState:_r};return{...kr,formControl:kr}}function to(e={}){const r=b.useRef(void 0),t=b.useRef(void 0),[o,s]=b.useState({isDirty:!1,isValidating:!1,isLoading:ae(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:ae(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!ae(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=eo(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Ge(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),b.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),b.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),b.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),b.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),b.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),b.useEffect(()=>{e.values&&!ne(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),b.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=kt(o,n),r.current}const It=(e,r,t)=>{if(e&&"reportValidity"in e){const o=S(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},Re=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?It(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>It(s,t,e))}},Ut=(e,r)=>{r.shouldUseNativeValidation&&Re(e,r);const t={};for(const o in e){const s=S(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(ro(r.names||Object.keys(e),o)){const a=Object.assign({},S(t,o));M(a,"root",n),M(t,o,a)}else M(t,o,n)}return t},ro=(e,r)=>{const t=Wt(r);return e.some(o=>Wt(o).match(`^${t}\\.\\d+`))};function Wt(e){return e.replace(/\]|\[/g,"")}function Gt(e,r,t){function o(l,f){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),r(l,f);for(const d in a.prototype)d in l||Object.defineProperty(l,d,{value:a.prototype[d].bind(l)});l._zod.constr=a,l._zod.def=f}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var f;const u=t!=null&&t.Parent?new n:this;o(u,l),(f=u._zod).deferred??(f.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var f,u;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(u=(f=l==null?void 0:l._zod)==null?void 0:f.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class oo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const so={};function qt(e){return so}function no(e,r){return typeof r=="bigint"?r.toString():r}const Zt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Le(e){return typeof e=="string"?e:e==null?void 0:e.message}function Qt(e,r,t){var s,n,a,l,f,u;const o={...e,path:e.path??[]};if(!e.message){const d=Le((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??Le((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??Le((f=t.customError)==null?void 0:f.call(t,e))??Le((u=t.localeError)==null?void 0:u.call(t,e))??"Invalid input";o.message=d}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const Kt=(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,no,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ao=Gt("$ZodError",Kt),Yt=Gt("$ZodError",Kt,{Parent:Error}),io=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new oo;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Qt(f,n,qt())));throw Zt(l,s==null?void 0:s.callee),l}return a.value})(Yt),lo=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Qt(f,n,qt())));throw Zt(l,s==null?void 0:s.callee),l}return a.value})(Yt);function Jt(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function co(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(d){return d.errors.forEach(function(m){return e.push(m)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Qe(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function uo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(d){return d.forEach(function(m){return e.push(m)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Qe(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function fo(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(Jt(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&Re({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Ut(co(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(Jt(function(){return Promise.resolve((t.mode==="sync"?io:lo)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&Re({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof ao})(a))return{values:{},errors:Ut(uo(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Xt=b.createContext(null);function Rt(){const e=b.useContext(Xt);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function yo({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:f}){const u=to({resolver:t?fo(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),d=u.handleSubmit(e);return g.jsx(Xt.Provider,{value:u,children:g.jsx("form",{...f,className:a,style:l,onSubmit:d,children:typeof r=="function"?r(u):r})})}const ho=yo,mo={formError:"FormError-module__formError___kaUBn"},er=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=O(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[mo.formError,t].filter(Boolean).join(" ");return g.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},ge={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"},tr=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:f,className:u,style:d,divProps:m})=>{const h=O(),$=[ge.formGroup,r?ge.error:"",e?ge.disabled:"",u].filter(Boolean).join(" "),k={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...d},_=b.Children.map(f,V=>{if(b.isValidElement(V)){const w={};if(e&&V.props.disabled===void 0&&(w.disabled=!0),r&&V.props.error===void 0&&(w.error=!0),s&&V.props.id===void 0&&(w.id=s),Object.keys(w).length>0)return b.cloneElement(V,w)}return V});return g.jsxs("div",{...m,className:$,style:k,children:[n&&g.jsxs($e,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&g.jsxs("span",{className:ge.required,"aria-label":"required",children:[" ","*"]})]}),g.jsx("div",{className:`${ge.inputWrapper} ${o?ge.indented:""}`,children:_}),r&&a&&g.jsx(er,{children:a})]})};function ce({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:f,labelProps:u}){const{control:d}=Rt(),{field:m,fieldState:{error:h}}=Tr({name:e,control:d,rules:s});return g.jsx(tr,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:a,style:l,indent:f,labelProps:u,children:o({value:m.value,onChange:m.onChange,onBlur:m.onBlur,name:m.name,error:!!h,indent:f})})}const et={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},go=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),rr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:f="text",value:u="",onChange:d,onBlur:m,className:h,style:$,inputProps:k})=>{const _=O(),V=_.colors.error,w=r?V:t||_.colors.primary,C=go({color:w,disabled:e,fontSize:_.fonts.size,placeholderOpacity:l}),A={"--placeholder-opacity":C.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:C.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:C.color,fontSize:C.fontSize,opacity:C.opacity,...$},z=[et.input,o==="small"?et.sizeSmall:et.sizeLarge,h].filter(Boolean).join(" ");return g.jsx("input",{...k,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:m,placeholder:a,type:f,value:u,style:A})};function _o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return g.jsx(ce,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:m,error:h})=>g.jsx(rr,{...l,name:m,value:f||"",onChange:$=>u($.target.value),onBlur:d,error:h})})}const tt={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},vo=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),or=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:f=3,value:u="",onChange:d,onBlur:m,className:h,style:$,textareaProps:k})=>{const _=O(),V=_.colors.error,w=r?V:t||_.colors.primary,C=vo({color:w,disabled:e,placeholderOpacity:l}),A={"--placeholder-opacity":C.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:C.borderColor,borderWidth:_.border.width,borderRadius:_.border.radius,color:C.color,fontSize:_.fonts.size,opacity:C.opacity,...$},z=[tt.textarea,o==="small"?tt.sizeSmall:tt.sizeLarge,h].filter(Boolean).join(" ");return g.jsx("textarea",{...k,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:m,placeholder:a,rows:f,value:u,style:A})};function po({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return g.jsx(ce,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:m,error:h})=>g.jsx(or,{...l,name:m,value:f||"",onChange:$=>u($.target.value),onBlur:d,error:h})})}const rt={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},bo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
|
|
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(a)}")`})(e)}),sr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:f,onBlur:u,children:d,className:m,style:h,selectProps:$})=>{const k=O(),_=k.colors.error,w=r?_:t||k.colors.primary,V=bo({color:w,disabled:e}),C={"--select-padding-small":`calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * 1.2) calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * 1.4) calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,backgroundImage:V.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:V.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:V.color,cursor:V.cursor,fontSize:k.fonts.size,opacity:V.opacity,...h},A=[rt.select,o==="small"?rt.sizeSmall:rt.sizeLarge,m].filter(Boolean).join(" ");return g.jsxs("select",{...$,className:A,disabled:e,id:s,name:n,onChange:f,onBlur:u,value:l,style:C,children:[a!==""&&g.jsx("option",{disabled:!0,value:"",children:a}),d]})};function So({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...f}){return g.jsx(ce,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,onBlur:m,name:h,error:$})=>g.jsx(sr,{...f,name:h,value:u||"",onChange:k=>d(k.target.value),onBlur:m,error:$,children:l})})}function Co({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return g.jsx(ce,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:f,name:u,error:d})=>g.jsx(ze,{...a,name:u,checked:!!l,onChange:m=>f(m.target.checked),error:d})})}const ot={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Fo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),st=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:f,className:u,style:d,divProps:m})=>{const h=O(),$=n||vt(),k=h.colors.error,_=o?k:e||h.colors.primary,w=Fo({color:_,disabled:t}),V=I=>{t||a(I)},C={cursor:w.cursor,fontSize:h.fonts.size,opacity:w.opacity,...d},A={width:"1em"},z={fill:"transparent",strokeWidth:"12.5",stroke:w.radioColor},N={fill:w.radioColor},T=[ot.container,u].filter(Boolean).join(" ");return g.jsxs("div",{...m,className:T,style:C,children:[g.jsx("input",{id:$,checked:r,disabled:t,name:s,onChange:I=>V({target:{checked:I.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>V({target:{checked:!r,name:s,type:"radio"}}),className:ot.svg,style:A,children:[g.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:z}),r&&g.jsx("circle",{cx:"50",cy:"50",r:"25",style:N})]}),l&&g.jsx($e,{htmlFor:$,className:ot.label,style:{paddingBottom:0,...f},color:w.radioColor,disabled:t,error:o,children:l})]})};function ko({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...f}){return g.jsx(ce,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,name:m,error:h})=>g.jsx(st,{...f,name:m,checked:u===l,onChange:()=>d(l),error:h,label:r})})}function wo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return g.jsx(ce,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:u,name:d,error:m})=>g.jsx(g.Fragment,{children:o.map(h=>g.jsx(st,{name:d,checked:f===h.value,onChange:()=>u(h.value),label:h.label,disabled:s||h.disabled,error:m},h.value))})})}function Vo({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:f=!0}){return g.jsx(ce,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:u,onChange:d,name:m,error:h})=>{const $=Array.isArray(u)?u:[],k=(_,w)=>{d(w?[...$,_]:$.filter(V=>V!==_))};return g.jsx(g.Fragment,{children:o?o.map(_=>g.jsx(ze,{name:`${m}[]`,checked:$.includes(_.value),onChange:w=>k(_.value,w.target.checked),label:_.label,disabled:n||_.disabled,error:h},_.value)):b.Children.map(s,_=>{if(b.isValidElement(_)&&_.type===ze){const w=_.props.value||_.props.name;return b.cloneElement(_,{name:`${m}[]`,checked:$.includes(w),onChange:V=>k(w,V.target.checked),error:h||_.props.error,disabled:n||_.props.disabled})}return _})})}})}const Fe={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},xo=({compact:e,color:r,visible:t,border:o})=>{const s=O(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},nr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:f})=>{const u=xo({compact:t,color:e,visible:r,border:n}),d=[Fe.hamburger,s?Fe.open:"",l].filter(Boolean).join(" ");return g.jsxs("button",{ref:o,className:d,onClick:()=>a(!s),style:{...u,...f},"aria-label":"Toggle menu","aria-expanded":s,children:[g.jsx("div",{className:Fe.line}),g.jsx("div",{className:Fe.line}),g.jsx("div",{className:Fe.line})]})},ar={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},$o=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const m=O();return{"--header-max-width":r||m.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||m.layout.paddingSm:a||m.layout.padding,"--header-margin":l,"--header-gap":f,backgroundColor:u,color:d}},re=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return b.useSyncExternalStore(t,o,s)},ir=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakpoint:d,fixed:m=!1,children:h,className:$,style:k,headerProps:_})=>{const w=O(),V=d||w.breakpoints.sm,{maxWidth:C,unit:A}=ye(V),z=re(`(max-width: ${C}${A})`),N=$o({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),T=[ar.container,$].filter(Boolean).join(" "),I=m?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return g.jsx("header",{..._,className:ar.header,style:I,children:g.jsx("div",{className:T,style:{...N,...k},children:h})})},_e={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",open:"ResponsiveNav-module__open___WDCAf",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},zo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=O();return b.useMemo(()=>{if(e){const n=(t==null?void 0:t.backgroundColor)||s.colors.primary,a=(t==null?void 0:t.color)||s.colors.secondary,l=(t==null?void 0:t.activeBackgroundColor)||s.colors.secondary,f=(t==null?void 0:t.activeColor)||s.colors.primary,u=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:n,color:a,fontSize:u,...t==null?void 0:t.style},linkActiveStyles:{backgroundColor:l,color:f},linkHoverStyles:{}}}else{const n=o==null?void 0:o.backgroundColor,a=(o==null?void 0:o.color)||s.fonts.color,l=(o==null?void 0:o.hoverOpacity)??.5,f=o==null?void 0:o.activeBackgroundColor,u=o==null?void 0:o.activeColor;return{navStyles:{...n&&{backgroundColor:n},color:a,...o==null?void 0:o.style},linkActiveStyles:{...f&&{backgroundColor:f},...u&&{color:u},opacity:f||u?1:l},linkHoverStyles:{opacity:l}}}},[e,r,t,o,s])},Eo=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a})=>{var te;const[l,f]=b.useState(!1),u=b.useRef(null),d=b.useRef(null),m=O(),h={...m.breakpoints,...t},{maxWidth:$,unit:k}=ye(h.md),{maxWidth:_,unit:w}=ye(h.sm),V=re(`(max-width: ${$}${k})`),C=re(`(max-width: ${_}${w})`),{navStyles:A,linkActiveStyles:z,linkHoverStyles:N}=zo({isMobile:V,isCompact:C,mobile:e,desktop:r}),T={...A,...z.backgroundColor&&{"--mobile-active-bg":z.backgroundColor},...z.color&&{"--mobile-active-color":z.color},...N.opacity!==void 0&&{"--desktop-hover-opacity":N.opacity}};b.useEffect(()=>{if(V&&l){const B=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${B}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,B)}}},[V,l]),b.useEffect(()=>{const B=P=>{!d.current||d.current.contains(P.target)||u.current&&u.current.contains(P.target)||f(!1)};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[u,d,f]);const I=[_e.nav,V?_e.navMobile:_e.navDesktop,V&&l?_e.open:"",V&&(C||e!=null&&e.compact)?_e.compact:"",s].filter(Boolean).join(" "),R=B=>{if(!V)return;B.target.closest("a, button")&&f(!1)},L=V?(e==null?void 0:e.content)||o:(r==null?void 0:r.content)||o,ee=l?(e==null?void 0:e.hamburgerColor)||(e==null?void 0:e.color)||m.colors.secondary:(te=e==null?void 0:e.hamburgerProps)==null?void 0:te.color;return g.jsxs(g.Fragment,{children:[g.jsx(nr,{hamburgerRef:u,visible:V,compact:C,open:l,setOpen:f,color:ee,...e==null?void 0:e.hamburgerProps}),g.jsxs("nav",{...a,ref:d,className:I,style:{...T,...n},onClickCapture:R,children:[V&&l&&g.jsx("div",{className:_e.navHeader}),typeof L=="function"?L({setOpen:f}):L]})]})},lr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=O(),l=e||a.colors.primary,f=r||a.colors.secondary,u=g.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${f}`}}),d=g.jsxs(g.Fragment,{children:[u,g.jsx("style",{children:`
|
|
17
|
+
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),sr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:f,onBlur:u,children:d,className:m,style:h,selectProps:$})=>{const k=O(),_=k.colors.error,V=r?_:t||k.colors.primary,w=bo({color:V,disabled:e}),C={"--select-padding-small":`calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * 1.2) calc(${k.fonts.rhythm} * ${k.sizes.small.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * 1.4) calc(${k.fonts.rhythm} * ${k.sizes.large.paddingVertical}) calc(${k.fonts.rhythm} * ${k.inputs.paddingHorizontal})`,backgroundImage:w.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:w.borderColor,borderWidth:k.border.width,borderRadius:k.border.radius,color:w.color,cursor:w.cursor,fontSize:k.fonts.size,opacity:w.opacity,...h},A=[rt.select,o==="small"?rt.sizeSmall:rt.sizeLarge,m].filter(Boolean).join(" ");return g.jsxs("select",{...$,className:A,disabled:e,id:s,name:n,onChange:f,onBlur:u,value:l,style:C,children:[a!==""&&g.jsx("option",{disabled:!0,value:"",children:a}),d]})};function So({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...f}){return g.jsx(ce,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,onBlur:m,name:h,error:$})=>g.jsx(sr,{...f,name:h,value:u||"",onChange:k=>d(k.target.value),onBlur:m,error:$,children:l})})}function Co({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return g.jsx(ce,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:f,name:u,error:d})=>g.jsx(ze,{...a,name:u,checked:!!l,onChange:m=>f(m.target.checked),error:d})})}const ot={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Fo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),st=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:f,className:u,style:d,divProps:m})=>{const h=O(),$=n||vt(),k=h.colors.error,_=o?k:e||h.colors.primary,V=Fo({color:_,disabled:t}),w=I=>{t||a(I)},C={cursor:V.cursor,fontSize:h.fonts.size,opacity:V.opacity,...d},A={width:"1em"},z={fill:"transparent",strokeWidth:"12.5",stroke:V.radioColor},N={fill:V.radioColor},T=[ot.container,u].filter(Boolean).join(" ");return g.jsxs("div",{...m,className:T,style:C,children:[g.jsx("input",{id:$,checked:r,disabled:t,name:s,onChange:I=>w({target:{checked:I.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>w({target:{checked:!r,name:s,type:"radio"}}),className:ot.svg,style:A,children:[g.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:z}),r&&g.jsx("circle",{cx:"50",cy:"50",r:"25",style:N})]}),l&&g.jsx($e,{htmlFor:$,className:ot.label,style:{paddingBottom:0,...f},color:V.radioColor,disabled:t,error:o,children:l})]})};function ko({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...f}){return g.jsx(ce,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,name:m,error:h})=>g.jsx(st,{...f,name:m,checked:u===l,onChange:()=>d(l),error:h,label:r})})}function wo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return g.jsx(ce,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:u,name:d,error:m})=>g.jsx(g.Fragment,{children:o.map(h=>g.jsx(st,{name:d,checked:f===h.value,onChange:()=>u(h.value),label:h.label,disabled:s||h.disabled,error:m},h.value))})})}function Vo({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:f=!0}){return g.jsx(ce,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:u,onChange:d,name:m,error:h})=>{const $=Array.isArray(u)?u:[],k=(_,V)=>{d(V?[...$,_]:$.filter(w=>w!==_))};return g.jsx(g.Fragment,{children:o?o.map(_=>g.jsx(ze,{name:`${m}[]`,checked:$.includes(_.value),onChange:V=>k(_.value,V.target.checked),label:_.label,disabled:n||_.disabled,error:h},_.value)):b.Children.map(s,_=>{if(b.isValidElement(_)&&_.type===ze){const V=_.props.value||_.props.name;return b.cloneElement(_,{name:`${m}[]`,checked:$.includes(V),onChange:w=>k(V,w.target.checked),error:h||_.props.error,disabled:n||_.props.disabled})}return _})})}})}const Fe={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},xo=({compact:e,color:r,visible:t,border:o})=>{const s=O(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},nr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:f})=>{const u=xo({compact:t,color:e,visible:r,border:n}),d=[Fe.hamburger,s?Fe.open:"",l].filter(Boolean).join(" ");return g.jsxs("button",{ref:o,className:d,onClick:()=>a(!s),style:{...u,...f},"aria-label":"Toggle menu","aria-expanded":s,children:[g.jsx("div",{className:Fe.line}),g.jsx("div",{className:Fe.line}),g.jsx("div",{className:Fe.line})]})},ar={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},$o=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const m=O();return{"--header-max-width":r||m.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||m.layout.paddingSm:a||m.layout.padding,"--header-margin":l,"--header-gap":f,backgroundColor:u,color:d}},re=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return b.useSyncExternalStore(t,o,s)},ir=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakpoint:d,fixed:m=!1,children:h,className:$,style:k,headerProps:_})=>{const V=O(),w=d||V.breakpoints.sm,{maxWidth:C,unit:A}=ye(w),z=re(`(max-width: ${C}${A})`),N=$o({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),T=[ar.container,$].filter(Boolean).join(" "),I=m?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return g.jsx("header",{..._,className:ar.header,style:I,children:g.jsx("div",{className:T,style:{...N,...k},children:h})})},_e={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",open:"ResponsiveNav-module__open___WDCAf",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},zo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=O();return b.useMemo(()=>{if(e){const n=(t==null?void 0:t.backgroundColor)||s.colors.primary,a=(t==null?void 0:t.color)||s.colors.secondary,l=(t==null?void 0:t.activeBackgroundColor)||s.colors.secondary,f=(t==null?void 0:t.activeColor)||s.colors.primary,u=r||t!=null&&t.compact?"1.5rem":"2rem";return{navStyles:{backgroundColor:n,color:a,fontSize:u,...t==null?void 0:t.style},linkActiveStyles:{backgroundColor:l,color:f},linkHoverStyles:{}}}else{const n=o==null?void 0:o.backgroundColor,a=(o==null?void 0:o.color)||s.fonts.color,l=(o==null?void 0:o.hoverOpacity)??.5,f=o==null?void 0:o.activeBackgroundColor,u=o==null?void 0:o.activeColor;return{navStyles:{...n&&{backgroundColor:n},color:a,...o==null?void 0:o.style},linkActiveStyles:{...f&&{backgroundColor:f},...u&&{color:u},opacity:f||u?1:l},linkHoverStyles:{opacity:l}}}},[e,r,t,o,s])},Eo=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a})=>{var te;const[l,f]=b.useState(!1),u=b.useRef(null),d=b.useRef(null),m=O(),h={...m.breakpoints,...t},{maxWidth:$,unit:k}=ye(h.md),{maxWidth:_,unit:V}=ye(h.sm),w=re(`(max-width: ${$}${k})`),C=re(`(max-width: ${_}${V})`),{navStyles:A,linkActiveStyles:z,linkHoverStyles:N}=zo({isMobile:w,isCompact:C,mobile:e,desktop:r}),T={...A,...z.backgroundColor&&{"--mobile-active-bg":z.backgroundColor},...z.color&&{"--mobile-active-color":z.color},...N.opacity!==void 0&&{"--desktop-hover-opacity":N.opacity}};b.useEffect(()=>{if(w&&l){const B=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${B}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,B)}}},[w,l]),b.useEffect(()=>{const B=P=>{!d.current||d.current.contains(P.target)||u.current&&u.current.contains(P.target)||f(!1)};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[u,d,f]);const I=[_e.nav,w?_e.navMobile:_e.navDesktop,w&&l?_e.open:"",w&&(C||e!=null&&e.compact)?_e.compact:"",s].filter(Boolean).join(" "),R=B=>{if(!w)return;B.target.closest("a, button")&&f(!1)},L=w?(e==null?void 0:e.content)||o:(r==null?void 0:r.content)||o,ee=l?(e==null?void 0:e.hamburgerColor)||(e==null?void 0:e.color)||m.colors.secondary:(te=e==null?void 0:e.hamburgerProps)==null?void 0:te.color;return g.jsxs(g.Fragment,{children:[g.jsx(nr,{hamburgerRef:u,visible:w,compact:C,open:l,setOpen:f,color:ee,...e==null?void 0:e.hamburgerProps}),g.jsxs("nav",{...a,ref:d,className:I,style:{...T,...n},onClickCapture:R,children:[w&&l&&g.jsx("div",{className:_e.navHeader}),typeof L=="function"?L({setOpen:f}):L]})]})},lr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=O(),l=e||a.colors.primary,f=r||a.colors.secondary,u=g.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${f}`}}),d=g.jsxs(g.Fragment,{children:[u,g.jsx("style",{children:`
|
|
18
18
|
@keyframes spin {
|
|
19
19
|
0% { transform: rotate(0deg); }
|
|
20
20
|
100% { transform: rotate(360deg); }
|
|
21
21
|
}
|
|
22
|
-
`})]});return t?g.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:d}):d},Ao=({children:e,loadingComponent:r})=>{const[t,o]=b.useState(!1);return b.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?g.jsx(g.Fragment,{children:e}):r||g.jsx(lr,{})},fe={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},nt={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},cr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[nt.stack,e==="column"?nt.vertical:nt.horizontal,t].filter(Boolean).join(" ");return g.jsx("div",{...s,className:n,style:o,children:r})},ur=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:f,width:u="500px",maxWidth:d="90vw",backgroundColor:m,backdropColor:h,className:$,style:k,divProps:_})=>{const
|
|
22
|
+
`})]});return t?g.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:d}):d},Ao=({children:e,loadingComponent:r})=>{const[t,o]=b.useState(!1);return b.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?g.jsx(g.Fragment,{children:e}):r||g.jsx(lr,{})},fe={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},nt={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},cr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[nt.stack,e==="column"?nt.vertical:nt.horizontal,t].filter(Boolean).join(" ");return g.jsx("div",{...s,className:n,style:o,children:r})},ur=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:f,width:u="500px",maxWidth:d="90vw",backgroundColor:m,backdropColor:h="rgba(0, 0, 0, 0.5)",className:$,style:k,divProps:_})=>{const V=O(),w=b.useRef(null),C=b.useRef(null),{maxWidth:A}=ye(V.breakpoints.md),z=re(`(max-width: ${A-1}px)`);b.useEffect(()=>{if(e)return C.current=document.activeElement,document.body.style.overflow="hidden",w.current&&w.current.focus(),()=>{document.body.style.overflow="",C.current&&C.current.focus()}},[e]),b.useEffect(()=>{if(!e||!a)return;const L=ee=>{ee.key==="Escape"&&r()};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[e,a,r]);const N=L=>{L.target===L.currentTarget&&n&&r()};if(!e)return null;const T={width:u,maxWidth:d,backgroundColor:m||V.colors.secondary,borderRadius:V.border.radius,...k},I={backgroundColor:h},R=g.jsx("div",{className:fe.backdrop,style:I,onClick:N,role:"presentation",children:g.jsxs("div",{ref:w,className:[fe.modal,$].filter(Boolean).join(" "),style:T,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,..._,children:[g.jsxs("div",{className:fe.header,children:[o&&g.jsx("h2",{id:"modal-title",className:fe.title,children:o}),!s&&g.jsx("button",{className:fe.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:g.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:g.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),g.jsx("div",{className:fe.content,children:t}),l.length>0&&g.jsx(cr,{direction:z?"column":"row",className:fe.actions,children:l.map((L,ee)=>g.jsx(mt,{color:L.color,outline:L.variant==="outline",disabled:L.disabled,onClick:()=>{L.onClick?L.onClick(f||r):f?f(L.value):r()},children:L.label},ee))})]})});return xr.createPortal(R,document.body)},dr=b.createContext(null),No=({children:e})=>{const[r,t]=b.useState(null),o=b.useCallback(u=>new Promise((d,m)=>{const h=Math.random().toString(36).substr(2,9);t({id:h,content:u.content,title:u.title,actions:u.actions,options:u.options,resolve:d,reject:m})}),[]),s=b.useCallback(u=>{t(d=>(d&&d.resolve(u),null))},[]),n=b.useCallback(u=>o({title:u.title||"Confirm",content:u.message,actions:[{label:u.cancelLabel||"Cancel",variant:"outline",onClick:d=>d(!1)},{label:u.confirmLabel||"Confirm",color:u.confirmColor,onClick:d=>d(!0)}],options:u.options}),[o]),a=b.useCallback(u=>o({title:u.title||"Alert",content:u.message,actions:[{label:u.okLabel||"OK",color:u.okColor,onClick:d=>d()}],options:u.options}),[o]),l=b.useCallback(()=>{s()},[s]),f=b.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return g.jsxs(dr.Provider,{value:f,children:[e,r&&g.jsx(ur,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Bo=()=>{const e=b.useContext(dr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},fr={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},at=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,verticalRhythm:d=3,children:m,className:h,style:$,sectionProps:k})=>{const _=O(),V=re(`(min-width: ${_.breakpoints.sm})`),w={backgroundColor:e,color:r||_.fonts.color,margin:f,...$},C=`calc(${_.fonts.rhythm} * ${d})`,A=V?a||_.layout.padding:l||_.layout.paddingSm,z={"--max-width":t||_.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${C} ${A}`,"--gap":u},N=[fr.section,h].filter(Boolean).join(" ");return g.jsx("section",{...k,className:N,style:w,children:g.jsx("div",{className:fr.innerDiv,style:z,children:m})})},yr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},Lo=({isMd:e=!1,isLg:r=!1,theme:t})=>b.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),Po=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=O(),l=[yr.hero,o].filter(Boolean).join(" "),f=(r==null?void 0:r.md)||a.breakpoints.md,u=(r==null?void 0:r.lg)||a.breakpoints.lg,d=re(`(min-width: ${f})`),m=re(`(min-width: ${u})`),h=Lo({isMd:d,isLg:m,theme:a});return g.jsx(at,{className:l,color:e||a.fonts.color,style:{...h,...s},...n,children:g.jsx("div",{className:yr.content,children:t})})},hr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},Mo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const m=O();return{maxWidth:r||m.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||m.layout.paddingSm:a||m.layout.padding,margin:l,gap:f,backgroundColor:u,color:d||m.fonts.color}},mr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakPoint:d,children:m,className:h,style:$,footerProps:k})=>{const _=O(),V=d||_.breakpoints.sm,{maxWidth:w,unit:C}=ye(V),A=re(`(max-width: ${w}${C})`),z=Mo({isSmallScreen:A,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),N=[hr.container,h].filter(Boolean).join(" ");return g.jsx("footer",{...k,className:hr.footer,children:g.jsx("div",{className:N,style:{...z,...$},children:m})})},Pe={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Do=({isMd:e=!1,theme:r})=>b.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]),Ho=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=O(),f=[Pe.card,s].filter(Boolean).join(" "),u=e||l.breakpoints.md,d=re(`(min-width: ${u})`),m=Do({isMd:d,theme:l});return g.jsxs("div",{...a,className:f,style:{...m,...n},children:[r&&g.jsx("div",{className:Pe.icon,children:r}),g.jsx("h3",{className:Pe.title,children:t}),g.jsx("div",{className:Pe.content,children:o})]})},gr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},Oo=({columns:e,isMd:r=!1,isLg:t=!1})=>b.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]),To=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const l=O(),f=[gr.section,s].filter(Boolean).join(" "),u=(r==null?void 0:r.md)||l.breakpoints.md,d=(r==null?void 0:r.lg)||l.breakpoints.lg,m=re(`(min-width: ${u})`),h=re(`(min-width: ${d})`),$=Oo({columns:e,isMd:m,isLg:h}),k={"--section-padding-vertical":`calc(${l.fonts.rhythm} * 2)`},_={...$,gap:t,...n};return g.jsx(at,{className:f,style:k,...a,children:g.jsx("div",{className:gr.grid,style:_,children:o})})},it={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},jo=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:f})=>{const u=[it.layoutContainer,o].filter(Boolean).join(" ");return g.jsxs("div",{...l,className:u,style:s,children:[g.jsxs("div",{className:it.content,children:[e&&g.jsx(ir,{...n,children:e}),g.jsx("main",{...f,className:it.main,children:t})]}),r&&g.jsx(mr,{...a,children:r})]})};E.Button=mt,E.CSSReset=Pr,E.Checkbox=ze,E.FeatureCard=Ho,E.FeatureGridSection=To,E.Footer=mr,E.Form=ho,E.FormCheckbox=Co,E.FormCheckboxGroup=Vo,E.FormError=er,E.FormField=ce,E.FormGroup=tr,E.FormInput=_o,E.FormLabel=$e,E.FormRadio=ko,E.FormRadioGroup=wo,E.FormSelect=So,E.FormTextarea=po,E.Hamburger=nr,E.Header=ir,E.Hero=Po,E.Input=rr,E.LoadingSpinner=lr,E.Modal=ur,E.ModalProvider=No,E.PageLayout=jo,E.Radio=st,E.ResponsiveNav=Eo,E.ResponsiveSection=at,E.Select=sr,E.Stack=cr,E.StyleLoader=Ao,E.Textarea=or,E.ThemeProvider=zr,E.parseBreakpoint=ye,E.useFormContext=Rt,E.useMediaQuery=re,E.useModal=Bo,E.useTheme=O,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digital-rabbit-cl",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@hookform/resolvers": "^5.2.2",
|
|
6
6
|
"react-hook-form": "^7.66.0",
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
"zod": "^4.1.12"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"
|
|
12
|
-
"react": "^
|
|
13
|
-
"react-dom": "^18.3.1"
|
|
11
|
+
"react": "^19.2.4",
|
|
12
|
+
"react-dom": "^19.2.4"
|
|
14
13
|
},
|
|
15
14
|
"scripts": {
|
|
16
15
|
"build": "vite build",
|
|
@@ -64,8 +63,8 @@
|
|
|
64
63
|
"@testing-library/react": "^16.3.0",
|
|
65
64
|
"@testing-library/user-event": "^14.6.1",
|
|
66
65
|
"@types/jest": "^30.0.0",
|
|
67
|
-
"@types/react": "^
|
|
68
|
-
"@types/react-dom": "^
|
|
66
|
+
"@types/react": "^19.0.0",
|
|
67
|
+
"@types/react-dom": "^19.0.0",
|
|
69
68
|
"@types/uuid": "^10.0.0",
|
|
70
69
|
"@typescript-eslint/eslint-plugin": "^8.46.4",
|
|
71
70
|
"@typescript-eslint/parser": "^8.46.4",
|