@buun_group/brutalist-ui
Version:
A brutalist-styled component library
45 lines (43 loc) • 253 kB
JavaScript
require('./brutalist-ui.css');
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),nt=require("react-dom");function Go(e){var s,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(s=0;s<a;s++)e[s]&&(o=Go(e[s]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function S(){for(var e,s,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(s=Go(e))&&(r&&(r+=" "),r+=s);return r}const ie={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)"},xl={p:e=>({padding:ie[e]}),pt:e=>({paddingTop:ie[e]}),pr:e=>({paddingRight:ie[e]}),pb:e=>({paddingBottom:ie[e]}),pl:e=>({paddingLeft:ie[e]}),px:e=>({paddingLeft:ie[e],paddingRight:ie[e]}),py:e=>({paddingTop:ie[e],paddingBottom:ie[e]}),m:e=>({margin:ie[e]}),mt:e=>({marginTop:ie[e]}),mr:e=>({marginRight:ie[e]}),mb:e=>({marginBottom:ie[e]}),ml:e=>({marginLeft:ie[e]}),mx:e=>({marginLeft:ie[e],marginRight:ie[e]}),my:e=>({marginTop:ie[e],marginBottom:ie[e]}),gap:e=>({gap:ie[e]}),"gap-x":e=>({columnGap:ie[e]}),"gap-y":e=>({rowGap:ie[e]})},jo={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"}},ko={"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"}},$o={"w-full":{width:"100%"},"w-auto":{width:"auto"},"h-full":{height:"100%"},"h-auto":{height:"auto"}},Lo={relative:{position:"relative"},absolute:{position:"absolute"},fixed:{position:"fixed"},sticky:{position:"sticky"},static:{position:"static"}},Eo={"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"}},Ro={"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"}},Ao={"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"}},Do={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"}},Io={"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)"}},Bo={"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"}},Po={"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)"}},Mo={"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)"}},Fo={"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"}},Ho={"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 pt(e){if(jo[e])return jo[e];if(ko[e])return ko[e];if($o[e])return $o[e];if(Lo[e])return Lo[e];if(Eo[e])return Eo[e];if(Ro[e])return Ro[e];if(Ao[e])return Ao[e];if(Do[e])return Do[e];if(Io[e])return Io[e];if(Bo[e])return Bo[e];if(Po[e])return Po[e];if(Mo[e])return Mo[e];if(Ho[e])return Ho[e];if(Fo[e])return Fo[e];for(const[s,o]of Object.entries(xl))if(e.startsWith(`${s}-`)){const r=e.slice(s.length+1);if(ie[r])return o(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 vl(e){const s=e.split(" ").filter(Boolean),o={};for(const r of s){const a=pt(r);a&&Object.assign(o,a)}return o}function qo(e){const s=e.split(" ").filter(Boolean),o=[],r=[],a={};for(const n of s){const c=pt(n);c?(o.push(n),Object.assign(a,c)):r.push(n)}return{utilities:o,others:r,styles:a}}const It={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},ls=["hover","focus","active","disabled","focus-within","focus-visible"];function ds(e){const s=e.split(":");if(s.length===1)return{utility:s[0]};let o,r,a;if(s.length===2){const[n,c]=s;n in It?o=n:ls.includes(n)&&(r=n),a=c}else if(s.length===3){const[n,c,i]=s;n in It&&(o=n),ls.includes(c)&&(r=c),a=i}else a=s[s.length-1];return{breakpoint:o,state:r,utility:a}}function Vo(e,s,o){const r=Object.entries(o).map(([a,n])=>`${a.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${n};`).join(`
`);return`
@media (min-width: ${It[e]}) {
${s} {
${r}
}
}`}function cs(e,s,o){const r=Object.entries(o).map(([n,c])=>`${n.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${c} !important;`).join(`
`);return`
${s}:${e==="focus-within"?"focus-within":e==="focus-visible"?"focus-visible":e} {
${r}
}`}function Yo(e){const s=[],o=new Map,r=new Map,a=new Map;for(const n of e){const{breakpoint:c,state:i,utility:d}=ds(n);if(!c&&!i)s.push(d);else if(c&&!i)o.has(c)||o.set(c,[]),o.get(c).push(d);else if(!c&&i)r.has(i)||r.set(i,[]),r.get(i).push(d);else if(c&&i){const _=`${c}:${i}`;a.has(_)||a.set(_,[]),a.get(_).push(d)}}return{base:s,responsive:o,states:r,responsiveStates:a}}let wl=0;function $(e){const{className:s="",style:o={},componentClasses:r="",componentId:a}=e,n=l.useRef(null),c=l.useRef(`brutal-${a||`util-${wl++}`}`),i=l.useMemo(()=>{if(!s)return{className:S(r),style:o};const d=s.split(" ").filter(Boolean),_=[],m=[],h={};for(const v of d){const{utility:b}=ds(v),y=pt(b);y?(_.push(v),v===b&&Object.assign(h,y)):m.push(v)}const p=Yo(_);let u="";const g=c.current;for(const[v,b]of p.responsive){const y={};for(const x of b){const N=pt(x);N&&Object.assign(y,N)}Object.keys(y).length>0&&(u+=Vo(v,`.${g}`,y))}for(const[v,b]of p.states){const y={},x=[];for(const N of b){const w=pt(N);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&&(u+=cs(v,`.${g}`,y))}for(const[v,b]of p.responsiveStates){const[y,x]=v.split(":"),N={},w=[];for(const L of b){const T=pt(L);T&&(T.transform&&typeof T.transform=="string"?w.push(T.transform):Object.assign(N,T))}if(w.length>0&&(N.transform=w.join(" ")),Object.keys(N).length>0){const L=cs(x,`.${g}`,N),T=It[y];u+=`
@media (min-width: ${T}) {
${L.trim()}
}`}}return{className:S(r,u?g:"",...m),style:Object.keys(h).length>0?{...h,...o}:o,generatedCSS:u}},[s,o,r]);return l.useEffect(()=>{if(i.generatedCSS&&typeof document<"u")return n.current||(n.current=document.createElement("style"),n.current.setAttribute("data-brutal-utilities",c.current),document.head.appendChild(n.current)),n.current.textContent=i.generatedCSS,process.env.NODE_ENV==="development"&&console.log("Generated CSS for",c.current,`:
`,i.generatedCSS),()=>{n.current&&n.current.parentNode&&(n.current.parentNode.removeChild(n.current),n.current=null)}},[i.generatedCSS]),{className:i.className,style:i.style}}function Cl(e,s,o){return $({className:e,style:s,componentClasses:o})}function Uo(e){const{className:s="",style:o={},useUtilityCSS:r=!1,componentClasses:a=""}=e;return l.useMemo(()=>{const{utilities:n,others:c,styles:i}=qo(s);return r?{className:S(a,...n,...c),style:o}:{className:S(a,...c),style:Object.keys(i).length>0?{...i,...o}:o}},[s,o,r,a])}function Xo(e,s,o){return $({className:e,style:s,componentClasses:o})}function Nl(e,s){return Uo({className:e,useUtilityCSS:!0,componentClasses:s})}const Jo=l.forwardRef(({as:e="div",className:s,style:o,children:r,...a},n)=>{const{className:c,style:i}=$({className:s,style:o});return l.createElement(e,{...a,ref:n,className:c,style:i},r)});Jo.displayName="Box";var is={exports:{}},$t={};/**
* @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 Wo;function Sl(){if(Wo)return $t;Wo=1;var e=l,s=Symbol.for("react.element"),o=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 c(i,d,_){var m,h={},p=null,u=null;_!==void 0&&(p=""+_),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(u=d.ref);for(m in d)r.call(d,m)&&!n.hasOwnProperty(m)&&(h[m]=d[m]);if(i&&i.defaultProps)for(m in d=i.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:s,type:i,key:p,ref:u,props:h,_owner:a.current}}return $t.Fragment=o,$t.jsx=c,$t.jsxs=c,$t}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 zo;function Tl(){return zo||(zo=1,process.env.NODE_ENV!=="production"&&function(){var e=l,s=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function b(f){if(f===null||typeof f!="object")return null;var P=g&&f[g]||f[v];return typeof P=="function"?P:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(f){{for(var P=arguments.length,z=new Array(P>1?P-1:0),q=1;q<P;q++)z[q-1]=arguments[q];N("error",f,z)}}function N(f,P,z){{var q=y.ReactDebugCurrentFrame,ee=q.getStackAddendum();ee!==""&&(P+="%s",z=z.concat([ee]));var re=z.map(function(X){return String(X)});re.unshift("Warning: "+P),Function.prototype.apply.call(console[f],console,re)}}var w=!1,L=!1,T=!1,C=!1,j=!1,k;k=Symbol.for("react.module.reference");function D(f){return!!(typeof f=="string"||typeof f=="function"||f===r||f===n||j||f===a||f===_||f===m||C||f===u||w||L||T||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===h||f.$$typeof===c||f.$$typeof===i||f.$$typeof===d||f.$$typeof===k||f.getModuleId!==void 0))}function F(f,P,z){var q=f.displayName;if(q)return q;var ee=P.displayName||P.name||"";return ee!==""?z+"("+ee+")":z}function I(f){return f.displayName||"Context"}function B(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 o:return"Portal";case n:return"Profiler";case a:return"StrictMode";case _:return"Suspense";case m:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case i:var P=f;return I(P)+".Consumer";case c:var z=f;return I(z._context)+".Provider";case d:return F(f,f.render,"ForwardRef");case h:var q=f.displayName||null;return q!==null?q:B(f.type)||"Memo";case p:{var ee=f,re=ee._payload,X=ee._init;try{return B(X(re))}catch{return null}}}return null}var R=Object.assign,A=0,H,E,M,V,Z,O,W;function G(){}G.__reactDisabledLog=!0;function U(){{if(A===0){H=console.log,E=console.info,M=console.warn,V=console.error,Z=console.group,O=console.groupCollapsed,W=console.groupEnd;var f={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}A++}}function te(){{if(A--,A===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},f,{value:H}),info:R({},f,{value:E}),warn:R({},f,{value:M}),error:R({},f,{value:V}),group:R({},f,{value:Z}),groupCollapsed:R({},f,{value:O}),groupEnd:R({},f,{value:W})})}A<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=y.ReactCurrentDispatcher,De;function oe(f,P,z){{if(De===void 0)try{throw Error()}catch(ee){var q=ee.stack.trim().match(/\n( *(at )?)/);De=q&&q[1]||""}return`
`+De+f}}var ae=!1,le;{var Ie=typeof WeakMap=="function"?WeakMap:Map;le=new Ie}function $e(f,P){if(!f||ae)return"";{var z=le.get(f);if(z!==void 0)return z}var q;ae=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=pe.current,pe.current=null,U();try{if(P){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Le){q=Le}Reflect.construct(f,[],X)}else{try{X.call()}catch(Le){q=Le}f.call(X.prototype)}}else{try{throw Error()}catch(Le){q=Le}f()}}catch(Le){if(Le&&q&&typeof Le.stack=="string"){for(var Y=Le.stack.split(`
`),we=q.stack.split(`
`),de=Y.length-1,ue=we.length-1;de>=1&&ue>=0&&Y[de]!==we[ue];)ue--;for(;de>=1&&ue>=0;de--,ue--)if(Y[de]!==we[ue]){if(de!==1||ue!==1)do if(de--,ue--,ue<0||Y[de]!==we[ue]){var ze=`
`+Y[de].replace(" at new "," at ");return f.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",f.displayName)),typeof f=="function"&&le.set(f,ze),ze}while(de>=1&&ue>=0);break}}}finally{ae=!1,pe.current=re,te(),Error.prepareStackTrace=ee}var bt=f?f.displayName||f.name:"",dt=bt?oe(bt):"";return typeof f=="function"&&le.set(f,dt),dt}function jt(f,P,z){return $e(f,!1)}function it(f){var P=f.prototype;return!!(P&&P.isReactComponent)}function Wt(f,P,z){if(f==null)return"";if(typeof f=="function")return $e(f,it(f));if(typeof f=="string")return oe(f);switch(f){case _:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case d:return jt(f.render);case h:return Wt(f.type,P,z);case p:{var q=f,ee=q._payload,re=q._init;try{return Wt(re(ee),P,z)}catch{}}}return""}var kt=Object.prototype.hasOwnProperty,mo={},po=y.ReactDebugCurrentFrame;function zt(f){if(f){var P=f._owner,z=Wt(f.type,f._source,P?P.type:null);po.setExtraStackFrame(z)}else po.setExtraStackFrame(null)}function Zn(f,P,z,q,ee){{var re=Function.call.bind(kt);for(var X in f)if(re(f,X)){var Y=void 0;try{if(typeof f[X]!="function"){var we=Error((q||"React class")+": "+z+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}Y=f[X](P,X,q,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){Y=de}Y&&!(Y instanceof Error)&&(zt(ee),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).",q||"React class",z,X,typeof Y),zt(null)),Y instanceof Error&&!(Y.message in mo)&&(mo[Y.message]=!0,zt(ee),x("Failed %s type: %s",z,Y.message),zt(null))}}}var Qn=Array.isArray;function Qt(f){return Qn(f)}function el(f){{var P=typeof Symbol=="function"&&Symbol.toStringTag,z=P&&f[Symbol.toStringTag]||f.constructor.name||"Object";return z}}function tl(f){try{return ho(f),!1}catch{return!0}}function ho(f){return""+f}function fo(f){if(tl(f))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",el(f)),ho(f)}var go=y.ReactCurrentOwner,sl={key:!0,ref:!0,__self:!0,__source:!0},bo,yo;function ol(f){if(kt.call(f,"ref")){var P=Object.getOwnPropertyDescriptor(f,"ref").get;if(P&&P.isReactWarning)return!1}return f.ref!==void 0}function rl(f){if(kt.call(f,"key")){var P=Object.getOwnPropertyDescriptor(f,"key").get;if(P&&P.isReactWarning)return!1}return f.key!==void 0}function al(f,P){typeof f.ref=="string"&&go.current}function nl(f,P){{var z=function(){bo||(bo=!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)",P))};z.isReactWarning=!0,Object.defineProperty(f,"key",{get:z,configurable:!0})}}function ll(f,P){{var z=function(){yo||(yo=!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)",P))};z.isReactWarning=!0,Object.defineProperty(f,"ref",{get:z,configurable:!0})}}var cl=function(f,P,z,q,ee,re,X){var Y={$$typeof:s,type:f,key:P,ref:z,props:X,_owner:re};return Y._store={},Object.defineProperty(Y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(Y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(Y.props),Object.freeze(Y)),Y};function il(f,P,z,q,ee){{var re,X={},Y=null,we=null;z!==void 0&&(fo(z),Y=""+z),rl(P)&&(fo(P.key),Y=""+P.key),ol(P)&&(we=P.ref,al(P,ee));for(re in P)kt.call(P,re)&&!sl.hasOwnProperty(re)&&(X[re]=P[re]);if(f&&f.defaultProps){var de=f.defaultProps;for(re in de)X[re]===void 0&&(X[re]=de[re])}if(Y||we){var ue=typeof f=="function"?f.displayName||f.name||"Unknown":f;Y&&nl(X,ue),we&&ll(X,ue)}return cl(f,Y,we,ee,q,go.current,X)}}var es=y.ReactCurrentOwner,xo=y.ReactDebugCurrentFrame;function gt(f){if(f){var P=f._owner,z=Wt(f.type,f._source,P?P.type:null);xo.setExtraStackFrame(z)}else xo.setExtraStackFrame(null)}var ts;ts=!1;function ss(f){return typeof f=="object"&&f!==null&&f.$$typeof===s}function vo(){{if(es.current){var f=B(es.current.type);if(f)return`
Check the render method of \``+f+"`."}return""}}function dl(f){return""}var wo={};function _l(f){{var P=vo();if(!P){var z=typeof f=="string"?f:f.displayName||f.name;z&&(P=`
Check the top-level render call using <`+z+">.")}return P}}function Co(f,P){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var z=_l(P);if(wo[z])return;wo[z]=!0;var q="";f&&f._owner&&f._owner!==es.current&&(q=" It was passed a child from "+B(f._owner.type)+"."),gt(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.',z,q),gt(null)}}function No(f,P){{if(typeof f!="object")return;if(Qt(f))for(var z=0;z<f.length;z++){var q=f[z];ss(q)&&Co(q,P)}else if(ss(f))f._store&&(f._store.validated=!0);else if(f){var ee=b(f);if(typeof ee=="function"&&ee!==f.entries)for(var re=ee.call(f),X;!(X=re.next()).done;)ss(X.value)&&Co(X.value,P)}}}function ul(f){{var P=f.type;if(P==null||typeof P=="string")return;var z;if(typeof P=="function")z=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===d||P.$$typeof===h))z=P.propTypes;else return;if(z){var q=B(P);Zn(z,f.props,"prop",q,f)}else if(P.PropTypes!==void 0&&!ts){ts=!0;var ee=B(P);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ml(f){{for(var P=Object.keys(f.props),z=0;z<P.length;z++){var q=P[z];if(q!=="children"&&q!=="key"){gt(f),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),gt(null);break}}f.ref!==null&&(gt(f),x("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var So={};function To(f,P,z,q,ee,re){{var X=D(f);if(!X){var Y="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(Y+=" 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 we=dl();we?Y+=we:Y+=vo();var de;f===null?de="null":Qt(f)?de="array":f!==void 0&&f.$$typeof===s?(de="<"+(B(f.type)||"Unknown")+" />",Y=" Did you accidentally export a JSX literal instead of a component?"):de=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",de,Y)}var ue=il(f,P,z,ee,re);if(ue==null)return ue;if(X){var ze=P.children;if(ze!==void 0)if(q)if(Qt(ze)){for(var bt=0;bt<ze.length;bt++)No(ze[bt],f);Object.freeze&&Object.freeze(ze)}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 No(ze,f)}if(kt.call(P,"key")){var dt=B(f),Le=Object.keys(P).filter(function(yl){return yl!=="key"}),os=Le.length>0?"{key: someKey, "+Le.join(": ..., ")+": ...}":"{key: someKey}";if(!So[dt+os]){var bl=Le.length>0?"{"+Le.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} />`,os,dt,bl,dt),So[dt+os]=!0}}return f===r?ml(ue):ul(ue),ue}}function pl(f,P,z){return To(f,P,z,!0)}function hl(f,P,z){return To(f,P,z,!1)}var fl=hl,gl=pl;Lt.Fragment=r,Lt.jsx=fl,Lt.jsxs=gl}()),Lt}process.env.NODE_ENV==="production"?is.exports=Sl():is.exports=Tl();var t=is.exports;const jl="Button-module__button___M2FCc",kl="Button-module__sm___5hfKe",$l="Button-module__md___JO9f-",Ll="Button-module__lg___IQEqM",El="Button-module__xl___I8TPw",Rl="Button-module__disabled___tpHwD",Al="Button-module__destructive___8LGbo",Dl="Button-module__outline___zjzTL",Il="Button-module__ghost___pMmuQ",Bl="Button-module__brutal___kaDHQ",Pl="Button-module__primary___D3CEZ",Ml="Button-module__secondary___hONSp",Fl="Button-module__danger___A9ok9",Hl="Button-module__withShadow___Ke14w",Wl="Button-module__fullWidth___sDBss",zl="Button-module__loading___oMywk",Ol="Button-module__loader___wkV5u",Gl="Button-module__spin___YO5-z",ql="Button-module__icon___q2e1E",Vl="Button-module__content___BJgs2",Yl="Button-module__glitch___hSkLD",Ul="Button-module__brutal-glitch-1___B1O-7",Xl="Button-module__brutal-glitch-2___DwFCD",Oe={button:jl,sm:kl,md:$l,lg:Ll,xl:El,default:"Button-module__default___AB6Eh",disabled:Rl,destructive:Al,outline:Dl,ghost:Il,brutal:Bl,primary:Pl,secondary:Ml,danger:Fl,withShadow:Hl,fullWidth:Wl,loading:zl,loader:Ol,spin:Gl,icon:ql,content:Vl,glitch:Yl,brutalGlitch1:Ul,brutalGlitch2:Xl},Ko=l.forwardRef(({children:e,className:s,variant:o="default",size:r="md",fullWidth:a=!1,loading:n=!1,leftIcon:c,rightIcon:i,brutalistShadow:d=!0,glitch:_=!1,disabled:m,style:h,...p},u)=>{const{className:g,style:v}=Xo(s,h,S(Oe.button,Oe[o],Oe[r],{[Oe.fullWidth]:a,[Oe.loading]:n,[Oe.withShadow]:d,[Oe.glitch]:_,[Oe.disabled]:m||n}));return t.jsxs("button",{ref:u,className:g,style:v,disabled:m||n,"data-text":_?e:void 0,...p,children:[n&&t.jsx("span",{className:Oe.loader}),c&&t.jsx("span",{className:Oe.icon,children:c}),t.jsx("span",{className:Oe.content,children:e}),i&&t.jsx("span",{className:Oe.icon,children:i})]})});Ko.displayName="Button";const Jl="Input-module__input___bJOuX",Kl="Input-module__sm___LrnGW",Zl="Input-module__md___IgG-s",Ql="Input-module__lg___nrpmJ",ec="Input-module__withLeftIcon___T4JX2",tc="Input-module__withRightIcon___mtdvp",sc="Input-module__error___cuwOB",oc="Input-module__success___jDBBC",rc="Input-module__withShadow___-J-G9",ac="Input-module__readOnly___Pz6bc",nc="Input-module__disabled___GtcS3",lc="Input-module__inputWrapper___jgDE7",cc="Input-module__fullWidth___CBcxB",ic="Input-module__icon___oEfEz",dc="Input-module__leftIcon___ytDJc",_c="Input-module__rightIcon___Ace8v",he={input:Jl,sm:Kl,md:Zl,lg:Ql,withLeftIcon:ec,withRightIcon:tc,default:"Input-module__default___sk5nc",error:sc,success:oc,withShadow:rc,readOnly:ac,disabled:nc,inputWrapper:lc,fullWidth:cc,icon:ic,leftIcon:dc,rightIcon:_c},Zo=l.forwardRef(({className:e,style:s,variant:o="default",size:r="md",leftIcon:a,rightIcon:n,fullWidth:c=!1,brutalistShadow:i=!0,disabled:d,readOnly:_,type:m="text",...h},p)=>{const{className:u,style:g}=$({className:e,style:s,componentClasses:S(he.input,he[o],he[r],{[he.withLeftIcon]:a,[he.withRightIcon]:n,[he.disabled]:d,[he.readOnly]:_,[he.withShadow]:i&&!d&&!_})}),{className:v,style:b}=$({className:e,style:s,componentClasses:S(he.inputWrapper,he[o],he[r],{[he.fullWidth]:c,[he.disabled]:d,[he.readOnly]:_,[he.withShadow]:i&&!d&&!_})}),y=t.jsx("input",{ref:p,type:m,className:u,style:g,disabled:d,readOnly:_,...h});return a||n?t.jsxs("div",{className:v,style:b,children:[a&&t.jsx("span",{className:S(he.icon,he.leftIcon),children:a}),y,n&&t.jsx("span",{className:S(he.icon,he.rightIcon),children:n})]}):y});Zo.displayName="Input";const uc="InputOTP-module__container___auLUu",mc="InputOTP-module__sm___DS5s2",pc="InputOTP-module__md___hhGcD",hc="InputOTP-module__lg___Sxa8s",fc="InputOTP-module__input___yK7LR",gc="InputOTP-module__error___9c1bD",bc="InputOTP-module__success___SrNaU",yc="InputOTP-module__withShadow___AkXLZ",xc="InputOTP-module__filled___BXbkP",vc="InputOTP-module__disabled___u1z90",Xe={container:uc,sm:mc,md:pc,lg:hc,input:fc,default:"InputOTP-module__default___ASLDz",error:gc,success:bc,withShadow:yc,filled:xc,disabled:vc},Qo=l.forwardRef(({length:e=6,value:s="",onChange:o,onComplete:r,variant:a="default",size:n="md",disabled:c=!1,autoFocus:i=!1,type:d="text",placeholder:_="•",className:m,style:h,brutalistShadow:p=!0},u)=>{const[g,v]=l.useState(()=>{const C=s.split("").slice(0,e);return[...C,...Array(e-C.length).fill("")]}),b=l.useRef([]),{className:y,style:x}=$({className:m,style:h,componentClasses:S(Xe.container,Xe[a],Xe[n],{[Xe.brutalistShadow]:p,[Xe.disabled]:c})});l.useEffect(()=>{const C=s.split("").slice(0,e);v([...C,...Array(e-C.length).fill("")])},[s,e]);const N=C=>{var j,k;b.current[C]&&((j=b.current[C])==null||j.focus(),(k=b.current[C])==null||k.select())},w=(C,j)=>{if(d==="number"&&j&&!/^\d+$/.test(j))return;const k=[...g];k[C]=j.slice(-1),v(k);const D=k.join("");o==null||o(D),j&&C<e-1&&N(C+1),D.length===e&&!k.includes("")&&(r==null||r(D))},L=(C,j)=>{j.key==="Backspace"&&!g[C]&&C>0||j.key==="ArrowLeft"&&C>0?(j.preventDefault(),N(C-1)):j.key==="ArrowRight"&&C<e-1&&(j.preventDefault(),N(C+1))},T=C=>{C.preventDefault();const j=C.clipboardData.getData("text/plain").slice(0,e);if(d==="number"&&!/^\d+$/.test(j))return;const k=[...g];j.split("").forEach((I,B)=>{B<e&&(k[B]=I)}),v(k);const D=k.join("");o==null||o(D);const F=k.map((I,B)=>I!==""?B:-1).filter(I=>I!==-1).pop()??-1;N(Math.min(F+1,e-1)),D.length===e&&!k.includes("")&&(r==null||r(D))};return t.jsx("div",{ref:u,className:y,style:x,children:Array.from({length:e}).map((C,j)=>t.jsx("input",{ref:k=>b.current[j]=k,type:"text",inputMode:d==="number"?"numeric":"text",pattern:d==="number"?"\\d*":void 0,maxLength:1,value:g[j],onChange:k=>w(j,k.target.value),onKeyDown:k=>L(j,k),onPaste:j===0?T:void 0,onFocus:k=>k.target.select(),placeholder:_,disabled:c,autoFocus:i&&j===0,className:S(Xe.input,Xe[a],Xe[n],{[Xe.filled]:g[j],[Xe.disabled]:c,[Xe.withShadow]:p&&!c})},j))})});Qo.displayName="InputOTP";const wc="Textarea-module__wrapper___NFPqf",Cc="Textarea-module__fullWidth___5zEfB",Nc="Textarea-module__textarea___S3btv",Sc="Textarea-module__autoResize___oJ5i0",Tc="Textarea-module__withShadow___zWHBp",jc="Textarea-module__sm___iX8rI",kc="Textarea-module__md___uUOOl",$c="Textarea-module__lg___-WRY3",Lc="Textarea-module__error___NejfB",Ec="Textarea-module__success___7MBJ7",Rc="Textarea-module__disabled___QqCLR",Ac="Textarea-module__readOnly___Mq8LE",Dc="Textarea-module__overLimit___S3Dnf",Ic="Textarea-module__characterCount___3gZnj",Ee={wrapper:wc,fullWidth:Cc,textarea:Nc,autoResize:Sc,withShadow:Tc,sm:jc,md:kc,lg:$c,default:"Textarea-module__default___-lWJe",error:Lc,success:Ec,disabled:Rc,readOnly:Ac,overLimit:Dc,characterCount:Ic},er=l.forwardRef(({className:e,style:s,variant:o="default",size:r="md",autoResize:a=!1,showCharacterCount:n=!1,maxCharacters:c,minRows:i=3,maxRows:d=10,fullWidth:_=!1,brutalistShadow:m=!0,width:h,minWidth:p,maxWidth:u,disabled:g,readOnly:v,value:b,defaultValue:y,onChange:x,...N},w)=>{const[L,T]=l.useState(y||""),C=l.useRef(null),j=b!==void 0,k=j?b:L,D=String(k).length,F=l.useCallback(O=>{C.current=O,w&&(typeof w=="function"?w(O):w.current=O)},[w]),I=l.useCallback(()=>{const O=C.current;if(!O||!a)return;O.style.height="auto";const W=O.scrollHeight,G=`${i*1.5}rem`,U=`${d*1.5}rem`;W<=parseInt(G)*16?(O.style.height=G,O.style.overflowY="hidden"):W>=parseInt(U)*16?(O.style.height=U,O.style.overflowY="auto"):(O.style.height=`${W}px`,O.style.overflowY="hidden")},[a,i,d]);l.useEffect(()=>{I()},[k,I]),l.useEffect(()=>{if(!a)return;const O=()=>I();return window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[a,I]);const B=O=>{const W=O.target.value;c&&W.length>c||(j||T(W),x==null||x(O),a&&setTimeout(()=>I(),0))},R=c?D>c:!1,A=O=>{if(O!==void 0)return typeof O=="number"?`${O}px`:O},H={width:_?void 0:A(h),minWidth:A(p),maxWidth:A(u)},{className:E,style:M}=$({className:"",style:{...H,...s},componentClasses:S(Ee.wrapper,{[Ee.fullWidth]:_})}),{className:V,style:Z}=$({className:e,style:s,componentClasses:S(Ee.textarea,Ee[o],Ee[r],{[Ee.disabled]:g,[Ee.readOnly]:v,[Ee.withShadow]:m&&!g&&!v,[Ee.autoResize]:a,[Ee.overLimit]:R})});return t.jsxs("div",{className:E,style:M,children:[t.jsx("textarea",{ref:F,className:V,style:Z,disabled:g,readOnly:v,value:k,onChange:B,rows:a?void 0:i,...N}),n&&t.jsx("div",{className:S(Ee.characterCount,{[Ee.error]:R||o==="error",[Ee.success]:o==="success"}),children:t.jsxs("span",{className:Ee.count,children:[D,c&&` / ${c}`]})})]})});er.displayName="Textarea";const Bc="CustomSelect-module__selectWrapper___G7yiy",Pc="CustomSelect-module__fullWidth___lq24Y",Mc="CustomSelect-module__isOpen___r5CGY",Fc="CustomSelect-module__trigger___rO-gN",Hc="CustomSelect-module__sm___dLete",Wc="CustomSelect-module__md___i9P8-",zc="CustomSelect-module__lg___M2YAC",Oc="CustomSelect-module__error___0qtSD",Gc="CustomSelect-module__success___sKCxd",qc="CustomSelect-module__withShadow___qERE3",Vc="CustomSelect-module__value___zoSqF",Yc="CustomSelect-module__placeholder___KWVQA",Uc="CustomSelect-module__arrow___ChpqD",Xc="CustomSelect-module__arrowOpen___gVV-n",Jc="CustomSelect-module__disabled___aYSLS",Kc="CustomSelect-module__dropdown___5VUo1",Zc="CustomSelect-module__brutalistDropdown___-B5pS",Qc="CustomSelect-module__optionGroup___tkyFq",ei="CustomSelect-module__groupLabel___OT-Or",ti="CustomSelect-module__option___IVmkL",si="CustomSelect-module__focused___kW860",oi="CustomSelect-module__selected___V4Rvt",ce={selectWrapper:Bc,fullWidth:Pc,isOpen:Mc,trigger:Fc,sm:Hc,md:Wc,lg:zc,default:"CustomSelect-module__default___c9XhZ",error:Oc,success:Gc,withShadow:qc,value:Vc,placeholder:Yc,arrow:Uc,arrowOpen:Xc,disabled:Jc,dropdown:Kc,brutalistDropdown:Zc,optionGroup:Qc,groupLabel:ei,option:ti,focused:si,selected:oi};function Oo(e){return"options"in e}const _s=l.forwardRef(({className:e,style:s,variant:o="default",size:r="md",options:a=[],placeholder:n="Select an option...",fullWidth:c=!1,brutalistShadow:i=!0,disabled:d=!1,value:_,defaultValue:m,onChange:h,onBlur:p,onFocus:u,name:g,id:v},b)=>{const[y,x]=l.useState(!1),[N,w]=l.useState(_||m||""),[L,T]=l.useState(-1),C=l.useRef(null),j=l.useRef(null);l.useImperativeHandle(b,()=>C.current,[]);const k=[];a.forEach(A=>{Oo(A)?k.push(...A.options.filter(H=>!H.disabled)):A.disabled||k.push(A)}),l.useEffect(()=>{_!==void 0&&w(_)},[_]),l.useEffect(()=>{const A=H=>{C.current&&!C.current.contains(H.target)&&(x(!1),T(-1))};if(y)return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[y]);const D=()=>{d||(x(!y),T(-1),y?p==null||p():u==null||u())},F=A=>{var H;w(A),x(!1),T(-1),h==null||h(A),p==null||p(),(H=j.current)==null||H.focus()},I=A=>{var H;if(!d)switch(A.key){case"Enter":case" ":A.preventDefault(),y&&L>=0?F(k[L].value):x(!y);break;case"Escape":x(!1),T(-1),(H=j.current)==null||H.focus();break;case"ArrowDown":A.preventDefault(),y?T(E=>E<k.length-1?E+1:E):(x(!0),T(0));break;case"ArrowUp":A.preventDefault(),y&&T(E=>E>0?E-1:E);break}},B=k.find(A=>A.value===N),R=(B==null?void 0:B.label)||n;return t.jsxs("div",{ref:C,className:S(ce.selectWrapper,ce[o],ce[r],{[ce.fullWidth]:c,[ce.disabled]:d,[ce.withShadow]:i&&!d,[ce.isOpen]:y},e),style:s,children:[t.jsx("input",{type:"hidden",name:g,value:N}),t.jsxs("button",{ref:j,type:"button",className:ce.trigger,onClick:D,onKeyDown:I,disabled:d,"aria-haspopup":"listbox","aria-expanded":y,"aria-labelledby":v,id:v,children:[t.jsx("span",{className:S(ce.value,{[ce.placeholder]:!B}),children:R}),t.jsx("div",{className:ce.arrow,children:t.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:S({[ce.arrowOpen]:y}),children:t.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"miter"})})})]}),y&&t.jsx("div",{className:ce.dropdown,role:"listbox",children:a.map((A,H)=>{if(Oo(A))return t.jsxs("div",{className:ce.optionGroup,children:[t.jsx("div",{className:ce.groupLabel,children:A.label}),A.options.map(E=>{const M=k.findIndex(V=>V.value===E.value);return t.jsx("button",{type:"button",className:S(ce.option,{[ce.selected]:E.value===N,[ce.focused]:M===L,[ce.disabled]:E.disabled}),onClick:()=>!E.disabled&&F(E.value),disabled:E.disabled,role:"option","aria-selected":E.value===N,children:E.label},E.value)})]},`group-${H}`);{const E=k.findIndex(M=>M.value===A.value);return t.jsx("button",{type:"button",className:S(ce.option,{[ce.selected]:A.value===N,[ce.focused]:E===L,[ce.disabled]:A.disabled}),onClick:()=>!A.disabled&&F(A.value),disabled:A.disabled,role:"option","aria-selected":A.value===N,children:A.label},A.value)}})})]})});_s.displayName="CustomSelect";const ri="Select-module__select___rjxCm",ai="Select-module__sm___XZiVV",ni="Select-module__md___iEXWx",li="Select-module__lg___w5uPO",ci="Select-module__fullWidth___vSOpj",ii="Select-module__error___9S2xc",di="Select-module__success___DIzWT",_i="Select-module__withShadow___nI0Cs",ui="Select-module__disabled___KBkat",mi="Select-module__hasPlaceholder___NiZqc",pi="Select-module__selectWrapper___sUZzj",hi="Select-module__arrow___vuJL-",Re={select:ri,sm:ai,md:ni,lg:li,fullWidth:ci,default:"Select-module__default___Kg5qx",error:ii,success:di,withShadow:_i,disabled:ui,hasPlaceholder:mi,selectWrapper:pi,arrow:hi};function fi(e){return"options"in e}const tr=l.forwardRef(({className:e,style:s,variant:o="default",size:r="md",options:a=[],placeholder:n,fullWidth:c=!1,brutalistShadow:i=!0,customArrow:d=!0,useCustomDropdown:_=!0,onValueChange:m,disabled:h,children:p,...u},g)=>{const{className:v,style:b}=$({className:e,style:s,componentClasses:S(Re.select,Re[o],Re[r],{[Re.disabled]:h,[Re.withShadow]:i&&!h,[Re.fullWidth]:c,[Re.hasPlaceholder]:n&&!u.value&&!u.defaultValue})}),{className:y,style:x}=$({className:e,style:s,componentClasses:S(Re.selectWrapper,Re[o],Re[r],{[Re.fullWidth]:c,[Re.disabled]:h,[Re.withShadow]:i&&!h})});if(_){let w=a;return a.length===0&&p&&(w=[],l.Children.forEach(p,L=>{if(l.isValidElement(L)){if(L.type==="option"){const T=L.props.value||"",C=L.props.children||"";T&&C&&w.push({value:T,label:C,disabled:L.props.disabled})}else if(L.type==="optgroup"){const T=L.props.label||"",C=[];l.Children.forEach(L.props.children,j=>{if(l.isValidElement(j)&&j.type==="option"){const k=j.props,D=k.value||"",F=k.children||"";D&&F&&C.push({value:String(D),label:String(F),disabled:k.disabled})}}),C.length>0&&w.push({label:T,options:C})}}})),t.jsx(_s,{variant:o,size:r,options:w,placeholder:n,fullWidth:c,brutalistShadow:i,disabled:h,value:u.value,defaultValue:u.defaultValue,onChange:m||(L=>{var C;const T={target:{value:L},currentTarget:{value:L}};(C=u.onChange)==null||C.call(u,T)}),onBlur:u.onBlur?()=>{var L;return(L=u.onBlur)==null?void 0:L.call(u,{})}:void 0,onFocus:u.onFocus?()=>{var L;return(L=u.onFocus)==null?void 0:L.call(u,{})}:void 0,className:e,style:s,name:u.name,id:u.id})}const N=t.jsxs("select",{ref:g,className:v,style:b,disabled:h,...u,children:[n&&t.jsx("option",{value:"",disabled:!0,hidden:!0,children:n}),p||a.map((w,L)=>fi(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-${L}`):t.jsx("option",{value:w.value,disabled:w.disabled,children:w.label},w.value))]});return d?t.jsxs("div",{className:y,style:x,children:[N,t.jsx("div",{className:Re.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"})})})]}):N});tr.displayName="Select";const gi="Checkbox-module__container___fIZTC",bi="Checkbox-module__checkboxWrapper___jj-29",yi="Checkbox-module__input___6JHLe",xi="Checkbox-module__checkbox___rvy-0",vi="Checkbox-module__withShadow___HXuvn",wi="Checkbox-module__sm___MYmhO",Ci="Checkbox-module__md___Na2X2",Ni="Checkbox-module__lg___gl5iM",Si="Checkbox-module__checkmark___YVrOc",Ti="Checkbox-module__indeterminateLine___IwjGq",ji="Checkbox-module__label___rs4Gw",ki="Checkbox-module__indeterminate___qunnW",$i="Checkbox-module__disabled___IAacX",Li="Checkbox-module__error___YE5ps",Ei="Checkbox-module__checkAnimation___a1vpL",Ge={container:gi,checkboxWrapper:bi,input:yi,checkbox:xi,withShadow:vi,sm:wi,md:Ci,lg:Ni,checkmark:Si,indeterminateLine:Ti,label:ji,indeterminate:ki,disabled:$i,error:Li,checkAnimation:Ei},sr=l.forwardRef(({className:e,style:s,size:o="md",label:r,indeterminate:a=!1,error:n=!1,brutalistShadow:c=!0,disabled:i,id:d,..._},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 u=d||`checkbox-${Math.random().toString(36).substr(2,9)}`,{className:g,style:v}=$({className:e,style:s,componentClasses:S(Ge.container,Ge[o],{[Ge.disabled]:i,[Ge.error]:n})});return t.jsxs("div",{className:g,style:v,children:[t.jsxs("div",{className:Ge.checkboxWrapper,children:[t.jsx("input",{ref:p,type:"checkbox",id:u,className:Ge.input,disabled:i,"aria-invalid":n,..._}),t.jsxs("div",{className:S(Ge.checkbox,{[Ge.withShadow]:c,[Ge.indeterminate]:a}),children:[t.jsx("svg",{className:Ge.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:Ge.indeterminateLine})]})]}),r&&t.jsx("label",{htmlFor:u,className:Ge.label,children:r})]})});sr.displayName="Checkbox";const Ri="Radio-module__group___M-N4Y",Ai="Radio-module__vertical___GNUDK",Di="Radio-module__horizontal___TdyFw",Ii="Radio-module__container___dMX4h",Bi="Radio-module__radioWrapper___pJMCe",Pi="Radio-module__input___gGZaE",Mi="Radio-module__radio___KQhKQ",Fi="Radio-module__withShadow___zgS1A",Hi="Radio-module__sm___II-cf",Wi="Radio-module__md___fOtqn",zi="Radio-module__lg___-PZDG",Oi="Radio-module__indicator___rZeFG",Gi="Radio-module__label___vlc5J",qi="Radio-module__disabled___rutBW",Vi="Radio-module__error___O0HMa",Yi="Radio-module__selectAnimation___fx0LM",Ui="Radio-module__checked___hLq-A",Te={group:Ri,vertical:Ai,horizontal:Di,container:Ii,radioWrapper:Bi,input:Pi,radio:Mi,withShadow:Fi,sm:Hi,md:Wi,lg:zi,indicator:Oi,label:Gi,disabled:qi,error:Vi,selectAnimation:Yi,checked:Ui},or=l.createContext(void 0),Xi=({name:e,value:s,defaultValue:o,onChange:r,children:a,direction:n="vertical",size:c="md",disabled:i=!1,error:d=!1,brutalistShadow:_=!0,className:m,style:h})=>{const[p,u]=l.useState(o),g=s!==void 0,v=g?s:p,b=N=>{g||u(N),r==null||r(N)},{className:y,style:x}=$({className:m,style:h,componentClasses:S(Te.group,Te[n],{[Te.disabled]:i,[Te.error]:d})});return t.jsx(or.Provider,{value:{name:e,value:v,onChange:b,disabled:i,error:d,size:c,brutalistShadow:_},children:t.jsx("div",{className:y,style:x,role:"radiogroup","aria-invalid":d,children:a})})},rr=l.forwardRef(({className:e,style:s,value:o,label:r,size:a,disabled:n,error:c,brutalistShadow:i,id:d,..._},m)=>{const h=l.useContext(or);if(!h)throw new Error("Radio must be used within RadioGroup");const{name:p,value:u,onChange:g,disabled:v,error:b,size:y,brutalistShadow:x}=h,N=a||y||"md",w=n||v,L=c||b,T=i!==void 0?i:x,C=o===u,j=d||`radio-${p}-${o}`,k=()=>{w||g(o)},{className:D,style:F}=$({className:e,style:s,componentClasses:S(Te.container,Te[N],{[Te.disabled]:w,[Te.error]:L,[Te.checked]:C})});return t.jsxs("div",{className:D,style:F,children:[t.jsxs("div",{className:Te.radioWrapper,children:[t.jsx("input",{ref:m,type:"radio",id:j,name:p,value:o,checked:C,onChange:()=>k(),className:Te.input,disabled:w,"aria-invalid":L,..._}),t.jsx("div",{className:S(Te.radio,{[Te.withShadow]:T}),children:t.jsx("div",{className:Te.indicator})})]}),r&&t.jsx("label",{htmlFor:j,className:Te.label,children:r})]})});rr.displayName="Radio";const Ji="Switch-module__container___sIhoN",Ki="Switch-module__labelLe