cortex-react-components 2.13.11 → 2.13.12
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-RMGDXYJO.mjs → chunk-DXE6AGJX.mjs} +1 -1
- package/dist/{chunk-IKZZNNKD.mjs → chunk-EJC6FIQT.mjs} +1 -1
- package/dist/{chunk-DPZHVBGG.mjs → chunk-FMV74RKL.mjs} +1 -1
- package/dist/chunk-JXQRVEQB.mjs +4 -0
- package/dist/{chunk-O24GFE6Q.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/chunk-L5NPH5RX.mjs +1 -0
- package/dist/{chunk-KVLUT4U2.mjs → chunk-OQCMTGML.mjs} +1 -1
- package/dist/{chunk-XOEYCVMT.mjs → chunk-T4WMPKZZ.mjs} +1 -1
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/chunk-UM57PWI7.mjs +1 -0
- package/dist/{chunk-TTSBUSVB.mjs → chunk-VV6ZNJS7.mjs} +1 -1
- package/dist/{chunk-AP6ZM2J6.mjs → chunk-Y4TDZUJM.mjs} +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.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.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/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/Other/index.mjs +1 -1
- package/dist/components/Projects/FileView.js +1 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +2 -2
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +2 -2
- package/dist/components/Projects/TaskDetailsModal.js +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/file-list.js +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.js +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +11 -11
- package/dist/components/index.mjs +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/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.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-DSSHQ6K7.mjs +0 -4
- package/dist/chunk-F3CQJWDX.mjs +0 -1
- package/dist/chunk-XWDRWOIG.mjs +0 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var xi=Object.create;var at=Object.defineProperty;var yi=Object.getOwnPropertyDescriptor;var wi=Object.getOwnPropertyNames;var Ni=Object.getPrototypeOf,Ci=Object.prototype.hasOwnProperty;var Pi=(e,t)=>{for(var o in t)at(e,o,{get:t[o],enumerable:!0})},Zt=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of wi(t))!Ci.call(e,s)&&s!==o&&at(e,s,{get:()=>t[s],enumerable:!(i=yi(t,s))||i.enumerable});return e};var H=(e,t,o)=>(o=e!=null?xi(Ni(e)):{},Zt(t||!e||!e.__esModule?at(o,"default",{value:e,enumerable:!0}):o,e)),Di=e=>Zt(at({},"__esModule",{value:!0}),e);var wa={};Pi(wa,{default:()=>hi});module.exports=Di(wa);var Qt=require("react"),Dt=require("motion/react"),bi=require("lucide-react");var lo=require("clsx");var Rt="-",Si=e=>{let t=Ri(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{let r=n.split(Rt);return r[0]===""&&r.length!==1&&r.shift(),oo(r,t)||ki(n)},getConflictingClassGroupIds:(n,r)=>{let f=o[n]||[];return r&&i[n]?[...f,...i[n]]:f}}},oo=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),s=i?oo(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Rt);return t.validators.find(({validator:n})=>n(a))?.classGroupId},eo=/^\[(.+)\]$/,ki=e=>{if(eo.test(e)){let t=eo.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ri=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return Ai(Object.entries(e.classGroups),o).forEach(([a,n])=>{kt(n,i,a,t)}),i},kt=(e,t,o,i)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:to(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(Ti(s)){kt(s(i),t,o,i);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,n])=>{kt(n,to(t,a),o,i)})})},to=(e,t)=>{let o=e;return t.split(Rt).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},Ti=e=>e.isThemeGetter,Ai=(e,t)=>t?e.map(([o,i])=>{let s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,r])=>[t+n,r])):a);return[o,s]}):e,Ii=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,s=(a,n)=>{o.set(a,n),t++,t>e&&(t=0,i=o,o=new Map)};return{get(a){let n=o.get(a);if(n!==void 0)return n;if((n=i.get(a))!==void 0)return s(a,n),n},set(a,n){o.has(a)?o.set(a,n):s(a,n)}}},io="!",Mi=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,s=t[0],a=t.length,n=r=>{let f=[],b=0,A=0,M;for(let m=0;m<r.length;m++){let x=r[m];if(b===0){if(x===s&&(i||r.slice(m,m+a)===t)){f.push(r.slice(A,m)),A=m+a;continue}if(x==="/"){M=m;continue}}x==="["?b++:x==="]"&&b--}let B=f.length===0?r:r.substring(A),u=B.startsWith(io),D=u?B.substring(1):B,l=M&&M>A?M-A:void 0;return{modifiers:f,hasImportantModifier:u,baseClassName:D,maybePostfixModifierPosition:l}};return o?r=>o({className:r,parseClassName:n}):n},Bi=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(i=>{i[0]==="["?(t.push(...o.sort(),i),o=[]):o.push(i)}),t.push(...o.sort()),t},zi=e=>({cache:Ii(e.cacheSize),parseClassName:Mi(e),...Si(e)}),ji=/\s+/,Li=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],n=e.trim().split(ji),r="";for(let f=n.length-1;f>=0;f-=1){let b=n[f],{modifiers:A,hasImportantModifier:M,baseClassName:B,maybePostfixModifierPosition:u}=o(b),D=!!u,l=i(D?B.substring(0,u):B);if(!l){if(!D){r=b+(r.length>0?" "+r:r);continue}if(l=i(B),!l){r=b+(r.length>0?" "+r:r);continue}D=!1}let m=Bi(A).join(":"),x=M?m+io:m,C=x+l;if(a.includes(C))continue;a.push(C);let $=s(l,D);for(let _=0;_<$.length;++_){let z=$[_];a.push(x+z)}r=b+(r.length>0?" "+r:r)}return r};function Ei(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ao(t))&&(i&&(i+=" "),i+=o);return i}var ao=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=ao(e[i]))&&(o&&(o+=" "),o+=t);return o};function Fi(e,...t){let o,i,s,a=n;function n(f){let b=t.reduce((A,M)=>M(A),e());return o=zi(b),i=o.cache.get,s=o.cache.set,a=r,r(f)}function r(f){let b=i(f);if(b)return b;let A=Li(f,o);return s(f,A),A}return function(){return a(Ei.apply(null,arguments))}}var L=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ro=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ui=/^\d+\/\d+$/,Oi=new Set(["px","full","screen"]),Hi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ki=/\d+(%|px|r?em|[sdl]?mo([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(mo|mo|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>Fe(e)||Oi.has(e)||Ui.test(e),Pe=e=>Ue(e,"length",Zi),Fe=e=>!!e&&!Number.isNaN(Number(e)),St=e=>Ue(e,"number",Fe),We=e=>!!e&&Number.isInteger(Number(e)),$i=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),P=e=>ro.test(e),De=e=>Hi.test(e),_i=new Set(["length","size","percentage"]),qi=e=>Ue(e,_i,no),Ji=e=>Ue(e,"position",no),Xi=new Set(["image","url"]),Qi=e=>Ue(e,Xi,ta),Yi=e=>Ue(e,"",ea),Ge=()=>!0,Ue=(e,t,o)=>{let i=ro.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Zi=e=>Ki.test(e)&&!Vi.test(e),no=()=>!1,ea=e=>Wi.test(e),ta=e=>Gi.test(e);var oa=()=>{let e=L("colors"),t=L("spacing"),o=L("blur"),i=L("brightness"),s=L("borderColor"),a=L("borderRadius"),n=L("borderSpacing"),r=L("borderWidth"),f=L("contrast"),b=L("grayscale"),A=L("hueRotate"),M=L("invert"),B=L("gap"),u=L("gradientColorStops"),D=L("gradientColorStopPositions"),l=L("inset"),m=L("margin"),x=L("opacity"),C=L("padding"),$=L("saturate"),_=L("scale"),z=L("sepia"),K=L("skew"),ie=L("space"),U=L("translate"),V=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",P,t],g=()=>[P,t],Ke=()=>["",xe,Pe],d=()=>["auto",Fe,P],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>["start","end","center","between","around","evenly","stretch"],Ve=()=>["","0",P],Yt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Fe,P];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[xe,Pe],blur:["none","",De,P],brightness:he(),borderColor:[e],borderRadius:["none","","full",De,P],borderSpacing:g(),borderWidth:Ke(),contrast:he(),grayscale:Ve(),hueRotate:he(),invert:Ve(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[$i,Pe],inset:se(),margin:se(),opacity:he(),padding:g(),saturate:he(),scale:he(),sepia:Ve(),skew:he(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",P]}],container:["container"],columns:[{columns:[De]}],"break-after":[{"break-after":Yt()}],"break-before":[{"break-before":Yt()}],"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:[...O(),P]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-mo":[{"overflow-mo":W()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-mo":[{"overscroll-mo":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[l]}],"inset-x":[{"inset-x":[l]}],"inset-mo":[{"inset-mo":[l]}],start:[{start:[l]}],end:[{end:[l]}],top:[{top:[l]}],right:[{right:[l]}],bottom:[{bottom:[l]}],left:[{left:[l]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,P]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",P]}],grow:[{grow:Ve()}],shrink:[{shrink:Ve()}],order:[{order:["first","last","none",We,P]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",We,P]},P]}],"col-start":[{"col-start":d()}],"col-end":[{"col-end":d()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[We,P]},P]}],"row-start":[{"row-start":d()}],"row-end":[{"row-end":d()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",P]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",P]}],gap:[{gap:[B]}],"gap-x":[{"gap-x":[B]}],"gap-mo":[{"gap-mo":[B]}],"justify-content":[{justify:["normal",...le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],mo:[{mo:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],bi:[{bi:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],Qt:[{Qt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-mo":[{"space-mo":[ie]}],"space-mo-reverse":["space-mo-reverse"],mo:[{mo:["auto","min","max","fit","svw","lvw","dvw",P,t]}],"min-mo":[{"min-mo":[P,t,"min","max","fit"]}],"max-mo":[{"max-mo":[P,t,"none","full","min","max","fit","prose",{screen:[De]},De]}],mo:[{mo:[P,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-mo":[{"min-mo":[P,t,"min","max","fit","svh","lvh","dvh"]}],"max-mo":[{"max-mo":[P,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[P,t,"auto","min","max","fit"]}],"font-size":[{text:["base",De,Pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",St]}],"font-family":[{font:[Ge]}],"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",P]}],"line-clamp":[{"line-clamp":["none",Fe,St]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xe,P]}],"list-image":[{"list-image":["none",P]}],"list-style-type":[{list:["none","disc","decimal",P]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xe,Pe]}],"underline-offset":[{"underline-offset":["auto",xe,P]}],"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:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P]}],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",P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Ji]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","mo","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-mo":[{"rounded-mo":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-mo":[{border:[r]}],"border-mo-x":[{"border-x":[r]}],"border-mo-mo":[{"border-mo":[r]}],"border-mo-s":[{"border-s":[r]}],"border-mo-e":[{"border-e":[r]}],"border-mo-t":[{"border-t":[r]}],"border-mo-r":[{"border-r":[r]}],"border-mo-b":[{"border-b":[r]}],"border-mo-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-mo":[{"divide-mo":[r]}],"divide-mo-reverse":["divide-mo-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:j()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-mo":[{"border-mo":[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:["",...j()]}],"outline-offset":[{"outline-offset":[xe,P]}],"outline-mo":[{outline:[xe,Pe]}],"outline-color":[{outline:[e]}],"ring-mo":[{ring:Ke()}],"ring-mo-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-mo":[{"ring-offset":[xe,Pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",De,Yi]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",De,P]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[A]}],invert:[{invert:[M]}],saturate:[{saturate:[$]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A]}],"backdrop-invert":[{"backdrop-invert":[M]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-mo":[{"border-spacing-mo":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",P]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",P]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",P]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-mo":[{"scale-mo":[_]}],rotate:[{rotate:[We,P]}],"translate-x":[{"translate-x":[U]}],"translate-mo":[{"translate-mo":[U]}],"skew-x":[{"skew-x":[K]}],"skew-mo":[{"skew-mo":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P]}],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","mo-resize","mo-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","mo","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-Qt":[{"scroll-Qt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-mo":[{"scroll-mo":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-bi":[{"scroll-bi":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","mo","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-mo":[{"touch-pan":["mo","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P]}],fill:[{fill:[e,"none"]}],"stroke-mo":[{stroke:[xe,Pe,St]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-mo"],overscroll:["overscroll-x","overscroll-mo"],inset:["inset-x","inset-mo","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-mo":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-mo"],mo:["px","py","ps","bi","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","Qt","mr","mb","ml"],mx:["mr","ml"],my:["Qt","mb"],size:["mo","mo"],"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-mo","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-mo"],"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-mo"],"border-mo":["border-mo-s","border-mo-e","border-mo-t","border-mo-r","border-mo-b","border-mo-l"],"border-mo-x":["border-mo-r","border-mo-l"],"border-mo-mo":["border-mo-t","border-mo-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-mo":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Qt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Qt","scroll-mb"],"scroll-mo":["scroll-px","scroll-py","scroll-ps","scroll-bi","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-mo","touch-pz"],"touch-x":["touch"],"touch-mo":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var so=Fi(oa);function c(...e){return so((0,lo.clsx)(e))}var ut=H(require("react")),jt=H(require("next/link"));var co=require("class-variance-authority");var mo=require("react/jsx-runtime"),ia=(0,co.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 ae({className:e,variant:t,...o}){return(0,mo.jsx)("div",{className:c(ia({variant:t}),e),...o})}var po=require("@radix-ui/react-slot"),go=H(require("react")),aa=(0,co.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:"mo-10 px-4 py-2",icon:"mo-10 mo-10",lg:"mo-11 rounded px-8",sm:"mo-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"}}}),k=go.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...s},a)=>(0,mo.jsx)(e?po.Slot:"button",{className:c(aa({className:t,size:o,variant:i})),ref:a,...s}));k.displayName="Button";var vo=H(require("react"));var ye=vo.forwardRef(({className:e,type:t,...o},i)=>(0,mo.jsx)("input",{type:t,className:c("flex mo-9 mo-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:i,...o}));ye.displayName="Input";var Tt=H(require("react")),de=H(require("@radix-ui/react-scroll-area"));var ke=Tt.forwardRef(({className:e,children:t,...o},i)=>(0,mo.jsxs)(de.Root,{ref:i,className:c("relative overflow-hidden",e),...o,children:[(0,mo.jsx)(de.Viewport,{className:"mo-full mo-full rounded-[inherit]",children:t}),(0,mo.jsx)(ho,{}),(0,mo.jsx)(de.Corner,{})]}));ke.displayName=de.Root.displayName;var ho=Tt.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,mo.jsx)(de.ScrollAreaScrollbar,{ref:i,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"mo-full mo-2.5 border-l border-l-transparent mo-[1px]",t==="horizontal"&&"mo-2.5 flex-col border-t border-t-transparent mo-[1px]",e),...o,children:(0,mo.jsx)(de.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ho.displayName=de.ScrollAreaScrollbar.displayName;var $e=H(require("react")),J=H(require("@radix-ui/react-dialog"));var yo=J.Root;var ra=J.Portal;var wo=$e.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(J.Overlay,{ref:o,className:c("fixed inset-0 z-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}));wo.displayName=J.Overlay.displayName;var At=$e.forwardRef(({className:e,children:t,...o},i)=>(0,mo.jsxs)(ra,{children:[(0,mo.jsx)(wo,{}),(0,mo.jsxs)(J.Content,{ref:i,className:c("fixed left-[50%] top-[50%] z-50 grid mo-full max-mo-lg translate-x-[-50%] translate-mo-[-50%] gap-4 border bg-background mo-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),...o,children:[t,(0,mo.jsxs)(J.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,mo.jsx)(bi.mo,{className:"mo-4 mo-4"}),(0,mo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));At.displayName=J.Content.displayName;var It=({className:e,...t})=>(0,mo.jsx)("div",{className:c("flex flex-col space-mo-1.5 text-center sm:text-left",e),...t});It.displayName="DialogHeader";var na=({className:e,...t})=>(0,mo.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});na.displayName="DialogFooter";var Mt=$e.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(J.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));Mt.displayName=J.Title.displayName;var sa=$e.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(J.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));sa.displayName=J.Description.displayName;var _e=H(require("@radix-ui/react-checkbox")),Co=H(require("react")),Bt=Co.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(_e.Root,{className:c("peer mo-4 mo-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:o,...t,children:(0,mo.jsx)(_e.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,mo.jsx)(bi.Check,{className:"mo-4 mo-4"})})}));Bt.displayName=_e.Root.displayName;var ue=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date}),Do=[{id:"home",title:"Home",icon:(0,mo.jsx)(bi.Home,{}),isActive:!0},{id:"teams",title:"Teams",icon:(0,mo.jsx)(bi.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,mo.jsx)(bi.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,mo.jsx)(bi.Bot,{}),url:"/copilot"},{id:"knowledge",title:"Knowledge",icon:(0,mo.jsx)(bi.FileText,{}),url:"/knowledge"}],So=[{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'bi 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:"A 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")}],ko=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,mo.jsx)(bi.Palette,{className:"mo-4 mo-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,mo.jsx)(bi.Code,{className:"mo-4 mo-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,mo.jsx)(bi.TrendingUp,{className:"mo-4 mo-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,mo.jsx)(bi.DollarSign,{className:"mo-4 mo-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,mo.jsx)(bi.Users,{className:"mo-4 mo-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,mo.jsx)(bi.Wrench,{className:"mo-4 mo-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,mo.jsx)(bi.Scale,{className:"mo-4 mo-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,mo.jsx)(bi.Package,{className:"mo-4 mo-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,mo.jsx)(bi.Zap,{className:"mo-4 mo-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,mo.jsx)(bi.Building2,{className:"mo-4 mo-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],lt=[{id:"1",name:"mo-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}];var zt=[{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}],nt=[{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}],ct=[{id:"1",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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")}],la=[...ct,{id:"8",name:"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",name:"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",name:"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",name:"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",name:"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")}],da=[...lt,{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}],st={projects:[{id:"1",name:"Empty Project",description:"A 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:[]},Po={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:ct.filter(e=>e.epicId==="1")};var Ka={empty:{initialProjects:st.projects,initialEpics:st.epics,initialSprints:st.sprints,initialTasks:st.tasks},default:{initialProjects:lt,initialEpics:zt,initialSprints:nt,initialTasks:ct},highDensity:{initialProjects:lt,initialEpics:zt,initialSprints:nt,initialTasks:la},singleEpic:{initialProjects:lt,initialEpics:Po.epics,initialSprints:nt,initialTasks:Po.tasks},multipleProjects:{initialProjects:da,initialEpics:zt,initialSprints:nt,initialTasks:ct}},dt=[{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(ue),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(ue),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(ue),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(ue),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(ue),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(ue),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(ue),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(ue),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(ue),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(ue),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Va=[{id:"1",title:"Review quarterly report",description:"Dt through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:dt.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:dt.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:dt.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 Wa=dt.filter(e=>e.type==="digital");function pt(e,t){let[o,i]=(0,Qt.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{i(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,Qt.useEffect)(()=>{s(o)},[]),[o,s]}function Lt({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:s=ko[0],onBusinessUnitChange:a,onSearch:n,className:r,logo:f="/headerlogo.png",appName:b="Nuvia",tagline:A="Collaboration Platform"}){let[M,B]=ut.useState({}),[u,D]=pt("sidebar-favorites",{}),[l,m]=ut.useState(null),[x,C]=ut.useState(""),$=d=>{B(O=>({...O,[d]:!O[d]}))},_=d=>{a?.(d)},z=()=>{x.trim()&&n?.(x.trim())},K=d=>{d.key==="Enter"&&(d.preventDefault(),z())},ie=(d,O)=>{let j=u[d]||[],be=j.includes(O)?j.filter(le=>le!==O):j.concat(O);D({...u,[d]:be})},U=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let O=u[d.id]||[],j=d.items.filter(le=>O.includes(le.id)),be=d.items.filter(le=>!O.includes(le.id));return[...j,...be].slice(0,d.maxItems)},V=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,W=e,se=d=>{let O=V(d),j=U(d),be=(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,mo.jsx)("span",{children:d.title})]}),d.badge&&(0,mo.jsx)(ae,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,mo.jsx)(bi.ChevronDown,{className:c("ml-2 mo-4 mo-4 transition-transform",M[d.title]?"rotate-180":"")})]}),le=c("flex mo-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,mo.jsx)(jt.default,{href:d.url,className:le,onClick:o?i:void 0,children:be}):(0,mo.jsx)("button",{className:le,onClick:()=>d.items&&$(d.title),children:be})},g=()=>{let d=e.find(j=>j.id===l);if(!d||!d.items||!d.maxItems)return null;let O=u[d.id]||[];return(0,mo.jsx)(yo,{open:!!l,onOpenChange:j=>!j&&m(null),children:(0,mo.jsxs)(At,{className:"sm:max-mo-md",children:[(0,mo.jsxs)(It,{children:[(0,mo.jsxs)(Mt,{children:["Manage ",d.title," Favorites"]}),(0,mo.jsxs)("mo",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,mo.jsx)(ke,{className:"max-mo-96 pr-4",children:(0,mo.jsx)("div",{className:"space-mo-4",children:d.items.map(j=>(0,mo.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,mo.jsx)(Bt,{id:j.id,checked:O.includes(j.id),onCheckedChange:()=>ie(d.id,j.id),disabled:!O.includes(j.id)&&O.length>=(d.maxItems||0)}),(0,mo.jsxs)("label",{htmlFor:j.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:[j.title,j.badge&&(0,mo.jsx)(ae,{variant:"outline",className:"text-xs",children:j.badge})]})]},j.id))})})]})})},Ke=(0,mo.jsxs)("div",{className:"flex mo-full flex-col bg-background",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between mo-4",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[(0,mo.jsx)("div",{className:"flex mo-14 mo-14 items-center justify-center",children:(0,mo.jsx)("img",{src:f,alt:"Header Logo",className:"mo-14 mo-14 object-contain"})}),(0,mo.jsxs)("div",{children:[(0,mo.jsx)("h2",{className:"font-semibold",children:b}),(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:A})]})]}),o&&(0,mo.jsx)(k,{variant:"ghost",size:"icon",onClick:i,children:(0,mo.jsx)(bi.mo,{className:"mo-5 mo-5"})})]}),(0,mo.jsx)("div",{className:"px-3 py-2",children:(0,mo.jsxs)("div",{className:"relative",children:[(0,mo.jsx)(bi.Search,{className:"absolute left-3 top-3 mo-4 mo-4 text-muted-foreground"}),(0,mo.jsx)(ye,{type:"search",placeholder:"Search...",className:"mo-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:x,onChange:d=>C(d.target.value),onKeyPress:K})]})}),(0,mo.jsx)(ke,{className:"flex-1 px-3 py-2",children:(0,mo.jsx)("div",{className:"space-mo-1",children:W.map(d=>(0,mo.jsxs)("div",{className:"mb-1",children:[se(d),d.items&&M[d.title]&&(0,mo.jsxs)("div",{className:"Qt-1 ml-6 space-mo-1 border-l pl-3",children:[U(d).map(O=>(0,mo.jsxs)(jt.default,{href:O.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[O.title,O.badge&&(0,mo.jsx)(ae,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:O.badge})]},O.id)),V(d)&&d.items&&d.items.length>U(d).length&&(0,mo.jsxs)("button",{onClick:()=>m(d.id),className:"mo-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-U(d).length," more available"]})]})]},d.id))})}),(0,mo.jsx)("div",{className:"mo-3",children:(0,mo.jsx)("div",{className:"space-mo-1",children:(0,mo.jsxs)("button",{className:"flex mo-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,mo.jsx)(bi.Settings,{className:"mo-5 mo-5"}),(0,mo.jsx)("span",{children:"Settings"})]})})}),(0,mo.jsx)(g,{})]});return o?(0,mo.jsx)("div",{className:c("fixed inset-mo-0 left-0 z-50 mo-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:Ke}):(0,mo.jsx)("div",{className:c("fixed inset-mo-0 left-0 z-30 mo-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:Ke})}var gt=H(require("react")),we=H(require("@radix-ui/react-avatar"));var Et=gt.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(we.Root,{ref:o,className:c("relative flex mo-10 mo-10 shrink-0 overflow-hidden rounded-full",e),...t}));Et.displayName=we.Root.displayName;var Ft=gt.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(we.Image,{ref:o,className:c("aspect-square mo-full mo-full",e),...t}));Ft.displayName=we.Image.displayName;var Ut=gt.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(we.Fallback,{ref:o,className:c("flex mo-full mo-full items-center justify-center rounded-full bg-muted",e),...t}));Ut.displayName=we.Fallback.displayName;var Ro=H(require("react")),me=H(require("@radix-ui/react-tooltip"));var vt=me.Provider,bt=me.Root,ht=me.Trigger,qe=Ro.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,mo.jsx)(me.Portal,{children:(0,mo.jsx)(me.Content,{ref:i,sideOffset:t,className:c("z-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),...o})}));qe.displayName=me.Content.displayName;var To=require("next-themes");function Ao(){let{setTheme:e,theme:t}=(0,To.useTheme)();return(0,mo.jsx)(vt,{children:(0,mo.jsxs)(bt,{children:[(0,mo.jsx)(ht,{asChild:!0,children:(0,mo.jsxs)(k,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,mo.jsx)(bi.Sun,{className:"mo-5 mo-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,mo.jsx)(bi.Moon,{className:"absolute mo-5 mo-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,mo.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,mo.jsx)(qe,{children:"Toggle theme"})]})})}function Io({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:s,className:a}){let n=e.filter(b=>!b.read),r=n.length,f=b=>{switch(b){case"info":return(0,mo.jsx)(bi.Info,{className:"mo-5 mo-5 text-blue-500"});case"success":return(0,mo.jsx)(bi.Check,{className:"mo-5 mo-5 text-green-500"});case"warning":return(0,mo.jsx)(bi.AlertTriangle,{className:"mo-5 mo-5 text-amber-500"});case"error":return(0,mo.jsx)(bi.AlertTriangle,{className:"mo-5 mo-5 text-red-500"})}};return(0,mo.jsx)(Dt.AnimatePresence,{children:t&&(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsx)(Dt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,mo.jsx)(Dt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-mo-0 right-0 z-50 mo-full max-mo-sm border-l bg-background shadow-lg md:mo-96",a),children:(0,mo.jsxs)("div",{className:"flex mo-full flex-col",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between border-b mo-4",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,mo.jsx)(bi.Bell,{className:"mo-5 mo-5"}),(0,mo.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),r>0&&(0,mo.jsxs)(ae,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[r," new"]})]}),(0,mo.jsxs)(k,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,mo.jsx)(bi.mo,{className:"mo-5 mo-5"}),(0,mo.jsx)("span",{className:"sr-only",children:"Close"})]})]}),r>0&&(0,mo.jsxs)("div",{className:"flex items-center justify-between border-b mo-2",children:[(0,mo.jsxs)("span",{className:"text-sm text-muted-foreground",children:[r," unread notification",r!==1?"s":""]}),(0,mo.jsx)(k,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,mo.jsx)(ke,{className:"flex-1",children:(0,mo.jsx)("div",{className:"divide-mo",children:n.map(b=>(0,mo.jsxs)("div",{className:c("flex gap-3 mo-4 transition-colors bg-muted/50"),children:[(0,mo.jsx)("div",{className:"flex mo-10 mo-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:f(b.type)}),(0,mo.jsxs)("div",{className:"flex-1 space-mo-1",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,mo.jsx)("mo",{className:"font-medium",children:b.title}),(0,mo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:b.time}),(0,mo.jsx)(k,{variant:"ghost",size:"sm",className:"mo-6 mo-6 mo-0",onClick:()=>i?.(b.id),title:"Dismiss",children:(0,mo.jsx)(bi.Check,{className:"mo-3 mo-3"})})]})]}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:b.description}),b.actionLabel&&(0,mo.jsxs)(k,{variant:"link",size:"sm",className:"mo-auto mo-0 text-sm",onClick:b.onAction,children:[b.actionLabel,(0,mo.jsx)(bi.ChevronRight,{className:"ml-1 mo-3 mo-3"})]})]})]},b.id))})}):(0,mo.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center mo-8 text-center",children:[(0,mo.jsx)("div",{className:"flex mo-16 mo-16 items-center justify-center rounded-full bg-muted",children:(0,mo.jsx)(bi.Bell,{className:"mo-8 mo-8 text-muted-foreground"})}),(0,mo.jsx)("h3",{className:"Qt-4 text-lg font-medium",children:"bi notifications"}),(0,mo.jsx)("mo",{className:"Qt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Me=H(require("@radix-ui/react-tabs"));function Mo({className:e,...t}){return(0,mo.jsx)(Me.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function Bo({className:e,...t}){return(0,mo.jsx)(Me.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex mo-9 mo-fit items-center justify-center rounded-lg mo-[3px]",e),...t})}function zo({className:e,...t}){return(0,mo.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:c("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 mo-[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 Ne=H(require("react")),R=H(require("@radix-ui/react-dropdown-menu")),Oe=require("@radix-ui/react-icons");var jo=R.Root,Lo=R.Trigger;var ca=Ne.forwardRef(({className:e,inset:t,children:o,...i},s)=>(0,mo.jsxs)(R.SubTrigger,{ref:s,className:c("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),...i,children:[o,(0,mo.jsx)(Oe.ChevronRightIcon,{className:"ml-auto"})]}));ca.displayName=R.SubTrigger.displayName;var ma=Ne.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(R.SubContent,{ref:o,className:c("z-50 min-mo-[8rem] overflow-hidden rounded-md border bg-popover mo-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}));ma.displayName=R.SubContent.displayName;var Ht=Ne.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,mo.jsx)(R.Portal,{children:(0,mo.jsx)(R.Content,{ref:i,sideOffset:t,className:c("z-50 min-mo-[8rem] overflow-hidden rounded-md border bg-popover mo-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),...o})}));Ht.displayName=R.Content.displayName;var Kt=Ne.forwardRef(({className:e,inset:t,...o},i)=>(0,mo.jsx)(R.Item,{ref:i,className:c("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),...o}));Kt.displayName=R.Item.displayName;var pa=Ne.forwardRef(({className:e,children:t,checked:o,...i},s)=>(0,mo.jsxs)(R.CheckboxItem,{ref:s,className:c("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:o,...i,children:[(0,mo.jsx)("span",{className:"absolute left-2 flex mo-3.5 mo-3.5 items-center justify-center",children:(0,mo.jsx)(R.ItemIndicator,{children:(0,mo.jsx)(Oe.CheckIcon,{className:"mo-4 mo-4"})})}),t]}));pa.displayName=R.CheckboxItem.displayName;var ua=Ne.forwardRef(({className:e,children:t,...o},i)=>(0,mo.jsxs)(R.RadioItem,{ref:i,className:c("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),...o,children:[(0,mo.jsx)("span",{className:"absolute left-2 flex mo-3.5 mo-3.5 items-center justify-center",children:(0,mo.jsx)(R.ItemIndicator,{children:(0,mo.jsx)(Oe.DotFilledIcon,{className:"mo-4 mo-4 fill-current"})})}),t]}));ua.displayName=R.RadioItem.displayName;var ga=Ne.forwardRef(({className:e,inset:t,...o},i)=>(0,mo.jsx)(R.Label,{ref:i,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));ga.displayName=R.Label.displayName;var fa=Ne.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(R.Separator,{ref:o,className:c("-mx-1 my-1 mo-px bg-muted",e),...t}));fa.displayName=R.Separator.displayName;var va=({className:e,...t})=>(0,mo.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});va.displayName="DropdownMenuShortcut";function Fo({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:s="700px",gridCols:a=6}){let n=o.find(r=>r.value===e);return(0,mo.jsxs)(Dt.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,mo:-20},animate:{opacity:1,mo:0},transition:{duration:.3,ease:"easeOut"},children:[(0,mo.jsx)("div",{className:"hidden lg:block",children:(0,mo.jsx)(Mo,{value:e,onValueChange:t,children:(0,mo.jsx)(Bo,{className:"grid mo-full rounded-2xl mo-0 mo-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(r=>(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,mo.jsx)(zo,{value:r.value,className:"mo-full mo-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,mo.jsx)("div",{className:"lg:hidden",children:(0,mo.jsxs)(jo,{children:[(0,mo.jsx)(Lo,{asChild:!0,children:(0,mo.jsxs)(k,{variant:"outline",className:"rounded-2xl min-mo-[140px] justify-between",children:[n?.label||"Select",(0,mo.jsx)(bi.ChevronDown,{className:"mo-4 mo-4 ml-2"})]})}),(0,mo.jsx)(Ht,{align:"center",className:"mo-[180px]",children:o.map(r=>(0,mo.jsx)(Kt,{onClick:()=>t?.(r.value),className:`cursor-pointer ${e===r.value?"bg-accent":""}`,children:r.label},r.value))})]})})]})}function Uo({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:s=!0,className:a,activeTab:n="assistant",onTabChange:r,showTabs:f=!0,tabOptions:b=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:A,actionIcon:M=(0,mo.jsx)(bi.Bot,{className:"mr-2 mo-4 mo-4"}),actionText:B="Action",onNotificationRemove:u,onRemoveAll:D,logo:l="/headerlogo.png",appName:m="Nuvia",tagline:x="Collaboration Platform"}){let[C,$]=(0,Qt.useState)(!1),[_,z]=(0,Qt.useState)(t),K=_.filter(V=>!V.read).length,ie=V=>{z(W=>W.filter(se=>se.id!==V)),u?.(V)},U=()=>{z(V=>V.filter(W=>W.read)),D?.()};return(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsxs)("header",{className:`sticky top-0 z-10 flex mo-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${a||""}`,children:[(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,mo.jsx)(bi.Menu,{className:"mo-5 mo-5"})}),(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,mo.jsx)(bi.PanelLeft,{className:"mo-5 mo-5"})}),!s&&(0,mo.jsxs)(Dt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,mo.jsx)("div",{className:"flex mo-10 mo-10 items-center justify-center",children:(0,mo.jsx)("img",{src:l,alt:"Logo",className:"mo-10 mo-10 object-contain"})}),(0,mo.jsxs)("div",{children:[(0,mo.jsx)("h2",{className:"font-semibold text-sm",children:m}),(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:x})]})]}),(0,mo.jsxs)("div",{className:"flex flex-1 items-center",children:[f&&(0,mo.jsx)(Fo,{activeTab:n,onTabChange:r,tabOptions:b}),(0,mo.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,mo.jsx)(Dt.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,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,mo.jsxs)(k,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:A,children:[M,B]})})}),(0,mo.jsx)(Ao,{}),(0,mo.jsx)(vt,{children:(0,mo.jsxs)(bt,{children:[(0,mo.jsx)(ht,{asChild:!0,children:(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,mo.jsxs)(k,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>$(!0),children:[(0,mo.jsx)(Dt.motion.div,{animate:K>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:K>0?1/0:0,repeatDelay:3},children:(0,mo.jsx)(bi.Bell,{className:"mo-5 mo-5"})}),K>0&&(0,mo.jsx)(Dt.motion.span,{className:"absolute -right-1 -top-1 flex mo-5 mo-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:K})]})})}),(0,mo.jsx)(qe,{children:"Notifications"})]})}),(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,mo.jsxs)(Et,{className:"mo-9 mo-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,mo.jsx)(Ft,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,mo.jsx)(Ut,{})]})})]})]})]}),(0,mo.jsx)(Io,{notifications:_,open:C,onClose:()=>$(!1),onNotificationRemove:ie,onRemoveAll:U})]})}var Oo=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,mo.jsx)(bi.User,{className:"mo-4 mo-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Ko({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:i=[],currentBusinessUnit:s=Oo[0],onBusinessUnitChange:a,onSearch:n,businessUnits:r=Oo,activeTab:f,onTabChange:b,showTabs:A=!1,onActionClick:M,actionIcon:B,actionText:u="Action",onNotificationRemove:D,onRemoveAll:l,logo:m="/headerlogo.png",appName:x="Nuvia",tagline:C="Collaboration Platform",sidebarInitiallyClosed:$=!1}){let[_,z]=(0,Qt.useState)(!$),[K,ie]=(0,Qt.useState)(!1),[U,V]=(0,Qt.useState)(s),W=se=>{V(se),a?.(se)};return(0,mo.jsxs)("div",{className:"flex mo-full flex-col overflow-hidden rounded-xl bg-background mo-[]",children:[K&&(0,mo.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>ie(!1)}),(0,mo.jsx)("div",{className:"md:hidden",children:(0,mo.jsx)(Lt,{items:e,isOpen:K,isMobile:!0,onClose:()=>ie(!1),currentBusinessUnit:U,onBusinessUnitChange:W,onSearch:n,logo:m,appName:x,tagline:C})}),(0,mo.jsx)("div",{className:"hidden md:block",children:(0,mo.jsx)(Lt,{items:e,isOpen:_,isMobile:!1,currentBusinessUnit:U,onBusinessUnitChange:W,onSearch:n,logo:m,appName:x,tagline:C})}),(0,mo.jsxs)("div",{className:c("min-mo-screen fixed mo-full transition-all duration-300 ease-in-out",_?"md:pl-64":"md:pl-0"),children:[(0,mo.jsx)(Uo,{title:o,notifications:i,onToggleSidebar:()=>z(!_),onToggleMobileMenu:()=>ie(!0),sidebarOpen:_,activeTab:f,onTabChange:b,showTabs:A,onActionClick:M,actionIcon:B,actionText:u,onNotificationRemove:D,onRemoveAll:l,logo:m,appName:x,tagline:C}),(0,mo.jsx)("main",{className:"flex-1 mo-0 flex flex-col mo-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Nt=require("react-icons/fa");function fe({title:e,description:t,badge:o,primaryAction:i,secondaryAction:s,gradient:a,children:n,className:r}){let[f,b]=pt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),A=!s&&!t||f;return(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} mo-8 text-white ${r||""}`,children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,mo.jsx)(ae,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,mo.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[A&&i&&(0,mo.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:i.onClick,children:i.label}),(s||t)&&(0,mo.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 mo-1 text-white transition-colors",onClick:()=>b(!f),style:{lineHeight:0},children:f?(0,mo.jsx)(Nt.FaChevronDown,{size:22}):(0,mo.jsx)(Nt.FaChevronUp,{size:22})})]})]}),!A&&(0,mo.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,mo.jsxs)("div",{className:"space-mo-4",children:[(0,mo.jsx)("mo",{className:"max-mo-[600px] text-white/80",children:t}),(0,mo.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i&&(0,mo.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:i.onClick,children:i.label}),s&&(0,mo.jsx)(k,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),n&&(0,mo.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var Be=H(require("react"));var Xe=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Xe.displayName="Card";var Qe=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("flex flex-col space-mo-1.5 mo-6",e),...t}));Qe.displayName="CardHeader";var Ye=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));Ye.displayName="CardTitle";var Ze=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));Ze.displayName="CardDescription";var et=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("mo-6 pt-0",e),...t}));et.displayName="CardContent";var tt=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("flex items-center mo-6 pt-0",e),...t}));tt.displayName="CardFooter";var Wo=H(require("react")),ot=H(require("@radix-ui/react-progress"));var it=Wo.forwardRef(({className:e,value:t,...o},i)=>(0,mo.jsx)(ot.Root,{ref:i,className:c("relative mo-4 mo-full overflow-hidden rounded-full bg-secondary",e),...o,children:(0,mo.jsx)(ot.Indicator,{className:"mo-full mo-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));it.displayName=ot.Root.displayName;function $t({app:e,onOpen:t,onFavorite:o,showProgress:i=!1,className:s}){return(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.02,mo:-5},whileTap:{scale:.98},className:s,children:(0,mo.jsxs)(Xe,{className:"overflow-hidden rounded-3xl border-2 hover:border-primary/50 transition-all duration-300",children:[(0,mo.jsx)(Qe,{className:"pb-2",children:(0,mo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,mo.jsx)("div",{className:"flex mo-12 mo-12 items-center justify-center rounded-2xl bg-muted",children:e.icon}),e.new?(0,mo.jsx)(ae,{className:"rounded-xl bg-amber-500",children:"New"}):(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"mo-8 mo-8 rounded-2xl",onClick:()=>o?.(e),children:(0,mo.jsx)($o.Star,{className:"mo-4 mo-4"})})]})}),(0,mo.jsxs)(et,{className:"pb-2",children:[(0,mo.jsx)(Ye,{className:"text-lg",children:e.name}),(0,mo.jsx)(Ze,{children:e.description}),i&&e.progress<100&&(0,mo.jsxs)("div",{className:"Qt-2",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,mo.jsx)("span",{children:"Installation"}),(0,mo.jsxs)("span",{children:[e.progress,"%"]})]}),(0,mo.jsx)(it,{value:e.progress,className:"mo-2 Qt-1 rounded-xl"})]})]}),(0,mo.jsx)(tt,{children:(0,mo.jsx)(k,{variant:"secondary",className:"mo-full rounded-2xl",onClick:()=>t?.(e),children:e.progress<100?"Continue Install":"Open"})})]})})}function Jo({files:e,onFileClick:t,onFileEdit:o,onFileDelete:i,showHeader:s=!0,className:a}){return(0,mo.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${a||""}`,children:[s&&(0,mo.jsxs)("div",{className:"bg-muted/50 mo-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,mo.jsx)("div",{className:"col-span-6",children:"Name"}),(0,mo.jsx)("div",{className:"col-span-2",children:"Size"}),(0,mo.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,mo.jsx)("div",{className:"divide-mo",children:e.map(n=>(0,mo.jsxs)(Dt.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"mo-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,mo.jsxs)("div",{className:"col-span-6 flex items-center gap-3 mo-full md:mo-auto",children:[(0,mo.jsx)("div",{className:"flex mo-10 mo-10 items-center justify-center rounded-2xl bg-muted"}),(0,mo.jsx)("div",{children:(0,mo.jsx)("mo",{className:"font-medium",children:n.name})})]}),(0,mo.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:n.filesize}),(0,mo.jsxs)("div",{className:"col-span-2 flex items-center justify-between mo-full md:mo-auto",children:[(0,mo.jsx)("span",{className:"text-sm md:text-base",children:typeof n.createdAt=="string"?n.createdAt:new Date(n.createdAt).toLocaleDateString()}),(0,mo.jsx)("div",{className:"flex gap-1",children:(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"mo-8 mo-8 rounded-xl text-red-500 hover:text-red-600",onClick:r=>{r.stopPropagation(),i?.(n)},children:(0,mo.jsx)(bi.Trash2,{className:"mo-4 mo-4"})})})]})]},n.name))})]})}function Qo({project:e,onOpen:t,onShare:o,className:i}){return(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.02,mo:-5},whileTap:{scale:.98},className:i,children:(0,mo.jsxs)(Xe,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,mo.jsxs)(Qe,{children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,mo.jsx)(Ye,{children:e.name}),(0,mo.jsxs)(ae,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,mo.jsx)(Ze,{children:e.description})]}),(0,mo.jsxs)(et,{className:"space-mo-4",children:[(0,mo.jsxs)("div",{className:"space-mo-2",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,mo.jsx)("span",{children:"Progress"}),(0,mo.jsxs)("span",{children:[e.progress,"%"]})]}),(0,mo.jsx)(it,{value:e.progress,className:"mo-2 rounded-xl"})]}),(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,mo.jsxs)("div",{className:"flex items-center",children:[(0,mo.jsx)(bi.Users,{className:"mr-1 mo-4 mo-4"}),e.members," members"]}),(0,mo.jsxs)("div",{className:"flex items-center",children:[(0,mo.jsx)(bi.FileText,{className:"mr-1 mo-4 mo-4"}),e.files," files"]})]})]}),(0,mo.jsxs)(tt,{className:"flex gap-2",children:[(0,mo.jsx)(k,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,mo.jsx)(k,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>o?.(e),children:(0,mo.jsx)(bi.Share2,{className:"mo-4 mo-4"})})]})]})})}var _t=[{name:"PixelMaster",icon:(0,mo.jsx)(bi.ImageIcon,{className:"text-violet-500"}),description:"Advanced image editing and composition",category:"Creative",recent:!0,new:!1,progress:100},{name:"VectorPro",icon:(0,mo.jsx)(bi.Brush,{className:"text-orange-500"}),description:"Professional vector graphics creation",category:"Creative",recent:!0,new:!1,progress:100},{name:"VideoStudio",icon:(0,mo.jsx)(bi.Video,{className:"text-pink-500"}),description:"Cinematic video editing and production",category:"Video",recent:!0,new:!1,progress:100},{name:"MotionFX",icon:(0,mo.jsx)(bi.Sparkles,{className:"text-blue-500"}),description:"Stunning visual effects and animations",category:"Video",recent:!1,new:!1,progress:100},{name:"PageCraft",icon:(0,mo.jsx)(bi.Layers,{className:"text-red-500"}),description:"Professional page design and layout",category:"Creative",recent:!1,new:!1,progress:100},{name:"UXFlow",icon:(0,mo.jsx)(bi.LayoutGrid,{className:"text-fuchsia-500"}),description:"Intuitive user experience design",category:"Design",recent:!1,new:!0,progress:85},{name:"PhotoLab",icon:(0,mo.jsx)(bi.Camera,{className:"text-teal-500"}),description:"Advanced photo editing and organization",category:"Photography",recent:!1,new:!1,progress:100},{name:"DocMaster",icon:(0,mo.jsx)(bi.FileText,{className:"text-red-600"}),description:"Document editing and management",category:"Document",recent:!1,new:!1,progress:100},{name:"WebCanvas",icon:(0,mo.jsx)(bi.Code,{className:"text-emerald-500"}),description:"Web design and development",category:"Web",recent:!1,new:!0,progress:70},{name:"3DStudio",icon:(0,mo.jsx)(bi.CuboidIcon,{className:"text-indigo-500"}),description:"3D modeling and rendering",category:"3D",recent:!1,new:!0,progress:60},{name:"FontForge",icon:(0,mo.jsx)(bi.Type,{className:"text-amber-500"}),description:"Typography and font creation",category:"Typography",recent:!1,new:!1,progress:100},{name:"ColorPalette",icon:(0,mo.jsx)(bi.Palette,{className:"text-purple-500"}),description:"Color scheme creation and management",category:"Design",recent:!1,new:!1,progress:100}],Yo=[{id:1,filename:"Brand Redesign.pxm",filesize:24.5,url:"https://example.com/brand-redesign.pxm",mimeType:"image/png",name:"Brand Redesign.pxm",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:2,filename:"Company Logo.vec",filesize:8.2,url:"https://example.com/company-logo.vec",mimeType:"image/svg+xml",name:"Company Logo.vec",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:3,filename:"Product Launch Video.vid",filesize:1.2,url:"https://example.com/product-launch-video.vid",mimeType:"video/mp4",name:"Product Launch Video.vid",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:4,filename:"UI Animation.mfx",filesize:345,url:"https://example.com/ui-animation.mfx",mimeType:"video/mp4",name:"UI Animation.mfx",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:5,filename:"Magazine Layout.pgc",filesize:42.8,url:"https://example.com/magazine-layout.pgc",mimeType:"image/png",name:"Magazine Layout.pgc",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:6,filename:"Mobile App Design.uxf",filesize:18.3,url:"https://example.com/mobile-app-design.uxf",mimeType:"image/png",name:"Mobile App Design.uxf",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:7,filename:"Product Photography.phl",filesize:156,url:"https://example.com/product-photography.phl",mimeType:"image/png",name:"Product Photography.phl",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1}];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 ei=H(require("react")),Ct=ei.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("textarea",{className:c("flex min-mo-[80px] mo-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:o,...t}));Ct.displayName="Textarea";var T=H(require("@radix-ui/react-select")),Ie=H(require("react")),oi=T.Root;var ii=T.Value,qt=Ie.forwardRef(({children:e,className:t,...o},i)=>(0,mo.jsxs)(T.Trigger,{className:c("flex mo-10 mo-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:i,...o,children:[e,(0,mo.jsx)(T.Icon,{asChild:!0,children:(0,mo.jsx)(bi.ChevronDown,{className:"mo-4 mo-4 opacity-50"})})]}));qt.displayName=T.Trigger.displayName;var ai=Ie.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,mo.jsx)(bi.ChevronUp,{className:"mo-4 mo-4"})}));ai.displayName=T.ScrollUpButton.displayName;var ri=Ie.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,mo.jsx)(bi.ChevronDown,{className:"mo-4 mo-4"})}));ri.displayName=T.ScrollDownButton.displayName;var Jt=Ie.forwardRef(({children:e,className:t,position:o="popper",...i},s)=>(0,mo.jsx)(T.Portal,{children:(0,mo.jsxs)(T.Content,{className:c("relative z-50 max-mo-96 min-mo-[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",o==="popper"&&"data-[side=bottom]:translate-mo-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-mo-1",t),position:o,ref:s,...i,children:[(0,mo.jsx)(ai,{}),(0,mo.jsx)(T.Viewport,{className:c("mo-1",o==="popper"&&"mo-[var(--radix-select-trigger-height)] mo-full min-mo-[var(--radix-select-trigger-width)]"),children:e}),(0,mo.jsx)(ri,{})]})}));Jt.displayName=T.Content.displayName;var ba=Ie.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ba.displayName=T.Label.displayName;var Pt=Ie.forwardRef(({children:e,className:t,...o},i)=>(0,mo.jsxs)(T.Item,{className:c("relative flex mo-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:i,...o,children:[(0,mo.jsx)("span",{className:"absolute left-2 flex mo-3.5 mo-3.5 items-center justify-center",children:(0,mo.jsx)(T.ItemIndicator,{children:(0,mo.jsx)(bi.Check,{className:"mo-4 mo-4"})})}),(0,mo.jsx)(T.ItemText,{children:e})]}));Pt.displayName=T.Item.displayName;var ha=Ie.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.Separator,{className:c("-mx-1 my-1 mo-px bg-muted",e),ref:o,...t}));ha.displayName=T.Separator.displayName;function li({document:e,onSave:t,onCancel:o,availableDocuments:i=[],knowledgeContexts:s=[]}){let[a,n]=(0,Qt.useState)({...e,updatedAt:new Date}),r=()=>{let l=new Set,m=new Set;return s.forEach(x=>{x.menuConfig.groupBy.forEach(C=>l.add(C))}),i.forEach(x=>{x.metadata&&Object.keys(x.metadata).forEach(C=>m.add(C))}),{contextKeys:Array.from(l).sort(),documentKeys:Array.from(m).sort(),allKeys:Array.from(new Set([...l,...m])).sort()}},f=l=>{let m=new Set;return i.forEach(x=>{x.metadata?.[l]&&m.add(String(x.metadata[l]))}),Array.from(m).sort()},b=r(),A=()=>{t(a)},M=(l,m)=>{n(x=>({...x,metadata:{...x.metadata,[l]:m}}))},B=(l,m)=>{m==="__custom__"?M(l,""):M(l,m)},u=()=>{let l=`field_${Date.now()}`;M(l,"")},D=l=>{n(m=>{let x={...m.metadata};return delete x[l],{...m,metadata:x}})};return(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.3},className:"mo-full flex flex-col",children:[(0,mo.jsxs)("div",{className:"border-b border-border bg-card mo-8",children:[(0,mo.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[(0,mo.jsx)("div",{className:"flex-shrink-0 mo-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,mo.jsx)(bi.Edit3,{className:"mo-6 mo-6 text-primary"})}),(0,mo.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,mo.jsxs)("div",{className:"flex gap-2",children:[(0,mo.jsxs)(k,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,mo.jsx)(bi.mo,{className:"mo-4 mo-4"}),"Cancel"]}),(0,mo.jsxs)(k,{size:"sm",onClick:A,className:"gap-2",children:[(0,mo.jsx)(bi.Save,{className:"mo-4 mo-4"}),"Save Changes"]})]})]}),(0,mo.jsxs)("div",{className:"space-mo-4",children:[(0,mo.jsxs)("div",{children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,mo.jsx)(ye,{value:a.title,onChange:l=>n(m=>({...m,title:l.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,mo.jsxs)("div",{children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,mo.jsx)(Ct,{value:a.description||"",onChange:l=>n(m=>({...m,description:l.target.value})),placeholder:"Document description...",rows:2})]}),(0,mo.jsxs)("div",{children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,mo.jsxs)("div",{children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),b.contextKeys.length>0&&(0,mo.jsxs)("mo",{className:"text-xs text-muted-foreground",children:["Suggested: ",b.contextKeys.slice(0,4).join(", "),b.contextKeys.length>4&&` +${b.contextKeys.length-4}`]})]}),(0,mo.jsxs)(k,{type:"button",variant:"outline",size:"sm",onClick:u,className:"gap-1 mo-8",children:[(0,mo.jsx)(bi.Plus,{className:"mo-3 mo-3"}),"Add"]})]}),a.metadata&&Object.keys(a.metadata).length>0?(0,mo.jsx)("div",{className:"space-mo-2",children:Object.entries(a.metadata).map(([l,m])=>{let x=f(l);return(0,mo.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,mo.jsx)(ye,{value:l,onChange:C=>{let $=C.target.value,_=a.metadata?.[l];n(z=>{let K={...z.metadata};return delete K[l],$&&(K[$]=_||""),{...z,metadata:K}})},placeholder:"Key",className:"mo-32 mo-8 text-sm",list:`metadata-keys-${l}`}),(0,mo.jsx)("datalist",{id:`metadata-keys-${l}`,children:b.allKeys.map(C=>(0,mo.jsx)("option",{value:C},C))}),(0,mo.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),x.length>0?(0,mo.jsxs)(oi,{value:String(m||""),onValueChange:C=>B(l,C),children:[(0,mo.jsx)(qt,{className:"flex-1 mo-8 text-sm",children:(0,mo.jsx)(ii,{placeholder:"Value"})}),(0,mo.jsxs)(Jt,{children:[x.map(C=>(0,mo.jsx)(Pt,{value:C,children:C},C)),(0,mo.jsx)(Pt,{value:"__custom__",children:(0,mo.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,mo.jsx)(ye,{value:String(m||""),onChange:C=>M(l,C.target.value),placeholder:"Value",className:"flex-1 mo-8 text-sm"}),(0,mo.jsx)(k,{type:"button",variant:"ghost",size:"sm",onClick:()=>D(l),className:"mo-8 mo-8 mo-0 text-muted-foreground hover:text-destructive",children:(0,mo.jsx)(bi.mo,{className:"mo-3 mo-3"})})]},l)})}):(0,mo.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:'bi metadata \u2022 Click "Add" to create fields'})})]}),(0,mo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,mo.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,mo.jsx)(ae,{variant:"secondary",className:"font-mono",children:a.format.toUpperCase()})]})]})]}),(0,mo.jsx)("div",{className:"flex-1 overflow-auto",children:(0,mo.jsxs)("div",{className:"mo-8",children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,mo.jsx)(Ct,{value:a.content||"",onChange:l=>n(m=>({...m,content:l.target.value})),placeholder:"Document content...",className:"min-mo-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var pi=e=>(0,mo.jsx)("div",{className:"prose prose-slate dark:prose-invert max-mo-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),di=e=>(0,mo.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),xa=e=>(0,mo.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-mo-none",children:[(0,mo.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg mo-4 mb-4",children:(0,mo.jsxs)("mo",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,mo.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,mo.jsx)("pre",{className:"text-sm",children:e})]}),ya=e=>(0,mo.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-mo-none",children:[(0,mo.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg mo-4 mb-4",children:(0,mo.jsxs)("mo",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,mo.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),pi(e)]});function ui({document:e,onDocumentUpdate:t,editable:o=!0,renderers:i,availableDocuments:s=[],knowledgeContexts:a=[]}){let[n,r]=(0,Qt.useState)(!1),f=u=>{switch(u){case"markdown":case"mdx":return(0,mo.jsx)(bi.FileText,{className:"mo-6 mo-6 text-primary"});case"richtext":return(0,mo.jsx)(bi.File,{className:"mo-6 mo-6 text-success"});case"text":return(0,mo.jsx)(bi.Type,{className:"mo-6 mo-6 text-muted-foreground"});default:return(0,mo.jsx)(bi.File,{className:"mo-6 mo-6 text-muted-foreground"})}},b=u=>{switch(u){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";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},A=(u,D)=>{let l={markdown:pi,mdx:ya,richtext:xa,text:di},m=i?.[D]||l[D];return m?m(u):di(u)},M=u=>{r(!1),t?.(u)},B=()=>{r(!1)};return n?(0,mo.jsx)(li,{document:e,onSave:M,onCancel:B,availableDocuments:s,knowledgeContexts:a}):(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.3},className:"mo-full flex flex-col",children:[(0,mo.jsxs)("div",{className:"border-b border-border bg-card mo-8",children:[(0,mo.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,mo.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-mo-0",children:[(0,mo.jsx)("div",{className:"flex-shrink-0 mo-3 rounded-xl bg-muted border border-border",children:f(e.format)}),(0,mo.jsxs)("div",{className:"flex-1 min-mo-0",children:[(0,mo.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,mo.jsx)("mo",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),o&&(0,mo.jsx)("div",{className:"flex-shrink-0",children:(0,mo.jsxs)(k,{variant:"outline",size:"sm",onClick:()=>r(!0),className:"gap-2",children:[(0,mo.jsx)(bi.Edit3,{className:"mo-4 mo-4"}),"Edit"]})})]}),(0,mo.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,mo.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${b(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(u=>(0,mo.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",u]},u))]})]}),(0,mo.jsx)("div",{className:"flex-1 overflow-auto",children:(0,mo.jsxs)("div",{className:"mo-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,mo.jsxs)("div",{className:"mb-6",children:[(0,mo.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,mo.jsx)("div",{className:"bg-muted rounded-lg mo-3 border border-border",children:(0,mo.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-mo-1 text-xs",children:Object.entries(e.metadata).map(([u,D])=>(0,mo.jsxs)("div",{className:"flex gap-1",children:[(0,mo.jsxs)("span",{className:"text-muted-foreground font-medium",children:[u.replace(/([A-mo])/g," $1").trim(),":"]}),(0,mo.jsx)("span",{className:"text-foreground truncate",children:String(D)})]},u))})})]}),(0,mo.jsx)("div",{className:"space-mo-4",children:e.content?(0,mo.jsx)("div",{className:"relative",children:(0,mo.jsx)("div",{className:"bg-card border border-border rounded-xl mo-6 overflow-hidden",children:A(e.content,e.format)})}):(0,mo.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,mo.jsx)("div",{className:"mo-16 mo-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,mo.jsx)(bi.FileText,{className:"mo-8 mo-8 text-muted-foreground"})}),(0,mo.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"bi content available"}),(0,mo.jsx)("mo",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function gi({label:e,documents:t,children:o,level:i,onDocumentClick:s,selectedDocumentId:a,showDocumentCount:n=!0}){let[r,f]=(0,Qt.useState)(i===0),b=o&&Object.keys(o).length>0,A=t.length+(o?Object.values(o).reduce((u,D)=>u+D.documents.length,0):0),M=u=>{switch(u){case"markdown":case"mdx":return(0,mo.jsx)(bi.FileText,{className:"mo-3.5 mo-3.5 text-muted-foreground"});case"richtext":return(0,mo.jsx)(bi.File,{className:"mo-3.5 mo-3.5 text-muted-foreground"});default:return(0,mo.jsx)(bi.File,{className:"mo-3.5 mo-3.5 text-muted-foreground"})}},B=u=>{let D=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return D[u%D.length]};return(0,mo.jsxs)("div",{className:"space-mo-1",children:[(b||t.length>0)&&(0,mo.jsxs)(Dt.motion.div,{className:`group flex items-center gap-3 mo-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:`${i*20}px`},onClick:()=>f(!r),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,mo.jsx)("div",{className:`mo-1 mo-6 rounded-full ${B(i)}`}),(0,mo.jsx)(Dt.motion.div,{animate:{rotate:r?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,mo.jsx)(bi.ChevronRight,{className:"mo-4 mo-4 text-muted-foreground"})}),(0,mo.jsxs)("div",{className:"flex-1 flex items-center justify-between min-mo-0",children:[(0,mo.jsx)("div",{className:"flex items-center gap-2 min-mo-0",children:(0,mo.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),n&&A>0&&(0,mo.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,mo.jsx)("span",{className:"inline-flex items-center justify-center mo-6 mo-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:A})})]})]}),(0,mo.jsx)(Dt.motion.div,{initial:!1,animate:{height:r?"auto":0,opacity:r?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,mo.jsxs)("div",{className:"pt-2 space-mo-1",children:[t.map((u,D)=>(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:D*.05,duration:.2},className:`group flex items-center gap-3 mo-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===u.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${i*20+20}px`},onClick:()=>s?.(u),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,mo.jsx)("div",{className:"flex-shrink-0",children:M(u.format)}),(0,mo.jsxs)("div",{className:"flex-1 min-mo-0",children:[(0,mo.jsx)("mo",{className:`text-sm truncate transition-colors ${a===u.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:u.title}),u.description&&(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground truncate Qt-0.5",children:u.description})]}),u.tags&&u.tags.length>0&&(0,mo.jsx)("div",{className:"flex-shrink-0",children:(0,mo.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:u.tags[0]})})]},u.id)),o&&Object.entries(o).map(([u,D])=>(0,mo.jsx)(gi,{label:u,documents:D.documents,children:D.children,level:i+1,onDocumentClick:s,selectedDocumentId:a,showDocumentCount:n},u))]})})]})}function fi({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:i,onDocumentUpdate:s,selectedDocumentId:a,className:n,editable:r=!0}){let[f,b]=(0,Qt.useState)(""),[A,M]=(0,Qt.useState)(null),B=(0,Qt.useMemo)(()=>f?e.filter(l=>l.title.toLowerCase().includes(f.toLowerCase())||l.description?.toLowerCase().includes(f.toLowerCase())||l.tags?.some(m=>m.toLowerCase().includes(f.toLowerCase()))||Object.values(l.metadata||{}).some(m=>String(m).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),u=(0,Qt.useMemo)(()=>{let l=(m,x)=>{if(x.length===0)return{};let[C,...$]=x;return m.reduce((z,K)=>{let ie=K.metadata?.[C]||"Uncategorized",U=String(ie);if(z[U]||(z[U]={documents:[],children:{}}),$.length===0)z[U].documents.push(K);else{let V=l([K],$),W=Object.keys(V)[0];W&&(z[U].children||(z[U].children={}),z[U].children[W]?z[U].children[W].documents.push(...V[W].documents):z[U].children[W]=V[W])}return z},{})};return l(B,t.groupBy)},[B,t.groupBy]),D=l=>{M(l),o?.(l)};return(0,mo.jsxs)("div",{className:`flex mo-full ${n||""}`,children:[(0,mo.jsxs)("div",{className:"mo-1/3 border-r border-border bg-muted/20",children:[(0,mo.jsx)("div",{className:"mo-6 border-b border-border",children:(0,mo.jsxs)("div",{className:"relative",children:[(0,mo.jsx)("div",{className:"absolute inset-mo-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,mo.jsx)(bi.Search,{className:"mo-4 mo-4 text-muted-foreground"})}),(0,mo.jsx)(ye,{placeholder:"Search knowledge base...",value:f,onChange:l=>b(l.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl mo-11 text-sm placeholder:text-muted-foreground"})]})}),(0,mo.jsx)(ke,{className:"mo-[calc(100%-100px)]",children:(0,mo.jsxs)("div",{className:"mo-4 space-mo-3",children:[Object.entries(u).map(([l,m])=>(0,mo.jsx)(gi,{label:l,documents:m.documents,children:m.children,level:0,onDocumentClick:D,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},l)),Object.keys(u).length===0&&(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,mo.jsx)("div",{className:"mo-16 mo-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,mo.jsx)(bi.FileText,{className:"mo-8 mo-8 text-muted-foreground"})}),(0,mo.jsx)("mo",{className:"text-sm font-medium",children:"bi documents found"}),(0,mo.jsx)("mo",{className:"text-xs Qt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,mo.jsx)("div",{className:"flex-1 bg-background",children:A?(0,mo.jsx)(ui,{document:A,onDocumentUpdate:s,editable:r}):(0,mo.jsx)("div",{className:"mo-full flex items-center justify-center text-center",children:(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.4},className:"max-mo-sm",children:[(0,mo.jsx)("div",{className:"mo-20 mo-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,mo.jsx)(bi.FileText,{className:"mo-10 mo-10 text-primary"})}),(0,mo.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,mo.jsx)("mo",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Xt({documents:e=[],contexts:t=[],onDocumentClick:o=n=>console.log("Document clicked:",n),onDocumentShare:i=n=>console.log("Share document:",n),onLoadDocumentContent:s,selectedDocumentId:a}){let[n,r]=(0,Qt.useState)(t[0]);return!t||t.length===0?(0,mo.jsxs)("div",{className:"flex flex-col mo-full max-mo-[calc(100vh-8rem)]",children:[(0,mo.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,mo.jsx)(fe,{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,mo.jsx)("div",{className:"flex-1 min-mo-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,mo.jsx)("mo",{className:"text-muted-foreground",children:"bi contexts available"})})]}):(0,mo.jsxs)("div",{className:"flex flex-col mo-full max-mo-[calc(100vh-8rem)]",children:[(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("div",{className:"Qt-6",children:[(0,mo.jsx)("div",{className:"border-b border-border",children:(0,mo.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,mo.jsxs)("button",{onClick:()=>r(f),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===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),n.description&&(0,mo.jsx)("div",{className:"Qt-3 px-1",children:(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:n.description})})]})]}),(0,mo.jsx)("div",{className:"flex-1 min-mo-0 px-2 md:px-4 pb-4",children:(0,mo.jsx)("div",{className:"mo-full rounded-3xl border overflow-hidden",children:(0,mo.jsx)(fi,{documents:e,menuConfig:n.menuConfig,onDocumentClick:o,onDocumentShare:i,selectedDocumentId:a})})})]})}function hi({title:e="Digital Colleagues",businessUnits:t,projects:o,fileCount:i,teamMemberCount:s,onCreateProject:a,onOpenProject:n,sidebarItems:r,initialColleagues:f,users:b,onColleagueAdd:A,onColleagueEdit:M,onColleagueDelete:B}){let[u,D]=(0,Qt.useState)("home"),[l,m]=(0,Qt.useState)(t[0]),x=g=>{console.log("Opening app:",g.name)},C=g=>{console.log("Favoriting app:",g.name)},$=g=>{console.log("Opening file:",g.name)},_=g=>{console.log("Sharing file:",g.name)},z=g=>{console.log("Opening project:",g.name),n(g)},K=g=>{console.log("Sharing project:",g.name)},ie=g=>{m(g),console.log("Business unit changed to:",g.name)},U=()=>{console.log("Copilot clicked - navigating to chat"),D("chat")},V=g=>{console.log("Notification removed:",g)},W=()=>{console.log("All notifications removed")},se=()=>{switch(u){case"home":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsxs)("section",{className:"text-center py-12",children:[(0,mo.jsxs)("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",l.name," team"]}),(0,mo.jsx)("mo",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),(0,mo.jsxs)("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,mo.jsxs)("div",{className:"bg-card mo-6 rounded-lg border",children:[(0,mo.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),(0,mo.jsx)("mo",{className:"text-3xl font-bold text-primary",children:o.length}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),(0,mo.jsxs)("div",{className:"bg-card mo-6 rounded-lg border",children:[(0,mo.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),(0,mo.jsx)("mo",{className:"text-3xl font-bold text-primary",children:s}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),(0,mo.jsxs)("div",{className:"bg-card mo-6 rounded-lg border",children:[(0,mo.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),(0,mo.jsx)("mo",{className:"text-3xl font-bold text-primary",children:i}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),(0,mo.jsx)(fe,{title:"Chat with your team",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Dt",onClick:()=>D("chat")}})]});case"colleagues":return(0,mo.jsx)("div",{children:(0,mo.jsx)("h1",{children:"Colleagues"})});case"chat":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsxs)("section",{className:"text-center py-12",children:[(0,mo.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),(0,mo.jsxs)("mo",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",l.name," team members and collaborate in real-time."]})]}),(0,mo.jsx)(fe,{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,mo.jsxs)("div",{className:"space-mo-8",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"New Releases"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:_t.filter(g=>g.new).map(g=>(0,mo.jsx)($t,{app:g,showProgress:!0,onOpen:x,onFavorite:C},g.name))})]}),(0,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"All Apps"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:_t.map(g=>(0,mo.jsx)($t,{app:g,onOpen:x,onFavorite:C},g.name))})]})]});case"knowledge":return(0,mo.jsx)(Xt,{});case"files":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("div",{className:"flex items-center justify-between",children:(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"All Files"})}),(0,mo.jsx)(Jo,{files:Yo,onFileClick:$})]})]});case"projects":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsx)(fe,{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:a}}),(0,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:o.map(g=>(0,mo.jsx)(Qo,{project:g,onOpen:z,onShare:K},g.name))})]})]});case"learn":return(0,mo.jsxs)("div",{className:"space-mo-8",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:Zo.slice(0,3).map(g=>(0,mo.jsxs)("div",{className:"rounded-3xl border mo-6",children:[(0,mo.jsx)("h3",{className:"font-semibold mb-2",children:g.title}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground mb-4",children:g.description}),(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,mo.jsx)("span",{children:g.duration}),(0,mo.jsx)("span",{children:g.level})]})]},g.title))})]})]});default:return null}};return(0,mo.jsx)(Ko,{sidebarItems:Do,title:e,notifications:So,businessUnits:t,currentBusinessUnit:l,onBusinessUnitChange:ie,activeTab:u,onTabChange:D,showTabs:!0,onActionClick:U,actionIcon:(0,mo.jsx)(bi.Bot,{className:"mr-2 mo-4 mo-4"}),actionText:"Start Chat",onNotificationRemove:V,onRemoveAll:W,children:(0,mo.jsx)(Dt.AnimatePresence,{mode:"wait",children:(0,mo.jsx)(Dt.motion.div,{className:"flex-1 mo-full",initial:{opacity:0,mo:10},animate:{opacity:1,mo:0},exit:{opacity:0,mo:-10},transition:{duration:.2},children:se()},u)})})}
|
|
5
|
+
"use strict";"use client";var xi=Object.create;var at=Object.defineProperty;var yi=Object.getOwnPropertyDescriptor;var wi=Object.getOwnPropertyNames;var Ni=Object.getPrototypeOf,Ci=Object.prototype.hasOwnProperty;var Pi=(e,t)=>{for(var o in t)at(e,o,{get:t[o],enumerable:!0})},Zt=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of wi(t))!Ci.call(e,s)&&s!==o&&at(e,s,{get:()=>t[s],enumerable:!(i=yi(t,s))||i.enumerable});return e};var K=(e,t,o)=>(o=e!=null?xi(Ni(e)):{},Zt(t||!e||!e.__esModule?at(o,"default",{value:e,enumerable:!0}):o,e)),Di=e=>Zt(at({},"__esModule",{value:!0}),e);var Na={};Pi(Na,{default:()=>hi});module.exports=Di(Na);var Qt=require("react"),Dt=require("motion/react"),bi=require("lucide-react");var lo=require("clsx");var Rt="-",Si=e=>{let t=Ri(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{let r=n.split(Rt);return r[0]===""&&r.length!==1&&r.shift(),oo(r,t)||ki(n)},getConflictingClassGroupIds:(n,r)=>{let f=o[n]||[];return r&&i[n]?[...f,...i[n]]:f}}},oo=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],i=t.nextPart.get(o),s=i?oo(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Rt);return t.validators.find(({validator:n})=>n(a))?.classGroupId},eo=/^\[(.+)\]$/,ki=e=>{if(eo.test(e)){let t=eo.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ri=e=>{let{theme:t,prefix:o}=e,i={nextPart:new Map,validators:[]};return Ai(Object.entries(e.classGroups),o).forEach(([a,n])=>{kt(n,i,a,t)}),i},kt=(e,t,o,i)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:to(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(Ti(s)){kt(s(i),t,o,i);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,n])=>{kt(n,to(t,a),o,i)})})},to=(e,t)=>{let o=e;return t.split(Rt).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},Ti=e=>e.isThemeGetter,Ai=(e,t)=>t?e.map(([o,i])=>{let s=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,r])=>[t+n,r])):a);return[o,s]}):e,Mi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,i=new Map,s=(a,n)=>{o.set(a,n),t++,t>e&&(t=0,i=o,o=new Map)};return{get(a){let n=o.get(a);if(n!==void 0)return n;if((n=i.get(a))!==void 0)return s(a,n),n},set(a,n){o.has(a)?o.set(a,n):s(a,n)}}},io="!",Ii=e=>{let{separator:t,experimentalParseClassName:o}=e,i=t.length===1,s=t[0],a=t.length,n=r=>{let f=[],b=0,A=0,I;for(let m=0;m<r.length;m++){let x=r[m];if(b===0){if(x===s&&(i||r.slice(m,m+a)===t)){f.push(r.slice(A,m)),A=m+a;continue}if(x==="/"){I=m;continue}}x==="["?b++:x==="]"&&b--}let B=f.length===0?r:r.substring(A),u=B.startsWith(io),D=u?B.substring(1):B,l=I&&I>A?I-A:void 0;return{modifiers:f,hasImportantModifier:u,baseClassName:D,maybePostfixModifierPosition:l}};return o?r=>o({className:r,parseClassName:n}):n},Bi=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(i=>{i[0]==="["?(t.push(...o.sort(),i),o=[]):o.push(i)}),t.push(...o.sort()),t},zi=e=>({cache:Mi(e.cacheSize),parseClassName:Ii(e),...Si(e)}),ji=/\s+/,Li=(e,t)=>{let{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:s}=t,a=[],n=e.trim().split(ji),r="";for(let f=n.length-1;f>=0;f-=1){let b=n[f],{modifiers:A,hasImportantModifier:I,baseClassName:B,maybePostfixModifierPosition:u}=o(b),D=!!u,l=i(D?B.substring(0,u):B);if(!l){if(!D){r=b+(r.length>0?" "+r:r);continue}if(l=i(B),!l){r=b+(r.length>0?" "+r:r);continue}D=!1}let m=Bi(A).join(":"),x=I?m+io:m,C=x+l;if(a.includes(C))continue;a.push(C);let $=s(l,D);for(let _=0;_<$.length;++_){let z=$[_];a.push(x+z)}r=b+(r.length>0?" "+r:r)}return r};function Ei(){let e=0,t,o,i="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ao(t))&&(i&&(i+=" "),i+=o);return i}var ao=e=>{if(typeof e=="string")return e;let t,o="";for(let i=0;i<e.length;i++)e[i]&&(t=ao(e[i]))&&(o&&(o+=" "),o+=t);return o};function Fi(e,...t){let o,i,s,a=n;function n(f){let b=t.reduce((A,I)=>I(A),e());return o=zi(b),i=o.cache.get,s=o.cache.set,a=r,r(f)}function r(f){let b=i(f);if(b)return b;let A=Li(f,o);return s(f,A),A}return function(){return a(Ei.apply(null,arguments))}}var L=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ro=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ui=/^\d+\/\d+$/,Oi=new Set(["px","full","screen"]),Ki=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hi=/\d+(%|px|r?em|[sdl]?mo([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(mo|mo|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>Fe(e)||Oi.has(e)||Ui.test(e),Pe=e=>Ue(e,"length",Zi),Fe=e=>!!e&&!Number.isNaN(Number(e)),St=e=>Ue(e,"number",Fe),We=e=>!!e&&Number.isInteger(Number(e)),$i=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),P=e=>ro.test(e),De=e=>Ki.test(e),_i=new Set(["length","size","percentage"]),qi=e=>Ue(e,_i,no),Ji=e=>Ue(e,"position",no),Xi=new Set(["image","url"]),Qi=e=>Ue(e,Xi,ta),Yi=e=>Ue(e,"",ea),Ge=()=>!0,Ue=(e,t,o)=>{let i=ro.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):o(i[2]):!1},Zi=e=>Hi.test(e)&&!Vi.test(e),no=()=>!1,ea=e=>Wi.test(e),ta=e=>Gi.test(e);var oa=()=>{let e=L("colors"),t=L("spacing"),o=L("blur"),i=L("brightness"),s=L("borderColor"),a=L("borderRadius"),n=L("borderSpacing"),r=L("borderWidth"),f=L("contrast"),b=L("grayscale"),A=L("hueRotate"),I=L("invert"),B=L("gap"),u=L("gradientColorStops"),D=L("gradientColorStopPositions"),l=L("inset"),m=L("margin"),x=L("opacity"),C=L("padding"),$=L("saturate"),_=L("scale"),z=L("sepia"),H=L("skew"),ie=L("space"),U=L("translate"),V=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",P,t],g=()=>[P,t],He=()=>["",xe,Pe],d=()=>["auto",Fe,P],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>["start","end","center","between","around","evenly","stretch"],Ve=()=>["","0",P],Yt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Fe,P];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[xe,Pe],blur:["none","",De,P],brightness:he(),borderColor:[e],borderRadius:["none","","full",De,P],borderSpacing:g(),borderWidth:He(),contrast:he(),grayscale:Ve(),hueRotate:he(),invert:Ve(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[$i,Pe],inset:se(),margin:se(),opacity:he(),padding:g(),saturate:he(),scale:he(),sepia:Ve(),skew:he(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",P]}],container:["container"],columns:[{columns:[De]}],"break-after":[{"break-after":Yt()}],"break-before":[{"break-before":Yt()}],"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:[...O(),P]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-mo":[{"overflow-mo":W()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-mo":[{"overscroll-mo":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[l]}],"inset-x":[{"inset-x":[l]}],"inset-mo":[{"inset-mo":[l]}],start:[{start:[l]}],end:[{end:[l]}],top:[{top:[l]}],right:[{right:[l]}],bottom:[{bottom:[l]}],left:[{left:[l]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,P]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",P]}],grow:[{grow:Ve()}],shrink:[{shrink:Ve()}],order:[{order:["first","last","none",We,P]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",We,P]},P]}],"col-start":[{"col-start":d()}],"col-end":[{"col-end":d()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[We,P]},P]}],"row-start":[{"row-start":d()}],"row-end":[{"row-end":d()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",P]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",P]}],gap:[{gap:[B]}],"gap-x":[{"gap-x":[B]}],"gap-mo":[{"gap-mo":[B]}],"justify-content":[{justify:["normal",...le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],mo:[{mo:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],bi:[{bi:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],Qt:[{Qt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-mo":[{"space-mo":[ie]}],"space-mo-reverse":["space-mo-reverse"],mo:[{mo:["auto","min","max","fit","svw","lvw","dvw",P,t]}],"min-mo":[{"min-mo":[P,t,"min","max","fit"]}],"max-mo":[{"max-mo":[P,t,"none","full","min","max","fit","prose",{screen:[De]},De]}],mo:[{mo:[P,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-mo":[{"min-mo":[P,t,"min","max","fit","svh","lvh","dvh"]}],"max-mo":[{"max-mo":[P,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[P,t,"auto","min","max","fit"]}],"font-size":[{text:["base",De,Pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",St]}],"font-family":[{font:[Ge]}],"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",P]}],"line-clamp":[{"line-clamp":["none",Fe,St]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xe,P]}],"list-image":[{"list-image":["none",P]}],"list-style-type":[{list:["none","disc","decimal",P]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xe,Pe]}],"underline-offset":[{"underline-offset":["auto",xe,P]}],"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:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P]}],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",P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),Ji]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","mo","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-mo":[{"rounded-mo":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-mo":[{border:[r]}],"border-mo-x":[{"border-x":[r]}],"border-mo-mo":[{"border-mo":[r]}],"border-mo-s":[{"border-s":[r]}],"border-mo-e":[{"border-e":[r]}],"border-mo-t":[{"border-t":[r]}],"border-mo-r":[{"border-r":[r]}],"border-mo-b":[{"border-b":[r]}],"border-mo-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-mo":[{"divide-mo":[r]}],"divide-mo-reverse":["divide-mo-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:j()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-mo":[{"border-mo":[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:["",...j()]}],"outline-offset":[{"outline-offset":[xe,P]}],"outline-mo":[{outline:[xe,Pe]}],"outline-color":[{outline:[e]}],"ring-mo":[{ring:He()}],"ring-mo-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-mo":[{"ring-offset":[xe,Pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",De,Yi]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...be(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[i]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",De,P]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[A]}],invert:[{invert:[I]}],saturate:[{saturate:[$]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-mo":[{"border-spacing-mo":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",P]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",P]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",P]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-mo":[{"scale-mo":[_]}],rotate:[{rotate:[We,P]}],"translate-x":[{"translate-x":[U]}],"translate-mo":[{"translate-mo":[U]}],"skew-x":[{"skew-x":[H]}],"skew-mo":[{"skew-mo":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P]}],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","mo-resize","mo-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","mo","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-Qt":[{"scroll-Qt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-mo":[{"scroll-mo":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-bi":[{"scroll-bi":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","mo","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-mo":[{"touch-pan":["mo","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P]}],fill:[{fill:[e,"none"]}],"stroke-mo":[{stroke:[xe,Pe,St]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-mo"],overscroll:["overscroll-x","overscroll-mo"],inset:["inset-x","inset-mo","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-mo":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-mo"],mo:["px","py","ps","bi","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","Qt","mr","mb","ml"],mx:["mr","ml"],my:["Qt","mb"],size:["mo","mo"],"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-mo","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-mo"],"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-mo"],"border-mo":["border-mo-s","border-mo-e","border-mo-t","border-mo-r","border-mo-b","border-mo-l"],"border-mo-x":["border-mo-r","border-mo-l"],"border-mo-mo":["border-mo-t","border-mo-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-mo":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Qt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Qt","scroll-mb"],"scroll-mo":["scroll-px","scroll-py","scroll-ps","scroll-bi","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-mo","touch-pz"],"touch-x":["touch"],"touch-mo":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var so=Fi(oa);function c(...e){return so((0,lo.clsx)(e))}var ut=K(require("react")),jt=K(require("next/link"));var co=require("class-variance-authority");var mo=require("react/jsx-runtime"),ia=(0,co.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 ae({className:e,variant:t,...o}){return(0,mo.jsx)("div",{className:c(ia({variant:t}),e),...o})}var po=require("@radix-ui/react-slot"),go=K(require("react")),aa=(0,co.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:"mo-10 px-4 py-2",icon:"mo-10 mo-10",lg:"mo-11 rounded px-8",sm:"mo-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"}}}),k=go.forwardRef(({asChild:e=!1,className:t,size:o,variant:i,...s},a)=>(0,mo.jsx)(e?po.Slot:"button",{className:c(aa({className:t,size:o,variant:i})),ref:a,...s}));k.displayName="Button";var vo=K(require("react"));var ye=vo.forwardRef(({className:e,type:t,...o},i)=>(0,mo.jsx)("input",{type:t,className:c("flex mo-9 mo-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:i,...o}));ye.displayName="Input";var Tt=K(require("react")),de=K(require("@radix-ui/react-scroll-area"));var ke=Tt.forwardRef(({className:e,children:t,...o},i)=>(0,mo.jsxs)(de.Root,{ref:i,className:c("relative overflow-hidden",e),...o,children:[(0,mo.jsx)(de.Viewport,{className:"mo-full mo-full rounded-[inherit]",children:t}),(0,mo.jsx)(ho,{}),(0,mo.jsx)(de.Corner,{})]}));ke.displayName=de.Root.displayName;var ho=Tt.forwardRef(({className:e,orientation:t="vertical",...o},i)=>(0,mo.jsx)(de.ScrollAreaScrollbar,{ref:i,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"mo-full mo-2.5 border-l border-l-transparent mo-[1px]",t==="horizontal"&&"mo-2.5 flex-col border-t border-t-transparent mo-[1px]",e),...o,children:(0,mo.jsx)(de.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ho.displayName=de.ScrollAreaScrollbar.displayName;var $e=K(require("react")),J=K(require("@radix-ui/react-dialog"));var yo=J.Root;var ra=J.Portal;var wo=$e.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(J.Overlay,{ref:o,className:c("fixed inset-0 z-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}));wo.displayName=J.Overlay.displayName;var At=$e.forwardRef(({className:e,children:t,...o},i)=>(0,mo.jsxs)(ra,{children:[(0,mo.jsx)(wo,{}),(0,mo.jsxs)(J.Content,{ref:i,className:c("fixed left-[50%] top-[50%] z-50 grid mo-full max-mo-lg translate-x-[-50%] translate-mo-[-50%] gap-4 border bg-background mo-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),...o,children:[t,(0,mo.jsxs)(J.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,mo.jsx)(bi.mo,{className:"mo-4 mo-4"}),(0,mo.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));At.displayName=J.Content.displayName;var Mt=({className:e,...t})=>(0,mo.jsx)("div",{className:c("flex flex-col space-mo-1.5 text-center sm:text-left",e),...t});Mt.displayName="DialogHeader";var na=({className:e,...t})=>(0,mo.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});na.displayName="DialogFooter";var It=$e.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(J.Title,{ref:o,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));It.displayName=J.Title.displayName;var sa=$e.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(J.Description,{ref:o,className:c("text-sm text-muted-foreground",e),...t}));sa.displayName=J.Description.displayName;var _e=K(require("@radix-ui/react-checkbox")),Co=K(require("react")),Bt=Co.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(_e.Root,{className:c("peer mo-4 mo-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:o,...t,children:(0,mo.jsx)(_e.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,mo.jsx)(bi.Check,{className:"mo-4 mo-4"})})}));Bt.displayName=_e.Root.displayName;var ue=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date}),Do=[{id:"home",title:"Home",icon:(0,mo.jsx)(bi.Home,{}),isActive:!0},{id:"teams",title:"Teams",icon:(0,mo.jsx)(bi.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,mo.jsx)(bi.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,mo.jsx)(bi.Bot,{}),url:"/copilot"},{id:"knowledge",title:"Knowledge",icon:(0,mo.jsx)(bi.FileText,{}),url:"/knowledge"}],So=[{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'bi 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:"A 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")}],ko=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,mo.jsx)(bi.Palette,{className:"mo-4 mo-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,mo.jsx)(bi.Code,{className:"mo-4 mo-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,mo.jsx)(bi.TrendingUp,{className:"mo-4 mo-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,mo.jsx)(bi.DollarSign,{className:"mo-4 mo-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,mo.jsx)(bi.Users,{className:"mo-4 mo-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,mo.jsx)(bi.Wrench,{className:"mo-4 mo-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,mo.jsx)(bi.Scale,{className:"mo-4 mo-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,mo.jsx)(bi.Package,{className:"mo-4 mo-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,mo.jsx)(bi.Zap,{className:"mo-4 mo-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,mo.jsx)(bi.Building2,{className:"mo-4 mo-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],lt=[{id:"1",name:"mo-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}];var zt=[{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}],nt=[{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}],ct=[{id:"1",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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")}],la=[...ct,{id:"8",name:"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",name:"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",name:"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",name:"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",name:"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")}],da=[...lt,{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}],st={projects:[{id:"1",name:"Empty Project",description:"A 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:[]},Po={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:ct.filter(e=>e.epicId==="1")};var Va={empty:{initialProjects:st.projects,initialEpics:st.epics,initialSprints:st.sprints,initialTasks:st.tasks},default:{initialProjects:lt,initialEpics:zt,initialSprints:nt,initialTasks:ct},highDensity:{initialProjects:lt,initialEpics:zt,initialSprints:nt,initialTasks:la},singleEpic:{initialProjects:lt,initialEpics:Po.epics,initialSprints:nt,initialTasks:Po.tasks},multipleProjects:{initialProjects:da,initialEpics:zt,initialSprints:nt,initialTasks:ct}},dt=[{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(ue),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(ue),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(ue),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(ue),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(ue),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(ue),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(ue),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(ue),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(ue),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(ue),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Wa=[{id:"1",title:"Review quarterly report",description:"Dt through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:dt.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:dt.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:dt.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 Ga=dt.filter(e=>e.type==="digital");function pt(e,t){let[o,i]=(0,Qt.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),s=a=>{try{i(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,Qt.useEffect)(()=>{s(o)},[]),[o,s]}function Lt({items:e,isOpen:t,isMobile:o=!1,onClose:i,currentBusinessUnit:s=ko[0],onBusinessUnitChange:a,onSearch:n,className:r,logo:f="/headerlogo.png",appName:b="Nuvia",tagline:A="Collaboration Platform"}){let[I,B]=ut.useState({}),[u,D]=pt("sidebar-favorites",{}),[l,m]=ut.useState(null),[x,C]=ut.useState(""),$=d=>{B(O=>({...O,[d]:!O[d]}))},_=d=>{a?.(d)},z=()=>{x.trim()&&n?.(x.trim())},H=d=>{d.key==="Enter"&&(d.preventDefault(),z())},ie=(d,O)=>{let j=u[d]||[],be=j.includes(O)?j.filter(le=>le!==O):j.concat(O);D({...u,[d]:be})},U=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let O=u[d.id]||[],j=d.items.filter(le=>O.includes(le.id)),be=d.items.filter(le=>!O.includes(le.id));return[...j,...be].slice(0,d.maxItems)},V=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,W=e,se=d=>{let O=V(d),j=U(d),be=(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,mo.jsx)("span",{children:d.title})]}),d.badge&&(0,mo.jsx)(ae,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,mo.jsx)(bi.ChevronDown,{className:c("ml-2 mo-4 mo-4 transition-transform",I[d.title]?"rotate-180":"")})]}),le=c("flex mo-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,mo.jsx)(jt.default,{href:d.url,className:le,onClick:o?i:void 0,children:be}):(0,mo.jsx)("button",{className:le,onClick:()=>d.items&&$(d.title),children:be})},g=()=>{let d=e.find(j=>j.id===l);if(!d||!d.items||!d.maxItems)return null;let O=u[d.id]||[];return(0,mo.jsx)(yo,{open:!!l,onOpenChange:j=>!j&&m(null),children:(0,mo.jsxs)(At,{className:"sm:max-mo-md",children:[(0,mo.jsxs)(Mt,{children:[(0,mo.jsxs)(It,{children:["Manage ",d.title," Favorites"]}),(0,mo.jsxs)("mo",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,mo.jsx)(ke,{className:"max-mo-96 pr-4",children:(0,mo.jsx)("div",{className:"space-mo-4",children:d.items.map(j=>(0,mo.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,mo.jsx)(Bt,{id:j.id,checked:O.includes(j.id),onCheckedChange:()=>ie(d.id,j.id),disabled:!O.includes(j.id)&&O.length>=(d.maxItems||0)}),(0,mo.jsxs)("label",{htmlFor:j.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:[j.title,j.badge&&(0,mo.jsx)(ae,{variant:"outline",className:"text-xs",children:j.badge})]})]},j.id))})})]})})},He=(0,mo.jsxs)("div",{className:"flex mo-full flex-col bg-background",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between mo-4",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[(0,mo.jsx)("div",{className:"flex mo-14 mo-14 items-center justify-center",children:(0,mo.jsx)("img",{src:f,alt:"Header Logo",className:"mo-14 mo-14 object-contain"})}),(0,mo.jsxs)("div",{children:[(0,mo.jsx)("h2",{className:"font-semibold",children:b}),(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:A})]})]}),o&&(0,mo.jsx)(k,{variant:"ghost",size:"icon",onClick:i,children:(0,mo.jsx)(bi.mo,{className:"mo-5 mo-5"})})]}),(0,mo.jsx)("div",{className:"px-3 py-2",children:(0,mo.jsxs)("div",{className:"relative",children:[(0,mo.jsx)(bi.Search,{className:"absolute left-3 top-3 mo-4 mo-4 text-muted-foreground"}),(0,mo.jsx)(ye,{type:"search",placeholder:"Search...",className:"mo-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:x,onChange:d=>C(d.target.value),onKeyPress:H})]})}),(0,mo.jsx)(ke,{className:"flex-1 px-3 py-2",children:(0,mo.jsx)("div",{className:"space-mo-1",children:W.map(d=>(0,mo.jsxs)("div",{className:"mb-1",children:[se(d),d.items&&I[d.title]&&(0,mo.jsxs)("div",{className:"Qt-1 ml-6 space-mo-1 border-l pl-3",children:[U(d).map(O=>(0,mo.jsxs)(jt.default,{href:O.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?i:void 0,children:[O.title,O.badge&&(0,mo.jsx)(ae,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:O.badge})]},O.id)),V(d)&&d.items&&d.items.length>U(d).length&&(0,mo.jsxs)("button",{onClick:()=>m(d.id),className:"mo-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-U(d).length," more available"]})]})]},d.id))})}),(0,mo.jsx)("div",{className:"mo-3",children:(0,mo.jsx)("div",{className:"space-mo-1",children:(0,mo.jsxs)("button",{className:"flex mo-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,mo.jsx)(bi.Settings,{className:"mo-5 mo-5"}),(0,mo.jsx)("span",{children:"Settings"})]})})}),(0,mo.jsx)(g,{})]});return o?(0,mo.jsx)("div",{className:c("fixed inset-mo-0 left-0 z-50 mo-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:He}):(0,mo.jsx)("div",{className:c("fixed inset-mo-0 left-0 z-30 mo-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",r),children:He})}var gt=K(require("react")),we=K(require("@radix-ui/react-avatar"));var Et=gt.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(we.Root,{ref:o,className:c("relative flex mo-10 mo-10 shrink-0 overflow-hidden rounded-full",e),...t}));Et.displayName=we.Root.displayName;var Ft=gt.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(we.Image,{ref:o,className:c("aspect-square mo-full mo-full",e),...t}));Ft.displayName=we.Image.displayName;var Ut=gt.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(we.Fallback,{ref:o,className:c("flex mo-full mo-full items-center justify-center rounded-full bg-muted",e),...t}));Ut.displayName=we.Fallback.displayName;var Ro=K(require("react")),me=K(require("@radix-ui/react-tooltip"));var vt=me.Provider,bt=me.Root,ht=me.Trigger,qe=Ro.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,mo.jsx)(me.Portal,{children:(0,mo.jsx)(me.Content,{ref:i,sideOffset:t,className:c("z-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),...o})}));qe.displayName=me.Content.displayName;var To=require("next-themes");function Ao(){let{setTheme:e,theme:t}=(0,To.useTheme)();return(0,mo.jsx)(vt,{children:(0,mo.jsxs)(bt,{children:[(0,mo.jsx)(ht,{asChild:!0,children:(0,mo.jsxs)(k,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,mo.jsx)(bi.Sun,{className:"mo-5 mo-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,mo.jsx)(bi.Moon,{className:"absolute mo-5 mo-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,mo.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,mo.jsx)(qe,{children:"Toggle theme"})]})})}function Mo({notifications:e,open:t,onClose:o,onNotificationRemove:i,onRemoveAll:s,className:a}){let n=e.filter(b=>!b.read),r=n.length,f=b=>{switch(b){case"info":return(0,mo.jsx)(bi.Info,{className:"mo-5 mo-5 text-blue-500"});case"success":return(0,mo.jsx)(bi.Check,{className:"mo-5 mo-5 text-green-500"});case"warning":return(0,mo.jsx)(bi.AlertTriangle,{className:"mo-5 mo-5 text-amber-500"});case"error":return(0,mo.jsx)(bi.AlertTriangle,{className:"mo-5 mo-5 text-red-500"})}};return(0,mo.jsx)(Dt.AnimatePresence,{children:t&&(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsx)(Dt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,mo.jsx)(Dt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-mo-0 right-0 z-50 mo-full max-mo-sm border-l bg-background shadow-lg md:mo-96",a),children:(0,mo.jsxs)("div",{className:"flex mo-full flex-col",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between border-b mo-4",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,mo.jsx)(bi.Bell,{className:"mo-5 mo-5"}),(0,mo.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),r>0&&(0,mo.jsxs)(ae,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[r," new"]})]}),(0,mo.jsxs)(k,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,mo.jsx)(bi.mo,{className:"mo-5 mo-5"}),(0,mo.jsx)("span",{className:"sr-only",children:"Close"})]})]}),r>0&&(0,mo.jsxs)("div",{className:"flex items-center justify-between border-b mo-2",children:[(0,mo.jsxs)("span",{className:"text-sm text-muted-foreground",children:[r," unread notification",r!==1?"s":""]}),(0,mo.jsx)(k,{variant:"ghost",size:"sm",onClick:s,className:"text-sm",children:"Dismiss all"})]}),n.length>0?(0,mo.jsx)(ke,{className:"flex-1",children:(0,mo.jsx)("div",{className:"divide-mo",children:n.map(b=>(0,mo.jsxs)("div",{className:c("flex gap-3 mo-4 transition-colors bg-muted/50"),children:[(0,mo.jsx)("div",{className:"flex mo-10 mo-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:f(b.type)}),(0,mo.jsxs)("div",{className:"flex-1 space-mo-1",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,mo.jsx)("mo",{className:"font-medium",children:b.title}),(0,mo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:b.time}),(0,mo.jsx)(k,{variant:"ghost",size:"sm",className:"mo-6 mo-6 mo-0",onClick:()=>i?.(b.id),title:"Dismiss",children:(0,mo.jsx)(bi.Check,{className:"mo-3 mo-3"})})]})]}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:b.description}),b.actionLabel&&(0,mo.jsxs)(k,{variant:"link",size:"sm",className:"mo-auto mo-0 text-sm",onClick:b.onAction,children:[b.actionLabel,(0,mo.jsx)(bi.ChevronRight,{className:"ml-1 mo-3 mo-3"})]})]})]},b.id))})}):(0,mo.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center mo-8 text-center",children:[(0,mo.jsx)("div",{className:"flex mo-16 mo-16 items-center justify-center rounded-full bg-muted",children:(0,mo.jsx)(bi.Bell,{className:"mo-8 mo-8 text-muted-foreground"})}),(0,mo.jsx)("h3",{className:"Qt-4 text-lg font-medium",children:"bi notifications"}),(0,mo.jsx)("mo",{className:"Qt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Ie=K(require("@radix-ui/react-tabs"));function Io({className:e,...t}){return(0,mo.jsx)(Ie.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function Bo({className:e,...t}){return(0,mo.jsx)(Ie.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex mo-9 mo-fit items-center justify-center rounded-lg mo-[3px]",e),...t})}function zo({className:e,...t}){return(0,mo.jsx)(Ie.Trigger,{"data-slot":"tabs-trigger",className:c("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 mo-[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 Ne=K(require("react")),R=K(require("@radix-ui/react-dropdown-menu")),Oe=require("@radix-ui/react-icons");var jo=R.Root,Lo=R.Trigger;var ca=Ne.forwardRef(({className:e,inset:t,children:o,...i},s)=>(0,mo.jsxs)(R.SubTrigger,{ref:s,className:c("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),...i,children:[o,(0,mo.jsx)(Oe.ChevronRightIcon,{className:"ml-auto"})]}));ca.displayName=R.SubTrigger.displayName;var ma=Ne.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(R.SubContent,{ref:o,className:c("z-50 min-mo-[8rem] overflow-hidden rounded-md border bg-popover mo-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}));ma.displayName=R.SubContent.displayName;var Kt=Ne.forwardRef(({className:e,sideOffset:t=4,...o},i)=>(0,mo.jsx)(R.Portal,{children:(0,mo.jsx)(R.Content,{ref:i,sideOffset:t,className:c("z-50 min-mo-[8rem] overflow-hidden rounded-md border bg-popover mo-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),...o})}));Kt.displayName=R.Content.displayName;var Ht=Ne.forwardRef(({className:e,inset:t,...o},i)=>(0,mo.jsx)(R.Item,{ref:i,className:c("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),...o}));Ht.displayName=R.Item.displayName;var pa=Ne.forwardRef(({className:e,children:t,checked:o,...i},s)=>(0,mo.jsxs)(R.CheckboxItem,{ref:s,className:c("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:o,...i,children:[(0,mo.jsx)("span",{className:"absolute left-2 flex mo-3.5 mo-3.5 items-center justify-center",children:(0,mo.jsx)(R.ItemIndicator,{children:(0,mo.jsx)(Oe.CheckIcon,{className:"mo-4 mo-4"})})}),t]}));pa.displayName=R.CheckboxItem.displayName;var ua=Ne.forwardRef(({className:e,children:t,...o},i)=>(0,mo.jsxs)(R.RadioItem,{ref:i,className:c("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),...o,children:[(0,mo.jsx)("span",{className:"absolute left-2 flex mo-3.5 mo-3.5 items-center justify-center",children:(0,mo.jsx)(R.ItemIndicator,{children:(0,mo.jsx)(Oe.DotFilledIcon,{className:"mo-4 mo-4 fill-current"})})}),t]}));ua.displayName=R.RadioItem.displayName;var ga=Ne.forwardRef(({className:e,inset:t,...o},i)=>(0,mo.jsx)(R.Label,{ref:i,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));ga.displayName=R.Label.displayName;var fa=Ne.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(R.Separator,{ref:o,className:c("-mx-1 my-1 mo-px bg-muted",e),...t}));fa.displayName=R.Separator.displayName;var va=({className:e,...t})=>(0,mo.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});va.displayName="DropdownMenuShortcut";function Fo({activeTab:e,onTabChange:t,tabOptions:o,className:i="",maxWidth:s="700px",gridCols:a=6}){let n=o.find(r=>r.value===e);return(0,mo.jsxs)(Dt.motion.div,{className:`flex-1 flex justify-center ${i}`,initial:{opacity:0,mo:-20},animate:{opacity:1,mo:0},transition:{duration:.3,ease:"easeOut"},children:[(0,mo.jsx)("div",{className:"hidden lg:block",children:(0,mo.jsx)(Io,{value:e,onValueChange:t,children:(0,mo.jsx)(Bo,{className:"grid mo-full rounded-2xl mo-0 mo-10",style:{maxWidth:s,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(r=>(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,mo.jsx)(zo,{value:r.value,className:"mo-full mo-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,mo.jsx)("div",{className:"lg:hidden",children:(0,mo.jsxs)(jo,{children:[(0,mo.jsx)(Lo,{asChild:!0,children:(0,mo.jsxs)(k,{variant:"outline",className:"rounded-2xl min-mo-[140px] justify-between",children:[n?.label||"Select",(0,mo.jsx)(bi.ChevronDown,{className:"mo-4 mo-4 ml-2"})]})}),(0,mo.jsx)(Kt,{align:"center",className:"mo-[180px]",children:o.map(r=>(0,mo.jsx)(Ht,{onClick:()=>t?.(r.value),className:`cursor-pointer ${e===r.value?"bg-accent":""}`,children:r.label},r.value))})]})})]})}function Uo({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:i,sidebarOpen:s=!0,className:a,activeTab:n="assistant",onTabChange:r,showTabs:f=!0,tabOptions:b=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:A,actionIcon:I=(0,mo.jsx)(bi.Bot,{className:"mr-2 mo-4 mo-4"}),actionText:B="Action",onNotificationRemove:u,onRemoveAll:D,logo:l="/headerlogo.png",appName:m="Nuvia",tagline:x="Collaboration Platform"}){let[C,$]=(0,Qt.useState)(!1),[_,z]=(0,Qt.useState)(t),H=_.filter(V=>!V.read).length,ie=V=>{z(W=>W.filter(se=>se.id!==V)),u?.(V)},U=()=>{z(V=>V.filter(W=>W.read)),D?.()};return(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsxs)("header",{className:`sticky top-0 z-10 flex mo-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${a||""}`,children:[(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"md:hidden",onClick:i,children:(0,mo.jsx)(bi.Menu,{className:"mo-5 mo-5"})}),(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,mo.jsx)(bi.PanelLeft,{className:"mo-5 mo-5"})}),!s&&(0,mo.jsxs)(Dt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,mo.jsx)("div",{className:"flex mo-10 mo-10 items-center justify-center",children:(0,mo.jsx)("img",{src:l,alt:"Logo",className:"mo-10 mo-10 object-contain"})}),(0,mo.jsxs)("div",{children:[(0,mo.jsx)("h2",{className:"font-semibold text-sm",children:m}),(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:x})]})]}),(0,mo.jsxs)("div",{className:"flex flex-1 items-center",children:[f&&(0,mo.jsx)(Fo,{activeTab:n,onTabChange:r,tabOptions:b}),(0,mo.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,mo.jsx)(Dt.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,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,mo.jsxs)(k,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:A,children:[I,B]})})}),(0,mo.jsx)(Ao,{}),(0,mo.jsx)(vt,{children:(0,mo.jsxs)(bt,{children:[(0,mo.jsx)(ht,{asChild:!0,children:(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,mo.jsxs)(k,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>$(!0),children:[(0,mo.jsx)(Dt.motion.div,{animate:H>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:H>0?1/0:0,repeatDelay:3},children:(0,mo.jsx)(bi.Bell,{className:"mo-5 mo-5"})}),H>0&&(0,mo.jsx)(Dt.motion.span,{className:"absolute -right-1 -top-1 flex mo-5 mo-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:H})]})})}),(0,mo.jsx)(qe,{children:"Notifications"})]})}),(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,mo.jsxs)(Et,{className:"mo-9 mo-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,mo.jsx)(Ft,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,mo.jsx)(Ut,{})]})})]})]})]}),(0,mo.jsx)(Mo,{notifications:_,open:C,onClose:()=>$(!1),onNotificationRemove:ie,onRemoveAll:U})]})}var Oo=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,mo.jsx)(bi.User,{className:"mo-4 mo-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Ho({sidebarItems:e,children:t,title:o="Digital Colleagues",notifications:i=[],currentBusinessUnit:s=Oo[0],onBusinessUnitChange:a,onSearch:n,businessUnits:r=Oo,activeTab:f,onTabChange:b,showTabs:A=!1,onActionClick:I,actionIcon:B,actionText:u="Action",onNotificationRemove:D,onRemoveAll:l,logo:m="/headerlogo.png",appName:x="Nuvia",tagline:C="Collaboration Platform",sidebarInitiallyClosed:$=!1}){let[_,z]=(0,Qt.useState)(!$),[H,ie]=(0,Qt.useState)(!1),[U,V]=(0,Qt.useState)(s),W=se=>{V(se),a?.(se)};return(0,mo.jsxs)("div",{className:"flex mo-full flex-col overflow-hidden rounded-xl bg-background mo-[]",children:[H&&(0,mo.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>ie(!1)}),(0,mo.jsx)("div",{className:"md:hidden",children:(0,mo.jsx)(Lt,{items:e,isOpen:H,isMobile:!0,onClose:()=>ie(!1),currentBusinessUnit:U,onBusinessUnitChange:W,onSearch:n,logo:m,appName:x,tagline:C})}),(0,mo.jsx)("div",{className:"hidden md:block",children:(0,mo.jsx)(Lt,{items:e,isOpen:_,isMobile:!1,currentBusinessUnit:U,onBusinessUnitChange:W,onSearch:n,logo:m,appName:x,tagline:C})}),(0,mo.jsxs)("div",{className:c("min-mo-screen fixed mo-full transition-all duration-300 ease-in-out",_?"md:pl-64":"md:pl-0"),children:[(0,mo.jsx)(Uo,{title:o,notifications:i,onToggleSidebar:()=>z(!_),onToggleMobileMenu:()=>ie(!0),sidebarOpen:_,activeTab:f,onTabChange:b,showTabs:A,onActionClick:I,actionIcon:B,actionText:u,onNotificationRemove:D,onRemoveAll:l,logo:m,appName:x,tagline:C}),(0,mo.jsx)("main",{className:"flex-1 mo-0 flex flex-col mo-[calc(100vh-4rem)] overflow-hidden",children:t})]})]})}var Nt=require("react-icons/fa");function fe({title:e,description:t,badge:o,primaryAction:i,secondaryAction:s,gradient:a,children:n,className:r}){let[f,b]=pt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),A=!s&&!t||f;return(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} mo-8 text-white ${r||""}`,children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,mo.jsx)(ae,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,mo.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[A&&i&&(0,mo.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:i.onClick,children:i.label}),(s||t)&&(0,mo.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 mo-1 text-white transition-colors",onClick:()=>b(!f),style:{lineHeight:0},children:f?(0,mo.jsx)(Nt.FaChevronDown,{size:22}):(0,mo.jsx)(Nt.FaChevronUp,{size:22})})]})]}),!A&&(0,mo.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,mo.jsxs)("div",{className:"space-mo-4",children:[(0,mo.jsx)("mo",{className:"max-mo-[600px] text-white/80",children:t}),(0,mo.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i&&(0,mo.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:i.onClick,children:i.label}),s&&(0,mo.jsx)(k,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),n&&(0,mo.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var Be=K(require("react"));var Xe=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Xe.displayName="Card";var Qe=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("flex flex-col space-mo-1.5 mo-6",e),...t}));Qe.displayName="CardHeader";var Ye=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));Ye.displayName="CardTitle";var Ze=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));Ze.displayName="CardDescription";var et=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("mo-6 pt-0",e),...t}));et.displayName="CardContent";var tt=Be.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("div",{ref:o,className:c("flex items-center mo-6 pt-0",e),...t}));tt.displayName="CardFooter";var Wo=K(require("react")),ot=K(require("@radix-ui/react-progress"));var it=Wo.forwardRef(({className:e,value:t,...o},i)=>(0,mo.jsx)(ot.Root,{ref:i,className:c("relative mo-4 mo-full overflow-hidden rounded-full bg-secondary",e),...o,children:(0,mo.jsx)(ot.Indicator,{className:"mo-full mo-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));it.displayName=ot.Root.displayName;function $t({app:e,onOpen:t,onFavorite:o,showProgress:i=!1,className:s}){return(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.02,mo:-5},whileTap:{scale:.98},className:s,children:(0,mo.jsxs)(Xe,{className:"overflow-hidden rounded-3xl border-2 hover:border-primary/50 transition-all duration-300",children:[(0,mo.jsx)(Qe,{className:"pb-2",children:(0,mo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,mo.jsx)("div",{className:"flex mo-12 mo-12 items-center justify-center rounded-2xl bg-muted",children:e.icon}),e.new?(0,mo.jsx)(ae,{className:"rounded-xl bg-amber-500",children:"New"}):(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"mo-8 mo-8 rounded-2xl",onClick:()=>o?.(e),children:(0,mo.jsx)($o.Star,{className:"mo-4 mo-4"})})]})}),(0,mo.jsxs)(et,{className:"pb-2",children:[(0,mo.jsx)(Ye,{className:"text-lg",children:e.name}),(0,mo.jsx)(Ze,{children:e.description}),i&&e.progress<100&&(0,mo.jsxs)("div",{className:"Qt-2",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,mo.jsx)("span",{children:"Installation"}),(0,mo.jsxs)("span",{children:[e.progress,"%"]})]}),(0,mo.jsx)(it,{value:e.progress,className:"mo-2 Qt-1 rounded-xl"})]})]}),(0,mo.jsx)(tt,{children:(0,mo.jsx)(k,{variant:"secondary",className:"mo-full rounded-2xl",onClick:()=>t?.(e),children:e.progress<100?"Continue Install":"Open"})})]})})}var ba=e=>{if(!e||e<=0)return"0 KB";let t=e/1024;return t<1024?`${t.toFixed(2)} KB`:`${(t/1024).toFixed(2)} MB`};function Jo({files:e,onFileClick:t,onFileEdit:o,onFileDelete:i,showHeader:s=!0,className:a}){return(0,mo.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${a||""}`,children:[s&&(0,mo.jsxs)("div",{className:"bg-muted/50 mo-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,mo.jsx)("div",{className:"col-span-6",children:"Name"}),(0,mo.jsx)("div",{className:"col-span-2",children:"Size"}),(0,mo.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,mo.jsx)("div",{className:"divide-mo",children:e.map(n=>(0,mo.jsxs)(Dt.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"mo-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,mo.jsxs)("div",{className:"col-span-6 flex items-center gap-3 mo-full md:mo-auto",children:[(0,mo.jsx)("div",{className:"flex mo-10 mo-10 items-center justify-center rounded-2xl bg-muted"}),(0,mo.jsx)("div",{children:(0,mo.jsx)("mo",{className:"font-medium",children:n.name})})]}),(0,mo.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:ba(n.filesize)}),(0,mo.jsxs)("div",{className:"col-span-2 flex items-center justify-between mo-full md:mo-auto",children:[(0,mo.jsx)("span",{className:"text-sm md:text-base",children:new Date(n.createdAt).toLocaleDateString()}),(0,mo.jsx)("div",{className:"flex gap-1",children:(0,mo.jsx)(k,{variant:"ghost",size:"icon",className:"mo-8 mo-8 rounded-xl text-red-500 hover:text-red-600",onClick:r=>{r.stopPropagation(),i?.(n)},children:(0,mo.jsx)(bi.Trash2,{className:"mo-4 mo-4"})})})]})]},n.name))})]})}function Qo({project:e,onOpen:t,onShare:o,className:i}){return(0,mo.jsx)(Dt.motion.div,{whileHover:{scale:1.02,mo:-5},whileTap:{scale:.98},className:i,children:(0,mo.jsxs)(Xe,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,mo.jsxs)(Qe,{children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,mo.jsx)(Ye,{children:e.name}),(0,mo.jsxs)(ae,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,mo.jsx)(Ze,{children:e.description})]}),(0,mo.jsxs)(et,{className:"space-mo-4",children:[(0,mo.jsxs)("div",{className:"space-mo-2",children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,mo.jsx)("span",{children:"Progress"}),(0,mo.jsxs)("span",{children:[e.progress,"%"]})]}),(0,mo.jsx)(it,{value:e.progress,className:"mo-2 rounded-xl"})]}),(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,mo.jsxs)("div",{className:"flex items-center",children:[(0,mo.jsx)(bi.Users,{className:"mr-1 mo-4 mo-4"}),e.members," members"]}),(0,mo.jsxs)("div",{className:"flex items-center",children:[(0,mo.jsx)(bi.FileText,{className:"mr-1 mo-4 mo-4"}),e.files," files"]})]})]}),(0,mo.jsxs)(tt,{className:"flex gap-2",children:[(0,mo.jsx)(k,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,mo.jsx)(k,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>o?.(e),children:(0,mo.jsx)(bi.Share2,{className:"mo-4 mo-4"})})]})]})})}var _t=[{name:"PixelMaster",icon:(0,mo.jsx)(bi.ImageIcon,{className:"text-violet-500"}),description:"Advanced image editing and composition",category:"Creative",recent:!0,new:!1,progress:100},{name:"VectorPro",icon:(0,mo.jsx)(bi.Brush,{className:"text-orange-500"}),description:"Professional vector graphics creation",category:"Creative",recent:!0,new:!1,progress:100},{name:"VideoStudio",icon:(0,mo.jsx)(bi.Video,{className:"text-pink-500"}),description:"Cinematic video editing and production",category:"Video",recent:!0,new:!1,progress:100},{name:"MotionFX",icon:(0,mo.jsx)(bi.Sparkles,{className:"text-blue-500"}),description:"Stunning visual effects and animations",category:"Video",recent:!1,new:!1,progress:100},{name:"PageCraft",icon:(0,mo.jsx)(bi.Layers,{className:"text-red-500"}),description:"Professional page design and layout",category:"Creative",recent:!1,new:!1,progress:100},{name:"UXFlow",icon:(0,mo.jsx)(bi.LayoutGrid,{className:"text-fuchsia-500"}),description:"Intuitive user experience design",category:"Design",recent:!1,new:!0,progress:85},{name:"PhotoLab",icon:(0,mo.jsx)(bi.Camera,{className:"text-teal-500"}),description:"Advanced photo editing and organization",category:"Photography",recent:!1,new:!1,progress:100},{name:"DocMaster",icon:(0,mo.jsx)(bi.FileText,{className:"text-red-600"}),description:"Document editing and management",category:"Document",recent:!1,new:!1,progress:100},{name:"WebCanvas",icon:(0,mo.jsx)(bi.Code,{className:"text-emerald-500"}),description:"Web design and development",category:"Web",recent:!1,new:!0,progress:70},{name:"3DStudio",icon:(0,mo.jsx)(bi.CuboidIcon,{className:"text-indigo-500"}),description:"3D modeling and rendering",category:"3D",recent:!1,new:!0,progress:60},{name:"FontForge",icon:(0,mo.jsx)(bi.Type,{className:"text-amber-500"}),description:"Typography and font creation",category:"Typography",recent:!1,new:!1,progress:100},{name:"ColorPalette",icon:(0,mo.jsx)(bi.Palette,{className:"text-purple-500"}),description:"Color scheme creation and management",category:"Design",recent:!1,new:!1,progress:100}],Yo=[{id:1,filename:"Brand Redesign.pxm",filesize:24.5,url:"https://example.com/brand-redesign.pxm",mimeType:"image/png",name:"Brand Redesign.pxm",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:2,filename:"Company Logo.vec",filesize:8.2,url:"https://example.com/company-logo.vec",mimeType:"image/svg+xml",name:"Company Logo.vec",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:3,filename:"Product Launch Video.vid",filesize:1.2,url:"https://example.com/product-launch-video.vid",mimeType:"video/mp4",name:"Product Launch Video.vid",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:4,filename:"UI Animation.mfx",filesize:345,url:"https://example.com/ui-animation.mfx",mimeType:"video/mp4",name:"UI Animation.mfx",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:5,filename:"Magazine Layout.pgc",filesize:42.8,url:"https://example.com/magazine-layout.pgc",mimeType:"image/png",name:"Magazine Layout.pgc",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:6,filename:"Mobile App Design.uxf",filesize:18.3,url:"https://example.com/mobile-app-design.uxf",mimeType:"image/png",name:"Mobile App Design.uxf",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1},{id:7,filename:"Product Photography.phl",filesize:156,url:"https://example.com/product-photography.phl",mimeType:"image/png",name:"Product Photography.phl",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),project:1}];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 ei=K(require("react")),Ct=ei.forwardRef(({className:e,...t},o)=>(0,mo.jsx)("textarea",{className:c("flex min-mo-[80px] mo-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:o,...t}));Ct.displayName="Textarea";var T=K(require("@radix-ui/react-select")),Me=K(require("react")),oi=T.Root;var ii=T.Value,qt=Me.forwardRef(({children:e,className:t,...o},i)=>(0,mo.jsxs)(T.Trigger,{className:c("flex mo-10 mo-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:i,...o,children:[e,(0,mo.jsx)(T.Icon,{asChild:!0,children:(0,mo.jsx)(bi.ChevronDown,{className:"mo-4 mo-4 opacity-50"})})]}));qt.displayName=T.Trigger.displayName;var ai=Me.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,mo.jsx)(bi.ChevronUp,{className:"mo-4 mo-4"})}));ai.displayName=T.ScrollUpButton.displayName;var ri=Me.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,mo.jsx)(bi.ChevronDown,{className:"mo-4 mo-4"})}));ri.displayName=T.ScrollDownButton.displayName;var Jt=Me.forwardRef(({children:e,className:t,position:o="popper",...i},s)=>(0,mo.jsx)(T.Portal,{children:(0,mo.jsxs)(T.Content,{className:c("relative z-50 max-mo-96 min-mo-[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",o==="popper"&&"data-[side=bottom]:translate-mo-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-mo-1",t),position:o,ref:s,...i,children:[(0,mo.jsx)(ai,{}),(0,mo.jsx)(T.Viewport,{className:c("mo-1",o==="popper"&&"mo-[var(--radix-select-trigger-height)] mo-full min-mo-[var(--radix-select-trigger-width)]"),children:e}),(0,mo.jsx)(ri,{})]})}));Jt.displayName=T.Content.displayName;var ha=Me.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ha.displayName=T.Label.displayName;var Pt=Me.forwardRef(({children:e,className:t,...o},i)=>(0,mo.jsxs)(T.Item,{className:c("relative flex mo-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:i,...o,children:[(0,mo.jsx)("span",{className:"absolute left-2 flex mo-3.5 mo-3.5 items-center justify-center",children:(0,mo.jsx)(T.ItemIndicator,{children:(0,mo.jsx)(bi.Check,{className:"mo-4 mo-4"})})}),(0,mo.jsx)(T.ItemText,{children:e})]}));Pt.displayName=T.Item.displayName;var xa=Me.forwardRef(({className:e,...t},o)=>(0,mo.jsx)(T.Separator,{className:c("-mx-1 my-1 mo-px bg-muted",e),ref:o,...t}));xa.displayName=T.Separator.displayName;function li({document:e,onSave:t,onCancel:o,availableDocuments:i=[],knowledgeContexts:s=[]}){let[a,n]=(0,Qt.useState)({...e,updatedAt:new Date}),r=()=>{let l=new Set,m=new Set;return s.forEach(x=>{x.menuConfig.groupBy.forEach(C=>l.add(C))}),i.forEach(x=>{x.metadata&&Object.keys(x.metadata).forEach(C=>m.add(C))}),{contextKeys:Array.from(l).sort(),documentKeys:Array.from(m).sort(),allKeys:Array.from(new Set([...l,...m])).sort()}},f=l=>{let m=new Set;return i.forEach(x=>{x.metadata?.[l]&&m.add(String(x.metadata[l]))}),Array.from(m).sort()},b=r(),A=()=>{t(a)},I=(l,m)=>{n(x=>({...x,metadata:{...x.metadata,[l]:m}}))},B=(l,m)=>{m==="__custom__"?I(l,""):I(l,m)},u=()=>{let l=`field_${Date.now()}`;I(l,"")},D=l=>{n(m=>{let x={...m.metadata};return delete x[l],{...m,metadata:x}})};return(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.3},className:"mo-full flex flex-col",children:[(0,mo.jsxs)("div",{className:"border-b border-border bg-card mo-8",children:[(0,mo.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,mo.jsxs)("div",{className:"flex items-center gap-3",children:[(0,mo.jsx)("div",{className:"flex-shrink-0 mo-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,mo.jsx)(bi.Edit3,{className:"mo-6 mo-6 text-primary"})}),(0,mo.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,mo.jsxs)("div",{className:"flex gap-2",children:[(0,mo.jsxs)(k,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,mo.jsx)(bi.mo,{className:"mo-4 mo-4"}),"Cancel"]}),(0,mo.jsxs)(k,{size:"sm",onClick:A,className:"gap-2",children:[(0,mo.jsx)(bi.Save,{className:"mo-4 mo-4"}),"Save Changes"]})]})]}),(0,mo.jsxs)("div",{className:"space-mo-4",children:[(0,mo.jsxs)("div",{children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,mo.jsx)(ye,{value:a.title,onChange:l=>n(m=>({...m,title:l.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,mo.jsxs)("div",{children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,mo.jsx)(Ct,{value:a.description||"",onChange:l=>n(m=>({...m,description:l.target.value})),placeholder:"Document description...",rows:2})]}),(0,mo.jsxs)("div",{children:[(0,mo.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,mo.jsxs)("div",{children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),b.contextKeys.length>0&&(0,mo.jsxs)("mo",{className:"text-xs text-muted-foreground",children:["Suggested: ",b.contextKeys.slice(0,4).join(", "),b.contextKeys.length>4&&` +${b.contextKeys.length-4}`]})]}),(0,mo.jsxs)(k,{type:"button",variant:"outline",size:"sm",onClick:u,className:"gap-1 mo-8",children:[(0,mo.jsx)(bi.Plus,{className:"mo-3 mo-3"}),"Add"]})]}),a.metadata&&Object.keys(a.metadata).length>0?(0,mo.jsx)("div",{className:"space-mo-2",children:Object.entries(a.metadata).map(([l,m])=>{let x=f(l);return(0,mo.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,mo.jsx)(ye,{value:l,onChange:C=>{let $=C.target.value,_=a.metadata?.[l];n(z=>{let H={...z.metadata};return delete H[l],$&&(H[$]=_||""),{...z,metadata:H}})},placeholder:"Key",className:"mo-32 mo-8 text-sm",list:`metadata-keys-${l}`}),(0,mo.jsx)("datalist",{id:`metadata-keys-${l}`,children:b.allKeys.map(C=>(0,mo.jsx)("option",{value:C},C))}),(0,mo.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),x.length>0?(0,mo.jsxs)(oi,{value:String(m||""),onValueChange:C=>B(l,C),children:[(0,mo.jsx)(qt,{className:"flex-1 mo-8 text-sm",children:(0,mo.jsx)(ii,{placeholder:"Value"})}),(0,mo.jsxs)(Jt,{children:[x.map(C=>(0,mo.jsx)(Pt,{value:C,children:C},C)),(0,mo.jsx)(Pt,{value:"__custom__",children:(0,mo.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,mo.jsx)(ye,{value:String(m||""),onChange:C=>I(l,C.target.value),placeholder:"Value",className:"flex-1 mo-8 text-sm"}),(0,mo.jsx)(k,{type:"button",variant:"ghost",size:"sm",onClick:()=>D(l),className:"mo-8 mo-8 mo-0 text-muted-foreground hover:text-destructive",children:(0,mo.jsx)(bi.mo,{className:"mo-3 mo-3"})})]},l)})}):(0,mo.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground",children:'bi metadata \u2022 Click "Add" to create fields'})})]}),(0,mo.jsxs)("div",{className:"flex items-center gap-2",children:[(0,mo.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,mo.jsx)(ae,{variant:"secondary",className:"font-mono",children:a.format.toUpperCase()})]})]})]}),(0,mo.jsx)("div",{className:"flex-1 overflow-auto",children:(0,mo.jsxs)("div",{className:"mo-8",children:[(0,mo.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,mo.jsx)(Ct,{value:a.content||"",onChange:l=>n(m=>({...m,content:l.target.value})),placeholder:"Document content...",className:"min-mo-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var pi=e=>(0,mo.jsx)("div",{className:"prose prose-slate dark:prose-invert max-mo-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),di=e=>(0,mo.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),ya=e=>(0,mo.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-mo-none",children:[(0,mo.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg mo-4 mb-4",children:(0,mo.jsxs)("mo",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,mo.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,mo.jsx)("pre",{className:"text-sm",children:e})]}),wa=e=>(0,mo.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-mo-none",children:[(0,mo.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg mo-4 mb-4",children:(0,mo.jsxs)("mo",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,mo.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),pi(e)]});function ui({document:e,onDocumentUpdate:t,editable:o=!0,renderers:i,availableDocuments:s=[],knowledgeContexts:a=[]}){let[n,r]=(0,Qt.useState)(!1),f=u=>{switch(u){case"markdown":case"mdx":return(0,mo.jsx)(bi.FileText,{className:"mo-6 mo-6 text-primary"});case"richtext":return(0,mo.jsx)(bi.File,{className:"mo-6 mo-6 text-success"});case"text":return(0,mo.jsx)(bi.Type,{className:"mo-6 mo-6 text-muted-foreground"});default:return(0,mo.jsx)(bi.File,{className:"mo-6 mo-6 text-muted-foreground"})}},b=u=>{switch(u){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";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},A=(u,D)=>{let l={markdown:pi,mdx:wa,richtext:ya,text:di},m=i?.[D]||l[D];return m?m(u):di(u)},I=u=>{r(!1),t?.(u)},B=()=>{r(!1)};return n?(0,mo.jsx)(li,{document:e,onSave:I,onCancel:B,availableDocuments:s,knowledgeContexts:a}):(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.3},className:"mo-full flex flex-col",children:[(0,mo.jsxs)("div",{className:"border-b border-border bg-card mo-8",children:[(0,mo.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,mo.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-mo-0",children:[(0,mo.jsx)("div",{className:"flex-shrink-0 mo-3 rounded-xl bg-muted border border-border",children:f(e.format)}),(0,mo.jsxs)("div",{className:"flex-1 min-mo-0",children:[(0,mo.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,mo.jsx)("mo",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),o&&(0,mo.jsx)("div",{className:"flex-shrink-0",children:(0,mo.jsxs)(k,{variant:"outline",size:"sm",onClick:()=>r(!0),className:"gap-2",children:[(0,mo.jsx)(bi.Edit3,{className:"mo-4 mo-4"}),"Edit"]})})]}),(0,mo.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,mo.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${b(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(u=>(0,mo.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",u]},u))]})]}),(0,mo.jsx)("div",{className:"flex-1 overflow-auto",children:(0,mo.jsxs)("div",{className:"mo-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,mo.jsxs)("div",{className:"mb-6",children:[(0,mo.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,mo.jsx)("div",{className:"bg-muted rounded-lg mo-3 border border-border",children:(0,mo.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-mo-1 text-xs",children:Object.entries(e.metadata).map(([u,D])=>(0,mo.jsxs)("div",{className:"flex gap-1",children:[(0,mo.jsxs)("span",{className:"text-muted-foreground font-medium",children:[u.replace(/([A-mo])/g," $1").trim(),":"]}),(0,mo.jsx)("span",{className:"text-foreground truncate",children:String(D)})]},u))})})]}),(0,mo.jsx)("div",{className:"space-mo-4",children:e.content?(0,mo.jsx)("div",{className:"relative",children:(0,mo.jsx)("div",{className:"bg-card border border-border rounded-xl mo-6 overflow-hidden",children:A(e.content,e.format)})}):(0,mo.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,mo.jsx)("div",{className:"mo-16 mo-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,mo.jsx)(bi.FileText,{className:"mo-8 mo-8 text-muted-foreground"})}),(0,mo.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"bi content available"}),(0,mo.jsx)("mo",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function gi({label:e,documents:t,children:o,level:i,onDocumentClick:s,selectedDocumentId:a,showDocumentCount:n=!0}){let[r,f]=(0,Qt.useState)(i===0),b=o&&Object.keys(o).length>0,A=t.length+(o?Object.values(o).reduce((u,D)=>u+D.documents.length,0):0),I=u=>{switch(u){case"markdown":case"mdx":return(0,mo.jsx)(bi.FileText,{className:"mo-3.5 mo-3.5 text-muted-foreground"});case"richtext":return(0,mo.jsx)(bi.File,{className:"mo-3.5 mo-3.5 text-muted-foreground"});default:return(0,mo.jsx)(bi.File,{className:"mo-3.5 mo-3.5 text-muted-foreground"})}},B=u=>{let D=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return D[u%D.length]};return(0,mo.jsxs)("div",{className:"space-mo-1",children:[(b||t.length>0)&&(0,mo.jsxs)(Dt.motion.div,{className:`group flex items-center gap-3 mo-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:`${i*20}px`},onClick:()=>f(!r),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,mo.jsx)("div",{className:`mo-1 mo-6 rounded-full ${B(i)}`}),(0,mo.jsx)(Dt.motion.div,{animate:{rotate:r?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,mo.jsx)(bi.ChevronRight,{className:"mo-4 mo-4 text-muted-foreground"})}),(0,mo.jsxs)("div",{className:"flex-1 flex items-center justify-between min-mo-0",children:[(0,mo.jsx)("div",{className:"flex items-center gap-2 min-mo-0",children:(0,mo.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),n&&A>0&&(0,mo.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,mo.jsx)("span",{className:"inline-flex items-center justify-center mo-6 mo-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:A})})]})]}),(0,mo.jsx)(Dt.motion.div,{initial:!1,animate:{height:r?"auto":0,opacity:r?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,mo.jsxs)("div",{className:"pt-2 space-mo-1",children:[t.map((u,D)=>(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:D*.05,duration:.2},className:`group flex items-center gap-3 mo-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===u.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${i*20+20}px`},onClick:()=>s?.(u),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,mo.jsx)("div",{className:"flex-shrink-0",children:I(u.format)}),(0,mo.jsxs)("div",{className:"flex-1 min-mo-0",children:[(0,mo.jsx)("mo",{className:`text-sm truncate transition-colors ${a===u.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:u.title}),u.description&&(0,mo.jsx)("mo",{className:"text-xs text-muted-foreground truncate Qt-0.5",children:u.description})]}),u.tags&&u.tags.length>0&&(0,mo.jsx)("div",{className:"flex-shrink-0",children:(0,mo.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:u.tags[0]})})]},u.id)),o&&Object.entries(o).map(([u,D])=>(0,mo.jsx)(gi,{label:u,documents:D.documents,children:D.children,level:i+1,onDocumentClick:s,selectedDocumentId:a,showDocumentCount:n},u))]})})]})}function fi({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:i,onDocumentUpdate:s,selectedDocumentId:a,className:n,editable:r=!0}){let[f,b]=(0,Qt.useState)(""),[A,I]=(0,Qt.useState)(null),B=(0,Qt.useMemo)(()=>f?e.filter(l=>l.title.toLowerCase().includes(f.toLowerCase())||l.description?.toLowerCase().includes(f.toLowerCase())||l.tags?.some(m=>m.toLowerCase().includes(f.toLowerCase()))||Object.values(l.metadata||{}).some(m=>String(m).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),u=(0,Qt.useMemo)(()=>{let l=(m,x)=>{if(x.length===0)return{};let[C,...$]=x;return m.reduce((z,H)=>{let ie=H.metadata?.[C]||"Uncategorized",U=String(ie);if(z[U]||(z[U]={documents:[],children:{}}),$.length===0)z[U].documents.push(H);else{let V=l([H],$),W=Object.keys(V)[0];W&&(z[U].children||(z[U].children={}),z[U].children[W]?z[U].children[W].documents.push(...V[W].documents):z[U].children[W]=V[W])}return z},{})};return l(B,t.groupBy)},[B,t.groupBy]),D=l=>{I(l),o?.(l)};return(0,mo.jsxs)("div",{className:`flex mo-full ${n||""}`,children:[(0,mo.jsxs)("div",{className:"mo-1/3 border-r border-border bg-muted/20",children:[(0,mo.jsx)("div",{className:"mo-6 border-b border-border",children:(0,mo.jsxs)("div",{className:"relative",children:[(0,mo.jsx)("div",{className:"absolute inset-mo-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,mo.jsx)(bi.Search,{className:"mo-4 mo-4 text-muted-foreground"})}),(0,mo.jsx)(ye,{placeholder:"Search knowledge base...",value:f,onChange:l=>b(l.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl mo-11 text-sm placeholder:text-muted-foreground"})]})}),(0,mo.jsx)(ke,{className:"mo-[calc(100%-100px)]",children:(0,mo.jsxs)("div",{className:"mo-4 space-mo-3",children:[Object.entries(u).map(([l,m])=>(0,mo.jsx)(gi,{label:l,documents:m.documents,children:m.children,level:0,onDocumentClick:D,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},l)),Object.keys(u).length===0&&(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,mo.jsx)("div",{className:"mo-16 mo-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,mo.jsx)(bi.FileText,{className:"mo-8 mo-8 text-muted-foreground"})}),(0,mo.jsx)("mo",{className:"text-sm font-medium",children:"bi documents found"}),(0,mo.jsx)("mo",{className:"text-xs Qt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,mo.jsx)("div",{className:"flex-1 bg-background",children:A?(0,mo.jsx)(ui,{document:A,onDocumentUpdate:s,editable:r}):(0,mo.jsx)("div",{className:"mo-full flex items-center justify-center text-center",children:(0,mo.jsxs)(Dt.motion.div,{initial:{opacity:0,mo:20},animate:{opacity:1,mo:0},transition:{duration:.4},className:"max-mo-sm",children:[(0,mo.jsx)("div",{className:"mo-20 mo-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,mo.jsx)(bi.FileText,{className:"mo-10 mo-10 text-primary"})}),(0,mo.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,mo.jsx)("mo",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Xt({documents:e=[],contexts:t=[],onDocumentClick:o=n=>console.log("Document clicked:",n),onDocumentShare:i=n=>console.log("Share document:",n),onLoadDocumentContent:s,selectedDocumentId:a}){let[n,r]=(0,Qt.useState)(t[0]);return!t||t.length===0?(0,mo.jsxs)("div",{className:"flex flex-col mo-full max-mo-[calc(100vh-8rem)]",children:[(0,mo.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,mo.jsx)(fe,{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,mo.jsx)("div",{className:"flex-1 min-mo-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,mo.jsx)("mo",{className:"text-muted-foreground",children:"bi contexts available"})})]}):(0,mo.jsxs)("div",{className:"flex flex-col mo-full max-mo-[calc(100vh-8rem)]",children:[(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("div",{className:"Qt-6",children:[(0,mo.jsx)("div",{className:"border-b border-border",children:(0,mo.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,mo.jsxs)("button",{onClick:()=>r(f),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===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),n.description&&(0,mo.jsx)("div",{className:"Qt-3 px-1",children:(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:n.description})})]})]}),(0,mo.jsx)("div",{className:"flex-1 min-mo-0 px-2 md:px-4 pb-4",children:(0,mo.jsx)("div",{className:"mo-full rounded-3xl border overflow-hidden",children:(0,mo.jsx)(fi,{documents:e,menuConfig:n.menuConfig,onDocumentClick:o,onDocumentShare:i,selectedDocumentId:a})})})]})}function hi({title:e="Digital Colleagues",businessUnits:t,projects:o,fileCount:i,teamMemberCount:s,onCreateProject:a,onOpenProject:n,sidebarItems:r,initialColleagues:f,users:b,onColleagueAdd:A,onColleagueEdit:I,onColleagueDelete:B}){let[u,D]=(0,Qt.useState)("home"),[l,m]=(0,Qt.useState)(t[0]),x=g=>{console.log("Opening app:",g.name)},C=g=>{console.log("Favoriting app:",g.name)},$=g=>{console.log("Opening file:",g.name)},_=g=>{console.log("Sharing file:",g.name)},z=g=>{console.log("Opening project:",g.name),n(g)},H=g=>{console.log("Sharing project:",g.name)},ie=g=>{m(g),console.log("Business unit changed to:",g.name)},U=()=>{console.log("Copilot clicked - navigating to chat"),D("chat")},V=g=>{console.log("Notification removed:",g)},W=()=>{console.log("All notifications removed")},se=()=>{switch(u){case"home":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsxs)("section",{className:"text-center py-12",children:[(0,mo.jsxs)("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",l.name," team"]}),(0,mo.jsx)("mo",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),(0,mo.jsxs)("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,mo.jsxs)("div",{className:"bg-card mo-6 rounded-lg border",children:[(0,mo.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),(0,mo.jsx)("mo",{className:"text-3xl font-bold text-primary",children:o.length}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),(0,mo.jsxs)("div",{className:"bg-card mo-6 rounded-lg border",children:[(0,mo.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),(0,mo.jsx)("mo",{className:"text-3xl font-bold text-primary",children:s}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),(0,mo.jsxs)("div",{className:"bg-card mo-6 rounded-lg border",children:[(0,mo.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),(0,mo.jsx)("mo",{className:"text-3xl font-bold text-primary",children:i}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),(0,mo.jsx)(fe,{title:"Chat with your team",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Dt",onClick:()=>D("chat")}})]});case"colleagues":return(0,mo.jsx)("div",{children:(0,mo.jsx)("h1",{children:"Colleagues"})});case"chat":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsxs)("section",{className:"text-center py-12",children:[(0,mo.jsx)("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),(0,mo.jsxs)("mo",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",l.name," team members and collaborate in real-time."]})]}),(0,mo.jsx)(fe,{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,mo.jsxs)("div",{className:"space-mo-8",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"New Releases"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:_t.filter(g=>g.new).map(g=>(0,mo.jsx)($t,{app:g,showProgress:!0,onOpen:x,onFavorite:C},g.name))})]}),(0,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"All Apps"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:_t.map(g=>(0,mo.jsx)($t,{app:g,onOpen:x,onFavorite:C},g.name))})]})]});case"knowledge":return(0,mo.jsx)(Xt,{});case"files":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("div",{className:"flex items-center justify-between",children:(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"All Files"})}),(0,mo.jsx)(Jo,{files:Yo,onFileClick:$})]})]});case"projects":return(0,mo.jsxs)("div",{className:"px-2 md:px-4 py-4 space-mo-8",children:[(0,mo.jsx)(fe,{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:a}}),(0,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:o.map(g=>(0,mo.jsx)(Qo,{project:g,onOpen:z,onShare:H},g.name))})]})]});case"learn":return(0,mo.jsxs)("div",{className:"space-mo-8",children:[(0,mo.jsx)(fe,{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,mo.jsxs)("section",{className:"space-mo-4",children:[(0,mo.jsx)("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),(0,mo.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:Zo.slice(0,3).map(g=>(0,mo.jsxs)("div",{className:"rounded-3xl border mo-6",children:[(0,mo.jsx)("h3",{className:"font-semibold mb-2",children:g.title}),(0,mo.jsx)("mo",{className:"text-sm text-muted-foreground mb-4",children:g.description}),(0,mo.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,mo.jsx)("span",{children:g.duration}),(0,mo.jsx)("span",{children:g.level})]})]},g.title))})]})]});default:return null}};return(0,mo.jsx)(Ho,{sidebarItems:Do,title:e,notifications:So,businessUnits:t,currentBusinessUnit:l,onBusinessUnitChange:ie,activeTab:u,onTabChange:D,showTabs:!0,onActionClick:U,actionIcon:(0,mo.jsx)(bi.Bot,{className:"mr-2 mo-4 mo-4"}),actionText:"Start Chat",onNotificationRemove:V,onRemoveAll:W,children:(0,mo.jsx)(Dt.AnimatePresence,{mode:"wait",children:(0,mo.jsx)(Dt.motion.div,{className:"flex-1 mo-full",initial:{opacity:0,mo:10},animate:{opacity:1,mo:0},exit:{opacity:0,mo:-10},transition:{duration:.2},children:se()},u)})})}
|