cortex-react-components 2.0.12 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-X6EJ25XC.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-VAATHUZR.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-JTGHSU3N.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-NEBCCCJK.mjs → chunk-5MU4KV3B.mjs} +1 -1
- package/dist/{chunk-7KEUQMIC.mjs → chunk-77PCUNUC.mjs} +1 -1
- package/dist/{chunk-GH75QNKS.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-ECXVQZBN.mjs → chunk-ABGNIQRP.mjs} +1 -1
- package/dist/{chunk-M527EJIX.mjs → chunk-AMVJPDM3.mjs} +1 -1
- package/dist/{chunk-UX2JMQVZ.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-75WE6ZXB.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-3P4BEH4X.mjs → chunk-DPZHVBGG.mjs} +1 -1
- package/dist/{chunk-4ZNFCG23.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-XYWXQH3O.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-26J6PCWT.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-AINURJVF.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-XIAOONJZ.mjs → chunk-GLBQHEMQ.mjs} +1 -1
- package/dist/{chunk-JEH7SYC2.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-NCZGDYMK.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-VQ34QQUX.mjs → chunk-JHYWAL24.mjs} +1 -1
- package/dist/{chunk-JSCZ7ZAF.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/{chunk-BDDEMCAH.mjs → chunk-MFCVMJBO.mjs} +1 -1
- package/dist/{chunk-2Q7NCZG7.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/{chunk-HSLF3I4X.mjs → chunk-NADEVCXZ.mjs} +1 -1
- package/dist/{chunk-3ASIYIGC.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-DGBX5Z73.mjs → chunk-PIOFHZSJ.mjs} +1 -1
- package/dist/{chunk-K3HFGUNL.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-WHTNMHTO.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-2SAKLSZ4.mjs → chunk-PZXOH6CZ.mjs} +1 -1
- package/dist/chunk-QJ3L3OWW.mjs +4 -0
- package/dist/{chunk-B2EJGXDG.mjs → chunk-QTILVWJA.mjs} +1 -1
- package/dist/{chunk-7VDNUJZC.mjs → chunk-RAGDUV7M.mjs} +1 -1
- package/dist/chunk-S4A4VHOI.mjs +4 -0
- package/dist/chunk-S6KDP563.mjs +1 -0
- package/dist/{chunk-INPV5MBU.mjs → chunk-TK4JC5PG.mjs} +1 -1
- package/dist/chunk-TR6RBROH.mjs +1 -0
- package/dist/{chunk-OBKGLRAH.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/{chunk-YP5YVY6N.mjs → chunk-VVCAOIYO.mjs} +1 -1
- package/dist/{chunk-JBUTUNNN.mjs → chunk-W7MEHF4G.mjs} +1 -1
- package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -3
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -3
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.d.ts +2 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.d.ts +13 -0
- package/dist/components/DigitalColleagues/index.js +5 -0
- package/dist/components/DigitalColleagues/index.mjs +1 -0
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/business-unit-switcher.mjs +3 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +10 -10
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +15 -15
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-HNCC3AOT.mjs +0 -4
- package/dist/chunk-KTET6W73.mjs +0 -1
- package/dist/components/DigitalColleagues/sidebar-new.d.ts +0 -17
- package/dist/components/DigitalColleagues/sidebar-new.js +0 -5
- package/dist/components/DigitalColleagues/sidebar-new.mjs +0 -4
- /package/dist/components/{DigitalColleagues → AdvancedComponents}/sidebar-favorites-readme.js +0 -0
- /package/dist/components/{DigitalColleagues → AdvancedComponents}/sidebar-favorites-readme.mjs +0 -0
- /package/dist/components/DigitalColleagues/{sidebar-new.css → index.css} +0 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var ii=Object.create;var Ft=Object.defineProperty;var ri=Object.getOwnPropertyDescriptor;var si=Object.getOwnPropertyNames;var ni=Object.getPrototypeOf,li=Object.prototype.hasOwnProperty;var di=(e,t)=>{for(var a in t)Ft(e,a,{get:t[a],enumerable:!0})},Ha=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of si(t))!li.call(e,s)&&s!==a&&Ft(e,s,{get:()=>t[s],enumerable:!(o=ri(t,s))||o.enumerable});return e};var Z=(e,t,a)=>(a=e!=null?ii(ni(e)):{},Ha(t||!e||!e.__esModule?Ft(a,"default",{value:e,enumerable:!0}):a,e)),ci=e=>Ha(Ft({},"__esModule",{value:!0}),e);var nr={};di(nr,{default:()=>ei});module.exports=ci(nr);var Fa=require("react"),ma=require("framer-motion"),Zo=require("lucide-react");var Ja=require("clsx");var va="-",mi=e=>{let t=ui(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let r=n.split(va);return r[0]===""&&r.length!==1&&r.shift(),Va(r,t)||pi(n)},getConflictingClassGroupIds:(n,r)=>{let c=a[n]||[];return r&&o[n]?[...c,...o[n]]:c}}},Va=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),s=o?Va(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(va);return t.validators.find(({validator:n})=>n(i))?.classGroupId},Oa=/^\[(.+)\]$/,pi=e=>{if(Oa.test(e)){let t=Oa.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},ui=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return fi(Object.entries(e.classGroups),a).forEach(([i,n])=>{fa(n,o,i,t)}),o},fa=(e,t,a,o)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:Ka(t,s);i.classGroupId=a;return}if(typeof s=="function"){if(gi(s)){fa(s(o),t,a,o);return}t.validators.push({validator:s,classGroupId:a});return}Object.entries(s).forEach(([i,n])=>{fa(n,Ka(t,i),a,o)})})},Ka=(e,t)=>{let a=e;return t.split(va).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},gi=e=>e.isThemeGetter,fi=(e,t)=>t?e.map(([a,o])=>{let s=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,r])=>[t+n,r])):i);return[a,s]}):e,vi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,s=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=o.get(i))!==void 0)return s(i,n),n},set(i,n){a.has(i)?a.set(i,n):s(i,n)}}},Wa="!",hi=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,s=t[0],i=t.length,n=r=>{let c=[],l=0,D=0,g;for(let b=0;b<r.length;b++){let d=r[b];if(l===0){if(d===s&&(o||r.slice(b,b+i)===t)){c.push(r.slice(D,b)),D=b+i;continue}if(d==="/"){g=b;continue}}d==="["?l++:d==="]"&&l--}let k=c.length===0?r:r.substring(D),h=k.startsWith(Wa),S=h?k.substring(1):k,R=g&&g>D?g-D:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:S,maybePostfixModifierPosition:R}};return a?r=>a({className:r,parseClassName:n}):n},bi=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},xi=e=>({cache:vi(e.cacheSize),parseClassName:hi(e),...mi(e)}),yi=/\s+/,wi=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:s}=t,i=[],n=e.trim().split(yi),r="";for(let c=n.length-1;c>=0;c-=1){let l=n[c],{modifiers:D,hasImportantModifier:g,baseClassName:k,maybePostfixModifierPosition:h}=a(l),S=!!h,R=o(S?k.substring(0,h):k);if(!R){if(!S){r=l+(r.length>0?" "+r:r);continue}if(R=o(k),!R){r=l+(r.length>0?" "+r:r);continue}S=!1}let b=bi(D).join(":"),d=g?b+Wa:b,X=d+R;if(i.includes(X))continue;i.push(X);let V=s(R,S);for(let U=0;U<V.length;++U){let me=V[U];i.push(d+me)}r=l+(r.length>0?" "+r:r)}return r};function Ni(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ga(t))&&(o&&(o+=" "),o+=a);return o}var Ga=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ga(e[o]))&&(a&&(a+=" "),a+=t);return a};function Ci(e,...t){let a,o,s,i=n;function n(c){let l=t.reduce((D,g)=>g(D),e());return a=xi(l),o=a.cache.get,s=a.cache.set,i=r,r(c)}function r(c){let l=o(c);if(l)return l;let D=wi(c,a);return s(c,D),D}return function(){return i(Ni.apply(null,arguments))}}var ee=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},$a=/^\[(?:([a-Ya-]+):)?(.+)\]$/i,Di=/^\d+\/\d+$/,ki=new Set(["px","full","screen"]),Pi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Si=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Fa|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ya|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ri=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ya]+|0)_-?((\d+)?\.?(\d+)[a-Ya]+|0)/,Ai=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ue=e=>gt(e)||ki.has(e)||Di.test(e),qe=e=>ft(e,"length",Fi),gt=e=>!!e&&!Number.isNaN(Number(e)),ga=e=>ft(e,"number",gt),Nt=e=>!!e&&Number.isInteger(Number(e)),Ii=e=>e.endsWith("%")&>(e.slice(0,-1)),B=e=>$a.test(e),Je=e=>Pi.test(e),Mi=new Set(["length","size","percentage"]),Bi=e=>ft(e,Mi,_a),Li=e=>ft(e,"position",_a),ji=new Set(["image","url"]),zi=e=>ft(e,ji,Hi),Ei=e=>ft(e,"",Ui),Ct=()=>!0,ft=(e,t,a)=>{let o=$a.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Fi=e=>Si.test(e)&&!Ri.test(e),_a=()=>!1,Ui=e=>Ti.test(e),Hi=e=>Ai.test(e);var Oi=()=>{let e=ee("colors"),t=ee("spacing"),a=ee("blur"),o=ee("brightness"),s=ee("borderColor"),i=ee("borderRadius"),n=ee("borderSpacing"),r=ee("borderWidth"),c=ee("contrast"),l=ee("grayscale"),D=ee("hueRotate"),g=ee("invert"),k=ee("gap"),h=ee("gradientColorStops"),S=ee("gradientColorStopPositions"),R=ee("inset"),b=ee("margin"),d=ee("opacity"),X=ee("padding"),V=ee("saturate"),U=ee("scale"),me=ee("sepia"),q=ee("skew"),ae=ee("space"),x=ee("translate"),_=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto",B,t],H=()=>[B,t],Ae=()=>["",Ue,qe],m=()=>["auto",gt,B],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],it=()=>["","0",B],Et=()=>["auto","avoid","all","avoid-page","page","left","right","column"],je=()=>[gt,B];return{cacheSize:500,separator:":",theme:{colors:[Ct],spacing:[Ue,qe],blur:["none","",Je,B],brightness:je(),borderColor:[e],borderRadius:["none","","full",Je,B],borderSpacing:H(),borderWidth:Ae(),contrast:je(),grayscale:it(),hueRotate:je(),invert:it(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[Ii,qe],inset:re(),margin:re(),opacity:je(),padding:H(),saturate:je(),scale:je(),sepia:it(),skew:je(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[Je]}],"break-after":[{"break-after":Et()}],"break-before":[{"break-before":Et()}],"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"],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:[...J(),B]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-Ya":[{"overflow-Ya":Q()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-Ya":[{"overscroll-Ya":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-Ya":[{"inset-Ya":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],Ya:[{Ya:["auto",Nt,B]}],basis:[{basis:re()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:it()}],shrink:[{shrink:it()}],order:[{order:["first","last","none",Nt,B]}],"grid-cols":[{"grid-cols":[Ct]}],"col-start-end":[{col:["auto",{span:["full",Nt,B]},B]}],"col-start":[{"col-start":m()}],"col-end":[{"col-end":m()}],"grid-rows":[{"grid-rows":[Ct]}],"row-start-end":[{row:["auto",{span:[Nt,B]},B]}],"row-start":[{"row-start":m()}],"row-end":[{"row-end":m()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-Ya":[{"gap-Ya":[k]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[X]}],px:[{px:[X]}],py:[{py:[X]}],ps:[{ps:[X]}],pe:[{pe:[X]}],Fa:[{Fa:[X]}],pr:[{pr:[X]}],pb:[{pb:[X]}],pl:[{pl:[X]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-Ya":[{"space-Ya":[ae]}],"space-Ya-reverse":["space-Ya-reverse"],Ya:[{Ya:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-Ya":[{"min-Ya":[B,t,"min","max","fit"]}],"max-Ya":[{"max-Ya":[B,t,"none","full","min","max","fit","prose",{screen:[Je]},Je]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Je,qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ga]}],"font-family":[{font:[Ct]}],"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:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",gt,ga]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ue,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[d]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ue,qe]}],"underline-offset":[{"underline-offset":["auto",Ue,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[d]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Li]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Ya","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bi]}],"bg-image":[{bg:["none",{"gradient-Ya":["t","tr","r","br","b","bl","l","tl"]},zi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-Ya-pos":[{Ya:[S]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-Ya":[{Ya:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-Ya":[{border:[r]}],"border-Ya-x":[{"border-x":[r]}],"border-Ya-Ya":[{"border-Ya":[r]}],"border-Ya-s":[{"border-s":[r]}],"border-Ya-e":[{"border-e":[r]}],"border-Ya-t":[{"border-t":[r]}],"border-Ya-r":[{"border-r":[r]}],"border-Ya-b":[{"border-b":[r]}],"border-Ya-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[d]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-Ya":[{"divide-Ya":[r]}],"divide-Ya-reverse":["divide-Ya-reverse"],"divide-opacity":[{"divide-opacity":[d]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-Ya":[{"border-Ya":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Ue,B]}],"outline-Ya":[{outline:[Ue,qe]}],"outline-color":[{outline:[e]}],"ring-Ya":[{ring:Ae()}],"ring-Ya-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[d]}],"ring-offset-Ya":[{"ring-offset":[Ue,qe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Je,Ei]}],"shadow-color":[{shadow:[Ct]}],opacity:[{opacity:[d]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Je,B]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[g]}],saturate:[{saturate:[V]}],sepia:[{sepia:[me]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[d]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-Ya":[{"border-spacing-Ya":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:je()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:je()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-Ya":[{"scale-Ya":[U]}],rotate:[{rotate:[Nt,B]}],"translate-x":[{"translate-x":[x]}],"translate-Ya":[{"translate-Ya":[x]}],"skew-x":[{"skew-x":[q]}],"skew-Ya":[{"skew-Ya":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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","Ya-resize","Ya-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ya","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-Fa":[{"scroll-Fa":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Ya","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Ya":[{"touch-pan":["Ya","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-Ya":[{stroke:[Ue,qe,ga]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Ya"],overscroll:["overscroll-x","overscroll-Ya"],inset:["inset-x","inset-Ya","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Ya":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Ya"],p:["px","py","ps","pe","Fa","pr","pb","pl"],px:["pr","pl"],py:["Fa","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Ya","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-Ya"],"border-Ya":["border-Ya-s","border-Ya-e","border-Ya-t","border-Ya-r","border-Ya-b","border-Ya-l"],"border-Ya-x":["border-Ya-r","border-Ya-l"],"border-Ya-Ya":["border-Ya-t","border-Ya-b"],"border-color":["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-Ya":["border-color-t","border-color-b"],"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-Fa","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Fa","scroll-pb"],touch:["touch-x","touch-Ya","touch-pz"],"touch-x":["touch"],"touch-Ya":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qa=Ci(Oi);function p(...e){return qa((0,Ja.clsx)(e))}var _t=Z(require("react")),Ca=Z(require("next/link"));var Xa=require("class-variance-authority");var Ya=require("react/jsx-runtime"),Ki=(0,Xa.cva)("inline-flex items-center rounded-md 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 shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function W({className:e,variant:t,...a}){return(0,Ya.jsx)("div",{className:p(Ki({variant:t}),e),...a})}var Qa=require("@radix-ui/react-slot"),eo=Z(require("react")),Vi=(0,Xa.cva)("inline-flex items-center justify-center whitespace-nowrap rounded 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",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 Ya-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),N=eo.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...s},i)=>(0,Ya.jsx)(e?Qa.Slot:"button",{className:p(Vi({className:t,size:a,variant:o})),ref:i,...s}));N.displayName="Button";var ao=Z(require("react"));var he=ao.forwardRef(({className:e,type:t,...a},o)=>(0,Ya.jsx)("input",{type:t,className:p("flex h-9 Ya-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));he.displayName="Input";var ha=Z(require("react")),Se=Z(require("@radix-ui/react-scroll-area"));var ze=ha.forwardRef(({className:e,children:t,...a},o)=>(0,Ya.jsxs)(Se.Root,{ref:o,className:p("relative overflow-hidden",e),...a,children:[(0,Ya.jsx)(Se.Viewport,{className:"h-full Ya-full rounded-[inherit]",children:t}),(0,Ya.jsx)(io,{}),(0,Ya.jsx)(Se.Corner,{})]}));ze.displayName=Se.Root.displayName;var io=ha.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Ya.jsx)(Se.ScrollAreaScrollbar,{ref:o,orientation:t,className:p("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Ya-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Ya.jsx)(Se.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));io.displayName=Se.ScrollAreaScrollbar.displayName;var Dt=Z(require("react")),pe=Z(require("@radix-ui/react-dialog"));var so=pe.Root;var Wi=pe.Portal;var no=Dt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(pe.Overlay,{ref:a,className:p("fixed inset-0 Ya-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));no.displayName=pe.Overlay.displayName;var ba=Dt.forwardRef(({className:e,children:t,...a},o)=>(0,Ya.jsxs)(Wi,{children:[(0,Ya.jsx)(no,{}),(0,Ya.jsxs)(pe.Content,{ref:o,className:p("fixed left-[50%] top-[50%] Ya-50 grid Ya-full max-Ya-lg translate-x-[-50%] translate-Ya-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-Ya-left-1/2 data-[state=closed]:slide-out-Ya-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Ya.jsxs)(pe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Ya.jsx)(Zo.X,{className:"h-4 Ya-4"}),(0,Ya.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ba.displayName=pe.Content.displayName;var xa=({className:e,...t})=>(0,Ya.jsx)("div",{className:p("flex flex-col space-Ya-1.5 text-center sm:text-left",e),...t});xa.displayName="DialogHeader";var Gi=({className:e,...t})=>(0,Ya.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Gi.displayName="DialogFooter";var ya=Dt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(pe.Title,{ref:a,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));ya.displayName=pe.Title.displayName;var $i=Dt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(pe.Description,{ref:a,className:p("text-sm text-muted-foreground",e),...t}));$i.displayName=pe.Description.displayName;var kt=Z(require("@radix-ui/react-checkbox")),co=Z(require("react")),wa=co.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(kt.Root,{className:p("peer h-4 Ya-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Ya.jsx)(kt.Indicator,{className:p("flex items-center justify-center text-current"),children:(0,Ya.jsx)(Zo.Check,{className:"h-4 Ya-4"})})}));wa.displayName=kt.Root.displayName;var Ee=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date}),po=[{id:"home",title:"Home",icon:(0,Ya.jsx)(Zo.Home,{}),isActive:!0},{id:"teams",title:"Teams",icon:(0,Ya.jsx)(Zo.Users,{}),maxItems:2,items:[{id:"design",title:"Design",url:"#"},{id:"marketing",title:"Marketing",url:"#"},{id:"finance",title:"Finance",url:"#"},{id:"engineering",title:"Engineering",url:"#"},{id:"sales",title:"Sales",url:"#"}]},{id:"projects",title:"Projects",icon:(0,Ya.jsx)(Zo.Layers,{}),badge:"4",maxItems:2,items:[{id:"active-projects",title:"Active Projects",url:"#",badge:"4"},{id:"archived",title:"Archived",url:"#"},{id:"templates",title:"Templates",url:"#"},{id:"drafts",title:"Drafts",url:"#"},{id:"shared",title:"Shared with Me",url:"#",badge:"2"}]},{id:"copilot",title:"Copilot",icon:(0,Ya.jsx)(Zo.Bot,{}),url:"/copilot"},{id:"knowledge",title:"Knowledge",icon:(0,Ya.jsx)(Zo.FileText,{}),url:"/knowledge"}],uo=[{id:"1",title:"New comment on your post",description:"Alex Morgan commented on your 'Minimalist Logo Design' post.",time:"Just now",read:!1,type:"info",actionLabel:"View comment",onAction:()=>console.log("View comment clicked")},{id:"2",title:"Project deadline approaching",description:"The 'Website Redesign' project is due in 2 days.",time:"5 minutes ago",read:!1,type:"warning",actionLabel:"View project",onAction:()=>console.log("View project clicked")},{id:"3",title:"File shared with you",description:"Emma Thompson shared 'Brand Guidelines.pdf' with you.",time:"1 hour ago",read:!1,type:"info",actionLabel:"Open file",onAction:()=>console.log("Open file clicked")},{id:"4",title:"Update successful",description:"PixelMaster has been updated Ya version 2.4.0.",time:"3 hours ago",read:!0,type:"success",actionLabel:"See what's new",onAction:()=>console.log("See what's new clicked")},{id:"5",title:"Storage limit reached",description:"You've used 95% of your storage. Consider upgrading your plan.",time:"Yesterday",read:!0,type:"error",actionLabel:"Upgrade plan",onAction:()=>console.log("Upgrade plan clicked")},{id:"6",title:"Weekly summary",description:"Check out your activity summary for the past week.",time:"2 days ago",read:!0,type:"info",actionLabel:"View summary",onAction:()=>console.log("View summary clicked")},{id:"7",title:"New tutorial available",description:"Ya new tutorial on 'Advanced Animation Techniques' is now available.",time:"3 days ago",read:!0,type:"info",actionLabel:"Start learning",onAction:()=>console.log("Start learning clicked")}],go=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Ya.jsx)(Zo.Palette,{className:"h-4 Ya-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Ya.jsx)(Zo.Code,{className:"h-4 Ya-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Ya.jsx)(Zo.TrendingUp,{className:"h-4 Ya-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Ya.jsx)(Zo.DollarSign,{className:"h-4 Ya-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Ya.jsx)(Zo.Users,{className:"h-4 Ya-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Ya.jsx)(Zo.Wrench,{className:"h-4 Ya-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Ya.jsx)(Zo.Scale,{className:"h-4 Ya-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Ya.jsx)(Zo.Package,{className:"h-4 Ya-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Ya.jsx)(Zo.Zap,{className:"h-4 Ya-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Ya.jsx)(Zo.Building2,{className:"h-4 Ya-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Kt=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],fo=[{name:"Website Redesign",description:"Complete overhaul of company website",progress:75,dueDate:"June 15, 2025",members:4,files:23},{name:"Mobile App Launch",description:"Design and assets for new mobile application",progress:60,dueDate:"July 30, 2025",members:6,files:42},{name:"Brand Identity",description:"New brand guidelines and assets",progress:90,dueDate:"May 25, 2025",members:3,files:18},{name:"Marketing Campaign",description:"Summer promotion materials",progress:40,dueDate:"August 10, 2025",members:5,files:31}];var Na=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Ht=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned Ya a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Wt=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_i=[...Wt,{id:"8",title:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",title:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",title:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",title:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",title:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],qi=[...Kt,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],Ot={projects:[{id:"1",name:"Empty Project",description:"Ya project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},mo={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Wt.filter(e=>e.epicId==="1")};var Rr={empty:{initialProjects:Ot.projects,initialEpics:Ot.epics,initialSprints:Ot.sprints,initialTasks:Ot.tasks},default:{initialProjects:Kt,initialEpics:Na,initialSprints:Ht,initialTasks:Wt},highDensity:{initialProjects:Kt,initialEpics:Na,initialSprints:Ht,initialTasks:_i},singleEpic:{initialProjects:Kt,initialEpics:mo.epics,initialSprints:Ht,initialTasks:mo.tasks},multipleProjects:{initialProjects:qi,initialEpics:Na,initialSprints:Ht,initialTasks:Wt}},Vt=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Ee),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Ee),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Ee),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Ee),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated Ya understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Ee),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Ee),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Ee),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Ee),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond Ya customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases Ya human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Ee),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Ee),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Tr=[{id:"1",title:"Review quarterly report",description:"Ya through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Vt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:Vt.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy Ya production",description:"Deploy the latest version Ya production environment",dueDate:new Date,dueTime:"16:00",colleague:Vt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var Ar=Vt.filter(e=>e.type==="digital");function $t(e,t){let[a,o]=(0,Fa.useState)(()=>{if(typeof window>"Ya")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),s=i=>{try{o(i),typeof window<"Ya"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,Fa.useEffect)(()=>{s(a)},[]),[a,s]}function Da({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:s=go[0],onBusinessUnitChange:i,onSearch:n,className:r,logo:c="/headerlogo.png",appName:l="Nuvia",tagline:D="Collaboration Platform"}){let[g,k]=_t.useState({}),[h,S]=$t("sidebar-favorites",{}),[R,b]=_t.useState(null),[d,X]=_t.useState(""),V=m=>{k(J=>({...J,[m]:!J[m]}))},U=m=>{i?.(m)},me=()=>{d.trim()&&n?.(d.trim())},q=m=>{m.key==="Enter"&&(m.preventDefault(),me())},ae=(m,J)=>{let Y=h[m]||[],Ie=Y.includes(J)?Y.filter(xe=>xe!==J):Y.concat(J);S({...h,[m]:Ie})},x=m=>{if(!m.items||!m.maxItems||m.items.length<=m.maxItems)return m.items||[];let J=h[m.id]||[],Y=m.items.filter(xe=>J.includes(xe.id)),Ie=m.items.filter(xe=>!J.includes(xe.id));return[...Y,...Ie].slice(0,m.maxItems)},_=m=>m.maxItems&&m.items&&m.items.length>m.maxItems,Q=e,re=m=>{let J=_(m),Y=x(m),Ie=(0,Ya.jsxs)(Ya.Fragment,{children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[m.icon,(0,Ya.jsx)("span",{children:m.title})]}),m.badge&&(0,Ya.jsx)(W,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:m.badge}),m.items&&(0,Ya.jsx)(Zo.ChevronDown,{className:p("ml-2 h-4 Ya-4 transition-transform",g[m.title]?"rotate-180":"")})]}),xe=p("flex Ya-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",m.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return m.url?(0,Ya.jsx)(Ca.default,{href:m.url,className:xe,onClick:a?o:void 0,children:Ie}):(0,Ya.jsx)("button",{className:xe,onClick:()=>m.items&&V(m.title),children:Ie})},H=()=>{let m=e.find(Y=>Y.id===R);if(!m||!m.items||!m.maxItems)return null;let J=h[m.id]||[];return(0,Ya.jsx)(so,{open:!!R,onOpenChange:Y=>!Y&&b(null),children:(0,Ya.jsxs)(ba,{className:"sm:max-Ya-md",children:[(0,Ya.jsxs)(xa,{children:[(0,Ya.jsxs)(ya,{children:["Manage ",m.title," Favorites"]}),(0,Ya.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up Ya ",m.maxItems," items Ya show in ",m.title.toLowerCase(),"."]})]}),(0,Ya.jsx)(ze,{className:"max-h-96 pr-4",children:(0,Ya.jsx)("div",{className:"space-Ya-4",children:m.items.map(Y=>(0,Ya.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ya.jsx)(wa,{id:Y.id,checked:J.includes(Y.id),onCheckedChange:()=>ae(m.id,Y.id),disabled:!J.includes(Y.id)&&J.length>=(m.maxItems||0)}),(0,Ya.jsxs)("label",{htmlFor:Y.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[Y.title,Y.badge&&(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:Y.badge})]})]},Y.id))})})]})})},Ae=(0,Ya.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ya.jsx)("div",{className:"flex h-14 Ya-14 items-center justify-center",children:(0,Ya.jsx)("img",{src:c,alt:"Header Logo",className:"h-14 Ya-14 object-contain"})}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("h2",{className:"font-semibold",children:l}),(0,Ya.jsx)("p",{className:"text-xs text-muted-foreground",children:D})]})]}),a&&(0,Ya.jsx)(N,{variant:"ghost",size:"icon",onClick:o,children:(0,Ya.jsx)(Zo.X,{className:"h-5 Ya-5"})})]}),(0,Ya.jsx)("div",{className:"px-3 py-2",children:(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)(Zo.Search,{className:"absolute left-3 top-3 h-4 Ya-4 text-muted-foreground"}),(0,Ya.jsx)(he,{type:"search",placeholder:"Search...",className:"Ya-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:d,onChange:m=>X(m.target.value),onKeyPress:q})]})}),(0,Ya.jsx)(ze,{className:"flex-1 px-3 py-2",children:(0,Ya.jsx)("div",{className:"space-Ya-1",children:Q.map(m=>(0,Ya.jsxs)("div",{className:"mb-1",children:[re(m),m.items&&g[m.title]&&(0,Ya.jsxs)("div",{className:"mt-1 ml-6 space-Ya-1 border-l pl-3",children:[x(m).map(J=>(0,Ya.jsxs)(Ca.default,{href:J.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[J.title,J.badge&&(0,Ya.jsx)(W,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:J.badge})]},J.id)),_(m)&&m.items&&m.items.length>x(m).length&&(0,Ya.jsxs)("button",{onClick:()=>b(m.id),className:"Ya-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",m.items.length-x(m).length," more available"]})]})]},m.id))})}),(0,Ya.jsx)("div",{className:"p-3",children:(0,Ya.jsx)("div",{className:"space-Ya-1",children:(0,Ya.jsxs)("button",{className:"flex Ya-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Ya.jsx)(Zo.Settings,{className:"h-5 Ya-5"}),(0,Ya.jsx)("span",{children:"Settings"})]})})}),(0,Ya.jsx)(H,{})]});return a?(0,Ya.jsx)("div",{className:p("fixed inset-Ya-0 left-0 Ya-50 Ya-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:Ae}):(0,Ya.jsx)("div",{className:p("fixed inset-Ya-0 left-0 Ya-30 Ya-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:Ae})}var qt=Z(require("react")),He=Z(require("@radix-ui/react-avatar"));var Oe=qt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(He.Root,{ref:a,className:p("relative flex h-10 Ya-10 shrink-0 overflow-hidden rounded-full",e),...t}));Oe.displayName=He.Root.displayName;var rt=qt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(He.Image,{ref:a,className:p("aspect-square h-full Ya-full",e),...t}));rt.displayName=He.Image.displayName;var Ke=qt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(He.Fallback,{ref:a,className:p("flex h-full Ya-full items-center justify-center rounded-full bg-muted",e),...t}));Ke.displayName=He.Fallback.displayName;var vo=Z(require("react")),Me=Z(require("@radix-ui/react-tooltip"));var Xt=Me.Provider,Yt=Me.Root,Qt=Me.Trigger,Pt=vo.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ya.jsx)(Me.Portal,{children:(0,Ya.jsx)(Me.Content,{ref:o,sideOffset:t,className:p("Ya-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...a})}));Pt.displayName=Me.Content.displayName;var ho=require("next-themes");function bo(){let{setTheme:e,theme:t}=(0,ho.useTheme)();return(0,Ya.jsx)(Xt,{children:(0,Ya.jsxs)(Yt,{children:[(0,Ya.jsx)(Qt,{asChild:!0,children:(0,Ya.jsxs)(N,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Ya.jsx)(Zo.Sun,{className:"h-5 Ya-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ya.jsx)(Zo.Moon,{className:"absolute h-5 Ya-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ya.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Ya.jsx)(Pt,{children:"Toggle theme"})]})})}function xo({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:s,className:i}){let n=e.filter(l=>!l.read),r=n.length,c=l=>{switch(l){case"info":return(0,Ya.jsx)(Zo.Info,{className:"h-5 Ya-5 text-blue-500"});case"success":return(0,Ya.jsx)(Zo.Check,{className:"h-5 Ya-5 text-green-500"});case"warning":return(0,Ya.jsx)(Zo.AlertTriangle,{className:"h-5 Ya-5 text-amber-500"});case"error":return(0,Ya.jsx)(Zo.AlertTriangle,{className:"h-5 Ya-5 text-red-500"})}};return(0,Ya.jsx)(ma.AnimatePresence,{children:t&&(0,Ya.jsxs)(Ya.Fragment,{children:[(0,Ya.jsx)(ma.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 Ya-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,Ya.jsx)(ma.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:p("fixed inset-Ya-0 right-0 Ya-50 Ya-full max-Ya-sm border-l bg-background shadow-lg md:Ya-96",i),children:(0,Ya.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ya.jsx)(Zo.Bell,{className:"h-5 Ya-5"}),(0,Ya.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),r>0&&(0,Ya.jsxs)(W,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[r," new"]})]}),(0,Ya.jsxs)(N,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,Ya.jsx)(Zo.X,{className:"h-5 Ya-5"}),(0,Ya.jsx)("span",{className:"sr-only",children:"Close"})]})]}),r>0&&(0,Ya.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,Ya.jsxs)("span",{className:"text-sm text-muted-foreground",children:[r," unread notification",r!==1?"s":""]}),(0,Ya.jsx)(N,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Ya.jsx)(ze,{className:"flex-1",children:(0,Ya.jsx)("div",{className:"divide-Ya",children:n.map(l=>(0,Ya.jsxs)("div",{className:p("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,Ya.jsx)("div",{className:"flex h-10 Ya-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:c(l.type)}),(0,Ya.jsxs)("div",{className:"flex-1 space-Ya-1",children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ya.jsx)("p",{className:"font-medium",children:l.title}),(0,Ya.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ya.jsx)("p",{className:"text-xs text-muted-foreground",children:l.time}),(0,Ya.jsx)(N,{variant:"ghost",size:"sm",className:"h-6 Ya-6 p-0",onClick:()=>o?.(l.id),title:"Dismiss",children:(0,Ya.jsx)(Zo.Check,{className:"h-3 Ya-3"})})]})]}),(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:l.description}),l.actionLabel&&(0,Ya.jsxs)(N,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:l.onAction,children:[l.actionLabel,(0,Ya.jsx)(Zo.ChevronRight,{className:"ml-1 h-3 Ya-3"})]})]})]},l.id))})}):(0,Ya.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,Ya.jsx)("div",{className:"flex h-16 Ya-16 items-center justify-center rounded-full bg-muted",children:(0,Ya.jsx)(Zo.Bell,{className:"h-8 Ya-8 text-muted-foreground"})}),(0,Ya.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Ya.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var st=Z(require("@radix-ui/react-tabs"));function yo({className:e,...t}){return(0,Ya.jsx)(st.Root,{"data-slot":"tabs",className:p("flex flex-col gap-2",e),...t})}function wo({className:e,...t}){return(0,Ya.jsx)(st.List,{"data-slot":"tabs-list",className:p("bg-muted text-muted-foreground inline-flex h-9 Ya-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function No({className:e,...t}){return(0,Ya.jsx)(st.Trigger,{"data-slot":"tabs-trigger",className:p("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Ve=Z(require("react")),E=Z(require("@radix-ui/react-dropdown-menu")),vt=require("@radix-ui/react-icons");var ta=E.Root,aa=E.Trigger;var Ji=Ve.forwardRef(({className:e,inset:t,children:a,...o},s)=>(0,Ya.jsxs)(E.SubTrigger,{ref:s,className:p("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",t&&"pl-8",e),...o,children:[a,(0,Ya.jsx)(vt.ChevronRightIcon,{className:"ml-auto"})]}));Ji.displayName=E.SubTrigger.displayName;var Xi=Ve.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(E.SubContent,{ref:a,className:p("Ya-50 min-Ya-[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",e),...t}));Xi.displayName=E.SubContent.displayName;var Rt=Ve.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ya.jsx)(E.Portal,{children:(0,Ya.jsx)(E.Content,{ref:o,sideOffset:t,className:p("Ya-50 min-Ya-[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",e),...a})}));Rt.displayName=E.Content.displayName;var nt=Ve.forwardRef(({className:e,inset:t,...a},o)=>(0,Ya.jsx)(E.Item,{ref:o,className:p("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]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));nt.displayName=E.Item.displayName;var Yi=Ve.forwardRef(({className:e,children:t,checked:a,...o},s)=>(0,Ya.jsxs)(E.CheckboxItem,{ref:s,className:p("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",e),checked:a,...o,children:[(0,Ya.jsx)("span",{className:"absolute left-2 flex h-3.5 Ya-3.5 items-center justify-center",children:(0,Ya.jsx)(E.ItemIndicator,{children:(0,Ya.jsx)(vt.CheckIcon,{className:"h-4 Ya-4"})})}),t]}));Yi.displayName=E.CheckboxItem.displayName;var Qi=Ve.forwardRef(({className:e,children:t,...a},o)=>(0,Ya.jsxs)(E.RadioItem,{ref:o,className:p("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",e),...a,children:[(0,Ya.jsx)("span",{className:"absolute left-2 flex h-3.5 Ya-3.5 items-center justify-center",children:(0,Ya.jsx)(E.ItemIndicator,{children:(0,Ya.jsx)(vt.DotFilledIcon,{className:"h-4 Ya-4 fill-current"})})}),t]}));Qi.displayName=E.RadioItem.displayName;var Zi=Ve.forwardRef(({className:e,inset:t,...a},o)=>(0,Ya.jsx)(E.Label,{ref:o,className:p("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Zi.displayName=E.Label.displayName;var er=Ve.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(E.Separator,{ref:a,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));er.displayName=E.Separator.displayName;var tr=({className:e,...t})=>(0,Ya.jsx)("span",{className:p("ml-auto text-xs tracking-widest opacity-60",e),...t});tr.displayName="DropdownMenuShortcut";function oa({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:s="700px",gridCols:i=6}){let n=a.find(r=>r.value===e);return(0,Ya.jsxs)(ma.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,Ya:-20},animate:{opacity:1,Ya:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ya.jsx)("div",{className:"hidden md:block",children:(0,Ya.jsx)(yo,{value:e,onValueChange:t,children:(0,Ya.jsx)(wo,{className:"grid Ya-full rounded-2xl p-0 h-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(i,a.length)}, minmax(0, 1fr))`},children:a.map(r=>(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ya.jsx)(No,{value:r.value,className:"Ya-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:r.label})},r.value))})})}),(0,Ya.jsx)("div",{className:"md:hidden",children:(0,Ya.jsxs)(ta,{children:[(0,Ya.jsx)(aa,{asChild:!0,children:(0,Ya.jsxs)(N,{variant:"outline",className:"rounded-2xl min-Ya-[140px] justify-between",children:[n?.label||"Select",(0,Ya.jsx)(Zo.ChevronDown,{className:"h-4 Ya-4 ml-2"})]})}),(0,Ya.jsx)(Rt,{align:"center",className:"Ya-[180px]",children:a.map(r=>(0,Ya.jsx)(nt,{onClick:()=>t?.(r.value),className:`cursor-pointer ${e===r.value?"bg-accent":""}`,children:r.label},r.value))})]})})]})}function Do({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:s=!0,className:i,activeTab:n="assistant",onTabChange:r,showTabs:c=!0,tabOptions:l=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:D,actionIcon:g=(0,Ya.jsx)(Zo.Bot,{className:"mr-2 h-4 Ya-4"}),actionText:k="Action",onNotificationRemove:h,onRemoveAll:S,logo:R="/headerlogo.png",appName:b="Nuvia",tagline:d="Collaboration Platform"}){let[X,V]=(0,Fa.useState)(!1),[U,me]=(0,Fa.useState)(t),q=U.filter(_=>!_.read).length,ae=_=>{me(Q=>Q.filter(re=>re.id!==_)),h?.(_)},x=()=>{me(_=>_.filter(Q=>Q.read)),S?.()};return(0,Ya.jsxs)(Ya.Fragment,{children:[(0,Ya.jsxs)("header",{className:`sticky top-0 Ya-10 flex h-16 items-center gap-3 px-4 backdrop-blur ${i||""}`,children:[(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,Ya.jsx)(Zo.Menu,{className:"h-5 Ya-5"})}),(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,Ya.jsx)(Zo.PanelLeft,{className:"h-5 Ya-5"})}),!s&&(0,Ya.jsxs)(ma.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Ya.jsx)("div",{className:"flex h-10 Ya-10 items-center justify-center",children:(0,Ya.jsx)("img",{src:R,alt:"Logo",className:"h-10 Ya-10 object-contain"})}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("h2",{className:"font-semibold text-sm",children:b}),(0,Ya.jsx)("p",{className:"text-xs text-muted-foreground",children:d})]})]}),(0,Ya.jsxs)("div",{className:"flex flex-1 items-center",children:[c&&(0,Ya.jsx)(oa,{activeTab:n,onTabChange:r,tabOptions:l}),(0,Ya.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Ya.jsx)(ma.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ya.jsxs)(N,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:D,children:[g,k]})})}),(0,Ya.jsx)(bo,{}),(0,Ya.jsx)(Xt,{children:(0,Ya.jsxs)(Yt,{children:[(0,Ya.jsx)(Qt,{asChild:!0,children:(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ya.jsxs)(N,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>V(!0),children:[(0,Ya.jsx)(ma.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,Ya.jsx)(Zo.Bell,{className:"h-5 Ya-5"})}),q>0&&(0,Ya.jsx)(ma.motion.span,{className:"absolute -right-1 -top-1 flex h-5 Ya-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:q})]})})}),(0,Ya.jsx)(Pt,{children:"Notifications"})]})}),(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ya.jsxs)(Oe,{className:"h-9 Ya-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Ya.jsx)(rt,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Ya.jsx)(Ke,{})]})})]})]})]}),(0,Ya.jsx)(xo,{notifications:U,open:X,onClose:()=>V(!1),onNotificationRemove:ae,onRemoveAll:x})]})}var ko=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,Ya.jsx)(Zo.User,{className:"h-4 Ya-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function So({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:s=ko[0],onBusinessUnitChange:i,onSearch:n,businessUnits:r=ko,activeTab:c,onTabChange:l,showTabs:D=!1,onActionClick:g,actionIcon:k,actionText:h="Action",onNotificationRemove:S,onRemoveAll:R,logo:b="/headerlogo.png",appName:d="Nuvia",tagline:X="Collaboration Platform",sidebarInitiallyClosed:V=!1}){let[U,me]=(0,Fa.useState)(!V),[q,ae]=(0,Fa.useState)(!1),[x,_]=(0,Fa.useState)(s),Q=re=>{_(re),i?.(re)};return(0,Ya.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background Ya-[]",children:[q&&(0,Ya.jsx)("div",{className:"fixed inset-0 Ya-40 bg-black/50 md:hidden",onClick:()=>ae(!1)}),(0,Ya.jsx)("div",{className:"md:hidden",children:(0,Ya.jsx)(Da,{items:e,isOpen:q,isMobile:!0,onClose:()=>ae(!1),currentBusinessUnit:x,onBusinessUnitChange:Q,onSearch:n,logo:b,appName:d,tagline:X})}),(0,Ya.jsx)("div",{className:"hidden md:block",children:(0,Ya.jsx)(Da,{items:e,isOpen:U,isMobile:!1,currentBusinessUnit:x,onBusinessUnitChange:Q,onSearch:n,logo:b,appName:d,tagline:X})}),(0,Ya.jsxs)("div",{className:p("min-h-screen fixed Ya-full transition-all duration-300 ease-in-out",U?"md:pl-64":"md:pl-0"),children:[(0,Ya.jsx)(Do,{title:a,notifications:o,onToggleSidebar:()=>me(!U),onToggleMobileMenu:()=>ae(!0),sidebarOpen:U,activeTab:c,onTabChange:l,showTabs:D,onActionClick:g,actionIcon:k,actionText:h,onNotificationRemove:S,onRemoveAll:R,logo:b,appName:d,tagline:X}),(0,Ya.jsx)("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-auto",children:t})]})]})}var ra=require("react-icons/fa");function Be({title:e,description:t,badge:a,primaryAction:o,secondaryAction:s,gradient:i,children:n,className:r}){let[c,l]=$t(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),D=!s&&!t||c;return(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:20},animate:{opacity:1,Ya:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${r||""}`,children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,Ya.jsx)(W,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,Ya.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[D&&o&&(0,Ya.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,Ya.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>l(!c),style:{lineHeight:0},children:c?(0,Ya.jsx)(ra.FaChevronDown,{size:22}):(0,Ya.jsx)(ra.FaChevronUp,{size:22})})]})]}),!D&&(0,Ya.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ya.jsxs)("div",{className:"space-Ya-4",children:[(0,Ya.jsx)("p",{className:"max-Ya-[600px] text-white/80",children:t}),(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ya.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,Ya.jsx)(N,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),n&&(0,Ya.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var lt=Z(require("react"));var K=lt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("div",{ref:a,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));K.displayName="Card";var oe=lt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("div",{ref:a,className:p("flex flex-col space-Ya-1.5 p-6",e),...t}));oe.displayName="CardHeader";var se=lt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("div",{ref:a,className:p("font-semibold leading-none tracking-tight",e),...t}));se.displayName="CardTitle";var Tt=lt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("div",{ref:a,className:p("text-sm text-muted-foreground",e),...t}));Tt.displayName="CardDescription";var G=lt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("div",{ref:a,className:p("p-6 Fa-0",e),...t}));G.displayName="CardContent";var At=lt.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("div",{ref:a,className:p("flex items-center p-6 Fa-0",e),...t}));At.displayName="CardFooter";var To=Z(require("react")),It=Z(require("@radix-ui/react-progress"));var Mt=To.forwardRef(({className:e,value:t,...a},o)=>(0,Ya.jsx)(It.Root,{ref:o,className:p("relative h-4 Ya-full overflow-hidden rounded-full bg-secondary",e),...a,children:(0,Ya.jsx)(It.Indicator,{className:"h-full Ya-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Mt.displayName=It.Root.displayName;function Ta({app:e,onOpen:t,onFavorite:a,showProgress:o=!1,className:s}){return(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.02,Ya:-5},whileTap:{scale:.98},className:s,children:(0,Ya.jsxs)(K,{className:"overflow-hidden rounded-3xl border-2 hover:border-primary/50 transition-all duration-300",children:[(0,Ya.jsx)(oe,{className:"pb-2",children:(0,Ya.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ya.jsx)("div",{className:"flex h-12 Ya-12 items-center justify-center rounded-2xl bg-muted",children:e.icon}),e.new?(0,Ya.jsx)(W,{className:"rounded-xl bg-amber-500",children:"New"}):(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Ya-8 rounded-2xl",onClick:()=>a?.(e),children:(0,Ya.jsx)(Zo.Star,{className:"h-4 Ya-4"})})]})}),(0,Ya.jsxs)(G,{className:"pb-2",children:[(0,Ya.jsx)(se,{className:"text-lg",children:e.name}),(0,Ya.jsx)(Tt,{children:e.description}),o&&e.progress<100&&(0,Ya.jsxs)("div",{className:"mt-2",children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ya.jsx)("span",{children:"Installation"}),(0,Ya.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Ya.jsx)(Mt,{value:e.progress,className:"h-2 mt-1 rounded-xl"})]})]}),(0,Ya.jsx)(At,{children:(0,Ya.jsx)(N,{variant:"secondary",className:"Ya-full rounded-2xl",onClick:()=>t?.(e),children:e.progress<100?"Continue Install":"Open"})})]})})}function Bo({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:s=!0,className:i}){return(0,Ya.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${i||""}`,children:[s&&(0,Ya.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,Ya.jsx)("div",{className:"col-span-6",children:"Name"}),(0,Ya.jsx)("div",{className:"col-span-2",children:"Size"}),(0,Ya.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,Ya.jsx)("div",{className:"divide-Ya",children:e.map(n=>(0,Ya.jsxs)(ma.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[(0,Ya.jsxs)("div",{className:"col-span-6 flex items-center gap-3 Ya-full md:Ya-auto",children:[(0,Ya.jsx)("div",{className:"flex h-10 Ya-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),(0,Ya.jsx)("div",{children:(0,Ya.jsx)("p",{className:"font-medium",children:n.name})})]}),(0,Ya.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),(0,Ya.jsxs)("div",{className:"col-span-2 flex items-center justify-between Ya-full md:Ya-auto",children:[(0,Ya.jsx)("span",{className:"text-sm md:text-base",children:n.modified}),(0,Ya.jsxs)("div",{className:"flex gap-1",children:[(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Ya-8 rounded-xl",onClick:r=>{r.stopPropagation(),a?.(n)},children:(0,Ya.jsx)(Zo.Edit,{className:"h-4 Ya-4"})}),(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Ya-8 rounded-xl text-red-500 hover:text-red-600",onClick:r=>{r.stopPropagation(),o?.(n)},children:(0,Ya.jsx)(Zo.Trash2,{className:"h-4 Ya-4"})}),(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Ya-8 rounded-xl",children:(0,Ya.jsx)(Zo.MoreHorizontal,{className:"h-4 Ya-4"})})]})]})]},n.name))})]})}function jo({project:e,onOpen:t,onShare:a,className:o}){return(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.02,Ya:-5},whileTap:{scale:.98},className:o,children:(0,Ya.jsxs)(K,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Ya.jsxs)(oe,{children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ya.jsx)(se,{children:e.name}),(0,Ya.jsxs)(W,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Ya.jsx)(Tt,{children:e.description})]}),(0,Ya.jsxs)(G,{className:"space-Ya-4",children:[(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ya.jsx)("span",{children:"Progress"}),(0,Ya.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Ya.jsx)(Mt,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Ya.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Ya.jsxs)("div",{className:"flex items-center",children:[(0,Ya.jsx)(Zo.Users,{className:"mr-1 h-4 Ya-4"}),e.members," members"]}),(0,Ya.jsxs)("div",{className:"flex items-center",children:[(0,Ya.jsx)(Zo.FileText,{className:"mr-1 h-4 Ya-4"}),e.files," files"]})]})]}),(0,Ya.jsxs)(At,{className:"flex gap-2",children:[(0,Ya.jsx)(N,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,Ya.jsx)(N,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>a?.(e),children:(0,Ya.jsx)(Zo.Share2,{className:"h-4 Ya-4"})})]})]})})}var Aa=[{name:"PixelMaster",icon:(0,Ya.jsx)($.ImageIcon,{className:"text-violet-500"}),description:"Advanced image editing and composition",category:"Creative",recent:!0,new:!1,progress:100},{name:"VectorPro",icon:(0,Ya.jsx)($.Brush,{className:"text-orange-500"}),description:"Professional vector graphics creation",category:"Creative",recent:!0,new:!1,progress:100},{name:"VideoStudio",icon:(0,Ya.jsx)($.Video,{className:"text-pink-500"}),description:"Cinematic video editing and production",category:"Video",recent:!0,new:!1,progress:100},{name:"MotionFX",icon:(0,Ya.jsx)($.Sparkles,{className:"text-blue-500"}),description:"Stunning visual effects and animations",category:"Video",recent:!1,new:!1,progress:100},{name:"PageCraft",icon:(0,Ya.jsx)($.Layers,{className:"text-red-500"}),description:"Professional page design and layout",category:"Creative",recent:!1,new:!1,progress:100},{name:"UXFlow",icon:(0,Ya.jsx)($.LayoutGrid,{className:"text-fuchsia-500"}),description:"Intuitive user experience design",category:"Design",recent:!1,new:!0,progress:85},{name:"PhotoLab",icon:(0,Ya.jsx)($.Camera,{className:"text-teal-500"}),description:"Advanced photo editing and organization",category:"Photography",recent:!1,new:!1,progress:100},{name:"DocMaster",icon:(0,Ya.jsx)($.FileText,{className:"text-red-600"}),description:"Document editing and management",category:"Document",recent:!1,new:!1,progress:100},{name:"WebCanvas",icon:(0,Ya.jsx)($.Code,{className:"text-emerald-500"}),description:"Web design and development",category:"Web",recent:!1,new:!0,progress:70},{name:"3DStudio",icon:(0,Ya.jsx)($.CuboidIcon,{className:"text-indigo-500"}),description:"3D modeling and rendering",category:"3D",recent:!1,new:!0,progress:60},{name:"FontForge",icon:(0,Ya.jsx)($.Type,{className:"text-amber-500"}),description:"Typography and font creation",category:"Typography",recent:!1,new:!1,progress:100},{name:"ColorPalette",icon:(0,Ya.jsx)($.Palette,{className:"text-purple-500"}),description:"Color scheme creation and management",category:"Design",recent:!1,new:!1,progress:100}],zo=[{name:"Brand Redesign.pxm",app:"PixelMaster",modified:"2 hours ago",icon:(0,Ya.jsx)($.ImageIcon,{className:"text-violet-500"}),shared:!0,size:"24.5 MB",collaborators:3},{name:"Company Logo.vec",app:"VectorPro",modified:"Yesterday",icon:(0,Ya.jsx)($.Brush,{className:"text-orange-500"}),shared:!0,size:"8.2 MB",collaborators:2},{name:"Product Launch Video.vid",app:"VideoStudio",modified:"3 days ago",icon:(0,Ya.jsx)($.Video,{className:"text-pink-500"}),shared:!1,size:"1.2 GB",collaborators:0},{name:"UI Animation.mfx",app:"MotionFX",modified:"Last week",icon:(0,Ya.jsx)($.Sparkles,{className:"text-blue-500"}),shared:!0,size:"345 MB",collaborators:4},{name:"Magazine Layout.pgc",app:"PageCraft",modified:"2 weeks ago",icon:(0,Ya.jsx)($.Layers,{className:"text-red-500"}),shared:!1,size:"42.8 MB",collaborators:0},{name:"Mobile App Design.uxf",app:"UXFlow",modified:"3 weeks ago",icon:(0,Ya.jsx)($.LayoutGrid,{className:"text-fuchsia-500"}),shared:!0,size:"18.3 MB",collaborators:5},{name:"Product Photography.phl",app:"PhotoLab",modified:"Last month",icon:(0,Ya.jsx)($.Camera,{className:"text-teal-500"}),shared:!1,size:"156 MB",collaborators:0}];var Eo=[{title:"Mastering Digital Illustration",description:"Learn advanced techniques for creating stunning digital art",duration:"1h 45m",level:"Advanced",instructor:"Sarah Chen",category:"Illustration",views:"24K"},{title:"UI/UX Design Fundamentals",description:"Essential principles for creating intuitive user interfaces",duration:"2h 20m",level:"Intermediate",instructor:"Michael Rodriguez",category:"Design",views:"56K"},{title:"Video Editing Masterclass",description:"Professional techniques for cinematic video editing",duration:"3h 10m",level:"Advanced",instructor:"James Wilson",category:"Video",views:"32K"},{title:"Typography Essentials",description:"Create beautiful and effective typography for any project",duration:"1h 30m",level:"Beginner",instructor:"Emma Thompson",category:"Typography",views:"18K"},{title:"Color Theory for Designers",description:"Understanding color relationships and psychology",duration:"2h 05m",level:"Intermediate",instructor:"David Kim",category:"Design",views:"41K"}];var F=Z(require("@radix-ui/react-select")),et=Z(require("react")),Ia=F.Root;var Ma=F.Value,sa=et.forwardRef(({children:e,className:t,...a},o)=>(0,Ya.jsxs)(F.Trigger,{className:p("flex h-10 Ya-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit 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),ref:o,...a,children:[e,(0,Ya.jsx)(F.Icon,{asChild:!0,children:(0,Ya.jsx)(Zo.ChevronDown,{className:"h-4 Ya-4 opacity-50"})})]}));sa.displayName=F.Trigger.displayName;var Fo=et.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(F.ScrollUpButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ya.jsx)(Zo.ChevronUp,{className:"h-4 Ya-4"})}));Fo.displayName=F.ScrollUpButton.displayName;var Uo=et.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(F.ScrollDownButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ya.jsx)(Zo.ChevronDown,{className:"h-4 Ya-4"})}));Uo.displayName=F.ScrollDownButton.displayName;var na=et.forwardRef(({children:e,className:t,position:a="popper",...o},s)=>(0,Ya.jsx)(F.Portal,{children:(0,Ya.jsxs)(F.Content,{className:p("relative Ya-50 max-h-96 min-Ya-[8rem] overflow-hidden rounded border bg-card 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",a==="popper"&&"data-[side=bottom]:translate-Ya-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Ya-1",t),position:a,ref:s,...o,children:[(0,Ya.jsx)(Fo,{}),(0,Ya.jsx)(F.Viewport,{className:p("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Ya-full min-Ya-[var(--radix-select-trigger-width)]"),children:e}),(0,Ya.jsx)(Uo,{})]})}));na.displayName=F.Content.displayName;var ar=et.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(F.Label,{className:p("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));ar.displayName=F.Label.displayName;var mt=et.forwardRef(({children:e,className:t,...a},o)=>(0,Ya.jsxs)(F.Item,{className:p("relative flex Ya-full cursor-default select-none items-center rounded 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),ref:o,...a,children:[(0,Ya.jsx)("span",{className:"absolute left-2 flex h-3.5 Ya-3.5 items-center justify-center",children:(0,Ya.jsx)(F.ItemIndicator,{children:(0,Ya.jsx)(Zo.Check,{className:"h-4 Ya-4"})})}),(0,Ya.jsx)(F.ItemText,{children:e})]}));mt.displayName=F.Item.displayName;var or=et.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(F.Separator,{className:p("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));or.displayName=F.Separator.displayName;function la({colleague:e,onEdit:t,onDelete:a,onViewDetails:o,showActions:s=!0,compact:i=!1,className:n}){let[r,c]=(0,Fa.useState)(!1),l=k=>{switch(k){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},D=k=>{switch(k){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=k=>{if(!k)return"Never";let S=Math.floor((new Date().getTime()-k.getTime())/(1e3*60));return S<1?"Just now":S<60?`${S}m ago`:S<1440?`${Math.floor(S/60)}h ago`:`${Math.floor(S/1440)}d ago`};return(0,Ya.jsxs)(K,{className:p("hover:shadow-md transition-shadow",i&&"p-2",n),children:[(0,Ya.jsx)(oe,{className:p("pb-3",i&&"pb-2"),children:(0,Ya.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ya.jsx)("div",{className:"relative",children:(0,Ya.jsxs)(Oe,{className:p("h-12 Ya-12",i&&"h-8 Ya-8"),children:[(0,Ya.jsx)(rt,{src:"/placeholder.svg",alt:e.name}),(0,Ya.jsx)(Ke,{children:e.name.split(" ").map(k=>k[0]).join("")})]})}),(0,Ya.jsxs)("div",{className:"flex-1 min-Ya-0",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ya.jsx)("h3",{className:p("font-semibold text-sm truncate",i&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ya.jsx)(Zo.Bot,{className:p("h-4 Ya-4 text-blue-500",i&&"h-3 Ya-3")}):(0,Ya.jsx)(Zo.User,{className:p("h-4 Ya-4 text-green-500",i&&"h-3 Ya-3")})]}),(0,Ya.jsx)("p",{className:p("text-sm text-muted-foreground truncate",i&&"text-xs"),children:e.type==="human"?e.role:e.description}),!i&&(0,Ya.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[e.type==="human"&&(0,Ya.jsx)(W,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&(0,Ya.jsxs)(W,{variant:"secondary",className:"text-xs",children:["v",e.version]}),(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:D(e.status)})]})]})]}),s&&(0,Ya.jsxs)(ta,{children:[(0,Ya.jsx)(aa,{asChild:!0,children:(0,Ya.jsx)(N,{variant:"ghost",size:"icon",className:p("h-8 Ya-8",i&&"h-6 Ya-6"),children:(0,Ya.jsx)(Zo.MoreHorizontal,{className:p("h-4 Ya-4",i&&"h-3 Ya-3")})})}),(0,Ya.jsxs)(Rt,{align:"end",children:[(0,Ya.jsxs)(nt,{onClick:()=>o?.(e),children:[(0,Ya.jsx)(Zo.Settings,{className:"h-4 Ya-4 mr-2"}),"View Details"]}),(0,Ya.jsxs)(nt,{onClick:()=>t?.(e),children:[(0,Ya.jsx)(Zo.Edit,{className:"h-4 Ya-4 mr-2"}),"Edit"]}),(0,Ya.jsxs)(nt,{onClick:()=>a?.(e.id),className:"text-destructive focus:text-destructive",children:[(0,Ya.jsx)(Zo.Trash2,{className:"h-4 Ya-4 mr-2"}),"Delete"]})]})]})]})}),!i&&(0,Ya.jsxs)(G,{className:"Fa-0",children:[(0,Ya.jsxs)("div",{className:"space-Ya-2 text-sm",children:[e.type==="human"&&(0,Ya.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ya.jsx)(Zo.Mail,{className:"h-3 Ya-3"}),(0,Ya.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="human"&&(0,Ya.jsxs)(Ya.Fragment,{children:[e.phone&&(0,Ya.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ya.jsx)(Zo.Phone,{className:"h-3 Ya-3"}),(0,Ya.jsx)("span",{children:e.phone})]}),e.location&&(0,Ya.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ya.jsx)(Zo.MapPin,{className:"h-3 Ya-3"}),(0,Ya.jsx)("span",{children:e.location})]})]}),e.type==="digital"&&(0,Ya.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ya.jsx)(Zo.Settings,{className:"h-3 Ya-3"}),(0,Ya.jsxs)("span",{children:["v",e.version]})]}),(0,Ya.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ya.jsx)(Zo.Clock,{className:"h-3 Ya-3"}),(0,Ya.jsxs)("span",{children:["Last active: ",g(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&(0,Ya.jsx)("div",{className:"mt-3",children:(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,r?e.skills.length:3).map(k=>(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:k},k)),e.skills.length>3&&(0,Ya.jsx)(N,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!r),children:r?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&(0,Ya.jsx)("div",{className:"mt-3",children:(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,r?e.capabilities.length:2).map(k=>(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:k},k)),e.capabilities.length>2&&(0,Ya.jsx)(N,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!r),children:r?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}var Oo=Z(require("react")),Ba=Z(require("@radix-ui/react-label"));var ir=(0,Xa.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),We=Oo.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)(Ba.Root,{ref:a,className:p(ir(),e),...t}));We.displayName=Ba.Root.displayName;var Wo=Z(require("react")),Bt=Wo.forwardRef(({className:e,...t},a)=>(0,Ya.jsx)("textarea",{className:p("flex min-h-[80px] Ya-full rounded border border-border 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",e),ref:a,...t}));Bt.displayName="Textarea";function La({selectedDocuments:e,onDocumentsChange:t,availableDocuments:a,label:o,placeholder:s="Search knowledge documents...",maxSelections:i,disabled:n=!1}){let[r,c]=(0,Fa.useState)(""),[l,D]=(0,Fa.useState)([]),[g,k]=(0,Fa.useState)(!1);(0,Fa.useEffect)(()=>{if(!r.trim()){D([]),k(!1);return}let b=a.filter(d=>{if(e.map(U=>U.id).includes(d.id))return!1;let V=r.toLowerCase();return d.title.toLowerCase().includes(V)||d.description?.toLowerCase().includes(V)||d.tags?.some(U=>U.toLowerCase().includes(V))||Object.values(d.metadata||{}).some(U=>String(U).toLowerCase().includes(V))});D(b),k(!0)},[r,e,a]);let h=b=>{i&&e.length>=i||(t([...e,b]),c(""),k(!1))},S=b=>{t(e.filter(d=>d.id!==b))},R=!i||e.length<i;return(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsx)(We,{children:o}),(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)(Zo.Search,{className:"absolute left-3 top-3 h-4 Ya-4 text-muted-foreground"}),(0,Ya.jsx)(he,{value:r,onChange:b=>c(b.target.value),placeholder:R?s:`Maximum ${i} documents selected`,className:"pl-9",disabled:n||!R,onFocus:()=>r&&k(!0)})]}),g&&l.length>0&&(0,Ya.jsx)(K,{className:"absolute top-full left-0 right-0 Ya-10 mt-1 max-h-60",children:(0,Ya.jsx)(ze,{className:"h-full",children:(0,Ya.jsx)(G,{className:"p-2",children:l.map(b=>(0,Ya.jsx)(N,{variant:"ghost",className:"Ya-full justify-start h-auto p-3 mb-1",onClick:()=>h(b),disabled:n,children:(0,Ya.jsxs)("div",{className:"flex items-start gap-3 Ya-full",children:[(0,Ya.jsx)(Zo.FileText,{className:"h-4 Ya-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ya.jsxs)("div",{className:"text-left flex-1 min-Ya-0",children:[(0,Ya.jsx)("div",{className:"font-medium text-sm truncate",children:b.title}),b.description&&(0,Ya.jsx)("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:b.description}),b.tags&&b.tags.length>0&&(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[b.tags.slice(0,3).map(d=>(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:d},d)),b.tags.length>3&&(0,Ya.jsxs)(W,{variant:"outline",className:"text-xs",children:["+",b.tags.length-3," more"]})]})]})]})},b.id))})})}),g&&r&&l.length===0&&(0,Ya.jsx)(K,{className:"absolute top-full left-0 right-0 Ya-10 mt-1",children:(0,Ya.jsxs)(G,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',r,'"']})})]}),e.length>0&&(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,i&&`/${i}`,")"]}),(0,Ya.jsx)("div",{className:"space-Ya-2",children:e.map(b=>(0,Ya.jsx)(K,{className:"p-3",children:(0,Ya.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ya.jsx)(Zo.FileText,{className:"h-4 Ya-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ya.jsxs)("div",{className:"flex-1 min-Ya-0",children:[(0,Ya.jsx)("div",{className:"font-medium text-sm",children:b.title}),b.description&&(0,Ya.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:b.description}),b.tags&&b.tags.length>0&&(0,Ya.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:b.tags.map(d=>(0,Ya.jsxs)(W,{variant:"outline",className:"text-xs",children:[(0,Ya.jsx)(Zo.Tag,{className:"h-3 Ya-3 mr-1"}),d]},d))})]}),(0,Ya.jsx)(N,{type:"button",variant:"ghost",size:"icon",className:"h-6 Ya-6 flex-shrink-0",onClick:()=>S(b.id),disabled:n,children:(0,Ya.jsx)(Zo.X,{className:"h-3 Ya-3"})})]})},b.id))})]}),g&&(0,Ya.jsx)("div",{className:"fixed inset-0 Ya-0",onClick:()=>k(!1)})]})}function ja({colleague:e,onSave:t,onCancel:a,isLoading:o=!1,title:s,submitLabel:i,cancelLabel:n="Cancel",readOnly:r=!1,availableKnowledgeDocuments:c=[]}){let[l,D]=(0,Fa.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...e}),[g,k]=(0,Fa.useState)(""),[h,S]=(0,Fa.useState)(""),[R,b]=(0,Fa.useState)(!r);(0,Fa.useEffect)(()=>{e&&D(e)},[e]);let d=x=>{x.preventDefault();let _=l.version?parseInt(l.version):0,Q=e?(_+1).toString():"1",re={id:l.id||Date.now().toString(),name:l.name,type:"digital",status:"active",joinedDate:l.joinedDate||new Date,lastActive:l.lastActive||new Date,description:l.description,jobDescription:l.jobDescription||"",workInstructions:l.workInstructions||"",capabilities:l.capabilities||[],knowledge:l.knowledge||[],coreKnowledge:l.coreKnowledge||[],version:Q,lastUpdated:l.lastUpdated||new Date,isActive:!0};t(re)},X=(x,_,Q)=>{if(!_.trim())return;let re=l[x]||[];D({...l,[x]:[...re,_.trim()]}),Q("")},V=(x,_)=>{let Q=l[x]||[];D({...l,[x]:Q.filter((re,H)=>H!==_)})},U=x=>{x.preventDefault(),b(!R)},me=(x,_,Q,re,H)=>{let Ae=l[x]||[];return(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsx)(We,{children:_}),R&&(0,Ya.jsxs)("div",{className:"flex gap-2",children:[(0,Ya.jsx)(he,{value:Q,onChange:m=>re(m.target.value),placeholder:H,onKeyPress:m=>{m.key==="Enter"&&(m.preventDefault(),X(x,Q,re))},disabled:o}),(0,Ya.jsx)(N,{type:"button",variant:"outline",size:"icon",onClick:()=>X(x,Q,re),disabled:o,children:(0,Ya.jsx)(Zo.Plus,{className:"h-4 Ya-4"})})]}),(0,Ya.jsx)("div",{className:"flex flex-wrap gap-2",children:Ae.map((m,J)=>(0,Ya.jsxs)(W,{className:"gap-1",children:[m,R&&(0,Ya.jsx)(N,{type:"button",variant:"ghost",size:"icon",className:"h-4 Ya-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>V(x,J),disabled:o,children:(0,Ya.jsx)(Zo.X,{className:"h-3 Ya-3"})})]},`${x}-${J}-${m}`))})]})},q=s||(R?e?"Edit Colleague":"Add New Colleague":"View Colleague"),ae=i||(e?"Update Colleague":"Add Colleague");return(0,Ya.jsxs)(K,{className:"m-8 Ya-full max-Ya-4xl mx-auto",children:[(0,Ya.jsx)(oe,{children:(0,Ya.jsxs)(se,{className:"flex items-center gap-2",children:[(0,Ya.jsx)(Zo.Bot,{className:"h-5 Ya-5"}),q]})}),(0,Ya.jsx)(G,{children:(0,Ya.jsxs)("form",{onSubmit:d,className:"space-Ya-6",children:[(0,Ya.jsxs)("div",{className:"space-Ya-4",children:[(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsx)(We,{htmlFor:"name",children:"Name *"}),(0,Ya.jsx)(he,{id:"name",value:l.name||"",onChange:x=>D({...l,name:x.target.value}),required:!0,disabled:o||!R})]}),(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsx)(We,{htmlFor:"description",children:"Description"}),(0,Ya.jsx)(Bt,{id:"description",value:l.description||"",onChange:x=>D({...l,description:x.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:o||!R})]})]}),(0,Ya.jsxs)("div",{className:"space-Ya-4",children:[(0,Ya.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsx)(We,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ya.jsx)(Bt,{id:"jobDescription",value:l.jobDescription||"",onChange:x=>D({...l,jobDescription:x.target.value}),rows:4,required:l.type==="digital",disabled:o||!R})]}),(0,Ya.jsxs)("div",{className:"space-Ya-2",children:[(0,Ya.jsx)(We,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ya.jsx)(Bt,{id:"workInstructions",value:l.workInstructions||"",onChange:x=>D({...l,workInstructions:x.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:o||!R})]}),me("capabilities","Capabilities",h,S,"Add capability"),(0,Ya.jsx)(La,{selectedDocuments:l.knowledge||[],onDocumentsChange:x=>D({...l,knowledge:x}),label:"Knowledge",placeholder:"Search for knowledge documents Ya add...",disabled:o||!R,availableDocuments:c}),(0,Ya.jsx)(La,{selectedDocuments:l.coreKnowledge||[],onDocumentsChange:x=>D({...l,coreKnowledge:x}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:o||!R,availableDocuments:c})]}),(0,Ya.jsxs)("div",{className:"flex justify-end gap-2 Fa-4 border-t",children:[(0,Ya.jsx)(N,{type:"button",variant:"outline",onClick:a,disabled:o,children:R?n:"Close"}),R?(0,Ya.jsx)(N,{type:"submit",disabled:o,children:o?"Saving...":ae}):(0,Ya.jsxs)(N,{type:"button",onClick:U,disabled:o,className:"gap-2",children:[(0,Ya.jsx)(Zo.Edit,{className:"h-4 Ya-4"}),"Edit"]})]})]})})]})}function $o({users:e,onUserSelect:t,onCancel:a,selectedUserId:o}){let[s,i]=(0,Fa.useState)(""),n=(0,Fa.useMemo)(()=>e.filter(c=>c.name.toLowerCase().includes(s.toLowerCase())||c.email.toLowerCase().includes(s.toLowerCase())||c.role.toLowerCase().includes(s.toLowerCase())||(c.skills||[]).some(D=>D.toLowerCase().includes(s.toLowerCase()))),[e,s]),r=c=>{t(c)};return(0,Ya.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ya-6",children:(0,Ya.jsx)(ma.AnimatePresence,{mode:"wait",children:(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:10},animate:{opacity:1,Ya:0},exit:{opacity:0,Ya:-10},transition:{duration:.2},children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ya.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Ya.jsx)($e.ChevronLeft,{className:"h-4 Ya-4"}),"Back"]}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ya.jsx)("p",{className:"text-muted-foreground",children:"Choose a user Ya add as a colleague"})]})]}),(0,Ya.jsx)(K,{className:"container",children:(0,Ya.jsx)(G,{className:"Fa-6",children:(0,Ya.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ya.jsx)("div",{className:"flex-1",children:(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)($e.Search,{className:"absolute left-3 top-3 h-4 Ya-4 text-muted-foreground"}),(0,Ya.jsx)(he,{placeholder:"Search users by name, email, role, or skills...",value:s,onChange:c=>i(c.target.value),className:"pl-9"})]})})})})}),(0,Ya.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:n.map(c=>(0,Ya.jsx)(ma.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ya.jsxs)(K,{className:`cursor-pointer transition-all hover:shadow-lg ${o===c.id?"ring-2 ring-primary":""}`,onClick:()=>r(c),children:[(0,Ya.jsx)(oe,{className:"pb-3",children:(0,Ya.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ya.jsxs)(Oe,{children:[(0,Ya.jsx)(rt,{src:c.avatar,alt:c.name}),(0,Ya.jsx)(Ke,{children:(0,Ya.jsx)($e.User,{className:"h-4 Ya-4"})})]}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)(se,{className:"text-lg",children:c.name}),(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:c.role})]})]}),o===c.id&&(0,Ya.jsx)($e.Check,{className:"h-5 Ya-5 text-primary"})]})}),(0,Ya.jsx)(G,{className:"Fa-0",children:(0,Ya.jsxs)("div",{className:"space-Ya-3",children:[(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ya.jsx)("p",{className:"text-sm font-medium",children:c.email})]}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"}),(0,Ya.jsx)(W,{variant:"secondary",children:c.department})]}),c.location&&(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Location"}),(0,Ya.jsx)("p",{className:"text-sm",children:c.location})]}),c.skills&&c.skills.length>0&&(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-1",children:[c.skills.slice(0,3).map(l=>(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:l},l)),c.skills.length>3&&(0,Ya.jsxs)(W,{variant:"outline",className:"text-xs",children:["+",c.skills.length-3]})]})]})]})})]})},c.id))}),n.length===0&&(0,Ya.jsx)(K,{className:"container mt-4",children:(0,Ya.jsx)(G,{className:"Fa-6",children:(0,Ya.jsxs)("div",{className:"text-center py-8",children:[(0,Ya.jsx)($e.User,{className:"h-12 Ya-12 text-muted-foreground mx-auto mb-4"}),(0,Ya.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ya.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function _o({digitalColleagues:e,onColleagueClone:t,onCancel:a,selectedColleagueId:o}){let[s,i]=(0,Fa.useState)(""),[n,r]=(0,Fa.useState)("all"),c=(0,Fa.useMemo)(()=>e.filter(g=>{let k=g.name.toLowerCase().includes(s.toLowerCase())||g.jobDescription.toLowerCase().includes(s.toLowerCase())||g.capabilities.some(S=>S.toLowerCase().includes(s.toLowerCase()))||g.workInstructions.toLowerCase().includes(s.toLowerCase()),h=n==="all"||g.status===n;return k&&h}),[e,s,n]),l=g=>{let k={...g,id:`${g.id}-clone-${Date.now()}`,name:`${g.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};t(k)},D=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,Ya.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ya-6",children:(0,Ya.jsx)(ma.AnimatePresence,{mode:"wait",children:(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:10},animate:{opacity:1,Ya:0},exit:{opacity:0,Ya:-10},transition:{duration:.2},children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ya.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Ya.jsx)(Zo.ChevronLeft,{className:"h-4 Ya-4"}),"Back"]}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ya.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague Ya clone"})]})]}),(0,Ya.jsx)(K,{children:(0,Ya.jsx)(G,{className:"Fa-6",children:(0,Ya.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ya.jsx)("div",{className:"flex-1",children:(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)(Zo.Search,{className:"absolute left-3 top-3 h-4 Ya-4 text-muted-foreground"}),(0,Ya.jsx)(he,{placeholder:"Search by name, job description, or capabilities...",value:s,onChange:g=>i(g.target.value),className:"pl-9"})]})}),(0,Ya.jsxs)("select",{value:n,onChange:g=>r(g.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ya.jsx)("option",{value:"all",children:"All Status"}),(0,Ya.jsx)("option",{value:"active",children:"Active"}),(0,Ya.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ya.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(g=>(0,Ya.jsx)(ma.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ya.jsxs)(K,{className:`cursor-pointer transition-all hover:shadow-lg ${o===g.id?"ring-2 ring-primary":""}`,onClick:()=>l(g),children:[(0,Ya.jsx)(oe,{className:"pb-3",children:(0,Ya.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ya.jsx)(Oe,{children:(0,Ya.jsx)(Ke,{className:"bg-blue-100",children:(0,Ya.jsx)(Zo.Bot,{className:"h-4 Ya-4 text-blue-600"})})}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsxs)(se,{className:"text-lg flex items-center gap-2",children:[g.name,(0,Ya.jsx)(W,{variant:g.status==="active"?"default":"secondary",className:"text-xs",children:g.status})]}),(0,Ya.jsxs)("p",{className:"text-sm text-muted-foreground",children:["v",g.version]})]})]}),(0,Ya.jsxs)(N,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:k=>{k.stopPropagation(),l(g)},children:[(0,Ya.jsx)(Zo.Copy,{className:"h-3 Ya-3"}),"Clone"]})]})}),(0,Ya.jsx)(G,{className:"Fa-0",children:(0,Ya.jsxs)("div",{className:"space-Ya-3",children:[(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ya.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-1",children:[g.capabilities.slice(0,3).map(k=>(0,Ya.jsx)(W,{variant:"outline",className:"text-xs",children:k},k)),g.capabilities.length>3&&(0,Ya.jsxs)(W,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})]})]}),(0,Ya.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ya.jsx)(Zo.Calendar,{className:"h-3 Ya-3"}),(0,Ya.jsxs)("span",{children:["Updated ",D(g.lastUpdated)]})]}),g.knowledge&&(0,Ya.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ya.jsx)(Zo.Users,{className:"h-3 Ya-3"}),(0,Ya.jsxs)("span",{children:[g.knowledge.length," docs"]})]})]}),g.workInstructions&&(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ya.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),c.length===0&&(0,Ya.jsx)(K,{children:(0,Ya.jsx)(G,{className:"Fa-6",children:(0,Ya.jsxs)("div",{className:"text-center py-8",children:[(0,Ya.jsx)(Zo.Bot,{className:"h-12 Ya-12 text-muted-foreground mx-auto mb-4"}),(0,Ya.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ya.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function qo({onSelectHuman:e,onSelectDigital:t,onCancel:a}){return(0,Ya.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ya-6",children:(0,Ya.jsx)(ma.AnimatePresence,{mode:"wait",children:(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:10},animate:{opacity:1,Ya:0},exit:{opacity:0,Ya:-10},transition:{duration:.2},children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ya.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Ya.jsx)(Zo.ChevronLeft,{className:"h-4 Ya-4"}),"Back"]}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ya.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague Ya add"})]})]}),(0,Ya.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ya-4xl mx-auto",children:[(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ya.jsxs)(K,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ya.jsxs)(oe,{className:"text-center pb-4",children:[(0,Ya.jsx)("div",{className:"mx-auto Ya-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ya.jsx)(Zo.User,{className:"h-8 Ya-8 text-blue-600"})}),(0,Ya.jsx)(se,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ya.jsxs)(G,{className:"text-center",children:[(0,Ya.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization Ya add as team members."}),(0,Ya.jsxs)("div",{className:"space-Ya-2 text-sm",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Users,{className:"h-4 Ya-4 text-blue-600"}),(0,Ya.jsx)("span",{children:"Browse existing users"})]}),(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.User,{className:"h-4 Ya-4 text-blue-600"}),(0,Ya.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ya.jsx)(N,{className:"mt-6 Ya-full",onClick:e,children:"Select User"})]})]})}),(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ya.jsxs)(K,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ya.jsxs)(oe,{className:"text-center pb-4",children:[(0,Ya.jsx)("div",{className:"mx-auto Ya-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ya.jsx)(Zo.Bot,{className:"h-8 Ya-8 text-purple-600"})}),(0,Ya.jsx)(se,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ya.jsxs)(G,{className:"text-center",children:[(0,Ya.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ya.jsxs)("div",{className:"space-Ya-2 text-sm",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Bot,{className:"h-4 Ya-4 text-purple-600"}),(0,Ya.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Users,{className:"h-4 Ya-4 text-purple-600"}),(0,Ya.jsx)("span",{children:"Create from templates"})]})]}),(0,Ya.jsx)(N,{className:"mt-6 Ya-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function Jo({onCloneExisting:e,onCreateNew:t,onCancel:a}){return(0,Ya.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ya-6",children:(0,Ya.jsx)(ma.AnimatePresence,{mode:"wait",children:(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:10},animate:{opacity:1,Ya:0},exit:{opacity:0,Ya:-10},transition:{duration:.2},children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ya.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Ya.jsx)(Zo.ChevronLeft,{className:"h-4 Ya-4"}),"Back"]}),(0,Ya.jsxs)("div",{children:[(0,Ya.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ya.jsx)("p",{className:"text-muted-foreground",children:"Choose how Ya create your digital colleague"})]})]}),(0,Ya.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ya-4xl mx-auto",children:[(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ya.jsxs)(K,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ya.jsxs)(oe,{className:"text-center pb-4",children:[(0,Ya.jsx)("div",{className:"mx-auto Ya-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ya.jsx)(Zo.Copy,{className:"h-8 Ya-8 text-blue-600"})}),(0,Ya.jsx)(se,{className:"text-xl",children:"Clone Existing"})]}),(0,Ya.jsxs)(G,{className:"text-center",children:[(0,Ya.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ya.jsxs)("div",{className:"space-Ya-2 text-sm",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Bot,{className:"h-4 Ya-4 text-blue-600"}),(0,Ya.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Copy,{className:"h-4 Ya-4 text-blue-600"}),(0,Ya.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ya.jsx)(N,{className:"mt-6 Ya-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ya.jsx)(ma.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ya.jsxs)(K,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ya.jsxs)(oe,{className:"text-center pb-4",children:[(0,Ya.jsx)("div",{className:"mx-auto Ya-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ya.jsx)(Zo.Sparkles,{className:"h-8 Ya-8 text-green-600"})}),(0,Ya.jsx)(se,{className:"text-xl",children:"Create New"})]}),(0,Ya.jsxs)(G,{className:"text-center",children:[(0,Ya.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ya.jsxs)("div",{className:"space-Ya-2 text-sm",children:[(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Plus,{className:"h-4 Ya-4 text-green-600"}),(0,Ya.jsx)("span",{children:"Custom job description"})]}),(0,Ya.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ya.jsx)(Zo.Sparkles,{className:"h-4 Ya-4 text-green-600"}),(0,Ya.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ya.jsx)(N,{className:"mt-6 Ya-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function za({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:a,onColleagueDelete:o,compactView:s=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:n,availableUsers:r=[],existingDigitalColleagues:c=[]}){let[l,D]=(0,Fa.useState)(e||[]),[g,k]=(0,Fa.useState)(""),[h,S]=(0,Fa.useState)("all"),[R,b]=(0,Fa.useState)("all"),[d,X]=(0,Fa.useState)("all"),[V,U]=(0,Fa.useState)(null),[me,q]=(0,Fa.useState)(null),[ae,x]=(0,Fa.useState)("main"),_=l.filter(v=>{let Ce=v.name.toLowerCase().includes(g.toLowerCase())||v.type==="human"&&(v.email.toLowerCase().includes(g.toLowerCase())||v.role.toLowerCase().includes(g.toLowerCase()))||v.type==="digital"&&v.jobDescription.toLowerCase().includes(g.toLowerCase()),ve=h==="all"||v.type==="human"&&v.department===h,ua=R==="all"||v.status===R;return Ce&&ve&&ua}),Q=_.filter(v=>v.type==="human"),re=_.filter(v=>v.type==="digital"),H=()=>{x("typeSelection")},Ae=v=>{v.type==="digital"&&(U(v),x("form"))},m=v=>{v.type==="digital"&&(q(v),x("view"))},J=v=>{let Ce={id:`human-${Date.now()}`,type:"human",name:v.name,email:v.email,role:v.role,department:v.department,phone:v.phone,location:v.location,timezone:v.timezone,skills:v.skills,bio:v.bio,status:"active",joinedDate:new Date,lastActive:new Date};D(ve=>[...ve,Ce]),t?.(Ce),x("main")},Y=v=>{D(Ce=>[...Ce,v]),t?.(v),x("main")},Ie=()=>{U(null),x("form")},xe=v=>{V?(D(Ce=>Ce.map(ve=>ve.id===v.id?v:ve)),a?.(v)):(D(Ce=>[...Ce,v]),t?.(v)),x("main"),U(null)},it=()=>{x("main"),U(null),q(null)},Et=()=>{x("main"),q(null)},je=()=>{me&&(U(me),q(null),x("form"))},pa=v=>{D(Ce=>Ce.filter(ve=>ve.id!==v)),o?.(v)},ti=()=>{k(""),S("all"),b("all")},Ua=()=>{let v=[];return c.forEach(ve=>{v.push(...ve.knowledge,...ve.coreKnowledge)}),l.forEach(ve=>{ve.type==="digital"&&v.push(...ve.knowledge,...ve.coreKnowledge)}),v.filter((ve,ua,ai)=>ua===ai.findIndex(oi=>oi.id===ve.id))};return ae==="typeSelection"?(0,Ya.jsx)(qo,{onSelectHuman:()=>x("userSelection"),onSelectDigital:()=>x("digitalOptions"),onCancel:()=>x("main")}):ae==="userSelection"?(0,Ya.jsx)($o,{users:r,onUserSelect:J,onCancel:()=>x("typeSelection")}):ae==="digitalOptions"?(0,Ya.jsx)(Jo,{onCloneExisting:()=>x("digitalClone"),onCreateNew:Ie,onCancel:()=>x("typeSelection")}):ae==="digitalClone"?(0,Ya.jsx)(_o,{digitalColleagues:c,onColleagueClone:Y,onCancel:()=>x("digitalOptions")}):ae==="form"?(0,Ya.jsx)(ja,{colleague:V||void 0,onSave:xe,onCancel:it,availableKnowledgeDocuments:Ua()}):ae==="view"?(0,Ya.jsx)(ja,{colleague:me||void 0,onSave:xe,onCancel:Et,readOnly:!0,availableKnowledgeDocuments:Ua()}):(0,Ya.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ya-8",children:(0,Ya.jsx)(ma.AnimatePresence,{mode:"wait",children:(0,Ya.jsx)(ma.motion.div,{initial:{opacity:0,Ya:10},animate:{opacity:1,Ya:0},exit:{opacity:0,Ya:-10},transition:{duration:.2},children:(0,Ya.jsxs)("div",{className:`space-Ya-6 ${n||""}`,children:[(0,Ya.jsx)(Be,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-Ya-r from-green-600 via-emerald-600 Ya-teal-600",primaryAction:{label:"Add colleague",onClick:H}}),(0,Ya.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ya.jsxs)(K,{children:[(0,Ya.jsxs)(oe,{className:"flex flex-row items-center justify-between space-Ya-0 pb-2",children:[(0,Ya.jsx)(se,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ya.jsx)(Zo.Users,{className:"h-4 Ya-4 text-muted-foreground"})]}),(0,Ya.jsxs)(G,{children:[(0,Ya.jsx)("div",{className:"text-2xl font-bold",children:l.length}),(0,Ya.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l.filter(v=>v.status==="active").length," active"]})]})]}),(0,Ya.jsxs)(K,{children:[(0,Ya.jsxs)(oe,{className:"flex flex-row items-center justify-between space-Ya-0 pb-2",children:[(0,Ya.jsx)(se,{className:"text-sm font-medium",children:"Human Members"}),(0,Ya.jsx)(Zo.User,{className:"h-4 Ya-4 text-muted-foreground"})]}),(0,Ya.jsxs)(G,{children:[(0,Ya.jsx)("div",{className:"text-2xl font-bold",children:l.filter(v=>v.type==="human").length}),(0,Ya.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l.filter(v=>v.type==="human"&&v.status==="active").length," active"]})]})]}),(0,Ya.jsxs)(K,{children:[(0,Ya.jsxs)(oe,{className:"flex flex-row items-center justify-between space-Ya-0 pb-2",children:[(0,Ya.jsx)(se,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ya.jsx)(Zo.Bot,{className:"h-4 Ya-4 text-muted-foreground"})]}),(0,Ya.jsxs)(G,{children:[(0,Ya.jsx)("div",{className:"text-2xl font-bold",children:l.filter(v=>v.type==="digital").length}),(0,Ya.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l.filter(v=>v.type==="digital"&&v.status==="active").length," active"]})]})]})]}),(0,Ya.jsx)(K,{children:(0,Ya.jsx)(G,{className:"Fa-6",children:(0,Ya.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ya.jsx)("div",{className:"flex-1",children:(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)(Zo.Search,{className:"absolute left-3 top-3 h-4 Ya-4 text-muted-foreground"}),(0,Ya.jsx)(he,{placeholder:"Search colleagues...",value:g,onChange:v=>k(v.target.value),className:"pl-9"})]})}),(0,Ya.jsxs)(Ia,{value:h,onValueChange:S,children:[(0,Ya.jsx)(sa,{className:"Ya-full md:Ya-[180px]",children:(0,Ya.jsx)(Ma,{placeholder:"Department"})}),(0,Ya.jsxs)(na,{children:[(0,Ya.jsx)(mt,{value:"all",children:"All Departments"}),i.map(v=>(0,Ya.jsx)(mt,{value:v,children:v},v))]})]}),(0,Ya.jsxs)(Ia,{value:R,onValueChange:b,children:[(0,Ya.jsx)(sa,{className:"Ya-full md:Ya-[140px]",children:(0,Ya.jsx)(Ma,{placeholder:"Status"})}),(0,Ya.jsxs)(na,{children:[(0,Ya.jsx)(mt,{value:"all",children:"All Status"}),(0,Ya.jsx)(mt,{value:"active",children:"Active"}),(0,Ya.jsx)(mt,{value:"inactive",children:"Inactive"})]})]}),(g||h!=="all"||R!=="all")&&(0,Ya.jsxs)(N,{variant:"outline",onClick:ti,className:"gap-2",children:[(0,Ya.jsx)(Zo.Filter,{className:"h-4 Ya-4"}),"Clear"]})]})})}),(0,Ya.jsxs)("div",{className:"space-Ya-4",children:[(0,Ya.jsx)(oa,{activeTab:d,onTabChange:X,tabOptions:[{value:"all",label:`All (${_.length})`},{value:"human",label:`Human (${Q.length})`},{value:"digital",label:`Digital (${re.length})`}],maxWidth:"400px",gridCols:3}),d==="all"&&(0,Ya.jsx)("div",{className:`grid gap-4 ${s?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(v=>(0,Ya.jsx)(la,{colleague:v,onEdit:Ae,onDelete:pa,onViewDetails:m,compact:s},v.id))}),d==="human"&&(0,Ya.jsx)("div",{className:`grid gap-4 ${s?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Q.map(v=>(0,Ya.jsx)(la,{colleague:v,onEdit:Ae,onDelete:pa,onViewDetails:m,compact:s},v.id))}),d==="digital"&&(0,Ya.jsx)("div",{className:`grid gap-4 ${s?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:re.map(v=>(0,Ya.jsx)(la,{colleague:v,onEdit:Ae,onDelete:pa,onViewDetails:m,compact:s},v.id))})]}),_.length===0&&(0,Ya.jsx)(K,{children:(0,Ya.jsx)(G,{className:"Fa-6",children:(0,Ya.jsxs)("div",{className:"text-center py-8",children:[(0,Ya.jsx)(Zo.Users,{className:"h-12 Ya-12 text-muted-foreground mx-auto mb-4"}),(0,Ya.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ya.jsx)("p",{className:"text-muted-foreground mb-4",children:g||h!=="all"||R!=="all"?"Try adjusting your filters Ya see more results.":"Get started by adding your first colleague."}),(0,Ya.jsxs)(N,{onClick:H,className:"gap-2",children:[(0,Ya.jsx)(Zo.Plus,{className:"h-4 Ya-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}function Xo({label:e,documents:t,children:a,level:o,onDocumentClick:s,selectedDocumentId:i,showDocumentCount:n=!0}){let[r,c]=(0,Fa.useState)(o===0),l=a&&Object.keys(a).length>0,D=t.length+(a?Object.values(a).reduce((h,S)=>h+S.documents.length,0):0),g=h=>{switch(h){case"markdown":case"mdx":return(0,Ya.jsx)(Zo.FileText,{className:"h-3.5 Ya-3.5 text-muted-foreground"});case"richtext":return(0,Ya.jsx)(Zo.File,{className:"h-3.5 Ya-3.5 text-muted-foreground"});default:return(0,Ya.jsx)(Zo.File,{className:"h-3.5 Ya-3.5 text-muted-foreground"})}},k=h=>{let S=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return S[h%S.length]};return(0,Ya.jsxs)("div",{className:"space-Ya-1",children:[(l||t.length>0)&&(0,Ya.jsxs)(ma.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${r?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>c(!r),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ya.jsx)("div",{className:`Ya-1 h-6 rounded-full ${k(o)}`}),(0,Ya.jsx)(ma.motion.div,{animate:{rotate:r?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ya.jsx)(Zo.ChevronRight,{className:"h-4 Ya-4 text-muted-foreground"})}),(0,Ya.jsxs)("div",{className:"flex-1 flex items-center justify-between min-Ya-0",children:[(0,Ya.jsx)("div",{className:"flex items-center gap-2 min-Ya-0",children:(0,Ya.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),n&&D>0&&(0,Ya.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ya.jsx)("span",{className:"inline-flex items-center justify-center Ya-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:D})})]})]}),(0,Ya.jsx)(ma.motion.div,{initial:!1,animate:{height:r?"auto":0,opacity:r?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ya.jsxs)("div",{className:"Fa-2 space-Ya-1",children:[t.map((h,S)=>(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:S*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${i===h.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>s?.(h),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ya.jsx)("div",{className:"flex-shrink-0",children:g(h.format)}),(0,Ya.jsxs)("div",{className:"flex-1 min-Ya-0",children:[(0,Ya.jsx)("p",{className:`text-sm truncate transition-colors ${i===h.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:h.title}),h.description&&(0,Ya.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:h.description})]}),h.tags&&h.tags.length>0&&(0,Ya.jsx)("div",{className:"flex-shrink-0",children:(0,Ya.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:h.tags[0]})})]},h.id)),a&&Object.entries(a).map(([h,S])=>(0,Ya.jsx)(Xo,{label:h,documents:S.documents,children:S.children,level:o+1,onDocumentClick:s,selectedDocumentId:i,showDocumentCount:n},h))]})})]})}function rr({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return(0,Ya.jsx)(Zo.FileText,{className:"h-6 Ya-6 text-primary"});case"richtext":return(0,Ya.jsx)(Zo.File,{className:"h-6 Ya-6 text-success"});default:return(0,Ya.jsx)(Zo.File,{className:"h-6 Ya-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:20},animate:{opacity:1,Ya:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ya.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,Ya.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Ya.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,Ya.jsxs)("div",{className:"flex-1 min-Ya-0",children:[(0,Ya.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ya.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,Ya.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ya.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>(0,Ya.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),(0,Ya.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ya.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ya.jsxs)("div",{className:"mb-6",children:[(0,Ya.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ya.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Ya.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-Ya-1 text-xs",children:Object.entries(e.metadata).map(([o,s])=>(0,Ya.jsxs)("div",{className:"flex gap-1",children:[(0,Ya.jsxs)("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([Ya-Z])/g," $1").trim(),":"]}),(0,Ya.jsx)("span",{className:"text-foreground truncate",children:String(s)})]},o))})})]}),(0,Ya.jsx)("div",{className:"space-Ya-4",children:e.content?(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Ya.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Ya.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-Ya-t from-card Ya-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Ya.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Ya.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ya.jsx)("div",{className:"Ya-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ya.jsx)(Zo.FileText,{className:"h-8 Ya-8 text-muted-foreground"})}),(0,Ya.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ya.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Yo({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:s,className:i}){let[n,r]=(0,Fa.useState)(""),[c,l]=(0,Fa.useState)(null),D=(0,Fa.useMemo)(()=>n?e.filter(h=>h.title.toLowerCase().includes(n.toLowerCase())||h.description?.toLowerCase().includes(n.toLowerCase())||h.tags?.some(S=>S.toLowerCase().includes(n.toLowerCase()))||Object.values(h.metadata||{}).some(S=>String(S).toLowerCase().includes(n.toLowerCase()))):e,[e,n]),g=(0,Fa.useMemo)(()=>{let h=(S,R)=>{if(R.length===0)return{};let[b,...d]=R;return S.reduce((V,U)=>{let me=U.metadata?.[b]||"Uncategorized",q=String(me);if(V[q]||(V[q]={documents:[],children:{}}),d.length===0)V[q].documents.push(U);else{let ae=h([U],d),x=Object.keys(ae)[0];x&&(V[q].children||(V[q].children={}),V[q].children[x]?V[q].children[x].documents.push(...ae[x].documents):V[q].children[x]=ae[x])}return V},{})};return h(D,t.groupBy)},[D,t.groupBy]),k=h=>{l(h),a?.(h)};return(0,Ya.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ya.jsxs)("div",{className:"Ya-1/3 border-r border-border bg-muted/20",children:[(0,Ya.jsx)("div",{className:"p-6 border-b border-border",children:(0,Ya.jsxs)("div",{className:"relative",children:[(0,Ya.jsx)("div",{className:"absolute inset-Ya-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ya.jsx)(Zo.Search,{className:"h-4 Ya-4 text-muted-foreground"})}),(0,Ya.jsx)(he,{placeholder:"Search knowledge base...",value:n,onChange:h=>r(h.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Ya.jsx)(ze,{className:"h-[calc(100%-100px)]",children:(0,Ya.jsxs)("div",{className:"p-4 space-Ya-3",children:[Object.entries(g).map(([h,S])=>(0,Ya.jsx)(Xo,{label:h,documents:S.documents,children:S.children,level:0,onDocumentClick:k,selectedDocumentId:s,showDocumentCount:t.showDocumentCount},h)),Object.keys(g).length===0&&(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ya.jsx)("div",{className:"Ya-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ya.jsx)(Zo.FileText,{className:"h-8 Ya-8 text-muted-foreground"})}),(0,Ya.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Ya.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ya.jsx)("div",{className:"flex-1 bg-background",children:c?(0,Ya.jsx)(rr,{document:c}):(0,Ya.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ya.jsxs)(ma.motion.div,{initial:{opacity:0,Ya:20},animate:{opacity:1,Ya:0},transition:{duration:.4},className:"max-Ya-sm",children:[(0,Ya.jsx)("div",{className:"Ya-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ya.jsx)(Zo.FileText,{className:"h-10 Ya-10 text-primary"})}),(0,Ya.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ya.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base Ya view its content and details"})]})})})]})}var sr=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:(0,Ya.jsx)(Zo.BookOpen,{className:"h-4 Ya-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:(0,Ya.jsx)(Zo.Server,{className:"h-4 Ya-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:(0,Ya.jsx)(Zo.Code,{className:"h-4 Ya-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:(0,Ya.jsx)(Zo.Users,{className:"h-4 Ya-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function Ea({documents:e=[],contexts:t=sr,onDocumentClick:a=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),selectedDocumentId:s}){let[i,n]=(0,Fa.useState)(t[0]);return(0,Ya.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ya.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ya.jsx)(Be,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-Ya-r from-teal-600 via-cyan-600 Ya-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Ya.jsxs)("div",{className:"mt-6",children:[(0,Ya.jsx)("div",{className:"border-b border-border",children:(0,Ya.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(r=>(0,Ya.jsxs)("button",{onClick:()=>n(r),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===r.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[r.icon,r.label]},r.id))})}),i.description&&(0,Ya.jsx)("div",{className:"mt-3 px-1",children:(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ya.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ya.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ya.jsx)(Yo,{documents:e,menuConfig:i.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:s})})})]})}function ei({title:e="Digital Colleagues",businessUnits:t}){let[a,o]=(0,Fa.useState)("home"),[s,i]=(0,Fa.useState)(t[0]),n=d=>{console.log("Opening app:",d.name)},r=d=>{console.log("Favoriting app:",d.name)},c=d=>{console.log("Opening file:",d.name)},l=d=>{console.log("Sharing file:",d.name)},D=d=>{console.log("Opening project:",d.name)},g=d=>{console.log("Sharing project:",d.name)},k=d=>{i(d),console.log("Business unit changed Ya:",d.name)},h=()=>{console.log("Copilot clicked - navigating Ya chat"),o("chat")},S=d=>{console.log("Notification removed:",d)},R=()=>{console.log("All notifications removed")},b=()=>{switch(a){case"home":return(0,Ya.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Ya-8",children:[(0,Ya.jsxs)("section",{className:"text-center py-12",children:[(0,Ya.jsxs)("h1",{className:"text-4xl font-bold mb-4",children:["Welcome Ya the ",s.name," team"]}),(0,Ya.jsx)("p",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),(0,Ya.jsxs)("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,Ya.jsxs)("div",{className:"bg-card p-6 rounded-lg border",children:[(0,Ya.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),(0,Ya.jsx)("p",{className:"text-3xl font-bold text-primary",children:"12"}),(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),(0,Ya.jsxs)("div",{className:"bg-card p-6 rounded-lg border",children:[(0,Ya.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),(0,Ya.jsx)("p",{className:"text-3xl font-bold text-primary",children:"8"}),(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),(0,Ya.jsxs)("div",{className:"bg-card p-6 rounded-lg border",children:[(0,Ya.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),(0,Ya.jsx)("p",{className:"text-3xl font-bold text-primary",children:"156"}),(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),(0,Ya.jsx)(Be,{title:"Chat with your team",gradient:"bg-gradient-Ya-r from-pink-600 via-red-600 Ya-orange-600",primaryAction:{label:"Ya",onClick:()=>o("chat")}})]});case"colleagues":return(0,Ya.jsx)(za,{});case"chat":return(0,Ya.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Ya-8",children:[(0,Ya.jsxs)("section",{className:"text-center py-12",children:[(0,Ya.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),(0,Ya.jsxs)("p",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",s.name," team members and collaborate in real-time."]})]}),(0,Ya.jsx)(Be,{title:"Launch Full Chat Interface",description:"Access the complete chat experience with AI assistance.",gradient:"bg-gradient-Ya-r from-blue-600 via-purple-600 Ya-pink-600",primaryAction:{label:"Open Chat",onClick:()=>console.log("Open full chat interface")}})]});case"apps":return(0,Ya.jsxs)("div",{className:"space-Ya-8",children:[(0,Ya.jsx)(Be,{title:"Creative Apps Collection",description:"Discover our full suite of professional design and creative applications.",gradient:"bg-gradient-Ya-r from-pink-600 via-red-600 Ya-orange-600",primaryAction:{label:"Install Desktop App",onClick:()=>console.log("Install desktop app clicked")}}),(0,Ya.jsxs)("section",{className:"space-Ya-4",children:[(0,Ya.jsx)("h2",{className:"text-2xl font-semibold",children:"New Releases"}),(0,Ya.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Aa.filter(d=>d.new).map(d=>(0,Ya.jsx)(Ta,{app:d,showProgress:!0,onOpen:n,onFavorite:r},d.name))})]}),(0,Ya.jsxs)("section",{className:"space-Ya-4",children:[(0,Ya.jsx)("h2",{className:"text-2xl font-semibold",children:"All Apps"}),(0,Ya.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Aa.map(d=>(0,Ya.jsx)(Ta,{app:d,onOpen:n,onFavorite:r},d.name))})]})]});case"knowledge":return(0,Ya.jsx)(Ea,{});case"files":return(0,Ya.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Ya-8",children:[(0,Ya.jsx)(Be,{title:"Your Creative Files",description:"Access, manage, and share all your design files in one place.",gradient:"bg-gradient-Ya-r from-teal-600 via-cyan-600 Ya-blue-600",primaryAction:{label:"Upload Files",onClick:()=>console.log("Upload files clicked")}}),(0,Ya.jsxs)("section",{className:"space-Ya-4",children:[(0,Ya.jsx)("div",{className:"flex items-center justify-between",children:(0,Ya.jsx)("h2",{className:"text-2xl font-semibold",children:"All Files"})}),(0,Ya.jsx)(Bo,{files:zo,onFileClick:c})]})]});case"projects":return(0,Ya.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Ya-8",children:[(0,Ya.jsx)(Be,{title:"Project Management",description:"Organize your creative work into projects and collaborate with your team.",gradient:"bg-gradient-Ya-r from-purple-600 via-violet-600 Ya-indigo-600",primaryAction:{label:"New Project",onClick:()=>console.log("New project clicked")}}),(0,Ya.jsxs)("section",{className:"space-Ya-4",children:[(0,Ya.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,Ya.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:fo.map(d=>(0,Ya.jsx)(jo,{project:d,onOpen:D,onShare:g},d.name))})]})]});case"learn":return(0,Ya.jsxs)("div",{className:"space-Ya-8",children:[(0,Ya.jsx)(Be,{title:"Learn & Grow",description:"Expand your creative skills with tutorials, courses, and resources.",gradient:"bg-gradient-Ya-r from-green-600 via-emerald-600 Ya-teal-600",primaryAction:{label:"Upgrade Ya Pro",onClick:()=>console.log("Upgrade Ya pro clicked")}}),(0,Ya.jsxs)("section",{className:"space-Ya-4",children:[(0,Ya.jsx)("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),(0,Ya.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:Eo.slice(0,3).map(d=>(0,Ya.jsxs)("div",{className:"rounded-3xl border p-6",children:[(0,Ya.jsx)("h3",{className:"font-semibold mb-2",children:d.title}),(0,Ya.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:d.description}),(0,Ya.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ya.jsx)("span",{children:d.duration}),(0,Ya.jsx)("span",{children:d.level})]})]},d.title))})]})]});default:return null}};return(0,Ya.jsx)(So,{sidebarItems:po,title:e,notifications:uo,businessUnits:t,currentBusinessUnit:s,onBusinessUnitChange:k,activeTab:a,onTabChange:o,showTabs:!0,onActionClick:h,actionIcon:(0,Ya.jsx)(Zo.Bot,{className:"mr-2 h-4 Ya-4"}),actionText:"Start Chat",onNotificationRemove:S,onRemoveAll:R,children:(0,Ya.jsx)(ma.AnimatePresence,{mode:"wait",children:(0,Ya.jsx)(ma.motion.div,{className:"flex-1 h-full",initial:{opacity:0,Ya:10},animate:{opacity:1,Ya:0},exit:{opacity:0,Ya:-10},transition:{duration:.2},children:b()},a)})})}
|
|
5
|
+
"use strict";"use client";var oi=Object.create;var Et=Object.defineProperty;var ii=Object.getOwnPropertyDescriptor;var ri=Object.getOwnPropertyNames;var si=Object.getPrototypeOf,ni=Object.prototype.hasOwnProperty;var li=(e,t)=>{for(var a in t)Et(e,a,{get:t[a],enumerable:!0})},Ua=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ri(t))!ni.call(e,i)&&i!==a&&Et(e,i,{get:()=>t[i],enumerable:!(o=ii(t,i))||o.enumerable});return e};var Z=(e,t,a)=>(a=e!=null?oi(si(e)):{},Ua(t||!e||!e.__esModule?Et(a,"default",{value:e,enumerable:!0}):a,e)),di=e=>Ua(Et({},"__esModule",{value:!0}),e);var rr={};li(rr,{default:()=>Zo});module.exports=di(rr);var Ea=require("react"),ca=require("framer-motion"),Qo=require("lucide-react");var qa=require("clsx");var fa="-",ci=e=>{let t=pi(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let s=n.split(fa);return s[0]===""&&s.length!==1&&s.shift(),Oa(s,t)||mi(n)},getConflictingClassGroupIds:(n,s)=>{let d=a[n]||[];return s&&o[n]?[...d,...o[n]]:d}}},Oa=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),i=o?Oa(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;let r=e.join(fa);return t.validators.find(({validator:n})=>n(r))?.classGroupId},Ha=/^\[(.+)\]$/,mi=e=>{if(Ha.test(e)){let t=Ha.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},pi=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return gi(Object.entries(e.classGroups),a).forEach(([r,n])=>{ga(n,o,r,t)}),o},ga=(e,t,a,o)=>{e.forEach(i=>{if(typeof i=="string"){let r=i===""?t:Ka(t,i);r.classGroupId=a;return}if(typeof i=="function"){if(ui(i)){ga(i(o),t,a,o);return}t.validators.push({validator:i,classGroupId:a});return}Object.entries(i).forEach(([r,n])=>{ga(n,Ka(t,r),a,o)})})},Ka=(e,t)=>{let a=e;return t.split(fa).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},ui=e=>e.isThemeGetter,gi=(e,t)=>t?e.map(([a,o])=>{let i=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,s])=>[t+n,s])):r);return[a,i]}):e,fi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,i=(r,n)=>{a.set(r,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let n=a.get(r);if(n!==void 0)return n;if((n=o.get(r))!==void 0)return i(r,n),n},set(r,n){a.has(r)?a.set(r,n):i(r,n)}}},Va="!",vi=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,i=t[0],r=t.length,n=s=>{let d=[],l=0,D=0,g;for(let b=0;b<s.length;b++){let c=s[b];if(l===0){if(c===i&&(o||s.slice(b,b+r)===t)){d.push(s.slice(D,b)),D=b+r;continue}if(c==="/"){g=b;continue}}c==="["?l++:c==="]"&&l--}let k=d.length===0?s:s.substring(D),h=k.startsWith(Va),S=h?k.substring(1):k,R=g&&g>D?g-D:void 0;return{modifiers:d,hasImportantModifier:h,baseClassName:S,maybePostfixModifierPosition:R}};return a?s=>a({className:s,parseClassName:n}):n},hi=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},bi=e=>({cache:fi(e.cacheSize),parseClassName:vi(e),...ci(e)}),xi=/\s+/,yi=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:i}=t,r=[],n=e.trim().split(xi),s="";for(let d=n.length-1;d>=0;d-=1){let l=n[d],{modifiers:D,hasImportantModifier:g,baseClassName:k,maybePostfixModifierPosition:h}=a(l),S=!!h,R=o(S?k.substring(0,h):k);if(!R){if(!S){s=l+(s.length>0?" "+s:s);continue}if(R=o(k),!R){s=l+(s.length>0?" "+s:s);continue}S=!1}let b=hi(D).join(":"),c=g?b+Va:b,X=c+R;if(r.includes(X))continue;r.push(X);let V=i(R,S);for(let U=0;U<V.length;++U){let me=V[U];r.push(c+me)}s=l+(s.length>0?" "+s:s)}return s};function wi(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Wa(t))&&(o&&(o+=" "),o+=a);return o}var Wa=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Wa(e[o]))&&(a&&(a+=" "),a+=t);return a};function Ni(e,...t){let a,o,i,r=n;function n(d){let l=t.reduce((D,g)=>g(D),e());return a=bi(l),o=a.cache.get,i=a.cache.set,r=s,s(d)}function s(d){let l=o(d);if(l)return l;let D=yi(d,a);return i(d,D),D}return function(){return r(wi.apply(null,arguments))}}var ee=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ga=/^\[(?:([a-Xa-]+):)?(.+)\]$/i,Ci=/^\d+\/\d+$/,Di=new Set(["px","full","screen"]),ki=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Ea|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Xa|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Si=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ri=/^(inset_)?-?((\d+)?\.?(\d+)[a-Xa]+|0)_-?((\d+)?\.?(\d+)[a-Xa]+|0)/,Ti=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ue=e=>ut(e)||Di.has(e)||Ci.test(e),qe=e=>gt(e,"length",Ei),ut=e=>!!e&&!Number.isNaN(Number(e)),ua=e=>gt(e,"number",ut),wt=e=>!!e&&Number.isInteger(Number(e)),Ai=e=>e.endsWith("%")&&ut(e.slice(0,-1)),B=e=>Ga.test(e),Je=e=>ki.test(e),Ii=new Set(["length","size","percentage"]),Mi=e=>gt(e,Ii,$a),Bi=e=>gt(e,"position",$a),Li=new Set(["image","url"]),ji=e=>gt(e,Li,Ui),zi=e=>gt(e,"",Fi),Nt=()=>!0,gt=(e,t,a)=>{let o=Ga.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Ei=e=>Pi.test(e)&&!Si.test(e),$a=()=>!1,Fi=e=>Ri.test(e),Ui=e=>Ti.test(e);var Hi=()=>{let e=ee("colors"),t=ee("spacing"),a=ee("blur"),o=ee("brightness"),i=ee("borderColor"),r=ee("borderRadius"),n=ee("borderSpacing"),s=ee("borderWidth"),d=ee("contrast"),l=ee("grayscale"),D=ee("hueRotate"),g=ee("invert"),k=ee("gap"),h=ee("gradientColorStops"),S=ee("gradientColorStopPositions"),R=ee("inset"),b=ee("margin"),c=ee("opacity"),X=ee("padding"),V=ee("saturate"),U=ee("scale"),me=ee("sepia"),q=ee("skew"),ae=ee("space"),x=ee("translate"),_=()=>["auto","contain","none"],Q=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto",B,t],H=()=>[B,t],Ie=()=>["",Ue,qe],m=()=>["auto",ut,B],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],ot=()=>["","0",B],zt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],je=()=>[ut,B];return{cacheSize:500,separator:":",theme:{colors:[Nt],spacing:[Ue,qe],blur:["none","",Je,B],brightness:je(),borderColor:[e],borderRadius:["none","","full",Je,B],borderSpacing:H(),borderWidth:Ie(),contrast:je(),grayscale:ot(),hueRotate:je(),invert:ot(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[Ai,qe],inset:re(),margin:re(),opacity:je(),padding:H(),saturate:je(),scale:je(),sepia:ot(),skew:je(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[Je]}],"break-after":[{"break-after":zt()}],"break-before":[{"break-before":zt()}],"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"],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:[...J(),B]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-Xa":[{"overflow-Xa":Q()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-Xa":[{"overscroll-Xa":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-Xa":[{"inset-Xa":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],Xa:[{Xa:["auto",wt,B]}],basis:[{basis:re()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:ot()}],shrink:[{shrink:ot()}],order:[{order:["first","last","none",wt,B]}],"grid-cols":[{"grid-cols":[Nt]}],"col-start-end":[{col:["auto",{span:["full",wt,B]},B]}],"col-start":[{"col-start":m()}],"col-end":[{"col-end":m()}],"grid-rows":[{"grid-rows":[Nt]}],"row-start-end":[{row:["auto",{span:[wt,B]},B]}],"row-start":[{"row-start":m()}],"row-end":[{"row-end":m()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-Xa":[{"gap-Xa":[k]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[X]}],px:[{px:[X]}],py:[{py:[X]}],ps:[{ps:[X]}],pe:[{pe:[X]}],Ea:[{Ea:[X]}],pr:[{pr:[X]}],pb:[{pb:[X]}],pl:[{pl:[X]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],Ea:[{Ea:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-Xa":[{"space-Xa":[ae]}],"space-Xa-reverse":["space-Xa-reverse"],Xa:[{Xa:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-Xa":[{"min-Xa":[B,t,"min","max","fit"]}],"max-Xa":[{"max-Xa":[B,t,"none","full","min","max","fit","prose",{screen:[Je]},Je]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Je,qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ua]}],"font-family":[{font:[Nt]}],"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:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",ut,ua]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ue,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[c]}],"text-decoration":["underline","overline","line-through","Qo-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ue,qe]}],"underline-offset":[{"underline-offset":["auto",Ue,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[c]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Bi]}],"bg-repeat":[{bg:["Qo-repeat",{repeat:["","x","Xa","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ji]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-Xa":[{border:[s]}],"border-Xa-x":[{"border-x":[s]}],"border-Xa-Xa":[{"border-Xa":[s]}],"border-Xa-s":[{"border-s":[s]}],"border-Xa-e":[{"border-e":[s]}],"border-Xa-t":[{"border-t":[s]}],"border-Xa-r":[{"border-r":[s]}],"border-Xa-b":[{"border-b":[s]}],"border-Xa-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[c]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-Xa":[{"divide-Xa":[s]}],"divide-Xa-reverse":["divide-Xa-reverse"],"divide-opacity":[{"divide-opacity":[c]}],"divide-style":[{divide:Y()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-Xa":[{"border-Xa":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Ue,B]}],"outline-Xa":[{outline:[Ue,qe]}],"outline-color":[{outline:[e]}],"ring-Xa":[{ring:Ie()}],"ring-Xa-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[c]}],"ring-offset-Xa":[{"ring-offset":[Ue,qe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Je,zi]}],"shadow-color":[{shadow:[Nt]}],opacity:[{opacity:[c]}],"mix-blend":[{"mix-blend":[...Me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Je,B]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[g]}],saturate:[{saturate:[V]}],sepia:[{sepia:[me]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[c]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-Xa":[{"border-spacing-Xa":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:je()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:je()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[U]}],"scale-x":[{"scale-x":[U]}],"scale-Xa":[{"scale-Xa":[U]}],rotate:[{rotate:[wt,B]}],"translate-x":[{"translate-x":[x]}],"translate-Xa":[{"translate-Xa":[x]}],"skew-x":[{"skew-x":[q]}],"skew-Xa":[{"skew-Xa":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","Qo-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Xa-resize","Xa-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Xa","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-Ea":[{"scroll-Ea":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-Ea":[{"scroll-Ea":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Xa","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Xa":[{"touch-pan":["Xa","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-Xa":[{stroke:[Ue,qe,ua]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Xa"],overscroll:["overscroll-x","overscroll-Xa"],inset:["inset-x","inset-Xa","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Xa":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Xa"],p:["px","py","ps","pe","Ea","pr","pb","pl"],px:["pr","pl"],py:["Ea","pb"],m:["mx","my","ms","me","Ea","mr","mb","ml"],mx:["mr","ml"],my:["Ea","mb"],size:["Xa","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-Xa"],"border-Xa":["border-Xa-s","border-Xa-e","border-Xa-t","border-Xa-r","border-Xa-b","border-Xa-l"],"border-Xa-x":["border-Xa-r","border-Xa-l"],"border-Xa-Xa":["border-Xa-t","border-Xa-b"],"border-color":["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-Xa":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Ea","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Ea","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-Ea","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Ea","scroll-pb"],touch:["touch-x","touch-Xa","touch-pz"],"touch-x":["touch"],"touch-Xa":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var _a=Ni(Hi);function p(...e){return _a((0,qa.clsx)(e))}var $t=Z(require("react")),Na=Z(require("next/link"));var Ja=require("class-variance-authority");var Xa=require("react/jsx-runtime"),Ki=(0,Ja.cva)("inline-flex items-center rounded-md 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 shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function W({className:e,variant:t,...a}){return(0,Xa.jsx)("div",{className:p(Ki({variant:t}),e),...a})}var Ya=require("@radix-ui/react-slot"),Za=Z(require("react")),Oi=(0,Ja.cva)("inline-flex items-center justify-center whitespace-nowrap rounded 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",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 Xa-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),N=Za.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...i},r)=>(0,Xa.jsx)(e?Ya.Slot:"button",{className:p(Oi({className:t,size:a,variant:o})),ref:r,...i}));N.displayName="Button";var to=Z(require("react"));var he=to.forwardRef(({className:e,type:t,...a},o)=>(0,Xa.jsx)("input",{type:t,className:p("flex h-9 Xa-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));he.displayName="Input";var va=Z(require("react")),Se=Z(require("@radix-ui/react-scroll-area"));var ze=va.forwardRef(({className:e,children:t,...a},o)=>(0,Xa.jsxs)(Se.Root,{ref:o,className:p("relative overflow-hidden",e),...a,children:[(0,Xa.jsx)(Se.Viewport,{className:"h-full Xa-full rounded-[inherit]",children:t}),(0,Xa.jsx)(oo,{}),(0,Xa.jsx)(Se.Corner,{})]}));ze.displayName=Se.Root.displayName;var oo=va.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Xa.jsx)(Se.ScrollAreaScrollbar,{ref:o,orientation:t,className:p("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Xa-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Xa.jsx)(Se.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));oo.displayName=Se.ScrollAreaScrollbar.displayName;var Ct=Z(require("react")),pe=Z(require("@radix-ui/react-dialog"));var ro=pe.Root;var Vi=pe.Portal;var so=Ct.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(pe.Overlay,{ref:a,className:p("fixed inset-0 Xa-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));so.displayName=pe.Overlay.displayName;var ha=Ct.forwardRef(({className:e,children:t,...a},o)=>(0,Xa.jsxs)(Vi,{children:[(0,Xa.jsx)(so,{}),(0,Xa.jsxs)(pe.Content,{ref:o,className:p("fixed left-[50%] top-[50%] Xa-50 grid Xa-full max-Xa-lg translate-x-[-50%] translate-Xa-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Xa.jsxs)(pe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Xa.jsx)(Qo.X,{className:"h-4 Xa-4"}),(0,Xa.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ha.displayName=pe.Content.displayName;var ba=({className:e,...t})=>(0,Xa.jsx)("div",{className:p("flex flex-col space-Xa-1.5 text-center sm:text-left",e),...t});ba.displayName="DialogHeader";var Wi=({className:e,...t})=>(0,Xa.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wi.displayName="DialogFooter";var xa=Ct.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(pe.Title,{ref:a,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));xa.displayName=pe.Title.displayName;var Gi=Ct.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(pe.Description,{ref:a,className:p("text-sm text-muted-foreground",e),...t}));Gi.displayName=pe.Description.displayName;var Dt=Z(require("@radix-ui/react-checkbox")),lo=Z(require("react")),ya=lo.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(Dt.Root,{className:p("peer h-4 Xa-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Xa.jsx)(Dt.Indicator,{className:p("flex items-center justify-center text-current"),children:(0,Xa.jsx)(Qo.Check,{className:"h-4 Xa-4"})})}));ya.displayName=Dt.Root.displayName;var Ee=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date}),mo=[{id:"home",title:"Home",icon:(0,Xa.jsx)(Qo.Home,{}),isActive:!0},{id:"teams",title:"Teams",icon:(0,Xa.jsx)(Qo.Users,{}),maxItems:2,items:[{id:"design",title:"Design",url:"#"},{id:"marketing",title:"Marketing",url:"#"},{id:"finance",title:"Finance",url:"#"},{id:"engineering",title:"Engineering",url:"#"},{id:"sales",title:"Sales",url:"#"}]},{id:"projects",title:"Projects",icon:(0,Xa.jsx)(Qo.Layers,{}),badge:"4",maxItems:2,items:[{id:"active-projects",title:"Active Projects",url:"#",badge:"4"},{id:"archived",title:"Archived",url:"#"},{id:"templates",title:"Templates",url:"#"},{id:"drafts",title:"Drafts",url:"#"},{id:"shared",title:"Shared with Me",url:"#",badge:"2"}]},{id:"copilot",title:"Copilot",icon:(0,Xa.jsx)(Qo.Bot,{}),url:"/copilot"},{id:"knowledge",title:"Knowledge",icon:(0,Xa.jsx)(Qo.FileText,{}),url:"/knowledge"}],po=[{id:"1",title:"New comment on your post",description:"Alex Morgan commented on your 'Minimalist Logo Design' post.",time:"Just now",read:!1,type:"info",actionLabel:"View comment",onAction:()=>console.log("View comment clicked")},{id:"2",title:"Project deadline approaching",description:"The 'Website Redesign' project is due in 2 days.",time:"5 minutes ago",read:!1,type:"warning",actionLabel:"View project",onAction:()=>console.log("View project clicked")},{id:"3",title:"File shared with you",description:"Emma Thompson shared 'Brand Guidelines.pdf' with you.",time:"1 hour ago",read:!1,type:"info",actionLabel:"Open file",onAction:()=>console.log("Open file clicked")},{id:"4",title:"Update successful",description:"PixelMaster has been updated to version 2.4.0.",time:"3 hours ago",read:!0,type:"success",actionLabel:"See what's new",onAction:()=>console.log("See what's new clicked")},{id:"5",title:"Storage limit reached",description:"You've used 95% of your storage. Consider upgrading your plan.",time:"Yesterday",read:!0,type:"error",actionLabel:"Upgrade plan",onAction:()=>console.log("Upgrade plan clicked")},{id:"6",title:"Weekly summary",description:"Check out your activity summary for the past week.",time:"2 days ago",read:!0,type:"info",actionLabel:"View summary",onAction:()=>console.log("View summary clicked")},{id:"7",title:"New tutorial available",description:"Xa new tutorial on 'Advanced Animation Techniques' is now available.",time:"3 days ago",read:!0,type:"info",actionLabel:"Start learning",onAction:()=>console.log("Start learning clicked")}],uo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Xa.jsx)(Qo.Palette,{className:"h-4 Xa-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Xa.jsx)(Qo.Code,{className:"h-4 Xa-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Xa.jsx)(Qo.TrendingUp,{className:"h-4 Xa-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Xa.jsx)(Qo.DollarSign,{className:"h-4 Xa-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Xa.jsx)(Qo.Users,{className:"h-4 Xa-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Xa.jsx)(Qo.Wrench,{className:"h-4 Xa-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Xa.jsx)(Qo.Scale,{className:"h-4 Xa-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Xa.jsx)(Qo.Package,{className:"h-4 Xa-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Xa.jsx)(Qo.Zap,{className:"h-4 Xa-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Xa.jsx)(Qo.Building2,{className:"h-4 Xa-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Kt=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],go=[{name:"Website Redesign",description:"Complete overhaul of company website",progress:75,dueDate:"June 15, 2025",members:4,files:23},{name:"Mobile App Launch",description:"Design and assets for new mobile application",progress:60,dueDate:"July 30, 2025",members:6,files:42},{name:"Brand Identity",description:"New brand guidelines and assets",progress:90,dueDate:"May 25, 2025",members:3,files:18},{name:"Marketing Campaign",description:"Summer promotion materials",progress:40,dueDate:"August 10, 2025",members:5,files:31}];var wa=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Ut=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Vt=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],$i=[...Vt,{id:"8",title:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",title:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",title:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",title:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",title:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],_i=[...Kt,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],Ht={projects:[{id:"1",name:"Empty Project",description:"Xa project with Qo tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},co={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:Vt.filter(e=>e.epicId==="1")};var Pr={empty:{initialProjects:Ht.projects,initialEpics:Ht.epics,initialSprints:Ht.sprints,initialTasks:Ht.tasks},default:{initialProjects:Kt,initialEpics:wa,initialSprints:Ut,initialTasks:Vt},highDensity:{initialProjects:Kt,initialEpics:wa,initialSprints:Ut,initialTasks:$i},singleEpic:{initialProjects:Kt,initialEpics:co.epics,initialSprints:Ut,initialTasks:co.tasks},multipleProjects:{initialProjects:_i,initialEpics:wa,initialSprints:Ut,initialTasks:Vt}},Ot=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(Ee),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Ee),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(Ee),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Ee),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(Ee),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Ee),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(Ee),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Ee),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Ee),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Ee),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Sr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Ot.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:Ot.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:Ot.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var Rr=Ot.filter(e=>e.type==="digital");function Gt(e,t){let[a,o]=(0,Ea.useState)(()=>{if(typeof window>"Xa")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),i=r=>{try{o(r),typeof window<"Xa"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,Ea.useEffect)(()=>{i(a)},[]),[a,i]}function Ca({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:i=uo[0],onBusinessUnitChange:r,onSearch:n,className:s,logo:d="/headerlogo.png",appName:l="Nuvia",tagline:D="Collaboration Platform"}){let[g,k]=$t.useState({}),[h,S]=Gt("sidebar-favorites",{}),[R,b]=$t.useState(null),[c,X]=$t.useState(""),V=m=>{k(J=>({...J,[m]:!J[m]}))},U=m=>{r?.(m)},me=()=>{c.trim()&&n?.(c.trim())},q=m=>{m.key==="Enter"&&(m.preventDefault(),me())},ae=(m,J)=>{let Y=h[m]||[],Me=Y.includes(J)?Y.filter(xe=>xe!==J):Y.concat(J);S({...h,[m]:Me})},x=m=>{if(!m.items||!m.maxItems||m.items.length<=m.maxItems)return m.items||[];let J=h[m.id]||[],Y=m.items.filter(xe=>J.includes(xe.id)),Me=m.items.filter(xe=>!J.includes(xe.id));return[...Y,...Me].slice(0,m.maxItems)},_=m=>m.maxItems&&m.items&&m.items.length>m.maxItems,Q=e,re=m=>{let J=_(m),Y=x(m),Me=(0,Xa.jsxs)(Xa.Fragment,{children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[m.icon,(0,Xa.jsx)("span",{children:m.title})]}),m.badge&&(0,Xa.jsx)(W,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:m.badge}),m.items&&(0,Xa.jsx)(Qo.ChevronDown,{className:p("ml-2 h-4 Xa-4 transition-transform",g[m.title]?"rotate-180":"")})]}),xe=p("flex Xa-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",m.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return m.url?(0,Xa.jsx)(Na.default,{href:m.url,className:xe,onClick:a?o:void 0,children:Me}):(0,Xa.jsx)("button",{className:xe,onClick:()=>m.items&&V(m.title),children:Me})},H=()=>{let m=e.find(Y=>Y.id===R);if(!m||!m.items||!m.maxItems)return null;let J=h[m.id]||[];return(0,Xa.jsx)(ro,{open:!!R,onOpenChange:Y=>!Y&&b(null),children:(0,Xa.jsxs)(ha,{className:"sm:max-Xa-md",children:[(0,Xa.jsxs)(ba,{children:[(0,Xa.jsxs)(xa,{children:["Manage ",m.title," Favorites"]}),(0,Xa.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up to ",m.maxItems," items to show in ",m.title.toLowerCase(),"."]})]}),(0,Xa.jsx)(ze,{className:"max-h-96 pr-4",children:(0,Xa.jsx)("div",{className:"space-Xa-4",children:m.items.map(Y=>(0,Xa.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Xa.jsx)(ya,{id:Y.id,checked:J.includes(Y.id),onCheckedChange:()=>ae(m.id,Y.id),disabled:!J.includes(Y.id)&&J.length>=(m.maxItems||0)}),(0,Xa.jsxs)("label",{htmlFor:Y.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[Y.title,Y.badge&&(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:Y.badge})]})]},Y.id))})})]})})},Ie=(0,Xa.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Xa.jsx)("div",{className:"flex h-14 Xa-14 items-center justify-center",children:(0,Xa.jsx)("img",{src:d,alt:"Header Logo",className:"h-14 Xa-14 object-contain"})}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("h2",{className:"font-semibold",children:l}),(0,Xa.jsx)("p",{className:"text-xs text-muted-foreground",children:D})]})]}),a&&(0,Xa.jsx)(N,{variant:"ghost",size:"icon",onClick:o,children:(0,Xa.jsx)(Qo.X,{className:"h-5 Xa-5"})})]}),(0,Xa.jsx)("div",{className:"px-3 py-2",children:(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)(Qo.Search,{className:"absolute left-3 top-3 h-4 Xa-4 text-muted-foreground"}),(0,Xa.jsx)(he,{type:"search",placeholder:"Search...",className:"Xa-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:c,onChange:m=>X(m.target.value),onKeyPress:q})]})}),(0,Xa.jsx)(ze,{className:"flex-1 px-3 py-2",children:(0,Xa.jsx)("div",{className:"space-Xa-1",children:Q.map(m=>(0,Xa.jsxs)("div",{className:"mb-1",children:[re(m),m.items&&g[m.title]&&(0,Xa.jsxs)("div",{className:"Ea-1 ml-6 space-Xa-1 border-l pl-3",children:[x(m).map(J=>(0,Xa.jsxs)(Na.default,{href:J.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[J.title,J.badge&&(0,Xa.jsx)(W,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:J.badge})]},J.id)),_(m)&&m.items&&m.items.length>x(m).length&&(0,Xa.jsxs)("button",{onClick:()=>b(m.id),className:"Xa-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",m.items.length-x(m).length," more available"]})]})]},m.id))})}),(0,Xa.jsx)("div",{className:"p-3",children:(0,Xa.jsx)("div",{className:"space-Xa-1",children:(0,Xa.jsxs)("button",{className:"flex Xa-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Xa.jsx)(Qo.Settings,{className:"h-5 Xa-5"}),(0,Xa.jsx)("span",{children:"Settings"})]})})}),(0,Xa.jsx)(H,{})]});return a?(0,Xa.jsx)("div",{className:p("fixed inset-Xa-0 left-0 Xa-50 Xa-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Ie}):(0,Xa.jsx)("div",{className:p("fixed inset-Xa-0 left-0 Xa-30 Xa-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Ie})}var _t=Z(require("react")),He=Z(require("@radix-ui/react-avatar"));var Ke=_t.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(He.Root,{ref:a,className:p("relative flex h-10 Xa-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ke.displayName=He.Root.displayName;var it=_t.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(He.Image,{ref:a,className:p("aspect-square h-full Xa-full",e),...t}));it.displayName=He.Image.displayName;var Oe=_t.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(He.Fallback,{ref:a,className:p("flex h-full Xa-full items-center justify-center rounded-full bg-muted",e),...t}));Oe.displayName=He.Fallback.displayName;var fo=Z(require("react")),Be=Z(require("@radix-ui/react-tooltip"));var Jt=Be.Provider,Xt=Be.Root,Yt=Be.Trigger,kt=fo.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Xa.jsx)(Be.Portal,{children:(0,Xa.jsx)(Be.Content,{ref:o,sideOffset:t,className:p("Xa-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...a})}));kt.displayName=Be.Content.displayName;var vo=require("next-themes");function ho(){let{setTheme:e,theme:t}=(0,vo.useTheme)();return(0,Xa.jsx)(Jt,{children:(0,Xa.jsxs)(Xt,{children:[(0,Xa.jsx)(Yt,{asChild:!0,children:(0,Xa.jsxs)(N,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Xa.jsx)(Qo.Sun,{className:"h-5 Xa-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Xa.jsx)(Qo.Moon,{className:"absolute h-5 Xa-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Xa.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Xa.jsx)(kt,{children:"Toggle theme"})]})})}function bo({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:i,className:r}){let n=e.filter(l=>!l.read),s=n.length,d=l=>{switch(l){case"info":return(0,Xa.jsx)(Qo.Info,{className:"h-5 Xa-5 text-blue-500"});case"success":return(0,Xa.jsx)(Qo.Check,{className:"h-5 Xa-5 text-green-500"});case"warning":return(0,Xa.jsx)(Qo.AlertTriangle,{className:"h-5 Xa-5 text-amber-500"});case"error":return(0,Xa.jsx)(Qo.AlertTriangle,{className:"h-5 Xa-5 text-red-500"})}};return(0,Xa.jsx)(ca.AnimatePresence,{children:t&&(0,Xa.jsxs)(Xa.Fragment,{children:[(0,Xa.jsx)(ca.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 Xa-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,Xa.jsx)(ca.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:p("fixed inset-Xa-0 right-0 Xa-50 Xa-full max-Xa-sm border-l bg-background shadow-lg md:Xa-96",r),children:(0,Xa.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Xa.jsx)(Qo.Bell,{className:"h-5 Xa-5"}),(0,Xa.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,Xa.jsxs)(W,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,Xa.jsxs)(N,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,Xa.jsx)(Qo.X,{className:"h-5 Xa-5"}),(0,Xa.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,Xa.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,Xa.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,Xa.jsx)(N,{variant:"ghost",size:"sm",onClick:i,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,Xa.jsx)(ze,{className:"flex-1",children:(0,Xa.jsx)("div",{className:"divide-Xa",children:n.map(l=>(0,Xa.jsxs)("div",{className:p("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,Xa.jsx)("div",{className:"flex h-10 Xa-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:d(l.type)}),(0,Xa.jsxs)("div",{className:"flex-1 space-Xa-1",children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xa.jsx)("p",{className:"font-medium",children:l.title}),(0,Xa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Xa.jsx)("p",{className:"text-xs text-muted-foreground",children:l.time}),(0,Xa.jsx)(N,{variant:"ghost",size:"sm",className:"h-6 Xa-6 p-0",onClick:()=>o?.(l.id),title:"Dismiss",children:(0,Xa.jsx)(Qo.Check,{className:"h-3 Xa-3"})})]})]}),(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:l.description}),l.actionLabel&&(0,Xa.jsxs)(N,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:l.onAction,children:[l.actionLabel,(0,Xa.jsx)(Qo.ChevronRight,{className:"ml-1 h-3 Xa-3"})]})]})]},l.id))})}):(0,Xa.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,Xa.jsx)("div",{className:"flex h-16 Xa-16 items-center justify-center rounded-full bg-muted",children:(0,Xa.jsx)(Qo.Bell,{className:"h-8 Xa-8 text-muted-foreground"})}),(0,Xa.jsx)("h3",{className:"Ea-4 text-lg font-medium",children:"Qo notifications"}),(0,Xa.jsx)("p",{className:"Ea-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var rt=Z(require("@radix-ui/react-tabs"));function xo({className:e,...t}){return(0,Xa.jsx)(rt.Root,{"data-slot":"tabs",className:p("flex flex-col gap-2",e),...t})}function yo({className:e,...t}){return(0,Xa.jsx)(rt.List,{"data-slot":"tabs-list",className:p("bg-muted text-muted-foreground inline-flex h-9 Xa-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function wo({className:e,...t}){return(0,Xa.jsx)(rt.Trigger,{"data-slot":"tabs-trigger",className:p("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Ve=Z(require("react")),E=Z(require("@radix-ui/react-dropdown-menu")),ft=require("@radix-ui/react-icons");var ea=E.Root,ta=E.Trigger;var qi=Ve.forwardRef(({className:e,inset:t,children:a,...o},i)=>(0,Xa.jsxs)(E.SubTrigger,{ref:i,className:p("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",t&&"pl-8",e),...o,children:[a,(0,Xa.jsx)(ft.ChevronRightIcon,{className:"ml-auto"})]}));qi.displayName=E.SubTrigger.displayName;var Ji=Ve.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(E.SubContent,{ref:a,className:p("Xa-50 min-Xa-[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",e),...t}));Ji.displayName=E.SubContent.displayName;var St=Ve.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Xa.jsx)(E.Portal,{children:(0,Xa.jsx)(E.Content,{ref:o,sideOffset:t,className:p("Xa-50 min-Xa-[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",e),...a})}));St.displayName=E.Content.displayName;var st=Ve.forwardRef(({className:e,inset:t,...a},o)=>(0,Xa.jsx)(E.Item,{ref:o,className:p("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]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));st.displayName=E.Item.displayName;var Xi=Ve.forwardRef(({className:e,children:t,checked:a,...o},i)=>(0,Xa.jsxs)(E.CheckboxItem,{ref:i,className:p("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",e),checked:a,...o,children:[(0,Xa.jsx)("span",{className:"absolute left-2 flex h-3.5 Xa-3.5 items-center justify-center",children:(0,Xa.jsx)(E.ItemIndicator,{children:(0,Xa.jsx)(ft.CheckIcon,{className:"h-4 Xa-4"})})}),t]}));Xi.displayName=E.CheckboxItem.displayName;var Yi=Ve.forwardRef(({className:e,children:t,...a},o)=>(0,Xa.jsxs)(E.RadioItem,{ref:o,className:p("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",e),...a,children:[(0,Xa.jsx)("span",{className:"absolute left-2 flex h-3.5 Xa-3.5 items-center justify-center",children:(0,Xa.jsx)(E.ItemIndicator,{children:(0,Xa.jsx)(ft.DotFilledIcon,{className:"h-4 Xa-4 fill-current"})})}),t]}));Yi.displayName=E.RadioItem.displayName;var Qi=Ve.forwardRef(({className:e,inset:t,...a},o)=>(0,Xa.jsx)(E.Label,{ref:o,className:p("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Qi.displayName=E.Label.displayName;var Zi=Ve.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(E.Separator,{ref:a,className:p("-mx-1 my-1 h-px bg-muted",e),...t}));Zi.displayName=E.Separator.displayName;var er=({className:e,...t})=>(0,Xa.jsx)("span",{className:p("ml-auto text-xs tracking-widest opacity-60",e),...t});er.displayName="DropdownMenuShortcut";function aa({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:i="700px",gridCols:r=6}){let n=a.find(s=>s.value===e);return(0,Xa.jsxs)(ca.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,Xa:-20},animate:{opacity:1,Xa:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Xa.jsx)("div",{className:"hidden md:block",children:(0,Xa.jsx)(xo,{value:e,onValueChange:t,children:(0,Xa.jsx)(yo,{className:"grid Xa-full rounded-2xl p-0 h-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(r,a.length)}, minmax(0, 1fr))`},children:a.map(s=>(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Xa.jsx)(wo,{value:s.value,className:"Xa-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,Xa.jsx)("div",{className:"md:hidden",children:(0,Xa.jsxs)(ea,{children:[(0,Xa.jsx)(ta,{asChild:!0,children:(0,Xa.jsxs)(N,{variant:"outline",className:"rounded-2xl min-Xa-[140px] justify-between",children:[n?.label||"Select",(0,Xa.jsx)(Qo.ChevronDown,{className:"h-4 Xa-4 ml-2"})]})}),(0,Xa.jsx)(St,{align:"center",className:"Xa-[180px]",children:a.map(s=>(0,Xa.jsx)(st,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function Co({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:i=!0,className:r,activeTab:n="assistant",onTabChange:s,showTabs:d=!0,tabOptions:l=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:D,actionIcon:g=(0,Xa.jsx)(Qo.Bot,{className:"mr-2 h-4 Xa-4"}),actionText:k="Action",onNotificationRemove:h,onRemoveAll:S,logo:R="/headerlogo.png",appName:b="Nuvia",tagline:c="Collaboration Platform"}){let[X,V]=(0,Ea.useState)(!1),[U,me]=(0,Ea.useState)(t),q=U.filter(_=>!_.read).length,ae=_=>{me(Q=>Q.filter(re=>re.id!==_)),h?.(_)},x=()=>{me(_=>_.filter(Q=>Q.read)),S?.()};return(0,Xa.jsxs)(Xa.Fragment,{children:[(0,Xa.jsxs)("header",{className:`sticky top-0 Xa-10 flex h-16 items-center gap-3 px-4 backdrop-blur ${r||""}`,children:[(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,Xa.jsx)(Qo.Menu,{className:"h-5 Xa-5"})}),(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,Xa.jsx)(Qo.PanelLeft,{className:"h-5 Xa-5"})}),!i&&(0,Xa.jsxs)(ca.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Xa.jsx)("div",{className:"flex h-10 Xa-10 items-center justify-center",children:(0,Xa.jsx)("img",{src:R,alt:"Logo",className:"h-10 Xa-10 object-contain"})}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("h2",{className:"font-semibold text-sm",children:b}),(0,Xa.jsx)("p",{className:"text-xs text-muted-foreground",children:c})]})]}),(0,Xa.jsxs)("div",{className:"flex flex-1 items-center",children:[d&&(0,Xa.jsx)(aa,{activeTab:n,onTabChange:s,tabOptions:l}),(0,Xa.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Xa.jsx)(ca.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Xa.jsxs)(N,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:D,children:[g,k]})})}),(0,Xa.jsx)(ho,{}),(0,Xa.jsx)(Jt,{children:(0,Xa.jsxs)(Xt,{children:[(0,Xa.jsx)(Yt,{asChild:!0,children:(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Xa.jsxs)(N,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>V(!0),children:[(0,Xa.jsx)(ca.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,Xa.jsx)(Qo.Bell,{className:"h-5 Xa-5"})}),q>0&&(0,Xa.jsx)(ca.motion.span,{className:"absolute -right-1 -top-1 flex h-5 Xa-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:q})]})})}),(0,Xa.jsx)(kt,{children:"Notifications"})]})}),(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Xa.jsxs)(Ke,{className:"h-9 Xa-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Xa.jsx)(it,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Xa.jsx)(Oe,{})]})})]})]})]}),(0,Xa.jsx)(bo,{notifications:U,open:X,onClose:()=>V(!1),onNotificationRemove:ae,onRemoveAll:x})]})}var Do=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,Xa.jsx)(Qo.User,{className:"h-4 Xa-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Po({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:i=Do[0],onBusinessUnitChange:r,onSearch:n,businessUnits:s=Do,activeTab:d,onTabChange:l,showTabs:D=!1,onActionClick:g,actionIcon:k,actionText:h="Action",onNotificationRemove:S,onRemoveAll:R,logo:b="/headerlogo.png",appName:c="Nuvia",tagline:X="Collaboration Platform",sidebarInitiallyClosed:V=!1}){let[U,me]=(0,Ea.useState)(!V),[q,ae]=(0,Ea.useState)(!1),[x,_]=(0,Ea.useState)(i),Q=re=>{_(re),r?.(re)};return(0,Xa.jsxs)("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background Xa-[]",children:[q&&(0,Xa.jsx)("div",{className:"fixed inset-0 Xa-40 bg-black/50 md:hidden",onClick:()=>ae(!1)}),(0,Xa.jsx)("div",{className:"md:hidden",children:(0,Xa.jsx)(Ca,{items:e,isOpen:q,isMobile:!0,onClose:()=>ae(!1),currentBusinessUnit:x,onBusinessUnitChange:Q,onSearch:n,logo:b,appName:c,tagline:X})}),(0,Xa.jsx)("div",{className:"hidden md:block",children:(0,Xa.jsx)(Ca,{items:e,isOpen:U,isMobile:!1,currentBusinessUnit:x,onBusinessUnitChange:Q,onSearch:n,logo:b,appName:c,tagline:X})}),(0,Xa.jsxs)("div",{className:p("min-h-screen fixed Xa-full transition-all duration-300 ease-in-out",U?"md:pl-64":"md:pl-0"),children:[(0,Xa.jsx)(Co,{title:a,notifications:o,onToggleSidebar:()=>me(!U),onToggleMobileMenu:()=>ae(!0),sidebarOpen:U,activeTab:d,onTabChange:l,showTabs:D,onActionClick:g,actionIcon:k,actionText:h,onNotificationRemove:S,onRemoveAll:R,logo:b,appName:c,tagline:X}),(0,Xa.jsx)("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-auto",children:t})]})]})}var ia=require("react-icons/fa");function Te({title:e,description:t,badge:a,primaryAction:o,secondaryAction:i,gradient:r,children:n,className:s}){let[d,l]=Gt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!i&&!t),D=!i&&!t||d;return(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:20},animate:{opacity:1,Xa:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${r} p-8 text-white ${s||""}`,children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,Xa.jsx)(W,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,Xa.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[D&&o&&(0,Xa.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(i||t)&&(0,Xa.jsx)("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>l(!d),style:{lineHeight:0},children:d?(0,Xa.jsx)(ia.FaChevronDown,{size:22}):(0,Xa.jsx)(ia.FaChevronUp,{size:22})})]})]}),!D&&(0,Xa.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Xa.jsxs)("div",{className:"space-Xa-4",children:[(0,Xa.jsx)("p",{className:"max-Xa-[600px] text-white/80",children:t}),(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Xa.jsx)(N,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),i&&(0,Xa.jsx)(N,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),n&&(0,Xa.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var nt=Z(require("react"));var O=nt.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));O.displayName="Card";var oe=nt.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:p("flex flex-col space-Xa-1.5 p-6",e),...t}));oe.displayName="CardHeader";var se=nt.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:p("font-semibold leading-none tracking-tight",e),...t}));se.displayName="CardTitle";var Rt=nt.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:p("text-sm text-muted-foreground",e),...t}));Rt.displayName="CardDescription";var G=nt.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:p("p-6 Ea-0",e),...t}));G.displayName="CardContent";var Tt=nt.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("div",{ref:a,className:p("flex items-center p-6 Ea-0",e),...t}));Tt.displayName="CardFooter";var Ro=Z(require("react")),At=Z(require("@radix-ui/react-progress"));var It=Ro.forwardRef(({className:e,value:t,...a},o)=>(0,Xa.jsx)(At.Root,{ref:o,className:p("relative h-4 Xa-full overflow-hidden rounded-full bg-secondary",e),...a,children:(0,Xa.jsx)(At.Indicator,{className:"h-full Xa-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));It.displayName=At.Root.displayName;function Ra({app:e,onOpen:t,onFavorite:a,showProgress:o=!1,className:i}){return(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.02,Xa:-5},whileTap:{scale:.98},className:i,children:(0,Xa.jsxs)(O,{className:"overflow-hidden rounded-3xl border-2 hover:border-primary/50 transition-all duration-300",children:[(0,Xa.jsx)(oe,{className:"pb-2",children:(0,Xa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xa.jsx)("div",{className:"flex h-12 Xa-12 items-center justify-center rounded-2xl bg-muted",children:e.icon}),e.new?(0,Xa.jsx)(W,{className:"rounded-xl bg-amber-500",children:"New"}):(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Xa-8 rounded-2xl",onClick:()=>a?.(e),children:(0,Xa.jsx)(Qo.Star,{className:"h-4 Xa-4"})})]})}),(0,Xa.jsxs)(G,{className:"pb-2",children:[(0,Xa.jsx)(se,{className:"text-lg",children:e.name}),(0,Xa.jsx)(Rt,{children:e.description}),o&&e.progress<100&&(0,Xa.jsxs)("div",{className:"Ea-2",children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Xa.jsx)("span",{children:"Installation"}),(0,Xa.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Xa.jsx)(It,{value:e.progress,className:"h-2 Ea-1 rounded-xl"})]})]}),(0,Xa.jsx)(Tt,{children:(0,Xa.jsx)(N,{variant:"secondary",className:"Xa-full rounded-2xl",onClick:()=>t?.(e),children:e.progress<100?"Continue Install":"Open"})})]})})}function Mo({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:i=!0,className:r}){return(0,Xa.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${r||""}`,children:[i&&(0,Xa.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,Xa.jsx)("div",{className:"col-span-6",children:"Name"}),(0,Xa.jsx)("div",{className:"col-span-2",children:"Size"}),(0,Xa.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,Xa.jsx)("div",{className:"divide-Xa",children:e.map(n=>(0,Xa.jsxs)(ca.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[(0,Xa.jsxs)("div",{className:"col-span-6 flex items-center gap-3 Xa-full md:Xa-auto",children:[(0,Xa.jsx)("div",{className:"flex h-10 Xa-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),(0,Xa.jsx)("div",{children:(0,Xa.jsx)("p",{className:"font-medium",children:n.name})})]}),(0,Xa.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),(0,Xa.jsxs)("div",{className:"col-span-2 flex items-center justify-between Xa-full md:Xa-auto",children:[(0,Xa.jsx)("span",{className:"text-sm md:text-base",children:n.modified}),(0,Xa.jsxs)("div",{className:"flex gap-1",children:[(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Xa-8 rounded-xl",onClick:s=>{s.stopPropagation(),a?.(n)},children:(0,Xa.jsx)(Qo.Edit,{className:"h-4 Xa-4"})}),(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Xa-8 rounded-xl text-red-500 hover:text-red-600",onClick:s=>{s.stopPropagation(),o?.(n)},children:(0,Xa.jsx)(Qo.Trash2,{className:"h-4 Xa-4"})}),(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:"h-8 Xa-8 rounded-xl",children:(0,Xa.jsx)(Qo.MoreHorizontal,{className:"h-4 Xa-4"})})]})]})]},n.name))})]})}function Lo({project:e,onOpen:t,onShare:a,className:o}){return(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.02,Xa:-5},whileTap:{scale:.98},className:o,children:(0,Xa.jsxs)(O,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Xa.jsxs)(oe,{children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xa.jsx)(se,{children:e.name}),(0,Xa.jsxs)(W,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Xa.jsx)(Rt,{children:e.description})]}),(0,Xa.jsxs)(G,{className:"space-Xa-4",children:[(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Xa.jsx)("span",{children:"Progress"}),(0,Xa.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Xa.jsx)(It,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Xa.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Xa.jsxs)("div",{className:"flex items-center",children:[(0,Xa.jsx)(Qo.Users,{className:"mr-1 h-4 Xa-4"}),e.members," members"]}),(0,Xa.jsxs)("div",{className:"flex items-center",children:[(0,Xa.jsx)(Qo.FileText,{className:"mr-1 h-4 Xa-4"}),e.files," files"]})]})]}),(0,Xa.jsxs)(Tt,{className:"flex gap-2",children:[(0,Xa.jsx)(N,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,Xa.jsx)(N,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>a?.(e),children:(0,Xa.jsx)(Qo.Share2,{className:"h-4 Xa-4"})})]})]})})}var Ta=[{name:"PixelMaster",icon:(0,Xa.jsx)($.ImageIcon,{className:"text-violet-500"}),description:"Advanced image editing and composition",category:"Creative",recent:!0,new:!1,progress:100},{name:"VectorPro",icon:(0,Xa.jsx)($.Brush,{className:"text-orange-500"}),description:"Professional vector graphics creation",category:"Creative",recent:!0,new:!1,progress:100},{name:"VideoStudio",icon:(0,Xa.jsx)($.Video,{className:"text-pink-500"}),description:"Cinematic video editing and production",category:"Video",recent:!0,new:!1,progress:100},{name:"MotionFX",icon:(0,Xa.jsx)($.Sparkles,{className:"text-blue-500"}),description:"Stunning visual effects and animations",category:"Video",recent:!1,new:!1,progress:100},{name:"PageCraft",icon:(0,Xa.jsx)($.Layers,{className:"text-red-500"}),description:"Professional page design and layout",category:"Creative",recent:!1,new:!1,progress:100},{name:"UXFlow",icon:(0,Xa.jsx)($.LayoutGrid,{className:"text-fuchsia-500"}),description:"Intuitive user experience design",category:"Design",recent:!1,new:!0,progress:85},{name:"PhotoLab",icon:(0,Xa.jsx)($.Camera,{className:"text-teal-500"}),description:"Advanced photo editing and organization",category:"Photography",recent:!1,new:!1,progress:100},{name:"DocMaster",icon:(0,Xa.jsx)($.FileText,{className:"text-red-600"}),description:"Document editing and management",category:"Document",recent:!1,new:!1,progress:100},{name:"WebCanvas",icon:(0,Xa.jsx)($.Code,{className:"text-emerald-500"}),description:"Web design and development",category:"Web",recent:!1,new:!0,progress:70},{name:"3DStudio",icon:(0,Xa.jsx)($.CuboidIcon,{className:"text-indigo-500"}),description:"3D modeling and rendering",category:"3D",recent:!1,new:!0,progress:60},{name:"FontForge",icon:(0,Xa.jsx)($.Type,{className:"text-amber-500"}),description:"Typography and font creation",category:"Typography",recent:!1,new:!1,progress:100},{name:"ColorPalette",icon:(0,Xa.jsx)($.Palette,{className:"text-purple-500"}),description:"Color scheme creation and management",category:"Design",recent:!1,new:!1,progress:100}],jo=[{name:"Brand Redesign.pxm",app:"PixelMaster",modified:"2 hours ago",icon:(0,Xa.jsx)($.ImageIcon,{className:"text-violet-500"}),shared:!0,size:"24.5 MB",collaborators:3},{name:"Company Logo.vec",app:"VectorPro",modified:"Yesterday",icon:(0,Xa.jsx)($.Brush,{className:"text-orange-500"}),shared:!0,size:"8.2 MB",collaborators:2},{name:"Product Launch Video.vid",app:"VideoStudio",modified:"3 days ago",icon:(0,Xa.jsx)($.Video,{className:"text-pink-500"}),shared:!1,size:"1.2 GB",collaborators:0},{name:"UI Animation.mfx",app:"MotionFX",modified:"Last week",icon:(0,Xa.jsx)($.Sparkles,{className:"text-blue-500"}),shared:!0,size:"345 MB",collaborators:4},{name:"Magazine Layout.pgc",app:"PageCraft",modified:"2 weeks ago",icon:(0,Xa.jsx)($.Layers,{className:"text-red-500"}),shared:!1,size:"42.8 MB",collaborators:0},{name:"Mobile App Design.uxf",app:"UXFlow",modified:"3 weeks ago",icon:(0,Xa.jsx)($.LayoutGrid,{className:"text-fuchsia-500"}),shared:!0,size:"18.3 MB",collaborators:5},{name:"Product Photography.phl",app:"PhotoLab",modified:"Last month",icon:(0,Xa.jsx)($.Camera,{className:"text-teal-500"}),shared:!1,size:"156 MB",collaborators:0}];var zo=[{title:"Mastering Digital Illustration",description:"Learn advanced techniques for creating stunning digital art",duration:"1h 45m",level:"Advanced",instructor:"Sarah Chen",category:"Illustration",views:"24K"},{title:"UI/UX Design Fundamentals",description:"Essential principles for creating intuitive user interfaces",duration:"2h 20m",level:"Intermediate",instructor:"Michael Rodriguez",category:"Design",views:"56K"},{title:"Video Editing Masterclass",description:"Professional techniques for cinematic video editing",duration:"3h 10m",level:"Advanced",instructor:"James Wilson",category:"Video",views:"32K"},{title:"Typography Essentials",description:"Create beautiful and effective typography for any project",duration:"1h 30m",level:"Beginner",instructor:"Emma Thompson",category:"Typography",views:"18K"},{title:"Color Theory for Designers",description:"Understanding color relationships and psychology",duration:"2h 05m",level:"Intermediate",instructor:"David Kim",category:"Design",views:"41K"}];var F=Z(require("@radix-ui/react-select")),et=Z(require("react")),Aa=F.Root;var Ia=F.Value,ra=et.forwardRef(({children:e,className:t,...a},o)=>(0,Xa.jsxs)(F.Trigger,{className:p("flex h-10 Xa-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit 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),ref:o,...a,children:[e,(0,Xa.jsx)(F.Icon,{asChild:!0,children:(0,Xa.jsx)(Qo.ChevronDown,{className:"h-4 Xa-4 opacity-50"})})]}));ra.displayName=F.Trigger.displayName;var Eo=et.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(F.ScrollUpButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Xa.jsx)(Qo.ChevronUp,{className:"h-4 Xa-4"})}));Eo.displayName=F.ScrollUpButton.displayName;var Fo=et.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(F.ScrollDownButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Xa.jsx)(Qo.ChevronDown,{className:"h-4 Xa-4"})}));Fo.displayName=F.ScrollDownButton.displayName;var sa=et.forwardRef(({children:e,className:t,position:a="popper",...o},i)=>(0,Xa.jsx)(F.Portal,{children:(0,Xa.jsxs)(F.Content,{className:p("relative Xa-50 max-h-96 min-Xa-[8rem] overflow-hidden rounded border bg-card 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",a==="popper"&&"data-[side=bottom]:translate-Xa-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Xa-1",t),position:a,ref:i,...o,children:[(0,Xa.jsx)(Eo,{}),(0,Xa.jsx)(F.Viewport,{className:p("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Xa-full min-Xa-[var(--radix-select-trigger-width)]"),children:e}),(0,Xa.jsx)(Fo,{})]})}));sa.displayName=F.Content.displayName;var tr=et.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(F.Label,{className:p("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));tr.displayName=F.Label.displayName;var ct=et.forwardRef(({children:e,className:t,...a},o)=>(0,Xa.jsxs)(F.Item,{className:p("relative flex Xa-full cursor-default select-none items-center rounded 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),ref:o,...a,children:[(0,Xa.jsx)("span",{className:"absolute left-2 flex h-3.5 Xa-3.5 items-center justify-center",children:(0,Xa.jsx)(F.ItemIndicator,{children:(0,Xa.jsx)(Qo.Check,{className:"h-4 Xa-4"})})}),(0,Xa.jsx)(F.ItemText,{children:e})]}));ct.displayName=F.Item.displayName;var ar=et.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(F.Separator,{className:p("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));ar.displayName=F.Separator.displayName;function na({colleague:e,onEdit:t,onDelete:a,onViewDetails:o,showActions:i=!0,compact:r=!1,className:n}){let[s,d]=(0,Ea.useState)(!1),l=k=>{switch(k){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},D=k=>{switch(k){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=k=>{if(!k)return"Never";let S=Math.floor((new Date().getTime()-k.getTime())/(1e3*60));return S<1?"Just now":S<60?`${S}m ago`:S<1440?`${Math.floor(S/60)}h ago`:`${Math.floor(S/1440)}d ago`};return(0,Xa.jsxs)(O,{className:p("hover:shadow-md transition-shadow",r&&"p-2",n),children:[(0,Xa.jsx)(oe,{className:p("pb-3",r&&"pb-2"),children:(0,Xa.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Xa.jsx)("div",{className:"relative",children:(0,Xa.jsxs)(Ke,{className:p("h-12 Xa-12",r&&"h-8 Xa-8"),children:[(0,Xa.jsx)(it,{src:"/placeholder.svg",alt:e.name}),(0,Xa.jsx)(Oe,{children:e.name.split(" ").map(k=>k[0]).join("")})]})}),(0,Xa.jsxs)("div",{className:"flex-1 min-Xa-0",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Xa.jsx)("h3",{className:p("font-semibold text-sm truncate",r&&"text-xs"),children:e.name}),e.type==="digital"?(0,Xa.jsx)(Qo.Bot,{className:p("h-4 Xa-4 text-blue-500",r&&"h-3 Xa-3")}):(0,Xa.jsx)(Qo.User,{className:p("h-4 Xa-4 text-green-500",r&&"h-3 Xa-3")})]}),(0,Xa.jsx)("p",{className:p("text-sm text-muted-foreground truncate",r&&"text-xs"),children:e.type==="human"?e.role:e.description}),!r&&(0,Xa.jsxs)("div",{className:"flex items-center gap-2 Ea-1",children:[e.type==="human"&&(0,Xa.jsx)(W,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&(0,Xa.jsxs)(W,{variant:"secondary",className:"text-xs",children:["v",e.version]}),(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:D(e.status)})]})]})]}),i&&(0,Xa.jsxs)(ea,{children:[(0,Xa.jsx)(ta,{asChild:!0,children:(0,Xa.jsx)(N,{variant:"ghost",size:"icon",className:p("h-8 Xa-8",r&&"h-6 Xa-6"),children:(0,Xa.jsx)(Qo.MoreHorizontal,{className:p("h-4 Xa-4",r&&"h-3 Xa-3")})})}),(0,Xa.jsxs)(St,{align:"end",children:[(0,Xa.jsxs)(st,{onClick:()=>o?.(e),children:[(0,Xa.jsx)(Qo.Settings,{className:"h-4 Xa-4 mr-2"}),"View Details"]}),(0,Xa.jsxs)(st,{onClick:()=>t?.(e),children:[(0,Xa.jsx)(Qo.Edit,{className:"h-4 Xa-4 mr-2"}),"Edit"]}),(0,Xa.jsxs)(st,{onClick:()=>a?.(e.id),className:"text-destructive focus:text-destructive",children:[(0,Xa.jsx)(Qo.Trash2,{className:"h-4 Xa-4 mr-2"}),"Delete"]})]})]})]})}),!r&&(0,Xa.jsxs)(G,{className:"Ea-0",children:[(0,Xa.jsxs)("div",{className:"space-Xa-2 text-sm",children:[e.type==="human"&&(0,Xa.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Xa.jsx)(Qo.Mail,{className:"h-3 Xa-3"}),(0,Xa.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="human"&&(0,Xa.jsxs)(Xa.Fragment,{children:[e.phone&&(0,Xa.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Xa.jsx)(Qo.Phone,{className:"h-3 Xa-3"}),(0,Xa.jsx)("span",{children:e.phone})]}),e.location&&(0,Xa.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Xa.jsx)(Qo.MapPin,{className:"h-3 Xa-3"}),(0,Xa.jsx)("span",{children:e.location})]})]}),e.type==="digital"&&(0,Xa.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Xa.jsx)(Qo.Settings,{className:"h-3 Xa-3"}),(0,Xa.jsxs)("span",{children:["v",e.version]})]}),(0,Xa.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Xa.jsx)(Qo.Clock,{className:"h-3 Xa-3"}),(0,Xa.jsxs)("span",{children:["Last active: ",g(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&(0,Xa.jsx)("div",{className:"Ea-3",children:(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,s?e.skills.length:3).map(k=>(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:k},k)),e.skills.length>3&&(0,Xa.jsx)(N,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>d(!s),children:s?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&(0,Xa.jsx)("div",{className:"Ea-3",children:(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,s?e.capabilities.length:2).map(k=>(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:k},k)),e.capabilities.length>2&&(0,Xa.jsx)(N,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>d(!s),children:s?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}var Ho=Z(require("react")),Ma=Z(require("@radix-ui/react-label"));var or=(0,Ja.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),We=Ho.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)(Ma.Root,{ref:a,className:p(or(),e),...t}));We.displayName=Ma.Root.displayName;var Vo=Z(require("react")),Mt=Vo.forwardRef(({className:e,...t},a)=>(0,Xa.jsx)("textarea",{className:p("flex min-h-[80px] Xa-full rounded border border-border 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",e),ref:a,...t}));Mt.displayName="Textarea";function Ba({selectedDocuments:e,onDocumentsChange:t,availableDocuments:a,label:o,placeholder:i="Search knowledge documents...",maxSelections:r,disabled:n=!1}){let[s,d]=(0,Ea.useState)(""),[l,D]=(0,Ea.useState)([]),[g,k]=(0,Ea.useState)(!1);(0,Ea.useEffect)(()=>{if(!s.trim()){D([]),k(!1);return}let b=a.filter(c=>{if(e.map(U=>U.id).includes(c.id))return!1;let V=s.toLowerCase();return c.title.toLowerCase().includes(V)||c.description?.toLowerCase().includes(V)||c.tags?.some(U=>U.toLowerCase().includes(V))||Object.values(c.metadata||{}).some(U=>String(U).toLowerCase().includes(V))});D(b),k(!0)},[s,e,a]);let h=b=>{r&&e.length>=r||(t([...e,b]),d(""),k(!1))},S=b=>{t(e.filter(c=>c.id!==b))},R=!r||e.length<r;return(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsx)(We,{children:o}),(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)(Qo.Search,{className:"absolute left-3 top-3 h-4 Xa-4 text-muted-foreground"}),(0,Xa.jsx)(he,{value:s,onChange:b=>d(b.target.value),placeholder:R?i:`Maximum ${r} documents selected`,className:"pl-9",disabled:n||!R,onFocus:()=>s&&k(!0)})]}),g&&l.length>0&&(0,Xa.jsx)(O,{className:"absolute top-full left-0 right-0 Xa-10 Ea-1 max-h-60",children:(0,Xa.jsx)(ze,{className:"h-full",children:(0,Xa.jsx)(G,{className:"p-2",children:l.map(b=>(0,Xa.jsx)(N,{variant:"ghost",className:"Xa-full justify-start h-auto p-3 mb-1",onClick:()=>h(b),disabled:n,children:(0,Xa.jsxs)("div",{className:"flex items-start gap-3 Xa-full",children:[(0,Xa.jsx)(Qo.FileText,{className:"h-4 Xa-4 Ea-0.5 text-muted-foreground flex-shrink-0"}),(0,Xa.jsxs)("div",{className:"text-left flex-1 min-Xa-0",children:[(0,Xa.jsx)("div",{className:"font-medium text-sm truncate",children:b.title}),b.description&&(0,Xa.jsx)("div",{className:"text-xs text-muted-foreground Ea-1 line-clamp-2",children:b.description}),b.tags&&b.tags.length>0&&(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-1 Ea-2",children:[b.tags.slice(0,3).map(c=>(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:c},c)),b.tags.length>3&&(0,Xa.jsxs)(W,{variant:"outline",className:"text-xs",children:["+",b.tags.length-3," more"]})]})]})]})},b.id))})})}),g&&s&&l.length===0&&(0,Xa.jsx)(O,{className:"absolute top-full left-0 right-0 Xa-10 Ea-1",children:(0,Xa.jsxs)(G,{className:"p-4 text-center text-sm text-muted-foreground",children:['Qo knowledge documents found for "',s,'"']})})]}),e.length>0&&(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,r&&`/${r}`,")"]}),(0,Xa.jsx)("div",{className:"space-Xa-2",children:e.map(b=>(0,Xa.jsx)(O,{className:"p-3",children:(0,Xa.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Xa.jsx)(Qo.FileText,{className:"h-4 Xa-4 Ea-0.5 text-muted-foreground flex-shrink-0"}),(0,Xa.jsxs)("div",{className:"flex-1 min-Xa-0",children:[(0,Xa.jsx)("div",{className:"font-medium text-sm",children:b.title}),b.description&&(0,Xa.jsx)("div",{className:"text-xs text-muted-foreground Ea-1",children:b.description}),b.tags&&b.tags.length>0&&(0,Xa.jsx)("div",{className:"flex flex-wrap gap-1 Ea-2",children:b.tags.map(c=>(0,Xa.jsxs)(W,{variant:"outline",className:"text-xs",children:[(0,Xa.jsx)(Qo.Tag,{className:"h-3 Xa-3 mr-1"}),c]},c))})]}),(0,Xa.jsx)(N,{type:"button",variant:"ghost",size:"icon",className:"h-6 Xa-6 flex-shrink-0",onClick:()=>S(b.id),disabled:n,children:(0,Xa.jsx)(Qo.X,{className:"h-3 Xa-3"})})]})},b.id))})]}),g&&(0,Xa.jsx)("div",{className:"fixed inset-0 Xa-0",onClick:()=>k(!1)})]})}function La({colleague:e,onSave:t,onCancel:a,isLoading:o=!1,title:i,submitLabel:r,cancelLabel:n="Cancel",readOnly:s=!1,availableKnowledgeDocuments:d=[]}){let[l,D]=(0,Ea.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...e}),[g,k]=(0,Ea.useState)(""),[h,S]=(0,Ea.useState)(""),[R,b]=(0,Ea.useState)(!s);(0,Ea.useEffect)(()=>{e&&D(e)},[e]);let c=x=>{x.preventDefault();let _=l.version?parseInt(l.version):0,Q=e?(_+1).toString():"1",re={id:l.id||Date.now().toString(),name:l.name,type:"digital",status:"active",joinedDate:l.joinedDate||new Date,lastActive:l.lastActive||new Date,description:l.description,jobDescription:l.jobDescription||"",workInstructions:l.workInstructions||"",capabilities:l.capabilities||[],knowledge:l.knowledge||[],coreKnowledge:l.coreKnowledge||[],version:Q,lastUpdated:l.lastUpdated||new Date,isActive:!0};t(re)},X=(x,_,Q)=>{if(!_.trim())return;let re=l[x]||[];D({...l,[x]:[...re,_.trim()]}),Q("")},V=(x,_)=>{let Q=l[x]||[];D({...l,[x]:Q.filter((re,H)=>H!==_)})},U=x=>{x.preventDefault(),b(!R)},me=(x,_,Q,re,H)=>{let Ie=l[x]||[];return(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsx)(We,{children:_}),R&&(0,Xa.jsxs)("div",{className:"flex gap-2",children:[(0,Xa.jsx)(he,{value:Q,onChange:m=>re(m.target.value),placeholder:H,onKeyPress:m=>{m.key==="Enter"&&(m.preventDefault(),X(x,Q,re))},disabled:o}),(0,Xa.jsx)(N,{type:"button",variant:"outline",size:"icon",onClick:()=>X(x,Q,re),disabled:o,children:(0,Xa.jsx)(Qo.Plus,{className:"h-4 Xa-4"})})]}),(0,Xa.jsx)("div",{className:"flex flex-wrap gap-2",children:Ie.map((m,J)=>(0,Xa.jsxs)(W,{className:"gap-1",children:[m,R&&(0,Xa.jsx)(N,{type:"button",variant:"ghost",size:"icon",className:"h-4 Xa-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>V(x,J),disabled:o,children:(0,Xa.jsx)(Qo.X,{className:"h-3 Xa-3"})})]},`${x}-${J}-${m}`))})]})},q=i||(R?e?"Edit Colleague":"Add New Colleague":"View Colleague"),ae=r||(e?"Update Colleague":"Add Colleague");return(0,Xa.jsxs)(O,{className:"m-8 Xa-full max-Xa-4xl mx-auto",children:[(0,Xa.jsx)(oe,{children:(0,Xa.jsxs)(se,{className:"flex items-center gap-2",children:[(0,Xa.jsx)(Qo.Bot,{className:"h-5 Xa-5"}),q]})}),(0,Xa.jsx)(G,{children:(0,Xa.jsxs)("form",{onSubmit:c,className:"space-Xa-6",children:[(0,Xa.jsxs)("div",{className:"space-Xa-4",children:[(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsx)(We,{htmlFor:"name",children:"Name *"}),(0,Xa.jsx)(he,{id:"name",value:l.name||"",onChange:x=>D({...l,name:x.target.value}),required:!0,disabled:o||!R})]}),(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsx)(We,{htmlFor:"description",children:"Description"}),(0,Xa.jsx)(Mt,{id:"description",value:l.description||"",onChange:x=>D({...l,description:x.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:o||!R})]})]}),(0,Xa.jsxs)("div",{className:"space-Xa-4",children:[(0,Xa.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsx)(We,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Xa.jsx)(Mt,{id:"jobDescription",value:l.jobDescription||"",onChange:x=>D({...l,jobDescription:x.target.value}),rows:4,required:l.type==="digital",disabled:o||!R})]}),(0,Xa.jsxs)("div",{className:"space-Xa-2",children:[(0,Xa.jsx)(We,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Xa.jsx)(Mt,{id:"workInstructions",value:l.workInstructions||"",onChange:x=>D({...l,workInstructions:x.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:o||!R})]}),me("capabilities","Capabilities",h,S,"Add capability"),(0,Xa.jsx)(Ba,{selectedDocuments:l.knowledge||[],onDocumentsChange:x=>D({...l,knowledge:x}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:o||!R,availableDocuments:d}),(0,Xa.jsx)(Ba,{selectedDocuments:l.coreKnowledge||[],onDocumentsChange:x=>D({...l,coreKnowledge:x}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:o||!R,availableDocuments:d})]}),(0,Xa.jsxs)("div",{className:"flex justify-end gap-2 Ea-4 border-t",children:[(0,Xa.jsx)(N,{type:"button",variant:"outline",onClick:a,disabled:o,children:R?n:"Close"}),R?(0,Xa.jsx)(N,{type:"submit",disabled:o,children:o?"Saving...":ae}):(0,Xa.jsxs)(N,{type:"button",onClick:U,disabled:o,className:"gap-2",children:[(0,Xa.jsx)(Qo.Edit,{className:"h-4 Xa-4"}),"Edit"]})]})]})})]})}function Go({users:e,onUserSelect:t,onCancel:a,selectedUserId:o}){let[i,r]=(0,Ea.useState)(""),n=(0,Ea.useMemo)(()=>e.filter(d=>d.name.toLowerCase().includes(i.toLowerCase())||d.email.toLowerCase().includes(i.toLowerCase())||d.role.toLowerCase().includes(i.toLowerCase())||(d.skills||[]).some(D=>D.toLowerCase().includes(i.toLowerCase()))),[e,i]),s=d=>{t(d)};return(0,Xa.jsx)("div",{className:"px-2 md:px-4 py-4 space-Xa-6",children:(0,Xa.jsx)(ca.AnimatePresence,{mode:"wait",children:(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:10},animate:{opacity:1,Xa:0},exit:{opacity:0,Xa:-10},transition:{duration:.2},children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Xa.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Xa.jsx)($e.ChevronLeft,{className:"h-4 Xa-4"}),"Back"]}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Xa.jsx)(O,{className:"container",children:(0,Xa.jsx)(G,{className:"Ea-6",children:(0,Xa.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Xa.jsx)("div",{className:"flex-1",children:(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)($e.Search,{className:"absolute left-3 top-3 h-4 Xa-4 text-muted-foreground"}),(0,Xa.jsx)(he,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:d=>r(d.target.value),className:"pl-9"})]})})})})}),(0,Xa.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:n.map(d=>(0,Xa.jsx)(ca.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Xa.jsxs)(O,{className:`cursor-pointer transition-all hover:shadow-lg ${o===d.id?"ring-2 ring-primary":""}`,onClick:()=>s(d),children:[(0,Xa.jsx)(oe,{className:"pb-3",children:(0,Xa.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Xa.jsxs)(Ke,{children:[(0,Xa.jsx)(it,{src:d.avatar,alt:d.name}),(0,Xa.jsx)(Oe,{children:(0,Xa.jsx)($e.User,{className:"h-4 Xa-4"})})]}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)(se,{className:"text-lg",children:d.name}),(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:d.role})]})]}),o===d.id&&(0,Xa.jsx)($e.Check,{className:"h-5 Xa-5 text-primary"})]})}),(0,Xa.jsx)(G,{className:"Ea-0",children:(0,Xa.jsxs)("div",{className:"space-Xa-3",children:[(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Xa.jsx)("p",{className:"text-sm font-medium",children:d.email})]}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"}),(0,Xa.jsx)(W,{variant:"secondary",children:d.department})]}),d.location&&(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Location"}),(0,Xa.jsx)("p",{className:"text-sm",children:d.location})]}),d.skills&&d.skills.length>0&&(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-1",children:[d.skills.slice(0,3).map(l=>(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:l},l)),d.skills.length>3&&(0,Xa.jsxs)(W,{variant:"outline",className:"text-xs",children:["+",d.skills.length-3]})]})]})]})})]})},d.id))}),n.length===0&&(0,Xa.jsx)(O,{className:"container Ea-4",children:(0,Xa.jsx)(G,{className:"Ea-6",children:(0,Xa.jsxs)("div",{className:"text-center py-8",children:[(0,Xa.jsx)($e.User,{className:"h-12 Xa-12 text-muted-foreground mx-auto mb-4"}),(0,Xa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Qo users found"}),(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function $o({digitalColleagues:e,onColleagueClone:t,onCancel:a,selectedColleagueId:o}){let[i,r]=(0,Ea.useState)(""),[n,s]=(0,Ea.useState)("all"),d=(0,Ea.useMemo)(()=>e.filter(g=>{let k=g.name.toLowerCase().includes(i.toLowerCase())||g.jobDescription.toLowerCase().includes(i.toLowerCase())||g.capabilities.some(S=>S.toLowerCase().includes(i.toLowerCase()))||g.workInstructions.toLowerCase().includes(i.toLowerCase()),h=n==="all"||g.status===n;return k&&h}),[e,i,n]),l=g=>{let k={...g,id:`${g.id}-clone-${Date.now()}`,name:`${g.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};t(k)},D=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,Xa.jsx)("div",{className:"px-2 md:px-4 py-4 space-Xa-6",children:(0,Xa.jsx)(ca.AnimatePresence,{mode:"wait",children:(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:10},animate:{opacity:1,Xa:0},exit:{opacity:0,Xa:-10},transition:{duration:.2},children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Xa.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Xa.jsx)(Qo.ChevronLeft,{className:"h-4 Xa-4"}),"Back"]}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Xa.jsx)(O,{children:(0,Xa.jsx)(G,{className:"Ea-6",children:(0,Xa.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Xa.jsx)("div",{className:"flex-1",children:(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)(Qo.Search,{className:"absolute left-3 top-3 h-4 Xa-4 text-muted-foreground"}),(0,Xa.jsx)(he,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:g=>r(g.target.value),className:"pl-9"})]})}),(0,Xa.jsxs)("select",{value:n,onChange:g=>s(g.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Xa.jsx)("option",{value:"all",children:"All Status"}),(0,Xa.jsx)("option",{value:"active",children:"Active"}),(0,Xa.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Xa.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:d.map(g=>(0,Xa.jsx)(ca.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Xa.jsxs)(O,{className:`cursor-pointer transition-all hover:shadow-lg ${o===g.id?"ring-2 ring-primary":""}`,onClick:()=>l(g),children:[(0,Xa.jsx)(oe,{className:"pb-3",children:(0,Xa.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Xa.jsx)(Ke,{children:(0,Xa.jsx)(Oe,{className:"bg-blue-100",children:(0,Xa.jsx)(Qo.Bot,{className:"h-4 Xa-4 text-blue-600"})})}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsxs)(se,{className:"text-lg flex items-center gap-2",children:[g.name,(0,Xa.jsx)(W,{variant:g.status==="active"?"default":"secondary",className:"text-xs",children:g.status})]}),(0,Xa.jsxs)("p",{className:"text-sm text-muted-foreground",children:["v",g.version]})]})]}),(0,Xa.jsxs)(N,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:k=>{k.stopPropagation(),l(g)},children:[(0,Xa.jsx)(Qo.Copy,{className:"h-3 Xa-3"}),"Clone"]})]})}),(0,Xa.jsx)(G,{className:"Ea-0",children:(0,Xa.jsxs)("div",{className:"space-Xa-3",children:[(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Xa.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-1",children:[g.capabilities.slice(0,3).map(k=>(0,Xa.jsx)(W,{variant:"outline",className:"text-xs",children:k},k)),g.capabilities.length>3&&(0,Xa.jsxs)(W,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})]})]}),(0,Xa.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Xa.jsx)(Qo.Calendar,{className:"h-3 Xa-3"}),(0,Xa.jsxs)("span",{children:["Updated ",D(g.lastUpdated)]})]}),g.knowledge&&(0,Xa.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Xa.jsx)(Qo.Users,{className:"h-3 Xa-3"}),(0,Xa.jsxs)("span",{children:[g.knowledge.length," docs"]})]})]}),g.workInstructions&&(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Xa.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),d.length===0&&(0,Xa.jsx)(O,{children:(0,Xa.jsx)(G,{className:"Ea-6",children:(0,Xa.jsxs)("div",{className:"text-center py-8",children:[(0,Xa.jsx)(Qo.Bot,{className:"h-12 Xa-12 text-muted-foreground mx-auto mb-4"}),(0,Xa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Qo digital colleagues found"}),(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function _o({onSelectHuman:e,onSelectDigital:t,onCancel:a}){return(0,Xa.jsx)("div",{className:"px-2 md:px-4 py-4 space-Xa-6",children:(0,Xa.jsx)(ca.AnimatePresence,{mode:"wait",children:(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:10},animate:{opacity:1,Xa:0},exit:{opacity:0,Xa:-10},transition:{duration:.2},children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Xa.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Xa.jsx)(Qo.ChevronLeft,{className:"h-4 Xa-4"}),"Back"]}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Xa.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Xa-4xl mx-auto",children:[(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Xa.jsxs)(O,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Xa.jsxs)(oe,{className:"text-center pb-4",children:[(0,Xa.jsx)("div",{className:"mx-auto Xa-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Xa.jsx)(Qo.User,{className:"h-8 Xa-8 text-blue-600"})}),(0,Xa.jsx)(se,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Xa.jsxs)(G,{className:"text-center",children:[(0,Xa.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Xa.jsxs)("div",{className:"space-Xa-2 text-sm",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Users,{className:"h-4 Xa-4 text-blue-600"}),(0,Xa.jsx)("span",{children:"Browse existing users"})]}),(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.User,{className:"h-4 Xa-4 text-blue-600"}),(0,Xa.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Xa.jsx)(N,{className:"Ea-6 Xa-full",onClick:e,children:"Select User"})]})]})}),(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Xa.jsxs)(O,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Xa.jsxs)(oe,{className:"text-center pb-4",children:[(0,Xa.jsx)("div",{className:"mx-auto Xa-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Xa.jsx)(Qo.Bot,{className:"h-8 Xa-8 text-purple-600"})}),(0,Xa.jsx)(se,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Xa.jsxs)(G,{className:"text-center",children:[(0,Xa.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Xa.jsxs)("div",{className:"space-Xa-2 text-sm",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Bot,{className:"h-4 Xa-4 text-purple-600"}),(0,Xa.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Users,{className:"h-4 Xa-4 text-purple-600"}),(0,Xa.jsx)("span",{children:"Create from templates"})]})]}),(0,Xa.jsx)(N,{className:"Ea-6 Xa-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function qo({onCloneExisting:e,onCreateNew:t,onCancel:a}){return(0,Xa.jsx)("div",{className:"px-2 md:px-4 py-4 space-Xa-6",children:(0,Xa.jsx)(ca.AnimatePresence,{mode:"wait",children:(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:10},animate:{opacity:1,Xa:0},exit:{opacity:0,Xa:-10},transition:{duration:.2},children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Xa.jsxs)(N,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Xa.jsx)(Qo.ChevronLeft,{className:"h-4 Xa-4"}),"Back"]}),(0,Xa.jsxs)("div",{children:[(0,Xa.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Xa.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Xa-4xl mx-auto",children:[(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Xa.jsxs)(O,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Xa.jsxs)(oe,{className:"text-center pb-4",children:[(0,Xa.jsx)("div",{className:"mx-auto Xa-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Xa.jsx)(Qo.Copy,{className:"h-8 Xa-8 text-blue-600"})}),(0,Xa.jsx)(se,{className:"text-xl",children:"Clone Existing"})]}),(0,Xa.jsxs)(G,{className:"text-center",children:[(0,Xa.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Xa.jsxs)("div",{className:"space-Xa-2 text-sm",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Bot,{className:"h-4 Xa-4 text-blue-600"}),(0,Xa.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Copy,{className:"h-4 Xa-4 text-blue-600"}),(0,Xa.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Xa.jsx)(N,{className:"Ea-6 Xa-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Xa.jsx)(ca.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Xa.jsxs)(O,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Xa.jsxs)(oe,{className:"text-center pb-4",children:[(0,Xa.jsx)("div",{className:"mx-auto Xa-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Xa.jsx)(Qo.Sparkles,{className:"h-8 Xa-8 text-green-600"})}),(0,Xa.jsx)(se,{className:"text-xl",children:"Create New"})]}),(0,Xa.jsxs)(G,{className:"text-center",children:[(0,Xa.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Xa.jsxs)("div",{className:"space-Xa-2 text-sm",children:[(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Plus,{className:"h-4 Xa-4 text-green-600"}),(0,Xa.jsx)("span",{children:"Custom job description"})]}),(0,Xa.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Xa.jsx)(Qo.Sparkles,{className:"h-4 Xa-4 text-green-600"}),(0,Xa.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Xa.jsx)(N,{className:"Ea-6 Xa-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function ja({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:a,onColleagueDelete:o,compactView:i=!1,departments:r=["Design","Engineering","Marketing","Product","Sales","Operations"],className:n,availableUsers:s=[],existingDigitalColleagues:d=[]}){let[l,D]=(0,Ea.useState)(e||[]),[g,k]=(0,Ea.useState)(""),[h,S]=(0,Ea.useState)("all"),[R,b]=(0,Ea.useState)("all"),[c,X]=(0,Ea.useState)("all"),[V,U]=(0,Ea.useState)(null),[me,q]=(0,Ea.useState)(null),[ae,x]=(0,Ea.useState)("main"),_=l.filter(v=>{let Ce=v.name.toLowerCase().includes(g.toLowerCase())||v.type==="human"&&(v.email.toLowerCase().includes(g.toLowerCase())||v.role.toLowerCase().includes(g.toLowerCase()))||v.type==="digital"&&v.jobDescription.toLowerCase().includes(g.toLowerCase()),ve=h==="all"||v.type==="human"&&v.department===h,pa=R==="all"||v.status===R;return Ce&&ve&&pa}),Q=_.filter(v=>v.type==="human"),re=_.filter(v=>v.type==="digital"),H=()=>{x("typeSelection")},Ie=v=>{v.type==="digital"&&(U(v),x("form"))},m=v=>{v.type==="digital"&&(q(v),x("view"))},J=v=>{let Ce={id:`human-${Date.now()}`,type:"human",name:v.name,email:v.email,role:v.role,department:v.department,phone:v.phone,location:v.location,timezone:v.timezone,skills:v.skills,bio:v.bio,status:"active",joinedDate:new Date,lastActive:new Date};D(ve=>[...ve,Ce]),t?.(Ce),x("main")},Y=v=>{D(Ce=>[...Ce,v]),t?.(v),x("main")},Me=()=>{U(null),x("form")},xe=v=>{V?(D(Ce=>Ce.map(ve=>ve.id===v.id?v:ve)),a?.(v)):(D(Ce=>[...Ce,v]),t?.(v)),x("main"),U(null)},ot=()=>{x("main"),U(null),q(null)},zt=()=>{x("main"),q(null)},je=()=>{me&&(U(me),q(null),x("form"))},ma=v=>{D(Ce=>Ce.filter(ve=>ve.id!==v)),o?.(v)},ei=()=>{k(""),S("all"),b("all")},Fa=()=>{let v=[];return d.forEach(ve=>{v.push(...ve.knowledge,...ve.coreKnowledge)}),l.forEach(ve=>{ve.type==="digital"&&v.push(...ve.knowledge,...ve.coreKnowledge)}),v.filter((ve,pa,ti)=>pa===ti.findIndex(ai=>ai.id===ve.id))};return ae==="typeSelection"?(0,Xa.jsx)(_o,{onSelectHuman:()=>x("userSelection"),onSelectDigital:()=>x("digitalOptions"),onCancel:()=>x("main")}):ae==="userSelection"?(0,Xa.jsx)(Go,{users:s,onUserSelect:J,onCancel:()=>x("typeSelection")}):ae==="digitalOptions"?(0,Xa.jsx)(qo,{onCloneExisting:()=>x("digitalClone"),onCreateNew:Me,onCancel:()=>x("typeSelection")}):ae==="digitalClone"?(0,Xa.jsx)($o,{digitalColleagues:d,onColleagueClone:Y,onCancel:()=>x("digitalOptions")}):ae==="form"?(0,Xa.jsx)(La,{colleague:V||void 0,onSave:xe,onCancel:ot,availableKnowledgeDocuments:Fa()}):ae==="view"?(0,Xa.jsx)(La,{colleague:me||void 0,onSave:xe,onCancel:zt,readOnly:!0,availableKnowledgeDocuments:Fa()}):(0,Xa.jsx)("div",{className:"px-2 md:px-4 py-4 space-Xa-8",children:(0,Xa.jsx)(ca.AnimatePresence,{mode:"wait",children:(0,Xa.jsx)(ca.motion.div,{initial:{opacity:0,Xa:10},animate:{opacity:1,Xa:0},exit:{opacity:0,Xa:-10},transition:{duration:.2},children:(0,Xa.jsxs)("div",{className:`space-Xa-6 ${n||""}`,children:[(0,Xa.jsx)(Te,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:H}}),(0,Xa.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Xa.jsxs)(O,{children:[(0,Xa.jsxs)(oe,{className:"flex flex-row items-center justify-between space-Xa-0 pb-2",children:[(0,Xa.jsx)(se,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Xa.jsx)(Qo.Users,{className:"h-4 Xa-4 text-muted-foreground"})]}),(0,Xa.jsxs)(G,{children:[(0,Xa.jsx)("div",{className:"text-2xl font-bold",children:l.length}),(0,Xa.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l.filter(v=>v.status==="active").length," active"]})]})]}),(0,Xa.jsxs)(O,{children:[(0,Xa.jsxs)(oe,{className:"flex flex-row items-center justify-between space-Xa-0 pb-2",children:[(0,Xa.jsx)(se,{className:"text-sm font-medium",children:"Human Members"}),(0,Xa.jsx)(Qo.User,{className:"h-4 Xa-4 text-muted-foreground"})]}),(0,Xa.jsxs)(G,{children:[(0,Xa.jsx)("div",{className:"text-2xl font-bold",children:l.filter(v=>v.type==="human").length}),(0,Xa.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l.filter(v=>v.type==="human"&&v.status==="active").length," active"]})]})]}),(0,Xa.jsxs)(O,{children:[(0,Xa.jsxs)(oe,{className:"flex flex-row items-center justify-between space-Xa-0 pb-2",children:[(0,Xa.jsx)(se,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Xa.jsx)(Qo.Bot,{className:"h-4 Xa-4 text-muted-foreground"})]}),(0,Xa.jsxs)(G,{children:[(0,Xa.jsx)("div",{className:"text-2xl font-bold",children:l.filter(v=>v.type==="digital").length}),(0,Xa.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l.filter(v=>v.type==="digital"&&v.status==="active").length," active"]})]})]})]}),(0,Xa.jsx)(O,{children:(0,Xa.jsx)(G,{className:"Ea-6",children:(0,Xa.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Xa.jsx)("div",{className:"flex-1",children:(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)(Qo.Search,{className:"absolute left-3 top-3 h-4 Xa-4 text-muted-foreground"}),(0,Xa.jsx)(he,{placeholder:"Search colleagues...",value:g,onChange:v=>k(v.target.value),className:"pl-9"})]})}),(0,Xa.jsxs)(Aa,{value:h,onValueChange:S,children:[(0,Xa.jsx)(ra,{className:"Xa-full md:Xa-[180px]",children:(0,Xa.jsx)(Ia,{placeholder:"Department"})}),(0,Xa.jsxs)(sa,{children:[(0,Xa.jsx)(ct,{value:"all",children:"All Departments"}),r.map(v=>(0,Xa.jsx)(ct,{value:v,children:v},v))]})]}),(0,Xa.jsxs)(Aa,{value:R,onValueChange:b,children:[(0,Xa.jsx)(ra,{className:"Xa-full md:Xa-[140px]",children:(0,Xa.jsx)(Ia,{placeholder:"Status"})}),(0,Xa.jsxs)(sa,{children:[(0,Xa.jsx)(ct,{value:"all",children:"All Status"}),(0,Xa.jsx)(ct,{value:"active",children:"Active"}),(0,Xa.jsx)(ct,{value:"inactive",children:"Inactive"})]})]}),(g||h!=="all"||R!=="all")&&(0,Xa.jsxs)(N,{variant:"outline",onClick:ei,className:"gap-2",children:[(0,Xa.jsx)(Qo.Filter,{className:"h-4 Xa-4"}),"Clear"]})]})})}),(0,Xa.jsxs)("div",{className:"space-Xa-4",children:[(0,Xa.jsx)(aa,{activeTab:c,onTabChange:X,tabOptions:[{value:"all",label:`All (${_.length})`},{value:"human",label:`Human (${Q.length})`},{value:"digital",label:`Digital (${re.length})`}],maxWidth:"400px",gridCols:3}),c==="all"&&(0,Xa.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(v=>(0,Xa.jsx)(na,{colleague:v,onEdit:Ie,onDelete:ma,onViewDetails:m,compact:i},v.id))}),c==="human"&&(0,Xa.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Q.map(v=>(0,Xa.jsx)(na,{colleague:v,onEdit:Ie,onDelete:ma,onViewDetails:m,compact:i},v.id))}),c==="digital"&&(0,Xa.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:re.map(v=>(0,Xa.jsx)(na,{colleague:v,onEdit:Ie,onDelete:ma,onViewDetails:m,compact:i},v.id))})]}),_.length===0&&(0,Xa.jsx)(O,{children:(0,Xa.jsx)(G,{className:"Ea-6",children:(0,Xa.jsxs)("div",{className:"text-center py-8",children:[(0,Xa.jsx)(Qo.Users,{className:"h-12 Xa-12 text-muted-foreground mx-auto mb-4"}),(0,Xa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Qo colleagues found"}),(0,Xa.jsx)("p",{className:"text-muted-foreground mb-4",children:g||h!=="all"||R!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Xa.jsxs)(N,{onClick:H,className:"gap-2",children:[(0,Xa.jsx)(Qo.Plus,{className:"h-4 Xa-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}function Jo({label:e,documents:t,children:a,level:o,onDocumentClick:i,selectedDocumentId:r,showDocumentCount:n=!0}){let[s,d]=(0,Ea.useState)(o===0),l=a&&Object.keys(a).length>0,D=t.length+(a?Object.values(a).reduce((h,S)=>h+S.documents.length,0):0),g=h=>{switch(h){case"markdown":case"mdx":return(0,Xa.jsx)(Qo.FileText,{className:"h-3.5 Xa-3.5 text-muted-foreground"});case"richtext":return(0,Xa.jsx)(Qo.File,{className:"h-3.5 Xa-3.5 text-muted-foreground"});default:return(0,Xa.jsx)(Qo.File,{className:"h-3.5 Xa-3.5 text-muted-foreground"})}},k=h=>{let S=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return S[h%S.length]};return(0,Xa.jsxs)("div",{className:"space-Xa-1",children:[(l||t.length>0)&&(0,Xa.jsxs)(ca.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>d(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Xa.jsx)("div",{className:`Xa-1 h-6 rounded-full ${k(o)}`}),(0,Xa.jsx)(ca.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Xa.jsx)(Qo.ChevronRight,{className:"h-4 Xa-4 text-muted-foreground"})}),(0,Xa.jsxs)("div",{className:"flex-1 flex items-center justify-between min-Xa-0",children:[(0,Xa.jsx)("div",{className:"flex items-center gap-2 min-Xa-0",children:(0,Xa.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),n&&D>0&&(0,Xa.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Xa.jsx)("span",{className:"inline-flex items-center justify-center Xa-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:D})})]})]}),(0,Xa.jsx)(ca.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Xa.jsxs)("div",{className:"Ea-2 space-Xa-1",children:[t.map((h,S)=>(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:S*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${r===h.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>i?.(h),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Xa.jsx)("div",{className:"flex-shrink-0",children:g(h.format)}),(0,Xa.jsxs)("div",{className:"flex-1 min-Xa-0",children:[(0,Xa.jsx)("p",{className:`text-sm truncate transition-colors ${r===h.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:h.title}),h.description&&(0,Xa.jsx)("p",{className:"text-xs text-muted-foreground truncate Ea-0.5",children:h.description})]}),h.tags&&h.tags.length>0&&(0,Xa.jsx)("div",{className:"flex-shrink-0",children:(0,Xa.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:h.tags[0]})})]},h.id)),a&&Object.entries(a).map(([h,S])=>(0,Xa.jsx)(Jo,{label:h,documents:S.documents,children:S.children,level:o+1,onDocumentClick:i,selectedDocumentId:r,showDocumentCount:n},h))]})})]})}function ir({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return(0,Xa.jsx)(Qo.FileText,{className:"h-6 Xa-6 text-primary"});case"richtext":return(0,Xa.jsx)(Qo.File,{className:"h-6 Xa-6 text-success"});default:return(0,Xa.jsx)(Qo.File,{className:"h-6 Xa-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:20},animate:{opacity:1,Xa:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Xa.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,Xa.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Xa.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,Xa.jsxs)("div",{className:"flex-1 min-Xa-0",children:[(0,Xa.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Xa.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,Xa.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Xa.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>(0,Xa.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),(0,Xa.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Xa.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Xa.jsxs)("div",{className:"mb-6",children:[(0,Xa.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Xa.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Xa.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-Xa-1 text-xs",children:Object.entries(e.metadata).map(([o,i])=>(0,Xa.jsxs)("div",{className:"flex gap-1",children:[(0,Xa.jsxs)("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([Xa-Z])/g," $1").trim(),":"]}),(0,Xa.jsx)("span",{className:"text-foreground truncate",children:String(i)})]},o))})})]}),(0,Xa.jsx)("div",{className:"space-Xa-4",children:e.content?(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Xa.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Xa.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Xa.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Xa.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Xa.jsx)("div",{className:"Xa-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Xa.jsx)(Qo.FileText,{className:"h-8 Xa-8 text-muted-foreground"})}),(0,Xa.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"Qo content available"}),(0,Xa.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Xo({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:i,className:r}){let[n,s]=(0,Ea.useState)(""),[d,l]=(0,Ea.useState)(null),D=(0,Ea.useMemo)(()=>n?e.filter(h=>h.title.toLowerCase().includes(n.toLowerCase())||h.description?.toLowerCase().includes(n.toLowerCase())||h.tags?.some(S=>S.toLowerCase().includes(n.toLowerCase()))||Object.values(h.metadata||{}).some(S=>String(S).toLowerCase().includes(n.toLowerCase()))):e,[e,n]),g=(0,Ea.useMemo)(()=>{let h=(S,R)=>{if(R.length===0)return{};let[b,...c]=R;return S.reduce((V,U)=>{let me=U.metadata?.[b]||"Uncategorized",q=String(me);if(V[q]||(V[q]={documents:[],children:{}}),c.length===0)V[q].documents.push(U);else{let ae=h([U],c),x=Object.keys(ae)[0];x&&(V[q].children||(V[q].children={}),V[q].children[x]?V[q].children[x].documents.push(...ae[x].documents):V[q].children[x]=ae[x])}return V},{})};return h(D,t.groupBy)},[D,t.groupBy]),k=h=>{l(h),a?.(h)};return(0,Xa.jsxs)("div",{className:`flex h-full ${r||""}`,children:[(0,Xa.jsxs)("div",{className:"Xa-1/3 border-r border-border bg-muted/20",children:[(0,Xa.jsx)("div",{className:"p-6 border-b border-border",children:(0,Xa.jsxs)("div",{className:"relative",children:[(0,Xa.jsx)("div",{className:"absolute inset-Xa-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Xa.jsx)(Qo.Search,{className:"h-4 Xa-4 text-muted-foreground"})}),(0,Xa.jsx)(he,{placeholder:"Search knowledge base...",value:n,onChange:h=>s(h.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Xa.jsx)(ze,{className:"h-[calc(100%-100px)]",children:(0,Xa.jsxs)("div",{className:"p-4 space-Xa-3",children:[Object.entries(g).map(([h,S])=>(0,Xa.jsx)(Jo,{label:h,documents:S.documents,children:S.children,level:0,onDocumentClick:k,selectedDocumentId:i,showDocumentCount:t.showDocumentCount},h)),Object.keys(g).length===0&&(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Xa.jsx)("div",{className:"Xa-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Xa.jsx)(Qo.FileText,{className:"h-8 Xa-8 text-muted-foreground"})}),(0,Xa.jsx)("p",{className:"text-sm font-medium",children:"Qo documents found"}),(0,Xa.jsx)("p",{className:"text-xs Ea-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Xa.jsx)("div",{className:"flex-1 bg-background",children:d?(0,Xa.jsx)(ir,{document:d}):(0,Xa.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Xa.jsxs)(ca.motion.div,{initial:{opacity:0,Xa:20},animate:{opacity:1,Xa:0},transition:{duration:.4},className:"max-Xa-sm",children:[(0,Xa.jsx)("div",{className:"Xa-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Xa.jsx)(Qo.FileText,{className:"h-10 Xa-10 text-primary"})}),(0,Xa.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Xa.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function za({documents:e=[],contexts:t=[],onDocumentClick:a=n=>console.log("Document clicked:",n),onDocumentShare:o=n=>console.log("Share document:",n),onLoadDocumentContent:i,selectedDocumentId:r}){let[n,s]=(0,Ea.useState)(t[0]);return!t||t.length===0?(0,Xa.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Xa.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Xa.jsx)(Te,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Xa.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Xa.jsx)("p",{className:"text-muted-foreground",children:"Qo contexts available"})})]}):(0,Xa.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Xa.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Xa.jsx)(Te,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Xa.jsxs)("div",{className:"Ea-6",children:[(0,Xa.jsx)("div",{className:"border-b border-border",children:(0,Xa.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(d=>(0,Xa.jsxs)("button",{onClick:()=>s(d),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${n.id===d.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[d.icon,d.label]},d.id))})}),n.description&&(0,Xa.jsx)("div",{className:"Ea-3 px-1",children:(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:n.description})})]})]}),(0,Xa.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Xa.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Xa.jsx)(Xo,{documents:e,menuConfig:n.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r})})})]})}function Zo({title:e="Digital Colleagues",businessUnits:t}){let[a,o]=(0,Ea.useState)("home"),[i,r]=(0,Ea.useState)(t[0]),n=c=>{console.log("Opening app:",c.name)},s=c=>{console.log("Favoriting app:",c.name)},d=c=>{console.log("Opening file:",c.name)},l=c=>{console.log("Sharing file:",c.name)},D=c=>{console.log("Opening project:",c.name)},g=c=>{console.log("Sharing project:",c.name)},k=c=>{r(c),console.log("Business unit changed to:",c.name)},h=()=>{console.log("Copilot clicked - navigating to chat"),o("chat")},S=c=>{console.log("Notification removed:",c)},R=()=>{console.log("All notifications removed")},b=()=>{switch(a){case"home":return(0,Xa.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Xa-8",children:[(0,Xa.jsxs)("section",{className:"text-center py-12",children:[(0,Xa.jsxs)("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",i.name," team"]}),(0,Xa.jsx)("p",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),(0,Xa.jsxs)("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,Xa.jsxs)("div",{className:"bg-card p-6 rounded-lg border",children:[(0,Xa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),(0,Xa.jsx)("p",{className:"text-3xl font-bold text-primary",children:"12"}),(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),(0,Xa.jsxs)("div",{className:"bg-card p-6 rounded-lg border",children:[(0,Xa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),(0,Xa.jsx)("p",{className:"text-3xl font-bold text-primary",children:"8"}),(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),(0,Xa.jsxs)("div",{className:"bg-card p-6 rounded-lg border",children:[(0,Xa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),(0,Xa.jsx)("p",{className:"text-3xl font-bold text-primary",children:"156"}),(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),(0,Xa.jsx)(Te,{title:"Chat with your team",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Go",onClick:()=>o("chat")}})]});case"colleagues":return(0,Xa.jsx)(ja,{});case"chat":return(0,Xa.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Xa-8",children:[(0,Xa.jsxs)("section",{className:"text-center py-12",children:[(0,Xa.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),(0,Xa.jsxs)("p",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",i.name," team members and collaborate in real-time."]})]}),(0,Xa.jsx)(Te,{title:"Launch Full Chat Interface",description:"Access the complete chat experience with AI assistance.",gradient:"bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600",primaryAction:{label:"Open Chat",onClick:()=>console.log("Open full chat interface")}})]});case"apps":return(0,Xa.jsxs)("div",{className:"space-Xa-8",children:[(0,Xa.jsx)(Te,{title:"Creative Apps Collection",description:"Discover our full suite of professional design and creative applications.",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Install Desktop App",onClick:()=>console.log("Install desktop app clicked")}}),(0,Xa.jsxs)("section",{className:"space-Xa-4",children:[(0,Xa.jsx)("h2",{className:"text-2xl font-semibold",children:"New Releases"}),(0,Xa.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Ta.filter(c=>c.new).map(c=>(0,Xa.jsx)(Ra,{app:c,showProgress:!0,onOpen:n,onFavorite:s},c.name))})]}),(0,Xa.jsxs)("section",{className:"space-Xa-4",children:[(0,Xa.jsx)("h2",{className:"text-2xl font-semibold",children:"All Apps"}),(0,Xa.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Ta.map(c=>(0,Xa.jsx)(Ra,{app:c,onOpen:n,onFavorite:s},c.name))})]})]});case"knowledge":return(0,Xa.jsx)(za,{});case"files":return(0,Xa.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Xa-8",children:[(0,Xa.jsx)(Te,{title:"Your Creative Files",description:"Access, manage, and share all your design files in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Upload Files",onClick:()=>console.log("Upload files clicked")}}),(0,Xa.jsxs)("section",{className:"space-Xa-4",children:[(0,Xa.jsx)("div",{className:"flex items-center justify-between",children:(0,Xa.jsx)("h2",{className:"text-2xl font-semibold",children:"All Files"})}),(0,Xa.jsx)(Mo,{files:jo,onFileClick:d})]})]});case"projects":return(0,Xa.jsxs)("div",{className:"px-2 md:px-4 py-4 space-Xa-8",children:[(0,Xa.jsx)(Te,{title:"Project Management",description:"Organize your creative work into projects and collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:()=>console.log("New project clicked")}}),(0,Xa.jsxs)("section",{className:"space-Xa-4",children:[(0,Xa.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,Xa.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:go.map(c=>(0,Xa.jsx)(Lo,{project:c,onOpen:D,onShare:g},c.name))})]})]});case"learn":return(0,Xa.jsxs)("div",{className:"space-Xa-8",children:[(0,Xa.jsx)(Te,{title:"Learn & Grow",description:"Expand your creative skills with tutorials, courses, and resources.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Upgrade to Pro",onClick:()=>console.log("Upgrade to pro clicked")}}),(0,Xa.jsxs)("section",{className:"space-Xa-4",children:[(0,Xa.jsx)("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),(0,Xa.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:zo.slice(0,3).map(c=>(0,Xa.jsxs)("div",{className:"rounded-3xl border p-6",children:[(0,Xa.jsx)("h3",{className:"font-semibold mb-2",children:c.title}),(0,Xa.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:c.description}),(0,Xa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Xa.jsx)("span",{children:c.duration}),(0,Xa.jsx)("span",{children:c.level})]})]},c.title))})]})]});default:return null}};return(0,Xa.jsx)(Po,{sidebarItems:mo,title:e,notifications:po,businessUnits:t,currentBusinessUnit:i,onBusinessUnitChange:k,activeTab:a,onTabChange:o,showTabs:!0,onActionClick:h,actionIcon:(0,Xa.jsx)(Qo.Bot,{className:"mr-2 h-4 Xa-4"}),actionText:"Start Chat",onNotificationRemove:S,onRemoveAll:R,children:(0,Xa.jsx)(ca.AnimatePresence,{mode:"wait",children:(0,Xa.jsx)(ca.motion.div,{className:"flex-1 h-full",initial:{opacity:0,Xa:10},animate:{opacity:1,Xa:0},exit:{opacity:0,Xa:-10},transition:{duration:.2},children:b()},a)})})}
|