UNPKG

@buun_group/brutalist-ui

Version:
44 lines (42 loc) 246 kB
(function(S,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],l):(S=typeof globalThis<"u"?globalThis:S||self,l(S.BrutalistUI={},S.React,S.ReactDOM))})(this,function(S,l,tt){"use strict";function ps(e){var o,s,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(s=ps(e[o]))&&(r&&(r+=" "),r+=s)}else for(s in e)e[s]&&(r&&(r+=" "),r+=s);return r}function N(){for(var e,o,s=0,r="",a=arguments.length;s<a;s++)(e=arguments[s])&&(o=ps(e))&&(r&&(r+=" "),r+=o);return r}const de={0:"0",1:"var(--brutal-space-1)",2:"var(--brutal-space-2)",3:"var(--brutal-space-3)",4:"var(--brutal-space-4)",5:"var(--brutal-space-5)",6:"var(--brutal-space-6)",8:"var(--brutal-space-8)",10:"var(--brutal-space-10)",12:"var(--brutal-space-12)",16:"var(--brutal-space-16)",20:"var(--brutal-space-20)",24:"var(--brutal-space-24)"},Qn={p:e=>({padding:de[e]}),pt:e=>({paddingTop:de[e]}),pr:e=>({paddingRight:de[e]}),pb:e=>({paddingBottom:de[e]}),pl:e=>({paddingLeft:de[e]}),px:e=>({paddingLeft:de[e],paddingRight:de[e]}),py:e=>({paddingTop:de[e],paddingBottom:de[e]}),m:e=>({margin:de[e]}),mt:e=>({marginTop:de[e]}),mr:e=>({marginRight:de[e]}),mb:e=>({marginBottom:de[e]}),ml:e=>({marginLeft:de[e]}),mx:e=>({marginLeft:de[e],marginRight:de[e]}),my:e=>({marginTop:de[e],marginBottom:de[e]}),gap:e=>({gap:de[e]}),"gap-x":e=>({columnGap:de[e]}),"gap-y":e=>({rowGap:de[e]})},hs={block:{display:"block"},"inline-block":{display:"inline-block"},inline:{display:"inline"},flex:{display:"flex"},"inline-flex":{display:"inline-flex"},grid:{display:"grid"},hidden:{display:"none"}},fs={"flex-row":{flexDirection:"row"},"flex-row-reverse":{flexDirection:"row-reverse"},"flex-col":{flexDirection:"column"},"flex-col-reverse":{flexDirection:"column-reverse"},"flex-wrap":{flexWrap:"wrap"},"flex-nowrap":{flexWrap:"nowrap"},"items-start":{alignItems:"flex-start"},"items-end":{alignItems:"flex-end"},"items-center":{alignItems:"center"},"items-baseline":{alignItems:"baseline"},"items-stretch":{alignItems:"stretch"},"justify-start":{justifyContent:"flex-start"},"justify-end":{justifyContent:"flex-end"},"justify-center":{justifyContent:"center"},"justify-between":{justifyContent:"space-between"},"justify-around":{justifyContent:"space-around"},"justify-evenly":{justifyContent:"space-evenly"}},gs={"w-full":{width:"100%"},"w-auto":{width:"auto"},"h-full":{height:"100%"},"h-auto":{height:"auto"}},bs={relative:{position:"relative"},absolute:{position:"absolute"},fixed:{position:"fixed"},sticky:{position:"sticky"},static:{position:"static"}},ys={"overflow-auto":{overflow:"auto"},"overflow-hidden":{overflow:"hidden"},"overflow-visible":{overflow:"visible"},"overflow-scroll":{overflow:"scroll"},"overflow-x-auto":{overflowX:"auto"},"overflow-y-auto":{overflowY:"auto"}},xs={"text-xs":{fontSize:"0.75rem",lineHeight:"1rem"},"text-sm":{fontSize:"0.875rem",lineHeight:"1.25rem"},"text-base":{fontSize:"1rem",lineHeight:"1.5rem"},"text-lg":{fontSize:"1.125rem",lineHeight:"1.75rem"},"text-xl":{fontSize:"1.25rem",lineHeight:"1.75rem"},"text-2xl":{fontSize:"1.5rem",lineHeight:"2rem"},"text-3xl":{fontSize:"1.875rem",lineHeight:"2.25rem"},"text-4xl":{fontSize:"2.25rem",lineHeight:"2.5rem"},"text-5xl":{fontSize:"3rem",lineHeight:"1"},"text-6xl":{fontSize:"3.75rem",lineHeight:"1"},"text-left":{textAlign:"left"},"text-center":{textAlign:"center"},"text-right":{textAlign:"right"},"text-justify":{textAlign:"justify"},"font-normal":{fontWeight:"var(--brutal-font-regular)"},"font-medium":{fontWeight:"var(--brutal-font-medium)"},"font-bold":{fontWeight:"var(--brutal-font-bold)"},"font-black":{fontWeight:"var(--brutal-font-black)"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},"normal-case":{textTransform:"none"},"leading-none":{lineHeight:"1"},"leading-tight":{lineHeight:"1.25"},"leading-snug":{lineHeight:"1.375"},"leading-normal":{lineHeight:"1.5"},"leading-relaxed":{lineHeight:"1.625"},"leading-loose":{lineHeight:"2"},"tracking-tighter":{letterSpacing:"-0.05em"},"tracking-tight":{letterSpacing:"-0.025em"},"tracking-normal":{letterSpacing:"0"},"tracking-wide":{letterSpacing:"0.025em"},"tracking-wider":{letterSpacing:"0.05em"},"tracking-widest":{letterSpacing:"0.1em"}},vs={"text-black":{color:"var(--brutal-black)"},"text-white":{color:"var(--brutal-white)"},"text-accent":{color:"var(--brutal-accent)"},"text-gray-50":{color:"#f9fafb"},"text-gray-100":{color:"#f3f4f6"},"text-gray-200":{color:"#e5e7eb"},"text-gray-300":{color:"#d1d5db"},"text-gray-400":{color:"#9ca3af"},"text-gray-500":{color:"#6b7280"},"text-gray-600":{color:"#4b5563"},"text-gray-700":{color:"#374151"},"text-gray-800":{color:"#1f2937"},"text-gray-900":{color:"#111827"},"text-red":{color:"#ef4444"},"text-blue":{color:"#3b82f6"},"text-green":{color:"#10b981"},"text-yellow":{color:"#f59e0b"},"text-purple":{color:"#8b5cf6"},"text-pink":{color:"#ec4899"},"bg-black":{backgroundColor:"var(--brutal-black)"},"bg-white":{backgroundColor:"var(--brutal-white)"},"bg-accent":{backgroundColor:"var(--brutal-accent)"},"bg-gray-50":{backgroundColor:"#f9fafb"},"bg-gray-100":{backgroundColor:"#f3f4f6"},"bg-gray-200":{backgroundColor:"#e5e7eb"},"bg-gray-300":{backgroundColor:"#d1d5db"},"bg-gray-400":{backgroundColor:"#9ca3af"},"bg-gray-500":{backgroundColor:"#6b7280"},"bg-gray-600":{backgroundColor:"#4b5563"},"bg-gray-700":{backgroundColor:"#374151"},"bg-gray-800":{backgroundColor:"#1f2937"},"bg-gray-900":{backgroundColor:"#111827"},"bg-red":{backgroundColor:"#ef4444"},"bg-blue":{backgroundColor:"#3b82f6"},"bg-green":{backgroundColor:"#10b981"},"bg-yellow":{backgroundColor:"#f59e0b"},"bg-purple":{backgroundColor:"#8b5cf6"},"bg-pink":{backgroundColor:"#ec4899"}},ws={border:{border:"var(--brutal-border-width) solid var(--brutal-black)"},"border-0":{borderWidth:"0"},"border-2":{borderWidth:"2px",borderStyle:"solid"},"border-4":{borderWidth:"4px",borderStyle:"solid"},"border-8":{borderWidth:"8px",borderStyle:"solid"},"border-t":{borderTop:"var(--brutal-border-width) solid var(--brutal-black)"},"border-r":{borderRight:"var(--brutal-border-width) solid var(--brutal-black)"},"border-b":{borderBottom:"var(--brutal-border-width) solid var(--brutal-black)"},"border-l":{borderLeft:"var(--brutal-border-width) solid var(--brutal-black)"},"border-black":{borderColor:"var(--brutal-black)"},"border-white":{borderColor:"var(--brutal-white)"},"border-accent":{borderColor:"var(--brutal-accent)"},"border-gray-50":{borderColor:"#f9fafb"},"border-gray-100":{borderColor:"#f3f4f6"},"border-gray-200":{borderColor:"#e5e7eb"},"border-gray-300":{borderColor:"#d1d5db"},"border-gray-400":{borderColor:"#9ca3af"},"border-gray-500":{borderColor:"#6b7280"},"border-gray-600":{borderColor:"#4b5563"},"border-gray-700":{borderColor:"#374151"},"border-gray-800":{borderColor:"#1f2937"},"border-gray-900":{borderColor:"#111827"},"rounded-none":{borderRadius:"0"},"rounded-sm":{borderRadius:"0.125rem"},rounded:{borderRadius:"0.25rem"},"rounded-md":{borderRadius:"0.375rem"},"rounded-lg":{borderRadius:"0.5rem"},"rounded-xl":{borderRadius:"0.75rem"},"rounded-2xl":{borderRadius:"1rem"},"rounded-full":{borderRadius:"9999px"}},Cs={"shadow-none":{boxShadow:"none"},"shadow-brutal":{boxShadow:"var(--brutal-shadow)"},"shadow-brutal-sm":{boxShadow:"2px 2px 0 var(--brutal-black)"},"shadow-brutal-md":{boxShadow:"4px 4px 0 var(--brutal-black)"},"shadow-brutal-lg":{boxShadow:"6px 6px 0 var(--brutal-black)"},"shadow-brutal-xl":{boxShadow:"8px 8px 0 var(--brutal-black)"}},$s={"opacity-0":{opacity:"0"},"opacity-5":{opacity:"0.05"},"opacity-10":{opacity:"0.1"},"opacity-20":{opacity:"0.2"},"opacity-25":{opacity:"0.25"},"opacity-30":{opacity:"0.3"},"opacity-40":{opacity:"0.4"},"opacity-50":{opacity:"0.5"},"opacity-60":{opacity:"0.6"},"opacity-70":{opacity:"0.7"},"opacity-75":{opacity:"0.75"},"opacity-80":{opacity:"0.8"},"opacity-90":{opacity:"0.9"},"opacity-95":{opacity:"0.95"},"opacity-100":{opacity:"1"}},Ss={"ring-0":{boxShadow:"0 0 0 0px var(--brutal-black)"},"ring-1":{boxShadow:"0 0 0 1px var(--brutal-black)"},"ring-2":{boxShadow:"0 0 0 2px var(--brutal-black)"},"ring-4":{boxShadow:"0 0 0 4px var(--brutal-black)"},"ring-8":{boxShadow:"0 0 0 8px var(--brutal-black)"},"ring-black":{boxShadow:"0 0 0 2px var(--brutal-black)"},"ring-white":{boxShadow:"0 0 0 2px var(--brutal-white)"},"ring-accent":{boxShadow:"0 0 0 2px var(--brutal-accent)"},"ring-purple":{boxShadow:"0 0 0 4px #8b5cf6"},"ring-offset-0":{boxShadow:"0 0 0 0px #fff, 0 0 0 0px var(--brutal-black)"},"ring-offset-1":{boxShadow:"0 0 0 1px #fff, 0 0 0 3px var(--brutal-accent)"},"ring-offset-2":{boxShadow:"0 0 0 2px #fff, 0 0 0 4px var(--brutal-accent)"},"ring-offset-4":{boxShadow:"0 0 0 4px #fff, 0 0 0 6px var(--brutal-accent)"},"ring-offset-8":{boxShadow:"0 0 0 8px #fff, 0 0 0 10px var(--brutal-accent)"}},Ns={"translate-x-0":{transform:"translateX(0px)"},"translate-x-1":{transform:"translateX(0.25rem)"},"translate-x-2":{transform:"translateX(0.5rem)"},"translate-x-4":{transform:"translateX(1rem)"},"translate-y-0":{transform:"translateY(0px)"},"translate-y-1":{transform:"translateY(0.25rem)"},"translate-y-2":{transform:"translateY(0.5rem)"},"translate-y-4":{transform:"translateY(1rem)"},"scale-0":{transform:"scale(0)"},"scale-50":{transform:"scale(0.5)"},"scale-75":{transform:"scale(0.75)"},"scale-90":{transform:"scale(0.9)"},"scale-95":{transform:"scale(0.95)"},"scale-100":{transform:"scale(1)"},"scale-105":{transform:"scale(1.05)"},"scale-110":{transform:"scale(1.1)"},"scale-125":{transform:"scale(1.25)"},"scale-150":{transform:"scale(1.5)"},"rotate-0":{transform:"rotate(0deg)"},"rotate-1":{transform:"rotate(1deg)"},"rotate-2":{transform:"rotate(2deg)"},"rotate-3":{transform:"rotate(3deg)"},"rotate-6":{transform:"rotate(6deg)"},"rotate-12":{transform:"rotate(12deg)"},"rotate-45":{transform:"rotate(45deg)"},"rotate-90":{transform:"rotate(90deg)"},"rotate-180":{transform:"rotate(180deg)"}},Ts={"cursor-auto":{cursor:"auto"},"cursor-default":{cursor:"default"},"cursor-pointer":{cursor:"pointer"},"cursor-wait":{cursor:"wait"},"cursor-text":{cursor:"text"},"cursor-move":{cursor:"move"},"cursor-help":{cursor:"help"},"cursor-not-allowed":{cursor:"not-allowed"},"cursor-none":{cursor:"none"},"cursor-context-menu":{cursor:"context-menu"},"cursor-progress":{cursor:"progress"},"cursor-cell":{cursor:"cell"},"cursor-crosshair":{cursor:"crosshair"},"cursor-vertical-text":{cursor:"vertical-text"},"cursor-alias":{cursor:"alias"},"cursor-copy":{cursor:"copy"},"cursor-no-drop":{cursor:"no-drop"},"cursor-grab":{cursor:"grab"},"cursor-grabbing":{cursor:"grabbing"}},ks={"transition-none":{transition:"none"},"transition-all":{transition:"all 150ms cubic-bezier(0.4, 0, 0.2, 1)"},transition:{transition:"color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 150ms cubic-bezier(0.4, 0, 0.2, 1), fill 150ms cubic-bezier(0.4, 0, 0.2, 1), stroke 150ms cubic-bezier(0.4, 0, 0.2, 1)"},"transition-colors":{transition:"color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 150ms cubic-bezier(0.4, 0, 0.2, 1), fill 150ms cubic-bezier(0.4, 0, 0.2, 1), stroke 150ms cubic-bezier(0.4, 0, 0.2, 1)"},"transition-opacity":{transition:"opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)"},"transition-shadow":{transition:"box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1)"},"transition-transform":{transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1)"},"duration-75":{transitionDuration:"75ms"},"duration-100":{transitionDuration:"100ms"},"duration-150":{transitionDuration:"150ms"},"duration-200":{transitionDuration:"200ms"},"duration-300":{transitionDuration:"300ms"},"duration-500":{transitionDuration:"500ms"},"duration-700":{transitionDuration:"700ms"},"duration-1000":{transitionDuration:"1000ms"}};function dt(e){if(hs[e])return hs[e];if(fs[e])return fs[e];if(gs[e])return gs[e];if(bs[e])return bs[e];if(ys[e])return ys[e];if(xs[e])return xs[e];if(vs[e])return vs[e];if(ws[e])return ws[e];if(Cs[e])return Cs[e];if($s[e])return $s[e];if(Ss[e])return Ss[e];if(Ns[e])return Ns[e];if(ks[e])return ks[e];if(Ts[e])return Ts[e];for(const[o,s]of Object.entries(Qn))if(e.startsWith(`${o}-`)){const r=e.slice(o.length+1);if(de[r])return s(r)}return e==="m-auto"?{margin:"auto"}:e==="mt-auto"?{marginTop:"auto"}:e==="mr-auto"?{marginRight:"auto"}:e==="mb-auto"?{marginBottom:"auto"}:e==="ml-auto"?{marginLeft:"auto"}:e==="mx-auto"?{marginLeft:"auto",marginRight:"auto"}:e==="my-auto"?{marginTop:"auto",marginBottom:"auto"}:null}function el(e){const o=e.split(" ").filter(Boolean),s={};for(const r of o){const a=dt(r);a&&Object.assign(s,a)}return s}function js(e){const o=e.split(" ").filter(Boolean),s=[],r=[],a={};for(const n of o){const i=dt(n);i?(s.push(n),Object.assign(a,i)):r.push(n)}return{utilities:s,others:r,styles:a}}const kt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},eo=["hover","focus","active","disabled","focus-within","focus-visible"];function to(e){const o=e.split(":");if(o.length===1)return{utility:o[0]};let s,r,a;if(o.length===2){const[n,i]=o;n in kt?s=n:eo.includes(n)&&(r=n),a=i}else if(o.length===3){const[n,i,c]=o;n in kt&&(s=n),eo.includes(i)&&(r=i),a=c}else a=o[o.length-1];return{breakpoint:s,state:r,utility:a}}function Ls(e,o,s){const r=Object.entries(s).map(([a,n])=>`${a.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${n};`).join(` `);return` @media (min-width: ${kt[e]}) { ${o} { ${r} } }`}function oo(e,o,s){const r=Object.entries(s).map(([n,i])=>`${n.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${i} !important;`).join(` `);return` ${o}:${e==="focus-within"?"focus-within":e==="focus-visible"?"focus-visible":e} { ${r} }`}function Es(e){const o=[],s=new Map,r=new Map,a=new Map;for(const n of e){const{breakpoint:i,state:c,utility:d}=to(n);if(!i&&!c)o.push(d);else if(i&&!c)s.has(i)||s.set(i,[]),s.get(i).push(d);else if(!i&&c)r.has(c)||r.set(c,[]),r.get(c).push(d);else if(i&&c){const u=`${i}:${c}`;a.has(u)||a.set(u,[]),a.get(u).push(d)}}return{base:o,responsive:s,states:r,responsiveStates:a}}let tl=0;function L(e){const{className:o="",style:s={},componentClasses:r="",componentId:a}=e,n=l.useRef(null),i=l.useRef(`brutal-${a||`util-${tl++}`}`),c=l.useMemo(()=>{if(!o)return{className:N(r),style:s};const d=o.split(" ").filter(Boolean),u=[],m=[],h={};for(const v of d){const{utility:b}=to(v),y=dt(b);y?(u.push(v),v===b&&Object.assign(h,y)):m.push(v)}const p=Es(u);let _="";const g=i.current;for(const[v,b]of p.responsive){const y={};for(const x of b){const $=dt(x);$&&Object.assign(y,$)}Object.keys(y).length>0&&(_+=Ls(v,`.${g}`,y))}for(const[v,b]of p.states){const y={},x=[];for(const $ of b){const w=dt($);w&&(w.transform&&typeof w.transform=="string"?x.push(w.transform):Object.assign(y,w))}x.length>0&&(y.transform=x.join(" ")),Object.keys(y).length>0&&(_+=oo(v,`.${g}`,y))}for(const[v,b]of p.responsiveStates){const[y,x]=v.split(":"),$={},w=[];for(const E of b){const T=dt(E);T&&(T.transform&&typeof T.transform=="string"?w.push(T.transform):Object.assign($,T))}if(w.length>0&&($.transform=w.join(" ")),Object.keys($).length>0){const E=oo(x,`.${g}`,$),T=kt[y];_+=` @media (min-width: ${T}) { ${E.trim()} }`}}return{className:N(r,_?g:"",...m),style:Object.keys(h).length>0?{...h,...s}:s,generatedCSS:_}},[o,s,r]);return l.useEffect(()=>{if(c.generatedCSS&&typeof document<"u")return n.current||(n.current=document.createElement("style"),n.current.setAttribute("data-brutal-utilities",i.current),document.head.appendChild(n.current)),n.current.textContent=c.generatedCSS,process.env.NODE_ENV==="development"&&console.log("Generated CSS for",i.current,`: `,c.generatedCSS),()=>{n.current&&n.current.parentNode&&(n.current.parentNode.removeChild(n.current),n.current=null)}},[c.generatedCSS]),{className:c.className,style:c.style}}function ol(e,o,s){return L({className:e,style:o,componentClasses:s})}function As(e){const{className:o="",style:s={},useUtilityCSS:r=!1,componentClasses:a=""}=e;return l.useMemo(()=>{const{utilities:n,others:i,styles:c}=js(o);return r?{className:N(a,...n,...i),style:s}:{className:N(a,...i),style:Object.keys(c).length>0?{...c,...s}:s}},[o,s,r,a])}function Is(e,o,s){return L({className:e,style:o,componentClasses:s})}function sl(e,o){return As({className:e,useUtilityCSS:!0,componentClasses:o})}const Bs=l.forwardRef(({as:e="div",className:o,style:s,children:r,...a},n)=>{const{className:i,style:c}=L({className:o,style:s});return l.createElement(e,{...a,ref:n,className:i,style:c},r)});Bs.displayName="Box";var so={exports:{}},jt={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ds;function rl(){if(Ds)return jt;Ds=1;var e=l,o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function i(c,d,u){var m,h={},p=null,_=null;u!==void 0&&(p=""+u),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(_=d.ref);for(m in d)r.call(d,m)&&!n.hasOwnProperty(m)&&(h[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:o,type:c,key:p,ref:_,props:h,_owner:a.current}}return jt.Fragment=s,jt.jsx=i,jt.jsxs=i,jt}var Lt={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ps;function al(){return Ps||(Ps=1,process.env.NODE_ENV!=="production"&&function(){var e=l,o=Symbol.for("react.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function b(f){if(f===null||typeof f!="object")return null;var F=g&&f[g]||f[v];return typeof F=="function"?F:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(f){{for(var F=arguments.length,G=new Array(F>1?F-1:0),R=1;R<F;R++)G[R-1]=arguments[R];$("error",f,G)}}function $(f,F,G){{var R=y.ReactDebugCurrentFrame,te=R.getStackAddendum();te!==""&&(F+="%s",G=G.concat([te]));var ae=G.map(function(J){return String(J)});ae.unshift("Warning: "+F),Function.prototype.apply.call(console[f],console,ae)}}var w=!1,E=!1,T=!1,C=!1,k=!1,j;j=Symbol.for("react.module.reference");function D(f){return!!(typeof f=="string"||typeof f=="function"||f===r||f===n||k||f===a||f===u||f===m||C||f===_||w||E||T||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===h||f.$$typeof===i||f.$$typeof===c||f.$$typeof===d||f.$$typeof===j||f.getModuleId!==void 0))}function W(f,F,G){var R=f.displayName;if(R)return R;var te=F.displayName||F.name||"";return te!==""?G+"("+te+")":G}function P(f){return f.displayName||"Context"}function M(f){if(f==null)return null;if(typeof f.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case r:return"Fragment";case s:return"Portal";case n:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case m:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case c:var F=f;return P(F)+".Consumer";case i:var G=f;return P(G._context)+".Provider";case d:return W(f,f.render,"ForwardRef");case h:var R=f.displayName||null;return R!==null?R:M(f.type)||"Memo";case p:{var te=f,ae=te._payload,J=te._init;try{return M(J(ae))}catch{return null}}}return null}var I=Object.assign,B=0,z,A,H,Y,ee,q,O;function V(){}V.__reactDisabledLog=!0;function U(){{if(B===0){z=console.log,A=console.info,H=console.warn,Y=console.error,ee=console.group,q=console.groupCollapsed,O=console.groupEnd;var f={configurable:!0,enumerable:!0,value:V,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}B++}}function se(){{if(B--,B===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},f,{value:z}),info:I({},f,{value:A}),warn:I({},f,{value:H}),error:I({},f,{value:Y}),group:I({},f,{value:ee}),groupCollapsed:I({},f,{value:q}),groupEnd:I({},f,{value:O})})}B<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=y.ReactCurrentDispatcher,ze;function re(f,F,G){{if(ze===void 0)try{throw Error()}catch(te){var R=te.stack.trim().match(/\n( *(at )?)/);ze=R&&R[1]||""}return` `+ze+f}}var ne=!1,ce;{var Oe=typeof WeakMap=="function"?WeakMap:Map;ce=new Oe}function Ie(f,F){if(!f||ne)return"";{var G=ce.get(f);if(G!==void 0)return G}var R;ne=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=fe.current,fe.current=null,U();try{if(F){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Be){R=Be}Reflect.construct(f,[],J)}else{try{J.call()}catch(Be){R=Be}f.call(J.prototype)}}else{try{throw Error()}catch(Be){R=Be}f()}}catch(Be){if(Be&&R&&typeof Be.stack=="string"){for(var X=Be.stack.split(` `),je=R.stack.split(` `),_e=X.length-1,pe=je.length-1;_e>=1&&pe>=0&&X[_e]!==je[pe];)pe--;for(;_e>=1&&pe>=0;_e--,pe--)if(X[_e]!==je[pe]){if(_e!==1||pe!==1)do if(_e--,pe--,pe<0||X[_e]!==je[pe]){var Ue=` `+X[_e].replace(" at new "," at ");return f.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",f.displayName)),typeof f=="function"&&ce.set(f,Ue),Ue}while(_e>=1&&pe>=0);break}}}finally{ne=!1,fe.current=ae,se(),Error.prepareStackTrace=te}var Tt=f?f.displayName||f.name:"",gt=Tt?re(Tt):"";return typeof f=="function"&&ce.set(f,gt),gt}function Wt(f,F,G){return Ie(f,!1)}function ft(f){var F=f.prototype;return!!(F&&F.isReactComponent)}function Zt(f,F,G){if(f==null)return"";if(typeof f=="function")return Ie(f,ft(f));if(typeof f=="string")return re(f);switch(f){case u:return re("Suspense");case m:return re("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case d:return Wt(f.render);case h:return Zt(f.type,F,G);case p:{var R=f,te=R._payload,ae=R._init;try{return Zt(ae(te),F,G)}catch{}}}return""}var zt=Object.prototype.hasOwnProperty,Hn={},Wn=y.ReactDebugCurrentFrame;function Qt(f){if(f){var F=f._owner,G=Zt(f.type,f._source,F?F.type:null);Wn.setExtraStackFrame(G)}else Wn.setExtraStackFrame(null)}function Vl(f,F,G,R,te){{var ae=Function.call.bind(zt);for(var J in f)if(ae(f,J)){var X=void 0;try{if(typeof f[J]!="function"){var je=Error((R||"React class")+": "+G+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}X=f[J](F,J,R,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){X=_e}X&&!(X instanceof Error)&&(Qt(te),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",R||"React class",G,J,typeof X),Qt(null)),X instanceof Error&&!(X.message in Hn)&&(Hn[X.message]=!0,Qt(te),x("Failed %s type: %s",G,X.message),Qt(null))}}}var Rl=Array.isArray;function cs(f){return Rl(f)}function Yl(f){{var F=typeof Symbol=="function"&&Symbol.toStringTag,G=F&&f[Symbol.toStringTag]||f.constructor.name||"Object";return G}}function Xl(f){try{return zn(f),!1}catch{return!0}}function zn(f){return""+f}function On(f){if(Xl(f))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yl(f)),zn(f)}var Gn=y.ReactCurrentOwner,Ul={key:!0,ref:!0,__self:!0,__source:!0},qn,Vn;function Jl(f){if(zt.call(f,"ref")){var F=Object.getOwnPropertyDescriptor(f,"ref").get;if(F&&F.isReactWarning)return!1}return f.ref!==void 0}function Kl(f){if(zt.call(f,"key")){var F=Object.getOwnPropertyDescriptor(f,"key").get;if(F&&F.isReactWarning)return!1}return f.key!==void 0}function Zl(f,F){typeof f.ref=="string"&&Gn.current}function Ql(f,F){{var G=function(){qn||(qn=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",F))};G.isReactWarning=!0,Object.defineProperty(f,"key",{get:G,configurable:!0})}}function ei(f,F){{var G=function(){Vn||(Vn=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",F))};G.isReactWarning=!0,Object.defineProperty(f,"ref",{get:G,configurable:!0})}}var ti=function(f,F,G,R,te,ae,J){var X={$$typeof:o,type:f,key:F,ref:G,props:J,_owner:ae};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function oi(f,F,G,R,te){{var ae,J={},X=null,je=null;G!==void 0&&(On(G),X=""+G),Kl(F)&&(On(F.key),X=""+F.key),Jl(F)&&(je=F.ref,Zl(F,te));for(ae in F)zt.call(F,ae)&&!Ul.hasOwnProperty(ae)&&(J[ae]=F[ae]);if(f&&f.defaultProps){var _e=f.defaultProps;for(ae in _e)J[ae]===void 0&&(J[ae]=_e[ae])}if(X||je){var pe=typeof f=="function"?f.displayName||f.name||"Unknown":f;X&&Ql(J,pe),je&&ei(J,pe)}return ti(f,X,je,te,R,Gn.current,J)}}var ds=y.ReactCurrentOwner,Rn=y.ReactDebugCurrentFrame;function Nt(f){if(f){var F=f._owner,G=Zt(f.type,f._source,F?F.type:null);Rn.setExtraStackFrame(G)}else Rn.setExtraStackFrame(null)}var us;us=!1;function _s(f){return typeof f=="object"&&f!==null&&f.$$typeof===o}function Yn(){{if(ds.current){var f=M(ds.current.type);if(f)return` Check the render method of \``+f+"`."}return""}}function si(f){return""}var Xn={};function ri(f){{var F=Yn();if(!F){var G=typeof f=="string"?f:f.displayName||f.name;G&&(F=` Check the top-level render call using <`+G+">.")}return F}}function Un(f,F){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var G=ri(F);if(Xn[G])return;Xn[G]=!0;var R="";f&&f._owner&&f._owner!==ds.current&&(R=" It was passed a child from "+M(f._owner.type)+"."),Nt(f),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,R),Nt(null)}}function Jn(f,F){{if(typeof f!="object")return;if(cs(f))for(var G=0;G<f.length;G++){var R=f[G];_s(R)&&Un(R,F)}else if(_s(f))f._store&&(f._store.validated=!0);else if(f){var te=b(f);if(typeof te=="function"&&te!==f.entries)for(var ae=te.call(f),J;!(J=ae.next()).done;)_s(J.value)&&Un(J.value,F)}}}function ai(f){{var F=f.type;if(F==null||typeof F=="string")return;var G;if(typeof F=="function")G=F.propTypes;else if(typeof F=="object"&&(F.$$typeof===d||F.$$typeof===h))G=F.propTypes;else return;if(G){var R=M(F);Vl(G,f.props,"prop",R,f)}else if(F.PropTypes!==void 0&&!us){us=!0;var te=M(F);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof F.getDefaultProps=="function"&&!F.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ni(f){{for(var F=Object.keys(f.props),G=0;G<F.length;G++){var R=F[G];if(R!=="children"&&R!=="key"){Nt(f),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R),Nt(null);break}}f.ref!==null&&(Nt(f),x("Invalid attribute `ref` supplied to `React.Fragment`."),Nt(null))}}var Kn={};function Zn(f,F,G,R,te,ae){{var J=D(f);if(!J){var X="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=si();je?X+=je:X+=Yn();var _e;f===null?_e="null":cs(f)?_e="array":f!==void 0&&f.$$typeof===o?(_e="<"+(M(f.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof f,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,X)}var pe=oi(f,F,G,te,ae);if(pe==null)return pe;if(J){var Ue=F.children;if(Ue!==void 0)if(R)if(cs(Ue)){for(var Tt=0;Tt<Ue.length;Tt++)Jn(Ue[Tt],f);Object.freeze&&Object.freeze(Ue)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Jn(Ue,f)}if(zt.call(F,"key")){var gt=M(f),Be=Object.keys(F).filter(function(_i){return _i!=="key"}),ms=Be.length>0?"{key: someKey, "+Be.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[gt+ms]){var ui=Be.length>0?"{"+Be.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,ms,gt,ui,gt),Kn[gt+ms]=!0}}return f===r?ni(pe):ai(pe),pe}}function li(f,F,G){return Zn(f,F,G,!0)}function ii(f,F,G){return Zn(f,F,G,!1)}var ci=ii,di=li;Lt.Fragment=r,Lt.jsx=ci,Lt.jsxs=di}()),Lt}process.env.NODE_ENV==="production"?so.exports=rl():so.exports=al();var t=so.exports;const Ge={button:"Button-module__button___M2FCc",sm:"Button-module__sm___5hfKe",md:"Button-module__md___JO9f-",lg:"Button-module__lg___IQEqM",xl:"Button-module__xl___I8TPw",default:"Button-module__default___AB6Eh",disabled:"Button-module__disabled___tpHwD",destructive:"Button-module__destructive___8LGbo",outline:"Button-module__outline___zjzTL",ghost:"Button-module__ghost___pMmuQ",brutal:"Button-module__brutal___kaDHQ",primary:"Button-module__primary___D3CEZ",secondary:"Button-module__secondary___hONSp",danger:"Button-module__danger___A9ok9",withShadow:"Button-module__withShadow___Ke14w",fullWidth:"Button-module__fullWidth___sDBss",loading:"Button-module__loading___oMywk",loader:"Button-module__loader___wkV5u",spin:"Button-module__spin___YO5-z",icon:"Button-module__icon___q2e1E",content:"Button-module__content___BJgs2",glitch:"Button-module__glitch___hSkLD",brutalGlitch1:"Button-module__brutal-glitch-1___B1O-7",brutalGlitch2:"Button-module__brutal-glitch-2___DwFCD"},Ms=l.forwardRef(({children:e,className:o,variant:s="default",size:r="md",fullWidth:a=!1,loading:n=!1,leftIcon:i,rightIcon:c,brutalistShadow:d=!0,glitch:u=!1,disabled:m,style:h,...p},_)=>{const{className:g,style:v}=Is(o,h,N(Ge.button,Ge[s],Ge[r],{[Ge.fullWidth]:a,[Ge.loading]:n,[Ge.withShadow]:d,[Ge.glitch]:u,[Ge.disabled]:m||n}));return t.jsxs("button",{ref:_,className:g,style:v,disabled:m||n,"data-text":u?e:void 0,...p,children:[n&&t.jsx("span",{className:Ge.loader}),i&&t.jsx("span",{className:Ge.icon,children:i}),t.jsx("span",{className:Ge.content,children:e}),c&&t.jsx("span",{className:Ge.icon,children:c})]})});Ms.displayName="Button";const he={input:"Input-module__input___bJOuX",sm:"Input-module__sm___LrnGW",md:"Input-module__md___IgG-s",lg:"Input-module__lg___nrpmJ",withLeftIcon:"Input-module__withLeftIcon___T4JX2",withRightIcon:"Input-module__withRightIcon___mtdvp",default:"Input-module__default___sk5nc",error:"Input-module__error___cuwOB",success:"Input-module__success___jDBBC",withShadow:"Input-module__withShadow___-J-G9",readOnly:"Input-module__readOnly___Pz6bc",disabled:"Input-module__disabled___GtcS3",inputWrapper:"Input-module__inputWrapper___jgDE7",fullWidth:"Input-module__fullWidth___CBcxB",icon:"Input-module__icon___oEfEz",leftIcon:"Input-module__leftIcon___ytDJc",rightIcon:"Input-module__rightIcon___Ace8v"},Fs=l.forwardRef(({className:e,style:o,variant:s="default",size:r="md",leftIcon:a,rightIcon:n,fullWidth:i=!1,brutalistShadow:c=!0,disabled:d,readOnly:u,type:m="text",...h},p)=>{const{className:_,style:g}=L({className:e,style:o,componentClasses:N(he.input,he[s],he[r],{[he.withLeftIcon]:a,[he.withRightIcon]:n,[he.disabled]:d,[he.readOnly]:u,[he.withShadow]:c&&!d&&!u})}),{className:v,style:b}=L({className:e,style:o,componentClasses:N(he.inputWrapper,he[s],he[r],{[he.fullWidth]:i,[he.disabled]:d,[he.readOnly]:u,[he.withShadow]:c&&!d&&!u})}),y=t.jsx("input",{ref:p,type:m,className:_,style:g,disabled:d,readOnly:u,...h});return a||n?t.jsxs("div",{className:v,style:b,children:[a&&t.jsx("span",{className:N(he.icon,he.leftIcon),children:a}),y,n&&t.jsx("span",{className:N(he.icon,he.rightIcon),children:n})]}):y});Fs.displayName="Input";const Je={container:"InputOTP-module__container___auLUu",sm:"InputOTP-module__sm___DS5s2",md:"InputOTP-module__md___hhGcD",lg:"InputOTP-module__lg___Sxa8s",input:"InputOTP-module__input___yK7LR",default:"InputOTP-module__default___ASLDz",error:"InputOTP-module__error___9c1bD",success:"InputOTP-module__success___SrNaU",withShadow:"InputOTP-module__withShadow___AkXLZ",filled:"InputOTP-module__filled___BXbkP",disabled:"InputOTP-module__disabled___u1z90"},Hs=l.forwardRef(({length:e=6,value:o="",onChange:s,onComplete:r,variant:a="default",size:n="md",disabled:i=!1,autoFocus:c=!1,type:d="text",placeholder:u="•",className:m,style:h,brutalistShadow:p=!0},_)=>{const[g,v]=l.useState(()=>{const C=o.split("").slice(0,e);return[...C,...Array(e-C.length).fill("")]}),b=l.useRef([]),{className:y,style:x}=L({className:m,style:h,componentClasses:N(Je.container,Je[a],Je[n],{[Je.brutalistShadow]:p,[Je.disabled]:i})});l.useEffect(()=>{const C=o.split("").slice(0,e);v([...C,...Array(e-C.length).fill("")])},[o,e]);const $=C=>{var k,j;b.current[C]&&((k=b.current[C])==null||k.focus(),(j=b.current[C])==null||j.select())},w=(C,k)=>{if(d==="number"&&k&&!/^\d+$/.test(k))return;const j=[...g];j[C]=k.slice(-1),v(j);const D=j.join("");s==null||s(D),k&&C<e-1&&$(C+1),D.length===e&&!j.includes("")&&(r==null||r(D))},E=(C,k)=>{k.key==="Backspace"&&!g[C]&&C>0||k.key==="ArrowLeft"&&C>0?(k.preventDefault(),$(C-1)):k.key==="ArrowRight"&&C<e-1&&(k.preventDefault(),$(C+1))},T=C=>{C.preventDefault();const k=C.clipboardData.getData("text/plain").slice(0,e);if(d==="number"&&!/^\d+$/.test(k))return;const j=[...g];k.split("").forEach((P,M)=>{M<e&&(j[M]=P)}),v(j);const D=j.join("");s==null||s(D);const W=j.map((P,M)=>P!==""?M:-1).filter(P=>P!==-1).pop()??-1;$(Math.min(W+1,e-1)),D.length===e&&!j.includes("")&&(r==null||r(D))};return t.jsx("div",{ref:_,className:y,style:x,children:Array.from({length:e}).map((C,k)=>t.jsx("input",{ref:j=>b.current[k]=j,type:"text",inputMode:d==="number"?"numeric":"text",pattern:d==="number"?"\\d*":void 0,maxLength:1,value:g[k],onChange:j=>w(k,j.target.value),onKeyDown:j=>E(k,j),onPaste:k===0?T:void 0,onFocus:j=>j.target.select(),placeholder:u,disabled:i,autoFocus:c&&k===0,className:N(Je.input,Je[a],Je[n],{[Je.filled]:g[k],[Je.disabled]:i,[Je.withShadow]:p&&!i})},k))})});Hs.displayName="InputOTP";const Le={wrapper:"Textarea-module__wrapper___NFPqf",fullWidth:"Textarea-module__fullWidth___5zEfB",textarea:"Textarea-module__textarea___S3btv",autoResize:"Textarea-module__autoResize___oJ5i0",withShadow:"Textarea-module__withShadow___zWHBp",sm:"Textarea-module__sm___iX8rI",md:"Textarea-module__md___uUOOl",lg:"Textarea-module__lg___-WRY3",default:"Textarea-module__default___-lWJe",error:"Textarea-module__error___NejfB",success:"Textarea-module__success___7MBJ7",disabled:"Textarea-module__disabled___QqCLR",readOnly:"Textarea-module__readOnly___Mq8LE",overLimit:"Textarea-module__overLimit___S3Dnf",characterCount:"Textarea-module__characterCount___3gZnj"},Ws=l.forwardRef(({className:e,style:o,variant:s="default",size:r="md",autoResize:a=!1,showCharacterCount:n=!1,maxCharacters:i,minRows:c=3,maxRows:d=10,fullWidth:u=!1,brutalistShadow:m=!0,width:h,minWidth:p,maxWidth:_,disabled:g,readOnly:v,value:b,defaultValue:y,onChange:x,...$},w)=>{const[E,T]=l.useState(y||""),C=l.useRef(null),k=b!==void 0,j=k?b:E,D=String(j).length,W=l.useCallback(q=>{C.current=q,w&&(typeof w=="function"?w(q):w.current=q)},[w]),P=l.useCallback(()=>{const q=C.current;if(!q||!a)return;q.style.height="auto";const O=q.scrollHeight,V=`${c*1.5}rem`,U=`${d*1.5}rem`;O<=parseInt(V)*16?(q.style.height=V,q.style.overflowY="hidden"):O>=parseInt(U)*16?(q.style.height=U,q.style.overflowY="auto"):(q.style.height=`${O}px`,q.style.overflowY="hidden")},[a,c,d]);l.useEffect(()=>{P()},[j,P]),l.useEffect(()=>{if(!a)return;const q=()=>P();return window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[a,P]);const M=q=>{const O=q.target.value;i&&O.length>i||(k||T(O),x==null||x(q),a&&setTimeout(()=>P(),0))},I=i?D>i:!1,B=q=>{if(q!==void 0)return typeof q=="number"?`${q}px`:q},z={width:u?void 0:B(h),minWidth:B(p),maxWidth:B(_)},{className:A,style:H}=L({className:"",style:{...z,...o},componentClasses:N(Le.wrapper,{[Le.fullWidth]:u})}),{className:Y,style:ee}=L({className:e,style:o,componentClasses:N(Le.textarea,Le[s],Le[r],{[Le.disabled]:g,[Le.readOnly]:v,[Le.withShadow]:m&&!g&&!v,[Le.autoResize]:a,[Le.overLimit]:I})});return t.jsxs("div",{className:A,style:H,children:[t.jsx("textarea",{ref:W,className:Y,style:ee,disabled:g,readOnly:v,value:j,onChange:M,rows:a?void 0:c,...$}),n&&t.jsx("div",{className:N(Le.characterCount,{[Le.error]:I||s==="error",[Le.success]:s==="success"}),children:t.jsxs("span",{className:Le.count,children:[D,i&&` / ${i}`]})})]})});Ws.displayName="Textarea";const ie={selectWrapper:"CustomSelect-module__selectWrapper___G7yiy",fullWidth:"CustomSelect-module__fullWidth___lq24Y",isOpen:"CustomSelect-module__isOpen___r5CGY",trigger:"CustomSelect-module__trigger___rO-gN",sm:"CustomSelect-module__sm___dLete",md:"CustomSelect-module__md___i9P8-",lg:"CustomSelect-module__lg___M2YAC",default:"CustomSelect-module__default___c9XhZ",error:"CustomSelect-module__error___0qtSD",success:"CustomSelect-module__success___sKCxd",withShadow:"CustomSelect-module__withShadow___qERE3",value:"CustomSelect-module__value___zoSqF",placeholder:"CustomSelect-module__placeholder___KWVQA",arrow:"CustomSelect-module__arrow___ChpqD",arrowOpen:"CustomSelect-module__arrowOpen___gVV-n",disabled:"CustomSelect-module__disabled___aYSLS",dropdown:"CustomSelect-module__dropdown___5VUo1",brutalistDropdown:"CustomSelect-module__brutalistDropdown___-B5pS",optionGroup:"CustomSelect-module__optionGroup___tkyFq",groupLabel:"CustomSelect-module__groupLabel___OT-Or",option:"CustomSelect-module__option___IVmkL",focused:"CustomSelect-module__focused___kW860",selected:"CustomSelect-module__selected___V4Rvt"};function zs(e){return"options"in e}const ro=l.forwardRef(({className:e,style:o,variant:s="default",size:r="md",options:a=[],placeholder:n="Select an option...",fullWidth:i=!1,brutalistShadow:c=!0,disabled:d=!1,value:u,defaultValue:m,onChange:h,onBlur:p,onFocus:_,name:g,id:v},b)=>{const[y,x]=l.useState(!1),[$,w]=l.useState(u||m||""),[E,T]=l.useState(-1),C=l.useRef(null),k=l.useRef(null);l.useImperativeHandle(b,()=>C.current,[]);const j=[];a.forEach(B=>{zs(B)?j.push(...B.options.filter(z=>!z.disabled)):B.disabled||j.push(B)}),l.useEffect(()=>{u!==void 0&&w(u)},[u]),l.useEffect(()=>{const B=z=>{C.current&&!C.current.contains(z.target)&&(x(!1),T(-1))};if(y)return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[y]);const D=()=>{d||(x(!y),T(-1),y?p==null||p():_==null||_())},W=B=>{var z;w(B),x(!1),T(-1),h==null||h(B),p==null||p(),(z=k.current)==null||z.focus()},P=B=>{var z;if(!d)switch(B.key){case"Enter":case" ":B.preventDefault(),y&&E>=0?W(j[E].value):x(!y);break;case"Escape":x(!1),T(-1),(z=k.current)==null||z.focus();break;case"ArrowDown":B.preventDefault(),y?T(A=>A<j.length-1?A+1:A):(x(!0),T(0));break;case"ArrowUp":B.preventDefault(),y&&T(A=>A>0?A-1:A);break}},M=j.find(B=>B.value===$),I=(M==null?void 0:M.label)||n;return t.jsxs("div",{ref:C,className:N(ie.selectWrapper,ie[s],ie[r],{[ie.fullWidth]:i,[ie.disabled]:d,[ie.withShadow]:c&&!d,[ie.isOpen]:y},e),style:o,children:[t.jsx("input",{type:"hidden",name:g,value:$}),t.jsxs("button",{ref:k,type:"button",className:ie.trigger,onClick:D,onKeyDown:P,disabled:d,"aria-haspopup":"listbox","aria-expanded":y,"aria-labelledby":v,id:v,children:[t.jsx("span",{className:N(ie.value,{[ie.placeholder]:!M}),children:I}),t.jsx("div",{className:ie.arrow,children:t.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:N({[ie.arrowOpen]:y}),children:t.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"miter"})})})]}),y&&t.jsx("div",{className:ie.dropdown,role:"listbox",children:a.map((B,z)=>{if(zs(B))return t.jsxs("div",{className:ie.optionGroup,children:[t.jsx("div",{className:ie.groupLabel,children:B.label}),B.options.map(A=>{const H=j.findIndex(Y=>Y.value===A.value);return t.jsx("button",{type:"button",className:N(ie.option,{[ie.selected]:A.value===$,[ie.focused]:H===E,[ie.disabled]:A.disabled}),onClick:()=>!A.disabled&&W(A.value),disabled:A.disabled,role:"option","aria-selected":A.value===$,children:A.label},A.value)})]},`group-${z}`);{const A=j.findIndex(H=>H.value===B.value);return t.jsx("button",{type:"button",className:N(ie.option,{[ie.selected]:B.value===$,[ie.focused]:A===E,[ie.disabled]:B.disabled}),onClick:()=>!B.disabled&&W(B.value),disabled:B.disabled,role:"option","aria-selected":B.value===$,children:B.label},B.value)}})})]})});ro.displayName="CustomSelect";const Ee={select:"Select-module__select___rjxCm",sm:"Select-module__sm___XZiVV",md:"Select-module__md___iEXWx",lg:"Select-module__lg___w5uPO",fullWidth:"Select-module__fullWidth___vSOpj",default:"Select-module__default___Kg5qx",error:"Select-module__error___9S2xc",success:"Select-module__success___DIzWT",withShadow:"Select-module__withShadow___nI0Cs",disabled:"Select-module__disabled___KBkat",hasPlaceholder:"Select-module__hasPlaceholder___NiZqc",selectWrapper:"Select-module__selectWrapper___sUZzj",arrow:"Select-module__arrow___vuJL-"};function nl(e){return"options"in e}const Os=l.forwardRef(({className:e,style:o,variant:s="default",size:r="md",options:a=[],placeholder:n,fullWidth:i=!1,brutalistShadow:c=!0,customArrow:d=!0,useCustomDropdown:u=!0,onValueChange:m,disabled:h,children:p,..._},g)=>{const{className:v,style:b}=L({className:e,style:o,componentClasses:N(Ee.select,Ee[s],Ee[r],{[Ee.disabled]:h,[Ee.withShadow]:c&&!h,[Ee.fullWidth]:i,[Ee.hasPlaceholder]:n&&!_.value&&!_.defaultValue})}),{className:y,style:x}=L({className:e,style:o,componentClasses:N(Ee.selectWrapper,Ee[s],Ee[r],{[Ee.fullWidth]:i,[Ee.disabled]:h,[Ee.withShadow]:c&&!h})});if(u){let w=a;return a.length===0&&p&&(w=[],l.Children.forEach(p,E=>{if(l.isValidElement(E)){if(E.type==="option"){const T=E.props.value||"",C=E.props.children||"";T&&C&&w.push({value:T,label:C,disabled:E.props.disabled})}else if(E.type==="optgroup"){const T=E.props.label||"",C=[];l.Children.forEach(E.props.children,k=>{if(l.isValidElement(k)&&k.type==="option"){const j=k.props,D=j.value||"",W=j.children||"";D&&W&&C.push({value:String(D),label:String(W),disabled:j.disabled})}}),C.length>0&&w.push({label:T,options:C})}}})),t.jsx(ro,{variant:s,size:r,options:w,placeholder:n,fullWidth:i,brutalistShadow:c,disabled:h,value:_.value,defaultValue:_.defaultValue,onChange:m||(E=>{var C;const T={target:{value:E},currentTarget:{value:E}};(C=_.onChange)==null||C.call(_,T)}),onBlur:_.onBlur?()=>{var E;return(E=_.onBlur)==null?void 0:E.call(_,{})}:void 0,onFocus:_.onFocus?()=>{var E;return(E=_.onFocus)==null?void 0:E.call(_,{})}:void 0,className:e,style:o,name:_.name,id:_.id})}const $=t.jsxs("select",{ref:g,className:v,style:b,disabled:h,..._,children:[n&&t.jsx("option",{value:"",disabled:!0,hidden:!0,children:n}),p||a.map((w,E)=>nl(w)?t.jsx("optgroup",{label:w.label,children:w.options.map(T=>t.jsx("option",{value:T.value,disabled:T.disabled,children:T.label},T.value))},`group-${E}`):t.jsx("option",{value:w.value,disabled:w.disabled,children:w.label},w.value))]});return d?t.jsxs("div",{className:y,style:x,children:[$,t.jsx("div",{className:Ee.arrow,children:t.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"miter"})})})]}):$});Os.displayName="Select";const qe={container:"Checkbox-module__container___fIZTC",checkboxWrapper:"Checkbox-module__checkboxWrapper___jj-29",input:"Checkbox-module__input___6JHLe",checkbox:"Checkbox-module__checkbox___rvy-0",withShadow:"Checkbox-module__withShadow___HXuvn",sm:"Checkbox-module__sm___MYmhO",md:"Checkbox-module__md___Na2X2",lg:"Checkbox-module__lg___gl5iM",checkmark:"Checkbox-module__checkmark___YVrOc",indeterminateLine:"Checkbox-module__indeterminateLine___IwjGq",label:"Checkbox-module__label___rs4Gw",indeterminate:"Checkbox-module__indeterminate___qunnW",disabled:"Checkbox-module__disabled___IAacX",error:"Checkbox-module__error___YE5ps",checkAnimation:"Checkbox-module__checkAnimation___a1vpL"},Gs=l.forwardRef(({className:e,style:o,size:s="md",label:r,indeterminate:a=!1,error:n=!1,brutalistShadow:i=!0,disabled:c,id:d,...u},m)=>{const h=l.useRef(null),p=m||h;l.useEffect(()=>{const b=typeof p=="function"?null:p.current;b&&(b.indeterminate=a)},[a,p]);const _=d||`checkbox-${Math.random().toString(36).substr(2,9)}`,{className:g,style:v}=L({className:e,style:o,componentClasses:N(qe.container,qe[s],{[qe.disabled]:c,[qe.error]:n})});return t.jsxs("div",{className:g,style:v,children:[t.jsxs("div",{className:qe.checkboxWrapper,children:[t.jsx("input",{ref:p,type:"checkbox",id:_,className:qe.input,disabled:c,"aria-invalid":n,...u}),t.jsxs("div",{className:N(qe.checkbox,{[qe.withShadow]:i,[qe.indeterminate]:a}),children:[t.jsx("svg",{className:qe.checkmark,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:t.jsx("path",{d:"M5 13L9 17L19 7",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"square",strokeLinejoin:"miter"})}),t.jsx("div",{className:qe.indeterminateLine})]})]}),r&&t.jsx("label",{htmlFor:_,className:qe.label,children:r})]})});Gs.displayName="Checkbox";const Ce={group:"Radio-module__group___M-N4Y",vertical:"Radio-module__vertical___GNUDK",horizontal:"Radio-module__horizontal___TdyFw",container:"Radio-module__container___dMX4h",radioWrapper:"Radio-module__radioWrapper___pJMCe",input:"Radio-module__input___gGZaE",radio:"Radio-module__radio___KQhKQ",withShadow:"Radio-module__withShadow___zgS1A",sm:"Radio-module__sm___II-cf",md:"Radio-module__md___fOtqn",lg:"Radio-module__lg___-PZDG",indicator:"Radio-module__indicator___rZeFG",label:"Radio-module__label___vlc5J",disabled:"Radio-module__disabled___rutBW",error:"Radio-module__error___O0HMa",selectAnimation:"Radio-module__selectAnimation___fx0LM",checked:"Radio-module__checked___hLq-A"},qs=l.createContext(void 0),ll=({name:e,value:o,defaultValue:s,onChange:r,children:a,direction:n="vertical",size:i="md",disabled:c=!1,error:d=!1,brutalistShadow:u=!0,className:m,style:h})=>{const[p,_]=l.useState(s),g=o!==void 0,v=g?o:p,b=$=>{g||_($),r==null||r($)},{className:y,style:x}=L({className:m,style:h,componentClasses:N(Ce.group,Ce[n],{[Ce.disabled]:c,[Ce.error]:d})});return t.jsx(qs.Provider,{value:{name:e,value:v,onChange:b,disabled:c,error:d,size:i,brutalistShadow:u},children:t.jsx("div",{className:y,style:x,role:"radiogroup","aria-invalid":d,children:a})})},Vs=l.forwardRef(({className:e,style:o,value:s,label:r,size:a,disabled:n,error:i,brutalistShadow:c,id:d,...u},m)=>{const h=l.useContext(qs);if(!h)throw new Error("Radio must be used within RadioGroup");const{name:p,value:_,onChange:g,disabled:v,error:b,size:y,brutalistShadow:x}=h,$=a||y||"md",w=n||v,E=i||b,T=c!==void 0?c:x,C=s===_,k=d||`radio-${p}-${s}`,j=()=>{w||g(s)},{className:D,style:W}=L({className:e,style:o,componentClasses:N(Ce.container,Ce[$],{[Ce.disabled]:w,[Ce.error]:E,[Ce.checked]:C})});return t.jsxs("div",{className:D,style:W,children:[t.jsxs("div",{className:Ce.radioWrapper,children:[t.jsx("input",{ref:m,type:"radio",id:k,name:p,value:s,checked:C,onChange:()=>j(),className:Ce.input,disabled:w,"aria-invalid":E,...u}),t.jsx("div",{className:N(Ce.radio,{[Ce.withShadow]:T}),children:t.jsx("div",{className:Ce.indicator})})]}),r&&t.jsx("label",{htmlFor:k,className:Ce.label,children:r})]})});Vs.displayName="Radio";const De={container:"Switch-module__container___sIhoN",labelLeft:"Switch-module__labelLeft___VvFus",switchWrapper:"Switch-module__switchWrapper___Q6rI1",input:"Switch-module__input___LQrcY",switch:"Switch-module__switch___A6dma",withShadow:"Switch-module__withShadow___JSkqH",sm:"Switch-module__sm___Igxr5",md:"Switch-module__md___vwdvs",lg:"Switch-module__lg___zIixR",thumb:"Switch-module__thumb___2Qe4z",checked:"Switch-module__checked___heWtA",label:"Switch-module__label___a9Cp2",disabled:"Switch-module__disabled___bjFBN",loading:"Switch-module__loading___xvn75",loadingIndicator:"Switch-module__loadingIndicator___WBmy8",loadingPulse:"Switch-module__loadingPulse___LaPXi",slideIn:"Swi