UNPKG

agentela-design-system

Version:

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

1 lines 573 kB
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-slot"),n=require("@radix-ui/react-label"),a=require("@radix-ui/react-separator"),o=require("@radix-ui/react-avatar"),i=require("lucide-react"),s=require("@radix-ui/react-dropdown-menu"),l=require("@radix-ui/react-select"),c=require("@radix-ui/react-toggle"),u=require("@radix-ui/react-checkbox"),d=require("@radix-ui/react-switch"),f=require("@radix-ui/react-tabs"),p=require("@radix-ui/react-progress"),h=require("@radix-ui/react-accordion"),m=require("@radix-ui/react-alert-dialog"),g=require("react-day-picker"),y=require("@radix-ui/react-collapsible"),v=require("@radix-ui/react-dialog"),b=require("@radix-ui/react-primitive"),x=require("@radix-ui/react-id"),w=require("@radix-ui/react-compose-refs"),O=require("@radix-ui/react-context-menu"),j=require("react-hook-form"),N=require("@radix-ui/react-hover-card"),E=require("@radix-ui/react-popover"),k=require("@radix-ui/react-radio-group"),S=require("react-resizable-panels"),A=require("@radix-ui/react-scroll-area"),P=require("@radix-ui/react-slider"),C=require("react-dom"),T=require("@radix-ui/react-toast"),M=require("@radix-ui/react-toggle-group"),D=require("@radix-ui/react-tooltip"),_=require("react-is"),I=require("react-redux");function R(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var z=R(t),L=R(n),B=R(a),$=R(o),F=R(s),V=R(l),K=R(c),U=R(u),H=R(d),W=R(f),q=R(p),G=R(h),Y=R(m),X=R(y),Z=R(v),Q=R(O),J=R(N),ee=R(E),te=R(k),re=R(S),ne=R(A),ae=R(P),oe=R(T),ie=R(M),se=R(D);function le(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=le(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=le(e))&&(n&&(n+=" "),n+=t);return n}const ue=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,de=ce,fe=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return de(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(e=>{const t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;const i=ue(t)||ue(n);return a[e][i]}),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({...o,...s}[t]):{...o,...s}[t]===r})?[...e,r,n]:e},[]);return de(e,i,l,null==r?void 0:r.class,null==r?void 0:r.className)},pe=e=>{const t=ye(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),he(r,t)||ge(e)},getConflictingClassGroupIds:(e,t)=>{const a=r[e]||[];return t&&n[e]?[...a,...n[e]]:a}}},he=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?he(e.slice(1),n):void 0;if(a)return a;if(0===t.validators.length)return;const o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},me=/^\[(.+)\]$/,ge=e=>{if(me.test(e)){const t=me.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ye=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)ve(r[e],n,e,t);return n},ve=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:be(t,e)).classGroupId=r)}if("function"==typeof e)return xe(e)?void ve(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,a])=>{ve(a,be(t,e),r,n)})})},be=(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},xe=e=>e.isThemeGetter,we=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(a,o)=>{r.set(a,o),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)}}},Oe=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,a=0,o=0;for(let i=0;i<e.length;i++){let s=e[i];if(0===n&&0===a){if(":"===s){t.push(e.slice(o,i)),o=i+1;continue}if("/"===s){r=i;continue}}"["===s?n++:"]"===s?n--:"("===s?a++:")"===s&&a--}const i=0===t.length?e:e.substring(o),s=je(i);return{modifiers:t,hasImportantModifier:s!==i,baseClassName:s,maybePostfixModifierPosition:r&&r>o?r-o: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},je=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ne=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}},Ee=/\s+/;function ke(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Se(e))&&(n&&(n+=" "),n+=t);return n}const Se=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Se(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ae(e,...t){let r,n,a,o=function(s){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:we(e.cacheSize),parseClassName:Oe(e),sortModifiers:Ne(e),...pe(e)}))(l),n=r.cache.get,a=r.cache.set,o=i,i(s)};function i(e){const t=n(e);if(t)return t;const o=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,i=[],s=e.trim().split(Ee);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=o(u).join(":"),y=d?g+"!":g,v=y+m;if(i.includes(v))continue;i.push(v);const b=a(m,h);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return a(e,o),o}return function(){return o(ke.apply(null,arguments))}}const Pe=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ce=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Te=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Me=/^\d+\/\d+$/,De=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_e=/\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$/,Ie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Re=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Le=e=>Me.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>!!e&&Number.isInteger(Number(e)),Fe=e=>e.endsWith("%")&&Be(e.slice(0,-1)),Ve=e=>De.test(e),Ke=()=>!0,Ue=e=>_e.test(e)&&!Ie.test(e),He=()=>!1,We=e=>Re.test(e),qe=e=>ze.test(e),Ge=e=>!Xe(e)&&!rt(e),Ye=e=>ct(e,pt,He),Xe=e=>Ce.test(e),Ze=e=>ct(e,ht,Ue),Qe=e=>ct(e,mt,Be),Je=e=>ct(e,dt,He),et=e=>ct(e,ft,qe),tt=e=>ct(e,yt,We),rt=e=>Te.test(e),nt=e=>ut(e,ht),at=e=>ut(e,gt),ot=e=>ut(e,dt),it=e=>ut(e,pt),st=e=>ut(e,ft),lt=e=>ut(e,yt,!0),ct=(e,t,r)=>{const n=Ce.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},ut=(e,t,r=!1)=>{const n=Te.exec(e);return!!n&&(n[1]?t(n[1]):r)},dt=e=>"position"===e||"percentage"===e,ft=e=>"image"===e||"url"===e,pt=e=>"length"===e||"size"===e||"bg-size"===e,ht=e=>"length"===e,mt=e=>"number"===e,gt=e=>"family-name"===e,yt=e=>"shadow"===e,vt=Ae(()=>{const e=Pe("color"),t=Pe("font"),r=Pe("text"),n=Pe("font-weight"),a=Pe("tracking"),o=Pe("leading"),i=Pe("breakpoint"),s=Pe("container"),l=Pe("spacing"),c=Pe("radius"),u=Pe("shadow"),d=Pe("inset-shadow"),f=Pe("text-shadow"),p=Pe("drop-shadow"),h=Pe("blur"),m=Pe("perspective"),g=Pe("aspect"),y=Pe("ease"),v=Pe("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",rt,Xe],x=()=>[rt,Xe,l],w=()=>[Le,"full","auto",...x()],O=()=>[$e,"none","subgrid",rt,Xe],j=()=>["auto",{span:["full",$e,rt,Xe]},$e,rt,Xe],N=()=>[$e,"auto",rt,Xe],E=()=>["auto","min","max","fr",rt,Xe],k=()=>["auto",...x()],S=()=>[Le,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],A=()=>[e,rt,Xe],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ot,Je,{position:[rt,Xe]}],C=()=>["auto","cover","contain",it,Ye,{size:[rt,Xe]}],T=()=>[Fe,nt,Ze],M=()=>["","none","full",c,rt,Xe],D=()=>["",Be,nt,Ze],_=()=>[Be,Fe,ot,Je],I=()=>["","none",h,rt,Xe],R=()=>["none",Be,rt,Xe],z=()=>["none",Be,rt,Xe],L=()=>[Be,rt,Xe],B=()=>[Le,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ve],breakpoint:[Ve],color:[Ke],container:[Ve],"drop-shadow":[Ve],ease:["in","out","in-out"],font:[Ge],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ve],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ve],shadow:[Ve],spacing:["px",Be],text:[Ve],"text-shadow":[Ve],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Le,Xe,rt,g]}],container:["container"],columns:[{columns:[Be,Xe,rt,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:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",rt,Xe]}],basis:[{basis:[Le,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,Le,"auto","initial","none",Xe]}],grow:[{grow:["",Be,rt,Xe]}],shrink:[{shrink:["",Be,rt,Xe]}],order:[{order:[$e,"first","last","none",rt,Xe]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"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:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[s,"screen",...S()]}],"min-w":[{"min-w":[s,"screen","none",...S()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",r,nt,Ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,rt,Qe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fe,Xe]}],"font-family":[{font:[at,Xe,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,rt,Xe]}],"line-clamp":[{"line-clamp":[Be,"none",rt,Qe]}],leading:[{leading:[o,...x()]}],"list-image":[{"list-image":["none",rt,Xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",rt,Xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",rt,Ze]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Be,"auto",rt,Xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rt,Xe]}],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",rt,Xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,rt,Xe],radial:["",rt,Xe],conic:[$e,rt,Xe]},st,et]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],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:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Be,rt,Xe]}],"outline-w":[{outline:["",Be,nt,Ze]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,lt,tt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,lt,tt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Be,Ze]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",f,lt,tt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Be,rt,Xe]}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[rt,Xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",rt,Xe]}],filter:[{filter:["","none",rt,Xe]}],blur:[{blur:I()}],brightness:[{brightness:[Be,rt,Xe]}],contrast:[{contrast:[Be,rt,Xe]}],"drop-shadow":[{"drop-shadow":["","none",p,lt,tt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Be,rt,Xe]}],"hue-rotate":[{"hue-rotate":[Be,rt,Xe]}],invert:[{invert:["",Be,rt,Xe]}],saturate:[{saturate:[Be,rt,Xe]}],sepia:[{sepia:["",Be,rt,Xe]}],"backdrop-filter":[{"backdrop-filter":["","none",rt,Xe]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[Be,rt,Xe]}],"backdrop-contrast":[{"backdrop-contrast":[Be,rt,Xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,rt,Xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,rt,Xe]}],"backdrop-invert":[{"backdrop-invert":["",Be,rt,Xe]}],"backdrop-opacity":[{"backdrop-opacity":[Be,rt,Xe]}],"backdrop-saturate":[{"backdrop-saturate":[Be,rt,Xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,rt,Xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",rt,Xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",rt,Xe]}],ease:[{ease:["linear","initial",y,rt,Xe]}],delay:[{delay:[Be,rt,Xe]}],animate:[{animate:["none",v,rt,Xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,rt,Xe]}],"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:[rt,Xe,"","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:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",rt,Xe]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",rt,Xe]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Be,nt,Ze,Qe]}],stroke:[{stroke:["none",...A()]}],"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 bt(...e){return vt(ce(e))}const xt=fe("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"}}),wt=z.forwardRef(({className:t,variant:n,size:a,asChild:o=!1,...i},s)=>{const l=o?r.Slot:"button";return e.jsx(l,{className:bt(xt({variant:n,size:a,className:t})),ref:s,...i})});wt.displayName="Button";const Ot=z.forwardRef(({className:t,...r},n)=>e.jsx("div",{ref:n,className:bt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));Ot.displayName="Card";const jt=z.forwardRef(({className:t,...r},n)=>e.jsx("div",{ref:n,className:bt("flex flex-col space-y-1.5 p-6",t),...r}));jt.displayName="CardHeader";const Nt=z.forwardRef(({className:t,...r},n)=>e.jsx("h3",{ref:n,className:bt("text-2xl font-semibold leading-none tracking-tight",t),...r}));Nt.displayName="CardTitle";const Et=z.forwardRef(({className:t,...r},n)=>e.jsx("p",{ref:n,className:bt("text-sm text-muted-foreground",t),...r}));Et.displayName="CardDescription";const kt=z.forwardRef(({className:t,...r},n)=>e.jsx("div",{ref:n,className:bt("p-6 pt-0",t),...r}));kt.displayName="CardContent";const St=z.forwardRef(({className:t,...r},n)=>e.jsx("div",{ref:n,className:bt("flex items-center p-6 pt-0",t),...r}));St.displayName="CardFooter";const At=z.forwardRef(({className:t,type:r,...n},a)=>e.jsx("input",{type:r,className:bt("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}));At.displayName="Input";const Pt=fe("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ct=z.forwardRef(({className:t,...r},n)=>e.jsx(L.Root,{ref:n,className:bt(Pt(),t),...r}));Ct.displayName=L.Root.displayName;const Tt=z.forwardRef(({className:t,...r},n)=>e.jsx("textarea",{className:bt("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}));Tt.displayName="Textarea";const Mt=z.forwardRef(({className:t,orientation:r="horizontal",decorative:n=!0,...a},o)=>e.jsx(B.Root,{ref:o,decorative:n,orientation:r,className:bt("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...a}));Mt.displayName=B.Root.displayName;const Dt=fe("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 _t({className:t,variant:r,...n}){return e.jsx("div",{className:bt(Dt({variant:r}),t),...n})}const It=z.forwardRef(({className:t,...r},n)=>e.jsx($.Root,{ref:n,className:bt("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r}));It.displayName=$.Root.displayName;const Rt=z.forwardRef(({className:t,...r},n)=>e.jsx($.Image,{ref:n,className:bt("aspect-square h-full w-full",t),...r}));Rt.displayName=$.Image.displayName;const zt=z.forwardRef(({className:t,...r},n)=>e.jsx($.Fallback,{ref:n,className:bt("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...r}));zt.displayName=$.Fallback.displayName;const Lt=z.forwardRef(({logoUrl:t,companyName:r="Agentela",companySubtitle:n="Engineering Platform",icon:a,initials:o,size:i="default",className:s,...l},c)=>{const u={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"}}[i],d=o||r.charAt(0).toUpperCase();return e.jsxs("div",{ref:c,className:bt("flex items-center space-x-3",s),...l,children:[e.jsx("div",{className:bt("rounded-lg bg-gradient-to-br from-primary to-primary/80 flex items-center justify-center flex-shrink-0",u.container),children:t?e.jsx("img",{src:t,alt:`${r} logo`,className:bt("rounded-lg object-cover",u.container)}):a?e.jsx(a,{className:bt("text-primary-foreground","sm"===i?"h-3 w-3":"lg"===i?"h-6 w-6":"h-4 w-4")}):e.jsx("span",{className:bt("text-primary-foreground font-bold","sm"===i?"text-xs":"lg"===i?"text-lg":"text-sm"),children:d})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h2",{className:bt("font-semibold text-sidebar-foreground truncate",u.text),children:r}),n&&e.jsx("p",{className:bt("text-sidebar-muted-foreground truncate",u.subtitle),children:n})]})]})});Lt.displayName="SidebarBranding";const Bt=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("div",{ref:a,className:bt("flex h-full w-64 flex-col bg-sidebar-background text-sidebar-foreground border-r border-sidebar-border",r),...n,children:t}));Bt.displayName="Sidebar";const $t=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("div",{ref:a,className:bt("flex items-center px-6 py-6 border-b border-sidebar-border bg-sidebar-background",r),...n,children:t}));$t.displayName="SidebarHeader";const Ft=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("div",{ref:a,className:bt("flex-1 overflow-auto px-4 py-4",r),...n,children:t}));Ft.displayName="SidebarContent";const Vt=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("div",{ref:a,className:bt("border-t border-sidebar-border p-4 bg-sidebar-background",r),...n,children:t}));Vt.displayName="SidebarFooter";const Kt=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("div",{ref:a,className:bt("py-2",r),...n,children:t}));Kt.displayName="SidebarGroup";const Ut=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("div",{ref:a,className:bt("flex items-center px-3 mb-2 text-xs font-semibold uppercase tracking-wider text-left text-gradient-gold-purple",r),...n,children:t}));Ut.displayName="SidebarGroupLabel";const Ht=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("ul",{ref:a,className:bt("space-y-1",r),...n,children:t}));Ht.displayName="SidebarMenu";const Wt=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("li",{ref:a,className:bt("",r),...n,children:t}));Wt.displayName="SidebarMenuItem";const qt=fe("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"}}),Gt=z.forwardRef(({children:t,className:n,isActive:a,size:o="default",asChild:i,...s},l)=>{const c=i?r.Slot:"button";return e.jsx(c,{ref:l,"data-active":a,className:bt(qt({size:o}),a?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm font-medium":"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",n),...s,children:t})});Gt.displayName="SidebarMenuButton";const Yt=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("ul",{ref:a,className:bt("mt-1 ml-4 space-y-1 border-l border-sidebar-border pl-4",r),...n,children:t}));Yt.displayName="SidebarMenuSub";const Xt=z.forwardRef(({children:t,className:r,...n},a)=>e.jsx("li",{ref:a,className:bt("",r),...n,children:t}));Xt.displayName="SidebarMenuSubItem";const Zt=z.forwardRef(({children:t,className:n,isActive:a,size:o="sm",asChild:i,...s},l)=>{const c=i?r.Slot:"button";return e.jsx(c,{ref:l,"data-active":a,className:bt("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"===o&&"h-7 px-2 py-1 text-xs","default"===o&&"h-8 px-2 py-1.5 text-sm","lg"===o&&"h-9 px-3 py-2 text-sm",a?"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",n),...s,children:t})});Zt.displayName="SidebarMenuSubButton";const Qt=z.forwardRef(({className:t,...r},n)=>e.jsx("div",{ref:n,className:bt("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}));Qt.displayName="SidebarMenuBadge";const Jt=F.Root,er=F.Trigger,tr=F.Group,rr=F.Portal,nr=F.Sub,ar=F.RadioGroup,or=z.forwardRef(({className:t,inset:r,children:n,...a},o)=>e.jsxs(F.SubTrigger,{ref:o,className:bt("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",r&&"pl-8",t),...a,children:[n,e.jsx(i.ChevronRight,{className:"ml-auto"})]}));or.displayName=F.SubTrigger.displayName;const ir=z.forwardRef(({className:t,...r},n)=>e.jsx(F.SubContent,{ref:n,className:bt("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}));ir.displayName=F.SubContent.displayName;const sr=z.forwardRef(({className:t,sideOffset:r=4,...n},a)=>e.jsx(F.Portal,{children:e.jsx(F.Content,{ref:a,sideOffset:r,className:bt("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})}));sr.displayName=F.Content.displayName;const lr=z.forwardRef(({className:t,inset:r,...n},a)=>e.jsx(F.Item,{ref:a,className:bt("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}));lr.displayName=F.Item.displayName;const cr=z.forwardRef(({className:t,children:r,checked:n,...a},o)=>e.jsxs(F.CheckboxItem,{ref:o,className:bt("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",t),checked:n,...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(F.ItemIndicator,{children:e.jsx(i.Check,{className:"h-4 w-4"})})}),r]}));cr.displayName=F.CheckboxItem.displayName;const ur=z.forwardRef(({className:t,children:r,...n},a)=>e.jsxs(F.RadioItem,{ref:a,className:bt("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",t),...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(F.ItemIndicator,{children:e.jsx(i.Circle,{className:"h-2 w-2 fill-current"})})}),r]}));ur.displayName=F.RadioItem.displayName;const dr=z.forwardRef(({className:t,inset:r,...n},a)=>e.jsx(F.Label,{ref:a,className:bt("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",t),...n}));dr.displayName=F.Label.displayName;const fr=z.forwardRef(({className:t,...r},n)=>e.jsx(F.Separator,{ref:n,className:bt("-mx-1 my-1 h-px bg-muted",t),...r}));fr.displayName=F.Separator.displayName;const pr=({className:t,...r})=>e.jsx("span",{className:bt("ml-auto text-xs tracking-widest opacity-60",t),...r});pr.displayName="DropdownMenuShortcut";const hr={Home:i.Home,Settings:i.Settings,Search:i.Search,Filter:i.Filter,User:i.User,Users:i.Users,UserPlus:i.UserPlus,GitBranch:i.GitBranch,GitCommit:i.GitCommit,Code:i.Code,Terminal:i.Terminal,Database:i.Database,Target:i.Target,Calendar:i.Calendar,Clock:i.Clock,Building:i.Building,Folder:i.Folder,FileText:i.FileText,Beaker:i.Beaker,CheckSquare:i.CheckSquare,Award:i.Award,Shield:i.Shield,CheckCircle:i.CheckCircle,BrainCircuit:i.BrainCircuit,Zap:i.Zap,BookOpen:i.BookOpen,Monitor:i.Monitor,Smartphone:i.Smartphone,Globe:i.Globe,Lock:i.Lock,Key:i.Key,BarChart:i.BarChart,PieChart:i.PieChart,TrendingUp:i.TrendingUp,Activity:i.Activity,CreditCard:i.CreditCard,Bell:i.Bell,LogOut:i.LogOut,MessageCircle:i.MessageCircle,Circle:i.Circle},mr=e=>hr[e]||i.Circle,gr=z.forwardRef(({config:t,currentUser:r,className:n,onNavigate:a,userMenuActions:o,...s},l)=>{const c=r||t.user,u=(e,t)=>{a?a(e,t):window.location.href=e};return e.jsxs(Bt,{ref:l,className:bt("",n),...s,children:[e.jsx($t,{children:e.jsx(Lt,{companyName:t.brand.name,companySubtitle:t.brand.subtitle,logoUrl:t.brand.logo,icon:t.brand.icon?mr(t.brand.icon):void 0,size:t.brand.size})}),e.jsxs(Ft,{children:[t.standaloneItems.length>0&&e.jsx(Kt,{children:e.jsx(Ht,{children:t.standaloneItems.map(t=>{const r=mr(t.icon);return e.jsx(Wt,{children:e.jsx(Gt,{asChild:!0,isActive:t.isActive,onClick:()=>u(t.href,t),children:e.jsxs("a",{href:t.href,className:"flex items-center justify-start gap-3 text-left",children:[e.jsx(r,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:t.label}),t.badge&&e.jsx(Qt,{className:"ml-auto shrink-0",children:t.badge.text})]})})},t.id)})})}),t.groups.map(t=>{const r=mr(t.icon);return e.jsxs(Kt,{children:[e.jsxs(Ut,{className:"flex items-center justify-start gap-2 text-left",children:[e.jsx(r,{className:bt("h-4 w-4 shrink-0",t.themeColor&&`text-${t.themeColor}`)}),e.jsx("span",{className:"flex-1 truncate text-left",children:t.label})]}),e.jsx(Ht,{children:t.items.map(t=>{const r=mr(t.icon);return e.jsx(Wt,{children:e.jsx(Gt,{asChild:!0,isActive:t.isActive,onClick:()=>u(t.href,t),children:e.jsxs("a",{href:t.href,className:"flex items-center justify-start gap-3 text-left",children:[e.jsx(r,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{className:"flex-1 truncate text-left",children:t.label}),t.badge&&e.jsx(Qt,{className:"ml-auto shrink-0",children:t.badge.text})]})})},t.id)})})]},t.id)})]}),e.jsx(Vt,{children:e.jsx(Ht,{children:e.jsx(Wt,{children:e.jsxs(Jt,{children:[e.jsx(er,{asChild:!0,children:e.jsxs(Gt,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground justify-start text-left",children:[e.jsxs(It,{className:"h-8 w-8 rounded-lg shrink-0",children:[e.jsx(Rt,{src:c.avatar,alt:c.name}),e.jsx(zt,{className:"rounded-lg",children:c.initials})]}),e.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight min-w-0",children:[e.jsx("span",{className:"truncate font-semibold text-left",children:c.name}),e.jsx("span",{className:"truncate text-xs text-left",children:c.role})]})]})}),e.jsxs(sr,{className:"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",side:"bottom",align:"end",sideOffset:4,children:[e.jsx(dr,{className:"p-0 font-normal",children:e.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[e.jsxs(It,{className:"h-8 w-8 rounded-lg shrink-0",children:[e.jsx(Rt,{src:c.avatar,alt:c.name}),e.jsx(zt,{className:"rounded-lg",children:c.initials})]}),e.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight min-w-0",children:[e.jsx("span",{className:"truncate font-semibold text-left",children:c.name}),e.jsx("span",{className:"truncate text-xs text-left",children:c.role})]})]})}),e.jsx(fr,{}),e.jsxs(lr,{onClick:o?.onAccountSettings,children:[e.jsx(i.User,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),e.jsxs(lr,{onClick:o?.onBilling,children:[e.jsx(i.CreditCard,{className:"mr-2 h-4 w-4"}),"Billing"]}),e.jsxs(lr,{onClick:o?.onNotifications,children:[e.jsx(i.Bell,{className:"mr-2 h-4 w-4"}),"Notifications"]}),o?.customActions&&o.customActions.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(fr,{}),o.customActions.map((t,r)=>{const n=t.icon?mr(t.icon):null;return e.jsxs(lr,{onClick:t.onClick,children:[n&&e.jsx(n,{className:"mr-2 h-4 w-4"}),t.label]},r)})]}),e.jsx(fr,{}),e.jsxs(lr,{onClick:o?.onLogout,children:[e.jsx(i.LogOut,{className:"mr-2 h-4 w-4"}),"Log out"]})]})]})})})})]})});gr.displayName="PresetSidebar";const yr=V.Root,vr=V.Group,br=V.Value,xr=z.forwardRef(({className:t,children:r,...n},a)=>e.jsxs(V.Trigger,{ref:a,className:bt("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",t),...n,children:[r,e.jsx(V.Icon,{asChild:!0,children:e.jsx(i.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));xr.displayName=V.Trigger.displayName;const wr=z.forwardRef(({className:t,...r},n)=>e.jsx(V.ScrollUpButton,{ref:n,className:bt("flex cursor-default items-center justify-center py-1",t),...r,children:e.jsx(i.ChevronUp,{className:"h-4 w-4"})}));wr.displayName=V.ScrollUpButton.displayName;const Or=z.forwardRef(({className:t,...r},n)=>e.jsx(V.ScrollDownButton,{ref:n,className:bt("flex cursor-default items-center justify-center py-1",t),...r,children:e.jsx(i.ChevronDown,{className:"h-4 w-4"})}));Or.displayName=V.ScrollDownButton.displayName;const jr=z.forwardRef(({className:t,children:r,position:n="popper",...a},o)=>e.jsx(V.Portal,{children:e.jsxs(V.Content,{ref:o,className:bt("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"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...a,children:[e.jsx(wr,{}),e.jsx(V.Viewport,{className:bt("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),e.jsx(Or,{})]})}));jr.displayName=V.Content.displayName;const Nr=z.forwardRef(({className:t,...r},n)=>e.jsx(V.Label,{ref:n,className:bt("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...r}));Nr.displayName=V.Label.displayName;const Er=z.forwardRef(({className:t,children:r,...n},a)=>e.jsxs(V.Item,{ref:a,className:bt("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",t),...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(V.ItemIndicator,{children:e.jsx(i.Check,{className:"h-4 w-4"})})}),e.jsx(V.ItemText,{children:r})]}));Er.d