cortex-react-components 2.19.1 → 2.19.3

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 (110) hide show
  1. package/dist/{chunk-MXCW6SOT.mjs → chunk-33CHGT4N.mjs} +1 -1
  2. package/dist/{chunk-7GMAMIHM.mjs → chunk-3EGSOIRH.mjs} +1 -1
  3. package/dist/{chunk-UNHE7GG7.mjs → chunk-6B4QFOBO.mjs} +1 -1
  4. package/dist/{chunk-IXP52FRT.mjs → chunk-6BTNFKHM.mjs} +1 -1
  5. package/dist/{chunk-HKGW6JI2.mjs → chunk-6EKGV4I2.mjs} +1 -1
  6. package/dist/{chunk-ERJXTG6X.mjs → chunk-ANCSWAD7.mjs} +1 -1
  7. package/dist/{chunk-5WVFEIMC.mjs → chunk-CCJJAUGB.mjs} +1 -1
  8. package/dist/{chunk-5SHZBJ5R.mjs → chunk-CTC6WSB6.mjs} +1 -1
  9. package/dist/chunk-GAU24H4A.mjs +1 -0
  10. package/dist/{chunk-FKU4VQR6.mjs → chunk-GO42W2BM.mjs} +1 -1
  11. package/dist/{chunk-LJOWXPWW.mjs → chunk-H5VFV6Q4.mjs} +1 -1
  12. package/dist/chunk-HB57GPGK.mjs +4 -0
  13. package/dist/{chunk-67QPOSVV.mjs → chunk-HLTP3ZQN.mjs} +1 -1
  14. package/dist/chunk-IEKJORPB.mjs +4 -0
  15. package/dist/{chunk-5EQXJS23.mjs → chunk-JCWFPKF3.mjs} +1 -1
  16. package/dist/{chunk-IF3425JX.mjs → chunk-JNJJAJPI.mjs} +1 -1
  17. package/dist/{chunk-ITJH72Z2.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  18. package/dist/{chunk-NWISIJFD.mjs → chunk-MEVSHOG4.mjs} +1 -1
  19. package/dist/{chunk-N3B3XNV3.mjs → chunk-MFUZNS7C.mjs} +1 -1
  20. package/dist/{chunk-255P6K5W.mjs → chunk-MGSTQLZC.mjs} +1 -1
  21. package/dist/chunk-NZSQITPU.mjs +4 -0
  22. package/dist/{chunk-M7NV6EFH.mjs → chunk-QILFMWE5.mjs} +1 -1
  23. package/dist/{chunk-LBUC4M6L.mjs → chunk-QZIJTAPO.mjs} +1 -1
  24. package/dist/{chunk-2RQDJ5XT.mjs → chunk-R33MOMFK.mjs} +1 -1
  25. package/dist/{chunk-D6K6RO5P.mjs → chunk-R5P4ZICA.mjs} +1 -1
  26. package/dist/{chunk-LJQPLE4S.mjs → chunk-RMZLEIRP.mjs} +1 -1
  27. package/dist/{chunk-6R6NYDWN.mjs → chunk-RS4VD3ML.mjs} +1 -1
  28. package/dist/{chunk-CBIULUZQ.mjs → chunk-UTRR5NUU.mjs} +1 -1
  29. package/dist/{chunk-YKG4FNS4.mjs → chunk-VQBOJHZF.mjs} +1 -1
  30. package/dist/{chunk-TL2RQFU5.mjs → chunk-XYJ4S67W.mjs} +1 -1
  31. package/dist/{chunk-H3CJOE6S.mjs → chunk-YPSUDHCJ.mjs} +1 -1
  32. package/dist/{chunk-PK3OBSCB.mjs → chunk-YWRU7OE3.mjs} +1 -1
  33. package/dist/components/Blocks/Banner.mjs +1 -1
  34. package/dist/components/Blocks/CallToAction.mjs +1 -1
  35. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  36. package/dist/components/Blocks/Content.mjs +1 -1
  37. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  38. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  39. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  40. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  41. package/dist/components/Blocks/index.mjs +1 -1
  42. package/dist/components/Cards/ContentCard.mjs +1 -1
  43. package/dist/components/Cards/FeatureCard.mjs +1 -1
  44. package/dist/components/Cards/index.mjs +1 -1
  45. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  46. package/dist/components/DigitalColleagues/index.mjs +1 -1
  47. package/dist/components/Foundary/MainPage.mjs +1 -1
  48. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  49. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  50. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  51. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  52. package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
  53. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  54. package/dist/components/Foundary/Views/index.js +1 -1
  55. package/dist/components/Foundary/Views/index.mjs +1 -1
  56. package/dist/components/Foundary/colleague-card.js +1 -1
  57. package/dist/components/Foundary/colleague-card.mjs +1 -1
  58. package/dist/components/Foundary/index.js +1 -1
  59. package/dist/components/Foundary/index.mjs +1 -1
  60. package/dist/components/HeaderFooter/Header.mjs +1 -1
  61. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  62. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  63. package/dist/components/HeaderFooter/index.mjs +1 -1
  64. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  65. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  66. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  67. package/dist/components/Heros/RenderHero.mjs +1 -1
  68. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  69. package/dist/components/Heros/index.mjs +1 -1
  70. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  71. package/dist/components/Holidays/index.mjs +1 -1
  72. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  73. package/dist/components/Layouts/Print.mjs +1 -1
  74. package/dist/components/Layouts/SlideShow.mjs +1 -1
  75. package/dist/components/Layouts/index.mjs +1 -1
  76. package/dist/components/Other/index.mjs +1 -1
  77. package/dist/components/Payload/RichText/index.mjs +1 -1
  78. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  79. package/dist/components/Payload/index.mjs +1 -1
  80. package/dist/components/dc-temp/utils.mjs +1 -1
  81. package/dist/components/index.js +11 -11
  82. package/dist/components/index.mjs +1 -1
  83. package/dist/globals.css +1 -1
  84. package/dist/index.js +21 -21
  85. package/dist/index.mjs +1 -1
  86. package/dist/metafile-cjs.json +1 -1
  87. package/dist/metafile-esm.json +1 -1
  88. package/dist/pages/Blog.mjs +1 -1
  89. package/dist/pages/Documentation.mjs +1 -1
  90. package/dist/pages/IndexPage.mjs +1 -1
  91. package/dist/pages/Intranet.mjs +1 -1
  92. package/dist/pages/LandingPage.mjs +1 -1
  93. package/dist/pages/Page.mjs +1 -1
  94. package/dist/pages/Publish.mjs +1 -1
  95. package/dist/pages/Website.mjs +1 -1
  96. package/dist/sections/AboutSection.mjs +1 -1
  97. package/dist/sections/BlogDetail.mjs +1 -1
  98. package/dist/sections/BlogList.mjs +1 -1
  99. package/dist/sections/BlogListSection.mjs +1 -1
  100. package/dist/sections/ContactSection.mjs +1 -1
  101. package/dist/sections/PageSections.mjs +1 -1
  102. package/dist/sections/PricingSection.mjs +1 -1
  103. package/dist/sections/ServiceDetail.mjs +1 -1
  104. package/dist/sections/ServiceDetailSection.mjs +1 -1
  105. package/dist/sections/ServiceSection.mjs +1 -1
  106. package/dist/sections/index.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/chunk-275W7H4O.mjs +0 -4
  109. package/dist/chunk-ATBKMJU6.mjs +0 -4
  110. package/dist/chunk-OWFU2LXU.mjs +0 -4
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as _}from"./chunk-M2REXGQW.mjs";import{a as x}from"./chunk-ATBKMJU6.mjs";import{a as O}from"./chunk-H3RVI2OI.mjs";import{a as Y}from"./chunk-FSCDCSVK.mjs";import{a as Z}from"./chunk-NDZ26EG6.mjs";import{a as R}from"./chunk-Z22NSJMF.mjs";import{a as ee}from"./chunk-Y7H3EUBR.mjs";import{a as X}from"./chunk-FGEFYI5E.mjs";import{a as U,c as $,d as k,g as F,i as p}from"./chunk-YFAZQYK4.mjs";import{a as Q}from"./chunk-L5JPAKPM.mjs";import{b as H}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as h,c as w,e as u}from"./chunk-YO3GQYRJ.mjs";import{useEffect as pe,useState as o}from"react";import{Plus as Ce,Search as fe,Users as le,Bot as ve,User as ye,Filter as he}from"lucide-react";import{motion as we,AnimatePresence as xe}from"motion/react";import{jsx as l,jsxs as t}from"react/jsx-runtime";function Se({initialColleagues:S,onColleagueAdd:N,onColleagueEdit:K,onColleagueDelete:te,compactView:n=!1,departments:ae=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ie,availableUsers:I=[],existingDigitalColleagues:L=[],availableKnowledgeDocuments:P=[]}){let[s,r]=o(S||[]),[d,j]=o(""),[D,B]=o("all"),[b,M]=o("all"),[v,oe]=o("all"),[G,C]=o(null),[A,y]=o(null);pe(()=>{r(S||[])},[S]);let ne=Array.isArray(I)?I:[],se=Array.isArray(L)?L:[],[g,a]=o("main"),f=s.filter(e=>!e||!e.name?!1:e.name.toLowerCase().includes(d.toLowerCase())||e.type==="human"&&e.email?.toLowerCase().includes(d.toLowerCase())||e.type==="digital"&&e.jobDescription?.toLowerCase().includes(d.toLowerCase())),W=f.filter(e=>e.type==="human"),q=f.filter(e=>e.type==="digital"),z=()=>{a("typeSelection")},T=e=>{e.type==="digital"&&(C(e),a("form")),console.log("Editing colleague:",e),K?.(e)},E=e=>{e.type==="digital"&&(y(e),a("view"))},re=e=>{let i={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,updatedAt:e.updatedAt,createdAt:e.createdAt,accounts:e.accounts};r(m=>[...m,i]),N?.(i),a("main")},de=e=>{if(!e||!e.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",e);return}r(i=>[...i,{...e,type:"digital"}]),N?.({...e,type:"digital"}),a("main")},ge=()=>{C(null),a("form")},J=e=>{if(!e||!e.id){console.error("Invalid colleague provided to handleSaveColleague:",e);return}G?(r(i=>i.map(m=>m.id===e.id?{...e,type:"digital"}:m)),K?.({...e,type:"digital"})):(r(i=>[...i,{...e,type:"digital"}]),N?.({...e,type:"digital"})),a("main"),C(null)},me=()=>{a("main"),C(null),y(null)},ce=()=>{a("main"),y(null)},Ne=()=>{A&&(C(A),y(null),a("form"))},V=e=>{console.log("deleting",e,s),te?.(e,s.find(i=>i.id.toString()===e.toString())?.type),r(i=>i.filter(m=>m.id!==e))},ue=()=>{j(""),B("all"),M("all")};return g==="typeSelection"?l(Y,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):g==="userSelection"?l(ee,{users:ne,onUserSelect:re,onCancel:()=>a("typeSelection")}):g==="digitalOptions"?l(_,{onCloneExisting:()=>a("digitalClone"),onCreateNew:ge,onCancel:()=>a("typeSelection")}):g==="digitalClone"?l(Z,{digitalColleagues:se,onColleagueClone:de,onCancel:()=>a("digitalOptions")}):g==="form"?l(O,{colleague:G||void 0,onSave:J,onCancel:me,availableKnowledgeDocuments:P}):g==="view"?l(O,{colleague:A||void 0,onSave:J,onCancel:ce,readOnly:!0,availableKnowledgeDocuments:P}):l("div",{className:"px-2 md:px-4 py-4 space-y-8",children:l(xe,{mode:"wait",children:l(we.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${ie||""}`,children:[l(R,{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:z}}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t(c,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(w,{className:"text-sm font-medium",children:"Total Colleagues"}),l(le,{className:"h-4 w-4 text-muted-foreground"})]}),t(u,{children:[l("div",{className:"text-2xl font-bold",children:s.length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),t(c,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(w,{className:"text-sm font-medium",children:"Human Members"}),l(ye,{className:"h-4 w-4 text-muted-foreground"})]}),t(u,{children:[l("div",{className:"text-2xl font-bold",children:s.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),t(c,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(w,{className:"text-sm font-medium",children:"Digital Colleagues"}),l(ve,{className:"h-4 w-4 text-muted-foreground"})]}),t(u,{children:[l("div",{className:"text-2xl font-bold",children:s.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),l(c,{children:l(u,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[l("div",{className:"flex-1",children:t("div",{className:"relative",children:[l(fe,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l(Q,{placeholder:"Search colleagues...",value:d,onChange:e=>j(e.target.value),className:"pl-9"})]})}),t(U,{value:D,onValueChange:B,children:[l(k,{className:"w-full md:w-[180px]",children:l($,{placeholder:"Department"})}),t(F,{children:[l(p,{value:"all",children:"All Departments"}),ae.map(e=>l(p,{value:e,children:e},e))]})]}),t(U,{value:b,onValueChange:M,children:[l(k,{className:"w-full md:w-[140px]",children:l($,{placeholder:"Status"})}),t(F,{children:[l(p,{value:"all",children:"All Status"}),l(p,{value:"active",children:"Active"}),l(p,{value:"inactive",children:"Inactive"})]})]}),(d||D!=="all"||b!=="all")&&t(H,{variant:"outline",onClick:ue,className:"gap-2",children:[l(he,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[l(X,{activeTab:v,onTabChange:oe,tabOptions:[{value:"all",label:`All (${f.length})`},{value:"human",label:`Human (${W.length})`},{value:"digital",label:`Digital (${q.length})`}],maxWidth:"400px",gridCols:3}),v==="all"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:f.map(e=>l(x,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},`${e}-${e.id}`))}),v==="human"&&l("div",{className:`grid gap-4 ${n?"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=>l(x,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},e.id))}),v==="digital"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:q.map(e=>l(x,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},e.id))})]}),f.length===0&&l(c,{children:l(u,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[l(le,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),l("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),l("p",{className:"text-muted-foreground mb-4",children:d||D!=="all"||b!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),t(H,{onClick:z,className:"gap-2",children:[l(Ce,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{Se as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as d,b as u,i as v,j as o}from"./chunk-OCPX4QPC.mjs";import{b as l}from"./chunk-ZUA4KNIR.mjs";import{a as g,b as w,c as h}from"./chunk-SOLZ4VQH.mjs";import{b as N}from"./chunk-CSBGSBEU.mjs";import{a as c,b as p,e as f}from"./chunk-YO3GQYRJ.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import{useState as y}from"react";import{MoreHorizontal as I,Mail as A,Settings as B,Trash2 as S,Edit as T,User as E,Bot as P}from"lucide-react";import{Fragment as $,jsx as e,jsxs as s}from"react/jsx-runtime";function X({colleague:t,onEdit:x,onDelete:C,onViewDetails:M,showActions:D=!0,compact:n=!1,className:b}){let[m,k]=y(!1),z=a=>{switch(a){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},H=a=>{switch(a){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},F=a=>{if(!a)return"Never";let i=Math.floor((new Date().getTime()-a.getTime())/(1e3*60));return i<1?"Just now":i<60?`${i}m ago`:i<1440?`${Math.floor(i/60)}h ago`:`${Math.floor(i/1440)}d ago`};return s(c,{className:r("hover:shadow-md transition-shadow",n&&"p-2",b),children:[e(p,{className:r("pb-3",n&&"pb-2"),children:s("div",{className:"flex items-start justify-between",children:[s("div",{className:"flex items-center gap-3",children:[e("div",{className:"relative",children:s(g,{className:r("h-12 w-12",n&&"h-8 w-8"),children:[e(w,{src:"/placeholder.svg",alt:t.name||"name"}),e(h,{children:t.name?.split(" ").map(a=>a[0]).join("")})]})}),s("div",{className:"flex-1 min-w-0",children:[s("div",{className:"flex items-center gap-2",children:[e("h3",{className:r("font-semibold text-sm truncate",n&&"text-xs"),children:t.name}),t.type==="digital"?e(P,{className:r("h-4 w-4 text-blue-500",n&&"h-3 w-3")}):e(E,{className:r("h-4 w-4 text-green-500",n&&"h-3 w-3")})]}),e("p",{className:r("text-sm text-muted-foreground truncate",n&&"text-xs")}),!n&&e("div",{className:"flex items-center gap-2 mt-1"})]})]}),D&&s(d,{children:[e(u,{asChild:!0,children:e(l,{variant:"ghost",size:"icon",className:r("h-8 w-8",n&&"h-6 w-6"),children:e(I,{className:r("h-4 w-4",n&&"h-3 w-3")})})}),s(v,{align:"end",children:[t.type==="digital"&&s($,{children:[s(o,{onClick:()=>M?.(t),children:[e(B,{className:"h-4 w-4 mr-2"}),"View Details"]}),s(o,{onClick:()=>x?.(t),children:[e(T,{className:"h-4 w-4 mr-2"}),"Edit"]})]}),s(o,{onClick:()=>C?.(t.id.toString()),className:"text-destructive focus:text-destructive",children:[e(S,{className:"h-4 w-4 mr-2"}),t.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!n&&s(f,{className:"pt-0",children:[e("div",{className:"space-y-2 text-sm",children:t.type==="human"&&s("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e(A,{className:"h-3 w-3"}),e("span",{className:"truncate",children:t.email})]})}),t.type==="digital"&&e("div",{className:"mt-3",children:s("div",{className:"flex flex-wrap gap-1",children:[t.capabilities?.slice(0,m?t.capabilities.length:2).map(a=>e(N,{variant:"outline",className:"text-xs",children:typeof a.value=="number"?a.value:a.value.name},typeof a.value=="number"?a.value:a.value.name)),(t.capabilities?.length||0)>2&&e(l,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>k(!m),children:m?"Show less":`+${(t.capabilities?.length||0)-2} more`})]})})]})]})}export{X as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as u}from"./chunk-U2OXF7PJ.mjs";import{a as p}from"./chunk-W2LPR7SX.mjs";import{a as c}from"./chunk-CRSGNLV4.mjs";import{useEffect as D,useState as l}from"react";import{Fragment as N,jsx as e,jsxs as d}from"react/jsx-runtime";function y({documents:f=[],contexts:n=[],onDocumentClick:x=o=>console.log("Document clicked:",o),onDocumentShare:g=o=>console.log("Share document:",o),onLoadDocumentContent:A,selectedDocumentId:w,onAddKnowledge:m,onAddTeamContext:a,onDocumentUpdate:v}){let[o,s]=l(n[0]),[b,r]=l(!1),[C,i]=l(!1);D(()=>{!o&&n&&n.length>0&&s(n[0])},[n]);let K=t=>{m&&m(t),r(!1)},h=t=>{a&&a(t),i(!1)};return d("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[e("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:n&&n.length>0&&d("div",{className:"mt-6",children:[e("div",{className:"border-b border-border",children:d("nav",{className:"-mb-px flex justify-between items-center",children:[e("div",{className:"flex space-x-8 overflow-x-auto",children:n.map(t=>d("button",{onClick:()=>s(t),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${o?.id===t.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[t.icon,t.label]},t.id))}),d("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e("button",{onClick:()=>r(!0),className:"inline-flex border border-primary rounded-xl items-center gap-2 py-2 px-3 text-sm font-medium text-primary hover:text-primary/80 transition-colors whitespace-nowrap",children:"Add Knowledge"}),e("button",{onClick:()=>i(!0),className:"inline-flex border border-primary rounded-xl items-center gap-2 py-2 px-3 text-sm font-medium text-primary hover:text-primary/80 transition-colors whitespace-nowrap",children:"Add Context"})]})]})}),o?.description&&e("div",{className:"mt-3 px-1",children:e("p",{className:"text-sm text-muted-foreground",children:o?.description})})]})}),o?e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:e("div",{className:"h-full rounded-xl border overflow-hidden",children:e(c,{documents:f,menuConfig:o?.menuConfig,onDocumentClick:x,onDocumentShare:g,selectedDocumentId:w,onDocumentUpdate:v})})}):e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:e("p",{className:"text-muted-foreground",children:"No contexts available"})}),d(N,{children:[e(u,{isOpen:C,onClose:()=>i(!1),onAddTeamContext:h}),e(p,{isOpen:b,onClose:()=>r(!1),onAddKnowledge:K,knowledgeContexts:n})]})]})}export{y as a};