@hua-labs/ui 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -182
- package/dist/advanced-emotion.js +1 -1
- package/dist/advanced-emotion.js.map +1 -1
- package/dist/advanced-emotion.mjs +1 -1
- package/dist/advanced-motion.js +1 -1
- package/dist/advanced-motion.js.map +1 -1
- package/dist/advanced-motion.mjs +1 -1
- package/dist/advanced.js +1 -1
- package/dist/advanced.js.map +1 -1
- package/dist/advanced.mjs +1 -1
- package/dist/chunk-BXX2TZUB.mjs +3 -0
- package/dist/chunk-BXX2TZUB.mjs.map +1 -0
- package/dist/{chunk-5BMH7223.mjs → chunk-PYBYZVSL.mjs} +2 -2
- package/dist/{chunk-5BMH7223.mjs.map → chunk-PYBYZVSL.mjs.map} +1 -1
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/iconsax-extended.js +1 -1
- package/dist/iconsax-extended.js.map +1 -1
- package/dist/iconsax-extended.mjs +1 -1
- package/dist/iconsax-extended.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/sdui.js +1 -1
- package/dist/sdui.js.map +1 -1
- package/dist/sdui.mjs +1 -1
- package/package.json +6 -1
- package/dist/chunk-FSL373O6.mjs +0 -3
- package/dist/chunk-FSL373O6.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
opacity: 0;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`,document.head.appendChild(j);}L.style.position="relative",L.appendChild(V),setTimeout(()=>{V.remove();},500);}}},[l,i,a,n,b,c]),v=X__default.default.useMemo(()=>({"--action-opacity":String(d),"--action-blur":`${f}px`,"--action-glow-size":`${g}px`,"--action-glow-color":c}),[d,f,g,c]),y=X__default.default.useMemo(()=>s("hua-action relative inline-flex items-center rounded-xl px-4 py-2 font-medium","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/60",u&&"cursor-wait opacity-80",h&&"justify-center",e),[e,u,h]);if("href"in p&&p.href){let{onClick:k,href:P,...L}=p;return jsxRuntime.jsx(ae,{ref:x,href:P,className:y,style:v,onClick:S=>{if(m||u){S.preventDefault(),S.stopPropagation();return}T(S),k==null||k(S);},"aria-busy":u||void 0,"aria-label":h?L["aria-label"]:void 0,"data-action":r,"data-feedback":o,"data-reduced-motion":b?"true":"false",disabled:m,...L,children:t})}let{onClick:w,...D}=p;return jsxRuntime.jsx(ae,{ref:x,className:y,style:v,onClick:k=>{m||u||(T(k),w==null||w(k));},disabled:m,"aria-busy":u||void 0,"aria-label":h?D["aria-label"]:void 0,"data-action":r,"data-feedback":o,"data-reduced-motion":b?"true":"false",...D,children:t})});Br.displayName="Action";var ar={error:"border-destructive focus-visible:ring-destructive",success:"border-green-500 focus-visible:ring-green-500"};var Go=classVarianceAuthority.cva("flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200 hover:border-accent-foreground hover:shadow-sm",{variants:{variant:{default:"border-input bg-background",outline:"border-2 border-input bg-transparent",filled:"border-transparent bg-secondary/50",glass:"border-white/20 bg-white/10 text-white placeholder:text-white/50 backdrop-blur-sm"}},defaultVariants:{variant:"default"}}),zr=X__default.default.forwardRef(({className:e,type:t,variant:r="default",error:o,success:n,...a},i)=>{let l=a["aria-invalid"],d=o||(l!==void 0?l:false);return jsxRuntime.jsx("input",{type:t,className:s(Go({variant:r}),d&&ar.error,n&&ar.success,e),ref:i,"aria-invalid":d||void 0,...a})});zr.displayName="Input";var $r=X__default.default.forwardRef(({value:e,defaultValue:t=0,min:r,max:o,step:n=1,onChange:a,disabled:i=false,size:l="md",showButtons:d=true,buttonLayout:f="horizontal",className:g,...c},u)=>{let[h,m]=X__default.default.useState(t),p=e!==void 0,x=p?e:h,b=X__default.default.useCallback(S=>{let N=S;r!==void 0&&(N=Math.max(r,N)),o!==void 0&&(N=Math.min(o,N)),p||m(N),a==null||a(N);},[p,r,o,a]),T=()=>{i||b(x+n);},v=()=>{i||b(x-n);},y=S=>{let N=S.target.value;if(N===""||N==="-")return;let M=parseFloat(N);isNaN(M)||(r!==void 0&&M<r?b(r):b(M));},w=S=>{var N;r!==void 0&&x<r&&b(r),o!==void 0&&x>o&&b(o),(N=c.onBlur)==null||N.call(c,S);},D=S=>{S.key==="ArrowUp"?(S.preventDefault(),T()):S.key==="ArrowDown"&&(S.preventDefault(),v());},k={sm:{input:"h-8 text-sm px-2 py-1",button:"w-8 h-8 text-sm",wrapper:"gap-1"},md:{input:"h-10 text-sm px-3 py-2",button:"w-10 h-10 text-sm",wrapper:"gap-2"},lg:{input:"h-12 text-base px-4 py-2.5",button:"w-12 h-12 text-base",wrapper:"gap-2"}}[l],P=s("flex items-center justify-center rounded-md border border-input bg-background","hover:bg-secondary hover:border-primary/50 active:scale-95","transition-all duration-150","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-background","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",k.button),L=r===void 0||x>r,C=o===void 0||x<o;return f==="vertical"?jsxRuntime.jsxs("div",{className:s("inline-flex items-center",k.wrapper,g),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[jsxRuntime.jsx("button",{type:"button",onClick:T,disabled:i||!C,className:s(P,"rounded-b-none h-[calc(50%-1px)]"),"aria-label":"Increase",children:jsxRuntime.jsx(qo,{className:"w-3 h-3"})}),jsxRuntime.jsx("button",{type:"button",onClick:v,disabled:i||!L,className:s(P,"rounded-t-none h-[calc(50%-1px)]"),"aria-label":"Decrease",children:jsxRuntime.jsx(Ko,{className:"w-3 h-3"})})]}),jsxRuntime.jsx("input",{ref:u,type:"text",inputMode:"numeric",pattern:r!==void 0&&r>=0?"[0-9]*":"-?[0-9]*",value:x,onChange:y,onKeyDown:D,onBlur:w,disabled:i,className:s("w-16 text-center rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",k.input),...c})]}):jsxRuntime.jsxs("div",{className:s("inline-flex items-center",k.wrapper,g),children:[d&&jsxRuntime.jsx("button",{type:"button",onClick:v,disabled:i||!L,className:P,"aria-label":"Decrease",children:jsxRuntime.jsx(Yo,{className:"w-3.5 h-3.5"})}),jsxRuntime.jsx("input",{ref:u,type:"text",inputMode:"numeric",pattern:r!==void 0&&r>=0?"[0-9]*":"-?[0-9]*",value:x,onChange:y,onKeyDown:D,onBlur:w,disabled:i,className:s("w-16 text-center rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",k.input),...c}),d&&jsxRuntime.jsx("button",{type:"button",onClick:T,disabled:i||!C,className:P,"aria-label":"Increase",children:jsxRuntime.jsx(Xo,{className:"w-3.5 h-3.5"})})]})});$r.displayName="NumberInput";function Yo({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})})}function Xo({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})}function qo({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})}function Ko({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}var Qo=classVarianceAuthority.cva("transition-colors duration-200",{variants:{variant:{default:"text-foreground hover:text-muted-foreground",primary:"text-primary hover:text-primary/80",secondary:"text-muted-foreground hover:text-foreground",ghost:"text-muted-foreground hover:text-foreground",underline:"text-primary hover:text-primary/80 underline hover:no-underline"},size:{sm:"text-sm",md:"text-base",lg:"text-lg"}},defaultVariants:{variant:"default",size:"md"}});function Zo({href:e,children:t,className:r,variant:o="default",size:n="md",external:a=false,onClick:i}){return jsxRuntime.jsx("a",{href:e,className:s(Qo({variant:o,size:n}),r),target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,onClick:i,children:t})}var jr={home:ssr.House,arrowLeft:ssr.ArrowLeft,arrowRight:ssr.ArrowRight,arrowUp:ssr.ArrowUp,arrowDown:ssr.ArrowDown,menu:ssr.List,close:ssr.X,search:ssr.MagnifyingGlass,settings:ssr.Gear,externalLink:ssr.ArrowSquareOut,chevronLeft:ssr.CaretLeft,chevronRight:ssr.CaretRight,chevronDown:ssr.CaretDown,chevronUp:ssr.CaretUp,edit:ssr.Pencil,delete:ssr.Trash,add:ssr.Plus,remove:ssr.Minus,download:ssr.Download,upload:ssr.Upload,refresh:ssr.ArrowClockwise,save:ssr.FloppyDisk,copy:ssr.Copy,loader:ssr.SpinnerGap,success:ssr.CheckCircle,error:ssr.XCircle,alertCircle:ssr.WarningCircle,warning:ssr.WarningCircle,info:ssr.Info,check:ssr.Check,circle:ssr.Circle,helpCircle:ssr.Question,user:ssr.User,users:ssr.Users,userPlus:ssr.UserPlus,logIn:ssr.SignIn,logOut:ssr.SignOut,eye:ssr.Eye,eyeOff:ssr.EyeSlash,chart:ssr.ChartBar,barChart:ssr.ChartBar,trendingUp:ssr.TrendUp,activity:ssr.Pulse,database:ssr.Database,zap:ssr.Lightning,fileText:ssr.FileText,file:ssr.File,folder:ssr.Folder,book:ssr.Book,bookOpen:ssr.BookOpen,mail:ssr.Envelope,message:ssr.ChatCircle,phone:ssr.Phone,image:ssr.Image,video:ssr.Video,camera:ssr.Camera,smile:ssr.Smiley,frown:ssr.SmileySad,meh:ssr.SmileyMeh,lock:ssr.Lock,unlock:ssr.LockOpen,shield:ssr.Shield,wallet:ssr.Wallet,key:ssr.Key,clock:ssr.Clock,calendar:ssr.Calendar,calendarPlus:ssr.CalendarPlus,bell:ssr.Bell,heart:ssr.Heart,star:ssr.Star,bookmark:ssr.Bookmark,share:ssr.Share,monitor:ssr.Monitor,sun:ssr.Sun,moon:ssr.Moon,lightbulb:ssr.Lightbulb,brain:ssr.Brain,flag:ssr.Flag,square:ssr.Square,sparkle:ssr.Sparkle,sparkles:ssr.Sparkle,globe:ssr.Globe,smartphone:ssr.DeviceMobile,deviceMobile:ssr.DeviceMobile,floppyDisk:ssr.FloppyDisk,ticket:ssr.Ticket,clipboard:ssr.Clipboard,wifi:ssr.WifiHigh,wifiOff:ssr.WifiSlash,cpu:ssr.Cpu,mask:ssr.MaskHappy,bold:ssr.TextB,italic:ssr.TextItalic,strikethrough:ssr.TextStrikethrough,heading:ssr.TextHOne,link:ssr.Link,code:ssr.Code,fileCode:ssr.FileCode,quote:ssr.Quotes,list:ssr.List,listOrdered:ssr.ListNumbers,minus:ssr.Minus},lr={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},dr={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"},za={navigation:["home","arrowLeft","arrowRight","arrowUp","arrowDown","menu","close","search","settings","externalLink","chevronLeft","chevronRight","chevronDown","chevronUp"],actions:["edit","delete","add","remove","download","upload","refresh","save","copy"],status:["loader","success","error","alertCircle","warning","info","check","circle"],user:["user","users","userPlus","logIn","logOut","eye","eyeOff"],data:["chart","barChart","trendingUp","activity","database","zap"],files:["fileText","file","folder","book"],communication:["mail","message","phone"],media:["image","video","camera"],emotions:["smile","frown","meh"],security:["lock","unlock","shield"],time:["clock","calendar"],ui:["bell","heart","star","bookmark","share"],theme:["monitor","sun","moon"]};function Yr(e){return !e||!/[-_]/.test(e)&&/^[a-z]/.test(e)?e:/^[A-Z]+$/.test(e)?e.toLowerCase():/^[A-Z]/.test(e)&&!/[-_]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e.split(/[-_]/).map((t,r)=>r===0?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join("")}var U=null,W=null;var me={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function Xr(){if(typeof window=="undefined")return null;if(!U)try{U=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return U}async function qr(){if(typeof window=="undefined")return null;if(!W)try{W=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return W}function Ge(e,t="phosphor"){let r=me[e];if(!r)return $a(e,t);let o=r[t];switch(t){case "phosphor":return !o||!U?null:(U==null?void 0:U[o])||null;case "lucide":return !o||!W?null:(W==null?void 0:W[o])||null;case "iconsax":{return null;}default:return null}}function $a(e,t){switch(t){case "phosphor":{if(!U)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),o=e.split(/(?=[A-Z])/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("");return (U==null?void 0:U[r])||(U==null?void 0:U[o])||(U==null?void 0:U[e])||null}case "lucide":{if(!W)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),o=e.replace(/([A-Z])/g,n=>n===e[0]?n.toLowerCase():n);return (W==null?void 0:W[r])||(W==null?void 0:W[e])||(W==null?void 0:W[o])||null}case "iconsax":{return null;}default:return null}}function Kr(e,t){let r=me[e];if(r){let o=r[t];if(o)return o}return e}var fe={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function Va(e){if(typeof e!="string")throw new TypeError("iconName must be a string");return fe[e]||e}function Ua(e){if(typeof e!="string")throw new TypeError("iconName must be a string");return Object.entries(fe).filter(([t,r])=>r===e).map(([t])=>t)}function Jr(e){if(!e||typeof e!="string")return {normalized:e||"",wasAlias:false};let t=Yr(e),r=fe[e]||fe[t];return r?{normalized:r,wasAlias:true,originalAlias:e}:{normalized:t,wasAlias:false}}var te={set:"lucide",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"},Qr=e=>{switch(e){case "lucide":return 1.25;case "phosphor":return 1.25;case "iconsax":return 1.5;default:return 1.25}};var Zr=X.createContext(te);function et({set:e=te.set,weight:t=te.weight,iconsaxVariant:r=te.iconsaxVariant,size:o=te.size,color:n=te.color,strokeWidth:a=te.strokeWidth,children:i}){let l={set:e,weight:t,iconsaxVariant:r,size:o,color:n,strokeWidth:a};return jsxRuntime.jsx(Zr.Provider,{value:l,children:i})}function je(){return X.useContext(Zr)}var rt=X__default.default.forwardRef(({name:e,size:t,className:r,emotion:o,status:n,provider:a,weight:i,animated:l=false,pulse:d=false,spin:f=false,bounce:g=false,variant:c="default","aria-label":u,"aria-hidden":h},m)=>{var J,ne;let p=je(),x=a||p.set,b=t!=null?t:p.size,T=i||p.weight,v=p.color,y=(J=p.strokeWidth)!=null?J:1.25,w=(ne=p.iconsaxVariant)!=null?ne:"line",[D,B]=X__default.default.useState(false),[k,P]=X__default.default.useState(false);X__default.default.useEffect(()=>{B(true),x==="lucide"?qr().then(()=>P(true)):x==="phosphor"?Xr().then(()=>P(true)):P(true);},[x]);let L=X__default.default.useMemo(()=>{let j=o?lr[o]:n?dr[n]:e,{normalized:Se}=Jr(j),Ve=Kr(Se,x);return {normalized:Se,providerName:Ve}},[e,o,n,x]),C=L.normalized,S=X__default.default.useMemo(()=>{return null},[x,L.providerName,D,w]),N=Ue({"text-current":c==="default","text-primary":c==="primary","text-muted-foreground":c==="secondary"||c==="muted","text-green-600 dark:text-green-400":c==="success","text-yellow-600 dark:text-yellow-400":c==="warning","text-destructive":c==="error"});if(!D)return jsxRuntime.jsx("span",{style:{width:b,height:b},className:s(N,r),"aria-hidden":h!==void 0?h:true,"aria-label":u});let M=null;if(x==="phosphor"?(M=jr[C]||null,!M&&k&&(M=Ge(C,x))):x==="iconsax"?(M=S,M||(M=Ge(C,x))):M=Ge(C,x),!M)return x==="iconsax"&&true?process.env.NODE_ENV==="development"&&console.warn(`Icon "${C}" \u2014 iconsax resolver not registered. Use HuaProvider with icons.set='iconsax', or add: import '@hua-labs/ui/iconsax'`):console.warn(`Icon "${C}" not found for provider "${x}"`),jsxRuntime.jsx("span",{ref:m,className:s("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",N,r),style:{width:b,height:b},"aria-label":u||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${C}`,title:`Icon not found: ${C}`,children:jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let V={size:typeof b=="number"?b:void 0,width:b,height:b,color:v};x==="phosphor"?V.weight=T:V.strokeWidth=y;let I=Ue({"animate-pulse":d,"animate-spin":f,"animate-bounce":g,"transition-all duration-200 ease-in-out":l}),Y={};return u?(Y["aria-label"]=u,Y["aria-hidden"]=false):h!==void 0?Y["aria-hidden"]=h:Y["aria-hidden"]=true,jsxRuntime.jsx("span",{ref:m,className:s("inline-flex items-center justify-center",I,N,r),style:{width:b,height:b},...Y,children:M&&X__default.default.createElement(M,{...V,className:N,"aria-hidden":true})})});rt.displayName="Icon";var Ga=X__default.default.memo(rt,(e,t)=>e.name===t.name&&e.size===t.size&&e.className===t.className&&e.emotion===t.emotion&&e.status===t.status&&e.provider===t.provider&&e.animated===t.animated&&e.pulse===t.pulse&&e.spin===t.spin&&e.bounce===t.bounce&&e.variant===t.variant&&e.weight===t.weight&&e["aria-label"]===t["aria-label"]&&e["aria-hidden"]===t["aria-hidden"]),E=Ga;E.displayName="Icon";var ur=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"smile",...e}));ur.displayName="EmotionIcon";var pr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"info",...e}));pr.displayName="StatusIcon";var mr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...e}));mr.displayName="LoadingIcon";var fr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...e}));fr.displayName="SuccessIcon";var gr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...e}));gr.displayName="ErrorIcon";var Xa=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"},variant:{default:"",glass:"ring-1 ring-white/30 backdrop-blur-sm"}},defaultVariants:{size:"md",variant:"default"}}),tt=X__default.default.forwardRef(({className:e,size:t="md",variant:r="default",src:o,alt:n,fallbackText:a,children:i,...l},d)=>{let[f,g]=X.useState(false),c=()=>a||i||(n?n.charAt(0).toUpperCase():"U"),u=o&&!f;return jsxRuntime.jsx("div",{ref:d,className:s(Xa({size:t,variant:r}),e),...l,children:u?jsxRuntime.jsx(br,{src:o,alt:n||"avatar",onError:()=>g(true)}):jsxRuntime.jsx(vr,{children:c()})})});tt.displayName="Avatar";var br=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("img",{ref:r,className:s("aspect-square h-full w-full object-cover object-center",e),...t}));br.displayName="AvatarImage";var vr=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("flex h-full w-full items-center justify-center rounded-full bg-primary text-primary-foreground font-semibold",e),...t}));vr.displayName="AvatarFallback";function Ka(...e){return X__default.default.useCallback(t=>{e.forEach(r=>{r&&(typeof r=="function"?r(t):r.current=t);});},e)}var ot=X__default.default.forwardRef(({className:e,isOpen:t,onClose:r,children:o,size:n="md",closable:a,closeOnOverlayClick:i=true,title:l,description:d,showBackdrop:f=true,backdropClassName:g,centered:c=true},u)=>{let h=a!=null?a:true,m=X__default.default.useRef(null),p=Ka(u,m);X__default.default.useEffect(()=>{let P=L=>{L.key==="Escape"&&r();};if(t){document.addEventListener("keydown",P);let L=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${L}px`;}return ()=>{document.removeEventListener("keydown",P),document.body.style.overflow="unset",document.body.style.paddingRight="unset";}},[t,r]);let x=P=>{i&&P.target===P.currentTarget&&r();},b={sm:"max-w-xs",md:"max-w-sm",lg:"max-w-md",xl:"max-w-lg","2xl":"max-w-xl","3xl":"max-w-2xl"},T=X__default.default.useId(),v=X__default.default.useId(),y=l?`modal-title-${T}`:void 0,w=d?`modal-description-${v}`:void 0,[D,B]=X__default.default.useState(false);if(X__default.default.useEffect(()=>{B(true);},[]),!t)return null;let k=jsxRuntime.jsxs("div",{className:s("fixed inset-0 z-50 overflow-y-auto",e),onClick:x,role:"dialog","aria-modal":"true","aria-labelledby":y,"aria-describedby":w,children:[f&&jsxRuntime.jsx("div",{className:s("fixed inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300 pointer-events-none",g)}),jsxRuntime.jsx("div",{className:s("flex h-full justify-center p-4",c?"items-center":"items-start pt-16"),children:jsxRuntime.jsxs("div",{ref:p,className:s("relative bg-[var(--modal-bg)] rounded-lg shadow-2xl border border-[var(--modal-border)] transform transition-all duration-300 ease-out",b[n]),style:{animation:"modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1)"},children:[l&&jsxRuntime.jsxs("div",{className:"relative z-10 px-6 pt-6 pb-4 border-b border-border/50",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-4 mb-2",children:[jsxRuntime.jsx("h2",{id:y,className:"text-xl font-semibold text-foreground flex-1 min-w-0",children:l}),h&&jsxRuntime.jsx("button",{onClick:r,className:"flex-shrink-0 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),d&&jsxRuntime.jsx("p",{id:w,className:"text-sm text-muted-foreground",children:d})]}),!l&&h&&jsxRuntime.jsx("button",{onClick:r,className:"absolute top-4 right-4 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:`relative z-10 ${l?"px-6 mb-6":"p-6"}`,children:o})]})})]});return D&&typeof document!="undefined"?reactDom.createPortal(k,document.body):null});ot.displayName="Modal";var Za=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-6xl",xl:"max-w-7xl",full:"max-w-full"},padding:{none:"",sm:"px-3 sm:px-4 py-6 sm:py-8",md:"px-4 sm:px-6 py-8 sm:py-12",lg:"px-4 sm:px-6 lg:px-8 py-10 sm:py-16",xl:"px-6 sm:px-8 lg:px-12 py-12 sm:py-20"}},defaultVariants:{size:"lg",padding:"md"}}),nt=X__default.default.forwardRef(({className:e,size:t="lg",padding:r="md",centered:o=true,fluid:n=false,...a},i)=>jsxRuntime.jsx("div",{ref:i,className:s(Za({size:n?void 0:t,padding:r}),n&&"max-w-full",o&&"mx-auto",e),...a}));nt.displayName="Container";var os=classVarianceAuthority.cva("grid",{variants:{gap:{none:"gap-0",sm:"gap-4",md:"gap-6",lg:"gap-8",xl:"gap-12"}},defaultVariants:{gap:"md"}}),ns={1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",5:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-5",6:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-6",7:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-7",8:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-8",9:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-9",10:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-10",11:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-11",12:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-12"},as={none:"gap-x-0",sm:"gap-x-4",md:"gap-x-6",lg:"gap-x-8",xl:"gap-x-12"},ss={none:"gap-y-0",sm:"gap-y-4",md:"gap-y-6",lg:"gap-y-8",xl:"gap-y-12"},at=X__default.default.forwardRef(({className:e,cols:t=1,gap:r="md",gapX:o,gapY:n,responsive:a=true,...i},l)=>jsxRuntime.jsx("div",{ref:l,className:s(os({gap:o?void 0:r}),a?ns[t]:`grid-cols-${t}`,o&&as[o],n&&ss[n],e),...i}));at.displayName="Grid";var cs=classVarianceAuthority.cva("",{variants:{direction:{vertical:"flex flex-col",horizontal:"flex flex-row"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{direction:"vertical",align:"start",justify:"start"}}),us={vertical:{none:"",sm:"space-y-4",md:"space-y-6",lg:"space-y-8",xl:"space-y-12"},horizontal:{none:"",sm:"space-x-4",md:"space-x-6",lg:"space-x-8",xl:"space-x-12"}},st=X__default.default.forwardRef(({className:e,direction:t="vertical",spacing:r="md",align:o="start",justify:n="start",wrap:a=false,...i},l)=>jsxRuntime.jsx("div",{ref:l,className:s(cs({direction:t,align:o,justify:n}),us[t][r],a&&"flex-wrap",e),...i}));st.displayName="Stack";var ms={horizontal:"w-full",vertical:"h-full"},fs={horizontal:{none:"",sm:"my-4",md:"my-6",lg:"my-8",xl:"my-12"},vertical:{none:"",sm:"mx-4",md:"mx-6",lg:"mx-8",xl:"mx-12"}};function gs(e,t,r){return t==="dashed"||t==="dotted"?{horizontal:{sm:"border-t",md:"border-t-2",lg:"border-t-4"},vertical:{sm:"border-l",md:"border-l-2",lg:"border-l-4"}}[e][r]:{horizontal:{sm:"h-px",md:"h-0.5",lg:"h-1"},vertical:{sm:"w-px",md:"w-0.5",lg:"w-1"}}[e][r]}function it(e,t){switch(t){case "dashed":return "border-dashed";case "dotted":return "border-dotted";case "gradient":return e==="horizontal"?"bg-gradient-to-r from-transparent via-border to-transparent":"bg-gradient-to-b from-transparent via-border to-transparent";case "glass":return e==="horizontal"?"bg-gradient-to-r from-transparent via-white/30 to-transparent":"bg-gradient-to-b from-transparent via-white/30 to-transparent";default:return ""}}function hs(e,t){return e==="dashed"||e==="dotted"?{default:"border-border",muted:"border-muted",primary:"border-primary/30",secondary:"border-secondary"}[t]:{default:"bg-border",muted:"bg-muted",primary:"bg-primary/30",secondary:"bg-secondary"}[t]}var dt=X__default.default.forwardRef(({className:e,orientation:t="horizontal",variant:r="solid",size:o="md",spacing:n="md",color:a="default",...i},l)=>jsxRuntime.jsx("div",{ref:l,className:s("flex-shrink-0",ms[t],gs(t,r,o),r==="gradient"?it(t,r):hs(r,a),r!=="gradient"&&it(t,r),fs[t][n],e),...i}));dt.displayName="Divider";var bs=X__default.default.memo(dt);var ys=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-card text-card-foreground border border-border",outline:"bg-transparent border-2 border-border",elevated:"bg-card text-card-foreground shadow-lg border border-border"},shadow:{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"none"}}),Xe=X__default.default.forwardRef(({className:e,variant:t="default",shadow:r,padding:o="none",hoverable:n,...a},i)=>jsxRuntime.jsx("div",{ref:i,className:s(ys({variant:t,shadow:r,padding:o}),n&&"transition-shadow hover:shadow-lg cursor-pointer",e),...a}));Xe.displayName="Card";var ct=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("flex flex-col space-y-1 p-3",e),...t}));ct.displayName="CardHeader";var ut=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h3",{ref:r,className:s("text-base md:text-lg font-semibold leading-tight tracking-tight",e),...t}));ut.displayName="CardTitle";var pt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:s("text-sm text-muted-foreground",e),...t}));pt.displayName="CardDescription";var mt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("px-3 pb-3",e),...t}));mt.displayName="CardContent";var ft=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("flex items-center px-3 pb-3",e),...t}));ft.displayName="CardFooter";var ks=classVarianceAuthority.cva("transition-all duration-300",{variants:{style:{default:"bg-card text-card-foreground border border-border",solid:"bg-card text-card-foreground border border-border",glass:"bg-white/60 dark:bg-white/10 backdrop-blur-md border border-border/50 dark:border-white/20",outline:"bg-transparent border border-border",elevated:"bg-card text-card-foreground shadow-lg border border-border",neon:"bg-muted/50 dark:bg-background border border-cyan-300/30 dark:border-cyan-400/30 shadow-lg shadow-cyan-200/20 dark:shadow-cyan-400/20",holographic:"bg-gradient-to-br from-white/20 via-purple-500/20 to-cyan-500/20 backdrop-blur-sm border border-white/30",cyberpunk:"bg-card dark:bg-background border-2 border-pink-400 dark:border-pink-500 shadow-lg shadow-pink-300/30 dark:shadow-pink-500/30",minimal:"bg-card dark:bg-background border border-border shadow-sm",luxury:"bg-gradient-to-br from-amber-50 to-yellow-100 dark:from-amber-950 dark:to-yellow-950 border border-amber-200 dark:border-amber-800 shadow-xl"},effect:{none:"",glow:"shadow-2xl shadow-primary/20 dark:shadow-primary/20",shadow:"shadow-xl",gradient:"bg-gradient-to-r from-primary/10 via-purple-500/10 to-cyan-500/10",animated:"animate-pulse"},padding:{none:"p-0",small:"p-3",sm:"p-3",medium:"p-6",md:"p-6",large:"p-8",lg:"p-8",xl:"p-12",custom:""},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full",custom:""}},defaultVariants:{style:"default",effect:"none",padding:"md",rounded:"lg"}}),gt=X__default.default.forwardRef(({className:e,style:t="default",effect:r="none",transparency:o=1,blurIntensity:n=0,borderOpacity:a=1,shadowOpacity:i=1,glowIntensity:l=0,glowColor:d="blue",particleEffect:f=false,hoverEffect:g=false,animationEffect:c=false,padding:u="md",customPadding:h,rounded:m="lg",customRounded:p,background:x="solid",gradientColors:b=["#3B82F6","#8B5CF6"],patternType:T="dots",backgroundImage:v,backgroundVideo:y,interactive:w=false,hoverScale:D=1.05,hoverRotate:B=0,hoverGlow:k=false,children:P,...L},C)=>{let S=X__default.default.useMemo(()=>{switch(T){case "dots":return "radial-gradient(circle, #000 1px, transparent 1px)";case "lines":return "linear-gradient(45deg, #000 1px, transparent 1px)";case "grid":return "linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px)";case "waves":return "repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px)";default:return ""}},[T]),N=X__default.default.useMemo(()=>{let I={opacity:o};switch(n>0&&(I.backdropFilter=`blur(${n}px)`),a<1&&(I.borderColor=`rgba(0, 0, 0, ${a})`),i<1&&(I.boxShadow=`0 4px 6px -1px rgba(0, 0, 0, ${i*.1})`),l>0&&(I.boxShadow=`${I.boxShadow||""}, 0 0 ${l*10}px ${d}`),x){case "gradient":I.background=`linear-gradient(135deg, ${b.join(", ")})`;break;case "pattern":I.backgroundImage=S;break;case "image":v&&(I.backgroundImage=`url(${v})`,I.backgroundSize="cover",I.backgroundPosition="center");break;}return I},[o,n,a,i,l,d,x,b,S,v]),M=X__default.default.useMemo(()=>{if(!w)return "";let I=[];return D!==1&&I.push(`hover:scale-${D}`),B!==0&&I.push(`hover:rotate-${B}`),k&&I.push("hover:shadow-2xl hover:shadow-cyan-500/30"),I.join(" ")},[w,D,B,k]),V=X__default.default.useMemo(()=>s("panel-component",`panel-${t}`,`panel-effect-${r}`,ks({style:t,effect:r,padding:h?"custom":u,rounded:p?"custom":m}),h,p,M,e),[t,r,u,h,m,p,M,e]);return jsxRuntime.jsxs("div",{className:"relative",children:[x==="video"&&y&&jsxRuntime.jsx("video",{className:"absolute inset-0 w-full h-full object-cover rounded-lg",autoPlay:true,muted:true,loop:true,playsInline:true,children:jsxRuntime.jsx("source",{src:y,type:"video/mp4"})}),f&&jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none"}),jsxRuntime.jsx(Xe,{ref:C,className:V,style:N,...L,children:P}),c&&jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none"})]})});gt.displayName="Panel";var vt=X__default.default.forwardRef(({isSelectMode:e=false,totalCount:t=0,selectedCount:r=0,actions:o=[],selectModeActions:n=[],onToggleSelectMode:a,onToggleSelectAll:i,onCancelSelect:l,loading:d=false,className:f,...g},c)=>{let u=X.useCallback(m=>{switch(m){case "red":return "bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300";case "blue":return "bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300";case "green":return "bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300";default:return "bg-muted text-muted-foreground"}},[]),h=X.useCallback((m,p)=>jsxRuntime.jsxs(ae,{variant:m.variant||"outline",size:"sm",onClick:m.onClick,disabled:m.disabled||d,className:s("flex-1 sm:flex-initial",m.className),children:[m.icon&&jsxRuntime.jsx(E,{name:m.icon,className:"h-4 w-4 sm:h-3.5 sm:w-3.5 mr-1 sm:mr-1.5"}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:m.label}),jsxRuntime.jsx("span",{className:"sm:hidden",children:m.labelMobile||m.label}),m.badge&&m.badge.count>0&&jsxRuntime.jsx("span",{className:s("ml-1.5",u(m.badge.color),"px-1.5 py-0.5 rounded-full text-xs font-semibold"),children:m.badge.count})]},p),[u,d]);return jsxRuntime.jsx("div",{ref:c,className:s("mb-4 bg-background rounded-lg shadow-sm border border-border p-3 sm:p-4",f),...g,children:e?jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i&&jsxRuntime.jsxs(ae,{variant:"outline",size:"sm",onClick:i,className:"flex-1 sm:flex-initial min-w-[100px]",children:[jsxRuntime.jsx(E,{name:r===t?"square":"check",className:"h-4 w-4 sm:h-3.5 sm:w-3.5 mr-1 sm:mr-1.5"}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:r===t?"\uC804\uCCB4 \uD574\uC81C":"\uC804\uCCB4 \uC120\uD0DD"}),jsxRuntime.jsx("span",{className:"sm:hidden",children:r===t?"\uD574\uC81C":"\uC804\uCCB4"})]}),n.map((m,p)=>jsxRuntime.jsx("div",{className:s("flex-1 sm:flex-initial min-w-[100px]",m.className),children:h(m,`select-${p}`)},`select-action-${p}`)),l&&jsxRuntime.jsx(ae,{variant:"outline",size:"sm",onClick:l,className:"flex-1 sm:flex-initial min-w-[80px]",children:"\uCDE8\uC18C"})]}):jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a&&jsxRuntime.jsxs(ae,{variant:"outline",size:"sm",onClick:a,disabled:t===0,className:"flex-1 sm:flex-initial min-w-[80px] sm:min-w-[auto] px-2 sm:px-3",title:t===0?"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4":"\uC5EC\uB7EC \uD56D\uBAA9 \uC120\uD0DD",children:[jsxRuntime.jsx(E,{name:"check",className:"h-4 w-4 sm:h-3.5 sm:w-3.5"}),jsxRuntime.jsx("span",{className:"hidden sm:inline ml-1.5 sm:ml-2",children:"\uC120\uD0DD"})]}),o.map((m,p)=>jsxRuntime.jsx("div",{className:s("flex-1 sm:flex-initial min-w-[100px]",m.className),children:h(m,`action-${p}`)},`action-${p}`))]})})});vt.displayName="ActionToolbar";var Ts=X__default.default.memo(vt);var xr=X__default.default.forwardRef(({className:e,children:t,items:r,maxItems:o,showHomeIcon:n,homeLabel:a="Home",separator:i=jsxRuntime.jsx(E,{name:"chevronRight",className:"w-3 h-3 text-muted-foreground flex-shrink-0"}),variant:l="default",...d},f)=>{let g={default:"inline-flex items-center text-sm w-fit",subtle:"inline-flex items-center text-xs bg-background/40 backdrop-blur-md rounded-md px-3 py-2 border border-border/30 w-fit shadow-sm",transparent:"inline-flex items-center text-xs w-fit",glass:"inline-flex items-center text-xs bg-background/30 backdrop-blur-lg rounded-lg px-4 py-2 border border-border/25 w-fit shadow-lg"},u=(()=>{if(r){let m=[...r];if(o&&m.length>o){let p=m[0],x=m.slice(-(o-1));m=[p,{label:"...",href:void 0},...x];}return m.map((p,x)=>{let T=x===m.length-1&&!p.href;return jsxRuntime.jsxs(Ee,{href:p.href,isCurrent:T,children:[p.icon&&jsxRuntime.jsx(E,{name:p.icon,className:"w-4 h-4 mr-1"}),p.label]},x)})}return t?X__default.default.Children.map(t,(m,p)=>X__default.default.isValidElement(m)?jsxRuntime.jsxs("li",{className:"flex items-center",children:[m,p<X__default.default.Children.count(t)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:i})]},p):m):null})(),h=r?r.length:t?X__default.default.Children.count(t):0;return jsxRuntime.jsx("nav",{ref:f,"aria-label":"Breadcrumb",className:s(g[l],e),...d,children:jsxRuntime.jsxs("ol",{className:"inline-flex items-center",children:[n&&jsxRuntime.jsxs("li",{className:"flex items-center",children:[jsxRuntime.jsxs(Ee,{href:"/",children:[jsxRuntime.jsx(E,{name:"home",className:"w-4 h-4 mr-1"}),a]}),h>0&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:i})]}),r?u==null?void 0:u.map((m,p)=>jsxRuntime.jsxs("li",{className:"flex items-center",children:[m,p<((u==null?void 0:u.length)||0)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:i})]},p)):u]})})});xr.displayName="Breadcrumb";var Ee=X__default.default.forwardRef(({className:e,href:t,isCurrent:r=false,children:o,...n},a)=>r?jsxRuntime.jsx("span",{ref:a,"aria-current":"page",className:s("text-muted-foreground font-medium",e),...n,children:o}):t?jsxRuntime.jsx("a",{href:t,className:s("text-muted-foreground hover:text-foreground transition-colors",e),...n,children:o}):jsxRuntime.jsx("span",{ref:a,className:s("text-muted-foreground",e),...n,children:o}));Ee.displayName="BreadcrumbItem";var xt=X__default.default.forwardRef(({className:e,title:t,description:r,children:o,prevPage:n,nextPage:a,breadcrumbItems:i=[{label:"Components",href:"/components"}],...l},d)=>jsxRuntime.jsxs("div",{className:"relative min-h-screen",children:[jsxRuntime.jsx("div",{className:"fixed right-4 top-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:n&&jsxRuntime.jsx("a",{href:n.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uC774\uC804: ${n.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})})})}),jsxRuntime.jsx("div",{className:"fixed right-4 bottom-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:a&&jsxRuntime.jsx("a",{href:a.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uB2E4\uC74C: ${a.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})})}),jsxRuntime.jsx("div",{ref:d,className:s("container mx-auto px-4 py-8",e),...l,children:jsxRuntime.jsxs("div",{className:"max-w-4xl mx-auto",children:[jsxRuntime.jsx(xr,{className:"mb-6",children:i.map((f,g)=>jsxRuntime.jsx(Ee,{href:f.href,isCurrent:g===i.length-1,children:f.label},g))}),jsxRuntime.jsxs("div",{className:"mb-8",children:[jsxRuntime.jsx("h1",{className:"text-4xl font-bold mb-4",children:t}),jsxRuntime.jsx("p",{className:"text-lg text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"space-y-8",children:o}),jsxRuntime.jsx("div",{className:"mt-12 lg:hidden",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between py-4 border-t border-border",children:[n&&jsxRuntime.jsxs("a",{href:n.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsxRuntime.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),n.title]}),a&&jsxRuntime.jsxs("a",{href:a.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[a.title,jsxRuntime.jsx("svg",{className:"w-4 h-4 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})})]})})]}));xt.displayName="ComponentLayout";var Ms=classVarianceAuthority.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{default:"bg-[var(--badge-default-bg)] text-[var(--badge-default-text)] hover:opacity-80",secondary:"bg-[var(--badge-secondary-bg)] text-[var(--badge-secondary-text)] hover:opacity-80",destructive:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",error:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",outline:"bg-transparent text-[var(--badge-outline-text)] border border-[var(--badge-outline-border)] hover:bg-[var(--badge-outline-hover-bg)]",glass:"bg-[var(--badge-glass-bg)] backdrop-blur-sm border border-[var(--badge-glass-border)] text-[var(--badge-glass-text)] hover:opacity-80"}},defaultVariants:{variant:"default"}}),wt=X__default.default.memo(X__default.default.forwardRef(({className:e,variant:t="default",...r},o)=>jsxRuntime.jsx("div",{ref:o,className:s(Ms({variant:t}),e),...r})));wt.displayName="Badge";var Ls=classVarianceAuthority.cva("h-full rounded-full transition-all duration-300 ease-out",{variants:{variant:{default:"bg-foreground",success:"bg-[var(--progress-success)]",warning:"bg-[var(--progress-warning)]",error:"bg-[var(--progress-error)]",info:"bg-[var(--progress-info)]",glass:"bg-white/50 backdrop-blur-sm"}},defaultVariants:{variant:"default"}}),Is=classVarianceAuthority.cva("relative w-full overflow-hidden rounded-full",{variants:{variant:{default:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",success:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",warning:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",error:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",info:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",glass:"bg-white/10 backdrop-blur-sm border border-white/20 dark:bg-slate-800/10 dark:border-slate-700/50"},size:{sm:"h-2",md:"h-3",lg:"h-4"}},defaultVariants:{variant:"default",size:"md"}}),ue=X__default.default.forwardRef(({className:e,value:t=0,max:r=100,size:o="md",variant:n="default",showValue:a=false,animated:i=true,striped:l=false,label:d,description:f,...g},c)=>{let u=Math.min(Math.max(t/r*100,0),100);return jsxRuntime.jsxs("div",{className:s("w-full",e),...g,children:[(d||a)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),a&&jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[Math.round(u),"%"]})]}),jsxRuntime.jsx("div",{ref:c,className:Is({variant:n,size:o}),children:jsxRuntime.jsx("div",{className:s(Ls({variant:n}),l&&"bg-gradient-to-r from-transparent via-white/20 to-transparent bg-[length:20px_100%] animate-pulse",i&&"animate-pulse"),style:{width:`${u}%`,transition:i?"width 0.3s ease-out":"none"}})}),f&&jsxRuntime.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:f})]})});ue.displayName="Progress";var Ct=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"success",className:e,...t}));Ct.displayName="ProgressSuccess";var Tt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"warning",className:e,...t}));Tt.displayName="ProgressWarning";var Nt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"error",className:e,...t}));Nt.displayName="ProgressError";var St=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"info",className:e,...t}));St.displayName="ProgressInfo";var Ps=X__default.default.forwardRef(({title:e,className:t,...r},o)=>jsxRuntime.jsxs("div",{className:s("p-4 bg-card rounded-lg border border-border",t),children:[e&&jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-foreground mb-3",children:e}),jsxRuntime.jsx(ue,{ref:o,...r})]}));Ps.displayName="ProgressWrapper";var Mt=X__default.default.forwardRef(({className:e,children:t,...r},o)=>jsxRuntime.jsx("div",{ref:o,className:s("space-y-4",e),...r,children:t}));Mt.displayName="ProgressGroup";var As=classVarianceAuthority.cva("block",{variants:{variant:{text:"rounded w-full h-4",circular:"rounded-full w-10 h-10",rounded:"rounded-lg w-full h-[200px]",rectangular:"rounded-none w-full h-[200px]"},animation:{pulse:"animate-pulse bg-muted",wave:"bg-muted",shimmer:"bg-muted"}},defaultVariants:{variant:"text",animation:"pulse"}}),ye=X__default.default.forwardRef(({className:e,variant:t="text",width:r,height:o,animation:n="pulse",...a},i)=>{let l=()=>n==="wave"||n==="shimmer"?{background:"linear-gradient(90deg, hsl(var(--muted)) 0%, hsl(var(--muted-foreground) / 0.2) 50%, hsl(var(--muted)) 100%)",backgroundSize:"200% 100%",animation:"shimmer 1.5s ease-in-out infinite"}:{};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[(n==="wave"||n==="shimmer")&&jsxRuntime.jsx("style",{children:`
|
|
35
|
+
`,document.head.appendChild(j);}L.style.position="relative",L.appendChild(V),setTimeout(()=>{V.remove();},500);}}},[l,i,a,n,b,c]),v=X__default.default.useMemo(()=>({"--action-opacity":String(d),"--action-blur":`${f}px`,"--action-glow-size":`${g}px`,"--action-glow-color":c}),[d,f,g,c]),y=X__default.default.useMemo(()=>s("hua-action relative inline-flex items-center rounded-xl px-4 py-2 font-medium","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/60",u&&"cursor-wait opacity-80",h&&"justify-center",e),[e,u,h]);if("href"in p&&p.href){let{onClick:k,href:P,...L}=p;return jsxRuntime.jsx(ae,{ref:x,href:P,className:y,style:v,onClick:S=>{if(m||u){S.preventDefault(),S.stopPropagation();return}T(S),k==null||k(S);},"aria-busy":u||void 0,"aria-label":h?L["aria-label"]:void 0,"data-action":r,"data-feedback":o,"data-reduced-motion":b?"true":"false",disabled:m,...L,children:t})}let{onClick:w,...D}=p;return jsxRuntime.jsx(ae,{ref:x,className:y,style:v,onClick:k=>{m||u||(T(k),w==null||w(k));},disabled:m,"aria-busy":u||void 0,"aria-label":h?D["aria-label"]:void 0,"data-action":r,"data-feedback":o,"data-reduced-motion":b?"true":"false",...D,children:t})});Br.displayName="Action";var ar={error:"border-destructive focus-visible:ring-destructive",success:"border-green-500 focus-visible:ring-green-500"};var Go=classVarianceAuthority.cva("flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200 hover:border-accent-foreground hover:shadow-sm",{variants:{variant:{default:"border-input bg-background",outline:"border-2 border-input bg-transparent",filled:"border-transparent bg-secondary/50",glass:"border-white/20 bg-white/10 text-white placeholder:text-white/50 backdrop-blur-sm"}},defaultVariants:{variant:"default"}}),zr=X__default.default.forwardRef(({className:e,type:t,variant:r="default",error:o,success:n,...a},i)=>{let l=a["aria-invalid"],d=o||(l!==void 0?l:false);return jsxRuntime.jsx("input",{type:t,className:s(Go({variant:r}),d&&ar.error,n&&ar.success,e),ref:i,"aria-invalid":d||void 0,...a})});zr.displayName="Input";var $r=X__default.default.forwardRef(({value:e,defaultValue:t=0,min:r,max:o,step:n=1,onChange:a,disabled:i=false,size:l="md",showButtons:d=true,buttonLayout:f="horizontal",className:g,...c},u)=>{let[h,m]=X__default.default.useState(t),p=e!==void 0,x=p?e:h,b=X__default.default.useCallback(S=>{let N=S;r!==void 0&&(N=Math.max(r,N)),o!==void 0&&(N=Math.min(o,N)),p||m(N),a==null||a(N);},[p,r,o,a]),T=()=>{i||b(x+n);},v=()=>{i||b(x-n);},y=S=>{let N=S.target.value;if(N===""||N==="-")return;let M=parseFloat(N);isNaN(M)||(r!==void 0&&M<r?b(r):b(M));},w=S=>{var N;r!==void 0&&x<r&&b(r),o!==void 0&&x>o&&b(o),(N=c.onBlur)==null||N.call(c,S);},D=S=>{S.key==="ArrowUp"?(S.preventDefault(),T()):S.key==="ArrowDown"&&(S.preventDefault(),v());},k={sm:{input:"h-8 text-sm px-2 py-1",button:"w-8 h-8 text-sm",wrapper:"gap-1"},md:{input:"h-10 text-sm px-3 py-2",button:"w-10 h-10 text-sm",wrapper:"gap-2"},lg:{input:"h-12 text-base px-4 py-2.5",button:"w-12 h-12 text-base",wrapper:"gap-2"}}[l],P=s("flex items-center justify-center rounded-md border border-input bg-background","hover:bg-secondary hover:border-primary/50 active:scale-95","transition-all duration-150","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-background","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",k.button),L=r===void 0||x>r,C=o===void 0||x<o;return f==="vertical"?jsxRuntime.jsxs("div",{className:s("inline-flex items-center",k.wrapper,g),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[jsxRuntime.jsx("button",{type:"button",onClick:T,disabled:i||!C,className:s(P,"rounded-b-none h-[calc(50%-1px)]"),"aria-label":"Increase",children:jsxRuntime.jsx(qo,{className:"w-3 h-3"})}),jsxRuntime.jsx("button",{type:"button",onClick:v,disabled:i||!L,className:s(P,"rounded-t-none h-[calc(50%-1px)]"),"aria-label":"Decrease",children:jsxRuntime.jsx(Ko,{className:"w-3 h-3"})})]}),jsxRuntime.jsx("input",{ref:u,type:"text",inputMode:"numeric",pattern:r!==void 0&&r>=0?"[0-9]*":"-?[0-9]*",value:x,onChange:y,onKeyDown:D,onBlur:w,disabled:i,className:s("w-16 text-center rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",k.input),...c})]}):jsxRuntime.jsxs("div",{className:s("inline-flex items-center",k.wrapper,g),children:[d&&jsxRuntime.jsx("button",{type:"button",onClick:v,disabled:i||!L,className:P,"aria-label":"Decrease",children:jsxRuntime.jsx(Yo,{className:"w-3.5 h-3.5"})}),jsxRuntime.jsx("input",{ref:u,type:"text",inputMode:"numeric",pattern:r!==void 0&&r>=0?"[0-9]*":"-?[0-9]*",value:x,onChange:y,onKeyDown:D,onBlur:w,disabled:i,className:s("w-16 text-center rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",k.input),...c}),d&&jsxRuntime.jsx("button",{type:"button",onClick:T,disabled:i||!C,className:P,"aria-label":"Increase",children:jsxRuntime.jsx(Xo,{className:"w-3.5 h-3.5"})})]})});$r.displayName="NumberInput";function Yo({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})})}function Xo({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})}function qo({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})}function Ko({className:e}){return jsxRuntime.jsx("svg",{className:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}var Qo=classVarianceAuthority.cva("transition-colors duration-200",{variants:{variant:{default:"text-foreground hover:text-muted-foreground",primary:"text-primary hover:text-primary/80",secondary:"text-muted-foreground hover:text-foreground",ghost:"text-muted-foreground hover:text-foreground",underline:"text-primary hover:text-primary/80 underline hover:no-underline"},size:{sm:"text-sm",md:"text-base",lg:"text-lg"}},defaultVariants:{variant:"default",size:"md"}});function Zo({href:e,children:t,className:r,variant:o="default",size:n="md",external:a=false,onClick:i}){return jsxRuntime.jsx("a",{href:e,className:s(Qo({variant:o,size:n}),r),target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,onClick:i,children:t})}var jr={home:ssr.House,arrowLeft:ssr.ArrowLeft,arrowRight:ssr.ArrowRight,arrowUp:ssr.ArrowUp,arrowDown:ssr.ArrowDown,menu:ssr.List,close:ssr.X,search:ssr.MagnifyingGlass,settings:ssr.Gear,externalLink:ssr.ArrowSquareOut,chevronLeft:ssr.CaretLeft,chevronRight:ssr.CaretRight,chevronDown:ssr.CaretDown,chevronUp:ssr.CaretUp,edit:ssr.Pencil,delete:ssr.Trash,add:ssr.Plus,remove:ssr.Minus,download:ssr.Download,upload:ssr.Upload,refresh:ssr.ArrowClockwise,save:ssr.FloppyDisk,copy:ssr.Copy,loader:ssr.SpinnerGap,success:ssr.CheckCircle,error:ssr.XCircle,alertCircle:ssr.WarningCircle,warning:ssr.WarningCircle,info:ssr.Info,check:ssr.Check,circle:ssr.Circle,helpCircle:ssr.Question,user:ssr.User,users:ssr.Users,userPlus:ssr.UserPlus,logIn:ssr.SignIn,logOut:ssr.SignOut,eye:ssr.Eye,eyeOff:ssr.EyeSlash,chart:ssr.ChartBar,barChart:ssr.ChartBar,trendingUp:ssr.TrendUp,activity:ssr.Pulse,database:ssr.Database,zap:ssr.Lightning,fileText:ssr.FileText,file:ssr.File,folder:ssr.Folder,book:ssr.Book,bookOpen:ssr.BookOpen,mail:ssr.Envelope,message:ssr.ChatCircle,phone:ssr.Phone,image:ssr.Image,video:ssr.Video,camera:ssr.Camera,smile:ssr.Smiley,frown:ssr.SmileySad,meh:ssr.SmileyMeh,lock:ssr.Lock,unlock:ssr.LockOpen,shield:ssr.Shield,wallet:ssr.Wallet,key:ssr.Key,clock:ssr.Clock,calendar:ssr.Calendar,calendarPlus:ssr.CalendarPlus,bell:ssr.Bell,heart:ssr.Heart,star:ssr.Star,bookmark:ssr.Bookmark,share:ssr.Share,monitor:ssr.Monitor,sun:ssr.Sun,moon:ssr.Moon,lightbulb:ssr.Lightbulb,brain:ssr.Brain,flag:ssr.Flag,square:ssr.Square,sparkle:ssr.Sparkle,sparkles:ssr.Sparkle,globe:ssr.Globe,smartphone:ssr.DeviceMobile,deviceMobile:ssr.DeviceMobile,floppyDisk:ssr.FloppyDisk,ticket:ssr.Ticket,clipboard:ssr.Clipboard,wifi:ssr.WifiHigh,wifiOff:ssr.WifiSlash,cpu:ssr.Cpu,mask:ssr.MaskHappy,bold:ssr.TextB,italic:ssr.TextItalic,strikethrough:ssr.TextStrikethrough,heading:ssr.TextHOne,link:ssr.Link,code:ssr.Code,fileCode:ssr.FileCode,quote:ssr.Quotes,list:ssr.List,listOrdered:ssr.ListNumbers,minus:ssr.Minus},lr={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},dr={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"},za={navigation:["home","arrowLeft","arrowRight","arrowUp","arrowDown","menu","close","search","settings","externalLink","chevronLeft","chevronRight","chevronDown","chevronUp"],actions:["edit","delete","add","remove","download","upload","refresh","save","copy"],status:["loader","success","error","alertCircle","warning","info","check","circle"],user:["user","users","userPlus","logIn","logOut","eye","eyeOff"],data:["chart","barChart","trendingUp","activity","database","zap"],files:["fileText","file","folder","book"],communication:["mail","message","phone"],media:["image","video","camera"],emotions:["smile","frown","meh"],security:["lock","unlock","shield"],time:["clock","calendar"],ui:["bell","heart","star","bookmark","share"],theme:["monitor","sun","moon"]};function Yr(e){return !e||!/[-_]/.test(e)&&/^[a-z]/.test(e)?e:/^[A-Z]+$/.test(e)?e.toLowerCase():/^[A-Z]/.test(e)&&!/[-_]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e.split(/[-_]/).map((t,r)=>r===0?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join("")}var U=null,W=null;var me={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function Xr(){if(typeof window=="undefined")return null;if(!U)try{U=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return U}async function qr(){if(typeof window=="undefined")return null;if(!W)try{W=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return W}function Ge(e,t="phosphor"){let r=me[e];if(!r)return $a(e,t);let o=r[t];switch(t){case "phosphor":return !o||!U?null:(U==null?void 0:U[o])||null;case "lucide":return !o||!W?null:(W==null?void 0:W[o])||null;case "iconsax":{return null;}default:return null}}function $a(e,t){switch(t){case "phosphor":{if(!U)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),o=e.split(/(?=[A-Z])/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("");return (U==null?void 0:U[r])||(U==null?void 0:U[o])||(U==null?void 0:U[e])||null}case "lucide":{if(!W)return null;let r=e.charAt(0).toUpperCase()+e.slice(1),o=e.replace(/([A-Z])/g,n=>n===e[0]?n.toLowerCase():n);return (W==null?void 0:W[r])||(W==null?void 0:W[e])||(W==null?void 0:W[o])||null}case "iconsax":{return null;}default:return null}}function Kr(e,t){let r=me[e];if(r){let o=r[t];if(o)return o}return e}var fe={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function Va(e){if(typeof e!="string")throw new TypeError("iconName must be a string");return fe[e]||e}function Ua(e){if(typeof e!="string")throw new TypeError("iconName must be a string");return Object.entries(fe).filter(([t,r])=>r===e).map(([t])=>t)}function Jr(e){if(!e||typeof e!="string")return {normalized:e||"",wasAlias:false};let t=Yr(e),r=fe[e]||fe[t];return r?{normalized:r,wasAlias:true,originalAlias:e}:{normalized:t,wasAlias:false}}var te={set:"lucide",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"},Qr=e=>{switch(e){case "lucide":return 1.25;case "phosphor":return 1.25;case "iconsax":return 1.5;default:return 1.25}};var Zr=X.createContext(te);function et({set:e=te.set,weight:t=te.weight,iconsaxVariant:r=te.iconsaxVariant,size:o=te.size,color:n=te.color,strokeWidth:a=te.strokeWidth,children:i}){let l={set:e,weight:t,iconsaxVariant:r,size:o,color:n,strokeWidth:a};return jsxRuntime.jsx(Zr.Provider,{value:l,children:i})}function je(){return X.useContext(Zr)}var rt=X__default.default.forwardRef(({name:e,size:t,className:r,emotion:o,status:n,provider:a,weight:i,animated:l=false,pulse:d=false,spin:f=false,bounce:g=false,variant:c="default","aria-label":u,"aria-hidden":h},m)=>{var J,ne;let p=je(),x=a||p.set,b=t!=null?t:p.size,T=i||p.weight,v=p.color,y=(J=p.strokeWidth)!=null?J:1.25,w=(ne=p.iconsaxVariant)!=null?ne:"line",[D,B]=X__default.default.useState(false),[k,P]=X__default.default.useState(false);X__default.default.useEffect(()=>{B(true),x==="lucide"?qr().then(()=>P(true)):x==="phosphor"?Xr().then(()=>P(true)):P(true);},[x]);let L=X__default.default.useMemo(()=>{let j=o?lr[o]:n?dr[n]:e,{normalized:Se}=Jr(j),Ve=Kr(Se,x);return {normalized:Se,providerName:Ve}},[e,o,n,x]),C=L.normalized,S=X__default.default.useMemo(()=>{return null},[x,L.providerName,D,w]),N=Ue({"text-current":c==="default","text-primary":c==="primary","text-muted-foreground":c==="secondary"||c==="muted","text-green-600 dark:text-green-400":c==="success","text-yellow-600 dark:text-yellow-400":c==="warning","text-destructive":c==="error"});if(!D)return jsxRuntime.jsx("span",{style:{width:b,height:b},className:s(N,r),"aria-hidden":h!==void 0?h:true,"aria-label":u});let M=null;if(x==="phosphor"?(M=jr[C]||null,!M&&k&&(M=Ge(C,x))):x==="iconsax"?(M=S,M||(M=Ge(C,x))):M=Ge(C,x),!M)return x==="iconsax"&&true?process.env.NODE_ENV==="development"&&console.warn(`Icon "${C}" \u2014 iconsax resolver not registered. Use HuaProvider with icons.set='iconsax', or add: import '@hua-labs/ui/iconsax'`):console.warn(`Icon "${C}" not found for provider "${x}"`),jsxRuntime.jsx("span",{ref:m,className:s("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",N,r),style:{width:b,height:b},"aria-label":u||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${C}`,title:`Icon not found: ${C}`,children:jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let V={size:typeof b=="number"?b:void 0,width:b,height:b,color:v};x==="phosphor"?V.weight=T:V.strokeWidth=y;let I=Ue({"animate-pulse":d,"animate-spin":f,"animate-bounce":g,"transition-all duration-200 ease-in-out":l}),Y={};return u?(Y["aria-label"]=u,Y["aria-hidden"]=false):h!==void 0?Y["aria-hidden"]=h:Y["aria-hidden"]=true,jsxRuntime.jsx("span",{ref:m,className:s("inline-flex items-center justify-center",I,N,r),style:{width:b,height:b},...Y,children:M&&X__default.default.createElement(M,{...V,className:N,"aria-hidden":true})})});rt.displayName="Icon";var Ga=X__default.default.memo(rt,(e,t)=>e.name===t.name&&e.size===t.size&&e.className===t.className&&e.emotion===t.emotion&&e.status===t.status&&e.provider===t.provider&&e.animated===t.animated&&e.pulse===t.pulse&&e.spin===t.spin&&e.bounce===t.bounce&&e.variant===t.variant&&e.weight===t.weight&&e["aria-label"]===t["aria-label"]&&e["aria-hidden"]===t["aria-hidden"]),E=Ga;E.displayName="Icon";var ur=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"smile",...e}));ur.displayName="EmotionIcon";var pr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"info",...e}));pr.displayName="StatusIcon";var mr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...e}));mr.displayName="LoadingIcon";var fr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...e}));fr.displayName="SuccessIcon";var gr=X__default.default.forwardRef((e,t)=>jsxRuntime.jsx(E,{ref:t,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...e}));gr.displayName="ErrorIcon";var Xa=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"},variant:{default:"",glass:"ring-1 ring-white/30 backdrop-blur-sm"}},defaultVariants:{size:"md",variant:"default"}}),tt=X__default.default.forwardRef(({className:e,size:t="md",variant:r="default",src:o,alt:n,fallbackText:a,children:i,...l},d)=>{let[f,g]=X.useState(false),c=()=>a||i||(n?n.charAt(0).toUpperCase():"U"),u=o&&!f;return jsxRuntime.jsx("div",{ref:d,className:s(Xa({size:t,variant:r}),e),...l,children:u?jsxRuntime.jsx(br,{src:o,alt:n||"avatar",onError:()=>g(true)}):jsxRuntime.jsx(vr,{children:c()})})});tt.displayName="Avatar";var br=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("img",{ref:r,className:s("aspect-square h-full w-full object-cover object-center",e),...t}));br.displayName="AvatarImage";var vr=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("flex h-full w-full items-center justify-center rounded-full bg-primary text-primary-foreground font-semibold",e),...t}));vr.displayName="AvatarFallback";function Ka(...e){return X__default.default.useCallback(t=>{e.forEach(r=>{r&&(typeof r=="function"?r(t):r.current=t);});},e)}var ot=X__default.default.forwardRef(({className:e,isOpen:t,onClose:r,children:o,size:n="md",closable:a,closeOnOverlayClick:i=true,title:l,description:d,showBackdrop:f=true,backdropClassName:g,centered:c=true},u)=>{let h=a!=null?a:true,m=X__default.default.useRef(null),p=Ka(u,m);X__default.default.useEffect(()=>{let P=L=>{L.key==="Escape"&&r();};if(t){document.addEventListener("keydown",P);let L=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${L}px`;}return ()=>{document.removeEventListener("keydown",P),document.body.style.overflow="unset",document.body.style.paddingRight="unset";}},[t,r]);let x=P=>{i&&P.target===P.currentTarget&&r();},b={sm:"max-w-xs",md:"max-w-sm",lg:"max-w-md",xl:"max-w-lg","2xl":"max-w-xl","3xl":"max-w-2xl"},T=X__default.default.useId(),v=X__default.default.useId(),y=l?`modal-title-${T}`:void 0,w=d?`modal-description-${v}`:void 0,[D,B]=X__default.default.useState(false);if(X__default.default.useEffect(()=>{B(true);},[]),!t)return null;let k=jsxRuntime.jsxs("div",{className:s("fixed inset-0 z-50 overflow-y-auto",e),onClick:x,role:"dialog","aria-modal":"true","aria-labelledby":y,"aria-describedby":w,children:[f&&jsxRuntime.jsx("div",{className:s("fixed inset-0 bg-black/60 backdrop-blur-md transition-opacity duration-300 pointer-events-none",g)}),jsxRuntime.jsx("div",{className:s("flex h-full justify-center p-4",c?"items-center":"items-start pt-16"),children:jsxRuntime.jsxs("div",{ref:p,className:s("relative bg-[var(--modal-bg)] rounded-lg shadow-2xl border border-[var(--modal-border)] transform transition-all duration-300 ease-out",b[n]),style:{animation:"modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1)"},children:[l&&jsxRuntime.jsxs("div",{className:"relative z-10 px-6 pt-6 pb-4 border-b border-border/50",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-4 mb-2",children:[jsxRuntime.jsx("h2",{id:y,className:"text-xl font-semibold text-foreground flex-1 min-w-0",children:l}),h&&jsxRuntime.jsx("button",{onClick:r,className:"flex-shrink-0 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),d&&jsxRuntime.jsx("p",{id:w,className:"text-sm text-muted-foreground",children:d})]}),!l&&h&&jsxRuntime.jsx("button",{onClick:r,className:"absolute top-4 right-4 p-2 text-muted-foreground hover:text-foreground transition-all duration-200 rounded-full hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 z-20","aria-label":"\uB2EB\uAE30",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:`relative z-10 ${l?"px-6 mb-6":"p-6"}`,children:o})]})})]});return D&&typeof document!="undefined"?reactDom.createPortal(k,document.body):null});ot.displayName="Modal";var Za=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-6xl",xl:"max-w-7xl",full:"max-w-full"},padding:{none:"",sm:"px-3 sm:px-4 py-6 sm:py-8",md:"px-4 sm:px-6 py-8 sm:py-12",lg:"px-4 sm:px-6 lg:px-8 py-10 sm:py-16",xl:"px-6 sm:px-8 lg:px-12 py-12 sm:py-20"}},defaultVariants:{size:"lg",padding:"md"}}),nt=X__default.default.forwardRef(({className:e,size:t="lg",padding:r="md",centered:o=true,fluid:n=false,...a},i)=>jsxRuntime.jsx("div",{ref:i,className:s(Za({size:n?void 0:t,padding:r}),n&&"max-w-full",o&&"mx-auto",e),...a}));nt.displayName="Container";var os=classVarianceAuthority.cva("grid",{variants:{gap:{none:"gap-0",sm:"gap-4",md:"gap-6",lg:"gap-8",xl:"gap-12"}},defaultVariants:{gap:"md"}}),ns={1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",5:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-5",6:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-6",7:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-7",8:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-8",9:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-9",10:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-10",11:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-11",12:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-12"},as={none:"gap-x-0",sm:"gap-x-4",md:"gap-x-6",lg:"gap-x-8",xl:"gap-x-12"},ss={none:"gap-y-0",sm:"gap-y-4",md:"gap-y-6",lg:"gap-y-8",xl:"gap-y-12"},at=X__default.default.forwardRef(({className:e,cols:t=1,gap:r="md",gapX:o,gapY:n,responsive:a=true,...i},l)=>jsxRuntime.jsx("div",{ref:l,className:s(os({gap:o?void 0:r}),a?ns[t]:`grid-cols-${t}`,o&&as[o],n&&ss[n],e),...i}));at.displayName="Grid";var cs=classVarianceAuthority.cva("",{variants:{direction:{vertical:"flex flex-col",horizontal:"flex flex-row"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{direction:"vertical",align:"start",justify:"start"}}),us={vertical:{none:"",sm:"space-y-4",md:"space-y-6",lg:"space-y-8",xl:"space-y-12"},horizontal:{none:"",sm:"space-x-4",md:"space-x-6",lg:"space-x-8",xl:"space-x-12"}},st=X__default.default.forwardRef(({className:e,direction:t="vertical",spacing:r="md",align:o="start",justify:n="start",wrap:a=false,...i},l)=>jsxRuntime.jsx("div",{ref:l,className:s(cs({direction:t,align:o,justify:n}),us[t][r],a&&"flex-wrap",e),...i}));st.displayName="Stack";var ms={horizontal:"w-full",vertical:"h-full"},fs={horizontal:{none:"",sm:"my-4",md:"my-6",lg:"my-8",xl:"my-12"},vertical:{none:"",sm:"mx-4",md:"mx-6",lg:"mx-8",xl:"mx-12"}};function gs(e,t,r){return t==="dashed"||t==="dotted"?{horizontal:{sm:"border-t",md:"border-t-2",lg:"border-t-4"},vertical:{sm:"border-l",md:"border-l-2",lg:"border-l-4"}}[e][r]:{horizontal:{sm:"h-px",md:"h-0.5",lg:"h-1"},vertical:{sm:"w-px",md:"w-0.5",lg:"w-1"}}[e][r]}function it(e,t){switch(t){case "dashed":return "border-dashed";case "dotted":return "border-dotted";case "gradient":return e==="horizontal"?"bg-gradient-to-r from-transparent via-border to-transparent":"bg-gradient-to-b from-transparent via-border to-transparent";case "glass":return e==="horizontal"?"bg-gradient-to-r from-transparent via-white/30 to-transparent":"bg-gradient-to-b from-transparent via-white/30 to-transparent";default:return ""}}function hs(e,t){return e==="dashed"||e==="dotted"?{default:"border-border",muted:"border-muted",primary:"border-primary/30",secondary:"border-secondary"}[t]:{default:"bg-border",muted:"bg-muted",primary:"bg-primary/30",secondary:"bg-secondary"}[t]}var dt=X__default.default.forwardRef(({className:e,orientation:t="horizontal",variant:r="solid",size:o="md",spacing:n="md",color:a="default",...i},l)=>jsxRuntime.jsx("div",{ref:l,className:s("flex-shrink-0",ms[t],gs(t,r,o),r==="gradient"?it(t,r):hs(r,a),r!=="gradient"&&it(t,r),fs[t][n],e),...i}));dt.displayName="Divider";var bs=X__default.default.memo(dt);var ys=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-card text-card-foreground border border-border",outline:"bg-transparent border-2 border-border",elevated:"bg-card text-card-foreground shadow-lg border border-border"},shadow:{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"none"}}),Xe=X__default.default.forwardRef(({className:e,variant:t="default",shadow:r,padding:o="none",hoverable:n,...a},i)=>jsxRuntime.jsx("div",{ref:i,className:s(ys({variant:t,shadow:r,padding:o}),"transition-[transform,box-shadow,border-color] duration-200 ease-out",n&&"hover:-translate-y-0.5 hover:shadow-lg hover:border-primary/30 cursor-pointer active:translate-y-0 active:shadow-md",e),...a}));Xe.displayName="Card";var ct=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("flex flex-col space-y-1 p-3",e),...t}));ct.displayName="CardHeader";var ut=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h3",{ref:r,className:s("text-base md:text-lg font-semibold leading-tight tracking-tight",e),...t}));ut.displayName="CardTitle";var pt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:s("text-sm text-muted-foreground",e),...t}));pt.displayName="CardDescription";var mt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("px-3 pb-3",e),...t}));mt.displayName="CardContent";var ft=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:s("flex items-center px-3 pb-3",e),...t}));ft.displayName="CardFooter";var ks=classVarianceAuthority.cva("transition-all duration-300",{variants:{style:{default:"bg-card text-card-foreground border border-border",solid:"bg-card text-card-foreground border border-border",glass:"bg-white/60 dark:bg-white/10 backdrop-blur-md border border-border/50 dark:border-white/20",outline:"bg-transparent border border-border",elevated:"bg-card text-card-foreground shadow-lg border border-border",neon:"bg-muted/50 dark:bg-background border border-cyan-300/30 dark:border-cyan-400/30 shadow-lg shadow-cyan-200/20 dark:shadow-cyan-400/20",holographic:"bg-gradient-to-br from-white/20 via-purple-500/20 to-cyan-500/20 backdrop-blur-sm border border-white/30",cyberpunk:"bg-card dark:bg-background border-2 border-pink-400 dark:border-pink-500 shadow-lg shadow-pink-300/30 dark:shadow-pink-500/30",minimal:"bg-card dark:bg-background border border-border shadow-sm",luxury:"bg-gradient-to-br from-amber-50 to-yellow-100 dark:from-amber-950 dark:to-yellow-950 border border-amber-200 dark:border-amber-800 shadow-xl"},effect:{none:"",glow:"shadow-2xl shadow-primary/20 dark:shadow-primary/20",shadow:"shadow-xl",gradient:"bg-gradient-to-r from-primary/10 via-purple-500/10 to-cyan-500/10",animated:"animate-pulse"},padding:{none:"p-0",small:"p-3",sm:"p-3",medium:"p-6",md:"p-6",large:"p-8",lg:"p-8",xl:"p-12",custom:""},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full",custom:""}},defaultVariants:{style:"default",effect:"none",padding:"md",rounded:"lg"}}),gt=X__default.default.forwardRef(({className:e,style:t="default",effect:r="none",transparency:o=1,blurIntensity:n=0,borderOpacity:a=1,shadowOpacity:i=1,glowIntensity:l=0,glowColor:d="blue",particleEffect:f=false,hoverEffect:g=false,animationEffect:c=false,padding:u="md",customPadding:h,rounded:m="lg",customRounded:p,background:x="solid",gradientColors:b=["#3B82F6","#8B5CF6"],patternType:T="dots",backgroundImage:v,backgroundVideo:y,interactive:w=false,hoverScale:D=1.05,hoverRotate:B=0,hoverGlow:k=false,children:P,...L},C)=>{let S=X__default.default.useMemo(()=>{switch(T){case "dots":return "radial-gradient(circle, #000 1px, transparent 1px)";case "lines":return "linear-gradient(45deg, #000 1px, transparent 1px)";case "grid":return "linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px)";case "waves":return "repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px)";default:return ""}},[T]),N=X__default.default.useMemo(()=>{let I={opacity:o};switch(n>0&&(I.backdropFilter=`blur(${n}px)`),a<1&&(I.borderColor=`rgba(0, 0, 0, ${a})`),i<1&&(I.boxShadow=`0 4px 6px -1px rgba(0, 0, 0, ${i*.1})`),l>0&&(I.boxShadow=`${I.boxShadow||""}, 0 0 ${l*10}px ${d}`),x){case "gradient":I.background=`linear-gradient(135deg, ${b.join(", ")})`;break;case "pattern":I.backgroundImage=S;break;case "image":v&&(I.backgroundImage=`url(${v})`,I.backgroundSize="cover",I.backgroundPosition="center");break;}return I},[o,n,a,i,l,d,x,b,S,v]),M=X__default.default.useMemo(()=>{if(!w)return "";let I=[];return D!==1&&I.push(`hover:scale-${D}`),B!==0&&I.push(`hover:rotate-${B}`),k&&I.push("hover:shadow-2xl hover:shadow-cyan-500/30"),I.join(" ")},[w,D,B,k]),V=X__default.default.useMemo(()=>s("panel-component",`panel-${t}`,`panel-effect-${r}`,ks({style:t,effect:r,padding:h?"custom":u,rounded:p?"custom":m}),h,p,M,e),[t,r,u,h,m,p,M,e]);return jsxRuntime.jsxs("div",{className:"relative",children:[x==="video"&&y&&jsxRuntime.jsx("video",{className:"absolute inset-0 w-full h-full object-cover rounded-lg",autoPlay:true,muted:true,loop:true,playsInline:true,children:jsxRuntime.jsx("source",{src:y,type:"video/mp4"})}),f&&jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none"}),jsxRuntime.jsx(Xe,{ref:C,className:V,style:N,...L,children:P}),c&&jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none"})]})});gt.displayName="Panel";var vt=X__default.default.forwardRef(({isSelectMode:e=false,totalCount:t=0,selectedCount:r=0,actions:o=[],selectModeActions:n=[],onToggleSelectMode:a,onToggleSelectAll:i,onCancelSelect:l,loading:d=false,className:f,...g},c)=>{let u=X.useCallback(m=>{switch(m){case "red":return "bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300";case "blue":return "bg-indigo-100 dark:bg-indigo-900 text-indigo-700 dark:text-indigo-300";case "green":return "bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300";default:return "bg-muted text-muted-foreground"}},[]),h=X.useCallback((m,p)=>jsxRuntime.jsxs(ae,{variant:m.variant||"outline",size:"sm",onClick:m.onClick,disabled:m.disabled||d,className:s("flex-1 sm:flex-initial",m.className),children:[m.icon&&jsxRuntime.jsx(E,{name:m.icon,className:"h-4 w-4 sm:h-3.5 sm:w-3.5 mr-1 sm:mr-1.5"}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:m.label}),jsxRuntime.jsx("span",{className:"sm:hidden",children:m.labelMobile||m.label}),m.badge&&m.badge.count>0&&jsxRuntime.jsx("span",{className:s("ml-1.5",u(m.badge.color),"px-1.5 py-0.5 rounded-full text-xs font-semibold"),children:m.badge.count})]},p),[u,d]);return jsxRuntime.jsx("div",{ref:c,className:s("mb-4 bg-background rounded-lg shadow-sm border border-border p-3 sm:p-4",f),...g,children:e?jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[i&&jsxRuntime.jsxs(ae,{variant:"outline",size:"sm",onClick:i,className:"flex-1 sm:flex-initial min-w-[100px]",children:[jsxRuntime.jsx(E,{name:r===t?"square":"check",className:"h-4 w-4 sm:h-3.5 sm:w-3.5 mr-1 sm:mr-1.5"}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:r===t?"\uC804\uCCB4 \uD574\uC81C":"\uC804\uCCB4 \uC120\uD0DD"}),jsxRuntime.jsx("span",{className:"sm:hidden",children:r===t?"\uD574\uC81C":"\uC804\uCCB4"})]}),n.map((m,p)=>jsxRuntime.jsx("div",{className:s("flex-1 sm:flex-initial min-w-[100px]",m.className),children:h(m,`select-${p}`)},`select-action-${p}`)),l&&jsxRuntime.jsx(ae,{variant:"outline",size:"sm",onClick:l,className:"flex-1 sm:flex-initial min-w-[80px]",children:"\uCDE8\uC18C"})]}):jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a&&jsxRuntime.jsxs(ae,{variant:"outline",size:"sm",onClick:a,disabled:t===0,className:"flex-1 sm:flex-initial min-w-[80px] sm:min-w-[auto] px-2 sm:px-3",title:t===0?"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4":"\uC5EC\uB7EC \uD56D\uBAA9 \uC120\uD0DD",children:[jsxRuntime.jsx(E,{name:"check",className:"h-4 w-4 sm:h-3.5 sm:w-3.5"}),jsxRuntime.jsx("span",{className:"hidden sm:inline ml-1.5 sm:ml-2",children:"\uC120\uD0DD"})]}),o.map((m,p)=>jsxRuntime.jsx("div",{className:s("flex-1 sm:flex-initial min-w-[100px]",m.className),children:h(m,`action-${p}`)},`action-${p}`))]})})});vt.displayName="ActionToolbar";var Ts=X__default.default.memo(vt);var xr=X__default.default.forwardRef(({className:e,children:t,items:r,maxItems:o,showHomeIcon:n,homeLabel:a="Home",separator:i=jsxRuntime.jsx(E,{name:"chevronRight",className:"w-3 h-3 text-muted-foreground flex-shrink-0"}),variant:l="default",...d},f)=>{let g={default:"inline-flex items-center text-sm w-fit",subtle:"inline-flex items-center text-xs bg-background/40 backdrop-blur-md rounded-md px-3 py-2 border border-border/30 w-fit shadow-sm",transparent:"inline-flex items-center text-xs w-fit",glass:"inline-flex items-center text-xs bg-background/30 backdrop-blur-lg rounded-lg px-4 py-2 border border-border/25 w-fit shadow-lg"},u=(()=>{if(r){let m=[...r];if(o&&m.length>o){let p=m[0],x=m.slice(-(o-1));m=[p,{label:"...",href:void 0},...x];}return m.map((p,x)=>{let T=x===m.length-1&&!p.href;return jsxRuntime.jsxs(Ee,{href:p.href,isCurrent:T,children:[p.icon&&jsxRuntime.jsx(E,{name:p.icon,className:"w-4 h-4 mr-1"}),p.label]},x)})}return t?X__default.default.Children.map(t,(m,p)=>X__default.default.isValidElement(m)?jsxRuntime.jsxs("li",{className:"flex items-center",children:[m,p<X__default.default.Children.count(t)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:i})]},p):m):null})(),h=r?r.length:t?X__default.default.Children.count(t):0;return jsxRuntime.jsx("nav",{ref:f,"aria-label":"Breadcrumb",className:s(g[l],e),...d,children:jsxRuntime.jsxs("ol",{className:"inline-flex items-center",children:[n&&jsxRuntime.jsxs("li",{className:"flex items-center",children:[jsxRuntime.jsxs(Ee,{href:"/",children:[jsxRuntime.jsx(E,{name:"home",className:"w-4 h-4 mr-1"}),a]}),h>0&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:i})]}),r?u==null?void 0:u.map((m,p)=>jsxRuntime.jsxs("li",{className:"flex items-center",children:[m,p<((u==null?void 0:u.length)||0)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:i})]},p)):u]})})});xr.displayName="Breadcrumb";var Ee=X__default.default.forwardRef(({className:e,href:t,isCurrent:r=false,children:o,...n},a)=>r?jsxRuntime.jsx("span",{ref:a,"aria-current":"page",className:s("text-muted-foreground font-medium",e),...n,children:o}):t?jsxRuntime.jsx("a",{href:t,className:s("text-muted-foreground hover:text-foreground transition-colors",e),...n,children:o}):jsxRuntime.jsx("span",{ref:a,className:s("text-muted-foreground",e),...n,children:o}));Ee.displayName="BreadcrumbItem";var xt=X__default.default.forwardRef(({className:e,title:t,description:r,children:o,prevPage:n,nextPage:a,breadcrumbItems:i=[{label:"Components",href:"/components"}],...l},d)=>jsxRuntime.jsxs("div",{className:"relative min-h-screen",children:[jsxRuntime.jsx("div",{className:"fixed right-4 top-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:n&&jsxRuntime.jsx("a",{href:n.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uC774\uC804: ${n.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})})})}),jsxRuntime.jsx("div",{className:"fixed right-4 bottom-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:a&&jsxRuntime.jsx("a",{href:a.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uB2E4\uC74C: ${a.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})})}),jsxRuntime.jsx("div",{ref:d,className:s("container mx-auto px-4 py-8",e),...l,children:jsxRuntime.jsxs("div",{className:"max-w-4xl mx-auto",children:[jsxRuntime.jsx(xr,{className:"mb-6",children:i.map((f,g)=>jsxRuntime.jsx(Ee,{href:f.href,isCurrent:g===i.length-1,children:f.label},g))}),jsxRuntime.jsxs("div",{className:"mb-8",children:[jsxRuntime.jsx("h1",{className:"text-4xl font-bold mb-4",children:t}),jsxRuntime.jsx("p",{className:"text-lg text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"space-y-8",children:o}),jsxRuntime.jsx("div",{className:"mt-12 lg:hidden",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between py-4 border-t border-border",children:[n&&jsxRuntime.jsxs("a",{href:n.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsxRuntime.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),n.title]}),a&&jsxRuntime.jsxs("a",{href:a.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[a.title,jsxRuntime.jsx("svg",{className:"w-4 h-4 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})})]})})]}));xt.displayName="ComponentLayout";var Ms=classVarianceAuthority.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{default:"bg-[var(--badge-default-bg)] text-[var(--badge-default-text)] hover:opacity-80",secondary:"bg-[var(--badge-secondary-bg)] text-[var(--badge-secondary-text)] hover:opacity-80",destructive:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",error:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",outline:"bg-transparent text-[var(--badge-outline-text)] border border-[var(--badge-outline-border)] hover:bg-[var(--badge-outline-hover-bg)]",glass:"bg-[var(--badge-glass-bg)] backdrop-blur-sm border border-[var(--badge-glass-border)] text-[var(--badge-glass-text)] hover:opacity-80"}},defaultVariants:{variant:"default"}}),wt=X__default.default.memo(X__default.default.forwardRef(({className:e,variant:t="default",...r},o)=>jsxRuntime.jsx("div",{ref:o,className:s(Ms({variant:t}),e),...r})));wt.displayName="Badge";var Ls=classVarianceAuthority.cva("h-full rounded-full transition-all duration-300 ease-out",{variants:{variant:{default:"bg-foreground",success:"bg-[var(--progress-success)]",warning:"bg-[var(--progress-warning)]",error:"bg-[var(--progress-error)]",info:"bg-[var(--progress-info)]",glass:"bg-white/50 backdrop-blur-sm"}},defaultVariants:{variant:"default"}}),Is=classVarianceAuthority.cva("relative w-full overflow-hidden rounded-full",{variants:{variant:{default:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",success:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",warning:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",error:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",info:"bg-[var(--progress-track)] dark:bg-[var(--progress-track)]",glass:"bg-white/10 backdrop-blur-sm border border-white/20 dark:bg-slate-800/10 dark:border-slate-700/50"},size:{sm:"h-2",md:"h-3",lg:"h-4"}},defaultVariants:{variant:"default",size:"md"}}),ue=X__default.default.forwardRef(({className:e,value:t=0,max:r=100,size:o="md",variant:n="default",showValue:a=false,animated:i=true,striped:l=false,label:d,description:f,...g},c)=>{let u=Math.min(Math.max(t/r*100,0),100);return jsxRuntime.jsxs("div",{className:s("w-full",e),...g,children:[(d||a)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),a&&jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[Math.round(u),"%"]})]}),jsxRuntime.jsx("div",{ref:c,className:Is({variant:n,size:o}),children:jsxRuntime.jsx("div",{className:s(Ls({variant:n}),l&&"bg-gradient-to-r from-transparent via-white/20 to-transparent bg-[length:20px_100%] animate-pulse",i&&"animate-pulse"),style:{width:`${u}%`,transition:i?"width 0.3s ease-out":"none"}})}),f&&jsxRuntime.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:f})]})});ue.displayName="Progress";var Ct=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"success",className:e,...t}));Ct.displayName="ProgressSuccess";var Tt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"warning",className:e,...t}));Tt.displayName="ProgressWarning";var Nt=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"error",className:e,...t}));Nt.displayName="ProgressError";var St=X__default.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ue,{ref:r,variant:"info",className:e,...t}));St.displayName="ProgressInfo";var Ps=X__default.default.forwardRef(({title:e,className:t,...r},o)=>jsxRuntime.jsxs("div",{className:s("p-4 bg-card rounded-lg border border-border",t),children:[e&&jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-foreground mb-3",children:e}),jsxRuntime.jsx(ue,{ref:o,...r})]}));Ps.displayName="ProgressWrapper";var Mt=X__default.default.forwardRef(({className:e,children:t,...r},o)=>jsxRuntime.jsx("div",{ref:o,className:s("space-y-4",e),...r,children:t}));Mt.displayName="ProgressGroup";var As=classVarianceAuthority.cva("block",{variants:{variant:{text:"rounded w-full h-4",circular:"rounded-full w-10 h-10",rounded:"rounded-lg w-full h-[200px]",rectangular:"rounded-none w-full h-[200px]"},animation:{pulse:"animate-pulse bg-muted",wave:"bg-muted",shimmer:"bg-muted"}},defaultVariants:{variant:"text",animation:"pulse"}}),ye=X__default.default.forwardRef(({className:e,variant:t="text",width:r,height:o,animation:n="pulse",...a},i)=>{let l=()=>n==="wave"||n==="shimmer"?{background:"linear-gradient(90deg, hsl(var(--muted)) 0%, hsl(var(--muted-foreground) / 0.2) 50%, hsl(var(--muted)) 100%)",backgroundSize:"200% 100%",animation:"shimmer 1.5s ease-in-out infinite"}:{};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[(n==="wave"||n==="shimmer")&&jsxRuntime.jsx("style",{children:`
|
|
36
36
|
@keyframes shimmer {
|
|
37
37
|
0% { background-position: 200% 0; }
|
|
38
38
|
100% { background-position: -200% 0; }
|