UNPKG

agentela-design-system

Version:

A dark-mode first React component library with plug-and-play preset components for rapid dashboard development

1 lines 568 kB
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from"react";import a,{useMemo as i,useLayoutEffect as o,useEffect as s,isValidElement as l,Children as c,forwardRef as u,useContext as d,createContext as f,PureComponent as p,useState as h,useCallback as m,cloneElement as g,useRef as y,createElement as v,useImperativeHandle as b,Component as w}from"react";import{Slot as x}from"@radix-ui/react-slot";import*as O from"@radix-ui/react-label";import*as N from"@radix-ui/react-separator";import*as E from"@radix-ui/react-avatar";import{ChevronRight as k,Check as S,Circle as A,User as P,CreditCard as j,Bell as T,LogOut as C,MessageCircle as M,Activity as D,TrendingUp as _,PieChart as I,BarChart as R,Key as z,Lock as L,Globe as B,Smartphone as $,Monitor as F,BookOpen as K,Zap as V,BrainCircuit as U,CheckCircle as W,Shield as H,Award as q,CheckSquare as G,Beaker as Y,FileText as X,Folder as Z,Building as J,Clock as Q,Calendar as ee,Target as te,Database as re,Terminal as ne,Code as ae,GitCommit as ie,GitBranch as oe,UserPlus as se,Users as le,Filter as ce,Search as ue,Settings as de,Home as fe,ChevronDown as pe,ChevronUp as he,MoreHorizontal as me,X as ge,Dot as ye,ChevronLeft as ve,GripVertical as be,ChevronsUpDown as we,Plus as xe,Upload as Oe,Download as Ne,RefreshCw as Ee,Menu as ke}from"lucide-react";import*as Se from"@radix-ui/react-dropdown-menu";import*as Ae from"@radix-ui/react-select";import*as Pe from"@radix-ui/react-toggle";import*as je from"@radix-ui/react-checkbox";import*as Te from"@radix-ui/react-switch";import*as Ce from"@radix-ui/react-tabs";import*as Me from"@radix-ui/react-progress";import*as De from"@radix-ui/react-accordion";import*as _e from"@radix-ui/react-alert-dialog";import{DayPicker as Ie}from"react-day-picker";import*as Re from"@radix-ui/react-collapsible";import*as ze from"@radix-ui/react-dialog";import{Primitive as Le}from"@radix-ui/react-primitive";import{useId as Be}from"@radix-ui/react-id";import{composeRefs as $e}from"@radix-ui/react-compose-refs";import*as Fe from"@radix-ui/react-context-menu";import{useFormContext as Ke,FormProvider as Ve,Controller as Ue}from"react-hook-form";import*as We from"@radix-ui/react-hover-card";import*as He from"@radix-ui/react-popover";import*as qe from"@radix-ui/react-radio-group";import*as Ge from"react-resizable-panels";import*as Ye from"@radix-ui/react-scroll-area";import*as Xe from"@radix-ui/react-slider";import Ze,{createPortal as Je}from"react-dom";import*as Qe from"@radix-ui/react-toast";import*as et from"@radix-ui/react-toggle-group";import*as tt from"@radix-ui/react-tooltip";import{isFragment as rt}from"react-is";import{Provider as nt}from"react-redux";function at(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=at(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function it(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=at(e))&&(n&&(n+=" "),n+=t);return n}const ot=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,st=it,lt=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return st(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const o=ot(t)||ot(n);return a[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):{...i,...s}[t]===r})?[...e,r,n]:e},[]);return st(e,o,l,null==r?void 0:r.class,null==r?void 0:r.className)},ct=e=>{const t=pt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),ut(r,t)||ft(e)},getConflictingClassGroupIds:(e,t)=>{const a=r[e]||[];return t&&n[e]?[...a,...n[e]]:a}}},ut=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?ut(e.slice(1),n):void 0;if(a)return a;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},dt=/^\[(.+)\]$/,ft=e=>{if(dt.test(e)){const t=dt.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},pt=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)ht(r[e],n,e,t);return n},ht=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:mt(t,e)).classGroupId=r)}if("function"==typeof e)return gt(e)?void ht(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,a])=>{ht(a,mt(t,e),r,n)})})},mt=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},gt=e=>e.isThemeGetter,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):a(e,t)}}},vt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,a=0,i=0;for(let o=0;o<e.length;o++){let s=e[o];if(0===n&&0===a){if(":"===s){t.push(e.slice(i,o)),i=o+1;continue}if("/"===s){r=o;continue}}"["===s?n++:"]"===s?n--:"("===s?a++:")"===s&&a--}const o=0===t.length?e:e.substring(i),s=bt(o);return{modifiers:t,hasImportantModifier:s!==o,baseClassName:s,maybePostfixModifierPosition:r&&r>i?r-i:void 0}};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},bt=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,wt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach(e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)}),r.push(...n.sort()),r}},xt=/\s+/;function Ot(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Nt(e))&&(n&&(n+=" "),n+=t);return n}const Nt=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Nt(e[n]))&&(r&&(r+=" "),r+=t);return r};function Et(e,...t){let r,n,a,i=function(s){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:yt(e.cacheSize),parseClassName:vt(e),sortModifiers:wt(e),...ct(e)}))(l),n=r.cache.get,a=r.cache.set,i=o,o(s)};function o(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],s=e.trim().split(xt);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=n(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=n(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(u).join(":"),y=d?g+"!":g,v=y+m;if(o.includes(v))continue;o.push(v);const b=a(m,h);for(let e=0;e<b.length;++e){const t=b[e];o.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return a(e,i),i}return function(){return i(Ot.apply(null,arguments))}}const kt=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},St=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,At=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Pt=/^\d+\/\d+$/,jt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_t=e=>Pt.test(e),It=e=>!!e&&!Number.isNaN(Number(e)),Rt=e=>!!e&&Number.isInteger(Number(e)),zt=e=>e.endsWith("%")&&It(e.slice(0,-1)),Lt=e=>jt.test(e),Bt=()=>!0,$t=e=>Tt.test(e)&&!Ct.test(e),Ft=()=>!1,Kt=e=>Mt.test(e),Vt=e=>Dt.test(e),Ut=e=>!Ht(e)&&!Jt(e),Wt=e=>ir(e,cr,Ft),Ht=e=>St.test(e),qt=e=>ir(e,ur,$t),Gt=e=>ir(e,dr,It),Yt=e=>ir(e,sr,Ft),Xt=e=>ir(e,lr,Vt),Zt=e=>ir(e,pr,Kt),Jt=e=>At.test(e),Qt=e=>or(e,ur),er=e=>or(e,fr),tr=e=>or(e,sr),rr=e=>or(e,cr),nr=e=>or(e,lr),ar=e=>or(e,pr,!0),ir=(e,t,r)=>{const n=St.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},or=(e,t,r=!1)=>{const n=At.exec(e);return!!n&&(n[1]?t(n[1]):r)},sr=e=>"position"===e||"percentage"===e,lr=e=>"image"===e||"url"===e,cr=e=>"length"===e||"size"===e||"bg-size"===e,ur=e=>"length"===e,dr=e=>"number"===e,fr=e=>"family-name"===e,pr=e=>"shadow"===e,hr=Et(()=>{const e=kt("color"),t=kt("font"),r=kt("text"),n=kt("font-weight"),a=kt("tracking"),i=kt("leading"),o=kt("breakpoint"),s=kt("container"),l=kt("spacing"),c=kt("radius"),u=kt("shadow"),d=kt("inset-shadow"),f=kt("text-shadow"),p=kt("drop-shadow"),h=kt("blur"),m=kt("perspective"),g=kt("aspect"),y=kt("ease"),v=kt("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Jt,Ht],w=()=>[Jt,Ht,l],x=()=>[_t,"full","auto",...w()],O=()=>[Rt,"none","subgrid",Jt,Ht],N=()=>["auto",{span:["full",Rt,Jt,Ht]},Rt,Jt,Ht],E=()=>[Rt,"auto",Jt,Ht],k=()=>["auto","min","max","fr",Jt,Ht],S=()=>["auto",...w()],A=()=>[_t,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],P=()=>[e,Jt,Ht],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",tr,Yt,{position:[Jt,Ht]}],T=()=>["auto","cover","contain",rr,Wt,{size:[Jt,Ht]}],C=()=>[zt,Qt,qt],M=()=>["","none","full",c,Jt,Ht],D=()=>["",It,Qt,qt],_=()=>[It,zt,tr,Yt],I=()=>["","none",h,Jt,Ht],R=()=>["none",It,Jt,Ht],z=()=>["none",It,Jt,Ht],L=()=>[It,Jt,Ht],B=()=>[_t,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lt],breakpoint:[Lt],color:[Bt],container:[Lt],"drop-shadow":[Lt],ease:["in","out","in-out"],font:[Ut],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lt],shadow:[Lt],spacing:["px",It],text:[Lt],"text-shadow":[Lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_t,Ht,Jt,g]}],container:["container"],columns:[{columns:[It,Ht,Jt,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Rt,"auto",Jt,Ht]}],basis:[{basis:[_t,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[It,_t,"auto","initial","none",Ht]}],grow:[{grow:["",It,Jt,Ht]}],shrink:[{shrink:["",It,Jt,Ht]}],order:[{order:[Rt,"first","last","none",Jt,Ht]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[s,"screen",...A()]}],"min-w":[{"min-w":[s,"screen","none",...A()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",r,Qt,qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Jt,Gt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zt,Ht]}],"font-family":[{font:[er,Ht,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Jt,Ht]}],"line-clamp":[{"line-clamp":[It,"none",Jt,Gt]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",Jt,Ht]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Jt,Ht]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[It,"from-font","auto",Jt,qt]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[It,"auto",Jt,Ht]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Jt,Ht]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Jt,Ht]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rt,Jt,Ht],radial:["",Jt,Ht],conic:[Rt,Jt,Ht]},nr,Xt]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[It,Jt,Ht]}],"outline-w":[{outline:["",It,Qt,qt]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,ar,Zt]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,ar,Zt]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[It,qt]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,ar,Zt]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[It,Jt,Ht]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[It]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Jt,Ht]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[It]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Jt,Ht]}],filter:[{filter:["","none",Jt,Ht]}],blur:[{blur:I()}],brightness:[{brightness:[It,Jt,Ht]}],contrast:[{contrast:[It,Jt,Ht]}],"drop-shadow":[{"drop-shadow":["","none",p,ar,Zt]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",It,Jt,Ht]}],"hue-rotate":[{"hue-rotate":[It,Jt,Ht]}],invert:[{invert:["",It,Jt,Ht]}],saturate:[{saturate:[It,Jt,Ht]}],sepia:[{sepia:["",It,Jt,Ht]}],"backdrop-filter":[{"backdrop-filter":["","none",Jt,Ht]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[It,Jt,Ht]}],"backdrop-contrast":[{"backdrop-contrast":[It,Jt,Ht]}],"backdrop-grayscale":[{"backdrop-grayscale":["",It,Jt,Ht]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[It,Jt,Ht]}],"backdrop-invert":[{"backdrop-invert":["",It,Jt,Ht]}],"backdrop-opacity":[{"backdrop-opacity":[It,Jt,Ht]}],"backdrop-saturate":[{"backdrop-saturate":[It,Jt,Ht]}],"backdrop-sepia":[{"backdrop-sepia":["",It,Jt,Ht]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Jt,Ht]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[It,"initial",Jt,Ht]}],ease:[{ease:["linear","initial",y,Jt,Ht]}],delay:[{delay:[It,Jt,Ht]}],animate:[{animate:["none",v,Jt,Ht]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Jt,Ht]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Jt,Ht,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Jt,Ht]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Jt,Ht]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[It,Qt,qt,Gt]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function mr(...e){return hr(it(e))}const gr=lt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),yr=n.forwardRef(({className:t,variant:r,size:n,asChild:a=!1,...i},o)=>e(a?x:"button",{className:mr(gr({variant:r,size:n,className:t})),ref:o,...i}));yr.displayName="Button";const vr=n.forwardRef(({className:t,...r},n)=>e("div",{ref:n,className:mr("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));vr.displayName="Card";const br=n.forwardRef(({className:t,...r},n)=>e("div",{ref:n,className:mr("flex flex-col space-y-1.5 p-6",t),...r}));br.displayName="CardHeader";const wr=n.forwardRef(({className:t,...r},n)=>e("h3",{ref:n,className:mr("text-2xl font-semibold leading-none tracking-tight",t),...r}));wr.displayName="CardTitle";const xr=n.forwardRef(({className:t,...r},n)=>e("p",{ref:n,className:mr("text-sm text-muted-foreground",t),...r}));xr.displayName="CardDescription";const Or=n.forwardRef(({className:t,...r},n)=>e("div",{ref:n,className:mr("p-6 pt-0",t),...r}));Or.displayName="CardContent";const Nr=n.forwardRef(({className:t,...r},n)=>e("div",{ref:n,className:mr("flex items-center p-6 pt-0",t),...r}));Nr.displayName="CardFooter";const Er=n.forwardRef(({className:t,type:r,...n},a)=>e("input",{type:r,className:mr("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...n}));Er.displayName="Input";const kr=lt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Sr=n.forwardRef(({className:t,...r},n)=>e(O.Root,{ref:n,className:mr(kr(),t),...r}));Sr.displayName=O.Root.displayName;const Ar=n.forwardRef(({className:t,...r},n)=>e("textarea",{className:mr("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...r}));Ar.displayName="Textarea";const Pr=n.forwardRef(({className:t,orientation:r="horizontal",decorative:n=!0,...a},i)=>e(N.Root,{ref:i,decorative:n,orientation:r,className:mr("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...a}));Pr.displayName=N.Root.displayName;const jr=lt("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"border-transparent bg-green-600 text-white hover:bg-green-700",warning:"border-transparent bg-yellow-500 text-black hover:bg-yellow-600",info:"border-transparent bg-blue-500 text-white hover:bg-blue-600",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",agentela:"border-transparent bg-gradient-to-r from-yellow-400 via-orange-400 to-purple-500 text-white hover:opacity-90"}},defaultVariants:{variant:"default"}});function Tr({className:t,variant:r,...n}){return e("div",{className:mr(jr({variant:r}),t),...n})}const Cr=n.forwardRef(({className:t,...r},n)=>e(E.Root,{ref:n,className:mr("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r}));Cr.displayName=E.Root.displayName;const Mr=n.forwardRef(({className:t,...r},n)=>e(E.Image,{ref:n,className:mr("aspect-square h-full w-full",t),...r}));Mr.displayName=E.Image.displayName;const Dr=n.forwardRef(({className:t,...r},n)=>e(E.Fallback,{ref:n,className:mr("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...r}));Dr.displayName=E.Fallback.displayName;const _r=n.forwardRef(({logoUrl:r,companyName:n="Agentela",companySubtitle:a="Engineering Platform",icon:i,initials:o,size:s="default",className:l,...c},u)=>{const d={sm:{container:"h-7 w-7",text:"text-sm",subtitle:"text-xs"},default:{container:"h-9 w-9",text:"text-lg",subtitle:"text-xs"},lg:{container:"h-11 w-11",text:"text-xl",subtitle:"text-sm"}}[s],f=o||n.charAt(0).toUpperCase();return t("div",{ref:u,className:mr("flex items-center space-x-3",l),...c,children:[e("div",{className:mr("rounded-lg bg-gradient-to-br from-primary to-primary/80 flex items-center justify-center flex-shrink-0",d.container),children:r?e("img",{src:r,alt:`${n} logo`,className:mr("rounded-lg object-cover",d.container)}):i?e(i,{className:mr("text-primary-foreground","sm"===s?"h-3 w-3":"lg"===s?"h-6 w-6":"h-4 w-4")}):e("span",{className:mr("text-primary-foreground font-bold","sm"===s?"text-xs":"lg"===s?"text-lg":"text-sm"),children:f})}),t("div",{className:"flex-1 min-w-0",children:[e("h2",{className:mr("font-semibold text-sidebar-foreground truncate",d.text),children:n}),a&&e("p",{className:mr("text-sidebar-muted-foreground truncate",d.subtitle),children:a})]})]})});_r.displayName="SidebarBranding";const Ir=n.forwardRef(({children:t,className:r,...n},a)=>e("div",{ref:a,className:mr("flex h-full w-64 flex-col bg-sidebar-background text-sidebar-foreground border-r border-sidebar-border",r),...n,children:t}));Ir.displayName="Sidebar";const Rr=n.forwardRef(({children:t,className:r,...n},a)=>e("div",{ref:a,className:mr("flex items-center px-6 py-6 border-b border-sidebar-border bg-sidebar-background",r),...n,children:t}));Rr.displayName="SidebarHeader";const zr=n.forwardRef(({children:t,className:r,...n},a)=>e("div",{ref:a,className:mr("flex-1 overflow-auto px-4 py-4",r),...n,children:t}));zr.displayName="SidebarContent";const Lr=n.forwardRef(({children:t,className:r,...n},a)=>e("div",{ref:a,className:mr("border-t border-sidebar-border p-4 bg-sidebar-background",r),...n,children:t}));Lr.displayName="SidebarFooter";const Br=n.forwardRef(({children:t,className:r,...n},a)=>e("div",{ref:a,className:mr("py-2",r),...n,children:t}));Br.displayName="SidebarGroup";const $r=n.forwardRef(({children:t,className:r,...n},a)=>e("div",{ref:a,className:mr("flex items-center px-3 mb-2 text-xs font-semibold uppercase tracking-wider text-left text-gradient-gold-purple",r),...n,children:t}));$r.displayName="SidebarGroupLabel";const Fr=n.forwardRef(({children:t,className:r,...n},a)=>e("ul",{ref:a,className:mr("space-y-1",r),...n,children:t}));Fr.displayName="SidebarMenu";const Kr=n.forwardRef(({children:t,className:r,...n},a)=>e("li",{ref:a,className:mr("",r),...n,children:t}));Kr.displayName="SidebarMenuItem";const Vr=lt("flex w-full items-center gap-2 rounded-md text-left text-sm font-medium transition-colors overflow-hidden outline-none ring-sidebar-ring focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"},size:{default:"h-9 px-3 py-2",sm:"h-8 px-2 py-1.5 text-sm",lg:"h-10 px-4 py-2.5"}},defaultVariants:{variant:"default",size:"default"}}),Ur=n.forwardRef(({children:t,className:r,isActive:n,size:a="default",asChild:i,...o},s)=>e(i?x:"button",{ref:s,"data-active":n,className:mr(Vr({size:a}),n?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm font-medium":"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",r),...o,children:t}));Ur.displayName="SidebarMenuButton";const Wr=n.forwardRef(({children:t,className:r,...n},a)=>e("ul",{ref:a,className:mr("mt-1 ml-4 space-y-1 border-l border-sidebar-border pl-4",r),...n,children:t}));Wr.displayName="SidebarMenuSub";const Hr=n.forwardRef(({children:t,className:r,...n},a)=>e("li",{ref:a,className:mr("",r),...n,children:t}));Hr.displayName="SidebarMenuSubItem";const qr=n.forwardRef(({children:t,className:r,isActive:n,size:a="sm",asChild:i,...o},s)=>e(i?x:"button",{ref:s,"data-active":n,className:mr("flex w-full items-center gap-2 rounded-md text-left text-sm transition-colors overflow-hidden outline-none ring-sidebar-ring focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50","sm"===a&&"h-7 px-2 py-1 text-xs","default"===a&&"h-8 px-2 py-1.5 text-sm","lg"===a&&"h-9 px-3 py-2 text-sm",n?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-muted-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",r),...o,children:t}));qr.displayName="SidebarMenuSubButton";const Gr=n.forwardRef(({className:t,...r},n)=>e("div",{ref:n,className:mr("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",t),...r}));Gr.displayName="SidebarMenuBadge";const Yr=Se.Root,Xr=Se.Trigger,Zr=Se.Group,Jr=Se.Portal,Qr=Se.Sub,en=Se.RadioGroup,tn=n.forwardRef(({className:r,inset:n,children:a,...i},o)=>t(Se.SubTrigger,{ref:o,className:mr("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",r),...i,children:[a,e(k,{className:"ml-auto"})]}));tn.displayName=Se.SubTrigger.displayName;const rn=n.forwardRef(({className:t,...r},n)=>e(Se.SubContent,{ref:n,className:mr("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));rn.displayName=Se.SubContent.displayName;const nn=n.forwardRef(({className:t,sideOffset:r=4,...n},a)=>e(Se.Portal,{children:e(Se.Content,{ref:a,sideOffset:r,className:mr("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})}));nn.displayName=Se.Content.displayName;const an=n.forwardRef(({className:t,inset:r,...n},a)=>e(Se.Item,{ref:a,className:mr("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",t),...n}));an.displayName=Se.Item.displayName;const on=n.forwardRef(({className:r,children:n,checked:a,...i},o)=>t(Se.CheckboxItem,{ref:o,className:mr("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:a,...i,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(Se.ItemIndicator,{children:e(S,{className:"h-4 w-4"})})}),n]}));on.displayName=Se.CheckboxItem.displayName;const sn=n.forwardRef(({className:r,children:n,...a},i)=>t(Se.RadioItem,{ref:i,className:mr("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...a,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(Se.ItemIndicator,{children:e(A,{className:"h-2 w-2 fill-current"})})}),n]}));sn.displayName=Se.RadioItem.displayName;const ln=n.forwardRef(({className:t,inset:r,...n},a)=>e(Se.Label,{ref:a,className:mr("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",t),...n}));ln.displayName=Se.Label.displayName;const cn=n.forwardRef(({className:t,...r},n)=>e(Se.Separator,{ref:n,className:mr("-mx-1 my-1 h-px bg-muted",t),...r}));cn.displayName=Se.Separator.displayName;const un=({className:t,...r})=>e("span",{className:mr("ml-auto text-xs tracking-widest opacity-60",t),...r});un.displayName="DropdownMenuShortcut";const dn={Home:fe,Settings:de,Search:ue,Filter:ce,User:P,Users:le,UserPlus:se,GitBranch:oe,GitCommit:ie,Code:ae,Terminal:ne,Database:re,Target:te,Calendar:ee,Clock:Q,Building:J,Folder:Z,FileText:X,Beaker:Y,CheckSquare:G,Award:q,Shield:H,CheckCircle:W,BrainCircuit:U,Zap:V,BookOpen:K,Monitor:F,Smartphone:$,Globe:B,Lock:L,Key:z,BarChart:R,PieChart:I,TrendingUp:_,Activity:D,CreditCard:j,Bell:T,LogOut:C,MessageCircle:M,Circle:A},fn=e=>dn[e]||A,pn=n.forwardRef(({config:n,currentUser:a,className:i,onNavigate:o,userMenuActions:s,...l},c)=>{const u=a||n.user,d=(e,t)=>{o?o(e,t):window.location.href=e};return t(Ir,{ref:c,className:mr("",i),...l,children:[e(Rr,{children:e(_r,{companyName:n.brand.name,companySubtitle:n.brand.subtitle,logoUrl:n.brand.logo,icon:n.brand.icon?fn(n.brand.icon):void 0,size:n.brand.size})}),t(zr,{children:[n.standaloneItems.length>0&&e(Br,{children:e(Fr,{children:n.standaloneItems.map(r=>{const n=fn(r.icon);return e(Kr,{children:e(Ur,{asChild:!0,isActive:r.isActive,onClick:()=>d(r.href,r),children:t("a",{href:r.href,className:"flex items-center justify-start gap-3 text-left",children:[e(n,{className:"h-4 w-4 shrink-0"}),e("span",{className:"flex-1 truncate text-left",children:r.label}),r.badge&&e(Gr,{className:"ml-auto shrink-0",children:r.badge.text})]})})},r.id)})})}),n.groups.map(r=>{const n=fn(r.icon);return t(Br,{children:[t($r,{className:"flex items-center justify-start gap-2 text-left",children:[e(n,{className:mr("h-4 w-4 shrink-0",r.themeColor&&`text-${r.themeColor}`)}),e("span",{className:"flex-1 truncate text-left",children:r.label})]}),e(Fr,{children:r.items.map(r=>{const n=fn(r.icon);return e(Kr,{children:e(Ur,{asChild:!0,isActive:r.isActive,onClick:()=>d(r.href,r),children:t("a",{href:r.href,className:"flex items-center justify-start gap-3 text-left",children:[e(n,{className:"h-4 w-4 shrink-0"}),e("span",{className:"flex-1 truncate text-left",children:r.label}),r.badge&&e(Gr,{className:"ml-auto shrink-0",children:r.badge.text})]})})},r.id)})})]},r.id)})]}),e(Lr,{children:e(Fr,{children:e(Kr,{children:t(Yr,{children:[e(Xr,{asChild:!0,children:t(Ur,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground justify-start text-left",children:[t(Cr,{className:"h-8 w-8 rounded-lg shrink-0",children:[e(Mr,{src:u.avatar,alt:u.name}),e(Dr,{className:"rounded-lg",children:u.initials})]}),t("div",{className:"grid flex-1 text-left text-sm leading-tight min-w-0",children:[e("span",{className:"truncate font-semibold text-left",children:u.name}),e("span",{className:"truncate text-xs text-left",children:u.role})]})]})}),t(nn,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:"bottom",align:"end",sideOffset:4,children:[e(ln,{className:"p-0 font-normal",children:t("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[t(Cr,{className:"h-8 w-8 rounded-lg shrink-0",children:[e(Mr,{src:u.avatar,alt:u.name}),e(Dr,{className:"rounded-lg",children:u.initials})]}),t("div",{className:"grid flex-1 text-left text-sm leading-tight min-w-0",children:[e("span",{className:"truncate font-semibold text-left",children:u.name}),e("span",{className:"truncate text-xs text-left",children:u.role})]})]})}),e(cn,{}),t(an,{onClick:s?.onAccountSettings,children:[e(P,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),t(an,{onClick:s?.onBilling,children:[e(j,{className:"mr-2 h-4 w-4"}),"Billing"]}),t(an,{onClick:s?.onNotifications,children:[e(T,{className:"mr-2 h-4 w-4"}),"Notifications"]}),s?.customActions&&s.customActions.length>0&&t(r,{children:[e(cn,{}),s.customActions.map((r,n)=>{const a=r.icon?fn(r.icon):null;return t(an,{onClick:r.onClick,children:[a&&e(a,{className:"mr-2 h-4 w-4"}),r.label]},n)})]}),e(cn,{}),t(an,{onClick:s?.onLogout,children:[e(C,{className:"mr-2 h-4 w-4"}),"Log out"]})]})]})})})})]})});pn.displayName="PresetSidebar";const hn=Ae.Root,mn=Ae.Group,gn=Ae.Value,yn=n.forwardRef(({className:r,children:n,...a},i)=>t(Ae.Trigger,{ref:i,className:mr("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...a,children:[n,e(Ae.Icon,{asChild:!0,children:e(pe,{className:"h-4 w-4 opacity-50"})})]}));yn.displayName=Ae.Trigger.displayName;const vn=n.forwardRef(({className:t,...r},n)=>e(Ae.ScrollUpButton,{ref:n,className:mr("flex cursor-default items-center justify-center py-1",t),...r,children:e(he,{className:"h-4 w-4"})}));vn.displayName=Ae.ScrollUpButton.displayName;const bn=n.forwardRef(({className:t,...r},n)=>e(Ae.ScrollDownButton,{ref:n,className:mr("flex cursor-default items-center justify-center py-1",t),...r,children:e(pe,{className:"h-4 w-4"})}));bn.displayName=Ae.ScrollDownButton.displayName;const wn=n.forwardRef(({className:r,children:n,position:a="popper",...i},o)=>e(Ae.Portal,{children:t(Ae.Content,{ref:o,className:mr("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a,...i,children:[e(vn,{}),e(Ae.Viewport,{className:mr("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),e(bn,{})]})}));wn.displayName=Ae.Content.displayName;const xn=n.forwardRef(({className:t,...r},n)=>e(Ae.Label,{ref:n,className:mr("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...r}));xn.displayName=Ae.Label.displayName;const On=n.forwardRef(({className:r,children:n,...a},i)=>t(Ae.Item,{ref:i,className:mr("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...a,children:[e("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e(Ae.ItemIndicator,{children:e(S,{className:"h-4 w-4"})})}),e(Ae.ItemText,{children:n})]}));On.displayName=Ae.Item.displayName