cortex-react-components 2.13.8 → 2.13.9

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.
Files changed (148) hide show
  1. package/dist/{chunk-NPGGDQ6F.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-6FHRZHAJ.mjs → chunk-2HWSTGAP.mjs} +1 -1
  3. package/dist/{chunk-B2TBKNIJ.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  4. package/dist/{chunk-FX6IXEMQ.mjs → chunk-4SRUEQTP.mjs} +1 -1
  5. package/dist/{chunk-KBEXWUKI.mjs → chunk-5NIEZE7A.mjs} +1 -1
  6. package/dist/{chunk-SPAOEUCG.mjs → chunk-7OMPPFGG.mjs} +1 -1
  7. package/dist/{chunk-M527EJIX.mjs → chunk-AMVJPDM3.mjs} +1 -1
  8. package/dist/{chunk-XX4GSGRP.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  9. package/dist/{chunk-KY3ELFX5.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  10. package/dist/chunk-CJDUN6R4.mjs +4 -0
  11. package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
  12. package/dist/{chunk-MAZGVZJN.mjs → chunk-DMCFEJ2C.mjs} +1 -1
  13. package/dist/{chunk-7V2BDLRI.mjs → chunk-DPZHVBGG.mjs} +1 -1
  14. package/dist/{chunk-QWFFSMKK.mjs → chunk-F64CA5CH.mjs} +1 -1
  15. package/dist/{chunk-K4MFTVNB.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  16. package/dist/{chunk-FRXZ2OKW.mjs → chunk-FYQBRCQM.mjs} +1 -1
  17. package/dist/chunk-G34OMFQI.mjs +4 -0
  18. package/dist/{chunk-57PJ7CHJ.mjs → chunk-GAZHKHGB.mjs} +1 -1
  19. package/dist/{chunk-VBSFVJM5.mjs → chunk-GETYSIZV.mjs} +1 -1
  20. package/dist/{chunk-DHXQXFOB.mjs → chunk-GLBQHEMQ.mjs} +1 -1
  21. package/dist/chunk-GS3P2V76.mjs +4 -0
  22. package/dist/{chunk-S4ES6P3Y.mjs → chunk-HDKHF3EA.mjs} +1 -1
  23. package/dist/{chunk-N52FSTLG.mjs → chunk-HKMNAXLM.mjs} +1 -1
  24. package/dist/{chunk-LAQHJZ32.mjs → chunk-JGX2G2OC.mjs} +1 -1
  25. package/dist/{chunk-MUHR5KA5.mjs → chunk-KZAYLEFB.mjs} +1 -1
  26. package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
  27. package/dist/{chunk-BDDEMCAH.mjs → chunk-MFCVMJBO.mjs} +1 -1
  28. package/dist/{chunk-RUZVSK25.mjs → chunk-MO4HRQEL.mjs} +1 -1
  29. package/dist/{chunk-4IVQWIYV.mjs → chunk-OQCMTGML.mjs} +1 -1
  30. package/dist/{chunk-Q7KKN6MH.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  31. package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
  32. package/dist/{chunk-2VOOH4YJ.mjs → chunk-PNUBVBSR.mjs} +1 -1
  33. package/dist/{chunk-TUACRDU3.mjs → chunk-PTZT4QJW.mjs} +1 -1
  34. package/dist/{chunk-3MCZBHGA.mjs → chunk-QQFIVSBW.mjs} +1 -1
  35. package/dist/chunk-R5SXUWYU.mjs +4 -0
  36. package/dist/{chunk-6DQ7FEQQ.mjs → chunk-R6AYIVIR.mjs} +1 -1
  37. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  38. package/dist/{chunk-75XBZHOC.mjs → chunk-U3FYDDE2.mjs} +1 -1
  39. package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
  40. package/dist/chunk-Y7H3EUBR.mjs +4 -0
  41. package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  42. package/dist/components/AdvancedComponents/user-selection.d.ts +1 -1
  43. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  44. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  45. package/dist/components/Blocks/Banner.mjs +1 -1
  46. package/dist/components/Blocks/CallToAction.mjs +1 -1
  47. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  48. package/dist/components/Blocks/Content.mjs +1 -1
  49. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  50. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  51. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  52. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  53. package/dist/components/Blocks/index.mjs +1 -1
  54. package/dist/components/CRM/CogeBoard.mjs +1 -1
  55. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  56. package/dist/components/CRM/index.mjs +1 -1
  57. package/dist/components/Cards/ContentCard.mjs +1 -1
  58. package/dist/components/Cards/FeatureCard.mjs +1 -1
  59. package/dist/components/Cards/index.mjs +1 -1
  60. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  61. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  62. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  63. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  64. package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +1 -1
  65. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  66. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  67. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  68. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  69. package/dist/components/DigitalColleagues/colleague-form.d.ts +1 -1
  70. package/dist/components/DigitalColleagues/colleague-form.js +1 -1
  71. package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +1 -1
  72. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -2
  73. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  74. package/dist/components/DigitalColleagues/index.js +1 -1
  75. package/dist/components/DigitalColleagues/index.mjs +1 -1
  76. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  77. package/dist/components/Foundary/MainPage.mjs +1 -1
  78. package/dist/components/Foundary/Pages/dashboardpage.d.ts +1 -1
  79. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  80. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  81. package/dist/components/Foundary/Views/ColleaguesView.d.ts +1 -1
  82. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  83. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  84. package/dist/components/Foundary/Views/index.js +1 -1
  85. package/dist/components/Foundary/Views/index.mjs +1 -1
  86. package/dist/components/Foundary/index.js +1 -1
  87. package/dist/components/Foundary/index.mjs +1 -1
  88. package/dist/components/HeaderFooter/Header.mjs +1 -1
  89. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  90. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  91. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  92. package/dist/components/HeaderFooter/index.mjs +1 -1
  93. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  94. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  95. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  96. package/dist/components/Heros/PostHero/index.mjs +1 -1
  97. package/dist/components/Heros/RenderHero.mjs +1 -1
  98. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  99. package/dist/components/Heros/index.mjs +1 -1
  100. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  101. package/dist/components/Layouts/Print.mjs +1 -1
  102. package/dist/components/Layouts/SlideShow.mjs +1 -1
  103. package/dist/components/Layouts/index.mjs +1 -1
  104. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  105. package/dist/components/Menus/SidebarRight.mjs +1 -1
  106. package/dist/components/Menus/index.mjs +1 -1
  107. package/dist/components/Other/index.mjs +1 -1
  108. package/dist/components/Payload/RichText/index.mjs +1 -1
  109. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  110. package/dist/components/Payload/index.mjs +1 -1
  111. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  112. package/dist/components/Projects/ProjectPage.mjs +1 -1
  113. package/dist/components/Projects/ProjectView.mjs +1 -1
  114. package/dist/components/Projects/index.mjs +1 -1
  115. package/dist/components/index.js +14 -14
  116. package/dist/components/index.mjs +1 -1
  117. package/dist/components/ui/index.mjs +1 -1
  118. package/dist/components/ui/sidebar.mjs +1 -1
  119. package/dist/index.js +19 -19
  120. package/dist/index.mjs +1 -1
  121. package/dist/metafile-cjs.json +1 -1
  122. package/dist/metafile-esm.json +1 -1
  123. package/dist/pages/Blog.mjs +1 -1
  124. package/dist/pages/Documentation.mjs +1 -1
  125. package/dist/pages/IndexPage.mjs +1 -1
  126. package/dist/pages/Intranet.mjs +1 -1
  127. package/dist/pages/LandingPage.mjs +1 -1
  128. package/dist/pages/Page.mjs +1 -1
  129. package/dist/pages/Publish.mjs +1 -1
  130. package/dist/pages/Website.mjs +1 -1
  131. package/dist/sections/AboutSection.mjs +1 -1
  132. package/dist/sections/BlogDetail.mjs +1 -1
  133. package/dist/sections/BlogList.mjs +1 -1
  134. package/dist/sections/BlogListSection.mjs +1 -1
  135. package/dist/sections/ContactSection.mjs +1 -1
  136. package/dist/sections/PageSections.mjs +1 -1
  137. package/dist/sections/PricingSection.mjs +1 -1
  138. package/dist/sections/ServiceDetail.mjs +1 -1
  139. package/dist/sections/ServiceDetailSection.mjs +1 -1
  140. package/dist/sections/ServiceSection.mjs +1 -1
  141. package/dist/sections/form/index.mjs +1 -1
  142. package/dist/sections/index.mjs +1 -1
  143. package/package.json +1 -1
  144. package/dist/chunk-LVXEY6OU.mjs +0 -4
  145. package/dist/chunk-QW5KPNB3.mjs +0 -4
  146. package/dist/chunk-USOGZB6R.mjs +0 -4
  147. package/dist/chunk-XADBBCGL.mjs +0 -4
  148. package/dist/chunk-ZB7RDJRP.mjs +0 -4
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as N}from"./chunk-ZB7RDJRP.mjs";import{a as x}from"./chunk-KG3MNGT6.mjs";import{a as n}from"./chunk-R4SE63GR.mjs";import{a as r,b as f,d as y}from"./chunk-DXRAJQMA.mjs";import{a as h}from"./chunk-DSSHQ6K7.mjs";import{a as v}from"./chunk-KPTGYVDM.mjs";import{a}from"./chunk-Z22NSJMF.mjs";import{a as b}from"./chunk-E6UOMRHI.mjs";import{a as g,b as u}from"./chunk-NPVUICIF.mjs";import{useState as C}from"react";import{motion as G,AnimatePresence as Y}from"motion/react";import{Bot as z}from"lucide-react";import{jsx as e,jsxs as o}from"react/jsx-runtime";function K({title:k="Digital Colleagues",businessUnits:c,projects:m,fileCount:A,teamMemberCount:w,onCreateProject:P,onOpenProject:j,sidebarItems:W,initialColleagues:F,users:S,onColleagueAdd:T,onColleagueEdit:U,onColleagueDelete:I}){let[i,s]=C("home"),[l,O]=C(c[0]),d=t=>{console.log("Opening app:",t.name)},p=t=>{console.log("Favoriting app:",t.name)},B=t=>{console.log("Opening file:",t.name)},_=t=>{console.log("Sharing file:",t.name)},D=t=>{console.log("Opening project:",t.name),j(t)},R=t=>{console.log("Sharing project:",t.name)},L=t=>{O(t),console.log("Business unit changed to:",t.name)},E=()=>{console.log("Copilot clicked - navigating to chat"),s("chat")},H=t=>{console.log("Notification removed:",t)},M=()=>{console.log("All notifications removed")},V=()=>{switch(i){case"home":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[o("section",{className:"text-center py-12",children:[o("h1",{className:"text-4xl font-bold mb-4",children:["Welcome to the ",l.name," team"]}),e("p",{className:"text-xl text-muted-foreground mb-8",children:"This is your collaborative workspace for productivity and knowledge sharing."})]}),o("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Projects"}),e("p",{className:"text-3xl font-bold text-primary",children:m.length}),e("p",{className:"text-sm text-muted-foreground",children:"Active projects"})]}),o("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Team Members"}),e("p",{className:"text-3xl font-bold text-primary",children:w}),e("p",{className:"text-sm text-muted-foreground",children:"Collaborators"})]}),o("div",{className:"bg-card p-6 rounded-lg border",children:[e("h3",{className:"text-lg font-semibold mb-2",children:"Files"}),e("p",{className:"text-3xl font-bold text-primary",children:A}),e("p",{className:"text-sm text-muted-foreground",children:"Project files"})]})]}),e(a,{title:"Chat with your team",gradient:"bg-gradient-to-r from-pink-600 via-red-600 to-orange-600",primaryAction:{label:"Go",onClick:()=>s("chat")}})]});case"colleagues":return e(N,{initialColleagues:F,availableUsers:S,onColleagueAdd:T,onColleagueEdit:U,onColleagueDelete:I});case"chat":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[o("section",{className:"text-center py-12",children:[e("h1",{className:"text-4xl font-bold mb-4",children:"Team Chat"}),o("p",{className:"text-xl text-muted-foreground mb-8",children:["Connect with your ",l.name," team members and collaborate in real-time."]})]}),e(a,{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 o("div",{className:"space-y-8",children:[e(a,{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")}}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"New Releases"}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:r.filter(t=>t.new).map(t=>e(n,{app:t,showProgress:!0,onOpen:d,onFavorite:p},t.name))})]}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"All Apps"}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:r.map(t=>e(n,{app:t,onOpen:d,onFavorite:p},t.name))})]})]});case"knowledge":return e(x,{});case"files":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(a,{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")}}),o("section",{className:"space-y-4",children:[e("div",{className:"flex items-center justify-between",children:e("h2",{className:"text-2xl font-semibold",children:"All Files"})}),e(h,{files:f,onFileClick:B})]})]});case"projects":return o("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(a,{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:P}}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),e("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:m.map(t=>e(v,{project:t,onOpen:D,onShare:R},t.name))})]})]});case"learn":return o("div",{className:"space-y-8",children:[e(a,{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")}}),o("section",{className:"space-y-4",children:[e("h2",{className:"text-2xl font-semibold",children:"Featured Tutorials"}),e("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:y.slice(0,3).map(t=>o("div",{className:"rounded-3xl border p-6",children:[e("h3",{className:"font-semibold mb-2",children:t.title}),e("p",{className:"text-sm text-muted-foreground mb-4",children:t.description}),o("div",{className:"flex items-center justify-between text-sm",children:[e("span",{children:t.duration}),e("span",{children:t.level})]})]},t.title))})]})]});default:return null}};return e(b,{sidebarItems:g,title:k,notifications:u,businessUnits:c,currentBusinessUnit:l,onBusinessUnitChange:L,activeTab:i,onTabChange:s,showTabs:!0,onActionClick:E,actionIcon:e(z,{className:"mr-2 h-4 w-4"}),actionText:"Start Chat",onNotificationRemove:H,onRemoveAll:M,children:e(Y,{mode:"wait",children:e(G.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:V()},i)})})}export{K as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as c}from"./chunk-L5JPAKPM.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{a as f,b as g,c as x}from"./chunk-SOLZ4VQH.mjs";import{b as r}from"./chunk-CSBGSBEU.mjs";import{a as o,b as v,c as N,e as i}from"./chunk-YO3GQYRJ.mjs";import{useState as U,useMemo as b}from"react";import{Search as L,User as u,Check as T,ChevronLeft as A}from"lucide-react";import{motion as h,AnimatePresence as B}from"motion/react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function $({users:m,onUserSelect:C,onCancel:y,selectedUserId:d}){let[s,w]=U(""),n=b(()=>m.filter(a=>a.name.toLowerCase().includes(s.toLowerCase())||a.email.toLowerCase().includes(s.toLowerCase())||a.role.toLowerCase().includes(s.toLowerCase())||(a.skills||[]).some(S=>S.toLowerCase().includes(s.toLowerCase()))),[m,s]),k=a=>{C(a)};return e("div",{className:"px-2 md:px-4 py-4 space-y-6",children:e(B,{mode:"wait",children:t(h.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[t("div",{className:"flex items-center gap-4 mb-6",children:[t(p,{variant:"ghost",onClick:y,className:"gap-2",children:[e(A,{className:"h-4 w-4"}),"Back"]}),t("div",{children:[e("h1",{className:"text-3xl font-bold",children:"Select User"}),e("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),e(o,{className:"container",children:e(i,{className:"pt-6",children:e("div",{className:"flex flex-col md:flex-row gap-4",children:e("div",{className:"flex-1",children:t("div",{className:"relative",children:[e(L,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(c,{placeholder:"Search users by name, email, role, or skills...",value:s,onChange:a=>w(a.target.value),className:"pl-9"})]})})})})}),e("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:n.map(a=>e(h.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:t(o,{className:`cursor-pointer transition-all hover:shadow-lg ${d===a.id?"ring-2 ring-primary":""}`,onClick:()=>k(a),children:[e(v,{className:"pb-3",children:t("div",{className:"flex items-start justify-between",children:[t("div",{className:"flex items-center gap-3",children:[t(f,{children:[e(g,{src:a.avatar,alt:a.name}),e(x,{children:e(u,{className:"h-4 w-4"})})]}),t("div",{children:[e(N,{className:"text-lg",children:a.name}),e("p",{className:"text-sm text-muted-foreground",children:a.role})]})]}),d===a.id&&e(T,{className:"h-5 w-5 text-primary"})]})}),e(i,{className:"pt-0",children:t("div",{className:"space-y-3",children:[t("div",{children:[e("p",{className:"text-sm text-muted-foreground",children:"Email"}),e("p",{className:"text-sm font-medium",children:a.email})]}),t("div",{children:[e("p",{className:"text-sm text-muted-foreground",children:"Department"}),e(r,{variant:"secondary",children:a.department})]}),a.location&&t("div",{children:[e("p",{className:"text-sm text-muted-foreground",children:"Location"}),e("p",{className:"text-sm",children:a.location})]}),a.skills&&a.skills.length>0&&t("div",{children:[e("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),t("div",{className:"flex flex-wrap gap-1",children:[a.skills.slice(0,3).map(l=>e(r,{variant:"outline",className:"text-xs",children:l},l)),a.skills.length>3&&t(r,{variant:"outline",className:"text-xs",children:["+",a.skills.length-3]})]})]})]})})]})},a.id))}),n.length===0&&e(o,{className:"container mt-4",children:e(i,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[e(u,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),e("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}export{$ as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as v}from"./chunk-L5JPAKPM.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{a as C,c as x}from"./chunk-SOLZ4VQH.mjs";import{b as l}from"./chunk-CSBGSBEU.mjs";import{a as n,b as u,c as g,e as r}from"./chunk-YO3GQYRJ.mjs";import{useState as f,useMemo as I}from"react";import{Search as L,Bot as N,ChevronLeft as j,Copy as T,Calendar as F,Users as P}from"lucide-react";import{motion as h,AnimatePresence as U}from"motion/react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function Q({digitalColleagues:m,onColleagueClone:b,onCancel:w,selectedColleagueId:y}){let[i,D]=f(""),[o,k]=f("all"),c=I(()=>m.filter(e=>{let s=e.name.toLowerCase().includes(i.toLowerCase())||e.jobDescription.toLowerCase().includes(i.toLowerCase())||e.capabilities.some(B=>B.toLowerCase().includes(i.toLowerCase()))||e.workInstructions.toLowerCase().includes(i.toLowerCase()),S=o==="all"||e.status===o;return s&&S}),[m,i,o]),p=e=>{let s={...e,id:`${e.id}-clone-${Date.now()}`,name:`${e.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};b(s)},A=e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(e);return t("div",{className:"px-2 md:px-4 py-4 space-y-6",children:t(U,{mode:"wait",children:a(h.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[a("div",{className:"flex items-center gap-4 mb-6",children:[a(d,{variant:"ghost",onClick:w,className:"gap-2",children:[t(j,{className:"h-4 w-4"}),"Back"]}),a("div",{children:[t("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),t("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),t(n,{children:t(r,{className:"pt-6",children:a("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:a("div",{className:"relative",children:[t(L,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(v,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:e=>D(e.target.value),className:"pl-9"})]})}),a("select",{value:o,onChange:e=>k(e.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[t("option",{value:"all",children:"All Status"}),t("option",{value:"active",children:"Active"}),t("option",{value:"inactive",children:"Inactive"})]})]})})}),t("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(e=>t(h.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:a(n,{className:`cursor-pointer transition-all hover:shadow-lg ${y===e.id?"ring-2 ring-primary":""}`,onClick:()=>p(e),children:[t(u,{className:"pb-3",children:a("div",{className:"flex items-start justify-between",children:[a("div",{className:"flex items-center gap-3",children:[t(C,{children:t(x,{className:"bg-blue-100",children:t(N,{className:"h-4 w-4 text-blue-600"})})}),a("div",{children:[a(g,{className:"text-lg flex items-center gap-2",children:[e.name,t(l,{variant:e.status==="active"?"default":"secondary",className:"text-xs",children:e.status})]}),a("p",{className:"text-sm text-muted-foreground",children:["v",e.version]})]})]}),a(d,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:s=>{s.stopPropagation(),p(e)},children:[t(T,{className:"h-3 w-3"}),"Clone"]})]})}),t(r,{className:"pt-0",children:a("div",{className:"space-y-3",children:[a("div",{children:[t("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),t("p",{className:"text-sm line-clamp-2",children:e.jobDescription})]}),e.capabilities&&e.capabilities.length>0&&a("div",{children:[t("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),a("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,3).map(s=>t(l,{variant:"outline",className:"text-xs",children:s},s)),e.capabilities.length>3&&a(l,{variant:"outline",className:"text-xs",children:["+",e.capabilities.length-3]})]})]}),a("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[a("div",{className:"flex items-center gap-1",children:[t(F,{className:"h-3 w-3"}),a("span",{children:["Updated ",A(e.lastUpdated)]})]}),e.knowledge&&a("div",{className:"flex items-center gap-1",children:[t(P,{className:"h-3 w-3"}),a("span",{children:[e.knowledge.length," docs"]})]})]}),e.workInstructions&&a("div",{children:[t("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),t("p",{className:"text-xs line-clamp-2",children:e.workInstructions})]})]})})]})},e.id))}),c.length===0&&t(n,{children:t(r,{className:"pt-6",children:a("div",{className:"text-center py-8",children:[t(N,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),t("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}export{Q as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as le}from"./chunk-CO6AQNZ5.mjs";import{a as N}from"./chunk-AOQPH32M.mjs";import{a as I}from"./chunk-47OE4ZPY.mjs";import{a as ee}from"./chunk-6XUIHSKG.mjs";import{a as te}from"./chunk-XADBBCGL.mjs";import{a as _}from"./chunk-USOGZB6R.mjs";import{a as Y}from"./chunk-Z22NSJMF.mjs";import{a as Z}from"./chunk-FGEFYI5E.mjs";import{a as H,c as U,d as $,g as F,i as p}from"./chunk-YFAZQYK4.mjs";import{a as X}from"./chunk-L5JPAKPM.mjs";import{b as V}from"./chunk-ZUA4KNIR.mjs";import{a as g,b as x,c as D,e as u}from"./chunk-YO3GQYRJ.mjs";import{useEffect as ve,useState as s}from"react";import{Plus as ye,Search as he,Users as ae,Bot as we,User as xe,Filter as De}from"lucide-react";import{motion as Ne,AnimatePresence as Se}from"motion/react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function be({initialColleagues:S,onColleagueAdd:b,onColleagueEdit:O,onColleagueDelete:ie,compactView:d=!1,departments:oe=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ne,availableUsers:L=[],existingDigitalColleagues:j=[]}){let[n,m]=s(S||[]),[r,P]=s(""),[C,B]=s("all"),[f,M]=s("all"),[h,se]=s("all"),[q,v]=s(null),[A,w]=s(null);ve(()=>{m(S||[])},[S]);let re=Array.isArray(L)?L:[],z=Array.isArray(j)?j:[],[c,i]=s("main"),y=n.filter(e=>{if(!e||!e.name)return!1;let o=e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&(e.email?.toLowerCase().includes(r.toLowerCase())||e.role?.toLowerCase().includes(r.toLowerCase()))||e.type==="digital"&&e.jobDescription?.toLowerCase().includes(r.toLowerCase()),l=C==="all"||e.type==="human"&&e.department===C,K=f==="all"||e.status===f;return o&&l&&K}),G=y.filter(e=>e.type==="human"),W=y.filter(e=>e.type==="digital"),J=()=>{i("typeSelection")},T=e=>{e.type==="digital"&&(v(e),i("form")),console.log("Editing colleague:",e),O?.(e)},k=e=>{e.type==="digital"&&(w(e),i("view"))},de=e=>{let o={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,role:e.role,department:e.department,phone:e.phone,location:e.location,timezone:e.timezone,skills:e.skills||[],bio:e.bio,status:"active",joinedDate:new Date,lastActive:new Date};m(l=>[...l,o]),b?.(o),i("main")},me=e=>{if(!e||!e.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",e);return}m(o=>[...o,e]),b?.(e),i("main")},ce=()=>{v(null),i("form")},Q=e=>{if(!e||!e.id){console.error("Invalid colleague provided to handleSaveColleague:",e);return}q?(m(o=>o.map(l=>l.id===e.id?e:l)),O?.(e)):(m(o=>[...o,e]),b?.(e)),i("main"),v(null)},ge=()=>{i("main"),v(null),w(null)},ue=()=>{i("main"),w(null)},Ae=()=>{A&&(v(A),w(null),i("form"))},E=e=>{ie?.(e,n.find(o=>o.id===e).type),m(o=>o.filter(l=>l.id!==e))},pe=()=>{P(""),B("all"),M("all")},R=()=>{let e=[];return z.forEach(l=>{l.knowledge&&Array.isArray(l.knowledge)&&e.push(...l.knowledge),l.coreKnowledge&&Array.isArray(l.coreKnowledge)&&e.push(...l.coreKnowledge)}),n.forEach(l=>{l.type==="digital"&&(l.knowledge&&Array.isArray(l.knowledge)&&e.push(...l.knowledge),l.coreKnowledge&&Array.isArray(l.coreKnowledge)&&e.push(...l.coreKnowledge))}),e.filter((l,K,Ce)=>K===Ce.findIndex(fe=>fe.id===l.id))};return c==="typeSelection"?t(ee,{onSelectHuman:()=>i("userSelection"),onSelectDigital:()=>i("digitalOptions"),onCancel:()=>i("main")}):c==="userSelection"?t(_,{users:re,onUserSelect:de,onCancel:()=>i("typeSelection")}):c==="digitalOptions"?t(le,{onCloneExisting:()=>i("digitalClone"),onCreateNew:ce,onCancel:()=>i("typeSelection")}):c==="digitalClone"?t(te,{digitalColleagues:z,onColleagueClone:me,onCancel:()=>i("digitalOptions")}):c==="form"?t(I,{colleague:q||void 0,onSave:Q,onCancel:ge,availableKnowledgeDocuments:R()}):c==="view"?t(I,{colleague:A||void 0,onSave:Q,onCancel:ue,readOnly:!0,availableKnowledgeDocuments:R()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(Se,{mode:"wait",children:t(Ne.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:a("div",{className:`space-y-6 ${ne||""}`,children:[t(Y,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:J}}),a("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[a(g,{children:[a(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Total Colleagues"}),t(ae,{className:"h-4 w-4 text-muted-foreground"})]}),a(u,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),a(g,{children:[a(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Human Members"}),t(xe,{className:"h-4 w-4 text-muted-foreground"})]}),a(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," ","active"]})]})]}),a(g,{children:[a(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Digital Colleagues"}),t(we,{className:"h-4 w-4 text-muted-foreground"})]}),a(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="digital"&&e.status==="active").length," ","active"]})]})]})]}),t(g,{children:t(u,{className:"pt-6",children:a("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:a("div",{className:"relative",children:[t(he,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(X,{placeholder:"Search colleagues...",value:r,onChange:e=>P(e.target.value),className:"pl-9"})]})}),a(H,{value:C,onValueChange:B,children:[t($,{className:"w-full md:w-[180px]",children:t(U,{placeholder:"Department"})}),a(F,{children:[t(p,{value:"all",children:"All Departments"}),oe.map(e=>t(p,{value:e,children:e},e))]})]}),a(H,{value:f,onValueChange:M,children:[t($,{className:"w-full md:w-[140px]",children:t(U,{placeholder:"Status"})}),a(F,{children:[t(p,{value:"all",children:"All Status"}),t(p,{value:"active",children:"Active"}),t(p,{value:"inactive",children:"Inactive"})]})]}),(r||C!=="all"||f!=="all")&&a(V,{variant:"outline",onClick:pe,className:"gap-2",children:[t(De,{className:"h-4 w-4"}),"Clear"]})]})})}),a("div",{className:"space-y-4",children:[t(Z,{activeTab:h,onTabChange:se,tabOptions:[{value:"all",label:`All (${y.length})`},{value:"human",label:`Human (${G.length})`},{value:"digital",label:`Digital (${W.length})`}],maxWidth:"400px",gridCols:3}),h==="all"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:y.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},`${e}-${e.id}`))}),h==="human"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:G.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},e.id))}),h==="digital"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:W.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},e.id))})]}),y.length===0&&t(g,{children:t(u,{className:"pt-6",children:a("div",{className:"text-center py-8",children:[t(ae,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),t("p",{className:"text-muted-foreground mb-4",children:r||C!=="all"||f!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),a(V,{onClick:J,className:"gap-2",children:[t(ye,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{be as a};